@abpjs/ui 0.2.0-next.13 → 0.2.0-next.14

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/guard.js ADDED
@@ -0,0 +1,3072 @@
1
+ "use client";
2
+
3
+ // src/areas/guard/AccountEmailsPanel.tsx
4
+ import { useState } from "react";
5
+ import { HStack, Input, Stack, Text } from "@chakra-ui/react";
6
+ import { Button, DataTable, InlineAlert, notify, Panel, StatusPill, useApiAction, useAreaRequest, useFormatters } from "@abpjs/ui";
7
+
8
+ // src/areas/guard/texts.ts
9
+ import { Fragment, createElement, useCallback } from "react";
10
+ import { createAreaTexts } from "@abpjs/ui";
11
+
12
+ // src/areas/guard/texts/ar.json
13
+ var ar_default = {
14
+ "directories.title": "\u0627\u0644\u0623\u062F\u0644\u0629",
15
+ "directories.subtitle": "\u0623\u062F\u0644\u0629 \u0627\u0644\u0645\u0633\u062A\u062E\u062F\u0645\u064A\u0646 \u0645\u0631\u062A\u0628\u0629 \u062D\u0633\u0628 \u0627\u0644\u0623\u0633\u0628\u0642\u064A\u0629. \u0625\u0630\u0627 \u0639\u0631\u0641 \u062F\u0644\u064A\u0644\u0627\u0646 \u0627\u0633\u0645 \u0627\u0644\u0645\u0633\u062A\u062E\u062F\u0645 \u0646\u0641\u0633\u0647\u060C \u0641\u0647\u0648 \u0644\u0623\u0648\u0644 \u062F\u0644\u064A\u0644 \u0646\u0634\u0637 \u0645\u0646\u0647\u0645\u0627.",
16
+ "directories.add": "\u0625\u0636\u0627\u0641\u0629 \u062F\u0644\u064A\u0644",
17
+ "directories.empty": "\u0644\u0627 \u062A\u0648\u062C\u062F \u0623\u062F\u0644\u0629.",
18
+ "directories.signIn": "\u062A\u0633\u062C\u064A\u0644 \u0627\u0644\u062F\u062E\u0648\u0644",
19
+ "directories.lastSync": "\u0622\u062E\u0631 \u0645\u0632\u0627\u0645\u0646\u0629",
20
+ "directories.syncNow": "\u0645\u0632\u0627\u0645\u0646\u0629 \u0627\u0644\u0622\u0646",
21
+ "directories.moveUp": "\u0646\u0642\u0644 {name} \u0625\u0644\u0649 \u0627\u0644\u0623\u0639\u0644\u0649",
22
+ "directories.moveDown": "\u0646\u0642\u0644 {name} \u0625\u0644\u0649 \u0627\u0644\u0623\u0633\u0641\u0644",
23
+ "directories.connectorDisabled": "\u0625\u0636\u0627\u0641\u0629 \u0627\u0644\u0645\u0648\u0635\u0644 \u0645\u0639\u0637\u0651\u0644\u0629",
24
+ "directories.pluginDisabledHint": "\u0627\u0644\u0625\u0636\u0627\u0641\u0629 {plugin} \u0645\u0639\u0637\u0651\u0644\u0629",
25
+ "directories.synced": "\u062A\u0645\u062A \u0645\u0632\u0627\u0645\u0646\u0629 {name}: \u0623\u064F\u0636\u064A\u0641 {added}\u060C \u0648\u062D\u064F\u062F\u0651\u062B {updated}\u060C \u0648\u0639\u064F\u0637\u0651\u0644 {deactivated}\u060C \u0648{groups} \u0645\u062C\u0645\u0648\u0639\u0629\u060C \u0648{memberships} \u0639\u0636\u0648\u064A\u0629.",
26
+ "directories.syncFailed": "\u0641\u0634\u0644\u062A \u0645\u0632\u0627\u0645\u0646\u0629 {name}: {error}",
27
+ "directories.internalType": "\u062F\u0627\u062E\u0644\u064A (\u064A\u062D\u0641\u0638\u0647 {product})",
28
+ "directories.warnings": "{count, plural, one {\u062A\u062D\u0630\u064A\u0631} two {\u062A\u062D\u0630\u064A\u0631\u0627\u0646} few {# \u062A\u062D\u0630\u064A\u0631\u0627\u062A} many {# \u062A\u062D\u0630\u064A\u0631\u064B\u0627} other {# \u062A\u062D\u0630\u064A\u0631}}",
29
+ "directories.addedWithWarnings": "\u0623\u064F\u0636\u064A\u0641 {name}. \u0641\u064A \u0625\u0639\u062F\u0627\u062F\u0627\u062A\u0647 \u062A\u062D\u0630\u064A\u0631\u0627\u062A:",
30
+ "directoryDetail.notFound": "\u0627\u0644\u062F\u0644\u064A\u0644 \u063A\u064A\u0631 \u0645\u0648\u062C\u0648\u062F",
31
+ "directoryDetail.back": "\u0627\u0644\u0639\u0648\u062F\u0629 \u0625\u0644\u0649 \u0627\u0644\u0623\u062F\u0644\u0629",
32
+ "directoryDetail.order": "\u0627\u0644\u062A\u0631\u062A\u064A\u0628 {order}",
33
+ "directoryDetail.signInEnabled": "\u062A\u0633\u062C\u064A\u0644 \u0627\u0644\u062F\u062E\u0648\u0644 \u0645\u0641\u0639\u0651\u0644",
34
+ "directoryDetail.signInDisabled": "\u062A\u0633\u062C\u064A\u0644 \u0627\u0644\u062F\u062E\u0648\u0644 \u0645\u0639\u0637\u0651\u0644",
35
+ "directoryDetail.connectorDisabled": "\u0625\u0636\u0627\u0641\u0629 \u0627\u0644\u0645\u0648\u0635\u0644 \u0645\u0639\u0637\u0651\u0644\u0629",
36
+ "directoryDetail.testConnection": "\u0627\u062E\u062A\u0628\u0627\u0631 \u0627\u0644\u0627\u062A\u0635\u0627\u0644",
37
+ "directoryDetail.syncNow": "\u0645\u0632\u0627\u0645\u0646\u0629 \u0627\u0644\u0622\u0646",
38
+ "directoryDetail.connectionSucceeded": "\u0646\u062C\u062D \u0627\u0644\u0627\u062A\u0635\u0627\u0644.",
39
+ "directoryDetail.connectionFailed": "\u0641\u0634\u0644 \u0627\u0644\u0627\u062A\u0635\u0627\u0644.",
40
+ "directoryDetail.found": "(\u0639\u064F\u062B\u0631 \u0639\u0644\u0649 {users} \u0645\u0633\u062A\u062E\u062F\u0645 \u0648{groups} \u0645\u062C\u0645\u0648\u0639\u0629)",
41
+ "directoryDetail.syncCompleted": "\u0627\u0643\u062A\u0645\u0644\u062A \u0627\u0644\u0645\u0632\u0627\u0645\u0646\u0629.",
42
+ "directoryDetail.syncFailed": "\u0641\u0634\u0644\u062A \u0627\u0644\u0645\u0632\u0627\u0645\u0646\u0629: {error}",
43
+ "directoryDetail.deleteTitle": "\u062D\u0630\u0641 \u0627\u0644\u062F\u0644\u064A\u0644 \xAB{name}\xBB\u061F",
44
+ "directoryDetail.deleteDescription": "\u0633\u062A\u064F\u062D\u0630\u0641 \u0627\u0644\u062D\u0633\u0627\u0628\u0627\u062A \u0648\u0627\u0644\u0645\u062C\u0645\u0648\u0639\u0627\u062A \u0627\u0644\u062A\u064A \u062C\u0631\u062A \u0645\u0632\u0627\u0645\u0646\u062A\u0647\u0627 \u0645\u0646\u0647.",
45
+ "directoryDetail.settings": "\u0627\u0644\u0625\u0639\u062F\u0627\u062F\u0627\u062A",
46
+ "directoryDetail.saved": "\u062A\u0645 \u0627\u0644\u062D\u0641\u0638.",
47
+ "directoryDetail.summary": "\u0627\u0644\u0645\u0644\u062E\u0635",
48
+ "directoryDetail.syncInterval": "\u0641\u062A\u0631\u0629 \u0627\u0644\u0645\u0632\u0627\u0645\u0646\u0629",
49
+ "directoryDetail.minutes": "{count, plural, zero {# \u062F\u0642\u064A\u0642\u0629} one {\u062F\u0642\u064A\u0642\u0629 \u0648\u0627\u062D\u062F\u0629} two {\u062F\u0642\u064A\u0642\u062A\u0627\u0646} few {# \u062F\u0642\u0627\u0626\u0642} many {# \u062F\u0642\u064A\u0642\u0629} other {# \u062F\u0642\u064A\u0642\u0629}}",
50
+ "directoryDetail.onDemand": "\u0639\u0646\u062F \u0627\u0644\u0637\u0644\u0628",
51
+ "directoryDetail.plugin": "\u0627\u0644\u0625\u0636\u0627\u0641\u0629",
52
+ "directoryDetail.builtIn": "\u0645\u062F\u0645\u062C",
53
+ "directoryDetail.lastSync": "\u0622\u062E\u0631 \u0645\u0632\u0627\u0645\u0646\u0629",
54
+ "directoryDetail.testLogin": "\u0627\u062E\u062A\u0628\u0627\u0631 \u062A\u0633\u062C\u064A\u0644 \u0627\u0644\u062F\u062E\u0648\u0644",
55
+ "directoryDetail.testLoginHint": "\u064A\u062A\u062D\u0642\u0642 \u0645\u0646 \u0643\u0644 \u062E\u0637\u0648\u0629 \u0645\u0646 \u062E\u0637\u0648\u0627\u062A \u062A\u0633\u062C\u064A\u0644 \u0627\u0644\u062F\u062E\u0648\u0644 \u0639\u0628\u0631 \u0647\u0630\u0627 \u0627\u0644\u062F\u0644\u064A\u0644.",
56
+ "directoryDetail.runTest": "\u062A\u0634\u063A\u064A\u0644 \u0627\u0644\u0627\u062E\u062A\u0628\u0627\u0631",
57
+ "directoryDetail.testSteps": "\u062E\u0637\u0648\u0627\u062A \u0627\u062E\u062A\u0628\u0627\u0631 \u062A\u0633\u062C\u064A\u0644 \u0627\u0644\u062F\u062E\u0648\u0644",
58
+ "directoryDetail.steps.Connection": "\u0627\u0644\u0627\u062A\u0635\u0627\u0644 \u0628\u0627\u0644\u062F\u0644\u064A\u0644",
59
+ "directoryDetail.steps.FindUser": "\u0627\u0644\u0639\u062B\u0648\u0631 \u0639\u0644\u0649 \u0627\u0644\u0645\u0633\u062A\u062E\u062F\u0645",
60
+ "directoryDetail.steps.Authenticate": "\u0627\u0644\u062A\u062D\u0642\u0642 \u0645\u0646 \u0643\u0644\u0645\u0629 \u0627\u0644\u0645\u0631\u0648\u0631",
61
+ "directoryDetail.steps.Precedence": "\u0627\u0644\u062F\u0644\u064A\u0644 \u064A\u0645\u0644\u0643 \u0627\u0633\u0645 \u0627\u0644\u0645\u0633\u062A\u062E\u062F\u0645 (\u0627\u0644\u0623\u0633\u0628\u0642\u064A\u0629)",
62
+ "directoryDetail.syncRuns": "\u0639\u0645\u0644\u064A\u0627\u062A \u0627\u0644\u0645\u0632\u0627\u0645\u0646\u0629",
63
+ "directoryDetail.noRuns": "\u0644\u0627 \u062A\u0648\u062C\u062F \u0639\u0645\u0644\u064A\u0627\u062A \u0645\u0632\u0627\u0645\u0646\u0629 \u0628\u0639\u062F.",
64
+ "directoryDetail.started": "\u0627\u0644\u0628\u062F\u0621",
65
+ "directoryDetail.finished": "\u0627\u0644\u0627\u0646\u062A\u0647\u0627\u0621",
66
+ "directoryDetail.result": "\u0627\u0644\u0646\u062A\u064A\u062C\u0629",
67
+ "directoryDetail.added": "\u0627\u0644\u0645\u064F\u0636\u0627\u0641",
68
+ "directoryDetail.updated": "\u0627\u0644\u0645\u064F\u062D\u062F\u064E\u0651\u062B",
69
+ "directoryDetail.deactivated": "\u0627\u0644\u0645\u064F\u0639\u0637\u064E\u0651\u0644",
70
+ "directoryDetail.memberships": "\u0627\u0644\u0639\u0636\u0648\u064A\u0627\u062A",
71
+ "directoryDetail.error": "\u0627\u0644\u062E\u0637\u0623",
72
+ "directoryDetail.warningsTitle": "\u0641\u064A \u0625\u0639\u062F\u0627\u062F\u0627\u062A\u0647 \u062A\u062D\u0630\u064A\u0631\u0627\u062A",
73
+ "directoryForm.name": "\u0627\u0644\u0627\u0633\u0645",
74
+ "directoryForm.type": "\u0627\u0644\u0646\u0648\u0639",
75
+ "directoryForm.selectType": "\u0627\u062E\u062A\u0631 \u0646\u0648\u0639\u064B\u0627",
76
+ "directoryForm.typeFromPlugin": "{name} (\u0627\u0644\u0625\u0636\u0627\u0641\u0629 {plugin})",
77
+ "directoryForm.syncInterval": "\u0641\u062A\u0631\u0629 \u0627\u0644\u0645\u0632\u0627\u0645\u0646\u0629 (\u0628\u0627\u0644\u062F\u0642\u0627\u0626\u0642)",
78
+ "directoryForm.syncIntervalHint": "\u0627\u062A\u0631\u0643\u0647 \u0641\u0627\u0631\u063A\u064B\u0627 \u0644\u0644\u0645\u0632\u0627\u0645\u0646\u0629 \u0639\u0646\u062F \u0627\u0644\u0637\u0644\u0628 \u0641\u0642\u0637.",
79
+ "directoryForm.active": "\u0646\u0634\u0637",
80
+ "directoryForm.signInEnabled": "\u062A\u0633\u062C\u064A\u0644 \u0627\u0644\u062F\u062E\u0648\u0644 \u0645\u0641\u0639\u0651\u0644",
81
+ "directoryForm.capabilities": "\u0627\u0644\u0642\u062F\u0631\u0627\u062A: {list}",
82
+ "directoryForm.connectionSettings": "\u0625\u0639\u062F\u0627\u062F\u0627\u062A \u0627\u0644\u0627\u062A\u0635\u0627\u0644",
83
+ "directoryForm.fillFromPreset": "\u062A\u0639\u0628\u0626\u0629 \u0645\u0646 \u0625\u0639\u062F\u0627\u062F \u062C\u0627\u0647\u0632",
84
+ "directoryForm.choosePreset": "\u0627\u062E\u062A\u0631 \u0625\u0639\u062F\u0627\u062F\u064B\u0627 \u062C\u0627\u0647\u0632\u064B\u0627",
85
+ "directoryForm.loadingPresets": "\u062C\u0627\u0631\u064D \u062A\u062D\u0645\u064A\u0644 \u0627\u0644\u0625\u0639\u062F\u0627\u062F\u0627\u062A \u0627\u0644\u062C\u0627\u0647\u0632\u0629",
86
+ "directoryForm.presetsUnavailable": "\u0627\u0644\u0625\u0639\u062F\u0627\u062F\u0627\u062A \u0627\u0644\u062C\u0627\u0647\u0632\u0629 \u063A\u064A\u0631 \u0645\u062A\u0627\u062D\u0629: {error}",
87
+ "directoryForm.keepSecret": "\u0627\u062A\u0631\u0643\u0647 \u0641\u0627\u0631\u063A\u064B\u0627 \u0644\u0644\u0625\u0628\u0642\u0627\u0621 \u0639\u0644\u0649 \u0627\u0644\u0642\u064A\u0645\u0629 \u0627\u0644\u0645\u062D\u0641\u0648\u0638\u0629",
88
+ "directoryForm.create": "\u0625\u0646\u0634\u0627\u0621 \u0627\u0644\u062F\u0644\u064A\u0644",
89
+ "directoryForm.save": "\u062D\u0641\u0638 \u0627\u0644\u062A\u063A\u064A\u064A\u0631\u0627\u062A",
90
+ "accounts.title": "\u0627\u0644\u062D\u0633\u0627\u0628\u0627\u062A",
91
+ "accounts.subtitle": "\u0627\u0644\u062D\u0633\u0627\u0628\u0627\u062A \u0627\u0644\u0645\u0633\u0645\u0648\u062D \u0644\u0643 \u0628\u0631\u0624\u064A\u062A\u0647\u0627. \u062A\u062D\u062F\u062F \u0635\u0644\u0627\u062D\u064A\u0627\u062A\u0643 \u0627\u0644\u0623\u062F\u0644\u0629 \u0627\u0644\u0645\u0634\u0645\u0648\u0644\u0629.",
92
+ "accounts.create": "\u0625\u0646\u0634\u0627\u0621 \u062D\u0633\u0627\u0628 \u062F\u0627\u062E\u0644\u064A",
93
+ "accounts.createTitle": "\u0625\u0646\u0634\u0627\u0621 \u062D\u0633\u0627\u0628 \u062F\u0627\u062E\u0644\u064A",
94
+ "accounts.createHint": "\u062A\u064F\u062D\u0641\u0638 \u0627\u0644\u062D\u0633\u0627\u0628\u0627\u062A \u0627\u0644\u062F\u0627\u062E\u0644\u064A\u0629 \u0641\u064A \u062F\u0644\u064A\u0644 {product} \u0648\u062A\u0633\u062C\u0651\u0644 \u0627\u0644\u062F\u062E\u0648\u0644 \u0628\u0643\u0644\u0645\u0629 \u0645\u0631\u0648\u0631.",
95
+ "accounts.createSubmit": "\u0625\u0646\u0634\u0627\u0621 \u0627\u0644\u062D\u0633\u0627\u0628",
96
+ "accounts.created": "\u062A\u0645 \u0625\u0646\u0634\u0627\u0621 \u0627\u0644\u062D\u0633\u0627\u0628 {username}.",
97
+ "accounts.search": "\u0627\u0644\u0628\u062D\u062B \u0641\u064A \u0627\u0644\u062D\u0633\u0627\u0628\u0627\u062A",
98
+ "accounts.searchPlaceholder": "\u0627\u0628\u062D\u062B \u0628\u0627\u0633\u0645 \u0627\u0644\u0645\u0633\u062A\u062E\u062F\u0645 \u0623\u0648 \u0627\u0644\u0627\u0633\u0645 \u0623\u0648 \u0627\u0644\u0628\u0631\u064A\u062F",
99
+ "accounts.allStatuses": "\u0643\u0644 \u0627\u0644\u062D\u0627\u0644\u0627\u062A",
100
+ "accounts.empty": "\u0644\u0627 \u062A\u0648\u062C\u062F \u062D\u0633\u0627\u0628\u0627\u062A \u0645\u0637\u0627\u0628\u0642\u0629.",
101
+ "accountDetail.account": "\u0627\u0644\u062D\u0633\u0627\u0628",
102
+ "accountDetail.owningDirectory": "\u0627\u0644\u062F\u0644\u064A\u0644 \u0627\u0644\u0645\u0627\u0644\u0643",
103
+ "accountDetail.lock": "\u0642\u0641\u0644",
104
+ "accountDetail.unlock": "\u0625\u0644\u063A\u0627\u0621 \u0627\u0644\u0642\u0641\u0644",
105
+ "accountDetail.identities": "\u0627\u0644\u0647\u0648\u064A\u0627\u062A ({count})",
106
+ "accountDetail.identitiesHint": "\u0635\u0641 \u0644\u0643\u0644 \u062F\u0644\u064A\u0644 \u064A\u0639\u0631\u0641 \u0627\u0633\u0645 \u0627\u0644\u0645\u0633\u062A\u062E\u062F\u0645 \u0647\u0630\u0627. \u064A\u0641\u0648\u0632 \u0623\u0648\u0644 \u062F\u0644\u064A\u0644 \u0646\u0634\u0637 \u062D\u0633\u0628 \u062A\u0631\u062A\u064A\u0628 \u0627\u0644\u0623\u0633\u0628\u0642\u064A\u0629\u060C \u0648\u062A\u064F\u062D\u062C\u0628 \u0627\u0644\u0628\u0642\u064A\u0629.",
107
+ "accountDetail.noIdentities": "\u0644\u0627 \u062A\u0648\u062C\u062F \u0647\u0648\u064A\u0627\u062A \u0641\u064A \u0627\u0644\u0623\u062F\u0644\u0629.",
108
+ "accountDetail.externalId": "\u0627\u0644\u0645\u0639\u0631\u0651\u0641 \u0627\u0644\u062E\u0627\u0631\u062C\u064A",
109
+ "accountDetail.lastSynced": "\u0622\u062E\u0631 \u0645\u0632\u0627\u0645\u0646\u0629",
110
+ "accountDetail.precedence": "\u0627\u0644\u0623\u0633\u0628\u0642\u064A\u0629",
111
+ "accountDetail.winning": "\u0627\u0644\u0641\u0627\u0626\u0632",
112
+ "accountDetail.shadowed": "\u0645\u062D\u062C\u0648\u0628",
113
+ "accountDetail.effectiveGroups": "\u0627\u0644\u0645\u062C\u0645\u0648\u0639\u0627\u062A \u0627\u0644\u0641\u0639\u0644\u064A\u0629 ({count})",
114
+ "accountDetail.noGroups": "\u0644\u064A\u0633 \u0639\u0636\u0648\u064B\u0627 \u0641\u064A \u0623\u064A \u0645\u062C\u0645\u0648\u0639\u0629.",
115
+ "accountDetail.secondFactor.title": "\u0627\u0644\u062A\u062D\u0642\u0642 \u0628\u062E\u0637\u0648\u062A\u064A\u0646",
116
+ "accountDetail.secondFactor.asked": "\u064A\u064F\u0637\u0644\u0628 \u0639\u0646\u062F \u062A\u0633\u062C\u064A\u0644 \u0627\u0644\u062F\u062E\u0648\u0644",
117
+ "accountDetail.secondFactor.notAsked": "\u0644\u0627 \u064A\u064F\u0637\u0644\u0628",
118
+ "accountDetail.secondFactor.mode": "\u0645\u0646 \u0645\u062C\u0645\u0648\u0639\u0627\u062A\u0647",
119
+ "accountDetail.secondFactor.factors": "\u0645\u0627 \u0623\u064F\u0639\u062F\u0651",
120
+ "accountDetail.secondFactor.none": "\u0644\u0645 \u064A\u064F\u0639\u062F\u0651 \u0634\u064A\u0621",
121
+ "accountDetail.secondFactor.recoveryLeft": "\u0631\u0645\u0648\u0632 \u0627\u0644\u0627\u0633\u062A\u0631\u062F\u0627\u062F \u0627\u0644\u0645\u062A\u0628\u0642\u064A\u0629",
122
+ "accountDetail.secondFactor.reset": "\u0625\u0639\u0627\u062F\u0629 \u062A\u0639\u064A\u064A\u0646 \u0627\u0644\u062A\u062D\u0642\u0642 \u0628\u062E\u0637\u0648\u062A\u064A\u0646",
123
+ "accountDetail.secondFactor.resetTitle": "\u0625\u0639\u0627\u062F\u0629 \u062A\u0639\u064A\u064A\u0646 \u0627\u0644\u062A\u062D\u0642\u0642 \u0628\u062E\u0637\u0648\u062A\u064A\u0646 \u0644\u0640 {name}\u061F",
124
+ "accountDetail.secondFactor.resetHint": "\u062A\u062A\u0648\u0642\u0641 \u062A\u0637\u0628\u064A\u0642\u0627\u062A \u0627\u0644\u0645\u0635\u0627\u062F\u0642\u0629 \u0648\u0631\u0645\u0648\u0632 \u0627\u0644\u0627\u0633\u062A\u0631\u062F\u0627\u062F \u0627\u0644\u062E\u0627\u0635\u0629 \u0628\u0647 \u0639\u0646 \u0627\u0644\u0639\u0645\u0644. \u0625\u0646 \u0643\u0627\u0646\u062A \u0625\u062D\u062F\u0649 \u0645\u062C\u0645\u0648\u0639\u0627\u062A\u0647 \u062A\u0634\u062A\u0631\u0637 \u0639\u0627\u0645\u0644\u064B\u0627 \u062B\u0627\u0646\u064A\u064B\u0627\u060C \u0641\u0633\u064A\u0639\u062F\u0651 \u0648\u0627\u062D\u062F\u064B\u0627 \u0645\u0646 \u062C\u062F\u064A\u062F \u0639\u0646\u062F \u062A\u0633\u062C\u064A\u0644 \u062F\u062E\u0648\u0644\u0647 \u0627\u0644\u062A\u0627\u0644\u064A. \u0644\u0627 \u062A\u0641\u0639\u0644 \u0630\u0644\u0643 \u0625\u0644\u0627 \u0628\u0639\u062F \u0627\u0644\u062A\u0623\u0643\u062F \u0645\u0646 \u0623\u0646\u0647 \u0647\u0648 \u0645\u0646 \u064A\u0637\u0644\u0628.",
125
+ "accountDetail.secondFactor.resetDone": "\u0623\u064F\u0639\u064A\u062F \u062A\u0639\u064A\u064A\u0646 \u0627\u0644\u062A\u062D\u0642\u0642 \u0628\u062E\u0637\u0648\u062A\u064A\u0646.",
126
+ "accountName.change": "\u062A\u063A\u064A\u064A\u0631",
127
+ "accountName.label": "\u0627\u0644\u0627\u0633\u0645 \u0627\u0644\u0645\u0639\u0631\u0648\u0636",
128
+ "accountName.save": "\u0627\u062D\u0641\u0638 \u0627\u0644\u0627\u0633\u0645",
129
+ "accountName.cancel": "\u0625\u0644\u063A\u0627\u0621",
130
+ "accountName.saved": "\u0623\u0635\u0628\u062D \u0627\u0644\u0627\u0633\u0645 {name}\u060C \u0623\u064A\u0646\u0645\u0627 \u0638\u0647\u0631.",
131
+ "accountName.languagesHint": "\u0627\u0643\u062A\u0628 \u0627\u0633\u0645\u0643 \u0628\u0643\u0644 \u0644\u063A\u0629 \u0645\u0646 \u0644\u063A\u0627\u062A \u0627\u0644\u0645\u0648\u0642\u0639: \u064A\u0631\u0627\u0647 \u0645\u0646 \u064A\u0642\u0631\u0623 \u0628\u062A\u0644\u0643 \u0627\u0644\u0644\u063A\u0629. \u0648\u064A\u0628\u0642\u0649 \u0627\u0644\u0627\u0633\u0645 \u0627\u0644\u0625\u0646\u062C\u0644\u064A\u0632\u064A \u0641\u064A \u0627\u0644\u0633\u062C\u0644.",
132
+ "groups.title": "\u0627\u0644\u0645\u062C\u0645\u0648\u0639\u0627\u062A",
133
+ "groups.subtitle": "\u062A\u064F\u0646\u0634\u0623 \u0627\u0644\u0645\u062C\u0645\u0648\u0639\u0627\u062A \u0627\u0644\u0645\u062D\u0644\u064A\u0629 \u0641\u064A {product}\u060C \u0648\u062A\u0623\u062A\u064A \u0627\u0644\u0645\u062C\u0645\u0648\u0639\u0627\u062A \u0627\u0644\u0645\u062A\u0632\u0627\u0645\u0646\u0629 \u0645\u0646 \u062F\u0644\u064A\u0644. \u064A\u0645\u0643\u0646 \u0623\u0646 \u062A\u062D\u062A\u0648\u064A \u0627\u0644\u0645\u062C\u0645\u0648\u0639\u0629 \u0639\u0644\u0649 \u0645\u062C\u0645\u0648\u0639\u0627\u062A \u0623\u062E\u0631\u0649.",
134
+ "groups.create": "\u0625\u0646\u0634\u0627\u0621 \u0645\u062C\u0645\u0648\u0639\u0629",
135
+ "groups.created": "\u062A\u0645 \u0625\u0646\u0634\u0627\u0621 \u0627\u0644\u0645\u062C\u0645\u0648\u0639\u0629 {name}.",
136
+ "groups.searchPlaceholder": "\u0627\u0644\u0628\u062D\u062B \u0641\u064A \u0627\u0644\u0645\u062C\u0645\u0648\u0639\u0627\u062A",
137
+ "groups.allDirectories": "\u0643\u0644 \u0627\u0644\u0623\u062F\u0644\u0629",
138
+ "groups.empty": "\u0644\u0627 \u062A\u0648\u062C\u062F \u0645\u062C\u0645\u0648\u0639\u0627\u062A \u0645\u0637\u0627\u0628\u0642\u0629.",
139
+ "groups.local": "\u0645\u062D\u0644\u064A\u0629",
140
+ "groups.synced": "\u0645\u062A\u0632\u0627\u0645\u0646\u0629",
141
+ "groups.readOnly": "\u0644\u0644\u0642\u0631\u0627\u0621\u0629 \u0641\u0642\u0637",
142
+ "groups.directMembers": "\u0627\u0644\u0623\u0639\u0636\u0627\u0621 \u0627\u0644\u0645\u0628\u0627\u0634\u0631\u0648\u0646",
143
+ "groups.memberGroups": "\u0627\u0644\u0645\u062C\u0645\u0648\u0639\u0627\u062A \u0627\u0644\u0623\u0639\u0636\u0627\u0621",
144
+ "groups.directoryHint": "\u0627\u0644\u0627\u0641\u062A\u0631\u0627\u0636\u064A \u0647\u0648 \u0627\u0644\u062F\u0644\u064A\u0644 \u0627\u0644\u062F\u0627\u062E\u0644\u064A.",
145
+ "groups.internalDefault": "\u062F\u0627\u062E\u0644\u064A (\u0627\u0641\u062A\u0631\u0627\u0636\u064A)",
146
+ "groups.kind": "\u0627\u0644\u0646\u0648\u0639",
147
+ "groups.kindHint": "\u0627\u0644\u0645\u0624\u0633\u0633\u0629 \u0645\u062C\u0645\u0648\u0639\u0629 \u064A\u0646\u062A\u0645\u064A \u0625\u0644\u064A\u0647\u0627 \u0627\u0644\u0639\u0645\u0644\u0627\u0621\u060C \u064A\u062F\u0648\u064A\u064B\u0627 \u0623\u0648 \u0628\u0646\u0637\u0627\u0642 \u0628\u0631\u064A\u062F\u0647\u0645.",
148
+ "groups.kinds.standard": "\u0645\u062C\u0645\u0648\u0639\u0629",
149
+ "groups.kinds.directory": "\u0643\u0644 \u0645\u0646 \u0641\u064A \u062F\u0644\u064A\u0644",
150
+ "groups.kinds.ou": "\u0648\u062D\u062F\u0629 \u062A\u0646\u0638\u064A\u0645\u064A\u0629",
151
+ "groups.kinds.organization": "\u0645\u0624\u0633\u0633\u0629",
152
+ "groups.domains": "\u0646\u0637\u0627\u0642\u0627\u062A \u0627\u0644\u0628\u0631\u064A\u062F",
153
+ "groups.domainsHint": "\u064A\u0646\u0636\u0645 \u0625\u0644\u064A\u0647\u0627 \u0645\u0646 \u0628\u0631\u064A\u062F\u0647 \u0641\u064A \u0623\u062D\u062F \u0647\u0630\u0647 \u0627\u0644\u0646\u0637\u0627\u0642\u0627\u062A (acme.com). \u0627\u0641\u0635\u0644 \u0628\u064A\u0646\u0647\u0627 \u0628\u0641\u0648\u0627\u0635\u0644.",
154
+ "groupDetail.delete": "\u062D\u0630\u0641 \u0627\u0644\u0645\u062C\u0645\u0648\u0639\u0629",
155
+ "groupDetail.deleteTitle": "\u062D\u0630\u0641 \u0627\u0644\u0645\u062C\u0645\u0648\u0639\u0629 \xAB{name}\xBB\u061F",
156
+ "groupDetail.writable": "\u0642\u0627\u0628\u0644\u0629 \u0644\u0644\u062A\u0639\u062F\u064A\u0644",
157
+ "groupDetail.directMembers": "\u0627\u0644\u0623\u0639\u0636\u0627\u0621 \u0627\u0644\u0645\u0628\u0627\u0634\u0631\u0648\u0646 ({count})",
158
+ "groupDetail.noMembers": "\u0644\u0627 \u064A\u0648\u062C\u062F \u0623\u0639\u0636\u0627\u0621 \u0645\u0628\u0627\u0634\u0631\u0648\u0646.",
159
+ "groupDetail.fromDirectory": "\u0645\u0646 \u0627\u0644\u062F\u0644\u064A\u0644",
160
+ "groupDetail.manual": "\u064A\u062F\u0648\u064A",
161
+ "groupDetail.remove": "\u0625\u0632\u0627\u0644\u0629",
162
+ "groupDetail.memberOf": "\u0639\u0636\u0648 \u0641\u064A ({count})",
163
+ "groupDetail.notNested": "\u0644\u064A\u0633\u062A \u0636\u0645\u0646 \u0623\u064A \u0645\u062C\u0645\u0648\u0639\u0629.",
164
+ "groupDetail.nestedGroups": "\u0627\u0644\u0645\u062C\u0645\u0648\u0639\u0627\u062A \u0627\u0644\u0645\u062A\u062F\u0627\u062E\u0644\u0629",
165
+ "groupDetail.readOnlyNotice": "\u0647\u0630\u0647 \u0627\u0644\u0645\u062C\u0645\u0648\u0639\u0629 \u0644\u0644\u0642\u0631\u0627\u0621\u0629 \u0641\u0642\u0637 \u0641\u064A {product}: \u0623\u0639\u0636\u0627\u0624\u0647\u0627 \u064A\u0623\u062A\u0648\u0646 \u0645\u0646 \u0645\u0632\u0627\u0645\u0646\u0629 \u0627\u0644\u062F\u0644\u064A\u0644.",
166
+ "groupDetail.effectiveMembers": "\u0627\u0644\u0623\u0639\u0636\u0627\u0621 \u0627\u0644\u0641\u0639\u0644\u064A\u0648\u0646 ({count})",
167
+ "groupDetail.noEffectiveMembers": "\u0644\u0627 \u064A\u0635\u0644 \u0623\u064A \u062D\u0633\u0627\u0628 \u0625\u0644\u0649 \u0647\u0630\u0647 \u0627\u0644\u0645\u062C\u0645\u0648\u0639\u0629.",
168
+ "groupDetail.addMember": "\u0625\u0636\u0627\u0641\u0629 \u0639\u0636\u0648",
169
+ "groupDetail.searchMembers": "\u0627\u0628\u062D\u062B \u0639\u0646 \u062D\u0633\u0627\u0628\u0627\u062A \u0623\u0648 \u0645\u062C\u0645\u0648\u0639\u0627\u062A",
170
+ "groupDetail.noMatches": "\u0644\u0627 \u062A\u0648\u062C\u062F \u0646\u062A\u0627\u0626\u062C \u0645\u0637\u0627\u0628\u0642\u0629.",
171
+ "groupDetail.alreadyMember": "\u0639\u0636\u0648 \u0628\u0627\u0644\u0641\u0639\u0644",
172
+ "groupDetail.add": "\u0625\u0636\u0627\u0641\u0629",
173
+ "groupDetail.accountCount": "{count, plural, zero {\u0644\u0627 \u062D\u0633\u0627\u0628\u0627\u062A} one {\u062D\u0633\u0627\u0628 \u0648\u0627\u062D\u062F} two {\u062D\u0633\u0627\u0628\u0627\u0646} few {# \u062D\u0633\u0627\u0628\u0627\u062A} many {# \u062D\u0633\u0627\u0628\u064B\u0627} other {# \u062D\u0633\u0627\u0628}}",
174
+ "groupDetail.expand": "\u062A\u0648\u0633\u064A\u0639 {name}",
175
+ "groupDetail.collapse": "\u0637\u064A\u0651 {name}",
176
+ "groupDetail.cycle": "\u062D\u0644\u0642\u0629",
177
+ "groupDetail.loadingTree": "\u062C\u0627\u0631\u064D \u0627\u0644\u062A\u062D\u0645\u064A\u0644",
178
+ "groupDetail.byDomain": "\u0628\u0646\u0637\u0627\u0642 \u0627\u0644\u0628\u0631\u064A\u062F",
179
+ "groupDetail.fromImport": "\u0645\u0646 \u0627\u0633\u062A\u064A\u0631\u0627\u062F",
180
+ "groupDetail.directoryNotice": "\u064A\u0636\u0639 {product} \u0641\u064A \u0647\u0630\u0647 \u0627\u0644\u0645\u062C\u0645\u0648\u0639\u0629 \u0643\u0644 \u0645\u0646 \u064A\u0623\u062A\u064A \u062D\u0633\u0627\u0628\u0647 \u0645\u0646 \u0647\u0630\u0627 \u0627\u0644\u062F\u0644\u064A\u0644. \u0627\u0645\u0646\u062D\u0647\u0627 \u062F\u0648\u0631\u064B\u0627 \u0644\u062A\u0645\u0646\u062D\u0647 \u0644\u0644\u062F\u0644\u064A\u0644 \u0643\u0644\u0647\u060C \u0623\u0648 \u0636\u0639\u0647\u0627 \u062F\u0627\u062E\u0644 \u0645\u062C\u0645\u0648\u0639\u0629 \u0623\u062E\u0631\u0649.",
181
+ "groupDetail.ouNotice": "\u0643\u0644 \u0645\u0646 \u062A\u062D\u062A \u0647\u0630\u0647 \u0627\u0644\u0648\u062D\u062F\u0629 \u0627\u0644\u062A\u0646\u0638\u064A\u0645\u064A\u0629 \u0641\u064A \u0627\u0644\u062F\u0644\u064A\u0644\u060C \u0639\u0644\u0649 \u0623\u064A \u0639\u0645\u0642\u060C \u062D\u0633\u0628 \u0622\u062E\u0631 \u0645\u0632\u0627\u0645\u0646\u0629. \u063A\u064A\u0651\u0631 \u0627\u0644\u0648\u062D\u062F\u0627\u062A \u0645\u0646 \u0625\u0639\u062F\u0627\u062F\u0627\u062A \u0627\u0644\u062F\u0644\u064A\u0644.",
182
+ "groupDetail.organization": "\u0627\u0644\u0645\u0624\u0633\u0633\u0629",
183
+ "groupDetail.organizationHint": "\u064A\u0645\u0643\u0646 \u0644\u0639\u0645\u0644\u0627\u0621 \u0627\u0644\u0645\u0624\u0633\u0633\u0629 \u0645\u0634\u0627\u0631\u0643\u0629 \u0637\u0644\u0628\u0627\u062A\u0647\u0645 \u0641\u064A\u0645\u0627 \u0628\u064A\u0646\u0647\u0645 \u062D\u064A\u062B \u064A\u0633\u0645\u062D \u0646\u0648\u0639 \u0627\u0644\u0637\u0644\u0628 \u0628\u0630\u0644\u0643.",
184
+ "groupDetail.attributes": "\u0627\u0644\u0633\u0645\u0627\u062A",
185
+ "groupDetail.attributesHint": "\u0633\u0645\u0629 \u0641\u064A \u0643\u0644 \u0633\u0637\u0631: \u0627\u0644\u0627\u0633\u0645 = \u0627\u0644\u0642\u064A\u0645\u0629 (\u0631\u0642\u0645 \u0627\u0644\u0639\u0645\u064A\u0644 = 1042).",
186
+ "groupDetail.organizationSaved": "\u062D\u064F\u0641\u0638\u062A \u0627\u0644\u0645\u0624\u0633\u0633\u0629.",
187
+ "groupDetail.saveOrganization": "\u0627\u062D\u0641\u0638 \u0627\u0644\u0645\u0624\u0633\u0633\u0629",
188
+ "groupDetail.twoFactor.title": "\u0627\u0644\u062A\u062D\u0642\u0642 \u0628\u062E\u0637\u0648\u062A\u064A\u0646",
189
+ "groupDetail.twoFactor.hint": "\u0647\u0644 \u064A\u064F\u0637\u0644\u0628 \u0645\u0646 \u0627\u0644\u0623\u0639\u0636\u0627\u0621 \u0639\u0627\u0645\u0644 \u062B\u0627\u0646\u064D. \u064A\u062A\u0628\u0639 \u0643\u0644 \u0634\u062E\u0635 \u0627\u0644\u0623\u0634\u062F \u0628\u064A\u0646 \u062C\u0645\u064A\u0639 \u0645\u062C\u0645\u0648\u0639\u0627\u062A\u0647\u060C \u0628\u0645\u0627 \u0641\u064A\u0647\u0627 \u0627\u0644\u0645\u062A\u062F\u0627\u062E\u0644\u0629.",
190
+ "groupDetail.twoFactor.modes.off": "\u0645\u062A\u0648\u0642\u0641",
191
+ "groupDetail.twoFactor.modes.optional": "\u0645\u062A\u0627\u062D",
192
+ "groupDetail.twoFactor.modes.required": "\u0645\u0637\u0644\u0648\u0628",
193
+ "groupDetail.twoFactor.modes.strong": "\u0642\u0648\u064A",
194
+ "groupDetail.twoFactor.modeHints.off": "\u0644\u0627 \u064A\u064F\u0637\u0644\u0628 \u0645\u0646 \u0627\u0644\u0623\u0639\u0636\u0627\u0621\u060C \u0625\u0644\u0627 \u0645\u0646 \u0623\u0639\u062F\u0651 \u0648\u0627\u062D\u062F\u064B\u0627 \u0628\u0646\u0641\u0633\u0647.",
195
+ "groupDetail.twoFactor.modeHints.optional": "\u064A\u064F\u062A\u0627\u062D \u0639\u0646\u062F \u062A\u0633\u062C\u064A\u0644 \u0627\u0644\u062F\u062E\u0648\u0644 \u0648\u0644\u0627 \u064A\u064F\u0634\u062A\u0631\u0637\u061B \u0648\u0645\u0646 \u0623\u0639\u062F\u0651 \u0648\u0627\u062D\u062F\u064B\u0627 \u064A\u064F\u0637\u0644\u0628 \u0645\u0646\u0647.",
196
+ "groupDetail.twoFactor.modeHints.required": "\u064A\u064F\u0639\u062F\u0651 \u0627\u0644\u0623\u0639\u0636\u0627\u0621 \u0639\u0627\u0645\u0644\u064B\u0627 \u062B\u0627\u0646\u064A\u064B\u0627 \u0648\u064A\u064F\u062F\u062E\u0644\u0648\u0646 \u0631\u0645\u0632\u064B\u0627 \u0639\u0646\u062F \u0643\u0644 \u062A\u0633\u062C\u064A\u0644 \u062F\u062E\u0648\u0644.",
197
+ "groupDetail.twoFactor.modeHints.strong": "\u0643\u0627\u0644\u0645\u0637\u0644\u0648\u0628\u060C \u0648\u0628\u062A\u0637\u0628\u064A\u0642 \u0645\u0635\u0627\u062F\u0642\u0629 \u0641\u0642\u0637\u060C \u0644\u0627 \u0628\u0631\u0645\u0648\u0632 \u0627\u0644\u0628\u0631\u064A\u062F \u0623\u0648 \u0627\u0644\u0631\u0633\u0627\u0626\u0644 \u0627\u0644\u0646\u0635\u064A\u0629.",
198
+ "groupDetail.twoFactor.saved": "\u0627\u0644\u062A\u062D\u0642\u0642 \u0628\u062E\u0637\u0648\u062A\u064A\u0646 \u0644\u0640 {name}: {mode}.",
199
+ "groupDetail.twoFactor.pill": "\u0627\u0644\u062A\u062D\u0642\u0642 \u0628\u062E\u0637\u0648\u062A\u064A\u0646: {mode}",
200
+ "groupDetail.names": "\u0627\u0644\u0627\u0633\u0645 \u0628\u0643\u0644 \u0644\u063A\u0629",
201
+ "groupDetail.namesHint": "\u064A\u0631\u0649 \u0645\u0646 \u064A\u0642\u0631\u0623 \u0628\u0644\u063A\u0629\u064D \u0627\u0633\u0645\u064E \u0627\u0644\u0645\u062C\u0645\u0648\u0639\u0629 \u0628\u0647\u0627. \u0648\u064A\u0628\u0642\u0649 \u0627\u0644\u0627\u0633\u0645 \u0627\u0644\u0625\u0646\u062C\u0644\u064A\u0632\u064A \u0641\u064A \u0627\u0644\u0633\u062C\u0644 \u0648\u0641\u064A \u0627\u0644\u062F\u0644\u064A\u0644.",
202
+ "groupDetail.saveNames": "\u0627\u062D\u0641\u0638 \u0627\u0644\u0623\u0633\u0645\u0627\u0621",
203
+ "signUpSettings.title": "\u0627\u0644\u062A\u0633\u062C\u064A\u0644",
204
+ "signUpSettings.subtitle": "\u0647\u0644 \u064A\u0645\u0643\u0646 \u0644\u0644\u0646\u0627\u0633 \u0625\u0646\u0634\u0627\u0621 \u062D\u0633\u0627\u0628\u0627\u062A\u0647\u0645 \u0628\u0623\u0646\u0641\u0633\u0647\u0645. \u064A\u0624\u0643\u062F\u0648\u0646 \u0628\u0631\u064A\u062F\u0647\u0645 \u0623\u0648\u0644\u064B\u0627\u061B \u0648\u0645\u0627 \u064A\u0645\u0643\u0646\u0647\u0645 \u0627\u0633\u062A\u062E\u062F\u0627\u0645\u0647 \u062A\u062D\u062F\u062F\u0647 \u0627\u0644\u0623\u062F\u0648\u0627\u0631 \u0627\u0644\u062A\u064A \u062A\u0645\u0646\u062D\u0647\u0627.",
205
+ "signUpSettings.enabled": "\u064A\u0645\u0643\u0646 \u0644\u0644\u0646\u0627\u0633 \u0627\u0644\u062A\u0633\u062C\u064A\u0644",
206
+ "signUpSettings.directory": "\u0627\u0644\u062F\u0644\u064A\u0644",
207
+ "signUpSettings.directoryHint": "\u062A\u064F\u0646\u0634\u0623 \u0627\u0644\u062D\u0633\u0627\u0628\u0627\u062A \u0641\u064A \u0647\u0630\u0627 \u0627\u0644\u062F\u0644\u064A\u0644 \u0627\u0644\u062F\u0627\u062E\u0644\u064A. \u0623\u0636\u0641 \u062F\u0644\u064A\u0644\u064B\u0627 \u0645\u062B\u0644 \u0627\u0644\u0639\u0645\u0644\u0627\u0621 \u0645\u0646 \u0627\u0644\u0623\u062F\u0644\u0629.",
208
+ "signUpSettings.chooseDirectory": "\u0627\u062E\u062A\u0631 \u062F\u0644\u064A\u0644\u064B\u0627",
209
+ "signUpSettings.domains": "\u0646\u0637\u0627\u0642\u0627\u062A \u0627\u0644\u0628\u0631\u064A\u062F",
210
+ "signUpSettings.domainsHint": "\u0644\u0627 \u064A\u0633\u062C\u0644 \u0625\u0644\u0627 \u0623\u0635\u062D\u0627\u0628 \u0647\u0630\u0647 \u0627\u0644\u0646\u0637\u0627\u0642\u0627\u062A\u061B \u0627\u0644\u0641\u0627\u0631\u063A \u064A\u0642\u0628\u0644 \u0623\u064A\u064B\u0627 \u0645\u0646\u0647\u0627. \u0627\u0641\u0635\u0644 \u0628\u064A\u0646\u0647\u0627 \u0628\u0641\u0648\u0627\u0635\u0644.",
211
+ "signUpSettings.grantHint": "\u0644\u062A\u0645\u0646\u062D \u0627\u0644\u0645\u0633\u062C\u0651\u0644\u064A\u0646 \u0645\u0634\u0631\u0648\u0639\u064B\u0627\u060C \u0627\u0645\u0646\u062D \u062F\u0648\u0631 \u0627\u0644\u0639\u0645\u064A\u0644 \u0641\u064A\u0647 \u0644\u0644\u0645\u062C\u0645\u0648\u0639\u0629 {group} \u0645\u0646 \u0623\u0639\u0636\u0627\u0621 \u0627\u0644\u0645\u0634\u0631\u0648\u0639.",
212
+ "signUpSettings.save": "\u062D\u0641\u0638",
213
+ "signUpSettings.saved": "\u062D\u064F\u0641\u0638 \u0627\u0644\u062A\u0633\u062C\u064A\u0644.",
214
+ "anonymousAccess.title": "\u0627\u0644\u0648\u0635\u0648\u0644 \u0627\u0644\u0645\u062C\u0647\u0648\u0644",
215
+ "anonymousAccess.subtitle": "\u0643\u0644 \u062F\u0648\u0631 \u0645\u064F\u0646\u062D \u0644\u0644\u0632\u0648\u0627\u0631 \u0627\u0644\u0645\u062C\u0647\u0648\u0644\u064A\u0646. \u064A\u062D\u0635\u0644 \u0639\u0644\u064A\u0647\u0627 \u0623\u064A \u0634\u062E\u0635 \u0639\u0644\u0649 \u0627\u0644\u0625\u0646\u062A\u0631\u0646\u062A\u060C \u0641\u0623\u0628\u0642\u0647\u0627 \u0642\u0644\u064A\u0644\u0629.",
216
+ "anonymousAccess.role": "\u0627\u0644\u062F\u0648\u0631",
217
+ "anonymousAccess.scope": "\u0623\u064A\u0646",
218
+ "anonymousAccess.since": "\u0645\u0646\u0630",
219
+ "anonymousAccess.revoke": "\u0625\u0644\u063A\u0627\u0621",
220
+ "anonymousAccess.revokeTitle": "\u0625\u0644\u063A\u0627\u0621 {role} \u0641\u064A {scope} \u0644\u0644\u0632\u0648\u0627\u0631 \u0627\u0644\u0645\u062C\u0647\u0648\u0644\u064A\u0646\u061F",
221
+ "anonymousAccess.revoked": "\u0623\u064F\u0644\u063A\u064A.",
222
+ "anonymousAccess.empty": "\u0644\u064A\u0633 \u0644\u0644\u0632\u0648\u0627\u0631 \u0627\u0644\u0645\u062C\u0647\u0648\u0644\u064A\u0646 \u0623\u064A \u062F\u0648\u0631.",
223
+ "merge.mergeInto": "\u062F\u0645\u062C \u0641\u064A \u062D\u0633\u0627\u0628 \u0622\u062E\u0631",
224
+ "merge.pageTitle": "\u062F\u0645\u062C \u0641\u064A \u062D\u0633\u0627\u0628 \u0622\u062E\u0631",
225
+ "merge.pageHint": "\u0643\u0644 \u0645\u0627 \u0641\u0639\u0644\u0647 {username} \u0623\u0648 \u064A\u0645\u0644\u0643\u0647 \u0623\u0648 \u0630\u064F\u0643\u0631 \u0641\u064A\u0647 \u064A\u0646\u062A\u0642\u0644 \u0625\u0644\u0649 \u0627\u0644\u062D\u0633\u0627\u0628 \u0627\u0644\u0630\u064A \u062A\u062E\u062A\u0627\u0631\u0647: \u0627\u0644\u0633\u062C\u0644\u0627\u062A \u0648\u0627\u0644\u062A\u0639\u0644\u064A\u0642\u0627\u062A \u0648\u0627\u0644\u0633\u062C\u0644 \u0627\u0644\u062A\u0627\u0631\u064A\u062E\u064A \u0648\u0627\u0644\u0635\u0644\u0627\u062D\u064A\u0627\u062A \u0648\u0627\u0644\u0645\u062C\u0645\u0648\u0639\u0627\u062A \u0648\u0627\u0644\u0639\u0631\u0648\u0636 \u0648\u0644\u0648\u062D\u0627\u062A \u0627\u0644\u0645\u0639\u0644\u0648\u0645\u0627\u062A \u0648\u0627\u0644\u0627\u0634\u062A\u0631\u0627\u0643\u0627\u062A \u0648\u0645\u0627 \u062A\u062D\u0641\u0638\u0647 \u0627\u0644\u0625\u0636\u0627\u0641\u0627\u062A. \u064A\u0628\u0642\u0649 {username} \u062D\u0633\u0627\u0628\u064B\u0627 \u063A\u064A\u0631 \u0641\u0639\u0651\u0627\u0644 \u0644\u0627 \u064A\u0645\u0643\u0646\u0647 \u062A\u0633\u062C\u064A\u0644 \u0627\u0644\u062F\u062E\u0648\u0644.",
226
+ "merge.alreadyMerged": "\u062F\u064F\u0645\u062C \u0647\u0630\u0627 \u0627\u0644\u062D\u0633\u0627\u0628 \u0641\u064A {survivor} \u0645\u0646 \u0642\u0628\u0644.",
227
+ "merge.chooseTitle": "\u0627\u0644\u062D\u0633\u0627\u0628 \u0627\u0644\u0630\u064A \u064A\u0628\u0642\u0649",
228
+ "merge.chooseHint": "\u0639\u0627\u062F\u0629\u064B \u0627\u0644\u062D\u0633\u0627\u0628 \u0627\u0644\u062D\u0642\u064A\u0642\u064A \u0644\u0644\u0634\u062E\u0635: \u0627\u0644\u0630\u064A \u064A\u0633\u062C\u0651\u0644 \u0627\u0644\u062F\u062E\u0648\u0644 \u0628\u0647.",
229
+ "merge.survivor": "\u0627\u0644\u062F\u0645\u062C \u0641\u064A",
230
+ "merge.searchPlaceholder": "\u0627\u0628\u062D\u062B \u0628\u0627\u0633\u0645 \u0627\u0644\u0645\u0633\u062A\u062E\u062F\u0645 \u0623\u0648 \u0627\u0644\u0627\u0633\u0645 \u0623\u0648 \u0627\u0644\u0628\u0631\u064A\u062F",
231
+ "merge.searching": "\u062C\u0627\u0631\u064D \u0627\u0644\u0628\u062D\u062B\u2026",
232
+ "merge.noMatches": "\u0644\u0627 \u062D\u0633\u0627\u0628 \u064A\u0637\u0627\u0628\u0642.",
233
+ "merge.sourceTitle": "\u064A\u064F\u062F\u0645\u062C",
234
+ "merge.sourceHint": "\u064A\u0628\u0642\u0649 \u062D\u0633\u0627\u0628\u064B\u0627 \u063A\u064A\u0631 \u0641\u0639\u0651\u0627\u0644 \u0645\u062F\u0645\u0648\u062C\u064B\u0627 \u0641\u064A \u0627\u0644\u0622\u062E\u0631.",
235
+ "merge.survivorTitle": "\u064A\u0628\u0642\u0649",
236
+ "merge.survivorHint": "\u064A\u062D\u0635\u0644 \u0639\u0644\u0649 \u0643\u0644 \u0634\u064A\u0621.",
237
+ "merge.previewTitle": "\u0645\u0627 \u0633\u064A\u0646\u062A\u0642\u0644",
238
+ "merge.previewHint": "\u0645\u0639\u062F\u0648\u062F \u0627\u0644\u0622\u0646\u061B \u062A\u0646\u0642\u0644 \u0648\u062D\u062F\u0627\u062A {product} \u0628\u064A\u0627\u0646\u0627\u062A\u0647\u0627 \u0641\u064A \u0645\u0639\u0627\u0645\u0644\u0629 \u0648\u0627\u062D\u062F\u0629\u060C \u062B\u0645 \u0627\u0644\u0625\u0636\u0627\u0641\u0627\u062A \u0645\u0628\u0627\u0634\u0631\u0629.",
239
+ "merge.nothing": "\u0644\u0627 \u0634\u064A\u0621 \u0644\u0646\u0642\u0644\u0647.",
240
+ "merge.pluginError": "\u062A\u0639\u0630\u0651\u0631 \u0639\u0644\u0649 \u0647\u0630\u0647 \u0627\u0644\u0625\u0636\u0627\u0641\u0629 \u0627\u0644\u0625\u062C\u0627\u0628\u0629: {error}",
241
+ "merge.confirmTitle": "\u0627\u0644\u062F\u0645\u062C",
242
+ "merge.activeWarning": "\u064A\u0645\u0643\u0646 \u0644\u0640 {username} \u062A\u0633\u062C\u064A\u0644 \u0627\u0644\u062F\u062E\u0648\u0644. \u0628\u0639\u062F \u0627\u0644\u062F\u0645\u062C \u0644\u0646 \u064A\u0645\u0643\u0646\u0647 \u0630\u0644\u0643: \u064A\u0633\u062C\u0651\u0644 \u0635\u0627\u062D\u0628\u0647 \u0627\u0644\u062F\u062E\u0648\u0644 \u0628\u0627\u0644\u062D\u0633\u0627\u0628 \u0627\u0644\u0622\u062E\u0631.",
243
+ "merge.activeOtherDirectory": "\u064A\u0645\u0643\u0646 \u0644\u0640 {username} \u062A\u0633\u062C\u064A\u0644 \u0627\u0644\u062F\u062E\u0648\u0644 \u0645\u0646 \u062F\u0644\u064A\u0644 \u0622\u062E\u0631. \u0628\u0639\u062F \u0627\u0644\u062F\u0645\u062C \u0644\u0646 \u064A\u0645\u0643\u0646\u0647 \u0630\u0644\u0643: \u064A\u0633\u062C\u0651\u0644 \u0635\u0627\u062D\u0628\u0647 \u0627\u0644\u062F\u062E\u0648\u0644 \u0628\u0627\u0644\u062D\u0633\u0627\u0628 \u0627\u0644\u0622\u062E\u0631. \u0644\u0627 \u062A\u062F\u0645\u062C \u0625\u0644\u0627 \u0625\u0646 \u0643\u0627\u0646\u0627 \u0627\u0644\u0634\u062E\u0635 \u0646\u0641\u0633\u0647.",
244
+ "merge.typeUsername": "\u0627\u0643\u062A\u0628 {username} \u0644\u0644\u062A\u0623\u0643\u064A\u062F",
245
+ "merge.noUndo": "\u0644\u0627 \u064A\u0645\u0643\u0646 \u0627\u0644\u062A\u0631\u0627\u062C\u0639 \u0639\u0646 \u0627\u0644\u062F\u0645\u062C. \u064A\u064F\u0633\u062C\u064E\u0651\u0644 \u0641\u064A \u0627\u0644\u062D\u0633\u0627\u0628\u064A\u0646.",
246
+ "merge.mergeButton": "\u062F\u0645\u062C {source} \u0641\u064A {survivor}",
247
+ "merge.merged": "\u062F\u064F\u0645\u062C {source} \u0641\u064A {survivor}.",
248
+ "merge.mergedIncomplete": "\u062F\u064F\u0645\u062C {source} \u0641\u064A {survivor}\u060C \u0644\u0643\u0646 \u0625\u0636\u0627\u0641\u0629 \u0644\u0645 \u062A\u064F\u0643\u0645\u0644 \u0639\u0645\u0644\u0647\u0627: \u0627\u0633\u062A\u0623\u0646\u0641\u0647\u0627 \u0645\u0646 \u0639\u0645\u0644\u064A\u0627\u062A \u062F\u0645\u062C \u0627\u0644\u062D\u0633\u0627\u0628.",
249
+ "merge.mergedBanner": "\u062F\u064F\u0645\u062C \u0647\u0630\u0627 \u0627\u0644\u062D\u0633\u0627\u0628 \u0641\u064A <survivor></survivor>: \u0639\u0645\u0644\u0647 \u0648\u0635\u0644\u0627\u062D\u064A\u0627\u062A\u0647 \u0648\u0639\u0646\u0627\u0648\u064A\u0646\u0647 \u0647\u0646\u0627\u0643 \u0627\u0644\u0622\u0646. \u0644\u0627 \u064A\u0645\u0643\u0646\u0647 \u062A\u0633\u062C\u064A\u0644 \u0627\u0644\u062F\u062E\u0648\u0644.",
250
+ "merge.title": "\u0639\u0645\u0644\u064A\u0627\u062A \u0627\u0644\u062F\u0645\u062C ({count})",
251
+ "merge.hint": "\u062D\u0633\u0627\u0628\u0627\u062A \u062F\u064F\u0645\u062C\u062A \u0641\u064A \u0647\u0630\u0627 \u0627\u0644\u062D\u0633\u0627\u0628\u060C \u0623\u0648 \u062F\u064F\u0645\u062C \u0647\u0648 \u0641\u064A \u063A\u064A\u0631\u0647. \u0644\u0627 \u064A\u0645\u0643\u0646 \u0627\u0644\u062A\u0631\u0627\u062C\u0639 \u0639\u0646 \u0634\u064A\u0621 \u0647\u0646\u0627.",
252
+ "merge.none": "\u0644\u0627 \u0639\u0645\u0644\u064A\u0627\u062A \u062F\u0645\u062C.",
253
+ "merge.when": "\u0645\u062A\u0649",
254
+ "merge.what": "\u0645\u0627\u0630\u0627",
255
+ "merge.who": "\u0628\u0648\u0627\u0633\u0637\u0629",
256
+ "merge.moved": "\u0645\u0627 \u0627\u0646\u062A\u0642\u0644",
257
+ "merge.state": "\u0627\u0644\u062D\u0627\u0644\u0629",
258
+ "merge.done": "\u062A\u0645",
259
+ "merge.incomplete": "\u063A\u064A\u0631 \u0645\u0643\u062A\u0645\u0644",
260
+ "merge.resume": "\u0627\u0633\u062A\u0626\u0646\u0627\u0641",
261
+ "merge.someone": "\u0645\u0633\u0624\u0648\u0644",
262
+ "merge.mergedInto": "\u062F\u064F\u0645\u062C \u0641\u064A <survivor></survivor>",
263
+ "merge.mergedFrom": "\u062F\u064F\u0645\u062C <source></source> ({name}) \u0641\u064A \u0647\u0630\u0627 \u0627\u0644\u062D\u0633\u0627\u0628",
264
+ "merge.reason.admin": "\u0628\u0648\u0627\u0633\u0637\u0629 \u0645\u0633\u0624\u0648\u0644",
265
+ "merge.reason.sign-up": "\u062A\u0644\u0642\u0627\u0626\u064A: \u0633\u062C\u0651\u0644 \u062D\u0633\u0627\u0628\u064B\u0627",
266
+ "merge.reason.confirmed-address": "\u062A\u0644\u0642\u0627\u0626\u064A: \u0623\u0643\u0651\u062F \u0639\u0646\u0648\u0627\u0646\u0647",
267
+ "merge.reason.account-created": "\u062A\u0644\u0642\u0627\u0626\u064A: \u0623\u064F\u0646\u0634\u0626 \u0627\u0644\u062D\u0633\u0627\u0628",
268
+ "merge.reason.directory-sync": "\u062A\u0644\u0642\u0627\u0626\u064A: \u0645\u0632\u0627\u0645\u0646\u0629 \u0627\u0644\u062F\u0644\u064A\u0644",
269
+ "merge.reason.address-added": "\u062A\u0644\u0642\u0627\u0626\u064A: \u0623\u064F\u0636\u064A\u0641 \u0639\u0646\u0648\u0627\u0646",
270
+ "merge.step.failed": "\u0641\u0634\u0644",
271
+ "merge.step.pending": "\u0644\u0645 \u064A\u0643\u062A\u0645\u0644",
272
+ "merge.step.off": "\u0645\u062A\u0648\u0642\u0641",
273
+ "merge.plugin": "\u0627\u0644\u0625\u0636\u0627\u0641\u0629 {key}",
274
+ "merge.part.guard": "\u0627\u0644\u062D\u0633\u0627\u0628\u0627\u062A \u0648\u0627\u0644\u0635\u0644\u0627\u062D\u064A\u0627\u062A",
275
+ "merge.count.grants": "{count, plural, one {\u0645\u0646\u062D \u062F\u0648\u0631 \u0648\u0627\u062D\u062F} other {# \u0645\u0646 \u0645\u0646\u062D \u0627\u0644\u0623\u062F\u0648\u0627\u0631}}",
276
+ "merge.count.memberships": "{count, plural, one {\u0639\u0636\u0648\u064A\u0629 \u0645\u062C\u0645\u0648\u0639\u0629 \u0648\u0627\u062D\u062F\u0629} other {# \u0645\u0646 \u0639\u0636\u0648\u064A\u0627\u062A \u0627\u0644\u0645\u062C\u0645\u0648\u0639\u0627\u062A}}",
277
+ "merge.count.addresses": "{count, plural, one {\u0639\u0646\u0648\u0627\u0646 \u0648\u0627\u062D\u062F} other {# \u0645\u0646 \u0627\u0644\u0639\u0646\u0627\u0648\u064A\u0646}}",
278
+ "merge.count.tokens": "{count, plural, one {\u0631\u0645\u0632 \u0648\u0635\u0648\u0644 \u0648\u0627\u062D\u062F \u0623\u064F\u0644\u063A\u064A} other {# \u0645\u0646 \u0631\u0645\u0648\u0632 \u0627\u0644\u0648\u0635\u0648\u0644 \u0623\u064F\u0644\u063A\u064A\u062A}}",
279
+ "duplicates.title": "\u062D\u0633\u0627\u0628\u0627\u062A \u0645\u0643\u0631\u0631\u0629 \u0645\u062D\u062A\u0645\u0644\u0629 ({count})",
280
+ "duplicates.hint": "\u062D\u0633\u0627\u0628\u0627\u062A \u062A\u0634\u062A\u0631\u0643 \u0641\u064A \u0639\u0646\u0648\u0627\u0646: \u063A\u0627\u0644\u0628\u064B\u0627 \u0627\u0644\u0634\u062E\u0635 \u0646\u0641\u0633\u0647 \u0645\u0631\u062A\u064A\u0646\u060C \u0643\u0634\u062E\u0635 \u0644\u0645 \u064A\u0637\u0627\u0628\u0642\u0647 \u0627\u0633\u062A\u064A\u0631\u0627\u062F \u0645\u0646 Jira. \u0627\u062F\u0645\u062C\u0647\u0627 \u0644\u062A\u0635\u0628\u062D \u062D\u0633\u0627\u0628\u064B\u0627 \u0648\u0627\u062D\u062F\u064B\u0627.",
281
+ "duplicates.address": "\u0627\u0644\u0639\u0646\u0648\u0627\u0646",
282
+ "duplicates.accounts": "\u0627\u0644\u062D\u0633\u0627\u0628\u0627\u062A",
283
+ "duplicates.merge": "\u0627\u0644\u062F\u0645\u062C",
284
+ "duplicates.mergeInto": "\u062F\u0645\u062C {source} \u0641\u064A {survivor}",
285
+ "addresses.title": "\u0639\u0646\u0627\u0648\u064A\u0646 \u0627\u0644\u0628\u0631\u064A\u062F ({count})",
286
+ "addresses.adminHint": "\u0643\u0644 \u0639\u0646\u0648\u0627\u0646 \u0645\u0624\u0643\u064E\u0651\u062F \u064A\u062F\u0644 \u0639\u0644\u0649 \u0647\u0630\u0627 \u0627\u0644\u062D\u0633\u0627\u0628: \u0627\u0644\u0628\u0631\u064A\u062F \u0627\u0644\u0648\u0627\u0631\u062F \u0648\u0627\u0644\u0645\u0634\u0627\u0631\u0643\u0648\u0646 \u0648\u0627\u0644\u062A\u0633\u062C\u064A\u0644 \u0648\u0627\u0644\u0645\u0646\u0638\u0645\u0627\u062A \u062D\u0633\u0628 \u0627\u0644\u0646\u0637\u0627\u0642. \u0627\u0644\u0639\u0646\u0627\u0648\u064A\u0646 \u0627\u0644\u062A\u064A \u062A\u0636\u064A\u0641\u0647\u0627 \u062A\u064F\u0624\u0643\u064E\u0651\u062F \u0641\u0648\u0631\u064B\u0627\u061B \u0648\u064A\u0630\u0647\u0628 \u0627\u0644\u0628\u0631\u064A\u062F \u0625\u0644\u0649 \u0627\u0644\u0639\u0646\u0648\u0627\u0646 \u0627\u0644\u0645\u062E\u062A\u0627\u0631.",
287
+ "addresses.selfHint": "\u0643\u0644 \u0639\u0646\u0648\u0627\u0646 \u0645\u0624\u0643\u064E\u0651\u062F \u064A\u062F\u0644 \u0639\u0644\u0649 \u062D\u0633\u0627\u0628\u0643: \u0627\u0644\u0628\u0631\u064A\u062F \u0627\u0644\u0630\u064A \u062A\u0631\u0633\u0644\u0647 \u0648\u0627\u0644\u0637\u0644\u0628\u0627\u062A \u0627\u0644\u0645\u0634\u062A\u0631\u0643\u0629 \u0645\u0639\u0643 \u0648\u0627\u0644\u0645\u0646\u0638\u0645\u0627\u062A \u062D\u0633\u0628 \u0627\u0644\u0646\u0637\u0627\u0642. \u0646\u0631\u0633\u0644 \u0631\u0627\u0628\u0637\u064B\u0627 \u0625\u0644\u0649 \u0643\u0644 \u0639\u0646\u0648\u0627\u0646 \u062A\u0636\u064A\u0641\u0647\u060C \u0648\u064A\u064F\u0639\u062A\u0645\u062F \u0639\u0646\u062F \u0641\u062A\u062D\u0647.",
288
+ "addresses.address": "\u0627\u0644\u0639\u0646\u0648\u0627\u0646",
289
+ "addresses.from": "\u0627\u0644\u0645\u0635\u062F\u0631",
290
+ "addresses.source.directory": "\u0627\u0644\u062F\u0644\u064A\u0644",
291
+ "addresses.source.admin": "\u0623\u0636\u0627\u0641\u0647 \u0645\u0633\u0624\u0648\u0644",
292
+ "addresses.source.person": "\u0623\u0636\u0627\u0641\u0647 \u0635\u0627\u062D\u0628\u0647",
293
+ "addresses.source.merge": "\u0645\u0646 \u062D\u0633\u0627\u0628 \u0645\u062F\u0645\u0648\u062C",
294
+ "addresses.state": "\u0627\u0644\u062D\u0627\u0644\u0629",
295
+ "addresses.confirmed": "\u0645\u0624\u0643\u064E\u0651\u062F",
296
+ "addresses.waiting": "\u0628\u0627\u0646\u062A\u0638\u0627\u0631 \u0627\u0644\u0631\u0627\u0628\u0637",
297
+ "addresses.addedAt": "\u0623\u064F\u0636\u064A\u0641",
298
+ "addresses.mail": "\u0627\u0644\u0628\u0631\u064A\u062F",
299
+ "addresses.mailGoesHere": "\u064A\u0630\u0647\u0628 \u0627\u0644\u0628\u0631\u064A\u062F \u0625\u0644\u064A\u0647",
300
+ "addresses.sendHere": "\u0623\u0631\u0633\u0644 \u0627\u0644\u0628\u0631\u064A\u062F \u0625\u0644\u064A\u0647",
301
+ "addresses.remove": "\u0625\u0632\u0627\u0644\u0629",
302
+ "addresses.removeLabel": "\u0625\u0632\u0627\u0644\u0629 {email}",
303
+ "addresses.none": "\u0644\u0627 \u0639\u0646\u0627\u0648\u064A\u0646.",
304
+ "addresses.placeholder": "someone@example.com",
305
+ "addresses.newAddress": "\u0639\u0646\u0648\u0627\u0646 \u062C\u062F\u064A\u062F",
306
+ "addresses.add": "\u0625\u0636\u0627\u0641\u0629 \u0639\u0646\u0648\u0627\u0646",
307
+ "addresses.addAndSend": "\u0625\u0636\u0627\u0641\u0629 \u0648\u0625\u0631\u0633\u0627\u0644 \u0627\u0644\u0631\u0627\u0628\u0637",
308
+ "addresses.addedToast": "\u0623\u064F\u0636\u064A\u0641 {email} \u0648\u0623\u064F\u0643\u0650\u0651\u062F.",
309
+ "addresses.linkSent": "\u0623\u0631\u0633\u0644\u0646\u0627 \u0631\u0627\u0628\u0637\u064B\u0627 \u0625\u0644\u0649 {email}. \u064A\u064F\u0639\u062A\u0645\u062F \u0627\u0644\u0639\u0646\u0648\u0627\u0646 \u0639\u0646\u062F \u0641\u062A\u062D\u0647.",
310
+ "addresses.verifyTitle": "\u062A\u0623\u0643\u064A\u062F \u0639\u0646\u0648\u0627\u0646",
311
+ "addresses.verified": "\u062A\u0623\u0643\u064E\u0651\u062F {email} \u0644\u0644\u062D\u0633\u0627\u0628 {username}.",
312
+ "addresses.toAccount": "\u0627\u0630\u0647\u0628 \u0625\u0644\u0649 \u062D\u0633\u0627\u0628\u0643",
313
+ "addresses.primary": "\u0631\u0626\u064A\u0633\u064A",
314
+ "addresses.makePrimary": "\u0627\u062C\u0639\u0644\u0647 \u0631\u0626\u064A\u0633\u064A\u064B\u0627",
315
+ "addresses.makePrimaryLabel": "\u0627\u062C\u0639\u0644 {email} \u0627\u0644\u0639\u0646\u0648\u0627\u0646 \u0627\u0644\u0631\u0626\u064A\u0633\u064A",
316
+ "addresses.primaryChanged": "\u0623\u0635\u0628\u062D {email} \u0627\u0644\u0639\u0646\u0648\u0627\u0646 \u0627\u0644\u0631\u0626\u064A\u0633\u064A. \u0648\u064A\u0628\u0642\u0649 \u0627\u0644\u0639\u0646\u0648\u0627\u0646 \u0627\u0644\u0633\u0627\u0628\u0642 \u0645\u0624\u0643\u064E\u0651\u062F\u064B\u0627\u060C \u0648\u0642\u062F \u0623\u064F\u0628\u0644\u063A.",
317
+ "addresses.fromDirectory": "\u064A\u0623\u062A\u064A \u0627\u0644\u0627\u0633\u0645 \u0648\u0627\u0644\u0639\u0646\u0648\u0627\u0646 \u0627\u0644\u0631\u0626\u064A\u0633\u064A \u0645\u0646 {directory}: \u063A\u064A\u0651\u0631\u0647\u0645\u0627 \u0647\u0646\u0627\u0643\u060C \u0648\u062A\u0646\u0642\u0644\u0647\u0645\u0627 \u0627\u0644\u0645\u0632\u0627\u0645\u0646\u0629 \u0627\u0644\u062A\u0627\u0644\u064A\u0629 \u0625\u0644\u0649 \u0647\u0646\u0627.",
318
+ "status.account.Active": "\u0646\u0634\u0637",
319
+ "status.account.Inactive": "\u063A\u064A\u0631 \u0646\u0634\u0637",
320
+ "status.account.Locked": "\u0645\u0642\u0641\u0644",
321
+ "status.plugin.Enabled": "\u0645\u0641\u0639\u0651\u0644\u0629",
322
+ "status.plugin.Disabled": "\u0645\u0639\u0637\u0651\u0644\u0629",
323
+ "status.plugin.Installed": "\u0645\u062B\u0628\u0651\u062A\u0629",
324
+ "status.plugin.Failed": "\u0641\u0634\u0644\u062A",
325
+ "status.check.notRun": "\u0644\u0645 \u064A\u064F\u0646\u0641\u064E\u0651\u0630",
326
+ "status.check.pass": "\u0646\u062C\u062D",
327
+ "status.check.fail": "\u0641\u0634\u0644",
328
+ "status.sync.running": "\u0642\u064A\u062F \u0627\u0644\u062A\u0646\u0641\u064A\u0630",
329
+ "status.sync.succeeded": "\u0646\u062C\u062D\u062A",
330
+ "status.sync.failed": "\u0641\u0634\u0644\u062A",
331
+ "status.sync.never": "\u0644\u0645 \u062A\u062A\u0645 \u0627\u0644\u0645\u0632\u0627\u0645\u0646\u0629 \u0642\u0637",
332
+ "common.account": "\u062D\u0633\u0627\u0628",
333
+ "common.actions": "\u0627\u0644\u0625\u062C\u0631\u0627\u0621\u0627\u062A",
334
+ "common.active": "\u0646\u0634\u0637",
335
+ "common.cancel": "\u0625\u0644\u063A\u0627\u0621",
336
+ "common.delete": "\u062D\u0630\u0641",
337
+ "common.description": "\u0627\u0644\u0648\u0635\u0641",
338
+ "common.direct": "\u0645\u0628\u0627\u0634\u0631\u0629",
339
+ "common.directory": "\u0627\u0644\u062F\u0644\u064A\u0644",
340
+ "common.disabled": "\u0645\u0639\u0637\u0651\u0644",
341
+ "common.displayName": "\u0627\u0644\u0627\u0633\u0645 \u0627\u0644\u0645\u0639\u0631\u0648\u0636",
342
+ "common.email": "\u0627\u0644\u0628\u0631\u064A\u062F \u0627\u0644\u0625\u0644\u0643\u062A\u0631\u0648\u0646\u064A",
343
+ "common.enabled": "\u0645\u0641\u0639\u0651\u0644",
344
+ "common.group": "\u0645\u062C\u0645\u0648\u0639\u0629",
345
+ "common.groups": "\u0627\u0644\u0645\u062C\u0645\u0648\u0639\u0627\u062A",
346
+ "common.inactive": "\u063A\u064A\u0631 \u0646\u0634\u0637",
347
+ "common.lastSignIn": "\u0622\u062E\u0631 \u062A\u0633\u062C\u064A\u0644 \u062F\u062E\u0648\u0644",
348
+ "common.membership": "\u0627\u0644\u0639\u0636\u0648\u064A\u0629",
349
+ "common.name": "\u0627\u0644\u0627\u0633\u0645",
350
+ "common.nested": "\u0645\u062A\u062F\u0627\u062E\u0644\u0629",
351
+ "common.no": "\u0644\u0627",
352
+ "common.optional": "(\u0627\u062E\u062A\u064A\u0627\u0631\u064A)",
353
+ "common.order": "\u0627\u0644\u062A\u0631\u062A\u064A\u0628",
354
+ "common.password": "\u0643\u0644\u0645\u0629 \u0627\u0644\u0645\u0631\u0648\u0631",
355
+ "common.path": "\u0627\u0644\u0645\u0633\u0627\u0631",
356
+ "common.product": "{product}",
357
+ "common.source": "\u0627\u0644\u0645\u0635\u062F\u0631",
358
+ "common.status": "\u0627\u0644\u062D\u0627\u0644\u0629",
359
+ "common.type": "\u0627\u0644\u0646\u0648\u0639",
360
+ "common.unknownError": "\u062E\u0637\u0623 \u063A\u064A\u0631 \u0645\u0639\u0631\u0648\u0641",
361
+ "common.username": "\u0627\u0633\u0645 \u0627\u0644\u0645\u0633\u062A\u062E\u062F\u0645",
362
+ "common.users": "\u0627\u0644\u0645\u0633\u062A\u062E\u062F\u0645\u0648\u0646",
363
+ "common.yes": "\u0646\u0639\u0645",
364
+ "nav.accounts": "\u0627\u0644\u062D\u0633\u0627\u0628\u0627\u062A",
365
+ "nav.groups": "\u0627\u0644\u0645\u062C\u0645\u0648\u0639\u0627\u062A",
366
+ "nav.directories": "\u0627\u0644\u0623\u062F\u0644\u0629",
367
+ "nav.signup": "\u0627\u0644\u062A\u0633\u062C\u064A\u0644",
368
+ "nav.anonymous": "\u0627\u0644\u0648\u0635\u0648\u0644 \u0627\u0644\u0645\u062C\u0647\u0648\u0644",
369
+ "secondFactor.disabled": "\u0623\u0648\u0642\u0641 \u0645\u0634\u063A\u0651\u0644 \u0647\u0630\u0627 \u0627\u0644\u0645\u0648\u0642\u0639 \u0627\u0644\u062A\u062D\u0642\u0642 \u0628\u062E\u0637\u0648\u062A\u064A\u0646 \u0645\u0624\u0642\u062A\u064B\u0627: \u0644\u0627 \u064A\u064F\u0637\u0644\u0628 \u0631\u0645\u0632 \u0645\u0646 \u0623\u062D\u062F.",
370
+ "secondFactor.kinds.app": "\u062A\u0637\u0628\u064A\u0642 \u0645\u0635\u0627\u062F\u0642\u0629",
371
+ "secondFactor.kinds.email": "\u0627\u0644\u0628\u0631\u064A\u062F \u0627\u0644\u0625\u0644\u0643\u062A\u0631\u0648\u0646\u064A",
372
+ "secondFactor.kinds.sms": "\u0631\u0633\u0627\u0644\u0629 \u0646\u0635\u064A\u0629",
373
+ "secondFactor.kinds.whatsapp": "\u0648\u0627\u062A\u0633\u0627\u0628",
374
+ "secondFactor.kinds.passkey": "\u0645\u0641\u062A\u0627\u062D \u0645\u0631\u0648\u0631"
375
+ };
376
+
377
+ // src/areas/guard/texts/en.json
378
+ var en_default = {
379
+ "directories.title": "Directories",
380
+ "directories.subtitle": "User directories in precedence order. When two directories know the same username, the first active one owns it.",
381
+ "directories.add": "Add directory",
382
+ "directories.empty": "No directories.",
383
+ "directories.signIn": "Sign-in",
384
+ "directories.lastSync": "Last sync",
385
+ "directories.syncNow": "Sync now",
386
+ "directories.moveUp": "Move {name} up",
387
+ "directories.moveDown": "Move {name} down",
388
+ "directories.connectorDisabled": "Connector plugin disabled",
389
+ "directories.pluginDisabledHint": "Plugin {plugin} is disabled",
390
+ "directories.synced": "Synced {name}: {added} added, {updated} updated, {deactivated} deactivated, {groups} groups, {memberships} memberships.",
391
+ "directories.syncFailed": "Sync of {name} failed: {error}",
392
+ "directories.internalType": "Internal (kept by {product})",
393
+ "directories.warnings": "{count, plural, one {A warning} other {# warnings}}",
394
+ "directories.addedWithWarnings": "{name} is added. Its settings have warnings:",
395
+ "directoryDetail.notFound": "Directory not found",
396
+ "directoryDetail.back": "Back to directories",
397
+ "directoryDetail.order": "Order {order}",
398
+ "directoryDetail.signInEnabled": "Sign-in enabled",
399
+ "directoryDetail.signInDisabled": "Sign-in disabled",
400
+ "directoryDetail.connectorDisabled": "Connector plugin disabled",
401
+ "directoryDetail.testConnection": "Test connection",
402
+ "directoryDetail.syncNow": "Sync now",
403
+ "directoryDetail.connectionSucceeded": "Connection succeeded.",
404
+ "directoryDetail.connectionFailed": "Connection failed.",
405
+ "directoryDetail.found": "({users} users, {groups} groups found)",
406
+ "directoryDetail.syncCompleted": "Sync completed.",
407
+ "directoryDetail.syncFailed": "Sync failed: {error}",
408
+ "directoryDetail.deleteTitle": "Delete directory \u201C{name}\u201D?",
409
+ "directoryDetail.deleteDescription": "Its synced accounts and groups are removed.",
410
+ "directoryDetail.settings": "Settings",
411
+ "directoryDetail.saved": "Saved.",
412
+ "directoryDetail.summary": "Summary",
413
+ "directoryDetail.syncInterval": "Sync interval",
414
+ "directoryDetail.minutes": "{count, plural, one {# minute} other {# minutes}}",
415
+ "directoryDetail.onDemand": "On demand",
416
+ "directoryDetail.plugin": "Plugin",
417
+ "directoryDetail.builtIn": "Built in",
418
+ "directoryDetail.lastSync": "Last sync",
419
+ "directoryDetail.testLogin": "Test login",
420
+ "directoryDetail.testLoginHint": "Checks each step of signing in against this directory.",
421
+ "directoryDetail.runTest": "Run test",
422
+ "directoryDetail.testSteps": "Test login steps",
423
+ "directoryDetail.steps.Connection": "Connect to the directory",
424
+ "directoryDetail.steps.FindUser": "Find the user",
425
+ "directoryDetail.steps.Authenticate": "Verify the password",
426
+ "directoryDetail.steps.Precedence": "Directory owns this username (precedence)",
427
+ "directoryDetail.syncRuns": "Sync runs",
428
+ "directoryDetail.noRuns": "No sync runs yet.",
429
+ "directoryDetail.started": "Started",
430
+ "directoryDetail.finished": "Finished",
431
+ "directoryDetail.result": "Result",
432
+ "directoryDetail.added": "Added",
433
+ "directoryDetail.updated": "Updated",
434
+ "directoryDetail.deactivated": "Deactivated",
435
+ "directoryDetail.memberships": "Memberships",
436
+ "directoryDetail.error": "Error",
437
+ "directoryDetail.warningsTitle": "Its settings have warnings",
438
+ "directoryForm.name": "Name",
439
+ "directoryForm.type": "Type",
440
+ "directoryForm.selectType": "Select a type",
441
+ "directoryForm.typeFromPlugin": "{name} (plugin {plugin})",
442
+ "directoryForm.syncInterval": "Sync interval (minutes)",
443
+ "directoryForm.syncIntervalHint": "Leave blank to sync only on demand.",
444
+ "directoryForm.active": "Active",
445
+ "directoryForm.signInEnabled": "Sign-in enabled",
446
+ "directoryForm.capabilities": "Capabilities: {list}",
447
+ "directoryForm.connectionSettings": "Connection settings",
448
+ "directoryForm.fillFromPreset": "Fill from preset",
449
+ "directoryForm.choosePreset": "Choose a preset",
450
+ "directoryForm.loadingPresets": "Loading presets",
451
+ "directoryForm.presetsUnavailable": "Presets unavailable: {error}",
452
+ "directoryForm.keepSecret": "Leave blank to keep the stored value",
453
+ "directoryForm.create": "Create directory",
454
+ "directoryForm.save": "Save changes",
455
+ "accounts.title": "Accounts",
456
+ "accounts.subtitle": "The accounts you may see. Your rules decide which directories are included.",
457
+ "accounts.create": "Create internal account",
458
+ "accounts.createTitle": "Create internal account",
459
+ "accounts.createHint": "Internal accounts live in the {product} directory and sign in with a password.",
460
+ "accounts.createSubmit": "Create account",
461
+ "accounts.created": "Account {username} created.",
462
+ "accounts.search": "Search accounts",
463
+ "accounts.searchPlaceholder": "Search username, name or email",
464
+ "accounts.allStatuses": "All statuses",
465
+ "accounts.empty": "No accounts match.",
466
+ "accountDetail.account": "Account",
467
+ "accountDetail.owningDirectory": "Owning directory",
468
+ "accountDetail.lock": "Lock",
469
+ "accountDetail.unlock": "Unlock",
470
+ "accountDetail.identities": "Identities ({count})",
471
+ "accountDetail.identitiesHint": "One row per directory that knows this username. The first active directory in precedence order wins; the others are shadowed.",
472
+ "accountDetail.noIdentities": "No directory identities.",
473
+ "accountDetail.externalId": "External ID",
474
+ "accountDetail.lastSynced": "Last synced",
475
+ "accountDetail.precedence": "Precedence",
476
+ "accountDetail.winning": "Winning",
477
+ "accountDetail.shadowed": "Shadowed",
478
+ "accountDetail.effectiveGroups": "Effective groups ({count})",
479
+ "accountDetail.noGroups": "Not a member of any group.",
480
+ "accountDetail.secondFactor.title": "Two-factor sign-in",
481
+ "accountDetail.secondFactor.asked": "Asked at sign-in",
482
+ "accountDetail.secondFactor.notAsked": "Not asked",
483
+ "accountDetail.secondFactor.mode": "From their groups",
484
+ "accountDetail.secondFactor.factors": "Set up",
485
+ "accountDetail.secondFactor.none": "Nothing set up",
486
+ "accountDetail.secondFactor.recoveryLeft": "Recovery codes left",
487
+ "accountDetail.secondFactor.reset": "Reset two-factor sign-in",
488
+ "accountDetail.secondFactor.resetTitle": "Reset {name}'s two-factor sign-in?",
489
+ "accountDetail.secondFactor.resetHint": "Their authenticator apps and recovery codes stop working. If a group of theirs requires a second factor, they set one up again at their next sign-in. Do this only once you're sure it's really them asking.",
490
+ "accountDetail.secondFactor.resetDone": "Two-factor sign-in reset.",
491
+ "accountName.change": "Change",
492
+ "accountName.label": "Display name",
493
+ "accountName.save": "Save name",
494
+ "accountName.cancel": "Cancel",
495
+ "accountName.saved": "The name is {name} now, wherever it shows.",
496
+ "accountName.languagesHint": "Give your name in each of the site's languages: people reading in that language see it. The English one is kept in history.",
497
+ "groups.title": "Groups",
498
+ "groups.subtitle": "Local groups are created in {product}; synced groups come from a directory. Groups can contain other groups.",
499
+ "groups.create": "Create group",
500
+ "groups.created": "Group {name} created.",
501
+ "groups.searchPlaceholder": "Search groups",
502
+ "groups.allDirectories": "All directories",
503
+ "groups.empty": "No groups match.",
504
+ "groups.local": "Local",
505
+ "groups.synced": "Synced",
506
+ "groups.readOnly": "Read-only",
507
+ "groups.directMembers": "Direct members",
508
+ "groups.memberGroups": "Member groups",
509
+ "groups.directoryHint": "Defaults to the internal directory.",
510
+ "groups.internalDefault": "Internal (default)",
511
+ "groups.kind": "Kind",
512
+ "groups.kindHint": "An organization is a group customers belong to, by hand or by their email\u2019s domain.",
513
+ "groups.kinds.standard": "Group",
514
+ "groups.kinds.directory": "Everyone in a directory",
515
+ "groups.kinds.ou": "OU",
516
+ "groups.kinds.organization": "Organization",
517
+ "groups.domains": "Email domains",
518
+ "groups.domainsHint": "People whose email is in one of these domains join it (acme.com). Separate them with commas.",
519
+ "groupDetail.delete": "Delete group",
520
+ "groupDetail.deleteTitle": "Delete group \u201C{name}\u201D?",
521
+ "groupDetail.writable": "Writable",
522
+ "groupDetail.directMembers": "Direct members ({count})",
523
+ "groupDetail.noMembers": "No direct members.",
524
+ "groupDetail.fromDirectory": "Directory",
525
+ "groupDetail.manual": "Manual",
526
+ "groupDetail.remove": "Remove",
527
+ "groupDetail.memberOf": "Member of ({count})",
528
+ "groupDetail.notNested": "Not nested in any group.",
529
+ "groupDetail.nestedGroups": "Nested groups",
530
+ "groupDetail.readOnlyNotice": "This group is read-only in {product}: its members come from directory sync.",
531
+ "groupDetail.effectiveMembers": "Effective members ({count})",
532
+ "groupDetail.noEffectiveMembers": "No accounts reach this group.",
533
+ "groupDetail.addMember": "Add member",
534
+ "groupDetail.searchMembers": "Search accounts or groups",
535
+ "groupDetail.noMatches": "No matches.",
536
+ "groupDetail.alreadyMember": "Already a member",
537
+ "groupDetail.add": "Add",
538
+ "groupDetail.accountCount": "{count, plural, one {# account} other {# accounts}}",
539
+ "groupDetail.expand": "Expand {name}",
540
+ "groupDetail.collapse": "Collapse {name}",
541
+ "groupDetail.cycle": "Cycle",
542
+ "groupDetail.loadingTree": "Loading",
543
+ "groupDetail.byDomain": "By email domain",
544
+ "groupDetail.fromImport": "From an import",
545
+ "groupDetail.directoryNotice": "{product} puts everyone whose account comes from this directory in this group. Grant it a role to give it to the whole directory, or nest it in another group.",
546
+ "groupDetail.ouNotice": "Everyone under this OU in the directory, at any depth, from the last sync. Change the OUs in the directory\u2019s settings.",
547
+ "groupDetail.organization": "Organization",
548
+ "groupDetail.organizationHint": "Customers in an organization can share their requests with each other where a request type allows it.",
549
+ "groupDetail.attributes": "Attributes",
550
+ "groupDetail.attributesHint": "One per line: name = value (customer number = 1042).",
551
+ "groupDetail.organizationSaved": "Organization saved.",
552
+ "groupDetail.saveOrganization": "Save organization",
553
+ "groupDetail.twoFactor.title": "Two-factor sign-in",
554
+ "groupDetail.twoFactor.hint": "Whether members are asked for a second factor. Each person follows the strictest of all their groups, nested ones too.",
555
+ "groupDetail.twoFactor.modes.off": "Off",
556
+ "groupDetail.twoFactor.modes.optional": "Offered",
557
+ "groupDetail.twoFactor.modes.required": "Required",
558
+ "groupDetail.twoFactor.modes.strong": "Strong",
559
+ "groupDetail.twoFactor.modeHints.off": "Members aren't asked, unless they set one up themselves.",
560
+ "groupDetail.twoFactor.modeHints.optional": "Offered at sign-in and never asked; members who set one up are asked.",
561
+ "groupDetail.twoFactor.modeHints.required": "Members set up a second factor and enter a code at every sign-in.",
562
+ "groupDetail.twoFactor.modeHints.strong": "As Required, and only with an authenticator app, not codes by email or SMS.",
563
+ "groupDetail.twoFactor.saved": "Two-factor sign-in for {name}: {mode}.",
564
+ "groupDetail.twoFactor.pill": "Two-factor: {mode}",
565
+ "groupDetail.names": "Name in each language",
566
+ "groupDetail.namesHint": "People reading in a language see the group's name in it. The English one is kept in history and by the directory.",
567
+ "groupDetail.saveNames": "Save names",
568
+ "signUpSettings.title": "Sign-up",
569
+ "signUpSettings.subtitle": "Whether people may create their own accounts. They confirm their email first; what they may use is up to the roles you grant.",
570
+ "signUpSettings.enabled": "People may sign up",
571
+ "signUpSettings.directory": "Directory",
572
+ "signUpSettings.directoryHint": "Sign-ups are created in this internal directory. Add one such as Customers under Directories.",
573
+ "signUpSettings.chooseDirectory": "Choose a directory",
574
+ "signUpSettings.domains": "Email domains",
575
+ "signUpSettings.domainsHint": "Only these domains may sign up; empty takes any. Separate them with commas.",
576
+ "signUpSettings.grantHint": "To give sign-ups a project, grant its Customer role to the group {group} in the project\u2019s members.",
577
+ "signUpSettings.save": "Save",
578
+ "signUpSettings.saved": "Sign-up saved.",
579
+ "anonymousAccess.title": "Anonymous access",
580
+ "anonymousAccess.subtitle": "Every role given to anonymous visitors. Anyone on the internet gets these, so keep them few.",
581
+ "anonymousAccess.role": "Role",
582
+ "anonymousAccess.scope": "Where",
583
+ "anonymousAccess.since": "Since",
584
+ "anonymousAccess.revoke": "Revoke",
585
+ "anonymousAccess.revokeTitle": "Revoke {role} in {scope} for anonymous visitors?",
586
+ "anonymousAccess.revoked": "Revoked.",
587
+ "anonymousAccess.empty": "Anonymous visitors have no roles anywhere.",
588
+ "merge.mergeInto": "Merge into another account",
589
+ "merge.pageTitle": "Merge into another account",
590
+ "merge.pageHint": "Everything {username} did, owns or is named in moves to the account you choose: records, comments, history, grants, groups, views, dashboards, subscriptions and what plugins keep. {username} stays, inactive, and can't sign in.",
591
+ "merge.alreadyMerged": "This account was merged into {survivor} already.",
592
+ "merge.chooseTitle": "The account that stays",
593
+ "merge.chooseHint": "Usually the person's real account: the one they sign in with.",
594
+ "merge.survivor": "Merge into",
595
+ "merge.searchPlaceholder": "Search by username, name or email",
596
+ "merge.searching": "Searching\u2026",
597
+ "merge.noMatches": "No account matches.",
598
+ "merge.sourceTitle": "Goes",
599
+ "merge.sourceHint": "Stays as an inactive account, merged into the other.",
600
+ "merge.survivorTitle": "Stays",
601
+ "merge.survivorHint": "Gets everything.",
602
+ "merge.previewTitle": "What moves",
603
+ "merge.previewHint": "Counted now; {product}'s own modules move in one transaction, plugins right after.",
604
+ "merge.nothing": "Nothing to move.",
605
+ "merge.pluginError": "This plugin couldn't say: {error}",
606
+ "merge.confirmTitle": "Merge",
607
+ "merge.activeWarning": "{username} can sign in. After the merge it can't: its owner signs in with the other account.",
608
+ "merge.activeOtherDirectory": "{username} can sign in, from another directory. After the merge it can't: its owner signs in with the other account. Merge only if they're the same person.",
609
+ "merge.typeUsername": "Type {username} to confirm",
610
+ "merge.noUndo": "A merge can't be undone. It's recorded on both accounts.",
611
+ "merge.mergeButton": "Merge {source} into {survivor}",
612
+ "merge.merged": "{source} merged into {survivor}.",
613
+ "merge.mergedIncomplete": "{source} merged into {survivor}, but a plugin didn't finish: resume it from the account's merges.",
614
+ "merge.mergedBanner": "This account was merged into <survivor></survivor>: its work, rights and addresses are there now. It can't sign in.",
615
+ "merge.title": "Merges ({count})",
616
+ "merge.hint": "Accounts merged into this one, or this one into another. Nothing here can be undone.",
617
+ "merge.none": "No merges.",
618
+ "merge.when": "When",
619
+ "merge.what": "What",
620
+ "merge.who": "By",
621
+ "merge.moved": "What moved",
622
+ "merge.state": "State",
623
+ "merge.done": "Done",
624
+ "merge.incomplete": "Incomplete",
625
+ "merge.resume": "Resume",
626
+ "merge.someone": "An administrator",
627
+ "merge.mergedInto": "Merged into <survivor></survivor>",
628
+ "merge.mergedFrom": "<source></source> ({name}) merged into this account",
629
+ "merge.reason.admin": "By an administrator",
630
+ "merge.reason.sign-up": "Automatic: signed up",
631
+ "merge.reason.confirmed-address": "Automatic: confirmed their address",
632
+ "merge.reason.account-created": "Automatic: account created",
633
+ "merge.reason.directory-sync": "Automatic: directory sync",
634
+ "merge.reason.address-added": "Automatic: address added",
635
+ "merge.step.failed": "failed",
636
+ "merge.step.pending": "not finished",
637
+ "merge.step.off": "off",
638
+ "merge.plugin": "Plugin {key}",
639
+ "merge.part.guard": "Accounts and permissions",
640
+ "merge.count.grants": "{count, plural, one {# role grant} other {# role grants}}",
641
+ "merge.count.memberships": "{count, plural, one {# group membership} other {# group memberships}}",
642
+ "merge.count.addresses": "{count, plural, one {# address} other {# addresses}}",
643
+ "merge.count.tokens": "{count, plural, one {# access token revoked} other {# access tokens revoked}}",
644
+ "duplicates.title": "Possible duplicates ({count})",
645
+ "duplicates.hint": "Accounts that share an address: often one person twice, such as someone a Jira import couldn't match. Merge them to make one.",
646
+ "duplicates.address": "Address",
647
+ "duplicates.accounts": "Accounts",
648
+ "duplicates.merge": "Merge",
649
+ "duplicates.mergeInto": "Merge {source} into {survivor}",
650
+ "addresses.title": "Email addresses ({count})",
651
+ "addresses.adminHint": "Every confirmed address finds this account: mail in, participants, sign-up and organizations by domain. Addresses you add are confirmed at once; mail goes to the one chosen.",
652
+ "addresses.selfHint": "Every confirmed address finds your account: mail you send in, requests shared with you, organizations by domain. We mail a link to each address you add; it counts once you follow it.",
653
+ "addresses.address": "Address",
654
+ "addresses.from": "From",
655
+ "addresses.source.directory": "Directory",
656
+ "addresses.source.admin": "Added by an administrator",
657
+ "addresses.source.person": "Added by its owner",
658
+ "addresses.source.merge": "From a merged account",
659
+ "addresses.state": "State",
660
+ "addresses.confirmed": "Confirmed",
661
+ "addresses.waiting": "Waiting for the link",
662
+ "addresses.addedAt": "Added",
663
+ "addresses.mail": "Mail",
664
+ "addresses.mailGoesHere": "Mail goes here",
665
+ "addresses.sendHere": "Send mail here",
666
+ "addresses.remove": "Remove",
667
+ "addresses.removeLabel": "Remove {email}",
668
+ "addresses.none": "No addresses.",
669
+ "addresses.placeholder": "someone@example.com",
670
+ "addresses.newAddress": "New address",
671
+ "addresses.add": "Add address",
672
+ "addresses.addAndSend": "Add and send link",
673
+ "addresses.addedToast": "{email} added and confirmed.",
674
+ "addresses.linkSent": "We sent a link to {email}. It counts once you follow it.",
675
+ "addresses.verifyTitle": "Confirm an address",
676
+ "addresses.verified": "{email} is confirmed for {username}.",
677
+ "addresses.toAccount": "Go to your account",
678
+ "addresses.primary": "Primary",
679
+ "addresses.makePrimary": "Make primary",
680
+ "addresses.makePrimaryLabel": "Make {email} the primary address",
681
+ "addresses.primaryChanged": "{email} is the primary address now. The one before stays confirmed, and was told.",
682
+ "addresses.fromDirectory": "The name and primary address come from {directory}: change them there, and the next sync brings them here.",
683
+ "status.account.Active": "Active",
684
+ "status.account.Inactive": "Inactive",
685
+ "status.account.Locked": "Locked",
686
+ "status.plugin.Enabled": "Enabled",
687
+ "status.plugin.Disabled": "Disabled",
688
+ "status.plugin.Installed": "Installed",
689
+ "status.plugin.Failed": "Failed",
690
+ "status.check.notRun": "Not run",
691
+ "status.check.pass": "Pass",
692
+ "status.check.fail": "Fail",
693
+ "status.sync.running": "Running",
694
+ "status.sync.succeeded": "Succeeded",
695
+ "status.sync.failed": "Failed",
696
+ "status.sync.never": "Never synced",
697
+ "common.account": "Account",
698
+ "common.actions": "Actions",
699
+ "common.active": "Active",
700
+ "common.cancel": "Cancel",
701
+ "common.delete": "Delete",
702
+ "common.description": "Description",
703
+ "common.direct": "Direct",
704
+ "common.directory": "Directory",
705
+ "common.disabled": "Disabled",
706
+ "common.displayName": "Display name",
707
+ "common.email": "Email",
708
+ "common.enabled": "Enabled",
709
+ "common.group": "Group",
710
+ "common.groups": "Groups",
711
+ "common.inactive": "Inactive",
712
+ "common.lastSignIn": "Last sign-in",
713
+ "common.membership": "Membership",
714
+ "common.name": "Name",
715
+ "common.nested": "Nested",
716
+ "common.no": "No",
717
+ "common.optional": "(optional)",
718
+ "common.order": "Order",
719
+ "common.password": "Password",
720
+ "common.path": "Path",
721
+ "common.product": "{product}",
722
+ "common.source": "Source",
723
+ "common.status": "Status",
724
+ "common.type": "Type",
725
+ "common.unknownError": "unknown error",
726
+ "common.username": "Username",
727
+ "common.users": "Users",
728
+ "common.yes": "Yes",
729
+ "nav.accounts": "Accounts",
730
+ "nav.groups": "Groups",
731
+ "nav.directories": "Directories",
732
+ "nav.signup": "Sign-up",
733
+ "nav.anonymous": "Anonymous access",
734
+ "secondFactor.disabled": "This site's operator has switched two-factor sign-in off for now: nobody is asked for a code.",
735
+ "secondFactor.kinds.app": "Authenticator app",
736
+ "secondFactor.kinds.email": "email",
737
+ "secondFactor.kinds.sms": "SMS",
738
+ "secondFactor.kinds.whatsapp": "WhatsApp",
739
+ "secondFactor.kinds.passkey": "Passkey"
740
+ };
741
+
742
+ // src/areas/guard/texts.ts
743
+ var useGuardTexts = createAreaTexts("guard", { en: en_default, ar: ar_default });
744
+ function useGuardNs(namespace) {
745
+ const t = useGuardTexts();
746
+ return useCallback((key, values) => t(`${namespace}.${key}`, values), [t, namespace]);
747
+ }
748
+ function withParts(text, parts) {
749
+ const pieces = text.split(/<(\w+)><\/\1>/);
750
+ return createElement(Fragment, null, ...pieces.map((piece, i) => i % 2 === 0 ? piece : createElement(Fragment, { key: i }, parts[piece] ?? null)));
751
+ }
752
+
753
+ // src/areas/guard/AccountEmailsPanel.tsx
754
+ import { jsx, jsxs } from "react/jsx-runtime";
755
+ function AccountEmailsPanel({ addresses, base, canEdit, onChange }) {
756
+ const t = useGuardNs("addresses");
757
+ const fmt = useFormatters();
758
+ const request = useAreaRequest("guard");
759
+ const action = useApiAction();
760
+ const [email, setEmail] = useState("");
761
+ const self = base === "/me";
762
+ const rows = [
763
+ ...addresses.directoryEmail ? [{ id: "directory", email: addresses.directoryEmail, source: "directory", verified: true, mailGoesHere: addresses.directoryMailGoesHere, addedAt: null }] : [],
764
+ ...(addresses.addresses ?? []).map((a) => ({
765
+ id: a.id,
766
+ email: a.email,
767
+ source: a.source,
768
+ verified: a.verifiedAt != null,
769
+ mailGoesHere: a.mailGoesHere,
770
+ addedAt: a.addedAt ?? null
771
+ }))
772
+ ];
773
+ async function add(e) {
774
+ e.preventDefault();
775
+ const added = email.trim();
776
+ const updated = await action.run(() => request(`${base}/emails`, { method: "POST", body: { email: added } }));
777
+ if (updated) {
778
+ setEmail("");
779
+ onChange(updated);
780
+ notify.success(self ? t("linkSent", { email: added }) : t("addedToast", { email: added }));
781
+ }
782
+ }
783
+ async function mailTo(row) {
784
+ const updated = await action.run(
785
+ () => request(`${base}/mail-to`, { method: "PUT", body: { email: row.source === "directory" ? null : row.email } })
786
+ );
787
+ if (updated) onChange(updated);
788
+ }
789
+ async function primary(row) {
790
+ const updated = await action.run(() => request(`${base}/emails/${row.id}/primary`, { method: "POST" }));
791
+ if (updated) {
792
+ onChange(updated);
793
+ notify.success(t("primaryChanged", { email: row.email }));
794
+ }
795
+ }
796
+ async function remove(row) {
797
+ const updated = await action.run(() => request(`${base}/emails/${row.id}`, { method: "DELETE" }));
798
+ if (updated) onChange(updated);
799
+ }
800
+ const columns = [
801
+ {
802
+ id: "email",
803
+ header: t("address"),
804
+ sortValue: (r) => r.email,
805
+ cell: (r) => /* @__PURE__ */ jsx(Text, { as: "span", fontWeight: r.mailGoesHere ? "medium" : void 0, dir: "ltr", wordBreak: "break-all", children: r.email })
806
+ },
807
+ { id: "source", header: t("from"), sortValue: (r) => r.source, cell: (r) => t(`source.${r.source}`) },
808
+ {
809
+ id: "state",
810
+ header: t("state"),
811
+ sortValue: (r) => r.verified ? 0 : 1,
812
+ cell: (r) => r.verified ? /* @__PURE__ */ jsx(StatusPill, { tone: "success", children: t("confirmed") }) : /* @__PURE__ */ jsx(StatusPill, { tone: "warning", children: t("waiting") })
813
+ },
814
+ { id: "added", header: t("addedAt"), nowrap: true, sortValue: (r) => r.addedAt ? new Date(r.addedAt) : null, cell: (r) => fmt.dateTime(r.addedAt) },
815
+ {
816
+ id: "mail",
817
+ header: t("mail"),
818
+ cell: (r) => r.mailGoesHere ? /* @__PURE__ */ jsx(StatusPill, { tone: "info", children: t("mailGoesHere") }) : canEdit && r.verified ? /* @__PURE__ */ jsx(Button, { size: "sm", onClick: () => mailTo(r), disabled: action.busy, children: t("sendHere") }) : null
819
+ },
820
+ {
821
+ id: "actions",
822
+ header: "",
823
+ cell: (r) => r.source === "directory" ? addresses.correctable ? /* @__PURE__ */ jsx(StatusPill, { tone: "accent", children: t("primary") }) : null : canEdit ? /* @__PURE__ */ jsxs(HStack, { gap: "2", justify: "flex-end", children: [
824
+ addresses.correctable && r.verified && /* @__PURE__ */ jsx(Button, { size: "sm", onClick: () => primary(r), disabled: action.busy, "aria-label": t("makePrimaryLabel", { email: r.email }), children: t("makePrimary") }),
825
+ /* @__PURE__ */ jsx(Button, { size: "sm", danger: true, onClick: () => remove(r), disabled: action.busy, "aria-label": t("removeLabel", { email: r.email }), children: t("remove") })
826
+ ] }) : null
827
+ }
828
+ ];
829
+ return /* @__PURE__ */ jsx(Panel, { title: t("title", { count: rows.length }), description: self ? t("selfHint") : t("adminHint"), "data-testid": "addresses", children: /* @__PURE__ */ jsxs(Stack, { gap: "field", children: [
830
+ /* @__PURE__ */ jsx(InlineAlert, { tone: "danger", children: action.error }),
831
+ !addresses.correctable && addresses.directory && /* @__PURE__ */ jsx(Text, { textStyle: "caption", color: "fg.muted", children: t("fromDirectory", { directory: addresses.directory }) }),
832
+ /* @__PURE__ */ jsx(DataTable, { "aria-label": t("title", { count: rows.length }), size: "sm", columns, rows, getRowId: (r) => r.id, empty: t("none") }),
833
+ canEdit && /* @__PURE__ */ jsx("form", { onSubmit: add, children: /* @__PURE__ */ jsxs(HStack, { gap: "2", align: "flex-end", wrap: "wrap", children: [
834
+ /* @__PURE__ */ jsx(
835
+ Input,
836
+ {
837
+ type: "email",
838
+ value: email,
839
+ onChange: (e) => setEmail(e.target.value),
840
+ placeholder: t("placeholder"),
841
+ "aria-label": t("newAddress"),
842
+ maxW: "sm",
843
+ dir: "ltr"
844
+ }
845
+ ),
846
+ /* @__PURE__ */ jsx(Button, { type: "submit", loading: action.busy, disabled: !email.trim(), children: self ? t("addAndSend") : t("add") })
847
+ ] }) })
848
+ ] }) });
849
+ }
850
+
851
+ // src/areas/guard/AccountNameEditor.tsx
852
+ import { useState as useState2 } from "react";
853
+ import { HStack as HStack2, Text as Text2 } from "@chakra-ui/react";
854
+ import { Button as Button2, notify as notify2, TranslatedInput, useApiAction as useApiAction2, useAreaRequest as useAreaRequest2 } from "@abpjs/ui";
855
+
856
+ // src/areas/guard/names.ts
857
+ import { useCallback as useCallback2 } from "react";
858
+ import { useAbpLocale, useHostLanguages } from "@abpjs/ui";
859
+ import { languageChain, pickName } from "@abpjs/ui/rules";
860
+ function useWrittenName() {
861
+ const { locale } = useAbpLocale();
862
+ const languages = useHostLanguages();
863
+ const fallback = languages[0]?.code;
864
+ return useCallback2(
865
+ (name, names) => pickName(languageChain(locale, fallback), { ...names ?? {}, en: name }, name),
866
+ [locale, fallback]
867
+ );
868
+ }
869
+
870
+ // src/areas/guard/AccountNameEditor.tsx
871
+ import { jsx as jsx2, jsxs as jsxs2 } from "react/jsx-runtime";
872
+ function AccountNameEditor({ name, names, base, correctable, onRenamed }) {
873
+ const t = useGuardNs("accountName");
874
+ const written = useWrittenName();
875
+ const request = useAreaRequest2("guard");
876
+ const action = useApiAction2();
877
+ const [editing, setEditing] = useState2(false);
878
+ const start = () => ({ ...names ?? {}, en: name });
879
+ const [value, setValue] = useState2(start);
880
+ const typed = (value.en ?? "").trim();
881
+ const others = (v) => Object.fromEntries(Object.entries(v).filter(([code, n]) => code !== "en" && n && n.trim()).map(([code, n]) => [code, n.trim()]));
882
+ const unchanged = typed === name && JSON.stringify(others(value)) === JSON.stringify(others(names ?? {}));
883
+ async function save(e) {
884
+ e.preventDefault();
885
+ const saved = await action.run(
886
+ () => request(`${base}/name`, {
887
+ method: "PUT",
888
+ body: { displayName: typed, displayNames: others(value) }
889
+ })
890
+ );
891
+ if (saved) {
892
+ setEditing(false);
893
+ onRenamed(saved.displayName);
894
+ notify2.success(t("saved", { name: written(saved.displayName, saved.displayNames) }));
895
+ }
896
+ }
897
+ if (!editing) {
898
+ return /* @__PURE__ */ jsxs2(HStack2, { gap: "2", children: [
899
+ /* @__PURE__ */ jsx2(Text2, { as: "span", children: written(name, names) }),
900
+ correctable && /* @__PURE__ */ jsx2(
901
+ Button2,
902
+ {
903
+ size: "xs",
904
+ variant: "ghost",
905
+ onClick: () => {
906
+ setValue(start());
907
+ setEditing(true);
908
+ },
909
+ children: t("change")
910
+ }
911
+ )
912
+ ] });
913
+ }
914
+ return /* @__PURE__ */ jsxs2("form", { onSubmit: save, children: [
915
+ /* @__PURE__ */ jsxs2(HStack2, { gap: "2", wrap: "wrap", align: "start", children: [
916
+ /* @__PURE__ */ jsx2(TranslatedInput, { size: "sm", value, onChange: setValue, fallback: name, "aria-label": t("label"), suggest: false, autoFocus: true }),
917
+ /* @__PURE__ */ jsx2(Button2, { size: "sm", type: "submit", loading: action.busy, disabled: !typed || unchanged, children: t("save") }),
918
+ /* @__PURE__ */ jsx2(Button2, { size: "sm", variant: "ghost", onClick: () => setEditing(false), children: t("cancel") }),
919
+ action.error && /* @__PURE__ */ jsx2(Text2, { as: "span", textStyle: "caption", color: "fg.error", children: action.error })
920
+ ] }),
921
+ /* @__PURE__ */ jsx2(Text2, { textStyle: "caption", color: "fg.muted", mt: "1", children: t("languagesHint") })
922
+ ] });
923
+ }
924
+
925
+ // src/areas/guard/AccountScreen.tsx
926
+ import { HStack as HStack5, Stack as Stack4, Text as Text6 } from "@chakra-ui/react";
927
+ import {
928
+ AppLink as AppLink2,
929
+ Button as Button5,
930
+ DataTable as DataTable3,
931
+ EMPTY_VALUE as EMPTY_VALUE2,
932
+ HostSlot,
933
+ InlineAlert as InlineAlert4,
934
+ Loading,
935
+ PageHeader,
936
+ Panel as Panel4,
937
+ PathChips,
938
+ PropertyList as PropertyList2,
939
+ RecordKey,
940
+ StatusPill as StatusPill5,
941
+ TextSlot,
942
+ useApiAction as useApiAction5,
943
+ useApiQuery as useApiQuery2,
944
+ useAreaRequest as useAreaRequest5,
945
+ useCan,
946
+ useFormatters as useFormatters4,
947
+ useMe,
948
+ useNavigate
949
+ } from "@abpjs/ui";
950
+
951
+ // src/areas/guard/AccountSecondFactorPanel.tsx
952
+ import { HStack as HStack3, Text as Text3 } from "@chakra-ui/react";
953
+ import { Button as Button3, EMPTY_VALUE, InlineAlert as InlineAlert2, notify as notify3, Panel as Panel2, PropertyList, StatusPill as StatusPill2, useApiAction as useApiAction3, useApiQuery, useAreaRequest as useAreaRequest3, useConfirm } from "@abpjs/ui";
954
+
955
+ // src/areas/guard/types.ts
956
+ var num = (value) => value == null || value === "" ? 0 : typeof value === "number" ? value : Number(value);
957
+
958
+ // src/areas/guard/AccountSecondFactorPanel.tsx
959
+ import { jsx as jsx3, jsxs as jsxs3 } from "react/jsx-runtime";
960
+ function AccountSecondFactorPanel({ accountId, name, canReset }) {
961
+ const t = useGuardNs("accountDetail.secondFactor");
962
+ const tf = useGuardNs("groupDetail.twoFactor");
963
+ const ts = useGuardNs("secondFactor");
964
+ const confirm = useConfirm();
965
+ const request = useAreaRequest3("guard");
966
+ const state = useApiQuery("guard", `/accounts/${accountId}/second-factors`);
967
+ const action = useApiAction3();
968
+ const data = state.data;
969
+ const factors = data?.factors ?? [];
970
+ async function reset() {
971
+ if (!await confirm({ title: t("resetTitle", { name }), description: t("resetHint"), confirmLabel: t("reset"), danger: true })) return;
972
+ const ok = await action.run(async () => {
973
+ await request(`/accounts/${accountId}/second-factors`, { method: "DELETE" });
974
+ return true;
975
+ });
976
+ if (ok) {
977
+ notify3.success(t("resetDone"));
978
+ await state.reload();
979
+ }
980
+ }
981
+ return /* @__PURE__ */ jsxs3(
982
+ Panel2,
983
+ {
984
+ title: t("title"),
985
+ actions: canReset && factors.length > 0 && /* @__PURE__ */ jsx3(Button3, { size: "sm", danger: true, onClick: () => void reset(), loading: action.busy, "data-testid": "reset-second-factor", children: t("reset") }),
986
+ "data-testid": "account-second-factor",
987
+ children: [
988
+ /* @__PURE__ */ jsx3(InlineAlert2, { tone: "danger", children: state.error ?? action.error }),
989
+ data?.disabled && /* @__PURE__ */ jsx3(InlineAlert2, { tone: "neutral", children: ts("disabled") }),
990
+ /* @__PURE__ */ jsx3(
991
+ PropertyList,
992
+ {
993
+ items: [
994
+ {
995
+ label: t("mode"),
996
+ value: data && /* @__PURE__ */ jsxs3(HStack3, { gap: "2", children: [
997
+ /* @__PURE__ */ jsx3(Text3, { as: "span", children: tf(`modes.${data.mode}`) }),
998
+ data.asked ? /* @__PURE__ */ jsx3(StatusPill2, { tone: "success", children: t("asked") }) : /* @__PURE__ */ jsx3(StatusPill2, { children: t("notAsked") })
999
+ ] })
1000
+ },
1001
+ { label: t("factors"), value: data && (factors.length ? factors.map((f) => ts(`kinds.${f.kind}`)).join(", ") : t("none")) },
1002
+ { label: t("recoveryLeft"), value: data && (factors.length ? String(num(data.recoveryCodesLeft)) : EMPTY_VALUE) }
1003
+ ]
1004
+ }
1005
+ )
1006
+ ]
1007
+ }
1008
+ );
1009
+ }
1010
+
1011
+ // src/areas/guard/MergeParts.tsx
1012
+ import { HStack as HStack4, Stack as Stack2, Text as Text4 } from "@chakra-ui/react";
1013
+ import { AppLink, Button as Button4, DataTable as DataTable2, InlineAlert as InlineAlert3, Panel as Panel3, StatusPill as StatusPill3, useApiAction as useApiAction4, useAreaRequest as useAreaRequest4, useFormatters as useFormatters2 } from "@abpjs/ui";
1014
+
1015
+ // src/areas/guard/routes.ts
1016
+ function guardRoutes(base = "/admin") {
1017
+ const root = base.replace(/\/$/, "");
1018
+ const one = (kind) => (id) => `${root}/${kind}/${encodeURIComponent(id)}`;
1019
+ return {
1020
+ directories: `${root}/directories`,
1021
+ directory: one("directories"),
1022
+ accounts: `${root}/accounts`,
1023
+ account: one("accounts"),
1024
+ accountMerge: (id) => `${one("accounts")(id)}/merge`,
1025
+ groups: `${root}/groups`,
1026
+ group: one("groups")
1027
+ };
1028
+ }
1029
+
1030
+ // src/areas/guard/MergeParts.tsx
1031
+ import { jsx as jsx4, jsxs as jsxs4 } from "react/jsx-runtime";
1032
+ function useCountLabel() {
1033
+ const t = useGuardNs("merge");
1034
+ return (c) => {
1035
+ const key = `count.${c.key.replace(/\./g, "_")}`;
1036
+ const text = t(key, { count: c.count });
1037
+ return text === `merge.${key}` ? `${c.label ?? c.key}: ${c.count}` : text;
1038
+ };
1039
+ }
1040
+ function usePartLabel() {
1041
+ const t = useGuardNs("merge");
1042
+ return (key, plugin) => {
1043
+ if (plugin) return t("plugin", { key });
1044
+ const text = t(`part.${key}`);
1045
+ return text === `merge.part.${key}` ? key : text;
1046
+ };
1047
+ }
1048
+ function CountList({ counts }) {
1049
+ const label = useCountLabel();
1050
+ const t = useGuardNs("merge");
1051
+ if (counts.length === 0) return /* @__PURE__ */ jsx4(Text4, { color: "fg.muted", children: t("nothing") });
1052
+ return /* @__PURE__ */ jsx4(Stack2, { gap: "0.5", as: "ul", listStyleType: "none", ps: "0", m: "0", children: counts.map((c) => /* @__PURE__ */ jsx4(Text4, { as: "li", textStyle: "body.sm", children: label(c) }, c.key)) });
1053
+ }
1054
+ function MergesPanel({ accountId, merges, onChange, routes = guardRoutes() }) {
1055
+ const t = useGuardNs("merge");
1056
+ const fmt = useFormatters2();
1057
+ const partLabel = usePartLabel();
1058
+ const request = useAreaRequest4("guard");
1059
+ const action = useApiAction4();
1060
+ async function resume(m) {
1061
+ if (await action.run(() => request(`/merges/${m.id}/resume`, { method: "POST" }))) await onChange();
1062
+ }
1063
+ const columns = [
1064
+ { id: "when", header: t("when"), nowrap: true, sortValue: (m) => new Date(m.startedAt), cell: (m) => fmt.dateTime(m.startedAt) },
1065
+ {
1066
+ id: "what",
1067
+ header: t("what"),
1068
+ cell: (m) => m.sourceId === accountId ? /* @__PURE__ */ jsx4(Text4, { as: "span", children: withParts(t("mergedInto"), {
1069
+ survivor: /* @__PURE__ */ jsx4(AppLink, { href: routes.account(m.survivorId), fontWeight: "medium", children: m.survivorUsername })
1070
+ }) }) : /* @__PURE__ */ jsx4(Text4, { as: "span", children: withParts(t("mergedFrom", { name: m.sourceDisplayName ?? "" }), {
1071
+ source: /* @__PURE__ */ jsx4(AppLink, { href: routes.account(m.sourceId), fontWeight: "medium", children: m.sourceUsername })
1072
+ }) })
1073
+ },
1074
+ {
1075
+ id: "who",
1076
+ header: t("who"),
1077
+ cell: (m) => m.automatic ? /* @__PURE__ */ jsx4(StatusPill3, { tone: "accent", children: t(`reason.${m.reason}`) }) : m.actorUsername ?? t("someone")
1078
+ },
1079
+ {
1080
+ id: "moved",
1081
+ header: t("moved"),
1082
+ cell: (m) => /* @__PURE__ */ jsx4(Stack2, { gap: "1", children: m.steps.filter((s) => s.counts.length > 0 || s.state !== "done").map((s) => /* @__PURE__ */ jsxs4(Stack2, { gap: "0", children: [
1083
+ /* @__PURE__ */ jsxs4(Text4, { textStyle: "caption", color: "fg.muted", children: [
1084
+ partLabel(s.key, s.plugin),
1085
+ s.state !== "done" && ` \xB7 ${t(`step.${s.state}`)}`
1086
+ ] }),
1087
+ s.error && /* @__PURE__ */ jsx4(Text4, { textStyle: "caption", color: "fg.danger", children: s.error }),
1088
+ /* @__PURE__ */ jsx4(CountList, { counts: s.counts })
1089
+ ] }, s.key)) })
1090
+ },
1091
+ {
1092
+ id: "state",
1093
+ header: t("state"),
1094
+ cell: (m) => m.state === "done" ? /* @__PURE__ */ jsx4(StatusPill3, { tone: "success", children: t("done") }) : /* @__PURE__ */ jsxs4(HStack4, { gap: "2", wrap: "wrap", children: [
1095
+ /* @__PURE__ */ jsx4(StatusPill3, { tone: "warning", children: t("incomplete") }),
1096
+ /* @__PURE__ */ jsx4(Button4, { size: "sm", onClick: () => resume(m), loading: action.busy, children: t("resume") })
1097
+ ] })
1098
+ }
1099
+ ];
1100
+ return /* @__PURE__ */ jsxs4(Panel3, { title: t("title", { count: merges.length }), description: t("hint"), flush: true, "data-testid": "merges", children: [
1101
+ /* @__PURE__ */ jsx4(InlineAlert3, { tone: "danger", children: action.error }),
1102
+ /* @__PURE__ */ jsx4(
1103
+ DataTable2,
1104
+ {
1105
+ "aria-label": t("title", { count: merges.length }),
1106
+ columns,
1107
+ rows: merges,
1108
+ getRowId: (m) => m.id,
1109
+ defaultSort: { columnId: "when", direction: "desc" },
1110
+ empty: t("none")
1111
+ }
1112
+ )
1113
+ ] });
1114
+ }
1115
+
1116
+ // src/areas/guard/status.tsx
1117
+ import { Stack as Stack3, Text as Text5 } from "@chakra-ui/react";
1118
+ import { StatusPill as StatusPill4, useFormatters as useFormatters3 } from "@abpjs/ui";
1119
+ import { jsx as jsx5, jsxs as jsxs5 } from "react/jsx-runtime";
1120
+ var accountTone = { Active: "success", Inactive: "neutral", Locked: "danger" };
1121
+ function AccountStatusPill({ status }) {
1122
+ const t = useGuardNs("status.account");
1123
+ const known = Object.hasOwn(accountTone, status) ? status : null;
1124
+ return /* @__PURE__ */ jsx5(StatusPill4, { tone: known ? accountTone[known] : "neutral", children: known ? t(known) : status });
1125
+ }
1126
+ var pluginTone = { Enabled: "success", Disabled: "neutral", Installed: "info", Failed: "danger" };
1127
+ function PluginStatePill({ state }) {
1128
+ const t = useGuardNs("status.plugin");
1129
+ const known = Object.hasOwn(pluginTone, state) ? state : null;
1130
+ return /* @__PURE__ */ jsx5(StatusPill4, { tone: known ? pluginTone[known] : "neutral", children: known ? t(known) : state });
1131
+ }
1132
+ function FlagPill({ value, yes, no }) {
1133
+ return /* @__PURE__ */ jsx5(StatusPill4, { tone: value ? "success" : "neutral", children: value ? yes : no });
1134
+ }
1135
+ function PassFail({ ok }) {
1136
+ const t = useGuardNs("status.check");
1137
+ if (ok == null) return /* @__PURE__ */ jsx5(StatusPill4, { children: t("notRun") });
1138
+ return /* @__PURE__ */ jsx5(StatusPill4, { tone: ok ? "success" : "danger", children: ok ? t("pass") : t("fail") });
1139
+ }
1140
+ function SyncResultPill({ succeeded }) {
1141
+ const t = useGuardNs("status.sync");
1142
+ if (succeeded == null) return /* @__PURE__ */ jsx5(StatusPill4, { tone: "warning", children: t("running") });
1143
+ return /* @__PURE__ */ jsx5(StatusPill4, { tone: succeeded ? "success" : "danger", children: succeeded ? t("succeeded") : t("failed") });
1144
+ }
1145
+ function SyncStatus({ d }) {
1146
+ const t = useGuardNs("status.sync");
1147
+ const fmt = useFormatters3();
1148
+ if (!d.lastSyncAt) return /* @__PURE__ */ jsx5(StatusPill4, { children: t("never") });
1149
+ return /* @__PURE__ */ jsxs5(Stack3, { gap: "0.5", align: "flex-start", minW: "0", maxW: "full", children: [
1150
+ /* @__PURE__ */ jsx5(SyncResultPill, { succeeded: d.lastSyncSucceeded ?? null }),
1151
+ /* @__PURE__ */ jsx5(Text5, { textStyle: "caption", color: "fg.muted", children: fmt.dateTime(d.lastSyncAt) }),
1152
+ d.lastSyncMessage && /* @__PURE__ */ jsx5(Text5, { textStyle: "caption", color: "fg.muted", maxW: "full", truncate: true, dir: "auto", title: d.lastSyncMessage, children: d.lastSyncMessage })
1153
+ ] });
1154
+ }
1155
+
1156
+ // src/areas/guard/AccountScreen.tsx
1157
+ import { Fragment as Fragment2, jsx as jsx6, jsxs as jsxs6 } from "react/jsx-runtime";
1158
+ function useAccountCan(detail) {
1159
+ const can = useCan();
1160
+ return (action) => detail?.can?.[action] ?? can("guard.site.admin");
1161
+ }
1162
+ var NO_ADDRESSES = { directoryEmail: null, directoryMailGoesHere: false, mailTo: null, addresses: [] };
1163
+ function AccountScreen({ id, routes = guardRoutes() }) {
1164
+ const t = useGuardNs("accountDetail");
1165
+ const tm = useGuardNs("merge");
1166
+ const tc = useGuardNs("common");
1167
+ const tn = useGuardNs("nav");
1168
+ const fmt = useFormatters4();
1169
+ const navigate = useNavigate();
1170
+ const me = useMe();
1171
+ const request = useAreaRequest5("guard");
1172
+ const detail = useApiQuery2("guard", `/accounts/${id}`);
1173
+ const action = useApiAction5();
1174
+ const may = useAccountCan(detail.data);
1175
+ async function setLocked(lock) {
1176
+ const updated = await action.run(() => request(`/accounts/${id}/${lock ? "lock" : "unlock"}`, { method: "POST" }));
1177
+ if (updated) await detail.reload();
1178
+ }
1179
+ if (detail.error && !detail.data) return /* @__PURE__ */ jsx6(InlineAlert4, { tone: "danger", children: detail.error });
1180
+ const data = detail.data;
1181
+ const account = data?.account;
1182
+ const merged = account?.mergedIntoId != null;
1183
+ const slotContext = { account, detail: data, reload: detail.reload };
1184
+ const identityColumns = [
1185
+ { id: "order", header: tc("order"), numeric: true, sortValue: (i) => i.directoryOrder, cell: (i) => i.directoryOrder },
1186
+ {
1187
+ id: "directory",
1188
+ header: tc("directory"),
1189
+ sortValue: (i) => i.directoryName,
1190
+ cell: (i) => /* @__PURE__ */ jsx6(AppLink2, { href: routes.directory(i.directoryId), fontWeight: i.isWinning ? "medium" : void 0, children: i.directoryName })
1191
+ },
1192
+ { id: "username", header: tc("username"), sortValue: (i) => i.username, cell: (i) => /* @__PURE__ */ jsx6(RecordKey, { value: i.username }), skeleton: "key" },
1193
+ {
1194
+ id: "externalId",
1195
+ header: t("externalId"),
1196
+ cell: (i) => /* @__PURE__ */ jsx6(Text6, { as: "span", textStyle: "code", color: "fg.muted", wordBreak: "break-all", dir: "ltr", children: i.externalId })
1197
+ },
1198
+ { id: "displayName", header: tc("displayName"), sortValue: (i) => i.displayName, cell: (i) => i.displayName ?? EMPTY_VALUE2, skeleton: "person" },
1199
+ { id: "email", header: tc("email"), sortValue: (i) => i.email, cell: (i) => i.email ?? EMPTY_VALUE2 },
1200
+ {
1201
+ id: "active",
1202
+ header: tc("active"),
1203
+ sortValue: (i) => i.isActive,
1204
+ cell: (i) => i.isActive ? /* @__PURE__ */ jsx6(StatusPill5, { tone: "success", children: tc("active") }) : /* @__PURE__ */ jsx6(StatusPill5, { children: tc("inactive") }),
1205
+ skeleton: "pill"
1206
+ },
1207
+ {
1208
+ id: "synced",
1209
+ header: t("lastSynced"),
1210
+ nowrap: true,
1211
+ sortValue: (i) => i.lastSyncedAt ? new Date(i.lastSyncedAt) : null,
1212
+ cell: (i) => fmt.dateTime(i.lastSyncedAt),
1213
+ skeleton: "date",
1214
+ skeletonWidth: 17
1215
+ },
1216
+ {
1217
+ id: "precedence",
1218
+ header: t("precedence"),
1219
+ sortValue: (i) => i.isWinning,
1220
+ cell: (i) => i.isWinning ? /* @__PURE__ */ jsx6(StatusPill5, { tone: "success", children: t("winning") }) : /* @__PURE__ */ jsx6(StatusPill5, { children: t("shadowed") }),
1221
+ skeleton: "pill"
1222
+ }
1223
+ ];
1224
+ const groupColumns = [
1225
+ {
1226
+ id: "group",
1227
+ header: tc("group"),
1228
+ sortValue: (g) => g.name,
1229
+ cell: (g) => /* @__PURE__ */ jsx6(AppLink2, { href: routes.group(g.groupId), fontWeight: "medium", children: g.name })
1230
+ },
1231
+ { id: "directory", header: tc("directory"), sortValue: (g) => g.directoryName, cell: (g) => g.directoryName },
1232
+ {
1233
+ id: "membership",
1234
+ header: tc("membership"),
1235
+ sortValue: (g) => g.direct ? 0 : 1,
1236
+ cell: (g) => g.direct ? /* @__PURE__ */ jsx6(StatusPill5, { tone: "info", children: tc("direct") }) : /* @__PURE__ */ jsx6(StatusPill5, { children: tc("nested") }),
1237
+ skeleton: "pill"
1238
+ },
1239
+ { id: "path", header: tc("path"), sortValue: (g) => g.path.length, cell: (g) => /* @__PURE__ */ jsx6(PathChips, { path: g.path }), skeleton: () => /* @__PURE__ */ jsx6(PathChips, { path: [], loading: true }) }
1240
+ ];
1241
+ return /* @__PURE__ */ jsxs6(Loading, { when: !data, children: [
1242
+ /* @__PURE__ */ jsx6(
1243
+ PageHeader,
1244
+ {
1245
+ breadcrumbs: [{ label: tn("accounts"), href: routes.accounts }, { label: account?.username }],
1246
+ title: account && (account.displayName || account.username),
1247
+ meta: /* @__PURE__ */ jsxs6(Fragment2, { children: [
1248
+ account ? /* @__PURE__ */ jsx6(AccountStatusPill, { status: account.status }) : /* @__PURE__ */ jsx6(StatusPill5, {}),
1249
+ /* @__PURE__ */ jsx6(RecordKey, { value: account?.username, variant: "muted" }),
1250
+ /* @__PURE__ */ jsx6(Text6, { as: "span", children: /* @__PURE__ */ jsx6(TextSlot, { width: 12, children: account?.directoryName }) }),
1251
+ account?.statusReason && /* @__PURE__ */ jsx6(Text6, { as: "span", children: account.statusReason })
1252
+ ] }),
1253
+ actions: !merged && /* @__PURE__ */ jsxs6(HStack5, { gap: "2", children: [
1254
+ account && /* @__PURE__ */ jsx6(HostSlot, { name: "guard.account.actions", context: slotContext }),
1255
+ may("merge") && /* @__PURE__ */ jsx6(Button5, { onClick: () => navigate(routes.accountMerge(account?.id ?? id)), children: tm("mergeInto") }),
1256
+ account?.status === "Locked" ? may("unlock") && /* @__PURE__ */ jsx6(Button5, { onClick: () => setLocked(false), loading: action.busy, children: t("unlock") }) : may("lock") && /* @__PURE__ */ jsx6(Button5, { danger: true, onClick: () => setLocked(true), loading: action.busy, children: t("lock") })
1257
+ ] })
1258
+ }
1259
+ ),
1260
+ /* @__PURE__ */ jsxs6(Stack4, { gap: "section", children: [
1261
+ /* @__PURE__ */ jsx6(InlineAlert4, { tone: "danger", children: action.error }),
1262
+ merged && /* @__PURE__ */ jsx6(InlineAlert4, { tone: "info", "data-testid": "merged", children: withParts(tm("mergedBanner"), {
1263
+ survivor: /* @__PURE__ */ jsx6(AppLink2, { href: routes.account(account?.mergedIntoId ?? ""), fontWeight: "medium", children: data?.mergedIntoUsername ?? account?.mergedIntoId })
1264
+ }) }),
1265
+ account && /* @__PURE__ */ jsx6(HostSlot, { name: "guard.account.notices", context: slotContext }),
1266
+ /* @__PURE__ */ jsx6(Panel4, { title: t("account"), children: /* @__PURE__ */ jsx6(
1267
+ PropertyList2,
1268
+ {
1269
+ items: [
1270
+ {
1271
+ label: tc("displayName"),
1272
+ value: account && /* @__PURE__ */ jsx6(
1273
+ AccountNameEditor,
1274
+ {
1275
+ name: account.displayName || account.username,
1276
+ names: account.displayNames,
1277
+ base: `/accounts/${account.id}`,
1278
+ correctable: (data?.addresses?.correctable ?? false) && may("update"),
1279
+ onRenamed: () => void detail.reload()
1280
+ }
1281
+ )
1282
+ },
1283
+ { label: tc("email"), value: account && (account.email ?? EMPTY_VALUE2) },
1284
+ { label: t("owningDirectory"), value: account?.directoryName },
1285
+ { label: tc("lastSignIn"), value: account && fmt.dateTime(account.lastLoginAt) }
1286
+ ]
1287
+ }
1288
+ ) }),
1289
+ !merged && account && /* @__PURE__ */ jsx6(
1290
+ AccountSecondFactorPanel,
1291
+ {
1292
+ accountId: account.id,
1293
+ name: account.displayName || account.username,
1294
+ canReset: may("resetSecondFactor") && account.id !== me?.accountId
1295
+ }
1296
+ ),
1297
+ !merged && /* @__PURE__ */ jsx6(
1298
+ AccountEmailsPanel,
1299
+ {
1300
+ addresses: data?.addresses ?? NO_ADDRESSES,
1301
+ base: `/accounts/${account?.id ?? id}`,
1302
+ canEdit: may("update"),
1303
+ onChange: (updated) => data && detail.setData({ ...data, addresses: updated })
1304
+ }
1305
+ ),
1306
+ account && /* @__PURE__ */ jsx6(HostSlot, { name: "guard.account.panels", context: slotContext }),
1307
+ /* @__PURE__ */ jsx6(
1308
+ Panel4,
1309
+ {
1310
+ title: /* @__PURE__ */ jsx6(TextSlot, { width: 14, children: t("identities", { count: data?.identities.length ?? 0 }) }),
1311
+ description: t("identitiesHint"),
1312
+ flush: true,
1313
+ children: /* @__PURE__ */ jsx6(
1314
+ DataTable3,
1315
+ {
1316
+ "aria-label": t("identities", { count: data?.identities.length ?? 0 }),
1317
+ size: "sm",
1318
+ columns: identityColumns,
1319
+ rows: data?.identities,
1320
+ skeletonRows: 1,
1321
+ getRowId: (i) => `${i.directoryId}:${i.externalId}`,
1322
+ defaultSort: { columnId: "order", direction: "asc" },
1323
+ rowProps: (i) => i.isWinning ? { "data-selected": "" } : void 0,
1324
+ empty: t("noIdentities")
1325
+ }
1326
+ )
1327
+ }
1328
+ ),
1329
+ /* @__PURE__ */ jsx6(Panel4, { title: /* @__PURE__ */ jsx6(TextSlot, { width: 20, children: t("effectiveGroups", { count: data?.groups.length ?? 0 }) }), flush: true, children: /* @__PURE__ */ jsx6(
1330
+ DataTable3,
1331
+ {
1332
+ "aria-label": t("effectiveGroups", { count: data?.groups.length ?? 0 }),
1333
+ columns: groupColumns,
1334
+ rows: data?.groups,
1335
+ getRowId: (g) => g.groupId,
1336
+ defaultSort: { columnId: "path", direction: "asc" },
1337
+ empty: t("noGroups")
1338
+ }
1339
+ ) }),
1340
+ data && (data.merges.length > 0 || may("merge")) && /* @__PURE__ */ jsx6(MergesPanel, { accountId: data.account.id, merges: data.merges, onChange: detail.reload, routes })
1341
+ ] })
1342
+ ] });
1343
+ }
1344
+
1345
+ // src/areas/guard/AccountsScreen.tsx
1346
+ import { useState as useState3 } from "react";
1347
+ import { HStack as HStack7, Input as Input2, SimpleGrid, Stack as Stack6, Text as Text9 } from "@chakra-ui/react";
1348
+ import {
1349
+ Button as Button6,
1350
+ DataTable as DataTable5,
1351
+ EMPTY_VALUE as EMPTY_VALUE3,
1352
+ errorText,
1353
+ Field,
1354
+ InlineAlert as InlineAlert5,
1355
+ notify as notify4,
1356
+ PageHeader as PageHeader2,
1357
+ Panel as Panel6,
1358
+ RecordKey as RecordKey3,
1359
+ SearchInput,
1360
+ SelectField,
1361
+ useApiQuery as useApiQuery4,
1362
+ useAreaListSource,
1363
+ useAreaRequest as useAreaRequest6,
1364
+ useCan as useCan2,
1365
+ useFormatters as useFormatters6,
1366
+ useListState
1367
+ } from "@abpjs/ui";
1368
+
1369
+ // src/areas/guard/DuplicatesPanel.tsx
1370
+ import { HStack as HStack6, Stack as Stack5, Text as Text7 } from "@chakra-ui/react";
1371
+ import { AppLink as AppLink3, DataTable as DataTable4, Panel as Panel5, RecordKey as RecordKey2, useApiQuery as useApiQuery3 } from "@abpjs/ui";
1372
+ import { jsx as jsx7, jsxs as jsxs7 } from "react/jsx-runtime";
1373
+ function DuplicatesPanel({ routes = guardRoutes() }) {
1374
+ const t = useGuardNs("duplicates");
1375
+ const duplicates = useApiQuery3("guard", "/accounts/duplicates");
1376
+ const rows = duplicates.data ?? [];
1377
+ if (rows.length === 0) return null;
1378
+ const columns = [
1379
+ {
1380
+ id: "email",
1381
+ header: t("address"),
1382
+ sortValue: (d) => d.email,
1383
+ cell: (d) => /* @__PURE__ */ jsx7(Text7, { as: "span", dir: "ltr", wordBreak: "break-all", children: d.email })
1384
+ },
1385
+ {
1386
+ id: "accounts",
1387
+ header: t("accounts"),
1388
+ cell: (d) => /* @__PURE__ */ jsx7(Stack5, { gap: "1", children: d.accounts.map((a) => /* @__PURE__ */ jsxs7(HStack6, { gap: "2", wrap: "wrap", children: [
1389
+ /* @__PURE__ */ jsx7(RecordKey2, { value: a.username, href: routes.account(a.id) }),
1390
+ /* @__PURE__ */ jsx7(Text7, { as: "span", textStyle: "caption", color: "fg.muted", children: a.directoryName }),
1391
+ /* @__PURE__ */ jsx7(AccountStatusPill, { status: a.status })
1392
+ ] }, a.id)) })
1393
+ },
1394
+ {
1395
+ id: "merge",
1396
+ header: t("merge"),
1397
+ cell: (d) => /* @__PURE__ */ jsx7(Stack5, { gap: "1", children: d.accounts.slice(1).map((a) => /* @__PURE__ */ jsx7(AppLink3, { href: `${routes.accountMerge(a.id)}?into=${d.accounts[0].id}`, children: t("mergeInto", { source: a.username, survivor: d.accounts[0].username }) }, a.id)) })
1398
+ }
1399
+ ];
1400
+ return /* @__PURE__ */ jsx7(Panel5, { title: t("title", { count: rows.length }), description: t("hint"), flush: true, "data-testid": "duplicates", children: /* @__PURE__ */ jsx7(
1401
+ DataTable4,
1402
+ {
1403
+ "aria-label": t("title", { count: rows.length }),
1404
+ columns,
1405
+ rows,
1406
+ getRowId: (d) => d.email,
1407
+ defaultSort: { columnId: "email", direction: "asc" }
1408
+ }
1409
+ ) });
1410
+ }
1411
+
1412
+ // src/areas/guard/ListFooter.tsx
1413
+ import { Flex, Text as Text8 } from "@chakra-ui/react";
1414
+ import { formatMessage, Pagination, useAbpLabels, useAbpLocale as useAbpLocale2, useFormatters as useFormatters5 } from "@abpjs/ui";
1415
+ import { jsx as jsx8, jsxs as jsxs8 } from "react/jsx-runtime";
1416
+ function ListFooter({ list }) {
1417
+ const labels = useAbpLabels().queryList;
1418
+ const { locale } = useAbpLocale2();
1419
+ const fmt = useFormatters5();
1420
+ const { page, pageSize } = list.query;
1421
+ const from = list.total === 0 ? 0 : (page - 1) * pageSize + 1;
1422
+ const to = Math.min(page * pageSize, list.total);
1423
+ if (list.rows === void 0 || list.total === 0) return null;
1424
+ return /* @__PURE__ */ jsxs8(Flex, { gap: "3", align: "center", justify: "space-between", wrap: "wrap", children: [
1425
+ /* @__PURE__ */ jsx8(
1426
+ Pagination,
1427
+ {
1428
+ ...list.pagination,
1429
+ disabled: list.refreshing,
1430
+ label: labels.pages,
1431
+ previous: labels.previous,
1432
+ next: labels.next,
1433
+ pageLabel: (n) => formatMessage(locale, labels.page, { page: fmt.number(n) })
1434
+ }
1435
+ ),
1436
+ /* @__PURE__ */ jsx8(Text8, { textStyle: "caption", color: "fg.muted", fontVariantNumeric: "tabular-nums", "aria-live": "polite", children: formatMessage(locale, labels.range, { from: fmt.number(from), to: fmt.number(to), total: fmt.number(list.total) }) })
1437
+ ] });
1438
+ }
1439
+
1440
+ // src/areas/guard/AccountsScreen.tsx
1441
+ import { Fragment as Fragment3, jsx as jsx9, jsxs as jsxs9 } from "react/jsx-runtime";
1442
+ var INTERNAL_DIRECTORY = "00000000-0000-0000-0000-00000000d001";
1443
+ var STATUSES = ["Active", "Inactive", "Locked"];
1444
+ function AccountsScreen({ routes = guardRoutes(), source }) {
1445
+ const t = useGuardNs("accounts");
1446
+ const tc = useGuardNs("common");
1447
+ const ts = useGuardNs("status.account");
1448
+ const fmt = useFormatters6();
1449
+ const can = useCan2();
1450
+ const admin = can("guard.site.admin");
1451
+ const served = useAreaListSource("guard", "/accounts/page", { sortFields: { lastSignIn: "lastLoginAt" } });
1452
+ const list = useListState(source ?? served, { initial: { sort: { columnId: "username", direction: "asc" } } });
1453
+ const [creating, setCreating] = useState3(false);
1454
+ const columns = [
1455
+ { id: "username", header: tc("username"), sortValue: (a) => a.username, cell: (a) => /* @__PURE__ */ jsx9(RecordKey3, { value: a.username, href: routes.account(a.id) }), skeleton: "key" },
1456
+ { id: "displayName", header: tc("displayName"), sortValue: (a) => a.displayName, cell: (a) => a.displayName || EMPTY_VALUE3, skeleton: "person" },
1457
+ {
1458
+ id: "email",
1459
+ header: tc("email"),
1460
+ sortValue: (a) => a.email,
1461
+ cell: (a) => a.email ? /* @__PURE__ */ jsx9(Text9, { as: "span", color: "fg.muted", dir: "ltr", wordBreak: "break-all", children: a.email }) : EMPTY_VALUE3
1462
+ },
1463
+ { id: "directory", header: tc("directory"), cell: (a) => a.directoryName },
1464
+ { id: "status", header: tc("status"), sortValue: (a) => a.status, cell: (a) => /* @__PURE__ */ jsx9(AccountStatusPill, { status: a.status }), skeleton: "pill" },
1465
+ {
1466
+ id: "lastSignIn",
1467
+ header: tc("lastSignIn"),
1468
+ nowrap: true,
1469
+ sortValue: (a) => a.lastLoginAt ? new Date(a.lastLoginAt) : null,
1470
+ cell: (a) => /* @__PURE__ */ jsx9(Text9, { as: "span", color: "fg.muted", children: fmt.dateTime(a.lastLoginAt) }),
1471
+ skeleton: "date"
1472
+ }
1473
+ ];
1474
+ return /* @__PURE__ */ jsxs9(Fragment3, { children: [
1475
+ /* @__PURE__ */ jsx9(
1476
+ PageHeader2,
1477
+ {
1478
+ title: t("title"),
1479
+ description: t("subtitle"),
1480
+ actions: !creating && admin && /* @__PURE__ */ jsx9(Button6, { variant: "primary", onClick: () => setCreating(true), children: t("create") })
1481
+ }
1482
+ ),
1483
+ /* @__PURE__ */ jsxs9(Stack6, { gap: "section", children: [
1484
+ creating && /* @__PURE__ */ jsx9(
1485
+ CreateAccount,
1486
+ {
1487
+ onDone: (created) => {
1488
+ setCreating(false);
1489
+ notify4.success(t("created", { username: created.username }));
1490
+ list.reload();
1491
+ },
1492
+ onCancel: () => setCreating(false)
1493
+ }
1494
+ ),
1495
+ /* @__PURE__ */ jsxs9(Stack6, { gap: "field", children: [
1496
+ /* @__PURE__ */ jsxs9(HStack7, { gap: "2", wrap: "wrap", children: [
1497
+ /* @__PURE__ */ jsx9(
1498
+ SearchInput,
1499
+ {
1500
+ size: "sm",
1501
+ maxW: "sm",
1502
+ value: list.query.search,
1503
+ onChange: (e) => list.setSearch(e.target.value),
1504
+ placeholder: t("searchPlaceholder"),
1505
+ "aria-label": t("search")
1506
+ }
1507
+ ),
1508
+ /* @__PURE__ */ jsx9(
1509
+ SelectField,
1510
+ {
1511
+ size: "sm",
1512
+ maxW: "12rem",
1513
+ "aria-label": tc("status"),
1514
+ value: list.query.filters.status ?? "",
1515
+ onChange: (e) => list.setFilter("status", e.target.value || null),
1516
+ options: [{ value: "", label: t("allStatuses") }, ...STATUSES.map((s) => ({ value: s, label: ts(s) }))]
1517
+ }
1518
+ )
1519
+ ] }),
1520
+ /* @__PURE__ */ jsx9(DataTable5, { "aria-label": t("title"), columns, getRowId: (a) => a.id, empty: t("empty"), ...list.table }),
1521
+ /* @__PURE__ */ jsx9(ListFooter, { list })
1522
+ ] }),
1523
+ admin && /* @__PURE__ */ jsx9(DuplicatesPanel, { routes })
1524
+ ] })
1525
+ ] });
1526
+ }
1527
+ function CreateAccount({ onDone, onCancel }) {
1528
+ const t = useGuardNs("accounts");
1529
+ const tc = useGuardNs("common");
1530
+ const request = useAreaRequest6("guard");
1531
+ const [form, setForm] = useState3({ username: "", displayName: "", email: "", password: "" });
1532
+ const [directoryId, setDirectoryId] = useState3("");
1533
+ const [error, setError] = useState3(null);
1534
+ const [busy, setBusy] = useState3(false);
1535
+ const internal = (useApiQuery4("guard", "/directories").data ?? []).filter((d) => d.type === "internal");
1536
+ async function submit(e) {
1537
+ e.preventDefault();
1538
+ setBusy(true);
1539
+ setError(null);
1540
+ try {
1541
+ const created = await request("/accounts", { method: "POST", body: { ...form, ...directoryId ? { directoryId } : {} } });
1542
+ onDone(created);
1543
+ } catch (err) {
1544
+ setError(errorText(err));
1545
+ } finally {
1546
+ setBusy(false);
1547
+ }
1548
+ }
1549
+ const set = (k) => (e) => setForm((f) => ({ ...f, [k]: e.target.value }));
1550
+ return /* @__PURE__ */ jsx9(Panel6, { title: t("createTitle"), description: t("createHint"), children: /* @__PURE__ */ jsx9("form", { onSubmit: submit, children: /* @__PURE__ */ jsxs9(Stack6, { gap: "field", children: [
1551
+ /* @__PURE__ */ jsxs9(SimpleGrid, { columns: { base: 1, md: 2 }, gap: "field", children: [
1552
+ /* @__PURE__ */ jsx9(Field, { label: tc("username"), required: true, children: /* @__PURE__ */ jsx9(Input2, { value: form.username, onChange: set("username"), autoComplete: "off" }) }),
1553
+ /* @__PURE__ */ jsx9(Field, { label: tc("displayName"), required: true, children: /* @__PURE__ */ jsx9(Input2, { value: form.displayName, onChange: set("displayName") }) }),
1554
+ /* @__PURE__ */ jsx9(
1555
+ Field,
1556
+ {
1557
+ label: tc("email"),
1558
+ optionalText: /* @__PURE__ */ jsx9(Text9, { as: "span", color: "fg.subtle", children: tc("optional") }),
1559
+ children: /* @__PURE__ */ jsx9(Input2, { type: "email", value: form.email, onChange: set("email"), dir: "ltr" })
1560
+ }
1561
+ ),
1562
+ /* @__PURE__ */ jsx9(Field, { label: tc("password"), required: true, children: /* @__PURE__ */ jsx9(Input2, { type: "password", value: form.password, onChange: set("password"), autoComplete: "new-password" }) }),
1563
+ internal.length > 1 && /* @__PURE__ */ jsx9(Field, { label: tc("directory"), children: /* @__PURE__ */ jsx9(
1564
+ SelectField,
1565
+ {
1566
+ value: directoryId,
1567
+ onChange: (e) => setDirectoryId(e.target.value),
1568
+ options: internal.map((d) => ({ value: d.id === INTERNAL_DIRECTORY ? "" : d.id, label: d.name }))
1569
+ }
1570
+ ) })
1571
+ ] }),
1572
+ /* @__PURE__ */ jsx9(InlineAlert5, { tone: "danger", children: error }),
1573
+ /* @__PURE__ */ jsxs9(HStack7, { gap: "2", children: [
1574
+ /* @__PURE__ */ jsx9(Button6, { type: "submit", variant: "primary", loading: busy, children: t("createSubmit") }),
1575
+ /* @__PURE__ */ jsx9(Button6, { onClick: onCancel, children: tc("cancel") })
1576
+ ] })
1577
+ ] }) }) });
1578
+ }
1579
+
1580
+ // src/areas/guard/AnonymousScreen.tsx
1581
+ import { Text as Text10 } from "@chakra-ui/react";
1582
+ import { Trash2 } from "lucide-react";
1583
+ import { AppLink as AppLink4, DataTable as DataTable6, IconButton, InlineAlert as InlineAlert6, notify as notify5, PageHeader as PageHeader3, Panel as Panel7, errorText as errorText2, useApiQuery as useApiQuery5, useAreaRequest as useAreaRequest7, useConfirm as useConfirm2, useFormatters as useFormatters7 } from "@abpjs/ui";
1584
+ import { Fragment as Fragment4, jsx as jsx10, jsxs as jsxs10 } from "react/jsx-runtime";
1585
+ function AnonymousScreen({ roleName }) {
1586
+ const t = useGuardNs("anonymousAccess");
1587
+ const fmt = useFormatters7();
1588
+ const confirm = useConfirm2();
1589
+ const request = useAreaRequest7("guard");
1590
+ const grants = useApiQuery5("guard", "/anonymous");
1591
+ const role = (g) => roleName?.(g.roleKey, g.roleName) ?? g.roleName;
1592
+ async function revoke(g) {
1593
+ if (!await confirm({ title: t("revokeTitle", { role: role(g), scope: g.scope ?? "" }), confirmLabel: t("revoke"), danger: true })) return;
1594
+ try {
1595
+ await request(`/anonymous/${g.id}`, { method: "DELETE" });
1596
+ notify5.success(t("revoked"));
1597
+ await grants.reload();
1598
+ } catch (e) {
1599
+ notify5.error(errorText2(e));
1600
+ }
1601
+ }
1602
+ return /* @__PURE__ */ jsxs10(Fragment4, { children: [
1603
+ /* @__PURE__ */ jsx10(PageHeader3, { title: t("title"), description: t("subtitle") }),
1604
+ /* @__PURE__ */ jsx10(InlineAlert6, { tone: "danger", children: grants.error }),
1605
+ /* @__PURE__ */ jsx10(Panel7, { flush: true, children: /* @__PURE__ */ jsx10(
1606
+ DataTable6,
1607
+ {
1608
+ "aria-label": t("title"),
1609
+ rows: grants.data,
1610
+ loading: grants.loading,
1611
+ getRowId: (g) => g.id,
1612
+ empty: /* @__PURE__ */ jsx10(Text10, { color: "fg.muted", children: t("empty") }),
1613
+ columns: [
1614
+ { id: "role", header: t("role"), cell: (g) => role(g) },
1615
+ { id: "scope", header: t("scope"), cell: (g) => g.href ? /* @__PURE__ */ jsx10(AppLink4, { href: g.href, children: g.scope }) : g.scope },
1616
+ { id: "since", header: t("since"), nowrap: true, cell: (g) => fmt.dateTime(g.createdAt) },
1617
+ {
1618
+ id: "actions",
1619
+ header: /* @__PURE__ */ jsx10(Text10, { as: "span", srOnly: true, children: t("revoke") }),
1620
+ align: "end",
1621
+ cell: (g) => /* @__PURE__ */ jsx10(IconButton, { size: "sm", variant: "ghost", "aria-label": t("revoke"), onClick: () => void revoke(g), children: /* @__PURE__ */ jsx10(Trash2, {}) })
1622
+ }
1623
+ ]
1624
+ }
1625
+ ) })
1626
+ ] });
1627
+ }
1628
+
1629
+ // src/areas/guard/DirectoriesScreen.tsx
1630
+ import { useState as useState5 } from "react";
1631
+ import { HStack as HStack9, Stack as Stack8 } from "@chakra-ui/react";
1632
+ import { ArrowDown, ArrowUp, RefreshCw } from "lucide-react";
1633
+ import {
1634
+ AppLink as AppLink5,
1635
+ Button as Button8,
1636
+ DataTable as DataTable7,
1637
+ IconButton as IconButton2,
1638
+ InlineAlert as InlineAlert8,
1639
+ Loading as Loading2,
1640
+ PageHeader as PageHeader4,
1641
+ Panel as Panel8,
1642
+ StatusPill as StatusPill6,
1643
+ Tooltip,
1644
+ useApiAction as useApiAction6,
1645
+ useApiQuery as useApiQuery6,
1646
+ useAreaRequest as useAreaRequest8
1647
+ } from "@abpjs/ui";
1648
+
1649
+ // src/areas/guard/DirectoryForm.tsx
1650
+ import { useState as useState4 } from "react";
1651
+ import { Fieldset, HStack as HStack8, Input as Input3, SimpleGrid as SimpleGrid2, Stack as Stack7, Text as Text11 } from "@chakra-ui/react";
1652
+ import { Button as Button7, CheckboxField, errorText as errorText3, Field as Field2, HostSlot as HostSlot2, InlineAlert as InlineAlert7, SelectField as SelectField2, TranslatedInput as TranslatedInput2 } from "@abpjs/ui";
1653
+ import { fromNamesValue, toNamesValue } from "@abpjs/ui/rules";
1654
+ import { jsx as jsx11, jsxs as jsxs11 } from "react/jsx-runtime";
1655
+ function defaultsFor(type) {
1656
+ const out = {};
1657
+ for (const s of type?.settings ?? []) out[s.name] = s.defaultValue ?? "";
1658
+ return out;
1659
+ }
1660
+ function DirectoryForm({ mode, types, initial, onSubmit, onCancel, fallbackSettings }) {
1661
+ const t = useGuardNs("directoryForm");
1662
+ const tc = useGuardNs("common");
1663
+ const [input, setInput] = useState4(initial);
1664
+ const [error, setError] = useState4(null);
1665
+ const [busy, setBusy] = useState4(false);
1666
+ const type = types.find((x) => x.type === input.type);
1667
+ const definitions = type?.settings ?? fallbackSettings ?? [];
1668
+ function set(key, value) {
1669
+ setInput((prev) => ({ ...prev, [key]: value }));
1670
+ }
1671
+ function setSetting(name, value) {
1672
+ setInput((prev) => ({ ...prev, settings: { ...prev.settings, [name]: value } }));
1673
+ }
1674
+ function changeType(next) {
1675
+ const nextType = types.find((x) => x.type === next);
1676
+ setInput((prev) => ({ ...prev, type: next, settings: defaultsFor(nextType) }));
1677
+ }
1678
+ function applyPreset(settings) {
1679
+ setInput((prev) => ({ ...prev, settings: { ...prev.settings, ...settings } }));
1680
+ }
1681
+ async function submit(e) {
1682
+ e.preventDefault();
1683
+ setBusy(true);
1684
+ setError(null);
1685
+ try {
1686
+ await onSubmit(input);
1687
+ } catch (err) {
1688
+ setError(errorText3(err));
1689
+ } finally {
1690
+ setBusy(false);
1691
+ }
1692
+ }
1693
+ return /* @__PURE__ */ jsx11("form", { onSubmit: submit, children: /* @__PURE__ */ jsxs11(Stack7, { gap: "field", children: [
1694
+ /* @__PURE__ */ jsxs11(SimpleGrid2, { columns: { base: 1, md: 2 }, gap: "field", children: [
1695
+ /* @__PURE__ */ jsx11(Field2, { label: t("name"), required: true, children: /* @__PURE__ */ jsx11(
1696
+ TranslatedInput2,
1697
+ {
1698
+ value: toNamesValue(input.name, input.names),
1699
+ "aria-label": t("name"),
1700
+ onChange: (v) => {
1701
+ const { name, names } = fromNamesValue(v);
1702
+ setInput({ ...input, name, names });
1703
+ }
1704
+ }
1705
+ ) }),
1706
+ /* @__PURE__ */ jsx11(Field2, { label: t("type"), required: true, children: mode === "create" ? /* @__PURE__ */ jsx11(
1707
+ SelectField2,
1708
+ {
1709
+ value: input.type,
1710
+ onChange: (e) => changeType(e.target.value),
1711
+ options: [
1712
+ { value: "", label: t("selectType"), disabled: true },
1713
+ ...types.map((x) => ({
1714
+ value: x.type,
1715
+ label: x.pluginKey ? t("typeFromPlugin", { name: x.displayName, plugin: x.pluginKey }) : x.displayName
1716
+ }))
1717
+ ]
1718
+ }
1719
+ ) : /* @__PURE__ */ jsx11(Input3, { value: type?.displayName ?? input.type, readOnly: true }) }),
1720
+ /* @__PURE__ */ jsx11(Field2, { label: t("syncInterval"), helperText: t("syncIntervalHint"), children: /* @__PURE__ */ jsx11(
1721
+ Input3,
1722
+ {
1723
+ type: "number",
1724
+ min: 1,
1725
+ value: input.syncIntervalMinutes ?? "",
1726
+ onChange: (e) => set("syncIntervalMinutes", e.target.value === "" ? null : Number(e.target.value))
1727
+ }
1728
+ ) }),
1729
+ /* @__PURE__ */ jsxs11(Stack7, { gap: "2", justify: "flex-end", pb: "1", children: [
1730
+ /* @__PURE__ */ jsx11(CheckboxField, { label: t("active"), checked: input.isActive, onCheckedChange: (v) => set("isActive", v) }),
1731
+ /* @__PURE__ */ jsx11(CheckboxField, { label: t("signInEnabled"), checked: input.authenticationEnabled, onCheckedChange: (v) => set("authenticationEnabled", v) })
1732
+ ] })
1733
+ ] }),
1734
+ type && type.capabilities.length > 0 && /* @__PURE__ */ jsx11(Text11, { textStyle: "caption", color: "fg.muted", children: t("capabilities", { list: type.capabilities.join(", ") }) }),
1735
+ definitions.length > 0 && /* @__PURE__ */ jsxs11(Fieldset.Root, { layerStyle: "sunken", p: "panel", children: [
1736
+ /* @__PURE__ */ jsx11(Fieldset.Legend, { textStyle: "label", px: "1", children: t("connectionSettings") }),
1737
+ /* @__PURE__ */ jsxs11(Fieldset.Content, { gap: "field", children: [
1738
+ input.type && /* @__PURE__ */ jsx11(HostSlot2, { name: "guard.directory.presets", context: { type: input.type, apply: applyPreset } }),
1739
+ /* @__PURE__ */ jsx11(SimpleGrid2, { columns: { base: 1, md: 2 }, gap: "field", children: definitions.map((d) => /* @__PURE__ */ jsx11(Field2, { label: d.label || d.name, helperText: d.help ?? void 0, required: d.required && !(d.secret && mode === "edit"), children: /* @__PURE__ */ jsx11(
1740
+ Input3,
1741
+ {
1742
+ type: d.secret ? "password" : "text",
1743
+ autoComplete: d.secret ? "new-password" : "off",
1744
+ value: input.settings?.[d.name] ?? "",
1745
+ placeholder: d.secret && mode === "edit" ? t("keepSecret") : d.defaultValue ?? "",
1746
+ dir: "auto",
1747
+ onChange: (e) => setSetting(d.name, e.target.value)
1748
+ }
1749
+ ) }, d.name)) })
1750
+ ] })
1751
+ ] }),
1752
+ /* @__PURE__ */ jsx11(InlineAlert7, { tone: "danger", children: error }),
1753
+ /* @__PURE__ */ jsxs11(HStack8, { gap: "2", children: [
1754
+ /* @__PURE__ */ jsx11(Button7, { type: "submit", variant: "primary", loading: busy, disabled: !input.type, children: mode === "create" ? t("create") : t("save") }),
1755
+ onCancel && /* @__PURE__ */ jsx11(Button7, { onClick: onCancel, children: tc("cancel") })
1756
+ ] })
1757
+ ] }) });
1758
+ }
1759
+ function DirectoryWarnings({ title, warnings }) {
1760
+ if (!warnings || warnings.length === 0) return null;
1761
+ return /* @__PURE__ */ jsx11(InlineAlert7, { tone: "warning", title, "data-testid": "directory-warnings", children: /* @__PURE__ */ jsx11(Stack7, { gap: "0.5", as: "ul", listStyle: "none", children: warnings.map((w) => /* @__PURE__ */ jsx11("li", { children: /* @__PURE__ */ jsx11(Text11, { dir: "auto", children: w }) }, w)) }) });
1762
+ }
1763
+
1764
+ // src/areas/guard/DirectoriesScreen.tsx
1765
+ import { Fragment as Fragment5, jsx as jsx12, jsxs as jsxs12 } from "react/jsx-runtime";
1766
+ var EMPTY_INPUT = {
1767
+ name: "",
1768
+ type: "",
1769
+ isActive: true,
1770
+ authenticationEnabled: true,
1771
+ syncIntervalMinutes: 60,
1772
+ settings: {}
1773
+ };
1774
+ function DirectoriesScreen({ routes = guardRoutes() }) {
1775
+ const t = useGuardNs("directories");
1776
+ const tc = useGuardNs("common");
1777
+ const request = useAreaRequest8("guard");
1778
+ const dirs = useApiQuery6("guard", "/directories");
1779
+ const types = useApiQuery6("guard", "/directory-types");
1780
+ const action = useApiAction6();
1781
+ const [adding, setAdding] = useState5(false);
1782
+ const [notice, setNotice] = useState5(null);
1783
+ const [syncing, setSyncing] = useState5(null);
1784
+ const [added, setAdded] = useState5(null);
1785
+ const list = dirs.data ?? [];
1786
+ async function move(index, delta) {
1787
+ const target = index + delta;
1788
+ if (target < 0 || target >= list.length) return;
1789
+ const ids = list.map((d) => d.id);
1790
+ [ids[index], ids[target]] = [ids[target], ids[index]];
1791
+ const result = await action.run(() => request("/directories/reorder", { method: "POST", body: { directoryIds: ids } }));
1792
+ if (result) dirs.setData(result);
1793
+ }
1794
+ async function sync(d) {
1795
+ setSyncing(d.id);
1796
+ setNotice(null);
1797
+ const run = await action.run(() => request(`/directories/${d.id}/sync`, { method: "POST" }));
1798
+ setSyncing(null);
1799
+ if (run) {
1800
+ setNotice(
1801
+ run.succeeded === false ? { ok: false, text: t("syncFailed", { name: d.name, error: run.error ?? tc("unknownError") }) } : {
1802
+ ok: true,
1803
+ text: t("synced", {
1804
+ name: d.name,
1805
+ added: run.usersAdded,
1806
+ updated: run.usersUpdated,
1807
+ deactivated: run.usersDeactivated,
1808
+ groups: run.groupsSynced,
1809
+ memberships: run.membershipsSynced
1810
+ })
1811
+ }
1812
+ );
1813
+ }
1814
+ await dirs.reload();
1815
+ }
1816
+ async function create(input) {
1817
+ const made = await request("/directories", { method: "POST", body: input });
1818
+ setAdded((made.warnings ?? []).length > 0 ? made : null);
1819
+ setAdding(false);
1820
+ await dirs.reload();
1821
+ }
1822
+ const columns = [
1823
+ { id: "order", header: tc("order"), numeric: true, width: "16", cell: (d) => d.order },
1824
+ {
1825
+ id: "name",
1826
+ header: tc("name"),
1827
+ cell: (d) => /* @__PURE__ */ jsxs12(Stack8, { gap: "1", align: "flex-start", children: [
1828
+ /* @__PURE__ */ jsx12(AppLink5, { href: routes.directory(d.id), fontWeight: "medium", children: d.name }),
1829
+ !d.connectorAvailable && /* @__PURE__ */ jsx12(StatusPill6, { tone: "warning", title: d.pluginKey ? t("pluginDisabledHint", { plugin: d.pluginKey }) : void 0, children: t("connectorDisabled") }),
1830
+ d.warnings && d.warnings.length > 0 && /* @__PURE__ */ jsx12(StatusPill6, { tone: "warning", title: d.warnings.join("\n"), children: t("warnings", { count: d.warnings.length }) })
1831
+ ] })
1832
+ },
1833
+ { id: "type", header: tc("type"), cell: (d) => d.typeDisplayName || d.type },
1834
+ { id: "active", header: tc("active"), cell: (d) => /* @__PURE__ */ jsx12(FlagPill, { value: d.isActive, yes: tc("active"), no: tc("inactive") }), skeleton: "pill" },
1835
+ { id: "signIn", header: t("signIn"), cell: (d) => /* @__PURE__ */ jsx12(FlagPill, { value: d.authenticationEnabled, yes: tc("enabled"), no: tc("disabled") }), skeleton: "pill" },
1836
+ { id: "users", header: tc("users"), numeric: true, cell: (d) => d.userCount },
1837
+ { id: "groups", header: tc("groups"), numeric: true, cell: (d) => d.groupCount },
1838
+ { id: "lastSync", header: t("lastSync"), cell: (d) => /* @__PURE__ */ jsx12(SyncStatus, { d }), skeleton: "pill" },
1839
+ {
1840
+ id: "actions",
1841
+ header: tc("actions"),
1842
+ align: "end",
1843
+ nowrap: true,
1844
+ // Its buttons as their ghosts while the list loads, so a placeholder row is as tall as a real one.
1845
+ skeleton: () => /* @__PURE__ */ jsx12(Loading2, { when: true, children: /* @__PURE__ */ jsxs12(HStack9, { gap: "1", justify: "flex-end", children: [
1846
+ /* @__PURE__ */ jsx12(IconButton2, { size: "sm", "aria-label": t("moveUp", { name: "" }), children: /* @__PURE__ */ jsx12(ArrowUp, {}) }),
1847
+ /* @__PURE__ */ jsx12(IconButton2, { size: "sm", "aria-label": t("moveDown", { name: "" }), children: /* @__PURE__ */ jsx12(ArrowDown, {}) }),
1848
+ /* @__PURE__ */ jsxs12(Button8, { size: "sm", children: [
1849
+ /* @__PURE__ */ jsx12(RefreshCw, {}),
1850
+ t("syncNow")
1851
+ ] })
1852
+ ] }) }),
1853
+ cell: (d) => {
1854
+ const i = list.indexOf(d);
1855
+ return /* @__PURE__ */ jsxs12(HStack9, { gap: "1", justify: "flex-end", children: [
1856
+ /* @__PURE__ */ jsx12(IconButton2, { size: "sm", "aria-label": t("moveUp", { name: d.name }), disabled: i === 0 || action.busy, onClick: () => move(i, -1), children: /* @__PURE__ */ jsx12(ArrowUp, {}) }),
1857
+ /* @__PURE__ */ jsx12(IconButton2, { size: "sm", "aria-label": t("moveDown", { name: d.name }), disabled: i === list.length - 1 || action.busy, onClick: () => move(i, 1), children: /* @__PURE__ */ jsx12(ArrowDown, {}) }),
1858
+ /* @__PURE__ */ jsx12(Tooltip, { content: t("connectorDisabled"), disabled: d.connectorAvailable, children: /* @__PURE__ */ jsxs12(Button8, { size: "sm", disabled: syncing != null || !d.connectorAvailable, loading: syncing === d.id, onClick: () => sync(d), children: [
1859
+ /* @__PURE__ */ jsx12(RefreshCw, {}),
1860
+ t("syncNow")
1861
+ ] }) })
1862
+ ] });
1863
+ }
1864
+ }
1865
+ ];
1866
+ return /* @__PURE__ */ jsxs12(Fragment5, { children: [
1867
+ /* @__PURE__ */ jsx12(
1868
+ PageHeader4,
1869
+ {
1870
+ title: t("title"),
1871
+ description: t("subtitle"),
1872
+ actions: !adding && /* @__PURE__ */ jsx12(Button8, { variant: "primary", onClick: () => {
1873
+ setAdded(null);
1874
+ setAdding(true);
1875
+ }, children: t("add") })
1876
+ }
1877
+ ),
1878
+ /* @__PURE__ */ jsxs12(Stack8, { gap: "section", children: [
1879
+ adding && /* @__PURE__ */ jsx12(Panel8, { title: t("add"), children: types.error ? /* @__PURE__ */ jsx12(InlineAlert8, { tone: "danger", children: types.error }) : (
1880
+ // The form is there while the types load, its fields as their ghosts.
1881
+ /* @__PURE__ */ jsx12(Loading2, { when: !types.data, children: /* @__PURE__ */ jsx12(
1882
+ DirectoryForm,
1883
+ {
1884
+ mode: "create",
1885
+ types: [
1886
+ // An internal directory, kept by the site itself: the accounts people make by signing up.
1887
+ { type: "internal", displayName: t("internalType"), capabilities: ["Authenticate"], settings: [], pluginKey: null },
1888
+ ...types.data ?? []
1889
+ ],
1890
+ initial: EMPTY_INPUT,
1891
+ onSubmit: create,
1892
+ onCancel: () => setAdding(false)
1893
+ }
1894
+ ) })
1895
+ ) }),
1896
+ /* @__PURE__ */ jsx12(InlineAlert8, { tone: "danger", children: action.error }),
1897
+ added && /* @__PURE__ */ jsx12(DirectoryWarnings, { title: t("addedWithWarnings", { name: added.name }), warnings: added.warnings }),
1898
+ notice && /* @__PURE__ */ jsx12(InlineAlert8, { tone: notice.ok ? "success" : "warning", children: notice.text }),
1899
+ /* @__PURE__ */ jsx12(Panel8, { flush: true, children: /* @__PURE__ */ jsx12(
1900
+ DataTable7,
1901
+ {
1902
+ "aria-label": t("title"),
1903
+ columns,
1904
+ rows: dirs.data,
1905
+ getRowId: (d) => d.id,
1906
+ loading: dirs.loading,
1907
+ skeletonRows: 2,
1908
+ error: dirs.error,
1909
+ empty: t("empty")
1910
+ }
1911
+ ) })
1912
+ ] })
1913
+ ] });
1914
+ }
1915
+
1916
+ // src/areas/guard/DirectoryScreen.tsx
1917
+ import { useMemo, useState as useState6 } from "react";
1918
+ import { Box, Grid, HStack as HStack10, Input as Input4, List, Stack as Stack9, Text as Text12 } from "@chakra-ui/react";
1919
+ import {
1920
+ AppLink as AppLink6,
1921
+ Button as Button9,
1922
+ DataTable as DataTable8,
1923
+ errorText as errorText4,
1924
+ Field as Field3,
1925
+ HostSlot as HostSlot3,
1926
+ InlineAlert as InlineAlert9,
1927
+ Loading as Loading3,
1928
+ PageHeader as PageHeader5,
1929
+ Panel as Panel9,
1930
+ PropertyList as PropertyList3,
1931
+ StatusPill as StatusPill7,
1932
+ TextSlot as TextSlot2,
1933
+ useApiAction as useApiAction7,
1934
+ useApiQuery as useApiQuery7,
1935
+ useAreaRequest as useAreaRequest9,
1936
+ useConfirm as useConfirm3,
1937
+ useFormatters as useFormatters8,
1938
+ useNavigate as useNavigate2
1939
+ } from "@abpjs/ui";
1940
+ import { Fragment as Fragment6, jsx as jsx13, jsxs as jsxs13 } from "react/jsx-runtime";
1941
+ var STEPS = ["Connection", "FindUser", "Authenticate", "Precedence"];
1942
+ var PLACEHOLDER = { name: "", type: "", isActive: true, authenticationEnabled: true, syncIntervalMinutes: 60, settings: {} };
1943
+ function DirectoryScreen({ id, routes = guardRoutes() }) {
1944
+ const t = useGuardNs("directoryDetail");
1945
+ const tc = useGuardNs("common");
1946
+ const tn = useGuardNs("nav");
1947
+ const fmt = useFormatters8();
1948
+ const confirm = useConfirm3();
1949
+ const navigate = useNavigate2();
1950
+ const request = useAreaRequest9("guard");
1951
+ const dirs = useApiQuery7("guard", "/directories");
1952
+ const types = useApiQuery7("guard", "/directory-types");
1953
+ const runs = useApiQuery7("guard", `/directories/${id}/sync-runs`);
1954
+ const action = useApiAction7();
1955
+ const [saved, setSaved] = useState6(false);
1956
+ const [formKey, setFormKey] = useState6(0);
1957
+ const [test, setTest] = useState6(null);
1958
+ const [syncMsg, setSyncMsg] = useState6(null);
1959
+ const dir = dirs.data?.find((d) => d.id === id);
1960
+ const type = types.data?.find((x) => x.type === dir?.type);
1961
+ const secretNames = useMemo(() => new Set((type?.settings ?? []).filter((s) => s.secret).map((s) => s.name)), [type]);
1962
+ const initial = useMemo(() => {
1963
+ if (!dir) return null;
1964
+ const settings = {};
1965
+ for (const [k, v] of Object.entries(dir.settings)) settings[k] = secretNames.has(k) || v === "********" ? "" : v;
1966
+ return {
1967
+ name: dir.name,
1968
+ names: dir.names,
1969
+ type: dir.type,
1970
+ isActive: dir.isActive,
1971
+ authenticationEnabled: dir.authenticationEnabled,
1972
+ syncIntervalMinutes: dir.syncIntervalMinutes,
1973
+ settings
1974
+ };
1975
+ }, [dir, secretNames]);
1976
+ const fallbackSettings = useMemo(
1977
+ () => Object.keys(dir?.settings ?? {}).map((name) => ({
1978
+ name,
1979
+ label: name,
1980
+ required: false,
1981
+ secret: dir?.settings[name] === "********",
1982
+ defaultValue: null,
1983
+ help: null
1984
+ })),
1985
+ [dir]
1986
+ );
1987
+ async function save(input) {
1988
+ setSaved(false);
1989
+ const updated = await request(`/directories/${id}`, { method: "PUT", body: input });
1990
+ if (dirs.data) dirs.setData(dirs.data.map((d) => d.id === updated.id ? updated : d));
1991
+ await dirs.reload();
1992
+ setFormKey((k) => k + 1);
1993
+ setSaved(true);
1994
+ }
1995
+ async function testConnection() {
1996
+ setTest(null);
1997
+ const r = await action.run(() => request(`/directories/${id}/test`, { method: "POST" }));
1998
+ if (r) setTest(r);
1999
+ }
2000
+ async function syncNow() {
2001
+ setSyncMsg(null);
2002
+ const run = await action.run(() => request(`/directories/${id}/sync`, { method: "POST" }));
2003
+ if (run)
2004
+ setSyncMsg(
2005
+ run.succeeded === false ? { ok: false, text: t("syncFailed", { error: run.error ?? tc("unknownError") }) } : { ok: true, text: t("syncCompleted") }
2006
+ );
2007
+ await Promise.all([runs.reload(), dirs.reload()]);
2008
+ }
2009
+ async function remove() {
2010
+ if (!dir) return;
2011
+ const ok = await confirm({ title: t("deleteTitle", { name: dir.name }), description: t("deleteDescription"), confirmLabel: tc("delete"), danger: true });
2012
+ if (!ok) return;
2013
+ const done = await action.run(async () => {
2014
+ await request(`/directories/${id}`, { method: "DELETE" });
2015
+ return true;
2016
+ });
2017
+ if (done) navigate(routes.directories);
2018
+ }
2019
+ if (dirs.error) return /* @__PURE__ */ jsx13(InlineAlert9, { tone: "danger", children: dirs.error });
2020
+ const loading = !dirs.data || !types.data;
2021
+ if (!loading && (!dir || !initial))
2022
+ return /* @__PURE__ */ jsxs13(Fragment6, { children: [
2023
+ /* @__PURE__ */ jsx13(PageHeader5, { breadcrumbs: [{ label: tn("directories"), href: routes.directories }], title: t("notFound") }),
2024
+ /* @__PURE__ */ jsx13(AppLink6, { href: routes.directories, children: t("back") })
2025
+ ] });
2026
+ const runColumns = [
2027
+ { id: "started", header: t("started"), nowrap: true, cell: (r) => fmt.dateTime(r.startedAt), skeleton: "date", skeletonWidth: 17 },
2028
+ { id: "finished", header: t("finished"), nowrap: true, cell: (r) => fmt.dateTime(r.finishedAt), skeleton: "date", skeletonWidth: 17 },
2029
+ { id: "result", header: t("result"), cell: (r) => /* @__PURE__ */ jsx13(SyncResultPill, { succeeded: r.succeeded ?? null }), skeleton: "pill" },
2030
+ { id: "added", header: t("added"), numeric: true, cell: (r) => r.usersAdded },
2031
+ { id: "updated", header: t("updated"), numeric: true, cell: (r) => r.usersUpdated },
2032
+ { id: "deactivated", header: t("deactivated"), numeric: true, cell: (r) => r.usersDeactivated },
2033
+ { id: "groups", header: tc("groups"), numeric: true, cell: (r) => r.groupsSynced },
2034
+ { id: "memberships", header: t("memberships"), numeric: true, cell: (r) => r.membershipsSynced },
2035
+ {
2036
+ id: "error",
2037
+ header: t("error"),
2038
+ cell: (r) => r.error && /* @__PURE__ */ jsx13(Text12, { as: "span", textStyle: "caption", color: "fg.danger", wordBreak: "break-word", maxW: "xs", display: "block", children: r.error })
2039
+ }
2040
+ ];
2041
+ return /* @__PURE__ */ jsxs13(Loading3, { when: loading, children: [
2042
+ /* @__PURE__ */ jsx13(
2043
+ PageHeader5,
2044
+ {
2045
+ breadcrumbs: [{ label: tn("directories"), href: routes.directories }, { label: dir?.name }],
2046
+ title: dir?.name,
2047
+ meta: /* @__PURE__ */ jsxs13(Fragment6, { children: [
2048
+ /* @__PURE__ */ jsx13(Text12, { as: "span", children: /* @__PURE__ */ jsx13(TextSlot2, { width: 8, children: dir && (dir.typeDisplayName || dir.type) }) }),
2049
+ /* @__PURE__ */ jsx13(Text12, { as: "span", children: /* @__PURE__ */ jsx13(TextSlot2, { width: 8, children: dir && t("order", { order: dir.order }) }) }),
2050
+ dir ? /* @__PURE__ */ jsx13(FlagPill, { value: dir.isActive, yes: tc("active"), no: tc("inactive") }) : /* @__PURE__ */ jsx13(StatusPill7, {}),
2051
+ dir ? /* @__PURE__ */ jsx13(FlagPill, { value: dir.authenticationEnabled, yes: t("signInEnabled"), no: t("signInDisabled") }) : /* @__PURE__ */ jsx13(StatusPill7, {}),
2052
+ dir && !dir.connectorAvailable && /* @__PURE__ */ jsx13(StatusPill7, { tone: "warning", children: t("connectorDisabled") })
2053
+ ] }),
2054
+ actions: /* @__PURE__ */ jsxs13(Fragment6, { children: [
2055
+ /* @__PURE__ */ jsx13(Button9, { onClick: testConnection, disabled: action.busy || dir?.connectorAvailable === false, children: t("testConnection") }),
2056
+ /* @__PURE__ */ jsx13(Button9, { onClick: syncNow, disabled: action.busy || dir?.connectorAvailable === false, children: t("syncNow") }),
2057
+ dir?.type !== "internal" && /* @__PURE__ */ jsx13(Button9, { danger: true, onClick: remove, disabled: action.busy, children: tc("delete") })
2058
+ ] })
2059
+ }
2060
+ ),
2061
+ /* @__PURE__ */ jsxs13(Stack9, { gap: "section", children: [
2062
+ /* @__PURE__ */ jsx13(InlineAlert9, { tone: "danger", children: action.error }),
2063
+ dir && /* @__PURE__ */ jsx13(DirectoryWarnings, { title: t("warningsTitle"), warnings: dir.warnings }),
2064
+ test && /* @__PURE__ */ jsxs13(InlineAlert9, { tone: test.succeeded ? "success" : "warning", title: test.succeeded ? t("connectionSucceeded") : t("connectionFailed"), children: [
2065
+ test.message,
2066
+ test.succeeded && test.usersFound != null && test.groupsFound != null && ` ${t("found", { users: num(test.usersFound), groups: num(test.groupsFound) })}`
2067
+ ] }),
2068
+ syncMsg && /* @__PURE__ */ jsx13(InlineAlert9, { tone: syncMsg.ok ? "success" : "warning", children: syncMsg.text }),
2069
+ /* @__PURE__ */ jsxs13(Grid, { templateColumns: { base: "minmax(0, 1fr)", lg: "minmax(0, 1fr) {sizes.sidePanel}" }, gap: "section", alignItems: "start", children: [
2070
+ /* @__PURE__ */ jsx13(Panel9, { title: t("settings"), children: /* @__PURE__ */ jsxs13(Stack9, { gap: "field", children: [
2071
+ saved && /* @__PURE__ */ jsx13(InlineAlert9, { tone: "success", children: t("saved") }),
2072
+ /* @__PURE__ */ jsx13(
2073
+ DirectoryForm,
2074
+ {
2075
+ mode: "edit",
2076
+ types: types.data ?? [],
2077
+ initial: initial ?? PLACEHOLDER,
2078
+ onSubmit: save,
2079
+ fallbackSettings
2080
+ },
2081
+ loading ? "loading" : formKey
2082
+ )
2083
+ ] }) }),
2084
+ /* @__PURE__ */ jsxs13(Stack9, { gap: "section", children: [
2085
+ /* @__PURE__ */ jsx13(Panel9, { title: t("summary"), children: /* @__PURE__ */ jsx13(
2086
+ PropertyList3,
2087
+ {
2088
+ size: "sm",
2089
+ items: [
2090
+ { label: tc("users"), value: dir && fmt.number(num(dir.userCount)) },
2091
+ { label: tc("groups"), value: dir && fmt.number(num(dir.groupCount)) },
2092
+ {
2093
+ label: t("syncInterval"),
2094
+ value: dir && (dir.syncIntervalMinutes ? t("minutes", { count: num(dir.syncIntervalMinutes) }) : t("onDemand"))
2095
+ },
2096
+ { label: t("plugin"), value: dir && (dir.pluginKey ?? t("builtIn")) },
2097
+ { label: t("lastSync"), value: dir && /* @__PURE__ */ jsx13(SyncStatus, { d: dir }) }
2098
+ ]
2099
+ }
2100
+ ) }),
2101
+ /* @__PURE__ */ jsx13(TestLoginPanel, { directoryId: id, disabled: dir?.connectorAvailable === false })
2102
+ ] })
2103
+ ] }),
2104
+ dir && /* @__PURE__ */ jsx13(HostSlot3, { name: "guard.directory.panel", context: { directoryId: dir.id, directoryType: dir.type } }),
2105
+ /* @__PURE__ */ jsx13(Panel9, { title: t("syncRuns"), flush: true, children: /* @__PURE__ */ jsx13(
2106
+ DataTable8,
2107
+ {
2108
+ "aria-label": t("syncRuns"),
2109
+ size: "sm",
2110
+ columns: runColumns,
2111
+ rows: runs.data,
2112
+ getRowId: (r) => r.id,
2113
+ loading: runs.loading,
2114
+ error: runs.error,
2115
+ empty: t("noRuns"),
2116
+ stickyHeader: true,
2117
+ maxHeight: "md"
2118
+ }
2119
+ ) })
2120
+ ] })
2121
+ ] });
2122
+ }
2123
+ function TestLoginPanel({ directoryId, disabled }) {
2124
+ const t = useGuardNs("directoryDetail");
2125
+ const tc = useGuardNs("common");
2126
+ const ts = useGuardNs("directoryDetail.steps");
2127
+ const request = useAreaRequest9("guard");
2128
+ const [username, setUsername] = useState6("");
2129
+ const [password, setPassword] = useState6("");
2130
+ const [result, setResult] = useState6(null);
2131
+ const [error, setError] = useState6(null);
2132
+ const [busy, setBusy] = useState6(false);
2133
+ async function submit(e) {
2134
+ e.preventDefault();
2135
+ setBusy(true);
2136
+ setError(null);
2137
+ setResult(null);
2138
+ try {
2139
+ setResult(await request(`/directories/${directoryId}/test-login`, { method: "POST", body: { username, password } }));
2140
+ } catch (err) {
2141
+ setError(errorText4(err));
2142
+ } finally {
2143
+ setBusy(false);
2144
+ }
2145
+ }
2146
+ const known = new Set(STEPS);
2147
+ const rows = result ? [
2148
+ ...STEPS.map((step) => ({ step, label: ts(step), r: result.steps.find((s) => s.step === step) })),
2149
+ ...result.steps.filter((s) => !known.has(s.step)).map((s) => ({ step: s.step, label: s.step, r: s }))
2150
+ ] : [];
2151
+ return /* @__PURE__ */ jsx13(Panel9, { title: t("testLogin"), description: t("testLoginHint"), children: /* @__PURE__ */ jsxs13(Stack9, { gap: "stack", children: [
2152
+ /* @__PURE__ */ jsx13("form", { onSubmit: submit, children: /* @__PURE__ */ jsxs13(Stack9, { gap: "stack", children: [
2153
+ /* @__PURE__ */ jsx13(Field3, { label: tc("username"), required: true, children: /* @__PURE__ */ jsx13(Input4, { size: "sm", value: username, onChange: (e) => setUsername(e.target.value), autoComplete: "off" }) }),
2154
+ /* @__PURE__ */ jsx13(Field3, { label: tc("password"), required: true, children: /* @__PURE__ */ jsx13(Input4, { size: "sm", type: "password", value: password, onChange: (e) => setPassword(e.target.value), autoComplete: "new-password" }) }),
2155
+ /* @__PURE__ */ jsx13(Button9, { type: "submit", size: "sm", w: "full", loading: busy, disabled, children: t("runTest") })
2156
+ ] }) }),
2157
+ /* @__PURE__ */ jsx13(InlineAlert9, { tone: "danger", size: "sm", children: error }),
2158
+ result && /* @__PURE__ */ jsx13(List.Root, { as: "ol", gap: "2", listStyle: "none", "aria-label": t("testSteps"), children: rows.map(({ step, label, r }) => /* @__PURE__ */ jsx13(List.Item, { layerStyle: "sunken", px: "3", py: "2", children: /* @__PURE__ */ jsxs13(Box, { w: "full", children: [
2159
+ /* @__PURE__ */ jsxs13(HStack10, { justify: "space-between", gap: "2", children: [
2160
+ /* @__PURE__ */ jsx13(Text12, { textStyle: "label", children: label }),
2161
+ /* @__PURE__ */ jsx13(PassFail, { ok: r ? r.succeeded : null })
2162
+ ] }),
2163
+ r?.message && /* @__PURE__ */ jsx13(Text12, { textStyle: "caption", color: "fg.muted", mt: "1", children: r.message })
2164
+ ] }) }, step)) })
2165
+ ] }) });
2166
+ }
2167
+
2168
+ // src/areas/guard/GroupScreen.tsx
2169
+ import { useEffect, useState as useState9 } from "react";
2170
+ import { Grid as Grid2, HStack as HStack13, Input as Input5, List as List3, Stack as Stack11, Text as Text15, Textarea } from "@chakra-ui/react";
2171
+ import {
2172
+ AppLink as AppLink8,
2173
+ Button as Button10,
2174
+ DataTable as DataTable9,
2175
+ errorText as errorText7,
2176
+ Field as Field4,
2177
+ InlineAlert as InlineAlert11,
2178
+ Loading as Loading4,
2179
+ notify as notify7,
2180
+ PageHeader as PageHeader6,
2181
+ Panel as Panel11,
2182
+ PathChips as PathChips2,
2183
+ RecordKey as RecordKey4,
2184
+ SearchInput as SearchInput2,
2185
+ StatusPill as StatusPill9,
2186
+ TextBone,
2187
+ TextSlot as TextSlot3,
2188
+ TranslatedInput as TranslatedInput3,
2189
+ useApiAction as useApiAction8,
2190
+ useApiQuery as useApiQuery8,
2191
+ useAreaRequest as useAreaRequest12,
2192
+ useConfirm as useConfirm4,
2193
+ useNavigate as useNavigate3
2194
+ } from "@abpjs/ui";
2195
+ import { fromNamesValue as fromNamesValue2, splitList, toNamesValue as toNamesValue2 } from "@abpjs/ui/rules";
2196
+
2197
+ // src/areas/guard/GroupTree.tsx
2198
+ import { useState as useState7 } from "react";
2199
+ import { Box as Box2, HStack as HStack11, List as List2, Text as Text13 } from "@chakra-ui/react";
2200
+ import { ChevronDown, ChevronRight } from "lucide-react";
2201
+ import { AppLink as AppLink7, DirectionalIcon, errorText as errorText5, IconButton as IconButton3, StatusPill as StatusPill8, useAreaRequest as useAreaRequest10 } from "@abpjs/ui";
2202
+ import { jsx as jsx14, jsxs as jsxs14 } from "react/jsx-runtime";
2203
+ function GroupTree({ rootId, rootName, rootMembers, routes = guardRoutes() }) {
2204
+ return /* @__PURE__ */ jsxs14(Box2, { textStyle: "md", role: "tree", "aria-label": rootName, children: [
2205
+ /* @__PURE__ */ jsx14(Text13, { fontWeight: "medium", children: rootName }),
2206
+ /* @__PURE__ */ jsx14(Children, { members: rootMembers, ancestors: [rootId], routes })
2207
+ ] });
2208
+ }
2209
+ function Children({ members, ancestors, routes }) {
2210
+ const t = useGuardNs("groupDetail");
2211
+ const groups = members.filter((m) => m.memberType === "Group");
2212
+ const accountCount = members.length - groups.length;
2213
+ return /* @__PURE__ */ jsxs14(List2.Root, { role: "group", listStyle: "none", ms: "2", ps: "3", borderInlineStartWidth: "1px", borderColor: "border", gap: "0.5", py: "0.5", children: [
2214
+ groups.map((g) => /* @__PURE__ */ jsx14(Node, { member: g, ancestors, routes }, g.memberId)),
2215
+ accountCount > 0 && /* @__PURE__ */ jsx14(List2.Item, { textStyle: "caption", color: "fg.muted", ps: "6", children: t("accountCount", { count: accountCount }) })
2216
+ ] });
2217
+ }
2218
+ function Node({ member, ancestors, routes }) {
2219
+ const t = useGuardNs("groupDetail");
2220
+ const request = useAreaRequest10("guard");
2221
+ const [open, setOpen] = useState7(false);
2222
+ const [detail, setDetail] = useState7(null);
2223
+ const [error, setError] = useState7(null);
2224
+ const cyclic = ancestors.includes(member.memberId);
2225
+ async function toggle() {
2226
+ const next = !open;
2227
+ setOpen(next);
2228
+ if (next && !detail) {
2229
+ try {
2230
+ setError(null);
2231
+ setDetail(await request(`/groups/${member.memberId}`));
2232
+ } catch (e) {
2233
+ setError(errorText5(e));
2234
+ }
2235
+ }
2236
+ }
2237
+ return /* @__PURE__ */ jsxs14(List2.Item, { role: "treeitem", "aria-expanded": cyclic ? void 0 : open, display: "block", children: [
2238
+ /* @__PURE__ */ jsxs14(HStack11, { gap: "1", children: [
2239
+ cyclic ? /* @__PURE__ */ jsx14(Box2, { boxSize: "control.xs", flexShrink: "0" }) : /* @__PURE__ */ jsx14(
2240
+ IconButton3,
2241
+ {
2242
+ size: "xs",
2243
+ "aria-label": open ? t("collapse", { name: member.name }) : t("expand", { name: member.name }),
2244
+ onClick: toggle,
2245
+ children: open ? /* @__PURE__ */ jsx14(ChevronDown, {}) : /* @__PURE__ */ jsx14(DirectionalIcon, { children: /* @__PURE__ */ jsx14(ChevronRight, {}) })
2246
+ }
2247
+ ),
2248
+ /* @__PURE__ */ jsx14(AppLink7, { href: routes.group(member.memberId), children: member.name }),
2249
+ cyclic && /* @__PURE__ */ jsx14(StatusPill8, { tone: "warning", children: t("cycle") })
2250
+ ] }),
2251
+ open && !cyclic && /* @__PURE__ */ jsxs14(Box2, { children: [
2252
+ error && /* @__PURE__ */ jsx14(Text13, { textStyle: "caption", color: "fg.danger", ms: "7", children: error }),
2253
+ !detail && !error && /* @__PURE__ */ jsx14(Text13, { textStyle: "caption", color: "fg.muted", ms: "7", children: t("loadingTree") }),
2254
+ detail && /* @__PURE__ */ jsx14(Children, { members: detail.members, ancestors: [...ancestors, member.memberId], routes })
2255
+ ] })
2256
+ ] });
2257
+ }
2258
+
2259
+ // src/areas/guard/GroupTwoFactorPanel.tsx
2260
+ import { useState as useState8 } from "react";
2261
+ import { Box as Box3, chakra, HStack as HStack12, Stack as Stack10, Text as Text14 } from "@chakra-ui/react";
2262
+ import { errorText as errorText6, Indicator, InlineAlert as InlineAlert10, notify as notify6, Panel as Panel10, useAreaRequest as useAreaRequest11 } from "@abpjs/ui";
2263
+ import { jsx as jsx15, jsxs as jsxs15 } from "react/jsx-runtime";
2264
+ var TWO_FACTOR_MODES = ["off", "optional", "required", "strong"];
2265
+ function GroupTwoFactorPanel({ group, onSaved }) {
2266
+ const t = useGuardNs("groupDetail.twoFactor");
2267
+ const request = useAreaRequest11("guard");
2268
+ const [mode, setMode] = useState8(group.twoFactor ?? "off");
2269
+ const [error, setError] = useState8(null);
2270
+ async function choose(next) {
2271
+ if (next === mode) return;
2272
+ const before = mode;
2273
+ setMode(next);
2274
+ setError(null);
2275
+ try {
2276
+ const updated = await request(`/groups/${group.id}/two-factor`, { method: "PUT", body: { mode: next } });
2277
+ notify6.success(t("saved", { name: group.name, mode: t(`modes.${next}`) }));
2278
+ onSaved(updated);
2279
+ } catch (e) {
2280
+ setMode(before);
2281
+ setError(errorText6(e));
2282
+ }
2283
+ }
2284
+ return /* @__PURE__ */ jsx15(Panel10, { title: t("title"), description: t("hint"), "data-testid": "group-two-factor", children: /* @__PURE__ */ jsxs15(Stack10, { gap: "2", children: [
2285
+ /* @__PURE__ */ jsx15(InlineAlert10, { tone: "danger", children: error }),
2286
+ /* @__PURE__ */ jsx15(HStack12, { gap: "1", p: "1", rounded: "l2", bg: "bg.subtle", w: "fit-content", maxW: "full", wrap: "wrap", role: "radiogroup", "aria-label": t("title"), children: TWO_FACTOR_MODES.map((choice) => /* @__PURE__ */ jsxs15(
2287
+ chakra.button,
2288
+ {
2289
+ type: "button",
2290
+ role: "radio",
2291
+ "aria-checked": mode === choice,
2292
+ position: "relative",
2293
+ px: "3",
2294
+ py: "1.5",
2295
+ rounded: "l1",
2296
+ textStyle: "body.sm",
2297
+ fontWeight: "medium",
2298
+ color: mode === choice ? "fg" : "fg.muted",
2299
+ cursor: "pointer",
2300
+ focusVisibleRing: "inside",
2301
+ onClick: () => void choose(choice),
2302
+ "data-testid": `two-factor-${choice}`,
2303
+ children: [
2304
+ mode === choice && /* @__PURE__ */ jsx15(Indicator, { group: `two-factor-${group.id}`, css: { position: "absolute", inset: 0, rounded: "l1", bg: "bg.panel", boxShadow: "xs" } }),
2305
+ /* @__PURE__ */ jsx15(Box3, { as: "span", position: "relative", children: t(`modes.${choice}`) })
2306
+ ]
2307
+ },
2308
+ choice
2309
+ )) }),
2310
+ /* @__PURE__ */ jsx15(Text14, { textStyle: "body.sm", color: "fg.muted", "aria-live": "polite", children: t(`modeHints.${mode}`) })
2311
+ ] }) });
2312
+ }
2313
+
2314
+ // src/areas/guard/GroupScreen.tsx
2315
+ import { Fragment as Fragment7, jsx as jsx16, jsxs as jsxs16 } from "react/jsx-runtime";
2316
+ function GroupScreen({ id, routes = guardRoutes() }) {
2317
+ const t = useGuardNs("groupDetail");
2318
+ const tg = useGuardNs("groups");
2319
+ const tc = useGuardNs("common");
2320
+ const tn = useGuardNs("nav");
2321
+ const tf = useGuardNs("groupDetail.twoFactor");
2322
+ const written = useWrittenName();
2323
+ const confirm = useConfirm4();
2324
+ const navigate = useNavigate3();
2325
+ const request = useAreaRequest12("guard");
2326
+ const detail = useApiQuery8("guard", `/groups/${id}`);
2327
+ const action = useApiAction8();
2328
+ const [treeKey, setTreeKey] = useState9(0);
2329
+ async function reload() {
2330
+ await detail.reload();
2331
+ setTreeKey((k) => k + 1);
2332
+ }
2333
+ async function removeMember(m) {
2334
+ const ok = await action.run(async () => {
2335
+ await request(`/groups/${id}/members/${m.memberType}/${m.memberId}`, { method: "DELETE" });
2336
+ return true;
2337
+ });
2338
+ if (ok) await reload();
2339
+ }
2340
+ async function deleteGroup() {
2341
+ if (!detail.data) return;
2342
+ const yes = await confirm({ title: t("deleteTitle", { name: detail.data.group.name }), confirmLabel: tc("delete"), danger: true });
2343
+ if (!yes) return;
2344
+ const ok = await action.run(async () => {
2345
+ await request(`/groups/${id}`, { method: "DELETE" });
2346
+ return true;
2347
+ });
2348
+ if (ok) navigate(routes.groups);
2349
+ }
2350
+ if (detail.error && !detail.data) return /* @__PURE__ */ jsx16(InlineAlert11, { tone: "danger", children: detail.error });
2351
+ const group = detail.data?.group;
2352
+ const members = detail.data?.members;
2353
+ const parents = detail.data?.parents;
2354
+ const effectiveMembers = detail.data?.effectiveMembers;
2355
+ const hasGroupMembers = members?.some((m) => m.memberType === "Group") ?? false;
2356
+ const memberColumns = [
2357
+ {
2358
+ id: "type",
2359
+ header: tc("type"),
2360
+ sortValue: (m) => m.memberType === "Group" ? 0 : 1,
2361
+ cell: (m) => m.memberType === "Group" ? /* @__PURE__ */ jsx16(StatusPill9, { tone: "info", children: tc("group") }) : /* @__PURE__ */ jsx16(StatusPill9, { children: tc("account") }),
2362
+ skeleton: "pill"
2363
+ },
2364
+ {
2365
+ id: "name",
2366
+ header: tc("name"),
2367
+ sortValue: (m) => m.name,
2368
+ cell: (m) => /* @__PURE__ */ jsxs16(HStack13, { gap: "2", wrap: "wrap", children: [
2369
+ m.memberType === "Group" ? /* @__PURE__ */ jsx16(AppLink8, { href: routes.group(m.memberId), fontWeight: "medium", children: m.name }) : /* @__PURE__ */ jsx16(RecordKey4, { value: m.name, href: routes.account(m.memberId) }),
2370
+ m.displayName && m.displayName !== m.name && /* @__PURE__ */ jsx16(Text15, { as: "span", textStyle: "caption", color: "fg.muted", children: m.displayName })
2371
+ ] }),
2372
+ skeleton: "key"
2373
+ },
2374
+ { id: "directory", header: tc("directory"), sortValue: (m) => m.directoryName, cell: (m) => m.directoryName },
2375
+ {
2376
+ id: "source",
2377
+ header: tc("source"),
2378
+ sortValue: (m) => m.source,
2379
+ cell: (m) => m.source === "Directory" ? /* @__PURE__ */ jsx16(StatusPill9, { tone: "info", children: t("fromDirectory") }) : m.source === "Domain" ? /* @__PURE__ */ jsx16(StatusPill9, { tone: "info", children: t("byDomain") }) : m.source === "Import" ? /* @__PURE__ */ jsx16(StatusPill9, { tone: "info", children: t("fromImport") }) : /* @__PURE__ */ jsx16(StatusPill9, { tone: "accent", children: t("manual") }),
2380
+ skeleton: "pill"
2381
+ },
2382
+ {
2383
+ id: "actions",
2384
+ header: /* @__PURE__ */ jsx16(Text15, { as: "span", srOnly: true, children: tc("actions") }),
2385
+ align: "end",
2386
+ cell: (m) => m.removable && /* @__PURE__ */ jsx16(Button10, { size: "sm", variant: "ghost", danger: true, onClick: () => removeMember(m), disabled: action.busy, children: t("remove") }),
2387
+ skeleton: () => /* @__PURE__ */ jsx16(Button10, { size: "sm", variant: "ghost", danger: true, children: t("remove") })
2388
+ }
2389
+ ];
2390
+ const effectiveColumns = [
2391
+ {
2392
+ id: "username",
2393
+ header: tc("username"),
2394
+ sortValue: (m) => m.username,
2395
+ cell: (m) => /* @__PURE__ */ jsx16(RecordKey4, { value: m.username, href: routes.account(m.accountId) }),
2396
+ skeleton: "key"
2397
+ },
2398
+ { id: "displayName", header: tc("displayName"), sortValue: (m) => m.displayName, cell: (m) => m.displayName, skeleton: "person" },
2399
+ { id: "path", header: tc("path"), sortValue: (m) => m.path.length, cell: (m) => /* @__PURE__ */ jsx16(PathChips2, { path: m.path }), skeleton: () => /* @__PURE__ */ jsx16(PathChips2, { path: [], loading: true }) }
2400
+ ];
2401
+ return /* @__PURE__ */ jsxs16(Loading4, { when: !detail.data, children: [
2402
+ /* @__PURE__ */ jsx16(
2403
+ PageHeader6,
2404
+ {
2405
+ breadcrumbs: [{ label: tn("groups"), href: routes.groups }, { label: group && written(group.name, group.names) }],
2406
+ title: group && written(group.name, group.names),
2407
+ description: group?.description ?? void 0,
2408
+ meta: /* @__PURE__ */ jsxs16(Fragment7, { children: [
2409
+ /* @__PURE__ */ jsx16(Text15, { as: "span", children: /* @__PURE__ */ jsx16(TextSlot3, { width: 10, children: group?.directoryName }) }),
2410
+ /* @__PURE__ */ jsx16(StatusPill9, { dot: false, children: group && tg(`kinds.${group.kind}`) }),
2411
+ !group ? /* @__PURE__ */ jsx16(StatusPill9, {}) : group.isLocal ? /* @__PURE__ */ jsx16(StatusPill9, { tone: "accent", children: tg("local") }) : /* @__PURE__ */ jsx16(StatusPill9, { tone: "info", children: tg("synced") }),
2412
+ !group ? /* @__PURE__ */ jsx16(StatusPill9, {}) : group.writable ? /* @__PURE__ */ jsx16(StatusPill9, { tone: "success", children: t("writable") }) : /* @__PURE__ */ jsx16(StatusPill9, { children: tg("readOnly") }),
2413
+ group && group.twoFactor && group.twoFactor !== "off" && /* @__PURE__ */ jsx16(StatusPill9, { tone: "accent", "data-testid": "group-two-factor-pill", children: tf("pill", { mode: tf(`modes.${group.twoFactor}`) }) })
2414
+ ] }),
2415
+ actions: (!group || group.isLocal && !group.computed) && /* @__PURE__ */ jsx16(Button10, { danger: true, onClick: deleteGroup, disabled: action.busy, children: t("delete") })
2416
+ }
2417
+ ),
2418
+ /* @__PURE__ */ jsxs16(Stack11, { gap: "section", children: [
2419
+ /* @__PURE__ */ jsx16(InlineAlert11, { tone: "danger", children: action.error }),
2420
+ group && group.writable && group.isLocal && /* @__PURE__ */ jsx16(GroupNames, { group, onSaved: reload }),
2421
+ /* @__PURE__ */ jsxs16(Grid2, { templateColumns: { base: "minmax(0, 1fr)", lg: "minmax(0, 1fr) {sizes.sidePanel}" }, gap: "section", alignItems: "start", children: [
2422
+ /* @__PURE__ */ jsx16(Panel11, { title: /* @__PURE__ */ jsx16(TextSlot3, { width: 18, children: t("directMembers", { count: members?.length ?? 0 }) }), flush: true, children: /* @__PURE__ */ jsx16(
2423
+ DataTable9,
2424
+ {
2425
+ "aria-label": t("directMembers", { count: members?.length ?? 0 }),
2426
+ columns: memberColumns,
2427
+ rows: members,
2428
+ getRowId: (m) => `${m.memberType}:${m.memberId}`,
2429
+ defaultSort: { columnId: "type", direction: "asc" },
2430
+ empty: t("noMembers")
2431
+ }
2432
+ ) }),
2433
+ /* @__PURE__ */ jsxs16(Stack11, { gap: "section", children: [
2434
+ /* @__PURE__ */ jsx16(Panel11, { title: /* @__PURE__ */ jsx16(TextSlot3, { width: 14, children: t("memberOf", { count: parents?.length ?? 0 }) }), children: !parents ? /* @__PURE__ */ jsx16(Text15, { textStyle: "body", children: /* @__PURE__ */ jsx16(TextBone, { width: t("notNested").length }) }) : parents.length === 0 ? /* @__PURE__ */ jsx16(Text15, { textStyle: "body", color: "fg.muted", children: t("notNested") }) : /* @__PURE__ */ jsx16(List3.Root, { listStyle: "none", gap: "1.5", children: parents.map((p) => /* @__PURE__ */ jsx16(List3.Item, { children: /* @__PURE__ */ jsxs16(HStack13, { justify: "space-between", gap: "2", w: "full", children: [
2435
+ /* @__PURE__ */ jsx16(AppLink8, { href: routes.group(p.id), children: written(p.name, p.names) }),
2436
+ /* @__PURE__ */ jsx16(Text15, { as: "span", textStyle: "caption", color: "fg.muted", children: p.directoryName })
2437
+ ] }) }, p.id)) }) }),
2438
+ group && detail.data && /* @__PURE__ */ jsx16(GroupTwoFactorPanel, { group, onSaved: (updated) => detail.data && detail.setData({ ...detail.data, group: updated }) }, group.id),
2439
+ group && members && hasGroupMembers && /* @__PURE__ */ jsx16(Panel11, { title: t("nestedGroups"), children: /* @__PURE__ */ jsx16(GroupTree, { rootId: group.id, rootName: group.name, rootMembers: members, routes }, treeKey) })
2440
+ ] })
2441
+ ] }),
2442
+ group?.kind === "organization" && /* @__PURE__ */ jsx16(OrganizationPanel, { group, onSaved: reload }),
2443
+ !group || group.writable ? /* @__PURE__ */ jsx16(AddMember, { groupId: group?.id ?? id, existing: members ?? [], onAdded: reload }) : /* @__PURE__ */ jsx16(InlineAlert11, { tone: "neutral", children: group.computed ? t(group.kind === "ou" ? "ouNotice" : "directoryNotice") : t("readOnlyNotice") }),
2444
+ /* @__PURE__ */ jsx16(Panel11, { title: /* @__PURE__ */ jsx16(TextSlot3, { width: 22, children: t("effectiveMembers", { count: effectiveMembers?.length ?? 0 }) }), flush: true, children: /* @__PURE__ */ jsx16(
2445
+ DataTable9,
2446
+ {
2447
+ "aria-label": t("effectiveMembers", { count: effectiveMembers?.length ?? 0 }),
2448
+ columns: effectiveColumns,
2449
+ rows: effectiveMembers,
2450
+ getRowId: (m) => `${m.accountId}:${m.path.join(">")}`,
2451
+ defaultSort: { columnId: "path", direction: "asc" },
2452
+ empty: t("noEffectiveMembers")
2453
+ }
2454
+ ) })
2455
+ ] })
2456
+ ] });
2457
+ }
2458
+ function OrganizationPanel({ group, onSaved }) {
2459
+ const t = useGuardNs("groupDetail");
2460
+ const tg = useGuardNs("groups");
2461
+ const request = useAreaRequest12("guard");
2462
+ const [domains, setDomains] = useState9(group.emailDomains.join(", "));
2463
+ const [attributes, setAttributes] = useState9(
2464
+ Object.entries(group.attributes).map(([k, v]) => `${k} = ${v}`).join("\n")
2465
+ );
2466
+ const action = useApiAction8();
2467
+ async function save() {
2468
+ const parsed = {};
2469
+ for (const line of attributes.split("\n").map((l) => l.trim()).filter(Boolean)) {
2470
+ const at = line.indexOf("=");
2471
+ if (at > 0) parsed[line.slice(0, at).trim()] = line.slice(at + 1).trim();
2472
+ }
2473
+ const ok = await action.run(async () => {
2474
+ await request(`/groups/${group.id}`, {
2475
+ method: "PUT",
2476
+ body: { name: group.name, description: group.description, emailDomains: splitList(domains), attributes: parsed }
2477
+ });
2478
+ return true;
2479
+ });
2480
+ if (ok) {
2481
+ notify7.success(t("organizationSaved"));
2482
+ await onSaved();
2483
+ }
2484
+ }
2485
+ return /* @__PURE__ */ jsx16(Panel11, { title: t("organization"), description: t("organizationHint"), "data-testid": "organization", children: /* @__PURE__ */ jsxs16(Stack11, { gap: "field", maxW: "2xl", children: [
2486
+ /* @__PURE__ */ jsx16(Field4, { label: tg("domains"), helperText: tg("domainsHint"), children: /* @__PURE__ */ jsx16(Input5, { value: domains, onChange: (e) => setDomains(e.target.value), dir: "ltr", placeholder: "acme.com" }) }),
2487
+ /* @__PURE__ */ jsx16(Field4, { label: t("attributes"), helperText: t("attributesHint"), children: /* @__PURE__ */ jsx16(Textarea, { value: attributes, onChange: (e) => setAttributes(e.target.value), rows: 4, fontFamily: "mono", fontSize: "sm" }) }),
2488
+ /* @__PURE__ */ jsx16(InlineAlert11, { tone: "danger", children: action.error }),
2489
+ /* @__PURE__ */ jsx16(HStack13, { children: /* @__PURE__ */ jsx16(Button10, { onClick: () => void save(), loading: action.busy, children: t("saveOrganization") }) })
2490
+ ] }) });
2491
+ }
2492
+ function useSettled(value, delay = 250) {
2493
+ const [settled, setSettled] = useState9(value);
2494
+ useEffect(() => {
2495
+ const timer = setTimeout(() => setSettled(value), delay);
2496
+ return () => clearTimeout(timer);
2497
+ }, [value, delay]);
2498
+ return settled;
2499
+ }
2500
+ function AddMember({ groupId, existing, onAdded }) {
2501
+ const t = useGuardNs("groupDetail");
2502
+ const tc = useGuardNs("common");
2503
+ const request = useAreaRequest12("guard");
2504
+ const [query, setQuery] = useState9("");
2505
+ const settled = useSettled(query.trim());
2506
+ const [accounts, setAccounts] = useState9([]);
2507
+ const [groups, setGroups] = useState9([]);
2508
+ const [searchError, setSearchError] = useState9(null);
2509
+ const [error, setError] = useState9(null);
2510
+ const [busyId, setBusyId] = useState9(null);
2511
+ useEffect(() => {
2512
+ if (!settled) {
2513
+ setAccounts([]);
2514
+ setGroups([]);
2515
+ return;
2516
+ }
2517
+ let cancelled = false;
2518
+ const search = new URLSearchParams({ search: settled });
2519
+ Promise.all([request(`/accounts?${search}`), request(`/groups?${search}`)]).then(([a, g]) => {
2520
+ if (cancelled) return;
2521
+ setAccounts(a.slice(0, 10));
2522
+ setGroups(g.filter((x) => x.id !== groupId).slice(0, 10));
2523
+ setSearchError(null);
2524
+ }).catch((e) => !cancelled && setSearchError(errorText7(e)));
2525
+ return () => {
2526
+ cancelled = true;
2527
+ };
2528
+ }, [settled, groupId, request]);
2529
+ const isMember = (type, id) => existing.some((m) => m.memberType === type && m.memberId === id);
2530
+ async function add(body, key) {
2531
+ setBusyId(key);
2532
+ setError(null);
2533
+ try {
2534
+ await request(`/groups/${groupId}/members`, { method: "POST", body });
2535
+ await onAdded();
2536
+ } catch (e) {
2537
+ setError(errorText7(e));
2538
+ } finally {
2539
+ setBusyId(null);
2540
+ }
2541
+ }
2542
+ const candidates = [
2543
+ ...groups.map((g) => ({ kind: "Group", group: g })),
2544
+ ...accounts.map((a) => ({ kind: "Account", account: a }))
2545
+ ];
2546
+ const keyOf = (c) => c.kind === "Group" ? `g:${c.group.id}` : `a:${c.account.id}`;
2547
+ const columns = [
2548
+ {
2549
+ id: "type",
2550
+ header: tc("type"),
2551
+ width: "24",
2552
+ cell: (c) => c.kind === "Group" ? /* @__PURE__ */ jsx16(StatusPill9, { tone: "info", children: tc("group") }) : /* @__PURE__ */ jsx16(StatusPill9, { children: tc("account") })
2553
+ },
2554
+ {
2555
+ id: "name",
2556
+ header: tc("name"),
2557
+ cell: (c) => c.kind === "Group" ? /* @__PURE__ */ jsx16(Text15, { as: "span", fontWeight: "medium", children: c.group.name }) : /* @__PURE__ */ jsxs16(HStack13, { gap: "2", children: [
2558
+ /* @__PURE__ */ jsx16(RecordKey4, { value: c.account.username }),
2559
+ /* @__PURE__ */ jsx16(Text15, { as: "span", textStyle: "caption", color: "fg.muted", children: c.account.displayName })
2560
+ ] })
2561
+ },
2562
+ { id: "directory", header: tc("directory"), cell: (c) => c.kind === "Group" ? c.group.directoryName : c.account.directoryName },
2563
+ {
2564
+ id: "add",
2565
+ header: /* @__PURE__ */ jsx16(Text15, { as: "span", srOnly: true, children: tc("actions") }),
2566
+ align: "end",
2567
+ cell: (c) => {
2568
+ const member = c.kind === "Group" ? isMember("Group", c.group.id) : isMember("Account", c.account.id);
2569
+ if (member)
2570
+ return /* @__PURE__ */ jsx16(Text15, { as: "span", textStyle: "caption", color: "fg.muted", children: t("alreadyMember") });
2571
+ const key = keyOf(c);
2572
+ return /* @__PURE__ */ jsx16(
2573
+ Button10,
2574
+ {
2575
+ size: "sm",
2576
+ disabled: busyId != null,
2577
+ loading: busyId === key,
2578
+ onClick: () => add(c.kind === "Group" ? { groupId: c.group.id } : { accountId: c.account.id }, key),
2579
+ children: t("add")
2580
+ }
2581
+ );
2582
+ }
2583
+ }
2584
+ ];
2585
+ return /* @__PURE__ */ jsx16(Panel11, { title: t("addMember"), children: /* @__PURE__ */ jsxs16(Stack11, { gap: "stack", children: [
2586
+ /* @__PURE__ */ jsx16(SearchInput2, { maxW: "md", placeholder: t("searchMembers"), value: query, onChange: (e) => setQuery(e.target.value), "aria-label": t("searchMembers") }),
2587
+ /* @__PURE__ */ jsx16(InlineAlert11, { tone: "danger", children: error }),
2588
+ /* @__PURE__ */ jsx16(InlineAlert11, { tone: "danger", children: searchError }),
2589
+ settled && candidates.length === 0 && !searchError && /* @__PURE__ */ jsx16(Text15, { textStyle: "body", color: "fg.muted", children: t("noMatches") }),
2590
+ candidates.length > 0 && /* @__PURE__ */ jsx16(Panel11, { flush: true, children: /* @__PURE__ */ jsx16(DataTable9, { size: "sm", "aria-label": t("addMember"), columns, rows: candidates, getRowId: keyOf }) })
2591
+ ] }) });
2592
+ }
2593
+ function GroupNames({ group, onSaved }) {
2594
+ const t = useGuardNs("groupDetail");
2595
+ const tc = useGuardNs("common");
2596
+ const request = useAreaRequest12("guard");
2597
+ const action = useApiAction8();
2598
+ const [value, setValue] = useState9(() => toNamesValue2(group.name, group.names));
2599
+ const { name, names } = fromNamesValue2(value);
2600
+ const unchanged = name === group.name && JSON.stringify(names) === JSON.stringify(fromNamesValue2(toNamesValue2(group.name, group.names)).names);
2601
+ async function save(e) {
2602
+ e.preventDefault();
2603
+ const ok = await action.run(async () => {
2604
+ await request(`/groups/${group.id}`, {
2605
+ method: "PUT",
2606
+ body: { name, description: group.description, names, attributes: group.attributes, emailDomains: group.emailDomains }
2607
+ });
2608
+ return true;
2609
+ });
2610
+ if (ok) await onSaved();
2611
+ }
2612
+ return /* @__PURE__ */ jsx16(Panel11, { title: t("names"), description: t("namesHint"), children: /* @__PURE__ */ jsxs16("form", { onSubmit: save, children: [
2613
+ /* @__PURE__ */ jsxs16(HStack13, { gap: "2", align: "start", wrap: "wrap", children: [
2614
+ /* @__PURE__ */ jsx16(TranslatedInput3, { value, onChange: setValue, "aria-label": tc("name"), suggest: false }),
2615
+ /* @__PURE__ */ jsx16(Button10, { type: "submit", loading: action.busy, disabled: !name || unchanged, children: t("saveNames") })
2616
+ ] }),
2617
+ /* @__PURE__ */ jsx16(InlineAlert11, { tone: "danger", children: action.error })
2618
+ ] }) });
2619
+ }
2620
+
2621
+ // src/areas/guard/GroupsScreen.tsx
2622
+ import { useState as useState10 } from "react";
2623
+ import { HStack as HStack14, Input as Input6, SimpleGrid as SimpleGrid3, Stack as Stack12, Text as Text16 } from "@chakra-ui/react";
2624
+ import {
2625
+ AppLink as AppLink9,
2626
+ Button as Button11,
2627
+ DataTable as DataTable10,
2628
+ EMPTY_VALUE as EMPTY_VALUE4,
2629
+ errorText as errorText8,
2630
+ Field as Field5,
2631
+ InlineAlert as InlineAlert12,
2632
+ notify as notify8,
2633
+ PageHeader as PageHeader7,
2634
+ Panel as Panel12,
2635
+ SearchInput as SearchInput3,
2636
+ SelectField as SelectField3,
2637
+ StatusPill as StatusPill10,
2638
+ TranslatedInput as TranslatedInput4,
2639
+ useApiQuery as useApiQuery9,
2640
+ useAreaListSource as useAreaListSource2,
2641
+ useAreaRequest as useAreaRequest13,
2642
+ useCan as useCan3,
2643
+ useListState as useListState2
2644
+ } from "@abpjs/ui";
2645
+ import { fromNamesValue as fromNamesValue3, splitList as splitList2 } from "@abpjs/ui/rules";
2646
+ import { Fragment as Fragment8, jsx as jsx17, jsxs as jsxs17 } from "react/jsx-runtime";
2647
+ var KINDS = ["standard", "directory", "ou", "organization"];
2648
+ function GroupsScreen({ routes = guardRoutes(), source }) {
2649
+ const t = useGuardNs("groups");
2650
+ const tc = useGuardNs("common");
2651
+ const written = useWrittenName();
2652
+ const can = useCan3();
2653
+ const admin = can("guard.site.admin");
2654
+ const dirs = useApiQuery9("guard", "/directories");
2655
+ const served = useAreaListSource2("guard", "/groups/page");
2656
+ const list = useListState2(source ?? served, { initial: { sort: { columnId: "name", direction: "asc" } } });
2657
+ const [creating, setCreating] = useState10(false);
2658
+ const columns = [
2659
+ {
2660
+ id: "name",
2661
+ header: tc("name"),
2662
+ sortValue: (g) => g.name,
2663
+ cell: (g) => /* @__PURE__ */ jsx17(AppLink9, { href: routes.group(g.id), fontWeight: "medium", children: written(g.name, g.names) })
2664
+ },
2665
+ { id: "kind", header: t("kind"), sortValue: (g) => g.kind, cell: (g) => /* @__PURE__ */ jsx17(StatusPill10, { dot: false, children: t(`kinds.${g.kind}`) }), skeleton: "pill" },
2666
+ {
2667
+ id: "description",
2668
+ header: tc("description"),
2669
+ cell: (g) => g.description ? /* @__PURE__ */ jsx17(Text16, { as: "span", color: "fg.muted", children: g.description }) : EMPTY_VALUE4
2670
+ },
2671
+ { id: "directory", header: tc("directory"), sortValue: (g) => g.directoryName, cell: (g) => g.directoryName },
2672
+ {
2673
+ id: "source",
2674
+ header: tc("source"),
2675
+ cell: (g) => g.isLocal ? /* @__PURE__ */ jsx17(StatusPill10, { tone: "accent", children: t("local") }) : /* @__PURE__ */ jsx17(StatusPill10, { tone: "info", children: t("synced") }),
2676
+ skeleton: "pill"
2677
+ },
2678
+ { id: "members", header: t("directMembers"), numeric: true, cell: (g) => num(g.directMemberCount) },
2679
+ { id: "memberGroups", header: t("memberGroups"), numeric: true, cell: (g) => num(g.memberGroupCount) }
2680
+ ];
2681
+ return /* @__PURE__ */ jsxs17(Fragment8, { children: [
2682
+ /* @__PURE__ */ jsx17(
2683
+ PageHeader7,
2684
+ {
2685
+ title: t("title"),
2686
+ description: t("subtitle"),
2687
+ actions: !creating && admin && /* @__PURE__ */ jsx17(Button11, { variant: "primary", onClick: () => setCreating(true), children: t("create") })
2688
+ }
2689
+ ),
2690
+ /* @__PURE__ */ jsxs17(Stack12, { gap: "section", children: [
2691
+ creating && /* @__PURE__ */ jsx17(
2692
+ CreateGroup,
2693
+ {
2694
+ directories: dirs.data ?? [],
2695
+ onCancel: () => setCreating(false),
2696
+ onDone: (created) => {
2697
+ setCreating(false);
2698
+ notify8.success(t("created", { name: created.name }));
2699
+ list.reload();
2700
+ }
2701
+ }
2702
+ ),
2703
+ /* @__PURE__ */ jsxs17(Stack12, { gap: "field", children: [
2704
+ /* @__PURE__ */ jsxs17(HStack14, { gap: "2", wrap: "wrap", children: [
2705
+ /* @__PURE__ */ jsx17(
2706
+ SearchInput3,
2707
+ {
2708
+ size: "sm",
2709
+ maxW: "sm",
2710
+ value: list.query.search,
2711
+ onChange: (e) => list.setSearch(e.target.value),
2712
+ placeholder: t("searchPlaceholder"),
2713
+ "aria-label": t("searchPlaceholder")
2714
+ }
2715
+ ),
2716
+ /* @__PURE__ */ jsx17(
2717
+ SelectField3,
2718
+ {
2719
+ size: "sm",
2720
+ maxW: "14rem",
2721
+ "aria-label": tc("directory"),
2722
+ value: list.query.filters.directoryId ?? "",
2723
+ onChange: (e) => list.setFilter("directoryId", e.target.value || null),
2724
+ options: [{ value: "", label: t("allDirectories") }, ...(dirs.data ?? []).map((d) => ({ value: d.id, label: d.name }))]
2725
+ }
2726
+ ),
2727
+ /* @__PURE__ */ jsx17(
2728
+ SelectField3,
2729
+ {
2730
+ size: "sm",
2731
+ maxW: "14rem",
2732
+ "aria-label": t("kind"),
2733
+ value: list.query.filters.kind ?? "",
2734
+ onChange: (e) => list.setFilter("kind", e.target.value || null),
2735
+ options: [{ value: "", label: t("kind") }, ...KINDS.map((k) => ({ value: k, label: t(`kinds.${k}`) }))]
2736
+ }
2737
+ )
2738
+ ] }),
2739
+ /* @__PURE__ */ jsx17(DataTable10, { "aria-label": t("title"), columns, getRowId: (g) => g.id, empty: t("empty"), ...list.table }),
2740
+ /* @__PURE__ */ jsx17(ListFooter, { list })
2741
+ ] })
2742
+ ] })
2743
+ ] });
2744
+ }
2745
+ function CreateGroup({ directories, onDone, onCancel }) {
2746
+ const t = useGuardNs("groups");
2747
+ const tc = useGuardNs("common");
2748
+ const request = useAreaRequest13("guard");
2749
+ const [nameValue, setNameValue] = useState10({});
2750
+ const { name, names } = fromNamesValue3(nameValue);
2751
+ const [description, setDescription] = useState10("");
2752
+ const [directoryId, setDirectoryId] = useState10("");
2753
+ const [kind, setKind] = useState10("standard");
2754
+ const [domains, setDomains] = useState10("");
2755
+ const [error, setError] = useState10(null);
2756
+ const [busy, setBusy] = useState10(false);
2757
+ async function submit(e) {
2758
+ e.preventDefault();
2759
+ setBusy(true);
2760
+ setError(null);
2761
+ try {
2762
+ const created = await request("/groups", {
2763
+ method: "POST",
2764
+ body: {
2765
+ name,
2766
+ names,
2767
+ description: description || null,
2768
+ ...directoryId ? { directoryId } : {},
2769
+ kind,
2770
+ ...kind === "organization" ? { emailDomains: splitList2(domains) } : {}
2771
+ }
2772
+ });
2773
+ onDone(created);
2774
+ } catch (err) {
2775
+ setError(errorText8(err));
2776
+ } finally {
2777
+ setBusy(false);
2778
+ }
2779
+ }
2780
+ return /* @__PURE__ */ jsx17(Panel12, { title: t("create"), children: /* @__PURE__ */ jsx17("form", { onSubmit: submit, children: /* @__PURE__ */ jsxs17(Stack12, { gap: "field", children: [
2781
+ /* @__PURE__ */ jsxs17(SimpleGrid3, { columns: { base: 1, md: 3 }, gap: "field", children: [
2782
+ /* @__PURE__ */ jsx17(Field5, { label: tc("name"), required: true, children: /* @__PURE__ */ jsx17(TranslatedInput4, { value: nameValue, onChange: setNameValue, "aria-label": tc("name") }) }),
2783
+ /* @__PURE__ */ jsx17(Field5, { label: tc("description"), children: /* @__PURE__ */ jsx17(Input6, { value: description, onChange: (e) => setDescription(e.target.value) }) }),
2784
+ /* @__PURE__ */ jsx17(Field5, { label: tc("directory"), helperText: t("directoryHint"), children: /* @__PURE__ */ jsx17(
2785
+ SelectField3,
2786
+ {
2787
+ value: directoryId,
2788
+ onChange: (e) => setDirectoryId(e.target.value),
2789
+ options: [
2790
+ { value: "", label: t("internalDefault") },
2791
+ ...directories.filter((d) => d.type !== "internal").map((d) => ({ value: d.id, label: d.name }))
2792
+ ]
2793
+ }
2794
+ ) }),
2795
+ /* @__PURE__ */ jsx17(Field5, { label: t("kind"), helperText: t("kindHint"), children: /* @__PURE__ */ jsx17(
2796
+ SelectField3,
2797
+ {
2798
+ value: kind,
2799
+ onChange: (e) => setKind(e.target.value),
2800
+ options: ["standard", "organization"].map((k) => ({ value: k, label: t(`kinds.${k}`) }))
2801
+ }
2802
+ ) }),
2803
+ kind === "organization" && /* @__PURE__ */ jsx17(Field5, { label: t("domains"), helperText: t("domainsHint"), children: /* @__PURE__ */ jsx17(Input6, { value: domains, onChange: (e) => setDomains(e.target.value), dir: "ltr", placeholder: "acme.com" }) })
2804
+ ] }),
2805
+ /* @__PURE__ */ jsx17(InlineAlert12, { tone: "danger", children: error }),
2806
+ /* @__PURE__ */ jsxs17(HStack14, { gap: "2", children: [
2807
+ /* @__PURE__ */ jsx17(Button11, { type: "submit", variant: "primary", loading: busy, children: t("create") }),
2808
+ /* @__PURE__ */ jsx17(Button11, { onClick: onCancel, children: tc("cancel") })
2809
+ ] })
2810
+ ] }) }) });
2811
+ }
2812
+
2813
+ // src/areas/guard/MergeScreen.tsx
2814
+ import { useEffect as useEffect2, useState as useState11 } from "react";
2815
+ import { HStack as HStack15, Input as Input7, SimpleGrid as SimpleGrid4, Stack as Stack13, Text as Text17 } from "@chakra-ui/react";
2816
+ import {
2817
+ boneWidth,
2818
+ Button as Button12,
2819
+ EMPTY_VALUE as EMPTY_VALUE5,
2820
+ Field as Field6,
2821
+ InlineAlert as InlineAlert13,
2822
+ Loading as Loading5,
2823
+ notify as notify9,
2824
+ PageHeader as PageHeader8,
2825
+ Panel as Panel13,
2826
+ PropertyList as PropertyList4,
2827
+ RecordKey as RecordKey5,
2828
+ SearchPicker,
2829
+ StatusPill as StatusPill11,
2830
+ TextBone as TextBone2,
2831
+ TextSlot as TextSlot4,
2832
+ useApiAction as useApiAction9,
2833
+ useApiQuery as useApiQuery10,
2834
+ useAreaRequest as useAreaRequest14,
2835
+ useFormatters as useFormatters9,
2836
+ useNavigate as useNavigate4
2837
+ } from "@abpjs/ui";
2838
+ import { Fragment as Fragment9, jsx as jsx18, jsxs as jsxs18 } from "react/jsx-runtime";
2839
+ function MergeScreen({ id, into, routes = guardRoutes() }) {
2840
+ const t = useGuardNs("merge");
2841
+ const tn = useGuardNs("nav");
2842
+ const tc = useGuardNs("common");
2843
+ const navigate = useNavigate4();
2844
+ const request = useAreaRequest14("guard");
2845
+ const source = useApiQuery10("guard", `/accounts/${id}`);
2846
+ const [survivor, setSurvivor] = useState11(null);
2847
+ const [preview, setPreview] = useState11(null);
2848
+ const [confirm, setConfirm] = useState11("");
2849
+ const loading = useApiAction9();
2850
+ const merging = useApiAction9();
2851
+ useEffect2(() => {
2852
+ if (!into) return;
2853
+ request(`/accounts/${into}`).then(
2854
+ (d) => setSurvivor(d.account),
2855
+ () => void 0
2856
+ );
2857
+ }, [into, request]);
2858
+ useEffect2(() => {
2859
+ setPreview(null);
2860
+ setConfirm("");
2861
+ if (!survivor) return;
2862
+ void loading.run(
2863
+ () => request(`/accounts/${id}/merge/preview`, { method: "POST", body: { survivorId: survivor.id } }).then(setPreview)
2864
+ );
2865
+ }, [id, survivor]);
2866
+ if (source.error && !source.data) return /* @__PURE__ */ jsx18(InlineAlert13, { tone: "danger", children: source.error });
2867
+ const account = source.data?.account;
2868
+ const confirmed = !preview?.needsConfirmation || confirm.trim().toLowerCase() === account?.username.toLowerCase();
2869
+ async function merge() {
2870
+ if (!survivor) return;
2871
+ const done = await merging.run(
2872
+ () => request(`/accounts/${id}/merge`, {
2873
+ method: "POST",
2874
+ body: { survivorId: survivor.id, confirm: preview?.needsConfirmation ? confirm.trim() : null }
2875
+ })
2876
+ );
2877
+ if (done) {
2878
+ if (done.state === "done") notify9.success(t("merged", { source: done.sourceUsername, survivor: done.survivorUsername }));
2879
+ else notify9.warning(t("mergedIncomplete", { source: done.sourceUsername, survivor: done.survivorUsername }));
2880
+ navigate(routes.account(done.survivorId));
2881
+ }
2882
+ }
2883
+ const search = async (text) => (await request(`/accounts?${new URLSearchParams({ search: text })}`)).filter((a) => a.id !== account?.id && !a.mergedIntoId);
2884
+ return /* @__PURE__ */ jsxs18(Loading5, { when: !source.data, children: [
2885
+ /* @__PURE__ */ jsx18(
2886
+ PageHeader8,
2887
+ {
2888
+ breadcrumbs: [
2889
+ { label: tn("accounts"), href: routes.accounts },
2890
+ { label: account?.username, href: routes.account(account?.id ?? id) },
2891
+ { label: t("pageTitle") }
2892
+ ],
2893
+ title: t("pageTitle"),
2894
+ description: /* @__PURE__ */ jsx18(TextSlot4, { width: t("pageHint", { username: "" }).length + 16, children: t("pageHint", { username: account?.username ?? "" }) })
2895
+ }
2896
+ ),
2897
+ /* @__PURE__ */ jsxs18(Stack13, { gap: "section", children: [
2898
+ account?.mergedIntoId ? /* @__PURE__ */ jsx18(InlineAlert13, { tone: "warning", children: t("alreadyMerged", { survivor: source.data?.mergedIntoUsername ?? "" }) }) : /* @__PURE__ */ jsx18(Panel13, { title: t("chooseTitle"), description: t("chooseHint"), children: /* @__PURE__ */ jsx18(Field6, { label: t("survivor"), children: /* @__PURE__ */ jsx18(
2899
+ SearchPicker,
2900
+ {
2901
+ "aria-label": t("survivor"),
2902
+ value: survivor,
2903
+ onChange: setSurvivor,
2904
+ search,
2905
+ known: [],
2906
+ getId: (a) => a.id,
2907
+ label: (a) => `${a.displayName} (@${a.username})`,
2908
+ renderOption: (a) => /* @__PURE__ */ jsxs18(Fragment9, { children: [
2909
+ /* @__PURE__ */ jsx18(Text17, { as: "span", textStyle: "body.sm", fontWeight: "medium", children: a.displayName }),
2910
+ " ",
2911
+ /* @__PURE__ */ jsxs18(Text17, { as: "span", textStyle: "caption", color: "fg.muted", dir: "ltr", children: [
2912
+ "@",
2913
+ a.username,
2914
+ " \xB7 ",
2915
+ a.directoryName,
2916
+ " \xB7 ",
2917
+ a.status
2918
+ ] })
2919
+ ] }),
2920
+ messages: { placeholder: t("searchPlaceholder"), searching: t("searching"), noMatches: t("noMatches"), noKnown: t("noMatches") }
2921
+ }
2922
+ ) }) }),
2923
+ /* @__PURE__ */ jsx18(InlineAlert13, { tone: "danger", children: loading.error }),
2924
+ survivor && (preview || loading.busy) && /* @__PURE__ */ jsxs18(Loading5, { when: !preview, children: [
2925
+ /* @__PURE__ */ jsxs18(SimpleGrid4, { columns: { base: 1, md: 2 }, gap: "section", children: [
2926
+ /* @__PURE__ */ jsx18(Side, { title: t("sourceTitle"), hint: t("sourceHint"), account: preview?.source, routes }),
2927
+ /* @__PURE__ */ jsx18(Side, { title: t("survivorTitle"), hint: t("survivorHint"), account: preview?.survivor, routes })
2928
+ ] }),
2929
+ /* @__PURE__ */ jsx18(Panel13, { title: t("previewTitle"), description: t("previewHint"), "data-testid": "merge-preview", children: preview ? /* @__PURE__ */ jsx18(Parts, { preview }) : /* @__PURE__ */ jsx18(PartsComing, {}) }),
2930
+ /* @__PURE__ */ jsx18(Panel13, { title: t("confirmTitle"), children: /* @__PURE__ */ jsxs18(Stack13, { gap: "field", maxW: "xl", children: [
2931
+ preview?.needsConfirmation && /* @__PURE__ */ jsxs18(Fragment9, { children: [
2932
+ /* @__PURE__ */ jsx18(InlineAlert13, { tone: "warning", children: preview.sameDirectory ? t("activeWarning", { username: account?.username ?? "" }) : t("activeOtherDirectory", { username: account?.username ?? "" }) }),
2933
+ /* @__PURE__ */ jsx18(Field6, { label: t("typeUsername", { username: account?.username ?? "" }), children: /* @__PURE__ */ jsx18(Input7, { value: confirm, onChange: (e) => setConfirm(e.target.value), autoComplete: "off", dir: "ltr" }) })
2934
+ ] }),
2935
+ /* @__PURE__ */ jsx18(Text17, { textStyle: "body.sm", color: "fg.muted", children: t("noUndo") }),
2936
+ /* @__PURE__ */ jsx18(InlineAlert13, { tone: "danger", children: merging.error }),
2937
+ /* @__PURE__ */ jsxs18(HStack15, { gap: "2", children: [
2938
+ /* @__PURE__ */ jsx18(Button12, { variant: "primary", danger: true, onClick: merge, loading: merging.busy, disabled: !confirmed, children: t("mergeButton", {
2939
+ source: preview?.source.username ?? account?.username ?? "",
2940
+ survivor: preview?.survivor.username ?? survivor.username
2941
+ }) }),
2942
+ /* @__PURE__ */ jsx18(Button12, { onClick: () => navigate(routes.account(account?.id ?? id)), children: tc("cancel") })
2943
+ ] })
2944
+ ] }) })
2945
+ ] })
2946
+ ] })
2947
+ ] });
2948
+ }
2949
+ function Side({ title, hint, account, routes }) {
2950
+ const tc = useGuardNs("common");
2951
+ const fmt = useFormatters9();
2952
+ return /* @__PURE__ */ jsx18(Panel13, { title, description: hint, children: /* @__PURE__ */ jsx18(
2953
+ PropertyList4,
2954
+ {
2955
+ items: [
2956
+ { label: tc("username"), value: /* @__PURE__ */ jsx18(RecordKey5, { value: account?.username, href: account && routes.account(account.id) }) },
2957
+ { label: tc("displayName"), value: account?.displayName },
2958
+ { label: tc("email"), value: account && (account.email ?? EMPTY_VALUE5) },
2959
+ { label: tc("directory"), value: account?.directoryName },
2960
+ { label: tc("status"), value: account ? /* @__PURE__ */ jsx18(AccountStatusPill, { status: account.status }) : /* @__PURE__ */ jsx18(StatusPill11, {}) },
2961
+ { label: tc("lastSignIn"), value: account && fmt.dateTime(account.lastLoginAt) }
2962
+ ]
2963
+ }
2964
+ ) });
2965
+ }
2966
+ function PartsComing() {
2967
+ return /* @__PURE__ */ jsx18(SimpleGrid4, { columns: { base: 1, md: 3 }, gap: "field", children: [0, 1, 2].map((i) => /* @__PURE__ */ jsxs18(Stack13, { gap: "1", children: [
2968
+ /* @__PURE__ */ jsx18(Text17, { fontWeight: "medium", children: /* @__PURE__ */ jsx18(TextBone2, { width: boneWidth(i, 8, 14) }) }),
2969
+ /* @__PURE__ */ jsx18(Text17, { textStyle: "body.sm", children: /* @__PURE__ */ jsx18(TextBone2, { width: boneWidth(i + 3, 12, 22) }) })
2970
+ ] }, i)) });
2971
+ }
2972
+ function Parts({ preview }) {
2973
+ const t = useGuardNs("merge");
2974
+ const partLabel = usePartLabel();
2975
+ const moving = preview.parts.filter((p) => p.counts.length > 0 || p.error);
2976
+ if (moving.length === 0) return /* @__PURE__ */ jsx18(Text17, { color: "fg.muted", children: t("nothing") });
2977
+ return /* @__PURE__ */ jsx18(SimpleGrid4, { columns: { base: 1, md: 3 }, gap: "field", children: moving.map((p) => /* @__PURE__ */ jsxs18(Stack13, { gap: "1", children: [
2978
+ /* @__PURE__ */ jsx18(Text17, { fontWeight: "medium", children: partLabel(p.key, p.plugin) }),
2979
+ p.error ? /* @__PURE__ */ jsx18(InlineAlert13, { tone: "warning", children: t("pluginError", { error: p.error }) }) : /* @__PURE__ */ jsx18(CountList, { counts: p.counts })
2980
+ ] }, p.key)) });
2981
+ }
2982
+
2983
+ // src/areas/guard/SignUpScreen.tsx
2984
+ import { useEffect as useEffect3, useState as useState12 } from "react";
2985
+ import { HStack as HStack16, Input as Input8, Stack as Stack14 } from "@chakra-ui/react";
2986
+ import { Button as Button13, Field as Field7, InlineAlert as InlineAlert14, notify as notify10, PageHeader as PageHeader9, Panel as Panel14, SelectField as SelectField4, SwitchField, useApiAction as useApiAction10, useApiQuery as useApiQuery11, useAreaRequest as useAreaRequest15 } from "@abpjs/ui";
2987
+ import { splitList as splitList3 } from "@abpjs/ui/rules";
2988
+ import { jsx as jsx19, jsxs as jsxs19 } from "react/jsx-runtime";
2989
+ function SignUpScreen() {
2990
+ const t = useGuardNs("signUpSettings");
2991
+ const request = useAreaRequest15("guard");
2992
+ const settings = useApiQuery11("guard", "/signup/settings");
2993
+ const directories = useApiQuery11("guard", "/directories");
2994
+ const action = useApiAction10();
2995
+ const [form, setForm] = useState12({ enabled: false, directoryId: "", domains: "" });
2996
+ useEffect3(() => {
2997
+ const s = settings.data;
2998
+ if (s) setForm({ enabled: s.enabled, directoryId: s.directoryId ?? "", domains: s.emailDomains.join(", ") });
2999
+ }, [settings.data]);
3000
+ if (settings.error) return /* @__PURE__ */ jsx19(InlineAlert14, { tone: "danger", children: settings.error });
3001
+ const internal = (directories.data ?? []).filter((d) => d.type === "internal");
3002
+ const chosen = internal.find((d) => d.id === form.directoryId);
3003
+ async function save() {
3004
+ const saved = await action.run(
3005
+ () => request("/signup/settings", {
3006
+ method: "PUT",
3007
+ body: { enabled: form.enabled, directoryId: form.directoryId || null, emailDomains: splitList3(form.domains) }
3008
+ })
3009
+ );
3010
+ if (saved) {
3011
+ settings.setData(saved);
3012
+ notify10.success(t("saved"));
3013
+ }
3014
+ }
3015
+ return /* @__PURE__ */ jsxs19(Stack14, { gap: "section", children: [
3016
+ /* @__PURE__ */ jsx19(PageHeader9, { title: t("title"), description: t("subtitle") }),
3017
+ /* @__PURE__ */ jsx19(Panel14, { "data-testid": "signup-settings", loading: !settings.data, children: /* @__PURE__ */ jsxs19(Stack14, { gap: "field", maxW: "2xl", children: [
3018
+ /* @__PURE__ */ jsx19(SwitchField, { label: t("enabled"), checked: form.enabled, onCheckedChange: (c) => setForm({ ...form, enabled: c }) }),
3019
+ /* @__PURE__ */ jsx19(Field7, { label: t("directory"), helperText: t("directoryHint"), children: /* @__PURE__ */ jsx19(
3020
+ SelectField4,
3021
+ {
3022
+ value: form.directoryId,
3023
+ onChange: (e) => setForm({ ...form, directoryId: e.target.value }),
3024
+ options: [{ value: "", label: t("chooseDirectory") }, ...internal.map((d) => ({ value: d.id, label: d.name }))]
3025
+ }
3026
+ ) }),
3027
+ /* @__PURE__ */ jsx19(Field7, { label: t("domains"), helperText: t("domainsHint"), children: /* @__PURE__ */ jsx19(Input8, { value: form.domains, onChange: (e) => setForm({ ...form, domains: e.target.value }), dir: "ltr", placeholder: "acme.com, example.org" }) }),
3028
+ chosen && /* @__PURE__ */ jsx19(InlineAlert14, { tone: "info", children: t("grantHint", { group: `${chosen.name} (everyone)` }) }),
3029
+ /* @__PURE__ */ jsx19(InlineAlert14, { tone: "danger", children: action.error }),
3030
+ /* @__PURE__ */ jsx19(HStack16, { children: /* @__PURE__ */ jsx19(Button13, { onClick: () => void save(), loading: action.busy, children: t("save") }) })
3031
+ ] }) })
3032
+ ] });
3033
+ }
3034
+ export {
3035
+ AccountEmailsPanel,
3036
+ AccountNameEditor,
3037
+ AccountScreen,
3038
+ AccountSecondFactorPanel,
3039
+ AccountStatusPill,
3040
+ AccountsScreen,
3041
+ AnonymousScreen,
3042
+ CountList,
3043
+ DirectoriesScreen,
3044
+ DirectoryForm,
3045
+ DirectoryScreen,
3046
+ DirectoryWarnings,
3047
+ DuplicatesPanel,
3048
+ FlagPill,
3049
+ GroupScreen,
3050
+ GroupTree,
3051
+ GroupTwoFactorPanel,
3052
+ GroupsScreen,
3053
+ ListFooter,
3054
+ MergeScreen,
3055
+ MergesPanel,
3056
+ PassFail,
3057
+ PluginStatePill,
3058
+ SignUpScreen,
3059
+ SyncResultPill,
3060
+ SyncStatus,
3061
+ TWO_FACTOR_MODES,
3062
+ guardRoutes,
3063
+ num,
3064
+ useAccountCan,
3065
+ useCountLabel,
3066
+ useGuardNs,
3067
+ useGuardTexts,
3068
+ usePartLabel,
3069
+ useWrittenName,
3070
+ withParts
3071
+ };
3072
+ //# sourceMappingURL=guard.js.map