{"version":3,"file":"js/app.js","mappings":"4BAAA,IAAIA,EAAM,CACT,gDAAiD,CAChD,KACA,MAED,gDAAiD,CAChD,KACA,MAED,8CAA+C,CAC9C,KACA,MAED,iDAAkD,CACjD,KACA,MAED,6CAA8C,CAC7C,KACA,KACA,MAED,8CAA+C,CAC9C,KACA,KACA,MAED,qDAAsD,CACrD,KACA,MAED,iDAAkD,CACjD,KACA,MAED,uDAAwD,CACvD,KACA,KACA,MAED,8CAA+C,CAC9C,IACA,MAED,4CAA6C,CAC5C,KACA,MAED,oDAAqD,CACpD,KACA,MAED,uCAAwC,CACvC,KACA,KACA,KACA,MAED,sCAAuC,CACtC,KACA,KACA,KACA,MAED,+CAAgD,CAC/C,KACA,KACA,MAED,8CAA+C,CAC9C,KACA,MAED,+CAAgD,CAC/C,KACA,MAED,8CAA+C,CAC9C,KACA,KACA,KACA,MAED,6DAA8D,CAC7D,KACA,KACA,MAED,4DAA6D,CAC5D,KACA,MAED,8DAA+D,CAC9D,KACA,MAED,iEAAkE,CACjE,KACA,MAED,wEAAyE,CACxE,KACA,MAED,qEAAsE,CACrE,KACA,MAED,kFAAmF,CAClF,KACA,MAED,0EAA2E,CAC1E,IACA,KAED,uEAAwE,CACvE,KACA,MAED,uEAAwE,CACvE,KACA,KACA,MAED,6DAA8D,CAC7D,KACA,MAED,6DAA8D,CAC7D,KACA,KACA,KAED,qDAAsD,CACrD,KACA,MAED,sDAAuD,CACtD,KACA,MAED,0DAA2D,CAC1D,GACA,IAED,kDAAmD,CAClD,KACA,KACA,KACA,KACA,KACA,MAED,sDAAuD,CACtD,KACA,KACA,KACA,KACA,MAED,gDAAiD,CAChD,KACA,MAED,4CAA6C,CAC5C,KACA,MAED,6BAA8B,CAC7B,KACA,KACA,KACA,KACA,MAED,mCAAoC,CACnC,KACA,MAED,4CAA6C,CAC5C,KACA,KACA,MAED,mDAAoD,CACnD,KACA,MAED,qDAAsD,CACrD,KACA,KACA,KACA,KACA,KACA,KACA,KACA,MAED,qDAAsD,CACrD,KACA,MAED,wDAAyD,CACxD,KACA,MAED,oFAAqF,CACpF,KACA,KACA,MAED,sGAAuG,CACtG,KACA,MAED,sGAAuG,CACtG,KACA,MAED,mGAAoG,CACnG,KACA,MAED,yGAA0G,CACzG,KACA,MAED,0GAA2G,CAC1G,KACA,MAED,qEAAsE,CACrE,KACA,KACA,MAED,qEAAsE,CACrE,KACA,KACA,KACA,MAED,uEAAwE,CACvE,KACA,MAED,uEAAwE,CACvE,KACA,MAED,wEAAyE,CACxE,KACA,KACA,KACA,KACA,KACA,KACA,MAED,2EAA4E,CAC3E,KACA,MAED,6EAA8E,CAC7E,KACA,MAED,+EAAgF,CAC/E,KACA,MAED,+EAAgF,CAC/E,KACA,KACA,MAED,iFAAkF,CACjF,IACA,KAED,2FAA4F,CAC3F,KACA,MAED,iDAAkD,CACjD,KACA,MAED,mDAAoD,CACnD,IACA,KAED,kDAAmD,CAClD,KACA,MAED,2DAA4D,CAC3D,KACA,MAED,wEAAyE,CACxE,KACA,MAED,2EAA4E,CAC3E,KACA,KAED,yEAA0E,CACzE,KACA,MAED,wEAAyE,CACxE,KACA,MAED,6DAA8D,CAC7D,KACA,MAED,mCAAoC,CACnC,KACA,MAED,2CAA4C,CAC3C,KACA,MAED,qCAAsC,CACrC,KACA,MAED,+CAAgD,CAC/C,KACA,MAED,yDAA0D,CACzD,KACA,MAED,oDAAqD,CACpD,IACA,KAED,uCAAwC,CACvC,KACA,MAED,sCAAuC,CACtC,KACA,MAED,6DAA8D,CAC7D,KACA,MAED,gDAAiD,CAChD,KACA,MAED,wCAAyC,CACxC,KACA,KACA,IACA,KACA,MAED,yCAA0C,CACzC,KACA,KACA,MAED,yDAA0D,CACzD,IACA,KAED,wDAAyD,CACxD,KACA,KACA,KACA,MAED,+EAAgF,CAC/E,KACA,MAED,8EAA+E,CAC9E,KACA,MAED,uDAAwD,CACvD,KACA,MAED,uCAAwC,CACvC,KACA,KACA,MAED,+CAAgD,CAC/C,KACA,MAED,6DAA8D,CAC7D,KACA,MAED,oDAAqD,CACpD,KACA,MAED,qDAAsD,CACrD,KACA,MAED,qEAAsE,CACrE,IACA,KAED,kEAAmE,CAClE,KACA,MAED,2EAA4E,CAC3E,KACA,MAED,wEAAyE,CACxE,GACA,IAED,2DAA4D,CAC3D,KACA,MAED,gDAAiD,CAChD,KACA,KACA,KACA,KACA,KACA,KACA,MAED,8DAA+D,CAC9D,KACA,KACA,MAED,0DAA2D,CAC1D,KACA,KACA,KACA,MAED,iEAAkE,CACjE,KACA,MAED,mEAAoE,CACnE,KACA,MAED,kEAAmE,CAClE,KACA,MAED,mFAAoF,CACnF,KACA,MAED,+EAAgF,CAC/E,KACA,KACA,MAED,yDAA0D,CACzD,KACA,KACA,MAED,iFAAkF,CACjF,KACA,MAED,gFAAiF,CAChF,IACA,KAED,8EAA+E,CAC9E,KACA,MAED,2DAA4D,CAC3D,KACA,KACA,KACA,KACA,KACA,KACA,MAED,6DAA8D,CAC7D,KACA,KACA,KACA,KACA,MAED,gEAAiE,CAChE,KACA,KACA,KACA,KACA,KACA,MAED,iEAAkE,CACjE,KACA,MAED,wEAAyE,CACxE,KACA,OAGF,SAASC,EAAoBC,GAC5B,IAAIC,EAAoBC,EAAEJ,EAAKE,GAC9B,OAAOG,QAAQC,UAAUC,MAAK,KAC7B,IAAIC,EAAI,IAAIC,MAAM,uBAAyBP,EAAM,KAEjD,MADAM,EAAEE,KAAO,mBACHF,CAAC,IAIT,IAAIG,EAAMX,EAAIE,GAAMU,EAAKD,EAAI,GAC7B,OAAON,QAAQQ,IAAIF,EAAIG,MAAM,GAAGd,IAAIG,EAAoBK,IAAID,MAAK,IACzDJ,EAAoBS,IAE7B,CACAX,EAAoBc,KAAO,IAAOC,OAAOD,KAAKf,GAC9CC,EAAoBW,GAAK,KACzBK,EAAOC,QAAUjB,C,iBC/hBjB,IAAID,EAAM,CACT,sCAAuC,CACtC,KACA,EACA,MAED,yCAA0C,CACzC,KACA,EACA,MAED,sCAAuC,CACtC,KACA,EACA,MAED,yCAA0C,CACzC,KACA,EACA,MAED,4CAA6C,CAC5C,KACA,EACA,KACA,MAED,gDAAiD,CAChD,KACA,EACA,KACA,MAED,iDAAkD,CACjD,IACA,EACA,KAED,oDAAqD,CACpD,IACA,EACA,KAED,4BAA6B,CAC5B,KACA,EACA,MAED,+BAAgC,CAC/B,KACA,EACA,MAED,2DAA4D,CAC3D,KACA,EACA,MAED,8DAA+D,CAC9D,KACA,EACA,MAED,uCAAwC,CACvC,KACA,EACA,MAED,0CAA2C,CAC1C,KACA,EACA,MAED,2CAA4C,CAC3C,KACA,EACA,MAED,8CAA+C,CAC9C,KACA,EACA,MAED,mCAAoC,CACnC,KACA,EACA,MAED,sCAAuC,CACtC,KACA,EACA,MAED,kCAAmC,CAClC,KACA,EACA,MAED,qCAAsC,CACrC,KACA,EACA,MAED,yCAA0C,CACzC,IACA,EACA,MAED,4CAA6C,CAC5C,IACA,EACA,MAED,2CAA4C,CAC3C,KACA,EACA,MAED,8CAA+C,CAC9C,KACA,EACA,MAED,kCAAmC,CAClC,KACA,EACA,MAED,qCAAsC,CACrC,KACA,EACA,MAED,gDAAiD,CAChD,KACA,EACA,KACA,KACA,KACA,KACA,KACA,MAED,oDAAqD,CACpD,KACA,EACA,KACA,KACA,KACA,KACA,KACA,MAED,wDAAyD,CACxD,KACA,EACA,KACA,MAED,2DAA4D,CAC3D,KACA,EACA,KACA,MAED,iEAAkE,CACjE,KACA,EACA,MAED,qEAAsE,CACrE,KACA,EACA,MAED,yCAA0C,CACzC,KACA,EACA,MAED,4CAA6C,CAC5C,KACA,EACA,OAGF,SAASC,EAAoBC,GAC5B,IAAIC,EAAoBC,EAAEJ,EAAKE,GAC9B,OAAOG,QAAQC,UAAUC,MAAK,KAC7B,IAAIC,EAAI,IAAIC,MAAM,uBAAyBP,EAAM,KAEjD,MADAM,EAAEE,KAAO,mBACHF,CAAC,IAIT,IAAIG,EAAMX,EAAIE,GAAMU,EAAKD,EAAI,GAC7B,OAAON,Q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,QAAUmkC,EAChBH,EAAmB,GAAGxqC,EACvB,CACD,EAED3U,EAAoB28C,EAAE/4C,EAAKy7C,EAAc,SAAWrD,EAASA,EAE/D,CACD,EAWFh8C,EAAoBk6C,EAAES,EAAKqB,GAA0C,IAA7BkD,EAAgBlD,GAGxD,IAAIuD,EAAuB,CAACC,EAA4Bj3C,KACvD,IAGIsxC,EAAUmC,GAHT5B,EAAUqF,EAAaC,GAAWn3C,EAGhBkyC,EAAI,EAC3B,GAAGL,EAASz2C,MAAMlD,GAAgC,IAAxBy+C,EAAgBz+C,KAAa,CACtD,IAAIo5C,KAAY4F,EACZz/C,EAAoBC,EAAEw/C,EAAa5F,KACrC75C,EAAoBkmC,EAAE2T,GAAY4F,EAAY5F,IAGhD,GAAG6F,EAAS,IAAIvF,EAASuF,EAAQ1/C,EAClC,CAEA,IADGw/C,GAA4BA,EAA2Bj3C,GACrDkyC,EAAIL,EAASv1C,OAAQ41C,IACzBuB,EAAU5B,EAASK,GAChBz6C,EAAoBC,EAAEi/C,EAAiBlD,IAAYkD,EAAgBlD,IACrEkD,EAAgBlD,GAAS,KAE1BkD,EAAgBlD,GAAW,EAE5B,OAAOh8C,EAAoBk6C,EAAEC,EAAO,EAGjCwF,EAAqBtD,WAAW,oBAAsBA,WAAW,qBAAuB,GAC5FsD,EAAmBvvC,QAAQmvC,EAAqB7B,KAAK,KAAM,IAC3DiC,EAAmBpvC,KAAOgvC,EAAqB7B,KAAK,KAAMiC,EAAmBpvC,KAAKmtC,KAAKiC,G,KClFvF,IAAIC,EAAsB5/C,EAAoBk6C,OAAEviB,EAAW,CAAC,MAAM,IAAO33B,EAAoB,QAC7F4/C,EAAsB5/C,EAAoBk6C,EAAE0F,E","sources":["webpack://@sazka/kasa-loyalty/./js/app/ lazy ^\\.\\/.*\\/.*\\.vue$ exclude: user-menu\\.vue$ namespace object","webpack://@sazka/kasa-loyalty/./js/ lazy ^\\.\\/.*\\/_.*$ include: _ namespace object","webpack://@sazka/kasa-loyalty/./js/app/account/composables/use-authentication-data.ts","webpack://@sazka/kasa-loyalty/./js/app/account/models/authentication-flows.ts","webpack://@sazka/kasa-loyalty/./js/app/account/services/flows-services.ts","webpack://@sazka/kasa-loyalty/./js/app/account/composables/use-authentication-flows.ts","webpack://@sazka/kasa-loyalty/./js/app/account/services/registration-services.ts","webpack://@sazka/kasa-loyalty/./js/app/account/composables/use-authentication.ts","webpack://@sazka/kasa-loyalty/./js/app/api-connector/sazka-api/methods/wecoma-api.ts","webpack://@sazka/kasa-loyalty/../../libs/utils/composables/use-breakpoints.ts","webpack://@sazka/kasa-loyalty/../../libs/utils/gdpr/consent-bar.vue?de3a","webpack://@sazka/kasa-loyalty/../../libs/utils/gdpr/consent-bar.vue","webpack://@sazka/kasa-loyalty/../../libs/utils/gdpr/consent-bar.vue?30de","webpack://@sazka/kasa-loyalty/./js/app/account/composables/use-gdpr.ts","webpack://@sazka/kasa-loyalty/./js/app/account/composables/use-registration-consents.ts","webpack://@sazka/kasa-loyalty/./js/app/account/composables/user-cookies.ts","webpack://@sazka/kasa-loyalty/./js/app/account/services/login-services.ts","webpack://@sazka/kasa-loyalty/./js/app/account/services/account-services.ts","webpack://@sazka/kasa-loyalty/./js/app/account/use-user-account.ts","webpack://@sazka/kasa-loyalty/./js/app/account/utils/user-account-helper.ts","webpack://@sazka/kasa-loyalty/./js/app/api-connector/play-digital-api/metods/account/account-api.ts","webpack://@sazka/kasa-loyalty/./js/app/api-connector/play-digital-api/metods/account/login-api.ts","webpack://@sazka/kasa-loyalty/./js/app/api-connector/play-digital-api/metods/account/registration-api.ts","webpack://@sazka/kasa-loyalty/./js/app/api-connector/play-digital-api/play-digital-client-v1.ts","webpack://@sazka/kasa-loyalty/./js/app/api-connector/utils/interceptors/csrf-interceptor.ts","webpack://@sazka/kasa-loyalty/./js/app/api-connector/sazka-api/http-client.ts","webpack://@sazka/kasa-loyalty/./js/app/api-connector/sazka-api/methods/player-contact-api.ts","webpack://@sazka/kasa-loyalty/./js/app/api-connector/utils/interceptors/error-interceptor.ts","webpack://@sazka/kasa-loyalty/./js/app/api-connector/utils/use-api-logging.ts","webpack://@sazka/kasa-loyalty/./js/app/api-connector/utils/interceptors/logger-interceptor.ts","webpack://@sazka/kasa-loyalty/./js/app/api-connector/utils/interceptors/logout-interceptor.ts","webpack://@sazka/kasa-loyalty/./js/app/api-connector/utils/interceptors/o-auth-interceptor.ts","webpack://@sazka/kasa-loyalty/./js/app/api-connector/utils/interceptors/player-id-interceptor.ts","webpack://@sazka/kasa-loyalty/./js/app/api-connector/utils/interceptors/sag-auth-interceptor.ts","webpack://@sazka/kasa-loyalty/./js/app/data-layer/services/account.ts","webpack://@sazka/kasa-loyalty/./js/app/data-layer/services/actions.ts","webpack://@sazka/kasa-loyalty/./js/app/helpers/url-helper.ts","webpack://@sazka/kasa-loyalty/./js/app/settings.ts","webpack://@sazka/kasa-loyalty/./js/app/shared/components/sazka-alert/use-sazka-alert.ts","webpack://@sazka/kasa-loyalty/./js/app/shared/components/select-box/use-select-box.ts","webpack://@sazka/kasa-loyalty/./js/app/shared/utils/responsive/responsive-utils.ts","webpack://@sazka/kasa-loyalty/./js/app/shared/utils/store/store.ts","webpack://@sazka/kasa-loyalty/./js/app/shared/utils/store/use-store.ts","webpack://@sazka/kasa-loyalty/./js/core/bundle-loader.ts","webpack://@sazka/kasa-loyalty/./js/core/component-loader.vue","webpack://@sazka/kasa-loyalty/./js/core/component-loader.vue?7a78","webpack://@sazka/kasa-loyalty/./js/core/component-loader.vue?8336","webpack://@sazka/kasa-loyalty/./js/config/primevue.ts","webpack://@sazka/kasa-loyalty/./js/core/vue.ts","webpack://@sazka/kasa-loyalty/./js/app/components/fixed-help.ts","webpack://@sazka/kasa-loyalty/./js/app/components/modal-video.ts","webpack://@sazka/kasa-loyalty/./js/app/shared/components/keen-slider/plugins/keen-autoplay-plugin.ts","webpack://@sazka/kasa-loyalty/./js/app/homepage/benefit-slider.ts","webpack://@sazka/kasa-loyalty/./js/core/footer.ts","webpack://@sazka/kasa-loyalty/./js/app/components/use-lazy-loading.js","webpack://@sazka/kasa-loyalty/./js/app/components/chat.ts","webpack://@sazka/kasa-loyalty/./js/core/app.ts","webpack://@sazka/kasa-loyalty/../../libs/design-system/src/loader/loader.ts","webpack://@sazka/kasa-loyalty/../../libs/utils/sazka-alert.ts","webpack://@sazka/kasa-loyalty/../../libs/mobile-apps/use-webview-debug.ts","webpack://@sazka/kasa-loyalty/../../libs/mobile-apps/mobile-app-integration.ts","webpack://@sazka/kasa-loyalty/../../libs/utils/composables/use-page-visibility.ts","webpack://@sazka/kasa-loyalty/../../libs/design-system/src/top-slot/ds-top-subheadline.vue?2445","webpack://@sazka/kasa-loyalty/../../libs/design-system/src/top-slot/ds-top-subheadline.vue","webpack://@sazka/kasa-loyalty/../../libs/design-system/src/modal-alert/ds-modal-alert.vue?ad34","webpack://@sazka/kasa-loyalty/../../libs/design-system/src/modal-alert/ds-modal-alert.vue","webpack://@sazka/kasa-loyalty/../../libs/design-system/src/modal-alert/ds-modal-alert.vue?1575","webpack://@sazka/kasa-loyalty/../../libs/design-system/src/modal-alert/mount-alert.ts","webpack://@sazka/kasa-loyalty/../../libs/ng/log-login.ts","webpack://@sazka/kasa-loyalty/../../libs/ng/ng-integration.ts","webpack://@sazka/kasa-loyalty/../../libs/ng/ng-session.ts","webpack://@sazka/kasa-loyalty/../../libs/utils/composables/use-page-scroll-service.ts","webpack://@sazka/kasa-loyalty/../../libs/utils/composables/use-stacked-modals.ts","webpack://@sazka/kasa-loyalty/../../libs/utils/date-time-utils.ts","webpack://@sazka/kasa-loyalty/../../libs/utils/document-ready.ts","webpack://@sazka/kasa-loyalty/../../libs/utils/gdpr/use-wecoma-datalayer.ts","webpack://@sazka/kasa-loyalty/../../libs/utils/gdpr/use-wecoma-integration.ts","webpack://@sazka/kasa-loyalty/../../libs/utils/gdpr/use-wecoma-redirect.ts","webpack://@sazka/kasa-loyalty/../../libs/utils/gdpr/wecoma-constants.ts","webpack://@sazka/kasa-loyalty/../../libs/utils/global-events.ts","webpack://@sazka/kasa-loyalty/../../libs/utils/http-clients/use-sag-options.ts","webpack://@sazka/kasa-loyalty/../../libs/utils/logger/app-insights.ts","webpack://@sazka/kasa-loyalty/../../libs/utils/logger/use-app-logger.ts","webpack://@sazka/kasa-loyalty/../../libs/utils/responsive-utils.ts","webpack://@sazka/kasa-loyalty/../../libs/utils/url.ts","webpack://@sazka/kasa-loyalty/../../libs/utils/use-web-storage/use-web-storage-test.ts","webpack://@sazka/kasa-loyalty/../../libs/utils/use-web-storage/use-web-storage-queue.ts","webpack://@sazka/kasa-loyalty/../../libs/utils/use-web-storage/use-web-storage.ts","webpack://@sazka/kasa-loyalty/../../libs/utils/use-storage.ts","webpack://@sazka/kasa-loyalty/../../libs/utils/webp-helper.ts","webpack://@sazka/kasa-loyalty/../../libs/design-system/src/button/ds-button.vue?c2fd","webpack://@sazka/kasa-loyalty/../../libs/design-system/src/button/ds-button.vue","webpack://@sazka/kasa-loyalty/../../libs/design-system/src/button/ds-button.vue?9035","webpack://@sazka/kasa-loyalty/../../libs/design-system/src/typography/storiesIconName.ts","webpack://@sazka/kasa-loyalty/../../libs/design-system/src/icon/ds-icon.vue?d941","webpack://@sazka/kasa-loyalty/../../libs/design-system/src/icon/ds-icon.vue","webpack://@sazka/kasa-loyalty/../../libs/design-system/src/icon/ds-icon.vue?2d36","webpack://@sazka/kasa-loyalty/../../libs/design-system/src/image/webp-image.vue?a44b","webpack://@sazka/kasa-loyalty/../../libs/design-system/src/image/webp-image.vue","webpack://@sazka/kasa-loyalty/../../libs/design-system/src/image/webp-image.vue?a90a","webpack://@sazka/kasa-loyalty/../../libs/design-system/src/modal-dialog/ds-modal-dialog-injection-key.ts","webpack://@sazka/kasa-loyalty/../../libs/design-system/src/divider/ds-divider.vue?790b","webpack://@sazka/kasa-loyalty/../../libs/design-system/src/divider/ds-divider.vue","webpack://@sazka/kasa-loyalty/../../libs/design-system/src/modal-dialog/ds-modal-dialog.vue?7922","webpack://@sazka/kasa-loyalty/../../libs/design-system/src/modal-dialog/ds-modal-dialog.vue","webpack://@sazka/kasa-loyalty/../../libs/design-system/src/modal-dialog/ds-modal-dialog.vue?ec13","webpack://@sazka/kasa-loyalty/webpack/bootstrap","webpack://@sazka/kasa-loyalty/webpack/runtime/chunk loaded","webpack://@sazka/kasa-loyalty/webpack/runtime/compat get default export","webpack://@sazka/kasa-loyalty/webpack/runtime/create fake namespace object","webpack://@sazka/kasa-loyalty/webpack/runtime/define property getters","webpack://@sazka/kasa-loyalty/webpack/runtime/ensure chunk","webpack://@sazka/kasa-loyalty/webpack/runtime/get javascript chunk filename","webpack://@sazka/kasa-loyalty/webpack/runtime/get mini-css chunk filename","webpack://@sazka/kasa-loyalty/webpack/runtime/global","webpack://@sazka/kasa-loyalty/webpack/runtime/hasOwnProperty shorthand","webpack://@sazka/kasa-loyalty/webpack/runtime/load script","webpack://@sazka/kasa-loyalty/webpack/runtime/make namespace object","webpack://@sazka/kasa-loyalty/webpack/runtime/node module decorator","webpack://@sazka/kasa-loyalty/webpack/runtime/publicPath","webpack://@sazka/kasa-loyalty/webpack/runtime/css loading","webpack://@sazka/kasa-loyalty/webpack/runtime/jsonp chunk loading","webpack://@sazka/kasa-loyalty/webpack/startup"],"sourcesContent":["var map = {\n\t\"./account/components/account-notification.vue\": [\n\t\t2905,\n\t\t2905\n\t],\n\t\"./account/components/inputs/account-input.vue\": [\n\t\t8178,\n\t\t8178\n\t],\n\t\"./account/components/inputs/basic-input.vue\": [\n\t\t3034,\n\t\t3034\n\t],\n\t\"./account/components/inputs/checkbox-input.vue\": [\n\t\t1552,\n\t\t1552\n\t],\n\t\"./account/components/inputs/date-input.vue\": [\n\t\t7136,\n\t\t3146,\n\t\t7136\n\t],\n\t\"./account/components/inputs/email-input.vue\": [\n\t\t5762,\n\t\t3146,\n\t\t5762\n\t],\n\t\"./account/components/inputs/new-password-input.vue\": [\n\t\t5418,\n\t\t5418\n\t],\n\t\"./account/components/inputs/password-input.vue\": [\n\t\t6470,\n\t\t6470\n\t],\n\t\"./account/components/inputs/phone-input-separate.vue\": [\n\t\t2599,\n\t\t3146,\n\t\t2599\n\t],\n\t\"./account/components/inputs/phone-input.vue\": [\n\t\t679,\n\t\t3060\n\t],\n\t\"./account/components/inputs/pin-input.vue\": [\n\t\t5039,\n\t\t5039\n\t],\n\t\"./account/components/inputs/radio-button-list.vue\": [\n\t\t7589,\n\t\t7589\n\t],\n\t\"./account/components/login-modal.vue\": [\n\t\t4095,\n\t\t1920,\n\t\t3436,\n\t\t4095\n\t],\n\t\"./account/components/login-page.vue\": [\n\t\t1705,\n\t\t1920,\n\t\t3436,\n\t\t1705\n\t],\n\t\"./account/components/login/login-content.vue\": [\n\t\t3436,\n\t\t1920,\n\t\t3436\n\t],\n\t\"./account/components/login/login-footer.vue\": [\n\t\t2653,\n\t\t2653\n\t],\n\t\"./account/components/login/login-welcome.vue\": [\n\t\t6509,\n\t\t6509\n\t],\n\t\"./account/components/registration-modal.vue\": [\n\t\t8861,\n\t\t1920,\n\t\t3839,\n\t\t8861\n\t],\n\t\"./account/components/registration/registration-content.vue\": [\n\t\t3839,\n\t\t1920,\n\t\t3839\n\t],\n\t\"./account/components/registration/registration-footer.vue\": [\n\t\t2442,\n\t\t2442\n\t],\n\t\"./account/components/registration/registration-personal.vue\": [\n\t\t3074,\n\t\t3074\n\t],\n\t\"./account/components/registration/registration-steps-panel.vue\": [\n\t\t1264,\n\t\t1264\n\t],\n\t\"./account/components/settings/modals/settings-abort-account-modal.vue\": [\n\t\t6937,\n\t\t6937\n\t],\n\t\"./account/components/settings/modals/settings-block-card-modal.vue\": [\n\t\t3269,\n\t\t3269\n\t],\n\t\"./account/components/settings/modals/settings-confirm-change-password-modal.vue\": [\n\t\t2097,\n\t\t2097\n\t],\n\t\"./account/components/settings/modals/settings-new-card-number-modal.vue\": [\n\t\t562,\n\t\t562\n\t],\n\t\"./account/components/settings/modals/settings-verify-email-modal.vue\": [\n\t\t3167,\n\t\t3167\n\t],\n\t\"./account/components/settings/modals/settings-verify-phone-modal.vue\": [\n\t\t1997,\n\t\t1997,\n\t\t8178\n\t],\n\t\"./account/components/settings/settings-card-management.vue\": [\n\t\t1007,\n\t\t1007\n\t],\n\t\"./account/components/settings/settings-change-password.vue\": [\n\t\t4786,\n\t\t4786,\n\t\t873\n\t],\n\t\"./account/components/settings/settings-consent.vue\": [\n\t\t7733,\n\t\t7733\n\t],\n\t\"./account/components/settings/settings-kasa-app.vue\": [\n\t\t7032,\n\t\t4651\n\t],\n\t\"./account/components/settings/settings-notification.vue\": [\n\t\t33,\n\t\t33\n\t],\n\t\"./account/components/settings/settings-page.vue\": [\n\t\t7810,\n\t\t3146,\n\t\t7136,\n\t\t1997,\n\t\t4786,\n\t\t7810\n\t],\n\t\"./account/components/settings/settings-personal.vue\": [\n\t\t9712,\n\t\t3146,\n\t\t7136,\n\t\t1997,\n\t\t9712\n\t],\n\t\"./account/components/shared/account-modal.vue\": [\n\t\t6145,\n\t\t6145\n\t],\n\t\"./account/components/shared/info-text.vue\": [\n\t\t2209,\n\t\t2209\n\t],\n\t\"./account/user-account.vue\": [\n\t\t1904,\n\t\t1920,\n\t\t3436,\n\t\t3839,\n\t\t1904\n\t],\n\t\"./account/widgets/sazka-card.vue\": [\n\t\t9989,\n\t\t9989\n\t],\n\t\"./components/campaign/_wheel-campaign.vue\": [\n\t\t6725,\n\t\t7083,\n\t\t6725\n\t],\n\t\"./components/favorite-tickets/fav-navigation.vue\": [\n\t\t2748,\n\t\t2748\n\t],\n\t\"./components/favorite-tickets/favorite-tickets.vue\": [\n\t\t2490,\n\t\t2003,\n\t\t8872,\n\t\t8599,\n\t\t6600,\n\t\t4079,\n\t\t8539,\n\t\t2490\n\t],\n\t\"./components/favorite-tickets/modal-add-ticket.vue\": [\n\t\t7277,\n\t\t7277\n\t],\n\t\"./components/favorite-tickets/modal-delete-ticket.vue\": [\n\t\t3828,\n\t\t3828\n\t],\n\t\"./components/favorite-tickets/ticket-detail/general/bet-settings/bet-settings.vue\": [\n\t\t8872,\n\t\t8872,\n\t\t6847\n\t],\n\t\"./components/favorite-tickets/ticket-detail/general/bet-settings/components/bet-settings-amount.vue\": [\n\t\t4709,\n\t\t4709\n\t],\n\t\"./components/favorite-tickets/ticket-detail/general/bet-settings/components/bet-settings-chance.vue\": [\n\t\t4678,\n\t\t4678\n\t],\n\t\"./components/favorite-tickets/ticket-detail/general/bet-settings/components/bet-settings-day.vue\": [\n\t\t2403,\n\t\t2403\n\t],\n\t\"./components/favorite-tickets/ticket-detail/general/bet-settings/components/bet-settings-multidraw.vue\": [\n\t\t2318,\n\t\t2318\n\t],\n\t\"./components/favorite-tickets/ticket-detail/general/bet-settings/components/bet-settings-multiplier.vue\": [\n\t\t9095,\n\t\t9095\n\t],\n\t\"./components/favorite-tickets/ticket-detail/general/board-edit.vue\": [\n\t\t6600,\n\t\t6600,\n\t\t5639\n\t],\n\t\"./components/favorite-tickets/ticket-detail/general/board-tabs.vue\": [\n\t\t8599,\n\t\t2003,\n\t\t8599,\n\t\t1020\n\t],\n\t\"./components/favorite-tickets/ticket-detail/general/system-board.vue\": [\n\t\t3940,\n\t\t3940\n\t],\n\t\"./components/favorite-tickets/ticket-detail/general/ticket-boxes.vue\": [\n\t\t2003,\n\t\t2003\n\t],\n\t\"./components/favorite-tickets/ticket-detail/general/ticket-detail.vue\": [\n\t\t8539,\n\t\t2003,\n\t\t8872,\n\t\t8599,\n\t\t6600,\n\t\t4079,\n\t\t8539\n\t],\n\t\"./components/favorite-tickets/ticket-detail/kameny/kameny-board-edit.vue\": [\n\t\t4575,\n\t\t4575\n\t],\n\t\"./components/favorite-tickets/ticket-detail/kameny/kameny-ticket-boxes.vue\": [\n\t\t8764,\n\t\t8764\n\t],\n\t\"./components/favorite-tickets/ticket-detail/kasicka/kasicka-system-board.vue\": [\n\t\t3913,\n\t\t3913\n\t],\n\t\"./components/favorite-tickets/ticket-detail/rychla-6/rychla-6-board-edit.vue\": [\n\t\t4079,\n\t\t4079,\n\t\t5639\n\t],\n\t\"./components/favorite-tickets/ticket-detail/rychla-6/rychla-6-ticket-boxes.vue\": [\n\t\t733,\n\t\t733\n\t],\n\t\"./components/favorite-tickets/ticket-detail/stastne-datum/stastne-datum-ticket-board.vue\": [\n\t\t8046,\n\t\t8046\n\t],\n\t\"./components/favorite-tickets/ticket-empty.vue\": [\n\t\t9889,\n\t\t9889\n\t],\n\t\"./components/favorite-tickets/ticket-preview.vue\": [\n\t\t705,\n\t\t705\n\t],\n\t\"./components/header/header-hamburger-button.vue\": [\n\t\t6637,\n\t\t6637\n\t],\n\t\"./components/header/navigation-buttons-authenticated.vue\": [\n\t\t9410,\n\t\t9410\n\t],\n\t\"./components/header/navigation-buttons-authenticated/bonus-banner.vue\": [\n\t\t3656,\n\t\t3656\n\t],\n\t\"./components/header/navigation-buttons-authenticated/draw-attendance.vue\": [\n\t\t3060,\n\t\t679\n\t],\n\t\"./components/header/navigation-buttons-authenticated/popup-banners.vue\": [\n\t\t4766,\n\t\t4766\n\t],\n\t\"./components/header/navigation-buttons-authenticated/user-balance.vue\": [\n\t\t1388,\n\t\t1388\n\t],\n\t\"./components/header/navigation-buttons-unauthenticated.vue\": [\n\t\t3764,\n\t\t3764\n\t],\n\t\"./components/kasa-datepicker.vue\": [\n\t\t9156,\n\t\t9156\n\t],\n\t\"./components/shared/assets/kasa-icon.vue\": [\n\t\t7431,\n\t\t7431\n\t],\n\t\"./components/shared/kasa-alert.vue\": [\n\t\t7146,\n\t\t7146\n\t],\n\t\"./mobile-apps/components/mobile-app-link.vue\": [\n\t\t6328,\n\t\t6328\n\t],\n\t\"./shared/components/dynamic-table/table-pager-item.vue\": [\n\t\t9508,\n\t\t9508\n\t],\n\t\"./shared/components/dynamic-table/table-pager.vue\": [\n\t\t151,\n\t\t151\n\t],\n\t\"./shared/components/kasa-tooltip.vue\": [\n\t\t8197,\n\t\t8197\n\t],\n\t\"./shared/components/modal-popup.vue\": [\n\t\t5167,\n\t\t5167\n\t],\n\t\"./shared/components/sazka-alert/components/sazka-alert.vue\": [\n\t\t8082,\n\t\t8082\n\t],\n\t\"./shared/components/select-box/select-box.vue\": [\n\t\t1020,\n\t\t1020\n\t],\n\t\"./transactions/my-bets/bet-detail.vue\": [\n\t\t8011,\n\t\t8650,\n\t\t664,\n\t\t4869,\n\t\t1615\n\t],\n\t\"./transactions/my-bets/closed-bets.vue\": [\n\t\t8397,\n\t\t8650,\n\t\t8397\n\t],\n\t\"./transactions/my-bets/components/bet-detail-board.vue\": [\n\t\t664,\n\t\t664\n\t],\n\t\"./transactions/my-bets/components/bet-detail-info.vue\": [\n\t\t4869,\n\t\t8650,\n\t\t4869,\n\t\t1402\n\t],\n\t\"./transactions/my-bets/components/bet-detail-info/bet-detail-info-banner.vue\": [\n\t\t5877,\n\t\t5877\n\t],\n\t\"./transactions/my-bets/components/bet-detail-info/bet-detail-info-draws.vue\": [\n\t\t8326,\n\t\t8326\n\t],\n\t\"./transactions/my-bets/components/bets-table-row.vue\": [\n\t\t5522,\n\t\t5522\n\t],\n\t\"./transactions/my-bets/open-bets.vue\": [\n\t\t1523,\n\t\t8650,\n\t\t1523\n\t],\n\t\"./transactions/my-tickets/closed-tickets.vue\": [\n\t\t7086,\n\t\t7086\n\t],\n\t\"./transactions/my-tickets/components/closed-ticket-row.vue\": [\n\t\t3967,\n\t\t3967\n\t],\n\t\"./transactions/shared/components/lottery-logo.vue\": [\n\t\t2716,\n\t\t2716\n\t],\n\t\"./wheel-of-fortune/bonus-history/bonus-history.vue\": [\n\t\t4252,\n\t\t4252\n\t],\n\t\"./wheel-of-fortune/bonus-history/components/bonus-table-header.vue\": [\n\t\t157,\n\t\t157\n\t],\n\t\"./wheel-of-fortune/bonus-history/components/bonus-table-row.vue\": [\n\t\t5559,\n\t\t5559\n\t],\n\t\"./wheel-of-fortune/spinning-history/components/spinning-table-header.vue\": [\n\t\t6168,\n\t\t6168\n\t],\n\t\"./wheel-of-fortune/spinning-history/components/spinning-table-row.vue\": [\n\t\t32,\n\t\t32\n\t],\n\t\"./wheel-of-fortune/spinning-history/spinning-history.vue\": [\n\t\t2519,\n\t\t2519\n\t],\n\t\"./wheel-of-fortune/wheel-page/_wheel-page.vue\": [\n\t\t2305,\n\t\t7083,\n\t\t6472,\n\t\t2043,\n\t\t7280,\n\t\t9427,\n\t\t2305\n\t],\n\t\"./wheel-of-fortune/wheel-page/components/cards-carousel.vue\": [\n\t\t9427,\n\t\t9427,\n\t\t9141\n\t],\n\t\"./wheel-of-fortune/wheel-page/components/kasa-wheel.vue\": [\n\t\t2043,\n\t\t7083,\n\t\t6472,\n\t\t2043\n\t],\n\t\"./wheel-of-fortune/wheel-page/components/shared/bonus-card.vue\": [\n\t\t4976,\n\t\t4976\n\t],\n\t\"./wheel-of-fortune/wheel-page/components/shared/button-rules.vue\": [\n\t\t3042,\n\t\t3042\n\t],\n\t\"./wheel-of-fortune/wheel-page/components/shared/spin-button.vue\": [\n\t\t8292,\n\t\t8292\n\t],\n\t\"./wheel-of-fortune/wheel-page/components/wheel/components/wheel-construction.vue\": [\n\t\t4555,\n\t\t4555\n\t],\n\t\"./wheel-of-fortune/wheel-page/components/wheel/components/wheel-rotation.vue\": [\n\t\t6472,\n\t\t7083,\n\t\t6472\n\t],\n\t\"./wheel-of-fortune/wheel-page/components/win-popup.vue\": [\n\t\t7280,\n\t\t7280,\n\t\t9318\n\t],\n\t\"./wheel-of-fortune/wheel-page/components/win-popup/components/wheel-banner.vue\": [\n\t\t6959,\n\t\t2197\n\t],\n\t\"./wheel-of-fortune/wheel-page/components/win-popup/components/win-content.vue\": [\n\t\t932,\n\t\t932\n\t],\n\t\"./wheel-of-fortune/wheel-page/components/win-popup/components/win-promo.vue\": [\n\t\t9665,\n\t\t9665\n\t],\n\t\"./wheel-of-fortune/wheel-page/pages/wheel-cards-page.vue\": [\n\t\t7274,\n\t\t7083,\n\t\t6472,\n\t\t2043,\n\t\t7280,\n\t\t9427,\n\t\t7274\n\t],\n\t\"./wheel-of-fortune/wheel-page/pages/wheel-special-page.vue\": [\n\t\t1403,\n\t\t7083,\n\t\t6472,\n\t\t2043,\n\t\t1403\n\t],\n\t\"./wheel-of-fortune/wheel-page/pages/wheel-standalone-page.vue\": [\n\t\t2297,\n\t\t7083,\n\t\t6472,\n\t\t2043,\n\t\t7280,\n\t\t2297\n\t],\n\t\"./widgets/extra-game-shops-filter/_extra-game-shops-filter.vue\": [\n\t\t8882,\n\t\t8882\n\t],\n\t\"./widgets/extra-game-shops-filter/components/extra-game-shop-item.vue\": [\n\t\t7828,\n\t\t7828\n\t]\n};\nfunction webpackAsyncContext(req) {\n\tif(!__webpack_require__.o(map, req)) {\n\t\treturn Promise.resolve().then(() => {\n\t\t\tvar e = new Error(\"Cannot find module '\" + req + \"'\");\n\t\t\te.code = 'MODULE_NOT_FOUND';\n\t\t\tthrow e;\n\t\t});\n\t}\n\n\tvar ids = map[req], id = ids[0];\n\treturn Promise.all(ids.slice(1).map(__webpack_require__.e)).then(() => {\n\t\treturn __webpack_require__(id);\n\t});\n}\nwebpackAsyncContext.keys = () => (Object.keys(map));\nwebpackAsyncContext.id = 2051;\nmodule.exports = webpackAsyncContext;","var map = {\n\t\"./app/components/articles/_articles\": [\n\t\t3890,\n\t\t9,\n\t\t3890\n\t],\n\t\"./app/components/articles/_articles.ts\": [\n\t\t3890,\n\t\t9,\n\t\t3890\n\t],\n\t\"./app/components/benefits/_benefits\": [\n\t\t4686,\n\t\t9,\n\t\t4686\n\t],\n\t\"./app/components/benefits/_benefits.ts\": [\n\t\t4686,\n\t\t9,\n\t\t4686\n\t],\n\t\"./app/components/campaign/_wheel-campaign\": [\n\t\t6725,\n\t\t9,\n\t\t7083,\n\t\t6725\n\t],\n\t\"./app/components/campaign/_wheel-campaign.vue\": [\n\t\t6725,\n\t\t9,\n\t\t7083,\n\t\t6725\n\t],\n\t\"./app/components/competition/_competition-form\": [\n\t\t575,\n\t\t9,\n\t\t575\n\t],\n\t\"./app/components/competition/_competition-form.ts\": [\n\t\t575,\n\t\t9,\n\t\t575\n\t],\n\t\"./app/components/faq/_faq\": [\n\t\t5194,\n\t\t7,\n\t\t5194\n\t],\n\t\"./app/components/faq/_faq.ts\": [\n\t\t5194,\n\t\t7,\n\t\t5194\n\t],\n\t\"./app/components/shared/kasa-notification/_notifications\": [\n\t\t8438,\n\t\t9,\n\t\t8438\n\t],\n\t\"./app/components/shared/kasa-notification/_notifications.ts\": [\n\t\t8438,\n\t\t9,\n\t\t8438\n\t],\n\t\"./app/data-layer/_homepage-analytics\": [\n\t\t3545,\n\t\t9,\n\t\t5926\n\t],\n\t\"./app/data-layer/_homepage-analytics.ts\": [\n\t\t3545,\n\t\t9,\n\t\t5926\n\t],\n\t\"./app/data-layer/_kasa-submenu-analytics\": [\n\t\t5798,\n\t\t9,\n\t\t5798\n\t],\n\t\"./app/data-layer/_kasa-submenu-analytics.ts\": [\n\t\t5798,\n\t\t9,\n\t\t5798\n\t],\n\t\"./app/homepage/_anchor-animation\": [\n\t\t9841,\n\t\t9,\n\t\t9841\n\t],\n\t\"./app/homepage/_anchor-animation.ts\": [\n\t\t9841,\n\t\t9,\n\t\t9841\n\t],\n\t\"./app/homepage/_homepage-header\": [\n\t\t5797,\n\t\t9,\n\t\t5797\n\t],\n\t\"./app/homepage/_homepage-header.ts\": [\n\t\t5797,\n\t\t9,\n\t\t5797\n\t],\n\t\"./app/homepage/_wheel-winners-carousel\": [\n\t\t610,\n\t\t9,\n\t\t8229\n\t],\n\t\"./app/homepage/_wheel-winners-carousel.ts\": [\n\t\t610,\n\t\t9,\n\t\t8229\n\t],\n\t\"./app/homepage/_winners-stories-carousel\": [\n\t\t7148,\n\t\t9,\n\t\t7148\n\t],\n\t\"./app/homepage/_winners-stories-carousel.ts\": [\n\t\t7148,\n\t\t9,\n\t\t7148\n\t],\n\t\"./app/landing-pages/_extra-game\": [\n\t\t3057,\n\t\t9,\n\t\t5438\n\t],\n\t\"./app/landing-pages/_extra-game.ts\": [\n\t\t3057,\n\t\t9,\n\t\t5438\n\t],\n\t\"./app/wheel-of-fortune/wheel-page/_wheel-page\": [\n\t\t2305,\n\t\t9,\n\t\t7083,\n\t\t6472,\n\t\t2043,\n\t\t7280,\n\t\t9427,\n\t\t2305\n\t],\n\t\"./app/wheel-of-fortune/wheel-page/_wheel-page.vue\": [\n\t\t2305,\n\t\t9,\n\t\t7083,\n\t\t6472,\n\t\t2043,\n\t\t7280,\n\t\t9427,\n\t\t2305\n\t],\n\t\"./app/widgets/benefit-floor/_benefit-floor-animations\": [\n\t\t4026,\n\t\t9,\n\t\t7083,\n\t\t4026\n\t],\n\t\"./app/widgets/benefit-floor/_benefit-floor-animations.ts\": [\n\t\t4026,\n\t\t9,\n\t\t7083,\n\t\t4026\n\t],\n\t\"./app/widgets/extra-game-shops-filter/_extra-game-shops-filter\": [\n\t\t8882,\n\t\t9,\n\t\t8882\n\t],\n\t\"./app/widgets/extra-game-shops-filter/_extra-game-shops-filter.vue\": [\n\t\t8882,\n\t\t9,\n\t\t8882\n\t],\n\t\"./app/widgets/hero-simple/_hero-simple\": [\n\t\t5091,\n\t\t9,\n\t\t5091\n\t],\n\t\"./app/widgets/hero-simple/_hero-simple.ts\": [\n\t\t5091,\n\t\t9,\n\t\t5091\n\t]\n};\nfunction webpackAsyncContext(req) {\n\tif(!__webpack_require__.o(map, req)) {\n\t\treturn Promise.resolve().then(() => {\n\t\t\tvar e = new Error(\"Cannot find module '\" + req + \"'\");\n\t\t\te.code = 'MODULE_NOT_FOUND';\n\t\t\tthrow e;\n\t\t});\n\t}\n\n\tvar ids = map[req], id = ids[0];\n\treturn Promise.all(ids.slice(2).map(__webpack_require__.e)).then(() => {\n\t\treturn __webpack_require__.t(id, ids[1] | 16)\n\t});\n}\nwebpackAsyncContext.keys = () => (Object.keys(map));\nwebpackAsyncContext.id = 3256;\nmodule.exports = webpackAsyncContext;","import { reactive } from \"vue\";\r\nimport { AuthenticationDataModel, AuthenticationErrorModel } from \"../models/authentication-models\";\r\n\r\nexport const authenticationData = reactive<AuthenticationDataModel>({\r\n    userName: \"\",\r\n    password: \"\",\r\n    pin: \"\",\r\n    consents: [],\r\n});\r\n\r\nexport const authenticationErrors = reactive<AuthenticationErrorModel>({\r\n    phoneErrorMessage: \"\",\r\n    passwordErrorMessage: \"\",\r\n    pinErrorMessage: \"\",\r\n    newPasswordErrorMessage: \"\",\r\n    consentsRequireError: \"\",\r\n});\r\n\r\nconst clearAuthenticationErrors = () => {\r\n    authenticationErrors.phoneErrorMessage = \"\";\r\n    authenticationErrors.passwordErrorMessage = \"\";\r\n    authenticationErrors.pinErrorMessage = \"\";\r\n    authenticationErrors.newPasswordErrorMessage = \"\";\r\n};\r\n\r\nexport default function useAuthenticationData() {\r\n    return {\r\n        clearAuthenticationErrors,\r\n    };\r\n}","export type AccountNotificationType = \"None\" | \"VerifyEmail\" | \"FillInfo\";\r\n\r\ntype LoginStepType =\r\n    | \"LoginWelcome\" //(login after new registration)\r\n    | \"LoginPhone\"\r\n    | \"LoginPass\"\r\n    | \"ForgPinGen\"\r\n    | \"ForgPinLog\"\r\n    | \"ForgPinOk\"\r\n    | \"ForgNewPass\"\r\n    | \"ForgNewPassOk\";\r\ntype RegistrationStepType = \"RegPersonal\" | \"RegVerPhone\" | \"RegPinLog\" | \"RegPinOk\" | \"RegNewPass\";\r\nexport type AuthenticationStepType = \"None\" | LoginStepType | RegistrationStepType;\r\n\r\nconst emptyFlow: AuthenticationStepType[] = [\"None\"];\r\nconst forgPassFlow: AuthenticationStepType[] = [\"ForgPinGen\", \"ForgPinLog\", \"ForgPinOk\", \"ForgNewPass\", \"ForgNewPassOk\", ...emptyFlow];\r\nconst welcomeFlow: AuthenticationStepType[] = [\"LoginWelcome\", ...forgPassFlow];\r\n\r\nconst loginFlow: AuthenticationStepType[] = [\"LoginPhone\", \"LoginPass\", ...forgPassFlow];\r\nconst registrationFlow: AuthenticationStepType[] = [\"RegPersonal\", \"RegVerPhone\", \"RegPinOk\", ...welcomeFlow];\r\nconst regPasswordFlow: AuthenticationStepType[] = [\"RegPinLog\", \"RegPinOk\", \"RegNewPass\", ...welcomeFlow];\r\nconst verifyPhoneFlow: AuthenticationStepType[] = [\"RegPinLog\", \"RegPinOk\", ...welcomeFlow];\r\n\r\nexport const authenticationFlows = {\r\n    none: emptyFlow,\r\n    login: loginFlow,\r\n    registration: registrationFlow,\r\n    regPassword: regPasswordFlow,\r\n    verifyPhone: verifyPhoneFlow,\r\n};\r\n","import {\r\n    dataLayerLoginSecondStep,\r\n    dataLayerRegistrationCode,\r\n    dataLayerRegistrationCodeConfirmed,\r\n    dataLayerRegistrationFinished,\r\n    dataLayerRegistrationPasswordCreation,\r\n    dataLayerRegistrationPersonal,\r\n    dataLayerVerifyPhone,\r\n} from \"@/data-layer/services/account\";\r\nimport { AuthenticationStepType } from \"../models/authentication-flows\";\r\nimport { dataLayerRegistrationSuccess } from \"@/data-layer/services/actions\";\r\nimport { settings } from \"@/settings\";\r\n\r\nexport function flowDataLayerService(accoountState: AuthenticationStepType) {\r\n    switch (accoountState) {\r\n        case \"RegPersonal\":\r\n            dataLayerRegistrationPersonal();\r\n            break;\r\n        case \"LoginPass\":\r\n            dataLayerLoginSecondStep();\r\n            break;\r\n        case \"RegVerPhone\":\r\n        case \"RegPinLog\":\r\n            dataLayerVerifyPhone();\r\n            dataLayerRegistrationCode();\r\n            break;\r\n        case \"RegPinOk\":\r\n            dataLayerRegistrationCodeConfirmed();\r\n            break;\r\n        case \"RegNewPass\":\r\n            dataLayerRegistrationPasswordCreation();\r\n            break;\r\n        case \"LoginWelcome\":\r\n            dataLayerRegistrationSuccess(\"online\");\r\n            dataLayerRegistrationFinished();\r\n            break;\r\n    }\r\n}\r\n\r\nlet isAuthorisationRestricted: boolean = null;\r\nconst getIsAuthorisationRestricted = () => {\r\n    if (isAuthorisationRestricted === null) {\r\n        isAuthorisationRestricted = settings.authentication.restrictedFunctionsPages.some((url) => url == window.location.pathname);\r\n    }\r\n\r\n    return isAuthorisationRestricted;\r\n};\r\n\r\nexport function restrictedAuthenticationService(userName?: string): boolean {\r\n    if (getIsAuthorisationRestricted()) {\r\n        if (userName) {\r\n            window.location.href = `${settings.url.root}?akce=login&username=${userName}`;\r\n        } else {\r\n            window.location.href = `${settings.url.root}?akce=login`;\r\n        }\r\n\r\n        return true;\r\n    }\r\n\r\n    return false;\r\n}\r\n","import { computed, ref } from \"vue\";\r\nimport { AuthenticationStepType, authenticationFlows } from \"../models/authentication-flows\";\r\nimport { flowDataLayerService, restrictedAuthenticationService } from \"../services/flows-services\";\r\nimport useAuthenticationData, { authenticationData } from \"./use-authentication-data\";\r\n\r\nconst { clearAuthenticationErrors } = useAuthenticationData();\r\n\r\nconst authenticationFlowIndex = ref(0);\r\nconst authenticationFlow = ref(authenticationFlows.none);\r\nexport const authenticationStep = computed(() => authenticationFlow.value[authenticationFlowIndex.value]);\r\n\r\nconst containsFlowState = (state: AuthenticationStepType) => authenticationFlow.value.includes(state);\r\n\r\nconst nextFlowStep = () => {\r\n    if (authenticationFlowIndex.value < authenticationFlow.value.length - 1) {\r\n        authenticationFlowIndex.value++;\r\n\r\n        flowDataLayerService(authenticationStep.value);\r\n    }\r\n};\r\n\r\nconst prevFlowStep = () => {\r\n    if (authenticationStep.value == \"LoginWelcome\" || authenticationFlowIndex.value <= 0) {\r\n        return;\r\n    }\r\n\r\n    authenticationFlowIndex.value--;\r\n};\r\n\r\nconst setFlow = (newFlow: AuthenticationStepType[], stepName?: AuthenticationStepType) => {\r\n    authenticationFlow.value = newFlow;\r\n\r\n    clearAuthenticationErrors();\r\n\r\n    let newIndex = 0;\r\n    if (stepName) {\r\n        newIndex = authenticationFlow.value.indexOf(stepName);\r\n\r\n        if (newIndex < 0) {\r\n            newIndex = 0;\r\n        }\r\n    }\r\n    authenticationFlowIndex.value = newIndex;\r\n\r\n    flowDataLayerService(authenticationStep.value);\r\n};\r\n\r\n/**\r\n *  Close all account modals\r\n */\r\nconst closeAccountModal = (): void => {\r\n    setFlow(authenticationFlows.none);\r\n};\r\n\r\n/**\r\n *  Open login modal\r\n */\r\nconst openLoginModal = (): boolean => {\r\n    setFlow(authenticationFlows.login);\r\n    return true;\r\n};\r\n\r\n/**\r\n *  Open login modal. If username is'nt known, open in the first step.\r\n * @returns true if second step is open\r\n */\r\nconst openLoginPassModal = (): boolean => {\r\n    if (authenticationData.userName) {\r\n        setFlow(authenticationFlows.login, \"LoginPass\");\r\n        return true;\r\n    } else {\r\n        openLoginModal();\r\n        return false;\r\n    }\r\n};\r\n\r\n/**\r\n *  Open registration modal\r\n *  @returns True, if modal is open\r\n */\r\nconst openRegistrationModal = (): boolean => {\r\n    if (restrictedAuthenticationService(authenticationData.userName)) {\r\n        return false;\r\n    }\r\n\r\n    setFlow(authenticationFlows.registration);\r\n    return true;\r\n};\r\n\r\n/**\r\n *  Open registration modal with 'new password' flow\r\n *  @returns True, if modal is open\r\n */\r\nconst openRegPasswordModal = (): boolean => {\r\n    if (restrictedAuthenticationService(authenticationData.userName)) {\r\n        return false;\r\n    }\r\n\r\n    setFlow(authenticationFlows.regPassword);\r\n    return true;\r\n};\r\n\r\n/**\r\n *  Open registration modal with 'verify phone' flow\r\n *  @returns True, if modal is open\r\n */\r\nconst openVerifyPhoneModal = (): boolean => {\r\n    if (restrictedAuthenticationService(authenticationData.userName)) {\r\n        return false;\r\n    }\r\n\r\n    setFlow(authenticationFlows.verifyPhone);\r\n    return true;\r\n};\r\n\r\nexport default function useAuthenticationFlows() {\r\n    return {\r\n        containsFlowState,\r\n        nextFlowStep,\r\n        prevFlowStep,\r\n        closeAccountModal,\r\n        openLoginModal,\r\n        openLoginPassModal,\r\n        openRegistrationModal,\r\n        openRegPasswordModal,\r\n        openVerifyPhoneModal,\r\n    };\r\n}\r\n","import {\r\n    callNewPassword,\r\n    callPhoneSendVerification,\r\n    callVerifyPhone,\r\n} from \"@/api-connector/play-digital-api/metods/account/registration-api\";\r\nimport { isErrorDto, parseErrorMessage } from \"../utils/user-account-helper\";\r\n\r\nexport async function phoneSendVerificationService(phone: string): Promise<void> {\r\n    try {\r\n        await callPhoneSendVerification(phone);\r\n    } catch (ex: unknown) {\r\n        return Promise.reject(parseErrorMessage(ex, \"Při odeslání PINu došlo k chybě.\"));\r\n    }\r\n}\r\n\r\nexport async function verifyPhoneService(phone: string, pin: string): Promise<void> {\r\n    try {\r\n        await callVerifyPhone(phone, pin);\r\n    } catch (ex: unknown) {\r\n        return Promise.reject(parseErrorMessage(ex, \"Pin není správný.\"));\r\n    }\r\n}\r\n\r\nexport async function newPasswordService(password: string, token: string): Promise<void> {\r\n    try {\r\n        await callNewPassword(password, token);\r\n    } catch (ex: unknown) {\r\n        if (isErrorDto(ex)) {\r\n            if (ex.code == \"183\") return Promise.reject(\"Tohle heslo bylo použité již v minulosti. Zadejte prosím jiné.\");\r\n        }\r\n        return Promise.reject(\"Změna hesla neproběhla úspěšně, zkuste to prosím znovu.\");\r\n    }\r\n}\r\n","import { otpLoginService, otpRequestService, playerStatusService } from \"../services/login-services\";\r\nimport {\r\n    phoneSendVerificationService,\r\n    verifyPhoneService,\r\n    newPasswordService,\r\n} from \"../services/registration-services\";\r\nimport { callRegisterUser } from \"@/api-connector/play-digital-api/metods/account/registration-api\";\r\nimport { isErrorDto, parseErrorMessage } from \"../utils/user-account-helper\";\r\nimport useAuthenticationFlows, { authenticationStep } from \"./use-authentication-flows\";\r\nimport useRegistrationConsents from \"./use-registration-consents\";\r\nimport { Loader } from \"@sazka/design-system/src/loader/loader\";\r\nimport { authenticationData, authenticationErrors } from \"./use-authentication-data\";\r\n\r\nconst { nextFlowStep, prevFlowStep, openRegistrationModal, openRegPasswordModal, openVerifyPhoneModal } =\r\n    useAuthenticationFlows();\r\n\r\nexport const sendPinProcess = async (sendAllways = false): Promise<boolean> => {\r\n    try {\r\n        if (authenticationStep.value == \"RegVerPhone\") {\r\n            await phoneSendVerificationService(authenticationData.userName);\r\n        } else {\r\n            await otpRequestService(authenticationData.userName, sendAllways);\r\n        }\r\n    } catch (ex: unknown) {\r\n        authenticationErrors.pinErrorMessage = ex as string;\r\n        return false;\r\n    }\r\n    return true;\r\n};\r\n\r\nlet otpToken: string = null;\r\nexport const pinVerificationProcess = async (): Promise<boolean> => {\r\n    try {\r\n        if (authenticationStep.value == \"RegVerPhone\") {\r\n            await verifyPhoneService(authenticationData.userName, authenticationData.pin);\r\n        } else {\r\n            otpToken = await otpLoginService(authenticationData.userName, authenticationData.pin);\r\n        }\r\n    } catch (ex: unknown) {\r\n        authenticationErrors.pinErrorMessage = ex as string;\r\n        return false;\r\n    }\r\n\r\n    return true;\r\n};\r\n\r\nexport const newPasswordProcess = async (): Promise<boolean> => {\r\n    try {\r\n        await newPasswordService(authenticationData.password, otpToken);\r\n        otpToken = null;\r\n        authenticationData.password = \"\";\r\n    } catch (ex: unknown) {\r\n        authenticationErrors.newPasswordErrorMessage = ex as string;\r\n        return false;\r\n    }\r\n    return true;\r\n};\r\n\r\nexport const playerStatusProcess = async (): Promise<boolean> => {\r\n    try {\r\n        const playerStatus = await playerStatusService(authenticationData.userName);\r\n\r\n        if (!playerStatus.isRegistered) {\r\n            openRegistrationModal();\r\n            return false;\r\n        } else if (!playerStatus.isPasswordSet) {\r\n            if (openRegPasswordModal()) {\r\n                await sendPinProcess();\r\n            }\r\n            return false;\r\n        } else if (!playerStatus.isPhoneVerified) {\r\n            if (openVerifyPhoneModal()) {\r\n                await sendPinProcess();\r\n            }\r\n            return false;\r\n        }\r\n    } catch (ex: unknown) {\r\n        authenticationErrors.phoneErrorMessage = ex as string;\r\n        return false;\r\n    }\r\n\r\n    return true;\r\n};\r\n\r\nconst { getConsetsForRegApi } = useRegistrationConsents();\r\nexport const registrationProcess = async (): Promise<boolean> => {\r\n    const consents = await getConsetsForRegApi(authenticationData.consents);\r\n\r\n    try {\r\n        await callRegisterUser(authenticationData.userName, authenticationData.password, consents);\r\n    } catch (ex: unknown) {\r\n        const errorMessage = parseErrorMessage(ex, \"Chyba při registraci uživatele.\");\r\n\r\n        if (isErrorDto(ex) && ex.code.includes(\"PHONE\")) {\r\n            authenticationErrors.phoneErrorMessage = errorMessage;\r\n            return false;\r\n        }\r\n\r\n        authenticationErrors.passwordErrorMessage = errorMessage;\r\n        return false;\r\n    }\r\n\r\n    authenticationData.password = \"\";\r\n    return true;\r\n};\r\n\r\n// State machine\r\nconst nextAuthenticationStep = async () => {\r\n    let canNextStep = true;\r\n    Loader.show();\r\n\r\n    if (authenticationStep.value == \"LoginPhone\") {\r\n        canNextStep = await playerStatusProcess();\r\n    } else if (authenticationStep.value == \"ForgPinGen\") {\r\n        canNextStep = await sendPinProcess();\r\n    } else if (\r\n        authenticationStep.value == \"ForgPinLog\" ||\r\n        authenticationStep.value == \"RegPinLog\" ||\r\n        authenticationStep.value == \"RegVerPhone\"\r\n    ) {\r\n        canNextStep = await pinVerificationProcess();\r\n    } else if (authenticationStep.value == \"ForgNewPass\" || authenticationStep.value == \"RegNewPass\") {\r\n        canNextStep = await newPasswordProcess();\r\n    } else if (authenticationStep.value == \"RegPersonal\") {\r\n        canNextStep = await registrationProcess();\r\n    }\r\n\r\n    if (canNextStep) {\r\n        nextFlowStep();\r\n    }\r\n\r\n    Loader.hide();\r\n};\r\n\r\nconst prevAuthenticationStep = () => {\r\n    prevFlowStep();\r\n};\r\n\r\nexport default function useAuthentication() {\r\n    return {\r\n        sendPinProcess,\r\n        nextAuthenticationStep,\r\n        prevAuthenticationStep,\r\n    };\r\n}\r\n","import { httpClient } from \"../http-client\";\r\n\r\nexport async function fetchWecomaAuthKey(clientId: string): Promise<string> {\r\n    const response = await httpClient.post<string>(\"/kasa/gdpr/auth-key\", {\r\n        purpose: \"uid\",\r\n        value: clientId,\r\n    });\r\n\r\n    return response.data;\r\n}\r\n","import { Ref, ref } from \"vue\";\r\nimport { ResponsiveUtils } from \"../responsive-utils\";\r\n\r\ntype BreakpointType = keyof Omit<typeof ResponsiveUtils.breakpoints, \"xs\">;\r\ntype ReactiveBreakpoint = {\r\n    key: BreakpointType;\r\n    minSize: (typeof ResponsiveUtils.breakpoints)[BreakpointType];\r\n    isInUse: boolean;\r\n    value: Ref<boolean>;\r\n};\r\n\r\nlet initialized = false;\r\nlet reactiveBreakpoints: ReactiveBreakpoint[] = null;\r\n\r\n/**\r\n * Returns ref with boolean value, which means, current breakpoint is same or bigger\r\n * eg. media min-width: x\r\n * since its breakpoint up, it doesnt make sense for 'xs' which would be always true, so its omited\r\n * @param breakpoints breakpoint name eg. 'xs2' or 'xl'\r\n * @returns boolean\r\n */\r\nexport function useBreakpoints(breakpoints: BreakpointType): Ref<boolean>;\r\n\r\n/**\r\n * Returns object, with keys same as parameter value, their value is ref with boolean value, which means, current breakpoint is same or bigger\r\n * eg. media min-width: x\r\n * Example of return value: { sm: ref(true), md: ref(false) }\r\n * Returns only value passed in parametrs,\r\n * since its breakpoint up, it doesnt make sense for 'xs' which would be always true, so its omited\r\n * @param breakpoints all breakpoint names eg. 'xs2' or 'xl'\r\n */\r\nexport function useBreakpoints(...breakpoints: BreakpointType[]): { [key in BreakpointType]: Ref<boolean> };\r\n\r\nexport function useBreakpoints(...breakpoints: BreakpointType[]) {\r\n    if (breakpoints?.length == 0) return;\r\n\r\n    initialize();\r\n\r\n    if (breakpoints.length > 1) {\r\n        return breakpoints.reduce((acc, x) => {\r\n            acc[x] = reactiveBreakpoint(x);\r\n            return acc;\r\n        }, {});\r\n    } else {\r\n        return reactiveBreakpoint(breakpoints[0]);\r\n    }\r\n}\r\n\r\nfunction initialize() {\r\n    if (initialized) return;\r\n    reactiveBreakpoints = Object.keys(ResponsiveUtils.breakpoints)\r\n        .filter((x) => x !== \"xs\")\r\n        .map((x) => ({\r\n            isInUse: false,\r\n            key: x as BreakpointType,\r\n            minSize: ResponsiveUtils.breakpoints[x] as (typeof ResponsiveUtils.breakpoints)[BreakpointType],\r\n            value: ref(false),\r\n        }));\r\n\r\n    initialized = true;\r\n}\r\n\r\nfunction reactiveBreakpoint(breakpoint: BreakpointType) {\r\n    const brkpnt = reactiveBreakpoints.find((x) => x.key === breakpoint);\r\n    if (!brkpnt.isInUse) {\r\n        brkpnt.isInUse = true;\r\n        const media = window.matchMedia(`(min-width: ${brkpnt.minSize}px)`);\r\n        brkpnt.value.value = media.matches;\r\n        media.onchange = (e) => {\r\n            brkpnt.value.value = e.matches;\r\n        };\r\n    }\r\n    return brkpnt.value;\r\n}\r\n","import { defineComponent as _defineComponent } from 'vue'\nimport { unref as _unref, openBlock as _openBlock, createBlock as _createBlock, createCommentVNode as _createCommentVNode, createElementVNode as _createElementVNode, normalizeClass as _normalizeClass, createElementBlock as _createElementBlock } from \"vue\"\n\nconst _hoisted_1 = [\"innerHTML\"]\nconst _hoisted_2 = [\"innerHTML\"]\nconst _hoisted_3 = [\"innerHTML\"]\nconst _hoisted_4 = [\"innerHTML\"]\n\nimport { onMounted, ref } from \"vue\";\r\nimport WebpImage from \"@sazka/design-system/src/image/webp-image.vue\";\r\nimport { useWecomaIntegration } from \"./use-wecoma-integration\";\r\nimport { pushConsentBarShow, pushAllConsentBar, pushEssentialsConsentBar } from \"./use-wecoma-datalayer\";\r\nimport { useBreakpoints } from \"../composables/use-breakpoints\";\r\nimport { WecomaConstants } from \"./wecoma-constants\";\r\n\r\n\nexport default /*@__PURE__*/_defineComponent({\n  __name: 'consent-bar',\n  setup(__props) {\n\r\nconst { consentToAllPurposes, redirectToPreferenceCenter, redirectToPrivacyPolicy, consentToOnlyNecessaryPurposes } =\r\n    useWecomaIntegration();\r\n\r\nconst preferenceCenterLink = `${appSettings[\"Integrations:Wecoma:Domain\"]}?key=${WecomaConstants.WECOMA_CODE}&locale=cs-CZ&authKeys=${WecomaConstants.WECOMA_AUTHKEY}&contexts=consentbar&source=cookiebanner`;\r\n\r\nconst header = environment.gdpr.gdprHeader;\r\n\r\nconst text = environment.gdpr.gdprMessage;\r\nconst headerMobile = environment.gdpr.gdprHeaderMobile;\r\nconst textMobile = environment.gdpr.gdprMessageMobile;\r\nconst image = environment.gdpr.gdprImageUrl;\r\n\r\nconst hidingClass = ref(\"\");\r\nconst hide = () => {\r\n    hidingClass.value = \"hiding\";\r\n    setTimeout(() => {\r\n        hidingClass.value = \"hidden\";\r\n    }, 500);\r\n};\r\n\r\nconst consentAll = () => {\r\n    consentToAllPurposes();\r\n    pushAllConsentBar();\r\n    hide();\r\n};\r\n\r\nconst consentToOnlyNecessary = () => {\r\n    consentToOnlyNecessaryPurposes();\r\n    pushEssentialsConsentBar();\r\n    hide();\r\n};\r\n\r\nconst imageVisible = ref(true);\r\nconst hideKulicnik = (e) => {\r\n    const sm2 = useBreakpoints(\"sm2\");\r\n    imageVisible.value = sm2.value || e?.target?.scrollTop === 0;\r\n};\r\n\r\nonMounted(() => {\r\n    const prefCenterLinkElement = document.getElementById(\"consent-bar-preference-center\") as HTMLAnchorElement;\r\n    const prefCenterLinkElementMobile = document.getElementById(\r\n        \"consent-bar-preference-center-mobile\"\r\n    ) as HTMLAnchorElement;\r\n\r\n    if (prefCenterLinkElement) {\r\n        prefCenterLinkElement.href = preferenceCenterLink;\r\n        prefCenterLinkElement.addEventListener(\"click\", () => redirectToPreferenceCenter(\"text\"));\r\n    }\r\n\r\n    if (prefCenterLinkElementMobile) {\r\n        prefCenterLinkElementMobile.href = preferenceCenterLink;\r\n        prefCenterLinkElementMobile.addEventListener(\"click\", () => redirectToPreferenceCenter(\"text\"));\r\n    }\r\n\r\n    const privacyPolicyLinkElement = document.getElementById(\"consent-bar-privacy-policy\") as HTMLAnchorElement;\r\n    privacyPolicyLinkElement.addEventListener(\"click\", () => redirectToPrivacyPolicy());\r\n\r\n    pushConsentBarShow();\r\n});\r\n\nreturn (_ctx: any,_cache: any) => {\n  return (_openBlock(), _createElementBlock(\"div\", {\n    class: _normalizeClass([\"consent-bar\", hidingClass.value]),\n    \"data-test\": \"consent-bar\"\n  }, [\n    (imageVisible.value)\n      ? (_openBlock(), _createBlock(WebpImage, {\n          key: 0,\n          src: _unref(image),\n          alt: \"cookie lišta\",\n          \"css-class\": \"consent-bar__image\"\n        }, null, 8, [\"src\"]))\n      : _createCommentVNode(\"\", true),\n    _createElementVNode(\"div\", {\n      class: \"consent-bar__content\",\n      ref: \"contentSection\",\n      onScroll: hideKulicnik\n    }, [\n      _createElementVNode(\"h2\", {\n        class: \"consent-bar__title\",\n        innerHTML: _unref(header)\n      }, null, 8, _hoisted_1),\n      _createElementVNode(\"h2\", {\n        class: \"consent-bar__title consent-bar__title--mobile\",\n        innerHTML: _unref(headerMobile)\n      }, null, 8, _hoisted_2),\n      _createElementVNode(\"div\", {\n        class: \"consent-bar__text\",\n        innerHTML: _unref(text)\n      }, null, 8, _hoisted_3),\n      _createElementVNode(\"div\", {\n        class: \"consent-bar__text consent-bar__text--mobile\",\n        innerHTML: _unref(textMobile)\n      }, null, 8, _hoisted_4)\n    ], 544),\n    _createElementVNode(\"div\", { class: \"consent-bar__actions\" }, [\n      _createElementVNode(\"button\", {\n        type: \"button\",\n        class: \"btn btn-sm btn-secondary\",\n        onClick: consentAll\n      }, \"Souhlasím se vším\"),\n      _createElementVNode(\"button\", {\n        type: \"button\",\n        class: \"btn btn-sm consent-bar__more\",\n        onClick: consentToOnlyNecessary\n      }, \" Pouze nezbytné \")\n    ])\n  ], 2))\n}\n}\n\n})","<template>\r\n    <div class=\"consent-bar\" :class=\"hidingClass\" data-test=\"consent-bar\">\r\n        <WebpImage v-if=\"imageVisible\" :src=\"image\" alt=\"cookie lišta\" css-class=\"consent-bar__image\" />\r\n        <div class=\"consent-bar__content\" ref=\"contentSection\" @scroll=\"hideKulicnik\">\r\n            <h2 class=\"consent-bar__title\" v-html=\"header\"></h2>\r\n            <h2 class=\"consent-bar__title consent-bar__title--mobile\" v-html=\"headerMobile\"></h2>\r\n            <div class=\"consent-bar__text\" v-html=\"text\"></div>\r\n            <div class=\"consent-bar__text consent-bar__text--mobile\" v-html=\"textMobile\"></div>\r\n        </div>\r\n        <div class=\"consent-bar__actions\">\r\n            <button type=\"button\" class=\"btn btn-sm btn-secondary\" @click=\"consentAll\">Souhlasím se vším</button>\r\n            <button type=\"button\" class=\"btn btn-sm consent-bar__more\" @click=\"consentToOnlyNecessary\">\r\n                Pouze nezbytné\r\n            </button>\r\n        </div>\r\n    </div>\r\n</template>\r\n\r\n<script setup lang=\"ts\">\r\nimport { onMounted, ref } from \"vue\";\r\nimport WebpImage from \"@sazka/design-system/src/image/webp-image.vue\";\r\nimport { useWecomaIntegration } from \"./use-wecoma-integration\";\r\nimport { pushConsentBarShow, pushAllConsentBar, pushEssentialsConsentBar } from \"./use-wecoma-datalayer\";\r\nimport { useBreakpoints } from \"../composables/use-breakpoints\";\r\nimport { WecomaConstants } from \"./wecoma-constants\";\r\n\r\nconst { consentToAllPurposes, redirectToPreferenceCenter, redirectToPrivacyPolicy, consentToOnlyNecessaryPurposes } =\r\n    useWecomaIntegration();\r\n\r\nconst preferenceCenterLink = `${appSettings[\"Integrations:Wecoma:Domain\"]}?key=${WecomaConstants.WECOMA_CODE}&locale=cs-CZ&authKeys=${WecomaConstants.WECOMA_AUTHKEY}&contexts=consentbar&source=cookiebanner`;\r\n\r\nconst header = environment.gdpr.gdprHeader;\r\n\r\nconst text = environment.gdpr.gdprMessage;\r\nconst headerMobile = environment.gdpr.gdprHeaderMobile;\r\nconst textMobile = environment.gdpr.gdprMessageMobile;\r\nconst image = environment.gdpr.gdprImageUrl;\r\n\r\nconst hidingClass = ref(\"\");\r\nconst hide = () => {\r\n    hidingClass.value = \"hiding\";\r\n    setTimeout(() => {\r\n        hidingClass.value = \"hidden\";\r\n    }, 500);\r\n};\r\n\r\nconst consentAll = () => {\r\n    consentToAllPurposes();\r\n    pushAllConsentBar();\r\n    hide();\r\n};\r\n\r\nconst consentToOnlyNecessary = () => {\r\n    consentToOnlyNecessaryPurposes();\r\n    pushEssentialsConsentBar();\r\n    hide();\r\n};\r\n\r\nconst imageVisible = ref(true);\r\nconst hideKulicnik = (e) => {\r\n    const sm2 = useBreakpoints(\"sm2\");\r\n    imageVisible.value = sm2.value || e?.target?.scrollTop === 0;\r\n};\r\n\r\nonMounted(() => {\r\n    const prefCenterLinkElement = document.getElementById(\"consent-bar-preference-center\") as HTMLAnchorElement;\r\n    const prefCenterLinkElementMobile = document.getElementById(\r\n        \"consent-bar-preference-center-mobile\"\r\n    ) as HTMLAnchorElement;\r\n\r\n    if (prefCenterLinkElement) {\r\n        prefCenterLinkElement.href = preferenceCenterLink;\r\n        prefCenterLinkElement.addEventListener(\"click\", () => redirectToPreferenceCenter(\"text\"));\r\n    }\r\n\r\n    if (prefCenterLinkElementMobile) {\r\n        prefCenterLinkElementMobile.href = preferenceCenterLink;\r\n        prefCenterLinkElementMobile.addEventListener(\"click\", () => redirectToPreferenceCenter(\"text\"));\r\n    }\r\n\r\n    const privacyPolicyLinkElement = document.getElementById(\"consent-bar-privacy-policy\") as HTMLAnchorElement;\r\n    privacyPolicyLinkElement.addEventListener(\"click\", () => redirectToPrivacyPolicy());\r\n\r\n    pushConsentBarShow();\r\n});\r\n</script>\r\n","import script from \"./consent-bar.vue?vue&type=script&setup=true&lang=ts\"\nexport * from \"./consent-bar.vue?vue&type=script&setup=true&lang=ts\"\n\nconst __exports__ = script;\n\nexport default __exports__","import { createApp, watch } from \"vue\";\r\nimport { wecomaRedirectActive } from \"@sazka/utils/gdpr/use-wecoma-redirect\";\r\nimport useUserAccount, { isUserLoggedIn } from \"../use-user-account\";\r\nimport { useWecomaIntegration } from \"@sazka/utils/gdpr/use-wecoma-integration\";\r\nimport { WecomaConstants } from \"@sazka/utils/gdpr/wecoma-constants\";\r\nimport { fetchWecomaAuthKey } from \"@/api-connector/sazka-api/methods/wecoma-api\";\r\nimport { logException } from \"@sazka/utils/logger/use-app-logger\";\r\nimport ConsentBar from \"@sazka/utils/gdpr/consent-bar.vue\";\r\n\r\nlet loaded = false;\r\n\r\nasync function init() {\r\n    if (loaded) return;\r\n\r\n    loaded = true;\r\n\r\n    initConsentBar();\r\n\r\n    if (wecomaRedirectActive) {\r\n        const { waitForUserAccount } = useUserAccount();\r\n\r\n        await waitForUserAccount();\r\n\r\n        watch(\r\n            isUserLoggedIn,\r\n            async (newIsUserLoggedIn) => {\r\n                if (newIsUserLoggedIn) {\r\n                    window.location.href = await getLinkToPrefCenter();\r\n                }\r\n            },\r\n            { immediate: true }\r\n        );\r\n    }\r\n}\r\n\r\nasync function initConsentBar() {\r\n    const { shouldCookieBarOpen } = useWecomaIntegration();\r\n    try {\r\n        if (!(await shouldCookieBarOpen())) return;\r\n\r\n        const component = createApp(ConsentBar);\r\n\r\n        const root = document.createElement(\"div\");\r\n        document.body.appendChild(root);\r\n        component.mount(root);\r\n    } catch (ex: unknown) {\r\n        logException(\"wecoma-sa\", ex, { message: \"error while initializng consent bar\" });\r\n    }\r\n}\r\n\r\nasync function getAuthKey() {\r\n    const { waitForUserAccount } = useUserAccount();\r\n\r\n    const userAccountData = await waitForUserAccount();\r\n    if (!isUserLoggedIn.value) {\r\n        return null;\r\n    }\r\n\r\n    try {\r\n        return await fetchWecomaAuthKey(userAccountData.value.clientId);\r\n    } catch (ex: unknown) {\r\n        logException(\"wecoma-sa\", ex, { message: \"Error getting auth key\" });\r\n    }\r\n}\r\n\r\nasync function getLinkToPrefCenter() {\r\n    const authKey = await getAuthKey();\r\n\r\n    const domain = appSettings[\"Integrations:Wecoma:Domain\"];\r\n\r\n    let link = `${domain}?locale=cs-CZ`;\r\n\r\n    if (authKey) {\r\n        link += `&key=${WecomaConstants.WECOMA_CODE}&authKeys=${authKey}`;\r\n    }\r\n    return link;\r\n}\r\n\r\nexport function useGdpr() {\r\n    return {\r\n        init,\r\n        getLinkToPrefCenter,\r\n    };\r\n}\r\n","import { ref } from \"vue\";\r\nimport { ConsentDto } from \"../models/registration/consent-dto\";\r\nimport { RegistrationConsentModel } from \"@/api-connector/play-digital-api/models/registration-models\";\r\nimport { FetchConsentResponse } from \"@/api-connector/play-digital-api/models/consent-models\";\r\nimport { fetchConsents } from \"@/api-connector/play-digital-api/metods/account/registration-api\";\r\nimport { Loader } from \"@sazka/design-system/src/loader/loader\";\r\nimport sazkaAlert from \"@/shared/components/sazka-alert/use-sazka-alert\";\r\n\r\nconst consents = ref<FetchConsentResponse[]>(null);\r\n\r\nconst getConsents = async () => {\r\n    Loader.show();\r\n    try {\r\n        consents.value = await fetchConsents();\r\n    } catch {\r\n        sazkaAlert(\"Došlo k chybě v načítání souhlasů.\", \"Prosím, opakujte akci později.\", \"Rozumím\", true);\r\n    } finally {\r\n        Loader.hide();\r\n    }\r\n};\r\n\r\nconst consentsIdDescriptions = [\r\n    {\r\n        id: \"23\",\r\n        description: \"Chci dostávat obchodní sdělení Sazka Klubu přizpůsobená mým zájmům.\",\r\n    },\r\n    {\r\n        id: \"9\",\r\n        description:\r\n            \"Souhlasím s <a href='https://static.sazka.cz/kentico-media/sazka/media/kasa/uvod/faq/pravidla_sazka_klub_2025_3.pdf' target='_blank' rel='nofollow noopener noreferrer'>pravidly Sazka Klubu</a> a seznámil(a) jsem se s <a href='https://static.sazka.cz/kentico-media/sazka/media/kasa/uvod/faq/zpracovani-osobnich-udaju_2025.pdf' target='_blank' rel='nofollow noopener noreferrer'>Informací o zpracování osobních údajů</a> a potvrzuji, že je mi více než 18 let.\",\r\n    },\r\n];\r\n\r\nconst getDisplayedConsets = async (): Promise<ConsentDto[]> => {\r\n    if (!consents.value?.length) {\r\n        await getConsents();\r\n    }\r\n\r\n    const consentDtos: ConsentDto[] = [];\r\n\r\n    consentsIdDescriptions.forEach((constestIdDescription) => {\r\n        const item = consents.value.find((item) => item.id == constestIdDescription.id);\r\n\r\n        consentDtos.push({\r\n            enabled: item.id == \"23\", // consent with id 23 should be checked\r\n            id: item.id,\r\n            description: constestIdDescription.description,\r\n            mandatory: item.isMandatoryConsentTrue,\r\n        });\r\n    });\r\n\r\n    return consentDtos;\r\n};\r\n\r\nconst getConsetsForRegApi = async (consentsDto: ConsentDto[]): Promise<RegistrationConsentModel[]> => {\r\n    if (!consents.value?.length) {\r\n        await getConsents();\r\n    }\r\n\r\n    return consents.value.map((consent) => {\r\n        const currentConsent = consentsDto.find((consentDto) => consentDto.id == consent.id);\r\n\r\n        return {\r\n            id: consent.id,\r\n            version: consent.descriptions[0].version,\r\n            nextVersion: null,\r\n            enabled: currentConsent ? currentConsent.enabled : consent.isMandatoryConsentTrue,\r\n            requiresConsent: consent.isMandatoryConsentTrue,\r\n            updateDate: consent.lastUpdateTime,\r\n            language: consent.descriptions[0].language,\r\n        };\r\n    });\r\n};\r\n\r\nexport default function useRegistrationConsents() {\r\n    return {\r\n        getDisplayedConsets,\r\n        getConsetsForRegApi,\r\n    };\r\n}\r\n","import { TokenModel } from \"@/api-connector/play-digital-api/models/login-models\";\r\nimport { cookieStore } from \"@/shared/utils/store/use-store\";\r\nimport { computed, readonly, ref } from \"vue\";\r\n\r\n/* ************************************* USER TOKEN ************************* */\r\n\r\n// dont change the name, because BE check the cookie value\r\nconst tokenCookieName = \"igt-oauth-token\";\r\nconst authTokenModel = ref(cookieStore.get<TokenModel>(tokenCookieName));\r\nconst cookieDurability = computed(() => parseInt(authTokenModel.value?.tokenParams.expiresIn ?? \"3600\") / 3600 / 24);\r\n\r\nexport const authToken = computed(() => authTokenModel.value?.token);\r\n\r\nexport const storeUserToken = (tokenModel: TokenModel): void => {\r\n    authTokenModel.value = tokenModel;\r\n    cookieStore.set(tokenCookieName, tokenModel, { expires: cookieDurability.value });\r\n};\r\n\r\n/* ******************************* BONUS MODAL ******************************* */\r\nconst obtainableBonusCookieName = \"obtainable-bonus-closed\";\r\nconst isObtainableBonusOpenInternal = ref(!cookieStore.get<boolean>(obtainableBonusCookieName));\r\nexport const isObtainableBonusOpen = readonly(isObtainableBonusOpenInternal);\r\n\r\nexport const storeObtainableBonusClosed = (): void => {\r\n    isObtainableBonusOpenInternal.value = false;\r\n    cookieStore.set(obtainableBonusCookieName, true);\r\n};\r\n\r\n/* ******************************** SHARED ******************************** */\r\nexport const removeUserCookies = (): void => {\r\n    authTokenModel.value = null;\r\n    cookieStore.remove(tokenCookieName);\r\n\r\n    isObtainableBonusOpenInternal.value = false;\r\n    cookieStore.remove(obtainableBonusCookieName);\r\n};\r\n","import {\r\n    callLogin,\r\n    callLogout,\r\n    callOtpRequest,\r\n    fetchPlayerStatus,\r\n} from \"@/api-connector/play-digital-api/metods/account/login-api\";\r\nimport { isErrorDto } from \"../utils/user-account-helper\";\r\nimport { authToken, removeUserCookies, storeUserToken } from \"../composables/user-cookies\";\r\nimport { settings } from \"@/settings\";\r\nimport { cookieStore } from \"@/shared/utils/store/use-store\";\r\nimport { isMobileApp, triggerMobileAppEvent } from \"@sazka/mobile-apps/mobile-app-integration\";\r\nimport { PlayerStatusModel } from \"@/api-connector/play-digital-api/models/login-models\";\r\nimport { PlayerDetailModel } from \"@/api-connector/play-digital-api/models/account-models\";\r\nimport { PlayerContactApi } from \"@/api-connector/sazka-api/methods/player-contact-api\";\r\nimport { PlayerContactRequest } from \"@/api-connector/sazka-api/models/player-login-request\";\r\n\r\nconst otpSentCookieName = \"kasa-otp-sent\";\r\nconst otpSentCookieDuration = 1 / 24;\r\n\r\nexport async function playerStatusService(userName: string): Promise<PlayerStatusModel> {\r\n    try {\r\n        const status = await fetchPlayerStatus(userName);\r\n\r\n        if (status.blockedSince)\r\n            return Promise.reject(\r\n                \"Váš Sazka Klub účet je zablokovaný. Pro odblokování prosím kontaktujte naši infolinku <a href='tel:266121212'>266 12 12 12</a>.\"\r\n            );\r\n\r\n        return status;\r\n    } catch (ex: unknown) {\r\n        if (isErrorDto(ex)) {\r\n            if (ex.code == \"Player not found\") return Promise.reject(\"Číslo není správné.\");\r\n        }\r\n\r\n        return Promise.reject(\"Chyba při ověření uživatele.\");\r\n    }\r\n}\r\n\r\nexport async function otpRequestService(userName: string, sendAllways = false): Promise<void> {\r\n    if (!sendAllways) {\r\n        const alreadySentUserName = cookieStore.get<string>(otpSentCookieName);\r\n\r\n        if (alreadySentUserName == userName) {\r\n            return;\r\n        }\r\n    }\r\n\r\n    try {\r\n        await callOtpRequest(userName);\r\n        cookieStore.set(otpSentCookieName, userName, { expires: otpSentCookieDuration });\r\n    } catch (ex: unknown) {\r\n        return Promise.reject(\"Nepodařilo se odeslat PIN na váš telefon.\");\r\n    }\r\n}\r\n\r\nexport async function otpLoginService(userName: string, pin: string): Promise<string> {\r\n    try {\r\n        const tokens = await callLogin(userName, pin);\r\n\r\n        cookieStore.remove(otpSentCookieName);\r\n\r\n        const oAuthToken = tokens.find((token) => token.tokenType == \"OAuth\");\r\n        return oAuthToken.token;\r\n    } catch (ex: unknown) {\r\n        if (isErrorDto(ex)) {\r\n            if (ex.code == \"3\") return Promise.reject(\"Pin není správný.\");\r\n            else if (ex.code == \"10\") return Promise.reject(\"Příliš mnoho neúspěšných pokusů, opakujte akci později.\");\r\n        }\r\n\r\n        return Promise.reject(\"Přihlášení se nezdařilo, opakujte akci později.\");\r\n    }\r\n}\r\n\r\nexport async function loginService(userName: string, password: string): Promise<void> {\r\n    try {\r\n        const tokens = await callLogin(userName, password);\r\n\r\n        const oAuthToken = tokens.find((token) => token.tokenType == \"OAuth\");\r\n        storeUserToken(oAuthToken);\r\n    } catch (ex: unknown) {\r\n        if (isErrorDto(ex)) {\r\n            if (ex.code == \"3\") return Promise.reject(\"Heslo není správné.\");\r\n            else if (ex.code == \"10\") return Promise.reject(\"Příliš mnoho neúspěšných pokusů, opakujte akci později.\");\r\n        }\r\n\r\n        return Promise.reject(\"Přihlášení se nezdařilo, opakujte akci později.\");\r\n    }\r\n}\r\n\r\nexport async function playerContactService(playerData: PlayerDetailModel) {\r\n    try {\r\n        const playerContactData: PlayerContactRequest = {\r\n            birthdate: playerData.playerPersonalInfo?.birthdate,\r\n            cardId: playerData.cardId,\r\n            cardStatus: playerData.cardStatus,\r\n            clientId: playerData.clientId,\r\n            email: playerData.email,\r\n            firstName: playerData.playerPersonalInfo?.firstName,\r\n            gender: playerData.playerPersonalInfo?.gender,\r\n            lastName: playerData.playerPersonalInfo?.lastName,\r\n            phone: playerData.phone,\r\n        };\r\n\r\n        return await PlayerContactApi.callPlayerContact(playerContactData);\r\n    } catch (ex: unknown) {\r\n        console.error(ex);\r\n    }\r\n}\r\n\r\n/**\r\n * Service to logout user. It removes user cookie and calls logout API. Finally, the user is redirected to the homepage.\r\n * @param {boolean} onlyInternal if true, logout API wont be called\r\n * @returns {Promise<void>}\r\n */\r\nexport async function logoutService(onlyInternal = false): Promise<void> {\r\n    if (isMobileApp) {\r\n        triggerMobileAppEvent(\"goToDeeplink\", \"session-expired\");\r\n        return;\r\n    }\r\n\r\n    if (!onlyInternal) {\r\n        try {\r\n            await callLogout(authToken.value);\r\n        } catch (ex: unknown) {\r\n            console.error(ex);\r\n        }\r\n    }\r\n\r\n    removeUserCookies();\r\n\r\n    window.location.href = settings.url.root + window.location.search;\r\n}\r\n","import { callVerifyEmail } from \"@/api-connector/play-digital-api/metods/account/registration-api\";\r\nimport { fetchPlayerDetail } from \"@/api-connector/play-digital-api/metods/account/account-api\";\r\nimport { PlayerDetailModel } from \"@/api-connector/play-digital-api/models/account-models\";\r\nimport sazkaAlert from \"@/shared/components/sazka-alert/use-sazka-alert\";\r\nimport { dataLayerRegistrationMailExpired } from \"@/data-layer/services/account\";\r\nimport { parseErrorMessage } from \"../utils/user-account-helper\";\r\n\r\nexport async function playerDetailService(): Promise<PlayerDetailModel> {\r\n    try {\r\n        const playerDetail = await fetchPlayerDetail();\r\n\r\n        if ((playerDetail.playerPersonalInfo.gender as string) == \"M\") {\r\n            playerDetail.playerPersonalInfo.gender = \"MALE\";\r\n        } else if ((playerDetail.playerPersonalInfo.gender as string) == \"F\") {\r\n            playerDetail.playerPersonalInfo.gender = \"FEMALE\";\r\n        } else if ((playerDetail.playerPersonalInfo.gender as string) == \"U\") {\r\n            playerDetail.playerPersonalInfo.gender = \"UNSPECIFIED\";\r\n        }\r\n\r\n        return playerDetail;\r\n    } catch (ex) {\r\n        Promise.reject(\"Nepodařilo se načíst informace o uživateli.\");\r\n    }\r\n}\r\n\r\nexport async function verifyEmailService(userName: string, token: string) {\r\n    try {\r\n        if (userName && token) {\r\n            await callVerifyEmail(userName, token);\r\n            sazkaAlert(\"Email úspěšně ověřen\");\r\n        }\r\n    } catch (ex: unknown) {\r\n        sazkaAlert(parseErrorMessage(ex, \"Při pokusu o ověření emailu došlo k chybě\"));\r\n        dataLayerRegistrationMailExpired();\r\n    }\r\n}\r\n","import { Ref, computed, ref, watch } from \"vue\";\r\nimport { PlayerDetailModel } from \"@/api-connector/play-digital-api/models/account-models\";\r\nimport { AccountNotificationType } from \"./models/authentication-flows\";\r\nimport { getNotificationState } from \"./utils/user-account-helper\";\r\n\r\nimport { authToken } from \"./composables/user-cookies\";\r\nimport { loginService, logoutService, playerContactService } from \"./services/login-services\";\r\nimport { UrlHelper } from \"@/helpers/url-helper\";\r\nimport { Loader } from \"@sazka/design-system/src/loader/loader\";\r\nimport { verifyEmailService, playerDetailService } from \"./services/account-services\";\r\nimport useAuthentication from \"./composables/use-authentication\";\r\nimport useAuthenticationFlows, { authenticationStep } from \"./composables/use-authentication-flows\";\r\nimport { dataLayerUserInfo } from \"@/data-layer/services/account\";\r\nimport { dataLayerFirstLogin, dataLayerLogin } from \"@/data-layer/services/actions\";\r\nimport { wecomaRedirectActive } from \"@sazka/utils/gdpr/use-wecoma-redirect\";\r\nimport { authenticationData, authenticationErrors } from \"./composables/use-authentication-data\";\r\n\r\nexport const userNotificationState = ref<AccountNotificationType>(\"None\");\r\n\r\nexport const userAccountData = ref<PlayerDetailModel>(null);\r\nexport const isUserLoggedIn = computed(() => !!userAccountData.value);\r\n\r\nconst externalClientId = ref<string>(null);\r\nexport const clientId = computed({\r\n    get() {\r\n        return externalClientId.value || userAccountData.value?.clientId;\r\n    },\r\n    set(newClientId) {\r\n        externalClientId.value = newClientId;\r\n    },\r\n});\r\n\r\nconst { openLoginModal, openRegistrationModal, closeAccountModal } = useAuthenticationFlows();\r\nconst { nextAuthenticationStep } = useAuthentication();\r\n\r\nconst tryGetUserAccount = computed(() => !!authToken.value);\r\n\r\n/* *************************** LOGIN CALLBACK **************************** */\r\n//#region Login callback\r\n\r\nlet onLoginCallbacks: ((userAccountData: PlayerDetailModel) => void)[] = [];\r\n/**\r\n * Non blocking callbacks, when user is logged in, these functions will be resolving asynchronously after.\r\n * @param callbackFunction will be called, when user logged in.\r\n * @returns\r\n */\r\nconst addOnLoginCallback = (callbackFunction: (userAccountData: PlayerDetailModel) => void) => {\r\n    if (isUserLoggedIn.value) {\r\n        callbackFunction(userAccountData.value);\r\n        return;\r\n    }\r\n\r\n    onLoginCallbacks.push(callbackFunction);\r\n};\r\n\r\nconst resolveLoginCallbacks = () => {\r\n    for (const callback of onLoginCallbacks) {\r\n        callback(userAccountData.value);\r\n    }\r\n\r\n    onLoginCallbacks = [];\r\n};\r\n\r\n//#endregion\r\n\r\n/* *********************** LOGIN WAITERS ****************************** */\r\n//#region Login waiters\r\n\r\nlet loggedInWaiters: ((userAccountData: Ref<PlayerDetailModel>) => void)[] = [];\r\n\r\n/**\r\n * Blocking functions. This collected waiters and resolve then when user data are avalable.\r\n * @returns Promise returs player data.\r\n */\r\nconst waitForUserAccount = async (): Promise<Ref<PlayerDetailModel>> => {\r\n    return new Promise((res) => {\r\n        if (!tryGetUserAccount.value || isUserLoggedIn.value) {\r\n            res(userAccountData);\r\n            return;\r\n        }\r\n\r\n        loggedInWaiters.push(res);\r\n    });\r\n};\r\n\r\nconst resolveLoggedInWaiters = () => {\r\n    for (const res of loggedInWaiters) {\r\n        res(userAccountData);\r\n    }\r\n\r\n    loggedInWaiters = [];\r\n};\r\n//#endregion\r\n\r\n/* ****************************** PLAYER DATA FUNCTIONS ********************** */\r\n//#region Player data function\r\n\r\nconst refreshPlayerData = async () => {\r\n    try {\r\n        userAccountData.value = await playerDetailService();\r\n        userNotificationState.value = getNotificationState(userAccountData.value);\r\n    } catch (ex: unknown) {\r\n        await logoutService();\r\n    }\r\n};\r\n\r\nconst init = async () => {\r\n    const action = UrlHelper.getQueryString(\"akce\");\r\n    const username = UrlHelper.getQueryString(\"username\");\r\n    const token = UrlHelper.getQueryString(\"token\");\r\n\r\n    if (username && token) {\r\n        await verifyEmailService(username, token);\r\n    }\r\n\r\n    if (action == \"login\") {\r\n        if (tryGetUserAccount.value) {\r\n            await logoutService();\r\n            resolveLoggedInWaiters();\r\n        }\r\n\r\n        if (username) {\r\n            authenticationData.userName = username;\r\n            openLoginModal();\r\n            await nextAuthenticationStep();\r\n        } else {\r\n            openLoginModal();\r\n        }\r\n    } else if (action == \"registrace\") {\r\n        if (tryGetUserAccount.value) {\r\n            await logoutService();\r\n            resolveLoggedInWaiters();\r\n        }\r\n\r\n        openRegistrationModal();\r\n    } else if (tryGetUserAccount.value) {\r\n        await refreshPlayerData();\r\n        resolveLoggedInWaiters();\r\n\r\n        if (isUserLoggedIn.value) {\r\n            resolveLoginCallbacks();\r\n            dataLayerUserInfo(userAccountData.value.cardId, clientId.value);\r\n        } else if (wecomaRedirectActive) {\r\n            openLoginModal();\r\n        }\r\n    }\r\n\r\n    if (action || username || token) {\r\n        UrlHelper.clearUrlParams([\"akce\", \"username\", \"token\"]);\r\n    }\r\n};\r\n\r\ninit();\r\n\r\n//#endregion\r\n\r\n/* ***************************** LOGIN FUNTIONS ************************** */\r\n//#region  Login functions\r\nwatch(isUserLoggedIn, (newIsLoggedIn) => {\r\n    if (newIsLoggedIn) {\r\n        document.body.classList.add(\"authenticated\");\r\n        document.body.classList.remove(\"unauthenticated\", \"session-unknown\");\r\n    } else {\r\n        document.body.classList.add(\"unauthenticated\");\r\n        document.body.classList.remove(\"authenticated\", \"session-unknown\");\r\n    }\r\n});\r\n\r\nconst loginUser = async (): Promise<boolean> => {\r\n    Loader.show();\r\n\r\n    try {\r\n        await loginService(authenticationData.userName, authenticationData.password);\r\n        await refreshPlayerData();\r\n\r\n        await playerContactService(userAccountData.value);\r\n\r\n        resolveLoginCallbacks();\r\n\r\n        closeAccountModal();\r\n    } catch (ex: unknown) {\r\n        authenticationErrors.passwordErrorMessage = ex as string;\r\n        return false;\r\n    } finally {\r\n        Loader.hide();\r\n    }\r\n\r\n    if (authenticationStep.value == \"LoginWelcome\") {\r\n        dataLayerFirstLogin();\r\n    } else {\r\n        dataLayerLogin();\r\n    }\r\n\r\n    return true;\r\n};\r\n\r\n//#endregion\r\n\r\nexport default function useUserAccount() {\r\n    return {\r\n        userAccountData,\r\n\r\n        addOnLoginCallback,\r\n        waitForUserAccount,\r\n        refreshPlayerData,\r\n        loginUser,\r\n    };\r\n}\r\n","import { ErrorDto } from \"@/api-connector/play-digital-api/models/shared-models\";\r\nimport { PlayerDetailModel } from \"@/api-connector/play-digital-api/models/account-models\";\r\nimport { AccountNotificationType } from \"../models/authentication-flows\";\r\n\r\nexport function formatSazkaCardNumber(cardId: string) {\r\n    return cardId.slice(0, 1) + \" \" + cardId.slice(1, 4) + \" \" + cardId.slice(4, 7) + \" \" + cardId.slice(7, 10);\r\n}\r\n\r\nexport function getNotificationState(userProfile: PlayerDetailModel): AccountNotificationType {\r\n    const { email } = userProfile;\r\n    const { birthdate, firstName, lastName, gender } = userProfile.playerPersonalInfo;\r\n\r\n    if (!email || !birthdate || !firstName || !lastName || !gender) return \"FillInfo\";\r\n\r\n    if (\r\n        userProfile.pendingContactVerifications?.EMAIL?.status == \"PENDING\" &&\r\n        userProfile.pendingContactVerifications?.EMAIL?.contactValue == email\r\n    )\r\n        return \"VerifyEmail\";\r\n\r\n    return \"None\";\r\n}\r\n\r\nexport function isErrorDto(object: any): object is ErrorDto {\r\n    return \"code\" in object && \"uid\" in object;\r\n}\r\n\r\n// x mean - get from old code = maybee deprecated\r\nexport function parseErrorMessage(ex: unknown, defaultErrorMessage?: string) {\r\n    if (isErrorDto(ex)) {\r\n        switch (ex.code) {\r\n            case \"INVALID_CARD_ID\": // x\r\n                return \"Číslo karty je nesprávné\";\r\n            case \"INACTIVE_CARD\": // x\r\n                return \"Karta je neaktivní\";\r\n\r\n            case \"INVALID_EMAIL\": // x\r\n                return \"Emailová adresa je nesprávná\";\r\n            case \"INVALID_PHONE\": // x\r\n                return \"Telefon je nesprávný.<br /> Vyplňte jej ve formátu: XXXXXXXXX (bez mezer a předvolby)\";\r\n            case \"EMAIL_ALREADY_REGISTERED\": // x\r\n                return \"Emailová adresa již byla zaregistrována\";\r\n            case \"PHONE_ALREADY_REGISTERED\": // x\r\n            case \"MOBILE_PHONE_ALREADY_REGISTERED\":\r\n                return \"Toto číslo již je registrováno.\";\r\n            case \"EMPTY_EMAIL\": // x\r\n                return \"Registrační email nebyl nalezen\";\r\n            case \"EMPTY_PHONE\": // x\r\n                return \"Telefon nebyl nalezen\";\r\n\r\n            case \"PASSWORD_EQUAL_TO_USERNAME\":\r\n                return \"Nelze mít stejné heslo jako tel. číslo.\";\r\n            case \"NEW_PASSWORD_ALREADY_USED_BETWEEN_OLD_PASSWORDS\":\r\n                return \"Nové heslo již bylo použito, zadejte jiné heslo.\";\r\n            case \"PASSWORD_OLD_INVALID\":\r\n                return \"Chybně zadané stávající heslo.\";\r\n            case \"PASSWORD_OLD_EQUAL_TO_NEW\":\r\n                return \"Nové heslo se nemůže shodovat se stávajícím.\";\r\n\r\n            case \"INVALID_TOKEN\": // x\r\n                return \"Validační token vypršel nebo je nesprávný\";\r\n            case \"INVALID_PIN\":\r\n                return \"Zadaný pin vypršel nebo není správný.\";\r\n            case \"UNAUTHORIZED\": // x\r\n                return \"Číslo karty nebo heslo je nesprávné\";\r\n            case \"NO_PENDING_VERIFICATIONS\":\r\n                return \"Platnost tohoto odkazu vypršela.\";\r\n            case \"CLIENT_ALREADY_REGISTERED\": // x\r\n                return \"Klient již byl zaregistrován\";\r\n\r\n            case \"UNDER_AGE\": // x\r\n                return \"Minimální věk je 18 let\";\r\n            case \"OVER_AGE\": // x\r\n                return \"Maximální věk je 130 let\";\r\n        }\r\n    }\r\n\r\n    return defaultErrorMessage;\r\n}\r\n","import { playDigitalClientV1 } from \"../../play-digital-client-v1\";\r\nimport {\r\n    PlayerDetailModel,\r\n    PersonalInfoModel,\r\n    UpdatePersonalContactRequest,\r\n    NewPasswordRequest,\r\n    ChangePasswordRequest,\r\n} from \"../../models/account-models\";\r\nimport { AxiosResponse } from \"axios\";\r\nimport { CardModel } from \"../../models/shared-models\";\r\n\r\nexport async function fetchPlayerDetail(): Promise<PlayerDetailModel> {\r\n    const response = await playDigitalClientV1.get<PlayerDetailModel>(\"/players/self/profile-details\");\r\n    return response.data;\r\n}\r\n\r\nexport async function callLockCard(): Promise<void> {\r\n    await playDigitalClientV1.post(\"/players/self/card/request-lock\");\r\n}\r\n\r\nexport async function callUnlockCard(): Promise<void> {\r\n    await playDigitalClientV1.post(\"/players/self/card/request-unlock\");\r\n}\r\nexport async function callNewCard(): Promise<CardModel> {\r\n    const response = await playDigitalClientV1.post<CardModel>(\"/players/self/card/request-new\");\r\n    return response.data;\r\n}\r\n\r\nexport async function callUpdatePersonalInfo(data: PersonalInfoModel): Promise<void> {\r\n    await playDigitalClientV1.put<void, AxiosResponse<void>, PersonalInfoModel>(\"/players/self/profile-details/personal-info\", data);\r\n}\r\n\r\nexport async function callUpdatePhone(newPhone: string): Promise<void> {\r\n    await playDigitalClientV1.post<void, AxiosResponse<void>, UpdatePersonalContactRequest>(\r\n        \"/players/self/profile-details/request-contact-update\",\r\n        {\r\n            contactType: \"PHONE\",\r\n            newValue: newPhone,\r\n        },\r\n    );\r\n}\r\n\r\nexport async function callUpdateEmail(newEmail: string): Promise<void> {\r\n    await playDigitalClientV1.post<void, AxiosResponse<void>, UpdatePersonalContactRequest>(\r\n        \"/players/self/profile-details/request-contact-update\",\r\n        {\r\n            contactType: \"EMAIL\",\r\n            newValue: newEmail,\r\n        },\r\n    );\r\n}\r\n\r\nexport async function callChangePassword(oldPassword: string, newPassword: string) {\r\n    await playDigitalClientV1.put<void, AxiosResponse<void>, ChangePasswordRequest>(\"/players/self/password\", {\r\n        oldPassword: oldPassword,\r\n        newPassword: newPassword,\r\n    });\r\n}\r\n\r\nexport async function requestPasswordReset(cardId: string): Promise<void> {\r\n    await playDigitalClientV1.post<void, AxiosResponse<void>, NewPasswordRequest>(\"/players/request-password-reset\", {\r\n        type: \"CARD_ID\",\r\n        value: cardId,\r\n    });\r\n}\r\n","import { AxiosResponse } from \"axios\";\r\nimport { PlayerStatusRequest, PlayerStatusModel, LoginRequest, TokenModel } from \"../../models/login-models\";\r\nimport { playDigitalClientV1 } from \"../../play-digital-client-v1\";\r\n\r\nexport async function fetchPlayerStatus(userName: string): Promise<PlayerStatusModel> {\r\n    const response = await playDigitalClientV1.post<PlayerStatusModel, AxiosResponse<PlayerStatusModel>, PlayerStatusRequest>(\r\n        \"/players/fetch\",\r\n        {\r\n            type: \"PHONE\",\r\n            value: userName,\r\n        },\r\n    );\r\n\r\n    return response.data;\r\n}\r\n\r\nexport async function callLogin(userName: string, password: string): Promise<TokenModel[]> {\r\n    const response = await playDigitalClientV1.post<TokenModel[], AxiosResponse<TokenModel[]>, LoginRequest>(\"/oauth/login\", {\r\n        siteId: 98,\r\n        clientId: \"SazkaPortal\",\r\n        resourceOwnerCredentials: {\r\n            USERNAME: userName,\r\n            PASSWORD: password,\r\n        },\r\n    });\r\n\r\n    return response.data;\r\n}\r\n\r\nexport const logoutUrl = \"/oauth/self/tokens/\";\r\nexport async function callLogout(token: string): Promise<void> {\r\n    await playDigitalClientV1.delete<void>(logoutUrl + token);\r\n}\r\n\r\nexport async function callOtpRequest(userName: string): Promise<void> {\r\n    await playDigitalClientV1.post<void, AxiosResponse<void>, LoginRequest>(\"/oauth/otp/generate\", {\r\n        siteId: 98,\r\n        clientId: \"SazkaPortal\",\r\n        resourceOwnerCredentials: {\r\n            USERNAME: userName,\r\n        },\r\n    });\r\n}\r\n","import { AxiosResponse } from \"axios\";\r\nimport { FetchConsentResponse } from \"../../models/consent-models\";\r\nimport {\r\n    RegisterContactRequest,\r\n    RegistrationConsentModel,\r\n    RegistrationRequest,\r\n    RegistrationPlayerModel,\r\n    VerifyContactRequest,\r\n    ClosePlayerAccountRequest,\r\n    NewPasswordRequest,\r\n} from \"../../models/registration-models\";\r\nimport { playDigitalClientV1 } from \"../../play-digital-client-v1\";\r\n\r\nexport async function fetchConsents(): Promise<FetchConsentResponse[]> {\r\n    const response = await playDigitalClientV1.get<FetchConsentResponse[]>(\"/players/consents?language=cs_CZ\");\r\n    return response.data;\r\n}\r\n\r\nexport async function callRegisterUser(\r\n    phoneNumber: string,\r\n    password: string,\r\n    consents: RegistrationConsentModel[],\r\n): Promise<RegistrationPlayerModel> {\r\n    const response = await playDigitalClientV1.post<RegistrationPlayerModel, AxiosResponse<RegistrationPlayerModel>, RegistrationRequest>(\r\n        \"/players\",\r\n        {\r\n            profile: {\r\n                registrationLevel: 2,\r\n            },\r\n            password: password,\r\n            personalInfo: {\r\n                phones: {\r\n                    MOBILE: {\r\n                        type: \"MOBILE\",\r\n                        number: phoneNumber,\r\n                    },\r\n                },\r\n            },\r\n            consents: consents,\r\n        },\r\n    );\r\n    return response.data;\r\n}\r\n\r\nexport async function callPhoneSendVerification(userName: string): Promise<void> {\r\n    await playDigitalClientV1.post<void, AxiosResponse<void>, RegisterContactRequest>(\"/verifications/request-contact-verification\", {\r\n        contactType: \"PHONE\",\r\n        username: userName,\r\n    });\r\n}\r\n\r\nexport async function callVerifyPhone(userName: string, verificationCode: string): Promise<void> {\r\n    await playDigitalClientV1.post<void, AxiosResponse<void>, VerifyContactRequest>(`/verifications/verify-contact`, {\r\n        username: userName,\r\n        contactType: \"PHONE\",\r\n        token: verificationCode,\r\n    });\r\n}\r\n\r\nexport async function callEmailSendVerification(userName: string): Promise<void> {\r\n    await playDigitalClientV1.post<void, AxiosResponse<void>, RegisterContactRequest>(\"/verifications/request-contact-verification\", {\r\n        contactType: \"EMAIL\",\r\n        username: userName,\r\n    });\r\n}\r\n\r\nexport async function callVerifyEmail(userName: string, verificationCode: string): Promise<void> {\r\n    await playDigitalClientV1.post<void, AxiosResponse<void>, VerifyContactRequest>(`/verifications/verify-contact`, {\r\n        username: userName,\r\n        contactType: \"EMAIL\",\r\n        token: verificationCode,\r\n    });\r\n}\r\n\r\nexport async function callClosePlayerAccount(): Promise<void> {\r\n    await playDigitalClientV1.post<void, AxiosResponse<void>, ClosePlayerAccountRequest>(\"/players/self/close\", {\r\n        removeData: false,\r\n        reason: \"T&C_Removal\",\r\n    });\r\n}\r\n\r\nexport async function callNewPassword(password: string, token: string): Promise<void> {\r\n    await playDigitalClientV1.put<void, AxiosResponse<void>, NewPasswordRequest>(\r\n        \"/players/self/newpassword\",\r\n        {\r\n            newPassword: password,\r\n        },\r\n        {\r\n            headers: {\r\n                Authorization: `Oauth ${token}`,\r\n            },\r\n        },\r\n    );\r\n}\r\n","import axios, { AxiosRequestConfig } from \"axios\";\r\nimport { addSagAuthInterceptor } from \"../utils/interceptors/sag-auth-interceptor\";\r\nimport { useSagOptions } from \"@sazka/utils/http-clients/use-sag-options\";\r\nimport { addOAuthInterceptor } from \"../utils/interceptors/o-auth-interceptor\";\r\nimport { addLoggerInterceptor } from \"../utils/interceptors/logger-interceptor\";\r\nimport { addErrorInterceptor } from \"../utils/interceptors/error-interceptor\";\r\nimport { addLogoutInterceptor } from \"../utils/interceptors/logout-interceptor\";\r\nimport { addPlayerIdInterceptor } from \"../utils/interceptors/player-id-interceptor\";\r\n\r\nconst { getSagApiUrl } = useSagOptions();\r\n\r\n/**\r\n * Axios basic configuration\r\n * Some general configuration can be added like timeout, headers, params etc. More details can be found on https://github.com/axios/axios\r\n * */\r\nconst config: AxiosRequestConfig = {\r\n    baseURL: getSagApiUrl(\"ls-play\", \"v1\"),\r\n    headers: {\r\n        /* eslint-disable @typescript-eslint/naming-convention */\r\n        Accept: \"application/json\",\r\n        \"Content-Type\": \"application/json\",\r\n        \"x-user-agent\": \"portal\",\r\n    },\r\n};\r\n\r\n/**\r\n * Creating the instance of Axios\r\n * It is because, in large scale application we may need to consume APIs from more than single server,\r\n * So, may need to create multiple http client with different config\r\n * Only this client will be used rather than axios in the application\r\n **/\r\nconst playDigitalClientV1 = axios.create(config);\r\n\r\naddSagAuthInterceptor(playDigitalClientV1);\r\naddLoggerInterceptor(playDigitalClientV1);\r\naddOAuthInterceptor(playDigitalClientV1);\r\naddPlayerIdInterceptor(playDigitalClientV1);\r\naddLogoutInterceptor(playDigitalClientV1);\r\naddErrorInterceptor(playDigitalClientV1);\r\n\r\nexport { playDigitalClientV1 };\r\n","import { AxiosInstance, InternalAxiosRequestConfig, AxiosRequestHeaders } from \"axios\";\r\n\r\nlet csrfToken: string;\r\n\r\nconst getCsrfToken = (): string => {\r\n    if (!csrfToken) {\r\n        csrfToken = (document.getElementsByName(\"__RequestVerificationToken\")[0] as HTMLInputElement)?.value || \"\";\r\n    }\r\n    return csrfToken;\r\n};\r\n\r\nexport const csrfInterceptor = (config: InternalAxiosRequestConfig) => {\r\n    config.headers ??= {} as AxiosRequestHeaders;\r\n    config.headers[\"X-CSRF-TOKEN\"] = getCsrfToken();\r\n\r\n    return config;\r\n};\r\n\r\nexport const addCsrfInterceptor = (httpClient: AxiosInstance) => {\r\n    httpClient.interceptors.request.use(csrfInterceptor, null, { synchronous: true });\r\n};\r\n","import axios, { AxiosRequestConfig } from \"axios\";\r\nimport { addCsrfInterceptor } from \"../utils/interceptors/csrf-interceptor\";\r\nimport { addLoggerInterceptor } from \"../utils/interceptors/logger-interceptor\";\r\nimport { addPlayerIdInterceptor } from \"../utils/interceptors/player-id-interceptor\";\r\n\r\n/**\r\n * Axios basic configuration\r\n * Some general configuration can be added like timeout, headers, params etc. More details can be found on https://github.com/axios/axios\r\n * */\r\nconst config: AxiosRequestConfig = {\r\n    baseURL: \"/api\",\r\n};\r\n\r\n/**\r\n * Creating the instance of Axios\r\n * It is because, in large scale application we may need to consume APIs from more than single server,\r\n * So, may need to create multiple http client with different config\r\n * Only this client will be used rather than axios in the application\r\n **/\r\nconst httpClient = axios.create(config);\r\n\r\n/** Adding the request interceptors */\r\naddCsrfInterceptor(httpClient);\r\naddLoggerInterceptor(httpClient);\r\naddPlayerIdInterceptor(httpClient);\r\n\r\nexport { httpClient };\r\n","import { httpClient } from \"../http-client\";\r\nimport { PlayerConsentsPersonalisationResponse } from \"../models/player-contact-models\";\r\nimport { PlayerContactRequest } from \"../models/player-login-request\";\r\nimport { clientId } from \"@/account/use-user-account\";\r\n\r\nexport namespace PlayerContactApi {\r\n    export async function callPlayerContact(contactRequestData: PlayerContactRequest) {\r\n        const response = await httpClient.post<string>(\"/kasa/player/login\", contactRequestData);\r\n\r\n        return response.data;\r\n    }\r\n\r\n    export async function getContestPersonalisation(): Promise<boolean> {\r\n        if (!clientId.value) return false;\r\n\r\n        const response = await httpClient.get<PlayerConsentsPersonalisationResponse>(\r\n            \"/kasa/player/consents/personalisation\"\r\n        );\r\n\r\n        return response.data.granted;\r\n    }\r\n}\r\n","import { AxiosError, AxiosInstance } from \"axios\";\r\nimport { ErrorDto } from \"@/api-connector/play-digital-api/models/shared-models\";\r\n\r\nconst errorInterceptor = (error: AxiosError<ErrorDto>) => {\r\n    const errorModel = error.response.data;\r\n\r\n    errorModel.responseCode = error.code;\r\n    errorModel.responseStatus = error.response.status;\r\n\r\n    return Promise.reject(errorModel);\r\n};\r\n\r\n/** Add to the end */\r\nexport const addErrorInterceptor = (httpClient: AxiosInstance) => {\r\n    httpClient.interceptors.response.use(null, errorInterceptor);\r\n};\r\n","import { AxiosError, AxiosRequestConfig, AxiosResponse } from \"axios\";\r\nimport { logDebugEvent, logException } from \"@sazka/utils/logger/use-app-logger\";\r\n\r\nfunction getRequestConfig(request: AxiosRequestConfig<any>) {\r\n    return {\r\n        baseUrl: request.baseURL,\r\n        method: request.method,\r\n        url: request.url,\r\n        body: JSON.parse(JSON.stringify(request.data ?? {})),\r\n    };\r\n}\r\n\r\nfunction getResponseData(response: AxiosResponse<any, any>) {\r\n    return {\r\n        status: response.status,\r\n        statusText: response.statusText,\r\n        body: JSON.parse(JSON.stringify(response.data ?? {})),\r\n    };\r\n}\r\n\r\nfunction getErrorData(error: AxiosError) {\r\n    const data: any = error.toJSON();\r\n    return {\r\n        status: data?.status,\r\n        message: data?.message,\r\n    };\r\n}\r\n\r\nexport function logRequest(request: AxiosRequestConfig<any>) {\r\n    logDebugEvent(\"kasa-apis\", \"KASA-api-request\", getRequestConfig(request));\r\n}\r\n\r\nexport function logResponse(response: AxiosResponse<any, any>) {\r\n    logDebugEvent(\"kasa-apis\", \"KASA-api-response\", getResponseData(response));\r\n}\r\n\r\nexport function logError(error: AxiosError) {\r\n    logException(\"KASA-api-error\", error, getErrorData(error));\r\n}\r\n","import { AxiosError, AxiosInstance, AxiosResponse, InternalAxiosRequestConfig } from \"axios\";\r\nimport { logError, logRequest, logResponse } from \"../use-api-logging\";\r\nimport { ErrorDto } from \"@/api-connector/play-digital-api/models/shared-models\";\r\n\r\nconst logRequestInternal = (config: InternalAxiosRequestConfig) => {\r\n    try {\r\n        logRequest(config);\r\n    } catch (err) {\r\n        console.error(\"Api logging error\", err);\r\n    }\r\n    return config;\r\n};\r\n\r\nconst logResponseInternal = (response: AxiosResponse) => {\r\n    try {\r\n        logResponse(response);\r\n    } catch (err) {\r\n        console.error(\"API logging error\", err);\r\n    }\r\n\r\n    if (response) return response;\r\n};\r\n\r\nconst logErrorInternal = (error: AxiosError<ErrorDto>) => {\r\n    try {\r\n        logError(error);\r\n    } catch (err) {\r\n        console.error(\"API logging error\", err, error);\r\n    }\r\n    return Promise.reject(error);\r\n};\r\n\r\nexport const addLoggerInterceptor = (httpClient: AxiosInstance) => {\r\n    httpClient.interceptors.request.use(logRequestInternal, logErrorInternal);\r\n    httpClient.interceptors.response.use(logResponseInternal, logErrorInternal);\r\n};\r\n","import { AxiosError, AxiosInstance } from \"axios\";\r\nimport { ErrorDto } from \"@/api-connector/play-digital-api/models/shared-models\";\r\nimport { logoutService } from \"@/account/services/login-services\";\r\nimport { logoutUrl } from \"@/api-connector/play-digital-api/metods/account/login-api\";\r\n\r\nconst logoutInterceptor = (error: AxiosError<ErrorDto>) => {\r\n    if (\r\n        error.response.status == 401 &&\r\n        error.response.data.code == \"TOKEN_NOT_AUTHORIZED\" &&\r\n        (!error.config.url.startsWith(logoutUrl) || error.config.method != \"delete\")\r\n    ) {\r\n        logoutService(true);\r\n    }\r\n\r\n    return Promise.reject(error);\r\n};\r\n\r\nexport const addLogoutInterceptor = (httpClient: AxiosInstance) => {\r\n    httpClient.interceptors.response.use(null, logoutInterceptor);\r\n};\r\n","import { AxiosInstance, InternalAxiosRequestConfig, AxiosRequestHeaders } from \"axios\";\r\nimport { authToken } from \"@/account/composables/user-cookies\";\r\n\r\nexport const oAuthInterceptor = (config: InternalAxiosRequestConfig) => {\r\n    if (authToken.value) {\r\n        config.headers ??= {} as AxiosRequestHeaders;\r\n        config.headers[\"Authorization\"] = `Oauth ${authToken.value}`;\r\n    }\r\n\r\n    return config;\r\n};\r\n\r\nexport const addOAuthInterceptor = (httpClient: AxiosInstance) => {\r\n    httpClient.interceptors.request.use(oAuthInterceptor, null, { synchronous: true });\r\n};\r\n","import { AxiosInstance, InternalAxiosRequestConfig, AxiosRequestHeaders } from \"axios\";\r\nimport { clientId } from \"@/account/use-user-account\";\r\n\r\nexport const playerIdInterceptor = (config: InternalAxiosRequestConfig) => {\r\n    if (clientId.value) {\r\n        config.headers ??= {} as AxiosRequestHeaders;\r\n        config.headers[\"X-PLAYER-ID\"] = clientId.value;\r\n    }\r\n\r\n    return config;\r\n};\r\n\r\nexport const addPlayerIdInterceptor = (httpClient: AxiosInstance) => {\r\n    httpClient.interceptors.request.use(playerIdInterceptor, null, { synchronous: true });\r\n};\r\n","import { AxiosInstance, AxiosRequestHeaders, InternalAxiosRequestConfig } from \"axios\";\r\nimport { useSagOptions } from \"@sazka/utils/http-clients/use-sag-options\";\r\n\r\nconst { sagSubscriptionKey } = useSagOptions();\r\n\r\nexport const sagAuthInterceptor = (config: InternalAxiosRequestConfig) => {\r\n    config.headers ??= {} as AxiosRequestHeaders;\r\n    config.headers[\"Ocp-Apim-Subscription-Key\"] = sagSubscriptionKey;\r\n\r\n    return config;\r\n};\r\n\r\nexport const addSagAuthInterceptor = (httpClient: AxiosInstance) => {\r\n    httpClient.interceptors.request.use(sagAuthInterceptor, null, { synchronous: true });\r\n};\r\n","// DL1.40 User object\r\nexport async function dataLayerUserInfo(cardId: string, memberId: string) {\r\n    if (!cardId || !memberId) return;\r\n\r\n    dataLayer.push({\r\n        user: {\r\n            cardId: cardId,\r\n            memberId: memberId,\r\n        },\r\n    });\r\n}\r\n\r\n// DL2.20 Registration form\r\nexport function dataLayerRegistrationPersonal() {\r\n    dataLayer.push({\r\n        page: {\r\n            type: \"sazkaklub.account.registration\",\r\n            kind: \"sazkaklub.account.registration\",\r\n            verticalCode: \"sazkaklub\",\r\n            verticalCodeStrict: \"sazkaklub\",\r\n            gameCode: \"no_game\",\r\n            gameCodeStrict: \"no_game\",\r\n        },\r\n        event: \"page\",\r\n    });\r\n}\r\n\r\n// DL2.30 Login second step\r\nexport function dataLayerLoginSecondStep() {\r\n    dataLayer.push({\r\n        page: {\r\n            type: \"sazkaklub.account.login.password\",\r\n            kind: \"sazkaklub.account.login.password\",\r\n            verticalCode: \"sazkaklub\",\r\n            verticalCodeStrict: \"sazkaklub\",\r\n            gameCode: \"no_game\",\r\n            gameCodeStrict: \"no_game\",\r\n        },\r\n        event: \"page\",\r\n    });\r\n}\r\n\r\n// DEPRECATED\r\n// DL2.31 Password is not set page\r\n// popup for this event doens't exist\r\n// export function dataLayerPasswordNotSet() {\r\n//     dataLayer.push({\r\n//         page: {\r\n//             type: \"sazkaklub.account.passwordNotSet\",\r\n//             kind: \"sazkaklub.account.passwordNotSet\",\r\n//             verticalCode: \"sazkaklub\",\r\n//             verticalCodeStrict: \"sazkaklub\",\r\n//             gameCode: \"no_game\",\r\n//             gameCodeStrict: \"no_game\",\r\n//         },\r\n//         event: \"page\",\r\n//     });\r\n// }\r\n\r\n// DL2.40 Verify phone number page\r\nexport function dataLayerVerifyPhone() {\r\n    dataLayer.push({\r\n        page: {\r\n            type: \"sazkaklub.account.verifyPhone\",\r\n            kind: \"sazkaklub.account.verifyPhone\",\r\n            verticalCode: \"sazkaklub\",\r\n            verticalCodeStrict: \"sazkaklub\",\r\n            gameCode: \"no_game\",\r\n            gameCodeStrict: \"no_game\",\r\n        },\r\n        event: \"page\",\r\n    });\r\n}\r\n\r\n// DL2.41 Verify SMS code page\r\nexport function dataLayerRegistrationCode() {\r\n    dataLayer.push({\r\n        page: {\r\n            type: \"sazkaklub.account.verifyPhone.SMScode\",\r\n            kind: \"sazkaklub.account.verifyPhone.SMScode\",\r\n            verticalCode: \"sazkaklub\",\r\n            verticalCodeStrict: \"sazkaklub\",\r\n            gameCode: \"no_game\",\r\n            gameCodeStrict: \"no_game\",\r\n        },\r\n        event: \"page\",\r\n    });\r\n}\r\n\r\n// DL2.42 Verify phone confirmed page\r\nexport function dataLayerRegistrationCodeConfirmed() {\r\n    dataLayer.push({\r\n        page: {\r\n            type: \"sazkaklub.account.verifyPhone.confirmed\",\r\n            kind: \"sazkaklub.account.verifyPhone.confirmed\",\r\n            verticalCode: \"sazkaklub\",\r\n            verticalCodeStrict: \"sazkaklub\",\r\n            gameCode: \"no_game\",\r\n            gameCodeStrict: \"no_game\",\r\n        },\r\n        event: \"page\",\r\n    });\r\n}\r\n\r\n// DEPRECATED\r\n// DL2.50 Verify email page\r\n// export function dataLayerRegistrationMail() {\r\n//     dataLayer.push({\r\n//         page: {\r\n//             type: \"sazkaklub.account.verifyEmail\",\r\n//             kind: \"sazkaklub.account.verifyEmail\",\r\n//             verticalCode: \"sazkaklub\",\r\n//             verticalCodeStrict: \"sazkaklub\",\r\n//             gameCode: \"no_game\",\r\n//             gameCodeStrict: \"no_game\",\r\n//         },\r\n//         event: \"page\",\r\n//     });\r\n// }\r\n\r\n// DEPRECATED\r\n// DL2.51 Verify email link confirm\r\n// export function dataLayerRegistrationMailConfirmed() {\r\n//     dataLayer.push({\r\n//         page: {\r\n//             type: \"sazkaklub.account.verifyEmail.confirmed\",\r\n//             kind: \"sazkaklub.account.verifyEmail.confirmed\",\r\n//             verticalCode: \"sazkaklub\",\r\n//             verticalCodeStrict: \"sazkaklub\",\r\n//             gameCode: \"no_game\",\r\n//             gameCodeStrict: \"no_game\",\r\n//         },\r\n//         event: \"page\",\r\n//     });\r\n// }\r\n\r\n// DL2.52 Verify email link expired\r\nexport function dataLayerRegistrationMailExpired() {\r\n    dataLayer.push({\r\n        page: {\r\n            type: \"sazkaklub.account.verifyEmail.linkExpired\",\r\n            kind: \"sazkaklub.account.verifyEmail.linkExpired\",\r\n            verticalCode: \"sazkaklub\",\r\n            verticalCodeStrict: \"sazkaklub\",\r\n            gameCode: \"no_game\",\r\n            gameCodeStrict: \"no_game\",\r\n        },\r\n        event: \"page\",\r\n    });\r\n}\r\n\r\n// DEPRECATED\r\n// DL2.60 Password was sent to user\r\n// export function dataLayerRegistrationPasswordSent() {\r\n//     dataLayer.push({\r\n//         page: {\r\n//             type: \"sazkaklub.account.password.sent\",\r\n//             kind: \"sazkaklub.account.password.sent\",\r\n//             verticalCode: \"sazkaklub\",\r\n//             verticalCodeStrict: \"sazkaklub\",\r\n//             gameCode: \"no_game\",\r\n//             gameCodeStrict: \"no_game\",\r\n//         },\r\n//         event: \"page\",\r\n//     });\r\n// }\r\n\r\n// DL2.61 Page where user is creating his password\r\nexport function dataLayerRegistrationPasswordCreation() {\r\n    dataLayer.push({\r\n        page: {\r\n            type: \"sazkaklub.account.password.setup\",\r\n            kind: \"sazkaklub.account.password.setup\",\r\n            verticalCode: \"sazkaklub\",\r\n            verticalCodeStrict: \"sazkaklub\",\r\n            gameCode: \"no_game\",\r\n            gameCodeStrict: \"no_game\",\r\n        },\r\n        event: \"page\",\r\n    });\r\n}\r\n\r\n// DL2.62 Page where registration is finished\r\nexport function dataLayerRegistrationFinished() {\r\n    dataLayer.push({\r\n        page: {\r\n            type: \"sazkaklub.account.thankYou\",\r\n            kind: \"sazkaklub.account.thankYou\",\r\n            verticalCode: \"sazkaklub\",\r\n            verticalCodeStrict: \"sazkaklub\",\r\n            gameCode: \"no_game\",\r\n            gameCodeStrict: \"no_game\",\r\n        },\r\n        event: \"page\",\r\n    });\r\n}\r\n","// DL3.10 Login\r\nexport function dataLayerLogin() {\r\n    dataLayer.push({\r\n        event: \"action.login.sazkaklub\",\r\n    });\r\n}\r\n\r\n// DL3.20 First login\r\nexport function dataLayerFirstLogin() {\r\n    dataLayer.push({\r\n        event: \"action.firstLogin.sazkaklub\",\r\n    });\r\n}\r\n\r\n// DL3.30 Registration finished\r\nexport function dataLayerRegistrationSuccess(kind: \"offline\" | \"online\") {\r\n    dataLayer.push({\r\n        event: \"action.registration.sazkaklub\",\r\n        action: {\r\n            registration: {\r\n                kind: kind,\r\n            },\r\n        },\r\n    });\r\n}\r\n\r\n// DL3.40 Registration error\r\nexport function dataLayerRegistrationError(fieldName: string, message: string) {\r\n    dataLayer.push({\r\n        event: \"action.registrationError.sazkaklub\",\r\n        action: {\r\n            registrationError: {\r\n                field: fieldName,\r\n                message: message,\r\n            },\r\n        },\r\n    });\r\n}\r\n\r\n// DL3.50 Wheel spin success\r\nexport function dataLayerWheelSpinSuccess(spinId: string) {\r\n    dataLayer.push({\r\n        event: \"action.spin.sazkaklub\",\r\n        action: {\r\n            spin: {\r\n                id: spinId,\r\n            },\r\n        },\r\n    });\r\n}\r\n\r\n// DL3.60 Wheel spin error\r\nexport function dataLayerWheelSpinError(errorMessage: \"Spin expired\" | \"Spin used\" | \"Process error\") {\r\n    dataLayer.push({\r\n        event: \"action.spinError.sazkaklub\",\r\n        action: {\r\n            spinError: {\r\n                error: errorMessage,\r\n            },\r\n        },\r\n    });\r\n}\r\n\r\n// DL 3.70 App download\r\nexport function dataLayerAppDownload(platform: \"ios\" | \"android\") {\r\n    dataLayer.push({\r\n        event: \"action.download.app\",\r\n        action: {\r\n            download: {\r\n                platform: platform,\r\n                name: \"sazka\",\r\n            },\r\n        },\r\n    });\r\n}\r\n\r\n// DL 3.80 Add favorite bet\r\nexport function dataLayerAddFavoriteBet(label: string) {\r\n    dataLayer.push({\r\n        event: \"action.addbet.sazkaklub\",\r\n        action: {\r\n            addbet: {\r\n                label: label,\r\n            },\r\n        },\r\n    });\r\n}\r\n\r\n// DL 3.81 Edit favorite bet\r\nexport function dataLayerEditFavoriteBet(label: string) {\r\n    dataLayer.push({\r\n        event: \"action.editbet.sazkaklub\",\r\n        action: {\r\n            editbet: {\r\n                label: label,\r\n            },\r\n        },\r\n    });\r\n}\r\n\r\n// DL 3.82 Remove favorite bet\r\nexport function dataLayerRemoveFavoriteBet(label: string) {\r\n    dataLayer.push({\r\n        event: \"action.deletebet.sazkaklub\",\r\n        action: {\r\n            deletebet: {\r\n                label: label,\r\n            },\r\n        },\r\n    });\r\n}\r\n\r\n// DL 3.90 Submit personal data\r\nexport function dataLayerSubmitPersonalData() {\r\n    dataLayer.push({\r\n        event: \"action.submitPersonalData.sazkaklub\",\r\n    });\r\n}\r\n","export class UrlHelper {\r\n    static getQueryString(name: string, url: string = null, caseSensitive = false, replacePlusWithSpace = false): string {\r\n        if (!url) url = window.location.href;\r\n        name = name.replace(/[[\\]]/g, \"\\\\$&\");\r\n        const expression = \"[?&]\" + name + \"(=([^&#]*)|&|#|$)\";\r\n        const regex = caseSensitive ? new RegExp(expression) : new RegExp(expression, \"i\");\r\n        const results = regex.exec(url);\r\n        if (!results) return null;\r\n        if (!results[2]) return \"\";\r\n        const replacedResult = replacePlusWithSpace ? results[2].replace(/\\+/g, \" \") : results[2];\r\n        return decodeURIComponent(replacedResult);\r\n    }\r\n\r\n    static clearUrlParams(urlParams?: string[], caseSensitive = false) {\r\n        if (!urlParams?.length) {\r\n            return;\r\n        }\r\n        let newUrl = window.location.href;\r\n        for (const parameter of urlParams) {\r\n            newUrl = newUrl\r\n                .replace(\r\n                    caseSensitive\r\n                        ? new RegExp(\"[?&]\" + parameter + \"=[^&#]*(#.*)?$\")\r\n                        : new RegExp(\"[?&]\" + parameter + \"=[^&#]*(#.*)?$\", \"i\"),\r\n                    \"$1\",\r\n                )\r\n                .replace(\r\n                    caseSensitive ? new RegExp(\"([?&])\" + parameter + \"=[^&]*&\") : new RegExp(\"([?&])\" + parameter + \"=[^&]*&\", \"i\"),\r\n                    \"$1\",\r\n                );\r\n        }\r\n        if (window.history && window.location.href != newUrl) {\r\n            window.history.replaceState(null, document.title, newUrl);\r\n        }\r\n    }\r\n\r\n    static clearUrlParam(urlParam: string) {\r\n        this.clearUrlParams([urlParam]);\r\n    }\r\n}\r\n","const rootUrl = \"/sazka-klub\";\r\nconst loginUrl = rootUrl + \"/login\";\r\n\r\nexport const settings = {\r\n    url: {\r\n        root: rootUrl,\r\n        login: loginUrl,\r\n        wheel: rootUrl + \"/zatocte-si-kolem\",\r\n        standalone: rootUrl + \"/standalone\",\r\n        profile: rootUrl + \"/nastaveni\",\r\n    },\r\n    authentication: {\r\n        restrictedFunctionsPages: [loginUrl],\r\n    },\r\n};\r\n","import { reactive, watch } from \"vue\";\r\nimport { SazkaAlertProps } from \"./models/sazka-alert-models\";\r\n\r\nexport const sazkaAlertProps = reactive<SazkaAlertProps>({\r\n    isOpen: false,\r\n    title: \"\",\r\n    text: \"\",\r\n    ctaText: \"Rozumím\",\r\n    ctaYellow: false,\r\n    ctaFunction: null,\r\n});\r\n\r\nexport default function sazkaAlert(\r\n    title: string,\r\n    text?: string,\r\n    ctaText?: string,\r\n    ctaYellow = false,\r\n    ctaFunction?: () => void,\r\n): Promise<void> {\r\n    return new Promise<void>((resolve) => {\r\n        sazkaAlertProps.title = title;\r\n        sazkaAlertProps.text = text;\r\n        sazkaAlertProps.ctaText = ctaText;\r\n        sazkaAlertProps.ctaYellow = ctaYellow;\r\n        sazkaAlertProps.ctaFunction = ctaFunction;\r\n\r\n        sazkaAlertProps.isOpen = true;\r\n\r\n        const watchStop = watch(\r\n            () => sazkaAlertProps.isOpen,\r\n            (newIsOpen) => {\r\n                if (!newIsOpen) {\r\n                    watchStop();\r\n                    resolve();\r\n                }\r\n            },\r\n        );\r\n    });\r\n}\r\n","import Choices from \"choices.js/public/assets/scripts/choices\";\r\nimport { SelectBoxOption } from \"./select-box-option\";\r\n\r\nexport const initSelectBox = (element: HTMLSelectElement, options: SelectBoxOption[] = [], selectedValue = \"\") => {\r\n    if (!element) return null;\r\n\r\n    if (selectedValue && options?.length) {\r\n        options.forEach((choice) => {\r\n            if (choice.value == selectedValue) {\r\n                choice.selected = true;\r\n            } else {\r\n                choice.selected = false;\r\n            }\r\n        });\r\n    }\r\n\r\n    return new Choices(element, {\r\n        choices: options,\r\n        searchEnabled: false,\r\n        shouldSort: false,\r\n        allowHTML: false,\r\n        itemSelectText: \"\",\r\n    });\r\n};\r\n\r\nexport const resetSelectOptions = (choices: Choices, options: SelectBoxOption[], selectedValue = \"\") => {\r\n    if (selectedValue) {\r\n        options.forEach((choice) => {\r\n            if (choice.value == selectedValue) {\r\n                choice.selected = true;\r\n            } else {\r\n                choice.selected = false;\r\n            }\r\n        });\r\n    }\r\n\r\n    choices.setChoices(options, \"value\", \"label\", true);\r\n};\r\n\r\nexport function useSelectBox() {\r\n    const elements = document.querySelectorAll<HTMLSelectElement>(\"select:not(.no-global-selectbox)\");\r\n\r\n    elements.forEach((element) => {\r\n        initSelectBox(element);\r\n    });\r\n}\r\n","export namespace ResponsiveUtils {\r\n    export const breakpoints = {\r\n        xs: 0,\r\n        xs2: 375,\r\n        xs3: 414,\r\n        sm: 512,\r\n        sm05: 660,\r\n        sm1: 768,\r\n        sm2: 897,\r\n        sm3: 960,\r\n        sm4: 1024,\r\n        md: 1280,\r\n        lg: 1367,\r\n        lg2: 1440,\r\n        lg3: 1631,\r\n        xl: 1920,\r\n        xxl: 2560,\r\n    };\r\n\r\n    export function getDataLayerResolution() {\r\n        let resolution = \"mobile\";\r\n\r\n        if (breakpointUp(\"lg\")) {\r\n            resolution = \"big desktop\";\r\n        } else if (breakpointUp(\"md\")) {\r\n            resolution = \"small desktop\";\r\n        } else if (breakpointUp(\"sm\")) {\r\n            resolution = \"tablet\";\r\n        }\r\n\r\n        return resolution;\r\n    }\r\n\r\n    export function logDataLayer() {\r\n        dataLayer.push({ page: { responseDesignCategory: getDataLayerResolution() } });\r\n    }\r\n\r\n    export function breakpointUp(breakpointName: keyof typeof breakpoints) {\r\n        return window.matchMedia(`(min-width: ${breakpoints[breakpointName]}px)`).matches;\r\n    }\r\n\r\n    export function breakpointDown(breakpointName: keyof typeof breakpoints) {\r\n        return window.matchMedia(`(max-width: ${breakpoints[breakpointName] - 1}px)`).matches;\r\n    }\r\n\r\n    export function breakpointBetween(breakpointUpName: keyof typeof breakpoints, breakpointDownName: keyof typeof breakpoints) {\r\n        return breakpointUp(breakpointUpName) && breakpointDown(breakpointDownName);\r\n    }\r\n\r\n    export function isInternetExplorer() {\r\n        return document.body.classList.contains(\"internet-explorer\");\r\n    }\r\n\r\n    export function isSafari() {\r\n        return document.body.classList.contains(\"safari\");\r\n    }\r\n\r\n    export function isIpad() {\r\n        return /iPad/.test(navigator.userAgent);\r\n    }\r\n\r\n    export function isIos() {\r\n        return /iPhone|iPad/.test(navigator.userAgent);\r\n    }\r\n\r\n    export function isAndroid() {\r\n        return /android|Android/.test(navigator.userAgent);\r\n    }\r\n\r\n    export function isAndroidFirefox() {\r\n        return document.body.classList.contains(\"firefox-mobile\") && isAndroid();\r\n    }\r\n\r\n    export function isTouchDevice() {\r\n        return \"ontouchstart\" in window || navigator.maxTouchPoints;\r\n    }\r\n\r\n    export function isOnlyTouchDevice() {\r\n        return isTouchDevice() && matchMedia(\"(hover: none)\").matches;\r\n    }\r\n\r\n    export function isMovSupported() {\r\n        return isIos() || isSafari();\r\n    }\r\n}\r\n","/* eslint-disable no-restricted-imports */\r\n/* eslint-disable no-restricted-globals */\r\nimport { settings } from \"@/settings\";\r\nimport Cookies from \"js-cookie\";\r\n\r\nexport default class Store {\r\n    private _type: \"session\" | \"local\" | \"cookie\";\r\n\r\n    /**\r\n     * Creates storage object to access and store values\r\n     * @param type type of storage to be used\r\n     */\r\n    constructor(type: \"session\" | \"local\" | \"cookie\" = \"session\") {\r\n        this._type = type;\r\n    }\r\n\r\n    /**\r\n     * Sets value to storage\r\n     * @param name Value name used as identifier\r\n     * @param value Value to be stored\r\n     */\r\n    set<T = any>(name: string, value: T, options?: any): void {\r\n        let stringValue: string = value as string;\r\n        if (typeof value == \"object\") {\r\n            stringValue = JSON.stringify(value);\r\n        }\r\n\r\n        switch (this._type) {\r\n            case \"session\":\r\n                this.setToSession(name, stringValue);\r\n                break;\r\n            case \"local\":\r\n                this.setToLocal(name, stringValue);\r\n                break;\r\n            case \"cookie\":\r\n                this.setToCookie(name, stringValue, options);\r\n                break;\r\n        }\r\n    }\r\n\r\n    /**\r\n     * Gets value from storage\r\n     *\r\n     * @param name Name of value\r\n     */\r\n    get<T = any>(name: string): T {\r\n        let val = null;\r\n        switch (this._type) {\r\n            case \"session\":\r\n                val = this.getFromSession(name);\r\n                break;\r\n            case \"local\":\r\n                val = this.getFromLocal(name);\r\n                break;\r\n            case \"cookie\":\r\n                val = this.getFromCookie(name);\r\n                break;\r\n        }\r\n\r\n        if (val) {\r\n            try {\r\n                return JSON.parse(val) as T;\r\n            } catch (ex: unknown) {\r\n                return val as T;\r\n            }\r\n        }\r\n\r\n        return val;\r\n    }\r\n\r\n    /**\r\n     * Removes value from storage\r\n     *\r\n     * @param name name of value\r\n     */\r\n    remove(name: string, options?: any): void {\r\n        switch (this._type) {\r\n            case \"session\":\r\n                this.removeFromSession(name);\r\n                break;\r\n            case \"local\":\r\n                this.removeFromLocal(name);\r\n                break;\r\n            case \"cookie\":\r\n                this.removeFromCookie(name, options);\r\n                break;\r\n        }\r\n    }\r\n\r\n    //#region Set\r\n    private setToSession(name: string, value: string) {\r\n        sessionStorage.setItem(name, value);\r\n    }\r\n\r\n    private setToLocal(name: string, value: string) {\r\n        localStorage.setItem(name, value);\r\n    }\r\n\r\n    private setToCookie(name: string, value: string, options?: any) {\r\n        Cookies.set(name, value, { ...{ path: settings.url.root, secure: true }, ...options });\r\n    }\r\n    //#endregion\r\n\r\n    //#region Get\r\n    private getFromSession(name: string): string {\r\n        return sessionStorage.getItem(name);\r\n    }\r\n\r\n    private getFromLocal(name: string): string {\r\n        return localStorage.getItem(name);\r\n    }\r\n\r\n    private getFromCookie(name: string): string {\r\n        return Cookies.get(name);\r\n    }\r\n    //#endregion\r\n\r\n    //#region Remove\r\n    private removeFromSession(name: string): void {\r\n        sessionStorage.removeItem(name);\r\n    }\r\n\r\n    private removeFromLocal(name: string): void {\r\n        localStorage.removeItem(name);\r\n    }\r\n\r\n    private removeFromCookie(name: string, options?: any): void {\r\n        Cookies.remove(name, { ...{ path: settings.url.root }, ...options });\r\n    }\r\n    //#endregion\r\n}\r\n","import Store from \"./store\";\r\n\r\nexport const cookieStore = new Store(\"cookie\");\r\n\r\nexport const localStore = new Store(\"local\");\r\n\r\nexport const sessionStore = new Store(\"session\");\r\n","export const useBundleLoader = () => {\r\n    window.bundle = (folder: string, name: string) => {\r\n        return import(\r\n            /* webpackInclude: /_/ */\r\n            `../${folder}/_${name}`\r\n        );\r\n    };\r\n};\r\n","<template>\r\n    <component ref=\"root\" :is=\"componentType\" @loader=\"loaderHandler\" v-bind=\"dataProps\"></component>\r\n</template>\r\n\r\n<script lang=\"ts\" setup>\r\nimport { computed, markRaw, onMounted, ref, watch, defineAsyncComponent } from \"vue\";\r\nconst loadingClass = \"section-loading\";\r\n\r\nconst props = defineProps({\r\n    componentName: { type: String, required: true },\r\n    showLoader: { type: Boolean, required: true },\r\n    dataProps: Object\r\n});\r\n\r\nconst root = ref(null);\r\n\r\nconst loader = ref(props.showLoader);\r\n\r\nconst componentDestinationPath = computed(() => {\r\n    return props.componentName.substr(0, props.componentName.lastIndexOf(\"/\"));\r\n});\r\n\r\nconst componentName = computed(() => {\r\n    return props.componentName.split(\"/\").slice(-1)?.[0];\r\n});\r\n\r\nconst componentType = markRaw(\r\n    defineAsyncComponent(\r\n        () =>\r\n            import(\r\n                /* webpackExclude: /user-menu\\.vue$/ */\r\n                `../app/${componentDestinationPath.value}/${componentName.value}.vue`\r\n            )\r\n    )\r\n);\r\n\r\nfunction handleLoaderChange() {\r\n    if (!root.value) {\r\n        return;\r\n    }\r\n\r\n    const parent = root.value.$parent.$el;\r\n\r\n    if (!loader.value && parent.classList.contains(loadingClass)) {\r\n        parent.classList.remove(loadingClass);\r\n    } else if (loader.value && !parent.classList.contains(loadingClass)) {\r\n        parent.classList.add(loadingClass);\r\n    }\r\n}\r\n\r\nconst loaderHandler = (value: boolean) => {\r\n    loader.value = value;\r\n};\r\n\r\nwatch(loader, () => {\r\n    handleLoaderChange();\r\n});\r\n\r\nonMounted(() => {\r\n    handleLoaderChange();\r\n});\r\n</script>\r\n","import { defineComponent as _defineComponent } from 'vue'\nimport { unref as _unref, resolveDynamicComponent as _resolveDynamicComponent, mergeProps as _mergeProps, openBlock as _openBlock, createBlock as _createBlock } from \"vue\"\n\nimport { computed, markRaw, onMounted, ref, watch, defineAsyncComponent } from \"vue\";\r\nconst loadingClass = \"section-loading\";\r\n\r\n\nexport default /*@__PURE__*/_defineComponent({\n  __name: 'component-loader',\n  props: {\r\n    componentName: { type: String, required: true },\r\n    showLoader: { type: Boolean, required: true },\r\n    dataProps: Object\r\n},\n  setup(__props) {\n\r\nconst props = __props;\r\n\r\nconst root = ref(null);\r\n\r\nconst loader = ref(props.showLoader);\r\n\r\nconst componentDestinationPath = computed(() => {\r\n    return props.componentName.substr(0, props.componentName.lastIndexOf(\"/\"));\r\n});\r\n\r\nconst componentName = computed(() => {\r\n    return props.componentName.split(\"/\").slice(-1)?.[0];\r\n});\r\n\r\nconst componentType = markRaw(\r\n    defineAsyncComponent(\r\n        () =>\r\n            import(\r\n                /* webpackExclude: /user-menu\\.vue$/ */\r\n                `../app/${componentDestinationPath.value}/${componentName.value}.vue`\r\n            )\r\n    )\r\n);\r\n\r\nfunction handleLoaderChange() {\r\n    if (!root.value) {\r\n        return;\r\n    }\r\n\r\n    const parent = root.value.$parent.$el;\r\n\r\n    if (!loader.value && parent.classList.contains(loadingClass)) {\r\n        parent.classList.remove(loadingClass);\r\n    } else if (loader.value && !parent.classList.contains(loadingClass)) {\r\n        parent.classList.add(loadingClass);\r\n    }\r\n}\r\n\r\nconst loaderHandler = (value: boolean) => {\r\n    loader.value = value;\r\n};\r\n\r\nwatch(loader, () => {\r\n    handleLoaderChange();\r\n});\r\n\r\nonMounted(() => {\r\n    handleLoaderChange();\r\n});\r\n\nreturn (_ctx: any,_cache: any) => {\n  return (_openBlock(), _createBlock(_resolveDynamicComponent(_unref(componentType)), _mergeProps({\n    ref_key: \"root\",\n    ref: root,\n    onLoader: loaderHandler\n  }, __props.dataProps), null, 16))\n}\n}\n\n})","import script from \"./component-loader.vue?vue&type=script&lang=ts&setup=true\"\nexport * from \"./component-loader.vue?vue&type=script&lang=ts&setup=true\"\n\nconst __exports__ = script;\n\nexport default __exports__","export const getPrimevueConfig = () => ({\r\n    locale: {\r\n        startsWith: \"Začíná\",\r\n        contains: \"Obsahuje\",\r\n        notContains: \"Neobsahuje\",\r\n        endsWith: \"Končí s\",\r\n        equals: \"Je rovno\",\r\n        notEquals: \"Není rovno\",\r\n        noFilter: \"Bez filtru\",\r\n        lt: \"Méně než\",\r\n        lte: \"Méně než nebo rovno\",\r\n        gt: \"Větší než\",\r\n        gte: \"Větší nebo rovno\",\r\n        dateIs: \"Datum je\",\r\n        dateIsNot: \"Datum není\",\r\n        dateBefore: \"Datum je před\",\r\n        dateAfter: \"Datum je po\",\r\n        clear: \"Vymazat\",\r\n        apply: \"Potvrdit\",\r\n        matchAll: \"Shoda všech\",\r\n        matchAny: \"Shoda některých\",\r\n        addRule: \"Přidat pravidlo\",\r\n        removeRule: \"Odebrat pravidlo\",\r\n        accept: \"Ano\",\r\n        reject: \"Ne\",\r\n        choose: \"Zvolit\",\r\n        upload: \"Nahrát\",\r\n        cancel: \"Zrušit\",\r\n        completed: \"Dokončeno\",\r\n        pending: \"Čeká\",\r\n        dayNames: [\"Neděle\", \"Pondělí\", \"Úterý\", \"Středa\", \"Čtvrtek\", \"Pátek\", \"Sobota\"],\r\n        dayNamesShort: [\"Ned\", \"Pon\", \"Úte\", \"Str\", \"Čtv\", \"Pát\", \"Sob\"],\r\n        dayNamesMin: [\"Ne\", \"Po\", \"Út\", \"St\", \"Čt\", \"Pá\", \"So\"],\r\n        monthNames: [\r\n            \"Leden\",\r\n            \"Únor\",\r\n            \"Březen\",\r\n            \"Duben\",\r\n            \"Květen\",\r\n            \"Červen\",\r\n            \"Červenec\",\r\n            \"Srpen\",\r\n            \"Září\",\r\n            \"Říjen\",\r\n            \"Listopad\",\r\n            \"Prosinec\",\r\n        ],\r\n        monthNamesShort: [\"Led\", \"Úno\", \"Bře\", \"Dub\", \"Kvě\", \"Čvn\", \"Čvc\", \"Srp\", \"Zář\", \"Říj\", \"Lis\", \"Pro\"],\r\n        chooseYear: \"Vybrat rok\",\r\n        chooseMonth: \"Vybrat měsíc\",\r\n        chooseDate: \"Vybrat datum\",\r\n        prevDecade: \"Předchozí dekáda\",\r\n        nextDecade: \"Následující dekáda\",\r\n        prevYear: \"Předchozí rok\",\r\n        nextYear: \"Následující rok\",\r\n        prevMonth: \"Předchozí měsíc\",\r\n        nextMonth: \"Následující měsíc\",\r\n        prevHour: \"Předchozí hodina\",\r\n        nextHour: \"Následující hodina\",\r\n        prevMinute: \"Předchozí minuta\",\r\n        nextMinute: \"Následující minuta\",\r\n        prevSecond: \"Předchozí sekunda\",\r\n        nextSecond: \"Další sekunda\",\r\n        am: \"am\",\r\n        pm: \"pm\",\r\n        today: \"Dnes\",\r\n        weekHeader: \"Týden\",\r\n        firstDayOfWeek: 1,\r\n        dateFormat: \"mm/dd/yy\",\r\n        weak: \"Slabý\",\r\n        medium: \"Střední\",\r\n        strong: \"Silný\",\r\n        passwordPrompt: \"Zadejte heslo\",\r\n        emptyFilterMessage: \"Nebyly nalezeny žádné výsledky\",\r\n        searchMessage: \"{0} výsledků je k dispozici\",\r\n        selectionMessage: \"{0} položek vybráno\",\r\n        emptySelectionMessage: \"Žádná vybraná položka\",\r\n        emptySearchMessage: \"Nebyly nalezeny žádné výsledky\",\r\n        emptyMessage: \"Žádné dostupné možnosti\",\r\n        aria: {\r\n            trueLabel: \"Pravda\",\r\n            falseLabel: \"Nepravda\",\r\n            nullLabel: \"Nevybráno\",\r\n            star: \"1 hvězdička\",\r\n            stars: \"{star} hvězdiček\",\r\n            selectAll: \"Všechny položky vybrány\",\r\n            unselectAll: \"Všechny položky nevybrány\",\r\n            close: \"Zavřít\",\r\n            previous: \"Předchozí\",\r\n            next: \"Další\",\r\n            navigation: \"Navigace\",\r\n            scrollTop: \"Scrollovat nahoru\",\r\n            moveTop: \"Přesunout nahoru\",\r\n            moveUp: \"Přesunout nahoru\",\r\n            moveDown: \"Přesunout dolů\",\r\n            moveBottom: \"Přesunout dolů\",\r\n            moveToTarget: \"Přesunout na cíl\",\r\n            moveToSource: \"Přesunout na zdroj\",\r\n            moveAllToTarget: \"Přesunout vše na cíl\",\r\n            moveAllToSource: \"Přesunout vše do zdroje\",\r\n            pageLabel: \"{page}\",\r\n            firstPageLabel: \"První stránka\",\r\n            lastPageLabel: \"Poslední stránka\",\r\n            nextPageLabel: \"Další stránka\",\r\n            prevPageLabel: \"Předchozí stránka\",\r\n            rowsPerPageLabel: \"Řádky na stránku\",\r\n            previousPageLabel: \"Předchozí stránka\",\r\n            jumpToPageDropdownLabel: \"Přejít na výběr\",\r\n            jumpToPageInputLabel: \"Přejít na input\",\r\n            selectRow: \"Vybraný řádek\",\r\n            unselectRow: \"Nevybraný řádek\",\r\n            expandRow: \"Rozbalený řádek\",\r\n            collapseRow: \"Sbalený řádek\",\r\n            showFilterMenu: \"Zobrazit nabídku filtru\",\r\n            hideFilterMenu: \"Skrýt nabídku filtru\",\r\n            filterOperator: \"Filtr\",\r\n            filterConstraint: \"Filtr\",\r\n            editRow: \"Editace řádku\",\r\n            saveEdit: \"Uložit\",\r\n            cancelEdit: \"Zrušit úpravu\",\r\n            listView: \"Zobrazení v řádku\",\r\n            gridView: \"Zobrazení v mřížce\",\r\n            slide: \"Slide\",\r\n            slideNumber: \"{slideNumber}\",\r\n            zoomImage: \"Přiblížit obrázek\",\r\n            zoomIn: \"Přiblížit\",\r\n            zoomOut: \"Oddálit\",\r\n            rotateRight: \"Otočit doprava\",\r\n            rotateLeft: \"Otočit doleva\",\r\n        },\r\n    },\r\n});\r\n","import { createApp } from \"vue\";\r\nimport ComponentLoader from \"@/../core/component-loader.vue\";\r\nimport PrimeVue from \"primevue/config\";\r\nimport { getPrimevueConfig } from \"@/../config/primevue\";\r\n\r\nconst useVue = () => {\r\n    useDynamicComponents();\r\n};\r\n\r\nfunction useDynamicComponents() {\r\n    const roots = document.querySelectorAll(\"[data-vue]\");\r\n\r\n    for (const root of roots) {\r\n        loadComponent(root as HTMLElement);\r\n    }\r\n}\r\n\r\nfunction loadComponent(node: HTMLElement) {\r\n    const componentName = node.getAttribute(\"data-vue\");\r\n    const showLoader = !node.classList.contains(\"disable-loader\");\r\n    // pass data-attributes as props\r\n    const dataset = node.dataset;\r\n    const dataProps: Record<string, string | number | boolean> = {};\r\n    Object.keys(dataset)\r\n        .filter((x) => ![\"vapp\", \"vue\", \"loader\"].includes(x.toLowerCase()))\r\n        .forEach((p) => {\r\n            let val: string | number | boolean = dataset[p];\r\n            if (val === \"false\" || val === \"False\") {\r\n                val = false;\r\n            } else if (val === \"true\" || val === \"True\") {\r\n                val = true;\r\n            }\r\n            dataProps[p] = val;\r\n        });\r\n\r\n    const component = createApp(ComponentLoader, { componentName, showLoader, dataProps });\r\n    component.use(PrimeVue, getPrimevueConfig());\r\n    component.mount(node);\r\n}\r\n\r\nexport { useVue };\r\n","import { cookieStore } from \"@/shared/utils/store/use-store\";\r\n\r\nexport class FixedHelp {\r\n    public static init() {\r\n        $(document).ready(() => {\r\n            const elem = $(\"#fixed-help\");\r\n            if (!elem.length) return;\r\n\r\n            const cookieName = \"hideFixedHelp\";\r\n\r\n            if (cookieStore.get(cookieName) === \"true\") {\r\n                elem.removeClass(\"active\");\r\n            } else {\r\n                if (!elem.hasClass(\"active\")) {\r\n                    elem.addClass(\"active\");\r\n                }\r\n            }\r\n\r\n            $(\"#switch-help\").click(() => {\r\n                elem.toggleClass(\"active\");\r\n                cookieStore.set(cookieName, `${!elem.hasClass(\"active\")}`);\r\n            });\r\n        });\r\n    }\r\n}\r\n","import $ from \"jquery\";\r\n\r\nexport class ModalVideo {\r\n    private _element: JQuery;\r\n\r\n    constructor(element: JQuery) {\r\n        this._element = element;\r\n\r\n        this._element.find(\".btn-video\").on(\"click\", (e) => {\r\n            e.preventDefault();\r\n\r\n            const button = $(e.currentTarget);\r\n\r\n            const url = button.attr(\"href\");\r\n            const html = this.markupPopup(url);\r\n            $(\"body\").append(html);\r\n\r\n            $(\"#mdlVideoPopup\").show();\r\n\r\n            (async () => {\r\n                await this.delay(250);\r\n                $(\"#mdlVideoPopup\").addClass(\"show\");\r\n            })();\r\n\r\n            $(\"#mdlVideoPopup\").on(\"hidden.bs.modal\", function () {\r\n                $(\"#mdlVideoPopup\").remove();\r\n            });\r\n        });\r\n\r\n        $(document).on(\"click\", \".md-btn-close, .modal-video\", function (e) {\r\n            e.preventDefault();\r\n\r\n            (async () => {\r\n                $(\"#mdlVideoPopup\").removeClass(\"show\");\r\n                await new Promise((resolve) => setTimeout(resolve, 250));\r\n                $(\"#mdlVideoPopup\").remove();\r\n            })();\r\n        });\r\n    }\r\n\r\n    private markupPopup = (videoUrl: string) => {\r\n        return `\r\n        <div id=\"mdlVideoPopup\" class=\"v-modal modal-video fade\" tabindex=\"-1\" role=\"dialog\" aria-hidden=\"true\" data-index=\"\" data-list=\"\">\r\n            <div class=\"modal-dialog modal-dialog-centered\" role=\"document\">\r\n                <div class=\"modal-content\">\r\n                    <button class='modal-video__button modal-video__button--next'></button>\r\n                    <div class=\"modal-body p-0\">\r\n                        <button type=\"button\" class=\"md-btn-close\" data-dismiss=\"modal\">Zavřít</button>\r\n                        <div class=\"embed-responsive embed-responsive-16by9\">\r\n                            <iframe src='${videoUrl}' class=\"embed-responsive-item\"\r\n                                allowfullscreen=\"allowfullscreen\"\r\n                                mozallowfullscreen=\"mozallowfullscreen\" \r\n                                msallowfullscreen=\"msallowfullscreen\" \r\n                                oallowfullscreen=\"oallowfullscreen\" \r\n                                webkitallowfullscreen=\"webkitallowfullscreen\"\r\n                                allow=\"accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture\"></iframe>\r\n                        </div>\r\n                    </div>\r\n                    <button class='modal-video__button modal-video__button--prev'></button>\r\n                </div>\r\n            </div>\r\n            <div class=\"modal-backdrop fade show\"></div>\r\n        </div>`;\r\n    };\r\n\r\n    private delay(ms: number) {\r\n        return new Promise((resolve) => setTimeout(resolve, ms));\r\n    }\r\n\r\n    public static init() {\r\n        const element = $(\".video-cards\");\r\n        if (element.length) {\r\n            new ModalVideo(element);\r\n        }\r\n    }\r\n}\r\n","import { KeenSliderInstance } from \"keen-slider\";\r\n\r\nexport default function useKeenAutoplayPlugin(timeout = 5000) {\r\n    const keenAutoplayPlugin = (slider: KeenSliderInstance) => {\r\n        let timeoutHandler;\r\n        let mouseOver = false;\r\n\r\n        function clearNextTimeout() {\r\n            clearTimeout(timeoutHandler);\r\n        }\r\n\r\n        function nextTimeout() {\r\n            clearTimeout(timeoutHandler);\r\n            if (mouseOver) return;\r\n            timeoutHandler = setTimeout(() => {\r\n                slider.next();\r\n            }, timeout);\r\n        }\r\n\r\n        slider.options.loop = true;\r\n        slider.on(\"created\", () => {\r\n            slider.container.addEventListener(\"mouseenter\", () => {\r\n                mouseOver = true;\r\n                clearNextTimeout();\r\n            });\r\n            slider.container.addEventListener(\"mouseleave\", () => {\r\n                mouseOver = false;\r\n                nextTimeout();\r\n            });\r\n\r\n            nextTimeout();\r\n        });\r\n        \r\n        slider.on(\"animationEnded\", nextTimeout);\r\n        slider.on(\"updated\", nextTimeout);\r\n    };\r\n\r\n    return keenAutoplayPlugin;\r\n}\r\n","import useKeenAutoplayPlugin from \"@/shared/components/keen-slider/plugins/keen-autoplay-plugin\";\r\nimport KeenSlider from \"keen-slider\";\r\n\r\nexport class BenefitSlider {\r\n    private _element: JQuery;\r\n\r\n    constructor(element: JQuery) {\r\n        this._element = element;\r\n        this.constructSlider();\r\n    }\r\n\r\n    public static init() {\r\n        const nodes = $(\".benefit-slider\");\r\n        for (const element of nodes) {\r\n            new BenefitSlider($(element));\r\n        }\r\n    }\r\n\r\n    private constructSlider() {\r\n        new KeenSlider(\r\n            this._element[0],\r\n            {\r\n                vertical: true,\r\n                selector: \".benefit\",\r\n                slides: {\r\n                    origin: \"center\",\r\n                    perView: 1,\r\n                    spacing: 20,\r\n                },\r\n                defaultAnimation: {\r\n                    duration: 800,\r\n                },\r\n                created: (slider) => {\r\n                    this._element.find(\".benefit-slider__button--prev\").on(\"click\", function () {\r\n                        slider.prev();\r\n                    });\r\n\r\n                    this._element.find(\".benefit-slider__button--next\").on(\"click\", function () {\r\n                        slider.next();\r\n                    });\r\n                },\r\n            },\r\n            [useKeenAutoplayPlugin()],\r\n        );\r\n    }\r\n}\r\n","import { ResponsiveUtils } from \"@/shared/utils/responsive/responsive-utils\";\r\nimport $ from \"jquery\";\r\n\r\nexport class Footer {\r\n    private _element: JQuery;\r\n    private inited: boolean;\r\n\r\n    constructor(element: JQuery) {\r\n        this._element = element;\r\n        this.inited = false;\r\n\r\n        $(window).resize(this.initFooter);\r\n        this.initFooter();\r\n    }\r\n\r\n    private initFooter = () => {\r\n        if (ResponsiveUtils.breakpointUp(\"sm1\")) {\r\n            $(\".footer__list\").slideDown();\r\n            $(\".footer__list\").removeClass(\"expanded\");\r\n        } else {\r\n            if (this.inited) return false;\r\n            $(\".footer__title\").click(function () {\r\n                if (!$(this).hasClass(\"expanded\")) {\r\n                    $(this).addClass(\"expanded\");\r\n                    $(this).parent().find(\".footer__list\").slideDown();\r\n                } else {\r\n                    $(this).removeClass(\"expanded\");\r\n                    $(this).parent().find(\".footer__list\").slideUp();\r\n                }\r\n            });\r\n            this.inited = true;\r\n        }\r\n    };\r\n\r\n    public static init() {\r\n        const elems = $(\".footer\");\r\n        elems.each((index, elem) => {\r\n            new Footer($(elem));\r\n        });\r\n    }\r\n}\r\n","import yall from \"yall-js\";\r\n\r\nexport function useLazyLoading() {\r\n    yall({\r\n        observeChanges: true,\r\n    });\r\n}","import useUserAccount from \"@/account/use-user-account\";\r\n\r\nconst { waitForUserAccount } = useUserAccount();\r\n\r\n// const SCEChatOptions = {\r\n//     opt: {\r\n//         widget_height: 340,\r\n//         widget_width: 300,\r\n//         popup_height: 340,\r\n//         popup_width: 300\r\n//     }\r\n// };\r\n\r\nexport const initChat = () => {\r\n    const po = document.createElement(\"script\");\r\n    po.type = \"text/javascript\";\r\n    po.async = true;\r\n\r\n    const referrer = document.referrer ? encodeURIComponent(document.referrer.substr(document.referrer.indexOf(\"://\") + 1)) : \"\";\r\n    const location = document.location ? encodeURIComponent(window.location.href.substring(window.location.protocol.length)) : \"\";\r\n\r\n    if (window.environment && window.environment.env === \"Production\") {\r\n        po.src =\r\n            \"//chat-new.sazka.cz/index.php/cse/chat/getstatus/(click)/internal/(position)/api/(ma)/br/(top)/350/(units)/pixels/(department)/3/(leaveamessage)/true/(theme)/3/(survey)/3?r=\" +\r\n            referrer +\r\n            \"&l=\" +\r\n            location;\r\n    } else {\r\n        po.src =\r\n            \"//chat-new.uat.sazka.cz/index.php/cse/chat/getstatus/(click)/internal/(position)/api/(ma)/br/(top)/350/(units)/pixels/(department)/3/(leaveamessage)/true/(theme)/3/(survey)/3?r=\" +\r\n            referrer +\r\n            \"&l=\" +\r\n            location;\r\n    }\r\n\r\n    document.body.appendChild(po);\r\n};\r\n\r\nexport const registerChatToWindow = () => {\r\n    (window as any).showChat = async () => {\r\n        const userData = await waitForUserAccount();\r\n        let user = null;\r\n        user = {\r\n            Username: userData.value?.phone,\r\n            creativeCode: \"default\",\r\n            campaignCode: \"default\",\r\n            ProactiveChat: \"false\",\r\n        };\r\n\r\n        if (window.sce_instance) {\r\n            window.sce_instance.showChat(user);\r\n        }\r\n    };\r\n};\r\n","import { useBundleLoader } from \"./bundle-loader\";\r\nimport $ from \"jquery\";\r\nimport \"bootstrap\";\r\nimport { useVue } from \"./vue\";\r\nimport { FixedHelp } from \"../app/components/fixed-help\";\r\nimport { ModalVideo } from \"../app/components/modal-video\";\r\nimport { useSelectBox } from \"../app/shared/components/select-box/use-select-box\";\r\nimport { BenefitSlider } from \"../app/homepage/benefit-slider\";\r\nimport { Footer } from \"./footer\";\r\nimport { useLazyLoading } from \"../app/components/use-lazy-loading\";\r\nimport { initChat, registerChatToWindow } from \"../app/components/chat\";\r\nimport { initMobileAppFeatures } from \"@sazka/mobile-apps/mobile-app-integration\";\r\nimport { documentReady } from \"@sazka/utils/document-ready\";\r\nimport { useGdpr } from \"@/account/composables/use-gdpr\";\r\n\r\ndocument.ready = documentReady;\r\n\r\nwindow.dataLayer = window.dataLayer || [];\r\n\r\n// register tmp global types for Ticket Check APP\r\n(window as any).$ = $;\r\n(window as any).jQuery = $;\r\n\r\nuseBundleLoader();\r\nuseVue();\r\ninitChat();\r\n\r\n$(() => {\r\n    FixedHelp.init();\r\n    ModalVideo.init();\r\n    BenefitSlider.init();\r\n    Footer.init();\r\n    useLazyLoading();\r\n    useSelectBox();\r\n    registerChatToWindow();\r\n    useGdpr().init();\r\n    initMobileAppFeatures();\r\n});\r\n","import { documentReady } from \"@sazka/utils/document-ready\";\r\n\r\ndeclare const environment: any;\r\ntype ColorVariant = \"yellow\" | \"blue\";\r\n\r\n/**\r\n * Loader tells user, he has to wait for some ajax operation\r\n */\r\nexport class Loader {\r\n    private static showTimeout: number;\r\n    private static hideTimeout: number;\r\n    private static lockNumber = 0;\r\n    public static get isShown() {\r\n        return this.lockNumber > 0;\r\n    }\r\n\r\n    static {\r\n        // loader from backend\r\n        if (document.body) {\r\n            this.showLoaderFromBackend();\r\n        } else {\r\n            documentReady(() => {\r\n                this.showLoaderFromBackend();\r\n            });\r\n        }\r\n    }\r\n\r\n    static showLoaderFromBackend() {\r\n        if (document.body.classList.contains(\"loader\")) {\r\n            this.lockNumber++;\r\n        }\r\n    }\r\n\r\n    /**\r\n     * Shows loader after some time in miliseconds\r\n     * This is to reduce flickering when ajax actions are super-fast\r\n     *\r\n     * @param showLoaderIn Time in miliseconds, after which, loaded will be shown\r\n     * @param text Title (waiting message) displayed in loader\r\n     */\r\n    static show(showLoaderIn = 30, text?: string, aboveAll = false, color: ColorVariant = \"yellow\") {\r\n        this.clearTimeout();\r\n        this.lockNumber++;\r\n\r\n        this.showTimeout = window.setTimeout(() => {\r\n            this.showNow(text, aboveAll, true, color);\r\n        }, showLoaderIn);\r\n    }\r\n\r\n    /**\r\n     * Shows loader right away\r\n     * @param text Title (waiting message) displayed in loader\r\n     */\r\n    static showNow(text?: string, aboveAll = false, counted = false, color: ColorVariant = \"yellow\") {\r\n        if (!counted) {\r\n            this.lockNumber++;\r\n        }\r\n\r\n        if (!environment.isEditMode) {\r\n            const loader = document.getElementById(\"loader\");\r\n\r\n            if (!loader) return;\r\n\r\n            if (aboveAll) {\r\n                loader.classList.add(\"loader--above-all\");\r\n            } else {\r\n                loader.classList.remove(\"loader--above-all\");\r\n            }\r\n            if (text) {\r\n                loader.querySelector(\".loader__text\").textContent = text;\r\n                loader.classList.add(\"loader--with-text\");\r\n            } else {\r\n                loader.querySelector(\".loader__text\").textContent = \"\";\r\n                loader.classList.remove(\"loader--with-text\");\r\n            }\r\n\r\n            if (color === \"blue\") {\r\n                loader.classList.add(\"loader--blue\");\r\n            }\r\n\r\n            document.body.classList.add(\"loader\", \"loader--fade-in\");\r\n            this.clearTimeout();\r\n        }\r\n    }\r\n\r\n    /**\r\n     * Shows loader after delay with z-index of 9999\r\n     * @param text Title (waiting message) displayed in loader\r\n     */\r\n    static showAboveAll(showLoaderIn = 30, text?: string) {\r\n        this.show(showLoaderIn, text, true);\r\n    }\r\n\r\n    /**\r\n     * Shows loader right away with z-index of 9999\r\n     * @param text Title (waiting message) displayed in loader\r\n     */\r\n    static showNowAboveAll(text?: string) {\r\n        this.showNow(text, true);\r\n    }\r\n\r\n    /**\r\n     * Hides loader\r\n     */\r\n    static hide() {\r\n        this.lockNumber--;\r\n        if (this.lockNumber > 0) return;\r\n\r\n        this.clearTimeout();\r\n        document.body.classList.remove(\"loader--fade-in\");\r\n        this.hideTimeout = window.setTimeout(() => {\r\n            document.body.classList.remove(\"loader\");\r\n            const loader = document.getElementById(\"loader\");\r\n            loader.querySelector(\".loader__text\").textContent = \"\";\r\n            loader.classList.remove(\"loader--with-text\");\r\n        }, 150);\r\n    }\r\n\r\n    private static clearTimeout() {\r\n        if (this.showTimeout) {\r\n            clearTimeout(this.showTimeout);\r\n            this.showTimeout = null;\r\n        }\r\n        if (this.hideTimeout) {\r\n            clearTimeout(this.hideTimeout);\r\n            this.hideTimeout = null;\r\n        }\r\n    }\r\n}\r\n","/**\r\n * @deprecated Use showAlert a DS component\r\n */\r\nexport const sazkaAlert = (\r\n    title: string,\r\n    text: string = null,\r\n    linkText: string = null,\r\n    link: string = null,\r\n    buttonText = \"OK\",\r\n    customHtml = \"\",\r\n    hasExtraButton = true,\r\n    errorCode?: number\r\n): Promise<boolean> => {\r\n    return new Promise((resolve) => {\r\n        const heading = $(\r\n            `<h2 class=\"sazka-alert__title\" style=\"visibility:hidden; display:inline-block;\">${title}</h2>`\r\n        );\r\n        $(\"body\").append(heading);\r\n        const maxWidth = Math.max(heading.width(), 300);\r\n        heading.remove();\r\n\r\n        const template = `\r\n        <div class=\"modal fade sazka-alert\" tabindex=\"-1\" role=\"dialog\" aria-hidden=\"true\">\r\n            <div class=\"modal-dialog modal-dialog-centered\">\r\n                <div class=\"modal-content modal-content--without-close\">\r\n                    ${errorCode ? `<span class='sazka-alert__ecode'>ecode: ${errorCode}</span>` : \"\"}\r\n                    <h2 class=\"sazka-alert__title\">${title}</h2>\r\n                    ${text ? `<p class=\"sazka-alert__text\" style=\"max-width: ${maxWidth}px;\">${text}</p>` : \"\"}\r\n                    <div class=\"sazka-alert__button-group\">\r\n                        ${linkText ? `<a class=\"btn btn-primary sazka-alert--btn\" href=\"${link}\">${linkText}</a>` : \"\"}\r\n                        ${\r\n                            hasExtraButton\r\n                                ? `<button type=\"button\" class=\"btn ${\r\n                                      linkText ? \"btn-outline-primary\" : \"btn-primary\"\r\n                                  }\" data-dismiss=\"modal\">${buttonText}</button>`\r\n                                : \"\"\r\n                        }\r\n                    </div>\r\n                    ${customHtml}\r\n                </div>\r\n            </div>\r\n        </div>`;\r\n\r\n        const $modal = $(template);\r\n        $(\"body\").append($modal);\r\n        $modal.modal(\"show\");\r\n        $modal.find(\".sazka-alert--btn\").on(\"click\", () => {\r\n            resolve(false);\r\n            $modal.modal(\"hide\");\r\n        });\r\n        $modal.on(\"hidden.bs.modal\", () => {\r\n            $modal.modal(\"dispose\").remove();\r\n            if ($(\".modal:visible\").length) {\r\n                $(\"body\").addClass(\"modal-open\");\r\n            }\r\n            resolve(true);\r\n        });\r\n    });\r\n};\r\n","import { useNgSession } from \"@sazka/ng/ng-session\";\r\nimport { sazkaAlert } from \"@sazka/utils/sazka-alert\";\r\nimport { ref } from \"vue\";\r\nimport $ from \"jquery\";\r\n\r\nconst webViewDebugModeOn = ref(false);\r\n\r\nexport default function useWebviewDebugMode() {\r\n    const initWebviewDebugMode = (): void => {\r\n        try {\r\n            if (environment.env == \"Production\") return;\r\n            // Create debug button\r\n            const debugBtn = document.createElement(\"button\");\r\n            debugBtn.className = \"webview-debug\";\r\n            debugBtn.attributes[\"type\"] = \"button\";\r\n            debugBtn.onclick = () => {\r\n                webViewDebugModeOn.value = !webViewDebugModeOn.value;\r\n                $(\".webview-debug__mode\").toggleClass(\"webview-debug__mode--active\");\r\n                if (webViewDebugModeOn.value) {\r\n                    const { session } = useNgSession();\r\n\r\n                    sazkaAlert(\r\n                        \"WebView\",\r\n                        `Aplikace: ${environment.appName}<br/>\r\n                        URL: ${window.location.href}<br/>\r\n                        PlayerId z BE: ${window.player?.id || \"---\"}<br/>\r\n                        PlayerId od NG: ${session.value?.PlayerID || \"---\"}<br/>\r\n                        SessionToken z BE: ${window.player?.sessionToken || \"---\"}<br/>\r\n                        SessionToken od NG: ${session.value?.SessionToken || \"---\"}<br/>\r\n                    `\r\n                    );\r\n                }\r\n            };\r\n\r\n            debugBtn.insertAdjacentHTML(\r\n                \"beforeend\",\r\n                '<span>WebView Debug</span> <span class=\"webview-debug__mode\">Active</span>'\r\n            );\r\n            document.querySelector(\"body\").appendChild(debugBtn);\r\n        } catch (e) {\r\n            console.error(`WebView Debug Mode Initialiazation Failed: ${e}`);\r\n        }\r\n    };\r\n\r\n    const showEventAlert = (interfaceName: string, methodName: string, argument: string): void => {\r\n        try {\r\n            if (!webViewDebugModeOn.value) return;\r\n\r\n            const eventMessage =\r\n                argument !== null && argument !== undefined\r\n                    ? `Interface ${interfaceName}; method ${methodName}('${argument}')`\r\n                    : `Interface ${interfaceName}; method ${methodName}()`;\r\n            confirm(eventMessage);\r\n        } catch (e) {\r\n            console.error(`Show Alert For WebView Debug Mode Failed: ${e}`);\r\n        }\r\n    };\r\n\r\n    return {\r\n        showEventAlert,\r\n        initWebviewDebugMode,\r\n    };\r\n}\r\n","import { InterfaceName, MobileAppMethodName } from \"./mobile-app-models\";\r\nimport useWebviewDebugMode from \"./use-webview-debug\";\r\n\r\nconst { initWebviewDebugMode, showEventAlert } = useWebviewDebugMode();\r\n\r\nexport function triggerMobileAppEvent(\r\n    methodName: MobileAppMethodName,\r\n    argument?: string,\r\n    interfaceName?: InterfaceName\r\n): void;\r\nexport function triggerMobileAppEvent(methodName: string, argument?: string, interfaceName?: InterfaceName): void;\r\nexport function triggerMobileAppEvent(\r\n    methodName: string,\r\n    argument?: string,\r\n    interfaceName: InterfaceName = \"generalIntegration\"\r\n): void {\r\n    const anyWindow = window as any;\r\n\r\n    // for iOS WebKit\r\n    if (typeof anyWindow.webkit !== \"undefined\") {\r\n        showEventAlert(interfaceName, methodName, argument);\r\n        argument !== null && argument !== undefined\r\n            ? anyWindow.webkit.messageHandlers[interfaceName].postMessage(\r\n                  JSON.stringify({ type: methodName, parameters: argument })\r\n              )\r\n            : anyWindow.webkit.messageHandlers[interfaceName]?.postMessage(JSON.stringify({ type: methodName }));\r\n    }\r\n\r\n    // for Android WebView\r\n    const androindInterface = anyWindow[interfaceName];\r\n    if (androindInterface?.hasOwnProperty(methodName)) {\r\n        showEventAlert(interfaceName, methodName, argument);\r\n        argument !== null && argument !== undefined\r\n            ? androindInterface[methodName](argument)\r\n            : androindInterface[methodName]();\r\n    }\r\n\r\n    // TODO remove after Adastra deploy\r\n    if (interfaceName == \"generalIntegration\") {\r\n        triggerMobileAppEvent(methodName, argument, \"bannerIntegration\");\r\n        triggerMobileAppEvent(methodName, argument, \"goldenWheelIntegration\");\r\n    }\r\n}\r\n\r\nfunction initAutoMobileAppEvents() {\r\n    document.querySelectorAll(\"[data-app-event]:not([data-app-event=''])\").forEach((item) => {\r\n        item.addEventListener(\"click\", (e) => {\r\n            e.preventDefault();\r\n            const eventName = (e.currentTarget as HTMLElement).getAttribute(\"data-app-event\");\r\n            const argument = (e.currentTarget as HTMLElement).getAttribute(\"data-app-argument\");\r\n\r\n            triggerMobileAppEvent(eventName, argument);\r\n        });\r\n    });\r\n}\r\n\r\nexport const isMobileApp = environment.isInAppView || false;\r\n\r\nexport function initMobileAppFeatures() {\r\n    if (isMobileApp) {\r\n        initAutoMobileAppEvents();\r\n\r\n        // WebView Debug Mode\r\n        initWebviewDebugMode();\r\n    }\r\n}\r\n","import { type Ref, ref } from \"vue\";\r\n\r\nconst isDocumentVisible = ref(true);\r\nconst isEventHandlerBound = false;\r\n\r\n/**\r\n * Binds an event handler to listen for visibility change and updates the isDocumentVisible ref accordingly.\r\n */\r\nconst bindEventHandler = () => {\r\n    document.addEventListener(\"visibilitychange\", () => {\r\n        isDocumentVisible.value = !document.hidden;\r\n    });\r\n};\r\n\r\n/**\r\n * Function that checks if the event handler is bound and calls the bindEventHandler function if not.\r\n *\r\n * @return {Ref<boolean>} Ref object containing the visibility status of the document\r\n */\r\nexport const usePageVisibility = () => {\r\n    if (!isEventHandlerBound) {\r\n        bindEventHandler();\r\n    }\r\n\r\n    return { isDocumentVisible };\r\n};\r\n","import { defineComponent as _defineComponent } from 'vue'\nimport { openBlock as _openBlock, createBlock as _createBlock, createCommentVNode as _createCommentVNode, createElementBlock as _createElementBlock, toDisplayString as _toDisplayString, createElementVNode as _createElementVNode } from \"vue\"\n\nconst _hoisted_1 = { class: \"ds-top-slot-headline-subheadline\" }\nconst _hoisted_2 = [\"innerHTML\", \"id\"]\nconst _hoisted_3 = [\"id\"]\nconst _hoisted_4 = [\"innerHTML\"]\n\nimport WebpImage from \"../image/webp-image.vue\";\r\n\r\n\nexport default /*@__PURE__*/_defineComponent({\n  __name: 'ds-top-subheadline',\n  props: {\n    headline: {},\n    subheadline: {},\n    imageSrc: {},\n    imageAlt: {},\n    displayHeadlineAsHtml: { type: Boolean },\n    dialogLabelId: { default: \"dialog-label\" }\n  },\n  setup(__props: any) {\n\r\n\r\n\nreturn (_ctx: any,_cache: any) => {\n  return (_openBlock(), _createElementBlock(\"div\", _hoisted_1, [\n    (_ctx.imageSrc)\n      ? (_openBlock(), _createBlock(WebpImage, {\n          key: 0,\n          src: _ctx.imageSrc,\n          alt: _ctx.imageAlt,\n          \"css-class\": \"ds-top-slot-headline-subheadline__image\"\n        }, null, 8, [\"src\", \"alt\"]))\n      : _createCommentVNode(\"\", true),\n    _createElementVNode(\"div\", null, [\n      (_ctx.displayHeadlineAsHtml)\n        ? (_openBlock(), _createElementBlock(\"h2\", {\n            key: 0,\n            class: \"ds-top-slot-headline-subheadline__headline\",\n            innerHTML: _ctx.headline,\n            id: _ctx.dialogLabelId\n          }, null, 8, _hoisted_2))\n        : (_openBlock(), _createElementBlock(\"h2\", {\n            key: 1,\n            class: \"ds-top-slot-headline-subheadline__headline\",\n            id: _ctx.dialogLabelId\n          }, _toDisplayString(_ctx.headline), 9, _hoisted_3)),\n      (_ctx.subheadline)\n        ? (_openBlock(), _createElementBlock(\"p\", {\n            key: 2,\n            class: \"ds-top-slot-headline-subheadline__subheadline\",\n            innerHTML: _ctx.subheadline\n          }, null, 8, _hoisted_4))\n        : _createCommentVNode(\"\", true)\n    ])\n  ]))\n}\n}\n\n})","import script from \"./ds-top-subheadline.vue?vue&type=script&lang=ts&setup=true\"\nexport * from \"./ds-top-subheadline.vue?vue&type=script&lang=ts&setup=true\"\n\nconst __exports__ = script;\n\nexport default __exports__","import { defineComponent as _defineComponent } from 'vue'\nimport { openBlock as _openBlock, createBlock as _createBlock, createCommentVNode as _createCommentVNode, createVNode as _createVNode, toDisplayString as _toDisplayString, createTextVNode as _createTextVNode, withCtx as _withCtx, normalizeClass as _normalizeClass, createElementBlock as _createElementBlock } from \"vue\"\n\nconst _hoisted_1 = {\n  key: 1,\n  class: \"ds-modal-alert__code\"\n}\n\nimport { getCurrentInstance, ref, nextTick, onMounted } from \"vue\";\r\nimport DsModalDialog from \"../modal-dialog/ds-modal-dialog.vue\";\r\nimport DsTopSlotHeadlineSubheadline from \"../top-slot/ds-top-subheadline.vue\";\r\nimport DsButton from \"../button/ds-button.vue\";\r\nimport WebpImage from \"../image/webp-image.vue\";\r\n\r\n\nexport default /*@__PURE__*/_defineComponent({\n  __name: 'ds-modal-alert',\n  props: {\n    title: {},\n    subText: {},\n    btnCloseText: { default: \"OK\" },\n    errorCode: {},\n    animate: { type: Boolean, default: true },\n    bottomDividerVisible: { type: Boolean, default: false },\n    alertImageSrc: { default: null },\n    modalClass: {},\n    buttonClass: {},\n    btnHrefText: {},\n    href: { default: null }\n  },\n  setup(__props: any) {\n\r\nconst app = getCurrentInstance();\r\n\r\n\r\n\r\nconst isModalVisible = ref(false);\r\n\r\nonMounted(() => {\r\n    isModalVisible.value = true;\r\n});\r\n\r\nconst handleModalClosed = () => {\r\n    nextTick(() => {\r\n        app.appContext.app.unmount();\r\n    });\r\n};\r\n\nreturn (_ctx: any,_cache: any) => {\n  return (_openBlock(), _createBlock(DsModalDialog, {\n    modelValue: isModalVisible.value,\n    \"onUpdate:modelValue\": [\n      _cache[0] || (_cache[0] = ($event: any) => ((isModalVisible).value = $event)),\n      handleModalClosed\n    ],\n    \"top-divider-visible\": false,\n    \"bottom-divider-visible\": _ctx.bottomDividerVisible,\n    \"has-dialog-close-btn\": false,\n    animate: _ctx.animate,\n    \"css-class\": ['ds-modal-alert', _ctx.modalClass]\n  }, {\n    top: _withCtx(() => [\n      (_ctx.alertImageSrc)\n        ? (_openBlock(), _createBlock(WebpImage, {\n            key: 0,\n            alt: \"Error kuličník\",\n            src: '/frontend/web' + _ctx.alertImageSrc,\n            width: \"148\",\n            height: \"80\",\n            \"css-class\": \"ds-modal-alert__image\",\n            class: \"ds-modal-alert__picture\"\n          }, null, 8, [\"src\"]))\n        : _createCommentVNode(\"\", true),\n      _createVNode(DsTopSlotHeadlineSubheadline, {\n        headline: _ctx.title,\n        subheadline: _ctx.subText\n      }, null, 8, [\"headline\", \"subheadline\"])\n    ]),\n    bottom: _withCtx(() => [\n      (_ctx.href)\n        ? (_openBlock(), _createBlock(DsButton, {\n            key: 0,\n            href: _ctx.href,\n            class: \"ds-modal-alert__button\"\n          }, {\n            default: _withCtx(() => [\n              _createTextVNode(_toDisplayString(_ctx.btnHrefText), 1)\n            ]),\n            _: 1\n          }, 8, [\"href\"]))\n        : _createCommentVNode(\"\", true),\n      _createVNode(DsButton, {\n        class: _normalizeClass([\"ds-modal-alert__button\", [_ctx.buttonClass, { 'ds-modal-alert__button--no-margin': _ctx.bottomDividerVisible }]]),\n        onClick: handleModalClosed\n      }, {\n        default: _withCtx(() => [\n          _createTextVNode(_toDisplayString(_ctx.btnCloseText), 1)\n        ]),\n        _: 1\n      }, 8, [\"class\"]),\n      (_ctx.errorCode)\n        ? (_openBlock(), _createElementBlock(\"span\", _hoisted_1, \"ecode: \" + _toDisplayString(_ctx.errorCode), 1))\n        : _createCommentVNode(\"\", true)\n    ]),\n    _: 1\n  }, 8, [\"modelValue\", \"bottom-divider-visible\", \"animate\", \"css-class\"]))\n}\n}\n\n})","<template>\r\n    <DsModalDialog\r\n        v-model=\"isModalVisible\"\r\n        :top-divider-visible=\"false\"\r\n        :bottom-divider-visible=\"bottomDividerVisible\"\r\n        :has-dialog-close-btn=\"false\"\r\n        @update:model-value=\"handleModalClosed\"\r\n        :animate=\"animate\"\r\n        :css-class=\"['ds-modal-alert', modalClass]\"\r\n    >\r\n        <template #top>\r\n            <WebpImage\r\n                alt=\"Error kuličník\"\r\n                :src=\"'/frontend/web' + alertImageSrc\"\r\n                width=\"148\"\r\n                height=\"80\"\r\n                v-if=\"alertImageSrc\"\r\n                css-class=\"ds-modal-alert__image\"\r\n                class=\"ds-modal-alert__picture\"\r\n            />\r\n            <DsTopSlotHeadlineSubheadline :headline=\"title\" :subheadline=\"subText\" />\r\n        </template>\r\n        <template #bottom>\r\n            <DsButton v-if=\"href\" :href=\"href\" class=\"ds-modal-alert__button\">{{ btnHrefText }}</DsButton>\r\n            <DsButton\r\n                class=\"ds-modal-alert__button\"\r\n                :class=\"[buttonClass, { 'ds-modal-alert__button--no-margin': bottomDividerVisible }]\"\r\n                @click=\"handleModalClosed\"\r\n                >{{ btnCloseText }}</DsButton\r\n            >\r\n            <span v-if=\"errorCode\" class=\"ds-modal-alert__code\">ecode: {{ errorCode }}</span>\r\n        </template>\r\n    </DsModalDialog>\r\n</template>\r\n\r\n<script lang=\"ts\" setup>\r\nimport { getCurrentInstance, ref, nextTick, onMounted } from \"vue\";\r\nimport DsModalDialog from \"../modal-dialog/ds-modal-dialog.vue\";\r\nimport DsTopSlotHeadlineSubheadline from \"../top-slot/ds-top-subheadline.vue\";\r\nimport DsButton from \"../button/ds-button.vue\";\r\nimport WebpImage from \"../image/webp-image.vue\";\r\n\r\nconst app = getCurrentInstance();\r\n\r\nwithDefaults(\r\n    defineProps<{\r\n        title: string;\r\n        subText?: string;\r\n        btnCloseText?: string;\r\n        errorCode?: number;\r\n        animate?: boolean;\r\n        bottomDividerVisible?: boolean;\r\n        alertImageSrc?: string;\r\n        modalClass?: string;\r\n        buttonClass?: string;\r\n        btnHrefText?: string;\r\n        href?: string;\r\n    }>(),\r\n    {\r\n        btnCloseText: \"OK\",\r\n        bottomDividerVisible: false,\r\n        animate: true,\r\n        alertImageSrc: null,\r\n        href: null,\r\n    }\r\n);\r\n\r\nconst isModalVisible = ref(false);\r\n\r\nonMounted(() => {\r\n    isModalVisible.value = true;\r\n});\r\n\r\nconst handleModalClosed = () => {\r\n    nextTick(() => {\r\n        app.appContext.app.unmount();\r\n    });\r\n};\r\n</script>\r\n","import script from \"./ds-modal-alert.vue?vue&type=script&lang=ts&setup=true\"\nexport * from \"./ds-modal-alert.vue?vue&type=script&lang=ts&setup=true\"\n\nconst __exports__ = script;\n\nexport default __exports__","import { type App, type Ref, createApp, ref, watch } from \"vue\";\r\nimport DsModalAlert from \"../modal-alert/ds-modal-alert.vue\";\r\nimport { DsModalAlertModel } from \"../modal-alert/ds-modal-alert-model\";\r\n\r\n/**\r\n * Mount DS alert component\r\n * @param {Object} props\r\n * @param title - title for alert\r\n * @param subText - text for alert\r\n * @param btnCloseText - text for close button\r\n * @param errorCode - error code\r\n * @param animate - show animation\r\n * @param bottomDividerVisible - show bottom divider\r\n * @param alertImageSrc - image for alert\r\n * @param modalClass - additional class for modal\r\n * @param buttonClass - additional class for button\r\n * @param href - url link\r\n * @param btnHrefText - text for link\r\n */\r\nexport function showAlert(props: DsModalAlertModel) {\r\n    const alertRef: Ref<App> = ref(null);\r\n    const isVisible = ref(true);\r\n\r\n    alertRef.value = createApp(DsModalAlert, { ...props });\r\n\r\n    const root = document.createElement(\"div\");\r\n    alertRef.value.mount(root);\r\n\r\n    watch(isVisible, (newVal) => {\r\n        if (!newVal) {\r\n            alertRef.value.unmount();\r\n        }\r\n    });\r\n\r\n    return {\r\n        isVisible,\r\n    };\r\n}\r\n","import { useNgSession } from \"./ng-session\";\r\nimport { type PlayerContact } from \"./model/contact\";\r\n\r\nexport function logLogin(contact?: PlayerContact) {\r\n    const { isLoggedIn, session } = useNgSession();\r\n    if (!isLoggedIn.value) return;\r\n\r\n    $.post({\r\n        type: \"POST\",\r\n        url: \"/api/player/login\",\r\n        contentType: \"application/json; charset=utf-8\",\r\n        data: JSON.stringify({\r\n            playerId: session.value.PlayerID,\r\n            contact: contact ?? {\r\n                birthday: session.value.Birthday,\r\n                city: session.value.City,\r\n                firstName: session.value.PlayerName,\r\n                lastName: session.value.PlayerLastName,\r\n                email: session.value.PlayerEmail,\r\n                phoneNumber: session.value.PlayerCellphone,\r\n                vipLevel: session.value.PlayerVipLevel,\r\n                registrationDate: session.value.PlayerRegistrationDate,\r\n                countryCode: session.value.CountryCode,\r\n            },\r\n        }),\r\n    });\r\n}\r\n","import { ref } from \"vue\";\r\nimport { showAlert } from \"@sazka/design-system/src/modal-alert/mount-alert\";\r\n\r\nimport { UrlUtils } from \"@sazka/utils/url\";\r\nimport { NgBalance, NgFw, NgSessionLite } from \"./model/ng-fw\";\r\nimport { useNgSession } from \"./ng-session\";\r\nimport { logLogin } from \"./log-login\";\r\nimport { ngHandleMmi } from \"./ng-mmi\";\r\nimport { useNg3DsRedirection } from \"./ng-3ds-redirection\";\r\n\r\nexport const ngFrameworkLoadedSuccessfully = ref(false);\r\nlet ngFrameworkError = false;\r\n\r\nconst frameworkLoadedPromiseResolves: (() => void)[] = [];\r\nconst sessionStatusCallbacks: ((session: NgSessionLite) => void)[] = [];\r\nconst loginAbortedCallbacks: (() => void)[] = [];\r\nlet openPageCallback: (key: string, customInfo: string | any) => void = null;\r\n\r\nexport async function useNg(openPage: typeof openPageCallback) {\r\n    openPageCallback = openPage;\r\n    useNgSession().init();\r\n    useNgLoader();\r\n    // await ngFrameworkLoaded();\r\n}\r\n\r\n/**\r\n * ng_hs is ng framework's way to notify web page when user state changes\r\n * it is using callbacks\r\n */\r\nasync function useNgHs() {\r\n    try {\r\n        ng_hs.onBalanceUpdated((balance: NgBalance) => {\r\n            useNgSession().balance.value = balance;\r\n        });\r\n\r\n        ng_hs.onSessionStatusUpdate((session: NgSessionLite) => {\r\n            if (session.Status == \"Login\") {\r\n                // we need to do that to load more information from NG framework\r\n                useNgSession().refreshSession();\r\n                logLogin();\r\n            } else {\r\n                useNgSession().clearSession();\r\n            }\r\n            sessionStatusCallbacks.forEach((f) => f(session));\r\n        });\r\n\r\n        ng_hs.loginAborted(() => loginAbortedCallbacks.forEach((f) => f()));\r\n        ng_hs.registrationAborted(() => loginAbortedCallbacks.forEach((f) => f()));\r\n\r\n        ng_hs.openPage(openPageCallback);\r\n\r\n        ng_hs.clearURLParams((urlParams: string[]) => {\r\n            UrlUtils.clearUrlParams(urlParams);\r\n        });\r\n\r\n        useNg3DsRedirection().registerNgHsCallback();\r\n    } catch (e: any) {\r\n        console.error(\"Failed to register ng_hs callback: \" + e?.message);\r\n    }\r\n}\r\n\r\nexport function getNgTimeDuration(ngActionTimestamp: string, ngServerTime: string): number {\r\n    const start = Date.parse(ngActionTimestamp);\r\n    const server = Date.parse(ngServerTime);\r\n    const now = Date.now();\r\n    return start - server + now;\r\n}\r\n\r\nfunction useNgIdentityVerification() {\r\n    const parameter = UrlUtils.getQueryString(\"identityverification\", null, false);\r\n    if (parameter) {\r\n        ng_fw.showPersonalInfoVerification();\r\n    }\r\n}\r\n\r\nfunction useNgLoader() {\r\n    if (ngLoader.ngIsReady) {\r\n        frameworkLoaded();\r\n    } else if (ngLoader.ngError) {\r\n        frameworkLoadError(ngLoader.ngErrorMessage);\r\n    } else {\r\n        document.addEventListener(\"fwInitError\", (reason) => frameworkLoadError(reason as any));\r\n        document.addEventListener(\"fwReady\", frameworkLoaded);\r\n    }\r\n}\r\n\r\nexport function ngFrameworkLoaded(): Promise<void> {\r\n    return new Promise((res, rej) => {\r\n        if (ngFrameworkLoadedSuccessfully.value) {\r\n            res();\r\n        } else if (ngFrameworkError) {\r\n            rej();\r\n        } else {\r\n            frameworkLoadedPromiseResolves.push(res);\r\n        }\r\n    });\r\n}\r\n\r\n/**\r\n * @deprecated Use watch on useNgSession().isLoggedIn instead\r\n * @param f callback\r\n */\r\nexport function addSessionStatusUpdateCallback(f: (status: NgSessionLite) => void): void {\r\n    sessionStatusCallbacks.push(f);\r\n}\r\n\r\n/**\r\n * @param f callback\r\n */\r\nexport function addLoginAbortedCallback(f: () => void): void {\r\n    loginAbortedCallbacks.push(f);\r\n}\r\n\r\n/**\r\n * @param f callback to remove\r\n */\r\nexport function removeLoginAbortedCallback(f: () => void): void {\r\n    const index = loginAbortedCallbacks.indexOf(f);\r\n    if (index >= 0) {\r\n        loginAbortedCallbacks.splice(index, 1);\r\n    }\r\n}\r\n\r\nasync function frameworkLoaded() {\r\n    ng_fw.keepAlive();\r\n    ngFrameworkLoadedSuccessfully.value = true;\r\n    useNgHs();\r\n    ngHandleMmi();\r\n    useNgIdentityVerification();\r\n\r\n    const { refreshSession, refreshBalance, restoreFromWebView } = useNgSession();\r\n    refreshSession();\r\n    await refreshBalance();\r\n    await restoreFromWebView();\r\n    for (const resolve of frameworkLoadedPromiseResolves) {\r\n        resolve();\r\n    }\r\n}\r\n\r\n// eslint-disable-next-line @typescript-eslint/no-unused-vars\r\nfunction frameworkLoadError(errorMessage: string) {\r\n    ngFrameworkLoadedSuccessfully.value = false;\r\n    ngFrameworkError = true;\r\n    showAlert({\r\n        title: \"Tady něco nehraje…\",\r\n        subText:\r\n            \"Je nám líto, ale nepodařilo se správně načíst stránku. Pokud i poté potíže přetrvávají, jedná se o chybu na naší straně, na jejímž odstranění pracujeme.\",\r\n    });\r\n}\r\n\r\nexport function ngAction(actionName: keyof NgFw) {\r\n    if (ngFrameworkLoadedSuccessfully.value) {\r\n        (ng_fw[actionName] as any)();\r\n    }\r\n}\r\n","import { computed, ref, watch, watchEffect } from \"vue\";\r\nimport { useCookieStorage } from \"@sazka/utils/use-storage\";\r\nimport { usePageVisibility } from \"@sazka/utils/composables/use-page-visibility\";\r\nimport { DateTimeUtils } from \"@sazka/utils/date-time-utils\";\r\nimport { NgBalance, NgRestoreSession, NgSession } from \"./model/ng-fw\";\r\nimport { getNgTimeDuration } from \"./ng-integration\";\r\nimport { logLogin } from \"./log-login\";\r\nimport { showAlert } from \"@sazka/design-system/src/modal-alert/mount-alert\";\r\n\r\nconst storage = useCookieStorage();\r\n\r\nconst session = ref<NgSession | null>(null);\r\nconst balance = ref<NgBalance | null>(null);\r\nconst logonDate = ref<number | null>(null);\r\nconst showBalance = ref(storage.getItem(\"s-balance-visible\") !== \"false\");\r\nconst isSessionStateFromCacheReady = ref(false);\r\nconst forceSessionRestore = !!(\r\n    window?.player?.forceSessionRestore &&\r\n    window?.player?.id &&\r\n    window?.player?.sessionToken\r\n);\r\n\r\n/**\r\n * in hallers\r\n */\r\nconst balanceNumeric = computed(() => (balance.value?.Balance ? parseInt(balance.value.Balance) : null));\r\nconst isLoggedIn = computed(() => !!session.value?.SessionToken);\r\n\r\nconst { isDocumentVisible } = usePageVisibility();\r\nconst loginDurationMilliseconds = ref(0);\r\nconst refreshInterval = ref<number | null>(null);\r\nconst loginDurationFormatted = computed(() => DateTimeUtils.formatDuration(loginDurationMilliseconds.value));\r\n\r\nexport const useNgSession = () => ({\r\n    session,\r\n    balance,\r\n    balanceNumeric,\r\n    showBalance,\r\n    isLoggedIn,\r\n    logonDate,\r\n    loginDurationMilliseconds,\r\n    loginDurationFormatted,\r\n    isSessionStateFromCacheReady,\r\n    init,\r\n    restoreFromWebView,\r\n    refreshBalance,\r\n    refreshSession,\r\n    hasEnoughMoney,\r\n    getMissingMoney,\r\n    clearSession,\r\n    showRegistrationOrLogin,\r\n    restoreSessionFromApi,\r\n});\r\n\r\nfunction clearSession() {\r\n    session.value = null;\r\n}\r\n\r\nfunction init() {\r\n    if (forceSessionRestore) {\r\n        session.value = {\r\n            SessionToken: window.player.sessionToken,\r\n            PlayerID: window.player.id,\r\n            PlayerName: \"\",\r\n        };\r\n    } else {\r\n        initFromCookies();\r\n    }\r\n\r\n    setupWatchers();\r\n}\r\n\r\nasync function restoreFromWebView() {\r\n    if (!forceSessionRestore) return;\r\n\r\n    if (isLoggedIn.value) {\r\n        // logout previously logged in player and restore new session\r\n        if (session.value.PlayerID === window.player.id) {\r\n            isSessionStateFromCacheReady.value = true;\r\n            return;\r\n        }\r\n        await logout();\r\n    }\r\n\r\n    await restoreSessionPassedFromBackend();\r\n    isSessionStateFromCacheReady.value = true;\r\n}\r\n\r\nfunction restoreSessionFromApi(session: NgRestoreSession) {\r\n    return new Promise<void>((res) => {\r\n        watch(\r\n            isLoggedIn,\r\n            (newVal) => {\r\n                if (newVal) {\r\n                    res();\r\n                }\r\n            },\r\n            { immediate: true }\r\n        );\r\n        ng_fw.restoreSession({\r\n            isPostLoginPopupRequired: false,\r\n            ...session,\r\n        });\r\n        logLogin();\r\n    });\r\n}\r\n\r\nfunction restoreSessionPassedFromBackend() {\r\n    return new Promise<void>((res) => {\r\n        const { id, sessionToken } = window.player;\r\n        let notAbleToRestoreSessionTimeout = 0;\r\n\r\n        // watch for login\r\n        const stopWatch = watch(isLoggedIn, (isLoggedIn) => {\r\n            if (!isLoggedIn) return;\r\n\r\n            clearTimeout(notAbleToRestoreSessionTimeout);\r\n            stopWatch();\r\n            logLogin();\r\n            res();\r\n        });\r\n\r\n        ng_fw.restoreSession({\r\n            isPostLoginPopupRequired: false,\r\n            playerId: id,\r\n            sessionToken,\r\n        });\r\n\r\n        notAbleToRestoreSessionTimeout = window.setTimeout(() => {\r\n            showAlert({\r\n                title: \"Přihlášení se nezdařilo\",\r\n                subText: \"Nepodařilo se přenést přihlášení z mobilní aplikace\",\r\n            });\r\n            stopWatch();\r\n            res();\r\n        }, 10_000);\r\n    });\r\n}\r\n\r\nfunction initFromCookies() {\r\n    const sessionToken = storage.getItem(\"SessionToken\");\r\n    if (sessionToken) {\r\n        balance.value = {\r\n            DisplayBalance: storage.getItem(\"s-balance\"),\r\n        };\r\n        logonDate.value = parseInt(storage.getItem(\"s-logon-date\")) || Date.now();\r\n        session.value = {\r\n            SessionToken: sessionToken,\r\n            PlayerID: storage.getItem(\"PlayerID\"),\r\n            PlayerName: storage.getItem(\"s-player-name\"),\r\n        };\r\n    }\r\n    isSessionStateFromCacheReady.value = true;\r\n}\r\n\r\nasync function refreshBalance(force = false) {\r\n    if (force) await ng_fw.refreshBalance();\r\n    const newBalance = ng_fw.getDisplayBalance();\r\n    balance.value = newBalance;\r\n}\r\n\r\nfunction refreshSession() {\r\n    const newSession = ng_fw.getSessionDetails();\r\n    session.value = newSession;\r\n}\r\n\r\n/**\r\n * Checks wether user has money for bet\r\n * @param requiredAmount value in hallers\r\n */\r\nfunction hasEnoughMoney(requiredAmount: number) {\r\n    return (balanceNumeric.value || 0) >= requiredAmount;\r\n}\r\n\r\n/**\r\n * Gets missing money for bet\r\n * @param requiredAmount value in hallers\r\n */\r\nfunction getMissingMoney(requiredAmount: number) {\r\n    const sub = requiredAmount - balanceNumeric.value;\r\n    return sub < 0 ? 0 : sub;\r\n}\r\n\r\nfunction setCookie(name: string, value: string, options?: Cookies.CookieAttributes) {\r\n    if (value == null) {\r\n        storage.removeItem(name);\r\n    } else {\r\n        storage.setItem(name, value, \"essential\", options);\r\n    }\r\n}\r\n\r\nconst startLoginDurationTimer = () => {\r\n    loginDurationMilliseconds.value = logonDate.value ? Date.now() - logonDate.value : 0;\r\n    refreshInterval.value = window.setInterval(() => {\r\n        loginDurationMilliseconds.value += 1000;\r\n    }, 1000);\r\n};\r\n\r\nfunction setupWatchers() {\r\n    watchEffect(() => setCookie(\"s-balance-visible\", showBalance.value as any, { expires: 365 }));\r\n    watchEffect(() => setCookie(\"s-balance\", balance.value?.DisplayBalance));\r\n    watchEffect(() => setCookie(\"s-logon-date\", logonDate.value as any));\r\n    watchEffect(() => {\r\n        setCookie(\"PlayerID\", session.value?.PlayerID, { sameSite: \"strict\" });\r\n        setCookie(\"SessionToken\", session.value?.SessionToken, { sameSite: \"strict\" });\r\n        setCookie(\"s-player-name\", session.value?.PlayerName);\r\n        if (!session.value?.SessionToken) {\r\n            balance.value = null;\r\n            logonDate.value = null;\r\n        } else if (session.value?.LoginTimeStamp) {\r\n            logonDate.value = getNgTimeDuration(session.value.LoginTimeStamp, session.value.ServerTimeStamp);\r\n        }\r\n        setAuthenticatedBodyClass();\r\n    });\r\n\r\n    watch(\r\n        [logonDate, isDocumentVisible],\r\n        () => {\r\n            clearInterval(refreshInterval.value);\r\n            if (isLoggedIn.value) startLoginDurationTimer();\r\n        },\r\n        {\r\n            immediate: true,\r\n        }\r\n    );\r\n}\r\n\r\nfunction setAuthenticatedBodyClass() {\r\n    if (isLoggedIn.value) {\r\n        document.body.classList.add(\"authenticated\");\r\n        document.body.classList.remove(\"unauthenticated\");\r\n    } else {\r\n        document.body.classList.remove(\"authenticated\");\r\n        document.body.classList.add(\"unauthenticated\");\r\n    }\r\n}\r\n\r\nasync function showRegistrationOrLogin() {\r\n    ng_fw.showLogin();\r\n}\r\n\r\nfunction logout() {\r\n    return new Promise<void>((res) => {\r\n        if (!isLoggedIn.value) {\r\n            res();\r\n            return;\r\n        }\r\n        const stopWatch = watch(isLoggedIn, (newVal) => {\r\n            if (!newVal) {\r\n                stopWatch();\r\n                res();\r\n            }\r\n        });\r\n        ng_fw.logout();\r\n    });\r\n}\r\n","import { ResponsiveUtils } from \"../responsive-utils\";\r\n\r\n// Workaround to disable body scroll on IOS\r\n// Remember scroll position and add position: fixed to body, on close restore position\r\nlet scrollPositionMemory = 0;\r\n\r\nconst disablePageScroll = () => {\r\n    if (ResponsiveUtils.isIos()) {\r\n        scrollPositionMemory = window.scrollY;\r\n        document.body.style.setProperty(\"--page-scroll-distance\", scrollPositionMemory.toString());\r\n    }\r\n\r\n    document.body.classList.add(\"disable-page-scroll\");\r\n};\r\n\r\nconst enablePageScroll = () => {\r\n    document.body.classList.remove(\"disable-page-scroll\");\r\n\r\n    if (ResponsiveUtils.isIos()) {\r\n        document.body.style.removeProperty(\"--page-scroll-distance\");\r\n        window.scrollTo(0, scrollPositionMemory);\r\n        scrollPositionMemory = 0;\r\n    }\r\n};\r\n\r\nconst getPageScrollY = () => scrollPositionMemory || window.scrollY;\r\n\r\nexport function usePageScrollService() {\r\n    return {\r\n        disablePageScroll,\r\n        enablePageScroll,\r\n        getPageScrollY,\r\n    };\r\n}\r\n","import { ref, watch } from \"vue\";\r\nimport { usePageScrollService } from \"./use-page-scroll-service\";\r\n\r\nconst modalsCounter = ref(0);\r\n\r\nconst { disablePageScroll, enablePageScroll } = usePageScrollService();\r\n\r\nwatch(modalsCounter, (newModalsCounter, oldModalsCounter) => {\r\n    if (newModalsCounter < 0) {\r\n        modalsCounter.value = 0;\r\n        return;\r\n    }\r\n\r\n    if (!oldModalsCounter && newModalsCounter > 0) {\r\n        disablePageScroll();\r\n    } else if (oldModalsCounter > 0 && !newModalsCounter) {\r\n        enablePageScroll();\r\n    }\r\n});\r\n\r\nconst addToStackedModals = () => {\r\n    modalsCounter.value++;\r\n};\r\n\r\nconst removeFromStackedModals = () => {\r\n    if (modalsCounter.value <= 0) {\r\n        return;\r\n    }\r\n\r\n    modalsCounter.value--;\r\n};\r\n\r\nexport function useStackedModals() {\r\n    return {\r\n        addToStackedModals,\r\n        removeFromStackedModals,\r\n    };\r\n}\r\n","import { DurationUnitType, Duration as daysJsDuration } from \"dayjs/plugin/duration\";\r\n\r\nconst culture = \"cs-CZ\"; // can be from browser\r\n\r\nexport namespace DateTimeUtils {\r\n    export interface Duration {\r\n        /** Days */\r\n        d: number;\r\n        /** Hours */\r\n        h: number;\r\n        /** Minutes */\r\n        m: number;\r\n        /** Seconds */\r\n        s: number;\r\n    }\r\n\r\n    /**\r\n     * Formats a given date for a blog post.\r\n     *\r\n     * @param {Date} date - The date to be formatted.\r\n     * @return {string} The formatted date string.\r\n     */\r\n    export function formatBlogDate(date: Date) {\r\n        if (isToday(date)) {\r\n            return `Dnes | ${formatTime(date)}`;\r\n        } else if (isTomorrow(date)) {\r\n            return `Včera | ${formatTime(date)}`;\r\n        }\r\n        return `${formatWeekday(date)} | ${formatDate(date)}`;\r\n    }\r\n\r\n    /**\r\n     * Formats the given date to display the long name of the weekday.\r\n     *\r\n     * @param {Date} date - The date to be formatted.\r\n     * @return {string} The formatted weekday name.\r\n     */\r\n    export function formatWeekday(date: Date) {\r\n        return format(date, { weekday: \"long\" });\r\n    }\r\n\r\n    /**\r\n     * Formats the given date with the specified year format.\r\n     *\r\n     * @param {Date} date - The date to be formatted.\r\n     * @param {\"numeric\" | \"2-digit\"} year - The format of the year part.\r\n     * @return {string} The formatted date string.\r\n     */\r\n    export function formatDate(date: Date | number, year: \"numeric\" | \"2-digit\" = \"numeric\") {\r\n        return format(date, { year: year, month: \"numeric\", day: \"numeric\" });\r\n    }\r\n\r\n    /**\r\n     * Formats the given date with a short format including month and day.\r\n     *\r\n     * @param {Date} date - The date to be formatted.\r\n     * @return {string} The formatted date string.\r\n     */\r\n    export function formatDateShort(date: Date) {\r\n        return format(date, { month: \"numeric\", day: \"numeric\" });\r\n    }\r\n\r\n    /**\r\n     * Formats the given date without the year part.\r\n     *\r\n     * @param {Date} date - The date to be formatted.\r\n     * @return {string} The formatted date string without the year.\r\n     */\r\n    export function formatDateWithoutYear(date: Date) {\r\n        return format(date, { month: \"2-digit\", day: \"2-digit\" });\r\n    }\r\n\r\n    /**\r\n     * Formats the given date to display the time with hour and minute.\r\n     *\r\n     * @param {Date} date - The date to be formatted.\r\n     * @return {string} The formatted time string with hour and minute.\r\n     */\r\n    export function formatTime(date: Date) {\r\n        return format(date, { hour: \"numeric\", minute: \"2-digit\" });\r\n    }\r\n\r\n    /**\r\n     * Formats the given date to display the time in a short format.\r\n     *\r\n     * @param {Date} date - The date to be formatted.\r\n     * @return {string} The formatted time string.\r\n     */\r\n    export function formatTimeShort(date: Date) {\r\n        return format(date, { hour: \"numeric\" });\r\n    }\r\n\r\n    /**\r\n     * Formats the given date and time into a long format including year, month, day, hour, and minute.\r\n     *\r\n     * @param {Date} date - The date to be formatted.\r\n     * @return {string} The formatted date and time string.\r\n     */\r\n    export function formatDateTimeLong(date: Date) {\r\n        return format(date, { year: \"numeric\", month: \"numeric\", day: \"numeric\", hour: \"numeric\", minute: \"2-digit\" });\r\n    }\r\n\r\n    /**\r\n     * Formats the given date and time into a short format including month, day, hour, and minute.\r\n     *\r\n     * @param {Date} date - The date to be formatted.\r\n     * @return {string} The formatted date and time string.\r\n     */\r\n    export function formatDateTimeShort(date: Date) {\r\n        return format(date, { month: \"numeric\", day: \"numeric\", hour: \"numeric\", minute: \"2-digit\" });\r\n    }\r\n\r\n    /**\r\n     * Formats the given date with the weekday included in the output.\r\n     *\r\n     * @param {Date} date - The date to be formatted.\r\n     * @return {string} The formatted date string with the weekday.\r\n     */\r\n    export function formatDateWithWeekday(date: Date) {\r\n        return format(date, { month: \"numeric\", day: \"numeric\", weekday: \"long\" });\r\n    }\r\n\r\n    export function formatLongWeekdayEn(date: number | Date) {\r\n        return formatEn(date, { weekday: \"long\" });\r\n    }\r\n\r\n    /**\r\n     * Formats a given date with the corresponding day of the week.\r\n     *\r\n     * @param {number | Date} date - The date to be formatted. It can be either a number representing the number of milliseconds since January 1, 1970, 00:00:00 UTC, or a Date object.\r\n     * @return {string} The formatted date string with the corresponding day of the week. If the input date is falsy, an empty string is returned.\r\n     */\r\n    export function formatDateWithDay(date: number | Date) {\r\n        if (!date) {\r\n            return \"\";\r\n        }\r\n\r\n        const dateAsDate = new Date(date);\r\n        const currentDateString = formatDate(dateAsDate);\r\n\r\n        switch (dateAsDate.getDay()) {\r\n            case 0:\r\n                return \"v neděli, \" + currentDateString;\r\n            case 1:\r\n                return \"v pondělí, \" + currentDateString;\r\n            case 2:\r\n                return \"v úterý, \" + currentDateString;\r\n            case 3:\r\n                return \"ve středu, \" + currentDateString;\r\n            case 4:\r\n                return \"ve čtvrtek, \" + currentDateString;\r\n            case 5:\r\n                return \"v pátek, \" + currentDateString;\r\n            case 6:\r\n                return \"v sobotu, \" + currentDateString;\r\n            default:\r\n                return currentDateString;\r\n        }\r\n    }\r\n\r\n    /**\r\n     * Formats the given date with the year, month, day, and long weekday.\r\n     *\r\n     * @param {Date} date - The date to be formatted.\r\n     * @return {string} The formatted date string with year, month, day, and long weekday.\r\n     */\r\n    export function formatLongDateWithWeekday(date: Date) {\r\n        return format(date, { year: \"numeric\", month: \"numeric\", day: \"numeric\", weekday: \"long\" });\r\n    }\r\n\r\n    /**\r\n     * Formats the given date into a local ISO string including year, month, day, hour, minute, and second.\r\n     *\r\n     * @param {Date} date - The date to be formatted.\r\n     * @return {string} The formatted local ISO string.\r\n     */\r\n    export function getLocalIsoString(date: Date) {\r\n        const monthStr = addLeadingZero(date.getMonth() + 1);\r\n        const dayStr = addLeadingZero(date.getDate());\r\n        const hourStr = addLeadingZero(date.getHours());\r\n        const minStr = addLeadingZero(date.getMinutes());\r\n        const secStr = addLeadingZero(date.getSeconds());\r\n        return `${date.getFullYear()}-${monthStr}-${dayStr}T${hourStr}:${minStr}:${secStr}`;\r\n    }\r\n\r\n    /**\r\n     * Formats a countdown in seconds into a human-readable string. If the countdown is less than 1 day,\r\n     * it formats the countdown as a duration using the formatDuration function. Otherwise, it formats\r\n     * the countdown as the number of days followed by the appropriate pluralization of the word \"days\".\r\n     *\r\n     * @param {number} seconds - The countdown in seconds.\r\n     * @return {string} The formatted countdown as a string.\r\n     */\r\n    export function formatCountdown(seconds: number) {\r\n        let days = seconds;\r\n        let text = \"\";\r\n        if (seconds < 3_600 * 24) {\r\n            text = formatDuration(seconds * 1000);\r\n        } else {\r\n            days = Math.floor(seconds / 3600 / 24);\r\n\r\n            text = `${days} ${formatAfterXDaysLabel(days)}`;\r\n        }\r\n\r\n        return text;\r\n    }\r\n\r\n    /**\r\n     * Formats a countdown in seconds into a human-readable string with additional details for days and hours.\r\n     *\r\n     * @param {number} seconds - The countdown in seconds.\r\n     * @return {string} The formatted countdown as a string.\r\n     */\r\n    export function formatCountdownLong(seconds: number) {\r\n        const days = Math.floor(seconds / 3600 / 24);\r\n        const hours = Math.floor((seconds - days * 3600 * 24) / 3600);\r\n\r\n        let text = formatCountdown(seconds);\r\n\r\n        if (days > 0 && hours > 0) {\r\n            text += `, ${hours} ${formatAfterXHoursLabel(hours)}`;\r\n        }\r\n\r\n        return text;\r\n    }\r\n\r\n    /**\r\n     * Formats the given duration in milliseconds into a human-readable string representation.\r\n     *\r\n     * @param {number} millis - The duration in milliseconds.\r\n     * @return {string} The formatted duration string in the format \"HH:MM:SS\" or \"MM:SS\" if less than an hour.\r\n     */\r\n    export function formatDuration(millis: number, longFormat = false) {\r\n        const seconds = Math.floor(millis / 1000);\r\n        let str = \"\";\r\n        if (seconds < 10) {\r\n            str = \"0:0\" + seconds;\r\n        } else if (seconds < 60) {\r\n            str = \"0:\" + seconds;\r\n        } else if (seconds < 3600) {\r\n            str = getMinutes(seconds) + \":\";\r\n            const second = getSeconds(seconds);\r\n            str += second < 10 ? \"0\" + second : second;\r\n        } else {\r\n            str = getHours(seconds) + \":\";\r\n            const minutes = getMinutes(seconds);\r\n            const second = getSeconds(seconds);\r\n            str += minutes < 10 ? \"0\" + minutes : minutes;\r\n            str += \":\";\r\n            str += second < 10 ? \"0\" + second : second;\r\n        }\r\n        if (longFormat) {\r\n            const mask = \"00:00:00\";\r\n            str = mask.substring(0, mask.length - str.length) + str;\r\n        }\r\n        return str;\r\n    }\r\n\r\n    /**\r\n     * Formats the label for the number of days after a specific count.\r\n     *\r\n     * @param {number} dayCount - The number of days.\r\n     * @return {string} The formatted label for the number of days.\r\n     */\r\n    export function formatAfterXDaysLabel(dayCount: number) {\r\n        switch (dayCount) {\r\n            case 1:\r\n                return \"den\";\r\n            case 2:\r\n            case 3:\r\n            case 4:\r\n                return \"dny\";\r\n            default:\r\n                return \"dnů\";\r\n        }\r\n    }\r\n\r\n    /**\r\n     * Formats the label for the number of hours after a specific count.\r\n     *\r\n     * @param {number} hoursCount - The number of hours.\r\n     * @return {string} The formatted label for the number of hours.\r\n     */\r\n    export function formatAfterXHoursLabel(hoursCount: number) {\r\n        switch (hoursCount) {\r\n            case 1:\r\n                return \"hodinu\";\r\n            case 2:\r\n            case 3:\r\n            case 4:\r\n                return \"hodiny\";\r\n            default:\r\n                return \"hodin\";\r\n        }\r\n    }\r\n\r\n    /**\r\n     * Formats the label for the number of minutes after a specific count.\r\n     *\r\n     * @param {number} minutesCount - The number of minutes.\r\n     * @return {string} The formatted label for the number of minutes.\r\n     */\r\n    export function formatAfterXMinutesLabel(minutesCount: number) {\r\n        switch (minutesCount) {\r\n            case 1:\r\n                return \"minutu\";\r\n            case 2:\r\n            case 3:\r\n            case 4:\r\n                return \"minuty\";\r\n            default:\r\n                return \"minut\";\r\n        }\r\n    }\r\n\r\n    /**\r\n     *\r\n     * @param {number} dayOfWeek day of week starting with 0 as sunday - date.getDay()\r\n     * @param {boolean} useOnPrefixInsteadOfAt - If true prefix \"na\" is used otherwise prefix \"v/ve\" is used\r\n     */\r\n    export function atWeekdayLabel(dayOfWeek: number, useOnPrefixInsteadOfAt = false) {\r\n        if (dayOfWeek > 6 || dayOfWeek < 0) {\r\n            return \"\";\r\n        }\r\n\r\n        const atPrefix = dayOfWeek == 3 || dayOfWeek == 4 ? \"ve\" : \"v\";\r\n        const prefix = useOnPrefixInsteadOfAt ? \"na\" : atPrefix;\r\n        const dayOfWeekName = [\"neděli\", \"pondělí\", \"úterý\", \"středu\", \"čtvrtek\", \"pátek\", \"sobotu\"][dayOfWeek];\r\n\r\n        return `${prefix}&nbsp;${dayOfWeekName}`;\r\n    }\r\n\r\n    /**\r\n     * Concatenates the weekday label and formatted date.\r\n     *\r\n     * @param {Date} date - The date to be used for concatenation.\r\n     * @return {string} The concatenated string of weekday label and formatted date.\r\n     */\r\n    export function atWeekdayWithDate(date: Date) {\r\n        return `${atWeekdayLabel(date.getDay())}, ${formatDate(date)}`;\r\n    }\r\n\r\n    /**\r\n     * Determines the time frame based on the input time frame string.\r\n     *\r\n     * @param {string} timeFrame - The input time frame string.\r\n     * @return {string} The corresponding time frame label: \"ráno\", \"odpoledne\", or \"večer\".\r\n     */\r\n    export function getTimeFrames(timeFrame: string) {\r\n        if (parseInt(timeFrame) < 12) {\r\n            return \"ráno\";\r\n        } else if (parseInt(timeFrame) < 18) {\r\n            return \"odpoledne\";\r\n        } else {\r\n            return \"večer\";\r\n        }\r\n    }\r\n\r\n    /**\r\n     * Concatenates the weekday label, formatted date, and time frame label into a single string.\r\n     *\r\n     * @param {Date} date - The date to be used for concatenation.\r\n     * @return {string} The concatenated string of weekday label, formatted date, and time frame label.\r\n     */\r\n    export function atWeekdayWithDateAndTimeframe(date: Date) {\r\n        return `${atWeekdayLabel(date.getDay())}, ${formatDate(date)}, (${getTimeFrames(formatTimeShort(date))})`;\r\n    }\r\n\r\n    /**\r\n     * Calculates the duration in days, hours, minutes, and seconds based on the provided milliseconds.\r\n     *\r\n     * @param {number} millis - The duration in milliseconds.\r\n     * @return {Duration} The object containing the calculated duration in days, hours, minutes, and seconds.\r\n     */\r\n    export function getDuration(millis: number): Duration {\r\n        const seconds = Math.floor(millis / 1000);\r\n        const duration = {\r\n            d: 0,\r\n            h: 0,\r\n            m: getMinutes(seconds),\r\n            s: getSeconds(seconds),\r\n        };\r\n\r\n        let h = getHours(seconds);\r\n        const d = Math.floor(h / 24);\r\n        h = h % 24;\r\n        duration.d = d;\r\n        duration.h = h;\r\n        return duration;\r\n    }\r\n\r\n    /**\r\n     * Trims the time part of the given date to midnight (00:00:00.000).\r\n     *\r\n     * @param {Date} date - The date to trim the time from.\r\n     * @return {Date} The new Date object with the time set to midnight.\r\n     */\r\n    export function trimTime(date: Date) {\r\n        const copy = new Date(date.getTime());\r\n        copy.setMilliseconds(0);\r\n        copy.setSeconds(0);\r\n        copy.setMinutes(0);\r\n        copy.setHours(0);\r\n        return copy;\r\n    }\r\n\r\n    /**\r\n     * Formats the given count of time units into the 6th form based on the unit type.\r\n     *\r\n     * @param {number} unitsCount - The count of units to be formatted.\r\n     * @param {\"year\" | \"month\" | \"day\" | \"hour\" | \"minute\" | \"second\"} unitType - The type of unit to format.\r\n     * @return {string} The formatted count with the appropriate unit.\r\n     */\r\n    export function formatDateUnit6thForm(\r\n        unitsCount: number,\r\n        unitType: \"year\" | \"month\" | \"day\" | \"hour\" | \"minute\" | \"second\"\r\n    ) {\r\n        let formattedUnit = \"\";\r\n\r\n        switch (unitType) {\r\n            case \"year\":\r\n                formattedUnit = unitsCount === 1 ? \"rokem\" : \"lety\";\r\n                break;\r\n            case \"month\":\r\n                formattedUnit = unitsCount === 1 ? \"měsícem\" : \"měsíci\";\r\n                break;\r\n            case \"day\":\r\n                formattedUnit = unitsCount === 1 ? \"dnem\" : \"dny\";\r\n                break;\r\n            case \"hour\":\r\n                formattedUnit = unitsCount === 1 ? \"hodinou\" : \"hodinami\";\r\n                break;\r\n            case \"minute\":\r\n                formattedUnit = unitsCount === 1 ? \"minutou\" : \"minutami\";\r\n                break;\r\n            case \"second\":\r\n                formattedUnit = unitsCount === 1 ? \"sekundou\" : \"sekundami\";\r\n                break;\r\n        }\r\n\r\n        return `${unitsCount} ${formattedUnit}`;\r\n    }\r\n\r\n    /**\r\n     * Checks if the given date is today.\r\n     *\r\n     * @param {Date} date - The date to check.\r\n     * @return {boolean} True if the given date is today, false otherwise.\r\n     */\r\n    export function isToday(date: Date) {\r\n        return getDateOnly(new Date()).getTime() === getDateOnly(date).getTime();\r\n    }\r\n\r\n    /**\r\n     * Checks if the given date is tomorrow.\r\n     *\r\n     * @param {Date} date - The date to check if it is tomorrow.\r\n     * @return {boolean} True if the given date is tomorrow, false otherwise.\r\n     */\r\n    export function isTomorrow(date: Date) {\r\n        const tomorrow = getDateOnly(new Date());\r\n        tomorrow.setDate(tomorrow.getDate() - 1);\r\n        return tomorrow.getTime() === getDateOnly(date).getTime();\r\n    }\r\n\r\n    /**\r\n     * Returns the length of a unit in a countdown duration.\r\n     *\r\n     * @param {daysJsDuration} timeRemaining - The duration of the countdown.\r\n     * @param {DurationUnitType} unit - The unit for which to calculate the length.\r\n     * @param {boolean} getTotalHours - Whether to return the total number of hours or the remaining hours.\r\n     * @return {number} The length of the unit in the countdown duration.\r\n     */\r\n    export function getCountdownUnitLength(\r\n        timeRemaining: daysJsDuration,\r\n        unit: DurationUnitType,\r\n        getTotalHours: boolean\r\n    ) {\r\n        switch (unit) {\r\n            case \"days\":\r\n                return Math.floor(timeRemaining.asDays());\r\n            case \"hours\":\r\n                return getTotalHours ? Math.floor(timeRemaining.asHours()) : timeRemaining.get(unit);\r\n            case \"seconds\": {\r\n                const seconds = timeRemaining.get(unit);\r\n                return String(seconds).length === 1 ? `0${seconds}` : seconds;\r\n            }\r\n            default:\r\n                return timeRemaining.get(unit);\r\n        }\r\n    }\r\n\r\n    /**\r\n     * Returns the label for a countdown unit based on the unit type and value.\r\n     *\r\n     * @param {DurationUnitType} unit - The unit type of the countdown.\r\n     * @param {unknown} value - The value of the countdown unit.\r\n     * @return {string} The label corresponding to the countdown unit.\r\n     */\r\n    export function getCountdownUnitLabel(unit: DurationUnitType, value: unknown) {\r\n        const intValue = parseInt(value as string);\r\n        let text: string;\r\n\r\n        switch (unit) {\r\n            case \"days\":\r\n                if (intValue >= 5) text = \"dnů\";\r\n                else if (intValue >= 2) text = \"dny\";\r\n                else if (intValue === 1) text = \"den\";\r\n                else text = \"dnů\";\r\n                break;\r\n            case \"hours\":\r\n                if (intValue >= 5) text = \"hodin\";\r\n                else if (intValue >= 2) text = \"hodiny\";\r\n                else if (intValue === 1) text = \"hodinu\";\r\n                else text = \"hodin\";\r\n                break;\r\n            case \"minutes\":\r\n                if (intValue >= 5) text = \"minut\";\r\n                else if (intValue >= 2) text = \"minuty\";\r\n                else if (intValue === 1) text = \"minutu\";\r\n                else text = \"minut\";\r\n                break;\r\n            case \"seconds\":\r\n                if (intValue >= 5) text = \"vteřin\";\r\n                else if (intValue >= 2) text = \"vteřiny\";\r\n                else if (intValue === 1) text = \"vteřina\";\r\n                else text = \"vteřin\";\r\n        }\r\n        return text;\r\n    }\r\n\r\n    function format(date: Date | number, options: Intl.DateTimeFormatOptions) {\r\n        return new Intl.DateTimeFormat(culture, options).format(date);\r\n    }\r\n\r\n    function formatEn(date: number | Date, options: Intl.DateTimeFormatOptions) {\r\n        return new Intl.DateTimeFormat(\"en-UK\", options).format(date);\r\n    }\r\n\r\n    function getDateOnly(date: Date) {\r\n        return new Date(date.getFullYear(), date.getMonth(), date.getDate(), 0, 0, 0);\r\n    }\r\n\r\n    function getSeconds(num: number): number {\r\n        return num % 60;\r\n    }\r\n\r\n    function getMinutes(num: number): number {\r\n        return Math.floor(num / 60) % 60;\r\n    }\r\n\r\n    function getHours(num: number): number {\r\n        return Math.floor(num / 3600);\r\n    }\r\n\r\n    function addLeadingZero(num: number) {\r\n        return num <= 9 ? \"0\" + num : num.toString();\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","import { type Ref } from \"vue\";\r\n\r\nexport function pushConsentBarShow() {\r\n    dataLayer.push({\r\n        event: \"action.impress.promos\",\r\n        action: {\r\n            impress: {\r\n                promos: [\r\n                    {\r\n                        id: \"cookieDisclaimer\",\r\n                        name: \"cookieDisclaimer\",\r\n                        position: \"bottom\",\r\n                    },\r\n                ],\r\n            },\r\n        },\r\n    });\r\n}\r\n\r\nexport function pushEssentialsConsentBar() {\r\n    dataLayer.push({\r\n        event: \"action.show.promos\",\r\n        action: {\r\n            show: {\r\n                promos: [\r\n                    {\r\n                        id: \"cookieDisclaimer.essentials\",\r\n                        name: \"cookieDisclaimer\",\r\n                        position: \"bottom\",\r\n                    },\r\n                ],\r\n            },\r\n        },\r\n    });\r\n}\r\n\r\nexport function pushAllConsentBar() {\r\n    dataLayer.push({\r\n        event: \"action.show.promos\",\r\n        action: {\r\n            show: {\r\n                promos: [\r\n                    {\r\n                        id: \"cookieDisclaimer\",\r\n                        name: \"cookieDisclaimer\",\r\n                        position: \"bottom\",\r\n                    },\r\n                ],\r\n            },\r\n        },\r\n    });\r\n}\r\n\r\nexport function useWecomaDatalayer(cookieBarMode?: Ref, cookieBarModeExpiration?: Ref) {\r\n    const pushViewCookieBarInitial = () => {\r\n        dataLayer.push({\r\n            event: \"action.view.cmp\",\r\n            action: {\r\n                view: {\r\n                    cmp: {\r\n                        location: \"init\",\r\n                        stage: \"initial\",\r\n                    },\r\n                },\r\n            },\r\n        });\r\n    };\r\n\r\n    const pushViewCookieBarRecheckAll = () => {\r\n        dataLayer.push({\r\n            event: \"action.view.cmp\",\r\n            action: {\r\n                view: {\r\n                    cmp: {\r\n                        location: \"init\",\r\n                        stage: cookieBarMode.value,\r\n                        expirationDays: cookieBarModeExpiration.value,\r\n                    },\r\n                },\r\n            },\r\n        });\r\n    };\r\n\r\n    const pushViewCookieBarRecheckSome = () => {\r\n        dataLayer.push({\r\n            event: \"action.view.cmp\",\r\n            action: {\r\n                view: {\r\n                    cmp: [\r\n                        {\r\n                            location: \"init\",\r\n                            stage: cookieBarMode.value,\r\n                            expirationDays: cookieBarModeExpiration.value,\r\n                        },\r\n                    ],\r\n                },\r\n            },\r\n        });\r\n    };\r\n\r\n    const pushAllPurposesConsentClick = (purposeCodes: string) => {\r\n        dataLayer.push({\r\n            event: \"action.grantConsent.cmp\",\r\n            action: {\r\n                grantConsent: {\r\n                    cmp: {\r\n                        location: \"init\",\r\n                        stage: cookieBarMode.value,\r\n                        expirationDays: cookieBarModeExpiration.value,\r\n                        purposeCodes,\r\n                    },\r\n                },\r\n            },\r\n        });\r\n    };\r\n\r\n    const pushRedirectToPreferenceCenter = (variant: string) => {\r\n        dataLayer.push({\r\n            event: \"action.openPreferences.cmp\",\r\n            action: {\r\n                openPreferences: {\r\n                    cmp: {\r\n                        location: \"init\",\r\n                        stage: cookieBarMode.value,\r\n                        expirationDays: cookieBarModeExpiration.value,\r\n                        variant,\r\n                    },\r\n                },\r\n            },\r\n        });\r\n    };\r\n\r\n    const pushReditectToPrivacyPolicy = () => {\r\n        dataLayer.push({\r\n            event: \"action.openPrivacyPolicy.cmp\",\r\n            action: {\r\n                openPrivacyPolicy: {\r\n                    cmp: {\r\n                        location: \"init\",\r\n                        stage: cookieBarMode.value,\r\n                        expirationDays: cookieBarModeExpiration.value,\r\n                    },\r\n                },\r\n            },\r\n        });\r\n    };\r\n\r\n    const pushThirdParty = () => {\r\n        dataLayer.push({\r\n            event: \"action.view.cmp\",\r\n            action: {\r\n                view: {\r\n                    cmp: {\r\n                        location: \"thirdpartycontent\",\r\n                    },\r\n                },\r\n            },\r\n        });\r\n    };\r\n\r\n    const pushThirdPartyConsent = () => {\r\n        dataLayer.push({\r\n            event: \"action.grantConsent.cmp\",\r\n            action: {\r\n                grantConsent: {\r\n                    cmp: {\r\n                        location: \"thirdpartycontent\",\r\n                        purposeCodes: \"thirdpartycontent\",\r\n                    },\r\n                },\r\n            },\r\n        });\r\n    };\r\n\r\n    const pushOverlayRedirectToPreferenceCenter = (variant: \"text\" | \"button\") => {\r\n        dataLayer.push({\r\n            event: \"action.openPreferences.cmp\",\r\n            action: {\r\n                openPreferences: {\r\n                    cmp: {\r\n                        location: \"thirdpartycontent\",\r\n                        variant,\r\n                    },\r\n                },\r\n            },\r\n        });\r\n    };\r\n\r\n    const pushOnlyNecessaryPurposesConsent = (purposeCodes: string) => {\r\n        dataLayer.push({\r\n            event: \"action.revokeConsent.cmp\",\r\n            action: {\r\n                revokeConsent: {\r\n                    cmp: {\r\n                        location: \"init\",\r\n                        stage: cookieBarMode.value,\r\n                        expirationDays: cookieBarModeExpiration.value,\r\n                        purposeCodes,\r\n                    },\r\n                },\r\n            },\r\n        });\r\n    };\r\n\r\n    function pushLinksClickConsentBar() {\r\n        dataLayer.push({\r\n            event: \"action.show.promos\",\r\n            action: {\r\n                show: {\r\n                    promos: [\r\n                        {\r\n                            id: \"cookieDisclaimer.othersActions\",\r\n                            name: \"cookieDisclaimer\",\r\n                            position: \"bottom\",\r\n                        },\r\n                    ],\r\n                },\r\n            },\r\n        });\r\n    }\r\n\r\n    return {\r\n        pushViewCookieBarInitial,\r\n        pushViewCookieBarRecheckAll,\r\n        pushViewCookieBarRecheckSome,\r\n        pushAllPurposesConsentClick,\r\n        pushRedirectToPreferenceCenter,\r\n        pushReditectToPrivacyPolicy,\r\n        pushThirdParty,\r\n        pushThirdPartyConsent,\r\n        pushOverlayRedirectToPreferenceCenter,\r\n        pushOnlyNecessaryPurposesConsent,\r\n        pushLinksClickConsentBar,\r\n    };\r\n}\r\n","import { computed, reactive, ref, watch } from \"vue\";\r\nimport { eventBus, GlobalEvents } from \"../global-events\";\r\nimport { useCookieStorage } from \"../use-storage\";\r\nimport { useWecomaDatalayer } from \"./use-wecoma-datalayer\";\r\n// eslint-disable-next-line no-restricted-imports\r\nimport Cookies from \"js-cookie\";\r\nimport { WecomaConstants } from \"./wecoma-constants\";\r\nimport { CookieBarMode, CookieType, WecomaCookie } from \"./wecoma-models\";\r\n\r\nconst cookieBarMode = ref<CookieBarMode>(\"initial\");\r\nconst cookieBarModeExpiration = computed(() => {\r\n    switch (cookieBarMode.value) {\r\n        case \"allRecheckExpired\":\r\n            return WecomaConstants.ALL_RECHECK_EXPIRATION;\r\n        case \"someRecheckExpired\":\r\n            return WecomaConstants.SOME_RECHECK_EXPIRATION;\r\n        case \"initial\":\r\n        default:\r\n            return null;\r\n    }\r\n});\r\n\r\nconst consentsCached: Record<CookieType, boolean> = reactive(\r\n    // iife generates initial value\r\n    (() => {\r\n        const data = Cookies.get(WecomaConstants.CONSENT_CACHE_COOKIE_NAME);\r\n\r\n        return {\r\n            essential: true,\r\n            analytics: data?.[0] === \"1\",\r\n            marketing: data?.[1] === \"1\",\r\n            thirdpartycontent: data?.[2] === \"1\",\r\n        };\r\n    })()\r\n);\r\n\r\nconst getWecomaCookieValue = (value: boolean) => (value ? \"1\" : \"0\");\r\n\r\nwatch(\r\n    consentsCached,\r\n    (newVal) => {\r\n        if (newVal) {\r\n            useCookieStorage().setItem(\r\n                WecomaConstants.CONSENT_CACHE_COOKIE_NAME,\r\n                getWecomaCookieValue(newVal.analytics) +\r\n                    getWecomaCookieValue(newVal.marketing) +\r\n                    getWecomaCookieValue(newVal.thirdpartycontent),\r\n                \"essential\",\r\n                {\r\n                    expires: WecomaConstants.COOKIE_EXPIRATION,\r\n                    sameSite: \"strict\",\r\n                }\r\n            );\r\n        }\r\n    },\r\n    { deep: true }\r\n);\r\n\r\nconst wecomaLoaded = new Promise((resolve) => {\r\n    Wecoma.onready.push(resolve);\r\n}).then(async () => {\r\n    const [analyticsConsented, marketingConsented, thirdPartyConsented] = await Promise.all([\r\n        _gdpr.wecoma.isConsented(\"analytics\"),\r\n        _gdpr.wecoma.isConsented(\"marketing\"),\r\n        _gdpr.wecoma.isConsented(\"thirdpartycontent\"),\r\n    ]);\r\n\r\n    consentsCached.analytics = analyticsConsented;\r\n    consentsCached.marketing = marketingConsented;\r\n    consentsCached.thirdpartycontent = thirdPartyConsented;\r\n});\r\n\r\nexport function useWecomaIntegration() {\r\n    let currentCookieValue: WecomaCookie | null = null;\r\n\r\n    const {\r\n        pushViewCookieBarInitial,\r\n        pushViewCookieBarRecheckAll,\r\n        pushViewCookieBarRecheckSome,\r\n        pushAllPurposesConsentClick,\r\n        pushOnlyNecessaryPurposesConsent,\r\n        pushRedirectToPreferenceCenter,\r\n        pushReditectToPrivacyPolicy,\r\n        pushThirdPartyConsent,\r\n        pushLinksClickConsentBar,\r\n    } = useWecomaDatalayer(cookieBarMode, cookieBarModeExpiration);\r\n\r\n    const getNowTimestampInSeconds = () => Math.floor(Date.now() / 1000);\r\n\r\n    const createWecomaCookieObject: () => WecomaCookie = () => {\r\n        return {\r\n            createdAt: getNowTimestampInSeconds(),\r\n        };\r\n    };\r\n\r\n    const setWecomaCookie = () => {\r\n        useCookieStorage().setItem(\r\n            WecomaConstants.COOKIE_NAME,\r\n            window.btoa(JSON.stringify(createWecomaCookieObject())),\r\n            \"essential\",\r\n            {\r\n                domain: \".sazka.cz\",\r\n                expires: WecomaConstants.COOKIE_EXPIRATION,\r\n            }\r\n        );\r\n    };\r\n\r\n    const getWecomaCookieCreateTimestamp = () => {\r\n        if (!currentCookieValue) {\r\n            const val = useCookieStorage().getItem(WecomaConstants.COOKIE_NAME);\r\n            if (val) {\r\n                currentCookieValue = JSON.parse(window.atob(val));\r\n            }\r\n        }\r\n\r\n        return currentCookieValue?.createdAt;\r\n    };\r\n\r\n    const wecomaCookieExists = () => {\r\n        return !!getWecomaCookieCreateTimestamp();\r\n    };\r\n\r\n    const allPurposesConsented = async () => {\r\n        await wecomaLoaded;\r\n        return await _gdpr.wecoma.allPurposesConsented(_gdpr.wecoma.clientAuthKey, [\"consentbar\"]);\r\n    };\r\n\r\n    const allPurposesRevoked = async () => {\r\n        await wecomaLoaded;\r\n        return await _gdpr.wecoma.allPurposesRevoked(_gdpr.wecoma.clientAuthKey, [\"consentbar\"]);\r\n    };\r\n\r\n    const daysToSeconds = (d: number) => d * 24 * 60 * 60;\r\n\r\n    const recheckAllExpired = () => {\r\n        return (\r\n            getWecomaCookieCreateTimestamp() <\r\n            getNowTimestampInSeconds() - daysToSeconds(WecomaConstants.ALL_RECHECK_EXPIRATION)\r\n        );\r\n    };\r\n\r\n    const recheckSomeExpired = () => {\r\n        return (\r\n            getWecomaCookieCreateTimestamp() <\r\n            getNowTimestampInSeconds() - daysToSeconds(WecomaConstants.SOME_RECHECK_EXPIRATION)\r\n        );\r\n    };\r\n\r\n    const shouldCookieBarOpen = async () => {\r\n        if (environment.isInAppView) return false;\r\n\r\n        if (!wecomaCookieExists()) {\r\n            pushViewCookieBarInitial();\r\n            return true;\r\n        }\r\n\r\n        if (await allPurposesConsented()) {\r\n            return false;\r\n        }\r\n\r\n        if (await allPurposesRevoked()) {\r\n            if (recheckAllExpired()) {\r\n                cookieBarMode.value = \"allRecheckExpired\";\r\n                pushViewCookieBarRecheckAll();\r\n                return true;\r\n            }\r\n        } else {\r\n            if (recheckSomeExpired()) {\r\n                cookieBarMode.value = \"someRecheckExpired\";\r\n                pushViewCookieBarRecheckSome();\r\n                return true;\r\n            }\r\n        }\r\n\r\n        return false;\r\n    };\r\n\r\n    const consentToAllPurposes = async () => {\r\n        await wecomaLoaded;\r\n        const purposes = await _gdpr.wecoma.retrievePurposes({\r\n            contexts: [\"consentbar\"],\r\n            authKeyTypes: [WecomaConstants.WECOMA_AUTHKEY],\r\n        });\r\n\r\n        for (const purpose of purposes) {\r\n            purpose.consent();\r\n        }\r\n\r\n        pushAllPurposesConsentClick(purposes?.map((p) => p.code)?.join(\",\"));\r\n\r\n        setWecomaCookie();\r\n\r\n        consentsCached.analytics = true;\r\n        consentsCached.marketing = true;\r\n        consentsCached.thirdpartycontent = true;\r\n\r\n        eventBus.emit(GlobalEvents.ConsentsChanged);\r\n    };\r\n\r\n    const redirectToPreferenceCenter = (variant: \"text\" | \"button\") => {\r\n        pushLinksClickConsentBar();\r\n        pushRedirectToPreferenceCenter(variant);\r\n    };\r\n\r\n    const redirectToPrivacyPolicy = () => {\r\n        pushLinksClickConsentBar();\r\n        pushReditectToPrivacyPolicy();\r\n    };\r\n\r\n    const cookieTypeConsentedCached = (cookieType: CookieType): boolean => consentsCached[cookieType];\r\n\r\n    const analyticsConsented = async (): Promise<boolean> => {\r\n        await wecomaLoaded;\r\n        return await _gdpr.wecoma.isConsented(\"analytics\");\r\n    };\r\n\r\n    const marketingConsented = async (): Promise<boolean> => {\r\n        await wecomaLoaded;\r\n        return await _gdpr.wecoma.isConsented(\"marketing\");\r\n    };\r\n\r\n    const thirdPartyConsented = async (): Promise<boolean> => {\r\n        await wecomaLoaded;\r\n        return await _gdpr.wecoma.isConsented(\"thirdpartycontent\");\r\n    };\r\n\r\n    const consentToThirdParty = async () => {\r\n        const purpose = await _gdpr.wecoma.retrievePurpose(\"thirdpartycontent\");\r\n        await purpose.consent();\r\n        pushThirdPartyConsent();\r\n        consentsCached.thirdpartycontent = true;\r\n    };\r\n\r\n    const consentToOnlyNecessaryPurposes = async () => {\r\n        await wecomaLoaded;\r\n        const purposes = await _gdpr.wecoma.retrievePurposes({\r\n            contexts: [\"consentbar\"],\r\n            authKeyTypes: [WecomaConstants.WECOMA_AUTHKEY],\r\n        });\r\n\r\n        for (const purpose of purposes) {\r\n            purpose.revoke();\r\n        }\r\n\r\n        pushOnlyNecessaryPurposesConsent(purposes?.map((p) => p.code)?.join(\",\"));\r\n\r\n        setWecomaCookie();\r\n        consentsCached.analytics = false;\r\n        consentsCached.marketing = false;\r\n        consentsCached.thirdpartycontent = false;\r\n    };\r\n\r\n    return {\r\n        shouldCookieBarOpen,\r\n        consentToAllPurposes,\r\n        redirectToPreferenceCenter,\r\n        redirectToPrivacyPolicy,\r\n        cookieTypeConsentedCached,\r\n        analyticsConsented,\r\n        marketingConsented,\r\n        thirdPartyConsented,\r\n        consentToThirdParty,\r\n        consentToOnlyNecessaryPurposes,\r\n    };\r\n}\r\n","import { UrlUtils } from \"../url\";\r\n\r\nconst redirectQueryString = UrlUtils.getQueryString(\"redirectWecoma\");\r\nUrlUtils.clearUrlParams([\"redirectWecoma\"]);\r\n\r\nexport const wecomaRedirectActive = redirectQueryString === \"\" || !!redirectQueryString;\r\n","export namespace WecomaConstants {\r\n    export const COOKIE_EXPIRATION = 365;\r\n    export const ALL_RECHECK_EXPIRATION = 30;\r\n    export const SOME_RECHECK_EXPIRATION = 60;\r\n\r\n    export const COOKIE_NAME = \"cbada\";\r\n    export const CONSENT_CACHE_COOKIE_NAME = \"consents\";\r\n    export const WECOMA_AUTHKEY = \"browser\";\r\n\r\n    const WECOMA_CODE_DEH = \"da\";\r\n    // Kasa wecoma portal is in reality DEH wecoma portal\r\n    const WECOMA_CODE_KASA = \"sa\";\r\n    export const WECOMA_CODE = environment.isKasa ? WECOMA_CODE_KASA : WECOMA_CODE_DEH;\r\n}\r\n","import mitt from \"mitt\";\r\n\r\nexport enum GlobalEvents {\r\n    SyndicateDetailClosed = \"syndicate-detail-closed\",\r\n    SyndicateUpdated = \"syndicate-updated\",\r\n    LobbyShowFavorites = \"lobby-show-favorites\",\r\n    JackpotsCarouselResize = \"jackpots-carousel-resize\",\r\n    LaunchCasinoFloating = \"launch-casino-floating\",\r\n    CasinoGameLayerUpdate = \"casino-game-layer-update\",\r\n    VideoPopupOpened = \"video-popup-opened\",\r\n    ConsentsChanged = \"consents-changed\",\r\n    LoyaltyBet = \"loyalty-bet\",\r\n}\r\n\r\nexport const eventBus = mitt();\r\n","const baseUrl = trimEndSlash(appSettings[\"Integrations:SAG:BaseAddress\"]);\r\nconst environment = trimEndSlash(appSettings[\"Integrations:SAG:Environment\"]);\r\nconst sagSubscriptionKey = appSettings[\"Integrations:SAG:SubscriptionKey\"];\r\n\r\nfunction trimEndSlash(s: string) {\r\n    return s?.replace(/\\/*$/, \"\");\r\n}\r\n\r\nfunction getSagApiUrl(apiName: string, version?: string) {\r\n    return `${baseUrl}/${apiName}/${environment ? environment + \"/\" : \"\"}${version ? version + \"/\" : \"\"}`;\r\n}\r\n\r\nexport function useSagOptions() {\r\n    return {\r\n        getSagApiUrl,\r\n        sagSubscriptionKey,\r\n    };\r\n}\r\n","import { ApplicationInsights, ITelemetryItem } from \"@microsoft/applicationinsights-web\";\r\nimport { NgSession } from \"@sazka/ng/model/ng-fw\";\r\nimport { Ref } from \"vue\";\r\n\r\nconst toTrack = [\r\n    \"trackEvent\",\r\n    \"trackPageView\",\r\n    \"trackPageViewPerformance\",\r\n    \"trackException\",\r\n    \"trackTrace\",\r\n    \"trackMetric\",\r\n    \"trackDependencyData\",\r\n    \"throwInternal\", // called when a message is logged internally\r\n    \"logInternalMessage\", // called when a message is logged internally\r\n    \"triggerSend\", // called when data is queued to be sent to the server\r\n    \"_sender\", // called when data is sent to the server\r\n];\r\n\r\nlet appInsights: ApplicationInsights = null;\r\n\r\nconst isDev = environment.env === \"Development\";\r\n\r\nlet ngSessionRef: Ref<NgSession> = null;\r\n\r\nasync function init() {\r\n    const extensions = [];\r\n    const extensionConfig = {};\r\n\r\n    if (!environment.isKasa) {\r\n        const { useNgSession } = await import(\"@sazka/ng/ng-session\");\r\n        ngSessionRef = useNgSession().session;\r\n    }\r\n\r\n    if (isDev) {\r\n        // eslint-disable-next-line @typescript-eslint/naming-convention\r\n        const { DebugPlugin } = await import(\"@microsoft/applicationinsights-debugplugin-js\");\r\n        const debugPluginInstance = new DebugPlugin();\r\n        extensions.push(debugPluginInstance);\r\n        extensionConfig[DebugPlugin.identifier] = {\r\n            trackers: toTrack,\r\n        };\r\n    }\r\n\r\n    appInsights = new ApplicationInsights({\r\n        config: {\r\n            connectionString: appSettings[\"APPLICATIONINSIGHTS_CONNECTION_STRING\"],\r\n            disableAjaxTracking: true,\r\n            disableFetchTracking: true,\r\n            disableDataLossAnalysis: false,\r\n            enableUnhandledPromiseRejectionTracking: true,\r\n            extensions: extensions,\r\n            extensionConfig: extensionConfig,\r\n        },\r\n    });\r\n\r\n    const telemetryInitializer = (envelope: ITelemetryItem) => {\r\n        envelope.data = envelope.data || {};\r\n        envelope.data.playerId = ngSessionRef?.value?.PlayerID ?? null;\r\n        envelope.data.location = window.location.href;\r\n        envelope.data.userAgent = window.navigator.userAgent;\r\n        envelope.data.mobileView = environment.isInAppView;\r\n    };\r\n\r\n    appInsights.addTelemetryInitializer(telemetryInitializer);\r\n    appInsights.loadAppInsights();\r\n}\r\n\r\nfunction trackEvent(name: string, properties: Record<string, any>) {\r\n    appInsights?.trackEvent(\r\n        {\r\n            name: name,\r\n        },\r\n        {\r\n            properties,\r\n        }\r\n    );\r\n}\r\n\r\n// Used to track exceptions with custom properties in addition to automatically tracked exceptions (other than base data).\r\nfunction trackException(exception: Error, properties: Record<string, any> = {}) {\r\n    appInsights?.trackException({ exception, properties });\r\n}\r\n\r\nfunction trackMetric(name: string, value: number) {\r\n    appInsights?.trackMetric({ name: name, average: value });\r\n}\r\n\r\nexport function useAppInsights() {\r\n    return {\r\n        init,\r\n        trackEvent,\r\n        trackMetric,\r\n        trackException,\r\n    };\r\n}\r\n","import { useAppInsights } from \"./app-insights\";\r\n\r\n/** You can add your namespace */\r\ntype KasaLoggerSegmentNames = \"kasa-apis\" | \"kasa-wheel-page\";\r\ntype WebLoggerSegmentNames = \"deh-general\" | \"bonusomat\" | \"golden-wheel\";\r\ntype AppLogggerSegmentNames = \"all\" | WebLoggerSegmentNames | KasaLoggerSegmentNames;\r\n\r\nconst { trackEvent, trackException, trackMetric } = useAppInsights();\r\n\r\n/**\r\n *   You can combinate more segments separated by semicolon in appsettings.\r\n *   etc. Sazka:Features:FeAppLoggerSegmentsEnabled: \"bonusomat;golden-wheel\"\r\n * */\r\nconst enabledSegments: AppLogggerSegmentNames[] =\r\n    (appSettings[\"Features:FeAppLoggerSegmentsEnabled\"]?.split(\";\") as AppLogggerSegmentNames[]) ?? [];\r\n\r\nconst isEnabledAllTrafic = enabledSegments.some((enableSegmentName) => enableSegmentName == \"all\");\r\n\r\n/**\r\n * Log event to console and app insights\r\n * @param codename Short event name string (code name of event)\r\n * @param properties Custom data to log\r\n */\r\nexport const logEvent = (codename: string, properties: Record<string, any> = {}) => {\r\n    console.log(codename, properties);\r\n    trackEvent(codename, properties);\r\n};\r\n\r\n/**\r\n * Log event to console and app insights if segmets debug mode is enabled\r\n * @param segmentName The name of the segment that must be enabled to send the event\r\n * @param codename Short event name string (code name of event)\r\n * @param properties Custom data to log\r\n */\r\nexport const logDebugEvent = (\r\n    segmentName: AppLogggerSegmentNames,\r\n    codename: string,\r\n    properties: Record<string, any> = {}\r\n) => {\r\n    if (isEnabledAllTrafic || enabledSegments.some((enableSegmentName) => enableSegmentName == segmentName)) {\r\n        logEvent(codename, { segmentName: segmentName, ...properties });\r\n    }\r\n};\r\n\r\n/**\r\n * Log exception to console and app insights. *\r\n * @param codename  Short exception name string (code name of event)\r\n * @param exception Object from the exception (try..catch value)\r\n * @param properties Custom data to log\r\n */\r\nexport const logException = (codename: string, exception: Error | unknown, properties: Record<string, any> = {}) => {\r\n    console.error(exception, properties);\r\n    trackException(exception as Error, { codename: codename, ...properties });\r\n};\r\n\r\n/**\r\n * Log custom exception to console and app insights.\r\n * @param codename  Short exception name string (code name of event)\r\n * @param message Short message of error\r\n * @param properties Custom data to log\r\n */\r\nexport const logCustomException = (codename: string, message: string, properties: Record<string, any> = {}) => {\r\n    const error = new Error(message);\r\n    logException(codename, error, properties);\r\n};\r\n\r\n/**\r\n * Log some metric to app insights\r\n */\r\nexport const logMetric = trackMetric;\r\n","export namespace ResponsiveUtils {\r\n    export const breakpoints = {\r\n        xs: 0,\r\n        xs1: 366,\r\n        xs2: 480,\r\n        sm: 768,\r\n        sm2: 960,\r\n        md: 1280,\r\n        // Laptop\r\n        lg: 1680,\r\n        // Desktop\r\n        xl: 2200,\r\n    } as const;\r\n\r\n    export function getDataLayerResolution() {\r\n        let resolution = \"mobile\";\r\n\r\n        if (breakpointUp(\"lg\")) {\r\n            resolution = \"big desktop\";\r\n        } else if (breakpointUp(\"md\")) {\r\n            resolution = \"small desktop\";\r\n        } else if (breakpointUp(\"sm\")) {\r\n            resolution = \"tablet\";\r\n        }\r\n\r\n        return resolution;\r\n    }\r\n\r\n    export function logDataLayer() {\r\n        dataLayer.push({ page: { responseDesignCategory: getDataLayerResolution() } });\r\n    }\r\n\r\n    export function breakpointUp(breakpointName: keyof typeof breakpoints) {\r\n        return window.matchMedia(`(min-width: ${breakpoints[breakpointName]}px)`).matches;\r\n    }\r\n\r\n    export function breakpointDown(breakpointName: keyof typeof breakpoints) {\r\n        return window.matchMedia(`(max-width: ${breakpoints[breakpointName] - 1}px)`).matches;\r\n    }\r\n\r\n    export function isMobile(): boolean {\r\n        return ngLoader.isMobile();\r\n    }\r\n\r\n    export function isIpad(): boolean {\r\n        return /iPad/.test(navigator.userAgent);\r\n    }\r\n\r\n    export function isInternetExplorer() {\r\n        return document.body.classList.contains(\"internet-explorer\");\r\n    }\r\n\r\n    export function isSafari() {\r\n        return document.body.classList.contains(\"safari\");\r\n    }\r\n\r\n    export function isIos() {\r\n        return /iPhone|iPad/.test(navigator.userAgent) || isIpad();\r\n    }\r\n\r\n    export function isAndroid() {\r\n        return /android|Android/.test(navigator.userAgent);\r\n    }\r\n\r\n    export function isAndroidFirefox() {\r\n        return document.body.classList.contains(\"firefox-mobile\") && isAndroid();\r\n    }\r\n\r\n    export function isTouchDevice() {\r\n        return \"ontouchstart\" in window || navigator.maxTouchPoints;\r\n    }\r\n\r\n    export function isOnlyTouchDevice() {\r\n        return isTouchDevice() && matchMedia(\"(hover: none)\").matches;\r\n    }\r\n\r\n    export function isMovSupported() {\r\n        return isIos() || isSafari();\r\n    }\r\n}\r\n","export namespace UrlUtils {\r\n    /**\r\n     * Retrieves the value of a query parameter from the specified URL.\r\n     *\r\n     * @param name - The name of the query parameter to retrieve.\r\n     * @param {string} [url=null] - The URL to retrieve the query parameter from. If not provided, the current URL is used.\r\n     * @param {boolean} [caseSensitive=true] - Indicates whether the search should be case-sensitive.\r\n     * @param {boolean} [replacePlusWithSpace=true] - Indicates whether '+' characters should be replaced with spaces.\r\n     * @return {string | null} - The value of the query parameter, or null if it is not found.\r\n     */\r\n    export const getQueryString = (\r\n        name: string,\r\n        url: string = null,\r\n        caseSensitive = true,\r\n        replacePlusWithSpace = true\r\n    ): string => {\r\n        if (!url) url = window.location.href;\r\n        name = name.replace(/[[\\]]/g, \"\\\\$&\");\r\n        const expression = \"[?&]\" + name + \"(=([^&#]*)|&|#|$)\";\r\n        const regex = caseSensitive ? new RegExp(expression) : new RegExp(expression, \"i\");\r\n        const results = regex.exec(url);\r\n        if (!results) return null;\r\n        if (!results[2]) return \"\";\r\n        const replacedResult = replacePlusWithSpace ? results[2].replace(/\\+/g, \" \") : results[2];\r\n        return decodeURIComponent(replacedResult);\r\n    };\r\n\r\n    /**\r\n     * Clears the specified URL parameters from the current URL and updates the browser history.\r\n     *\r\n     * @param {string[]} urlParams - An optional array of URL parameters to clear. If not provided, all URL parameters will be cleared.\r\n     * @return {void}\r\n     */\r\n    export const clearUrlParams = (urlParams?: string[]): void => {\r\n        let newUrl = window.location.href;\r\n\r\n        // If no parameters are provided, clear all parameters\r\n        if (urlParams === undefined) {\r\n            const url = new URL(window.location.href);\r\n            url.search = \"\";\r\n            url.hash = \"\";\r\n            newUrl = url.toString();\r\n        } else if (urlParams.length > 0) {\r\n            // Clear the specified parameters\r\n            for (const element of urlParams) {\r\n                const parameter = element;\r\n                newUrl = newUrl\r\n                    .replace(new RegExp(\"[?&]\" + parameter + \"=[^&#]*(#.*)?$\"), \"$1\")\r\n                    .replace(new RegExp(\"([?&])\" + parameter + \"=[^&]*&\"), \"$1\");\r\n            }\r\n        } else {\r\n            // No parameters to clear\r\n            return;\r\n        }\r\n\r\n        if (window.history) {\r\n            window.history.replaceState(null, document.title, newUrl);\r\n        }\r\n    };\r\n\r\n    /**\r\n     * Calls clearUrlParams function with the provided urlParam.\r\n     *\r\n     * @param {string} urlParam - The URL parameter to clear.\r\n     * @return {void}\r\n     */\r\n    export const clearUrlParam = (urlParam: string) => {\r\n        clearUrlParams([urlParam]);\r\n    };\r\n\r\n    /**\r\n     * Retrieves the URL without any query parameters.\r\n     *\r\n     * @returns {string} - The URL without any query parameters.\r\n     */\r\n    export const getUrlWithoutParams = () => {\r\n        return window.location.href.split(\"?\")[0];\r\n    };\r\n\r\n    export const removeUrlPath = (urlPath: string): void => {\r\n        if (!window.location.href.includes(urlPath)) {\r\n            return;\r\n        }\r\n\r\n        let newUrl = window.location.href;\r\n        newUrl = newUrl.replace(urlPath, \"\");\r\n\r\n        if (window.history) {\r\n            window.history.replaceState(null, document.title, newUrl);\r\n        }\r\n    };\r\n}\r\n","import { useWecomaIntegration } from \"../gdpr/use-wecoma-integration\";\r\nimport { CookieType } from \"../gdpr/wecoma-models\";\r\nimport { type WebStorageJsonType, type WebStorageType } from \"./web-storage-type\";\r\n\r\nconst isStorageAvailable: WebStorageJsonType = {\r\n    localStorage: null,\r\n    sessionStorage: null,\r\n};\r\n\r\nexport const useWebStorageTest = () => {\r\n    /// Checks if the storage is available\r\n    const test = (storageType: WebStorageType) => {\r\n        // see https://gist.github.com/paulirish/5558557\r\n        const storage = window[storageType];\r\n        try {\r\n            if (!(storageType in window && storage !== null)) {\r\n                return false;\r\n            }\r\n            // ios 10 private window, window.sessionStorage exists, but writing ends with exception\r\n            storage.setItem(\"storage-test\", \"1\");\r\n            storage.removeItem(\"storage-test\");\r\n            return true;\r\n        } catch (error) {\r\n            return false;\r\n        }\r\n    };\r\n\r\n    /// check if selected storage is available\r\n    const canUseStorage = (storageType: WebStorageType) => {\r\n        if (isStorageAvailable[storageType] === null) {\r\n            isStorageAvailable[storageType] = test(storageType);\r\n        }\r\n\r\n        return isStorageAvailable[storageType];\r\n    };\r\n\r\n    /// Checks consets to be able to store value\r\n    const canSetValue = (type: CookieType) => {\r\n        const { cookieTypeConsentedCached } = useWecomaIntegration();\r\n        return cookieTypeConsentedCached(type);\r\n    };\r\n\r\n    return {\r\n        canUseStorage,\r\n        canSetValue,\r\n    };\r\n};\r\n","// eslint-disable-next-line no-restricted-imports\r\nimport { CookieAttributes } from \"js-cookie\";\r\nimport { eventBus, GlobalEvents } from \"../global-events\";\r\n// eslint-disable-next-line no-restricted-imports\r\nimport { useCookieStorage, useLocalStorage, useSessionStorage } from \"../use-storage\";\r\nimport { useWebStorageTest } from \"./use-web-storage-test\";\r\nimport { WebStorageType } from \"./web-storage-type\";\r\nimport { CookieType } from \"../gdpr/wecoma-models\";\r\n\r\ntype QueueItemType = {\r\n    itemName: string;\r\n    value: string;\r\n    storageType: WebStorageType | \"cookie\";\r\n    cookieType: CookieType;\r\n    cookieAttributes?: CookieAttributes;\r\n};\r\n\r\n// items in memory queue waiting for consent\r\nconst storageQueue: QueueItemType[] = [];\r\n\r\neventBus.on(GlobalEvents.ConsentsChanged, () => processStorageQueue());\r\n\r\nfunction processStorageQueue() {\r\n    const cookieStorage = useCookieStorage();\r\n    const localStorage = useLocalStorage();\r\n    const sessionStorage = useSessionStorage();\r\n\r\n    storageQueue.forEach((item) => {\r\n        if (useWebStorageTest().canSetValue(item.cookieType)) {\r\n            switch (item.storageType) {\r\n                case \"cookie\":\r\n                    cookieStorage.setItem(item.itemName, item.value, item.cookieType, item.cookieAttributes);\r\n                    break;\r\n                case \"localStorage\":\r\n                    localStorage.setItem(item.itemName, item.value, item.cookieType);\r\n                    break;\r\n                case \"sessionStorage\":\r\n                    sessionStorage.setItem(item.itemName, item.value, item.cookieType);\r\n                    break;\r\n            }\r\n        }\r\n    });\r\n}\r\n\r\nexport const useWebStorageQueue = () => {\r\n    const enqueue = (item: QueueItemType) => {\r\n        storageQueue.push(item);\r\n    };\r\n\r\n    return {\r\n        enqueue,\r\n    };\r\n};\r\n","// eslint-disable-next-line no-restricted-imports\r\nimport Cookies from \"js-cookie\";\r\nimport { useWecomaIntegration } from \"../gdpr/use-wecoma-integration\";\r\nimport { CookieType } from \"../gdpr/wecoma-models\";\r\nimport { useWebStorageQueue } from \"./use-web-storage-queue\";\r\nimport { useWebStorageTest } from \"./use-web-storage-test\";\r\nimport { WebStorageJsonType, WebStorageType } from \"./web-storage-type\";\r\n\r\nconst { canUseStorage } = useWebStorageTest();\r\nconst { enqueue } = useWebStorageQueue();\r\n\r\nexport const useWebStorage = (storageType: WebStorageType) => {\r\n    const { cookieTypeConsentedCached } = useWecomaIntegration();\r\n    const storage = window[storageType];\r\n\r\n    const canSetValue = (type: CookieType): boolean => cookieTypeConsentedCached(type);\r\n\r\n    const setItem = (name: string, value: string, type: CookieType) => {\r\n        if (!canSetValue(type)) {\r\n            enqueue({ cookieType: type, itemName: name, storageType, value });\r\n            return false;\r\n        }\r\n\r\n        if (canUseStorage(storageType)) {\r\n            storage.setItem(name, value);\r\n        } else {\r\n            Cookies.set(name, value);\r\n        }\r\n\r\n        return true;\r\n    };\r\n\r\n    const getJson = <T = WebStorageJsonType>(name: string): T => {\r\n        const value = canUseStorage(storageType) ? storage.getItem(name) : Cookies.get(name);\r\n        if (!value) return null;\r\n\r\n        try {\r\n            return JSON.parse(value);\r\n        } catch {\r\n            return null;\r\n        }\r\n    };\r\n\r\n    const setJson = <T = WebStorageJsonType>(name: string, value: T, type: CookieType) => {\r\n        const str = JSON.stringify(value);\r\n        return setItem(name, str, type);\r\n    };\r\n\r\n    const getItem = (name: string) => (canUseStorage(storageType) ? storage.getItem(name) : Cookies.get(name));\r\n\r\n    const removeItem = (name: string) => (canUseStorage(storageType) ? storage.removeItem(name) : Cookies.remove(name));\r\n\r\n    return {\r\n        getJson,\r\n        setJson,\r\n        getItem,\r\n        setItem,\r\n        removeItem,\r\n    };\r\n};\r\n","/* eslint-disable no-restricted-globals, no-restricted-imports */\r\nimport Cookies, { CookieAttributes } from \"js-cookie\";\r\nimport { useWecomaIntegration } from \"./gdpr/use-wecoma-integration\";\r\nimport { useWebStorage } from \"./use-web-storage/use-web-storage\";\r\nimport { useWebStorageQueue } from \"./use-web-storage/use-web-storage-queue\";\r\nimport { type WebStorageJsonType } from \"./use-web-storage/web-storage-type\";\r\nimport { CookieType } from \"./gdpr/wecoma-models\";\r\n\r\nconst { enqueue } = useWebStorageQueue();\r\n\r\nexport const useLocalStorage = () => useWebStorage(\"localStorage\");\r\n\r\nexport const useSessionStorage = () => useWebStorage(\"sessionStorage\");\r\n\r\nexport const useCookieStorage = () => {\r\n    const { cookieTypeConsentedCached } = useWecomaIntegration();\r\n\r\n    const getItem = (name: string) => Cookies.get(name);\r\n\r\n    const getJson = <T = WebStorageJsonType>(name: string): T => {\r\n        const val = Cookies.get(name);\r\n        if (val === undefined) {\r\n            return null;\r\n        }\r\n\r\n        try {\r\n            return JSON.parse(val);\r\n        } catch {\r\n            return null;\r\n        }\r\n    };\r\n\r\n    const setItem = (name: string, value: string, type: CookieType, options?: CookieAttributes) => {\r\n        if (!cookieTypeConsentedCached(type)) {\r\n            enqueue({ cookieType: type, itemName: name, storageType: \"cookie\", value, cookieAttributes: options });\r\n            return false;\r\n        }\r\n\r\n        Cookies.set(name, value, { secure: true, ...options });\r\n        return true;\r\n    };\r\n\r\n    const setJson = <T = WebStorageJsonType>(name: string, value: T, type: CookieType, options?: CookieAttributes) => {\r\n        const str = JSON.stringify(value);\r\n        return setItem(name, str, type, options);\r\n    };\r\n\r\n    const removeItem = (name: string, options?: CookieAttributes) => Cookies.remove(name, options);\r\n\r\n    return {\r\n        getItem,\r\n        getJson,\r\n        setItem,\r\n        setJson,\r\n        removeItem,\r\n    };\r\n};\r\n","export namespace WebpHelper {\r\n    let webpSupport: boolean = null;\r\n    export const webpUrl = (url: string) => url.replace(/\\.(png|jpg|jpeg)/g, \".webp\");\r\n\r\n    const source = (srcset: string, type: string) =>\r\n        `<source srcset=\"${srcset}\" type=\"image/${type == \"jpg\" ? \"jpeg\" : type}\">`;\r\n\r\n    const webpSource = (imgUrlx1: string, imgUrlx2: string) => {\r\n        const srcSet = imgUrlx2 ? `${webpUrl(imgUrlx1)} 1x, ${webpUrl(imgUrlx2)} 2x` : webpUrl(imgUrlx1);\r\n        return source(srcSet, \"webp\");\r\n    };\r\n\r\n    const imgSource = (imgUrlx1: string, imgUrlx2: string) => {\r\n        const type = imgUrlx1.includes(\".png\") ? \"png\" : \"jpeg\";\r\n        const srcSet = imgUrlx2 ? `${imgUrlx1} 1x, ${imgUrlx2} 2x` : imgUrlx1;\r\n        return source(srcSet, type);\r\n    };\r\n\r\n    const pictureTag = (\r\n        img1x: string,\r\n        img2x: string,\r\n        alt: string,\r\n        cssClass = \"\",\r\n        width: number,\r\n        height: number,\r\n        isLazyload = true\r\n    ) => {\r\n        return `\r\n        <picture>\r\n            ${webpSource(img1x, img2x)}\r\n            ${imgSource(img1x, img2x)}\r\n            <img src=\"${img1x}\" ${isLazyload ? 'loading=\"lazy\"' : \"\"} alt=\"${alt}\"${\r\n            cssClass ? ` class=\"${cssClass}\"` : \"\"\r\n        }${width ? ` width=\"${width}\"` : \"\"}${height ? ` height=\"${height}\"` : \"\"} />\r\n        </picture>\r\n        `;\r\n    };\r\n\r\n    export const hasWebpSupport = () => {\r\n        if (webpSupport === null) {\r\n            webpSupport = document.documentElement.className.indexOf(\"webp\") >= 0;\r\n        }\r\n        return webpSupport;\r\n    };\r\n\r\n    const videoTag = (fallback: string, videoSource: string, alt: string, cssClass = \"\") => {\r\n        const img = hasWebpSupport() ? webpUrl(fallback) : fallback;\r\n        return `\r\n        <video class=\"${cssClass}\" autoplay=\"\" loop=\"\" muted=\"\" playsinline=\"true\" loading=\"lazy\" poster=\"${img}\">\r\n            <source src=\"${videoSource}\" type=\"video/webm\">\r\n            <img alt=\"${alt}\" class=\"${cssClass}\" loading=\"lazy\" src=\"${img}\">\r\n        </video>\r\n        `;\r\n    };\r\n\r\n    export const createPictureTag = (\r\n        imageUrl: string,\r\n        alt: string,\r\n        cssClass?: string,\r\n        width?: number,\r\n        height?: number,\r\n        isLazyload?: boolean\r\n    ) => {\r\n        if (!imageUrl) return \"\";\r\n        const images = imageUrl.split(\"|\").filter((x) => x);\r\n        const img1x = images[0];\r\n        const img2x = images[1];\r\n        const isVideo = img1x.indexOf(\".webm\") >= 0;\r\n        return isVideo\r\n            ? videoTag(img2x, img1x, alt, cssClass)\r\n            : pictureTag(img1x, img2x, alt, cssClass, width, height, isLazyload);\r\n    };\r\n}\r\n","import { defineComponent as _defineComponent } from 'vue'\nimport { openBlock as _openBlock, createBlock as _createBlock, createCommentVNode as _createCommentVNode, createElementBlock as _createElementBlock, unref as _unref, renderSlot as _renderSlot, resolveDynamicComponent as _resolveDynamicComponent, mergeProps as _mergeProps, withCtx as _withCtx } from \"vue\"\n\nconst _hoisted_1 = {\n  key: 0,\n  class: \"button__icon\"\n}\nconst _hoisted_2 = {\n  key: 1,\n  class: \"button__inner\"\n}\nconst _hoisted_3 = {\n  key: 2,\n  class: \"button__icon\"\n}\n\nimport { computed, ref, useSlots } from \"vue\";\r\nimport { SvgIcons } from \"../icon/types\";\r\nimport DsIcon from \"../icon/ds-icon.vue\";\r\nimport { Theme } from \"../types/theme\";\r\nimport { Size } from \"../types/size\";\r\nimport { ButtonType } from \"../types/button\";\r\nimport { DsButtonExpose, DsButtonRefType } from \"../button/ds-button-reference\";\r\nimport { MobileAppMethodName } from \"@sazka/mobile-apps/mobile-app-models\";\r\n\r\n\nexport default /*@__PURE__*/_defineComponent({\n  __name: 'ds-button',\n  props: {\n    tag: { default: \"auto\" },\n    href: {},\n    type: { default: \"primary\" },\n    theme: { default: \"light\" },\n    size: { default: \"default\" },\n    isDisabled: { type: Boolean },\n    iconLeft: {},\n    iconRight: {},\n    isInStorybook: { type: Boolean, default: false },\n    openInNewTab: { type: Boolean, default: false },\n    isExternal: { type: Boolean, default: false },\n    isBlockSize: { type: Boolean, default: false },\n    dataTest: {},\n    htmlType: { default: \"button\" },\n    eventName: {},\n    eventArgument: {}\n  },\n  setup(__props: any, { expose: __expose }) {\n\r\nconst slots = useSlots();\r\n\r\nconst rootElement = ref<DsButtonRefType>(null);\r\n\r\n__expose<DsButtonExpose>({\r\n    rootElement,\r\n});\r\n\r\nconst props = __props;\r\n\r\nconst mobileAppIntegration: Record<\"isMobileApp\" | \"triggerMobileAppEvent\", any> = {\r\n    isMobileApp: null,\r\n    triggerMobileAppEvent: null,\r\n};\r\n\r\nif (!props.isInStorybook) {\r\n    import(\"@sazka/mobile-apps/mobile-app-integration\").then(({ isMobileApp, triggerMobileAppEvent }) => {\r\n        mobileAppIntegration[\"isMobileApp\"] = isMobileApp;\r\n        mobileAppIntegration[\"triggerMobileAppEvent\"] = triggerMobileAppEvent;\r\n    });\r\n}\r\n\r\nconst hrefFormatted = computed(() => props.href?.replace(\"~\", \"\"));\r\n\r\nconst tagName = computed(() => {\r\n    if (props.tag === \"auto\") {\r\n        return hrefFormatted.value ? \"a\" : \"button\";\r\n    }\r\n    return props.tag;\r\n});\r\n\r\nconst classes = computed(() => [\r\n    `button--${props.type}`,\r\n    props.theme === \"dark\" ? \"button--dark\" : \"\",\r\n    props.size !== \"default\" ? `button--${props.size}` : \"\",\r\n    props.isDisabled ? \"button--disabled\" : \"\",\r\n    props.iconLeft || props.iconRight ? \"button--icon\" : \"\",\r\n    props.isBlockSize ? \"button--block\" : \"\",\r\n]);\r\n\r\nconst attributes = computed(() => {\r\n    const attributes = {\r\n        target: null,\r\n        rel: null,\r\n        disabled: props.isDisabled ? \"\" : undefined,\r\n        type: null,\r\n    };\r\n\r\n    if (tagName.value == \"button\") {\r\n        attributes.type = props.htmlType;\r\n        return attributes;\r\n    }\r\n\r\n    if (props.openInNewTab || props.isExternal) {\r\n        attributes.target = \"_blank\";\r\n        attributes.rel = \"noopener\";\r\n    }\r\n    if (props.isExternal) {\r\n        attributes.rel += \" noreferrer\";\r\n    }\r\n\r\n    return attributes;\r\n});\r\n\r\nconst regexp = /.*-thin/gm;\r\n\r\nconst getThinIconName = (iconName: SvgIcons): SvgIcons => {\r\n    return regexp.test(iconName) ? iconName : (`${iconName}-thin` as SvgIcons);\r\n};\r\n\r\nconst getRegularIconName = (iconName: SvgIcons): SvgIcons => {\r\n    return !regexp.test(iconName) ? iconName : (iconName.slice(0, -5) as SvgIcons);\r\n};\r\n\r\nconst buttonClickHandler = (event: Event) => {\r\n    if (props.isInStorybook) return;\r\n\r\n    if (props.isDisabled) {\r\n        event.preventDefault();\r\n    } else if (props.eventName && mobileAppIntegration.isMobileApp) {\r\n        event.preventDefault();\r\n        mobileAppIntegration.triggerMobileAppEvent(props.eventName as string, props.eventArgument);\r\n    }\r\n};\r\n\nreturn (_ctx: any,_cache: any) => {\n  return (_openBlock(), _createBlock(_resolveDynamicComponent(tagName.value), _mergeProps({\n    href: hrefFormatted.value,\n    class: [\"button\", classes.value],\n    \"data-test\": _ctx.dataTest\n  }, attributes.value, {\n    ref_key: \"rootElement\",\n    ref: rootElement,\n    onClick: buttonClickHandler\n  }), {\n    default: _withCtx(() => [\n      (_ctx.iconLeft)\n        ? (_openBlock(), _createElementBlock(\"span\", _hoisted_1, [\n            (_ctx.size === 'sm')\n              ? (_openBlock(), _createBlock(DsIcon, {\n                  key: 0,\n                  name: getThinIconName(_ctx.iconLeft),\n                  \"is-in-storybook\": _ctx.isInStorybook,\n                  width: 16,\n                  height: 16\n                }, null, 8, [\"name\", \"is-in-storybook\"]))\n              : (_ctx.size === 'lg')\n                ? (_openBlock(), _createBlock(DsIcon, {\n                    key: 1,\n                    name: getRegularIconName(_ctx.iconLeft),\n                    \"is-in-storybook\": _ctx.isInStorybook,\n                    width: 24,\n                    height: 24\n                  }, null, 8, [\"name\", \"is-in-storybook\"]))\n                : (_openBlock(), _createBlock(DsIcon, {\n                    key: 2,\n                    name: _ctx.iconLeft,\n                    \"is-in-storybook\": _ctx.isInStorybook\n                  }, null, 8, [\"name\", \"is-in-storybook\"]))\n          ]))\n        : _createCommentVNode(\"\", true),\n      (!!_unref(slots).default)\n        ? (_openBlock(), _createElementBlock(\"span\", _hoisted_2, [\n            _renderSlot(_ctx.$slots, \"default\")\n          ]))\n        : _createCommentVNode(\"\", true),\n      (_ctx.iconRight)\n        ? (_openBlock(), _createElementBlock(\"span\", _hoisted_3, [\n            (_ctx.size === 'sm')\n              ? (_openBlock(), _createBlock(DsIcon, {\n                  key: 0,\n                  name: getThinIconName(_ctx.iconRight),\n                  \"is-in-storybook\": _ctx.isInStorybook,\n                  width: 16,\n                  height: 16\n                }, null, 8, [\"name\", \"is-in-storybook\"]))\n              : (_ctx.size === 'lg')\n                ? (_openBlock(), _createBlock(DsIcon, {\n                    key: 1,\n                    name: getRegularIconName(_ctx.iconRight),\n                    \"is-in-storybook\": _ctx.isInStorybook,\n                    width: 24,\n                    height: 24\n                  }, null, 8, [\"name\", \"is-in-storybook\"]))\n                : (_openBlock(), _createBlock(DsIcon, {\n                    key: 2,\n                    name: _ctx.iconRight,\n                    \"is-in-storybook\": _ctx.isInStorybook\n                  }, null, 8, [\"name\", \"is-in-storybook\"]))\n          ]))\n        : _createCommentVNode(\"\", true)\n    ]),\n    _: 3\n  }, 16, [\"href\", \"class\", \"data-test\"]))\n}\n}\n\n})","<template>\r\n    <component\r\n        :is=\"tagName\"\r\n        :href=\"hrefFormatted\"\r\n        class=\"button\"\r\n        :class=\"classes\"\r\n        :data-test=\"dataTest\"\r\n        v-bind=\"attributes\"\r\n        ref=\"rootElement\"\r\n        @click=\"buttonClickHandler\"\r\n    >\r\n        <span v-if=\"iconLeft\" class=\"button__icon\">\r\n            <template v-if=\"size === 'sm'\">\r\n                <DsIcon :name=\"getThinIconName(iconLeft)\" :is-in-storybook :width=\"16\" :height=\"16\" />\r\n            </template>\r\n            <template v-else-if=\"size === 'lg'\">\r\n                <DsIcon :name=\"getRegularIconName(iconLeft)\" :is-in-storybook :width=\"24\" :height=\"24\" />\r\n            </template>\r\n            <template v-else>\r\n                <DsIcon :name=\"iconLeft\" :is-in-storybook />\r\n            </template>\r\n        </span>\r\n        <span v-if=\"!!slots.default\" class=\"button__inner\">\r\n            <slot></slot>\r\n        </span>\r\n        <span v-if=\"iconRight\" class=\"button__icon\">\r\n            <template v-if=\"size === 'sm'\">\r\n                <DsIcon :name=\"getThinIconName(iconRight)\" :is-in-storybook :width=\"16\" :height=\"16\" />\r\n            </template>\r\n            <template v-else-if=\"size === 'lg'\">\r\n                <DsIcon :name=\"getRegularIconName(iconRight)\" :is-in-storybook :width=\"24\" :height=\"24\" />\r\n            </template>\r\n            <template v-else>\r\n                <DsIcon :name=\"iconRight\" :is-in-storybook />\r\n            </template>\r\n        </span>\r\n    </component>\r\n</template>\r\n\r\n<script lang=\"ts\" setup>\r\nimport { computed, ref, useSlots } from \"vue\";\r\nimport { SvgIcons } from \"../icon/types\";\r\nimport DsIcon from \"../icon/ds-icon.vue\";\r\nimport { Theme } from \"../types/theme\";\r\nimport { Size } from \"../types/size\";\r\nimport { ButtonType } from \"../types/button\";\r\nimport { DsButtonExpose, DsButtonRefType } from \"../button/ds-button-reference\";\r\nimport { MobileAppMethodName } from \"@sazka/mobile-apps/mobile-app-models\";\r\n\r\nconst slots = useSlots();\r\n\r\nconst rootElement = ref<DsButtonRefType>(null);\r\n\r\ndefineExpose<DsButtonExpose>({\r\n    rootElement,\r\n});\r\n\r\nconst props = withDefaults(\r\n    defineProps<{\r\n        tag?: \"a\" | \"button\" | \"auto\";\r\n        href?: string;\r\n        type?: ButtonType;\r\n        theme?: Theme;\r\n        size?: Size;\r\n        isDisabled?: boolean;\r\n        iconLeft?: SvgIcons;\r\n        iconRight?: SvgIcons;\r\n        isInStorybook?: boolean;\r\n        openInNewTab?: boolean;\r\n        isExternal?: boolean;\r\n        isBlockSize?: boolean;\r\n        dataTest?: string;\r\n        htmlType?: \"button\" | \"submit\";\r\n        eventName?: MobileAppMethodName | Omit<string, MobileAppMethodName>;\r\n        eventArgument?: string;\r\n    }>(),\r\n    {\r\n        tag: \"auto\",\r\n        type: \"primary\",\r\n        theme: \"light\",\r\n        size: \"default\",\r\n        isInStorybook: false,\r\n        openInNewTab: false,\r\n        isExternal: false,\r\n        isBlockSize: false,\r\n        htmlType: \"button\",\r\n    }\r\n);\r\n\r\nconst mobileAppIntegration: Record<\"isMobileApp\" | \"triggerMobileAppEvent\", any> = {\r\n    isMobileApp: null,\r\n    triggerMobileAppEvent: null,\r\n};\r\n\r\nif (!props.isInStorybook) {\r\n    import(\"@sazka/mobile-apps/mobile-app-integration\").then(({ isMobileApp, triggerMobileAppEvent }) => {\r\n        mobileAppIntegration[\"isMobileApp\"] = isMobileApp;\r\n        mobileAppIntegration[\"triggerMobileAppEvent\"] = triggerMobileAppEvent;\r\n    });\r\n}\r\n\r\nconst hrefFormatted = computed(() => props.href?.replace(\"~\", \"\"));\r\n\r\nconst tagName = computed(() => {\r\n    if (props.tag === \"auto\") {\r\n        return hrefFormatted.value ? \"a\" : \"button\";\r\n    }\r\n    return props.tag;\r\n});\r\n\r\nconst classes = computed(() => [\r\n    `button--${props.type}`,\r\n    props.theme === \"dark\" ? \"button--dark\" : \"\",\r\n    props.size !== \"default\" ? `button--${props.size}` : \"\",\r\n    props.isDisabled ? \"button--disabled\" : \"\",\r\n    props.iconLeft || props.iconRight ? \"button--icon\" : \"\",\r\n    props.isBlockSize ? \"button--block\" : \"\",\r\n]);\r\n\r\nconst attributes = computed(() => {\r\n    const attributes = {\r\n        target: null,\r\n        rel: null,\r\n        disabled: props.isDisabled ? \"\" : undefined,\r\n        type: null,\r\n    };\r\n\r\n    if (tagName.value == \"button\") {\r\n        attributes.type = props.htmlType;\r\n        return attributes;\r\n    }\r\n\r\n    if (props.openInNewTab || props.isExternal) {\r\n        attributes.target = \"_blank\";\r\n        attributes.rel = \"noopener\";\r\n    }\r\n    if (props.isExternal) {\r\n        attributes.rel += \" noreferrer\";\r\n    }\r\n\r\n    return attributes;\r\n});\r\n\r\nconst regexp = /.*-thin/gm;\r\n\r\nconst getThinIconName = (iconName: SvgIcons): SvgIcons => {\r\n    return regexp.test(iconName) ? iconName : (`${iconName}-thin` as SvgIcons);\r\n};\r\n\r\nconst getRegularIconName = (iconName: SvgIcons): SvgIcons => {\r\n    return !regexp.test(iconName) ? iconName : (iconName.slice(0, -5) as SvgIcons);\r\n};\r\n\r\nconst buttonClickHandler = (event: Event) => {\r\n    if (props.isInStorybook) return;\r\n\r\n    if (props.isDisabled) {\r\n        event.preventDefault();\r\n    } else if (props.eventName && mobileAppIntegration.isMobileApp) {\r\n        event.preventDefault();\r\n        mobileAppIntegration.triggerMobileAppEvent(props.eventName as string, props.eventArgument);\r\n    }\r\n};\r\n</script>\r\n","import script from \"./ds-button.vue?vue&type=script&lang=ts&setup=true\"\nexport * from \"./ds-button.vue?vue&type=script&lang=ts&setup=true\"\n\nconst __exports__ = script;\n\nexport default __exports__","/**\n* Generated Icon names file\n*\n* Generated at: 31. 3. 2025 16:29:16\n*/\nexport const iconNames = ['account-thin','account','android-thin','android','apple-thin','apple','arrow-down-thin','arrow-down','arrow-left-thin','arrow-left','arrow-right-thin','arrow-right','arrow-up-thin','arrow-up','attachment-thin','attachment','b-mat-thin','b-mat','basket-thin','basket','bell-thin','bell','bet-amount-thin','bet-amount','bet-differently-thin','bet-differently','bet-list-thin','bet-list','bin-thin','bin','bookmark-thin','bookmark','breadcrumb-divider-thin','breadcrumb-divider','bulb-thin','bulb','calendar-thin','calendar','card-thin','card','casino-thin','casino','cell-phone-thin','cell-phone','chat-thin','chat','check-box-thin','check-box','check-circle-thin','check-circle','check-grey','check-thin','check-white','check','chevron-down-thin','chevron-down','chevron-left-thin','chevron-left','chevron-right-thin','chevron-right','chevron-up-thin','chevron-up','close','coffe-thin','coffee','combined-bet-thin','combined-bet','connection-thin','connection','criterion-thin','criterion','crop-thin','crop','cross-thin','cross','cvs-thin','cvs','dashboard-thin','dashboard','deposit','document-thin','document','dots-thin','dots','download-thin','download','drag-and-drop-thin','drag-and-drop','edit-thin','edit','email-thin','email','exclamation-mark','facebook-thin','facebook','favorite-star-active-thin','favorite-star-active','filter-thin','filter','finish-thin','finish','fire-thin','fire','flag-cz-rectangle','flag-cz-square','game-thin','game','gift-thin','gift','group-bet-thin','group-bet','hamburger-thin','hamburger','heart-filled-thin','heart-filled','heart-thin','heart','help-thin','help','hide-thin','hide','home-thin','home','ico-arrow-right-thin','ico-bubble-arrow-up','ico-bubble-arrow','ico-check-round','ico-checkmark','ico-cross','ico-fire','ico-flake','ico-gift-yellow','ico-info','ico-new-tab','ico-outline','ico-pen','ico-plus','ico-poll','ico-selected-tickets','ico-star-stroke','ico-success','ico-tickets','ico-tournament','ico-warning','info-blue','info-grey','info-thin','info-white','info','instagram-thin','instagram','jackpot-thin','jackpot','laurel-thin','laurel','light-thin','light','linkedin-thin','linkedin','list-dot-thin','list-dot','list-thin','list','live-thin','live','location-thin','location','lock-thin','lock','log-out-thin','log-out','lottery-world-thin','lottery-world','manual-thin','manual','market-thin','market','medal-thin','medal','messenger-thin','messenger','minus-circle-thin','minus-circle','minus-thin','minus','money-bag-coins-thin','money-bag-coins','money-bag-thin','money-bag','money-thin','money','more-thin','more','mouse-thin','mouse','new-tab-thin','new-tab','online-scratch-card-thin','online-scratch-card','pdf-thin','pdf','pen-thin','pen','phone-thin','phone','placeholder-thin','placeholder','play-thin','play','plus-circle-thin','plus-circle','plus-thin','plus','poll-thin','poll','power-thin','power','printer-thin','printer','quick-lottery-thin','quick-lottery','random-thin','random','recent','reload-ps','reload-thin','reload','reorder-thin','reorder','robot-thin','robot','rotate-thin','rotate','rounds-thin','rounds','scratch-card-thin','scratch-card','search-thin','search','send-thin','send','settings-thin','settings','share-thin','share','show-thin','show','snowflake-thin','snowflake','sort-by-thin','sort-by','sound-off','sound-on','star-thin','star','start-thin','start','statistics-thin','statistics','throphy-thin','throphy','thumbs-up-thin','thumbs-up','ticket-thin','ticket','time-refresh-thin','time-refresh','time-thin','time','trophy','twitter-thin','twitter','unlock-thin','unlock','upload-file-thin','upload-file','video-thin','video','warning-thin','warning','wttj-thin','wttj','xls-thin','xls','youtube-thin','youtube','zoom-in','zoom-minus-thin','zoom-minus','zoom-out','zoom-plus-thin','zoom-plus'] as const","import { defineComponent as _defineComponent } from 'vue'\nimport { createElementVNode as _createElementVNode, openBlock as _openBlock, createElementBlock as _createElementBlock, createCommentVNode as _createCommentVNode, Fragment as _Fragment, normalizeClass as _normalizeClass } from \"vue\"\n\nconst _hoisted_1 = [\"width\", \"height\", \"viewBox\"]\nconst _hoisted_2 = [\"xlink:href\"]\nconst _hoisted_3 = [\"width\", \"height\", \"viewBox\"]\nconst _hoisted_4 = [\"xlink:href\"]\nconst _hoisted_5 = [\"width\", \"height\", \"viewBox\"]\nconst _hoisted_6 = [\"xlink:href\"]\n\nimport { computed } from \"vue\";\r\nimport { ResponsiveUtils } from \"@sazka/utils/responsive-utils\";\r\nimport type { SvgIcons } from \"./types\";\r\nimport { iconNames } from \"../typography/storiesIconName\";\r\n\r\n\nexport default /*@__PURE__*/_defineComponent({\n  __name: 'ds-icon',\n  props: {\n    width: {},\n    height: {},\n    name: {},\n    isInStorybook: { type: Boolean, default: false },\n    swapBreakpoint: { default: \"sm2\" }\n  },\n  setup(__props: any) {\n\r\nconst props = __props;\r\n\r\nconst iconSize = {\r\n    thin: 16,\r\n    regular: 24,\r\n};\r\n\r\nconst isSizeSet = computed((): boolean => !!props.width && !!props.height);\r\n\r\nconst isThin = computed((): boolean => props.width === iconSize.thin && props.height === iconSize.thin);\r\n\r\nconst isRegular = computed((): boolean => props.width === iconSize.regular && props.height === iconSize.regular);\r\n\r\nconst getViewBox = (width: number, height: number): string => `0 0 ${height} ${width}`;\r\n\r\nconst getHref = (iconName: string): string =>\r\n    props.isInStorybook\r\n        ? `/images/svg-icons/${iconName}.svg#${iconName}`\r\n        : `/frontend/img/svg-icons/${iconName}.svg#${iconName}`;\r\n\r\nconst resolvedThinIconName = computed(() => {\r\n    const thinIconName = `${props.name}-thin`;\r\n\r\n    return iconNames.includes(thinIconName as SvgIcons) ? thinIconName : props.name;\r\n});\r\n\nreturn (_ctx: any,_cache: any) => {\n  return (_openBlock(), _createElementBlock(\"span\", {\n    class: _normalizeClass([\"ds-icon\", [\r\n            !isSizeSet.value && `ds-icon--${_ctx.swapBreakpoint.toString()}`,\r\n            { 'ds-icon--thin': isThin.value },\r\n            { 'ds-icon--regular': isRegular.value },\r\n        ]])\n  }, [\n    (isSizeSet.value)\n      ? (_openBlock(), _createElementBlock(\"svg\", {\n          key: 0,\n          width: _ctx.width,\n          height: _ctx.height,\n          viewBox: getViewBox(_ctx.width, _ctx.height)\n        }, [\n          _createElementVNode(\"use\", {\n            \"xlink:href\": getHref(_ctx.name)\n          }, null, 8, _hoisted_2)\n        ], 8, _hoisted_1))\n      : (_openBlock(), _createElementBlock(_Fragment, { key: 1 }, [\n          (_openBlock(), _createElementBlock(\"svg\", {\n            width: iconSize.thin,\n            height: iconSize.thin,\n            viewBox: getViewBox(iconSize.thin, iconSize.thin),\n            class: \"ds-icon__thin\"\n          }, [\n            _createElementVNode(\"use\", {\n              \"xlink:href\": getHref(resolvedThinIconName.value)\n            }, null, 8, _hoisted_4)\n          ], 8, _hoisted_3)),\n          (_openBlock(), _createElementBlock(\"svg\", {\n            width: iconSize.regular,\n            height: iconSize.regular,\n            viewBox: getViewBox(iconSize.regular, iconSize.regular),\n            class: \"ds-icon__regular\"\n          }, [\n            _createElementVNode(\"use\", {\n              \"xlink:href\": getHref(_ctx.name)\n            }, null, 8, _hoisted_6)\n          ], 8, _hoisted_5))\n        ], 64))\n  ], 2))\n}\n}\n\n})","<template>\r\n    <span\r\n        class=\"ds-icon\"\r\n        :class=\"[\r\n            !isSizeSet && `ds-icon--${swapBreakpoint.toString()}`,\r\n            { 'ds-icon--thin': isThin },\r\n            { 'ds-icon--regular': isRegular },\r\n        ]\"\r\n    >\r\n        <svg v-if=\"isSizeSet\" :width=\"width\" :height=\"height\" :viewBox=\"getViewBox(width, height)\">\r\n            <use :xlink:href=\"getHref(name)\" />\r\n        </svg>\r\n        <template v-else>\r\n            <svg\r\n                :width=\"iconSize.thin\"\r\n                :height=\"iconSize.thin\"\r\n                :viewBox=\"getViewBox(iconSize.thin, iconSize.thin)\"\r\n                class=\"ds-icon__thin\"\r\n            >\r\n                <use :xlink:href=\"getHref(resolvedThinIconName)\" />\r\n            </svg>\r\n            <svg\r\n                :width=\"iconSize.regular\"\r\n                :height=\"iconSize.regular\"\r\n                :viewBox=\"getViewBox(iconSize.regular, iconSize.regular)\"\r\n                class=\"ds-icon__regular\"\r\n            >\r\n                <use :xlink:href=\"getHref(name)\" />\r\n            </svg>\r\n        </template>\r\n    </span>\r\n</template>\r\n\r\n<script lang=\"ts\" setup>\r\nimport { computed } from \"vue\";\r\nimport { ResponsiveUtils } from \"@sazka/utils/responsive-utils\";\r\nimport type { SvgIcons } from \"./types\";\r\nimport { iconNames } from \"../typography/storiesIconName\";\r\n\r\nconst props = withDefaults(\r\n    defineProps<{\r\n        width?: number;\r\n        height?: number;\r\n        name: SvgIcons;\r\n        isInStorybook?: boolean;\r\n        swapBreakpoint?: keyof Omit<typeof ResponsiveUtils.breakpoints, \"xs\">;\r\n    }>(),\r\n    {\r\n        isInStorybook: false,\r\n        swapBreakpoint: \"sm2\",\r\n    }\r\n);\r\n\r\nconst iconSize = {\r\n    thin: 16,\r\n    regular: 24,\r\n};\r\n\r\nconst isSizeSet = computed((): boolean => !!props.width && !!props.height);\r\n\r\nconst isThin = computed((): boolean => props.width === iconSize.thin && props.height === iconSize.thin);\r\n\r\nconst isRegular = computed((): boolean => props.width === iconSize.regular && props.height === iconSize.regular);\r\n\r\nconst getViewBox = (width: number, height: number): string => `0 0 ${height} ${width}`;\r\n\r\nconst getHref = (iconName: string): string =>\r\n    props.isInStorybook\r\n        ? `/images/svg-icons/${iconName}.svg#${iconName}`\r\n        : `/frontend/img/svg-icons/${iconName}.svg#${iconName}`;\r\n\r\nconst resolvedThinIconName = computed(() => {\r\n    const thinIconName = `${props.name}-thin`;\r\n\r\n    return iconNames.includes(thinIconName as SvgIcons) ? thinIconName : props.name;\r\n});\r\n</script>\r\n","import script from \"./ds-icon.vue?vue&type=script&lang=ts&setup=true\"\nexport * from \"./ds-icon.vue?vue&type=script&lang=ts&setup=true\"\n\nconst __exports__ = script;\n\nexport default __exports__","import { defineComponent as _defineComponent } from 'vue'\nimport { openBlock as _openBlock, createElementBlock as _createElementBlock, createCommentVNode as _createCommentVNode, createElementVNode as _createElementVNode, normalizeClass as _normalizeClass } from \"vue\"\n\nconst _hoisted_1 = [\"srcset\", \"width\", \"height\", \"media\"]\nconst _hoisted_2 = [\"type\", \"srcset\", \"width\", \"height\", \"media\"]\nconst _hoisted_3 = [\"src\", \"alt\", \"width\", \"height\", \"loading\", \"fetch-priority\"]\n\nimport { computed, ref } from \"vue\";\r\nimport { WebpHelper } from \"@sazka/utils/webp-helper\";\r\nimport { WebpImageExpose } from \"../types/webp-image-reference\";\r\n\r\n\nexport default /*@__PURE__*/_defineComponent({\n  __name: 'webp-image',\n  props: {\n    src: {},\n    cssClass: {},\n    alt: {},\n    width: {},\n    height: {},\n    isLazyload: { type: Boolean, default: false },\n    loadingPriority: {},\n    media: {},\n    get2x: { type: Boolean, default: false }\n  },\n  setup(__props: any, { expose: __expose }) {\n\r\nconst props = __props;\r\n\r\nconst rootRef = ref<HTMLPictureElement>();\r\n__expose<WebpImageExpose>({\r\n    rootRef,\r\n});\r\n\r\nconst is2xEnabled = computed(() => props.get2x && !/@2x./.test(props.src));\r\n\r\nconst get2xSrc = (src: string): string => {\r\n    // appends @2x to the end of the image name\r\n    const srcUrl = new URL(src, window.location.origin);\r\n    srcUrl.pathname = srcUrl.pathname.replace(\".\", \"@2x.\");\r\n    return srcUrl.toString();\r\n};\r\n\r\nconst getSrcset = (src1x: string, src2x: string): string => {\r\n    return `${src1x} 1x, ${src2x} 2x`;\r\n};\r\n\r\nconst imgSrcset = computed(() => {\r\n    if (props.src.includes(\"|\")) {\r\n        const parts = props.src.split(\"|\");\r\n        return getSrcset(parts[0], parts[1]);\r\n    }\r\n    return is2xEnabled.value ? getSrcset(props.src, get2xSrc(props.src)) : props.src;\r\n});\r\n\r\nconst webpSrcset = computed(() => {\r\n    let src = props.src;\r\n\r\n    //for images with saved width and height\r\n    if (src.includes(\";;\")) {\r\n        const parts = src.split(\";;\");\r\n        src = parts[1];\r\n    }\r\n\r\n    const webpSrc = WebpHelper.webpUrl(src);\r\n\r\n    if (webpSrc.includes(\"|\")) {\r\n        const parts = webpSrc.split(\"|\");\r\n        return getSrcset(parts[0], parts[1]);\r\n    }\r\n\r\n    return is2xEnabled.value ? getSrcset(webpSrc, get2xSrc(webpSrc)) : webpSrc;\r\n});\r\n\r\nconst pattern = /(?:\\.([^.]+))?$/;\r\nconst extension = pattern.exec(props.src || \"\")[1];\r\n\r\nconst mimeType = computed(() => {\r\n    if (!extension) {\r\n        return \"\";\r\n    }\r\n\r\n    return `image/${extension}`;\r\n});\r\n\r\nconst displayWebp = computed(() => {\r\n    return extension !== \"svg\";\r\n});\r\n\nreturn (_ctx: any,_cache: any) => {\n  return (_openBlock(), _createElementBlock(\"picture\", {\n    ref_key: \"rootRef\",\n    ref: rootRef\n  }, [\n    (displayWebp.value)\n      ? (_openBlock(), _createElementBlock(\"source\", {\n          key: 0,\n          type: \"image/webp\",\n          srcset: webpSrcset.value,\n          width: _ctx.width,\n          height: _ctx.height,\n          media: _ctx.media\n        }, null, 8, _hoisted_1))\n      : _createCommentVNode(\"\", true),\n    _createElementVNode(\"source\", {\n      type: mimeType.value,\n      srcset: imgSrcset.value,\n      width: _ctx.width,\n      height: _ctx.height,\n      media: _ctx.media\n    }, null, 8, _hoisted_2),\n    _createElementVNode(\"img\", {\n      src: _ctx.src,\n      alt: _ctx.alt,\n      class: _normalizeClass(_ctx.cssClass),\n      width: _ctx.width,\n      height: _ctx.height,\n      loading: _ctx.isLazyload ? 'lazy' : null,\n      \"fetch-priority\": _ctx.loadingPriority\n    }, null, 10, _hoisted_3)\n  ], 512))\n}\n}\n\n})","<template>\r\n    <picture ref=\"rootRef\">\r\n        <source\r\n            type=\"image/webp\"\r\n            :srcset=\"webpSrcset\"\r\n            v-if=\"displayWebp\"\r\n            :width=\"width\"\r\n            :height=\"height\"\r\n            :media=\"media\"\r\n        />\r\n        <source :type=\"mimeType\" :srcset=\"imgSrcset\" :width=\"width\" :height=\"height\" :media=\"media\" />\r\n        <img\r\n            :src=\"src\"\r\n            :alt=\"alt\"\r\n            :class=\"cssClass\"\r\n            :width=\"width\"\r\n            :height=\"height\"\r\n            :loading=\"isLazyload ? 'lazy' : null\"\r\n            :fetch-priority=\"loadingPriority\"\r\n        />\r\n    </picture>\r\n</template>\r\n\r\n<script lang=\"ts\" setup>\r\nimport { computed, ref } from \"vue\";\r\nimport { WebpHelper } from \"@sazka/utils/webp-helper\";\r\nimport { WebpImageExpose } from \"../types/webp-image-reference\";\r\n\r\nconst props = withDefaults(\r\n    defineProps<{\r\n        src: string;\r\n        cssClass?: Array<string> | string | Record<string, any>;\r\n        alt: string;\r\n        width?: number | string;\r\n        height?: number | string;\r\n        isLazyload?: boolean;\r\n        loadingPriority?: \"high\" | \"low\" | \"auto\";\r\n        /**\r\n         * Specify a media query for the source\r\n         */\r\n        media?: string;\r\n        /**\r\n         * If true, 2x image will be added\r\n         * url has to be in format: /path/to/image@2x.png (or jpg)\r\n         */\r\n        get2x?: boolean;\r\n    }>(),\r\n    {\r\n        isLazyload: false,\r\n        get2x: false,\r\n    }\r\n);\r\n\r\nconst rootRef = ref<HTMLPictureElement>();\r\ndefineExpose<WebpImageExpose>({\r\n    rootRef,\r\n});\r\n\r\nconst is2xEnabled = computed(() => props.get2x && !/@2x./.test(props.src));\r\n\r\nconst get2xSrc = (src: string): string => {\r\n    // appends @2x to the end of the image name\r\n    const srcUrl = new URL(src, window.location.origin);\r\n    srcUrl.pathname = srcUrl.pathname.replace(\".\", \"@2x.\");\r\n    return srcUrl.toString();\r\n};\r\n\r\nconst getSrcset = (src1x: string, src2x: string): string => {\r\n    return `${src1x} 1x, ${src2x} 2x`;\r\n};\r\n\r\nconst imgSrcset = computed(() => {\r\n    if (props.src.includes(\"|\")) {\r\n        const parts = props.src.split(\"|\");\r\n        return getSrcset(parts[0], parts[1]);\r\n    }\r\n    return is2xEnabled.value ? getSrcset(props.src, get2xSrc(props.src)) : props.src;\r\n});\r\n\r\nconst webpSrcset = computed(() => {\r\n    let src = props.src;\r\n\r\n    //for images with saved width and height\r\n    if (src.includes(\";;\")) {\r\n        const parts = src.split(\";;\");\r\n        src = parts[1];\r\n    }\r\n\r\n    const webpSrc = WebpHelper.webpUrl(src);\r\n\r\n    if (webpSrc.includes(\"|\")) {\r\n        const parts = webpSrc.split(\"|\");\r\n        return getSrcset(parts[0], parts[1]);\r\n    }\r\n\r\n    return is2xEnabled.value ? getSrcset(webpSrc, get2xSrc(webpSrc)) : webpSrc;\r\n});\r\n\r\nconst pattern = /(?:\\.([^.]+))?$/;\r\nconst extension = pattern.exec(props.src || \"\")[1];\r\n\r\nconst mimeType = computed(() => {\r\n    if (!extension) {\r\n        return \"\";\r\n    }\r\n\r\n    return `image/${extension}`;\r\n});\r\n\r\nconst displayWebp = computed(() => {\r\n    return extension !== \"svg\";\r\n});\r\n</script>\r\n","import script from \"./webp-image.vue?vue&type=script&lang=ts&setup=true\"\nexport * from \"./webp-image.vue?vue&type=script&lang=ts&setup=true\"\n\nconst __exports__ = script;\n\nexport default __exports__","import { type InjectionKey, type Ref } from \"vue\";\r\n\r\nexport const isModalVisibleInjectionKey = Symbol() as InjectionKey<Ref<boolean>>;\r\n","import { defineComponent as _defineComponent } from 'vue'\nimport { normalizeClass as _normalizeClass, openBlock as _openBlock, createElementBlock as _createElementBlock } from \"vue\"\n\nimport type { Theme } from \"../types/theme\";\r\n\r\n\nexport default /*@__PURE__*/_defineComponent({\n  __name: 'ds-divider',\n  props: {\n    isVertical: { type: Boolean, default: false },\n    theme: { default: \"light\" },\n    isStackMedium: { type: Boolean, default: false }\n  },\n  setup(__props: any) {\n\r\n\r\n\nreturn (_ctx: any,_cache: any) => {\n  return (_openBlock(), _createElementBlock(\"hr\", {\n    class: _normalizeClass([\"ds-divider\", { 'is-vertical': _ctx.isVertical, 'is-dark': _ctx.theme === 'dark', 'is-stack-medium': _ctx.isStackMedium }])\n  }, null, 2))\n}\n}\n\n})","import script from \"./ds-divider.vue?vue&type=script&lang=ts&setup=true\"\nexport * from \"./ds-divider.vue?vue&type=script&lang=ts&setup=true\"\n\nconst __exports__ = script;\n\nexport default __exports__","import { defineComponent as _defineComponent } from 'vue'\nimport { normalizeClass as _normalizeClass, createElementVNode as _createElementVNode, openBlock as _openBlock, createBlock as _createBlock, createCommentVNode as _createCommentVNode, renderSlot as _renderSlot, unref as _unref, createElementBlock as _createElementBlock, mergeProps as _mergeProps, Transition as _Transition, withCtx as _withCtx, createVNode as _createVNode, Teleport as _Teleport } from \"vue\"\n\nconst _hoisted_1 = [\"data-test\", \"aria-labelledby\"]\nconst _hoisted_2 = { class: \"ds-modal-dialog__container\" }\nconst _hoisted_3 = {\n  key: 4,\n  class: \"ds-modal-dialog__sticky-bottom\"\n}\n\nimport { provide, useSlots, computed, watch, onBeforeUnmount, ref } from \"vue\";\r\n// ISSUE: Competing focus traps\r\n// FIXME: Resolve in future\r\n// import { UseFocusTrap } from \"@vueuse/integrations/useFocusTrap/component\";\r\nimport { isModalVisibleInjectionKey } from \"./ds-modal-dialog-injection-key\";\r\nimport DsDivider from \"../divider/ds-divider.vue\";\r\nimport DsButton from \"../button/ds-button.vue\";\r\n\r\nimport { DsModalDialogExposeType, ModalPosition } from \"./ds-modal-dialog-models\";\r\nimport { Theme } from \"../types/theme\";\r\nimport { useStackedModals } from \"@sazka/utils/composables/use-stacked-modals\";\r\n\r\n\nexport default /*@__PURE__*/_defineComponent({\n  __name: 'ds-modal-dialog',\n  props: {\n    dialogLabelId: {},\n    modelValue: { type: Boolean },\n    modalPosition: { default: \"top\" },\n    topDividerVisible: { type: Boolean, default: true },\n    bottomDividerVisible: { type: Boolean, default: true },\n    theme: { default: \"light\" },\n    contentScrollable: { type: Boolean, default: false },\n    stickyBottom: { type: Boolean },\n    isInStorybook: { type: Boolean, default: false },\n    dataTest: {},\n    hasDialogCloseBtn: { type: Boolean, default: true },\n    closeOnClickOutside: { type: Boolean, default: true },\n    animate: { type: Boolean, default: false },\n    preventClose: { type: Boolean, default: false },\n    cssClass: { default: \"\" }\n  },\n  emits: [\"update:modelValue\", \"modal-closed\"],\n  setup(__props: any, { expose: __expose, emit: __emit }) {\n\r\nconst dialogBodyRef = ref<HTMLElement>(null);\r\nconst contentRef = ref<HTMLElement>();\r\n\r\nconst slots = useSlots();\r\nconst props = __props;\r\n\r\nconst emit = __emit;\r\n\r\n// dont use defineModal macro. If you have v-if on the parent, it doesnt remove from StackedModals.\r\n// DefineModal can use later maybe, its too much new feature.\r\nconst modelValueInternal = computed({\r\n    get() {\r\n        return props.modelValue;\r\n    },\r\n    set(newValue) {\r\n        emit(\"update:modelValue\", newValue);\r\n    },\r\n});\r\n\r\n/**\r\n * Handles showing / hiding modal\r\n */\r\nprovide(isModalVisibleInjectionKey, modelValueInternal);\r\n\r\nconst closeDialogInternal = () => {\r\n    if (props.preventClose) return;\r\n\r\n    modelValueInternal.value = false;\r\n    emit(\"modal-closed\");\r\n};\r\n\r\nconst keyDownEventHandler = (e: KeyboardEvent) => {\r\n    if (e.key === \"Escape\") {\r\n        closeDialogInternal();\r\n    }\r\n};\r\n\r\nconst { addToStackedModals, removeFromStackedModals } = useStackedModals();\r\nconst dialogIsOpening = () => {\r\n    window.addEventListener(\"keydown\", keyDownEventHandler);\r\n    addToStackedModals();\r\n};\r\n\r\nconst dialogIsClosing = () => {\r\n    window.removeEventListener(\"keydown\", keyDownEventHandler);\r\n    removeFromStackedModals();\r\n};\r\n\r\nwatch(\r\n    modelValueInternal,\r\n    (newModelValue, oldModelValue) => {\r\n        if (newModelValue && !oldModelValue) {\r\n            dialogIsOpening();\r\n        } else if (!newModelValue && oldModelValue) {\r\n            dialogIsClosing();\r\n        }\r\n    },\r\n    {\r\n        immediate: true,\r\n    }\r\n);\r\n\r\nonBeforeUnmount(() => {\r\n    if (modelValueInternal.value) {\r\n        dialogIsClosing();\r\n    }\r\n});\r\n\r\nconst backgroundClass = computed(() => {\r\n    if (Array.isArray(props.cssClass)) {\r\n        return props.cssClass.filter(Boolean).map((cssClass) => `${cssClass}__background`);\r\n    }\r\n    return props.cssClass ? `${props.cssClass}__background` : undefined;\r\n});\r\n\r\nconst bodyClass = computed(() => {\r\n    if (Array.isArray(props.cssClass)) {\r\n        return props.cssClass.filter(Boolean).map((cssClass) => `${cssClass}__body`);\r\n    }\r\n    return props.cssClass ? `${props.cssClass}__body` : undefined;\r\n});\r\n\r\nconst scrollContent = (topPosition = 0, smoth = false) => {\r\n    if (!props.contentScrollable || !contentRef.value) {\r\n        return;\r\n    }\r\n\r\n    contentRef.value.scroll({ top: topPosition, behavior: smoth ? \"smooth\" : \"instant\" });\r\n};\r\n\r\n__expose<DsModalDialogExposeType>({\r\n    dialogBodyRef,\r\n    scrollContent,\r\n});\r\n\nreturn (_ctx: any,_cache: any) => {\n  return (_openBlock(), _createBlock(_Teleport, { to: \"body\" }, [\n    _createVNode(_Transition, {\n      name: _ctx.animate ? 'ds-modal-dialog-animation' : undefined,\n      duration: _ctx.animate ? 250 : undefined\n    }, {\n      default: _withCtx(() => [\n        (modelValueInternal.value)\n          ? (_openBlock(), _createElementBlock(\"div\", _mergeProps({\n              key: 0,\n              class: [\"ds-modal-dialog\", [\r\n                    _ctx.cssClass,\r\n                    _ctx.modalPosition,\r\n                    {\r\n                        'is-dark': _ctx.theme === 'dark',\r\n                        'ds-modal-dialog--content-scroll': _ctx.contentScrollable || _ctx.stickyBottom,\r\n                        'ds-modal-dialog--sticky-bottom': _ctx.stickyBottom,\r\n                    },\r\n                ]]\n            }, _ctx.$attrs), [\n              _createElementVNode(\"div\", {\n                class: _normalizeClass([\"ds-modal-dialog__background\", backgroundClass.value]),\n                onClick: _cache[0] || (_cache[0] = ($event: any) => (_ctx.closeOnClickOutside ? closeDialogInternal() : null))\n              }, null, 2),\n              _createElementVNode(\"div\", {\n                class: _normalizeClass([\"ds-modal-dialog__body\", bodyClass.value]),\n                role: \"dialog\",\n                \"data-test\": _ctx.dataTest,\n                \"aria-modal\": \"true\",\n                \"aria-labelledby\": _ctx.dialogLabelId,\n                ref_key: \"dialogBodyRef\",\n                ref: dialogBodyRef\n              }, [\n                (_ctx.hasDialogCloseBtn)\n                  ? (_openBlock(), _createBlock(DsButton, {\n                      key: 0,\n                      type: \"primary\",\n                      theme: _ctx.theme,\n                      class: \"ds-modal-dialog__close\",\n                      \"aria-label\": \"Zavřít\",\n                      \"icon-left\": \"cross\",\n                      onClick: _cache[1] || (_cache[1] = ($event: any) => (closeDialogInternal())),\n                      \"data-test\": \"ds-modal-close\",\n                      \"is-in-story-book\": props.isInStorybook\n                    }, null, 8, [\"theme\", \"is-in-story-book\"]))\n                  : _createCommentVNode(\"\", true),\n                _createElementVNode(\"div\", _hoisted_2, [\n                  _renderSlot(_ctx.$slots, \"top\"),\n                  (_ctx.topDividerVisible && _unref(slots).top && (_unref(slots).content || _unref(slots).bottom))\n                    ? (_openBlock(), _createBlock(DsDivider, {\n                        key: 0,\n                        class: \"ds-modal-dialog__top-divider\",\n                        theme: _ctx.theme\n                      }, null, 8, [\"theme\"]))\n                    : _createCommentVNode(\"\", true),\n                  (!!_unref(slots).content)\n                    ? (_openBlock(), _createElementBlock(\"div\", {\n                        key: 1,\n                        class: \"ds-modal-dialog__content\",\n                        ref_key: \"contentRef\",\n                        ref: contentRef\n                      }, [\n                        _renderSlot(_ctx.$slots, \"content\")\n                      ], 512))\n                    : _createCommentVNode(\"\", true),\n                  (_ctx.bottomDividerVisible && (_unref(slots).top || _unref(slots).content) && _unref(slots).bottom)\n                    ? (_openBlock(), _createBlock(DsDivider, {\n                        key: 2,\n                        class: \"ds-modal-dialog__bottom-divider\",\n                        theme: _ctx.theme\n                      }, null, 8, [\"theme\"]))\n                    : _createCommentVNode(\"\", true),\n                  (!_ctx.stickyBottom)\n                    ? _renderSlot(_ctx.$slots, \"bottom\", { key: 3 })\n                    : (_unref(slots).bottom)\n                      ? (_openBlock(), _createElementBlock(\"div\", _hoisted_3, [\n                          _renderSlot(_ctx.$slots, \"bottom\")\n                        ]))\n                      : _createCommentVNode(\"\", true)\n                ])\n              ], 10, _hoisted_1)\n            ], 16))\n          : _createCommentVNode(\"\", true)\n      ]),\n      _: 3\n    }, 8, [\"name\", \"duration\"])\n  ]))\n}\n}\n\n})","<template>\r\n    <Teleport to=\"body\">\r\n        <Transition :name=\"animate ? 'ds-modal-dialog-animation' : undefined\" :duration=\"animate ? 250 : undefined\">\r\n            <div\r\n                v-if=\"modelValueInternal\"\r\n                class=\"ds-modal-dialog\"\r\n                :class=\"[\r\n                    cssClass,\r\n                    modalPosition,\r\n                    {\r\n                        'is-dark': theme === 'dark',\r\n                        'ds-modal-dialog--content-scroll': contentScrollable || stickyBottom,\r\n                        'ds-modal-dialog--sticky-bottom': stickyBottom,\r\n                    },\r\n                ]\"\r\n                v-bind=\"$attrs\"\r\n            >\r\n                <div\r\n                    class=\"ds-modal-dialog__background\"\r\n                    :class=\"backgroundClass\"\r\n                    @click=\"closeOnClickOutside ? closeDialogInternal() : null\"\r\n                ></div>\r\n                <div\r\n                    class=\"ds-modal-dialog__body\"\r\n                    role=\"dialog\"\r\n                    :class=\"bodyClass\"\r\n                    :data-test=\"dataTest\"\r\n                    aria-modal=\"true\"\r\n                    :aria-labelledby=\"dialogLabelId\"\r\n                    ref=\"dialogBodyRef\"\r\n                >\r\n                    <DsButton\r\n                        type=\"primary\"\r\n                        :theme=\"theme\"\r\n                        class=\"ds-modal-dialog__close\"\r\n                        aria-label=\"Zavřít\"\r\n                        icon-left=\"cross\"\r\n                        @click=\"closeDialogInternal()\"\r\n                        data-test=\"ds-modal-close\"\r\n                        :is-in-story-book=\"props.isInStorybook\"\r\n                        v-if=\"hasDialogCloseBtn\"\r\n                    />\r\n                    <div class=\"ds-modal-dialog__container\">\r\n                        <slot name=\"top\"></slot>\r\n                        <DsDivider\r\n                            v-if=\"topDividerVisible && slots.top && (slots.content || slots.bottom)\"\r\n                            class=\"ds-modal-dialog__top-divider\"\r\n                            :theme=\"theme\"\r\n                        />\r\n                        <div class=\"ds-modal-dialog__content\" v-if=\"!!slots.content\" ref=\"contentRef\">\r\n                            <slot name=\"content\"></slot>\r\n                        </div>\r\n                        <DsDivider\r\n                            v-if=\"bottomDividerVisible && (slots.top || slots.content) && slots.bottom\"\r\n                            class=\"ds-modal-dialog__bottom-divider\"\r\n                            :theme=\"theme\"\r\n                        />\r\n                        <slot v-if=\"!stickyBottom\" name=\"bottom\"></slot>\r\n\r\n                        <div class=\"ds-modal-dialog__sticky-bottom\" v-else-if=\"slots.bottom\">\r\n                            <slot name=\"bottom\"></slot>\r\n                        </div>\r\n                    </div>\r\n                </div>\r\n            </div>\r\n        </Transition>\r\n    </Teleport>\r\n</template>\r\n\r\n<script lang=\"ts\" setup>\r\nimport { provide, useSlots, computed, watch, onBeforeUnmount, ref } from \"vue\";\r\n// ISSUE: Competing focus traps\r\n// FIXME: Resolve in future\r\n// import { UseFocusTrap } from \"@vueuse/integrations/useFocusTrap/component\";\r\nimport { isModalVisibleInjectionKey } from \"./ds-modal-dialog-injection-key\";\r\nimport DsDivider from \"../divider/ds-divider.vue\";\r\nimport DsButton from \"../button/ds-button.vue\";\r\n\r\nimport { DsModalDialogExposeType, ModalPosition } from \"./ds-modal-dialog-models\";\r\nimport { Theme } from \"../types/theme\";\r\nimport { useStackedModals } from \"@sazka/utils/composables/use-stacked-modals\";\r\n\r\nconst dialogBodyRef = ref<HTMLElement>(null);\r\nconst contentRef = ref<HTMLElement>();\r\n\r\nconst slots = useSlots();\r\nconst props = withDefaults(\r\n    defineProps<{\r\n        /**\r\n         * Dialog aria-labelledby id\r\n         */\r\n        dialogLabelId?: string;\r\n        /**\r\n         * Handles showing / hiding modal\r\n         */\r\n        modelValue: boolean;\r\n        /**\r\n         * Modal position\r\n         */\r\n        modalPosition?: ModalPosition;\r\n        /**\r\n         * Enable / disable top divider\r\n         */\r\n        topDividerVisible?: boolean;\r\n        /**\r\n         * Enable / disable bottom divider\r\n         */\r\n        bottomDividerVisible?: boolean;\r\n        /**\r\n         * Set theme\r\n         */\r\n        theme?: Theme;\r\n        /**\r\n         * Make modal content scrollable instead of the whole modal\r\n         */\r\n        contentScrollable?: boolean;\r\n        /**\r\n         * Make the bottom section of the modal sticky\r\n         */\r\n        stickyBottom?: boolean;\r\n        /**\r\n         * Use different assets path for storybook\r\n         */\r\n        isInStorybook?: boolean;\r\n        /**\r\n         * Data test attr\r\n         */\r\n        dataTest?: string;\r\n        /**\r\n         * Show / hide close button of dialog\r\n         */\r\n        hasDialogCloseBtn?: boolean;\r\n        /**\r\n         * Enable / disable closing behavior when clicked on background\r\n         */\r\n        closeOnClickOutside?: boolean;\r\n        /**\r\n         * Animate modal opening / closing\r\n         */\r\n        animate?: boolean;\r\n        /**\r\n         * Prevent modal from closing\r\n         */\r\n        preventClose?: boolean;\r\n        /**\r\n         * Custom class for your css\r\n         */\r\n        cssClass?: string | string[];\r\n    }>(),\r\n    {\r\n        modalPosition: \"top\",\r\n        topDividerVisible: true,\r\n        bottomDividerVisible: true,\r\n        theme: \"light\",\r\n        isInStorybook: false,\r\n        contentScrollable: false,\r\n        hasDialogCloseBtn: true,\r\n        closeOnClickOutside: true,\r\n        animate: false,\r\n        preventClose: false,\r\n        cssClass: \"\",\r\n    }\r\n);\r\n\r\nconst emit = defineEmits([\"update:modelValue\", \"modal-closed\"]);\r\n\r\n// dont use defineModal macro. If you have v-if on the parent, it doesnt remove from StackedModals.\r\n// DefineModal can use later maybe, its too much new feature.\r\nconst modelValueInternal = computed({\r\n    get() {\r\n        return props.modelValue;\r\n    },\r\n    set(newValue) {\r\n        emit(\"update:modelValue\", newValue);\r\n    },\r\n});\r\n\r\n/**\r\n * Handles showing / hiding modal\r\n */\r\nprovide(isModalVisibleInjectionKey, modelValueInternal);\r\n\r\nconst closeDialogInternal = () => {\r\n    if (props.preventClose) return;\r\n\r\n    modelValueInternal.value = false;\r\n    emit(\"modal-closed\");\r\n};\r\n\r\nconst keyDownEventHandler = (e: KeyboardEvent) => {\r\n    if (e.key === \"Escape\") {\r\n        closeDialogInternal();\r\n    }\r\n};\r\n\r\nconst { addToStackedModals, removeFromStackedModals } = useStackedModals();\r\nconst dialogIsOpening = () => {\r\n    window.addEventListener(\"keydown\", keyDownEventHandler);\r\n    addToStackedModals();\r\n};\r\n\r\nconst dialogIsClosing = () => {\r\n    window.removeEventListener(\"keydown\", keyDownEventHandler);\r\n    removeFromStackedModals();\r\n};\r\n\r\nwatch(\r\n    modelValueInternal,\r\n    (newModelValue, oldModelValue) => {\r\n        if (newModelValue && !oldModelValue) {\r\n            dialogIsOpening();\r\n        } else if (!newModelValue && oldModelValue) {\r\n            dialogIsClosing();\r\n        }\r\n    },\r\n    {\r\n        immediate: true,\r\n    }\r\n);\r\n\r\nonBeforeUnmount(() => {\r\n    if (modelValueInternal.value) {\r\n        dialogIsClosing();\r\n    }\r\n});\r\n\r\nconst backgroundClass = computed(() => {\r\n    if (Array.isArray(props.cssClass)) {\r\n        return props.cssClass.filter(Boolean).map((cssClass) => `${cssClass}__background`);\r\n    }\r\n    return props.cssClass ? `${props.cssClass}__background` : undefined;\r\n});\r\n\r\nconst bodyClass = computed(() => {\r\n    if (Array.isArray(props.cssClass)) {\r\n        return props.cssClass.filter(Boolean).map((cssClass) => `${cssClass}__body`);\r\n    }\r\n    return props.cssClass ? `${props.cssClass}__body` : undefined;\r\n});\r\n\r\nconst scrollContent = (topPosition = 0, smoth = false) => {\r\n    if (!props.contentScrollable || !contentRef.value) {\r\n        return;\r\n    }\r\n\r\n    contentRef.value.scroll({ top: topPosition, behavior: smoth ? \"smooth\" : \"instant\" });\r\n};\r\n\r\ndefineExpose<DsModalDialogExposeType>({\r\n    dialogBodyRef,\r\n    scrollContent,\r\n});\r\n</script>\r\n","import script from \"./ds-modal-dialog.vue?vue&type=script&lang=ts&setup=true\"\nexport * from \"./ds-modal-dialog.vue?vue&type=script&lang=ts&setup=true\"\n\nconst __exports__ = script;\n\nexport default __exports__","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\tid: moduleId,\n\t\tloaded: false,\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n\t// Flag the module as loaded\n\tmodule.loaded = true;\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n// expose the modules object (__webpack_modules__)\n__webpack_require__.m = __webpack_modules__;\n\n","var deferred = [];\n__webpack_require__.O = (result, chunkIds, fn, priority) => {\n\tif(chunkIds) {\n\t\tpriority = priority || 0;\n\t\tfor(var i = deferred.length; i > 0 && deferred[i - 1][2] > priority; i--) deferred[i] = deferred[i - 1];\n\t\tdeferred[i] = [chunkIds, fn, priority];\n\t\treturn;\n\t}\n\tvar notFulfilled = Infinity;\n\tfor (var i = 0; i < deferred.length; i++) {\n\t\tvar [chunkIds, fn, priority] = deferred[i];\n\t\tvar fulfilled = true;\n\t\tfor (var j = 0; j < chunkIds.length; j++) {\n\t\t\tif ((priority & 1 === 0 || notFulfilled >= priority) && Object.keys(__webpack_require__.O).every((key) => (__webpack_require__.O[key](chunkIds[j])))) {\n\t\t\t\tchunkIds.splice(j--, 1);\n\t\t\t} else {\n\t\t\t\tfulfilled = false;\n\t\t\t\tif(priority < notFulfilled) notFulfilled = priority;\n\t\t\t}\n\t\t}\n\t\tif(fulfilled) {\n\t\t\tdeferred.splice(i--, 1)\n\t\t\tvar r = fn();\n\t\t\tif (r !== undefined) result = r;\n\t\t}\n\t}\n\treturn result;\n};","// getDefaultExport function for compatibility with non-harmony modules\n__webpack_require__.n = (module) => {\n\tvar getter = module && module.__esModule ?\n\t\t() => (module['default']) :\n\t\t() => (module);\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};","var getProto = Object.getPrototypeOf ? (obj) => (Object.getPrototypeOf(obj)) : (obj) => (obj.__proto__);\nvar leafPrototypes;\n// create a fake namespace object\n// mode & 1: value is a module id, require it\n// mode & 2: merge all properties of value into the ns\n// mode & 4: return value when already ns object\n// mode & 16: return value when it's Promise-like\n// mode & 8|1: behave like require\n__webpack_require__.t = function(value, mode) {\n\tif(mode & 1) value = this(value);\n\tif(mode & 8) return value;\n\tif(typeof value === 'object' && value) {\n\t\tif((mode & 4) && value.__esModule) return value;\n\t\tif((mode & 16) && typeof value.then === 'function') return value;\n\t}\n\tvar ns = Object.create(null);\n\t__webpack_require__.r(ns);\n\tvar def = {};\n\tleafPrototypes = leafPrototypes || [null, getProto({}), getProto([]), getProto(getProto)];\n\tfor(var current = mode & 2 && value; typeof current == 'object' && !~leafPrototypes.indexOf(current); current = getProto(current)) {\n\t\tObject.getOwnPropertyNames(current).forEach((key) => (def[key] = () => (value[key])));\n\t}\n\tdef['default'] = () => (value);\n\t__webpack_require__.d(ns, def);\n\treturn ns;\n};","// define getter functions for harmony exports\n__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.f = {};\n// This file contains only the entry chunk.\n// The chunk loading function for additional chunks\n__webpack_require__.e = (chunkId) => {\n\treturn Promise.all(Object.keys(__webpack_require__.f).reduce((promises, key) => {\n\t\t__webpack_require__.f[key](chunkId, promises);\n\t\treturn promises;\n\t}, []));\n};","// This function allow to reference async chunks\n__webpack_require__.u = (chunkId) => {\n\t// return url for filenames based on template\n\treturn \"js/\" + chunkId + \".\" + {\"32\":\"48399d772f0bd223\",\"33\":\"c6186bb29d30e820\",\"151\":\"f748a1f9728f208b\",\"157\":\"d4a8ba118eb15edb\",\"562\":\"c9180422f4bc3298\",\"575\":\"b271fd408fec1bef\",\"664\":\"37c98962611e742d\",\"679\":\"95b0c837bb08febf\",\"705\":\"35fe731aefa36165\",\"733\":\"c88c0ecdc13dffbb\",\"873\":\"bf8a8007b90bc04e\",\"932\":\"63a9ea520d21dca6\",\"1007\":\"0a2046bc1914f452\",\"1020\":\"8414718f4afb409a\",\"1264\":\"a0deea0c0b546693\",\"1388\":\"2d62431d425d7749\",\"1402\":\"a53611bd39a5c4a8\",\"1403\":\"df2e033c4222d584\",\"1523\":\"e47a364cf1793fcb\",\"1552\":\"a95d94cf0c0a7887\",\"1615\":\"dfe075cce62b542b\",\"1705\":\"940f93cff9237e39\",\"1904\":\"1e00baf24f1b7398\",\"1920\":\"58a8c73780e0c096\",\"1997\":\"49234859367ce7fc\",\"2003\":\"a7eb51f6083b6dcc\",\"2043\":\"8cc3056758cb1cb3\",\"2097\":\"9722903c93f96ac9\",\"2197\":\"f7975fc464f50f19\",\"2209\":\"179578950790dcfa\",\"2297\":\"7cee06d06b6ec74f\",\"2305\":\"763fe81108bc206b\",\"2318\":\"9ff6f996060cd03e\",\"2403\":\"241900472ad48ed1\",\"2442\":\"275784b347c00ec2\",\"2490\":\"10a5761b14030519\",\"2519\":\"94001b80963bf4e3\",\"2599\":\"ae772bf615ebbf49\",\"2653\":\"9e2280b17f99d3d9\",\"2716\":\"209a0b72be191410\",\"2748\":\"4468b016fd4f0bb2\",\"2905\":\"4f8d4d77886b2ce3\",\"3034\":\"6876e0b2b6d22945\",\"3042\":\"1887b3e19121ccbc\",\"3060\":\"a9fcae0411c73aa9\",\"3074\":\"5d9d8416b5c3eb9b\",\"3146\":\"ac8cee89191b2d95\",\"3167\":\"b58e985a4514903d\",\"3269\":\"3fb352b012fc2c20\",\"3436\":\"845d34a0cd440c07\",\"3656\":\"a5ce6fc9a7b01ef3\",\"3764\":\"0798fb9c460ad87d\",\"3828\":\"c251fe7154919326\",\"3839\":\"b51a10f421ed4033\",\"3890\":\"79ac481985cdcafe\",\"3913\":\"52505af6488f98d8\",\"3940\":\"cccc3eb3553beb7f\",\"3967\":\"f22ef87a04e5d1b3\",\"4026\":\"4b573d16a30ca2c4\",\"4079\":\"9adfbb4d364b8804\",\"4095\":\"190e950ac8d86556\",\"4252\":\"66afb7c7c7685905\",\"4555\":\"412be2376794cf63\",\"4575\":\"8edef21ae2fe2db0\",\"4651\":\"c623e1d2d2d3d03b\",\"4678\":\"83184a2f3e99defd\",\"4686\":\"e2e30d260969863c\",\"4709\":\"709573a0b4e7fbc0\",\"4766\":\"b739e91a8eb78c45\",\"4786\":\"e838552cae65b3ca\",\"4869\":\"a2ed4d566da2cdf4\",\"4976\":\"d9ec57336de164ae\",\"5039\":\"ac15889c66e356f4\",\"5091\":\"efd4a2652fbf4b42\",\"5167\":\"5a6e1327546c7f99\",\"5194\":\"048a10cb68d93a13\",\"5418\":\"cd6c34d8931d8a7e\",\"5438\":\"9cc3f82db587ec5c\",\"5522\":\"fa95ca08d6ec7e56\",\"5559\":\"51890f4f578d9419\",\"5639\":\"d2c488769f0567bc\",\"5762\":\"6ac28298955930e4\",\"5797\":\"644d2080393fed9c\",\"5798\":\"c92fc870ef183777\",\"5877\":\"646807a45b9b599f\",\"5926\":\"fe0fdbee627f4ce9\",\"6145\":\"95f3d9ca5f95e24e\",\"6168\":\"7a93dae595b84058\",\"6328\":\"00d13300f0ae4449\",\"6470\":\"2c3c9752bb507b3b\",\"6472\":\"a3cc39868c8538a9\",\"6509\":\"3cdcf6da6aa365b4\",\"6600\":\"1cae439812c5b969\",\"6637\":\"6f83929a64afae46\",\"6725\":\"ba1c971177063474\",\"6847\":\"4bbf198f8956329e\",\"6937\":\"0b7febf76d2bd49f\",\"7083\":\"553f2e7481ec8d42\",\"7086\":\"d1f1b5804a2d791d\",\"7136\":\"01170464bc9a235b\",\"7146\":\"a3f48d8384288d13\",\"7148\":\"44ab0609ee82d440\",\"7274\":\"7f1e23ee4e114bd3\",\"7277\":\"ddef976aeef62521\",\"7280\":\"1fd63d41ff114580\",\"7431\":\"17acf95388af1e01\",\"7589\":\"93540df78f72f0ad\",\"7733\":\"8846d893d729046e\",\"7810\":\"1e1fabcc107b56ea\",\"7828\":\"a5fac13fae50a619\",\"8046\":\"ee0ae55df84ea02b\",\"8082\":\"3ea2df845fd70a11\",\"8178\":\"4d26c5edd46c6699\",\"8197\":\"fdb1b0a6c7de7be4\",\"8229\":\"05de98d01ec561e6\",\"8292\":\"a2a162e2bb7f34a2\",\"8326\":\"4a2f6667626e060c\",\"8397\":\"030a29639c062a48\",\"8438\":\"185de0db7a220dc9\",\"8539\":\"95e07d7c54144bfb\",\"8599\":\"a9549dca00bf5b2f\",\"8650\":\"54cadea57519aa07\",\"8764\":\"bbe6400403b8250d\",\"8791\":\"2d691002ff19dc6d\",\"8861\":\"b63464cf3c038528\",\"8872\":\"33651060075d3f4f\",\"8882\":\"1b9e280c7024450d\",\"9095\":\"7ee187d930f75448\",\"9141\":\"f1514ab767a51283\",\"9156\":\"785e329235daf19a\",\"9318\":\"264e50025be3b993\",\"9410\":\"a4267e66f1c75cc3\",\"9427\":\"362a0ee10e8777cc\",\"9508\":\"e46e71c55b789fc2\",\"9665\":\"8470ce56fa7022f4\",\"9712\":\"f3343c61144d0722\",\"9841\":\"c58177bef57d91f7\",\"9889\":\"31db29db9015bf02\",\"9989\":\"a9ef1c467df9cd54\"}[chunkId] + \".js\";\n};","// This function allow to reference async chunks\n__webpack_require__.miniCssF = (chunkId) => {\n\t// return url for filenames based on template\n\treturn \"css/\" + chunkId + \".css\";\n};","__webpack_require__.g = (function() {\n\tif (typeof globalThis === 'object') return globalThis;\n\ttry {\n\t\treturn this || new Function('return this')();\n\t} catch (e) {\n\t\tif (typeof window === 'object') return window;\n\t}\n})();","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","var inProgress = {};\nvar dataWebpackPrefix = \"@sazka/kasa-loyalty:\";\n// loadScript function to load a script via script tag\n__webpack_require__.l = (url, done, key, chunkId) => {\n\tif(inProgress[url]) { inProgress[url].push(done); return; }\n\tvar script, needAttach;\n\tif(key !== undefined) {\n\t\tvar scripts = document.getElementsByTagName(\"script\");\n\t\tfor(var i = 0; i < scripts.length; i++) {\n\t\t\tvar s = scripts[i];\n\t\t\tif(s.getAttribute(\"src\") == url || s.getAttribute(\"data-webpack\") == dataWebpackPrefix + key) { script = s; break; }\n\t\t}\n\t}\n\tif(!script) {\n\t\tneedAttach = true;\n\t\tscript = document.createElement('script');\n\n\t\tscript.charset = 'utf-8';\n\t\tscript.timeout = 120;\n\t\tif (__webpack_require__.nc) {\n\t\t\tscript.setAttribute(\"nonce\", __webpack_require__.nc);\n\t\t}\n\t\tscript.setAttribute(\"data-webpack\", dataWebpackPrefix + key);\n\n\t\tscript.src = url;\n\t}\n\tinProgress[url] = [done];\n\tvar onScriptComplete = (prev, event) => {\n\t\t// avoid mem leaks in IE.\n\t\tscript.onerror = script.onload = null;\n\t\tclearTimeout(timeout);\n\t\tvar doneFns = inProgress[url];\n\t\tdelete inProgress[url];\n\t\tscript.parentNode && script.parentNode.removeChild(script);\n\t\tdoneFns && doneFns.forEach((fn) => (fn(event)));\n\t\tif(prev) return prev(event);\n\t}\n\tvar timeout = setTimeout(onScriptComplete.bind(null, undefined, { type: 'timeout', target: script }), 120000);\n\tscript.onerror = onScriptComplete.bind(null, script.onerror);\n\tscript.onload = onScriptComplete.bind(null, script.onload);\n\tneedAttach && document.head.appendChild(script);\n};","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","__webpack_require__.nmd = (module) => {\n\tmodule.paths = [];\n\tif (!module.children) module.children = [];\n\treturn module;\n};","__webpack_require__.p = \"/frontend/kasa-loyalty/\";","if (typeof document === \"undefined\") return;\nvar createStylesheet = (chunkId, fullhref, oldTag, resolve, reject) => {\n\tvar linkTag = document.createElement(\"link\");\n\n\tlinkTag.rel = \"stylesheet\";\n\tlinkTag.type = \"text/css\";\n\tif (__webpack_require__.nc) {\n\t\tlinkTag.nonce = __webpack_require__.nc;\n\t}\n\tvar onLinkComplete = (event) => {\n\t\t// avoid mem leaks.\n\t\tlinkTag.onerror = linkTag.onload = null;\n\t\tif (event.type === 'load') {\n\t\t\tresolve();\n\t\t} else {\n\t\t\tvar errorType = event && event.type;\n\t\t\tvar realHref = event && event.target && event.target.href || fullhref;\n\t\t\tvar err = new Error(\"Loading CSS chunk \" + chunkId + \" failed.\\n(\" + errorType + \": \" + realHref + \")\");\n\t\t\terr.name = \"ChunkLoadError\";\n\t\t\terr.code = \"CSS_CHUNK_LOAD_FAILED\";\n\t\t\terr.type = errorType;\n\t\t\terr.request = realHref;\n\t\t\tif (linkTag.parentNode) linkTag.parentNode.removeChild(linkTag)\n\t\t\treject(err);\n\t\t}\n\t}\n\tlinkTag.onerror = linkTag.onload = onLinkComplete;\n\tlinkTag.href = fullhref;\n\n\n\tif (oldTag) {\n\t\toldTag.parentNode.insertBefore(linkTag, oldTag.nextSibling);\n\t} else {\n\t\tdocument.head.appendChild(linkTag);\n\t}\n\treturn linkTag;\n};\nvar findStylesheet = (href, fullhref) => {\n\tvar existingLinkTags = document.getElementsByTagName(\"link\");\n\tfor(var i = 0; i < existingLinkTags.length; i++) {\n\t\tvar tag = existingLinkTags[i];\n\t\tvar dataHref = tag.getAttribute(\"data-href\") || tag.getAttribute(\"href\");\n\t\tif(tag.rel === \"stylesheet\" && (dataHref === href || dataHref === fullhref)) return tag;\n\t}\n\tvar existingStyleTags = document.getElementsByTagName(\"style\");\n\tfor(var i = 0; i < existingStyleTags.length; i++) {\n\t\tvar tag = existingStyleTags[i];\n\t\tvar dataHref = tag.getAttribute(\"data-href\");\n\t\tif(dataHref === href || dataHref === fullhref) return tag;\n\t}\n};\nvar loadStylesheet = (chunkId) => {\n\treturn new Promise((resolve, reject) => {\n\t\tvar href = __webpack_require__.miniCssF(chunkId);\n\t\tvar fullhref = __webpack_require__.p + href;\n\t\tif(findStylesheet(href, fullhref)) return resolve();\n\t\tcreateStylesheet(chunkId, fullhref, null, resolve, reject);\n\t});\n}\n// object to store loaded CSS chunks\nvar installedCssChunks = {\n\t3524: 0\n};\n\n__webpack_require__.f.miniCss = (chunkId, promises) => {\n\tvar cssChunks = {\"1007\":1,\"1402\":1,\"1615\":1,\"4766\":1,\"7810\":1,\"8326\":1,\"9410\":1,\"9989\":1};\n\tif(installedCssChunks[chunkId]) promises.push(installedCssChunks[chunkId]);\n\telse if(installedCssChunks[chunkId] !== 0 && cssChunks[chunkId]) {\n\t\tpromises.push(installedCssChunks[chunkId] = loadStylesheet(chunkId).then(() => {\n\t\t\tinstalledCssChunks[chunkId] = 0;\n\t\t}, (e) => {\n\t\t\tdelete installedCssChunks[chunkId];\n\t\t\tthrow e;\n\t\t}));\n\t}\n};\n\n// no hmr\n\n// no prefetching\n\n// no preloaded","// no baseURI\n\n// object to store loaded and loading chunks\n// undefined = chunk not loaded, null = chunk preloaded/prefetched\n// [resolve, reject, Promise] = chunk loading, 0 = chunk loaded\nvar installedChunks = {\n\t3524: 0\n};\n\n__webpack_require__.f.j = (chunkId, promises) => {\n\t\t// JSONP chunk loading for javascript\n\t\tvar installedChunkData = __webpack_require__.o(installedChunks, chunkId) ? installedChunks[chunkId] : undefined;\n\t\tif(installedChunkData !== 0) { // 0 means \"already installed\".\n\n\t\t\t// a Promise means \"currently loading\".\n\t\t\tif(installedChunkData) {\n\t\t\t\tpromises.push(installedChunkData[2]);\n\t\t\t} else {\n\t\t\t\tif(true) { // all chunks have JS\n\t\t\t\t\t// setup Promise in chunk cache\n\t\t\t\t\tvar promise = new Promise((resolve, reject) => (installedChunkData = installedChunks[chunkId] = [resolve, reject]));\n\t\t\t\t\tpromises.push(installedChunkData[2] = promise);\n\n\t\t\t\t\t// start chunk loading\n\t\t\t\t\tvar url = __webpack_require__.p + __webpack_require__.u(chunkId);\n\t\t\t\t\t// create error before stack unwound to get useful stacktrace later\n\t\t\t\t\tvar error = new Error();\n\t\t\t\t\tvar loadingEnded = (event) => {\n\t\t\t\t\t\tif(__webpack_require__.o(installedChunks, chunkId)) {\n\t\t\t\t\t\t\tinstalledChunkData = installedChunks[chunkId];\n\t\t\t\t\t\t\tif(installedChunkData !== 0) installedChunks[chunkId] = undefined;\n\t\t\t\t\t\t\tif(installedChunkData) {\n\t\t\t\t\t\t\t\tvar errorType = event && (event.type === 'load' ? 'missing' : event.type);\n\t\t\t\t\t\t\t\tvar realSrc = event && event.target && event.target.src;\n\t\t\t\t\t\t\t\terror.message = 'Loading chunk ' + chunkId + ' failed.\\n(' + errorType + ': ' + realSrc + ')';\n\t\t\t\t\t\t\t\terror.name = 'ChunkLoadError';\n\t\t\t\t\t\t\t\terror.type = errorType;\n\t\t\t\t\t\t\t\terror.request = realSrc;\n\t\t\t\t\t\t\t\tinstalledChunkData[1](error);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t};\n\t\t\t\t\t__webpack_require__.l(url, loadingEnded, \"chunk-\" + chunkId, chunkId);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n};\n\n// no prefetching\n\n// no preloaded\n\n// no HMR\n\n// no HMR manifest\n\n__webpack_require__.O.j = (chunkId) => (installedChunks[chunkId] === 0);\n\n// install a JSONP callback for chunk loading\nvar webpackJsonpCallback = (parentChunkLoadingFunction, data) => {\n\tvar [chunkIds, moreModules, runtime] = data;\n\t// add \"moreModules\" to the modules object,\n\t// then flag all \"chunkIds\" as loaded and fire callback\n\tvar moduleId, chunkId, i = 0;\n\tif(chunkIds.some((id) => (installedChunks[id] !== 0))) {\n\t\tfor(moduleId in moreModules) {\n\t\t\tif(__webpack_require__.o(moreModules, moduleId)) {\n\t\t\t\t__webpack_require__.m[moduleId] = moreModules[moduleId];\n\t\t\t}\n\t\t}\n\t\tif(runtime) var result = runtime(__webpack_require__);\n\t}\n\tif(parentChunkLoadingFunction) parentChunkLoadingFunction(data);\n\tfor(;i < chunkIds.length; i++) {\n\t\tchunkId = chunkIds[i];\n\t\tif(__webpack_require__.o(installedChunks, chunkId) && installedChunks[chunkId]) {\n\t\t\tinstalledChunks[chunkId][0]();\n\t\t}\n\t\tinstalledChunks[chunkId] = 0;\n\t}\n\treturn __webpack_require__.O(result);\n}\n\nvar chunkLoadingGlobal = globalThis[\"kasaWebpackJsonp\"] = globalThis[\"kasaWebpackJsonp\"] || [];\nchunkLoadingGlobal.forEach(webpackJsonpCallback.bind(null, 0));\nchunkLoadingGlobal.push = webpackJsonpCallback.bind(null, chunkLoadingGlobal.push.bind(chunkLoadingGlobal));","// startup\n// Load entry module and return exports\n// This entry module depends on other loaded chunks and execution need to be delayed\nvar __webpack_exports__ = __webpack_require__.O(undefined, [504], () => (__webpack_require__(3743)))\n__webpack_exports__ = __webpack_require__.O(__webpack_exports__);\n"],"names":["map","webpackAsyncContext","req","__webpack_require__","o","Promise","resolve","then","e","Error","code","ids","id","all","slice","keys","Object","module","exports","t","authenticationData","reactive","userName","password","pin","consents","authenticationErrors","phoneErrorMessage","passwordErrorMessage","pinErrorMessage","newPasswordErrorMessage","consentsRequireError","clearAuthenticationErrors","useAuthenticationData","emptyFlow","forgPassFlow","welcomeFlow","loginFlow","registrationFlow","regPasswordFlow","verifyPhoneFlow","authenticationFlows","none","login","registration","regPassword","verifyPhone","flowDataLayerService","accoountState","dataLayerRegistrationPersonal","dataLayerLoginSecondStep","dataLayerVerifyPhone","dataLayerRegistrationCode","dataLayerRegistrationCodeConfirmed","dataLayerRegistrationPasswordCreation","dataLayerRegistrationSuccess","dataLayerRegistrationFinished","isAuthorisationRestricted","getIsAuthorisationRestricted","settings","authentication","restrictedFunctionsPages","some","url","window","location","pathname","restrictedAuthenticationService","href","root","authenticationFlowIndex","ref","authenticationFlow","authenticationStep","computed","value","containsFlowState","state","includes","nextFlowStep","length","prevFlowStep","setFlow","newFlow","stepName","newIndex","indexOf","closeAccountModal","openLoginModal","openLoginPassModal","openRegistrationModal","openRegPasswordModal","openVerifyPhoneModal","useAuthenticationFlows","async","phoneSendVerificationService","phone","callPhoneSendVerification","ex","reject","parseErrorMessage","verifyPhoneService","callVerifyPhone","newPasswordService","token","callNewPassword","isErrorDto","sendPinProcess","sendAllways","otpRequestService","otpToken","pinVerificationProcess","otpLoginService","newPasswordProcess","playerStatusProcess","playerStatus","playerStatusService","isRegistered","isPasswordSet","isPhoneVerified","getConsetsForRegApi","useRegistrationConsents","registrationProcess","callRegisterUser","errorMessage","nextAuthenticationStep","canNextStep","Loader","show","hide","prevAuthenticationStep","useAuthentication","fetchWecomaAuthKey","clientId","response","httpClient","post","purpose","data","initialized","reactiveBreakpoints","useBreakpoints","breakpoints","initialize","reduce","acc","x","reactiveBreakpoint","ResponsiveUtils","filter","isInUse","key","minSize","breakpoint","brkpnt","find","media","matchMedia","matches","onchange","_hoisted_1","_hoisted_2","_hoisted_3","_hoisted_4","_defineComponent","__name","setup","__props","consentToAllPurposes","redirectToPreferenceCenter","redirectToPrivacyPolicy","consentToOnlyNecessaryPurposes","useWecomaIntegration","preferenceCenterLink","appSettings","WecomaConstants","WECOMA_CODE","WECOMA_AUTHKEY","header","environment","gdpr","gdprHeader","text","gdprMessage","headerMobile","gdprHeaderMobile","textMobile","gdprMessageMobile","image","gdprImageUrl","hidingClass","setTimeout","consentAll","pushAllConsentBar","consentToOnlyNecessary","pushEssentialsConsentBar","imageVisible","hideKulicnik","_e$target","sm2","target","scrollTop","onMounted","prefCenterLinkElement","document","getElementById","prefCenterLinkElementMobile","addEventListener","privacyPolicyLinkElement","pushConsentBarShow","_ctx","_cache","_openBlock","_createElementBlock","class","_normalizeClass","_createBlock","WebpImage","src","_unref","alt","_createCommentVNode","_createElementVNode","onScroll","innerHTML","type","onClick","__exports__","loaded","init","initConsentBar","wecomaRedirectActive","waitForUserAccount","useUserAccount","watch","isUserLoggedIn","newIsUserLoggedIn","getLinkToPrefCenter","immediate","shouldCookieBarOpen","component","createApp","ConsentBar","createElement","body","appendChild","mount","logException","message","getAuthKey","userAccountData","authKey","domain","link","useGdpr","getConsents","fetchConsents","sazkaAlert","consentsIdDescriptions","description","getDisplayedConsets","_consents$value","consentDtos","forEach","constestIdDescription","item","push","enabled","mandatory","isMandatoryConsentTrue","_consents$value2","consent","currentConsent","consentsDto","consentDto","version","descriptions","nextVersion","requiresConsent","updateDate","lastUpdateTime","language","tokenCookieName","authTokenModel","cookieStore","get","cookieDurability","_authTokenModel$value","parseInt","tokenParams","expiresIn","authToken","_authTokenModel$value2","storeUserToken","tokenModel","set","expires","obtainableBonusCookieName","isObtainableBonusOpenInternal","isObtainableBonusOpen","readonly","storeObtainableBonusClosed","removeUserCookies","remove","otpSentCookieName","otpSentCookieDuration","status","fetchPlayerStatus","blockedSince","alreadySentUserName","callOtpRequest","tokens","callLogin","oAuthToken","tokenType","loginService","playerContactService","playerData","_playerData$playerPer","_playerData$playerPer2","_playerData$playerPer3","_playerData$playerPer4","playerContactData","birthdate","playerPersonalInfo","cardId","cardStatus","email","firstName","gender","lastName","PlayerContactApi","callPlayerContact","console","error","logoutService","onlyInternal","isMobileApp","triggerMobileAppEvent","callLogout","search","playerDetailService","playerDetail","fetchPlayerDetail","verifyEmailService","callVerifyEmail","dataLayerRegistrationMailExpired","userNotificationState","externalClientId","_userAccountData$valu","newClientId","tryGetUserAccount","onLoginCallbacks","addOnLoginCallback","callbackFunction","resolveLoginCallbacks","callback","loggedInWaiters","res","resolveLoggedInWaiters","refreshPlayerData","getNotificationState","action","UrlHelper","getQueryString","username","dataLayerUserInfo","clearUrlParams","newIsLoggedIn","classList","add","loginUser","dataLayerFirstLogin","dataLayerLogin","formatSazkaCardNumber","userProfile","_userProfile$pendingC","_userProfile$pendingC2","pendingContactVerifications","EMAIL","contactValue","object","defaultErrorMessage","playDigitalClientV1","callLockCard","callUnlockCard","callNewCard","callUpdatePersonalInfo","put","callUpdatePhone","newPhone","contactType","newValue","callUpdateEmail","newEmail","callChangePassword","oldPassword","newPassword","siteId","resourceOwnerCredentials","USERNAME","PASSWORD","logoutUrl","delete","phoneNumber","profile","registrationLevel","personalInfo","phones","MOBILE","number","verificationCode","callEmailSendVerification","callClosePlayerAccount","removeData","reason","headers","Authorization","getSagApiUrl","useSagOptions","config","baseURL","Accept","axios","create","addSagAuthInterceptor","addLoggerInterceptor","addOAuthInterceptor","addPlayerIdInterceptor","addLogoutInterceptor","addErrorInterceptor","csrfToken","getCsrfToken","_document$getElements","getElementsByName","csrfInterceptor","addCsrfInterceptor","interceptors","request","use","synchronous","contactRequestData","getContestPersonalisation","granted","errorInterceptor","errorModel","responseCode","responseStatus","getRequestConfig","baseUrl","method","JSON","parse","stringify","getResponseData","statusText","getErrorData","toJSON","logRequest","logDebugEvent","logResponse","logError","logRequestInternal","err","logResponseInternal","logErrorInternal","logoutInterceptor","startsWith","oAuthInterceptor","playerIdInterceptor","sagSubscriptionKey","sagAuthInterceptor","memberId","dataLayer","user","page","kind","verticalCode","verticalCodeStrict","gameCode","gameCodeStrict","event","dataLayerRegistrationError","fieldName","registrationError","field","dataLayerWheelSpinSuccess","spinId","spin","dataLayerAppDownload","platform","download","name","dataLayerAddFavoriteBet","label","addbet","dataLayerEditFavoriteBet","editbet","dataLayerRemoveFavoriteBet","deletebet","dataLayerSubmitPersonalData","caseSensitive","replacePlusWithSpace","replace","expression","regex","RegExp","results","exec","replacedResult","decodeURIComponent","urlParams","newUrl","parameter","history","replaceState","title","clearUrlParam","urlParam","this","rootUrl","loginUrl","wheel","standalone","sazkaAlertProps","isOpen","ctaText","ctaYellow","ctaFunction","watchStop","newIsOpen","initSelectBox","element","options","selectedValue","choice","selected","Choices","choices","searchEnabled","shouldSort","allowHTML","itemSelectText","resetSelectOptions","setChoices","useSelectBox","elements","querySelectorAll","getDataLayerResolution","resolution","breakpointUp","logDataLayer","responseDesignCategory","breakpointName","breakpointDown","breakpointBetween","breakpointUpName","breakpointDownName","isInternetExplorer","contains","isSafari","isIpad","test","navigator","userAgent","isIos","isAndroid","isAndroidFirefox","isTouchDevice","maxTouchPoints","isOnlyTouchDevice","isMovSupported","xs","xs2","xs3","sm","sm05","sm1","sm3","sm4","md","lg","lg2","lg3","xl","xxl","Store","constructor","_defineProperty","_type","stringValue","setToSession","setToLocal","setToCookie","val","getFromSession","getFromLocal","getFromCookie","removeFromSession","removeFromLocal","removeFromCookie","sessionStorage","setItem","localStorage","Cookies","path","secure","getItem","removeItem","localStore","useBundleLoader","bundle","folder","loadingClass","props","componentName","String","required","showLoader","Boolean","dataProps","loader","componentDestinationPath","substr","lastIndexOf","_props$componentName$","split","componentType","markRaw","defineAsyncComponent","handleLoaderChange","parent","$parent","$el","loaderHandler","_resolveDynamicComponent","_mergeProps","ref_key","onLoader","getPrimevueConfig","locale","notContains","endsWith","equals","notEquals","noFilter","lt","lte","gt","gte","dateIs","dateIsNot","dateBefore","dateAfter","clear","apply","matchAll","matchAny","addRule","removeRule","accept","choose","upload","cancel","completed","pending","dayNames","dayNamesShort","dayNamesMin","monthNames","monthNamesShort","chooseYear","chooseMonth","chooseDate","prevDecade","nextDecade","prevYear","nextYear","prevMonth","nextMonth","prevHour","nextHour","prevMinute","nextMinute","prevSecond","nextSecond","am","pm","today","weekHeader","firstDayOfWeek","dateFormat","weak","medium","strong","passwordPrompt","emptyFilterMessage","searchMessage","selectionMessage","emptySelectionMessage","emptySearchMessage","emptyMessage","aria","trueLabel","falseLabel","nullLabel","star","stars","selectAll","unselectAll","close","previous","next","navigation","moveTop","moveUp","moveDown","moveBottom","moveToTarget","moveToSource","moveAllToTarget","moveAllToSource","pageLabel","firstPageLabel","lastPageLabel","nextPageLabel","prevPageLabel","rowsPerPageLabel","previousPageLabel","jumpToPageDropdownLabel","jumpToPageInputLabel","selectRow","unselectRow","expandRow","collapseRow","showFilterMenu","hideFilterMenu","filterOperator","filterConstraint","editRow","saveEdit","cancelEdit","listView","gridView","slide","slideNumber","zoomImage","zoomIn","zoomOut","rotateRight","rotateLeft","useVue","useDynamicComponents","roots","loadComponent","node","getAttribute","dataset","toLowerCase","p","ComponentLoader","PrimeVue","FixedHelp","$","ready","elem","cookieName","removeClass","hasClass","addClass","click","toggleClass","ModalVideo","videoUrl","_element","on","preventDefault","button","currentTarget","attr","html","markupPopup","append","delay","ms","useKeenAutoplayPlugin","timeout","keenAutoplayPlugin","slider","timeoutHandler","mouseOver","clearNextTimeout","clearTimeout","nextTimeout","loop","container","BenefitSlider","constructSlider","nodes","KeenSlider","vertical","selector","slides","origin","perView","spacing","defaultAnimation","duration","created","prev","Footer","slideDown","inited","slideUp","resize","initFooter","elems","each","index","useLazyLoading","yall","observeChanges","initChat","po","referrer","encodeURIComponent","substring","protocol","env","registerChatToWindow","showChat","_userData$value","userData","Username","creativeCode","campaignCode","ProactiveChat","sce_instance","documentReady","jQuery","initMobileAppFeatures","isShown","lockNumber","showLoaderFromBackend","showLoaderIn","aboveAll","color","showTimeout","showNow","counted","isEditMode","querySelector","textContent","showAboveAll","showNowAboveAll","hideTimeout","_Loader","linkText","buttonText","customHtml","hasExtraButton","errorCode","heading","maxWidth","Math","max","width","template","$modal","modal","webViewDebugModeOn","useWebviewDebugMode","initWebviewDebugMode","debugBtn","className","attributes","onclick","_window$player","_session$value","_window$player2","_session$value2","session","useNgSession","appName","player","PlayerID","sessionToken","SessionToken","insertAdjacentHTML","showEventAlert","interfaceName","methodName","argument","eventMessage","undefined","confirm","anyWindow","_anyWindow$webkit$mes","webkit","messageHandlers","postMessage","parameters","androindInterface","hasOwnProperty","initAutoMobileAppEvents","eventName","isInAppView","isDocumentVisible","isEventHandlerBound","bindEventHandler","hidden","usePageVisibility","headline","subheadline","imageSrc","imageAlt","displayHeadlineAsHtml","dialogLabelId","default","_toDisplayString","subText","btnCloseText","animate","bottomDividerVisible","alertImageSrc","modalClass","buttonClass","btnHrefText","app","getCurrentInstance","isModalVisible","handleModalClosed","nextTick","appContext","unmount","DsModalDialog","modelValue","$event","top","_withCtx","height","_createVNode","DsTopSlotHeadlineSubheadline","bottom","DsButton","_createTextVNode","_","showAlert","alertRef","isVisible","DsModalAlert","newVal","logLogin","contact","isLoggedIn","contentType","playerId","birthday","Birthday","city","City","PlayerName","PlayerLastName","PlayerEmail","PlayerCellphone","vipLevel","PlayerVipLevel","registrationDate","PlayerRegistrationDate","countryCode","CountryCode","getNgTimeDuration","ngActionTimestamp","ngServerTime","start","Date","server","now","storage","useCookieStorage","balance","logonDate","showBalance","isSessionStateFromCacheReady","forceSessionRestore","_window","_window2","_window3","balanceNumeric","_balance$value","Balance","loginDurationMilliseconds","refreshInterval","loginDurationFormatted","DateTimeUtils","formatDuration","restoreFromWebView","refreshBalance","refreshSession","hasEnoughMoney","getMissingMoney","clearSession","showRegistrationOrLogin","restoreSessionFromApi","initFromCookies","setupWatchers","logout","restoreSessionPassedFromBackend","ng_fw","restoreSession","isPostLoginPopupRequired","notAbleToRestoreSessionTimeout","stopWatch","DisplayBalance","force","newBalance","getDisplayBalance","newSession","getSessionDetails","requiredAmount","sub","setCookie","startLoginDurationTimer","setInterval","watchEffect","_balance$value2","_session$value3","_session$value4","_session$value5","_session$value6","sameSite","LoginTimeStamp","ServerTimeStamp","setAuthenticatedBodyClass","clearInterval","showLogin","scrollPositionMemory","disablePageScroll","scrollY","style","setProperty","toString","enablePageScroll","removeProperty","scrollTo","getPageScrollY","usePageScrollService","modalsCounter","newModalsCounter","oldModalsCounter","addToStackedModals","removeFromStackedModals","useStackedModals","culture","formatBlogDate","date","isToday","formatTime","isTomorrow","formatWeekday","formatDate","format","weekday","year","month","day","formatDateShort","formatDateWithoutYear","hour","minute","formatTimeShort","formatDateTimeLong","formatDateTimeShort","formatDateWithWeekday","formatLongWeekdayEn","formatEn","formatDateWithDay","dateAsDate","currentDateString","getDay","formatLongDateWithWeekday","getLocalIsoString","monthStr","addLeadingZero","getMonth","dayStr","getDate","hourStr","getHours","minStr","getMinutes","secStr","getSeconds","getFullYear","formatCountdown","seconds","days","floor","formatAfterXDaysLabel","formatCountdownLong","hours","formatAfterXHoursLabel","millis","longFormat","str","second","minutes","mask","dayCount","hoursCount","formatAfterXMinutesLabel","minutesCount","atWeekdayLabel","dayOfWeek","useOnPrefixInsteadOfAt","atPrefix","prefix","dayOfWeekName","atWeekdayWithDate","getTimeFrames","timeFrame","atWeekdayWithDateAndTimeframe","getDuration","d","h","m","s","trimTime","copy","getTime","setMilliseconds","setSeconds","setMinutes","setHours","formatDateUnit6thForm","unitsCount","unitType","formattedUnit","getDateOnly","tomorrow","setDate","getCountdownUnitLength","timeRemaining","unit","getTotalHours","asDays","asHours","getCountdownUnitLabel","intValue","Intl","DateTimeFormat","num","readyState","impress","promos","position","useWecomaDatalayer","cookieBarMode","cookieBarModeExpiration","pushViewCookieBarInitial","view","cmp","stage","pushViewCookieBarRecheckAll","expirationDays","pushViewCookieBarRecheckSome","pushAllPurposesConsentClick","purposeCodes","grantConsent","pushRedirectToPreferenceCenter","variant","openPreferences","pushReditectToPrivacyPolicy","openPrivacyPolicy","pushThirdParty","pushThirdPartyConsent","pushOverlayRedirectToPreferenceCenter","pushOnlyNecessaryPurposesConsent","revokeConsent","pushLinksClickConsentBar","ALL_RECHECK_EXPIRATION","SOME_RECHECK_EXPIRATION","consentsCached","CONSENT_CACHE_COOKIE_NAME","essential","analytics","marketing","thirdpartycontent","getWecomaCookieValue","COOKIE_EXPIRATION","deep","wecomaLoaded","Wecoma","onready","analyticsConsented","marketingConsented","thirdPartyConsented","_gdpr","wecoma","isConsented","currentCookieValue","getNowTimestampInSeconds","createWecomaCookieObject","createdAt","setWecomaCookie","COOKIE_NAME","btoa","getWecomaCookieCreateTimestamp","_currentCookieValue","atob","wecomaCookieExists","allPurposesConsented","clientAuthKey","allPurposesRevoked","daysToSeconds","recheckAllExpired","recheckSomeExpired","_purposes$map","purposes","retrievePurposes","contexts","authKeyTypes","join","eventBus","emit","GlobalEvents","ConsentsChanged","cookieTypeConsentedCached","cookieType","consentToThirdParty","retrievePurpose","_purposes$map2","revoke","redirectQueryString","UrlUtils","WECOMA_CODE_DEH","WECOMA_CODE_KASA","isKasa","mitt","trimEndSlash","apiName","toTrack","appInsights","isDev","ngSessionRef","extensions","extensionConfig","DebugPlugin","debugPluginInstance","identifier","trackers","ApplicationInsights","connectionString","disableAjaxTracking","disableFetchTracking","disableDataLossAnalysis","enableUnhandledPromiseRejectionTracking","telemetryInitializer","envelope","_ngSessionRef","mobileView","addTelemetryInitializer","loadAppInsights","trackEvent","properties","_appInsights","trackException","exception","_appInsights2","trackMetric","_appInsights3","average","useAppInsights","enabledSegments","_appSettings$Features","isEnabledAllTrafic","enableSegmentName","logEvent","codename","log","segmentName","isMobile","ngLoader","xs1","URL","hash","getUrlWithoutParams","removeUrlPath","urlPath","isStorageAvailable","useWebStorageTest","storageType","canUseStorage","canSetValue","storageQueue","processStorageQueue","cookieStorage","useLocalStorage","useSessionStorage","itemName","cookieAttributes","useWebStorageQueue","enqueue","useWebStorage","getJson","setJson","WebpHelper","webpSupport","webpUrl","source","srcset","webpSource","imgUrlx1","imgUrlx2","srcSet","imgSource","pictureTag","img1x","img2x","cssClass","isLazyload","hasWebpSupport","documentElement","videoTag","fallback","videoSource","img","createPictureTag","imageUrl","images","isVideo","tag","theme","size","isDisabled","iconLeft","iconRight","isInStorybook","openInNewTab","isExternal","isBlockSize","dataTest","htmlType","eventArgument","expose","__expose","slots","useSlots","rootElement","mobileAppIntegration","hrefFormatted","_props$href","tagName","classes","rel","disabled","regexp","getThinIconName","iconName","getRegularIconName","buttonClickHandler","DsIcon","_renderSlot","$slots","iconNames","_hoisted_5","_hoisted_6","swapBreakpoint","iconSize","thin","regular","isSizeSet","isThin","isRegular","getViewBox","getHref","resolvedThinIconName","thinIconName","viewBox","_Fragment","loadingPriority","get2x","rootRef","is2xEnabled","get2xSrc","srcUrl","getSrcset","src1x","src2x","imgSrcset","parts","webpSrcset","webpSrc","pattern","extension","mimeType","displayWebp","loading","isModalVisibleInjectionKey","Symbol","isVertical","isStackMedium","modalPosition","topDividerVisible","contentScrollable","stickyBottom","hasDialogCloseBtn","closeOnClickOutside","preventClose","emits","__emit","dialogBodyRef","contentRef","modelValueInternal","provide","closeDialogInternal","keyDownEventHandler","dialogIsOpening","dialogIsClosing","removeEventListener","newModelValue","oldModelValue","onBeforeUnmount","backgroundClass","Array","isArray","bodyClass","scrollContent","topPosition","smoth","scroll","behavior","_Teleport","to","_Transition","$attrs","role","content","DsDivider","__webpack_module_cache__","moduleId","cachedModule","__webpack_modules__","call","deferred","O","result","chunkIds","fn","priority","notFulfilled","Infinity","i","fulfilled","j","every","splice","r","n","getter","__esModule","a","leafPrototypes","getProto","getPrototypeOf","obj","mode","ns","def","current","getOwnPropertyNames","definition","defineProperty","enumerable","f","chunkId","promises","u","miniCssF","g","globalThis","Function","prop","prototype","inProgress","dataWebpackPrefix","l","done","script","needAttach","scripts","getElementsByTagName","charset","nc","setAttribute","onScriptComplete","onerror","onload","doneFns","parentNode","removeChild","bind","head","toStringTag","nmd","paths","children","createStylesheet","fullhref","oldTag","linkTag","nonce","onLinkComplete","errorType","realHref","insertBefore","nextSibling","findStylesheet","existingLinkTags","dataHref","existingStyleTags","loadStylesheet","installedCssChunks","miniCss","cssChunks","installedChunks","installedChunkData","promise","loadingEnded","realSrc","webpackJsonpCallback","parentChunkLoadingFunction","moreModules","runtime","chunkLoadingGlobal","__webpack_exports__"],"sourceRoot":""}