{"version":3,"sources":["scripts/SideGameConsoleNew.js"],"names":["LastUpdate","CasinoCDN","CasinoImageGameCDN","jsonInfoGame","jsonInfoSession","JsonActionGame","INTERVALPLAYCASINO","WalletToken","lockSetPlayGame","gID","pID","sID","GetPlayGame","IdGame","IdProvider","IdTavolo","hideErrorMessage","showPreloadGame","$","hide","dataPar","getSid","ajaxCall","EndGetPlayGame","SetPlayGame","TypePlay","clearInterval","getProvenienza","EndSetPlayGame","result","each","d","i","v","jQuery","extend","Retcode","launchGame","parseFloat","SaldoBonus","MinBet","scelta_bonus","setCartSidegames","cart","find","html","SaldoPrint","SaldoBonusPrint","getSideProviderLogo","attr","getSideProviderResource","Img","show","hidePreloadGame","checkMultiCall","Typeplay","showSwitchToRealButton","hideSwitchToRealButton","Url","Html","showMaintenanceMessage","showErrorMessage","SwitchToReal","jsonInfoPreviosGame","TO_IsGiocataBonus","idProvider","img","location","indexOf","ProviderResource","toLowerCase","replace","prop","endGame","getUserBalance","setInterval","token","Token","provider","game","wtoken","Ticketaams","TOCassa","TO_Cassa","TOTurnover","TO_Turnover","checkCashOutButton","forceEndSideGame","eIP","eIT","showPreloadCnt","hidePreloadCnt","msg","addClass","text","removeClass","logRequest","data","console","log","urlParams","name","results","RegExp","exec","window","href","decodeURI","document","ready","remove","addEventListener","event","JSON","parse","stringify","closeGame","e"],"mappings":"AAAA,IACIA,WAAYC,UAAWC,mBADvBC,aAAe,GAAIC,gBAAkB,GAAIC,eAAiB,GAAIC,mBAAqB,KAEnFC,YAAc,GAAIC,iBAAkB,EACpCC,IAAM,KAAMC,IAAM,KAAMC,IAAM,KA0ClC,SAASC,YAAYC,EAAQC,EAAYC,GACrCC,mBACAC,kBACAC,EAAE,oBAAoBC,OACN,MAAZJ,IAAoBA,EAAW,IACnC,IAAIK,EAAU,cAAmBP,EAAS,oBAA0BC,EAAa,kBAAwBC,EAAW,sBAA4BM,SAAW,qBAA2Bd,YAAc,KACpMe,SAAS,0BAA2BF,EAASG,gBAAgB,GA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BlF,EAAEkF,UAAU,SACZlF,EAAE,QAAQ2E,SAAS,YAEZ,MAAPlF,MACAO,EAAE,gBAAgB4F,SACdrG,KAAOC,KACPE,YAAYH,IAAKC,IAAK,KAI9B+F,OAAOM,iBAAiB,UAAYC,IAChC,IACsBC,KAAKC,MAAMD,KAAKE,UAAUH,EAAMf,OAElCmB,WACZ3C,UAEN,MAAM4C,OAGT","sourcesContent":["var jsonInfoGame = [], jsonInfoSession = [], JsonActionGame = [], INTERVALPLAYCASINO = null;\r\nvar LastUpdate, CasinoCDN, CasinoImageGameCDN;\r\nvar WalletToken = \"\", lockSetPlayGame = false;\r\nvar gID = null, pID = null, sID = null;\r\n$.urlParams = function (name) {\r\n var results = new RegExp('[\\?&]' + name + '=([^&#]*)').exec(window.location.href);\r\n if (results == null) {\r\n return null;\r\n }\r\n else {\r\n return decodeURI(results[1]) || 0;\r\n }\r\n}\r\n\r\n$(document).ready(function () { \r\n gID = $.urlParams(\"gID\");\r\n pID = $.urlParams(\"pID\");\r\n sID = $.urlParams(\"sID\");\r\n if ($.urlParams(\"init\") != null) {\r\n $(\"body\").addClass(\"roulette\");\r\n }\r\n if (sID != null) {\r\n $(\".alert-login\").remove();\r\n if (gID && pID) {\r\n GetPlayGame(gID, pID, \"\");\r\n }\r\n }\r\n\r\n window.addEventListener(\"message\", (event) => {\r\n try {\r\n var parsedEvent = JSON.parse(JSON.stringify(event.data));\r\n\r\n if (parsedEvent.closeGame) {\r\n endGame();\r\n }\r\n } catch(e) {\r\n \r\n }\r\n }, false);\r\n});\r\n\r\n// window.addEventListener('unload', function (event) { \r\n// forceEndSideGame(jsonInfoGame.IdProvider, JsonActionGame.Ticketaams, jsonInfoSession.Token);\r\n// });\r\n\r\nfunction GetPlayGame(IdGame, IdProvider, IdTavolo) {\r\n hideErrorMessage();\r\n showPreloadGame();\r\n $(\"#typePlayChooser\").hide();\r\n if (IdTavolo == null) { IdTavolo = \"\"; }\r\n var dataPar = \"{\\\"IdGame\\\":\\\"\" + IdGame + \"\\\", \\\"IdProvider\\\":\\\"\" + IdProvider + \"\\\", \\\"IdTavolo\\\":\\\"\" + IdTavolo + \"\\\", \\\"SessionToken\\\":\\\"\" + getSid() + \"\\\", \\\"WalletToken\\\":\\\"\" + WalletToken + \"\\\"}\";\r\n ajaxCall(\"WSPlay.asmx/GetPlayGame\", dataPar, EndGetPlayGame, false);\r\n}\r\nfunction SetPlayGame(TypePlay) {\r\n clearInterval(INTERVALPLAYCASINO);\r\n INTERVALPLAYCASINO = null;\r\n if (!lockSetPlayGame) {\r\n lockSetPlayGame = true;\r\n var dataPar = \"{\\\"IdGame\\\":\\\"\" + jsonInfoGame.IdGame + \"\\\", \\\"IdProvider\\\":\\\"\" + jsonInfoGame.IdProvider + \"\\\", \\\"IdTavolo\\\":\\\"\" + jsonInfoGame.IdTavolo + \"\\\", \\\"SessionToken\\\":\\\"\" + getSid() + \"\\\", \\\"Amount\\\":\\\"0\\\", \\\"TypePlay\\\":\\\"\" + TypePlay + \"\\\", \\\"WalletToken\\\":\\\"\" + WalletToken + \"\\\", \\\"Provenienza\\\":\\\"\" + getProvenienza() + \"\\\"}\";\r\n ajaxCall(\"WSPlay.asmx/SetPlayGame\", dataPar, EndSetPlayGame, true);\r\n }\r\n}\r\nfunction EndGetPlayGame(result) {\r\n var jsonInfoPreviosGame = jsonInfoGame;\r\n $.each(result.d, function (i, v) {\r\n if (v[\"InfoGame\"] != null) {\r\n jsonInfoGame = jQuery.extend(true, {}, v[\"InfoGame\"]);\r\n }\r\n if (v[\"InfoSession\"] != null) {\r\n jsonInfoSession = jQuery.extend(true, {}, v[\"InfoSession\"]);\r\n WalletToken = jsonInfoSession.WalletToken;\r\n }\r\n if (v[\"ActionGame\"] != null) {\r\n JsonActionGame = jQuery.extend(true, {}, v[\"ActionGame\"]);\r\n }\r\n }); \r\n\r\n if (JsonActionGame.Retcode == 1023) {\r\n launchGame();\r\n } else {\r\n var typePlay = \"3\";\r\n if ((parseFloat(jsonInfoSession.SaldoBonus) > 0 && (parseFloat(jsonInfoSession.SaldoBonus) >= parseFloat(jsonInfoGame.MinBet)) && jsonInfoGame.scelta_bonus == \"1\")) {\r\n typePlay = \"2\";\r\n setCartSidegames();\r\n }\r\n else {\r\n typePlay = \"3\";\r\n SetPlayGame(typePlay);\r\n }\r\n\r\n // SetPlayGame(typePlay);\r\n }\r\n}\r\n\r\nfunction setCartSidegames() {\r\n var cart = $(\"#cartSidegames\");\r\n $(cart).find(\".amount h3\").html(jsonInfoSession.SaldoPrint);\r\n $(cart).find(\".amountbonus h3\").html(jsonInfoSession.SaldoBonusPrint);\r\n $(cart).find(\"span.provider-icon\").html(\"\");\r\n $(cart).find(\".imgGame\").attr(\"src\", getSideProviderResource(jsonInfoGame.IdProvider, jsonInfoGame.Img, \"cart\"));\r\n $(cart).show();\r\n $(\"#IframeGame\").hide();\r\n hidePreloadGame();\r\n}\r\nfunction EndSetPlayGame(result) {\r\n hidePreloadGame();\r\n hideErrorMessage();\r\n lockSetPlayGame = false;\r\n var checkMultiCall = false;\r\n $.each(result.d, function (i, v) {\r\n if (v[\"MultiCall\"] != null) {\r\n checkMultiCall = true;\r\n }\r\n });\r\n if (!checkMultiCall) {\r\n $.each(result.d, function (i, v) {\r\n if (v[\"ActionGame\"] != null) {\r\n JsonActionGame = jQuery.extend(true, {}, v[\"ActionGame\"]);\r\n } \r\n });\r\n\r\n if (JsonActionGame.Typeplay == \"2\") {\r\n showSwitchToRealButton();\r\n } else {\r\n hideSwitchToRealButton();\r\n }\r\n\r\n $(\"#cartSidegames\").hide();\r\n switch (JsonActionGame.Retcode) {\r\n case 1024:\r\n case 1023:\r\n if (JsonActionGame.Url != null || JsonActionGame.Html != null) {\r\n launchGame();\r\n // getUserBalance();\r\n }\r\n break;\r\n case 1050:\r\n showMaintenanceMessage(JsonActionGame.Url);\r\n break;\r\n default:\r\n showErrorMessage(\"Si รจ verificato un errore. RetCode: \" + JsonActionGame.Retcode);\r\n break;\r\n }\r\n }\r\n}\r\nfunction SwitchToReal() {\r\n hideErrorMessage();\r\n $(\"#cartSidegames\").hide();\r\n hideSwitchToRealButton();\r\n // $(\"#IframeGame\").prop(\"src\", CasinoSiteUrl + \"index.html\");\r\n showPreloadGame();\r\n var IdTavolo = \"\";\r\n var dataPar = \"{\\\"IdGame\\\":\\\"\" + jsonInfoGame.IdGame + \"\\\", \\\"IdProvider\\\":\\\"\" + jsonInfoGame.IdProvider + \"\\\", \\\"IdTavolo\\\":\\\"\" + IdTavolo + \"\\\", \\\"SessionToken\\\":\\\"\" + getSid() + \"\\\", \\\"WalletToken\\\":\\\"\" + WalletToken + \"\\\"}\";\r\n ajaxCall(\"WSPlay.asmx/GetPlayGame\", dataPar, function (result) {\r\n var jsonInfoPreviosGame = jsonInfoGame;\r\n $.each(result.d, function (i, v) {\r\n if (v[\"InfoGame\"] != null) {\r\n jsonInfoGame = jQuery.extend(true, {}, v[\"InfoGame\"]);\r\n }\r\n if (v[\"InfoSession\"] != null) {\r\n jsonInfoSession = jQuery.extend(true, {}, v[\"InfoSession\"]);\r\n WalletToken = jsonInfoSession.WalletToken;\r\n \r\n }\r\n if (v[\"ActionGame\"] != null) {\r\n JsonActionGame = jQuery.extend(true, {}, v[\"ActionGame\"]);\r\n }\r\n });\r\n \r\n if (JsonActionGame.Retcode == 1023) {\r\n jsonInfoGame = jsonInfoPreviosGame;\r\n if (JsonActionGame.TO_IsGiocataBonus) {\r\n showSwitchToRealButton();\r\n }\r\n launchGame();\r\n } \r\n else \r\n {\r\n SetPlayGame(\"3\");\r\n }\r\n }, true);\r\n}\r\nfunction getSideProviderResource(idProvider, img, location) {\r\n var CasinoCDN = \"https://cdn-ltm.betflag.it/casino/\";\r\n if (img.indexOf(\".svg\") != -1) {\r\n return CasinoCDN + \"image/svg/\" + idProvider + \"/\" + img;\r\n }\r\n // var ProviderResource = CasinoImageGameCDN + \"image/game\";\r\n var ProviderResource = CasinoCDN + \"/image/game\";\r\n switch (location) {\r\n case \"icon\":\r\n ProviderResource += \"/img-xxs/\"\r\n break;\r\n case \"cart\":\r\n ProviderResource += \"/img-xl-square/square/\"\r\n break;\r\n case \"card\":\r\n ProviderResource += \"/img-md-square/square/\";\r\n break;\r\n }\r\n if (img) { img = img.toLowerCase().replace(\".png\", \".jpg\"); }\r\n\r\n return ProviderResource + idProvider + \"/\" + img;\r\n}\r\nfunction getSideProviderLogo(idProvider, img, location) {\r\n var addSuffix = \"\";\r\n var addPath = \"\";\r\n addSuffix = \"-square\";\r\n addPath = \"square/\";\r\n var CasinoCDN = \"https://cdn-ltm.betflag.it/casino/\";\r\n if (img.indexOf(\".svg\") != -1) {\r\n return CasinoCDN + \"/image/svg/\" + idProvider + \"/\" + img;\r\n }\r\n var ProviderResource = CasinoCDN + \"/casino/image/game\";\r\n switch (location) {\r\n case \"icon\":\r\n ProviderResource += \"/img-xxs/\"\r\n break;\r\n case \"cart\":\r\n ProviderResource += \"/img-og/\"\r\n break;\r\n case \"card\":\r\n ProviderResource += \"/img-md\" + addSuffix + \"/\" + addPath;\r\n break;\r\n case \"auto\":\r\n ProviderResource += \"/auto/\"\r\n break;\r\n }\r\n if (img) { img = img.toLowerCase().replace(\".png\", \".jpg\"); }\r\n\r\n return ProviderResource + idProvider + \"/\" + img;\r\n}\r\nfunction launchGame() {\r\n hidePreloadGame();\r\n hideErrorMessage();\r\n if (JsonActionGame.TO_IsGiocataBonus) {\r\n showSwitchToRealButton();\r\n }\r\n $(\"#CasinoGame\").show();\r\n $(\"#IframeGame\").show();\r\n $(\"#IframeGame\").prop('src', JsonActionGame.Url);\r\n}\r\n\r\nfunction endGame() {\r\n // Restart the game\r\n GetPlayGame(jsonInfoGame.IdGame, jsonInfoGame.IdProvider);\r\n}\r\n\r\nfunction getUserBalance() {\r\n INTERVALPLAYCASINO = setInterval(function () {\r\n var token = jsonInfoSession.Token;\r\n if (token == null) {\r\n token = \"\";\r\n }\r\n var provider = jsonInfoGame.IdProvider;\r\n if (provider == null) {\r\n provider = \"\";\r\n }\r\n var game = jsonInfoGame.IdGame;\r\n if (game == null) {\r\n game = \"\";\r\n }\r\n var wtoken = jsonInfoSession.WalletToken;\r\n if (wtoken == null) {\r\n wtoken = \"\";\r\n }\r\n // if ((JsonActionGame.TO_IsGiocataBonus && JsonActionGame.TO_AggiornamentoDinamico) || jsonInfoGame.Sameless == \"1\") {\r\n var Ticketaams = JsonActionGame.Ticketaams;\r\n if (Ticketaams == null) {\r\n Ticketaams = \"\";\r\n }\r\n var TOCassa = JsonActionGame.TO_Cassa;\r\n if (TOCassa == null) {\r\n TOCassa = \"\";\r\n }\r\n var TOTurnover = JsonActionGame.TO_Turnover;\r\n if (TOTurnover == null) {\r\n TOTurnover = \"\";\r\n }\r\n\r\n dataPar = \"{\\\"SessionToken\\\":\\\"\" + token + \"\\\", \\\"IdProvider\\\":\\\"\" + provider + \"\\\", \\\"TicketAAMS\\\":\\\"\" + Ticketaams + \"\\\", \\\"Cassa\\\":\\\"\" + TOCassa + \"\\\", \\\"Turnover\\\":\\\"\" + TOTurnover + \"\\\"}\";\r\n // if (jsonInfoGame.Sameless == \"1\") {\r\n ajaxCall(\"WSPlay.asmx/GetJsonInfoTurnoverUserSameless\", dataPar, checkCashOutButton, false);\r\n // }\r\n // }\r\n }, 3000);\r\n}\r\nfunction checkCashOutButton(result) {\r\n // $(\".btn-cout\").removeAttr(\"disabled\");\r\n}\r\n\r\n// function endGame() {\r\n// SetEndGame();\r\n// }\r\n\r\nfunction forceEndSideGame(eIP, eIT, sID) {\r\n var dataPar = \"{\\\"IdProvider\\\":\\\"\" + eIP + \"\\\", \\\"IdGame\\\":\\\"\\\", \\\"SessionToken\\\":\\\"\" + sID + \"\\\", \\\"ticketAmms\\\":\\\"\" + eIT + \"\\\", \\\"WalletToken\\\":\\\"\\\", \\\"GameUrl\\\":\\\"\\\"}\";\r\n ajaxCall(\"WSPlay.asmx/SetEndGame\", dataPar, function () {}, true);\r\n}\r\n// function SetEndGame() {\r\n// var Ticketaams = JsonActionGame.Ticketaams;\r\n// if (JsonActionGame.Ticketaams == null) {\r\n// Ticketaams = \"\";\r\n// }\r\n// var dataPar = \"{\\\"IdProvider\\\":\\\"\" + jsonInfoGame.IdProvider + \"\\\", \\\"IdGame\\\":\\\"\" + jsonInfoGame.IdGame + \"\\\", \\\"SessionToken\\\":\\\"\" + jsonInfoSession.Token + \"\\\", \\\"ticketAmms\\\":\\\"\" + Ticketaams + \"\\\", \\\"WalletToken\\\":\\\"\" + jsonInfoSession.WalletToken + \"\\\", \\\"GameUrl\\\":\\\"\" + (JsonActionGame.Url ? JsonActionGame.Url.replace(/\\\\/g,\"/\") : JsonActionGame.Url) + \"\\\"}\";\r\n// lockforEndGame = true;\r\n// ajaxCall(\"WSPlay.asmx/SetEndGame\", dataPar, EndendGame, true);\r\n// }\r\n\r\n// function EndendGame(result) {\r\n// lockforEndGame = false;\r\n// // $(\"#CasinoGame\").hide();\r\n// // $(\".cloudClose\").hide();\r\n// // $(\"#GameViewer\").find(\"#userdata\").empty();\r\n// // $(\"#CasinoGame .game-header-top .ticket-infos\").empty();\r\n// // $(\"#GameViewer\").find(\".d-flex-btn-window\").remove();\r\n// // if (jsonInfoSession.Session) {\r\n// // parent.RefreshToolbarClick();\r\n// // } \r\n// GetPlayGame(gID, pID, \"\");\r\n// }\r\nfunction getSid() {\r\n return sID;\r\n}\r\nfunction getProvenienza() { \r\n return \"1\"; \r\n}\r\nfunction showPreloadCnt() {}\r\nfunction hidePreloadCnt() { }\r\nfunction showPreloadGame() {\r\n $(\"#CasinoGame\").find(\".preload\").show();\r\n}\r\nfunction hidePreloadGame() {\r\n $(\"#CasinoGame\").find(\".preload\").hide();\r\n}\r\nfunction showMaintenanceMessage(msg) {\r\n $(\".error-container\").addClass(\"maintenance\");\r\n showErrorMessage(msg);\r\n}\r\nfunction showErrorMessage(msg) {\r\n $(\".error-container\").show();\r\n $(\"#errorMessage\").text(msg);\r\n}\r\n\r\nfunction hideErrorMessage() {\r\n $(\".error-container\").removeClass(\"maintenance\");\r\n $(\".error-container\").hide();\r\n $(\"#errorMessage\").text(\"\");\r\n}\r\nfunction showSwitchToRealButton() {\r\n $(\".btn-switch-real\").show();\r\n $(\".iframe-game\").addClass(\"padding-top\");\r\n}\r\nfunction hideSwitchToRealButton() {\r\n $(\".btn-switch-real\").hide();\r\n $(\".iframe-game\").removeClass(\"padding-top\");\r\n}\r\nfunction logRequest(data) {\r\n if (typeof console != \"undefined\") {\r\n console.log(data);\r\n }\r\n}"],"file":"SideGameConsoleNew.min.js"}