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AAM,QACN4I,UAAU,EACV,iBAAiBzC,EAAAA,EAAAA,IAAOf,EAAAA,IAAsB2B,kBAC9C,wBAAyB5E,EAAO,KAAOA,EAAO,GAAMM,IAAkB0D,EAAAA,EAAAA,IAAOf,EAAAA,IAAsB2B,kBAAqBtE,IACvH,KAAM,EAAG,CAAC,aAAc,mBAC3BH,EAAAA,EAAAA,IAAa0E,EAAAA,WAAe,CAC1BhE,QAAS,gBACT3B,IAAKmD,EACLhF,MAAO,0BACPO,YAAYoG,EAAAA,EAAAA,IAAOU,EAAAA,IAAoBI,SACvC,sBAAuB9E,EAAO,KAAOA,EAAO,GAAMM,IAAkB0D,EAAAA,EAAAA,IAAOU,EAAAA,IAAoBI,SAAYxE,GAC3GzC,KAAM,WACN,iBAAiBmG,EAAAA,EAAAA,IAAOf,EAAAA,IAAsB8B,qBAC9C,wBAAyB/E,EAAO,KAAOA,EAAO,GAAMM,IAAkB0D,EAAAA,EAAAA,IAAOf,EAAAA,IAAsB8B,qBAAwBzE,IAC1H,KAAM,EAAG,CAAC,aAAc,oBAG/B,IEjDMkB,EAAc,EAEpB,G","sources":["webpack://@sazka/kasa-loyalty/./js/app/account/components/inputs/password-input.vue?e827","webpack://@sazka/kasa-loyalty/./js/app/account/components/inputs/password-input.vue","webpack://@sazka/kasa-loyalty/./js/app/account/components/inputs/password-input.vue?b180","webpack://@sazka/kasa-loyalty/./js/app/account/components/login/login-content.vue?9b50","webpack://@sazka/kasa-loyalty/./js/app/account/components/login/login-content.vue","webpack://@sazka/kasa-loyalty/./js/app/account/components/login/login-content.vue?cf7c","webpack://@sazka/kasa-loyalty/./js/app/account/components/login/login-footer.vue?5037","webpack://@sazka/kasa-loyalty/./js/app/account/components/login/login-footer.vue","webpack://@sazka/kasa-loyalty/./js/app/account/components/login/login-footer.vue?eada","webpack://@sazka/kasa-loyalty/./js/app/account/components/login/login-welcome.vue?f693","webpack://@sazka/kasa-loyalty/./js/app/account/components/login/login-welcome.vue","webpack://@sazka/kasa-loyalty/./js/app/account/components/login/login-welcome.vue?ed48"],"sourcesContent":["import { useModel as _useModel, mergeModels as _mergeModels, defineComponent as _defineComponent } from 'vue'\nimport { vModelDynamic as _vModelDynamic, createElementVNode as _createElementVNode, withDirectives as _withDirectives, openBlock as _openBlock, createBlock as _createBlock, createCommentVNode as _createCommentVNode, withCtx as _withCtx, createVNode as _createVNode, createElementBlock as _createElementBlock } from \"vue\"\n\nconst _hoisted_1 = { class: \"password-input\" }\nconst _hoisted_2 = { class: \"password-input__container\" }\nconst _hoisted_3 = [\"type\", \"id\", \"placeholder\", \"autocomplete\"]\n\nimport { computed, onMounted, ref, nextTick } from \"vue\";\r\nimport KasaIcon from \"@/components/shared/assets/kasa-icon.vue\";\r\nimport AccountInput from \"./account-input.vue\";\r\n\r\n\nexport default /*@__PURE__*/_defineComponent({\n  __name: 'password-input',\n  props: /*@__PURE__*/_mergeModels({\n    modelValue: {},\n    name: {},\n    placeholder: {},\n    autocompleteOff: { type: Boolean },\n    showEyeIcon: { type: Boolean }\n  }, {\n    \"errorMessage\": {},\n    \"errorMessageModifiers\": {},\n  }),\n  emits: /*@__PURE__*/_mergeModels([\"update:modelValue\", \"inputKeyUp\", \"inputErrorDetected\"], [\"update:errorMessage\"]),\n  setup(__props: any, { expose: __expose, emit: __emit }) {\n\r\nconst emit = __emit;\r\n\r\nconst props = __props;\r\n\r\nconst errorMessage = _useModel<string>(__props, \"errorMessage\");\r\n\r\nconst passwordValue = computed({\r\n    get() {\r\n        return props.modelValue;\r\n    },\r\n    set(passwordValue) {\r\n        errorMessage.value = null;\r\n        emit(\"update:modelValue\", passwordValue);\r\n    },\r\n});\r\n\r\nconst eyeActive = ref(false);\r\nconst showPassword = async () => {\r\n    eyeActive.value = !eyeActive.value;\r\n};\r\n\r\nconst inputType = computed(() => (eyeActive.value ? \"text\" : \"password\"));\r\n\r\nconst inputKeyUp = (event: KeyboardEvent) => {\r\n    emit(\"inputKeyUp\", event);\r\n};\r\n\r\nconst checkIfIsValid = (silentCheck?: boolean): boolean => {\r\n    let isValid = true;\r\n\r\n    if (!passwordValue.value) {\r\n        if (!silentCheck) {\r\n            errorMessage.value = \"Zadejte prosím svoje heslo.\";\r\n        }\r\n        isValid = false;\r\n    }\r\n\r\n    nextTick(() => {\r\n        if (errorMessage.value) emit(\"inputErrorDetected\", props.name, errorMessage.value);\r\n    });\r\n\r\n    return isValid;\r\n};\r\n\r\nconst inputRef = ref<HTMLInputElement>(null);\r\nonMounted(() => {\r\n    inputRef.value.focus();\r\n});\r\n\r\n__expose({\r\n    checkIfIsValid,\r\n});\r\n\nreturn (_ctx: any,_cache: any) => {\n  return (_openBlock(), _createElementBlock(\"div\", _hoisted_1, [\n    _createVNode(AccountInput, {\n      errorMessage: errorMessage.value,\n      name: _ctx.name,\n      onInputErrorDetected: _cache[1] || (_cache[1] = ($event: any) => (emit('inputErrorDetected', _ctx.name, errorMessage.value)))\n    }, {\n      default: _withCtx(() => [\n        _createElementVNode(\"div\", _hoisted_2, [\n          _withDirectives(_createElementVNode(\"input\", {\n            type: inputType.value,\n            \"onUpdate:modelValue\": _cache[0] || (_cache[0] = ($event: any) => ((passwordValue).value = $event)),\n            id: _ctx.name,\n            placeholder: _ctx.placeholder ?? 'Heslo',\n            autocomplete: _ctx.autocompleteOff ? 'off' : null,\n            ref_key: \"inputRef\",\n            ref: inputRef,\n            onKeyup: inputKeyUp\n          }, null, 40, _hoisted_3), [\n            [_vModelDynamic, passwordValue.value]\n          ]),\n          (_ctx.showEyeIcon)\n            ? (_openBlock(), _createBlock(KasaIcon, {\n                key: 0,\n                name: \"eye\",\n                width: 20,\n                height: 20,\n                class: \"password-input__input-icon\",\n                onClick: showPassword\n              }))\n            : _createCommentVNode(\"\", true)\n        ])\n      ]),\n      _: 1\n    }, 8, [\"errorMessage\", \"name\"])\n  ]))\n}\n}\n\n})","<template>\r\n    <div class=\"password-input\">\r\n        <AccountInput\r\n            :errorMessage=\"errorMessage\"\r\n            :name=\"name\"\r\n            @inputErrorDetected=\"emit('inputErrorDetected', name, errorMessage)\"\r\n        >\r\n            <div class=\"password-input__container\">\r\n                <input\r\n                    :type=\"inputType\"\r\n                    v-model=\"passwordValue\"\r\n                    :id=\"name\"\r\n                    :placeholder=\"placeholder ?? 'Heslo'\"\r\n                    :autocomplete=\"autocompleteOff ? 'off' : null\"\r\n                    ref=\"inputRef\"\r\n                    @keyup=\"inputKeyUp\"\r\n                />\r\n                <KasaIcon\r\n                    v-if=\"showEyeIcon\"\r\n                    name=\"eye\"\r\n                    :width=\"20\"\r\n                    :height=\"20\"\r\n                    class=\"password-input__input-icon\"\r\n                    @click=\"showPassword\"\r\n                ></KasaIcon>\r\n            </div>\r\n        </AccountInput>\r\n    </div>\r\n</template>\r\n\r\n<script setup lang=\"ts\">\r\nimport { computed, onMounted, ref, nextTick } from \"vue\";\r\nimport KasaIcon from \"@/components/shared/assets/kasa-icon.vue\";\r\nimport AccountInput from \"./account-input.vue\";\r\n\r\nconst emit = defineEmits<{\r\n    /* eslint-disable @typescript-eslint/naming-convention */\r\n    \"update:modelValue\": [newValue: string];\r\n    inputKeyUp: [event: KeyboardEvent];\r\n    inputErrorDetected: [fieldName: string, errorMessage: string];\r\n}>();\r\n\r\nconst props = defineProps<{\r\n    modelValue: string;\r\n    name: string;\r\n    placeholder?: string;\r\n    autocompleteOff?: boolean;\r\n    showEyeIcon?: boolean;\r\n}>();\r\n\r\nconst errorMessage = defineModel<string>(\"errorMessage\");\r\n\r\nconst passwordValue = computed({\r\n    get() {\r\n        return props.modelValue;\r\n    },\r\n    set(passwordValue) {\r\n        errorMessage.value = null;\r\n        emit(\"update:modelValue\", passwordValue);\r\n    },\r\n});\r\n\r\nconst eyeActive = ref(false);\r\nconst showPassword = async () => {\r\n    eyeActive.value = !eyeActive.value;\r\n};\r\n\r\nconst inputType = computed(() => (eyeActive.value ? \"text\" : \"password\"));\r\n\r\nconst inputKeyUp = (event: KeyboardEvent) => {\r\n    emit(\"inputKeyUp\", event);\r\n};\r\n\r\nconst checkIfIsValid = (silentCheck?: boolean): boolean => {\r\n    let isValid = true;\r\n\r\n    if (!passwordValue.value) {\r\n        if (!silentCheck) {\r\n            errorMessage.value = \"Zadejte prosím svoje heslo.\";\r\n        }\r\n        isValid = false;\r\n    }\r\n\r\n    nextTick(() => {\r\n        if (errorMessage.value) emit(\"inputErrorDetected\", props.name, errorMessage.value);\r\n    });\r\n\r\n    return isValid;\r\n};\r\n\r\nconst inputRef = ref<HTMLInputElement>(null);\r\nonMounted(() => {\r\n    inputRef.value.focus();\r\n});\r\n\r\ndefineExpose({\r\n    checkIfIsValid,\r\n});\r\n</script>\r\n","import script from \"./password-input.vue?vue&type=script&setup=true&lang=ts\"\nexport * from \"./password-input.vue?vue&type=script&setup=true&lang=ts\"\n\nconst __exports__ = script;\n\nexport default __exports__","import { defineComponent as _defineComponent } from 'vue'\nimport { unref as _unref, createVNode as _createVNode, vShow as _vShow, withDirectives as _withDirectives, normalizeClass as _normalizeClass, openBlock as _openBlock, createElementBlock as _createElementBlock, withCtx as _withCtx, createBlock as _createBlock } from \"vue\"\n\nimport { ref, computed, watch } from \"vue\";\r\nimport InfoText from \"@/account/components/shared/info-text.vue\";\r\nimport LoginWelcome from \"@/account/components/login/login-welcome.vue\";\r\nimport PhoneInput from \"@/account/components/inputs/phone-input.vue\";\r\nimport PasswordInput from \"@/account/components/inputs/password-input.vue\";\r\nimport PinInput from \"@/account/components/inputs/pin-input.vue\";\r\nimport NewPasswordInput from \"@/account/components/inputs/new-password-input.vue\";\r\nimport TransitionSlide from \"@sazka/design-system/src/transitions/transition-slide.vue\";\r\nimport { TransitionSlideDirection } from \"@sazka/design-system/src/transitions/transition-slide-direction\";\r\nimport LoginFooter from \"./login-footer.vue\";\r\nimport useUserAccount from \"@/account/use-user-account\";\r\nimport useAuthentication from \"../../composables/use-authentication\";\r\nimport useAuthenticationData, {\r\n    authenticationErrors,\r\n    authenticationData,\r\n} from \"../../composables/use-authentication-data\";\r\nimport useAuthenticationFlows, { authenticationStep } from \"@/account/composables/use-authentication-flows\";\r\n\r\n\nexport default /*@__PURE__*/_defineComponent({\n  __name: 'login-content',\n  setup(__props) {\n\r\nconst { loginUser } = useUserAccount();\r\nconst { sendPinProcess, nextAuthenticationStep, prevAuthenticationStep } = useAuthentication();\r\nconst { clearAuthenticationErrors } = useAuthenticationData();\r\nconst { openLoginPassModal } = useAuthenticationFlows();\r\n\r\nconst loginWelcome = ref(null);\r\nconst phoneInput = ref(null);\r\nconst passwordInput = ref(null);\r\nconst pinInput = ref(null);\r\nconst newPasswordInput = ref(null);\r\nconst newPasswordErrorMessage = ref<string>();\r\nconst transitionDirection = ref<TransitionSlideDirection>(\"rtl\");\r\n\r\nconst nextStepInternal = () => {\r\n    clearAuthenticationErrors();\r\n\r\n    if (\r\n        (authenticationStep.value == \"LoginPhone\" && !phoneInput.value.checkIfIsValid()) ||\r\n        (authenticationStep.value == \"ForgPinLog\" && !pinInput.value.checkIfIsValid()) ||\r\n        (authenticationStep.value == \"ForgNewPass\" && !newPasswordInput.value.checkIfIsValid())\r\n    ) {\r\n        return;\r\n    }\r\n\r\n    nextAuthenticationStep();\r\n};\r\n\r\nconst prevStepInternal = () => {\r\n    prevAuthenticationStep();\r\n};\r\nconst goToLoginPassInternal = () => {\r\n    openLoginPassModal();\r\n};\r\n\r\nconst inputKeyUpEventHandler = async (event: KeyboardEvent) => {\r\n    if (event.key === \"Enter\") {\r\n        event.preventDefault();\r\n        if (authenticationStep.value == \"LoginWelcome\" || authenticationStep.value == \"LoginPass\") {\r\n            await loginUser();\r\n        } else {\r\n            nextStepInternal();\r\n        }\r\n    }\r\n};\r\n\r\nconst resendPin = async () => {\r\n    authenticationErrors.pinErrorMessage = \"\";\r\n    await sendPinProcess(true);\r\n    pinInput.value.pinResended(!authenticationErrors.pinErrorMessage);\r\n};\r\n\r\nconst loginInternal = async () => {\r\n    if (\r\n        (authenticationStep.value == \"LoginWelcome\" && !loginWelcome.value.checkIfIsValid()) ||\r\n        (authenticationStep.value == \"LoginPass\" && !passwordInput.value.checkIfIsValid())\r\n    ) {\r\n        return;\r\n    }\r\n\r\n    await loginUser();\r\n    console.log();\r\n};\r\n\r\nconst modalTitle = computed(() => {\r\n    switch (authenticationStep.value) {\r\n        case \"LoginWelcome\":\r\n            return \"Vítejte v Sazka Klubu!\";\r\n        case \"LoginPhone\":\r\n            return \"Přihlášení\";\r\n        case \"LoginPass\":\r\n            return \"Zadejte heslo\";\r\n        case \"ForgPinGen\":\r\n        case \"ForgPinLog\":\r\n            return \"Zapomenuté heslo\";\r\n        case \"ForgPinOk\":\r\n            return \"Ověření bylo úspěšné. V&nbsp;dalším kroku si nastavte nové heslo.\";\r\n        case \"ForgNewPass\":\r\n            return \"Vytvořit nové heslo\";\r\n        case \"ForgNewPassOk\":\r\n            return \"Hotovo\";\r\n        default:\r\n            return \"\";\r\n    }\r\n});\r\n\r\nconst modalPerex = computed(() => {\r\n    switch (authenticationStep.value) {\r\n        case \"LoginWelcome\":\r\n            return \"Nyní se můžete přihlásit a využívat výhody Sazka Klubu naplno.\";\r\n        case \"LoginPhone\":\r\n        case \"LoginPass\":\r\n            return \"do vašeho účtu Sazka Klubu\";\r\n        case \"ForgPinGen\":\r\n            return \"Pro nastavení nového hesla vám na telefon zašleme 4místný PIN kód.\";\r\n        case \"ForgNewPassOk\":\r\n            return \"Heslo bylo úspěšně změněno, nyní se můžete přihlásit.\";\r\n        case \"RegNewPass\":\r\n        case \"RegVerPhone\":\r\n        case \"RegPinLog\":\r\n            return \"Už jsme skoro tam!\";\r\n        default:\r\n            return \"\";\r\n    }\r\n});\r\n\r\nconst classForCurrentState = computed(() => {\r\n    switch (authenticationStep.value) {\r\n        case \"LoginWelcome\":\r\n            return \"login-content--welcome\";\r\n        case \"ForgPinGen\":\r\n        case \"ForgPinLog\":\r\n        case \"ForgPinOk\":\r\n        case \"ForgNewPass\":\r\n        case \"ForgNewPassOk\":\r\n            return \"login-content--forg-pass\";\r\n        default:\r\n            return \"\";\r\n    }\r\n});\r\n\r\nwatch(authenticationStep, (newAccountState, oldAccountState) => {\r\n    if (\r\n        (oldAccountState == \"LoginPass\" && newAccountState == \"LoginPhone\") ||\r\n        (oldAccountState == \"LoginPass\" && newAccountState == \"LoginWelcome\") ||\r\n        (oldAccountState == \"ForgPinGen\" && newAccountState == \"LoginPass\") ||\r\n        (oldAccountState == \"ForgPinLog\" && newAccountState == \"LoginPass\")\r\n    ) {\r\n        transitionDirection.value = \"ltr\";\r\n    } else {\r\n        transitionDirection.value = \"rtl\";\r\n    }\r\n});\r\n\nreturn (_ctx: any,_cache: any) => {\n  return (_openBlock(), _createBlock(TransitionSlide, { direction: transitionDirection.value }, {\n    default: _withCtx(() => [\n      (_openBlock(), _createElementBlock(\"div\", {\n        class: _normalizeClass([\"login-content\", classForCurrentState.value]),\n        key: _unref(authenticationStep)\n      }, [\n        _createVNode(InfoText, {\n          title: modalTitle.value,\n          perex: modalPerex.value,\n          showBackLink: _unref(authenticationStep) == 'LoginPass',\n          onPrevStep: prevStepInternal,\n          class: \"login-content__header\"\n        }, null, 8, [\"title\", \"perex\", \"showBackLink\"]),\n        _withDirectives(_createVNode(LoginWelcome, {\n          ref_key: \"loginWelcome\",\n          ref: loginWelcome,\n          class: \"login-content__welcome\"\n        }, null, 512), [\n          [_vShow, _unref(authenticationStep) == 'LoginWelcome']\n        ]),\n        _withDirectives(_createVNode(PhoneInput, {\n          ref_key: \"phoneInput\",\n          ref: phoneInput,\n          class: \"login-content__phone\",\n          name: \"phone\",\n          onInputKeyUp: inputKeyUpEventHandler,\n          modelValue: _unref(authenticationData).userName,\n          \"onUpdate:modelValue\": _cache[0] || (_cache[0] = ($event: any) => ((_unref(authenticationData).userName) = $event)),\n          \"error-message\": _unref(authenticationErrors).phoneErrorMessage,\n          \"onUpdate:errorMessage\": _cache[1] || (_cache[1] = ($event: any) => ((_unref(authenticationErrors).phoneErrorMessage) = $event))\n        }, null, 8, [\"modelValue\", \"error-message\"]), [\n          [_vShow, _unref(authenticationStep) == 'LoginPhone']\n        ]),\n        _withDirectives(_createVNode(PasswordInput, {\n          ref_key: \"passwordInput\",\n          ref: passwordInput,\n          class: \"login-content__password\",\n          onInputKeyUp: inputKeyUpEventHandler,\n          modelValue: _unref(authenticationData).password,\n          \"onUpdate:modelValue\": _cache[2] || (_cache[2] = ($event: any) => ((_unref(authenticationData).password) = $event)),\n          name: \"password\",\n          \"error-message\": _unref(authenticationErrors).passwordErrorMessage,\n          \"onUpdate:errorMessage\": _cache[3] || (_cache[3] = ($event: any) => ((_unref(authenticationErrors).passwordErrorMessage) = $event))\n        }, null, 8, [\"modelValue\", \"error-message\"]), [\n          [_vShow, _unref(authenticationStep) == 'LoginPass']\n        ]),\n        _withDirectives(_createVNode(PinInput, {\n          ref_key: \"pinInput\",\n          ref: pinInput,\n          class: \"login-content__pin\",\n          modelValue: _unref(authenticationData).pin,\n          \"onUpdate:modelValue\": _cache[4] || (_cache[4] = ($event: any) => ((_unref(authenticationData).pin) = $event)),\n          name: \"sms_code\",\n          \"phone-number\": _unref(authenticationData).userName,\n          \"error-message\": _unref(authenticationErrors).pinErrorMessage,\n          \"onUpdate:errorMessage\": _cache[5] || (_cache[5] = ($event: any) => ((_unref(authenticationErrors).pinErrorMessage) = $event)),\n          onResendPin: resendPin\n        }, null, 8, [\"modelValue\", \"phone-number\", \"error-message\"]), [\n          [_vShow, _unref(authenticationStep) == 'ForgPinLog']\n        ]),\n        _withDirectives(_createVNode(NewPasswordInput, {\n          ref_key: \"newPasswordInput\",\n          ref: newPasswordInput,\n          class: \"login-content__new-password\",\n          modelValue: _unref(authenticationData).password,\n          \"onUpdate:modelValue\": _cache[6] || (_cache[6] = ($event: any) => ((_unref(authenticationData).password) = $event)),\n          name: \"new-password\",\n          passwordErrorMessage: newPasswordErrorMessage.value,\n          \"error-message\": _unref(authenticationErrors).newPasswordErrorMessage,\n          \"onUpdate:errorMessage\": _cache[7] || (_cache[7] = ($event: any) => ((_unref(authenticationErrors).newPasswordErrorMessage) = $event))\n        }, null, 8, [\"modelValue\", \"passwordErrorMessage\", \"error-message\"]), [\n          [_vShow, _unref(authenticationStep) == 'ForgNewPass']\n        ]),\n        _createVNode(LoginFooter, {\n          class: \"login-content__footer\",\n          \"authentication-step\": _unref(authenticationStep),\n          onNextStep: nextStepInternal,\n          onGoToLoginPass: goToLoginPassInternal,\n          onLogin: loginInternal\n        }, null, 8, [\"authentication-step\"])\n      ], 2))\n    ]),\n    _: 1\n  }, 8, [\"direction\"]))\n}\n}\n\n})","<template>\r\n    <TransitionSlide :direction=\"transitionDirection\">\r\n        <div class=\"login-content\" :class=\"classForCurrentState\" :key=\"authenticationStep\">\r\n            <InfoText\r\n                :title=\"modalTitle\"\r\n                :perex=\"modalPerex\"\r\n                :showBackLink=\"authenticationStep == 'LoginPass'\"\r\n                @prevStep=\"prevStepInternal\"\r\n                class=\"login-content__header\"\r\n            />\r\n\r\n            <LoginWelcome\r\n                ref=\"loginWelcome\"\r\n                v-show=\"authenticationStep == 'LoginWelcome'\"\r\n                class=\"login-content__welcome\"\r\n            />\r\n\r\n            <PhoneInput\r\n                ref=\"phoneInput\"\r\n                v-show=\"authenticationStep == 'LoginPhone'\"\r\n                class=\"login-content__phone\"\r\n                name=\"phone\"\r\n                @input-key-up=\"inputKeyUpEventHandler\"\r\n                v-model=\"authenticationData.userName\"\r\n                v-model:error-message=\"authenticationErrors.phoneErrorMessage\"\r\n            />\r\n\r\n            <PasswordInput\r\n                ref=\"passwordInput\"\r\n                v-show=\"authenticationStep == 'LoginPass'\"\r\n                class=\"login-content__password\"\r\n                @input-key-up=\"inputKeyUpEventHandler\"\r\n                v-model=\"authenticationData.password\"\r\n                name=\"password\"\r\n                v-model:error-message=\"authenticationErrors.passwordErrorMessage\"\r\n            />\r\n\r\n            <PinInput\r\n                ref=\"pinInput\"\r\n                v-show=\"authenticationStep == 'ForgPinLog'\"\r\n                class=\"login-content__pin\"\r\n                v-model=\"authenticationData.pin\"\r\n                name=\"sms_code\"\r\n                :phone-number=\"authenticationData.userName\"\r\n                v-model:error-message=\"authenticationErrors.pinErrorMessage\"\r\n                @resend-pin=\"resendPin\"\r\n            />\r\n\r\n            <NewPasswordInput\r\n                ref=\"newPasswordInput\"\r\n                v-show=\"authenticationStep == 'ForgNewPass'\"\r\n                class=\"login-content__new-password\"\r\n                v-model=\"authenticationData.password\"\r\n                name=\"new-password\"\r\n                :passwordErrorMessage=\"newPasswordErrorMessage\"\r\n                v-model:error-message=\"authenticationErrors.newPasswordErrorMessage\"\r\n            />\r\n\r\n            <LoginFooter\r\n                class=\"login-content__footer\"\r\n                :authentication-step=\"authenticationStep\"\r\n                @nextStep=\"nextStepInternal\"\r\n                @goToLoginPass=\"goToLoginPassInternal\"\r\n                @login=\"loginInternal\"\r\n            />\r\n        </div>\r\n    </TransitionSlide>\r\n</template>\r\n\r\n<script setup lang=\"ts\">\r\nimport { ref, computed, watch } from \"vue\";\r\nimport InfoText from \"@/account/components/shared/info-text.vue\";\r\nimport LoginWelcome from \"@/account/components/login/login-welcome.vue\";\r\nimport PhoneInput from \"@/account/components/inputs/phone-input.vue\";\r\nimport PasswordInput from \"@/account/components/inputs/password-input.vue\";\r\nimport PinInput from \"@/account/components/inputs/pin-input.vue\";\r\nimport NewPasswordInput from \"@/account/components/inputs/new-password-input.vue\";\r\nimport TransitionSlide from \"@sazka/design-system/src/transitions/transition-slide.vue\";\r\nimport { TransitionSlideDirection } from \"@sazka/design-system/src/transitions/transition-slide-direction\";\r\nimport LoginFooter from \"./login-footer.vue\";\r\nimport useUserAccount from \"@/account/use-user-account\";\r\nimport useAuthentication from \"../../composables/use-authentication\";\r\nimport useAuthenticationData, {\r\n    authenticationErrors,\r\n    authenticationData,\r\n} from \"../../composables/use-authentication-data\";\r\nimport useAuthenticationFlows, { authenticationStep } from \"@/account/composables/use-authentication-flows\";\r\n\r\nconst { loginUser } = useUserAccount();\r\nconst { sendPinProcess, nextAuthenticationStep, prevAuthenticationStep } = useAuthentication();\r\nconst { clearAuthenticationErrors } = useAuthenticationData();\r\nconst { openLoginPassModal } = useAuthenticationFlows();\r\n\r\nconst loginWelcome = ref(null);\r\nconst phoneInput = ref(null);\r\nconst passwordInput = ref(null);\r\nconst pinInput = ref(null);\r\nconst newPasswordInput = ref(null);\r\nconst newPasswordErrorMessage = ref<string>();\r\nconst transitionDirection = ref<TransitionSlideDirection>(\"rtl\");\r\n\r\nconst nextStepInternal = () => {\r\n    clearAuthenticationErrors();\r\n\r\n    if (\r\n        (authenticationStep.value == \"LoginPhone\" && !phoneInput.value.checkIfIsValid()) ||\r\n        (authenticationStep.value == \"ForgPinLog\" && !pinInput.value.checkIfIsValid()) ||\r\n        (authenticationStep.value == \"ForgNewPass\" && !newPasswordInput.value.checkIfIsValid())\r\n    ) {\r\n        return;\r\n    }\r\n\r\n    nextAuthenticationStep();\r\n};\r\n\r\nconst prevStepInternal = () => {\r\n    prevAuthenticationStep();\r\n};\r\nconst goToLoginPassInternal = () => {\r\n    openLoginPassModal();\r\n};\r\n\r\nconst inputKeyUpEventHandler = async (event: KeyboardEvent) => {\r\n    if (event.key === \"Enter\") {\r\n        event.preventDefault();\r\n        if (authenticationStep.value == \"LoginWelcome\" || authenticationStep.value == \"LoginPass\") {\r\n            await loginUser();\r\n        } else {\r\n            nextStepInternal();\r\n        }\r\n    }\r\n};\r\n\r\nconst resendPin = async () => {\r\n    authenticationErrors.pinErrorMessage = \"\";\r\n    await sendPinProcess(true);\r\n    pinInput.value.pinResended(!authenticationErrors.pinErrorMessage);\r\n};\r\n\r\nconst loginInternal = async () => {\r\n    if (\r\n        (authenticationStep.value == \"LoginWelcome\" && !loginWelcome.value.checkIfIsValid()) ||\r\n        (authenticationStep.value == \"LoginPass\" && !passwordInput.value.checkIfIsValid())\r\n    ) {\r\n        return;\r\n    }\r\n\r\n    await loginUser();\r\n    console.log();\r\n};\r\n\r\nconst modalTitle = computed(() => {\r\n    switch (authenticationStep.value) {\r\n        case \"LoginWelcome\":\r\n            return \"Vítejte v Sazka Klubu!\";\r\n        case \"LoginPhone\":\r\n            return \"Přihlášení\";\r\n        case \"LoginPass\":\r\n            return \"Zadejte heslo\";\r\n        case \"ForgPinGen\":\r\n        case \"ForgPinLog\":\r\n            return \"Zapomenuté heslo\";\r\n        case \"ForgPinOk\":\r\n            return \"Ověření bylo úspěšné. V&nbsp;dalším kroku si nastavte nové heslo.\";\r\n        case \"ForgNewPass\":\r\n            return \"Vytvořit nové heslo\";\r\n        case \"ForgNewPassOk\":\r\n            return \"Hotovo\";\r\n        default:\r\n            return \"\";\r\n    }\r\n});\r\n\r\nconst modalPerex = computed(() => {\r\n    switch (authenticationStep.value) {\r\n        case \"LoginWelcome\":\r\n            return \"Nyní se můžete přihlásit a využívat výhody Sazka Klubu naplno.\";\r\n        case \"LoginPhone\":\r\n        case \"LoginPass\":\r\n            return \"do vašeho účtu Sazka Klubu\";\r\n        case \"ForgPinGen\":\r\n            return \"Pro nastavení nového hesla vám na telefon zašleme 4místný PIN kód.\";\r\n        case \"ForgNewPassOk\":\r\n            return \"Heslo bylo úspěšně změněno, nyní se můžete přihlásit.\";\r\n        case \"RegNewPass\":\r\n        case \"RegVerPhone\":\r\n        case \"RegPinLog\":\r\n            return \"Už jsme skoro tam!\";\r\n        default:\r\n            return \"\";\r\n    }\r\n});\r\n\r\nconst classForCurrentState = computed(() => {\r\n    switch (authenticationStep.value) {\r\n        case \"LoginWelcome\":\r\n            return \"login-content--welcome\";\r\n        case \"ForgPinGen\":\r\n        case \"ForgPinLog\":\r\n        case \"ForgPinOk\":\r\n        case \"ForgNewPass\":\r\n        case \"ForgNewPassOk\":\r\n            return \"login-content--forg-pass\";\r\n        default:\r\n            return \"\";\r\n    }\r\n});\r\n\r\nwatch(authenticationStep, (newAccountState, oldAccountState) => {\r\n    if (\r\n        (oldAccountState == \"LoginPass\" && newAccountState == \"LoginPhone\") ||\r\n        (oldAccountState == \"LoginPass\" && newAccountState == \"LoginWelcome\") ||\r\n        (oldAccountState == \"ForgPinGen\" && newAccountState == \"LoginPass\") ||\r\n        (oldAccountState == \"ForgPinLog\" && newAccountState == \"LoginPass\")\r\n    ) {\r\n        transitionDirection.value = \"ltr\";\r\n    } else {\r\n        transitionDirection.value = \"rtl\";\r\n    }\r\n});\r\n</script>\r\n","import script from \"./login-content.vue?vue&type=script&setup=true&lang=ts\"\nexport * from \"./login-content.vue?vue&type=script&setup=true&lang=ts\"\n\nconst __exports__ = script;\n\nexport default __exports__","import { defineComponent as _defineComponent } from 'vue'\nimport { toDisplayString as _toDisplayString, createElementVNode as _createElementVNode, openBlock as _openBlock, createElementBlock as _createElementBlock, createCommentVNode as _createCommentVNode, createTextVNode as _createTextVNode, createVNode as _createVNode } from \"vue\"\n\nconst _hoisted_1 = { class: \"login-footer\" }\nconst _hoisted_2 = { class: \"login-footer__actions\" }\nconst _hoisted_3 = { class: \"login-footer__action-primary\" }\nconst _hoisted_4 = {\n  key: 0,\n  class: \"login-footer__action-forgot\"\n}\nconst _hoisted_5 = {\n  key: 1,\n  class: \"login-footer__action-login\"\n}\nconst _hoisted_6 = {\n  key: 0,\n  class: \"login-footer__apps\"\n}\nconst _hoisted_7 = { class: \"login-footer__apps-list\" }\nconst _hoisted_8 = {\n  class: \"login-apps-button\",\n  href: \"https://www.sazka.cz/sazka-klub/aplikace\",\n  \"is-external\": \"true\"\n}\nconst _hoisted_9 = {\n  class: \"login-apps-button\",\n  href: \"https://www.sazka.cz/sazka-klub/aplikace\",\n  \"is-external\": \"true\"\n}\n\nimport { AuthenticationStepType } from \"@/account/models/authentication-flows\";\r\nimport WebpImage from \"@sazka/design-system/src/image/webp-image.vue\";\r\nimport { computed } from \"vue\";\r\n\r\n\nexport default /*@__PURE__*/_defineComponent({\n  __name: 'login-footer',\n  props: {\n    authenticationStep: {}\n  },\n  emits: [\"nextStep\", \"goToLoginPass\", \"login\"],\n  setup(__props: any, { emit: __emit }) {\n\r\nconst emit = __emit;\r\n\r\nconst props = __props;\r\n\r\nconst ctaText = computed(() => {\r\n    switch (props.authenticationStep) {\r\n        case \"LoginWelcome\":\r\n        case \"LoginPhone\":\r\n        case \"LoginPass\":\r\n            return \"Přihlásit se\";\r\n        case \"ForgPinGen\":\r\n            return \"Odeslat PIN kód\";\r\n        case \"ForgPinLog\":\r\n            return \"Ověřit kód\";\r\n        case \"ForgNewPass\":\r\n            return \"Uložit heslo\";\r\n        case \"ForgNewPassOk\":\r\n            return \"Zavřít\";\r\n        default:\r\n            return \"Pokračovat\";\r\n    }\r\n});\r\n\r\nconst primaryClickHandler = () => {\r\n    if (props.authenticationStep == \"LoginPass\" || props.authenticationStep == \"LoginWelcome\") {\r\n        emit(\"login\");\r\n    } else {\r\n        emit(\"nextStep\");\r\n    }\r\n};\r\n\r\nconst nextStep = () => {\r\n    emit(\"nextStep\");\r\n};\r\n\r\nconst goToLoginPass = () => {\r\n    emit(\"goToLoginPass\");\r\n};\r\n\nreturn (_ctx: any,_cache: any) => {\n  return (_openBlock(), _createElementBlock(\"div\", _hoisted_1, [\n    _createElementVNode(\"div\", _hoisted_2, [\n      _createElementVNode(\"div\", _hoisted_3, [\n        _createElementVNode(\"button\", {\n          class: \"btn btn-secondary login-footer__btn-primary\",\n          onClick: primaryClickHandler\n        }, _toDisplayString(ctaText.value), 1)\n      ]),\n      (_ctx.authenticationStep == 'LoginPass' || _ctx.authenticationStep == 'LoginWelcome')\n        ? (_openBlock(), _createElementBlock(\"div\", _hoisted_4, [\n            _createElementVNode(\"a\", {\n              class: \"login-footer__btn-forgot\",\n              type: \"button\",\n              onClick: nextStep\n            }, \"Zapomněli jste heslo?\")\n          ]))\n        : _createCommentVNode(\"\", true),\n      (_ctx.authenticationStep == 'ForgPinGen' || _ctx.authenticationStep == 'ForgPinLog')\n        ? (_openBlock(), _createElementBlock(\"div\", _hoisted_5, [\n            _cache[0] || (_cache[0] = _createTextVNode(\" Vzpomněli jste si na své heslo? \")),\n            _createElementVNode(\"a\", {\n              class: \"login-footer__btn-login\",\n              type: \"button\",\n              onClick: goToLoginPass\n            }, \"Přihlaste se\")\n          ]))\n        : _createCommentVNode(\"\", true)\n    ]),\n    (_ctx.authenticationStep == 'LoginWelcome')\n      ? (_openBlock(), _createElementBlock(\"div\", _hoisted_6, [\n          _cache[3] || (_cache[3] = _createElementVNode(\"div\", { class: \"login-footer__apps-intro\" }, \"Sazka Klub nyní ve Vašem telefonu:\", -1)),\n          _createElementVNode(\"div\", _hoisted_7, [\n            _createElementVNode(\"a\", _hoisted_8, [\n              _createVNode(WebpImage, {\n                src: \"/frontend/kasa-loyalty/img/icons/colored/app-android.svg\",\n                alt: `Ikona android`,\n                cssClass: \"login-apps-button__icon\"\n              }),\n              _cache[1] || (_cache[1] = _createElementVNode(\"div\", { class: \"login-apps-button__text\" }, [\n                _createElementVNode(\"div\", { class: \"login-apps-button__text--top\" }, \"Stáhnout pro\"),\n                _createElementVNode(\"div\", { class: \"login-apps-button__text--bottom\" }, \"Android\")\n              ], -1))\n            ]),\n            _createElementVNode(\"a\", _hoisted_9, [\n              _createVNode(WebpImage, {\n                src: \"/frontend/kasa-loyalty/img/icons/colored/app-ios.svg\",\n                alt: `Ikona iOS`,\n                cssClass: \"login-apps-button__icon\"\n              }),\n              _cache[2] || (_cache[2] = _createElementVNode(\"div\", { class: \"login-apps-button__text\" }, [\n                _createElementVNode(\"div\", { class: \"login-apps-button__text--top\" }, \"Stáhnout pro\"),\n                _createElementVNode(\"div\", { class: \"login-apps-button__text--bottom\" }, \"iOS\")\n              ], -1))\n            ])\n          ])\n        ]))\n      : _createCommentVNode(\"\", true)\n  ]))\n}\n}\n\n})","<template>\r\n    <div class=\"login-footer\">\r\n        <div class=\"login-footer__actions\">\r\n            <div class=\"login-footer__action-primary\">\r\n                <button class=\"btn btn-secondary login-footer__btn-primary\" @click=\"primaryClickHandler\">{{ ctaText }}</button>\r\n            </div>\r\n\r\n            <div v-if=\"authenticationStep == 'LoginPass' || authenticationStep == 'LoginWelcome'\" class=\"login-footer__action-forgot\">\r\n                <a class=\"login-footer__btn-forgot\" type=\"button\" @click=\"nextStep\">Zapomněli jste heslo?</a>\r\n            </div>\r\n            <div v-if=\"authenticationStep == 'ForgPinGen' || authenticationStep == 'ForgPinLog'\" class=\"login-footer__action-login\">\r\n                Vzpomněli jste si na své heslo?\r\n                <a class=\"login-footer__btn-login\" type=\"button\" @click=\"goToLoginPass\">Přihlaste se</a>\r\n            </div>\r\n        </div>\r\n        <div class=\"login-footer__apps\" v-if=\"authenticationStep == 'LoginWelcome'\">\r\n            <div class=\"login-footer__apps-intro\">Sazka Klub nyní ve Vašem telefonu:</div>\r\n            <div class=\"login-footer__apps-list\">\r\n                <a class=\"login-apps-button\" href=\"https://www.sazka.cz/sazka-klub/aplikace\" is-external=\"true\">\r\n                    <WebpImage\r\n                        src=\"/frontend/kasa-loyalty/img/icons/colored/app-android.svg\"\r\n                        :alt=\"`Ikona android`\"\r\n                        cssClass=\"login-apps-button__icon\"\r\n                    />\r\n                    <div class=\"login-apps-button__text\">\r\n                        <div class=\"login-apps-button__text--top\">Stáhnout pro</div>\r\n                        <div class=\"login-apps-button__text--bottom\">Android</div>\r\n                    </div>\r\n                </a>\r\n                <a class=\"login-apps-button\" href=\"https://www.sazka.cz/sazka-klub/aplikace\" is-external=\"true\">\r\n                    <WebpImage\r\n                        src=\"/frontend/kasa-loyalty/img/icons/colored/app-ios.svg\"\r\n                        :alt=\"`Ikona iOS`\"\r\n                        cssClass=\"login-apps-button__icon\"\r\n                    />\r\n                    <div class=\"login-apps-button__text\">\r\n                        <div class=\"login-apps-button__text--top\">Stáhnout pro</div>\r\n                        <div class=\"login-apps-button__text--bottom\">iOS</div>\r\n                    </div>\r\n                </a>\r\n            </div>\r\n        </div>\r\n    </div>\r\n</template>\r\n\r\n<script setup lang=\"ts\">\r\nimport { AuthenticationStepType } from \"@/account/models/authentication-flows\";\r\nimport WebpImage from \"@sazka/design-system/src/image/webp-image.vue\";\r\nimport { computed } from \"vue\";\r\n\r\nconst emit = defineEmits([\"nextStep\", \"goToLoginPass\", \"login\"]);\r\n\r\nconst props = defineProps<{\r\n    authenticationStep: AuthenticationStepType;\r\n}>();\r\n\r\nconst ctaText = computed(() => {\r\n    switch (props.authenticationStep) {\r\n        case \"LoginWelcome\":\r\n        case \"LoginPhone\":\r\n        case \"LoginPass\":\r\n            return \"Přihlásit se\";\r\n        case \"ForgPinGen\":\r\n            return \"Odeslat PIN kód\";\r\n        case \"ForgPinLog\":\r\n            return \"Ověřit kód\";\r\n        case \"ForgNewPass\":\r\n            return \"Uložit heslo\";\r\n        case \"ForgNewPassOk\":\r\n            return \"Zavřít\";\r\n        default:\r\n            return \"Pokračovat\";\r\n    }\r\n});\r\n\r\nconst primaryClickHandler = () => {\r\n    if (props.authenticationStep == \"LoginPass\" || props.authenticationStep == \"LoginWelcome\") {\r\n        emit(\"login\");\r\n    } else {\r\n        emit(\"nextStep\");\r\n    }\r\n};\r\n\r\nconst nextStep = () => {\r\n    emit(\"nextStep\");\r\n};\r\n\r\nconst goToLoginPass = () => {\r\n    emit(\"goToLoginPass\");\r\n};\r\n</script>\r\n","import script from \"./login-footer.vue?vue&type=script&setup=true&lang=ts\"\nexport * from \"./login-footer.vue?vue&type=script&setup=true&lang=ts\"\n\nconst __exports__ = script;\n\nexport default __exports__","import { defineComponent as _defineComponent } from 'vue'\nimport { unref as _unref, createVNode as _createVNode, openBlock as _openBlock, createElementBlock as _createElementBlock } from \"vue\"\n\nconst _hoisted_1 = { class: \"login-welcome\" }\n\nimport PasswordInput from \"@/account/components/inputs/password-input.vue\";\r\nimport PhoneInput from \"@/account/components/inputs/phone-input.vue\";\r\nimport { authenticationErrors, authenticationData } from \"@/account/composables/use-authentication-data\";\r\n\r\nimport { ref } from \"vue\";\r\n\r\n\nexport default /*@__PURE__*/_defineComponent({\n  __name: 'login-welcome',\n  setup(__props, { expose: __expose }) {\n\r\nconst phoneInput = ref(null);\r\nconst passwordInput = ref(null);\r\n\r\nconst checkIfIsValid = async () => {\r\n    return phoneInput.value.checkIfIsValid() && passwordInput.value.checkIfIsValid();\r\n};\r\n\r\n__expose({\r\n    checkIfIsValid\r\n});\r\n\nreturn (_ctx: any,_cache: any) => {\n  return (_openBlock(), _createElementBlock(\"div\", _hoisted_1, [\n    _createVNode(PhoneInput, {\n      ref_key: \"phoneInput\",\n      ref: phoneInput,\n      class: \"login-welcome__phone\",\n      modelValue: _unref(authenticationData).userName,\n      \"onUpdate:modelValue\": _cache[0] || (_cache[0] = ($event: any) => ((_unref(authenticationData).userName) = $event)),\n      name: \"phone\",\n      disabled: true,\n      \"error-message\": _unref(authenticationErrors).phoneErrorMessage,\n      \"onUpdate:errorMessage\": _cache[1] || (_cache[1] = ($event: any) => ((_unref(authenticationErrors).phoneErrorMessage) = $event))\n    }, null, 8, [\"modelValue\", \"error-message\"]),\n    _createVNode(PasswordInput, {\n      ref_key: \"passwordInput\",\n      ref: passwordInput,\n      class: \"login-welcome__password\",\n      modelValue: _unref(authenticationData).password,\n      \"onUpdate:modelValue\": _cache[2] || (_cache[2] = ($event: any) => ((_unref(authenticationData).password) = $event)),\n      name: \"password\",\n      \"error-message\": _unref(authenticationErrors).passwordErrorMessage,\n      \"onUpdate:errorMessage\": _cache[3] || (_cache[3] = ($event: any) => ((_unref(authenticationErrors).passwordErrorMessage) = $event))\n    }, null, 8, [\"modelValue\", \"error-message\"])\n  ]))\n}\n}\n\n})","<template>\r\n    <div class=\"login-welcome\">\r\n        <PhoneInput\r\n            ref=\"phoneInput\"\r\n            class=\"login-welcome__phone\"\r\n            v-model=\"authenticationData.userName\"\r\n            name=\"phone\"\r\n            :disabled=\"true\"\r\n            v-model:error-message=\"authenticationErrors.phoneErrorMessage\"\r\n        />\r\n        <PasswordInput\r\n            ref=\"passwordInput\"\r\n            class=\"login-welcome__password\"\r\n            v-model=\"authenticationData.password\"\r\n            name=\"password\"\r\n            v-model:error-message=\"authenticationErrors.passwordErrorMessage\"\r\n        />\r\n    </div>\r\n</template>\r\n\r\n<script setup lang=\"ts\">\r\nimport PasswordInput from \"@/account/components/inputs/password-input.vue\";\r\nimport PhoneInput from \"@/account/components/inputs/phone-input.vue\";\r\nimport { authenticationErrors, authenticationData } from \"@/account/composables/use-authentication-data\";\r\n\r\nimport { ref } from \"vue\";\r\n\r\nconst phoneInput = ref(null);\r\nconst passwordInput = ref(null);\r\n\r\nconst checkIfIsValid = async () => {\r\n    return phoneInput.value.checkIfIsValid() && passwordInput.value.checkIfIsValid();\r\n};\r\n\r\ndefineExpose({\r\n    checkIfIsValid\r\n});\r\n</script>\r\n","import script from \"./login-welcome.vue?vue&type=script&setup=true&lang=ts\"\nexport * from \"./login-welcome.vue?vue&type=script&setup=true&lang=ts\"\n\nconst __exports__ = script;\n\nexport default __exports__"],"names":["_hoisted_1","class","_hoisted_2","_hoisted_3","_defineComponent","__name","props","_mergeModels","modelValue","name","placeholder","autocompleteOff","type","Boolean","showEyeIcon","emits","setup","__props","expose","__expose","emit","__emit","errorMessage","_useModel","passwordValue","computed","get","set","value","eyeActive","ref","showPassword","async","inputType","inputKeyUp","event","checkIfIsValid","silentCheck","isValid","nextTick","inputRef","onMounted","focus","_ctx","_cache","_openBlock","_createElementBlock","_createVNode","AccountInput","onInputErrorDetected","$event","default","_withCtx","_createElementVNode","_withDirectives","id","autocomplete","ref_key","onKeyup","_vModelDynamic","_createBlock","KasaIcon","key","width","height","onClick","_createCommentVNode","_","__exports__","loginUser","useUserAccount","sendPinProcess","nextAuthenticationStep","prevAuthenticationStep","useAuthentication","clearAuthenticationErrors","useAuthenticationData","openLoginPassModal","useAuthenticationFlows","loginWelcome","phoneInput","passwordInput","pinInput","newPasswordInput","newPasswordErrorMessage","transitionDirection","nextStepInternal","authenticationStep","prevStepInternal","goToLoginPassInternal","inputKeyUpEventHandler","preventDefault","resendPin","authenticationErrors","pinErrorMessage","pinResended","loginInternal","console","log","modalTitle","modalPerex","classForCurrentState","watch","newAccountState","oldAccountState","TransitionSlide","direction","_normalizeClass","_unref","InfoText","title","perex","showBackLink","onPrevStep","LoginWelcome","_vShow","PhoneInput","onInputKeyUp","authenticationData","userName","phoneErrorMessage","PasswordInput","password","passwordErrorMessage","PinInput","pin","onResendPin","NewPasswordInput","LoginFooter","onNextStep","onGoToLoginPass","onLogin","_hoisted_4","_hoisted_5","_hoisted_6","_hoisted_7","_hoisted_8","href","_hoisted_9","ctaText","primaryClickHandler","nextStep","goToLoginPass","_toDisplayString","_createTextVNode","WebpImage","src","alt","cssClass","disabled"],"sourceRoot":""}