ethyca-fides 2.69.3b0__py2.py3-none-any.whl → 2.69.3b2__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.3b0.dist-info → ethyca_fides-2.69.3b2.dist-info}/METADATA +1 -1
- {ethyca_fides-2.69.3b0.dist-info → ethyca_fides-2.69.3b2.dist-info}/RECORD +267 -239
- fides/_version.py +3 -3
- fides/api/alembic/migrations/versions/30369bb8ae01_add_webmonitorgroupjob_model.py +67 -0
- fides/api/alembic/migrations/versions/5fa78b1f324d_add_event_audit_table.py +82 -0
- fides/api/alembic/migrations/versions/67d0e389b003_update_consentstatus_enum.py +47 -0
- fides/api/alembic/migrations/versions/b9bfa12c167b_add_not_applicable_to_asset_consentstatus.py +46 -0
- fides/api/alembic/migrations/versions/f36ce1bde293_add_system_groups.py +132 -0
- fides/api/alembic/migrations/versions/fd7571bef683_adds_new_fields_to_messagingconfig_for_.py +31 -0
- fides/api/api/v1/endpoints/messaging_endpoints.py +164 -34
- fides/api/api/v1/endpoints/system.py +140 -55
- fides/api/db/base.py +3 -0
- fides/api/db/seed.py +34 -0
- fides/api/main.py +2 -0
- fides/api/models/asset.py +3 -0
- fides/api/models/detection_discovery/web_monitor.py +61 -0
- fides/api/models/event_audit.py +68 -0
- fides/api/models/messaging.py +30 -10
- fides/api/models/sql_models.py +8 -0
- fides/api/models/system_group.py +85 -0
- fides/api/models/taxonomy.py +16 -4
- fides/api/schemas/application_config.py +4 -1
- fides/api/schemas/messaging/messaging.py +33 -66
- fides/api/schemas/messaging/messaging_secrets_docs_only.py +1 -1
- fides/api/schemas/messaging/shared_schemas.py +102 -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 +17 -2
- fides/api/service/messaging/message_dispatch_service.py +16 -15
- fides/api/service/messaging/messaging_crud_service.py +5 -9
- fides/api/service/privacy_request/request_runner_service.py +18 -0
- fides/api/service/privacy_request/request_service.py +29 -20
- fides/api/service/strategy.py +6 -3
- fides/api/task/graph_task.py +1 -2
- fides/api/tasks/__init__.py +1 -0
- fides/api/util/filter_utils.py +0 -3
- fides/api/worker/__init__.py +2 -0
- fides/common/api/v1/urn_registry.py +2 -1
- fides/service/event_audit_service.py +115 -0
- fides/service/messaging/aws_ses_service.py +2 -4
- fides/service/system/__init__.py +0 -0
- fides/service/system/system_service.py +138 -0
- fides/service/taxonomy/taxonomy_service.py +49 -3
- fides/ui-build/static/admin/404.html +1 -1
- fides/ui-build/static/admin/_next/static/86A8z6OnbTuDYww0DJkX0/_buildManifest.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/1115-d5a834cdaa717edc.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/155-b5e4370b158e5ee3.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/1817-dc2bba3ca736d39e.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/1841-2052c3239f2a0a1a.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/1896-49010da5c2705fc5.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/2040-3f9c66c56a05b336.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/2751-58285ccf50a0ba4b.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/3377-c5e0cc3de1a5ffd1.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/3696-fff4f944d7d5ff20.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/{3855-ef5194cdb228beb6.js → 3855-8377b3fcbb3d93b0.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/3872-4786ccbe7c6f65b0.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/409-e1deab19fc7e6d99.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/4230-c55d5531697a715c.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/4608-2fbc3389681f6924.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/4786-8d78ec773d171562.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/5185-a219b390ef17ff4b.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/5309-e994c5195f99b1eb.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/5783-c62c79e7be21be73.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/6084-29cbe703bffdccfe.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/6416-79eee298a5b3f80f.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/6780-eeb7775eb21d7a12.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/{6853-b17673391117c976.js → 6853-91a8641cd2784b54.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/6882-55dbb142f7c40f53.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/6954-6dfafd38b02d5852.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/7476-3da7a490debad8e2.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/7630-22f9c4b25d6aed29.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/7725-b2fa93d747d3d85d.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/7929-4314e317b1717257.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/796-8e4da90ae82dfebb.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/8002-78d78545309b2c1c.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/8373-bd50fa53cbcab2aa.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/9037-453224ba3ee65b13.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/9046-0f92802b0e3382a9.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/9226-49dbcdb135bf9793.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/9826-f316eb1d61cb90b6.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/{9951-a88367a129b724ba.js → 9951-c389c51ca6353035.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/{_app-fcdad91f6f66292b.js → _app-c780470042750062.js} +10 -10
- fides/ui-build/static/admin/_next/static/chunks/pages/add-systems/{manual-ace203dfacacbdc4.js → manual-fb9434d926ebf0b3.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/add-systems-92034daafd2187a0.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/consent/configure-87919c1192e68b1a.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/consent/{privacy-experience-9dda4de5ec580279.js → privacy-experience-ae8a64fffe3f8c66.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/consent/privacy-notices-d7d9ff9ed28fa790.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/consent/{properties-226efa1dcd41437f.js → properties-c985ea8c1a0e0550.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/consent/{reporting-28b192e2c074b0f3.js → reporting-ddf6ba92355f81de.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/consent-35c0ae9d5b5a940c.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/data-catalog/[systemId]/projects/[projectUrn]/{[resourceUrn]-2c29ff7a01198f30.js → [resourceUrn]-6a196c704f1c6dd7.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/data-catalog/[systemId]/projects-06ba907e7d91a724.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/data-catalog/[systemId]/resources/{[resourceUrn]-8eb581024bc0172f.js → [resourceUrn]-9cee4e222ebb2b60.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/data-catalog-f99af5669b9ab44c.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/action-center/[monitorId]/[systemId]-db7f1a269d3e7fc2.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/action-center/[monitorId]-de957913f9b47daa.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/action-center-5868591ff1e5f881.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/activity-715064e1c9788e1a.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/detection/{[resourceUrn]-8f736b078e9842da.js → [resourceUrn]-9ae81f5c245b8a01.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/{detection-eb814e3c22807871.js → detection-6537c93c69b597c7.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/discovery/{[resourceUrn]-6875b7783fcfda2f.js → [resourceUrn]-5db26067d921a94a.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/{discovery-172dbd7740e212ca.js → discovery-9f6a62614d7eb113.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/datamap-aed0e6dafc143b97.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/dataset/[datasetId]/[collectionName]/[...subfieldNames]-72b9878ea9b91529.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/dataset/[datasetId]/[collectionName]-f36a46381a6c25d4.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/dataset/[datasetId]-b653fd60e7db989b.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/dataset/new-5bb96c8684a38bbf.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/dataset-639046f6c76bc8bd.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/datastore-connection/{[id]-927b7e476c4b47d0.js → [id]-6bf117315d909ad1.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/datastore-connection/{new-cbe100d50df34285.js → new-1e2fa11f22dbc449.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/datastore-connection-c55e3e0e19030f3f.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/index-d66ea87b457af21e.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/integrations/[id]-0159fbb2e0440709.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/{integrations-95402b5001c07ef2.js → integrations-267d2742fffaebe5.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/privacy-requests/[id]-670b05b03ba11e0a.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/privacy-requests/configure/storage-482a7256925a6e06.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/privacy-requests/configure-331147598052f25c.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/privacy-requests-28083bfb2dec7b9f.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/properties/{[id]-e784c05d056b2371.js → [id]-e02dc4b4b385c86f.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/properties/{add-property-0a7a2db148a7561a.js → add-property-74c2a0ff4c992633.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/{properties-da734840e4f9d04b.js → properties-7459d56e548925b2.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/reporting/{datamap-6903f42a0412bfa6.js → datamap-aed018025b09c045.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/settings/about/alpha-68eaac2d79133679.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/settings/about-6c4904c157477285.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/settings/consent/[configuration_id]/{[purpose_id]-9495e2eb506606c7.js → [purpose_id]-7f2c50044806c094.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/settings/consent-e8cab942d09aa358.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/settings/custom-fields-128f952a49a0e8dc.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/settings/domain-records-cca3d1a26e1269bb.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/settings/domains-07e1b9937a169e32.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/settings/email-templates-3bc799dac8423f50.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/settings/{locations-2e635dcd11b78224.js → locations-9f36b6c213ae524c.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/settings/messaging-providers/[key]-f8887b2b29aed1b9.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/settings/messaging-providers/new-5473558807e94462.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/settings/messaging-providers-1065fbefd449719c.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/settings/organization-3e23d92d789fff99.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/settings/privacy-requests-907bfbb71d84646f.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/systems/configure/[id]/test-datasets-aa1ada4d4ac09759.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/systems/configure/{[id]-6e15332935f6b538.js → [id]-02b0dde03a1ad159.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/systems-4a6ef2509e8cedfc.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/taxonomy-16b122b83e57bb8c.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/user-management/{new-92f52c43f522a350.js → new-6304dad2c5fab694.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/user-management/profile/{[id]-64452dfae2c5e614.js → [id]-0a8ec3aa2ed59a33.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/{user-management-9cec020f89544426.js → user-management-4036b023366b7eec.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/lib/fides-ext-gpp.js +1 -1
- fides/ui-build/static/admin/lib/fides-headless.js +1 -1
- fides/ui-build/static/admin/lib/fides-preview.js +1 -1
- fides/ui-build/static/admin/lib/fides-tcf.js +2 -2
- fides/ui-build/static/admin/lib/fides.js +2 -2
- 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/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/messaging-providers/[key].html +1 -0
- fides/ui-build/static/admin/settings/messaging-providers/new.html +1 -0
- fides/ui-build/static/admin/settings/messaging-providers.html +1 -0
- 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/FFd0ddRZhjxA7iBCrjLzA/_buildManifest.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/1099-79646e64f26d62fa.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/1345-5e1c5b66e25c566e.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/1817-0ca16d288fad916d.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/3620-602eb74dc896d556.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/3729-c17ac8031a4c4fd1.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/3847-f08c58d074858f48.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/3872-f78dec02f0d959ae.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/4164-355644b916ae0094.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/4608-be8cba73f5d7c326.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/4786-61154adf88e448e1.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/4808-dd4157aa72648068.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/4831-fd99c0b3784de128.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/4844-46324c3d848b8b6a.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/5258-e880b606a2293803.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/5487-02d00bad7c6830e0.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/549-38ea1d91ee2addaa.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/6084-c153669d5567e242.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/6954-5296188c19d7d0ac.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/7476-45c5088baa8b66af.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/7630-7ed6c6117775dffe.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/787-a8c7eab617e2fceb.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/79-65674011d455af4d.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/796-9e1ca1a4030707c5.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/8002-24af20d679efc04e.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/9046-712156d461165f56.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/9826-dbae8dee941a7fac.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/add-systems-bd0d82078e67cac3.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/consent/configure-7207ab23bdb36ce8.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/consent/privacy-notices-94c13aad1499eea9.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/consent-3e8bdefe714254ec.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/data-catalog/[systemId]/projects-5f2d7b24804f861f.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/data-catalog-30108b00ac769fc3.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/action-center/[monitorId]/[systemId]-3b0bcb9e98fab95c.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/action-center/[monitorId]-9403d5b239e318d2.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/action-center-9a81d42a474e1e48.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/activity-b6ae7adb8ef0b525.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/datamap-c7390e046b2e2b7f.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/dataset/[datasetId]/[collectionName]/[...subfieldNames]-dfd71c1e9c458b89.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/dataset/[datasetId]/[collectionName]-7cdc42ec5493b83d.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/dataset/[datasetId]-e12b11ba15bc3fc1.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/dataset/new-e32fccc4ca520d2b.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/dataset-7c59a6abf6ba6207.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/datastore-connection-cce20440b177050b.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/index-6cd8708106331b8d.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/integrations/[id]-5d40db1ce8810e1d.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/privacy-requests/[id]-0f25a76dd18c5e20.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/privacy-requests/configure/messaging-ad6ad3e5bd72765d.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/privacy-requests/configure/storage-6032d82f0fc2893d.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/privacy-requests/configure-d83e5bd52a638234.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/privacy-requests-baf31c3e4b081046.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/settings/about/alpha-a82f3df840d5c1b5.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/settings/about-d06fb16487705b9d.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/settings/consent-93a978443bf299db.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/settings/custom-fields-9ecb803099082bf4.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/settings/domain-records-16fdd91a81074dd1.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/settings/domains-4cdd6001e7cb9aee.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/settings/email-templates-1914de830ce5cfc4.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/settings/organization-f547f1f33c12faf3.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/settings/privacy-requests-2ecc073f41628f62.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/systems/configure/[id]/test-datasets-20b1193ed76c56b0.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/systems-fbc8761ef4d55516.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/taxonomy-4d7827fc9c46b6b8.js +0 -1
- fides/ui-build/static/admin/_next/static/css/650df9c348000a26.css +0 -1
- fides/ui-build/static/admin/privacy-requests/configure/messaging.html +0 -1
- {ethyca_fides-2.69.3b0.dist-info → ethyca_fides-2.69.3b2.dist-info}/WHEEL +0 -0
- {ethyca_fides-2.69.3b0.dist-info → ethyca_fides-2.69.3b2.dist-info}/entry_points.txt +0 -0
- {ethyca_fides-2.69.3b0.dist-info → ethyca_fides-2.69.3b2.dist-info}/licenses/LICENSE +0 -0
- {ethyca_fides-2.69.3b0.dist-info → ethyca_fides-2.69.3b2.dist-info}/top_level.txt +0 -0
- /fides/ui-build/static/admin/_next/static/{FFd0ddRZhjxA7iBCrjLzA → 86A8z6OnbTuDYww0DJkX0}/_ssgManifest.js +0 -0
- /fides/ui-build/static/admin/_next/static/chunks/{2921-52328140bc420d0f.js → 2921-cdc7a13973f4a0ba.js} +0 -0
- /fides/ui-build/static/admin/_next/static/chunks/{3923-bb2417b8dcade7a4.js → 3923-db57401384d1de8f.js} +0 -0
- /fides/ui-build/static/admin/_next/static/chunks/{401-4af0a912e249d30f.js → 401-4e56e924f35317f2.js} +0 -0
- /fides/ui-build/static/admin/_next/static/chunks/pages/{404-471a6b18e712f050.js → 404-e4a1f93a7ce944f0.js} +0 -0
- /fides/ui-build/static/admin/_next/static/chunks/pages/add-systems/{multiple-920fb469e0dda1d2.js → multiple-a4f821c4902f2df8.js} +0 -0
- /fides/ui-build/static/admin/_next/static/chunks/pages/consent/configure/{add-vendors-406170eaae4329c6.js → add-vendors-96245b63aafc5168.js} +0 -0
- /fides/ui-build/static/admin/_next/static/chunks/pages/consent/privacy-experience/{[id]-f80cf2d3966816fd.js → [id]-4fea66e59bd59de8.js} +0 -0
- /fides/ui-build/static/admin/_next/static/chunks/pages/consent/privacy-notices/{[id]-b378576cba255609.js → [id]-c8038e05f35da8d1.js} +0 -0
- /fides/ui-build/static/admin/_next/static/chunks/pages/consent/privacy-notices/{new-2ca1de7b88094ab0.js → new-f3a40101a8f3fd00.js} +0 -0
- /fides/ui-build/static/admin/_next/static/chunks/pages/data-catalog/[systemId]/projects/{[projectUrn]-04cfe2cfba7b7cd8.js → [projectUrn]-965af6c1fd01334e.js} +0 -0
- /fides/ui-build/static/admin/_next/static/chunks/pages/data-catalog/[systemId]/{resources-de704de849960f01.js → resources-5afecf141308bfc5.js} +0 -0
- /fides/ui-build/static/admin/_next/static/chunks/pages/messaging/{[id]-3c6dc2f6e6bae960.js → [id]-4352e55f110556b4.js} +0 -0
- /fides/ui-build/static/admin/_next/static/chunks/pages/messaging/{add-template-4a6d4023a7791be8.js → add-template-c533120e94e049e3.js} +0 -0
- /fides/ui-build/static/admin/_next/static/chunks/pages/{messaging-76b204c9b98d656f.js → messaging-b14f5f38b2d711a8.js} +0 -0
- /fides/ui-build/static/admin/_next/static/chunks/pages/poc/{ant-components-bc0e2adf6e0d3ac7.js → ant-components-31d51e3b9227c8d5.js} +0 -0
- /fides/ui-build/static/admin/_next/static/chunks/pages/poc/form-experiments/{AntForm-86ffcc1ad3fa912e.js → AntForm-8794a0d2e7554a05.js} +0 -0
- /fides/ui-build/static/admin/_next/static/chunks/pages/poc/form-experiments/{FormikAntFormItem-ec04f595465bdf69.js → FormikAntFormItem-90b31073e478c99c.js} +0 -0
- /fides/ui-build/static/admin/_next/static/chunks/pages/poc/form-experiments/{FormikControlled-41d309754ff0c1de.js → FormikControlled-0a6859a0225b7e00.js} +0 -0
- /fides/ui-build/static/admin/_next/static/chunks/pages/poc/form-experiments/{FormikField-cab1f78cec7808f9.js → FormikField-eb0552917907fe21.js} +0 -0
- /fides/ui-build/static/admin/_next/static/chunks/pages/poc/{forms-eb6058221403b156.js → forms-b2a2a084d8cfe22d.js} +0 -0
- /fides/ui-build/static/admin/_next/static/chunks/pages/poc/{table-migration-48500551fd6a7602.js → table-migration-0c944cfa9c6acbff.js} +0 -0
- /fides/ui-build/static/admin/_next/static/chunks/pages/settings/{regulations-7c02e469d8c5bd74.js → regulations-f0f0ea35d0185ae3.js} +0 -0
- /fides/ui-build/static/admin/_next/static/chunks/{webpack-678e89d68dbcd94f.js → webpack-55e1c55932df2413.js} +0 -0
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2369],{1565:function(e,t,s){(window.__NEXT_P=window.__NEXT_P||[]).push(["/privacy-requests",function(){return s(15273)}])},59969:function(e,t,s){"use strict";var i=s(24246),l=s(96306);s(27378);var a=s(8557);t.Z=e=>{let{daysLeft:t,includeText:s,status:r}=e;if(!t||r===a.q.COMPLETE||r===a.q.CANCELED||r===a.q.DENIED||r===a.q.IDENTITY_UNVERIFIED)return(0,i.jsx)("span",{children:"-"});let n="";switch(!0){case t>=10:n="success";break;case t<10&&t>4:n="warning";break;case t<5:n="error"}return(0,i.jsx)(l.j8w,{color:n,children:s?"".concat(t," days left"):t})}},18225:function(e,t,s){"use strict";var i=s(24246),l=s(96306);t.Z=e=>{let{alignment:t="center",...s}=e;return(0,i.jsx)(l.kCb,{boxSize:"full",align:"center",justify:t,children:(0,i.jsx)(l.$jN,{color:"primary",...s})})}},35287:function(e,t,s){"use strict";var i=s(24246),l=s(96306),a=s(88038),r=s.n(a);s(27378),t.Z=e=>{let{children:t,title:s,mainProps:a}=e;return(0,i.jsxs)(l.kCb,{"data-testid":s,direction:"column",height:"calc(100vh - 48px)",width:"calc(100vw - 240px)",children:[(0,i.jsxs)(r(),{children:[(0,i.jsxs)("title",{children:["Fides Admin UI - ",s]}),(0,i.jsx)("meta",{name:"description",content:"Privacy Engineering Platform"}),(0,i.jsx)("link",{rel:"icon",href:"/favicon.ico"})]}),(0,i.jsx)(l.kCb,{px:10,py:6,as:"main",overflow:"auto",direction:"column",flex:1,minWidth:0,...a,children:t})]})}},87361:function(e,t,s){"use strict";var i=s(24246),l=s(96306);t.Z=e=>{let{title:t,text:s,onClose:a}=e;return(0,i.jsxs)(l.Ugi,{backgroundColor:"gray.50",border:"1px solid",borderRadius:"md",justifyContent:"space-between",py:4,pr:6,pl:3,"data-testid":"empty-state",gap:2,position:"relative",children:[a&&(0,i.jsx)(l.Two,{boxSize:5,position:"absolute",right:3,top:3,zIndex:1,cursor:"pointer",p:1,onClick:a}),(0,i.jsx)(l.iid,{alignSelf:"start",color:"minos",mt:.5,flexGrow:0}),(0,i.jsxs)(l.kCb,{direction:"column",gap:2,flexGrow:1,children:[(0,i.jsx)(l.X6q,{fontSize:"md",children:t}),(0,i.jsx)(l.xvT,{fontSize:"sm",color:"gray.600",lineHeight:"5",children:s})]})]})}},19904:function(e,t,s){"use strict";s.d(t,{Tg:function(){return r}});var i=s(24246),l=s(16134),a=s(31793);let r=e=>(0,l.C)(a.uu).filter(t=>e.includes(t)).length>0;t.ZP=e=>{let{scopes:t,children:s}=e;return r(t)?(0,i.jsx)(i.Fragment,{children:s}):null}},96718:function(e,t,s){"use strict";s.d(t,{z:function(){return a}});var i=s(24246),l=s(96306);let a=e=>{let{...t}=e;return(0,i.jsx)(l.WPr,{defaultActiveFirstOption:!1,maxTagCount:"responsive",allowClear:!0,styles:t.mode?void 0:{popup:{root:{width:"auto",minWidth:"200px"}}},className:"w-auto","data-testid":"filter-select",...t})}},97181:function(e,t,s){"use strict";s.d(t,{d:function(){return o}});var i=s(24246),l=s(96306),a=s(34090),r=s(27378),n=s(46238),d=s(40324);let o=e=>{let{name:t,label:s,labelProps:o,tooltip:c,isRequired:u,layout:p="inline",helperText:m,...x}=e,[h,y,{setValue:v}]=(0,a.U$)(t),j=!!(y.touched&&y.error),[g,f]=(0,r.useState)("");h.value||"tags"!==x.mode&&"multiple"!==x.mode||(h.value=[]),"tags"===x.mode&&"string"==typeof h.value&&(h.value=[h.value]);let _="tags"===x.mode?(e,t)=>e?e.value!==g||h.value.includes(g)?x.optionRender?x.optionRender(e,t):e.label:'Create "'.concat(g,'"'):void 0:x.optionRender||void 0,b=e=>{f(e),x.onSearch&&x.onSearch(e)},C=(e,t)=>{v(e),x.onChange&&x.onChange(e,t)};return"inline"===p?(0,i.jsx)(l.NIc,{isInvalid:j,isRequired:u,children:(0,i.jsxs)(l.rjZ,{templateColumns:s?"1fr 3fr":"1fr",children:[s?(0,i.jsx)(d.__,{htmlFor:x.id||t,...o,children:s}):null,(0,i.jsxs)(l.jqI,{align:"center",children:[(0,i.jsxs)(l.jqI,{vertical:!0,flex:1,className:"mr-2",children:[(0,i.jsx)(l.WPr,{...h,id:x.id||t,"data-testid":"controlled-select-".concat(h.name),...x,optionRender:_,onSearch:"tags"===x.mode?b:void 0,onChange:C,value:h.value||void 0,status:j?"error":void 0}),m&&(0,i.jsx)(l.Q6r,{children:m}),(0,i.jsx)(d.Bc,{isInvalid:j,message:y.error,fieldName:h.name})]}),(0,i.jsx)(n.b,{label:c,className:j?"mt-2 self-start":void 0})]})]})}):(0,i.jsx)(l.NIc,{isInvalid:j,isRequired:u,children:(0,i.jsxs)(l.gCW,{alignItems:"start",children:[(0,i.jsxs)(l.jqI,{align:"center",children:[s?(0,i.jsx)(d.__,{htmlFor:x.id||t,fontSize:"xs",my:0,mr:1,...o,children:s}):null,(0,i.jsx)(n.b,{label:c})]}),(0,i.jsx)(l.WPr,{...h,id:x.id||t,"data-testid":"controlled-select-".concat(h.name),...x,optionRender:_,onSearch:"tags"===x.mode?b:void 0,onChange:C,value:h.value||void 0,status:j?"error":void 0}),m&&(0,i.jsx)(l.Q6r,{style:{marginTop:0},children:m}),(0,i.jsx)(d.Bc,{isInvalid:j,message:y.error,fieldName:h.name})]})})}},57526:function(e,t,s){"use strict";var i=s(24246),l=s(96306),a=s(27378);t.Z=e=>{let{isOpen:t,onClose:s,onApproveRequest:r,isLoading:n,subjectRequest:d}=e,{identity:o,identity_verified_at:c,custom_privacy_request_fields:u}=d,p=(0,a.useCallback)(()=>{r().then(()=>{s()})},[r,s]);return(0,i.jsxs)(l.u_l,{isOpen:t,onClose:s,size:"lg",isCentered:!0,children:[(0,i.jsx)(l.ZAr,{}),(0,i.jsxs)(l.hzk,{children:[(0,i.jsx)(l.xBx,{children:"Privacy request approval"}),(0,i.jsxs)(l.fef,{paddingTop:0,paddingBottom:0,children:[(0,i.jsx)(l.xvT,{color:"gray.500",fontSize:"14px",marginBottom:4,children:"Are you sure you want to approve this privacy request?"}),(0,i.jsxs)(l.QI$,{children:[Object.entries(o).filter(e=>{let[,{value:t}]=e;return null!==t}).map(e=>{let[t,{value:s,label:a}]=e;return(0,i.jsx)(l.HCh,{children:(0,i.jsxs)(l.kCb,{alignItems:"flex-start",children:[(0,i.jsxs)(l.xvT,{mr:2,fontSize:"sm",color:"gray.900",fontWeight:"500",children:[a,":"]}),(0,i.jsx)(l.xvT,{color:"gray.600",fontWeight:"500",fontSize:"sm",mr:2,children:s}),"(",c?"Verified":"Unverified",")"]},t)},t)}),u&&Object.entries(u).filter(e=>{let[,t]=e;return t.value}).map(e=>{let[t,s]=e;return(0,i.jsx)(l.HCh,{children:(0,i.jsxs)(l.kCb,{alignItems:"flex-start",children:[(0,i.jsxs)(l.xvT,{mr:2,fontSize:"sm",color:"gray.900",fontWeight:"500",children:[s.label,":"]}),(0,i.jsxs)(l.xvT,{color:"gray.600",fontWeight:"500",fontSize:"sm",mr:2,children:[Array.isArray(s.value)?s.value.join(", "):s.value," "]}),"(Unverified)"]},t)},t)})]})]}),(0,i.jsx)(l.mzw,{children:(0,i.jsxs)(l.MIq,{columns:2,width:"100%",children:[(0,i.jsx)(l.wpx,{onClick:s,className:"mr-3","data-testid":"cancel-btn",children:"Cancel"}),(0,i.jsx)(l.wpx,{type:"primary","data-testid":"continue-btn",onClick:p,loading:n,children:"Confirm"})]})})]})]})}},66548:function(e,t,s){"use strict";var i=s(24246),l=s(40324),a=s(96306),r=s(34090),n=s(27378),d=s(55484);let o={denialReason:""};t.Z=e=>{let{isOpen:t,onClose:s,onDenyRequest:c}=e,u=(0,n.useCallback)((e,t)=>{let{setSubmitting:i}=t;c(e.denialReason).then(()=>{i(!1),s()})},[c,s]);return(0,i.jsxs)(a.u_l,{isOpen:t,onClose:s,isCentered:!0,returnFocusOnClose:!1,children:[(0,i.jsx)(a.ZAr,{}),(0,i.jsx)(a.hzk,{width:"100%",maxWidth:"456px","data-testid":"deny-privacy-request-modal",children:(0,i.jsx)(r.J9,{initialValues:o,validationSchema:d.Ry({denialReason:d.Z_().required().label("Reason for denial")}),onSubmit:u,children:e=>{let{isSubmitting:t,dirty:n,isValid:d}=e;return(0,i.jsxs)(r.l0,{children:[(0,i.jsx)(a.xBx,{children:"Privacy request denial"}),(0,i.jsx)(a.fef,{color:"gray.500",fontSize:"14px",children:"Please enter a reason for denying this privacy request. Please note: this can be seen by the user in their notification email."}),(0,i.jsx)(a.fef,{children:(0,i.jsx)(l.Ks,{name:"denialReason",textAreaProps:{focusBorderColor:"primary.600",resize:"none"}})}),(0,i.jsxs)(a.mzw,{className:"flex w-full gap-4",children:[(0,i.jsx)(a.wpx,{disabled:t,onClick:s,className:"grow",children:"Cancel"}),(0,i.jsx)(a.wpx,{htmlType:"submit",type:"primary",disabled:!n||!d,loading:t,className:"grow","data-testid":"deny-privacy-request-modal-btn",children:"Confirm"})]})]})}})})]})}},71784:function(e,t,s){"use strict";s.d(t,{DE:function(){return d},I3:function(){return l},kN:function(){return r},qX:function(){return n},rE:function(){return a}});var i=s(54682);let l=[...new Map([[i.q2.APPROVED,"Approved"],[i.q2.AWAITING_EMAIL_SEND,"Awaiting email send"],[i.q2.CANCELED,"Canceled"],[i.q2.COMPLETE,"Completed"],[i.q2.DENIED,"Denied"],[i.q2.ERROR,"Error"],[i.q2.IN_PROCESSING,"In progress"],[i.q2.PENDING,"New"],[i.q2.PAUSED,"Paused"],[i.q2.IDENTITY_UNVERIFIED,"Unverified"],[i.q2.REQUIRES_INPUT,"Requires input"],[i.q2.REQUIRES_MANUAL_FINALIZATION,"Requires finalization"]])].map(e=>{let[t,s]=e;return{label:s,value:t}}),a=new Map([[i.Us.ACCESS,"Access"],[i.Us.ERASURE,"Erasure"],[i.Us.CONSENT,"Consent"],[i.Us.UPDATE,"Update"]]),r=[...a].map(e=>{let[t,s]=e;return{label:s,value:t}}),n={mailgun:"mailgun",twilio_email:"twilio_email",twilio_text:"twilio_text"},d={local:"local",s3:"s3",gcs:"gcs"}},45489:function(e,t,s){"use strict";s.d(t,{Z:function(){return l}});var i=s(90867);let l=e=>{let{subjectRequest:t}=e,[s,l]=(0,i.RW)({fixedCacheKey:t.id}),[a,r]=(0,i.F1)({fixedCacheKey:t.id}),[n,d]=(0,i.rC)({fixedCacheKey:t.id}),[o,c]=(0,i.zB)({fixedCacheKey:t.id}),u=r.isLoading||l.isLoading||c.isLoading;return{approveRequest:s,approveRequestResult:l,denyRequest:a,denyRequestResult:r,handleApproveRequest:()=>s(t),handleDenyRequest:e=>a({id:t.id,reason:e}),handleDeleteRequest:()=>n(t),handleFinalizeRequest:()=>o({privacyRequestId:t.id}),softDeleteRequestResult:d,finalizeRequestResult:c,isLoading:u}}},72281:function(e,t,s){"use strict";s.d(t,{G:function(){return n},d:function(){return d}});var i=s(86677),l=s(27378),a=s(19904),r=s(54682);let n={REQUEST:"request",MANUAL_TASK:"manual-tasks"},d=()=>{let e=(0,i.useRouter)(),t=(0,a.Tg)([r.Sh.PRIVACY_REQUEST_READ]),s=(0,a.Tg)([r.Sh.MANUAL_FIELD_READ_OWN,r.Sh.MANUAL_FIELD_READ_ALL]),d=(0,l.useMemo)(()=>({request:t,manualTask:s}),[t,s]),[o,c]=(0,l.useState)(d.request?n.REQUEST:n.MANUAL_TASK),u=(0,l.useCallback)(()=>{let{tab:t}=e.query;return t&&"string"==typeof t&&Object.values(n).includes(t)?t:null},[e.query]),p=(0,l.useCallback)(t=>{e.replace({pathname:e.pathname,query:{tab:t}},void 0,{shallow:!0})},[e]);return(0,l.useEffect)(()=>{if(!e.isReady)return;let t=u();t&&(t===n.REQUEST||t===n.MANUAL_TASK&&d.manualTask)&&c(t)},[e.isReady,e.query,d,u,p]),{activeTab:o,handleTabChange:(0,l.useCallback)(e=>{Object.values(n).includes(e)&&(c(e),p(e))},[p]),availableTabs:d}}},15273:function(e,t,s){"use strict";s.r(t),s.d(t,{default:function(){return eA}});var i,l,a=s(24246),r=s(35287),n=s(96306),d=s(65218),o=s.n(d),c=s(27378),u=s(25980),p=s(19904),m=s(56141),x=s.n(m),h=s(86677),y=s(16134),v=s(91317),j=s(18225),g=s(77830),f=s(28407),_=s(16394),b=s(54682),C=s(32735),q=s(59969),S=s(71784),k=s(45116);let E=e=>{let{label:t,children:s}=e;return(0,a.jsxs)("div",{className:"flex items-center",children:[(0,a.jsx)("div",{className:"shrink-0 grow-0 basis-1/3 pr-2",children:(0,a.jsxs)(n.AntTypography.Text,{className:"text-gray-700",children:[t,":"]})}),(0,a.jsx)("div",{className:"min-w-0 shrink grow text-gray-600",children:s})]})},R=e=>{let{task:t}=e,s=t.request_type===b.k6.ACCESS?b.Us.ACCESS:b.Us.ERASURE,i=S.rE.get(s)||t.request_type;return(0,a.jsxs)("div",{className:"flex flex-col space-y-3","data-testid":"task-details-container",children:[(0,a.jsx)(E,{label:"Name",children:(0,a.jsx)(n.AntTypography.Text,{children:t.name})}),(0,a.jsx)(E,{label:"Description",children:(0,a.jsx)(n.AntTypography.Text,{children:t.description||"-"})}),(0,a.jsx)(E,{label:"Request Type",children:(0,a.jsx)(n.AntTypography.Text,{children:i})}),(0,a.jsx)(E,{label:"Assigned To",children:t.assigned_users&&t.assigned_users.length>0?(0,a.jsx)("div",{className:"flex flex-wrap gap-1","data-testid":"assigned-users-tags",children:t.assigned_users.map(e=>(0,a.jsx)(n.j8w,{"data-testid":"assigned-user-tag-".concat(e.id),children:"".concat(e.first_name||""," ").concat(e.last_name||"").trim()||e.email_address||"Unknown User"},e.id))}):(0,a.jsx)(n.AntTypography.Text,{children:"No one assigned"})}),t.privacy_request.subject_identities&&Object.keys(t.privacy_request.subject_identities).length>0?(0,a.jsx)(E,{label:"Subject identities",children:(0,a.jsx)("div",{className:"flex flex-wrap gap-1",children:Object.entries(t.privacy_request.subject_identities).map(e=>{let[t,s]=e;return(0,a.jsxs)(n.j8w,{children:[t,": ",String(s)]},t)})})}):null,t.privacy_request.custom_fields&&Object.keys(t.privacy_request.custom_fields).length>0?(0,a.jsx)(E,{label:"Custom fields",children:(0,a.jsx)("div",{className:"flex flex-wrap gap-1",children:Object.entries(t.privacy_request.custom_fields).filter(e=>{let[,t]=e;return t}).map(e=>{let[t,s]=e;return(0,a.jsxs)(n.j8w,{children:[t,": ",String(s)]},t)})})}):null]})},T=e=>{let{isOpen:t,onClose:s,task:i}=e,[l,{isLoading:r}]=(0,k.HP)(),[d,o]=(0,c.useState)(""),[u,p]=(0,c.useState)(!1),[m,x]=(0,c.useState)(""),[h,y]=(0,c.useState)([]),v=async()=>{try{await l({privacy_request_id:i.privacy_request.id,manual_field_id:i.manual_field_id,field_value:i.input_type===b.PF.TEXT?d:i.input_type===b.PF.CHECKBOX?u.toString():void 0,comment_text:m||void 0,attachments:h.length>0?h.map(e=>e.originFileObj).filter(Boolean):void 0}).unwrap(),o(""),p(!1),x(""),y([]),s()}catch(e){n.Pg3.error("Failed to complete task. Please try again.")}};return(0,a.jsxs)(n.u_l,{isOpen:t,onClose:s,size:"700px",isCentered:!0,children:[(0,a.jsx)(n.ZAr,{}),(0,a.jsxs)(n.hzk,{maxWidth:"700px","data-testid":"complete-task-modal",children:[(0,a.jsx)(n.xBx,{children:(0,a.jsx)(n.AntTypography.Title,{level:4,children:"Complete Task"})}),(0,a.jsx)(n.fef,{children:(0,a.jsxs)("div",{className:"flex flex-col space-y-6",children:[(0,a.jsx)("div",{children:(0,a.jsx)(R,{task:i})}),(0,a.jsx)(n.htM,{}),(0,a.jsx)("div",{children:(0,a.jsxs)("div",{className:"flex flex-col space-y-4",children:[(()=>{switch(i.input_type){case b.PF.TEXT:return(0,a.jsxs)("div",{className:"space-y-2",children:[(0,a.jsx)("div",{className:"text-sm font-medium text-gray-700",children:"Subject data"}),(0,a.jsx)(n.uFc.TextArea,{value:d,onChange:e=>o(e.target.value),placeholder:"Enter your response...",rows:4,"data-testid":"complete-modal-text-input"})]});case b.PF.CHECKBOX:return(0,a.jsx)("div",{className:"space-y-2",children:(0,a.jsx)(n.E_O,{checked:u,onChange:e=>p(e.target.checked),"data-testid":"complete-modal-checkbox",children:"The task has been completed"})});default:return(0,a.jsxs)("div",{className:"space-y-2",children:[(0,a.jsx)("div",{className:"text-sm font-medium text-gray-700",children:"Upload Files"}),(0,a.jsx)("div",{children:(0,a.jsx)(n.pMK,{fileList:h,onChange:e=>{let{fileList:t}=e;return y(t)},beforeUpload:()=>!1,"data-testid":"complete-modal-file-upload",multiple:!0,children:(0,a.jsx)(n.wpx,{"data-testid":"complete-modal-upload-button",children:"Click to Upload"})})})]})}})(),(0,a.jsxs)("div",{className:"space-y-2",children:[(0,a.jsx)("div",{className:"text-sm font-medium text-gray-700",children:"Internal comment"}),(0,a.jsx)(n.uFc.TextArea,{value:m,onChange:e=>x(e.target.value),placeholder:"Add any additional comments...",rows:3,"data-testid":"complete-modal-comment-input"})]})]})})]})}),(0,a.jsx)(n.mzw,{children:(0,a.jsxs)(n.vyj,{children:[(0,a.jsx)(n.wpx,{onClick:()=>{o(""),p(!1),x(""),y([]),s()},disabled:r,"data-testid":"complete-modal-cancel-button",children:"Cancel"}),(0,a.jsx)(n.wpx,{type:"primary",onClick:v,loading:r,disabled:!(()=>{switch(i.input_type){case b.PF.TEXT:return d.trim().length>0;case b.PF.CHECKBOX:return u;default:return h.length>0}})(),"data-testid":"complete-modal-save-button",children:"Save"})]})})]})]})},w=e=>{let{isOpen:t,onClose:s,task:i}=e,[l,{isLoading:r}]=(0,k.DA)(),[d,o]=(0,c.useState)(""),u=async()=>{try{await l({privacy_request_id:i.privacy_request.id,manual_field_id:i.manual_field_id,skip_reason:d}).unwrap(),o(""),s()}catch(e){n.Pg3.error("Failed to skip task. Please try again.")}};return(0,a.jsxs)(n.u_l,{isOpen:t,onClose:s,size:"700px",isCentered:!0,children:[(0,a.jsx)(n.ZAr,{}),(0,a.jsxs)(n.hzk,{maxWidth:"700px","data-testid":"skip-task-modal",children:[(0,a.jsx)(n.xBx,{children:(0,a.jsx)(n.AntTypography.Title,{level:4,children:"Skip Task"})}),(0,a.jsx)(n.fef,{children:(0,a.jsxs)("div",{className:"flex flex-col space-y-6",children:[(0,a.jsx)("div",{children:(0,a.jsx)(R,{task:i})}),(0,a.jsx)(n.htM,{}),(0,a.jsx)("div",{children:(0,a.jsx)("div",{className:"flex flex-col space-y-4",children:(0,a.jsxs)("div",{className:"space-y-2",children:[(0,a.jsx)("div",{className:"text-sm font-medium text-gray-700",children:"Reason for skipping (Required)"}),(0,a.jsx)(n.uFc.TextArea,{value:d,onChange:e=>o(e.target.value),placeholder:"Please provide a reason for skipping this task...",rows:4,"data-testid":"skip-modal-comment-input"})]})})})]})}),(0,a.jsx)(n.mzw,{children:(0,a.jsxs)(n.vyj,{children:[(0,a.jsx)(n.wpx,{onClick:()=>{o(""),s()},disabled:r,"data-testid":"skip-modal-cancel-button",children:"Cancel"}),(0,a.jsx)(n.wpx,{type:"primary",onClick:u,loading:r,disabled:!d.trim(),danger:!0,"data-testid":"skip-modal-skip-button",children:"Skip Task"})]})})]})]})},A=e=>{let{task:t}=e,s=(0,h.useRouter)(),{isOpen:i,onOpen:l,onClose:r}=(0,n.qY0)(),{isOpen:d,onOpen:o,onClose:c}=(0,n.qY0)(),u=(0,p.Tg)([b.Sh.PRIVACY_REQUEST_READ]);if(t.status!==b.OS.NEW)return null;let m=[{key:"skip",label:"Skip task",onClick:o}];return u&&m.push({key:"go-to-request",label:"Go to request",onClick:()=>{s.push({pathname:g.ld,query:{id:t.privacy_request.id}})}}),(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)(n.vyj,{size:"small",children:[(0,a.jsx)(n.wpx,{type:"default",onClick:l,size:"small",children:"Complete"}),(0,a.jsx)(n.S0p,{menu:{items:m},trigger:["click"],placement:"bottomRight",overlayStyle:{minWidth:120},children:(0,a.jsx)(n.wpx,{size:"small",icon:(0,a.jsx)(n.PJP.r43,{}),"aria-label":"More actions"})})]}),(0,a.jsx)(T,{isOpen:i,onClose:r,task:t}),(0,a.jsx)(w,{isOpen:d,onClose:c,task:t})]})},I={[b.OS.NEW]:{color:"info",label:"New"},[b.OS.COMPLETED]:{color:"success",label:"Completed"},[b.OS.SKIPPED]:{color:"marble",label:"Skipped"}},N=[{text:"New",value:b.OS.NEW},{text:"Completed",value:b.OS.COMPLETED},{text:"Skipped",value:b.OS.SKIPPED}],P=[{text:"Access",value:b.k6.ACCESS},{text:"Erasure",value:b.k6.ERASURE}],U=e=>{let{systemFilters:t,userFilters:s,onUserClick:i,currentFilters:l,hasAccessToAllTasks:r}=e,d=[{title:"Task name",dataIndex:"name",key:"name",minWidth:100,render:e=>(0,a.jsx)(n.AntTypography.Text,{ellipsis:{tooltip:e},children:e})},{title:"Status",dataIndex:"status",key:"status",width:110,render:e=>(0,a.jsx)(n.j8w,{color:I[e].color,"data-testid":"manual-task-status-tag",children:I[e].label}),filters:N,filterMultiple:!1},{title:"System",dataIndex:["system","name"],key:"system_name",minWidth:100,render:e=>(0,a.jsx)(n.AntTypography.Text,{ellipsis:{tooltip:e},children:e}),filters:t,filterMultiple:!1},{title:"Type",dataIndex:"request_type",key:"request_type",width:80,render:e=>{let t=e===b.k6.ACCESS?b.Us.ACCESS:b.Us.ERASURE,s=S.rE.get(t)||e;return(0,a.jsx)(n.AntTypography.Text,{ellipsis:{tooltip:s},children:s})},filters:P,filterMultiple:!1},{title:"Assigned to",dataIndex:"assigned_users",key:"assigned_users",minWidth:100,render:e=>{if(!e||0===e.length)return(0,a.jsx)(n.AntTypography.Text,{children:"-"});let t=e.map(e=>({label:(0,_.gJ)(e),value:e.id})),s=e.map(e=>e.id);return(0,a.jsx)(n.d3V,{value:s,options:t,readonly:!0,onTagClick:e=>i(String(e))})},filters:s,filterMultiple:!1,defaultFilteredValue:l.assignedUsers?[l.assignedUsers]:void 0},{title:"Days left",dataIndex:["privacy_request","days_left"],key:"days_left",width:90,render:e=>(0,a.jsx)(q.Z,{daysLeft:e||0,includeText:!1,status:b.q2.PENDING})},{title:"Subject identity",dataIndex:["privacy_request","subject_identities"],key:"subject_identities",minWidth:120,render:e=>{if(!e)return(0,a.jsx)(n.AntTypography.Text,{children:"-"});let t=e.email||e.phone_number||"";return(0,a.jsx)(n.AntTypography.Text,{ellipsis:{tooltip:t},children:t})}},{title:"Actions",key:"actions",width:145,render:(e,t)=>(0,a.jsx)(A,{task:t})}];return r?d:d.filter(e=>"assigned_users"!==e.key)},O=()=>{let e=(0,h.useRouter)(),t=(0,y.C)(v.dy),[s,i]=(0,c.useState)(1),[l,r]=(0,c.useState)(25),d=(0,p.Tg)([b.Sh.MANUAL_FIELD_READ_ALL]),o=e.query.privacy_request_id||void 0,u=(0,c.useMemo)(()=>{let e={};return(null==t?void 0:t.id)&&!o&&(e.assignedUsers=t.id),o&&"string"==typeof o&&(e.privacyRequestId=o),e},[null==t?void 0:t.id,o]),[m,q]=(0,c.useState)(u),{data:S,isLoading:E,isFetching:R}=(0,k.Ym)({page:s,size:l,status:m.status,systemName:m.systemName,requestType:m.requestType,assignedUserId:m.assignedUsers,privacyRequestId:m.privacyRequestId}),{data:T}=(0,k.Ym)({page:1,size:1}),{items:w,total:A}=(0,c.useMemo)(()=>S||{items:[],total:0,pages:0,filter_options:{assigned_users:[],systems:[]}},[S]),I=(0,c.useMemo)(()=>(null==T?void 0:T.filter_options)||{assigned_users:[],systems:[]},[T]),N=U({systemFilters:(0,c.useMemo)(()=>{var e;return(null==I?void 0:null===(e=I.systems)||void 0===e?void 0:e.map(e=>({text:e.name,value:e.name})))||[]},[null==I?void 0:I.systems]),userFilters:(0,c.useMemo)(()=>{var e;let s=(null==I?void 0:null===(e=I.assigned_users)||void 0===e?void 0:e.map(e=>({text:(0,_.gJ)(e),value:e.id})))||[];return(null==t?void 0:t.id)&&!s.some(e=>e.value===t.id)&&s.push({text:(0,_.gJ)(t,{fallbackToId:!0}),value:t.id}),s},[null==I?void 0:I.assigned_users,t]),onUserClick:t=>{e.push({pathname:g.fw,query:{id:t}})},currentFilters:m,hasAccessToAllTasks:d}),P=(0,c.useMemo)(()=>x()(m,u),[m,u]);return E?(0,a.jsx)(j.Z,{}):(0,a.jsxs)("div",{className:"mt-2 space-y-4",children:[(0,a.jsx)(n.kCb,{gap:3,align:"center",className:"mb-4",children:(0,a.jsx)(f.H,{globalFilter:m.privacyRequestId||"",setGlobalFilter:e=>{let t={...m};e&&e.trim()?t.privacyRequestId=e.trim():delete t.privacyRequestId,q(t),i(1)},placeholder:"Search by privacy request ID",testid:"privacy-request-id-filter"})}),(0,a.jsx)(n.V5H,{columns:N,dataSource:w,rowKey:e=>"".concat(e.privacy_request.id,"-").concat(e.manual_field_id),pagination:{current:s,pageSize:l,pageSizeOptions:C.VZ,total:A||0,showTotal:(e,t)=>"".concat(t[0],"-").concat(t[1]," of ").concat(e," items"),onChange:(e,t)=>{i(e),t!==l&&(r(t),i(1))}},onChange:(e,t)=>{let s={privacyRequestId:m.privacyRequestId};t.status&&([s.status]=t.status),t.system_name&&([s.systemName]=t.system_name),t.request_type&&([s.requestType]=t.request_type),t.assigned_users&&([s.assignedUsers]=t.assigned_users),q(s),i(1)},locale:{emptyText:P?(0,a.jsx)("div",{"data-testid":"empty-state-current-user",className:"my-4",children:(0,a.jsxs)(n.AntTypography.Paragraph,{children:["You have no tasks assigned."," ",d&&(0,a.jsx)("span",{children:'You can modify the "Assigned to" column filter to view tasks assigned to other users.'})]})}):(0,a.jsx)("div",{"data-testid":"empty-state",className:"my-4",children:"No results found."})},loading:E||R,scroll:{scrollToFirstRowOnChange:!0},tableLayout:"fixed",className:"[&_th]:!break-normal"})]})};var z=s(59003),D=s(92222),F=s(16125),Z=s(14048),M=s(47935),L=s(90867);let W={approved:{colorScheme:"success",label:"Approved"},complete:{label:"Completed",colorScheme:"success"},awaiting_email_send:{label:"Awaiting Email Send",colorScheme:"marble"},denied:{label:"Denied",colorScheme:"warning"},canceled:{label:"Canceled",colorScheme:"marble"},error:{label:"Error",colorScheme:"error"},in_processing:{label:"In Progress",colorScheme:"caution"},paused:{label:"Paused",colorScheme:"marble"},pending:{label:"New",colorScheme:"info"},identity_unverified:{label:"Unverified",colorScheme:"marble"},requires_input:{colorScheme:"minos",label:"Requires Input"},requires_manual_finalization:{colorScheme:"minos",label:"Requires Finalization"}},B=e=>{let{value:t}=e;return(0,a.jsx)(M.A4,{color:W[t].colorScheme,value:W[t].label,"data-testid":"request-status-badge"})},Y=e=>{let t,{daysLeft:s,timeframe:i=45,status:l,includeText:r=!1}=e;if(null==s||l===b.q2.COMPLETE||l===b.q2.CANCELED||l===b.q2.DENIED||l===b.q2.IDENTITY_UNVERIFIED)return null;let n=100*s/i;return n<25?t="error":n>=75?t="success":n>=25&&(t="warning"),(0,a.jsx)(M.A4,{value:r?"".concat(s," days left"):s.toString(),color:t})},K=e=>Array.from(new Set(e.filter(e=>Object.values(b.Us).includes(e.action_type)).map(e=>e.action_type))),V=e=>{let{value:t}=e,s=K(t).map(e=>S.rE.get(e));return(0,a.jsx)(M.WP,{value:s,cellState:{isExpanded:!0}})};var Q=s(58452),G=s(7426),X=s(57526),H=s(66548),J=s(45489);let $=e=>{var t;let{subjectRequest:s,...i}=e,l=(0,n.qY0)(),r=(0,n.qY0)(),d=(0,n.qY0)(),o=(0,n.qY0)(),{handleApproveRequest:c,handleDenyRequest:u,handleDeleteRequest:m,handleFinalizeRequest:x,isLoading:h}=(0,J.Z)({subjectRequest:s}),{data:y}=(0,G.tB)({api_set:!1}),{data:v}=(0,L.JE)(),j=null==y?void 0:null===(t=y.notifications)||void 0===t?void 0:t.send_request_completion_notification;return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)(n.Ugi,{...i,children:["pending"!==s.status?null:(0,a.jsx)(n.wpx,{title:"Approve","aria-label":"Approve",icon:(0,a.jsx)(n.PJP.MCw,{}),onClick:l.onOpen,loading:h,disabled:h,"data-testid":"privacy-request-approve-btn",size:"small"}),"pending"!==s.status?null:(0,a.jsx)(n.wpx,{title:"Deny","aria-label":"Deny",icon:(0,a.jsx)(n.PJP.x8P,{}),onClick:r.onOpen,loading:h,disabled:h,"data-testid":"privacy-request-deny-btn",size:"small"}),s.status!==b.q2.REQUIRES_MANUAL_FINALIZATION?null:(0,a.jsx)(p.ZP,{scopes:[b.Sh.PRIVACY_REQUEST_REVIEW],children:(0,a.jsx)(n.wpx,{title:"Finalize","aria-label":"Finalize",icon:(0,a.jsx)(n.PJP.Ok8,{}),onClick:o.onOpen,loading:h,disabled:h,"data-testid":"privacy-request-finalize-btn",size:"small"})}),(0,a.jsx)(p.ZP,{scopes:[b.Sh.PRIVACY_REQUEST_DELETE],children:(0,a.jsx)(n.wpx,{title:"Delete","aria-label":"Delete",icon:(0,a.jsx)(n.PJP.ZNm,{size:14}),onClick:d.onOpen,loading:h,disabled:h,"data-testid":"privacy-request-delete-btn",size:"small"})})]}),(0,a.jsx)(n.h_i,{children:(0,a.jsx)(X.Z,{isOpen:l.isOpen,isLoading:h,onClose:l.onClose,onApproveRequest:c,subjectRequest:s})}),(0,a.jsx)(n.h_i,{children:(0,a.jsx)(H.Z,{isOpen:r.isOpen,onClose:r.onClose,onDenyRequest:u})}),(0,a.jsx)(Q.Z,{isOpen:d.isOpen,onClose:d.onClose,onConfirm:m,message:(0,a.jsx)(n.xvT,{children:"You are about to permanently delete the privacy request. Are you sure you would like to continue?"})}),(0,a.jsx)(Q.Z,{isOpen:o.isOpen,onClose:o.onClose,onConfirm:()=>{x(),o.onClose()},title:"Finalize privacy request",message:(0,a.jsxs)(n.xvT,{children:['You are about to finalize this privacy request. The status will be updated to "Complete"',j&&(null==v?void 0:v.service_type)?" and the requesting user will be notified":"",". Would you like to continue?"]})})]})};(i=l||(l={})).STATUS="status",i.DAYS_LEFT="due_date",i.SOURCE="source",i.REQUEST_TYPE="request_type",i.SUBJECT_IDENTITY="subject_identity",i.TIME_RECEIVED="created_at",i.CREATED_BY="created_by",i.REVIEWER="reviewer",i.ID="id",i.ACTIONS="actions";let ee=(0,D.Cl)(),et=function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return[ee.accessor(e=>e.status,{id:"status",cell:e=>{let{getValue:t}=e;return(0,a.jsx)(B,{value:t()})},header:e=>(0,a.jsx)(M.Rr,{value:"Status",...e})}),ee.accessor(e=>e.days_left,{id:"due_date",cell:e=>{let{row:t,getValue:s}=e;return(0,a.jsx)(Y,{daysLeft:s(),timeframe:t.original.policy.execution_timeframe,status:t.original.status})},header:e=>(0,a.jsx)(M.Rr,{value:"Days left",...e})}),...e?[ee.accessor(e=>e.source,{id:"source",cell:e=>e.getValue()?(0,a.jsx)(M.A4,{value:e.getValue()}):(0,a.jsx)(M.G3,{value:void 0}),header:e=>(0,a.jsx)(M.Rr,{value:"Source",...e}),enableSorting:!1})]:[],ee.accessor(e=>e.policy.rules,{id:"request_type",cell:e=>{let{getValue:t}=e;return(0,a.jsx)(V,{value:t()})},header:e=>(0,a.jsx)(M.Rr,{value:"Request type",...e}),enableSorting:!1}),ee.accessor(e=>{var t,s;return(null===(t=e.identity)||void 0===t?void 0:t.email.value)||(null===(s=e.identity)||void 0===s?void 0:s.phone_number.value)||""},{id:"subject_identity",cell:e=>{let{getValue:t}=e;return(0,a.jsx)(M.G3,{value:t()})},header:e=>(0,a.jsx)(M.Rr,{value:"Subject identity",...e}),enableSorting:!1}),ee.accessor(e=>e.created_at,{id:"created_at",cell:e=>{let{getValue:t}=e;return(0,a.jsx)(M.G3,{value:(0,_.p6)(t())})},header:e=>(0,a.jsx)(M.Rr,{value:"Time received",...e})}),ee.accessor(e=>{var t;return(null===(t=e.reviewer)||void 0===t?void 0:t.username)||""},{id:"reviewer",cell:e=>{let{getValue:t}=e;return(0,a.jsx)(M.G3,{value:t()})},header:e=>(0,a.jsx)(M.Rr,{value:"Reviewed by",...e}),enableSorting:!1}),ee.accessor(e=>e.id,{id:"id",cell:e=>{let{getValue:t}=e;return(0,a.jsx)(M.G3,{value:t()})},header:e=>(0,a.jsx)(M.Rr,{value:"Request ID",...e}),enableSorting:!1}),ee.display({id:"actions",cell:e=>{let{row:t}=e;return(0,a.jsx)($,{subjectRequest:t.original})},header:e=>(0,a.jsx)(M.Rr,{value:"Actions",...e}),meta:{disableRowClick:!0}})]},es=e=>{let t=(0,F.v9)(L.dp),s=(0,F.I0)();return{handleStatusChange:t=>{s((0,L.CI)(t)),e()},handleActionTypeChange:t=>{s((0,L.aM)(t)),e()},handleFromChange:t=>{s((0,L.su)(null==t?void 0:t.target.value)),e()},handleToChange:t=>{s((0,L.Ue)(null==t?void 0:t.target.value)),e()},handleClearAllFilters:()=>{s((0,L.Mk)()),e()},...t}};var ei=s(96718);let el=e=>{let{onClose:t,onFilterChange:s,...i}=e,{handleStatusChange:l,handleActionTypeChange:r,handleFromChange:d,handleToChange:o,handleClearAllFilters:c,from:u,to:p,status:m,action_type:x}=es(s);return(0,a.jsxs)(n.u_l,{onClose:t,size:"xl",...i,children:[(0,a.jsx)(n.ZAr,{}),(0,a.jsxs)(n.hzk,{children:[(0,a.jsx)(n.xBx,{borderBottomWidth:1,borderBottomColor:"gray.200",children:"All Filters"}),(0,a.jsx)(n.olH,{}),(0,a.jsx)(n.fef,{py:4,sx:{"& label":{mb:0}},children:(0,a.jsxs)(n.Kqy,{gap:4,children:[(0,a.jsxs)(n.Kqy,{children:[(0,a.jsx)(n.lXp,{size:"md",id:"request-date-range-label",children:"Date range"}),(0,a.jsxs)(n.Ugi,{gap:3,children:[(0,a.jsxs)(n.BZy,{size:"sm",flex:1,children:[(0,a.jsx)(n.UiE,{as:"label",htmlFor:"from-date",borderRadius:"md",children:"From"}),(0,a.jsx)(n.IIB,{type:"date",name:"From",value:u,max:p||void 0,onChange:d,borderRadius:"md",id:"from-date","aria-describedby":"request-date-range-label"})]}),(0,a.jsxs)(n.BZy,{size:"sm",flex:1,children:[(0,a.jsx)(n.UiE,{as:"label",htmlFor:"to-date",borderRadius:"md",children:"To"}),(0,a.jsx)(n.IIB,{type:"date",borderRadius:"md",name:"To",value:p,min:u||void 0,onChange:o,id:"to-date","aria-describedby":"request-date-range-label"})]})]})]}),(0,a.jsxs)(n.Kqy,{children:[(0,a.jsx)(n.lXp,{size:"md",htmlFor:"request-status",children:"Status"}),(0,a.jsx)(ei.z,{id:"request-status",mode:"multiple",options:S.I3,value:m,onChange:l,"data-testid":"request-status-filter"})]}),(0,a.jsxs)(n.Kqy,{children:[(0,a.jsx)(n.lXp,{size:"md",htmlFor:"request-action-type",children:"Request Type"}),(0,a.jsx)(ei.z,{id:"request-action-type",mode:"multiple",options:S.kN,value:x,onChange:r,"data-testid":"request-action-type-filter"})]})]})}),(0,a.jsxs)(n.mzw,{justifyContent:"space-between",children:[(0,a.jsx)(n.wpx,{type:"text",onClick:c,children:"Clear all"}),(0,a.jsx)(n.wpx,{type:"primary",onClick:t,children:"Done"})]})]})]})},ea=e=>{let{...t}=e,{plus:s}=(0,u.hz)(),[i,l]=(0,c.useState)(""),r=(0,F.v9)(L.dp),d=(0,F.v9)(v.rK),o=(0,n.pmc)(),p=(0,h.useRouter)(),m=(0,F.I0)(),{PAGE_SIZES:x,pageSize:y,setPageSize:j,onPreviousPageClick:g,isPreviousPageDisabled:f,onNextPageClick:_,isNextPageDisabled:b,startRange:C,endRange:q,pageIndex:S,setTotalPages:k,resetPageIndexToDefault:E}=(0,M.oi)(),{isOpen:R,onOpen:T,onClose:w}=(0,n.qY0)(),{data:A,isLoading:I,isFetching:N}=(0,L.QA)({...r,page:S,size:y}),{items:P,total:U}=(0,c.useMemo)(()=>{let e=A||{items:[],total:0,pages:0};return k(e.pages),e},[A,k]),O=(0,c.useCallback)(e=>{m((0,L.mU)(e)),l(e),E()},[m,E,l]),W=async()=>{let e;try{await (0,L.py)({...r,token:d})}catch(t){e=t instanceof Error?t.message:"Unknown error occurred"}e&&o({description:"".concat(e),duration:5e3,status:"error"})},B=e=>{p.push("/privacy-requests/".concat(e))},Y=(0,z.b7)({getCoreRowModel:(0,D.sC)(),data:P,columns:(0,c.useMemo)(()=>et(s),[s]),getRowId:e=>"".concat(e.status,"-").concat(e.id),manualPagination:!0,columnResizeMode:"onChange"});return(0,a.jsxs)(n.xuv,{...t,children:[(0,a.jsxs)(M.Q$,{children:[(0,a.jsx)(M.HO,{globalFilter:i,setGlobalFilter:O,placeholder:"Search by request ID or identity value"}),(0,a.jsxs)(n.Ugi,{alignItems:"center",spacing:2,children:[(0,a.jsx)(n.wpx,{"data-testid":"filter-btn",onClick:T,children:"Filter"}),(0,a.jsx)(n.wpx,{"aria-label":"Export report","data-testid":"export-btn",icon:(0,a.jsx)(Z.nM,{ml:"1.5px"}),onClick:W})]}),(0,a.jsx)(n.h_i,{children:(0,a.jsx)(el,{isOpen:R,onClose:w,onFilterChange:E})})]}),I?(0,a.jsx)(n.xuv,{p:2,borderWidth:1,children:(0,a.jsx)(M.I4,{rowHeight:26,numRows:10})}):(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(M.ZK,{tableInstance:Y,onRowClick:e=>B(e.id),onSort:e=>{if(!e){m((0,L.PS)()),E();return}let{id:t,desc:s}=e;m((0,L.WR)(t)),m((0,L.iX)(s?"desc":"asc")),E()}}),(0,a.jsx)(M.s8,{totalRows:U||0,pageSizes:x,setPageSize:j,onPreviousPageClick:g,isPreviousPageDisabled:f||N,onNextPageClick:_,isNextPageDisabled:b||N,startRange:C,endRange:q})]})]})};var er=s(812),en=s(87361),ed=s(46628),eo=s(32885),ec=s(34090),eu=s(55484),ep=s(40324);let em=(e,t)=>null==t?void 0:t.find(t=>t.policy_key===e),ex=e=>{var t,s;if(!e)return eu.Ry().shape({policy_key:eu.Z_().required().label("Request type")});let i=e.custom_privacy_request_fields?Object.entries(e.custom_privacy_request_fields).map(e=>{let[t,s]=e;return{[t]:eu.Ry().shape({value:s.required&&!s.hidden?eu.Z_().required().label(s.label):eu.Z_().nullable()})}}).reduce((e,t)=>({...e,...t}),{}):{};return eu.Ry().shape({policy_key:eu.Z_().required().label("Request type"),identity:eu.Ry().shape({email:(null===(t=e.identity_inputs)||void 0===t?void 0:t.email)==="required"?eu.Z_().email().required().label("Email address"):eu.Z_().nullable(),phone_number:(null===(s=e.identity_inputs)||void 0===s?void 0:s.phone)==="required"?eu.Z_().matches(/^\+?[1-9]\d{1,14}$/,"Phone number must be formatted correctly (e.g. 15555555555)").required().label("Phone number"):eu.Z_().matches(/^\+?[1-9]\d{1,14}$/,"Phone number must be formatted correctly (e.g. 15555555555)").nullable()}),custom_privacy_request_fields:eu.Ry().shape(i)})};var eh=s(97181);let ey={is_verified:!1,policy_key:"",identity:{}},ev=e=>{let{identityInputs:t}=e;return t?(0,a.jsxs)(a.Fragment,{children:[t.email?(0,a.jsx)(ep.j0,{name:"identity.email",label:"User email address",isRequired:"required"===t.email,variant:"stacked"}):null,t.phone?(0,a.jsx)(ep.j0,{name:"identity.phone_number",label:"User phone number",isRequired:"required"===t.phone,variant:"stacked"}):null]}):null},ej=e=>{let{customFieldInputs:t}=e;if(!t)return null;let s=Object.entries(t);return(0,a.jsx)(a.Fragment,{children:s.map(e=>{let[t,s]=e;return(0,a.jsx)(ep.j0,{name:"custom_privacy_request_fields.".concat(t,".value"),label:s.label,isRequired:!!s.required,variant:"stacked"},t)})})},eg=e=>{let{onSubmit:t,onCancel:s,privacyCenterUrl:i}=e,{onCopy:l}=(0,n.VPI)(""),r=(0,n.pmc)();return(0,a.jsx)(ec.J9,{initialValues:{identity:{email:""}},onSubmit:e=>{l("".concat(i,"?email=").concat(encodeURIComponent(e.identity.email))),t(e),r({status:"success",description:"DSR Link Copied!"})},validationSchema:()=>eu.Ry().shape({identity:eu.Ry().shape({email:eu.Z_().email().required().label("Email Address")})}),children:e=>{let{dirty:t,isValid:i}=e;return(0,a.jsx)(ec.l0,{children:(0,a.jsxs)(n.Kqy,{spacing:6,mb:2,children:[(0,a.jsx)(ev,{identityInputs:{email:"required"}}),(0,a.jsxs)("div",{className:"flex gap-4 self-end",children:[(0,a.jsx)(n.wpx,{onClick:s,children:"Cancel"}),(0,a.jsx)(n.wpx,{htmlType:"submit",type:"primary",disabled:!t||!i,"data-testid":"submit-btn",icon:(0,a.jsx)(n.xPt,{}),children:"Copy"})]})]})})}})};var ef=e=>{let{onSubmit:t,onCancel:s}=e,{data:i}=(0,L.xv)();return(0,a.jsx)(ec.J9,{initialValues:ey,onSubmit:t,validationSchema:()=>(0,eu.Vo)(e=>ex(em(e.policy_key,null==i?void 0:i.actions))),children:e=>{var t;let{values:l,dirty:r,isValid:d,isSubmitting:o,setFieldValue:c}=e,u=em(l.policy_key,null==i?void 0:i.actions);return(0,a.jsx)(ec.l0,{children:(0,a.jsxs)(n.Kqy,{spacing:6,mb:2,children:[(0,a.jsx)(eh.d,{name:"policy_key",label:"Request type",options:null!==(t=null==i?void 0:i.actions.map(e=>({label:e.title,value:e.policy_key})))&&void 0!==t?t:[],onChange:e=>{let t=em(e,null==i?void 0:i.actions);if(!(null==t?void 0:t.custom_privacy_request_fields)){c("custom_privacy_request_fields",void 0);return}c("custom_privacy_request_fields",Object.entries(t.custom_privacy_request_fields).map(e=>{let[t,s]=e;return{[t]:{label:s.label,value:s.default_value}}}).reduce((e,t)=>({...e,...t}),{}))},layout:"stacked",isRequired:!0}),(0,a.jsx)(ev,{identityInputs:null==u?void 0:u.identity_inputs}),(0,a.jsx)(ej,{customFieldInputs:null==u?void 0:u.custom_privacy_request_fields}),(0,a.jsx)(ep.Xl,{name:"is_verified",label:"I confirm that I have verified this user information"}),(0,a.jsxs)("div",{className:"flex gap-4 self-end",children:[(0,a.jsx)(n.wpx,{onClick:s,children:"Cancel"}),(0,a.jsx)(n.wpx,{htmlType:"submit",type:"primary",disabled:!l.is_verified||!r||!d,loading:o,"data-testid":"submit-btn",children:"Create"})]})]})})}})},e_=s(31883);let eb=e=>{let{isOpen:t,onClose:s}=e,[i]=(0,L.M6)(),l=(0,n.pmc)(),r=async e=>{let{is_verified:t,...a}=e,r=a.custom_privacy_request_fields?Object.entries(a.custom_privacy_request_fields).map(e=>{let[t,s]=e;return s.value?{[t]:s}:{}}).reduce((e,t)=>({...e,...t}),{}):void 0,n={...a,custom_privacy_request_fields:r},d=await i([n]);(0,e_.D4)(d)?l((0,ed.Vo)((0,er.e$)(d.error,"An error occurred while creating this privacy request. Please try again"))):l((0,ed.t5)("Privacy request created")),s()};return(0,a.jsxs)(n.u_l,{isOpen:t,onClose:s,size:"2xl",isCentered:!0,children:[(0,a.jsx)(n.ZAr,{}),(0,a.jsxs)(n.hzk,{"data-testid":"submit-request-modal",maxHeight:"80%",overflowY:"auto",children:[(0,a.jsx)(n.xBx,{children:"Create privacy request"}),(0,a.jsx)(n.fef,{children:(0,a.jsxs)(n.Kqy,{spacing:4,children:[(0,a.jsx)(en.Z,{title:"Warning: You are bypassing identity verification",text:"You are bypassing Fides' built-in identity verification step. Please ensure that you are only entering information on behalf of a verified and approved user's privacy request."}),(0,a.jsx)(ef,{onSubmit:r,onCancel:()=>s()})]})})]})]})},eC=e=>{let{isOpen:t,onClose:s,privacyCenterUrl:i}=e;return(0,a.jsxs)(n.u_l,{size:"md",isOpen:t,onClose:s,children:[(0,a.jsx)(n.ZAr,{}),(0,a.jsxs)(n.hzk,{children:[(0,a.jsx)(n.xBx,{children:"Create a Privacy Request Link"}),(0,a.jsxs)(n.fef,{children:[(0,a.jsx)(n.Kqy,{spacing:4}),(0,a.jsx)(eg,{privacyCenterUrl:i,onSubmit:s,onCancel:s})]})]})]})};var eq=()=>{var e;let[t,s]=(0,c.useState)("closed"),i=()=>s("closed"),{data:l}=(0,eo.Vh)(),r=(null!==(e=null==l?void 0:l.privacy_center_url)&&void 0!==e?e:"").trim(),d=r.length>0;return(0,a.jsxs)(a.Fragment,{children:[d?(0,a.jsx)(eC,{isOpen:"create-link"===t,onClose:i,privacyCenterUrl:r}):null,(0,a.jsx)(eb,{isOpen:"submit-request"===t,onClose:i}),(0,a.jsx)(n.S0p.Button,{type:"primary",onClick:()=>s("submit-request"),"data-testid":"submit-request-btn",menu:{items:[{label:"Create request link",key:"create-request-link",icon:(0,a.jsx)(n.xPt,{}),onClick:()=>s("create-link"),disabled:!d}]},icon:(0,a.jsx)(n.v4q,{}),children:"Create request"})]})},eS=s(58754),ek=s(41841);let eE=()=>{let{errorAlert:e}=(0,ek.VY)(),[t,s]=(0,c.useState)(!1),[i,l]=(0,c.useState)({count:0,total:0}),[r,d]=(0,c.useState)(!0),o=b.q2.ERROR,{data:u}=(0,L.tE)(),{data:p}=(0,L.QA)({status:[o]},{pollingInterval:15e3,skip:r});return(0,c.useEffect)(()=>{d(!(u&&u.notify_after_failures>0))},[u]),(0,c.useEffect)(()=>{let e=(null==p?void 0:p.total)||0;e>=((null==u?void 0:u.notify_after_failures)||0)&&e>i.total?(l({count:e-i.total,total:e}),s(!0)):s(!1)},[null==p?void 0:p.total,null==u?void 0:u.notify_after_failures,i.total]),{processing:()=>{t&&e((0,a.jsxs)(n.xuv,{children:["DSR automation has failed for"," ",(0,a.jsx)(n.xvT,{as:"span",fontWeight:"semibold",children:i.count})," ","privacy request(s). Please review the event log for further details."]}),void 0,{containerStyle:{maxWidth:"max-content"},duration:null,id:"dsrErrorAlert"})}}};var eR=s(72281);let eT=o()(()=>s.e(9676).then(s.bind(s,59676)),{loadableGenerated:{webpack:()=>[59676]},loading:()=>(0,a.jsx)("div",{children:"Loading..."})});var ew=()=>{let{processing:e}=eE(),{plus:t}=(0,u.hz)(),{activeTab:s,handleTabChange:i,availableTabs:l}=(0,eR.d)();(0,c.useEffect)(()=>{e()},[e]);let r=(0,c.useMemo)(()=>{let e=[];return l.request&&e.push({key:eR.G.REQUEST,label:"Request",children:(0,a.jsx)(ea,{})}),l.manualTask&&e.push({key:eR.G.MANUAL_TASK,label:"Manual tasks",children:(0,a.jsx)(O,{})}),e},[l.manualTask,l.request]);return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(eS.Z,{heading:"Privacy Requests",breadcrumbItems:[{title:"All requests"}],rightContent:(0,a.jsxs)(n.vyj,{children:[t&&(0,a.jsx)(p.ZP,{scopes:[b.Sh.PRIVACY_REQUEST_CREATE],children:(0,a.jsx)(eq,{})}),(0,a.jsx)(eT,{})]}),"data-testid":"privacy-requests"}),(0,a.jsx)(n.A5g,{activeKey:s,onChange:i,items:r})]})},eA=()=>(0,a.jsx)(r.Z,{title:"Privacy Requests",children:(0,a.jsx)(ew,{})})},31883:function(e,t,s){"use strict";s.d(t,{Bw:function(){return i.Bw},D4:function(){return i.D4}});var i=s(19043)}},function(e){e.O(0,[431,8765,3550,4164,2888,9774,179],function(){return e(e.s=1565)}),_N_E=e.O()}]);
|
fides/ui-build/static/admin/_next/static/chunks/pages/settings/about/alpha-a82f3df840d5c1b5.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5988],{94896:function(e,i,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/settings/about/alpha",function(){return n(38292)}])},77213:function(e,i,n){"use strict";n.d(i,{Z:function(){return u}});var t=n(24246),s=n(96306),r=n(88038),l=n.n(r),a=n(86677);n(27378);var o=n(25980),c=n(90867),d=n(77830),x=()=>{let e=(0,a.useRouter)();return(0,t.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,t.jsxs)(s.xuv,{children:[(0,t.jsxs)(s.Kqy,{direction:{base:"column",sm:"row"},justifyContent:"space-between",children:[(0,t.jsx)(s.xvT,{fontWeight:"semibold",children:"Configure your storage and messaging provider"}),(0,t.jsx)(s.wpx,{onClick:()=>{e.push(d.fz)},children:"Configure"})]}),(0,t.jsxs)(s.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:i,title:n,padded:r=!0,mainProps:d}=e,u=(0,o.hz)(),h=(0,a.useRouter)(),p="/privacy-requests"===h.pathname||"/datastore-connection"===h.pathname,m=!(u.flags.privacyRequestsConfiguration&&p),{data:f}=(0,c.JE)(void 0,{skip:m}),{data:j}=(0,c.PW)(void 0,{skip:m}),g=u.flags.privacyRequestsConfiguration&&(!f||!j)&&p;return(0,t.jsxs)(s.kCb,{"data-testid":n,direction:"column",h:"100vh",children:[(0,t.jsxs)(l(),{children:[(0,t.jsxs)("title",{children:["Fides Admin UI - ",n]}),(0,t.jsx)("meta",{name:"description",content:"Privacy Engineering Platform"}),(0,t.jsx)("link",{rel:"icon",href:"/favicon.ico"})]}),(0,t.jsxs)(s.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:[g?(0,t.jsx)(x,{}):null,i]})]})}},58754:function(e,i,n){"use strict";var t=n(24246),s=n(96306),r=n(70788);i.Z=e=>{let{heading:i,breadcrumbItems:n,isSticky:l=!0,children:a,rightContent:o,style:c,...d}=e;return(0,t.jsxs)("div",{...d,style:l?{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,t.jsxs)(s.jqI,{justify:"space-between",children:["string"==typeof i?(0,t.jsx)(s.lQT,{className:n||a?"pb-4":void 0,level:1,"data-testid":"page-heading",children:i}):i,o&&(0,t.jsx)("div",{"data-testid":"page-header-right-content",children:o})]}),!!n&&(0,t.jsx)(r.m,{className:a?"pb-4":void 0,items:n,"data-testid":"page-breadcrumb"}),a]})}},70788:function(e,i,n){"use strict";n.d(i,{m:function(){return c}});var t=n(24246),s=n(96306),r=n(79894),l=n.n(r),a=n(27378);let{Text:o}=s.AntTypography,c=e=>{let{items:i,...n}=e,r=(0,a.useMemo)(()=>null==i?void 0:i.map((e,n)=>{let r=n===i.length-1,a={...e},c=a.onClick&&!a.href;return("string"==typeof a.title&&(a.title=(0,t.jsx)(o,{style:{color:"inherit",maxWidth:r?void 0:400},ellipsis:!r,id:r?"breadcrumb-current-page":void 0,children:a.title})),c)?a.title=(0,t.jsx)(s.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,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("span",{className:"anticon align-text-bottom",children:a.icon}),a.title]})),a.href&&a.title&&(a.title=(0,t.jsx)(l(),{href:a.href,className:"ant-breadcrumb-link",children:a.title}),delete a.href)),a}),[i]);return(0,t.jsx)(s.zrq,{items:r,...n})}},38292:function(e,i,n){"use strict";n.r(i);var t=n(24246),s=n(71115);i.default=()=>(0,t.jsx)(s.default,{showAlphaFeatures:!0})},71115:function(e,i,n){"use strict";n.r(i),n.d(i,{default:function(){return x}});var t=n(24246),s=n(96306),r=n(25980),l=n(62165),a=n(16394);let o=e=>{let{flag:i,value:n,override:r}=e;return"boolean"!=typeof n?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(s.xvT,{fontSize:"sm",children:i}),(0,t.jsx)(s.xvT,{fontSize:"sm",children:n})]}):l.Ky[i].userCannotModify?null:(0,t.jsxs)(s.NIc,{display:"contents",children:[(0,t.jsx)(s.xuv,{justifySelf:"center",children:(0,t.jsx)(s.rAg,{id:"flag-".concat(i),checked:n,onChange:()=>r({flag:i,value:!n})})}),(0,t.jsx)(s.xuv,{children:(0,t.jsx)(s.lXp,{margin:0,fontSize:"sm",htmlFor:"flag-".concat(i),title:i,children:(0,a.Py)(i)})}),(0,t.jsx)(s.xuv,{children:(0,t.jsx)(s.xvT,{fontSize:"sm",children:l.Ky[i].description})})]})};var c=n(77213),d=n(58754),x=e=>{let{showAlphaFeatures:i=!1}=e,n=(0,r.hz)(),{flags:a,override:x,reset:u}=(0,l.Vb)(),h=l.R$.filter(e=>e.startsWith("alpha")),p=l.R$.filter(e=>!e.startsWith("alpha"));return(0,t.jsxs)(c.Z,{title:"About Fides",children:[(0,t.jsx)(d.Z,{heading:"About Fides",children:(0,t.jsxs)(s.kCb,{direction:"column",gap:4,children:[(0,t.jsxs)(s.xuv,{children:[(0,t.jsxs)(s.xvT,{as:"span",fontWeight:"bold",children:["Fides Core Version:"," "]}),(0,t.jsx)(s.xvT,{as:"pre",display:"inline",children:n.version})]}),n.plusVersion?(0,t.jsxs)(s.xuv,{children:[(0,t.jsxs)(s.xvT,{as:"span",fontWeight:"bold",children:["Fides Plus Version:"," "]}),(0,t.jsx)(s.xvT,{as:"pre",display:"inline",children:n.plusVersion})]}):null,(0,t.jsx)(s.izJ,{})]})}),(0,t.jsxs)(s.kCb,{alignItems:"center",gap:4,children:[(0,t.jsx)(s.X6q,{as:"h2",fontSize:"xl",children:"Beta Features"}),(0,t.jsx)(s.wpx,{onClick:u,children:"Reset"})]}),(0,t.jsx)(s.rjZ,{gridTemplateColumns:"1fr 2fr 6fr",gridColumnGap:4,gridRowGap:2,alignItems:"center",className:"py-6",children:p.map(e=>(0,t.jsx)(o,{flag:e,value:a[e],override:x},e))}),i&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(s.kCb,{alignItems:"center",gap:4,children:[(0,t.jsx)(s.X6q,{as:"h2",fontSize:"xl",children:"Alpha Features"}),(0,t.jsx)(s.wpx,{onClick:u,children:"Reset"})]}),(0,t.jsx)(s.rjZ,{gridTemplateColumns:"1fr 2fr 6fr",gridColumnGap:4,gridRowGap:2,alignItems:"center",className:"py-6",children:h.map(e=>(0,t.jsx)(o,{flag:e,value:a[e],override:x},e))})]}),(0,t.jsxs)(s.xuv,{children:[(0,t.jsxs)(s.xvT,{fontSize:"sm",children:["Please visit"," ",(0,t.jsx)(s.rUS,{color:"complimentary.500",href:"https://docs.ethyca.com",isExternal:!0,children:"docs.ethyca.com"})," ","for more information on these features."]}),(0,t.jsxs)(s.xvT,{fontSize:"sm",children:["For questions and feedback, please join us at"," ",(0,t.jsx)(s.rUS,{color:"complimentary.500",href:"https://fidescommunity.slack.com",isExternal:!0,children:"fidescommunity.slack.com"}),"."]})]})]})}}},function(e){e.O(0,[2888,9774,179],function(){return e(e.s=94896)}),_N_E=e.O()}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2447],{64877:function(e,i,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/settings/about",function(){return n(71115)}])},77213:function(e,i,n){"use strict";n.d(i,{Z:function(){return h}});var t=n(24246),s=n(96306),r=n(88038),l=n.n(r),a=n(86677);n(27378);var o=n(25980),c=n(90867),d=n(77830),x=()=>{let e=(0,a.useRouter)();return(0,t.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,t.jsxs)(s.xuv,{children:[(0,t.jsxs)(s.Kqy,{direction:{base:"column",sm:"row"},justifyContent:"space-between",children:[(0,t.jsx)(s.xvT,{fontWeight:"semibold",children:"Configure your storage and messaging provider"}),(0,t.jsx)(s.wpx,{onClick:()=>{e.push(d.fz)},children:"Configure"})]}),(0,t.jsxs)(s.xvT,{children:["Before Fides can process your privacy requests we need two simple steps to configure your storage and email client."," "]})]})})},h=e=>{let{children:i,title:n,padded:r=!0,mainProps:d}=e,h=(0,o.hz)(),u=(0,a.useRouter)(),p="/privacy-requests"===u.pathname||"/datastore-connection"===u.pathname,m=!(h.flags.privacyRequestsConfiguration&&p),{data:f}=(0,c.JE)(void 0,{skip:m}),{data:j}=(0,c.PW)(void 0,{skip:m}),g=h.flags.privacyRequestsConfiguration&&(!f||!j)&&p;return(0,t.jsxs)(s.kCb,{"data-testid":n,direction:"column",h:"100vh",children:[(0,t.jsxs)(l(),{children:[(0,t.jsxs)("title",{children:["Fides Admin UI - ",n]}),(0,t.jsx)("meta",{name:"description",content:"Privacy Engineering Platform"}),(0,t.jsx)("link",{rel:"icon",href:"/favicon.ico"})]}),(0,t.jsxs)(s.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:[g?(0,t.jsx)(x,{}):null,i]})]})}},58754:function(e,i,n){"use strict";var t=n(24246),s=n(96306),r=n(70788);i.Z=e=>{let{heading:i,breadcrumbItems:n,isSticky:l=!0,children:a,rightContent:o,style:c,...d}=e;return(0,t.jsxs)("div",{...d,style:l?{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,t.jsxs)(s.jqI,{justify:"space-between",children:["string"==typeof i?(0,t.jsx)(s.lQT,{className:n||a?"pb-4":void 0,level:1,"data-testid":"page-heading",children:i}):i,o&&(0,t.jsx)("div",{"data-testid":"page-header-right-content",children:o})]}),!!n&&(0,t.jsx)(r.m,{className:a?"pb-4":void 0,items:n,"data-testid":"page-breadcrumb"}),a]})}},70788:function(e,i,n){"use strict";n.d(i,{m:function(){return c}});var t=n(24246),s=n(96306),r=n(79894),l=n.n(r),a=n(27378);let{Text:o}=s.AntTypography,c=e=>{let{items:i,...n}=e,r=(0,a.useMemo)(()=>null==i?void 0:i.map((e,n)=>{let r=n===i.length-1,a={...e},c=a.onClick&&!a.href;return("string"==typeof a.title&&(a.title=(0,t.jsx)(o,{style:{color:"inherit",maxWidth:r?void 0:400},ellipsis:!r,id:r?"breadcrumb-current-page":void 0,children:a.title})),c)?a.title=(0,t.jsx)(s.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,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("span",{className:"anticon align-text-bottom",children:a.icon}),a.title]})),a.href&&a.title&&(a.title=(0,t.jsx)(l(),{href:a.href,className:"ant-breadcrumb-link",children:a.title}),delete a.href)),a}),[i]);return(0,t.jsx)(s.zrq,{items:r,...n})}},71115:function(e,i,n){"use strict";n.r(i),n.d(i,{default:function(){return x}});var t=n(24246),s=n(96306),r=n(25980),l=n(62165),a=n(16394);let o=e=>{let{flag:i,value:n,override:r}=e;return"boolean"!=typeof n?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(s.xvT,{fontSize:"sm",children:i}),(0,t.jsx)(s.xvT,{fontSize:"sm",children:n})]}):l.Ky[i].userCannotModify?null:(0,t.jsxs)(s.NIc,{display:"contents",children:[(0,t.jsx)(s.xuv,{justifySelf:"center",children:(0,t.jsx)(s.rAg,{id:"flag-".concat(i),checked:n,onChange:()=>r({flag:i,value:!n})})}),(0,t.jsx)(s.xuv,{children:(0,t.jsx)(s.lXp,{margin:0,fontSize:"sm",htmlFor:"flag-".concat(i),title:i,children:(0,a.Py)(i)})}),(0,t.jsx)(s.xuv,{children:(0,t.jsx)(s.xvT,{fontSize:"sm",children:l.Ky[i].description})})]})};var c=n(77213),d=n(58754),x=e=>{let{showAlphaFeatures:i=!1}=e,n=(0,r.hz)(),{flags:a,override:x,reset:h}=(0,l.Vb)(),u=l.R$.filter(e=>e.startsWith("alpha")),p=l.R$.filter(e=>!e.startsWith("alpha"));return(0,t.jsxs)(c.Z,{title:"About Fides",children:[(0,t.jsx)(d.Z,{heading:"About Fides",children:(0,t.jsxs)(s.kCb,{direction:"column",gap:4,children:[(0,t.jsxs)(s.xuv,{children:[(0,t.jsxs)(s.xvT,{as:"span",fontWeight:"bold",children:["Fides Core Version:"," "]}),(0,t.jsx)(s.xvT,{as:"pre",display:"inline",children:n.version})]}),n.plusVersion?(0,t.jsxs)(s.xuv,{children:[(0,t.jsxs)(s.xvT,{as:"span",fontWeight:"bold",children:["Fides Plus Version:"," "]}),(0,t.jsx)(s.xvT,{as:"pre",display:"inline",children:n.plusVersion})]}):null,(0,t.jsx)(s.izJ,{})]})}),(0,t.jsxs)(s.kCb,{alignItems:"center",gap:4,children:[(0,t.jsx)(s.X6q,{as:"h2",fontSize:"xl",children:"Beta Features"}),(0,t.jsx)(s.wpx,{onClick:h,children:"Reset"})]}),(0,t.jsx)(s.rjZ,{gridTemplateColumns:"1fr 2fr 6fr",gridColumnGap:4,gridRowGap:2,alignItems:"center",className:"py-6",children:p.map(e=>(0,t.jsx)(o,{flag:e,value:a[e],override:x},e))}),i&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(s.kCb,{alignItems:"center",gap:4,children:[(0,t.jsx)(s.X6q,{as:"h2",fontSize:"xl",children:"Alpha Features"}),(0,t.jsx)(s.wpx,{onClick:h,children:"Reset"})]}),(0,t.jsx)(s.rjZ,{gridTemplateColumns:"1fr 2fr 6fr",gridColumnGap:4,gridRowGap:2,alignItems:"center",className:"py-6",children:u.map(e=>(0,t.jsx)(o,{flag:e,value:a[e],override:x},e))})]}),(0,t.jsxs)(s.xuv,{children:[(0,t.jsxs)(s.xvT,{fontSize:"sm",children:["Please visit"," ",(0,t.jsx)(s.rUS,{color:"complimentary.500",href:"https://docs.ethyca.com",isExternal:!0,children:"docs.ethyca.com"})," ","for more information on these features."]}),(0,t.jsxs)(s.xvT,{fontSize:"sm",children:["For questions and feedback, please join us at"," ",(0,t.jsx)(s.rUS,{color:"complimentary.500",href:"https://fidescommunity.slack.com",isExternal:!0,children:"fidescommunity.slack.com"}),"."]})]})]})}}},function(e){e.O(0,[2888,9774,179],function(){return e(e.s=64877)}),_N_E=e.O()}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[210],{53748:function(e,i,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/settings/consent",function(){return t(96236)}])},59301:function(e,i,t){"use strict";var n=t(24246);let{Link:r}=t(96306).AntTypography;i.Z=e=>(0,n.jsx)(r,{target:"_blank",rel:"noopener noreferrer",...e})},56358:function(e,i,t){"use strict";t.d(i,{q:function(){return r}});var n=t(24246);let r=(0,t(96306).IUT)({displayName:"TrashCanOutlineIcon",viewBox:"0 0 11 12",path:(0,n.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,i,t){"use strict";t.d(i,{Z:function(){return p}});var n=t(24246),r=t(96306),s=t(88038),l=t.n(s),o=t(86677);t(27378);var a=t(25980),d=t(90867),c=t(77830),u=()=>{let e=(0,o.useRouter)();return(0,n.jsx)(r.xuv,{bg:"gray.50",border:"1px solid",borderColor:"blue.400",borderRadius:"md",justifyContent:"space-between",p:5,mb:5,mt:5,children:(0,n.jsxs)(r.xuv,{children:[(0,n.jsxs)(r.Kqy,{direction:{base:"column",sm:"row"},justifyContent:"space-between",children:[(0,n.jsx)(r.xvT,{fontWeight:"semibold",children:"Configure your storage and messaging provider"}),(0,n.jsx)(r.wpx,{onClick:()=>{e.push(c.fz)},children:"Configure"})]}),(0,n.jsxs)(r.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:i,title:t,padded:s=!0,mainProps:c}=e,p=(0,a.hz)(),h=(0,o.useRouter)(),x="/privacy-requests"===h.pathname||"/datastore-connection"===h.pathname,g=!(p.flags.privacyRequestsConfiguration&&x),{data:b}=(0,d.JE)(void 0,{skip:g}),{data:v}=(0,d.PW)(void 0,{skip:g}),m=p.flags.privacyRequestsConfiguration&&(!b||!v)&&x;return(0,n.jsxs)(r.kCb,{"data-testid":t,direction:"column",h:"100vh",children:[(0,n.jsxs)(l(),{children:[(0,n.jsxs)("title",{children:["Fides Admin UI - ",t]}),(0,n.jsx)("meta",{name:"description",content:"Privacy Engineering Platform"}),(0,n.jsx)("link",{rel:"icon",href:"/favicon.ico"})]}),(0,n.jsxs)(r.kCb,{as:"main",direction:"column",py:s?6:0,px:s?10:0,h:s?"calc(100% - 48px)":"full",flex:1,minWidth:0,overflow:"auto",...c,children:[m?(0,n.jsx)(u,{}):null,i]})]})}},58754:function(e,i,t){"use strict";var n=t(24246),r=t(96306),s=t(70788);i.Z=e=>{let{heading:i,breadcrumbItems:t,isSticky:l=!0,children:o,rightContent:a,style:d,...c}=e;return(0,n.jsxs)("div",{...c,style:l?{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,n.jsxs)(r.jqI,{justify:"space-between",children:["string"==typeof i?(0,n.jsx)(r.lQT,{className:t||o?"pb-4":void 0,level:1,"data-testid":"page-heading",children:i}):i,a&&(0,n.jsx)("div",{"data-testid":"page-header-right-content",children:a})]}),!!t&&(0,n.jsx)(s.m,{className:o?"pb-4":void 0,items:t,"data-testid":"page-breadcrumb"}),o]})}},19904:function(e,i,t){"use strict";t.d(i,{Tg:function(){return l}});var n=t(24246),r=t(16134),s=t(31793);let l=e=>(0,r.C)(s.uu).filter(i=>e.includes(i)).length>0;i.ZP=e=>{let{scopes:i,children:t}=e;return l(i)?(0,n.jsx)(n.Fragment,{children:t}):null}},8133:function(e,i,t){"use strict";var n=t(24246),r=t(96306);i.Z=e=>{let{title:i,children:t,isOpen:s,onClose:l,modalContentProps:o,showCloseButton:a=!1,footer:d,...c}=e;return(0,n.jsxs)(r.u_l,{isOpen:s,onClose:l,isCentered:!0,scrollBehavior:"inside",size:"xl",id:"add-modal",...c,children:[(0,n.jsx)(r.ZAr,{}),(0,n.jsxs)(r.hzk,{textAlign:"left",p:0,"data-testid":"add-modal-content",...o,children:[a&&(0,n.jsx)(r.olH,{}),(0,n.jsx)(r.xBx,{p:0,children:(0,n.jsx)(r.xuv,{backgroundColor:"gray.50",px:6,py:4,border:"1px",borderColor:"gray.200",borderTopRadius:6,display:"flex",justifyContent:"space-between",alignItems:"center",children:(0,n.jsx)(r.X6q,{as:"h3",size:"sm",children:i})})}),(0,n.jsx)(r.fef,{pb:4,overflow:"auto",children:t}),d&&(0,n.jsx)(r.mzw,{children:d})]})]})}},70788:function(e,i,t){"use strict";t.d(i,{m:function(){return d}});var n=t(24246),r=t(96306),s=t(79894),l=t.n(s),o=t(27378);let{Text:a}=r.AntTypography,d=e=>{let{items:i,...t}=e,s=(0,o.useMemo)(()=>null==i?void 0:i.map((e,t)=>{let s=t===i.length-1,o={...e},d=o.onClick&&!o.href;return("string"==typeof o.title&&(o.title=(0,n.jsx)(a,{style:{color:"inherit",maxWidth:s?void 0:400},ellipsis:!s,id:s?"breadcrumb-current-page":void 0,children:o.title})),d)?o.title=(0,n.jsx)(r.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,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("span",{className:"anticon align-text-bottom",children:o.icon}),o.title]})),o.href&&o.title&&(o.title=(0,n.jsx)(l(),{href:o.href,className:"ant-breadcrumb-link",children:o.title}),delete o.href)),o}),[i]);return(0,n.jsx)(r.zrq,{items:s,...t})}},6675:function(e,i,t){"use strict";t.d(i,{ZS:function(){return o},a4:function(){return s}});var n=t(3228);let r=t(78780).u.injectEndpoints({endpoints:e=>({getPurposes:e.query({query:()=>"purposes"})})}),{useGetPurposesQuery:s}=r,l={purposes:{},special_purposes:{}},o=(0,n.P1)(r.endpoints.getPurposes.select(),e=>{let{data:i}=e;return i||l})},51263:function(e,i,t){"use strict";var n=t(24246),r=t(96306);i.Z=e=>{let{title:i,children:t,...s}=e;return(0,n.jsxs)(r.xuv,{backgroundColor:"var(--fidesui-bg-corinth)",borderRadius:"4px",padding:"3","data-testid":"setting-".concat(i),...s,children:[(0,n.jsx)(r.xvT,{as:"h3",fontSize:"md",fontWeight:"bold",lineHeight:5,color:"gray.700",mb:3,children:i}),t]})}},59512:function(e,i,t){"use strict";t.d(i,{Cu:function(){return o},Py:function(){return r},fj:function(){return l},uh:function(){return s}});var n=t(54682);let r=[1,3,4,5,6],s="https://ethyca.com/docs/tutorials/consent-management/consent-management-configuration/configure-tcf#vendor-overrides",l={[n.FF.PURPOSE_RESTRICTION]:"Purpose restriction",[n.FF.REQUIRE_CONSENT]:"Require consent",[n.FF.REQUIRE_LEGITIMATE_INTEREST]:"Require legitimate interest"},o={[n.PY.RESTRICT_ALL_VENDORS]:"Restrict all vendors",[n.PY.RESTRICT_SPECIFIC_VENDORS]:"Restrict specific vendors",[n.PY.ALLOW_SPECIFIC_VENDORS]:"Allow specific vendors"}},60325:function(e,i,t){"use strict";t.d(i,{DD:function(){return o},Go:function(){return a},TK:function(){return r},Uv:function(){return c},k1:function(){return s},y3:function(){return u}});var n=t(54682);let r=e=>{var i;return null!==(i=null==e?void 0:e.filter(e=>e.selected).map(e=>e.id))&&void 0!==i?i:[]},s=e=>{var i;return null!==(i=null==e?void 0:e.filter(e=>e.selected))&&void 0!==i?i:[]},l=[{language:n.eU.EN,is_default:!0,title:"Title",description:"Description",accept_button_label:"Accept",reject_button_label:"Reject",save_button_label:"Save",acknowledge_button_label:"OK",privacy_preferences_link_label:"Privacy Preferences"}],o={name:"",disabled:!1,dismissable:!0,allow_language_selection:!1,show_layer1_notices:!1,layer1_button_options:n.Of.OPT_IN_OPT_OUT,regions:[],translations:l,auto_detect_language:!0,auto_subdomain_cookie_deletion:!0},a=(e,i)=>{let t=i.find(i=>i.id===e.language);return t?t.name:e.language},d=e=>{var i,t,n,r,s,l,o,a,d;let{language:c,is_default:u,accept_button_label:p,reject_button_label:h}=e;return{language:c,is_default:u,accept_button_label:p,reject_button_label:h,title:e.title,description:e.description,acknowledge_button_label:null!==(i=e.acknowledge_button_label)&&void 0!==i?i:void 0,banner_title:null!==(t=e.banner_title)&&void 0!==t?t:void 0,banner_description:null!==(n=e.banner_description)&&void 0!==n?n:void 0,purpose_header:null!==(r=e.purpose_header)&&void 0!==r?r:void 0,privacy_policy_link_label:null!==(s=e.privacy_policy_link_label)&&void 0!==s?s:void 0,privacy_policy_url:null!==(l=e.privacy_policy_url)&&void 0!==l?l:void 0,privacy_preferences_link_label:null!==(o=e.privacy_preferences_link_label)&&void 0!==o?o:void 0,save_button_label:null!==(a=e.save_button_label)&&void 0!==a?a:void 0,modal_link_label:null!==(d=e.modal_link_label)&&void 0!==d?d:void 0}},c=e=>{let{created_at:i,updated_at:t,privacy_notices:n,origin:r,id:s,...l}=e;return{...l,privacy_notice_ids:n?n.map(e=>e.id):[],translations:e.translations?e.translations.map(e=>d(e)):[]}},u=e=>e===n.re.PRIVACY_CENTER?{title:{included:!0,required:!0},description:{included:!0,required:!0},save_button_label:{included:!0,required:!0},accept_button_label:{included:!0,required:!0},reject_button_label:{included:!0,required:!0},privacy_policy_link_label:{included:!0},privacy_policy_url:{included:!0},modal_link_label:{included:!0}}:e===n.re.MODAL?{title:{included:!0,required:!0},description:{included:!0,required:!0},accept_button_label:{included:!0,required:!0},reject_button_label:{included:!0,required:!0},save_button_label:{included:!0,required:!0},acknowledge_button_label:{included:!0,required:!0},privacy_policy_link_label:{included:!0},privacy_policy_url:{included:!0},privacy_preferences_link_label:{included:!0},modal_link_label:{included:!0}}:e===n.re.BANNER_AND_MODAL?{title:{included:!0,required:!0},banner_title:{included:!0},description:{included:!0,required:!0},banner_description:{included:!0},accept_button_label:{included:!0,required:!0},reject_button_label:{included:!0,required:!0},save_button_label:{included:!0,required:!0},acknowledge_button_label:{included:!0,required:!0},privacy_policy_link_label:{included:!0},privacy_policy_url:{included:!0},privacy_preferences_link_label:{included:!0,required:!0},modal_link_label:{included:!0}}:e===n.re.TCF_OVERLAY?{title:{included:!0,required:!0},banner_title:{included:!0},description:{included:!0,required:!0},banner_description:{included:!0},purpose_header:{included:!0},accept_button_label:{included:!0,required:!0},reject_button_label:{included:!0,required:!0},save_button_label:{included:!0,required:!0},acknowledge_button_label:{included:!0,required:!0},privacy_policy_link_label:{included:!0},privacy_policy_url:{included:!0},privacy_preferences_link_label:{included:!0,required:!0},modal_link_label:{included:!0}}:{title:{included:!0,required:!0},description:{included:!0,required:!0},accept_button_label:{included:!0,required:!0},reject_button_label:{included:!0,required:!0},save_button_label:{included:!0,required:!0},acknowledge_button_label:{included:!0,required:!0},privacy_policy_link_label:{included:!0},privacy_policy_url:{included:!0},privacy_preferences_link_label:{included:!0,required:!0},modal_link_label:{included:!0}}},96236:function(e,i,t){"use strict";t.r(i),t.d(i,{default:function(){return J}});var n=t(24246),r=t(96306),s=t(34090),l=t(27378),o=t(16134),a=t(25980),d=t(812),c=t(77213),u=t(58754),p=t(6675),h=t(46628),x=t(7426),g=t(40324);let b=e=>{let{children:i,purpose:t,endCol:s}=e;return(0,n.jsx)(r.kCb,{flex:"1",justifyContent:"center",alignItems:"center",borderLeft:"solid 1px",borderRight:s?"solid 1px":"unset",borderColor:"gray.200",height:"100%",minWidth:"36px",children:[1,3,4,5,6].includes(t)?null:(0,n.jsx)(r.xuv,{children:i})})};var v=()=>{let{values:e,setFieldValue:i}=(0,s.u6)(),{purposes:t}=(0,o.C)(p.ZS);return(0,n.jsx)(s.F2,{name:"purposeOverrides",render:()=>(0,n.jsxs)(r.kCb,{flexDirection:"column",minWidth:"944px",children:[(0,n.jsxs)(r.kCb,{width:"100%",border:"solid 1px",borderColor:"gray.200",backgroundColor:"gray.50",height:"36px",children:[(0,n.jsx)(r.kCb,{width:"600px",pl:"4",fontSize:"xs",fontWeight:"medium",lineHeight:"4",alignItems:"center",borderRight:"solid 1px",borderColor:"gray.200",children:"TCF purpose"}),(0,n.jsx)(r.kCb,{flex:"1",alignItems:"center",borderRight:"solid 1px",borderColor:"gray.200",minWidth:"36px",children:(0,n.jsx)(r.xvT,{pl:"4",fontSize:"xs",fontWeight:"medium",lineHeight:"4",children:"Allowed"})}),(0,n.jsx)(r.kCb,{flex:"1",alignItems:"center",borderRight:"solid 1px",borderColor:"gray.200",children:(0,n.jsx)(r.xvT,{pl:"4",fontSize:"xs",fontWeight:"medium",lineHeight:"4",children:"Consent"})}),(0,n.jsx)(r.kCb,{flex:"1",alignItems:"center",children:(0,n.jsx)(r.xvT,{pl:"4",fontSize:"xs",fontWeight:"medium",lineHeight:"4",children:"Legitimate interest"})})]}),e.purposeOverrides.map((s,l)=>(0,n.jsxs)(r.kCb,{width:"100%",height:"36px",alignItems:"center",borderBottom:"solid 1px",borderColor:"gray.200",backgroundColor:"#fff",children:[(0,n.jsxs)(r.kCb,{width:"600px",borderLeft:"solid 1px",borderColor:"gray.200",p:0,alignItems:"center",height:"100%",pl:"4",fontSize:"xs",fontWeight:"normal",lineHeight:"4",children:["Purpose ",s.purpose,": ",t[s.purpose].name]}),(0,n.jsx)(r.kCb,{flex:"1",justifyContent:"center",alignItems:"center",borderLeft:"solid 1px",borderColor:"gray.200",height:"100%",children:(0,n.jsx)(r.xuv,{children:(0,n.jsx)(g.w8,{name:"purposeOverrides[".concat(l,"].is_included"),onChange:e=>{e||(i("purposeOverrides[".concat(l,"].is_consent"),!1),i("purposeOverrides[".concat(l,"].is_legitimate_interest"),!1))}})})}),(0,n.jsx)(b,{purpose:s.purpose,children:(0,n.jsx)(g.w8,{isDisabled:!e.purposeOverrides[l].is_included||e.purposeOverrides[l].is_legitimate_interest,name:"purposeOverrides[".concat(l,"].is_consent")})}),(0,n.jsx)(b,{purpose:s.purpose,endCol:!0,children:(0,n.jsx)(g.w8,{isDisabled:!e.purposeOverrides[l].is_included||e.purposeOverrides[l].is_consent,name:"purposeOverrides[".concat(l,"].is_legitimate_interest")})})]},s.purpose))]})})},m=t(59301),_=e=>{let{name:i,enabled:t}=e;return(0,n.jsxs)(r.Kqy,{spacing:2,fontSize:"sm",lineHeight:"5",fontWeight:"medium",color:"gray.700",children:[(0,n.jsxs)(r.xvT,{children:[i," status"," ",t?(0,n.jsx)(r.j8w,{color:"success",children:"Enabled"}):(0,n.jsx)(r.j8w,{color:"error",children:"Disabled"})]}),(0,n.jsxs)(r.xvT,{children:["To ",t?"disable":"enable"," ",i,", please contact your Fides administrator or"," ",(0,n.jsx)(m.Z,{href:"mailto:support@ethyca.com",children:"Ethyca support"}),"."]})]})},f=t(46238),j=e=>{var i,t;let{label:l,options:o,layout:a,defaultFirstSelected:d=!0,...c}=e,[u,p]=(0,s.U$)(c),h={...u,value:null!==(i=u.value)&&void 0!==i?i:""},x=!!(p.touched&&p.error),b=d?o[0]:void 0,v=null!==(t=o.find(e=>e.value===h.value))&&void 0!==t?t:b,m=e=>{h.onChange(c.name)(e.target.value)};return"stacked"===a?(0,n.jsxs)(r.NIc,{isInvalid:x,children:[(0,n.jsxs)(r.jqI,{className:"w-fit",children:[l?(0,n.jsx)(g.__,{children:l}):null,(0,n.jsx)(r.y02.Group,{onChange:m,value:null==v?void 0:v.value,"data-testid":"input-".concat(h.name),children:(0,n.jsx)(r.jqI,{className:"flex-col gap-3",children:o.map(e=>{let{value:i,label:t,tooltip:s}=e;return(0,n.jsx)(r.y02,{value:i,"data-testid":"option-".concat(i),children:(0,n.jsxs)(r.jqI,{className:"items-center gap-2",children:[(0,n.jsx)(r.xvT,{fontSize:"sm",fontWeight:"medium",children:t}),s?(0,n.jsx)(f.b,{label:s}):null]})},i)})})})]}),(0,n.jsx)(g.Bc,{isInvalid:x,message:p.error,fieldName:h.name})]}):(0,n.jsxs)(r.NIc,{isInvalid:x,children:[(0,n.jsxs)(r.rjZ,{templateColumns:"1fr 3fr",children:[(0,n.jsx)(g.__,{children:l}),(0,n.jsx)(r.y02.Group,{onChange:m,value:null==v?void 0:v.value,"data-testid":"input-".concat(h.name),children:(0,n.jsx)(r.jqI,{children:o.map(e=>(0,n.jsx)(r.y02,{value:e.value,"data-testid":"option-".concat(e.value),children:e.label},e.value))})})]}),(0,n.jsx)(g.Bc,{isInvalid:x,message:p.error,fieldName:h.name})]})},y=t(54682),C=t(51263);let w=e=>{let{title:i,children:t}=e;return(0,n.jsxs)(r.Kqy,{spacing:3,mb:3,"data-testid":"section-".concat(i),children:[(0,n.jsx)(r.xvT,{fontSize:"sm",fontWeight:"bold",lineHeight:5,color:"gray.700",children:i}),t]})};var T=()=>{let{tcf:e}=(0,a.hz)(),i=!!(0,o.C)(x.D2).enabled,{values:t,setFieldValue:l}=(0,s.u6)(),d=!!t.gpp.us_approach;return(0,n.jsx)(C.Z,{title:"Global Privacy Platform",children:(0,n.jsxs)(r.Kqy,{spacing:6,children:[(0,n.jsx)(_,{name:"GPP",enabled:i}),i?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(w,{title:"GPP U.S.",children:(0,n.jsx)(j,{name:"gpp.us_approach",layout:"stacked",defaultFirstSelected:!1,options:[{label:"Enable U.S. National",value:y.en.NATIONAL,tooltip:"When US National is selected, Fides will present the same privacy notices to all consumers located anywhere in the United States."},{label:"Enable U.S. State-by-State",value:y.en.STATE,tooltip:"When state-by-state is selected, Fides will only present consent to consumers and save their preferences if they are located in a state that is supported by the GPP. The consent options presented to consumers will vary depending on the regulations in each state."},{label:"Enable US National and State-by-State notices",value:y.en.ALL,tooltip:"When enabled, Fides can be configured to serve the National and U.S. state notices. This mode is intended to provide consent coverage to U.S. states with new privacy laws where GPP support lags behind the effective date of state laws."}]})}),d?(0,n.jsxs)(w,{title:"MSPA",children:[(0,n.jsx)(g.Xl,{name:"gpp.mspa_covered_transactions",label:"All transactions covered by MSPA",tooltip:"When selected, the Fides CMP will communicate to downstream vendors that all preferences are covered under the MSPA.",onChange:e=>{e||(l("gpp.mspa_service_provider_mode",!1),l("gpp.mspa_opt_out_option_mode",!1))}}),(0,n.jsx)(g.w8,{label:"Enable MSPA service provider mode",name:"gpp.mspa_service_provider_mode",variant:"switchFirst",tooltip:"Enable service provider mode if you do not engage in any sales or sharing of personal information.",isDisabled:!!t.gpp.mspa_opt_out_option_mode||!t.gpp.mspa_covered_transactions}),(0,n.jsx)(g.w8,{label:"Enable MSPA opt-out option mode",name:"gpp.mspa_opt_out_option_mode",variant:"switchFirst",tooltip:"Enable opt-out option mode if you engage or may engage in the sales or sharing of personal information, or process any information for the purpose of targeted advertising.",isDisabled:!!t.gpp.mspa_service_provider_mode||!t.gpp.mspa_covered_transactions})]}):null]}):null,e?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(r.izJ,{color:"gray.200"}),(0,n.jsxs)(w,{title:"GPP Europe",children:[(0,n.jsx)(r.xvT,{fontSize:"sm",fontWeight:"medium",children:"Configure TCF string for Global Privacy Platform"}),(0,n.jsx)(g.w8,{label:"Enable TC string",name:"gpp.enable_tcfeu_string",variant:"switchFirst",tooltip:"When enabled, the GPP API will include a TCF EU consent string for users who are in regions where TCF applies."})]})]}):null]})})},S=t(64781),k=t(60325),q=()=>{var e,i,t;let{tcf:l}=(0,a.hz)(),{values:o,setFieldValue:d}=(0,s.u6)(),{data:c,isLoading:u}=(0,S.gT)(),p=[...(0,k.k1)(null!==(i=null==c?void 0:c.locations)&&void 0!==i?i:[]),...(0,k.k1)(null!==(t=null==c?void 0:c.location_groups)&&void 0!==t?t:[])].sort((e,i)=>e.name<i.name?-1:1);return l?(0,n.jsxs)(C.Z,{title:"Publisher settings",children:[(0,n.jsx)(r.AntTypography.Paragraph,{className:"mb-3",children:"Specify the country in which your organization operates for TCF compliance. This setting will determine the 'Publisher Country Code ' transmitted in the Transparency and Consent (TC) Data."}),(0,n.jsx)(r.PPS.Item,{label:"Publisher country",htmlFor:"publisher_country_code",children:(0,n.jsx)(r.AOh,{"data-testid":"input-publisher_settings.publisher_country_code",id:"publisher_country_code",loading:u,allowClear:!0,options:(0,r.Ky_)(null==p?void 0:p.map(e=>e.id)),placeholder:"Select a country",value:null===(e=o.tcfPublisherSettings.publisher_country_code)||void 0===e?void 0:e.replace("_","-").toUpperCase(),onChange:e=>d("tcfPublisherSettings.publisher_country_code",null==e?void 0:e.toLowerCase()),className:"!w-80"})})]}):null},I=t(52955),N=t(71795),E=t(59512),P=t(55484),O=t(8133),R=t(31883);let F=P.Ry().shape({name:P.Z_().required().label("Name")}),L=e=>{let{isOpen:i,onClose:t,onSuccess:l}=e,o=(0,r.pmc)(),[a]=(0,I.LK)(),c=async e=>{let i=await a({name:e.name});(0,R.D4)(i)?o((0,h.Vo)((0,d.e$)(i.error))):(o((0,h.t5)("Successfully created TCF configuration")),null==l||l(i.data.id),t())};return(0,n.jsx)(O.Z,{title:"Create a new TCF configuration",isOpen:i,onClose:t,children:(0,n.jsx)(s.J9,{initialValues:{name:""},onSubmit:c,validationSchema:F,children:e=>{let{isValid:i,dirty:l}=e;return(0,n.jsx)(s.l0,{children:(0,n.jsxs)(r.vyj,{direction:"vertical",size:"small",className:"w-full",children:[(0,n.jsx)(r.xvT,{children:"TCF configurations allow you to define unique sets of publisher restrictions. These configurations can be added to privacy experiences."}),(0,n.jsx)(g.j0,{id:"name",name:"name",label:"Name",isRequired:!0,variant:"stacked"}),(0,n.jsxs)(r.vyj,{className:"w-full justify-end pt-6",children:[(0,n.jsx)(r.wpx,{onClick:t,children:"Cancel"}),(0,n.jsx)(r.wpx,{type:"primary",htmlType:"submit",disabled:!i||!l,"data-testid":"save-config-button",children:"Save"})]})]})})}})})};var A=t(79894),z=t.n(A);let W=e=>{let{width:i,style:t,borderLeft:s=!1,borderRight:l=!1,...o}=e;return(0,n.jsx)(r.jqI,{align:"center",className:"h-full px-4",...o,style:{borderLeft:s?"solid 1px":"none",borderRight:l?"solid 1px":"none",borderColor:"var(--ant-color-border)",width:i,...t},role:"cell"})},Z=e=>{let{width:i,style:t,borderLeft:s=!1,children:l,...o}=e;return(0,n.jsx)(r.jqI,{align:"center",role:"columnheader",className:"px-4",...o,style:{borderLeft:s?"solid 1px":"none",borderColor:"var(--ant-color-border)",fontWeight:500,whiteSpace:"nowrap",width:i,...t},children:l})},D=e=>{let{isHeader:i=!1,isLastRow:t=!1,style:s,...l}=e;return(0,n.jsx)(r.jqI,{role:i?"rowheader":"row",className:"h-9 w-full",...l,style:{backgroundColor:i?"var(--fidesui-bg-default)":void 0,borderBottom:t?"none":"solid 1px",borderColor:"var(--ant-color-border)",...s}})},M=e=>{let{config:i,isLoading:t,style:s,...l}=e,{purposes:a}=(0,o.C)(p.ZS);return(0,n.jsxs)(r.jqI,{vertical:!0,...l,style:{maxWidth:"1200px",border:"solid 1px",borderColor:"var(--ant-color-border)",backgroundColor:"var(--ant-color-bg-base)",fontSize:"12px",...s},"aria-label":"Publisher restrictions table",role:"table","data-testid":"publisher-restrictions-table",children:[(0,n.jsxs)(D,{isHeader:!0,style:{width:"100%"},children:[(0,n.jsx)(Z,{width:"600px",children:"TCF purpose"}),(0,n.jsxs)(Z,{flex:1,gap:3,borderLeft:!0,children:["Restrictions",(0,n.jsx)(f.b,{label:"Restrictions control how vendors are permitted to process data for specific purposes. Fides supports three restriction types: Purpose Restriction to completely disallow data processing for a purpose, Require Consent to allow processing only with explicit user consent, and Require Legitimate Interest to allow processing based on legitimate business interest unless the user objects."})]}),(0,n.jsxs)(Z,{width:"100px",gap:3,borderLeft:!0,children:["Flexible",(0,n.jsx)(f.b,{label:'Indicates whether the legal basis for this purpose can be overridden by publisher restrictions. If marked "No," the purpose has a fixed legal basis defined by the TCF and cannot be changed.'})]}),(0,n.jsx)(Z,{width:"100px",borderLeft:!0,children:"Actions"})]}),Object.values(a).map((e,s)=>(0,n.jsxs)(D,{isLastRow:s===Object.values(a).length-1,children:[(0,n.jsxs)(W,{width:"600px",children:["Purpose ",e.id,": ",e.name]}),(0,n.jsx)(W,{flex:1,borderLeft:!0,"data-testid":"restriction-type-cell-".concat(e.id),children:t?(0,n.jsx)(r.OdW,{height:"16px",width:"100%"}):(()=>{var t;let s=(null==i?void 0:null===(t=i.restriction_types_per_purpose)||void 0===t?void 0:t[e.id])||[];return 0===s.length?"none":1===s.length?(0,n.jsx)(r.xvT,{size:"sm",whiteSpace:"nowrap",children:E.fj[s[0]]}):(0,n.jsxs)(r.xvT,{children:[s.length," restrictions"]})})()}),(0,n.jsx)(W,{width:"100px",borderLeft:!0,children:E.Py.includes(e.id)?(0,n.jsx)(r.j8w,{color:"error","data-testid":"flexibility-tag-".concat(e.id),children:"No"}):(0,n.jsx)(r.j8w,{color:"success","data-testid":"flexibility-tag-".concat(e.id),children:"Yes"})}),(0,n.jsx)(W,{width:"100px",borderLeft:!0,children:(0,n.jsx)(z(),{href:"/settings/consent/".concat(null==i?void 0:i.id,"/").concat(e.id),passHref:!0,legacyBehavior:!0,children:(0,n.jsx)(r.wpx,{size:"small","data-testid":"edit-restriction-btn-".concat(e.id),children:"Edit"})})})]},e.id))]})};var V=t(56358),H=t(19904);let U=()=>(0,n.jsxs)(r.vyj,{direction:"vertical",size:"small",children:[(0,n.jsx)(r.OdW,{width:"100%",className:"h-4"}),(0,n.jsx)(r.OdW,{width:"100%",className:"h-4"}),(0,n.jsx)(r.OdW,{width:"100%",className:"h-4"})]}),B=e=>{let{searchResults:i,selectedConfigId:t,handleSelection:s,userCanDeleteConfigs:l,onDeleteOpen:o,setConfigToDelete:a}=e;return(0,n.jsx)(r.y02.Group,{onChange:e=>s(e.target.value),value:t,className:"flex flex-col gap-2",children:i.map(e=>(0,n.jsxs)(r.jqI,{className:l?"justify-between":"justify-start","data-testid":"tcf-config-item-".concat(e.id),children:[(0,n.jsx)(r.y02,{value:e.id,name:"tcf-config-id","data-testid":"tcf-config-item",children:(0,n.jsx)(r.xvT,{className:"text-sm",children:e.name})}),l&&(0,n.jsx)(r.wpx,{type:"text",size:"small",icon:(0,n.jsx)(V.q,{fontSize:16}),onClick:i=>{i.stopPropagation(),a(e),o()},"data-testid":"delete-config-button"})]},e.id))})},G=e=>{let i,{searchTerm:t,setSearchTerm:s,searchResults:o,selectedConfigId:a,handleSelection:d,userCanCreateConfigs:c,userCanDeleteConfigs:u,modalOnOpen:p,onDeleteOpen:h,setConfigToDelete:x,isLoading:g,setDropdownOpen:b,configurations:v}=e,[m,_]=(0,l.useState)(a);return(0,l.useEffect)(()=>{_(a)},[a]),i=g?(0,n.jsx)(U,{}):0===o.length?(0,n.jsx)(r.xvT,{className:"text-center",children:"No configurations found."}):(0,n.jsx)(B,{searchResults:o,selectedConfigId:m,handleSelection:e=>{_(e)},userCanDeleteConfigs:u,onDeleteOpen:h,setConfigToDelete:x}),(0,n.jsxs)(r.V4A,{title:"TCF configurations",className:"min-w-[300px]",extra:(0,n.jsx)(r.wpx,{type:"text",size:"small",icon:(0,n.jsx)(r.Two,{}),onClick:()=>b(!1),"data-testid":"close-config-dropdown"}),style:{boxShadow:"var(--ant-box-shadow)"},children:[v.length>10&&(0,n.jsx)(r.BZy,{size:"sm",children:(0,n.jsx)(r.uFc,{className:"mb-4",placeholder:"Search...",onChange:e=>s(e.target.value),value:t})}),i,(0,n.jsxs)(r.jqI,{gap:"small",className:"mt-4",children:[c&&(0,n.jsx)(r.wpx,{size:"small",onClick:()=>{p(),b(!1)},className:"flex-1","data-testid":"create-config-button",children:"+ Create"}),(0,n.jsx)(r.wpx,{size:"small",onClick:()=>d(m),className:"flex-1","data-testid":"apply-config-button",disabled:m===a,children:"Apply"})]})]})},$=e=>(0,n.jsx)(G,{...e}),K=e=>{var i;let{selectedConfigId:t,configurations:s,isLoading:o=!1,onConfigurationSelect:a,onConfigurationDelete:c}=e,u=(0,H.Tg)([y.Sh.PRIVACY_EXPERIENCE_CREATE]),p=(0,H.Tg)([y.Sh.PRIVACY_EXPERIENCE_CREATE]),h=(0,r.pmc)({id:"tcf-config-toast"}),[x]=(0,I.Cm)(),{isOpen:g,onOpen:b,onClose:v}=(0,r.qY0)(),{isOpen:m,onOpen:_,onClose:f}=(0,r.qY0)(),[j,C]=(0,l.useState)(""),[w,T]=(0,l.useState)(),[S,k]=(0,l.useState)(!1),q=(0,l.useMemo)(()=>j?s.filter(e=>e.name.toLowerCase().includes(j.toLowerCase())):s,[s,j]),N=(0,l.useMemo)(()=>s.find(e=>e.id===t),[s,t]),E=null!==(i=null==N?void 0:N.name)&&void 0!==i?i:"Select Configuration",P=e=>{a(e),k(!1)},O=async e=>{try{await x(e).unwrap(),null==c||c(e),T(void 0),f(),h({status:"success",description:'Configuration "'.concat(null==w?void 0:w.name,'" was successfully deleted.')})}catch(e){h({status:"error",description:(0,d.e$)(e,"A problem occurred while deleting the configuration.")})}};return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(r.S0p,{open:S,onOpenChange:k,trigger:["click"],overlayStyle:{zIndex:999},dropdownRender:()=>$({searchTerm:j,setSearchTerm:C,searchResults:q,selectedConfigId:t,handleSelection:P,userCanCreateConfigs:u,userCanDeleteConfigs:p,modalOnOpen:b,onDeleteOpen:_,setConfigToDelete:T,isLoading:o,setDropdownOpen:k,configurations:s}),children:(0,n.jsx)(r.wpx,{icon:(0,n.jsx)(r.v4q,{}),iconPosition:"end","data-testid":"tcf-config-dropdown-trigger",children:E})}),(0,n.jsx)(L,{isOpen:g,onClose:v,onSuccess:e=>{a(e)}}),(0,n.jsx)(r.cVQ,{isOpen:m,onClose:()=>{T(void 0),f()},onConfirm:()=>{w&&O(w.id)},title:"Delete configuration",message:"Are you sure you want to delete this configuration? This action cannot be undone."})]})};var Y=t(32885);let X=e=>{let{defaultChecked:i,onChange:t,...s}=e,o=(0,r.pmc)(),[a,c]=(0,l.useState)(i),[u,p]=(0,l.useState)(!1),{isLoading:g}=(0,Y.x8)(),[b,{isLoading:v}]=(0,x.L)(),[m]=(0,Y.M7)(),{data:_}=(0,Y.n3)(void 0,{skip:g}),j=async e=>{let i=await b({consent:{override_vendor_purposes:e}});e&&_&&await m(_.map(e=>({...e,is_included:!0,required_legal_basis:void 0}))),(i=>{if(o.closeAll(),null==t||t(e),(0,R.D4)(i)){let e=(0,d.e$)(i.error,"An unexpected error occurred while saving vendor override settings. Please try again.");null==t||t(!1),o((0,h.Vo)(e))}})(i)};return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(r.vyj,{direction:"vertical",size:"small",children:[(0,n.jsx)(r.xvT,{children:"Configure overrides for TCF related purposes."}),(0,n.jsxs)(r.vyj,{size:"small",children:[(0,n.jsx)(r.rAg,{size:"small",disabled:v,loading:v,...s,checked:a,defaultChecked:i,onClick:e=>{e?(c(e),j(e)):p(!0)},"data-testid":"tcf-override-toggle"}),(0,n.jsx)(r.xvT,{children:"Override vendor purposes"}),(0,n.jsx)(f.b,{label:"Toggle on if you want to globally change any flexible legal bases or remove TCF purposes from your CMP"})]})]}),(0,n.jsx)(r.cVQ,{isOpen:u,onClose:()=>p(!1),onConfirm:()=>{c(!1),j(!1),p(!1)},title:"Disable Vendor Overrides",message:"Are you sure you want to disable vendor overrides? Clicking 'Continue' will immediately remove any custom configurations you have set for TCF purposes for all experiences."})]})},Q=e=>{var i;let{isTCFOverrideEnabled:t}=e,[s,o]=(0,l.useState)(t),[a,d]=(0,l.useState)(!1),[c,u]=(0,N._)("selectedTCFConfigId",null),{data:p,isLoading:h}=(0,I.LS)({page:1,size:50},{skip:!t}),{data:x,isFetching:g}=(0,I.NZ)(c||"",{skip:!c});return(0,l.useEffect)(()=>{var e,i;!h&&(null==p?void 0:null===(e=p.items)||void 0===e?void 0:e.length)&&!c&&u(p.items[0].id),h||!c||(null==p?void 0:null===(i=p.items)||void 0===i?void 0:i.length)||u(null)},[h,null==p?void 0:p.items,c,u]),(0,n.jsxs)(C.Z,{title:"Publisher restrictions",fontSize:"sm",children:[(0,n.jsxs)(r.vyj,{direction:"vertical",size:"small",style:{width:"100%"},children:[(0,n.jsx)(X,{defaultChecked:s,onChange:e=>o(e)}),s&&(0,n.jsxs)(n.Fragment,{children:[h&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(r.OdW,{height:"20px"}),(0,n.jsx)(r.OdW,{height:"20px"}),(0,n.jsx)(r.OdW,{height:"32px",width:"200px"})]}),!h&&(null==p?void 0:null===(i=p.items)||void 0===i?void 0:i.length)?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(r.xvT,{children:"The table below allows you to adjust which TCF purposes you allow as part of your user facing notices and business activities."}),(0,n.jsxs)(r.xvT,{children:["To configure this section, select a TCF purpose to edit the restriction type and vendors."," ",(0,n.jsx)(m.Z,{href:E.uh,children:"Learn more about publisher restrictions"})," ","in our docs."]}),(0,n.jsx)(K,{selectedConfigId:c||"",configurations:(null==p?void 0:p.items)||[],onConfigurationSelect:u})]}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(r.xvT,{children:['To define custom publisher restrictions select "create configuration" below.'," ",(0,n.jsx)(m.Z,{href:E.uh,children:"Learn more about publisher restrictions"})," ","in our docs."]}),(0,n.jsx)(r.wpx,{onClick:()=>d(!0),"data-testid":"create-config-button",children:"Create configuration +"})]})]})]}),(0,n.jsx)(L,{isOpen:a,onClose:()=>d(!1),onSuccess:e=>{u(e)}}),s&&c&&(0,n.jsx)(M,{className:"mt-3",config:x,isLoading:g})]})};var J=()=>{var e,i;let{isLoading:t}=(0,Y.x8)(),{tcf:g}=(0,a.hz)(),{data:b,isLoading:m}=(0,Y.n3)(void 0,{skip:t||!g}),[f,{isLoading:j}]=(0,Y.M7)(),{data:w,isLoading:S}=(0,x.tB)({api_set:!0}),{data:k,isLoading:I}=(0,x.tB)({api_set:!1}),[N]=(0,x.L)(),E=(0,o.C)(x.D2),P=(0,o.C)(x.Yh),O=(0,l.useMemo)(()=>w&&(null==w?void 0:w.consent)&&"override_vendor_purposes"in w.consent?w.consent.override_vendor_purposes:!!k&&null!=k&&!!k.consent&&"override_vendor_purposes"in k.consent&&k.consent.override_vendor_purposes,[w,k]),{isLoading:R}=(0,p.a4)(),F=(0,r.pmc)(),L=async e=>{var i;let t=e=>{if(F.closeAll(),(0,d.D4)(e)){let i=(0,d.e$)(e.error,"An unexpected error occurred while saving. Please try again.");F((0,h.Vo)(i))}else F((0,h.t5)("Settings saved successfully"))},n=[...e.purposeOverrides.map(e=>{let i;return e.is_consent&&(i=y.I$.CONSENT),e.is_legitimate_interest&&(i=y.I$.LEGITIMATE_INTERESTS),{purpose:e.purpose,is_included:e.is_included,required_legal_basis:i}})];if(O){let e=await f(n);if((0,d.D4)(e)){t(e);return}}let{enabled:r,...s}=e.gpp;t(await N({gpp:s,plus_consent_settings:{tcf_publisher_country_code:null!==(i=e.tcfPublisherSettings.publisher_country_code)&&void 0!==i?i:null}}))},A=(0,l.useMemo)(()=>({purposeOverrides:b?b.map(e=>({purpose:e.purpose,is_included:e.is_included,is_consent:e.required_legal_basis===y.I$.CONSENT,is_legitimate_interest:e.required_legal_basis===y.I$.LEGITIMATE_INTERESTS})):[],gpp:E,tcfPublisherSettings:{publisher_country_code:P.tcf_publisher_country_code}}),[b,E,P]),z=(0,l.useMemo)(()=>(null==b?void 0:b.some(e=>!e.is_included||e.required_legal_basis===y.I$.CONSENT||e.required_legal_basis===y.I$.LEGITIMATE_INTERESTS))||!1,[b]),W=null===(i=(0,a.hz)())||void 0===i?void 0:null===(e=i.flags)||void 0===e?void 0:e.publisherRestrictions;return(0,n.jsx)(c.Z,{title:"Consent Configuration",children:t||R||m||S||I?(0,n.jsx)(r.kCb,{justifyContent:"center",alignItems:"center",height:"100%",children:(0,n.jsx)(r.$jN,{})}):(0,n.jsxs)(r.xuv,{"data-testid":"consent-configuration",children:[(0,n.jsx)(u.Z,{heading:"Consent settings"}),(0,n.jsxs)(r.Kqy,{spacing:3,mb:3,children:[(0,n.jsx)(C.Z,{title:"Transparency & Consent Framework settings",children:(0,n.jsx)(_,{name:"TCF",enabled:g})}),g&&!z&&W&&(0,n.jsx)(Q,{isTCFOverrideEnabled:O})]}),(0,n.jsx)(s.J9,{initialValues:A,enableReinitialize:!0,onSubmit:L,children:e=>{let{dirty:i,isValid:t,isSubmitting:l}=e;return(0,n.jsx)(s.l0,{children:(0,n.jsxs)(r.Kqy,{spacing:6,children:[g&&(z||!W)&&(0,n.jsxs)(C.Z,{title:"Vendor overrides",fontSize:"sm",children:[(0,n.jsx)(X,{defaultChecked:O,disabled:j}),O&&(0,n.jsxs)(r.Kqy,{mt:2,spacing:2,children:[(0,n.jsx)(r.xvT,{children:"The table below allows you to adjust which TCF purposes you allow as part of your user facing notices and business activites."}),(0,n.jsx)(r.xvT,{children:"To configure this section, select the purposes you allow and where available, the appropriate legal bases (either Consent or Legitimate Interest)."}),(0,n.jsx)(v,{})]})]}),(0,n.jsx)(q,{}),(0,n.jsx)(T,{}),(0,n.jsx)(r.wpx,{htmlType:"submit",type:"primary",disabled:!i||!t,loading:l,"data-testid":"save-btn",className:"self-start",children:"Save"})]})})}})]})})}},31883:function(e,i,t){"use strict";t.d(i,{Bw:function(){return n.Bw},D4:function(){return n.D4}});var n=t(19043)}},function(e){e.O(0,[2888,9774,179],function(){return e(e.s=53748)}),_N_E=e.O()}]);
|
fides/ui-build/static/admin/_next/static/chunks/pages/settings/custom-fields-9ecb803099082bf4.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4065],{70378:function(e,l,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/settings/custom-fields",function(){return t(78422)}])},56358:function(e,l,t){"use strict";t.d(l,{q:function(){return s}});var i=t(24246);let s=(0,t(96306).IUT)({displayName:"TrashCanOutlineIcon",viewBox:"0 0 11 12",path:(0,i.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"})})},95492:function(e,l,t){"use strict";t.d(l,{l:function(){return s}});var i=t(24246);let s=(0,t(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"})})},77213:function(e,l,t){"use strict";t.d(l,{Z:function(){return p}});var i=t(24246),s=t(96306),a=t(88038),n=t.n(a),o=t(86677);t(27378);var r=t(25980),d=t(90867),c=t(77830),u=()=>{let e=(0,o.useRouter)();return(0,i.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,i.jsxs)(s.xuv,{children:[(0,i.jsxs)(s.Kqy,{direction:{base:"column",sm:"row"},justifyContent:"space-between",children:[(0,i.jsx)(s.xvT,{fontWeight:"semibold",children:"Configure your storage and messaging provider"}),(0,i.jsx)(s.wpx,{onClick:()=>{e.push(c.fz)},children:"Configure"})]}),(0,i.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:l,title:t,padded:a=!0,mainProps:c}=e,p=(0,r.hz)(),x=(0,o.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}),C=p.flags.privacyRequestsConfiguration&&(!f||!v)&&m;return(0,i.jsxs)(s.kCb,{"data-testid":t,direction:"column",h:"100vh",children:[(0,i.jsxs)(n(),{children:[(0,i.jsxs)("title",{children:["Fides Admin UI - ",t]}),(0,i.jsx)("meta",{name:"description",content:"Privacy Engineering Platform"}),(0,i.jsx)("link",{rel:"icon",href:"/favicon.ico"})]}),(0,i.jsxs)(s.kCb,{as:"main",direction:"column",py:a?6:0,px:a?10:0,h:a?"calc(100% - 48px)":"full",flex:1,minWidth:0,overflow:"auto",...c,children:[C?(0,i.jsx)(u,{}):null,l]})]})}},19904:function(e,l,t){"use strict";t.d(l,{Tg:function(){return n}});var i=t(24246),s=t(16134),a=t(31793);let n=e=>(0,s.C)(a.uu).filter(l=>e.includes(l)).length>0;l.ZP=e=>{let{scopes:l,children:t}=e;return n(l)?(0,i.jsx)(i.Fragment,{children:t}):null}},94799:function(e,l,t){"use strict";t.d(l,{k:function(){return a}});var i=t(76649);let s=e=>(0,i.Ln)({id:"string"},e),a=e=>(null!=e?e:[]).filter(s)},30320:function(e,l,t){"use strict";t.d(l,{m:function(){return r}});var i=t(27378),s=t(25980),a=t(41841),n=t(32885),o=t(94799);let r=e=>{let{resourceFidesKey:l,resourceType:t}=e,{errorAlert:r}=(0,a.VY)(),{plus:d}=(0,s.hz)(),c=(0,i.useMemo)(()=>null!=l?l:"",[]),u=(0,n.YU)(!0,{skip:!d}),p=(0,n.VN)(t,{skip:!d}),{data:x,isLoading:m,error:h,isError:f}=(0,n.PV)(null!=l?l:"",{skip:""!==c&&!(d&&c)}),[v]=(0,n._D)(),C=u.isLoading||p.isLoading||m,_=(0,i.useMemo)(()=>new Map((0,o.k)(u.data).map(e=>{var l;return[e.id,{...e,options:(null!==(l=e.allowed_values)&&void 0!==l?l:[]).map(e=>({value:e,label:e}))}]})),[u.data]),g=(0,i.useMemo)(()=>{var e;return null===(e=p.data)||void 0===e?void 0:e.filter(e=>e.active)},[p.data]),j=(0,i.useMemo)(()=>new Map((0,o.k)(g).map(e=>[e.id,e])),[g]),b=(0,i.useMemo)(()=>f&&(null==h?void 0:h.status)===404?new Map:new Map((0,o.k)(x).map(e=>[e.custom_field_definition_id,e])),[x,f,h]),y=(0,i.useMemo)(()=>{let e=[...j.keys()];return e.sort(),e},[j]),T=(0,i.useMemo)(()=>{let e={};return g&&b&&g.forEach(l=>{let t=b.get(l.id||"");t&&(l.allow_list_id&&"string[]"===l.field_type?e[t.custom_field_definition_id]=t.value:e[t.custom_field_definition_id]=t.value.toString())}),e},[g,b]),w=(0,i.useCallback)(async e=>{if(!d)return;let i="fides_key"in e&&""!==e.fides_key?e.fides_key:l;if(!i)return;let{customFieldValues:s}=e;if(!s||0===Object.keys(s).length)return;let a=[],n=[];y.forEach(e=>{let l=b.get(e),t=s[e];void 0===t||""===t||Array.isArray(t)&&0===t.length?(null==l?void 0:l.id)&&n.push(l.id):a.push({custom_field_definition_id:e,resource_id:i,id:null==l?void 0:l.id,value:t})});try{await v({resource_type:t,resource_id:i,upsert:a,delete:n})}catch(e){r("One or more custom fields have failed to save, please try again."),console.error(e)}},[d,b,r,l,y,v,t]);return{customFieldValues:T,definitionIdToCustomField:b,idToAllowListWithOptions:_,idToCustomFieldDefinition:j,isEnabled:d,isLoading:C,sortedCustomFieldDefinitionIds:y,upsertCustomFields:w}}},95346:function(e,l,t){"use strict";t.d(l,{uc:function(){return v},Hn:function(){return r},Uv:function(){return n},C7:function(){return d},mZ:function(){return f.m}});var i,s,a,n,o=t(54682);(i=a||(a={}))[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",o.AL.STRING,o.AL.STRING,o.AL.STRING_,(s=n||(n={})).SINGLE_SELECT="singleSelect",s.MULTIPLE_SELECT="multipleSelect",s.LOCATION_SELECT="locationSelect",s.OPEN_TEXT="openText";let r=[{label:"Single select",value:"singleSelect"},{label:"Multiple select",value:"multipleSelect"},{label:"Location select",value:"locationSelect"},{label:"Open Text",value:"openText"}],d=[{label:"taxonomy:".concat(o.P6.DATA_CATEGORY),value:o.P6.DATA_CATEGORY},{label:"taxonomy:".concat(o.P6.DATA_SUBJECT),value:o.P6.DATA_SUBJECT},{label:"taxonomy:".concat(o.P6.DATA_USE),value:o.P6.DATA_USE},{label:"".concat(o.P6.SYSTEM,":information"),value:o.P6.SYSTEM},{label:"system:data use",value:o.P6.PRIVACY_DECLARATION}];var c=t(24246),u=t(96306),p=t(34090),x=t(30234),m=t(97181),h=t(40324),f=t(30320);let v=e=>{let{resourceFidesKey:l,resourceType:t}=e,{idToAllowListWithOptions:i,idToCustomFieldDefinition:s,isEnabled:a,isLoading:n,sortedCustomFieldDefinitionIds:r}=(0,f.m)({resourceFidesKey:l,resourceType:t});return a&&0!==r.length?(0,c.jsx)(x.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:n?(0,c.jsx)(u.M5Y,{children:(0,c.jsx)(u.$jN,{})}):r.length>0&&(0,c.jsx)(u.kCb,{flexDirection:"column",gap:"12px",paddingBottom:"24px",children:r.map(e=>{let l=s.get(e);if(!l)return null;let t="customFieldValues.".concat(l.id);if(!l.allow_list_id&&l.field_type===o.AL.STRING)return(0,c.jsx)(p.gN,{name:t,children:e=>{let{field:t}=e;return(0,c.jsx)(h.j0,{...t,label:l.name,tooltip:l.description,variant:"stacked"})}},e);let a=i.get(l.allow_list_id);if(!a)return null;let{options:n}=a;return(0,c.jsx)(m.d,{name:t,allowClear:!0,mode:l.field_type!==o.AL.STRING?"multiple":void 0,label:l.name,options:n,tooltip:l.description,layout:"stacked",className:"w-full"},e)})})})})}):null};t(94799)},97181:function(e,l,t){"use strict";t.d(l,{d:function(){return d}});var i=t(24246),s=t(96306),a=t(34090),n=t(27378),o=t(46238),r=t(40324);let d=e=>{let{name:l,label:t,labelProps:d,tooltip:c,isRequired:u,layout:p="inline",helperText:x,...m}=e,[h,f,{setValue:v}]=(0,a.U$)(l),C=!!(f.touched&&f.error),[_,g]=(0,n.useState)("");h.value||"tags"!==m.mode&&"multiple"!==m.mode||(h.value=[]),"tags"===m.mode&&"string"==typeof h.value&&(h.value=[h.value]);let j="tags"===m.mode?(e,l)=>e?e.value!==_||h.value.includes(_)?m.optionRender?m.optionRender(e,l):e.label:'Create "'.concat(_,'"'):void 0:m.optionRender||void 0,b=e=>{g(e),m.onSearch&&m.onSearch(e)},y=(e,l)=>{v(e),m.onChange&&m.onChange(e,l)};return"inline"===p?(0,i.jsx)(s.NIc,{isInvalid:C,isRequired:u,children:(0,i.jsxs)(s.rjZ,{templateColumns:t?"1fr 3fr":"1fr",children:[t?(0,i.jsx)(r.__,{htmlFor:m.id||l,...d,children:t}):null,(0,i.jsxs)(s.jqI,{align:"center",children:[(0,i.jsxs)(s.jqI,{vertical:!0,flex:1,className:"mr-2",children:[(0,i.jsx)(s.WPr,{...h,id:m.id||l,"data-testid":"controlled-select-".concat(h.name),...m,optionRender:j,onSearch:"tags"===m.mode?b:void 0,onChange:y,value:h.value||void 0,status:C?"error":void 0}),x&&(0,i.jsx)(s.Q6r,{children:x}),(0,i.jsx)(r.Bc,{isInvalid:C,message:f.error,fieldName:h.name})]}),(0,i.jsx)(o.b,{label:c,className:C?"mt-2 self-start":void 0})]})]})}):(0,i.jsx)(s.NIc,{isInvalid:C,isRequired:u,children:(0,i.jsxs)(s.gCW,{alignItems:"start",children:[(0,i.jsxs)(s.jqI,{align:"center",children:[t?(0,i.jsx)(r.__,{htmlFor:m.id||l,fontSize:"xs",my:0,mr:1,...d,children:t}):null,(0,i.jsx)(o.b,{label:c})]}),(0,i.jsx)(s.WPr,{...h,id:m.id||l,"data-testid":"controlled-select-".concat(h.name),...m,optionRender:j,onSearch:"tags"===m.mode?b:void 0,onChange:y,value:h.value||void 0,status:C?"error":void 0}),x&&(0,i.jsx)(s.Q6r,{style:{marginTop:0},children:x}),(0,i.jsx)(r.Bc,{isInvalid:C,message:f.error,fieldName:h.name})]})})}},10342:function(e,l,t){"use strict";var i=t(24246),s=t(96306),a=t(46238);l.Z=e=>{let{title:l,tooltip:t,children:n,...o}=e;return(0,i.jsxs)(s.xuv,{borderRadius:"md",border:"1px solid",borderColor:"gray.200",...o,children:[(0,i.jsxs)(s.X6q,{as:"h3",fontSize:"sm",fontWeight:"semibold",color:"gray.700",py:4,px:6,backgroundColor:"gray.50",borderRadius:"md",textAlign:"left",children:[l,t?(0,i.jsx)(s.xvT,{as:"span",mx:1,children:(0,i.jsx)(a.b,{label:t})}):void 0]}),(0,i.jsx)(s.Kqy,{p:6,spacing:6,children:n})]})}},30234:function(e,l,t){"use strict";var i=t(24246),s=t(96306);l.Z=e=>{let{heading:l,HeadingButton:t,children:a}=e;return(0,i.jsx)(s.Kqy,{spacing:4,children:(0,i.jsxs)(s.xuv,{maxWidth:"720px",border:"1px",borderColor:"gray.200",borderRadius:6,overflow:"visible",mt:6,children:[(0,i.jsxs)(s.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)(s.X6q,{as:"h3",size:"xs",children:l}),t?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(s.LZC,{}),(0,i.jsx)(t,{})]}):null]}),(0,i.jsx)(s.Kqy,{spacing:4,px:6,py:6,children:a})]})})}},78422:function(e,l,t){"use strict";t.r(l),t.d(l,{default:function(){return X}});var i=t(24246),s=t(77213),a=t(96306),n=t(27378),o=t(58754),r=t(92222),d=t(59003),c=t(16134),u=t(812),p=t(19904),x=t(47935),m=t(46628),h=t(72625),f=t(54682);let v=new Map([["string","Single Select"],["string[]","Multi Select"],["open-text","Open Text"]]),C=new Map([[f.P6.SYSTEM,"system:information"],[f.P6.DATA_USE,"taxonomy:data use"],[f.P6.DATA_CATEGORY,"taxonomy:data category"],[f.P6.DATA_SUBJECT,"taxonomy:data subject"],[f.P6.PRIVACY_DECLARATION,"system:data use"]]);var _=t(32885);let g=e=>{var l;let t=null!==(l=C.get(e.getValue()))&&void 0!==l?l:e.getValue();return(0,i.jsx)(h.G3,{...e,value:t})},j=e=>{let{row:l,getValue:t}=e,s=l.original.allow_list_id?t():"open-text",a=v.get(s)||s;return(0,i.jsx)(h.A4,{value:a})},b=e=>{let{row:l,getValue:t,isDisabled:s}=e,a=!!t(),[n]=(0,_.yM)(),o=async e=>n({...l.original,active:e});return(0,i.jsx)(h.S1,{enabled:a,onToggle:o,title:"Disable custom field",message:"Are you sure you want to disable this custom field?",isDisabled:s,"aria-label":a?"Disable custom field":"Enable custom field"})};var y=t(56358),T=t(58452);let w=e=>{let{customField:l,onEdit:t,onDelete:s,...n}=e,o=(0,a.qY0)();return(0,i.jsxs)(a.xuv,{...n,children:[(0,i.jsx)(a.wpx,{"aria-label":"Edit property","data-testid":"edit-property-button",size:"small",className:"mr-[10px]",icon:(0,i.jsx)(a.dY8,{}),onClick:e=>{e.stopPropagation(),t(l,e)}}),(0,i.jsx)(a.wpx,{"aria-label":"Delete property","data-testid":"delete-property-button",size:"small",className:"mr-[10px]",icon:(0,i.jsx)(y.q,{}),onClick:e=>{e.stopPropagation(),o.onOpen()}}),(0,i.jsx)(T.Z,{isOpen:o.isOpen,onClose:o.onClose,onConfirm:()=>{s(l),o.onClose()},title:"Delete custom field",message:(0,i.jsx)(a.xvT,{color:"gray.500",children:"Are you sure you want to delete this custom field? This will remove the custom field and all stored values and this action can't be undone."}),continueButtonText:"Confirm",isCentered:!0,icon:(0,i.jsx)(a.aNP,{})})]})};var E=t(34090),S=t(55484),L=t(95346),I=t(41841);let R={color:"gray.600",fontSize:"14px",fontWeight:"semibold",minWidth:"150px"};var A=e=>{let{customLabelProps:l,disabled:t=!1,isRequired:s=!1,label:n,type:o="text",placeholder:r,...d}=e,[c,u]=(0,E.U$)(d),{id:p,name:x,autoFocus:m}=d,h="custom-input-".concat(c.name);return(0,i.jsxs)(a.NIc,{display:"flex",isRequired:s,isInvalid:!!(u.error&&u.touched),children:[n&&(0,i.jsx)(a.lXp,{htmlFor:p||x,...l||R,children:n}),(0,i.jsxs)(a.gCW,{align:"flex-start",w:"inherit",children:["number"===o&&(0,i.jsxs)(a.Y2U,{allowMouseWheel:!0,color:"gray.700",defaultValue:0,min:0,size:"sm",children:[(0,i.jsx)(a.zuI,{...c,autoComplete:"off",autoFocus:m,"data-testid":h}),(0,i.jsxs)(a.FiK,{children:[(0,i.jsx)(a.WQu,{}),(0,i.jsx)(a.Y_d,{})]})]}),"text"===o&&(0,i.jsx)(a.IIB,{...c,autoComplete:"off",autoFocus:m,color:"gray.700",isDisabled:t,placeholder:r,size:"sm","data-testid":h}),"textarea"===o&&(0,i.jsx)(a.gxH,{...c,autoComplete:"off",autoFocus:m,color:"gray.700",placeholder:r,resize:"none",size:"sm",value:c.value||"","data-testid":h}),(0,i.jsx)(a.J1D,{children:u.error})]})]})};let N=(0,a.IUT)({displayName:"AddIcon",viewBox:"0 0 10 10",path:(0,i.jsx)("path",{d:"M4.33331 4.33398V0.333984H5.66665V4.33398H9.66665V5.66732H5.66665V9.66732H4.33331V5.66732H0.333313V4.33398H4.33331Z",fill:"currentColor"})});var M=t(10342),O=t(95492),P=t(97181);let k={...R,minWidth:"unset"},U=e=>{let{values:l,validationSchema:t,errors:s,dirty:o,isValid:r,isSubmitting:d,isLoading:c,onClose:u,handleDropdownChange:p,isEditing:x}=e,{validateForm:m}=(0,E.u6)();return(0,n.useEffect)(()=>{m()},[t,m]),(0,i.jsxs)(E.l0,{style:{paddingTop:"12px",paddingBottom:"12px"},children:[(0,i.jsx)(a.xuv,{py:3,children:(0,i.jsxs)(M.Z,{title:"Field Information",children:[(0,i.jsx)(A,{isRequired:!0,label:"Name",name:"name",customLabelProps:k}),(0,i.jsx)(A,{label:"Description",name:"description",customLabelProps:k}),(0,i.jsx)(P.d,{label:"Location",name:"resource_type",options:L.C7,labelProps:k,disabled:x})]})}),(0,i.jsx)(a.xuv,{py:3,children:(0,i.jsxs)(M.Z,{title:"Configuration",children:[(0,i.jsx)(P.d,{label:"Field Type",name:"field_type",labelProps:k,options:L.Hn,onChange:p}),l.field_type!==L.Uv.OPEN_TEXT&&l.field_type!==L.Uv.LOCATION_SELECT?(0,i.jsx)(a.kCb,{flexDirection:"column",gap:"12px",paddingTop:"6px",paddingBottom:"24px",children:(0,i.jsx)(E.F2,{name:"allow_list.allowed_values",render:e=>{let{allowed_values:t}=l.allow_list;return(0,i.jsxs)(a.kCb,{flexDirection:"column",gap:"6",pl:"6",children:[(0,i.jsx)(a.kCb,{flexDirection:"column",children:t.map((l,s)=>(0,i.jsxs)(a.kCb,{flexGrow:1,gap:"3",mt:s>0?3:void 0,children:[(0,i.jsx)(A,{customLabelProps:{color:"gray.600",fontSize:"sm",fontWeight:"500",lineHeight:"20px",minW:"126px",pr:"8px"},isRequired:!0,label:"List item ".concat(s+1),name:"allow_list.allowed_values[".concat(s,"]")}),(0,i.jsx)(a.wpx,{"aria-label":"Remove this list value","data-testid":"remove-list-value-btn-".concat(s),icon:(0,i.jsx)(O.l,{}),disabled:t.length<=1,onClick:()=>e.remove(s),type:"text"})]},s))}),(0,i.jsxs)(a.kCb,{alignItems:"center",children:[(0,i.jsx)(a.xvT,{color:"gray.600",fontSize:"xs",fontWeight:"500",lineHeight:"16px",pr:"8px",children:"Add a list value"}),(0,i.jsx)(a.wpx,{"aria-label":"Add a list value","data-testid":"add-list-value-btn",icon:(0,i.jsx)(N,{h:"7px",w:"7px"}),onClick:()=>{e.push("")},size:"small"}),0===t.length&&(null==s?void 0:s.allow_list)?(0,i.jsx)(a.xvT,{color:"red.500",pl:"18px",size:"sm",children:s.allow_list.allowed_values}):null]})]})}})}):null]})}),(0,i.jsxs)(a.kCb,{justifyContent:"space-between",width:"100%",children:[(0,i.jsx)(a.wpx,{onClick:u,disabled:c||d,className:"mr-3","data-testid":"cancel-btn",children:"Cancel"}),(0,i.jsx)(a.wpx,{htmlType:"submit",type:"primary","data-testid":"save-btn",loading:c,disabled:!o||!r||d,children:"Save"})]})]})},D={description:"",field_type:L.Uv.OPEN_TEXT,name:"",resource_type:f.P6.SYSTEM,allow_list:{name:"",description:"",allowed_values:[]}},H=S.IX(S.Z_().optional().label("allowed_values")),V=S.IX(S.Z_().required("List item is required")).min(1,"Must add at least one list value").label("allowed_values"),F=S.Ry().shape({name:S.Z_().required("Name is required").trim(),allow_list:S.Ry().shape({allowed_values:H})}),Z=S.Ry().shape({name:S.Z_().required("Name is required").trim(),allow_list:S.Ry().shape({allowed_values:V})}),z=(e,l)=>{var t,i,s;let a;if(!e)return;e.field_type!==f.AL.STRING||e.allow_list_id||(a=L.Uv.OPEN_TEXT),e.field_type===f.AL.STRING&&e.allow_list_id&&(a=L.Uv.SINGLE_SELECT),e.field_type===f.AL.STRING_&&e.allow_list_id&&(a=L.Uv.MULTIPLE_SELECT);let n=l?{name:null!==(t=l.name)&&void 0!==t?t:"",description:null!==(i=l.description)&&void 0!==i?i:"",allowed_values:null!==(s=l.allowed_values)&&void 0!==s?s:[]}:D.allow_list;return{...e,field_type:a||L.Uv.OPEN_TEXT,allow_list:n}},q=e=>{let{isOpen:l,onClose:t,isLoading:s,customField:o}=e,{errorAlert:r,successAlert:d}=(0,I.VY)(),[c]=(0,_.Ld)(),[p]=(0,_.yM)(),[x]=(0,_.Nt)(),{data:m,isLoading:h}=(0,_.vA)(null==o?void 0:o.allow_list_id,{skip:!(null==o?void 0:o.allow_list_id)}),[v,C]=(0,n.useState)(F);if(h||!l)return null;let g=z(o,m),j=!!g,b=e=>{e===L.Uv.OPEN_TEXT||e===L.Uv.LOCATION_SELECT?C(F):C(Z)},y=async e=>{if([L.Uv.SINGLE_SELECT,L.Uv.MULTIPLE_SELECT].includes(e.field_type)){var l,i;if(new Set(null===(l=e.allow_list)||void 0===l?void 0:l.allowed_values.map(e=>e.toLowerCase().trim()).map(e=>e)).size<e.allow_list.allowed_values.length){r("List item value must be unique");return}let{allow_list:t}=e;e.allow_list_id&&(t.id=e.allow_list_id),t.name||(t.name=Date.now().toString()+Math.random().toString());let s=await x(t);(0,u.D4)(s)||e.allow_list_id||(e.allow_list_id=null===(i=s.data)||void 0===i?void 0:i.id)}(e.field_type===L.Uv.OPEN_TEXT||e.field_type===L.Uv.LOCATION_SELECT)&&(e.allow_list_id=void 0),[L.Uv.SINGLE_SELECT,L.Uv.OPEN_TEXT,L.Uv.LOCATION_SELECT].includes(e.field_type)&&(e.field_type=f.AL.STRING),e.field_type===L.Uv.MULTIPLE_SELECT&&(e.field_type=f.AL.STRING_);let s={...e};delete s.allow_list;let a=o?await p(s):await c(s);(0,u.D4)(a)?r((0,u.e$)(a.error),"Custom field has failed to save due to the following:"):(t(),d("Custom field successfully saved"))};return(0,i.jsxs)(a.u_l,{id:"custom-field-modal-hello-world",isOpen:l,onClose:t,size:"lg",returnFocusOnClose:!1,isCentered:!0,children:[(0,i.jsx)(a.ZAr,{}),(0,i.jsxs)(a.hzk,{id:"modal-content","data-testid":"custom-field-modal",maxHeight:"80%",overflowY:"auto",children:[(0,i.jsx)(a.xBx,{id:"modal-header",fontWeight:"semibold",lineHeight:5,fontSize:"sm",py:"18px",px:6,height:"56px",backgroundColor:"gray.50",borderColor:"gray.200",borderWidth:"0px 0px 1px 1p",borderTopRightRadius:"8px",borderTopLeftRadius:"8px",boxSizing:"border-box",children:o?"Manage Custom Field":"Add a custom field"}),(0,i.jsx)(a.fef,{px:6,py:0,children:(0,i.jsx)(E.J9,{initialValues:g||D,validationSchema:v,onSubmit:y,enableReinitialize:!0,validateOnChange:!0,children:e=>(0,i.jsx)(U,{isEditing:j,validationSchema:v,isLoading:s,onClose:t,handleDropdownChange:b,...e})})})]})]})},W="Add a custom field",G=()=>(0,i.jsx)(a.gCW,{mt:6,p:10,spacing:4,borderRadius:"base",maxW:"70%","data-testid":"no-results-notice",alignSelf:"center",margin:"auto",textAlign:"center",children:(0,i.jsxs)(a.gCW,{children:[(0,i.jsx)(a.xvT,{fontSize:"md",fontWeight:"600",children:"It looks like it’s your first time here!"}),(0,i.jsxs)(a.xvT,{fontSize:"sm",children:["You haven’t created any custom fields yet.",(0,i.jsx)("br",{}),"To create a custom field, click on the"," ",(0,i.jsxs)("strong",{children:['"',W,'"']})," button"]})]})}),Y=(0,r.Cl)(),B=e=>{let{...l}=e,t=(0,a.pmc)(),{isLoading:s}=(0,_.GH)(),o=(0,c.C)(_.fN),[h]=(0,_.UF)(),{isOpen:v,onClose:C,onOpen:y}=(0,a.qY0)(),[T,E]=(0,n.useState)(),[S,L]=(0,n.useState)(),I=(0,p.Tg)([f.Sh.CUSTOM_FIELD_UPDATE]),R=(0,p.Tg)([f.Sh.CUSTOM_FIELD_DELETE]),A=e=>{I&&(E(e),y())},N=async e=>{if(R&&e.id){let l=await h({id:e.id});if((0,u.D4)(l)){t((0,m.Vo)((0,u.e$)(l.error)));return}t((0,m.t5)("Custom field deleted"))}},M=(0,n.useMemo)(()=>[Y.accessor(e=>e.name,{id:"name",cell:e=>(0,i.jsx)(x.G3,{value:e.getValue(),cellProps:e}),header:e=>(0,i.jsx)(x.Rr,{value:"Label",...e})}),Y.accessor(e=>e.description,{id:"description",cell:e=>(0,i.jsx)(x.G3,{value:e.getValue(),cellProps:e}),header:e=>(0,i.jsx)(x.Rr,{value:"Description",...e}),meta:{showHeaderMenu:!0}}),Y.accessor(e=>e.field_type,{id:"field_type",cell:j,header:e=>(0,i.jsx)(x.Rr,{value:"Field Type",...e})}),Y.accessor(e=>e.resource_type,{id:"resource_type",cell:g,header:e=>(0,i.jsx)(x.Rr,{value:"Locations",...e})}),I&&Y.accessor(e=>e.active,{id:"enable",cell:b,header:e=>(0,i.jsx)(x.Rr,{value:"Enable",...e}),meta:{disableRowClick:!0}}),(I||R)&&Y.display({id:"actions",header:"Actions",cell:e=>{let{row:l}=e;return(0,i.jsx)(w,{customField:l.original,onEdit:A,onDelete:N})},meta:{disableRowClick:!0}})].filter(Boolean),[R,I]),O=(0,d.b7)({getCoreRowModel:(0,r.sC)(),getFilteredRowModel:(0,r.vL)(),getSortedRowModel:(0,r.tj)(),onGlobalFilterChange:L,globalFilterFn:"includesString",columns:M,data:o,state:{globalFilter:S},columnResizeMode:"onChange"});return(0,i.jsxs)(a.xuv,{...l,children:[(0,i.jsx)(a.xuv,{maxWidth:600,children:(0,i.jsx)(a.xvT,{mb:10,fontSize:"sm",children:o.length>0?"Custom fields enable you to capture metrics specific to your organization and have those metrics appear in the data map and in reports.":"Custom fields provide organizations with the capability to capture metrics that are unique to their specific needs, allowing them to create customized reports. These fields can be added to either systems or elements within a taxonomy, and once added, they become reportable fields that are visible on the data map."})}),(0,i.jsxs)(a.xuv,{"data-testid":"custom-fields-page",children:[(0,i.jsxs)(x.Q$,{children:[(0,i.jsx)(x.HO,{globalFilter:S,setGlobalFilter:L,placeholder:"Search for a custom field"}),(0,i.jsx)(a.Ugi,{alignItems:"center",spacing:4,children:(0,i.jsx)(()=>(0,i.jsx)(p.ZP,{scopes:[f.Sh.CUSTOM_FIELD_DEFINITION_CREATE],children:(0,i.jsx)(a.wpx,{type:"primary","data-testid":"add-custom-field-btn",onClick:y,children:W})}),{})})]}),s?(0,i.jsx)(a.xuv,{p:2,borderWidth:1,children:(0,i.jsx)(x.I4,{rowHeight:26,numRows:10})}):(0,i.jsx)(x.ZK,{tableInstance:O,onRowClick:I?A:void 0,emptyTableNotice:(0,i.jsx)(G,{}),enableSorting:!0}),v&&(0,i.jsx)(q,{customField:T,isOpen:v,onClose:()=>{E(void 0),C()},isLoading:!1})]})]})};var X=()=>(0,i.jsx)(s.Z,{title:"Custom fields",children:(0,i.jsxs)(a.xuv,{"data-testid":"custom-fields-management",children:[(0,i.jsx)(o.Z,{heading:"Custom fields"}),(0,i.jsx)(B,{})]})})}},function(e){e.O(0,[431,4164,2888,9774,179],function(){return e(e.s=70378)}),_N_E=e.O()}]);
|
fides/ui-build/static/admin/_next/static/chunks/pages/settings/domain-records-16fdd91a81074dd1.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1051],{55342:function(e,n,o){(window.__NEXT_P=window.__NEXT_P||[]).push(["/settings/domain-records",function(){return o(64872)}])},77213:function(e,n,o){"use strict";o.d(n,{Z:function(){return m}});var r=o(24246),i=o(96306),t=o(88038),s=o.n(t),a=o(86677);o(27378);var c=o(25980),d=o(90867),l=o(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(l.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."," "]})]})})},m=e=>{let{children:n,title:o,padded:t=!0,mainProps:l}=e,m=(0,c.hz)(),h=(0,a.useRouter)(),x="/privacy-requests"===h.pathname||"/datastore-connection"===h.pathname,f=!(m.flags.privacyRequestsConfiguration&&x),{data:p}=(0,d.JE)(void 0,{skip:f}),{data:v}=(0,d.PW)(void 0,{skip:f}),g=m.flags.privacyRequestsConfiguration&&(!p||!v)&&x;return(0,r.jsxs)(i.kCb,{"data-testid":o,direction:"column",h:"100vh",children:[(0,r.jsxs)(s(),{children:[(0,r.jsxs)("title",{children:["Fides Admin UI - ",o]}),(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:t?6:0,px:t?10:0,h:t?"calc(100% - 48px)":"full",flex:1,minWidth:0,overflow:"auto",...l,children:[g?(0,r.jsx)(u,{}):null,n]})]})}},64872:function(e,n,o){"use strict";o.r(n);var r=o(24246),i=o(92222),t=o(59003),s=o(96306),a=o(27378),c=o(88340),d=o(77213),l=o(47935),u=o(32885);let m=(0,i.Cl)();n.default=()=>{let e=(0,a.useMemo)(()=>[m.accessor(e=>e.hostName,{header:"Name",cell:e=>(0,r.jsx)(l.G3,{value:e.getValue()})}),m.accessor(e=>e.type,{header:"Type",cell:e=>(0,r.jsx)(l.G3,{value:e.getValue()})}),m.accessor(e=>e.data,{header:"Value",cell:e=>(0,r.jsx)(l.G3,{value:e.getValue()})}),m.display({id:"actions",cell:e=>{let{row:n}=e;return(0,r.jsx)(c.Z,{copyText:n.original.data,type:"default",size:"small"})},header:"Actions",maxSize:65})],[]),{data:n,isLoading:o}=(0,u.Vh)(),h=(0,a.useMemo)(()=>(null==n?void 0:n.domain_verification_records)?n.domain_verification_records.map(e=>({hostName:"www",type:"CNAME",data:e})):[],[n]),x=(0,t.b7)({getCoreRowModel:(0,i.sC)(),columns:e,data:h,columnResizeMode:"onChange"});return(0,r.jsx)(d.Z,{title:"Domain records",children:(0,r.jsxs)(s.xuv,{"data-testid":"domain-records",children:[(0,r.jsx)(s.X6q,{marginBottom:4,fontSize:"2xl",children:"Domain records"}),(0,r.jsxs)(s.xuv,{maxWidth:"600px",children:[(0,r.jsx)(s.xvT,{marginBottom:2,fontSize:"md",children:"Set the following record on your DNS provider to continue."}),(0,r.jsxs)(s.xvT,{mb:10,fontSize:"sm",children:["Please visit"," ",(0,r.jsx)(s.rUS,{color:"complimentary.500",href:"https://fid.es/manage-dns",isExternal:!0,children:"docs.ethyca.com"})," ","for more information on how to configure Domain records."]}),o?(0,r.jsx)(s.xuv,{p:2,borderWidth:1,children:(0,r.jsx)(l.I4,{rowHeight:26,numRows:5})}):(0,r.jsx)(l.ZK,{tableInstance:x})]})]})})}}},function(e){e.O(0,[2888,9774,179],function(){return e(e.s=55342)}),_N_E=e.O()}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9252],{98648:function(e,i,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/settings/domains",function(){return t(76974)}])},59301:function(e,i,t){"use strict";var n=t(24246);let{Link:s}=t(96306).AntTypography;i.Z=e=>(0,n.jsx)(s,{target:"_blank",rel:"noopener noreferrer",...e})},77213:function(e,i,t){"use strict";t.d(i,{Z:function(){return m}});var n=t(24246),s=t(96306),r=t(88038),a=t.n(r),o=t(86677);t(27378);var d=t(25980),l=t(90867),c=t(77830),u=()=>{let e=(0,o.useRouter)();return(0,n.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,n.jsxs)(s.xuv,{children:[(0,n.jsxs)(s.Kqy,{direction:{base:"column",sm:"row"},justifyContent:"space-between",children:[(0,n.jsx)(s.xvT,{fontWeight:"semibold",children:"Configure your storage and messaging provider"}),(0,n.jsx)(s.wpx,{onClick:()=>{e.push(c.fz)},children:"Configure"})]}),(0,n.jsxs)(s.xvT,{children:["Before Fides can process your privacy requests we need two simple steps to configure your storage and email client."," "]})]})})},m=e=>{let{children:i,title:t,padded:r=!0,mainProps:c}=e,m=(0,d.hz)(),x=(0,o.useRouter)(),h="/privacy-requests"===x.pathname||"/datastore-connection"===x.pathname,p=!(m.flags.privacyRequestsConfiguration&&h),{data:g}=(0,l.JE)(void 0,{skip:p}),{data:f}=(0,l.PW)(void 0,{skip:p}),j=m.flags.privacyRequestsConfiguration&&(!g||!f)&&h;return(0,n.jsxs)(s.kCb,{"data-testid":t,direction:"column",h:"100vh",children:[(0,n.jsxs)(a(),{children:[(0,n.jsxs)("title",{children:["Fides Admin UI - ",t]}),(0,n.jsx)("meta",{name:"description",content:"Privacy Engineering Platform"}),(0,n.jsx)("link",{rel:"icon",href:"/favicon.ico"})]}),(0,n.jsxs)(s.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",...c,children:[j?(0,n.jsx)(u,{}):null,i]})]})}},58754:function(e,i,t){"use strict";var n=t(24246),s=t(96306),r=t(70788);i.Z=e=>{let{heading:i,breadcrumbItems:t,isSticky:a=!0,children:o,rightContent:d,style:l,...c}=e;return(0,n.jsxs)("div",{...c,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",...l}:{paddingBottom:"24px",...l},children:[(0,n.jsxs)(s.jqI,{justify:"space-between",children:["string"==typeof i?(0,n.jsx)(s.lQT,{className:t||o?"pb-4":void 0,level:1,"data-testid":"page-heading",children:i}):i,d&&(0,n.jsx)("div",{"data-testid":"page-header-right-content",children:d})]}),!!t&&(0,n.jsx)(r.m,{className:o?"pb-4":void 0,items:t,"data-testid":"page-breadcrumb"}),o]})}},10342:function(e,i,t){"use strict";var n=t(24246),s=t(96306),r=t(46238);i.Z=e=>{let{title:i,tooltip:t,children:a,...o}=e;return(0,n.jsxs)(s.xuv,{borderRadius:"md",border:"1px solid",borderColor:"gray.200",...o,children:[(0,n.jsxs)(s.X6q,{as:"h3",fontSize:"sm",fontWeight:"semibold",color:"gray.700",py:4,px:6,backgroundColor:"gray.50",borderRadius:"md",textAlign:"left",children:[i,t?(0,n.jsx)(s.xvT,{as:"span",mx:1,children:(0,n.jsx)(r.b,{label:t})}):void 0]}),(0,n.jsx)(s.Kqy,{p:6,spacing:6,children:a})]})}},70788:function(e,i,t){"use strict";t.d(i,{m:function(){return l}});var n=t(24246),s=t(96306),r=t(79894),a=t.n(r),o=t(27378);let{Text:d}=s.AntTypography,l=e=>{let{items:i,...t}=e,r=(0,o.useMemo)(()=>null==i?void 0:i.map((e,t)=>{let r=t===i.length-1,o={...e},l=o.onClick&&!o.href;return("string"==typeof o.title&&(o.title=(0,n.jsx)(d,{style:{color:"inherit",maxWidth:r?void 0:400},ellipsis:!r,id:r?"breadcrumb-current-page":void 0,children:o.title})),l)?o.title=(0,n.jsx)(s.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,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("span",{className:"anticon align-text-bottom",children:o.icon}),o.title]})),o.href&&o.title&&(o.title=(0,n.jsx)(a(),{href:o.href,className:"ant-breadcrumb-link",children:o.title}),delete o.href)),o}),[i]);return(0,n.jsx)(s.zrq,{items:r,...t})}},76974:function(e,i,t){"use strict";t.r(i);var n=t(24246),s=t(96306),r=t(34090),a=t(55484),o=t(16134),d=t(59301),l=t(10342),c=t(40324),u=t(812),m=t(77213),x=t(58754),h=t(46628),p=t(7426);i.default=()=>{var e;let{isLoading:i}=(0,p.tB)({api_set:!0}),{isLoading:t}=(0,p.tB)({api_set:!1}),g=(0,o.C)(p.ak),f=g.apiSet,j=g.configSet,b=!!((null===(e=j.cors_origins)||void 0===e?void 0:e.length)||j.cors_origin_regex),v=(0,o.C)((0,p.U7)()),[y,{isLoading:_}]=(0,p.km)(),w=(0,s.pmc)(),C=e=>{if(!e||!(e.startsWith("https://")||e.startsWith("http://")))return!1;try{new URL(e)}catch(e){return!1}return!0},k=e=>!!e&&!e.includes("*"),R=e=>{if(!e)return!1;try{let i=new URL(e);return"/"===i.pathname&&!e.endsWith("/")}catch(e){return!1}},N=a.Ry().shape({cors_origins:a.IX().nullable().of(a.Z_().required().trim().test("is-valid-url",e=>{let{label:i}=e;return"".concat(i," must be a valid URL (e.g. https://example.com)")},e=>C(e)).test("has-no-wildcard",e=>{let{label:i}=e;return"".concat(i," cannot contain a wildcard (e.g. https://*.example.com)")},e=>k(e)).test("has-no-path",e=>{let{label:i}=e;return"".concat(i," cannot contain a path (e.g. https://example.com/path)")},e=>R(e)).label("Domain"))}),T=async(e,i)=>{let t=e.cors_origins&&e.cors_origins.length>0?e.cors_origins:void 0,n={...v,security:{cors_origins:t}};(t=>{if(w.closeAll(),(0,u.D4)(t)){let e=(0,u.e$)(t.error,"An unexpected error occurred while saving domains. Please try again.");w((0,h.Vo)(e))}else w((0,h.t5)("Domains saved successfully")),i.resetForm({values:e})})(await y(n))};return(0,n.jsx)(m.Z,{title:"Domains",children:(0,n.jsxs)(s.xuv,{"data-testid":"management-domains",children:[(0,n.jsx)(x.Z,{heading:"Domains"}),(0,n.jsxs)(s.xuv,{maxW:"600px",children:[(0,n.jsxs)(s.xvT,{fontSize:"sm",pb:6,children:["For Fides to work on your website(s), each of your domains must be listed below. You can add and remove domains at any time up to the quantity included in your license. For more information on managing domains"," ",(0,n.jsx)(d.Z,{href:"https://fid.es/domain-configuration",children:"read here"}),"."]}),(0,n.jsx)(l.Z,{"data-testid":"api-set-domains-form",title:"Organization domains",tooltip:"Fides uses these domains to enforce cross-origin resource sharing (CORS), a browser-based security standard. Each domain must be a valid URL (e.g. https://example.com) without any wildcards '*' or paths '/blog'",children:i||_?(0,n.jsx)(s.kCb,{justifyContent:"center",children:(0,n.jsx)(s.$jN,{})}):(0,n.jsx)(r.J9,{initialValues:f,enableReinitialize:!0,onSubmit:T,validationSchema:N,validateOnChange:!0,children:e=>{let{dirty:i,values:t,isValid:a}=e;return(0,n.jsxs)(r.l0,{children:[(0,n.jsx)(r.F2,{name:"cors_origins",render:e=>(0,n.jsxs)(s.kCb,{flexDir:"column",children:[t.cors_origins.map((i,t)=>(0,n.jsxs)(s.kCb,{flexDir:"row",my:3,children:[(0,n.jsx)(c.j0,{variant:"stacked",name:"cors_origins[".concat(t,"]"),placeholder:"https://subdomain.example.com:9090"}),(0,n.jsx)(s.wpx,{"aria-label":"delete-domain",className:"z-[2] ml-4",icon:(0,n.jsx)(s.pJl,{}),onClick:()=>{e.remove(t)}})]},t)),(0,n.jsx)(s.kCb,{justifyContent:"center",mt:3,children:(0,n.jsx)(s.wpx,{"aria-label":"add-domain",className:"w-full",onClick:()=>{e.push("")},children:"Add domain"})})]})}),(0,n.jsx)(s.xuv,{mt:6,children:(0,n.jsx)(s.wpx,{htmlType:"submit",type:"primary",disabled:_||!i||!a,loading:_,"data-testid":"save-btn",children:"Save"})})]})}})})]}),(0,n.jsx)(s.xuv,{maxW:"600px",marginY:3,children:(0,n.jsx)(l.Z,{"data-testid":"config-set-domains-form",title:"Advanced settings",tooltip:"These domains are configured by an administrator with access to Fides security settings and can support more advanced options such as wildcards and regex.",children:t?(0,n.jsx)(s.kCb,{justifyContent:"center",children:(0,n.jsx)(s.$jN,{})}):(0,n.jsxs)(s.kCb,{flexDir:"column",children:[j.cors_origins.map((e,i)=>(0,n.jsx)(c.oi,{"data-testid":"input-config_cors_origins[".concat(i,"]"),marginY:3,value:e,isDisabled:!0,isPassword:!1},i)),j.cors_origin_regex?(0,n.jsx)(c.oi,{"data-testid":"input-config_cors_origin_regex",marginY:3,value:j.cors_origin_regex,isDisabled:!0,isPassword:!1},"cors_origin_regex"):void 0,b?void 0:(0,n.jsx)(s.xvT,{fontSize:"xs",color:"gray.500",children:"No advanced domain settings configured."})]})})})]})})}}},function(e){e.O(0,[2888,9774,179],function(){return e(e.s=98648)}),_N_E=e.O()}]);
|
fides/ui-build/static/admin/_next/static/chunks/pages/settings/email-templates-1914de830ce5cfc4.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4966],{18193:function(e,t,i){(window.__NEXT_P=window.__NEXT_P||[]).push(["/settings/email-templates",function(){return i(43104)}])},77213:function(e,t,i){"use strict";i.d(t,{Z:function(){return p}});var n=i(24246),s=i(96306),a=i(88038),r=i.n(a),l=i(86677);i(27378);var o=i(25980),d=i(90867),c=i(77830),u=()=>{let e=(0,l.useRouter)();return(0,n.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,n.jsxs)(s.xuv,{children:[(0,n.jsxs)(s.Kqy,{direction:{base:"column",sm:"row"},justifyContent:"space-between",children:[(0,n.jsx)(s.xvT,{fontWeight:"semibold",children:"Configure your storage and messaging provider"}),(0,n.jsx)(s.wpx,{onClick:()=>{e.push(c.fz)},children:"Configure"})]}),(0,n.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:t,title:i,padded:a=!0,mainProps:c}=e,p=(0,o.hz)(),m=(0,l.useRouter)(),g="/privacy-requests"===m.pathname||"/datastore-connection"===m.pathname,h=!(p.flags.privacyRequestsConfiguration&&g),{data:x}=(0,d.JE)(void 0,{skip:h}),{data:f}=(0,d.PW)(void 0,{skip:h}),j=p.flags.privacyRequestsConfiguration&&(!x||!f)&&g;return(0,n.jsxs)(s.kCb,{"data-testid":i,direction:"column",h:"100vh",children:[(0,n.jsxs)(r(),{children:[(0,n.jsxs)("title",{children:["Fides Admin UI - ",i]}),(0,n.jsx)("meta",{name:"description",content:"Privacy Engineering Platform"}),(0,n.jsx)("link",{rel:"icon",href:"/favicon.ico"})]}),(0,n.jsxs)(s.kCb,{as:"main",direction:"column",py:a?6:0,px:a?10:0,h:a?"calc(100% - 48px)":"full",flex:1,minWidth:0,overflow:"auto",...c,children:[j?(0,n.jsx)(u,{}):null,t]})]})}},58754:function(e,t,i){"use strict";var n=i(24246),s=i(96306),a=i(70788);t.Z=e=>{let{heading:t,breadcrumbItems:i,isSticky:r=!0,children:l,rightContent:o,style:d,...c}=e;return(0,n.jsxs)("div",{...c,style:r?{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,n.jsxs)(s.jqI,{justify:"space-between",children:["string"==typeof t?(0,n.jsx)(s.lQT,{className:i||l?"pb-4":void 0,level:1,"data-testid":"page-heading",children:t}):t,o&&(0,n.jsx)("div",{"data-testid":"page-header-right-content",children:o})]}),!!i&&(0,n.jsx)(a.m,{className:l?"pb-4":void 0,items:i,"data-testid":"page-breadcrumb"}),l]})}},10342:function(e,t,i){"use strict";var n=i(24246),s=i(96306),a=i(46238);t.Z=e=>{let{title:t,tooltip:i,children:r,...l}=e;return(0,n.jsxs)(s.xuv,{borderRadius:"md",border:"1px solid",borderColor:"gray.200",...l,children:[(0,n.jsxs)(s.X6q,{as:"h3",fontSize:"sm",fontWeight:"semibold",color:"gray.700",py:4,px:6,backgroundColor:"gray.50",borderRadius:"md",textAlign:"left",children:[t,i?(0,n.jsx)(s.xvT,{as:"span",mx:1,children:(0,n.jsx)(a.b,{label:i})}):void 0]}),(0,n.jsx)(s.Kqy,{p:6,spacing:6,children:r})]})}},70788:function(e,t,i){"use strict";i.d(t,{m:function(){return d}});var n=i(24246),s=i(96306),a=i(79894),r=i.n(a),l=i(27378);let{Text:o}=s.AntTypography,d=e=>{let{items:t,...i}=e,a=(0,l.useMemo)(()=>null==t?void 0:t.map((e,i)=>{let a=i===t.length-1,l={...e},d=l.onClick&&!l.href;return("string"==typeof l.title&&(l.title=(0,n.jsx)(o,{style:{color:"inherit",maxWidth:a?void 0:400},ellipsis:!a,id:a?"breadcrumb-current-page":void 0,children:l.title})),d)?l.title=(0,n.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,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("span",{className:"anticon align-text-bottom",children:l.icon}),l.title]})),l.href&&l.title&&(l.title=(0,n.jsx)(r(),{href:l.href,className:"ant-breadcrumb-link",children:l.title}),delete l.href)),l}),[t]);return(0,n.jsx)(s.zrq,{items:a,...i})}},47466:function(e,t,i){"use strict";i.d(t,{KC:function(){return r},ew:function(){return l},gQ:function(){return a},jM:function(){return n},lE:function(){return s}});let{useGetMessagingTemplatesQuery:n,useUpdateMessagingTemplatesMutation:s,useGetMessagingTemplateByIdQuery:a,useGetMessagingTemplateDefaultQuery:r,useDeleteMessagingTemplateByIdMutation:l}=i(78780).u.injectEndpoints({endpoints:e=>({getMessagingTemplates:e.query({query:()=>({url:"messaging/templates"}),providesTags:()=>["Messaging Templates"]}),updateMessagingTemplates:e.mutation({query:e=>({url:"messaging/templates",method:"PUT",body:e}),invalidatesTags:()=>["Messaging Templates"]}),getMessagingTemplateById:e.query({query:e=>({url:"/messaging/templates/".concat(e)}),providesTags:()=>["Property-Specific Messaging Templates"]}),getMessagingTemplateDefault:e.query({query:e=>({url:"/messaging/templates/default/".concat(e)})}),deleteMessagingTemplateById:e.mutation({query:e=>({url:"/messaging/templates/".concat(e),method:"DELETE"}),invalidatesTags:()=>["Property-Specific Messaging Templates"]})})})},43104:function(e,t,i){"use strict";i.r(t),i.d(t,{default:function(){return g}});var n=i(24246),s=i(96306),a=i(77213),r=i(58754),l=i(34090),o=i(10342),d=i(40324),c=i(812),u=i(46628),p=i(47466),m=e=>{let{emailTemplates:t}=e,[i,{isLoading:a}]=(0,p.lE)(),r=(0,s.pmc)(),m=async(e,t)=>{let n=Object.entries(e).map(e=>{let[t,{content:i}]=e;return{type:t,content:i}});(i=>{if((0,c.D4)(i)){let e=(0,c.e$)(i.error,"An unexpected error occurred while editing the email templates. Please try again.");r((0,u.Vo)(e))}else r((0,u.t5)("Email templates saved.")),t.resetForm({values:e})})(await i(n))},g=t.reduce((e,t)=>({...e,[t.type]:{label:t.label,content:t.content}}),{});return(0,n.jsx)(l.J9,{enableReinitialize:!0,initialValues:g,onSubmit:m,children:()=>(0,n.jsxs)(l.l0,{style:{paddingTop:"12px",paddingBottom:"12px"},children:[Object.entries(g).map(e=>{let[t,i]=e;return(0,n.jsx)(s.xuv,{py:3,children:(0,n.jsxs)(o.Z,{title:i.label,children:[(0,n.jsx)(d.j0,{label:"Message subject",name:"".concat(t,".content.subject"),variant:"stacked"}),(0,n.jsx)(d.Ks,{label:"Message body",name:"".concat(t,".content.body"),variant:"stacked",resize:!0})]})},t)}),(0,n.jsx)(s.kCb,{justifyContent:"right",width:"100%",paddingTop:2,children:(0,n.jsx)(s.wpx,{htmlType:"submit",type:"primary",loading:a,children:"Save"})})]})})},g=()=>{let{data:e,isLoading:t}=(0,p.jM)();return t?(0,n.jsx)(a.Z,{title:"Email templates",children:(0,n.jsx)(s.$jN,{})}):(0,n.jsx)(a.Z,{title:"Email templates",children:(0,n.jsxs)(s.xuv,{"data-testid":"email-templates",children:[(0,n.jsx)(r.Z,{heading:"Email Templates"}),(0,n.jsxs)(s.xuv,{maxWidth:"720px",children:[(0,n.jsx)(s.xvT,{fontSize:"sm",children:"When privacy requests are submitted, Fides emails the data subject to confirm their identity and keep them updated on the status of the request. The templates below allow you to configure the subject and body of the email to suit your business needs. To change the appearance of the email, you may use the editors within your messaging provider (e.g. Mailgun, SendGrid, Twilio)."}),(0,n.jsx)(s.xuv,{padding:2,children:(0,n.jsx)(m,{emailTemplates:e})})]})]})})}}},function(e){e.O(0,[2888,9774,179],function(){return e(e.s=18193)}),_N_E=e.O()}]);
|
fides/ui-build/static/admin/_next/static/chunks/pages/settings/organization-f547f1f33c12faf3.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2828],{85082:function(e,i,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/settings/organization",function(){return t(5417)}])},77213:function(e,i,t){"use strict";t.d(i,{Z:function(){return p}});var r=t(24246),n=t(96306),a=t(88038),o=t.n(a),s=t(86677);t(27378);var l=t(25980),d=t(90867),c=t(77830),u=()=>{let e=(0,s.useRouter)();return(0,r.jsx)(n.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)(n.xuv,{children:[(0,r.jsxs)(n.Kqy,{direction:{base:"column",sm:"row"},justifyContent:"space-between",children:[(0,r.jsx)(n.xvT,{fontWeight:"semibold",children:"Configure your storage and messaging provider"}),(0,r.jsx)(n.wpx,{onClick:()=>{e.push(c.fz)},children:"Configure"})]}),(0,r.jsxs)(n.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:i,title:t,padded:a=!0,mainProps:c}=e,p=(0,l.hz)(),x=(0,s.useRouter)(),m="/privacy-requests"===x.pathname||"/datastore-connection"===x.pathname,h=!(p.flags.privacyRequestsConfiguration&&m),{data:v}=(0,d.JE)(void 0,{skip:h}),{data:j}=(0,d.PW)(void 0,{skip:h}),g=p.flags.privacyRequestsConfiguration&&(!v||!j)&&m;return(0,r.jsxs)(n.kCb,{"data-testid":t,direction:"column",h:"100vh",children:[(0,r.jsxs)(o(),{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)(n.kCb,{as:"main",direction:"column",py:a?6:0,px:a?10:0,h:a?"calc(100% - 48px)":"full",flex:1,minWidth:0,overflow:"auto",...c,children:[g?(0,r.jsx)(u,{}):null,i]})]})}},58754:function(e,i,t){"use strict";var r=t(24246),n=t(96306),a=t(70788);i.Z=e=>{let{heading:i,breadcrumbItems:t,isSticky:o=!0,children:s,rightContent:l,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)(n.jqI,{justify:"space-between",children:["string"==typeof i?(0,r.jsx)(n.lQT,{className:t||s?"pb-4":void 0,level:1,"data-testid":"page-heading",children:i}):i,l&&(0,r.jsx)("div",{"data-testid":"page-header-right-content",children:l})]}),!!t&&(0,r.jsx)(a.m,{className:s?"pb-4":void 0,items:t,"data-testid":"page-breadcrumb"}),s]})}},19904:function(e,i,t){"use strict";t.d(i,{Tg:function(){return o}});var r=t(24246),n=t(16134),a=t(31793);let o=e=>(0,n.C)(a.uu).filter(i=>e.includes(i)).length>0;i.ZP=e=>{let{scopes:i,children:t}=e;return o(i)?(0,r.jsx)(r.Fragment,{children:t}):null}},97181:function(e,i,t){"use strict";t.d(i,{d:function(){return d}});var r=t(24246),n=t(96306),a=t(34090),o=t(27378),s=t(46238),l=t(40324);let d=e=>{let{name:i,label:t,labelProps:d,tooltip:c,isRequired:u,layout:p="inline",helperText:x,...m}=e,[h,v,{setValue:j}]=(0,a.U$)(i),g=!!(v.touched&&v.error),[f,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,i)=>e?e.value!==f||h.value.includes(f)?m.optionRender?m.optionRender(e,i):e.label:'Create "'.concat(f,'"'):void 0:m.optionRender||void 0,k=e=>{b(e),m.onSearch&&m.onSearch(e)},C=(e,i)=>{j(e),m.onChange&&m.onChange(e,i)};return"inline"===p?(0,r.jsx)(n.NIc,{isInvalid:g,isRequired:u,children:(0,r.jsxs)(n.rjZ,{templateColumns:t?"1fr 3fr":"1fr",children:[t?(0,r.jsx)(l.__,{htmlFor:m.id||i,...d,children:t}):null,(0,r.jsxs)(n.jqI,{align:"center",children:[(0,r.jsxs)(n.jqI,{vertical:!0,flex:1,className:"mr-2",children:[(0,r.jsx)(n.WPr,{...h,id:m.id||i,"data-testid":"controlled-select-".concat(h.name),...m,optionRender:y,onSearch:"tags"===m.mode?k:void 0,onChange:C,value:h.value||void 0,status:g?"error":void 0}),x&&(0,r.jsx)(n.Q6r,{children:x}),(0,r.jsx)(l.Bc,{isInvalid:g,message:v.error,fieldName:h.name})]}),(0,r.jsx)(s.b,{label:c,className:g?"mt-2 self-start":void 0})]})]})}):(0,r.jsx)(n.NIc,{isInvalid:g,isRequired:u,children:(0,r.jsxs)(n.gCW,{alignItems:"start",children:[(0,r.jsxs)(n.jqI,{align:"center",children:[t?(0,r.jsx)(l.__,{htmlFor:m.id||i,fontSize:"xs",my:0,mr:1,...d,children:t}):null,(0,r.jsx)(s.b,{label:c})]}),(0,r.jsx)(n.WPr,{...h,id:m.id||i,"data-testid":"controlled-select-".concat(h.name),...m,optionRender:y,onSearch:"tags"===m.mode?k:void 0,onChange:C,value:h.value||void 0,status:g?"error":void 0}),x&&(0,r.jsx)(n.Q6r,{style:{marginTop:0},children:x}),(0,r.jsx)(l.Bc,{isInvalid:g,message:v.error,fieldName:h.name})]})})}},8133:function(e,i,t){"use strict";var r=t(24246),n=t(96306);i.Z=e=>{let{title:i,children:t,isOpen:a,onClose:o,modalContentProps:s,showCloseButton:l=!1,footer:d,...c}=e;return(0,r.jsxs)(n.u_l,{isOpen:a,onClose:o,isCentered:!0,scrollBehavior:"inside",size:"xl",id:"add-modal",...c,children:[(0,r.jsx)(n.ZAr,{}),(0,r.jsxs)(n.hzk,{textAlign:"left",p:0,"data-testid":"add-modal-content",...s,children:[l&&(0,r.jsx)(n.olH,{}),(0,r.jsx)(n.xBx,{p:0,children:(0,r.jsx)(n.xuv,{backgroundColor:"gray.50",px:6,py:4,border:"1px",borderColor:"gray.200",borderTopRadius:6,display:"flex",justifyContent:"space-between",alignItems:"center",children:(0,r.jsx)(n.X6q,{as:"h3",size:"sm",children:i})})}),(0,r.jsx)(n.fef,{pb:4,overflow:"auto",children:t}),d&&(0,r.jsx)(n.mzw,{children:d})]})]})}},70788:function(e,i,t){"use strict";t.d(i,{m:function(){return d}});var r=t(24246),n=t(96306),a=t(79894),o=t.n(a),s=t(27378);let{Text:l}=n.AntTypography,d=e=>{let{items:i,...t}=e,a=(0,s.useMemo)(()=>null==i?void 0:i.map((e,t)=>{let a=t===i.length-1,s={...e},d=s.onClick&&!s.href;return("string"==typeof s.title&&(s.title=(0,r.jsx)(l,{style:{color:"inherit",maxWidth:a?void 0:400},ellipsis:!a,id:a?"breadcrumb-current-page":void 0,children:s.title})),d)?s.title=(0,r.jsx)(n.wpx,{type:"text",size:"small",icon:s.icon,onClick:s.onClick,className:"ant-breadcrumb-link -mt-px px-1 text-inherit",children:s.title}):(s.icon&&(s.title=(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("span",{className:"anticon align-text-bottom",children:s.icon}),s.title]})),s.href&&s.title&&(s.title=(0,r.jsx)(o(),{href:s.href,className:"ant-breadcrumb-link",children:s.title}),delete s.href)),s}),[i]);return(0,r.jsx)(n.zrq,{items:a,...t})}},5417:function(e,i,t){"use strict";t.r(i),t.d(i,{default:function(){return N}});var r=t(24246),n=t(19904),a=t(96306),o=t(25980),s=t(77213),l=t(58754),d=t(8133),c=t(34090),u=t(27378),p=t(55484),x=t(40324),m=t(812),h=t(46628),v=t(76174),j=t(97181);let g={identifier:"",name:"",client_id:"",client_secret:""},f=e=>({...e}),b=p.Ry().shape({provider:p.Z_().required().label("Provider"),name:p.Z_().required().label("Name"),client_id:p.Z_().required().label("Client ID"),client_secret:p.Z_().required().label("Client Secret")});var y=e=>{let{openIDProvider:i,onSuccess:t,onClose:n}=e,[o]=(0,v.Qc)(),[s]=(0,v.oP)(),l=(0,u.useMemo)(()=>i?f(i):g,[i]),d=(0,a.pmc)(),p=async(e,i)=>{(e=>{if((0,m.D4)(e)){let i=(0,m.e$)(e.error,"An unexpected error occurred while editing the SSO provider. Please try again.");d((0,h.Vo)(i))}else d((0,h.t5)("SSO provider configuration saved.")),n(),i.resetForm({}),t&&t(e.data)})(l.id?await s(e):await o(e))},y=[{label:"Azure",value:"azure"},{label:"Google",value:"google"},{label:"Okta",value:"okta"},{label:"Custom",value:"custom"}],k=()=>(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(x.j0,{id:"authorization_url",name:"authorization_url",label:"Authorization URL",tooltip:"Authorization URL for your provider",variant:"stacked",isRequired:!0}),(0,r.jsx)(x.j0,{id:"token_url",name:"token_url",label:"Token URL",tooltip:"Token URL for your provider",variant:"stacked",isRequired:!0})]}),C=()=>(0,r.jsx)(x.j0,{id:"domain",name:"domain",label:"Domain",tooltip:"Domain for your Okta provider",variant:"stacked",isRequired:!0}),_=()=>(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(x.j0,{id:"authorization_url",name:"authorization_url",label:"Authorization URL",tooltip:"Authorization URL for your provider",variant:"stacked",isRequired:!0}),(0,r.jsx)(x.j0,{id:"token_url",name:"token_url",label:"Token URL",tooltip:"Token URL for your provider",variant:"stacked",isRequired:!0}),(0,r.jsx)(x.j0,{id:"userinfo_url",name:"user_info_url",label:"User Info URL",tooltip:"User Info URL for your provider",variant:"stacked",isRequired:!0})]});return(0,r.jsx)(c.J9,{initialValues:l,enableReinitialize:!0,onSubmit:p,validationSchema:b,children:e=>{let{dirty:i,isValid:t,values:o}=e;return(0,r.jsx)(c.l0,{"data-testid":"openIDProvider-form",children:(0,r.jsxs)(a.Kqy,{spacing:4,children:[(0,r.jsx)(j.d,{name:"provider",label:"Provider",options:y,layout:"stacked",isRequired:!0}),(0,r.jsx)(x.j0,{id:"identifier",name:"identifier",label:"Identifier",tooltip:"Unique identifier for your provider",variant:"stacked",isRequired:!0,disabled:!!l.id}),(0,r.jsx)(x.j0,{id:"name",name:"name",label:"Name",tooltip:"Display name for your provider",variant:"stacked",isRequired:!0}),(0,r.jsx)(x.j0,{id:"client_id",name:"client_id",label:"Client ID",type:"password",tooltip:"Client ID for your provider",variant:"stacked",isRequired:!0}),(0,r.jsx)(x.j0,{id:"client_secret",name:"client_secret",label:"Client secret",type:"password",tooltip:"Client secret for your provider",variant:"stacked",isRequired:!0}),"azure"===o.provider&&k(),"okta"===o.provider&&C(),"custom"===o.provider&&_(),(0,r.jsxs)(a.xuv,{textAlign:"right",children:[(0,r.jsx)(a.wpx,{htmlType:"button","data-testid":"cancel-btn",className:"mr-3",onClick:n,children:"Cancel"}),(0,r.jsx)(a.wpx,{htmlType:"submit",type:"primary",disabled:!i||!t,"data-testid":"save-btn",children:"Save"})]})]})})}})},k=e=>{let{isOpen:i,onClose:t}=e;return(0,r.jsx)(d.Z,{isOpen:i,onClose:t,title:"Add SSO Provider",children:(0,r.jsx)(y,{onClose:t})})},C=e=>{let{isOpen:i,onClose:t,openIDProvider:n}=e;return(0,r.jsx)(d.Z,{isOpen:i,onClose:t,title:"Edit SSO Provider",children:(0,r.jsx)(y,{openIDProvider:n,onClose:t})})},_=e=>{let{openIDProvider:i}=e,{onOpen:t,isOpen:n,onClose:o}=(0,a.qY0)(),{onOpen:s,isOpen:l,onClose:d}=(0,a.qY0)(),c=(0,a.pmc)(),[u]=(0,v.rB)(),p=async()=>{let e=await u(i.identifier);if((0,m.D4)(e)){c((0,h.Vo)((0,m.e$)(e.error))),d();return}c((0,h.t5)("SSO provider deleted successfully")),d()};return(0,r.jsxs)(a.xuv,{alignItems:"center",borderRadius:"lg",borderWidth:"1px",display:"flex",height:"74px",marginBottom:"24px",padding:2,children:[(0,r.jsxs)(a.xuv,{display:"flex",alignItems:"center",children:[(0,r.jsx)(a.Eep,{src:"/images/oauth-login/".concat(i.provider,".svg"),alt:"".concat(i.provider," icon"),width:"40px",height:"40px"}),(0,r.jsxs)(a.xuv,{display:"flex",flexDirection:"column",children:[(0,r.jsx)(a.xvT,{fontSize:"medium",fontWeight:"bold",marginLeft:"16px",children:i.name}),(0,r.jsx)(a.xvT,{fontSize:"medium",marginLeft:"16px",children:i.identifier})]})]}),(0,r.jsxs)(a.xuv,{flexGrow:1,display:"flex",justifyContent:"flex-end",children:[(0,r.jsx)(a.wpx,{className:"mr-3",onClick:s,"data-testid":"remove-sso-provider-btn",children:"Remove"}),(0,r.jsx)(a.wpx,{className:"mr-3",onClick:t,"data-testid":"edit-sso-provider-btn",children:"Edit"})]}),(0,r.jsx)(C,{isOpen:n,onClose:o,openIDProvider:i}),(0,r.jsx)(a.cVQ,{isOpen:l,onClose:d,onConfirm:p,title:"Remove SSO provider",message:(0,r.jsx)(a.xvT,{children:"You are about to permanently remove this SSO provider. Are you sure you would like to continue?"})})]})},R=()=>{let{onOpen:e,isOpen:i,onClose:t}=(0,a.qY0)(),{data:n}=(0,v.qv)();return(0,r.jsxs)(a.xuv,{maxWidth:"600px",marginTop:"40px",children:[(0,r.jsxs)(a.X6q,{marginBottom:4,fontSize:"lg",display:"flex",justifyContent:"space-between",children:["SSO Providers",n&&n.length<5&&(0,r.jsx)(a.wpx,{onClick:e,"data-testid":"add-sso-provider-btn",children:"Add SSO Provider"})]}),(0,r.jsx)(a.xvT,{marginBottom:"30px",fontSize:"sm",children:"Use this area to add and manage SSO providers for you organization. Select “Add SSO provider” to add a new provider."}),null==n?void 0:n.map(e=>(0,r.jsx)(_,{openIDProvider:e},e.identifier)),(0,r.jsx)(k,{isOpen:i,onClose:t})]})},z=t(83265);let S={description:"",fides_key:z.Av,name:""},q=e=>({...e}),w=e=>({description:e.description,fides_key:e.fides_key,name:e.name}),O=p.Ry().shape({description:p.Z_().required().label("Description"),fides_key:p.Z_().required().label("Organization Fides Key"),name:p.Z_().required().label("Name")}),I=e=>{let{organization:i,onSuccess:t}=e,[n,o]=(0,z.$f)(),s=(0,u.useMemo)(()=>i?q(i):S,[i]),l=(0,a.pmc)(),d=async(e,i)=>{let r=w(e);(n=>{if((0,m.D4)(n)){let e=(0,m.e$)(n.error,"An unexpected error occurred while editing the organization. Please try again.");l((0,h.Vo)(e))}else l((0,h.t5)("Organization configuration saved.")),i.resetForm({values:e}),t&&t(r)})(await n(r))},p=!i||o.isLoading;return(0,r.jsx)(c.J9,{initialValues:s,enableReinitialize:!0,onSubmit:d,validationSchema:O,children:e=>{let{dirty:i,isValid:t}=e;return(0,r.jsx)(c.l0,{"data-testid":"organization-form",children:(0,r.jsxs)(a.Kqy,{spacing:4,children:[(0,r.jsx)(x.j0,{id:"fides_key",name:"fides_key",label:"Fides Key",disabled:!0,tooltip:"A unique key that identifies your organization. Not editable via UI.",variant:"stacked"}),(0,r.jsx)(x.j0,{id:"name",name:"name",label:"Name",disabled:p,tooltip:"User-friendly name for your organization, used in messaging to end-users and other public locations.",variant:"stacked"}),(0,r.jsx)(x.j0,{id:"description",name:"description",label:"Description",disabled:p,tooltip:"Short description of your organization, your services, etc.",variant:"stacked"}),(0,r.jsx)(a.xuv,{textAlign:"right",children:(0,r.jsx)(a.wpx,{htmlType:"submit",type:"primary",disabled:p||!i||!t,loading:p,"data-testid":"save-btn",children:"Save"})})]})})}})};var P=t(54682),N=()=>{let{data:e}=(0,z.GQ)(z.Av),{plus:i}=(0,o.hz)();return(0,r.jsx)(s.Z,{title:"Organization",children:(0,r.jsxs)(a.xuv,{"data-testid":"organization-management",children:[(0,r.jsx)(l.Z,{heading:"Organization Management"}),(0,r.jsxs)(a.xuv,{maxWidth:"600px",children:[(0,r.jsx)(a.xvT,{pb:6,fontSize:"sm",children:"Please use this section to manage your organization‘s details, including key information that will be recorded in the RoPA (Record of Processing Activities)."}),(0,r.jsx)(a.xuv,{background:"gray.50",padding:2,children:(0,r.jsx)(I,{organization:e})}),i&&(0,r.jsx)(n.ZP,{scopes:[P.Sh.OPENID_PROVIDER_CREATE],children:(0,r.jsx)(R,{})})]})]})})}}},function(e){e.O(0,[2888,9774,179],function(){return e(e.s=85082)}),_N_E=e.O()}]);
|
fides/ui-build/static/admin/_next/static/chunks/pages/settings/privacy-requests-2ecc073f41628f62.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8687],{69489:function(e,t,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/settings/privacy-requests",function(){return r(26819)}])},77213:function(e,t,r){"use strict";r.d(t,{Z:function(){return p}});var n=r(24246),a=r(96306),i=r(88038),s=r.n(i),d=r(86677);r(27378);var l=r(25980),o=r(90867),c=r(77830),u=()=>{let e=(0,d.useRouter)();return(0,n.jsx)(a.xuv,{bg:"gray.50",border:"1px solid",borderColor:"blue.400",borderRadius:"md",justifyContent:"space-between",p:5,mb:5,mt:5,children:(0,n.jsxs)(a.xuv,{children:[(0,n.jsxs)(a.Kqy,{direction:{base:"column",sm:"row"},justifyContent:"space-between",children:[(0,n.jsx)(a.xvT,{fontWeight:"semibold",children:"Configure your storage and messaging provider"}),(0,n.jsx)(a.wpx,{onClick:()=>{e.push(c.fz)},children:"Configure"})]}),(0,n.jsxs)(a.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:r,padded:i=!0,mainProps:c}=e,p=(0,l.hz)(),x=(0,d.useRouter)(),h="/privacy-requests"===x.pathname||"/datastore-connection"===x.pathname,v=!(p.flags.privacyRequestsConfiguration&&h),{data:m}=(0,o.JE)(void 0,{skip:v}),{data:f}=(0,o.PW)(void 0,{skip:v}),y=p.flags.privacyRequestsConfiguration&&(!m||!f)&&h;return(0,n.jsxs)(a.kCb,{"data-testid":r,direction:"column",h:"100vh",children:[(0,n.jsxs)(s(),{children:[(0,n.jsxs)("title",{children:["Fides Admin UI - ",r]}),(0,n.jsx)("meta",{name:"description",content:"Privacy Engineering Platform"}),(0,n.jsx)("link",{rel:"icon",href:"/favicon.ico"})]}),(0,n.jsxs)(a.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",...c,children:[y?(0,n.jsx)(u,{}):null,t]})]})}},10342:function(e,t,r){"use strict";var n=r(24246),a=r(96306),i=r(46238);t.Z=e=>{let{title:t,tooltip:r,children:s,...d}=e;return(0,n.jsxs)(a.xuv,{borderRadius:"md",border:"1px solid",borderColor:"gray.200",...d,children:[(0,n.jsxs)(a.X6q,{as:"h3",fontSize:"sm",fontWeight:"semibold",color:"gray.700",py:4,px:6,backgroundColor:"gray.50",borderRadius:"md",textAlign:"left",children:[t,r?(0,n.jsx)(a.xvT,{as:"span",mx:1,children:(0,n.jsx)(i.b,{label:r})}):void 0]}),(0,n.jsx)(a.Kqy,{p:6,spacing:6,children:s})]})}},26819:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return y}});var n=r(24246),a=r(77213),i=r(58754),s=r(96306),d=r(34090),l=r(55484),o=r(10342),c=r(40324),u=r(812),p=r(41841);let{useGetPrivacyRequestRedactionPatternsQuery:x,useUpdatePrivacyRequestRedactionPatternsMutation:h}=r(78780).u.injectEndpoints({endpoints:e=>({getPrivacyRequestRedactionPatterns:e.query({query:()=>({url:"privacy-request/redaction-patterns",method:"GET"}),providesTags:["Privacy Request Redaction Patterns"]}),updatePrivacyRequestRedactionPatterns:e.mutation({query:e=>({url:"privacy-request/redaction-patterns",method:"PUT",body:e}),invalidatesTags:["Privacy Request Redaction Patterns"]})})}),v=e=>!!(e&&e.trim().length>0),m=l.Ry().shape({patterns:l.IX().nullable().of(l.Ry().shape({id:l.Z_().required(),value:l.Z_().required().test("is-valid-pattern","Pattern cannot be empty",v).label("Pattern")}))});var f=()=>{let{errorAlert:e,successAlert:t}=(0,p.VY)(),{data:r}=x(void 0),[a,{isLoading:i}]=h(),l=async r=>{let n=r.patterns.filter(e=>v(e.value)).map(e=>e.value.trim()),i=await a({patterns:n});(0,u.D4)(i)?e((0,u.e$)(i.error),"Failed to update privacy request redaction patterns"):t("Privacy request redaction patterns updated successfully.")},f={patterns:((null==r?void 0:r.patterns)||[]).map((e,t)=>({id:"pattern-".concat(t),value:e}))};return(0,n.jsx)(s.xuv,{"data-testid":"privacy-request-redaction-patterns",children:(0,n.jsxs)(s.xuv,{maxW:"600px",children:[(0,n.jsx)(s.xvT,{fontSize:"sm",pb:6,children:"List of regex patterns used to mask dataset, collection, and field names in DSR package reports. Names matching these patterns will be replaced with position-based identifiers (e.g. dataset_1, collection_2, field_3)."}),(0,n.jsx)(o.Z,{"data-testid":"privacy-request-redaction-patterns-form",title:"Regex patterns",children:(0,n.jsx)(d.J9,{initialValues:f,enableReinitialize:!0,onSubmit:l,validationSchema:m,validateOnChange:!0,children:e=>{let{dirty:t,values:r,isValid:a}=e;return(0,n.jsxs)(d.l0,{children:[(0,n.jsx)(d.F2,{name:"patterns",render:e=>(0,n.jsxs)(s.kCb,{flexDir:"column",children:[r.patterns.map((t,r)=>(0,n.jsxs)(s.kCb,{flexDir:"row",my:3,children:[(0,n.jsx)(c.j0,{variant:"stacked",name:"patterns[".concat(r,"].value"),placeholder:"Enter regex pattern (e.g., sensitive_.*)"}),(0,n.jsx)(s.wpx,{"aria-label":"remove-pattern",className:"z-[2] ml-4",icon:(0,n.jsx)(s.pJl,{}),onClick:()=>{e.remove(r)}})]},t.id)),(0,n.jsx)(s.kCb,{justifyContent:"center",mt:3,children:(0,n.jsx)(s.wpx,{"aria-label":"add-pattern",className:"w-full",onClick:()=>{e.push({id:"pattern-new-".concat(r.patterns.length),value:""})},children:"Add regex pattern +"})})]})}),(0,n.jsx)(s.xuv,{mt:6,textAlign:"right",children:(0,n.jsx)(s.wpx,{htmlType:"submit",type:"primary",disabled:i||!t||!a,loading:i,"data-testid":"save-btn",children:"Save"})})]})}})})]})})},y=()=>(0,n.jsxs)(a.Z,{title:"Privacy request redaction patterns",children:[(0,n.jsx)(i.Z,{heading:"Privacy request redaction patterns"}),(0,n.jsx)(f,{})]})}},function(e){e.O(0,[431,4164,2888,9774,179],function(){return e(e.s=69489)}),_N_E=e.O()}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1617],{54543:function(e,t,i){(window.__NEXT_P=window.__NEXT_P||[]).push(["/systems/configure/[id]/test-datasets",function(){return i(94010)}])},18225:function(e,t,i){"use strict";var s=i(24246),n=i(96306);t.Z=e=>{let{alignment:t="center",...i}=e;return(0,s.jsx)(n.kCb,{boxSize:"full",align:"center",justify:t,children:(0,s.jsx)(n.$jN,{color:"primary",...i})})}},77213:function(e,t,i){"use strict";i.d(t,{Z:function(){return f}});var s=i(24246),n=i(96306),r=i(88038),l=i.n(r),a=i(86677);i(27378);var o=i(25980),d=i(90867),u=i(77830),c=()=>{let e=(0,a.useRouter)();return(0,s.jsx)(n.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)(n.xuv,{children:[(0,s.jsxs)(n.Kqy,{direction:{base:"column",sm:"row"},justifyContent:"space-between",children:[(0,s.jsx)(n.xvT,{fontWeight:"semibold",children:"Configure your storage and messaging provider"}),(0,s.jsx)(n.wpx,{onClick:()=>{e.push(u.fz)},children:"Configure"})]}),(0,s.jsxs)(n.xvT,{children:["Before Fides can process your privacy requests we need two simple steps to configure your storage and email client."," "]})]})})},f=e=>{let{children:t,title:i,padded:r=!0,mainProps:u}=e,f=(0,o.hz)(),h=(0,a.useRouter)(),p="/privacy-requests"===h.pathname||"/datastore-connection"===h.pathname,m=!(f.flags.privacyRequestsConfiguration&&p),{data:y}=(0,d.JE)(void 0,{skip:m}),{data:x}=(0,d.PW)(void 0,{skip:m}),v=f.flags.privacyRequestsConfiguration&&(!y||!x)&&p;return(0,s.jsxs)(n.kCb,{"data-testid":i,direction:"column",h:"100vh",children:[(0,s.jsxs)(l(),{children:[(0,s.jsxs)("title",{children:["Fides Admin UI - ",i]}),(0,s.jsx)("meta",{name:"description",content:"Privacy Engineering Platform"}),(0,s.jsx)("link",{rel:"icon",href:"/favicon.ico"})]}),(0,s.jsxs)(n.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",...u,children:[v?(0,s.jsx)(c,{}):null,t]})]})}},58754:function(e,t,i){"use strict";var s=i(24246),n=i(96306),r=i(70788);t.Z=e=>{let{heading:t,breadcrumbItems:i,isSticky:l=!0,children:a,rightContent:o,style:d,...u}=e;return(0,s.jsxs)("div",{...u,style:l?{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,s.jsxs)(n.jqI,{justify:"space-between",children:["string"==typeof t?(0,s.jsx)(n.lQT,{className:i||a?"pb-4":void 0,level:1,"data-testid":"page-heading",children:t}):t,o&&(0,s.jsx)("div",{"data-testid":"page-header-right-content",children:o})]}),!!i&&(0,s.jsx)(r.m,{className:a?"pb-4":void 0,items:i,"data-testid":"page-breadcrumb"}),a]})}},70788:function(e,t,i){"use strict";i.d(t,{m:function(){return d}});var s=i(24246),n=i(96306),r=i(79894),l=i.n(r),a=i(27378);let{Text:o}=n.AntTypography,d=e=>{let{items:t,...i}=e,r=(0,a.useMemo)(()=>null==t?void 0:t.map((e,i)=>{let r=i===t.length-1,a={...e},d=a.onClick&&!a.href;return("string"==typeof a.title&&(a.title=(0,s.jsx)(o,{style:{color:"inherit",maxWidth:r?void 0:400},ellipsis:!r,id:r?"breadcrumb-current-page":void 0,children:a.title})),d)?a.title=(0,s.jsx)(n.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,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("span",{className:"anticon align-text-bottom",children:a.icon}),a.title]})),a.href&&a.title&&(a.title=(0,s.jsx)(l(),{href:a.href,className:"ant-breadcrumb-link",children:a.title}),delete a.href)),a}),[t]);return(0,s.jsx)(n.zrq,{items:r,...i})}},41207:function(e,t,i){"use strict";i.d(t,{F:function(){return l},M:function(){return r}});var s=i(76649),n=i(65218);let r=i.n(n)()(()=>i.e(7088).then(i.bind(i,57088)).then(e=>e.default),{loadableGenerated:{webpack:()=>[57088]},ssr:!1}),l=e=>(0,s.Ln)({name:"string"},e)&&"YAMLException"===e.name},94010:function(e,t,i){"use strict";i.r(t),i.d(t,{default:function(){return z}});var s=i(24246),n=i(96306),r=i(86677),l=i(27378),a=i(16134),o=i(18225),d=i(77213),u=i(77830),c=i(58754),f=i(1315),h=i(66527),p=i(88340),m=i(812),y=i(46628),x=i(41207),v=i(41966),g=i(94725),b=i(88124);let _=e=>Array.isArray(e)?e.map(e=>_(e)).filter(e=>null!==e):e&&"object"==typeof e?Object.fromEntries(Object.entries(e).map(e=>{let[t,i]=e;return[t,_(i)]}).filter(e=>{let[,t]=e;return null!==t})):e,j=e=>{if(Array.isArray(e)){let t=e[0];if(!t)return"";let i=t.msg||"",s=t.loc?" (".concat(t.loc,")"):"";return"".concat(i).concat(s)}return e};var k=e=>{let{connectionKey:t}=e,i=(0,n.pmc)(),r=(0,a.T)(),[o]=(0,v.TG)(),[d,u]=(0,l.useState)(""),c=(0,a.C)(b.fD),f=(0,a.C)(b.lR),{data:k,isLoading:w,refetch:T}=(0,g.Eg)(t,{skip:!t}),{data:C,refetch:E}=(0,g.tW)({connectionKey:t,datasetKey:(null==c?void 0:c.fides_key)||"",policyKey:f},{skip:!t||!(null==c?void 0:c.fides_key)||!f});(0,l.useEffect)(()=>{C&&r((0,b.x0)(C.reachable))},[C,r]);let R=(0,l.useMemo)(()=>((null==k?void 0:k.items)||[]).map(e=>({value:e.fides_key,label:e.fides_key})),[null==k?void 0:k.items]);(0,l.useEffect)(()=>{if((null==k?void 0:k.items.length)&&(!c||!k.items.find(e=>e.fides_key===c.fides_key))){let e=k.items[0];r((0,b.w7)(e))}},[k,c,r]),(0,l.useEffect)(()=>{(null==c?void 0:c.ctl_dataset)&&u(h.ZP.dump(_(null==c?void 0:c.ctl_dataset)))},[c]),(0,l.useEffect)(()=>{f&&(null==c?void 0:c.fides_key)&&t&&E()},[f,null==c?void 0:c.fides_key,t,E]),(0,l.useEffect)(()=>{C&&r((0,b.x0)(C.reachable))},[C,r]);let S=async e=>{let t=null==k?void 0:k.items.find(t=>t.fides_key===e);t&&r((0,b.w7)(t))},O=async()=>{let e;if(!c)return;try{e=h.ZP.load(d)}catch(e){i((0,y.Vo)("YAML Parsing Error: ".concat(e instanceof h._L?"".concat(e.reason," ").concat(e.mark?"at line ".concat(e.mark.line):""):"Invalid YAML format")));return}let t=await o(e);if((0,m.D4)(t)){i((0,y.Vo)((0,m.e$)(t.error)));return}r((0,b.w7)({fides_key:c.fides_key,ctl_dataset:t.data})),i((0,y.t5)("Successfully modified dataset")),await T(),await E()},N=async()=>{try{let{data:e}=await T(),t=null==e?void 0:e.items.find(e=>e.fides_key===(null==c?void 0:c.fides_key));(null==t?void 0:t.ctl_dataset)&&u(h.ZP.dump(_(t.ctl_dataset))),i((0,y.t5)("Successfully refreshed datasets"))}catch(e){i((0,y.Vo)((0,m.e$)(e)))}};return(0,s.jsxs)(n.gCW,{alignItems:"stretch",flex:"1",maxWidth:"70vw",maxHeight:"100vh",children:[(0,s.jsxs)(n.X6q,{as:"h3",size:"sm",display:"flex",alignItems:"center",justifyContent:"space-between",children:[(0,s.jsxs)(n.Ugi,{children:[(0,s.jsx)(n.xvT,{children:"Edit dataset: "}),(0,s.jsx)(n.WPr,{id:"format","data-testid":"export-format-select",value:(null==c?void 0:c.fides_key)||"",options:R,onChange:S,className:"w-64"}),(0,s.jsx)(p.Z,{copyText:d})]}),(0,s.jsxs)(n.Ugi,{spacing:2,children:[(0,s.jsx)(n.esZ,{title:"Refresh to load the latest data from the database. This will overwrite any unsaved local changes.",placement:"top",children:(0,s.jsx)(n.wpx,{htmlType:"submit",size:"small","data-testid":"refresh-btn",onClick:N,loading:w,children:"Refresh"})}),(0,s.jsx)(n.esZ,{title:"Save your changes to update the dataset in the database.",placement:"top",children:(0,s.jsx)(n.wpx,{htmlType:"submit",size:"small",onClick:O,children:"Save"})})]})]}),(0,s.jsx)(n.Kqy,{border:"1px solid",borderColor:"gray.200",borderRadius:"md",justifyContent:"space-between",py:4,pr:4,"data-testid":"empty-state",flex:"1 1 auto",minHeight:"200px",children:(0,s.jsx)(x.M,{defaultLanguage:"yaml",value:d,height:"100%",onChange:e=>u(e||""),onMount:()=>{},options:{fontFamily:"Menlo",fontSize:13,minimap:{enabled:!1},readOnly:!1,hideCursorInOverviewRuler:!0,overviewRulerBorder:!1,scrollBeyondLastLine:!1},theme:"light"})}),C&&(0,s.jsx)(n.Kqy,{backgroundColor:(null==C?void 0:C.reachable)?"green.50":"red.50",border:"1px solid",borderColor:(null==C?void 0:C.reachable)?"green.500":"red.500",borderRadius:"md",p:2,flexShrink:0,mt:2,children:(0,s.jsx)(n.Ugi,{alignItems:"center",children:(0,s.jsxs)(n.Ugi,{flex:"1",children:[(null==C?void 0:C.reachable)?(0,s.jsx)(n.StI,{}):(0,s.jsx)(n.f9v,{}),(0,s.jsx)(n.xvT,{fontSize:"sm",whiteSpace:"pre-wrap",children:(null==C?void 0:C.reachable)?"Dataset is reachable":"Dataset is not reachable. ".concat(j(null==C?void 0:C.details))})]})})})]})},w=i(54458),T=i(16125),C=i(99716);let E=e=>{let t=new Date(e);return(0,w.WU)(t,"yyyy-MM-dd HH:mm:ss.SSS")},R=e=>{switch(e){case"ERROR":return"red.500";case"WARNING":return"orange.500";case"INFO":return"blue.500";default:return"gray.500"}},S=(0,l.memo)(e=>{let{log:t}=e;return(0,s.jsxs)(n.xuv,{as:"pre",margin:0,fontSize:"xs",fontFamily:"monospace",whiteSpace:"pre-wrap",wordBreak:"break-word",children:[(0,s.jsx)(n.xvT,{as:"span",color:"green.500",children:E(t.timestamp)}),(0,s.jsx)(n.xvT,{as:"span",children:" | "}),(0,s.jsx)(n.xvT,{as:"span",color:R(t.level),children:t.level.padEnd(8)}),(0,s.jsx)(n.xvT,{as:"span",children:" | "}),(0,s.jsx)(n.xvT,{as:"span",color:"cyan.500",children:t.module_info}),(0,s.jsx)(n.xvT,{as:"span",children:" - "}),(0,s.jsx)(n.xvT,{as:"span",color:"ERROR"===t.level||"WARNING"===t.level?R(t.level):"gray.800",children:t.message})]})});S.displayName="LogLine";var O=(0,l.memo)(()=>{let e=(0,a.T)(),t=(0,l.useRef)(null),i=(0,T.v9)(b.HN),r=(0,T.v9)(b.pz),{data:o}=(0,C.fV)({privacy_request_id:i},{skip:!i,pollingInterval:1e3});(0,l.useEffect)(()=>{o&&e((0,b.Hy)(o))},[o,e]);let d=(0,l.useCallback)(()=>{t.current&&(t.current.scrollTop=t.current.scrollHeight)},[]);(0,l.useEffect)(()=>{d()},[r,d]);let u=(0,l.useMemo)(()=>(null==r?void 0:r.map(e=>"".concat(E(e.timestamp)," | ").concat(e.level," | ").concat(e.module_info," - ").concat(e.message)).join("\n"))||"",[r]);return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(n.X6q,{as:"h3",size:"sm",display:"flex",alignItems:"center",justifyContent:"space-between",children:(0,s.jsxs)(n.Ugi,{children:[(0,s.jsx)(n.xvT,{children:"Test logs"}),(0,s.jsx)(p.Z,{copyText:u})]})}),(0,s.jsx)(n.xuv,{ref:t,height:"200px",overflowY:"auto",borderWidth:1,borderColor:"gray.200",borderRadius:"md",p:2,children:null==r?void 0:r.map(e=>(0,s.jsx)(S,{log:e},"".concat(e.timestamp,"-").concat(e.module_info,"-").concat(e.message)))})]})}),N=i(46238);let{useGetPoliciesQuery:P}=i(78780).u.injectEndpoints({endpoints:e=>({getPolicies:e.query({query:()=>({url:"/dsr/policy"}),providesTags:()=>["Policies"]})})});var q=i(54682),I=i(31883),M=e=>{let{connectionKey:t}=e,i=(0,n.pmc)(),r=(0,a.T)(),[o]=(0,g.s7)(),d=(0,T.v9)(b.fD),u=(0,T.v9)(b.YS),c=(0,T.v9)(b.Af),f=(0,T.v9)(b.zn),h=(0,T.v9)(b.lR),x=(0,T.v9)(b.M_),v=(0,T.v9)(b.HN),[_,j]=(0,l.useState)("{}");(0,l.useEffect)(()=>{d&&j(JSON.stringify(f,null,2))},[d,f]);let{data:k,error:w}=(0,C.Z2)({privacy_request_id:v},{skip:!v||!(null==d?void 0:d.fides_key),pollingInterval:2e3}),{refetch:E}=(0,C.fV)({privacy_request_id:v},{skip:!v}),{refetch:R}=(0,g.I1)({connectionKey:t,datasetKey:(null==d?void 0:d.fides_key)||""},{skip:!t||!(null==d?void 0:d.fides_key),refetchOnMountOrArgChange:!0}),{data:S}=P(),O=(0,l.useMemo)(()=>((null==S?void 0:S.items)||[]).filter(e=>{var t;return null===(t=e.rules)||void 0===t?void 0:t.some(e=>"access"===e.action_type)}).map(e=>({value:e.key,label:e.name})),[null==S?void 0:S.items]);(0,l.useEffect)(()=>{let e=null==d?void 0:d.fides_key;t&&e&&R().then(t=>{t.data&&(null==d?void 0:d.fides_key)===e&&r((0,b.qD)({datasetKey:e,values:t.data}))})},[d,t,r,R]),(0,l.useEffect)(()=>{let e=null==d?void 0:d.fides_key;if(w&&"status"in w&&404===w.status){r((0,b.hT)()),i((0,y.Vo)("Test run failed"));return}if(!k||k.privacy_request_id!==v||!e)return;let t={datasetKey:e,values:JSON.stringify(k,null,2)};k.status===q.q2.COMPLETE?x&&E().then(()=>{r((0,b.EO)(t)),r((0,b.hT)()),i((0,y.t5)("Test run completed successfully"))}):k.status===q.q2.ERROR&&E().then(()=>{r((0,b.EO)(t)),r((0,b.hT)()),i((0,y.Vo)("Test run failed"))})},[k,w,v,d,x,r,i,E]);let M=(0,l.useMemo)(()=>h&&(null==S?void 0:S.items)?h:null,[h,null==S?void 0:S.items]),D=async()=>{if((null==d?void 0:d.fides_key)&&h)try{let e;try{e=JSON.parse(_)}catch(e){i((0,y.Vo)("Invalid JSON in test input"));return}r((0,b.Vh)(d.fides_key)),i((0,y.t5)("Test run started"));let s=await o({connection_key:t,dataset_key:d.fides_key,identities:e,policy_key:h});(0,I.D4)(s)?(i((0,y.Vo)((0,m.e$)(s.error))),r((0,b.hT)())):"data"in s?r((0,b.eY)(s.data.privacy_request_id)):(r((0,b.hT)()),i((0,y.Vo)("No privacy request ID in response")))}catch(e){r((0,b.hT)()),i((0,y.Vo)("Failed to start test run"))}};return(0,s.jsxs)(n.gCW,{alignItems:"stretch",flex:"1",maxWidth:"70vw",minHeight:"0",children:[(0,s.jsxs)(n.X6q,{as:"h3",size:"sm",display:"flex",alignItems:"center",justifyContent:"space-between",children:[(0,s.jsxs)(n.Ugi,{children:[(0,s.jsx)(n.xvT,{children:"Test inputs"}),(0,s.jsx)(p.Z,{copyText:_})]}),(0,s.jsxs)(n.Ugi,{children:[(0,s.jsx)(n.WPr,{id:"policy","aria-label":"Policy selector","data-testid":"policy-select",placeholder:"Select policy",value:M,options:O,onChange:e=>{r((0,b.kF)(e))},className:"w-64"}),(0,s.jsx)(n.wpx,{htmlType:"submit",size:"small",type:"primary","data-testid":"run-btn",onClick:x?()=>{r((0,b.qU)()),i((0,y.t5)("Test manually stopped by user"))}:D,disabled:!h||!u,children:x?"Stop":"Run"}),(0,s.jsx)(N.b,{label:x?"Stop the currently running test":"Run a test access request using the provided test input data and the selected access policy"})]})]}),(0,s.jsx)(n.gxH,{size:"sm",focusBorderColor:"primary.600",color:"gray.800",isDisabled:x,height:"100%",value:_,onChange:e=>{let t=e.target.value;j(t);try{let e=JSON.parse(t);d&&r((0,b.qD)({datasetKey:d.fides_key,values:e}))}catch(e){}}}),(0,s.jsxs)(n.X6q,{as:"h3",size:"sm",children:["Test results ",(0,s.jsx)(p.Z,{copyText:c})]}),(0,s.jsx)(n.gxH,{isReadOnly:!0,size:"sm",focusBorderColor:"primary.600",color:"gray.800",isDisabled:!1,height:"100%",value:c})]})};let D=e=>e.id?Array.isArray(e.id)?e.id[0]:e.id:"";var z=()=>{var e;let t=(0,r.useRouter)(),i=(0,a.T)(),h=D(t.query),{data:p,isLoading:m}=(0,f.rn)(h,{skip:!h}),y=(null==p?void 0:null===(e=p.connection_configs)||void 0===e?void 0:e.key)||"";return((0,l.useEffect)(()=>{i((0,f.db)(p))},[p,i]),m)?(0,s.jsx)(d.Z,{title:"Systems",children:(0,s.jsx)(o.Z,{})}):(0,s.jsxs)(d.Z,{title:"System inventory",mainProps:{height:"100vh",display:"flex",flexDirection:"column"},children:[(0,s.jsx)(c.Z,{heading:"System inventory",breadcrumbItems:[{title:"System inventory",href:u.So},{title:(null==p?void 0:p.name)||"",href:"/systems/configure/".concat(h,"#integrations")},{title:"Test datasets"}]}),(0,s.jsxs)(n.gCW,{alignItems:"stretch",flex:"1",minHeight:"0",spacing:"4",padding:"0",children:[(0,s.jsxs)(n.Ugi,{alignItems:"stretch",flex:"1",minHeight:"0",spacing:"4",maxHeight:"60vh",children:[(0,s.jsx)(k,{connectionKey:y}),(0,s.jsx)(M,{connectionKey:y})]}),(0,s.jsx)(n.xuv,{flex:"0 0 auto",children:(0,s.jsx)(O,{})})]})]})}},31883:function(e,t,i){"use strict";i.d(t,{Bw:function(){return s.Bw},D4:function(){return s.D4}});var s=i(19043)},76737:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var i in t)Object.defineProperty(e,i,{enumerable:!0,get:t[i]})}(t,{default:function(){return a},noSSR:function(){return l}});let s=i(51538);i(24246),i(27378);let n=s._(i(21887));function r(e){return{default:(null==e?void 0:e.default)||e}}function l(e,t){return delete t.webpack,delete t.modules,e(t)}function a(e,t){let i=n.default,s={loading:e=>{let{error:t,isLoading:i,pastDelay:s}=e;return null}};e instanceof Promise?s.loader=()=>e:"function"==typeof e?s.loader=e:"object"==typeof e&&(s={...s,...e});let a=(s={...s,...t}).loader;return(s.loadableGenerated&&(s={...s,...s.loadableGenerated},delete s.loadableGenerated),"boolean"!=typeof s.ssr||s.ssr)?i({...s,loader:()=>null!=a?a().then(r):Promise.resolve(r(()=>null))}):(delete s.webpack,delete s.modules,l(i,s))}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},28438:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"LoadableContext",{enumerable:!0,get:function(){return s}});let s=i(51538)._(i(27378)).default.createContext(null)},21887:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return f}});let s=i(51538)._(i(27378)),n=i(28438),r=[],l=[],a=!1;function o(e){let t=e(),i={loading:!0,loaded:null,error:null};return i.promise=t.then(e=>(i.loading=!1,i.loaded=e,e)).catch(e=>{throw i.loading=!1,i.error=e,e}),i}class d{promise(){return this._res.promise}retry(){this._clearTimeouts(),this._res=this._loadFn(this._opts.loader),this._state={pastDelay:!1,timedOut:!1};let{_res:e,_opts:t}=this;e.loading&&("number"==typeof t.delay&&(0===t.delay?this._state.pastDelay=!0:this._delay=setTimeout(()=>{this._update({pastDelay:!0})},t.delay)),"number"==typeof t.timeout&&(this._timeout=setTimeout(()=>{this._update({timedOut:!0})},t.timeout))),this._res.promise.then(()=>{this._update({}),this._clearTimeouts()}).catch(e=>{this._update({}),this._clearTimeouts()}),this._update({})}_update(e){this._state={...this._state,error:this._res.error,loaded:this._res.loaded,loading:this._res.loading,...e},this._callbacks.forEach(e=>e())}_clearTimeouts(){clearTimeout(this._delay),clearTimeout(this._timeout)}getCurrentValue(){return this._state}subscribe(e){return this._callbacks.add(e),()=>{this._callbacks.delete(e)}}constructor(e,t){this._loadFn=e,this._opts=t,this._callbacks=new Set,this._delay=null,this._timeout=null,this.retry()}}function u(e){return function(e,t){let i=Object.assign({loader:null,loading:null,delay:200,timeout:null,webpack:null,modules:null},t),r=null;function o(){if(!r){let t=new d(e,i);r={getCurrentValue:t.getCurrentValue.bind(t),subscribe:t.subscribe.bind(t),retry:t.retry.bind(t),promise:t.promise.bind(t)}}return r.promise()}if(!a){let e=i.webpack?i.webpack():i.modules;e&&l.push(t=>{for(let i of e)if(t.includes(i))return o()})}function u(e,t){!function(){o();let e=s.default.useContext(n.LoadableContext);e&&Array.isArray(i.modules)&&i.modules.forEach(t=>{e(t)})}();let l=s.default.useSyncExternalStore(r.subscribe,r.getCurrentValue,r.getCurrentValue);return s.default.useImperativeHandle(t,()=>({retry:r.retry}),[]),s.default.useMemo(()=>{var t;return l.loading||l.error?s.default.createElement(i.loading,{isLoading:l.loading,pastDelay:l.pastDelay,timedOut:l.timedOut,error:l.error,retry:r.retry}):l.loaded?s.default.createElement((t=l.loaded)&&t.default?t.default:t,e):null},[e,l])}return u.preload=()=>o(),u.displayName="LoadableComponent",s.default.forwardRef(u)}(o,e)}function c(e,t){let i=[];for(;e.length;){let s=e.pop();i.push(s(t))}return Promise.all(i).then(()=>{if(e.length)return c(e,t)})}u.preloadAll=()=>new Promise((e,t)=>{c(r).then(e,t)}),u.preloadReady=e=>(void 0===e&&(e=[]),new Promise(t=>{let i=()=>(a=!0,t());c(l,e).then(i,i)})),window.__NEXT_PRELOADREADY=u.preloadReady;let f=u},65218:function(e,t,i){e.exports=i(76737)}},function(e){e.O(0,[6527,2888,9774,179],function(){return e(e.s=54543)}),_N_E=e.O()}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3785],{90988:function(e,t,s){(window.__NEXT_P=window.__NEXT_P||[]).push(["/systems",function(){return s(49465)}])},56358:function(e,t,s){"use strict";s.d(t,{q:function(){return n}});var i=s(24246);let n=(0,s(96306).IUT)({displayName:"TrashCanOutlineIcon",viewBox:"0 0 11 12",path:(0,i.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,s){"use strict";s.d(t,{Z:function(){return m}});var i=s(24246),n=s(96306),a=s(88038),r=s.n(a),l=s(86677);s(27378);var o=s(25980),d=s(90867),c=s(77830),u=()=>{let e=(0,l.useRouter)();return(0,i.jsx)(n.xuv,{bg:"gray.50",border:"1px solid",borderColor:"blue.400",borderRadius:"md",justifyContent:"space-between",p:5,mb:5,mt:5,children:(0,i.jsxs)(n.xuv,{children:[(0,i.jsxs)(n.Kqy,{direction:{base:"column",sm:"row"},justifyContent:"space-between",children:[(0,i.jsx)(n.xvT,{fontWeight:"semibold",children:"Configure your storage and messaging provider"}),(0,i.jsx)(n.wpx,{onClick:()=>{e.push(c.fz)},children:"Configure"})]}),(0,i.jsxs)(n.xvT,{children:["Before Fides can process your privacy requests we need two simple steps to configure your storage and email client."," "]})]})})},m=e=>{let{children:t,title:s,padded:a=!0,mainProps:c}=e,m=(0,o.hz)(),p=(0,l.useRouter)(),x="/privacy-requests"===p.pathname||"/datastore-connection"===p.pathname,h=!(m.flags.privacyRequestsConfiguration&&x),{data:g}=(0,d.JE)(void 0,{skip:h}),{data:f}=(0,d.PW)(void 0,{skip:h}),j=m.flags.privacyRequestsConfiguration&&(!g||!f)&&x;return(0,i.jsxs)(n.kCb,{"data-testid":s,direction:"column",h:"100vh",children:[(0,i.jsxs)(r(),{children:[(0,i.jsxs)("title",{children:["Fides Admin UI - ",s]}),(0,i.jsx)("meta",{name:"description",content:"Privacy Engineering Platform"}),(0,i.jsx)("link",{rel:"icon",href:"/favicon.ico"})]}),(0,i.jsxs)(n.kCb,{as:"main",direction:"column",py:a?6:0,px:a?10:0,h:a?"calc(100% - 48px)":"full",flex:1,minWidth:0,overflow:"auto",...c,children:[j?(0,i.jsx)(u,{}):null,t]})]})}},58754:function(e,t,s){"use strict";var i=s(24246),n=s(96306),a=s(70788);t.Z=e=>{let{heading:t,breadcrumbItems:s,isSticky:r=!0,children:l,rightContent:o,style:d,...c}=e;return(0,i.jsxs)("div",{...c,style:r?{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,i.jsxs)(n.jqI,{justify:"space-between",children:["string"==typeof t?(0,i.jsx)(n.lQT,{className:s||l?"pb-4":void 0,level:1,"data-testid":"page-heading",children:t}):t,o&&(0,i.jsx)("div",{"data-testid":"page-header-right-content",children:o})]}),!!s&&(0,i.jsx)(a.m,{className:l?"pb-4":void 0,items:s,"data-testid":"page-breadcrumb"}),l]})}},19904:function(e,t,s){"use strict";s.d(t,{Tg:function(){return r}});var i=s(24246),n=s(16134),a=s(31793);let r=e=>(0,n.C)(a.uu).filter(t=>e.includes(t)).length>0;t.ZP=e=>{let{scopes:t,children:s}=e;return r(t)?(0,i.jsx)(i.Fragment,{children:s}):null}},70788:function(e,t,s){"use strict";s.d(t,{m:function(){return d}});var i=s(24246),n=s(96306),a=s(79894),r=s.n(a),l=s(27378);let{Text:o}=n.AntTypography,d=e=>{let{items:t,...s}=e,a=(0,l.useMemo)(()=>null==t?void 0:t.map((e,s)=>{let a=s===t.length-1,l={...e},d=l.onClick&&!l.href;return("string"==typeof l.title&&(l.title=(0,i.jsx)(o,{style:{color:"inherit",maxWidth:a?void 0:400},ellipsis:!a,id:a?"breadcrumb-current-page":void 0,children:l.title})),d)?l.title=(0,i.jsx)(n.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,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("span",{className:"anticon align-text-bottom",children:l.icon}),l.title]})),l.href&&l.title&&(l.title=(0,i.jsx)(r(),{href:l.href,className:"ant-breadcrumb-link",children:l.title}),delete l.href)),l}),[t]);return(0,i.jsx)(n.zrq,{items:a,...s})}},49465:function(e,t,s){"use strict";s.r(t);var i=s(24246),n=s(92222),a=s(59003),r=s(96306),l=s(86677),o=s(27378),d=s(16134),c=s(812),u=s(56358),m=s(77213),p=s(77830),x=s(58754),h=s(19904),g=s(47935),f=s(46628),j=s(1315),C=s(54682),y=s(31883);let v=(0,n.Cl)(),b={items:[],total:0,page:1,size:25,pages:1},w=()=>(0,i.jsxs)(r.gCW,{mt:6,p:10,spacing:4,borderRadius:"base",maxW:"70%","data-testid":"no-results-notice",alignSelf:"center",margin:"auto",textAlign:"center",children:[(0,i.jsxs)(r.gCW,{children:[(0,i.jsx)(r.xvT,{fontSize:"md",fontWeight:"600",children:"No systems found."}),(0,i.jsx)(r.xvT,{fontSize:"sm",children:'Click "Add a system" to add your first system to Fides.'})]}),(0,i.jsx)(r.wpx,{href:p.xo,size:"small",type:"primary","data-testid":"add-privacy-notice-btn",children:"Add a system +"})]});t.default=()=>{let e=(0,l.useRouter)(),t=(0,d.T)(),s=(0,r.pmc)(),{isOpen:k,onOpen:R,onClose:_}=(0,r.qY0)(),[T]=(0,j.DW)(),[z,N]=o.useState(null),{PAGE_SIZES:H,pageSize:P,setPageSize:S,onPreviousPageClick:M,isPreviousPageDisabled:V,onNextPageClick:D,isNextPageDisabled:E,startRange:Z,endRange:q,pageIndex:F,setTotalPages:W,resetPageIndexToDefault:L}=(0,g.oi)(),[A,I]=(0,o.useState)(),O=(0,o.useCallback)(e=>{L(),I(e)},[L,I]),{data:B,isLoading:G,isFetching:Y}=(0,j.xF)({page:F,size:P,search:A}),{items:Q,total:U,pages:K}=(0,o.useMemo)(()=>null!=B?B:b,[B]);(0,o.useEffect)(()=>{W(K)},[K,W]);let X=e=>e.name&&""!==e.name?e.name:e.fides_key,$=(0,o.useCallback)(s=>{t((0,j.db)(s)),e.push({pathname:p.Dv,query:{id:s.fides_key},hash:"#information"})},[t,e]),J=async e=>{let t=await T(e.fides_key);(0,y.D4)(t)?s((0,f.Vo)((0,c.e$)(t.error))):s((0,f.t5)("Successfully deleted system")),_()},ee=(0,o.useMemo)(()=>[v.accessor(e=>e.name,{id:"name",cell:e=>(0,i.jsx)(g.G3,{value:X(e.row.original)}),header:e=>(0,i.jsx)(g.Rr,{value:"System Name",...e}),size:200}),v.accessor(e=>e.description,{id:"description",header:e=>(0,i.jsx)(g.Rr,{value:"Description",...e}),cell:e=>(0,i.jsx)(g.G3,{value:e.getValue(),cellProps:e}),size:300,meta:{showHeaderMenu:!0}}),v.accessor(e=>e.administrating_department,{id:"department",cell:e=>(0,i.jsx)(g.G3,{value:e.getValue()}),header:e=>(0,i.jsx)(g.Rr,{value:"Department",...e}),size:200}),v.accessor(e=>e.processes_personal_data,{id:"processes_personal_data",cell:e=>(0,i.jsx)(g.G3,{value:e.getValue()?"Yes":"No"}),header:e=>(0,i.jsx)(g.Rr,{value:"Processes Personal Data",...e}),size:100}),v.display({id:"actions",header:"Actions",cell:e=>{let{row:t}=e,s=t.original;return(0,i.jsxs)(r.Ugi,{spacing:0,"data-testid":"system-".concat(s.fides_key),children:[(0,i.jsx)(r.wpx,{"aria-label":"Edit property","data-testid":"edit-btn",size:"small",className:"mr-2",icon:(0,i.jsx)(r.dY8,{}),onClick:()=>$(s)}),(0,i.jsx)(h.ZP,{scopes:[C.Sh.SYSTEM_DELETE],children:(0,i.jsx)(r.wpx,{"aria-label":"Delete system","data-testid":"delete-btn",size:"small",className:"mr-2",icon:(0,i.jsx)(u.q,{}),onClick:()=>{N(s),R()}})})]})},meta:{disableRowClick:!0}})],[$,R]),et=(0,a.b7)({getCoreRowModel:(0,n.sC)(),getFilteredRowModel:(0,n.vL)(),getSortedRowModel:(0,n.tj)(),columnResizeMode:"onChange",columns:ee,data:Q});return(0,i.jsx)(m.Z,{title:"System inventory",children:(0,i.jsxs)(r.xuv,{"data-testid":"system-management",children:[(0,i.jsx)(x.Z,{heading:"System inventory",breadcrumbItems:[{title:"All systems"}]}),G?(0,i.jsx)(g.I4,{rowHeight:36,numRows:15}):(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(g.Q$,{children:(0,i.jsx)(g.HO,{globalFilter:A,setGlobalFilter:O,placeholder:"Search",testid:"system-search"})}),(0,i.jsx)(g.ZK,{tableInstance:et,emptyTableNotice:(0,i.jsx)(w,{}),onRowClick:$})]}),(0,i.jsx)(g.s8,{totalRows:U||0,pageSizes:H,setPageSize:S,onPreviousPageClick:M,isPreviousPageDisabled:V||Y,onNextPageClick:D,isNextPageDisabled:E||Y,startRange:Z,endRange:q}),(0,i.jsx)(r.cVQ,{isOpen:k,onClose:_,onConfirm:()=>J(z),title:"Delete ".concat(z&&X(z)),message:(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)(r.xvT,{children:["You are about to permanently delete the system"," ",(0,i.jsx)(r.xvT,{color:"complimentary.500",as:"span",fontWeight:"bold",whiteSpace:"nowrap",children:z&&X(z)}),"."]}),(0,i.jsx)(r.xvT,{children:"Are you sure you would like to continue?"})]})})]})})}},31883:function(e,t,s){"use strict";s.d(t,{Bw:function(){return i.Bw},D4:function(){return i.D4}});var i=s(19043)}},function(e){e.O(0,[2888,9774,179],function(){return e(e.s=90988)}),_N_E=e.O()}]);
|