@keycloak/keycloak-admin-ui 26.0.2 → 26.0.5
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/lib/.vite/manifest.json +19 -19
- package/lib/{CreateFlow-C6H_AQ1E.js → CreateFlow-CblK3mOs.js} +2 -2
- package/lib/{CreateFlow-C6H_AQ1E.js.map → CreateFlow-CblK3mOs.js.map} +1 -1
- package/lib/{DetailOrganization-BaYgIdUQ.js → DetailOrganization-BqQl45n3.js} +2 -2
- package/lib/{DetailOrganization-BaYgIdUQ.js.map → DetailOrganization-BqQl45n3.js.map} +1 -1
- package/lib/{ExecutorForm-C_GZESpP.js → ExecutorForm-CXp7kbZM.js} +2 -2
- package/lib/{ExecutorForm-C_GZESpP.js.map → ExecutorForm-CXp7kbZM.js.map} +1 -1
- package/lib/{FlowDetails-BKOAwgS5.js → FlowDetails-BHMa0wUU.js} +2 -2
- package/lib/{FlowDetails-BKOAwgS5.js.map → FlowDetails-BHMa0wUU.js.map} +1 -1
- package/lib/{NewOrganization-DHDOHAv9.js → NewOrganization-CPEV9EB6.js} +2 -2
- package/lib/{NewOrganization-DHDOHAv9.js.map → NewOrganization-CPEV9EB6.js.map} +1 -1
- package/lib/{PermissionDetails-BPCmd0pN.js → PermissionDetails-BbcUcIPk.js} +2 -2
- package/lib/{PermissionDetails-BPCmd0pN.js.map → PermissionDetails-BbcUcIPk.js.map} +1 -1
- package/lib/{ResourceDetails-BGfQOKT8.js → ResourceDetails-a44Wnoz1.js} +2 -2
- package/lib/{ResourceDetails-BGfQOKT8.js.map → ResourceDetails-a44Wnoz1.js.map} +1 -1
- package/lib/{ScopeDetails-WHCOF1-i.js → ScopeDetails-CB16pzcM.js} +2 -2
- package/lib/{ScopeDetails-WHCOF1-i.js.map → ScopeDetails-CB16pzcM.js.map} +1 -1
- package/lib/{index-mQ_rth1w.js → index-Bh6vI8A1.js} +2678 -2663
- package/lib/{index-mQ_rth1w.js.map → index-Bh6vI8A1.js.map} +1 -1
- package/lib/keycloak-admin-ui.js +1 -1
- package/package.json +4 -4
package/lib/.vite/manifest.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
|
-
"_index-
|
3
|
-
"file": "index-
|
2
|
+
"_index-Bh6vI8A1.js": {
|
3
|
+
"file": "index-Bh6vI8A1.js",
|
4
4
|
"name": "index",
|
5
5
|
"dynamicImports": [
|
6
6
|
"src/authentication/FlowDetails.tsx",
|
@@ -18,48 +18,48 @@
|
|
18
18
|
]
|
19
19
|
},
|
20
20
|
"src/authentication/FlowDetails.tsx": {
|
21
|
-
"file": "FlowDetails-
|
21
|
+
"file": "FlowDetails-BHMa0wUU.js",
|
22
22
|
"name": "FlowDetails",
|
23
23
|
"src": "src/authentication/FlowDetails.tsx",
|
24
24
|
"isDynamicEntry": true,
|
25
25
|
"imports": [
|
26
|
-
"_index-
|
26
|
+
"_index-Bh6vI8A1.js"
|
27
27
|
]
|
28
28
|
},
|
29
29
|
"src/authentication/form/CreateFlow.tsx": {
|
30
|
-
"file": "CreateFlow-
|
30
|
+
"file": "CreateFlow-CblK3mOs.js",
|
31
31
|
"name": "CreateFlow",
|
32
32
|
"src": "src/authentication/form/CreateFlow.tsx",
|
33
33
|
"isDynamicEntry": true,
|
34
34
|
"imports": [
|
35
|
-
"_index-
|
35
|
+
"_index-Bh6vI8A1.js"
|
36
36
|
]
|
37
37
|
},
|
38
38
|
"src/clients/authorization/PermissionDetails.tsx": {
|
39
|
-
"file": "PermissionDetails-
|
39
|
+
"file": "PermissionDetails-BbcUcIPk.js",
|
40
40
|
"name": "PermissionDetails",
|
41
41
|
"src": "src/clients/authorization/PermissionDetails.tsx",
|
42
42
|
"isDynamicEntry": true,
|
43
43
|
"imports": [
|
44
|
-
"_index-
|
44
|
+
"_index-Bh6vI8A1.js"
|
45
45
|
]
|
46
46
|
},
|
47
47
|
"src/clients/authorization/ResourceDetails.tsx": {
|
48
|
-
"file": "ResourceDetails-
|
48
|
+
"file": "ResourceDetails-a44Wnoz1.js",
|
49
49
|
"name": "ResourceDetails",
|
50
50
|
"src": "src/clients/authorization/ResourceDetails.tsx",
|
51
51
|
"isDynamicEntry": true,
|
52
52
|
"imports": [
|
53
|
-
"_index-
|
53
|
+
"_index-Bh6vI8A1.js"
|
54
54
|
]
|
55
55
|
},
|
56
56
|
"src/clients/authorization/ScopeDetails.tsx": {
|
57
|
-
"file": "ScopeDetails-
|
57
|
+
"file": "ScopeDetails-CB16pzcM.js",
|
58
58
|
"name": "ScopeDetails",
|
59
59
|
"src": "src/clients/authorization/ScopeDetails.tsx",
|
60
60
|
"isDynamicEntry": true,
|
61
61
|
"imports": [
|
62
|
-
"_index-
|
62
|
+
"_index-Bh6vI8A1.js"
|
63
63
|
]
|
64
64
|
},
|
65
65
|
"src/index.ts": {
|
@@ -68,34 +68,34 @@
|
|
68
68
|
"src": "src/index.ts",
|
69
69
|
"isEntry": true,
|
70
70
|
"imports": [
|
71
|
-
"_index-
|
71
|
+
"_index-Bh6vI8A1.js"
|
72
72
|
]
|
73
73
|
},
|
74
74
|
"src/organizations/DetailOrganization.tsx": {
|
75
|
-
"file": "DetailOrganization-
|
75
|
+
"file": "DetailOrganization-BqQl45n3.js",
|
76
76
|
"name": "DetailOrganization",
|
77
77
|
"src": "src/organizations/DetailOrganization.tsx",
|
78
78
|
"isDynamicEntry": true,
|
79
79
|
"imports": [
|
80
|
-
"_index-
|
80
|
+
"_index-Bh6vI8A1.js"
|
81
81
|
]
|
82
82
|
},
|
83
83
|
"src/organizations/NewOrganization.tsx": {
|
84
|
-
"file": "NewOrganization-
|
84
|
+
"file": "NewOrganization-CPEV9EB6.js",
|
85
85
|
"name": "NewOrganization",
|
86
86
|
"src": "src/organizations/NewOrganization.tsx",
|
87
87
|
"isDynamicEntry": true,
|
88
88
|
"imports": [
|
89
|
-
"_index-
|
89
|
+
"_index-Bh6vI8A1.js"
|
90
90
|
]
|
91
91
|
},
|
92
92
|
"src/realm-settings/ExecutorForm.tsx": {
|
93
|
-
"file": "ExecutorForm-
|
93
|
+
"file": "ExecutorForm-CXp7kbZM.js",
|
94
94
|
"name": "ExecutorForm",
|
95
95
|
"src": "src/realm-settings/ExecutorForm.tsx",
|
96
96
|
"isDynamicEntry": true,
|
97
97
|
"imports": [
|
98
|
-
"_index-
|
98
|
+
"_index-Bh6vI8A1.js"
|
99
99
|
]
|
100
100
|
},
|
101
101
|
"style.css": {
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { jsxs as r, Fragment as f, jsx as t } from "react/jsx-runtime";
|
2
|
-
import { u as h, a as F, $ as b, b as v, V as y, P as g, F as S, c as A, N as C, W as I, A as T, X as H, B as N, t as P, d as i, e as V } from "./index-
|
2
|
+
import { u as h, a as F, $ as b, b as v, V as y, P as g, F as S, c as A, N as C, W as I, A as T, X as H, B as N, t as P, d as i, e as V } from "./index-Bh6vI8A1.js";
|
3
3
|
import { useTranslation as k } from "react-i18next";
|
4
4
|
import { useNavigate as x, Link as B } from "react-router-dom";
|
5
5
|
const c = ["basic-flow", "client-flow"];
|
@@ -77,4 +77,4 @@ function E() {
|
|
77
77
|
export {
|
78
78
|
E as default
|
79
79
|
};
|
80
|
-
//# sourceMappingURL=CreateFlow-
|
80
|
+
//# sourceMappingURL=CreateFlow-CblK3mOs.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"CreateFlow-
|
1
|
+
{"version":3,"file":"CreateFlow-CblK3mOs.js","sources":["../src/authentication/form/CreateFlow.tsx"],"sourcesContent":["import type AuthenticationFlowRepresentation from \"@keycloak/keycloak-admin-client/lib/defs/authenticationFlowRepresentation\";\nimport {\n ActionGroup,\n AlertVariant,\n Button,\n PageSection,\n} from \"@patternfly/react-core\";\nimport { FormProvider, useForm } from \"react-hook-form\";\nimport { useTranslation } from \"react-i18next\";\nimport { Link, useNavigate } from \"react-router-dom\";\nimport { FormSubmitButton, SelectControl } from \"@keycloak/keycloak-ui-shared\";\nimport { useAdminClient } from \"../../admin-client\";\nimport { useAlerts } from \"@keycloak/keycloak-ui-shared\";\nimport { FormAccess } from \"../../components/form/FormAccess\";\nimport { ViewHeader } from \"../../components/view-header/ViewHeader\";\nimport { useRealm } from \"../../context/realm-context/RealmContext\";\nimport { toAuthentication } from \"../routes/Authentication\";\nimport { toFlow } from \"../routes/Flow\";\nimport { NameDescription } from \"./NameDescription\";\n\nconst TYPES = [\"basic-flow\", \"client-flow\"] as const;\n\nexport default function CreateFlow() {\n const { adminClient } = useAdminClient();\n\n const { t } = useTranslation();\n const navigate = useNavigate();\n const { realm } = useRealm();\n const { addAlert } = useAlerts();\n const form = useForm<AuthenticationFlowRepresentation>();\n const { handleSubmit, formState } = form;\n\n const onSubmit = async (formValues: AuthenticationFlowRepresentation) => {\n const flow = { ...formValues, builtIn: false, topLevel: true };\n\n try {\n const { id } =\n await adminClient.authenticationManagement.createFlow(flow);\n addAlert(t(\"flowCreatedSuccess\"), AlertVariant.success);\n navigate(\n toFlow({\n realm,\n id: id!,\n usedBy: \"notInUse\",\n }),\n );\n } catch (error: any) {\n addAlert(\n t(\"flowCreateError\", {\n error: error.response?.data?.errorMessage || error,\n }),\n AlertVariant.danger,\n );\n }\n };\n\n return (\n <>\n <ViewHeader titleKey=\"createFlow\" subKey=\"authenticationCreateFlowHelp\" />\n <PageSection variant=\"light\">\n <FormProvider {...form}>\n <FormAccess\n isHorizontal\n role=\"manage-authorization\"\n onSubmit={handleSubmit(onSubmit)}\n >\n <NameDescription />\n <SelectControl\n name=\"providerId\"\n label={t(\"flowType\")}\n labelIcon={t(\"topLevelFlowTypeHelp\")}\n aria-label={t(\"selectFlowType\")}\n controller={{ defaultValue: TYPES[0] }}\n options={TYPES.map((type) => ({\n key: type,\n value: t(`top-level-flow-type.${type}`),\n }))}\n />\n <ActionGroup>\n <FormSubmitButton\n formState={formState}\n data-testid=\"create\"\n allowInvalid\n allowNonDirty\n >\n {t(\"create\")}\n </FormSubmitButton>\n <Button\n data-testid=\"cancel\"\n variant=\"link\"\n component={(props) => (\n <Link {...props} to={toAuthentication({ realm })}></Link>\n )}\n >\n {t(\"cancel\")}\n </Button>\n </ActionGroup>\n </FormAccess>\n </FormProvider>\n </PageSection>\n </>\n );\n}\n"],"names":["TYPES","CreateFlow","adminClient","useAdminClient","t","useTranslation","navigate","useNavigate","realm","useRealm","addAlert","useAlerts","form","useForm","handleSubmit","formState","jsxs","Fragment","jsx","ViewHeader","PageSection","FormProvider","FormAccess","formValues","flow","id","AlertVariant","toFlow","error","NameDescription","SelectControl","type","ActionGroup","FormSubmitButton","Button","props","Link","toAuthentication"],"mappings":";;;;AAoBA,MAAMA,IAAQ,CAAC,cAAc,aAAa;AAE1C,SAAwBC,IAAa;AAC7B,QAAA,EAAE,aAAAC,MAAgBC,KAElB,EAAE,GAAAC,MAAMC,KACRC,IAAWC,KACX,EAAE,OAAAC,MAAUC,KACZ,EAAE,UAAAC,MAAaC,KACfC,IAAOC,KACP,EAAE,cAAAC,GAAc,WAAAC,EAAc,IAAAH;AA0BpC,SAEI,gBAAAI,EAAAC,GAAA,EAAA,UAAA;AAAA,IAAA,gBAAAC,EAACC,GAAW,EAAA,UAAS,cAAa,QAAO,gCAA+B;AAAA,sBACvEC,GAAY,EAAA,SAAQ,SACnB,UAAC,gBAAAF,EAAAG,GAAA,EAAc,GAAGT,GAChB,UAAA,gBAAAI;AAAA,MAACM;AAAA,MAAA;AAAA,QACC,cAAY;AAAA,QACZ,MAAK;AAAA,QACL,UAAUR,EAhCH,OAAOS,MAAiD;AACvE,gBAAMC,IAAO,EAAE,GAAGD,GAAY,SAAS,IAAO,UAAU;AAEpD,cAAA;AACF,kBAAM,EAAE,IAAAE,EAAG,IACT,MAAMvB,EAAY,yBAAyB,WAAWsB,CAAI;AAC5D,YAAAd,EAASN,EAAE,oBAAoB,GAAGsB,EAAa,OAAO,GACtDpB;AAAA,cACEqB,EAAO;AAAA,gBACL,OAAAnB;AAAA,gBACA,IAAAiB;AAAA,gBACA,QAAQ;AAAA,cAAA,CACT;AAAA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jsxs as o } from "react/jsx-runtime";
|
2
|
-
import { u as f, $ as P, a as p, b9 as O, b as S, m as A, P as c, F, bs as x, bt as B, bu as d, bv as b, c as C, bw as E, A as w, X as D, B as R, bx as V, by as j, bz as k, bA as H, bB as I, bC as X, bD as $ } from "./index-
|
2
|
+
import { u as f, $ as P, a as p, b9 as O, b as S, m as A, P as c, F, bs as x, bt as B, bu as d, bv as b, c as C, bw as E, A as w, X as D, B as R, bx as V, by as j, bz as k, bA as H, bB as I, bC as X, bD as $ } from "./index-Bh6vI8A1.js";
|
3
3
|
import { useTranslation as G } from "react-i18next";
|
4
4
|
function q() {
|
5
5
|
const { adminClient: m } = f(), { addAlert: u, addError: h } = P(), { realm: g } = p(), { id: r } = O(), { t: a } = G(), e = S(), l = async (i) => {
|
@@ -127,4 +127,4 @@ function q() {
|
|
127
127
|
export {
|
128
128
|
q as default
|
129
129
|
};
|
130
|
-
//# sourceMappingURL=DetailOrganization-
|
130
|
+
//# sourceMappingURL=DetailOrganization-BqQl45n3.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"DetailOrganization-
|
1
|
+
{"version":3,"file":"DetailOrganization-BqQl45n3.js","sources":["../src/organizations/DetailOrganization.tsx"],"sourcesContent":["import {\n FormSubmitButton,\n useAlerts,\n useFetch,\n} from \"@keycloak/keycloak-ui-shared\";\nimport {\n ActionGroup,\n Button,\n PageSection,\n Tab,\n TabTitleText,\n} from \"@patternfly/react-core\";\nimport { FormProvider, useForm } from \"react-hook-form\";\nimport { useTranslation } from \"react-i18next\";\nimport { useAdminClient } from \"../admin-client\";\nimport { FormAccess } from \"../components/form/FormAccess\";\nimport { AttributesForm } from \"../components/key-value-form/AttributeForm\";\nimport { arrayToKeyValue } from \"../components/key-value-form/key-value-convert\";\nimport {\n RoutableTabs,\n useRoutableTab,\n} from \"../components/routable-tabs/RoutableTabs\";\nimport { useRealm } from \"../context/realm-context/RealmContext\";\nimport { useParams } from \"../utils/useParams\";\nimport { DetailOrganizationHeader } from \"./DetailOraganzationHeader\";\nimport { IdentityProviders } from \"./IdentityProviders\";\nimport { Members } from \"./Members\";\nimport {\n OrganizationForm,\n OrganizationFormType,\n convertToOrg,\n} from \"./OrganizationForm\";\nimport {\n EditOrganizationParams,\n OrganizationTab,\n toEditOrganization,\n} from \"./routes/EditOrganization\";\n\nexport default function DetailOrganization() {\n const { adminClient } = useAdminClient();\n const { addAlert, addError } = useAlerts();\n\n const { realm } = useRealm();\n const { id } = useParams<EditOrganizationParams>();\n const { t } = useTranslation();\n\n const form = useForm<OrganizationFormType>();\n\n const save = async (org: OrganizationFormType) => {\n try {\n const organization = convertToOrg(org);\n await adminClient.organizations.updateById({ id }, organization);\n addAlert(t(\"organizationSaveSuccess\"));\n } catch (error) {\n addError(\"organizationSaveError\", error);\n }\n };\n\n useFetch(\n () => adminClient.organizations.findOne({ id }),\n (org) => {\n if (!org) {\n throw new Error(t(\"notFound\"));\n }\n form.reset({\n ...org,\n domains: org.domains?.map((d) => d.name),\n attributes: arrayToKeyValue(org.attributes),\n });\n },\n [id],\n );\n\n const useTab = (tab: OrganizationTab) =>\n useRoutableTab(\n toEditOrganization({\n realm,\n id,\n tab,\n }),\n );\n\n const settingsTab = useTab(\"settings\");\n const attributesTab = useTab(\"attributes\");\n const membersTab = useTab(\"members\");\n const identityProvidersTab = useTab(\"identityProviders\");\n\n return (\n <PageSection variant=\"light\" className=\"pf-v5-u-p-0\">\n <FormProvider {...form}>\n <DetailOrganizationHeader save={() => save(form.getValues())} />\n <RoutableTabs\n data-testid=\"organization-tabs\"\n aria-label={t(\"organization\")}\n isBox\n mountOnEnter\n >\n <Tab\n id=\"settings\"\n data-testid=\"settingsTab\"\n title={<TabTitleText>{t(\"settings\")}</TabTitleText>}\n {...settingsTab}\n >\n <PageSection>\n <FormAccess\n role=\"anyone\"\n onSubmit={form.handleSubmit(save)}\n isHorizontal\n >\n <OrganizationForm readOnly />\n <ActionGroup>\n <FormSubmitButton\n formState={form.formState}\n data-testid=\"save\"\n >\n {t(\"save\")}\n </FormSubmitButton>\n <Button\n onClick={() => form.reset()}\n data-testid=\"reset\"\n variant=\"link\"\n >\n {t(\"reset\")}\n </Button>\n </ActionGroup>\n </FormAccess>\n </PageSection>\n </Tab>\n <Tab\n id=\"attributes\"\n data-testid=\"attributeTab\"\n title={<TabTitleText>{t(\"attributes\")}</TabTitleText>}\n {...attributesTab}\n >\n <PageSection variant=\"light\">\n <AttributesForm\n form={form}\n save={save}\n reset={() =>\n form.reset({\n ...form.getValues(),\n })\n }\n name=\"attributes\"\n />\n </PageSection>\n </Tab>\n <Tab\n id=\"members\"\n data-testid=\"membersTab\"\n title={<TabTitleText>{t(\"members\")}</TabTitleText>}\n {...membersTab}\n >\n <Members />\n </Tab>\n <Tab\n id=\"identityProviders\"\n data-testid=\"identityProvidersTab\"\n title={<TabTitleText>{t(\"identityProviders\")}</TabTitleText>}\n {...identityProvidersTab}\n >\n <IdentityProviders />\n </Tab>\n </RoutableTabs>\n </FormProvider>\n </PageSection>\n );\n}\n"],"names":["DetailOrganization","adminClient","useAdminClient","addAlert","addError","useAlerts","realm","useRealm","id","useParams","t","useTranslation","form","useForm","save","org","organization","convertToOrg","error","useFetch","d","arrayToKeyValue","useTab","tab","useRoutableTab","toEditOrganization","settingsTab","attributesTab","membersTab","identityProvidersTab","jsx","PageSection","jsxs","FormProvider","DetailOrganizationHeader","RoutableTabs","Tab","TabTitleText","FormAccess","OrganizationForm","ActionGroup","FormSubmitButton","Button","AttributesForm","Members","IdentityProviders"],"mappings":";;;AAsCA,SAAwBA,IAAqB;AACrC,QAAA,EAAE,aAAAC,MAAgBC,KAClB,EAAE,UAAAC,GAAU,UAAAC,EAAS,IAAIC,EAAU,GAEnC,EAAE,OAAAC,MAAUC,KACZ,EAAE,IAAAC,MAAOC,KACT,EAAE,GAAAC,MAAMC,KAERC,IAAOC,KAEPC,IAAO,OAAOC,MAA8B;AAC5C,QAAA;AACI,YAAAC,IAAeC,EAAaF,CAAG;AACrC,YAA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AkB;AAAA,YAACM;AAAA,YAAA;AAAA,cACC,IAAG;AAAA,cACH,eAAY;AAAA,cACZ,OAAO,gBAAAN,EAACO,GAAc,EAAA,UAAA3B,EAAE,SAAS,GAAE;AAAA,cAClC,GAAGkB;AAAA,cAEJ,4BAACgB,GAAQ,EAAA;AAAA,YAAA;AAAA,UACX;AAAA,UACA,gBAAAd;AAAA,YAACM;AAAA,YAAA;AAAA,cACC,IAAG;AAAA,cACH,eAAY;AAAA,cACZ,OAAO,gBAAAN,EAACO,GAAc,EAAA,UAAA3B,EAAE,mBAAmB,GAAE;AAAA,cAC5C,GAAGmB;AAAA,cAEJ,4BAACgB,GAAkB,EAAA;AAAA,YAAA;AAAA,UACrB;AAAA,QAAA;AAAA,MAAA;AAAA,IACF;AAAA,EAAA,EACF,CAAA,EACF,CAAA;AAEJ;"}
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { jsxs as u, Fragment as R, jsx as o } from "react/jsx-runtime";
|
2
|
-
import { u as q, b9 as k, $ as J, bF as Q, b as U, m as W, V as X, P as Y, c as Z, bf as _, bg as V, b6 as ee, b7 as te, b8 as oe, aP as re, F as ce, aL as ae, A as se, B as g, bG as b, d as ne } from "./index-
|
2
|
+
import { u as q, b9 as k, $ as J, bF as Q, b as U, m as W, V as X, P as Y, c as Z, bf as _, bg as V, b6 as ee, b7 as te, b8 as oe, aP as re, F as ce, aL as ae, A as se, B as g, bG as b, d as ne } from "./index-Bh6vI8A1.js";
|
3
3
|
import { useState as l } from "react";
|
4
4
|
import { useTranslation as ie } from "react-i18next";
|
5
5
|
import { useNavigate as le, Link as F } from "react-router-dom";
|
@@ -195,4 +195,4 @@ function ge() {
|
|
195
195
|
export {
|
196
196
|
ge as default
|
197
197
|
};
|
198
|
-
//# sourceMappingURL=ExecutorForm-
|
198
|
+
//# sourceMappingURL=ExecutorForm-CXp7kbZM.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"ExecutorForm-C_GZESpP.js","sources":["../src/realm-settings/ExecutorForm.tsx"],"sourcesContent":["import type { ConfigPropertyRepresentation } from \"@keycloak/keycloak-admin-client/lib/defs/authenticatorConfigInfoRepresentation\";\nimport type ClientProfileRepresentation from \"@keycloak/keycloak-admin-client/lib/defs/clientProfileRepresentation\";\nimport type ComponentTypeRepresentation from \"@keycloak/keycloak-admin-client/lib/defs/componentTypeRepresentation\";\nimport {\n HelpItem,\n KeycloakSelect,\n SelectVariant,\n useAlerts,\n useFetch,\n} from \"@keycloak/keycloak-ui-shared\";\nimport {\n ActionGroup,\n AlertVariant,\n Button,\n FormGroup,\n PageSection,\n SelectOption,\n} from \"@patternfly/react-core\";\nimport { useState } from \"react\";\nimport { Controller, FormProvider, useForm } from \"react-hook-form\";\nimport { useTranslation } from \"react-i18next\";\nimport { Link, useNavigate } from \"react-router-dom\";\nimport { useAdminClient } from \"../admin-client\";\nimport { DynamicComponents } from \"../components/dynamic/DynamicComponents\";\nimport { FormAccess } from \"../components/form/FormAccess\";\nimport { ViewHeader } from \"../components/view-header/ViewHeader\";\nimport { useServerInfo } from \"../context/server-info/ServerInfoProvider\";\nimport { useParams } from \"../utils/useParams\";\nimport { ClientProfileParams, toClientProfile } from \"./routes/ClientProfile\";\nimport type { ExecutorParams } from \"./routes/Executor\";\n\ntype ExecutorForm = {\n config?: object;\n executor: string;\n};\n\nconst defaultValues: ExecutorForm = {\n config: {},\n executor: \"\",\n};\n\nexport default function ExecutorForm() {\n const { adminClient } = useAdminClient();\n\n const { t } = useTranslation();\n const navigate = useNavigate();\n const { realm, profileName } = useParams<ClientProfileParams>();\n const { executorName } = useParams<ExecutorParams>();\n const { addAlert, addError } = useAlerts();\n const [selectExecutorTypeOpen, setSelectExecutorTypeOpen] = useState(false);\n const serverInfo = useServerInfo();\n const executorTypes =\n serverInfo.componentTypes?.[\n \"org.keycloak.services.clientpolicy.executor.ClientPolicyExecutorProvider\"\n ];\n const [executors, setExecutors] = useState<ComponentTypeRepresentation[]>([]);\n const [executorProperties, setExecutorProperties] = useState<\n ConfigPropertyRepresentation[]\n >([]);\n const [globalProfiles, setGlobalProfiles] = useState<\n ClientProfileRepresentation[]\n >([]);\n const [profiles, setProfiles] = useState<ClientProfileRepresentation[]>([]);\n const form = useForm({ defaultValues });\n const { control, reset, handleSubmit } = form;\n const editMode = !!executorName;\n\n const setupForm = (profiles: ClientProfileRepresentation[]) => {\n const profile = profiles.find((profile) => profile.name === profileName);\n const executor = profile?.executors?.find(\n (executor) => executor.executor === executorName,\n );\n if (executor) reset({ config: executor.configuration });\n };\n\n useFetch(\n () =>\n adminClient.clientPolicies.listProfiles({ includeGlobalProfiles: true }),\n (profiles) => {\n setGlobalProfiles(profiles.globalProfiles!);\n setProfiles(profiles.profiles!);\n\n setupForm(profiles.profiles!);\n setupForm(profiles.globalProfiles!);\n },\n [],\n );\n\n const save = async () => {\n const formValues = form.getValues();\n const updatedProfiles = profiles.map((profile) => {\n if (profile.name !== profileName) {\n return profile;\n }\n\n const executors = (profile.executors ?? []).concat({\n executor: formValues.executor,\n configuration: formValues.config || {},\n });\n\n if (editMode) {\n const profileExecutor = profile.executors!.find(\n (executor) => executor.executor === executorName,\n );\n profileExecutor!.configuration = {\n ...profileExecutor!.configuration,\n ...formValues.config,\n };\n }\n\n if (editMode) {\n return profile;\n }\n return {\n ...profile,\n executors,\n };\n });\n try {\n await adminClient.clientPolicies.createProfiles({\n profiles: updatedProfiles,\n globalProfiles: globalProfiles,\n });\n addAlert(\n editMode ? t(\"updateExecutorSuccess\") : t(\"addExecutorSuccess\"),\n AlertVariant.success,\n );\n\n navigate(toClientProfile({ realm, profileName }));\n } catch (error) {\n addError(editMode ? \"updateExecutorError\" : \"addExecutorError\", error);\n }\n };\n\n const globalProfile = globalProfiles.find(\n (globalProfile) => globalProfile.name === profileName,\n );\n\n const profileExecutorType = executorTypes?.find(\n (executor) => executor.id === executorName,\n );\n\n const editedProfileExecutors =\n profileExecutorType?.properties.map<ConfigPropertyRepresentation>(\n (property) => {\n const globalDefaultValues = editMode ? property.defaultValue : \"\";\n return {\n ...property,\n defaultValue: globalDefaultValues,\n };\n },\n );\n\n return (\n <>\n <ViewHeader\n titleKey={editMode ? executorName : t(\"addExecutor\")}\n divider\n />\n <PageSection variant=\"light\">\n <FormAccess\n isHorizontal\n role=\"manage-realm\"\n className=\"pf-v5-u-mt-lg\"\n isReadOnly={!!globalProfile}\n >\n <FormGroup\n label={t(\"executorType\")}\n fieldId=\"kc-executorType\"\n labelIcon={\n executors.length > 0 && executors[0].helpText! !== \"\" ? (\n <HelpItem\n helpText={executors[0].helpText}\n fieldLabelId=\"executorTypeHelpText\"\n />\n ) : editMode ? (\n <HelpItem\n helpText={profileExecutorType?.helpText}\n fieldLabelId=\"executorTypeHelpText\"\n />\n ) : undefined\n }\n >\n <Controller\n name=\"executor\"\n defaultValue=\"\"\n control={control}\n render={({ field }) => (\n <KeycloakSelect\n toggleId=\"kc-executor\"\n placeholderText=\"Select an executor\"\n onToggle={(isOpen) => setSelectExecutorTypeOpen(isOpen)}\n onSelect={(value) => {\n reset({ ...defaultValues, executor: value.toString() });\n const selectedExecutor = executorTypes?.filter(\n (type) => type.id === value,\n );\n setExecutors(selectedExecutor ?? []);\n setExecutorProperties(\n selectedExecutor?.[0].properties ?? [],\n );\n setSelectExecutorTypeOpen(false);\n }}\n selections={editMode ? executorName : field.value}\n variant={SelectVariant.single}\n data-testid=\"executorType-select\"\n aria-label={t(\"executorType\")}\n isOpen={selectExecutorTypeOpen}\n maxHeight={580}\n isDisabled={editMode}\n >\n {executorTypes?.map((option) => (\n <SelectOption\n selected={option.id === field.value}\n key={option.id}\n value={option.id}\n description={option.helpText}\n >\n {option.id}\n </SelectOption>\n ))}\n </KeycloakSelect>\n )}\n />\n </FormGroup>\n <FormProvider {...form}>\n <DynamicComponents\n properties={\n editMode ? editedProfileExecutors! : executorProperties\n }\n />\n </FormProvider>\n {!globalProfile && (\n <ActionGroup>\n <Button\n variant=\"primary\"\n onClick={() => handleSubmit(save)()}\n data-testid=\"addExecutor-saveBtn\"\n >\n {editMode ? t(\"save\") : t(\"add\")}\n </Button>\n <Button\n variant=\"link\"\n component={(props) => (\n <Link\n {...props}\n to={toClientProfile({ realm, profileName })}\n />\n )}\n data-testid=\"addExecutor-cancelBtn\"\n >\n {t(\"cancel\")}\n </Button>\n </ActionGroup>\n )}\n </FormAccess>\n {editMode && globalProfile && (\n <div className=\"kc-backToProfile\">\n <Button\n component={(props) => (\n <Link {...props} to={toClientProfile({ realm, profileName })} />\n )}\n variant=\"primary\"\n >\n {t(\"back\")}\n </Button>\n </div>\n )}\n </PageSection>\n </>\n );\n}\n"],"names":["defaultValues","ExecutorForm","adminClient","useAdminClient","t","useTranslation","navigate","useNavigate","realm","profileName","useParams","executorName","addAlert","addError","useAlerts","selectExecutorTypeOpen","setSelectExecutorTypeOpen","useState","executorTypes","useServerInfo","executors","setExecutors","executorProperties","setExecutorProperties","globalProfiles","setGlobalProfiles","profiles","setProfiles","form","useForm","control","reset","handleSubmit","editMode","setupForm","executor","profile","useFetch","save","formValues","updatedProfiles","profileExecutor","AlertVariant","toClientProfile","error","globalProfile","profileExecutorType","editedProfileExecutors","property","globalDefaultValues","jsxs","Fragment","jsx","ViewHeader","PageSection","FormAccess","FormGroup","HelpItem","Controller","field","KeycloakSelect","isOpen","value","selectedExecutor","type","SelectVariant","option","SelectOption","FormProvider","DynamicComponents","ActionGroup","Button","props","Link"],"mappings":";;;;;AAoCA,MAAMA,IAA8B;AAAA,EAClC,QAAQ,CAAC;AAAA,EACT,UAAU;AACZ;AAEA,SAAwBC,KAAe;AAC/B,QAAA,EAAE,aAAAC,MAAgBC,KAElB,EAAE,GAAAC,MAAMC,MACRC,IAAWC,MACX,EAAE,OAAAC,GAAO,aAAAC,EAAY,IAAIC,EAA+B,GACxD,EAAE,cAAAC,MAAiBD,KACnB,EAAE,UAAAE,GAAU,UAAAC,EAAS,IAAIC,EAAU,GACnC,CAACC,GAAwBC,CAAyB,IAAIC,EAAS,EAAK,GAEpEC,IADaC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,CAACC,MACV,gBAAApB,EAACqB,GAAM,EAAA,GAAGD,GAAO,IAAI7B,EAAgB,EAAE,OAAAnC,GAAO,aAAAC,EAAA,CAAa,EAAG,CAAA;AAAA,UAEhE,SAAQ;AAAA,UAEP,YAAE,MAAM;AAAA,QAAA;AAAA,MAAA,GAEb;AAAA,IAAA,GAEJ;AAAA,EACF,EAAA,CAAA;AAEJ;"}
|
1
|
+
{"version":3,"file":"ExecutorForm-CXp7kbZM.js","sources":["../src/realm-settings/ExecutorForm.tsx"],"sourcesContent":["import type { ConfigPropertyRepresentation } from \"@keycloak/keycloak-admin-client/lib/defs/authenticatorConfigInfoRepresentation\";\nimport type ClientProfileRepresentation from \"@keycloak/keycloak-admin-client/lib/defs/clientProfileRepresentation\";\nimport type ComponentTypeRepresentation from \"@keycloak/keycloak-admin-client/lib/defs/componentTypeRepresentation\";\nimport {\n HelpItem,\n KeycloakSelect,\n SelectVariant,\n useAlerts,\n useFetch,\n} from \"@keycloak/keycloak-ui-shared\";\nimport {\n ActionGroup,\n AlertVariant,\n Button,\n FormGroup,\n PageSection,\n SelectOption,\n} from \"@patternfly/react-core\";\nimport { useState } from \"react\";\nimport { Controller, FormProvider, useForm } from \"react-hook-form\";\nimport { useTranslation } from \"react-i18next\";\nimport { Link, useNavigate } from \"react-router-dom\";\nimport { useAdminClient } from \"../admin-client\";\nimport { DynamicComponents } from \"../components/dynamic/DynamicComponents\";\nimport { FormAccess } from \"../components/form/FormAccess\";\nimport { ViewHeader } from \"../components/view-header/ViewHeader\";\nimport { useServerInfo } from \"../context/server-info/ServerInfoProvider\";\nimport { useParams } from \"../utils/useParams\";\nimport { ClientProfileParams, toClientProfile } from \"./routes/ClientProfile\";\nimport type { ExecutorParams } from \"./routes/Executor\";\n\ntype ExecutorForm = {\n config?: object;\n executor: string;\n};\n\nconst defaultValues: ExecutorForm = {\n config: {},\n executor: \"\",\n};\n\nexport default function ExecutorForm() {\n const { adminClient } = useAdminClient();\n\n const { t } = useTranslation();\n const navigate = useNavigate();\n const { realm, profileName } = useParams<ClientProfileParams>();\n const { executorName } = useParams<ExecutorParams>();\n const { addAlert, addError } = useAlerts();\n const [selectExecutorTypeOpen, setSelectExecutorTypeOpen] = useState(false);\n const serverInfo = useServerInfo();\n const executorTypes =\n serverInfo.componentTypes?.[\n \"org.keycloak.services.clientpolicy.executor.ClientPolicyExecutorProvider\"\n ];\n const [executors, setExecutors] = useState<ComponentTypeRepresentation[]>([]);\n const [executorProperties, setExecutorProperties] = useState<\n ConfigPropertyRepresentation[]\n >([]);\n const [globalProfiles, setGlobalProfiles] = useState<\n ClientProfileRepresentation[]\n >([]);\n const [profiles, setProfiles] = useState<ClientProfileRepresentation[]>([]);\n const form = useForm({ defaultValues });\n const { control, reset, handleSubmit } = form;\n const editMode = !!executorName;\n\n const setupForm = (profiles: ClientProfileRepresentation[]) => {\n const profile = profiles.find((profile) => profile.name === profileName);\n const executor = profile?.executors?.find(\n (executor) => executor.executor === executorName,\n );\n if (executor) reset({ config: executor.configuration });\n };\n\n useFetch(\n () =>\n adminClient.clientPolicies.listProfiles({ includeGlobalProfiles: true }),\n (profiles) => {\n setGlobalProfiles(profiles.globalProfiles!);\n setProfiles(profiles.profiles!);\n\n setupForm(profiles.profiles!);\n setupForm(profiles.globalProfiles!);\n },\n [],\n );\n\n const save = async () => {\n const formValues = form.getValues();\n const updatedProfiles = profiles.map((profile) => {\n if (profile.name !== profileName) {\n return profile;\n }\n\n const executors = (profile.executors ?? []).concat({\n executor: formValues.executor,\n configuration: formValues.config || {},\n });\n\n if (editMode) {\n const profileExecutor = profile.executors!.find(\n (executor) => executor.executor === executorName,\n );\n profileExecutor!.configuration = {\n ...profileExecutor!.configuration,\n ...formValues.config,\n };\n }\n\n if (editMode) {\n return profile;\n }\n return {\n ...profile,\n executors,\n };\n });\n try {\n await adminClient.clientPolicies.createProfiles({\n profiles: updatedProfiles,\n globalProfiles: globalProfiles,\n });\n addAlert(\n editMode ? t(\"updateExecutorSuccess\") : t(\"addExecutorSuccess\"),\n AlertVariant.success,\n );\n\n navigate(toClientProfile({ realm, profileName }));\n } catch (error) {\n addError(editMode ? \"updateExecutorError\" : \"addExecutorError\", error);\n }\n };\n\n const globalProfile = globalProfiles.find(\n (globalProfile) => globalProfile.name === profileName,\n );\n\n const profileExecutorType = executorTypes?.find(\n (executor) => executor.id === executorName,\n );\n\n const editedProfileExecutors =\n profileExecutorType?.properties.map<ConfigPropertyRepresentation>(\n (property) => {\n const globalDefaultValues = editMode ? property.defaultValue : \"\";\n return {\n ...property,\n defaultValue: globalDefaultValues,\n };\n },\n );\n\n return (\n <>\n <ViewHeader\n titleKey={editMode ? executorName : t(\"addExecutor\")}\n divider\n />\n <PageSection variant=\"light\">\n <FormAccess\n isHorizontal\n role=\"manage-realm\"\n className=\"pf-v5-u-mt-lg\"\n isReadOnly={!!globalProfile}\n >\n <FormGroup\n label={t(\"executorType\")}\n fieldId=\"kc-executorType\"\n labelIcon={\n executors.length > 0 && executors[0].helpText! !== \"\" ? (\n <HelpItem\n helpText={executors[0].helpText}\n fieldLabelId=\"executorTypeHelpText\"\n />\n ) : editMode ? (\n <HelpItem\n helpText={profileExecutorType?.helpText}\n fieldLabelId=\"executorTypeHelpText\"\n />\n ) : undefined\n }\n >\n <Controller\n name=\"executor\"\n defaultValue=\"\"\n control={control}\n render={({ field }) => (\n <KeycloakSelect\n toggleId=\"kc-executor\"\n placeholderText=\"Select an executor\"\n onToggle={(isOpen) => setSelectExecutorTypeOpen(isOpen)}\n onSelect={(value) => {\n reset({ ...defaultValues, executor: value.toString() });\n const selectedExecutor = executorTypes?.filter(\n (type) => type.id === value,\n );\n setExecutors(selectedExecutor ?? []);\n setExecutorProperties(\n selectedExecutor?.[0].properties ?? [],\n );\n setSelectExecutorTypeOpen(false);\n }}\n selections={editMode ? executorName : field.value}\n variant={SelectVariant.single}\n data-testid=\"executorType-select\"\n aria-label={t(\"executorType\")}\n isOpen={selectExecutorTypeOpen}\n maxHeight={580}\n isDisabled={editMode}\n >\n {executorTypes?.map((option) => (\n <SelectOption\n selected={option.id === field.value}\n key={option.id}\n value={option.id}\n description={option.helpText}\n >\n {option.id}\n </SelectOption>\n ))}\n </KeycloakSelect>\n )}\n />\n </FormGroup>\n <FormProvider {...form}>\n <DynamicComponents\n properties={\n editMode ? editedProfileExecutors! : executorProperties\n }\n />\n </FormProvider>\n {!globalProfile && (\n <ActionGroup>\n <Button\n variant=\"primary\"\n onClick={() => handleSubmit(save)()}\n data-testid=\"addExecutor-saveBtn\"\n >\n {editMode ? t(\"save\") : t(\"add\")}\n </Button>\n <Button\n variant=\"link\"\n component={(props) => (\n <Link\n {...props}\n to={toClientProfile({ realm, profileName })}\n />\n )}\n data-testid=\"addExecutor-cancelBtn\"\n >\n {t(\"cancel\")}\n </Button>\n </ActionGroup>\n )}\n </FormAccess>\n {editMode && globalProfile && (\n <div className=\"kc-backToProfile\">\n <Button\n component={(props) => (\n <Link {...props} to={toClientProfile({ realm, profileName })} />\n )}\n variant=\"primary\"\n >\n {t(\"back\")}\n </Button>\n </div>\n )}\n </PageSection>\n </>\n );\n}\n"],"names":["defaultValues","ExecutorForm","adminClient","useAdminClient","t","useTranslation","navigate","useNavigate","realm","profileName","useParams","executorName","addAlert","addError","useAlerts","selectExecutorTypeOpen","setSelectExecutorTypeOpen","useState","executorTypes","useServerInfo","executors","setExecutors","executorProperties","setExecutorProperties","globalProfiles","setGlobalProfiles","profiles","setProfiles","form","useForm","control","reset","handleSubmit","editMode","setupForm","executor","profile","useFetch","save","formValues","updatedProfiles","profileExecutor","AlertVariant","toClientProfile","error","globalProfile","profileExecutorType","editedProfileExecutors","property","globalDefaultValues","jsxs","Fragment","jsx","ViewHeader","PageSection","FormAccess","FormGroup","HelpItem","Controller","field","KeycloakSelect","isOpen","value","selectedExecutor","type","SelectVariant","option","SelectOption","FormProvider","DynamicComponents","ActionGroup","Button","props","Link"],"mappings":";;;;;AAoCA,MAAMA,IAA8B;AAAA,EAClC,QAAQ,CAAC;AAAA,E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AE,OAAAnC,GAAO,aAAAC,GAAa;AAAA,oBAAA;AAAA,kBAC5C;AAAA,kBAEF,eAAY;AAAA,kBAEX,YAAE,QAAQ;AAAA,gBAAA;AAAA,cACb;AAAA,YAAA,GACF;AAAA,UAAA;AAAA,QAAA;AAAA,MAEJ;AAAA,MACCwB,KAAYY,KACV,gBAAAO,EAAA,OAAA,EAAI,WAAU,oBACb,UAAA,gBAAAA;AAAA,QAACmB;AAAA,QAAA;AAAA,UACC,WAAW,CAACC,MACV,gBAAApB,EAACqB,GAAM,EAAA,GAAGD,GAAO,IAAI7B,EAAgB,EAAE,OAAAnC,GAAO,aAAAC,EAAA,CAAa,EAAG,CAAA;AAAA,UAEhE,SAAQ;AAAA,UAEP,YAAE,MAAM;AAAA,QAAA;AAAA,MAAA,GAEb;AAAA,IAAA,GAEJ;AAAA,EACF,EAAA,CAAA;AAEJ;"}
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { jsx as N, jsxs as re, Fragment as Ne } from "react/jsx-runtime";
|
2
|
-
import { _ as Bs, f as Ot, B as Ee, g as lt, h as Wm, s as Ur, i as oh, L as ah, C as Ym, u as tn, $ as zs, b as _r, M as Nn, j as Mn, F as br, k as In, N as Zm, d as vt, l as Xm, m as An, n as jm, w as Qm, P as sh, R as Jm, Q as nr, W as Dc, o as ev, p as $c, q as Fc, T as tv, r as nv, v as rv, x as iv, y as ch, z as ov, D as nn, E as wr, G as Rn, H as uh, I as xe, J as Er, K as Tn, O as av, S as Hs, U as sv, Y as lh, Z as xr, a0 as cv, a1 as kn, a2 as dh, a3 as Vs, a4 as Gs, a5 as Us, a6 as uv, a7 as lv, a8 as dv, a9 as Sr, aa as Ln, ab as fh, ac as qn, ad as hh, ae as fv, af as ph, ag as Ks, ah as Ws, ai as gh, aj as hv, ak as pv, al as mh, am as Ys, an as gv, ao as Zs, ap as vh, aq as Xs, ar as mv, as as vv, at as yv, au as _v, av as bv, aw as yh, ax as _h, ay as bh, az as wh, aA as Eh, aB as Yt, aC as Cr, aD as wv, aE as xh, aF as Ev, aG as Tt, aH as vs, aI as xv, aJ as Sv, aK as Cv, aL as Nv, A as Mv, aM as Sh, aN as Iv, aO as Av, aP as Rv, aQ as Tv, aR as kv, aS as Lv, aT as qv, aU as Ch, aV as Nh, aW as Ov, aX as Pv, a as Dv, aY as Bc, t as $v, aZ as Fv, e as Bv, a_ as zv, V as Hv, a$ as Vv, b0 as Gv, b1 as Kr, b2 as Uv, b3 as Kv, b4 as Wv } from "./index-
|
2
|
+
import { _ as Bs, f as Ot, B as Ee, g as lt, h as Wm, s as Ur, i as oh, L as ah, C as Ym, u as tn, $ as zs, b as _r, M as Nn, j as Mn, F as br, k as In, N as Zm, d as vt, l as Xm, m as An, n as jm, w as Qm, P as sh, R as Jm, Q as nr, W as Dc, o as ev, p as $c, q as Fc, T as tv, r as nv, v as rv, x as iv, y as ch, z as ov, D as nn, E as wr, G as Rn, H as uh, I as xe, J as Er, K as Tn, O as av, S as Hs, U as sv, Y as lh, Z as xr, a0 as cv, a1 as kn, a2 as dh, a3 as Vs, a4 as Gs, a5 as Us, a6 as uv, a7 as lv, a8 as dv, a9 as Sr, aa as Ln, ab as fh, ac as qn, ad as hh, ae as fv, af as ph, ag as Ks, ah as Ws, ai as gh, aj as hv, ak as pv, al as mh, am as Ys, an as gv, ao as Zs, ap as vh, aq as Xs, ar as mv, as as vv, at as yv, au as _v, av as bv, aw as yh, ax as _h, ay as bh, az as wh, aA as Eh, aB as Yt, aC as Cr, aD as wv, aE as xh, aF as Ev, aG as Tt, aH as vs, aI as xv, aJ as Sv, aK as Cv, aL as Nv, A as Mv, aM as Sh, aN as Iv, aO as Av, aP as Rv, aQ as Tv, aR as kv, aS as Lv, aT as qv, aU as Ch, aV as Nh, aW as Ov, aX as Pv, a as Dv, aY as Bc, t as $v, aZ as Fv, e as Bv, a_ as zv, V as Hv, a$ as Vv, b0 as Gv, b1 as Kr, b2 as Uv, b3 as Kv, b4 as Wv } from "./index-Bh6vI8A1.js";
|
3
3
|
import * as Re from "react";
|
4
4
|
import R, { useEffect as ce, useState as ae, useMemo as Fe, createContext as Mh, memo as ue, forwardRef as Ih, useRef as ee, useContext as Nr, useCallback as ve } from "react";
|
5
5
|
import { useTranslation as Be, Trans as zc } from "react-i18next";
|
@@ -10590,4 +10590,4 @@ export {
|
|
10590
10590
|
$2 as default,
|
10591
10591
|
yr as providerConditionFilter
|
10592
10592
|
};
|
10593
|
-
//# sourceMappingURL=FlowDetails-
|
10593
|
+
//# sourceMappingURL=FlowDetails-BHMa0wUU.js.map
|