ethyca-fides 2.65.3b1__py2.py3-none-any.whl → 2.65.3b3__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.
Potentially problematic release.
This version of ethyca-fides might be problematic. Click here for more details.
- {ethyca_fides-2.65.3b1.dist-info → ethyca_fides-2.65.3b3.dist-info}/METADATA +1 -1
- {ethyca_fides-2.65.3b1.dist-info → ethyca_fides-2.65.3b3.dist-info}/RECORD +155 -155
- fides/_version.py +3 -3
- fides/api/models/fides_user.py +11 -7
- fides/api/models/fides_user_permissions.py +6 -10
- fides/api/service/privacy_request/request_runner_service.py +1 -3
- fides/api/task/manual/manual_task_graph_task.py +48 -7
- fides/api/task/manual/manual_task_utils.py +6 -35
- fides/ui-build/static/admin/404.html +1 -1
- fides/ui-build/static/admin/_next/static/{779-bFyN2mfyVfR0Jqdxw → UZLS8hRH8R50kojeaBV1Y}/_buildManifest.js +1 -1
- fides/ui-build/static/admin/_next/static/chunks/{1817-e2c599fb2c47dbc4.js → 1817-34bd629bf34328ec.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/203-9e86242bde459a43.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/{3450-ebcffdd4fb437a2e.js → 3450-b7af9fec12e66f7f.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/{3855-a0783ba28c644d09.js → 3855-b914c1a3124f44ea.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/{3872-18e5da8bda649ddb.js → 3872-140c8bf8bdb5d511.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/{4121-23ac086c1aa6a43a.js → 4121-91ab0fdde5204f41.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/{4230-c4c596fb5534e1b1.js → 4230-d91fc4db148387bc.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/{431-24380873201c3e1b.js → 431-2a9adafa2689a0f4.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/{4608-0cd97892fd0b0e41.js → 4608-52674906c7d6a22e.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/{5309-c8b5165efcc5469f.js → 5309-90d555ba13edaf08.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/{6084-5bfa390a4c8fad43.js → 6084-1ae40620e79e0cf9.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/{6662-79eee0bf18775b40.js → 6662-5fa8a1b20b0d3e3c.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/{6780-8b5772a3a2ef1ca6.js → 6780-4db9fe1ee8860870.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/{6853-7a089a9fad286bb8.js → 6853-02be83ef65e8853b.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/{6882-5a251351689ea74b.js → 6882-6f755ee046c9d70a.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/{6954-3a7b166c8f3b66b4.js → 6954-b242eebbe7c52e5a.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/7476-c4ccb87fb8dbe2c0.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/{787-cb0154eaf6114c7e.js → 787-a1674f4d14753677.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/{79-f08e91084d10d6dc.js → 79-056947276803332e.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/{9046-d4c806aa81ab0bad.js → 9046-f5b180534b2637c3.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/{9226-f4e70e6f9619e9a9.js → 9226-ce9c651c6ed829dd.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/{9951-5e744e8addb6e090.js → 9951-e572cda021343eb1.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/{_app-9a878b14373eec2e.js → _app-ad79168425b75dc6.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/{add-systems-e5ef5be6566f9432.js → add-systems-f068a00278624bc9.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/consent/{privacy-experience-5f2d060952814353.js → privacy-experience-799d2a4a9dd68eea.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/consent/{privacy-notices-232e9ef135b838cf.js → privacy-notices-55d0f8505a7f8692.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/consent/{reporting-5fcacc8e4baf3d03.js → reporting-1103b69bcd90ed6c.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/{data-catalog-29cde3b7d27b22cf.js → data-catalog-6d6584fd49026ec2.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/action-center/[monitorId]/[systemId]-caf0c55830fc91b3.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/action-center/[monitorId]-5c0b1f15873c90fa.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/action-center-a81165ca06b7c404.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/{activity-f79ec067d906e67f.js → activity-bf3627895c102ae0.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/dataset/{new-403dc361bffe644d.js → new-17caa948d13ac81c.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/{dataset-52506e743c73fc7d.js → dataset-06d5b6944e2de262.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/datastore-connection/{[id]-7d492050fc33a57a.js → [id]-a980e69a921a0dfb.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/datastore-connection/{new-6f68e65f01beb8af.js → new-d7160806386bc7e0.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/{index-e92db8bb8c719abc.js → index-7430cfb2a1bf1442.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/integrations/{[id]-c245f0b0fd7810c0.js → [id]-e039acfdefb0986e.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/privacy-requests/{[id]-61e32a7b8ef6569c.js → [id]-29643fbd5745ac0e.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/privacy-requests/configure/{messaging-1f57e4d5715dd5cf.js → messaging-3062ca1a95ede1a3.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/privacy-requests/configure/{storage-378db5585b89ab5e.js → storage-a67feed389719f52.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/privacy-requests-1b9c48484ea70264.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/reporting/{datamap-dc3afcf514d7219a.js → datamap-218f88a99e7f0c04.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/settings/consent/[configuration_id]/{[purpose_id]-aaa2d02b9be2acb1.js → [purpose_id]-738e9c5dd7a4d8f5.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/settings/{consent-bed42ecfab4896af.js → consent-d0c5a07b57b6adae.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/settings/{custom-fields-82882bc16052ae5b.js → custom-fields-7945aad419e1ba8b.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/settings/{locations-068724e9c574974d.js → locations-694ae08fdc73b92b.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/settings/{organization-f556688c5fb35f41.js → organization-26db0a2e4ffe2892.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/systems/configure/[id]/{test-datasets-7ce5dbabf7f1026b.js → test-datasets-ec7efe4e1f09ecb7.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/{systems-b5f68d37abaa8844.js → systems-8045ae1289ef8ebc.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/{taxonomy-103618fab50dfd0d.js → taxonomy-0d17e0de9adb27f8.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/user-management/profile/{[id]-564f87da93e398d0.js → [id]-fe32284ce419e921.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/{user-management-f552cb870f8a6a17.js → user-management-9c8200fc2f8b9346.js} +1 -1
- fides/ui-build/static/admin/_next/static/css/10994e916bc9a00a.css +1 -0
- fides/ui-build/static/admin/_next/static/css/304c6f148886a8d4.css +1 -0
- fides/ui-build/static/admin/_next/static/css/4383759407e86f7a.css +1 -0
- fides/ui-build/static/admin/_next/static/css/{81642473e38c67a5.css → 5bfb2473e5701527.css} +1 -1
- 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/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/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/poc/ant-components.html +1 -1
- fides/ui-build/static/admin/poc/form-experiments/AntForm.html +1 -1
- fides/ui-build/static/admin/poc/form-experiments/FormikAntFormItem.html +1 -1
- fides/ui-build/static/admin/poc/form-experiments/FormikControlled.html +1 -1
- fides/ui-build/static/admin/poc/form-experiments/FormikField.html +1 -1
- fides/ui-build/static/admin/poc/form-experiments/FormikSpreadField.html +1 -1
- fides/ui-build/static/admin/poc/forms.html +1 -1
- fides/ui-build/static/admin/poc/table-migration.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/alpha.html +1 -1
- fides/ui-build/static/admin/settings/about.html +1 -1
- fides/ui-build/static/admin/settings/consent/[configuration_id]/[purpose_id].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/ui-build/static/admin/_next/static/chunks/3988-839f18f04d5144f2.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/7476-d7071697bc665a4f.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/action-center/[monitorId]/[systemId]-3ae1ae3844a6e03a.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/action-center/[monitorId]-e8dc8320e826e91c.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/action-center-22fe027966edb092.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/privacy-requests-26a48fa6707708af.js +0 -1
- fides/ui-build/static/admin/_next/static/css/62867c995b516a24.css +0 -1
- fides/ui-build/static/admin/_next/static/css/92fc10cc7ed1aba3.css +0 -1
- fides/ui-build/static/admin/_next/static/css/eb46b504bb5d980d.css +0 -1
- {ethyca_fides-2.65.3b1.dist-info → ethyca_fides-2.65.3b3.dist-info}/WHEEL +0 -0
- {ethyca_fides-2.65.3b1.dist-info → ethyca_fides-2.65.3b3.dist-info}/entry_points.txt +0 -0
- {ethyca_fides-2.65.3b1.dist-info → ethyca_fides-2.65.3b3.dist-info}/licenses/LICENSE +0 -0
- {ethyca_fides-2.65.3b1.dist-info → ethyca_fides-2.65.3b3.dist-info}/top_level.txt +0 -0
- /fides/ui-build/static/admin/_next/static/{779-bFyN2mfyVfR0Jqdxw → UZLS8hRH8R50kojeaBV1Y}/_ssgManifest.js +0 -0
- /fides/ui-build/static/admin/_next/static/chunks/pages/add-systems/{manual-12073578f764815e.js → manual-9c25673536d3f2cc.js} +0 -0
- /fides/ui-build/static/admin/_next/static/chunks/pages/settings/{regulations-3ddf2001f4605949.js → regulations-c304e080c391f254.js} +0 -0
- /fides/ui-build/static/admin/_next/static/chunks/pages/systems/configure/{[id]-ed809e0961891c0c.js → [id]-25589319be47ee83.js} +0 -0
|
@@ -5,11 +5,7 @@ from sqlalchemy.orm import Session, relationship
|
|
|
5
5
|
|
|
6
6
|
from fides.api.db.base_class import Base
|
|
7
7
|
from fides.api.models.fides_user import FidesUser
|
|
8
|
-
from fides.api.oauth.roles import
|
|
9
|
-
EXTERNAL_RESPONDENT,
|
|
10
|
-
RESPONDENT,
|
|
11
|
-
ROLES_TO_SCOPES_MAPPING,
|
|
12
|
-
)
|
|
8
|
+
from fides.api.oauth.roles import EXTERNAL_RESPONDENT, ROLES_TO_SCOPES_MAPPING
|
|
13
9
|
|
|
14
10
|
|
|
15
11
|
class FidesUserPermissions(Base):
|
|
@@ -28,15 +24,15 @@ class FidesUserPermissions(Base):
|
|
|
28
24
|
|
|
29
25
|
return sorted(list(set(all_scopes)))
|
|
30
26
|
|
|
31
|
-
def
|
|
32
|
-
"""Check if the user is a respondent."""
|
|
33
|
-
return any(role in self.roles for role in [
|
|
27
|
+
def is_external_respondent(self) -> bool:
|
|
28
|
+
"""Check if the user is a external respondent."""
|
|
29
|
+
return any(role in self.roles for role in [EXTERNAL_RESPONDENT])
|
|
34
30
|
|
|
35
31
|
def update_roles(self, db: Session, new_roles: List[str]) -> None:
|
|
36
32
|
"""Update the user's roles if allowed.
|
|
37
33
|
Raises ValueError if role changes are not allowed."""
|
|
38
|
-
if self.
|
|
39
|
-
raise ValueError("Role changes are not allowed for respondents")
|
|
34
|
+
if self.is_external_respondent():
|
|
35
|
+
raise ValueError("Role changes are not allowed for external respondents")
|
|
40
36
|
|
|
41
37
|
self.roles = new_roles
|
|
42
38
|
self.save(db)
|
|
@@ -454,9 +454,7 @@ def run_privacy_request(
|
|
|
454
454
|
]
|
|
455
455
|
|
|
456
456
|
# Add manual task artificial graphs to dataset graphs
|
|
457
|
-
manual_task_graphs = create_manual_task_artificial_graphs(
|
|
458
|
-
session, policy
|
|
459
|
-
)
|
|
457
|
+
manual_task_graphs = create_manual_task_artificial_graphs(session)
|
|
460
458
|
dataset_graphs.extend(manual_task_graphs)
|
|
461
459
|
|
|
462
460
|
dataset_graph = DatasetGraph(*dataset_graphs)
|
|
@@ -7,6 +7,7 @@ from fides.api.common_exceptions import AwaitingAsyncTaskCallback
|
|
|
7
7
|
from fides.api.models.attachment import AttachmentType
|
|
8
8
|
from fides.api.models.manual_task import (
|
|
9
9
|
ManualTask,
|
|
10
|
+
ManualTaskConfig,
|
|
10
11
|
ManualTaskConfigurationType,
|
|
11
12
|
ManualTaskEntityType,
|
|
12
13
|
ManualTaskFieldType,
|
|
@@ -50,6 +51,29 @@ class ManualTaskGraphTask(GraphTask):
|
|
|
50
51
|
if not manual_tasks:
|
|
51
52
|
return []
|
|
52
53
|
|
|
54
|
+
# Check if any manual tasks have ACCESS configs
|
|
55
|
+
# TODO: This will be changed with Manual Task Dependencies Implementation.
|
|
56
|
+
|
|
57
|
+
has_access_configs = [
|
|
58
|
+
config
|
|
59
|
+
for manual_task in manual_tasks
|
|
60
|
+
for config in manual_task.configs
|
|
61
|
+
if config.is_current
|
|
62
|
+
and config.config_type == ManualTaskConfigurationType.access_privacy_request
|
|
63
|
+
]
|
|
64
|
+
|
|
65
|
+
if not has_access_configs:
|
|
66
|
+
# No access configs - complete immediately
|
|
67
|
+
self.log_end(ActionType.access)
|
|
68
|
+
return []
|
|
69
|
+
|
|
70
|
+
if not self.resources.request.policy.get_rules_for_action(
|
|
71
|
+
action_type=ActionType.access
|
|
72
|
+
):
|
|
73
|
+
# TODO: This will be changed with Manual Task Dependencies Implementation.
|
|
74
|
+
self.log_end(ActionType.access)
|
|
75
|
+
return []
|
|
76
|
+
|
|
53
77
|
# Check/create manual task instances for ACCESS configs only
|
|
54
78
|
self._ensure_manual_task_instances(
|
|
55
79
|
db,
|
|
@@ -95,28 +119,30 @@ class ManualTaskGraphTask(GraphTask):
|
|
|
95
119
|
|
|
96
120
|
for manual_task in manual_tasks:
|
|
97
121
|
# ------------------------------------------------------------------
|
|
98
|
-
#
|
|
99
|
-
#
|
|
100
|
-
#
|
|
101
|
-
#
|
|
102
|
-
# request has started.
|
|
122
|
+
# Check if instances already exist for this task & entity with the SAME config type
|
|
123
|
+
# This prevents duplicates when configurations are versioned after the privacy
|
|
124
|
+
# request has started, while allowing different config types (access vs erasure)
|
|
125
|
+
# to have separate instances.
|
|
103
126
|
# ------------------------------------------------------------------
|
|
104
127
|
existing_task_instance = (
|
|
105
128
|
db.query(ManualTaskInstance)
|
|
129
|
+
.join(ManualTaskInstance.config) # Join to access config information
|
|
106
130
|
.filter(
|
|
107
131
|
ManualTaskInstance.task_id == manual_task.id,
|
|
108
132
|
ManualTaskInstance.entity_id == privacy_request.id,
|
|
109
133
|
ManualTaskInstance.entity_type
|
|
110
134
|
== ManualTaskEntityType.privacy_request,
|
|
135
|
+
# Only check for instances of the same config type
|
|
136
|
+
ManualTaskConfig.config_type == allowed_config_type,
|
|
111
137
|
)
|
|
112
138
|
.first()
|
|
113
139
|
)
|
|
114
140
|
if existing_task_instance:
|
|
115
|
-
# An instance already exists for this privacy request – no need
|
|
141
|
+
# An instance already exists for this privacy request and config type – no need
|
|
116
142
|
# to create another one tied to a newer config version.
|
|
117
143
|
continue
|
|
118
144
|
|
|
119
|
-
# Check each active config for instances (now we know none exist yet)
|
|
145
|
+
# Check each active config for instances (now we know none exist yet for this config type)
|
|
120
146
|
for config in manual_task.configs:
|
|
121
147
|
if not config.is_current or config.config_type != allowed_config_type:
|
|
122
148
|
# Skip configs that are not current or not relevant for this request type
|
|
@@ -265,6 +291,21 @@ class ManualTaskGraphTask(GraphTask):
|
|
|
265
291
|
self.log_end(ActionType.erasure)
|
|
266
292
|
return 0
|
|
267
293
|
|
|
294
|
+
# Check if any manual tasks have ERASURE configs
|
|
295
|
+
has_erasure_configs = [
|
|
296
|
+
config
|
|
297
|
+
for manual_task in manual_tasks
|
|
298
|
+
for config in manual_task.configs
|
|
299
|
+
if config.is_current
|
|
300
|
+
and config.config_type
|
|
301
|
+
== ManualTaskConfigurationType.erasure_privacy_request
|
|
302
|
+
]
|
|
303
|
+
|
|
304
|
+
if not has_erasure_configs:
|
|
305
|
+
# No erasure configs - complete immediately
|
|
306
|
+
self.log_end(ActionType.erasure)
|
|
307
|
+
return 0
|
|
308
|
+
|
|
268
309
|
# Create ManualTaskInstances for ERASURE configs only
|
|
269
310
|
self._ensure_manual_task_instances(
|
|
270
311
|
db,
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
from typing import TYPE_CHECKING, List
|
|
1
|
+
from typing import TYPE_CHECKING, List
|
|
2
2
|
|
|
3
|
-
from loguru import logger
|
|
4
3
|
from sqlalchemy.orm import Session
|
|
5
4
|
|
|
6
5
|
from fides.api.graph.config import (
|
|
@@ -218,7 +217,7 @@ def create_manual_task_instances_for_privacy_request(
|
|
|
218
217
|
ManualTaskConfigurationType.access_privacy_request,
|
|
219
218
|
ManualTaskConfigurationType.erasure_privacy_request,
|
|
220
219
|
]
|
|
221
|
-
)
|
|
220
|
+
)
|
|
222
221
|
)
|
|
223
222
|
elif has_access_rules:
|
|
224
223
|
# Only access rules - only include access configurations
|
|
@@ -285,32 +284,8 @@ def get_manual_task_instances_for_privacy_request(
|
|
|
285
284
|
)
|
|
286
285
|
|
|
287
286
|
|
|
288
|
-
def manual_task_configs_allowed_by_policy(
|
|
289
|
-
policy: "Policy", config: ManualTaskConfig
|
|
290
|
-
) -> bool:
|
|
291
|
-
"""
|
|
292
|
-
Check if a manual task config is allowed by a policy.
|
|
293
|
-
Returns True if the config is allowed, False otherwise.
|
|
294
|
-
Returns False if the policy is not a valid policy object.
|
|
295
|
-
"""
|
|
296
|
-
try:
|
|
297
|
-
allowed: set[ManualTaskConfigurationType] = set()
|
|
298
|
-
# has access rules
|
|
299
|
-
if policy.get_rules_for_action(action_type=ActionType.access):
|
|
300
|
-
allowed.add(ManualTaskConfigurationType.access_privacy_request)
|
|
301
|
-
# has erasure rules
|
|
302
|
-
if policy.get_rules_for_action(action_type=ActionType.erasure):
|
|
303
|
-
allowed.add(ManualTaskConfigurationType.erasure_privacy_request)
|
|
304
|
-
# return True if config.config_type is in allowed, False otherwise
|
|
305
|
-
return config.config_type in allowed
|
|
306
|
-
except AttributeError:
|
|
307
|
-
logger.error(f"Requires a valid policy object, got {policy}")
|
|
308
|
-
return False
|
|
309
|
-
|
|
310
|
-
|
|
311
287
|
def create_manual_task_artificial_graphs(
|
|
312
288
|
db: Session,
|
|
313
|
-
policy: Optional["Policy"] = None,
|
|
314
289
|
) -> List:
|
|
315
290
|
"""
|
|
316
291
|
Create artificial GraphDataset objects for manual tasks that can be included
|
|
@@ -346,19 +321,15 @@ def create_manual_task_artificial_graphs(
|
|
|
346
321
|
# Manual task collections act as root nodes - they don't need identity dependencies
|
|
347
322
|
# since they provide manually-entered data rather than consuming identity data.
|
|
348
323
|
for manual_task in manual_tasks:
|
|
349
|
-
|
|
324
|
+
current_configs = [
|
|
325
|
+
config for config in manual_task.configs if config.is_current
|
|
326
|
+
]
|
|
327
|
+
for config in current_configs:
|
|
350
328
|
if config.config_type not in [
|
|
351
329
|
ManualTaskConfigurationType.access_privacy_request,
|
|
352
330
|
ManualTaskConfigurationType.erasure_privacy_request,
|
|
353
331
|
]:
|
|
354
332
|
continue
|
|
355
|
-
if not config.is_current:
|
|
356
|
-
continue
|
|
357
|
-
|
|
358
|
-
# Filter by configuration type based on policy rules (if policy is provided)
|
|
359
|
-
if policy:
|
|
360
|
-
if not manual_task_configs_allowed_by_policy(policy, config):
|
|
361
|
-
continue
|
|
362
333
|
|
|
363
334
|
for field in config.field_definitions:
|
|
364
335
|
# Create a scalar field for each manual task field
|
|
@@ -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/
|
|
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/4383759407e86f7a.css" as="style"/><link rel="stylesheet" href="/_next/static/css/4383759407e86f7a.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-c97e8d65bd9739ff.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-ad79168425b75dc6.js" defer=""></script><script src="/_next/static/chunks/pages/404-beb4bf835acb4386.js" defer=""></script><script src="/_next/static/UZLS8hRH8R50kojeaBV1Y/_buildManifest.js" defer=""></script><script src="/_next/static/UZLS8hRH8R50kojeaBV1Y/_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":"UZLS8hRH8R50kojeaBV1Y","nextExport":true,"autoExport":true,"isFallback":false,"scriptLoader":[]}</script></body></html>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
self.__BUILD_MANIFEST=function(s,e,t,a,c,n,i,d,o,r,p,u,g,f,b,m,j,k,h,y,l,v,I,F,x,_,U,w,q,N,A,S,B,C,z,D,E,L,M,T,P,G,H,J,K,O){return{__rewrites:{afterFiles:[],beforeFiles:[],fallback:[]},"/":[l,"static/chunks/pages/index-e92db8bb8c719abc.js"],"/404":["static/chunks/pages/404-beb4bf835acb4386.js"],"/_error":["static/chunks/pages/_error-bede3a8288930dcf.js"],"/add-systems":[l,"static/chunks/pages/add-systems-e5ef5be6566f9432.js"],"/add-systems/manual":[s,e,t,c,p,a,i,u,m,v,I,"static/chunks/pages/add-systems/manual-12073578f764815e.js"],"/add-systems/multiple":[i,g,F,"static/chunks/pages/add-systems/multiple-943479665698c6d2.js"],"/consent":["static/chunks/pages/consent-bd0fbeabe84d3c8f.js"],"/consent/configure":[i,g,"static/chunks/pages/consent/configure-e72c1feeb24bdb73.js"],"/consent/configure/add-vendors":[i,g,F,"static/chunks/pages/consent/configure/add-vendors-1bde4adc6d2a6dfa.js"],"/consent/privacy-experience":[p,x,"static/chunks/pages/consent/privacy-experience-5f2d060952814353.js"],"/consent/privacy-experience/new":[s,e,d,_,f,U,"static/chunks/pages/consent/privacy-experience/new-06bb3b0bf097fcdb.js"],"/consent/privacy-experience/[id]":[s,e,d,_,f,U,"static/chunks/pages/consent/privacy-experience/[id]-cc858383bb1bbd36.js"],"/consent/privacy-notices":[x,"static/chunks/pages/consent/privacy-notices-232e9ef135b838cf.js"],"/consent/privacy-notices/new":[s,e,d,w,f,q,"static/chunks/pages/consent/privacy-notices/new-e4a9393b7572e591.js"],"/consent/privacy-notices/[id]":[s,e,d,w,f,q,"static/chunks/pages/consent/privacy-notices/[id]-bfca5064b33116b9.js"],"/consent/properties":[N,"static/chunks/pages/consent/properties-a05600d9e3e8735e.js"],"/consent/reporting":[s,"static/chunks/pages/consent/reporting-5fcacc8e4baf3d03.js"],"/data-catalog":[s,e,t,a,"static/css/95ac327e5d70148d.css","static/chunks/pages/data-catalog-29cde3b7d27b22cf.js"],"/data-catalog/[systemId]/projects":[s,e,t,a,j,n,"static/chunks/pages/data-catalog/[systemId]/projects-be252cac70aa63dd.js"],"/data-catalog/[systemId]/projects/[projectUrn]":[A,"static/chunks/pages/data-catalog/[systemId]/projects/[projectUrn]-00bbbfb19c15c48d.js"],"/data-catalog/[systemId]/projects/[projectUrn]/[resourceUrn]":[s,e,t,a,j,S,n,"static/chunks/pages/data-catalog/[systemId]/projects/[projectUrn]/[resourceUrn]-11d52f1570759c4d.js"],"/data-catalog/[systemId]/resources":[A,"static/chunks/pages/data-catalog/[systemId]/resources-7648bbd4f6711e4d.js"],"/data-catalog/[systemId]/resources/[resourceUrn]":[s,e,t,a,j,S,n,"static/chunks/pages/data-catalog/[systemId]/resources/[resourceUrn]-b83afa5565d0c84e.js"],"/data-discovery/action-center":["static/chunks/pages/data-discovery/action-center-22fe027966edb092.js"],"/data-discovery/action-center/[monitorId]":[s,e,t,k,"static/chunks/pages/data-discovery/action-center/[monitorId]-e8dc8320e826e91c.js"],"/data-discovery/action-center/[monitorId]/[systemId]":[s,e,t,a,i,m,"static/css/81642473e38c67a5.css","static/chunks/pages/data-discovery/action-center/[monitorId]/[systemId]-3ae1ae3844a6e03a.js"],"/data-discovery/activity":[r,"static/chunks/pages/data-discovery/activity-f79ec067d906e67f.js"],"/data-discovery/detection":[r,B,"static/chunks/pages/data-discovery/detection-8733807dad4bc96e.js"],"/data-discovery/detection/[resourceUrn]":[r,B,"static/chunks/pages/data-discovery/detection/[resourceUrn]-393e20924c83373e.js"],"/data-discovery/discovery":[s,e,t,a,r,C,n,"static/chunks/pages/data-discovery/discovery-9e7dfd5a6acc2e8f.js"],"/data-discovery/discovery/[resourceUrn]":[s,e,t,a,r,C,n,"static/chunks/pages/data-discovery/discovery/[resourceUrn]-14bd7500362ff224.js"],"/datamap":["static/chunks/255-7db55b0e3a0f9dea.js",u,z,"static/chunks/pages/datamap-639ac9cf51750635.js"],"/dataset":[o,b,"static/chunks/pages/dataset-52506e743c73fc7d.js"],"/dataset/new":[o,b,"static/chunks/pages/dataset/new-403dc361bffe644d.js"],"/dataset/[datasetId]":["static/chunks/9729-fcf6ff4e3534e4a8.js",h,"static/chunks/pages/dataset/[datasetId]-0e90202b2db3797c.js"],"/dataset/[datasetId]/[collectionName]":[s,e,t,c,a,h,n,"static/chunks/pages/dataset/[datasetId]/[collectionName]-9df954c65a9fe023.js"],"/dataset/[datasetId]/[collectionName]/[...subfieldNames]":[s,e,t,c,a,h,n,"static/chunks/pages/dataset/[datasetId]/[collectionName]/[...subfieldNames]-d69aff79e77c5464.js"],"/datastore-connection":["static/css/5f393dea1c0d031c.css","static/chunks/pages/datastore-connection-36eeca2fe22be33a.js"],"/datastore-connection/new":[s,c,o,p,D,b,E,"static/chunks/pages/datastore-connection/new-6f68e65f01beb8af.js"],"/datastore-connection/[id]":[s,c,o,D,b,E,"static/chunks/pages/datastore-connection/[id]-7d492050fc33a57a.js"],"/fides-js-docs":["static/chunks/2fbcc6de-a6c61724c327e9fa.js","static/chunks/e3251fe7-5777b5d778e6fffa.js",s,e,t,c,o,L,"static/css/ab65b8cc3144bfc8.css","static/chunks/905-ffdbd0b14167e8bd.js","static/chunks/pages/fides-js-docs-5d8fd1af75f19e2f.js"],"/integrations":[s,e,t,c,d,M,T,n,"static/chunks/pages/integrations-ea492832424a9619.js"],"/integrations/[id]":[s,e,t,c,d,M,T,n,"static/chunks/pages/integrations/[id]-c245f0b0fd7810c0.js"],"/login":["static/chunks/pages/login-0cb0eb44bf2dd24c.js"],"/login/[provider]":["static/chunks/pages/login/[provider]-c58beef131c3a82d.js"],"/messaging":[s,e,t,"static/chunks/pages/messaging-c17efc84c54e4fdb.js"],"/messaging/add-template":[P,"static/chunks/pages/messaging/add-template-9dff500113f0710f.js"],"/messaging/[id]":[P,"static/chunks/pages/messaging/[id]-78606d74f82f5edc.js"],"/poc/ant-components":["static/chunks/pages/poc/ant-components-74348d35e92a2a3c.js"],"/poc/form-experiments/AntForm":["static/chunks/pages/poc/form-experiments/AntForm-ac613f99cd57d7b3.js"],"/poc/form-experiments/FormikAntFormItem":["static/chunks/pages/poc/form-experiments/FormikAntFormItem-44605674baae28e2.js"],"/poc/form-experiments/FormikControlled":["static/chunks/pages/poc/form-experiments/FormikControlled-86761304f1da7172.js"],"/poc/form-experiments/FormikField":["static/chunks/pages/poc/form-experiments/FormikField-fadf4e866aa8ea22.js"],"/poc/form-experiments/FormikSpreadField":[G,"static/chunks/pages/poc/form-experiments/FormikSpreadField-af097d661f6abcf4.js"],"/poc/forms":[G,"static/chunks/pages/poc/forms-be9bc54243141257.js"],"/poc/table-migration":[i,g,"static/chunks/pages/poc/table-migration-69a9e346e32fde53.js"],"/privacy-requests":[s,e,H,"static/chunks/pages/privacy-requests-26a48fa6707708af.js"],"/privacy-requests/configure":["static/chunks/pages/privacy-requests/configure-6935d3c1655ecbbe.js"],"/privacy-requests/configure/messaging":["static/chunks/pages/privacy-requests/configure/messaging-1f57e4d5715dd5cf.js"],"/privacy-requests/configure/storage":["static/chunks/pages/privacy-requests/configure/storage-378db5585b89ab5e.js"],"/privacy-requests/[id]":[H,"static/css/399d4757862a3982.css","static/chunks/pages/privacy-requests/[id]-61e32a7b8ef6569c.js"],"/properties":[N,"static/chunks/pages/properties-be3668cbd03e086e.js"],"/properties/add-property":[J,"static/chunks/pages/properties/add-property-971657cbd5e5490f.js"],"/properties/[id]":[J,"static/chunks/pages/properties/[id]-3a7b2edeb6f6c7a2.js"],"/reporting/datamap":[s,e,t,L,u,z,"static/chunks/pages/reporting/datamap-dc3afcf514d7219a.js"],"/settings/about":["static/chunks/pages/settings/about-a91bf9cf821bcdcb.js"],"/settings/about/alpha":["static/chunks/pages/settings/about/alpha-fb0c7974234d93ee.js"],"/settings/consent":["static/chunks/pages/settings/consent-bed42ecfab4896af.js"],"/settings/consent/[configuration_id]/[purpose_id]":["static/chunks/pages/settings/consent/[configuration_id]/[purpose_id]-aaa2d02b9be2acb1.js"],"/settings/custom-fields":["static/chunks/pages/settings/custom-fields-82882bc16052ae5b.js"],"/settings/domain-records":["static/chunks/pages/settings/domain-records-9455a95901d7d223.js"],"/settings/domains":["static/chunks/pages/settings/domains-57fd9412882c4ab2.js"],"/settings/email-templates":["static/chunks/pages/settings/email-templates-63a5da14576722a4.js"],"/settings/locations":[K,k,"static/chunks/pages/settings/locations-068724e9c574974d.js"],"/settings/organization":["static/chunks/pages/settings/organization-f556688c5fb35f41.js"],"/settings/regulations":[K,k,"static/chunks/pages/settings/regulations-3ddf2001f4605949.js"],"/systems":["static/chunks/pages/systems-b5f68d37abaa8844.js"],"/systems/configure/[id]":[s,e,t,c,p,a,i,u,m,v,I,"static/chunks/pages/systems/configure/[id]-ed809e0961891c0c.js"],"/systems/configure/[id]/test-datasets":[o,"static/chunks/pages/systems/configure/[id]/test-datasets-7ce5dbabf7f1026b.js"],"/taxonomy":["static/chunks/678d4732-50255cc09048e643.js",s,e,t,d,"static/chunks/570-c99f07161bd339cd.js","static/css/34a7eb08b86ddb57.css","static/chunks/pages/taxonomy-103618fab50dfd0d.js"],"/user-management":[y,"static/chunks/pages/user-management-f552cb870f8a6a17.js"],"/user-management/new":[y,O,"static/chunks/pages/user-management/new-a2524414e968f862.js"],"/user-management/profile/[id]":[y,O,"static/chunks/pages/user-management/profile/[id]-564f87da93e398d0.js"],sortedPages:["/","/404","/_app","/_error","/add-systems","/add-systems/manual","/add-systems/multiple","/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]","/poc/ant-components","/poc/form-experiments/AntForm","/poc/form-experiments/FormikAntFormItem","/poc/form-experiments/FormikControlled","/poc/form-experiments/FormikField","/poc/form-experiments/FormikSpreadField","/poc/forms","/poc/table-migration","/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/about/alpha","/settings/consent","/settings/consent/[configuration_id]/[purpose_id]","/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/2858-0b44609b6be7850b.js","static/chunks/2866-a73888c17a195cbe.js","static/chunks/9278-9b1b5970f0702668.js","static/chunks/409-6b1b506d59a0399a.js","static/chunks/699-8ca44b0de9fa20f0.js","static/css/d2d4e9a6923e6730.css","static/chunks/401-002f393dae03f8f4.js","static/chunks/3662-f6a1ddca5ee42076.js","static/chunks/6527-0eed08abe252a918.js","static/chunks/431-24380873201c3e1b.js","static/chunks/5277-e8a036319456127f.js","static/chunks/9951-5e744e8addb6e090.js","static/chunks/3923-536e8bbbea5b7328.js","static/chunks/6084-5bfa390a4c8fad43.js","static/chunks/5574-1fad13b944f0c4fc.js","static/chunks/6780-8b5772a3a2ef1ca6.js","static/chunks/6882-5a251351689ea74b.js","static/css/eb46b504bb5d980d.css","static/chunks/9226-f4e70e6f9619e9a9.js","static/chunks/7476-d7071697bc665a4f.js","static/css/972dc7eef106ee7c.css","static/chunks/3450-ebcffdd4fb437a2e.js","static/css/92fc10cc7ed1aba3.css","static/chunks/796-e33122908c5e28ce.js","static/chunks/6853-7a089a9fad286bb8.js","static/chunks/9014-eeae6f581158e645.js","static/chunks/1817-e2c599fb2c47dbc4.js","static/chunks/3615-5e2d062d684b8fa1.js","static/chunks/6954-3a7b166c8f3b66b4.js","static/chunks/79-f08e91084d10d6dc.js","static/chunks/3872-18e5da8bda649ddb.js","static/chunks/3855-a0783ba28c644d09.js","static/chunks/5309-c8b5165efcc5469f.js","static/chunks/9046-d4c806aa81ab0bad.js","static/chunks/4230-c4c596fb5534e1b1.js","static/chunks/1807-3beab149351d5ded.js","static/chunks/4608-0cd97892fd0b0e41.js","static/chunks/2599-6c4d22e75028d8b6.js","static/chunks/1316-6cc72a45ebf7ff81.js","static/chunks/6662-79eee0bf18775b40.js","static/chunks/7630-731324d74b20b80e.js","static/chunks/2921-93228aa02364bb48.js","static/chunks/3988-839f18f04d5144f2.js","static/chunks/787-cb0154eaf6114c7e.js","static/chunks/9826-065b7cd0784d6912.js","static/chunks/4121-23ac086c1aa6a43a.js"),self.__BUILD_MANIFEST_CB&&self.__BUILD_MANIFEST_CB();
|
|
1
|
+
self.__BUILD_MANIFEST=function(s,e,t,a,c,n,i,d,o,r,p,u,g,f,m,b,j,k,h,y,l,v,I,F,x,_,U,w,q,N,A,S,B,C,z,D,E,L,M,T,P,G,H,J,K,O){return{__rewrites:{afterFiles:[],beforeFiles:[],fallback:[]},"/":[l,"static/chunks/pages/index-7430cfb2a1bf1442.js"],"/404":["static/chunks/pages/404-beb4bf835acb4386.js"],"/_error":["static/chunks/pages/_error-bede3a8288930dcf.js"],"/add-systems":[l,"static/chunks/pages/add-systems-f068a00278624bc9.js"],"/add-systems/manual":[s,e,t,c,p,a,i,u,b,v,I,"static/chunks/pages/add-systems/manual-9c25673536d3f2cc.js"],"/add-systems/multiple":[i,g,F,"static/chunks/pages/add-systems/multiple-943479665698c6d2.js"],"/consent":["static/chunks/pages/consent-bd0fbeabe84d3c8f.js"],"/consent/configure":[i,g,"static/chunks/pages/consent/configure-e72c1feeb24bdb73.js"],"/consent/configure/add-vendors":[i,g,F,"static/chunks/pages/consent/configure/add-vendors-1bde4adc6d2a6dfa.js"],"/consent/privacy-experience":[p,x,"static/chunks/pages/consent/privacy-experience-799d2a4a9dd68eea.js"],"/consent/privacy-experience/new":[s,e,d,_,f,U,"static/chunks/pages/consent/privacy-experience/new-06bb3b0bf097fcdb.js"],"/consent/privacy-experience/[id]":[s,e,d,_,f,U,"static/chunks/pages/consent/privacy-experience/[id]-cc858383bb1bbd36.js"],"/consent/privacy-notices":[x,"static/chunks/pages/consent/privacy-notices-55d0f8505a7f8692.js"],"/consent/privacy-notices/new":[s,e,d,w,f,q,"static/chunks/pages/consent/privacy-notices/new-e4a9393b7572e591.js"],"/consent/privacy-notices/[id]":[s,e,d,w,f,q,"static/chunks/pages/consent/privacy-notices/[id]-bfca5064b33116b9.js"],"/consent/properties":[N,"static/chunks/pages/consent/properties-a05600d9e3e8735e.js"],"/consent/reporting":[s,"static/chunks/pages/consent/reporting-1103b69bcd90ed6c.js"],"/data-catalog":[s,e,t,a,"static/css/95ac327e5d70148d.css","static/chunks/pages/data-catalog-6d6584fd49026ec2.js"],"/data-catalog/[systemId]/projects":[s,e,t,a,j,n,"static/chunks/pages/data-catalog/[systemId]/projects-be252cac70aa63dd.js"],"/data-catalog/[systemId]/projects/[projectUrn]":[A,"static/chunks/pages/data-catalog/[systemId]/projects/[projectUrn]-00bbbfb19c15c48d.js"],"/data-catalog/[systemId]/projects/[projectUrn]/[resourceUrn]":[s,e,t,a,j,S,n,"static/chunks/pages/data-catalog/[systemId]/projects/[projectUrn]/[resourceUrn]-11d52f1570759c4d.js"],"/data-catalog/[systemId]/resources":[A,"static/chunks/pages/data-catalog/[systemId]/resources-7648bbd4f6711e4d.js"],"/data-catalog/[systemId]/resources/[resourceUrn]":[s,e,t,a,j,S,n,"static/chunks/pages/data-catalog/[systemId]/resources/[resourceUrn]-b83afa5565d0c84e.js"],"/data-discovery/action-center":["static/chunks/pages/data-discovery/action-center-a81165ca06b7c404.js"],"/data-discovery/action-center/[monitorId]":[s,e,t,k,"static/chunks/pages/data-discovery/action-center/[monitorId]-5c0b1f15873c90fa.js"],"/data-discovery/action-center/[monitorId]/[systemId]":[s,e,t,a,i,b,"static/css/5bfb2473e5701527.css","static/chunks/pages/data-discovery/action-center/[monitorId]/[systemId]-caf0c55830fc91b3.js"],"/data-discovery/activity":[r,"static/chunks/pages/data-discovery/activity-bf3627895c102ae0.js"],"/data-discovery/detection":[r,B,"static/chunks/pages/data-discovery/detection-8733807dad4bc96e.js"],"/data-discovery/detection/[resourceUrn]":[r,B,"static/chunks/pages/data-discovery/detection/[resourceUrn]-393e20924c83373e.js"],"/data-discovery/discovery":[s,e,t,a,r,C,n,"static/chunks/pages/data-discovery/discovery-9e7dfd5a6acc2e8f.js"],"/data-discovery/discovery/[resourceUrn]":[s,e,t,a,r,C,n,"static/chunks/pages/data-discovery/discovery/[resourceUrn]-14bd7500362ff224.js"],"/datamap":["static/chunks/255-7db55b0e3a0f9dea.js",u,z,"static/chunks/pages/datamap-639ac9cf51750635.js"],"/dataset":[o,m,"static/chunks/pages/dataset-06d5b6944e2de262.js"],"/dataset/new":[o,m,"static/chunks/pages/dataset/new-17caa948d13ac81c.js"],"/dataset/[datasetId]":["static/chunks/9729-fcf6ff4e3534e4a8.js",h,"static/chunks/pages/dataset/[datasetId]-0e90202b2db3797c.js"],"/dataset/[datasetId]/[collectionName]":[s,e,t,c,a,h,n,"static/chunks/pages/dataset/[datasetId]/[collectionName]-9df954c65a9fe023.js"],"/dataset/[datasetId]/[collectionName]/[...subfieldNames]":[s,e,t,c,a,h,n,"static/chunks/pages/dataset/[datasetId]/[collectionName]/[...subfieldNames]-d69aff79e77c5464.js"],"/datastore-connection":["static/css/5f393dea1c0d031c.css","static/chunks/pages/datastore-connection-36eeca2fe22be33a.js"],"/datastore-connection/new":[s,c,o,p,D,m,E,"static/chunks/pages/datastore-connection/new-d7160806386bc7e0.js"],"/datastore-connection/[id]":[s,c,o,D,m,E,"static/chunks/pages/datastore-connection/[id]-a980e69a921a0dfb.js"],"/fides-js-docs":["static/chunks/2fbcc6de-a6c61724c327e9fa.js","static/chunks/e3251fe7-5777b5d778e6fffa.js",s,e,t,c,o,L,"static/css/ab65b8cc3144bfc8.css","static/chunks/905-ffdbd0b14167e8bd.js","static/chunks/pages/fides-js-docs-5d8fd1af75f19e2f.js"],"/integrations":[s,e,t,c,d,M,T,n,"static/chunks/pages/integrations-ea492832424a9619.js"],"/integrations/[id]":[s,e,t,c,d,M,T,n,"static/chunks/pages/integrations/[id]-e039acfdefb0986e.js"],"/login":["static/chunks/pages/login-0cb0eb44bf2dd24c.js"],"/login/[provider]":["static/chunks/pages/login/[provider]-c58beef131c3a82d.js"],"/messaging":[s,e,t,"static/chunks/pages/messaging-c17efc84c54e4fdb.js"],"/messaging/add-template":[P,"static/chunks/pages/messaging/add-template-9dff500113f0710f.js"],"/messaging/[id]":[P,"static/chunks/pages/messaging/[id]-78606d74f82f5edc.js"],"/poc/ant-components":["static/chunks/pages/poc/ant-components-74348d35e92a2a3c.js"],"/poc/form-experiments/AntForm":["static/chunks/pages/poc/form-experiments/AntForm-ac613f99cd57d7b3.js"],"/poc/form-experiments/FormikAntFormItem":["static/chunks/pages/poc/form-experiments/FormikAntFormItem-44605674baae28e2.js"],"/poc/form-experiments/FormikControlled":["static/chunks/pages/poc/form-experiments/FormikControlled-86761304f1da7172.js"],"/poc/form-experiments/FormikField":["static/chunks/pages/poc/form-experiments/FormikField-fadf4e866aa8ea22.js"],"/poc/form-experiments/FormikSpreadField":[G,"static/chunks/pages/poc/form-experiments/FormikSpreadField-af097d661f6abcf4.js"],"/poc/forms":[G,"static/chunks/pages/poc/forms-be9bc54243141257.js"],"/poc/table-migration":[i,g,"static/chunks/pages/poc/table-migration-69a9e346e32fde53.js"],"/privacy-requests":[s,e,H,"static/chunks/pages/privacy-requests-1b9c48484ea70264.js"],"/privacy-requests/configure":["static/chunks/pages/privacy-requests/configure-6935d3c1655ecbbe.js"],"/privacy-requests/configure/messaging":["static/chunks/pages/privacy-requests/configure/messaging-3062ca1a95ede1a3.js"],"/privacy-requests/configure/storage":["static/chunks/pages/privacy-requests/configure/storage-a67feed389719f52.js"],"/privacy-requests/[id]":[H,"static/css/399d4757862a3982.css","static/chunks/pages/privacy-requests/[id]-29643fbd5745ac0e.js"],"/properties":[N,"static/chunks/pages/properties-be3668cbd03e086e.js"],"/properties/add-property":[J,"static/chunks/pages/properties/add-property-971657cbd5e5490f.js"],"/properties/[id]":[J,"static/chunks/pages/properties/[id]-3a7b2edeb6f6c7a2.js"],"/reporting/datamap":[s,e,t,L,u,z,"static/chunks/pages/reporting/datamap-218f88a99e7f0c04.js"],"/settings/about":["static/chunks/pages/settings/about-a91bf9cf821bcdcb.js"],"/settings/about/alpha":["static/chunks/pages/settings/about/alpha-fb0c7974234d93ee.js"],"/settings/consent":["static/chunks/pages/settings/consent-d0c5a07b57b6adae.js"],"/settings/consent/[configuration_id]/[purpose_id]":["static/chunks/pages/settings/consent/[configuration_id]/[purpose_id]-738e9c5dd7a4d8f5.js"],"/settings/custom-fields":["static/chunks/pages/settings/custom-fields-7945aad419e1ba8b.js"],"/settings/domain-records":["static/chunks/pages/settings/domain-records-9455a95901d7d223.js"],"/settings/domains":["static/chunks/pages/settings/domains-57fd9412882c4ab2.js"],"/settings/email-templates":["static/chunks/pages/settings/email-templates-63a5da14576722a4.js"],"/settings/locations":[K,k,"static/chunks/pages/settings/locations-694ae08fdc73b92b.js"],"/settings/organization":["static/chunks/pages/settings/organization-26db0a2e4ffe2892.js"],"/settings/regulations":[K,k,"static/chunks/pages/settings/regulations-c304e080c391f254.js"],"/systems":["static/chunks/pages/systems-8045ae1289ef8ebc.js"],"/systems/configure/[id]":[s,e,t,c,p,a,i,u,b,v,I,"static/chunks/pages/systems/configure/[id]-25589319be47ee83.js"],"/systems/configure/[id]/test-datasets":[o,"static/chunks/pages/systems/configure/[id]/test-datasets-ec7efe4e1f09ecb7.js"],"/taxonomy":["static/chunks/678d4732-50255cc09048e643.js",s,e,t,d,"static/chunks/570-c99f07161bd339cd.js","static/css/34a7eb08b86ddb57.css","static/chunks/pages/taxonomy-0d17e0de9adb27f8.js"],"/user-management":[y,"static/chunks/pages/user-management-9c8200fc2f8b9346.js"],"/user-management/new":[y,O,"static/chunks/pages/user-management/new-a2524414e968f862.js"],"/user-management/profile/[id]":[y,O,"static/chunks/pages/user-management/profile/[id]-fe32284ce419e921.js"],sortedPages:["/","/404","/_app","/_error","/add-systems","/add-systems/manual","/add-systems/multiple","/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]","/poc/ant-components","/poc/form-experiments/AntForm","/poc/form-experiments/FormikAntFormItem","/poc/form-experiments/FormikControlled","/poc/form-experiments/FormikField","/poc/form-experiments/FormikSpreadField","/poc/forms","/poc/table-migration","/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/about/alpha","/settings/consent","/settings/consent/[configuration_id]/[purpose_id]","/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/2858-0b44609b6be7850b.js","static/chunks/2866-a73888c17a195cbe.js","static/chunks/9278-9b1b5970f0702668.js","static/chunks/409-6b1b506d59a0399a.js","static/chunks/699-8ca44b0de9fa20f0.js","static/css/d2d4e9a6923e6730.css","static/chunks/401-002f393dae03f8f4.js","static/chunks/3662-f6a1ddca5ee42076.js","static/chunks/6527-0eed08abe252a918.js","static/chunks/431-2a9adafa2689a0f4.js","static/chunks/5277-e8a036319456127f.js","static/chunks/9951-e572cda021343eb1.js","static/chunks/3923-536e8bbbea5b7328.js","static/chunks/6084-1ae40620e79e0cf9.js","static/chunks/5574-1fad13b944f0c4fc.js","static/chunks/6780-4db9fe1ee8860870.js","static/chunks/6882-6f755ee046c9d70a.js","static/css/10994e916bc9a00a.css","static/chunks/9226-ce9c651c6ed829dd.js","static/chunks/7476-c4ccb87fb8dbe2c0.js","static/css/972dc7eef106ee7c.css","static/chunks/3450-b7af9fec12e66f7f.js","static/css/304c6f148886a8d4.css","static/chunks/796-e33122908c5e28ce.js","static/chunks/6853-02be83ef65e8853b.js","static/chunks/9014-eeae6f581158e645.js","static/chunks/1817-34bd629bf34328ec.js","static/chunks/3615-5e2d062d684b8fa1.js","static/chunks/6954-b242eebbe7c52e5a.js","static/chunks/79-056947276803332e.js","static/chunks/3872-140c8bf8bdb5d511.js","static/chunks/3855-b914c1a3124f44ea.js","static/chunks/5309-90d555ba13edaf08.js","static/chunks/9046-f5b180534b2637c3.js","static/chunks/4230-d91fc4db148387bc.js","static/chunks/1807-3beab149351d5ded.js","static/chunks/4608-52674906c7d6a22e.js","static/chunks/2599-6c4d22e75028d8b6.js","static/chunks/1316-6cc72a45ebf7ff81.js","static/chunks/6662-5fa8a1b20b0d3e3c.js","static/chunks/7630-731324d74b20b80e.js","static/chunks/2921-93228aa02364bb48.js","static/chunks/203-9e86242bde459a43.js","static/chunks/787-a1674f4d14753677.js","static/chunks/9826-065b7cd0784d6912.js","static/chunks/4121-91ab0fdde5204f41.js"),self.__BUILD_MANIFEST_CB&&self.__BUILD_MANIFEST_CB();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1817],{11817:function(e,n,i){i.d(n,{Z:function(){return U}});var t=i(24246),o=i(13577),a=i(34090),l=i(86677),r=i(27378),s=i(55484),d=i(16134),c=i(812);let p=(0,o.IUT)({displayName:"DesktopIcon",viewBox:"0 0 24 24",path:(0,t.jsx)("path",{fill:"currentColor",d:"M20.5556 4.05556H3.44444C3.10833 4.05556 2.83333 4.33056 2.83333 4.66667V12H21.1667V4.66667C21.1667 4.33056 20.8917 4.05556 20.5556 4.05556ZM23 12V13.8333V15.6667C23 17.0149 21.9038 18.1111 20.5556 18.1111H14.9142L15.2198 19.9445H17.1944C17.7024 19.9445 18.1111 20.3531 18.1111 20.8611C18.1111 21.3691 17.7024 21.7778 17.1944 21.7778H14.4444H9.55556H6.80556C6.29757 21.7778 5.88889 21.3691 5.88889 20.8611C5.88889 20.3531 6.29757 19.9445 6.80556 19.9445H8.78021L9.08576 18.1111H3.44444C2.09618 18.1111 1 17.0149 1 15.6667V13.8333V12V4.66667C1 3.31841 2.09618 2.22223 3.44444 2.22223H20.5556C21.9038 2.22223 23 3.31841 23 4.66667V12ZM2.83333 13.8333V15.6667C2.83333 16.0028 3.10833 16.2778 3.44444 16.2778H10.1476C10.159 16.2778 10.1705 16.2778 10.1781 16.2778H13.8142C13.8257 16.2778 13.8372 16.2778 13.8448 16.2778H20.5556C20.8917 16.2778 21.1667 16.0028 21.1667 15.6667V13.8333H2.83333ZM10.6365 19.9445H13.3597L13.0542 18.1111H10.942L10.6365 19.9445Z"})}),u=(0,o.IUT)({displayName:"MobileIcon",viewBox:"0 0 24 24",path:(0,t.jsx)("path",{fill:"currentColor",d:"M6.5 20.25C6.5 20.6281 6.80938 20.9375 7.1875 20.9375H16.8125C17.1906 20.9375 17.5 20.6281 17.5 20.25V16.8125H6.5V20.25ZM6.5 14.75H17.5V3.75C17.5 3.37188 17.1906 3.0625 16.8125 3.0625H7.1875C6.80938 3.0625 6.5 3.37188 6.5 3.75V14.75ZM4.4375 3.75C4.4375 2.2332 5.6707 1 7.1875 1H16.8125C18.3293 1 19.5625 2.2332 19.5625 3.75V20.25C19.5625 21.7668 18.3293 23 16.8125 23H7.1875C5.6707 23 4.4375 21.7668 4.4375 20.25V3.75ZM12 17.8438C12.2735 17.8438 12.5358 17.9524 12.7292 18.1458C12.9226 18.3392 13.0312 18.6015 13.0312 18.875C13.0312 19.1485 12.9226 19.4108 12.7292 19.6042C12.5358 19.7976 12.2735 19.9062 12 19.9062C11.7265 19.9062 11.4642 19.7976 11.2708 19.6042C11.0774 19.4108 10.9688 19.1485 10.9688 18.875C10.9688 18.6015 11.0774 18.3392 11.2708 18.1458C11.4642 17.9524 11.7265 17.8438 12 17.8438Z"})});var v=i(77830),m=i(46628),_=i(7426),f=i(60325);let b={language:{label:"Language",validation:s.Z_()},title:{label:"Title",validation:s.Z_()},description:{label:"Description",validation:s.Z_()},accept_button_label:{label:"Accept button label",validation:s.Z_()},reject_button_label:{label:"Reject button label",validation:s.Z_()},save_button_label:{label:"Save button label",validation:s.Z_()},acknowledge_button_label:{label:"Acknowledge button label",validation:s.Z_()},privacy_policy_url:{label:"Privacy policy URL",validation:s.Z_().url()},privacy_preferences_link_label:{label:"Privacy preferences link label",validation:s.Z_()},banner_title:{label:"Banner title",validation:s.Z_()},banner_description:{label:"Banner description",validation:s.Z_()},purpose_header:{label:"Purpose header",validation:s.Z_()},privacy_policy_link_label:{label:"Privacy policy link label",validation:s.Z_()},modal_link_label:{label:"Modal link label",validation:s.Z_()},is_default:{label:"Default language",validation:s.O7()}};var g=i(34334),y=i(13083),x=i.n(y),h=i(43218),w=i.n(h),C=i(52253),j=i(32885),V=i(68309);let k={language:V.eU.EN,accept_button_label:"Accept",acknowledge_button_label:"OK",banner_description:"",banner_title:"",purpose_header:"",description:"Description",privacy_policy_link_label:"",privacy_policy_url:"",modal_link_label:"",privacy_preferences_link_label:"Privacy preferences",reject_button_label:"Reject All",save_button_label:"Save",title:"Manage your consent preferences",is_default:!0},A=e=>({...k,...e.translations?e.translations[0]:{}}),O=(e,n)=>{var i,t,o,a;let l={options:{allowHTMLDescription:!0,base64Cookie:!1,debug:!1,fidesApiUrl:"http://localhost:8080/api/v1",fidesClearCookie:!0,fidesDisableSaveApi:!0,fidesDisableNoticesServedApi:!0,fidesJsBaseUrl:"",fidesLocale:null===(t=e.translations)||void 0===t?void 0:null===(i=t[0])||void 0===i?void 0:i.language,fidesString:null,geolocationApiUrl:"",isGeolocationEnabled:!1,isOverlayEnabled:!0,isPrefetchEnabled:!1,modalLinkId:null,overlayParentId:C.Vk,preventDismissal:null!==(a=e.dismissable)&&void 0!==a&&a,privacyCenterUrl:"http://localhost:3000",showFidesBrandLink:!0},experience:{available_locales:null===(o=e.translations)||void 0===o?void 0:o.map(e=>e.language),component:e.component,experience_config:{allow_language_selection:!0,auto_detect_language:!0,auto_subdomain_cookie_deletion:!0,component:e.component,disabled:!1,dismissable:e.dismissable,id:"pri_222",is_default:!0,language:"en",layer1_button_options:V.Of.OPT_IN_OPT_OUT,properties:[],regions:["us_ca"],show_layer1_notices:!1,translations:[A(e)]},id:"pri_111",privacy_notices:n,region:"us_ca"},geolocation:{country:"US",location:"US-CA",region:"CA"}};return e.component===V.re.TCF_OVERLAY&&(l.options.fidesTcfGdprApplies=!0,l.options.tcf_enabled=!0,l.geolocation={location:"eea",country:"eea"},l.experience.experience_config.regions=["eea"],l.experience={...l.experience,region:"eea",minimal_tcf:!0,gvl:{vendors:{}},tcf_purpose_names:["Store and/or access information on a device","Use limited data to select advertising","Create profiles for personalised advertising","Use profiles to select personalised advertising","Create profiles to personalise content","Use profiles to select personalised content","Measure advertising performance","Measure content performance","Understand audiences through statistics or combinations of data from different sources","Develop and improve services","Use limited data to select content"]},l.options.apiOptions={getPrivacyExperienceFn:async()=>l.experience}),l},E=e=>{let{language:n,is_default:i,...t}=k,o=Object.keys(t).map(n=>{let i=e[n];return{[n]:void 0!==i?i:k[n]}}).reduce((e,n)=>({...e,...n}),{});return{language:e.language,is_default:e.is_default,...o}},T=(e,n,i)=>e?e.map(e=>i.find(n=>(null==n?void 0:n.id)===e)).map(e=>n===V.re.TCF_OVERLAY&&void 0!==e?{...e,translations:[{language:"en",text:null==e?void 0:e.name}]}:e).filter(e=>void 0!==e):[];var L=i(74022),Z=i(32222);let N=e=>{let{title:n,description:i}=e;return(0,t.jsx)(o.jqI,{className:"h-full items-center justify-center",children:(0,t.jsxs)(o.jqI,{className:"items-center gap-2 rounded-md p-6",style:{backgroundColor:L.Z.colors.white,boxShadow:L.Z.shadows.md,maxWidth:512},vertical:!0,"data-testid":"no-preview-notice",children:[(0,t.jsx)(o.xvT,{fontSize:"lg",fontWeight:"500",align:"center",children:n}),(0,t.jsx)(o.xvT,{color:"gray.500",align:"center",children:i})]})})};var P=e=>{var n,i;let{allPrivacyNotices:s,initialValues:d,translation:c,isMobilePreview:p}=e,u=(0,l.useRouter)().pathname.includes("/new"),{values:v}=(0,a.u6)(),[m,_]=(0,r.useState)([]),[f,b]=(0,r.useState)(!1),[g,y]=(0,r.useState)(),h=[V.re.BANNER_AND_MODAL,V.re.MODAL,V.re.TCF_OVERLAY].includes(v.component),{data:k}=(0,j.de)({pageIndex:1,pageSize:1}),A=(0,r.useMemo)(()=>(null==k?void 0:k.total)||0,[null==k?void 0:k.total]);(0,r.useEffect)(()=>{var e,n;return h&&f&&window.FidesPreview&&v.component&&((null===(e=v.privacy_notice_ids)||void 0===e?void 0:e.length)||v.component===V.re.TCF_OVERLAY)?v.component===V.re.TCF_OVERLAY?(window.FidesPreview("tcf"),y("tcf")):(window.FidesPreview("standard"),y("standard")):window.FidesPreview&&(null===(n=window.FidesPreview)||void 0===n||n.cleanup()),()=>{var e;null===(e=window.FidesPreview)||void 0===e||e.cleanup()}},[v.component,f,h,null===(n=v.privacy_notice_ids)||void 0===n?void 0:n.length,u]),(0,r.useEffect)(()=>{d&&v.component&&s&&(v.privacy_notice_ids?_(T(v.privacy_notice_ids,v.component,s)):_([]))},[v.privacy_notice_ids,s,v.component,d]);let L=(0,r.useMemo)(()=>v.component?O({...d,component:v.component},m):null,[d,m,v.component]);(0,r.useEffect)(()=>{var e,n,i,t;if(!h||!f||!window.FidesPreview||!window.Fides||!(null===(e=v.privacy_notice_ids)||void 0===e?void 0:e.length)&&v.component!==V.re.TCF_OVERLAY)return;v.component===V.re.MODAL&&(L.experience.experience_config.component=V.re.MODAL);let o=null===(n=v.translations)||void 0===n?void 0:n.find(e=>e.language===(null==c?void 0:c.language));(null===(i=v.translations)||void 0===i?void 0:i.length)&&(o?(L.experience.available_locales=[...L.experience.available_locales||[],o.language],L.experience.experience_config.translations[0]=E(o),L.options.fidesLocale=o.language):v.translations&&(L.experience.experience_config.translations[0]=E(v.translations[0]),L.options.fidesLocale=v.translations[0].language)),L.experience.experience_config.show_layer1_notices=!!(null===(t=v.privacy_notice_ids)||void 0===t?void 0:t.length)&&!!v.show_layer1_notices,L.experience.experience_config.layer1_button_options=(v.component===V.re.BANNER_AND_MODAL||v.component===V.re.TCF_OVERLAY)&&v.layer1_button_options?v.layer1_button_options:V.Of.OPT_IN_OPT_OUT,L.options.preventDismissal=!v.dismissable,L.experience.vendor_count=A,L.experience.experience_config.component=v.component,window.Fides.init(L)},[c,L,s,h,A,f,g,v.privacy_notice_ids,v.component,v.translations,v.show_layer1_notices,v.layer1_button_options,v.dismissable,d,m]);let P=document.getElementById("fides-modal");return(P&&P.removeAttribute("tabindex"),v.component)?h?(null===(i=v.privacy_notice_ids)||void 0===i?void 0:i.length)||v.component===V.re.TCF_OVERLAY?(0,t.jsxs)(o.jqI,{className:"size-full items-center justify-center overflow-scroll",children:[(0,t.jsx)(x(),{id:"4b2ec2183c5a567e",dynamic:[C.Vk,v.component!==V.re.TCF_OVERLAY?"padding-bottom: 45px;":""],children:"div#fides-overlay{z-index:5000!important}div#".concat(C.Vk,"{width:100%;padding-top:45px;").concat(v.component!==V.re.TCF_OVERLAY?"padding-bottom: 45px;":""," margin: auto;pointer-events:none}div#fides-banner-container{position:static!important;-webkit-transform:none!important;-moz-transform:none!important;-ms-transform:none!important;-o-transform:none!important;transform:none!important;-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;transition:none!important}div#fides-banner-container.fides-banner-hidden{display:none}.fides-modal-container{background-color:unset!important;position:static!important;display:none!important}.fides-modal-overlay{background-color:inherit!important;position:static!important;display:none!important}div.fides-modal-content{position:relative!important;-webkit-transform:none!important;-moz-transform:none!important;-ms-transform:none!important;-o-transform:none!important;transform:none!important;left:initial!important;top:initial!important}div.fides-modal-footer{width:unset}")}),h?(0,t.jsx)("style",{children:"div#fides-modal {\n display: flex !important;\n justify-content: center;\n background-color: unset;\n ".concat(v.component===V.re.BANNER_AND_MODAL||v.component===V.re.TCF_OVERLAY?"padding-bottom: 3rem;":"","\n }")}):null,p?(0,t.jsx)("style",{children:"\n div#fides-overlay-wrapper {\n max-width: 400px;\n margin: auto;\n }\n div.fides-modal-button-group {\n flex-direction: column !important;\n }\n div#fides-banner {\n padding: 24px;\n width: 100%;\n }\n\n div#fides-banner-description {\n margin-bottom: 0px;\n }\n\n div#fides-banner-inner div#fides-button-group {\n flex-direction: column;\n align-items: flex-start;\n gap: 12px;\n padding-top: 24px;\n }\n\n .fides-banner-button-group {\n flex-direction: column;\n width: 100%;\n }\n\n button.fides-banner-button {\n margin: 0px;\n width: 100%;\n }\n\n div#fides-banner-inner-container {\n display: flex;\n flex-direction: column;\n max-height: 50vh;\n overflow-y: auto;\n scrollbar-gutter: stable;\n }\n\n div#fides-privacy-policy-link {\n order: 1;\n width: 100%;\n }\n .fides-modal-footer {\n max-width: 100%;\n }\n .fides-banner-secondary-actions {\n flex-direction: column-reverse;\n gap: 12px;\n }\n "}):(0,t.jsx)("style",{children:"\n div#fides-banner {\n width: 60%;\n }\n @media (min-width: 768px) {\n div#fides-banner {\n width: 100%;\n }\n }\n @media (min-width: 1155px) {\n div#fides-banner {\n width: 90%;\n }\n }\n @media (min-width: 1440px) {\n div#fides-banner {\n width: 60%;\n }\n }\n "}),(0,t.jsx)(w(),{id:"fides-js-script",src:"/lib/fides-preview.js",onReady:()=>{b(!0)}}),(0,t.jsx)("div",{id:C.Vk,className:x().dynamic([["4b2ec2183c5a567e",[C.Vk,v.component!==V.re.TCF_OVERLAY?"padding-bottom: 45px;":""]]])},v.component)]}):(0,t.jsx)(N,{title:"No privacy notices added",description:'To view a preview of this experience, add a privacy notice under "Privacy Notices" to the left.'}):(0,t.jsx)(N,{title:"".concat(Z.J.get(v.component)," preview not available"),description:"There is no preview available for ".concat(Z.J.get(v.component),". You can edit the available settings\n and languages to the left.")}):(0,t.jsx)(N,{title:"No privacy experience type selected",description:"Please select a privacy experience type to preview."})},D=i(94315),M=i(5331),R=i(16277),F=i(71922),H=i(31883);let S=e=>{let n=(0,f.y3)(e),i={};return Object.entries(n).forEach(e=>{let[n,t]=e;if(t.included){let e=b[n];i[n]=t.required?e.validation.required().label(e.label):e.validation.nullable().label(e.label)}}),s.Ry().shape(i)},B=e=>{let{componentType:n}=e;return S(n)},I=s.Ry().shape({name:s.Z_().required().label("Experience name"),component:s.Z_().required().label("Experience type"),translations:s.IX().when("component",(e,n)=>{let[i]=e;return n.of(B({componentType:i}))})});var U=e=>{var n;let{passedInExperience:i,passedInTranslations:s}=e,[b]=(0,D.mJ)(),[y]=(0,D.$d)(),x=(0,o.pmc)(),[h,w]=(0,r.useState)(!1),C=(0,l.useRouter)(),{data:j}=(0,_.tB)({api_set:!1}),V=null==j?void 0:null===(n=j.plus_consent_settings)||void 0===n?void 0:n.enable_translations,k=(0,d.C)(g.Zp),A=(0,d.C)(g.G1);(0,g.Ah)({page:k,size:A});let O=(0,d.C)(g.fJ),E=(0,d.C)(F.sX),T=i?{...f.DD,...(0,f.Uv)(i)}:f.DD,L=async e=>{var n,t;let o;e.privacy_notice_ids=null===(n=e.privacy_notice_ids)||void 0===n?void 0:n.filter(e=>"tcf_purposes_placeholder"!==e),T.tcf_configuration_id&&!e.tcf_configuration_id&&(e.tcf_configuration_id=null);let a={...e,disabled:null===(t=null==i?void 0:i.disabled)||void 0===t||t,allow_language_selection:e.translations&&e.translations.length>1};if(i){let{component:e,...n}=a;o=await y({...n,id:i.id})}else o=await b(a);(0,H.D4)(o)?x((0,m.Vo)((0,c.e$)(o.error))):(x((0,m.t5)("Privacy experience successfully ".concat(i?"updated":"created"))),C.push(v.w0))},[Z,N]=(0,r.useState)(void 0),[S,B]=(0,r.useState)(!1);return(0,t.jsx)(a.J9,{initialValues:T,enableReinitialize:!0,onSubmit:L,validationSchema:I,children:(0,t.jsx)(a.l0,{style:{height:"100vh"},children:(0,t.jsxs)(o.jqI,{className:"size-full","data-testid":"privacy-experience-detail-page",children:[Z?(0,t.jsx)(R.Z,{translation:Z,translationsEnabled:V,isOOB:S,onReturnToMainForm:()=>{N(void 0),B(!1)}}):(0,t.jsx)(M.d0,{allPrivacyNotices:E,translationsEnabled:V,onSelectTranslation:e=>{N({...e,name:(0,f.Go)(e,O)})},onCreateTranslation:e=>{let n=null==s?void 0:s.find(n=>n.language===e);return n&&B(!0),null!=n?n:{language:e,is_default:!1}}}),(0,t.jsxs)(o.jqI,{vertical:!0,className:"w-full overflow-y-hidden",style:{backgroundColor:o.rSc.colors.gray[50]},children:[(0,t.jsxs)(o.jqI,{className:"flex-row items-center p-4",style:{backgroundColor:o.rSc.colors.white,borderBottom:"1px solid ".concat(o.rSc.colors.gray[100])},children:[(0,t.jsx)(o.xvT,{fontSize:"md",fontWeight:"semibold",children:"PREVIEW"}),(0,t.jsx)(o.LZC,{}),(0,t.jsxs)(o.y02.Group,{onChange:e=>w(e.target.value),defaultValue:!1,children:[(0,t.jsx)(o.y02.Button,{value:!0,title:"View mobile preview",children:(0,t.jsx)(u,{})}),(0,t.jsx)(o.y02.Button,{value:!1,title:"View desktop preview",children:(0,t.jsx)(p,{})})]})]}),(0,t.jsx)(P,{allPrivacyNotices:E,initialValues:T,translation:Z,isMobilePreview:h})]})]})})})}},32222:function(e,n,i){i.d(n,{J:function(){return t}});let t=new Map([["overlay","Overlay"],["privacy_center","Privacy center"],["tcf_overlay","TCF overlay"],["modal","Modal"],["banner_and_modal","Banner and modal"],["headless","Headless"]])},31883:function(e,n,i){i.d(n,{Bw:function(){return t.Bw},D4:function(){return t.D4}});var t=i(19043)}}]);
|
|
1
|
+
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1817],{11817:function(e,n,i){i.d(n,{Z:function(){return U}});var t=i(24246),o=i(13577),a=i(34090),l=i(86677),r=i(27378),s=i(55484),d=i(16134),c=i(812);let p=(0,o.IUT)({displayName:"DesktopIcon",viewBox:"0 0 24 24",path:(0,t.jsx)("path",{fill:"currentColor",d:"M20.5556 4.05556H3.44444C3.10833 4.05556 2.83333 4.33056 2.83333 4.66667V12H21.1667V4.66667C21.1667 4.33056 20.8917 4.05556 20.5556 4.05556ZM23 12V13.8333V15.6667C23 17.0149 21.9038 18.1111 20.5556 18.1111H14.9142L15.2198 19.9445H17.1944C17.7024 19.9445 18.1111 20.3531 18.1111 20.8611C18.1111 21.3691 17.7024 21.7778 17.1944 21.7778H14.4444H9.55556H6.80556C6.29757 21.7778 5.88889 21.3691 5.88889 20.8611C5.88889 20.3531 6.29757 19.9445 6.80556 19.9445H8.78021L9.08576 18.1111H3.44444C2.09618 18.1111 1 17.0149 1 15.6667V13.8333V12V4.66667C1 3.31841 2.09618 2.22223 3.44444 2.22223H20.5556C21.9038 2.22223 23 3.31841 23 4.66667V12ZM2.83333 13.8333V15.6667C2.83333 16.0028 3.10833 16.2778 3.44444 16.2778H10.1476C10.159 16.2778 10.1705 16.2778 10.1781 16.2778H13.8142C13.8257 16.2778 13.8372 16.2778 13.8448 16.2778H20.5556C20.8917 16.2778 21.1667 16.0028 21.1667 15.6667V13.8333H2.83333ZM10.6365 19.9445H13.3597L13.0542 18.1111H10.942L10.6365 19.9445Z"})}),u=(0,o.IUT)({displayName:"MobileIcon",viewBox:"0 0 24 24",path:(0,t.jsx)("path",{fill:"currentColor",d:"M6.5 20.25C6.5 20.6281 6.80938 20.9375 7.1875 20.9375H16.8125C17.1906 20.9375 17.5 20.6281 17.5 20.25V16.8125H6.5V20.25ZM6.5 14.75H17.5V3.75C17.5 3.37188 17.1906 3.0625 16.8125 3.0625H7.1875C6.80938 3.0625 6.5 3.37188 6.5 3.75V14.75ZM4.4375 3.75C4.4375 2.2332 5.6707 1 7.1875 1H16.8125C18.3293 1 19.5625 2.2332 19.5625 3.75V20.25C19.5625 21.7668 18.3293 23 16.8125 23H7.1875C5.6707 23 4.4375 21.7668 4.4375 20.25V3.75ZM12 17.8438C12.2735 17.8438 12.5358 17.9524 12.7292 18.1458C12.9226 18.3392 13.0312 18.6015 13.0312 18.875C13.0312 19.1485 12.9226 19.4108 12.7292 19.6042C12.5358 19.7976 12.2735 19.9062 12 19.9062C11.7265 19.9062 11.4642 19.7976 11.2708 19.6042C11.0774 19.4108 10.9688 19.1485 10.9688 18.875C10.9688 18.6015 11.0774 18.3392 11.2708 18.1458C11.4642 17.9524 11.7265 17.8438 12 17.8438Z"})});var v=i(77830),m=i(46628),_=i(7426),f=i(60325);let b={language:{label:"Language",validation:s.Z_()},title:{label:"Title",validation:s.Z_()},description:{label:"Description",validation:s.Z_()},accept_button_label:{label:"Accept button label",validation:s.Z_()},reject_button_label:{label:"Reject button label",validation:s.Z_()},save_button_label:{label:"Save button label",validation:s.Z_()},acknowledge_button_label:{label:"Acknowledge button label",validation:s.Z_()},privacy_policy_url:{label:"Privacy policy URL",validation:s.Z_().url()},privacy_preferences_link_label:{label:"Privacy preferences link label",validation:s.Z_()},banner_title:{label:"Banner title",validation:s.Z_()},banner_description:{label:"Banner description",validation:s.Z_()},purpose_header:{label:"Purpose header",validation:s.Z_()},privacy_policy_link_label:{label:"Privacy policy link label",validation:s.Z_()},modal_link_label:{label:"Modal link label",validation:s.Z_()},is_default:{label:"Default language",validation:s.O7()}};var g=i(34334),y=i(13083),x=i.n(y),h=i(43218),w=i.n(h),C=i(52253),j=i(32885),V=i(73825);let k={language:V.eU.EN,accept_button_label:"Accept",acknowledge_button_label:"OK",banner_description:"",banner_title:"",purpose_header:"",description:"Description",privacy_policy_link_label:"",privacy_policy_url:"",modal_link_label:"",privacy_preferences_link_label:"Privacy preferences",reject_button_label:"Reject All",save_button_label:"Save",title:"Manage your consent preferences",is_default:!0},A=e=>({...k,...e.translations?e.translations[0]:{}}),O=(e,n)=>{var i,t,o,a;let l={options:{allowHTMLDescription:!0,base64Cookie:!1,debug:!1,fidesApiUrl:"http://localhost:8080/api/v1",fidesClearCookie:!0,fidesDisableSaveApi:!0,fidesDisableNoticesServedApi:!0,fidesJsBaseUrl:"",fidesLocale:null===(t=e.translations)||void 0===t?void 0:null===(i=t[0])||void 0===i?void 0:i.language,fidesString:null,geolocationApiUrl:"",isGeolocationEnabled:!1,isOverlayEnabled:!0,isPrefetchEnabled:!1,modalLinkId:null,overlayParentId:C.Vk,preventDismissal:null!==(a=e.dismissable)&&void 0!==a&&a,privacyCenterUrl:"http://localhost:3000",showFidesBrandLink:!0},experience:{available_locales:null===(o=e.translations)||void 0===o?void 0:o.map(e=>e.language),component:e.component,experience_config:{allow_language_selection:!0,auto_detect_language:!0,auto_subdomain_cookie_deletion:!0,component:e.component,disabled:!1,dismissable:e.dismissable,id:"pri_222",is_default:!0,language:"en",layer1_button_options:V.Of.OPT_IN_OPT_OUT,properties:[],regions:["us_ca"],show_layer1_notices:!1,translations:[A(e)]},id:"pri_111",privacy_notices:n,region:"us_ca"},geolocation:{country:"US",location:"US-CA",region:"CA"}};return e.component===V.re.TCF_OVERLAY&&(l.options.fidesTcfGdprApplies=!0,l.options.tcf_enabled=!0,l.geolocation={location:"eea",country:"eea"},l.experience.experience_config.regions=["eea"],l.experience={...l.experience,region:"eea",minimal_tcf:!0,gvl:{vendors:{}},tcf_purpose_names:["Store and/or access information on a device","Use limited data to select advertising","Create profiles for personalised advertising","Use profiles to select personalised advertising","Create profiles to personalise content","Use profiles to select personalised content","Measure advertising performance","Measure content performance","Understand audiences through statistics or combinations of data from different sources","Develop and improve services","Use limited data to select content"]},l.options.apiOptions={getPrivacyExperienceFn:async()=>l.experience}),l},E=e=>{let{language:n,is_default:i,...t}=k,o=Object.keys(t).map(n=>{let i=e[n];return{[n]:void 0!==i?i:k[n]}}).reduce((e,n)=>({...e,...n}),{});return{language:e.language,is_default:e.is_default,...o}},T=(e,n,i)=>e?e.map(e=>i.find(n=>(null==n?void 0:n.id)===e)).map(e=>n===V.re.TCF_OVERLAY&&void 0!==e?{...e,translations:[{language:"en",text:null==e?void 0:e.name}]}:e).filter(e=>void 0!==e):[];var L=i(74022),Z=i(32222);let N=e=>{let{title:n,description:i}=e;return(0,t.jsx)(o.jqI,{className:"h-full items-center justify-center",children:(0,t.jsxs)(o.jqI,{className:"items-center gap-2 rounded-md p-6",style:{backgroundColor:L.Z.colors.white,boxShadow:L.Z.shadows.md,maxWidth:512},vertical:!0,"data-testid":"no-preview-notice",children:[(0,t.jsx)(o.xvT,{fontSize:"lg",fontWeight:"500",align:"center",children:n}),(0,t.jsx)(o.xvT,{color:"gray.500",align:"center",children:i})]})})};var P=e=>{var n,i;let{allPrivacyNotices:s,initialValues:d,translation:c,isMobilePreview:p}=e,u=(0,l.useRouter)().pathname.includes("/new"),{values:v}=(0,a.u6)(),[m,_]=(0,r.useState)([]),[f,b]=(0,r.useState)(!1),[g,y]=(0,r.useState)(),h=[V.re.BANNER_AND_MODAL,V.re.MODAL,V.re.TCF_OVERLAY].includes(v.component),{data:k}=(0,j.de)({pageIndex:1,pageSize:1}),A=(0,r.useMemo)(()=>(null==k?void 0:k.total)||0,[null==k?void 0:k.total]);(0,r.useEffect)(()=>{var e,n;return h&&f&&window.FidesPreview&&v.component&&((null===(e=v.privacy_notice_ids)||void 0===e?void 0:e.length)||v.component===V.re.TCF_OVERLAY)?v.component===V.re.TCF_OVERLAY?(window.FidesPreview("tcf"),y("tcf")):(window.FidesPreview("standard"),y("standard")):window.FidesPreview&&(null===(n=window.FidesPreview)||void 0===n||n.cleanup()),()=>{var e;null===(e=window.FidesPreview)||void 0===e||e.cleanup()}},[v.component,f,h,null===(n=v.privacy_notice_ids)||void 0===n?void 0:n.length,u]),(0,r.useEffect)(()=>{d&&v.component&&s&&(v.privacy_notice_ids?_(T(v.privacy_notice_ids,v.component,s)):_([]))},[v.privacy_notice_ids,s,v.component,d]);let L=(0,r.useMemo)(()=>v.component?O({...d,component:v.component},m):null,[d,m,v.component]);(0,r.useEffect)(()=>{var e,n,i,t;if(!h||!f||!window.FidesPreview||!window.Fides||!(null===(e=v.privacy_notice_ids)||void 0===e?void 0:e.length)&&v.component!==V.re.TCF_OVERLAY)return;v.component===V.re.MODAL&&(L.experience.experience_config.component=V.re.MODAL);let o=null===(n=v.translations)||void 0===n?void 0:n.find(e=>e.language===(null==c?void 0:c.language));(null===(i=v.translations)||void 0===i?void 0:i.length)&&(o?(L.experience.available_locales=[...L.experience.available_locales||[],o.language],L.experience.experience_config.translations[0]=E(o),L.options.fidesLocale=o.language):v.translations&&(L.experience.experience_config.translations[0]=E(v.translations[0]),L.options.fidesLocale=v.translations[0].language)),L.experience.experience_config.show_layer1_notices=!!(null===(t=v.privacy_notice_ids)||void 0===t?void 0:t.length)&&!!v.show_layer1_notices,L.experience.experience_config.layer1_button_options=(v.component===V.re.BANNER_AND_MODAL||v.component===V.re.TCF_OVERLAY)&&v.layer1_button_options?v.layer1_button_options:V.Of.OPT_IN_OPT_OUT,L.options.preventDismissal=!v.dismissable,L.experience.vendor_count=A,L.experience.experience_config.component=v.component,window.Fides.init(L)},[c,L,s,h,A,f,g,v.privacy_notice_ids,v.component,v.translations,v.show_layer1_notices,v.layer1_button_options,v.dismissable,d,m]);let P=document.getElementById("fides-modal");return(P&&P.removeAttribute("tabindex"),v.component)?h?(null===(i=v.privacy_notice_ids)||void 0===i?void 0:i.length)||v.component===V.re.TCF_OVERLAY?(0,t.jsxs)(o.jqI,{className:"size-full items-center justify-center overflow-scroll",children:[(0,t.jsx)(x(),{id:"4b2ec2183c5a567e",dynamic:[C.Vk,v.component!==V.re.TCF_OVERLAY?"padding-bottom: 45px;":""],children:"div#fides-overlay{z-index:5000!important}div#".concat(C.Vk,"{width:100%;padding-top:45px;").concat(v.component!==V.re.TCF_OVERLAY?"padding-bottom: 45px;":""," margin: auto;pointer-events:none}div#fides-banner-container{position:static!important;-webkit-transform:none!important;-moz-transform:none!important;-ms-transform:none!important;-o-transform:none!important;transform:none!important;-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;transition:none!important}div#fides-banner-container.fides-banner-hidden{display:none}.fides-modal-container{background-color:unset!important;position:static!important;display:none!important}.fides-modal-overlay{background-color:inherit!important;position:static!important;display:none!important}div.fides-modal-content{position:relative!important;-webkit-transform:none!important;-moz-transform:none!important;-ms-transform:none!important;-o-transform:none!important;transform:none!important;left:initial!important;top:initial!important}div.fides-modal-footer{width:unset}")}),h?(0,t.jsx)("style",{children:"div#fides-modal {\n display: flex !important;\n justify-content: center;\n background-color: unset;\n ".concat(v.component===V.re.BANNER_AND_MODAL||v.component===V.re.TCF_OVERLAY?"padding-bottom: 3rem;":"","\n }")}):null,p?(0,t.jsx)("style",{children:"\n div#fides-overlay-wrapper {\n max-width: 400px;\n margin: auto;\n }\n div.fides-modal-button-group {\n flex-direction: column !important;\n }\n div#fides-banner {\n padding: 24px;\n width: 100%;\n }\n\n div#fides-banner-description {\n margin-bottom: 0px;\n }\n\n div#fides-banner-inner div#fides-button-group {\n flex-direction: column;\n align-items: flex-start;\n gap: 12px;\n padding-top: 24px;\n }\n\n .fides-banner-button-group {\n flex-direction: column;\n width: 100%;\n }\n\n button.fides-banner-button {\n margin: 0px;\n width: 100%;\n }\n\n div#fides-banner-inner-container {\n display: flex;\n flex-direction: column;\n max-height: 50vh;\n overflow-y: auto;\n scrollbar-gutter: stable;\n }\n\n div#fides-privacy-policy-link {\n order: 1;\n width: 100%;\n }\n .fides-modal-footer {\n max-width: 100%;\n }\n .fides-banner-secondary-actions {\n flex-direction: column-reverse;\n gap: 12px;\n }\n "}):(0,t.jsx)("style",{children:"\n div#fides-banner {\n width: 60%;\n }\n @media (min-width: 768px) {\n div#fides-banner {\n width: 100%;\n }\n }\n @media (min-width: 1155px) {\n div#fides-banner {\n width: 90%;\n }\n }\n @media (min-width: 1440px) {\n div#fides-banner {\n width: 60%;\n }\n }\n "}),(0,t.jsx)(w(),{id:"fides-js-script",src:"/lib/fides-preview.js",onReady:()=>{b(!0)}}),(0,t.jsx)("div",{id:C.Vk,className:x().dynamic([["4b2ec2183c5a567e",[C.Vk,v.component!==V.re.TCF_OVERLAY?"padding-bottom: 45px;":""]]])},v.component)]}):(0,t.jsx)(N,{title:"No privacy notices added",description:'To view a preview of this experience, add a privacy notice under "Privacy Notices" to the left.'}):(0,t.jsx)(N,{title:"".concat(Z.J.get(v.component)," preview not available"),description:"There is no preview available for ".concat(Z.J.get(v.component),". You can edit the available settings\n and languages to the left.")}):(0,t.jsx)(N,{title:"No privacy experience type selected",description:"Please select a privacy experience type to preview."})},D=i(94315),M=i(5331),R=i(16277),F=i(71922),H=i(31883);let S=e=>{let n=(0,f.y3)(e),i={};return Object.entries(n).forEach(e=>{let[n,t]=e;if(t.included){let e=b[n];i[n]=t.required?e.validation.required().label(e.label):e.validation.nullable().label(e.label)}}),s.Ry().shape(i)},B=e=>{let{componentType:n}=e;return S(n)},I=s.Ry().shape({name:s.Z_().required().label("Experience name"),component:s.Z_().required().label("Experience type"),translations:s.IX().when("component",(e,n)=>{let[i]=e;return n.of(B({componentType:i}))})});var U=e=>{var n;let{passedInExperience:i,passedInTranslations:s}=e,[b]=(0,D.mJ)(),[y]=(0,D.$d)(),x=(0,o.pmc)(),[h,w]=(0,r.useState)(!1),C=(0,l.useRouter)(),{data:j}=(0,_.tB)({api_set:!1}),V=null==j?void 0:null===(n=j.plus_consent_settings)||void 0===n?void 0:n.enable_translations,k=(0,d.C)(g.Zp),A=(0,d.C)(g.G1);(0,g.Ah)({page:k,size:A});let O=(0,d.C)(g.fJ),E=(0,d.C)(F.sX),T=i?{...f.DD,...(0,f.Uv)(i)}:f.DD,L=async e=>{var n,t;let o;e.privacy_notice_ids=null===(n=e.privacy_notice_ids)||void 0===n?void 0:n.filter(e=>"tcf_purposes_placeholder"!==e),T.tcf_configuration_id&&!e.tcf_configuration_id&&(e.tcf_configuration_id=null);let a={...e,disabled:null===(t=null==i?void 0:i.disabled)||void 0===t||t,allow_language_selection:e.translations&&e.translations.length>1};if(i){let{component:e,...n}=a;o=await y({...n,id:i.id})}else o=await b(a);(0,H.D4)(o)?x((0,m.Vo)((0,c.e$)(o.error))):(x((0,m.t5)("Privacy experience successfully ".concat(i?"updated":"created"))),C.push(v.w0))},[Z,N]=(0,r.useState)(void 0),[S,B]=(0,r.useState)(!1);return(0,t.jsx)(a.J9,{initialValues:T,enableReinitialize:!0,onSubmit:L,validationSchema:I,children:(0,t.jsx)(a.l0,{style:{height:"100vh"},children:(0,t.jsxs)(o.jqI,{className:"size-full","data-testid":"privacy-experience-detail-page",children:[Z?(0,t.jsx)(R.Z,{translation:Z,translationsEnabled:V,isOOB:S,onReturnToMainForm:()=>{N(void 0),B(!1)}}):(0,t.jsx)(M.d0,{allPrivacyNotices:E,translationsEnabled:V,onSelectTranslation:e=>{N({...e,name:(0,f.Go)(e,O)})},onCreateTranslation:e=>{let n=null==s?void 0:s.find(n=>n.language===e);return n&&B(!0),null!=n?n:{language:e,is_default:!1}}}),(0,t.jsxs)(o.jqI,{vertical:!0,className:"w-full overflow-y-hidden",style:{backgroundColor:o.rSc.colors.gray[50]},children:[(0,t.jsxs)(o.jqI,{className:"flex-row items-center p-4",style:{backgroundColor:o.rSc.colors.white,borderBottom:"1px solid ".concat(o.rSc.colors.gray[100])},children:[(0,t.jsx)(o.xvT,{fontSize:"md",fontWeight:"semibold",children:"PREVIEW"}),(0,t.jsx)(o.LZC,{}),(0,t.jsxs)(o.y02.Group,{onChange:e=>w(e.target.value),defaultValue:!1,children:[(0,t.jsx)(o.y02.Button,{value:!0,title:"View mobile preview",children:(0,t.jsx)(u,{})}),(0,t.jsx)(o.y02.Button,{value:!1,title:"View desktop preview",children:(0,t.jsx)(p,{})})]})]}),(0,t.jsx)(P,{allPrivacyNotices:E,initialValues:T,translation:Z,isMobilePreview:h})]})]})})})}},32222:function(e,n,i){i.d(n,{J:function(){return t}});let t=new Map([["overlay","Overlay"],["privacy_center","Privacy center"],["tcf_overlay","TCF overlay"],["modal","Modal"],["banner_and_modal","Banner and modal"],["headless","Headless"]])},31883:function(e,n,i){i.d(n,{Bw:function(){return t.Bw},D4:function(){return t.D4}});var t=i(19043)}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[203],{59969:function(e,t,i){var n=i(24246),r=i(13577);i(27378);var l=i(8557);t.Z=e=>{let{daysLeft:t,includeText:i,status:s}=e;if(!t||s===l.q.COMPLETE||s===l.q.CANCELED||s===l.q.DENIED||s===l.q.IDENTITY_UNVERIFIED)return(0,n.jsx)("span",{children:"-"});let a="";switch(!0){case t>=10:a="success";break;case t<10&&t>4:a="warning";break;case t<5:a="error"}return(0,n.jsx)(r.j8w,{color:a,children:i?"".concat(t," days left"):t})}},18225:function(e,t,i){var n=i(24246),r=i(13577);t.Z=e=>{let{alignment:t="center",...i}=e;return(0,n.jsx)(r.kCb,{boxSize:"full",align:"center",justify:t,children:(0,n.jsx)(r.$jN,{color:"primary",...i})})}},58754:function(e,t,i){var n=i(24246),r=i(13577),l=i(70788);t.Z=e=>{let{heading:t,breadcrumbItems:i,isSticky:s=!0,children:a,rightContent:d,style:o,...c}=e;return(0,n.jsxs)("div",{...c,style:s?{position:"sticky",top:"-24px",paddingTop:"24px",paddingBottom:"24px",paddingLeft:"40px",marginLeft:"-40px",paddingRight:"40px",marginRight:"-40px",marginTop:"-24px",left:0,zIndex:20,backgroundColor:"white",...o}:{paddingBottom:"24px",...o},children:[(0,n.jsxs)(r.jqI,{justify:"space-between",children:["string"==typeof t?(0,n.jsx)(r.lQT,{className:i||a?"pb-4":void 0,level:1,"data-testid":"page-heading",children:t}):t,d&&(0,n.jsx)("div",{"data-testid":"page-header-right-content",children:d})]}),!!i&&(0,n.jsx)(l.m,{className:a?"pb-4":void 0,items:i,"data-testid":"page-breadcrumb"}),a]})}},19904:function(e,t,i){i.d(t,{Tg:function(){return s}});var n=i(24246),r=i(16134),l=i(31793);let s=e=>(0,r.C)(l.uu).filter(t=>e.includes(t)).length>0;t.ZP=e=>{let{scopes:t,children:i}=e;return s(t)?(0,n.jsx)(n.Fragment,{children:i}):null}},14047:function(e,t,i){i.d(t,{H:function(){return l},V:function(){return n.V}});var n=i(84306),r=i(812);let l=()=>{let{errorAlert:e}=(0,n.V)();return{handleError:t=>{let i="An unexpected error occurred. Please try again.";(0,r.Ot)(t)?i=t.data.detail:(0,r.tB)(t)&&(i=t.data.detail[0].msg),e(i)}}}},84306:function(e,t,i){i.d(t,{V:function(){return l}});var n=i(24246),r=i(13577);let l=()=>{let e=(0,r.pmc)();return{errorAlert:(t,i,l)=>{let s={...l,position:(null==l?void 0:l.position)||"top",render:e=>{let{onClose:l}=e;return(0,n.jsxs)(r.bZj,{alignItems:"normal",status:"error","data-testid":"error-alert",children:[(0,n.jsx)(r.zMQ,{}),(0,n.jsxs)(r.xuv,{children:[i&&(0,n.jsx)(r.CdC,{children:i}),(0,n.jsx)(r.XaZ,{children:t})]}),(0,n.jsx)(r.PZ7,{onClick:l,position:"relative",right:0,size:"sm",top:-1})]})}};(null==l?void 0:l.id)&&e.isActive(l.id)?e.update(l.id,s):e(s)},successAlert:(t,i,l)=>{let s={...l,position:(null==l?void 0:l.position)||"top",render:e=>{let{onClose:l}=e;return(0,n.jsxs)(r.bZj,{alignItems:"normal",status:"success",variant:"subtle","data-testid":"success-alert",children:[(0,n.jsx)(r.zMQ,{}),(0,n.jsxs)(r.xuv,{children:[i&&(0,n.jsx)(r.CdC,{children:i}),(0,n.jsx)(r.XaZ,{children:t})]}),(0,n.jsx)(r.PZ7,{onClick:l,position:"relative",right:0,size:"sm",top:-1})]})}};(null==l?void 0:l.id)&&e.isActive(l.id)?e.update(l.id,s):e(s)}}}},70788:function(e,t,i){i.d(t,{m:function(){return o}});var n=i(24246),r=i(13577),l=i(79894),s=i.n(l),a=i(27378);let{Text:d}=r.AntTypography,o=e=>{let{items:t,...i}=e,l=(0,a.useMemo)(()=>null==t?void 0:t.map((e,i)=>{let l=i===t.length-1,a={...e},o=a.onClick&&!a.href;return("string"==typeof a.title&&(a.title=(0,n.jsx)(d,{style:{color:"inherit",maxWidth:l?void 0:400},ellipsis:!l,children:a.title})),o)?a.title=(0,n.jsx)(r.wpx,{type:"text",size:"small",icon:a.icon,onClick:a.onClick,className:"ant-breadcrumb-link -mt-px px-1 text-inherit",children:a.title}):(a.icon&&(a.title=(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("span",{className:"anticon align-text-bottom",children:a.icon}),a.title]})),a.href&&a.title&&(a.title=(0,n.jsx)(s(),{href:a.href,className:"ant-breadcrumb-link",children:a.title}),delete a.href)),a}),[t]);return(0,n.jsx)(r.zrq,{items:l,...i})}},57526:function(e,t,i){var n=i(24246),r=i(13577),l=i(27378);t.Z=e=>{let{isOpen:t,onClose:i,onApproveRequest:s,isLoading:a,subjectRequest:d}=e,{identity:o,identity_verified_at:c,custom_privacy_request_fields:u}=d,h=(0,l.useCallback)(()=>{s().then(()=>{i()})},[s,i]);return(0,n.jsxs)(r.u_l,{isOpen:t,onClose:i,size:"lg",isCentered:!0,children:[(0,n.jsx)(r.ZAr,{}),(0,n.jsxs)(r.hzk,{children:[(0,n.jsx)(r.xBx,{children:"Privacy request approval"}),(0,n.jsxs)(r.fef,{paddingTop:0,paddingBottom:0,children:[(0,n.jsx)(r.xvT,{color:"gray.500",fontSize:"14px",marginBottom:4,children:"Are you sure you want to approve this privacy request?"}),(0,n.jsxs)(r.QI$,{children:[Object.entries(o).filter(e=>{let[,{value:t}]=e;return null!==t}).map(e=>{let[t,{value:i,label:l}]=e;return(0,n.jsx)(r.HCh,{children:(0,n.jsxs)(r.kCb,{alignItems:"flex-start",children:[(0,n.jsxs)(r.xvT,{mr:2,fontSize:"sm",color:"gray.900",fontWeight:"500",children:[l,":"]}),(0,n.jsx)(r.xvT,{color:"gray.600",fontWeight:"500",fontSize:"sm",mr:2,children:i}),"(",c?"Verified":"Unverified",")"]},t)},t)}),u&&Object.entries(u).filter(e=>{let[,t]=e;return t.value}).map(e=>{let[t,i]=e;return(0,n.jsx)(r.HCh,{children:(0,n.jsxs)(r.kCb,{alignItems:"flex-start",children:[(0,n.jsxs)(r.xvT,{mr:2,fontSize:"sm",color:"gray.900",fontWeight:"500",children:[i.label,":"]}),(0,n.jsxs)(r.xvT,{color:"gray.600",fontWeight:"500",fontSize:"sm",mr:2,children:[Array.isArray(i.value)?i.value.join(", "):i.value," "]}),"(Unverified)"]},t)},t)})]})]}),(0,n.jsx)(r.mzw,{children:(0,n.jsxs)(r.MIq,{columns:2,width:"100%",children:[(0,n.jsx)(r.wpx,{onClick:i,className:"mr-3","data-testid":"cancel-btn",children:"Cancel"}),(0,n.jsx)(r.wpx,{type:"primary","data-testid":"continue-btn",onClick:h,loading:a,children:"Confirm"})]})})]})]})}},66548:function(e,t,i){var n=i(24246),r=i(40324),l=i(13577),s=i(34090),a=i(27378),d=i(55484);let o={denialReason:""};t.Z=e=>{let{isOpen:t,onClose:i,onDenyRequest:c}=e,u=(0,a.useCallback)((e,t)=>{let{setSubmitting:n}=t;c(e.denialReason).then(()=>{n(!1),i()})},[c,i]);return(0,n.jsxs)(l.u_l,{isOpen:t,onClose:i,isCentered:!0,returnFocusOnClose:!1,children:[(0,n.jsx)(l.ZAr,{}),(0,n.jsx)(l.hzk,{width:"100%",maxWidth:"456px","data-testid":"deny-privacy-request-modal",children:(0,n.jsx)(s.J9,{initialValues:o,validationSchema:d.Ry({denialReason:d.Z_().required().label("Reason for denial")}),onSubmit:u,children:e=>{let{isSubmitting:t,dirty:a,isValid:d}=e;return(0,n.jsxs)(s.l0,{children:[(0,n.jsx)(l.xBx,{children:"Privacy request denial"}),(0,n.jsx)(l.fef,{color:"gray.500",fontSize:"14px",children:"Please enter a reason for denying this privacy request. Please note: this can be seen by the user in their notification email."}),(0,n.jsx)(l.fef,{children:(0,n.jsx)(r.Ks,{name:"denialReason",textAreaProps:{focusBorderColor:"primary.600",resize:"none"}})}),(0,n.jsxs)(l.mzw,{className:"flex w-full gap-4",children:[(0,n.jsx)(l.wpx,{disabled:t,onClick:i,className:"grow",children:"Cancel"}),(0,n.jsx)(l.wpx,{htmlType:"submit",type:"primary",disabled:!a||!d,loading:t,className:"grow","data-testid":"deny-privacy-request-modal-btn",children:"Confirm"})]})]})}})})]})}},45489:function(e,t,i){i.d(t,{Z:function(){return r}});var n=i(90867);let r=e=>{let{subjectRequest:t}=e,[i,r]=(0,n.RW)({fixedCacheKey:t.id}),[l,s]=(0,n.F1)({fixedCacheKey:t.id}),[a,d]=(0,n.rC)({fixedCacheKey:t.id}),o=s.isLoading||r.isLoading;return{approveRequest:i,approveRequestResult:r,denyRequest:l,denyRequestResult:s,handleApproveRequest:()=>i(t),handleDenyRequest:e=>l({id:t.id,reason:e}),handleDeleteRequest:()=>a(t),softDeleteRequestResult:d,isLoading:o}}},72281:function(e,t,i){i.d(t,{G:function(){return a},d:function(){return d}});var n=i(86677),r=i(27378),l=i(19904),s=i(73825);let a={REQUEST:"request",MANUAL_TASK:"manual-tasks"},d=()=>{let e=(0,n.useRouter)(),t=(0,l.Tg)([s.Sh.PRIVACY_REQUEST_READ]),i=(0,l.Tg)([s.Sh.MANUAL_FIELD_READ_OWN,s.Sh.MANUAL_FIELD_READ_ALL]),d=(0,r.useMemo)(()=>({request:t,manualTask:i}),[t,i]),[o,c]=(0,r.useState)(d.request?a.REQUEST:a.MANUAL_TASK),u=(0,r.useCallback)(()=>{let{tab:t}=e.query;return t&&"string"==typeof t&&Object.values(a).includes(t)?t:null},[e.query]),h=(0,r.useCallback)(t=>{e.replace({pathname:e.pathname,query:{tab:t}},void 0,{shallow:!0})},[e]);return(0,r.useEffect)(()=>{if(!e.isReady)return;let t=u();t&&(t===a.REQUEST||t===a.MANUAL_TASK&&d.manualTask)&&c(t)},[e.isReady,e.query,d,u,h]),{activeTab:o,handleTabChange:(0,r.useCallback)(e=>{Object.values(a).includes(e)&&(c(e),h(e))},[h]),availableTabs:d}}}}]);
|