@abpjs/ui 0.2.0-next.2 → 0.2.0-next.20

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