ethyca-fides 2.69.2rc2__py2.py3-none-any.whl → 2.69.3b1__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.69.2rc2.dist-info → ethyca_fides-2.69.3b1.dist-info}/METADATA +1 -1
- {ethyca_fides-2.69.2rc2.dist-info → ethyca_fides-2.69.3b1.dist-info}/RECORD +231 -218
- fides/_version.py +3 -3
- fides/api/alembic/migrations/versions/30369bb8ae01_add_webmonitorgroupjob_model.py +67 -0
- fides/api/alembic/migrations/versions/67d0e389b003_update_consentstatus_enum.py +47 -0
- fides/api/alembic/migrations/versions/f36ce1bde293_add_system_groups.py +132 -0
- fides/api/api/v1/endpoints/privacy_request_endpoints.py +3 -5
- fides/api/api/v1/endpoints/system.py +140 -55
- fides/api/api/v1/endpoints/user_endpoints.py +3 -3
- fides/api/db/base.py +2 -0
- fides/api/main.py +2 -0
- fides/api/models/asset.py +2 -0
- fides/api/models/detection_discovery/web_monitor.py +61 -0
- fides/api/models/sql_models.py +8 -0
- fides/api/models/system_group.py +85 -0
- fides/api/schemas/saas/saas_config.py +2 -17
- fides/api/schemas/saas/strategy_configuration.py +12 -0
- fides/api/schemas/system.py +8 -0
- fides/api/service/async_dsr/async_dsr_service.py +130 -10
- fides/api/service/async_dsr/async_dsr_strategy.py +5 -0
- fides/api/service/async_dsr/async_dsr_strategy_callback.py +16 -0
- fides/api/service/async_dsr/async_dsr_strategy_factory.py +63 -0
- fides/api/service/async_dsr/async_dsr_strategy_polling.py +94 -0
- fides/api/service/connectors/saas_connector.py +25 -7
- fides/api/service/deps.py +7 -0
- fides/api/service/privacy_request/request_service.py +30 -21
- fides/api/service/strategy.py +6 -3
- fides/api/task/graph_runners.py +2 -32
- fides/api/task/graph_task.py +5 -4
- fides/api/task/scheduler_utils.py +39 -0
- fides/api/util/filter_utils.py +0 -3
- fides/config/execution_settings.py +0 -4
- fides/service/system/__init__.py +0 -0
- fides/service/system/system_service.py +138 -0
- fides/ui-build/static/admin/404.html +1 -1
- fides/ui-build/static/admin/_next/static/_b75ACzlGNz3tZqGUPTE5/_buildManifest.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/{1345-5e1c5b66e25c566e.js → 1345-1961771e9619db39.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/{1817-0ca16d288fad916d.js → 1817-9423665774c2c08f.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/1896-49010da5c2705fc5.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/{3620-602eb74dc896d556.js → 3620-34355b0c44325537.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/3642-c052564812532324.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/{3729-c17ac8031a4c4fd1.js → 3729-c8accd71498f6fe4.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/{3855-ef5194cdb228beb6.js → 3855-0565d44d150c985a.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/{3872-f78dec02f0d959ae.js → 3872-c022bb7259a9f323.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/{4164-355644b916ae0094.js → 4164-cadb4c6528662248.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/{4608-be8cba73f5d7c326.js → 4608-caa9cb70fb66ac99.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/{4786-61154adf88e448e1.js → 4786-d2b03ba5c82a02ed.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/{4831-fd99c0b3784de128.js → 4831-c0d20b2a0b7332bb.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/{4844-46324c3d848b8b6a.js → 4844-e5064a161a7e5a12.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/{5258-b0de22a8521686ab.js → 5258-0062e0a1e4f8c03e.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/{5487-02d00bad7c6830e0.js → 5487-46774dc9df554af1.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/{6084-c153669d5567e242.js → 6084-2c7b81cbcae7e3b4.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/{6853-b17673391117c976.js → 6853-8fb39280a8f0eb89.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/6954-3b26ff8259c4d5c3.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/{7476-45c5088baa8b66af.js → 7476-fdd0eb08a12e0334.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/{787-a8c7eab617e2fceb.js → 787-f2eca25837ff7305.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/{79-65674011d455af4d.js → 79-68834fd07d69f428.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/{8002-24af20d679efc04e.js → 8002-193a97fe4de8b779.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/{9046-712156d461165f56.js → 9046-1afcfb1c4dbdd6c6.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/{9951-a88367a129b724ba.js → 9951-0c8a80f01e431957.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/{_app-fcdad91f6f66292b.js → _app-a653cee14ce2366b.js} +9 -9
- fides/ui-build/static/admin/_next/static/chunks/pages/{add-systems-bd0d82078e67cac3.js → add-systems-0a2b2f4a30245089.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/consent/{privacy-experience-9dda4de5ec580279.js → privacy-experience-dff842dbed2bc6c8.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/consent/privacy-notices-23d3e50db42f31b3.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/consent/{reporting-28b192e2c074b0f3.js → reporting-75be0acd400cf527.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/{data-catalog-30108b00ac769fc3.js → data-catalog-9fa11c01b44ba8f1.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/action-center/[monitorId]/[systemId]-fb16cb8fd2b3826f.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/action-center/[monitorId]-a481a5be96dede96.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/{action-center-9a81d42a474e1e48.js → action-center-6c65b86a61340753.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/{activity-b6ae7adb8ef0b525.js → activity-7fe1ca395914f77f.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/dataset/{new-e32fccc4ca520d2b.js → new-85b28db67d96f201.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/{dataset-7c59a6abf6ba6207.js → dataset-409fe1a086fb7d38.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/datastore-connection/{[id]-927b7e476c4b47d0.js → [id]-785205655317b1d3.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/datastore-connection/{new-cbe100d50df34285.js → new-a6985f77afbc5bc0.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/{index-6cd8708106331b8d.js → index-bf3042fdbfb12b3d.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/integrations/{[id]-5d40db1ce8810e1d.js → [id]-e545f8ef5c945f45.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/{integrations-95402b5001c07ef2.js → integrations-f297e6cdb9fe97b9.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/privacy-requests/{[id]-0f25a76dd18c5e20.js → [id]-6e864b293571a508.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/privacy-requests/configure/{messaging-ad6ad3e5bd72765d.js → messaging-0fc3f1f3b1cd6f2a.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/privacy-requests/configure/{storage-6032d82f0fc2893d.js → storage-089c166287a89166.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/{privacy-requests-baf31c3e4b081046.js → privacy-requests-73be3cfaaa95ece4.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/reporting/{datamap-6903f42a0412bfa6.js → datamap-adbea0f9fd21ff3a.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/settings/consent/[configuration_id]/{[purpose_id]-9495e2eb506606c7.js → [purpose_id]-c64b87694eda4785.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/settings/{consent-93a978443bf299db.js → consent-d502bf1e7580df06.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/settings/{custom-fields-9ecb803099082bf4.js → custom-fields-b841d63011827b43.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/settings/{locations-2e635dcd11b78224.js → locations-e29384f7a3db5221.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/settings/{organization-f547f1f33c12faf3.js → organization-88f6badc1bb38b97.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/systems/configure/[id]/{test-datasets-20b1193ed76c56b0.js → test-datasets-0366184eda09a933.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/systems-f4bf47ed2c4746ba.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/{taxonomy-4d7827fc9c46b6b8.js → taxonomy-2d9548cfa6086e8f.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/user-management/profile/{[id]-64452dfae2c5e614.js → [id]-763861f5eb207db5.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/{user-management-9cec020f89544426.js → user-management-98a3277820e232c7.js} +1 -1
- fides/ui-build/static/admin/_next/static/css/018c12b58ee7f861.css +1 -0
- fides/ui-build/static/admin/add-systems/manual.html +1 -1
- fides/ui-build/static/admin/add-systems/multiple.html +1 -1
- fides/ui-build/static/admin/add-systems.html +1 -1
- fides/ui-build/static/admin/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/privacy-requests.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/5dPuc0vV0q3Rte9dEBVGg/_buildManifest.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/3847-230bf61b053bc706.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/6954-5296188c19d7d0ac.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/consent/privacy-notices-0d4844d0b808e6e4.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/action-center/[monitorId]/[systemId]-e1ba213fb666b3f4.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/action-center/[monitorId]-6d133580045abdda.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/systems-fbc8761ef4d55516.js +0 -1
- fides/ui-build/static/admin/_next/static/css/650df9c348000a26.css +0 -1
- {ethyca_fides-2.69.2rc2.dist-info → ethyca_fides-2.69.3b1.dist-info}/WHEEL +0 -0
- {ethyca_fides-2.69.2rc2.dist-info → ethyca_fides-2.69.3b1.dist-info}/entry_points.txt +0 -0
- {ethyca_fides-2.69.2rc2.dist-info → ethyca_fides-2.69.3b1.dist-info}/licenses/LICENSE +0 -0
- {ethyca_fides-2.69.2rc2.dist-info → ethyca_fides-2.69.3b1.dist-info}/top_level.txt +0 -0
- /fides/ui-build/static/admin/_next/static/{5dPuc0vV0q3Rte9dEBVGg → _b75ACzlGNz3tZqGUPTE5}/_ssgManifest.js +0 -0
- /fides/ui-build/static/admin/_next/static/chunks/{1099-79646e64f26d62fa.js → 1099-718ce18b9bd70cdb.js} +0 -0
- /fides/ui-build/static/admin/_next/static/chunks/{2921-52328140bc420d0f.js → 2921-765918f8aa37fdb2.js} +0 -0
- /fides/ui-build/static/admin/_next/static/chunks/{3923-bb2417b8dcade7a4.js → 3923-23df37eef17d6ea2.js} +0 -0
- /fides/ui-build/static/admin/_next/static/chunks/{401-4af0a912e249d30f.js → 401-45f399d4d1325340.js} +0 -0
- /fides/ui-build/static/admin/_next/static/chunks/{4808-dd4157aa72648068.js → 4808-57c5ac15fd8b0d81.js} +0 -0
- /fides/ui-build/static/admin/_next/static/chunks/{549-38ea1d91ee2addaa.js → 549-170c96caa601e15a.js} +0 -0
- /fides/ui-build/static/admin/_next/static/chunks/{7630-7ed6c6117775dffe.js → 7630-8613916021366672.js} +0 -0
- /fides/ui-build/static/admin/_next/static/chunks/{796-9e1ca1a4030707c5.js → 796-8fbae2fc714e7a3a.js} +0 -0
- /fides/ui-build/static/admin/_next/static/chunks/{9826-dbae8dee941a7fac.js → 9826-d49a56431e896acb.js} +0 -0
- /fides/ui-build/static/admin/_next/static/chunks/pages/{404-471a6b18e712f050.js → 404-8d9c703c96662265.js} +0 -0
- /fides/ui-build/static/admin/_next/static/chunks/pages/add-systems/{manual-ace203dfacacbdc4.js → manual-adaec1ec185160af.js} +0 -0
- /fides/ui-build/static/admin/_next/static/chunks/pages/add-systems/{multiple-920fb469e0dda1d2.js → multiple-20050dbae806179d.js} +0 -0
- /fides/ui-build/static/admin/_next/static/chunks/pages/consent/configure/{add-vendors-406170eaae4329c6.js → add-vendors-7b8cec88b5ad53d1.js} +0 -0
- /fides/ui-build/static/admin/_next/static/chunks/pages/consent/{configure-7207ab23bdb36ce8.js → configure-b7b7fb3e8b2ea816.js} +0 -0
- /fides/ui-build/static/admin/_next/static/chunks/pages/consent/privacy-experience/{[id]-f80cf2d3966816fd.js → [id]-c30382719d6f797a.js} +0 -0
- /fides/ui-build/static/admin/_next/static/chunks/pages/consent/privacy-notices/{[id]-b378576cba255609.js → [id]-074cdbfc678ba791.js} +0 -0
- /fides/ui-build/static/admin/_next/static/chunks/pages/consent/privacy-notices/{new-2ca1de7b88094ab0.js → new-bcddda632b4df409.js} +0 -0
- /fides/ui-build/static/admin/_next/static/chunks/pages/consent/{properties-226efa1dcd41437f.js → properties-17cdca29c6d4cdd6.js} +0 -0
- /fides/ui-build/static/admin/_next/static/chunks/pages/{consent-3e8bdefe714254ec.js → consent-9b4e0a08ae6216c7.js} +0 -0
- /fides/ui-build/static/admin/_next/static/chunks/pages/data-catalog/[systemId]/projects/[projectUrn]/{[resourceUrn]-2c29ff7a01198f30.js → [resourceUrn]-d0dbba5bff738b57.js} +0 -0
- /fides/ui-build/static/admin/_next/static/chunks/pages/data-catalog/[systemId]/projects/{[projectUrn]-04cfe2cfba7b7cd8.js → [projectUrn]-8ffd8d148269d323.js} +0 -0
- /fides/ui-build/static/admin/_next/static/chunks/pages/data-catalog/[systemId]/{projects-5f2d7b24804f861f.js → projects-25c5916c8357f98d.js} +0 -0
- /fides/ui-build/static/admin/_next/static/chunks/pages/data-catalog/[systemId]/resources/{[resourceUrn]-8eb581024bc0172f.js → [resourceUrn]-cfc118e68285405c.js} +0 -0
- /fides/ui-build/static/admin/_next/static/chunks/pages/data-catalog/[systemId]/{resources-de704de849960f01.js → resources-9b7e4b86b1e8a40a.js} +0 -0
- /fides/ui-build/static/admin/_next/static/chunks/pages/{datamap-c7390e046b2e2b7f.js → datamap-ea1eabce2a3fc2c7.js} +0 -0
- /fides/ui-build/static/admin/_next/static/chunks/pages/dataset/[datasetId]/[collectionName]/{[...subfieldNames]-dfd71c1e9c458b89.js → [...subfieldNames]-3c629aecee30c575.js} +0 -0
- /fides/ui-build/static/admin/_next/static/chunks/pages/dataset/[datasetId]/{[collectionName]-7cdc42ec5493b83d.js → [collectionName]-a13ea13e0316d5a2.js} +0 -0
- /fides/ui-build/static/admin/_next/static/chunks/pages/dataset/{[datasetId]-e12b11ba15bc3fc1.js → [datasetId]-a6ae353b3b1536cc.js} +0 -0
- /fides/ui-build/static/admin/_next/static/chunks/pages/{datastore-connection-cce20440b177050b.js → datastore-connection-93d5c01dd927bad2.js} +0 -0
- /fides/ui-build/static/admin/_next/static/chunks/pages/messaging/{[id]-3c6dc2f6e6bae960.js → [id]-f03f1fdaa1f5a0c6.js} +0 -0
- /fides/ui-build/static/admin/_next/static/chunks/pages/messaging/{add-template-4a6d4023a7791be8.js → add-template-8f90e275e932940b.js} +0 -0
- /fides/ui-build/static/admin/_next/static/chunks/pages/{messaging-76b204c9b98d656f.js → messaging-68385a251c7ade5f.js} +0 -0
- /fides/ui-build/static/admin/_next/static/chunks/pages/poc/{ant-components-bc0e2adf6e0d3ac7.js → ant-components-fc7d652910f3ad8d.js} +0 -0
- /fides/ui-build/static/admin/_next/static/chunks/pages/poc/form-experiments/{AntForm-86ffcc1ad3fa912e.js → AntForm-fb6e6f4b276b6189.js} +0 -0
- /fides/ui-build/static/admin/_next/static/chunks/pages/poc/form-experiments/{FormikAntFormItem-ec04f595465bdf69.js → FormikAntFormItem-00869abf79950a9a.js} +0 -0
- /fides/ui-build/static/admin/_next/static/chunks/pages/poc/form-experiments/{FormikControlled-41d309754ff0c1de.js → FormikControlled-5716d749236c9f70.js} +0 -0
- /fides/ui-build/static/admin/_next/static/chunks/pages/poc/form-experiments/{FormikField-cab1f78cec7808f9.js → FormikField-d6dfb9daa3935db3.js} +0 -0
- /fides/ui-build/static/admin/_next/static/chunks/pages/poc/{forms-eb6058221403b156.js → forms-9697549bce7060be.js} +0 -0
- /fides/ui-build/static/admin/_next/static/chunks/pages/poc/{table-migration-48500551fd6a7602.js → table-migration-888656ae0bd40f62.js} +0 -0
- /fides/ui-build/static/admin/_next/static/chunks/pages/privacy-requests/{configure-d83e5bd52a638234.js → configure-5a3cd9b14a37ef27.js} +0 -0
- /fides/ui-build/static/admin/_next/static/chunks/pages/properties/{[id]-e784c05d056b2371.js → [id]-3d2a77cb07aa8dc0.js} +0 -0
- /fides/ui-build/static/admin/_next/static/chunks/pages/properties/{add-property-0a7a2db148a7561a.js → add-property-210e7e3b3d776d44.js} +0 -0
- /fides/ui-build/static/admin/_next/static/chunks/pages/{properties-da734840e4f9d04b.js → properties-18257b6a70fa8a97.js} +0 -0
- /fides/ui-build/static/admin/_next/static/chunks/pages/settings/about/{alpha-a82f3df840d5c1b5.js → alpha-b678e7577eef5e5c.js} +0 -0
- /fides/ui-build/static/admin/_next/static/chunks/pages/settings/{about-d06fb16487705b9d.js → about-3f3039c7e86cab2f.js} +0 -0
- /fides/ui-build/static/admin/_next/static/chunks/pages/settings/{domain-records-16fdd91a81074dd1.js → domain-records-50f9b26c6907d6de.js} +0 -0
- /fides/ui-build/static/admin/_next/static/chunks/pages/settings/{domains-4cdd6001e7cb9aee.js → domains-5ae0d30eb3b770ab.js} +0 -0
- /fides/ui-build/static/admin/_next/static/chunks/pages/settings/{email-templates-1914de830ce5cfc4.js → email-templates-f5924e64a15a0dc3.js} +0 -0
- /fides/ui-build/static/admin/_next/static/chunks/pages/settings/{privacy-requests-2ecc073f41628f62.js → privacy-requests-d5f8db89c7e91a02.js} +0 -0
- /fides/ui-build/static/admin/_next/static/chunks/pages/settings/{regulations-7c02e469d8c5bd74.js → regulations-46d06037fcadaf00.js} +0 -0
- /fides/ui-build/static/admin/_next/static/chunks/pages/systems/configure/{[id]-6e15332935f6b538.js → [id]-a659f18a30ef89f3.js} +0 -0
- /fides/ui-build/static/admin/_next/static/chunks/{webpack-678e89d68dbcd94f.js → webpack-606818148553db7b.js} +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6853],{35287:function(a,n,_){var e=_(24246),i=_(96306),F=_(88038),t=_.n(F);_(27378),n.Z=a=>{let{children:n,title:_,mainProps:F}=a;return(0,e.jsxs)(i.kCb,{"data-testid":_,direction:"column",height:"calc(100vh - 48px)",width:"calc(100vw - 240px)",children:[(0,e.jsxs)(t(),{children:[(0,e.jsxs)("title",{children:["Fides Admin UI - ",_]}),(0,e.jsx)("meta",{name:"description",content:"Privacy Engineering Platform"}),(0,e.jsx)("link",{rel:"icon",href:"/favicon.ico"})]}),(0,e.jsx)(i.kCb,{px:10,py:6,as:"main",overflow:"auto",direction:"column",flex:1,minWidth:0,...F,children:n})]})}},19904:function(a,n,_){_.d(n,{Tg:function(){return t}});var e=_(24246),i=_(16134),F=_(31793);let t=a=>(0,i.C)(F.uu).filter(n=>a.includes(n)).length>0;n.ZP=a=>{let{scopes:n,children:_}=a;return t(n)?(0,e.jsx)(e.Fragment,{children:_}):null}},8411:function(a,n,_){_.d(n,{NA:function(){return F},Z8:function(){return i}});var e=_(54682);let i={[e._F.ER]:"Eritrea",[e._F.DJ]:"Djibouti",[e._F.MR]:"Mauritania",[e._F.NA]:"Namibia",[e._F.GH]:"Ghana",[e._F.SS]:"South Sudan",[e._F.SC]:"Seychelles",[e._F.IO]:"British Indian Ocean Territory",[e._F.GQ]:"Equatorial Guinea",[e._F.AO]:"Angola",[e._F.CG]:"Republic of the Congo",[e._F.BW]:"Botswana",[e._F.BI]:"Burundi",[e._F.DZ]:"Algeria",[e._F.TD]:"Chad",[e._F.NG]:"Nigeria",[e._F.TZ]:"Tanzania",[e._F.EH]:"Western Sahara",[e._F.SN]:"Senegal",[e._F.LR]:"Liberia",[e._F.ZA]:"South Africa",[e._F.CV]:"Cape Verde",[e._F.GM]:"Gambia",[e._F.SD]:"Sudan",[e._F.KM]:"Comoros",[e._F.SZ]:"Eswatini",[e._F.UG]:"Uganda",[e._F.MG]:"Madagascar",[e._F.RW]:"Rwanda",[e._F.CD]:"DR Congo",[e._F.CM]:"Cameroon",[e._F.SH]:"Saint Helena, Ascension and Tristan da Cunha",[e._F.TG]:"Togo",[e._F.MU]:"Mauritius",[e._F.NE]:"Niger",[e._F.BJ]:"Benin",[e._F.EG]:"Egypt",[e._F.LS]:"Lesotho",[e._F.ET]:"Ethiopia",[e._F.MA]:"Morocco",[e._F.YT]:"Mayotte",[e._F.BF]:"Burkina Faso",[e._F.RE]:"R\xe9union",[e._F.ST]:"S\xe3o Tom\xe9 and Pr\xedncipe",[e._F.CF]:"Central African Republic",[e._F.MZ]:"Mozambique",[e._F.MW]:"Malawi",[e._F.ML]:"Mali",[e._F.ZM]:"Zambia",[e._F.LY]:"Libya",[e._F.GW]:"Guinea-Bissau",[e._F.SO]:"Somalia",[e._F.KE]:"Kenya",[e._F.GN]:"Guinea",[e._F.ZW]:"Zimbabwe",[e._F.TN]:"Tunisia",[e._F.SL]:"Sierra Leone",[e._F.GA]:"Gabon",[e._F.CI]:"Ivory Coast",[e._F.JO]:"Jordan",[e._F.PK]:"Pakistan",[e._F.KP]:"North Korea",[e._F.MO]:"Macau",[e._F.AM]:"Armenia",[e._F.SY]:"Syria",[e._F.TJ]:"Tajikistan",[e._F.SA]:"Saudi Arabia",[e._F.KR]:"South Korea",[e._F.NP]:"Nepal",[e._F.PH]:"Philippines",[e._F.IQ]:"Iraq",[e._F.LB]:"Lebanon",[e._F.MN]:"Mongolia",[e._F.PS]:"Palestine",[e._F.YE]:"Yemen",[e._F.JP]:"Japan",[e._F.KZ]:"Kazakhstan",[e._F.LK]:"Sri Lanka",[e._F.MM]:"Myanmar",[e._F.KG]:"Kyrgyzstan",[e._F.CN]:"China",[e._F.AF]:"Afghanistan",[e._F.OM]:"Oman",[e._F.IN]:"India",[e._F.LA]:"Laos",[e._F.UZ]:"Uzbekistan",[e._F.MV]:"Maldives",[e._F.ID]:"Indonesia",[e._F.VN]:"Vietnam",[e._F.MY]:"Malaysia",[e._F.TW]:"Taiwan",[e._F.KH]:"Cambodia",[e._F.AE]:"United Arab Emirates",[e._F.HK]:"Hong Kong",[e._F.GE]:"Georgia (Country)",[e._F.BD]:"Bangladesh",[e._F.KW]:"Kuwait",[e._F.TM]:"Turkmenistan",[e._F.QA]:"Qatar",[e._F.BH]:"Bahrain",[e._F.BN]:"Brunei",[e._F.TH]:"Thailand",[e._F.BT]:"Bhutan",[e._F.SG]:"Singapore",[e._F.IL]:"Israel",[e._F.AZ]:"Azerbaijan",[e._F.TL]:"Timor-Leste",[e._F.IR]:"Iran",[e._F.TR]:"Turkey",[e._F.MK]:"North Macedonia",[e._F.IE]:"Ireland",[e._F.DK]:"Denmark",[e._F.SK]:"Slovakia",[e._F.MD]:"Moldova",[e._F.AX]:"\xc5land Islands",[e._F.PL]:"Poland",[e._F.BA]:"Bosnia and Herzegovina",[e._F.SM]:"San Marino",[e._F.CZ]:"Czechia",[e._F.EE]:"Estonia",[e._F.XK]:"Kosovo",[e._F.FO]:"Faroe Islands",[e._F.SJ]:"Svalbard and Jan Mayen",[e._F.GG]:"Guernsey",[e._F.FR]:"France",[e._F.NL]:"Netherlands",[e._F.FI]:"Finland",[e._F.PT]:"Portugal",[e._F.DE]:"Germany",[e._F.MT]:"Malta",[e._F.JE]:"Jersey",[e._F.IS]:"Iceland",[e._F.ES]:"Spain",[e._F.GI]:"Gibraltar",[e._F.NO]:"Norway",[e._F.CY]:"Cyprus",[e._F.RS]:"Serbia",[e._F.LT]:"Lithuania",[e._F.MC]:"Monaco",[e._F.LU]:"Luxembourg",[e._F.UA]:"Ukraine",[e._F.IM]:"Isle of Man",[e._F.RO]:"Romania",[e._F.BE]:"Belgium",[e._F.SE]:"Sweden",[e._F.ME]:"Montenegro",[e._F.LV]:"Latvia",[e._F.VA]:"Vatican City",[e._F.AT]:"Austria",[e._F.AL]:"Albania",[e._F.LI]:"Liechtenstein",[e._F.GR]:"Greece",[e._F.IT]:"Italy",[e._F.AD]:"Andorra",[e._F.GB]:"United Kingdom",[e._F.RU]:"Russia",[e._F.SI]:"Slovenia",[e._F.BY]:"Belarus",[e._F.CH]:"Switzerland",[e._F.HU]:"Hungary",[e._F.BG]:"Bulgaria",[e._F.HR]:"Croatia",[e._F.TC]:"Turks and Caicos Islands",[e._F.CW]:"Cura\xe7ao",[e._F.GP]:"Guadeloupe",[e._F.UM]:"United States Minor Outlying Islands",[e._F.GT]:"Guatemala",[e._F.PM]:"Saint Pierre and Miquelon",[e._F.BQ]:"Caribbean Netherlands",[e._F.GL]:"Greenland",[e._F.SX]:"Sint Maarten",[e._F.PA]:"Panama",[e._F.AW]:"Aruba",[e._F.MQ]:"Martinique",[e._F.AG]:"Antigua and Barbuda",[e._F.BM]:"Bermuda",[e._F.CU]:"Cuba",[e._F.GD]:"Grenada",[e._F.NI]:"Nicaragua",[e._F.LC]:"Saint Lucia",[e._F.KN]:"Saint Kitts and Nevis",[e._F.DO]:"Dominican Republic",[e._F.VC]:"Saint Vincent and the Grenadines",[e._F.BZ]:"Belize",[e._F.HT]:"Haiti",[e._F.JM]:"Jamaica",[e._F.BS]:"Bahamas",[e._F.MX]:"Mexico",[e._F.MF]:"Saint Martin",[e._F.SV]:"El Salvador",[e._F.BL]:"Saint Barth\xe9lemy",[e._F.AI]:"Anguilla",[e._F.MS]:"Montserrat",[e._F.VG]:"British Virgin Islands",[e._F.BB]:"Barbados",[e._F.HN]:"Honduras",[e._F.KY]:"Cayman Islands",[e._F.DM]:"Dominica",[e._F.TT]:"Trinidad and Tobago",[e._F.CR]:"Costa Rica",[e._F.SR]:"Suriname",[e._F.CX]:"Christmas Island",[e._F.WS]:"Samoa",[e._F.PF]:"French Polynesia",[e._F.AS]:"American Samoa",[e._F.NC]:"New Caledonia",[e._F.TK]:"Tokelau",[e._F.PW]:"Palau",[e._F.KI]:"Kiribati",[e._F.VU]:"Vanuatu",[e._F.PN]:"Pitcairn Islands",[e._F.CK]:"Cook Islands",[e._F.FJ]:"Fiji",[e._F.PG]:"Papua New Guinea",[e._F.MP]:"Northern Mariana Islands",[e._F.NU]:"Niue",[e._F.TV]:"Tuvalu",[e._F.NF]:"Norfolk Island",[e._F.TO]:"Tonga",[e._F.FM]:"Micronesia",[e._F.SB]:"Solomon Islands",[e._F.NR]:"Nauru",[e._F.WF]:"Wallis and Futuna",[e._F.GU]:"Guam",[e._F.AU]:"Australia",[e._F.NZ]:"New Zealand",[e._F.MH]:"Marshall Islands",[e._F.CC]:"Cocos (Keeling) Islands",[e._F.VE]:"Venezuela",[e._F.PY]:"Paraguay",[e._F.BR]:"Brazil",[e._F.CO]:"Colombia",[e._F.PE]:"Peru",[e._F.CL]:"Chile",[e._F.UY]:"Uruguay",[e._F.AR]:"Argentina",[e._F.GY]:"Guyana",[e._F.BO]:"Bolivia",[e._F.GF]:"French Guiana",[e._F.EC]:"Ecuador",[e._F.FK]:"Falkland Islands",[e._F.US_AL]:"Alabama",[e._F.US_AK]:"Alaska",[e._F.US_AZ]:"Arizona",[e._F.US_AR]:"Arkansas",[e._F.US_CA]:"California",[e._F.US_CO]:"Colorado",[e._F.US_CT]:"Connecticut",[e._F.US_DE]:"Delaware",[e._F.US_DC]:"District of Columbia (DC)",[e._F.US_FL]:"Florida",[e._F.US_GA]:"Georgia",[e._F.US_HI]:"Hawaii",[e._F.US_ID]:"Idaho",[e._F.US_IL]:"Illinois",[e._F.US_IN]:"Indiana",[e._F.US_IA]:"Iowa",[e._F.US_KS]:"Kansas",[e._F.US_KY]:"Kentucky",[e._F.US_LA]:"Louisiana",[e._F.US_ME]:"Maine",[e._F.US_MD]:"Maryland",[e._F.US_MA]:"Massachusetts",[e._F.US_MI]:"Michigan",[e._F.US_MN]:"Minnesota",[e._F.US_MS]:"Mississippi",[e._F.US_MO]:"Missouri",[e._F.US_MT]:"Montana",[e._F.US_NE]:"Nebraska",[e._F.US_NV]:"Nevada",[e._F.US_NH]:"New Hampshire",[e._F.US_NJ]:"New Jersey",[e._F.US_NM]:"New Mexico",[e._F.US_NY]:"New York",[e._F.US_NC]:"North Carolina",[e._F.US_ND]:"North Dakota",[e._F.US_OH]:"Ohio",[e._F.US_OK]:"Oklahoma",[e._F.US_OR]:"Oregon",[e._F.US_PA]:"Pennsylvania",[e._F.US_PR]:"Puerto Rico",[e._F.US_RI]:"Rhode Island",[e._F.US_SC]:"South Carolina",[e._F.US_SD]:"South Dakota",[e._F.US_TN]:"Tennessee",[e._F.US_TX]:"Texas",[e._F.US_UT]:"Utah",[e._F.US_VA]:"Virginia",[e._F.US_VI]:"United States Virgin Islands",[e._F.US_VT]:"Vermont",[e._F.US_WA]:"Washington",[e._F.US_WV]:"West Virginia",[e._F.US_WI]:"Wisconsin",[e._F.US_WY]:"Wyoming",[e._F.CA_AB]:"Alberta",[e._F.CA_BC]:"British Columbia",[e._F.CA_MB]:"Manitoba",[e._F.CA_NB]:"New Brunswick",[e._F.CA_NL]:"Newfoundland and Labrador",[e._F.CA_NS]:"Nova Scotia",[e._F.CA_ON]:"Ontario",[e._F.CA_PE]:"Prince Edward Island",[e._F.CA_QC]:"Quebec",[e._F.CA_SK]:"Saskatchewan",[e._F.CA_NT]:"Northwest Territories",[e._F.CA_NU]:"Nunavut",[e._F.CA_YT]:"Yukon",[e._F.CA]:"Canada",[e._F.US]:"United States",[e._F.MEXICO_CENTRAL_AMERICA]:"Mexico and Central America",[e._F.CARIBBEAN]:"Caribbean",[e._F.EEA]:"European Economic Area (EEA)",[e._F.NON_EEA]:"Non European Economic Area",[e._F.GLOBAL]:"Global"},F=new Map(Object.entries(i));Object.entries(i).map(a=>({value:a[0],label:a[1]}))},22286:function(a,n,_){_.d(n,{JA:function(){return l},JL:function(){return u},Mq:function(){return d},PS:function(){return C},jN:function(){return c}});var e=_(24246),i=_(96306),F=_(27378),t=_(8411),r=_(72625),o=_(65063),s=_(71922);let l=a=>{var n;let _=null!==(n=o.ye.get(a))&&void 0!==n?n:a;return(0,e.jsx)(i.j8w,{"data-testid":"status-badge",style:{textTransform:"uppercase"},children:_})},u=a=>{if(!a)return[];let n=[];return a.forEach(a=>{let _=(0,i.QCN)(a),e=_?(0,i.c1K)({isoEntry:_,showFlag:!0}):t.NA.get(a);void 0!==e&&n.push(e)}),n},d=a=>{if(!a)return[];let n=[];return a.forEach(a=>{let _=a.name;void 0!==_&&n.push(_)}),n},S={available:{color:"warning",tooltip:"This notice is associated with a system + data use and can be enabled"},enabled:{color:"success",tooltip:"This notice is active and available for consumers"},inactive:{color:"default",tooltip:"This privacy notice cannot be enabled because it either does not have a data use or the linked data use has not been assigned to a system"}},c=a=>{let n;let{row:_}=a,{systems_applicable:F,disabled:t,data_uses:r}=_.original,{tooltip:o,...s}=(n=r&&F?t?"available":"enabled":"inactive")?S[n]:{color:"default"};return(0,e.jsx)(i.esZ,{title:o,children:(0,e.jsx)("span",{children:(0,e.jsx)(i.j8w,{color:s.color,"data-testid":"status-badge",style:{textTransform:"uppercase"},children:n})})})},C=a=>{let{row:n,getValue:_}=a,[i]=(0,s.vK)(),[t,o]=(0,F.useState)(!1),l=_(),u=async a=>{o(!0);let _=await i({id:n.original.id,disabled:!a});return o(!1),_},{systems_applicable:d,disabled:S,data_uses:c}=n.original;return(0,e.jsx)(r.S1,{enabled:!l,isDisabled:S&&!d||!c,onToggle:u,title:"Disable privacy notice",message:"Are you sure you want to disable this privacy notice? Disabling this notice means your users will no longer see this explanation about your data uses which is necessary to ensure compliance.",loading:t})}},65063:function(a,n,_){_.d(n,{B8:function(){return F},Ep:function(){return t},ye:function(){return i}});var e=_(54682);let i=new Map([[e.J7.OPT_IN,"Opt in"],[e.J7.NOTICE_ONLY,"Notice only"],[e.J7.OPT_OUT,"Opt out"]]),F=new Map([[e.QT.SYSTEM_WIDE,"System wide"],[e.QT.FRONTEND,"Front end"],[e.QT.NOT_APPLICABLE,"Not applicable"]]),t=new Map([["gpp_us_national","GPP US National"],["gpp_us_state","GPP US State"]])}}]);
|
|
1
|
+
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6853],{35287:function(a,n,_){var e=_(24246),i=_(96306),F=_(88038),t=_.n(F);_(27378),n.Z=a=>{let{children:n,title:_,mainProps:F}=a;return(0,e.jsxs)(i.kCb,{"data-testid":_,direction:"column",height:"calc(100vh - 48px)",width:"calc(100vw - 240px)",children:[(0,e.jsxs)(t(),{children:[(0,e.jsxs)("title",{children:["Fides Admin UI - ",_]}),(0,e.jsx)("meta",{name:"description",content:"Privacy Engineering Platform"}),(0,e.jsx)("link",{rel:"icon",href:"/favicon.ico"})]}),(0,e.jsx)(i.kCb,{px:10,py:6,as:"main",overflow:"auto",direction:"column",flex:1,minWidth:0,...F,children:n})]})}},19904:function(a,n,_){_.d(n,{Tg:function(){return t}});var e=_(24246),i=_(16134),F=_(31793);let t=a=>(0,i.C)(F.uu).filter(n=>a.includes(n)).length>0;n.ZP=a=>{let{scopes:n,children:_}=a;return t(n)?(0,e.jsx)(e.Fragment,{children:_}):null}},8411:function(a,n,_){_.d(n,{NA:function(){return F},Z8:function(){return i}});var e=_(21910);let i={[e._F.ER]:"Eritrea",[e._F.DJ]:"Djibouti",[e._F.MR]:"Mauritania",[e._F.NA]:"Namibia",[e._F.GH]:"Ghana",[e._F.SS]:"South Sudan",[e._F.SC]:"Seychelles",[e._F.IO]:"British Indian Ocean Territory",[e._F.GQ]:"Equatorial Guinea",[e._F.AO]:"Angola",[e._F.CG]:"Republic of the Congo",[e._F.BW]:"Botswana",[e._F.BI]:"Burundi",[e._F.DZ]:"Algeria",[e._F.TD]:"Chad",[e._F.NG]:"Nigeria",[e._F.TZ]:"Tanzania",[e._F.EH]:"Western Sahara",[e._F.SN]:"Senegal",[e._F.LR]:"Liberia",[e._F.ZA]:"South Africa",[e._F.CV]:"Cape Verde",[e._F.GM]:"Gambia",[e._F.SD]:"Sudan",[e._F.KM]:"Comoros",[e._F.SZ]:"Eswatini",[e._F.UG]:"Uganda",[e._F.MG]:"Madagascar",[e._F.RW]:"Rwanda",[e._F.CD]:"DR Congo",[e._F.CM]:"Cameroon",[e._F.SH]:"Saint Helena, Ascension and Tristan da Cunha",[e._F.TG]:"Togo",[e._F.MU]:"Mauritius",[e._F.NE]:"Niger",[e._F.BJ]:"Benin",[e._F.EG]:"Egypt",[e._F.LS]:"Lesotho",[e._F.ET]:"Ethiopia",[e._F.MA]:"Morocco",[e._F.YT]:"Mayotte",[e._F.BF]:"Burkina Faso",[e._F.RE]:"R\xe9union",[e._F.ST]:"S\xe3o Tom\xe9 and Pr\xedncipe",[e._F.CF]:"Central African Republic",[e._F.MZ]:"Mozambique",[e._F.MW]:"Malawi",[e._F.ML]:"Mali",[e._F.ZM]:"Zambia",[e._F.LY]:"Libya",[e._F.GW]:"Guinea-Bissau",[e._F.SO]:"Somalia",[e._F.KE]:"Kenya",[e._F.GN]:"Guinea",[e._F.ZW]:"Zimbabwe",[e._F.TN]:"Tunisia",[e._F.SL]:"Sierra Leone",[e._F.GA]:"Gabon",[e._F.CI]:"Ivory Coast",[e._F.JO]:"Jordan",[e._F.PK]:"Pakistan",[e._F.KP]:"North Korea",[e._F.MO]:"Macau",[e._F.AM]:"Armenia",[e._F.SY]:"Syria",[e._F.TJ]:"Tajikistan",[e._F.SA]:"Saudi Arabia",[e._F.KR]:"South Korea",[e._F.NP]:"Nepal",[e._F.PH]:"Philippines",[e._F.IQ]:"Iraq",[e._F.LB]:"Lebanon",[e._F.MN]:"Mongolia",[e._F.PS]:"Palestine",[e._F.YE]:"Yemen",[e._F.JP]:"Japan",[e._F.KZ]:"Kazakhstan",[e._F.LK]:"Sri Lanka",[e._F.MM]:"Myanmar",[e._F.KG]:"Kyrgyzstan",[e._F.CN]:"China",[e._F.AF]:"Afghanistan",[e._F.OM]:"Oman",[e._F.IN]:"India",[e._F.LA]:"Laos",[e._F.UZ]:"Uzbekistan",[e._F.MV]:"Maldives",[e._F.ID]:"Indonesia",[e._F.VN]:"Vietnam",[e._F.MY]:"Malaysia",[e._F.TW]:"Taiwan",[e._F.KH]:"Cambodia",[e._F.AE]:"United Arab Emirates",[e._F.HK]:"Hong Kong",[e._F.GE]:"Georgia (Country)",[e._F.BD]:"Bangladesh",[e._F.KW]:"Kuwait",[e._F.TM]:"Turkmenistan",[e._F.QA]:"Qatar",[e._F.BH]:"Bahrain",[e._F.BN]:"Brunei",[e._F.TH]:"Thailand",[e._F.BT]:"Bhutan",[e._F.SG]:"Singapore",[e._F.IL]:"Israel",[e._F.AZ]:"Azerbaijan",[e._F.TL]:"Timor-Leste",[e._F.IR]:"Iran",[e._F.TR]:"Turkey",[e._F.MK]:"North Macedonia",[e._F.IE]:"Ireland",[e._F.DK]:"Denmark",[e._F.SK]:"Slovakia",[e._F.MD]:"Moldova",[e._F.AX]:"\xc5land Islands",[e._F.PL]:"Poland",[e._F.BA]:"Bosnia and Herzegovina",[e._F.SM]:"San Marino",[e._F.CZ]:"Czechia",[e._F.EE]:"Estonia",[e._F.XK]:"Kosovo",[e._F.FO]:"Faroe Islands",[e._F.SJ]:"Svalbard and Jan Mayen",[e._F.GG]:"Guernsey",[e._F.FR]:"France",[e._F.NL]:"Netherlands",[e._F.FI]:"Finland",[e._F.PT]:"Portugal",[e._F.DE]:"Germany",[e._F.MT]:"Malta",[e._F.JE]:"Jersey",[e._F.IS]:"Iceland",[e._F.ES]:"Spain",[e._F.GI]:"Gibraltar",[e._F.NO]:"Norway",[e._F.CY]:"Cyprus",[e._F.RS]:"Serbia",[e._F.LT]:"Lithuania",[e._F.MC]:"Monaco",[e._F.LU]:"Luxembourg",[e._F.UA]:"Ukraine",[e._F.IM]:"Isle of Man",[e._F.RO]:"Romania",[e._F.BE]:"Belgium",[e._F.SE]:"Sweden",[e._F.ME]:"Montenegro",[e._F.LV]:"Latvia",[e._F.VA]:"Vatican City",[e._F.AT]:"Austria",[e._F.AL]:"Albania",[e._F.LI]:"Liechtenstein",[e._F.GR]:"Greece",[e._F.IT]:"Italy",[e._F.AD]:"Andorra",[e._F.GB]:"United Kingdom",[e._F.RU]:"Russia",[e._F.SI]:"Slovenia",[e._F.BY]:"Belarus",[e._F.CH]:"Switzerland",[e._F.HU]:"Hungary",[e._F.BG]:"Bulgaria",[e._F.HR]:"Croatia",[e._F.TC]:"Turks and Caicos Islands",[e._F.CW]:"Cura\xe7ao",[e._F.GP]:"Guadeloupe",[e._F.UM]:"United States Minor Outlying Islands",[e._F.GT]:"Guatemala",[e._F.PM]:"Saint Pierre and Miquelon",[e._F.BQ]:"Caribbean Netherlands",[e._F.GL]:"Greenland",[e._F.SX]:"Sint Maarten",[e._F.PA]:"Panama",[e._F.AW]:"Aruba",[e._F.MQ]:"Martinique",[e._F.AG]:"Antigua and Barbuda",[e._F.BM]:"Bermuda",[e._F.CU]:"Cuba",[e._F.GD]:"Grenada",[e._F.NI]:"Nicaragua",[e._F.LC]:"Saint Lucia",[e._F.KN]:"Saint Kitts and Nevis",[e._F.DO]:"Dominican Republic",[e._F.VC]:"Saint Vincent and the Grenadines",[e._F.BZ]:"Belize",[e._F.HT]:"Haiti",[e._F.JM]:"Jamaica",[e._F.BS]:"Bahamas",[e._F.MX]:"Mexico",[e._F.MF]:"Saint Martin",[e._F.SV]:"El Salvador",[e._F.BL]:"Saint Barth\xe9lemy",[e._F.AI]:"Anguilla",[e._F.MS]:"Montserrat",[e._F.VG]:"British Virgin Islands",[e._F.BB]:"Barbados",[e._F.HN]:"Honduras",[e._F.KY]:"Cayman Islands",[e._F.DM]:"Dominica",[e._F.TT]:"Trinidad and Tobago",[e._F.CR]:"Costa Rica",[e._F.SR]:"Suriname",[e._F.CX]:"Christmas Island",[e._F.WS]:"Samoa",[e._F.PF]:"French Polynesia",[e._F.AS]:"American Samoa",[e._F.NC]:"New Caledonia",[e._F.TK]:"Tokelau",[e._F.PW]:"Palau",[e._F.KI]:"Kiribati",[e._F.VU]:"Vanuatu",[e._F.PN]:"Pitcairn Islands",[e._F.CK]:"Cook Islands",[e._F.FJ]:"Fiji",[e._F.PG]:"Papua New Guinea",[e._F.MP]:"Northern Mariana Islands",[e._F.NU]:"Niue",[e._F.TV]:"Tuvalu",[e._F.NF]:"Norfolk Island",[e._F.TO]:"Tonga",[e._F.FM]:"Micronesia",[e._F.SB]:"Solomon Islands",[e._F.NR]:"Nauru",[e._F.WF]:"Wallis and Futuna",[e._F.GU]:"Guam",[e._F.AU]:"Australia",[e._F.NZ]:"New Zealand",[e._F.MH]:"Marshall Islands",[e._F.CC]:"Cocos (Keeling) Islands",[e._F.VE]:"Venezuela",[e._F.PY]:"Paraguay",[e._F.BR]:"Brazil",[e._F.CO]:"Colombia",[e._F.PE]:"Peru",[e._F.CL]:"Chile",[e._F.UY]:"Uruguay",[e._F.AR]:"Argentina",[e._F.GY]:"Guyana",[e._F.BO]:"Bolivia",[e._F.GF]:"French Guiana",[e._F.EC]:"Ecuador",[e._F.FK]:"Falkland Islands",[e._F.US_AL]:"Alabama",[e._F.US_AK]:"Alaska",[e._F.US_AZ]:"Arizona",[e._F.US_AR]:"Arkansas",[e._F.US_CA]:"California",[e._F.US_CO]:"Colorado",[e._F.US_CT]:"Connecticut",[e._F.US_DE]:"Delaware",[e._F.US_DC]:"District of Columbia (DC)",[e._F.US_FL]:"Florida",[e._F.US_GA]:"Georgia",[e._F.US_HI]:"Hawaii",[e._F.US_ID]:"Idaho",[e._F.US_IL]:"Illinois",[e._F.US_IN]:"Indiana",[e._F.US_IA]:"Iowa",[e._F.US_KS]:"Kansas",[e._F.US_KY]:"Kentucky",[e._F.US_LA]:"Louisiana",[e._F.US_ME]:"Maine",[e._F.US_MD]:"Maryland",[e._F.US_MA]:"Massachusetts",[e._F.US_MI]:"Michigan",[e._F.US_MN]:"Minnesota",[e._F.US_MS]:"Mississippi",[e._F.US_MO]:"Missouri",[e._F.US_MT]:"Montana",[e._F.US_NE]:"Nebraska",[e._F.US_NV]:"Nevada",[e._F.US_NH]:"New Hampshire",[e._F.US_NJ]:"New Jersey",[e._F.US_NM]:"New Mexico",[e._F.US_NY]:"New York",[e._F.US_NC]:"North Carolina",[e._F.US_ND]:"North Dakota",[e._F.US_OH]:"Ohio",[e._F.US_OK]:"Oklahoma",[e._F.US_OR]:"Oregon",[e._F.US_PA]:"Pennsylvania",[e._F.US_PR]:"Puerto Rico",[e._F.US_RI]:"Rhode Island",[e._F.US_SC]:"South Carolina",[e._F.US_SD]:"South Dakota",[e._F.US_TN]:"Tennessee",[e._F.US_TX]:"Texas",[e._F.US_UT]:"Utah",[e._F.US_VA]:"Virginia",[e._F.US_VI]:"United States Virgin Islands",[e._F.US_VT]:"Vermont",[e._F.US_WA]:"Washington",[e._F.US_WV]:"West Virginia",[e._F.US_WI]:"Wisconsin",[e._F.US_WY]:"Wyoming",[e._F.CA_AB]:"Alberta",[e._F.CA_BC]:"British Columbia",[e._F.CA_MB]:"Manitoba",[e._F.CA_NB]:"New Brunswick",[e._F.CA_NL]:"Newfoundland and Labrador",[e._F.CA_NS]:"Nova Scotia",[e._F.CA_ON]:"Ontario",[e._F.CA_PE]:"Prince Edward Island",[e._F.CA_QC]:"Quebec",[e._F.CA_SK]:"Saskatchewan",[e._F.CA_NT]:"Northwest Territories",[e._F.CA_NU]:"Nunavut",[e._F.CA_YT]:"Yukon",[e._F.CA]:"Canada",[e._F.US]:"United States",[e._F.MEXICO_CENTRAL_AMERICA]:"Mexico and Central America",[e._F.CARIBBEAN]:"Caribbean",[e._F.EEA]:"European Economic Area (EEA)",[e._F.NON_EEA]:"Non European Economic Area",[e._F.GLOBAL]:"Global"},F=new Map(Object.entries(i));Object.entries(i).map(a=>({value:a[0],label:a[1]}))},22286:function(a,n,_){_.d(n,{JA:function(){return l},JL:function(){return u},Mq:function(){return d},PS:function(){return C},jN:function(){return c}});var e=_(24246),i=_(96306),F=_(27378),t=_(8411),r=_(72625),o=_(65063),s=_(71922);let l=a=>{var n;let _=null!==(n=o.ye.get(a))&&void 0!==n?n:a;return(0,e.jsx)(i.j8w,{"data-testid":"status-badge",style:{textTransform:"uppercase"},children:_})},u=a=>{if(!a)return[];let n=[];return a.forEach(a=>{let _=(0,i.QCN)(a),e=_?(0,i.c1K)({isoEntry:_,showFlag:!0}):t.NA.get(a);void 0!==e&&n.push(e)}),n},d=a=>{if(!a)return[];let n=[];return a.forEach(a=>{let _=a.name;void 0!==_&&n.push(_)}),n},S={available:{color:"warning",tooltip:"This notice is associated with a system + data use and can be enabled"},enabled:{color:"success",tooltip:"This notice is active and available for consumers"},inactive:{color:"default",tooltip:"This privacy notice cannot be enabled because it either does not have a data use or the linked data use has not been assigned to a system"}},c=a=>{let n;let{row:_}=a,{systems_applicable:F,disabled:t,data_uses:r}=_.original,{tooltip:o,...s}=(n=r&&F?t?"available":"enabled":"inactive")?S[n]:{color:"default"};return(0,e.jsx)(i.esZ,{title:o,children:(0,e.jsx)("span",{children:(0,e.jsx)(i.j8w,{color:s.color,"data-testid":"status-badge",style:{textTransform:"uppercase"},children:n})})})},C=a=>{let{row:n,getValue:_}=a,[i]=(0,s.vK)(),[t,o]=(0,F.useState)(!1),l=_(),u=async a=>{o(!0);let _=await i({id:n.original.id,disabled:!a});return o(!1),_},{systems_applicable:d,disabled:S,data_uses:c}=n.original;return(0,e.jsx)(r.S1,{enabled:!l,isDisabled:S&&!d||!c,onToggle:u,title:"Disable privacy notice",message:"Are you sure you want to disable this privacy notice? Disabling this notice means your users will no longer see this explanation about your data uses which is necessary to ensure compliance.",loading:t})}},65063:function(a,n,_){_.d(n,{B8:function(){return F},Ep:function(){return t},ye:function(){return i}});var e=_(21910);let i=new Map([[e.J7.OPT_IN,"Opt in"],[e.J7.NOTICE_ONLY,"Notice only"],[e.J7.OPT_OUT,"Opt out"]]),F=new Map([[e.QT.SYSTEM_WIDE,"System wide"],[e.QT.FRONTEND,"Front end"],[e.QT.NOT_APPLICABLE,"Not applicable"]]),t=new Map([["gpp_us_national","GPP US National"],["gpp_us_state","GPP US State"]])}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6954],{14441:function(e,t,n){var a,i,l=1/0,s=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,r=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,o="\ud800-\udfff",d="\\u2700-\\u27bf",c="a-z\\xdf-\\xf6\\xf8-\\xff",u="A-Z\\xc0-\\xd6\\xd8-\\xde",x="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",p="['’]",g="["+x+"]",f="[\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0]",m="["+c+"]",h="[^"+o+x+"\\d+"+d+c+u+"]",v="(?:\ud83c[\udde6-\uddff]){2}",b="[\ud800-\udbff][\udc00-\udfff]",j="["+u+"]",y="(?:"+m+"|"+h+")",_="(?:"+p+"(?:d|ll|m|re|s|t|ve))?",C="(?:"+p+"(?:D|LL|M|RE|S|T|VE))?",N="(?:"+f+"|\ud83c[\udffb-\udfff])?",k="[\\ufe0e\\ufe0f]?",T="(?:\\u200d(?:"+["[^"+o+"]",v,b].join("|")+")"+k+N+")*",w="(?:"+["["+d+"]",v,b].join("|")+")"+(k+N+T),E=RegExp(p,"g"),O=RegExp(f,"g"),A=RegExp([j+"?"+m+"+"+_+"(?="+[g,j,"$"].join("|")+")","(?:"+j+"|"+h+")+"+C+"(?="+[g,j+y,"$"].join("|")+")",j+"?"+y+"+"+_,j+"+"+C,"\\d+",w].join("|"),"g"),S=/[a-z][A-Z]|[A-Z]{2,}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,I="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,z="object"==typeof self&&self&&self.Object===Object&&self,Z=I||z||Function("return this")(),L=(a={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"ss"},function(e){return null==a?void 0:a[e]}),R=Object.prototype.toString,P=Z.Symbol,F=P?P.prototype:void 0,U=F?F.toString:void 0;function q(e){return null==e?"":function(e){if("string"==typeof e)return e;if("symbol"==typeof(t=e)||t&&"object"==typeof t&&"[object Symbol]"==R.call(t))return U?U.call(e):"";var t,n=e+"";return"0"==n&&1/e==-l?"-0":n}(e)}var J=(i=function(e,t,n){return e+(n?"_":"")+t.toLowerCase()},function(e){var t;return function(e,t,n,a){for(var i=-1,l=e?e.length:0;++i<l;)n=t(n,e[i],i,e);return n}(function(e,t,n){if(e=q(e),void 0===t){var a;return(a=e,S.test(a))?e.match(A)||[]:e.match(s)||[]}return e.match(t)||[]}(((t=q(t=e))&&t.replace(r,L).replace(O,"")).replace(E,"")),i,"")});e.exports=J},58754:function(e,t,n){"use strict";var a=n(24246),i=n(96306),l=n(70788);t.Z=e=>{let{heading:t,breadcrumbItems:n,isSticky:s=!0,children:r,rightContent:o,style:d,...c}=e;return(0,a.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",...d}:{paddingBottom:"24px",...d},children:[(0,a.jsxs)(i.jqI,{justify:"space-between",children:["string"==typeof t?(0,a.jsx)(i.lQT,{className:n||r?"pb-4":void 0,level:1,"data-testid":"page-heading",children:t}):t,o&&(0,a.jsx)("div",{"data-testid":"page-header-right-content",children:o})]}),!!n&&(0,a.jsx)(l.m,{className:r?"pb-4":void 0,items:n,"data-testid":"page-breadcrumb"}),r]})}},10342:function(e,t,n){"use strict";var a=n(24246),i=n(96306),l=n(46238);t.Z=e=>{let{title:t,tooltip:n,children:s,...r}=e;return(0,a.jsxs)(i.xuv,{borderRadius:"md",border:"1px solid",borderColor:"gray.200",...r,children:[(0,a.jsxs)(i.X6q,{as:"h3",fontSize:"sm",fontWeight:"semibold",color:"gray.700",py:4,px:6,backgroundColor:"gray.50",borderRadius:"md",textAlign:"left",children:[t,n?(0,a.jsx)(i.xvT,{as:"span",mx:1,children:(0,a.jsx)(l.b,{label:n})}):void 0]}),(0,a.jsx)(i.Kqy,{p:6,spacing:6,children:s})]})}},70788:function(e,t,n){"use strict";n.d(t,{m:function(){return d}});var a=n(24246),i=n(96306),l=n(79894),s=n.n(l),r=n(27378);let{Text:o}=i.AntTypography,d=e=>{let{items:t,...n}=e,l=(0,r.useMemo)(()=>null==t?void 0:t.map((e,n)=>{let l=n===t.length-1,r={...e},d=r.onClick&&!r.href;return("string"==typeof r.title&&(r.title=(0,a.jsx)(o,{style:{color:"inherit",maxWidth:l?void 0:400},ellipsis:!l,id:l?"breadcrumb-current-page":void 0,children:r.title})),d)?r.title=(0,a.jsx)(i.wpx,{type:"text",size:"small",icon:r.icon,onClick:r.onClick,className:"ant-breadcrumb-link -mt-px px-1 text-inherit",children:r.title}):(r.icon&&(r.title=(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("span",{className:"anticon align-text-bottom",children:r.icon}),r.title]})),r.href&&r.title&&(r.title=(0,a.jsx)(s(),{href:r.href,className:"ant-breadcrumb-link",children:r.title}),delete r.href)),r}),[t]);return(0,a.jsx)(i.zrq,{items:l,...n})}},34391:function(e,t,n){"use strict";n.d(t,{Z:function(){return G}});var a=n(24246),i=n(51472),l=n(96306),s=n(34090),r=n(79894),o=n.n(r),d=n(86677),c=n(27378),u=n(16134),x=n(10342),p=n(40324),g=n(812),f=n(46238),m=n(77830),h=n(8411),v=n(46628),b=n(28079),j=n(7426),y=n(34334),_=n(16277);let C=e=>{let{index:t}=e;return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(p.j0,{autoFocus:0!==t,name:"translations.".concat(t,".title"),label:"Title of privacy notice as displayed to user",variant:"stacked"}),(0,a.jsx)(p.Ks,{name:"translations.".concat(t,".description"),label:"Privacy notice displayed to the user",variant:"stacked"})]})},N=e=>{let{languageOptions:t,handleCreateLanguage:n}=e,[i,s]=(0,c.useState)(!1);return i?(0,a.jsx)(l.WPr,{autoFocus:!0,defaultOpen:!0,allowClear:!0,placeholder:"Select a language...",options:t,onChange:e=>{n(e),s(!1)},"data-testid":"select-language",className:"w-full",optionFilterProp:"label"}):(0,a.jsx)(l.wpx,{block:!0,icon:(0,a.jsx)(l.PJP.mm_,{}),iconPosition:"end",onClick:()=>s(!0),"data-testid":"add-language-btn",className:"mb-1",children:"Add"})},k=e=>{let{index:t,name:n,isOOB:i}=e;return(0,a.jsxs)(l.kCb,{direction:"column",gap:6,children:[(0,a.jsxs)(l.X6q,{size:"sm",children:["Edit ",n," translation"]}),i?(0,a.jsx)(_.f,{languageName:n}):null,(0,a.jsx)(C,{index:t})]})};var T=e=>{var t,n,i,r;let{availableTranslations:o}=e,{values:d,setFieldValue:p}=(0,s.u6)(),[g,f]=(0,c.useState)(!1),[m,h]=(0,c.useState)(null!==(r=null===(n=d.translations)||void 0===n?void 0:null===(t=n[0])||void 0===t?void 0:t.language)&&void 0!==r?r:""),{data:v}=(0,j.tB)({api_set:!1}),b=null==v?void 0:null===(i=v.plus_consent_settings)||void 0===i?void 0:i.enable_translations,_=(0,u.C)(y.Zp),T=(0,u.C)(y.G1);(0,y.Ah)({page:_,size:T});let w=(0,u.C)(y.fJ).slice().sort((e,t)=>e.name.localeCompare(t.name)),E=w.filter(e=>{var t;return null===(t=d.translations)||void 0===t?void 0:t.every(t=>t.language!==e.id)}).map(e=>({label:e.name,value:e.id})),O=e=>{h(e),f(!1)},A=e=>{let t=null==o?void 0:o.find(t=>t.language===e);f(!!t);let n=null!=t?t:{language:e,title:"",description:""};h(e),p("translations",[...d.translations,n])},S=e=>{var t,n;let a=d.translations?d.translations.slice().filter(t=>t.language!==e):[],i=m===e?null!==(n=null===(t=a[a.length-1])||void 0===t?void 0:t.language)&&void 0!==n?n:"":m;p("translations",a),h(i)},I=e=>{var t,n;return null!==(n=null===(t=w.find(t=>t.id===e))||void 0===t?void 0:t.name)&&void 0!==n?n:e};return b?(0,a.jsx)(x.Z,{title:"Localizations",children:(0,a.jsx)(s.F2,{name:"translations",render:()=>(0,a.jsx)(l.A5g,{activeKey:m,onChange:O,type:"editable-card",tabBarExtraContent:!!E.length&&(0,a.jsx)(N,{languageOptions:E,handleCreateLanguage:A}),hideAdd:!0,onEdit:(e,t)=>{"remove"===t&&S(e)},items:d.translations.map(e=>({key:e.language,label:I(e.language),children:(0,a.jsx)(k,{index:d.translations.findIndex(t=>t.language===e.language),name:I(e.language),isOOB:g}),closable:d.translations.length>1}))})})}):(0,a.jsx)(x.Z,{title:"Notice text",children:(0,a.jsx)(C,{index:0})})},w=n(97181),E=n(55484),O=n(16394),A=n(65063),S=n(21910);let I=(0,O.Jt)(A.ye),z=(0,O.Jt)(A.B8),Z=[{language:S.eU.EN,title:"",description:""}],L={name:"",consent_mechanism:S.J7.OPT_IN,data_uses:[],enforcement_level:S.QT.FRONTEND,disabled:!0,translations:Z,children:[]},R=e=>{var t,n,a,i;return{name:null!==(t=e.name)&&void 0!==t?t:L.name,consent_mechanism:null!==(n=e.consent_mechanism)&&void 0!==n?n:L.consent_mechanism,data_uses:null!==(a=e.data_uses)&&void 0!==a?a:L.data_uses,enforcement_level:null!==(i=e.enforcement_level)&&void 0!==i?i:L.enforcement_level,notice_key:e.notice_key,disabled:e.disabled,has_gpc_flag:e.has_gpc_flag,id:e.id,internal_description:e.internal_description,translations:e.translations?e.translations.map(e=>{var t;let{privacy_notice_history_id:n,...a}=e;return{...a,title:null!==(t=e.title)&&void 0!==t?t:""}}):Z,children:e.children}},P=E.Ry().shape({name:E.Z_().required().label("Title"),consent_mechanism:E.Z_().required().label("Consent mechanism")});var F=n(14441),U=n.n(F),q=e=>{let{isEditing:t}=e,{values:n,setFieldValue:i}=(0,s.u6)();return(0,c.useEffect)(()=>{t||i("notice_key",U()(n.name))},[n.name,t,i]),(0,a.jsx)(p.j0,{name:"notice_key",label:"Key used in Fides cookie",variant:"stacked"})},J=n(71922);let{Text:B}=l.AntTypography,D=e=>{let{regions:t,label:n,tooltip:i}=e;return(0,a.jsxs)(l.gCW,{align:"start",children:[(0,a.jsxs)(l.kCb,{align:"start",children:[n?(0,a.jsx)(l.lXp,{htmlFor:"regions",fontSize:"xs",my:0,mr:1,children:n}):null,(0,a.jsx)(f.b,{label:i})]}),(0,a.jsx)(l.xuv,{w:"100%","data-testid":"notice-locations",children:(0,a.jsxs)(l.vyj,{size:[0,2],wrap:!0,children:[null==t?void 0:t.map(e=>{let t=(0,l.QCN)(e);return(0,a.jsx)(l.j8w,{children:t?(0,l.c1K)({isoEntry:t,showFlag:!0}):h.Z8[e]},e)}),!(null==t?void 0:t.length)&&(0,a.jsxs)(B,{italic:!0,children:["No locations assigned. Navigate to the"," ",(0,a.jsx)(o(),{href:m.w0,children:"experiences view"})," ","configure."]})]})})]})};var G=e=>{let{privacyNotice:t,availableTranslations:n}=e,r=(0,d.useRouter)(),o=(0,l.pmc)(),f=t?R(t):L;(0,b.fd)();let h=(0,u.C)(b.qv),j=(0,u.C)(J.sX),y=(0,u.C)(J.Zp),_=(0,u.C)(J.G1);(0,J.J6)({page:y,size:_});let C=e=>{var t;let{id:n}=e,a=j.find(e=>e.id===n);return null!==(t=null==a?void 0:a.name)&&void 0!==t?t:n},N=j.some(e=>{var n;return null===(n=e.children)||void 0===n?void 0:n.some(e=>e.id===(null==t?void 0:t.id))}),[k]=(0,J.vL)(),[E]=(0,J.p4)(),O=(0,c.useMemo)(()=>!!t,[t]),A=async e=>{let n;if(O){var a,i;let l={...e,id:t.id,translations:null!==(a=e.translations)&&void 0!==a?a:[],children:null!==(i=e.children)&&void 0!==i?i:[]};n=await k(l)}else n=await E(e);(0,g.D4)(n)?o((0,v.Vo)((0,g.e$)(n.error))):(o((0,v.t5)("Privacy notice ".concat(O?"updated":"created"))),O||r.push(m.IT))};return(0,a.jsx)(s.J9,{initialValues:f,enableReinitialize:!0,onSubmit:A,validationSchema:P,children:e=>{var o,d;let{values:c,setFieldValue:u,dirty:g,isValid:f,isSubmitting:m}=e;return(0,a.jsx)(s.l0,{children:(0,a.jsxs)(l.Kqy,{spacing:10,children:[(0,a.jsxs)(l.Kqy,{spacing:6,children:[(0,a.jsxs)(x.Z,{title:"Privacy notice details",children:[(0,a.jsx)(p.j0,{label:"Notice title",name:"name",isRequired:!0,variant:"stacked"}),(0,a.jsx)(w.d,{name:"consent_mechanism",label:"Consent mechanism",options:I,isRequired:!0,layout:"stacked"}),(0,a.jsx)(q,{isEditing:O}),(0,a.jsx)(p.w8,{name:"has_gpc_flag",label:"Configure whether this notice conforms to the Global Privacy Control",variant:"stacked"}),(0,a.jsx)(D,{regions:null==t?void 0:t.configured_regions,label:"Locations where privacy notice is shown to visitors",tooltip:"To configure locations, change the privacy experiences where this notice is shown"}),(0,a.jsx)(l.izJ,{}),!N&&(0,a.jsx)(i.Z,{label:"Child notices",addButtonLabel:"Add notice children",allItems:j.map(e=>({id:e.id,name:e.name})),values:null!==(d=null===(o=c.children)||void 0===o?void 0:o.map(e=>({id:e.id,name:e.name})))&&void 0!==d?d:[],setValues:e=>u("children",e),idField:"id",getItemLabel:C,draggable:!0,maxHeight:100,baseTestId:"children"}),(0,a.jsx)(w.d,{name:"data_uses",label:"Data use",options:h,mode:"multiple",layout:"stacked"}),(0,a.jsx)(w.d,{name:"enforcement_level",label:"Enforcement level",options:z,isRequired:!0,layout:"stacked"})]}),(0,a.jsx)(T,{availableTranslations:n})]}),(0,a.jsxs)("div",{className:"flex gap-2",children:[(0,a.jsx)(l.wpx,{onClick:()=>{r.back()},children:"Cancel"}),(0,a.jsx)(l.wpx,{htmlType:"submit",type:"primary",disabled:m||!g||!f,loading:m,"data-testid":"save-btn",children:"Save"})]})]})})}})}},65063:function(e,t,n){"use strict";n.d(t,{B8:function(){return l},Ep:function(){return s},ye:function(){return i}});var a=n(21910);let i=new Map([[a.J7.OPT_IN,"Opt in"],[a.J7.NOTICE_ONLY,"Notice only"],[a.J7.OPT_OUT,"Opt out"]]),l=new Map([[a.QT.SYSTEM_WIDE,"System wide"],[a.QT.FRONTEND,"Front end"],[a.QT.NOT_APPLICABLE,"Not applicable"]]),s=new Map([["gpp_us_national","GPP US National"],["gpp_us_state","GPP US State"]])}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7476],{95492:function(e,n,t){t.d(n,{l:function(){return s}});var r=t(24246);let s=(0,t(96306).IUT)({displayName:"TrashCanSolidIcon",viewBox:"0 0 12 15",path:(0,r.jsx)("path",{d:"M8.37857 1.18083C8.23393 0.892838 7.93661 0.710938 7.6125 0.710938H4.3875C4.06339 0.710938 3.76607 0.892838 3.62143 1.18083L3.42857 1.56094H0.857143C0.383036 1.56094 -1.19209e-07 1.94158 -1.19209e-07 2.41094C-1.19209e-07 2.8803 0.383036 3.26094 0.857143 3.26094H11.1429C11.6162 3.26094 12 2.8803 12 2.41094C12 1.94158 11.6162 1.56094 11.1429 1.56094H8.57143L8.37857 1.18083ZM11.167 4.11094H0.857143V12.6109C0.857143 13.5486 1.62589 14.3109 2.57143 14.3109H9.45268C10.3754 14.3109 11.167 13.5486 11.167 12.6109V4.11094ZM9.02411 6.23594V12.1859C9.02411 12.4197 8.80714 12.6109 8.59554 12.6109C8.33571 12.6109 8.16696 12.4197 8.16696 12.1859V6.23594C8.16696 6.00219 8.33571 5.81094 8.59554 5.81094C8.80714 5.81094 9.02411 6.00219 9.02411 6.23594ZM6.45268 6.23594V12.1859C6.45268 12.4197 6.23571 12.6109 6.02411 12.6109C5.76429 12.6109 5.57143 12.4197 5.57143 12.1859V6.23594C5.57143 6.00219 5.76429 5.81094 6.02411 5.81094C6.23571 5.81094 6.45268 6.00219 6.45268 6.23594ZM3.85714 6.23594V12.1859C3.85714 12.4197 3.66429 12.6109 3.42857 12.6109C3.19286 12.6109 3 12.4197 3 12.1859V6.23594C3 6.00219 3.19286 5.81094 3.42857 5.81094C3.66429 5.81094 3.85714 6.00219 3.85714 6.23594Z",fill:"currentColor"})})},77213:function(e,n,t){t.d(n,{Z:function(){return p}});var r=t(24246),s=t(96306),i=t(88038),a=t.n(i),l=t(86677);t(27378);var o=t(25980),c=t(90867),d=t(77830),u=()=>{let e=(0,l.useRouter)();return(0,r.jsx)(s.xuv,{bg:"gray.50",border:"1px solid",borderColor:"blue.400",borderRadius:"md",justifyContent:"space-between",p:5,mb:5,mt:5,children:(0,r.jsxs)(s.xuv,{children:[(0,r.jsxs)(s.Kqy,{direction:{base:"column",sm:"row"},justifyContent:"space-between",children:[(0,r.jsx)(s.xvT,{fontWeight:"semibold",children:"Configure your storage and messaging provider"}),(0,r.jsx)(s.wpx,{onClick:()=>{e.push(d.fz)},children:"Configure"})]}),(0,r.jsxs)(s.xvT,{children:["Before Fides can process your privacy requests we need two simple steps to configure your storage and email client."," "]})]})})},p=e=>{let{children:n,title:t,padded:i=!0,mainProps:d}=e,p=(0,o.hz)(),m=(0,l.useRouter)(),h="/privacy-requests"===m.pathname||"/datastore-connection"===m.pathname,x=!(p.flags.privacyRequestsConfiguration&&h),{data:b}=(0,c.JE)(void 0,{skip:x}),{data:f}=(0,c.PW)(void 0,{skip:x}),v=p.flags.privacyRequestsConfiguration&&(!b||!f)&&h;return(0,r.jsxs)(s.kCb,{"data-testid":t,direction:"column",h:"100vh",children:[(0,r.jsxs)(a(),{children:[(0,r.jsxs)("title",{children:["Fides Admin UI - ",t]}),(0,r.jsx)("meta",{name:"description",content:"Privacy Engineering Platform"}),(0,r.jsx)("link",{rel:"icon",href:"/favicon.ico"})]}),(0,r.jsxs)(s.kCb,{as:"main",direction:"column",py:i?6:0,px:i?10:0,h:i?"calc(100% - 48px)":"full",flex:1,minWidth:0,overflow:"auto",...d,children:[v?(0,r.jsx)(u,{}):null,n]})]})}},58754:function(e,n,t){var r=t(24246),s=t(96306),i=t(70788);n.Z=e=>{let{heading:n,breadcrumbItems:t,isSticky:a=!0,children:l,rightContent:o,style:c,...d}=e;return(0,r.jsxs)("div",{...d,style:a?{position:"sticky",top:"-24px",paddingTop:"24px",paddingBottom:"24px",paddingLeft:"40px",marginLeft:"-40px",paddingRight:"40px",marginRight:"-40px",marginTop:"-24px",left:0,zIndex:20,backgroundColor:"white",...c}:{paddingBottom:"24px",...c},children:[(0,r.jsxs)(s.jqI,{justify:"space-between",children:["string"==typeof n?(0,r.jsx)(s.lQT,{className:t||l?"pb-4":void 0,level:1,"data-testid":"page-heading",children:n}):n,o&&(0,r.jsx)("div",{"data-testid":"page-header-right-content",children:o})]}),!!t&&(0,r.jsx)(i.m,{className:l?"pb-4":void 0,items:t,"data-testid":"page-breadcrumb"}),l]})}},19904:function(e,n,t){t.d(n,{Tg:function(){return a}});var r=t(24246),s=t(16134),i=t(31793);let a=e=>(0,s.C)(i.uu).filter(n=>e.includes(n)).length>0;n.ZP=e=>{let{scopes:n,children:t}=e;return a(n)?(0,r.jsx)(r.Fragment,{children:t}):null}},70788:function(e,n,t){t.d(n,{m:function(){return c}});var r=t(24246),s=t(96306),i=t(79894),a=t.n(i),l=t(27378);let{Text:o}=s.AntTypography,c=e=>{let{items:n,...t}=e,i=(0,l.useMemo)(()=>null==n?void 0:n.map((e,t)=>{let i=t===n.length-1,l={...e},c=l.onClick&&!l.href;return("string"==typeof l.title&&(l.title=(0,r.jsx)(o,{style:{color:"inherit",maxWidth:i?void 0:400},ellipsis:!i,id:i?"breadcrumb-current-page":void 0,children:l.title})),c)?l.title=(0,r.jsx)(s.wpx,{type:"text",size:"small",icon:l.icon,onClick:l.onClick,className:"ant-breadcrumb-link -mt-px px-1 text-inherit",children:l.title}):(l.icon&&(l.title=(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("span",{className:"anticon align-text-bottom",children:l.icon}),l.title]})),l.href&&l.title&&(l.title=(0,r.jsx)(a(),{href:l.href,className:"ant-breadcrumb-link",children:l.title}),delete l.href)),l}),[n]);return(0,r.jsx)(s.zrq,{items:i,...t})}},61038:function(e,n,t){var r=t(24246),s=t(96306),i=t(34090),a=t(86677);t(27378);var l=t(55484),o=t(16134),c=t(40324),d=t(812),u=t(77830),p=t(46628),m=t(65497);let h={username:"",usernameConfirmation:""},x=e=>{let{id:n,username:t,onClose:r}=e,i=(0,s.pmc)(),c=(0,a.useRouter)(),h=(0,o.T)(),[x]=(0,m.I1)();return{handleDeleteUser:async()=>{let e=await x(n);(0,d.D4)(e)?i((0,p.Vo)((0,d.e$)(e.error))):(i((0,p.t5)("Successfully deleted user")),r()),h((0,m.Vv)(void 0)),c.push(u.e3)},validationSchema:l.Ry().shape({usernameConfirmation:l.Z_().required().oneOf([t],"Confirmation input must match the username").label("Username confirmation")})}};n.Z=e=>{let{user:n,...t}=e,{isOpen:a,onClose:l}=t,{handleDeleteUser:o,validationSchema:d}=x({id:n.id,username:n.username,onClose:l});return(0,r.jsxs)(s.u_l,{isCentered:!0,isOpen:a,onClose:l,children:[(0,r.jsx)(s.ZAr,{}),(0,r.jsx)(s.hzk,{"data-testid":"delete-user-modal",children:(0,r.jsx)(i.J9,{initialValues:h,validationSchema:d,onSubmit:o,children:e=>{let{isSubmitting:t,dirty:a,isValid:o}=e;return(0,r.jsxs)(i.l0,{children:[(0,r.jsx)(s.xBx,{children:"Delete User"}),(0,r.jsx)(s.olH,{}),(0,r.jsxs)(s.fef,{children:[(0,r.jsxs)(s.bZj,{status:"warning",overflow:"visible",colorScheme:"warn",marginBottom:4,children:[(0,r.jsx)(s.zMQ,{}),(0,r.jsxs)(s.XaZ,{children:[(0,r.jsx)(s.xvT,{as:"span",mb:2,children:"You are about to delete the user\xa0"}),(0,r.jsxs)(s.xvT,{as:"span",mb:2,fontStyle:"italic",fontWeight:"semibold",children:[n.username,"."]}),(0,r.jsx)(s.xvT,{mb:2,children:"This action cannot be undone. To confirm, please enter the user’s username below."})]})]}),(0,r.jsx)(s.Kqy,{direction:"column",spacing:4,children:(0,r.jsx)(c.j0,{name:"usernameConfirmation",label:"Confirm username",placeholder:"Type the username to delete"})})]}),(0,r.jsx)(s.mzw,{children:(0,r.jsxs)("div",{className:"flex w-full gap-2",children:[(0,r.jsx)(s.wpx,{onClick:l,className:"w-1/2",children:"Cancel"}),(0,r.jsx)(s.wpx,{type:"primary",disabled:!a||!o,loading:t,htmlType:"submit",className:"w-1/2","data-testid":"submit-btn",children:"Delete User"})]})})]})}})})]})}},91437:function(e,n,t){t.d(n,{K:function(){return s}});var r=t(
|
|
1
|
+
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7476],{95492:function(e,n,t){t.d(n,{l:function(){return s}});var r=t(24246);let s=(0,t(96306).IUT)({displayName:"TrashCanSolidIcon",viewBox:"0 0 12 15",path:(0,r.jsx)("path",{d:"M8.37857 1.18083C8.23393 0.892838 7.93661 0.710938 7.6125 0.710938H4.3875C4.06339 0.710938 3.76607 0.892838 3.62143 1.18083L3.42857 1.56094H0.857143C0.383036 1.56094 -1.19209e-07 1.94158 -1.19209e-07 2.41094C-1.19209e-07 2.8803 0.383036 3.26094 0.857143 3.26094H11.1429C11.6162 3.26094 12 2.8803 12 2.41094C12 1.94158 11.6162 1.56094 11.1429 1.56094H8.57143L8.37857 1.18083ZM11.167 4.11094H0.857143V12.6109C0.857143 13.5486 1.62589 14.3109 2.57143 14.3109H9.45268C10.3754 14.3109 11.167 13.5486 11.167 12.6109V4.11094ZM9.02411 6.23594V12.1859C9.02411 12.4197 8.80714 12.6109 8.59554 12.6109C8.33571 12.6109 8.16696 12.4197 8.16696 12.1859V6.23594C8.16696 6.00219 8.33571 5.81094 8.59554 5.81094C8.80714 5.81094 9.02411 6.00219 9.02411 6.23594ZM6.45268 6.23594V12.1859C6.45268 12.4197 6.23571 12.6109 6.02411 12.6109C5.76429 12.6109 5.57143 12.4197 5.57143 12.1859V6.23594C5.57143 6.00219 5.76429 5.81094 6.02411 5.81094C6.23571 5.81094 6.45268 6.00219 6.45268 6.23594ZM3.85714 6.23594V12.1859C3.85714 12.4197 3.66429 12.6109 3.42857 12.6109C3.19286 12.6109 3 12.4197 3 12.1859V6.23594C3 6.00219 3.19286 5.81094 3.42857 5.81094C3.66429 5.81094 3.85714 6.00219 3.85714 6.23594Z",fill:"currentColor"})})},77213:function(e,n,t){t.d(n,{Z:function(){return p}});var r=t(24246),s=t(96306),i=t(88038),a=t.n(i),l=t(86677);t(27378);var o=t(25980),c=t(90867),d=t(77830),u=()=>{let e=(0,l.useRouter)();return(0,r.jsx)(s.xuv,{bg:"gray.50",border:"1px solid",borderColor:"blue.400",borderRadius:"md",justifyContent:"space-between",p:5,mb:5,mt:5,children:(0,r.jsxs)(s.xuv,{children:[(0,r.jsxs)(s.Kqy,{direction:{base:"column",sm:"row"},justifyContent:"space-between",children:[(0,r.jsx)(s.xvT,{fontWeight:"semibold",children:"Configure your storage and messaging provider"}),(0,r.jsx)(s.wpx,{onClick:()=>{e.push(d.fz)},children:"Configure"})]}),(0,r.jsxs)(s.xvT,{children:["Before Fides can process your privacy requests we need two simple steps to configure your storage and email client."," "]})]})})},p=e=>{let{children:n,title:t,padded:i=!0,mainProps:d}=e,p=(0,o.hz)(),m=(0,l.useRouter)(),h="/privacy-requests"===m.pathname||"/datastore-connection"===m.pathname,x=!(p.flags.privacyRequestsConfiguration&&h),{data:b}=(0,c.JE)(void 0,{skip:x}),{data:f}=(0,c.PW)(void 0,{skip:x}),v=p.flags.privacyRequestsConfiguration&&(!b||!f)&&h;return(0,r.jsxs)(s.kCb,{"data-testid":t,direction:"column",h:"100vh",children:[(0,r.jsxs)(a(),{children:[(0,r.jsxs)("title",{children:["Fides Admin UI - ",t]}),(0,r.jsx)("meta",{name:"description",content:"Privacy Engineering Platform"}),(0,r.jsx)("link",{rel:"icon",href:"/favicon.ico"})]}),(0,r.jsxs)(s.kCb,{as:"main",direction:"column",py:i?6:0,px:i?10:0,h:i?"calc(100% - 48px)":"full",flex:1,minWidth:0,overflow:"auto",...d,children:[v?(0,r.jsx)(u,{}):null,n]})]})}},58754:function(e,n,t){var r=t(24246),s=t(96306),i=t(70788);n.Z=e=>{let{heading:n,breadcrumbItems:t,isSticky:a=!0,children:l,rightContent:o,style:c,...d}=e;return(0,r.jsxs)("div",{...d,style:a?{position:"sticky",top:"-24px",paddingTop:"24px",paddingBottom:"24px",paddingLeft:"40px",marginLeft:"-40px",paddingRight:"40px",marginRight:"-40px",marginTop:"-24px",left:0,zIndex:20,backgroundColor:"white",...c}:{paddingBottom:"24px",...c},children:[(0,r.jsxs)(s.jqI,{justify:"space-between",children:["string"==typeof n?(0,r.jsx)(s.lQT,{className:t||l?"pb-4":void 0,level:1,"data-testid":"page-heading",children:n}):n,o&&(0,r.jsx)("div",{"data-testid":"page-header-right-content",children:o})]}),!!t&&(0,r.jsx)(i.m,{className:l?"pb-4":void 0,items:t,"data-testid":"page-breadcrumb"}),l]})}},19904:function(e,n,t){t.d(n,{Tg:function(){return a}});var r=t(24246),s=t(16134),i=t(31793);let a=e=>(0,s.C)(i.uu).filter(n=>e.includes(n)).length>0;n.ZP=e=>{let{scopes:n,children:t}=e;return a(n)?(0,r.jsx)(r.Fragment,{children:t}):null}},70788:function(e,n,t){t.d(n,{m:function(){return c}});var r=t(24246),s=t(96306),i=t(79894),a=t.n(i),l=t(27378);let{Text:o}=s.AntTypography,c=e=>{let{items:n,...t}=e,i=(0,l.useMemo)(()=>null==n?void 0:n.map((e,t)=>{let i=t===n.length-1,l={...e},c=l.onClick&&!l.href;return("string"==typeof l.title&&(l.title=(0,r.jsx)(o,{style:{color:"inherit",maxWidth:i?void 0:400},ellipsis:!i,id:i?"breadcrumb-current-page":void 0,children:l.title})),c)?l.title=(0,r.jsx)(s.wpx,{type:"text",size:"small",icon:l.icon,onClick:l.onClick,className:"ant-breadcrumb-link -mt-px px-1 text-inherit",children:l.title}):(l.icon&&(l.title=(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("span",{className:"anticon align-text-bottom",children:l.icon}),l.title]})),l.href&&l.title&&(l.title=(0,r.jsx)(a(),{href:l.href,className:"ant-breadcrumb-link",children:l.title}),delete l.href)),l}),[n]);return(0,r.jsx)(s.zrq,{items:i,...t})}},61038:function(e,n,t){var r=t(24246),s=t(96306),i=t(34090),a=t(86677);t(27378);var l=t(55484),o=t(16134),c=t(40324),d=t(812),u=t(77830),p=t(46628),m=t(65497);let h={username:"",usernameConfirmation:""},x=e=>{let{id:n,username:t,onClose:r}=e,i=(0,s.pmc)(),c=(0,a.useRouter)(),h=(0,o.T)(),[x]=(0,m.I1)();return{handleDeleteUser:async()=>{let e=await x(n);(0,d.D4)(e)?i((0,p.Vo)((0,d.e$)(e.error))):(i((0,p.t5)("Successfully deleted user")),r()),h((0,m.Vv)(void 0)),c.push(u.e3)},validationSchema:l.Ry().shape({usernameConfirmation:l.Z_().required().oneOf([t],"Confirmation input must match the username").label("Username confirmation")})}};n.Z=e=>{let{user:n,...t}=e,{isOpen:a,onClose:l}=t,{handleDeleteUser:o,validationSchema:d}=x({id:n.id,username:n.username,onClose:l});return(0,r.jsxs)(s.u_l,{isCentered:!0,isOpen:a,onClose:l,children:[(0,r.jsx)(s.ZAr,{}),(0,r.jsx)(s.hzk,{"data-testid":"delete-user-modal",children:(0,r.jsx)(i.J9,{initialValues:h,validationSchema:d,onSubmit:o,children:e=>{let{isSubmitting:t,dirty:a,isValid:o}=e;return(0,r.jsxs)(i.l0,{children:[(0,r.jsx)(s.xBx,{children:"Delete User"}),(0,r.jsx)(s.olH,{}),(0,r.jsxs)(s.fef,{children:[(0,r.jsxs)(s.bZj,{status:"warning",overflow:"visible",colorScheme:"warn",marginBottom:4,children:[(0,r.jsx)(s.zMQ,{}),(0,r.jsxs)(s.XaZ,{children:[(0,r.jsx)(s.xvT,{as:"span",mb:2,children:"You are about to delete the user\xa0"}),(0,r.jsxs)(s.xvT,{as:"span",mb:2,fontStyle:"italic",fontWeight:"semibold",children:[n.username,"."]}),(0,r.jsx)(s.xvT,{mb:2,children:"This action cannot be undone. To confirm, please enter the user’s username below."})]})]}),(0,r.jsx)(s.Kqy,{direction:"column",spacing:4,children:(0,r.jsx)(c.j0,{name:"usernameConfirmation",label:"Confirm username",placeholder:"Type the username to delete"})})]}),(0,r.jsx)(s.mzw,{children:(0,r.jsxs)("div",{className:"flex w-full gap-2",children:[(0,r.jsx)(s.wpx,{onClick:l,className:"w-1/2",children:"Cancel"}),(0,r.jsx)(s.wpx,{type:"primary",disabled:!a||!o,loading:t,htmlType:"submit",className:"w-1/2","data-testid":"submit-btn",children:"Delete User"})]})})]})}})})]})}},91437:function(e,n,t){t.d(n,{K:function(){return s}});var r=t(21910);let s=[{label:"Owner",permissions_label:"Owner",roleKey:r.A7.OWNER,description:"Owners have view and edit access to the whole organization and can create new users"},{label:"Contributor",permissions_label:"Contributor",roleKey:r.A7.CONTRIBUTOR,description:"Contributors can create new users and have view and edit access to the whole organization. Contributors cannot configure storage and messaging services"},{label:"Viewer",permissions_label:"Viewer",roleKey:r.A7.VIEWER,description:"Viewers have view access to the Data Map and all systems"},{label:"Viewer & Approver",permissions_label:"Viewer & Approver",roleKey:r.A7.VIEWER_AND_APPROVER,description:"Viewer & Approvers have view access to the Data Map but can also manage Privacy Requests"},{label:"Approver",permissions_label:"Approver",roleKey:r.A7.APPROVER,description:"Approvers can only access the Privacy Requests portal to manage requests"},{label:"Internal respondent",permissions_label:"Internal respondent",roleKey:r.A7.RESPONDENT,description:"Internal respondents have limited access and can only view and complete manual DSR tasks assigned to them"},{label:"External respondent",permissions_label:"External respondent",roleKey:r.A7.EXTERNAL_RESPONDENT,description:"External respondents can only access the external task portal to complete manual DSR tasks assigned to them"}]}}]);
|
fides/ui-build/static/admin/_next/static/chunks/{787-a8c7eab617e2fceb.js → 787-f2eca25837ff7305.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[787],{77213:function(e,t,n){n.d(t,{Z:function(){return p}});var r=n(24246),i=n(96306),l=n(88038),o=n.n(l),a=n(86677);n(27378);var s=n(25980),d=n(90867),c=n(77830),u=()=>{let e=(0,a.useRouter)();return(0,r.jsx)(i.xuv,{bg:"gray.50",border:"1px solid",borderColor:"blue.400",borderRadius:"md",justifyContent:"space-between",p:5,mb:5,mt:5,children:(0,r.jsxs)(i.xuv,{children:[(0,r.jsxs)(i.Kqy,{direction:{base:"column",sm:"row"},justifyContent:"space-between",children:[(0,r.jsx)(i.xvT,{fontWeight:"semibold",children:"Configure your storage and messaging provider"}),(0,r.jsx)(i.wpx,{onClick:()=>{e.push(c.fz)},children:"Configure"})]}),(0,r.jsxs)(i.xvT,{children:["Before Fides can process your privacy requests we need two simple steps to configure your storage and email client."," "]})]})})},p=e=>{let{children:t,title:n,padded:l=!0,mainProps:c}=e,p=(0,s.hz)(),x=(0,a.useRouter)(),m="/privacy-requests"===x.pathname||"/datastore-connection"===x.pathname,h=!(p.flags.privacyRequestsConfiguration&&m),{data:f}=(0,d.JE)(void 0,{skip:h}),{data:v}=(0,d.PW)(void 0,{skip:h}),g=p.flags.privacyRequestsConfiguration&&(!f||!v)&&m;return(0,r.jsxs)(i.kCb,{"data-testid":n,direction:"column",h:"100vh",children:[(0,r.jsxs)(o(),{children:[(0,r.jsxs)("title",{children:["Fides Admin UI - ",n]}),(0,r.jsx)("meta",{name:"description",content:"Privacy Engineering Platform"}),(0,r.jsx)("link",{rel:"icon",href:"/favicon.ico"})]}),(0,r.jsxs)(i.kCb,{as:"main",direction:"column",py:l?6:0,px:l?10:0,h:l?"calc(100% - 48px)":"full",flex:1,minWidth:0,overflow:"auto",...c,children:[g?(0,r.jsx)(u,{}):null,t]})]})}},58754:function(e,t,n){var r=n(24246),i=n(96306),l=n(70788);t.Z=e=>{let{heading:t,breadcrumbItems:n,isSticky:o=!0,children:a,rightContent:s,style:d,...c}=e;return(0,r.jsxs)("div",{...c,style:o?{position:"sticky",top:"-24px",paddingTop:"24px",paddingBottom:"24px",paddingLeft:"40px",marginLeft:"-40px",paddingRight:"40px",marginRight:"-40px",marginTop:"-24px",left:0,zIndex:20,backgroundColor:"white",...d}:{paddingBottom:"24px",...d},children:[(0,r.jsxs)(i.jqI,{justify:"space-between",children:["string"==typeof t?(0,r.jsx)(i.lQT,{className:n||a?"pb-4":void 0,level:1,"data-testid":"page-heading",children:t}):t,s&&(0,r.jsx)("div",{"data-testid":"page-header-right-content",children:s})]}),!!n&&(0,r.jsx)(l.m,{className:a?"pb-4":void 0,items:n,"data-testid":"page-breadcrumb"}),a]})}},19904:function(e,t,n){n.d(t,{Tg:function(){return o}});var r=n(24246),i=n(16134),l=n(31793);let o=e=>(0,i.C)(l.uu).filter(t=>e.includes(t)).length>0;t.ZP=e=>{let{scopes:t,children:n}=e;return o(t)?(0,r.jsx)(r.Fragment,{children:n}):null}},51472:function(e,t,n){var r=n(24246),i=n(96306),l=n(47397),o=n(7078),a=n(18397),s=n(11055),d=n(27378),c=n(40324),u=n(46238);let p=e=>{let{item:t,label:n,draggable:a,onDeleteItem:s,onEditItem:d,tooltip:c,onRowClick:p,maxH:x=10,rowTestId:m}=e,h=(0,l.o)(),f=(0,r.jsxs)(i.kCb,{direction:"row",gap:2,maxH:x,w:"full",px:2,align:"center",role:"group",className:"group",borderY:"1px",my:"-1px",borderColor:"gray.200",_hover:p?{bgColor:"gray.100"}:void 0,bgColor:"white",position:"relative",children:[a&&(0,r.jsx)(i.VVU,{onPointerDown:e=>h.start(e),cursor:"grab"}),(0,r.jsxs)(i.kCb,{direction:"row",gap:2,p:2,align:"center",w:"full",cursor:p?"pointer":"auto",onClick:()=>{p&&p(t)},overflow:"clip","data-testid":m,children:[(0,r.jsx)(i.xvT,{fontSize:"sm",userSelect:"none",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden",children:n}),(0,r.jsx)(u.b,{label:c})]}),(0,r.jsxs)(i.vyj,{className:"invisible absolute right-2 bg-white group-hover:visible",children:[d&&(0,r.jsx)(i.wpx,{"aria-label":"Edit",onClick:()=>d(t),icon:(0,r.jsx)(i.PJP.I8b,{}),size:"small","data-testid":"edit-".concat(m)}),s&&(0,r.jsx)(i.wpx,{"aria-label":"Delete",onClick:()=>s(t),icon:(0,r.jsx)(i.PJP.ZNm,{}),size:"small","data-testid":"delete-".concat(m)})]})]});return a?(0,r.jsx)(o.e,{value:t,dragListener:!1,dragControls:h,children:f}):f},x=e=>{let{label:t,options:n,onOptionSelected:l,baseTestId:o}=e,[a,s]=(0,d.useState)(!1),[c,u]=(0,d.useState)(void 0);return a?(0,r.jsx)(i.xuv,{w:"full",children:(0,r.jsx)(i.WPr,{labelInValue:!0,placeholder:"Select...",filterOption:(e,t)=>{var n;return(null!==(n=null==t?void 0:t.label)&&void 0!==n?n:"").toLowerCase().includes(e.toLowerCase())},value:c,options:n,onChange:e=>{l(e),s(!1),u(void 0)},className:"w-full","data-testid":"select-".concat(o)})}):(0,r.jsx)(i.wpx,{onClick:()=>s(!0),"data-testid":"add-".concat(o),block:!0,icon:(0,r.jsx)(i.jBn,{boxSize:4}),iconPosition:"end",children:t})};t.Z=e=>{let{label:t,tooltip:n,draggable:l,addButtonLabel:o,allItems:d,idField:m,nameField:h=m,values:f,setValues:v,canDeleteItem:g,getTooltip:j,onRowClick:b,onEditItem:y,selectOnAdd:C,getItemLabel:w,createNewValue:k,maxHeight:R=36,baseTestId:I}=e,S=e=>e instanceof Object&&m&&m in e?e[m]:e,T=d.every(e=>"string"==typeof e)?d.filter(e=>f.every(t=>t!==e)):d.filter(e=>f.every(t=>S(t)!==S(e))),P=e=>{v(f.filter(t=>t!==e).slice())},E=null!=w?w:e=>e instanceof Object&&m&&m in e?h&&h in e?e[h]:e[m]:e,q=e=>{let t=e instanceof Object&&m&&m in e?e[m]:e;return{label:E(e),value:t}},N=e=>d.every(e=>"string"==typeof e)?e.value:d.find(t=>t[m]===e.value),Z=e=>{let t=k?k(e):N(e);v([t,...f.slice()]),C&&b&&b(t),C&&y&&y(t)},O={border:"1px",borderColor:"gray.200",borderRadius:"md",w:"full",maxH:"8.5rem",overflowY:"auto"},z=l?(0,r.jsx)(i.xuv,{as:a.E.div,layoutScroll:!0,...O,children:(0,r.jsx)(s.M,{values:f,onReorder:e=>v(e.slice()),children:f.map(e=>{let t=S(e);return(0,r.jsx)(p,{item:e,label:E(e),onDeleteItem:!g||g&&g(e)?P:void 0,onEditItem:y,onRowClick:b,draggable:!0,maxH:R,rowTestId:"".concat(I,"-row-").concat(t),tooltip:j&&j(e)?j(e):void 0},t)})})}):(0,r.jsx)(i.xuv,{...O,children:(0,r.jsx)(i.aVo,{children:f.map(e=>{let t=S(e);return(0,r.jsx)(p,{item:e,label:E(e),onRowClick:b,onDeleteItem:P,tooltip:j&&j(e)?j(e):void 0,maxH:R,rowTestId:"".concat(I,"-row-").concat(t)},t)})})});return f.length?(0,r.jsxs)(i.kCb,{align:"start",direction:"column",w:"full",gap:4,children:[t?(0,r.jsx)(c.__,{htmlFor:"test",fontSize:"xs",my:0,mr:1,children:t}):null,(0,r.jsx)(u.b,{label:n}),z,T.length?(0,r.jsx)(x,{label:null!=o?o:"Add new",options:T.map(e=>q(e)),onOptionSelected:Z,baseTestId:I}):null]}):(0,r.jsx)(x,{label:null!=o?o:"Add new",options:T.map(e=>q(e)),onOptionSelected:Z,baseTestId:I})}},97181:function(e,t,n){n.d(t,{d:function(){return d}});var r=n(24246),i=n(96306),l=n(34090),o=n(27378),a=n(46238),s=n(40324);let d=e=>{let{name:t,label:n,labelProps:d,tooltip:c,isRequired:u,layout:p="inline",helperText:x,...m}=e,[h,f,{setValue:v}]=(0,l.U$)(t),g=!!(f.touched&&f.error),[j,b]=(0,o.useState)("");h.value||"tags"!==m.mode&&"multiple"!==m.mode||(h.value=[]),"tags"===m.mode&&"string"==typeof h.value&&(h.value=[h.value]);let y="tags"===m.mode?(e,t)=>e?e.value!==j||h.value.includes(j)?m.optionRender?m.optionRender(e,t):e.label:'Create "'.concat(j,'"'):void 0:m.optionRender||void 0,C=e=>{b(e),m.onSearch&&m.onSearch(e)},w=(e,t)=>{v(e),m.onChange&&m.onChange(e,t)};return"inline"===p?(0,r.jsx)(i.NIc,{isInvalid:g,isRequired:u,children:(0,r.jsxs)(i.rjZ,{templateColumns:n?"1fr 3fr":"1fr",children:[n?(0,r.jsx)(s.__,{htmlFor:m.id||t,...d,children:n}):null,(0,r.jsxs)(i.jqI,{align:"center",children:[(0,r.jsxs)(i.jqI,{vertical:!0,flex:1,className:"mr-2",children:[(0,r.jsx)(i.WPr,{...h,id:m.id||t,"data-testid":"controlled-select-".concat(h.name),...m,optionRender:y,onSearch:"tags"===m.mode?C:void 0,onChange:w,value:h.value||void 0,status:g?"error":void 0}),x&&(0,r.jsx)(i.Q6r,{children:x}),(0,r.jsx)(s.Bc,{isInvalid:g,message:f.error,fieldName:h.name})]}),(0,r.jsx)(a.b,{label:c,className:g?"mt-2 self-start":void 0})]})]})}):(0,r.jsx)(i.NIc,{isInvalid:g,isRequired:u,children:(0,r.jsxs)(i.gCW,{alignItems:"start",children:[(0,r.jsxs)(i.jqI,{align:"center",children:[n?(0,r.jsx)(s.__,{htmlFor:m.id||t,fontSize:"xs",my:0,mr:1,...d,children:n}):null,(0,r.jsx)(a.b,{label:c})]}),(0,r.jsx)(i.WPr,{...h,id:m.id||t,"data-testid":"controlled-select-".concat(h.name),...m,optionRender:y,onSearch:"tags"===m.mode?C:void 0,onChange:w,value:h.value||void 0,status:g?"error":void 0}),x&&(0,r.jsx)(i.Q6r,{style:{marginTop:0},children:x}),(0,r.jsx)(s.Bc,{isInvalid:g,message:f.error,fieldName:h.name})]})})}},10342:function(e,t,n){var r=n(24246),i=n(96306),l=n(46238);t.Z=e=>{let{title:t,tooltip:n,children:o,...a}=e;return(0,r.jsxs)(i.xuv,{borderRadius:"md",border:"1px solid",borderColor:"gray.200",...a,children:[(0,r.jsxs)(i.X6q,{as:"h3",fontSize:"sm",fontWeight:"semibold",color:"gray.700",py:4,px:6,backgroundColor:"gray.50",borderRadius:"md",textAlign:"left",children:[t,n?(0,r.jsx)(i.xvT,{as:"span",mx:1,children:(0,r.jsx)(l.b,{label:n})}):void 0]}),(0,r.jsx)(i.Kqy,{p:6,spacing:6,children:o})]})}},70788:function(e,t,n){n.d(t,{m:function(){return d}});var r=n(24246),i=n(96306),l=n(79894),o=n.n(l),a=n(27378);let{Text:s}=i.AntTypography,d=e=>{let{items:t,...n}=e,l=(0,a.useMemo)(()=>null==t?void 0:t.map((e,n)=>{let l=n===t.length-1,a={...e},d=a.onClick&&!a.href;return("string"==typeof a.title&&(a.title=(0,r.jsx)(s,{style:{color:"inherit",maxWidth:l?void 0:400},ellipsis:!l,id:l?"breadcrumb-current-page":void 0,children:a.title})),d)?a.title=(0,r.jsx)(i.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,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("span",{className:"anticon align-text-bottom",children:a.icon}),a.title]})),a.href&&a.title&&(a.title=(0,r.jsx)(o(),{href:a.href,className:"ant-breadcrumb-link",children:a.title}),delete a.href)),a}),[t]);return(0,r.jsx)(i.zrq,{items:l,...n})}},3642:function(e,t,n){var r=n(24246),i=n(96306),l=n(86677),o=n.n(l),a=n(27378),s=n(812),d=n(58452),c=n(77830),u=n(19904),p=n(46628),x=n(98795),m=n(54682);t.Z=e=>{let{property:t,triggerComponent:n}=e,l=(0,i.pmc)(),h=(0,i.qY0)(),[f]=(0,x.YW)(),v=t.experiences.length>0,g=async()=>{h.onClose();let e=await f(t.id);if((0,s.D4)(e)){l((0,p.Vo)((0,s.e$)(e.error)));return}o().push("".concat(c.ru)),l((0,p.t5)("Property ".concat(t.name," deleted successfully")))};return(0,r.jsxs)(u.ZP,{scopes:[m.Sh.PROPERTY_DELETE],children:[(0,r.jsx)(i.esZ,{title:v?"All of the experiences on this property must be unlinked before the property can be deleted.":void 0,placement:"right",children:(0,r.jsx)("span",{children:a.cloneElement(n,{onClick:e=>{e.stopPropagation(),v||h.onOpen()},disabled:v})})}),(0,r.jsx)(d.Z,{isOpen:h.isOpen,onClose:h.onClose,onConfirm:g,title:"Delete ".concat(t.name),message:(0,r.jsxs)(i.xvT,{color:"gray.500",children:["You are about to delete property ",t.name,". This action is not reversible and will result in ",t.name," no longer being available for your data governance. Are you sure you want to proceed?"]}),continueButtonText:"Ok",isCentered:!0,icon:(0,r.jsx)(i.aNP,{})})]})}},18880:function(e,t,n){var r=n(24246),i=n(96306),l=n(34090),o=n(86677),a=n(27378),s=n(16134),d=n(10342),c=n(40324),u=n(812),p=n(77830),x=n(51472),m=n(94315),h=n(54682),f=n(97181),v=n(3642);let g=()=>{var e;let t=(0,s.C)(m.Zp),n=(0,s.C)(m.G1);(0,m.cq)({page:t,size:n});let i=(0,s.C)(m.w4),{values:o,setFieldValue:a}=(0,l.u6)();return(0,r.jsx)(d.Z,{title:"Experiences",children:(0,r.jsx)(x.Z,{addButtonLabel:"Add experience",idField:"id",nameField:"name",allItems:i.map(e=>({id:e.id,name:e.name})),values:null!==(e=o.experiences)&&void 0!==e?e:[],setValues:e=>a("experiences",e),draggable:!0,baseTestId:"experience"})})};t.Z=e=>{let{property:t,handleSubmit:n}=e,s=(0,o.useRouter)(),x=()=>{s.push(p.ru)},m=(0,a.useMemo)(()=>t||{name:"",type:h.uS.WEBSITE,experiences:[],messaging_templates:[],paths:[]},[t]);return(0,r.jsx)(l.J9,{enableReinitialize:!0,initialValues:m,onSubmit:n,children:e=>{let{dirty:n,isValid:o,isSubmitting:a}=e;return(0,r.jsxs)(l.l0,{style:{paddingTop:"12px",paddingBottom:"12px"},children:[(0,r.jsx)(i.xuv,{py:3,children:(0,r.jsxs)(d.Z,{title:"Property details",children:[(0,r.jsx)(c.j0,{isRequired:!0,label:"Property name",name:"name",tooltip:"Unique name to identify this property",variant:"stacked"}),(0,r.jsx)(f.d,{isRequired:!0,label:"Type",name:"type",options:(0,u.MM)(h.uS),layout:"stacked"})]})}),(0,r.jsx)(i.xuv,{py:3,children:(0,r.jsx)(g,{})}),t&&(0,r.jsx)(i.xuv,{py:3,children:(0,r.jsx)(d.Z,{title:"Advanced settings",children:(0,r.jsx)(c.Io,{label:"Property ID",name:"id",tooltip:"Automatically generated unique ID for this property, used for developer configurations",variant:"stacked",readOnly:!0})})}),(0,r.jsxs)(i.kCb,{justifyContent:"space-between",width:"100%",paddingTop:2,children:[t&&(0,r.jsx)(v.Z,{property:t,triggerComponent:(0,r.jsx)(i.wpx,{"data-testid":"delete-property-button",loading:!1,className:"mr-3",children:"Delete"})}),(0,r.jsxs)(i.kCb,{justifyContent:"right",width:"100%",paddingTop:2,children:[(0,r.jsx)(i.wpx,{onClick:x,loading:!1,className:"mr-3",children:"Cancel"}),(0,r.jsx)(i.wpx,{htmlType:"submit",type:"primary",disabled:a||!n||!o,loading:a,children:"Save"})]})]})]})}})}},31883:function(e,t,n){n.d(t,{Bw:function(){return r.Bw},D4:function(){return r.D4}});var r=n(19043)},11055:function(e,t,n){n.d(t,{M:function(){return u}});var r=n(24246),i=n(29427),l=n(27378),o=n(40976),a=n(18397),s=n(42308),d=n(25431),c=n(39556);let u=(0,l.forwardRef)(function({children:e,as:t="ul",axis:n="y",onReorder:u,values:m,...h},f){let v=(0,s.h)(()=>a.E[t]),g=[],j=(0,l.useRef)(!1);return(0,i.k)(!!m,"Reorder.Group must be provided a values prop"),(0,l.useEffect)(()=>{j.current=!1}),(0,r.jsx)(v,{...h,ref:f,ignoreStrict:!0,children:(0,r.jsx)(o.Y.Provider,{value:{axis:n,registerItem:(e,t)=>{let r=g.findIndex(t=>e===t.value);-1!==r?g[r].layout=t[n]:g.push({value:e,layout:t[n]}),g.sort(x)},updateOrder:(e,t,n)=>{if(j.current)return;let r=function(e,t,n,r){if(!r)return e;let i=e.findIndex(e=>e.value===t);if(-1===i)return e;let l=r>0?1:-1,o=e[i+l];if(!o)return e;let a=e[i],s=o.layout,u=(0,c.t)(s.min,s.max,.5);return 1===l&&a.layout.max+n>u||-1===l&&a.layout.min+n<u?(0,d.uo)(e,i,i+l):e}(g,e,t,n);g!==r&&(j.current=!0,u(r.map(p).filter(e=>-1!==m.indexOf(e))))}},children:e})})});function p(e){return e.value}function x(e,t){return e.layout.min-t.layout.min}},7078:function(e,t,n){n.d(t,{e:function(){return y}});var r=n(24246),i=n(29427),l=n(27378),o=n(40976),a=n(18397),s=n(42308),d=n(69222),c=n(67412);function u(e){let t=(0,s.h)(()=>(0,d.BX)(e)),{isStatic:n}=(0,l.useContext)(c._);if(n){let[,n]=(0,l.useState)(e);(0,l.useEffect)(()=>t.on("change",n),[])}return t}var p=n(13998);let x=e=>e&&"object"==typeof e&&e.mix,m=e=>x(e)?e.mix:void 0;var h=n(64306),f=n(95984);function v(e,t){let n=u(t()),r=()=>n.set(t());return r(),(0,h.L)(()=>{let t=()=>f.Wi.preRender(r,!1,!0),n=e.map(e=>e.on("change",t));return()=>{n.forEach(e=>e()),(0,f.Pn)(r)}}),n}function g(e,t){let n=(0,s.h)(()=>[]);return v(e,()=>{n.length=0;let r=e.length;for(let t=0;t<r;t++)n[t]=e[t].get();return t(n)})}var j=n(3522);function b(e,t=0){return(0,j.i)(e)?e:u(t)}let y=(0,l.forwardRef)(function({children:e,style:t={},value:n,as:c="li",onDrag:u,layout:x=!0,...h},f){let j=(0,s.h)(()=>a.E[c]),y=(0,l.useContext)(o.Y),C={x:b(t.x),y:b(t.y)},w=function(e,t,n,r){if("function"==typeof e)return function(e){d.S1.current=[],e();let t=v(d.S1.current,e);return d.S1.current=void 0,t}(e);let i="function"==typeof t?t:function(...e){let t=!Array.isArray(e[0]),n=t?0:-1,r=e[0+n],i=e[1+n],l=e[2+n],o=e[3+n],a=(0,p.s)(i,l,{mixer:m(l[0]),...o});return t?a(r):a}(t,void 0,void 0);return Array.isArray(e)?g(e,i):g([e],([e])=>i(e))}([C.x,C.y],([e,t])=>e||t?1:"unset");(0,i.k)(!!y,"Reorder.Item must be a child of Reorder.Group");let{axis:k,registerItem:R,updateOrder:I}=y;return(0,r.jsx)(j,{drag:k,...h,dragSnapToOrigin:!0,style:{...t,x:C.x,y:C.y,zIndex:w},layout:x,onDrag:(e,t)=>{let{velocity:r}=t;r[k]&&I(n,C[k].get(),r[k]),u&&u(e,t)},onLayoutMeasure:e=>R(n,e),ref:f,ignoreStrict:!0,children:e})})},40976:function(e,t,n){n.d(t,{Y:function(){return r}});let r=(0,n(27378).createContext)(null)},47397:function(e,t,n){n.d(t,{o:function(){return o}});var r=n(42308);class i{constructor(){this.componentControls=new Set}subscribe(e){return this.componentControls.add(e),()=>this.componentControls.delete(e)}start(e,t){this.componentControls.forEach(n=>{n.start(e.nativeEvent||e,t)})}}let l=()=>new i;function o(){return(0,r.h)(l)}}}]);
|
|
1
|
+
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[787],{77213:function(e,t,n){n.d(t,{Z:function(){return p}});var r=n(24246),i=n(96306),l=n(88038),o=n.n(l),a=n(86677);n(27378);var s=n(25980),d=n(90867),c=n(77830),u=()=>{let e=(0,a.useRouter)();return(0,r.jsx)(i.xuv,{bg:"gray.50",border:"1px solid",borderColor:"blue.400",borderRadius:"md",justifyContent:"space-between",p:5,mb:5,mt:5,children:(0,r.jsxs)(i.xuv,{children:[(0,r.jsxs)(i.Kqy,{direction:{base:"column",sm:"row"},justifyContent:"space-between",children:[(0,r.jsx)(i.xvT,{fontWeight:"semibold",children:"Configure your storage and messaging provider"}),(0,r.jsx)(i.wpx,{onClick:()=>{e.push(c.fz)},children:"Configure"})]}),(0,r.jsxs)(i.xvT,{children:["Before Fides can process your privacy requests we need two simple steps to configure your storage and email client."," "]})]})})},p=e=>{let{children:t,title:n,padded:l=!0,mainProps:c}=e,p=(0,s.hz)(),x=(0,a.useRouter)(),m="/privacy-requests"===x.pathname||"/datastore-connection"===x.pathname,h=!(p.flags.privacyRequestsConfiguration&&m),{data:f}=(0,d.JE)(void 0,{skip:h}),{data:v}=(0,d.PW)(void 0,{skip:h}),g=p.flags.privacyRequestsConfiguration&&(!f||!v)&&m;return(0,r.jsxs)(i.kCb,{"data-testid":n,direction:"column",h:"100vh",children:[(0,r.jsxs)(o(),{children:[(0,r.jsxs)("title",{children:["Fides Admin UI - ",n]}),(0,r.jsx)("meta",{name:"description",content:"Privacy Engineering Platform"}),(0,r.jsx)("link",{rel:"icon",href:"/favicon.ico"})]}),(0,r.jsxs)(i.kCb,{as:"main",direction:"column",py:l?6:0,px:l?10:0,h:l?"calc(100% - 48px)":"full",flex:1,minWidth:0,overflow:"auto",...c,children:[g?(0,r.jsx)(u,{}):null,t]})]})}},58754:function(e,t,n){var r=n(24246),i=n(96306),l=n(70788);t.Z=e=>{let{heading:t,breadcrumbItems:n,isSticky:o=!0,children:a,rightContent:s,style:d,...c}=e;return(0,r.jsxs)("div",{...c,style:o?{position:"sticky",top:"-24px",paddingTop:"24px",paddingBottom:"24px",paddingLeft:"40px",marginLeft:"-40px",paddingRight:"40px",marginRight:"-40px",marginTop:"-24px",left:0,zIndex:20,backgroundColor:"white",...d}:{paddingBottom:"24px",...d},children:[(0,r.jsxs)(i.jqI,{justify:"space-between",children:["string"==typeof t?(0,r.jsx)(i.lQT,{className:n||a?"pb-4":void 0,level:1,"data-testid":"page-heading",children:t}):t,s&&(0,r.jsx)("div",{"data-testid":"page-header-right-content",children:s})]}),!!n&&(0,r.jsx)(l.m,{className:a?"pb-4":void 0,items:n,"data-testid":"page-breadcrumb"}),a]})}},19904:function(e,t,n){n.d(t,{Tg:function(){return o}});var r=n(24246),i=n(16134),l=n(31793);let o=e=>(0,i.C)(l.uu).filter(t=>e.includes(t)).length>0;t.ZP=e=>{let{scopes:t,children:n}=e;return o(t)?(0,r.jsx)(r.Fragment,{children:n}):null}},51472:function(e,t,n){var r=n(24246),i=n(96306),l=n(47397),o=n(7078),a=n(18397),s=n(11055),d=n(27378),c=n(40324),u=n(46238);let p=e=>{let{item:t,label:n,draggable:a,onDeleteItem:s,onEditItem:d,tooltip:c,onRowClick:p,maxH:x=10,rowTestId:m}=e,h=(0,l.o)(),f=(0,r.jsxs)(i.kCb,{direction:"row",gap:2,maxH:x,w:"full",px:2,align:"center",role:"group",className:"group",borderY:"1px",my:"-1px",borderColor:"gray.200",_hover:p?{bgColor:"gray.100"}:void 0,bgColor:"white",position:"relative",children:[a&&(0,r.jsx)(i.VVU,{onPointerDown:e=>h.start(e),cursor:"grab"}),(0,r.jsxs)(i.kCb,{direction:"row",gap:2,p:2,align:"center",w:"full",cursor:p?"pointer":"auto",onClick:()=>{p&&p(t)},overflow:"clip","data-testid":m,children:[(0,r.jsx)(i.xvT,{fontSize:"sm",userSelect:"none",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden",children:n}),(0,r.jsx)(u.b,{label:c})]}),(0,r.jsxs)(i.vyj,{className:"invisible absolute right-2 bg-white group-hover:visible",children:[d&&(0,r.jsx)(i.wpx,{"aria-label":"Edit",onClick:()=>d(t),icon:(0,r.jsx)(i.PJP.I8b,{}),size:"small","data-testid":"edit-".concat(m)}),s&&(0,r.jsx)(i.wpx,{"aria-label":"Delete",onClick:()=>s(t),icon:(0,r.jsx)(i.PJP.ZNm,{}),size:"small","data-testid":"delete-".concat(m)})]})]});return a?(0,r.jsx)(o.e,{value:t,dragListener:!1,dragControls:h,children:f}):f},x=e=>{let{label:t,options:n,onOptionSelected:l,baseTestId:o}=e,[a,s]=(0,d.useState)(!1),[c,u]=(0,d.useState)(void 0);return a?(0,r.jsx)(i.xuv,{w:"full",children:(0,r.jsx)(i.WPr,{labelInValue:!0,placeholder:"Select...",filterOption:(e,t)=>{var n;return(null!==(n=null==t?void 0:t.label)&&void 0!==n?n:"").toLowerCase().includes(e.toLowerCase())},value:c,options:n,onChange:e=>{l(e),s(!1),u(void 0)},className:"w-full","data-testid":"select-".concat(o)})}):(0,r.jsx)(i.wpx,{onClick:()=>s(!0),"data-testid":"add-".concat(o),block:!0,icon:(0,r.jsx)(i.jBn,{boxSize:4}),iconPosition:"end",children:t})};t.Z=e=>{let{label:t,tooltip:n,draggable:l,addButtonLabel:o,allItems:d,idField:m,nameField:h=m,values:f,setValues:v,canDeleteItem:g,getTooltip:j,onRowClick:b,onEditItem:y,selectOnAdd:C,getItemLabel:w,createNewValue:k,maxHeight:R=36,baseTestId:I}=e,S=e=>e instanceof Object&&m&&m in e?e[m]:e,T=d.every(e=>"string"==typeof e)?d.filter(e=>f.every(t=>t!==e)):d.filter(e=>f.every(t=>S(t)!==S(e))),P=e=>{v(f.filter(t=>t!==e).slice())},E=null!=w?w:e=>e instanceof Object&&m&&m in e?h&&h in e?e[h]:e[m]:e,q=e=>{let t=e instanceof Object&&m&&m in e?e[m]:e;return{label:E(e),value:t}},N=e=>d.every(e=>"string"==typeof e)?e.value:d.find(t=>t[m]===e.value),Z=e=>{let t=k?k(e):N(e);v([t,...f.slice()]),C&&b&&b(t),C&&y&&y(t)},O={border:"1px",borderColor:"gray.200",borderRadius:"md",w:"full",maxH:"8.5rem",overflowY:"auto"},z=l?(0,r.jsx)(i.xuv,{as:a.E.div,layoutScroll:!0,...O,children:(0,r.jsx)(s.M,{values:f,onReorder:e=>v(e.slice()),children:f.map(e=>{let t=S(e);return(0,r.jsx)(p,{item:e,label:E(e),onDeleteItem:!g||g&&g(e)?P:void 0,onEditItem:y,onRowClick:b,draggable:!0,maxH:R,rowTestId:"".concat(I,"-row-").concat(t),tooltip:j&&j(e)?j(e):void 0},t)})})}):(0,r.jsx)(i.xuv,{...O,children:(0,r.jsx)(i.aVo,{children:f.map(e=>{let t=S(e);return(0,r.jsx)(p,{item:e,label:E(e),onRowClick:b,onDeleteItem:P,tooltip:j&&j(e)?j(e):void 0,maxH:R,rowTestId:"".concat(I,"-row-").concat(t)},t)})})});return f.length?(0,r.jsxs)(i.kCb,{align:"start",direction:"column",w:"full",gap:4,children:[t?(0,r.jsx)(c.__,{htmlFor:"test",fontSize:"xs",my:0,mr:1,children:t}):null,(0,r.jsx)(u.b,{label:n}),z,T.length?(0,r.jsx)(x,{label:null!=o?o:"Add new",options:T.map(e=>q(e)),onOptionSelected:Z,baseTestId:I}):null]}):(0,r.jsx)(x,{label:null!=o?o:"Add new",options:T.map(e=>q(e)),onOptionSelected:Z,baseTestId:I})}},97181:function(e,t,n){n.d(t,{d:function(){return d}});var r=n(24246),i=n(96306),l=n(34090),o=n(27378),a=n(46238),s=n(40324);let d=e=>{let{name:t,label:n,labelProps:d,tooltip:c,isRequired:u,layout:p="inline",helperText:x,...m}=e,[h,f,{setValue:v}]=(0,l.U$)(t),g=!!(f.touched&&f.error),[j,b]=(0,o.useState)("");h.value||"tags"!==m.mode&&"multiple"!==m.mode||(h.value=[]),"tags"===m.mode&&"string"==typeof h.value&&(h.value=[h.value]);let y="tags"===m.mode?(e,t)=>e?e.value!==j||h.value.includes(j)?m.optionRender?m.optionRender(e,t):e.label:'Create "'.concat(j,'"'):void 0:m.optionRender||void 0,C=e=>{b(e),m.onSearch&&m.onSearch(e)},w=(e,t)=>{v(e),m.onChange&&m.onChange(e,t)};return"inline"===p?(0,r.jsx)(i.NIc,{isInvalid:g,isRequired:u,children:(0,r.jsxs)(i.rjZ,{templateColumns:n?"1fr 3fr":"1fr",children:[n?(0,r.jsx)(s.__,{htmlFor:m.id||t,...d,children:n}):null,(0,r.jsxs)(i.jqI,{align:"center",children:[(0,r.jsxs)(i.jqI,{vertical:!0,flex:1,className:"mr-2",children:[(0,r.jsx)(i.WPr,{...h,id:m.id||t,"data-testid":"controlled-select-".concat(h.name),...m,optionRender:y,onSearch:"tags"===m.mode?C:void 0,onChange:w,value:h.value||void 0,status:g?"error":void 0}),x&&(0,r.jsx)(i.Q6r,{children:x}),(0,r.jsx)(s.Bc,{isInvalid:g,message:f.error,fieldName:h.name})]}),(0,r.jsx)(a.b,{label:c,className:g?"mt-2 self-start":void 0})]})]})}):(0,r.jsx)(i.NIc,{isInvalid:g,isRequired:u,children:(0,r.jsxs)(i.gCW,{alignItems:"start",children:[(0,r.jsxs)(i.jqI,{align:"center",children:[n?(0,r.jsx)(s.__,{htmlFor:m.id||t,fontSize:"xs",my:0,mr:1,...d,children:n}):null,(0,r.jsx)(a.b,{label:c})]}),(0,r.jsx)(i.WPr,{...h,id:m.id||t,"data-testid":"controlled-select-".concat(h.name),...m,optionRender:y,onSearch:"tags"===m.mode?C:void 0,onChange:w,value:h.value||void 0,status:g?"error":void 0}),x&&(0,r.jsx)(i.Q6r,{style:{marginTop:0},children:x}),(0,r.jsx)(s.Bc,{isInvalid:g,message:f.error,fieldName:h.name})]})})}},10342:function(e,t,n){var r=n(24246),i=n(96306),l=n(46238);t.Z=e=>{let{title:t,tooltip:n,children:o,...a}=e;return(0,r.jsxs)(i.xuv,{borderRadius:"md",border:"1px solid",borderColor:"gray.200",...a,children:[(0,r.jsxs)(i.X6q,{as:"h3",fontSize:"sm",fontWeight:"semibold",color:"gray.700",py:4,px:6,backgroundColor:"gray.50",borderRadius:"md",textAlign:"left",children:[t,n?(0,r.jsx)(i.xvT,{as:"span",mx:1,children:(0,r.jsx)(l.b,{label:n})}):void 0]}),(0,r.jsx)(i.Kqy,{p:6,spacing:6,children:o})]})}},70788:function(e,t,n){n.d(t,{m:function(){return d}});var r=n(24246),i=n(96306),l=n(79894),o=n.n(l),a=n(27378);let{Text:s}=i.AntTypography,d=e=>{let{items:t,...n}=e,l=(0,a.useMemo)(()=>null==t?void 0:t.map((e,n)=>{let l=n===t.length-1,a={...e},d=a.onClick&&!a.href;return("string"==typeof a.title&&(a.title=(0,r.jsx)(s,{style:{color:"inherit",maxWidth:l?void 0:400},ellipsis:!l,id:l?"breadcrumb-current-page":void 0,children:a.title})),d)?a.title=(0,r.jsx)(i.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,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("span",{className:"anticon align-text-bottom",children:a.icon}),a.title]})),a.href&&a.title&&(a.title=(0,r.jsx)(o(),{href:a.href,className:"ant-breadcrumb-link",children:a.title}),delete a.href)),a}),[t]);return(0,r.jsx)(i.zrq,{items:l,...n})}},3642:function(e,t,n){var r=n(24246),i=n(96306),l=n(86677),o=n.n(l),a=n(27378),s=n(812),d=n(58452),c=n(77830),u=n(19904),p=n(46628),x=n(98795),m=n(21910);t.Z=e=>{let{property:t,triggerComponent:n}=e,l=(0,i.pmc)(),h=(0,i.qY0)(),[f]=(0,x.YW)(),v=t.experiences.length>0,g=async()=>{h.onClose();let e=await f(t.id);if((0,s.D4)(e)){l((0,p.Vo)((0,s.e$)(e.error)));return}o().push("".concat(c.ru)),l((0,p.t5)("Property ".concat(t.name," deleted successfully")))};return(0,r.jsxs)(u.ZP,{scopes:[m.Sh.PROPERTY_DELETE],children:[(0,r.jsx)(i.esZ,{title:v?"All of the experiences on this property must be unlinked before the property can be deleted.":void 0,placement:"right",children:(0,r.jsx)("span",{children:a.cloneElement(n,{onClick:e=>{e.stopPropagation(),v||h.onOpen()},disabled:v})})}),(0,r.jsx)(d.Z,{isOpen:h.isOpen,onClose:h.onClose,onConfirm:g,title:"Delete ".concat(t.name),message:(0,r.jsxs)(i.xvT,{color:"gray.500",children:["You are about to delete property ",t.name,". This action is not reversible and will result in ",t.name," no longer being available for your data governance. Are you sure you want to proceed?"]}),continueButtonText:"Ok",isCentered:!0,icon:(0,r.jsx)(i.aNP,{})})]})}},18880:function(e,t,n){var r=n(24246),i=n(96306),l=n(34090),o=n(86677),a=n(27378),s=n(16134),d=n(10342),c=n(40324),u=n(812),p=n(77830),x=n(51472),m=n(94315),h=n(21910),f=n(97181),v=n(3642);let g=()=>{var e;let t=(0,s.C)(m.Zp),n=(0,s.C)(m.G1);(0,m.cq)({page:t,size:n});let i=(0,s.C)(m.w4),{values:o,setFieldValue:a}=(0,l.u6)();return(0,r.jsx)(d.Z,{title:"Experiences",children:(0,r.jsx)(x.Z,{addButtonLabel:"Add experience",idField:"id",nameField:"name",allItems:i.map(e=>({id:e.id,name:e.name})),values:null!==(e=o.experiences)&&void 0!==e?e:[],setValues:e=>a("experiences",e),draggable:!0,baseTestId:"experience"})})};t.Z=e=>{let{property:t,handleSubmit:n}=e,s=(0,o.useRouter)(),x=()=>{s.push(p.ru)},m=(0,a.useMemo)(()=>t||{name:"",type:h.uS.WEBSITE,experiences:[],messaging_templates:[],paths:[]},[t]);return(0,r.jsx)(l.J9,{enableReinitialize:!0,initialValues:m,onSubmit:n,children:e=>{let{dirty:n,isValid:o,isSubmitting:a}=e;return(0,r.jsxs)(l.l0,{style:{paddingTop:"12px",paddingBottom:"12px"},children:[(0,r.jsx)(i.xuv,{py:3,children:(0,r.jsxs)(d.Z,{title:"Property details",children:[(0,r.jsx)(c.j0,{isRequired:!0,label:"Property name",name:"name",tooltip:"Unique name to identify this property",variant:"stacked"}),(0,r.jsx)(f.d,{isRequired:!0,label:"Type",name:"type",options:(0,u.MM)(h.uS),layout:"stacked"})]})}),(0,r.jsx)(i.xuv,{py:3,children:(0,r.jsx)(g,{})}),t&&(0,r.jsx)(i.xuv,{py:3,children:(0,r.jsx)(d.Z,{title:"Advanced settings",children:(0,r.jsx)(c.Io,{label:"Property ID",name:"id",tooltip:"Automatically generated unique ID for this property, used for developer configurations",variant:"stacked",readOnly:!0})})}),(0,r.jsxs)(i.kCb,{justifyContent:"space-between",width:"100%",paddingTop:2,children:[t&&(0,r.jsx)(v.Z,{property:t,triggerComponent:(0,r.jsx)(i.wpx,{"data-testid":"delete-property-button",loading:!1,className:"mr-3",children:"Delete"})}),(0,r.jsxs)(i.kCb,{justifyContent:"right",width:"100%",paddingTop:2,children:[(0,r.jsx)(i.wpx,{onClick:x,loading:!1,className:"mr-3",children:"Cancel"}),(0,r.jsx)(i.wpx,{htmlType:"submit",type:"primary",disabled:a||!n||!o,loading:a,children:"Save"})]})]})]})}})}},31883:function(e,t,n){n.d(t,{Bw:function(){return r.Bw},D4:function(){return r.D4}});var r=n(19043)},11055:function(e,t,n){n.d(t,{M:function(){return u}});var r=n(24246),i=n(29427),l=n(27378),o=n(40976),a=n(18397),s=n(42308),d=n(25431),c=n(39556);let u=(0,l.forwardRef)(function({children:e,as:t="ul",axis:n="y",onReorder:u,values:m,...h},f){let v=(0,s.h)(()=>a.E[t]),g=[],j=(0,l.useRef)(!1);return(0,i.k)(!!m,"Reorder.Group must be provided a values prop"),(0,l.useEffect)(()=>{j.current=!1}),(0,r.jsx)(v,{...h,ref:f,ignoreStrict:!0,children:(0,r.jsx)(o.Y.Provider,{value:{axis:n,registerItem:(e,t)=>{let r=g.findIndex(t=>e===t.value);-1!==r?g[r].layout=t[n]:g.push({value:e,layout:t[n]}),g.sort(x)},updateOrder:(e,t,n)=>{if(j.current)return;let r=function(e,t,n,r){if(!r)return e;let i=e.findIndex(e=>e.value===t);if(-1===i)return e;let l=r>0?1:-1,o=e[i+l];if(!o)return e;let a=e[i],s=o.layout,u=(0,c.t)(s.min,s.max,.5);return 1===l&&a.layout.max+n>u||-1===l&&a.layout.min+n<u?(0,d.uo)(e,i,i+l):e}(g,e,t,n);g!==r&&(j.current=!0,u(r.map(p).filter(e=>-1!==m.indexOf(e))))}},children:e})})});function p(e){return e.value}function x(e,t){return e.layout.min-t.layout.min}},7078:function(e,t,n){n.d(t,{e:function(){return y}});var r=n(24246),i=n(29427),l=n(27378),o=n(40976),a=n(18397),s=n(42308),d=n(69222),c=n(67412);function u(e){let t=(0,s.h)(()=>(0,d.BX)(e)),{isStatic:n}=(0,l.useContext)(c._);if(n){let[,n]=(0,l.useState)(e);(0,l.useEffect)(()=>t.on("change",n),[])}return t}var p=n(13998);let x=e=>e&&"object"==typeof e&&e.mix,m=e=>x(e)?e.mix:void 0;var h=n(64306),f=n(95984);function v(e,t){let n=u(t()),r=()=>n.set(t());return r(),(0,h.L)(()=>{let t=()=>f.Wi.preRender(r,!1,!0),n=e.map(e=>e.on("change",t));return()=>{n.forEach(e=>e()),(0,f.Pn)(r)}}),n}function g(e,t){let n=(0,s.h)(()=>[]);return v(e,()=>{n.length=0;let r=e.length;for(let t=0;t<r;t++)n[t]=e[t].get();return t(n)})}var j=n(3522);function b(e,t=0){return(0,j.i)(e)?e:u(t)}let y=(0,l.forwardRef)(function({children:e,style:t={},value:n,as:c="li",onDrag:u,layout:x=!0,...h},f){let j=(0,s.h)(()=>a.E[c]),y=(0,l.useContext)(o.Y),C={x:b(t.x),y:b(t.y)},w=function(e,t,n,r){if("function"==typeof e)return function(e){d.S1.current=[],e();let t=v(d.S1.current,e);return d.S1.current=void 0,t}(e);let i="function"==typeof t?t:function(...e){let t=!Array.isArray(e[0]),n=t?0:-1,r=e[0+n],i=e[1+n],l=e[2+n],o=e[3+n],a=(0,p.s)(i,l,{mixer:m(l[0]),...o});return t?a(r):a}(t,void 0,void 0);return Array.isArray(e)?g(e,i):g([e],([e])=>i(e))}([C.x,C.y],([e,t])=>e||t?1:"unset");(0,i.k)(!!y,"Reorder.Item must be a child of Reorder.Group");let{axis:k,registerItem:R,updateOrder:I}=y;return(0,r.jsx)(j,{drag:k,...h,dragSnapToOrigin:!0,style:{...t,x:C.x,y:C.y,zIndex:w},layout:x,onDrag:(e,t)=>{let{velocity:r}=t;r[k]&&I(n,C[k].get(),r[k]),u&&u(e,t)},onLayoutMeasure:e=>R(n,e),ref:f,ignoreStrict:!0,children:e})})},40976:function(e,t,n){n.d(t,{Y:function(){return r}});let r=(0,n(27378).createContext)(null)},47397:function(e,t,n){n.d(t,{o:function(){return o}});var r=n(42308);class i{constructor(){this.componentControls=new Set}subscribe(e){return this.componentControls.add(e),()=>this.componentControls.delete(e)}start(e,t){this.componentControls.forEach(n=>{n.start(e.nativeEvent||e,t)})}}let l=()=>new i;function o(){return(0,r.h)(l)}}}]);
|
fides/ui-build/static/admin/_next/static/chunks/{79-65674011d455af4d.js → 79-68834fd07d69f428.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[79],{56358:function(e,t,n){n.d(t,{q:function(){return i}});var s=n(24246);let i=(0,n(96306).IUT)({displayName:"TrashCanOutlineIcon",viewBox:"0 0 11 12",path:(0,s.jsx)("path",{d:"M4.5166 1.60859L4.1084 2.21875H7.22363L6.81543 1.60859C6.7832 1.56133 6.72949 1.53125 6.67148 1.53125H4.6584C4.60039 1.53125 4.54668 1.55918 4.51445 1.60859H4.5166ZM7.6748 1.03711L8.46328 2.21875H8.75977H9.79102H9.96289C10.2486 2.21875 10.4785 2.44863 10.4785 2.73438C10.4785 3.02012 10.2486 3.25 9.96289 3.25H9.79102V9.78125C9.79102 10.7309 9.02188 11.5 8.07227 11.5H3.25977C2.31016 11.5 1.54102 10.7309 1.54102 9.78125V3.25H1.36914C1.0834 3.25 0.853516 3.02012 0.853516 2.73438C0.853516 2.44863 1.0834 2.21875 1.36914 2.21875H1.54102H2.57227H2.86875L3.65723 1.03496C3.88066 0.701953 4.25664 0.5 4.6584 0.5H6.67148C7.07324 0.5 7.44922 0.701953 7.67266 1.03496L7.6748 1.03711ZM2.57227 3.25V9.78125C2.57227 10.1615 2.87949 10.4688 3.25977 10.4688H8.07227C8.45254 10.4688 8.75977 10.1615 8.75977 9.78125V3.25H2.57227ZM4.29102 4.625V9.09375C4.29102 9.28281 4.13633 9.4375 3.94727 9.4375C3.7582 9.4375 3.60352 9.28281 3.60352 9.09375V4.625C3.60352 4.43594 3.7582 4.28125 3.94727 4.28125C4.13633 4.28125 4.29102 4.43594 4.29102 4.625ZM6.00977 4.625V9.09375C6.00977 9.28281 5.85508 9.4375 5.66602 9.4375C5.47695 9.4375 5.32227 9.28281 5.32227 9.09375V4.625C5.32227 4.43594 5.47695 4.28125 5.66602 4.28125C5.85508 4.28125 6.00977 4.43594 6.00977 4.625ZM7.72852 4.625V9.09375C7.72852 9.28281 7.57383 9.4375 7.38477 9.4375C7.1957 9.4375 7.04102 9.28281 7.04102 9.09375V4.625C7.04102 4.43594 7.1957 4.28125 7.38477 4.28125C7.57383 4.28125 7.72852 4.43594 7.72852 4.625Z",fill:"currentColor"})})},77213:function(e,t,n){n.d(t,{Z:function(){return u}});var s=n(24246),i=n(96306),r=n(88038),a=n.n(r),o=n(86677);n(27378);var l=n(25980),c=n(90867),d=n(77830),p=()=>{let e=(0,o.useRouter)();return(0,s.jsx)(i.xuv,{bg:"gray.50",border:"1px solid",borderColor:"blue.400",borderRadius:"md",justifyContent:"space-between",p:5,mb:5,mt:5,children:(0,s.jsxs)(i.xuv,{children:[(0,s.jsxs)(i.Kqy,{direction:{base:"column",sm:"row"},justifyContent:"space-between",children:[(0,s.jsx)(i.xvT,{fontWeight:"semibold",children:"Configure your storage and messaging provider"}),(0,s.jsx)(i.wpx,{onClick:()=>{e.push(d.fz)},children:"Configure"})]}),(0,s.jsxs)(i.xvT,{children:["Before Fides can process your privacy requests we need two simple steps to configure your storage and email client."," "]})]})})},u=e=>{let{children:t,title:n,padded:r=!0,mainProps:d}=e,u=(0,l.hz)(),x=(0,o.useRouter)(),h="/privacy-requests"===x.pathname||"/datastore-connection"===x.pathname,g=!(u.flags.privacyRequestsConfiguration&&h),{data:m}=(0,c.JE)(void 0,{skip:g}),{data:j}=(0,c.PW)(void 0,{skip:g}),f=u.flags.privacyRequestsConfiguration&&(!m||!j)&&h;return(0,s.jsxs)(i.kCb,{"data-testid":n,direction:"column",h:"100vh",children:[(0,s.jsxs)(a(),{children:[(0,s.jsxs)("title",{children:["Fides Admin UI - ",n]}),(0,s.jsx)("meta",{name:"description",content:"Privacy Engineering Platform"}),(0,s.jsx)("link",{rel:"icon",href:"/favicon.ico"})]}),(0,s.jsxs)(i.kCb,{as:"main",direction:"column",py:r?6:0,px:r?10:0,h:r?"calc(100% - 48px)":"full",flex:1,minWidth:0,overflow:"auto",...d,children:[f?(0,s.jsx)(p,{}):null,t]})]})}},58754:function(e,t,n){var s=n(24246),i=n(96306),r=n(70788);t.Z=e=>{let{heading:t,breadcrumbItems:n,isSticky:a=!0,children:o,rightContent:l,style:c,...d}=e;return(0,s.jsxs)("div",{...d,style:a?{position:"sticky",top:"-24px",paddingTop:"24px",paddingBottom:"24px",paddingLeft:"40px",marginLeft:"-40px",paddingRight:"40px",marginRight:"-40px",marginTop:"-24px",left:0,zIndex:20,backgroundColor:"white",...c}:{paddingBottom:"24px",...c},children:[(0,s.jsxs)(i.jqI,{justify:"space-between",children:["string"==typeof t?(0,s.jsx)(i.lQT,{className:n||o?"pb-4":void 0,level:1,"data-testid":"page-heading",children:t}):t,l&&(0,s.jsx)("div",{"data-testid":"page-header-right-content",children:l})]}),!!n&&(0,s.jsx)(r.m,{className:o?"pb-4":void 0,items:n,"data-testid":"page-breadcrumb"}),o]})}},19904:function(e,t,n){n.d(t,{Tg:function(){return a}});var s=n(24246),i=n(16134),r=n(31793);let a=e=>(0,i.C)(r.uu).filter(t=>e.includes(t)).length>0;t.ZP=e=>{let{scopes:t,children:n}=e;return a(t)?(0,s.jsx)(s.Fragment,{children:n}):null}},70788:function(e,t,n){n.d(t,{m:function(){return c}});var s=n(24246),i=n(96306),r=n(79894),a=n.n(r),o=n(27378);let{Text:l}=i.AntTypography,c=e=>{let{items:t,...n}=e,r=(0,o.useMemo)(()=>null==t?void 0:t.map((e,n)=>{let r=n===t.length-1,o={...e},c=o.onClick&&!o.href;return("string"==typeof o.title&&(o.title=(0,s.jsx)(l,{style:{color:"inherit",maxWidth:r?void 0:400},ellipsis:!r,id:r?"breadcrumb-current-page":void 0,children:o.title})),c)?o.title=(0,s.jsx)(i.wpx,{type:"text",size:"small",icon:o.icon,onClick:o.onClick,className:"ant-breadcrumb-link -mt-px px-1 text-inherit",children:o.title}):(o.icon&&(o.title=(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("span",{className:"anticon align-text-bottom",children:o.icon}),o.title]})),o.href&&o.title&&(o.title=(0,s.jsx)(a(),{href:o.href,className:"ant-breadcrumb-link",children:o.title}),delete o.href)),o}),[t]);return(0,s.jsx)(i.zrq,{items:r,...n})}},3642:function(e,t,n){var s=n(24246),i=n(96306),r=n(86677),a=n.n(r),o=n(27378),l=n(812),c=n(58452),d=n(77830),p=n(19904),u=n(46628),x=n(98795),h=n(54682);t.Z=e=>{let{property:t,triggerComponent:n}=e,r=(0,i.pmc)(),g=(0,i.qY0)(),[m]=(0,x.YW)(),j=t.experiences.length>0,f=async()=>{g.onClose();let e=await m(t.id);if((0,l.D4)(e)){r((0,u.Vo)((0,l.e$)(e.error)));return}a().push("".concat(d.ru)),r((0,u.t5)("Property ".concat(t.name," deleted successfully")))};return(0,s.jsxs)(p.ZP,{scopes:[h.Sh.PROPERTY_DELETE],children:[(0,s.jsx)(i.esZ,{title:j?"All of the experiences on this property must be unlinked before the property can be deleted.":void 0,placement:"right",children:(0,s.jsx)("span",{children:o.cloneElement(n,{onClick:e=>{e.stopPropagation(),j||g.onOpen()},disabled:j})})}),(0,s.jsx)(c.Z,{isOpen:g.isOpen,onClose:g.onClose,onConfirm:f,title:"Delete ".concat(t.name),message:(0,s.jsxs)(i.xvT,{color:"gray.500",children:["You are about to delete property ",t.name,". This action is not reversible and will result in ",t.name," no longer being available for your data governance. Are you sure you want to proceed?"]}),continueButtonText:"Ok",isCentered:!0,icon:(0,s.jsx)(i.aNP,{})})]})}},25783:function(e,t,n){n.d(t,{V:function(){return M}});var s=n(24246),i=n(92222),r=n(59003),a=n(47935),o=n(96306),l=n(98784),c=n.n(l),d=n(86677),p=n(27378),u=n(77830),x=n(19904),h=n(32885),g=n(98795),m=n(54682),j=e=>{let{buttonLabel:t,buttonProps:n}=e,i=(0,d.useRouter)();return(0,s.jsx)(o.wpx,{onClick:()=>i.push(u.B9),"data-testid":"add-property-button",...n,children:t})},f=n(56358),y=n(88340),C=n(25980),b=n(14048);let v="{privacy-center-hostname-and-path}",w="{property-unique-id}",P='<script src="https://'.concat(v,"/fides.js?property_id=").concat(w,'"></script>'),R="<script>Fides.gtm()</script>";var T=e=>{let{property:t}=e,n=(0,o.qY0)(),i=(0,p.useRef)(null),{fidesCloud:r}=(0,C.hz)(),{data:a,isSuccess:l}=(0,h.Vh)(void 0,{skip:!r}),c=(0,p.useMemo)(()=>{let e=P.replace(w,t.id.toString());return r&&l&&(null==a?void 0:a.privacy_center_url)&&e.replace(v,a.privacy_center_url),e},[null==a?void 0:a.privacy_center_url,r,l,t]);return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(o.wpx,{"aria-label":"Install property",size:"small",className:"mr-[10px]",icon:(0,s.jsx)(b.A5,{}),onClick:e=>{e.stopPropagation(),n.onOpen()}}),(0,s.jsxs)(o.u_l,{isOpen:n.isOpen,onClose:n.onClose,isCentered:!0,size:"xl",initialFocusRef:i,children:[(0,s.jsx)(o.ZAr,{}),(0,s.jsxs)(o.hzk,{"data-testid":"copy-js-tag-modal",children:[(0,s.jsx)(o.xBx,{tabIndex:-1,ref:i,pb:0,children:"Install Fides Consent Manager"}),(0,s.jsx)(o.fef,{pt:3,pb:6,fontSize:"14px",fontWeight:500,children:(0,s.jsxs)(o.Kqy,{spacing:3,children:[(0,s.jsxs)(o.xvT,{children:["Copy the code below and paste it onto every page of the"," ",t.name," property."]}),(0,s.jsxs)(o.xvT,{children:["1. Paste this code as high in the ",(0,s.jsx)("b",{children:"<head>"})," of the page as possible:"]}),(0,s.jsxs)(o.EKh,{display:"flex",justifyContent:"space-between",alignItems:"top",p:0,children:[(0,s.jsx)(o.xvT,{p:4,children:c}),(0,s.jsx)(y.Z,{copyText:c})]}),(0,s.jsx)(o.xvT,{children:"2. Optionally, you can enable Google Tag Manager for managing tags on your website by including the script tag below along with the Fides.js tag. Place it below the Fides.js script tag."}),(0,s.jsxs)(o.EKh,{display:"flex",justifyContent:"space-between",alignItems:"center",p:0,children:[(0,s.jsx)(o.xvT,{p:4,children:R}),(0,s.jsx)(y.Z,{copyText:R})]}),(0,s.jsxs)(o.xvT,{children:["For more information about adding a JavaScript tag to your website, please visit"," ",(0,s.jsx)(o.rUS,{color:"complimentary.500",href:"https://docs.ethyca.com/tutorials/consent-management-configuration/install-fides#install-fidesjs-script-on-your-website",isExternal:!0,children:"docs.ethyca.com"})]})]})})]})]})]})},k=n(3642),E=e=>{let{property:t}=e,n=(0,d.useRouter)(),i=()=>{n.push("".concat(u.ru,"/").concat(t.id))};return(0,s.jsxs)(o.xuv,{py:2,children:[(0,s.jsx)(T,{property:t}),(0,s.jsx)(x.ZP,{scopes:[m.Sh.PROPERTY_UPDATE],children:(0,s.jsx)(o.wpx,{"aria-label":"Edit property","data-testid":"edit-property-button",size:"small",className:"mr-[10px]",icon:(0,s.jsx)(o.dY8,{}),onClick:e=>{e.stopPropagation(),i()}})}),(0,s.jsx)(k.Z,{property:t,triggerComponent:(0,s.jsx)(o.wpx,{"aria-label":"Delete property","data-testid":"delete-property-button",size:"small",className:"mr-[10px]",icon:(0,s.jsx)(f.q,{})})})]})};let z=(0,i.Cl)(),Z={items:[],total:0,page:1,size:25,pages:1},H=()=>(0,s.jsx)(o.gCW,{mt:6,p:10,spacing:4,borderRadius:"base",maxW:"70%","data-testid":"no-results-notice",alignSelf:"center",margin:"auto",children:(0,s.jsxs)(o.gCW,{children:[(0,s.jsx)(o.xvT,{fontSize:"md",fontWeight:"600",children:"No properties found."}),(0,s.jsxs)(x.ZP,{scopes:[m.Sh.PROPERTY_CREATE],children:[(0,s.jsx)(o.xvT,{fontSize:"sm",children:"Click “Add property” to add your first property to Fides."}),(0,s.jsx)(j,{buttonLabel:"Add property",buttonProps:{type:"primary"}})]})]})}),M=()=>{let{isLoading:e}=(0,h.x8)(),t=(0,x.Tg)([m.Sh.PROPERTY_UPDATE]),{PAGE_SIZES:n,pageSize:l,setPageSize:f,onPreviousPageClick:y,isPreviousPageDisabled:C,onNextPageClick:b,isNextPageDisabled:v,startRange:w,endRange:P,pageIndex:R,setTotalPages:T,resetPageIndexToDefault:k}=(0,a.oi)(),M=(0,d.useRouter)(),[V,_]=(0,p.useState)(),N=(0,p.useCallback)(e=>{k(),_(e)},[k,_]),{isFetching:S,isLoading:q,data:O}=(0,g.gz)({page:R,size:l,search:V}),{items:A,total:F,pages:I}=(0,p.useMemo)(()=>O||Z,[O]);(0,p.useEffect)(()=>{T(I)},[I,T]);let L=(0,p.useMemo)(()=>[z.accessor(e=>e.name,{id:"name",cell:e=>(0,s.jsx)(a.G3,{value:e.getValue()}),header:e=>(0,s.jsx)(a.Rr,{value:"Property",...e})}),z.accessor(e=>e.type,{id:"type",cell:e=>(0,s.jsx)(a.G3,{value:c().capitalize(e.getValue())}),header:e=>(0,s.jsx)(a.Rr,{value:"Type",...e})}),z.accessor(e=>e.experiences.map(e=>e.name),{id:"experiences",cell:e=>(0,s.jsx)(a.WP,{suffix:"experiences",value:e.getValue(),...e}),header:e=>(0,s.jsx)(a.Rr,{value:"Experience",...e}),meta:{showHeaderMenu:!0}}),z.display({id:"actions",header:"Actions",cell:e=>{let{row:t}=e;return(0,s.jsx)(E,{property:t.original})}})],[]),W=(0,r.b7)({getCoreRowModel:(0,i.sC)(),getGroupedRowModel:(0,i.qe)(),getExpandedRowModel:(0,i.rV)(),columns:L,manualPagination:!0,data:A,state:{expanded:!0},columnResizeMode:"onChange"});return q||e?(0,s.jsx)(a.I4,{rowHeight:36,numRows:15}):(0,s.jsx)("div",{children:(0,s.jsxs)(o.kCb,{flex:1,direction:"column",overflow:"auto",children:[(0,s.jsxs)(a.Q$,{children:[(0,s.jsx)(a.HO,{globalFilter:V,setGlobalFilter:N,placeholder:"Search property"}),(0,s.jsx)(o.Ugi,{alignItems:"center",spacing:4,children:(0,s.jsx)(x.ZP,{scopes:[m.Sh.PROPERTY_CREATE],children:(0,s.jsx)(j,{buttonLabel:"Add property"})})})]}),(0,s.jsx)(a.ZK,{tableInstance:W,onRowClick:e=>{t&&M.push({pathname:u.D3,query:{id:e.id}})},emptyTableNotice:(0,s.jsx)(H,{})}),(0,s.jsx)(a.s8,{totalRows:F||0,pageSizes:n,setPageSize:f,onPreviousPageClick:y,isPreviousPageDisabled:C||S,onNextPageClick:b,isNextPageDisabled:v||S,startRange:w,endRange:P})]})})}}}]);
|
|
1
|
+
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[79],{56358:function(e,t,n){n.d(t,{q:function(){return i}});var s=n(24246);let i=(0,n(96306).IUT)({displayName:"TrashCanOutlineIcon",viewBox:"0 0 11 12",path:(0,s.jsx)("path",{d:"M4.5166 1.60859L4.1084 2.21875H7.22363L6.81543 1.60859C6.7832 1.56133 6.72949 1.53125 6.67148 1.53125H4.6584C4.60039 1.53125 4.54668 1.55918 4.51445 1.60859H4.5166ZM7.6748 1.03711L8.46328 2.21875H8.75977H9.79102H9.96289C10.2486 2.21875 10.4785 2.44863 10.4785 2.73438C10.4785 3.02012 10.2486 3.25 9.96289 3.25H9.79102V9.78125C9.79102 10.7309 9.02188 11.5 8.07227 11.5H3.25977C2.31016 11.5 1.54102 10.7309 1.54102 9.78125V3.25H1.36914C1.0834 3.25 0.853516 3.02012 0.853516 2.73438C0.853516 2.44863 1.0834 2.21875 1.36914 2.21875H1.54102H2.57227H2.86875L3.65723 1.03496C3.88066 0.701953 4.25664 0.5 4.6584 0.5H6.67148C7.07324 0.5 7.44922 0.701953 7.67266 1.03496L7.6748 1.03711ZM2.57227 3.25V9.78125C2.57227 10.1615 2.87949 10.4688 3.25977 10.4688H8.07227C8.45254 10.4688 8.75977 10.1615 8.75977 9.78125V3.25H2.57227ZM4.29102 4.625V9.09375C4.29102 9.28281 4.13633 9.4375 3.94727 9.4375C3.7582 9.4375 3.60352 9.28281 3.60352 9.09375V4.625C3.60352 4.43594 3.7582 4.28125 3.94727 4.28125C4.13633 4.28125 4.29102 4.43594 4.29102 4.625ZM6.00977 4.625V9.09375C6.00977 9.28281 5.85508 9.4375 5.66602 9.4375C5.47695 9.4375 5.32227 9.28281 5.32227 9.09375V4.625C5.32227 4.43594 5.47695 4.28125 5.66602 4.28125C5.85508 4.28125 6.00977 4.43594 6.00977 4.625ZM7.72852 4.625V9.09375C7.72852 9.28281 7.57383 9.4375 7.38477 9.4375C7.1957 9.4375 7.04102 9.28281 7.04102 9.09375V4.625C7.04102 4.43594 7.1957 4.28125 7.38477 4.28125C7.57383 4.28125 7.72852 4.43594 7.72852 4.625Z",fill:"currentColor"})})},77213:function(e,t,n){n.d(t,{Z:function(){return u}});var s=n(24246),i=n(96306),r=n(88038),a=n.n(r),o=n(86677);n(27378);var l=n(25980),c=n(90867),d=n(77830),p=()=>{let e=(0,o.useRouter)();return(0,s.jsx)(i.xuv,{bg:"gray.50",border:"1px solid",borderColor:"blue.400",borderRadius:"md",justifyContent:"space-between",p:5,mb:5,mt:5,children:(0,s.jsxs)(i.xuv,{children:[(0,s.jsxs)(i.Kqy,{direction:{base:"column",sm:"row"},justifyContent:"space-between",children:[(0,s.jsx)(i.xvT,{fontWeight:"semibold",children:"Configure your storage and messaging provider"}),(0,s.jsx)(i.wpx,{onClick:()=>{e.push(d.fz)},children:"Configure"})]}),(0,s.jsxs)(i.xvT,{children:["Before Fides can process your privacy requests we need two simple steps to configure your storage and email client."," "]})]})})},u=e=>{let{children:t,title:n,padded:r=!0,mainProps:d}=e,u=(0,l.hz)(),x=(0,o.useRouter)(),h="/privacy-requests"===x.pathname||"/datastore-connection"===x.pathname,g=!(u.flags.privacyRequestsConfiguration&&h),{data:m}=(0,c.JE)(void 0,{skip:g}),{data:j}=(0,c.PW)(void 0,{skip:g}),f=u.flags.privacyRequestsConfiguration&&(!m||!j)&&h;return(0,s.jsxs)(i.kCb,{"data-testid":n,direction:"column",h:"100vh",children:[(0,s.jsxs)(a(),{children:[(0,s.jsxs)("title",{children:["Fides Admin UI - ",n]}),(0,s.jsx)("meta",{name:"description",content:"Privacy Engineering Platform"}),(0,s.jsx)("link",{rel:"icon",href:"/favicon.ico"})]}),(0,s.jsxs)(i.kCb,{as:"main",direction:"column",py:r?6:0,px:r?10:0,h:r?"calc(100% - 48px)":"full",flex:1,minWidth:0,overflow:"auto",...d,children:[f?(0,s.jsx)(p,{}):null,t]})]})}},58754:function(e,t,n){var s=n(24246),i=n(96306),r=n(70788);t.Z=e=>{let{heading:t,breadcrumbItems:n,isSticky:a=!0,children:o,rightContent:l,style:c,...d}=e;return(0,s.jsxs)("div",{...d,style:a?{position:"sticky",top:"-24px",paddingTop:"24px",paddingBottom:"24px",paddingLeft:"40px",marginLeft:"-40px",paddingRight:"40px",marginRight:"-40px",marginTop:"-24px",left:0,zIndex:20,backgroundColor:"white",...c}:{paddingBottom:"24px",...c},children:[(0,s.jsxs)(i.jqI,{justify:"space-between",children:["string"==typeof t?(0,s.jsx)(i.lQT,{className:n||o?"pb-4":void 0,level:1,"data-testid":"page-heading",children:t}):t,l&&(0,s.jsx)("div",{"data-testid":"page-header-right-content",children:l})]}),!!n&&(0,s.jsx)(r.m,{className:o?"pb-4":void 0,items:n,"data-testid":"page-breadcrumb"}),o]})}},19904:function(e,t,n){n.d(t,{Tg:function(){return a}});var s=n(24246),i=n(16134),r=n(31793);let a=e=>(0,i.C)(r.uu).filter(t=>e.includes(t)).length>0;t.ZP=e=>{let{scopes:t,children:n}=e;return a(t)?(0,s.jsx)(s.Fragment,{children:n}):null}},70788:function(e,t,n){n.d(t,{m:function(){return c}});var s=n(24246),i=n(96306),r=n(79894),a=n.n(r),o=n(27378);let{Text:l}=i.AntTypography,c=e=>{let{items:t,...n}=e,r=(0,o.useMemo)(()=>null==t?void 0:t.map((e,n)=>{let r=n===t.length-1,o={...e},c=o.onClick&&!o.href;return("string"==typeof o.title&&(o.title=(0,s.jsx)(l,{style:{color:"inherit",maxWidth:r?void 0:400},ellipsis:!r,id:r?"breadcrumb-current-page":void 0,children:o.title})),c)?o.title=(0,s.jsx)(i.wpx,{type:"text",size:"small",icon:o.icon,onClick:o.onClick,className:"ant-breadcrumb-link -mt-px px-1 text-inherit",children:o.title}):(o.icon&&(o.title=(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("span",{className:"anticon align-text-bottom",children:o.icon}),o.title]})),o.href&&o.title&&(o.title=(0,s.jsx)(a(),{href:o.href,className:"ant-breadcrumb-link",children:o.title}),delete o.href)),o}),[t]);return(0,s.jsx)(i.zrq,{items:r,...n})}},3642:function(e,t,n){var s=n(24246),i=n(96306),r=n(86677),a=n.n(r),o=n(27378),l=n(812),c=n(58452),d=n(77830),p=n(19904),u=n(46628),x=n(98795),h=n(21910);t.Z=e=>{let{property:t,triggerComponent:n}=e,r=(0,i.pmc)(),g=(0,i.qY0)(),[m]=(0,x.YW)(),j=t.experiences.length>0,f=async()=>{g.onClose();let e=await m(t.id);if((0,l.D4)(e)){r((0,u.Vo)((0,l.e$)(e.error)));return}a().push("".concat(d.ru)),r((0,u.t5)("Property ".concat(t.name," deleted successfully")))};return(0,s.jsxs)(p.ZP,{scopes:[h.Sh.PROPERTY_DELETE],children:[(0,s.jsx)(i.esZ,{title:j?"All of the experiences on this property must be unlinked before the property can be deleted.":void 0,placement:"right",children:(0,s.jsx)("span",{children:o.cloneElement(n,{onClick:e=>{e.stopPropagation(),j||g.onOpen()},disabled:j})})}),(0,s.jsx)(c.Z,{isOpen:g.isOpen,onClose:g.onClose,onConfirm:f,title:"Delete ".concat(t.name),message:(0,s.jsxs)(i.xvT,{color:"gray.500",children:["You are about to delete property ",t.name,". This action is not reversible and will result in ",t.name," no longer being available for your data governance. Are you sure you want to proceed?"]}),continueButtonText:"Ok",isCentered:!0,icon:(0,s.jsx)(i.aNP,{})})]})}},25783:function(e,t,n){n.d(t,{V:function(){return M}});var s=n(24246),i=n(92222),r=n(59003),a=n(47935),o=n(96306),l=n(98784),c=n.n(l),d=n(86677),p=n(27378),u=n(77830),x=n(19904),h=n(32885),g=n(98795),m=n(21910),j=e=>{let{buttonLabel:t,buttonProps:n}=e,i=(0,d.useRouter)();return(0,s.jsx)(o.wpx,{onClick:()=>i.push(u.B9),"data-testid":"add-property-button",...n,children:t})},f=n(56358),y=n(88340),C=n(25980),b=n(14048);let v="{privacy-center-hostname-and-path}",w="{property-unique-id}",P='<script src="https://'.concat(v,"/fides.js?property_id=").concat(w,'"></script>'),R="<script>Fides.gtm()</script>";var T=e=>{let{property:t}=e,n=(0,o.qY0)(),i=(0,p.useRef)(null),{fidesCloud:r}=(0,C.hz)(),{data:a,isSuccess:l}=(0,h.Vh)(void 0,{skip:!r}),c=(0,p.useMemo)(()=>{let e=P.replace(w,t.id.toString());return r&&l&&(null==a?void 0:a.privacy_center_url)&&e.replace(v,a.privacy_center_url),e},[null==a?void 0:a.privacy_center_url,r,l,t]);return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(o.wpx,{"aria-label":"Install property",size:"small",className:"mr-[10px]",icon:(0,s.jsx)(b.A5,{}),onClick:e=>{e.stopPropagation(),n.onOpen()}}),(0,s.jsxs)(o.u_l,{isOpen:n.isOpen,onClose:n.onClose,isCentered:!0,size:"xl",initialFocusRef:i,children:[(0,s.jsx)(o.ZAr,{}),(0,s.jsxs)(o.hzk,{"data-testid":"copy-js-tag-modal",children:[(0,s.jsx)(o.xBx,{tabIndex:-1,ref:i,pb:0,children:"Install Fides Consent Manager"}),(0,s.jsx)(o.fef,{pt:3,pb:6,fontSize:"14px",fontWeight:500,children:(0,s.jsxs)(o.Kqy,{spacing:3,children:[(0,s.jsxs)(o.xvT,{children:["Copy the code below and paste it onto every page of the"," ",t.name," property."]}),(0,s.jsxs)(o.xvT,{children:["1. Paste this code as high in the ",(0,s.jsx)("b",{children:"<head>"})," of the page as possible:"]}),(0,s.jsxs)(o.EKh,{display:"flex",justifyContent:"space-between",alignItems:"top",p:0,children:[(0,s.jsx)(o.xvT,{p:4,children:c}),(0,s.jsx)(y.Z,{copyText:c})]}),(0,s.jsx)(o.xvT,{children:"2. Optionally, you can enable Google Tag Manager for managing tags on your website by including the script tag below along with the Fides.js tag. Place it below the Fides.js script tag."}),(0,s.jsxs)(o.EKh,{display:"flex",justifyContent:"space-between",alignItems:"center",p:0,children:[(0,s.jsx)(o.xvT,{p:4,children:R}),(0,s.jsx)(y.Z,{copyText:R})]}),(0,s.jsxs)(o.xvT,{children:["For more information about adding a JavaScript tag to your website, please visit"," ",(0,s.jsx)(o.rUS,{color:"complimentary.500",href:"https://docs.ethyca.com/tutorials/consent-management-configuration/install-fides#install-fidesjs-script-on-your-website",isExternal:!0,children:"docs.ethyca.com"})]})]})})]})]})]})},k=n(3642),E=e=>{let{property:t}=e,n=(0,d.useRouter)(),i=()=>{n.push("".concat(u.ru,"/").concat(t.id))};return(0,s.jsxs)(o.xuv,{py:2,children:[(0,s.jsx)(T,{property:t}),(0,s.jsx)(x.ZP,{scopes:[m.Sh.PROPERTY_UPDATE],children:(0,s.jsx)(o.wpx,{"aria-label":"Edit property","data-testid":"edit-property-button",size:"small",className:"mr-[10px]",icon:(0,s.jsx)(o.dY8,{}),onClick:e=>{e.stopPropagation(),i()}})}),(0,s.jsx)(k.Z,{property:t,triggerComponent:(0,s.jsx)(o.wpx,{"aria-label":"Delete property","data-testid":"delete-property-button",size:"small",className:"mr-[10px]",icon:(0,s.jsx)(f.q,{})})})]})};let z=(0,i.Cl)(),Z={items:[],total:0,page:1,size:25,pages:1},H=()=>(0,s.jsx)(o.gCW,{mt:6,p:10,spacing:4,borderRadius:"base",maxW:"70%","data-testid":"no-results-notice",alignSelf:"center",margin:"auto",children:(0,s.jsxs)(o.gCW,{children:[(0,s.jsx)(o.xvT,{fontSize:"md",fontWeight:"600",children:"No properties found."}),(0,s.jsxs)(x.ZP,{scopes:[m.Sh.PROPERTY_CREATE],children:[(0,s.jsx)(o.xvT,{fontSize:"sm",children:"Click “Add property” to add your first property to Fides."}),(0,s.jsx)(j,{buttonLabel:"Add property",buttonProps:{type:"primary"}})]})]})}),M=()=>{let{isLoading:e}=(0,h.x8)(),t=(0,x.Tg)([m.Sh.PROPERTY_UPDATE]),{PAGE_SIZES:n,pageSize:l,setPageSize:f,onPreviousPageClick:y,isPreviousPageDisabled:C,onNextPageClick:b,isNextPageDisabled:v,startRange:w,endRange:P,pageIndex:R,setTotalPages:T,resetPageIndexToDefault:k}=(0,a.oi)(),M=(0,d.useRouter)(),[V,_]=(0,p.useState)(),N=(0,p.useCallback)(e=>{k(),_(e)},[k,_]),{isFetching:S,isLoading:q,data:O}=(0,g.gz)({page:R,size:l,search:V}),{items:A,total:F,pages:I}=(0,p.useMemo)(()=>O||Z,[O]);(0,p.useEffect)(()=>{T(I)},[I,T]);let L=(0,p.useMemo)(()=>[z.accessor(e=>e.name,{id:"name",cell:e=>(0,s.jsx)(a.G3,{value:e.getValue()}),header:e=>(0,s.jsx)(a.Rr,{value:"Property",...e})}),z.accessor(e=>e.type,{id:"type",cell:e=>(0,s.jsx)(a.G3,{value:c().capitalize(e.getValue())}),header:e=>(0,s.jsx)(a.Rr,{value:"Type",...e})}),z.accessor(e=>e.experiences.map(e=>e.name),{id:"experiences",cell:e=>(0,s.jsx)(a.WP,{suffix:"experiences",value:e.getValue(),...e}),header:e=>(0,s.jsx)(a.Rr,{value:"Experience",...e}),meta:{showHeaderMenu:!0}}),z.display({id:"actions",header:"Actions",cell:e=>{let{row:t}=e;return(0,s.jsx)(E,{property:t.original})}})],[]),W=(0,r.b7)({getCoreRowModel:(0,i.sC)(),getGroupedRowModel:(0,i.qe)(),getExpandedRowModel:(0,i.rV)(),columns:L,manualPagination:!0,data:A,state:{expanded:!0},columnResizeMode:"onChange"});return q||e?(0,s.jsx)(a.I4,{rowHeight:36,numRows:15}):(0,s.jsx)("div",{children:(0,s.jsxs)(o.kCb,{flex:1,direction:"column",overflow:"auto",children:[(0,s.jsxs)(a.Q$,{children:[(0,s.jsx)(a.HO,{globalFilter:V,setGlobalFilter:N,placeholder:"Search property"}),(0,s.jsx)(o.Ugi,{alignItems:"center",spacing:4,children:(0,s.jsx)(x.ZP,{scopes:[m.Sh.PROPERTY_CREATE],children:(0,s.jsx)(j,{buttonLabel:"Add property"})})})]}),(0,s.jsx)(a.ZK,{tableInstance:W,onRowClick:e=>{t&&M.push({pathname:u.D3,query:{id:e.id}})},emptyTableNotice:(0,s.jsx)(H,{})}),(0,s.jsx)(a.s8,{totalRows:F||0,pageSizes:n,setPageSize:f,onPreviousPageClick:y,isPreviousPageDisabled:C||S,onNextPageClick:b,isNextPageDisabled:v||S,startRange:w,endRange:P})]})})}}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8002],{74833:function(t,e,n){var i=n(56127),r=/^\s+/;t.exports=function(t){return t?t.slice(0,i(t)+1).replace(r,""):t}},56127:function(t){var e=/\s/;t.exports=function(t){for(var n=t.length;n--&&e.test(t.charAt(n)););return n}},66726:function(t,e,n){var i=n(11611),r=n(82846),s=n(91936),l=Math.max,o=Math.min;t.exports=function(t,e,n){var c,u,a,d,f,v,x=0,h=!1,I=!1,E=!0;if("function"!=typeof t)throw TypeError("Expected a function");function j(e){var n=c,i=u;return c=u=void 0,x=e,d=t.apply(i,n)}function L(t){var n=t-v,i=t-x;return void 0===v||n>=e||n<0||I&&i>=a}function _(){var t,n,i,s=r();if(L(s))return A(s);f=setTimeout(_,(t=s-v,n=s-x,i=e-t,I?o(i,a-n):i))}function A(t){return(f=void 0,E&&c)?j(t):(c=u=void 0,d)}function C(){var t,n=r(),i=L(n);if(c=arguments,u=this,v=n,i){if(void 0===f)return x=t=v,f=setTimeout(_,e),h?j(t):d;if(I)return clearTimeout(f),f=setTimeout(_,e),j(v)}return void 0===f&&(f=setTimeout(_,e)),d}return e=s(e)||0,i(n)&&(h=!!n.leading,a=(I="maxWait"in n)?l(s(n.maxWait)||0,e):a,E="trailing"in n?!!n.trailing:E),C.cancel=function(){void 0!==f&&clearTimeout(f),x=0,c=v=u=f=void 0},C.flush=function(){return void 0===f?d:A(r())},C}},82846:function(t,e,n){var i=n(77400);t.exports=function(){return i.Date.now()}},91936:function(t,e,n){var i=n(74833),r=n(11611),s=n(55193),l=0/0,o=/^[-+]0x[0-9a-f]+$/i,c=/^0b[01]+$/i,u=/^0o[0-7]+$/i,a=parseInt;t.exports=function(t){if("number"==typeof t)return t;if(s(t))return l;if(r(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=r(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=i(t);var n=c.test(t);return n||u.test(t)?a(t.slice(2),n?2:8):o.test(t)?l:+t}},30952:function(t,e,n){"use strict";n.d(e,{f:function(){return c}});var i=n(24246),r=n(66726),s=n.n(r),l=n(27378),o=n(26917);let c=t=>{let{value:e,onChange:n,placeholder:r,...c}=t,[u,a]=(0,l.useState)(e);(0,l.useEffect)(()=>{a(e||"")},[e]);let d=s()(n,500),f=(0,l.useCallback)(t=>{a(t),d(t)},[]);return(0,i.jsx)(o.Z,{value:u,onChange:f,onClear:()=>{a(""),n("")},placeholder:r,...c})}},35287:function(t,e,n){"use strict";var i=n(24246),r=n(96306),s=n(88038),l=n.n(s);n(27378),e.Z=t=>{let{children:e,title:n,mainProps:s}=t;return(0,i.jsxs)(r.kCb,{"data-testid":n,direction:"column",height:"calc(100vh - 48px)",width:"calc(100vw - 240px)",children:[(0,i.jsxs)(l(),{children:[(0,i.jsxs)("title",{children:["Fides Admin UI - ",n]}),(0,i.jsx)("meta",{name:"description",content:"Privacy Engineering Platform"}),(0,i.jsx)("link",{rel:"icon",href:"/favicon.ico"})]}),(0,i.jsx)(r.kCb,{px:10,py:6,as:"main",overflow:"auto",direction:"column",flex:1,minWidth:0,...s,children:e})]})}},79494:function(t,e,n){"use strict";var i=n(24246),r=n(96306);e.Z=t=>{let{title:e,icon:n,type:s,...l}=t;return(0,i.jsx)(r.wpx,{size:"small",type:s,"data-testid":"action-".concat(e),icon:n,iconPosition:"start",...l,children:e})}},38347:function(t,e,n){"use strict";n.d(e,{a:function(){return l}});var i=n(24246),r=n(96306),s=n(76904);let l=()=>{let t=(0,i.jsx)("div",{style:{maxWidth:300},children:(0,i.jsxs)(r.bue,{gutter:[16,8],children:[(0,i.jsx)(r.JGx,{span:12,children:(0,i.jsxs)(r.vyj,{children:[(0,i.jsx)(s.Rv,{}),(0,i.jsx)("div",{children:"Change detected"})]})}),(0,i.jsx)(r.JGx,{span:12,children:(0,i.jsxs)(r.vyj,{children:[(0,i.jsx)(s.$P,{}),(0,i.jsx)("div",{children:"Data labeled"})]})}),(0,i.jsx)(r.JGx,{span:12,children:(0,i.jsxs)(r.vyj,{children:[(0,i.jsx)(s.zj,{}),(0,i.jsx)("div",{children:"Monitoring"})]})}),(0,i.jsx)(r.JGx,{span:12,children:(0,i.jsxs)(r.vyj,{children:[(0,i.jsx)(s.dK,{}),(0,i.jsx)("div",{children:"Addition detected"})]})}),(0,i.jsx)(r.JGx,{span:12,children:(0,i.jsxs)(r.vyj,{children:[(0,i.jsx)(s.Kr,{}),(0,i.jsx)("div",{children:"Unmonitored"})]})}),(0,i.jsx)(r.JGx,{span:12,children:(0,i.jsxs)(r.vyj,{children:[(0,i.jsx)(s.q1,{}),(0,i.jsx)("div",{children:"Removal detected"})]})})]})});return(0,i.jsx)(r.bPF,{content:t,title:"Activity legend:",trigger:["hover","focus"],children:(0,i.jsx)(r.PJP.QKH,{style:{color:"var(--fidesui-neutral-400)",cursor:"pointer"},tabIndex:0})})}},47182:function(t,e,n){"use strict";var i=n(86677),r=n(77830);e.Z=()=>{let t=(0,i.useRouter)();return{monitorId:t.query.monitorId,resourceUrn:t.query.resourceUrn,navigateToDetectionResults:e=>{let{resourceUrn:n,filterTab:i}=e;t.push({pathname:r.dS,query:{resourceUrn:n},hash:i})},navigateToDiscoveryResults:e=>{let{resourceUrn:n,filterTab:i}=e;t.push({pathname:r.Sj,query:{resourceUrn:n},hash:i})}}}},76904:function(t,e,n){"use strict";n.d(e,{dK:function(){return d},Rv:function(){return h},$P:function(){return v},zj:function(){return I},Kr:function(){return E},q1:function(){return f},QL:function(){return j}});var i=n(24246),r=n(96306),s=n(3124),l=n.n(s);let o=t=>{let{...e}=t;return(0,i.jsx)("svg",{viewBox:"0 0 8 8",focusable:"false",...e,children:(0,i.jsx)("path",{fill:"currentColor",d:"M7.23192 8H8V7.23192V1.85539V1.08731H6.46385V1.85539V5.37654L1.62976 0.544855L1.08731 0L0 1.08731L0.542454 1.62976L5.37654 6.46385H1.85539H1.08731V8H1.85539H7.23192Z"})})},c=t=>{let{...e}=t;return(0,i.jsx)("svg",{viewBox:"0 0 8 8",focusable:"false",...e,children:(0,i.jsx)("path",{fill:"currentColor",d:"M7.23192 0H8V0.768077V6.14461V6.91269H6.46385V6.14461V2.62346L1.62976 7.45515L1.08731 8L0 6.91269L0.542454 6.37024L5.37654 1.53615H1.85539H1.08731V0H1.85539H7.23192Z"})})},u=t=>{let{...e}=t;return(0,i.jsx)("svg",{viewBox:"0 0 9 10",focusable:"false",...e,children:(0,i.jsx)("path",{fill:"currentColor",d:"M0 0.5V5L4.5 9.5L9 5L4.5 0.5H0ZM2.25 2.10714C2.4205 2.10714 2.58401 2.17487 2.70457 2.29543C2.82513 2.41599 2.89286 2.5795 2.89286 2.75C2.89286 2.9205 2.82513 3.08401 2.70457 3.20457C2.58401 3.32513 2.4205 3.39286 2.25 3.39286C2.0795 3.39286 1.91599 3.32513 1.79543 3.20457C1.67487 3.08401 1.60714 2.9205 1.60714 2.75C1.60714 2.5795 1.67487 2.41599 1.79543 2.29543C1.91599 2.17487 2.0795 2.10714 2.25 2.10714Z"})})};var a=n(28278);let d=()=>(0,i.jsx)(c,{style:{color:l().FIDESUI_SUCCESS},className:"size-2","data-testid":"add-icon"}),f=()=>(0,i.jsx)(o,{style:{color:l().FIDESUI_ERROR},className:"size-2","data-testid":"remove-icon"}),v=()=>(0,i.jsx)(u,{style:{color:l().FIDESUI_WARNING},className:"size-3","data-testid":"classify-icon"}),x=t=>{let{color:e,...n}=t;return(0,i.jsx)(r.PJP.fRw,{style:{color:e},className:"size-2",...n})},h=()=>(0,i.jsx)(x,{color:l().FIDESUI_INFO,"data-testid":"change-icon"}),I=()=>(0,i.jsx)(x,{color:l().FIDESUI_SUCCESS,"data-testid":"monitored-icon"}),E=()=>(0,i.jsx)(x,{color:l().FIDESUI_ERROR,"data-testid":"muted-icon"}),j={[a.E.ADDITION]:(0,i.jsx)(d,{}),[a.E.REMOVAL]:(0,i.jsx)(f,{}),[a.E.CLASSIFICATION]:(0,i.jsx)(v,{}),[a.E.CHANGE]:(0,i.jsx)(h,{}),[a.E.MONITORED]:(0,i.jsx)(I,{}),[a.E.MUTED]:(0,i.jsx)(E,{}),[a.E.IN_PROGRESS]:(0,i.jsx)(()=>(0,i.jsx)(x,{color:l().FIDESUI_WARNING,"data-testid":"in-progress-icon"}),{}),[a.E.NONE]:null}},87667:function(t,e,n){"use strict";var i=n(24246),r=n(96306),s=n(76904),l=n(20449),o=n(98559),c=n(80356);e.Z=t=>{let{result:e,changeTypeOverride:n}=t,u=null!=n?n:(0,l.Z)(e);return(0,i.jsxs)(r.vyj,{className:"h-full",children:[(0,i.jsx)(r.esZ,{title:u,children:(0,i.jsx)("span",{children:s.QL[u]})}),(0,i.jsx)(r.xvT,{fontSize:"xs",lineHeight:4,fontWeight:(0,c.Z)(e)?"semibold":"normal",overflow:"hidden",textOverflow:"ellipsis",children:(0,o.Z)(e)})]})}},50169:function(t,e,n){"use strict";var i=n(24246),r=n(47935),s=n(28278),l=n(20449);let o={[s.E.MUTED]:{color:"marble",label:"Unmonitored"},[s.E.MONITORED]:{color:"success",label:"Monitoring"},[s.E.IN_PROGRESS]:{color:"info",label:"Classifying"}};e.Z=t=>{var e,n,s,c,u;let{result:a,changeTypeOverride:d}=t;if(null===(e=a.user_assigned_data_categories)||void 0===e?void 0:e.length)return(0,i.jsx)(r.A4,{color:"success",value:"Reviewed"});let f=null!=d?d:(0,l.Z)(a);return(0,i.jsx)(r.A4,{color:null!==(c=null===(n=o[f])||void 0===n?void 0:n.color)&&void 0!==c?c:"warning",value:null!==(u=null===(s=o[f])||void 0===s?void 0:s.label)&&void 0!==u?u:"Pending review"})}},28278:function(t,e,n){"use strict";var i,r;n.d(e,{E:function(){return i}}),(r=i||(i={})).ADDITION="Addition",r.CHANGE="Change",r.REMOVAL="Removal",r.CLASSIFICATION="Classification",r.IN_PROGRESS="Classifying",r.MONITORED="Monitoring",r.MUTED="Unmonitored",r.NONE="--"},74241:function(t,e){"use strict";e.Z=t=>{let e=t.split(".");return e.length>1?e[1]:""}},20449:function(t,e,n){"use strict";var i=n(28278),r=n(54682);e.Z=t=>t.diff_status===r.LL.ADDITION?i.E.ADDITION:t.diff_status===r.LL.REMOVAL?i.E.REMOVAL:t.diff_status===r.LL.CLASSIFYING||t.diff_status===r.LL.CLASSIFICATION_QUEUED?i.E.IN_PROGRESS:t.diff_status===r.LL.CLASSIFICATION_ADDITION||t.diff_status===r.LL.CLASSIFICATION_UPDATE?i.E.CLASSIFICATION:t.child_diff_statuses?t.child_diff_statuses[r.LL.CLASSIFYING]||t.child_diff_statuses[r.LL.CLASSIFICATION_QUEUED]?i.E.IN_PROGRESS:t.child_diff_statuses[r.LL.CLASSIFICATION_ADDITION]||t.child_diff_statuses[r.LL.CLASSIFICATION_UPDATE]?i.E.CLASSIFICATION:t.child_diff_statuses[r.LL.ADDITION]||t.child_diff_statuses[r.LL.REMOVAL]?i.E.CHANGE:t.diff_status===r.LL.MONITORED?i.E.MONITORED:t.diff_status===r.LL.MUTED?i.E.MUTED:i.E.NONE:i.E.NONE},7940:function(t,e,n){"use strict";n.d(e,{G:function(){return r}});var i=n(54682);let r=t=>{var e,n,r;return t?t.resource_type?t.resource_type:(null===(e=t.schemas)||void 0===e?void 0:e.length)?i.D$.DATABASE:(null===(n=t.tables)||void 0===n?void 0:n.length)?i.D$.SCHEMA:(null===(r=t.fields)||void 0===r?void 0:r.length)?i.D$.TABLE:i.D$.FIELD:void 0}},98559:function(t,e){"use strict";e.Z=t=>{let{name:e,urn:n,monitor_config_id:i,database_name:r,schema_name:s,table_name:l,top_level_field_name:o,top_level_field_urn:c}=t;if(!o)return e;let u=n.split(".");return c?n.replace("".concat(c).concat("."),""):([i,r,s,l,o].forEach(t=>{if(t){let e=u.indexOf(t);e>-1&&u.splice(e,1)}}),u.join("."))}},80285:function(t,e){"use strict";e.Z=t=>t.urn},36168:function(t,e){"use strict";e.Z=t=>{var e;return!!t.parent_table_urn&&null!==(e=t.sub_field_urns)&&void 0!==e&&!!e.length&&!t.top_level_field_name}},80356:function(t,e,n){"use strict";var i=n(7940),r=n(36168),s=n(54682);e.Z=t=>(0,i.G)(t)!==s.D$.FIELD||(0,r.Z)(t)}}]);
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8002],{74833:function(t,e,n){var i=n(56127),r=/^\s+/;t.exports=function(t){return t?t.slice(0,i(t)+1).replace(r,""):t}},56127:function(t){var e=/\s/;t.exports=function(t){for(var n=t.length;n--&&e.test(t.charAt(n)););return n}},66726:function(t,e,n){var i=n(11611),r=n(82846),s=n(91936),l=Math.max,o=Math.min;t.exports=function(t,e,n){var c,u,a,d,f,v,x=0,h=!1,I=!1,E=!0;if("function"!=typeof t)throw TypeError("Expected a function");function j(e){var n=c,i=u;return c=u=void 0,x=e,d=t.apply(i,n)}function L(t){var n=t-v,i=t-x;return void 0===v||n>=e||n<0||I&&i>=a}function _(){var t,n,i,s=r();if(L(s))return A(s);f=setTimeout(_,(t=s-v,n=s-x,i=e-t,I?o(i,a-n):i))}function A(t){return(f=void 0,E&&c)?j(t):(c=u=void 0,d)}function C(){var t,n=r(),i=L(n);if(c=arguments,u=this,v=n,i){if(void 0===f)return x=t=v,f=setTimeout(_,e),h?j(t):d;if(I)return clearTimeout(f),f=setTimeout(_,e),j(v)}return void 0===f&&(f=setTimeout(_,e)),d}return e=s(e)||0,i(n)&&(h=!!n.leading,a=(I="maxWait"in n)?l(s(n.maxWait)||0,e):a,E="trailing"in n?!!n.trailing:E),C.cancel=function(){void 0!==f&&clearTimeout(f),x=0,c=v=u=f=void 0},C.flush=function(){return void 0===f?d:A(r())},C}},82846:function(t,e,n){var i=n(77400);t.exports=function(){return i.Date.now()}},91936:function(t,e,n){var i=n(74833),r=n(11611),s=n(55193),l=0/0,o=/^[-+]0x[0-9a-f]+$/i,c=/^0b[01]+$/i,u=/^0o[0-7]+$/i,a=parseInt;t.exports=function(t){if("number"==typeof t)return t;if(s(t))return l;if(r(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=r(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=i(t);var n=c.test(t);return n||u.test(t)?a(t.slice(2),n?2:8):o.test(t)?l:+t}},30952:function(t,e,n){"use strict";n.d(e,{f:function(){return c}});var i=n(24246),r=n(66726),s=n.n(r),l=n(27378),o=n(26917);let c=t=>{let{value:e,onChange:n,placeholder:r,...c}=t,[u,a]=(0,l.useState)(e);(0,l.useEffect)(()=>{a(e||"")},[e]);let d=s()(n,500),f=(0,l.useCallback)(t=>{a(t),d(t)},[]);return(0,i.jsx)(o.Z,{value:u,onChange:f,onClear:()=>{a(""),n("")},placeholder:r,...c})}},35287:function(t,e,n){"use strict";var i=n(24246),r=n(96306),s=n(88038),l=n.n(s);n(27378),e.Z=t=>{let{children:e,title:n,mainProps:s}=t;return(0,i.jsxs)(r.kCb,{"data-testid":n,direction:"column",height:"calc(100vh - 48px)",width:"calc(100vw - 240px)",children:[(0,i.jsxs)(l(),{children:[(0,i.jsxs)("title",{children:["Fides Admin UI - ",n]}),(0,i.jsx)("meta",{name:"description",content:"Privacy Engineering Platform"}),(0,i.jsx)("link",{rel:"icon",href:"/favicon.ico"})]}),(0,i.jsx)(r.kCb,{px:10,py:6,as:"main",overflow:"auto",direction:"column",flex:1,minWidth:0,...s,children:e})]})}},79494:function(t,e,n){"use strict";var i=n(24246),r=n(96306);e.Z=t=>{let{title:e,icon:n,type:s,...l}=t;return(0,i.jsx)(r.wpx,{size:"small",type:s,"data-testid":"action-".concat(e),icon:n,iconPosition:"start",...l,children:e})}},38347:function(t,e,n){"use strict";n.d(e,{a:function(){return l}});var i=n(24246),r=n(96306),s=n(76904);let l=()=>{let t=(0,i.jsx)("div",{style:{maxWidth:300},children:(0,i.jsxs)(r.bue,{gutter:[16,8],children:[(0,i.jsx)(r.JGx,{span:12,children:(0,i.jsxs)(r.vyj,{children:[(0,i.jsx)(s.Rv,{}),(0,i.jsx)("div",{children:"Change detected"})]})}),(0,i.jsx)(r.JGx,{span:12,children:(0,i.jsxs)(r.vyj,{children:[(0,i.jsx)(s.$P,{}),(0,i.jsx)("div",{children:"Data labeled"})]})}),(0,i.jsx)(r.JGx,{span:12,children:(0,i.jsxs)(r.vyj,{children:[(0,i.jsx)(s.zj,{}),(0,i.jsx)("div",{children:"Monitoring"})]})}),(0,i.jsx)(r.JGx,{span:12,children:(0,i.jsxs)(r.vyj,{children:[(0,i.jsx)(s.dK,{}),(0,i.jsx)("div",{children:"Addition detected"})]})}),(0,i.jsx)(r.JGx,{span:12,children:(0,i.jsxs)(r.vyj,{children:[(0,i.jsx)(s.Kr,{}),(0,i.jsx)("div",{children:"Unmonitored"})]})}),(0,i.jsx)(r.JGx,{span:12,children:(0,i.jsxs)(r.vyj,{children:[(0,i.jsx)(s.q1,{}),(0,i.jsx)("div",{children:"Removal detected"})]})})]})});return(0,i.jsx)(r.bPF,{content:t,title:"Activity legend:",trigger:["hover","focus"],children:(0,i.jsx)(r.PJP.QKH,{style:{color:"var(--fidesui-neutral-400)",cursor:"pointer"},tabIndex:0})})}},47182:function(t,e,n){"use strict";var i=n(86677),r=n(77830);e.Z=()=>{let t=(0,i.useRouter)();return{monitorId:t.query.monitorId,resourceUrn:t.query.resourceUrn,navigateToDetectionResults:e=>{let{resourceUrn:n,filterTab:i}=e;t.push({pathname:r.dS,query:{resourceUrn:n},hash:i})},navigateToDiscoveryResults:e=>{let{resourceUrn:n,filterTab:i}=e;t.push({pathname:r.Sj,query:{resourceUrn:n},hash:i})}}}},76904:function(t,e,n){"use strict";n.d(e,{dK:function(){return d},Rv:function(){return h},$P:function(){return v},zj:function(){return I},Kr:function(){return E},q1:function(){return f},QL:function(){return j}});var i=n(24246),r=n(96306),s=n(3124),l=n.n(s);let o=t=>{let{...e}=t;return(0,i.jsx)("svg",{viewBox:"0 0 8 8",focusable:"false",...e,children:(0,i.jsx)("path",{fill:"currentColor",d:"M7.23192 8H8V7.23192V1.85539V1.08731H6.46385V1.85539V5.37654L1.62976 0.544855L1.08731 0L0 1.08731L0.542454 1.62976L5.37654 6.46385H1.85539H1.08731V8H1.85539H7.23192Z"})})},c=t=>{let{...e}=t;return(0,i.jsx)("svg",{viewBox:"0 0 8 8",focusable:"false",...e,children:(0,i.jsx)("path",{fill:"currentColor",d:"M7.23192 0H8V0.768077V6.14461V6.91269H6.46385V6.14461V2.62346L1.62976 7.45515L1.08731 8L0 6.91269L0.542454 6.37024L5.37654 1.53615H1.85539H1.08731V0H1.85539H7.23192Z"})})},u=t=>{let{...e}=t;return(0,i.jsx)("svg",{viewBox:"0 0 9 10",focusable:"false",...e,children:(0,i.jsx)("path",{fill:"currentColor",d:"M0 0.5V5L4.5 9.5L9 5L4.5 0.5H0ZM2.25 2.10714C2.4205 2.10714 2.58401 2.17487 2.70457 2.29543C2.82513 2.41599 2.89286 2.5795 2.89286 2.75C2.89286 2.9205 2.82513 3.08401 2.70457 3.20457C2.58401 3.32513 2.4205 3.39286 2.25 3.39286C2.0795 3.39286 1.91599 3.32513 1.79543 3.20457C1.67487 3.08401 1.60714 2.9205 1.60714 2.75C1.60714 2.5795 1.67487 2.41599 1.79543 2.29543C1.91599 2.17487 2.0795 2.10714 2.25 2.10714Z"})})};var a=n(28278);let d=()=>(0,i.jsx)(c,{style:{color:l().FIDESUI_SUCCESS},className:"size-2","data-testid":"add-icon"}),f=()=>(0,i.jsx)(o,{style:{color:l().FIDESUI_ERROR},className:"size-2","data-testid":"remove-icon"}),v=()=>(0,i.jsx)(u,{style:{color:l().FIDESUI_WARNING},className:"size-3","data-testid":"classify-icon"}),x=t=>{let{color:e,...n}=t;return(0,i.jsx)(r.PJP.fRw,{style:{color:e},className:"size-2",...n})},h=()=>(0,i.jsx)(x,{color:l().FIDESUI_INFO,"data-testid":"change-icon"}),I=()=>(0,i.jsx)(x,{color:l().FIDESUI_SUCCESS,"data-testid":"monitored-icon"}),E=()=>(0,i.jsx)(x,{color:l().FIDESUI_ERROR,"data-testid":"muted-icon"}),j={[a.E.ADDITION]:(0,i.jsx)(d,{}),[a.E.REMOVAL]:(0,i.jsx)(f,{}),[a.E.CLASSIFICATION]:(0,i.jsx)(v,{}),[a.E.CHANGE]:(0,i.jsx)(h,{}),[a.E.MONITORED]:(0,i.jsx)(I,{}),[a.E.MUTED]:(0,i.jsx)(E,{}),[a.E.IN_PROGRESS]:(0,i.jsx)(()=>(0,i.jsx)(x,{color:l().FIDESUI_WARNING,"data-testid":"in-progress-icon"}),{}),[a.E.NONE]:null}},87667:function(t,e,n){"use strict";var i=n(24246),r=n(96306),s=n(76904),l=n(20449),o=n(98559),c=n(80356);e.Z=t=>{let{result:e,changeTypeOverride:n}=t,u=null!=n?n:(0,l.Z)(e);return(0,i.jsxs)(r.vyj,{className:"h-full",children:[(0,i.jsx)(r.esZ,{title:u,children:(0,i.jsx)("span",{children:s.QL[u]})}),(0,i.jsx)(r.xvT,{fontSize:"xs",lineHeight:4,fontWeight:(0,c.Z)(e)?"semibold":"normal",overflow:"hidden",textOverflow:"ellipsis",children:(0,o.Z)(e)})]})}},50169:function(t,e,n){"use strict";var i=n(24246),r=n(47935),s=n(28278),l=n(20449);let o={[s.E.MUTED]:{color:"marble",label:"Unmonitored"},[s.E.MONITORED]:{color:"success",label:"Monitoring"},[s.E.IN_PROGRESS]:{color:"info",label:"Classifying"}};e.Z=t=>{var e,n,s,c,u;let{result:a,changeTypeOverride:d}=t;if(null===(e=a.user_assigned_data_categories)||void 0===e?void 0:e.length)return(0,i.jsx)(r.A4,{color:"success",value:"Reviewed"});let f=null!=d?d:(0,l.Z)(a);return(0,i.jsx)(r.A4,{color:null!==(c=null===(n=o[f])||void 0===n?void 0:n.color)&&void 0!==c?c:"warning",value:null!==(u=null===(s=o[f])||void 0===s?void 0:s.label)&&void 0!==u?u:"Pending review"})}},28278:function(t,e,n){"use strict";var i,r;n.d(e,{E:function(){return i}}),(r=i||(i={})).ADDITION="Addition",r.CHANGE="Change",r.REMOVAL="Removal",r.CLASSIFICATION="Classification",r.IN_PROGRESS="Classifying",r.MONITORED="Monitoring",r.MUTED="Unmonitored",r.NONE="--"},74241:function(t,e){"use strict";e.Z=t=>{let e=t.split(".");return e.length>1?e[1]:""}},20449:function(t,e,n){"use strict";var i=n(28278),r=n(21910);e.Z=t=>t.diff_status===r.LL.ADDITION?i.E.ADDITION:t.diff_status===r.LL.REMOVAL?i.E.REMOVAL:t.diff_status===r.LL.CLASSIFYING||t.diff_status===r.LL.CLASSIFICATION_QUEUED?i.E.IN_PROGRESS:t.diff_status===r.LL.CLASSIFICATION_ADDITION||t.diff_status===r.LL.CLASSIFICATION_UPDATE?i.E.CLASSIFICATION:t.child_diff_statuses?t.child_diff_statuses[r.LL.CLASSIFYING]||t.child_diff_statuses[r.LL.CLASSIFICATION_QUEUED]?i.E.IN_PROGRESS:t.child_diff_statuses[r.LL.CLASSIFICATION_ADDITION]||t.child_diff_statuses[r.LL.CLASSIFICATION_UPDATE]?i.E.CLASSIFICATION:t.child_diff_statuses[r.LL.ADDITION]||t.child_diff_statuses[r.LL.REMOVAL]?i.E.CHANGE:t.diff_status===r.LL.MONITORED?i.E.MONITORED:t.diff_status===r.LL.MUTED?i.E.MUTED:i.E.NONE:i.E.NONE},7940:function(t,e,n){"use strict";n.d(e,{G:function(){return r}});var i=n(21910);let r=t=>{var e,n,r;return t?t.resource_type?t.resource_type:(null===(e=t.schemas)||void 0===e?void 0:e.length)?i.D$.DATABASE:(null===(n=t.tables)||void 0===n?void 0:n.length)?i.D$.SCHEMA:(null===(r=t.fields)||void 0===r?void 0:r.length)?i.D$.TABLE:i.D$.FIELD:void 0}},98559:function(t,e){"use strict";e.Z=t=>{let{name:e,urn:n,monitor_config_id:i,database_name:r,schema_name:s,table_name:l,top_level_field_name:o,top_level_field_urn:c}=t;if(!o)return e;let u=n.split(".");return c?n.replace("".concat(c).concat("."),""):([i,r,s,l,o].forEach(t=>{if(t){let e=u.indexOf(t);e>-1&&u.splice(e,1)}}),u.join("."))}},80285:function(t,e){"use strict";e.Z=t=>t.urn},36168:function(t,e){"use strict";e.Z=t=>{var e;return!!t.parent_table_urn&&null!==(e=t.sub_field_urns)&&void 0!==e&&!!e.length&&!t.top_level_field_name}},80356:function(t,e,n){"use strict";var i=n(7940),r=n(36168),s=n(21910);e.Z=t=>(0,i.G)(t)!==s.D$.FIELD||(0,r.Z)(t)}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9046],{14908:function(e,s,a){var i=a(86677),t=a(27378);let l=e=>e.startsWith("#")?e.slice(1):e;s.Z=e=>{let{tabKeys:s,initialTab:a}=e,r=(0,i.useRouter)(),n=r.asPath.split("#")[1]||s[0],[o,d]=(0,t.useState)(n);return(0,t.useEffect)(()=>{a&&s.includes(a)&&d(a)},[a,s,r.isReady]),{activeTab:o,onTabChange:(0,t.useCallback)(async e=>{if(!s.includes(e)){await r.replace({pathname:r.pathname,query:r.query,hash:void 0}),d(s[0]);return}r.isReady&&(await r.replace({pathname:r.pathname,query:r.query,hash:l(e)},void 0,{shallow:!0}),d(e))},[r,s])}}},69828:function(e,s,a){a.d(s,{Y:function(){return r}});var i=a(24246),t=a(96306),l=a(70788);let r=[(0,i.jsx)(t.PJP.S9g,{},"layers"),(0,i.jsx)(t.PJP.ehp,{},"dataset"),(0,i.jsx)(t.PJP.iA_,{},"table"),(0,i.jsx)(t.PJP.$4y,{style:{transform:"rotate(-90deg)"}},"field")];s.Z=e=>{let{resourceUrn:s,parentLink:a,onPathClick:t=()=>{}}=e,n=[];if(s||n.push({title:"All activity"}),s){n.push({title:"All activity",href:a});let e=s.split(".");e.forEach((s,a)=>{0!==a&&n.push({title:s,icon:r[a-1],onClick:s=>{s.preventDefault(),t(e.slice(0,a+1).join("."))}})})}return(0,i.jsx)(l.m,{"data-testid":"results-breadcrumb",items:n})}},11904:function(e,s,a){a.d(s,{Z:function(){return E}});var i,t,l=a(24246),r=a(59003),n=a(92222),o=a(96306),d=a(27378),c=a(47935),u=a(70675),g=a(72625),x=a(79947),j=a(50169),h=a(28278),m=a(74241),p=a(54682),I=a(91761),C=a(61099),f=a(87667),y=e=>{let{resourceType:s}=e,a=(0,n.Cl)();return s===p.D$.SCHEMA?{columns:[a.accessor(e=>e.name,{id:"name",cell:e=>(0,l.jsx)(f.Z,{result:e.row.original,changeTypeOverride:h.E.CLASSIFICATION}),header:e=>(0,l.jsx)(c.Rr,{value:"Name",...e}),size:300}),a.accessor(e=>e.urn,{id:"project",cell:e=>(0,l.jsx)(c.G3,{value:(0,m.Z)(e.getValue())}),header:e=>(0,l.jsx)(c.Rr,{value:"Project",...e})}),a.display({id:"status",cell:e=>(0,l.jsx)(j.Z,{result:e.row.original}),header:e=>(0,l.jsx)(c.Rr,{value:"Status",...e})}),a.accessor(e=>e.system,{id:"system",cell:e=>(0,l.jsx)(c.G3,{value:e.getValue()}),header:e=>(0,l.jsx)(c.Rr,{value:"System",...e})}),a.accessor(e=>e.monitor_config_id,{id:"monitor",cell:e=>(0,l.jsx)(c.G3,{value:e.getValue()}),header:e=>(0,l.jsx)(c.Rr,{value:"Detected by",...e})}),a.accessor(e=>e.updated_at,{id:"time",cell:e=>(0,l.jsx)(g.Cy,{time:e.getValue()}),header:e=>(0,l.jsx)(c.Rr,{value:"When",...e})}),a.display({id:"action",cell:e=>e.row.original.diff_status!==p.LL.MUTED?(0,l.jsx)(I.Z,{resource:e.row.original}):(0,l.jsx)(c.G3,{value:"--"}),header:"Actions",size:235,meta:{disableRowClick:!0}})]}:s===p.D$.TABLE?{columns:[a.display({id:"select",cell:e=>{var s;let{row:a}=e;return(0,l.jsx)(g.k,{isChecked:a.getIsSelected(),onChange:a.getToggleSelectedHandler(),dataTestId:"select-".concat(null!==(s=a.original.name)&&void 0!==s?s:a.id)})},header:e=>{let{table:s}=e;return(0,l.jsx)(g.k,{isChecked:s.getIsAllPageRowsSelected(),isIndeterminate:s.getIsSomeRowsSelected(),onChange:s.getToggleAllRowsSelectedHandler(),dataTestId:"select-all-rows"})},maxSize:40}),a.accessor(e=>e.name,{id:"tables",cell:e=>(0,l.jsx)(f.Z,{result:e.row.original}),header:e=>(0,l.jsx)(c.Rr,{value:"Table name",...e}),size:300}),a.accessor(e=>e.description,{id:"description",cell:e=>(0,l.jsx)(c.G3,{value:e.getValue(),cellProps:e}),header:e=>(0,l.jsx)(c.Rr,{value:"Description",...e}),meta:{showHeaderMenu:!0}}),a.display({id:"status",cell:e=>(0,l.jsx)(j.Z,{result:e.row.original}),header:e=>(0,l.jsx)(c.Rr,{value:"Status",...e})}),a.display({id:"type",cell:()=>(0,l.jsx)(c.G3,{value:"Table"}),header:"Type"}),a.accessor(e=>e.updated_at,{id:"time",cell:e=>(0,l.jsx)(g.Cy,{time:e.getValue()}),header:"Time"}),a.display({id:"actions",cell:e=>(0,l.jsx)(I.Z,{resource:e.row.original}),header:"Actions",size:235,meta:{disableRowClick:!0}})]}:s===p.D$.FIELD?{columns:[a.accessor(e=>e.name,{id:"name",cell:e=>(0,l.jsx)(f.Z,{result:e.row.original}),header:e=>(0,l.jsx)(c.Rr,{value:"Field name",...e}),size:300}),a.accessor(e=>e.source_data_type,{id:"data-type",cell:e=>(0,l.jsx)(x.Z,{type:e.getValue()}),header:e=>(0,l.jsx)(c.Rr,{value:"Data type",...e})}),a.accessor(e=>e.description,{id:"description",cell:e=>(0,l.jsx)(c.G3,{value:e.getValue(),cellProps:e}),header:e=>(0,l.jsx)(c.Rr,{value:"Description",...e}),meta:{showHeaderMenu:!0}}),a.display({id:"status",cell:e=>(0,l.jsx)(j.Z,{result:e.row.original}),header:e=>(0,l.jsx)(c.Rr,{value:"Status",...e})}),a.display({id:"type",cell:()=>(0,l.jsx)(c.G3,{value:"Field"}),header:"Type"}),a.display({id:"classifications",cell:e=>{let{row:s}=e;return(0,l.jsx)(C.Z,{resource:s.original})},meta:{overflow:"visible",disableRowClick:!0},header:"Data category",minSize:280}),a.accessor(e=>e.updated_at,{id:"time",cell:e=>(0,l.jsx)(g.Cy,{time:e.getValue()}),header:e=>(0,l.jsx)(c.Rr,{value:"When",...e})}),a.display({id:"actions",cell:e=>(0,l.jsx)(I.Z,{resource:e.row.original}),header:"Actions",size:235,meta:{disableRowClick:!0}})]}:s===p.D$.ENDPOINT?{columns:[a.accessor(e=>e.name,{id:"name",cell:e=>(0,l.jsx)(f.Z,{result:e.row.original}),header:e=>(0,l.jsx)(c.Rr,{value:"Object",...e}),size:300}),a.accessor(e=>e.description,{id:"description",cell:e=>(0,l.jsx)(c.G3,{value:e.getValue(),cellProps:e}),header:e=>(0,l.jsx)(c.Rr,{value:"Description",...e}),meta:{showHeaderMenu:!0}}),a.display({id:"status",cell:e=>(0,l.jsx)(j.Z,{result:e.row.original}),header:e=>(0,l.jsx)(c.Rr,{value:"Status",...e})}),a.display({id:"type",cell:()=>(0,l.jsx)(c.G3,{value:"Endpoint"}),header:"Type"}),a.display({id:"classifications",cell:e=>{let{row:s}=e;return(0,l.jsx)(C.Z,{resource:s.original})},meta:{overflow:"visible",disableRowClick:!0},header:"Data category",minSize:280}),a.accessor(e=>e.updated_at,{id:"time",cell:e=>(0,l.jsx)(g.Cy,{time:e.getValue()}),header:e=>(0,l.jsx)(c.Rr,{value:"When",...e})}),a.display({id:"actions",cell:e=>(0,l.jsx)(I.Z,{resource:e.row.original}),header:"Actions",size:235,meta:{disableRowClick:!0}})]}:{columns:[]}},v=a(14908);(i=t||(t={})).ACTION_REQUIRED="action-required",i.IN_PROGRESS="in-progress",i.UNMONITORED="unmonitored";let L={"action-required":{label:"Action Required",key:"action-required",filters:[p.LL.CLASSIFICATION_ADDITION,p.LL.CLASSIFICATION_UPDATE],childFilters:[p.LL.CLASSIFICATION_ADDITION,p.LL.CLASSIFICATION_UPDATE]},"in-progress":{label:"In progress",key:"in-progress",filters:[p.LL.CLASSIFYING,p.LL.CLASSIFICATION_QUEUED],childFilters:[p.LL.CLASSIFYING,p.LL.CLASSIFICATION_QUEUED]},unmonitored:{label:"Unmonitored",key:"unmonitored",filters:[p.LL.MUTED],childFilters:[]}};var S=()=>{var e,s;let{activeTab:a,onTabChange:i}=(0,v.Z)({tabKeys:Object.values(t)});return{filterTabs:Object.values(L),activeTab:a,onTabChange:i,activeDiffFilters:null===(e=L[a])||void 0===e?void 0:e.filters,activeChildDiffFilters:null===(s=L[a])||void 0===s?void 0:s.childFilters}},_=a(47182),b=a(38347),w=a(79494),A=e=>{let{resourceUrn:s}=e,[a,{isLoading:i}]=(0,u.Hf)(),[t,{isLoading:r}]=(0,u.zV)(),n=i||r,d=async e=>{await t({staged_resource_urns:e})},c=async e=>{await a({staged_resource_urns:e})};return(0,l.jsx)(o.jqI,{"data-testid":"bulk-actions-menu",children:(0,l.jsxs)("div",{className:"flex gap-2",children:[(0,l.jsx)(w.Z,{title:"Confirm all",icon:(0,l.jsx)(o.nQG,{}),onClick:()=>c([s]),disabled:n,loading:i,type:"primary",size:"middle"}),(0,l.jsx)(w.Z,{title:"Ignore all",icon:(0,l.jsx)(o.tpL,{}),onClick:()=>d([s]),disabled:n,loading:r,size:"middle"})]})})},R=e=>{let{selectedUrns:s}=e,[a,{isLoading:i}]=(0,u.Hf)(),[t,{isLoading:r}]=(0,u.zV)(),n=i||r,d=async e=>{await a({staged_resource_urns:e})},c=async e=>{await t({staged_resource_urns:e})};return s.length?(0,l.jsxs)(o.jqI,{className:"items-center","data-testid":"bulk-actions-menu",children:[(0,l.jsx)(o.xvT,{fontSize:"xs",fontWeight:"semibold",minW:16,mr:4,children:"".concat(s.length," selected")}),(0,l.jsxs)(o.jqI,{className:"gap-2",children:[(0,l.jsx)(w.Z,{title:"Confirm",icon:(0,l.jsx)(o.nQG,{}),onClick:()=>d(s),disabled:n,loading:i,type:"primary",size:"middle"}),(0,l.jsx)(w.Z,{title:"Ignore",icon:(0,l.jsx)(o.tpL,{}),disabled:n,loading:r,onClick:()=>c(s),size:"middle"})]})]}):null},T=a(7940),D=a(80285),k=a(36168),N=a(30952);let F={items:[],total:0,page:1,size:50,pages:1},Z=()=>(0,l.jsx)(o.gCW,{mt:6,p:10,spacing:4,borderRadius:"base",maxW:"70%","data-testid":"empty-state",alignSelf:"center",margin:"auto",children:(0,l.jsxs)(o.gCW,{children:[(0,l.jsx)(o.xvT,{fontSize:"md",fontWeight:"600",children:"No activity found"}),(0,l.jsx)(o.xvT,{fontSize:"sm",children:"You're up to date!"})]})});var E=e=>{let{resourceUrn:s}=e,[a,i]=(0,d.useState)(""),{filterTabs:t,activeTab:g,onTabChange:x,activeDiffFilters:j,activeChildDiffFilters:h}=S(),[m,I]=(0,d.useState)({}),{PAGE_SIZES:C,pageSize:f,setPageSize:v,onPreviousPageClick:L,isPreviousPageDisabled:w,onNextPageClick:E,isNextPageDisabled:P,startRange:O,endRange:z,pageIndex:G,setTotalPages:U,resetPageIndexToDefault:M}=(0,c.oi)();(0,d.useEffect)(()=>{M()},[s,a,M,j,h]);let{isFetching:V,isLoading:q,data:$}=(0,u.z8)({staged_resource_urn:s,page:G,size:f,child_diff_status:h,diff_status:j,search:a}),W=(0,T.G)(null==$?void 0:$.items[0]),{items:H,total:Q,pages:Y}=(0,d.useMemo)(()=>null!=$?$:F,[$]);(0,d.useEffect)(()=>{U(Y)},[Y,U]);let{columns:J}=y({resourceType:W}),K=(0,d.useMemo)(()=>J,[J]),{navigateToDiscoveryResults:B}=(0,_.Z)(),X=(0,r.b7)({getCoreRowModel:(0,n.sC)(),getGroupedRowModel:(0,n.qe)(),getExpandedRowModel:(0,n.rV)(),columns:K,manualPagination:!0,onRowSelectionChange:I,state:{rowSelection:m},getRowId:D.Z,data:H,columnResizeMode:"onChange"}),ee=Object.keys(m).filter(e=>m[e]);return q?(0,l.jsx)(c.I4,{rowHeight:36,numRows:36}):(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(o.A5g,{items:t.map(e=>({key:e.key,label:e.label})),activeKey:g,onChange:e=>x(e)}),(0,l.jsxs)(c.Q$,{children:[(0,l.jsxs)(o.kCb,{gap:6,align:"center",children:[(0,l.jsx)(o.xuv,{flexShrink:0,children:(0,l.jsx)(N.f,{value:a,onChange:i})}),(0,l.jsx)(b.a,{})]}),W===p.D$.TABLE&&!!ee.length&&(0,l.jsx)(R,{selectedUrns:ee}),W===p.D$.FIELD&&"unmonitored"!==g&&(0,l.jsx)(A,{resourceUrn:s})]}),(0,l.jsx)(c.ZK,{tableInstance:X,onRowClick:e=>B({resourceUrn:e.urn,filterTab:g}),getRowIsClickable:e=>W!==p.D$.FIELD||(0,k.Z)(e),emptyTableNotice:(0,l.jsx)(Z,{})}),(0,l.jsx)(c.s8,{totalRows:Q||0,pageSizes:C,setPageSize:v,onPreviousPageClick:L,isPreviousPageDisabled:w||V,onNextPageClick:E,isNextPageDisabled:P||V,startRange:O,endRange:z})]})}},91761:function(e,s,a){var i=a(24246),t=a(96306),l=a(812),r=a(41841),n=a(7940),o=a(98559),d=a(54682),c=a(79494),u=a(70675);s.Z=e=>{let{resource:s}=e,[a,{isLoading:g}]=(0,u.v8)(),[x,{isLoading:j}]=(0,u.cM)(),[h,{isLoading:m}]=(0,u.vi)(),p=j||m||g,{diff_status:I,child_diff_statuses:C,top_level_field_name:f}=s,{successAlert:y,errorAlert:v}=(0,r.VY)(),L=I===d.LL.CLASSIFICATION_ADDITION||I===d.LL.CLASSIFICATION_UPDATE,S=C&&(C[d.LL.CLASSIFICATION_ADDITION]||C[d.LL.CLASSIFICATION_UPDATE]),_=(L||S)&&!f,b=L||S,w=(0,n.G)(s)!==d.D$.FIELD,A=_&&b&&w,R=async()=>{let e=await x({staged_resource_urn:s.urn});(0,l.D4)(e)?v((0,l.e$)(e.error),"Failed to promote resource"):y('These changes have been added to a Fides dataset. To view, navigate to "Manage datasets".',"Table changes confirmed")},T=async()=>{let e=await h({staged_resource_urn:s.urn});(0,l.D4)(e)?v((0,l.e$)(e.error),"Failed to mute resource"):y("Ignored changes will not be added to a Fides dataset.","".concat(s.name||"Changes"," ignored"))},D=async()=>{let e=await a({staged_resource_urn:s.urn,monitor_config_id:s.monitor_config_id,start_classification:!0,diff_statuses_to_classify:[d.LL.CLASSIFICATION_ADDITION,d.LL.CLASSIFICATION_UPDATE,d.LL.CLASSIFYING,d.LL.CLASSIFICATION_QUEUED]});(0,l.D4)(e)?v((0,l.e$)(e.error),"Failed to reclassify resource"):y("Reclassification of ".concat((0,o.Z)(s)||"the resource"," has begun. The results may take some time to appear in the “Data discovery“ tab."),"Reclassification started")};return(0,i.jsxs)(t.Ugi,{gap:2,children:[_&&(0,i.jsx)(c.Z,{title:"Confirm",icon:(0,i.jsx)(t.nQG,{}),onClick:R,disabled:p,loading:j}),b&&(0,i.jsx)(c.Z,{title:"Ignore",icon:(0,i.jsx)(t.tpL,{}),onClick:T,disabled:p,loading:m}),w&&!A&&(0,i.jsx)(c.Z,{title:"Reclassify",icon:(0,i.jsx)(t.nyI,{}),onClick:D,disabled:p,loading:g}),A&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(t.LZC,{}),(0,i.jsxs)(t.v2r,{children:[(0,i.jsx)(t.j2t,{as:t.wpx,size:"small",type:"text",icon:(0,i.jsx)(t.nXP,{transform:"rotate(90deg)"}),className:"w-6 gap-0","data-testid":"actions-overflow-btn"}),(0,i.jsx)(t.qyq,{children:(0,i.jsx)(t.sNh,{onClick:D,icon:(0,i.jsx)(t.nyI,{}),"data-testid":"action-reclassify",children:"Reclassify"})})]})]})]})}},79947:function(e,s,a){var i=a(24246),t=a(96306);s.Z=e=>{let{type:s}=e;return(0,i.jsx)(t.kCb,{align:"center",h:"full",children:!!s&&(0,i.jsx)(t.j8w,{children:s})})}}}]);
|
|
1
|
+
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9046],{14908:function(e,s,a){var i=a(86677),t=a(27378);let l=e=>e.startsWith("#")?e.slice(1):e;s.Z=e=>{let{tabKeys:s,initialTab:a}=e,r=(0,i.useRouter)(),n=r.asPath.split("#")[1]||s[0],[o,d]=(0,t.useState)(n);return(0,t.useEffect)(()=>{a&&s.includes(a)&&d(a)},[a,s,r.isReady]),{activeTab:o,onTabChange:(0,t.useCallback)(async e=>{if(!s.includes(e)){await r.replace({pathname:r.pathname,query:r.query,hash:void 0}),d(s[0]);return}r.isReady&&(await r.replace({pathname:r.pathname,query:r.query,hash:l(e)},void 0,{shallow:!0}),d(e))},[r,s])}}},69828:function(e,s,a){a.d(s,{Y:function(){return r}});var i=a(24246),t=a(96306),l=a(70788);let r=[(0,i.jsx)(t.PJP.S9g,{},"layers"),(0,i.jsx)(t.PJP.ehp,{},"dataset"),(0,i.jsx)(t.PJP.iA_,{},"table"),(0,i.jsx)(t.PJP.$4y,{style:{transform:"rotate(-90deg)"}},"field")];s.Z=e=>{let{resourceUrn:s,parentLink:a,onPathClick:t=()=>{}}=e,n=[];if(s||n.push({title:"All activity"}),s){n.push({title:"All activity",href:a});let e=s.split(".");e.forEach((s,a)=>{0!==a&&n.push({title:s,icon:r[a-1],onClick:s=>{s.preventDefault(),t(e.slice(0,a+1).join("."))}})})}return(0,i.jsx)(l.m,{"data-testid":"results-breadcrumb",items:n})}},11904:function(e,s,a){a.d(s,{Z:function(){return E}});var i,t,l=a(24246),r=a(59003),n=a(92222),o=a(96306),d=a(27378),c=a(47935),u=a(70675),g=a(72625),x=a(79947),j=a(50169),h=a(28278),m=a(74241),p=a(21910),I=a(91761),C=a(61099),f=a(87667),y=e=>{let{resourceType:s}=e,a=(0,n.Cl)();return s===p.D$.SCHEMA?{columns:[a.accessor(e=>e.name,{id:"name",cell:e=>(0,l.jsx)(f.Z,{result:e.row.original,changeTypeOverride:h.E.CLASSIFICATION}),header:e=>(0,l.jsx)(c.Rr,{value:"Name",...e}),size:300}),a.accessor(e=>e.urn,{id:"project",cell:e=>(0,l.jsx)(c.G3,{value:(0,m.Z)(e.getValue())}),header:e=>(0,l.jsx)(c.Rr,{value:"Project",...e})}),a.display({id:"status",cell:e=>(0,l.jsx)(j.Z,{result:e.row.original}),header:e=>(0,l.jsx)(c.Rr,{value:"Status",...e})}),a.accessor(e=>e.system,{id:"system",cell:e=>(0,l.jsx)(c.G3,{value:e.getValue()}),header:e=>(0,l.jsx)(c.Rr,{value:"System",...e})}),a.accessor(e=>e.monitor_config_id,{id:"monitor",cell:e=>(0,l.jsx)(c.G3,{value:e.getValue()}),header:e=>(0,l.jsx)(c.Rr,{value:"Detected by",...e})}),a.accessor(e=>e.updated_at,{id:"time",cell:e=>(0,l.jsx)(g.Cy,{time:e.getValue()}),header:e=>(0,l.jsx)(c.Rr,{value:"When",...e})}),a.display({id:"action",cell:e=>e.row.original.diff_status!==p.LL.MUTED?(0,l.jsx)(I.Z,{resource:e.row.original}):(0,l.jsx)(c.G3,{value:"--"}),header:"Actions",size:235,meta:{disableRowClick:!0}})]}:s===p.D$.TABLE?{columns:[a.display({id:"select",cell:e=>{var s;let{row:a}=e;return(0,l.jsx)(g.k,{isChecked:a.getIsSelected(),onChange:a.getToggleSelectedHandler(),dataTestId:"select-".concat(null!==(s=a.original.name)&&void 0!==s?s:a.id)})},header:e=>{let{table:s}=e;return(0,l.jsx)(g.k,{isChecked:s.getIsAllPageRowsSelected(),isIndeterminate:s.getIsSomeRowsSelected(),onChange:s.getToggleAllRowsSelectedHandler(),dataTestId:"select-all-rows"})},maxSize:40}),a.accessor(e=>e.name,{id:"tables",cell:e=>(0,l.jsx)(f.Z,{result:e.row.original}),header:e=>(0,l.jsx)(c.Rr,{value:"Table name",...e}),size:300}),a.accessor(e=>e.description,{id:"description",cell:e=>(0,l.jsx)(c.G3,{value:e.getValue(),cellProps:e}),header:e=>(0,l.jsx)(c.Rr,{value:"Description",...e}),meta:{showHeaderMenu:!0}}),a.display({id:"status",cell:e=>(0,l.jsx)(j.Z,{result:e.row.original}),header:e=>(0,l.jsx)(c.Rr,{value:"Status",...e})}),a.display({id:"type",cell:()=>(0,l.jsx)(c.G3,{value:"Table"}),header:"Type"}),a.accessor(e=>e.updated_at,{id:"time",cell:e=>(0,l.jsx)(g.Cy,{time:e.getValue()}),header:"Time"}),a.display({id:"actions",cell:e=>(0,l.jsx)(I.Z,{resource:e.row.original}),header:"Actions",size:235,meta:{disableRowClick:!0}})]}:s===p.D$.FIELD?{columns:[a.accessor(e=>e.name,{id:"name",cell:e=>(0,l.jsx)(f.Z,{result:e.row.original}),header:e=>(0,l.jsx)(c.Rr,{value:"Field name",...e}),size:300}),a.accessor(e=>e.source_data_type,{id:"data-type",cell:e=>(0,l.jsx)(x.Z,{type:e.getValue()}),header:e=>(0,l.jsx)(c.Rr,{value:"Data type",...e})}),a.accessor(e=>e.description,{id:"description",cell:e=>(0,l.jsx)(c.G3,{value:e.getValue(),cellProps:e}),header:e=>(0,l.jsx)(c.Rr,{value:"Description",...e}),meta:{showHeaderMenu:!0}}),a.display({id:"status",cell:e=>(0,l.jsx)(j.Z,{result:e.row.original}),header:e=>(0,l.jsx)(c.Rr,{value:"Status",...e})}),a.display({id:"type",cell:()=>(0,l.jsx)(c.G3,{value:"Field"}),header:"Type"}),a.display({id:"classifications",cell:e=>{let{row:s}=e;return(0,l.jsx)(C.Z,{resource:s.original})},meta:{overflow:"visible",disableRowClick:!0},header:"Data category",minSize:280}),a.accessor(e=>e.updated_at,{id:"time",cell:e=>(0,l.jsx)(g.Cy,{time:e.getValue()}),header:e=>(0,l.jsx)(c.Rr,{value:"When",...e})}),a.display({id:"actions",cell:e=>(0,l.jsx)(I.Z,{resource:e.row.original}),header:"Actions",size:235,meta:{disableRowClick:!0}})]}:s===p.D$.ENDPOINT?{columns:[a.accessor(e=>e.name,{id:"name",cell:e=>(0,l.jsx)(f.Z,{result:e.row.original}),header:e=>(0,l.jsx)(c.Rr,{value:"Object",...e}),size:300}),a.accessor(e=>e.description,{id:"description",cell:e=>(0,l.jsx)(c.G3,{value:e.getValue(),cellProps:e}),header:e=>(0,l.jsx)(c.Rr,{value:"Description",...e}),meta:{showHeaderMenu:!0}}),a.display({id:"status",cell:e=>(0,l.jsx)(j.Z,{result:e.row.original}),header:e=>(0,l.jsx)(c.Rr,{value:"Status",...e})}),a.display({id:"type",cell:()=>(0,l.jsx)(c.G3,{value:"Endpoint"}),header:"Type"}),a.display({id:"classifications",cell:e=>{let{row:s}=e;return(0,l.jsx)(C.Z,{resource:s.original})},meta:{overflow:"visible",disableRowClick:!0},header:"Data category",minSize:280}),a.accessor(e=>e.updated_at,{id:"time",cell:e=>(0,l.jsx)(g.Cy,{time:e.getValue()}),header:e=>(0,l.jsx)(c.Rr,{value:"When",...e})}),a.display({id:"actions",cell:e=>(0,l.jsx)(I.Z,{resource:e.row.original}),header:"Actions",size:235,meta:{disableRowClick:!0}})]}:{columns:[]}},v=a(14908);(i=t||(t={})).ACTION_REQUIRED="action-required",i.IN_PROGRESS="in-progress",i.UNMONITORED="unmonitored";let L={"action-required":{label:"Action Required",key:"action-required",filters:[p.LL.CLASSIFICATION_ADDITION,p.LL.CLASSIFICATION_UPDATE],childFilters:[p.LL.CLASSIFICATION_ADDITION,p.LL.CLASSIFICATION_UPDATE]},"in-progress":{label:"In progress",key:"in-progress",filters:[p.LL.CLASSIFYING,p.LL.CLASSIFICATION_QUEUED],childFilters:[p.LL.CLASSIFYING,p.LL.CLASSIFICATION_QUEUED]},unmonitored:{label:"Unmonitored",key:"unmonitored",filters:[p.LL.MUTED],childFilters:[]}};var S=()=>{var e,s;let{activeTab:a,onTabChange:i}=(0,v.Z)({tabKeys:Object.values(t)});return{filterTabs:Object.values(L),activeTab:a,onTabChange:i,activeDiffFilters:null===(e=L[a])||void 0===e?void 0:e.filters,activeChildDiffFilters:null===(s=L[a])||void 0===s?void 0:s.childFilters}},_=a(47182),b=a(38347),w=a(79494),A=e=>{let{resourceUrn:s}=e,[a,{isLoading:i}]=(0,u.Hf)(),[t,{isLoading:r}]=(0,u.zV)(),n=i||r,d=async e=>{await t({staged_resource_urns:e})},c=async e=>{await a({staged_resource_urns:e})};return(0,l.jsx)(o.jqI,{"data-testid":"bulk-actions-menu",children:(0,l.jsxs)("div",{className:"flex gap-2",children:[(0,l.jsx)(w.Z,{title:"Confirm all",icon:(0,l.jsx)(o.nQG,{}),onClick:()=>c([s]),disabled:n,loading:i,type:"primary",size:"middle"}),(0,l.jsx)(w.Z,{title:"Ignore all",icon:(0,l.jsx)(o.tpL,{}),onClick:()=>d([s]),disabled:n,loading:r,size:"middle"})]})})},R=e=>{let{selectedUrns:s}=e,[a,{isLoading:i}]=(0,u.Hf)(),[t,{isLoading:r}]=(0,u.zV)(),n=i||r,d=async e=>{await a({staged_resource_urns:e})},c=async e=>{await t({staged_resource_urns:e})};return s.length?(0,l.jsxs)(o.jqI,{className:"items-center","data-testid":"bulk-actions-menu",children:[(0,l.jsx)(o.xvT,{fontSize:"xs",fontWeight:"semibold",minW:16,mr:4,children:"".concat(s.length," selected")}),(0,l.jsxs)(o.jqI,{className:"gap-2",children:[(0,l.jsx)(w.Z,{title:"Confirm",icon:(0,l.jsx)(o.nQG,{}),onClick:()=>d(s),disabled:n,loading:i,type:"primary",size:"middle"}),(0,l.jsx)(w.Z,{title:"Ignore",icon:(0,l.jsx)(o.tpL,{}),disabled:n,loading:r,onClick:()=>c(s),size:"middle"})]})]}):null},T=a(7940),D=a(80285),k=a(36168),N=a(30952);let F={items:[],total:0,page:1,size:50,pages:1},Z=()=>(0,l.jsx)(o.gCW,{mt:6,p:10,spacing:4,borderRadius:"base",maxW:"70%","data-testid":"empty-state",alignSelf:"center",margin:"auto",children:(0,l.jsxs)(o.gCW,{children:[(0,l.jsx)(o.xvT,{fontSize:"md",fontWeight:"600",children:"No activity found"}),(0,l.jsx)(o.xvT,{fontSize:"sm",children:"You're up to date!"})]})});var E=e=>{let{resourceUrn:s}=e,[a,i]=(0,d.useState)(""),{filterTabs:t,activeTab:g,onTabChange:x,activeDiffFilters:j,activeChildDiffFilters:h}=S(),[m,I]=(0,d.useState)({}),{PAGE_SIZES:C,pageSize:f,setPageSize:v,onPreviousPageClick:L,isPreviousPageDisabled:w,onNextPageClick:E,isNextPageDisabled:P,startRange:O,endRange:z,pageIndex:G,setTotalPages:U,resetPageIndexToDefault:M}=(0,c.oi)();(0,d.useEffect)(()=>{M()},[s,a,M,j,h]);let{isFetching:V,isLoading:q,data:$}=(0,u.z8)({staged_resource_urn:s,page:G,size:f,child_diff_status:h,diff_status:j,search:a}),W=(0,T.G)(null==$?void 0:$.items[0]),{items:H,total:Q,pages:Y}=(0,d.useMemo)(()=>null!=$?$:F,[$]);(0,d.useEffect)(()=>{U(Y)},[Y,U]);let{columns:J}=y({resourceType:W}),K=(0,d.useMemo)(()=>J,[J]),{navigateToDiscoveryResults:B}=(0,_.Z)(),X=(0,r.b7)({getCoreRowModel:(0,n.sC)(),getGroupedRowModel:(0,n.qe)(),getExpandedRowModel:(0,n.rV)(),columns:K,manualPagination:!0,onRowSelectionChange:I,state:{rowSelection:m},getRowId:D.Z,data:H,columnResizeMode:"onChange"}),ee=Object.keys(m).filter(e=>m[e]);return q?(0,l.jsx)(c.I4,{rowHeight:36,numRows:36}):(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(o.A5g,{items:t.map(e=>({key:e.key,label:e.label})),activeKey:g,onChange:e=>x(e)}),(0,l.jsxs)(c.Q$,{children:[(0,l.jsxs)(o.kCb,{gap:6,align:"center",children:[(0,l.jsx)(o.xuv,{flexShrink:0,children:(0,l.jsx)(N.f,{value:a,onChange:i})}),(0,l.jsx)(b.a,{})]}),W===p.D$.TABLE&&!!ee.length&&(0,l.jsx)(R,{selectedUrns:ee}),W===p.D$.FIELD&&"unmonitored"!==g&&(0,l.jsx)(A,{resourceUrn:s})]}),(0,l.jsx)(c.ZK,{tableInstance:X,onRowClick:e=>B({resourceUrn:e.urn,filterTab:g}),getRowIsClickable:e=>W!==p.D$.FIELD||(0,k.Z)(e),emptyTableNotice:(0,l.jsx)(Z,{})}),(0,l.jsx)(c.s8,{totalRows:Q||0,pageSizes:C,setPageSize:v,onPreviousPageClick:L,isPreviousPageDisabled:w||V,onNextPageClick:E,isNextPageDisabled:P||V,startRange:O,endRange:z})]})}},91761:function(e,s,a){var i=a(24246),t=a(96306),l=a(812),r=a(41841),n=a(7940),o=a(98559),d=a(21910),c=a(79494),u=a(70675);s.Z=e=>{let{resource:s}=e,[a,{isLoading:g}]=(0,u.v8)(),[x,{isLoading:j}]=(0,u.cM)(),[h,{isLoading:m}]=(0,u.vi)(),p=j||m||g,{diff_status:I,child_diff_statuses:C,top_level_field_name:f}=s,{successAlert:y,errorAlert:v}=(0,r.VY)(),L=I===d.LL.CLASSIFICATION_ADDITION||I===d.LL.CLASSIFICATION_UPDATE,S=C&&(C[d.LL.CLASSIFICATION_ADDITION]||C[d.LL.CLASSIFICATION_UPDATE]),_=(L||S)&&!f,b=L||S,w=(0,n.G)(s)!==d.D$.FIELD,A=_&&b&&w,R=async()=>{let e=await x({staged_resource_urn:s.urn});(0,l.D4)(e)?v((0,l.e$)(e.error),"Failed to promote resource"):y('These changes have been added to a Fides dataset. To view, navigate to "Manage datasets".',"Table changes confirmed")},T=async()=>{let e=await h({staged_resource_urn:s.urn});(0,l.D4)(e)?v((0,l.e$)(e.error),"Failed to mute resource"):y("Ignored changes will not be added to a Fides dataset.","".concat(s.name||"Changes"," ignored"))},D=async()=>{let e=await a({staged_resource_urn:s.urn,monitor_config_id:s.monitor_config_id,start_classification:!0,diff_statuses_to_classify:[d.LL.CLASSIFICATION_ADDITION,d.LL.CLASSIFICATION_UPDATE,d.LL.CLASSIFYING,d.LL.CLASSIFICATION_QUEUED]});(0,l.D4)(e)?v((0,l.e$)(e.error),"Failed to reclassify resource"):y("Reclassification of ".concat((0,o.Z)(s)||"the resource"," has begun. The results may take some time to appear in the “Data discovery“ tab."),"Reclassification started")};return(0,i.jsxs)(t.Ugi,{gap:2,children:[_&&(0,i.jsx)(c.Z,{title:"Confirm",icon:(0,i.jsx)(t.nQG,{}),onClick:R,disabled:p,loading:j}),b&&(0,i.jsx)(c.Z,{title:"Ignore",icon:(0,i.jsx)(t.tpL,{}),onClick:T,disabled:p,loading:m}),w&&!A&&(0,i.jsx)(c.Z,{title:"Reclassify",icon:(0,i.jsx)(t.nyI,{}),onClick:D,disabled:p,loading:g}),A&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(t.LZC,{}),(0,i.jsxs)(t.v2r,{children:[(0,i.jsx)(t.j2t,{as:t.wpx,size:"small",type:"text",icon:(0,i.jsx)(t.nXP,{transform:"rotate(90deg)"}),className:"w-6 gap-0","data-testid":"actions-overflow-btn"}),(0,i.jsx)(t.qyq,{children:(0,i.jsx)(t.sNh,{onClick:D,icon:(0,i.jsx)(t.nyI,{}),"data-testid":"action-reclassify",children:"Reclassify"})})]})]})]})}},79947:function(e,s,a){var i=a(24246),t=a(96306);s.Z=e=>{let{type:s}=e;return(0,i.jsx)(t.kCb,{align:"center",h:"full",children:!!s&&(0,i.jsx)(t.j8w,{children:s})})}}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9951],{95492:function(e,t,s){s.d(t,{l:function(){return n}});var i=s(24246);let n=(0,s(96306).IUT)({displayName:"TrashCanSolidIcon",viewBox:"0 0 12 15",path:(0,i.jsx)("path",{d:"M8.37857 1.18083C8.23393 0.892838 7.93661 0.710938 7.6125 0.710938H4.3875C4.06339 0.710938 3.76607 0.892838 3.62143 1.18083L3.42857 1.56094H0.857143C0.383036 1.56094 -1.19209e-07 1.94158 -1.19209e-07 2.41094C-1.19209e-07 2.8803 0.383036 3.26094 0.857143 3.26094H11.1429C11.6162 3.26094 12 2.8803 12 2.41094C12 1.94158 11.6162 1.56094 11.1429 1.56094H8.57143L8.37857 1.18083ZM11.167 4.11094H0.857143V12.6109C0.857143 13.5486 1.62589 14.3109 2.57143 14.3109H9.45268C10.3754 14.3109 11.167 13.5486 11.167 12.6109V4.11094ZM9.02411 6.23594V12.1859C9.02411 12.4197 8.80714 12.6109 8.59554 12.6109C8.33571 12.6109 8.16696 12.4197 8.16696 12.1859V6.23594C8.16696 6.00219 8.33571 5.81094 8.59554 5.81094C8.80714 5.81094 9.02411 6.00219 9.02411 6.23594ZM6.45268 6.23594V12.1859C6.45268 12.4197 6.23571 12.6109 6.02411 12.6109C5.76429 12.6109 5.57143 12.4197 5.57143 12.1859V6.23594C5.57143 6.00219 5.76429 5.81094 6.02411 5.81094C6.23571 5.81094 6.45268 6.00219 6.45268 6.23594ZM3.85714 6.23594V12.1859C3.85714 12.4197 3.66429 12.6109 3.42857 12.6109C3.19286 12.6109 3 12.4197 3 12.1859V6.23594C3 6.00219 3.19286 5.81094 3.42857 5.81094C3.66429 5.81094 3.85714 6.00219 3.85714 6.23594Z",fill:"currentColor"})})},94799:function(e,t,s){s.d(t,{k:function(){return l}});var i=s(76649);let n=e=>(0,i.Ln)({id:"string"},e),l=e=>(null!=e?e:[]).filter(n)},30320:function(e,t,s){s.d(t,{m:function(){return o}});var i=s(27378),n=s(25980),l=s(41841),a=s(32885),r=s(94799);let o=e=>{let{resourceFidesKey:t,resourceType:s}=e,{errorAlert:o}=(0,l.VY)(),{plus:d}=(0,n.hz)(),c=(0,i.useMemo)(()=>null!=t?t:"",[]),u=(0,a.YU)(!0,{skip:!d}),m=(0,a.VN)(s,{skip:!d}),{data:f,isLoading:x,error:h,isError:y}=(0,a.PV)(null!=t?t:"",{skip:""!==c&&!(d&&c)}),[p]=(0,a._D)(),g=u.isLoading||m.isLoading||x,C=(0,i.useMemo)(()=>new Map((0,r.k)(u.data).map(e=>{var t;return[e.id,{...e,options:(null!==(t=e.allowed_values)&&void 0!==t?t:[]).map(e=>({value:e,label:e}))}]})),[u.data]),j=(0,i.useMemo)(()=>{var e;return null===(e=m.data)||void 0===e?void 0:e.filter(e=>e.active)},[m.data]),_=(0,i.useMemo)(()=>new Map((0,r.k)(j).map(e=>[e.id,e])),[j]),v=(0,i.useMemo)(()=>y&&(null==h?void 0:h.status)===404?new Map:new Map((0,r.k)(f).map(e=>[e.custom_field_definition_id,e])),[f,y,h]),k=(0,i.useMemo)(()=>{let e=[..._.keys()];return e.sort(),e},[_]),S=(0,i.useMemo)(()=>{let e={};return j&&v&&j.forEach(t=>{let s=v.get(t.id||"");s&&(t.allow_list_id&&"string[]"===t.field_type?e[s.custom_field_definition_id]=s.value:e[s.custom_field_definition_id]=s.value.toString())}),e},[j,v]),T=(0,i.useCallback)(async e=>{if(!d)return;let i="fides_key"in e&&""!==e.fides_key?e.fides_key:t;if(!i)return;let{customFieldValues:n}=e;if(!n||0===Object.keys(n).length)return;let l=[],a=[];k.forEach(e=>{let t=v.get(e),s=n[e];void 0===s||""===s||Array.isArray(s)&&0===s.length?(null==t?void 0:t.id)&&a.push(t.id):l.push({custom_field_definition_id:e,resource_id:i,id:null==t?void 0:t.id,value:s})});try{await p({resource_type:s,resource_id:i,upsert:l,delete:a})}catch(e){o("One or more custom fields have failed to save, please try again."),console.error(e)}},[d,v,o,t,k,p,s]);return{customFieldValues:S,definitionIdToCustomField:v,idToAllowListWithOptions:C,idToCustomFieldDefinition:_,isEnabled:d,isLoading:g,sortedCustomFieldDefinitionIds:k,upsertCustomFields:T}}},95346:function(e,t,s){s.d(t,{uc:function(){return p},Hn:function(){return o},Uv:function(){return a},C7:function(){return d},mZ:function(){return y.m}});var i,n,l,a,r=s(54682);(i=l||(l={}))[i.CREATE_CUSTOM_FIELDS=0]="CREATE_CUSTOM_FIELDS",i[i.CREATE_CUSTOM_LISTS=1]="CREATE_CUSTOM_LISTS",i[i.CHOOSE_FROM_LIBRARY=2]="CHOOSE_FROM_LIBRARY",r.AL.STRING,r.AL.STRING,r.AL.STRING_,(n=a||(a={})).SINGLE_SELECT="singleSelect",n.MULTIPLE_SELECT="multipleSelect",n.LOCATION_SELECT="locationSelect",n.OPEN_TEXT="openText";let o=[{label:"Single select",value:"singleSelect"},{label:"Multiple select",value:"multipleSelect"},{label:"Location select",value:"locationSelect"},{label:"Open Text",value:"openText"}],d=[{label:"taxonomy:".concat(r.P6.DATA_CATEGORY),value:r.P6.DATA_CATEGORY},{label:"taxonomy:".concat(r.P6.DATA_SUBJECT),value:r.P6.DATA_SUBJECT},{label:"taxonomy:".concat(r.P6.DATA_USE),value:r.P6.DATA_USE},{label:"".concat(r.P6.SYSTEM,":information"),value:r.P6.SYSTEM},{label:"system:data use",value:r.P6.PRIVACY_DECLARATION}];var c=s(24246),u=s(96306),m=s(34090),f=s(30234),x=s(97181),h=s(40324),y=s(30320);let p=e=>{let{resourceFidesKey:t,resourceType:s}=e,{idToAllowListWithOptions:i,idToCustomFieldDefinition:n,isEnabled:l,isLoading:a,sortedCustomFieldDefinitionIds:o}=(0,y.m)({resourceFidesKey:t,resourceType:s});return l&&0!==o.length?(0,c.jsx)(f.Z,{heading:"Custom fields",children:(0,c.jsx)(u.kCb,{flexDir:"column","data-testid":"custom-fields-list",children:(0,c.jsx)(u.kCb,{flexDir:"column",gap:"24px",children:a?(0,c.jsx)(u.M5Y,{children:(0,c.jsx)(u.$jN,{})}):o.length>0&&(0,c.jsx)(u.kCb,{flexDirection:"column",gap:"12px",paddingBottom:"24px",children:o.map(e=>{let t=n.get(e);if(!t)return null;let s="customFieldValues.".concat(t.id);if(!t.allow_list_id&&t.field_type===r.AL.STRING)return(0,c.jsx)(m.gN,{name:s,children:e=>{let{field:s}=e;return(0,c.jsx)(h.j0,{...s,label:t.name,tooltip:t.description,variant:"stacked"})}},e);let l=i.get(t.allow_list_id);if(!l)return null;let{options:a}=l;return(0,c.jsx)(x.d,{name:s,allowClear:!0,mode:t.field_type!==r.AL.STRING?"multiple":void 0,label:t.name,options:a,tooltip:t.description,layout:"stacked",className:"w-full"},e)})})})})}):null};s(94799)},45938:function(e,t,s){s.d(t,{Gt:function(){return m},eB:function(){return f},oI:function(){return u}});var i=s(24246),n=s(34090),l=s(27378),a=s(16134),r=s(38602),o=s(58452);let d=(0,l.createRef)(),c=(0,l.createRef)(),u=()=>{let e=(0,a.T)(),t=(0,a.C)(r.DB),s=(0,l.useCallback)(()=>{c.current=void 0,d.current=void 0},[]),i=(0,l.useCallback)(()=>{e((0,r.Mr)()),c.current&&(c.current(!0),s())},[e,s]),n=(0,l.useCallback)(()=>{e((0,r.Mr)()),c.current&&(c.current(!1),s())},[e,s]);return{attemptAction:(0,l.useCallback)(()=>t?(e((0,r.h7)()),d.current||(d.current=new Promise(e=>{c.current=e})),d.current):Promise.resolve(!0),[t,e]),onConfirm:i,onClose:n}},m=e=>{let{id:t,name:s}=e,{dirty:i}=(0,n.u6)(),o=(0,a.T)();return(0,l.useEffect)(()=>(o((0,r.Zu)({id:t,name:s})),()=>{o((0,r.dz)({id:t}))}),[o,t,s]),(0,l.useEffect)(()=>{o((0,r.$p)({id:t,isDirty:i}))},[i,o,t]),null},f=()=>{let{onConfirm:e,onClose:t}=u(),s=(0,a.C)(r.uv);return(0,i.jsx)(o.Z,{isOpen:s,onClose:t,onConfirm:e,isCentered:!0,title:"Unsaved Changes",message:"You have unsaved changes"})}},84720:function(e,t,s){s.d(t,{q:function(){return j}});var i=s(24246),n=s(96306),l=s(27378),a=s(34090),r=s(812),o=s(45938),d=s(14048),c=s(95492);let u=e=>{let{systems:t,dataFlows:s,onDataFlowSystemChange:l}=e,{setFieldValue:r}=(0,a.u6)(),o=s.map(e=>e.fides_key),d=e=>{let t=s.filter(t=>t.fides_key!==e.fides_key);r("dataFlowSystems",t),l(t)};return(0,i.jsxs)(n.iA_,{size:"sm","data-testid":"assign-systems-delete-table",children:[(0,i.jsx)(n.hrZ,{children:(0,i.jsxs)(n.Tr,{children:[(0,i.jsx)(n.Th,{children:"System"}),(0,i.jsx)(n.Th,{})]})}),(0,i.jsx)(n.p3B,{children:t.filter(e=>o.includes(e.fides_key)).map(e=>(0,i.jsxs)(n.Tr,{_hover:{bg:"gray.50"},"data-testid":"row-".concat(e.fides_key),children:[(0,i.jsx)(n.Td,{children:(0,i.jsx)(n.xvT,{fontSize:"xs",lineHeight:4,fontWeight:"medium",children:e.name})}),(0,i.jsx)(n.Td,{textAlign:"end",children:(0,i.jsx)(n.wpx,{"aria-label":"Unassign data flow from system",icon:(0,i.jsx)(c.l,{}),onClick:()=>d(e),"data-testid":"unassign-btn"})})]},e.fides_key))})]})};var m=s(26917),f=e=>{let{allSystems:t,dataFlowSystems:s,onChange:l,flowType:r}=e,{setFieldValue:o}=(0,a.u6)(),d=e=>{if(s.find(t=>t.fides_key===e.fides_key)){let t=s.filter(t=>t.fides_key!==e.fides_key);o("dataFlowSystems",t),l(t)}else{let t=[...s,{fides_key:e.fides_key,type:"system"}];o("dataFlowSystems",t),l(t)}};return(0,i.jsx)(n.xuv,{overflowY:"auto",maxHeight:"300px",children:(0,i.jsxs)(n.iA_,{size:"sm","data-testid":"assign-systems-table",maxHeight:"50vh",overflowY:"scroll",children:[(0,i.jsx)(n.hrZ,{position:"sticky",top:0,background:"white",zIndex:1,children:(0,i.jsxs)(n.Tr,{children:[(0,i.jsx)(n.Th,{children:"System"}),(0,i.jsxs)(n.Th,{textAlign:"right",children:["Set as ",r]})]})}),(0,i.jsx)(n.p3B,{children:t.map(e=>{let t=!!s.find(t=>t.fides_key===e.fides_key);return(0,i.jsxs)(n.Tr,{_hover:{bg:"gray.50"},"data-testid":"row-".concat(e.fides_key),children:[(0,i.jsx)(n.Td,{children:(0,i.jsx)(n.xvT,{fontSize:"xs",lineHeight:4,fontWeight:"medium",children:e.name})}),(0,i.jsx)(n.Td,{textAlign:"right",children:(0,i.jsx)(n.rAg,{checked:t,onChange:()=>d(e),"data-testid":"assign-switch"})})]},e.fides_key)})})]})})};let x=(e,t)=>{var s,i;return(null===(s=e.name)||void 0===s?void 0:s.toLocaleLowerCase().includes(t.toLocaleLowerCase()))||(null===(i=e.description)||void 0===i?void 0:i.toLocaleLowerCase().includes(t.toLocaleLowerCase()))};var h=e=>{let{currentSystem:t,systems:s,isOpen:r,onClose:o,dataFlowSystems:d,onDataFlowSystemChange:c,flowType:u}=e,{setFieldValue:h}=(0,a.u6)(),[y,p]=(0,l.useState)(""),[g,C]=(0,l.useState)(d),j=async()=>{c(g),o()},_=0===s.length,v=(0,l.useMemo)(()=>s?s.filter(e=>e.fides_key!==t.fides_key).filter(e=>x(e,y)):[],[s,t.fides_key,y]),k=(0,l.useMemo)(()=>{let e=new Set(g.map(e=>e.fides_key));return v.every(t=>e.has(t.fides_key))},[v,g]);return(0,i.jsxs)(n.u_l,{isOpen:r,onClose:o,size:"2xl",isCentered:!0,children:[(0,i.jsx)(n.ZAr,{}),(0,i.jsxs)(n.hzk,{p:8,"data-testid":"confirmation-modal",children:[(0,i.jsxs)(n.xBx,{fontWeight:"medium",display:"flex",justifyContent:"space-between",alignItems:"center",children:[(0,i.jsxs)(n.xvT,{fontSize:"2xl",lineHeight:8,fontWeight:"semibold",children:["Configure ",u.toLocaleLowerCase()," systems"]}),(0,i.jsxs)(n.j8w,{color:"success",children:["Assigned to ",g.length," systems"]})]}),(0,i.jsx)(n.fef,{"data-testid":"assign-systems-modal-body",children:_?(0,i.jsx)(n.xvT,{children:"No systems found"}):(0,i.jsxs)(n.Kqy,{spacing:4,children:[(0,i.jsxs)(n.kCb,{justifyContent:"space-between",children:[(0,i.jsx)(n.xvT,{fontSize:"sm",flexGrow:1,fontWeight:"medium",children:"Add or remove destination systems from your data map"}),(0,i.jsx)(n.xuv,{children:(0,i.jsxs)(n.NIc,{display:"flex",alignItems:"center",children:[(0,i.jsx)(n.lXp,{fontSize:"sm",htmlFor:"assign-all-systems",mb:"0",children:"Assign all systems"}),(0,i.jsx)(n.rAg,{size:"small",id:"assign-all-systems",checked:k,onChange:e=>{if(e&&s){let e=v.map(e=>({fides_key:e.fides_key,type:"system"}));h("dataFlowSystems",e),C(e)}else C([])},"data-testid":"assign-all-systems-toggle"})]})})]}),(0,i.jsx)(m.Z,{value:y,onChange:p,placeholder:"Search for systems","data-testid":"system-search",withIcon:!0}),(0,i.jsx)(f,{flowType:u,allSystems:v,dataFlowSystems:g,onChange:C})]})}),(0,i.jsxs)(n.mzw,{justifyContent:"flex-start",children:[(0,i.jsx)(n.wpx,{onClick:o,className:"mr-2","data-testid":"cancel-btn",children:"Cancel"}),!_&&(0,i.jsx)(n.wpx,{type:"primary",onClick:j,"data-testid":"confirm-btn",children:"Confirm"})]})]})]})},y=s(46628),p=s(1315);let g={dataFlowSystems:[]},C=e=>{let{system:t,isIngress:s,isSystemTab:c}=e,m=(0,n.pmc)(),f=s?"Source":"Destination",x="".concat(f,"s"),C=(0,n.qY0)(),[j]=(0,p.qQ)(),{data:_=[]}=(0,p.K3)(),v=(0,l.useMemo)(()=>{let e=s?t.ingress:t.egress;e||(e=[]);let i=_?_.map(e=>e.fides_key):[];return e.filter(e=>i.includes(e.fides_key))},[s,t,_]),[k,S]=(0,l.useState)(v);(0,l.useEffect)(()=>{S(v)},[v]);let T=async(e,i)=>{let{dataFlowSystems:n}=e,{resetForm:l}=i,a={...t,ingress:s?n:t.ingress,egress:s?t.egress:n},o=await j(a);(0,r.D4)(o)?m((0,y.Vo)("Failed to update data flows")):m((0,y.t5)("".concat(x," updated"))),l({values:{dataFlowSystems:n}})};return(0,i.jsxs)(n.Qdk,{children:[(0,i.jsx)(n.KFZ,{height:"68px",paddingLeft:c?6:2,"data-testid":"data-flow-button-".concat(f),children:(0,i.jsxs)(n.kCb,{alignItems:"center",justifyContent:"start",flex:1,textAlign:"left",children:[(0,i.jsx)(n.xvT,{fontSize:"sm",lineHeight:5,fontWeight:"semibold",mr:2,children:x}),(0,i.jsx)(n.Vp9,{ml:2,backgroundColor:"primary.400",borderRadius:"6px",color:"white",children:k.length}),(0,i.jsx)(n.LZC,{}),(0,i.jsx)(n.XEm,{})]})}),(0,i.jsx)(n.Hk3,{backgroundColor:"gray.50",padding:6,"data-testid":"data-flow-panel-".concat(f),children:(0,i.jsx)(n.Kqy,{borderRadius:"md",backgroundColor:"gray.50","aria-selected":"true",spacing:4,"data-testid":"selected",children:(0,i.jsx)(a.J9,{initialValues:g,onSubmit:T,children:e=>{let{isSubmitting:s,dirty:l,resetForm:r}=e;return(0,i.jsxs)(a.l0,{children:[(0,i.jsx)(o.Gt,{id:"".concat(t.fides_key,":").concat(f),name:"".concat(f," Data Flow")}),(0,i.jsx)(n.wpx,{onClick:C.onOpen,type:"primary",size:"small",icon:(0,i.jsx)(d.A5,{}),iconPosition:"end",className:"mb-4","data-testid":"assign-systems-btn",children:"Configure ".concat(x.toLocaleLowerCase())}),(0,i.jsx)(u,{systems:_,dataFlows:k,onDataFlowSystemChange:S}),(0,i.jsxs)("div",{className:"mt-6 flex gap-2",children:[(0,i.jsx)(n.wpx,{disabled:!l&&k===v,onClick:()=>{S(v),r({values:{dataFlowSystems:v}})},"data-testid":"cancel-btn",children:"Cancel"}),(0,i.jsx)(n.wpx,{type:"primary",htmlType:"submit",loading:s,disabled:!l&&k===v,"data-testid":"save-btn",children:"Save"})]}),C.isOpen?(0,i.jsx)(h,{currentSystem:t,systems:_,isOpen:C.isOpen,onClose:C.onClose,dataFlowSystems:k,onDataFlowSystemChange:S,flowType:f}):null]})}})})})]})},j=e=>{let{system:t,isSystemTab:s}=e;return(0,i.jsxs)(n.UQy,{allowToggle:!0,"data-testid":"data-flow-accordion",children:[(0,i.jsx)(C,{system:t,isIngress:!0,isSystemTab:s}),(0,i.jsx)(C,{system:t,isSystemTab:s})]})}},30234:function(e,t,s){var i=s(24246),n=s(96306);t.Z=e=>{let{heading:t,HeadingButton:s,children:l}=e;return(0,i.jsx)(n.Kqy,{spacing:4,children:(0,i.jsxs)(n.xuv,{maxWidth:"720px",border:"1px",borderColor:"gray.200",borderRadius:6,overflow:"visible",mt:6,children:[(0,i.jsxs)(n.xuv,{backgroundColor:"gray.50",px:6,py:4,display:"flex",flexDirection:"row",alignItems:"center",borderBottom:"1px",borderColor:"gray.200",borderTopRadius:6,children:[(0,i.jsx)(n.X6q,{as:"h3",size:"xs",children:t}),s?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(n.LZC,{}),(0,i.jsx)(s,{})]}):null]}),(0,i.jsx)(n.Kqy,{spacing:4,px:6,py:6,children:l})]})})}},52368:function(e,t,s){s.d(t,{f:function(){return o}});var i=s(16134),n=s(30002),l=s(28079),a=s(41966),r=s(57072);let o=e=>{let{includeDatasets:t,includeDisabled:s}=e,{isLoading:o}=(0,r.MO)(),{isLoading:d}=(0,n.te)(),{isLoading:c}=(0,l.fd)(),{isLoading:u}=(0,a.LH)({onlyUnlinkedDatasets:!1,minimal:!0},{skip:!t}),m=(0,i.C)(r.qb),f=(0,i.C)(r.Bd),x=(0,i.C)(n.ZL),h=(0,i.C)(n.H7),y=(0,i.C)(l.U3),p=(0,i.C)(l.jp),g=(0,i.C)(a.Q4);return{allDataCategories:s?m:f,allDataSubjects:s?x:h,allDataUses:s?y:p,allDatasets:t?g:void 0,isLoading:o||d||c||u}}},31883:function(e,t,s){s.d(t,{Bw:function(){return i.Bw},D4:function(){return i.D4}});var i=s(19043)}}]);
|
|
1
|
+
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9951],{95492:function(e,t,s){s.d(t,{l:function(){return n}});var i=s(24246);let n=(0,s(96306).IUT)({displayName:"TrashCanSolidIcon",viewBox:"0 0 12 15",path:(0,i.jsx)("path",{d:"M8.37857 1.18083C8.23393 0.892838 7.93661 0.710938 7.6125 0.710938H4.3875C4.06339 0.710938 3.76607 0.892838 3.62143 1.18083L3.42857 1.56094H0.857143C0.383036 1.56094 -1.19209e-07 1.94158 -1.19209e-07 2.41094C-1.19209e-07 2.8803 0.383036 3.26094 0.857143 3.26094H11.1429C11.6162 3.26094 12 2.8803 12 2.41094C12 1.94158 11.6162 1.56094 11.1429 1.56094H8.57143L8.37857 1.18083ZM11.167 4.11094H0.857143V12.6109C0.857143 13.5486 1.62589 14.3109 2.57143 14.3109H9.45268C10.3754 14.3109 11.167 13.5486 11.167 12.6109V4.11094ZM9.02411 6.23594V12.1859C9.02411 12.4197 8.80714 12.6109 8.59554 12.6109C8.33571 12.6109 8.16696 12.4197 8.16696 12.1859V6.23594C8.16696 6.00219 8.33571 5.81094 8.59554 5.81094C8.80714 5.81094 9.02411 6.00219 9.02411 6.23594ZM6.45268 6.23594V12.1859C6.45268 12.4197 6.23571 12.6109 6.02411 12.6109C5.76429 12.6109 5.57143 12.4197 5.57143 12.1859V6.23594C5.57143 6.00219 5.76429 5.81094 6.02411 5.81094C6.23571 5.81094 6.45268 6.00219 6.45268 6.23594ZM3.85714 6.23594V12.1859C3.85714 12.4197 3.66429 12.6109 3.42857 12.6109C3.19286 12.6109 3 12.4197 3 12.1859V6.23594C3 6.00219 3.19286 5.81094 3.42857 5.81094C3.66429 5.81094 3.85714 6.00219 3.85714 6.23594Z",fill:"currentColor"})})},94799:function(e,t,s){s.d(t,{k:function(){return l}});var i=s(76649);let n=e=>(0,i.Ln)({id:"string"},e),l=e=>(null!=e?e:[]).filter(n)},30320:function(e,t,s){s.d(t,{m:function(){return o}});var i=s(27378),n=s(25980),l=s(41841),a=s(32885),r=s(94799);let o=e=>{let{resourceFidesKey:t,resourceType:s}=e,{errorAlert:o}=(0,l.VY)(),{plus:d}=(0,n.hz)(),c=(0,i.useMemo)(()=>null!=t?t:"",[]),u=(0,a.YU)(!0,{skip:!d}),m=(0,a.VN)(s,{skip:!d}),{data:f,isLoading:x,error:h,isError:y}=(0,a.PV)(null!=t?t:"",{skip:""!==c&&!(d&&c)}),[p]=(0,a._D)(),g=u.isLoading||m.isLoading||x,C=(0,i.useMemo)(()=>new Map((0,r.k)(u.data).map(e=>{var t;return[e.id,{...e,options:(null!==(t=e.allowed_values)&&void 0!==t?t:[]).map(e=>({value:e,label:e}))}]})),[u.data]),j=(0,i.useMemo)(()=>{var e;return null===(e=m.data)||void 0===e?void 0:e.filter(e=>e.active)},[m.data]),_=(0,i.useMemo)(()=>new Map((0,r.k)(j).map(e=>[e.id,e])),[j]),v=(0,i.useMemo)(()=>y&&(null==h?void 0:h.status)===404?new Map:new Map((0,r.k)(f).map(e=>[e.custom_field_definition_id,e])),[f,y,h]),k=(0,i.useMemo)(()=>{let e=[..._.keys()];return e.sort(),e},[_]),S=(0,i.useMemo)(()=>{let e={};return j&&v&&j.forEach(t=>{let s=v.get(t.id||"");s&&(t.allow_list_id&&"string[]"===t.field_type?e[s.custom_field_definition_id]=s.value:e[s.custom_field_definition_id]=s.value.toString())}),e},[j,v]),T=(0,i.useCallback)(async e=>{if(!d)return;let i="fides_key"in e&&""!==e.fides_key?e.fides_key:t;if(!i)return;let{customFieldValues:n}=e;if(!n||0===Object.keys(n).length)return;let l=[],a=[];k.forEach(e=>{let t=v.get(e),s=n[e];void 0===s||""===s||Array.isArray(s)&&0===s.length?(null==t?void 0:t.id)&&a.push(t.id):l.push({custom_field_definition_id:e,resource_id:i,id:null==t?void 0:t.id,value:s})});try{await p({resource_type:s,resource_id:i,upsert:l,delete:a})}catch(e){o("One or more custom fields have failed to save, please try again."),console.error(e)}},[d,v,o,t,k,p,s]);return{customFieldValues:S,definitionIdToCustomField:v,idToAllowListWithOptions:C,idToCustomFieldDefinition:_,isEnabled:d,isLoading:g,sortedCustomFieldDefinitionIds:k,upsertCustomFields:T}}},95346:function(e,t,s){s.d(t,{uc:function(){return p},Hn:function(){return o},Uv:function(){return a},C7:function(){return d},mZ:function(){return y.m}});var i,n,l,a,r=s(21910);(i=l||(l={}))[i.CREATE_CUSTOM_FIELDS=0]="CREATE_CUSTOM_FIELDS",i[i.CREATE_CUSTOM_LISTS=1]="CREATE_CUSTOM_LISTS",i[i.CHOOSE_FROM_LIBRARY=2]="CHOOSE_FROM_LIBRARY",r.AL.STRING,r.AL.STRING,r.AL.STRING_,(n=a||(a={})).SINGLE_SELECT="singleSelect",n.MULTIPLE_SELECT="multipleSelect",n.LOCATION_SELECT="locationSelect",n.OPEN_TEXT="openText";let o=[{label:"Single select",value:"singleSelect"},{label:"Multiple select",value:"multipleSelect"},{label:"Location select",value:"locationSelect"},{label:"Open Text",value:"openText"}],d=[{label:"taxonomy:".concat(r.P6.DATA_CATEGORY),value:r.P6.DATA_CATEGORY},{label:"taxonomy:".concat(r.P6.DATA_SUBJECT),value:r.P6.DATA_SUBJECT},{label:"taxonomy:".concat(r.P6.DATA_USE),value:r.P6.DATA_USE},{label:"".concat(r.P6.SYSTEM,":information"),value:r.P6.SYSTEM},{label:"system:data use",value:r.P6.PRIVACY_DECLARATION}];var c=s(24246),u=s(96306),m=s(34090),f=s(30234),x=s(97181),h=s(40324),y=s(30320);let p=e=>{let{resourceFidesKey:t,resourceType:s}=e,{idToAllowListWithOptions:i,idToCustomFieldDefinition:n,isEnabled:l,isLoading:a,sortedCustomFieldDefinitionIds:o}=(0,y.m)({resourceFidesKey:t,resourceType:s});return l&&0!==o.length?(0,c.jsx)(f.Z,{heading:"Custom fields",children:(0,c.jsx)(u.kCb,{flexDir:"column","data-testid":"custom-fields-list",children:(0,c.jsx)(u.kCb,{flexDir:"column",gap:"24px",children:a?(0,c.jsx)(u.M5Y,{children:(0,c.jsx)(u.$jN,{})}):o.length>0&&(0,c.jsx)(u.kCb,{flexDirection:"column",gap:"12px",paddingBottom:"24px",children:o.map(e=>{let t=n.get(e);if(!t)return null;let s="customFieldValues.".concat(t.id);if(!t.allow_list_id&&t.field_type===r.AL.STRING)return(0,c.jsx)(m.gN,{name:s,children:e=>{let{field:s}=e;return(0,c.jsx)(h.j0,{...s,label:t.name,tooltip:t.description,variant:"stacked"})}},e);let l=i.get(t.allow_list_id);if(!l)return null;let{options:a}=l;return(0,c.jsx)(x.d,{name:s,allowClear:!0,mode:t.field_type!==r.AL.STRING?"multiple":void 0,label:t.name,options:a,tooltip:t.description,layout:"stacked",className:"w-full"},e)})})})})}):null};s(94799)},45938:function(e,t,s){s.d(t,{Gt:function(){return m},eB:function(){return f},oI:function(){return u}});var i=s(24246),n=s(34090),l=s(27378),a=s(16134),r=s(38602),o=s(58452);let d=(0,l.createRef)(),c=(0,l.createRef)(),u=()=>{let e=(0,a.T)(),t=(0,a.C)(r.DB),s=(0,l.useCallback)(()=>{c.current=void 0,d.current=void 0},[]),i=(0,l.useCallback)(()=>{e((0,r.Mr)()),c.current&&(c.current(!0),s())},[e,s]),n=(0,l.useCallback)(()=>{e((0,r.Mr)()),c.current&&(c.current(!1),s())},[e,s]);return{attemptAction:(0,l.useCallback)(()=>t?(e((0,r.h7)()),d.current||(d.current=new Promise(e=>{c.current=e})),d.current):Promise.resolve(!0),[t,e]),onConfirm:i,onClose:n}},m=e=>{let{id:t,name:s}=e,{dirty:i}=(0,n.u6)(),o=(0,a.T)();return(0,l.useEffect)(()=>(o((0,r.Zu)({id:t,name:s})),()=>{o((0,r.dz)({id:t}))}),[o,t,s]),(0,l.useEffect)(()=>{o((0,r.$p)({id:t,isDirty:i}))},[i,o,t]),null},f=()=>{let{onConfirm:e,onClose:t}=u(),s=(0,a.C)(r.uv);return(0,i.jsx)(o.Z,{isOpen:s,onClose:t,onConfirm:e,isCentered:!0,title:"Unsaved Changes",message:"You have unsaved changes"})}},84720:function(e,t,s){s.d(t,{q:function(){return j}});var i=s(24246),n=s(96306),l=s(27378),a=s(34090),r=s(812),o=s(45938),d=s(14048),c=s(95492);let u=e=>{let{systems:t,dataFlows:s,onDataFlowSystemChange:l}=e,{setFieldValue:r}=(0,a.u6)(),o=s.map(e=>e.fides_key),d=e=>{let t=s.filter(t=>t.fides_key!==e.fides_key);r("dataFlowSystems",t),l(t)};return(0,i.jsxs)(n.iA_,{size:"sm","data-testid":"assign-systems-delete-table",children:[(0,i.jsx)(n.hrZ,{children:(0,i.jsxs)(n.Tr,{children:[(0,i.jsx)(n.Th,{children:"System"}),(0,i.jsx)(n.Th,{})]})}),(0,i.jsx)(n.p3B,{children:t.filter(e=>o.includes(e.fides_key)).map(e=>(0,i.jsxs)(n.Tr,{_hover:{bg:"gray.50"},"data-testid":"row-".concat(e.fides_key),children:[(0,i.jsx)(n.Td,{children:(0,i.jsx)(n.xvT,{fontSize:"xs",lineHeight:4,fontWeight:"medium",children:e.name})}),(0,i.jsx)(n.Td,{textAlign:"end",children:(0,i.jsx)(n.wpx,{"aria-label":"Unassign data flow from system",icon:(0,i.jsx)(c.l,{}),onClick:()=>d(e),"data-testid":"unassign-btn"})})]},e.fides_key))})]})};var m=s(26917),f=e=>{let{allSystems:t,dataFlowSystems:s,onChange:l,flowType:r}=e,{setFieldValue:o}=(0,a.u6)(),d=e=>{if(s.find(t=>t.fides_key===e.fides_key)){let t=s.filter(t=>t.fides_key!==e.fides_key);o("dataFlowSystems",t),l(t)}else{let t=[...s,{fides_key:e.fides_key,type:"system"}];o("dataFlowSystems",t),l(t)}};return(0,i.jsx)(n.xuv,{overflowY:"auto",maxHeight:"300px",children:(0,i.jsxs)(n.iA_,{size:"sm","data-testid":"assign-systems-table",maxHeight:"50vh",overflowY:"scroll",children:[(0,i.jsx)(n.hrZ,{position:"sticky",top:0,background:"white",zIndex:1,children:(0,i.jsxs)(n.Tr,{children:[(0,i.jsx)(n.Th,{children:"System"}),(0,i.jsxs)(n.Th,{textAlign:"right",children:["Set as ",r]})]})}),(0,i.jsx)(n.p3B,{children:t.map(e=>{let t=!!s.find(t=>t.fides_key===e.fides_key);return(0,i.jsxs)(n.Tr,{_hover:{bg:"gray.50"},"data-testid":"row-".concat(e.fides_key),children:[(0,i.jsx)(n.Td,{children:(0,i.jsx)(n.xvT,{fontSize:"xs",lineHeight:4,fontWeight:"medium",children:e.name})}),(0,i.jsx)(n.Td,{textAlign:"right",children:(0,i.jsx)(n.rAg,{checked:t,onChange:()=>d(e),"data-testid":"assign-switch"})})]},e.fides_key)})})]})})};let x=(e,t)=>{var s,i;return(null===(s=e.name)||void 0===s?void 0:s.toLocaleLowerCase().includes(t.toLocaleLowerCase()))||(null===(i=e.description)||void 0===i?void 0:i.toLocaleLowerCase().includes(t.toLocaleLowerCase()))};var h=e=>{let{currentSystem:t,systems:s,isOpen:r,onClose:o,dataFlowSystems:d,onDataFlowSystemChange:c,flowType:u}=e,{setFieldValue:h}=(0,a.u6)(),[y,p]=(0,l.useState)(""),[g,C]=(0,l.useState)(d),j=async()=>{c(g),o()},_=0===s.length,v=(0,l.useMemo)(()=>s?s.filter(e=>e.fides_key!==t.fides_key).filter(e=>x(e,y)):[],[s,t.fides_key,y]),k=(0,l.useMemo)(()=>{let e=new Set(g.map(e=>e.fides_key));return v.every(t=>e.has(t.fides_key))},[v,g]);return(0,i.jsxs)(n.u_l,{isOpen:r,onClose:o,size:"2xl",isCentered:!0,children:[(0,i.jsx)(n.ZAr,{}),(0,i.jsxs)(n.hzk,{p:8,"data-testid":"confirmation-modal",children:[(0,i.jsxs)(n.xBx,{fontWeight:"medium",display:"flex",justifyContent:"space-between",alignItems:"center",children:[(0,i.jsxs)(n.xvT,{fontSize:"2xl",lineHeight:8,fontWeight:"semibold",children:["Configure ",u.toLocaleLowerCase()," systems"]}),(0,i.jsxs)(n.j8w,{color:"success",children:["Assigned to ",g.length," systems"]})]}),(0,i.jsx)(n.fef,{"data-testid":"assign-systems-modal-body",children:_?(0,i.jsx)(n.xvT,{children:"No systems found"}):(0,i.jsxs)(n.Kqy,{spacing:4,children:[(0,i.jsxs)(n.kCb,{justifyContent:"space-between",children:[(0,i.jsx)(n.xvT,{fontSize:"sm",flexGrow:1,fontWeight:"medium",children:"Add or remove destination systems from your data map"}),(0,i.jsx)(n.xuv,{children:(0,i.jsxs)(n.NIc,{display:"flex",alignItems:"center",children:[(0,i.jsx)(n.lXp,{fontSize:"sm",htmlFor:"assign-all-systems",mb:"0",children:"Assign all systems"}),(0,i.jsx)(n.rAg,{size:"small",id:"assign-all-systems",checked:k,onChange:e=>{if(e&&s){let e=v.map(e=>({fides_key:e.fides_key,type:"system"}));h("dataFlowSystems",e),C(e)}else C([])},"data-testid":"assign-all-systems-toggle"})]})})]}),(0,i.jsx)(m.Z,{value:y,onChange:p,placeholder:"Search for systems","data-testid":"system-search",withIcon:!0}),(0,i.jsx)(f,{flowType:u,allSystems:v,dataFlowSystems:g,onChange:C})]})}),(0,i.jsxs)(n.mzw,{justifyContent:"flex-start",children:[(0,i.jsx)(n.wpx,{onClick:o,className:"mr-2","data-testid":"cancel-btn",children:"Cancel"}),!_&&(0,i.jsx)(n.wpx,{type:"primary",onClick:j,"data-testid":"confirm-btn",children:"Confirm"})]})]})]})},y=s(46628),p=s(1315);let g={dataFlowSystems:[]},C=e=>{let{system:t,isIngress:s,isSystemTab:c}=e,m=(0,n.pmc)(),f=s?"Source":"Destination",x="".concat(f,"s"),C=(0,n.qY0)(),[j]=(0,p.qQ)(),{data:_=[]}=(0,p.K3)(),v=(0,l.useMemo)(()=>{let e=s?t.ingress:t.egress;e||(e=[]);let i=_?_.map(e=>e.fides_key):[];return e.filter(e=>i.includes(e.fides_key))},[s,t,_]),[k,S]=(0,l.useState)(v);(0,l.useEffect)(()=>{S(v)},[v]);let T=async(e,i)=>{let{dataFlowSystems:n}=e,{resetForm:l}=i,a={...t,ingress:s?n:t.ingress,egress:s?t.egress:n},o=await j(a);(0,r.D4)(o)?m((0,y.Vo)("Failed to update data flows")):m((0,y.t5)("".concat(x," updated"))),l({values:{dataFlowSystems:n}})};return(0,i.jsxs)(n.Qdk,{children:[(0,i.jsx)(n.KFZ,{height:"68px",paddingLeft:c?6:2,"data-testid":"data-flow-button-".concat(f),children:(0,i.jsxs)(n.kCb,{alignItems:"center",justifyContent:"start",flex:1,textAlign:"left",children:[(0,i.jsx)(n.xvT,{fontSize:"sm",lineHeight:5,fontWeight:"semibold",mr:2,children:x}),(0,i.jsx)(n.Vp9,{ml:2,backgroundColor:"primary.400",borderRadius:"6px",color:"white",children:k.length}),(0,i.jsx)(n.LZC,{}),(0,i.jsx)(n.XEm,{})]})}),(0,i.jsx)(n.Hk3,{backgroundColor:"gray.50",padding:6,"data-testid":"data-flow-panel-".concat(f),children:(0,i.jsx)(n.Kqy,{borderRadius:"md",backgroundColor:"gray.50","aria-selected":"true",spacing:4,"data-testid":"selected",children:(0,i.jsx)(a.J9,{initialValues:g,onSubmit:T,children:e=>{let{isSubmitting:s,dirty:l,resetForm:r}=e;return(0,i.jsxs)(a.l0,{children:[(0,i.jsx)(o.Gt,{id:"".concat(t.fides_key,":").concat(f),name:"".concat(f," Data Flow")}),(0,i.jsx)(n.wpx,{onClick:C.onOpen,type:"primary",size:"small",icon:(0,i.jsx)(d.A5,{}),iconPosition:"end",className:"mb-4","data-testid":"assign-systems-btn",children:"Configure ".concat(x.toLocaleLowerCase())}),(0,i.jsx)(u,{systems:_,dataFlows:k,onDataFlowSystemChange:S}),(0,i.jsxs)("div",{className:"mt-6 flex gap-2",children:[(0,i.jsx)(n.wpx,{disabled:!l&&k===v,onClick:()=>{S(v),r({values:{dataFlowSystems:v}})},"data-testid":"cancel-btn",children:"Cancel"}),(0,i.jsx)(n.wpx,{type:"primary",htmlType:"submit",loading:s,disabled:!l&&k===v,"data-testid":"save-btn",children:"Save"})]}),C.isOpen?(0,i.jsx)(h,{currentSystem:t,systems:_,isOpen:C.isOpen,onClose:C.onClose,dataFlowSystems:k,onDataFlowSystemChange:S,flowType:f}):null]})}})})})]})},j=e=>{let{system:t,isSystemTab:s}=e;return(0,i.jsxs)(n.UQy,{allowToggle:!0,"data-testid":"data-flow-accordion",children:[(0,i.jsx)(C,{system:t,isIngress:!0,isSystemTab:s}),(0,i.jsx)(C,{system:t,isSystemTab:s})]})}},30234:function(e,t,s){var i=s(24246),n=s(96306);t.Z=e=>{let{heading:t,HeadingButton:s,children:l}=e;return(0,i.jsx)(n.Kqy,{spacing:4,children:(0,i.jsxs)(n.xuv,{maxWidth:"720px",border:"1px",borderColor:"gray.200",borderRadius:6,overflow:"visible",mt:6,children:[(0,i.jsxs)(n.xuv,{backgroundColor:"gray.50",px:6,py:4,display:"flex",flexDirection:"row",alignItems:"center",borderBottom:"1px",borderColor:"gray.200",borderTopRadius:6,children:[(0,i.jsx)(n.X6q,{as:"h3",size:"xs",children:t}),s?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(n.LZC,{}),(0,i.jsx)(s,{})]}):null]}),(0,i.jsx)(n.Kqy,{spacing:4,px:6,py:6,children:l})]})})}},52368:function(e,t,s){s.d(t,{f:function(){return o}});var i=s(16134),n=s(30002),l=s(28079),a=s(41966),r=s(57072);let o=e=>{let{includeDatasets:t,includeDisabled:s}=e,{isLoading:o}=(0,r.MO)(),{isLoading:d}=(0,n.te)(),{isLoading:c}=(0,l.fd)(),{isLoading:u}=(0,a.LH)({onlyUnlinkedDatasets:!1,minimal:!0},{skip:!t}),m=(0,i.C)(r.qb),f=(0,i.C)(r.Bd),x=(0,i.C)(n.ZL),h=(0,i.C)(n.H7),y=(0,i.C)(l.U3),p=(0,i.C)(l.jp),g=(0,i.C)(a.Q4);return{allDataCategories:s?m:f,allDataSubjects:s?x:h,allDataUses:s?y:p,allDatasets:t?g:void 0,isLoading:o||d||c||u}}},31883:function(e,t,s){s.d(t,{Bw:function(){return i.Bw},D4:function(){return i.D4}});var i=s(19043)}}]);
|