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C,EAA0BI,GAUzC,OARIN,EAAkB,eAClBC,EAAMM,KAAK,CACPJ,SAAU,kBACVC,YAAa,kBACbC,UAAW,WAIZJ,CAAK,IDGhB,MAAO,CAACjG,EAAUC,MACRC,EAAAA,EAAAA,OAAc0C,EAAAA,EAAAA,IAAoB,MAAO,CAC/CvC,OAAOwC,EAAAA,EAAAA,IAAgB,CAAC,2BAA4B,CAAE,wCAAyCoD,EAAMtG,MAAM6G,OAAS,MACnH,GACAtG,EAAAA,EAAAA,KAAW,IAAO0C,EAAAA,EAAAA,IAAoB8C,EAAAA,GAAW,MAAMC,EAAAA,EAAAA,IAAYM,EAAMtG,OAAO,CAAC8G,EAAMC,MAC9ExG,EAAAA,EAAAA,OAAc0C,EAAAA,EAAAA,IAAoB,MAAO,CAC/CE,IAAK,GAAG2D,EAAKN,YAAYO,IACzBrG,OAAOwC,EAAAA,EAAAA,IAAgB,CAAC,iCAAkC4D,EAAKJ,aAC9D,EACD3F,EAAAA,EAAAA,IAAoB,MAAO7C,GAAY4G,EAAAA,EAAAA,IAAiBiC,EAAI,GAAI,GAChEzG,EAAO,KAAOA,EAAO,IAAKS,EAAAA,EAAAA,IAAoB,MAAO,CAAEL,MAAO,kCAAoC,EAChGK,EAAAA,EAAAA,IAAoB,MAAO,CAAEL,MAAO,0CAClC,KACJK,EAAAA,EAAAA,IAAoB,MAAO5C,GAAY2G,EAAAA,EAAAA,IAAiBgC,EAAKL,aAAc,IAC1E,MACD,OACH,GAEL,IE7DMjF,EAAc,EAEpB,G","sources":["webpack://@sazka/kasa-loyalty/./js/app/account/components/inputs/checkbox-input.vue?49bd","webpack://@sazka/kasa-loyalty/./js/app/account/components/inputs/checkbox-input.vue","webpack://@sazka/kasa-loyalty/./js/app/account/components/inputs/checkbox-input.vue?e1a9","webpack://@sazka/kasa-loyalty/./js/app/account/components/registration/registration-content.vue?d3e7","webpack://@sazka/kasa-loyalty/./js/app/account/components/registration/registration-content.vue","webpack://@sazka/kasa-loyalty/./js/app/account/components/registration/registration-content.vue?244a","webpack://@sazka/kasa-loyalty/./js/app/account/components/registration/registration-footer.vue?afe1","webpack://@sazka/kasa-loyalty/./js/app/account/components/registration/registration-footer.vue","webpack://@sazka/kasa-loyalty/./js/app/account/components/registration/registration-footer.vue?7312","webpack://@sazka/kasa-loyalty/./js/app/account/components/registration/registration-personal.vue?8888","webpack://@sazka/kasa-loyalty/./js/app/account/components/registration/registration-personal.vue","webpack://@sazka/kasa-loyalty/./js/app/account/components/registration/registration-personal.vue?2f57","webpack://@sazka/kasa-loyalty/./js/app/account/components/registration/registration-steps-panel.vue?934e","webpack://@sazka/kasa-loyalty/./js/app/account/components/registration/registration-steps-panel.vue","webpack://@sazka/kasa-loyalty/./js/app/account/components/registration/registration-steps-panel.vue?ba45"],"sourcesContent":["import { useModel as _useModel, mergeModels as _mergeModels, defineComponent as _defineComponent } from 'vue'\nimport { vModelCheckbox as _vModelCheckbox, createElementVNode as _createElementVNode, withDirectives as _withDirectives, vShow as _vShow, withCtx as _withCtx, openBlock as _openBlock, createBlock as _createBlock } from \"vue\"\n\nconst _hoisted_1 = [\"for\"]\nconst _hoisted_2 = [\"id\"]\nconst _hoisted_3 = [\"innerHTML\"]\nconst _hoisted_4 = [\"innerHTML\"]\n\nimport { computed } from \"vue\";\r\nimport AccountInput from \"./account-input.vue\";\r\n\r\n/* eslint-disable @typescript-eslint/naming-convention */\r\n\nexport default /*@__PURE__*/_defineComponent({\n  __name: 'checkbox-input',\n  props: /*@__PURE__*/_mergeModels({\n    modelValue: { type: Boolean },\n    name: {},\n    description: {},\n    note: {},\n    mandatory: { type: Boolean },\n    preventDefault: { type: Boolean }\n  }, {\n    \"errorMessage\": {},\n    \"errorMessageModifiers\": {},\n  }),\n  emits: /*@__PURE__*/_mergeModels([\"update:modelValue\", \"inputErrorDetected\", \"click\"], [\"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 checkboxValue = computed({\r\n    get() {\r\n        return props.modelValue;\r\n    },\r\n    set(newValue) {\r\n        errorMessage.value = null;\r\n        emit(\"update:modelValue\", newValue);\r\n    },\r\n});\r\n\r\nconst checkIfIsValid = (): boolean => {\r\n    let isValid = true;\r\n\r\n    if (props.mandatory && !props.modelValue) {\r\n        errorMessage.value = \"Tento souhlas je povinný.\";\r\n        isValid = false;\r\n    }\r\n\r\n    return isValid;\r\n};\r\n\r\nconst checkboxClick = (e) => {\r\n    if (props.preventDefault) {\r\n        e.preventDefault();\r\n    }\r\n\r\n    emit(\"click\");\r\n};\r\n\r\n__expose({\r\n    checkIfIsValid,\r\n});\r\n\nreturn (_ctx: any,_cache: any) => {\n  return (_openBlock(), _createBlock(AccountInput, {\n    class: \"checkbox-input\",\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(\"label\", {\n        for: _ctx.name,\n        class: \"checkbox-input__label\"\n      }, [\n        _withDirectives(_createElementVNode(\"input\", {\n          class: \"checkbox-input__input\",\n          type: \"checkbox\",\n          \"onUpdate:modelValue\": _cache[0] || (_cache[0] = ($event: any) => ((checkboxValue).value = $event)),\n          id: _ctx.name,\n          onClick: checkboxClick\n        }, null, 8, _hoisted_2), [\n          [_vModelCheckbox, checkboxValue.value]\n        ]),\n        _cache[2] || (_cache[2] = _createElementVNode(\"div\", { class: \"checkbox-input__checkmark\" }, null, -1)),\n        _createElementVNode(\"div\", null, [\n          _createElementVNode(\"div\", {\n            class: \"checkbox-input__text\",\n            innerHTML: _ctx.description\n          }, null, 8, _hoisted_3),\n          _withDirectives(_createElementVNode(\"div\", {\n            class: \"checkbox-input__note agree__text\",\n            innerHTML: _ctx.note\n          }, null, 8, _hoisted_4), [\n            [_vShow, _ctx.note]\n          ])\n        ])\n      ], 8, _hoisted_1)\n    ]),\n    _: 1\n  }, 8, [\"errorMessage\", \"name\"]))\n}\n}\n\n})","<template>\r\n    <AccountInput\r\n        class=\"checkbox-input\"\r\n        :errorMessage=\"errorMessage\"\r\n        :name=\"name\"\r\n        @inputErrorDetected=\"emit('inputErrorDetected', name, errorMessage)\"\r\n    >\r\n        <label :for=\"name\" class=\"checkbox-input__label\">\r\n            <input\r\n                class=\"checkbox-input__input\"\r\n                type=\"checkbox\"\r\n                v-model=\"checkboxValue\"\r\n                :id=\"name\"\r\n                @click=\"checkboxClick\"\r\n            />\r\n            <div class=\"checkbox-input__checkmark\"></div>\r\n            <div>\r\n                <div class=\"checkbox-input__text\" v-html=\"description\"></div>\r\n                <div class=\"checkbox-input__note agree__text\" v-show=\"note\" v-html=\"note\"></div>\r\n            </div>\r\n        </label>\r\n    </AccountInput>\r\n</template>\r\n<script setup lang=\"ts\">\r\nimport { computed } from \"vue\";\r\nimport AccountInput from \"./account-input.vue\";\r\n\r\n/* eslint-disable @typescript-eslint/naming-convention */\r\nconst emit = defineEmits<{\r\n    \"update:modelValue\": [newValue: boolean];\r\n    inputErrorDetected: [fieldName: string, errorMessage: string];\r\n    click: [];\r\n}>();\r\n\r\nconst props = defineProps<{\r\n    modelValue: boolean;\r\n    name: string;\r\n    description: string;\r\n    note?: string;\r\n    mandatory: boolean;\r\n    preventDefault?: boolean;\r\n}>();\r\n\r\nconst errorMessage = defineModel<string>(\"errorMessage\");\r\n\r\nconst checkboxValue = computed({\r\n    get() {\r\n        return props.modelValue;\r\n    },\r\n    set(newValue) {\r\n        errorMessage.value = null;\r\n        emit(\"update:modelValue\", newValue);\r\n    },\r\n});\r\n\r\nconst checkIfIsValid = (): boolean => {\r\n    let isValid = true;\r\n\r\n    if (props.mandatory && !props.modelValue) {\r\n        errorMessage.value = \"Tento souhlas je povinný.\";\r\n        isValid = false;\r\n    }\r\n\r\n    return isValid;\r\n};\r\n\r\nconst checkboxClick = (e) => {\r\n    if (props.preventDefault) {\r\n        e.preventDefault();\r\n    }\r\n\r\n    emit(\"click\");\r\n};\r\n\r\ndefineExpose({\r\n    checkIfIsValid,\r\n});\r\n</script>\r\n","import script from \"./checkbox-input.vue?vue&type=script&setup=true&lang=ts\"\nexport * from \"./checkbox-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, createElementVNode as _createElementVNode, normalizeClass as _normalizeClass, openBlock as _openBlock, createElementBlock as _createElementBlock, withCtx as _withCtx, createBlock as _createBlock } from \"vue\"\n\nconst _hoisted_1 = { class: \"registration-content__header\" }\n\nimport { ref, computed } from \"vue\";\r\nimport InfoText from \"@/account/components/shared/info-text.vue\";\r\nimport RegistrationStepsPanel from \"@/account/components/registration/registration-steps-panel.vue\";\r\nimport RegistrationPersonal from \"@/account/components/registration/registration-personal.vue\";\r\nimport PinInput from \"@/account/components/inputs/pin-input.vue\";\r\nimport NewPasswordInput from \"@/account/components/inputs/new-password-input.vue\";\r\nimport RegistrationFooter from \"@/account/components/registration/registration-footer.vue\";\r\nimport useAuthentication from \"@/account/composables/use-authentication\";\r\nimport useAuthenticationData, { authenticationErrors, authenticationData } from \"@/account/composables/use-authentication-data\";\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 useAuthenticationFlows, { authenticationStep } from \"../../composables/use-authentication-flows\";\r\nimport { dataLayerRegistrationError } from \"@/data-layer/services/actions\";\r\n\r\n\nexport default /*@__PURE__*/_defineComponent({\n  __name: 'registration-content',\n  setup(__props) {\n\r\nconst { sendPinProcess, nextAuthenticationStep } = useAuthentication();\r\nconst { clearAuthenticationErrors } = useAuthenticationData();\r\nconst { openLoginModal } = useAuthenticationFlows();\r\nconst registrationDataComponentRef = ref(null);\r\nconst pinInputRef = ref(null);\r\nconst newPasswordInputRef = ref(null);\r\nconst transitionDirection = ref<TransitionSlideDirection>(\"rtl\");\r\n\r\nconst nextStepInternal = () => {\r\n    clearAuthenticationErrors();\r\n\r\n    if (\r\n        (authenticationStep.value == \"RegPersonal\" && !registrationDataComponentRef.value.checkIfIsValid()) ||\r\n        ((authenticationStep.value == \"RegVerPhone\" || authenticationStep.value == \"RegPinLog\") && !pinInputRef.value.checkIfIsValid()) ||\r\n        (authenticationStep.value == \"RegNewPass\" && !newPasswordInputRef.value.checkIfIsValid())\r\n    ) {\r\n        return;\r\n    }\r\n\r\n    nextAuthenticationStep();\r\n};\r\n\r\nconst resendPin = async () => {\r\n    authenticationErrors.pinErrorMessage = \"\";\r\n    await sendPinProcess(true);\r\n    pinInputRef.value.pinResended(!authenticationErrors.pinErrorMessage);\r\n};\r\n\r\nconst modalTitle = computed(() => {\r\n    switch (authenticationStep.value) {\r\n        case \"RegPersonal\":\r\n        case \"RegVerPhone\":\r\n        case \"RegPinLog\":\r\n            return \"Registrace do Sazka Klubu\";\r\n        case \"RegPinOk\":\r\n            return \"Vaše telefonní číslo bylo úspěšně ověřeno.\";\r\n        case \"RegNewPass\":\r\n            return \"Už jsme skoro tam!\";\r\n        default:\r\n            return \"\";\r\n    }\r\n});\r\n\r\nconst modalPerex = computed(() => {\r\n    switch (authenticationStep.value) {\r\n        case \"RegPersonal\":\r\n        case \"RegVerPhone\":\r\n        case \"RegPinLog\":\r\n            return \"Abychom s vámi mohli roztočit Kolo štěstí, potřebujeme vědět, komu vyplatíme odměnu. Nebojte, vytvoření účtu vám zabere pár minut.\";\r\n        case \"RegNewPass\":\r\n            return \"Abychom Vás mohli přihlásit k Vašemu Sazka Klub účtu, musíte si vytvořit heslo.\";\r\n        default:\r\n            return \"\";\r\n    }\r\n});\r\n\r\nconst classForCurrentState = computed(() => {\r\n    switch (authenticationStep.value) {\r\n        case \"RegPersonal\":\r\n            return \"registration-content--personal\";\r\n        case \"RegNewPass\":\r\n            return \"registration-content--new-pass\";\r\n        case \"RegVerPhone\":\r\n        case \"RegPinLog\":\r\n            return \"registration-content--pin\";\r\n        default:\r\n            return \"\";\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([\"registration-content\", classForCurrentState.value]),\n        key: _unref(authenticationStep)\n      }, [\n        _createElementVNode(\"div\", _hoisted_1, [\n          _createVNode(InfoText, {\n            title: modalTitle.value,\n            perex: modalPerex.value,\n            showBackLink: _unref(authenticationStep) == 'LoginPass',\n            class: \"registration-content__info-text\"\n          }, null, 8, [\"title\", \"perex\", \"showBackLink\"]),\n          _withDirectives(_createVNode(RegistrationStepsPanel, { class: \"registration-content__pannel\" }, null, 512), [\n            [_vShow, _unref(authenticationStep) == 'RegPersonal' || _unref(authenticationStep) == 'RegVerPhone' || _unref(authenticationStep) == 'RegPinLog']\n          ])\n        ]),\n        _withDirectives(_createVNode(RegistrationPersonal, {\n          ref_key: \"registrationDataComponentRef\",\n          ref: registrationDataComponentRef,\n          class: \"registration-content__data\"\n        }, null, 512), [\n          [_vShow, _unref(authenticationStep) == 'RegPersonal']\n        ]),\n        _withDirectives(_createVNode(PinInput, {\n          ref_key: \"pinInputRef\",\n          ref: pinInputRef,\n          class: \"registration-content__pin\",\n          modelValue: _unref(authenticationData).pin,\n          \"onUpdate:modelValue\": _cache[0] || (_cache[0] = ($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[1] || (_cache[1] = ($event: any) => ((_unref(authenticationErrors).pinErrorMessage) = $event)),\n          onResendPin: resendPin,\n          onInputErrorDetected: _unref(dataLayerRegistrationError)\n        }, null, 8, [\"modelValue\", \"phone-number\", \"error-message\", \"onInputErrorDetected\"]), [\n          [_vShow, _unref(authenticationStep) == 'RegVerPhone' || _unref(authenticationStep) == 'RegPinLog']\n        ]),\n        _withDirectives(_createVNode(NewPasswordInput, {\n          ref_key: \"newPasswordInputRef\",\n          ref: newPasswordInputRef,\n          class: \"registration-content__new-pass\",\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).newPasswordErrorMessage,\n          \"onUpdate:errorMessage\": _cache[3] || (_cache[3] = ($event: any) => ((_unref(authenticationErrors).newPasswordErrorMessage) = $event)),\n          onInputErrorDetected: _unref(dataLayerRegistrationError)\n        }, null, 8, [\"modelValue\", \"error-message\", \"onInputErrorDetected\"]), [\n          [_vShow, _unref(authenticationStep) == 'RegNewPass']\n        ]),\n        _createVNode(RegistrationFooter, {\n          \"authentication-step\": _unref(authenticationStep),\n          class: \"registration-content__footer\",\n          onNextStep: nextStepInternal,\n          onOpenLoginModal: _unref(openLoginModal)\n        }, null, 8, [\"authentication-step\", \"onOpenLoginModal\"])\n      ], 2))\n    ]),\n    _: 1\n  }, 8, [\"direction\"]))\n}\n}\n\n})","<template>\r\n    <TransitionSlide :direction=\"transitionDirection\">\r\n        <div class=\"registration-content\" :key=\"authenticationStep\" :class=\"classForCurrentState\">\r\n            <div class=\"registration-content__header\">\r\n                <InfoText\r\n                    :title=\"modalTitle\"\r\n                    :perex=\"modalPerex\"\r\n                    :showBackLink=\"authenticationStep == 'LoginPass'\"\r\n                    class=\"registration-content__info-text\"\r\n                />\r\n                <RegistrationStepsPanel\r\n                    v-show=\"authenticationStep == 'RegPersonal' || authenticationStep == 'RegVerPhone' || authenticationStep == 'RegPinLog'\"\r\n                    class=\"registration-content__pannel\"\r\n                />\r\n            </div>\r\n\r\n            <RegistrationPersonal\r\n                ref=\"registrationDataComponentRef\"\r\n                v-show=\"authenticationStep == 'RegPersonal'\"\r\n                class=\"registration-content__data\"\r\n            />\r\n\r\n            <PinInput\r\n                ref=\"pinInputRef\"\r\n                v-show=\"authenticationStep == 'RegVerPhone' || authenticationStep == 'RegPinLog'\"\r\n                class=\"registration-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                @input-error-detected=\"dataLayerRegistrationError\"\r\n            />\r\n\r\n            <NewPasswordInput\r\n                ref=\"newPasswordInputRef\"\r\n                v-show=\"authenticationStep == 'RegNewPass'\"\r\n                class=\"registration-content__new-pass\"\r\n                v-model=\"authenticationData.password\"\r\n                name=\"password\"\r\n                v-model:error-message=\"authenticationErrors.newPasswordErrorMessage\"\r\n                @input-error-detected=\"dataLayerRegistrationError\"\r\n            />\r\n\r\n            <RegistrationFooter\r\n                :authentication-step=\"authenticationStep\"\r\n                class=\"registration-content__footer\"\r\n                @next-step=\"nextStepInternal\"\r\n                @open-login-modal=\"openLoginModal\"\r\n            />\r\n        </div>\r\n    </TransitionSlide>\r\n</template>\r\n\r\n<script setup lang=\"ts\">\r\nimport { ref, computed } from \"vue\";\r\nimport InfoText from \"@/account/components/shared/info-text.vue\";\r\nimport RegistrationStepsPanel from \"@/account/components/registration/registration-steps-panel.vue\";\r\nimport RegistrationPersonal from \"@/account/components/registration/registration-personal.vue\";\r\nimport PinInput from \"@/account/components/inputs/pin-input.vue\";\r\nimport NewPasswordInput from \"@/account/components/inputs/new-password-input.vue\";\r\nimport RegistrationFooter from \"@/account/components/registration/registration-footer.vue\";\r\nimport useAuthentication from \"@/account/composables/use-authentication\";\r\nimport useAuthenticationData, { authenticationErrors, authenticationData } from \"@/account/composables/use-authentication-data\";\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 useAuthenticationFlows, { authenticationStep } from \"../../composables/use-authentication-flows\";\r\nimport { dataLayerRegistrationError } from \"@/data-layer/services/actions\";\r\n\r\nconst { sendPinProcess, nextAuthenticationStep } = useAuthentication();\r\nconst { clearAuthenticationErrors } = useAuthenticationData();\r\nconst { openLoginModal } = useAuthenticationFlows();\r\nconst registrationDataComponentRef = ref(null);\r\nconst pinInputRef = ref(null);\r\nconst newPasswordInputRef = ref(null);\r\nconst transitionDirection = ref<TransitionSlideDirection>(\"rtl\");\r\n\r\nconst nextStepInternal = () => {\r\n    clearAuthenticationErrors();\r\n\r\n    if (\r\n        (authenticationStep.value == \"RegPersonal\" && !registrationDataComponentRef.value.checkIfIsValid()) ||\r\n        ((authenticationStep.value == \"RegVerPhone\" || authenticationStep.value == \"RegPinLog\") && !pinInputRef.value.checkIfIsValid()) ||\r\n        (authenticationStep.value == \"RegNewPass\" && !newPasswordInputRef.value.checkIfIsValid())\r\n    ) {\r\n        return;\r\n    }\r\n\r\n    nextAuthenticationStep();\r\n};\r\n\r\nconst resendPin = async () => {\r\n    authenticationErrors.pinErrorMessage = \"\";\r\n    await sendPinProcess(true);\r\n    pinInputRef.value.pinResended(!authenticationErrors.pinErrorMessage);\r\n};\r\n\r\nconst modalTitle = computed(() => {\r\n    switch (authenticationStep.value) {\r\n        case \"RegPersonal\":\r\n        case \"RegVerPhone\":\r\n        case \"RegPinLog\":\r\n            return \"Registrace do Sazka Klubu\";\r\n        case \"RegPinOk\":\r\n            return \"Vaše telefonní číslo bylo úspěšně ověřeno.\";\r\n        case \"RegNewPass\":\r\n            return \"Už jsme skoro tam!\";\r\n        default:\r\n            return \"\";\r\n    }\r\n});\r\n\r\nconst modalPerex = computed(() => {\r\n    switch (authenticationStep.value) {\r\n        case \"RegPersonal\":\r\n        case \"RegVerPhone\":\r\n        case \"RegPinLog\":\r\n            return \"Abychom s vámi mohli roztočit Kolo štěstí, potřebujeme vědět, komu vyplatíme odměnu. Nebojte, vytvoření účtu vám zabere pár minut.\";\r\n        case \"RegNewPass\":\r\n            return \"Abychom Vás mohli přihlásit k Vašemu Sazka Klub účtu, musíte si vytvořit heslo.\";\r\n        default:\r\n            return \"\";\r\n    }\r\n});\r\n\r\nconst classForCurrentState = computed(() => {\r\n    switch (authenticationStep.value) {\r\n        case \"RegPersonal\":\r\n            return \"registration-content--personal\";\r\n        case \"RegNewPass\":\r\n            return \"registration-content--new-pass\";\r\n        case \"RegVerPhone\":\r\n        case \"RegPinLog\":\r\n            return \"registration-content--pin\";\r\n        default:\r\n            return \"\";\r\n    }\r\n});\r\n</script>\r\n","import script from \"./registration-content.vue?vue&type=script&setup=true&lang=ts\"\nexport * from \"./registration-content.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, createTextVNode as _createTextVNode, openBlock as _openBlock, createElementBlock as _createElementBlock, createCommentVNode as _createCommentVNode, toDisplayString as _toDisplayString } from \"vue\"\n\nconst _hoisted_1 = { class: \"registration-footer\" }\nconst _hoisted_2 = {\n  key: 0,\n  class: \"registration-footer__login\"\n}\n\nimport { computed } from \"vue\";\r\nimport { AuthenticationStepType } from \"@/account/models/authentication-flows\";\r\n\r\n\nexport default /*@__PURE__*/_defineComponent({\n  __name: 'registration-footer',\n  props: {\n    authenticationStep: {}\n  },\n  emits: [\"nextStep\", \"openLoginModal\"],\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 \"RegVerPhone\":\r\n        case \"RegPinLog\":\r\n            return \"Ověřit kód\";\r\n        case \"RegNewPass\":\r\n            return \"Uložit heslo\";\r\n\r\n        default:\r\n            return \"Pokračovat\";\r\n    }\r\n});\r\n\r\nconst primaryClickHandler = () => {\r\n    emit(\"nextStep\");\r\n};\r\n\r\nconst loginClickHandler = () => {\r\n    emit(\"openLoginModal\");\r\n};\r\n\nreturn (_ctx: any,_cache: any) => {\n  return (_openBlock(), _createElementBlock(\"div\", _hoisted_1, [\n    (_ctx.authenticationStep == 'RegPersonal')\n      ? (_openBlock(), _createElementBlock(\"div\", _hoisted_2, [\n          _cache[0] || (_cache[0] = _createTextVNode(\" Již mám svůj účet. \")),\n          _createElementVNode(\"a\", {\n            class: \"registration-footer__login-btn\",\n            onClick: loginClickHandler\n          }, \"Chci se přihlásit.\")\n        ]))\n      : _createCommentVNode(\"\", true),\n    _createElementVNode(\"button\", {\n      class: \"btn btn-secondary registration-footer__primary\",\n      onClick: primaryClickHandler\n    }, _toDisplayString(ctaText.value), 1)\n  ]))\n}\n}\n\n})","<template>\r\n    <div class=\"registration-footer\">\r\n        <div v-if=\"authenticationStep == 'RegPersonal'\" class=\"registration-footer__login\">\r\n            Již mám svůj účet.\r\n            <a class=\"registration-footer__login-btn\" @click=\"loginClickHandler\">Chci se přihlásit.</a>\r\n        </div>\r\n        <button class=\"btn btn-secondary registration-footer__primary\" @click=\"primaryClickHandler\">{{ ctaText }}</button>\r\n    </div>\r\n</template>\r\n\r\n<script setup lang=\"ts\">\r\nimport { computed } from \"vue\";\r\nimport { AuthenticationStepType } from \"@/account/models/authentication-flows\";\r\n\r\nconst emit = defineEmits([\"nextStep\", \"openLoginModal\"]);\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 \"RegVerPhone\":\r\n        case \"RegPinLog\":\r\n            return \"Ověřit kód\";\r\n        case \"RegNewPass\":\r\n            return \"Uložit heslo\";\r\n\r\n        default:\r\n            return \"Pokračovat\";\r\n    }\r\n});\r\n\r\nconst primaryClickHandler = () => {\r\n    emit(\"nextStep\");\r\n};\r\n\r\nconst loginClickHandler = () => {\r\n    emit(\"openLoginModal\");\r\n};\r\n</script>\r\n","import script from \"./registration-footer.vue?vue&type=script&setup=true&lang=ts\"\nexport * from \"./registration-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, createElementVNode as _createElementVNode, renderList as _renderList, Fragment as _Fragment, openBlock as _openBlock, createElementBlock as _createElementBlock, createBlock as _createBlock } from \"vue\"\n\nconst _hoisted_1 = { class: \"registration-personal\" }\nconst _hoisted_2 = { class: \"registration-personal__credentials\" }\nconst _hoisted_3 = {\n  id: \"consents\",\n  class: \"registration-personal__consents\"\n}\n\nimport { ref } from \"vue\";\r\nimport { ConsentDto } from \"@/account/models/registration/consent-dto\";\r\nimport useRegistrationConsents from \"@/account/composables/use-registration-consents\";\r\n\r\nimport NewPasswordInput from \"@/account/components/inputs/new-password-input.vue\";\r\nimport PhoneInput from \"@/account/components/inputs/phone-input.vue\";\r\nimport CheckboxInput from \"@/account/components/inputs/checkbox-input.vue\";\r\nimport { authenticationErrors, authenticationData } from \"@/account/composables/use-authentication-data\";\r\nimport { dataLayerRegistrationError } from \"@/data-layer/services/actions\";\r\n\r\n\nexport default /*@__PURE__*/_defineComponent({\n  __name: 'registration-personal',\n  setup(__props, { expose: __expose }) {\n\r\nconst { getDisplayedConsets } = useRegistrationConsents();\r\n\r\nconst phoneInputRef = ref(null);\r\nconst newPasswordInputRef = ref(null);\r\nconst checkboxRef = ref([]);\r\n\r\ngetDisplayedConsets().then((data: ConsentDto[]) => {\r\n    authenticationData.consents = data;\r\n});\r\n\r\nconst checkIfIsValid = () => {\r\n    const consentsAreValid = checkboxRef.value.every((checkboxValidation) => checkboxValidation.checkIfIsValid());\r\n    const phoneIsValid = phoneInputRef.value.checkIfIsValid();\r\n    const newPasswordIsValid = newPasswordInputRef.value.checkIfIsValid();\r\n\r\n    return consentsAreValid && phoneIsValid && newPasswordIsValid;\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    _createElementVNode(\"div\", _hoisted_2, [\n      _createVNode(PhoneInput, {\n        ref_key: \"phoneInputRef\",\n        ref: phoneInputRef,\n        class: \"registration-personal__phone\",\n        modelValue: _unref(authenticationData).userName,\n        \"onUpdate:modelValue\": _cache[0] || (_cache[0] = ($event: any) => ((_unref(authenticationData).userName) = $event)),\n        name: \"phone\",\n        title: \"Telefonní číslo\",\n        \"show-tooltip\": true,\n        placeholder: \"Zadejte své telefonní číslo\",\n        \"error-message\": _unref(authenticationErrors).phoneErrorMessage,\n        \"onUpdate:errorMessage\": _cache[1] || (_cache[1] = ($event: any) => ((_unref(authenticationErrors).phoneErrorMessage) = $event)),\n        onInputErrorDetected: _unref(dataLayerRegistrationError)\n      }, null, 8, [\"modelValue\", \"error-message\", \"onInputErrorDetected\"]),\n      _createVNode(NewPasswordInput, {\n        class: \"registration-personal__password\",\n        ref_key: \"newPasswordInputRef\",\n        ref: newPasswordInputRef,\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        onInputErrorDetected: _unref(dataLayerRegistrationError)\n      }, null, 8, [\"modelValue\", \"error-message\", \"onInputErrorDetected\"])\n    ]),\n    _createElementVNode(\"div\", _hoisted_3, [\n      (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(_unref(authenticationData).consents, (consent) => {\n        return (_openBlock(), _createBlock(CheckboxInput, {\n          class: \"registration-personal__consent\",\n          ref_for: true,\n          ref_key: \"checkboxRef\",\n          ref: checkboxRef,\n          key: `consent-${consent.id}`,\n          name: consent.id,\n          modelValue: consent.enabled,\n          \"onUpdate:modelValue\": ($event: any) => ((consent.enabled) = $event),\n          description: consent.description,\n          mandatory: consent.mandatory\n        }, null, 8, [\"name\", \"modelValue\", \"onUpdate:modelValue\", \"description\", \"mandatory\"]))\n      }), 128))\n    ])\n  ]))\n}\n}\n\n})","<template>\r\n    <div class=\"registration-personal\">\r\n        <div class=\"registration-personal__credentials\">\r\n            <PhoneInput\r\n                ref=\"phoneInputRef\"\r\n                class=\"registration-personal__phone\"\r\n                v-model=\"authenticationData.userName\"\r\n                name=\"phone\"\r\n                title=\"Telefonní číslo\"\r\n                :show-tooltip=\"true\"\r\n                placeholder=\"Zadejte své telefonní číslo\"\r\n                v-model:error-message=\"authenticationErrors.phoneErrorMessage\"\r\n                @input-error-detected=\"dataLayerRegistrationError\"\r\n            />\r\n\r\n            <NewPasswordInput\r\n                class=\"registration-personal__password\"\r\n                ref=\"newPasswordInputRef\"\r\n                v-model=\"authenticationData.password\"\r\n                name=\"password\"\r\n                v-model:error-message=\"authenticationErrors.passwordErrorMessage\"\r\n                @input-error-detected=\"dataLayerRegistrationError\"\r\n            />\r\n        </div>\r\n        <div id=\"consents\" class=\"registration-personal__consents\">\r\n            <CheckboxInput\r\n                class=\"registration-personal__consent\"\r\n                ref=\"checkboxRef\"\r\n                v-for=\"consent in authenticationData.consents\"\r\n                :key=\"`consent-${consent.id}`\"\r\n                :name=\"consent.id\"\r\n                v-model=\"consent.enabled\"\r\n                :description=\"consent.description\"\r\n                :mandatory=\"consent.mandatory\"\r\n            />\r\n        </div>\r\n    </div>\r\n</template>\r\n\r\n<script setup lang=\"ts\">\r\nimport { ref } from \"vue\";\r\nimport { ConsentDto } from \"@/account/models/registration/consent-dto\";\r\nimport useRegistrationConsents from \"@/account/composables/use-registration-consents\";\r\n\r\nimport NewPasswordInput from \"@/account/components/inputs/new-password-input.vue\";\r\nimport PhoneInput from \"@/account/components/inputs/phone-input.vue\";\r\nimport CheckboxInput from \"@/account/components/inputs/checkbox-input.vue\";\r\nimport { authenticationErrors, authenticationData } from \"@/account/composables/use-authentication-data\";\r\nimport { dataLayerRegistrationError } from \"@/data-layer/services/actions\";\r\n\r\nconst { getDisplayedConsets } = useRegistrationConsents();\r\n\r\nconst phoneInputRef = ref(null);\r\nconst newPasswordInputRef = ref(null);\r\nconst checkboxRef = ref([]);\r\n\r\ngetDisplayedConsets().then((data: ConsentDto[]) => {\r\n    authenticationData.consents = data;\r\n});\r\n\r\nconst checkIfIsValid = () => {\r\n    const consentsAreValid = checkboxRef.value.every((checkboxValidation) => checkboxValidation.checkIfIsValid());\r\n    const phoneIsValid = phoneInputRef.value.checkIfIsValid();\r\n    const newPasswordIsValid = newPasswordInputRef.value.checkIfIsValid();\r\n\r\n    return consentsAreValid && phoneIsValid && newPasswordIsValid;\r\n};\r\n\r\ndefineExpose({\r\n    checkIfIsValid,\r\n});\r\n</script>\r\n","import script from \"./registration-personal.vue?vue&type=script&setup=true&lang=ts\"\nexport * from \"./registration-personal.vue?vue&type=script&setup=true&lang=ts\"\n\nconst __exports__ = script;\n\nexport default __exports__","import { defineComponent as _defineComponent } from 'vue'\nimport { renderList as _renderList, Fragment as _Fragment, openBlock as _openBlock, createElementBlock as _createElementBlock, toDisplayString as _toDisplayString, createElementVNode as _createElementVNode, normalizeClass as _normalizeClass } from \"vue\"\n\nconst _hoisted_1 = { class: \"registration-steps-panel__counter\" }\nconst _hoisted_2 = { class: \"registration-steps-panel__title\" }\n\nimport { RegistrationStepDto } from \"@/account/models/authentication-models\";\r\nimport { computed } from \"vue\";\r\nimport useAuthenticationFlows, { authenticationStep } from \"@/account/composables/use-authentication-flows\";\r\n\r\n\nexport default /*@__PURE__*/_defineComponent({\n  __name: 'registration-steps-panel',\n  setup(__props) {\n\r\nconst { containsFlowState } = useAuthenticationFlows();\r\n\r\nconst steps = computed(() => {\r\n    const registrationStepPersonal: RegistrationStepDto = {\r\n        codeName: \"accountStepPersonal\",\r\n        displayName: \"Registrační údaje\",\r\n        stepState: authenticationStep.value == \"RegPersonal\" ? \"active\" : \"completed\" // Personal is first step => is never displayed as future\r\n    };\r\n    const registrationStepVerification: RegistrationStepDto = {\r\n        codeName: \"accountStepVerification\",\r\n        displayName: containsFlowState(\"RegNewPass\") ? \"Ověření uživatele\" : \"Ověření telefonu\",\r\n        stepState:\r\n            authenticationStep.value == \"RegPinLog\" || authenticationStep.value == \"RegVerPhone\"\r\n                ? \"active\"\r\n                : authenticationStep.value == \"RegPersonal\"\r\n                ? \"future\"\r\n                : \"completed\"\r\n    };\r\n    const steps = [registrationStepPersonal, registrationStepVerification];\r\n\r\n    if (containsFlowState(\"RegNewPass\")) {\r\n        steps.push({\r\n            codeName: \"accountStepPass\",\r\n            displayName: \"Nastavení hesla\",\r\n            stepState: \"future\" // Steps are not visible in password state => password step is always displayed as future\r\n        });\r\n    }\r\n\r\n    return steps;\r\n});\r\n\nreturn (_ctx: any,_cache: any) => {\n  return (_openBlock(), _createElementBlock(\"div\", {\n    class: _normalizeClass([\"registration-steps-panel\", { 'registration-steps-panel--three-steps': steps.value.length > 2 }])\n  }, [\n    (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(steps.value, (step, i) => {\n      return (_openBlock(), _createElementBlock(\"div\", {\n        key: `${step.codeName}-${i}`,\n        class: _normalizeClass([\"registration-steps-panel__item\", step.stepState])\n      }, [\n        _createElementVNode(\"div\", _hoisted_1, _toDisplayString(i + 1), 1),\n        _cache[0] || (_cache[0] = _createElementVNode(\"div\", { class: \"registration-steps-panel__tick\" }, [\n          _createElementVNode(\"div\", { class: \"registration-steps-panel__tick-icon\" })\n        ], -1)),\n        _createElementVNode(\"div\", _hoisted_2, _toDisplayString(step.displayName), 1)\n      ], 2))\n    }), 128))\n  ], 2))\n}\n}\n\n})","<template>\r\n    <div class=\"registration-steps-panel\" :class=\"{ 'registration-steps-panel--three-steps': steps.length > 2 }\">\r\n        <div v-for=\"(step, i) in steps\" :key=\"`${step.codeName}-${i}`\" class=\"registration-steps-panel__item\" :class=\"step.stepState\">\r\n            <div class=\"registration-steps-panel__counter\">{{ i + 1 }}</div>\r\n            <div class=\"registration-steps-panel__tick\"><div class=\"registration-steps-panel__tick-icon\"></div></div>\r\n            <div class=\"registration-steps-panel__title\">{{ step.displayName }}</div>\r\n        </div>\r\n    </div>\r\n</template>\r\n\r\n<script setup lang=\"ts\">\r\nimport { RegistrationStepDto } from \"@/account/models/authentication-models\";\r\nimport { computed } from \"vue\";\r\nimport useAuthenticationFlows, { authenticationStep } from \"@/account/composables/use-authentication-flows\";\r\n\r\nconst { containsFlowState } = useAuthenticationFlows();\r\n\r\nconst steps = computed(() => {\r\n    const registrationStepPersonal: RegistrationStepDto = {\r\n        codeName: \"accountStepPersonal\",\r\n        displayName: \"Registrační údaje\",\r\n        stepState: authenticationStep.value == \"RegPersonal\" ? \"active\" : \"completed\" // Personal is first step => is never displayed as future\r\n    };\r\n    const registrationStepVerification: RegistrationStepDto = {\r\n        codeName: \"accountStepVerification\",\r\n        displayName: containsFlowState(\"RegNewPass\") ? \"Ověření uživatele\" : \"Ověření telefonu\",\r\n        stepState:\r\n            authenticationStep.value == \"RegPinLog\" || authenticationStep.value == \"RegVerPhone\"\r\n                ? \"active\"\r\n                : authenticationStep.value == \"RegPersonal\"\r\n                ? \"future\"\r\n                : \"completed\"\r\n    };\r\n    const steps = [registrationStepPersonal, registrationStepVerification];\r\n\r\n    if (containsFlowState(\"RegNewPass\")) {\r\n        steps.push({\r\n            codeName: \"accountStepPass\",\r\n            displayName: \"Nastavení hesla\",\r\n            stepState: \"future\" // Steps are not visible in password state => password step is always displayed as future\r\n        });\r\n    }\r\n\r\n    return steps;\r\n});\r\n</script>\r\n","import script from \"./registration-steps-panel.vue?vue&type=script&setup=true&lang=ts\"\nexport * from \"./registration-steps-panel.vue?vue&type=script&setup=true&lang=ts\"\n\nconst __exports__ = script;\n\nexport default __exports__"],"names":["_hoisted_1","_hoisted_2","_hoisted_3","_hoisted_4","_defineComponent","__name","props","_mergeModels","modelValue","type","Boolean","name","description","note","mandatory","preventDefault","emits","setup","__props","expose","__expose","emit","__emit","errorMessage","_useModel","checkboxValue","computed","get","set","newValue","value","checkIfIsValid","isValid","checkboxClick","e","_ctx","_cache","_openBlock","_createBlock","AccountInput","class","onInputErrorDetected","$event","default","_withCtx","_createElementVNode","for","_withDirectives","id","onClick","_vModelCheckbox","innerHTML","_vShow","_","__exports__","sendPinProcess","nextAuthenticationStep","useAuthentication","clearAuthenticationErrors","useAuthenticationData","openLoginModal","useAuthenticationFlows","registrationDataComponentRef","ref","pinInputRef","newPasswordInputRef","transitionDirection","nextStepInternal","authenticationStep","resendPin","async","authenticationErrors","pinErrorMessage","pinResended","modalTitle","modalPerex","classForCurrentState","TransitionSlide","direction","_createElementBlock","_normalizeClass","key","_unref","_createVNode","InfoText","title","perex","showBackLink","RegistrationStepsPanel","RegistrationPersonal","ref_key","PinInput","authenticationData","pin","userName","onResendPin","dataLayerRegistrationError","NewPasswordInput","password","newPasswordErrorMessage","RegistrationFooter","onNextStep","onOpenLoginModal","ctaText","primaryClickHandler","loginClickHandler","_createTextVNode","_createCommentVNode","_toDisplayString","getDisplayedConsets","useRegistrationConsents","phoneInputRef","checkboxRef","then","data","consents","consentsAreValid","every","checkboxValidation","phoneIsValid","newPasswordIsValid","PhoneInput","placeholder","phoneErrorMessage","passwordErrorMessage","_Fragment","_renderList","consent","CheckboxInput","ref_for","enabled","containsFlowState","steps","registrationStepPersonal","codeName","displayName","stepState","registrationStepVerification","push","length","step","i"],"sourceRoot":""}