{"version":3,"file":"static/js/service-red-tiger.e3cbedbd.chunk.js","mappings":"yMAIaA,EAAe,qGAiDvB,OAjDuB,gCAIxB,WACI,OAAOC,KAAKC,SAASC,cAAcC,gBAAgBC,SAASC,UAChE,GACA,6BAGA,WACI,OAAOL,KAAKC,SAASC,cAAcC,gBAAgBC,SAASE,iBAChE,GAAC,wCAED,SAAkCC,GAC9BP,KAAKC,SAASO,UAAUC,uBAAuB,aAAa,iBAAkBF,GAAc,YAExFA,IACAP,KAAKC,SAASS,OAAOC,SAAS,EAAG,GACjCX,KAAKC,SAASW,SAASC,KAAKN,GAEpC,GAAC,0BAED,SAAoBO,GAChB,MAAgDA,GAAoB,CAAC,EAAC,IAA/DC,UAAAA,OAAS,MAAG,YAAW,MAAEC,KAAAA,OAAI,MAAG,MAAK,EActCC,EAAWjB,KAAKC,SAASiB,SAASC,oBAAoBC,cACtDC,EAAWrB,KAAKC,SAASoB,SAASC,aAAaF,cAErD,MAAM,GAAN,OAAUpB,KAAKuB,WAAU,wBACjBP,EAAKI,cAAa,sBAClBL,EAAS,mBACTf,KAAKwB,kBAAiB,iBACtBP,EAAQ,qBACRI,EAAQ,cAXE,gBAYD,4BAXM,EAa3B,KAAC,EAjDuB,C,SAASI,E","sources":["app-react/services/red-tiger/red-tiger.service.ts"],"sourcesContent":["import { ServiceBase } from './../ServiceBase';\r\nimport { IRedTigerService } from './red-tiger.service.interface';\r\nimport { RedTigerJackpotWidgetParameters } from '../configurations/config-data-sections/red-tiger-jackpot-widget.configuration';\r\n\r\nexport class RedTigerService extends ServiceBase implements IRedTigerService {\r\n /*\r\n jackPotUrl is configurable from CGP web config\r\n */\r\n private get jackpotUrl(): string {\r\n return this.services.configuration.servicesConfigs.RedTiger.jackPotUrl;\r\n }\r\n /*\r\n jackPotFeedApiUrl is configurable from CGP web config\r\n */\r\n private get jackpotFeedApiUrl(): string {\r\n return this.services.configuration.servicesConfigs.RedTiger.jackPotFeedApiUrl;\r\n }\r\n\r\n public redirectToWidgetActionLink(actionLink: string) {\r\n this.services.analytics.sendOrbitUserFlowEvent(\"Navigation\",'Jackpot_Widget', actionLink || 'RedTiger');\r\n\r\n if (actionLink) {\r\n this.services.window.scrollTo(0, 0);\r\n this.services.location.push(actionLink);\r\n }\r\n }\r\n\r\n public getWidgetUrl(widgetParameters:RedTigerJackpotWidgetParameters) {\r\n const {jackpotId = 'casino888', skin = '888'} = widgetParameters || {};\r\n /*\r\n jackpotId and skin are set inside Orbit admin. \r\n If they are not set (or if the entire object is not set) the default value will be 888 \r\n They are passed to component from the selected arena -> lists -> swipers -> Metadata -> redTigerWidget -> parameters\r\n Example of path: \r\n - $allConfigs.adminConfig.arenas.homePage.lists.swipers[0].Metadata.redTigerWidget.parameters.skin \r\n - $allConfigs.adminConfig.arenas.homePage.lists.swipers[0].Metadata.redTigerWidget.parameters.jackpotId\r\n */\r\n\r\n // t (which i guess is timestamp) and hasGamesWidget are sent hardcoded with the following values. \r\n const timestamp = '1550245082068'; \r\n const hasGamesWidget = false;\r\n\r\n const iso2Lang = this.services.language.currentLanguageIso2.toLowerCase();\r\n const currency = this.services.currency.currencyIso3.toLowerCase();\r\n\r\n return `${this.jackpotUrl}?jackpotSkin=${\r\n skin.toLowerCase()}&jackpotId=${\r\n jackpotId}&apiUrl=${\r\n this.jackpotFeedApiUrl}&lang=${\r\n iso2Lang}¤cy=${\r\n currency}&t=${\r\n timestamp}&hasGamesWidget=${\r\n hasGamesWidget}`;\r\n }\r\n}\r\n"],"names":["RedTigerService","this","services","configuration","servicesConfigs","RedTiger","jackPotUrl","jackPotFeedApiUrl","actionLink","analytics","sendOrbitUserFlowEvent","window","scrollTo","location","push","widgetParameters","jackpotId","skin","iso2Lang","language","currentLanguageIso2","toLowerCase","currency","currencyIso3","jackpotUrl","jackpotFeedApiUrl","ServiceBase"],"sourceRoot":""}