{"version":3,"sources":["webpack:///./src/accountSetup/educationLevelHelper.ts","webpack:///./src/accountPassword/accountPasswordClient.ts","webpack:///./src/accountSetup/steps/SelectCategories.vue?e70a","webpack:///./src/accountSetup/AccountSetup.vue","webpack:///./src/accountSetup/steps/BasicInfoStep.vue","webpack:///./src/accountSetup/steps/BaseStep.ts","webpack:///./src/accountSetup/steps/UploadPhotoStep.vue","webpack:///./src/accountSetup/steps/UploadPhotoStep.vue?b247","webpack:///./src/accountSetup/steps/UploadPhotoStep.vue?d1e8","webpack:///./src/accountSetup/steps/UploadPhotoStep.vue?cb25","webpack:///./src/accountSetup/steps/BasicInfoStep.vue?ac3b","webpack:///./src/accountSetup/steps/BasicInfoStep.vue?7c95","webpack:///./src/accountSetup/steps/BasicInfoStep.vue?81c4","webpack:///./src/accountSetup/steps/SelectAccountStep.vue","webpack:///./src/accountSetup/steps/SelectAccountStep.vue?28dc","webpack:///./src/accountSetup/steps/SelectAccountStep.vue?4fc7","webpack:///./src/accountSetup/steps/SelectAccountStep.vue?ca32","webpack:///./src/accountSetup/steps/InterestsStep.vue","webpack:///./src/accountSetup/steps/InterestsStep.vue?88eb","webpack:///./src/accountSetup/steps/InterestsStep.vue?e37f","webpack:///./src/accountSetup/steps/InterestsStep.vue?c34b","webpack:///./src/accountSetup/steps/InvoiceInfoStep.vue","webpack:///./src/accountSetup/steps/InvoiceInfoStep.vue?8475","webpack:///./src/accountSetup/steps/InvoiceInfoStep.vue?db6a","webpack:///./src/accountSetup/steps/InvoiceInfoStep.vue?afa8","webpack:///./src/accountSetup/steps/AddressStep.vue","webpack:///./src/accountSetup/steps/AddressStep.vue?96e4","webpack:///./src/accountSetup/steps/AddressStep.vue?c428","webpack:///./src/accountSetup/steps/AddressStep.vue?18b0","webpack:///./src/accountSetup/steps/CategoriesAndLanguages.vue","webpack:///./src/accountSetup/steps/CategoriesAndLanguages.vue?dfc4","webpack:///./src/accountSetup/steps/CategoriesAndLanguages.vue?1fc9","webpack:///./src/accountSetup/steps/CategoriesAndLanguages.vue?19b9","webpack:///./src/accountSetup/AccountSetup.vue?d01b","webpack:///./src/accountSetup/AccountSetup.vue?4f29","webpack:///./src/accountSetup/AccountSetup.vue?ec4e","webpack:///./src/accountSetup/steps/SelectCategories.vue","webpack:///./src/accountSetup/steps/SelectCategories.vue?183f","webpack:///./src/accountSetup/steps/SelectCategories.vue?7fcc","webpack:///./src/accountSetup/steps/SelectCategories.vue?b2a8","webpack:///./src/accountSetup/steps/InterestsStep.vue?71e1"],"names":["getEducationLevelOptionsTranslations","vue","value","EducationLevel","Higher","text","$t","Student","Other","getEducationLevelOptionTranslation","filter","o","url","getBaseServiceUrl","requestResetPassword","emailAddress","axios","get","resetPassword","data","post","render","_vm","this","_c","_self","_setupProxy","staticClass","currentStepTitle","_v","_s","accountType","_e","stepsToDisplay","length","class","_l","stepToDisplay","index","key","object","title","step","on","$event","steps","indexOf","preventDefault","onSave","apply","arguments","stepComponent","component","_b","directives","name","rawName","expression","tag","attrs","mountedCallback","props","minStep","onPrev","isNextEnabled","isLoading","onNext","maxStep","staticRenderFns","model","form","firstName","callback","$$v","$set","lastName","maritalStatusOptions","maritalStatus","birthDate","rawHeight","genderOptions","gender","educationLevelOptions","educationLevel","higherEducationLevel","educationDetails","studentEducationLevel","otherEducationLevel","isAssistant","hourlyRate","description","BaseStep","Vue","mounted","__decorate","Prop","ref","UploadPhotoStep","canGoNext","store","getters","module","user","AccountType","Client","$refs","uploadPicture","hasAny","toString","save","Promise","resolve","super","shouldBeDisplayed","Component","components","UploadPicture","BasicInfoStep","constructor","scale","Assistant","saveAccountSetup","id","Date","undefined","height","getHeightInOtherScale","then","dispatch","updateStoredUser","catch","hasFullName","hasHourlyRate","storeUser","parse","Gender","Female","Male","getMaritalStatusOptionsTranslations","birthDatepicker","SelectHeight","showInvoicingMode","invoicingMode","SelectAccountStep","Unknown","CustomerInvoicingMode","setAccountType","saveCustomerInvoicingMode","customerInvoicingMode","SelectAccountType","SelectInvoicingMode","hobbyIds","interestIds","InterestsStep","updateInterest","updateUserInterests","error","pushError","response","finally","updateHobbies","updateUserHobbies","SelectInterests","SelectHobbies","InvoiceInfoStep","onSubmit","FullVat","InvoiceDetailsForm","AddressStep","isValid","EditAddressForm","CategoriesAndLanguages","formCategories","categoriesForm","selectedAmount","formLanguages","SelectCategories","SelectLanguages","AccountSetup","goToNextDisplayedStep","$router","push","s","currentStep","loading","loaded","window","scrollTo","selectedSkillOnline","setCategory","categoryGroups","sort","a","b","order","group","selectedGroup","setVisibleGroup","categories","skill","hasExternalSaveButton","allCategoryGroups","$watch","skillIds","result","fetchCategories","updateUserCategories","$el","children","scrollIntoView","c","serviceType"],"mappings":"kKAAA,oFAEO,MAAMA,EAAwCC,GAC1C,CACH,CAAEC,MAAOC,OAAeC,OAAQC,KAAMJ,EAAIK,GAAG,WAC7C,CAAEJ,MAAOC,OAAeI,QAASF,KAAMJ,EAAIK,GAAG,YAC9C,CAAEJ,MAAOC,OAAeK,MAAOH,KAAMJ,EAAIK,GAAG,WAIvCG,EAAqC,CAACR,EAAUC,IAClDF,EAAqCC,GAAKS,OAAOC,GAAKA,EAAET,QAAUA,GAAO,GAAGG,M,oCCXvF,yGAGA,MAAMO,EAASC,iBAAH,oBAQN,SAAUC,EAAqBC,GACjC,OAAOC,IAAcC,IAAa,GAAGL,mBAAqBG,KAGxD,SAAUG,EAAcC,GAC1B,OAAOH,IAAcI,KAAiBR,EAAH,SAAgBO,K,oCChBvD,W,2CCAA,IAAIE,EAAS,WAAkB,IAAIC,EAAIC,KAAKC,EAAGF,EAAIG,MAAMD,GAAUF,EAAIG,MAAMC,YAAY,OAAOF,EAAG,OAAO,CAACG,YAAY,kBAAkB,CAACH,EAAG,MAAM,CAACG,YAAY,oBAAoB,CAAEL,EAAIM,mBAAqBN,EAAIhB,GAAG,gBAAiBkB,EAAG,MAAM,CAACG,YAAY,wBAAwB,CAAEL,EAAIM,mBAAqBN,EAAIhB,GAAG,qBAAsB,CAACkB,EAAG,KAAK,CA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ACEpL,KAAK+C,KAAO6B,OAAMC,QAAQC,OAAOC,KAAMqG,WAG3CpL,KAAK+C,KAAO6B,OAAMC,QAAQC,OAAOC,KAAMqG,SACvC,IACEpL,KAAK0C,WAAY,EACjB,MAAM2I,QAAeC,iBACrBtL,KAAKkL,kBAAoBG,EAAOzL,KAChCI,KAAK6K,cAAgB7K,KAAKuK,eAAiBvK,KAAKuK,eAAe,GAAGpE,GAAK,GACvE,MAAOkC,GAAO,QACdC,gBAAW,UAAAD,EAAcE,gBAAd,mBAAwB3I,YAAxB,eAA8ByI,QAASA,GANpD,QAQErI,KAAK0C,WAAY,GAIP,iBACZ,IACE1C,KAAK0C,WAAY,QAEX6I,eAAqB3G,OAAMC,QAAQC,OAAOC,KAAMoB,GAAInG,KAAK+C,YACzD6B,OAAM6B,SAAS3B,OAAO4B,iBAAiB,CAAE0E,SAAUpL,KAAK+C,OAC9D/C,KAAKwL,IAAIC,SAAS,GAAGC,iBACrB,MAAOrD,GAAO,QACdC,gBAAW,UAAAD,EAAcE,gBAAd,mBAAwB3I,YAAxB,eAA8ByI,QAASA,GAPpD,QASErI,KAAK0C,WAAY,GAIH,qBAChB,OAAO1C,KAAKkL,kBAAkB/L,OAC3BwM,GAAMA,EAAEC,cAAgB5L,KAAKqK,uBAvD1B9F,gBAAPC,kBAAO,4CADWiF,EAAgB,gBADpC9D,QACoB8D,WCZwY,I,wBCQzZ5H,EAAY,eACd,EACA/B,EACA+C,GACA,EACA,KACA,KACA,MAIa,OAAAhB,E,2CCnBf","file":"js/account~cd81062e.6e4f609f.js","sourcesContent":["import { EducationLevel } from './accountSetupService'\n\nexport const getEducationLevelOptionsTranslations = (vue: Vue) => {\n return [\n { value: EducationLevel.Higher, text: vue.$t('Higher') },\n { value: EducationLevel.Student, text: vue.$t('Student') },\n { value: EducationLevel.Other, text: vue.$t('Other') },\n ]\n}\n\nexport const getEducationLevelOptionTranslation = (vue: Vue, value: EducationLevel) => {\n return getEducationLevelOptionsTranslations(vue).filter(o => o.value === value)[0].text;\n}","import { getBaseServiceUrl } from '@/helpers/settingsHelper'\nimport * as axios from 'axios'\n\nconst url = `${getBaseServiceUrl()}/account/password`;\n\nexport interface ResetPasswordModel {\n resetPasswordRequestId: string;\n userId: string;\n newPassword: string;\n}\n\nexport function requestResetPassword(emailAddress: string) {\n return axios.default.get(`${url}/request-reset/${emailAddress}`);\n}\n\nexport function resetPassword(data: ResetPasswordModel) {\n return axios.default.post(`${url}/reset`, data);\n}","export * from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--9-oneOf-1-0!../../../node_modules/css-loader/dist/cjs.js??ref--9-oneOf-1-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--9-oneOf-1-2!../../../node_modules/sass-loader/dist/cjs.js??ref--9-oneOf-1-3!../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./SelectCategories.vue?vue&type=style&index=0&id=23549485&prod&lang=scss&\"","var render = function render(){var _vm=this,_c=_vm._self._c,_setup=_vm._self._setupProxy;return _c('main',{staticClass:\"account-set-up\"},[_c('div',{staticClass:\"container-custom\"},[(_vm.currentStepTitle !== _vm.$t('Account type'))?_c('div',{staticClass:\"account-set-up__data\"},[(_vm.currentStepTitle === _vm.$t('Basic information'))?[_c('h2',[_vm._v(_vm._s(_vm.$t('This is the first step to join our platform. We’re glad that you’re here!')))]),(_vm.accountType === 0)?[_c('p',[_vm._v(_vm._s(_vm.$t('Your profile is like your business card. Present yourself in the best light possible and reveal only true information about yourself.')))]),_c('p',[_vm._v(_vm._s(_vm.$t('Earn money selling your online and offline services. Choose how much is your hourly wage!')))]),_c('p',[_vm._v(_vm._s(_vm.$t('Tell us who you are and what is your professional experience. What are you passionate about and what do you like to do? Describe yourself in a few sentences so that we can get to know you better!')))]),_c('p',[_vm._v(_vm._s(_vm.$t('Upload a good quality photo of yourself! Remember that it has to represent your true image.')))])]:_vm._e(),(_vm.accountType === 1)?[_c('p',[_vm._v(_vm._s(_vm.$t('Your profile is like your business card. Present yourself in the best light possible and reveal only true information about yourself.')))]),_c('p',[_vm._v(_vm._s(_vm.$t('What do you do and who are you looking for on the Assistant Line? What are your passions and what do you like to do in life? Describe yourself in a few sentences so that we can get to know you better!')))]),_c('p',[_vm._v(_vm._s(_vm.$t('Upload a good quality photo of yourself! Remember that it has to represent your true image.')))])]:_vm._e()]:_vm._e(),(_vm.currentStepTitle === _vm.$t('Your address'))?[_c('h2',[_vm._v(_vm._s(_vm.$t('In the second step, tell us where you are from!')))]),(_vm.accountType === 0)?[_c('p',[_vm._v(_vm._s(_vm.$t('Make it easy to find you in your city! Fill in your residential address so that the clients can use your services in the local area.')))]),_c('p',[_vm._v(_vm._s(_vm.$t('Assistant Line makes it possible to earn money from anywhere in the world, so you can provide services from wherever you want!')))])]:_vm._e(),(_vm.accountType === 1)?[_c('p',[_vm._v(_vm._s(_vm.$t('Complete your home location to let the Assistants know where you are from. Be authentic!')))]),_c('p',[_vm._v(_vm._s(_vm.$t('Assistant Line makes it possible to earn money from anywhere in the world, so you can provide services from wherever you want!')))])]:_vm._e()]:_vm._e(),(_vm.currentStepTitle === _vm.$t('Interests and skills'))?[(_vm.accountType === 0)?[_c('h2',[_vm._v(_vm._s(_vm.$t('This is the penultimate and most important part of the registration process. Choose the services you want to provide to clients!')))]),_c('p',[_vm._v(_vm._s(_vm.$t('Be honest about your skills, add only the ones you can reliably use at work!')))])]:_vm._e(),(_vm.accountType === 1)?[_c('h2',[_vm._v(_vm._s(_vm.$t('This is the penultimate and most important part of registration. Add what services you are looking for. Your selection will help us find the best assistants for you.'))+\" \")])]:_vm._e()]:_vm._e(),(_vm.currentStepTitle === _vm.$t('Choose your interests.'))?[_c('h2',[_vm._v(_vm._s(_vm.$t('In the last step, share your hobbies and interests so that others can get to know you better!')))])]:_vm._e()],2):_vm._e(),_c('div',{staticClass:\"account-set-up__form\"},[_c('div',{staticClass:\"account-set-up__top\"},[(_vm.accountType === 0 && _vm.currentStepTitle !== _vm.$t('Account type'))?[_c('div',{staticClass:\"title\"},[_vm._v(_vm._s(_vm.$t('Assistant registration')))]),(_vm.currentStepTitle === _vm.$t('Basic information'))?[_c('p',[_vm._v(_vm._s(_vm.$t('Complete the information about yourself')))])]:_vm._e(),(_vm.currentStepTitle === _vm.$t('Your address'))?[_c('p',[_vm._v(_vm._s(_vm.$t('Add your address')))])]:_vm._e(),(_vm.currentStepTitle === _vm.$t('Interests and skills'))?[_c('p',[_vm._v(_vm._s(_vm.$t('Add language knowledge and choose online and offline skills')))])]:_vm._e(),(_vm.currentStepTitle === _vm.$t('Choose your interests.'))?[_c('p',[_vm._v(_vm._s(_vm.$t('Add interests and passions')))])]:_vm._e()]:_vm._e(),(_vm.accountType === 1)?[_c('div',{staticClass:\"title\"},[_vm._v(_vm._s(_vm.$t('Client registration')))]),(_vm.currentStepTitle === _vm.$t('Basic information'))?[_c('p',[_vm._v(_vm._s(_vm.$t('Complete the information about yourself')))])]:_vm._e(),(_vm.currentStepTitle === _vm.$t('Your address'))?[_c('p',[_vm._v(_vm._s(_vm.$t('Add your address')))])]:_vm._e(),(_vm.currentStepTitle === _vm.$t('Interests and skills'))?[_c('p',[_vm._v(_vm._s(_vm.$t('Add language knowledge and choose online and offline skills')))])]:_vm._e(),(_vm.currentStepTitle === _vm.$t('Choose your interests.'))?[_c('p',[_vm._v(_vm._s(_vm.$t('Add interests and passions')))])]:_vm._e()]:_vm._e()],2),_c('div',{staticClass:\"formContainer\"},[(_vm.stepsToDisplay.length > 0 && _vm.currentStepTitle !== _vm.$t('Account type'))?_c('div',{staticClass:\"steps\",class:{'is-full': _vm.accountType === 0}},_vm._l((_vm.stepsToDisplay),function(stepToDisplay,index){return _c('div',{key:stepToDisplay.object.title,staticClass:\"step\",class:{'active': stepToDisplay.object.title == _vm.currentStepTitle, 'done': _vm.step > index + 1},on:{\"click\":function($event){_vm.step = _vm.steps.indexOf(stepToDisplay)}}},[_c('span',[_vm._v(_vm._s(index + 1))]),_vm._v(\" \"+_vm._s(stepToDisplay.object.title)+\" \")])}),0):_vm._e(),_c('b-form',{on:{\"submit\":function($event){$event.preventDefault();return _vm.onSave.apply(null, arguments)}}},[_vm._l((_vm.steps),function(stepComponent,index){return _c(stepComponent.component,_vm._b({directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.step == index),expression:\"step == index\"}],key:index,tag:\"component\",attrs:{\"mountedCallback\":(component) => _vm.mountedCallback(index, component)}},'component',stepComponent.props,false))}),_c('div',{staticClass:\"formButtons\"},[_c('b-button',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.step > _vm.minStep),expression:\"step > minStep\"}],staticClass:\"formButton--prev\",attrs:{\"variant\":\"outline-primary\"},on:{\"click\":_vm.onPrev}},[_vm._v(_vm._s(_vm.$t('Previous')))]),_c('b-button',{staticClass:\"formButton--next\",attrs:{\"variant\":\"primary\",\"disabled\":!_vm.isNextEnabled || _vm.isLoading},on:{\"click\":_vm.onNext}},[_vm._v(_vm._s(_vm.step < _vm.maxStep ? _vm.$t('Next') : _vm.$t('Finish')))])],1)],2)],1)])])])\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","var render = function render(){var _vm=this,_c=_vm._self._c,_setup=_vm._self._setupProxy;return _c('div',{staticClass:\"basicInfoStep\"},[_c('b-form-group',{attrs:{\"label\":`${_vm.$t('First name')}*`,\"label-for\":\"firstName\"}},[_c('b-form-input',{attrs:{\"id\":\"firstName\",\"name\":\"firstName\",\"autocomplete\":\"off\",\"required\":\"\"},model:{value:(_vm.form.firstName),callback:function ($$v) {_vm.$set(_vm.form, \"firstName\", $$v)},expression:\"form.firstName\"}})],1),_c('b-form-group',{attrs:{\"label\":`${_vm.$t('Last name')}*`,\"label-for\":\"lastName\"}},[_c('b-form-input',{attrs:{\"id\":\"lastName\",\"name\":\"lastName\",\"autocomplete\":\"off\",\"required\":\"\"},model:{value:(_vm.form.lastName),callback:function ($$v) {_vm.$set(_vm.form, \"lastName\", $$v)},expression:\"form.lastName\"}})],1),_c('div',{staticClass:\"form-row\"},[_c('b-form-group',{attrs:{\"label\":`${_vm.$t('Marital status')}`,\"label-for\":\"maritalStatus\"}},[_c('b-form-select',{attrs:{\"id\":\"maritalStatus\",\"options\":_vm.maritalStatusOptions},model:{value:(_vm.form.maritalStatus),callback:function ($$v) {_vm.$set(_vm.form, \"maritalStatus\", $$v)},expression:\"form.maritalStatus\"}})],1),_c('b-form-group',{attrs:{\"label\":`${_vm.$t('Date of birth')}`}},[_c('birth-datepicker',{model:{value:(_vm.form.birthDate),callback:function ($$v) {_vm.$set(_vm.form, \"birthDate\", $$v)},expression:\"form.birthDate\"}})],1)],1),_c('div',{staticClass:\"form-row\"},[_c('select-height',{model:{value:(_vm.rawHeight),callback:function ($$v) {_vm.rawHeight=$$v},expression:\"rawHeight\"}}),_c('b-form-group',{attrs:{\"label\":`${_vm.$t('Gender')}`,\"label-for\":\"gender\"}},[_c('b-form-select',{attrs:{\"id\":\"gender\",\"options\":_vm.genderOptions,\"name\":\"gender\"},model:{value:(_vm.form.gender),callback:function ($$v) {_vm.$set(_vm.form, \"gender\", $$v)},expression:\"form.gender\"}})],1)],1),_c('b-form-group',{staticClass:\"educationLevel\",attrs:{\"label\":`${_vm.$t('Education')}*`}},[_c('b-form-select',{attrs:{\"id\":\"educationLevel\",\"options\":_vm.educationLevelOptions},model:{value:(_vm.form.educationLevel),callback:function ($$v) {_vm.$set(_vm.form, \"educationLevel\", $$v)},expression:\"form.educationLevel\"}})],1),(_vm.form.educationLevel === _vm.higherEducationLevel)?_c('b-form-group',{attrs:{\"label\":`${_vm.$t('University/Major')}`,\"label-for\":\"firstName\"}},[_c('b-form-input',{attrs:{\"required\":\"\"},model:{value:(_vm.form.educationDetails),callback:function ($$v) {_vm.$set(_vm.form, \"educationDetails\", $$v)},expression:\"form.educationDetails\"}})],1):_vm._e(),(_vm.form.educationLevel === _vm.studentEducationLevel)?_c('b-form-group',{attrs:{\"label\":`${_vm.$t('University/Major')}`}},[_c('b-form-input',{attrs:{\"id\":\"education_university\",\"placeholder\":_vm.$t('University/Major'),\"required\":\"\"},model:{value:(_vm.form.educationDetails),callback:function ($$v) {_vm.$set(_vm.form, \"educationDetails\", $$v)},expression:\"form.educationDetails\"}})],1):_vm._e(),(_vm.form.educationLevel === _vm.otherEducationLevel)?_c('b-form-group',{attrs:{\"placeholder\":_vm.$t('What')}},[_c('b-form-input',{attrs:{\"id\":\"education_university\",\"required\":\"\"},model:{value:(_vm.form.educationDetails),callback:function ($$v) {_vm.$set(_vm.form, \"educationDetails\", $$v)},expression:\"form.educationDetails\"}})],1):_vm._e(),_c('UploadPhotoStep'),(_vm.isAssistant)?_c('b-form-group',{attrs:{\"label\":`${_vm.$t('Hourly rate')}*`,\"label-for\":\"hourlyRate\"}},[_c('b-form-input',{attrs:{\"id\":\"hourlyRate\",\"name\":\"hourlyRate\",\"type\":\"number\",\"step\":\"0.01\",\"required\":\"\"},model:{value:(_vm.form.hourlyRate),callback:function ($$v) {_vm.$set(_vm.form, \"hourlyRate\", $$v)},expression:\"form.hourlyRate\"}})],1):_vm._e(),_c('b-form-group',{attrs:{\"label\":`${_vm.$t('A few words about yourself')}*`,\"label-for\":\"description\"}},[_c('b-form-textarea',{attrs:{\"id\":\"description\",\"name\":\"description\",\"required\":\"\"},model:{value:(_vm.form.description),callback:function ($$v) {_vm.$set(_vm.form, \"description\", $$v)},expression:\"form.description\"}})],1)],1)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import { Prop, Vue } from \"vue-property-decorator\";\nexport default abstract class BaseStep extends Vue {\n @Prop() mountedCallback!: (component: BaseStep) => void;\n\n mounted() {\n this.mountedCallback(this);\n }\n\n abstract save() : Promise;\n abstract canGoNext() : boolean;\n abstract shouldBeDisplayed() : boolean;\n abstract get title(): string;\n}","var render = function render(){var _vm=this,_c=_vm._self._c,_setup=_vm._self._setupProxy;return _c('div',[_c('upload-picture',{ref:\"uploadPicture\"})],1)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\nimport { Component, Prop, Vue } from \"vue-property-decorator\";\nimport BaseStep from \"./BaseStep\";\nimport UploadPicture from \"@/panel/UploadPicture.vue\";\nimport { AccountType } from \"../../register/registerModel\";\nimport store from \"../../store\";\n\n@Component({\n components: {\n UploadPicture,\n },\n})\nexport default class UploadPhotoStep extends BaseStep {\n canGoNext(): boolean {\n return store.getters.module.user!.accountType == AccountType.Client || (this.$refs.uploadPicture as UploadPicture).hasAny;\n }\n get title() {\n return this.$t(\"Upload photo\").toString();\n }\n save(): Promise {\n return Promise.resolve();\n // nothing to do here\n }\n\n mounted() {\n super.mounted();\n }\n\n shouldBeDisplayed(): boolean {\n return true;\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!./UploadPhotoStep.vue?vue&type=script&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!./UploadPhotoStep.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./UploadPhotoStep.vue?vue&type=template&id=87659e94&\"\nimport script from \"./UploadPhotoStep.vue?vue&type=script&lang=ts&\"\nexport * from \"./UploadPhotoStep.vue?vue&type=script&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","\r\nimport { getEducationLevelOptionsTranslations } from \"@/accountSetup/educationLevelHelper\";\r\nimport { Component } from \"vue-property-decorator\";\r\nimport BaseStep from \"./BaseStep\";\r\nimport { AccountType } from \"@/register/registerModel\";\r\nimport { EducationLevel, Gender, MaritalStatus, saveAccountSetup } from \"../accountSetupService\";\r\nimport store from \"../../store\";\r\nimport { LoggedUserInformation } from \"../../login/loginModel\";\r\nimport birthDatepicker from 'vue-birth-datepicker/src/birth-datepicker';\r\nimport SelectHeight from '../../assistant/SelectHeight.vue'\r\nimport { getHeightInOtherScale, HeightScale } from \"../../accountSetup/assistantHeightHelper\"\r\nimport { getMaritalStatusOptionsTranslations } from \"../maritalStatusHelper\";\r\nimport UploadPhotoStep from \"@/accountSetup/steps/UploadPhotoStep.vue\";\r\n\r\ninterface BasicInfoStepData {\r\n hourlyRate?: number;\r\n description?: string;\r\n firstName?: string;\r\n lastName?: string;\r\n gender?: Gender;\r\n maritalStatus?: MaritalStatus;\r\n height?: number,\r\n birthDate?: number;\r\n educationLevel?: EducationLevel;\r\n educationDetails?: string;\r\n}\r\n\r\n@Component({\r\n components:{\r\n birthDatepicker,\r\n SelectHeight,\r\n UploadPhotoStep\r\n }\r\n})\r\nexport default class BasicInfoStep extends BaseStep {\r\n private form: BasicInfoStepData = {};\r\n\r\n get isAssistant(): boolean {\r\n return store.getters.module.user!.accountType === AccountType.Assistant;\r\n }\r\n\r\n get higherEducationLevel() { return EducationLevel.Higher; }\r\n get studentEducationLevel() { return EducationLevel.Student; }\r\n get otherEducationLevel() { return EducationLevel.Other; }\r\n\r\n rawHeight: { value?: number, scale: HeightScale } = { scale: 'cm'}\r\n\r\n get title() {\r\n return this.$t(\"Basic information\").toString();\r\n }\r\n\r\n save(): Promise {\r\n return saveAccountSetup(store.getters.module.user!.id, {\r\n hourlyRate: this.form!.hourlyRate!,\r\n description: this.form!.description!,\r\n firstName: this.form!.firstName!,\r\n lastName: this.form!.lastName!,\r\n birthDate: this.form!.birthDate ? new Date(this.form!.birthDate!) : undefined,\r\n educationLevel: this.form!.educationLevel,\r\n educationDetails: this.form!.educationDetails,\r\n gender: this.form!.gender,\r\n height: !!this.rawHeight.value ? getHeightInOtherScale(this.rawHeight.value, this.rawHeight.scale, 'cm') : undefined,\r\n maritalStatus: this.form.maritalStatus,\r\n }).then(() => {\r\n store.dispatch.module.updateStoredUser(\r\n { ...this.form!, ...{ birthDate: this.form.birthDate ? new Date(this.form.birthDate).toString() : undefined } }).catch(() => { /* noop */ });\r\n });\r\n }\r\n\r\n get hasFullName() {\r\n return !!this.form!.firstName && !!this.form!.lastName;\r\n }\r\n\r\n get hasHourlyRate() {\r\n return this.form!.hourlyRate !== undefined && this.form!.hourlyRate! > 0;\r\n }\r\n\r\n canGoNext(): boolean {\r\n return this.hasFullName &&\r\n ((!this.isAssistant) || (this.hasHourlyRate));\r\n }\r\n\r\n shouldBeDisplayed(): boolean {\r\n return true;\r\n }\r\n\r\n mounted() {\r\n const storeUser = store.getters.module.user! as LoggedUserInformation;\r\n\r\n this.form = {\r\n hourlyRate: storeUser.hourlyRate,\r\n description: storeUser.description,\r\n firstName: storeUser.firstName,\r\n lastName: storeUser.lastName,\r\n birthDate: storeUser.birthDate ? Date.parse(storeUser.birthDate!) : undefined,\r\n educationLevel: storeUser.educationLevel,\r\n educationDetails: storeUser.educationDetails,\r\n gender: storeUser.gender,\r\n height: storeUser.height,\r\n maritalStatus: storeUser.maritalStatus,\r\n };\r\n\r\n this.rawHeight = { value: storeUser.height, scale: 'cm' }\r\n\r\n super.mounted();\r\n }\r\n\r\n get genderOptions() {\r\n return [\r\n { text: this.$t(\"Female\"), value: Gender.Female },\r\n { text: this.$t(\"Male\"), value: Gender.Male },\r\n { text: this.$t(\"Do not set\"), value: null },\r\n ]\r\n }\r\n\r\n get educationLevelOptions() {\r\n return getEducationLevelOptionsTranslations(this)\r\n }\r\n\r\n get maritalStatusOptions() {\r\n return getMaritalStatusOptionsTranslations(this)\r\n }\r\n}\r\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!./BasicInfoStep.vue?vue&type=script&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!./BasicInfoStep.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./BasicInfoStep.vue?vue&type=template&id=62431baf&\"\nimport script from \"./BasicInfoStep.vue?vue&type=script&lang=ts&\"\nexport * from \"./BasicInfoStep.vue?vue&type=script&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","var render = function render(){var _vm=this,_c=_vm._self._c,_setup=_vm._self._setupProxy;return _c('div',[_c('h5',{staticClass:\"stepTitle\"},[_vm._v(\" \"+_vm._s(_vm.$t(\"Thank you for signing up to Assistantline.com. Before you get started, please tell us your reasons for using our platform and share any requests that you might have.\"))+\" \")]),_c('select-account-type',{model:{value:(_vm.accountType),callback:function ($$v) {_vm.accountType=$$v},expression:\"accountType\"}}),(_vm.showInvoicingMode)?_c('b-container',[_c('h5',{staticClass:\"stepTitle mt-5\"},[_vm._v(\" \"+_vm._s(_vm.$t(\"How would you like to be invoiced?\"))+\" \")]),_c('select-invoicing-mode',{model:{value:(_vm.invoicingMode),callback:function ($$v) {_vm.invoicingMode=$$v},expression:\"invoicingMode\"}})],1):_vm._e()],1)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\nimport { Component } from \"vue-property-decorator\";\nimport BaseStep from \"./BaseStep\";\nimport { AccountType } from \"@/register/registerModel\";\nimport { setAccountType } from \"../../serviceClients/userWebServices\";\nimport store from \"@/store/index\";\nimport { CustomerInvoicingMode } from \"../../login/loginModel\";\nimport SelectAccountType from \"../../register/SelectAccountType.vue\";\nimport SelectInvoicingMode from \"../../panel/SelectInvoicingMode.vue\";\nimport { saveCustomerInvoicingMode } from \"../accountSetupService\";\n\n@Component({\n components: {\n SelectAccountType,\n SelectInvoicingMode\n },\n})\nexport default class SelectAccountStep extends BaseStep {\n accountType: AccountType = AccountType.Unknown;\n invoicingMode: CustomerInvoicingMode = CustomerInvoicingMode.Unknown;\n get title() {\n return this.$t(\"Account type\").toString();\n }\n canGoNext(): boolean {\n return this.accountType !== AccountType.Unknown;\n }\n save(): Promise {\n return setAccountType(store.getters.module.user!.id, this.accountType).then(() => {\n store.dispatch.module.updateStoredUser({\n accountType: this.accountType,\n }).catch(() => { /* noop */ });\n if(this.accountType === AccountType.Client) {\n return saveCustomerInvoicingMode(store.getters.module.user!.id, this.invoicingMode)\n .then(() => {\n store.dispatch.module.updateStoredUser({\n customerInvoicingMode: this.invoicingMode,\n }).catch(() => { /* noop */ });\n });\n }\n }\n );\n }\n\n get showInvoicingMode() {\n return false;\n }\n\n mounted() {\n this.accountType = store.getters.module.user!.accountType;\n this.invoicingMode = store.getters.module.user!.customerInvoicingMode;\n super.mounted();\n }\n\n shouldBeDisplayed(): boolean {\n return store.getters.module.user?.accountType === AccountType.Unknown;\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!./SelectAccountStep.vue?vue&type=script&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!./SelectAccountStep.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./SelectAccountStep.vue?vue&type=template&id=7e7e6740&\"\nimport script from \"./SelectAccountStep.vue?vue&type=script&lang=ts&\"\nexport * from \"./SelectAccountStep.vue?vue&type=script&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","var render = function render(){var _vm=this,_c=_vm._self._c,_setup=_vm._self._setupProxy;return _c('div',{staticClass:\"interests-step\"},[_c('div',{staticClass:\"hobbies\"},[_c('p',{staticClass:\"title\"},[_vm._v(_vm._s(_vm.$t('Select Interests')))]),_c('select-hobbies',{model:{value:(_vm.hobbyIds),callback:function ($$v) {_vm.hobbyIds=$$v},expression:\"hobbyIds\"}})],1),_c('div',{staticClass:\"interests\"},[_c('p',{staticClass:\"title\"},[_vm._v(_vm._s(_vm.$t('Select Interest in Cultures')))]),_c('select-interests',{model:{value:(_vm.interestIds),callback:function ($$v) {_vm.interestIds=$$v},expression:\"interestIds\"}})],1)])\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\nimport { Component } from \"vue-property-decorator\";\nimport BaseStep from \"./BaseStep\";\nimport store from \"../../store\";\nimport SelectInterests from \"@/assistant/SelectInterests.vue\";\nimport {updateUserHobbies, updateUserInterests} from \"../../assistant/userCategoryWebServices\";\nimport { AccountType } from \"../../register/registerModel\";\nimport { pushError } from \"@/core\";\nimport SelectHobbies from \"@/assistant/SelectHobbies.vue\";\n\n@Component({\n components: {\n SelectInterests,\n SelectHobbies\n },\n})\nexport default class InterestsStep extends BaseStep {\n private interestIds: string[] = [];\n private hobbyIds: string[] = [];\n isLoading = false;\n get title() {\n return this.$t(\"Choose your interests.\").toString();\n }\n save(): Promise {\n this.isLoading = true;\n\n const updateInterest = updateUserInterests(store.getters.module.user!.id, this.interestIds)\n .catch((error) => {\n pushError(error.response?.data?.error || error);\n })\n .finally(() => {\n this.isLoading = false;\n })\n\n const updateHobbies = updateUserHobbies(store.getters.module.user!.id, this.hobbyIds)\n .catch((error) => {\n pushError(error.response?.data?.error || error);\n })\n .finally(() => {\n this.isLoading = false;\n });\n\n return updateInterest && updateHobbies\n }\n\n canGoNext(): boolean {\n return true;\n }\n\n mounted() {\n super.mounted();\n }\n\n shouldBeDisplayed(): boolean {\n return store.getters.module.user?.accountType === AccountType.Assistant;\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!./InterestsStep.vue?vue&type=script&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!./InterestsStep.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./InterestsStep.vue?vue&type=template&id=a266b990&\"\nimport script from \"./InterestsStep.vue?vue&type=script&lang=ts&\"\nexport * from \"./InterestsStep.vue?vue&type=script&lang=ts&\"\nimport style0 from \"./InterestsStep.vue?vue&type=style&index=0&id=a266b990&prod&lang=scss&\"\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","var render = function render(){var _vm=this,_c=_vm._self._c,_setup=_vm._self._setupProxy;return _c('div',[_c('invoice-details-form',{ref:\"form\",attrs:{\"hasExternalSaveButton\":\"true\"}})],1)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\nimport { Component, Prop, Vue } from \"vue-property-decorator\";\nimport BaseStep from \"./BaseStep\";\nimport store from \"../../store\";\nimport { CustomerInvoicingMode } from \"../../login/loginModel\";\nimport InvoiceDetailsForm from \"@/panel/InvoiceDetailsForm.vue\";\n\n@Component({\n components: {\n InvoiceDetailsForm\n },\n})\nexport default class InvoiceInfoStep extends BaseStep {\n isLoading = false;\n error: string = \"\";\n\n save(): Promise {\n return (this.$refs.form as InvoiceDetailsForm).onSubmit();\n }\n get title() {\n return this.$t(\"Invoicing information.\").toString();\n }\n canGoNext(): boolean {\n return true;\n }\n\n mounted() {\n super.mounted();\n }\n\n shouldBeDisplayed(): boolean {\n return store.getters.module.user?.customerInvoicingMode === CustomerInvoicingMode.FullVat;\n }\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!./InvoiceInfoStep.vue?vue&type=script&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!./InvoiceInfoStep.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./InvoiceInfoStep.vue?vue&type=template&id=2b573083&\"\nimport script from \"./InvoiceInfoStep.vue?vue&type=script&lang=ts&\"\nexport * from \"./InvoiceInfoStep.vue?vue&type=script&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","var render = function render(){var _vm=this,_c=_vm._self._c,_setup=_vm._self._setupProxy;return _c('div',[_c('edit-address-form',{ref:\"form\",attrs:{\"hasExternalSaveButton\":\"true\"}})],1)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\nimport { Component, Prop, Vue } from \"vue-property-decorator\";\nimport BaseStep from \"./BaseStep\";\nimport store from \"../../store\";\nimport { CustomerInvoicingMode } from \"../../login/loginModel\";\nimport EditAddressForm from \"@/panel/EditAddressForm.vue\";\nimport { AccountType } from \"../../register/registerModel\";\n\n@Component({\n components: {\n EditAddressForm\n },\n})\nexport default class AddressStep extends BaseStep {\n isLoading = false;\n error: string = \"\";\n\n model: CustomerInvoicingMode = CustomerInvoicingMode.Unknown;\n\n save(): Promise {\n return (this.$refs.form as EditAddressForm).onSubmit();\n }\n get title() {\n return this.$t(\"Your address\").toString();\n }\n canGoNext(): boolean {\n return !!(this.$refs.form as EditAddressForm).isValid();\n }\n\n mounted() {\n super.mounted();\n }\n\n shouldBeDisplayed(): boolean {\n return true\n }\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!./AddressStep.vue?vue&type=script&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!./AddressStep.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./AddressStep.vue?vue&type=template&id=0e2a5b5b&\"\nimport script from \"./AddressStep.vue?vue&type=script&lang=ts&\"\nexport * from \"./AddressStep.vue?vue&type=script&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","var render = function render(){var _vm=this,_c=_vm._self._c,_setup=_vm._self._setupProxy;return _c('div',[_c('select-languages',{ref:\"formLanguages\",attrs:{\"hasExternalSaveButton\":\"true\"}}),_c('select-categories',{ref:\"formCategories\",attrs:{\"hasExternalSaveButton\":\"true\"}})],1)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\nimport { Component } from \"vue-property-decorator\";\nimport BaseStep from \"./BaseStep\";\nimport SelectCategories from \"./SelectCategories.vue\";\nimport SelectLanguages from \"../../assistant/SelectLanguages.vue\";\n\n@Component({\n components: {\n SelectCategories,\n SelectLanguages,\n },\n})\nexport default class CategoriesAndLanguages extends BaseStep {\n get title() {\n return this.$t(\"Categories and languages\").toString();\n }\n\n get categoriesForm() {\n return this.$refs.formCategories as SelectCategories;\n }\n\n canGoNext(): boolean {\n return this.categoriesForm.selectedAmount > 0;\n }\n\n mounted() {\n super.mounted();\n }\n\n async save(): Promise {\n await this.categoriesForm.onSubmit();\n await (this.$refs.formLanguages as SelectLanguages).onSubmit();\n }\n\n shouldBeDisplayed(): boolean {\n return true;\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!./CategoriesAndLanguages.vue?vue&type=script&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!./CategoriesAndLanguages.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./CategoriesAndLanguages.vue?vue&type=template&id=a0bda0cc&\"\nimport script from \"./CategoriesAndLanguages.vue?vue&type=script&lang=ts&\"\nexport * from \"./CategoriesAndLanguages.vue?vue&type=script&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","\nimport { Component, Vue } from \"vue-property-decorator\";\nimport BasicInfoStep from \"./steps/BasicInfoStep.vue\";\nimport SelectAccountStep from \"./steps/SelectAccountStep.vue\";\nimport BaseStep from \"./steps/BaseStep\";\nimport InterestsStep from \"./steps/InterestsStep.vue\";\nimport InvoiceInfoStep from \"./steps/InvoiceInfoStep.vue\";\nimport AddressStep from \"./steps/AddressStep.vue\";\nimport CategoriesAndLanguages from \"./steps/CategoriesAndLanguages.vue\";\nimport { pushError } from \"@/core\";\nimport store from \"../store\";\nimport { AccountType } from \"../register/registerModel\";\n\ninterface IStepInfo {\n component: typeof BaseStep;\n object: BaseStep | undefined;\n props?: any;\n}\n\n@Component\nexport default class AccountSetup extends Vue {\n private get maxStep() {\n for(let index = this.steps.length - 1; index >=0; index--) {\n if(this.steps[index].object?.shouldBeDisplayed()) {\n return index;\n }\n }\n return 0;\n };\n private get minStep() {\n for(let index in this.steps) {\n if(this.steps[index].object?.shouldBeDisplayed()) {\n return index;\n }\n }\n return 0;\n };\n private step = -1;\n private isLoading = false;\n\n private steps: IStepInfo[] = [\n { component: SelectAccountStep, object: undefined },\n { component: BasicInfoStep, object: undefined },\n { component: AddressStep, object: undefined },\n { component: CategoriesAndLanguages, object: undefined },\n { component: InvoiceInfoStep, object: undefined },\n { component: InterestsStep, object: undefined }\n ]\n\n mountedCallback(index: number, step: BaseStep) {\n this.steps[index].object = step;\n }\n\n mounted() {\n this.goToNextDisplayedStep();\n }\n\n goToNextDisplayedStep() {\n do {\n if(this.step < this.maxStep) {\n this.step++;\n } else {\n this.$router.push(\"/panel\").catch(() => { /* noop */ });\n return;\n }\n } while(this.steps[this.step].object && !this.steps[this.step].object?.shouldBeDisplayed());\n }\n\n get accountType() {\n return store.getters.module.user?.accountType\n }\n\n get stepsToDisplay() {\n if(store.getters.module.user?.accountType == AccountType.Unknown) {\n return [];\n }\n return this.steps\n .filter(s => s.object?.shouldBeDisplayed());\n }\n\n get currentStepTitle() {\n const currentStep = this.steps[this.step]\n\n if (currentStep) {\n return currentStep.object? currentStep.object.title: '';\n }\n\n return ''\n }\n\n onNext() {\n this.loading();\n this.steps[this.step].object!.save()\n .then(() => {\n this.goToNextDisplayedStep();\n })\n .finally(() => {\n this.loaded();\n })\n .catch((error) => {\n pushError(error.response?.data?.error || error, { title: this.$t(\"An error occurred while saving\") });\n });\n }\n\n private loading() {\n this.isLoading = true;\n }\n\n private loaded() {\n this.isLoading = false;\n window.scrollTo(0, 0);\n }\n\n get isNextEnabled(): boolean {\n return this.step >= 0 && !!this.steps[this.step].object && this.steps[this.step].object!.canGoNext();\n }\n\n onSave() {\n this.onNext();\n }\n\n onPrev() {\n if (this.step > this.minStep) {\n this.step--;\n }\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!./AccountSetup.vue?vue&type=script&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!./AccountSetup.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./AccountSetup.vue?vue&type=template&id=30331fd0&\"\nimport script from \"./AccountSetup.vue?vue&type=script&lang=ts&\"\nexport * from \"./AccountSetup.vue?vue&type=script&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","var render = function render(){var _vm=this,_c=_vm._self._c,_setup=_vm._self._setupProxy;return _c('div',[_c('b-form',{on:{\"submit\":function($event){$event.preventDefault();return _vm.onSubmit.apply(null, arguments)}}},[_c('h5',{staticClass:\"step-title\"},[_vm._v(_vm._s(_vm.$t(\"Choose a skill category\")))]),_c('div',{staticClass:\"category__type\"},[_c('div',{staticClass:\"category\",class:{ 'is-active': _vm.selectedSkillOnline === 0 },on:{\"click\":function($event){return _vm.setCategory(0)}}},[_vm._v(\" \"+_vm._s(_vm.$t(\"Online\"))+\" \")]),_c('div',{staticClass:\"category\",class:{ 'is-active': _vm.selectedSkillOnline === 1 },on:{\"click\":function($event){return _vm.setCategory(1)}}},[_vm._v(\" \"+_vm._s(_vm.$t(\"Offline\"))+\" \")])]),_c('div',{staticClass:\"categories\"},[_c('div',{staticClass:\"categories__groups\"},_vm._l((_vm.categoryGroups.sort((a, b) => a.order - b.order)),function(group){return _c('div',{key:group.id,staticClass:\"category category--group\",class:{ 'is-active': _vm.selectedGroup === group.id },on:{\"click\":function($event){return _vm.setVisibleGroup(group.id)}}},[_vm._v(\" \"+_vm._s(group.name)+\" \")])}),0),_c('div',{staticClass:\"categories__items\"},_vm._l((_vm.categoryGroups),function(group){return _c('div',{key:group.id},[(_vm.selectedGroup === group.id)?_c('b-form-checkbox-group',{model:{value:(_vm.form),callback:function ($$v) {_vm.form=$$v},expression:\"form\"}},_vm._l((group.categories),function(skill){return _c('div',{key:skill.id,staticClass:\"category\"},[_c('b-form-checkbox',{attrs:{\"value\":skill.id}},[_vm._v(_vm._s(skill.name))])],1)}),0):_vm._e()],1)}),0)]),(!_vm.hasExternalSaveButton)?_c('b-button',{staticClass:\"primary mt-2 formButton\",attrs:{\"type\":\"submit\",\"disabled\":_vm.isLoading,\"variant\":\"primary\",\"id\":\"saveAddress\"}},[(_vm.isLoading)?_c('b-icon',{staticClass:\"spinner\",attrs:{\"icon\":\"three-dots\",\"animation\":\"throb\"}}):_vm._e(),_vm._v(\" \"+_vm._s(_vm.$t(\"Save\"))+\" \")],1):_vm._e()],1)],1)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\r\nimport { updateUserCategories } from \"@/assistant/userCategoryWebServices\";\r\nimport { pushError } from \"@/core\";\r\nimport {\r\n Category,\r\n CategoryGroup,\r\n fetchCategories,\r\n} from \"@/serviceClients/categoryWebServices\";\r\nimport store from \"@/store\";\r\nimport { Vue, Prop, Component } from \"vue-property-decorator\";\r\n\r\n@Component\r\nexport default class SelectCategories extends Vue {\r\n @Prop() hasExternalSaveButton!: boolean;\r\n\r\n form: string[] = [];\r\n private allCategoryGroups: CategoryGroup[] = [];\r\n selectedSkillOnline = 1;\r\n selectedGroup = \"\";\r\n isLoading = false;\r\n\r\n setCategory(value: number) {\r\n this.selectedSkillOnline = value;\r\n }\r\n setVisibleGroup(id: string) {\r\n this.selectedGroup = id;\r\n }\r\n\r\n get selectedAmount() {\r\n return this.form.length;\r\n }\r\n\r\n async mounted() {\r\n this.$watch(\r\n () => store.getters.module.user!.skillIds,\r\n () => {\r\n this.form = store.getters.module.user!.skillIds;\r\n }\r\n );\r\n this.form = store.getters.module.user!.skillIds;\r\n try {\r\n this.isLoading = true;\r\n const result = await fetchCategories();\r\n this.allCategoryGroups = result.data;\r\n this.selectedGroup = this.categoryGroups ? this.categoryGroups[0].id : \"\";\r\n } catch (error) {\r\n pushError((error as any).response?.data?.error || error);\r\n } finally {\r\n this.isLoading = false;\r\n }\r\n }\r\n\r\n async onSubmit() {\r\n try {\r\n this.isLoading = true;\r\n\r\n await updateUserCategories(store.getters.module.user!.id, this.form);\r\n await store.dispatch.module.updateStoredUser({ skillIds: this.form });\r\n this.$el.children[0].scrollIntoView();\r\n } catch (error) {\r\n pushError((error as any).response?.data?.error || error);\r\n } finally {\r\n this.isLoading = false;\r\n }\r\n }\r\n\r\n get categoryGroups(): CategoryGroup[] {\r\n return this.allCategoryGroups.filter(\r\n (c) => c.serviceType === this.selectedSkillOnline\r\n );\r\n }\r\n}\r\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!./SelectCategories.vue?vue&type=script&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!./SelectCategories.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./SelectCategories.vue?vue&type=template&id=23549485&\"\nimport script from \"./SelectCategories.vue?vue&type=script&lang=ts&\"\nexport * from \"./SelectCategories.vue?vue&type=script&lang=ts&\"\nimport style0 from \"./SelectCategories.vue?vue&type=style&index=0&id=23549485&prod&lang=scss&\"\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 * from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--9-oneOf-1-0!../../../node_modules/css-loader/dist/cjs.js??ref--9-oneOf-1-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--9-oneOf-1-2!../../../node_modules/sass-loader/dist/cjs.js??ref--9-oneOf-1-3!../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./InterestsStep.vue?vue&type=style&index=0&id=a266b990&prod&lang=scss&\""],"sourceRoot":""}