2019-10-29 07:20:54 +00:00
|
|
|
<template>
|
2022-04-01 15:29:03 +00:00
|
|
|
<header
|
|
|
|
class="header-expanded py-6 px-5 relative box-border w-full"
|
|
|
|
:class="$dm('bg-white', 'dark:bg-slate-900')"
|
|
|
|
>
|
2021-09-05 19:44:17 +00:00
|
|
|
<div
|
|
|
|
class="flex items-start"
|
|
|
|
:class="[avatarUrl ? 'justify-between' : 'justify-end']"
|
|
|
|
>
|
2022-01-12 10:55:27 +00:00
|
|
|
<img v-if="avatarUrl" class="h-12 rounded-full" :src="avatarUrl" />
|
2020-08-28 12:09:46 +00:00
|
|
|
<header-actions :show-popout-button="showPopoutButton" />
|
|
|
|
</div>
|
2020-10-18 18:02:22 +00:00
|
|
|
<h2
|
2022-04-21 05:57:28 +00:00
|
|
|
v-dompurify-html="introHeading"
|
|
|
|
class="mt-5 text-3xl mb-3 font-normal"
|
2022-04-01 15:29:03 +00:00
|
|
|
:class="$dm('text-slate-900', 'dark:text-slate-50')"
|
2020-10-18 18:02:22 +00:00
|
|
|
/>
|
2022-04-01 15:29:03 +00:00
|
|
|
<p
|
2022-04-21 05:57:28 +00:00
|
|
|
v-dompurify-html="introBody"
|
2022-04-01 15:29:03 +00:00
|
|
|
class="text-lg leading-normal"
|
|
|
|
:class="$dm('text-slate-700', 'dark:text-slate-200')"
|
|
|
|
/>
|
2019-10-29 07:20:54 +00:00
|
|
|
</header>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
2019-11-25 18:40:27 +00:00
|
|
|
import { mapGetters } from 'vuex';
|
2020-08-28 12:09:46 +00:00
|
|
|
import HeaderActions from './HeaderActions';
|
2022-04-01 15:29:03 +00:00
|
|
|
import darkModeMixin from 'widget/mixins/darkModeMixin.js';
|
|
|
|
|
2019-10-29 07:20:54 +00:00
|
|
|
export default {
|
|
|
|
name: 'ChatHeaderExpanded',
|
2020-08-28 12:09:46 +00:00
|
|
|
components: {
|
|
|
|
HeaderActions,
|
|
|
|
},
|
2022-04-01 15:29:03 +00:00
|
|
|
mixins: [darkModeMixin],
|
2019-10-29 07:20:54 +00:00
|
|
|
props: {
|
2020-04-20 06:25:06 +00:00
|
|
|
avatarUrl: {
|
|
|
|
type: String,
|
|
|
|
default: '',
|
|
|
|
},
|
2019-10-29 07:20:54 +00:00
|
|
|
introHeading: {
|
|
|
|
type: String,
|
2020-04-20 06:25:06 +00:00
|
|
|
default: '',
|
2019-10-29 07:20:54 +00:00
|
|
|
},
|
|
|
|
introBody: {
|
|
|
|
type: String,
|
2020-04-20 06:25:06 +00:00
|
|
|
default: '',
|
2019-10-29 07:20:54 +00:00
|
|
|
},
|
2020-08-28 12:09:46 +00:00
|
|
|
showPopoutButton: {
|
|
|
|
type: Boolean,
|
|
|
|
default: false,
|
|
|
|
},
|
2019-10-29 07:20:54 +00:00
|
|
|
},
|
2020-04-19 18:10:28 +00:00
|
|
|
computed: {
|
|
|
|
...mapGetters({
|
|
|
|
widgetColor: 'appConfig/getWidgetColor',
|
|
|
|
}),
|
|
|
|
},
|
2019-10-29 07:20:54 +00:00
|
|
|
};
|
|
|
|
</script>
|