{"version":3,"sources":["webpack:///./src/views/components/co-user-info/user-info-input.vue","webpack:///./src/views/components/co-user-info/user-info-input.vue?6010","webpack:///./src/views/components/co-user-info/user-info-input.vue?4136","webpack:///./src/views/components/co-user-info/user-info-input.vue?da47","webpack:///./node_modules/vue-slide-up-down/dist/vue-slide-up-down.m.js","webpack:///./src/store/pinia/checkout-user-identification.ts","webpack:///./src/views/components/common/otp-validate.vue","webpack:///./src/views/components/common/otp-validate.vue?ea9b","webpack:///./src/views/components/common/otp-validate.vue?cf94","webpack:///./src/views/components/common/otp-validate.vue?1c1e"],"names":["render","_vm","this","_c","_self","_setup","_setupProxy","ValidationProvider","ref","propRef","staticClass","attrs","name","validationRules","scopedSlots","_u","key","fn","_ref","errors","class","length","isSubmitted","_v","_s","labelText","isRequired","_e","error","tooltipText","Tooltip","concat","_b","inputType","disabledCondition","domProps","value","on","updateValue","$attrs","inputTooltipText","isPasswordField","TooglePasswordVisibility","toggleType","staticRenderFns","_defineComponent","__name","props","String","Number","required","type","default","Boolean","typeProp","emits","setup","__props","emit","computed","includes","event","target","watch","newType","immediate","onMounted","document","querySelector","__sfc","component","active","duration","tag","useHidden","data","style","initial","hidden","layout","t","transitionend","onTransitionEnd","$slots","mounted","created","el","$refs","container","methods","$emit","setHeight","scrollHeight","asap","$nextTick","i","e","height","__","overflow","messagesStore","useMessages","useCheckoutUserIdentification","defineStore","state","firstName","lastName","jmbg","primaryContactDocumentIdNum","primaryContactDocumentIdIssueAuthority","primaryContactDocumentIdIssueDate","formattedDate","newUserName","offeredUsernames","selectedUserName","password","repeatedPassword","contactPhone","email","emailOtp","validatedEmail","isEmailOtpSent","consent","consentTemplate","msisdn","customerId","isOTPSent","existingNumber","validatedExistingNumber","existingNumberOtp","hasMsisdn","localStorage","getItem","JSON","parse","isPasswordChange","username","isValidateUsername","isEmailValidated","validatedUsername","showWeakPasswordModal","showUserFillDataModal","actions","checkJmbg","_this","httpService","post","apiUrls","newUser","url","finishJmbgLoginProcess","then","response","_response$data","_response$data2","accountType","registrationCustomerData","setItem","stringify","changeLoader","window","location","href","loginAndRegistration","existingUser","options","existingUserNoAccount","catch","_error$response$data$","_error$response$data$2","status","errorMessage","message","registration","Vue","prototype","$toast","messages","rs","checkout","blockedUser","submitCustomerId","_this2","platform","_response$data3","customerData","showErrorMessage","sendOtp","_this3","otp","sendOtpToEmail","_this4","checkoutAdditionalData","verifyEmail","sendSsoOtpToEmail","_this5","checkoutDeliveryPayment","sendOTPForSso","updateSsoEmail","_this6","put","setSsoWithOtp","code","submitMsisdnAndOtp","_this7","verifyOtp","otpCode","_response$data4","getConsents","_this8","consents","changePassword","_this9","params","passwordConfirmation","_objectSpread","uid","contactPhoneNumber","verificationCode","registerConfirm","_asyncToGenerator","_regeneratorRuntime","mark","_callee","res","wrap","_context","prev","next","removeItem","console","log","acceptTerms","success","stop","_x","apply","arguments","changeWeakPassword","_this10","newPassword","confirmedPassword","updateWeakPassword","useUser","logOut","finally","checkUsename","_this11","checkUsername","usernames","$bus","usernameAvailable","setPrimaryContactDocumentIdIssueDate","day","month","year","_this$formattedDate$s","split","_this$formattedDate$s2","_toArray","slice","submitRegistrationNewUser","_this12","userStore","addressSystem","useAddressSystem","_addressSystem$addres","address","line1","line2","apartment","town","province","registerUser","signUpWsDTO","getOptionLabel","tisAddressCode","contactEmail","docId","docIssueAuthority","docIssueDate","_ref2","_callee2","_context2","setEmail","setPassword","authorizeUser","_x2","_setup$filteredErrors","_setup$form","ValidationObserver","isEmail","UserInfoInput","emailLabel","model","callback","$$v","trim","expression","$t","areFieldsUnchaged","filteredErrors","form","$event","preventDefault","validateAndSendOtp","showOtpField","timer","SlideUpDown","currentValidation","updateEmailValue","isSso","submitExisting","otpTimer","checkoutUserIdentificationStore","otpValidation","msisdnTimer","_storeToRefs","storeToRefs","apiMethod","nextTick","validate","result","startTimer","scrollInputFieldIntoView","countdown","setInterval","clearInterval","deep","isEmailFieldUnchanged","isNumberFieldUnchanged","_props$errors","filter","errror"],"mappings":"gIA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gBT,QAAOC,WAAUU,oBAAmBT,iBAAgBQ,0BAAyB2D,UAASG,iBAAgBa,qBAAoBT,oBAAmBI,iBAAgBZ,mBAAkBuH,qBAAoBO,iBAAgBW,aAAYM,wBAAuBC,yBAAwB9B,oBAAmBM,eAAcI,mBAAkBT,iBAAgBT,qBAAeF,0BAAoBkB,uBCjJlG,I,YCOjb9O,EAAY,eACd,EACAtE,EACA4C,GACA,EACA,KACA,KACA,MAIa,OAAA0B,E","file":"js/chunk-99bf46b8.84bd28d2da86f69c9f6b.js","sourcesContent":["var render = function render(){var _vm=this,_c=_vm._self._c,_setup=_vm._self._setupProxy;return _c(_setup.ValidationProvider,{ref:_vm.propRef,staticClass:\"input-wrap\",attrs:{\"id\":\"tooltip-container-sm\",\"vid\":_vm.name,\"rules\":_vm.validationRules,\"slim\":\"\"},scopedSlots:_vm._u([{key:\"default\",fn:function({ errors }){return [_c('div',{class:errors.length && _vm.isSubmitted? 'form-group error' : 'form-group',attrs:{\"id\":\"tooltip-container\"}},[_c('label',{attrs:{\"for\":_vm.name}},[_c('span',{staticClass:\"text\"},[_vm._v(\" \"+_vm._s(_vm.labelText)+\" \"),(_setup.isRequired)?_c('span',{staticClass:\"required\"}):_vm._e()])]),_c('div',{staticClass:\"input-wrapper\",class:{error: errors.length}},[(_vm.tooltipText)?_c(_setup.Tooltip,{attrs:{\"target\":`tooltip-input + ${_vm.name}`,\"tooltip-text\":_vm.tooltipText}}):_vm._e(),_c('input',_vm._b({staticClass:\"default-input\",attrs:{\"id\":_vm.name,\"name\":_vm.name,\"type\":_setup.inputType,\"disabled\":_vm.disabledCondition},domProps:{\"value\":_vm.value},on:{\"input\":_setup.updateValue}},'input',_vm.$attrs,false)),(_vm.inputTooltipText)?_c(_setup.Tooltip,{attrs:{\"target\":`tooltip-in-input + ${_vm.name}`,\"tooltip-text\":_vm.inputTooltipText}}):_vm._e(),(_setup.isPasswordField)?_c(_setup.TooglePasswordVisibility,{attrs:{\"input-type\":_setup.inputType},on:{\"toggle-type\":_setup.toggleType}}):_vm._e(),_c('span',{staticClass:\"error-message\"},[_vm._v(_vm._s(errors[0]))])],1)])]}}])})\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import { defineComponent as _defineComponent } from 'vue'\nimport TooglePasswordVisibility from '@components/common/toogle-password-visibility.vue';\r\nimport Tooltip from '@components/common/tooltip.vue';\r\nimport { ValidationProvider } from 'vee-validate';\r\nimport { computed, onMounted, ref, watch } from 'vue';\r\n\r\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'user-info-input',\n props: {\r\n\tvalue: [String, Number],\r\n\tname: {\r\n\t\trequired: true,\r\n\t\ttype: String,\r\n\t\tdefault: ''\r\n\t},\r\n\tvalidationRules: {\r\n\t\trequired: false,\r\n\t\ttype: String\r\n\t},\r\n\tlabelText: {\r\n\t\trequired: false,\r\n\t\ttype: String\r\n\t},\r\n\tdisabledCondition: {\r\n\t\trequired: false,\r\n\t\ttype: Boolean,\r\n\t\tdefault: false\r\n\t},\r\n\tisSubmitted: {\r\n\t\trequired: false,\r\n\t\ttype: Boolean,\r\n\t\tdefault: false\r\n\t},\r\n\ttooltipText: {\r\n\t\trequired: false,\r\n\t\ttype: String,\r\n\t\tdefault: ''\r\n\t},\r\n\tinputTooltipText: {\r\n\t\trequired: false,\r\n\t\ttype: String,\r\n\t\tdefault: ''\r\n\t},\r\n\tpropRef: {\r\n\t\trequired: false,\r\n\t\ttype: String\r\n\t},\r\n\ttypeProp: {\r\n\t\trequired: false,\r\n\t\ttype: String,\r\n\t\tdefault: 'text'\r\n\t}\r\n},\n emits: ['input'],\n setup(__props, { emit }) {\n\nconst props = __props;\n\r\n\r\n\r\n\r\n\r\nconst inputType = ref('text');\r\n\r\nconst isPasswordField = computed(() => {\r\n\treturn props.typeProp === 'password';\r\n});\r\n\r\nconst isRequired = computed(() => {\r\n\treturn props.validationRules.includes('required');\r\n});\r\n\r\nwatch(() => props.typeProp, (newType) => {\r\n\tinputType.value = newType;\r\n}, { immediate: true });\r\n\r\nonMounted(() => {\r\n\tdocument.querySelector(`[name=\"${props.name}\"]`).value = props.value;\r\n});\r\n\r\nfunction updateValue(event) {\r\n\temit('input', event.target.value);\r\n}\r\n\r\nfunction toggleType() {\r\n\tinputType.value = inputType.value === 'password' ? 'text' : 'password';\r\n}\r\n\nreturn { __sfc: true,props, emit, inputType, isPasswordField, isRequired, updateValue, toggleType, TooglePasswordVisibility, Tooltip, ValidationProvider }\n}\n\n})","import mod from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--14-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/ts-loader/index.js??ref--14-3!../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./user-info-input.vue?vue&type=script&setup=true&lang=ts\"; export default mod; export * from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--14-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/ts-loader/index.js??ref--14-3!../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./user-info-input.vue?vue&type=script&setup=true&lang=ts\"","import { render, staticRenderFns } from \"./user-info-input.vue?vue&type=template&id=64d9797c\"\nimport script from \"./user-info-input.vue?vue&type=script&setup=true&lang=ts\"\nexport * from \"./user-info-input.vue?vue&type=script&setup=true&lang=ts\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","export default{name:\"SlideUpDown\",props:{active:Boolean,duration:{type:Number,default:500},tag:{type:String,default:\"div\"},useHidden:{type:Boolean,default:!0}},data:function(){return{style:{},initial:!1,hidden:!1}},watch:{active:function(){this.layout()}},render:function(t){return t(this.tag,{style:this.style,attrs:this.attrs,ref:\"container\",on:{transitionend:this.onTransitionEnd}},this.$slots.default)},mounted:function(){this.layout(),this.initial=!0},created:function(){this.hidden=!this.active},computed:{el:function(){return this.$refs.container},attrs:function(){var t={\"aria-hidden\":!this.active,\"aria-expanded\":this.active};return this.useHidden&&(t.hidden=this.hidden),t}},methods:{layout:function(){var t=this;this.active?(this.hidden=!1,this.$emit(\"open-start\"),this.initial&&this.setHeight(\"0px\",function(){return t.el.scrollHeight+\"px\"})):(this.$emit(\"close-start\"),this.setHeight(this.el.scrollHeight+\"px\",function(){return\"0px\"}))},asap:function(t){this.initial?this.$nextTick(t):t()},setHeight:function(t,i){var e=this;this.style={height:t},this.asap(function(){e.__=e.el.scrollHeight,e.style={height:i(),overflow:\"hidden\",\"transition-property\":\"height\",\"transition-duration\":e.duration+\"ms\"}})},onTransitionEnd:function(t){t.target===this.el&&(this.active?(this.style={},this.$emit(\"open-end\")):(this.style={height:\"0\",overflow:\"hidden\"},this.hidden=!0,this.$emit(\"close-end\")))}}};\n//# sourceMappingURL=vue-slide-up-down.m.js.map\n","import apiUrls from \"@/services/api-urls\";\r\nimport { loginAndRegistration, notificationMessage } from \"@/services/constants\";\r\nimport httpService from \"@/services/http-service\";\r\nimport { messages } from \"@/services/i18n/i18n.strings\";\r\nimport { changeLoader } from \"@/services/loader\";\r\nimport { useMessages } from '@store/messages';\r\nimport { defineStore } from \"pinia\";\r\nimport { useAddressSystem } from '@store/address-system';\r\nimport { useUser } from '@store/user';\r\nimport Vue from \"vue\";\r\nimport { useGoogleAnalytics } from \"./google-analytics\";\r\n\r\nconst messagesStore = useMessages();\r\nexport const useCheckoutUserIdentification = defineStore('checkoutUserIdentification', {\r\n state: () => {\r\n return ({\r\n\t\t\tfirstName: '',\r\n\t\t\tlastName: '',\r\n jmbg: '',\r\n\t\t\tprimaryContactDocumentIdNum: '',\r\n\t\t\tprimaryContactDocumentIdIssueAuthority: '',\r\n\t\t\tprimaryContactDocumentIdIssueDate: '',\r\n\t\t\tformattedDate: '',\r\n\t\t\tnewUserName: '',\r\n\t\t\tofferedUsernames: [],\r\n\t\t\tselectedUserName: null,\r\n\t\t\tpassword: '',\r\n\t\t\trepeatedPassword: '',\r\n\t\t\tcontactPhone: '',\r\n\t\t\temail: '',\r\n\t\t\temailOtp: '',\r\n\t\t\tvalidatedEmail: '',\r\n\t\t\tisEmailOtpSent: false,\r\n\t\t\tconsent: false,\r\n\t\t\tconsentTemplate: {},\r\n\t\t\tmsisdn: '',\r\n\t\t\tcustomerId: '',\r\n\t\t\tisOTPSent: false,\r\n\t\t\texistingNumber: '',\r\n\t\t\tvalidatedExistingNumber: '',\r\n\t\t\texistingNumberOtp: '',\r\n\t\t\thasMsisdn: (localStorage.getItem('hasMsisdn') && JSON.parse(localStorage.getItem('hasMsisdn')!) ) || false,\r\n\t\t\tisPasswordChange: (localStorage.getItem('isPasswordChange') && JSON.parse(localStorage.getItem('isPasswordChange')!) ) || false,\r\n\t\t\tusername: (localStorage.getItem('username') && JSON.parse(localStorage.getItem('username')!) ) || '',\r\n\t\t\tisValidateUsername: false,\r\n\t\t\tisEmailValidated: false,\r\n\t\t\tvalidatedUsername: '',\r\n\t\t\tshowWeakPasswordModal: false,\r\n\t\t\tshowUserFillDataModal: false,\r\n })\r\n },\r\n actions: {\r\n checkJmbg() {\r\n\t\t\treturn httpService.post(apiUrls.newUser.checkJmbg.url, { jmbg: this.jmbg, finishJmbgLoginProcess: true }).then((response) => {\r\n\t\t\t\tconst accountType = response.data?.registrationCustomerData?.accountType;\r\n\t\t\t\tconst hasMsisdn = response.data?.registrationCustomerData?.hasMsisdn;\r\n\t\t\t\tlocalStorage.setItem('hasMsisdn', JSON.stringify(hasMsisdn));\r\n\t\t\t\tif (accountType)\r\n\t\t\t\t\tchangeLoader(true);\r\n\t\t\t\tif (accountType === 'HAS_ACCOUNT') {\r\n\t\t\t\t\twindow.location.href = loginAndRegistration.existingUser.options;\r\n\t\t\t\t} else if (accountType === 'NO_ACCOUNT')\r\n\t\t\t\t\twindow.location.href = loginAndRegistration.existingUserNoAccount.options;\r\n\r\n\t\t\t}).catch((error) => {\r\n\t\t\t\tconst status = error?.response.data.errors?.[0]?.type;\r\n\t\t\t\tconst errorMessage = error?.response.data.errors?.[0]?.message;\r\n\t\t\t\tif (status === 'BadCredentialsError') {\r\n\t\t\t\t\tlocalStorage.setItem('jmbg', this.jmbg);\r\n\t\t\t\t\t// no TIS id, user gets redirected to the register a new user page\r\n\t\t\t\t\tchangeLoader(true);\r\n\t\t\t\t\twindow.location.href = loginAndRegistration.newUser.registration;\r\n\t\t\t\t}\r\n\t\t\t\telse if (status === 'MtsBlockedUserError') // TODO @biki check with Lea what to do in this case\r\n\t\t\t\t\tVue.prototype.$toast.error(messages.rs.message.checkout.newUser.blockedUser);\r\n\t\t\t\telse if (errorMessage) {\r\n\t\t\t\t\tVue.prototype.$toast.error(errorMessage);\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\t},\r\n\t\tsubmitCustomerId() {\r\n\t\t\treturn httpService.post(apiUrls.registration.customerId, {\r\n\t\t\t\tcustomerId: this.customerId,\r\n\t\t\t\tplatform: 'WEB',\r\n\t\t\t}).then((response) => {\r\n\t\t\t\tif (this.isPasswordChange)\r\n\t\t\t\t\tlocalStorage.setItem('username', JSON.stringify(response.data?.customerData?.username || ''));\r\n\t\t\t\tchangeLoader(true);\r\n\t\t\t\twindow.location.href = this.isPasswordChange ? loginAndRegistration.existingUser.registration : loginAndRegistration.existingUserNoAccount.registration;\r\n\t\t\t}).catch((error) => {\r\n\t\t\t\tmessagesStore.showErrorMessage(error);\r\n\t\t\t});\r\n\t\t},\r\n\t\tsendOtp() {\r\n\t\t\treturn httpService.post(apiUrls.registration.otp, {\r\n\t\t\t\tmsisdn: this.existingNumber,\r\n\t\t\t\tplatform: 'WEB',\r\n\t\t\t})\r\n\t\t\t.then(() => {\r\n\t\t\t\tthis.validatedExistingNumber = this.existingNumber;\r\n\t\t\t})\r\n\t\t\t.catch((error) => {\r\n\t\t\t\tmessagesStore.showErrorMessage(error);\r\n\t\t\t\tthis.isOTPSent = false;\r\n\t\t\t});\r\n\t\t},\r\n\t\tsendOtpToEmail() {\r\n\t\t\treturn httpService.post(apiUrls.checkoutAdditionalData.verifyEmail.url, {\r\n\t\t\t\temail: this.email\r\n\t\t\t})\r\n\t\t\t.then(() => {\r\n\t\t\t\tthis.validatedEmail = this.email;\r\n\t\t\t})\r\n\t\t\t.catch((error) => {\r\n\t\t\t\tmessagesStore.showErrorMessage(error);\r\n\t\t\t\tthis.isOTPSent = false;\r\n\t\t\t});\r\n\t\t},\r\n\t\tsendSsoOtpToEmail() {\r\n\t\t\tconst messagesStore = useMessages();\r\n\t\t\treturn httpService.post(apiUrls.checkoutDeliveryPayment.sendOTPForSso.url, {\r\n\t\t\t\temail: this.email\r\n\t\t\t})\r\n\t\t\t.then(() => {\r\n\t\t\t\tthis.validatedEmail = this.email;\r\n\t\t\t})\r\n\t\t\t.catch((error) => {\r\n\t\t\t\tmessagesStore.showErrorMessage(error);\r\n\t\t\t\tthis.isOTPSent = false;\r\n\t\t\t});\r\n\t\t},\r\n\t\tupdateSsoEmail() {\r\n\t\t\treturn httpService.put(apiUrls.checkoutDeliveryPayment.setSsoWithOtp.url, {\r\n\t\t\t\tcode: this.emailOtp,\r\n\t\t\t\temail: this.email\r\n\t\t\t}).then((response) => {\r\n\t\t\t\tthis.showUserFillDataModal = true;\r\n\t\t\t})\r\n\t\t},\r\n\t\tsubmitMsisdnAndOtp() {\r\n\t\t\treturn httpService.post(apiUrls.registration.verifyOtp, {\r\n\t\t\t\tmsisdn: this.existingNumber,\r\n\t\t\t\totpCode: this.existingNumberOtp,\r\n\t\t\t}).then((response) => {\r\n\t\t\t\tthis.validatedExistingNumber = this.existingNumber;\r\n\t\t\t\tif (this.isPasswordChange)\r\n\t\t\t\t\tlocalStorage.setItem('username', JSON.stringify(response.data?.customerData?.username || ''));\r\n\t\t\t\tchangeLoader(true);\r\n\t\t\t\twindow.location.href = this.isPasswordChange ? loginAndRegistration.existingUser.registration : loginAndRegistration.existingUserNoAccount.registration;\r\n\t\t\t})\r\n\t\t},\r\n\t\tgetConsents() {\r\n\t\t\treturn httpService((apiUrls.newUser.consents)).then(response => {\r\n\t\t\t\tthis.consentTemplate = response.data;\r\n\t\t\t});\r\n\t\t},\r\n\t\tchangePassword() {\r\n\t\t\tlet params = {\r\n\t\t\t\tpassword: this.password,\r\n\t\t\t\tpasswordConfirmation : this.repeatedPassword,\r\n\t\t\t} as any;\r\n\r\n\t\t\tif (!this.isPasswordChange) {\r\n\t\t\t\tparams = {\r\n\t\t\t\t\t...params,\r\n\t\t\t\t\tusername: this.newUserName,\r\n\t\t\t\t\tuid: this.email,\r\n\t\t\t\t\tcontactPhoneNumber: this.contactPhone,\r\n\t\t\t\t\tverificationCode: this.emailOtp,\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\treturn httpService.post(apiUrls.registration.registerConfirm, params).then(async (res) => {\r\n\t\t\t\tchangeLoader(true);\r\n\t\t\t\tthis.username = '';\r\n\t\t\t\tlocalStorage.removeItem('username');\r\n\t\t\t\tconsole.log(res)\r\n\t\t\t\tif (!this.isPasswordChange) {\r\n\t\t\t\t\tawait this.acceptTerms();\r\n\t\t\t\t}\r\n\t\t\t\twindow.location.href = this.isPasswordChange ? loginAndRegistration.existingUser.success : loginAndRegistration.existingUserNoAccount.success;\r\n\t\t\t}).catch((error) => {\r\n\t\t\t\tmessagesStore.showErrorMessage(error);\r\n\t\t\t});\r\n\t\t},\r\n\t\tchangeWeakPassword() {\r\n\t\t\tlet params = {\r\n\t\t\t\tnewPassword: this.password,\r\n\t\t\t\tconfirmedPassword: this.repeatedPassword,\r\n\t\t\t} as any;\r\n\t\t\treturn httpService.put(apiUrls.updateWeakPassword.url, params).then(() => {\r\n\t\t\t\tthis.showWeakPasswordModal = true;\r\n\t\t\t}).catch(e => {\r\n\t\t\t\treturn useUser().logOut().finally(() => {\r\n\t\t\t\t\twindow.location.href = '/';\r\n\t\t\t\t})\r\n\t\t\t})\r\n\t\t},\r\n\t\tcheckUsename() {\r\n\t\t\tthis.offeredUsernames = [];\r\n\t\t\treturn httpService.post(apiUrls.registration.checkUsername, {\r\n\t\t\t\tusername : this.newUserName,\r\n\t\t\t}).then((response) => {\r\n\t\t\t\tif (response.data.usernames.length) {\r\n\t\t\t\t\tthis.offeredUsernames = response.data.usernames;\r\n\t\t\t\t\tVue.prototype.$bus.$emit('register:checkusername', true);\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\tthis.isValidateUsername = true;\r\n\t\t\t\t\tthis.validatedUsername = this.newUserName;\r\n\t\t\t\t\tVue.prototype.$toast.success(messages.rs.message.checkout.newUser.usernameAvailable);\r\n\t\t\t\t}\r\n\t\t\t}).catch((error) => {\r\n\t\t\t\tmessagesStore.showErrorMessage(error);\r\n\t\t\t});\r\n\t\t},\r\n\t\tsetPrimaryContactDocumentIdIssueDate() {\r\n\t\t\tlet day, month, year, rest;\r\n\t\t\tif (this.formattedDate) {\r\n\t\t\t\t[day, month, year, ...rest] = this.formattedDate.split('.');\r\n\t\t\t\tthis.primaryContactDocumentIdIssueDate = `${year}-${month}-${day}T01:00:00+01:00`;\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t\tthis.primaryContactDocumentIdIssueDate = '';\r\n\t\t},\r\n\t\tsubmitRegistrationNewUser() {\r\n\t\t\tconst userStore = useUser();\r\n\t\t\tconst addressSystem = useAddressSystem();\r\n\t\t\tconst messagesStore = useMessages();\r\n\t\t\tconst { line1, line2, apartment, town, province } = addressSystem.address;\r\n\t\t\treturn httpService.post(apiUrls.checkoutAdditionalData.registerUser.url, {\r\n\t\t\t\tsignUpWsDTO: {\r\n\t\t\t\t\taddress: {\r\n\t\t\t\t\t\tapartment: apartment,\r\n\t\t\t\t\t\tline2: addressSystem.getOptionLabel(line2),\r\n\t\t\t\t\t\t// @ts-ignore\r\n\t\t\t\t\t\ttisAddressCode: line2?.code,\r\n\t\t\t\t\t\t// @ts-ignore\r\n\t\t\t\t\t\tline1: line1.name,\r\n\t\t\t\t\t\t// @ts-ignore\r\n\t\t\t\t\t\ttown: town.name,\r\n\t\t\t\t\t\t// @ts-ignore\r\n\t\t\t\t\t\tprovince: province.name,\r\n\t\t\t\t\t},\r\n\t\t\t\t\tcustomerData: {\r\n\t\t\t\t\t\tcontactEmail: this.email,\r\n\t\t\t\t\t\tjmbg: this.jmbg,\r\n\t\t\t\t\t\tdocId: this.primaryContactDocumentIdNum,\r\n\t\t\t\t\t\tdocIssueAuthority: this.primaryContactDocumentIdIssueAuthority,\r\n\t\t\t\t\t\tcontactPhone: this.contactPhone,\r\n\t\t\t\t\t\tdocIssueDate: this.primaryContactDocumentIdIssueDate,\r\n\t\t\t\t\t\tfirstName: this.firstName,\r\n\t\t\t\t\t\tlastName: this.lastName\r\n\t\t\t\t\t},\r\n\t\t\t\t\tuid: this.email,\r\n\t\t\t\t\tpassword: this.password,\r\n\t\t\t\t\tpasswordConfirmation : this.repeatedPassword,\r\n\t\t\t\t\tverificationCode: this.emailOtp,\r\n\t\t\t\t\tusername: this.newUserName,\r\n\t\t\t\t}\r\n\t\t\t}).then(async (response) => {\r\n\t\t\t\tlocalStorage.removeItem('jmbg');\r\n\t\t\t\tchangeLoader(true)\r\n\t\t\t\tawait userStore.setEmail(this.email);\r\n\t\t\t\tawait userStore.setPassword(this.password);\r\n\t\t\t\tawait userStore.authorizeUser();\r\n\t\t\t\tawait this.acceptTerms();\r\n\t\t\t\twindow.location.href = loginAndRegistration.newUser.success;\r\n\t\t\t}).catch((error) => {\r\n\t\t\t\tmessagesStore.showErrorMessage(error);\r\n\t\t\t});\r\n\t\t},\r\n\t\tacceptTerms() {\r\n\t\t\treturn httpService.post(apiUrls.newUser.acceptTerms.url).then((response) => {\r\n\t\t\t\tconsole.log(response);\r\n\t\t\t}).catch((error) => {\r\n\t\t\t\tconsole.error(error);\r\n\t\t\t});\r\n\t\t}\r\n },\r\n})\r\n","var render = function render(){var _vm=this,_c=_vm._self._c,_setup=_vm._self._setupProxy;return _c(_setup.ValidationObserver,{ref:\"form\",attrs:{\"slim\":\"\",\"vid\":\"keyComponent\"}},[_c('form',{staticClass:\"ecb2c__form no-grid choose-options\",attrs:{\"id\":\"checkout-check-msisdn\"}},[_c('div',{staticClass:\"input-button-wrap\"},[(_vm.isEmail)?_c(_setup.UserInfoInput,{attrs:{\"name\":'email',\"type-prop\":\"email\",\"validation-rules\":'required|email',\"label-text\":_vm.emailLabel || 'Imejl'},model:{value:(_setup.email),callback:function ($$v) {_setup.email=(typeof $$v === 'string'? $$v.trim(): $$v)},expression:\"email\"}}):_c(_setup.UserInfoInput,{attrs:{\"name\":'existingNumber',\"validation-rules\":'required|numericWithPlus|numberStarts',\"placeholder\":_vm.$t('message.checkout.userData.labels.enter'),\"autocomplete\":\"off\",\"label-text\":_vm.$t('message.checkout.userData.labels.mobileNumber'),\"tooltip-text\":_vm.$t('message.checkout.userIdentification.msisdnTooltip')},model:{value:(_setup.existingNumber),callback:function ($$v) {_setup.existingNumber=(typeof $$v === 'string'? $$v.trim(): $$v)},expression:\"existingNumber\"}}),_c('div',{staticClass:\"form-group submit-wrap\"},[_c('button',{staticClass:\"btn send-otp-btn red-border-btn\",class:{ 'otp-sent-btn': _setup.isOTPSent && _setup.areFieldsUnchaged},attrs:{\"disabled\":_setup.isOTPSent || (_vm.isEmail && !_setup.email) || (!_vm.isEmail && !_setup.existingNumber) || !!(_setup.filteredErrors?.length) || !!(_setup.form?.errors['existingNumber']?.length)},on:{\"click\":function($event){$event.preventDefault();!_setup.isOTPSent && _setup.validateAndSendOtp()}}},[(_setup.showOtpField)?[_c('img',{staticClass:\"icon\",attrs:{\"alt\":\"Checkmark\",\"src\":\"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTIgOEw1Ljc4NjA5IDEyTDE0IDQiIHN0cm9rZT0id2hpdGUiIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIi8+Cjwvc3ZnPgo=\"}}),(_setup.timer)?_c('span',{staticClass:\"text\"},[_vm._v(_vm._s(_vm.$t('message.checkout.otp.sent'))+\" (\"+_vm._s(_setup.timer)+\"s)\")]):_vm._e()]:[_vm._v(\" \"+_vm._s(_vm.$t('message.checkout.msisdn.existing.sendOtp'))+\" \")]],2)])],1),_c(_setup.SlideUpDown,{staticClass:\"full-width\",attrs:{\"duration\":500,\"active\":_setup.isOTPSent && _setup.areFieldsUnchaged}},[(!_vm.isEmail)?_c(_setup.UserInfoInput,{staticClass:\"otp-code-input-field\",attrs:{\"name\":'msisdn',\"validation-rules\":_setup.currentValidation,\"label-text\":'Unesi kod'},on:{\"input\":_setup.updateEmailValue},model:{value:(_setup.existingNumberOtp),callback:function ($$v) {_setup.existingNumberOtp=(typeof $$v === 'string'? $$v.trim(): $$v)},expression:\"existingNumberOtp\"}}):_c(_setup.UserInfoInput,{staticClass:\"otp-code-input-field\",attrs:{\"name\":'msisdn',\"validation-rules\":_setup.currentValidation,\"label-text\":'Verifikacioni kod'},model:{value:(_setup.emailOtp),callback:function ($$v) {_setup.emailOtp=(typeof $$v === 'string'? $$v.trim(): $$v)},expression:\"emailOtp\"}}),(!_vm.isEmail || _vm.isSso)?[(!_vm.isEmail)?_c('p',{staticClass:\"text-14 expanded-desc\"},[_vm._v(\" \"+_vm._s(_vm.$t('message.checkout.otp.codeSuccessfullySent'))+\" \")]):_vm._e(),_c('div',{staticClass:\"form-group submit-wrap\"},[_c('button',{staticClass:\"btn theme-btn\",attrs:{\"type\":\"submit\"},on:{\"click\":function($event){$event.preventDefault();return _setup.submitExisting.apply(null, arguments)}}},[(_vm.isSso)?[_vm._v(\" \"+_vm._s(_vm.$t('message.userFillData.submitBtn'))+\" \")]:[_vm._v(\" \"+_vm._s(_vm.$t('message.common.actions.confirm'))+\" \")]],2)])]:_vm._e()],2)],1)])\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import { defineComponent as _defineComponent } from 'vue'\nimport UserInfoInput from '@components/co-user-info/user-info-input.vue';\r\nimport { useCheckoutUserIdentification } from '@store/checkout-user-identification';\r\nimport { useMessages } from '@store/messages';\r\nimport { storeToRefs } from 'pinia';\r\nimport { ValidationObserver } from 'vee-validate';\r\nimport Vue, { computed, nextTick, ref, watch } from 'vue';\r\nimport SlideUpDown from 'vue-slide-up-down';\r\n\r\nimport { otp } from '@/services/constants';\r\nimport { scrollInputFieldIntoView } from '@/services/utils';\r\n\r\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'otp-validate',\n props: {\n isEmail: { type: Boolean },\n otpTimer: null,\n emailLabel: null,\n isSso: { type: Boolean },\n errors: null\n },\n setup(__props: any) {\n\nconst props = __props as {\r\n\tisEmail?: boolean,\r\n\totpTimer?: number,\r\n\temailLabel?: string,\r\n\tisSso?: boolean,\r\n\terrors?: string[]\r\n};\n\r\nconst checkoutUserIdentificationStore = useCheckoutUserIdentification();\r\nconst messagesStore = useMessages();\r\n\r\nconst form = ref(null) as any;\r\nconst currentValidation = ref('');\r\nconst isSubmitted = ref(false);\r\nconst otpValidation = ref('required|length:6');\r\n\r\n\r\nconst timer = ref(props.otpTimer || otp.msisdnTimer);\r\n\r\nconst {\r\n\tisOTPSent,\r\n\texistingNumber,\r\n\temail,\r\n\temailOtp,\r\n\texistingNumberOtp,\r\n\tvalidatedEmail,\r\n\tvalidatedExistingNumber\r\n} = storeToRefs(checkoutUserIdentificationStore);\r\n\r\nconst {\r\n\tsendOtp,\r\n\tsendOtpToEmail,\r\n\tsubmitMsisdnAndOtp,\r\n\tsendSsoOtpToEmail,\r\n\tupdateSsoEmail,\r\n} = checkoutUserIdentificationStore;\r\n\r\nconst {\r\n\tshowErrorMessage,\r\n} = messagesStore;\r\n\r\nconst validateAndSendOtp = () => {\r\n\tconst apiMethod = props.isSso ? sendSsoOtpToEmail : sendOtpToEmail;\r\n\tcurrentValidation.value = '';\r\n\tisSubmitted.value = true;\r\n\tnextTick(() => {\r\n\t\tif (form.value) {\r\n\t\t\tform.value.validate().then(result => {\r\n\t\t\t\tif (result) {\r\n\t\t\t\t\tif (props.isEmail) {\r\n\t\t\t\t\t\tapiMethod();\r\n\t\t\t\t\t\tcurrentValidation.value = otpValidation.value;\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse\r\n\t\t\t\t\t\tsendOtp();\r\n\t\t\t\t\tstartTimer();\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\t}\r\n\t});\r\n};\r\n\r\nconst submitExisting = () => {\r\n\tconst apiMethod = props.isSso ? updateSsoEmail : submitMsisdnAndOtp;\r\n\tisSubmitted.value = true;\r\n\tcurrentValidation.value = otpValidation.value;\r\n\tnextTick(() => {\r\n\t\tif (form.value) {\r\n\t\t\tform.value.validate().then(result => {\r\n\t\t\t\tif (result) {\r\n\t\t\t\t\tapiMethod().catch((error) => {\r\n\t\t\t\t\t\tshowErrorMessage(error);\r\n\t\t\t\t\t});\r\n\t\t\t\t}\r\n\t\t\t\tif (!result)\r\n\t\t\t\t\tscrollInputFieldIntoView(form.value);\r\n\t\t\t});\r\n\t\t}\r\n\t});\r\n};\r\n\r\nconst startTimer = () => {\r\n\ttry {\r\n\t\tisOTPSent.value = true;\r\n\t\ttimer.value = props.otpTimer || 60;\r\n\t\tconst countdown = setInterval(() => {\r\n\t\t\ttimer.value -= 1;\r\n\t\t\tif (timer.value <= 0) {\r\n\t\t\t\tclearInterval(countdown);\r\n\t\t\t\tisOTPSent.value = false;\r\n\t\t\t}\r\n\t\t}, 1000);\r\n\t}\r\n\tcatch (e) {\r\n\t\tconsole.error(e);\r\n\t}\r\n};\r\n\r\nwatch(existingNumber, () => {\r\n\texistingNumberOtp.value = '';\r\n}, { deep: true });\r\n\r\nconst isEmailFieldUnchanged = computed(() => props.isEmail && (email.value === validatedEmail.value));\r\nconst isNumberFieldUnchanged = computed(() => !props.isEmail && (existingNumber.value === validatedExistingNumber.value));\r\nconst areFieldsUnchaged = computed(() => isEmailFieldUnchanged.value || isNumberFieldUnchanged.value);\r\nconst showOtpField = computed(() => isOTPSent.value && areFieldsUnchaged.value);\r\n\r\nwatch(showOtpField, () => {\r\n\tif (!showOtpField.value) {\r\n\t\texistingNumberOtp.value = '';\r\n\t\temailOtp.value = '';\r\n\t\ttimer.value = 0;\r\n\t}\r\n});\r\n\r\nfunction updateEmailValue(value) {\r\n\tVue.prototype.$bus.$emit('register:changed-email-input', value);\r\n}\r\n\r\nconst filteredErrors = computed(() => props.errors?.filter(errror => errror !== otp.errorMessage));\r\n\nreturn { __sfc: true,checkoutUserIdentificationStore, messagesStore, form, currentValidation, isSubmitted, otpValidation, props, timer, isOTPSent, existingNumber, email, emailOtp, existingNumberOtp, validatedEmail, validatedExistingNumber, sendOtp, sendOtpToEmail, submitMsisdnAndOtp, sendSsoOtpToEmail, updateSsoEmail, showErrorMessage, validateAndSendOtp, submitExisting, startTimer, isEmailFieldUnchanged, isNumberFieldUnchanged, areFieldsUnchaged, showOtpField, updateEmailValue, filteredErrors, UserInfoInput, ValidationObserver, SlideUpDown }\n}\n\n})","import mod from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--14-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/ts-loader/index.js??ref--14-3!../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./otp-validate.vue?vue&type=script&setup=true&lang=ts\"; export default mod; export * from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--14-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/ts-loader/index.js??ref--14-3!../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./otp-validate.vue?vue&type=script&setup=true&lang=ts\"","import { render, staticRenderFns } from \"./otp-validate.vue?vue&type=template&id=f0f17bc6\"\nimport script from \"./otp-validate.vue?vue&type=script&setup=true&lang=ts\"\nexport * from \"./otp-validate.vue?vue&type=script&setup=true&lang=ts\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports"],"sourceRoot":""}