2022-12-07 09:05:32 +00:00
|
|
|
import type ClientScopeRepresentation from "@keycloak/keycloak-admin-client/lib/defs/clientScopeRepresentation";
|
|
|
|
import type UserProfileConfig from "@keycloak/keycloak-admin-client/lib/defs/userProfileConfig";
|
2022-03-16 09:32:23 +00:00
|
|
|
import {
|
|
|
|
Divider,
|
|
|
|
FormGroup,
|
|
|
|
Radio,
|
|
|
|
Select,
|
|
|
|
SelectOption,
|
|
|
|
SelectVariant,
|
|
|
|
Switch,
|
|
|
|
} from "@patternfly/react-core";
|
2022-12-07 09:05:32 +00:00
|
|
|
import { isEqual } from "lodash-es";
|
|
|
|
import { useState } from "react";
|
2022-03-21 14:46:01 +00:00
|
|
|
import { Controller, useFormContext, useWatch } from "react-hook-form";
|
2022-12-07 09:05:32 +00:00
|
|
|
import { useTranslation } from "react-i18next";
|
2023-05-03 13:51:02 +00:00
|
|
|
import { HelpItem } from "ui-shared";
|
2022-12-07 14:23:12 +00:00
|
|
|
|
2023-05-03 13:51:02 +00:00
|
|
|
import { adminClient } from "../../../admin-client";
|
2023-05-24 12:11:06 +00:00
|
|
|
import { FormAccess } from "../../../components/form/FormAccess";
|
2022-12-07 09:05:32 +00:00
|
|
|
import { KeycloakSpinner } from "../../../components/keycloak-spinner/KeycloakSpinner";
|
2022-04-21 15:03:26 +00:00
|
|
|
import { KeycloakTextInput } from "../../../components/keycloak-text-input/KeycloakTextInput";
|
2023-05-03 15:40:27 +00:00
|
|
|
import { useFetch } from "../../../utils/useFetch";
|
2022-12-07 14:23:12 +00:00
|
|
|
import { useParams } from "../../../utils/useParams";
|
2022-12-07 09:05:32 +00:00
|
|
|
import { USERNAME_EMAIL } from "../../NewAttributeSettings";
|
2022-03-31 13:28:48 +00:00
|
|
|
import type { AttributeParams } from "../../routes/Attribute";
|
|
|
|
|
2022-03-16 09:32:23 +00:00
|
|
|
import "../../realm-settings-section.css";
|
|
|
|
|
|
|
|
const REQUIRED_FOR = [
|
2022-06-13 09:42:17 +00:00
|
|
|
{ label: "requiredForLabel.both", value: ["admin", "user"] },
|
|
|
|
{ label: "requiredForLabel.users", value: ["user"] },
|
|
|
|
{ label: "requiredForLabel.admins", value: ["admin"] },
|
2022-03-21 14:46:01 +00:00
|
|
|
] as const;
|
2022-03-16 09:32:23 +00:00
|
|
|
|
|
|
|
export const AttributeGeneralSettings = () => {
|
2023-09-08 13:17:17 +00:00
|
|
|
const { t } = useTranslation();
|
2022-03-16 09:32:23 +00:00
|
|
|
const form = useFormContext();
|
|
|
|
const [clientScopes, setClientScopes] =
|
|
|
|
useState<ClientScopeRepresentation[]>();
|
2022-06-13 11:10:11 +00:00
|
|
|
const [config, setConfig] = useState<UserProfileConfig>();
|
2022-03-16 09:32:23 +00:00
|
|
|
const [selectEnabledWhenOpen, setSelectEnabledWhenOpen] = useState(false);
|
|
|
|
const [selectRequiredForOpen, setSelectRequiredForOpen] = useState(false);
|
|
|
|
const [isAttributeGroupDropdownOpen, setIsAttributeGroupDropdownOpen] =
|
|
|
|
useState(false);
|
2022-03-31 13:28:48 +00:00
|
|
|
const { attributeName } = useParams<AttributeParams>();
|
|
|
|
const editMode = attributeName ? true : false;
|
|
|
|
|
|
|
|
const selectedScopes = useWatch({
|
|
|
|
control: form.control,
|
|
|
|
name: "selector.scopes",
|
|
|
|
defaultValue: [],
|
|
|
|
});
|
2022-03-16 09:32:23 +00:00
|
|
|
|
2022-03-31 13:28:48 +00:00
|
|
|
const requiredScopes = useWatch({
|
2022-03-21 14:46:01 +00:00
|
|
|
control: form.control,
|
2022-03-31 13:28:48 +00:00
|
|
|
name: "required.scopes",
|
|
|
|
defaultValue: [],
|
|
|
|
});
|
|
|
|
|
|
|
|
const required = useWatch({
|
|
|
|
control: form.control,
|
|
|
|
name: "isRequired",
|
2022-03-21 14:46:01 +00:00
|
|
|
defaultValue: false,
|
|
|
|
});
|
|
|
|
|
2022-06-13 11:10:11 +00:00
|
|
|
useFetch(() => adminClient.clientScopes.find(), setClientScopes, []);
|
|
|
|
useFetch(() => adminClient.users.getProfile(), setConfig, []);
|
2022-03-16 09:32:23 +00:00
|
|
|
|
2022-12-07 09:05:32 +00:00
|
|
|
if (!clientScopes) {
|
|
|
|
return <KeycloakSpinner />;
|
|
|
|
}
|
2022-03-16 09:32:23 +00:00
|
|
|
return (
|
|
|
|
<FormAccess role="manage-realm" isHorizontal>
|
|
|
|
<FormGroup
|
|
|
|
label={t("attributeName")}
|
|
|
|
labelIcon={
|
|
|
|
<HelpItem
|
2023-09-20 08:52:43 +00:00
|
|
|
helpText={t("attributeNameHelp")}
|
2023-09-25 07:06:56 +00:00
|
|
|
fieldLabelId="attributeName"
|
2022-03-16 09:32:23 +00:00
|
|
|
/>
|
|
|
|
}
|
|
|
|
fieldId="kc-attribute-name"
|
|
|
|
isRequired
|
2023-01-26 09:31:07 +00:00
|
|
|
validated={form.formState.errors.name ? "error" : "default"}
|
2023-09-08 13:17:17 +00:00
|
|
|
helperTextInvalid={t("validateAttributeName")}
|
2022-03-16 09:32:23 +00:00
|
|
|
>
|
2022-04-21 15:03:26 +00:00
|
|
|
<KeycloakTextInput
|
2022-03-16 09:32:23 +00:00
|
|
|
isRequired
|
|
|
|
id="kc-attribute-name"
|
|
|
|
defaultValue=""
|
2023-01-26 09:31:07 +00:00
|
|
|
data-testid="attribute-name"
|
|
|
|
isDisabled={editMode}
|
|
|
|
validated={form.formState.errors.name ? "error" : "default"}
|
2023-02-13 07:18:16 +00:00
|
|
|
{...form.register("name", { required: true })}
|
2022-03-16 09:32:23 +00:00
|
|
|
/>
|
|
|
|
</FormGroup>
|
|
|
|
<FormGroup
|
|
|
|
label={t("attributeDisplayName")}
|
|
|
|
labelIcon={
|
|
|
|
<HelpItem
|
2023-09-20 08:52:43 +00:00
|
|
|
helpText={t("attributeDisplayNameHelp")}
|
2023-09-25 07:06:56 +00:00
|
|
|
fieldLabelId="attributeDisplayName"
|
2022-03-16 09:32:23 +00:00
|
|
|
/>
|
|
|
|
}
|
|
|
|
fieldId="kc-attribute-display-name"
|
|
|
|
>
|
2022-04-21 15:03:26 +00:00
|
|
|
<KeycloakTextInput
|
2022-03-16 09:32:23 +00:00
|
|
|
id="kc-attribute-display-name"
|
|
|
|
defaultValue=""
|
|
|
|
data-testid="attribute-display-name"
|
2023-01-26 09:31:07 +00:00
|
|
|
{...form.register("displayName")}
|
2022-03-16 09:32:23 +00:00
|
|
|
/>
|
|
|
|
</FormGroup>
|
|
|
|
<FormGroup
|
|
|
|
label={t("attributeGroup")}
|
|
|
|
labelIcon={
|
|
|
|
<HelpItem
|
2023-09-20 08:52:43 +00:00
|
|
|
helpText={t("attributeGroupHelp")}
|
2022-03-16 09:32:23 +00:00
|
|
|
fieldLabelId="realm-setting:attributeGroup"
|
|
|
|
/>
|
|
|
|
}
|
|
|
|
fieldId="kc-attribute-group"
|
|
|
|
>
|
|
|
|
<Controller
|
2022-06-13 11:10:11 +00:00
|
|
|
name="group"
|
2022-03-16 09:32:23 +00:00
|
|
|
defaultValue=""
|
|
|
|
control={form.control}
|
2023-01-26 09:31:07 +00:00
|
|
|
render={({ field }) => (
|
2022-03-16 09:32:23 +00:00
|
|
|
<Select
|
|
|
|
toggleId="kc-attributeGroup"
|
|
|
|
onToggle={() =>
|
|
|
|
setIsAttributeGroupDropdownOpen(!isAttributeGroupDropdownOpen)
|
|
|
|
}
|
|
|
|
isOpen={isAttributeGroupDropdownOpen}
|
|
|
|
onSelect={(_, value) => {
|
2023-01-26 09:31:07 +00:00
|
|
|
field.onChange(value.toString());
|
2022-03-16 09:32:23 +00:00
|
|
|
setIsAttributeGroupDropdownOpen(false);
|
|
|
|
}}
|
2023-09-14 09:01:15 +00:00
|
|
|
selections={[field.value || t("none")]}
|
2022-03-16 09:32:23 +00:00
|
|
|
variant={SelectVariant.single}
|
|
|
|
>
|
2023-01-16 07:17:00 +00:00
|
|
|
{[
|
|
|
|
<SelectOption key="empty" value="">
|
2023-09-14 09:01:15 +00:00
|
|
|
{t("none")}
|
2023-01-16 07:17:00 +00:00
|
|
|
</SelectOption>,
|
|
|
|
...(config?.groups?.map((group) => (
|
|
|
|
<SelectOption key={group.name} value={group.name}>
|
|
|
|
{group.name}
|
|
|
|
</SelectOption>
|
|
|
|
)) || []),
|
|
|
|
]}
|
2022-03-16 09:32:23 +00:00
|
|
|
</Select>
|
|
|
|
)}
|
|
|
|
></Controller>
|
|
|
|
</FormGroup>
|
2022-11-16 14:19:09 +00:00
|
|
|
{!USERNAME_EMAIL.includes(attributeName) && (
|
2022-03-21 14:46:01 +00:00
|
|
|
<>
|
2022-11-16 14:19:09 +00:00
|
|
|
<Divider />
|
2022-03-21 14:46:01 +00:00
|
|
|
<FormGroup
|
2022-11-16 14:19:09 +00:00
|
|
|
label={t("enabledWhen")}
|
|
|
|
fieldId="enabledWhen"
|
2022-03-21 14:46:01 +00:00
|
|
|
hasNoPaddingTop
|
|
|
|
>
|
2022-03-31 13:28:48 +00:00
|
|
|
<Radio
|
2022-11-16 14:19:09 +00:00
|
|
|
id="always"
|
|
|
|
data-testid="always"
|
2022-12-07 09:05:32 +00:00
|
|
|
isChecked={selectedScopes.length === clientScopes.length}
|
2022-11-16 14:19:09 +00:00
|
|
|
name="enabledWhen"
|
2022-03-31 13:28:48 +00:00
|
|
|
label={t("always")}
|
|
|
|
onChange={(value) => {
|
|
|
|
if (value) {
|
|
|
|
form.setValue(
|
2022-11-16 14:19:09 +00:00
|
|
|
"selector.scopes",
|
2023-07-11 14:03:21 +00:00
|
|
|
clientScopes.map((s) => s.name),
|
2022-03-31 13:28:48 +00:00
|
|
|
);
|
|
|
|
} else {
|
2022-11-16 14:19:09 +00:00
|
|
|
form.setValue("selector.scopes", []);
|
2022-03-31 13:28:48 +00:00
|
|
|
}
|
|
|
|
}}
|
|
|
|
className="pf-u-mb-md"
|
|
|
|
/>
|
|
|
|
<Radio
|
2022-11-16 14:19:09 +00:00
|
|
|
id="scopesAsRequested"
|
|
|
|
data-testid="scopesAsRequested"
|
2022-12-07 09:05:32 +00:00
|
|
|
isChecked={selectedScopes.length !== clientScopes.length}
|
2022-11-16 14:19:09 +00:00
|
|
|
name="enabledWhen"
|
2022-03-31 13:28:48 +00:00
|
|
|
label={t("scopesAsRequested")}
|
|
|
|
onChange={(value) => {
|
|
|
|
if (value) {
|
2022-11-16 14:19:09 +00:00
|
|
|
form.setValue("selector.scopes", []);
|
2022-03-31 13:28:48 +00:00
|
|
|
} else {
|
|
|
|
form.setValue(
|
2022-11-16 14:19:09 +00:00
|
|
|
"selector.scopes",
|
2023-07-11 14:03:21 +00:00
|
|
|
clientScopes.map((s) => s.name),
|
2022-03-31 13:28:48 +00:00
|
|
|
);
|
|
|
|
}
|
|
|
|
}}
|
|
|
|
className="pf-u-mb-md"
|
2022-03-21 14:46:01 +00:00
|
|
|
/>
|
|
|
|
</FormGroup>
|
2022-11-16 14:19:09 +00:00
|
|
|
<FormGroup fieldId="kc-scope-enabled-when">
|
2022-03-21 14:46:01 +00:00
|
|
|
<Controller
|
2022-11-16 14:19:09 +00:00
|
|
|
name="selector.scopes"
|
2022-03-21 14:46:01 +00:00
|
|
|
control={form.control}
|
2022-12-07 09:05:32 +00:00
|
|
|
defaultValue={clientScopes.map((s) => s.name)}
|
2023-01-26 09:31:07 +00:00
|
|
|
render={({ field }) => (
|
2022-03-21 14:46:01 +00:00
|
|
|
<Select
|
2022-11-16 14:19:09 +00:00
|
|
|
name="scopes"
|
|
|
|
data-testid="enabled-when-scope-field"
|
2022-03-21 14:46:01 +00:00
|
|
|
variant={SelectVariant.typeaheadMulti}
|
|
|
|
typeAheadAriaLabel="Select"
|
|
|
|
chipGroupProps={{
|
|
|
|
numChips: 3,
|
2023-09-14 09:01:15 +00:00
|
|
|
expandedText: t("hide"),
|
|
|
|
collapsedText: t("showRemaining"),
|
2022-03-16 09:32:23 +00:00
|
|
|
}}
|
2022-11-16 14:19:09 +00:00
|
|
|
onToggle={(isOpen) => setSelectEnabledWhenOpen(isOpen)}
|
2023-01-26 09:31:07 +00:00
|
|
|
selections={field.value}
|
2022-03-21 14:46:01 +00:00
|
|
|
onSelect={(_, selectedValue) => {
|
|
|
|
const option = selectedValue.toString();
|
|
|
|
let changedValue = [""];
|
2023-01-26 09:31:07 +00:00
|
|
|
if (field.value) {
|
|
|
|
changedValue = field.value.includes(option)
|
|
|
|
? field.value.filter((item: string) => item !== option)
|
|
|
|
: [...field.value, option];
|
2022-03-21 14:46:01 +00:00
|
|
|
} else {
|
|
|
|
changedValue = [option];
|
|
|
|
}
|
2022-11-16 14:19:09 +00:00
|
|
|
|
2023-01-26 09:31:07 +00:00
|
|
|
field.onChange(changedValue);
|
2022-03-21 14:46:01 +00:00
|
|
|
}}
|
|
|
|
onClear={(selectedValues) => {
|
|
|
|
selectedValues.stopPropagation();
|
2023-01-26 09:31:07 +00:00
|
|
|
field.onChange([]);
|
2022-03-21 14:46:01 +00:00
|
|
|
}}
|
2022-11-16 14:19:09 +00:00
|
|
|
isOpen={selectEnabledWhenOpen}
|
2022-12-07 09:05:32 +00:00
|
|
|
isDisabled={selectedScopes.length === clientScopes.length}
|
2022-03-21 14:46:01 +00:00
|
|
|
aria-labelledby={"scope"}
|
|
|
|
>
|
2022-12-07 09:05:32 +00:00
|
|
|
{clientScopes.map((option) => (
|
2022-03-21 14:46:01 +00:00
|
|
|
<SelectOption key={option.name} value={option.name} />
|
|
|
|
))}
|
|
|
|
</Select>
|
|
|
|
)}
|
|
|
|
/>
|
|
|
|
</FormGroup>
|
2022-11-16 14:19:09 +00:00
|
|
|
|
|
|
|
<Divider />
|
|
|
|
<FormGroup
|
|
|
|
label={t("required")}
|
|
|
|
labelIcon={
|
2023-09-25 07:06:56 +00:00
|
|
|
<HelpItem helpText={t("requiredHelp")} fieldLabelId="required" />
|
2022-11-16 14:19:09 +00:00
|
|
|
}
|
|
|
|
fieldId="kc-required"
|
|
|
|
hasNoPaddingTop
|
|
|
|
>
|
|
|
|
<Controller
|
|
|
|
name="isRequired"
|
|
|
|
data-testid="required"
|
|
|
|
defaultValue={false}
|
|
|
|
control={form.control}
|
2023-01-26 09:31:07 +00:00
|
|
|
render={({ field }) => (
|
2022-11-16 14:19:09 +00:00
|
|
|
<Switch
|
|
|
|
id={"kc-required"}
|
2023-01-26 09:31:07 +00:00
|
|
|
onChange={field.onChange}
|
|
|
|
isChecked={field.value}
|
2023-09-14 09:01:15 +00:00
|
|
|
label={t("on")}
|
|
|
|
labelOff={t("off")}
|
2022-11-16 14:19:09 +00:00
|
|
|
aria-label={t("required")}
|
|
|
|
/>
|
|
|
|
)}
|
|
|
|
/>
|
|
|
|
</FormGroup>
|
|
|
|
{required && (
|
|
|
|
<>
|
|
|
|
<FormGroup
|
|
|
|
label={t("requiredFor")}
|
|
|
|
fieldId="requiredFor"
|
|
|
|
hasNoPaddingTop
|
|
|
|
>
|
|
|
|
<Controller
|
|
|
|
name="required.roles"
|
|
|
|
data-testid="requiredFor"
|
|
|
|
defaultValue={REQUIRED_FOR[0].value}
|
|
|
|
control={form.control}
|
2023-01-26 09:31:07 +00:00
|
|
|
render={({ field }) => (
|
2022-11-16 14:19:09 +00:00
|
|
|
<div className="kc-requiredFor">
|
|
|
|
{REQUIRED_FOR.map((option) => (
|
|
|
|
<Radio
|
|
|
|
id={option.label}
|
|
|
|
key={option.label}
|
|
|
|
data-testid={option.label}
|
2023-01-26 09:31:07 +00:00
|
|
|
isChecked={isEqual(field.value, option.value)}
|
2022-11-16 14:19:09 +00:00
|
|
|
name="roles"
|
|
|
|
onChange={() => {
|
2023-01-26 09:31:07 +00:00
|
|
|
field.onChange(option.value);
|
2022-11-16 14:19:09 +00:00
|
|
|
}}
|
|
|
|
label={t(option.label)}
|
|
|
|
className="kc-requiredFor-option"
|
|
|
|
/>
|
|
|
|
))}
|
|
|
|
</div>
|
|
|
|
)}
|
|
|
|
/>
|
|
|
|
</FormGroup>
|
|
|
|
<FormGroup
|
|
|
|
label={t("requiredWhen")}
|
|
|
|
fieldId="requiredWhen"
|
|
|
|
hasNoPaddingTop
|
|
|
|
>
|
|
|
|
<Radio
|
|
|
|
id="requiredAlways"
|
|
|
|
data-testid="requiredAlways"
|
2022-12-07 09:05:32 +00:00
|
|
|
isChecked={requiredScopes.length === clientScopes.length}
|
2022-11-16 14:19:09 +00:00
|
|
|
name="requiredWhen"
|
|
|
|
label={t("always")}
|
|
|
|
onChange={(value) => {
|
|
|
|
if (value) {
|
|
|
|
form.setValue(
|
|
|
|
"required.scopes",
|
2023-07-11 14:03:21 +00:00
|
|
|
clientScopes.map((s) => s.name),
|
2022-11-16 14:19:09 +00:00
|
|
|
);
|
|
|
|
} else {
|
|
|
|
form.setValue("required.scopes", []);
|
|
|
|
}
|
|
|
|
}}
|
|
|
|
className="pf-u-mb-md"
|
|
|
|
/>
|
|
|
|
<Radio
|
|
|
|
id="requiredScopesAsRequested"
|
|
|
|
data-testid="requiredScopesAsRequested"
|
2022-12-07 09:05:32 +00:00
|
|
|
isChecked={requiredScopes.length !== clientScopes.length}
|
2022-11-16 14:19:09 +00:00
|
|
|
name="requiredWhen"
|
|
|
|
label={t("scopesAsRequested")}
|
|
|
|
onChange={(value) => {
|
|
|
|
if (value) {
|
|
|
|
form.setValue("required.scopes", []);
|
|
|
|
} else {
|
|
|
|
form.setValue(
|
|
|
|
"required.scopes",
|
2023-07-11 14:03:21 +00:00
|
|
|
clientScopes.map((s) => s.name),
|
2022-11-16 14:19:09 +00:00
|
|
|
);
|
|
|
|
}
|
|
|
|
}}
|
|
|
|
className="pf-u-mb-md"
|
|
|
|
/>
|
|
|
|
</FormGroup>
|
|
|
|
<FormGroup fieldId="kc-scope-required-when">
|
|
|
|
<Controller
|
|
|
|
name="required.scopes"
|
|
|
|
control={form.control}
|
|
|
|
defaultValue={[]}
|
2023-01-26 09:31:07 +00:00
|
|
|
render={({ field }) => (
|
2022-11-16 14:19:09 +00:00
|
|
|
<Select
|
|
|
|
name="scopeRequired"
|
|
|
|
data-testid="required-when-scope-field"
|
|
|
|
variant={SelectVariant.typeaheadMulti}
|
|
|
|
typeAheadAriaLabel="Select"
|
|
|
|
chipGroupProps={{
|
|
|
|
numChips: 3,
|
2023-09-14 09:01:15 +00:00
|
|
|
expandedText: t("hide"),
|
|
|
|
collapsedText: t("showRemaining"),
|
2022-11-16 14:19:09 +00:00
|
|
|
}}
|
|
|
|
onToggle={(isOpen) => setSelectRequiredForOpen(isOpen)}
|
2023-01-26 09:31:07 +00:00
|
|
|
selections={field.value}
|
2022-11-16 14:19:09 +00:00
|
|
|
onSelect={(_, selectedValue) => {
|
|
|
|
const option = selectedValue.toString();
|
|
|
|
let changedValue = [""];
|
2023-01-26 09:31:07 +00:00
|
|
|
if (field.value) {
|
|
|
|
changedValue = field.value.includes(option)
|
|
|
|
? field.value.filter(
|
2023-07-11 14:03:21 +00:00
|
|
|
(item: string) => item !== option,
|
2023-01-26 09:31:07 +00:00
|
|
|
)
|
|
|
|
: [...field.value, option];
|
2022-11-16 14:19:09 +00:00
|
|
|
} else {
|
|
|
|
changedValue = [option];
|
|
|
|
}
|
2023-01-26 09:31:07 +00:00
|
|
|
field.onChange(changedValue);
|
2022-11-16 14:19:09 +00:00
|
|
|
}}
|
|
|
|
onClear={(selectedValues) => {
|
|
|
|
selectedValues.stopPropagation();
|
2023-01-26 09:31:07 +00:00
|
|
|
field.onChange([]);
|
2022-11-16 14:19:09 +00:00
|
|
|
}}
|
|
|
|
isOpen={selectRequiredForOpen}
|
2022-12-07 09:05:32 +00:00
|
|
|
isDisabled={requiredScopes.length === clientScopes.length}
|
2022-11-16 14:19:09 +00:00
|
|
|
aria-labelledby={"scope"}
|
|
|
|
>
|
2022-12-07 09:05:32 +00:00
|
|
|
{clientScopes.map((option) => (
|
2022-11-16 14:19:09 +00:00
|
|
|
<SelectOption key={option.name} value={option.name} />
|
|
|
|
))}
|
|
|
|
</Select>
|
|
|
|
)}
|
|
|
|
/>
|
|
|
|
</FormGroup>
|
|
|
|
</>
|
|
|
|
)}
|
2022-03-21 14:46:01 +00:00
|
|
|
</>
|
|
|
|
)}
|
2022-03-16 09:32:23 +00:00
|
|
|
</FormAccess>
|
|
|
|
);
|
|
|
|
};
|