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,CACpDzG,IAAK,EACLC,MAAO,eACN6B,EAAK4E,QAAS,EACfpE,EAAAA,EAAAA,IAAoB,MAAO,CACzBrC,MAAO,0BACPsC,QAASiD,KAEXlD,EAAAA,EAAAA,IAAoB,MAAOvC,EAAY,EACrCuC,EAAAA,EAAAA,IAAoB,OAAQ,CAC1BrC,MAAO,qBACPsC,QAASiD,KAEXV,EAAAA,EAAAA,IAAYhD,EAAKiD,OAAQ,cAE1B,MACH7B,EAAAA,EAAAA,IAAoB,IAAI,MAE9BC,EAAG,MAIT,IEnFMC,EAAc,EAEpB,G,mECCA,SAA4B/C,EAAAA,EAAAA,IAAiB,CAC3CC,OAAQ,kBACRwD,MAAO,CACL6C,KAAM,CAAExE,QAAS,QACjByE,KAAM,CAAEzE,QAAS,WACjB0E,QAAS,CAAE9C,KAAMC,QAAS7B,SAAS,IAErC5B,KAAAA,CAAMC,GCJR,MAAMsD,EAAQtD,EAaRsG,GAAY7F,EAAAA,EAAAA,KAAS,IAAO6C,EAAM+C,SAAUE,EAAAA,EAAAA,IAAQC,EAAAA,IAAmBD,EAAAA,EAAAA,IAAQE,EAAAA,MDHrF,MAAO,CAACnF,EAAUC,MACRC,EAAAA,EAAAA,OAAcC,EAAAA,EAAAA,KAAaiF,EAAAA,EAAAA,IAAyBJ,EAAUlG,OAAQ,CAC5E+F,KAAM7E,EAAK6E,KACXC,KAAM9E,EAAK8E,MACV,CACDzE,SAASC,EAAAA,EAAAA,KAAS,IAAM,EACtB0C,EAAAA,EAAAA,IAAYhD,EAAKiD,OAAQ,cAE3B5B,EAAG,GACF,EAAG,CAAC,OAAQ,SAEjB,IE3BMC,EAAc,EAEpB,G","sources":["webpack://@sazka/kasa-loyalty/./js/app/account/models/account-modal-type.ts","webpack://@sazka/kasa-loyalty/./js/app/account/components/account-notification.vue?0ce3","webpack://@sazka/kasa-loyalty/./js/app/account/components/account-notification.vue","webpack://@sazka/kasa-loyalty/./js/app/account/components/account-notification.vue?bb84","webpack://@sazka/kasa-loyalty/./js/app/account/components/login-modal.vue?51c3","webpack://@sazka/kasa-loyalty/./js/app/account/components/login-modal.vue","webpack://@sazka/kasa-loyalty/./js/app/account/components/login-modal.vue?8d26","webpack://@sazka/kasa-loyalty/./js/app/account/components/registration-modal.vue?618c","webpack://@sazka/kasa-loyalty/./js/app/account/components/registration-modal.vue","webpack://@sazka/kasa-loyalty/./js/app/account/components/registration-modal.vue?fe45","webpack://@sazka/kasa-loyalty/./js/app/account/components/shared/account-modal.vue?7a03","webpack://@sazka/kasa-loyalty/./js/app/account/components/shared/account-modal.vue","webpack://@sazka/kasa-loyalty/./js/app/account/components/shared/account-modal.vue?50fe","webpack://@sazka/kasa-loyalty/./js/app/account/user-account.vue?c62e","webpack://@sazka/kasa-loyalty/./js/app/account/user-account.vue","webpack://@sazka/kasa-loyalty/./js/app/shared/components/modal-popup.vue?0413","webpack://@sazka/kasa-loyalty/./js/app/shared/components/modal-popup.vue","webpack://@sazka/kasa-loyalty/./js/app/shared/components/modal-popup.vue?fb76","webpack://@sazka/kasa-loyalty/../../libs/design-system/src/transitions/transition-fade.vue?2395","webpack://@sazka/kasa-loyalty/../../libs/design-system/src/transitions/transition-fade.vue","webpack://@sazka/kasa-loyalty/../../libs/design-system/src/transitions/transition-fade.vue?f9c5"],"sourcesContent":["export enum AccountModalType {\r\n    Basic = \"basic\",\r\n    Information = \"information\",\r\n    Confirmation = \"confirmation\",\r\n}\r\n","import { defineComponent as _defineComponent } from 'vue'\nimport { createElementVNode as _createElementVNode, createVNode as _createVNode, unref as _unref, openBlock as _openBlock, createElementBlock as _createElementBlock, createCommentVNode as _createCommentVNode, withCtx as _withCtx, createBlock as _createBlock } from \"vue\"\n\nconst _hoisted_1 = {\n  key: 0,\n  class: \"account-notification\"\n}\nconst _hoisted_2 = [\"href\", \"innerHTML\"]\n\nimport { computed, ref } from \"vue\";\r\nimport TransitionFade from \"@sazka/design-system/src/transitions/transition-fade.vue\";\r\nimport WebpImage from \"@sazka/design-system/src/image/webp-image.vue\";\r\nimport { cookieStore } from \"@/shared/utils/store/use-store\";\r\nimport InfoText from \"./shared/info-text.vue\";\r\nimport { userNotificationState } from \"../use-user-account\";\r\nimport { settings } from \"@/settings\";\r\n\r\nconst cookieName = \"account-notification-closed\";\r\nconst cookieDuration = 14; // 14 days\r\n\r\n\nexport default /*@__PURE__*/_defineComponent({\n  __name: 'account-notification',\n  setup(__props) {\n\r\nconst temporarilyClosed = ref(false);\r\n\r\nconst closePopup = () => {\r\n    temporarilyClosed.value = true;\r\n    cookieStore.set(cookieName, \"true\", { expires: cookieDuration });\r\n};\r\n\r\nconst canOpen = computed(() => userNotificationState.value != \"None\");\r\n\r\nconst isPopupOpen = computed(\r\n    () =>\r\n        canOpen.value &&\r\n        window.location.pathname != settings.url.profile &&\r\n        !cookieStore.get<boolean>(cookieName) &&\r\n        !temporarilyClosed.value\r\n);\r\n\r\nconst title = computed(() => {\r\n    switch (userNotificationState.value) {\r\n        case \"FillInfo\":\r\n            return \"Potřebujeme ještě pár údajů\";\r\n        case \"VerifyEmail\":\r\n            return \"Ověřit emailovou adresu\";\r\n\r\n        default:\r\n            return \"\";\r\n    }\r\n});\r\nconst perex = computed(() => {\r\n    switch (userNotificationState.value) {\r\n        case \"FillInfo\":\r\n            return \"Nenechte si uniknout žádnou zajímavou nabídku a získejte možnost využít veškeré odměny i bonusy na maximum.\";\r\n        case \"VerifyEmail\":\r\n            return \"Ověřte si e-mail, aby vám už neunikla žádná zajímavá nabídka, odměna ani bonus.\";\r\n\r\n        default:\r\n            return \"\";\r\n    }\r\n});\r\nconst buttonText = computed(() => {\r\n    switch (userNotificationState.value) {\r\n        case \"FillInfo\":\r\n            return \"Doplnit údaje\";\r\n        case \"VerifyEmail\":\r\n            return \"Ověřit email\";\r\n\r\n        default:\r\n            return \"\";\r\n    }\r\n});\r\n\nreturn (_ctx: any,_cache: any) => {\n  return (_openBlock(), _createBlock(TransitionFade, null, {\n    default: _withCtx(() => [\n      (isPopupOpen.value)\n        ? (_openBlock(), _createElementBlock(\"div\", _hoisted_1, [\n            _createElementVNode(\"span\", {\n              class: \"account-notification__close\",\n              onClick: closePopup\n            }),\n            _createVNode(WebpImage, {\n              class: \"account-notification__logo\",\n              src: \"/frontend/kasa-loyalty/img/static/logo.svg\",\n              alt: \"Sazka logo\",\n              width: \"82\",\n              height: \"82\"\n            }),\n            _createVNode(InfoText, {\n              title: title.value,\n              perex: perex.value,\n              class: \"account-notification__info-text\"\n            }, null, 8, [\"title\", \"perex\"]),\n            _createElementVNode(\"a\", {\n              class: \"account-notification__button btn btn-secondary\",\n              href: _unref(settings).url.profile,\n              innerHTML: buttonText.value\n            }, null, 8, _hoisted_2)\n          ]))\n        : _createCommentVNode(\"\", true)\n    ]),\n    _: 1\n  }))\n}\n}\n\n})","<template>\r\n    <TransitionFade>\r\n        <div class=\"account-notification\" v-if=\"isPopupOpen\">\r\n            <span class=\"account-notification__close\" @click=\"closePopup\"></span>\r\n            <WebpImage\r\n                class=\"account-notification__logo\"\r\n                src=\"/frontend/kasa-loyalty/img/static/logo.svg\"\r\n                alt=\"Sazka logo\"\r\n                width=\"82\"\r\n                height=\"82\"\r\n            />\r\n            <InfoText :title=\"title\" :perex=\"perex\" class=\"account-notification__info-text\" />\r\n            <a class=\"account-notification__button btn btn-secondary\" :href=\"settings.url.profile\" v-html=\"buttonText\">\r\n            </a>\r\n        </div>\r\n    </TransitionFade>\r\n</template>\r\n\r\n<script lang=\"ts\" setup>\r\nimport { computed, ref } from \"vue\";\r\nimport TransitionFade from \"@sazka/design-system/src/transitions/transition-fade.vue\";\r\nimport WebpImage from \"@sazka/design-system/src/image/webp-image.vue\";\r\nimport { cookieStore } from \"@/shared/utils/store/use-store\";\r\nimport InfoText from \"./shared/info-text.vue\";\r\nimport { userNotificationState } from \"../use-user-account\";\r\nimport { settings } from \"@/settings\";\r\n\r\nconst cookieName = \"account-notification-closed\";\r\nconst cookieDuration = 14; // 14 days\r\n\r\nconst temporarilyClosed = ref(false);\r\n\r\nconst closePopup = () => {\r\n    temporarilyClosed.value = true;\r\n    cookieStore.set(cookieName, \"true\", { expires: cookieDuration });\r\n};\r\n\r\nconst canOpen = computed(() => userNotificationState.value != \"None\");\r\n\r\nconst isPopupOpen = computed(\r\n    () =>\r\n        canOpen.value &&\r\n        window.location.pathname != settings.url.profile &&\r\n        !cookieStore.get<boolean>(cookieName) &&\r\n        !temporarilyClosed.value\r\n);\r\n\r\nconst title = computed(() => {\r\n    switch (userNotificationState.value) {\r\n        case \"FillInfo\":\r\n            return \"Potřebujeme ještě pár údajů\";\r\n        case \"VerifyEmail\":\r\n            return \"Ověřit emailovou adresu\";\r\n\r\n        default:\r\n            return \"\";\r\n    }\r\n});\r\nconst perex = computed(() => {\r\n    switch (userNotificationState.value) {\r\n        case \"FillInfo\":\r\n            return \"Nenechte si uniknout žádnou zajímavou nabídku a získejte možnost využít veškeré odměny i bonusy na maximum.\";\r\n        case \"VerifyEmail\":\r\n            return \"Ověřte si e-mail, aby vám už neunikla žádná zajímavá nabídka, odměna ani bonus.\";\r\n\r\n        default:\r\n            return \"\";\r\n    }\r\n});\r\nconst buttonText = computed(() => {\r\n    switch (userNotificationState.value) {\r\n        case \"FillInfo\":\r\n            return \"Doplnit údaje\";\r\n        case \"VerifyEmail\":\r\n            return \"Ověřit email\";\r\n\r\n        default:\r\n            return \"\";\r\n    }\r\n});\r\n</script>\r\n","import script from \"./account-notification.vue?vue&type=script&lang=ts&setup=true\"\nexport * from \"./account-notification.vue?vue&type=script&lang=ts&setup=true\"\n\nconst __exports__ = script;\n\nexport default __exports__","import { defineComponent as _defineComponent } from 'vue'\nimport { createVNode as _createVNode, unref as _unref, withCtx as _withCtx, openBlock as _openBlock, createBlock as _createBlock } from \"vue\"\n\nimport { computed } from \"vue\";\r\n\r\nimport AccountModal from \"@/account/components/shared/account-modal.vue\";\r\nimport LoginContent from \"@/account/components/login/login-content.vue\";\r\nimport useAuthenticationFlows, { authenticationStep } from \"../composables/use-authentication-flows\";\r\n\r\n\nexport default /*@__PURE__*/_defineComponent({\n  __name: 'login-modal',\n  setup(__props) {\n\r\nconst { closeAccountModal } = useAuthenticationFlows();\r\n\r\nconst isLoginOpened = computed(\r\n    () =>\r\n        authenticationStep.value == \"LoginWelcome\" ||\r\n        authenticationStep.value == \"LoginPass\" ||\r\n        authenticationStep.value == \"LoginPhone\" ||\r\n        authenticationStep.value == \"ForgPinGen\" ||\r\n        authenticationStep.value == \"ForgPinLog\" ||\r\n        authenticationStep.value == \"ForgPinOk\" ||\r\n        authenticationStep.value == \"ForgNewPass\" ||\r\n        authenticationStep.value == \"ForgNewPassOk\"\r\n);\r\n\nreturn (_ctx: any,_cache: any) => {\n  return (_openBlock(), _createBlock(AccountModal, {\n    modelValue: isLoginOpened.value,\n    \"onUpdate:modelValue\": _unref(closeAccountModal),\n    class: \"login-modal\"\n  }, {\n    default: _withCtx(() => [\n      _createVNode(LoginContent)\n    ]),\n    _: 1\n  }, 8, [\"modelValue\", \"onUpdate:modelValue\"]))\n}\n}\n\n})","<template>\r\n    <AccountModal :modelValue=\"isLoginOpened\" @update:modelValue=\"closeAccountModal\" class=\"login-modal\">\r\n        <LoginContent />\r\n    </AccountModal>\r\n</template>\r\n\r\n<script lang=\"ts\" setup>\r\nimport { computed } from \"vue\";\r\n\r\nimport AccountModal from \"@/account/components/shared/account-modal.vue\";\r\nimport LoginContent from \"@/account/components/login/login-content.vue\";\r\nimport useAuthenticationFlows, { authenticationStep } from \"../composables/use-authentication-flows\";\r\n\r\nconst { closeAccountModal } = useAuthenticationFlows();\r\n\r\nconst isLoginOpened = computed(\r\n    () =>\r\n        authenticationStep.value == \"LoginWelcome\" ||\r\n        authenticationStep.value == \"LoginPass\" ||\r\n        authenticationStep.value == \"LoginPhone\" ||\r\n        authenticationStep.value == \"ForgPinGen\" ||\r\n        authenticationStep.value == \"ForgPinLog\" ||\r\n        authenticationStep.value == \"ForgPinOk\" ||\r\n        authenticationStep.value == \"ForgNewPass\" ||\r\n        authenticationStep.value == \"ForgNewPassOk\"\r\n);\r\n</script>\r\n","import script from \"./login-modal.vue?vue&type=script&lang=ts&setup=true\"\nexport * from \"./login-modal.vue?vue&type=script&lang=ts&setup=true\"\n\nconst __exports__ = script;\n\nexport default __exports__","import { defineComponent as _defineComponent } from 'vue'\nimport { createVNode as _createVNode, unref as _unref, withCtx as _withCtx, openBlock as _openBlock, createBlock as _createBlock } from \"vue\"\n\nimport { computed } from \"vue\";\r\nimport AccountModal from \"@/account/components/shared/account-modal.vue\";\r\nimport RegistrationContent from \"./registration/registration-content.vue\";\r\n\r\nimport useAuthenticationFlows, { authenticationStep } from \"../composables/use-authentication-flows\";\r\n\r\n\nexport default /*@__PURE__*/_defineComponent({\n  __name: 'registration-modal',\n  setup(__props) {\n\r\nconst { closeAccountModal } = useAuthenticationFlows();\r\n\r\nconst isRegistrationOpened = computed(\r\n    () =>\r\n        authenticationStep.value == \"RegPersonal\" ||\r\n        authenticationStep.value == \"RegVerPhone\" ||\r\n        authenticationStep.value == \"RegPinLog\" ||\r\n        authenticationStep.value == \"RegPinOk\" ||\r\n        authenticationStep.value == \"RegNewPass\"\r\n);\r\n\nreturn (_ctx: any,_cache: any) => {\n  return (_openBlock(), _createBlock(AccountModal, {\n    modelValue: isRegistrationOpened.value,\n    \"onUpdate:modelValue\": _unref(closeAccountModal),\n    class: \"registration-modal\"\n  }, {\n    default: _withCtx(() => [\n      _createVNode(RegistrationContent)\n    ]),\n    _: 1\n  }, 8, [\"modelValue\", \"onUpdate:modelValue\"]))\n}\n}\n\n})","<template>\r\n    <AccountModal :modelValue=\"isRegistrationOpened\" @update:modelValue=\"closeAccountModal\" class=\"registration-modal\">\r\n        <RegistrationContent />\r\n    </AccountModal>\r\n</template>\r\n\r\n<script lang=\"ts\" setup>\r\nimport { computed } from \"vue\";\r\nimport AccountModal from \"@/account/components/shared/account-modal.vue\";\r\nimport RegistrationContent from \"./registration/registration-content.vue\";\r\n\r\nimport useAuthenticationFlows, { authenticationStep } from \"../composables/use-authentication-flows\";\r\n\r\nconst { closeAccountModal } = useAuthenticationFlows();\r\n\r\nconst isRegistrationOpened = computed(\r\n    () =>\r\n        authenticationStep.value == \"RegPersonal\" ||\r\n        authenticationStep.value == \"RegVerPhone\" ||\r\n        authenticationStep.value == \"RegPinLog\" ||\r\n        authenticationStep.value == \"RegPinOk\" ||\r\n        authenticationStep.value == \"RegNewPass\"\r\n);\r\n</script>\r\n","import script from \"./registration-modal.vue?vue&type=script&lang=ts&setup=true\"\nexport * from \"./registration-modal.vue?vue&type=script&lang=ts&setup=true\"\n\nconst __exports__ = script;\n\nexport default __exports__","import { defineComponent as _defineComponent } from 'vue'\nimport { createVNode as _createVNode, renderSlot as _renderSlot, toDisplayString as _toDisplayString, vShow as _vShow, createElementVNode as _createElementVNode, withDirectives as _withDirectives, openBlock as _openBlock, createElementBlock as _createElementBlock, createCommentVNode as _createCommentVNode, withCtx as _withCtx, createBlock as _createBlock } from \"vue\"\n\nconst _hoisted_1 = { class: \"account-modal__content\" }\nconst _hoisted_2 = {\n  key: 0,\n  class: \"account-modal__buttons\"\n}\n\nimport { computed } from \"vue\";\r\nimport ModalPopup from \"@/shared/components/modal-popup.vue\";\r\nimport WebpImage from \"@sazka/design-system/src/image/webp-image.vue\";\r\nimport { AccountModalType } from \"@/account/models/account-modal-type\";\r\n\r\n\nexport default /*@__PURE__*/_defineComponent({\n  __name: 'account-modal',\n  props: {\n    modelValue: { type: Boolean },\n    modalType: { default: AccountModalType.Basic },\n    confirmButtonTitle: { default: \"Potvrdit\" }\n  },\n  emits: [\"update:modelValue\", \"confirmButtonClicked\"],\n  setup(__props: any, { emit: __emit }) {\n\r\nconst emit = __emit;\r\n\r\nconst props = __props;\r\n\r\nconst updateModelValue = (value: boolean) => emit(\"update:modelValue\", value);\r\n\r\nconst showConfirmButton = computed(() => props.modalType == AccountModalType.Confirmation);\r\nconst showCloseModalButton = computed(\r\n    () => props.modalType == AccountModalType.Confirmation || props.modalType == AccountModalType.Information\r\n);\r\n\r\nconst confirmButtonClicked = () => emit(\"confirmButtonClicked\");\r\n\nreturn (_ctx: any,_cache: any) => {\n  return (_openBlock(), _createBlock(ModalPopup, {\n    class: \"account-modal\",\n    modelValue: _ctx.modelValue,\n    \"onUpdate:modelValue\": updateModelValue\n  }, {\n    default: _withCtx(() => [\n      _createVNode(WebpImage, {\n        class: \"account-modal__logo\",\n        src: \"/frontend/kasa-loyalty/img/static/logo.svg\",\n        alt: \"Sazka logo\",\n        width: \"82\",\n        height: \"82\"\n      }),\n      _createElementVNode(\"div\", _hoisted_1, [\n        _renderSlot(_ctx.$slots, \"default\"),\n        (showConfirmButton.value || showCloseModalButton.value)\n          ? (_openBlock(), _createElementBlock(\"div\", _hoisted_2, [\n              _withDirectives(_createElementVNode(\"button\", {\n                class: \"btn btn-secondary\",\n                onClick: _cache[0] || (_cache[0] = ($event: any) => (confirmButtonClicked()))\n              }, _toDisplayString(_ctx.confirmButtonTitle), 513), [\n                [_vShow, showConfirmButton.value]\n              ]),\n              _withDirectives(_createElementVNode(\"button\", {\n                class: \"btn btn-blue\",\n                onClick: _cache[1] || (_cache[1] = ($event: any) => (updateModelValue(false)))\n              }, \" Zavřít \", 512), [\n                [_vShow, showCloseModalButton.value]\n              ])\n            ]))\n          : _createCommentVNode(\"\", true)\n      ])\n    ]),\n    _: 3\n  }, 8, [\"modelValue\"]))\n}\n}\n\n})","<template>\r\n    <ModalPopup class=\"account-modal\" :modelValue=\"modelValue\" @update:modelValue=\"updateModelValue\">\r\n        <WebpImage\r\n            class=\"account-modal__logo\"\r\n            src=\"/frontend/kasa-loyalty/img/static/logo.svg\"\r\n            alt=\"Sazka logo\"\r\n            width=\"82\"\r\n            height=\"82\"\r\n        />\r\n\r\n        <div class=\"account-modal__content\">\r\n            <slot></slot>\r\n            <div v-if=\"showConfirmButton || showCloseModalButton\" class=\"account-modal__buttons\">\r\n                <button v-show=\"showConfirmButton\" class=\"btn btn-secondary\" @click=\"confirmButtonClicked()\">\r\n                    {{ confirmButtonTitle }}\r\n                </button>\r\n                <button v-show=\"showCloseModalButton\" class=\"btn btn-blue\" @click=\"updateModelValue(false)\">\r\n                    Zavřít\r\n                </button>\r\n            </div>\r\n        </div>\r\n    </ModalPopup>\r\n</template>\r\n\r\n<script setup lang=\"ts\">\r\nimport { computed } from \"vue\";\r\nimport ModalPopup from \"@/shared/components/modal-popup.vue\";\r\nimport WebpImage from \"@sazka/design-system/src/image/webp-image.vue\";\r\nimport { AccountModalType } from \"@/account/models/account-modal-type\";\r\n\r\nconst emit = defineEmits([\"update:modelValue\", \"confirmButtonClicked\"]);\r\n\r\nconst props = withDefaults(\r\n    defineProps<{\r\n        modelValue: boolean;\r\n        modalType?: AccountModalType;\r\n        confirmButtonTitle?: string;\r\n    }>(),\r\n    {\r\n        modalType: AccountModalType.Basic,\r\n        confirmButtonTitle: \"Potvrdit\",\r\n    }\r\n);\r\n\r\nconst updateModelValue = (value: boolean) => emit(\"update:modelValue\", value);\r\n\r\nconst showConfirmButton = computed(() => props.modalType == AccountModalType.Confirmation);\r\nconst showCloseModalButton = computed(\r\n    () => props.modalType == AccountModalType.Confirmation || props.modalType == AccountModalType.Information\r\n);\r\n\r\nconst confirmButtonClicked = () => emit(\"confirmButtonClicked\");\r\n</script>\r\n","import script from \"./account-modal.vue?vue&type=script&setup=true&lang=ts\"\nexport * from \"./account-modal.vue?vue&type=script&setup=true&lang=ts\"\n\nconst __exports__ = script;\n\nexport default __exports__","import { defineComponent as _defineComponent } from 'vue'\nimport { createVNode as _createVNode, Fragment as _Fragment, openBlock as _openBlock, createElementBlock as _createElementBlock } from \"vue\"\n\nimport LoginModal from \"./components/login-modal.vue\";\r\nimport RegistrationModal from \"./components/registration-modal.vue\";\r\nimport NotificationPopup from \"./components/account-notification.vue\";\r\n\r\n\nexport default /*@__PURE__*/_defineComponent({\n  __name: 'user-account',\n  emits: [\"loader\"],\n  setup(__props) {\n\r\n // console.log warning issue\r\n\nreturn (_ctx: any,_cache: any) => {\n  return (_openBlock(), _createElementBlock(_Fragment, null, [\n    _createVNode(LoginModal),\n    _createVNode(RegistrationModal),\n    _createVNode(NotificationPopup)\n  ], 64))\n}\n}\n\n})","import script from \"./user-account.vue?vue&type=script&setup=true&lang=ts\"\nexport * from \"./user-account.vue?vue&type=script&setup=true&lang=ts\"\n\nconst __exports__ = script;\n\nexport default __exports__","import { defineComponent as _defineComponent } from 'vue'\nimport { createElementVNode as _createElementVNode, renderSlot as _renderSlot, mergeProps as _mergeProps, openBlock as _openBlock, createElementBlock as _createElementBlock, createCommentVNode as _createCommentVNode, withCtx as _withCtx, createVNode as _createVNode, Teleport as _Teleport, createBlock as _createBlock } from \"vue\"\n\nconst _hoisted_1 = { class: \"modal-popup__content\" }\n\nimport { onBeforeUnmount, watch } from \"vue\";\r\nimport TransitionFade from \"@sazka/design-system/src/transitions/transition-fade.vue\";\r\nimport { useStackedModals } from \"@sazka/utils/composables/use-stacked-modals\";\r\n\r\n\nexport default /*@__PURE__*/_defineComponent({\n  __name: 'modal-popup',\n  props: {\n    modelValue: { type: Boolean }\n  },\n  emits: [\"update:modelValue\"],\n  setup(__props: any, { emit: __emit }) {\n\r\nconst emit = __emit;\r\n\r\nconst props = __props;\r\n\r\nconst closeModalInternal = () => emit(\"update:modelValue\", false);\r\n\r\nconst keyDownEventHandler = (e: KeyboardEvent) => {\r\n    if (e.key === \"Escape\") {\r\n        closeModalInternal();\r\n    }\r\n};\r\n\r\nconst { addToStackedModals, removeFromStackedModals } = useStackedModals();\r\nconst modalIsClosing = () => {\r\n    removeFromStackedModals();\r\n    window.removeEventListener(\"keydown\", keyDownEventHandler);\r\n};\r\n\r\nconst modalIsOpening = () => {\r\n    addToStackedModals();\r\n    window.addEventListener(\"keydown\", keyDownEventHandler);\r\n};\r\n\r\nwatch(\r\n    () => props.modelValue,\r\n    (newModelValue, oldModelValue) => {\r\n        if (newModelValue && !oldModelValue) {\r\n            modalIsOpening();\r\n        } else if (!newModelValue && oldModelValue) {\r\n            modalIsClosing();\r\n        }\r\n    },\r\n    { immediate: true }\r\n);\r\n\r\nonBeforeUnmount(() => {\r\n    if (props.modelValue) {\r\n        modalIsClosing();\r\n    }\r\n});\r\n\nreturn (_ctx: any,_cache: any) => {\n  return (_openBlock(), _createBlock(_Teleport, { to: \"body\" }, [\n    _createVNode(TransitionFade, null, {\n      default: _withCtx(() => [\n        (_ctx.modelValue)\n          ? (_openBlock(), _createElementBlock(\"div\", _mergeProps({\n              key: 0,\n              class: \"modal-popup\"\n            }, _ctx.$attrs), [\n              _createElementVNode(\"div\", {\n                class: \"modal-popup__background\",\n                onClick: closeModalInternal\n              }),\n              _createElementVNode(\"div\", _hoisted_1, [\n                _createElementVNode(\"span\", {\n                  class: \"modal-popup__close\",\n                  onClick: closeModalInternal\n                }),\n                _renderSlot(_ctx.$slots, \"default\")\n              ])\n            ], 16))\n          : _createCommentVNode(\"\", true)\n      ]),\n      _: 3\n    })\n  ]))\n}\n}\n\n})","<template>\r\n    <Teleport to=\"body\">\r\n        <TransitionFade>\r\n            <div class=\"modal-popup\" v-bind=\"$attrs\" v-if=\"modelValue\">\r\n                <div class=\"modal-popup__background\" @click=\"closeModalInternal\"></div>\r\n\r\n                <div class=\"modal-popup__content\">\r\n                    <span class=\"modal-popup__close\" @click=\"closeModalInternal\"></span>\r\n                    <slot></slot>\r\n                </div>\r\n            </div>\r\n        </TransitionFade>\r\n    </Teleport>\r\n</template>\r\n\r\n<script setup lang=\"ts\">\r\nimport { onBeforeUnmount, watch } from \"vue\";\r\nimport TransitionFade from \"@sazka/design-system/src/transitions/transition-fade.vue\";\r\nimport { useStackedModals } from \"@sazka/utils/composables/use-stacked-modals\";\r\n\r\nconst emit = defineEmits([\"update:modelValue\"]);\r\n\r\nconst props = defineProps<{\r\n    modelValue: boolean;\r\n}>();\r\n\r\nconst closeModalInternal = () => emit(\"update:modelValue\", false);\r\n\r\nconst keyDownEventHandler = (e: KeyboardEvent) => {\r\n    if (e.key === \"Escape\") {\r\n        closeModalInternal();\r\n    }\r\n};\r\n\r\nconst { addToStackedModals, removeFromStackedModals } = useStackedModals();\r\nconst modalIsClosing = () => {\r\n    removeFromStackedModals();\r\n    window.removeEventListener(\"keydown\", keyDownEventHandler);\r\n};\r\n\r\nconst modalIsOpening = () => {\r\n    addToStackedModals();\r\n    window.addEventListener(\"keydown\", keyDownEventHandler);\r\n};\r\n\r\nwatch(\r\n    () => props.modelValue,\r\n    (newModelValue, oldModelValue) => {\r\n        if (newModelValue && !oldModelValue) {\r\n            modalIsOpening();\r\n        } else if (!newModelValue && oldModelValue) {\r\n            modalIsClosing();\r\n        }\r\n    },\r\n    { immediate: true }\r\n);\r\n\r\nonBeforeUnmount(() => {\r\n    if (props.modelValue) {\r\n        modalIsClosing();\r\n    }\r\n});\r\n</script>\r\n","import script from \"./modal-popup.vue?vue&type=script&setup=true&lang=ts\"\nexport * from \"./modal-popup.vue?vue&type=script&setup=true&lang=ts\"\n\nconst __exports__ = script;\n\nexport default __exports__","import { defineComponent as _defineComponent } from 'vue'\nimport { renderSlot as _renderSlot, resolveDynamicComponent as _resolveDynamicComponent, withCtx as _withCtx, openBlock as _openBlock, createBlock as _createBlock } from \"vue\"\n\nimport { computed, TransitionGroup, Transition, markRaw } from \"vue\";\r\n\r\n\nexport default /*@__PURE__*/_defineComponent({\n  __name: 'transition-fade',\n  props: {\n    name: { default: \"fade\" },\n    mode: { default: \"default\" },\n    isGroup: { type: Boolean, default: false }\n  },\n  setup(__props: any) {\n\r\nconst props = __props;\r\n\r\nconst component = computed(() => (props.isGroup ? markRaw(TransitionGroup) : markRaw(Transition)));\r\n\nreturn (_ctx: any,_cache: any) => {\n  return (_openBlock(), _createBlock(_resolveDynamicComponent(component.value), {\n    name: _ctx.name,\n    mode: _ctx.mode\n  }, {\n    default: _withCtx(() => [\n      _renderSlot(_ctx.$slots, \"default\")\n    ]),\n    _: 3\n  }, 8, [\"name\", \"mode\"]))\n}\n}\n\n})","<template>\r\n    <component :is=\"component\" :name=\"name\" :mode=\"mode\">\r\n        <slot></slot>\r\n    </component>\r\n</template>\r\n\r\n<script setup lang=\"ts\">\r\nimport { computed, TransitionGroup, Transition, markRaw } from \"vue\";\r\n\r\nconst props = withDefaults(\r\n    defineProps<{\r\n        name?: \"fade-in\" | \"fade-out\" | \"fade\";\r\n        mode?: \"in-out\" | \"out-in\" | \"default\";\r\n        isGroup?: boolean;\r\n    }>(),\r\n    {\r\n        name: \"fade\",\r\n        mode: \"default\",\r\n        isGroup: false,\r\n    }\r\n);\r\n\r\nconst component = computed(() => (props.isGroup ? markRaw(TransitionGroup) : markRaw(Transition)));\r\n</script>\r\n","import script from \"./transition-fade.vue?vue&type=script&setup=true&lang=ts\"\nexport * from \"./transition-fade.vue?vue&type=script&setup=true&lang=ts\"\n\nconst __exports__ = script;\n\nexport default __exports__"],"names":["AccountModalType","_hoisted_1","key","class","_hoisted_2","cookieName","cookieDuration","_defineComponent","__name","setup","__props","temporarilyClosed","ref","closePopup","value","cookieStore","set","expires","canOpen","computed","userNotificationState","isPopupOpen","window","location","pathname","settings","url","profile","get","title","perex","buttonText","_ctx","_cache","_openBlock","_createBlock","TransitionFade","default","_withCtx","_createElementBlock","_createElementVNode","onClick","_createVNode","WebpImage","src","alt","width","height","InfoText","href","_unref","innerHTML","_createCommentVNode","_","__exports__","closeAccountModal","useAuthenticationFlows","isLoginOpened","authenticationStep","AccountModal","modelValue","LoginContent","isRegistrationOpened","RegistrationContent","props","type","Boolean","modalType","Basic","confirmButtonTitle","emits","emit","__emit","updateModelValue","showConfirmButton","Confirmation","showCloseModalButton","Information","confirmButtonClicked","ModalPopup","_renderSlot","$slots","_withDirectives","$event","_toDisplayString","_vShow","_Fragment","LoginModal","RegistrationModal","NotificationPopup","closeModalInternal","keyDownEventHandler","e","addToStackedModals","removeFromStackedModals","useStackedModals","modalIsClosing","removeEventListener","modalIsOpening","addEventListener","watch","newModelValue","oldModelValue","immediate","onBeforeUnmount","_Teleport","to","_mergeProps","$attrs","name","mode","isGroup","component","markRaw","TransitionGroup","Transition","_resolveDynamicComponent"],"sourceRoot":""}