ethyca-fides 2.59.2b2__py2.py3-none-any.whl → 2.59.2rc0__py2.py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {ethyca_fides-2.59.2b2.dist-info → ethyca_fides-2.59.2rc0.dist-info}/METADATA +2 -2
- {ethyca_fides-2.59.2b2.dist-info → ethyca_fides-2.59.2rc0.dist-info}/RECORD +206 -209
- {ethyca_fides-2.59.2b2.dist-info → ethyca_fides-2.59.2rc0.dist-info}/WHEEL +1 -1
- fides/_version.py +3 -3
- fides/api/api/v1/endpoints/storage_endpoints.py +4 -5
- fides/api/db/system.py +121 -1
- fides/api/models/asset.py +2 -1
- fides/api/models/privacy_notice.py +19 -14
- fides/api/models/sql_models.py +51 -0
- fides/api/schemas/application_config.py +0 -1
- fides/api/schemas/connection_configuration/connection_secrets_datahub.py +3 -3
- fides/api/schemas/connection_configuration/connection_secrets_mysql.py +0 -12
- fides/api/schemas/connection_configuration/connection_secrets_postgres.py +4 -0
- fides/api/schemas/messaging/messaging.py +2 -9
- fides/api/schemas/storage/storage.py +1 -35
- fides/api/schemas/storage/storage_secrets_docs_only.py +2 -8
- fides/api/schemas/system.py +2 -1
- fides/api/service/connectors/mysql_connector.py +1 -13
- fides/api/service/connectors/postgres_connector.py +4 -2
- fides/api/service/storage/storage_authenticator_service.py +0 -28
- fides/api/service/storage/storage_uploader_service.py +1 -25
- fides/api/tasks/storage.py +1 -45
- fides/api/util/storage_util.py +0 -2
- fides/service/messaging/aws_ses_service.py +16 -25
- fides/ui-build/static/admin/404.html +1 -1
- fides/ui-build/static/admin/_next/static/P3RkpoojridGfvvbDI91a/_buildManifest.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/{1100-93c5835d689e9dd5.js → 1100-45c0634b4f51d10c.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/1376-92890c17ce39ca0d.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/146-d1820217dc36d46d.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/{1817-16d1dd3b13e590b3.js → 1817-6abbe957a53026d7.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/{1904-0f03e5a2c3de8487.js → 1904-281183a117e26585.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/{2479-18fbea714b5f1f7a.js → 2479-b4f7a1c7c711cb65.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/3086-d1ba90bc6ac9174b.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/3244-3d94bf3393366412.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/{3702-c4465f7b3bbc3edc.js → 3702-3d814671c31eaca3.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/3855-237afbbea7f54707.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/{3872-03319b7328ddc284.js → 3872-c53d74aebd12cfd3.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/401-50974f107c2712fc.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/4060-52fd85fb1e15a2b8.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/4121-476f657b03a78965.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/4481-288d74a33473cff7.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/5102-626b9ff42e904276.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/5480-1623dbacdf4e6794.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/{5487-7751e91b40dc6050.js → 5487-9a2aecb0ec63d567.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/{5826-8516f6c635510e95.js → 5826-1f4f74bf3b5348e4.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/5973-942ce645a4279587.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/{6372-d3f778c62070545f.js → 6372-2aee10b79089521a.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/6395-4224d6d26d1e8bb7.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/6853-ca5dacd25c9ccb7c.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/{6954-169abc679def0fb6.js → 6954-127745bfdc5bc0b3.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/{7751-e0a78be0ca620df1.js → 7751-3913b8c055f599e5.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/79-77cfed02164241ca.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/{8433-4481a5d085d3b008.js → 8433-c4c765833ab9cc07.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/{8934-e2a4fd9f8ab74142.js → 8934-ffa2b0509bc7a845.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/9282-1a48b10b114d01f4.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/{9327-b019990849ff57f3.js → 9327-4970d356f7000c0b.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/{9392.5f3cfb8eafbeac59.js → 9392.da35a8e778812d91.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/9572-2b9b10e146130c85.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/{9676.2e1267373b5a6076.js → 9676.f297a1347ac09c56.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/9767-bf415d0daea960cd.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/{9951-e0d7db7ec538ebf1.js → 9951-66aad0602aadfbe2.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/{404-1dfbf30fba0233a2.js → 404-29560aa2e6a60963.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/{_app-9560c81c6cf5f050.js → _app-1ce747bb4aa843da.js} +48 -48
- fides/ui-build/static/admin/_next/static/chunks/pages/add-systems/manual-58e9256e86916ecd.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/add-systems/{multiple-14c60fbc5907c621.js → multiple-2392e3a101fae073.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/add-systems-a6926f7ec7ad10cf.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/ant-poc-404f3c9018952800.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/consent/configure/{add-vendors-79949b978a966399.js → add-vendors-7dfe37b9f0ff9a3c.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/consent/{configure-6af86d0717034a7f.js → configure-dba7848b760ba227.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/consent/privacy-experience/{[id]-e876f21f7f2245aa.js → [id]-78de4bde88e18b0f.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/consent/privacy-experience/{new-300fd2800c417d0b.js → new-c02b14c50b19bd91.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/consent/privacy-experience-7eeeee3769e73f78.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/consent/privacy-notices/{[id]-80dd6ab96599efb5.js → [id]-75c2ed6ba3de48cd.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/consent/privacy-notices/{new-e48da14c5d5d0a66.js → new-487ae57dc7e2ded2.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/consent/{privacy-notices-05e67aa6f029e6d4.js → privacy-notices-65091908d6296afc.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/consent/{properties-6c99121562583eb7.js → properties-f67fda6a71d0a46b.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/consent/reporting-7a1976c0d1aca8b6.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/{consent-253aa071516a6436.js → consent-75395dfc224cf44b.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/data-catalog/[systemId]/projects/{[projectUrn]-366121dfd638f6b5.js → [projectUrn]-fa65c67ec8c4b5e6.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/data-catalog/[systemId]/{projects-974623a3afd4754b.js → projects-e76a07ee6ee8d55f.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/data-catalog-75989f9732d90793.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/action-center/[monitorId]/[systemId]-6b3d1fe762c747d8.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/action-center/[monitorId]-61eafb8444bffb76.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/action-center-38476c697da53480.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/activity-e7869f658e3017b9.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/detection/{[resourceUrn]-10f789d4ab2b8927.js → [resourceUrn]-1bcaa606739ea1c5.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/{detection-f473b2ee1c67be3c.js → detection-22f55dc12354b4c6.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/discovery/{[resourceUrn]-2569551ae75ea5a2.js → [resourceUrn]-86111c25dc30ef2b.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/{discovery-ad077f30849fdc0a.js → discovery-853be75f08b9ab5c.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/{datamap-0cb4cd87c876acc3.js → datamap-423172d31de8e9c6.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/dataset/[datasetId]/[collectionName]/{[...subfieldNames]-fd1f9aba215e8fb2.js → [...subfieldNames]-704553f5329fb9d4.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/dataset/[datasetId]/{[collectionName]-06793bb37fa509d8.js → [collectionName]-06c19dca941edb14.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/dataset/{[datasetId]-662ce6650bd83f05.js → [datasetId]-eac517f43d5f53a8.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/dataset/{new-5b773da9c79af072.js → new-5aff1d01c6c30ad6.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/{dataset-a8582040705239d4.js → dataset-f4d57b3432c57112.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/datastore-connection/{[id]-e650d48347fb457e.js → [id]-b2b1168d0361baa8.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/datastore-connection/{new-4b96de4707916560.js → new-c804349a417a888b.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/{datastore-connection-7ce2cd66791e7f6f.js → datastore-connection-0faa9b3c4555e585.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/{index-71e4264dcfba6181.js → index-e72904e316ede1b0.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/integrations/[id]-17191a759e167ca8.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/integrations-88e51c81a380ebad.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/messaging/{[id]-3a52dfa45f398f31.js → [id]-66f5fbadd8455805.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/messaging/{add-template-8e20f0da3a0779cc.js → add-template-d441abb1f045940f.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/{messaging-439832fde70c1157.js → messaging-eef56c95b08aa24c.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/privacy-requests/{[id]-16b266c9ddf8d192.js → [id]-54ea39f203182c53.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/privacy-requests/configure/messaging-d889076067104e56.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/privacy-requests/configure/storage-3355b4803b2916f3.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/privacy-requests/{configure-67b0a2a798d71e4d.js → configure-b8c94b10ab90b061.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/privacy-requests-3ac47981f1e2b0aa.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/properties/{[id]-99860c05fb5d25bd.js → [id]-f4fb941df069b7bf.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/properties/{add-property-4a7a21c25985fff0.js → add-property-bccb6ffab25aa214.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/{properties-a78b5af5894ed324.js → properties-9a7ac623370b7c00.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/reporting/datamap-fe743440d7eb007b.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/settings/{about-92fcfaa6111d7d24.js → about-4412a7b468b6d4bf.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/settings/consent-cdc866af93898716.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/settings/custom-fields-a7dc8113067dff42.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/settings/{domain-records-4347b3fdd12fdcff.js → domain-records-d9088f5cd9fb2822.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/settings/domains-2f03e981234c40ad.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/settings/{email-templates-d8f6562694f9dd45.js → email-templates-cf09ad896c7396a6.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/settings/{locations-f74503aa1626e302.js → locations-759564ca0ae62840.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/settings/organization-5bcc7a6976e01a56.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/settings/{regulations-081148db3f589271.js → regulations-2dce4501fca920b3.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/systems/configure/[id]/test-datasets-0b47ff26897c1d9a.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/systems/configure/{[id]-e0110a539d33069a.js → [id]-dd053a3bf2a9ca6c.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/{systems-7aef28e963417fa3.js → systems-820893393f1516ee.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/taxonomy-8fccd670220dbf60.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/user-management/{new-65ef1bdebb679666.js → new-082c3156175f9267.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/user-management/profile/{[id]-3430c5a08e86a85d.js → [id]-d527d1d1635541df.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/user-management-facb8c0128a44cb1.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/{webpack-7104b266fb47d653.js → webpack-03e375f6d6b2c71b.js} +1 -1
- fides/ui-build/static/admin/_next/static/css/687135955af5b7e1.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/ant-poc.html +1 -1
- fides/ui-build/static/admin/consent/configure/add-vendors.html +1 -1
- fides/ui-build/static/admin/consent/configure.html +1 -1
- fides/ui-build/static/admin/consent/privacy-experience/[id].html +1 -1
- fides/ui-build/static/admin/consent/privacy-experience/new.html +1 -1
- fides/ui-build/static/admin/consent/privacy-experience.html +1 -1
- fides/ui-build/static/admin/consent/privacy-notices/[id].html +1 -1
- fides/ui-build/static/admin/consent/privacy-notices/new.html +1 -1
- fides/ui-build/static/admin/consent/privacy-notices.html +1 -1
- fides/ui-build/static/admin/consent/properties.html +1 -1
- fides/ui-build/static/admin/consent/reporting.html +1 -1
- fides/ui-build/static/admin/consent.html +1 -1
- fides/ui-build/static/admin/data-catalog/[systemId]/projects/[projectUrn]/[resourceUrn].html +1 -1
- fides/ui-build/static/admin/data-catalog/[systemId]/projects/[projectUrn].html +1 -1
- fides/ui-build/static/admin/data-catalog/[systemId]/projects.html +1 -1
- fides/ui-build/static/admin/data-catalog/[systemId]/resources/[resourceUrn].html +1 -1
- fides/ui-build/static/admin/data-catalog/[systemId]/resources.html +1 -1
- fides/ui-build/static/admin/data-catalog.html +1 -1
- fides/ui-build/static/admin/data-discovery/action-center/[monitorId]/[systemId].html +1 -1
- fides/ui-build/static/admin/data-discovery/action-center/[monitorId].html +1 -1
- fides/ui-build/static/admin/data-discovery/action-center.html +1 -1
- fides/ui-build/static/admin/data-discovery/activity.html +1 -1
- fides/ui-build/static/admin/data-discovery/detection/[resourceUrn].html +1 -1
- fides/ui-build/static/admin/data-discovery/detection.html +1 -1
- fides/ui-build/static/admin/data-discovery/discovery/[resourceUrn].html +1 -1
- fides/ui-build/static/admin/data-discovery/discovery.html +1 -1
- fides/ui-build/static/admin/datamap.html +1 -1
- fides/ui-build/static/admin/dataset/[datasetId]/[collectionName]/[...subfieldNames].html +1 -1
- fides/ui-build/static/admin/dataset/[datasetId]/[collectionName].html +1 -1
- fides/ui-build/static/admin/dataset/[datasetId].html +1 -1
- fides/ui-build/static/admin/dataset/new.html +1 -1
- fides/ui-build/static/admin/dataset.html +1 -1
- fides/ui-build/static/admin/datastore-connection/[id].html +1 -1
- fides/ui-build/static/admin/datastore-connection/new.html +1 -1
- fides/ui-build/static/admin/datastore-connection.html +1 -1
- fides/ui-build/static/admin/index.html +1 -1
- fides/ui-build/static/admin/integrations/[id].html +1 -1
- fides/ui-build/static/admin/integrations.html +1 -1
- fides/ui-build/static/admin/login/[provider].html +1 -1
- fides/ui-build/static/admin/login.html +1 -1
- fides/ui-build/static/admin/messaging/[id].html +1 -1
- fides/ui-build/static/admin/messaging/add-template.html +1 -1
- fides/ui-build/static/admin/messaging.html +1 -1
- fides/ui-build/static/admin/privacy-requests/[id].html +1 -1
- fides/ui-build/static/admin/privacy-requests/configure/messaging.html +1 -1
- fides/ui-build/static/admin/privacy-requests/configure/storage.html +1 -1
- fides/ui-build/static/admin/privacy-requests/configure.html +1 -1
- fides/ui-build/static/admin/privacy-requests.html +1 -1
- fides/ui-build/static/admin/properties/[id].html +1 -1
- fides/ui-build/static/admin/properties/add-property.html +1 -1
- fides/ui-build/static/admin/properties.html +1 -1
- fides/ui-build/static/admin/reporting/datamap.html +1 -1
- fides/ui-build/static/admin/settings/about.html +1 -1
- fides/ui-build/static/admin/settings/consent.html +1 -1
- fides/ui-build/static/admin/settings/custom-fields.html +1 -1
- fides/ui-build/static/admin/settings/domain-records.html +1 -1
- fides/ui-build/static/admin/settings/domains.html +1 -1
- fides/ui-build/static/admin/settings/email-templates.html +1 -1
- fides/ui-build/static/admin/settings/locations.html +1 -1
- fides/ui-build/static/admin/settings/organization.html +1 -1
- fides/ui-build/static/admin/settings/regulations.html +1 -1
- fides/ui-build/static/admin/systems/configure/[id]/test-datasets.html +1 -1
- fides/ui-build/static/admin/systems/configure/[id].html +1 -1
- fides/ui-build/static/admin/systems.html +1 -1
- fides/ui-build/static/admin/taxonomy.html +1 -1
- fides/ui-build/static/admin/user-management/new.html +1 -1
- fides/ui-build/static/admin/user-management/profile/[id].html +1 -1
- fides/ui-build/static/admin/user-management.html +1 -1
- fides/api/alembic/migrations/versions/c9c72b3d550b_data_migration_cookie_asset.py +0 -218
- fides/api/service/storage/gcs.py +0 -38
- fides/ui-build/static/admin/_next/static/chunks/3503-569232568cee1a7e.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/3513-cf0c4d886ff26e00.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/3855-5417dfc333c7b6b6.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/401-f0c485676a4fc5f9.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/4060-98d858ec609e4b76.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/4121-044a191b265f4e51.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/4481-85e3f5845b50f10d.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/5835-b7b45dfb97180a88.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/5973-4e65b191ed82f8bd.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/6277-076a319bcff4f1a2.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/6853-25ff9e572d633f33.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/79-2302442f8b53f944.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/9282-356dc48612f4a21c.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/9572-ab070b1ae17dde8f.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/9719-caba0228fc973d3f.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/9767-b4f9c2cc14de6df6.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/9965-528ef17ac491d809.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/add-systems/manual-bca30784c7356aa3.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/add-systems-0d7a9d9ad082c80c.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/ant-poc-c2c4fd5faaf0f882.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/consent/privacy-experience-83dea888aad26af3.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/consent/reporting-ed1cdefeb38cf592.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/data-catalog-4b1d9e4cc7fa17a2.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/action-center/[monitorId]/[systemId]-936f72087aae94e1.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/action-center/[monitorId]-b6e0c8625c953a00.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/action-center-9ebb4dc8bc7dd058.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/activity-f0fe5d6cfcce0e69.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/integrations/[id]-b3ec5320782fbb49.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/integrations-4789200cdb1d7ec5.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/privacy-requests/configure/messaging-9c1748191ca19867.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/privacy-requests/configure/storage-9f1ea2b5896ff3fd.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/privacy-requests-faa220f7200fb252.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/reporting/datamap-b5c8cdfd6c1e0544.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/settings/consent/[configuration_id]/[purpose_id]-224434177b2775dc.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/settings/consent-5822e06b76f3ec84.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/settings/custom-fields-ff123ece2e2e4009.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/settings/domains-899401bf5c72b67f.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/settings/organization-610aa65b3dbcf467.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/systems/configure/[id]/test-datasets-6986ba3f6f33c110.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/taxonomy-61345b0f7cbd939e.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/user-management-216944eb66e430bb.js +0 -1
- fides/ui-build/static/admin/_next/static/css/091e5fc4883aeb42.css +0 -1
- fides/ui-build/static/admin/_next/static/tLZG5DlQ8HHUd5zR6TZEN/_buildManifest.js +0 -1
- fides/ui-build/static/admin/settings/consent/[configuration_id]/[purpose_id].html +0 -1
- {ethyca_fides-2.59.2b2.dist-info → ethyca_fides-2.59.2rc0.dist-info}/entry_points.txt +0 -0
- {ethyca_fides-2.59.2b2.dist-info → ethyca_fides-2.59.2rc0.dist-info}/licenses/LICENSE +0 -0
- {ethyca_fides-2.59.2b2.dist-info → ethyca_fides-2.59.2rc0.dist-info}/top_level.txt +0 -0
- /fides/ui-build/static/admin/_next/static/{tLZG5DlQ8HHUd5zR6TZEN → P3RkpoojridGfvvbDI91a}/_ssgManifest.js +0 -0
@@ -0,0 +1 @@
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8012],{74833:function(t,e,i){var n=i(56127),r=/^\s+/;t.exports=function(t){return t?t.slice(0,n(t)+1).replace(r,""):t}},56127:function(t){var e=/\s/;t.exports=function(t){for(var i=t.length;i--&&e.test(t.charAt(i)););return i}},66726:function(t,e,i){var n=i(11611),r=i(82846),s=i(91936),a=Math.max,o=Math.min;t.exports=function(t,e,i){var l,c,d,u,p,f,m=0,x=!1,h=!1,v=!0;if("function"!=typeof t)throw TypeError("Expected a function");function g(e){var i=l,n=c;return l=c=void 0,m=e,u=t.apply(n,i)}function b(t){var i=t-f,n=t-m;return void 0===f||i>=e||i<0||h&&n>=d}function j(){var t,i,n,s=r();if(b(s))return y(s);p=setTimeout(j,(t=s-f,i=s-m,n=e-t,h?o(n,d-i):n))}function y(t){return(p=void 0,v&&l)?g(t):(l=c=void 0,u)}function C(){var t,i=r(),n=b(i);if(l=arguments,c=this,f=i,n){if(void 0===p)return m=t=f,p=setTimeout(j,e),x?g(t):u;if(h)return clearTimeout(p),p=setTimeout(j,e),g(f)}return void 0===p&&(p=setTimeout(j,e)),u}return e=s(e)||0,n(i)&&(x=!!i.leading,d=(h="maxWait"in i)?a(s(i.maxWait)||0,e):d,v="trailing"in i?!!i.trailing:v),C.cancel=function(){void 0!==p&&clearTimeout(p),m=0,l=f=c=p=void 0},C.flush=function(){return void 0===p?u:y(r())},C}},82846:function(t,e,i){var n=i(77400);t.exports=function(){return n.Date.now()}},91936:function(t,e,i){var n=i(74833),r=i(11611),s=i(55193),a=0/0,o=/^[-+]0x[0-9a-f]+$/i,l=/^0b[01]+$/i,c=/^0o[0-7]+$/i,d=parseInt;t.exports=function(t){if("number"==typeof t)return t;if(s(t))return a;if(r(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=r(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=n(t);var i=l.test(t);return i||c.test(t)?d(t.slice(2),i?2:8):o.test(t)?a:+t}},43376:function(t,e,i){(window.__NEXT_P=window.__NEXT_P||[]).push(["/add-systems/manual",function(){return i(33688)}])},7617:function(t,e,i){"use strict";i.d(e,{q:function(){return s}});var n=i(24246),r=i(77181);let s=t=>{let{label:e,isDisabled:i,...s}=t;return(0,n.jsx)(r.OK9,{"data-testid":"tab-".concat(e),_selected:{fontWeight:"600",color:"complimentary.500",borderColor:"complimentary.500"},fontSize:s.fontSize,fontWeight:"500",color:"gray.500",isDisabled:i||!1,children:e})};e.Z=t=>{let{data:e,border:i="partial",...a}=t;return(0,n.jsxs)(r.mQc,{colorScheme:"complimentary",...a,children:[(0,n.jsx)(r.tdY,{width:"partial"===i?"max-content":void 0,children:e.map(t=>(0,n.jsx)(s,{label:t.label,isDisabled:t.isDisabled,fontSize:a.fontSize},t.label))}),(0,n.jsx)(r.nPR,{children:e.map(t=>(0,n.jsx)(r.x45,{px:0,"data-testid":"tab-panel-".concat(t.label),children:t.content},t.label))})]})}},58754:function(t,e,i){"use strict";var n=i(24246),r=i(77181),s=i(70788);e.Z=t=>{let{heading:e,breadcrumbItems:i,isSticky:a=!0,children:o,rightContent:l,style:c,...d}=t;return(0,n.jsxs)("div",{...d,style:a?{position:"sticky",top:"-24px",paddingTop:"24px",paddingBottom:"24px",paddingLeft:"40px",marginLeft:"-40px",paddingRight:"40px",marginRight:"-40px",marginTop:"-24px",left:0,zIndex:20,backgroundColor:"white",...c}:{paddingBottom:"24px",...c},children:[(0,n.jsxs)(r.jqI,{justify:"space-between",children:["string"==typeof e?(0,n.jsx)(r.X6q,{className:i||o?"pb-4":void 0,fontSize:"2xl","data-testid":"page-heading",children:e}):e,l&&(0,n.jsx)("div",{"data-testid":"page-header-right-content",children:l})]}),!!i&&(0,n.jsx)(s.m,{className:o?"pb-4":void 0,items:i,"data-testid":"page-breadcrumb"}),o]})}},14047:function(t,e,i){"use strict";i.d(e,{H:function(){return s},V:function(){return n.V}});var n=i(84306),r=i(812);let s=()=>{let{errorAlert:t}=(0,n.V)();return{handleError:e=>{let i="An unexpected error occurred. Please try again.";(0,r.Ot)(e)?i=e.data.detail:(0,r.tB)(e)&&(i=e.data.detail[0].msg),t(i)}}}},84306:function(t,e,i){"use strict";i.d(e,{V:function(){return s}});var n=i(24246),r=i(77181);let s=()=>{let t=(0,r.pmc)();return{errorAlert:(e,i,s)=>{let a={...s,position:(null==s?void 0:s.position)||"top",render:t=>{let{onClose:s}=t;return(0,n.jsxs)(r.bZj,{alignItems:"normal",status:"error","data-testid":"error-alert",children:[(0,n.jsx)(r.zMQ,{}),(0,n.jsxs)(r.xuv,{children:[i&&(0,n.jsx)(r.CdC,{children:i}),(0,n.jsx)(r.XaZ,{children:e})]}),(0,n.jsx)(r.PZ7,{onClick:s,position:"relative",right:0,size:"sm",top:-1})]})}};(null==s?void 0:s.id)&&t.isActive(s.id)?t.update(s.id,a):t(a)},successAlert:(e,i,s)=>{let a={...s,position:(null==s?void 0:s.position)||"top",render:t=>{let{onClose:s}=t;return(0,n.jsxs)(r.bZj,{alignItems:"normal",status:"success",variant:"subtle","data-testid":"success-alert",children:[(0,n.jsx)(r.zMQ,{}),(0,n.jsxs)(r.xuv,{children:[i&&(0,n.jsx)(r.CdC,{children:i}),(0,n.jsx)(r.XaZ,{children:e})]}),(0,n.jsx)(r.PZ7,{onClick:s,position:"relative",right:0,size:"sm",top:-1})]})}};(null==s?void 0:s.id)&&t.isActive(s.id)?t.update(s.id,a):t(a)}}}},70788:function(t,e,i){"use strict";i.d(e,{m:function(){return c}});var n=i(24246),r=i(77181),s=i(79894),a=i.n(s),o=i(27378);let{Text:l}=r.AntTypography,c=t=>{let{items:e,...i}=t,s=(0,o.useMemo)(()=>null==e?void 0:e.map((t,i)=>{let s=i===e.length-1,o={...t},c=o.onClick&&!o.href;return("string"==typeof o.title&&(o.title=(0,n.jsx)(l,{style:{color:"inherit",maxWidth:s?void 0:400},ellipsis:!s,children:o.title})),c)?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)(a(),{href:o.href,className:"ant-breadcrumb-link",children:o.title}),delete o.href)),o}),[e]);return(0,n.jsx)(r.zrq,{items:s,...i})}},57454:function(t,e,i){"use strict";i.d(e,{M:function(){return l}});var n=i(24246),r=i(66726),s=i.n(r),a=i(27378),o=i(86780);let l=t=>{let{value:e,onChange:i}=t,[r,l]=(0,a.useState)(e),c=s()(i,500),d=(0,a.useCallback)(t=>{l(t),c(t)},[]);return(0,n.jsx)(o.Z,{search:r,onChange:d,onClear:()=>{l(""),i("")}})}},33688:function(t,e,i){"use strict";i.r(e);var n=i(24246),r=i(77181),s=i(86677),a=i(27378),o=i(16134),l=i(7617),c=i(77213),d=i(77830),u=i(58754),p=i(41337),f=i(57865),m=i(72774),x=i(84450);let h=t=>{let{connector:e}=t;return(0,n.jsxs)(r.xuv,{display:"flex",mb:4,alignItems:"center","data-testid":"header",children:[(0,n.jsx)(p.Z,{data:null!=e?e:"ethyca",mr:2}),(0,n.jsxs)(r.X6q,{fontSize:"md",children:["Describe your ",e?e.human_readable:"new"," system"]})]})};e.default=()=>{let{connectorType:t}=(0,s.useRouter)().query,{tabData:e,tabIndex:i,onTabChange:p}=(0,x.Z)({isCreate:!0}),v=(0,a.useMemo)(()=>{if(t)return JSON.parse(Array.isArray(t)?t[0]:t)},[t]),g=(0,o.C)(f.gU);return(0,n.jsxs)(c.Z,{title:"Describe your system",children:[(0,n.jsx)(u.Z,{heading:"Add systems",breadcrumbItems:[{title:"Add systems",href:d.xo},{title:"New system"}]}),(0,n.jsx)(h,{connector:v}),g?(0,n.jsx)(m.Z,{}):null,(0,n.jsxs)(r.xuv,{w:{base:"100%",md:"75%"},children:[(0,n.jsx)(r.xvT,{fontSize:"sm",mb:8,children:"Systems are anything that might store or process data in your organization, from a web application, to a database or data warehouse. Describe your system below to register it to the map. You may optionally complete data entry for the system using the additional tabs to navigate the sections."}),(0,n.jsx)(l.Z,{data:e,"data-testid":"system-tabs",index:i,isLazy:!0,isManual:!0,onChange:p})]})]})}}},function(t){t.O(0,[8033,6060,2858,2866,9278,5277,4481,401,9951,146,5102,3244,2888,9774,179],function(){return t(t.s=43376)}),_N_E=t.O()}]);
|
@@ -1 +1 @@
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5822],{87321:function(e,s,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/add-systems/multiple",function(){return t(17035)}])},17035:function(e,s,t){"use strict";t.r(s);var o=t(24246),n=t(
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5822],{87321:function(e,s,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/add-systems/multiple",function(){return t(17035)}])},17035:function(e,s,t){"use strict";t.r(s);var o=t(24246),n=t(77181),r=t(77213),d=t(77830),i=t(58754),a=t(15826);s.default=()=>(0,o.jsxs)(r.Z,{title:"Choose vendors",children:[(0,o.jsx)(i.Z,{heading:"Add systems",breadcrumbItems:[{title:"Add systems",href:d.xo},{title:"Choose vendors"}]}),(0,o.jsx)(n.xuv,{w:{base:"100%",md:"75%"},children:(0,o.jsxs)(n.xvT,{fontSize:"sm",mb:8,children:["Select your vendors below and they will be added as systems to your data map. Fides Compass will automatically populate the system information so that you can quickly configure privacy requests and consent. To add custom systems or unlisted vendors, please",(0,o.jsxs)(n.rUS,{href:d.N5,color:"complimentary.500",children:[" ","click here."," "]})]})}),(0,o.jsx)(a.$,{redirectRoute:d.oG})]})}},function(e){e.O(0,[8033,6060,4481,401,8934,5826,2888,9774,179],function(){return e(e.s=87321)}),_N_E=e.O()}]);
|
@@ -0,0 +1 @@
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5023],{74245:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/add-systems",function(){return n(5923)}])},69e3:function(e,t,n){"use strict";var s=n(24246),i=n(77181),r=n(91507),a=n.n(r);t.Z=e=>{let{color:t,description:n,title:r,icon:l}=e;return(0,s.jsx)(i.xuv,{borderLeft:"9px solid ".concat(t),borderRadius:"6px",className:a().container,children:(0,s.jsxs)(i.V4A,{className:a().card,"data-testid":"tile-".concat(r),children:[(0,s.jsxs)("div",{className:"mb-1 flex items-center gap-1.5",children:[l,(0,s.jsx)(i.AntTypography.Title,{level:5,style:{marginBottom:1,textAlign:"left"},children:r})]}),(0,s.jsx)(i.AntTypography.Text,{style:{textAlign:"left"},children:n})]})})}},77867:function(e,t,n){"use strict";var s=n(24246),i=n(77181);t.Z=e=>{let{connected:t,...n}=e,r="red.500";return null==t?r="gray.300":t&&(r="green.500"),(0,s.jsx)(i.xuv,{width:"12px",height:"12px",borderRadius:"6px",backgroundColor:r,...n})}},59301:function(e,t,n){"use strict";var s=n(24246),i=n(77181);t.Z=e=>(0,s.jsx)(i.rUS,{isExternal:!0,color:"complimentary.500",...e})},77213:function(e,t,n){"use strict";n.d(t,{Z:function(){return x}});var s=n(24246),i=n(77181),r=n(88038),a=n.n(r),l=n(86677);n(27378);var o=n(25980),c=n(90867),d=n(77830),u=()=>{let e=(0,l.useRouter)();return(0,s.jsx)(i.xuv,{bg:"gray.50",border:"1px solid",borderColor:"blue.400",borderRadius:"md",justifyContent:"space-between",p:5,mb:5,mt:5,children:(0,s.jsxs)(i.xuv,{children:[(0,s.jsxs)(i.Kqy,{direction:{base:"column",sm:"row"},justifyContent:"space-between",children:[(0,s.jsx)(i.xvT,{fontWeight:"semibold",children:"Configure your storage and messaging provider"}),(0,s.jsx)(i.wpx,{onClick:()=>{e.push(d.fz)},children:"Configure"})]}),(0,s.jsxs)(i.xvT,{children:["Before Fides can process your privacy requests we need two simple steps to configure your storage and email client."," "]})]})})},x=e=>{let{children:t,title:n,padded:r=!0,mainProps:d}=e,x=(0,o.hz)(),m=(0,l.useRouter)(),h="/privacy-requests"===m.pathname||"/datastore-connection"===m.pathname,p=!(x.flags.privacyRequestsConfiguration&&h),{data:g}=(0,c.JE)(void 0,{skip:p}),{data:y}=(0,c.PW)(void 0,{skip:p}),f=x.flags.privacyRequestsConfiguration&&(!g||!y)&&h;return(0,s.jsxs)(i.kCb,{"data-testid":n,direction:"column",h:"100vh",children:[(0,s.jsxs)(a(),{children:[(0,s.jsxs)("title",{children:["Fides Admin UI - ",n]}),(0,s.jsx)("meta",{name:"description",content:"Privacy Engineering Platform"}),(0,s.jsx)("link",{rel:"icon",href:"/favicon.ico"})]}),(0,s.jsxs)(i.kCb,{as:"main",direction:"column",py:r?6:0,px:r?10:0,h:r?"calc(100% - 48px)":"full",flex:1,minWidth:0,overflow:"auto",...d,children:[f?(0,s.jsx)(u,{}):null,t]})]})}},58754:function(e,t,n){"use strict";var s=n(24246),i=n(77181),r=n(70788);t.Z=e=>{let{heading:t,breadcrumbItems:n,isSticky:a=!0,children:l,rightContent:o,style:c,...d}=e;return(0,s.jsxs)("div",{...d,style:a?{position:"sticky",top:"-24px",paddingTop:"24px",paddingBottom:"24px",paddingLeft:"40px",marginLeft:"-40px",paddingRight:"40px",marginRight:"-40px",marginTop:"-24px",left:0,zIndex:20,backgroundColor:"white",...c}:{paddingBottom:"24px",...c},children:[(0,s.jsxs)(i.jqI,{justify:"space-between",children:["string"==typeof t?(0,s.jsx)(i.X6q,{className:n||l?"pb-4":void 0,fontSize:"2xl","data-testid":"page-heading",children:t}):t,o&&(0,s.jsx)("div",{"data-testid":"page-header-right-content",children:o})]}),!!n&&(0,s.jsx)(r.m,{className:l?"pb-4":void 0,items:n,"data-testid":"page-breadcrumb"}),l]})}},97181:function(e,t,n){"use strict";n.d(t,{d:function(){return c}});var s=n(24246),i=n(77181),r=n(34090),a=n(27378),l=n(91613),o=n(40324);let c=e=>{let{name:t,label:n,labelProps:c,tooltip:d,isRequired:u,layout:x="inline",...m}=e,[h,p,{setValue:g}]=(0,r.U$)(t),y=!!(p.touched&&p.error),[f,j]=(0,a.useState)("");h.value||"tags"!==m.mode&&"multiple"!==m.mode||(h.value=[]),"tags"===m.mode&&"string"==typeof h.value&&(h.value=[h.value]);let v="tags"===m.mode?(e,t)=>e?e.value!==f||h.value.includes(f)?m.optionRender?m.optionRender(e,t):e.label:'Create "'.concat(f,'"'):void 0:m.optionRender||void 0,b=e=>{j(e),m.onSearch&&m.onSearch(e)},C=(e,t)=>{g(e),m.onChange&&m.onChange(e,t)};return"inline"===x?(0,s.jsx)(i.NIc,{isInvalid:y,isRequired:u,children:(0,s.jsxs)(i.rjZ,{templateColumns:n?"1fr 3fr":"1fr",children:[n?(0,s.jsx)(o.__,{htmlFor:m.id||t,...c,children:n}):null,(0,s.jsxs)(i.jqI,{align:"center",children:[(0,s.jsxs)(i.jqI,{vertical:!0,flex:1,className:"mr-2",children:[(0,s.jsx)(i.WPr,{...h,id:m.id||t,"data-testid":"controlled-select-".concat(h.name),...m,optionRender:v,onSearch:"tags"===m.mode?b:void 0,onChange:C,value:h.value||void 0,status:y?"error":void 0}),(0,s.jsx)(o.Bc,{isInvalid:y,message:p.error,fieldName:h.name})]}),d?(0,s.jsx)(l.Z,{label:d}):null]})]})}):(0,s.jsx)(i.NIc,{isInvalid:y,isRequired:u,children:(0,s.jsxs)(i.gCW,{alignItems:"start",children:[(0,s.jsxs)(i.jqI,{align:"center",children:[n?(0,s.jsx)(o.__,{htmlFor:m.id||t,fontSize:"xs",my:0,mr:1,...c,children:n}):null,d?(0,s.jsx)(l.Z,{label:d}):null]}),(0,s.jsx)(i.WPr,{...h,id:m.id||t,"data-testid":"controlled-select-".concat(h.name),...m,optionRender:v,onSearch:"tags"===m.mode?b:void 0,onChange:C,value:h.value||void 0,status:y?"error":void 0}),(0,s.jsx)(o.Bc,{isInvalid:y,message:p.error,fieldName:h.name})]})})}},812:function(e,t,n){"use strict";n.d(t,{D4:function(){return r.D4},MM:function(){return x},Ot:function(){return c},c6:function(){return i},cj:function(){return h},e$:function(){return l},fn:function(){return o},iC:function(){return m},nU:function(){return u},tB:function(){return d}});var s,i,r=n(19043);let a="An unexpected error occurred. Please try again.",l=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:a;if((0,r.Bw)(e)){if((0,r.hE)(e.data))return e.data.detail;if((0,r.cz)(e.data)){var n;let t=null===(n=e.data.detail)||void 0===n?void 0:n[0];return"".concat(null==t?void 0:t.msg,": ").concat(null==t?void 0:t.loc)}if(409===e.status&&(0,r.Dy)(e.data)||404===e.status&&(0,r.XD)(e.data))return"".concat(e.data.detail.error," (").concat(e.data.detail.fides_key,")")}return t};function o(e){return"object"==typeof e&&null!=e&&"status"in e}function c(e){return"object"==typeof e&&null!=e&&"data"in e&&"string"==typeof e.data.detail}function d(e){return"object"==typeof e&&null!=e&&"data"in e&&Array.isArray(e.data.detail)}let u=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{status:500,message:a};if((0,r.oK)(e))return{status:e.originalStatus,message:e.data};if((0,r.Bw)(e)){let{status:n}=e;return{status:n,message:l(e,t.message)}}return t},x=e=>Object.entries(e).map(e=>({value:e[1],label:e[1]}));(s=i||(i={})).GVL="gvl",s.AC="gacp",s.COMPASS="compass";let m={gvl:{label:"GVL",fullName:"Global Vendor List"},gacp:{label:"AC",fullName:"Google Additional Consent List"},compass:{label:"",fullName:""}},h=e=>{let t=e.split(".")[0];return"gacp"===t?"gacp":"gvl"===t?"gvl":"compass"}},14047:function(e,t,n){"use strict";n.d(t,{H:function(){return r},V:function(){return s.V}});var s=n(84306),i=n(812);let r=()=>{let{errorAlert:e}=(0,s.V)();return{handleError:t=>{let n="An unexpected error occurred. Please try again.";(0,i.Ot)(t)?n=t.data.detail:(0,i.tB)(t)&&(n=t.data.detail[0].msg),e(n)}}}},84306:function(e,t,n){"use strict";n.d(t,{V:function(){return r}});var s=n(24246),i=n(77181);let r=()=>{let e=(0,i.pmc)();return{errorAlert:(t,n,r)=>{let a={...r,position:(null==r?void 0:r.position)||"top",render:e=>{let{onClose:r}=e;return(0,s.jsxs)(i.bZj,{alignItems:"normal",status:"error","data-testid":"error-alert",children:[(0,s.jsx)(i.zMQ,{}),(0,s.jsxs)(i.xuv,{children:[n&&(0,s.jsx)(i.CdC,{children:n}),(0,s.jsx)(i.XaZ,{children:t})]}),(0,s.jsx)(i.PZ7,{onClick:r,position:"relative",right:0,size:"sm",top:-1})]})}};(null==r?void 0:r.id)&&e.isActive(r.id)?e.update(r.id,a):e(a)},successAlert:(t,n,r)=>{let a={...r,position:(null==r?void 0:r.position)||"top",render:e=>{let{onClose:r}=e;return(0,s.jsxs)(i.bZj,{alignItems:"normal",status:"success",variant:"subtle","data-testid":"success-alert",children:[(0,s.jsx)(i.zMQ,{}),(0,s.jsxs)(i.xuv,{children:[n&&(0,s.jsx)(i.CdC,{children:n}),(0,s.jsx)(i.XaZ,{children:t})]}),(0,s.jsx)(i.PZ7,{onClick:r,position:"relative",right:0,size:"sm",top:-1})]})}};(null==r?void 0:r.id)&&e.isActive(r.id)?e.update(r.id,a):e(a)}}}},16220:function(e,t,n){"use strict";n.d(t,{V:function(){return r}});var s=n(25980),i=n(77830);let r=()=>({systemOrDatamapRoute:(0,s.hz)().plus?i.oG:i.So})},58452:function(e,t,n){"use strict";var s=n(24246),i=n(77181);t.Z=e=>{let{isOpen:t,onClose:n,onConfirm:r,onCancel:a,title:l,message:o,cancelButtonText:c,continueButtonText:d,isLoading:u,returnFocusOnClose:x,isCentered:m,testId:h="confirmation-modal",icon:p}=e;return(0,s.jsxs)(i.u_l,{isOpen:t,onClose:n,size:"lg",returnFocusOnClose:null==x||x,isCentered:m,children:[(0,s.jsx)(i.ZAr,{}),(0,s.jsxs)(i.hzk,{textAlign:"center",p:6,"data-testid":h,children:[p?(0,s.jsx)(i.M5Y,{mb:2,children:p}):null,l?(0,s.jsx)(i.xBx,{fontWeight:"medium",pb:0,children:l}):null,o?(0,s.jsx)(i.fef,{children:o}):null,(0,s.jsx)(i.mzw,{children:(0,s.jsxs)(i.MIq,{columns:2,width:"100%",children:[(0,s.jsx)(i.wpx,{onClick:()=>{a&&a(),n()},size:"large",className:"mr-3","data-testid":"cancel-btn",disabled:u,children:c||"Cancel"}),(0,s.jsx)(i.wpx,{type:"primary",size:"large",onClick:r,"data-testid":"continue-btn",loading:u,children:d||"Continue"})]})})]})]})}},57899:function(e,t,n){"use strict";var s=n(24246),i=n(77181),r=n(27378);t.Z=e=>{let{handleConfirm:t,isOpen:n,onClose:a,title:l,message:o,confirmButtonText:c="Continue",cancelButtonText:d="Cancel"}=e,u=(0,r.useRef)(null);return(0,s.jsx)(i.aRR,{isOpen:n,leastDestructiveRef:u,onClose:a,children:(0,s.jsx)(i.dhV,{children:(0,s.jsxs)(i._Tf,{alignItems:"center",textAlign:"center",children:[(0,s.jsx)(i.aNP,{marginTop:3}),(0,s.jsx)(i.fYl,{fontSize:"lg",fontWeight:"bold",children:l}),(0,s.jsx)(i.iPF,{pt:0,children:o}),(0,s.jsxs)(i.xoY,{children:[(0,s.jsx)(i.wpx,{ref:u,onClick:a,size:"large",children:d}),(0,s.jsx)(i.wpx,{onClick:()=>t(),type:"primary",size:"large",className:"ml-3","data-testid":"warning-modal-confirm-btn",children:c})]})]})})})}},70788:function(e,t,n){"use strict";n.d(t,{m:function(){return c}});var s=n(24246),i=n(77181),r=n(79894),a=n.n(r),l=n(27378);let{Text:o}=i.AntTypography,c=e=>{let{items:t,...n}=e,r=(0,l.useMemo)(()=>null==t?void 0:t.map((e,n)=>{let r=n===t.length-1,l={...e},c=l.onClick&&!l.href;return("string"==typeof l.title&&(l.title=(0,s.jsx)(o,{style:{color:"inherit",maxWidth:r?void 0:400},ellipsis:!r,children:l.title})),c)?l.title=(0,s.jsx)(i.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,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("span",{className:"anticon align-text-bottom",children:l.icon}),l.title]})),l.href&&l.title&&(l.title=(0,s.jsx)(a(),{href:l.href,className:"ant-breadcrumb-link",children:l.title}),delete l.href)),l}),[t]);return(0,s.jsx)(i.zrq,{items:r,...n})}},46628:function(e,t,n){"use strict";n.d(t,{MA:function(){return l},Vo:function(){return c},t5:function(){return o}});var s=n(24246),i=n(77181);let r=e=>{let{children:t,title:n="Success"}=e;return(0,s.jsxs)(i.xvT,{"data-testid":"toast-success-msg",children:[(0,s.jsxs)("strong",{children:[n,":"]})," ",t]})},a=e=>{let{children:t}=e;return(0,s.jsxs)(i.xvT,{"data-testid":"toast-error-msg",children:[(0,s.jsx)("strong",{children:"Error:"})," ",t]})},l={variant:"subtle",position:"top",description:"",duration:5e3,status:"success",isClosable:!0},o=(e,t)=>{let n=(0,s.jsx)(r,{title:t,children:e});return{...l,description:n}},c=e=>{let t=(0,s.jsx)(a,{children:e});return{...l,description:t,status:"error"}}},5923:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return ed}});var s=n(24246),i=n(27378),r=n(16134),a=n(77213),l=n(58754),o=n(15677),c=n(77181),d=n(3124),u=n.n(d),x=n(86677),m=n(25980),h=n(14048),p=n(58452);let g=e=>{let{onCancel:t,onConfirm:n,isOpen:i,onClose:r}=e;return(0,s.jsx)(p.Z,{isOpen:i,onClose:r,onCancel:t,isCentered:!0,title:"Upgrade to choose vendors",message:"To choose vendors and have system information auto-populated using Fides Compass, you will need to upgrade Fides. Meanwhile, you can manually add individual systems using the button below.",cancelButtonText:"Add vendors manually",continueButtonText:"Upgrade",onConfirm:n})};var y=n(77830),f=n(62656),j=n(69e3),v=n(77867),b=n(32885),C=e=>{var t;let{onClick:n}=e,{plus:i,dataFlowScanning:a}=(0,m.hz)(),l=(0,r.C)(b.bw),o=null!==(t=null==l?void 0:l.cluster_health)&&void 0!==t?t:"unknown",d=o===f.wW.HEALTHY;if(!i)return null;let x=null;return a?d||(x="Your cluster appears not to be healthy. Its status is ".concat(o,".")):x="The data flow scanner is not enabled, please check your configuration.",(0,s.jsxs)(c.xuv,{position:"relative",children:[(0,s.jsx)(c.esZ,{title:x,popupVisible:!!x,children:(0,s.jsx)("button",{disabled:!a||!d,type:"button","aria-label":"Data flow scan",className:"text-left",onClick:n,children:(0,s.jsx)(j.Z,{title:"Data flow scan",color:u().FIDESUI_NECTAR,description:"Automatically discover new systems in your Kubernetes infrastructure",icon:(0,s.jsx)(h.pt,{boxSize:6}),"data-testid":"data-flow-scan-btn"})})}),a?(0,s.jsx)(v.Z,{connected:d,title:d?"Cluster is connected and healthy":"Cluster is ".concat(o),position:"absolute",right:-1,top:-1,"data-testid":"cluster-health-indicator"}):null]})},w=n(38764);let k=e=>{let{children:t}=e;return(0,s.jsx)(c.X6q,{as:"h4",size:"xs",fontWeight:"semibold",color:"gray.600",textTransform:"uppercase",mb:4,children:t})};var S=()=>{let e=(0,r.T)(),t=(0,x.useRouter)(),{isOpen:n,onClose:i,onOpen:a}=(0,c.qY0)(),{dictionaryService:l}=(0,m.hz)();return(0,s.jsxs)(c.Kqy,{spacing:9,"data-testid":"add-systems",children:[(0,s.jsxs)(c.Kqy,{spacing:6,maxWidth:"600px",children:[(0,s.jsx)(c.X6q,{as:"h3",size:"md",fontWeight:"semibold",children:"Fides helps you map your systems to manage your privacy"}),(0,s.jsx)(c.xvT,{children:"In Fides, systems describe any services that store or process data for your organization, including third-party APIs, web applications, databases, and data warehouses."}),(0,s.jsx)(c.xvT,{children:"Fides can automatically discover new systems in your AWS infrastructure or Okta accounts. For services not covered by the automated scanners or analog processes, you may also manually add new systems to your map."})]}),(0,s.jsx)(g,{isOpen:n,onConfirm:()=>{window.open("https://fid.es/upgrade-compass")},onCancel:()=>{t.push(y.N5)},onClose:i}),(0,s.jsxs)(c.xuv,{"data-testid":"manual-options",children:[(0,s.jsx)(k,{children:"Manually add systems"}),(0,s.jsxs)(c.MIq,{columns:{base:1,md:2,xl:3},spacing:"4",children:[(0,s.jsx)("button",{className:"flex flex-col text-left",type:"button","aria-label":"Add a system",onClick:()=>{e((0,o.CQ)(w.D.MANUAL)),t.push(y.N5)},"data-testid":"manual-btn",children:(0,s.jsx)(j.Z,{title:"Add a system",color:u().FIDESUI_SANDSTONE,icon:(0,s.jsx)(h.P$,{boxSize:6}),description:"Manually add a system for services not covered by automated scanners"})}),(0,s.jsx)("button",{className:"flex flex-col text-left",type:"button","aria-label":"Add multiple systems",onClick:()=>{l?(e((0,o.CQ)(w.D.MANUAL)),t.push(y.bJ)):a()},"data-testid":"multiple-btn",children:(0,s.jsx)(j.Z,{title:"Add multiple systems",color:u().FIDESUI_OLIVE,icon:(0,s.jsx)(h.P$,{boxSize:6}),description:"Choose vendors and automatically populate system details"})})]})]}),(0,s.jsxs)(c.xuv,{"data-testid":"automated-options",children:[(0,s.jsx)(k,{children:"Automated infrastructure scanning"}),(0,s.jsxs)(c.MIq,{columns:{base:1,md:2,xl:3},spacing:"4",children:[(0,s.jsx)("button",{className:"flex flex-col text-left",type:"button","aria-label":"Scan your infrastructure (AWS)",onClick:()=>{e((0,o.CQ)(f.GC.AWS)),e((0,o.sz)())},"data-testid":"aws-btn",children:(0,s.jsx)(j.Z,{title:"Scan your infrastructure (AWS)",color:u().FIDESUI_TERRACOTTA,description:"Automatically discover new systems in your AWS infrastructure",icon:(0,s.jsx)(h.bj,{boxSize:6})})}),(0,s.jsx)("button",{className:"flex flex-col text-left",type:"button","aria-label":"Scan your Sign On Provider (Okta)",onClick:()=>{e((0,o.CQ)(f.GC.OKTA)),e((0,o.sz)())},"data-testid":"okta-btn",children:(0,s.jsx)(j.Z,{title:"Scan your Sign On Provider (Okta)",color:u().FIDESUI_MINOS,description:"Automatically discover new systems in your Okta infrastructure",icon:(0,s.jsx)(h.tb,{boxSize:6})})}),(0,s.jsx)(C,{onClick:()=>{e((0,o.sz)()),e((0,o.CQ)(w.D.DATA_FLOW))}})]})]})]})},_=n(34090),A=n(55484),T=n(40324),z=n(812),O=n(14047),I=n(97181),q=n(70788),N=n(28416);let D=e=>"system_type"in e,{useGenerateMutation:F}=n(78780).u.injectEndpoints({endpoints:e=>({generate:e.mutation({query:e=>({url:"generate",method:"POST",body:e})})})});var Z=n(59301);let R=e=>{let{message:t}=e;return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(c.izJ,{}),(0,s.jsx)(c.W20,{maxH:"50vh",overflow:"auto",children:(0,s.jsx)(c.xvT,{as:"pre","data-testid":"error-log",children:t})}),(0,s.jsx)(c.izJ,{})]})};var W=e=>{let{error:t,scanType:n=""}=e;return(0,s.jsxs)(c.Kqy,{"data-testid":"scanner-error",spacing:"4",children:[(0,s.jsxs)(c.Ugi,{children:[(0,s.jsx)(c.j8w,{color:"error",children:"Error"}),(0,s.jsx)(c.X6q,{color:"red.500",size:"lg",children:"Failed to Scan"})]}),403===t.status&&n===f.GC.AWS?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(c.xvT,{"data-testid":"permission-msg",children:"Fides was unable to scan AWS. It appears that the credentials were valid to login but they did not have adequate permission to complete the scan."}),(0,s.jsxs)(c.xvT,{children:["To fix this issue, double check that you have granted"," ",(0,s.jsx)(Z.Z,{href:N.zu,children:"the required permissions"})," ","to these credentials as part of your IAM policy. If you need more help in configuring IAM policies, you can read about them"," ",(0,s.jsx)(Z.Z,{href:"https://docs.aws.amazon.com/IAM/latest/UserGuide/introduction_access-management.html",children:"here"}),"."]})]}):(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(c.xvT,{"data-testid":"generic-msg",children:"Fides was unable to scan your infrastructure. Please ensure your credentials are accurate and inspect the error log below for more details."}),(0,s.jsx)(R,{message:t.message}),(0,s.jsxs)(c.xvT,{children:["If this error does not clarify why scanning failed, please"," ",(0,s.jsx)(Z.Z,{href:N.we,children:"create a new issue"}),"."]})]})]})},E=n(57899);let B=(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(c.xvT,{color:"gray.500",mb:3,children:"Warning, you are about to cancel the scan!"}),(0,s.jsx)(c.xvT,{color:"gray.500",mb:3,children:"If you cancel scanning, the scanner will stop and no systems will be returned."}),(0,s.jsx)(c.xvT,{color:"gray.500",mb:3,children:"Are you sure you want to cancel?"})]});var U=e=>{let{title:t,onClose:n}=e,{isOpen:i,onOpen:r,onClose:a}=(0,c.qY0)();return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)(c.Kqy,{spacing:8,"data-testid":"scanner-loading",children:[(0,s.jsxs)(c.Ugi,{children:[(0,s.jsx)(c.xvT,{alignItems:"center",as:"b",color:"gray.900",display:"flex",fontSize:"xl",children:t}),(0,s.jsx)(c.PZ7,{"data-testid":"close-scan-in-progress",display:"inline-block",onClick:r})]}),(0,s.jsx)(c.Kqy,{alignItems:"center",children:(0,s.jsx)(c.$jN,{thickness:"4px",speed:"0.65s",emptyColor:"gray.200",color:"green.300",size:"xl"})})]}),(0,s.jsx)(E.Z,{isOpen:i,onClose:a,handleConfirm:n,title:"Cancel Scan!",message:B,confirmButtonText:"Yes, Cancel",cancelButtonText:"No, Continue Scanning"})]})};let K={aws_access_key_id:"",aws_secret_access_key:"",aws_session_token:"",region_name:""},L=A.Ry().shape({aws_access_key_id:A.Z_().required().trim().matches(/^\w+$/,"Cannot contain spaces or special characters").label("Access Key ID"),aws_secret_access_key:A.Z_().required().trim().matches(/^[^\s]+$/,"Cannot contain spaces").label("Secret"),aws_session_token:A.Z_().optional().trim().matches(/^[^\s]+$/,"Cannot contain spaces").label("Session Token (for temporary credentials)"),region_name:A.Z_().required().label("Default Region")});var M=()=>{let e=(0,r.C)(o.De),t=(0,r.T)(),{successAlert:n}=(0,O.V)(),[a,l]=(0,i.useState)(),d=e=>{let s=(null!=e?e:[]).filter(D);t((0,o.un)(s)),t((0,o.sz)()),n("Your scan was successfully completed, with ".concat(s.length," new systems detected!"),"Scan Successfully Completed",{isClosable:!0})},u=e=>{l((0,z.nU)(e,{status:500,message:"Our system encountered a problem while connecting to AWS."}))},x=()=>{t((0,o.sz)(2))},[m,{isLoading:h}]=F(),p=async t=>{l(void 0);let n=await m({organization_key:e,generate:{config:t,target:f.GC.AWS,type:f.j.SYSTEMS}});(0,z.D4)(n)?u(n.error):d(n.data.generate_results)};return(0,s.jsx)(_.J9,{initialValues:K,validationSchema:L,onSubmit:p,children:e=>{let{isValid:t,isSubmitting:n,dirty:i}=e;return(0,s.jsx)(_.l0,{"data-testid":"authenticate-aws-form",children:(0,s.jsxs)(c.Kqy,{spacing:10,children:[n?(0,s.jsx)(U,{title:"System scanning in progress",onClose:x}):null,a?(0,s.jsx)(W,{error:a,scanType:"aws"}):null,n||a?null:(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)(c.xuv,{children:[(0,s.jsx)(q.m,{className:"mb-4",items:[{title:"Add systems",href:"",onClick:e=>{e.preventDefault(),x()}},{title:"Authenticate AWS Scanner"}]}),(0,s.jsx)(c.xvT,{children:"To use the scanner to inventory systems in AWS, you must first authenticate to your AWS cloud by providing the following information:"})]}),(0,s.jsxs)(c.Kqy,{children:[(0,s.jsx)(T.j0,{name:"aws_access_key_id",label:"Access Key ID",tooltip:"The Access Key ID created by the cloud hosting provider.",isRequired:!0}),(0,s.jsx)(T.j0,{type:"password",name:"aws_secret_access_key",label:"Secret",tooltip:"The secret associated with the Access Key ID used for authentication.",isRequired:!0}),(0,s.jsx)(T.j0,{type:"password",name:"aws_session_token",label:"Session Token",tooltip:"The session token when using temporary credentials."}),(0,s.jsx)(I.d,{name:"region_name",label:"AWS Region",tooltip:"The geographic region of the cloud hosting provider you would like to scan.",options:N.xO,isRequired:!0,placeholder:"Select a region"})]})]}),n?null:(0,s.jsxs)(c.Ugi,{children:[(0,s.jsx)(c.wpx,{onClick:x,children:"Cancel"}),(0,s.jsx)(c.wpx,{htmlType:"submit",type:"primary",disabled:!i||!t,loading:h,"data-testid":"submit-btn",children:"Save and continue"})]})]})})}})};let P={orgUrl:"",token:""},V=A.Ry().shape({orgUrl:A.Z_().required().trim().url().label("URL"),token:A.Z_().required().trim().matches(/^[^\s]+$/,"Cannot contain spaces").label("Token")});var X=()=>{let e=(0,r.C)(o.De),t=(0,r.T)(),{successAlert:n}=(0,O.V)(),[a,l]=(0,i.useState)(),d=e=>{let s=(null!=e?e:[]).filter(D);t((0,o.un)(s)),t((0,o.sz)()),n("Your scan was successfully completed, with ".concat(s.length," new systems detected!"),"Scan Successfully Completed",{isClosable:!0})},u=e=>{l((0,z.nU)(e,{status:500,message:"Our system encountered a problem while connecting to Okta."}))},x=()=>{t((0,o.sz)(2))},[m,{isLoading:h}]=F(),p=async t=>{l(void 0);let n=await m({organization_key:e,generate:{config:t,target:f.GC.OKTA,type:f.j.SYSTEMS}});(0,z.D4)(n)?u(n.error):d(n.data.generate_results)};return(0,s.jsx)(_.J9,{initialValues:P,validationSchema:V,onSubmit:p,children:e=>{let{isValid:t,isSubmitting:n,dirty:i}=e;return(0,s.jsx)(_.l0,{"data-testid":"authenticate-okta-form",children:(0,s.jsxs)(c.Kqy,{spacing:10,children:[n?(0,s.jsx)(U,{title:"System scanning in progress",onClose:x}):null,a?(0,s.jsx)(W,{error:a}):null,n||a?null:(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)(c.xuv,{children:[(0,s.jsx)(q.m,{className:"mb-4",items:[{title:"Add systems",href:"",onClick:e=>{e.preventDefault(),x()}},{title:"Authenticate Okta Scanner"}]}),(0,s.jsx)(c.xvT,{children:"To use the scanner to inventory systems in Okta, you must first authenticate to your Okta account by providing the following information:"})]}),(0,s.jsxs)(c.Kqy,{children:[(0,s.jsx)(T.j0,{name:"orgUrl",label:"Domain",tooltip:"The URL for your organization's account on Okta"}),(0,s.jsx)(T.j0,{name:"token",label:"Okta token",type:"password",tooltip:"The token generated by Okta for your account."})]})]}),n?null:(0,s.jsxs)(c.Ugi,{children:[(0,s.jsx)(c.wpx,{onClick:x,children:"Cancel"}),(0,s.jsx)(c.wpx,{htmlType:"submit",type:"primary",disabled:!i||!t,loading:h,"data-testid":"submit-btn",children:"Save and continue"})]})]})})}})},G=n(46628),Y=n(31883),$=()=>{let e=(0,r.T)(),t=(0,c.pmc)(),[n]=(0,b.J9)(),[a,{data:l}]=(0,b.KW)(),[d,u]=(0,i.useState)(),[x,m]=(0,i.useState)(!1),h=e=>{u((0,z.nU)(e,{status:500,message:"Our system encountered a problem while scanning your infrastructure."}))};(0,i.useEffect)(()=>{(async()=>{let{error:e}=await n();m(!(e&&(0,Y.Bw)(e)&&404===e.status));let t=await a({classify:!0});(0,z.D4)(t)&&h(t.error)})()},[a,n]),(0,i.useEffect)(()=>{(async()=>{if(l){let{data:s}=await n(),i=x?(null==s?void 0:s.added_systems)||[]:l.systems;t((0,G.t5)("Your scan was successfully completed, with ".concat(i.length," new systems detected!"))),e((0,o.un)(i)),e((0,o.sz)())}})()},[l,t,e,x,n]);let p=()=>{e((0,o.sz)(2))};return d?(0,s.jsxs)(c.Kqy,{children:[(0,s.jsx)(W,{error:d}),(0,s.jsx)(c.xuv,{children:(0,s.jsx)(c.wpx,{onClick:p,"data-testid":"cancel-btn",children:"Cancel"})})]}):(0,s.jsx)(U,{title:"Infrastructure scanning in progress",onClose:p})},J=()=>{let e=(0,r.C)(o.Ll);return(0,s.jsxs)(c.xuv,{w:"40%",children:[e===f.GC.AWS?(0,s.jsx)(M,{}):null,e===f.GC.OKTA?(0,s.jsx)(X,{}):null,e===w.D.DATA_FLOW?(0,s.jsx)($,{}):null]})},Q=n(83265);let H=()=>{var e,t;let n=(0,r.T)(),s=e=>{n((0,o.nD)(e)),n((0,o.sz)())},[a]=(0,Q.vz)(),[l]=(0,Q.$f)(),{data:d,isLoading:u}=(0,Q.GQ)(Q.Av),[x,m]=(0,i.useState)(!1);(0,i.useEffect)(()=>{!u&&!x&&(null==d?void 0:d.name)&&(null==d?void 0:d.description)&&n((0,o.sz)())},[u,d,n,x]);let h=(0,c.pmc)();return(0,_.TA)({initialValues:{name:null!==(e=null==d?void 0:d.name)&&void 0!==e?e:"",description:null!==(t=null==d?void 0:d.description)&&void 0!==t?t:""},onSubmit:async e=>{var t,n,i;m(!0);let r={name:null!==(t=e.name)&&void 0!==t?t:null==d?void 0:d.name,description:null!==(n=e.description)&&void 0!==n?n:null==d?void 0:d.description,fides_key:null!==(i=null==d?void 0:d.fides_key)&&void 0!==i?i:Q.Av,organization_fides_key:Q.Av};if(d){let e=await l(r);if((0,z.D4)(e)){h({status:"error",description:(0,z.e$)(e.error)});return}h.closeAll(),s(r)}else{let e=await a(r);if((0,z.D4)(e)){h({status:"error",description:(0,z.e$)(e.error)});return}h.closeAll(),s(r)}},enableReinitialize:!0,validate:e=>{let t={};return e.name||(t.name="Organization name is required"),e.description||(t.description="Organization description is required"),t}})};var ee=()=>{let{errors:e,handleBlur:t,handleChange:n,handleSubmit:i,touched:r,values:a,isSubmitting:l}=H();return(0,s.jsx)(c.m$N.form,{onSubmit:i,w:"40%","data-testid":"organization-info-form",children:(0,s.jsxs)(c.Kqy,{spacing:10,children:[(0,s.jsx)(c.X6q,{as:"h3",size:"lg",children:"Create your Organization"}),(0,s.jsx)("div",{children:"Provide your organization information. This information is used to configure your organization in Fides for data map reporting purposes."}),(0,s.jsx)(c.Kqy,{children:(0,s.jsxs)(c.NIc,{children:[(0,s.jsxs)(c.Kqy,{direction:"row",mb:5,justifyContent:"flex-end",children:[(0,s.jsx)(c.lXp,{w:"100%",children:"Organization name"}),(0,s.jsx)(c.IIB,{type:"text",id:"name",name:"name",focusBorderColor:"gray.700",onChange:n,onBlur:t,value:a.name,isInvalid:r.name&&!!e.name,minW:"65%",w:"65%","data-testid":"input-name"}),(0,s.jsx)(c.ua7,{fontSize:"md",label:"The legal name of your organization",placement:"right",children:(0,s.jsx)(c.UOT,{boxSize:5,color:"gray.400"})})]}),(0,s.jsxs)(c.Kqy,{direction:"row",justifyContent:"flex-end",children:[(0,s.jsx)(c.lXp,{w:"100%",children:"Description"}),(0,s.jsx)(c.IIB,{type:"text",id:"description",name:"description",focusBorderColor:"gray.700",onChange:n,onBlur:t,value:a.description,isInvalid:r.description&&!!e.description,minW:"65%",w:"65%","data-testid":"input-description"}),(0,s.jsx)(c.ua7,{fontSize:"md",label:"An explanation of the type of organization and primary activity. For example “Acme Inc. is an e-commerce company that sells scarves.”",placement:"right",children:(0,s.jsx)(c.UOT,{boxSize:5,color:"gray.400"})})]})]})}),(0,s.jsx)(c.wpx,{type:"primary",htmlType:"submit",disabled:!a.name||!a.description,loading:l,"data-testid":"submit-btn",children:"Save and continue"})]})})},et=e=>{let{allColumns:t,selectedColumns:n,onChange:r}=e,a=(0,i.useMemo)(()=>{let e=new Map;return t.forEach(t=>e.set(t.name,!!n.find(e=>e.name===t.name))),e},[t,n]),l=()=>{a.forEach((e,t)=>a.set(t,!1)),r([])},o=e=>{var n;let s=null!==(n=a.get(e.name))&&void 0!==n&&n;a.set(e.name,!s),r(t.filter(e=>a.get(e.name)))};return(0,s.jsx)(c.v2r,{children:e=>{let{onClose:i}=e;return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(c.j2t,{as:c.wpx,icon:(0,s.jsx)(c.mCO,{}),fontWeight:"normal","data-testid":"column-dropdown",children:"Columns"}),(0,s.jsx)(c.qyq,{children:(0,s.jsxs)(c.xuv,{px:2,children:[(0,s.jsxs)(c.xuv,{display:"flex",justifyContent:"space-between",mb:2,children:[(0,s.jsx)(c.wpx,{size:"small",onClick:l,"data-testid":"column-clear-btn",children:"Clear"}),(0,s.jsx)(c.wpx,{type:"primary",size:"small",onClick:i,"data-testid":"column-done-btn",children:"Done"})]}),(0,s.jsx)(c.cOn,{colorScheme:"complimentary",children:(0,s.jsx)(c.Kqy,{children:t.map(e=>{let t=n.filter(t=>t.name===e.name).length>0;return(0,s.jsx)(c.XZJ,{id:e.name,_hover:{bg:"gray.100"},isChecked:t,onChange:()=>o(e),"data-testid":"checkbox-".concat(e.name),children:e.name},e.name)})})})]})})]})}})},en=n(16220);let es=(e,t)=>t.split(".").reduce((e,t)=>e?e[t]:void 0,e),ei=e=>{let{system:t,attribute:n}=e;if("name"===n)return(0,s.jsx)("label",{htmlFor:"checkbox-".concat(t.fides_key),children:t.name});if("fidesctl_meta.resource_id"===n){var i,r;return(0,s.jsx)(c.xuv,{whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",title:(null===(i=t.fidesctl_meta)||void 0===i?void 0:i.resource_id)||"",children:null===(r=t.fidesctl_meta)||void 0===r?void 0:r.resource_id})}return(0,s.jsx)(s.Fragment,{children:es(t,n)})},er=e=>{let{allSystems:t,checked:n,onChange:i,columns:r,tableHeadProps:a}=e,l=e=>{n.indexOf(e)>=0?i(n.filter(t=>t.fides_key!==e.fides_key)):i([...n,e])},o=t.length===n.length;return 0===r.length?(0,s.jsx)(c.xvT,{children:"No columns selected to display"}):(0,s.jsxs)(c.iA_,{size:"sm",sx:{tableLayout:"fixed"},children:[(0,s.jsx)(c.hrZ,{...a,children:(0,s.jsxs)(c.Tr,{children:[(0,s.jsx)(c.Th,{width:"15px",children:(0,s.jsx)(c.XZJ,{colorScheme:"complimentary",title:"Select All",isChecked:o,onChange:e=>{e.target.checked?i(t):i([])},"data-testid":"select-all"})}),r.map(e=>(0,s.jsx)(c.Th,{children:e.name},e.attribute))]})}),(0,s.jsx)(c.p3B,{children:t.map(e=>(0,s.jsxs)(c.Tr,{children:[(0,s.jsx)(c.Td,{children:(0,s.jsx)(c.XZJ,{colorScheme:"complimentary",value:e.fides_key,isChecked:n.indexOf(e)>=0,onChange:()=>l(e),"data-testid":"checkbox-".concat(e.fides_key)})}),r.map(t=>(0,s.jsx)(c.Td,{children:(0,s.jsx)(ei,{system:e,attribute:t.attribute})},t.attribute))]},e.fides_key))})]})};var ea=n(1315);let el=[{name:"Name",attribute:"name"},{name:"System type",attribute:"system_type"},{name:"Resource ID",attribute:"fidesctl_meta.resource_id"}];var eo=()=>{let e=(0,r.C)(o.j4),t=(0,r.T)(),n=(0,x.useRouter)(),{systemOrDatamapRoute:a}=(0,en.V)(),{isOpen:l,onOpen:d,onClose:u}=(0,c.qY0)(),[m]=(0,ea.dB)(),[h,p]=(0,i.useState)(e),[g,y]=(0,i.useState)(el),{handleError:f}=(0,O.H)(),j=e=>{n.push(e).then(()=>{t((0,o.mc)())})},v=async()=>{let e=await m(h);return(0,z.D4)(e)?f(e.error):j(a)},b=()=>{t((0,o.sz)(2))},C=(0,s.jsxs)(c.xvT,{color:"gray.500",mb:3,children:["You’re registering ",h.length," of ",e.length," systems available. Do you want to continue with registration or cancel and register all systems now?"]});return(0,s.jsxs)(c.xuv,{maxW:"full",children:[(0,s.jsxs)(c.Kqy,{spacing:10,"data-testid":"scan-results",children:[(0,s.jsx)(q.m,{className:"mb-4",items:[{title:"Add systems",href:"",onClick:e=>{e.preventDefault(),b()}},{title:"Authenticate"},{title:"Scan results"}]}),0===e.length?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(c.xvT,{"data-testid":"no-results",children:"No results were found for your infrastructure scan."}),(0,s.jsx)(c.Ugi,{children:(0,s.jsx)(c.wpx,{onClick:b,"data-testid":"back-btn",children:"Back"})})]}):(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)(c.xuv,{children:[(0,s.jsx)(c.xvT,{children:"Below are the results of your infrastructure scan. To continue, select the systems you would like registered in your data map and reports."}),(0,s.jsx)(c.xuv,{display:"flex",justifyContent:"end",children:(0,s.jsx)(et,{allColumns:el,selectedColumns:g,onChange:y})})]}),(0,s.jsx)(er,{allSystems:e,checked:h,onChange:p,columns:g}),(0,s.jsxs)(c.Ugi,{children:[(0,s.jsx)(c.wpx,{onClick:b,children:"Back"}),(0,s.jsx)(c.wpx,{onClick:()=>{e.length>h.length?d():v()},type:"primary",disabled:0===h.length,"data-testid":"register-btn",children:"Register selected systems"})]})]})]}),(0,s.jsx)(E.Z,{title:"Warning",message:C,handleConfirm:v,isOpen:l,onClose:u})]})},ec=()=>{let e=(0,r.C)(o.xx);return(0,s.jsx)(c.Kqy,{direction:["column","row"],bg:"white",children:(0,s.jsxs)(c.xuv,{display:"flex",justifyContent:"flex-start",w:"100%",children:[1===e?(0,s.jsx)(ee,{}):null,2===e?(0,s.jsx)(S,{}):null,3===e?(0,s.jsx)(J,{}):null,4===e?(0,s.jsx)(c.xuv,{pr:10,children:(0,s.jsx)(eo,{})}):null]})})},ed=()=>{let e=(0,r.T)();return(0,i.useEffect)(()=>{e((0,o.sz)(2))},[e]),(0,s.jsxs)(a.Z,{title:"Add systems",children:[(0,s.jsx)(l.Z,{heading:"Add systems"}),(0,s.jsx)(ec,{})]})}},19043:function(e,t,n){"use strict";n.d(t,{Bw:function(){return a},D4:function(){return i},Dy:function(){return o},XD:function(){return c},cz:function(){return d},hE:function(){return l},oK:function(){return r}});var s=n(76649);let i=e=>"error"in e,r=e=>(0,s.Ln)({status:"string"},e)&&"PARSING_ERROR"===e.status,a=e=>(0,s.Ln)({status:"number",data:{}},e),l=e=>(0,s.Ln)({detail:"string"},e),o=e=>(0,s.Ln)({detail:{error:"string",resource_type:"string",fides_key:"string"}},e),c=e=>(0,s.Ln)({detail:{error:"string",resource_type:"string",fides_key:"string"}},e),d=e=>(0,s.Ln)({detail:[{loc:["string","number"],msg:"string",type:"string"}]},e)},31883:function(e,t,n){"use strict";n.d(t,{Bw:function(){return s.Bw},D4:function(){return s.D4}});var s=n(19043)},91507:function(e){e.exports={container:"CalloutNavCard_container__DXPJb",card:"CalloutNavCard_card__q_XX6"}},76649:function(e,t,n){"use strict";n.d(t,{Ln:function(){return s}});let s=(e,t)=>r(e,t),i=Symbol("SOME"),r=(e,t)=>"string"==typeof e?e===typeof t:Array.isArray(e)?i in e?e.some(e=>r(e,t)):!!Array.isArray(t)&&(0===e.length||t.every(t=>e.some(e=>r(e,t)))):"object"==typeof t&&null!==t&&Object.entries(e).every(([e,n])=>r(n,t[e]));class a{static narrow(e){return new a(t=>s(e,t))}constructor(e){this.NF=void 0,this.NF=e}satisfied(e){return this.NF(e)}build(e){return e}and(e){let t=this.NF,n=e instanceof a?e.NF:e instanceof Function?e:t=>s(e,t);return new a(e=>t(e)&&n(e))}}new a(e=>!0)}},function(e){e.O(0,[2888,9774,179],function(){return e(e.s=74245)}),_N_E=e.O()}]);
|
@@ -0,0 +1 @@
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3082],{37152:function(e,l,s){(window.__NEXT_P=window.__NEXT_P||[]).push(["/ant-poc",function(){return s(316)}])},58754:function(e,l,s){"use strict";var a=s(24246),t=s(77181),i=s(70788);l.Z=e=>{let{heading:l,breadcrumbItems:s,isSticky:r=!0,children:n,rightContent:c,style:o,...d}=e;return(0,a.jsxs)("div",{...d,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",...o}:{paddingBottom:"24px",...o},children:[(0,a.jsxs)(t.jqI,{justify:"space-between",children:["string"==typeof l?(0,a.jsx)(t.X6q,{className:s||n?"pb-4":void 0,fontSize:"2xl","data-testid":"page-heading",children:l}):l,c&&(0,a.jsx)("div",{"data-testid":"page-header-right-content",children:c})]}),!!s&&(0,a.jsx)(i.m,{className:n?"pb-4":void 0,items:s,"data-testid":"page-breadcrumb"}),n]})}},70788:function(e,l,s){"use strict";s.d(l,{m:function(){return o}});var a=s(24246),t=s(77181),i=s(79894),r=s.n(i),n=s(27378);let{Text:c}=t.AntTypography,o=e=>{let{items:l,...s}=e,i=(0,n.useMemo)(()=>null==l?void 0:l.map((e,s)=>{let i=s===l.length-1,n={...e},o=n.onClick&&!n.href;return("string"==typeof n.title&&(n.title=(0,a.jsx)(c,{style:{color:"inherit",maxWidth:i?void 0:400},ellipsis:!i,children:n.title})),o)?n.title=(0,a.jsx)(t.wpx,{type:"text",size:"small",icon:n.icon,onClick:n.onClick,className:"ant-breadcrumb-link -mt-px px-1 text-inherit",children:n.title}):(n.icon&&(n.title=(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("span",{className:"anticon align-text-bottom",children:n.icon}),n.title]})),n.href&&n.title&&(n.title=(0,a.jsx)(r(),{href:n.href,className:"ant-breadcrumb-link",children:n.title}),delete n.href)),n}),[l]);return(0,a.jsx)(t.zrq,{items:i,...s})}},316:function(e,l,s){"use strict";s.r(l);var a=s(24246),t=s(77181),i=s(58754);let{Content:r}=t.AntLayout,n=[];for(let e=10;e<36;e+=1)n.push({label:e.toString(36)+e,value:e.toString(36)+e});l.default=()=>(0,a.jsx)(t.AntLayout,{children:(0,a.jsxs)(r,{className:"overflow-auto px-10 py-6",children:[(0,a.jsx)(i.Z,{heading:"Ant Design Proof of Concept"}),(0,a.jsxs)(t.bue,{gutter:16,children:[(0,a.jsx)(t.JGx,{span:8,children:(0,a.jsx)(t.V4A,{title:"Button",bordered:!1,className:"h-full",children:(0,a.jsxs)(t.vyj,{direction:"vertical",children:[(0,a.jsx)(t.wpx,{type:"primary",children:"Primary Button"}),(0,a.jsx)(t.wpx,{children:"Default Button"}),(0,a.jsx)(t.wpx,{type:"dashed",children:"Dashed Button"}),(0,a.jsx)(t.wpx,{type:"text",children:"Text Button"}),(0,a.jsx)(t.wpx,{type:"link",children:"Link Button"}),(0,a.jsx)(t.wpx,{type:"primary",loading:!0,children:"Loading Button"}),(0,a.jsx)(t.wpx,{type:"primary",disabled:!0,children:"Disabled Button"})]})})}),(0,a.jsx)(t.JGx,{span:8,children:(0,a.jsx)(t.V4A,{title:"Switch",bordered:!1,className:"h-full",children:(0,a.jsxs)(t.vyj,{direction:"vertical",children:[(0,a.jsx)(t.rAg,{defaultChecked:!0}),(0,a.jsx)(t.rAg,{size:"small",defaultChecked:!0}),(0,a.jsx)(t.rAg,{loading:!0,defaultChecked:!0})]})})}),(0,a.jsx)(t.JGx,{span:8,children:(0,a.jsx)(t.V4A,{title:"Select",bordered:!1,className:"h-full",children:(0,a.jsxs)(t.vyj,{direction:"vertical",children:[(0,a.jsx)(t.WPr,{defaultValue:"lucy",className:"w-32",options:[{value:"jack",label:"Jack"},{value:"lucy",label:"Lucy"},{value:"Yiminghe",label:"yiminghe"},{value:"disabled",label:"Disabled",disabled:!0}]}),(0,a.jsx)(t.WPr,{defaultValue:"lucy",className:"w-32",disabled:!0,options:[{value:"lucy",label:"Lucy"}]}),(0,a.jsx)(t.WPr,{defaultValue:"lucy",className:"w-32",loading:!0,options:[{value:"lucy",label:"Lucy"}]}),(0,a.jsx)(t.WPr,{defaultValue:"lucy",className:"w-32",allowClear:!0,options:[{value:"lucy",label:"Lucy"}]}),(0,a.jsx)(t.WPr,{mode:"multiple",allowClear:!0,className:"w-full",placeholder:"Please select",defaultValue:["a10","c12"],options:n}),(0,a.jsx)(t.WPr,{mode:"multiple",disabled:!0,className:"w-full",placeholder:"Please select",defaultValue:["a10","c12"],options:n})]})})})]}),(0,a.jsx)("br",{}),(0,a.jsxs)(t.bue,{gutter:16,children:[(0,a.jsx)(t.JGx,{span:8,children:(0,a.jsx)(t.V4A,{title:"Checkbox",bordered:!1,className:"h-full",children:(0,a.jsxs)(t.vyj,{direction:"vertical",children:[(0,a.jsx)(t.E_O,{children:"Checkbox"}),(0,a.jsx)(t.E_O,{defaultChecked:!0,children:"Checkbox"}),(0,a.jsx)(t.E_O,{disabled:!0,children:"Disabled"}),(0,a.jsx)(t.E_O,{indeterminate:!0,children:"Indeterminate"}),(0,a.jsx)(t.E_O.Group,{options:[{label:"Apple",value:"Apple"},{label:"Pear",value:"Pear"},{label:"Orange",value:"Orange",disabled:!0}],defaultValue:["Apple"]})]})})}),(0,a.jsx)(t.JGx,{span:8,children:(0,a.jsx)(t.V4A,{title:"Radio",bordered:!1,className:"h-full",children:(0,a.jsxs)(t.vyj,{direction:"vertical",children:[(0,a.jsx)(t.y02,{children:"Radio"}),(0,a.jsx)(t.y02,{defaultChecked:!0,children:"Radio"}),(0,a.jsx)(t.y02,{disabled:!0,children:"Disabled"}),(0,a.jsx)(t.y02.Group,{options:[{label:"Apple",value:"Apple"},{label:"Pear",value:"Pear"},{label:"Orange",value:"Orange",disabled:!0}],defaultValue:"Apple"}),(0,a.jsx)(t.y02.Group,{options:[{label:"Apple",value:"Apple"},{label:"Pear",value:"Pear"},{label:"Orange",value:"Orange"}],defaultValue:"Apple",optionType:"button"}),(0,a.jsx)(t.y02.Group,{options:[{label:"Apple",value:"Apple"},{label:"Pear",value:"Pear"},{label:"Orange",value:"Orange"}],defaultValue:"Apple",optionType:"button",buttonStyle:"solid"})]})})}),(0,a.jsx)(t.JGx,{span:8,children:(0,a.jsx)(t.V4A,{title:"Input",bordered:!1,className:"h-full",children:(0,a.jsxs)(t.vyj,{direction:"vertical",size:"middle",children:[(0,a.jsx)(t.vyj.Compact,{children:(0,a.jsx)(t.uFc,{defaultValue:"26888888"})}),(0,a.jsxs)(t.vyj.Compact,{children:[(0,a.jsx)(t.uFc,{className:"w-1/5",defaultValue:"0571"}),(0,a.jsx)(t.uFc,{className:"w-4/5",defaultValue:"26888888"})]}),(0,a.jsx)(t.vyj.Compact,{children:(0,a.jsx)(t.uFc.Search,{addonBefore:"https://",placeholder:"input search text",allowClear:!0})}),(0,a.jsxs)(t.vyj.Compact,{className:"w-full",children:[(0,a.jsx)(t.uFc,{defaultValue:"Combine input and button"}),(0,a.jsx)(t.wpx,{type:"primary",children:"Submit"})]}),(0,a.jsxs)(t.vyj.Compact,{children:[(0,a.jsx)(t.WPr,{defaultValue:"Zhejiang",options:n}),(0,a.jsx)(t.uFc,{defaultValue:"Xihu District, Hangzhou"})]})]})})})]}),(0,a.jsx)("br",{}),(0,a.jsxs)(t.bue,{gutter:16,children:[(0,a.jsx)(t.JGx,{span:8,children:(0,a.jsx)(t.V4A,{title:"Tooltip",bordered:!1,className:"h-full",children:(0,a.jsx)(t.vyj,{direction:"vertical",children:(0,a.jsx)(t.esZ,{title:"prompt text",children:(0,a.jsx)("span",{children:"Tooltip will show on mouse enter."})})})})}),(0,a.jsx)(t.JGx,{span:8,children:(0,a.jsx)(t.V4A,{title:"Alert",bordered:!1,className:"h-full",children:(0,a.jsxs)(t.vyj,{direction:"vertical",children:[(0,a.jsx)(t.DUx,{message:"Success Tips",type:"success",showIcon:!0}),(0,a.jsx)(t.DUx,{message:"Informational Notes",type:"info",showIcon:!0}),(0,a.jsx)(t.DUx,{message:"Warning",type:"warning",showIcon:!0,closable:!0}),(0,a.jsx)(t.DUx,{message:"Error",type:"error",showIcon:!0})]})})}),(0,a.jsx)(t.JGx,{span:8,children:(0,a.jsx)(t.V4A,{title:"Tag",bordered:!1,className:"h-full",children:(0,a.jsxs)(t.vyj,{direction:"vertical",children:[(0,a.jsx)(t.j8w,{color:"default",children:"default"}),(0,a.jsx)(t.j8w,{color:"corinth",children:"corinth"}),(0,a.jsx)(t.j8w,{color:"minos",children:"minos"}),(0,a.jsx)(t.j8w,{color:"terracotta",children:"terracotta"}),(0,a.jsx)(t.j8w,{color:"olive",children:"olive"}),(0,a.jsx)(t.j8w,{color:"marble",children:"marble"}),(0,a.jsx)(t.j8w,{color:"sandstone",children:"sandstone"}),(0,a.jsx)(t.j8w,{color:"nectar",children:"nectar"}),(0,a.jsx)(t.j8w,{color:"error",children:"error"}),(0,a.jsx)(t.j8w,{color:"warning",children:"warning"}),(0,a.jsx)(t.j8w,{color:"caution",children:"caution"}),(0,a.jsx)(t.j8w,{color:"success",children:"success"}),(0,a.jsx)(t.j8w,{color:"info",children:"info"}),(0,a.jsx)(t.j8w,{color:"alert",children:"alert"}),(0,a.jsx)(t.j8w,{color:"white",children:"white"}),(0,a.jsx)(t.j8w,{closable:!0,onClose:()=>console.log("closed"),children:"Closable Tag"}),(0,a.jsx)(t.j8w,{onClick:()=>console.log("clicked"),addable:!0}),(0,a.jsx)(t.j8w,{onClick:()=>console.log("clicked"),addable:!0,children:"Add More"}),(0,a.jsxs)(t.j8w,{hasSparkle:!0,onClick:()=>console.log("clicked"),children:["Data Use",(0,a.jsx)(t.PJP.I8b,{})]}),(0,a.jsx)(t.j8w,{hasSparkle:!0,onClick:()=>console.log("clicked"),closable:!0,onClose:()=>console.log("closed"),children:"Data Category"})]})})})]})]})})}},function(e){e.O(0,[2888,9774,179],function(){return e(e.s=37152)}),_N_E=e.O()}]);
|
@@ -1 +1 @@
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4290],{73906:function(e,n,o){(window.__NEXT_P=window.__NEXT_P||[]).push(["/consent/configure/add-vendors",function(){return o(32805)}])},32805:function(e,n,o){"use strict";o.r(n);var s=o(24246),t=o(
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4290],{73906:function(e,n,o){(window.__NEXT_P=window.__NEXT_P||[]).push(["/consent/configure/add-vendors",function(){return o(32805)}])},32805:function(e,n,o){"use strict";o.r(n);var s=o(24246),t=o(77181),r=o(77213),a=o(77830),i=o(58754),c=o(15826);let{Text:d}=t.AntTypography;n.default=()=>(0,s.jsxs)(r.Z,{title:"Choose vendors",children:[(0,s.jsx)(i.Z,{heading:"Vendors",breadcrumbItems:[{title:"All vendors",href:a.zo},{title:"Choose vendors"}],children:(0,s.jsx)(d,{className:"block w-1/2",children:"Select your vendors below and they will be added as systems to your data map. Fides Compass will automatically populate the system information so that you can quickly configure privacy requests and consent."})}),(0,s.jsx)(c.$,{redirectRoute:a.zo})]})}},function(e){e.O(0,[8033,6060,4481,401,8934,5826,2888,9774,179],function(){return e(e.s=73906)}),_N_E=e.O()}]);
|
@@ -1 +1 @@
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3709],{54727:function(e,s,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/consent/configure",function(){return n(45985)}])},6675:function(e,s,n){"use strict";n.d(s,{ZS:function(){return o},a4:function(){return i}});var l=n(3228);let t=n(78780).u.injectEndpoints({endpoints:e=>({getPurposes:e.query({query:()=>"purposes"})})}),{useGetPurposesQuery:i}=t,a={purposes:{},special_purposes:{}},o=(0,l.P1)(t.endpoints.getPurposes.select(),e=>{let{data:s}=e;return s||a})},45985:function(e,s,n){"use strict";n.r(s),n.d(s,{default:function(){return I}});var l=n(24246),t=n(56078),i=n(27378),a=n(77213),o=n(58754),r=n(92222),c=n(59003),u=n(25980),d=n(14481),x=n(86677);let p=(e,s)=>{let n=e.filter(e=>e.isChecked);return n.length>0?"".concat(s,"=").concat(n.map(e=>e.value).join("&".concat(s,"="))):void 0},h=e=>{let{value:s,displayText:n,isChecked:i,onCheckboxChange:a}=e;return(0,l.jsx)(t.XZJ,{value:s,height:"20px",mb:"25px",isChecked:i,onChange:e=>{let{target:n}=e;a(s,n.checked)},_focusWithin:{bg:"gray.100"},colorScheme:"complimentary",children:(0,l.jsx)(t.xvT,{fontSize:"sm",lineHeight:5,textOverflow:"ellipsis",overflow:"hidden",children:n})},s)},g=e=>{let{options:s,header:n,onCheckboxChange:a,columns:o=3,numDefaultOptions:r=15}=e,[c,u]=(0,i.useState)(!1),d=c?s:s.slice(0,r),x=s.length>r;return(0,l.jsxs)(t.Qdk,{border:"0px",padding:"12px 8px 8px 12px",children:[(0,l.jsx)(t.X6q,{height:"56px",children:(0,l.jsxs)(t.KFZ,{height:"100%",children:[(0,l.jsx)(t.xuv,{flex:"1",alignItems:"center",justifyContent:"center",textAlign:"left",fontWeight:600,children:n}),(0,l.jsx)(t.XEm,{})]})}),(0,l.jsxs)(t.Hk3,{id:"panel-".concat(n),children:[(0,l.jsx)(t.MIq,{columns:o,children:d.map(e=>(0,l.jsx)(h,{...e,onCheckboxChange:a},e.value))}),!c&&x?(0,l.jsx)(t.wpx,{type:"text",onClick:()=>{u(!0)},children:"View more"}):null,c&&x?(0,l.jsx)(t.wpx,{type:"text",onClick:()=>{u(!1)},children:"View less"}):null]})]})},j=e=>{let{heading:s,children:n}=e;return(0,l.jsxs)(t.xuv,{padding:"12px 8px 8px 12px",maxHeight:600,children:[s?(0,l.jsx)(t.X6q,{size:"md",lineHeight:6,fontWeight:"bold",mb:2,children:s}):null,n]})},C=e=>{let{resetFilters:s,isOpen:n,onClose:i,children:a,...o}=e;return(0,l.jsxs)(t.u_l,{isOpen:n,onClose:i,isCentered:!0,size:"2xl",...o,children:[(0,l.jsx)(t.ZAr,{}),(0,l.jsxs)(t.hzk,{children:[(0,l.jsx)(t.xBx,{children:"Filters"}),(0,l.jsx)(t.olH,{}),(0,l.jsx)(t.izJ,{}),(0,l.jsx)(t.fef,{maxH:"85vh",padding:"0px",overflowX:"auto",style:{scrollbarGutter:"stable"},children:a}),(0,l.jsx)(t.mzw,{children:(0,l.jsxs)(t.xuv,{display:"flex",justifyContent:"space-between",width:"100%",children:[(0,l.jsx)(t.wpx,{onClick:s,className:"mr-3 grow",children:"Reset filters"}),(0,l.jsx)(t.wpx,{type:"primary",onClick:i,className:"grow",children:"Done"})]})})]})]})};var f=n(77830),m=n(31435),v=n(16134),k=n(6675),y=n(28079);let b=()=>{let{isOpen:e,onClose:s,onOpen:n}=(0,t.qY0)();(0,y.fd)();let l=(0,v.C)(y.U3);(0,k.a4)();let a=(0,v.C)(k.ZS),[o,r]=(0,i.useState)([]),[c,u]=(0,i.useState)([]),[d,x]=(0,i.useState)([{displayText:"Consent",value:"Consent",isChecked:!1},{displayText:"Legitimate Interest",value:"Legitimate interests",isChecked:!1}]),[p,h]=(0,i.useState)([{displayText:"Advertising",value:"advertising",isChecked:!1},{displayText:"Analytics",value:"analytics",isChecked:!1},{displayText:"Functional",value:"functional",isChecked:!1},{displayText:"Essential",value:"essential",isChecked:!1}]);(0,i.useEffect)(()=>{0===c.length&&u(l.map(e=>({value:e.fides_key,displayText:e.name||e.fides_key,isChecked:!1})))},[l,c,u]),(0,i.useEffect)(()=>{0===o.length&&r([...Object.entries(a.purposes).map(e=>({value:"normal.".concat(e[0]),displayText:e[1].name,isChecked:!1})),...Object.entries(a.special_purposes).map(e=>({value:"special.".concat(e[0]),displayText:e[1].name,isChecked:!1}))])},[a,o,u]);let g=(e,s,n,l)=>{l(n.map(n=>n.value===e?{...n,isChecked:s}:n))};return{isOpen:e,onClose:s,onOpen:n,resetFilters:()=>{u(e=>e.map(e=>({...e,isChecked:!1}))),x(e=>e.map(e=>({...e,isChecked:!1}))),r(e=>e.map(e=>({...e,isChecked:!1}))),h(e=>e.map(e=>({...e,isChecked:!1})))},purposeOptions:o,onPurposeChange:(e,s)=>{g(e,s,o,r)},dataUseOptions:c,onDataUseChange:(e,s)=>{g(e,s,c,u)},legalBasisOptions:d,onLegalBasisChange:(e,s)=>{g(e,s,d,x)},consentCategoryOptions:p,onConsentCategoryChange:(e,s)=>{g(e,s,p,h)}}},w=e=>{let{isOpen:s,isTcfEnabled:n,onClose:i,resetFilters:a,purposeOptions:o,onPurposeChange:r,dataUseOptions:c,onDataUseChange:u,legalBasisOptions:d,onLegalBasisChange:x,consentCategoryOptions:p,onConsentCategoryChange:h}=e;return(0,l.jsx)(C,{isOpen:s,onClose:i,resetFilters:a,children:(0,l.jsx)(t.UQy,{children:(0,l.jsxs)(j,{children:[n?(0,l.jsx)(g,{options:o,onCheckboxChange:r,header:"TCF purposes",columns:1,numDefaultOptions:5}):null,(0,l.jsx)(g,{options:c,onCheckboxChange:u,header:"Data uses"}),n?(0,l.jsx)(g,{options:d,onCheckboxChange:x,header:"Legal basis"}):null,n?null:(0,l.jsx)(g,{options:p,onCheckboxChange:h,header:"Consent categories"})]})})})};var _=n(32885);let{Text:S,Title:O}=t.AntTypography,T=()=>{let{isOpen:e,onOpen:s,onClose:n}=(0,t.qY0)();return{isOpen:e,onOpen:s,onClose:n}},z=e=>{let{isOpen:s,onClose:n,fidesKey:i}=e,{data:a,isLoading:o}=(0,_.ho)(i),r=(e,s)=>(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(O,{level:5,children:e}),(null==s?void 0:s.length)?(0,l.jsx)("div",{children:(0,l.jsx)(t.vyj,{size:[0,2],wrap:!0,children:null==s?void 0:s.map(e=>(0,l.jsx)(t.j8w,{children:e},e))})}):(0,l.jsxs)(S,{italic:!0,children:["no known ",e.toLowerCase()]})]});return(0,l.jsxs)(t.u_l,{isOpen:s,onClose:n,size:"xxl",returnFocusOnClose:!1,isCentered:!0,children:[(0,l.jsx)(t.ZAr,{}),(0,l.jsxs)(t.hzk,{maxWidth:"800px",children:[(0,l.jsx)(t.xBx,{children:a?null==a?void 0:a.name:"Vendor"}),(0,l.jsx)(t.fef,{children:o?(0,l.jsx)(t.jqI,{className:"h-80 w-full",align:"center",justify:"center",children:(0,l.jsx)(t.$jN,{})}):!!a&&(0,l.jsxs)(t.AntTypography,{children:[(0,l.jsx)(O,{level:5,children:"Purposes"}),Object.entries(a.purposes||{}).length>0?(0,l.jsx)(t.UQy,{allowMultiple:!0,children:Object.entries(a.purposes).map((e,s)=>{let[n]=e;return(0,l.jsx)(t.Qdk,{children:e=>{let{isExpanded:s}=e;return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)(t.KFZ,{backgroundColor:s?"gray.50":"unset",children:[(0,l.jsx)(t.xuv,{flex:"1",textAlign:"left",children:n}),(0,l.jsx)(t.XEm,{})]}),(0,l.jsxs)(t.Hk3,{backgroundColor:"gray.50",children:[(0,l.jsx)(t.jqI,{className:"my-4",vertical:!0,children:r("Data uses",a.purposes[n].data_uses)}),(0,l.jsx)(t.jqI,{className:"my-4",vertical:!0,children:r("Legal basis",a.purposes[n].legal_bases)})]})]})}},s)})}):(0,l.jsx)(S,{italic:!0,children:"no known purposes"}),(0,l.jsx)("div",{className:"my-4",children:r("Features",a.features)}),(0,l.jsx)("div",{className:"my-4",children:r("Data categories",a.data_categories)})]})}),(0,l.jsxs)(t.mzw,{children:[(0,l.jsx)(t.wpx,{size:"small",onClick:n,children:"Close"}),(0,l.jsx)(t.LZC,{})]})]})]})},F=(0,r.Cl)(),N={items:[],total:0,page:1,size:25,pages:1},P=()=>{let{tcf:e,dictionaryService:s}=(0,u.hz)(),{isLoading:n}=(0,_.x8)(),{isOpen:a,onOpen:o,onClose:h}=T(),g=(0,x.useRouter)(),[j,C]=(0,i.useState)(),{isOpen:v,onOpen:k,onClose:y,resetFilters:S,purposeOptions:O,onPurposeChange:P,dataUseOptions:R,onDataUseChange:I,legalBasisOptions:E,onLegalBasisChange:V,consentCategoryOptions:L,onConsentCategoryChange:M}=b(),Z=(0,i.useMemo)(()=>p(R,"data_uses"),[R]),q=(0,i.useMemo)(()=>p(E,"legal_bases"),[E]),A=(0,i.useMemo)(()=>p(O.filter(e=>e.value.includes("normal")).map(e=>({...e,value:e.value.split(".")[1]})),"purposes"),[O]),D=(0,i.useMemo)(()=>p(O.filter(e=>e.value.includes("special")).map(e=>({...e,value:e.value.split(".")[1]})),"special_purposes"),[O]),H=(0,i.useMemo)(()=>p(L,"consent_category"),[L]),{PAGE_SIZES:U,pageSize:X,setPageSize:B,onPreviousPageClick:Q,isPreviousPageDisabled:G,onNextPageClick:K,isNextPageDisabled:W,startRange:J,endRange:Y,pageIndex:$,setTotalPages:ee,resetPageIndexToDefault:es}=(0,d.oi)(),[en,el]=(0,i.useState)(),et=(0,i.useCallback)(e=>{es(),el(e)},[es,el]),{isFetching:ei,isLoading:ea,data:eo}=(0,_.de)({pageIndex:$,pageSize:X,dataUses:Z,search:en,legalBasis:q,purposes:A,specialPurposes:D,consentCategories:H}),{items:er,total:ec,pages:eu}=(0,i.useMemo)(()=>eo||N,[eo]);(0,i.useEffect)(()=>{ee(eu)},[eu,ee]);let ed=(0,i.useMemo)(()=>[F.accessor(e=>e.name,{id:"name",cell:e=>(0,l.jsx)(d.G3,{value:e.getValue()}),header:e=>(0,l.jsx)(d.Rr,{value:"Vendor",...e})}),F.accessor(e=>e.data_uses,{id:"tcf_purpose",cell:e=>(0,l.jsx)(d.CI,{plSuffix:"purposes",singSuffix:"purpose",count:e.getValue()}),header:e=>(0,l.jsx)(d.Rr,{value:"TCF purpose",...e})}),F.accessor(e=>e.data_uses,{id:"data_uses",cell:e=>(0,l.jsx)(d.CI,{plSuffix:"data uses",singSuffix:"data use",count:e.getValue()}),header:e=>(0,l.jsx)(d.Rr,{value:"Data use",...e})}),F.accessor(e=>e.legal_bases,{id:"legal_bases",cell:e=>(0,l.jsx)(d.CI,{plSuffix:"bases",singSuffix:"basis",count:e.getValue()}),header:e=>(0,l.jsx)(d.Rr,{value:"Legal basis",...e})}),F.accessor(e=>e.consent_categories,{id:"consent_categories",cell:e=>(0,l.jsx)(d.CI,{plSuffix:"categories",singSuffix:"category",count:e.getValue()}),header:e=>(0,l.jsx)(d.Rr,{value:"Categories",...e})}),F.accessor(e=>e.cookies,{id:"cookies",cell:e=>(0,l.jsx)(d.CI,{plSuffix:"cookies",singSuffix:"cookie",count:e.getValue()}),header:e=>(0,l.jsx)(d.Rr,{value:"Cookies",...e})})],[]),ex=(0,c.b7)({columns:ed,data:er,state:{columnVisibility:{tcf_purpose:e,data_uses:e,legal_bases:e,consent_categories:!e,cookies:!e}},getCoreRowModel:(0,r.sC)(),columnResizeMode:"onChange",enableColumnResizing:!0});return ea||n?(0,l.jsx)(d.I4,{rowHeight:36,numRows:15}):(0,l.jsxs)(t.kCb,{flex:1,direction:"column",overflow:"auto",children:[a&&j?(0,l.jsx)(z,{isOpen:a,fidesKey:j,onClose:h}):null,(0,l.jsxs)(d.Q$,{children:[(0,l.jsx)(d.HO,{globalFilter:en,setGlobalFilter:et,placeholder:"Search"}),(0,l.jsx)(w,{isOpen:v,isTcfEnabled:e,onClose:y,resetFilters:S,purposeOptions:O,onPurposeChange:P,dataUseOptions:R,onDataUseChange:I,legalBasisOptions:E,onLegalBasisChange:V,consentCategoryOptions:L,onConsentCategoryChange:M}),(0,l.jsxs)(t.Ugi,{alignItems:"center",spacing:2,children:[(0,l.jsx)(m.Z,{buttonLabel:"Add vendors",onButtonClick:s?()=>{g.push(f.Gg)}:void 0}),(0,l.jsx)(t.wpx,{onClick:k,"data-testid":"filter-multiple-systems-btn",children:"Filter"})]})]}),(0,l.jsx)(d.ZK,{tableInstance:ex,onRowClick:e=>{C(e.fides_key),o()}}),(0,l.jsx)(d.s8,{totalRows:ec||0,pageSizes:U,setPageSize:B,onPreviousPageClick:Q,isPreviousPageDisabled:G||ei,onNextPageClick:K,isNextPageDisabled:W||ei,startRange:J,endRange:Y})]})},{Text:R}=t.AntTypography;var I=()=>(0,l.jsxs)(a.Z,{title:"Vendors",children:[(0,l.jsx)(o.Z,{heading:"Vendors",children:(0,l.jsx)(R,{className:"block w-1/2",children:"Use the table below to manage your vendors. Modify the legal basis for a vendor if permitted and view and group your views by applying different filters"})}),(0,l.jsx)(P,{})]})}},function(e){e.O(0,[8033,6060,4481,401,8934,2888,9774,179],function(){return e(e.s=54727)}),_N_E=e.O()}]);
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3709],{54727:function(e,s,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/consent/configure",function(){return n(45985)}])},6675:function(e,s,n){"use strict";n.d(s,{ZS:function(){return o},a4:function(){return i}});var l=n(3228);let t=n(78780).u.injectEndpoints({endpoints:e=>({getPurposes:e.query({query:()=>"purposes"})})}),{useGetPurposesQuery:i}=t,a={purposes:{},special_purposes:{}},o=(0,l.P1)(t.endpoints.getPurposes.select(),e=>{let{data:s}=e;return s||a})},45985:function(e,s,n){"use strict";n.r(s),n.d(s,{default:function(){return I}});var l=n(24246),t=n(77181),i=n(27378),a=n(77213),o=n(58754),r=n(92222),c=n(59003),u=n(25980),d=n(14481),x=n(86677);let p=(e,s)=>{let n=e.filter(e=>e.isChecked);return n.length>0?"".concat(s,"=").concat(n.map(e=>e.value).join("&".concat(s,"="))):void 0},h=e=>{let{value:s,displayText:n,isChecked:i,onCheckboxChange:a}=e;return(0,l.jsx)(t.XZJ,{value:s,height:"20px",mb:"25px",isChecked:i,onChange:e=>{let{target:n}=e;a(s,n.checked)},_focusWithin:{bg:"gray.100"},colorScheme:"complimentary",children:(0,l.jsx)(t.xvT,{fontSize:"sm",lineHeight:5,textOverflow:"ellipsis",overflow:"hidden",children:n})},s)},g=e=>{let{options:s,header:n,onCheckboxChange:a,columns:o=3,numDefaultOptions:r=15}=e,[c,u]=(0,i.useState)(!1),d=c?s:s.slice(0,r),x=s.length>r;return(0,l.jsxs)(t.Qdk,{border:"0px",padding:"12px 8px 8px 12px",children:[(0,l.jsx)(t.X6q,{height:"56px",children:(0,l.jsxs)(t.KFZ,{height:"100%",children:[(0,l.jsx)(t.xuv,{flex:"1",alignItems:"center",justifyContent:"center",textAlign:"left",fontWeight:600,children:n}),(0,l.jsx)(t.XEm,{})]})}),(0,l.jsxs)(t.Hk3,{id:"panel-".concat(n),children:[(0,l.jsx)(t.MIq,{columns:o,children:d.map(e=>(0,l.jsx)(h,{...e,onCheckboxChange:a},e.value))}),!c&&x?(0,l.jsx)(t.wpx,{type:"text",onClick:()=>{u(!0)},children:"View more"}):null,c&&x?(0,l.jsx)(t.wpx,{type:"text",onClick:()=>{u(!1)},children:"View less"}):null]})]})},j=e=>{let{heading:s,children:n}=e;return(0,l.jsxs)(t.xuv,{padding:"12px 8px 8px 12px",maxHeight:600,children:[s?(0,l.jsx)(t.X6q,{size:"md",lineHeight:6,fontWeight:"bold",mb:2,children:s}):null,n]})},C=e=>{let{resetFilters:s,isOpen:n,onClose:i,children:a,...o}=e;return(0,l.jsxs)(t.u_l,{isOpen:n,onClose:i,isCentered:!0,size:"2xl",...o,children:[(0,l.jsx)(t.ZAr,{}),(0,l.jsxs)(t.hzk,{children:[(0,l.jsx)(t.xBx,{children:"Filters"}),(0,l.jsx)(t.olH,{}),(0,l.jsx)(t.izJ,{}),(0,l.jsx)(t.fef,{maxH:"85vh",padding:"0px",overflowX:"auto",style:{scrollbarGutter:"stable"},children:a}),(0,l.jsx)(t.mzw,{children:(0,l.jsxs)(t.xuv,{display:"flex",justifyContent:"space-between",width:"100%",children:[(0,l.jsx)(t.wpx,{onClick:s,className:"mr-3 grow",children:"Reset filters"}),(0,l.jsx)(t.wpx,{type:"primary",onClick:i,className:"grow",children:"Done"})]})})]})]})};var f=n(77830),m=n(31435),v=n(16134),k=n(6675),y=n(28079);let b=()=>{let{isOpen:e,onClose:s,onOpen:n}=(0,t.qY0)();(0,y.fd)();let l=(0,v.C)(y.U3);(0,k.a4)();let a=(0,v.C)(k.ZS),[o,r]=(0,i.useState)([]),[c,u]=(0,i.useState)([]),[d,x]=(0,i.useState)([{displayText:"Consent",value:"Consent",isChecked:!1},{displayText:"Legitimate Interest",value:"Legitimate interests",isChecked:!1}]),[p,h]=(0,i.useState)([{displayText:"Advertising",value:"advertising",isChecked:!1},{displayText:"Analytics",value:"analytics",isChecked:!1},{displayText:"Functional",value:"functional",isChecked:!1},{displayText:"Essential",value:"essential",isChecked:!1}]);(0,i.useEffect)(()=>{0===c.length&&u(l.map(e=>({value:e.fides_key,displayText:e.name||e.fides_key,isChecked:!1})))},[l,c,u]),(0,i.useEffect)(()=>{0===o.length&&r([...Object.entries(a.purposes).map(e=>({value:"normal.".concat(e[0]),displayText:e[1].name,isChecked:!1})),...Object.entries(a.special_purposes).map(e=>({value:"special.".concat(e[0]),displayText:e[1].name,isChecked:!1}))])},[a,o,u]);let g=(e,s,n,l)=>{l(n.map(n=>n.value===e?{...n,isChecked:s}:n))};return{isOpen:e,onClose:s,onOpen:n,resetFilters:()=>{u(e=>e.map(e=>({...e,isChecked:!1}))),x(e=>e.map(e=>({...e,isChecked:!1}))),r(e=>e.map(e=>({...e,isChecked:!1}))),h(e=>e.map(e=>({...e,isChecked:!1})))},purposeOptions:o,onPurposeChange:(e,s)=>{g(e,s,o,r)},dataUseOptions:c,onDataUseChange:(e,s)=>{g(e,s,c,u)},legalBasisOptions:d,onLegalBasisChange:(e,s)=>{g(e,s,d,x)},consentCategoryOptions:p,onConsentCategoryChange:(e,s)=>{g(e,s,p,h)}}},w=e=>{let{isOpen:s,isTcfEnabled:n,onClose:i,resetFilters:a,purposeOptions:o,onPurposeChange:r,dataUseOptions:c,onDataUseChange:u,legalBasisOptions:d,onLegalBasisChange:x,consentCategoryOptions:p,onConsentCategoryChange:h}=e;return(0,l.jsx)(C,{isOpen:s,onClose:i,resetFilters:a,children:(0,l.jsx)(t.UQy,{children:(0,l.jsxs)(j,{children:[n?(0,l.jsx)(g,{options:o,onCheckboxChange:r,header:"TCF purposes",columns:1,numDefaultOptions:5}):null,(0,l.jsx)(g,{options:c,onCheckboxChange:u,header:"Data uses"}),n?(0,l.jsx)(g,{options:d,onCheckboxChange:x,header:"Legal basis"}):null,n?null:(0,l.jsx)(g,{options:p,onCheckboxChange:h,header:"Consent categories"})]})})})};var _=n(32885);let{Text:S,Title:O}=t.AntTypography,T=()=>{let{isOpen:e,onOpen:s,onClose:n}=(0,t.qY0)();return{isOpen:e,onOpen:s,onClose:n}},z=e=>{let{isOpen:s,onClose:n,fidesKey:i}=e,{data:a,isLoading:o}=(0,_.ho)(i),r=(e,s)=>(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(O,{level:5,children:e}),(null==s?void 0:s.length)?(0,l.jsx)("div",{children:(0,l.jsx)(t.vyj,{size:[0,2],wrap:!0,children:null==s?void 0:s.map(e=>(0,l.jsx)(t.j8w,{children:e},e))})}):(0,l.jsxs)(S,{italic:!0,children:["no known ",e.toLowerCase()]})]});return(0,l.jsxs)(t.u_l,{isOpen:s,onClose:n,size:"xxl",returnFocusOnClose:!1,isCentered:!0,children:[(0,l.jsx)(t.ZAr,{}),(0,l.jsxs)(t.hzk,{maxWidth:"800px",children:[(0,l.jsx)(t.xBx,{children:a?null==a?void 0:a.name:"Vendor"}),(0,l.jsx)(t.fef,{children:o?(0,l.jsx)(t.jqI,{className:"h-80 w-full",align:"center",justify:"center",children:(0,l.jsx)(t.$jN,{})}):!!a&&(0,l.jsxs)(t.AntTypography,{children:[(0,l.jsx)(O,{level:5,children:"Purposes"}),Object.entries(a.purposes||{}).length>0?(0,l.jsx)(t.UQy,{allowMultiple:!0,children:Object.entries(a.purposes).map((e,s)=>{let[n]=e;return(0,l.jsx)(t.Qdk,{children:e=>{let{isExpanded:s}=e;return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)(t.KFZ,{backgroundColor:s?"gray.50":"unset",children:[(0,l.jsx)(t.xuv,{flex:"1",textAlign:"left",children:n}),(0,l.jsx)(t.XEm,{})]}),(0,l.jsxs)(t.Hk3,{backgroundColor:"gray.50",children:[(0,l.jsx)(t.jqI,{className:"my-4",vertical:!0,children:r("Data uses",a.purposes[n].data_uses)}),(0,l.jsx)(t.jqI,{className:"my-4",vertical:!0,children:r("Legal basis",a.purposes[n].legal_bases)})]})]})}},s)})}):(0,l.jsx)(S,{italic:!0,children:"no known purposes"}),(0,l.jsx)("div",{className:"my-4",children:r("Features",a.features)}),(0,l.jsx)("div",{className:"my-4",children:r("Data categories",a.data_categories)})]})}),(0,l.jsxs)(t.mzw,{children:[(0,l.jsx)(t.wpx,{size:"small",onClick:n,children:"Close"}),(0,l.jsx)(t.LZC,{})]})]})]})},F=(0,r.Cl)(),N={items:[],total:0,page:1,size:25,pages:1},P=()=>{let{tcf:e,dictionaryService:s}=(0,u.hz)(),{isLoading:n}=(0,_.x8)(),{isOpen:a,onOpen:o,onClose:h}=T(),g=(0,x.useRouter)(),[j,C]=(0,i.useState)(),{isOpen:v,onOpen:k,onClose:y,resetFilters:S,purposeOptions:O,onPurposeChange:P,dataUseOptions:R,onDataUseChange:I,legalBasisOptions:E,onLegalBasisChange:V,consentCategoryOptions:L,onConsentCategoryChange:M}=b(),Z=(0,i.useMemo)(()=>p(R,"data_uses"),[R]),q=(0,i.useMemo)(()=>p(E,"legal_bases"),[E]),A=(0,i.useMemo)(()=>p(O.filter(e=>e.value.includes("normal")).map(e=>({...e,value:e.value.split(".")[1]})),"purposes"),[O]),D=(0,i.useMemo)(()=>p(O.filter(e=>e.value.includes("special")).map(e=>({...e,value:e.value.split(".")[1]})),"special_purposes"),[O]),H=(0,i.useMemo)(()=>p(L,"consent_category"),[L]),{PAGE_SIZES:U,pageSize:X,setPageSize:B,onPreviousPageClick:Q,isPreviousPageDisabled:G,onNextPageClick:K,isNextPageDisabled:W,startRange:J,endRange:Y,pageIndex:$,setTotalPages:ee,resetPageIndexToDefault:es}=(0,d.oi)(),[en,el]=(0,i.useState)(),et=(0,i.useCallback)(e=>{es(),el(e)},[es,el]),{isFetching:ei,isLoading:ea,data:eo}=(0,_.de)({pageIndex:$,pageSize:X,dataUses:Z,search:en,legalBasis:q,purposes:A,specialPurposes:D,consentCategories:H}),{items:er,total:ec,pages:eu}=(0,i.useMemo)(()=>eo||N,[eo]);(0,i.useEffect)(()=>{ee(eu)},[eu,ee]);let ed=(0,i.useMemo)(()=>[F.accessor(e=>e.name,{id:"name",cell:e=>(0,l.jsx)(d.G3,{value:e.getValue()}),header:e=>(0,l.jsx)(d.Rr,{value:"Vendor",...e})}),F.accessor(e=>e.data_uses,{id:"tcf_purpose",cell:e=>(0,l.jsx)(d.CI,{plSuffix:"purposes",singSuffix:"purpose",count:e.getValue()}),header:e=>(0,l.jsx)(d.Rr,{value:"TCF purpose",...e})}),F.accessor(e=>e.data_uses,{id:"data_uses",cell:e=>(0,l.jsx)(d.CI,{plSuffix:"data uses",singSuffix:"data use",count:e.getValue()}),header:e=>(0,l.jsx)(d.Rr,{value:"Data use",...e})}),F.accessor(e=>e.legal_bases,{id:"legal_bases",cell:e=>(0,l.jsx)(d.CI,{plSuffix:"bases",singSuffix:"basis",count:e.getValue()}),header:e=>(0,l.jsx)(d.Rr,{value:"Legal basis",...e})}),F.accessor(e=>e.consent_categories,{id:"consent_categories",cell:e=>(0,l.jsx)(d.CI,{plSuffix:"categories",singSuffix:"category",count:e.getValue()}),header:e=>(0,l.jsx)(d.Rr,{value:"Categories",...e})}),F.accessor(e=>e.cookies,{id:"cookies",cell:e=>(0,l.jsx)(d.CI,{plSuffix:"cookies",singSuffix:"cookie",count:e.getValue()}),header:e=>(0,l.jsx)(d.Rr,{value:"Cookies",...e})})],[]),ex=(0,c.b7)({columns:ed,data:er,state:{columnVisibility:{tcf_purpose:e,data_uses:e,legal_bases:e,consent_categories:!e,cookies:!e}},getCoreRowModel:(0,r.sC)(),columnResizeMode:"onChange",enableColumnResizing:!0});return ea||n?(0,l.jsx)(d.I4,{rowHeight:36,numRows:15}):(0,l.jsxs)(t.kCb,{flex:1,direction:"column",overflow:"auto",children:[a&&j?(0,l.jsx)(z,{isOpen:a,fidesKey:j,onClose:h}):null,(0,l.jsxs)(d.Q$,{children:[(0,l.jsx)(d.HO,{globalFilter:en,setGlobalFilter:et,placeholder:"Search"}),(0,l.jsx)(w,{isOpen:v,isTcfEnabled:e,onClose:y,resetFilters:S,purposeOptions:O,onPurposeChange:P,dataUseOptions:R,onDataUseChange:I,legalBasisOptions:E,onLegalBasisChange:V,consentCategoryOptions:L,onConsentCategoryChange:M}),(0,l.jsxs)(t.Ugi,{alignItems:"center",spacing:2,children:[(0,l.jsx)(m.Z,{buttonLabel:"Add vendors",onButtonClick:s?()=>{g.push(f.Gg)}:void 0}),(0,l.jsx)(t.wpx,{onClick:k,"data-testid":"filter-multiple-systems-btn",children:"Filter"})]})]}),(0,l.jsx)(d.ZK,{tableInstance:ex,onRowClick:e=>{C(e.fides_key),o()}}),(0,l.jsx)(d.s8,{totalRows:ec||0,pageSizes:U,setPageSize:B,onPreviousPageClick:Q,isPreviousPageDisabled:G||ei,onNextPageClick:K,isNextPageDisabled:W||ei,startRange:J,endRange:Y})]})},{Text:R}=t.AntTypography;var I=()=>(0,l.jsxs)(a.Z,{title:"Vendors",children:[(0,l.jsx)(o.Z,{heading:"Vendors",children:(0,l.jsx)(R,{className:"block w-1/2",children:"Use the table below to manage your vendors. Modify the legal basis for a vendor if permitted and view and group your views by applying different filters"})}),(0,l.jsx)(P,{})]})}},function(e){e.O(0,[8033,6060,4481,401,8934,2888,9774,179],function(){return e(e.s=54727)}),_N_E=e.O()}]);
|
@@ -1 +1 @@
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2357],{5123:function(e,n,i){(window.__NEXT_P=window.__NEXT_P||[]).push(["/consent/privacy-experience/[id]",function(){return i(41884)}])},41884:function(e,n,i){"use strict";i.r(n);var r=i(24246),c=i(
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2357],{5123:function(e,n,i){(window.__NEXT_P=window.__NEXT_P||[]).push(["/consent/privacy-experience/[id]",function(){return i(41884)}])},41884:function(e,n,i){"use strict";i.r(n);var r=i(24246),c=i(77181),t=i(86677),s=i(77213),d=i(11817),u=i(94315);n.default=()=>{let e=(0,t.useRouter)(),n="";e.query.id&&(n=Array.isArray(e.query.id)?e.query.id[0]:e.query.id);let{data:i,isLoading:a}=(0,u.Qv)(n),{data:o,isLoading:p}=(0,u.fc)(n);return a||p?(0,r.jsx)(s.Z,{title:"Privacy experience",children:(0,r.jsx)(c.M5Y,{children:(0,r.jsx)(c.$jN,{})})}):i?(0,r.jsx)(s.Z,{title:"Privacy experience ".concat(i.component),padded:!1,children:(0,r.jsx)(d.Z,{passedInExperience:i,passedInTranslations:o})}):(0,r.jsx)(s.Z,{title:"Privacy experience",children:(0,r.jsxs)(c.xvT,{children:["No privacy experience with id ",n," found."]})})}}},function(e){e.O(0,[2858,2866,4294,9014,9282,1376,1817,2888,9774,179],function(){return e(e.s=5123)}),_N_E=e.O()}]);
|
@@ -1 +1 @@
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7680],{49048:function(n,e,c){(window.__NEXT_P=window.__NEXT_P||[]).push(["/consent/privacy-experience/new",function(){return c(16669)}])},16669:function(n,e,c){"use strict";c.r(e);var i=c(24246),t=c(77213),u=c(11817);e.default=()=>(0,i.jsx)(t.Z,{title:"Privacy Experience",padded:!1,children:(0,i.jsx)(u.Z,{})})}},function(n){n.O(0,[2858,2866,4294,9014,9282,
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7680],{49048:function(n,e,c){(window.__NEXT_P=window.__NEXT_P||[]).push(["/consent/privacy-experience/new",function(){return c(16669)}])},16669:function(n,e,c){"use strict";c.r(e);var i=c(24246),t=c(77213),u=c(11817);e.default=()=>(0,i.jsx)(t.Z,{title:"Privacy Experience",padded:!1,children:(0,i.jsx)(u.Z,{})})}},function(n){n.O(0,[2858,2866,4294,9014,9282,1376,1817,2888,9774,179],function(){return n(n.s=49048)}),_N_E=n.O()}]);
|
fides/ui-build/static/admin/_next/static/chunks/pages/consent/privacy-experience-7eeeee3769e73f78.js
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[354],{55173:function(e,t,s){(window.__NEXT_P=window.__NEXT_P||[]).push(["/consent/privacy-experience",function(){return s(44061)}])},59301:function(e,t,s){"use strict";var i=s(24246),n=s(77181);t.Z=e=>(0,i.jsx)(n.rUS,{isExternal:!0,color:"complimentary.500",...e})},32222:function(e,t,s){"use strict";s.d(t,{J:function(){return i}});let i=new Map([["overlay","Overlay"],["privacy_center","Privacy center"],["tcf_overlay","TCF overlay"],["modal","Modal"],["banner_and_modal","Banner and modal"],["headless","Headless"]])},44061:function(e,t,s){"use strict";s.r(t),s.d(t,{default:function(){return N}});var i=s(24246),n=s(77181),a=s(27378),r=s(35287),o=s(92222),l=s(59003),c=s(14481),d=s(77830),p=s(19904),u=s(45277),x=s(59301),h=s(812),y=s(46628),g=s(32885),m=e=>{let{isOpen:t,onClose:s,testId:r="custom-asset-modal",assetType:o}=e,l=(0,a.useRef)(null),[c,d]=(0,a.useState)(null),p=(0,n.pmc)(),{getRootProps:m,getInputProps:j,isDragActive:f}=(0,u.uI)({onDrop:e=>{var t;if("css"!==(null===(t=e[0].name.split(".").pop())||void 0===t?void 0:t.toLowerCase())){p((0,y.Vo)("Only css files are allowed."));return}d(e[0])}}),[v,{isLoading:b}]=(0,g.JQ)(),w=async()=>{if(c){let e=await v({assetType:o,file:c});if((0,h.D4)(e)){p((0,y.Vo)((0,h.e$)(e.error)));return}p((0,y.t5)("Stylesheet uploaded successfully")),s()}};return(0,i.jsxs)(n.u_l,{initialFocusRef:l,isOpen:t,onClose:s,size:"2xl",children:[(0,i.jsx)(n.ZAr,{}),(0,i.jsxs)(n.hzk,{textAlign:"left",p:2,"data-testid":r,children:[(0,i.jsx)(n.xBx,{tabIndex:-1,ref:l,children:"Upload stylesheet"}),(0,i.jsxs)(n.fef,{children:[(0,i.jsxs)(n.xvT,{fontSize:"sm",mb:4,children:["To customize the appearance of your consent experiences, you may upload a CSS stylesheet. To download a template as a helpful starting point, click"," ",(0,i.jsx)(x.Z,{href:"https://raw.githubusercontent.com/ethyca/fides/main/clients/fides-js/src/components/fides.css",isExternal:!0,children:"here"}),"."," ",(0,i.jsx)(x.Z,{href:"https://fid.es/customize-styles",isExternal:!0,children:"Learn more"}),"."]}),(0,i.jsxs)(n.xuv,{...m(),bg:f?"gray.100":"gray.50",border:"2px dashed",borderColor:f?"gray.300":"gray.200",borderRadius:"md",cursor:"pointer",minHeight:"150px",display:"flex",alignItems:"center",justifyContent:"center",textAlign:"center",children:[(0,i.jsx)("input",{...j()}),c?(0,i.jsx)(n.xvT,{children:c.name}):f?(0,i.jsx)(n.xvT,{children:"Drop the file here..."}):(0,i.jsx)(n.xvT,{children:"Click or drag and drop your file here."})]})]}),(0,i.jsxs)(n.mzw,{className:"flex w-full justify-end gap-2",children:[(0,i.jsx)(n.wpx,{onClick:s,"data-testid":"cancel-btn",disabled:b,children:"Cancel"}),(0,i.jsx)(n.wpx,{type:"primary",htmlType:"submit",disabled:!c||b,onClick:w,"data-testid":"submit-btn",children:"Submit"})]})]})]})},j=e=>{let{assetType:t}=e,s=(0,n.qY0)();return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(n.wpx,{onClick:s.onOpen,children:"Upload stylesheet"}),(0,i.jsx)(m,{isOpen:s.isOpen,onClose:s.onClose,assetType:t})]})},f=s(72625),v=s(32222),b=s(94315);let w=e=>{var t;let s=null!==(t=v.J.get(e))&&void 0!==t?t:e;return(0,i.jsx)(f.G3,{value:s})},C=e=>{let{row:t,getValue:s}=e,[n]=(0,b.o3)(),[r,o]=(0,a.useState)(!1),l=async e=>{o(!0);let s=await n({id:t.original.id,disabled:!e});return o(!1),s},c=s(),{regions:d}=t.original,p=!!d&&d.length>1;return(0,i.jsx)(f.S1,{enabled:!c,onToggle:l,title:p?"Disabling multiple states":"Disabling experience",message:p?"Warning, you are about to disable this privacy experience for multiple locations. If you continue, your privacy notices will not be accessible to users in these locations.":"Warning, you are about to disable this privacy experience. If you continue, your privacy notices will not be accessible to users in this location.",loading:r})};var T=s(88340),_=s(25980),S=s(14048);let R="{privacy-center-hostname-and-path}",E='<script src="https://'.concat(R,'/fides.js"></script>'),P="<script>Fides.gtm()</script>";var k=()=>{let e=(0,n.qY0)(),t=(0,a.useRef)(null),{fidesCloud:s}=(0,_.hz)(),{data:r,isSuccess:o}=(0,g.Vh)(void 0,{skip:!s}),l=(0,a.useMemo)(()=>s&&o&&(null==r?void 0:r.privacy_center_url)?E.replace(R,r.privacy_center_url):E,[null==r?void 0:r.privacy_center_url,s,o]);return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(n.wpx,{onClick:e.onOpen,icon:(0,i.jsx)(S.TI,{}),iconPosition:"end","data-testid":"js-tag-btn",children:"Get JavaScript tag"}),(0,i.jsxs)(n.u_l,{isOpen:e.isOpen,onClose:e.onClose,isCentered:!0,size:"xl",initialFocusRef:t,children:[(0,i.jsx)(n.ZAr,{}),(0,i.jsxs)(n.hzk,{"data-testid":"copy-js-tag-modal",children:[(0,i.jsx)(n.xBx,{tabIndex:-1,ref:t,pb:0,children:"Copy JavaScript tag"}),(0,i.jsx)(n.fef,{pt:3,pb:6,children:(0,i.jsxs)(n.Kqy,{spacing:3,children:[(0,i.jsx)(n.xvT,{children:"Copy the code below and paste it onto every page of your website, as high up in the <head> as possible. Replace the bracketed component with your privacy center's hostname and path."}),(0,i.jsxs)(n.EKh,{display:"flex",justifyContent:"space-between",alignItems:"center",p:0,children:[(0,i.jsx)(n.xvT,{p:4,children:l}),(0,i.jsx)(T.Z,{copyText:l})]}),(0,i.jsx)(n.xvT,{children:"Optionally, you can enable Google Tag Manager for managing tags on your website by including the script tag below along with the Fides.js tag. Place it below the Fides.js script tag."}),(0,i.jsxs)(n.EKh,{display:"flex",justifyContent:"space-between",alignItems:"center",p:0,children:[(0,i.jsx)(n.xvT,{p:4,children:P}),(0,i.jsx)(T.Z,{copyText:P})]}),(0,i.jsxs)(n.xvT,{children:["For more information about adding a JavaScript tag to your website, please visit"," ",(0,i.jsx)(n.rUS,{color:"complimentary.500",href:"https://docs.ethyca.com/tutorials/consent-management-configuration/install-fides#install-fidesjs-script-on-your-website",isExternal:!0,children:"docs.ethyca.com"})]})]})})]})]})]})},z=s(22286),I=s(62656);let M={items:[],total:0,page:1,size:25,pages:1},O=()=>(0,i.jsxs)(n.gCW,{mt:6,p:10,spacing:4,borderRadius:"base",maxW:"70%","data-testid":"empty-state",alignSelf:"center",margin:"auto",children:[(0,i.jsxs)(n.gCW,{children:[(0,i.jsx)(n.xvT,{fontSize:"md",fontWeight:"600",children:"No privacy experiences found."}),(0,i.jsx)(n.xvT,{fontSize:"sm",children:'Click "Create new experience" to add your first privacy experience to Fides.'})]}),(0,i.jsx)(n.wpx,{onClick:()=>{window.location.href="".concat(d.w0,"/new")},size:"small",type:"primary","data-testid":"add-privacy-experience-btn",children:"Create new experience"})]}),D=(0,o.Cl)(),F=()=>{let{isLoading:e}=(0,g.x8)(),t=(0,p.Tg)([I.Sh.PRIVACY_EXPERIENCE_UPDATE]),{PAGE_SIZES:s,pageSize:r,setPageSize:u,onPreviousPageClick:x,isPreviousPageDisabled:h,onNextPageClick:y,isNextPageDisabled:m,startRange:f,endRange:v,pageIndex:T,setTotalPages:_}=(0,c.oi)(),{isFetching:S,isLoading:R,data:E}=(0,b.cq)({page:T,size:r}),{items:P,total:F,pages:N}=(0,a.useMemo)(()=>E||M,[E]);(0,a.useEffect)(()=>{_(N)},[N,_]);let V=(0,a.useMemo)(()=>[D.accessor(e=>e.name,{id:"name",cell:e=>(0,i.jsx)(c.G3,{value:e.getValue()}),header:e=>(0,i.jsx)(c.Rr,{value:"Title",...e})}),D.accessor(e=>e.component,{id:"component",cell:e=>w(e.getValue()),header:e=>(0,i.jsx)(c.Rr,{value:"Component",...e})}),D.accessor(e=>e.regions,{id:"regions",cell:e=>(0,i.jsx)(c.WP,{suffix:"Locations",value:(0,z.JL)(e.getValue()),...e}),header:e=>(0,i.jsx)(c.Rr,{value:"Locations",...e}),meta:{showHeaderMenu:!0}}),D.accessor(e=>e.properties.map(e=>e.name),{id:"properties",cell:e=>(0,i.jsx)(c.WP,{suffix:"Properties",value:e.getValue(),...e}),header:e=>(0,i.jsx)(c.Rr,{value:"Properties",...e}),meta:{showHeaderMenu:!0}}),D.accessor(e=>e.updated_at,{id:"updated_at",cell:e=>(0,i.jsx)(c.G3,{value:new Date(e.getValue()).toDateString()}),header:e=>(0,i.jsx)(c.Rr,{value:"Last update",...e})}),t&&D.accessor(e=>e.disabled,{id:"enable",cell:C,header:e=>(0,i.jsx)(c.Rr,{value:"Enable",...e}),meta:{disableRowClick:!0}})].filter(Boolean),[t]),W=(0,l.b7)({getCoreRowModel:(0,o.sC)(),getGroupedRowModel:(0,o.qe)(),getExpandedRowModel:(0,o.rV)(),columns:V,manualPagination:!0,data:P,state:{expanded:!0},columnResizeMode:"onChange"});return R||e?(0,i.jsx)(c.I4,{rowHeight:36,numRows:15}):(0,i.jsx)("div",{children:(0,i.jsxs)(n.kCb,{flex:1,direction:"column",overflow:"auto",children:[t&&(0,i.jsxs)(c.Q$,{children:[(0,i.jsxs)(n.Ugi,{alignItems:"center",spacing:2,children:[(0,i.jsx)(k,{}),(0,i.jsx)(p.ZP,{scopes:[I.Sh.CUSTOM_ASSET_UPDATE],children:(0,i.jsx)(j,{assetType:I.Db.CUSTOM_FIDES_CSS})})]}),(0,i.jsx)(n.wpx,{onClick:()=>{window.location.href="".concat(d.w0,"/new")},type:"primary","data-testid":"add-privacy-experience-btn",children:"Create new experience"})]}),(0,i.jsx)(c.ZK,{tableInstance:W,onRowClick:t?e=>{let{id:s}=e;t&&(window.location.href="".concat(d.w0,"/").concat(s))}:void 0,emptyTableNotice:(0,i.jsx)(O,{})}),(0,i.jsx)(c.s8,{totalRows:F||0,pageSizes:s,setPageSize:u,onPreviousPageClick:x,isPreviousPageDisabled:h||S,onNextPageClick:y,isNextPageDisabled:m||S,startRange:f,endRange:v})]})})};var N=()=>(0,i.jsxs)(r.Z,{title:"Privacy experiences",children:[(0,i.jsx)(n.xuv,{mb:4,"data-testid":"privacy-experience-page",children:(0,i.jsx)(n.X6q,{fontSize:"2xl",fontWeight:"semibold",mb:2,"data-testid":"header",children:"Privacy experience"})}),(0,i.jsx)(n.xvT,{fontSize:"sm",mb:8,width:{base:"100%",lg:"70%"},children:"Based on your privacy notices, Fides has created the banner and modal privacy experience configuration below. Each experience contains privacy notices and locations where the notices will be displayed. Edit each banner, modal, or privacy center to adjust the included privacy notices, locations, and text that is displayed to your users. When you’re ready to include these privacy notices on your website, copy the JavaScript using the button on this page and place it on your website."}),(0,i.jsx)(n.xuv,{children:(0,i.jsx)(F,{})})]})}},function(e){e.O(0,[8033,6060,5277,4481,6853,2888,9774,179],function(){return e(e.s=55173)}),_N_E=e.O()}]);
|
@@ -1 +1 @@
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4648],{12037:function(i,e,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/consent/privacy-notices/[id]",function(){return t(48161)}])},48161:function(i,e,t){"use strict";t.r(e);var n=t(24246),c=t(
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4648],{12037:function(i,e,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/consent/privacy-notices/[id]",function(){return t(48161)}])},48161:function(i,e,t){"use strict";t.r(e);var n=t(24246),c=t(77181),s=t(86677),r=t(77213),a=t(77830),o=t(58754),d=t(71922),u=t(34391);e.default=()=>{let i=(0,s.useRouter)(),e="";i.query.id&&(e=Array.isArray(i.query.id)?i.query.id[0]:i.query.id);let{data:t,isLoading:l}=(0,d._g)(e),{data:h}=(0,d.Wq)(e);return l?(0,n.jsx)(r.Z,{title:"Privacy notice",children:(0,n.jsx)(c.M5Y,{children:(0,n.jsx)(c.$jN,{})})}):t?(0,n.jsxs)(r.Z,{title:"Privacy notice ".concat(t.name),children:[(0,n.jsx)(o.Z,{heading:"Privacy Notices",breadcrumbItems:[{title:"All privacy Notices",href:a.IT},{title:t.name}]}),(0,n.jsxs)(c.xuv,{width:{base:"100%",lg:"70%"},"data-testid":"privacy-notice-detail-page",children:[(0,n.jsx)(c.xvT,{fontSize:"sm",mb:8,children:"Configure your privacy notice including consent mechanism, associated data uses and the locations in which this should be displayed to users."}),(0,n.jsx)(u.Z,{privacyNotice:t,availableTranslations:h})]})]}):(0,n.jsx)(r.Z,{title:"Privacy notice",children:(0,n.jsxs)(c.xvT,{children:["No privacy notice with id ",e," found."]})})}}},function(i){i.O(0,[2858,2866,4294,3615,9282,1376,6954,2888,9774,179],function(){return i(i.s=12037)}),_N_E=i.O()}]);
|
@@ -1 +1 @@
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2158],{15786:function(e,i,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/consent/privacy-notices/new",function(){return n(11739)}])},11739:function(e,i,n){"use strict";n.r(i);var t=n(24246),s=n(
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2158],{15786:function(e,i,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/consent/privacy-notices/new",function(){return n(11739)}])},11739:function(e,i,n){"use strict";n.r(i);var t=n(24246),s=n(77181),c=n(77213),a=n(77830),o=n(58754),r=n(34391);i.default=()=>(0,t.jsxs)(c.Z,{title:"New privacy notice",children:[(0,t.jsx)(o.Z,{heading:"Privacy Notices",breadcrumbItems:[{title:"All privacy Notices",href:a.IT},{title:"New privacy notice"}]}),(0,t.jsxs)(s.xuv,{width:{base:"100%",lg:"70%"},children:[(0,t.jsx)(s.xvT,{fontSize:"sm",mb:8,children:"Configure your privacy notice including consent mechanism, associated data uses and the locations in which this should be displayed to users."}),(0,t.jsx)(s.xuv,{"data-testid":"new-privacy-notice-page",children:(0,t.jsx)(r.Z,{})})]})]})}},function(e){e.O(0,[2858,2866,4294,3615,9282,1376,6954,2888,9774,179],function(){return e(e.s=15786)}),_N_E=e.O()}]);
|
@@ -1 +1 @@
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7262],{81575:function(e,t,i){(window.__NEXT_P=window.__NEXT_P||[]).push(["/consent/privacy-notices",function(){return i(13089)}])},58754:function(e,t,i){"use strict";var a=i(24246),n=i(
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7262],{81575:function(e,t,i){(window.__NEXT_P=window.__NEXT_P||[]).push(["/consent/privacy-notices",function(){return i(13089)}])},58754:function(e,t,i){"use strict";var a=i(24246),n=i(77181),s=i(70788);t.Z=e=>{let{heading:t,breadcrumbItems:i,isSticky:l=!0,children:r,rightContent:o,style:c,...d}=e;return(0,a.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,a.jsxs)(n.jqI,{justify:"space-between",children:["string"==typeof t?(0,a.jsx)(n.X6q,{className:i||r?"pb-4":void 0,fontSize:"2xl","data-testid":"page-heading",children:t}):t,o&&(0,a.jsx)("div",{"data-testid":"page-header-right-content",children:o})]}),!!i&&(0,a.jsx)(s.m,{className:r?"pb-4":void 0,items:i,"data-testid":"page-breadcrumb"}),r]})}},70788:function(e,t,i){"use strict";i.d(t,{m:function(){return c}});var a=i(24246),n=i(77181),s=i(79894),l=i.n(s),r=i(27378);let{Text:o}=n.AntTypography,c=e=>{let{items:t,...i}=e,s=(0,r.useMemo)(()=>null==t?void 0:t.map((e,i)=>{let s=i===t.length-1,r={...e},c=r.onClick&&!r.href;return("string"==typeof r.title&&(r.title=(0,a.jsx)(o,{style:{color:"inherit",maxWidth:s?void 0:400},ellipsis:!s,children:r.title})),c)?r.title=(0,a.jsx)(n.wpx,{type:"text",size:"small",icon:r.icon,onClick:r.onClick,className:"ant-breadcrumb-link -mt-px px-1 text-inherit",children:r.title}):(r.icon&&(r.title=(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("span",{className:"anticon align-text-bottom",children:r.icon}),r.title]})),r.href&&r.title&&(r.title=(0,a.jsx)(l(),{href:r.href,className:"ant-breadcrumb-link",children:r.title}),delete r.href)),r}),[t]);return(0,a.jsx)(n.zrq,{items:s,...i})}},13089:function(e,t,i){"use strict";i.r(t),i.d(t,{default:function(){return P}});var a=i(24246),n=i(77181),s=i(27378),l=i(35287),r=i(58754),o=i(92222),c=i(59003),d=i(14481),u=i(79894),h=i.n(u),x=i(86677),p=i(77830),g=i(8411),m=i(19904),v=i(72625),f=i(32885),j=i(22286),b=i(65063),y=i(71922),w=i(62656);let k={items:[],total:0,page:1,size:25,pages:1},C=()=>(0,a.jsxs)(n.gCW,{mt:6,p:10,spacing:4,borderRadius:"base",maxW:"70%","data-testid":"no-results-notice",alignSelf:"center",margin:"auto",children:[(0,a.jsxs)(n.gCW,{children:[(0,a.jsx)(n.xvT,{fontSize:"md",fontWeight:"600",children:"No privacy notices found."}),(0,a.jsx)(n.xvT,{fontSize:"sm",children:'Click "Add a privacy notice" to add your first privacy notice to Fides.'})]}),(0,a.jsx)(n.wpx,{href:"".concat(p.IT,"/new"),role:"link",size:"small",type:"primary","data-testid":"add-privacy-notice-btn",children:"Add a privacy notice +"})]}),R=(0,o.Cl)(),N=()=>{let{isLoading:e}=(0,f.x8)(),t=(0,x.useRouter)(),i=(0,m.Tg)([w.Sh.PRIVACY_NOTICE_UPDATE]),{PAGE_SIZES:l,pageSize:r,setPageSize:u,onPreviousPageClick:N,isPreviousPageDisabled:P,onNextPageClick:_,isNextPageDisabled:T,startRange:z,endRange:M,pageIndex:E,setTotalPages:I}=(0,d.oi)(),{isFetching:S,isLoading:V,data:A}=(0,y.J6)({page:E,size:r}),{items:q,total:W,pages:L}=(0,s.useMemo)(()=>A||k,[A]);(0,s.useEffect)(()=>{I(L)},[L,I]);let Z=(0,s.useMemo)(()=>[R.accessor(e=>e.name,{id:"name",cell:e=>(0,a.jsx)(d.G3,{value:e.getValue()}),header:e=>(0,a.jsx)(d.Rr,{value:"Title",...e})}),R.accessor(e=>e.consent_mechanism,{id:"consent_mechanism",cell:e=>(0,j.JA)(e.getValue()),header:e=>(0,a.jsx)(d.Rr,{value:"Mechanism",...e})}),R.accessor(e=>e.configured_regions,{id:"regions",cell:e=>{var t,i;return(0,a.jsx)(v.mb,{values:null!==(i=null===(t=e.getValue())||void 0===t?void 0:t.map(e=>{var t;return{label:null!==(t=g.Z8[e])&&void 0!==t?t:e,key:e}}))&&void 0!==i?i:[],cellProps:e})},header:e=>(0,a.jsx)(d.Rr,{value:"Locations",...e}),size:250,meta:{showHeaderMenu:!0,disableRowClick:!0}}),R.accessor(e=>e.disabled,{id:"status",cell:e=>(0,j.jN)(e),header:e=>(0,a.jsx)(d.Rr,{value:"Status",...e})}),R.accessor(e=>e.framework,{id:"framework",cell:e=>e.getValue()?(0,a.jsx)(d.A4,{value:b.Ep.get(e.getValue())}):null,header:e=>(0,a.jsx)(d.Rr,{value:"Framework",...e})}),R.accessor(e=>e.children,{id:"children",cell:e=>{var t;return(null===(t=(0,j.Mq)(e.getValue()))||void 0===t?void 0:t.length)?(0,a.jsx)(d.WP,{suffix:"Children",value:(0,j.Mq)(e.getValue()),...e}):(0,a.jsx)(d.G3,{value:"Unassigned"})},header:e=>(0,a.jsx)(d.Rr,{value:"Children",...e}),meta:{showHeaderMenu:!0}}),i&&R.accessor(e=>e.disabled,{id:"enable",cell:j.PS,header:e=>(0,a.jsx)(d.Rr,{value:"Enable",...e}),meta:{disableRowClick:!0}})].filter(Boolean),[i]),B=(0,c.b7)({getCoreRowModel:(0,o.sC)(),getGroupedRowModel:(0,o.qe)(),getExpandedRowModel:(0,o.rV)(),columns:Z,manualPagination:!0,data:q,state:{expanded:!0},columnResizeMode:"onChange"});return V||e?(0,a.jsx)(d.I4,{rowHeight:36,numRows:15}):(0,a.jsx)("div",{children:(0,a.jsxs)(n.kCb,{flex:1,direction:"column",overflow:"auto",children:[i&&(0,a.jsx)(d.Q$,{children:(0,a.jsx)(n.Ugi,{alignItems:"center",spacing:4,marginLeft:"auto",children:(0,a.jsx)(h(),{href:"".concat(p.IT,"/new"),passHref:!0,legacyBehavior:!0,children:(0,a.jsx)(n.wpx,{type:"primary","data-testid":"add-privacy-notice-btn",children:"Add a privacy notice +"})})})}),(0,a.jsx)(d.ZK,{tableInstance:B,onRowClick:i?e=>{let{id:a}=e;i&&t.push("".concat(p.IT,"/").concat(a))}:void 0,emptyTableNotice:(0,a.jsx)(C,{})}),(0,a.jsx)(d.s8,{totalRows:W||0,pageSizes:l,setPageSize:u,onPreviousPageClick:N,isPreviousPageDisabled:P||S,onNextPageClick:_,isNextPageDisabled:T||S,startRange:z,endRange:M})]})})};var P=()=>(0,a.jsxs)(l.Z,{title:"Privacy notices",children:[(0,a.jsx)(r.Z,{heading:"Privacy Notices",children:(0,a.jsx)(n.xvT,{fontSize:"sm",mb:8,width:{base:"100%",lg:"50%"},children:"Manage the privacy notices and mechanisms that are displayed to your users based on their location, what information you collect about them, and how you use that data."})}),(0,a.jsx)(n.xuv,{"data-testid":"privacy-notices-page",children:(0,a.jsx)(N,{})})]})}},function(e){e.O(0,[8033,6060,4481,6853,2888,9774,179],function(){return e(e.s=81575)}),_N_E=e.O()}]);
|
@@ -1 +1 @@
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1285],{63641:function(e,n,i){(window.__NEXT_P=window.__NEXT_P||[]).push(["/consent/properties",function(){return i(63063)}])},63063:function(e,n,i){"use strict";i.r(n);var r=i(24246),s=i(
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1285],{63641:function(e,n,i){(window.__NEXT_P=window.__NEXT_P||[]).push(["/consent/properties",function(){return i(63063)}])},63063:function(e,n,i){"use strict";i.r(n);var r=i(24246),s=i(77181),t=i(77213),o=i(58754),a=i(25783);n.default=()=>(0,r.jsxs)(t.Z,{title:"Properties",children:[(0,r.jsx)(o.Z,{heading:"Properties",children:(0,r.jsx)(s.xvT,{fontSize:"sm",width:{base:"100%",lg:"60%"},children:"Review and manage your properties below. Properties are the locations you have configured for consent management such as a website or mobile app."})}),(0,r.jsx)(a.V,{})]})}},function(e){e.O(0,[8033,6060,4481,79,2888,9774,179],function(){return e(e.s=63641)}),_N_E=e.O()}]);
|
@@ -0,0 +1 @@
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3422],{80594:function(e){e.exports=function(e,a){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==a(e[n],n,e););return e}},52033:function(e,a,n){var r=n(26194),t=n(26789)(r);e.exports=t},49819:function(e,a,n){var r=n(18911)();e.exports=r},26194:function(e,a,n){var r=n(49819),t=n(50098);e.exports=function(e,a){return e&&r(e,a,t)}},62079:function(e,a,n){var r=n(31137);e.exports=function(e){return"function"==typeof e?e:r}},26789:function(e,a,n){var r=n(80068);e.exports=function(e,a){return function(n,t){if(null==n)return n;if(!r(n))return e(n,t);for(var i=n.length,s=a?i:-1,o=Object(n);(a?s--:++s<i)&&!1!==t(o[s],s,o););return n}}},18911:function(e){e.exports=function(e){return function(a,n,r){for(var t=-1,i=Object(a),s=r(a),o=s.length;o--;){var l=s[e?o:++t];if(!1===n(i[l],l,i))break}return a}}},47003:function(e,a,n){var r=n(80594),t=n(52033),i=n(62079),s=n(19785);e.exports=function(e,a){return(s(e)?r:t)(e,i(a))}},31137:function(e){e.exports=function(e){return e}},90104:function(e,a,n){var r=n(20186),t=n(3533),i=n(2900),s=n(19785),o=n(80068),l=n(43854),_=n(56016),c=n(48519),d=Object.prototype.hasOwnProperty;e.exports=function(e){if(null==e)return!0;if(o(e)&&(s(e)||"string"==typeof e||"function"==typeof e.splice||l(e)||c(e)||i(e)))return!e.length;var a=t(e);if("[object Map]"==a||"[object Set]"==a)return!e.size;if(_(e))return!r(e).length;for(var n in e)if(d.call(e,n))return!1;return!0}},15806:function(e,a,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/consent/reporting",function(){return n(31881)}])},35287:function(e,a,n){"use strict";var r=n(24246),t=n(77181),i=n(88038),s=n.n(i);n(27378),a.Z=e=>{let{children:a,title:n,mainProps:i}=e;return(0,r.jsxs)(t.kCb,{"data-testid":n,direction:"column",height:"calc(100vh - 48px)",width:"calc(100vw - 240px)",children:[(0,r.jsxs)(s(),{children:[(0,r.jsxs)("title",{children:["Fides Admin UI - ",n]}),(0,r.jsx)("meta",{name:"description",content:"Privacy Engineering Platform"}),(0,r.jsx)("link",{rel:"icon",href:"/favicon.ico"})]}),(0,r.jsx)(t.kCb,{px:10,py:6,as:"main",overflow:"auto",direction:"column",flex:1,minWidth:0,...i,children:a})]})}},58754:function(e,a,n){"use strict";var r=n(24246),t=n(77181),i=n(70788);a.Z=e=>{let{heading:a,breadcrumbItems:n,isSticky:s=!0,children:o,rightContent:l,style:_,...c}=e;return(0,r.jsxs)("div",{...c,style:s?{position:"sticky",top:"-24px",paddingTop:"24px",paddingBottom:"24px",paddingLeft:"40px",marginLeft:"-40px",paddingRight:"40px",marginRight:"-40px",marginTop:"-24px",left:0,zIndex:20,backgroundColor:"white",..._}:{paddingBottom:"24px",..._},children:[(0,r.jsxs)(t.jqI,{justify:"space-between",children:["string"==typeof a?(0,r.jsx)(t.X6q,{className:n||o?"pb-4":void 0,fontSize:"2xl","data-testid":"page-heading",children:a}):a,l&&(0,r.jsx)("div",{"data-testid":"page-header-right-content",children:l})]}),!!n&&(0,r.jsx)(i.m,{className:o?"pb-4":void 0,items:n,"data-testid":"page-breadcrumb"}),o]})}},70788:function(e,a,n){"use strict";n.d(a,{m:function(){return _}});var r=n(24246),t=n(77181),i=n(79894),s=n.n(i),o=n(27378);let{Text:l}=t.AntTypography,_=e=>{let{items:a,...n}=e,i=(0,o.useMemo)(()=>null==a?void 0:a.map((e,n)=>{let i=n===a.length-1,o={...e},_=o.onClick&&!o.href;return("string"==typeof o.title&&(o.title=(0,r.jsx)(l,{style:{color:"inherit",maxWidth:i?void 0:400},ellipsis:!i,children:o.title})),_)?o.title=(0,r.jsx)(t.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,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("span",{className:"anticon align-text-bottom",children:o.icon}),o.title]})),o.href&&o.title&&(o.title=(0,r.jsx)(s(),{href:o.href,className:"ant-breadcrumb-link",children:o.title}),delete o.href)),o}),[a]);return(0,r.jsx)(t.zrq,{items:i,...n})}},8411:function(e,a,n){"use strict";n.d(a,{NA:function(){return i},Z8:function(){return t}});var r=n(62656);let t={[r._F.ER]:"Eritrea",[r._F.DJ]:"Djibouti",[r._F.MR]:"Mauritania",[r._F.NA]:"Namibia",[r._F.GH]:"Ghana",[r._F.SS]:"South Sudan",[r._F.SC]:"Seychelles",[r._F.IO]:"British Indian Ocean Territory",[r._F.GQ]:"Equatorial Guinea",[r._F.AO]:"Angola",[r._F.CG]:"Republic of the Congo",[r._F.BW]:"Botswana",[r._F.BI]:"Burundi",[r._F.DZ]:"Algeria",[r._F.TD]:"Chad",[r._F.NG]:"Nigeria",[r._F.TZ]:"Tanzania",[r._F.EH]:"Western Sahara",[r._F.SN]:"Senegal",[r._F.LR]:"Liberia",[r._F.ZA]:"South Africa",[r._F.CV]:"Cape Verde",[r._F.GM]:"Gambia",[r._F.SD]:"Sudan",[r._F.KM]:"Comoros",[r._F.SZ]:"Eswatini",[r._F.UG]:"Uganda",[r._F.MG]:"Madagascar",[r._F.RW]:"Rwanda",[r._F.CD]:"DR Congo",[r._F.CM]:"Cameroon",[r._F.SH]:"Saint Helena, Ascension and Tristan da Cunha",[r._F.TG]:"Togo",[r._F.MU]:"Mauritius",[r._F.NE]:"Niger",[r._F.BJ]:"Benin",[r._F.EG]:"Egypt",[r._F.LS]:"Lesotho",[r._F.ET]:"Ethiopia",[r._F.MA]:"Morocco",[r._F.YT]:"Mayotte",[r._F.BF]:"Burkina Faso",[r._F.RE]:"R\xe9union",[r._F.ST]:"S\xe3o Tom\xe9 and Pr\xedncipe",[r._F.CF]:"Central African Republic",[r._F.MZ]:"Mozambique",[r._F.MW]:"Malawi",[r._F.ML]:"Mali",[r._F.ZM]:"Zambia",[r._F.LY]:"Libya",[r._F.GW]:"Guinea-Bissau",[r._F.SO]:"Somalia",[r._F.KE]:"Kenya",[r._F.GN]:"Guinea",[r._F.ZW]:"Zimbabwe",[r._F.TN]:"Tunisia",[r._F.SL]:"Sierra Leone",[r._F.GA]:"Gabon",[r._F.CI]:"Ivory Coast",[r._F.JO]:"Jordan",[r._F.PK]:"Pakistan",[r._F.KP]:"North Korea",[r._F.MO]:"Macau",[r._F.AM]:"Armenia",[r._F.SY]:"Syria",[r._F.TJ]:"Tajikistan",[r._F.SA]:"Saudi Arabia",[r._F.KR]:"South Korea",[r._F.NP]:"Nepal",[r._F.PH]:"Philippines",[r._F.IQ]:"Iraq",[r._F.LB]:"Lebanon",[r._F.MN]:"Mongolia",[r._F.PS]:"Palestine",[r._F.YE]:"Yemen",[r._F.JP]:"Japan",[r._F.KZ]:"Kazakhstan",[r._F.LK]:"Sri Lanka",[r._F.MM]:"Myanmar",[r._F.KG]:"Kyrgyzstan",[r._F.CN]:"China",[r._F.AF]:"Afghanistan",[r._F.OM]:"Oman",[r._F.IN]:"India",[r._F.LA]:"Laos",[r._F.UZ]:"Uzbekistan",[r._F.MV]:"Maldives",[r._F.ID]:"Indonesia",[r._F.VN]:"Vietnam",[r._F.MY]:"Malaysia",[r._F.TW]:"Taiwan",[r._F.KH]:"Cambodia",[r._F.AE]:"United Arab Emirates",[r._F.HK]:"Hong Kong",[r._F.GE]:"Georgia",[r._F.BD]:"Bangladesh",[r._F.KW]:"Kuwait",[r._F.TM]:"Turkmenistan",[r._F.QA]:"Qatar",[r._F.BH]:"Bahrain",[r._F.BN]:"Brunei",[r._F.TH]:"Thailand",[r._F.BT]:"Bhutan",[r._F.SG]:"Singapore",[r._F.IL]:"Israel",[r._F.AZ]:"Azerbaijan",[r._F.TL]:"Timor-Leste",[r._F.IR]:"Iran",[r._F.TR]:"Turkey",[r._F.MK]:"North Macedonia",[r._F.IE]:"Ireland",[r._F.DK]:"Denmark",[r._F.SK]:"Slovakia",[r._F.MD]:"Moldova",[r._F.AX]:"\xc5land Islands",[r._F.PL]:"Poland",[r._F.BA]:"Bosnia and Herzegovina",[r._F.SM]:"San Marino",[r._F.CZ]:"Czechia",[r._F.EE]:"Estonia",[r._F.XK]:"Kosovo",[r._F.FO]:"Faroe Islands",[r._F.SJ]:"Svalbard and Jan Mayen",[r._F.GG]:"Guernsey",[r._F.FR]:"France",[r._F.NL]:"Netherlands",[r._F.FI]:"Finland",[r._F.PT]:"Portugal",[r._F.DE]:"Germany",[r._F.MT]:"Malta",[r._F.JE]:"Jersey",[r._F.IS]:"Iceland",[r._F.ES]:"Spain",[r._F.GI]:"Gibraltar",[r._F.NO]:"Norway",[r._F.CY]:"Cyprus",[r._F.RS]:"Serbia",[r._F.LT]:"Lithuania",[r._F.MC]:"Monaco",[r._F.LU]:"Luxembourg",[r._F.UA]:"Ukraine",[r._F.IM]:"Isle of Man",[r._F.RO]:"Romania",[r._F.BE]:"Belgium",[r._F.SE]:"Sweden",[r._F.ME]:"Montenegro",[r._F.LV]:"Latvia",[r._F.VA]:"Vatican City",[r._F.AT]:"Austria",[r._F.AL]:"Albania",[r._F.LI]:"Liechtenstein",[r._F.GR]:"Greece",[r._F.IT]:"Italy",[r._F.AD]:"Andorra",[r._F.GB]:"United Kingdom",[r._F.RU]:"Russia",[r._F.SI]:"Slovenia",[r._F.BY]:"Belarus",[r._F.CH]:"Switzerland",[r._F.HU]:"Hungary",[r._F.BG]:"Bulgaria",[r._F.HR]:"Croatia",[r._F.TC]:"Turks and Caicos Islands",[r._F.CW]:"Cura\xe7ao",[r._F.GP]:"Guadeloupe",[r._F.UM]:"United States Minor Outlying Islands",[r._F.GT]:"Guatemala",[r._F.PM]:"Saint Pierre and Miquelon",[r._F.BQ]:"Caribbean Netherlands",[r._F.GL]:"Greenland",[r._F.SX]:"Sint Maarten",[r._F.PA]:"Panama",[r._F.AW]:"Aruba",[r._F.MQ]:"Martinique",[r._F.AG]:"Antigua and Barbuda",[r._F.BM]:"Bermuda",[r._F.CU]:"Cuba",[r._F.GD]:"Grenada",[r._F.NI]:"Nicaragua",[r._F.LC]:"Saint Lucia",[r._F.KN]:"Saint Kitts and Nevis",[r._F.DO]:"Dominican Republic",[r._F.VC]:"Saint Vincent and the Grenadines",[r._F.BZ]:"Belize",[r._F.HT]:"Haiti",[r._F.JM]:"Jamaica",[r._F.BS]:"Bahamas",[r._F.MX]:"Mexico",[r._F.MF]:"Saint Martin",[r._F.SV]:"El Salvador",[r._F.BL]:"Saint Barth\xe9lemy",[r._F.AI]:"Anguilla",[r._F.MS]:"Montserrat",[r._F.VG]:"British Virgin Islands",[r._F.BB]:"Barbados",[r._F.HN]:"Honduras",[r._F.KY]:"Cayman Islands",[r._F.DM]:"Dominica",[r._F.TT]:"Trinidad and Tobago",[r._F.CR]:"Costa Rica",[r._F.SR]:"Suriname",[r._F.CX]:"Christmas Island",[r._F.WS]:"Samoa",[r._F.PF]:"French Polynesia",[r._F.AS]:"American Samoa",[r._F.NC]:"New Caledonia",[r._F.TK]:"Tokelau",[r._F.PW]:"Palau",[r._F.KI]:"Kiribati",[r._F.VU]:"Vanuatu",[r._F.PN]:"Pitcairn Islands",[r._F.CK]:"Cook Islands",[r._F.FJ]:"Fiji",[r._F.PG]:"Papua New Guinea",[r._F.MP]:"Northern Mariana Islands",[r._F.NU]:"Niue",[r._F.TV]:"Tuvalu",[r._F.NF]:"Norfolk Island",[r._F.TO]:"Tonga",[r._F.FM]:"Micronesia",[r._F.SB]:"Solomon Islands",[r._F.NR]:"Nauru",[r._F.WF]:"Wallis and Futuna",[r._F.GU]:"Guam",[r._F.AU]:"Australia",[r._F.NZ]:"New Zealand",[r._F.MH]:"Marshall Islands",[r._F.CC]:"Cocos (Keeling) Islands",[r._F.VE]:"Venezuela",[r._F.PY]:"Paraguay",[r._F.BR]:"Brazil",[r._F.CO]:"Colombia",[r._F.PE]:"Peru",[r._F.CL]:"Chile",[r._F.UY]:"Uruguay",[r._F.AR]:"Argentina",[r._F.GY]:"Guyana",[r._F.BO]:"Bolivia",[r._F.GF]:"French Guiana",[r._F.EC]:"Ecuador",[r._F.FK]:"Falkland Islands",[r._F.US_AL]:"Alabama",[r._F.US_AK]:"Alaska",[r._F.US_AZ]:"Arizona",[r._F.US_AR]:"Arkansas",[r._F.US_CA]:"California",[r._F.US_CO]:"Colorado",[r._F.US_CT]:"Connecticut",[r._F.US_DE]:"Delaware",[r._F.US_DC]:"District of Columbia (DC)",[r._F.US_FL]:"Florida",[r._F.US_GA]:"Georgia",[r._F.US_HI]:"Hawaii",[r._F.US_ID]:"Idaho",[r._F.US_IL]:"Illinois",[r._F.US_IN]:"Indiana",[r._F.US_IA]:"Iowa",[r._F.US_KS]:"Kansas",[r._F.US_KY]:"Kentucky",[r._F.US_LA]:"Louisiana",[r._F.US_ME]:"Maine",[r._F.US_MD]:"Maryland",[r._F.US_MA]:"Massachusetts",[r._F.US_MI]:"Michigan",[r._F.US_MN]:"Minnesota",[r._F.US_MS]:"Mississippi",[r._F.US_MO]:"Missouri",[r._F.US_MT]:"Montana",[r._F.US_NE]:"Nebraska",[r._F.US_NV]:"Nevada",[r._F.US_NH]:"New Hampshire",[r._F.US_NJ]:"New Jersey",[r._F.US_NM]:"New Mexico",[r._F.US_NY]:"New York",[r._F.US_NC]:"North Carolina",[r._F.US_ND]:"North Dakota",[r._F.US_OH]:"Ohio",[r._F.US_OK]:"Oklahoma",[r._F.US_OR]:"Oregon",[r._F.US_PA]:"Pennsylvania",[r._F.US_PR]:"Puerto Rico",[r._F.US_RI]:"Rhode Island",[r._F.US_SC]:"South Carolina",[r._F.US_SD]:"San Diego",[r._F.US_TN]:"Tennessee",[r._F.US_TX]:"Texas",[r._F.US_UT]:"Utah",[r._F.US_VA]:"Virginia",[r._F.US_VI]:"United States Virgin Islands",[r._F.US_VT]:"Vermon",[r._F.US_WA]:"Washington",[r._F.US_WV]:"West Virginia",[r._F.US_WI]:"Wisconsin",[r._F.US_WY]:"Wyoming",[r._F.CA_AB]:"Alberta",[r._F.CA_BC]:"British Columbia",[r._F.CA_MB]:"Manitoba",[r._F.CA_NB]:"New Brunswick",[r._F.CA_NL]:"Newfoundland and Labrador",[r._F.CA_NS]:"Nova Scotia",[r._F.CA_ON]:"Ontario",[r._F.CA_PE]:"Prince Edward Island",[r._F.CA_QC]:"Quebec",[r._F.CA_SK]:"Saskatchewan",[r._F.CA_NT]:"Northwest Territories",[r._F.CA_NU]:"Nunavut",[r._F.CA_YT]:"Yukon",[r._F.CA]:"Canada",[r._F.US]:"United States",[r._F.MEXICO_CENTRAL_AMERICA]:"Mexico and Central America",[r._F.CARIBBEAN]:"Caribbean",[r._F.EEA]:"European Economic Area (EEA)",[r._F.NON_EEA]:"Non European Economic Area"},i=new Map(Object.entries(t));Object.entries(t).map(e=>({value:e[0],label:e[1]}))},31881:function(e,a,n){"use strict";n.r(a),n.d(a,{default:function(){return K}});var r=n(24246),t=n(59003),i=n(92222),s=n(27693),o=n.n(s),l=n(77181),_=n(27378),c=n(35287),d=n(58754),u=n(14481),F=n(46628),p=n(78780);let h=e=>{var a;return null==e?void 0:null===(a=e.utc())||void 0===a?void 0:a.startOf("day").toISOString()},g=e=>{var a;return null==e?void 0:null===(a=e.utc())||void 0===a?void 0:a.endOf("day").toISOString()},{useLazyDownloadReportQuery:S,useGetAllHistoricalPrivacyPreferencesQuery:m,useLazyGetCurrentPrivacyPreferencesQuery:x}=p.u.injectEndpoints({endpoints:e=>({getCurrentPrivacyPreferences:e.query({query:e=>{let{search:a}=e;return{url:"current-privacy-preferences",params:{email:a,phone_number:a,fides_user_device_id:a,external_id:a}}},providesTags:["Current Privacy Preferences"]}),downloadReport:e.query({query:e=>{let{startDate:a,endDate:n}=e;return{url:"plus/consent_reporting",params:{created_gt:h(a),created_lt:g(n),download_csv:"true"},responseHandler:"content-type"}},providesTags:["Consent Reporting Export"]}),getAllHistoricalPrivacyPreferences:e.query({query:e=>{let{page:a,size:n,startDate:r,endDate:t}=e;return{url:"historical-privacy-preferences",params:{page:a,size:n,request_timestamp_gt:h(r),request_timestamp_lt:g(t)}}},providesTags:["Consent Reporting"]})})});var C=n(90104),f=n.n(C),j=n(812),v=n(62656);let y={[v.pq.OPT_IN]:"Opt in",[v.pq.OPT_OUT]:"Opt out",[v.pq.ACKNOWLEDGE]:"Acknowledge",[v.pq.TCF]:"TCF"},b={[v.pq.OPT_IN]:"success",[v.pq.OPT_OUT]:"error",[v.pq.ACKNOWLEDGE]:"default",[v.pq.TCF]:"sandstone"},A={[v.jP.ACCEPT]:"Accept",[v.jP.BUTTON]:"Button",[v.jP.DISMISS]:"Dismiss",[v.jP.GPC]:"GPC",[v.jP.REJECT]:"Reject",[v.jP.SAVE]:"Save",[v.jP.SCRIPT]:"Script",[v.jP.INDIVIDUAL_NOTICE]:"Individual Notice",[v.jP.ACKNOWLEDGE]:"Acknowledge"},N={[v.Tz.API]:"API",[v.Tz.BANNER_AND_MODAL]:"Banner and Modal",[v.Tz.MODAL]:"Modal",[v.Tz.OVERLAY]:"Overlay",[v.Tz.PRIVACY_CENTER]:"Privacy Center",[v.Tz.TCF_OVERLAY]:"TCF Overlay"},M=(0,i.Cl)();var P=()=>(0,_.useMemo)(()=>[M.accessor(e=>e.notice_name,{id:"notice_name",cell:e=>{let{getValue:a}=e;return(0,r.jsx)(u.G3,{value:a()})},header:e=>(0,r.jsx)(u.Rr,{value:"Privacy notice",...e}),enableSorting:!1}),M.accessor(e=>e.notice_key,{id:"notice_key",cell:e=>{let{getValue:a}=e;return(0,r.jsx)(u.G3,{value:a()})},header:e=>(0,r.jsx)(u.Rr,{value:"Notice Key",...e}),enableSorting:!1}),M.accessor(e=>e.preference,{id:"preference",cell:e=>{let{getValue:a}=e,n=a(),t=n&&y[n]||n,i=n&&b[n]||"";return(0,r.jsx)(u.A4,{color:i,value:t})},header:e=>(0,r.jsx)(u.Rr,{value:"Preference",...e}),enableSorting:!1,size:100}),M.accessor(e=>e.privacy_notice_history_id,{id:"privacy_notice_history_id",cell:e=>{let{getValue:a}=e;return(0,r.jsx)(u.G3,{value:a()})},header:e=>(0,r.jsx)(u.Rr,{value:"Privacy Notice History Id",...e}),enableSorting:!1})],[]),I=n(47003),T=n.n(I);let E=(0,i.Cl)();var R=()=>{let e=(0,_.useCallback)(e=>{let a=[];if(e){let{preferences:n,...r}=e;T()(r,(e,n)=>{e&&e.forEach(e=>{a.push({key:n,id:e.id,preference:e.preference})})})}return a},[]),a=(0,_.useCallback)(e=>e.filter(e=>!(e.key.startsWith("system_")||e.key.startsWith("vendor_"))),[]);return{tcfColumns:(0,_.useMemo)(()=>[E.accessor(e=>e.key,{id:"key",cell:e=>{let{getValue:a}=e;return(0,r.jsx)(u.G3,{value:a()})},header:e=>(0,r.jsx)(u.Rr,{value:"Type",...e}),enableSorting:!1}),E.accessor(e=>e.id,{id:"id",cell:e=>{let{getValue:a}=e;return(0,r.jsx)(u.G3,{value:a()})},header:e=>(0,r.jsx)(u.Rr,{value:"ID",...e}),enableSorting:!1}),E.accessor(e=>e.preference,{id:"preference",cell:e=>{let{getValue:a}=e,n=a(),t=n&&y[n]||n,i=n&&b[n]||"";return(0,r.jsx)(u.A4,{color:i,value:t})},header:e=>(0,r.jsx)(u.Rr,{value:"Preference",...e}),enableSorting:!1,size:100})],[]),mapTcfPreferencesToRowColumns:e,filterTcfConsentPreferences:a}},U=e=>{let{isOpen:a,onClose:n}=e,[s,o]=(0,_.useState)(!1),[c,d]=(0,_.useState)(),[F]=x(),p=(0,l.pmc)();(0,_.useEffect)(()=>{a||(d(void 0),o(!1))},[a]);let h=async e=>{o(!0);let{data:a,isError:n,error:r}=await F({search:e}),t=r&&"status"in r&&(null==r?void 0:r.status);n&&404!==t?p({status:"error",description:(0,j.e$)(r,"A problem occurred while looking up the preferences.")}):d(a||null),o(!1)},g=P(),S=(null==c?void 0:c.preferences)||[],m=!f()(S),C=(0,t.b7)({getCoreRowModel:(0,i.sC)(),data:S,columns:g,getRowId:e=>"".concat(e.privacy_notice_history_id),manualPagination:!0}),{tcfColumns:v,mapTcfPreferencesToRowColumns:y,filterTcfConsentPreferences:b}=R(),A=b(y(c)),N=!f()(A),M=(0,t.b7)({getCoreRowModel:(0,i.sC)(),data:A,columns:v,getRowId:e=>"".concat(e.key,"-").concat(e.id),manualPagination:!0});return(0,r.jsxs)(l.u_l,{id:"consent-lookup-modal",isOpen:a,onClose:n,size:"6xl",returnFocusOnClose:!1,isCentered:!0,children:[(0,r.jsx)(l.ZAr,{}),(0,r.jsxs)(l.hzk,{children:[(0,r.jsx)(l.olH,{}),(0,r.jsx)(l.xBx,{pb:2,children:"Consent preference lookup"}),(0,r.jsxs)(l.fef,{children:[(0,r.jsx)(l.AntTypography.Paragraph,{children:"Use this search to look up an individual's latest consent record. You can search by phone number, email, external ID or device ID to retrieve the most recent consent preference associated with that exact identifier."}),(0,r.jsxs)(l.AntTypography.Paragraph,{children:[(0,r.jsx)("strong",{children:"Note:"})," This is an exact match search—partial entries or similar results will not be returned. This lookup retrieves only the most recent consent preference, not the full consent history."]}),(0,r.jsx)(l.PPS,{layout:"vertical",className:"w-1/2",children:(0,r.jsx)(l.PPS.Item,{label:"Subject search",className:"mb-4 mt-6",children:(0,r.jsx)(l.uFc.Search,{"data-testid":"subject-search-input",placeholder:"Enter email, phone number, external ID or device ID",enterButton:"Search",onSearch:h,loading:s})})}),(0,r.jsxs)("div",{className:"mb-4",children:[(!N||m)&&(0,r.jsx)(u.ZK,{tableInstance:C,emptyTableNotice:(0,r.jsx)(l.oj8,{description:void 0===c?"Search for an email, phone number, or device ID.":"No results found.",image:l.oj8.PRESENTED_IMAGE_SIMPLE,imageStyle:{marginBottom:15}})}),N&&(0,r.jsx)("div",{className:"mt-4",children:(0,r.jsx)(u.ZK,{tableInstance:M})})]})]})]})]})},w=()=>{let e=(0,l.pmc)(),[a,{isFetching:n}]=S();return{downloadReport:async n=>{let{startDate:r,endDate:t}=n,i=await a({startDate:r,endDate:t});if(i.isError)e({status:"error",description:(0,j.e$)(i.error,"A problem occurred while generating your consent report. Please try again.")});else{let e=document.createElement("a"),a=new Blob([i.data],{type:"text/csv"});e.href=window.URL.createObjectURL(a),e.download="consent-reports.csv",e.click()}},isDownloadingReport:n}},k=e=>{let{isOpen:a,onClose:n,startDate:t,endDate:i}=e,{downloadReport:s,isDownloadingReport:o}=w(),_=async()=>{await s({startDate:t,endDate:i}),n()};return(0,r.jsxs)(l.u_l,{id:"consent-report-download-modal",isOpen:a,onClose:n,size:"xl",returnFocusOnClose:!1,isCentered:!0,children:[(0,r.jsx)(l.ZAr,{}),(0,r.jsxs)(l.hzk,{children:[(0,r.jsx)(l.olH,{}),(0,r.jsx)(l.xBx,{pb:2,children:"Download consent report"}),(0,r.jsxs)(l.fef,{children:[(0,r.jsx)(l.AntTypography.Paragraph,{children:"The downloaded CSV may differ from the UI in Fides, including column order and naming."}),(0,r.jsx)(l.AntTypography.Paragraph,{children:'For large datasets, file generation may take a few minutes after selecting "Download".'}),(0,r.jsx)(l.jqI,{justify:"flex-end",children:(0,r.jsx)(l.wpx,{loading:o,onClick:_,"data-testid":"download-report-btn",type:"primary",className:"mb-2",children:"Download"})})]})]})]})},G=e=>{let{isOpen:a,onClose:n,tcfPreferences:s}=e,{tcfColumns:o,mapTcfPreferencesToRowColumns:_,filterTcfConsentPreferences:c}=R(),d=c(_(s)),F=(0,t.b7)({getCoreRowModel:(0,i.sC)(),data:d||[],columns:o,getRowId:e=>"".concat(e.key,"-").concat(e.id),manualPagination:!0});return(0,r.jsxs)(l.u_l,{id:"consent-lookup-modal",isOpen:a,onClose:n,size:"4xl",returnFocusOnClose:!1,isCentered:!0,children:[(0,r.jsx)(l.ZAr,{}),(0,r.jsxs)(l.hzk,{"data-testid":"consent-tcf-detail-modal",children:[(0,r.jsx)(l.olH,{}),(0,r.jsx)(l.xBx,{pb:2,children:"TCF Consent Details"}),(0,r.jsx)(l.fef,{children:(0,r.jsx)("div",{className:"mb-4",children:(0,r.jsx)(u.ZK,{tableInstance:F,emptyTableNotice:(0,r.jsx)(l.oj8,{description:" No data found",image:l.oj8.PRESENTED_IMAGE_SIMPLE,imageStyle:{marginBottom:15}})})})})]})]})},B=n(8411),O=n(72625);let D=(0,i.Cl)();var L=e=>{let{onTcfDetailViewClick:a}=e;return(0,_.useMemo)(()=>[D.accessor(e=>e.fides_user_device_id,{id:"fides_user_device_id",cell:e=>{let{getValue:a}=e;return(0,r.jsx)(u.G3,{value:a()})},header:e=>(0,r.jsx)(u.Rr,{value:"User device ID",...e}),enableSorting:!1}),D.accessor(e=>e.user_geography,{id:"user_geography",cell:e=>{let{getValue:a}=e,n=a(),t=n&&B.Z8[n]||n;return(0,r.jsx)(u.G3,{value:t})},header:e=>(0,r.jsx)(u.Rr,{value:"User geography",...e}),enableSorting:!1}),D.accessor(e=>e.preference,{id:"preference",cell:e=>{let{getValue:n,row:t}=e,i=n(),s=i&&y[i]||i,o=i&&b[i]||"",_="tcf"===i&&t.original.tcf_preferences;return(0,r.jsx)(l.jqI,{align:"center",children:(0,r.jsx)(u.A4,{color:o,value:s,onClick:_?()=>a(t.original.tcf_preferences):void 0})})},header:e=>(0,r.jsx)(u.Rr,{value:"Preference",...e}),enableSorting:!1,size:100}),D.accessor(e=>e.notice_name,{id:"notice_name",cell:e=>{let{getValue:a}=e,n=a(),t="tcf"===n?n.toUpperCase():n;return(0,r.jsx)(u.G3,{value:t})},header:e=>(0,r.jsx)(u.Rr,{value:"Privacy notice",...e}),enableSorting:!1}),D.accessor(e=>e.method,{id:"method",cell:e=>{let{getValue:a}=e,n=a(),t=n&&A[n]||n;return(0,r.jsx)(u.G3,{value:t})},header:e=>(0,r.jsx)(u.Rr,{value:"Method",...e}),enableSorting:!1,size:100}),D.accessor(e=>e.request_origin,{id:"request_origin",cell:e=>{let{getValue:a}=e,n=a(),t=n&&N[n]||n;return(0,r.jsx)(u.G3,{value:t})},header:e=>(0,r.jsx)(u.Rr,{value:"Request origin",...e}),enableSorting:!1,size:120}),D.accessor(e=>e.request_timestamp,{id:"request_timestamp",cell:e=>{let{getValue:a}=e;return(0,r.jsx)(O.Cy,{time:a()})},header:e=>(0,r.jsx)(u.Rr,{value:"Request timestamp",...e}),size:120}),D.accessor(e=>e.external_id,{id:"external_id",cell:e=>{let{getValue:a}=e;return(0,r.jsx)(u.G3,{value:a()})},header:e=>(0,r.jsx)(u.Rr,{value:"External ID",...e}),enableSorting:!1}),D.accessor(e=>e.email,{id:"email",cell:e=>{let{getValue:a}=e;return(0,r.jsx)(u.G3,{value:(0,r.jsx)(l.AntTypography.Link,{href:"mailto:".concat(a()),children:a()})})},header:e=>(0,r.jsx)(u.Rr,{value:"Email",...e}),enableSorting:!1}),D.accessor(e=>e.id,{id:"id",cell:e=>{let{getValue:a}=e;return(0,r.jsx)(u.G3,{value:a()})},header:e=>(0,r.jsx)(u.Rr,{value:"Preference ID",...e}),enableSorting:!1})],[a])},K=()=>{let e=(0,u.oi)(),a=(0,_.useMemo)(()=>o()(),[]),[n,s]=(0,_.useState)(null),[p,h]=(0,_.useState)(null),[g,S]=(0,_.useState)(!1),[x,C]=(0,_.useState)(!1),[f,j]=(0,_.useState)(!1),[v,y]=(0,_.useState)(),b=(0,l.pmc)(),{data:A,isLoading:N,isFetching:M,refetch:P}=m({page:e.pageIndex,size:e.pageSize,startDate:n,endDate:p}),{setTotalPages:I}=e,{items:T,total:E}=(0,_.useMemo)(()=>{let e=A||{items:[],total:0,pages:0};return I(e.pages),e},[A,I]),R=L({onTcfDetailViewClick:e=>{j(!0),y(e)}}),w=(0,t.b7)({getCoreRowModel:(0,i.sC)(),data:T,columns:R,getRowId:e=>"".concat(e.id),manualPagination:!0}),B=async()=>{e.resetPageIndexToDefault(),await P(),b((0,F.t5)("Consent report refreshed successfully.","Report Refreshed"))};return(0,r.jsxs)(c.Z,{title:"Consent reporting",children:[(0,r.jsx)(d.Z,{heading:"Consent reporting",rightContent:(0,r.jsx)(l.wpx,{type:"primary",onClick:B,loading:M,children:"Refresh"})}),(0,r.jsx)("div",{"data-testid":"consent-reporting",className:"overflow-auto",children:N?(0,r.jsx)("div",{className:"border p-2",children:(0,r.jsx)(u.I4,{rowHeight:26,numRows:10})}):(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)(u.Q$,{children:[(0,r.jsx)(l.gwi,{placeholder:["From","To"],maxDate:a,"data-testid":"input-date-range",onChange:e=>{s(e&&e[0]),h(e&&e[1])}}),(0,r.jsxs)(l.jqI,{gap:12,children:[(0,r.jsx)(l.wpx,{icon:(0,r.jsx)(l.PJP.UWx,{}),"data-testid":"download-btn",onClick:()=>C(!0)}),(0,r.jsx)(l.S0p,{menu:{items:[{key:"1",label:(0,r.jsx)("span",{"data-testid":"consent-preference-lookup-btn",children:"Consent preference lookup"}),onClick:()=>S(!0)}]},overlayStyle:{width:"220px"},trigger:["click"],children:(0,r.jsx)(l.wpx,{icon:(0,r.jsx)(l.PJP.r43,{}),"data-testid":"consent-reporting-dropdown-btn"})})]})]}),(0,r.jsx)(u.ZK,{tableInstance:w,emptyTableNotice:(0,r.jsx)(l.oj8,{description:"No results.",image:l.oj8.PRESENTED_IMAGE_SIMPLE,imageStyle:{marginBottom:15}})}),(0,r.jsx)(u.s8,{totalRows:E||0,pageSizes:u.W3,setPageSize:e.setPageSize,onPreviousPageClick:e.onPreviousPageClick,isPreviousPageDisabled:e.isPreviousPageDisabled||M,onNextPageClick:e.onNextPageClick,isNextPageDisabled:e.isNextPageDisabled||M,startRange:e.startRange,endRange:e.endRange})]})}),(0,r.jsx)(U,{isOpen:g,onClose:()=>S(!1)}),(0,r.jsx)(k,{isOpen:x,onClose:()=>C(!1),startDate:n,endDate:p}),(0,r.jsx)(G,{isOpen:f,onClose:()=>{j(!1),y(void 0)},tcfPreferences:v})]})}}},function(e){e.O(0,[8033,6060,2858,4481,2888,9774,179],function(){return e(e.s=15806)}),_N_E=e.O()}]);
|
@@ -1 +1 @@
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9851],{66393:function(e,n,s){(window.__NEXT_P=window.__NEXT_P||[]).push(["/consent",function(){return s(78220)}])},77213:function(e,n,s){"use strict";s.d(n,{Z:function(){return f}});var t=s(24246),i=s(
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9851],{66393:function(e,n,s){(window.__NEXT_P=window.__NEXT_P||[]).push(["/consent",function(){return s(78220)}])},77213:function(e,n,s){"use strict";s.d(n,{Z:function(){return f}});var t=s(24246),i=s(77181),r=s(88038),o=s.n(r),u=s(86677);s(27378);var c=s(25980),a=s(90867),l=s(77830),d=()=>{let e=(0,u.useRouter)();return(0,t.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,t.jsxs)(i.xuv,{children:[(0,t.jsxs)(i.Kqy,{direction:{base:"column",sm:"row"},justifyContent:"space-between",children:[(0,t.jsx)(i.xvT,{fontWeight:"semibold",children:"Configure your storage and messaging provider"}),(0,t.jsx)(i.wpx,{onClick:()=>{e.push(l.fz)},children:"Configure"})]}),(0,t.jsxs)(i.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:n,title:s,padded:r=!0,mainProps:l}=e,f=(0,c.hz)(),h=(0,u.useRouter)(),p="/privacy-requests"===h.pathname||"/datastore-connection"===h.pathname,x=!(f.flags.privacyRequestsConfiguration&&p),{data:j}=(0,a.JE)(void 0,{skip:x}),{data:m}=(0,a.PW)(void 0,{skip:x}),v=f.flags.privacyRequestsConfiguration&&(!j||!m)&&p;return(0,t.jsxs)(i.kCb,{"data-testid":s,direction:"column",h:"100vh",children:[(0,t.jsxs)(o(),{children:[(0,t.jsxs)("title",{children:["Fides Admin UI - ",s]}),(0,t.jsx)("meta",{name:"description",content:"Privacy Engineering Platform"}),(0,t.jsx)("link",{rel:"icon",href:"/favicon.ico"})]}),(0,t.jsxs)(i.kCb,{as:"main",direction:"column",py:r?6:0,px:r?10:0,h:r?"calc(100% - 48px)":"full",flex:1,minWidth:0,overflow:"auto",...l,children:[v?(0,t.jsx)(d,{}):null,n]})]})}},78220:function(e,n,s){"use strict";s.r(n);var t=s(24246),i=s(77181),r=s(86677),o=s(27378),u=s(77213),c=s(77830);n.default=()=>{let e=(0,r.useRouter)();return(0,o.useEffect)(()=>{e.push(c.IT)},[e]),(0,t.jsx)(u.Z,{title:"Consent",children:(0,t.jsx)(i.M5Y,{children:(0,t.jsx)(i.$jN,{})})})}}},function(e){e.O(0,[2888,9774,179],function(){return e(e.s=66393)}),_N_E=e.O()}]);
|
@@ -1 +1 @@
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7818],{50481:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/data-catalog/[systemId]/projects/[projectUrn]",function(){return n(32065)}])},94780:function(e,t,n){"use strict";n.d(t,{X5:function(){return i},pN:function(){return r},sv:function(){return s}});var o=n(24246),a=n(
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7818],{50481:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/data-catalog/[systemId]/projects/[projectUrn]",function(){return n(32065)}])},94780:function(e,t,n){"use strict";n.d(t,{X5:function(){return i},pN:function(){return r},sv:function(){return s}});var o=n(24246),a=n(77181);let s=e=>e.split(".")[1],c=[(0,o.jsx)(a.PJP.S9g,{},"layers"),(0,o.jsx)(a.PJP.iA_,{},"table"),(0,o.jsx)(a.PJP.$4y,{style:{transform:"rotate(-90deg)"}},"field")],i=(e,t)=>{if(!e)return[];let n=e.split(".");if(n.length<2)return[];let i=n.splice(0,2).join("."),r=[];return n.reduce((e,o,a)=>{let s=a===n.length-1,l="".concat(e).concat(".").concat(o);return r.push({title:o,href:s?void 0:"".concat(t,"/").concat(i,"/").concat(l),icon:c[a]}),l},i),[{title:s(i),href:"".concat(t,"/").concat(i),icon:(0,o.jsx)(a.PJP.ehp,{})},...r]},r=(e,t)=>{if(!e)return[];let n=e.split(".");if(n.length<2)return[];let o=n.shift(),a=[];return n.reduce((e,o,s)=>{let i=s===n.length-1,r="".concat(e).concat(".").concat(o);return a.push({title:o,href:i?void 0:"".concat(t,"/").concat(r),icon:c[s]}),r},o),a}},32065:function(e,t,n){"use strict";n.r(t);var o=n(24246),a=n(59003),s=n(92222),c=n(77181),i=n(86677),r=n(27378),l=n(77213),u=n(77830),d=n(58754),g=n(14481),f=n(98800),p=n(81406),h=n(69172),P=n(94780),j=n(70675),m=n(1315);let x={items:[],total:0,page:1,size:50,pages:1};t.default=()=>{let{query:e,push:t}=(0,i.useRouter)(),n=e.systemId,_=e.projectUrn,[w,v]=(0,r.useState)(void 0),{data:b,isLoading:C}=(0,m.rn)(n),{PAGE_SIZES:R,pageSize:N,setPageSize:k,onPreviousPageClick:y,isPreviousPageDisabled:E,onNextPageClick:z,isNextPageDisabled:X,startRange:Z,endRange:D,pageIndex:I,setTotalPages:J}=(0,g.oi)(),{isFetching:M,isLoading:S,data:T}=(0,j.z8)({staged_resource_urn:_,page:I,size:N}),{items:A,total:O,pages:U}=(0,r.useMemo)(()=>null!=T?T:x,[T]);(0,r.useEffect)(()=>{J(U)},[U,J]);let q=(0,h.Z)({onDetailClick:e=>v(e)}),F=(0,a.b7)({getCoreRowModel:(0,s.sC)(),getGroupedRowModel:(0,s.qe)(),getExpandedRowModel:(0,s.rV)(),columns:q,manualPagination:!0,data:A,columnResizeMode:"onChange"}),G=!S&&!C&&!M;return(0,o.jsxs)(l.Z,{title:"Data catalog",children:[(0,o.jsx)(d.Z,{heading:"Data catalog",breadcrumbItems:[{title:"All systems",href:u.mX},{title:(null==b?void 0:b.name)||n,href:u.mX},{title:(0,P.sv)(_),icon:(0,o.jsx)(c.PJP.ehp,{})}]}),!G&&(0,o.jsx)(g.I4,{rowHeight:36,numRows:36}),G&&(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(g.ZK,{tableInstance:F,emptyTableNotice:(0,o.jsx)(p.Z,{}),onRowClick:e=>t("".concat(u.mX,"/").concat(n,"/projects/").concat(_,"/").concat(e.urn,"/"))}),(0,o.jsx)(g.s8,{totalRows:O||0,pageSizes:R,setPageSize:k,onPreviousPageClick:y,isPreviousPageDisabled:E,onNextPageClick:z,isNextPageDisabled:X,startRange:Z,endRange:D}),(0,o.jsx)(f.Z,{dataset:w,onClose:()=>v(void 0)})]})]})}}},function(e){e.O(0,[8033,6060,4481,3872,2888,9774,179],function(){return e(e.s=50481)}),_N_E=e.O()}]);
|
@@ -1 +1 @@
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[165],{21865:function(e,t,a){(window.__NEXT_P=window.__NEXT_P||[]).push(["/data-catalog/[systemId]/projects",function(){return a(98791)}])},79609:function(e,t,a){"use strict";a.d(t,{N4:function(){return n},UG:function(){return o},xw:function(){return i}});var s=a(54427);let{useGetCatalogSystemsQuery:o,useGetCatalogProjectsQuery:i,useGetCatalogDatasetsQuery:n}=a(78780).u.injectEndpoints({endpoints:e=>({getCatalogSystems:e.query({query:e=>({method:"GET",url:"/plus/data-catalog/system",params:e}),providesTags:["Catalog Systems","System"]}),getCatalogProjects:e.query({query:e=>{let{...t}=e;return{method:"GET",url:"/plus/data-catalog/project",params:t}},providesTags:["Discovery Monitor Results"]}),getCatalogDatasets:e.query({query:e=>{let{...t}=e;return{method:"GET",url:"/plus/data-catalog/dataset",params:t}},providesTags:["Discovery Monitor Results"]})})});(0,s.oM)({name:"dataCatalog",initialState:{page:1,pageSize:50},reducers:{}})},98791:function(e,t,a){"use strict";a.r(t),a.d(t,{default:function(){return S}});var s=a(24246),o=a(86677),i=a(18225),n=a(77213),r=a(77830),l=a(58754),u=a(92222),d=a(59003),c=a(
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[165],{21865:function(e,t,a){(window.__NEXT_P=window.__NEXT_P||[]).push(["/data-catalog/[systemId]/projects",function(){return a(98791)}])},79609:function(e,t,a){"use strict";a.d(t,{N4:function(){return n},UG:function(){return o},xw:function(){return i}});var s=a(54427);let{useGetCatalogSystemsQuery:o,useGetCatalogProjectsQuery:i,useGetCatalogDatasetsQuery:n}=a(78780).u.injectEndpoints({endpoints:e=>({getCatalogSystems:e.query({query:e=>({method:"GET",url:"/plus/data-catalog/system",params:e}),providesTags:["Catalog Systems","System"]}),getCatalogProjects:e.query({query:e=>{let{...t}=e;return{method:"GET",url:"/plus/data-catalog/project",params:t}},providesTags:["Discovery Monitor Results"]}),getCatalogDatasets:e.query({query:e=>{let{...t}=e;return{method:"GET",url:"/plus/data-catalog/dataset",params:t}},providesTags:["Discovery Monitor Results"]})})});(0,s.oM)({name:"dataCatalog",initialState:{page:1,pageSize:50},reducers:{}})},98791:function(e,t,a){"use strict";a.r(t),a.d(t,{default:function(){return S}});var s=a(24246),o=a(86677),i=a(18225),n=a(77213),r=a(77830),l=a(58754),u=a(92222),d=a(59003),c=a(77181),g=a(27378),m=a(14481),p=a(72625),f=a(89200),x=a(5945),h=a(79609),j=a(99763),y=a(28976),C=a(8151);let w={items:[],total:0,page:1,size:50,pages:1},_=()=>(0,s.jsx)(c.gCW,{mt:6,p:10,spacing:4,borderRadius:"base",maxW:"70%","data-testid":"empty-state",alignSelf:"center",margin:"auto",children:(0,s.jsx)(c.gCW,{children:(0,s.jsx)(c.xvT,{fontSize:"md",fontWeight:"600",children:"No resources found"})})}),v=(0,u.Cl)();var R=e=>{let{systemKey:t,monitorConfigIds:a}=e,[i,n]=(0,g.useState)({}),{PAGE_SIZES:l,pageSize:c,setPageSize:R,onPreviousPageClick:b,isPreviousPageDisabled:S,onNextPageClick:P,isNextPageDisabled:E,startRange:k,endRange:D,pageIndex:N,setTotalPages:T}=(0,m.oi)(),{isFetching:M,isLoading:z,data:I}=(0,h.xw)({page:N,size:c,monitor_config_ids:a}),Z=(0,o.useRouter)(),{items:q,total:G,pages:V}=(0,g.useMemo)(()=>null!=I?I:w,[I]);(0,g.useEffect)(()=>{T(V)},[V,T]);let[W,X]=(0,g.useState)(void 0),U=(0,g.useMemo)(()=>[v.accessor(e=>e.name,{id:"name",cell:e=>(0,s.jsx)(f.Z,{resource:e.row.original}),header:"Project"}),v.display({id:"status",cell:e=>{let{row:t}=e;return(0,s.jsx)(x.Z,{status:(0,C.u)(t.original)})},header:"Status"}),v.accessor(e=>e.monitor_config_id,{id:"monitorConfigId",cell:e=>(0,s.jsx)(m.G3,{value:e.getValue()}),header:"Detected by"}),v.accessor(e=>e.description,{id:"description",cell:e=>(0,s.jsx)(m.G3,{value:e.getValue()}),header:"Description"}),v.accessor(e=>e.updated_at,{id:"lastUpdated",cell:e=>(0,s.jsx)(p.Cy,{time:e.getValue()}),header:"Updated",meta:{cellProps:{borderRight:"none"}}}),v.display({id:"actions",cell:e=>{let{row:t}=e;return(0,s.jsx)(y.Z,{onDetailClick:()=>X(t.original)})},size:25,meta:{disableRowClick:!0}})],[]),K=(0,d.b7)({getCoreRowModel:(0,u.sC)(),getGroupedRowModel:(0,u.qe)(),getExpandedRowModel:(0,u.rV)(),manualPagination:!0,columnResizeMode:"onChange",columns:U,data:q,getRowId:e=>e.urn,onRowSelectionChange:n,state:{rowSelection:i}});return z||M?(0,s.jsx)(m.I4,{rowHeight:36,numRows:36}):(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(m.ZK,{tableInstance:K,emptyTableNotice:(0,s.jsx)(_,{}),onRowClick:e=>Z.push("".concat(r.mX,"/").concat(t,"/projects/").concat(e.urn))}),(0,s.jsx)(m.s8,{totalRows:G||0,pageSizes:l,setPageSize:R,onPreviousPageClick:b,isPreviousPageDisabled:S,onNextPageClick:P,isNextPageDisabled:E,startRange:k,endRange:D}),(0,s.jsx)(j.Z,{resource:W,onClose:()=>X(void 0)})]})},b=a(1315),S=()=>{var e;let{query:t}=(0,o.useRouter)(),a=t.systemId,u=t.monitor_config_ids,{data:d,isLoading:c}=(0,b.rn)(a);return c?(0,s.jsx)(i.Z,{}):(0,s.jsxs)(n.Z,{title:"Data catalog",children:[(0,s.jsx)(l.Z,{heading:"Data catalog",breadcrumbItems:[{title:"All systems",href:r.mX},{title:null!==(e=null==d?void 0:d.name)&&void 0!==e?e:null==d?void 0:d.fides_key}]}),(0,s.jsx)(R,{systemKey:a,monitorConfigIds:u})]})}}},function(e){e.O(0,[8033,6060,2858,2866,9278,4481,6372,7751,2888,9774,179],function(){return e(e.s=21865)}),_N_E=e.O()}]);
|
@@ -0,0 +1 @@
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4231],{95372:function(e){e.exports=function(e,t,a,s){for(var i=e.length,n=a+(s?1:-1);s?n--:++n<i;)if(t(e[n],n,e))return n;return -1}},74833:function(e,t,a){var s=a(56127),i=/^\s+/;e.exports=function(e){return e?e.slice(0,s(e)+1).replace(i,""):e}},56632:function(e,t,a){var s=a(89278),i=a(80068),n=a(50098);e.exports=function(e){return function(t,a,r){var l=Object(t);if(!i(t)){var o=s(a,3);t=n(t),a=function(e){return o(l[e],e,l)}}var d=e(t,a,r);return d>-1?l[o?t[d]:d]:void 0}}},56127:function(e){var t=/\s/;e.exports=function(e){for(var a=e.length;a--&&t.test(e.charAt(a)););return a}},64925:function(e,t,a){var s=a(56632)(a(66259));e.exports=s},66259:function(e,t,a){var s=a(95372),i=a(89278),n=a(47991),r=Math.max;e.exports=function(e,t,a){var l=null==e?0:e.length;if(!l)return -1;var o=null==a?0:n(a);return o<0&&(o=r(l+o,0)),s(e,i(t,3),o)}},94919:function(e,t,a){var s=a(91936),i=1/0;e.exports=function(e){return e?(e=s(e))===i||e===-i?(e<0?-1:1)*17976931348623157e292:e==e?e:0:0===e?e:0}},47991:function(e,t,a){var s=a(94919);e.exports=function(e){var t=s(e),a=t%1;return t==t?a?t-a:t:0}},91936:function(e,t,a){var s=a(74833),i=a(11611),n=a(55193),r=0/0,l=/^[-+]0x[0-9a-f]+$/i,o=/^0b[01]+$/i,d=/^0o[0-7]+$/i,c=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(n(e))return r;if(i(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=i(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=s(e);var a=o.test(e);return a||d.test(e)?c(e.slice(2),a?2:8):l.test(e)?r:+e}},66248:function(e,t,a){(window.__NEXT_P=window.__NEXT_P||[]).push(["/data-catalog",function(){return a(99188)}])},77213:function(e,t,a){"use strict";a.d(t,{Z:function(){return p}});var s=a(24246),i=a(77181),n=a(88038),r=a.n(n),l=a(86677);a(27378);var o=a(25980),d=a(90867),c=a(77830),u=()=>{let e=(0,l.useRouter)();return(0,s.jsx)(i.xuv,{bg:"gray.50",border:"1px solid",borderColor:"blue.400",borderRadius:"md",justifyContent:"space-between",p:5,mb:5,mt:5,children:(0,s.jsxs)(i.xuv,{children:[(0,s.jsxs)(i.Kqy,{direction:{base:"column",sm:"row"},justifyContent:"space-between",children:[(0,s.jsx)(i.xvT,{fontWeight:"semibold",children:"Configure your storage and messaging provider"}),(0,s.jsx)(i.wpx,{onClick:()=>{e.push(c.fz)},children:"Configure"})]}),(0,s.jsxs)(i.xvT,{children:["Before Fides can process your privacy requests we need two simple steps to configure your storage and email client."," "]})]})})},p=e=>{let{children:t,title:a,padded:n=!0,mainProps:c}=e,p=(0,o.hz)(),m=(0,l.useRouter)(),x="/privacy-requests"===m.pathname||"/datastore-connection"===m.pathname,f=!(p.flags.privacyRequestsConfiguration&&x),{data:h}=(0,d.JE)(void 0,{skip:f}),{data:v}=(0,d.PW)(void 0,{skip:f}),g=p.flags.privacyRequestsConfiguration&&(!h||!v)&&x;return(0,s.jsxs)(i.kCb,{"data-testid":a,direction:"column",h:"100vh",children:[(0,s.jsxs)(r(),{children:[(0,s.jsxs)("title",{children:["Fides Admin UI - ",a]}),(0,s.jsx)("meta",{name:"description",content:"Privacy Engineering Platform"}),(0,s.jsx)("link",{rel:"icon",href:"/favicon.ico"})]}),(0,s.jsxs)(i.kCb,{as:"main",direction:"column",py:n?6:0,px:n?10:0,h:n?"calc(100% - 48px)":"full",flex:1,minWidth:0,overflow:"auto",...c,children:[g?(0,s.jsx)(u,{}):null,t]})]})}},58754:function(e,t,a){"use strict";var s=a(24246),i=a(77181),n=a(70788);t.Z=e=>{let{heading:t,breadcrumbItems:a,isSticky:r=!0,children:l,rightContent:o,style:d,...c}=e;return(0,s.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,s.jsxs)(i.jqI,{justify:"space-between",children:["string"==typeof t?(0,s.jsx)(i.X6q,{className:a||l?"pb-4":void 0,fontSize:"2xl","data-testid":"page-heading",children:t}):t,o&&(0,s.jsx)("div",{"data-testid":"page-header-right-content",children:o})]}),!!a&&(0,s.jsx)(n.m,{className:l?"pb-4":void 0,items:a,"data-testid":"page-breadcrumb"}),l]})}},79789:function(e,t,a){"use strict";a.d(t,{Hn:function(){return l},XU:function(){return r},Z5:function(){return o},aG:function(){return u},cB:function(){return n},hX:function(){return c},vQ:function(){return d}});var s=a(24246),i=a(77181);let n=e=>{let{text:t,...a}=e;return(0,s.jsx)(i.X6q,{fontSize:"sm",mt:4,mb:1,...a,children:t})},r=e=>{let{children:t}=e;return(0,s.jsx)(i.xvT,{fontSize:"14px",mb:4,children:t})},l=e=>{let{children:t,href:a}=e;return(0,s.jsx)(i.rUS,{href:a,textDecoration:"underline",isExternal:!0,children:t})},o=e=>{let{children:t}=e;return(0,s.jsx)(i.QI$,{fontSize:"14px",mb:4,children:t})},d=e=>{let{children:t}=e;return(0,s.jsx)(i.GSI,{fontSize:"14px",mb:4,ml:6,children:t})},c=e=>{let{children:t}=e;return(0,s.jsx)(i.EKh,{display:"block",whiteSpace:"pre",p:4,mb:4,overflowX:"scroll",children:t})},u=e=>{let{data:t}=e;return(0,s.jsxs)(i.iA_,{fontSize:"14px",children:[(0,s.jsx)(i.hrZ,{children:(0,s.jsxs)(i.Tr,{children:[(0,s.jsx)(i.Th,{children:"Permission"}),(0,s.jsx)(i.Th,{children:"Description"})]})}),(0,s.jsx)(i.p3B,{children:t.map(e=>(0,s.jsxs)(i.Tr,{children:[(0,s.jsx)(i.Td,{children:(0,s.jsx)(i.Vp9,{children:e.permission})}),(0,s.jsx)(i.Td,{children:e.description})]},e.permission))})]})}},79283:function(e,t,a){"use strict";a.d(t,{l:function(){return o}});var s=a(24246),i=a(77181),n=a(72707),r=a.n(n);let l=e=>{let{data:t}=e;return(0,s.jsxs)(i.jqI,{gap:12,title:"".concat(t.primaryName||"").concat(t.primaryName?": ":"").concat(t.name," - ").concat(t.description),children:[(0,s.jsxs)("div",{children:[(0,s.jsx)("strong",{children:t.primaryName||t.name}),t.primaryName&&": ".concat(t.name)]}),(0,s.jsx)("em",{children:t.description})]})},o=e=>{let{options:t,...a}=e,n=null==t?void 0:t.map(e=>({...e,className:r().option}));return(0,s.jsx)(i.WPr,{options:n,autoFocus:!0,variant:"borderless",optionRender:l,dropdownStyle:{minWidth:"500px"},className:"w-full p-0","data-testid":"taxonomy-select",...a})}},97181:function(e,t,a){"use strict";a.d(t,{d:function(){return d}});var s=a(24246),i=a(77181),n=a(34090),r=a(27378),l=a(91613),o=a(40324);let d=e=>{let{name:t,label:a,labelProps:d,tooltip:c,isRequired:u,layout:p="inline",...m}=e,[x,f,{setValue:h}]=(0,n.U$)(t),v=!!(f.touched&&f.error),[g,j]=(0,r.useState)("");x.value||"tags"!==m.mode&&"multiple"!==m.mode||(x.value=[]),"tags"===m.mode&&"string"==typeof x.value&&(x.value=[x.value]);let y="tags"===m.mode?(e,t)=>e?e.value!==g||x.value.includes(g)?m.optionRender?m.optionRender(e,t):e.label:'Create "'.concat(g,'"'):void 0:m.optionRender||void 0,b=e=>{j(e),m.onSearch&&m.onSearch(e)},_=(e,t)=>{h(e),m.onChange&&m.onChange(e,t)};return"inline"===p?(0,s.jsx)(i.NIc,{isInvalid:v,isRequired:u,children:(0,s.jsxs)(i.rjZ,{templateColumns:a?"1fr 3fr":"1fr",children:[a?(0,s.jsx)(o.__,{htmlFor:m.id||t,...d,children:a}):null,(0,s.jsxs)(i.jqI,{align:"center",children:[(0,s.jsxs)(i.jqI,{vertical:!0,flex:1,className:"mr-2",children:[(0,s.jsx)(i.WPr,{...x,id:m.id||t,"data-testid":"controlled-select-".concat(x.name),...m,optionRender:y,onSearch:"tags"===m.mode?b:void 0,onChange:_,value:x.value||void 0,status:v?"error":void 0}),(0,s.jsx)(o.Bc,{isInvalid:v,message:f.error,fieldName:x.name})]}),c?(0,s.jsx)(l.Z,{label:c}):null]})]})}):(0,s.jsx)(i.NIc,{isInvalid:v,isRequired:u,children:(0,s.jsxs)(i.gCW,{alignItems:"start",children:[(0,s.jsxs)(i.jqI,{align:"center",children:[a?(0,s.jsx)(o.__,{htmlFor:m.id||t,fontSize:"xs",my:0,mr:1,...d,children:a}):null,c?(0,s.jsx)(l.Z,{label:c}):null]}),(0,s.jsx)(i.WPr,{...x,id:m.id||t,"data-testid":"controlled-select-".concat(x.name),...m,optionRender:y,onSearch:"tags"===m.mode?b:void 0,onChange:_,value:x.value||void 0,status:v?"error":void 0}),(0,s.jsx)(o.Bc,{isInvalid:v,message:f.error,fieldName:x.name})]})})}},34929:function(e,t,a){"use strict";var s=a(24246),i=a(64925),n=a.n(i),r=a(27378),l=a(16134),o=a(30002),d=a(28079),c=a(57072);let u=()=>{let{isLoading:e}=(0,d.fd)(),t=(0,l.C)(d.U3),{isLoading:a}=(0,c.MO)(),s=(0,l.C)(c.qb),{isLoading:i}=(0,o.te)();return{dataUses:t,dataSubjects:(0,l.C)(o.ZL),dataCategories:s,isLoading:e||a||i}};t.Z=()=>{let{dataUses:e,dataCategories:t,dataSubjects:a,isLoading:i}=u(),l=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return e.split(".").slice(0,t).join(".")},o=function(e,t){let a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,s=t(e);if(!s)return{};let i=t(l(e,a)),n=!!s.parent_key;return{name:s.name||void 0,primaryName:n&&(null==i?void 0:i.name)!==s.name&&(null==i?void 0:i.name)||void 0}},d=function(e,t){let a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,{name:i,primaryName:n}=o(e,t,a);return i?n?(0,s.jsxs)(r.Fragment,{children:[(0,s.jsxs)("strong",{children:[n,":"]})," ",i]},e):(0,s.jsx)("strong",{children:i},e):e},c=t=>n()(e,{fides_key:t}),p=e=>n()(t,{fides_key:e}),m=e=>n()(a,{fides_key:e});return{getDataUses:()=>e,getDataUseByKey:c,getDataUseDisplayName:e=>d(e,c,1),getDataUseDisplayNameProps:e=>o(e,c,1),getDataCategories:()=>t,getDataCategoryByKey:p,getDataCategoryDisplayName:e=>d(e,p,2),getDataCategoryDisplayNameProps:e=>o(e,p,2),getDataSubjects:()=>a,getDataSubjectByKey:m,getDataSubjectDisplayName:e=>{let t=m(e);return t?t.name:e},getPrimaryKey:l,isLoading:i}}},8133:function(e,t,a){"use strict";var s=a(24246),i=a(77181);t.Z=e=>{let{title:t,children:a,isOpen:n,onClose:r,...l}=e;return(0,s.jsxs)(i.u_l,{isOpen:n,onClose:r,isCentered:!0,scrollBehavior:"inside",size:"xl",id:"add-modal",...l,children:[(0,s.jsx)(i.ZAr,{}),(0,s.jsxs)(i.hzk,{textAlign:"left",p:0,"data-testid":"add-modal-content",children:[(0,s.jsx)(i.xBx,{p:0,children:(0,s.jsx)(i.xuv,{backgroundColor:"gray.50",px:6,py:4,border:"1px",borderColor:"gray.200",borderTopRadius:6,display:"flex",justifyContent:"space-between",alignItems:"center",children:(0,s.jsx)(i.X6q,{as:"h3",size:"sm",children:t})})}),(0,s.jsx)(i.fef,{pb:4,overflow:"auto",children:a})]})]})}},70788:function(e,t,a){"use strict";a.d(t,{m:function(){return d}});var s=a(24246),i=a(77181),n=a(79894),r=a.n(n),l=a(27378);let{Text:o}=i.AntTypography,d=e=>{let{items:t,...a}=e,n=(0,l.useMemo)(()=>null==t?void 0:t.map((e,a)=>{let n=a===t.length-1,l={...e},d=l.onClick&&!l.href;return("string"==typeof l.title&&(l.title=(0,s.jsx)(o,{style:{color:"inherit",maxWidth:n?void 0:400},ellipsis:!n,children:l.title})),d)?l.title=(0,s.jsx)(i.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,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("span",{className:"anticon align-text-bottom",children:l.icon}),l.title]})),l.href&&l.title&&(l.title=(0,s.jsx)(r(),{href:l.href,className:"ant-breadcrumb-link",children:l.title}),delete l.href)),l}),[t]);return(0,s.jsx)(i.zrq,{items:n,...a})}},79609:function(e,t,a){"use strict";a.d(t,{N4:function(){return r},UG:function(){return i},xw:function(){return n}});var s=a(54427);let{useGetCatalogSystemsQuery:i,useGetCatalogProjectsQuery:n,useGetCatalogDatasetsQuery:r}=a(78780).u.injectEndpoints({endpoints:e=>({getCatalogSystems:e.query({query:e=>({method:"GET",url:"/plus/data-catalog/system",params:e}),providesTags:["Catalog Systems","System"]}),getCatalogProjects:e.query({query:e=>{let{...t}=e;return{method:"GET",url:"/plus/data-catalog/project",params:t}},providesTags:["Discovery Monitor Results"]}),getCatalogDatasets:e.query({query:e=>{let{...t}=e;return{method:"GET",url:"/plus/data-catalog/dataset",params:t}},providesTags:["Discovery Monitor Results"]})})});(0,s.oM)({name:"dataCatalog",initialState:{page:1,pageSize:50},reducers:{}})},81406:function(e,t,a){"use strict";var s=a(24246),i=a(77181);t.Z=()=>(0,s.jsxs)(i.gCW,{mt:6,p:10,spacing:4,borderRadius:"base",maxW:"70%","data-testid":"empty-state",alignSelf:"center",margin:"auto",children:[(0,s.jsx)(i.xvT,{fontSize:"md",fontWeight:"600",children:"No resources found"}),(0,s.jsx)(i.xvT,{fontSize:"sm",children:"You're up to date!"})]})},26183:function(e,t,a){"use strict";var s=a(24246);a(27378),t.Z=e=>{let{children:t,className:a,...i}=e;return(0,s.jsx)("div",{className:"relative flex w-full flex-wrap items-center gap-2 overflow-x-auto py-2 ".concat(a||""),...i,children:t})}},3765:function(e,t,a){"use strict";var s=a(77181),i=a(812),n=a(46628),r=a(1315),l=a(31883);t.Z=e=>{let t=(0,s.pmc)(),[a]=(0,r.qQ)(),o=a=>!!e.privacy_declarations.find(e=>e.data_use===a.data_use&&e.name===a.name)&&(t((0,n.Vo)("A declaration already exists with that data use in this system. Please supply a different data use.")),!0),d=(e,a)=>{if((0,l.D4)(e)){let a=(0,i.e$)(e.error,"An unexpected error occurred while updating the system. Please try again.");t((0,n.Vo)(a));return}return t.closeAll(),t((0,n.t5)(a?"Data use deleted":"Data use saved")),e.data.privacy_declarations},c=async(t,s)=>{let i=t.map(e=>{var t;return{...e,name:null!==(t=e.name)&&void 0!==t?t:""}}),n={...e,privacy_declarations:i};return d(await a(n),s)};return{createDataUse:async a=>{if(!o(a))return t.closeAll(),c([...e.privacy_declarations,a])},updateDataUse:async(t,a)=>{if(!(a.id!==t.id&&o(a)))return c(e.privacy_declarations.map(e=>e.id===t.id?a:e))},deleteDataUse:async t=>c(e.privacy_declarations.filter(e=>e.id!==t.id),!0),deleteDeclarationByDataUse:async t=>c(e.privacy_declarations.filter(e=>e.data_use!==t),!0)}}},54748:function(e,t,a){"use strict";var s=a(27378),i=a(62656);t.Z=()=>({legalBasisOptions:(0,s.useMemo)(()=>Object.keys(i.gP).map(e=>({value:i.gP[e],label:i.gP[e]})),[])})},28325:function(e,t,a){"use strict";var s=a(27378),i=a(62656);t.Z=()=>({specialCategoryLegalBasisOptions:(0,s.useMemo)(()=>Object.keys(i.nV).map(e=>({value:i.nV[e],label:i.nV[e]})),[])})},99188:function(e,t,a){"use strict";a.r(t),a.d(t,{default:function(){return A}});var s=a(24246),i=a(77213),n=a(58754),r=a(92222),l=a(59003),o=a(86677),d=a(27378),c=a(77830),u=a(14481),p=a(16394),m=a(79609),x=a(81406),f=a(77181),h=a(79789),v=a(79283),g=a(34929),j=e=>{let{selectedTaxonomies:t,showDisabled:a=!1,...i}=e,{getDataUseDisplayNameProps:n,getDataUses:r}=(0,g.Z)(),l=(a?r():r().filter(e=>e.active)).filter(e=>!t.includes(e.fides_key)).map(e=>{let{name:t,primaryName:a}=n(e.fides_key);return{value:e.fides_key,name:t,primaryName:a,description:e.description||""}});return(0,s.jsx)(v.l,{options:l,...i})},y=a(34090),b=a(55484),_=a(97181),w=a(40324),C=a(8133),k=a(54748),N=a(28325),S=a(34151),D=a.n(S);let R=b.Ry().shape({data_use:b.Z_().required("Data use is required")});var q=e=>{let{isOpen:t,onClose:a,onSave:i,declaration:n}=e,{getDataUses:r,getDataCategories:l,getDataSubjects:o}=(0,g.Z)(),{isOpen:d,onToggle:c}=(0,f.qY0)(),u=r().map(e=>({label:e.fides_key,value:e.fides_key})),p=l().map(e=>({label:e.fides_key,value:e.fides_key})),m=o().map(e=>({label:e.fides_key,value:e.fides_key})),{legalBasisOptions:x}=(0,k.Z)(),{specialCategoryLegalBasisOptions:h}=(0,N.Z)();return(0,s.jsx)(y.J9,{initialValues:n,enableReinitialize:!0,onSubmit:e=>{i(e),a()},validationSchema:R,children:e=>{let{dirty:i,isValid:n,values:r,resetForm:l}=e;return(0,s.jsx)(C.Z,{title:"Edit data use",isOpen:t,onClose:a,children:(0,s.jsxs)(y.l0,{children:[(0,s.jsxs)(f.jqI,{vertical:!0,className:"gap-6 py-4",children:[(0,s.jsx)(_.d,{name:"data_use",label:"Data use",options:u,layout:"stacked",isRequired:!0}),(0,s.jsx)(_.d,{name:"data_categories",label:"Data categories",options:p,mode:"multiple",layout:"stacked"}),(0,s.jsx)(_.d,{name:"data_subjects",label:"Data subjects",options:m,mode:"multiple",layout:"stacked"}),(0,s.jsx)(w.j0,{name:"name",label:"Declaration name",variant:"stacked"}),(0,s.jsxs)(f.jqI,{vertical:!0,className:"gap-6 p-4 ".concat(D().advancedSettings),children:[(0,s.jsxs)(f.jqI,{className:"cursor-pointer justify-between",onClick:c,children:[(0,s.jsx)(f.xvT,{fontSize:"xs",children:"Advanced settings"}),(0,s.jsx)(f.v4q,{className:d?"rotate-180":void 0})]}),(0,s.jsx)(f.UO1,{in:d,children:(0,s.jsxs)(f.jqI,{vertical:!0,className:"gap-4",children:[(0,s.jsx)(_.d,{name:"legal_basis_for_processing",label:"Legal basis for processing",options:x,layout:"stacked"}),(0,s.jsx)(f.UO1,{in:(null==r?void 0:r.legal_basis_for_processing)==="Legitimate interests",animateOpacity:!0,style:{overflow:"visible"},children:(0,s.jsx)("div",{className:"mt-4",children:(0,s.jsx)(w.j0,{name:"impact_assessment_location",label:"Impact assessment location",tooltip:"Where is the legitimate interest impact assessment stored?",variant:"stacked"})})}),(0,s.jsx)(w.w8,{name:"flexible_legal_basis_for_processing",label:"This legal basis is flexible",tooltip:"Has the vendor declared that the legal basis may be overridden?",variant:"stacked"}),(0,s.jsx)(w.j0,{name:"retention_period",label:"Retention period (days)",tooltip:"How long is personal data retained for this purpose?",variant:"stacked"}),(0,s.jsxs)(f.Kqy,{spacing:0,children:[(0,s.jsx)(w.w8,{name:"processes_special_category_data",label:"This system processes special category data",tooltip:"Is this system processing special category data as defined by GDPR Article 9?",variant:"stacked"}),(0,s.jsx)(f.UO1,{in:null==r?void 0:r.processes_special_category_data,animateOpacity:!0,style:{overflow:"visible"},children:(0,s.jsx)("div",{className:"mt-4",children:(0,s.jsx)(_.d,{isRequired:!0,name:"special_category_legal_basis",label:"Legal basis for processing",options:h,tooltip:"What is the legal basis under which the special category data is processed?",layout:"stacked"})})})]})]})})]})]}),(0,s.jsxs)("div",{className:"flex w-full justify-between",children:[(0,s.jsx)(f.wpx,{onClick:()=>{l(),a()},children:"Cancel"}),(0,s.jsx)(f.wpx,{type:"primary",htmlType:"submit",disabled:!i||!n,loading:!1,"data-testid":"save-btn",children:"Save"})]})]})})}})},z=a(26183),I=a(3765);let T=e=>({data_use:e,data_categories:["system"]});var P=e=>{var t,a;let{system:i}=e,[n,r]=(0,d.useState)(!1),[l,o]=(0,d.useState)(void 0),{getDataUseDisplayName:c}=(0,g.Z)(),{isOpen:u,onOpen:p,onClose:m}=(0,f.qY0)(),x=e=>{o(e),p()},{createDataUse:h,deleteDeclarationByDataUse:v,updateDataUse:y}=(0,I.Z)(i),b=null!==(a=null===(t=i.privacy_declarations)||void 0===t?void 0:t.map(e=>e.data_use))&&void 0!==a?a:[];return(0,s.jsxs)(z.Z,{children:[!n&&(0,s.jsxs)(s.Fragment,{children:[b.map((e,t)=>(0,s.jsxs)(f.j8w,{"data-testid":"data-use-".concat(e),color:"white",onClick:()=>x(i.privacy_declarations[t]),closable:!0,onClose:()=>v(e),closeButtonLabel:"Remove data use",children:[(0,s.jsx)(f.PJP.I8b,{size:10}),c(e)]},e)),(0,s.jsx)(f.j8w,{onClick:()=>r(!0),"data-testid":"taxonomy-add-btn",addable:!0,"aria-label":"Add data use"}),(0,s.jsx)(q,{isOpen:u,onClose:m,onSave:e=>y(l,e),declaration:l})]}),n&&(0,s.jsx)(f.xuv,{className:"select-wrapper",position:"absolute",zIndex:10,top:"0",left:"0",width:"100%",height:"max",bgColor:"#fff",children:(0,s.jsx)(j,{onChange:e=>{h(T(e)),r(!1)},selectedTaxonomies:b,onBlur:()=>r(!1),open:!0})})]})},Z=e=>{var t;let{system:a,onEdit:i,onClose:n}=e;return(0,s.jsxs)(f.dys,{isOpen:!!a,onClose:n,size:"md",children:[(0,s.jsx)(f.P1B,{}),(0,s.jsxs)(f.scA,{"data-testid":"system-details",children:[(0,s.jsx)(f.OXI,{children:(null==a?void 0:a.name)||(null==a?void 0:a.fides_key)}),(0,s.jsx)(f.cCv,{}),(0,s.jsxs)(f.Ng0,{children:[(0,s.jsx)(h.cB,{text:"Title",mt:0}),(0,s.jsx)(h.XU,{children:null!==(t=null==a?void 0:a.name)&&void 0!==t?t:null==a?void 0:a.fides_key}),(null==a?void 0:a.description)&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(h.cB,{text:"Description"}),(0,s.jsx)(h.XU,{children:null==a?void 0:a.description})]}),(0,s.jsx)(h.cB,{text:"Data uses"}),(0,s.jsx)(P,{system:a})]}),(0,s.jsx)(f.zeN,{children:(0,s.jsx)(f.wpx,{onClick:i,"data-testid":"edit-system-btn",children:"Edit system"})})]})]})},O=e=>{let{onDetailClick:t}=e;return(0,s.jsxs)(f.v2r,{children:[(0,s.jsx)(f.j2t,{as:f.wpx,size:"small",type:"text",className:"max-w-4",icon:(0,s.jsx)(f.nXP,{transform:"rotate(90deg)",ml:2}),"data-testid":"system-actions-menu"}),(0,s.jsx)(f.qyq,{children:t&&(0,s.jsx)(f.sNh,{onClick:t,"data-testid":"view-system-details",children:"View details"})})]})},B=a(70675);let U={items:[],total:0,page:1,size:50,pages:1},E=(0,r.Cl)();var M=()=>{let[e,t]=(0,d.useState)({}),a=(0,o.useRouter)(),{PAGE_SIZES:i,pageSize:n,setPageSize:f,onPreviousPageClick:h,isPreviousPageDisabled:v,onNextPageClick:g,isNextPageDisabled:j,startRange:y,endRange:b,pageIndex:_,setTotalPages:w}=(0,u.oi)(),{data:C,isLoading:k}=(0,m.UG)({page:_,size:n,show_hidden:!1}),[N]=(0,B.j3)(),{items:S,total:D,pages:R}=(0,d.useMemo)(()=>null!=C?C:U,[C]);(0,d.useEffect)(()=>{w(R)},[R,w]);let[q,z]=(0,d.useState)(void 0),I=(0,d.useMemo)(()=>S.find(e=>e.fides_key===q),[S,q]),T=async e=>{var t,s;let i=await N({connection_config_key:e.connection_configs.key,page:1,size:1}),n=!!(null==i?void 0:null===(t=i.data)||void 0===t?void 0:t.total),r=(0,p.du)(null!==(s=e.monitor_config_keys)&&void 0!==s?s:[],"monitor_config_ids"),l="".concat(c.mX,"/").concat(e.fides_key,"/").concat(n?"projects":"resources","?").concat(r);a.push(l)},M=(0,d.useMemo)(()=>[E.accessor(e=>e.name,{id:"name",cell:e=>{var t;let{getValue:a,row:i}=e;return(0,s.jsx)(u.G3,{value:a(),fontWeight:(null===(t=i.original.connection_configs)||void 0===t?void 0:t.key)?"semibold":"normal"})},header:e=>(0,s.jsx)(u.Rr,{value:"Name",...e})}),E.display({id:"data-uses",cell:e=>{let{row:t}=e;return(0,s.jsx)(P,{system:t.original})},header:e=>(0,s.jsx)(u.Rr,{value:"Data uses",...e}),meta:{disableRowClick:!0},minSize:280}),E.display({id:"actions",cell:e=>(0,s.jsx)(O,{onDetailClick:()=>z(e.row.original.fides_key)}),maxSize:20,enableResizing:!1,meta:{cellProps:{borderLeft:"none"},disableRowClick:!0}})],[]),A=(0,l.b7)({getCoreRowModel:(0,r.sC)(),getGroupedRowModel:(0,r.qe)(),getExpandedRowModel:(0,r.rV)(),getRowId:e=>e.fides_key,manualPagination:!0,columnResizeMode:"onChange",columns:M,data:S,onRowSelectionChange:t,state:{rowSelection:e}});return k?(0,s.jsx)(u.I4,{rowHeight:36,numRows:36}):(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(u.ZK,{tableInstance:A,emptyTableNotice:(0,s.jsx)(x.Z,{}),onRowClick:T,getRowIsClickable:e=>{var t;return!!(null===(t=e.connection_configs)||void 0===t?void 0:t.key)}}),(0,s.jsx)(u.s8,{totalRows:D||0,pageSizes:i,setPageSize:f,onPreviousPageClick:h,isPreviousPageDisabled:v,onNextPageClick:g,isNextPageDisabled:j,startRange:y,endRange:b}),(0,s.jsx)(Z,{system:I,onClose:()=>z(void 0),onEdit:()=>a.push({pathname:c.Dv,query:{id:q}})})]})},A=()=>(0,s.jsxs)(i.Z,{title:"Data catalog",children:[(0,s.jsx)(n.Z,{heading:"Data catalog",breadcrumbItems:[{title:"All systems"}]}),(0,s.jsx)(M,{})]})},31883:function(e,t,a){"use strict";a.d(t,{Bw:function(){return s.Bw},D4:function(){return s.D4}});var s=a(19043)},72707:function(e){e.exports={option:"TaxonomySelect_option__vY6v2"}},34151:function(e){e.exports={advancedSettings:"EditMinimalDataUseModal_advancedSettings___i9jS"}}},function(e){e.O(0,[8033,6060,2858,2866,9278,4481,2888,9774,179],function(){return e(e.s=66248)}),_N_E=e.O()}]);
|