@data-fair/lib-vuetify 1.13.2 → 2.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,10 +1,9 @@
1
- /// <reference types=".vue-global-types/vue_3.5_false.d.ts" />
1
+ /// <reference types="../../node_modules/.vue-global-types/vue_3.5_0_0_0.d.ts" />
2
2
  import { computed, toRefs } from 'vue';
3
3
  import { useI18n } from 'vue-i18n';
4
4
  import { useSession } from '@data-fair/lib-vue/session.js';
5
5
  import UserAvatar from './user-avatar.vue';
6
6
  import { mdiAlert, mdiShieldAlert, mdiLogout, mdiAccountSwitchOutline } from '@mdi/js';
7
- const { defineProps, defineSlots, defineEmits, defineExpose, defineModel, defineOptions, withDefaults, } = await import('vue');
8
7
  const session = useSession();
9
8
  const { t } = useI18n({ useScope: 'local' });
10
9
  const { user, account, organization } = toRefs(session.state);
@@ -14,350 +13,466 @@ const switchableOrganizations = computed(() => {
14
13
  return;
15
14
  return user.organizations.filter(o => account.type === 'user' || account.id !== o.id || (account.department || null) !== (o.department || null) || (accountRole || null) !== (o.role || null));
16
15
  });
17
- const __VLS_fnComponent = (await import('vue')).defineComponent({});
18
- ;
19
- let __VLS_functionalComponentProps;
20
- function __VLS_template() {
21
- const __VLS_ctx = {};
22
- const __VLS_localComponents = {
23
- ...{},
24
- ...{},
25
- ...__VLS_ctx,
26
- };
27
- let __VLS_components;
28
- const __VLS_localDirectives = {
29
- ...{},
30
- ...__VLS_ctx,
31
- };
32
- let __VLS_directives;
33
- let __VLS_styleScopedClasses;
34
- // CSS variable injection
35
- // CSS variable injection end
36
- let __VLS_resolvedLocalAndGlobalComponents;
37
- const __VLS_0 = __VLS_resolvedLocalAndGlobalComponents.VToolbarItems;
38
- /** @type { [typeof __VLS_components.VToolbarItems, typeof __VLS_components.vToolbarItems, typeof __VLS_components.VToolbarItems, typeof __VLS_components.vToolbarItems, ] } */
16
+ debugger; /* PartiallyEnd: #3632/scriptSetup.vue */
17
+ const __VLS_ctx = {};
18
+ let __VLS_components;
19
+ let __VLS_directives;
20
+ // CSS variable injection
21
+ // CSS variable injection end
22
+ const __VLS_0 = {}.VToolbarItems;
23
+ /** @type {[typeof __VLS_components.VToolbarItems, typeof __VLS_components.vToolbarItems, typeof __VLS_components.VToolbarItems, typeof __VLS_components.vToolbarItems, ]} */ ;
24
+ // @ts-ignore
25
+ const __VLS_1 = __VLS_asFunctionalComponent(__VLS_0, new __VLS_0({
26
+ ...{ class: "personal-menu" },
27
+ }));
28
+ const __VLS_2 = __VLS_1({
29
+ ...{ class: "personal-menu" },
30
+ }, ...__VLS_functionalComponentArgsRest(__VLS_1));
31
+ var __VLS_4 = {};
32
+ __VLS_3.slots.default;
33
+ if (!__VLS_ctx.user || !__VLS_ctx.account) {
34
+ const __VLS_5 = {}.VBtn;
35
+ /** @type {[typeof __VLS_components.VBtn, typeof __VLS_components.vBtn, ]} */ ;
36
+ // @ts-ignore
37
+ const __VLS_6 = __VLS_asFunctionalComponent(__VLS_5, new __VLS_5({
38
+ depressed: true,
39
+ color: "primary",
40
+ href: (__VLS_ctx.session.loginUrl()),
41
+ }));
42
+ const __VLS_7 = __VLS_6({
43
+ depressed: true,
44
+ color: "primary",
45
+ href: (__VLS_ctx.session.loginUrl()),
46
+ }, ...__VLS_functionalComponentArgsRest(__VLS_6));
47
+ __VLS_asFunctionalDirective(__VLS_directives.vT)(null, { ...__VLS_directiveBindingRestFields, value: ('login') }, null, null);
48
+ }
49
+ else {
50
+ const __VLS_9 = {}.VMenu;
51
+ /** @type {[typeof __VLS_components.VMenu, typeof __VLS_components.vMenu, typeof __VLS_components.VMenu, typeof __VLS_components.vMenu, ]} */ ;
39
52
  // @ts-ignore
40
- const __VLS_1 = __VLS_asFunctionalComponent(__VLS_0, new __VLS_0({ ...{ class: ("personal-menu") }, }));
41
- const __VLS_2 = __VLS_1({ ...{ class: ("personal-menu") }, }, ...__VLS_functionalComponentArgsRest(__VLS_1));
42
- if (!__VLS_ctx.user || !__VLS_ctx.account) {
43
- const __VLS_6 = __VLS_resolvedLocalAndGlobalComponents.VBtn;
44
- /** @type { [typeof __VLS_components.VBtn, typeof __VLS_components.vBtn, ] } */
53
+ const __VLS_10 = __VLS_asFunctionalComponent(__VLS_9, new __VLS_9({
54
+ offsetY: true,
55
+ ...{ class: "ml-n4" },
56
+ maxHeight: "700",
57
+ }));
58
+ const __VLS_11 = __VLS_10({
59
+ offsetY: true,
60
+ ...{ class: "ml-n4" },
61
+ maxHeight: "700",
62
+ }, ...__VLS_functionalComponentArgsRest(__VLS_10));
63
+ __VLS_12.slots.default;
64
+ {
65
+ const { activator: __VLS_thisSlot } = __VLS_12.slots;
66
+ const { props: activatorProps } = __VLS_getSlotParam(__VLS_thisSlot);
67
+ const __VLS_13 = {}.VBtn;
68
+ /** @type {[typeof __VLS_components.VBtn, typeof __VLS_components.vBtn, typeof __VLS_components.VBtn, typeof __VLS_components.vBtn, ]} */ ;
45
69
  // @ts-ignore
46
- const __VLS_7 = __VLS_asFunctionalComponent(__VLS_6, new __VLS_6({ depressed: (true), color: ("primary"), href: ((__VLS_ctx.session.loginUrl())), }));
47
- const __VLS_8 = __VLS_7({ depressed: (true), color: ("primary"), href: ((__VLS_ctx.session.loginUrl())), }, ...__VLS_functionalComponentArgsRest(__VLS_7));
48
- __VLS_directiveAsFunction(__VLS_directives.vT)(null, { ...__VLS_directiveBindingRestFields, value: ('login') }, null, null);
49
- }
50
- else {
51
- const __VLS_12 = __VLS_resolvedLocalAndGlobalComponents.VMenu;
52
- /** @type { [typeof __VLS_components.VMenu, typeof __VLS_components.vMenu, typeof __VLS_components.VMenu, typeof __VLS_components.vMenu, ] } */
70
+ const __VLS_14 = __VLS_asFunctionalComponent(__VLS_13, new __VLS_13({
71
+ ...{ class: "px-0" },
72
+ title: (__VLS_ctx.t('openPersonalMenu')),
73
+ ...(activatorProps),
74
+ }));
75
+ const __VLS_15 = __VLS_14({
76
+ ...{ class: "px-0" },
77
+ title: (__VLS_ctx.t('openPersonalMenu')),
78
+ ...(activatorProps),
79
+ }, ...__VLS_functionalComponentArgsRest(__VLS_14));
80
+ __VLS_16.slots.default;
81
+ /** @type {[typeof UserAvatar, ]} */ ;
53
82
  // @ts-ignore
54
- const __VLS_13 = __VLS_asFunctionalComponent(__VLS_12, new __VLS_12({ offsetY: (true), nudgeLeft: (true), maxHeight: ("700"), }));
55
- const __VLS_14 = __VLS_13({ offsetY: (true), nudgeLeft: (true), maxHeight: ("700"), }, ...__VLS_functionalComponentArgsRest(__VLS_13));
56
- __VLS_elementAsFunction(__VLS_intrinsicElements.template, __VLS_intrinsicElements.template)({});
57
- {
58
- const { activator: __VLS_thisSlot } = __VLS_nonNullable(__VLS_17.slots);
59
- const { props: activatorProps } = __VLS_getSlotParam(__VLS_thisSlot);
60
- const __VLS_18 = __VLS_resolvedLocalAndGlobalComponents.VBtn;
61
- /** @type { [typeof __VLS_components.VBtn, typeof __VLS_components.vBtn, typeof __VLS_components.VBtn, typeof __VLS_components.vBtn, ] } */
62
- // @ts-ignore
63
- const __VLS_19 = __VLS_asFunctionalComponent(__VLS_18, new __VLS_18({ ...{ class: ("px-0") }, title: ((__VLS_ctx.t('openPersonalMenu'))), ...(activatorProps), }));
64
- const __VLS_20 = __VLS_19({ ...{ class: ("px-0") }, title: ((__VLS_ctx.t('openPersonalMenu'))), ...(activatorProps), }, ...__VLS_functionalComponentArgsRest(__VLS_19));
65
- // @ts-ignore
66
- [UserAvatar,];
83
+ const __VLS_17 = __VLS_asFunctionalComponent(UserAvatar, new UserAvatar({
84
+ showAccount: true,
85
+ }));
86
+ const __VLS_18 = __VLS_17({
87
+ showAccount: true,
88
+ }, ...__VLS_functionalComponentArgsRest(__VLS_17));
89
+ if (__VLS_ctx.user.pd) {
90
+ const __VLS_20 = {}.VIcon;
91
+ /** @type {[typeof __VLS_components.VIcon, typeof __VLS_components.vIcon, ]} */ ;
67
92
  // @ts-ignore
68
- const __VLS_24 = __VLS_asFunctionalComponent(UserAvatar, new UserAvatar({ showAccount: (true), }));
69
- const __VLS_25 = __VLS_24({ showAccount: (true), }, ...__VLS_functionalComponentArgsRest(__VLS_24));
70
- if (__VLS_ctx.user.pd) {
71
- const __VLS_29 = __VLS_resolvedLocalAndGlobalComponents.VIcon;
72
- /** @type { [typeof __VLS_components.VIcon, typeof __VLS_components.vIcon, ] } */
73
- // @ts-ignore
74
- const __VLS_30 = __VLS_asFunctionalComponent(__VLS_29, new __VLS_29({ color: ("warning"), ...{ style: ({}) }, icon: ((__VLS_ctx.mdiAlert)), }));
75
- const __VLS_31 = __VLS_30({ color: ("warning"), ...{ style: ({}) }, icon: ((__VLS_ctx.mdiAlert)), }, ...__VLS_functionalComponentArgsRest(__VLS_30));
76
- }
77
- __VLS_nonNullable(__VLS_23.slots).default;
78
- const __VLS_23 = __VLS_pickFunctionalComponentCtx(__VLS_18, __VLS_20);
93
+ const __VLS_21 = __VLS_asFunctionalComponent(__VLS_20, new __VLS_20({
94
+ color: "warning",
95
+ ...{ style: {} },
96
+ icon: (__VLS_ctx.mdiAlert),
97
+ }));
98
+ const __VLS_22 = __VLS_21({
99
+ color: "warning",
100
+ ...{ style: {} },
101
+ icon: (__VLS_ctx.mdiAlert),
102
+ }, ...__VLS_functionalComponentArgsRest(__VLS_21));
79
103
  }
80
- const __VLS_35 = __VLS_resolvedLocalAndGlobalComponents.VList;
81
- /** @type { [typeof __VLS_components.VList, typeof __VLS_components.vList, typeof __VLS_components.VList, typeof __VLS_components.vList, ] } */
82
- // @ts-ignore
83
- const __VLS_36 = __VLS_asFunctionalComponent(__VLS_35, new __VLS_35({ outlined: (true), ...{ class: ("py-0 border-sm") }, }));
84
- const __VLS_37 = __VLS_36({ outlined: (true), ...{ class: ("py-0 border-sm") }, }, ...__VLS_functionalComponentArgsRest(__VLS_36));
85
- const __VLS_41 = __VLS_resolvedLocalAndGlobalComponents.VListItem;
86
- /** @type { [typeof __VLS_components.VListItem, typeof __VLS_components.vListItem, typeof __VLS_components.VListItem, typeof __VLS_components.vListItem, ] } */
104
+ var __VLS_16;
105
+ }
106
+ const __VLS_24 = {}.VList;
107
+ /** @type {[typeof __VLS_components.VList, typeof __VLS_components.vList, typeof __VLS_components.VList, typeof __VLS_components.vList, ]} */ ;
108
+ // @ts-ignore
109
+ const __VLS_25 = __VLS_asFunctionalComponent(__VLS_24, new __VLS_24({
110
+ outlined: true,
111
+ ...{ class: "py-0 border-sm" },
112
+ }));
113
+ const __VLS_26 = __VLS_25({
114
+ outlined: true,
115
+ ...{ class: "py-0 border-sm" },
116
+ }, ...__VLS_functionalComponentArgsRest(__VLS_25));
117
+ __VLS_27.slots.default;
118
+ const __VLS_28 = {}.VListItem;
119
+ /** @type {[typeof __VLS_components.VListItem, typeof __VLS_components.vListItem, typeof __VLS_components.VListItem, typeof __VLS_components.vListItem, ]} */ ;
120
+ // @ts-ignore
121
+ const __VLS_29 = __VLS_asFunctionalComponent(__VLS_28, new __VLS_28({
122
+ disabled: true,
123
+ ...{ style: (__VLS_ctx.account.type !== 'user' ? 'padding-left:0' : '') },
124
+ ...{ class: "text--secondary" },
125
+ }));
126
+ const __VLS_30 = __VLS_29({
127
+ disabled: true,
128
+ ...{ style: (__VLS_ctx.account.type !== 'user' ? 'padding-left:0' : '') },
129
+ ...{ class: "text--secondary" },
130
+ }, ...__VLS_functionalComponentArgsRest(__VLS_29));
131
+ __VLS_31.slots.default;
132
+ {
133
+ const { prepend: __VLS_thisSlot } = __VLS_31.slots;
134
+ /** @type {[typeof UserAvatar, ]} */ ;
87
135
  // @ts-ignore
88
- const __VLS_42 = __VLS_asFunctionalComponent(__VLS_41, new __VLS_41({ disabled: (true), ...{ style: ((__VLS_ctx.account.type !== 'user' ? 'padding-left:0' : '')) }, ...{ class: ("text--secondary") }, }));
89
- const __VLS_43 = __VLS_42({ disabled: (true), ...{ style: ((__VLS_ctx.account.type !== 'user' ? 'padding-left:0' : '')) }, ...{ class: ("text--secondary") }, }, ...__VLS_functionalComponentArgsRest(__VLS_42));
90
- __VLS_elementAsFunction(__VLS_intrinsicElements.template, __VLS_intrinsicElements.template)({});
91
- {
92
- const { prepend: __VLS_thisSlot } = __VLS_nonNullable(__VLS_46.slots);
93
- // @ts-ignore
94
- [UserAvatar,];
95
- // @ts-ignore
96
- const __VLS_47 = __VLS_asFunctionalComponent(UserAvatar, new UserAvatar({ showAccount: (true), ...{ style: ({}) }, }));
97
- const __VLS_48 = __VLS_47({ showAccount: (true), ...{ style: ({}) }, }, ...__VLS_functionalComponentArgsRest(__VLS_47));
98
- }
99
- const __VLS_52 = __VLS_resolvedLocalAndGlobalComponents.VListItemTitle;
100
- /** @type { [typeof __VLS_components.VListItemTitle, typeof __VLS_components.vListItemTitle, typeof __VLS_components.VListItemTitle, typeof __VLS_components.vListItemTitle, ] } */
136
+ const __VLS_32 = __VLS_asFunctionalComponent(UserAvatar, new UserAvatar({
137
+ showAccount: true,
138
+ ...{ style: {} },
139
+ }));
140
+ const __VLS_33 = __VLS_32({
141
+ showAccount: true,
142
+ ...{ style: {} },
143
+ }, ...__VLS_functionalComponentArgsRest(__VLS_32));
144
+ }
145
+ const __VLS_35 = {}.VListItemTitle;
146
+ /** @type {[typeof __VLS_components.VListItemTitle, typeof __VLS_components.vListItemTitle, typeof __VLS_components.VListItemTitle, typeof __VLS_components.vListItemTitle, ]} */ ;
147
+ // @ts-ignore
148
+ const __VLS_36 = __VLS_asFunctionalComponent(__VLS_35, new __VLS_35({}));
149
+ const __VLS_37 = __VLS_36({}, ...__VLS_functionalComponentArgsRest(__VLS_36));
150
+ __VLS_38.slots.default;
151
+ (__VLS_ctx.account.type === 'user' ? __VLS_ctx.t('personalAccount') : __VLS_ctx.account.name);
152
+ var __VLS_38;
153
+ if (__VLS_ctx.account.department || __VLS_ctx.organization?.roleLabel) {
154
+ const __VLS_39 = {}.VListItemSubtitle;
155
+ /** @type {[typeof __VLS_components.VListItemSubtitle, typeof __VLS_components.vListItemSubtitle, typeof __VLS_components.VListItemSubtitle, typeof __VLS_components.vListItemSubtitle, ]} */ ;
101
156
  // @ts-ignore
102
- const __VLS_53 = __VLS_asFunctionalComponent(__VLS_52, new __VLS_52({}));
103
- const __VLS_54 = __VLS_53({}, ...__VLS_functionalComponentArgsRest(__VLS_53));
104
- (__VLS_ctx.account.type === 'user' ? __VLS_ctx.t('personalAccount') : __VLS_ctx.account.name);
105
- __VLS_nonNullable(__VLS_57.slots).default;
106
- const __VLS_57 = __VLS_pickFunctionalComponentCtx(__VLS_52, __VLS_54);
107
- if (__VLS_ctx.account.department || __VLS_ctx.organization?.roleLabel) {
108
- const __VLS_58 = __VLS_resolvedLocalAndGlobalComponents.VListItemSubtitle;
109
- /** @type { [typeof __VLS_components.VListItemSubtitle, typeof __VLS_components.vListItemSubtitle, typeof __VLS_components.VListItemSubtitle, typeof __VLS_components.vListItemSubtitle, ] } */
110
- // @ts-ignore
111
- const __VLS_59 = __VLS_asFunctionalComponent(__VLS_58, new __VLS_58({}));
112
- const __VLS_60 = __VLS_59({}, ...__VLS_functionalComponentArgsRest(__VLS_59));
113
- (__VLS_ctx.account.departmentName || __VLS_ctx.account.department);
114
- (__VLS_ctx.organization?.roleLabel);
115
- __VLS_nonNullable(__VLS_63.slots).default;
116
- const __VLS_63 = __VLS_pickFunctionalComponentCtx(__VLS_58, __VLS_60);
117
- }
118
- const __VLS_64 = __VLS_resolvedLocalAndGlobalComponents.VListItemSubtitle;
119
- /** @type { [typeof __VLS_components.VListItemSubtitle, typeof __VLS_components.vListItemSubtitle, typeof __VLS_components.VListItemSubtitle, typeof __VLS_components.vListItemSubtitle, ] } */
157
+ const __VLS_40 = __VLS_asFunctionalComponent(__VLS_39, new __VLS_39({}));
158
+ const __VLS_41 = __VLS_40({}, ...__VLS_functionalComponentArgsRest(__VLS_40));
159
+ __VLS_42.slots.default;
160
+ (__VLS_ctx.account.departmentName || __VLS_ctx.account.department);
161
+ (__VLS_ctx.organization?.roleLabel);
162
+ var __VLS_42;
163
+ }
164
+ const __VLS_43 = {}.VListItemSubtitle;
165
+ /** @type {[typeof __VLS_components.VListItemSubtitle, typeof __VLS_components.vListItemSubtitle, typeof __VLS_components.VListItemSubtitle, typeof __VLS_components.vListItemSubtitle, ]} */ ;
166
+ // @ts-ignore
167
+ const __VLS_44 = __VLS_asFunctionalComponent(__VLS_43, new __VLS_43({}));
168
+ const __VLS_45 = __VLS_44({}, ...__VLS_functionalComponentArgsRest(__VLS_44));
169
+ __VLS_46.slots.default;
170
+ (__VLS_ctx.user.name);
171
+ var __VLS_46;
172
+ var __VLS_31;
173
+ if (__VLS_ctx.user.organizations.length > 1 || (__VLS_ctx.user.organizations.length === 1 && (!__VLS_ctx.user.ipa || __VLS_ctx.account.type === 'user'))) {
174
+ const __VLS_47 = {}.VListSubheader;
175
+ /** @type {[typeof __VLS_components.VListSubheader, typeof __VLS_components.vListSubheader, ]} */ ;
120
176
  // @ts-ignore
121
- const __VLS_65 = __VLS_asFunctionalComponent(__VLS_64, new __VLS_64({}));
122
- const __VLS_66 = __VLS_65({}, ...__VLS_functionalComponentArgsRest(__VLS_65));
123
- (__VLS_ctx.user.name);
124
- __VLS_nonNullable(__VLS_69.slots).default;
125
- const __VLS_69 = __VLS_pickFunctionalComponentCtx(__VLS_64, __VLS_66);
126
- const __VLS_46 = __VLS_pickFunctionalComponentCtx(__VLS_41, __VLS_43);
127
- if (__VLS_ctx.user.organizations.length > 1 || (__VLS_ctx.user.organizations.length === 1 && (!__VLS_ctx.user.ipa || __VLS_ctx.account.type === 'user'))) {
128
- const __VLS_70 = __VLS_resolvedLocalAndGlobalComponents.VListSubheader;
129
- /** @type { [typeof __VLS_components.VListSubheader, typeof __VLS_components.vListSubheader, ] } */
177
+ const __VLS_48 = __VLS_asFunctionalComponent(__VLS_47, new __VLS_47({
178
+ ...{ style: {} },
179
+ }));
180
+ const __VLS_49 = __VLS_48({
181
+ ...{ style: {} },
182
+ }, ...__VLS_functionalComponentArgsRest(__VLS_48));
183
+ __VLS_asFunctionalDirective(__VLS_directives.vT)(null, { ...__VLS_directiveBindingRestFields, value: ('switchAccount') }, null, null);
184
+ if (__VLS_ctx.account.type !== 'user' && !__VLS_ctx.user.ipa) {
185
+ const __VLS_51 = {}.VListItem;
186
+ /** @type {[typeof __VLS_components.VListItem, typeof __VLS_components.vListItem, typeof __VLS_components.VListItem, typeof __VLS_components.vListItem, ]} */ ;
130
187
  // @ts-ignore
131
- const __VLS_71 = __VLS_asFunctionalComponent(__VLS_70, new __VLS_70({ ...{ style: ({}) }, }));
132
- const __VLS_72 = __VLS_71({ ...{ style: ({}) }, }, ...__VLS_functionalComponentArgsRest(__VLS_71));
133
- __VLS_directiveAsFunction(__VLS_directives.vT)(null, { ...__VLS_directiveBindingRestFields, value: ('switchAccount') }, null, null);
134
- if (__VLS_ctx.account.type !== 'user' && !__VLS_ctx.user.ipa) {
135
- const __VLS_76 = __VLS_resolvedLocalAndGlobalComponents.VListItem;
136
- /** @type { [typeof __VLS_components.VListItem, typeof __VLS_components.vListItem, typeof __VLS_components.VListItem, typeof __VLS_components.vListItem, ] } */
137
- // @ts-ignore
138
- const __VLS_77 = __VLS_asFunctionalComponent(__VLS_76, new __VLS_76({ ...{ 'onClick': {} }, id: ("toolbar-menu-switch-user"), }));
139
- const __VLS_78 = __VLS_77({ ...{ 'onClick': {} }, id: ("toolbar-menu-switch-user"), }, ...__VLS_functionalComponentArgsRest(__VLS_77));
140
- let __VLS_82;
141
- const __VLS_83 = {
142
- onClick: (...[$event]) => {
143
- if (!(!((!__VLS_ctx.user || !__VLS_ctx.account))))
144
- return;
145
- if (!((__VLS_ctx.user.organizations.length > 1 || (__VLS_ctx.user.organizations.length === 1 && (!__VLS_ctx.user.ipa || __VLS_ctx.account.type === 'user')))))
146
- return;
147
- if (!((__VLS_ctx.account.type !== 'user' && !__VLS_ctx.user.ipa)))
148
- return;
149
- __VLS_ctx.session.switchOrganization(null);
150
- }
151
- };
152
- let __VLS_79;
153
- let __VLS_80;
154
- __VLS_elementAsFunction(__VLS_intrinsicElements.template, __VLS_intrinsicElements.template)({});
155
- {
156
- const { prepend: __VLS_thisSlot } = __VLS_nonNullable(__VLS_81.slots);
157
- const __VLS_84 = __VLS_resolvedLocalAndGlobalComponents.VAvatar;
158
- /** @type { [typeof __VLS_components.VAvatar, typeof __VLS_components.vAvatar, ] } */
159
- // @ts-ignore
160
- const __VLS_85 = __VLS_asFunctionalComponent(__VLS_84, new __VLS_84({ size: ((28)), image: ((`${__VLS_ctx.session.options.directoryUrl}/api/avatars/user/${__VLS_ctx.user.id}/avatar.png`)), }));
161
- const __VLS_86 = __VLS_85({ size: ((28)), image: ((`${__VLS_ctx.session.options.directoryUrl}/api/avatars/user/${__VLS_ctx.user.id}/avatar.png`)), }, ...__VLS_functionalComponentArgsRest(__VLS_85));
162
- }
163
- const __VLS_90 = __VLS_resolvedLocalAndGlobalComponents.VListItemTitle;
164
- /** @type { [typeof __VLS_components.VListItemTitle, typeof __VLS_components.vListItemTitle, ] } */
165
- // @ts-ignore
166
- const __VLS_91 = __VLS_asFunctionalComponent(__VLS_90, new __VLS_90({}));
167
- const __VLS_92 = __VLS_91({}, ...__VLS_functionalComponentArgsRest(__VLS_91));
168
- __VLS_directiveAsFunction(__VLS_directives.vT)(null, { ...__VLS_directiveBindingRestFields, value: ('personalAccount') }, null, null);
169
- const __VLS_81 = __VLS_pickFunctionalComponentCtx(__VLS_76, __VLS_78);
170
- }
171
- for (const [organization] of __VLS_getVForSourceType((__VLS_ctx.switchableOrganizations))) {
172
- const __VLS_96 = __VLS_resolvedLocalAndGlobalComponents.VListItem;
173
- /** @type { [typeof __VLS_components.VListItem, typeof __VLS_components.vListItem, typeof __VLS_components.VListItem, typeof __VLS_components.vListItem, ] } */
174
- // @ts-ignore
175
- const __VLS_97 = __VLS_asFunctionalComponent(__VLS_96, new __VLS_96({ ...{ 'onClick': {} }, id: (('toolbar-menu-switch-orga-' + organization.id)), key: ((organization.id)), }));
176
- const __VLS_98 = __VLS_97({ ...{ 'onClick': {} }, id: (('toolbar-menu-switch-orga-' + organization.id)), key: ((organization.id)), }, ...__VLS_functionalComponentArgsRest(__VLS_97));
177
- let __VLS_102;
178
- const __VLS_103 = {
179
- onClick: (...[$event]) => {
180
- if (!(!((!__VLS_ctx.user || !__VLS_ctx.account))))
181
- return;
182
- if (!((__VLS_ctx.user.organizations.length > 1 || (__VLS_ctx.user.organizations.length === 1 && (!__VLS_ctx.user.ipa || __VLS_ctx.account.type === 'user')))))
183
- return;
184
- __VLS_ctx.session.switchOrganization(organization.id, organization.department, organization.role);
185
- }
186
- };
187
- let __VLS_99;
188
- let __VLS_100;
189
- __VLS_elementAsFunction(__VLS_intrinsicElements.template, __VLS_intrinsicElements.template)({});
190
- {
191
- const { prepend: __VLS_thisSlot } = __VLS_nonNullable(__VLS_101.slots);
192
- const __VLS_104 = __VLS_resolvedLocalAndGlobalComponents.VAvatar;
193
- /** @type { [typeof __VLS_components.VAvatar, typeof __VLS_components.vAvatar, ] } */
194
- // @ts-ignore
195
- const __VLS_105 = __VLS_asFunctionalComponent(__VLS_104, new __VLS_104({ size: ((28)), image: ((organization.department ? `${__VLS_ctx.session.options.directoryUrl}/api/avatars/organization/${organization.id}/${organization.department}/avatar.png` : `${__VLS_ctx.session.options.directoryUrl}/api/avatars/organization/${organization.id}/avatar.png`)), }));
196
- const __VLS_106 = __VLS_105({ size: ((28)), image: ((organization.department ? `${__VLS_ctx.session.options.directoryUrl}/api/avatars/organization/${organization.id}/${organization.department}/avatar.png` : `${__VLS_ctx.session.options.directoryUrl}/api/avatars/organization/${organization.id}/avatar.png`)), }, ...__VLS_functionalComponentArgsRest(__VLS_105));
197
- }
198
- const __VLS_110 = __VLS_resolvedLocalAndGlobalComponents.VListItemTitle;
199
- /** @type { [typeof __VLS_components.VListItemTitle, typeof __VLS_components.vListItemTitle, typeof __VLS_components.VListItemTitle, typeof __VLS_components.vListItemTitle, ] } */
200
- // @ts-ignore
201
- const __VLS_111 = __VLS_asFunctionalComponent(__VLS_110, new __VLS_110({}));
202
- const __VLS_112 = __VLS_111({}, ...__VLS_functionalComponentArgsRest(__VLS_111));
203
- (organization.name);
204
- __VLS_nonNullable(__VLS_115.slots).default;
205
- const __VLS_115 = __VLS_pickFunctionalComponentCtx(__VLS_110, __VLS_112);
206
- if (organization.department || organization.roleLabel) {
207
- const __VLS_116 = __VLS_resolvedLocalAndGlobalComponents.VListItemSubtitle;
208
- /** @type { [typeof __VLS_components.VListItemSubtitle, typeof __VLS_components.vListItemSubtitle, typeof __VLS_components.VListItemSubtitle, typeof __VLS_components.vListItemSubtitle, ] } */
209
- // @ts-ignore
210
- const __VLS_117 = __VLS_asFunctionalComponent(__VLS_116, new __VLS_116({}));
211
- const __VLS_118 = __VLS_117({}, ...__VLS_functionalComponentArgsRest(__VLS_117));
212
- (organization.departmentName || organization.department);
213
- (organization.roleLabel);
214
- __VLS_nonNullable(__VLS_121.slots).default;
215
- const __VLS_121 = __VLS_pickFunctionalComponentCtx(__VLS_116, __VLS_118);
188
+ const __VLS_52 = __VLS_asFunctionalComponent(__VLS_51, new __VLS_51({
189
+ ...{ 'onClick': {} },
190
+ id: "toolbar-menu-switch-user",
191
+ }));
192
+ const __VLS_53 = __VLS_52({
193
+ ...{ 'onClick': {} },
194
+ id: "toolbar-menu-switch-user",
195
+ }, ...__VLS_functionalComponentArgsRest(__VLS_52));
196
+ let __VLS_55;
197
+ let __VLS_56;
198
+ let __VLS_57;
199
+ const __VLS_58 = {
200
+ onClick: (...[$event]) => {
201
+ if (!!(!__VLS_ctx.user || !__VLS_ctx.account))
202
+ return;
203
+ if (!(__VLS_ctx.user.organizations.length > 1 || (__VLS_ctx.user.organizations.length === 1 && (!__VLS_ctx.user.ipa || __VLS_ctx.account.type === 'user'))))
204
+ return;
205
+ if (!(__VLS_ctx.account.type !== 'user' && !__VLS_ctx.user.ipa))
206
+ return;
207
+ __VLS_ctx.session.switchOrganization(null);
216
208
  }
217
- const __VLS_101 = __VLS_pickFunctionalComponentCtx(__VLS_96, __VLS_98);
218
- }
219
- }
220
- const __VLS_122 = __VLS_resolvedLocalAndGlobalComponents.VDivider;
221
- /** @type { [typeof __VLS_components.VDivider, typeof __VLS_components.vDivider, ] } */
222
- // @ts-ignore
223
- const __VLS_123 = __VLS_asFunctionalComponent(__VLS_122, new __VLS_122({}));
224
- const __VLS_124 = __VLS_123({}, ...__VLS_functionalComponentArgsRest(__VLS_123));
225
- var __VLS_128 = {};
226
- if (__VLS_ctx.user.isAdmin) {
227
- const __VLS_129 = __VLS_resolvedLocalAndGlobalComponents.VListItem;
228
- /** @type { [typeof __VLS_components.VListItem, typeof __VLS_components.vListItem, typeof __VLS_components.VListItem, typeof __VLS_components.vListItem, ] } */
229
- // @ts-ignore
230
- const __VLS_130 = __VLS_asFunctionalComponent(__VLS_129, new __VLS_129({ density: ("compact"), ...{ class: ("personal-menu-switch-list-item") }, }));
231
- const __VLS_131 = __VLS_130({ density: ("compact"), ...{ class: ("personal-menu-switch-list-item") }, }, ...__VLS_functionalComponentArgsRest(__VLS_130));
232
- __VLS_elementAsFunction(__VLS_intrinsicElements.template, __VLS_intrinsicElements.template)({});
209
+ };
210
+ __VLS_54.slots.default;
233
211
  {
234
- const { prepend: __VLS_thisSlot } = __VLS_nonNullable(__VLS_134.slots);
235
- const __VLS_135 = __VLS_resolvedLocalAndGlobalComponents.VIcon;
236
- /** @type { [typeof __VLS_components.VIcon, typeof __VLS_components.vIcon, ] } */
212
+ const { prepend: __VLS_thisSlot } = __VLS_54.slots;
213
+ const __VLS_59 = {}.VAvatar;
214
+ /** @type {[typeof __VLS_components.VAvatar, typeof __VLS_components.vAvatar, ]} */ ;
237
215
  // @ts-ignore
238
- const __VLS_136 = __VLS_asFunctionalComponent(__VLS_135, new __VLS_135({ icon: ((__VLS_ctx.mdiShieldAlert)), color: ("admin"), }));
239
- const __VLS_137 = __VLS_136({ icon: ((__VLS_ctx.mdiShieldAlert)), color: ("admin"), }, ...__VLS_functionalComponentArgsRest(__VLS_136));
216
+ const __VLS_60 = __VLS_asFunctionalComponent(__VLS_59, new __VLS_59({
217
+ size: (28),
218
+ image: (`${__VLS_ctx.session.options.directoryUrl}/api/avatars/user/${__VLS_ctx.user.id}/avatar.png`),
219
+ }));
220
+ const __VLS_61 = __VLS_60({
221
+ size: (28),
222
+ image: (`${__VLS_ctx.session.options.directoryUrl}/api/avatars/user/${__VLS_ctx.user.id}/avatar.png`),
223
+ }, ...__VLS_functionalComponentArgsRest(__VLS_60));
240
224
  }
241
- const __VLS_141 = __VLS_resolvedLocalAndGlobalComponents.VListItemTitle;
242
- /** @type { [typeof __VLS_components.VListItemTitle, typeof __VLS_components.vListItemTitle, typeof __VLS_components.VListItemTitle, typeof __VLS_components.vListItemTitle, ] } */
225
+ const __VLS_63 = {}.VListItemTitle;
226
+ /** @type {[typeof __VLS_components.VListItemTitle, typeof __VLS_components.vListItemTitle, ]} */ ;
243
227
  // @ts-ignore
244
- const __VLS_142 = __VLS_asFunctionalComponent(__VLS_141, new __VLS_141({}));
245
- const __VLS_143 = __VLS_142({}, ...__VLS_functionalComponentArgsRest(__VLS_142));
246
- const __VLS_147 = __VLS_resolvedLocalAndGlobalComponents.VSwitch;
247
- /** @type { [typeof __VLS_components.VSwitch, typeof __VLS_components.vSwitch, ] } */
248
- // @ts-ignore
249
- const __VLS_148 = __VLS_asFunctionalComponent(__VLS_147, new __VLS_147({ ...{ 'onChange': {} }, modelValue: ((!!__VLS_ctx.user.adminMode)), color: ("admin"), hideDetails: (true), ...{ class: ("mt-0") }, density: ("compact"), label: ((__VLS_ctx.t('adminMode'))), }));
250
- const __VLS_149 = __VLS_148({ ...{ 'onChange': {} }, modelValue: ((!!__VLS_ctx.user.adminMode)), color: ("admin"), hideDetails: (true), ...{ class: ("mt-0") }, density: ("compact"), label: ((__VLS_ctx.t('adminMode'))), }, ...__VLS_functionalComponentArgsRest(__VLS_148));
251
- let __VLS_153;
252
- const __VLS_154 = {
253
- onChange: (...[$event]) => {
254
- if (!(!((!__VLS_ctx.user || !__VLS_ctx.account))))
255
- return;
256
- if (!((__VLS_ctx.user.isAdmin)))
257
- return;
258
- __VLS_ctx.session.setAdminMode(!__VLS_ctx.user.adminMode);
259
- }
260
- };
261
- let __VLS_150;
262
- let __VLS_151;
263
- const __VLS_152 = __VLS_pickFunctionalComponentCtx(__VLS_147, __VLS_149);
264
- __VLS_nonNullable(__VLS_146.slots).default;
265
- const __VLS_146 = __VLS_pickFunctionalComponentCtx(__VLS_141, __VLS_143);
266
- const __VLS_134 = __VLS_pickFunctionalComponentCtx(__VLS_129, __VLS_131);
228
+ const __VLS_64 = __VLS_asFunctionalComponent(__VLS_63, new __VLS_63({}));
229
+ const __VLS_65 = __VLS_64({}, ...__VLS_functionalComponentArgsRest(__VLS_64));
230
+ __VLS_asFunctionalDirective(__VLS_directives.vT)(null, { ...__VLS_directiveBindingRestFields, value: ('personalAccount') }, null, null);
231
+ var __VLS_54;
267
232
  }
268
- if (__VLS_ctx.user.asAdmin) {
269
- const __VLS_155 = __VLS_resolvedLocalAndGlobalComponents.VListItem;
270
- /** @type { [typeof __VLS_components.VListItem, typeof __VLS_components.vListItem, typeof __VLS_components.VListItem, typeof __VLS_components.vListItem, ] } */
233
+ for (const [organization] of __VLS_getVForSourceType((__VLS_ctx.switchableOrganizations))) {
234
+ const __VLS_67 = {}.VListItem;
235
+ /** @type {[typeof __VLS_components.VListItem, typeof __VLS_components.vListItem, typeof __VLS_components.VListItem, typeof __VLS_components.vListItem, ]} */ ;
271
236
  // @ts-ignore
272
- const __VLS_156 = __VLS_asFunctionalComponent(__VLS_155, new __VLS_155({ ...{ 'onClick': {} }, color: ("admin"), density: ("compact"), }));
273
- const __VLS_157 = __VLS_156({ ...{ 'onClick': {} }, color: ("admin"), density: ("compact"), }, ...__VLS_functionalComponentArgsRest(__VLS_156));
274
- let __VLS_161;
275
- const __VLS_162 = {
237
+ const __VLS_68 = __VLS_asFunctionalComponent(__VLS_67, new __VLS_67({
238
+ ...{ 'onClick': {} },
239
+ id: ('toolbar-menu-switch-orga-' + organization.id),
240
+ key: (organization.id),
241
+ }));
242
+ const __VLS_69 = __VLS_68({
243
+ ...{ 'onClick': {} },
244
+ id: ('toolbar-menu-switch-orga-' + organization.id),
245
+ key: (organization.id),
246
+ }, ...__VLS_functionalComponentArgsRest(__VLS_68));
247
+ let __VLS_71;
248
+ let __VLS_72;
249
+ let __VLS_73;
250
+ const __VLS_74 = {
276
251
  onClick: (...[$event]) => {
277
- if (!(!((!__VLS_ctx.user || !__VLS_ctx.account))))
252
+ if (!!(!__VLS_ctx.user || !__VLS_ctx.account))
278
253
  return;
279
- if (!((__VLS_ctx.user.asAdmin)))
254
+ if (!(__VLS_ctx.user.organizations.length > 1 || (__VLS_ctx.user.organizations.length === 1 && (!__VLS_ctx.user.ipa || __VLS_ctx.account.type === 'user'))))
280
255
  return;
281
- __VLS_ctx.session.asAdmin(null);
256
+ __VLS_ctx.session.switchOrganization(organization.id, organization.department, organization.role);
282
257
  }
283
258
  };
284
- let __VLS_158;
285
- let __VLS_159;
286
- __VLS_elementAsFunction(__VLS_intrinsicElements.template, __VLS_intrinsicElements.template)({});
259
+ __VLS_70.slots.default;
287
260
  {
288
- const { prepend: __VLS_thisSlot } = __VLS_nonNullable(__VLS_160.slots);
289
- const __VLS_163 = __VLS_resolvedLocalAndGlobalComponents.VIcon;
290
- /** @type { [typeof __VLS_components.VIcon, typeof __VLS_components.vIcon, ] } */
261
+ const { prepend: __VLS_thisSlot } = __VLS_70.slots;
262
+ const __VLS_75 = {}.VAvatar;
263
+ /** @type {[typeof __VLS_components.VAvatar, typeof __VLS_components.vAvatar, ]} */ ;
291
264
  // @ts-ignore
292
- const __VLS_164 = __VLS_asFunctionalComponent(__VLS_163, new __VLS_163({ icon: ((__VLS_ctx.mdiAccountSwitchOutline)), }));
293
- const __VLS_165 = __VLS_164({ icon: ((__VLS_ctx.mdiAccountSwitchOutline)), }, ...__VLS_functionalComponentArgsRest(__VLS_164));
265
+ const __VLS_76 = __VLS_asFunctionalComponent(__VLS_75, new __VLS_75({
266
+ size: (28),
267
+ image: (organization.department ? `${__VLS_ctx.session.options.directoryUrl}/api/avatars/organization/${organization.id}/${organization.department}/avatar.png` : `${__VLS_ctx.session.options.directoryUrl}/api/avatars/organization/${organization.id}/avatar.png`),
268
+ }));
269
+ const __VLS_77 = __VLS_76({
270
+ size: (28),
271
+ image: (organization.department ? `${__VLS_ctx.session.options.directoryUrl}/api/avatars/organization/${organization.id}/${organization.department}/avatar.png` : `${__VLS_ctx.session.options.directoryUrl}/api/avatars/organization/${organization.id}/avatar.png`),
272
+ }, ...__VLS_functionalComponentArgsRest(__VLS_76));
294
273
  }
295
- const __VLS_169 = __VLS_resolvedLocalAndGlobalComponents.VListItemTitle;
296
- /** @type { [typeof __VLS_components.VListItemTitle, typeof __VLS_components.vListItemTitle, typeof __VLS_components.VListItemTitle, typeof __VLS_components.vListItemTitle, ] } */
274
+ const __VLS_79 = {}.VListItemTitle;
275
+ /** @type {[typeof __VLS_components.VListItemTitle, typeof __VLS_components.vListItemTitle, typeof __VLS_components.VListItemTitle, typeof __VLS_components.vListItemTitle, ]} */ ;
297
276
  // @ts-ignore
298
- const __VLS_170 = __VLS_asFunctionalComponent(__VLS_169, new __VLS_169({}));
299
- const __VLS_171 = __VLS_170({}, ...__VLS_functionalComponentArgsRest(__VLS_170));
300
- (__VLS_ctx.t('backToAdmin'));
301
- __VLS_nonNullable(__VLS_174.slots).default;
302
- const __VLS_174 = __VLS_pickFunctionalComponentCtx(__VLS_169, __VLS_171);
303
- const __VLS_160 = __VLS_pickFunctionalComponentCtx(__VLS_155, __VLS_157);
277
+ const __VLS_80 = __VLS_asFunctionalComponent(__VLS_79, new __VLS_79({}));
278
+ const __VLS_81 = __VLS_80({}, ...__VLS_functionalComponentArgsRest(__VLS_80));
279
+ __VLS_82.slots.default;
280
+ (organization.name);
281
+ var __VLS_82;
282
+ if (organization.department || organization.roleLabel) {
283
+ const __VLS_83 = {}.VListItemSubtitle;
284
+ /** @type {[typeof __VLS_components.VListItemSubtitle, typeof __VLS_components.vListItemSubtitle, typeof __VLS_components.VListItemSubtitle, typeof __VLS_components.vListItemSubtitle, ]} */ ;
285
+ // @ts-ignore
286
+ const __VLS_84 = __VLS_asFunctionalComponent(__VLS_83, new __VLS_83({}));
287
+ const __VLS_85 = __VLS_84({}, ...__VLS_functionalComponentArgsRest(__VLS_84));
288
+ __VLS_86.slots.default;
289
+ (organization.departmentName || organization.department);
290
+ (organization.roleLabel);
291
+ var __VLS_86;
292
+ }
293
+ var __VLS_70;
304
294
  }
305
- const __VLS_175 = __VLS_resolvedLocalAndGlobalComponents.VDivider;
306
- /** @type { [typeof __VLS_components.VDivider, typeof __VLS_components.vDivider, ] } */
295
+ }
296
+ const __VLS_87 = {}.VDivider;
297
+ /** @type {[typeof __VLS_components.VDivider, typeof __VLS_components.vDivider, ]} */ ;
298
+ // @ts-ignore
299
+ const __VLS_88 = __VLS_asFunctionalComponent(__VLS_87, new __VLS_87({}));
300
+ const __VLS_89 = __VLS_88({}, ...__VLS_functionalComponentArgsRest(__VLS_88));
301
+ var __VLS_91 = {};
302
+ if (__VLS_ctx.user.isAdmin) {
303
+ const __VLS_93 = {}.VListItem;
304
+ /** @type {[typeof __VLS_components.VListItem, typeof __VLS_components.vListItem, typeof __VLS_components.VListItem, typeof __VLS_components.vListItem, ]} */ ;
305
+ // @ts-ignore
306
+ const __VLS_94 = __VLS_asFunctionalComponent(__VLS_93, new __VLS_93({
307
+ density: "compact",
308
+ ...{ class: "personal-menu-switch-list-item" },
309
+ }));
310
+ const __VLS_95 = __VLS_94({
311
+ density: "compact",
312
+ ...{ class: "personal-menu-switch-list-item" },
313
+ }, ...__VLS_functionalComponentArgsRest(__VLS_94));
314
+ __VLS_96.slots.default;
315
+ {
316
+ const { prepend: __VLS_thisSlot } = __VLS_96.slots;
317
+ const __VLS_97 = {}.VIcon;
318
+ /** @type {[typeof __VLS_components.VIcon, typeof __VLS_components.vIcon, ]} */ ;
319
+ // @ts-ignore
320
+ const __VLS_98 = __VLS_asFunctionalComponent(__VLS_97, new __VLS_97({
321
+ icon: (__VLS_ctx.mdiShieldAlert),
322
+ color: "admin",
323
+ }));
324
+ const __VLS_99 = __VLS_98({
325
+ icon: (__VLS_ctx.mdiShieldAlert),
326
+ color: "admin",
327
+ }, ...__VLS_functionalComponentArgsRest(__VLS_98));
328
+ }
329
+ const __VLS_101 = {}.VListItemTitle;
330
+ /** @type {[typeof __VLS_components.VListItemTitle, typeof __VLS_components.vListItemTitle, typeof __VLS_components.VListItemTitle, typeof __VLS_components.vListItemTitle, ]} */ ;
307
331
  // @ts-ignore
308
- const __VLS_176 = __VLS_asFunctionalComponent(__VLS_175, new __VLS_175({}));
309
- const __VLS_177 = __VLS_176({}, ...__VLS_functionalComponentArgsRest(__VLS_176));
310
- const __VLS_181 = __VLS_resolvedLocalAndGlobalComponents.VListItem;
311
- /** @type { [typeof __VLS_components.VListItem, typeof __VLS_components.vListItem, typeof __VLS_components.VListItem, typeof __VLS_components.vListItem, ] } */
332
+ const __VLS_102 = __VLS_asFunctionalComponent(__VLS_101, new __VLS_101({}));
333
+ const __VLS_103 = __VLS_102({}, ...__VLS_functionalComponentArgsRest(__VLS_102));
334
+ __VLS_104.slots.default;
335
+ const __VLS_105 = {}.VSwitch;
336
+ /** @type {[typeof __VLS_components.VSwitch, typeof __VLS_components.vSwitch, ]} */ ;
312
337
  // @ts-ignore
313
- const __VLS_182 = __VLS_asFunctionalComponent(__VLS_181, new __VLS_181({ ...{ 'onClick': {} }, }));
314
- const __VLS_183 = __VLS_182({ ...{ 'onClick': {} }, }, ...__VLS_functionalComponentArgsRest(__VLS_182));
315
- let __VLS_187;
316
- const __VLS_188 = {
317
- onClick: (() => __VLS_ctx.session.logout())
338
+ const __VLS_106 = __VLS_asFunctionalComponent(__VLS_105, new __VLS_105({
339
+ ...{ 'onChange': {} },
340
+ modelValue: (!!__VLS_ctx.user.adminMode),
341
+ color: "admin",
342
+ hideDetails: true,
343
+ ...{ class: "mt-0" },
344
+ density: "compact",
345
+ label: (__VLS_ctx.t('adminMode')),
346
+ }));
347
+ const __VLS_107 = __VLS_106({
348
+ ...{ 'onChange': {} },
349
+ modelValue: (!!__VLS_ctx.user.adminMode),
350
+ color: "admin",
351
+ hideDetails: true,
352
+ ...{ class: "mt-0" },
353
+ density: "compact",
354
+ label: (__VLS_ctx.t('adminMode')),
355
+ }, ...__VLS_functionalComponentArgsRest(__VLS_106));
356
+ let __VLS_109;
357
+ let __VLS_110;
358
+ let __VLS_111;
359
+ const __VLS_112 = {
360
+ onChange: (...[$event]) => {
361
+ if (!!(!__VLS_ctx.user || !__VLS_ctx.account))
362
+ return;
363
+ if (!(__VLS_ctx.user.isAdmin))
364
+ return;
365
+ __VLS_ctx.session.setAdminMode(!__VLS_ctx.user.adminMode);
366
+ }
318
367
  };
319
- let __VLS_184;
320
- let __VLS_185;
321
- __VLS_elementAsFunction(__VLS_intrinsicElements.template, __VLS_intrinsicElements.template)({});
368
+ var __VLS_108;
369
+ var __VLS_104;
370
+ var __VLS_96;
371
+ }
372
+ if (__VLS_ctx.user.asAdmin) {
373
+ const __VLS_113 = {}.VListItem;
374
+ /** @type {[typeof __VLS_components.VListItem, typeof __VLS_components.vListItem, typeof __VLS_components.VListItem, typeof __VLS_components.vListItem, ]} */ ;
375
+ // @ts-ignore
376
+ const __VLS_114 = __VLS_asFunctionalComponent(__VLS_113, new __VLS_113({
377
+ ...{ 'onClick': {} },
378
+ color: "admin",
379
+ density: "compact",
380
+ }));
381
+ const __VLS_115 = __VLS_114({
382
+ ...{ 'onClick': {} },
383
+ color: "admin",
384
+ density: "compact",
385
+ }, ...__VLS_functionalComponentArgsRest(__VLS_114));
386
+ let __VLS_117;
387
+ let __VLS_118;
388
+ let __VLS_119;
389
+ const __VLS_120 = {
390
+ onClick: (...[$event]) => {
391
+ if (!!(!__VLS_ctx.user || !__VLS_ctx.account))
392
+ return;
393
+ if (!(__VLS_ctx.user.asAdmin))
394
+ return;
395
+ __VLS_ctx.session.asAdmin(null);
396
+ }
397
+ };
398
+ __VLS_116.slots.default;
322
399
  {
323
- const { prepend: __VLS_thisSlot } = __VLS_nonNullable(__VLS_186.slots);
324
- const __VLS_189 = __VLS_resolvedLocalAndGlobalComponents.VIcon;
325
- /** @type { [typeof __VLS_components.VIcon, typeof __VLS_components.vIcon, ] } */
400
+ const { prepend: __VLS_thisSlot } = __VLS_116.slots;
401
+ const __VLS_121 = {}.VIcon;
402
+ /** @type {[typeof __VLS_components.VIcon, typeof __VLS_components.vIcon, ]} */ ;
326
403
  // @ts-ignore
327
- const __VLS_190 = __VLS_asFunctionalComponent(__VLS_189, new __VLS_189({ icon: ((__VLS_ctx.mdiLogout)), }));
328
- const __VLS_191 = __VLS_190({ icon: ((__VLS_ctx.mdiLogout)), }, ...__VLS_functionalComponentArgsRest(__VLS_190));
404
+ const __VLS_122 = __VLS_asFunctionalComponent(__VLS_121, new __VLS_121({
405
+ icon: (__VLS_ctx.mdiAccountSwitchOutline),
406
+ }));
407
+ const __VLS_123 = __VLS_122({
408
+ icon: (__VLS_ctx.mdiAccountSwitchOutline),
409
+ }, ...__VLS_functionalComponentArgsRest(__VLS_122));
329
410
  }
330
- const __VLS_195 = __VLS_resolvedLocalAndGlobalComponents.VListItemTitle;
331
- /** @type { [typeof __VLS_components.VListItemTitle, typeof __VLS_components.vListItemTitle, ] } */
411
+ const __VLS_125 = {}.VListItemTitle;
412
+ /** @type {[typeof __VLS_components.VListItemTitle, typeof __VLS_components.vListItemTitle, typeof __VLS_components.VListItemTitle, typeof __VLS_components.vListItemTitle, ]} */ ;
332
413
  // @ts-ignore
333
- const __VLS_196 = __VLS_asFunctionalComponent(__VLS_195, new __VLS_195({}));
334
- const __VLS_197 = __VLS_196({}, ...__VLS_functionalComponentArgsRest(__VLS_196));
335
- __VLS_directiveAsFunction(__VLS_directives.vT)(null, { ...__VLS_directiveBindingRestFields, value: ('logout') }, null, null);
336
- const __VLS_186 = __VLS_pickFunctionalComponentCtx(__VLS_181, __VLS_183);
337
- __VLS_nonNullable(__VLS_40.slots).default;
338
- const __VLS_40 = __VLS_pickFunctionalComponentCtx(__VLS_35, __VLS_37);
339
- const __VLS_17 = __VLS_pickFunctionalComponentCtx(__VLS_12, __VLS_14);
414
+ const __VLS_126 = __VLS_asFunctionalComponent(__VLS_125, new __VLS_125({}));
415
+ const __VLS_127 = __VLS_126({}, ...__VLS_functionalComponentArgsRest(__VLS_126));
416
+ __VLS_128.slots.default;
417
+ (__VLS_ctx.t('backToAdmin'));
418
+ var __VLS_128;
419
+ var __VLS_116;
340
420
  }
341
- __VLS_nonNullable(__VLS_5.slots).default;
342
- const __VLS_5 = __VLS_pickFunctionalComponentCtx(__VLS_0, __VLS_2);
343
- __VLS_styleScopedClasses['personal-menu'];
344
- __VLS_styleScopedClasses['px-0'];
345
- __VLS_styleScopedClasses['py-0'];
346
- __VLS_styleScopedClasses['border-sm'];
347
- __VLS_styleScopedClasses['text--secondary'];
348
- __VLS_styleScopedClasses['personal-menu-switch-list-item'];
349
- __VLS_styleScopedClasses['mt-0'];
350
- var __VLS_slots;
351
- var __VLS_inheritedAttrs;
352
- const __VLS_refs = {};
353
- var $refs;
354
- return {
355
- slots: __VLS_slots,
356
- refs: $refs,
357
- attrs: {},
421
+ const __VLS_129 = {}.VDivider;
422
+ /** @type {[typeof __VLS_components.VDivider, typeof __VLS_components.vDivider, ]} */ ;
423
+ // @ts-ignore
424
+ const __VLS_130 = __VLS_asFunctionalComponent(__VLS_129, new __VLS_129({}));
425
+ const __VLS_131 = __VLS_130({}, ...__VLS_functionalComponentArgsRest(__VLS_130));
426
+ const __VLS_133 = {}.VListItem;
427
+ /** @type {[typeof __VLS_components.VListItem, typeof __VLS_components.vListItem, typeof __VLS_components.VListItem, typeof __VLS_components.vListItem, ]} */ ;
428
+ // @ts-ignore
429
+ const __VLS_134 = __VLS_asFunctionalComponent(__VLS_133, new __VLS_133({
430
+ ...{ 'onClick': {} },
431
+ }));
432
+ const __VLS_135 = __VLS_134({
433
+ ...{ 'onClick': {} },
434
+ }, ...__VLS_functionalComponentArgsRest(__VLS_134));
435
+ let __VLS_137;
436
+ let __VLS_138;
437
+ let __VLS_139;
438
+ const __VLS_140 = {
439
+ onClick: (() => __VLS_ctx.session.logout())
358
440
  };
441
+ __VLS_136.slots.default;
442
+ {
443
+ const { prepend: __VLS_thisSlot } = __VLS_136.slots;
444
+ const __VLS_141 = {}.VIcon;
445
+ /** @type {[typeof __VLS_components.VIcon, typeof __VLS_components.vIcon, ]} */ ;
446
+ // @ts-ignore
447
+ const __VLS_142 = __VLS_asFunctionalComponent(__VLS_141, new __VLS_141({
448
+ icon: (__VLS_ctx.mdiLogout),
449
+ }));
450
+ const __VLS_143 = __VLS_142({
451
+ icon: (__VLS_ctx.mdiLogout),
452
+ }, ...__VLS_functionalComponentArgsRest(__VLS_142));
453
+ }
454
+ const __VLS_145 = {}.VListItemTitle;
455
+ /** @type {[typeof __VLS_components.VListItemTitle, typeof __VLS_components.vListItemTitle, ]} */ ;
456
+ // @ts-ignore
457
+ const __VLS_146 = __VLS_asFunctionalComponent(__VLS_145, new __VLS_145({}));
458
+ const __VLS_147 = __VLS_146({}, ...__VLS_functionalComponentArgsRest(__VLS_146));
459
+ __VLS_asFunctionalDirective(__VLS_directives.vT)(null, { ...__VLS_directiveBindingRestFields, value: ('logout') }, null, null);
460
+ var __VLS_136;
461
+ var __VLS_27;
462
+ var __VLS_12;
359
463
  }
360
- ;
464
+ var __VLS_3;
465
+ /** @type {__VLS_StyleScopedClasses['personal-menu']} */ ;
466
+ /** @type {__VLS_StyleScopedClasses['ml-n4']} */ ;
467
+ /** @type {__VLS_StyleScopedClasses['px-0']} */ ;
468
+ /** @type {__VLS_StyleScopedClasses['py-0']} */ ;
469
+ /** @type {__VLS_StyleScopedClasses['border-sm']} */ ;
470
+ /** @type {__VLS_StyleScopedClasses['text--secondary']} */ ;
471
+ /** @type {__VLS_StyleScopedClasses['personal-menu-switch-list-item']} */ ;
472
+ /** @type {__VLS_StyleScopedClasses['mt-0']} */ ;
473
+ // @ts-ignore
474
+ var __VLS_92 = __VLS_91;
475
+ var __VLS_dollars;
361
476
  const __VLS_self = (await import('vue')).defineComponent({
362
477
  setup() {
363
478
  return {
@@ -381,5 +496,5 @@ const __VLS_component = (await import('vue')).defineComponent({
381
496
  },
382
497
  });
383
498
  export default {};
384
- ;
499
+ ; /* PartiallyEnd: #4569/main.vue */
385
500
  //# sourceMappingURL=personal-menu.vue.js.map