{"version":3,"sources":["webpack:///./src/views/Validated/Profile.vue","webpack:///./src/amplitude-events/profile.amplitude.js","webpack:///./src/views/Validated/Profile.vue?e190"],"names":["class","id","_createElementBlock","_hoisted_1","_createElementVNode","_hoisted_2","_hoisted_3","_toDisplayString","_ctx","$t","novalidate","onSubmit","_cache","_withModifiers","$options","saveProfile","apply","arguments","_hoisted_4","$data","completeProfileFormError","_createBlock","_component_emd_alert","data-testid","variant","onCancel","$event","title","content","_withCtx","_Fragment","_renderList","errors","error","index","key","_hoisted_5","_createVNode","_component_emd_status_tag","tag","label","status","invert","_hoisted_6","_hoisted_7","_hoisted_8","_hoisted_9","_hoisted_10","_hoisted_11","_component_emd_form_group","labelFor","_component_emd_input","data-cy","name","type","disabled","value","email","state","validity","valid","undefined","feedbacks","getFeedbacks","required","autoFocus","maxLength","minLength","onInput","validateInput","lastName","_hoisted_12","_hoisted_14","documentType","documentTypeList","document","toLowerCase","_hoisted_15","concat","_toConsumableArray","valueMissing","tooShort","documentNumber","mask","validateDocument","_hoisted_17","_hoisted_18","_hoisted_19","_hoisted_20","_hoisted_21","_hoisted_22","_component_emd_new_password","passwordContent","canShowTermsOfUse","_hoisted_23","_hoisted_24","termsOfUse","component","rel","href","$sanitize","url","target","privacyPolicyUrl","_component_recaptchav2_step","ref","recaptcha","showCaptchaFeedback","onResetCaptcha","resetCaptchaV2","completeProfileFormIsValid","completeProfileIsLoading","_component_emd_loader","_hoisted_28","profileEvents","analiticaInstance","eventFactory","view","loadView","metadata","context","page","window","location","actions","savePasswordClicked","section_reference","link_reference","components","Recaptchav2Step","EmdAlert","EmdFormGroup","EmdInput","EmdLoader","EmdNewPassword","EmdStatusTag","mixins","recaptchaV3","twofaRequired","watch","body","document_number","computed","_objectSpread","mapGetters","validated","token","process","componentIsEnabled","get","first_name","set","UtilitiesInstance","commons","removeSpecialCharacters","last_name","passwordIsValid","_this","elementsToValidate","Object","keys","validElements","filter","length","data","$i18n","locale","password","timezone","language","gender","theme","theme_mode","includes","confirmPassword","this","$store","methods","_this$$refs","$refs","recaptchaStep","vueRecaptcha","reset","verifyCaptcha","_this2","_asyncToGenerator","_regeneratorRuntime","mark","_callee","wrap","_context","prev","next","isRecaptchav3","generateRecaptchav3","sent","showCaptchav2","stop","section","getters","inputName","msg","condition","e","element","inputValidate","isValidCPF","isValidCNPJ","_this3","_callee3","_Amplitude$events","_context3","Amplitude","events","abrupt","btoa","dispatch","then","_callee2","_context2","username","captcha_token","commit","app","path","$router","push","catch","err","authorizationErrorHandler","AuthErrorHandler","errorHandler","getInstance","resolve","DefaultError","code","finally","setTimeout","formatErrorMessage","mounted","$nextTick","_Amplitude$events2","__exports__","render"],"mappings":"uKACOA,MAAM,+C,GACJA,MAAM,yB,GACLA,MAAM,0B,GAQLA,MAAM,0B,GAkBJA,MAAM,0C,GAUNA,MAAM,a,GACJA,MAAM,sB,GACJA,MAAM,oB,GACJA,MAAM,Y,GACLA,MAAM,yC,GAKTA,MAAM,oB,GAqEJA,MAAM,+B,GACJA,MAAM,8B,GAMLA,MAAM,aACNC,GAAG,Y,eAoBJD,MAAM,8B,SA+DR,a,SACE,sB,GACJA,MAAM,oB,GACJA,MAAM,Y,GACLA,MAAM,yC,GAKTA,MAAM,oB,eAUD,Y,SAEG,wB,cAsCdA,MAAM,yB,yaA1QfE,gCAAA,MAAAC,EAAA,CACEC,gCAIM,MAJNC,EAIM,CAHJD,gCAEK,KAFLE,EAEKC,6BADAC,EAAAC,GAAG,2BAAD,KAGTL,gCAAA,QACEM,WAAW,OACVC,SAAMC,EAAA,KAAAA,EAAA,GAAAC,4BAAA,kBAAUC,EAAAC,aAAAD,EAAAC,YAAAC,MAAAF,EAAAG,aAAW,e,CAE5Bb,gCA8PM,MA9PNc,EA8PM,CA1PIC,EAAAC,0B,yBAHRC,yBAeYC,EAAA,C,MAdVC,cAAY,+BACZC,QAAQ,SAEPC,SAAMb,EAAA,KAAAA,EAAA,YAAAc,GAAA,OAAEP,EAAAC,0BAA2B,IACnCO,MAA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AS,2BAA2B,GAE1C5E,EAAO,CACXgF,SAAUZ,EAAKvJ,MACf8G,SAAUA,EACVsD,cAAeb,EAAKtG,WAGtBsG,EAAKhC,OAAOwC,SAAS,qBAAsB5E,GAC3CoE,EAAKhC,OAAO8C,OAAO,iBAAkBd,EAAKvJ,OAC1CuJ,EAAKhC,OACFwC,SAAS,uBAAwB5E,GACjC6E,MAAK,WACJT,EAAKhC,OAAOwC,SAAS,mBAAoB,CACvCO,IAAK,UACLC,KAAM,kBAERhB,EAAKiB,QAAQC,KAAK,CAAE7K,KAAM,oBAE1B2J,EAAKjG,0BAA2B,KAEjCoH,OAAM,SAAAC,GACL,IAAMC,EAA4B,IAAIC,OAAiBF,EAAKxF,GACtD2F,EAAeF,EAA0BG,cAC/CD,EAAaE,UAETF,aAAwBG,QAC1B1B,EAAKhC,OAAO8C,OAAO,mBAAoB,CACrCrL,QAAQ,EACRkM,KAAMP,EAAI3L,YAIfmM,SAAQ,WACP5B,EAAKjG,0BAA2B,EAChCiG,EAAKhC,OAAOwC,SAAS,uBAAuB,MAC7C,wBAAAG,EAAAtB,UAAAqB,QAEJS,OAAM,SAAAC,GACLpB,EAAK5L,0BAA2B,EAChC4L,EAAKjG,0BAA2B,EAChC8H,YAAW,WACT7B,EAAK5L,0BAA2B,IAC/B,KACH4L,EAAKhL,OAAS8M,eACZV,EACApB,EAAKvM,GAAG,sCAEX,yBAAA0M,EAAAd,UAAAY,MAjEgBxB,KAoEvBsD,QAAM,WACJ,KAAKC,WAAU,eAAAC,EAAA,OAAsB,QAAtBA,EAAM7B,EAAUC,cAAM,IAAA4B,OAAA,EAAhBA,EAAkB5H,KAAKC,gB,qBE3jBhD,MAAM4H,EAA2B,IAAgB,EAAQ,CAAC,CAAC,SAASC,KAErD","file":"js/profile.chunk.js?id=9849a9ebe2a5cc094ce1","sourcesContent":["<template>\n <div class=\"emd-container _highlight_header _footer_end\">\n <div class=\"emd-container__header\">\n <h1 class=\"emd-text _size_section\">\n {{ $t('COMPLETE-PROFILE.TITLE') }}\n </h1>\n </div>\n <form\n novalidate=\"true\"\n @submit.prevent=\"saveProfile\"\n >\n <div class=\"emd-container__content\">\n <emd-alert\n data-testid=\"alert-error-complete-profile\"\n variant=\"danger\"\n v-if=\"completeProfileFormError\"\n @cancel=\"completeProfileFormError = false\"\n :title=\"''\"\n >\n <template v-slot:content>\n <p\n v-for=\"(error, index) in errors\"\n :key=\"index\"\n >\n {{ error }}\n </p>\n </template>\n </emd-alert>\n\n <div class=\"eu-flex eu-justify_end eu-mt_1 eu-mb_1\">\n <emd-status-tag\n tag=\"div\"\n :label=\"$t('COMPLETE-PROFILE.REQUIRED-SIGNAL')\"\n status=\"danger\"\n :invert=\"true\"\n >\n </emd-status-tag>\n </div>\n\n <div class=\"emd-panel\">\n <div class=\"emd-panel__section\">\n <div class=\"emd-panel__block\">\n <div class=\"el-chunk\">\n <h2 class=\"emd-text _color_default _type_caption\">\n {{ $t('COMPLETE-PROFILE.PERSONAL-DATA') }}\n </h2>\n </div>\n </div>\n <div class=\"emd-panel__block\">\n <!-- Email -->\n <emd-form-group\n :label=\"$t('COMPLETE-PROFILE.EMAIL-LABEL')\"\n labelFor=\"email\"\n >\n <emd-input\n data-cy=\"profile-email\"\n name=\"email\"\n type=\"text\"\n disabled\n :value=\"email\"\n />\n </emd-form-group>\n <!-- ./Email -->\n <!-- Nome -->\n <emd-form-group\n data-testid=\"form-group-name\"\n :state=\"\n !validity.name.valid && validity.name.valid !== undefined\n ? 'error'\n : ''\n \"\n :label=\"$t('COMPLETE-PROFILE.NAME-LABEL')\"\n labelFor=\"name\"\n :feedbacks=\"getFeedbacks('name')\"\n >\n <emd-input\n data-cy=\"profile-first-name\"\n name=\"name\"\n required\n type=\"text\"\n autoFocus\n :maxLength=\"30\"\n :minLength=\"3\"\n v-model=\"name\"\n :onInput=\"validateInput\"\n />\n </emd-form-group>\n\n <!-- ./Nome -->\n\n <!-- Sobrenome -->\n <emd-form-group\n data-testid=\"form-group-last-name\"\n :state=\"\n !validity.lastName.valid &&\n validity.lastName.valid !== undefined\n ? 'error'\n : ''\n \"\n :label=\"$t('COMPLETE-PROFILE.SURNAME-LABEL')\"\n labelFor=\"lastName\"\n :feedbacks=\"getFeedbacks('lastName')\"\n >\n <emd-input\n data-cy=\"profile-last-name\"\n name=\"lastName\"\n required\n type=\"text\"\n autoFocus\n :maxLength=\"30\"\n :minLength=\"3\"\n v-model=\"lastName\"\n :onInput=\"validateInput\"\n />\n </emd-form-group>\n\n <div class=\"eu-flex eu-column eu-row_md\">\n <div class=\"eu-flex-item eu-basis_4_md\">\n <emd-form-group\n :label=\"$t('COMPLETE-PROFILE.DOCUMENT-TYPE')\"\n required\n >\n <div\n class=\"emd-select\"\n id=\"timezone\"\n >\n <select\n v-model=\"documentType\"\n id=\"documentType\"\n name=\"documentType\"\n >\n <option\n v-for=\"(document, index) in documentTypeList\"\n :key=\"index\"\n :value=\"document.value.toLowerCase()\"\n >\n {{ $t(document.label) }}\n </option>\n </select>\n <div class=\"emd-select__arrow\"></div>\n </div>\n </emd-form-group>\n </div>\n\n <div class=\"eu-flex-item eu-basis_8_md\">\n <!-- Documento -->\n <emd-form-group\n data-testid=\"form-group-document\"\n :state=\"\n !validity.document.valid &&\n validity.document.valid !== undefined\n ? 'error'\n : ''\n \"\n :label=\"$t('COMPLETE-PROFILE.DOCUMENT-LABEL')\"\n labelFor=\"document\"\n :feedbacks=\"[\n ...getFeedbacks(\n 'document',\n documentType === 'cpf/cnpj' ? 11 : 1\n ),\n {\n msg: $t('COMPLETE-PROFILE.ERROR-TEXT_VALID-DOCUMENT'),\n condition:\n !validity.document.valueMissing &&\n !validity.document.tooShort &&\n documentNumber != undefined &&\n !validity.document.valid\n }\n ]\"\n >\n <emd-input\n v-if=\"documentType === 'cpf/cnpj'\"\n id=\"document\"\n data-cy=\"profile-document\"\n v-model=\"documentNumber\"\n name=\"document\"\n type=\"tel\"\n :minLength=\"11\"\n :mask=\"['###.###.###-##', '##.###.###/####-##']\"\n @input=\"validateDocument\"\n required\n />\n\n <emd-input\n id=\"document\"\n data-cy=\"profile-document\"\n v-if=\"documentType === 'international'\"\n v-model=\"documentNumber\"\n name=\"document\"\n type=\"tel\"\n :minLength=\"1\"\n :onInput=\"validateInput\"\n required\n />\n </emd-form-group>\n <!-- ./Documento -->\n </div>\n </div>\n </div>\n </div>\n </div>\n\n <div class=\"emd-panel\">\n <div class=\"emd-panel__section\">\n <div class=\"emd-panel__block\">\n <div class=\"el-chunk\">\n <h2 class=\"emd-text _color_default _type_caption\">\n {{ $t('COMPLETE-PROFILE.SECURITY') }}\n </h2>\n </div>\n </div>\n <div class=\"emd-panel__block\">\n <!-- Senha -->\n <emd-new-password\n data-cy-password=\"profile-password\"\n data-cy-confirm-password=\"profile-confirm-password\"\n v-model=\"passwordContent\"\n />\n <!-- ./Senha -->\n <div\n v-if=\"canShowTermsOfUse\"\n class=\"el-chunk\"\n >\n <p class=\"emd-text _size_small\">\n {{ $t('COMPLETE-PROFILE.AGREEABLE-TEXT') }}\n <component\n rel=\"noopener noreferrer\"\n target=\"_blank\"\n class=\"emd-text _color_contrast\"\n :is=\"termsOfUse.component\"\n :href=\"$sanitize(termsOfUse.url)\"\n ><strong>{{\n $t('COMPLETE-PROFILE.TERMS-OF-USE')\n }}</strong></component\n >\n {{ $t('COMPLETE-PROFILE.AND') }}\n <a\n rel=\"noopener noreferrer\"\n target=\"_blank\"\n class=\"emd-text _color_contrast\"\n :href=\"$sanitize(privacyPolicyUrl)\"\n ><strong>{{\n $t('COMPLETE-PROFILE.PRIVACY-POLICY')\n }}</strong></a\n >.\n </p>\n </div>\n\n <recaptchav2-step\n ref=\"recaptchaStep\"\n :recaptcha=\"recaptcha\"\n @update:recaptcha=\"recaptcha = $event\"\n :showCaptchaFeedback=\"showCaptchaFeedback\"\n @update:showCaptchaFeedback=\"showCaptchaFeedback = $event\"\n @resetCaptcha=\"resetCaptchaV2\"\n />\n </div>\n </div>\n </div>\n </div>\n <!-- Ações -->\n <div class=\"emd-container__footer\">\n <!-- Continuar -->\n <button\n data-cy=\"profile-submit\"\n type=\"submit\"\n class=\"emd-btn _color_primary\"\n tabindex=\"0\"\n :disabled=\"!completeProfileFormIsValid || completeProfileIsLoading\"\n >\n <emd-loader\n type=\"_subtle\"\n v-if=\"completeProfileIsLoading\"\n ></emd-loader>\n <span v-else>\n {{ $t('COMPLETE-PROFILE.BUTTON-TEXT') }}\n </span>\n </button>\n <!-- ./Continuar -->\n </div>\n <!-- ./Ações -->\n </form>\n </div>\n</template>\n\n<script>\nimport { formatErrorMessage, inputValidate } from '@/support'\nimport { UtilitiesInstance } from '@/store'\nimport {\n EmdAlert,\n EmdFormGroup,\n EmdInput,\n EmdLoader,\n EmdNewPassword,\n EmdStatusTag\n} from 'emerald-vue3/src/components'\nimport recaptchaV3 from '@/mixins/recaptchaV3.js'\nimport twofaRequired from '@/mixins/twofaRequired'\nimport { AuthErrorHandler } from '@/support/AuthErrorHandler/AuthErrorHandler'\nimport { DefaultError } from '@/support/AuthErrorHandler/AuthErrors'\nimport { mapGetters } from 'vuex'\nimport Recaptchav2Step from '@/components/project/ui/Recaptchav2Step.vue'\nimport Amplitude from '@/amplitude-events/profile.amplitude'\n\nexport default {\n name: 'Profile',\n components: {\n Recaptchav2Step,\n EmdAlert,\n EmdFormGroup,\n EmdInput,\n EmdLoader,\n EmdNewPassword,\n EmdStatusTag\n },\n mixins: [recaptchaV3, twofaRequired],\n watch: {\n documentType () {\n this.validity.document = {\n tooShort: false,\n valid: undefined,\n valueMissing: false\n }\n\n this.body.document_number = undefined\n }\n },\n computed: {\n ...mapGetters({ validated: 'GET_VALIDATED' }),\n email () {\n return this.validated.value.email\n },\n token () {\n return this.validated.token\n },\n termsOfUse () {\n return {\n url: process.env.VUE_APP_URL_TERMS_OF_USE,\n component: 'a'\n }\n },\n canShowTermsOfUse () {\n return this.componentIsEnabled('footer', 'termsOfUse')\n },\n name: {\n get () {\n if (this.body.first_name === undefined) {\n // eslint-disable-next-line\n this.body.first_name = this.validated.value.first_name\n return this.body.first_name\n }\n return this.body.first_name\n },\n set (value) {\n this.body.first_name =\n UtilitiesInstance.commons.removeSpecialCharacters(value)\n }\n },\n lastName: {\n get () {\n if (this.body.last_name === undefined) {\n // eslint-disable-next-line\n this.body.last_name = this.validated.value.last_name\n return this.body.last_name\n }\n\n return this.body.last_name\n },\n set (value) {\n this.body.last_name =\n UtilitiesInstance.commons.removeSpecialCharacters(value)\n }\n },\n documentNumber: {\n get () {\n return this.body.document_number\n },\n set (value) {\n this.body.document_number =\n UtilitiesInstance.commons.removeSpecialCharacters(value, 'document')\n }\n },\n passwordIsValid () {\n return this.passwordContent.valid\n },\n completeProfileFormIsValid () {\n const elementsToValidate = Object.keys(this.validity)\n const validElements = elementsToValidate.filter(\n name => this.validity[name].valid\n )\n return (\n validElements.length === elementsToValidate.length &&\n this.passwordIsValid\n )\n }\n },\n data () {\n return {\n recaptcha: null,\n showCaptchaFeedback: false,\n completeProfileIsLoading: false,\n completeProfileFormError: false,\n errors: [],\n documentType:\n this.$i18n.locale === 'pt-BR' ? 'cpf/cnpj' : 'international',\n privacyPolicyUrl: process.env.VUE_APP_URL_PRIVACY_POLICY,\n documentTypeList: [\n {\n value: 'cpf/cnpj',\n label: 'COMPLETE-PROFILE.DOCUMENT-BRAZILIAN'\n },\n {\n value: 'international',\n label: 'COMPLETE-PROFILE.DOCUMENT-GLOBAL'\n }\n ],\n body: {\n password: undefined,\n first_name: undefined,\n last_name: undefined,\n document_number: undefined,\n timezone: 'E. South America Standard Time',\n language: 'pt-BR',\n gender: 'other',\n theme: process.env.VUE_APP_THEME,\n theme_mode: ['jpmorgan'].includes(process.env.VUE_APP_THEME)\n ? 'default'\n : 'light'\n },\n passwordContent: {\n password: '',\n confirmPassword: undefined,\n valid: false\n },\n validity: {\n name: {\n tooShort: false,\n valid: !!this.$store.state.validated.value.first_name,\n valueMissing: false\n },\n lastName: {\n tooShort: false,\n valid: !!this.$store.state.validated.value.last_name,\n valueMissing: false\n },\n document: {\n tooShort: false,\n valid: undefined,\n valueMissing: false\n }\n }\n }\n },\n methods: {\n resetCaptchaV2 () {\n this.showCaptchaFeedback = false\n this.recaptcha = null\n this.$refs?.recaptchaStep.$refs?.vueRecaptcha?.reset()\n },\n async verifyCaptcha () {\n if (this.isRecaptchav3) {\n this.recaptcha = await this.generateRecaptchav3()\n } else if (this.showCaptchav2 && !this.recaptcha) {\n this.showCaptchaFeedback = true\n }\n },\n componentIsEnabled (section, component) {\n return this.$store.getters.componentIsEnabled(section, component)\n },\n getFeedbacks (inputName, length = 3) {\n return [\n {\n msg: this.$t('COMPLETE-PROFILE.REQUIRED-TEXT'),\n condition: this.validity[inputName].valueMissing\n },\n {\n msg: this.$t('COMPLETE-PROFILE.ERROR-TEXT', { length }),\n condition: this.validity[inputName].tooShort\n }\n ]\n },\n validateInput (e) {\n const element = e.target\n e.target.value = UtilitiesInstance.commons.removeSpecialCharacters(\n e.target.value\n )\n this.validity[element.name] = inputValidate(e.target.value, element)\n },\n validateDocument (e) {\n const { value } = e.target\n\n const minLength = 11\n this.validity.document = {\n tooShort: minLength > value.length,\n valueMissing: value.length === 0,\n valid:\n value.length >= minLength &&\n (UtilitiesInstance.commons.isValidCPF(value) ||\n UtilitiesInstance.commons.isValidCNPJ(value))\n }\n },\n async saveProfile () {\n Amplitude.events?.actions.savePasswordClicked()\n await this.verifyCaptcha()\n\n if (this.recaptcha === null) {\n return\n }\n\n this.completeProfileIsLoading = true\n const password = btoa(this.passwordContent.password)\n this.body.email = this.email\n this.body.password = password\n\n this.$store\n .dispatch('CREATE_USER', { token: this.token, ...this.body })\n .then(async () => {\n this.$store.dispatch('UPDATE_SIGN_LOADING', true)\n this.$store.dispatch('SET_REQUIRED_CAPTCHA_V2', false)\n\n const body = {\n username: this.email,\n password: password,\n captcha_token: this.recaptcha\n }\n\n this.$store.dispatch('SET_LOGIN_DATA_TFA', body)\n this.$store.commit('SET_USER_EMAIL', this.email)\n this.$store\n .dispatch('CREATE_AUTHORIZATION', body)\n .then(() => {\n this.$store.dispatch('SET_REDIRECT_URL', {\n app: 'profile',\n path: '/welcome/join'\n })\n this.$router.push({ name: 'twofaactivation' })\n\n this.completeProfileIsLoading = false\n })\n .catch(err => {\n const authorizationErrorHandler = new AuthErrorHandler(err, body)\n const errorHandler = authorizationErrorHandler.getInstance()\n errorHandler.resolve()\n\n if (errorHandler instanceof DefaultError) {\n this.$store.commit('SET_GLOBAL_ERROR', {\n status: true,\n code: err.status\n })\n }\n })\n .finally(() => {\n this.completeProfileIsLoading = false\n this.$store.dispatch('UPDATE_SIGN_LOADING', false)\n })\n })\n .catch(err => {\n this.completeProfileFormError = true\n this.completeProfileIsLoading = false\n setTimeout(() => {\n this.completeProfileFormError = false\n }, 5000)\n this.errors = formatErrorMessage(\n err,\n this.$t('COMPLETE-PROFILE.GENERIC-ERROR')\n )\n })\n }\n },\n mounted () {\n this.$nextTick(() => Amplitude.events?.view.loadView())\n }\n}\n</script>\n","import analiticaInstance from '@/vendor/analitica.vendor'\n\n/**\n * @typedef {import('@stone-payments/analitica').EventFactory} EventFactory\n * @description This is the event that will be sent to the Amplitude plugin\n * @description import Amplitude from '@amplitude/resume.amplitude'\n * @example Amplitude.events.actions.exportDataClicked()\n * @description\n * @example context: { filters: {}, viewed: {loadView: () => ({})}, actions: {} }\n */\n\nconst profileEvents = analiticaInstance.eventFactory('Profile', {\n view: {\n loadView: () => ({\n label: 'page viewed - pagarme dash',\n metadata: {\n context: 'password',\n page: 'definir senha',\n url:window.location.href,\n }\n })\n },\n actions: {\n savePasswordClicked: () => ({\n label: 'cta clicked - pagarme dash',\n metadata: {\n context: 'password',\n page: 'definir senha',\n section_reference: 'definir senha',\n url:window.location.href,\n link_reference: 'salvar senha'\n }\n })\n }\n})\n\nexport default profileEvents\n","import { render } from \"./Profile.vue?vue&type=template&id=51c2cc5a\"\nimport script from \"./Profile.vue?vue&type=script&lang=js\"\nexport * from \"./Profile.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/data/vstsagent02/user/2764/s/node_modules/vue-loader-v16/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__"],"sourceRoot":""}