@everymatrix/casino-integrated-game-page 0.0.360 → 0.0.362
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.
|
@@ -1235,76 +1235,76 @@ MONTH:"YYYY-MM"},r}()}));
|
|
|
1235
1235
|
/* src/CasinoIntegratedGamePage.svelte generated by Svelte v3.48.0 */
|
|
1236
1236
|
function Tr(e){let t;function n(e,t){/*isLoggedIn*/
|
|
1237
1237
|
return e[5]?Pr:/*funMode*/e[10]?Or:void 0}let r=n(e),i=r&&r(e);return{c(){t=g("div"),i&&i.c(),b(t,"class","CasinoIntegratedGamePage"),b(t,"part","CasinoIntegratedGamePage")},m(n,r){p(n,t,r),i&&i.m(t,null)
|
|
1238
|
-
/*div_binding*/,e[
|
|
1239
|
-
/*div_binding*/,e[
|
|
1240
|
-
// (
|
|
1238
|
+
/*div_binding*/,e[65](t)},p(e,o){r===(r=n(e))&&i?i.p(e,o):(i&&i.d(1),i=r&&r(e),i&&(i.c(),i.m(t,null)))},d(n){n&&m(t),i&&i.d()
|
|
1239
|
+
/*div_binding*/,e[65](null)}}}
|
|
1240
|
+
// (324:2) {#if hasErrors}
|
|
1241
1241
|
function Mr(e){let t;return{c(){t=g("p"),t.textContent="500 Error - Internal Server Error.",b(t,"class","SearchLoading"),b(t,"part","SearchLoading")},m(e,n){p(e,t,n)},p:r,d(e){e&&m(t)}}}
|
|
1242
|
-
// (
|
|
1242
|
+
// (321:0) {#if isLoading}
|
|
1243
1243
|
function kr(e){let t;return{c(){t=g("p"),t.textContent="Loading, please wait ...",b(t,"class","SearchLoading"),b(t,"part","SearchLoading")},m(e,n){p(e,t,n)},p:r,d(e){e&&m(t)}}}
|
|
1244
|
-
// (
|
|
1244
|
+
// (363:8) {#if funMode}
|
|
1245
1245
|
function Or(e){let t,n,r,i,o,a,u,l,h,f,T,M,k,O,P,D,x,B,H,A,N,L,C,I,R,F=/*$_*/e[22]("gamePage.signIn")+"",Y=/*$_*/e[22]("gamePage.register")+"";function U(e,t){/*isFullscreen*/
|
|
1246
1246
|
return e[16]?xr:Dr}let G=U(e),$=G(e),j=/*gamebanneractive*/"true"==e[1]&&!/*isFullscreen*/e[16]&&Br();return{c(){t=g("div"),n=g("button"),n.innerHTML='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><defs><style>.a{fill:var(--emfe-w-color-primary, #D0046C);}</style></defs><path class="a" d="M12,0,9.818,2.182l8.26,8.26H0v3.117H18.078l-8.26,8.26L12,24,24,12Z" transform="translate(24 24) rotate(180)"></path></svg>',r=v(),i=g("p"),o=g("span"),a=y(/*time*/e[3]),u=v(),l=g("div"),h=v(),f=g("div"),T=g("div"),M=g("iframe"),O=v(),P=g("div"),D=g("div"),x=g("button"),B=y(F),H=v(),A=g("button"),N=y(Y),L=v(),$.c(),C=v(),j&&j.c(),b(n,"class","backButton"),b(n,"part","backButton"),b(i,"class","Time"),b(i,"part","Time"),b(t,"class","GamePageIntegratedTopSection"),b(t,"part","GamePageIntegratedTopSection"),b(M,"title","Games"),b(M,"class","GamesContainer"),b(M,"part","GamesContainer"),b(M,"aria-hidden","false"),c(M.src,k=/*game*/e[9].launchUrl)||b(M,"src",k),b(x,"class","LoginButton"),b(x,"part","LoginButton"),b(A,"class","RegisterButton"),b(A,"part","RegisterButton"),b(D,"class","ButtonsContainer ButtonsContainerFunMode"),b(D,"part","ButtonsContainer ButtonsContainerFunMode"),b(P,"class","BottomGame"),b(P,"part","BottomGame"),b(T,"id","IframeGame"),b(T,"part","IframeGame"),E(T,"width",/*isFullscreen*/e[16]?"100%":/*definitiveIframeWidth*/e[17]),E(T,"height",/*isFullscreen*/e[16]?"100%":/*definitiveIframeHeight*/e[18]),E(T,"max-width",/*isFullscreen*/e[16]||!/*isModal*/e[11]?"none":/*game*/e[9].width?Math.floor(/*game*/e[9].width)+"px":"1280px"),E(T,"max-height",/*isFullscreen*/e[16]||!/*isModal*/e[11]?"none":/*game*/e[9].height?Math.floor(/*game*/e[9].height)+100+"px":"720px"),b(f,"id","IframeContainer"),b(f,"part","IframeContainer"),S(f,"FullsScreenLayout",/*isFullscreen*/e[16])},m(s,c){p(s,t,c),d(t,n),d(t,r),d(t,i),d(i,o),d(o,a),
|
|
1247
|
-
/*p_binding_1*/e[
|
|
1248
|
-
/*iframe_1_binding_1*/e[
|
|
1249
|
-
/*div3_binding_1*/e[
|
|
1250
|
-
/*div4_binding*/e[
|
|
1251
|
-
/*div5_binding*/,e[
|
|
1252
|
-
/*p_binding_1*/,e[
|
|
1253
|
-
/*iframe_1_binding_1*/,e[
|
|
1254
|
-
/*div3_binding_1*/e[
|
|
1255
|
-
/*div4_binding*/e[
|
|
1256
|
-
/*div5_binding*/,e[
|
|
1257
|
-
// (
|
|
1247
|
+
/*p_binding_1*/e[56](i),d(t,u),d(t,l),p(s,h,c),p(s,f,c),d(f,T),d(T,M),
|
|
1248
|
+
/*iframe_1_binding_1*/e[57](M),d(T,O),d(T,P),d(P,D),d(D,x),d(x,B),d(D,H),d(D,A),d(A,N),d(P,L),$.m(P,null),
|
|
1249
|
+
/*div3_binding_1*/e[62](P),
|
|
1250
|
+
/*div4_binding*/e[63](T),d(f,C),j&&j.m(f,null)
|
|
1251
|
+
/*div5_binding*/,e[64](f),I||(R=[_(n,"click",/*click_handler_4*/e[55]),_(x,"click",/*click_handler_5*/e[58]),_(A,"click",/*click_handler_6*/e[59])],I=!0)},p(e,t){/*time*/8&t[0]&&w(a,/*time*/e[3]),/*game*/512&t[0]&&!c(M.src,k=/*game*/e[9].launchUrl)&&b(M,"src",k),/*$_*/4194304&t[0]&&F!==(F=/*$_*/e[22]("gamePage.signIn")+"")&&w(B,F),/*$_*/4194304&t[0]&&Y!==(Y=/*$_*/e[22]("gamePage.register")+"")&&w(N,Y),G===(G=U(e))&&$?$.p(e,t):($.d(1),$=G(e),$&&($.c(),$.m(P,null))),/*isFullscreen, definitiveIframeWidth*/196608&t[0]&&E(T,"width",/*isFullscreen*/e[16]?"100%":/*definitiveIframeWidth*/e[17]),/*isFullscreen, definitiveIframeHeight*/327680&t[0]&&E(T,"height",/*isFullscreen*/e[16]?"100%":/*definitiveIframeHeight*/e[18]),/*isFullscreen, isModal, game*/68096&t[0]&&E(T,"max-width",/*isFullscreen*/e[16]||!/*isModal*/e[11]?"none":/*game*/e[9].width?Math.floor(/*game*/e[9].width)+"px":"1280px"),/*isFullscreen, isModal, game*/68096&t[0]&&E(T,"max-height",/*isFullscreen*/e[16]||!/*isModal*/e[11]?"none":/*game*/e[9].height?Math.floor(/*game*/e[9].height)+100+"px":"720px"),/*gamebanneractive*/"true"!=e[1]||/*isFullscreen*/e[16]?j&&(j.d(1),j=null):j||(j=Br(),j.c(),j.m(f,null)),/*isFullscreen*/65536&t[0]&&S(f,"FullsScreenLayout",/*isFullscreen*/e[16])},d(n){n&&m(t)
|
|
1252
|
+
/*p_binding_1*/,e[56](null),n&&m(h),n&&m(f)
|
|
1253
|
+
/*iframe_1_binding_1*/,e[57](null),$.d(),
|
|
1254
|
+
/*div3_binding_1*/e[62](null),
|
|
1255
|
+
/*div4_binding*/e[63](null),j&&j.d()
|
|
1256
|
+
/*div5_binding*/,e[64](null),I=!1,s(R)}}}
|
|
1257
|
+
// (328:6) {#if isLoggedIn}
|
|
1258
1258
|
function Pr(e){let t,n,r,i,o,a,u,l,h,f,T,M,k,O,P,D,x,B,H,A,N,L,C=/*$_*/e[22]("gamePage.deposit")+"",I=/*haspanicbutton*/"true"===e[0]&&Hr(e);function R(e,t){/*isFullscreen*/
|
|
1259
1259
|
return e[16]?Nr:Ar}let F=R(e),Y=F(e),U=/*gamebanneractive*/"true"==e[1]&&!/*isFullscreen*/e[16]&&Lr();return{c(){t=g("div"),n=g("button"),n.innerHTML='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><defs><style>.a{fill:var(--emfe-w-color-primary, #FFF);}</style></defs><path class="a" d="M12,0,9.818,2.182l8.26,8.26H0v3.117H18.078l-8.26,8.26L12,24,24,12Z" transform="translate(24 24) rotate(180)"></path></svg>',r=v(),i=g("p"),o=g("span"),a=y(/*time*/e[3]),u=v(),l=g("button"),h=y(C),f=v(),T=g("div"),M=g("div"),k=g("iframe"),x=v(),B=g("div"),I&&I.c(),H=v(),Y.c(),A=v(),U&&U.c(),b(n,"class","backButton"),b(n,"part","backButton"),b(i,"class","Time"),b(i,"part","Time"),b(l,"class","DepositButton"),b(l,"part","DepositButton"),b(t,"class","GamePageIntegratedTopSection"),b(t,"part","GamePageIntegratedTopSection"),b(k,"title","Games"),b(k,"id","IframeGame"),b(k,"class","GamesContainer"),b(k,"part","GamesContainer"),b(k,"aria-hidden","false"),c(k.src,O=/*game*/e[9].launchUrl)||b(k,"src",O),b(k,"width",P=/*gameContainerWidth*/e[13]+"px"),b(k,"height",D=/*gameContainerHeight*/e[14]+"px"),b(B,"class","BottomGame BottomGameLoggedin"),b(B,"part","BottomGame BottomGameLoggedin"),b(M,"id","IframeGame"),b(M,"part","IframeGame"),E(M,"width",/*isFullscreen*/e[16]?"100%":/*definitiveIframeWidth*/e[17]),E(M,"height",/*isFullscreen*/e[16]?"100%":/*definitiveIframeHeight*/e[18]),E(M,"max-width",/*isFullscreen*/e[16]?"none":/*game*/e[9].width?/*game*/e[9].width+"px":"1280px"),E(M,"max-height",/*isFullscreen*/e[16]?"none":/*game*/e[9].height?Math.floor(/*game*/e[9].height)+100+"px":"720px"),b(T,"id","IframeContainer"),b(T,"part","IframeContainer"),S(T,"FullsScreenLayout",/*isFullscreen*/e[16])},m(s,c){p(s,t,c),d(t,n),d(t,r),d(t,i),d(i,o),d(o,a),
|
|
1260
|
-
/*p_binding*/e[
|
|
1261
|
-
/*iframe_1_binding*/e[
|
|
1262
|
-
/*div1_binding*/e[
|
|
1263
|
-
/*div2_binding*/e[
|
|
1264
|
-
/*div3_binding*/,e[
|
|
1265
|
-
/*p_binding*/,e[
|
|
1266
|
-
/*iframe_1_binding*/,e[
|
|
1267
|
-
/*div1_binding*/e[
|
|
1268
|
-
/*div2_binding*/e[
|
|
1269
|
-
/*div3_binding*/,e[
|
|
1270
|
-
// (
|
|
1271
|
-
function Dr(e){let t,n,i;return{c(){t=g("button"),t.innerHTML='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M21.414 18.586l2.586-2.586v8h-8l2.586-2.586-5.172-5.172 2.828-2.828 5.172 5.172zm-13.656-8l2.828-2.828-5.172-5.172 2.586-2.586h-8v8l2.586-2.586 5.172 5.172zm10.828-8l-2.586-2.586h8v8l-2.586-2.586-5.172 5.172-2.828-2.828 5.172-5.172zm-8 13.656l-2.828-2.828-5.172 5.172-2.586-2.586v8h8l-2.586-2.586 5.172-5.172z"></path></svg>',b(t,"class","FullscreenButton"),b(t,"part","FullscreenButton")},m(r,o){p(r,t,o),n||(i=_(t,"click",/*click_handler_8*/e[
|
|
1272
|
-
// (
|
|
1273
|
-
function xr(e){let t,n,i;return{c(){t=g("button"),t.innerHTML='<svg width="24" height="24" viewBox="0 0 31 31"><polygon style="fill:#fff;" points="24.586,27.414 29.172,32 32,29.172 27.414,24.586 32,20 20,20 20,32 \t\t\t"></polygon><polygon style="fill:#fff;" points="0,12 12,12 12,0 7.414,4.586 2.875,0.043 0.047,2.871 4.586,7.414 \t\t\t"></polygon><polygon style="fill:#fff;" points="0,29.172 2.828,32 7.414,27.414 12,32 12,20 0,20 4.586,24.586 \t\t\t"></polygon><polygon style="fill:#fff;" points="20,12 32,12 27.414,7.414 31.961,2.871 29.133,0.043 24.586,4.586 20,0 \t\t\t"></polygon></svg>',b(t,"class","FullscreenButton"),b(t,"part","FullscreenButton")},m(r,o){p(r,t,o),n||(i=_(t,"click",/*click_handler_7*/e[
|
|
1274
|
-
// (
|
|
1260
|
+
/*p_binding*/e[46](i),d(t,u),d(t,l),d(l,h),p(s,f,c),p(s,T,c),d(T,M),d(M,k),
|
|
1261
|
+
/*iframe_1_binding*/e[48](k),d(M,x),d(M,B),I&&I.m(B,null),d(B,H),Y.m(B,null),
|
|
1262
|
+
/*div1_binding*/e[52](B),
|
|
1263
|
+
/*div2_binding*/e[53](M),d(T,A),U&&U.m(T,null)
|
|
1264
|
+
/*div3_binding*/,e[54](T),N||(L=[_(n,"click",/*click_handler*/e[45]),_(l,"click",/*click_handler_1*/e[47])],N=!0)},p(e,t){/*time*/8&t[0]&&w(a,/*time*/e[3]),/*$_*/4194304&t[0]&&C!==(C=/*$_*/e[22]("gamePage.deposit")+"")&&w(h,C),/*game*/512&t[0]&&!c(k.src,O=/*game*/e[9].launchUrl)&&b(k,"src",O),/*gameContainerWidth*/8192&t[0]&&P!==(P=/*gameContainerWidth*/e[13]+"px")&&b(k,"width",P),/*gameContainerHeight*/16384&t[0]&&D!==(D=/*gameContainerHeight*/e[14]+"px")&&b(k,"height",D),/*haspanicbutton*/"true"===e[0]?I?I.p(e,t):(I=Hr(e),I.c(),I.m(B,H)):I&&(I.d(1),I=null),F===(F=R(e))&&Y?Y.p(e,t):(Y.d(1),Y=F(e),Y&&(Y.c(),Y.m(B,null))),/*isFullscreen, definitiveIframeWidth*/196608&t[0]&&E(M,"width",/*isFullscreen*/e[16]?"100%":/*definitiveIframeWidth*/e[17]),/*isFullscreen, definitiveIframeHeight*/327680&t[0]&&E(M,"height",/*isFullscreen*/e[16]?"100%":/*definitiveIframeHeight*/e[18]),/*isFullscreen, game*/66048&t[0]&&E(M,"max-width",/*isFullscreen*/e[16]?"none":/*game*/e[9].width?/*game*/e[9].width+"px":"1280px"),/*isFullscreen, game*/66048&t[0]&&E(M,"max-height",/*isFullscreen*/e[16]?"none":/*game*/e[9].height?Math.floor(/*game*/e[9].height)+100+"px":"720px"),/*gamebanneractive*/"true"!=e[1]||/*isFullscreen*/e[16]?U&&(U.d(1),U=null):U||(U=Lr(),U.c(),U.m(T,null)),/*isFullscreen*/65536&t[0]&&S(T,"FullsScreenLayout",/*isFullscreen*/e[16])},d(n){n&&m(t)
|
|
1265
|
+
/*p_binding*/,e[46](null),n&&m(f),n&&m(T)
|
|
1266
|
+
/*iframe_1_binding*/,e[48](null),I&&I.d(),Y.d(),
|
|
1267
|
+
/*div1_binding*/e[52](null),
|
|
1268
|
+
/*div2_binding*/e[53](null),U&&U.d()
|
|
1269
|
+
/*div3_binding*/,e[54](null),N=!1,s(L)}}}
|
|
1270
|
+
// (383:16) {:else}
|
|
1271
|
+
function Dr(e){let t,n,i;return{c(){t=g("button"),t.innerHTML='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M21.414 18.586l2.586-2.586v8h-8l2.586-2.586-5.172-5.172 2.828-2.828 5.172 5.172zm-13.656-8l2.828-2.828-5.172-5.172 2.586-2.586h-8v8l2.586-2.586 5.172 5.172zm10.828-8l-2.586-2.586h8v8l-2.586-2.586-5.172 5.172-2.828-2.828 5.172-5.172zm-8 13.656l-2.828-2.828-5.172 5.172-2.586-2.586v8h8l-2.586-2.586 5.172-5.172z"></path></svg>',b(t,"class","FullscreenButton"),b(t,"part","FullscreenButton")},m(r,o){p(r,t,o),n||(i=_(t,"click",/*click_handler_8*/e[61]),n=!0)},p:r,d(e){e&&m(t),n=!1,i()}}}
|
|
1272
|
+
// (379:16) {#if isFullscreen}
|
|
1273
|
+
function xr(e){let t,n,i;return{c(){t=g("button"),t.innerHTML='<svg width="24" height="24" viewBox="0 0 31 31"><polygon style="fill:#fff;" points="24.586,27.414 29.172,32 32,29.172 27.414,24.586 32,20 20,20 20,32 \t\t\t"></polygon><polygon style="fill:#fff;" points="0,12 12,12 12,0 7.414,4.586 2.875,0.043 0.047,2.871 4.586,7.414 \t\t\t"></polygon><polygon style="fill:#fff;" points="0,29.172 2.828,32 7.414,27.414 12,32 12,20 0,20 4.586,24.586 \t\t\t"></polygon><polygon style="fill:#fff;" points="20,12 32,12 27.414,7.414 31.961,2.871 29.133,0.043 24.586,4.586 20,0 \t\t\t"></polygon></svg>',b(t,"class","FullscreenButton"),b(t,"part","FullscreenButton")},m(r,o){p(r,t,o),n||(i=_(t,"click",/*click_handler_7*/e[60]),n=!0)},p:r,d(e){e&&m(t),n=!1,i()}}}
|
|
1274
|
+
// (390:12) {#if gamebanneractive == 'true' && !isFullscreen}
|
|
1275
1275
|
function Br(e){let t;return{c(){t=g("div"),t.innerHTML="<h3>Your banner here</h3>",b(t,"class","BannerSection"),b(t,"part","BannerSection")},m(e,n){p(e,t,n)},d(e){e&&m(t)}}}
|
|
1276
|
-
// (
|
|
1276
|
+
// (340:14) {#if haspanicbutton === "true"}
|
|
1277
1277
|
function Hr(e){let t,n,r,i,o,s=/*$_*/e[22]("gamePage.breakButton")+"";return{c(){t=g("div"),n=g("button"),r=y(s),b(n,"class",i="PanicButton "+("PC"!==_r(/*userAgent*/e[23])?"PanicButtonMobile":"")),b(n,"part",o="PanicButton "+("PC"!==_r(/*userAgent*/e[23])?"PanicButtonMobile":"")),S(n,"PanicButtonAnimation",/*panicLoading*/e[8]),b(t,"class","PanicSection"),b(t,"part","PanicSection")},m(i,o){p(i,t,o),d(t,n),d(n,r),
|
|
1278
|
-
/*button_binding*/e[
|
|
1279
|
-
/*button_binding*/,e[
|
|
1280
|
-
// (
|
|
1281
|
-
function Ar(e){let t,n,i;return{c(){t=g("button"),t.innerHTML='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M21.414 18.586l2.586-2.586v8h-8l2.586-2.586-5.172-5.172 2.828-2.828 5.172 5.172zm-13.656-8l2.828-2.828-5.172-5.172 2.586-2.586h-8v8l2.586-2.586 5.172 5.172zm10.828-8l-2.586-2.586h8v8l-2.586-2.586-5.172 5.172-2.828-2.828 5.172-5.172zm-8 13.656l-2.828-2.828-5.172 5.172-2.586-2.586v8h8l-2.586-2.586 5.172-5.172z"></path></svg>',b(t,"class","FullscreenButton"),b(t,"part","FullscreenButton")},m(r,o){p(r,t,o),n||(i=_(t,"click",/*click_handler_3*/e[
|
|
1282
|
-
// (
|
|
1283
|
-
function Nr(e){let t,n,i;return{c(){t=g("button"),t.innerHTML='<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="24" height="24" viewBox="0 0 31 31"><polygon style="fill:#fff;" points="24.586,27.414 29.172,32 32,29.172 27.414,24.586 32,20 20,20 20,32 \t\t\t"></polygon><polygon style="fill:#fff;" points="0,12 12,12 12,0 7.414,4.586 2.875,0.043 0.047,2.871 4.586,7.414 \t\t\t"></polygon><polygon style="fill:#fff;" points="0,29.172 2.828,32 7.414,27.414 12,32 12,20 0,20 4.586,24.586 \t\t\t"></polygon><polygon style="fill:#fff;" points="20,12 32,12 27.414,7.414 31.961,2.871 29.133,0.043 24.586,4.586 20,0 \t\t\t"></polygon></svg>',b(t,"class","FullscreenButton"),b(t,"part","FullscreenButton")},m(r,o){p(r,t,o),n||(i=_(t,"click",/*click_handler_2*/e[
|
|
1284
|
-
// (
|
|
1278
|
+
/*button_binding*/e[49](n)},p(e,t){/*$_*/4194304&t[0]&&s!==(s=/*$_*/e[22]("gamePage.breakButton")+"")&&w(r,s),/*panicLoading*/256&t[0]&&S(n,"PanicButtonAnimation",/*panicLoading*/e[8])},d(n){n&&m(t)
|
|
1279
|
+
/*button_binding*/,e[49](null)}}}
|
|
1280
|
+
// (349:14) {:else}
|
|
1281
|
+
function Ar(e){let t,n,i;return{c(){t=g("button"),t.innerHTML='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M21.414 18.586l2.586-2.586v8h-8l2.586-2.586-5.172-5.172 2.828-2.828 5.172 5.172zm-13.656-8l2.828-2.828-5.172-5.172 2.586-2.586h-8v8l2.586-2.586 5.172 5.172zm10.828-8l-2.586-2.586h8v8l-2.586-2.586-5.172 5.172-2.828-2.828 5.172-5.172zm-8 13.656l-2.828-2.828-5.172 5.172-2.586-2.586v8h8l-2.586-2.586 5.172-5.172z"></path></svg>',b(t,"class","FullscreenButton"),b(t,"part","FullscreenButton")},m(r,o){p(r,t,o),n||(i=_(t,"click",/*click_handler_3*/e[51]),n=!0)},p:r,d(e){e&&m(t),n=!1,i()}}}
|
|
1282
|
+
// (345:14) {#if isFullscreen}
|
|
1283
|
+
function Nr(e){let t,n,i;return{c(){t=g("button"),t.innerHTML='<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="24" height="24" viewBox="0 0 31 31"><polygon style="fill:#fff;" points="24.586,27.414 29.172,32 32,29.172 27.414,24.586 32,20 20,20 20,32 \t\t\t"></polygon><polygon style="fill:#fff;" points="0,12 12,12 12,0 7.414,4.586 2.875,0.043 0.047,2.871 4.586,7.414 \t\t\t"></polygon><polygon style="fill:#fff;" points="0,29.172 2.828,32 7.414,27.414 12,32 12,20 0,20 4.586,24.586 \t\t\t"></polygon><polygon style="fill:#fff;" points="20,12 32,12 27.414,7.414 31.961,2.871 29.133,0.043 24.586,4.586 20,0 \t\t\t"></polygon></svg>',b(t,"class","FullscreenButton"),b(t,"part","FullscreenButton")},m(r,o){p(r,t,o),n||(i=_(t,"click",/*click_handler_2*/e[50]),n=!0)},p:r,d(e){e&&m(t),n=!1,i()}}}
|
|
1284
|
+
// (356:10) {#if gamebanneractive == 'true' && !isFullscreen}
|
|
1285
1285
|
function Lr(e){let t;return{c(){t=g("div"),t.innerHTML="<h3>Your banner here</h3>",b(t,"class","BannerSection"),b(t,"part","BannerSection")},m(e,n){p(e,t,n)},d(e){e&&m(t)}}}function Cr(e){let t;function n(e,t){/*isLoading*/
|
|
1286
|
-
return e[7]?kr:/*hasErrors*/e[6]?Mr:Tr}let i=n(e),o=i(e);return{c(){o.c(),t=y(""),this.c=r},m(e,n){o.m(e,n),p(e,t,n)},p(e,r){i===(i=n(e))&&o?o.p(e,r):(o.d(1),o=i(e),o&&(o.c(),o.m(t.parentNode,t)))},i:r,o:r,d(e){o.d(e),e&&m(t)}}}function Ir(e,t,n){let r;var i,o;i=vr,o=e=>n(22,r=e),e.$$.on_destroy.push(f(i,o));let s,a,u,l,h,c,d,p,m,g,y,v,_,b,w,E,S,{endpoint:T=""}=t,{lang:M=""}=t,{session:O=""}=t,{userid:D=""}=t,{clientstyling:x=""}=t,{clientstylingurl:B=""}=t,{loginurl:H=""}=t,{registerurl:A=""}=t,{depositurl:N=""}=t,{loginevent:L=""}=t,{registerevent:C=""}=t,{depositevent:I=""}=t,{clockformat:R=""}=t,{haspanicbutton:F="false"}=t,{playforfun:Y="true"}=t,{checksession:U="true"}=t,{
|
|
1286
|
+
return e[7]?kr:/*hasErrors*/e[6]?Mr:Tr}let i=n(e),o=i(e);return{c(){o.c(),t=y(""),this.c=r},m(e,n){o.m(e,n),p(e,t,n)},p(e,r){i===(i=n(e))&&o?o.p(e,r):(o.d(1),o=i(e),o&&(o.c(),o.m(t.parentNode,t)))},i:r,o:r,d(e){o.d(e),e&&m(t)}}}function Ir(e,t,n){let r;var i,o;i=vr,o=e=>n(22,r=e),e.$$.on_destroy.push(f(i,o));let s,a,u,l,h,c,d,p,m,g,y,v,_,b,w,E,S,{endpoint:T=""}=t,{lang:M=""}=t,{session:O=""}=t,{userid:D=""}=t,{clientstyling:x=""}=t,{clientstylingurl:B=""}=t,{loginurl:H=""}=t,{registerurl:A=""}=t,{depositurl:N=""}=t,{loginevent:L=""}=t,{registerevent:C=""}=t,{depositevent:I=""}=t,{clockformat:R=""}=t,{haspanicbutton:F="false"}=t,{playforfun:Y="true"}=t,{checksession:U="true"}=t,{gamebanneractive:G="false"}=t,{gameid:$=""}=t,j=!1,W=!1,V=!0,z=!1,Z=0,X=!1,q=!1,K=!0,J=!1,Q=window.navigator.userAgent;!function({withLocale:e,translations:t}){sr.subscribe((n=>{null==n&&(Gn.set(t),sr.set(e))}));// maybe we will need this to make sure that the i18n is set up only once
|
|
1287
1287
|
/*dictionary.set(translations);
|
|
1288
1288
|
locale.set(_locale);*/}({withLocale:"en",translations:{}}),Object.keys(br).forEach((e=>{!function(e,t){Wn(e,t)}(e,br[e])}));
|
|
1289
1289
|
// @TODO game typescript model type
|
|
1290
|
-
const
|
|
1290
|
+
const ee=(e,t)=>{let r=new URL(`${T}/casino/games/${e}`);r.searchParams.append("language",M),r.searchParams.append("expand","vendor"),n(11,K=t||!1),fetch(r.href).then((e=>e.json())).then((e=>{n(9,c=(e=>{let t=new URL(e.launchUrl);return t.searchParams.append("language",M),
|
|
1291
1291
|
// @TODO wtf? session check or go home
|
|
1292
1292
|
// Maybe we should check if the session is valid, somehow?
|
|
1293
|
-
u&&u.length>0&&(n(5,
|
|
1293
|
+
u&&u.length>0&&(n(5,j=!0),t.searchParams.append("_sid",u),t.searchParams.append("funMode","false")),e.launchUrl=t,w.scrollIntoView(),e})(e[0])),c.launchUrl&&(X=!0,n(10,q="true"==Y&&c.hasFunMode),"true"==Y&&c.hasAnonymousFunMode)}),(e=>{console.error("There was an error",e),n(6,W=!0)})).then((()=>{d&&(ne(),K||te())}))},te=()=>{n(17,_=c.width),n(18,b=c.height),y=c.width,v=c.height},ne=()=>{let e=getComputedStyle(d),t=getComputedStyle(g);n(13,p=parseInt(e.width.slice(0,-2))),n(14,m=parseInt(e.height.slice(0,-2)));const r=c.width/(c.height+100);y=parseInt(t.width),v=parseInt(t.height),
|
|
1294
1294
|
// resize logic for maintaining game ratio when resizing
|
|
1295
|
-
p/r>m-E.clientHeight-S.clientHeight?(v=m-E.clientHeight-S.clientHeight,y=m*r):(y=p,v=p/r),n(17,_=y?Math.floor(y)+"px":"1280px"),n(18,b=v?Math.floor(v)+"px":"720px")},
|
|
1295
|
+
p/r>m-E.clientHeight-S.clientHeight?(v=m-E.clientHeight-S.clientHeight,y=m*r):(y=p,v=p/r),n(17,_=y?Math.floor(y)+"px":"1280px"),n(18,b=v?Math.floor(v)+"px":"720px")},re=()=>{
|
|
1296
1296
|
// sent to modal component a flag (detailsObtained) by witch to determine if a game is open
|
|
1297
|
-
window.postMessage({type:"GameStateOnResize",detailsObtained:
|
|
1297
|
+
window.postMessage({type:"GameStateOnResize",detailsObtained:X},window.location.href),
|
|
1298
1298
|
// make sure that a game is open before trying to get the element properties
|
|
1299
|
-
|
|
1299
|
+
X&&d&&ne()},ie=()=>{L&&(window.postMessage({type:L,transition:"Login"},window.location.href),window.postMessage({type:"ModalClosed"},window.location.href)),H&&(
|
|
1300
1300
|
// @ts-ignore
|
|
1301
|
-
window.location=H)},
|
|
1301
|
+
window.location=H)},oe=()=>{C&&(window.postMessage({type:C,transition:"Register"},window.location.href),window.postMessage({type:"ModalClosed"},window.location.href)),A&&(
|
|
1302
1302
|
// @ts-ignore
|
|
1303
|
-
window.location=A)},
|
|
1303
|
+
window.location=A)},se=()=>{I&&(window.postMessage({type:I},window.location.href),window.postMessage({type:"ModalClosed"},window.location.href)),N&&(
|
|
1304
1304
|
// @ts-ignore
|
|
1305
|
-
window.location=N)};function
|
|
1305
|
+
window.location=N)};function ae(){document.webkitIsFullScreen||document.mozFullScreen||document.msFullscreenElement||!J||ue()}document.addEventListener&&(document.addEventListener("webkitfullscreenchange",ae,!1),document.addEventListener("mozfullscreenchange",ae,!1),document.addEventListener("fullscreenchange",ae,!1),document.addEventListener("MSFullscreenChange",ae,!1));const ue=()=>{(document.fullscreenEnabled||document.webkitFullscreenEnabled||document.mozFullScreenEnabled||document.msFullscreenEnabled)&&(J?(document.exitFullscreen?document.exitFullscreen():document.webkitExitFullscreen?document.webkitExitFullscreen():document.msExitFullscreen&&document.msExitFullscreen(),n(16,J=!1)):(d.requestFullscreen?d.requestFullscreen():d.webkitRequestFullscreen?d.webkitRequestFullscreen():d.mozRequestFullScreen?d.mozRequestFullScreen():d.msRequestFullscreen&&d.msRequestFullscreen(),n(16,J=!0)))},le=setInterval((()=>{n(3,s=R?Sr().format(R):Sr().format("LTS"))}),100),he=()=>{var e;e=M,sr.set(e),(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)})(Q),n(7,V=!1)},ce=()=>{"true"==U?function(e,t){return new Promise(((n,r)=>{let i=new Headers;i.append("X-SessionID",t),de(`${e}/player/session/player`,{method:"GET",headers:i}).then((e=>e.json())).then((e=>n(e))).catch((e=>r(e)))}))}(T,O).then((e=>{u=e.Guid,e.UserID,n(5,j=!0)}),(e=>{n(5,j=!1),console.error("err on session",e)})):u=O},fe=()=>{window.postMessage({type:"GoToPreviousRoute"},window.location.href),window.postMessage({type:"DisableIntegratedGamePage"},window.location.href)},pe=e=>{Z=0,h=setInterval((()=>{Z+=1,n(8,z=!0),Z>=3&&clearInterval(h)}),1e3)},me=e=>{Z<3&&n(8,z=!1),clearInterval(h)};k((()=>(window.addEventListener("resize",re,!1),Er.isNative(Q),()=>{n(8,z=!1),null==l||l.removeEventListener("mousedown",pe),null==l||l.removeEventListener("touchstart",pe),
|
|
1306
1306
|
// on mouseup stop interval count
|
|
1307
|
-
null==l||l.removeEventListener("mouseup",
|
|
1307
|
+
null==l||l.removeEventListener("mouseup",me),null==l||l.removeEventListener("touchend",me),window.removeEventListener("resize",re),clearInterval(le)})));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,x=e.clientstyling),"clientstylingurl"in e&&n(34,B=e.clientstylingurl),"loginurl"in e&&n(35,H=e.loginurl),"registerurl"in e&&n(36,A=e.registerurl),"depositurl"in e&&n(37,N=e.depositurl),"loginevent"in e&&n(38,L=e.loginevent),"registerevent"in e&&n(39,C=e.registerevent),"depositevent"in e&&n(40,I=e.depositevent),"clockformat"in e&&n(41,R=e.clockformat),"haspanicbutton"in e&&n(0,F=e.haspanicbutton),"playforfun"in e&&n(42,Y=e.playforfun),"checksession"in e&&n(43,U=e.checksession),"gamebanneractive"in e&&n(1,G=e.gamebanneractive),"gameid"in e&&n(44,$=e.gameid)},e.$$.update=()=>{/*lang*/1073741824&e.$$.dirty[0]&&M&&he(),/*endpoint, lang*/1610612736&e.$$.dirty[0]|/*gameid*/8192&e.$$.dirty[1]&&T&&$&&M&&ee($),/*endpoint*/536870912&e.$$.dirty[0]|/*session, userid*/3&e.$$.dirty[1]&&O&&D&&T&&ce(),/*clientstyling*/4&e.$$.dirty[1]&&x&&(()=>{let e=document.createElement("style");e.innerHTML=x,w.appendChild(e)})(),/*clientstylingurl*/8&e.$$.dirty[1]&&B&&(()=>{let e=document.createElement("style");if(B){let t=new URL(B);fetch(t.href).then((e=>e.text())).then((t=>{e.innerHTML=t,w&&setTimeout((()=>{w.appendChild(e)}),1)}))}})(),/*panicButton*/4&e.$$.dirty[0]&&l&&(null==l||l.addEventListener("mousedown",pe,!1),null==l||l.addEventListener("touchstart",pe,!1),
|
|
1308
1308
|
// on mouseup stop interval count
|
|
1309
|
-
null==l||l.addEventListener("mouseup",
|
|
1309
|
+
null==l||l.addEventListener("mouseup",me,!1),null==l||l.addEventListener("touchend",me,!1))},[F,G,l,s,a,j,W,V,z,c,q,K,d,p,m,g,J,_,b,w,E,S,r,Q,ie,oe,se,ue,fe,T,M,O,D,x,B,H,A,N,L,C,I,R,Y,U,$,()=>fe(),function(e){P[e?"unshift":"push"]((()=>{S=e,n(21,S)}))},()=>se(),function(e){P[e?"unshift":"push"]((()=>{a=e,n(4,a)}))},function(e){P[e?"unshift":"push"]((()=>{l=e,n(2,l)}))},()=>ue(),()=>ue(),function(e){P[e?"unshift":"push"]((()=>{E=e,n(20,E)}))},function(e){P[e?"unshift":"push"]((()=>{g=e,n(15,g)}))},function(e){P[e?"unshift":"push"]((()=>{d=e,n(12,d)}))},()=>fe(),function(e){P[e?"unshift":"push"]((()=>{S=e,n(21,S)}))},function(e){P[e?"unshift":"push"]((()=>{a=e,n(4,a)}))},()=>ie(),()=>oe(),()=>ue(),()=>ue(),function(e){P[e?"unshift":"push"]((()=>{E=e,n(20,E)}))},function(e){P[e?"unshift":"push"]((()=>{g=e,n(15,g)}))},function(e){P[e?"unshift":"push"]((()=>{d=e,n(12,d)}))},function(e){P[e?"unshift":"push"]((()=>{w=e,n(19,w)}))}]}class Rr 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'}.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-color-contrast, #07072A);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-color-primary, #FFF)}.BottomGame{padding:0 40px;min-height:92px;background-color:var(--emfe-w-color-contrast, #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-color-green, #D0046C);color: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-color-primary, #D0046C);float:right}.ButtonsContainer{width:275px;display:flex;flex-direction:row;justify-content:space-between}.ButtonsContainer.ButtonsContainerFunMode{margin-right:15px}.RegisterButton{color:var(--emfe-w-color-white, #FFFFFF);background-color:var(--emfe-w-color-primary, #D0046C);border-radius:5px;border:none;width:129px;height:60px}.LoginButton{color:var(--emfe-w-color-primary, #D0046C);background-color:var(--emfe-w-color-contrast, #07072A);border-radius:5px;border:1px solid var(--emfe-w-color-primary, #D0046C);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-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 .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-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-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:#fff}</style>",Y(this,{target:this.shadowRoot,props:T(this.attributes),customElement:!0},Ir,Cr,u,{endpoint:29,lang:30,session:31,userid:32,clientstyling:33,clientstylingurl:34,loginurl:35,registerurl:36,depositurl:37,loginevent:38,registerevent:39,depositevent:40,clockformat:41,haspanicbutton:0,playforfun:42,checksession:43,gamebanneractive:1,gameid:44},null,[-1,-1,-1]),e&&(e.target&&p(e.target,this,e.anchor),e.props&&(this.$set(e.props),C()))}static get observedAttributes(){return["endpoint","lang","session","userid","clientstyling","clientstylingurl","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}),C()}get lang(){return this.$$.ctx[30]}set lang(e){this.$$set({lang:e}),C()}get session(){return this.$$.ctx[31]}set session(e){this.$$set({session:e}),C()}get userid(){return this.$$.ctx[32]}set userid(e){this.$$set({userid:e}),C()}get clientstyling(){return this.$$.ctx[33]}set clientstyling(e){this.$$set({clientstyling:e}),C()}get clientstylingurl(){return this.$$.ctx[34]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),C()}get loginurl(){return this.$$.ctx[35]}set loginurl(e){this.$$set({loginurl:e}),C()}get registerurl(){return this.$$.ctx[36]}set registerurl(e){this.$$set({registerurl:e}),C()}get depositurl(){return this.$$.ctx[37]}set depositurl(e){this.$$set({depositurl:e}),C()}get loginevent(){return this.$$.ctx[38]}set loginevent(e){this.$$set({loginevent:e}),C()}get registerevent(){return this.$$.ctx[39]}set registerevent(e){this.$$set({registerevent:e}),C()}get depositevent(){return this.$$.ctx[40]}set depositevent(e){this.$$set({depositevent:e}),C()}get clockformat(){return this.$$.ctx[41]}set clockformat(e){this.$$set({clockformat:e}),C()}get haspanicbutton(){return this.$$.ctx[0]}set haspanicbutton(e){this.$$set({haspanicbutton:e}),C()}get playforfun(){return this.$$.ctx[42]}set playforfun(e){this.$$set({playforfun:e}),C()}get checksession(){return this.$$.ctx[43]}set checksession(e){this.$$set({checksession:e}),C()}get gamebanneractive(){return this.$$.ctx[1]}set gamebanneractive(e){this.$$set({gamebanneractive:e}),C()}get gameid(){return this.$$.ctx[44]}set gameid(e){this.$$set({gameid:e}),C()}}return!customElements.get("casino-integrated-game-page")&&customElements.define("casino-integrated-game-page",Rr),Rr}));
|
|
1310
1310
|
//# sourceMappingURL=casino-integrated-game-page.js.map
|