{"version":3,"file":"js/1692.e88db9c5fd83fc8d.js","mappings":"uIAEA,MAAMA,EACFC,WAAAA,GACIC,EAAE,6BAA6BC,GAAG,SAAUC,IACxC,MAAMC,EAAmBH,EAAEE,EAAEE,eAAeC,QAAQ,iBAAiBC,KAAK,wBAAwBC,QAClGC,EAAAA,EAAAA,IAAaL,EAAiB,IAGlCH,EAAE,4BAA4BC,GAAG,SAAS,MACtCQ,EAAAA,EAAAA,KAAe,KAEnBC,EAAAA,EAAAA,KACJ,EAGJV,GAAE,KACE,GAAIA,EAAE,eAAeW,OACjB,OAAO,IAAIb,CACf,G,4GCjBE,SAAUY,IACZE,UAAUC,KAAK,CACXC,MAAO,YACPC,KAAM,CACFC,SAAU,UACVC,eAAgB,UAChBC,aAAc,QACdC,mBAAoB,QACpBC,KAAM,KACNC,KAAM,OAGlB,CAIM,SAAUC,EAAsBC,GAClCX,UAAUC,KAAK,CACXC,MAAO,2BACPU,OAAQ,CACJC,WAAY,CACRC,MAAOH,KAIvB,CAKM,SAAUI,EAAoBC,GAChChB,UAAUC,KAAK,CACXC,MAAO,sBACPU,OAAQ,CACJK,MAAO,CACHC,MAAOF,KAIvB,CAIM,SAAUG,IACZnB,UAAUC,KAAK,CACXC,MAAO,qBACPU,OAAQ,CACJQ,KAAM,CACFF,MAAO,iBAIvB,CAIM,SAAUG,IACZrB,UAAUC,KAAK,CACXC,MAAO,8BAEf,CAIM,SAAUoB,IACZtB,UAAUC,KAAK,CACXC,MAAO,qBACPU,OAAQ,CACJQ,KAAM,CACFF,MAAO,oBAIvB,CAIM,SAAUrB,IACZG,UAAUC,KAAK,CACXC,MAAO,2BAEf,CAIM,SAAUN,EAAa2B,GACzBvB,UAAUC,KAAK,CACXC,MAAO,yBACPU,OAAQ,CACJY,SAAU,CACNN,MAAOK,KAIvB,C","sources":["webpack://@sazka/web/./js/app/landing-page/views/_tutovka.ts","webpack://@sazka/web/./js/app/tickets/utils/tutovka-data-layer.ts"],"sourcesContent":["import { pushPageReady, pushOpenDraw, pushPlayVideo } from \"@/tickets/utils/tutovka-data-layer\";\r\n\r\nclass TutovkaPage {\r\n constructor() {\r\n $(\".tutovka-draw__show-modal\").on(\"click\", (e) => {\r\n const currentDrawLabel = $(e.currentTarget).closest(\".tutovka-draw\").find(\".tutovka-draw__title\").text();\r\n pushOpenDraw(currentDrawLabel);\r\n });\r\n\r\n $(\".btn-video.lp-video__btn\").on(\"click\", () => {\r\n pushPlayVideo();\r\n });\r\n pushPageReady();\r\n }\r\n}\r\n\r\n$(() => {\r\n if ($(\".lp-tutovka\").length) {\r\n return new TutovkaPage();\r\n }\r\n});\r\n","// 1.30 Tutovka\r\n//Position: on tutovka and all other pages under this url\r\nexport function pushPageReady() {\r\n dataLayer.push({\r\n event: \"pageReady\",\r\n page: {\r\n gameCode: \"tutovka\",\r\n gameCodeStrict: \"tutovka\",\r\n verticalCode: \"elosy\",\r\n verticalCodeStrict: \"elosy\",\r\n kind: \"LP\",\r\n type: \"LP\",\r\n },\r\n });\r\n}\r\n\r\n// 3.10 Code submitting\r\n// Position: after user successfully submits added codes by clicking on \"Odeslat\" button\r\nexport function pushSubmitCodeSuccess(codesCount: number) {\r\n dataLayer.push({\r\n event: \"action.submitCode.2sance\",\r\n action: {\r\n submitCode: {\r\n value: codesCount, // count of submitted codes\r\n },\r\n },\r\n });\r\n}\r\n\r\n// 3.20 Code submitting error\r\n// Position: after user submits added codes by clicking on \"Odeslat\" button and error appears\r\n// Attention: Use this code for every input separately.\r\nexport function pushSubmitCodeError(errorMessage: string) {\r\n dataLayer.push({\r\n event: \"action.error.2sance\",\r\n action: {\r\n error: {\r\n label: errorMessage, // error message\r\n },\r\n },\r\n });\r\n}\r\n\r\n// 3.30 Personal information form view\r\n// Position: after contact form in pop-up is loaded and user can interact with it\r\nexport function pushPersonalShow() {\r\n dataLayer.push({\r\n event: \"action.show.2sance\",\r\n action: {\r\n show: {\r\n label: \"contactForm\",\r\n },\r\n },\r\n });\r\n}\r\n\r\n// 3.40 Personal information submitting\r\n// Position: after user successfully submits personal information by clicking on \"Odeslat\" button\r\nexport function pushPersonalSubmitSuccess() {\r\n dataLayer.push({\r\n event: \"action.registration.2sance\",\r\n });\r\n}\r\n\r\n// 3.50 Successful pop-up impression\r\n// Position: after pop-up of the successful registration shows-up\r\nexport function pushSuccessPopupShown() {\r\n dataLayer.push({\r\n event: \"action.show.2sance\",\r\n action: {\r\n show: {\r\n label: \"successfulForm\",\r\n },\r\n },\r\n });\r\n}\r\n\r\n// 3.60 Play video\r\n// Position: when user clicks on play button to play video.\r\nexport function pushPlayVideo() {\r\n dataLayer.push({\r\n event: \"action.playVideo.2sance\",\r\n });\r\n}\r\n\r\n// 3.70 Open draw dates\r\n// Position: when user clicks on one of the columns and popup appears.\r\nexport function pushOpenDraw(drawLabel: string) {\r\n dataLayer.push({\r\n event: \"action.openDraw.2sance\",\r\n action: {\r\n openDraw: {\r\n label: drawLabel, // name of the opened draw\r\n },\r\n },\r\n });\r\n}\r\n"],"names":["TutovkaPage","constructor","$","on","e","currentDrawLabel","currentTarget","closest","find","text","pushOpenDraw","pushPlayVideo","pushPageReady","length","dataLayer","push","event","page","gameCode","gameCodeStrict","verticalCode","verticalCodeStrict","kind","type","pushSubmitCodeSuccess","codesCount","action","submitCode","value","pushSubmitCodeError","errorMessage","error","label","pushPersonalShow","show","pushPersonalSubmitSuccess","pushSuccessPopupShown","drawLabel","openDraw"],"sourceRoot":""}