settings-CzHGYg5d.mjs
6.04 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
import { _ as _sfc_main$2, a as _sfc_main$1, b as _sfc_main$3 } from './DashboardSidebarCollapse-DfyV0DnD.mjs';
import { _ as _sfc_main$4 } from './DashboardToolbar-BG5qRBsK.mjs';
import { _ as _sfc_main$5 } from './NavigationMenu-CHG4jvsS.mjs';
import { u as useAppI18n, B as __nuxt_component_5 } from './server.mjs';
import { defineComponent, computed, mergeProps, withCtx, createVNode, unref, useSSRContext } from 'vue';
import { ssrRenderComponent } from 'vue/server-renderer';
import { u as usePermission } from './usePermission-Mro0TvQy.mjs';
import './DashboardSidebarToggle-C5wA4q29.mjs';
import './PopperArrow-BinIEZTx.mjs';
import './isValueEqualOrExist-D9snIeTc.mjs';
import '../nitro/nitro.mjs';
import 'node:http';
import 'node:https';
import 'node:events';
import 'node:buffer';
import 'node:fs';
import 'node:path';
import 'node:crypto';
import 'node:url';
import '@iconify/utils';
import 'consola';
import './Kbd-CaBf62mJ.mjs';
import '@internationalized/date';
import './Badge-DxP8LLFm.mjs';
import './Popover-Bhd7OeaD.mjs';
import './overlay-CjyBzL1C.mjs';
import './Tooltip-BZhcKjQk.mjs';
import 'perfect-debounce';
import 'tailwindcss/colors';
import '../routes/renderer.mjs';
import 'vue-bundle-renderer/runtime';
import 'unhead/server';
import 'devalue';
import 'unhead/plugins';
import 'unhead/utils';
const _sfc_main = /* @__PURE__ */ defineComponent({
__name: "settings",
__ssrInlineRender: true,
setup(__props) {
const { t } = useAppI18n();
const { canAccessPage } = usePermission();
const links = computed(() => [
[{
label: t("settings.nav.general"),
icon: "i-lucide-user",
to: "/settings",
exact: true
}, {
label: t("settings.nav.members"),
icon: "i-lucide-users",
to: "/settings/members"
}, {
label: t("settings.nav.notifications"),
icon: "i-lucide-bell",
to: "/settings/notifications"
}, {
label: t("settings.nav.security"),
icon: "i-lucide-shield",
to: "/settings/security"
}].filter((item) => {
return typeof item.to === "string" ? canAccessPage(item.to) : true;
}),
[
// {
// label: t('settings.nav.documentation'),
// icon: 'i-lucide-book-open',
// to: 'https://ui.nuxt.com/docs/getting-started/installation/nuxt',
// target: '_blank'
// }
]
]);
return (_ctx, _push, _parent, _attrs) => {
const _component_UDashboardPanel = _sfc_main$2;
const _component_UDashboardNavbar = _sfc_main$1;
const _component_UDashboardSidebarCollapse = _sfc_main$3;
const _component_UDashboardToolbar = _sfc_main$4;
const _component_UNavigationMenu = _sfc_main$5;
const _component_NuxtPage = __nuxt_component_5;
_push(ssrRenderComponent(_component_UDashboardPanel, mergeProps({
id: "settings",
ui: { body: "lg:py-12" }
}, _attrs), {
header: withCtx((_, _push2, _parent2, _scopeId) => {
if (_push2) {
_push2(ssrRenderComponent(_component_UDashboardNavbar, {
title: unref(t)("settings.title")
}, {
leading: withCtx((_2, _push3, _parent3, _scopeId2) => {
if (_push3) {
_push3(ssrRenderComponent(_component_UDashboardSidebarCollapse, null, null, _parent3, _scopeId2));
} else {
return [
createVNode(_component_UDashboardSidebarCollapse)
];
}
}),
_: 1
}, _parent2, _scopeId));
_push2(ssrRenderComponent(_component_UDashboardToolbar, null, {
default: withCtx((_2, _push3, _parent3, _scopeId2) => {
if (_push3) {
_push3(ssrRenderComponent(_component_UNavigationMenu, {
items: unref(links),
highlight: "",
class: "-mx-1 flex-1"
}, null, _parent3, _scopeId2));
} else {
return [
createVNode(_component_UNavigationMenu, {
items: unref(links),
highlight: "",
class: "-mx-1 flex-1"
}, null, 8, ["items"])
];
}
}),
_: 1
}, _parent2, _scopeId));
} else {
return [
createVNode(_component_UDashboardNavbar, {
title: unref(t)("settings.title")
}, {
leading: withCtx(() => [
createVNode(_component_UDashboardSidebarCollapse)
]),
_: 1
}, 8, ["title"]),
createVNode(_component_UDashboardToolbar, null, {
default: withCtx(() => [
createVNode(_component_UNavigationMenu, {
items: unref(links),
highlight: "",
class: "-mx-1 flex-1"
}, null, 8, ["items"])
]),
_: 1
})
];
}
}),
body: withCtx((_, _push2, _parent2, _scopeId) => {
if (_push2) {
_push2(`<div class="flex flex-col gap-4 sm:gap-6 lg:gap-12 w-full lg:max-w-2xl mx-auto"${_scopeId}>`);
_push2(ssrRenderComponent(_component_NuxtPage, null, null, _parent2, _scopeId));
_push2(`</div>`);
} else {
return [
createVNode("div", { class: "flex flex-col gap-4 sm:gap-6 lg:gap-12 w-full lg:max-w-2xl mx-auto" }, [
createVNode(_component_NuxtPage)
])
];
}
}),
_: 1
}, _parent));
};
}
});
const _sfc_setup = _sfc_main.setup;
_sfc_main.setup = (props, ctx) => {
const ssrContext = useSSRContext();
(ssrContext.modules || (ssrContext.modules = /* @__PURE__ */ new Set())).add("pages/settings.vue");
return _sfc_setup ? _sfc_setup(props, ctx) : void 0;
};
export { _sfc_main as default };
//# sourceMappingURL=settings-CzHGYg5d.mjs.map