{"version":3,"sources":["webpack:///./src/views/Profile/Profile.vue?12be","webpack:///./src/views/Profile/Profile.vue","webpack:///./src/services/api/models/ProfileQuery.model.ts","webpack:///./src/services/api/models/VaccinationProfileQuery.model.ts","webpack:///./src/views/Profile/Profile.vue?1926","webpack:///./src/views/Profile/Profile.vue?c501","webpack:///./src/views/Profile/Profile.vue?4406","webpack:///./src/services/api/profile/profile.ts"],"names":["render","_vm","this","_c","_self","_setupProxy","attrs","errorMessageShow","staticClass","on","$event","domProps","_s","errorMessage","_e","_v","picture","profilePicture","qrBase64","publicProfile","subjectId","profileQr","vaccination","givenName","familyName","passport","cedula","phone","roles","length","_l","role","i","key","class","showPinModal","directives","name","rawName","value","pin","expression","target","composing","staticRenderFns","ProfileQuery","constructor","VaccinationProfileQuery","subject","ProfileProps","Vue","extend","props","String","Profile","username","email","phonePrefix","address","externalInfo","selectedPrefix","prefix","Variables","ApiBaseUrl","PanamaDigitalPath","window","location","href","profileApi","err","response","status","message","data","forEach","element","$t","profile","profilePhoto","publicProfileUrl","r","push","ei","$router","__decorate","Component","components","PhonePrefix","PanamaLayout","component","ProfileApi","Api","config","super","bind","getCitizenProfile","setCitizenProfile","deleteCitizenProfile","getCompanyProfile","setCompanyProfile","deleteCompanyProfile","getLawyerProfile","setLawyerProfile","deleteLawyerProfile","getLegalPersonProfile","setEmployeeProfile","getEmployeeProfile","deleteEmployeeProfile","getAdditionalProfiles","get","then","result","setSelectProfile","url","optionId","post","delete","setLegalPersonProfile","deleteLegalPersonProfile","getLawyerSignatureProfile","setLawyerSignatureProfile","deleteLawyerSignature","id","setEmployeeBelongingProfile","getEmployeeBelongingProfile","deleteEmployeeBelonging","apiConfig"],"mappings":"yIAAA,W,2CCAA,IAAIA,EAAS,WAAkB,IAAIC,EAAIC,KAAKC,EAAGF,EAAIG,MAAMD,GAAUF,EAAIG,MAAMC,YAAY,OAAOF,EAAG,eAAe,CAACA,EAAG,aAAa,CAACG,MAAM,CAAC,KAAO,SAAS,CAAEL,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OtC,MAGpCkC,wBACL,OAAOzG,KAAKkH,OAAO,wBAAwBN,KACxCC,GAA+BA,EAAOtC,MAGpCkD,4BACLlD,GAEA,OAAOvE,KAAKiH,KAAK,iCAAkC1C,GAAMqC,KACtDC,GAA+BA,EAAOtC,MAGpCmD,8BACL,OAAO1H,KAAK2G,IAAI,kCAAkCC,KAC/CC,GAA+BA,EAAOtC,MAGpCoD,wBACLpD,GAEA,OAAOvE,KAAKkH,OAAO,kCAAkC3C,EAAKiD,IAAMZ,KAC7DC,GAA+BA,EAAOtC,OAKtC,MAAML,EAAa,IAAIsB,EAAWoC","file":"js/chunk-74e7a2c4.03c3333c.js","sourcesContent":["export * from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../node_modules/css-loader/index.js??ref--8-oneOf-1-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/sass-loader/dist/cjs.js??ref--8-oneOf-1-2!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Profile.vue?vue&type=style&index=0&id=61c0cda5&prod&lang=scss&scoped=true&\"","var render = function render(){var _vm=this,_c=_vm._self._c,_setup=_vm._self._setupProxy;return _c('PanamaLayout',[_c('transition',{attrs:{\"name\":\"fade\"}},[(_vm.errorMessageShow)?_c('div',{staticClass:\"notification is-danger\"},[_c('button',{staticClass:\"delete\",on:{\"click\":function($event){_vm.errorMessageShow = false}}}),_c('p',{domProps:{\"innerHTML\":_vm._s(_vm.errorMessage)}})]):_vm._e()]),_c('h2',{staticClass:\"title\"},[_vm._v(\"Perfil de usuario\")]),_c('div',{staticClass:\"columns\"},[_c('div',{staticClass:\"column is-narrow\"},[(_vm.picture)?_c('div',{staticClass:\"picture-box\"},[_c('figure',{staticClass:\"image is-256x256\"},[_c('img',{attrs:{\"alt\":\"profile picture\",\"src\":_vm.profilePicture}})])]):_c('div',{staticClass:\"picture-box\"},[_c('span',{staticClass:\"icon is-extra-large has-text-primary\"},[_c('i',{staticClass:\"fad fa-user fa-10x\"})])]),_c('hr'),(_vm.qrBase64)?_c('div',{staticClass:\"picture-box\"},[_c('a',{attrs:{\"href\":_vm.publicProfile}},[(_vm.subjectId !== '')?_c('figure',{staticClass:\"image is-256x256\"},[_c('img',{attrs:{\"alt\":\"qr code\",\"src\":_vm.profileQr}})]):_vm._e()])]):_vm._e(),(_vm.qrBase64)?_c('hr'):_vm._e(),_c('button',{staticClass:\"button\",on:{\"click\":function($event){return _vm.vaccination('')}}},[_vm._v(\"Vacunación\")]),_c('hr'),(_vm.profileQr)?_c('div',{staticClass:\"picture-box\"},[(_vm.subjectId !== '')?_c('figure',{staticClass:\"image is-256x256\"},[_c('img',{attrs:{\"alt\":\"qr code\",\"src\":_vm.profileQr}})]):_vm._e()]):_vm._e()]),_c('div',{staticClass:\"column\"},[_c('dl',[_c('dt',{staticClass:\"has-text-weight-bold\"},[_vm._v(\"Nombre\")]),_c('dd',{staticClass:\"ml-3\"},[_vm._v(_vm._s(_vm.givenName))]),_c('dt',{staticClass:\"has-text-weight-bold\"},[_vm._v(\"Apellidos\")]),_c('dd',{staticClass:\"ml-3\"},[_vm._v(_vm._s(_vm.familyName))]),(_vm.passport)?_c('dt',{staticClass:\"has-text-weight-bold\"},[_vm._v(\"Pasaporte\")]):_vm._e(),(_vm.passport)?_c('dd',{staticClass:\"ml-3\"},[_vm._v(_vm._s(_vm.passport))]):_vm._e(),(_vm.cedula)?_c('dt',{staticClass:\"has-text-weight-bold\"},[_vm._v(\"Cédula\")]):_vm._e(),(_vm.cedula)?_c('dd',{staticClass:\"ml-3\"},[_vm._v(_vm._s(_vm.cedula))]):_vm._e(),(_vm.phone)?_c('dt',{staticClass:\"has-text-weight-bold\"},[_vm._v(\"Teléfono\")]):_vm._e(),(_vm.phone)?_c('dd',{staticClass:\"ml-3\"},[_vm._v(_vm._s(_vm.phone))]):_vm._e(),(_vm.roles.length)?_c('dt',{staticClass:\"has-text-weight-bold\"},[_vm._v(\"\\n Perfiles adicionales\\n \")]):_vm._e(),_vm._l((_vm.roles),function(role,i){return [_c('dd',{key:i,staticClass:\"ml-3\"},[_vm._v(_vm._s(role))])]})],2)])]),_c('div',{staticClass:\"modal\",class:{ 'is-active': _vm.showPinModal }},[_c('div',{staticClass:\"modal-background\",on:{\"click\":function($event){_vm.showPinModal = false}}}),_c('div',{staticClass:\"modal-card\"},[_c('header',{staticClass:\"modal-card-head\"},[_c('p',{staticClass:\"modal-card-title\"},[_vm._v(\"Validación\")]),_c('button',{staticClass:\"delete\",attrs:{\"aria-label\":\"close\"},on:{\"click\":function($event){_vm.showPinModal = false}}})]),_c('section',{staticClass:\"modal-card-body\"},[_c('transition',{attrs:{\"name\":\"fade\"}},[(_vm.errorMessageShow)?_c('div',{staticClass:\"notification is-danger\"},[_c('button',{staticClass:\"delete\",on:{\"click\":function($event){_vm.errorMessageShow = false}}}),_c('p',{domProps:{\"innerHTML\":_vm._s(_vm.errorMessage)}})]):_vm._e()]),_c('div',{staticClass:\"field\"},[_c('label',{staticClass:\"label\"},[_vm._v(\"Pin\")]),_c('div',{staticClass:\"control\"},[_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.pin),expression:\"pin\"}],staticClass:\"input\",attrs:{\"type\":\"password\",\"placeholder\":\"Text input\"},domProps:{\"value\":(_vm.pin)},on:{\"input\":function($event){if($event.target.composing)return;_vm.pin=$event.target.value}}})])])],1),_c('footer',{staticClass:\"modal-card-foot\"},[_c('button',{staticClass:\"button is-success\",on:{\"click\":function($event){return _vm.vaccination(_vm.pin)}}},[_vm._v(\"\\n Consultar\\n \")])])])])],1)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","// \r\n// assembly: SecureTokenService.Generator.TypeScript, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null\r\n// generator: SecureTokenService.Generator.TypeScript.ModelsSourceGenerator\r\n\r\nexport interface IProfileQuery {\r\n subjectId: string,\r\n}\r\n\r\nexport class ProfileQuery implements IProfileQuery {\r\n subjectId: string;\r\n \r\n constructor(subjectId: string) {\r\n this.subjectId = subjectId;\r\n }\r\n}","// \r\n// assembly: SecureTokenService.Generator.TypeScript, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null\r\n// generator: SecureTokenService.Generator.TypeScript.ModelsSourceGenerator\r\n\r\nexport interface IVaccinationProfileQuery {\r\n subject: string,\r\n pin: string,\r\n}\r\n\r\nexport class VaccinationProfileQuery implements IVaccinationProfileQuery {\r\n subject: string;\r\n pin: string;\r\n \r\n constructor(subject: string, pin: string) {\r\n this.subject = subject;\r\n this.pin = pin;\r\n }\r\n}","\r\nimport { Component, Vue } from \"vue-property-decorator\";\r\nimport { profileApi } from \"../../services/api/profile/profile\";\r\nimport PanamaLayout from \"../../layouts/PanamaLayout.vue\";\r\nimport PhonePrefix from \"../../components/PhonePrefix.vue\";\r\nimport { Variables } from \"../../../variables\";\r\nimport { ProfileQuery } from \"../../services/api/models/ProfileQuery.model\";\r\nimport { VaccinationProfileQuery } from \"../../services/api/models/VaccinationProfileQuery.model\";\r\n\r\nconst ProfileProps = Vue.extend({\r\n props: {\r\n subject: String,\r\n },\r\n});\r\n\r\n@Component({\r\n components: { PhonePrefix, PanamaLayout },\r\n})\r\nexport default class Profile extends ProfileProps {\r\n private showPinModal = false;\r\n\r\n private pin = \"\";\r\n private subjectId = \"\";\r\n private username = \"\";\r\n private givenName = \"\";\r\n private familyName = \"\";\r\n private email = \"\";\r\n private phone = \"\";\r\n private phonePrefix = \"\";\r\n private cedula = \"\";\r\n private passport = \"\";\r\n private picture = \"\";\r\n private address = \"\";\r\n private qrBase64 = \"\";\r\n private publicProfile = \"\";\r\n private externalInfo: string[] = [];\r\n private roles: string[] = [];\r\n\r\n private errorMessageShow = false;\r\n private errorMessage = \"Error validando el PIN\";\r\n $t: any;\r\n $router: any;\r\n\r\n selectedPrefix(prefix: string) {\r\n this.phonePrefix = prefix;\r\n }\r\n\r\n get profilePicture() {\r\n return `${Variables.ApiBaseUrl}/api/profile/photo/${this.picture}`;\r\n }\r\n\r\n get profileQr() {\r\n return `${Variables.ApiBaseUrl}/api/profile/qr/${this.subjectId}`;\r\n }\r\n\r\n get vaccinationHref() {\r\n return `${Variables.ApiBaseUrl}/api/profile/Vaccination`;\r\n }\r\n\r\n get qrBase64Src() {\r\n return `data:image/png;base64,${this.qrBase64}`;\r\n }\r\n\r\n get panamaDigitalPath() {\r\n return Variables.PanamaDigitalPath;\r\n }\r\n\r\n async vaccination(pin: string) {\r\n try {\r\n if (this.showPinModal && pin === \"\") {\r\n return;\r\n }\r\n window.location.href = await profileApi.vaccination(\r\n new VaccinationProfileQuery(this.subject, pin)\r\n );\r\n } catch (err) { \r\n if (this.showPinModal) {\r\n if (err.response.status === 400) {\r\n let message = \"\";\r\n this.errorMessage = message;\r\n this.errorMessageShow = true;\r\n }\r\n }\r\n\r\n if (pin === \"\") {\r\n this.showPinModal = true;\r\n }\r\n }\r\n }\r\n\r\n async mounted() {\r\n try {\r\n const profile = await profileApi.profile(new ProfileQuery(this.subject));\r\n this.subjectId = profile.subject;\r\n this.username = profile.username;\r\n this.givenName = profile.givenName;\r\n this.familyName = profile.familyName;\r\n this.email = profile.email;\r\n this.phone = profile.phone;\r\n this.address = profile.address;\r\n this.cedula = profile.cedula;\r\n this.passport = profile.passport;\r\n this.picture = profile.profilePhoto;\r\n this.publicProfile = profile.publicProfileUrl;\r\n this.roles = [];\r\n profile.roles.forEach((r) => this.roles.push(r));\r\n this.externalInfo = [];\r\n profile.externalInfo.forEach((ei) => this.externalInfo.push(ei));\r\n } catch {\r\n await this.$router.push({ name: \"Login\" });\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--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Profile.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--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Profile.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./Profile.vue?vue&type=template&id=61c0cda5&scoped=true&\"\nimport script from \"./Profile.vue?vue&type=script&lang=ts&\"\nexport * from \"./Profile.vue?vue&type=script&lang=ts&\"\nimport style0 from \"./Profile.vue?vue&type=style&index=0&id=61c0cda5&prod&lang=scss&scoped=true&\"\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 \"61c0cda5\",\n null\n \n)\n\nexport default component.exports","import { Api } from \"@/services/api/api\";\r\nimport { AxiosRequestConfig, AxiosResponse } from \"axios\";\r\nimport { apiConfig } from \"@/services/api/api.config\";\r\nimport { ICitizenProfileDto } from \"@/services/api/models/CitizenProfileDto.model\";\r\nimport { ICompanyProfileDto } from \"@/services/api/models/CompanyProfileDto.model\";\r\nimport { ILawyerProfileDto } from \"@/services/api/models/LawyerProfileDto.model\";\r\nimport { ILegalPersonProfileDto } from \"@/services/api/models/LegalPersonProfileDto.model\";\r\nimport { ProfileDto } from \"@/services/api/models/ProfileDto.model\";\r\nimport { ISaveCompanyProfileCommand } from \"@/services/api/models/SaveCompanyProfileCommand.model\";\r\nimport { ISaveLawyerProfileCommand } from \"@/services/api/models/SaveLawyerProfileCommand.model\";\r\nimport { IProfileQuery } from \"@/services/api/models/ProfileQuery.model\";\r\nimport { IVaccinationProfileQuery } from \"@/services/api/models/VaccinationProfileQuery.model\";\r\nimport { ISelectProfileLoginQuery } from \"@/services/api/models/SelectProfileLoginQuery.model\";\r\nimport { ISaveProfileLawyerSignatureCommand } from \"../models/SaveProfileLawyerSignatureCommand.model\";\r\nimport { IDeleteProfileLawyerSignatureCommand } from \"../models/DeleteProfileLawyerSignatureCommand.model\";\r\nimport { ISaveEmployeeProfileCommand } from \"@/services/api/models/SaveEmployeeProfileCommand.model\";\r\nimport { IEmployeeProfileDto } from \"@/services/api/models/EmployeeProfileDto.model\";\r\nimport { ISaveProfileEmployeeBelongingCommand } from \"../models/SaveProfileEmployeeBelongingCommand.model\";\r\n\r\nexport interface IAdditionalProfileDto {\r\n hasProfile: boolean;\r\n profileData: T;\r\n}\r\n\r\nclass ProfileApi extends Api {\r\n constructor(config: AxiosRequestConfig) {\r\n super(config);\r\n\r\n this.profile = this.profile.bind(this);\r\n this.getCitizenProfile = this.getCitizenProfile.bind(this);\r\n this.setCitizenProfile = this.setCitizenProfile.bind(this);\r\n this.deleteCitizenProfile = this.deleteCitizenProfile.bind(this);\r\n this.getCompanyProfile = this.getCompanyProfile.bind(this);\r\n this.setCompanyProfile = this.setCompanyProfile.bind(this);\r\n this.deleteCompanyProfile = this.deleteCompanyProfile.bind(this);\r\n this.getLawyerProfile = this.getLawyerProfile.bind(this);\r\n this.setLawyerProfile = this.setLawyerProfile.bind(this);\r\n this.deleteLawyerProfile = this.deleteLawyerProfile.bind(this);\r\n this.getLegalPersonProfile = this.getLegalPersonProfile.bind(this);\r\n this.vaccination = this.vaccination.bind(this);\r\n this.setEmployeeProfile = this.setEmployeeProfile.bind(this);\r\n this.getEmployeeProfile = this.getEmployeeProfile.bind(this);\r\n this.deleteEmployeeProfile = this.deleteEmployeeProfile.bind(this);\r\n }\r\n\r\n public getAdditionalProfiles(): Promise {\r\n return this.get(\"api/profile/additional\").then(\r\n (result: AxiosResponse) => result.data\r\n );\r\n }\r\n public setSelectProfile(data: ISelectProfileLoginQuery): Promise {\r\n let url = `api/profile/select-login/${data.profile}`;\r\n if (data.optionId !== \"\") {\r\n url = `${url}/${data.optionId}`;\r\n }\r\n return this.get(url).then((result: AxiosResponse) => result.data);\r\n }\r\n public getCitizenProfile(): Promise<\r\n IAdditionalProfileDto\r\n > {\r\n return this.get(\"api/profile/citizen\").then(\r\n (result: AxiosResponse) => result.data\r\n );\r\n }\r\n public setCitizenProfile(): Promise {\r\n return this.post(\"api/profile/citizen\").then(\r\n (result: AxiosResponse) => result.data\r\n );\r\n }\r\n public deleteCitizenProfile(): Promise {\r\n return this.delete(\"api/profile/citizen\").then(\r\n (result: AxiosResponse) => result.data\r\n );\r\n }\r\n public getCompanyProfile(): Promise<\r\n IAdditionalProfileDto\r\n > {\r\n return this.get(\"api/profile/company\").then(\r\n (result: AxiosResponse) => result.data\r\n );\r\n }\r\n public setCompanyProfile(data: ISaveCompanyProfileCommand): Promise {\r\n return this.post(\"api/profile/company\", data).then(\r\n (result: AxiosResponse) => result.data\r\n );\r\n }\r\n public deleteCompanyProfile(): Promise {\r\n return this.delete(\"api/profile/company\").then(\r\n (result: AxiosResponse) => result.data\r\n );\r\n }\r\n public getLawyerProfile(): Promise> {\r\n return this.get(\"api/profile/lawyer\").then(\r\n (result: AxiosResponse) => result.data\r\n );\r\n }\r\n public setLawyerProfile(data: ISaveLawyerProfileCommand): Promise {\r\n return this.post(\"api/profile/lawyer\", data).then(\r\n (result: AxiosResponse) => result.data\r\n );\r\n }\r\n public deleteLawyerProfile(): Promise {\r\n return this.delete(\"api/profile/lawyer\").then(\r\n (result: AxiosResponse) => result.data\r\n );\r\n }\r\n public getLegalPersonProfile(): Promise<\r\n IAdditionalProfileDto\r\n > {\r\n return this.get(\"api/profile/legal-person\").then(\r\n (result: AxiosResponse) => result.data\r\n );\r\n }\r\n public setLegalPersonProfile(): Promise {\r\n return this.post(\"api/profile/legal-person\").then(\r\n (result: AxiosResponse) => result.data\r\n );\r\n }\r\n public deleteLegalPersonProfile(): Promise {\r\n return this.delete(\"api/profile/legal-person\").then(\r\n (result: AxiosResponse) => result.data\r\n );\r\n }\r\n public profile(data: IProfileQuery): Promise {\r\n return this.get(`api/profile/${data.subjectId}`).then(\r\n (result: AxiosResponse) => result.data\r\n );\r\n }\r\n public vaccination(data: IVaccinationProfileQuery): Promise {\r\n return this.get(`api/profile/vaccination/${data.subject}/${data.pin}`).then(\r\n (result: AxiosResponse) => result.data\r\n );\r\n }\r\n public getLawyerSignatureProfile(): Promise> {\r\n return this.get(\"api/profile/lawyer-signature\").then(\r\n (result: AxiosResponse) => result.data\r\n );\r\n }\r\n public setLawyerSignatureProfile(\r\n data: ISaveProfileLawyerSignatureCommand\r\n ): Promise {\r\n return this.post(\"api/profile/lawyer-signature\", data).then(\r\n (result: AxiosResponse) => result.data\r\n );\r\n }\r\n public deleteLawyerSignature(\r\n data: IDeleteProfileLawyerSignatureCommand\r\n ): Promise {\r\n return this.delete(`api/profile/lawyer-signature/${data.id}`).then(\r\n (result: AxiosResponse) => result.data\r\n );\r\n }\r\n public setEmployeeProfile(data: ISaveEmployeeProfileCommand): Promise {\r\n return this.post(\"api/profile/employee\", data).then(\r\n (result: AxiosResponse) => result.data\r\n );\r\n }\r\n public getEmployeeProfile(): Promise<\r\n IAdditionalProfileDto\r\n > {\r\n return this.get(\"api/profile/employee\").then(\r\n (result: AxiosResponse) => result.data\r\n );\r\n }\r\n public deleteEmployeeProfile(): Promise {\r\n return this.delete(\"api/profile/employee\").then(\r\n (result: AxiosResponse) => result.data\r\n );\r\n }\r\n public setEmployeeBelongingProfile(\r\n data: ISaveProfileEmployeeBelongingCommand\r\n ): Promise {\r\n return this.post(\"api/profile/employee-belonging\", data).then(\r\n (result: AxiosResponse) => result.data\r\n );\r\n }\r\n public getEmployeeBelongingProfile(): Promise> {\r\n return this.get(\"api/profile/employee-belonging\").then(\r\n (result: AxiosResponse) => result.data\r\n );\r\n }\r\n public deleteEmployeeBelonging(\r\n data: IDeleteProfileLawyerSignatureCommand\r\n ): Promise {\r\n return this.delete(`api/profile/employee-belonging/${data.id}`).then(\r\n (result: AxiosResponse) => result.data\r\n );\r\n }\r\n}\r\n\r\nexport const profileApi = new ProfileApi(apiConfig);\r\n"],"sourceRoot":""}