{"version":3,"file":"js/3606.5c27311cacb5878b.js","mappings":"6JAGA,MAAMA,EAKFC,WAAAA,CAAYC,IAAiBC,EAAAA,EAAAA,GAAA,qBACzBC,KAAKC,MAAQC,EAAEJ,GACf,MAAMK,EAASD,EAAEN,EAAoBQ,eAC/BC,EAAWC,EAAAA,EAAUC,kBAAkBT,GAE7CQ,EAAAA,EAAUE,mBACNR,KAAKC,MAAMQ,KAAK,cAChB,gBAAgBH,EAAAA,EAAUI,oBAC1BP,EAAOQ,KAAK,QAAUR,EAAOQ,KAAK,YAClC,iBAAiBL,EAAAA,EAAUI,YAAYL,cAG3CL,KAAKC,MAAMW,GAAG,SAAS,KACnBN,EAAAA,EAAUO,gBACNb,KAAKC,MAAMQ,KAAK,cAChB,gBAAgBH,EAAAA,EAAUI,oBAC1BP,EAAOQ,KAAK,QAAUR,EAAOQ,KAAK,YAClC,iBAAiBL,EAAAA,EAAUI,YAAYL,aAC1C,GAET,G,OAzBET,EAAmB,gBACmB,iCA2B5CkB,EAAAA,EAAAA,IAAc,KACVZ,EAAE,0BAA0Ba,MAAK,CAACC,EAAGC,KACjC,IACI,IAAIrB,EAAoBqB,EAC5B,CAAE,MAAOC,GACLC,QAAQC,MAAMF,EAClB,IACF,G,kBChCA,SAAUJ,EAAcO,GAC1B,GAA4B,YAAxBC,SAASC,WACT,OAAOF,IAEPC,SAASE,iBAAiB,mBAAoBH,EAEtD,C","sources":["webpack://@sazka/web/./js/app/casino/widgets/_jackpots-promo-banner.ts","webpack://@sazka/web/../../libs/utils/document-ready.ts"],"sourcesContent":["import { Analytics } from \"@/shared/utils/analytics/analytics\";\r\nimport { documentReady } from \"@sazka/utils/document-ready\";\r\n\r\nclass JackpotsPromoBanner {\r\n private static readonly ImageSelector = \".jackpots-promo-banner__logo\";\r\n\r\n private $root: JQuery;\r\n\r\n constructor(root: HTMLElement) {\r\n this.$root = $(root);\r\n const $image = $(JackpotsPromoBanner.ImageSelector);\r\n const position = Analytics.getBannerPosition(root);\r\n\r\n Analytics.actionImpressPromo(\r\n this.$root.data(\"a-codename\"),\r\n `VerticalList.${Analytics.vertical}.carousel`,\r\n $image.attr(\"src\") || $image.attr(\"data-src\"),\r\n `vertical.list.${Analytics.vertical}.${position}.carousel`\r\n );\r\n\r\n this.$root.on(\"click\", () => {\r\n Analytics.actionShowPromo(\r\n this.$root.data(\"a-codename\"),\r\n `VerticalList.${Analytics.vertical}.carousel`,\r\n $image.attr(\"src\") || $image.attr(\"data-src\"),\r\n `vertical.list.${Analytics.vertical}.${position}.carousel`\r\n );\r\n });\r\n }\r\n}\r\n\r\ndocumentReady(() => {\r\n $(\".jackpots-promo-banner\").each((_, element) => {\r\n try {\r\n new JackpotsPromoBanner(element);\r\n } catch (ex) {\r\n console.error(ex);\r\n }\r\n });\r\n});\r\n","/**\r\n * Vanila JS variant to jQuery $(() => {}).\r\n * @param {callback} callback\r\n * @example - documentReady(() => {}).\r\n * This function is binding to document.ready\r\n * */\r\nexport function documentReady(callback: () => void) {\r\n if (document.readyState !== \"loading\") {\r\n return callback();\r\n } else {\r\n document.addEventListener(\"DOMContentLoaded\", callback);\r\n }\r\n}\r\n"],"names":["JackpotsPromoBanner","constructor","root","_defineProperty","this","$root","$","$image","ImageSelector","position","Analytics","getBannerPosition","actionImpressPromo","data","vertical","attr","on","actionShowPromo","documentReady","each","_","element","ex","console","error","callback","document","readyState","addEventListener"],"sourceRoot":""}