PageSourceSearch

https://winbonanza.com/_next/static/chunks/pages/play/[...ids]-70496aa381e14f79.js

js winbonanza.com collected 2026-10-08 03:00:00 UTC 27,531 bytes, 2 lines download raw bytes

1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},t=Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="c99fff93-0295-4f3f-899a-ff1f6ef18bbd",e._sentryDebugIdIdentifier="sentry-dbid-c99fff93-0295-4f3f-899a-ff1f6ef18bbd")}catch(e){}}();var _global="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};_global.SENTRY_RELEASE={id:"20261005.8"},(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4233],{32568:function(e,t,s){(window.__NEXT_P=window.__NEXT_P||[]).push(["/play/[...ids]",function(){return s(26926)}])},35406:function(e,t,s){"use strict";var a=s(52322);s(79094);var i=s(45847),r=s.n(i),n=s(5632),o=s(97729),h=s.n(o),d=s(86239),l=s(92472),c=s(2784),m=s(46138),p=s(33078),u=s(45505);t.Z=(e,t)=>{let s=(0,u.P)(e);return e=>{let i=(0,n.useRouter)(),{isLoading:o}=(0,m.Pxw)(),u=(0,m.kqU)();return((0,c.useEffect)(()=>{null===u||!0===u||p.Z.isInLogoutProcess()||(t?i.push(t):(sessionStorage.clear(),p.Z.loginRedirect({prompt:"login"}).then(()=>{localStorage.removeItem("logged-in-email"),(0,m.RIf)()})))},[u]),!u||o)?(0,a.jsx)(l.Z,{className:"protected-route-loader"}):(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(h(),{"data-sentry-element":"Head","data-sentry-source-file":"index.tsx",children:(0,a.jsx)("meta",{name:"robots",content:"noindex,nofollow","data-sentry-element":"meta","data-sentry-source-file":"index.tsx"})}),(0,a.jsx)(s,{...e,"data-sentry-element":"WrappedComponent_","data-sentry-source-file":"index.tsx"}),(0,a.jsx)(r(),{src:"https://hosted.paysafe.com/checkout/v1/latest/paysafe.checkout.min.js",id:"_paysafe_",onError:()=>{let e=Error("Failed to load paysafe script");(0,d.Tb)(e)},"data-sentry-element":"Script","data-sentry-source-file":"index.tsx"}),(0,a.jsx)(r(),{src:"https://accounts.google.com/gsi/client",async:!0,defer:!0,onError:e=>{let t=Error("failed to load google gsi script");(0,d.Tb)(t,{extra:{err:e}})},strategy:"afterInteractive","data-sentry-element":"Script","data-sentry-source-file":"index.tsx"})]})}}},26926:function(e,t,s){"use strict";s.r(t),s.d(t,{__N_SSG:function(){return F},default:function(){return Z}});var a=s(52322),i=s(2784),r=s(96577),n=s.n(r),o=s(5632);s(17560),s(18520);var h=s(64157),d=s(56488),l=s(92472),c=s(13980),m=s.n(c),p=s(38726),u=s(46138),g={src:"/_next/static/media/swipe_hand.81662eb5.png",height:409,width:481,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAHCAMAAAACh/xsAAAAM1BMVEVMaXGu4PAAcLNyxuIAL4f6/f6P0+mb1+v///+H0ek7rNWI0OgzqNUAh8DQ7fX////2//8dG+3GAAAAD3RSTlMA6ByvCvzH3vy6Y99KMfZPxStcAAAACXBIWXMAAAsTAAALEwEAmpwYAAAANklEQVR4nCXGOQLAIAwEsTGHDyDZ/P+1KVAlgMHjG1qP/n5Fc6VswVZOxQDTvCllqoBVbnHgByxvAXT23IXkAAAAAElFTkSuQmCC",blurWidth:8,blurHeight:7},f=s(28264),b=s(75840),w=s(86239),y=s(78418),v=s(33078),T=s(37151),A=s(73570),_=s(54030),S=s(14564),C=s(43344),k=s(83705),E=s(85700),O=s(86246),G=s(87692);let I=(0,s(89898).c)(async()=>(await Promise.all([s.e(4709),s.e(394)]).then(s.bind(s,40394))).default,{priority:O.sd.HIGH,backdrop:G.i.BLACK});var P=s(34406);let x=function(){var e;let t=!1;return e=window.navigator.userAgent||window.navigator.vendor||window.opera,(/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino/i.test(e)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|
1sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(e.substr(0,4)))&&(t=!0),!t&&/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini|Windows Phone/i.test(window.navigator.userAgent)&&(t=!0),t},R=null;class H extends i.Component{constructor(e){super(e),this.isSafari=/^((?!chrome|android).)*safari/i.test(window.navigator.userAgent),this.isIpad=/Macintosh/i.test(window.navigator.userAgent)&&window.navigator.maxTouchPoints&&window.navigator.maxTouchPoints>1,this.overlayShow=!1,this.overlayClosed=!1,this.resizeTimer=null,this.state={overlayShow:!1,documentClientHeight:0,windowInnerHeight:0},this.resizeHandler=this.resizeHandler.bind(this),this.touchDownHandler=this.touchDownHandler.bind(this),this.touchUpHandler=this.touchUpHandler.bind(this),this.closeOverlay=this.closeOverlay.bind(this)}componentDidMount(){this.overlayClosed=!1,window.scrollTo(0,0),window.addEventListener("resize",this.resizeHandler,!0),setTimeout(this.resizeHandler,500)}componentWillUnmount(){window.removeEventListener("resize",this.resizeHandler,!0),this.overlayClosed=!1}resizeHandler(){if(this.overlayClosed)return;let e=document.documentElement.clientHeight,t=window.innerHeight,s=t-e<30;this.overlayShow=!!s,this.setState({documentClientHeight:e,windowInnerHeight:t,overlayShow:this.overlayShow})}handleTabGroupBrowsing(e){this.state.windowInnerHeight!==e?null===this.resizeTimer&&(clearTimeout(this.resizeTimer),this.resizeTimer=setTimeout(()=>{window.dispatchEvent(new Event("resize")),this.resizeTimer=null},100)):clearTimeout(this.resizeTimer)}touchDownHandler(){}touchUpHandler(){if(this.overlayClosed)return;let e=document.documentElement.clientHeight,t=window.innerHeight;t-e<=50&&(this.isSafari&&this.handleTabGroupBrowsing(t),window.scrollTo(0,0))}closeOverlay(){this.overlayClosed=!0,this.setState({overlayShow:!1})}render(){return!this.props.isExternalGame&&(navigator.userAgent.toLowerCase().includes("iphone")||window.navigator.userAgent.toLowerCase().includes("ipad")||this.isIpad)?(0,a.jsxs)("div",{id:"ios-swipe-up-fullscreen-wrapper",children:[(0,a.jsx)("div",{id:"swipe-overlay",style:{display:this.state.overlayShow?"block":"none"},onTouchStart:this.touchDownHandler,onTouchEnd:this.touchUpHandler,onMouseDown:this.touchDownHandler,onMouseUp:this.touchUpHandler,children:(0,a.jsxs)("div",{id:"swipe-overlay-content",children:[(0,a.jsx)("p",{id:"swipe-overlay-text",children:"Swipe up for fullscreen"}),(0,a.jsx)("p",{id:"swipe-overlay-button",onClick:this.closeOverlay,children:"CLOSE"}),(0,a.jsx)(n(),{id:"swipe-image",src:g,alt:"swipe image",width:433,height:368})]})}),(0,a.jsx)("div",{id:"ios-swipe-up-fullscreen-wrapper-inner",...this.props.style,children:this.props.children})]}):(0,a.jsx)(a.Fragment,{children:this.props.children})}}H.propTypes={style:m().object,children:m().element.isRequired,isExternalGame:m().bool};class L extends i.Component{constructor(e){super(e),this.gameOrigin=S.D.config.GAME_ORIGIN,this.trustGameOrigins=S.D.config.TRUSTED_ORIGIN,this.isIpad=/Macintosh/i.test(window.navigator.userAgent)&&window.navigator.maxTouchPoints&&window.navigator.maxTouchPoints>1,this.isAppleDevices=/iPhone|iPad|iPod|Mac OS|Macintosh/i.test(window.navigator.userAgent);let t=new URLSearchParams(window.location.search);this.params=Object.fromEntries(t.entries()),window.gameCount?window.gameCount++:window.gameCount=1,this.isFish=!1,this.isFishLoggedIn=!1,(0,u.y6D)(this),this.innerBoddy=null,this.deferTimer=null,this.fishSocketUrl=e.fishSocketUrl?e.fishSocketUrl:S.D.config.FISH_DAFAULT_SCOKET_URL,this.forwardSocketMessage=e=>{this.gameIframeRef&&(console.log("Socket message forwarded to game"),this.sendMessageToGame({GMessage:!0,data:e},"*"))},f.x.socketOn("GMessage",this.forwardSocketMessage),this.handleMessage=e=>{if(console.log("Recieved from iframe: ",e),e.data){if(e.data.action&&(0,u.wnG)(u.LO1),e.data.action===d.Z.CLOSE_GAME_REDIRECT_LOBBY_CALLBACK&&this.props.router.push("/lobby"),this.isFish)switch(e.data.action){case d.Z.GAME_READY:if(this.state.gameReady)return;this.isFishLoggedIn=!0,this.sendMessageToGame(this.props.toggleGC?d.Z.SWITCH_GC_BALANCE:d.Z.SWITCH_FC_BALANCE,"*"),this.sendMessageToGame({GMessage:!0,data:{messageType:"JPSTATUS",initJP:"true",status:this.props.jackpot}},"*"),this.setState({lockTopMenu:!1,gameReady:!0});break;case d.Z.FISH_BALANCE_UPDATE:this.balanceUpdate&&this.balanceUpdate({fcAmount:e.data.points+e.data.prizes,gcAmount:e.data.potentialWinPoints,potentialWinPoints:e.data.potentialWinPoints,entries:e.data.points,winPoints:e.data.prizes,entryBalance:e.data.entryBalance?e.data.entryBalance:0});break;case d.Z.FIRE_GC:this.balanceUpdate&&this.balanceUpdate({betAmount:e.data.value});break;case d.Z.GAME_START_LOADING:this.setState({gameLoading:!0}),this.appHeightHandler(),this.sendMessageToGame({FCConfig:!0,data:{isSoundOn:this.props.soundsStatus,balanceType:this.props.balanceType}},"*"),this.isAppleDevices&&window.dispatchEvent(new Event("resize"));break;case d.Z.BACK_TO_LOBBY:this.props.router.push("/lobby");break;case d.Z.SHOW_TOURNAMENT_RANK:this.props.tournamentInfo?.active?this.props.dialog.show(E.F,{}):(0,b.pF)(e=>{e.active&&this.props.dialog.show(E.F,{})}).catch(e=>{(0,w.Tb)(e),(0,w.uT)("Failed to load tournament",e)});break;case d.Z.SHOW_ERROR:this.props.dialog.show(y.w,{errorType:e.data.buttonAction?e.data.buttonAction:y.Q.ERROR_DIALOG_LOGOUT,errorContent:e.data.content?e.data.content:void 0});break;case d.Z.POPUP_BUY_ON:this.popupBuy&&this.popupBuy(!0);break;case d.Z.POPUP_BUY_OFF:this.popupBuy&&this.popupBuy(!1);break;case d.Z.AUTO_FIRE_ON:case d.Z.AUTO_LOCK_ON:this.setState({lockTopMenu:!0});break;case d.Z.AUTO_FIRE_OFF:case d.Z.AUTO_LOCK_OFF:this.setState({lockTopMenu:!1});break;case d.Z.GET_USER:if(e.isTrusted&&this.trustGameOrigins.includes(e.origin))this.sendMessageToGame({isUser:!0,error:!1,message:"success",user:this.props.user},e.origin);else{let t="The game source is not trusted so the game will not be loaded.\nplease contact us for more information.";this.setState({gameIframeOn:!1}),this.props.dialog.show(y.w,{errorType:y.Q.ERROR_DIALOG_LOGOUT,errorContent:t}),this.sendMessageToGame({isUser:!0,error:!0,message:t,user:null},e.origin)}}else if(u.jzA.includes(this.state.gameInfo?.externalProvider))switch(e.data){case d.Z.KA_GAME_CLOSE_GAME:case d.Z.BOOMING_GAME_CLOSE_GAME:this.props.router.push("/lobby");break;default:this.state.gameInfo.externalProvider===u.HCb.Galaxsys&&e?.data?.type===d.Z.GALAXYS_CLOSE_GAME&&this.props.router.push("/lobby"),this.state.gameInfo.externalProvider===u.HCb.Mancala&&e?.data?.type===d.Z.MANCALA_LOBBY&&this.props.router.push("/lobby")}else switch(e.data.action){case d.Z.GAME_READY:this.sendMessageToGame(this.props.toggleGC?d.Z.SWITCH_GC_BALANCE:d.Z.SWITCH_FC_BALANCE,"*"),this.sendMessageToGame(this.props.soundsStatus?d.Z.AUDIO_SWITCH_ON:d.Z.AUDIO_SWITCH_OFF),this.setState({lockTopMenu:!1,gameReady:!0});break;case d.Z.GAME_SPIN_START:this.setState({lockTopMenu:!0}),this.balanceUpdate&&this.balanceUpdate(e.data);break;case d.Z.GAME_SPIN_END_WITHOUT_UNLOCK_TOPMENU:this.setState({lockTopMenu:!0}),this.props.dispatch((0,u.Hvz)(null)),this.balanceUpdate&&this.balanceUpdate(e.data);break;case d.Z.GAME_SPIN_END:this.setState({lockTopMenu:!1}),this.props.dispatch((0,u.Hvz)(e.data.specialEvent)),this.balanceUpdate&&this.balanceUpdate(e.data);break;case d.Z.POPUP_BUY_ON:this.popupBuy&&this.popupBuy(!0,e.data.insufficientMessage);break;case d.Z.POPUP_BUY_OFF:this.popupBuy&&this.popupBuy(!1);break;case d.Z.GAME_START_LOADING:this.setState({gameLoading:!0}),this.isAppleDevices&&window.dispatchEvent(new Event("resize"));break;case d.Z.SHOW_TOURNAMENT_RANK:if(this.props.tournamentInfo?.active){if(this.deferTimer)return;this.deferTimer=setTimeout(()=>{this.props.dialog.show(E.F,{}),this.deferTimer=null},500)}else(0,b.pF)(e=>{e.isActive&&this.props.dialog.show(E.F,{})}).catch(e=>{(0,w.Tb)(e),(0,w.uT)("Failed to load tournament",e)});break;case d.Z.SHOW_ERROR:this.props.dialog.show(y.w,{errorType:e.data.buttonAction?e.data.buttonAction:y.Q.ERROR_DIALOG_LOGOUT,errorContent:e.data.content?e.data.content:void 0});break;case d.Z.GET_USER:if(e.isTrusted&&this.trustGameOrigins.includes(e.origin))this.sendMessageToGame({isUser:!0,error:!1,message:"success",user:this.props.user},e.origin);else{let t="The game source is not trusted so the game will not be loaded.\nplease contact us for more information.";this.setState({gameIframeOn:!1}),this.props.dialog.show(y.w,{errorType:y.Q.ERROR_DIALOG_LOGOUT,errorContent:t}),this.sendMessageToGame({isUser:!0,error:!0,message:t,user:null},e.origin)}break;case d.Z.GET_BG:this.sendMessageToGame({isBG:!1});break;case d.Z.IFRAME_LOGOUT_DONE:this.props.router.push("/lobby")}}},this.appHeightHandler=()=>{let e=document.documentElement;(x()||this.isIpad)&&(e.style.setProperty("--app-height",`${window.innerHeight}px`),document.getElementById("gameplay-container").style.height="var(--app-height)")},this.themeNumber=e.themeNumber,this.iconNumber=e.iconNumber,this.isFish=this.iconNumber===A.Z.EMILYS_TREASURE.IconId;let s="true"===P.env.REACT_APP_DEV_ENV;this.params.hideLoader&&"true"===this.params.hideLoader?s=!0:this.params.hideLoader&&"false"===this.params.hideLoader&&(s=!1),this.state={lockTopMenu:!0,gameLoading:!1,gameReady:!1,hideLoader:s,gameInfo:null,iframeKey:0,forbiddenShow:!1,gameIframeOn:!0,forbiddenMessage:"",redirectUrl:null,externalProviderType:null},this.skylineParams={showCurrency:"true",isDollar:"true",socialUI:"true",themeNumber:this.themeNumber,iconNumber:this.iconNumber,res:"high",sweepName:"SC",productName:"GC"},(0,u.s07)()?this.skylineParams.demo="true":this.skylineParams.demo="false","true"===P.env.REACT_APP_LOCAL_DEMO&&(this.skylineParams.demo="true"),x()&&(this.skylineParams.res="med"),this.fishParams={isSLNG:"true",themeId:this.themeNumber,socketURL:this.fishSocketUrl,sweepName:"SC",productName:"GC",isDollar:"true"},this.gameIframeRef=i.createRef(),this.bindBalanceUpdateFunc=e=>{this.balanceUpdate=e},this.timer=null,this.onTokenRefreshed=this.onTokenRefreshed.bind(this),this.popupBuy=this.popupBuy.bind(this),this.generateGameUrlParameters=this.generateGameUrlParameters.bind(this),this.sendBuySuccess=this.sendBuySuccess.bind(this),this.sendBuyFailed=this.sendBuyFailed.bind(this),this.isScreenLockSupported=this.isScreenLockSupported.bind(this),this.get
1ScreenLock=this.getScreenLock.bind(this),this.releaseLock=this.releaseLock.bind(this),this.clearSpecialEvent=this.clearSpecialEvent.bind(this),this.externalGameInitialization=this.externalGameInitialization.bind(this),this.renderGame=this.renderGame.bind(this)}sendMessageToGame(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"*",s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0,a=this.gameIframeRef.current?.contentWindow;a&&a.postMessage(e,t,s)}onTokenRefreshed(e){if(!e){(0,w.Tb)(Error("user obj is null, sending user to game is prohibited"));return}this.trustGameOrigins.includes(this.gameOrigin)?this.sendMessageToGame({isUser:!0,error:!1,message:"",user:e},this.gameOrigin):(this.sendMessageToGame({isUser:!0,error:!0,message:"The game source is not trusted so the user information is not transferred.",user:null},"*"),(0,w.Tb)(Error("Trying to update the user to games but the game origin cannot be trusted.")))}popupBuy(e,t){e&&this.props.dialog.show(I,{message:t})}onOrientationChangeHandler(){this.isAppleDevices&&window.dispatchEvent(new Event("resize"))}generateGameUrlParameters(){for(let e in S.D.config.IsRuntime&&S.D.config.IS_PROD&&(delete this.params.stops,delete this.params.stop,delete this.params.demo),this.skylineParamsString="?",this.fishParamsString="?",this.skylineParams={showCurrency:"true",isDollar:"true",socialUI:"true",themeNumber:this.themeNumber,iconNumber:this.iconNumber,res:"high",sweepName:"SC",productName:"GC"},this.fishParams={isSLNG:"true",themeId:this.themeNumber,socketURL:this.fishSocketUrl,sweepName:"SC",productName:"GC",isDollar:"true"},this.skylineParams.apiUrl=S.D.config.API_URL+"api/",x()&&(this.skylineParams.res="med"),(0,u.s07)()?this.skylineParams.demo="true":this.skylineParams.demo="false","true"===P.env.REACT_APP_LOCAL_DEMO&&(this.skylineParams.demo="true"),this.skylineParams={...this.skylineParams,...this.params},this.fishParams={...this.fishParams,...this.params},this.skylineParams)this.skylineParamsString+=e,this.skylineParamsString+="=",this.skylineParamsString+=this.skylineParams[e],this.skylineParamsString+="&";for(let e in this.fishParams)this.fishParamsString+=e,this.fishParamsString+="=",this.fishParamsString+=this.fishParams[e],this.fishParamsString+="&"}sendBuySuccess(){this.sendMessageToGame(d.Z.PAYMENT_SUCCESS,"*"),this.externalGameInitialization()}sendBuyFailed(){this.sendMessageToGame(d.Z.PAYMENT_FAILED,"*")}isScreenLockSupported(){return"wakeLock"in window.navigator}getScreenLock(){this.isScreenLockSupported()&&window.navigator.wakeLock.request("screen").then(e=>{R=e}).catch(e=>{(0,w.Tb)(Error(e.name+e.message))})}releaseLock(){null!=R&&R.release().then(()=>{R=null})}async initGame(){try{if(!await (0,b.Sj)(this.themeNumber)){this.props.dialog.show(y.w,{errorType:y.Q.ERROR_DIALOG_GO_BACK_TO_LOBBY});return}let e=await (0,b.uS)();if(!e||!e.metaList||!e.metaList.length)throw Error("Failed to get the metalist");let t=e.metaList.find(e=>String(e.themeNumber)===String(this.themeNumber));if(!t)throw Error("the theme number is not found in meta list: "+this.themeNumber);if(this.generateGameUrlParameters(),this.setState({gameInfo:t}),u.Eg3.includes(t.externalProvider)){let e=await (0,b.P8)({themeId:t.themeNumber,currency:this.props.toggleGC?2:1,variant:x()?"mobile":"desktop"});if(e.redirectUrl)this.setState({iframeKey:this.state.iframeKey+1,redirectUrl:e.redirectUrl,gameReady:!0,lockTopMenu:!1,externalProviderType:t.externalProvider});else throw Error("redirectUrl not found");this.props.dispatch((0,u.FTJ)(!0)),(0,u.wnG)(u.LO1)}[...u.fKs,...u.Eg3].includes(t.externalProvider)&&this.getScreenLock()}catch(e){this.props.dialog.show(y.w,{errorType:y.Q.ERROR_DIALOG_GO_BACK_TO_LOBBY}),(0,w.uT)(e)}window.addEventListener("message",this.handleMessage,!0),window.addEventListener("resize",this.appHeightHandler,!0),window.addEventListener("orientationchange",this.onOrientationChangeHandler,!0),setTimeout(this.appHeightHandler,500),this.state.gameLoading||this.state.gameReady||(this.timer=setTimeout(()=>{if(!this.state.gameLoading&&!this.state.gameReady){let e=null;this.isFish,e=this.gameIframeRef,this.props.dialog.show(y.w,{errorType:y.Q.ERROR_DIALOG_GO_BACK_TO_LOBBY}),(0,w.uT)("Game load time out exceed - 90000ms: "+(e?.current?.contentDocument?.readyState?e?.current?.contentDocument?.readyState:"No ready state")+"|"+(window.document.hidden?"hidden":"focus"))}},9e4))}componentDidMount(){this.initGame()}componentWillUnmount(){(0,u.y6D)(null),this.sendMessageToGame(d.Z.LEAVING_GAME,"*"),this.props.dispatch((0,u.FTJ)(!1)),(0,u.wnG)(u.LO1),window.removeEventListener("message",this.handleMessage,!0),window.removeEventListener("resize",this.appHeightHandler,!0),window.removeEventListener("orientationchange",this.onOrientationChangeHandler,this),R&&this.releaseLock(),this.timer&&clearTimeout(this.timer),f.x.socketOff("GMessage",this.forwardSocketMessage),this.clearSpecialEvent(),window.gameCount>=10&&this.isAppleDevices&&setTimeout(window.location.reload()),v.Z.isInLogoutProcess()||(0,_.uD)(),this.deferTimer&&clearTimeout(this.deferTimer)}clearSpecialEvent(){this.props.dispatch((0,u.Hvz)(null))}componentDidUpdate(e,t){e.balanceType!==this.props.balanceType&&this.externalGameInitialization(),t.gameReady!==this.state.gameReady&&!0===this.state.gameLoading&&u.$02.onGameReady()}externalGameInitialization(){u.Eg3.includes(this.state.externalProviderType)&&(this.setState({lockTopMenu:!0}),(0,b.P8)({themeId:this.state.gameInfo.themeNumber,currency:this.props.balanceType,variant:x()?"mobile":"desktop"}).then(e=>{if(e.redirectUrl)this.setState({iframeKey:this.state.iframeKey+1,redirectUrl:e.redirectUrl,gameReady:!0,lockTopMenu:!1,externalProviderType:this.state.gameInfo.externalProvider});else throw Error("redirectUrl not found")}).catch(e=>{this.props.dialog.show(y.w,{errorType:y.Q.ERROR_DIALOG_GO_BACK_TO_LOBBY}),(0,w.uT)(e)}).finally(()=>{this.setState({lockTopMenu:!1})}))}renderGame(){if(0===this.state.gameInfo.gameOrigin)return(0,a.jsx)("iframe",{allow:"autoplay",ref:this.gameIframeRef,id:"game-iframe",src:this.gameOrigin+"/Game/"+this.skylineParamsString,"data-testid":this.state.gameInfo.themeId},"gameiframe"+this.state.iframeKey);if(1!==this.state.gameInfo.gameOrigin)return(0,a.jsx)("iframe",{allow:"autoplay",ref:this.gameIframeRef,id:"game-iframe",src:this.gameOrigin+"/Game/"+this.skylineParamsString},"gameiframe"+this.state.iframeKey);switch(this.state.gameInfo.externalProvider){case u.HCb.FcGame:return(0,a.jsx)("iframe",{ref:this.gameIframeRef,allow:"autoplay",id:"game-iframe",src:"true"===P.env.REACT_APP_LOCAL_FISH?this.gameOrigin+"/fish/games/fish/index.html"+this.fishParamsString:this.gameOrigin+"/fish/games/fish/index.html/"+this.fishParamsString,"data-testid":this.state.gameInfo.themeId},"gameiframe"+this.state.iframeKey);case u.HCb.PongGame:return(0,a.jsx)("iframe",{allow:"screen-wake-lock autoplay",ref:this.gameIframeRef,id:"game-iframe",src:this.gameOrigin+"/pong/"+this.skylineParamsString,"data-testid":this.state.gameInfo.themeId},"gameiframe"+this.state.iframeKey);case u.HCb.Markor:return(0,a.jsx)("iframe",{allow:"geolocation *; bluetooth *; accelerometer *; gyroscope *; fullscreen *",ref:this.gameIframeRef,id:"game-iframe",src:this.state.redirectUrl,"data-testid":this.state.gameInfo.themeId},"gameiframe"+this.state.iframeKey);case u.HCb.MascotGame:case u.HCb.EvoGame:case u.HCb.BoomingGame:case u.HCb.RelaxGame:case u.HCb.KaGame:case u.HCb.SlotMillGame:case u.HCb.FilsGame:case u.HCb.OnlyPlay:case u.HCb.Pragmatic:case u.HCb.Gamzix:case u.HCb.Elbet:case u.HCb.Raw:case u.HCb.Galaxsys:case u.HCb.Caleta:case u.HCb.Spadegaming:case u.HCb.Turbogames:case u.HCb.Spinmatic:case u.HCb.Mancala:case u.HCb.Spinoro:case u.HCb.Infin:case u.HCb.Platipus:case u.HCb.RedRake:case u.HCb.Barbarabang:case u.HCb.Softswiss:case u.HCb.ArrowsEdge:case u.HCb.Netgaming:case u.HCb.FormulaSpin:case u.HCb.RubyPlay:case u.HCb.ESAGaming:case u.HCb.GameTech:case u.HCb.Hub88:case u.HCb.Octopus:case u.HCb.JackTop:case u.HCb.LuckyMonaco:case u.HCb.OneGameHub:case u.HCb.Swintt:case u.HCb.Spinomenal:case u.HCb.EdgeLabs:case u.HCb.EdgeLabConnect:case u.HCb.Vivo:case u.HCb.Kahzuu:case u.HCb.FaChai:case u.HCb.JILI:case u.HCb.N2:case u.HCb.Yggdrasil:return(0,a.jsx)("iframe",{allow:"screen-wake-lock autoplay",ref:this.gameIframeRef,id:"game-iframe",src:this.state.redirectUrl,"data-testid":this.state.gameInfo.themeId},"gameiframe"+this.state.iframeKey);default:return this.props.dialog.show(y.w,{errorType:y.Q.ERROR_DIALOG_GO_BACK_TO_LOBBY,errorContent:"The game does not exist. Please contact customer support."}),(0,a.jsx)("p",{children:"Game not exists"})}}render(){let e=this.state.gameInfo&&!u.Eig.has(this.state.gameInfo.externalProvider),t=e&&u.UAn.has(this.state.gameInfo.externalProvider),s=e&&!u.UAn.has(this.state.gameInfo.externalProvider);return(0,a.jsxs)("div",{children:[t&&(0,a.jsxs)("div",{className:"orientation-detection-content orientation-detection-content-rotate-to-vertical",children:[(0,a.jsx)("div",{className:"orientation-detection-content-phone-container",children:(0,a.jsx)("div",{className:"phone phone-rotate-to-vertical",children:(0,a.jsx)("i",{className:"fa fa-repeat"})})}),(0,a.jsx)("p",{className:"orientation-text",children:"Rotate your device"})]}),s&&(0,a.jsxs)("div",{className:"orientation-detection-content orientation-detection-content-rotate-to-horizontal",children:[(0,a.jsx)("div",{className:"orientation-detection-content-phone-container",children:(0,a.jsx)("div",{className:"phone phone-rotate-to-horizontal",children:(0,a.jsx)("i",{className:"fa fa-repeat"})})}),(0,a.jsx)("p",{className:"orientation-text",children:"Rotate your device"})]}),(0,a.jsx)(H,{style:{display:"flex",flexdirection:"column"},isExternalGame:null===this.state.gameInfo||this.state.gameInfo&&[...u.Eg3,...u.fKs].includes(this.state.gameInfo.externalProvider),children:(0,a.jsxs)("div",{id:"gameplay-container","data-testid":(0,C.Q)("pages.play.root"),children:[!this.state.hideLoader&&(0,a.jsx)(l.Z,{className:this.state.gameLoading||this.state.gameReady?"hidden":"show"}),(0,a.jsx)(T.Z,{isInGame:!0,bindBalanceUpdateFunc:this.bindBalanceUpdateFunc,externalProvider:this.state.gameInfo?this.state.gameInfo.externalProvider:null,locked:this.state.lockTopMenu,isFish:this.isFish,specialEvent:this.props.specialEvent,clearSpecialEvent:this.clearSpecialEvent}),this.state.gameInfo?this.renderGame():(0,a.jsx)("p",{children:"waiting game info"})]})})]})}}L.propTypes={socketConnection:m().shape({on:m().func,off:m().func}),fishSocketUrl:m().string,toggleGC:m().bool,jackpot:m().array.isRequired,specialEvent:m().string,dispatch:m().func,location:m().object,soundsStatus:m().bool,balanceType:m().number,user:m().object.isRequired,tournamentInfo:m().object.isRequired,themeNumber:m().string.isRequired,iconNumber:m().string.isRequired,router:m().object,dialog:m().shape({show:m().func}).isRequired};var N=(0,p.qC)((0,h.$j)(e=>({user:e.oidc.user,jackpot:e.user.jackpot,toggleGC:e.header.toggle,specialEvent:e.gameplay.specialEvent,soundsStatus:e.gameplay.soundsOn,balanceType:e.header.toggle?2:1,tournamentInfo:e.apiData.tournamentInfo}),function(e){return{dispatch:e}},null,{forwardRef:!0}))(function(e,t,s,r){let n=r=>{let n=s(r),o=(0,i.useMemo)(()=>n,[n]),h={...r,...(0,u.UhV)(t)?{[t]:o}:{}};return(0,a.jsx)(e,{...h,"data-sentry-element":"Component","data-sentry-component":"WrappedComponent","data-sentry-source-file":"withHook.tsx"})};return n.displayName=`with-${t}(${e.displayName||e.name})`,n}((0,o.withRouter)(L),"dialog",k.Y)),U=s(35406),M=s(51942),B=s(96527),D=s(38313);let j=(0,U.Z)(()=>{(0,O.wk)([B.D]),(0,O.rY)([D.H]);let e=(0,o.useRouter)(),[t,s]=(0,i.useState)(""),[r,n]=(0,i.useState)("");return((0,i.useEffect)(()=>
1{if(!e.isReady)return;let[t,a]=Array.isArray(e.query?.ids)?e.query?.ids:[];t&&s(t),a&&n(a)},[e.isReady]),t&&r)?(0,a.jsx)(N,{iconNumber:r,themeNumber:t}):(0,a.jsx)(l.Z,{})});j.Layout=M.Tp;var F=!0,Z=j},79094:function(){},17560:function(){},18520:function(){}},function(e){e.O(0,[2888,9774,179],function(){return e(e.s=32568)}),_N_E=e.O()}]);
2//# sourceMappingURL=[...ids]-70496aa381e14f79.js.map

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.