import QuickLinks from "./ProfilComponents/QuickLinks.js"; import Mailverteiler from "./ProfilComponents/Mailverteiler.js"; import ProfilEmails from "./ProfilComponents/ProfilEmails.js"; import RoleInformation from "./ProfilComponents/RoleInformation.js"; import ProfilInformation from "./ProfilComponents/ProfilInformation.js"; export default { data() { return {}; }, components: { QuickLinks, Mailverteiler, ProfilEmails, RoleInformation, ProfilInformation, }, props: ["data"], provide() { return { studiengang_kz: Vue.computed({ get: () => this.data.studiengang_kz }), } }, methods: {}, computed: { fotoStatus() { return this.data?.fotoStatus ?? null; }, profilInformation() { if (!this.data) { return {}; } return { Vorname: this.data.vorname, Nachname: this.data.nachname, Username: this.data.username, Anrede: this.data.anrede, Titel: this.data.titel, Postnomen: this.data.postnomen, foto_sperre: this.data.foto_sperre, foto: this.data.foto, }; }, personEmails() { return this.data?.emails ? this.data.emails : []; }, roleInformation() { if (!this.data) { return {}; } return { geburtsdatum: { label: `${this.$p.t('profil','Geburtsdatum')}`, value: this.data.gebdatum }, geburtsort: { label: `${this.$p.t('profil','Geburtsort')}`, value: this.data.gebort }, personenkennzeichen: { label: `${this.$p.t('person','personenkennzeichen')}`, value: this.data.personenkennzeichen }, studiengang: { label: `${this.$p.t('lehre','studiengang')}`, value: this.data.studiengang }, semester: { label: `${this.$p.t('lehre','semester')}`, value: this.data.semester }, verband: { label: `${this.$p.t('lehre','lehrverband')}`, value: this.data.verband }, gruppe: { label: `${this.$p.t('lehre','gruppe')}`, value: this.data.gruppe.trim() } }; }, }, mounted() { }, template: /*html*/ `