{"version":3,"sources":["scripts/InitSideGameConsolePage.js"],"names":["OBJSIDEGAMEIN","CasinoCDN","CasinoImageGameCDN","CasinoMobileDevice","LastUpdate","enableSquareLayout","getLastPlayedSidegame","localStorage","getItem","JSON","parse","saveLastSidegame","idGame","idProvider","setItem","stringify","SetSideGameConsole","obj","$","support","cors","ajax","url","type","contentType","dataType","async","crossDomain","success","response","CasinoCDNImageGame","CasinoRevision","Revision","CasinoMinify","Minify","rel","href","appendTo","getScripts","getSideGames","names","callback","received","realCallback","length","i","cache","result","urlReq","restCall","setSideGames","$HtmlHeader","append","$HtmlSideGames","$HtmlData","wf","container","width","p","UrlSideGame","sID","lastPlayedSidegame","getAspectRatio","hf","each","v","newLabel","isSideTagExpired","SideGame","NewExpire","IdGame","IdProvider","Game","getSideProviderResource","Img","html","addCss","Swiper","slidesPerView","spaceBetween","pagination","el","dynamicBullets","dynamicMainBullets","autoplay","delay","disableOnInteraction","loop","sendFrameHeight","tooltip","setTimeout","window","parent","postMessage","iframeHeight","height","SetGame","attr","css","top","GetSideCardGame","json","animate","$HtmlGame","$HtmlNew","$HtmlJackpot","clickgame","$HtmlAdd","ExclusiveExpire","$HtmlInfo","addClass","InEvidenza","Jackpot","img","location","addSuffix","addPath","indexOf","ProviderResource","toLowerCase","replace","lzw_encode","s","currChar","dict","data","split","out","phrase","code","push","charCodeAt","String","fromCharCode","join","lzw_decode","oldPhrase","currCode","charAt","showPreloadCnt","show","hidePreloadCnt","hide","date","dateNow","Date","dateExpire","getTime"],"mappings":"AAAA,IAAIA,cAAeC,UAAY,KAAMC,mBAAqB,KAAMC,oBAAqB,EAAOC,WAAa,GACrGC,oBAAqB,EACzB,SAASC,wBACL,GAAyB,oBAAd,SACHC,aAAaC,QAAQ,gBACrB,OAAOC,KAAKC,MAAMH,aAAaC,QAAQ,iBAOnD,SAASG,iBAAiBC,EAAQC,GACL,oBAAd,SACPN,aAAaO,QAAQ,eAAgBL,KAAKM,UAAU,CAAEH,OAAQA,EAAQC,W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AW,IACFZ,EAAKhF,GAGL+E,EAAKa,GAAYb,EAAKa,GAAaD,EAAYb,EAE5DI,EAAIG,KAAKF,GACTL,EAAWK,EAAOU,OAAO,GACzBd,EAAKK,GAAQO,EAAYb,EACzBM,IACAO,EAAYR,EAEhB,OAAOD,EAAIO,KAAK,IAEpB,SAASK,iBACLzH,EAAE,YAAY0H,OAElB,SAASC,iBACL3H,EAAE,YAAY4H,OAIlB,SAAS3E,iBAAiB4E,GACtB,IAAIC,EAAU,IAAIC,KACdC,EAAa,IAAID,KAAY,IAAPF,GAC1B,OAAIC,EAAQG,UAAYD,EAAWC","sourcesContent":["var OBJSIDEGAMEIN, CasinoCDN = null, CasinoImageGameCDN = null, CasinoMobileDevice = false, LastUpdate = \"\"; \r\nvar enableSquareLayout = true; \r\nfunction getLastPlayedSidegame() {\r\n if (typeof (Storage) !== \"undefined\") { \r\n if (localStorage.getItem(\"LastSidegame\")) {\r\n return JSON.parse(localStorage.getItem(\"LastSidegame\"));\r\n }\r\n }\r\n \r\n return undefined;\r\n}\r\n\r\nfunction saveLastSidegame(idGame, idProvider) {\r\n if (typeof (Storage) !== \"undefined\") {\r\n localStorage.setItem(\"LastSidegame\", JSON.stringify({ idGame: idGame, idProvider: idProvider}))\r\n }\r\n}\r\n\r\nfunction SetSideGameConsole(obj) {\r\n OBJSIDEGAMEIN = obj; \r\n $.support.cors = true;\r\n $.ajax({\r\n url: obj.url + \"rest/configurationbetflag\",\r\n type: \"GET\",\r\n contentType: \"application/json; charset=utf-8\",\r\n dataType: \"json\",\r\n async: true,\r\n crossDomain: true,\r\n success: function (response) {\r\n LastUpdate = response[0].LastUpdate; \r\n CasinoCDN = response[0].CasinoCDN;\r\n CasinoImageGameCDN = response[0].CasinoCDNImageGame; \r\n var CasinoRevision = response[0].Revision; \r\n var CasinoMinify = response[0].Minify;\r\n \r\n $('', {\r\n rel: 'stylesheet',\r\n type: 'text/css',\r\n href: CasinoCDN + 'styles/SideGameConsoleNew' + CasinoMinify +'.css' + CasinoRevision\r\n }).appendTo('head');\r\n var scriptToAdd = [\r\n CasinoCDN + \"scripts/plugin/LazyLoad.js\",\r\n CasinoCDN + \"scripts/ajax.js\" + CasinoRevision,\r\n ];\r\n\r\n getScripts(scriptToAdd, getSideGames)\r\n \r\n // getSideGames(response);\r\n }\r\n });\r\n}\r\n\r\nfunction getScripts(names, callback) {\r\n var received = 0;\r\n var realCallback = function () {\r\n received++;\r\n if (received === names.length) {\r\n $(callback);\r\n }\r\n };\r\n for (var i = 0; i < names.length; i++) { \r\n $.ajax({\r\n cache: true,\r\n url: names[i],\r\n dataType: 'script',\r\n success: realCallback\r\n });\r\n }\r\n}\r\n\r\nfunction getSideGames(result) {\r\n var urlReq = OBJSIDEGAMEIN.url + \"rest/sidegames/0\";\r\n restCall(urlReq, setSideGames); \r\n}\r\n\r\nfunction setSideGames(result) {\r\n var $HtmlHeader = $(\"
\");\r\n $HtmlHeader.append(\"