@code0-tech/pictor 0.0.0-mvp.25 → 0.0.0-mvp.26
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.
- package/dist/components/d-member/DNamespaceMemberContent.js +140 -92
- package/dist/components/d-organization/DOrganizatonContent.js +23 -23
- package/dist/components/d-project/DNamespaceProjectMenu.js +51 -22
- package/dist/components/d-project/index.js +10 -9
- package/dist/components/d-role/DNamespaceRoleContent.js +11 -11
- package/dist/components/d-runtime/DRuntimeContent.js +10 -10
- package/dist/components/d-user/DUserContent.js +9 -9
- package/package.json +1 -1
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import { jsxs as r, jsx as e, Fragment as
|
|
2
|
-
import
|
|
3
|
-
import { Flex as
|
|
4
|
-
import { useService as
|
|
1
|
+
import { jsxs as r, jsx as e, Fragment as $ } from "react/jsx-runtime";
|
|
2
|
+
import a from "react";
|
|
3
|
+
import { Flex as i } from "../flex/Flex.js";
|
|
4
|
+
import { useService as y, useStore as f } from "../../utils/contextStore.js";
|
|
5
5
|
import "merge-props";
|
|
6
|
-
import { DNamespaceMemberReactiveService as
|
|
7
|
-
import { DUserReactiveService as
|
|
8
|
-
import { Menu as
|
|
9
|
-
import { Avatar as
|
|
6
|
+
import { DNamespaceMemberReactiveService as M } from "./DNamespaceMember.service.js";
|
|
7
|
+
import { DUserReactiveService as I } from "../d-user/DUser.service.js";
|
|
8
|
+
import { Menu as w, MenuTrigger as T, MenuPortal as O, MenuContent as j, MenuLabel as m, MenuItem as b, MenuSeparator as _ } from "../menu/Menu.js";
|
|
9
|
+
import { Avatar as ee } from "../avatar/Avatar.js";
|
|
10
10
|
import { Text as o } from "../text/Text.js";
|
|
11
11
|
import "../../_virtual/compiler-runtime.js";
|
|
12
|
-
import { Card as
|
|
13
|
-
import { Badge as
|
|
14
|
-
import { IconTrash as
|
|
15
|
-
import { Button as
|
|
16
|
-
import
|
|
12
|
+
import { Card as v } from "../card/Card.js";
|
|
13
|
+
import { Badge as l } from "../badge/Badge.js";
|
|
14
|
+
import { IconTrash as re, IconArrowUp as B, IconArrowDown as k, IconCornerDownLeft as N, IconMailCheck as ie, IconDots as ne, IconUserOff as oe, IconUserCog as te } from "@tabler/icons-react";
|
|
15
|
+
import { Button as s } from "../button/Button.js";
|
|
16
|
+
import P from "../card/CardSection.js";
|
|
17
17
|
import "@radix-ui/react-checkbox";
|
|
18
|
-
import '../../assets/components/
|
|
18
|
+
import '../../assets/components/form/Input.style.css';/* empty css */
|
|
19
19
|
import "../form/EmailInput.js";
|
|
20
20
|
import "../form/Input.js";
|
|
21
21
|
import "../form/InputSuggestion.js";
|
|
@@ -25,152 +25,200 @@ import "@radix-ui/react-one-time-password-field";
|
|
|
25
25
|
import "@radix-ui/react-radio-group";
|
|
26
26
|
import "../form/SwitchInput.js";
|
|
27
27
|
import "../form/TextInput.js";
|
|
28
|
-
|
|
29
|
-
import { DNamespaceRoleReactiveService as
|
|
30
|
-
import { DNamespaceRolePermissions as
|
|
31
|
-
import { Tooltip as
|
|
32
|
-
import { Dialog as
|
|
33
|
-
const
|
|
28
|
+
import { Spacing as U } from "../spacing/Spacing.js";
|
|
29
|
+
import { DNamespaceRoleReactiveService as F } from "../d-role/DNamespaceRole.service.js";
|
|
30
|
+
import { DNamespaceRolePermissions as x } from "../d-role/DNamespaceRolePermissions.js";
|
|
31
|
+
import { Tooltip as le, TooltipTrigger as se, TooltipPortal as ce, TooltipContent as ae, TooltipArrow as de } from "../tooltip/Tooltip.js";
|
|
32
|
+
import { Dialog as L, DialogPortal as W, DialogContent as Y, DialogClose as h } from "../dialog/Dialog.js";
|
|
33
|
+
const Ve = (E) => {
|
|
34
34
|
const {
|
|
35
|
-
memberId:
|
|
36
|
-
onAssignRole:
|
|
35
|
+
memberId: S,
|
|
36
|
+
onAssignRole: V = () => {
|
|
37
37
|
},
|
|
38
|
-
onRemove:
|
|
38
|
+
onRemove: q = () => {
|
|
39
39
|
}
|
|
40
|
-
} =
|
|
40
|
+
} = E, G = y(M), H = f(M), J = y(I), K = f(I), C = y(F), Q = f(F), t = a.useMemo(() => G.getById(S), [H, S]), c = a.useMemo(() => J.getById(t?.user?.id), [K, t]), p = a.useMemo(() => t?.roles?.nodes?.map((n) => C.getById(n?.id, {
|
|
41
41
|
namespaceId: t?.namespace?.id
|
|
42
|
-
})) || [], [
|
|
42
|
+
})) || [], [Q, t]), [g, z] = a.useState(p), [X, A] = a.useState(!1), [Z, R] = a.useState(!1), D = C.values({
|
|
43
43
|
namespaceId: t?.namespace?.id
|
|
44
|
-
}).filter((
|
|
45
|
-
return /* @__PURE__ */ r(
|
|
44
|
+
}).filter((n) => !g.find((d) => d?.id === n.id));
|
|
45
|
+
return /* @__PURE__ */ r(i, { align: "center", style: {
|
|
46
46
|
gap: "1.3rem"
|
|
47
47
|
}, justify: "space-between", children: [
|
|
48
|
-
/* @__PURE__ */ e(
|
|
48
|
+
/* @__PURE__ */ e(L, { open: X, onOpenChange: (n) => A(n), children: /* @__PURE__ */ e(W, { children: /* @__PURE__ */ r(Y, { showCloseButton: !0, title: "Remove member", children: [
|
|
49
49
|
/* @__PURE__ */ r(o, { size: "md", hierarchy: "secondary", children: [
|
|
50
50
|
"Are you sure you want to remove ",
|
|
51
51
|
" ",
|
|
52
|
-
/* @__PURE__ */ e(
|
|
52
|
+
/* @__PURE__ */ e(l, { color: "info", children: /* @__PURE__ */ r(o, { size: "md", style: {
|
|
53
53
|
color: "inherit"
|
|
54
54
|
}, children: [
|
|
55
55
|
"@",
|
|
56
|
-
|
|
56
|
+
c?.username
|
|
57
57
|
] }) }),
|
|
58
58
|
" ",
|
|
59
59
|
" ",
|
|
60
60
|
"from the namespace members?"
|
|
61
61
|
] }),
|
|
62
|
-
/* @__PURE__ */ r(
|
|
63
|
-
/* @__PURE__ */ e(
|
|
64
|
-
/* @__PURE__ */ e(
|
|
62
|
+
/* @__PURE__ */ r(i, { justify: "space-between", align: "center", children: [
|
|
63
|
+
/* @__PURE__ */ e(h, { asChild: !0, children: /* @__PURE__ */ e(s, { color: "secondary", children: "No, go back!" }) }),
|
|
64
|
+
/* @__PURE__ */ e(h, { asChild: !0, children: /* @__PURE__ */ e(s, { color: "error", onClick: () => q(t), children: "Yes, remove!" }) })
|
|
65
65
|
] })
|
|
66
66
|
] }) }) }),
|
|
67
|
-
/* @__PURE__ */ e(
|
|
67
|
+
/* @__PURE__ */ e(L, { open: Z, onOpenChange: (n) => R(n), children: /* @__PURE__ */ e(W, { children: /* @__PURE__ */ r(Y, { autoFocus: !0, showCloseButton: !0, title: "Assign roles", children: [
|
|
68
68
|
/* @__PURE__ */ e(o, { size: "md", hierarchy: "tertiary", children: "Assign, remove and manage the roles of a active member" }),
|
|
69
|
-
/* @__PURE__ */ r(
|
|
70
|
-
|
|
69
|
+
/* @__PURE__ */ r(v, { paddingSize: "xs", color: "secondary", children: [
|
|
70
|
+
g.map((n) => /* @__PURE__ */ e(P, { border: !0, children: /* @__PURE__ */ r(i, { style: {
|
|
71
71
|
gap: "0.7rem"
|
|
72
72
|
}, align: "center", justify: "space-between", children: [
|
|
73
|
-
/* @__PURE__ */ r(
|
|
73
|
+
/* @__PURE__ */ r(i, { align: "center", style: {
|
|
74
74
|
gap: "1.3rem"
|
|
75
75
|
}, children: [
|
|
76
|
-
/* @__PURE__ */ e(o, { hierarchy: "primary", children:
|
|
77
|
-
/* @__PURE__ */ e(
|
|
76
|
+
/* @__PURE__ */ e(o, { hierarchy: "primary", children: n?.name }),
|
|
77
|
+
/* @__PURE__ */ e(x, { abilities: n?.abilities })
|
|
78
78
|
] }),
|
|
79
|
-
/* @__PURE__ */ e(
|
|
80
|
-
|
|
81
|
-
}, children: /* @__PURE__ */ e(
|
|
82
|
-
] }) },
|
|
83
|
-
/* @__PURE__ */ r(
|
|
84
|
-
/* @__PURE__ */ e(
|
|
85
|
-
/* @__PURE__ */ e(
|
|
86
|
-
/* @__PURE__ */
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
79
|
+
/* @__PURE__ */ e(s, { color: "error", variant: "filled", paddingSize: "xxs", onClick: () => {
|
|
80
|
+
z((d) => d.filter((u) => u?.id != n?.id));
|
|
81
|
+
}, children: /* @__PURE__ */ e(re, { size: 16 }) })
|
|
82
|
+
] }) }, n?.id)),
|
|
83
|
+
/* @__PURE__ */ r(w, { children: [
|
|
84
|
+
/* @__PURE__ */ e(T, { asChild: !0, children: /* @__PURE__ */ e(P, { hover: !0, p: 0.35, border: !0, display: "flex", justify: "center", children: /* @__PURE__ */ e(s, { paddingSize: "xxs", variant: "none", children: "Assign roles" }) }) }),
|
|
85
|
+
/* @__PURE__ */ e(O, { children: /* @__PURE__ */ r(j, { side: "bottom", sideOffset: 8, align: "center", color: "secondary", maw: "300px", children: [
|
|
86
|
+
/* @__PURE__ */ r(v, { paddingSize: "xxs", mt: -0.35, mx: -0.35, style: {
|
|
87
|
+
borderWidth: "2px"
|
|
88
|
+
}, children: [
|
|
89
|
+
/* @__PURE__ */ e(m, { children: "Roles to add" }),
|
|
90
|
+
D.map((n, d) => /* @__PURE__ */ r($, { children: [
|
|
91
|
+
/* @__PURE__ */ e(b, { onSelect: () => {
|
|
92
|
+
z((u) => [...u, n]);
|
|
93
|
+
}, children: /* @__PURE__ */ r(i, { align: "center", style: {
|
|
94
|
+
gap: "1.3rem"
|
|
95
|
+
}, children: [
|
|
96
|
+
/* @__PURE__ */ e(o, { hierarchy: "primary", children: n?.name }),
|
|
97
|
+
/* @__PURE__ */ e(x, { abilities: n?.abilities })
|
|
98
|
+
] }) }),
|
|
99
|
+
d < D.length - 1 && /* @__PURE__ */ e(_, {})
|
|
100
|
+
] }))
|
|
101
|
+
] }),
|
|
102
|
+
/* @__PURE__ */ e(m, { children: /* @__PURE__ */ r(i, { style: {
|
|
103
|
+
gap: ".35rem"
|
|
104
|
+
}, children: [
|
|
105
|
+
/* @__PURE__ */ r(i, { align: "center", style: {
|
|
106
|
+
gap: "0.35rem"
|
|
92
107
|
}, children: [
|
|
93
|
-
/* @__PURE__ */
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
108
|
+
/* @__PURE__ */ r(i, { children: [
|
|
109
|
+
/* @__PURE__ */ e(l, { border: !0, children: /* @__PURE__ */ e(B, { size: 12 }) }),
|
|
110
|
+
/* @__PURE__ */ e(l, { border: !0, children: /* @__PURE__ */ e(k, { size: 12 }) })
|
|
111
|
+
] }),
|
|
112
|
+
"move"
|
|
113
|
+
] }),
|
|
114
|
+
/* @__PURE__ */ e(U, { spacing: "xxs" }),
|
|
115
|
+
/* @__PURE__ */ r(i, { align: "center", style: {
|
|
116
|
+
gap: ".35rem"
|
|
117
|
+
}, children: [
|
|
118
|
+
/* @__PURE__ */ e(l, { border: !0, children: /* @__PURE__ */ e(N, { size: 12 }) }),
|
|
119
|
+
"insert"
|
|
120
|
+
] })
|
|
121
|
+
] }) })
|
|
98
122
|
] }) })
|
|
99
123
|
] })
|
|
100
124
|
] }),
|
|
101
|
-
/* @__PURE__ */ r(
|
|
102
|
-
/* @__PURE__ */ e(
|
|
103
|
-
/* @__PURE__ */ e(
|
|
125
|
+
/* @__PURE__ */ r(i, { justify: "space-between", align: "center", children: [
|
|
126
|
+
/* @__PURE__ */ e(h, { asChild: !0, children: /* @__PURE__ */ e(s, { color: "secondary", children: "No, go back!" }) }),
|
|
127
|
+
/* @__PURE__ */ e(h, { asChild: !0, children: /* @__PURE__ */ e(s, { onClick: () => V(t, g), color: "success", children: "Yes, save!" }) })
|
|
104
128
|
] })
|
|
105
129
|
] }) }) }),
|
|
106
|
-
/* @__PURE__ */ r(
|
|
130
|
+
/* @__PURE__ */ r(i, { style: {
|
|
107
131
|
gap: "1.3rem"
|
|
108
132
|
}, align: "center", children: [
|
|
109
|
-
/* @__PURE__ */ r(
|
|
133
|
+
/* @__PURE__ */ r(i, { align: "center", style: {
|
|
110
134
|
gap: ".7rem"
|
|
111
135
|
}, children: [
|
|
112
|
-
/* @__PURE__ */ e(
|
|
113
|
-
/* @__PURE__ */ r(
|
|
136
|
+
/* @__PURE__ */ e(ee, { identifier: c?.username, bg: "transparent" }),
|
|
137
|
+
/* @__PURE__ */ r(i, { style: {
|
|
114
138
|
flexDirection: "column",
|
|
115
139
|
gap: "0.35rem"
|
|
116
140
|
}, children: [
|
|
117
141
|
/* @__PURE__ */ r(o, { size: "md", hierarchy: "primary", children: [
|
|
118
142
|
"@",
|
|
119
|
-
|
|
143
|
+
c?.username
|
|
120
144
|
] }),
|
|
121
|
-
/* @__PURE__ */ e(o, { size: "sm", hierarchy: "tertiary", children:
|
|
145
|
+
/* @__PURE__ */ e(o, { size: "sm", hierarchy: "tertiary", children: c?.email })
|
|
122
146
|
] })
|
|
123
147
|
] }),
|
|
124
|
-
|
|
148
|
+
p.length > 0 ? /* @__PURE__ */ r(i, { style: {
|
|
125
149
|
flexDirection: "column",
|
|
126
150
|
gap: "0.35rem"
|
|
127
151
|
}, children: [
|
|
128
152
|
/* @__PURE__ */ e(o, { size: "xs", hierarchy: "tertiary", children: "Assigned roles" }),
|
|
129
|
-
/* @__PURE__ */ e(
|
|
153
|
+
/* @__PURE__ */ e(i, { align: "center", style: {
|
|
130
154
|
gap: "0.35rem"
|
|
131
|
-
}, children:
|
|
132
|
-
/* @__PURE__ */ e(
|
|
155
|
+
}, children: p.map((n) => /* @__PURE__ */ r(le, { children: [
|
|
156
|
+
/* @__PURE__ */ e(se, { asChild: !0, children: /* @__PURE__ */ e(l, { color: "info", children: /* @__PURE__ */ e(o, { style: {
|
|
133
157
|
color: "inherit"
|
|
134
|
-
}, hierarchy: "tertiary", children:
|
|
135
|
-
/* @__PURE__ */ e(
|
|
136
|
-
/* @__PURE__ */ e(
|
|
137
|
-
/* @__PURE__ */ e(
|
|
158
|
+
}, hierarchy: "tertiary", children: n?.name }) }) }),
|
|
159
|
+
/* @__PURE__ */ e(ce, { children: /* @__PURE__ */ r(ae, { side: "bottom", children: [
|
|
160
|
+
/* @__PURE__ */ e(x, { abilities: n?.abilities }),
|
|
161
|
+
/* @__PURE__ */ e(de, {})
|
|
138
162
|
] }) })
|
|
139
163
|
] })) })
|
|
140
164
|
] }) : null
|
|
141
165
|
] }),
|
|
142
|
-
/* @__PURE__ */ r(
|
|
166
|
+
/* @__PURE__ */ r(i, { align: "center", style: {
|
|
143
167
|
gap: "1.3rem"
|
|
144
168
|
}, children: [
|
|
145
|
-
/* @__PURE__ */ e(
|
|
169
|
+
/* @__PURE__ */ e(i, { style: {
|
|
146
170
|
flexDirection: "column",
|
|
147
171
|
gap: "0.35rem"
|
|
148
|
-
}, children: /* @__PURE__ */ r(
|
|
172
|
+
}, children: /* @__PURE__ */ r(i, { style: {
|
|
149
173
|
gap: "0.35rem"
|
|
150
174
|
}, align: "center", children: [
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
/* @__PURE__ */ e(
|
|
175
|
+
c?.admin ? /* @__PURE__ */ e(l, { border: !0, color: "primary", children: /* @__PURE__ */ e(o, { hierarchy: "tertiary", children: "Owner" }) }) : null,
|
|
176
|
+
c?.emailVerifiedAt ? /* @__PURE__ */ r(l, { border: !0, color: "primary", children: [
|
|
177
|
+
/* @__PURE__ */ e(ie, { size: 16 }),
|
|
154
178
|
/* @__PURE__ */ e(o, { hierarchy: "tertiary", children: "Email verified" })
|
|
155
179
|
] }) : null
|
|
156
180
|
] }) }),
|
|
157
|
-
t?.userAbilities?.deleteMember || t?.userAbilities?.assignMemberRoles ? /* @__PURE__ */ r(
|
|
158
|
-
/* @__PURE__ */ e(
|
|
159
|
-
/* @__PURE__ */ e(
|
|
160
|
-
/* @__PURE__ */
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
/* @__PURE__ */ e(
|
|
181
|
+
t?.userAbilities?.deleteMember || t?.userAbilities?.assignMemberRoles ? /* @__PURE__ */ r(w, { children: [
|
|
182
|
+
/* @__PURE__ */ e(T, { asChild: !0, children: /* @__PURE__ */ e(s, { variant: "filled", color: "secondary", children: /* @__PURE__ */ e(ne, { size: 16 }) }) }),
|
|
183
|
+
/* @__PURE__ */ e(O, { children: /* @__PURE__ */ r(j, { align: "end", side: "bottom", sideOffset: 8, color: "secondary", children: [
|
|
184
|
+
/* @__PURE__ */ r(v, { paddingSize: "xxs", mt: -0.35, mx: -0.35, style: {
|
|
185
|
+
borderWidth: "2px"
|
|
186
|
+
}, children: [
|
|
187
|
+
/* @__PURE__ */ e(m, { children: "Actions" }),
|
|
188
|
+
t?.userAbilities?.deleteMember && /* @__PURE__ */ r(b, { onSelect: () => A(!0), children: [
|
|
189
|
+
/* @__PURE__ */ e(oe, { size: 16 }),
|
|
190
|
+
/* @__PURE__ */ e(o, { children: "Remove member" })
|
|
191
|
+
] }),
|
|
192
|
+
t?.userAbilities?.assignMemberRoles && /* @__PURE__ */ r(b, { onSelect: () => R(!0), children: [
|
|
193
|
+
/* @__PURE__ */ e(te, { size: 16 }),
|
|
194
|
+
/* @__PURE__ */ e(o, { children: "Assign role" })
|
|
195
|
+
] })
|
|
164
196
|
] }),
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
197
|
+
/* @__PURE__ */ e(m, { children: /* @__PURE__ */ r(i, { style: {
|
|
198
|
+
gap: ".35rem"
|
|
199
|
+
}, children: [
|
|
200
|
+
/* @__PURE__ */ r(i, { align: "center", style: {
|
|
201
|
+
gap: "0.35rem"
|
|
202
|
+
}, children: [
|
|
203
|
+
/* @__PURE__ */ r(i, { children: [
|
|
204
|
+
/* @__PURE__ */ e(l, { border: !0, children: /* @__PURE__ */ e(B, { size: 12 }) }),
|
|
205
|
+
/* @__PURE__ */ e(l, { border: !0, children: /* @__PURE__ */ e(k, { size: 12 }) })
|
|
206
|
+
] }),
|
|
207
|
+
"move"
|
|
208
|
+
] }),
|
|
209
|
+
/* @__PURE__ */ e(U, { spacing: "xxs" }),
|
|
210
|
+
/* @__PURE__ */ r(i, { align: "center", style: {
|
|
211
|
+
gap: ".35rem"
|
|
212
|
+
}, children: [
|
|
213
|
+
/* @__PURE__ */ e(l, { border: !0, children: /* @__PURE__ */ e(N, { size: 12 }) }),
|
|
214
|
+
"perform"
|
|
215
|
+
] })
|
|
216
|
+
] }) })
|
|
169
217
|
] }) })
|
|
170
218
|
] }) : null
|
|
171
219
|
] })
|
|
172
220
|
] });
|
|
173
221
|
};
|
|
174
222
|
export {
|
|
175
|
-
|
|
223
|
+
Ve as DNamespaceMemberContent
|
|
176
224
|
};
|
|
@@ -3,18 +3,18 @@ import n from "react";
|
|
|
3
3
|
import { useStore as c, useService as s } from "../../utils/contextStore.js";
|
|
4
4
|
import "merge-props";
|
|
5
5
|
import { Text as m } from "../text/Text.js";
|
|
6
|
-
import { DOrganizationReactiveService as
|
|
7
|
-
import {
|
|
8
|
-
import { Flex as
|
|
9
|
-
import { Button as
|
|
6
|
+
import { DOrganizationReactiveService as v } from "./DOrganization.service.js";
|
|
7
|
+
import { IconFolders as k, IconUsers as L, IconServer as N, IconEdit as w, IconLogout as F } from "@tabler/icons-react";
|
|
8
|
+
import { Flex as t } from "../flex/Flex.js";
|
|
9
|
+
import { Button as S } from "../button/Button.js";
|
|
10
10
|
import { Spacing as P } from "../spacing/Spacing.js";
|
|
11
|
-
import { Avatar as
|
|
12
|
-
import { DUserReactiveService as
|
|
11
|
+
import { Avatar as E } from "../avatar/Avatar.js";
|
|
12
|
+
import { DUserReactiveService as b } from "../d-user/DUser.service.js";
|
|
13
13
|
import "../../_virtual/compiler-runtime.js";
|
|
14
14
|
import '../../assets/components/dialog/Dialog.style.css';import '../../assets/components/tooltip/Tooltip.style.css';import '../../assets/components/form/Input.style.css';import '../../assets/components/card/Card.style.css';import '../../assets/components/menu/Menu.style.css';/* empty css */
|
|
15
15
|
import "@radix-ui/react-dropdown-menu";
|
|
16
16
|
/* empty css */
|
|
17
|
-
import { useUserSession as
|
|
17
|
+
import { useUserSession as T } from "../d-user/DUser.session.hook.js";
|
|
18
18
|
import { Badge as d } from "../badge/Badge.js";
|
|
19
19
|
import "@radix-ui/react-checkbox";
|
|
20
20
|
/* empty css */
|
|
@@ -27,7 +27,7 @@ import "@radix-ui/react-one-time-password-field";
|
|
|
27
27
|
import "@radix-ui/react-radio-group";
|
|
28
28
|
import "../form/SwitchInput.js";
|
|
29
29
|
import "../form/TextInput.js";
|
|
30
|
-
import { DNamespaceReactiveService as
|
|
30
|
+
import { DNamespaceReactiveService as z } from "../d-namespace/DNamespace.service.js";
|
|
31
31
|
import { DNamespaceMemberReactiveService as x } from "../d-member/DNamespaceMember.service.js";
|
|
32
32
|
import "@radix-ui/react-tooltip";
|
|
33
33
|
/* empty css */
|
|
@@ -40,39 +40,39 @@ const Ie = (I) => {
|
|
|
40
40
|
},
|
|
41
41
|
onSetting: j = () => {
|
|
42
42
|
}
|
|
43
|
-
} = I, B = c(
|
|
44
|
-
return /* @__PURE__ */ i(
|
|
43
|
+
} = I, B = c(v), C = s(v), D = c(z), $ = s(z), A = c(x), R = s(x), U = s(b), O = c(b), u = T(), p = n.useMemo(() => U.getById(u?.user?.id), [O, u]), r = n.useMemo(() => a ? C.getById(a) : null, [B, a]), o = n.useMemo(() => r ? $.getById(r.namespace?.id) : null, [D, r]), g = n.useMemo(() => o && p ? R.getByNamespaceIdAndUserId(o.id, p.id) : null, [A, o, p]), h = o?.projects?.count, y = o?.members?.count, f = o?.runtimes?.count;
|
|
44
|
+
return /* @__PURE__ */ i(t, { align: "center", style: {
|
|
45
45
|
gap: "1.3rem"
|
|
46
46
|
}, justify: "space-between", children: [
|
|
47
|
-
/* @__PURE__ */ i(
|
|
47
|
+
/* @__PURE__ */ i(t, { align: "center", style: {
|
|
48
48
|
gap: "1.3rem"
|
|
49
49
|
}, children: [
|
|
50
|
-
/* @__PURE__ */ e(
|
|
51
|
-
/* @__PURE__ */ i(
|
|
50
|
+
/* @__PURE__ */ e(E, { bg: "transparent", identifier: r?.name ?? "" }),
|
|
51
|
+
/* @__PURE__ */ i(t, { style: {
|
|
52
52
|
flexDirection: "column"
|
|
53
53
|
}, children: [
|
|
54
54
|
/* @__PURE__ */ e(m, { size: "lg", hierarchy: "primary", display: "block", children: r?.name }),
|
|
55
55
|
/* @__PURE__ */ e(P, { spacing: "xxs" }),
|
|
56
|
-
/* @__PURE__ */ i(
|
|
56
|
+
/* @__PURE__ */ i(t, { align: "center", style: {
|
|
57
57
|
gap: "0.35rem",
|
|
58
58
|
flexWrap: "wrap"
|
|
59
59
|
}, children: [
|
|
60
|
-
/* @__PURE__ */ e(d, {
|
|
60
|
+
/* @__PURE__ */ e(d, { border: !0, children: /* @__PURE__ */ i(t, { align: "center", style: {
|
|
61
61
|
gap: "0.35rem"
|
|
62
62
|
}, children: [
|
|
63
63
|
/* @__PURE__ */ e(k, { size: 16 }),
|
|
64
|
-
/* @__PURE__ */ e(m, { size: "xs", hierarchy: "tertiary", children: `${
|
|
64
|
+
/* @__PURE__ */ e(m, { size: "xs", hierarchy: "tertiary", children: `${h ?? 0} project${(h ?? 0) !== 1 ? "s" : ""}` })
|
|
65
65
|
] }) }),
|
|
66
|
-
/* @__PURE__ */ e(d, {
|
|
66
|
+
/* @__PURE__ */ e(d, { border: !0, children: /* @__PURE__ */ i(t, { align: "center", style: {
|
|
67
67
|
gap: "0.35rem"
|
|
68
68
|
}, children: [
|
|
69
69
|
/* @__PURE__ */ e(L, { size: 16 }),
|
|
70
70
|
/* @__PURE__ */ i(m, { size: "xs", hierarchy: "tertiary", children: [
|
|
71
71
|
" ",
|
|
72
|
-
`${
|
|
72
|
+
`${y ?? 0} member${(y ?? 0) !== 1 ? "s" : ""}`
|
|
73
73
|
] })
|
|
74
74
|
] }) }),
|
|
75
|
-
/* @__PURE__ */ e(d, {
|
|
75
|
+
/* @__PURE__ */ e(d, { border: !0, children: /* @__PURE__ */ i(t, { align: "center", style: {
|
|
76
76
|
gap: "0.35rem"
|
|
77
77
|
}, children: [
|
|
78
78
|
/* @__PURE__ */ e(N, { size: 16 }),
|
|
@@ -81,13 +81,13 @@ const Ie = (I) => {
|
|
|
81
81
|
] })
|
|
82
82
|
] })
|
|
83
83
|
] }),
|
|
84
|
-
/* @__PURE__ */ i(
|
|
85
|
-
gap: "0.
|
|
84
|
+
/* @__PURE__ */ i(t, { align: "center", style: {
|
|
85
|
+
gap: "0.7rem"
|
|
86
86
|
}, children: [
|
|
87
|
-
r?.userAbilities?.deleteOrganization || r?.userAbilities?.updateOrganization ? /* @__PURE__ */ e(
|
|
87
|
+
r?.userAbilities?.deleteOrganization || r?.userAbilities?.updateOrganization ? /* @__PURE__ */ e(S, { variant: "filled", color: "secondary", onClick: (l) => {
|
|
88
88
|
l.stopPropagation(), j(r);
|
|
89
89
|
}, children: /* @__PURE__ */ e(w, { size: 16 }) }) : null,
|
|
90
|
-
|
|
90
|
+
g && g.userAbilities?.deleteMember ? /* @__PURE__ */ i(S, { variant: "filled", color: "error", onClick: (l) => {
|
|
91
91
|
l.stopPropagation(), r && M(r);
|
|
92
92
|
}, children: [
|
|
93
93
|
/* @__PURE__ */ e(F, { size: 16 }),
|
|
@@ -1,28 +1,57 @@
|
|
|
1
|
-
import { jsxs as
|
|
1
|
+
import { jsxs as r, jsx as e, Fragment as M } from "react/jsx-runtime";
|
|
2
2
|
import s from "react";
|
|
3
|
-
import { Menu as S, MenuTrigger as
|
|
4
|
-
import { DNamespaceProjectReactiveService as
|
|
3
|
+
import { Menu as S, MenuTrigger as I, MenuPortal as v, MenuContent as b, MenuItem as y, MenuSeparator as z, MenuLabel as P } from "../menu/Menu.js";
|
|
4
|
+
import { DNamespaceProjectReactiveService as p } from "./DNamespaceProject.service.js";
|
|
5
5
|
import { useService as u } from "../../utils/contextStore.js";
|
|
6
|
-
import { Button as
|
|
7
|
-
import { DNamespaceProjectContent as
|
|
8
|
-
|
|
6
|
+
import { Button as w } from "../button/Button.js";
|
|
7
|
+
import { DNamespaceProjectContent as C } from "./DNamespaceProjectContent.js";
|
|
8
|
+
import { Card as D } from "../card/Card.js";
|
|
9
|
+
import { Flex as t } from "../flex/Flex.js";
|
|
10
|
+
import { Badge as n } from "../badge/Badge.js";
|
|
11
|
+
import { IconArrowUp as B, IconArrowDown as N, IconCornerDownLeft as A } from "@tabler/icons-react";
|
|
12
|
+
import { Spacing as F } from "../spacing/Spacing.js";
|
|
13
|
+
const K = (i) => {
|
|
9
14
|
const {
|
|
10
|
-
onProjectSelect:
|
|
11
|
-
namespaceId:
|
|
12
|
-
filter:
|
|
13
|
-
projectId:
|
|
14
|
-
children:
|
|
15
|
-
} =
|
|
16
|
-
namespaceId:
|
|
17
|
-
}).filter(
|
|
18
|
-
return s.useMemo(() => /* @__PURE__ */
|
|
19
|
-
/* @__PURE__ */ e(
|
|
20
|
-
/* @__PURE__ */ e(v, { children: /* @__PURE__ */
|
|
21
|
-
/* @__PURE__ */ e(
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
15
|
+
onProjectSelect: h,
|
|
16
|
+
namespaceId: c,
|
|
17
|
+
filter: f = () => !0,
|
|
18
|
+
projectId: g,
|
|
19
|
+
children: m
|
|
20
|
+
} = i, d = u(p), a = u(p), x = d.getById(g), l = s.useMemo(() => d.values({
|
|
21
|
+
namespaceId: c
|
|
22
|
+
}).filter(f), [a, c]);
|
|
23
|
+
return s.useMemo(() => /* @__PURE__ */ r(S, { ...i, children: [
|
|
24
|
+
/* @__PURE__ */ e(I, { asChild: !0, children: m || /* @__PURE__ */ e(w, { variant: "none", paddingSize: "xxs", children: x?.name }) }),
|
|
25
|
+
/* @__PURE__ */ e(v, { children: /* @__PURE__ */ r(b, { side: "bottom", align: "center", sideOffset: 8, maw: "210px", color: "secondary", children: [
|
|
26
|
+
/* @__PURE__ */ e(D, { paddingSize: "xxs", mt: -0.35, mx: -0.35, style: {
|
|
27
|
+
borderWidth: "2px"
|
|
28
|
+
}, children: l.map((o, j) => /* @__PURE__ */ r(M, { children: [
|
|
29
|
+
/* @__PURE__ */ e(y, { onSelect: () => h(o), children: /* @__PURE__ */ e(C, { minimized: !0, projectId: o.id }) }, o.id),
|
|
30
|
+
j < l.length - 1 && /* @__PURE__ */ e(z, {})
|
|
31
|
+
] })) }),
|
|
32
|
+
/* @__PURE__ */ e(P, { children: /* @__PURE__ */ r(t, { style: {
|
|
33
|
+
gap: ".35rem"
|
|
34
|
+
}, children: [
|
|
35
|
+
/* @__PURE__ */ r(t, { align: "center", style: {
|
|
36
|
+
gap: "0.35rem"
|
|
37
|
+
}, children: [
|
|
38
|
+
/* @__PURE__ */ r(t, { children: [
|
|
39
|
+
/* @__PURE__ */ e(n, { border: !0, children: /* @__PURE__ */ e(B, { size: 12 }) }),
|
|
40
|
+
/* @__PURE__ */ e(n, { border: !0, children: /* @__PURE__ */ e(N, { size: 12 }) })
|
|
41
|
+
] }),
|
|
42
|
+
"move"
|
|
43
|
+
] }),
|
|
44
|
+
/* @__PURE__ */ e(F, { spacing: "xxs" }),
|
|
45
|
+
/* @__PURE__ */ r(t, { align: "center", style: {
|
|
46
|
+
gap: ".35rem"
|
|
47
|
+
}, children: [
|
|
48
|
+
/* @__PURE__ */ e(n, { border: !0, children: /* @__PURE__ */ e(A, { size: 12 }) }),
|
|
49
|
+
"add"
|
|
50
|
+
] })
|
|
51
|
+
] }) })
|
|
52
|
+
] }) })
|
|
53
|
+
] }), [a]);
|
|
25
54
|
};
|
|
26
55
|
export {
|
|
27
|
-
|
|
56
|
+
K as default
|
|
28
57
|
};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { DNamespaceProjectReactiveService as
|
|
2
|
-
import { DNamespaceProjectView as
|
|
3
|
-
import { DNamespaceProjectCard as
|
|
4
|
-
import { DNamespaceProjectList as
|
|
1
|
+
import { DNamespaceProjectReactiveService as w } from "./DNamespaceProject.service.js";
|
|
2
|
+
import { DNamespaceProjectView as L } from "./DNamespaceProject.view.js";
|
|
3
|
+
import { DNamespaceProjectCard as S } from "./DNamespaceProjectCard.js";
|
|
4
|
+
import { DNamespaceProjectList as b } from "./DNamespaceProjectList.js";
|
|
5
5
|
import "react/jsx-runtime";
|
|
6
6
|
import "react";
|
|
7
7
|
import "../../_virtual/compiler-runtime.js";
|
|
8
|
-
import '../../assets/components/card/Card.style.css';import '../../assets/components/badge/Badge.style.css';import '../../assets/components/text/Text.style.css';import '../../assets/components/avatar/Avatar.style.css';import '../../assets/components/flex/Flex.style.css';import '../../assets/components/menu/Menu.style.css';/* empty css */
|
|
8
|
+
import '../../assets/components/spacing/Spacing.style.css';import '../../assets/components/card/Card.style.css';import '../../assets/components/badge/Badge.style.css';import '../../assets/components/text/Text.style.css';import '../../assets/components/avatar/Avatar.style.css';import '../../assets/components/flex/Flex.style.css';import '../../assets/components/menu/Menu.style.css';/* empty css */
|
|
9
9
|
import "merge-props";
|
|
10
10
|
import "@radix-ui/react-dropdown-menu";
|
|
11
11
|
import "../../utils/contextStore.js";
|
|
@@ -17,9 +17,10 @@ import "js-md5";
|
|
|
17
17
|
/* empty css */
|
|
18
18
|
import "@tabler/icons-react";
|
|
19
19
|
/* empty css */
|
|
20
|
+
/* empty css */
|
|
20
21
|
export {
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
22
|
+
S as DNamespaceProjectCard,
|
|
23
|
+
b as DNamespaceProjectList,
|
|
24
|
+
w as DNamespaceProjectReactiveService,
|
|
25
|
+
L as DNamespaceProjectView
|
|
25
26
|
};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { jsxs as r, jsx as e, Fragment as y } from "react/jsx-runtime";
|
|
2
2
|
import g from "react";
|
|
3
3
|
import { Flex as o } from "../flex/Flex.js";
|
|
4
|
-
import { useService as a, useStore as
|
|
4
|
+
import { useService as a, useStore as d } from "../../utils/contextStore.js";
|
|
5
5
|
import "merge-props";
|
|
6
6
|
import { DNamespaceRoleReactiveService as x } from "./DNamespaceRole.service.js";
|
|
7
7
|
import { Text as n } from "../text/Text.js";
|
|
8
8
|
import { Button as u } from "../button/Button.js";
|
|
9
|
-
import { IconFolders as G, IconUsers as H,
|
|
9
|
+
import { IconFolders as G, IconUsers as H, IconEdit as J } from "@tabler/icons-react";
|
|
10
10
|
import { DNamespaceRolePermissions as K } from "./DNamespaceRolePermissions.js";
|
|
11
11
|
import { DNamespaceMemberReactiveService as f } from "../d-member/DNamespaceMember.service.js";
|
|
12
12
|
import "../../_virtual/compiler-runtime.js";
|
|
@@ -15,7 +15,7 @@ import { DUserReactiveService as v } from "../d-user/DUser.service.js";
|
|
|
15
15
|
import '../../assets/components/dialog/Dialog.style.css';import '../../assets/components/form/Input.style.css';import '../../assets/components/menu/Menu.style.css';/* empty css */
|
|
16
16
|
import "@radix-ui/react-dropdown-menu";
|
|
17
17
|
import { Avatar as S } from "../avatar/Avatar.js";
|
|
18
|
-
import { Badge as
|
|
18
|
+
import { Badge as m } from "../badge/Badge.js";
|
|
19
19
|
import p from "../card/CardSection.js";
|
|
20
20
|
import "@radix-ui/react-checkbox";
|
|
21
21
|
/* empty css */
|
|
@@ -42,11 +42,11 @@ const Ce = (w) => {
|
|
|
42
42
|
},
|
|
43
43
|
onProjectsViewMore: N = () => {
|
|
44
44
|
}
|
|
45
|
-
} = w, T = a(x), k =
|
|
45
|
+
} = w, T = a(x), k = d(x), B = a(P), V = d(P), F = a(f), U = d(f), E = a(v), W = d(v), i = g.useMemo(() => T.getById(h), [k, h]), s = g.useMemo(() => B.values({
|
|
46
46
|
namespaceId: i?.namespace?.id
|
|
47
47
|
}).filter((t) => i?.assignedProjects?.nodes?.map((l) => l?.id).includes(t.id)), [V, i]), c = g.useMemo(() => F.values({
|
|
48
48
|
namespaceId: i?.namespace?.id
|
|
49
|
-
}).filter((t) => t.roles?.nodes?.map((l) => l?.id).includes(i?.id)), [U,
|
|
49
|
+
}).filter((t) => t.roles?.nodes?.map((l) => l?.id).includes(i?.id)), [U, W, h]), q = i?.userAbilities?.deleteNamespaceRole || i?.userAbilities?.updateNamespaceRole || i?.userAbilities?.assignRoleAbilities || i?.userAbilities?.assignRoleProjects;
|
|
50
50
|
return /* @__PURE__ */ r(o, { align: "center", style: {
|
|
51
51
|
gap: "1.3rem"
|
|
52
52
|
}, justify: "space-between", children: [
|
|
@@ -74,7 +74,7 @@ const Ce = (w) => {
|
|
|
74
74
|
gap: "0.35rem"
|
|
75
75
|
}, children: [
|
|
76
76
|
/* @__PURE__ */ r(R, { children: [
|
|
77
|
-
/* @__PURE__ */ e(A, { asChild: !0, children: /* @__PURE__ */ r(
|
|
77
|
+
/* @__PURE__ */ e(A, { asChild: !0, children: /* @__PURE__ */ r(m, { border: !0, style: {
|
|
78
78
|
verticalAlign: "middle"
|
|
79
79
|
}, children: [
|
|
80
80
|
/* @__PURE__ */ e(G, { size: 16 }),
|
|
@@ -102,14 +102,14 @@ const Ce = (w) => {
|
|
|
102
102
|
] }) }, t.id)),
|
|
103
103
|
i && s.slice(1, s.length).length > 0 ? /* @__PURE__ */ e(p, { border: !0, display: "flex", p: 0.35, justify: "center", hover: !0, children: /* @__PURE__ */ r(u, { paddingSize: "xxs", variant: "none", onClick: () => N(i), children: [
|
|
104
104
|
/* @__PURE__ */ e(n, { size: "xs", children: "View more" }),
|
|
105
|
-
/* @__PURE__ */ e(
|
|
105
|
+
/* @__PURE__ */ e(m, { border: !0, children: s.slice(1, s.length).length })
|
|
106
106
|
] }) }) : null
|
|
107
107
|
] })
|
|
108
108
|
] }) : null
|
|
109
109
|
] }) })
|
|
110
110
|
] }),
|
|
111
111
|
/* @__PURE__ */ r(R, { children: [
|
|
112
|
-
/* @__PURE__ */ e(A, { asChild: !0, children: /* @__PURE__ */ r(
|
|
112
|
+
/* @__PURE__ */ e(A, { asChild: !0, children: /* @__PURE__ */ r(m, { border: !0, style: {
|
|
113
113
|
verticalAlign: "middle"
|
|
114
114
|
}, children: [
|
|
115
115
|
/* @__PURE__ */ e(H, { size: 16 }),
|
|
@@ -124,7 +124,7 @@ const Ce = (w) => {
|
|
|
124
124
|
borderWidth: "2px"
|
|
125
125
|
}, children: [
|
|
126
126
|
c.slice(0, 1).map((t) => {
|
|
127
|
-
const l =
|
|
127
|
+
const l = E.getById(t.user?.id);
|
|
128
128
|
return /* @__PURE__ */ e(p, { border: !0, children: /* @__PURE__ */ r(o, { align: "center", style: {
|
|
129
129
|
gap: "0.7rem"
|
|
130
130
|
}, children: [
|
|
@@ -143,7 +143,7 @@ const Ce = (w) => {
|
|
|
143
143
|
}),
|
|
144
144
|
i && c.slice(1, c.length).length > 0 ? /* @__PURE__ */ e(p, { border: !0, display: "flex", p: 0.35, justify: "center", hover: !0, children: /* @__PURE__ */ r(u, { paddingSize: "xxs", variant: "none", onClick: () => M(i), children: [
|
|
145
145
|
/* @__PURE__ */ e(n, { size: "xs", children: "View more" }),
|
|
146
|
-
/* @__PURE__ */ e(
|
|
146
|
+
/* @__PURE__ */ e(m, { border: !0, children: c.length - 1 })
|
|
147
147
|
] }) }) : null
|
|
148
148
|
] })
|
|
149
149
|
] }) : null
|
|
@@ -151,7 +151,7 @@ const Ce = (w) => {
|
|
|
151
151
|
] })
|
|
152
152
|
] })
|
|
153
153
|
] }),
|
|
154
|
-
q && /* @__PURE__ */ e(u, { color: "secondary", onClick: (t) => {
|
|
154
|
+
q && /* @__PURE__ */ e(u, { color: "secondary", variant: "filled", onClick: (t) => {
|
|
155
155
|
t.stopPropagation(), I(i);
|
|
156
156
|
}, children: /* @__PURE__ */ e(J, { size: 16 }) })
|
|
157
157
|
] })
|
|
@@ -2,19 +2,19 @@ import { jsxs as t, jsx as e } from "react/jsx-runtime";
|
|
|
2
2
|
import h from "react";
|
|
3
3
|
import { Text as n } from "../text/Text.js";
|
|
4
4
|
import { Flex as i } from "../flex/Flex.js";
|
|
5
|
-
import {
|
|
6
|
-
import { Button as
|
|
7
|
-
import { useService as
|
|
5
|
+
import { IconEdit as y } from "@tabler/icons-react";
|
|
6
|
+
import { Button as f } from "../button/Button.js";
|
|
7
|
+
import { useService as g, useStore as C } from "../../utils/contextStore.js";
|
|
8
8
|
import "merge-props";
|
|
9
|
-
import { DRuntimeReactiveService as
|
|
10
|
-
import { Badge as
|
|
11
|
-
const
|
|
9
|
+
import { DRuntimeReactiveService as l } from "./DRuntime.service.js";
|
|
10
|
+
import { Badge as s } from "../badge/Badge.js";
|
|
11
|
+
const T = (m) => {
|
|
12
12
|
const {
|
|
13
13
|
runtimeId: o,
|
|
14
14
|
minimized: c = !1,
|
|
15
15
|
onSetting: a = () => {
|
|
16
16
|
}
|
|
17
|
-
} = m,
|
|
17
|
+
} = m, d = g(l), p = C(l), r = h.useMemo(() => d.getById(o), [p, o]);
|
|
18
18
|
return /* @__PURE__ */ t(i, { justify: "space-between", align: "center", style: {
|
|
19
19
|
gap: "1.3rem"
|
|
20
20
|
}, children: [
|
|
@@ -33,13 +33,13 @@ const v = (m) => {
|
|
|
33
33
|
/* @__PURE__ */ e(i, { align: "center", style: {
|
|
34
34
|
gap: "0.35rem",
|
|
35
35
|
flexWrap: "wrap"
|
|
36
|
-
}, children: r?.status === "CONNECTED" ? /* @__PURE__ */ e(
|
|
37
|
-
!c && (r?.userAbilities?.deleteRuntime || r?.userAbilities?.updateRuntime || r?.userAbilities?.rotateRuntimeToken) ? /* @__PURE__ */ e(
|
|
36
|
+
}, children: r?.status === "CONNECTED" ? /* @__PURE__ */ e(s, { color: "success", children: "CONNECTED" }) : /* @__PURE__ */ e(s, { color: "error", children: "DISCONNECTED" }) }),
|
|
37
|
+
!c && (r?.userAbilities?.deleteRuntime || r?.userAbilities?.updateRuntime || r?.userAbilities?.rotateRuntimeToken) ? /* @__PURE__ */ e(f, { color: "secondary", variant: "filled", onClick: (u) => {
|
|
38
38
|
u.stopPropagation(), a(r);
|
|
39
39
|
}, children: /* @__PURE__ */ e(y, { size: 16 }) }) : null
|
|
40
40
|
] })
|
|
41
41
|
] });
|
|
42
42
|
};
|
|
43
43
|
export {
|
|
44
|
-
|
|
44
|
+
T as DRuntimeContent
|
|
45
45
|
};
|
|
@@ -43,24 +43,24 @@ const Z = (D) => {
|
|
|
43
43
|
i,
|
|
44
44
|
l
|
|
45
45
|
] }), e[12] = i, e[13] = l, e[14] = s) : s = e[14];
|
|
46
|
-
let m;
|
|
47
|
-
e[15] !== r.email ? (m = /* @__PURE__ */ d(R, { size: "sm", hierarchy: "tertiary", children: r.email }), e[15] = r.email, e[16] = m) : m = e[16];
|
|
48
46
|
let n;
|
|
49
|
-
e[
|
|
47
|
+
e[15] !== r.email ? (n = /* @__PURE__ */ d(R, { size: "sm", hierarchy: "tertiary", children: r.email }), e[15] = r.email, e[16] = n) : n = e[16];
|
|
48
|
+
let m;
|
|
49
|
+
e[17] !== s || e[18] !== n ? (m = /* @__PURE__ */ p(u, { style: g, children: [
|
|
50
50
|
s,
|
|
51
|
-
|
|
52
|
-
] }), e[17] = s, e[18] =
|
|
51
|
+
n
|
|
52
|
+
] }), e[17] = s, e[18] = n, e[19] = m) : m = e[19];
|
|
53
53
|
let o;
|
|
54
|
-
e[20] !==
|
|
54
|
+
e[20] !== m || e[21] !== t ? (o = /* @__PURE__ */ p(u, { style: y, align: "center", children: [
|
|
55
55
|
t,
|
|
56
|
-
|
|
57
|
-
] }), e[20] =
|
|
56
|
+
m
|
|
57
|
+
] }), e[20] = m, e[21] = t, e[22] = o) : o = e[22];
|
|
58
58
|
let S;
|
|
59
59
|
e[23] === Symbol.for("react.memo_cache_sentinel") ? (S = {
|
|
60
60
|
gap: "1.3rem"
|
|
61
61
|
}, e[23] = S) : S = e[23];
|
|
62
62
|
let c;
|
|
63
|
-
e[24] !== r.emailVerifiedAt ? (c = r?.emailVerifiedAt ? /* @__PURE__ */ p(C, {
|
|
63
|
+
e[24] !== r.emailVerifiedAt ? (c = r?.emailVerifiedAt ? /* @__PURE__ */ p(C, { border: !0, children: [
|
|
64
64
|
/* @__PURE__ */ d(M, { size: 16 }),
|
|
65
65
|
/* @__PURE__ */ d(R, { size: "xs", hierarchy: "tertiary", children: "Email verified" })
|
|
66
66
|
] }) : null, e[24] = r.emailVerifiedAt, e[25] = c) : c = e[25];
|