ethyca-fides 2.58.2b2__py2.py3-none-any.whl → 2.58.2b5__py2.py3-none-any.whl
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.
- {ethyca_fides-2.58.2b2.dist-info → ethyca_fides-2.58.2b5.dist-info}/METADATA +20 -11
- {ethyca_fides-2.58.2b2.dist-info → ethyca_fides-2.58.2b5.dist-info}/RECORD +118 -115
- {ethyca_fides-2.58.2b2.dist-info → ethyca_fides-2.58.2b5.dist-info}/WHEEL +1 -1
- {ethyca_fides-2.58.2b2.dist-info → ethyca_fides-2.58.2b5.dist-info}/entry_points.txt +0 -1
- fides/_version.py +3 -3
- fides/api/alembic/migrations/versions/9288f729cac4_add_tcf_configuration_fk_to_experience_.py +62 -0
- fides/api/alembic/migrations/versions/99c603c1b8f9_add_password_login_enabled_and_totp_secret_to_fidesuser.py +45 -0
- fides/api/api/v1/endpoints/user_endpoints.py +8 -12
- fides/api/models/detection_discovery.py +31 -0
- fides/api/models/fides_user.py +26 -9
- fides/api/models/fides_user_invite.py +2 -0
- fides/api/models/privacy_experience.py +26 -0
- fides/api/models/tcf_publisher_restrictions.py +209 -48
- fides/api/schemas/user.py +5 -1
- fides/api/service/deps.py +9 -0
- fides/api/util/collection_util.py +48 -9
- fides/cli/commands/pull.py +77 -13
- fides/core/api.py +2 -1
- fides/core/pull.py +38 -7
- fides/service/user/__init__.py +0 -0
- fides/service/user/user_service.py +140 -0
- fides/ui-build/static/admin/404.html +1 -1
- fides/ui-build/static/admin/_next/static/{F-2Pz9ByzGwcvQtVLstwR → _o6WH0hDzNEhnUJyvLex7}/_buildManifest.js +1 -1
- fides/ui-build/static/admin/_next/static/chunks/1376-87058e04584cff20.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/4121-4d5273d7a354994d.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/{4450-6a8aa0d7358ac26f.js → 4450-9c3086ccb55c66aa.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/6315-24a0483ee1cab6cc.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/{9046-8a5fdd335a76d224.js → 9046-a69fa8f99c414570.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/{_app-4a5be35cd8f832c0.js → _app-0c1548ca3b158123.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/action-center-17d1525551d8904f.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/activity-7d2cb947eee11262.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/integrations/{[id]-9ef6b422ae7bc2a8.js → [id]-b75ab4ee677f118d.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/messaging-26407674949bcbc4.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/privacy-requests/configure/messaging-28d4bdf060ec8cb2.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/privacy-requests/configure/storage-208e49ef43361d6f.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/settings/consent-ff1985f72d50ef47.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/settings/domains-5a0b10ec955097d4.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/user-management/{new-f8bca2e322ddf252.js → new-082c3156175f9267.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/user-management/profile/[id]-af83245e9373a064.js +1 -0
- fides/ui-build/static/admin/add-systems/manual.html +1 -1
- fides/ui-build/static/admin/add-systems/multiple.html +1 -1
- fides/ui-build/static/admin/add-systems.html +1 -1
- fides/ui-build/static/admin/ant-poc.html +1 -1
- fides/ui-build/static/admin/consent/configure/add-vendors.html +1 -1
- fides/ui-build/static/admin/consent/configure.html +1 -1
- fides/ui-build/static/admin/consent/privacy-experience/[id].html +1 -1
- fides/ui-build/static/admin/consent/privacy-experience/new.html +1 -1
- fides/ui-build/static/admin/consent/privacy-experience.html +1 -1
- fides/ui-build/static/admin/consent/privacy-notices/[id].html +1 -1
- fides/ui-build/static/admin/consent/privacy-notices/new.html +1 -1
- fides/ui-build/static/admin/consent/privacy-notices.html +1 -1
- fides/ui-build/static/admin/consent/properties.html +1 -1
- fides/ui-build/static/admin/consent/reporting.html +1 -1
- fides/ui-build/static/admin/consent.html +1 -1
- fides/ui-build/static/admin/data-catalog/[systemId]/projects/[projectUrn]/[resourceUrn].html +1 -1
- fides/ui-build/static/admin/data-catalog/[systemId]/projects/[projectUrn].html +1 -1
- fides/ui-build/static/admin/data-catalog/[systemId]/projects.html +1 -1
- fides/ui-build/static/admin/data-catalog/[systemId]/resources/[resourceUrn].html +1 -1
- fides/ui-build/static/admin/data-catalog/[systemId]/resources.html +1 -1
- fides/ui-build/static/admin/data-catalog.html +1 -1
- fides/ui-build/static/admin/data-discovery/action-center/[monitorId]/[systemId].html +1 -1
- fides/ui-build/static/admin/data-discovery/action-center/[monitorId].html +1 -1
- fides/ui-build/static/admin/data-discovery/action-center.html +1 -1
- fides/ui-build/static/admin/data-discovery/activity.html +1 -1
- fides/ui-build/static/admin/data-discovery/detection/[resourceUrn].html +1 -1
- fides/ui-build/static/admin/data-discovery/detection.html +1 -1
- fides/ui-build/static/admin/data-discovery/discovery/[resourceUrn].html +1 -1
- fides/ui-build/static/admin/data-discovery/discovery.html +1 -1
- fides/ui-build/static/admin/datamap.html +1 -1
- fides/ui-build/static/admin/dataset/[datasetId]/[collectionName]/[...subfieldNames].html +1 -1
- fides/ui-build/static/admin/dataset/[datasetId]/[collectionName].html +1 -1
- fides/ui-build/static/admin/dataset/[datasetId].html +1 -1
- fides/ui-build/static/admin/dataset/new.html +1 -1
- fides/ui-build/static/admin/dataset.html +1 -1
- fides/ui-build/static/admin/datastore-connection/[id].html +1 -1
- fides/ui-build/static/admin/datastore-connection/new.html +1 -1
- fides/ui-build/static/admin/datastore-connection.html +1 -1
- fides/ui-build/static/admin/index.html +1 -1
- fides/ui-build/static/admin/integrations/[id].html +1 -1
- fides/ui-build/static/admin/integrations.html +1 -1
- fides/ui-build/static/admin/lib/fides-tcf.js +1 -1
- fides/ui-build/static/admin/login/[provider].html +1 -1
- fides/ui-build/static/admin/login.html +1 -1
- fides/ui-build/static/admin/messaging/[id].html +1 -1
- fides/ui-build/static/admin/messaging/add-template.html +1 -1
- fides/ui-build/static/admin/messaging.html +1 -1
- fides/ui-build/static/admin/privacy-requests/[id].html +1 -1
- fides/ui-build/static/admin/privacy-requests/configure/messaging.html +1 -1
- fides/ui-build/static/admin/privacy-requests/configure/storage.html +1 -1
- fides/ui-build/static/admin/privacy-requests/configure.html +1 -1
- fides/ui-build/static/admin/privacy-requests.html +1 -1
- fides/ui-build/static/admin/properties/[id].html +1 -1
- fides/ui-build/static/admin/properties/add-property.html +1 -1
- fides/ui-build/static/admin/properties.html +1 -1
- fides/ui-build/static/admin/reporting/datamap.html +1 -1
- fides/ui-build/static/admin/settings/about.html +1 -1
- fides/ui-build/static/admin/settings/consent.html +1 -1
- fides/ui-build/static/admin/settings/custom-fields.html +1 -1
- fides/ui-build/static/admin/settings/domain-records.html +1 -1
- fides/ui-build/static/admin/settings/domains.html +1 -1
- fides/ui-build/static/admin/settings/email-templates.html +1 -1
- fides/ui-build/static/admin/settings/locations.html +1 -1
- fides/ui-build/static/admin/settings/organization.html +1 -1
- fides/ui-build/static/admin/settings/regulations.html +1 -1
- fides/ui-build/static/admin/systems/configure/[id]/test-datasets.html +1 -1
- fides/ui-build/static/admin/systems/configure/[id].html +1 -1
- fides/ui-build/static/admin/systems.html +1 -1
- fides/ui-build/static/admin/taxonomy.html +1 -1
- fides/ui-build/static/admin/user-management/new.html +1 -1
- fides/ui-build/static/admin/user-management/profile/[id].html +1 -1
- fides/ui-build/static/admin/user-management.html +1 -1
- fides/api/service/user/fides_user_service.py +0 -128
- fides/ui-build/static/admin/_next/static/chunks/1150-2642cd9cdc8a52f6.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/1376-03e7f50e708b7589.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/6315-1adb10a8b98b4a13.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/action-center-719949074f10bd6e.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/activity-4892603e743cd6ab.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/messaging-1e60754abec1ee6b.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/privacy-requests/configure/messaging-5e2687ab5ab10275.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/privacy-requests/configure/storage-2914aade73dcaecc.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/settings/consent-3ac1e5d3de5dd4a7.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/settings/domains-24cba38685dc872c.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/user-management/profile/[id]-c0378fd1a26a71da.js +0 -1
- {ethyca_fides-2.58.2b2.dist-info → ethyca_fides-2.58.2b5.dist-info/licenses}/LICENSE +0 -0
- {ethyca_fides-2.58.2b2.dist-info → ethyca_fides-2.58.2b5.dist-info}/top_level.txt +0 -0
- /fides/ui-build/static/admin/_next/static/{F-2Pz9ByzGwcvQtVLstwR → _o6WH0hDzNEhnUJyvLex7}/_ssgManifest.js +0 -0
- /fides/ui-build/static/admin/_next/static/chunks/{1817-f82105a9608bba1a.js → 1817-48e1c9d3504e18f0.js} +0 -0
- /fides/ui-build/static/admin/_next/static/chunks/{6954-baa1d873abfe8b77.js → 6954-ec5276bb464d42b2.js} +0 -0
- /fides/ui-build/static/admin/_next/static/chunks/pages/{privacy-requests-b0f801d66e79a31a.js → privacy-requests-fd81714d811db7b3.js} +0 -0
- /fides/ui-build/static/admin/_next/static/chunks/pages/{user-management-3ca3c687e72d1364.js → user-management-a1db56f1cbfba373.js} +0 -0
fides/core/pull.py
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
"""This module handles the logic for syncing remote resource versions into their local file."""
|
2
2
|
|
3
|
-
from typing import Dict, List, Optional
|
3
|
+
from typing import Any, Dict, List, Optional
|
4
4
|
|
5
5
|
import yaml
|
6
6
|
from fideslang import model_list
|
@@ -13,6 +13,30 @@ from fides.core.utils import get_manifest_list
|
|
13
13
|
MODEL_LIST = model_list
|
14
14
|
|
15
15
|
|
16
|
+
def remove_nulls(obj: Any) -> Any:
|
17
|
+
"""
|
18
|
+
Recursively remove all null values from dictionaries and lists.
|
19
|
+
|
20
|
+
Args:
|
21
|
+
obj: Any Python object (dict, list, etc.)
|
22
|
+
|
23
|
+
Returns:
|
24
|
+
The transformed data structure with null values removed
|
25
|
+
"""
|
26
|
+
if isinstance(obj, list):
|
27
|
+
# For lists: process each item and filter out None values
|
28
|
+
return [remove_nulls(item) for item in obj if item is not None]
|
29
|
+
|
30
|
+
if isinstance(obj, dict):
|
31
|
+
# For dictionaries: process each key-value pair and filter out pairs with None values
|
32
|
+
return {
|
33
|
+
key: remove_nulls(value) for key, value in obj.items() if value is not None
|
34
|
+
}
|
35
|
+
|
36
|
+
# Return all other data types unchanged
|
37
|
+
return obj
|
38
|
+
|
39
|
+
|
16
40
|
def write_manifest_file(manifest_path: str, manifest: Dict) -> None:
|
17
41
|
"""
|
18
42
|
Write a manifest file out.
|
@@ -54,6 +78,8 @@ def pull_existing_resources(
|
|
54
78
|
)
|
55
79
|
|
56
80
|
if server_resource:
|
81
|
+
# Remove null values from the server resource
|
82
|
+
server_resource = remove_nulls(server_resource)
|
57
83
|
updated_resource_list.append(server_resource)
|
58
84
|
print(
|
59
85
|
f" - {resource_type.capitalize()} with fides_key: {fides_key} is being updated from the server..."
|
@@ -77,16 +103,17 @@ def pull_resource_by_key(
|
|
77
103
|
) -> None:
|
78
104
|
"""
|
79
105
|
Pull a resource from the server by its fides_key and update the local manifest file if it exists,
|
80
|
-
otherwise a new manifest file at {manifests_dir}/{resource_type}.
|
106
|
+
otherwise a new manifest file at {manifests_dir}/{resource_type}.yml
|
81
107
|
"""
|
82
108
|
if manifests_dir[-1] == "/":
|
83
109
|
manifests_dir = manifests_dir[:-1]
|
84
|
-
manifest_path = f"{manifests_dir}/{
|
85
|
-
print(f"Pulling {resource_type} with fides_key: {fides_key}...", end="
|
110
|
+
manifest_path = f"{manifests_dir}/{fides_key}.yml"
|
111
|
+
print(f"Pulling {resource_type} with fides_key: {fides_key}...", end="\n")
|
86
112
|
server_resource = get_server_resource(url, resource_type, fides_key, headers)
|
87
|
-
print("done.")
|
88
113
|
|
89
114
|
if server_resource:
|
115
|
+
# Remove null values from the server resource
|
116
|
+
server_resource = remove_nulls(server_resource)
|
90
117
|
try:
|
91
118
|
manifest = load_yaml_into_dict(manifest_path)
|
92
119
|
except FileNotFoundError:
|
@@ -94,10 +121,8 @@ def pull_resource_by_key(
|
|
94
121
|
f"Manifest file {manifest_path} does not already exist and will be created"
|
95
122
|
)
|
96
123
|
manifest = {}
|
97
|
-
print("Writing out resource to file...", end=" ")
|
98
124
|
manifest[resource_type] = [server_resource]
|
99
125
|
write_manifest_file(manifest_path, manifest)
|
100
|
-
print("done.")
|
101
126
|
|
102
127
|
else:
|
103
128
|
echo_red(
|
@@ -127,6 +152,12 @@ def pull_missing_resources(
|
|
127
152
|
for resource in MODEL_LIST
|
128
153
|
}
|
129
154
|
|
155
|
+
# Remove null values from all resources
|
156
|
+
for resource_type, resources in resource_manifest.items():
|
157
|
+
resource_manifest[resource_type] = [
|
158
|
+
remove_nulls(resource) for resource in (resources or [])
|
159
|
+
]
|
160
|
+
|
130
161
|
resource_manifest = {
|
131
162
|
key: value for key, value in resource_manifest.items() if value
|
132
163
|
}
|
File without changes
|
@@ -0,0 +1,140 @@
|
|
1
|
+
import uuid
|
2
|
+
from datetime import datetime
|
3
|
+
from typing import Optional, Tuple
|
4
|
+
|
5
|
+
from loguru import logger
|
6
|
+
from sqlalchemy.orm import Session
|
7
|
+
|
8
|
+
from fides.api.api.v1.endpoints.messaging_endpoints import user_email_invite_status
|
9
|
+
from fides.api.common_exceptions import AuthorizationError
|
10
|
+
from fides.api.models.client import ClientDetail
|
11
|
+
from fides.api.models.fides_user import FidesUser
|
12
|
+
from fides.api.models.fides_user_invite import FidesUserInvite
|
13
|
+
from fides.api.schemas.messaging.messaging import (
|
14
|
+
MessagingActionType,
|
15
|
+
UserInviteBodyParams,
|
16
|
+
)
|
17
|
+
from fides.api.schemas.redis_cache import Identity
|
18
|
+
from fides.api.service.messaging.message_dispatch_service import dispatch_message
|
19
|
+
from fides.config import FidesConfig
|
20
|
+
from fides.config.config_proxy import ConfigProxy
|
21
|
+
|
22
|
+
|
23
|
+
class UserService:
|
24
|
+
def __init__(self, db: Session, config: FidesConfig, config_proxy: ConfigProxy):
|
25
|
+
self.db = db
|
26
|
+
self.config = config
|
27
|
+
self.config_proxy = config_proxy
|
28
|
+
|
29
|
+
def invite_user(self, user: FidesUser) -> None:
|
30
|
+
"""
|
31
|
+
Generates a user invite and sends the invite code to the user via email.
|
32
|
+
|
33
|
+
This is a no-op if email messaging isn't configured.
|
34
|
+
"""
|
35
|
+
|
36
|
+
# invite user via email if email messaging is enabled and the Admin UI URL is defined
|
37
|
+
if user_email_invite_status(db=self.db, config_proxy=self.config_proxy).enabled:
|
38
|
+
invite_code = str(uuid.uuid4())
|
39
|
+
FidesUserInvite.create(
|
40
|
+
db=self.db, data={"username": user.username, "invite_code": invite_code}
|
41
|
+
)
|
42
|
+
user.update(self.db, data={"disabled": True})
|
43
|
+
# TODO: refactor to use MessagingService
|
44
|
+
dispatch_message(
|
45
|
+
self.db,
|
46
|
+
action_type=MessagingActionType.USER_INVITE,
|
47
|
+
to_identity=Identity(email=user.email_address),
|
48
|
+
service_type=self.config_proxy.notifications.notification_service_type,
|
49
|
+
message_body_params=UserInviteBodyParams(
|
50
|
+
username=user.username, invite_code=invite_code
|
51
|
+
),
|
52
|
+
)
|
53
|
+
else:
|
54
|
+
logger.debug(
|
55
|
+
"Skipping invitation email, an email messaging provider is not enabled",
|
56
|
+
)
|
57
|
+
|
58
|
+
def perform_login(
|
59
|
+
self,
|
60
|
+
client_id_byte_length: int,
|
61
|
+
client_secret_byte_length: int,
|
62
|
+
user: FidesUser,
|
63
|
+
skip_save: Optional[bool] = False,
|
64
|
+
) -> ClientDetail:
|
65
|
+
"""Performs a login by updating the FidesUser instance and creating and returning
|
66
|
+
an associated ClientDetail.
|
67
|
+
|
68
|
+
If the username or password was bad, skip_save should be True. We still run through
|
69
|
+
parallel operations to keep the timing of operations similar, but should skip
|
70
|
+
saving to the database.
|
71
|
+
"""
|
72
|
+
|
73
|
+
client = user.client
|
74
|
+
if not client:
|
75
|
+
logger.info("Creating client for login")
|
76
|
+
client, _ = ClientDetail.create_client_and_secret(
|
77
|
+
self.db,
|
78
|
+
client_id_byte_length,
|
79
|
+
client_secret_byte_length,
|
80
|
+
scopes=[], # type: ignore
|
81
|
+
roles=user.permissions.roles, # type: ignore
|
82
|
+
systems=user.system_ids, # type: ignore
|
83
|
+
user_id=user.id,
|
84
|
+
in_memory=skip_save, # If login flow has already errored, don't persist this to the database
|
85
|
+
)
|
86
|
+
else:
|
87
|
+
# Refresh the client just in case - for example, scopes and roles were added via the db directly.
|
88
|
+
client.roles = user.permissions.roles # type: ignore
|
89
|
+
client.systems = user.system_ids # type: ignore
|
90
|
+
if not skip_save:
|
91
|
+
client.save(self.db)
|
92
|
+
|
93
|
+
if user.permissions and (not user.permissions.roles and not user.systems): # type: ignore
|
94
|
+
logger.warning("User {} needs roles or systems to login.", user.id)
|
95
|
+
raise AuthorizationError(detail="Not Authorized for this action")
|
96
|
+
|
97
|
+
if not skip_save:
|
98
|
+
user.last_login_at = datetime.utcnow()
|
99
|
+
user.save(self.db)
|
100
|
+
|
101
|
+
return client
|
102
|
+
|
103
|
+
def accept_invite(
|
104
|
+
self, user: FidesUser, new_password: str
|
105
|
+
) -> Tuple[FidesUser, str]:
|
106
|
+
"""
|
107
|
+
Updates the user password and enables the user. Also removes the user invite from the database.
|
108
|
+
Returns a tuple of the updated user and their access code.
|
109
|
+
"""
|
110
|
+
|
111
|
+
# update password and enable
|
112
|
+
user.update_password(db=self.db, new_password=new_password)
|
113
|
+
user.update(
|
114
|
+
self.db,
|
115
|
+
data={"disabled": False, "disabled_reason": None},
|
116
|
+
)
|
117
|
+
self.db.refresh(user)
|
118
|
+
|
119
|
+
# delete invite
|
120
|
+
if user.username:
|
121
|
+
invite = FidesUserInvite.get_by(
|
122
|
+
db=self.db, field="username", value=user.username
|
123
|
+
)
|
124
|
+
if invite:
|
125
|
+
invite.delete(self.db)
|
126
|
+
else:
|
127
|
+
logger.warning("Username is missing, skipping invite deletion.")
|
128
|
+
|
129
|
+
client = self.perform_login(
|
130
|
+
self.config.security.oauth_client_id_length_bytes,
|
131
|
+
self.config.security.oauth_client_secret_length_bytes,
|
132
|
+
user,
|
133
|
+
)
|
134
|
+
|
135
|
+
logger.info("Creating login access token")
|
136
|
+
access_code = client.create_access_code_jwe(
|
137
|
+
self.config.security.app_encryption_key
|
138
|
+
)
|
139
|
+
|
140
|
+
return user, access_code
|
@@ -1 +1 @@
|
|
1
|
-
<!DOCTYPE html><html lang="en"><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width"/><meta name="next-head-count" content="2"/><link data-next-font="" rel="preconnect" href="/" crossorigin="anonymous"/><link rel="preload" href="/_next/static/css/cf2744a40308fc4a.css" as="style"/><link rel="stylesheet" href="/_next/static/css/cf2744a40308fc4a.css" data-n-g=""/><noscript data-n-css=""></noscript><script defer="" nomodule="" src="/_next/static/chunks/polyfills-42372ed130431b0a.js"></script><script src="/_next/static/chunks/webpack-2c7ccac5843c4d8e.js" defer=""></script><script src="/_next/static/chunks/framework-c92fc3344e6fd165.js" defer=""></script><script src="/_next/static/chunks/main-090643377c8254e6.js" defer=""></script><script src="/_next/static/chunks/pages/_app-
|
1
|
+
<!DOCTYPE html><html lang="en"><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width"/><meta name="next-head-count" content="2"/><link data-next-font="" rel="preconnect" href="/" crossorigin="anonymous"/><link rel="preload" href="/_next/static/css/cf2744a40308fc4a.css" as="style"/><link rel="stylesheet" href="/_next/static/css/cf2744a40308fc4a.css" data-n-g=""/><noscript data-n-css=""></noscript><script defer="" nomodule="" src="/_next/static/chunks/polyfills-42372ed130431b0a.js"></script><script src="/_next/static/chunks/webpack-2c7ccac5843c4d8e.js" defer=""></script><script src="/_next/static/chunks/framework-c92fc3344e6fd165.js" defer=""></script><script src="/_next/static/chunks/main-090643377c8254e6.js" defer=""></script><script src="/_next/static/chunks/pages/_app-0c1548ca3b158123.js" defer=""></script><script src="/_next/static/chunks/pages/404-b202c0d8f6fc75c3.js" defer=""></script><script src="/_next/static/_o6WH0hDzNEhnUJyvLex7/_buildManifest.js" defer=""></script><script src="/_next/static/_o6WH0hDzNEhnUJyvLex7/_ssgManifest.js" defer=""></script><style>.data-ant-cssinjs-cache-path{content:"";}</style></head><body><div id="__next"><div style="height:100%;display:flex"></div></div><script id="__NEXT_DATA__" type="application/json">{"props":{"pageProps":{}},"page":"/404","query":{},"buildId":"_o6WH0hDzNEhnUJyvLex7","nextExport":true,"autoExport":true,"isFallback":false,"scriptLoader":[]}</script></body></html>
|
@@ -1 +1 @@
|
|
1
|
-
self.__BUILD_MANIFEST=function(s,a,e,t,c,n,i,d,o,r,u,g,p,f,j,b,k,h,m,y,l,v,I,U,_,w,q,x,N,B,F,z,A,D,E,L,M,S,T,C,P,G,H,J,K,O,Q,R){return{__rewrites:{afterFiles:[],beforeFiles:[],fallback:[]},"/":[q,"static/chunks/pages/index-b70def65e264270e.js"],"/404":["static/chunks/pages/404-b202c0d8f6fc75c3.js"],"/_error":["static/chunks/pages/_error-bede3a8288930dcf.js"],"/add-systems":[q,"static/chunks/pages/add-systems-fac606150b65d494.js"],"/add-systems/manual":[s,a,t,c,n,b,e,o,g,k,h,y,x,i,"static/chunks/pages/add-systems/manual-9f9500c639362aa6.js"],"/add-systems/multiple":[s,a,e,g,l,N,"static/chunks/pages/add-systems/multiple-ba975134a85588f8.js"],"/ant-poc":["static/chunks/pages/ant-poc-b9932971a479f3a7.js"],"/consent":["static/chunks/pages/consent-39d65f13cc8f1cf8.js"],"/consent/configure":[s,a,e,g,l,"static/chunks/pages/consent/configure-a4e636eecaba5324.js"],"/consent/configure/add-vendors":[s,a,e,g,l,N,"static/chunks/pages/consent/configure/add-vendors-b34e5324461d0c87.js"],"/consent/privacy-experience":[s,a,b,e,B,"static/chunks/pages/consent/privacy-experience-ba5325035c71a97e.js"],"/consent/privacy-experience/new":[t,c,p,F,d,m,z,"static/chunks/pages/consent/privacy-experience/new-c02b14c50b19bd91.js"],"/consent/privacy-experience/[id]":[t,c,p,F,d,m,z,"static/chunks/pages/consent/privacy-experience/[id]-ab3ef485f6101697.js"],"/consent/privacy-notices":[s,a,e,B,"static/chunks/pages/consent/privacy-notices-ef31c181cac86c64.js"],"/consent/privacy-notices/new":[t,c,p,A,d,m,D,"static/chunks/pages/consent/privacy-notices/new-9611dd42856d6062.js"],"/consent/privacy-notices/[id]":[t,c,p,A,d,m,D,"static/chunks/pages/consent/privacy-notices/[id]-606457ef5bd1eb04.js"],"/consent/properties":[s,a,e,E,"static/chunks/pages/consent/properties-e5748812ba055a56.js"],"/consent/reporting":[s,a,t,e,"static/chunks/pages/consent/reporting-100234c23a85d235.js"],"/data-catalog":[s,a,t,c,n,e,"static/css/95ac327e5d70148d.css","static/chunks/pages/data-catalog-49bffaf07973fead.js"],"/data-catalog/[systemId]/projects":[s,a,t,c,n,e,f,v,i,"static/chunks/pages/data-catalog/[systemId]/projects-c44ce244122e96d5.js"],"/data-catalog/[systemId]/projects/[projectUrn]":[s,a,e,L,"static/chunks/pages/data-catalog/[systemId]/projects/[projectUrn]-a29850536c85d4b8.js"],"/data-catalog/[systemId]/projects/[projectUrn]/[resourceUrn]":[s,a,t,c,n,e,f,v,M,i,"static/chunks/pages/data-catalog/[systemId]/projects/[projectUrn]/[resourceUrn]-ac033a16f043e6f9.js"],"/data-catalog/[systemId]/resources":[s,a,e,L,"static/chunks/pages/data-catalog/[systemId]/resources-305555b74c357bf2.js"],"/data-catalog/[systemId]/resources/[resourceUrn]":[s,a,t,c,n,e,f,v,M,i,"static/chunks/pages/data-catalog/[systemId]/resources/[resourceUrn]-71e26d262afcaea5.js"],"/data-discovery/action-center":[s,a,e,"static/chunks/pages/data-discovery/action-center-719949074f10bd6e.js"],"/data-discovery/action-center/[monitorId]":[s,a,t,c,n,e,r,h,"static/chunks/pages/data-discovery/action-center/[monitorId]-53efbed54d230f07.js"],"/data-discovery/action-center/[monitorId]/[systemId]":[s,a,t,c,n,e,h,y,i,"static/chunks/pages/data-discovery/action-center/[monitorId]/[systemId]-727f1f5d06be674b.js"],"/data-discovery/activity":[s,a,e,r,I,"static/chunks/pages/data-discovery/activity-4892603e743cd6ab.js"],"/data-discovery/detection":[s,a,e,r,I,S,"static/chunks/pages/data-discovery/detection-b75dd3e4306ac18e.js"],"/data-discovery/detection/[resourceUrn]":[s,a,e,r,I,S,"static/chunks/pages/data-discovery/detection/[resourceUrn]-054ca46a782e99a5.js"],"/data-discovery/discovery":[s,a,t,c,n,e,r,f,T,i,"static/chunks/pages/data-discovery/discovery-cad50b0cc6d1050c.js"],"/data-discovery/discovery/[resourceUrn]":[s,a,t,c,n,e,r,f,T,i,"static/chunks/pages/data-discovery/discovery/[resourceUrn]-1da20aeb6fc995e4.js"],"/datamap":[s,a,"static/chunks/255-7db55b0e3a0f9dea.js",e,o,k,C,"static/chunks/pages/datamap-8cb714cdd44ac40e.js"],"/dataset":[s,a,u,e,j,"static/chunks/pages/dataset-29317d18ce34adfe.js"],"/dataset/new":[u,j,"static/chunks/pages/dataset/new-4d4a31d0186a4a5b.js"],"/dataset/[datasetId]":[s,a,"static/chunks/9729-fcf6ff4e3534e4a8.js",e,U,"static/chunks/pages/dataset/[datasetId]-6ba18f92ba561114.js"],"/dataset/[datasetId]/[collectionName]":[s,a,t,c,n,_,e,U,i,"static/chunks/pages/dataset/[datasetId]/[collectionName]-7e5df4a0de7540bb.js"],"/dataset/[datasetId]/[collectionName]/[...subfieldNames]":[s,a,t,c,n,_,e,U,i,"static/chunks/pages/dataset/[datasetId]/[collectionName]/[...subfieldNames]-d79551d4c64c398c.js"],"/datastore-connection":["static/css/5f393dea1c0d031c.css","static/chunks/pages/datastore-connection-d2f88a8fc68944db.js"],"/datastore-connection/new":[u,b,j,P,"static/chunks/pages/datastore-connection/new-f0a4e385c1ad8fee.js"],"/datastore-connection/[id]":[u,j,P,"static/chunks/pages/datastore-connection/[id]-14c57e5069e9cccd.js"],"/fides-js-docs":["static/chunks/2fbcc6de-a6c61724c327e9fa.js","static/chunks/e3251fe7-5777b5d778e6fffa.js",t,c,n,u,_,G,"static/css/ab65b8cc3144bfc8.css","static/chunks/905-8ab919e7b274ed50.js","static/chunks/pages/fides-js-docs-80b241bf6cddb72e.js"],"/integrations":[t,c,n,"static/chunks/6834-dcda0a8ed484775e.js",H,"static/chunks/pages/integrations-ef8000d7388dc915.js"],"/integrations/[id]":[s,a,t,c,n,"static/chunks/9255-336a890ada321f89.js",e,H,"static/chunks/pages/integrations/[id]-9ef6b422ae7bc2a8.js"],"/login":["static/chunks/pages/login-0cb0eb44bf2dd24c.js"],"/login/[provider]":["static/chunks/pages/login/[provider]-c58beef131c3a82d.js"],"/messaging":[s,a,t,c,n,e,"static/chunks/pages/messaging-1e60754abec1ee6b.js"],"/messaging/add-template":[d,J,"static/chunks/pages/messaging/add-template-f9693cb6a0b7ded8.js"],"/messaging/[id]":[d,J,"static/chunks/pages/messaging/[id]-ad02e019b2467958.js"],"/privacy-requests":[s,a,e,K,"static/chunks/pages/privacy-requests-b0f801d66e79a31a.js"],"/privacy-requests/configure":["static/chunks/pages/privacy-requests/configure-2987edc77388e85a.js"],"/privacy-requests/configure/messaging":["static/chunks/pages/privacy-requests/configure/messaging-5e2687ab5ab10275.js"],"/privacy-requests/configure/storage":["static/chunks/pages/privacy-requests/configure/storage-2914aade73dcaecc.js"],"/privacy-requests/[id]":[K,"static/css/15fb7d4837a1de34.css","static/chunks/pages/privacy-requests/[id]-72d64a02b7ef175e.js"],"/properties":[s,a,e,E,"static/chunks/pages/properties-20ca2f963906674b.js"],"/properties/add-property":[d,O,"static/chunks/pages/properties/add-property-630a6a3dd6502ba6.js"],"/properties/[id]":[d,O,"static/chunks/pages/properties/[id]-94e2faa73dd6a3e6.js"],"/reporting/datamap":[s,a,t,c,n,G,e,o,k,C,"static/chunks/pages/reporting/datamap-f035cddf17f4d898.js"],"/settings/about":["static/chunks/pages/settings/about-2ae030f3a28f057a.js"],"/settings/consent":["static/chunks/pages/settings/consent-3ac1e5d3de5dd4a7.js"],"/settings/custom-fields":[s,a,e,o,"static/chunks/pages/settings/custom-fields-dfcd7a4b6aa773bd.js"],"/settings/domain-records":[s,a,e,"static/chunks/pages/settings/domain-records-72ec54ee8755a503.js"],"/settings/domains":["static/chunks/pages/settings/domains-24cba38685dc872c.js"],"/settings/email-templates":["static/chunks/pages/settings/email-templates-6fd6071e2009b8f2.js"],"/settings/locations":[s,Q,"static/chunks/pages/settings/locations-66c757325cb58467.js"],"/settings/organization":["static/chunks/pages/settings/organization-0e0aa552f520f913.js"],"/settings/regulations":[s,Q,"static/chunks/pages/settings/regulations-c6c239996cfa6ae8.js"],"/systems":[s,a,e,"static/chunks/pages/systems-8490aaaee9d76a4a.js"],"/systems/configure/[id]":[s,a,t,c,n,b,e,o,g,k,h,y,x,i,"static/chunks/pages/systems/configure/[id]-a158fa77df288523.js"],"/systems/configure/[id]/test-datasets":[u,j,"static/chunks/pages/systems/configure/[id]/test-datasets-1d83d5178b3eb216.js"],"/taxonomy":["static/chunks/678d4732-50255cc09048e643.js",t,c,n,p,"static/chunks/570-c99f07161bd339cd.js",o,"static/css/34a7eb08b86ddb57.css","static/chunks/pages/taxonomy-be1ffe267b1602e1.js"],"/user-management":[w,"static/chunks/pages/user-management-3ca3c687e72d1364.js"],"/user-management/new":[w,R,"static/chunks/pages/user-management/new-f8bca2e322ddf252.js"],"/user-management/profile/[id]":[w,R,"static/chunks/pages/user-management/profile/[id]-c0378fd1a26a71da.js"],sortedPages:["/","/404","/_app","/_error","/add-systems","/add-systems/manual","/add-systems/multiple","/ant-poc","/consent","/consent/configure","/consent/configure/add-vendors","/consent/privacy-experience","/consent/privacy-experience/new","/consent/privacy-experience/[id]","/consent/privacy-notices","/consent/privacy-notices/new","/consent/privacy-notices/[id]","/consent/properties","/consent/reporting","/data-catalog","/data-catalog/[systemId]/projects","/data-catalog/[systemId]/projects/[projectUrn]","/data-catalog/[systemId]/projects/[projectUrn]/[resourceUrn]","/data-catalog/[systemId]/resources","/data-catalog/[systemId]/resources/[resourceUrn]","/data-discovery/action-center","/data-discovery/action-center/[monitorId]","/data-discovery/action-center/[monitorId]/[systemId]","/data-discovery/activity","/data-discovery/detection","/data-discovery/detection/[resourceUrn]","/data-discovery/discovery","/data-discovery/discovery/[resourceUrn]","/datamap","/dataset","/dataset/new","/dataset/[datasetId]","/dataset/[datasetId]/[collectionName]","/dataset/[datasetId]/[collectionName]/[...subfieldNames]","/datastore-connection","/datastore-connection/new","/datastore-connection/[id]","/fides-js-docs","/integrations","/integrations/[id]","/login","/login/[provider]","/messaging","/messaging/add-template","/messaging/[id]","/privacy-requests","/privacy-requests/configure","/privacy-requests/configure/messaging","/privacy-requests/configure/storage","/privacy-requests/[id]","/properties","/properties/add-property","/properties/[id]","/reporting/datamap","/settings/about","/settings/consent","/settings/custom-fields","/settings/domain-records","/settings/domains","/settings/email-templates","/settings/locations","/settings/organization","/settings/regulations","/systems","/systems/configure/[id]","/systems/configure/[id]/test-datasets","/taxonomy","/user-management","/user-management/new","/user-management/profile/[id]"]}}("static/chunks/c78d26b1-88a3e1bacb2a03c2.js","static/chunks/6060-cb1ab5be7067bf7b.js","static/chunks/4481-275aa9f4c10bce53.js","static/chunks/2858-0b44609b6be7850b.js","static/chunks/2866-a73888c17a195cbe.js","static/chunks/9278-9b1b5970f0702668.js","static/css/d2d4e9a6923e6730.css","static/chunks/9282-2bfbdca45e84e810.js","static/chunks/7980-72f745bff9fabcc9.js","static/chunks/9999-637e0e5341f15f4a.js","static/chunks/6527-0eed08abe252a918.js","static/chunks/355-8a77c9a1cd027f2e.js","static/chunks/4294-5b3aa9d605217915.js","static/chunks/6372-e0bb9f8d07cc3b04.js","static/chunks/9327-2cba327d10586683.js","static/chunks/5277-e8a036319456127f.js","static/chunks/8499-43606100edf42fdf.js","static/chunks/146-0ae2d30ec71fce09.js","static/chunks/1376-03e7f50e708b7589.js","static/chunks/3938-6a1c07d06a80cf4c.js","static/chunks/4723-1dd1d16f404d56a2.js","static/chunks/7751-a70fe0e5f67f5538.js","static/chunks/6315-1adb10a8b98b4a13.js","static/chunks/5487-8678d75ee1d1ef09.js","static/chunks/8702-d1c8296f9f6afc10.js","static/chunks/5480-52dc446be40725f5.js","static/css/972dc7eef106ee7c.css","static/chunks/4450-6a8aa0d7358ac26f.js","static/chunks/5826-ef0aa43ffad83acc.js","static/chunks/6853-09e831e9dff7fd3b.js","static/chunks/9014-eeae6f581158e645.js","static/chunks/1817-f82105a9608bba1a.js","static/chunks/3615-5e2d062d684b8fa1.js","static/chunks/6954-baa1d873abfe8b77.js","static/chunks/79-8e060d36d36c752c.js","static/chunks/3872-472bb47eb34d8fdb.js","static/chunks/3855-63495367531cb776.js","static/chunks/2397-0d1c289b788fcc11.js","static/chunks/9046-8a5fdd335a76d224.js","static/chunks/5258-cf7b27ef51f38392.js","static/chunks/9767-8179ce7336727141.js","static/chunks/9187-851756440f79cd75.js","static/chunks/5973-d3d3872692c1d0fa.js","static/chunks/1100-053fc6b76c65a00f.js","static/chunks/8433-b3008ecaf9834e7f.js","static/chunks/4060-53a5c6347690a8fa.js","static/chunks/3086-b5054ec2c75700b9.js","static/chunks/1150-2642cd9cdc8a52f6.js"),self.__BUILD_MANIFEST_CB&&self.__BUILD_MANIFEST_CB();
|
1
|
+
self.__BUILD_MANIFEST=function(s,e,t,a,c,n,i,d,o,r,u,g,p,f,j,b,k,h,m,y,l,v,I,U,_,w,q,x,N,B,F,z,A,D,E,L,M,S,T,C,P,G,H,J,K,O,Q,R){return{__rewrites:{afterFiles:[],beforeFiles:[],fallback:[]},"/":[q,"static/chunks/pages/index-b70def65e264270e.js"],"/404":["static/chunks/pages/404-b202c0d8f6fc75c3.js"],"/_error":["static/chunks/pages/_error-bede3a8288930dcf.js"],"/add-systems":[q,"static/chunks/pages/add-systems-fac606150b65d494.js"],"/add-systems/manual":[s,e,a,c,n,b,t,o,g,k,h,y,x,i,"static/chunks/pages/add-systems/manual-9f9500c639362aa6.js"],"/add-systems/multiple":[s,e,t,g,l,N,"static/chunks/pages/add-systems/multiple-ba975134a85588f8.js"],"/ant-poc":["static/chunks/pages/ant-poc-b9932971a479f3a7.js"],"/consent":["static/chunks/pages/consent-39d65f13cc8f1cf8.js"],"/consent/configure":[s,e,t,g,l,"static/chunks/pages/consent/configure-a4e636eecaba5324.js"],"/consent/configure/add-vendors":[s,e,t,g,l,N,"static/chunks/pages/consent/configure/add-vendors-b34e5324461d0c87.js"],"/consent/privacy-experience":[s,e,b,t,B,"static/chunks/pages/consent/privacy-experience-ba5325035c71a97e.js"],"/consent/privacy-experience/new":[a,c,p,F,d,m,z,"static/chunks/pages/consent/privacy-experience/new-c02b14c50b19bd91.js"],"/consent/privacy-experience/[id]":[a,c,p,F,d,m,z,"static/chunks/pages/consent/privacy-experience/[id]-ab3ef485f6101697.js"],"/consent/privacy-notices":[s,e,t,B,"static/chunks/pages/consent/privacy-notices-ef31c181cac86c64.js"],"/consent/privacy-notices/new":[a,c,p,A,d,m,D,"static/chunks/pages/consent/privacy-notices/new-9611dd42856d6062.js"],"/consent/privacy-notices/[id]":[a,c,p,A,d,m,D,"static/chunks/pages/consent/privacy-notices/[id]-606457ef5bd1eb04.js"],"/consent/properties":[s,e,t,E,"static/chunks/pages/consent/properties-e5748812ba055a56.js"],"/consent/reporting":[s,e,a,t,"static/chunks/pages/consent/reporting-100234c23a85d235.js"],"/data-catalog":[s,e,a,c,n,t,"static/css/95ac327e5d70148d.css","static/chunks/pages/data-catalog-49bffaf07973fead.js"],"/data-catalog/[systemId]/projects":[s,e,a,c,n,t,f,v,i,"static/chunks/pages/data-catalog/[systemId]/projects-c44ce244122e96d5.js"],"/data-catalog/[systemId]/projects/[projectUrn]":[s,e,t,L,"static/chunks/pages/data-catalog/[systemId]/projects/[projectUrn]-a29850536c85d4b8.js"],"/data-catalog/[systemId]/projects/[projectUrn]/[resourceUrn]":[s,e,a,c,n,t,f,v,M,i,"static/chunks/pages/data-catalog/[systemId]/projects/[projectUrn]/[resourceUrn]-ac033a16f043e6f9.js"],"/data-catalog/[systemId]/resources":[s,e,t,L,"static/chunks/pages/data-catalog/[systemId]/resources-305555b74c357bf2.js"],"/data-catalog/[systemId]/resources/[resourceUrn]":[s,e,a,c,n,t,f,v,M,i,"static/chunks/pages/data-catalog/[systemId]/resources/[resourceUrn]-71e26d262afcaea5.js"],"/data-discovery/action-center":[s,e,t,"static/chunks/pages/data-discovery/action-center-17d1525551d8904f.js"],"/data-discovery/action-center/[monitorId]":[s,e,a,c,n,t,r,h,"static/chunks/pages/data-discovery/action-center/[monitorId]-53efbed54d230f07.js"],"/data-discovery/action-center/[monitorId]/[systemId]":[s,e,a,c,n,t,h,y,i,"static/chunks/pages/data-discovery/action-center/[monitorId]/[systemId]-727f1f5d06be674b.js"],"/data-discovery/activity":[s,e,t,r,I,"static/chunks/pages/data-discovery/activity-7d2cb947eee11262.js"],"/data-discovery/detection":[s,e,t,r,I,S,"static/chunks/pages/data-discovery/detection-b75dd3e4306ac18e.js"],"/data-discovery/detection/[resourceUrn]":[s,e,t,r,I,S,"static/chunks/pages/data-discovery/detection/[resourceUrn]-054ca46a782e99a5.js"],"/data-discovery/discovery":[s,e,a,c,n,t,r,f,T,i,"static/chunks/pages/data-discovery/discovery-cad50b0cc6d1050c.js"],"/data-discovery/discovery/[resourceUrn]":[s,e,a,c,n,t,r,f,T,i,"static/chunks/pages/data-discovery/discovery/[resourceUrn]-1da20aeb6fc995e4.js"],"/datamap":[s,e,"static/chunks/255-7db55b0e3a0f9dea.js",t,o,k,C,"static/chunks/pages/datamap-8cb714cdd44ac40e.js"],"/dataset":[s,e,u,t,j,"static/chunks/pages/dataset-29317d18ce34adfe.js"],"/dataset/new":[u,j,"static/chunks/pages/dataset/new-4d4a31d0186a4a5b.js"],"/dataset/[datasetId]":[s,e,"static/chunks/9729-fcf6ff4e3534e4a8.js",t,U,"static/chunks/pages/dataset/[datasetId]-6ba18f92ba561114.js"],"/dataset/[datasetId]/[collectionName]":[s,e,a,c,n,_,t,U,i,"static/chunks/pages/dataset/[datasetId]/[collectionName]-7e5df4a0de7540bb.js"],"/dataset/[datasetId]/[collectionName]/[...subfieldNames]":[s,e,a,c,n,_,t,U,i,"static/chunks/pages/dataset/[datasetId]/[collectionName]/[...subfieldNames]-d79551d4c64c398c.js"],"/datastore-connection":["static/css/5f393dea1c0d031c.css","static/chunks/pages/datastore-connection-d2f88a8fc68944db.js"],"/datastore-connection/new":[u,b,j,P,"static/chunks/pages/datastore-connection/new-f0a4e385c1ad8fee.js"],"/datastore-connection/[id]":[u,j,P,"static/chunks/pages/datastore-connection/[id]-14c57e5069e9cccd.js"],"/fides-js-docs":["static/chunks/2fbcc6de-a6c61724c327e9fa.js","static/chunks/e3251fe7-5777b5d778e6fffa.js",a,c,n,u,_,G,"static/css/ab65b8cc3144bfc8.css","static/chunks/905-8ab919e7b274ed50.js","static/chunks/pages/fides-js-docs-80b241bf6cddb72e.js"],"/integrations":[a,c,n,"static/chunks/6834-dcda0a8ed484775e.js",H,"static/chunks/pages/integrations-ef8000d7388dc915.js"],"/integrations/[id]":[s,e,a,c,n,"static/chunks/9255-336a890ada321f89.js",t,H,"static/chunks/pages/integrations/[id]-b75ab4ee677f118d.js"],"/login":["static/chunks/pages/login-0cb0eb44bf2dd24c.js"],"/login/[provider]":["static/chunks/pages/login/[provider]-c58beef131c3a82d.js"],"/messaging":[s,e,a,c,n,t,"static/chunks/pages/messaging-26407674949bcbc4.js"],"/messaging/add-template":[d,J,"static/chunks/pages/messaging/add-template-f9693cb6a0b7ded8.js"],"/messaging/[id]":[d,J,"static/chunks/pages/messaging/[id]-ad02e019b2467958.js"],"/privacy-requests":[s,e,t,K,"static/chunks/pages/privacy-requests-fd81714d811db7b3.js"],"/privacy-requests/configure":["static/chunks/pages/privacy-requests/configure-2987edc77388e85a.js"],"/privacy-requests/configure/messaging":["static/chunks/pages/privacy-requests/configure/messaging-28d4bdf060ec8cb2.js"],"/privacy-requests/configure/storage":["static/chunks/pages/privacy-requests/configure/storage-208e49ef43361d6f.js"],"/privacy-requests/[id]":[K,"static/css/15fb7d4837a1de34.css","static/chunks/pages/privacy-requests/[id]-72d64a02b7ef175e.js"],"/properties":[s,e,t,E,"static/chunks/pages/properties-20ca2f963906674b.js"],"/properties/add-property":[d,O,"static/chunks/pages/properties/add-property-630a6a3dd6502ba6.js"],"/properties/[id]":[d,O,"static/chunks/pages/properties/[id]-94e2faa73dd6a3e6.js"],"/reporting/datamap":[s,e,a,c,n,G,t,o,k,C,"static/chunks/pages/reporting/datamap-f035cddf17f4d898.js"],"/settings/about":["static/chunks/pages/settings/about-2ae030f3a28f057a.js"],"/settings/consent":["static/chunks/pages/settings/consent-ff1985f72d50ef47.js"],"/settings/custom-fields":[s,e,t,o,"static/chunks/pages/settings/custom-fields-dfcd7a4b6aa773bd.js"],"/settings/domain-records":[s,e,t,"static/chunks/pages/settings/domain-records-72ec54ee8755a503.js"],"/settings/domains":["static/chunks/pages/settings/domains-5a0b10ec955097d4.js"],"/settings/email-templates":["static/chunks/pages/settings/email-templates-6fd6071e2009b8f2.js"],"/settings/locations":[s,Q,"static/chunks/pages/settings/locations-66c757325cb58467.js"],"/settings/organization":["static/chunks/pages/settings/organization-0e0aa552f520f913.js"],"/settings/regulations":[s,Q,"static/chunks/pages/settings/regulations-c6c239996cfa6ae8.js"],"/systems":[s,e,t,"static/chunks/pages/systems-8490aaaee9d76a4a.js"],"/systems/configure/[id]":[s,e,a,c,n,b,t,o,g,k,h,y,x,i,"static/chunks/pages/systems/configure/[id]-a158fa77df288523.js"],"/systems/configure/[id]/test-datasets":[u,j,"static/chunks/pages/systems/configure/[id]/test-datasets-1d83d5178b3eb216.js"],"/taxonomy":["static/chunks/678d4732-50255cc09048e643.js",a,c,n,p,"static/chunks/570-c99f07161bd339cd.js",o,"static/css/34a7eb08b86ddb57.css","static/chunks/pages/taxonomy-be1ffe267b1602e1.js"],"/user-management":[w,"static/chunks/pages/user-management-a1db56f1cbfba373.js"],"/user-management/new":[w,R,"static/chunks/pages/user-management/new-082c3156175f9267.js"],"/user-management/profile/[id]":[w,R,"static/chunks/pages/user-management/profile/[id]-af83245e9373a064.js"],sortedPages:["/","/404","/_app","/_error","/add-systems","/add-systems/manual","/add-systems/multiple","/ant-poc","/consent","/consent/configure","/consent/configure/add-vendors","/consent/privacy-experience","/consent/privacy-experience/new","/consent/privacy-experience/[id]","/consent/privacy-notices","/consent/privacy-notices/new","/consent/privacy-notices/[id]","/consent/properties","/consent/reporting","/data-catalog","/data-catalog/[systemId]/projects","/data-catalog/[systemId]/projects/[projectUrn]","/data-catalog/[systemId]/projects/[projectUrn]/[resourceUrn]","/data-catalog/[systemId]/resources","/data-catalog/[systemId]/resources/[resourceUrn]","/data-discovery/action-center","/data-discovery/action-center/[monitorId]","/data-discovery/action-center/[monitorId]/[systemId]","/data-discovery/activity","/data-discovery/detection","/data-discovery/detection/[resourceUrn]","/data-discovery/discovery","/data-discovery/discovery/[resourceUrn]","/datamap","/dataset","/dataset/new","/dataset/[datasetId]","/dataset/[datasetId]/[collectionName]","/dataset/[datasetId]/[collectionName]/[...subfieldNames]","/datastore-connection","/datastore-connection/new","/datastore-connection/[id]","/fides-js-docs","/integrations","/integrations/[id]","/login","/login/[provider]","/messaging","/messaging/add-template","/messaging/[id]","/privacy-requests","/privacy-requests/configure","/privacy-requests/configure/messaging","/privacy-requests/configure/storage","/privacy-requests/[id]","/properties","/properties/add-property","/properties/[id]","/reporting/datamap","/settings/about","/settings/consent","/settings/custom-fields","/settings/domain-records","/settings/domains","/settings/email-templates","/settings/locations","/settings/organization","/settings/regulations","/systems","/systems/configure/[id]","/systems/configure/[id]/test-datasets","/taxonomy","/user-management","/user-management/new","/user-management/profile/[id]"]}}("static/chunks/c78d26b1-88a3e1bacb2a03c2.js","static/chunks/6060-cb1ab5be7067bf7b.js","static/chunks/4481-275aa9f4c10bce53.js","static/chunks/2858-0b44609b6be7850b.js","static/chunks/2866-a73888c17a195cbe.js","static/chunks/9278-9b1b5970f0702668.js","static/css/d2d4e9a6923e6730.css","static/chunks/9282-2bfbdca45e84e810.js","static/chunks/7980-72f745bff9fabcc9.js","static/chunks/9999-637e0e5341f15f4a.js","static/chunks/6527-0eed08abe252a918.js","static/chunks/355-8a77c9a1cd027f2e.js","static/chunks/4294-5b3aa9d605217915.js","static/chunks/6372-e0bb9f8d07cc3b04.js","static/chunks/9327-2cba327d10586683.js","static/chunks/5277-e8a036319456127f.js","static/chunks/8499-43606100edf42fdf.js","static/chunks/146-0ae2d30ec71fce09.js","static/chunks/1376-87058e04584cff20.js","static/chunks/3938-6a1c07d06a80cf4c.js","static/chunks/4723-1dd1d16f404d56a2.js","static/chunks/7751-a70fe0e5f67f5538.js","static/chunks/6315-24a0483ee1cab6cc.js","static/chunks/5487-8678d75ee1d1ef09.js","static/chunks/8702-d1c8296f9f6afc10.js","static/chunks/5480-52dc446be40725f5.js","static/css/972dc7eef106ee7c.css","static/chunks/4450-9c3086ccb55c66aa.js","static/chunks/5826-ef0aa43ffad83acc.js","static/chunks/6853-09e831e9dff7fd3b.js","static/chunks/9014-eeae6f581158e645.js","static/chunks/1817-48e1c9d3504e18f0.js","static/chunks/3615-5e2d062d684b8fa1.js","static/chunks/6954-ec5276bb464d42b2.js","static/chunks/79-8e060d36d36c752c.js","static/chunks/3872-472bb47eb34d8fdb.js","static/chunks/3855-63495367531cb776.js","static/chunks/2397-0d1c289b788fcc11.js","static/chunks/9046-a69fa8f99c414570.js","static/chunks/5258-cf7b27ef51f38392.js","static/chunks/9767-8179ce7336727141.js","static/chunks/9187-851756440f79cd75.js","static/chunks/5973-d3d3872692c1d0fa.js","static/chunks/1100-053fc6b76c65a00f.js","static/chunks/8433-b3008ecaf9834e7f.js","static/chunks/4060-53a5c6347690a8fa.js","static/chunks/3086-b5054ec2c75700b9.js","static/chunks/4121-4d5273d7a354994d.js"),self.__BUILD_MANIFEST_CB&&self.__BUILD_MANIFEST_CB();
|
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1376],{87361:function(e,a,n){var i=n(24246),t=n(77181);a.Z=e=>{let{title:a,text:n,onClose:l}=e;return(0,i.jsxs)(t.Ugi,{backgroundColor:"gray.50",border:"1px solid",borderRadius:"md",justifyContent:"space-between",py:4,pr:6,pl:3,"data-testid":"empty-state",gap:2,position:"relative",children:[l&&(0,i.jsx)(t.Two,{boxSize:5,position:"absolute",right:3,top:3,zIndex:1,cursor:"pointer",p:1,onClick:l}),(0,i.jsx)(t.iid,{alignSelf:"start",color:"minos",mt:.5,flexGrow:0}),(0,i.jsxs)(t.kCb,{direction:"column",gap:2,flexGrow:1,children:[(0,i.jsx)(t.X6q,{fontSize:"md",children:a}),(0,i.jsx)(t.xvT,{fontSize:"sm",color:"gray.600",lineHeight:"5",children:n})]})]})}},97181:function(e,a,n){n.d(a,{d:function(){return d}});var i=n(24246),t=n(77181),l=n(34090),o=n(27378),r=n(91613),s=n(40324);let d=e=>{let{name:a,label:n,labelProps:d,tooltip:_,isRequired:c,layout:u="inline",...F}=e,[p,b,{setValue:m}]=(0,l.U$)(a),g=!!(b.touched&&b.error),[v,h]=(0,o.useState)("");p.value||"tags"!==F.mode&&"multiple"!==F.mode||(p.value=[]),"tags"===F.mode&&"string"==typeof p.value&&(p.value=[p.value]);let C="tags"===F.mode?(e,a)=>e?e.value!==v||p.value.includes(v)?F.optionRender?F.optionRender(e,a):e.label:'Create "'.concat(v,'"'):void 0:F.optionRender||void 0,f=e=>{h(e),F.onSearch&&F.onSearch(e)},S=(e,a)=>{m(e),F.onChange&&F.onChange(e,a)};return"inline"===u?(0,i.jsx)(t.NIc,{isInvalid:g,isRequired:c,children:(0,i.jsxs)(t.rjZ,{templateColumns:n?"1fr 3fr":"1fr",children:[n?(0,i.jsx)(s.__,{htmlFor:F.id||a,...d,children:n}):null,(0,i.jsxs)(t.jqI,{align:"center",children:[(0,i.jsxs)(t.jqI,{vertical:!0,flex:1,className:"mr-2",children:[(0,i.jsx)(t.WPr,{...p,id:F.id||a,"data-testid":"controlled-select-".concat(p.name),...F,optionRender:C,onSearch:"tags"===F.mode?f:void 0,onChange:S,value:p.value||void 0,status:g?"error":void 0}),(0,i.jsx)(s.Bc,{isInvalid:g,message:b.error,fieldName:p.name})]}),_?(0,i.jsx)(r.Z,{label:_}):null]})]})}):(0,i.jsx)(t.NIc,{isInvalid:g,isRequired:c,children:(0,i.jsxs)(t.gCW,{alignItems:"start",children:[(0,i.jsxs)(t.jqI,{align:"center",children:[n?(0,i.jsx)(s.__,{htmlFor:F.id||a,fontSize:"xs",my:0,mr:1,...d,children:n}):null,_?(0,i.jsx)(r.Z,{label:_}):null]}),(0,i.jsx)(t.WPr,{...p,id:F.id||a,"data-testid":"controlled-select-".concat(p.name),...F,optionRender:C,onSearch:"tags"===F.mode?f:void 0,onChange:S,value:p.value||void 0,status:g?"error":void 0}),(0,i.jsx)(s.Bc,{isInvalid:g,message:b.error,fieldName:p.name})]})})}},57899:function(e,a,n){var i=n(24246),t=n(77181),l=n(27378);a.Z=e=>{let{handleConfirm:a,isOpen:n,onClose:o,title:r,message:s,confirmButtonText:d="Continue",cancelButtonText:_="Cancel"}=e,c=(0,l.useRef)(null);return(0,i.jsx)(t.aRR,{isOpen:n,leastDestructiveRef:c,onClose:o,children:(0,i.jsx)(t.dhV,{children:(0,i.jsxs)(t._Tf,{alignItems:"center",textAlign:"center",children:[(0,i.jsx)(t.aNP,{marginTop:3}),(0,i.jsx)(t.fYl,{fontSize:"lg",fontWeight:"bold",children:r}),(0,i.jsx)(t.iPF,{pt:0,children:s}),(0,i.jsxs)(t.xoY,{children:[(0,i.jsx)(t.wpx,{ref:c,onClick:o,size:"large",children:_}),(0,i.jsx)(t.wpx,{onClick:()=>a(),type:"primary",size:"large",className:"ml-3","data-testid":"warning-modal-confirm-btn",children:d})]})]})})})}},90980:function(e,a,n){n.d(a,{R:function(){return s}});var i=n(24246),t=n(77181),l=n(79894),o=n.n(l),r=n(63662);let s=e=>{let{onClick:a,...n}=e;return(0,i.jsxs)(t.kCb,{alignItems:"center",mt:-4,mb:3,onClick:a,cursor:"pointer",...n,children:[(0,i.jsx)(t.wpx,{"aria-label":"Back",icon:(0,i.jsx)(t.Rpv,{}),className:"mr-2",size:"small"}),(0,i.jsx)(t.xvT,{as:"a",fontSize:"sm",fontWeight:"500",children:"Back"})]})};a.Z=e=>{let{backPath:a,...n}=e,l=(0,r.useRouter)();return(0,i.jsxs)(t.kCb,{alignItems:"center",mb:6,...n,children:[(0,i.jsx)(t.wpx,{onClick:()=>l.push(a),"aria-label":"Back",icon:(0,i.jsx)(t.Rpv,{}),className:"mr-2",size:"small"}),(0,i.jsx)(t.xvT,{as:o(),href:a,fontSize:"sm",fontWeight:"500",children:"Back"})]})}},8411:function(e,a,n){n.d(a,{NA:function(){return l},Z8:function(){return t}});var i=n(28120);let t={[i._F.ER]:"Eritrea",[i._F.DJ]:"Djibouti",[i._F.MR]:"Mauritania",[i._F.NA]:"Namibia",[i._F.GH]:"Ghana",[i._F.SS]:"South Sudan",[i._F.SC]:"Seychelles",[i._F.IO]:"British Indian Ocean Territory",[i._F.GQ]:"Equatorial Guinea",[i._F.AO]:"Angola",[i._F.CG]:"Republic of the Congo",[i._F.BW]:"Botswana",[i._F.BI]:"Burundi",[i._F.DZ]:"Algeria",[i._F.TD]:"Chad",[i._F.NG]:"Nigeria",[i._F.TZ]:"Tanzania",[i._F.EH]:"Western Sahara",[i._F.SN]:"Senegal",[i._F.LR]:"Liberia",[i._F.ZA]:"South Africa",[i._F.CV]:"Cape Verde",[i._F.GM]:"Gambia",[i._F.SD]:"Sudan",[i._F.KM]:"Comoros",[i._F.SZ]:"Eswatini",[i._F.UG]:"Uganda",[i._F.MG]:"Madagascar",[i._F.RW]:"Rwanda",[i._F.CD]:"DR Congo",[i._F.CM]:"Cameroon",[i._F.SH]:"Saint Helena, Ascension and Tristan da Cunha",[i._F.TG]:"Togo",[i._F.MU]:"Mauritius",[i._F.NE]:"Niger",[i._F.BJ]:"Benin",[i._F.EG]:"Egypt",[i._F.LS]:"Lesotho",[i._F.ET]:"Ethiopia",[i._F.MA]:"Morocco",[i._F.YT]:"Mayotte",[i._F.BF]:"Burkina Faso",[i._F.RE]:"R\xe9union",[i._F.ST]:"S\xe3o Tom\xe9 and Pr\xedncipe",[i._F.CF]:"Central African Republic",[i._F.MZ]:"Mozambique",[i._F.MW]:"Malawi",[i._F.ML]:"Mali",[i._F.ZM]:"Zambia",[i._F.LY]:"Libya",[i._F.GW]:"Guinea-Bissau",[i._F.SO]:"Somalia",[i._F.KE]:"Kenya",[i._F.GN]:"Guinea",[i._F.ZW]:"Zimbabwe",[i._F.TN]:"Tunisia",[i._F.SL]:"Sierra Leone",[i._F.GA]:"Gabon",[i._F.CI]:"Ivory Coast",[i._F.JO]:"Jordan",[i._F.PK]:"Pakistan",[i._F.KP]:"North Korea",[i._F.MO]:"Macau",[i._F.AM]:"Armenia",[i._F.SY]:"Syria",[i._F.TJ]:"Tajikistan",[i._F.SA]:"Saudi Arabia",[i._F.KR]:"South Korea",[i._F.NP]:"Nepal",[i._F.PH]:"Philippines",[i._F.IQ]:"Iraq",[i._F.LB]:"Lebanon",[i._F.MN]:"Mongolia",[i._F.PS]:"Palestine",[i._F.YE]:"Yemen",[i._F.JP]:"Japan",[i._F.KZ]:"Kazakhstan",[i._F.LK]:"Sri Lanka",[i._F.MM]:"Myanmar",[i._F.KG]:"Kyrgyzstan",[i._F.CN]:"China",[i._F.AF]:"Afghanistan",[i._F.OM]:"Oman",[i._F.IN]:"India",[i._F.LA]:"Laos",[i._F.UZ]:"Uzbekistan",[i._F.MV]:"Maldives",[i._F.ID]:"Indonesia",[i._F.VN]:"Vietnam",[i._F.MY]:"Malaysia",[i._F.TW]:"Taiwan",[i._F.KH]:"Cambodia",[i._F.AE]:"United Arab Emirates",[i._F.HK]:"Hong Kong",[i._F.GE]:"Georgia",[i._F.BD]:"Bangladesh",[i._F.KW]:"Kuwait",[i._F.TM]:"Turkmenistan",[i._F.QA]:"Qatar",[i._F.BH]:"Bahrain",[i._F.BN]:"Brunei",[i._F.TH]:"Thailand",[i._F.BT]:"Bhutan",[i._F.SG]:"Singapore",[i._F.IL]:"Israel",[i._F.AZ]:"Azerbaijan",[i._F.TL]:"Timor-Leste",[i._F.IR]:"Iran",[i._F.TR]:"Turkey",[i._F.MK]:"North Macedonia",[i._F.IE]:"Ireland",[i._F.DK]:"Denmark",[i._F.SK]:"Slovakia",[i._F.MD]:"Moldova",[i._F.AX]:"\xc5land Islands",[i._F.PL]:"Poland",[i._F.BA]:"Bosnia and Herzegovina",[i._F.SM]:"San Marino",[i._F.CZ]:"Czechia",[i._F.EE]:"Estonia",[i._F.XK]:"Kosovo",[i._F.FO]:"Faroe Islands",[i._F.SJ]:"Svalbard and Jan Mayen",[i._F.GG]:"Guernsey",[i._F.FR]:"France",[i._F.NL]:"Netherlands",[i._F.FI]:"Finland",[i._F.PT]:"Portugal",[i._F.DE]:"Germany",[i._F.MT]:"Malta",[i._F.JE]:"Jersey",[i._F.IS]:"Iceland",[i._F.ES]:"Spain",[i._F.GI]:"Gibraltar",[i._F.NO]:"Norway",[i._F.CY]:"Cyprus",[i._F.RS]:"Serbia",[i._F.LT]:"Lithuania",[i._F.MC]:"Monaco",[i._F.LU]:"Luxembourg",[i._F.UA]:"Ukraine",[i._F.IM]:"Isle of Man",[i._F.RO]:"Romania",[i._F.BE]:"Belgium",[i._F.SE]:"Sweden",[i._F.ME]:"Montenegro",[i._F.LV]:"Latvia",[i._F.VA]:"Vatican City",[i._F.AT]:"Austria",[i._F.AL]:"Albania",[i._F.LI]:"Liechtenstein",[i._F.GR]:"Greece",[i._F.IT]:"Italy",[i._F.AD]:"Andorra",[i._F.GB]:"United Kingdom",[i._F.RU]:"Russia",[i._F.SI]:"Slovenia",[i._F.BY]:"Belarus",[i._F.CH]:"Switzerland",[i._F.HU]:"Hungary",[i._F.BG]:"Bulgaria",[i._F.HR]:"Croatia",[i._F.TC]:"Turks and Caicos Islands",[i._F.CW]:"Cura\xe7ao",[i._F.GP]:"Guadeloupe",[i._F.UM]:"United States Minor Outlying Islands",[i._F.GT]:"Guatemala",[i._F.PM]:"Saint Pierre and Miquelon",[i._F.BQ]:"Caribbean Netherlands",[i._F.GL]:"Greenland",[i._F.SX]:"Sint Maarten",[i._F.PA]:"Panama",[i._F.AW]:"Aruba",[i._F.MQ]:"Martinique",[i._F.AG]:"Antigua and Barbuda",[i._F.BM]:"Bermuda",[i._F.CU]:"Cuba",[i._F.GD]:"Grenada",[i._F.NI]:"Nicaragua",[i._F.LC]:"Saint Lucia",[i._F.KN]:"Saint Kitts and Nevis",[i._F.DO]:"Dominican Republic",[i._F.VC]:"Saint Vincent and the Grenadines",[i._F.BZ]:"Belize",[i._F.HT]:"Haiti",[i._F.JM]:"Jamaica",[i._F.BS]:"Bahamas",[i._F.MX]:"Mexico",[i._F.MF]:"Saint Martin",[i._F.SV]:"El Salvador",[i._F.BL]:"Saint Barth\xe9lemy",[i._F.AI]:"Anguilla",[i._F.MS]:"Montserrat",[i._F.VG]:"British Virgin Islands",[i._F.BB]:"Barbados",[i._F.HN]:"Honduras",[i._F.KY]:"Cayman Islands",[i._F.DM]:"Dominica",[i._F.TT]:"Trinidad and Tobago",[i._F.CR]:"Costa Rica",[i._F.SR]:"Suriname",[i._F.CX]:"Christmas Island",[i._F.WS]:"Samoa",[i._F.PF]:"French Polynesia",[i._F.AS]:"American Samoa",[i._F.NC]:"New Caledonia",[i._F.TK]:"Tokelau",[i._F.PW]:"Palau",[i._F.KI]:"Kiribati",[i._F.VU]:"Vanuatu",[i._F.PN]:"Pitcairn Islands",[i._F.CK]:"Cook Islands",[i._F.FJ]:"Fiji",[i._F.PG]:"Papua New Guinea",[i._F.MP]:"Northern Mariana Islands",[i._F.NU]:"Niue",[i._F.TV]:"Tuvalu",[i._F.NF]:"Norfolk Island",[i._F.TO]:"Tonga",[i._F.FM]:"Micronesia",[i._F.SB]:"Solomon Islands",[i._F.NR]:"Nauru",[i._F.WF]:"Wallis and Futuna",[i._F.GU]:"Guam",[i._F.AU]:"Australia",[i._F.NZ]:"New Zealand",[i._F.MH]:"Marshall Islands",[i._F.CC]:"Cocos (Keeling) Islands",[i._F.VE]:"Venezuela",[i._F.PY]:"Paraguay",[i._F.BR]:"Brazil",[i._F.CO]:"Colombia",[i._F.PE]:"Peru",[i._F.CL]:"Chile",[i._F.UY]:"Uruguay",[i._F.AR]:"Argentina",[i._F.GY]:"Guyana",[i._F.BO]:"Bolivia",[i._F.GF]:"French Guiana",[i._F.EC]:"Ecuador",[i._F.FK]:"Falkland Islands",[i._F.US_AL]:"Alabama",[i._F.US_AK]:"Alaska",[i._F.US_AZ]:"Arizona",[i._F.US_AR]:"Arkansas",[i._F.US_CA]:"California",[i._F.US_CO]:"Colorado",[i._F.US_CT]:"Connecticut",[i._F.US_DE]:"Delaware",[i._F.US_DC]:"District of Columbia (DC)",[i._F.US_FL]:"Florida",[i._F.US_GA]:"Georgia",[i._F.US_HI]:"Hawaii",[i._F.US_ID]:"Idaho",[i._F.US_IL]:"Illinois",[i._F.US_IN]:"Indiana",[i._F.US_IA]:"Iowa",[i._F.US_KS]:"Kansas",[i._F.US_KY]:"Kentucky",[i._F.US_LA]:"Louisiana",[i._F.US_ME]:"Maine",[i._F.US_MD]:"Maryland",[i._F.US_MA]:"Massachusetts",[i._F.US_MI]:"Michigan",[i._F.US_MN]:"Minnesota",[i._F.US_MS]:"Mississippi",[i._F.US_MO]:"Missouri",[i._F.US_MT]:"Montana",[i._F.US_NE]:"Nebraska",[i._F.US_NV]:"Nevada",[i._F.US_NH]:"New Hampshire",[i._F.US_NJ]:"New Jersey",[i._F.US_NM]:"New Mexico",[i._F.US_NY]:"New York",[i._F.US_NC]:"North Carolina",[i._F.US_ND]:"North Dakota",[i._F.US_OH]:"Ohio",[i._F.US_OK]:"Oklahoma",[i._F.US_OR]:"Oregon",[i._F.US_PA]:"Pennsylvania",[i._F.US_PR]:"Puerto Rico",[i._F.US_RI]:"Rhode Island",[i._F.US_SC]:"South Carolina",[i._F.US_SD]:"San Diego",[i._F.US_TN]:"Tennessee",[i._F.US_TX]:"Texas",[i._F.US_UT]:"Utah",[i._F.US_VA]:"Virginia",[i._F.US_VI]:"United States Virgin Islands",[i._F.US_VT]:"Vermon",[i._F.US_WA]:"Washington",[i._F.US_WV]:"West Virginia",[i._F.US_WI]:"Wisconsin",[i._F.US_WY]:"Wyoming",[i._F.CA_AB]:"Alberta",[i._F.CA_BC]:"British Columbia",[i._F.CA_MB]:"Manitoba",[i._F.CA_NB]:"New Brunswick",[i._F.CA_NL]:"Newfoundland and Labrador",[i._F.CA_NS]:"Nova Scotia",[i._F.CA_ON]:"Ontario",[i._F.CA_PE]:"Prince Edward Island",[i._F.CA_QC]:"Quebec",[i._F.CA_SK]:"Saskatchewan",[i._F.CA_NT]:"Northwest Territories",[i._F.CA_NU]:"Nunavut",[i._F.CA_YT]:"Yukon",[i._F.CA]:"Canada",[i._F.US]:"United States",[i._F.MEXICO_CENTRAL_AMERICA]:"Mexico and Central America",[i._F.CARIBBEAN]:"Caribbean",[i._F.EEA]:"European Economic Area (EEA)",[i._F.NON_EEA]:"Non European Economic Area"},l=new Map(Object.entries(t));Object.entries(t).map(e=>({value:e[0],label:e[1]}))},7426:function(e,a,n){n.d(a,{D2:function(){return u},L:function(){return r},U7:function(){return d},Yh:function(){return p},ak:function(){return s},iR:function(){return m},km:function(){return o},tB:function(){return l}});var i=n(3228);let t=n(78780).u.injectEndpoints({endpoints:e=>({getConfigurationSettings:e.query({query:e=>{let{api_set:a}=e;return{url:"/config",method:"GET",params:{api_set:a}}},providesTags:["Configuration Settings"]}),putConfigurationSettings:e.mutation({query:e=>({url:"/config",method:"PUT",body:e}),invalidatesTags:["Configuration Settings"]}),patchConfigurationSettings:e.mutation({query:e=>({url:"/config",method:"PATCH",body:e}),invalidatesTags:["Configuration Settings","Privacy Notices"]})})}),{useGetConfigurationSettingsQuery:l,usePutConfigurationSettingsMutation:o,usePatchConfigurationSettingsMutation:r}=t,s=(0,i.P1)([e=>e,t.endpoints.getConfigurationSettings.select({api_set:!0}),t.endpoints.getConfigurationSettings.select({api_set:!1})],(e,a,n)=>{var i,t,l;let{data:o}=a,{data:r}=n;return{configSet:{cors_origins:(null==r?void 0:null===(i=r.security)||void 0===i?void 0:i.cors_origins)||[],cors_origin_regex:null==r?void 0:null===(t=r.security)||void 0===t?void 0:t.cors_origin_regex},apiSet:{cors_origins:(null==o?void 0:null===(l=o.security)||void 0===l?void 0:l.cors_origins)||[]}}}),d=()=>(0,i.P1)([e=>e,t.endpoints.getConfigurationSettings.select({api_set:!0})],(e,a)=>{let{data:n}=a;return n}),_={enabled:!1,cmp_api_required:!1},c=(e,a,n,i)=>{let t=n&&n[e],l=i&&i[e];return t&&l?{...i[e],...n[e]}:l?i[e]:t?{...n[e]}:a},u=(0,i.P1)([e=>e,t.endpoints.getConfigurationSettings.select({api_set:!0}),t.endpoints.getConfigurationSettings.select({api_set:!1})],(e,a,n)=>{let{data:i}=a,{data:t}=n;return c("gpp",_,i,t)}),F={tcf_publisher_country_code:null},p=(0,i.P1)([e=>e,t.endpoints.getConfigurationSettings.select({api_set:!0}),t.endpoints.getConfigurationSettings.select({api_set:!1})],(e,a,n)=>{let{data:i}=a,{data:t}=n;return c("plus_consent_settings",F,i,t)}),b={allow_username_password_login:!1},m=(0,i.P1)([e=>e,t.endpoints.getConfigurationSettings.select({api_set:!0}),t.endpoints.getConfigurationSettings.select({api_set:!1})],(e,a,n)=>{let{data:i}=a,{data:t}=n;return c("plus_security_settings",b,i,t)})},16194:function(e,a,n){n.d(a,{RN:function(){return j},d0:function(){return k}});var i=n(24246),t=n(77181),l=n(34090),o=n(86677),r=n(27378),s=n(16134),d=n(40324),_=n(90980),c=n(77830),u=n(8411),F=n(51472),p=n(64781),b=n(60325),m=n(34334),g=n(71922),v=n(98795),h=n(28120),C=n(97181);let f=[{label:"Banner and modal",value:h.re.BANNER_AND_MODAL},{label:"Modal",value:h.re.MODAL},{label:"Privacy center",value:h.re.PRIVACY_CENTER},{label:"Headless",value:h.re.HEADLESS}],S=[{label:"Reject All",value:h.tb.REJECT_ALL},{label:"Reject Consent Only",value:h.tb.REJECT_CONSENT_ONLY}],y=[{label:"Banner and modal",value:h.Of.OPT_IN_OPT_OUT},{label:"Modal only",value:h.Of.OPT_IN_ONLY}],x=[{label:"Opt In/Opt Out",value:h.Of.OPT_IN_OPT_OUT},{label:"Acknowledge",value:h.Of.ACKNOWLEDGE}],A="tcf_purposes_placeholder",j=e=>{let{buttonPanel:a,children:n}=e;return(0,i.jsxs)(t.kCb,{direction:"column",minH:"full",w:"25%",borderRight:"1px solid #DEE5EE",children:[(0,i.jsx)(t.kCb,{direction:"column",h:"full",overflowY:"auto",px:4,children:(0,i.jsx)(t.kCb,{direction:"column",gap:4,w:"full",pb:4,children:n})}),a]})},k=e=>{var a,n,k,N,T;let{allPrivacyNotices:M,translationsEnabled:E,onSelectTranslation:I,onCreateTranslation:R}=e,O=(0,o.useRouter)(),{values:U,setFieldValue:L,dirty:w,isValid:B,isSubmitting:P,initialValues:q}=(0,l.u6)(),D=(0,s.C)(g.Zp),G=(0,s.C)(g.G1);(0,g.J6)({page:D,size:G});let V=(0,r.useMemo)(()=>{let e=[...M];return e.some(e=>e.id===A)||e.push({name:"TCF Purposes",id:A,notice_key:A,data_uses:[],consent_mechanism:h.J7.NOTICE_ONLY,disabled:!1}),e},[M]),K=e=>{var a;let n=V.find(a=>a.id===e);return null!==(a=null==n?void 0:n.name)&&void 0!==a?a:e};(0,p.QM)();let Y=(0,s.C)(p.P8),Z=[...(0,b.TK)(Y.locations),...(0,b.TK)(Y.location_groups)],z=(0,s.C)(m.fJ),W=(0,s.C)(v.Zp),H=(0,s.C)(v.G1);(0,v.gz)({page:W,size:H});let J=(0,s.C)(v.YO),X=(0,i.jsxs)("div",{className:"flex justify-between border-t border-[#DEE5EE] p-4",children:[(0,i.jsx)(t.wpx,{onClick:()=>O.push(c.w0),children:"Cancel"}),(0,i.jsx)(t.wpx,{htmlType:"submit",type:"primary","data-testid":"save-btn",disabled:P||!w||!B,loading:P,children:"Save"})]});return(0,i.jsxs)(j,{buttonPanel:X,children:[(0,i.jsx)(_.Z,{backPath:c.w0,mt:4}),(0,i.jsx)(t.X6q,{fontSize:"md",fontWeight:"semibold",children:"Configure experience"}),(0,i.jsx)(d.j0,{name:"name",id:"name",label:"Name (internal admin use only)",isRequired:!0,variant:"stacked"}),U.component!==h.re.TCF_OVERLAY&&(0,i.jsx)(C.d,{name:"component",id:"component",options:f,label:"Experience type",layout:"stacked",disabled:!!q.component,isRequired:!0}),(0,i.jsx)(t.UO1,{in:U.component===h.re.TCF_OVERLAY,animateOpacity:!0,children:(0,i.jsx)(C.d,{name:"reject_all_mechanism",id:"reject_all_mechanism",options:S,defaultValue:h.tb.REJECT_ALL,label:"Reject all behavior",layout:"stacked",disabled:U.component!==h.re.TCF_OVERLAY,tooltip:"Reject All: Blocks both consent and legitimate interest data processing across all purposes, features, and vendors. Reject Consent-Only: Blocks only consent-based processing, but allows legitimate interest processing to continue, requiring separate objection."})}),(0,i.jsx)(t.UO1,{in:U.component===h.re.BANNER_AND_MODAL||U.component===h.re.TCF_OVERLAY,animateOpacity:!0,children:(0,i.jsx)(C.d,{name:"layer1_button_options",id:"layer1_button_options",defaultValue:h.Of.OPT_IN_OPT_OUT,options:U.component===h.re.TCF_OVERLAY?y:x,label:U.component===h.re.TCF_OVERLAY?"Reject all visibility":"Banner options",layout:"stacked",disabled:U.component!==h.re.BANNER_AND_MODAL&&U.component!==h.re.TCF_OVERLAY})}),(0,i.jsx)(t.UO1,{in:U.component!==h.re.PRIVACY_CENTER&&U.component!==h.re.HEADLESS,animateOpacity:!0,children:(0,i.jsx)(t.xuv,{p:"1px",children:(0,i.jsx)(d.w8,{name:"dismissable",id:"dismissable",label:"Allow user to dismiss",variant:"stacked"})})}),(0,i.jsx)(t.izJ,{}),(0,i.jsx)(t.X6q,{fontSize:"md",fontWeight:"semibold",children:"Privacy notices"}),U.component===h.re.TCF_OVERLAY?(0,i.jsx)(F.Z,{addButtonLabel:"Add privacy notice",allItems:V.map(e=>e.id),values:function(e){if(!e.privacy_notice_ids)return[A];let a=e.privacy_notice_ids;return a.includes(A)||a.push(A),a}(U),setValues:e=>L("privacy_notice_ids",e),canDeleteItem:e=>e!==A,getTooltip:e=>{if(e===A)return"TCF Purposes are required by the framework and cannot be deleted."},getItemLabel:K,draggable:!0,baseTestId:"privacy-notice"}):(0,i.jsx)(F.Z,{addButtonLabel:"Add privacy notice",allItems:(e=>{var a;let n=e.map(e=>{var a;return null===(a=e.children)||void 0===a?void 0:a.map(e=>e.id)}).flat();return null!==(a=M.filter(e=>!n.includes(e.id)))&&void 0!==a?a:[]})(M).map(e=>e.id),values:null!==(n=U.privacy_notice_ids)&&void 0!==n?n:[],setValues:e=>L("privacy_notice_ids",e),getItemLabel:K,draggable:!0,baseTestId:"privacy-notice"}),U.component===h.re.BANNER_AND_MODAL?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(t.UO1,{in:!!(null===(a=U.privacy_notice_ids)||void 0===a?void 0:a.length),animateOpacity:!0,children:(0,i.jsx)(t.xuv,{p:"1px",children:(0,i.jsx)(d.w8,{name:"show_layer1_notices",id:"show_layer1_notices",label:"Add privacy notices to banner",variant:"stacked"})})}),(0,i.jsx)(t.izJ,{})]}):null,(0,i.jsx)(t.xvT,{as:"h2",fontWeight:"600",children:"Locations & Languages"}),(0,i.jsx)(F.Z,{label:"Locations for this experience",addButtonLabel:"Add location",allItems:Z,values:null!==(k=U.regions)&&void 0!==k?k:[],setValues:e=>L("regions",e),getItemLabel:e=>u.Z8[e],draggable:!0,baseTestId:"location"}),E?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(F.Z,{label:"Languages for this experience",addButtonLabel:"Add language",values:null!==(N=U.translations)&&void 0!==N?N:[],setValues:e=>L("translations",e),idField:"language",canDeleteItem:e=>!e.is_default,allItems:z.slice().sort((e,a)=>e.name.localeCompare(a.name)).map(e=>({language:e.id,is_default:!1})),getItemLabel:e=>{let a=z.find(a=>a.id===e.language),n=a?a.name:e.language;return"".concat(n).concat(e.is_default?" (Default)":"")},createNewValue:e=>R(e.value),onRowClick:I,selectOnAdd:!0,draggable:!0,baseTestId:"language"}),(0,i.jsx)(d.w8,{name:"auto_detect_language",id:"auto_detect_language",label:"Auto detect language",variant:"stacked"})]}):(0,i.jsx)(t.wpx,{icon:(0,i.jsx)(t.mrv,{}),iconPosition:"end",onClick:()=>I(U.translations[0]),"data-testid":"edit-experience-btn",children:"Edit experience text"}),(0,i.jsx)(t.izJ,{}),(0,i.jsx)(t.X6q,{fontSize:"md",fontWeight:"semibold",children:"Properties"}),(0,i.jsx)(F.Z,{label:"Associated properties",addButtonLabel:"Add property",idField:"id",nameField:"name",allItems:J.map(e=>({id:e.id,name:e.name})),values:null!==(T=U.properties)&&void 0!==T?T:[],setValues:e=>L("properties",e),draggable:!0,maxHeight:100,baseTestId:"property"}),(0,i.jsx)(t.izJ,{}),(0,i.jsx)(d.w8,{name:"auto_subdomain_cookie_deletion",id:"auto_subdomain_cookie_deletion",label:"Automatically delete subdomain cookies",variant:"stacked",tooltip:"If enabled, automatically deletes cookies set on subdomains in addition to main domain where appropriate. Recommended to enable for full consent compliance."})]})}},16277:function(e,a,n){n.d(a,{f:function(){return m}});var i=n(24246),t=n(77181),l=n(34090),o=n(56141),r=n.n(o),s=n(27378),d=n(40324),_=n(87361),c=n(57899),u=n(90980),F=n(60325),p=n(16194),b=n(28120);let m=e=>{let{languageName:a}=e;return(0,i.jsx)(_.Z,{text:"This is a default translation provided by Fides. If you've modified the default English language text, these translations will not match, so verify any changes with a native ".concat(a," speaker before using."),"data-testid":"oob-translation-notice"})};a.Z=e=>{var a,n,o,_,g,v,h;let C,{translation:f,translationsEnabled:S,isOOB:y,onReturnToMainForm:x}=e,{values:A,setFieldValue:j,errors:k,touched:N,setTouched:T}=(0,l.u6)(),M=(0,s.useMemo)(()=>{let{name:e,...a}=f;return a},[f]),E=!!M.title&&!y,I=(0,F.y3)(A.component),R=A.translations.findIndex(e=>e.language===f.language),O=!r()(A.translations[R],M),{onOpen:U,isOpen:L,onClose:w}=(0,t.qY0)(),{onOpen:B,isOpen:P,onClose:q}=(0,t.qY0)(),D=()=>{O||y?U():x()},G=e=>{let a=A.translations.map((a,n)=>({...a,is_default:n===e}));a.unshift(a.splice(e,1)[0]),j("translations",a),x()},V=(0,i.jsxs)("div",{className:"flex justify-between border-t border-[#DEE5EE] p-4",children:[(0,i.jsx)(t.wpx,{onClick:D,"data-testid":"cancel-btn",children:"Cancel"}),(0,i.jsx)(t.wpx,{onClick:()=>{A.translations[R].is_default&&!M.is_default?B():x()},type:"primary","data-testid":"save-btn",disabled:!O&&!y||!!k.translations,children:E?"Save":"Add translation"})]});return C=S?E?"You have unsaved changes to this translation. Discard changes?":"This translation has not been added to your experience. Discard translation?":"You have unsaved changes to this experience text. Discard changes?",(0,i.jsxs)(p.RN,{buttonPanel:V,children:[(0,i.jsx)(u.R,{onClick:D,mt:4}),(0,i.jsx)(c.Z,{isOpen:L,onClose:w,title:S?"Translation not saved":"Text not saved",message:(0,i.jsx)(t.xvT,{children:C}),confirmButtonText:"Discard",handleConfirm:()=>{let e=A.translations.slice();E?e[R]={...M,title:M.title,description:M.description}:e.splice(R,1),j("translations",e);let{translations:a,...n}=N;T({...n}),x()}}),(0,i.jsx)(t.X6q,{fontSize:"md",fontWeight:"semibold",children:S?"Edit ".concat(f.name," translation"):"Edit experience text"}),y?(0,i.jsx)(m,{languageName:f.name}):null,S&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(d.w8,{name:"translations.".concat(R,".is_default"),id:"translations.".concat(R,".is_default"),label:"Default language",isDisabled:!!M.is_default,variant:"stacked"}),(0,i.jsx)(c.Z,{isOpen:P,onClose:q,title:"Update default language",message:(0,i.jsx)(t.xvT,{children:"Are you sure you want to update the default language of this experience?"}),handleConfirm:()=>G(R)})]}),(0,i.jsx)(d.j0,{name:"translations.".concat(R,".title"),id:"translations.".concat(R,".title"),label:"Title",isRequired:!0,variant:"stacked"}),(0,i.jsx)(d.Ks,{name:"translations.".concat(R,".description"),id:"translations.".concat(R,".description"),label:"Description",isRequired:!0,variant:"stacked"}),(A.component===b.re.BANNER_AND_MODAL||A.component===b.re.TCF_OVERLAY)&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(d.j0,{name:"translations.".concat(R,".banner_title"),id:"translations.".concat(R,".banner_title"),label:"Banner title (optional)",tooltip:"A separate title for the banner (defaults to main title)",variant:"stacked"}),(0,i.jsx)(d.Ks,{name:"translations.".concat(R,".banner_description"),id:"translations.".concat(R,".banner_description"),label:"Banner description (optional)",tooltip:"A separate description for the banner (defaults to main description)",variant:"stacked"})]}),A.component===b.re.TCF_OVERLAY&&(0,i.jsx)(d.j0,{name:"translations.".concat(R,".purpose_header"),id:"translations.".concat(R,".purpose_header"),label:"Purpose header (optional)",tooltip:"Appears above the Purpose list section of the TCF banner",variant:"stacked"}),(0,i.jsx)(d.j0,{name:"translations.".concat(R,".accept_button_label"),id:"translations.".concat(R,".accept_button_label"),label:'"Accept" button label',isRequired:!0,variant:"stacked"}),(0,i.jsx)(d.j0,{name:"translations.".concat(R,".reject_button_label"),id:"translations.".concat(R,".reject_button_label"),label:'"Reject" button label',isRequired:!0,variant:"stacked"}),(null===(a=I.privacy_preferences_link_label)||void 0===a?void 0:a.included)&&(0,i.jsx)(d.j0,{name:"translations.".concat(R,".privacy_preferences_link_label"),id:"translations.".concat(R,".privacy_preferences_link_label"),label:'"Manage privacy preferences" button label',variant:"stacked",isRequired:null===(n=I.privacy_preferences_link_label)||void 0===n?void 0:n.required}),(null===(o=I.save_button_label)||void 0===o?void 0:o.included)&&(0,i.jsx)(d.j0,{name:"translations.".concat(R,".save_button_label"),id:"translations.".concat(R,".save_button_label"),label:'"Save" button label',variant:"stacked",isRequired:I.save_button_label.required}),(null===(_=I.acknowledge_button_label)||void 0===_?void 0:_.included)&&(0,i.jsx)(d.j0,{name:"translations.".concat(R,".acknowledge_button_label"),id:"translations.".concat(R,".acknowledge_button_label"),label:'"Acknowledge" button label',variant:"stacked",isRequired:I.acknowledge_button_label.required}),(null===(g=I.privacy_policy_link_label)||void 0===g?void 0:g.included)&&(0,i.jsx)(d.j0,{name:"translations.".concat(R,".privacy_policy_link_label"),id:"translations.".concat(R,".privacy_policy_link_label"),label:"Privacy policy link label (optional)",variant:"stacked"}),(null===(v=I.privacy_policy_url)||void 0===v?void 0:v.included)&&(0,i.jsx)(d.j0,{name:"translations.".concat(R,".privacy_policy_url"),id:"translations.".concat(R,".privacy_policy_url"),label:"Privacy policy link URL (optional)",variant:"stacked"}),(null===(h=I.modal_link_label)||void 0===h?void 0:h.included)&&(0,i.jsx)(d.j0,{name:"translations.".concat(R,".modal_link_label"),id:"translations.".concat(R,".modal_link_label"),label:"Trigger link label (optional)",tooltip:"Include text here if you would like the Fides CMP to manage the copy of the button that is included on your site to open the CMP.",variant:"stacked"})]})}},60325:function(e,a,n){n.d(a,{DD:function(){return r},Go:function(){return s},TK:function(){return t},Uv:function(){return _},k1:function(){return l},y3:function(){return c}});var i=n(28120);let t=e=>{var a;return null!==(a=null==e?void 0:e.filter(e=>e.selected).map(e=>e.id))&&void 0!==a?a:[]},l=e=>{var a;return null!==(a=null==e?void 0:e.filter(e=>e.selected))&&void 0!==a?a:[]},o=[{language:i.eU.EN,is_default:!0,title:"Title",description:"Description",accept_button_label:"Accept",reject_button_label:"Reject",save_button_label:"Save",acknowledge_button_label:"OK",privacy_preferences_link_label:"Privacy Preferences"}],r={name:"",disabled:!1,dismissable:!0,allow_language_selection:!1,show_layer1_notices:!1,layer1_button_options:i.Of.OPT_IN_OPT_OUT,regions:[],translations:o,auto_detect_language:!0,auto_subdomain_cookie_deletion:!0},s=(e,a)=>{let n=a.find(a=>a.id===e.language);return n?n.name:e.language},d=e=>{var a,n,i,t,l,o,r,s,d;let{language:_,is_default:c,accept_button_label:u,reject_button_label:F}=e;return{language:_,is_default:c,accept_button_label:u,reject_button_label:F,title:e.title,description:e.description,acknowledge_button_label:null!==(a=e.acknowledge_button_label)&&void 0!==a?a:void 0,banner_title:null!==(n=e.banner_title)&&void 0!==n?n:void 0,banner_description:null!==(i=e.banner_description)&&void 0!==i?i:void 0,purpose_header:null!==(t=e.purpose_header)&&void 0!==t?t:void 0,privacy_policy_link_label:null!==(l=e.privacy_policy_link_label)&&void 0!==l?l:void 0,privacy_policy_url:null!==(o=e.privacy_policy_url)&&void 0!==o?o:void 0,privacy_preferences_link_label:null!==(r=e.privacy_preferences_link_label)&&void 0!==r?r:void 0,save_button_label:null!==(s=e.save_button_label)&&void 0!==s?s:void 0,modal_link_label:null!==(d=e.modal_link_label)&&void 0!==d?d:void 0}},_=e=>{let{created_at:a,updated_at:n,privacy_notices:i,origin:t,id:l,...o}=e;return{...o,privacy_notice_ids:i?i.map(e=>e.id):[],translations:e.translations?e.translations.map(e=>d(e)):[]}},c=e=>e===i.re.PRIVACY_CENTER?{title:{included:!0,required:!0},description:{included:!0,required:!0},save_button_label:{included:!0,required:!0},accept_button_label:{included:!0,required:!0},reject_button_label:{included:!0,required:!0},privacy_policy_link_label:{included:!0},privacy_policy_url:{included:!0},modal_link_label:{included:!0}}:e===i.re.MODAL?{title:{included:!0,required:!0},description:{included:!0,required:!0},accept_button_label:{included:!0,required:!0},reject_button_label:{included:!0,required:!0},save_button_label:{included:!0,required:!0},acknowledge_button_label:{included:!0,required:!0},privacy_policy_link_label:{included:!0},privacy_policy_url:{included:!0},privacy_preferences_link_label:{included:!0},modal_link_label:{included:!0}}:e===i.re.BANNER_AND_MODAL?{title:{included:!0,required:!0},banner_title:{included:!0},description:{included:!0,required:!0},banner_description:{included:!0},accept_button_label:{included:!0,required:!0},reject_button_label:{included:!0,required:!0},save_button_label:{included:!0,required:!0},acknowledge_button_label:{included:!0,required:!0},privacy_policy_link_label:{included:!0},privacy_policy_url:{included:!0},privacy_preferences_link_label:{included:!0,required:!0},modal_link_label:{included:!0}}:e===i.re.TCF_OVERLAY?{title:{included:!0,required:!0},banner_title:{included:!0},description:{included:!0,required:!0},banner_description:{included:!0},purpose_header:{included:!0},accept_button_label:{included:!0,required:!0},reject_button_label:{included:!0,required:!0},save_button_label:{included:!0,required:!0},acknowledge_button_label:{included:!0,required:!0},privacy_policy_link_label:{included:!0},privacy_policy_url:{included:!0},privacy_preferences_link_label:{included:!0,required:!0},modal_link_label:{included:!0}}:{title:{included:!0,required:!0},description:{included:!0,required:!0},accept_button_label:{included:!0,required:!0},reject_button_label:{included:!0,required:!0},save_button_label:{included:!0,required:!0},acknowledge_button_label:{included:!0,required:!0},privacy_policy_link_label:{included:!0},privacy_policy_url:{included:!0},privacy_preferences_link_label:{included:!0,required:!0},modal_link_label:{included:!0}}}}]);
|
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4121],{7617:function(e,s,t){t.d(s,{q:function(){return a}});var n=t(24246),i=t(77181);let a=e=>{let{label:s,isDisabled:t,...a}=e;return(0,n.jsx)(i.OK9,{"data-testid":"tab-".concat(s),_selected:{fontWeight:"600",color:"complimentary.500",borderColor:"complimentary.500"},fontSize:a.fontSize,fontWeight:"500",color:"gray.500",isDisabled:t||!1,children:s})};s.Z=e=>{let{data:s,border:t="partial",...l}=e;return(0,n.jsxs)(i.mQc,{colorScheme:"complimentary",...l,children:[(0,n.jsx)(i.tdY,{width:"partial"===t?"max-content":void 0,children:s.map(e=>(0,n.jsx)(a,{label:e.label,isDisabled:e.isDisabled,fontSize:l.fontSize},e.label))}),(0,n.jsx)(i.nPR,{children:s.map(e=>(0,n.jsx)(i.x45,{px:0,"data-testid":"tab-panel-".concat(e.label),children:e.content},e.label))})]})}},58452:function(e,s,t){var n=t(24246),i=t(77181);s.Z=e=>{let{isOpen:s,onClose:t,onConfirm:a,onCancel:l,title:r,message:d,cancelButtonText:o,continueButtonText:c,isLoading:u,returnFocusOnClose:p,isCentered:h,testId:m="confirmation-modal",icon:x}=e;return(0,n.jsxs)(i.u_l,{isOpen:s,onClose:t,size:"lg",returnFocusOnClose:null==p||p,isCentered:h,children:[(0,n.jsx)(i.ZAr,{}),(0,n.jsxs)(i.hzk,{textAlign:"center",p:6,"data-testid":m,children:[x?(0,n.jsx)(i.M5Y,{mb:2,children:x}):null,r?(0,n.jsx)(i.xBx,{fontWeight:"medium",pb:0,children:r}):null,d?(0,n.jsx)(i.fef,{children:d}):null,(0,n.jsx)(i.mzw,{children:(0,n.jsxs)(i.MIq,{columns:2,width:"100%",children:[(0,n.jsx)(i.wpx,{onClick:()=>{l&&l(),t()},size:"large",className:"mr-3","data-testid":"cancel-btn",disabled:u,children:o||"Cancel"}),(0,n.jsx)(i.wpx,{type:"primary",size:"large",onClick:a,"data-testid":"continue-btn",loading:u,children:c||"Continue"})]})})]})]})}},7426:function(e,s,t){t.d(s,{D2:function(){return p},L:function(){return r},U7:function(){return o},Yh:function(){return m},ak:function(){return d},iR:function(){return g},km:function(){return l},tB:function(){return a}});var n=t(3228);let i=t(78780).u.injectEndpoints({endpoints:e=>({getConfigurationSettings:e.query({query:e=>{let{api_set:s}=e;return{url:"/config",method:"GET",params:{api_set:s}}},providesTags:["Configuration Settings"]}),putConfigurationSettings:e.mutation({query:e=>({url:"/config",method:"PUT",body:e}),invalidatesTags:["Configuration Settings"]}),patchConfigurationSettings:e.mutation({query:e=>({url:"/config",method:"PATCH",body:e}),invalidatesTags:["Configuration Settings","Privacy Notices"]})})}),{useGetConfigurationSettingsQuery:a,usePutConfigurationSettingsMutation:l,usePatchConfigurationSettingsMutation:r}=i,d=(0,n.P1)([e=>e,i.endpoints.getConfigurationSettings.select({api_set:!0}),i.endpoints.getConfigurationSettings.select({api_set:!1})],(e,s,t)=>{var n,i,a;let{data:l}=s,{data:r}=t;return{configSet:{cors_origins:(null==r?void 0:null===(n=r.security)||void 0===n?void 0:n.cors_origins)||[],cors_origin_regex:null==r?void 0:null===(i=r.security)||void 0===i?void 0:i.cors_origin_regex},apiSet:{cors_origins:(null==l?void 0:null===(a=l.security)||void 0===a?void 0:a.cors_origins)||[]}}}),o=()=>(0,n.P1)([e=>e,i.endpoints.getConfigurationSettings.select({api_set:!0})],(e,s)=>{let{data:t}=s;return t}),c={enabled:!1,cmp_api_required:!1},u=(e,s,t,n)=>{let i=t&&t[e],a=n&&n[e];return i&&a?{...n[e],...t[e]}:a?n[e]:i?{...t[e]}:s},p=(0,n.P1)([e=>e,i.endpoints.getConfigurationSettings.select({api_set:!0}),i.endpoints.getConfigurationSettings.select({api_set:!1})],(e,s,t)=>{let{data:n}=s,{data:i}=t;return u("gpp",c,n,i)}),h={tcf_publisher_country_code:null},m=(0,n.P1)([e=>e,i.endpoints.getConfigurationSettings.select({api_set:!0}),i.endpoints.getConfigurationSettings.select({api_set:!1})],(e,s,t)=>{let{data:n}=s,{data:i}=t;return u("plus_consent_settings",h,n,i)}),x={allow_username_password_login:!1},g=(0,n.P1)([e=>e,i.endpoints.getConfigurationSettings.select({api_set:!0}),i.endpoints.getConfigurationSettings.select({api_set:!1})],(e,s,t)=>{let{data:n}=s,{data:i}=t;return u("plus_security_settings",x,n,i)})},44121:function(e,s,t){t.d(s,{Z:function(){return ee}});var n=t(24246),i=t(77181),a=t(91437),l=()=>(0,n.jsxs)(i.xuv,{children:[(0,n.jsx)(i.xuv,{pb:4,fontSize:"18px",fontWeight:"semibold",children:"Role Description"}),(0,n.jsx)(i.gCW,{spacing:4,children:a.K.map(e=>(0,n.jsxs)(i.xuv,{width:"100%",padding:4,borderRadius:"md",backgroundColor:"gray.75",fontSize:"14px",children:[(0,n.jsx)(i.xuv,{fontWeight:"semibold",children:e.label}),(0,n.jsx)(i.xuv,{color:"gray.700",children:e.description})]},e.roleKey))})]}),r=t(16134),d=t(7617),o=t(28120),c=t(19904),u=t(34090),p=t(86677),h=t(27378),m=t(812),x=t(58452),g=t(77830),j=t(91613),f=t(46628),w=t(86780),b=t(1315),y=t(95492),_=t(65497);let v=e=>{let{assignedSystems:s,onAssignedSystemChange:t}=e,a=(0,r.C)(_.Ux);if((0,_.d6)(a,{skip:!a}),0===s.length)return null;let l=e=>{t(s.filter(s=>s.fides_key!==e.fides_key))};return(0,n.jsxs)(i.iA_,{size:"sm","data-testid":"assign-systems-delete-table",children:[(0,n.jsx)(i.hrZ,{children:(0,n.jsxs)(i.Tr,{children:[(0,n.jsx)(i.Th,{children:"System"}),(0,n.jsx)(i.Th,{})]})}),(0,n.jsx)(i.p3B,{children:s.map(e=>(0,n.jsxs)(i.Tr,{_hover:{bg:"gray.50"},"data-testid":"row-".concat(e.fides_key),children:[(0,n.jsx)(i.Td,{children:e.name}),(0,n.jsx)(i.Td,{textAlign:"end",children:(0,n.jsx)(i.wpx,{"aria-label":"Unassign system from user",icon:(0,n.jsx)(y.l,{}),onClick:()=>l(e),"data-testid":"unassign-btn"})})]},e.fides_key))})]})};var C=e=>{let{allSystems:s,assignedSystems:t,onChange:a}=e,l=e=>{t.find(s=>s.fides_key===e.fides_key)?a(t.filter(s=>s.fides_key!==e.fides_key)):a([...t,e])};return(0,n.jsx)(i.xuv,{overflowY:"auto",maxHeight:"300px",children:(0,n.jsxs)(i.iA_,{size:"sm","data-testid":"assign-systems-table",maxHeight:"50vh",overflowY:"scroll",children:[(0,n.jsx)(i.hrZ,{position:"sticky",top:0,background:"white",zIndex:1,children:(0,n.jsxs)(i.Tr,{children:[(0,n.jsx)(i.Th,{children:"System"}),(0,n.jsx)(i.Th,{children:"Assign"})]})}),(0,n.jsx)(i.p3B,{children:s.map(e=>{let s=!!t.find(s=>s.fides_key===e.fides_key);return(0,n.jsxs)(i.Tr,{_hover:{bg:"gray.50"},"data-testid":"row-".concat(e.fides_key),children:[(0,n.jsx)(i.Td,{children:e.name}),(0,n.jsx)(i.Td,{children:(0,n.jsx)(i.rAg,{checked:s,onChange:()=>l(e),"data-testid":"assign-switch"})})]},e.fides_key)})})]})})};let S=(e,s)=>{var t,n;return(null===(t=e.name)||void 0===t?void 0:t.toLocaleLowerCase().includes(s.toLocaleLowerCase()))||(null===(n=e.description)||void 0===n?void 0:n.toLocaleLowerCase().includes(s.toLocaleLowerCase()))};var k=e=>{let{isOpen:s,onClose:t,assignedSystems:a,onAssignedSystemChange:l}=e,{data:r}=(0,b.K3)(),[d,o]=(0,h.useState)(""),[c,u]=(0,h.useState)(a),p=async()=>{l(c),t()},m=!r||0===r.length,x=(0,h.useMemo)(()=>r?r.filter(e=>S(e,d)):[],[r,d]),g=(0,h.useMemo)(()=>{let e=new Set(c.map(e=>e.fides_key));return x.every(s=>e.has(s.fides_key))},[x,c]);return(0,n.jsxs)(i.u_l,{isOpen:s,onClose:t,size:"2xl",children:[(0,n.jsx)(i.ZAr,{}),(0,n.jsxs)(i.hzk,{p:8,"data-testid":"confirmation-modal",children:[(0,n.jsxs)(i.xBx,{fontWeight:"medium",display:"flex",justifyContent:"space-between",alignItems:"center",children:[(0,n.jsx)(i.xvT,{children:"Assign systems"}),(0,n.jsxs)(i.j8w,{color:"success",children:["Assigned to ",a.length," systems"]})]}),(0,n.jsx)(i.fef,{"data-testid":"assign-systems-modal-body",children:m?(0,n.jsx)(i.xvT,{children:"No systems found"}):(0,n.jsxs)(i.Kqy,{spacing:4,children:[(0,n.jsxs)(i.kCb,{justifyContent:"space-between",children:[(0,n.jsx)(i.xvT,{fontSize:"sm",flexGrow:1,fontWeight:"medium",children:"Assign systems in your organization to this user"}),(0,n.jsx)(i.xuv,{children:(0,n.jsxs)(i.NIc,{display:"flex",alignItems:"center",children:[(0,n.jsx)(i.lXp,{fontSize:"sm",htmlFor:"assign-all-systems",mb:"0",children:"Assign all systems"}),(0,n.jsx)(i.rAg,{size:"small",id:"assign-all-systems",checked:g,onChange:e=>{e&&r?u(x):u(r?r.filter(e=>!x.includes(e)):[])},"data-testid":"assign-all-systems-toggle"})]})})]}),(0,n.jsx)(w.Z,{search:d,onChange:o,placeholder:"Search for systems","data-testid":"system-search",withIcon:!0}),(0,n.jsx)(C,{allSystems:x,assignedSystems:c,onChange:u})]})}),(0,n.jsx)(i.mzw,{justifyContent:"flex-start",children:(0,n.jsxs)("div",{children:[(0,n.jsx)(i.wpx,{onClick:t,className:"mr-2","data-testid":"cancel-btn",children:"Cancel"}),m?null:(0,n.jsx)(i.wpx,{type:"primary",onClick:p,"data-testid":"confirm-btn",children:"Confirm"})]})})]})]})},P=e=>{let{label:s,roleKey:t,isSelected:a,isDisabled:l,assignedSystems:r,onAssignedSystemChange:d}=e,{setFieldValue:c}=(0,u.u6)(),p=(0,i.qY0)(),h=l?"You do not have sufficient permissions to assign this role.":void 0;return a?(0,n.jsxs)(i.Kqy,{borderRadius:"md",border:"1px solid",borderColor:"gray.200",p:4,backgroundColor:"gray.50","aria-selected":"true",spacing:4,"data-testid":"selected",children:[(0,n.jsxs)(i.kCb,{alignItems:"center",justifyContent:"space-between",children:[(0,n.jsx)(i.xvT,{fontSize:"md",fontWeight:"semibold",children:s}),(0,n.jsx)(i.StI,{})]}),t!==o.A7.APPROVER?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(i.kCb,{alignItems:"center",children:[(0,n.jsx)(i.xvT,{fontSize:"sm",fontWeight:"semibold",mr:1,children:"Assigned systems"}),(0,n.jsx)(j.Z,{label:"Assigned systems refer to those systems that have been specifically allocated to a user for management purposes. Users assigned to a system possess full edit permissions and are listed as the Data Steward for the respective system."})]}),(0,n.jsx)(i.wpx,{disabled:l,title:h,type:"primary",size:"small",onClick:p.onOpen,"data-testid":"assign-systems-btn",children:"Assign systems +"}),(0,n.jsx)(v,{assignedSystems:r,onAssignedSystemChange:d}),p.isOpen?(0,n.jsx)(k,{isOpen:p.isOpen,onClose:p.onClose,assignedSystems:r,onAssignedSystemChange:d}):null]}):null]}):(0,n.jsx)(i.wpx,{onClick:()=>{c("roles",[t])},"data-testid":"role-option-".concat(s),title:h,disabled:l,children:s})};let T={roles:[]};var A=()=>{var e;let s=(0,i.pmc)(),t=(0,p.useRouter)(),l=(0,r.C)(_.Ux);(0,_.d6)(l,{skip:!l});let{isOpen:d,onOpen:w,onClose:b}=(0,i.qY0)(),y=(0,r.C)(_.R$),[v,C]=(0,h.useState)(y),[S]=(0,_.G$)();(0,h.useEffect)(()=>{C(y)},[y]);let{data:k,isLoading:A}=(0,_.gU)(null!=l?l:"",{skip:!l}),[R]=(0,_.lD)(),z=async e=>{if(d&&b(),!l)return;let t=e.roles.includes(o.A7.APPROVER),n=await R({user_id:l,payload:{roles:e.roles}});if((0,m.D4)(n)){s((0,f.Vo)((0,m.e$)(n.error)));return}if(!t){let e=v.map(e=>e.fides_key),t=await S({userId:l,fidesKeys:e});if((0,m.D4)(t)){s((0,f.Vo)((0,m.e$)(t.error)));return}}s((0,f.t5)("Permissions updated"))},q=async e=>{l&&(v.length>0&&e.roles.includes(o.A7.APPROVER)?w():await z(e))},E=(0,c.Tg)([o.Sh.USER_PERMISSION_ASSIGN_OWNERS]);if(!l)return null;if(A)return(0,n.jsx)(i.$jN,{});if(!E&&(null==k?void 0:null===(e=k.roles)||void 0===e?void 0:e.includes(o.A7.OWNER)))return(0,n.jsx)(i.xvT,{"data-testid":"insufficient-access",children:"You do not have sufficient access to change this user's permissions."});let I=(null==k?void 0:k.roles)?{roles:k.roles}:T;return(0,n.jsx)(u.J9,{onSubmit:q,initialValues:I,enableReinitialize:!0,children:e=>{let{values:s,isSubmitting:l,dirty:r}=e;return(0,n.jsxs)(u.l0,{children:[(0,n.jsxs)(i.Kqy,{spacing:7,children:[(0,n.jsxs)(i.Kqy,{spacing:3,"data-testid":"role-options",children:[(0,n.jsxs)(i.kCb,{alignItems:"center",children:[(0,n.jsx)(i.xvT,{fontSize:"sm",fontWeight:"semibold",mr:1,children:"User role"}),(0,n.jsx)(j.Z,{label:"A user's role in the organization determines what parts of the UI they can access and which functions are available to them."})]}),a.K.map(e=>{let t=s.roles.indexOf(e.roleKey)>=0;return(0,n.jsx)(P,{isSelected:t,isDisabled:e.roleKey===o.A7.OWNER&&!E,assignedSystems:v,onAssignedSystemChange:C,...e},e.roleKey)})]}),(0,n.jsxs)("div",{children:[(0,n.jsx)(i.wpx,{onClick:()=>t.push(g.e3),children:"Cancel"}),(0,n.jsx)(i.wpx,{type:"primary",htmlType:"submit",loading:l,disabled:!r&&v===y,"data-testid":"save-btn",children:"Save"})]})]}),(0,n.jsx)(x.Z,{isOpen:d,onClose:b,onConfirm:()=>z(s),title:"Change role to Approver",testId:"downgrade-to-approver-confirmation-modal",continueButtonText:"Yes",message:(0,n.jsx)(i.xvT,{children:"Switching to an approver role will remove all assigned systems. Do you wish to proceed?"})})]})}})},R=t(61038),z=t(55484),q=t(25980),E=t(40324),I=t(96006),O=t(7426);let{useGetEmailInviteStatusQuery:N}=t(78780).u.injectEndpoints({endpoints:e=>({getEmailInviteStatus:e.query({query:()=>({url:"/messaging/email-invite/status"}),providesTags:()=>["Email Invite Status"]})})});var Z=t(76174),U=t(91317),W=t(31883);let D=z.Ry().shape({password:I.a.label("Password"),passwordConfirmation:z.Z_().required().oneOf([z.iH("password")],"Passwords must match").label("Password confirmation")}),K={password:"",passwordConfirmation:""},B=e=>{let s=(0,i.qY0)(),t=(0,i.pmc)(),[n]=(0,_.ls)(),a=async i=>{let a=await n({id:e,new_password:i.password});(0,W.D4)(a)?t((0,f.Vo)((0,m.e$)(a.error))):(t((0,f.t5)("Successfully reset user's password. Please inform the user of their new password.")),s.onClose())};return{...s,handleResetPassword:a}};var Y=e=>{let{id:s}=e,{handleResetPassword:t,isOpen:a,onClose:l,onOpen:r}=B(s);return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(i.wpx,{onClick:r,"data-testid":"reset-password-btn",children:"Reset password"}),(0,n.jsxs)(i.u_l,{isCentered:!0,isOpen:a,onClose:l,children:[(0,n.jsx)(i.ZAr,{}),(0,n.jsx)(i.hzk,{children:(0,n.jsx)(u.J9,{initialValues:K,validationSchema:D,onSubmit:t,children:e=>{let{isSubmitting:s,dirty:t,isValid:a}=e;return(0,n.jsxs)(u.l0,{children:[(0,n.jsx)(i.xBx,{children:"Reset Password"}),(0,n.jsx)(i.olH,{}),(0,n.jsx)(i.fef,{children:(0,n.jsxs)(i.Kqy,{direction:"column",spacing:4,children:[(0,n.jsx)(i.xvT,{mb:2,children:"Choose a new password for this user."}),(0,n.jsx)(E.j0,{name:"password",label:"Password",placeholder:"********",type:"password",tooltip:"Password must contain at least 8 characters, 1 number, 1 capital letter, 1 lowercase letter, and at least 1 symbol.",autoComplete:"new-password"}),(0,n.jsx)(E.j0,{name:"passwordConfirmation",label:"Confirm Password",placeholder:"********",type:"password",tooltip:"Must match above password.",autoComplete:"confirm-password"})]})}),(0,n.jsx)(i.mzw,{children:(0,n.jsxs)("div",{className:"w-full gap-2",children:[(0,n.jsx)(i.wpx,{onClick:l,className:"w-1/2",children:"Cancel"}),(0,n.jsx)(i.wpx,{type:"primary",disabled:!t||!a,loading:s,htmlType:"submit",className:"w-1/2","data-testid":"submit-btn",children:"Change Password"})]})})]})}})})]})]})};let L=e=>{let s=(0,i.qY0)(),t=(0,i.pmc)(),[n,a]=(0,h.useState)(""),[l,r]=(0,h.useState)(""),[d,{isLoading:o}]=(0,_.ev)(),c=!!(e&&l&&n),u=async()=>{c&&d({id:e,old_password:n,new_password:l}).unwrap().then(()=>{t((0,f.t5)("Password updated")),s.onClose()})};return{...s,changePasswordValidation:c,handleChange:e=>{"oldPassword"===e.target.name?a(e.target.value):r(e.target.value)},handleChangePassword:u,isLoading:o,newPasswordValue:l,oldPasswordValue:n}};var V=e=>{let{id:s}=e,{changePasswordValidation:t,handleChange:a,handleChangePassword:l,isLoading:r,isOpen:d,newPasswordValue:o,oldPasswordValue:c,onClose:u,onOpen:p}=L(s);return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(i.wpx,{onClick:p,"data-testid":"update-password-btn",children:"Update password"}),(0,n.jsxs)(i.u_l,{isCentered:!0,isOpen:d,onClose:u,children:[(0,n.jsx)(i.ZAr,{}),(0,n.jsxs)(i.hzk,{children:[(0,n.jsx)(i.xBx,{children:"Update Password"}),(0,n.jsx)(i.olH,{}),(0,n.jsx)(i.fef,{pb:6,children:(0,n.jsxs)(i.Kqy,{direction:"column",spacing:"15px",children:[(0,n.jsx)(i.NIc,{children:(0,n.jsx)(i.IIB,{isRequired:!0,name:"oldPassword",onChange:a,placeholder:"Old Password",type:"password",value:c,"data-testid":"input-oldPassword"})}),(0,n.jsx)(i.NIc,{children:(0,n.jsx)(i.IIB,{isRequired:!0,name:"newPassword",onChange:a,placeholder:"New Password",type:"password",value:o,"data-testid":"input-newPassword"})})]})}),(0,n.jsxs)(i.mzw,{children:[(0,n.jsx)(i.wpx,{onClick:u,className:"mr-2 w-1/2",children:"Cancel"}),(0,n.jsx)(i.wpx,{type:"primary",disabled:!t,loading:r,onClick:l,htmlType:"submit",className:"mr-3 w-1/2","data-testid":"submit-btn",children:"Change Password"})]})]})]})]})},F=()=>{let e=(0,r.C)(_.Ux),s=(0,r.C)(U.dy),t=!!s&&s.id===e;return(0,n.jsx)(i.xuv,{children:e?(0,n.jsxs)(i.Ugi,{children:[t?(0,n.jsx)(V,{id:e}):null,(0,n.jsx)(c.ZP,{scopes:[o.Sh.USER_PASSWORD_RESET],children:(0,n.jsx)(Y,{id:e})})]}):null})};let M=(e,s,t,n)=>!e||e&&!s||e&&s&&!0===t&&!!n,$=(e,s,t)=>!!(e&&s&&t),H=(e,s,t,n,i,a)=>!!e&&!s&&M(t,n,i,a),G=(e,s,t,n)=>M(e,s,t,n),J={username:"",first_name:"",email_address:"",last_name:"",password:"",password_login_enabled:!1},Q=(e,s,t,n,i)=>z.Ry().shape({username:z.Z_().required().label("Username"),email_address:z.Z_().email().required().label("Email address"),first_name:z.Z_().label("First name"),last_name:z.Z_().label("Last name"),password:z.Z_().when(["password_login_enabled"],{is:a=>H(e,s,t,n,i,a),then:()=>I.a.label("Password"),otherwise:()=>z.Z_().optional().label("Password")}),password_login_enabled:z.O7().label("Allow password login")});var X=e=>{let{onSubmit:s,initialValues:t,canEditNames:a}=e,l=(0,p.useRouter)(),d=(0,i.pmc)(),o=(0,r.T)(),c=(0,i.qY0)(),{data:h}=N(),{data:x}=(0,Z.qv)();(0,O.tB)({api_set:!1});let j=(0,r.C)(_.ZC),w=(0,r.C)(O.iR),{plus:b}=(0,q.hz)(),v=(null==h?void 0:h.enabled)||!1,C=(null==w?void 0:w.allow_username_password_login)||!1,S=!j,k=!S&&!a,P=x&&x.length>0||!1,T=$(b,P,C),A=null!=t?t:J;j&&"password_login_enabled"in j&&(A={...A,password_login_enabled:!!j.password_login_enabled});let z=Q(S,v,b,P,C),I=async e=>{let t=H(S,v,b,P,C,e.password_login_enabled),n={username:e.username,email_address:e.email_address,first_name:e.first_name,last_name:e.last_name};T&&(n.password_login_enabled=e.password_login_enabled),t&&e.password&&(n.password=e.password);let i=await s(n);if((0,m.D4)(i)){d((0,f.Vo)((0,m.e$)(i.error)));return}d((0,f.t5)("".concat(S?"User created. By default, new users are set to the Viewer role. To change the role, please go to the Permissions tab.":"User updated."))),(null==i?void 0:i.data)&&o((0,_.Vv)(i.data.id))};return(0,n.jsx)(u.J9,{onSubmit:I,initialValues:A,validationSchema:z,"data-testid":"user-form",children:e=>{let{dirty:s,isSubmitting:t,isValid:a,values:r}=e;return(0,n.jsx)(u.l0,{children:(0,n.jsxs)(i.Kqy,{maxW:["xs","xs","100%"],width:"100%",spacing:7,children:[(0,n.jsxs)(i.Kqy,{spacing:6,maxWidth:"55%",children:[(0,n.jsxs)(i.kCb,{children:[(0,n.jsxs)(i.xvT,{display:"flex",alignItems:"center",fontSize:"sm",fontWeight:"semibold",children:["Profile"," ",(null==j?void 0:j.disabled)&&(0,n.jsx)(i.j8w,{color:"success",className:"ml-2","data-testid":"invite-sent-badge",children:"Invite sent"})]}),(0,n.jsx)(i.xuv,{marginLeft:"auto",children:(0,n.jsxs)(i.Ugi,{children:[G(b,P,C||!1,r.password_login_enabled)&&(0,n.jsx)(F,{"data-testid":"password-management"}),S?null:(0,n.jsxs)(i.xuv,{children:[(0,n.jsx)(i.wpx,{"aria-label":"delete",icon:(0,n.jsx)(y.l,{}),onClick:c.onOpen,"data-testid":"delete-user-btn"}),(0,n.jsx)(R.Z,{user:j,...c})]})]})})]}),(0,n.jsx)(E.j0,{name:"username",label:"Username",variant:"block",placeholder:"Enter new username",disabled:!S,isRequired:!0,"data-testid":"input-username"}),(0,n.jsx)(E.j0,{name:"email_address",label:"Email address",variant:"block",placeholder:"Enter email of user",isRequired:!0,"data-testid":"input-email-address"}),(0,n.jsx)(E.j0,{name:"first_name",label:"First name",variant:"block",placeholder:"Enter first name of user",disabled:k,"data-testid":"input-first-name"}),(0,n.jsx)(E.j0,{name:"last_name",label:"Last name",variant:"block",placeholder:"Enter last name of user",disabled:k,"data-testid":"input-last-name"}),T&&(0,n.jsx)(E.w8,{name:"password_login_enabled",label:"Allow password login",tooltip:"When enabled, user can log in with username and password. When disabled, user must use SSO.",variant:"stacked",isDisabled:!S,"data-testid":"toggle-allow-password-login",size:"default"}),H(S,v,b,P,C,r.password_login_enabled)&&(0,n.jsx)(E.j0,{name:"password",label:"Password",variant:"block",placeholder:"********",type:"password",tooltip:"Password must contain at least 8 characters, 1 number, 1 capital letter, 1 lowercase letter, and at least 1 symbol.",isRequired:!0,"data-testid":"input-password"})]}),(0,n.jsxs)("div",{children:[(0,n.jsx)(i.wpx,{onClick:()=>l.push(g.e3),className:"mr-3","data-testid":"cancel-btn",children:"Cancel"}),(0,n.jsx)(i.wpx,{htmlType:"submit",type:"primary",disabled:!s||!a,loading:t,"data-testid":"save-user-btn",children:"Save"})]})]})})}})},ee=e=>{let{onSubmit:s,initialValues:t,...a}=e,u=(0,r.C)(_.Ux);(0,_.Fk)(u,{skip:!u});let p=(0,c.Tg)([o.Sh.USER_PERMISSION_UPDATE]),h=[{label:"Profile",content:(0,n.jsx)(X,{onSubmit:s,initialValues:t,...a})},{label:"Permissions",content:(0,n.jsxs)(i.kCb,{gap:"97px",children:[(0,n.jsx)(i.xuv,{w:{base:"100%",md:"50%",xl:"50%"},children:(0,n.jsx)(A,{})}),(0,n.jsx)(i.xuv,{position:"absolute",top:"96px",right:6,height:"calc(100% + 100px)",overflowY:"scroll",padding:6,w:"35%",borderLeftWidth:"1px",children:(0,n.jsx)(l,{})})]}),isDisabled:!u||!p}];return(0,n.jsx)(d.Z,{data:h})}},31883:function(e,s,t){t.d(s,{Bw:function(){return n.Bw},D4:function(){return n.D4}});var n=t(19043)}}]);
|