ethyca-fides 2.73.2b0__py2.py3-none-any.whl → 2.76.0rc2__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.73.2b0.dist-info → ethyca_fides-2.76.0rc2.dist-info}/METADATA +2 -1
- {ethyca_fides-2.73.2b0.dist-info → ethyca_fides-2.76.0rc2.dist-info}/RECORD +349 -336
- fides/_version.py +3 -3
- fides/api/alembic/migrations/versions/303287c70600_migrate_resource_type_from_enum_to_.py +99 -0
- fides/api/alembic/migrations/versions/795f46f656c0_migrate_field_type_from_enum_to_string.py +61 -0
- fides/api/alembic/migrations/versions/xx_2025_10_29_1659_80d28dea3b6b_added_duplicate_group_table.py +79 -0
- fides/api/alembic/migrations/versions/xx_2025_11_05_0200_f1a2b3c4d5e6_create_staged_resource_error_table.py +82 -0
- fides/api/alembic/migrations/versions/xx_2025_11_07_1709_56fe6fad2d89_add_notice_display_order.py +47 -0
- fides/api/alembic/migrations/versions/xx_2025_11_10_1200_a1b2c3d4e5f6_add_test_datastore_to_connectiontype.py +53 -0
- fides/api/alembic/migrations/versions/xx_2025_11_11_1317_7d82c8fc4c34_store_saas_template_datasets.py +68 -0
- fides/api/alembic/migrations/versions/xx_2025_11_12_1430_b2c3d4e5f6a7_add_default_identity_definitions.py +81 -0
- fides/api/alembic/migrations/versions/xx_2025_11_25_1854_3ff6449c099e_add_index_on_providedidentity_privacy_.py +50 -0
- fides/api/api/v1/api.py +2 -0
- fides/api/api/v1/endpoints/admin.py +39 -0
- fides/api/api/v1/endpoints/connector_template_endpoints.py +167 -0
- fides/api/api/v1/endpoints/generic_overrides.py +6 -6
- fides/api/api/v1/endpoints/pre_approval_webhook_endpoints.py +5 -5
- fides/api/api/v1/endpoints/privacy_request_endpoints.py +101 -21
- fides/api/api/v1/endpoints/saas_config_endpoints.py +3 -44
- fides/api/api/v1/endpoints/storage_endpoints.py +5 -1
- fides/api/api/v1/endpoints/system.py +2 -2
- fides/api/api/v1/endpoints/user_endpoints.py +10 -4
- fides/api/db/base.py +1 -0
- fides/api/db/database.py +228 -1
- fides/api/db/seed.py +1 -1
- fides/api/email_templates/templates/external_user_welcome.html +9 -5
- fides/api/migrations/post_upgrade_index_creation.py +10 -0
- fides/api/models/connectionconfig.py +4 -1
- fides/api/models/detection_discovery/__init__.py +2 -0
- fides/api/models/detection_discovery/core.py +10 -0
- fides/api/models/detection_discovery/staged_resource_error.py +25 -0
- fides/api/models/experience_notices.py +6 -1
- fides/api/models/identity_definition.py +2 -1
- fides/api/models/location_regulation_selections.py +22 -0
- fides/api/models/manual_webhook.py +17 -6
- fides/api/models/messaging_template.py +7 -0
- fides/api/models/policy.py +3 -0
- fides/api/models/privacy_experience.py +20 -0
- fides/api/models/privacy_notice.py +45 -1
- fides/api/models/privacy_preference.py +1 -0
- fides/api/models/privacy_request/duplicate_group.py +84 -0
- fides/api/models/privacy_request/privacy_request.py +84 -9
- fides/api/models/privacy_request/provided_identity.py +22 -1
- fides/api/models/saas_template_dataset.py +63 -0
- fides/api/models/sql_models.py +150 -7
- fides/api/models/taxonomy.py +61 -1
- fides/api/oauth/roles.py +2 -0
- fides/api/schemas/connection_configuration/connection_secrets_mssql.py +5 -0
- fides/api/schemas/messaging/messaging.py +1 -0
- fides/api/schemas/oauth.py +2 -1
- fides/api/schemas/privacy_request.py +38 -6
- fides/api/schemas/saas/connector_template.py +14 -0
- fides/api/service/async_dsr/strategies/async_dsr_strategy_polling.py +19 -7
- fides/api/service/connectors/base_erasure_email_connector.py +7 -0
- fides/api/service/connectors/microsoft_sql_server_connector.py +6 -1
- fides/api/service/connectors/saas/connector_registry_service.py +45 -1
- fides/api/service/messaging/message_dispatch_service.py +44 -4
- fides/api/service/privacy_request/dsr_package/dsr_report_builder.py +3 -3
- fides/api/service/privacy_request/dsr_package/templates/attachments_index.html +41 -30
- fides/api/service/privacy_request/dsr_package/templates/clickme.html +68 -0
- fides/api/service/privacy_request/dsr_package/templates/dataset_index.html +30 -27
- fides/api/service/privacy_request/duplication_detection.py +439 -0
- fides/api/service/privacy_request/email_batch_service.py +2 -1
- fides/api/service/privacy_request/request_runner_service.py +31 -5
- fides/api/service/privacy_request/request_service.py +4 -2
- fides/api/service/saas_request/saas_request_override_factory.py +7 -2
- fides/api/task/conditional_dependencies/privacy_request/__init__.py +0 -0
- fides/api/task/conditional_dependencies/privacy_request/convenience_fields.py +155 -0
- fides/api/task/conditional_dependencies/privacy_request/privacy_request_data.py +140 -0
- fides/api/task/conditional_dependencies/privacy_request/schemas.py +212 -0
- fides/api/task/conditional_dependencies/util.py +111 -0
- fides/api/task/execute_request_tasks.py +17 -4
- fides/api/task/manual/manual_task_conditional_evaluation.py +32 -27
- fides/api/task/manual/manual_task_graph_task.py +4 -1
- fides/api/task/manual/manual_task_utils.py +63 -20
- fides/api/tasks/__init__.py +14 -0
- fides/api/util/cache.py +4 -0
- fides/api/util/connection_util.py +2 -3
- fides/api/util/fuzzy_search_utils.py +7 -1
- fides/api/util/lock.py +13 -3
- fides/api/util/logger.py +58 -4
- fides/api/util/logger_context_utils.py +3 -1
- fides/api/util/memory_watchdog.py +118 -0
- fides/api/util/saas_config_updater.py +12 -2
- fides/api/worker/__init__.py +4 -0
- fides/common/api/scope_registry.py +6 -0
- fides/common/api/v1/urn_registry.py +11 -2
- fides/config/__init__.py +8 -2
- fides/config/celery_settings.py +42 -0
- fides/service/messaging/messaging_service.py +75 -74
- fides/service/privacy_request/privacy_request_service.py +151 -19
- fides/ui-build/static/admin/404.html +1 -1
- fides/ui-build/static/admin/_next/static/chunks/1099-688fa865621531cc.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/{1115-26393b586775ea29.js → 1115-7fd171dac1eb0e51.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/1276.deb10ae2643f8463.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/1438-8a33b3834d6e43f3.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/{6148-59a59d5c5925344f.js → 1533-84e250d1f26e6d7d.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/1821-c1daa160f492aacf.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/1840-359ee056e4cf6629.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/{1975.afe8cad52f904fcf.js → 1975.bef017bc80e2012c.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/{2040-7eed8491ca7276ed.js → 2040-70972e15960d9afe.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/2121.321b0fd3932164d4.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/{2397-083fc511acb6105d.js → 2397-3434603a97f3f5d6.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/2921-49ed0ed897832958.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/3150-da5406b80d25fe6d.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/3214-90ce0a366b0f461a.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/3377-02bf9780fd383d94.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/3615-5e2d062d684b8fa1.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/3655-5e1ba5dd68b5ec48.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/3729-31ff8ba51491bf21.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/3872-cff30ca0844fe2b1.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/3931-8bedde156fe83564.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/{401-7c345d019bb9bcbd.js → 401-582d9970d89deefe.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/4093-7e47408c28de5375.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/{4259.d1507e0db19cbed7.js → 4259.05038c9b78467244.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/4322-f6aeff6880726c83.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/4339-04a715ab07122744.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/4496-ccbce2459174e0d6.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/454-d5c2c84f1a14e4f1.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/4589-c1d83c6a8dab4d30.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/4809-a8f4a108a42f53ed.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/4903-19c0bc07a956dfa8.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/4910-d990773601f794c1.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/{5185-e7f8b81dd3dfbe0b.js → 5185-96423702fba70ced.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/5258-4e308cca01d59367.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/5487-5c3501754bf027ba.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/549-1bdc3e6f3264c020.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/5505-43b9c39491b88e08.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/{5783-21775c232dce7af7.js → 5783-016dfcee8e49bf61.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/5826-4db99ea4e5077911.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/590-be447cacf12419dd.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/6084-91badbc6569a0efb.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/6344-026cb323c1d49926.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/6362-ba0e12f2fc4cad94.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/{6853-de9905d28e5b19b3.js → 6853-882889659769d7b4.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/6882-bb1b469d7d7f5335.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/6954-0dcf22a9aabe39c5.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/7170-46db82bb5b55e856.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/7218-2ace8c82e3e7eb74.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/{7245-c9bc628d078c2170.js → 7245-1cdafb35f289861b.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/7630-7f75ab7b8df42eb3.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/7654-2e9a8be02e41769a.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/{8212-393420e5a9751791.js → 8212-348ddd2b6933db70.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/9014-eeae6f581158e645.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/{5596-29a7c8322530b7cf.js → 9195-da717d324917b049.js} +3 -3
- fides/ui-build/static/admin/_next/static/chunks/9450-b7b7bb1d755ecf57.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/{9676.7d029a5383595b69.js → 9676.1f395eeb9cc34968.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/{9826-a737a9956c1d0905.js → 9826-1078e46f3ac0b688.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/9911-ece086f2230e34f0.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/{404-eb019192ce498f32.js → 404-800be6996aaa999c.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/{_app-ee588a308812715d.js → _app-de4b578c904df772.js} +70 -70
- fides/ui-build/static/admin/_next/static/chunks/pages/add-systems/{manual-7081e0e49f67716c.js → manual-f12020b82dd4bd1a.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/add-systems/{multiple-a188f84239f4b2a8.js → multiple-a911b7990371704d.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/{add-systems-ee9df33ebd471099.js → add-systems-ad585b79953c2753.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/consent/configure/{add-vendors-4f9cf087fcee87e6.js → add-vendors-bb263d394ca1c8fa.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/consent/configure-6907c368d8611c44.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/consent/privacy-experience/{[id]-1b02a4991201b7e4.js → [id]-c32f381af358149b.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/consent/privacy-experience/{new-a5e738a234dadc7e.js → new-6efb3c069d8b47dd.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/consent/{privacy-experience-b08abefec298ccf1.js → privacy-experience-1975c529905eea9b.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/consent/privacy-notices/{[id]-8c164c4b8310214e.js → [id]-b05331178928ab52.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/consent/privacy-notices/{new-db789002d84c8829.js → new-516834e930bb0d0d.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/consent/privacy-notices-985717f2565f9d9d.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/consent/{properties-5cba30eba1e97e56.js → properties-2be773e08498e40c.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/consent/reporting-850afb74f4192e87.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/{consent-614af0a2c2ba966c.js → consent-b63d1e395d879b86.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/data-catalog/[systemId]/projects/[projectUrn]/[resourceUrn]-5b28f0f674ea87bd.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/data-catalog/[systemId]/projects/[projectUrn]-676177e2f3c9c2a2.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/data-catalog/[systemId]/projects-794906929efb8e1d.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/data-catalog/[systemId]/resources/[resourceUrn]-3ccbf7c0d06507b9.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/data-catalog/[systemId]/resources-81d1b50585468fb0.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/data-catalog-1ea0b24d306b1e67.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/action-center/datastore/[monitorId]-d4861a4a218bb65a.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/action-center/infrastructure/[monitorId]-66bd265044daf97d.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/action-center/infrastructure-c9c79fa8576a4f77.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/action-center/website/[monitorId]/[systemId]-60cacc3232c2eead.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/action-center/website/[monitorId]-437bd64a3016de36.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/action-center-8349248c2da970a6.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/activity-6919a1d6cadaa46b.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/detection/{[resourceUrn]-b072cf25aefc98f6.js → [resourceUrn]-1a50d421897d3da1.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/{detection-fd3e8817d8e6dee4.js → detection-49509414a15e8393.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/discovery/{[resourceUrn]-146624cf59792bf7.js → [resourceUrn]-1a1bb80b586d0c0f.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/{discovery-9695cc9c85592ec5.js → discovery-49de61df1e8e7fba.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/datamap-c2719f5cff20c0f8.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/dataset/[datasetId]/[collectionName]/{[...subfieldNames]-5f88280db168083e.js → [...subfieldNames]-415015aebab60436.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/dataset/[datasetId]/{[collectionName]-bfbcf19c28c794ae.js → [collectionName]-5accb09715b5122d.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/dataset/[datasetId]-aebecca1d8ec5f98.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/dataset/new-9551a82ddec9f909.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/dataset-72f8fe47beef0f09.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/datastore-connection/[id]-3a8aa3f633528e88.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/datastore-connection/new-87512616f35ec6da.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/datastore-connection-2f1bf4eac7aa55fd.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/{fides-js-docs-1f4335dca5c09860.js → fides-js-docs-5235760b3e508d7d.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/{index-1343fa525a206571.js → index-8d67cd2872cb682a.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/integrations/[id]-7a631df29cd0e31a.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/integrations-ea3bc43cdaf273de.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/new-privacy-requests-5d8632bba1b81cd4.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/notifications/digests/{[id]-63b3be660fb12c0f.js → [id]-92e01822ecde8fb8.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/notifications/digests/{new-d3b577962dd33266.js → new-1256cf6d3f6794e0.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/notifications/digests-0daac00911d27617.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/notifications/providers/{[key]-720cde29f81db47f.js → [key]-2d976fe5e8ba0a3a.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/notifications/providers/{new-3668866076b53016.js → new-7766ba497b863740.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/notifications/providers-f2880d2ed4734270.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/notifications/templates/{[id]-8063dceb32310c85.js → [id]-669f585c3458faff.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/notifications/templates/{add-template-4931c70bee62232f.js → add-template-c79e7724e4bc3899.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/notifications/templates-891654e8dc13965c.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/{notifications-93af719dab3bd053.js → notifications-40c8148244c5d347.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/poc/ant-components-1e86f3e28bd23ed6.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/poc/form-experiments/AntForm-9b7bd8c38f02c091.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/poc/form-experiments/FormikAntFormItem-b18a53a940cf9e19.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/poc/form-experiments/FormikControlled-6d028d7450e77578.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/poc/form-experiments/FormikField-8399083ee2cd8cc2.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/poc/forms-0a910125cdb2b3b8.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/privacy-requests/[id]-acc90b6f7fe915cb.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/privacy-requests/configure/storage-bbc42026f2685438.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/privacy-requests/{configure-fa82cffba448ccd8.js → configure-c08ca6ad21c99799.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/privacy-requests-77c2db582f8823bc.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/properties/{[id]-bc1c289647e52c48.js → [id]-74ccea4868408e3d.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/properties/{add-property-cbfaa23d96f5ed0b.js → add-property-7d9f09bfe9d44dfc.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/{properties-a15a3fd0ed88f39c.js → properties-cd77bc30672bb1fa.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/reporting/datamap-cc3bd9540132d5ed.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/sandbox/privacy-notices-7ce7d720107ab4b5.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/settings/consent/[configuration_id]/{[purpose_id]-19de0024418a4924.js → [purpose_id]-ae789892343c24f5.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/settings/consent-13ee1b331ced0846.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/settings/custom-fields/[id]-ee4e43692336a330.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/settings/custom-fields/new-ca51d794abfcbf25.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/settings/custom-fields-ecd1dc5db8e81409.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/settings/{domain-records-3b87002753b23ca5.js → domain-records-df06f7e2f668c540.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/settings/{domains-aacd9d0ad47082d4.js → domains-da0c77bd510c6c51.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/settings/{email-templates-3cdd0b39901190ba.js → email-templates-950b0c115bf673d8.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/settings/{locations-61076eedbfd137b9.js → locations-7e36cb4756973a9d.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/settings/{organization-b07b11d6002f8c8c.js → organization-a0e5ed486d24ccf3.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/settings/privacy-requests-3cdebafb6870d3ad.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/settings/{regulations-b7c0d3b1b754e70f.js → regulations-159aad34f1021320.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/systems/configure/[id]/test-datasets-dbd1a64090ad0946.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/systems/configure/{[id]-59c89489fa32a4cb.js → [id]-7d042497a57a3788.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/systems-21f1172e73dfc9f0.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/taxonomy-e553161e6338ee48.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/user-management/{new-7dce2916cc589c54.js → new-efc4af017723e57a.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/user-management/profile/{[id]-5d5a68e555d18693.js → [id]-b152319d67372ee4.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/user-management-dba8692491f7935e.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/webpack-09ca52bc7beb0b43.js +1 -0
- fides/ui-build/static/admin/_next/static/css/3d66bb57ddcb0978.css +1 -0
- fides/ui-build/static/admin/_next/static/css/a1e4be9466578ef1.css +1 -0
- fides/ui-build/static/admin/_next/static/l2vgGUHB04Fi4oEVlVMrc/_buildManifest.js +1 -0
- fides/ui-build/static/admin/add-systems/manual.html +1 -1
- fides/ui-build/static/admin/add-systems/multiple.html +1 -1
- fides/ui-build/static/admin/add-systems.html +1 -1
- fides/ui-build/static/admin/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/datastore/[monitorId].html +1 -1
- fides/ui-build/static/admin/data-discovery/action-center/datastore.html +1 -1
- fides/ui-build/static/admin/data-discovery/action-center/infrastructure/[monitorId].html +1 -0
- fides/ui-build/static/admin/data-discovery/action-center/infrastructure.html +1 -0
- fides/ui-build/static/admin/data-discovery/action-center/website/[monitorId]/[systemId].html +1 -1
- fides/ui-build/static/admin/data-discovery/action-center/website/[monitorId].html +1 -1
- fides/ui-build/static/admin/data-discovery/action-center/website.html +1 -1
- fides/ui-build/static/admin/data-discovery/action-center.html +1 -1
- fides/ui-build/static/admin/data-discovery/activity.html +1 -1
- fides/ui-build/static/admin/data-discovery/detection/[resourceUrn].html +1 -1
- fides/ui-build/static/admin/data-discovery/detection.html +1 -1
- fides/ui-build/static/admin/data-discovery/discovery/[resourceUrn].html +1 -1
- fides/ui-build/static/admin/data-discovery/discovery.html +1 -1
- fides/ui-build/static/admin/datamap.html +1 -1
- fides/ui-build/static/admin/dataset/[datasetId]/[collectionName]/[...subfieldNames].html +1 -1
- fides/ui-build/static/admin/dataset/[datasetId]/[collectionName].html +1 -1
- fides/ui-build/static/admin/dataset/[datasetId].html +1 -1
- fides/ui-build/static/admin/dataset/new.html +1 -1
- fides/ui-build/static/admin/dataset.html +1 -1
- fides/ui-build/static/admin/datastore-connection/[id].html +1 -1
- fides/ui-build/static/admin/datastore-connection/new.html +1 -1
- fides/ui-build/static/admin/datastore-connection.html +1 -1
- fides/ui-build/static/admin/index.html +1 -1
- fides/ui-build/static/admin/integrations/[id].html +1 -1
- fides/ui-build/static/admin/integrations.html +1 -1
- fides/ui-build/static/admin/lib/fides-ext-gpp.js +1 -1
- fides/ui-build/static/admin/lib/fides-headless.js +1 -1
- fides/ui-build/static/admin/lib/fides-preview.js +1 -1
- fides/ui-build/static/admin/lib/fides-tcf.js +2 -2
- fides/ui-build/static/admin/lib/fides.js +2 -2
- fides/ui-build/static/admin/login/[provider].html +1 -1
- fides/ui-build/static/admin/login.html +1 -1
- fides/ui-build/static/admin/new-privacy-requests.html +1 -1
- fides/ui-build/static/admin/notifications/digests/[id].html +1 -1
- fides/ui-build/static/admin/notifications/digests/new.html +1 -1
- fides/ui-build/static/admin/notifications/digests.html +1 -1
- fides/ui-build/static/admin/notifications/providers/[key].html +1 -1
- fides/ui-build/static/admin/notifications/providers/new.html +1 -1
- fides/ui-build/static/admin/notifications/providers.html +1 -1
- fides/ui-build/static/admin/notifications/templates/[id].html +1 -1
- fides/ui-build/static/admin/notifications/templates/add-template.html +1 -1
- fides/ui-build/static/admin/notifications/templates.html +1 -1
- fides/ui-build/static/admin/notifications.html +1 -1
- fides/ui-build/static/admin/poc/ant-components.html +1 -1
- fides/ui-build/static/admin/poc/form-experiments/AntForm.html +1 -1
- fides/ui-build/static/admin/poc/form-experiments/FormikAntFormItem.html +1 -1
- fides/ui-build/static/admin/poc/form-experiments/FormikControlled.html +1 -1
- fides/ui-build/static/admin/poc/form-experiments/FormikField.html +1 -1
- fides/ui-build/static/admin/poc/form-experiments/FormikSpreadField.html +1 -1
- fides/ui-build/static/admin/poc/forms.html +1 -1
- fides/ui-build/static/admin/privacy-requests/[id].html +1 -1
- fides/ui-build/static/admin/privacy-requests/configure/storage.html +1 -1
- fides/ui-build/static/admin/privacy-requests/configure.html +1 -1
- fides/ui-build/static/admin/privacy-requests.html +1 -1
- fides/ui-build/static/admin/properties/[id].html +1 -1
- fides/ui-build/static/admin/properties/add-property.html +1 -1
- fides/ui-build/static/admin/properties.html +1 -1
- fides/ui-build/static/admin/reporting/datamap.html +1 -1
- fides/ui-build/static/admin/sandbox/privacy-notices.html +1 -1
- fides/ui-build/static/admin/settings/about/alpha.html +1 -1
- fides/ui-build/static/admin/settings/about.html +1 -1
- fides/ui-build/static/admin/settings/consent/[configuration_id]/[purpose_id].html +1 -1
- fides/ui-build/static/admin/settings/consent.html +1 -1
- fides/ui-build/static/admin/settings/custom-fields/[id].html +1 -1
- fides/ui-build/static/admin/settings/custom-fields/new.html +1 -1
- fides/ui-build/static/admin/settings/custom-fields.html +1 -1
- fides/ui-build/static/admin/settings/domain-records.html +1 -1
- fides/ui-build/static/admin/settings/domains.html +1 -1
- fides/ui-build/static/admin/settings/email-templates.html +1 -1
- fides/ui-build/static/admin/settings/locations.html +1 -1
- fides/ui-build/static/admin/settings/organization.html +1 -1
- fides/ui-build/static/admin/settings/privacy-requests.html +1 -1
- fides/ui-build/static/admin/settings/regulations.html +1 -1
- fides/ui-build/static/admin/systems/configure/[id]/test-datasets.html +1 -1
- fides/ui-build/static/admin/systems/configure/[id].html +1 -1
- fides/ui-build/static/admin/systems.html +1 -1
- fides/ui-build/static/admin/taxonomy.html +1 -1
- fides/ui-build/static/admin/user-management/new.html +1 -1
- fides/ui-build/static/admin/user-management/profile/[id].html +1 -1
- fides/ui-build/static/admin/user-management.html +1 -1
- fides/api/service/privacy_request/dsr_package/templates/welcome.html +0 -66
- fides/ui-build/static/admin/_next/static/chunks/1099-31f9d973bc287df8.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/1316-2606e19807c08aa5.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/1437-8b1f6c8797c68bfd.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/1467-8808ec8836e033f9.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/155-f6302d32cba4cab6.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/1817-2d5cf537a2992c79.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/2121.1de2fa060eae34aa.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/2921-34a43f2f8f5e5e69.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/2962-342ad1b4ab402ded.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/3377-988ac2f3a2e8d5d4.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/3446-f40c352c43ac950c.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/346-aa3b88efb85f2e28.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/3696-6f90e41a53d22920.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/3700-f695f2f6b8251971.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/3772-9f1713f9d5f97a10.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/3873-d18e47b327445db5.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/3923-f0a85dc5c3684fa0.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/4496-4ff19366c597ec16.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/4817-1f3e6ea38625d8d5.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/5163-e682273cd76a7d07.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/5258-62d6bc19add60aa6.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/5279-bd6cccabdd6ca447.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/549-28537a6de666944b.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/5619-9b50cec521203989.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/5643-3459282d296a3c59.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/6277-3759894435cb8569.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/6315-e2fb5ea77179a871.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/6344-ca66a6e10d128179.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/6419-11d67f7fd4e2f247.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/6954-84789a4e4fb04eb9.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/699-8ca44b0de9fa20f0.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/7059-2bb7c38578549703.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/7202.3febe9e89640c712.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/7476-a02d970ea4d3f7d0.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/7488-cf92601852e3c509.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/7630-a11610c2b31ab2ca.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/7773-9ae233109bc64ec2.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/796-e36d610066135f8c.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/8011-75af8b480fa114e6.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/8373-22b4d20e8cc06b3a.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/8765-f622a35b40a7ec63.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/9037-453224ba3ee65b13.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/9046-d9c6498368b993d1.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/9187-7438242f0d380bb0.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/9278-08cc704317fe535e.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/9330-f753636a31c4ea04.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/9682-d1a3afa1394f8304.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/9729-fcf6ff4e3534e4a8.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/9899-d6437facac926264.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/9965-25621dd507e0cfd6.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/consent/configure-9af75caefc74eaca.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/consent/privacy-notices-6528eb24165aceb6.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/consent/reporting-11f1683aa15e1a62.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/data-catalog/[systemId]/projects/[projectUrn]/[resourceUrn]-32bd7a7c990e5bf6.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/data-catalog/[systemId]/projects/[projectUrn]-d60761c20382b259.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/data-catalog/[systemId]/projects-07e7d38ce34e1e6c.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/data-catalog/[systemId]/resources/[resourceUrn]-b07a0707f8c2ec0d.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/data-catalog/[systemId]/resources-aed94957009eb3fd.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/data-catalog-127c114dd8f102ed.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/action-center/datastore/[monitorId]-5aa7a9fa96160de8.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/action-center/website/[monitorId]/[systemId]-899bf30dde8b3292.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/action-center/website/[monitorId]-73085f50abb775c0.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/action-center-823d0dd77e66585b.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/activity-24a82e07a0008516.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/datamap-3b100c44ea9e3988.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/dataset/[datasetId]-6fbe2b584a509226.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/dataset/new-3d1e48f4b95d7f6b.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/dataset-d3c6ecf7f29bea6e.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/datastore-connection/[id]-0a4aa42be2da0255.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/datastore-connection/new-14313e441a13192c.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/datastore-connection-f139d1ce26404f30.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/integrations/[id]-b2d3d28b10a758e6.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/integrations-a733e5d7c3ce9bb8.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/new-privacy-requests-df0c95e408c54c7e.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/notifications/digests-aed9afd988a48acf.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/notifications/providers-36a0ac36062abd02.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/notifications/templates-a14c876b49422597.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/poc/ant-components-9cfb469de7b4aeab.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/poc/form-experiments/AntForm-e715cc654fb6a5cd.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/poc/form-experiments/FormikAntFormItem-72ae299bcb6adae6.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/poc/form-experiments/FormikControlled-2337f8c81a766eb0.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/poc/form-experiments/FormikField-0af454f55494f6fa.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/poc/forms-d1b90ffa996fbd89.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/poc/table-migration-19724b9e0581b96d.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/privacy-requests/[id]-cdd3754289a28317.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/privacy-requests/configure/storage-cc41ae605f2b55ae.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/privacy-requests-6e4c535b6d614596.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/reporting/datamap-632b3ee563d070f2.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/sandbox/privacy-notices-afe921f6e2a526fb.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/settings/consent-5b6807dced8d03c5.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/settings/custom-fields/[id]-8634aae3259def37.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/settings/custom-fields/new-2d9dcca17965dc57.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/settings/custom-fields-7dce52bfc1b2652c.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/settings/privacy-requests-084a2b4431d35322.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/systems/configure/[id]/test-datasets-b72d36243a0a545c.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/systems-cfaa37a0df83674b.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/taxonomy-56a5434969cbe9ba.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/user-management-e6a211d8a0401086.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/webpack-c2c11809187b9f84.js +0 -1
- fides/ui-build/static/admin/_next/static/css/d41a048a166d50e4.css +0 -1
- fides/ui-build/static/admin/_next/static/css/d78390d6134d8328.css +0 -1
- fides/ui-build/static/admin/_next/static/wCNFtmYQhEDMaMPeBB4BM/_buildManifest.js +0 -1
- fides/ui-build/static/admin/poc/table-migration.html +0 -1
- {ethyca_fides-2.73.2b0.dist-info → ethyca_fides-2.76.0rc2.dist-info}/WHEEL +0 -0
- {ethyca_fides-2.73.2b0.dist-info → ethyca_fides-2.76.0rc2.dist-info}/entry_points.txt +0 -0
- {ethyca_fides-2.73.2b0.dist-info → ethyca_fides-2.76.0rc2.dist-info}/licenses/LICENSE +0 -0
- {ethyca_fides-2.73.2b0.dist-info → ethyca_fides-2.76.0rc2.dist-info}/top_level.txt +0 -0
- /fides/ui-build/static/admin/_next/static/{wCNFtmYQhEDMaMPeBB4BM → l2vgGUHB04Fi4oEVlVMrc}/_ssgManifest.js +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4231],{95372:function(e){e.exports=function(e,t,s,n){for(var a=e.length,i=s+(n?1:-1);n?i--:++i<a;)if(t(e[i],i,e))return i;return -1}},74833:function(e,t,s){var n=s(56127),a=/^\s+/;e.exports=function(e){return e?e.slice(0,n(e)+1).replace(a,""):e}},56632:function(e,t,s){var n=s(89278),a=s(80068),i=s(50098);e.exports=function(e){return function(t,s,r){var o=Object(t);if(!a(t)){var l=n(s,3);t=i(t),s=function(e){return l(o[e],e,o)}}var d=e(t,s,r);return d>-1?o[l?t[d]:d]:void 0}}},56127:function(e){var t=/\s/;e.exports=function(e){for(var s=e.length;s--&&t.test(e.charAt(s)););return s}},64925:function(e,t,s){var n=s(56632)(s(66259));e.exports=n},66259:function(e,t,s){var n=s(95372),a=s(89278),i=s(47991),r=Math.max;e.exports=function(e,t,s){var o=null==e?0:e.length;if(!o)return -1;var l=null==s?0:i(s);return l<0&&(l=r(o+l,0)),n(e,a(t,3),l)}},94919:function(e,t,s){var n=s(91936),a=1/0;e.exports=function(e){return e?(e=n(e))===a||e===-a?(e<0?-1:1)*17976931348623157e292:e==e?e:0:0===e?e:0}},47991:function(e,t,s){var n=s(94919);e.exports=function(e){var t=n(e),s=t%1;return t==t?s?t-s:t:0}},91936:function(e,t,s){var n=s(74833),a=s(11611),i=s(55193),r=0/0,o=/^[-+]0x[0-9a-f]+$/i,l=/^0b[01]+$/i,d=/^0o[0-7]+$/i,c=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(i(e))return r;if(a(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=a(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=n(e);var s=l.test(e);return s||d.test(e)?c(e.slice(2),s?2:8):o.test(e)?r:+e}},66248:function(e,t,s){(window.__NEXT_P=window.__NEXT_P||[]).push(["/data-catalog",function(){return s(99375)}])},79789:function(e,t,s){"use strict";s.d(t,{Hn:function(){return o},XU:function(){return r},Z5:function(){return l},aG:function(){return u},cB:function(){return i},hX:function(){return c},vQ:function(){return d}});var n=s(24246),a=s(39158);let i=e=>{let{text:t,...s}=e;return(0,n.jsx)(a.X6q,{fontSize:"sm",mt:4,mb:1,...s,children:t})},r=e=>{let{children:t}=e;return(0,n.jsx)(a.xvT,{fontSize:"14px",mb:4,children:t})},o=e=>{let{children:t,href:s}=e;return(0,n.jsx)(a.rUS,{href:s,textDecoration:"underline",isExternal:!0,children:t})},l=e=>{let{children:t}=e;return(0,n.jsx)(a.QI$,{fontSize:"14px",mb:4,children:t})},d=e=>{let{children:t}=e;return(0,n.jsx)(a.GSI,{fontSize:"14px",mb:4,ml:6,children:t})},c=e=>{let{children:t}=e;return(0,n.jsx)(a.EKh,{display:"block",whiteSpace:"pre",p:4,mb:4,overflowX:"scroll",children:t})},u=e=>{let{data:t}=e;return(0,n.jsxs)(a.iA_,{fontSize:"14px",children:[(0,n.jsx)(a.hrZ,{children:(0,n.jsxs)(a.Tr,{children:[(0,n.jsx)(a.Th,{children:"Permission"}),(0,n.jsx)(a.Th,{children:"Description"})]})}),(0,n.jsx)(a.p3B,{children:t.map(e=>(0,n.jsxs)(a.Tr,{children:[(0,n.jsx)(a.Td,{children:(0,n.jsx)(a.Vp9,{children:e.permission})}),(0,n.jsx)(a.Td,{children:e.description})]},e.permission))})]})}},20987:function(e,t,s){"use strict";var n,a,i,r;s.d(t,{H:function(){return n},J:function(){return a}}),(i=n||(n={})).STRING="string",i.STRING_ARRAY="string[]",(r=a||(a={})).SYSTEM="system",r.DATA_USE="data use",r.DATA_CATEGORY="data category",r.DATA_SUBJECT="data subject",r.PRIVACY_DECLARATION="privacy declaration"},79283:function(e,t,s){"use strict";s.d(t,{l:function(){return c}});var n=s(24246),a=s(39158),i=s(72707),r=s.n(i);let o=e=>{let{data:{formattedTitle:t,description:s,name:i,primaryName:r}}=e;return(0,n.jsxs)(a.jqI,{gap:12,title:"".concat(t," - ").concat(s),children:[(0,n.jsxs)("div",{children:[(0,n.jsx)("strong",{children:r||i}),r&&": ".concat(i)]}),(0,n.jsx)("em",{className:"overflow-hidden text-ellipsis",children:s})]})},l=e=>"options"in e&&Array.isArray(e.options),d=e=>({...e,className:r().option,formattedTitle:e.formattedTitle||[e.primaryName,e.name].filter(e=>e).join(": ")}),c=e=>{let{options:t,...s}=e,i=null==t?void 0:t.map(e=>l(e)?{...e,options:e.options.map(d)}:d(e));return(0,n.jsx)(a.WPr,{options:i,filterOption:(e,t)=>{var s,n;return(null==t?void 0:null===(s=t.formattedTitle)||void 0===s?void 0:s.toLowerCase().includes(e.toLowerCase()))||(null==t?void 0:null===(n=t.value)||void 0===n?void 0:n.toLowerCase().includes(e.toLowerCase()))||!1},optionFilterProp:"label",autoFocus:!0,variant:"borderless",optionRender:o,styles:{popup:{root:{minWidth:"500px"}}},className:"w-full p-0","data-testid":"taxonomy-select",...s})}},97181:function(e,t,s){"use strict";s.d(t,{d:function(){return d}});var n=s(24246),a=s(39158),i=s(34090),r=s(27378),o=s(46238),l=s(40324);let d=e=>{let{name:t,label:s,labelProps:d,tooltip:c,isRequired:u,layout:m="inline",helperText:p,...x}=e,[v,f,{setValue:g}]=(0,i.U$)(t),j=!!(f.touched&&f.error),[h,y]=(0,r.useState)("");v.value||"tags"!==x.mode&&"multiple"!==x.mode||(v.value=[]),"tags"===x.mode&&"string"==typeof v.value&&(v.value=[v.value]);let b="tags"===x.mode?(e,t)=>e?e.value!==h||v.value.includes(h)?x.optionRender?x.optionRender(e,t):e.label:'Create "'.concat(h,'"'):void 0:x.optionRender||void 0,_=e=>{y(e),x.onSearch&&x.onSearch(e)},C=(e,t)=>{g(e),x.onChange&&x.onChange(e,t)};return"inline"===m?(0,n.jsx)(a.NIc,{isInvalid:j,isRequired:u,children:(0,n.jsxs)(a.rjZ,{templateColumns:s?"1fr 3fr":"1fr",children:[s?(0,n.jsx)(l.__,{htmlFor:x.id||t,...d,children:s}):null,(0,n.jsxs)(a.jqI,{align:"center",children:[(0,n.jsxs)(a.jqI,{vertical:!0,flex:1,className:"mr-2",children:[(0,n.jsx)(a.WPr,{...v,id:x.id||t,"data-testid":"controlled-select-".concat(v.name),...x,optionRender:b,onSearch:"tags"===x.mode?_:void 0,onChange:C,value:v.value||void 0,status:j?"error":void 0}),p&&(0,n.jsx)(a.Q6r,{children:p}),(0,n.jsx)(l.Bc,{isInvalid:j,message:f.error,fieldName:v.name})]}),(0,n.jsx)(o.b,{label:c,className:j?"mt-2 self-start":void 0})]})]})}):(0,n.jsx)(a.NIc,{isInvalid:j,isRequired:u,children:(0,n.jsxs)(a.gCW,{alignItems:"start",children:[(0,n.jsxs)(a.jqI,{align:"center",children:[s?(0,n.jsx)(l.__,{htmlFor:x.id||t,fontSize:"xs",my:0,mr:1,...d,children:s}):null,(0,n.jsx)(o.b,{label:c})]}),(0,n.jsx)(a.WPr,{...v,id:x.id||t,"data-testid":"controlled-select-".concat(v.name),...x,optionRender:b,onSearch:"tags"===x.mode?_:void 0,onChange:C,value:v.value||void 0,status:j?"error":void 0}),p&&(0,n.jsx)(a.Q6r,{style:{marginTop:0},children:p}),(0,n.jsx)(l.Bc,{isInvalid:j,message:f.error,fieldName:v.name})]})})}},34929:function(e,t,s){"use strict";var n=s(24246),a=s(64925),i=s.n(a),r=s(27378),o=s(16134),l=s(30002),d=s(28079),c=s(57072);let u=()=>{let{isLoading:e}=(0,d.fd)(),t=(0,o.C)(d.U3),{isLoading:s}=(0,c.MO)(),n=(0,o.C)(c.qb),{isLoading:a}=(0,l.te)();return{dataUses:t,dataSubjects:(0,o.C)(l.ZL),dataCategories:n,isLoading:e||s||a}};t.Z=()=>{let{dataUses:e,dataCategories:t,dataSubjects:s,isLoading:a}=u(),o=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return e.split(".").slice(0,t).join(".")},l=function(e,t){let s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,n=t(e);if(!n)return{};let a=t(o(e,s)),i=!!n.parent_key;return{name:n.name||void 0,primaryName:i&&(null==a?void 0:a.name)!==n.name&&(null==a?void 0:a.name)||void 0}},d=function(e,t){let s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,{name:a,primaryName:i}=l(e,t,s);return a?i?(0,n.jsxs)(r.Fragment,{children:[(0,n.jsxs)("strong",{children:[i,":"]})," ",a]},e):(0,n.jsx)("strong",{children:a},e):e},c=t=>i()(e,{fides_key:t}),m=e=>i()(t,{fides_key:e}),p=e=>i()(s,{fides_key:e});return{getDataUses:()=>e,getDataUseByKey:c,getDataUseDisplayName:e=>d(e,c,1),getDataUseDisplayNameProps:e=>l(e,c,1),getDataCategories:()=>t,getDataCategoryByKey:m,getDataCategoryDisplayName:e=>d(e,m,2),getDataCategoryDisplayNameProps:e=>l(e,m,2),getDataSubjects:()=>s,getDataSubjectByKey:p,getDataSubjectDisplayName:e=>{let t=p(e);return t?t.name:e},getDataSubjectDisplayNameProps:e=>{let t=p(e);return t?{name:t.name||e}:{}},getPrimaryKey:o,isLoading:a}}},8133:function(e,t,s){"use strict";var n=s(24246),a=s(39158);t.Z=e=>{let{title:t,children:s,isOpen:i,onClose:r,modalContentProps:o,showCloseButton:l=!1,footer:d,...c}=e;return(0,n.jsxs)(a.u_l,{isOpen:i,onClose:r,isCentered:!0,scrollBehavior:"inside",size:"xl",id:"add-modal",...c,children:[(0,n.jsx)(a.ZAr,{}),(0,n.jsxs)(a.hzk,{textAlign:"left",p:0,"data-testid":"add-modal-content",...o,children:[l&&(0,n.jsx)(a.olH,{}),(0,n.jsx)(a.xBx,{p:0,children:(0,n.jsx)(a.xuv,{backgroundColor:"gray.50",px:6,py:4,border:"1px",borderColor:"gray.200",borderTopRadius:6,display:"flex",justifyContent:"space-between",alignItems:"center",children:(0,n.jsx)(a.X6q,{as:"h3",size:"sm",children:t})})}),(0,n.jsx)(a.fef,{pb:4,overflow:"auto",children:s}),d&&(0,n.jsx)(a.mzw,{children:d})]})]})}},79609:function(e,t,s){"use strict";s.d(t,{N4:function(){return r},UG:function(){return a},xw:function(){return i}});var n=s(54427);let{useGetCatalogSystemsQuery:a,useGetCatalogProjectsQuery:i,useGetCatalogDatasetsQuery:r}=s(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,n.oM)({name:"dataCatalog",initialState:{page:1,pageSize:50},reducers:{}})},81406:function(e,t,s){"use strict";var n=s(24246),a=s(39158);t.Z=()=>(0,n.jsxs)(a.gCW,{mt:6,p:10,spacing:4,borderRadius:"base",maxW:"70%","data-testid":"empty-state",alignSelf:"center",margin:"auto",children:[(0,n.jsx)(a.xvT,{fontSize:"md",fontWeight:"600",children:"No resources found"}),(0,n.jsx)(a.xvT,{fontSize:"sm",children:"You're up to date!"})]})},57072:function(e,t,s){"use strict";s.d(t,{Bd:function(){return n.Bd},L5:function(){return n.L5},MO:function(){return n.MO},qb:function(){return n.qb}});var n=s(5785)},99375:function(e,t,s){"use strict";s.r(t),s.d(t,{default:function(){return L}});var n=s(24246),a=s(77213),i=s(58754),r=s(92222),o=s(59003),l=s(86677),d=s(27378),c=s(77830),u=s(47935),m=s(16394),p=s(79609),x=s(81406),v=s(39158),f=s(79789),g=s(83099),j=s(34929),h=s(34090),y=s(55484),b=s(97181),_=s(40324),C=s(8133),w=s(54748),S=s(28325),k=s(34151),N=s.n(k);let R=y.Ry().shape({data_use:y.Z_().required("Data use is required")});var D=e=>{let{isOpen:t,onClose:s,onSave:a,declaration:i}=e,{getDataUses:r,getDataCategories:o,getDataSubjects:l}=(0,j.Z)(),{isOpen:d,onToggle:c}=(0,v.qY0)(),u=r().map(e=>({label:e.fides_key,value:e.fides_key})),m=o().map(e=>({label:e.fides_key,value:e.fides_key})),p=l().map(e=>({label:e.fides_key,value:e.fides_key})),{legalBasisOptions:x}=(0,w.Z)(),{specialCategoryLegalBasisOptions:f}=(0,S.Z)();return(0,n.jsx)(h.J9,{initialValues:i,enableReinitialize:!0,onSubmit:e=>{a(e),s()},validationSchema:R,children:e=>{let{dirty:a,isValid:i,values:r,resetForm:o}=e;return(0,n.jsx)(C.Z,{title:"Edit data use",isOpen:t,onClose:s,children:(0,n.jsxs)(h.l0,{children:[(0,n.jsxs)(v.jqI,{vertical:!0,className:"gap-6 py-4",children:[(0,n.jsx)(b.d,{name:"data_use",label:"Data use",options:u,layout:"stacked",isRequired:!0}),(0,n.jsx)(b.d,{name:"data_categories",label:"Data categories",options:m,mode:"multiple",layout:"stacked"}),(0,n.jsx)(b.d,{name:"data_subjects",label:"Data subjects",options:p,mode:"multiple",layout:"stacked"}),(0,n.jsx)(_.j0,{name:"name",label:"Declaration name",variant:"stacked"}),(0,n.jsxs)(v.jqI,{vertical:!0,className:"gap-6 p-4 ".concat(N().advancedSettings),children:[(0,n.jsxs)(v.jqI,{className:"cursor-pointer justify-between",onClick:c,children:[(0,n.jsx)(v.xvT,{fontSize:"xs",children:"Advanced settings"}),(0,n.jsx)(v.v4q,{className:d?"rotate-180":void 0})]}),(0,n.jsx)(v.UO1,{in:d,children:(0,n.jsxs)(v.jqI,{vertical:!0,className:"gap-4",children:[(0,n.jsx)(b.d,{name:"legal_basis_for_processing",label:"Legal basis for processing",options:x,layout:"stacked"}),(0,n.jsx)(v.UO1,{in:(null==r?void 0:r.legal_basis_for_processing)==="Legitimate interests",animateOpacity:!0,style:{overflow:"visible"},children:(0,n.jsx)("div",{className:"mt-4",children:(0,n.jsx)(_.j0,{name:"impact_assessment_location",label:"Impact assessment location",tooltip:"Where is the legitimate interest impact assessment stored?",variant:"stacked"})})}),(0,n.jsx)(_.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,n.jsx)(_.j0,{name:"retention_period",label:"Retention period (days)",tooltip:"How long is personal data retained for this purpose?",variant:"stacked"}),(0,n.jsxs)(v.Kqy,{spacing:0,children:[(0,n.jsx)(_.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,n.jsx)(v.UO1,{in:null==r?void 0:r.processes_special_category_data,animateOpacity:!0,style:{overflow:"visible"},children:(0,n.jsx)("div",{className:"mt-4",children:(0,n.jsx)(b.d,{isRequired:!0,name:"special_category_legal_basis",label:"Legal basis for processing",options:f,tooltip:"What is the legal basis under which the special category data is processed?",layout:"stacked"})})})]})]})})]})]}),(0,n.jsxs)("div",{className:"flex w-full justify-between",children:[(0,n.jsx)(v.wpx,{onClick:()=>{o(),s()},children:"Cancel"}),(0,n.jsx)(v.wpx,{type:"primary",htmlType:"submit",disabled:!a||!i,loading:!1,"data-testid":"save-btn",children:"Save"})]})]})})}})},T=s(26183),q=s(3765);let I=e=>({data_use:e,data_categories:["system"]});var z=e=>{var t,s;let{system:a}=e,[i,r]=(0,d.useState)(!1),[o,l]=(0,d.useState)(void 0),{getDataUseDisplayName:c}=(0,j.Z)(),{isOpen:u,onOpen:m,onClose:p}=(0,v.qY0)(),x=e=>{l(e),m()},{createDataUse:f,deleteDeclarationByDataUse:h,updateDataUse:y}=(0,q.Z)(a),b=null!==(s=null===(t=a.privacy_declarations)||void 0===t?void 0:t.map(e=>e.data_use))&&void 0!==s?s:[];return(0,n.jsxs)(T.Z,{children:[!i&&(0,n.jsxs)(n.Fragment,{children:[b.map((e,t)=>(0,n.jsxs)(v.j8w,{"data-testid":"data-use-".concat(e),color:"white",onClick:()=>x(a.privacy_declarations[t]),closable:!0,onClose:()=>h(e),closeButtonLabel:"Remove data use",children:[(0,n.jsx)(v.PJP.I8b,{size:10}),c(e)]},e)),(0,n.jsx)(v.j8w,{onClick:()=>r(!0),"data-testid":"taxonomy-add-btn",addable:!0,"aria-label":"Add data use"}),(0,n.jsx)(D,{isOpen:u,onClose:p,onSave:e=>y(o,e),declaration:o})]}),i&&(0,n.jsx)(v.xuv,{className:"select-wrapper",position:"absolute",zIndex:10,top:"0",left:"0",width:"100%",height:"max",bgColor:"#fff",children:(0,n.jsx)(g.Z,{onChange:e=>{f(I(e)),r(!1)},selectedTaxonomies:b,onBlur:()=>r(!1),open:!0})})]})},P=e=>{var t;let{system:s,onEdit:a,onClose:i}=e;return(0,n.jsxs)(v.dys,{isOpen:!!s,onClose:i,size:"md",children:[(0,n.jsx)(v.P1B,{}),(0,n.jsxs)(v.scA,{"data-testid":"system-details",children:[(0,n.jsx)(v.OXI,{children:(null==s?void 0:s.name)||(null==s?void 0:s.fides_key)}),(0,n.jsx)(v.cCv,{}),(0,n.jsxs)(v.Ng0,{children:[(0,n.jsx)(f.cB,{text:"Title",mt:0}),(0,n.jsx)(f.XU,{children:null!==(t=null==s?void 0:s.name)&&void 0!==t?t:null==s?void 0:s.fides_key}),(null==s?void 0:s.description)&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(f.cB,{text:"Description"}),(0,n.jsx)(f.XU,{children:null==s?void 0:s.description})]}),(0,n.jsx)(f.cB,{text:"Data uses"}),(0,n.jsx)(z,{system:s})]}),(0,n.jsx)(v.zeN,{children:(0,n.jsx)(v.wpx,{onClick:a,"data-testid":"edit-system-btn",children:"Edit system"})})]})]})},A=e=>{let{onDetailClick:t}=e;return(0,n.jsxs)(v.v2r,{children:[(0,n.jsx)(v.j2t,{as:v.wpx,size:"small",type:"text",className:"max-w-4",icon:(0,n.jsx)(v.nXP,{transform:"rotate(90deg)",ml:2}),"data-testid":"system-actions-menu"}),(0,n.jsx)(v.qyq,{children:t&&(0,n.jsx)(v.sNh,{onClick:t,"data-testid":"view-system-details",children:"View details"})})]})},E=s(70675);let O={items:[],total:0,page:1,size:50,pages:1},Z=(0,r.Cl)();var B=()=>{let[e,t]=(0,d.useState)({}),s=(0,l.useRouter)(),{PAGE_SIZES:a,pageSize:i,setPageSize:v,onPreviousPageClick:f,isPreviousPageDisabled:g,onNextPageClick:j,isNextPageDisabled:h,startRange:y,endRange:b,pageIndex:_,setTotalPages:C}=(0,u.oi)(),{data:w,isLoading:S}=(0,p.UG)({page:_,size:i,show_hidden:!1}),[k]=(0,E.j3)(),{items:N,total:R,pages:D}=(0,d.useMemo)(()=>null!=w?w:O,[w]);(0,d.useEffect)(()=>{C(D)},[D,C]);let[T,q]=(0,d.useState)(void 0),I=(0,d.useMemo)(()=>N.find(e=>e.fides_key===T),[N,T]),B=async e=>{var t,n;let a=await k({connection_config_key:e.connection_configs.key,page:1,size:1}),i=!!(null==a?void 0:null===(t=a.data)||void 0===t?void 0:t.total),r=(0,m.du)(null!==(n=e.monitor_config_keys)&&void 0!==n?n:[],"monitor_config_ids"),o="".concat(c.mX,"/").concat(e.fides_key,"/").concat(i?"projects":"resources","?").concat(r);s.push(o)},L=(0,d.useMemo)(()=>[Z.accessor(e=>e.name,{id:"name",cell:e=>{var t;let{getValue:s,row:a}=e;return(0,n.jsx)(u.G3,{value:s(),fontWeight:(null===(t=a.original.connection_configs)||void 0===t?void 0:t.key)?"semibold":"normal"})},header:e=>(0,n.jsx)(u.Rr,{value:"Name",...e})}),Z.display({id:"data-uses",cell:e=>{let{row:t}=e;return(0,n.jsx)(z,{system:t.original})},header:e=>(0,n.jsx)(u.Rr,{value:"Data uses",...e}),meta:{disableRowClick:!0},minSize:280}),Z.display({id:"actions",cell:e=>(0,n.jsx)(A,{onDetailClick:()=>q(e.row.original.fides_key)}),maxSize:20,enableResizing:!1,meta:{cellProps:{borderLeft:"none"},disableRowClick:!0}})],[]),M=(0,o.b7)({getCoreRowModel:(0,r.sC)(),getGroupedRowModel:(0,r.qe)(),getExpandedRowModel:(0,r.rV)(),getRowId:e=>e.fides_key,manualPagination:!0,columnResizeMode:"onChange",columns:L,data:N,onRowSelectionChange:t,state:{rowSelection:e}});return S?(0,n.jsx)(u.I4,{rowHeight:36,numRows:36}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(u.ZK,{tableInstance:M,emptyTableNotice:(0,n.jsx)(x.Z,{}),onRowClick:B,getRowIsClickable:e=>{var t;return!!(null===(t=e.connection_configs)||void 0===t?void 0:t.key)}}),(0,n.jsx)(u.s8,{totalRows:R||0,pageSizes:a,setPageSize:v,onPreviousPageClick:f,isPreviousPageDisabled:g,onNextPageClick:j,isNextPageDisabled:h,startRange:y,endRange:b}),(0,n.jsx)(P,{system:I,onClose:()=>q(void 0),onEdit:()=>s.push({pathname:c.Dv,query:{id:T}})})]})},L=()=>(0,n.jsxs)(a.Z,{title:"Data catalog",children:[(0,n.jsx)(i.Z,{heading:"Data catalog",breadcrumbItems:[{title:"All systems"}]}),(0,n.jsx)(B,{})]})},31883:function(e,t,s){"use strict";s.d(t,{Bw:function(){return n.Bw},D4:function(){return n.D4}});var n=s(19043)},72707:function(e){e.exports={option:"TaxonomySelect_option__vY6v2"}},34151:function(e){e.exports={advancedSettings:"EditMinimalDataUseModal_advancedSettings___i9jS"}}},function(e){e.O(0,[3150,2888,9774,179],function(){return e(e.s=66248)}),_N_E=e.O()}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6721],{58095:function(e,t,n){var r=n(8817);e.exports=function(e,t){return!!(null==e?0:e.length)&&r(e,t,0)>-1}},21796:function(e){e.exports=function(e,t,n){for(var r=-1,l=null==e?0:e.length;++r<l;)if(n(t,e[r]))return!0;return!1}},95372:function(e){e.exports=function(e,t,n,r){for(var l=e.length,a=n+(r?1:-1);r?a--:++a<l;)if(t(e[a],a,e))return a;return -1}},8817:function(e,t,n){var r=n(95372),l=n(1129),a=n(58263);e.exports=function(e,t,n){return t==t?a(e,t,n):r(e,l,n)}},1129:function(e){e.exports=function(e){return e!=e}},92198:function(e,t,n){var r=n(52485),l=n(58095),a=n(21796),i=n(65581),s=n(47111),o=n(43735);e.exports=function(e,t,n){var c=-1,d=l,u=e.length,p=!0,f=[],h=f;if(n)p=!1,d=a;else if(u>=200){var y=t?null:s(e);if(y)return o(y);p=!1,d=i,h=new r}else h=t?[]:f;e:for(;++c<u;){var g=e[c],m=t?t(g):g;if(g=n||0!==g?g:0,p&&m==m){for(var _=h.length;_--;)if(h[_]===m)continue e;t&&h.push(m),f.push(g)}else d(h,m,n)||(h!==f&&h.push(m),f.push(g))}return f}},56632:function(e,t,n){var r=n(89278),l=n(80068),a=n(50098);e.exports=function(e){return function(t,n,i){var s=Object(t);if(!l(t)){var o=r(n,3);t=a(t),n=function(e){return o(s[e],e,s)}}var c=e(t,n,i);return c>-1?s[o?t[c]:c]:void 0}}},47111:function(e,t,n){var r=n(46151),l=n(50344),a=n(43735),i=r&&1/a(new r([,-0]))[1]==1/0?function(e){return new r(e)}:l;e.exports=i},58263:function(e){e.exports=function(e,t,n){for(var r=n-1,l=e.length;++r<l;)if(e[r]===t)return r;return -1}},64925:function(e,t,n){var r=n(56632)(n(66259));e.exports=r},66259:function(e,t,n){var r=n(95372),l=n(89278),a=n(47991),i=Math.max;e.exports=function(e,t,n){var s=null==e?0:e.length;if(!s)return -1;var o=null==n?0:a(n);return o<0&&(o=i(s+o,0)),r(e,l(t,3),o)}},50344:function(e){e.exports=function(){}},94919:function(e,t,n){var r=n(91936),l=1/0;e.exports=function(e){return e?(e=r(e))===l||e===-l?(e<0?-1:1)*17976931348623157e292:e==e?e:0:0===e?e:0}},47991:function(e,t,n){var r=n(94919);e.exports=function(e){var t=r(e),n=t%1;return t==t?n?t-n:t:0}},83766:function(e,t,n){var r=n(92198);e.exports=function(e){return e&&e.length?r(e):[]}},83806:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/data-discovery/action-center/datastore/[monitorId]",function(){return n(73662)}])},20987:function(e,t,n){"use strict";var r,l,a,i;n.d(t,{H:function(){return r},J:function(){return l}}),(a=r||(r={})).STRING="string",a.STRING_ARRAY="string[]",(i=l||(l={})).SYSTEM="system",i.DATA_USE="data use",i.DATA_CATEGORY="data category",i.DATA_SUBJECT="data subject",i.PRIVACY_DECLARATION="privacy declaration"},12627:function(e,t,n){"use strict";var r=n(24246),l=n(79283),a=n(34929);t.Z=e=>{let{selectedTaxonomies:t,showDisabled:n=!1,...i}=e,{getDataCategoryDisplayNameProps:s,getDataCategories:o}=(0,a.Z)(),c=(n?o():o().filter(e=>e.active)).filter(e=>!(null==t?void 0:t.includes(e.fides_key))).map(e=>{let{name:t,primaryName:n}=s(e.fides_key);return{value:e.fides_key,name:t,primaryName:n,description:e.description||"",label:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("strong",{children:n||t}),n&&": ".concat(t)]}),title:e.fides_key}});return(0,r.jsx)(l.l,{options:c,...i})}},79283:function(e,t,n){"use strict";n.d(t,{l:function(){return d}});var r=n(24246),l=n(39158),a=n(72707),i=n.n(a);let s=e=>{let{data:{formattedTitle:t,description:n,name:a,primaryName:i}}=e;return(0,r.jsxs)(l.jqI,{gap:12,title:"".concat(t," - ").concat(n),children:[(0,r.jsxs)("div",{children:[(0,r.jsx)("strong",{children:i||a}),i&&": ".concat(a)]}),(0,r.jsx)("em",{className:"overflow-hidden text-ellipsis",children:n})]})},o=e=>"options"in e&&Array.isArray(e.options),c=e=>({...e,className:i().option,formattedTitle:e.formattedTitle||[e.primaryName,e.name].filter(e=>e).join(": ")}),d=e=>{let{options:t,...n}=e,a=null==t?void 0:t.map(e=>o(e)?{...e,options:e.options.map(c)}:c(e));return(0,r.jsx)(l.WPr,{options:a,filterOption:(e,t)=>{var n,r;return(null==t?void 0:null===(n=t.formattedTitle)||void 0===n?void 0:n.toLowerCase().includes(e.toLowerCase()))||(null==t?void 0:null===(r=t.value)||void 0===r?void 0:r.toLowerCase().includes(e.toLowerCase()))||!1},optionFilterProp:"label",autoFocus:!0,variant:"borderless",optionRender:s,styles:{popup:{root:{minWidth:"500px"}}},className:"w-full p-0","data-testid":"taxonomy-select",...n})}},34929:function(e,t,n){"use strict";var r=n(24246),l=n(64925),a=n.n(l),i=n(27378),s=n(16134),o=n(30002),c=n(28079),d=n(57072);let u=()=>{let{isLoading:e}=(0,c.fd)(),t=(0,s.C)(c.U3),{isLoading:n}=(0,d.MO)(),r=(0,s.C)(d.qb),{isLoading:l}=(0,o.te)();return{dataUses:t,dataSubjects:(0,s.C)(o.ZL),dataCategories:r,isLoading:e||n||l}};t.Z=()=>{let{dataUses:e,dataCategories:t,dataSubjects:n,isLoading:l}=u(),s=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 n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,r=t(e);if(!r)return{};let l=t(s(e,n)),a=!!r.parent_key;return{name:r.name||void 0,primaryName:a&&(null==l?void 0:l.name)!==r.name&&(null==l?void 0:l.name)||void 0}},c=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,{name:l,primaryName:a}=o(e,t,n);return l?a?(0,r.jsxs)(i.Fragment,{children:[(0,r.jsxs)("strong",{children:[a,":"]})," ",l]},e):(0,r.jsx)("strong",{children:l},e):e},d=t=>a()(e,{fides_key:t}),p=e=>a()(t,{fides_key:e}),f=e=>a()(n,{fides_key:e});return{getDataUses:()=>e,getDataUseByKey:d,getDataUseDisplayName:e=>c(e,d,1),getDataUseDisplayNameProps:e=>o(e,d,1),getDataCategories:()=>t,getDataCategoryByKey:p,getDataCategoryDisplayName:e=>c(e,p,2),getDataCategoryDisplayNameProps:e=>o(e,p,2),getDataSubjects:()=>n,getDataSubjectByKey:f,getDataSubjectDisplayName:e=>{let t=f(e);return t?t.name:e},getDataSubjectDisplayNameProps:e=>{let t=f(e);return t?{name:t.name||e}:{}},getPrimaryKey:s,isLoading:l}}},84418:function(e,t,n){"use strict";n.d(t,{d:function(){return c}});var r=n(24246),l=n(39158),a=n(98784),i=n.n(a);let s=e=>{let{itemKey:t,actions:n}=e;return i().isEmpty(n)?null:(0,r.jsx)(l.jqI,{gap:"small",justify:"flex-end",children:n.map((e,a)=>{let{callback:i,label:s,disabled:o}=e;return(0,r.jsx)(l.wpx,{onClick:()=>i(t),type:a===n.length-1?"primary":"default",disabled:o,children:s},s)})})},o=e=>{let{title:t,titleIcon:n,titleTag:a}=e;return(0,r.jsxs)(l.jqI,{align:"center",gap:"small",children:[n,(0,r.jsx)("span",{children:t}),a&&(0,r.jsx)(l.j8w,{...a})]})},c=e=>{let{title:t,titleIcon:n,titleTag:a,actions:i,width:c=480,...d}=e;return(0,r.jsx)(l.To0,{title:(0,r.jsx)(o,{title:t,titleIcon:n,titleTag:a}),footer:d.footer||!i?d.footer:(0,r.jsx)(s,{itemKey:d.itemKey,actions:i}),width:c,...d})}},59001:function(e,t,n){"use strict";n.d(t,{Ch:function(){return o},Lo:function(){return i},_g:function(){return c},ac:function(){return a},aq:function(){return d}});var r,l,a,i,s=n(60240);let o="root";(r=a||(a={})).DATA_CATEGORY="data_category",r.DATA_USE="data_use",r.DATA_SUBJECT="data_subject",r.SYSTEM_GROUP="system_group",(l=i||(i={})).DATA_CATEGORIES="Data categories",l.DATA_USES="Data uses",l.DATA_SUBJECTS="Data subjects",l.SYSTEM_GROUPS="System groups";let c=e=>{switch(e){case"data_category":return"Data categories";case"data_use":return"Data uses";case"data_subject":return"Data subjects";case"system_group":return"System groups";default:return e}},d=e=>{switch(e){case"data_category":return{UPDATE:s.Sh.DATA_CATEGORY_UPDATE,CREATE:s.Sh.DATA_CATEGORY_CREATE,DELETE:s.Sh.DATA_CATEGORY_DELETE,READ:s.Sh.DATA_CATEGORY_READ};case"data_use":return{UPDATE:s.Sh.DATA_USE_UPDATE,CREATE:s.Sh.DATA_USE_CREATE,DELETE:s.Sh.DATA_USE_DELETE,READ:s.Sh.DATA_USE_READ};case"data_subject":return{UPDATE:s.Sh.DATA_SUBJECT_UPDATE,CREATE:s.Sh.DATA_SUBJECT_CREATE,DELETE:s.Sh.DATA_SUBJECT_DELETE,READ:s.Sh.DATA_SUBJECT_READ};case"system_group":return{UPDATE:s.Sh.SYSTEM_GROUP_UPDATE,CREATE:s.Sh.SYSTEM_GROUP_CREATE,DELETE:s.Sh.SYSTEM_GROUP_DELETE,READ:s.Sh.SYSTEM_GROUP_READ};default:return{UPDATE:s.Sh.TAXONOMY_UPDATE,CREATE:s.Sh.TAXONOMY_CREATE,DELETE:s.Sh.TAXONOMY_DELETE,READ:s.Sh.TAXONOMY_READ}}}},90673:function(e,t,n){"use strict";n.d(t,{Cd:function(){return a},Xl:function(){return i}});var r=n(20987),l=n(59001);let a=(e,t)=>{let n;if(null==t&&e.every(e=>void 0===e.parent_key))n=e;else{let r=null!=t?t:null;n=e.filter(e=>e.parent_key===r)}return n.map(t=>{var n,r;let l=t.fides_key;return{value:t.fides_key,label:t.name||t.fides_key,description:t.description,children:a(e,l),is_default:null!==(n=t.is_default)&&void 0!==n&&n,active:null!==(r=t.active)&&void 0!==r&&r}})},i=e=>{switch(e){case l.ac.DATA_CATEGORY:return r.J.DATA_CATEGORY;case l.ac.DATA_SUBJECT:return r.J.DATA_SUBJECT;case l.ac.DATA_USE:return r.J.DATA_USE;default:return e}}},57072:function(e,t,n){"use strict";n.d(t,{Bd:function(){return r.Bd},L5:function(){return r.L5},MO:function(){return r.MO},qb:function(){return r.qb}});var r=n(5785)},39864:function(e,t,n){"use strict";n.d(t,{Cy:function(){return s},EO:function(){return u},Hb:function(){return c},J1:function(){return i},Jy:function(){return l},Km:function(){return d},MU:function(){return r},ci:function(){return a},d9:function(){return o}});let{useGetCustomTaxonomiesQuery:r,useGetTaxonomyQuery:l,useLazyGetTaxonomyQuery:a,useCreateTaxonomyMutation:i,useUpdateTaxonomyMutation:s,useDeleteTaxonomyMutation:o,useCreateCustomTaxonomyMutation:c,useUpdateCustomTaxonomyMutation:d,useDeleteCustomTaxonomyMutation:u}=n(78780).u.injectEndpoints({endpoints:e=>({getTaxonomy:e.query({query:e=>({url:"taxonomies/".concat(e,"/elements")}),providesTags:(e,t,n)=>[{type:"Taxonomy",id:n}],transformResponse:e=>{let t=[],n=[...e],r=n.filter(e=>null===e.parent_key);r.sort((e,t)=>e.fides_key.localeCompare(t.fides_key)),t.push(...r);let l=n.filter(e=>null!==e.parent_key);for(;l.length>0;){let e=l.filter(e=>t.some(t=>t.fides_key===e.parent_key));if(0===e.length){t.push(...l.sort((e,t)=>e.fides_key.localeCompare(t.fides_key)));break}e.sort((e,t)=>e.fides_key.localeCompare(t.fides_key)),t.push(...e),l=l.filter(t=>!e.includes(t))}return t}}),getCustomTaxonomies:e.query({query:()=>({url:"taxonomies"}),providesTags:()=>[{type:"Taxonomy"}]}),createTaxonomy:e.mutation({query:e=>{let{taxonomyType:t,...n}=e;return{url:"taxonomies/".concat(t,"/elements"),method:"POST",body:n}},invalidatesTags:(e,t,n)=>{let{taxonomyType:r}=n;return[{type:"Taxonomy",id:r}]}}),updateTaxonomy:e.mutation({query:e=>{let{taxonomyType:t,...n}=e;return{url:"taxonomies/".concat(t,"/elements/").concat(n.fides_key),method:"PUT",body:n}},invalidatesTags:(e,t,n)=>{let{taxonomyType:r}=n;return[{type:"Taxonomy",id:r}]}}),deleteTaxonomy:e.mutation({query:e=>{let{taxonomyType:t,key:n}=e;return{url:"taxonomies/".concat(t,"/").concat(n),method:"DELETE"}},invalidatesTags:(e,t,n)=>{let{taxonomyType:r}=n;return[{type:"Taxonomy",id:r}]}}),createCustomTaxonomy:e.mutation({query:e=>({url:"taxonomies",method:"POST",body:e}),invalidatesTags:()=>[{type:"Taxonomy"}]}),updateCustomTaxonomy:e.mutation({query:e=>{let{fides_key:t,...n}=e;return{url:"taxonomies/".concat(t),method:"PUT",body:n}},invalidatesTags:()=>[{type:"Taxonomy"}]}),deleteCustomTaxonomy:e.mutation({query:e=>({url:"taxonomies/".concat(e),method:"DELETE"}),invalidatesTags:()=>[{type:"Taxonomy"}]})})})},73662:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return e$}});var r=n(24246),l=n(39158),a=n(25980),i=n(98784),s=n.n(i),o=n(79894),c=n.n(o),d=n(86677),u=n(27378),p=n(43929),f=n(30952),h=n(35287),y=n(17245),g=n(77830),m=n(58754),_=n(9270),v=n(37059),E=n(60240),T=n(62678),A=n(99824),x=n(26917);let S="space",b=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"inclusive",{activeListItem:r=null,enableKeyboardShortcuts:l=!1}=t,[a,i]=(0,u.useState)(n),[o,c]=(0,u.useState)([]),d=(e,t)=>{(("inclusive"===a?t:!t)?"add":"remove")=="add"?c([...o,e]):c(o.filter(t=>t!==e))},f=e=>{i(e),c([])},h=s().difference(e,o),y="inclusive"===a?o:h,g="exclusive"===a?o:h;return(0,p.y1)("h",()=>{f("exclusive")},{enabled:l}),(0,p.y1)("l",()=>{f("inclusive")},{enabled:l}),(0,p.y1)(S,e=>{if(r){e.preventDefault();let t=y.includes(r.key);d(r.key,!t)}},{enabled:l},[r,y,d]),{checkboxProps:{checked:"inclusive"===a?y.length>0&&(null==e?void 0:e.length)===y.length:0===g.length,indeterminate:"inclusive"===a?y.length>0&&(null==e?void 0:e.length)!==y.length:g.length>0,onChange:e=>f(e.target.checked?"exclusive":"inclusive")},excludedKeys:g,listSelectMode:a,resetListSelect:()=>{c([]),i("inclusive")},selectedKeys:y,updateListSelectMode:f,updateSelectedListItem:d}},j=e=>{let{...t}=e;return(0,r.jsx)(l.$zI,{title:"Keyboard shortcuts",footer:null,...t,children:(0,r.jsx)(l.Yfl,{bordered:!0,column:1,items:[{key:"".concat(l.dHR.NAVIGATE_UP,"-").concat(l.dHR.NAVIGATE_DOWN),label:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(l.AntTypography.Text,{keyboard:!0,children:l.dHR.NAVIGATE_DOWN})," ","/"," ",(0,r.jsx)(l.AntTypography.Text,{keyboard:!0,children:l.dHR.NAVIGATE_UP})]}),children:"Activate the next/previous field"},{key:S,label:(0,r.jsx)(l.AntTypography.Text,{keyboard:!0,children:S}),children:"Toggle checkbox of the active field"},{key:"h",label:(0,r.jsx)(l.AntTypography.Text,{keyboard:!0,children:"h"}),children:"Select all fields"},{key:"l",label:(0,r.jsx)(l.AntTypography.Text,{keyboard:!0,children:"l"}),children:"Deselect all fields"},{key:l.dHR.CLEAR_FOCUS,label:(0,r.jsx)(l.AntTypography.Text,{keyboard:!0,children:l.dHR.CLEAR_FOCUS}),children:"Clear the active field"},{key:A.b_.TOGGLE_DRAWER,label:(0,r.jsx)(l.AntTypography.Text,{keyboard:!0,children:A.b_.TOGGLE_DRAWER}),children:"Open/close details drawer for active field"},{key:A.b_.APPROVE,label:(0,r.jsx)(l.AntTypography.Text,{keyboard:!0,children:A.b_.APPROVE}),children:"Approve the active field"},{key:A.b_.PROMOTE,label:(0,r.jsx)(l.AntTypography.Text,{keyboard:!0,children:A.b_.PROMOTE}),children:"Confirm the active field"},{key:A.b_.MUTE,label:(0,r.jsx)(l.AntTypography.Text,{keyboard:!0,children:A.b_.MUTE}),children:"Ignore the active field"},{key:A.b_.OPEN_CLASSIFICATION_SELECT,label:(0,r.jsx)(l.AntTypography.Text,{keyboard:!0,children:A.b_.OPEN_CLASSIFICATION_SELECT}),children:"Edit data categories for the active field"},{key:A.b_.REFRESH,label:(0,r.jsx)(l.AntTypography.Text,{keyboard:!0,children:A.b_.REFRESH}),children:"Refresh the list"},{key:x.M,label:(0,r.jsx)(l.AntTypography.Text,{keyboard:!0,children:"/"}),children:"Focus the search input"},{key:"?",label:(0,r.jsxs)("div",{className:"whitespace-nowrap",children:[(0,r.jsx)(l.AntTypography.Text,{keyboard:!0,children:"?"})," (",(0,r.jsx)(l.AntTypography.Text,{keyboard:!0,children:"shift"}),"+",(0,r.jsx)(l.AntTypography.Text,{keyboard:!0,children:"/"}),")"]}),children:"Open/close this modal"}]})})};var k=n(99089),D=n(83766),C=n.n(D),R=n(16394),O=n(59001),I=n(90673),w=n(39864),P=n(83158),L=n(3124),M=n.n(L);let N="load_more",U="skeleton",F=["Unlabeled","Classifying","In Review","Approved","Confirming...","Confirmed","Removed","Ignored","Error","Removing..."],q=["Confirmed","Ignored","Confirming...","Removing..."],G=e=>e.filter(e=>!q.includes(e)),$={addition:{label:"Unlabeled"},approved:{label:"Approved",color:l.tAb.SUCCESS},classification_addition:{label:"In Review",color:l.tAb.CAUTION},classification_error:{label:"Error",color:l.tAb.ERROR},classification_queued:{label:"Classifying",color:l.tAb.INFO},classification_update:{label:"In Review",color:l.tAb.CAUTION},classifying:{label:"Classifying",color:l.tAb.INFO},monitored:{label:"Confirmed",color:l.tAb.MINOS},muted:{label:"Ignored",color:l.tAb.DEFAULT},promoting:{label:"Confirming...",color:l.tAb.DEFAULT},promotion_error:{label:"Error",color:l.tAb.ERROR},removal:{label:"Removed",color:l.tAb.ERROR},removing:{label:"Removing...",color:l.tAb.DEFAULT},removal_promotion_error:{label:"Error",color:l.tAb.ERROR}},Y={[E.D$.DATABASE]:l.PJP.S9g,[E.D$.FIELD]:l.PJP.sgG,[E.D$.SCHEMA]:l.PJP.ehp,[E.D$.TABLE]:l.PJP.iA_},z={STATUS:"status-section",DATA_CATEGORY:"data-category-section",CONFIDENCE:"confidence-section"},J={[E.Ag.ADDITION]:{color:M().FIDESUI_SUCCESS,tooltip:"This resource was added in the latest scan"},[E.Ag.REMOVAL]:{color:M().FIDESUI_ERROR,tooltip:"This resource was removed in the latest scan"},[E.Ag.CHANGE]:{color:M().FIDESUI_WARNING,tooltip:"This resource was modified in the latest scan"}},B=[P.$.HIGH,P.$.MEDIUM,P.$.LOW,P.$.MANUAL],V=(e,t)=>{if(!e||0===e.length)return[];let n=(e,t)=>{let r=t=>{if(t.value===e)return{title:t.label||e,children:t.children||[]};if(t.children&&t.children.length>0){let r=n(e,t.children);if(r)return r}return null};return t.reduce((e,t)=>null!=e?e:r(t),null)},r=new Map;e.forEach(e=>{let l=e.split(".");l.forEach((e,a)=>{let i=l.slice(0,a+1).join(".");if(!r.has(i)){let e=n(i,t);r.set(i,{title:(null==e?void 0:e.title)||(0,R.kC)(i.split(".").pop()||i),key:i,checkable:!0,selectable:!1})}})});let l=Array.from(r.values()),a=new Map;l.forEach(e=>{let t=e.key.toString().split(".");if(t.length>1){let n=t.slice(0,-1).join(".");a.has(n)||a.set(n,[]),a.get(n).push(e)}});let i=e=>(a.get(e)||[]).map(e=>{let t=i(e.key.toString());return{...e,children:t.length>0?t:void 0,isLeaf:0===t.length}});return l.filter(e=>1===e.key.toString().split(".").length).map(e=>{let t=i(e.key.toString());return{...e,children:t.length>0?t:void 0,isLeaf:0===t.length}})},H=e=>{let{resourceStatus:t,setResourceStatus:n,dataCategory:a,confidenceBucket:i,setDataCategory:s,setConfidenceBucket:o,resetToInitialState:c,monitorId:d,stagedResourceUrn:p}=e,[f,h]=(0,u.useState)(t),[y,g]=(0,u.useState)(a),[m,_]=(0,u.useState)(i),[E,T]=(0,u.useState)([z.STATUS]);(0,u.useEffect)(()=>{h(t)},[t]),(0,u.useEffect)(()=>{_(i)},[i]),(0,u.useEffect)(()=>{g(a)},[a]);let A=p.join(","),x=(0,u.useRef)(!0);(0,u.useEffect)(()=>{if(x.current){x.current=!1;return}c()},[A]);let{data:S,refetch:b}=(0,v.S0)({monitor_config_id:d,staged_resource_urn:p},{refetchOnMountOrArgChange:!0}),[j,{data:k=[]}]=(0,w.ci)();(0,u.useEffect)(()=>{j(O.ac.DATA_CATEGORY)},[j]);let D=(0,u.useMemo)(()=>(0,I.Cd)(k),[k]),L=B.filter(e=>{var t;return null==S?void 0:null===(t=S.confidence_bucket)||void 0===t?void 0:t.includes(e)}),M=(0,u.useMemo)(()=>F.map(e=>({title:e.replace(/\.{3}$/,""),key:e,checkable:!0,selectable:!1,isLeaf:!0})),[]),N=(0,u.useMemo)(()=>(null==S?void 0:S.data_category)&&0!==S.data_category.length?V(S.data_category,D):[],[null==S?void 0:S.data_category,D]),U=[...M.length>0?[{title:"Status",key:z.STATUS,checkable:!0,selectable:!1,isLeaf:!1,children:M}]:[],...L.length>0?[{title:"Confidence",key:z.CONFIDENCE,checkable:!0,selectable:!1,isLeaf:!1,children:L.map(e=>({title:(0,R.kC)(e),key:e,checkable:!0,selectable:!1,isLeaf:!0}))}]:[],...N.length>0?[{title:"Data category",key:z.DATA_CATEGORY,checkable:!0,selectable:!1,isLeaf:!1,children:N}]:[]],q=(0,u.useMemo)(()=>C()([...null!=f?f:[],...null!=y?y:[],...null!=m?m:[]]),[f,y,m]),$=(0,u.useMemo)(()=>{let e=0;return t&&(e+=new Set(t).size),a&&(e+=new Set(a).size),i&&(e+=new Set(i).size),e},[t,a,i]);return(0,r.jsx)(l.wn$,{treeProps:{checkable:!0,checkedKeys:q,onCheck:e=>{let t=Array.isArray(e)?e:e.checked,n=[],r=[],l=[],a=Object.values(z),i=(e,t)=>t.some(t=>t!==e&&t.startsWith("".concat(e,"."))),s=t.map(e=>e.toString());t.forEach(e=>{let t=e.toString();if(a.some(e=>e===t))return;let o=F.find(e=>e===t),c=Object.values(P.$).find(e=>e===t);o?n.push(o):c?r.push(c):i(t,s)||l.push(t)}),h(n.length>0?n:[]),g(l.length>0?l:[]),_(r.length>0?r:[])},treeData:U,expandedKeys:E,onExpand:e=>{T(e)}},onApply:()=>{n(f&&f.length>0?Array.from(new Set(f)):f),s(y&&y.length>0?Array.from(new Set(y)):y),o(m&&m.length>0?Array.from(new Set(m)):m)},onReset:()=>{c(),h(G([...F])),_([]),g([])},onClear:()=>{h([]),_([]),g([])},onOpenChange:e=>{if(e){b();return}h(t),_(i),g(a)},activeFiltersCount:$})};var W=n(9110);let K=e=>{switch(e){case 1:return E.D$.DATABASE;case 2:return E.D$.SCHEMA;case 3:return E.D$.TABLE;default:return E.D$.FIELD}},Z=e=>{if(!e||"string"!=typeof e)return[];let t=e.trim();if(!t)return[];let n=t.split(".");if(n.length<2)return[];let r=n.filter(e=>e&&e.trim().length>0);return r.length<2?[]:(r.shift(),r.length>0&&r.pop(),0===r.length)?[]:r.map((e,t)=>{let n=Y[K(t+1)];return{title:e.trim(),IconComponent:n}})};var Q=n(79283),X=n(34929),ee=e=>{let{onSelectDataCategory:t,urn:n,...a}=e,{getDataCategoryDisplayNameProps:i,getDataCategories:s}=(0,X.Z)(),o=s().filter(e=>e.active),[c,d]=(0,u.useState)(!1),p=o.map(e=>{let{name:t,primaryName:n}=i(e.fides_key);return{value:e.fides_key,label:(0,r.jsxs)("div",{children:[(0,r.jsx)("strong",{children:n||t}),n&&": ".concat(t)]}),name:t,primaryName:n,description:e.description||""}});return(0,r.jsx)(Q.l,{options:p,prefix:(0,r.jsx)(l.wpx,{"aria-label":"Add Data Category",type:"text",size:"small",icon:(0,r.jsx)(l.PJP.mm_,{}),disabled:a.disabled}),placeholder:"",suffixIcon:null,classNames:{root:"w-full max-w-full overflow-hidden p-0 cursor-pointer -ml-5"},style:{"--ant-select-multiple-selector-bg-disabled":"transparent"},variant:"borderless",autoFocus:!1,maxTagCount:"responsive",open:c,onOpenChange:e=>d(e),onSelect:e=>{t(e),d(!1)},"data-classification-select":n,popupMatchSelectWidth:600,...a})},et=n(97947),en=n.n(et),er=n(63537);let el=e=>{let{label:t,closable:n,onClose:a,isFromClassifier:i}=e;return(0,r.jsx)(l.j8w,{color:"white",bordered:!0,onMouseDown:e=>{e.preventDefault(),e.stopPropagation()},closable:n,onClose:a,style:{marginInlineEnd:"calc((var(--ant-padding-xs) * 0.5))"},icon:i&&(0,r.jsx)(l.QMR,{}),children:(0,r.jsx)(l.lKn,{size:"sm",children:t})})},ea=e=>{let{title:t,IconComponent:n}=e;return{title:n?(0,r.jsxs)(l.jqI,{gap:3,align:"center",children:[(0,r.jsx)(n,{}),(0,r.jsx)("span",{children:t})]}):t}};var ei=e=>{let{urn:t,name:n,diff_status:a,selected:i,onSelect:o,onSetDataCategories:c,dataCategoriesDisabled:d,onNavigate:u,actions:p,classifications:f,...h}=e,y="preferred_data_categories"in h?h.preferred_data_categories:[],g=s()(null==f?void 0:f.flatMap(e=>{let{confidence_bucket:t}=e,n=t?(0,er.Oq)(t):void 0;return n?[n]:[]})).thru(er.io).value();return(0,r.jsx)(l.krs.Item,{actions:[g&&(0,r.jsx)(W.D,{severity:g,className:"mr-2"}),...null!=p?p:[]],children:(0,r.jsx)(l.krs.Item.Meta,{avatar:(0,r.jsx)("div",{className:"ml-2",children:(0,r.jsx)(l.E_O,{checked:i,onChange:e=>o&&o(t,e.target.checked)})}),title:(0,r.jsxs)(l.jqI,{gap:12,align:"center",className:en()["monitor-field__title"],children:[(0,r.jsx)(l.wpx,{type:"text",size:"small",className:"-mx-2",onClick:()=>u&&u(t),children:n}),a&&a!==E.LL.ADDITION&&(0,r.jsx)(l.j8w,{bordered:!1,color:$[a].color,children:$[a].label}),(0,r.jsx)(l.esZ,{title:t,mouseEnterDelay:.5,children:(0,r.jsx)(l.zrq,{className:en()["monitor-field__breadcrumb"],items:Z(t).map(ea),role:"presentation",style:{overflow:"hidden"}})})]}),description:(0,r.jsx)(ee,{mode:"multiple",value:null!=y?y:[],urn:t,tagRender:e=>{let n=!!(null==f?void 0:f.find(t=>t.label===e.value));return el({...e,isFromClassifier:n,onClose:()=>{var n;c(t,null!==(n=null==y?void 0:y.filter(t=>t!==e.value))&&void 0!==n?n:[])}})},onSelectDataCategory:e=>{(null==y?void 0:y.includes(e))||c(t,[...null!=y?y:[],e])},disabled:d})})},t)},es=n(812),eo=n(32500),ec=n.n(eo);let ed=(e,t)=>e.find(e=>{let{children:n}=e;return n&&!!n.find(e=>e.key.toString()===t)}),eu=(e,t)=>{var n;return null!==(n=ed(e,t))&&void 0!==n?n:e.reduce((e,n)=>{if(n.children){var r;return null!==(r=ed(n.children,t))&&void 0!==r?r:eu(n.children,t)}return e},null)},ep=e=>{let{node:t,treeData:n,onLoadMore:a,actions:i}=e;if(!t.title)return null;if(t.key.toString().startsWith(N)){let e=eu(n,t.key.toString());return(0,r.jsx)(l.wpx,{type:"link",block:!0,onClick:()=>{(null==e?void 0:e.key)&&a(e.key.toString())},className:"p-0",children:t.title})}return t.key.toString().startsWith(U)?(0,r.jsx)(l.N_L,{paragraph:!1,title:{width:"80px"},active:!0,children:t.title}):(0,r.jsxs)(l.jqI,{gap:4,align:"center",className:"group ml-1 flex grow",children:[(0,r.jsx)(l.lKn,{ellipsis:{tooltip:t.title},className:"grow",children:t.title}),(0,r.jsx)(l.S0p,{menu:{items:i?[...i.entries()].map(e=>{let[n,{disabled:r,...l}]=e;return{key:n,disabled:r(t),...l}}):[],onClick:e=>{var n;let{key:r,domEvent:l}=e;l.preventDefault(),l.stopPropagation(),null===(n=i.get(r))||void 0===n||n.callback(t.key,t)}},destroyOnHidden:!0,className:"group mr-1 flex-none",children:(0,r.jsx)(l.wpx,{"aria-label":"Show More Resource Actions",icon:(0,r.jsx)(l.PJP.r43,{className:"opacity-0 group-hover:opacity-100 group-[.ant-dropdown-open]:opacity-100"}),type:"text",size:"small",className:"self-end"})})]})},ef=(e,t,n)=>e.map(e=>e.key===t?{...e,status:n}:e.children?{...e,children:ef(e.children,t,n)}:e),eh=(e,t)=>e.map(e=>{if(e.key===t){let{children:t,...n}=e;return n}return e.children?{...e,children:eh(e.children,t)}:e}),ey=e=>{let t=[];return e.children&&e.children.length>0&&e.children.forEach(e=>{"string"==typeof e.key&&(t.push(e.key),t.push(...ey(e)))}),t},eg=(e,t)=>{for(let n of e){if(n.key===t)return n;if(n.children){let e=eg(n.children,t);if(e)return e}}},em=(e,t)=>{var n;let a=e.items.map(e=>{let t=e.resource_type?Y[e.resource_type]:void 0,n=e.update_status?J[e.update_status]:void 0;return{title:e.name,key:e.urn,selectable:!0,icon:t?()=>(0,r.jsx)(l.esZ,{title:null==n?void 0:n.tooltip,children:(0,r.jsx)(l.y4X,{className:"h-full",offset:[0,5],color:null==n?void 0:n.color,dot:!!e.update_status,children:(0,r.jsx)(t,{className:"h-full"})})}):void 0,status:e.update_status,isLeaf:e.resource_type===E.D$.FIELD||!e.has_grandchildren,classifyable:[E.D$.SCHEMA,E.D$.TABLE,E.D$.ENDPOINT,E.D$.FIELD].includes(e.resource_type)}});return(null!==(n=null==a?void 0:a.length)&&void 0!==n?n:0)<100?a:[...a,{title:"Load more...",key:"".concat(N,"-").concat(e.page,"-").concat(t),selectable:!1,isLeaf:!0}]},e_=(e,t,n)=>e.map(e=>{if(e.key===t){var r,l;return{...e,children:[...null!==(l=null===(r=e.children)||void 0===r?void 0:r.filter(e=>!(e.key.toString().startsWith(N)||e.key.toString().startsWith(U))))&&void 0!==l?l:[],...n]}}return e.children?{...e,children:e_(e.children,t,n)}:e}),ev=(e,t,n)=>e.map(e=>e.key===t?{...e,children:n}:e.children?{...e,children:ev(e.children,t,n)}:e),eE=(e,t,n)=>e.map(e=>{if(e.key===t){var r;let t=(null!==(r=e.children)&&void 0!==r?r:[]).filter(e=>!(e.key.toString().startsWith(N)||e.key.toString().startsWith(U))),l=new Map(n.map(e=>[e.key,e])),a=new Map(t.map(e=>[e.key,e])),i=t.map(e=>{let t=l.get(e.key);return null!=t?t:e});return n.forEach(e=>{a.has(e.key)||i.push(e)}),{...e,children:i}}return e.children?{...e,children:eE(e.children,t,n)}:e}),eT=(0,u.forwardRef)((e,t)=>{let{setSelectedNodeKeys:n,nodeActions:a}=e,i=(0,d.useRouter)(),{errorAlert:s}=(0,y.VY)(),o=decodeURIComponent(i.query.monitorId),[c]=(0,v.RV)(),[p]=(0,v.M8)(),[f,h]=(0,u.useState)({}),[g,m]=(0,u.useState)([]),[_,E]=(0,u.useState)([]),T=(0,u.useRef)({}),A=(0,u.useRef)({}),x=(0,u.useCallback)(async e=>{var t;let{nodeKey:n,queryParams:r,fastUpdateFn:l,detailedUpdateFn:a}=e,i=(null!==(t=T.current[n])&&void 0!==t?t:0)+1;T.current[n]=i;let s=c({...r,include_descendant_details:!1}),o=c({...r,include_descendant_details:!0});s.then(e=>{let{data:t}=e;t&&T.current[n]===i&&A.current[n]!==i&&l(t)}),o.then(e=>{let{data:t}=e;t&&T.current[n]===i&&(A.current[n]=i,(null!=a?a:l)(t))})},[c]),S=(0,u.useCallback)(e=>new Promise(t=>{let{children:n,key:r}=e;if(n){t();return}let l=r.toString();x({nodeKey:l,queryParams:{monitor_config_id:o,staged_resource_urn:l,size:100},fastUpdateFn:e=>{m(t=>ev(t,r,em(e,l))),h(e=>({...e,[l]:{pageSize:100,pageIndex:1}}))}}),t()}),[x,o]),b=(0,u.useCallback)(e=>{let t=f[e];t&&(m(t=>e_(t,e,[...Array(100)].map((t,n)=>({key:"".concat(U,"-").concat(e,"-").concat(n),title:"SKELETON",isLeaf:!0})))),x({nodeKey:e,queryParams:{monitor_config_id:o,staged_resource_urn:e,size:100,page:t.pageIndex+1},fastUpdateFn:t=>{m(n=>e_(n,e,em(t,e)))},detailedUpdateFn:t=>{m(n=>eE(n,e,em(t,e))),h(t=>{var n,r;return{...t,[e]:{pageSize:100,pageIndex:(null!==(r=null===(n=t[e])||void 0===n?void 0:n.pageIndex)&&void 0!==r?r:0)+1}}})}}))},[f,x,o]),j=(0,u.useCallback)(e=>{m(t=>{let n=eg(t,e),r=[e];return n&&r.push(...ey(n)),E(e=>e.filter(e=>!r.includes(e.toString()))),h(e=>{let t={...e};return r.forEach(e=>{delete t[e]}),t}),r.forEach(e=>{delete T.current[e],delete A.current[e]}),eh(t,e)})},[]),k=(0,u.useCallback)(async e=>{let t=async e=>{try{let t=await p({monitor_config_id:o,...e&&{staged_resource_urn:e}});if(t.error){s((0,es.e$)(t.error),"Failed to get schema explorer ancestors statuses");return}let n=t.data;if(!n)return;e?j(e):n.forEach(e=>{j(e.urn)}),m(e=>n.reduce((e,t)=>ef(e,t.urn,t.update_status),e))}catch(e){s("An unexpected error occurred while refreshing the schema explorer")}};if(0===e.length){await t();return}await Promise.all(e.map(e=>t(e)))},[p,o,j,s]),D=(0,u.useCallback)((e,t)=>{E(e),t.expanded&&!t.node.children&&S&&S(t.node)},[S]);return(0,u.useImperativeHandle)(t,()=>({refreshResourcesAndAncestors:k})),(0,u.useEffect)(()=>{(async()=>{g.length>0||x({nodeKey:"root",queryParams:{monitor_config_id:o,size:100},fastUpdateFn:e=>{m(em(e))}})})()},[x,o,m,g.length]),(0,r.jsxs)(l.jqI,{gap:"middle",vertical:!0,className:"h-full",children:[(0,r.jsx)(l.lQT,{level:3,className:"sticky top-0",children:"Schema explorer"}),(0,r.jsx)(l.a$q,{loadData:S,treeData:g,expandedKeys:_,onExpand:D,onSelect:e=>{n(e)},showIcon:!0,showLine:!0,blockNode:!0,rootClassName:"h-full overflow-x-hidden ".concat(ec()["monitor-tree"]),titleRender:e=>(0,r.jsx)(ep,{node:e,treeData:g,onLoadMore:b,actions:a})})]})});eT.displayName="MonitorTree";var eA=n(12627),ex=n(84418);let eS=(e,t)=>(0,r.jsx)(t,{...e,className:"!sticky top-0 z-[2] bg-white"}),eb=e=>{var t;let{resource:n,fieldActions:a,...i}=e,s=(0,u.useMemo)(()=>{var e;if(!(null==n?void 0:n.classifications))return[];let t="preferred_data_categories"in n&&null!==(e=n.preferred_data_categories)&&void 0!==e?e:[];return n.classifications.filter(e=>t.includes(e.label))},[n]);return(0,r.jsx)(ex.d,{...i,classNames:{body:"!pt-0 !mt-[var(--ant-padding-lg)] max-h-full"},children:n?(0,r.jsx)(l.A5g,{defaultActiveKey:"details",renderTabBar:eS,items:[{key:"details",label:"Details",children:(0,r.jsxs)(l.jqI,{gap:"middle",vertical:!0,children:[(0,r.jsx)(l.Yfl,{bordered:!0,size:"small",column:1,items:[{key:"system",label:"System",children:"system_key"in n&&n.system_key},{key:"path",label:"Path",children:n.urn},{key:"data-type",label:"Data type",children:"source_data_type"in n?n.source_data_type:void 0},{key:"description",label:"Description",children:n.description}]}),(0,r.jsx)(l.PPS,{layout:"vertical",children:(0,r.jsx)(l.PPS.Item,{label:"Data categories",children:(0,r.jsx)(eA.Z,{variant:"outlined",mode:"multiple",maxTagCount:"responsive",value:"preferred_data_categories"in n?n.preferred_data_categories:[],autoFocus:!1,disabled:null==n||!n.diff_status||!A.$k["assign-categories"].some(e=>e===n.diff_status),onChange:e=>a["assign-categories"]([n.urn],!0,{user_assigned_data_categories:e})})})}),s.length>0&&(0,r.jsx)(l.krs,{"data-testid":"classifications-reasoning-list",dataSource:s,renderItem:e=>{let t=e.confidence_bucket?(0,er.Oq)(e.confidence_bucket):void 0;return(0,r.jsx)(l.krs.Item,{children:(0,r.jsx)(l.krs.Item.Meta,{avatar:(0,r.jsx)(l.t3Z,{icon:(0,r.jsx)(l.QMR,{color:"black"})}),title:(0,r.jsxs)(l.jqI,{align:"center",gap:"middle",children:[(0,r.jsx)("div",{children:e.label}),t&&(0,r.jsx)(W.D,{severity:t})]}),description:e.rationale})})}})]})},{key:"activity",label:"Activity",children:(0,r.jsx)(l.krs,{dataSource:"errors"in n&&n.errors?null===(t=n.errors)||void 0===t?void 0:t.map((e,t)=>({key:t,title:e.phase,description:new Date(e.timestamp).toLocaleString(),content:e.message})):[],renderItem:(e,t)=>(0,r.jsxs)(l.krs.Item,{children:[(0,r.jsx)(l.krs.Item.Meta,{title:e.title,description:e.description}),(0,r.jsx)(l.FUI,{ellipsis:{expandable:"collapsible",rows:3},copyable:{icon:(0,r.jsx)(l.PJP.CKM,{className:"pt-1",size:18})},children:e.content})]},t),itemLayout:"vertical"})}]}):null})};var ej=n(31883);let ek=(e,t,n)=>{let[r]=(0,k.rL)(),a=(0,l.UD8)(),i=l=>async(i,s,o)=>{let c=Date.now();if(!await t.confirm((0,er.nB)(A.Me[l],A.e_[l](o))))return;a.open({key:c,type:"loading",content:"".concat(A.T0[l]," ").concat(o," ").concat((0,R._6)(o,"resource","resources"),"..."),duration:0});let d=await r({query:{...i.query},path:{monitor_config_id:e,action_type:l},body:{excluded_resource_urns:s}});if((0,ej.D4)(d)){a.open({key:c,type:"error",content:(0,er.v_)(l),duration:5});return}if(a.open({key:c,type:"success",content:(0,er.NM)(l,o),duration:5}),n&&l!==T.FieldActionType.APPROVE){let e=i.query.staged_resource_urn||[];await n(e)}};return{"assign-categories":i(T.FieldActionType.ASSIGN_CATEGORIES),"promote-removals":i(T.FieldActionType.PROMOTE_REMOVALS),"un-approve":i(T.FieldActionType.UN_APPROVE),"un-mute":i(T.FieldActionType.UN_MUTE),approve:i(T.FieldActionType.APPROVE),classify:i(T.FieldActionType.CLASSIFY),mute:i(T.FieldActionType.MUTE),promote:i(T.FieldActionType.PROMOTE)}},eD={DRAWER_OPEN:".ant-drawer-open",DRAWER_SELECT:".ant-drawer-open .ant-select",SELECT:".ant-select",SELECT_SELECTOR:".ant-select-selector",SELECT_DISABLED:"ant-select-disabled",INPUT:"input",LIST_ITEM_SELECT:"[data-classification-select]"},eC=(e,t,n,r,a,i)=>{let s=(0,l.UD8)(),o=e=>{let t=e.querySelector(eD.SELECT_SELECTOR);if(!t)return!1;if(e.classList.contains(eD.SELECT_DISABLED))return s.warning("You cannot assign categories to this resource in its current state"),!1;let n=new MouseEvent("mousedown",{bubbles:!0,cancelable:!0,view:window});t.dispatchEvent(n);let r=e.querySelector(eD.INPUT);return r&&r.focus(),!0},c=n=>{var r;e&&(e.diff_status&&(null===(r=A.$k[n])||void 0===r?void 0:r.includes(e.diff_status))?t[n]([e.urn]):s.warning(A.Z8[n]))};(0,p.y1)(A.b_.APPROVE,()=>c(T.FieldActionType.APPROVE),[e,t]),(0,p.y1)(A.b_.PROMOTE,()=>c(T.FieldActionType.PROMOTE),[e,t]),(0,p.y1)(A.b_.MUTE,()=>c(T.FieldActionType.MUTE),[e,t]),(0,p.y1)(A.b_.REFRESH,()=>i(),[i]),(0,p.y1)(A.b_.TOGGLE_DRAWER,()=>{e&&a?r(void 0):e&&!a&&r(e.urn)},[e,r,a]),(0,p.y1)(A.b_.OPEN_CLASSIFICATION_SELECT,t=>{if(t.preventDefault(),!e)return;let n=null;if(a){let e=document.querySelector(eD.DRAWER_OPEN);e&&(n=e.querySelector(eD.SELECT))}else{let t=CSS.escape(e.urn);n=document.querySelector('[data-classification-select="'.concat(t,'"]'))}n&&o(n)},[e,s,a]),(0,p.y1)("escape",e=>{let t=document.activeElement;if((null==t?void 0:t.tagName)!=="INPUT")return;let n=t.closest(eD.LIST_ITEM_SELECT),r=t.closest(eD.DRAWER_SELECT);(n||r)&&(e.preventDefault(),e.stopPropagation(),t.blur())},{enableOnFormTags:["INPUT"]},[a])};var eR=n(70675);let eO=e=>{let[t,...n]=e.map(e=>Object.values(T.FieldActionType).flatMap(t=>A.$k[t].some(t=>t===e)?[t]:[]));return n.reduce((e,t)=>s().intersection(e,[...t]),null!=t?t:[])},eI=(e,t,n)=>{let[r]=(0,eR.LI)(),[a]=(0,v.Av)(),[i]=(0,eR.zV)(),[s]=(0,eR.Hf)(),[o]=(0,eR._J)(),[c]=(0,eR.NA)(),[d]=(0,v.n7)(),u=(0,l.UD8)(),p=(e,r)=>async function(l){let a=!(arguments.length>1)||void 0===arguments[1]||arguments[1],i=arguments.length>2?arguments[2]:void 0,s=Date.now();if(!(1===l.length&&a||await t.confirm((0,er.nB)(A.Me[e],A.e_[e](l.length)))))return;u.open({key:s,type:"loading",content:"".concat(A.T0[e]," ").concat(l.length," ").concat((0,R._6)(l.length,"resource","resources"),"..."),duration:0});let o=await r(l,i);if((0,ej.D4)(o)){u.open({key:s,type:"error",content:(0,er.v_)(e),duration:5});return}u.open({key:s,type:"success",content:(0,er.NM)(e,l.length),duration:5}),e!==T.FieldActionType.PROMOTE_REMOVALS&&n&&await n(l)},f=async e=>i({staged_resource_urns:e}),h=async e=>o({staged_resource_urns:e}),y=async e=>s({staged_resource_urns:e}),g=async t=>a({monitor_config_key:e,staged_resource_urns:t}),m=async(t,n)=>{var r;let[l]=t;return c({monitor_config_id:e,staged_resource_urn:l,user_assigned_data_categories:null!==(r=null==n?void 0:n.user_assigned_data_categories)&&void 0!==r?r:void 0})},_=async t=>r({monitor_config_key:e,staged_resource_urns:t}),E=async t=>d({monitor_config_key:e,staged_resource_urns:t});return{"assign-categories":p(T.FieldActionType.ASSIGN_CATEGORIES,m),"promote-removals":p(T.FieldActionType.PROMOTE_REMOVALS,E),"un-approve":()=>{},"un-mute":p(T.FieldActionType.UN_MUTE,h),approve:p(T.FieldActionType.APPROVE,_),classify:p(T.FieldActionType.CLASSIFY,g),mute:p(T.FieldActionType.MUTE,f),promote:p(T.FieldActionType.PROMOTE,y)}};var ew=n(40431);let eP=()=>{let[e,t]=(0,ew.v1)("resourceStatus",(0,ew.S$)((0,ew.km)(F))),[n,r]=(0,ew.v1)("confidenceBucket",(0,ew.S$)((0,ew.jx)(Object.values(P.$)))),[l,a]=(0,ew.v1)("dataCategory",(0,ew.S$)(ew.Oi));return(0,u.useEffect)(()=>{if(null===e){let e=G([...F]);t(e.length>0?e:[])}},[]),{resourceStatus:e,setResourceStatus:t,confidenceBucket:n,setConfidenceBucket:r,dataCategory:l,setDataCategory:a,reset:()=>{t([]),r([]),a([])},resetToInitialState:()=>{t(G([...F])),r(null),a(null)}}},eL=e=>new Map(e.map(e=>[e.key,e])),eM=(e,t)=>s()([...new Map([...e,...t]).entries()]).map(t=>{let[n,r]=t;return s().chain(e.get(n)).defaultTo(r).cloneDeep().merge(r).value()}).thru(eL).value();var eN=function(){let e=!(arguments.length>0)||void 0===arguments[0]||arguments[0],[t,n]=(0,u.useState)(new Map);return{nodes:t,update:r=>{let l=e?eM(t,r):r;s()([...l.entries()]).some(e=>{let[n,r]=e;return!s().isEqual(t.get(n),r)})&&n(e=>new Map([...e,...r]))},reset:()=>{n(new Map)}}},eU=(e,t)=>{var n,r;let l=(0,k.Fp)(e),a=(0,v.IC)(t,{skip:!t.stagedResourceUrn}),{update:i,nodes:o,reset:c}=eN();return(null===(n=l.data)||void 0===n?void 0:n.items)&&i(eL(l.data.items.map(e=>({key:e.urn,...e})))),{listQuery:{...l,nodes:s().chain(null===(r=l.data)||void 0===r?void 0:r.items).defaultTo([]).flatMap(e=>s().chain(o.get(e.urn)).thru(e=>e?[e]:[]).value()).thru(eL).value(),refetch:()=>{c(),l.refetch()}},detailsQuery:{...a,node:t.stagedResourceUrn?o.get(t.stagedResourceUrn):void 0,refetch:()=>{c(),a.refetch()}},nodes:o}};let eF=e=>Object.values(E.LL).flatMap(t=>$[t].label===e?[t]:[]);var eq=()=>{var e,t,n,a,i,o,x,S;let D=(0,d.useRouter)(),C=decodeURIComponent(D.query.monitorId),R=(0,u.useRef)(null),[O,I]=l.$zI.useModal(),[w,P]=(0,u.useState)(!1),{paginationProps:L,pageIndex:M,pageSize:N,resetPagination:U}=(0,_.S)({defaultPageSize:25}),F=(0,y.Rx)(),{resourceStatus:G,confidenceBucket:Y,dataCategory:z,...J}=eP(),{data:B}=(0,v.vc)({monitor_config_id:C}),[V,W]=(0,u.useState)([]),K={path:{monitor_config_id:C},query:{staged_resource_urn:V.map(e=>e.toString()),search:F.searchProps.value,diff_status:G?G.flatMap(eF):void 0,confidence_bucket:Y||void 0,data_category:z||void 0}},[Z,Q]=(0,u.useState)(),[X,ee]=(0,u.useState)(),[et,en]=(0,u.useState)(null),[er,{data:el,isFetching:ea}]=(0,k.Nz)(),es=ek(C,O,async e=>{var t;await (null===(t=R.current)||void 0===t?void 0:t.refreshResourcesAndAncestors(e))}),eo=eI(C,O,async e=>{var t;await (null===(t=R.current)||void 0===t?void 0:t.refreshResourcesAndAncestors(e))}),{listQuery:{nodes:ec,...ed},detailsQuery:{data:eu},nodes:ep}=eU({...K,query:{...K.query,size:N,page:M}},{stagedResourceUrn:Z}),{excludedKeys:ef,listSelectMode:eh,resetListSelect:ey,selectedKeys:eg,updateSelectedListItem:em,checkboxProps:e_}=b(Array.from(ec.keys()),{activeListItem:X?{...X,key:null==X?void 0:X.key.toString()}:void 0,enableKeyboardShortcuts:!0}),ev=async e=>{if((null==X?void 0:X.urn)&&e&&et){let t=[...ec.values()].findIndex(t=>t.urn===e);-1!==t&&et(t)}Q(e)};(0,p.y1)("?",()=>P(!w),{useKey:!0},[w]);let eE="exclusive"===eh?null==el?void 0:el.allowed_actions:eO(eg.flatMap(e=>{let t=ep.get(e);return(null==t?void 0:t.diff_status)?[t.diff_status]:[]})),eA=null!==(o=null===(e=ed.data)||void 0===e?void 0:e.total)&&void 0!==o?o:0,ex="exclusive"===eh&&(null===(t=ed.data)||void 0===t?void 0:t.total)?eA-ef.length:eg.length;return(0,u.useEffect)(()=>{U(),ey()},[G,Y,V,F.searchQuery,z]),eC(X,eo,em,ev,!!Z,()=>ed.refetch()),(0,r.jsxs)(h.Z,{title:"Action center - Discovered assets by system",mainProps:{overflow:"hidden"},fullHeight:!0,children:[(0,r.jsx)(m.Z,{heading:"Action center",breadcrumbItems:[{title:"All activity",href:g.vi},{title:C}],isSticky:!1}),(0,r.jsxs)(l.LgQ,{className:"h-[calc(100%-48px)] overflow-hidden",children:[(0,r.jsx)(l.LgQ.Panel,{defaultSize:250,style:{paddingRight:"var(--ant-padding-md)"},children:(0,r.jsx)(eT,{ref:R,setSelectedNodeKeys:W,nodeActions:new Map(A.km.map(e=>[e,{label:A.Me[e],disabled:t=>(e!==T.FieldActionType.PROMOTE_REMOVALS||t.status!==E.Ag.REMOVAL)&&(e!==T.FieldActionType.CLASSIFY||!t.classifyable),callback:t=>eo[e]([t],!1)}]))})}),(0,r.jsx)(l.LgQ.Panel,{style:{paddingLeft:"var(--ant-padding-md)"},children:(0,r.jsxs)(l.jqI,{vertical:!0,gap:"middle",className:"h-full",children:[(0,r.jsxs)(l.jqI,{justify:"space-between",children:[(0,r.jsx)(l.lQT,{level:2,children:"Monitor results"}),(0,r.jsx)(l.jqI,{align:"center",children:(null==B?void 0:B.last_monitored)&&(0,r.jsxs)(l.lKn,{type:"secondary",children:["Last scan:"," ",new Date(null==B?void 0:B.last_monitored).toLocaleString()]})})]}),(0,r.jsxs)(l.jqI,{justify:"space-between",children:[(0,r.jsxs)(l.jqI,{gap:"small",children:[(0,r.jsx)(f.f,{value:F.searchQuery,onChange:F.updateSearch,placeholder:"Search"}),(0,r.jsx)(l.esZ,{title:"Display keyboard shortcuts",children:(0,r.jsx)(l.wpx,{"aria-label":"Display keyboard shortcuts",icon:(0,r.jsx)(l.PJP.N1d,{}),onClick:()=>P(!0)})})]}),(0,r.jsxs)(l.jqI,{gap:"small",children:[(0,r.jsx)(H,{resourceStatus:G,confidenceBucket:Y,dataCategory:z,...J,monitorId:C,stagedResourceUrn:V.map(e=>e.toString())}),(0,r.jsx)(l.S0p,{onOpenChange:e=>{e&&"exclusive"===eh&&er({...K,query:{...K.query},body:{excluded_resource_urns:ef.map(e=>e.toString())}})},menu:{items:[...A.aK.map(e=>({key:e,label:!ea&&(null==eE?void 0:eE.includes(e))?A.Me[e]:(0,r.jsx)(l.esZ,{title:A.Z8[e],children:A.Me[e]}),disabled:ea||!(null==eE?void 0:eE.includes(e)),onClick:async()=>{"exclusive"===eh?await es[e](K,ef.map(e=>e.toString()),ex):await eo[e](eg.map(e=>e.toString())),ey()}}))]},disabled:eg.length<=0,children:(0,r.jsx)(l.wpx,{type:"primary",icon:(0,r.jsx)(l.PJP._ME,{}),iconPosition:"end",loading:ea,children:"Actions"})}),(0,r.jsx)(l.esZ,{title:"Refresh",children:(0,r.jsx)(l.wpx,{icon:(0,r.jsx)(l.PJP.CQM,{}),onClick:()=>ed.refetch(),"aria-label":"Refresh"})})]})]}),(0,r.jsxs)(l.jqI,{gap:"middle",align:"center",children:[(0,r.jsx)(l.E_O,{id:"select-all",...e_}),(0,r.jsx)("label",{htmlFor:"select-all",children:"Select all"}),!!ex&&(0,r.jsxs)(l.lKn,{strong:!0,children:[ex.toLocaleString()," selected"]})]}),(0,r.jsx)(l.krs,{dataSource:[...ec.values()],className:"-ml-3 h-full overflow-y-scroll pl-1",loading:ed.isFetching,enableKeyboardShortcuts:!0,locale:!F.searchProps.value&&s()(G).intersection(q).isEmpty()?{emptyText:(0,r.jsx)(l.oj8,{image:l.oj8.PRESENTED_IMAGE_SIMPLE,description:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("div",{children:"All resources have been confirmed."}),(0,r.jsx)("div",{children:"You'll now find this data in Managed Datasets\n view."}),(0,r.jsx)("div",{children:"To see confirmed or ignored resources, adjust\n your filters"})]}),children:(0,r.jsxs)(l.jqI,{gap:"middle",justify:"center",children:[(0,r.jsx)(c(),{href:g.$m,passHref:!0,legacyBehavior:!0,children:(0,r.jsx)(l.wpx,{children:"Manage datasets view"})}),(0,r.jsx)(l.wpx,{type:"primary","aria-label":"Refresh page",onClick:()=>{J.resetToInitialState(),D.reload()},children:"Refresh page"})]})})}:void 0,onActiveItemChange:(e,t,n)=>{en(()=>n),(null==e?void 0:e.urn)?(ee({...e,key:e.urn}),Z&&e.urn!==Z&&Q(e.urn)):ee(void 0)},renderItem:e=>ei({...e,selected:eg.includes(e.urn),onSelect:em,onNavigate:ev,onSetDataCategories:(e,t)=>eo["assign-categories"]([e],!0,{user_assigned_data_categories:t}),dataCategoriesDisabled:null==e||!e.diff_status||!A.$k["assign-categories"].some(t=>t===e.diff_status),actions:(null==e?void 0:e.diff_status)?A.Vr[e.diff_status].map(t=>(0,r.jsx)(l.esZ,{title:A.Me[t],children:(0,r.jsx)(l.wpx,{"aria-label":A.Me[t],icon:A.W3[t],onClick:()=>eo[t]([e.urn]),disabled:null==e||!e.diff_status||!A.$k[t].some(t=>t===e.diff_status),style:{fontSize:"var(--ant-button-content-font-size-lg)"}})},t)):[]})}),(0,r.jsx)(l.B7X,{...L,showSizeChanger:{suffixIcon:(0,r.jsx)(l.PJP._ME,{})},total:(null===(n=ed.data)||void 0===n?void 0:n.total)||0,hideOnSinglePage:(null===(a=L.pageSize)||void 0===a?void 0:a.toString())===(null===(i=L.pageSizeOptions)||void 0===i?void 0:i[0])})]})})]}),(0,r.jsx)(eb,{itemKey:null!==(x=null==eu?void 0:eu.urn)&&void 0!==x?x:"",title:null!==(S=null==eu?void 0:eu.name)&&void 0!==S?S:null,titleIcon:(0,r.jsx)(l.PJP.sgG,{}),titleTag:{bordered:!1,color:(null==eu?void 0:eu.diff_status)?$[eu.diff_status].color:void 0,className:"font-normal text-[var(--ant-font-size-sm)]",children:(null==eu?void 0:eu.diff_status)?$[eu.diff_status].label:null},actions:((null==eu?void 0:eu.diff_status)?A.Zu[eu.diff_status]:A.sB).map(e=>({label:A.Me[e],callback:t=>eo[e]([t]),disabled:null==eu||!eu.diff_status||!A.$k[e].some(e=>e===eu.diff_status)})),open:!!Z,onClose:()=>Q(void 0),resource:eu,fieldActions:eo,mask:!X}),(0,r.jsx)(j,{open:w,onCancel:()=>P(!1)}),I]})};let eG=()=>(0,r.jsx)(r.Fragment,{children:"Attempting to access monitor results without the required feature flag enabled"});var e$=()=>{let{flags:e}=(0,a.hz)();return e.heliosV2?(0,r.jsx)(eq,{}):(0,r.jsx)(l.ux6,{status:"error",title:(0,r.jsx)(eG,{})})}},72707:function(e){e.exports={option:"TaxonomySelect_option__vY6v2"}},97947:function(e){e.exports={"monitor-field__title":"MonitorFieldListItem_monitor-field__title__YrxOU","monitor-field__breadcrumb":"MonitorFieldListItem_monitor-field__breadcrumb__Rn4vE"}},32500:function(e){e.exports={"monitor-tree":"MonitorTree_monitor-tree__QKz6T"}}},function(e){e.O(0,[431,7245,4589,5505,2888,9774,179],function(){return e(e.s=83806)}),_N_E=e.O()}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7890],{50755:function(e,t,l){(window.__NEXT_P=window.__NEXT_P||[]).push(["/data-discovery/action-center/infrastructure/[monitorId]",function(){return l(94800)}])},94800:function(e,t,l){"use strict";l.r(t),l.d(t,{default:function(){return y}});var a=l(24246),n=l(86677),i=l(35287),s=l(77830),o=l(58754),r=l(39158),c=l(25415),u=l(30952),d=l(27378),m=l(8125),v=l(70675),h=l(71985),_=l(88708),b=l(66213);let p=function(){let{rowClickUrl:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{columns:(0,d.useMemo)(()=>(0,b.b$)({rowClickUrl:e}),[e])}},f=e=>{let{monitorId:t}=e,l=(0,m.o)({sorting:{validColumns:["name"]}}),{pageIndex:n,pageSize:i,searchQuery:o,updateSearch:c,resetState:u}=l,b=(0,_.Z)(),{data:f,isLoading:g,isFetching:y}=(0,v.QP)({monitor_config_key:t,page:n,size:i,search:o}),j=(0,d.useMemo)(()=>{if(null==f?void 0:f.items)return{...f,items:f.items.map(e=>{var t,l,a,n,i,s;return{id:e.urn,name:null!==(t=e.name)&&void 0!==t?t:null,system_key:null!==(l=e.system_key)&&void 0!==l?l:null,data_uses:null!==(a=e.data_uses)&&void 0!==a?a:[],vendor_id:null!==(n=e.vendor_id)&&void 0!==n?n:null,total_updates:1,locations:null!==(i=e.locations)&&void 0!==i?i:[],domains:e.domain?[e.domain]:[],consent_status:null,metadata:null!==(s=e.metadata)&&void 0!==s?s:null}})}},[f]),w=(0,d.useCallback)(e=>{var t,l,a;return null!==(a=null!==(l=null!==(t=e.id)&&void 0!==t?t:e.vendor_id)&&void 0!==l?l:e.name)&&void 0!==a?a:s.Kl},[]),k=(0,d.useMemo)(()=>({enableSelection:!0,getRowKey:w,isLoading:g,isFetching:y,dataSource:(null==j?void 0:j.items)||[],totalRows:(null==j?void 0:j.total)||0,customTableProps:{locale:{emptyText:(0,a.jsx)(r.oj8,{image:r.oj8.PRESENTED_IMAGE_SIMPLE,description:"All caught up!"})}}}),[w,g,y,null==j?void 0:j.items,null==j?void 0:j.total]),x=(0,m.V)(l,k),{selectedRows:C,resetSelections:E}=x,P=(0,d.useCallback)(async e=>{await b.onTabChange(e),u(),E()},[b,u,E]),{columns:N}=p({isOktaApp:!0,rowClickUrl:(0,d.useCallback)(e=>{var l;let a=null!==(l=e.id)&&void 0!==l?l:s.Kl;return"".concat(s.vi,"/").concat(h.w.INFRASTRUCTURE,"/").concat(t,"/").concat(a).concat("#".concat("all"))},[t,"all"])});return{columns:N,data:j,isLoading:g,isFetching:y,searchQuery:o,updateSearch:c,resetState:u,tableProps:x.tableProps,selectionProps:x.selectionProps,filterTabs:[{label:"All apps",hash:"all"}],activeTab:"all",handleTabChange:P,activeParams:{},selectedRows:C,hasSelectedRows:x.hasSelectedRows,resetSelections:E}},g=e=>{let{monitorId:t}=e,{columns:l,searchQuery:n,updateSearch:i,tableProps:s,selectionProps:o,filterTabs:d,activeTab:m,handleTabChange:v,selectedRows:h,hasSelectedRows:_}=f({monitorId:t});return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(r.Niu,{"aria-label":"Asset state filter",mode:"horizontal",items:d.map(e=>({key:e.hash,label:e.label})),selectedKeys:[m],onClick:async e=>{await v(e.key)},className:"mb-4","data-testid":"asset-state-filter"}),(0,a.jsxs)(r.jqI,{justify:"space-between",align:"center",className:"mb-4",children:[(0,a.jsx)(u.f,{value:n,onChange:i}),(0,a.jsx)(r.vyj,{size:"large",children:_&&(0,a.jsx)(c.a,{count:h.length})})]}),(0,a.jsx)(r.V5H,{...s,columns:l,rowSelection:o})]})};var y=()=>{let e=decodeURIComponent((0,n.useRouter)().query.monitorId);return(0,a.jsxs)(i.Z,{title:"Action center - Discovered infrastructure systems",children:[(0,a.jsx)(o.Z,{heading:"Action center",breadcrumbItems:[{title:"All activity",href:s.vi},{title:e}]}),(0,a.jsx)(g,{monitorId:e})]})}}},function(e){e.O(0,[431,7245,3931,4589,4809,2888,9774,179],function(){return e(e.s=50755)}),_N_E=e.O()}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8043],{52507:function(n,u,e){(window.__NEXT_P=window.__NEXT_P||[]).push(["/data-discovery/action-center/infrastructure",function(){return e(72245)}])},72245:function(n,u,e){"use strict";e.r(u);var t=e(86677),r=e(27378),c=e(77830);u.default=()=>{let n=(0,t.useRouter)();return(0,r.useLayoutEffect)(()=>{n.replace(c.vi)},[n]),null}}},function(n){n.O(0,[2888,9774,179],function(){return n(n.s=52507)}),_N_E=n.O()}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8922],{58095:function(e,t,s){var n=s(8817);e.exports=function(e,t){return!!(null==e?0:e.length)&&n(e,t,0)>-1}},21796:function(e){e.exports=function(e,t,s){for(var n=-1,a=null==e?0:e.length;++n<a;)if(s(t,e[n]))return!0;return!1}},8817:function(e,t,s){var n=s(95372),a=s(1129),l=s(58263);e.exports=function(e,t,s){return t==t?l(e,t,s):n(e,a,s)}},1129:function(e){e.exports=function(e){return e!=e}},92198:function(e,t,s){var n=s(52485),a=s(58095),l=s(21796),i=s(65581),r=s(47111),o=s(43735);e.exports=function(e,t,s){var d=-1,c=a,u=e.length,p=!0,h=[],m=h;if(s)p=!1,c=l;else if(u>=200){var y=t?null:r(e);if(y)return o(y);p=!1,c=i,m=new n}else m=t?[]:h;e:for(;++d<u;){var g=e[d],f=t?t(g):g;if(g=s||0!==g?g:0,p&&f==f){for(var v=m.length;v--;)if(m[v]===f)continue e;t&&m.push(f),h.push(g)}else c(m,f,s)||(m!==h&&m.push(f),h.push(g))}return h}},47111:function(e,t,s){var n=s(46151),a=s(50344),l=s(43735),i=n&&1/l(new n([,-0]))[1]==1/0?function(e){return new n(e)}:a;e.exports=i},58263:function(e){e.exports=function(e,t,s){for(var n=s-1,a=e.length;++n<a;)if(e[n]===t)return n;return -1}},50344:function(e){e.exports=function(){}},83766:function(e,t,s){var n=s(92198);e.exports=function(e){return e&&e.length?n(e):[]}},14599:function(e,t,s){(window.__NEXT_P=window.__NEXT_P||[]).push(["/data-discovery/action-center/website/[monitorId]/[systemId]",function(){return s(26363)}])},45938:function(e,t,s){"use strict";s.d(t,{Gt:function(){return p},eB:function(){return h},oI:function(){return u}});var n=s(24246),a=s(34090),l=s(27378),i=s(16134),r=s(38602),o=s(58452);let d=(0,l.createRef)(),c=(0,l.createRef)(),u=()=>{let e=(0,i.T)(),t=(0,i.C)(r.DB),s=(0,l.useCallback)(()=>{c.current=void 0,d.current=void 0},[]),n=(0,l.useCallback)(()=>{e((0,r.Mr)()),c.current&&(c.current(!0),s())},[e,s]),a=(0,l.useCallback)(()=>{e((0,r.Mr)()),c.current&&(c.current(!1),s())},[e,s]);return{attemptAction:(0,l.useCallback)(()=>t?(e((0,r.h7)()),d.current||(d.current=new Promise(e=>{c.current=e})),d.current):Promise.resolve(!0),[t,e]),onConfirm:n,onClose:a}},p=e=>{let{id:t,name:s}=e,{dirty:n}=(0,a.u6)(),o=(0,i.T)();return(0,l.useEffect)(()=>(o((0,r.Zu)({id:t,name:s})),()=>{o((0,r.dz)({id:t}))}),[o,t,s]),(0,l.useEffect)(()=>{o((0,r.$p)({id:t,isDirty:n}))},[n,o,t]),null},h=()=>{let{onConfirm:e,onClose:t}=u(),s=(0,i.C)(r.uv);return(0,n.jsx)(o.Z,{isOpen:s,onClose:t,onConfirm:e,isCentered:!0,title:"Unsaved Changes",message:"You have unsaved changes"})}},25415:function(e,t,s){"use strict";s.d(t,{a:function(){return l}});var n=s(24246);let{Text:a}=s(39158).AntTypography,l=e=>{let{count:t}=e;return(0,n.jsx)(a,{size:"sm",strong:!0,"data-testid":"selected-count",children:"".concat(t," selected")})}},2525:function(e,t,s){"use strict";s.d(t,{Q:function(){return r}});var n=s(24246),a=s(39158),l=s(27378),i=s(3110);let r=e=>{let{values:t,columnState:s,tagProps:r,onTagClose:o,onStateChange:d,...c}=e,{isExpanded:u,isWrapped:p,version:h}=s||{},[m,y]=(0,l.useState)(!u),[g,f]=(0,l.useState)(!!p),[v,x]=(0,l.useState)(u?t:null==t?void 0:t.slice(0,2));(0,l.useEffect)(()=>{y(!u)},[u,h]),(0,l.useEffect)(()=>{f(!!p)},[p]),(0,l.useEffect)(()=>{(null==t?void 0:t.length)?x(m?t.slice(0,2):t):x(t)},[m,t,d]),(0,l.useEffect)(()=>{(null==t?void 0:t.length)&&t.length<=2&&!m&&(y(!0),null==d||d(!1))},[t,d,m]);let j=(0,l.useCallback)(()=>{x(null==t?void 0:t.slice(0,2)),y(!0),null==d||d(!1)},[t,d]),b=(0,l.useCallback)(()=>{y(!1),null==d||d(!0)},[d]),C=(0,l.useCallback)(()=>{m?b():j()},[m,b,j]);return(0,l.useMemo)(()=>(null==v?void 0:v.length)?(0,n.jsxs)(a.jqI,{align:m?"center":"start",wrap:g?"wrap":"nowrap",vertical:!m,gap:"small","data-testid":"tag-expandable-cell",style:{overflowX:"auto",...c.style},...c,children:[v.map(e=>(0,n.jsx)(a.j8w,{color:"white","data-testid":e.key,onClose:o?()=>o(e.key):void 0,...r,...e.tagProps,children:(0,n.jsx)(a.lKn,{ellipsis:!!m&&{tooltip:!0},style:{color:"inherit",maxWidth:m?i.TD:void 0},children:e.label})},e.key)),t&&t.length>2&&(0,n.jsx)(a.wpx,{type:"link",size:"small",onClick:e=>{e.stopPropagation(),C()},className:"h-auto p-0",style:{fontSize:"var(--ant-font-size)"},children:m?"+".concat(t.length-2," more"):i.T5})]}):(0,n.jsx)("span",{"data-testid":"tag-expandable-cell-empty"}),[v,m,g,c,t,r,o,C])}},3110:function(e,t,s){"use strict";s.d(t,{DI:function(){return r},T5:function(){return l},TD:function(){return i}});var n=s(24246),a=s(39158);let l="show less",i=150,r=[{key:"expand-all",label:"Expand all",icon:(0,n.jsx)(a.PJP.jbG,{})},{key:"collapse-all",label:"Collapse all",icon:(0,n.jsx)(a.PJP.MVB,{})}]},26070:function(e,t,s){"use strict";s.d(t,{v:function(){return o},Q:function(){return d.Q}});var n=s(24246),a=s(39158),l=s(27378),i=s(3110);let{Text:r}=a.AntTypography,o=e=>{let{values:t,valueSuffix:s,columnState:o,containerProps:d}=e,{isExpanded:c,version:u}=o||{},[p,h]=(0,l.useState)(!c);(0,l.useEffect)(()=>{h(!c)},[c,u]);let m=(0,l.useCallback)(()=>{h(!0)},[]),y=(0,l.useCallback)(()=>{h(!1)},[]),g=(0,l.useCallback)(()=>{p?y():m()},[p,y,m]);return(0,l.useMemo)(()=>(null==t?void 0:t.length)?1===t.length?(0,n.jsx)(a.jqI,{...d,children:(0,n.jsx)(r,{ellipsis:!0,"data-testid":"list-expandable-cell-single",children:t[0]})}):(0,n.jsxs)(a.jqI,{align:p?"center":"flex-start",vertical:!p,gap:p?"small":"none","data-testid":"list-expandable-cell",...d,children:[p?(0,n.jsxs)(r,{ellipsis:!0,children:[t.length," ",s]}):(0,n.jsx)(a.krs,{dataSource:t,renderItem:e=>(0,n.jsx)("li",{children:e})}),(0,n.jsx)(a.wpx,{type:"link",size:"small",onClick:e=>{e.stopPropagation(),g()},className:"h-auto p-0",style:{fontSize:"var(--ant-font-size)"},children:p?"view":i.T5})]}):null,[p,t,s,g,d])};var d=s(2525)},54762:function(e,t,s){"use strict";s.d(t,{l:function(){return r}});var n=s(24246),a=s(39158),l=s(62165),i=s(60240);let r=e=>{let{consentStatus:t}=e,{flags:s}=(0,l.hz)(),{assetConsentStatusLabels:r}=s;return r&&(null==t?void 0:t.status)===i.pF.ALERT?(0,n.jsx)(a.esZ,{title:null==t?void 0:t.message,"data-testid":"discovery-status-icon-alert-tooltip",children:(0,n.jsx)("div",{className:"mb-px","data-testid":"discovery-status-icon-alert",children:(0,n.jsx)(a.PJP.OdJ,{style:{color:"var(--fidesui-error)"}})})}):null}},9320:function(e,t,s){"use strict";s.d(t,{_:function(){return l}});var n=s(24246),a=s(26089);let l=(e,t)=>(0,n.jsxs)(n.Fragment,{children:[e," ",t&&(0,n.jsx)(a.Z,{onClick:t,children:"View"})]})},88708:function(e,t,s){"use strict";s.d(t,{A:function(){return a}});var n,a,l=s(27378),i=s(14908),r=s(60240);(n=a||(a={})).ATTENTION_REQUIRED="attention-required",n.ADDED="added",n.IGNORED="ignored",t.Z=e=>{let{activeTab:t,onTabChange:s}=(0,i.Z)({tabKeys:Object.values(a)}),n=(0,l.useMemo)(()=>[{label:"Attention required",params:{diff_status:[r.LL.ADDITION],system:e},hash:"attention-required"},{label:"Added",params:{diff_status:[r.LL.MONITORED]},hash:"added"},{label:"Ignored",params:{diff_status:[r.LL.MUTED],system:e},hash:"ignored"}],[e]),{diff_status:o,system:d}=(0,l.useMemo)(()=>{var e;return null!==(e=n.find(e=>e.hash===t))&&void 0!==e?e:n[0]},[n,t]).params,c=(0,l.useMemo)(()=>o.includes(r.LL.MONITORED),[o]);return{filterTabs:n,activeTab:t,onTabChange:s,activeParams:(0,l.useMemo)(()=>e?{diff_status:o,system:d}:{diff_status:o},[e,o,d]),actionsDisabled:c}}},78238:function(e,t,s){"use strict";s.d(t,{g:function(){return n}});let n=["essential","functional.service.improve","personalize","analytics","marketing.advertising.first_party.targeted","marketing.advertising.third_party.targeted"];t.Z=e=>n.includes(e)},57072:function(e,t,s){"use strict";s.d(t,{Bd:function(){return n.Bd},L5:function(){return n.L5},MO:function(){return n.MO},qb:function(){return n.qb}});var n=s(5785)},26363:function(e,t,s){"use strict";s.r(t),s.d(t,{default:function(){return eo}});var n=s(24246),a=s(86677),l=s(27378),i=s(35287),r=s(77830),o=s(58754),d=s(37059),c=s(39158),u=s(25415),p=s(60240),h=s(30952),m=s(8133),y=s(79283),g=s(34929),f=s(78238),v=e=>{let{selectedTaxonomies:t,...s}=e,{getDataUseDisplayNameProps:a,getDataUses:i}=(0,g.Z)(),r=[...i()].filter(e=>!(null==t?void 0:t.includes(e.fides_key))).sort(),o=r.filter(e=>e.active&&f.g.includes(e.fides_key)),d=r.map(e=>{let{name:t,primaryName:s}=a(e.fides_key);return{value:e.fides_key,name:t,primaryName:s,description:e.description||""}}),u=(0,l.useMemo)(()=>{let e=[],t=[];return d.forEach(s=>{o.some(e=>e.fides_key===s.value)?e.push(s):t.push(s)}),{suggested:e,all:t}},[d,o]),p=u.suggested.length?[{label:(0,n.jsxs)(c.vyj,{children:[(0,n.jsx)(c.QMR,{size:14}),(0,n.jsx)("span",{children:"Categories of consent"}),(0,n.jsx)("em",{className:"font-normal",children:"Recommended"})]}),options:u.suggested},{label:(0,n.jsxs)(c.vyj,{children:[(0,n.jsx)(c.PJP.BBB,{}),(0,n.jsx)("span",{children:"Other data uses"})]}),options:u.all}]:u.all;return(0,n.jsx)(y.l,{options:p,...s})};let{Text:x}=c.AntTypography;var j=e=>{let{onSave:t,isSaving:s,onClose:a,...i}=e,[r,o]=(0,l.useState)([]),d=()=>{o([]),a()};return(0,n.jsxs)(m.Z,{title:"Add consent category",...i,onClose:d,children:[(0,n.jsxs)(c.jqI,{vertical:!0,gap:20,className:"pb-6 pt-4",children:[(0,n.jsx)(x,{children:"Assign consent categories to selected assets. This configures the system for consent management. Consent categories apply to both individual assets and the system."}),(0,n.jsx)(v,{mode:"tags",onSelect:(e,t)=>o([...r,t.value]),variant:"outlined"})]}),(0,n.jsxs)(c.jqI,{justify:"space-between",children:[(0,n.jsx)(c.wpx,{htmlType:"reset",onClick:d,"data-testid":"cancel-btn",children:"Cancel"}),(0,n.jsx)(c.wpx,{htmlType:"submit",type:"primary",disabled:!r.length,loading:s,onClick:()=>{t(r),d()},"data-testid":"save-btn",children:"Save"})]})]})},b=s(29850),C=s(77685);let{Text:k}=c.AntTypography,w=e=>{let{onSave:t,isSaving:s,...a}=e,[i,r]=(0,l.useState)(),[o,d]=(0,l.useState)(!1),u=(0,l.useCallback)(e=>{e.preventDefault(),d(!0)},[]),p=()=>{d(!1)},h=()=>{r(void 0),a.onClose()};return(0,n.jsxs)(m.Z,{title:"Assign system",...a,onClose:h,children:[(0,n.jsxs)(c.jqI,{vertical:!0,gap:20,className:"pb-6 pt-4",children:[(0,n.jsx)(k,{children:"Assign a system to the selected assets. If no system exists, select 'Add new system' to create one."}),(0,n.jsx)(b.R,{placeholder:"Search or select...",onSelect:(e,t)=>{r(t)},onAddSystem:u,value:i})]})," ",(0,n.jsxs)(c.jqI,{justify:"space-between",children:[(0,n.jsx)(c.wpx,{htmlType:"reset",onClick:h,"data-testid":"cancel-btn",children:"Cancel"}),(0,n.jsx)(c.wpx,{htmlType:"submit",type:"primary",disabled:!i,loading:s,onClick:()=>{t(i),h()},"data-testid":"save-btn",children:"Save"})]}),o&&(0,n.jsx)(C.i,{isOpen:!0,onClose:p,onSuccessfulSubmit:(e,t)=>{p(),r({label:t,value:e})},toastOnSuccess:!0})]})};var _=s(8411),S=s(32735),E=s(8125),A=s(16394),T=s(98145);let{Link:I}=c.AntTypography,D=e=>{let{stagedResource:t}=e,s=(0,E.o)({pagination:{defaultPageSize:10,pageSizeOptions:[10,...S.VZ]},disableUrlState:!0}),{pageIndex:a,pageSize:i}=s,{data:r,isFetching:o,isError:u}=(0,d.mi)({stagedResourceUrn:t.urn,statuses:T.LM,page:a,size:i}),{items:p,total:h}=(0,l.useMemo)(()=>r||{items:[],total:0,pages:0,filterOptions:{assigned_users:[],systems:[]}},[r]),m=(0,l.useMemo)(()=>({enableSelection:!1,getRowKey:e=>"".concat(e.location,"-").concat(e.page),isLoading:o,dataSource:p,totalRows:null!=h?h:0,customTableProps:{scroll:{scrollToFirstRowOnChange:!0},tableLayout:"fixed"}}),[o,p,h]),y=(0,E.V)(s,m);return{columns:(0,l.useMemo)(()=>[{title:"Location",dataIndex:T.EI.LOCATION,key:T.EI.LOCATION,render:e=>{var t;let s=(0,c.QCN)(e),a=s?(0,c.c1K)({isoEntry:s,showFlag:!0}):null!==(t=null===_.Z8||void 0===_.Z8?void 0:_.Z8[e])&&void 0!==t?t:e;return(0,n.jsx)(c.AntTypography.Text,{ellipsis:{tooltip:e},children:a})},width:180},{title:"Page",dataIndex:T.EI.PAGE,key:T.EI.PAGE,render:e=>{let t=(0,A.hL)(e,50);return(0,n.jsx)(I,{href:e,target:"_blank",rel:"noopener noreferrer",variant:"primary",children:(0,n.jsx)(c.AntTypography.Text,{ellipsis:{tooltip:e},unStyled:!0,children:t})})},minWidth:100},{title:"Compliance",dataIndex:T.EI.STATUS,key:T.EI.STATUS,width:160,render:e=>{let t=T.Vq[e];return(0,n.jsx)(c.esZ,{title:t,children:(0,n.jsx)(c.j8w,{color:"error","data-testid":"status-badge_".concat(e.replace(/_/g,"-")),children:T.X1[e]})})}}],[]),data:r,isLoading:o,isError:u,totalRows:h,tableProps:y.tableProps,hasData:p.length>0}},{Paragraph:N,Text:O}=c.AntTypography,L=e=>{var t,s,a;let{isOpen:l,stagedResource:i,onCancel:r,onDownload:o}=e,{columns:d,tableProps:u,isError:p}=D({stagedResource:i});return(0,n.jsx)(c.$zI,{title:"Compliance issues",width:768,open:l,onCancel:r,footer:[(0,n.jsx)(c.wpx,{onClick:r,children:"Cancel"},"cancel"),!!o&&(0,n.jsx)(c.wpx,{type:"primary",onClick:o,children:"Download"},"download")],"data-testid":"consent-breakdown-modal",children:(0,n.jsxs)(c.jqI,{vertical:!0,className:"gap-6","data-testid":"consent-breakdown-modal-content",children:[(0,n.jsxs)("div",{children:[(0,n.jsx)(N,{children:"View all instances where this asset was detected with consent compliance issues, organized by location and page. This includes assets loaded without consent, before consent, or when CMP failed."}),(0,n.jsxs)(N,{children:[(0,n.jsx)(O,{strong:!0,children:"Asset name:"})," ",null!==(t=i.name)&&void 0!==t?t:(0,n.jsx)(O,{italic:!0,children:"Unknown"}),","," ",(0,n.jsx)(O,{strong:!0,children:"System:"})," ",null!==(s=i.system)&&void 0!==s?s:(0,n.jsx)(O,{italic:!0,children:"Unassigned"}),","," ",(0,n.jsx)(O,{strong:!0,children:"Domain:"})," ",null!==(a=i.domain)&&void 0!==a?a:(0,n.jsx)(O,{italic:!0,children:"Unknown"})]})]}),p?(0,n.jsx)(c.DUx,{type:"error",message:"Error fetching data",description:"Please try again later.",showIcon:!0}):(0,n.jsx)(c.V5H,{...u,columns:d,"data-testid":"consent-breakdown-modal-table"})]})})};var P=s(83766),R=s.n(P),M=s(62165),z=s(812),V=s(26070),Z=s(3110),U=s(46628),G=s(54762),q=s(9320),B=s(26092),K=s.n(B),$=s(88708),J=e=>!!e&&T.LM.includes(e);let Q=e=>{let{asset:t,onTabChange:s,showComplianceIssueDetails:l}=e,{flags:i}=(0,M.hz)(),{assetConsentStatusLabels:o}=i,[u,{isLoading:h}]=(0,d.EY)(),[m,{isLoading:y}]=(0,d.nS)(),[g,{isLoading:f}]=(0,d.Tj)(),v=(0,c.pmc)(),x=(0,a.useRouter)(),j=h||y||f,{urn:b,name:C,resource_type:k,diff_status:w,system_key:_,user_assigned_system_key:S,consent_aggregated:E}=t,A=K()(C||"",{length:50}),T=J(E),I=async()=>{let e=await u({urnList:[b]});if((0,z.D4)(e))v((0,U.Vo)((0,z.e$)(e.error)));else{let e=S||_,t="".concat(r.So,"/configure/").concat(e,"#assets");v((0,U.t5)((0,q._)("".concat(k,' "').concat(A,'" has been added to the system inventory.'),e?()=>x.push(t):void 0)))}},D=async()=>{let e=await m({urnList:[b]});(0,z.D4)(e)?v((0,U.Vo)((0,z.e$)(e.error))):v((0,U.t5)((0,q._)("".concat(k,' "').concat(A,'" has been ignored and will not appear in future scans.'),async()=>{await s($.A.IGNORED)})))},N=async()=>{let e=await g({urnList:[b]});(0,z.D4)(e)?v((0,U.Vo)((0,z.e$)(e.error))):v((0,U.t5)("".concat(k,' "').concat(A,'" is no longer ignored and will appear in future scans.')))};return(0,n.jsxs)(c.vyj,{children:[w!==p.LL.MUTED&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(c.esZ,{title:t.system?void 0:"This asset requires a system before you can add it to the inventory.",children:(0,n.jsx)(c.wpx,{"data-testid":"add-btn",size:"small",onClick:I,disabled:!t.system||j,loading:h,children:"Add"})}),(0,n.jsx)(c.wpx,{"data-testid":"ignore-btn",size:"small",onClick:D,disabled:j,loading:y,children:"Ignore"}),T&&o&&(0,n.jsx)(c.wpx,{"data-testid":"view-compliance-details-btn",size:"small",onClick:()=>{null==l||l(t)},disabled:j,loading:f,icon:(0,n.jsx)(c.PJP.OdJ,{style:{color:"var(--fidesui-error)",width:14}}),title:"View compliance issue","aria-label":"View compliance issue"})]}),w===p.LL.MUTED&&(0,n.jsx)(c.wpx,{"data-testid":"restore-btn",size:"small",onClick:N,disabled:j,loading:f,children:"Restore"})]})};var F=s(17245),Y=s(18992),W=s.n(Y),X=s(2525),H=s(31883),ee=e=>{let{asset:t,readonly:s,columnState:a,onChange:i}=e,[r,o]=(0,l.useState)(!1),[u,p]=(0,l.useState)((null==a?void 0:a.isExpanded)||!1),[h]=(0,d.Ak)(),{successAlert:m,errorAlert:y}=(0,F.VY)(),{getDataUseDisplayName:f}=(0,g.Z)(),x=[...t.preferred_data_uses||[]].sort(),j=K()(t.name||"",{length:50}),b=async e=>{let s=await h({monitorId:t.monitor_config_id,urnList:[t.urn],dataUses:[...x,e]});(0,H.D4)(s)?y((0,z.e$)(s.error)):(m("Consent category added to ".concat(t.resource_type,' "').concat(j,'".'),"Confirmed"),null==i||i([...x,e])),o(!1)},C=async e=>{let s=await h({monitorId:t.monitor_config_id,urnList:[t.urn],dataUses:x.filter(t=>t!==e)});(0,H.D4)(s)?y((0,z.e$)(s.error)):(m("Consent category removed from ".concat(t.resource_type,' "').concat(j,'".'),"Confirmed"),null==i||i(x.filter(t=>t!==e)))};return((0,l.useEffect)(()=>{p((null==a?void 0:a.isExpanded)||!1)},[null==a?void 0:a.isExpanded]),s)?(0,n.jsx)(X.Q,{values:null==x?void 0:x.map(e=>({label:f(e),key:e})),columnState:a,onStateChange:p}):(0,n.jsxs)(n.Fragment,{children:[!r&&(0,n.jsxs)(c.vyj,{align:"start",children:[(0,n.jsx)(c.j8w,{onClick:()=>o(!0),"data-testid":"taxonomy-add-btn",addable:!0,"aria-label":"Add data use"}),(0,n.jsx)(X.Q,{values:null==x?void 0:x.map(e=>({label:f(e),key:e})),columnState:{...a,isExpanded:u},tagProps:{closable:!0,closeButtonLabel:"Remove data use"},onTagClose:C,onStateChange:p})]}),r&&(0,n.jsx)("div",{className:W().cellBleed,style:{backgroundColor:"var(--fides-color-white)"},children:(0,n.jsx)(v,{selectedTaxonomies:x,onSelect:b,onBlur:()=>o(!1),onKeyDown:e=>{"Escape"===e.key&&o(!1)},open:!0})})]})};let et=e=>{let{consentAggregated:t,stagedResource:s}=e,a=T.LM.includes(t);if(!(a||t===p.lg.UNKNOWN))return null;let l=!!s.data_uses&&s.data_uses.length>0,i=T.Vq[t];return t!==p.lg.UNKNOWN||l||(i="Add a category of consent to this asset to find consent information."),(0,n.jsx)(c.esZ,{title:i,children:(0,n.jsx)(c.j8w,{color:a?"error":void 0,"data-testid":"status-badge_".concat(t.replace(/_/g,"-")),children:T.X1[t]})})};var es=s(70675);let en=e=>{let{aggregateSystem:t,monitorConfigId:s,readonly:a,onChange:i}=e,{resource_type:r,name:o,urn:d,system:u,user_assigned_system_key:p,system_key:h}=t,m=K()(o||"",{length:50}),[y,g]=(0,l.useState)(!1),[f,v]=(0,l.useState)(!1),[x,{isLoading:j}]=(0,es.NA)(),{successAlert:k,errorAlert:w}=(0,F.VY)(),_=(0,l.useCallback)(e=>{e.preventDefault(),v(!0)},[]),S=async(e,t,n)=>{let a=await x({staged_resource_urn:d,monitor_config_id:s,user_assigned_system_key:e}),l=K()(t,{length:50});(0,z.D4)(a)?w((0,z.e$)(a.error)):(k(n?"".concat(l," has been added to your system inventory and the ").concat(r,' "').concat(m,'" has been assigned to that system.'):"".concat(r,' "').concat(m,'" has been assigned to ').concat(l,"."),"Confirmed"),null==i||i(e)),g(!1)};return a?u?(0,n.jsx)(c.j8w,{"data-testid":"system-badge",color:"white",children:u}):null:(0,n.jsxs)(n.Fragment,{children:[!y&&(u?(0,n.jsxs)(c.j8w,{onClick:()=>g(!0),"data-testid":"system-badge",children:[u,(0,n.jsx)(c.PJP.I8b,{})]}):(0,n.jsx)(c.j8w,{onClick:()=>g(!0),"data-testid":"add-system-btn",addable:!0})),!!y&&(0,n.jsx)("div",{className:W().cellBleed,children:(0,n.jsx)(b.R,{variant:"borderless",autoFocus:!0,defaultOpen:!0,defaultValue:p||h,onBlur:e=>{var t;(null===(t=e.relatedTarget)||void 0===t?void 0:t.getAttribute("id"))!=="add-new-system"&&g(!1)},onAddSystem:_,onSelect:(e,t)=>S(e,t.label),loading:j})}),f&&(0,n.jsx)(C.i,{isOpen:!0,onClose:()=>{v(!1)},onSuccessfulSubmit:(e,t)=>S(e,t,!0)})]})},ea=e=>{let{monitorId:t,systemId:s,consentStatus:i,onShowComplianceIssueDetails:o}=e,u=(0,a.useRouter)(),h=(0,c.pmc)(),[m,y]=(0,l.useState)(s),[g,v]=(0,l.useState)(!1),[x,j]=(0,l.useState)(!1),[b,C]=(0,l.useState)(!1),[k,w]=(0,l.useState)(0),[S,I]=(0,l.useState)(0),[D,N]=(0,l.useState)(0),{flags:O}=(0,M.hz)(),{assetConsentStatusLabels:L}=O,{filterTabs:P,activeTab:B,onTabChange:K,activeParams:J,actionsDisabled:F}=(0,$.Z)(s),Y=(0,E.o)({sorting:{validColumns:Object.values(T.r6)}}),{columnFilters:W,pageIndex:X,pageSize:H,resetState:es,sortKey:ea,sortOrder:el,searchQuery:ei,updateSearch:er,updateFilters:eo,updateSorting:ed,updatePageIndex:ec,updatePageSize:eu}=Y,{data:ep,isLoading:eh,isFetching:em}=(0,d.WJ)({key:t,page:X,size:H,search:ei,sort_by:ea?[ea]:[T.r6.NAME],sort_asc:"descend"!==el,...J,...W}),[ey,{isLoading:eg}]=(0,d.EY)(),[ef,{isLoading:ev}]=(0,d.nS)(),[ex,{isLoading:ej}]=(0,d.rs)(),[eb,{isLoading:eC}]=(0,d.sX)(),[ek,{isLoading:ew}]=(0,d.Vr)(),[e_,{isLoading:eS}]=(0,d.Tj)(),eE=eg||ev||ej||eC||eS||ew,eA=eE||s===r.Kl,{data:eT}=(0,d.ut)({monitor_config_id:t,resolved_system_id:s,diff_status:null==J?void 0:J.diff_status,search:ei,...W}),eI=(0,l.useMemo)(()=>({enableSelection:B!==$.A.ADDED,getRowKey:e=>e.urn,isLoading:eh,isFetching:em,dataSource:(null==ep?void 0:ep.items)||[],totalRows:(null==ep?void 0:ep.total)||0,sortBy:[T.r6.NAME],sortAsc:!0,customTableProps:{locale:{emptyText:(0,n.jsx)("div",{children:(0,n.jsx)("div",{children:"All caught up!"})})},sticky:{offsetHeader:40}}}),[B,eh,em,null==ep?void 0:ep.items,null==ep?void 0:ep.total]),eD=(0,E.V)(Y,eI),{selectedKeys:eN,selectedRows:eO,resetSelections:eL}=eD,eP=(0,l.useMemo)(()=>{var e;let t=[{title:"Asset",dataIndex:T.r6.NAME,key:T.r6.NAME,sorter:!0,sortOrder:ea===T.r6.NAME?el:null,render:e=>(0,n.jsx)(c.lKn,{ellipsis:{tooltip:!0},style:{maxWidth:300},children:e}),fixed:"left",width:200},{title:"Type",dataIndex:T.r6.RESOURCE_TYPE,key:T.r6.RESOURCE_TYPE,sorter:!0,sortOrder:ea===T.r6.RESOURCE_TYPE?el:null,filters:(0,A.nZ)(null==eT?void 0:eT.resource_type),filteredValue:(null==W?void 0:W.resource_type)||null},{title:"System",dataIndex:T.r6.SYSTEM,key:T.r6.SYSTEM,render:(e,t)=>!!t.monitor_config_id&&(0,n.jsx)(en,{aggregateSystem:t,monitorConfigId:t.monitor_config_id,readonly:F||B===$.A.IGNORED,onChange:()=>{eL()}}),width:200},{title:"Categories of consent",key:T.r6.DATA_USES,menu:{items:Z.DI,onClick:e=>{e.domEvent.stopPropagation(),"expand-all"===e.key?(C(!0),N(e=>e+1)):"collapse-all"===e.key&&(C(!1),N(e=>e+1))}},filters:(0,A.nZ)(null==eT?void 0:null===(e=eT.data_uses)||void 0===e?void 0:e.filter(e=>(0,f.Z)(e))),filteredValue:(null==W?void 0:W.data_uses)||null,render:(e,t)=>(0,n.jsx)(ee,{asset:t,readonly:F||B===$.A.IGNORED,columnState:{isExpanded:b,version:D},onChange:()=>{eL()}}),width:200},{title:"Locations",dataIndex:T.r6.LOCATIONS,key:T.r6.LOCATIONS,menu:{items:Z.DI,onClick:e=>{e.domEvent.stopPropagation(),"expand-all"===e.key?(v(!0),w(e=>e+1)):"collapse-all"===e.key&&(v(!1),w(e=>e+1))}},filters:(0,A.nZ)(null==eT?void 0:eT.locations,e=>{var t;let s=(0,c.QCN)(e);return s?(0,c.c1K)({isoEntry:s}):null!==(t=_.Z8[e])&&void 0!==t?t:e}),filteredValue:(null==W?void 0:W.locations)||null,render:e=>{var t;return(0,n.jsx)(V.Q,{values:null!==(t=null==e?void 0:e.map(e=>{var t;let s=(0,c.QCN)(e);return{label:s?(0,c.c1K)({isoEntry:s}):null!==(t=_.Z8[e])&&void 0!==t?t:e,key:e}}))&&void 0!==t?t:[],columnState:{isExpanded:g,version:k}})}},{title:"Domain",dataIndex:T.r6.DOMAIN,key:T.r6.DOMAIN},{title:"Detected on",dataIndex:T.r6.PAGE,menu:{items:Z.DI,onClick:e=>{e.domEvent.stopPropagation(),"expand-all"===e.key?(j(!0),I(e=>e+1)):"collapse-all"===e.key&&(j(!1),I(e=>e+1))}},key:T.r6.PAGE,render:e=>(0,n.jsx)(V.v,{values:e,valueSuffix:"pages",columnState:{isExpanded:x,version:S}})}];return L&&t.push({title:()=>(0,n.jsxs)(c.vyj,{children:[(0,n.jsx)("div",{children:"Compliance"}),(null==i?void 0:i.status)===p.pF.ALERT&&(0,n.jsx)(G.l,{consentStatus:i})]}),dataIndex:T.r6.CONSENT_AGGREGATED,key:T.r6.CONSENT_AGGREGATED,sorter:!0,sortOrder:ea===T.r6.CONSENT_AGGREGATED?el:null,filters:(0,A.nZ)(null==eT?void 0:eT[T.r6.CONSENT_AGGREGATED],e=>{var t;return null!==(t=T.X1[e])&&void 0!==t?t:e}),filteredValue:(null==W?void 0:W[T.r6.CONSENT_AGGREGATED])||null,render:(e,t)=>(0,n.jsx)(et,{consentAggregated:null!=e?e:p.lg.UNKNOWN,stagedResource:t}),width:160}),F||t.push({title:"Actions",key:T.r6.ACTIONS,fixed:"right",render:(e,t)=>(0,n.jsx)(Q,{asset:t,onTabChange:K,showComplianceIssueDetails:o})}),t},[ea,el,eT,W,L,F,B,b,D,eL,g,k,x,S,i,K,o]);(0,l.useEffect)(()=>{if(ep){var e;y((null===(e=ep.items[0])||void 0===e?void 0:e.system)||m||s||"")}},[ep,s,m]);let eR=(0,l.useCallback)(async()=>{var e,t;let s=await ey({urnList:eN}),n=(null===(e=eO[0])||void 0===e?void 0:e.user_assigned_system_key)||(null===(t=eO[0])||void 0===t?void 0:t.system_key),a=eO.every(e=>(e.user_assigned_system_key||e.system_key)===n)?n:void 0;(0,z.D4)(s)?h((0,U.Vo)((0,z.e$)(s.error))):(h((0,U.t5)((0,q._)("".concat(eN.length," assets from ").concat(m," have been added to the system inventory."),a?()=>u.push("".concat(r.So,"/configure/").concat(a,"#assets")):()=>u.push(r.So)))),eL())},[ey,eN,eO,m,h,u,eL]),eM=(0,l.useCallback)(async e=>{if("string"==typeof(null==e?void 0:e.value)){let s=await eb({monitorId:t,urnList:eN,systemKey:e.value});(0,z.D4)(s)?h((0,U.Vo)((0,z.e$)(s.error))):(h((0,U.t5)("".concat(eN.length," assets have been assigned to ").concat(e.label,"."),"Confirmed")),eL())}},[eb,t,eN,h,eL]),ez=(0,l.useCallback)(async e=>{if(!eO.length)return;let s=eO.map(t=>{let s=R()([...t.preferred_data_uses||[],...e]);return{urn:t.urn,user_assigned_data_uses:s}}),n=await ek({monitorId:t,assets:s});(0,z.D4)(n)?h((0,U.Vo)((0,z.e$)(n.error))):(h((0,U.t5)("Consent categories added to ".concat(eN.length," assets").concat(m?" from ".concat(m):"","."),"Confirmed")),eL())},[eO,ek,t,eN,m,h,eL]),eV=(0,l.useCallback)(async()=>{let e=await ef({urnList:eN});(0,z.D4)(e)?h((0,U.Vo)((0,z.e$)(e.error))):(h((0,U.t5)(m===r.Kl?"".concat(eN.length," uncategorized assets have been ignored and will not appear in future scans."):"".concat(eN.length," assets from ").concat(m," have been ignored and will not appear in future scans."),"Confirmed")),eL())},[ef,eN,m,h,eL]),eZ=(0,l.useCallback)(async()=>{let e=await e_({urnList:eN});(0,z.D4)(e)?h((0,U.Vo)((0,z.e$)(e.error))):(h((0,U.t5)("".concat(eN.length," assets have been restored and will appear in future scans."),"Confirmed")),eL())},[e_,eN,h,eL]),eU=(0,l.useCallback)(async()=>{let e=(null==ep?void 0:ep.items.length)||0,n=await ex({monitor_config_key:t,resolved_system_ids:[s]});(0,z.D4)(n)?h((0,U.Vo)((0,z.e$)(n.error))):(u.push({pathname:r.lA,query:{monitorId:encodeURIComponent(t)}}),h((0,U.t5)("".concat(e," assets from ").concat(m," have been added to the system inventory."),"Confirmed")),eL())},[null==ep?void 0:ep.items.length,ex,t,s,u,h,m,eL]),eG=(0,l.useCallback)(async e=>{await K(e),es(),eL()},[K,es,eL]);return{columns:eP,data:ep,isLoading:eh,isFetching:em,tableState:Y,searchQuery:ei,updateSearch:er,updateFilters:eo,updateSorting:ed,updatePageIndex:ec,updatePageSize:eu,resetState:es,tableProps:eD.tableProps,selectionProps:eD.selectionProps,filterTabs:P,activeTab:B,handleTabChange:eG,activeParams:J,actionsDisabled:F,selectedRows:eO,selectedUrns:eN,hasSelectedRows:eD.hasSelectedRows,resetSelections:eL,systemName:m,consentStatus:i,handleBulkAdd:eR,handleBulkAssignSystem:eM,handleBulkAddDataUse:ez,handleBulkIgnore:eV,handleBulkRestore:eZ,handleAddAll:eU,anyBulkActionIsLoading:eE,isAddingResults:eg,isIgnoringResults:ev,isAddingAllResults:ej,isBulkUpdatingSystem:eC,isBulkAddingDataUses:ew,isRestoringResults:eS,disableAddAll:eA}},el=e=>{var t;let{monitorId:s,systemId:a,consentStatus:i}=e,[r,o]=(0,l.useState)(!1),[d,m]=(0,l.useState)(!1),[y,g]=(0,l.useState)(null),{columns:f,searchQuery:v,updateSearch:x,resetState:b,tableProps:C,selectionProps:k,filterTabs:_,activeTab:S,handleTabChange:E,activeParams:A,actionsDisabled:T,selectedUrns:I,hasSelectedRows:D,resetSelections:N,handleBulkAdd:O,handleBulkAssignSystem:P,handleBulkAddDataUse:R,handleBulkIgnore:M,handleBulkRestore:z,handleAddAll:V,anyBulkActionIsLoading:Z,isAddingAllResults:U,isBulkUpdatingSystem:G,isBulkAddingDataUses:q,disableAddAll:B}=ea({monitorId:s,systemId:a,consentStatus:i,onShowComplianceIssueDetails:e=>{g(e)}}),K=async e=>{await P(e),o(!1)},$=async e=>{await R(e),m(!1)};return s&&a?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(c.Niu,{"aria-label":"Asset state filter",mode:"horizontal",items:_.map(e=>({key:e.hash,label:e.label})),selectedKeys:[S],onClick:async e=>{await E(e.key)},className:"mb-4","data-testid":"asset-state-filter"}),(0,n.jsxs)(c.jqI,{justify:"space-between",align:"center",className:"sticky -top-6 z-10 mb-4 bg-white py-4",children:[(0,n.jsx)(h.f,{value:v,onChange:x,placeholder:"Search by asset name..."}),(0,n.jsxs)(c.vyj,{size:"large",children:[D&&(0,n.jsx)(u.a,{count:I.length}),(0,n.jsxs)(c.vyj,{size:"small",children:[(0,n.jsx)(c.wpx,{onClick:()=>{b(),N()},"data-testid":"clear-filters",children:"Clear filters"}),(0,n.jsx)(c.S0p,{overlayClassName:"bulk-actions-menu-dropdown",menu:{items:[...(null==A?void 0:null===(t=A.diff_status)||void 0===t?void 0:t.includes(p.LL.MUTED))?[{key:"restore",label:"Restore",onClick:z}]:[{key:"add",label:"Add",onClick:O},{key:"add-data-use",label:"Add consent category",onClick:()=>m(!0)},{key:"assign-system",label:"Assign system",onClick:()=>o(!0)},{type:"divider"},{key:"ignore",label:"Ignore",onClick:M}]]},trigger:["click"],children:(0,n.jsx)(c.wpx,{icon:(0,n.jsx)(c.PJP._ME,{}),iconPosition:"end",loading:Z,"data-testid":"bulk-actions-menu",disabled:!D||Z||T,type:"primary",children:"Actions"})}),(0,n.jsx)(c.esZ,{title:B?"These assets require a system before you can add them to the inventory.":void 0,children:(0,n.jsx)(c.wpx,{onClick:V,disabled:B,loading:U,type:"primary",icon:(0,n.jsx)(c.PJP.MCw,{}),iconPosition:"end","data-testid":"add-all",children:"Add all"})})]})]})]}),(0,n.jsx)(c.V5H,{...C,columns:f,rowSelection:k,locale:{emptyText:(0,n.jsx)(c.oj8,{image:c.oj8.PRESENTED_IMAGE_SIMPLE,description:"All caught up!"})},"aria-labelledby":"breadcrumb-current-page"}),(0,n.jsx)(w,{isOpen:r,onClose:()=>{o(!1)},onSave:K,isSaving:G}),(0,n.jsx)(j,{isOpen:d,onClose:()=>{m(!1)},onSave:$,isSaving:q}),y&&(0,n.jsx)(L,{isOpen:!!y,stagedResource:y,onCancel:()=>{g(null)}})]}):null};var ei=s(71985),er=s(98243),eo=()=>{let e=(0,a.useRouter)(),t=decodeURIComponent(e.query.monitorId),s=decodeURIComponent(e.query.systemId),{data:c}=(0,d.wi)({key:t,page:1,size:1,search:"",diff_status:[er.L.ADDITION],resolved_system_id:s}),u=null==c?void 0:c.items[0];return(0,l.useEffect)(()=>{c&&0===c.items.length&&e.push({pathname:r.lA,query:{monitorId:encodeURIComponent(t)}})},[c,e,t]),(0,n.jsxs)(i.Z,{title:"Action center - Discovered assets",children:[(0,n.jsx)(o.Z,{heading:"Action center",breadcrumbItems:[{title:"All activity",href:r.vi},{title:t,href:"".concat(r.vi,"/").concat(ei.w.WEBSITE,"/").concat(t)},{title:s===r.Kl?"Uncategorized assets":null==u?void 0:u.name}],isSticky:!1}),(0,n.jsx)(el,{monitorId:t,systemId:s,consentStatus:null==u?void 0:u.consent_status})]})}},31883:function(e,t,s){"use strict";s.d(t,{Bw:function(){return n.Bw},D4:function(){return n.D4}});var n=s(19043)},18992:function(e){e.exports={cellBleed:"Cells_cellBleed__dik43"}}},function(e){e.O(0,[431,6344,7245,3931,401,4589,1438,2888,9774,179],function(){return e(e.s=14599)}),_N_E=e.O()}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1206],{55515:function(e,t,s){(window.__NEXT_P=window.__NEXT_P||[]).push(["/data-discovery/action-center/website/[monitorId]",function(){return s(56497)}])},56497:function(e,t,s){"use strict";s.r(t),s.d(t,{default:function(){return C}});var n=s(24246),a=s(39158),i=s(86677),l=s(25980),o=s(35287),r=s(77830),c=s(58754),u=s(25415),d=s(60240),m=s(30952),v=s(27378),y=s(812),f=s(8125),b=s(46628),h=s(37059),_=s(98145),p=s(9320),g=s(71985),w=s(88708),k=s(66213);let j=e=>{let{monitorId:t,readonly:s,allowIgnore:n,onTabChange:a,consentStatus:i,rowClickUrl:l,resourceType:o}=e,[r,c]=(0,v.useState)(!1),[u,d]=(0,v.useState)(!1),[m,y]=(0,v.useState)(!1),[f,b]=(0,v.useState)(0),[h,_]=(0,v.useState)(0),[p,g]=(0,v.useState)(0);return{columns:(0,v.useMemo)(()=>{if((0,k.yu)(o))return(0,k.b$)({rowClickUrl:l});let e={monitorId:t,readonly:s,allowIgnore:n,onTabChange:a,consentStatus:i,rowClickUrl:l,isDataUsesExpanded:m,isLocationsExpanded:r,isDomainsExpanded:u,dataUsesVersion:p,locationsVersion:f,domainsVersion:h,setIsDataUsesExpanded:y,setIsLocationsExpanded:c,setIsDomainsExpanded:d,setDataUsesVersion:g,setLocationsVersion:b,setDomainsVersion:_};return s?(0,k.Ah)(e):(0,k.xg)(e)},[s,i,l,m,r,u,p,f,h,t,n,a,o])}},x=e=>{let{monitorId:t}=e,s=(0,i.useRouter)(),l=(0,a.pmc)(),[o,c]=(0,v.useState)(),u=(0,f.o)({sorting:{validColumns:Object.values(_.vQ)}}),{pageIndex:m,pageSize:k,searchQuery:x,updateSearch:S,resetState:E}=u,{filterTabs:C,activeTab:A,onTabChange:I,activeParams:P,actionsDisabled:N}=(0,w.Z)(),{data:R,isLoading:T,isFetching:L}=(0,h.wi)({key:t,page:m,size:k,search:x,...P}),[M,{isLoading:D}]=(0,h.rs)(),[z,{isLoading:K}]=(0,h.nP)(),O=(0,v.useCallback)(e=>{var t,s,n;return null!==(n=null!==(s=null!==(t=e.id)&&void 0!==t?t:e.vendor_id)&&void 0!==s?s:e.name)&&void 0!==n?n:r.Kl},[]),U=(0,v.useCallback)(e=>{var s;let n=null!==(s=e.id)&&void 0!==s?s:r.Kl,a=A?"#".concat(A):"";return"".concat(r.vi,"/").concat(g.w.WEBSITE,"/").concat(t,"/").concat(n).concat(a)},[t,A]),V=(0,v.useMemo)(()=>({enableSelection:!0,getRowKey:O,isLoading:T,isFetching:L,dataSource:(null==R?void 0:R.items)||[],totalRows:(null==R?void 0:R.total)||0,customTableProps:{locale:{emptyText:(0,n.jsx)(a.oj8,{image:a.oj8.PRESENTED_IMAGE_SIMPLE,description:"All caught up!"})},sticky:{offsetHeader:40}}}),[O,T,L,null==R?void 0:R.items,null==R?void 0:R.total]),Z=(0,f.V)(u,V),{selectedRows:q,resetSelections:F}=Z,$=(0,v.useCallback)(async e=>{c(void 0),await I(e),E(),F()},[I,E,F]),{columns:B}=j({monitorId:t,onTabChange:$,readonly:N,allowIgnore:!("diff_status"in P)||!P.diff_status.includes(d.LL.MUTED),consentStatus:o,rowClickUrl:U});(0,v.useEffect)(()=>{if((null==R?void 0:R.items)&&!o){var e;let t=null===(e=R.items.find(e=>{var t;return(null===(t=e.consent_status)||void 0===t?void 0:t.status)===d.pF.ALERT}))||void 0===e?void 0:e.consent_status;c(null!=t?t:void 0)}},[R,o]);let G=(0,v.useCallback)(async()=>{let e=q.reduce((e,t)=>e+t.total_updates,0),n=await M({monitor_config_key:t,resolved_system_ids:q.map(e=>e.id)});(0,y.D4)(n)?l((0,b.Vo)((0,y.e$)(n.error))):(l((0,b.t5)((0,p._)("".concat(e," assets have been added to the system inventory."),()=>s.push(r.So)))),F())},[q,M,t,l,s,F]),H=(0,v.useCallback)(async()=>{let e=q.reduce((e,t)=>e+t.total_updates,0),s=await z({monitor_config_key:t,resolved_system_ids:q.map(e=>{var t;return null!==(t=e.id)&&void 0!==t?t:r.Kl})});(0,y.D4)(s)?l((0,b.Vo)((0,y.e$)(s.error))):(l((0,b.t5)((0,p._)("".concat(e," assets have been ignored and will not appear in future scans."),async()=>{await I(w.A.IGNORED)}))),F())},[q,z,t,l,I,F]),X=q.some(e=>null===e.id);return{columns:B,data:R,isLoading:T,isFetching:L,searchQuery:x,updateSearch:S,resetState:E,tableProps:Z.tableProps,selectionProps:Z.selectionProps,filterTabs:C,activeTab:A,handleTabChange:$,activeParams:P,actionsDisabled:N,selectedRows:q,hasSelectedRows:Z.hasSelectedRows,resetSelections:F,uncategorizedIsSelected:X,handleBulkAdd:G,handleBulkIgnore:H,anyBulkActionIsLoading:D||K,isAddingResults:D,isIgnoringResults:K}},S=e=>{let{monitorId:t}=e,{columns:s,searchQuery:i,updateSearch:l,tableProps:o,selectionProps:r,filterTabs:c,activeTab:v,handleTabChange:y,activeParams:f,selectedRows:b,hasSelectedRows:h,uncategorizedIsSelected:_,handleBulkAdd:p,handleBulkIgnore:g,anyBulkActionIsLoading:w}=x({monitorId:t});return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(a.Niu,{"aria-label":"Asset state filter",mode:"horizontal",items:c.map(e=>({key:e.hash,label:e.label})),selectedKeys:[v],onClick:async e=>{await y(e.key)},className:"mb-4","data-testid":"asset-state-filter"}),(0,n.jsxs)(a.jqI,{justify:"space-between",align:"center",className:"sticky -top-6 z-10 bg-white py-4",children:[(0,n.jsx)(m.f,{value:i,onChange:l}),(0,n.jsxs)(a.vyj,{size:"large",children:[h&&(0,n.jsx)(u.a,{count:b.length}),(0,n.jsx)(a.S0p,{menu:{items:[{key:"add",label:(0,n.jsx)(a.esZ,{title:_?"Uncategorized assets can't be added to the inventory":null,placement:"left",children:"Add"}),onClick:p,disabled:_},"diff_status"in f&&!f.diff_status.includes(d.LL.MUTED)?{key:"ignore",label:"Ignore",onClick:g}:null]},trigger:["click"],children:(0,n.jsx)(a.wpx,{type:"primary",icon:(0,n.jsx)(a.PJP._ME,{}),iconPosition:"end",loading:w,disabled:!h,"data-testid":"bulk-actions-menu",children:"Actions"})})]})]}),(0,n.jsx)(a.V5H,{...o,columns:s,rowSelection:r})]})},E=()=>(0,n.jsx)(n.Fragment,{children:"Attempting to access monitor results without the required feature flag enabled"});var C=()=>{let{flags:e}=(0,l.hz)(),t=decodeURIComponent((0,i.useRouter)().query.monitorId);return e.webMonitor?(0,n.jsxs)(o.Z,{title:"Action center - Discovered assets by system",children:[(0,n.jsx)(c.Z,{heading:"Action center",breadcrumbItems:[{title:"All activity",href:r.vi},{title:t}],isSticky:!1}),(0,n.jsx)(S,{monitorId:t})]}):(0,n.jsx)(a.ux6,{status:"error",title:(0,n.jsx)(E,{})})}}},function(e){e.O(0,[431,7245,3931,4589,4809,2888,9774,179],function(){return e(e.s=55515)}),_N_E=e.O()}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8443],{40741:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/data-discovery/action-center",function(){return t(4582)}])},77213:function(e,n,t){"use strict";t.d(n,{Z:function(){return m}});var i=t(24246),s=t(39158),a=t(88038),r=t.n(a),l=t(86677);t(27378);var o=t(25980),c=t(90867),d=t(42478),u=t(77830),g=()=>{let e=(0,l.useRouter)();return(0,i.jsx)(s.xuv,{bg:"gray.50",border:"1px solid",borderColor:"blue.400",borderRadius:"md",justifyContent:"space-between",p:5,mb:5,mt:5,children:(0,i.jsxs)(s.xuv,{children:[(0,i.jsxs)(s.Kqy,{direction:{base:"column",sm:"row"},justifyContent:"space-between",children:[(0,i.jsx)(s.xvT,{fontWeight:"semibold",children:"Configure your storage and messaging provider"}),(0,i.jsx)(s.wpx,{onClick:()=>{e.push(u.AD)},children:"Configure"})]}),(0,i.jsxs)(s.xvT,{children:["Before Fides can process your privacy requests we need two simple steps to configure your storage and email client."," "]})]})})},m=e=>{let{children:n,title:t,padded:a=!0,mainProps:u}=e,m=(0,o.hz)(),p=(0,l.useRouter)(),f="/privacy-requests"===p.pathname||"/datastore-connection"===p.pathname,h=!(m.flags.messagingConfiguration&&f),{data:y}=(0,d.JE)(void 0,{skip:h}),{data:x}=(0,c.PW)(void 0,{skip:h}),v=m.flags.messagingConfiguration&&(!y||!x)&&f;return(0,i.jsxs)(s.kCb,{"data-testid":t,direction:"column",h:"100vh",children:[(0,i.jsxs)(r(),{children:[(0,i.jsxs)("title",{children:["Fides Admin UI - ",t]}),(0,i.jsx)("meta",{name:"description",content:"Privacy Engineering Platform"}),(0,i.jsx)("link",{rel:"icon",href:"/favicon.ico"})]}),(0,i.jsxs)(s.kCb,{as:"main",direction:"column",py:a?6:0,px:a?10:0,h:a?"calc(100% - 48px)":"full",flex:1,minWidth:0,overflow:"auto",...u,children:[v?(0,i.jsx)(g,{}):null,n]})]})}},14908:function(e,n,t){"use strict";var i=t(86677),s=t(27378);let a=e=>e.startsWith("#")?e.slice(1):e;n.Z=e=>{let{tabKeys:n,initialTab:t}=e,r=(0,i.useRouter)(),l=r.asPath.split("#")[1]||n[0],[o,c]=(0,s.useState)(l);return(0,s.useEffect)(()=>{t&&n.includes(t)&&c(t)},[t,n,r.isReady]),{activeTab:o,onTabChange:(0,s.useCallback)(async e=>{if(!n.includes(e)){await r.replace({pathname:r.pathname,query:r.query,hash:void 0}),c(n[0]);return}r.isReady&&(await r.replace({pathname:r.pathname,query:r.query,hash:a(e)},void 0,{shallow:!0}),c(e))},[r,n]),setActiveTab:c}}},54762:function(e,n,t){"use strict";t.d(n,{l:function(){return l}});var i=t(24246),s=t(39158),a=t(62165),r=t(60240);let l=e=>{let{consentStatus:n}=e,{flags:t}=(0,a.hz)(),{assetConsentStatusLabels:l}=t;return l&&(null==n?void 0:n.status)===r.pF.ALERT?(0,i.jsx)(s.esZ,{title:null==n?void 0:n.message,"data-testid":"discovery-status-icon-alert-tooltip",children:(0,i.jsx)("div",{className:"mb-px","data-testid":"discovery-status-icon-alert",children:(0,i.jsx)(s.PJP.OdJ,{style:{color:"var(--fidesui-error)"}})})}):null}},42478:function(e,n,t){"use strict";t.d(n,{FU:function(){return c},JE:function(){return s},Ki:function(){return u},SU:function(){return g},W:function(){return m},h9:function(){return a},jc:function(){return i},qt:function(){return o},sn:function(){return d}});let{useGetEmailInviteStatusQuery:i,useGetActiveMessagingProviderQuery:s,useCreateMessagingConfigurationMutation:a,useCreateMessagingConfigurationSecretsMutation:r,useGetMessagingConfigurationDetailsQuery:l,useGetMessagingConfigurationsQuery:o,useGetMessagingConfigurationByKeyQuery:c,useUpdateMessagingConfigurationByKeyMutation:d,useUpdateMessagingConfigurationSecretsByKeyMutation:u,useCreateTestConnectionMessageMutation:g,useDeleteMessagingConfigurationByKeyMutation:m}=t(78780).u.injectEndpoints({endpoints:e=>({getEmailInviteStatus:e.query({query:()=>({url:"/messaging/email-invite/status"}),providesTags:()=>["Email Invite Status"]}),createMessagingConfiguration:e.mutation({query:e=>({url:"messaging/config",method:"POST",body:e}),invalidatesTags:["Messaging Config","Configuration Settings"]}),getActiveMessagingProvider:e.query({queryFn:async(e,n,t,i)=>{let s=await i({url:"messaging/default/active"});return s.error&&404===s.error.status?{data:null}:s},providesTags:["Messaging Config"]}),createMessagingConfigurationSecrets:e.mutation({query:e=>({url:"messaging/default/".concat(e.service_type,"/secret"),method:"PUT",body:e.details}),invalidatesTags:["Messaging Config","Configuration Settings"]}),getMessagingConfigurationDetails:e.query({query:e=>({url:"messaging/default/".concat(e.type)}),providesTags:["Messaging Config"]}),getMessagingConfigurations:e.query({query:()=>({url:"messaging/config"}),providesTags:["Messaging Config"]}),getMessagingConfigurationByKey:e.query({query:e=>({url:"messaging/config/".concat(e.key)}),providesTags:["Messaging Config"]}),createTestConnectionMessage:e.mutation({query:e=>({url:"messaging/test/".concat(e.service_type),method:"POST",body:e.details}),invalidatesTags:["Messaging Config"]}),updateMessagingConfigurationByKey:e.mutation({query:e=>({url:"messaging/config/".concat(e.key),method:"PATCH",body:e.config}),invalidatesTags:["Messaging Config","Configuration Settings"]}),updateMessagingConfigurationSecretsByKey:e.mutation({query:e=>({url:"messaging/config/".concat(e.key,"/secret"),method:"PUT",body:e.secrets}),invalidatesTags:["Messaging Config","Configuration Settings"]}),deleteMessagingConfigurationByKey:e.mutation({query:e=>({url:"messaging/config/".concat(e.key),method:"DELETE"}),invalidatesTags:["Messaging Config","Configuration Settings"]})})})},4582:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return em}});var i,s,a=t(24246),r=t(39158),l=t(27378),o=t(30952),c=t(25980),d=t(35287),u=t(77830),g=t(58754),m=t(9270),p=t(37059),f=t(16394),h=t(17245),y=t(67359);let x=()=>{let{resetPagination:e,pageIndex:n,pageSize:t,paginationProps:i}=(0,m.S)(),{searchQuery:s,updateSearch:o}=(0,h.Rx)(),c=(0,l.useMemo)(()=>[y.n.PENDING,y.n.IN_PROCESSING,y.n.PAUSED,y.n.RETRYING,y.n.ERROR],[]),[d,u]=(0,l.useState)(c),[g,f]=(0,l.useState)(!1),[x,v]=(0,l.useState)(c),[j,_]=(0,l.useState)(!1),C=(0,l.useCallback)(n=>{o(n),e()},[o,e]),w=(0,l.useCallback)(e=>{v(e)},[]),b=(0,l.useCallback)(e=>{_(e)},[]),k=(0,l.useCallback)(()=>{u(x),f(j),e()},[x,j,e]),E=(0,l.useCallback)(()=>{v(c),_(!1),u(c),f(!1),e()},[c,e]),S=[y.n.PENDING,y.n.IN_PROCESSING,y.n.COMPLETE,y.n.ERROR,y.n.PAUSED,y.n.RETRYING,y.n.SKIPPED],{data:N,isLoading:I,isFetching:T}=(0,p.$h)({page:n,size:t,search:s,statuses:d.length>0?d:void 0,return_dismissed:g},{pollingInterval:3e3,refetchOnFocus:!0,refetchOnReconnect:!0});return{searchQuery:s,updateSearch:C,statusFilters:x,updateStatusFilters:w,showDismissed:j,updateShowDismissed:b,applyFilters:k,resetAndApplyFilters:E,availableStatuses:S,listProps:(0,l.useMemo)(()=>({dataSource:(null==N?void 0:N.items)||[],loading:I,locale:{emptyText:(0,a.jsx)(r.oj8,{image:r.oj8.PRESENTED_IMAGE_SIMPLE,description:"No tasks in progress"})}}),[null==N?void 0:N.items,I]),paginationProps:{...i,total:null==N?void 0:N.total},isLoading:I,isFetching:T}};var v=t(10969),j=t(60145),_=t(11558),C=t(70641),w=t(7317),b=t(85302),k=t(64892);function E(e,n,t){let i;let s=(0,j.j)(),a=t?.locale??s.locale??v._,r=(0,b.U)(e,n);if(isNaN(r))throw RangeError("Invalid time value");let l=Object.assign({},t,{addSuffix:t?.addSuffix,comparison:r}),[o,c]=(0,w.d)(t?.in,...r>0?[n,e]:[e,n]),d=(0,_.u)(t?.roundingMethod??"round"),u=c.getTime()-o.getTime(),g=u/k.yJ,m=(u-((0,C.D)(c)-(0,C.D)(o)))/k.yJ,p=t?.unit;if("second"===(i=p||(g<1?"second":g<60?"minute":g<k.H_?"hour":m<k.fH?"day":m<k.UU?"month":"year"))){let e=d(u/1e3);return a.formatDistance("xSeconds",e,l)}if("minute"===i){let e=d(g);return a.formatDistance("xMinutes",e,l)}if("hour"===i){let e=d(g/60);return a.formatDistance("xHours",e,l)}if("day"===i){let e=d(m/k.H_);return a.formatDistance("xDays",e,l)}if("month"===i){let e=d(m/k.fH);return 12===e&&"month"!==p?a.formatDistance("xYears",1,l):a.formatDistance("xMonths",e,l)}{let e=d(m/k.UU);return a.formatDistance("xYears",e,l)}}var S=t(88340),N=t(41337),I=t(60240);let{Paragraph:T,Text:M,Title:P}=r.AntTypography,A=e=>"paused"===e?"Awaiting Processing":e.split("_").map(f.kC).join(" "),R=e=>{var n,t,i,s,l,o,c,d,u,g;let{task:m,...h}=e,y=(0,r.pmc)(),[x,{isLoading:v}]=(0,p.mL)(),[j,{isLoading:_}]=(0,p.QC)(),C=!!m.dismissed,w="error"===m.status&&m.action_type!==I.K8.DETECTION,{data:b}=(0,p.Ud)({page:1,size:1e3}),k=m.monitor_config_id?null==b?void 0:null===(n=b.items)||void 0===n?void 0:n.find(e=>e.key===m.monitor_config_id):void 0,R=k?(0,N.AZ)({connection_type:k.connection_type,name:null!==(s=k.name)&&void 0!==s?s:null,key:null!==(l=k.key)&&void 0!==l?l:null,saas_config:k.saas_config?{type:null!==(o=k.saas_config.type)&&void 0!==o?o:null,name:null!==(c=k.saas_config.name)&&void 0!==c?c:null,fides_key:null!==(d=k.saas_config.fides_key)&&void 0!==d?d:null}:null,secrets:(null===(i=k.secrets)||void 0===i?void 0:i.url)?{url:k.secrets.url}:null}):m.connection_type?(0,N.AZ)({connection_type:m.connection_type,name:null!==(u=m.connection_name)&&void 0!==u?u:m.connection_type?m.connection_type.toString():null,key:null,saas_config:null,secrets:null}):void 0,O=(null===(t=m.staged_resource_urns)||void 0===t?void 0:t.length)||0,D=["pending","in_processing","paused","retrying"].includes((m.status||"").toLowerCase()),q=m.field_count||O,z=(()=>{if(m.action_type===I.K8.CLASSIFICATION||m.action_type===I.K8.LLM_CLASSIFICATION){let e="complete"===m.status?"Classified":"Classifying";return"".concat(e," ").concat(q," ").concat((0,f._6)(q,"field","fields"))}if(m.action_type===I.K8.DETECTION)return"complete"===m.status?"Monitor scanned":"Monitor scanning";if(m.action_type===I.K8.PROMOTION){let e="complete"===m.status?"Confirmed":"Confirming";return"".concat(e," ").concat(q," ").concat((0,f._6)(q,"field","fields"))}return m.action_type?m.action_type.replace(/_/g," "):"Task"})(),U=m.monitor_name||"Unknown monitor",F=async()=>{try{await x({taskId:m.id}).unwrap(),y({status:"success",description:"Task retry initiated successfully"})}catch(t){var e;let n=(null==t?void 0:null===(e=t.data)||void 0===e?void 0:e.detail)||(null==t?void 0:t.message)||"Unknown error occurred";y({status:"error",description:"Failed to retry task: ".concat(n)})}},H=async()=>{try{await j({taskId:m.id}).unwrap(),y({status:"success",description:"Task dismissed successfully"})}catch(t){var e;let n=(null==t?void 0:null===(e=t.data)||void 0===e?void 0:e.detail)||(null==t?void 0:t.message)||"Unknown error occurred";y({status:"error",description:"Failed to dismiss task: ".concat(n)})}};return(0,a.jsx)("div",{...h,className:"w-full",children:(0,a.jsxs)(r.bue,{gutter:12,className:"w-full",children:[(0,a.jsx)(r.JGx,{span:14,className:"align-middle",children:(0,a.jsxs)(r.vyj,{direction:"vertical",size:4,children:[(0,a.jsxs)(r.vyj,{align:"center",size:8,wrap:!0,children:[R&&(0,a.jsx)(N.ZP,{data:R,size:24}),(0,a.jsx)(P,{level:5,className:"m-0",children:z}),!D&&(0,a.jsx)(r.j8w,{color:(e=>{switch(e){case"pending":case"retrying":case"skipped":default:return r.tAb.DEFAULT;case"in_processing":return r.tAb.INFO;case"complete":return r.tAb.SUCCESS;case"error":return r.tAb.ERROR;case"paused":return r.tAb.MARBLE}})(m.status),children:(g=m.status)?A(g):"Unknown"})]}),"error"===m.status&&(0,a.jsxs)(r.vyj,{children:[(0,a.jsx)(T,{type:"secondary",size:"sm",ellipsis:{rows:1,expandable:!0,symbol:"more",tooltip:!0},children:m.message||"Unknown error"}),m.message&&(0,a.jsx)(S.Z,{copyText:m.message,size:"small",className:"ml-1"})]})]})}),(0,a.jsx)(r.JGx,{span:4,className:"flex items-center justify-end",children:(0,a.jsx)(M,{type:"secondary",size:"sm",children:U})}),(0,a.jsx)(r.JGx,{span:3,className:"flex items-center justify-end",children:D?(0,a.jsx)(r.ZJQ,{size:"small"}):(0,a.jsx)(M,{type:"secondary",size:"sm",children:E(new Date(m.updated_at),new Date,{addSuffix:!0})})}),(0,a.jsx)(r.JGx,{span:3,className:"flex items-center justify-end",children:"error"===m.status&&(0,a.jsxs)(r.vyj,{size:0,split:(0,a.jsx)(r.htM,{type:"vertical"}),children:[w&&(0,a.jsx)(r.wpx,{type:"link",size:"small",loading:v,onClick:F,className:"p-0",children:"Retry"}),!C&&(0,a.jsx)(r.wpx,{type:"link",size:"small",loading:_,onClick:H,className:"p-0",children:"Dismiss"})]})})]})})},O=e=>"paused"===e?"Awaiting Processing":e.split("_").map(f.kC).join(" "),D=()=>{var e,n;let[t,i]=(0,l.useState)(!1),{searchQuery:s,updateSearch:c,statusFilters:d,updateStatusFilters:u,showDismissed:g,updateShowDismissed:m,applyFilters:p,resetAndApplyFilters:f,availableStatuses:h,listProps:y,paginationProps:v}=x(),j=(0,l.useCallback)(e=>{u(e)},[u]),_=(0,l.useCallback)(()=>{p(),i(!1)},[p]),C=(0,l.useCallback)(()=>{f(),i(!1)},[f]),w=(0,a.jsxs)(r.jqI,{vertical:!0,className:"min-w-[220px]",children:[(0,a.jsxs)(r.jqI,{vertical:!0,className:"gap-1.5 px-4 py-2",children:[(0,a.jsx)(r.E_O.Group,{value:d,onChange:j,className:"flex flex-col gap-1.5",children:h.map(e=>(0,a.jsx)(r.E_O,{value:e,children:O(e)},e))}),(0,a.jsx)(r.E_O,{checked:g,onChange:e=>m(e.target.checked),children:"Dismissed"})]}),(0,a.jsx)(r.htM,{className:"m-0"}),(0,a.jsxs)(r.jqI,{justify:"space-between",className:"px-4 py-2",children:[(0,a.jsx)(r.wpx,{size:"small",type:"text",onClick:C,className:"-ml-2",children:"Reset"}),(0,a.jsx)(r.wpx,{size:"small",type:"primary",onClick:_,children:"Apply"})]})]});return(0,a.jsxs)(r.jqI,{className:"h-[calc(100%-48px)] overflow-hidden",gap:"middle",vertical:!0,children:[(0,a.jsxs)(r.jqI,{justify:"space-between",align:"center",children:[(0,a.jsx)("div",{className:"min-w-[300px]",children:(0,a.jsx)(o.f,{value:null!=s?s:"",onChange:c,placeholder:"Search by monitor name..."})}),(0,a.jsx)(r.bPF,{content:w,trigger:"click",placement:"bottomRight",open:t,onOpenChange:i,children:(0,a.jsx)(r.wpx,{icon:(0,a.jsx)(r.PJP._ME,{}),iconPosition:"end",children:"Filter"})})]}),(0,a.jsx)(r.krs,{...y,className:"h-full overflow-scroll",renderItem:e=>(0,a.jsx)(r.krs.Item,{children:(0,a.jsx)(R,{task:e})})}),(0,a.jsx)(r.B7X,{...v,showSizeChanger:{suffixIcon:(0,a.jsx)(r.PJP._ME,{})},hideOnSinglePage:(null===(e=v.pageSize)||void 0===e?void 0:e.toString())===(null===(n=v.pageSizeOptions)||void 0===n?void 0:n[0])})]})};var q=t(77213);let z=()=>(0,a.jsx)(q.Z,{title:"Action center",mainProps:{className:"h-full"},children:(0,a.jsx)(r.jqI,{justify:"center",align:"center",className:"h-full",children:(0,a.jsx)(r.DUx,{message:"Coming soon...",description:"Action center is currently disabled.",type:"info",showIcon:!0})})});var U=t(79894),F=t.n(U);let H=()=>(0,a.jsx)(r.oj8,{image:r.oj8.PRESENTED_IMAGE_SIMPLE,description:"All caught up! Set up an integration monitor to track your infrastructure in greater detail.",children:(0,a.jsx)(F(),{href:u.KH,passHref:!0,legacyBehavior:!0,children:(0,a.jsx)(r.wpx,{type:"primary",children:"Visit integrations"})})});var L=t(14908);(i=s||(s={})).ATTENTION_REQUIRED="attention-required",i.IN_PROGRESS="in-progress";var G=()=>{let{flags:e}=(0,c.hz)(),n=!!e.heliosV2,t=(0,l.useMemo)(()=>n?Object.values(s):["attention-required"],[n]),{activeTab:i,onTabChange:a}=(0,L.Z)({tabKeys:t});return{tabs:(0,l.useMemo)(()=>{let e=[{label:"Attention required",hash:"attention-required"}];return n&&e.push({label:"Activity",hash:"in-progress"}),e},[n]),activeTab:i,onTabChange:a}},J=t(20411),K=t(18397),B=t(83158),Z=t(9110),W=t(62678),$=t(31883),Q=t(99824),Y=t(99089),V=t(63537);let X=e=>{let[n,t]=r.$zI.useModal(),[i]=(0,Y.rL)(),s=(0,r.UD8)();return{confirmAll:async(t,a)=>{let r=W.FieldActionType.PROMOTE,l=Date.now();if(!await n.confirm((0,V.nB)(Q.Me[r],Q.e_[r](a))))return;s.open({key:l,type:"loading",content:"".concat(Q.T0[r]," ").concat(a," ").concat((0,f._6)(a,"field","fields"),"..."),duration:0});let o=await i({query:{confidence_bucket:[t]},path:{monitor_config_id:e,action_type:r},body:{excluded_resource_urns:[]}});if((0,$.D4)(o)){s.open({key:l,type:"error",content:(0,V.v_)(r),duration:5});return}s.open({key:l,type:"success",content:(0,V.NM)(r,a),duration:5})},contextHolder:t}},ee=e=>{let{item:n,reviewHref:t,onConfirmAll:i}=e,s=[(0,a.jsx)(F(),{href:{pathname:t,query:{confidenceBucket:n.severity}},passHref:!0,children:(0,a.jsx)(r.wpx,{type:"text",size:"small",icon:(0,a.jsx)(r.PJP.ejL,{}),"aria-label":"Review ".concat(n.label," fields"),children:"Review"})},n.label)];return n.severity===B.$.HIGH&&i&&s.push((0,a.jsx)(r.wpx,{type:"text",size:"small",icon:(0,a.jsx)(r.PJP.WzW,{}),"aria-label":"Confirm all ".concat(n.label," fields"),onClick:i,children:"Confirm"},"confirm")),s},en=e=>{let{item:n,reviewHref:t,monitorId:i}=e,s=(0,V.Oq)(n.severity),{confirmAll:l,contextHolder:o}=X(i);return(0,a.jsxs)(a.Fragment,{children:[o,(0,a.jsx)(r.V4A,{size:"small",styles:{body:{display:"none"}},title:(0,a.jsxs)(r.vyj,{children:[(0,a.jsx)(r.t3Z,{size:24,icon:(0,a.jsx)(r.QMR,{color:"black"})}),(0,a.jsxs)(r.lKn,{type:"secondary",className:"font-normal",children:[(0,f.pF)(n.count)," ",(0,f._6)(n.count,"field","fields")]}),(0,a.jsx)(r.lKn,{children:n.label}),s&&(0,a.jsx)(Z.D,{severity:s,format:()=>null})]}),actions:ee({item:n,reviewHref:t,onConfirmAll:()=>{l(n.severity,n.count)}})})]})};var et=t(98145);let ei=e=>{let{confidenceCounts:n,reviewHref:t,monitorId:i,...s}=e;return(0,a.jsx)(r.krs,{grid:{gutter:16,column:3},dataSource:[{label:et.bI.HIGH,count:n.highConfidenceCount,severity:B.$.HIGH},{label:et.bI.MEDIUM,count:n.mediumConfidenceCount,severity:B.$.MEDIUM},{label:et.bI.LOW,count:n.lowConfidenceCount,severity:B.$.LOW}].filter(e=>e.count>0),renderItem:e=>(0,a.jsx)(r.krs.Item,{children:(0,a.jsx)(en,{item:e,reviewHref:t,monitorId:i})}),...s})};var es=t(54762),ea=t(42905),er=t.n(ea);let el=(e,n)=>{let t=et.v8.get(e);return t?(0,f._6)(n,t[0],t[1]):e},eo=e=>{let{updates:n,isAssetList:t}=e,i=(0,l.useMemo)(()=>n?Object.entries(n).filter(e=>{let[n,t]=e;return null!==t&&t>0&&!et.EP.includes(n)}).sort((e,n)=>{let t=et.H6.indexOf(e[0]),i=et.H6.indexOf(n[0]);return -1===t&&-1===i?0:-1===t?1:-1===i?-1:t-i}).map(e=>{let[n,t]=e;return"".concat((0,f.pF)(null!=t?t:0)," ").concat(el(n,null!=t?t:0))}):[],[n]);if(!n)return null;if(t){let e=i.join(", ");return(0,a.jsxs)("span",{children:[e," detected."]})}let s=i.join(", ");return(0,a.jsx)("span",{children:s})};var ec=t(71985);let{Text:ed}=r.AntTypography,eu={[ec.w.WEBSITE]:["asset","assets"],[ec.w.DATASTORE]:["field","fields"],[ec.w.INFRASTRUCTURE]:["system","systems"]},eg=e=>{let n,{monitorSummary:t,showSkeleton:i,href:s,...o}=e,{name:c,consent_status:d,total_updates:u,updates:g,last_monitored:m,secrets:p,key:h,connection_type:y,saas_config:x,monitorType:v,isTestMonitor:j}=t;if(v===ec.w.DATASTORE){var _,C,w;n={highConfidenceCount:null!==(_=null==g?void 0:g.classified_high_confidence)&&void 0!==_?_:0,mediumConfidenceCount:null!==(C=null==g?void 0:g.classified_medium_confidence)&&void 0!==C?C:0,lowConfidenceCount:null!==(w=null==g?void 0:g.classified_low_confidence)&&void 0!==w?w:0}}let[b,k]=(0,l.useState)(!1),S=!!n&&(n.highConfidenceCount>0||n.mediumConfidenceCount>0||n.lowConfidenceCount>0),I=v===ec.w.DATASTORE&&S&&!!h,T=m?(0,f.p6)(new Date(m)):void 0,M=m?E(new Date(m),new Date,{addSuffix:!0}):void 0,P=(0,f._6)(null!=u?u:0,eu[v][0],eu[v][1]);return(0,a.jsx)(r.krs.Item,{"data-testid":"monitor-result-".concat(h),...o,children:(0,a.jsx)(r.N_L,{avatar:!0,title:!1,loading:i,active:!0,children:(0,a.jsxs)(r.jqI,{vertical:!0,className:"grow",children:[(0,a.jsxs)(r.bue,{gutter:{xs:6,lg:12},className:"items-center",children:[(0,a.jsx)(r.JGx,{span:14,children:(0,a.jsx)(r.krs.Item.Meta,{avatar:(0,a.jsx)(N.ZP,{data:{kind:N.hY.CONNECTION,connectionType:y,name:c,key:h,saasType:null==x?void 0:x.type,websiteUrl:null==p?void 0:p.url}}),title:(0,a.jsxs)(r.jqI,{align:"center",gap:4,className:er()["monitor-result__title"],children:[(0,a.jsx)(F(),{href:s,"data-testid":"monitor-link",children:c}),(0,a.jsxs)(ed,{type:"secondary",children:[(0,f.pF)(null!=u?u:0)," ",P]}),d&&(0,a.jsx)(es.l,{consentStatus:d}),j&&(0,a.jsx)(r.j8w,{color:"nectar",children:"test monitor"})]}),description:!!g&&(0,a.jsx)(eo,{updates:g,isAssetList:v===ec.w.WEBSITE})})}),(0,a.jsx)(r.JGx,{span:5,className:"flex justify-end",children:!!M&&(0,a.jsx)(r.esZ,{title:T,children:(0,a.jsxs)(ed,{type:"secondary","data-testid":"monitor-date",children:[(0,a.jsx)("span",{className:"hidden lg:inline",children:"Last scan: "}),M]})})}),(0,a.jsxs)(r.JGx,{span:5,className:"flex items-center justify-end",children:[I&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(r.wpx,{type:"link",className:"p-0",icon:b?(0,a.jsx)(r.PJP.Kh3,{}):(0,a.jsx)(r.PJP._ME,{}),iconPosition:"end",onClick:()=>k(!b),"aria-haspopup":"true","aria-expanded":b,"aria-controls":"confidence-row-".concat(h),"aria-label":"".concat(b?"Collapse":"Expand"," findings"),children:(0,a.jsxs)(r.vyj,{children:[(0,a.jsx)(r.QMR,{}),"Findings"]})}),(0,a.jsx)(r.htM,{type:"vertical",orientationMargin:0})]}),(0,a.jsx)(F(),{href:s,passHref:!0,legacyBehavior:!0,children:(0,a.jsx)(r.wpx,{type:"link",className:"p-0","data-testid":"review-button-".concat(t.key),children:"Review"})},"review")]})]}),(0,a.jsx)(J.M,{initial:!1,children:I&&b&&n&&(0,a.jsx)(K.E.div,{initial:{height:0,opacity:0},animate:{height:"auto",opacity:1},exit:{height:0,opacity:0},transition:{duration:.3,ease:"easeInOut"},className:"overflow-hidden",children:(0,a.jsx)(ei,{confidenceCounts:n,reviewHref:s,monitorId:h,className:"mt-6",id:"confidence-row-".concat(h)})},"confidence-row")})]})})})};var em=()=>{var e,n,t;let i=(0,r.pmc)(),{tabs:f,activeTab:h,onTabChange:y}=G(),{flags:x}=(0,c.hz)(),{paginationProps:v,pageIndex:j,pageSize:_,resetPagination:C}=(0,m.S)(),[w,b]=(0,l.useState)(""),{webMonitor:k,heliosV2:E}=x,S=[...k?[ec.w.WEBSITE]:[],...E?[ec.w.DATASTORE]:[]],{data:N,isError:I,isLoading:T,isFetching:M}=(0,p.Ud)({page:j,size:_,search:w,monitor_type:S.length>0?S:void 0});(0,l.useEffect)(()=>{C()},[w]),(0,l.useEffect)(()=>{I&&i({title:"Error fetching data",description:"Please try again later",status:"error"})},[I,i]);let P=(null==N?void 0:null===(e=N.items)||void 0===e?void 0:e.flatMap(e=>e.key&&void 0!==e.key?[e]:[]))||[],A=M?Array.from({length:_},(e,n)=>({key:n.toString(),updates:[],last_monitored:null})):[];return k||E?(0,a.jsxs)(d.Z,{title:"Action center",mainProps:{overflow:"hidden"},fullHeight:!0,children:[(0,a.jsx)(g.Z,{heading:"Action center",breadcrumbItems:[{title:"All activity"}],isSticky:!1}),(0,a.jsx)(r.Niu,{"aria-label":"Action center tabs",mode:"horizontal",items:f.map(e=>({key:e.hash,label:e.label})),selectedKeys:[h],onClick:async e=>{let n=Object.values(s).find(n=>n===e.key);n&&await y(n)},className:"mb-4","data-testid":"action-center-tabs"}),h===s.IN_PROGRESS?(0,a.jsx)(D,{}):(0,a.jsxs)(r.jqI,{className:"h-[calc(100%-48px)] overflow-hidden",gap:"middle",vertical:!0,children:[(0,a.jsx)(r.jqI,{className:"justify-between ",children:(0,a.jsx)(o.f,{value:w,onChange:b})}),(0,a.jsx)(r.krs,{loading:T,dataSource:P||A,locale:{emptyText:(0,a.jsx)(H,{})},className:"h-full overflow-y-auto overflow-x-clip",renderItem:e=>{let n=e.key&&e.monitorType?"".concat(u.vi,"/").concat(e.monitorType,"/").concat(e.key):"";return!!(null==e?void 0:e.key)&&(0,a.jsx)(eg,{showSkeleton:M,monitorSummary:e,href:n},e.key)}}),(0,a.jsx)(r.B7X,{...v,total:(null==N?void 0:N.total)||0,showSizeChanger:{suffixIcon:(0,a.jsx)(r.PJP._ME,{})},hideOnSinglePage:(null===(n=v.pageSize)||void 0===n?void 0:n.toString())===(null===(t=v.pageSizeOptions)||void 0===t?void 0:t[0])})]})]}):(0,a.jsx)(z,{})}},42905:function(e){e.exports={"monitor-result__title":"MonitorResult_monitor-result__title__Wqv_l"}}},function(e){e.O(0,[431,7245,4589,5505,2888,9774,179],function(){return e(e.s=40741)}),_N_E=e.O()}]);
|
fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/activity-6919a1d6cadaa46b.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7477],{74833:function(e,t,i){var n=i(56127),a=/^\s+/;e.exports=function(e){return e?e.slice(0,n(e)+1).replace(a,""):e}},56127:function(e){var t=/\s/;e.exports=function(e){for(var i=e.length;i--&&t.test(e.charAt(i)););return i}},66726:function(e,t,i){var n=i(11611),a=i(82846),s=i(91936),r=Math.max,o=Math.min;e.exports=function(e,t,i){var l,c,u,d,f,g,x=0,h=!1,p=!1,v=!0;if("function"!=typeof e)throw TypeError("Expected a function");function m(t){var i=l,n=c;return l=c=void 0,x=t,d=e.apply(n,i)}function I(e){var i=e-g,n=e-x;return void 0===g||i>=t||i<0||p&&n>=u}function j(){var e,i,n,s=a();if(I(s))return L(s);f=setTimeout(j,(e=s-g,i=s-x,n=t-e,p?o(n,u-i):n))}function L(e){return(f=void 0,v&&l)?m(e):(l=c=void 0,d)}function A(){var e,i=a(),n=I(i);if(l=arguments,c=this,g=i,n){if(void 0===f)return x=e=g,f=setTimeout(j,t),h?m(e):d;if(p)return clearTimeout(f),f=setTimeout(j,t),m(g)}return void 0===f&&(f=setTimeout(j,t)),d}return t=s(t)||0,n(i)&&(h=!!i.leading,u=(p="maxWait"in i)?r(s(i.maxWait)||0,t):u,v="trailing"in i?!!i.trailing:v),A.cancel=function(){void 0!==f&&clearTimeout(f),x=0,l=g=c=f=void 0},A.flush=function(){return void 0===f?d:L(a())},A}},82846:function(e,t,i){var n=i(77400);e.exports=function(){return n.Date.now()}},91936:function(e,t,i){var n=i(74833),a=i(11611),s=i(55193),r=0/0,o=/^[-+]0x[0-9a-f]+$/i,l=/^0b[01]+$/i,c=/^0o[0-7]+$/i,u=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(s(e))return r;if(a(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=a(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=n(e);var i=l.test(e);return i||c.test(e)?u(e.slice(2),i?2:8):o.test(e)?r:+e}},45550:function(e,t,i){(window.__NEXT_P=window.__NEXT_P||[]).push(["/data-discovery/activity",function(){return i(3680)}])},30952:function(e,t,i){"use strict";i.d(t,{f:function(){return l}});var n=i(24246),a=i(66726),s=i.n(a),r=i(27378),o=i(26917);let l=e=>{let{value:t,onChange:i,placeholder:a,...l}=e,[c,u]=(0,r.useState)(t);(0,r.useEffect)(()=>{u(t||"")},[t]);let d=s()(i,500),f=(0,r.useCallback)(e=>{u(e),d(e)},[]);return(0,n.jsx)(o.Z,{value:c,onChange:f,onClear:()=>{u(""),i("")},placeholder:a,...l})}},58754:function(e,t,i){"use strict";var n=i(24246),a=i(39158),s=i(70788);t.Z=e=>{let{heading:t,breadcrumbItems:i,isSticky:r=!0,children:o,rightContent:l,style:c,...u}=e;return(0,n.jsxs)("div",{...u,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",...c}:{paddingBottom:"24px",...c},children:[(0,n.jsxs)(a.jqI,{justify:"space-between",children:["string"==typeof t?(0,n.jsx)(a.lQT,{className:i||o?"pb-4":void 0,level:1,"data-testid":"page-heading",children:t}):t,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]})}},70788:function(e,t,i){"use strict";i.d(t,{m:function(){return c}});var n=i(24246),a=i(39158),s=i(79894),r=i.n(s),o=i(27378);let{Text:l}=a.AntTypography,c=e=>{let{items:t,...i}=e,s=(0,o.useMemo)(()=>null==t?void 0:t.map((e,i)=>{let s=i===t.length-1,o={...e},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,id:s?"breadcrumb-current-page":void 0,children:o.title})),c)?o.title=(0,n.jsx)(a.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)(r(),{href:o.href,className:"ant-breadcrumb-link",children:o.title}),delete o.href)),o}),[t]);return(0,n.jsx)(a.zrq,{items:s,...i})}},91761:function(e,t,i){"use strict";var n=i(24246),a=i(39158),s=i(812),r=i(17245),o=i(7940),l=i(98559),c=i(60240),u=i(79494),d=i(70675);t.Z=e=>{let{resource:t}=e,[i,{isLoading:f}]=(0,d.v8)(),[g,{isLoading:x}]=(0,d.cM)(),[h,{isLoading:p}]=(0,d.vi)(),v=x||p||f,{diff_status:m,child_diff_statuses:I,top_level_field_name:j}=t,{successAlert:L,errorAlert:A}=(0,r.VY)(),C=m===c.LL.CLASSIFICATION_ADDITION||m===c.LL.CLASSIFICATION_UPDATE||m===c.LL.APPROVED,T=I&&(I[c.LL.CLASSIFICATION_ADDITION]||I[c.LL.CLASSIFICATION_UPDATE]||I[c.LL.APPROVED]),_=(C||T)&&!j,S=C||T,D=(0,o.G)(t)!==c.D$.FIELD,y=_&&S&&D,b=async()=>{let e=await g({staged_resource_urn:t.urn});(0,s.D4)(e)?A((0,s.e$)(e.error),"Failed to promote resource"):L('These changes have been added to a Fides dataset. To view, navigate to "Manage datasets".',"Table changes confirmed")},N=async()=>{let e=await h({staged_resource_urn:t.urn});(0,s.D4)(e)?A((0,s.e$)(e.error),"Failed to mute resource"):L("Ignored changes will not be added to a Fides dataset.","".concat(t.name||"Changes"," ignored"))},E=async()=>{let e=await i({staged_resource_urn:t.urn,monitor_config_id:t.monitor_config_id,start_classification:!0,diff_statuses_to_classify:[c.LL.CLASSIFICATION_ADDITION,c.LL.CLASSIFICATION_UPDATE,c.LL.CLASSIFYING,c.LL.CLASSIFICATION_QUEUED]});(0,s.D4)(e)?A((0,s.e$)(e.error),"Failed to reclassify resource"):L("Reclassification of ".concat((0,l.Z)(t)||"the resource"," has begun. The results may take some time to appear in the “Data discovery“ tab."),"Reclassification started")};return(0,n.jsxs)(a.Ugi,{gap:2,children:[_&&(0,n.jsx)(u.Z,{title:"Confirm",icon:(0,n.jsx)(a.nQG,{}),onClick:b,disabled:v,loading:x}),S&&(0,n.jsx)(u.Z,{title:"Ignore",icon:(0,n.jsx)(a.tpL,{}),onClick:N,disabled:v,loading:p}),D&&!y&&(0,n.jsx)(u.Z,{title:"Reclassify",icon:(0,n.jsx)(a.nyI,{}),onClick:E,disabled:v,loading:f}),y&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(a.LZC,{}),(0,n.jsxs)(a.v2r,{children:[(0,n.jsx)(a.j2t,{as:a.wpx,size:"small",type:"text",icon:(0,n.jsx)(a.nXP,{transform:"rotate(90deg)"}),className:"w-6 gap-0","data-testid":"actions-overflow-btn"}),(0,n.jsx)(a.qyq,{children:(0,n.jsx)(a.sNh,{onClick:E,icon:(0,n.jsx)(a.nyI,{}),"data-testid":"action-reclassify",children:"Reclassify"})})]})]})]})}},7940:function(e,t,i){"use strict";i.d(t,{G:function(){return a}});var n=i(60240);let a=e=>{var t,i,a;return e?e.resource_type?e.resource_type:(null===(t=e.schemas)||void 0===t?void 0:t.length)?n.D$.DATABASE:(null===(i=e.tables)||void 0===i?void 0:i.length)?n.D$.SCHEMA:(null===(a=e.fields)||void 0===a?void 0:a.length)?n.D$.TABLE:n.D$.FIELD:void 0}},98559:function(e,t){"use strict";t.Z=e=>{let{name:t,urn:i,monitor_config_id:n,database_name:a,schema_name:s,table_name:r,top_level_field_name:o,top_level_field_urn:l}=e;if(!o)return t;let c=i.split(".");return l?i.replace("".concat(l).concat("."),""):([n,a,s,r,o].forEach(e=>{if(e){let t=c.indexOf(e);t>-1&&c.splice(t,1)}}),c.join("."))}},36168:function(e,t){"use strict";t.Z=e=>{var t;return!!e.parent_table_urn&&null!==(t=e.sub_field_urns)&&void 0!==t&&!!t.length&&!e.top_level_field_name}},80356:function(e,t,i){"use strict";var n=i(7940),a=i(36168),s=i(60240);t.Z=e=>(0,n.G)(e)!==s.D$.FIELD||(0,a.Z)(e)},3680:function(e,t,i){"use strict";i.r(t),i.d(t,{default:function(){return w}});var n,a,s=i(24246),r=i(27378),o=i(35287),l=i(58754),c=i(47182),u=i(92222),d=i(59003),f=i(39158),g=i(47935),x=i(72625),h=i(70675),p=i(38347),v=i(87667),m=i(50169),I=i(80285),j=i(30952);(n=a||(a={})).DATASET="Dataset",n.CLASSIFICATION="Classification";var L=i(74241),A=i(28278),C=i(20449),T=e=>(0,C.Z)(e)===A.E.CLASSIFICATION?a.CLASSIFICATION:a.DATASET,_=i(54409),S=i(91761);let D={items:[],total:0,page:1,size:50,pages:1},y=()=>(0,s.jsx)(f.gCW,{mt:6,p:10,spacing:4,borderRadius:"base",maxW:"70%","data-testid":"empty-state",alignSelf:"center",margin:"auto",children:(0,s.jsxs)(f.gCW,{children:[(0,s.jsx)(f.xvT,{fontSize:"md",fontWeight:"600",children:"No activity found"}),(0,s.jsx)(f.xvT,{fontSize:"sm",children:"You're up to date!"})]})}),b=(0,u.Cl)();var N=e=>{let{onRowClick:t,statusFilters:i,childsStatusFilters:n}=e,[o,l]=(0,r.useState)(""),{PAGE_SIZES:c,pageSize:A,setPageSize:C,onPreviousPageClick:N,isPreviousPageDisabled:E,onNextPageClick:w,isNextPageDisabled:O,startRange:R,endRange:F,pageIndex:k,setTotalPages:Z}=(0,g.oi)(),{isFetching:P,isLoading:M,data:V}=(0,h.z8)({diff_status:i,child_diff_status:n,page:k,size:A,search:o}),{items:$,total:z,pages:U}=(0,r.useMemo)(()=>null!=V?V:D,[V]);(0,r.useEffect)(()=>{Z(U)},[U,Z]);let G=(0,r.useMemo)(()=>[b.accessor(e=>e.name,{id:"name",cell:e=>(0,s.jsx)(v.Z,{result:e.row.original}),header:e=>(0,s.jsx)(g.Rr,{value:"Name",...e})}),b.accessor(e=>e.urn,{id:"project",cell:e=>(0,s.jsx)(g.G3,{value:(0,L.Z)(e.getValue())}),header:e=>(0,s.jsx)(g.Rr,{value:"Project",...e})}),b.display({id:"status",cell:e=>(0,s.jsx)(m.Z,{result:e.row.original}),header:e=>(0,s.jsx)(g.Rr,{value:"Status",...e})}),b.accessor(e=>e.system,{id:"system",cell:e=>(0,s.jsx)(g.G3,{value:e.getValue()}),header:e=>(0,s.jsx)(g.Rr,{value:"System",...e})}),b.accessor(e=>e.monitor_config_id,{id:"monitor",cell:e=>(0,s.jsx)(g.G3,{value:e.getValue()}),header:e=>(0,s.jsx)(g.Rr,{value:"Detected by",...e})}),b.accessor(e=>e.updated_at,{id:"time",cell:e=>(0,s.jsx)(x.Cy,{time:e.getValue()}),header:e=>(0,s.jsx)(g.Rr,{value:"When",...e})}),b.accessor(e=>e,{id:"action",cell:e=>T(e.getValue())===a.DATASET?(0,s.jsx)(_.Z,{resource:e.getValue()}):(0,s.jsx)(S.Z,{resource:e.getValue()}),header:e=>(0,s.jsx)(g.Rr,{value:"Action",...e})})],[]),W=(0,d.b7)({getCoreRowModel:(0,u.sC)(),getGroupedRowModel:(0,u.qe)(),getExpandedRowModel:(0,u.rV)(),getRowId:I.Z,columns:G,manualPagination:!0,data:$,columnResizeMode:"onChange"});return M?(0,s.jsx)(g.I4,{rowHeight:36,numRows:36}):(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(g.Q$,{children:(0,s.jsxs)(f.kCb,{gap:6,align:"center",children:[(0,s.jsx)(f.xuv,{flexShrink:0,children:(0,s.jsx)(j.f,{value:o,onChange:l})}),(0,s.jsx)(p.a,{})]})}),(0,s.jsx)(g.ZK,{tableInstance:W,onRowClick:t,emptyTableNotice:(0,s.jsx)(y,{})}),(0,s.jsx)(g.s8,{totalRows:z||0,pageSizes:c,setPageSize:C,onPreviousPageClick:N,isPreviousPageDisabled:E||P,onNextPageClick:w,isNextPageDisabled:O||P,startRange:R,endRange:F})]})},E=i(60240),w=()=>{let{navigateToDetectionResults:e,navigateToDiscoveryResults:t}=(0,c.Z)();return(0,s.jsxs)(o.Z,{title:"Data discovery",children:[(0,s.jsx)(l.Z,{heading:"All activity"}),(0,s.jsx)(N,{onRowClick:i=>{if(T(i)===a.DATASET){e({resourceUrn:i.urn});return}t({resourceUrn:i.urn})},statusFilters:[E.LL.ADDITION,E.LL.REMOVAL,E.LL.CLASSIFICATION_ADDITION,E.LL.CLASSIFICATION_UPDATE],childsStatusFilters:[E.LL.ADDITION,E.LL.REMOVAL,E.LL.CLASSIFICATION_ADDITION,E.LL.CLASSIFICATION_UPDATE]})]})}}},function(e){e.O(0,[431,7245,4910,2888,9774,179],function(){return e(e.s=45550)}),_N_E=e.O()}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5744],{24354:function(e,n,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/data-discovery/detection/[resourceUrn]",function(){return r(42705)}])},42705:function(e,n,r){"use strict";r.r(n);var t=r(24246);r(27378);var c=r(35287),i=r(77830),u=r(58754),s=r(69828),o=r(47182),a=r(1039);n.default=()=>{let{resourceUrn:e,navigateToDetectionResults:n}=(0,o.Z)();return(0,t.jsxs)(c.Z,{title:"Data detection",children:[(0,t.jsx)(u.Z,{heading:"Data detection",children:(0,t.jsx)(s.Z,{parentLink:i.XY,resourceUrn:e,onPathClick:e=>n({resourceUrn:e})})}),(0,t.jsx)(a.Z,{resourceUrn:e})]})}}},function(e){e.O(0,[431,7245,
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5744],{24354:function(e,n,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/data-discovery/detection/[resourceUrn]",function(){return r(42705)}])},42705:function(e,n,r){"use strict";r.r(n);var t=r(24246);r(27378);var c=r(35287),i=r(77830),u=r(58754),s=r(69828),o=r(47182),a=r(1039);n.default=()=>{let{resourceUrn:e,navigateToDetectionResults:n}=(0,o.Z)();return(0,t.jsxs)(c.Z,{title:"Data detection",children:[(0,t.jsx)(u.Z,{heading:"Data detection",children:(0,t.jsx)(s.Z,{parentLink:i.XY,resourceUrn:e,onPathClick:e=>n({resourceUrn:e})})}),(0,t.jsx)(a.Z,{resourceUrn:e})]})}}},function(e){e.O(0,[431,7245,4322,4910,2397,2888,9774,179],function(){return e(e.s=24354)}),_N_E=e.O()}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3453],{35041:function(n,t,e){(window.__NEXT_P=window.__NEXT_P||[]).push(["/data-discovery/detection",function(){return e(82660)}])},82660:function(n,t,e){"use strict";e.r(t);var i=e(24246);e(27378);var c=e(35287),a=e(77830),s=e(58754),u=e(69828),r=e(1039);t.default=()=>(0,i.jsxs)(c.Z,{title:"Data detection",children:[(0,i.jsx)(s.Z,{heading:"Data detection",children:(0,i.jsx)(u.Z,{parentLink:a.XY})}),(0,i.jsx)(r.Z,{})]})}},function(n){n.O(0,[431,7245,
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3453],{35041:function(n,t,e){(window.__NEXT_P=window.__NEXT_P||[]).push(["/data-discovery/detection",function(){return e(82660)}])},82660:function(n,t,e){"use strict";e.r(t);var i=e(24246);e(27378);var c=e(35287),a=e(77830),s=e(58754),u=e(69828),r=e(1039);t.default=()=>(0,i.jsxs)(c.Z,{title:"Data detection",children:[(0,i.jsx)(s.Z,{heading:"Data detection",children:(0,i.jsx)(u.Z,{parentLink:a.XY})}),(0,i.jsx)(r.Z,{})]})}},function(n){n.O(0,[431,7245,4322,4910,2397,2888,9774,179],function(){return n(n.s=35041)}),_N_E=n.O()}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1571],{11207:function(r,e,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/data-discovery/discovery/[resourceUrn]",function(){return n(55124)}])},55124:function(r,e,n){"use strict";n.r(e);var s=n(24246);n(27378);var c=n(35287),t=n(77830),i=n(58754),u=n(69828),o=n(47182),a=n(11904);e.default=()=>{let{resourceUrn:r,navigateToDiscoveryResults:e}=(0,o.Z)();return(0,s.jsxs)(c.Z,{title:"Data discovery",children:[(0,s.jsx)(i.Z,{heading:"Data discovery",children:(0,s.jsx)(u.Z,{parentLink:t.zE,resourceUrn:r,onPathClick:r=>e({resourceUrn:r})})}),(0,s.jsx)(a.Z,{resourceUrn:r})]})}}},function(r){r.O(0,[431,
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1571],{11207:function(r,e,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/data-discovery/discovery/[resourceUrn]",function(){return n(55124)}])},55124:function(r,e,n){"use strict";n.r(e);var s=n(24246);n(27378);var c=n(35287),t=n(77830),i=n(58754),u=n(69828),o=n(47182),a=n(11904);e.default=()=>{let{resourceUrn:r,navigateToDiscoveryResults:e}=(0,o.Z)();return(0,s.jsxs)(c.Z,{title:"Data discovery",children:[(0,s.jsx)(i.Z,{heading:"Data discovery",children:(0,s.jsx)(u.Z,{parentLink:t.zE,resourceUrn:r,onPathClick:r=>e({resourceUrn:r})})}),(0,s.jsx)(a.Z,{resourceUrn:r})]})}}},function(r){r.O(0,[431,7245,4322,1099,7170,2888,9774,179],function(){return r(r.s=11207)}),_N_E=r.O()}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2320],{48570:function(n,e,i){(window.__NEXT_P=window.__NEXT_P||[]).push(["/data-discovery/discovery",function(){return i(49730)}])},49730:function(n,e,i){"use strict";i.r(e);var s=i(24246);i(27378);var t=i(35287),r=i(77830),c=i(58754),a=i(69828),u=i(11904);e.default=()=>(0,s.jsxs)(t.Z,{title:"Data discovery",children:[(0,s.jsx)(c.Z,{heading:"Data discovery",children:(0,s.jsx)(a.Z,{parentLink:r.zE})}),(0,s.jsx)(u.Z,{})]})}},function(n){n.O(0,[431,
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2320],{48570:function(n,e,i){(window.__NEXT_P=window.__NEXT_P||[]).push(["/data-discovery/discovery",function(){return i(49730)}])},49730:function(n,e,i){"use strict";i.r(e);var s=i(24246);i(27378);var t=i(35287),r=i(77830),c=i(58754),a=i(69828),u=i(11904);e.default=()=>(0,s.jsxs)(t.Z,{title:"Data discovery",children:[(0,s.jsx)(c.Z,{heading:"Data discovery",children:(0,s.jsx)(a.Z,{parentLink:r.zE})}),(0,s.jsx)(u.Z,{})]})}},function(n){n.O(0,[431,7245,4322,1099,7170,2888,9774,179],function(){return n(n.s=48570)}),_N_E=n.O()}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9738],{58095:function(e,t,n){var r=n(8817);e.exports=function(e,t){return!!(null==e?0:e.length)&&r(e,t,0)>-1}},21796:function(e){e.exports=function(e,t,n){for(var r=-1,l=null==e?0:e.length;++r<l;)if(n(t,e[r]))return!0;return!1}},95372:function(e){e.exports=function(e,t,n,r){for(var l=e.length,i=n+(r?1:-1);r?i--:++i<l;)if(t(e[i],i,e))return i;return -1}},8817:function(e,t,n){var r=n(95372),l=n(1129),i=n(58263);e.exports=function(e,t,n){return t==t?i(e,t,n):r(e,l,n)}},1129:function(e){e.exports=function(e){return e!=e}},92198:function(e,t,n){var r=n(52485),l=n(58095),i=n(21796),s=n(65581),o=n(47111),a=n(43735);e.exports=function(e,t,n){var d=-1,u=l,c=e.length,x=!0,h=[],f=h;if(n)x=!1,u=i;else if(c>=200){var g=t?null:o(e);if(g)return a(g);x=!1,u=s,f=new r}else f=t?[]:h;e:for(;++d<c;){var p=e[d],m=t?t(p):p;if(p=n||0!==p?p:0,x&&m==m){for(var j=f.length;j--;)if(f[j]===m)continue e;t&&f.push(m),h.push(p)}else u(f,m,n)||(f!==h&&f.push(m),h.push(p))}return h}},47111:function(e,t,n){var r=n(46151),l=n(50344),i=n(43735),s=r&&1/i(new r([,-0]))[1]==1/0?function(e){return new r(e)}:l;e.exports=s},58263:function(e){e.exports=function(e,t,n){for(var r=n-1,l=e.length;++r<l;)if(e[r]===t)return r;return -1}},50344:function(e){e.exports=function(){}},83766:function(e,t,n){var r=n(92198);e.exports=function(e){return e&&e.length?r(e):[]}},53910:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/datamap",function(){return n(18839)}])},77213:function(e,t,n){"use strict";n.d(t,{Z:function(){return h}});var r=n(24246),l=n(39158),i=n(88038),s=n.n(i),o=n(86677);n(27378);var a=n(25980),d=n(90867),u=n(42478),c=n(77830),x=()=>{let e=(0,o.useRouter)();return(0,r.jsx)(l.xuv,{bg:"gray.50",border:"1px solid",borderColor:"blue.400",borderRadius:"md",justifyContent:"space-between",p:5,mb:5,mt:5,children:(0,r.jsxs)(l.xuv,{children:[(0,r.jsxs)(l.Kqy,{direction:{base:"column",sm:"row"},justifyContent:"space-between",children:[(0,r.jsx)(l.xvT,{fontWeight:"semibold",children:"Configure your storage and messaging provider"}),(0,r.jsx)(l.wpx,{onClick:()=>{e.push(c.AD)},children:"Configure"})]}),(0,r.jsxs)(l.xvT,{children:["Before Fides can process your privacy requests we need two simple steps to configure your storage and email client."," "]})]})})},h=e=>{let{children:t,title:n,padded:i=!0,mainProps:c}=e,h=(0,a.hz)(),f=(0,o.useRouter)(),g="/privacy-requests"===f.pathname||"/datastore-connection"===f.pathname,p=!(h.flags.messagingConfiguration&&g),{data:m}=(0,u.JE)(void 0,{skip:p}),{data:j}=(0,d.PW)(void 0,{skip:p}),v=h.flags.messagingConfiguration&&(!m||!j)&&g;return(0,r.jsxs)(l.kCb,{"data-testid":n,direction:"column",h:"100vh",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.jsxs)(l.kCb,{as:"main",direction:"column",py:i?6:0,px:i?10:0,h:i?"calc(100% - 48px)":"full",flex:1,minWidth:0,overflow:"auto",...c,children:[v?(0,r.jsx)(x,{}):null,t]})]})}},99811:function(e,t,n){"use strict";n.d(t,{m:function(){return l}});var r=n(27378);class l{updateTableInstance(e){this.tableInstance=e}constructor(e=null){this.tableInstance=e,this.updateTableInstance=this.updateTableInstance.bind(this)}}let i=r.createContext(new l);t.Z=i},18839:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return G}});var r=n(24246),l=n(27378),i=n(45938),s=n(77213),o=n(58754),a=n(39158),d=n(65218),u=n.n(d),c=n(16134),x=n(35258),h=n(92222),f=n(59003),g=n(30002),p=n(28079),m=n(49600),j=n(99811);let v=e=>{var t;let{column:n}=e,{tableInstance:r}=(0,l.useContext)(j.Z),i=l.useMemo(()=>Array.from(n.getFacetedUniqueValues().keys()),[n]),s=l.useMemo(()=>{let e={};return i.forEach(t=>{e[t]=!1}),e},[i]);return{filterValue:null!==(t=n.getFilterValue())&&void 0!==t?t:s,clearFilterOptions:()=>{let e={};i.forEach(t=>{e[t]=!1}),n.setFilterValue(e)},toggleFilterOption:(e,t)=>{var l;let i={...null!==(l=n.getFilterValue())&&void 0!==l?l:s,[e]:t};Object.values(i).every(e=>!e)?null==r||r.setColumnFilters(null==r?void 0:r.getState().columnFilters.filter(e=>e.id!==n.id)):n.setFilterValue(i)},options:i,header:n.columnDef.header}};var y=n(57072);let b=(0,h.Cl)(),w={multifield:(e,t,n)=>n[e.original[t]]},C=()=>{let e=(0,c.T)(),{updateTableInstance:t}=(0,l.useContext)(j.Z),n=(0,c.C)(m.eo),{data:r,isLoading:i}=(0,m.Ex)({organizationName:"default_organization"});(0,y.MO)(),(0,p.fd)(),(0,g.te)();let s=(0,l.useRef)(!1);(0,l.useEffect)(()=>{if(r){let{columns:t,rows:n}=r;e((0,m.dd)(t)),s.current||(s.current=!0,0===n.length?e((0,m.ym)(!0)):e((0,m.ym)(!1)))}},[r,e]);let o=(0,l.useMemo)(()=>r?r.rows:[],[r]),a=(0,l.useMemo)(()=>(n||[]).map(e=>{let{text:t,value:n}=e;return b.accessor(e=>e[n],{id:n,header:t,cell:e=>{let{getValue:t}=e,n=t();return Array.isArray(n)?n.join(", "):n},filterFn:w.multifield})}),[n]),d=(0,f.b7)({columns:a,data:o,filterFns:w,getCoreRowModel:(0,h.sC)(),getFilteredRowModel:(0,h.vL)(),getFacetedRowModel:(0,h.o6)(),getFacetedUniqueValues:(0,h.JG)(),manualPagination:!0,columnResizeMode:"onChange"});return(0,l.useEffect)(()=>t(d),[d,t]),{...d,isLoading:i}};var k=n(83766),F=n.n(k),S=n(25980),I=n(46238),M=n(47935),O=n(22968);let _=e=>{var t,n,l;let{option:i,columnId:s,filterValue:o,toggleFilterOption:d}=e,u=(0,c.C)(y.L5),x=s===O.Ux&&null!==(n=null===(t=u.get(i))||void 0===t?void 0:t.name)&&void 0!==n?n:i;return(0,r.jsx)(a.XZJ,{value:i,width:"193px",height:"20px",mb:"25px",isChecked:null!==(l=o[i])&&void 0!==l&&l,onChange:e=>{let{target:t}=e;d(i,t.checked)},_focusWithin:{bg:"gray.100"},colorScheme:"complimentary",children:(0,r.jsx)(a.xvT,{fontSize:"sm",lineHeight:5,height:"20px",width:"170px",textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap",children:x})},i)};var T=e=>{let{column:t}=e,{filterValue:n,toggleFilterOption:i,options:s}=v({column:t}),[o,d]=(0,l.useState)(!1),u=o?s:s.slice(0,15),c=s.length>15;return(0,r.jsx)(a.UQy,{width:"100%",allowToggle:!0,children:(0,r.jsxs)(a.Qdk,{border:"0px",children:[(0,r.jsx)(a.X6q,{height:"56px",children:(0,r.jsxs)(a.KFZ,{height:"100%",children:[(0,r.jsx)(a.xuv,{flex:"1",alignItems:"center",justifyContent:"center",textAlign:"left",children:t.columnDef.header}),(0,r.jsx)(a.XEm,{})]})}),(0,r.jsxs)(a.Hk3,{children:[(0,r.jsx)(a.MIq,{columns:3,children:u.map(e=>(0,r.jsx)(_,{columnId:t.id,option:e,filterValue:n,toggleFilterOption:i},e))}),!o&&c?(0,r.jsx)(a.wpx,{type:"text",onClick:()=>{d(!0)},children:"View more"}):null,o&&c?(0,r.jsx)(a.wpx,{type:"text",onClick:()=>{d(!1)},children:"View less"}):null]})]})},t.id)};let R=e=>{let{heading:t,children:n}=e;return(0,r.jsxs)(a.xuv,{padding:"24px 8px 8px 24px",children:[(0,r.jsx)(a.X6q,{size:"md",lineHeight:6,fontWeight:"bold",mb:2,children:t}),n]})};var E=e=>{let t,{isOpen:n,onClose:i}=e,{tableInstance:s}=(0,l.useContext)(j.Z),o=null==s?void 0:s.getHeaderGroups(),d=(e,t)=>e.filter(e=>e.id===t).map(e=>(0,r.jsx)(T,{column:e.column},t)),u=(0,l.useMemo)(()=>(null==o?void 0:o[0].headers)||[],[o]);return(0,r.jsxs)(a.u_l,{isOpen:n,onClose:i,isCentered:!0,size:"2xl",children:[(0,r.jsx)(a.ZAr,{}),(0,r.jsxs)(a.hzk,{children:[(0,r.jsx)(a.xBx,{children:"Filters"}),(0,r.jsx)(a.olH,{}),(0,r.jsx)(a.izJ,{}),(0,r.jsx)(a.fef,{maxH:"85vh",padding:"0px",overflowX:"auto",children:(t=[O.vy,O.Ux,O.OL],u.some(e=>t.indexOf(e.id)>-1))?(0,r.jsxs)(R,{heading:"Privacy attributes",children:[d(u,O.vy),d(u,O.Ux),d(u,O.OL)]}):null}),(0,r.jsx)(a.mzw,{children:(0,r.jsxs)(a.xuv,{display:"flex",justifyContent:"space-between",width:"100%",children:[(0,r.jsx)(a.wpx,{onClick:()=>{null==s||s.resetColumnFilters()},className:"mr-3 grow",children:"Reset Filters"}),(0,r.jsx)(a.wpx,{onClick:i,type:"primary",className:"grow",children:"Done"})]})})]})]})};let N=()=>{let{isOpen:e,onOpen:t,onClose:n}=(0,a.qY0)();return{isFilterModalOpen:e,onFilterModalOpen:t,onFilterModalClose:n}};var Z=()=>{let{isFilterModalOpen:e,onFilterModalOpen:t,onFilterModalClose:n}=N(),{tableInstance:i}=(0,l.useContext)(j.Z),{systemsCount:s,dictionaryService:o}=(0,S.hz)(),d=null==i?void 0:i.getRowModel(),u=(0,l.useMemo)(()=>{let e=(null==d?void 0:d.rows)||[];return F()(null==e?void 0:e.map(e=>e.original["system.fides_key"]))},[d]);if(!i)return null;let c=u.length,x=i.getState().columnFilters.length;return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)(a.kCb,{justifyContent:"flex-end",flexDirection:"row",alignItems:"center",flexWrap:"wrap",rowGap:4,columnGap:4,children:[(0,r.jsx)(a.kCb,{flexGrow:1,children:(0,r.jsx)(M.HO,{globalFilter:i.getState().globalFilter,setGlobalFilter:i.setGlobalFilter})}),(0,r.jsxs)(a.kCb,{children:[s>0?(0,r.jsxs)(a.kCb,{alignItems:"center",borderRadius:"md",gap:1,marginRight:4,children:[(0,r.jsxs)(a.xvT,{fontSize:"xs",children:[c," of ",s," systems displayed"]}),o?(0,r.jsx)(I.b,{label:"Note that Global Vendor List (GVL) and Additional Consent (AC) systems are not currently included in these reports"}):null]}):null,(0,r.jsxs)(a.wpx,{"aria-label":"Open Filter Settings",onClick:t,children:["Filter",x>0?(0,r.jsx)(a.j8w,{className:"ml-2",children:x}):null]})]})]}),(0,r.jsx)(E,{isOpen:e,onClose:n})]})},z=n(38943),P=n(77830),V=()=>(0,r.jsx)(a.M5Y,{flex:1,"data-testid":"get-started-modal",backgroundColor:"gray.100",children:(0,r.jsx)(a.xuv,{backgroundColor:"white",p:10,borderRadius:"6px",boxShadow:"0px 1px 3px rgba(0, 0, 0, 0.1), 0px 1px 2px rgba(0, 0, 0, 0.06)",maxWidth:{base:"80%",lg:"60%",xl:"50%"},maxHeight:"90%",textAlign:"center",children:(0,r.jsxs)(a.Kqy,{spacing:4,children:[(0,r.jsx)(a.xvT,{color:"gray.700",fontWeight:"600",children:"Privacy engineering can seem like an endlessly complex confluence of legal and data engineering terminology—fear not—Fides is here to simplify this."}),(0,r.jsx)(a.xvT,{children:"Start by scanning your infrastructure. The scanner will connect to your infrastructure to automatically scan and create a list of all systems available and then classify each system containing PII."}),(0,r.jsx)(a.xvT,{children:"Let's get started!"}),(0,r.jsx)(a.xuv,{children:(0,r.jsx)(a.wpx,{href:P.xo,role:"link",type:"primary",className:"w-fit","data-testid":"add-systems-btn",children:"Add Systems"})})]})})});let A=u()(()=>Promise.all([n.e(105),n.e(1096),n.e(454),n.e(1533),n.e(9911),n.e(4259),n.e(1975)]).then(n.bind(n,34849)),{loadableGenerated:{webpack:()=>[34849]},ssr:!1,loading:()=>(0,r.jsx)(a.M5Y,{width:"100%",flex:"1",children:(0,r.jsx)(a.$jN,{})})}),W=()=>{let e=(0,c.C)(z.Xt),{attemptAction:t}=(0,i.oI)(),[n,r]=(0,l.useState)(),s=(0,l.useCallback)(e=>{t().then(t=>{t&&r(e)})},[t,r]),o=(0,l.useCallback)(()=>{t().then(e=>{e&&n&&r(void 0)})},[t,n]);return{isGettingStarted:e,selectedSystemId:n,setSelectedSystemId:s,resetSelectedSystemId:o}};var q=()=>{let{isGettingStarted:e,setSelectedSystemId:t,selectedSystemId:n,resetSelectedSystemId:l}=W(),{isLoading:i}=C();return i?(0,r.jsx)(a.M5Y,{width:"100%",flex:"1",children:(0,r.jsx)(a.$jN,{})}):e?(0,r.jsx)(V,{}):(0,r.jsxs)(a.kCb,{direction:"column",height:"100%",children:[(0,r.jsx)(a.xuv,{marginBottom:3,marginRight:10,children:(0,r.jsx)(Z,{})}),(0,r.jsxs)(a.kCb,{position:"relative",flex:1,direction:"row",overflow:"auto",borderWidth:"1px",borderStyle:"solid",borderColor:"gray.200",children:[(0,r.jsx)(a.xuv,{flex:1,minWidth:"50%",maxWidth:"100%",children:(0,r.jsx)(A,{setSelectedSystemId:t,selectedSystemId:n})}),(0,r.jsx)(x.Z,{selectedSystemId:n,resetSelectedSystemId:l})]})]})},G=()=>{let e=(0,l.useMemo)(()=>new j.m,[]);return(0,r.jsxs)(s.Z,{title:"Data lineage",mainProps:{padding:"24px 0 0 40px"},children:[(0,r.jsx)(o.Z,{style:{paddingLeft:0},heading:"Data lineage"}),(0,r.jsxs)(j.Z.Provider,{value:e,children:[(0,r.jsx)(q,{}),(0,r.jsx)(i.eB,{})]})]})}}},function(e){e.O(0,[431,7245,1840,7218,5258,2888,9774,179],function(){return e(e.s=53910)}),_N_E=e.O()}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2096],{16383:function(e,a,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/dataset/[datasetId]/[collectionName]/[...subfieldNames]",function(){return t(26052)}])},26052:function(e,a,t){"use strict";t.r(a);var l=t(24246),s=t(92222),i=t(59003),o=t(
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2096],{16383:function(e,a,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/dataset/[datasetId]/[collectionName]/[...subfieldNames]",function(){return t(26052)}])},26052:function(e,a,t){"use strict";t.r(a);var l=t(24246),s=t(92222),i=t(59003),o=t(39158),n=t(30454),d=t.n(n),r=t(47215),c=t.n(r),u=t(86677),m=t(27378),f=t(77213),h=t(77830),g=t(58754),p=t(47935),v=t(66112),x=t(69828),b=t(41966),j=t(76252),w=t(69435);let C=(0,s.Cl)(),R=()=>(0,l.jsx)(o.gCW,{mt:6,p:10,spacing:4,borderRadius:"base",maxW:"70%","data-testid":"no-results-notice",alignSelf:"center",margin:"auto",textAlign:"center",children:(0,l.jsx)(o.gCW,{children:(0,l.jsx)(o.xvT,{fontSize:"md",fontWeight:"600",children:"No fields found."})})});a.default=()=>{let e=(0,u.useRouter)(),[a]=(0,b.TG)(),t=decodeURIComponent(e.query.datasetId),n=decodeURIComponent(e.query.collectionName),r=e.query.subfieldNames.map(decodeURIComponent),{isLoading:_,data:y}=(0,b.oM)(t),N=(0,m.useMemo)(()=>(null==y?void 0:y.collections)||[],[y]).find(e=>e.name===n),k=(0,m.useMemo)(()=>(null==N?void 0:N.fields)||[],[N]),M=(0,m.useMemo)(()=>{let e=k;return r.forEach(a=>{let t=e.find(e=>e.name===a);e=(null==t?void 0:t.fields)||[]}),e},[k,r]),[I,T]=(0,m.useState)(),E=(0,m.useCallback)(e=>{let{dataCategory:t,field:l}=e,s=l.data_categories||[],i=(0,w.Fk)({dataset:y,collectionName:n,subfields:[...r,l.name]}),o=d()(y);c()(o,"".concat(i,".data_categories"),[...s,t]),a(o)},[y,a,n,r]),q=(0,m.useCallback)(e=>{let{dataCategory:t,field:l}=e,s=l.data_categories||[],i=(0,w.Fk)({dataset:y,collectionName:n,subfields:[...r,null==l?void 0:l.name]}),o=d()(y);c()(o,"".concat(i,".data_categories"),s.filter(e=>e!==t)),a(o)},[y,a,n,r]),z=(0,m.useCallback)(a=>{let l=[...r.map(encodeURIComponent),a.name];e.push({pathname:h.y1,query:{datasetId:t,collectionName:n,subfieldNames:l}})},[t,e,n,r]),F=(0,m.useMemo)(()=>[C.accessor(e=>e.name,{id:"name",cell:e=>{var a;let t=e.row.original.fields&&(null===(a=e.row.original.fields)||void 0===a?void 0:a.length)>0;return(0,l.jsx)(p.G3,{fontWeight:t?"semibold":"normal",value:e.getValue()})},header:e=>(0,l.jsx)(p.Rr,{value:"Field Name",...e}),size:180}),C.accessor(e=>{var a;return null===(a=e.fides_meta)||void 0===a?void 0:a.data_type},{id:"type",cell:e=>e.getValue()?(0,l.jsx)(p.A4,{value:e.getValue()}):(0,l.jsx)(p.G3,{value:void 0}),header:e=>(0,l.jsx)(p.Rr,{value:"Type",...e}),size:80}),C.accessor(e=>e.description,{id:"description",cell:e=>(0,l.jsx)(p.G3,{value:e.getValue(),cellProps:e}),header:e=>(0,l.jsx)(p.Rr,{value:"Description",...e}),size:300,meta:{showHeaderMenu:!0}}),C.accessor(e=>e.data_categories,{id:"data_categories",cell:e=>{var a;let t=e.row.original;return!(e.row.original.fields&&(null===(a=e.row.original.fields)||void 0===a?void 0:a.length)>0)&&(0,l.jsx)(v.Z,{selectedTaxonomies:e.getValue()||[],onAddTaxonomy:e=>E({dataCategory:e,field:t}),onRemoveTaxonomy:e=>q({dataCategory:e,field:t})})},header:e=>(0,l.jsx)(p.Rr,{value:"Data categories",...e}),size:300,meta:{disableRowClick:!0}}),C.display({id:"actions",header:"Actions",cell:e=>{let{row:a}=e,t=a.original;return(0,l.jsx)(o.Ugi,{spacing:0,"data-testid":"field-".concat(t.name),children:(0,l.jsx)(o.wpx,{size:"small",icon:(0,l.jsx)(o.dY8,{}),onClick:()=>{W(t),G(!0)},children:"Edit"})})},meta:{disableRowClick:!0}})],[E,q]),S=(0,m.useMemo)(()=>I?M.filter(e=>e.name.toLowerCase().includes(I.toLowerCase())):M,[M,I]),U=(0,i.b7)({getCoreRowModel:(0,s.sC)(),getFilteredRowModel:(0,s.vL)(),getSortedRowModel:(0,s.tj)(),columns:F,data:S,columnResizeMode:"onChange"}),[A,G]=(0,m.useState)(!1),[V,W]=(0,m.useState)(),Z=(0,m.useMemo)(()=>{let e=[{title:"All datasets",href:h.$m},{title:t,href:{pathname:h.o5,query:{datasetId:t}},icon:x.Y[1]},{title:n,icon:x.Y[2],href:{pathname:h.RF,query:{datasetId:t,collectionName:n}}}];return r.forEach((a,l)=>{e.push({title:a,href:l<r.length-1?{pathname:h.y1,query:{datasetId:t,collectionName:n,subfieldNames:r.slice(0,l+1).map(encodeURIComponent)}}:void 0,icon:x.Y[3]})}),e},[t,n,r]);return(0,l.jsxs)(f.Z,{title:"Dataset - ".concat(t),children:[(0,l.jsx)(g.Z,{heading:"Datasets",breadcrumbItems:Z}),_?(0,l.jsx)(p.I4,{rowHeight:36,numRows:15}):(0,l.jsxs)(o.xuv,{"data-testid":"fields-table",children:[(0,l.jsx)(p.Q$,{children:(0,l.jsx)(p.HO,{globalFilter:I,setGlobalFilter:T,placeholder:"Search",testid:"fields-search"})}),(0,l.jsx)(p.ZK,{tableInstance:U,emptyTableNotice:(0,l.jsx)(R,{}),onRowClick:z,getRowIsClickable:e=>{var a;return!!(e.fields&&(null===(a=e.fields)||void 0===a?void 0:a.length)>0)}}),(0,l.jsx)(j.Z,{isOpen:A,onClose:()=>{G(!1),W(void 0)},field:V,dataset:y,collectionName:n,subfields:r})]})]})}}},function(e){e.O(0,[454,5487,549,2888,9774,179],function(){return e(e.s=16383)}),_N_E=e.O()}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6556],{59972:function(e,t,a){(window.__NEXT_P=window.__NEXT_P||[]).push(["/dataset/[datasetId]/[collectionName]",function(){return a(47355)}])},47355:function(e,t,a){"use strict";a.r(t);var l=a(24246),i=a(92222),o=a(59003),s=a(
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6556],{59972:function(e,t,a){(window.__NEXT_P=window.__NEXT_P||[]).push(["/dataset/[datasetId]/[collectionName]",function(){return a(47355)}])},47355:function(e,t,a){"use strict";a.r(t);var l=a(24246),i=a(92222),o=a(59003),s=a(39158),n=a(86677),d=a(27378),r=a(77213),c=a(77830),u=a(58754),m=a(47935),g=a(66112),f=a(69828),x=a(41966),h=a(76252),v=a(69435);let p=(0,i.Cl)(),j=()=>(0,l.jsx)(s.gCW,{mt:6,p:10,spacing:4,borderRadius:"base",maxW:"70%","data-testid":"no-results-notice",alignSelf:"center",margin:"auto",textAlign:"center",children:(0,l.jsx)(s.gCW,{children:(0,l.jsx)(s.xvT,{fontSize:"md",fontWeight:"600",children:"No fields found."})})});t.default=()=>{let e=(0,n.useRouter)(),[t]=(0,x.TG)(),a=decodeURIComponent(e.query.datasetId),w=decodeURIComponent(e.query.collectionName),{isLoading:C,data:_}=(0,x.oM)(a),R=(0,d.useMemo)(()=>(null==_?void 0:_.collections)||[],[_]),b=R.find(e=>e.name===w),N=(0,d.useMemo)(()=>(null==b?void 0:b.fields)||[],[b]),[k,y]=(0,d.useState)(),I=(0,d.useCallback)(e=>{let{dataCategory:a,field:l}=e,i=l.data_categories||[],o={...l,data_categories:[...i,a]},s=R.indexOf(b),n=b.fields.indexOf(l);t((0,v._n)(_,o,s,n))},[b,R,_,t]),M=(0,d.useCallback)(e=>{var a;let{dataCategory:l,field:i}=e,o={...i,data_categories:null===(a=i.data_categories)||void 0===a?void 0:a.filter(e=>e!==l)},s=R.indexOf(b),n=b.fields.indexOf(i);t((0,v._n)(_,o,s,n))},[b,R,_,t]),T=(0,d.useCallback)(t=>{e.push({pathname:c.y1,query:{datasetId:encodeURIComponent(a),collectionName:encodeURIComponent(w),subfieldNames:encodeURIComponent(t.name)}})},[a,e,w]),O=(0,d.useMemo)(()=>[p.accessor(e=>e.name,{id:"name",cell:e=>{var t;let a=e.row.original.fields&&(null===(t=e.row.original.fields)||void 0===t?void 0:t.length)>0;return(0,l.jsx)(m.G3,{fontWeight:a?"semibold":"normal",value:e.getValue()})},header:e=>(0,l.jsx)(m.Rr,{value:"Field Name",...e}),size:180}),p.accessor(e=>{var t;return null===(t=e.fides_meta)||void 0===t?void 0:t.data_type},{id:"type",cell:e=>e.getValue()?(0,l.jsx)(m.A4,{value:e.getValue()}):(0,l.jsx)(m.G3,{value:void 0}),header:e=>(0,l.jsx)(m.Rr,{value:"Type",...e}),size:80}),p.accessor(e=>e.description,{id:"description",cell:e=>(0,l.jsx)(m.G3,{value:e.getValue(),cellProps:e}),header:e=>(0,l.jsx)(m.Rr,{value:"Description",...e}),size:300,meta:{showHeaderMenu:!0}}),p.accessor(e=>e.data_categories,{id:"data_categories",cell:e=>{var t;let a=e.row.original;return!(e.row.original.fields&&(null===(t=e.row.original.fields)||void 0===t?void 0:t.length)>0)&&(0,l.jsx)(g.Z,{selectedTaxonomies:e.getValue()||[],onAddTaxonomy:e=>I({dataCategory:e,field:a}),onRemoveTaxonomy:e=>M({dataCategory:e,field:a})})},header:e=>(0,l.jsx)(m.Rr,{value:"Data categories",...e}),size:300,meta:{disableRowClick:!0}}),p.display({id:"actions",header:"Actions",cell:e=>{let{row:t}=e,a=t.original;return(0,l.jsx)(s.Ugi,{spacing:0,"data-testid":"field-".concat(a.name),children:(0,l.jsx)(s.wpx,{size:"small",icon:(0,l.jsx)(s.dY8,{}),onClick:()=>{G(a),U(!0)},children:"Edit"})})},meta:{disableRowClick:!0}})],[I,M]),z=(0,d.useMemo)(()=>k?N.filter(e=>e.name.toLowerCase().includes(k.toLowerCase())):N,[N,k]),S=(0,o.b7)({getCoreRowModel:(0,i.sC)(),getFilteredRowModel:(0,i.vL)(),getSortedRowModel:(0,i.tj)(),columns:O,data:z,columnResizeMode:"onChange"}),[E,U]=(0,d.useState)(!1),[A,G]=(0,d.useState)(),V=(0,d.useMemo)(()=>[{title:"All datasets",href:c.$m},{title:a,href:{pathname:c.o5,query:{datasetId:a}},icon:f.Y[1]},{title:w,icon:f.Y[2]}],[a,w]);return(0,l.jsxs)(r.Z,{title:"Dataset - ".concat(a),children:[(0,l.jsx)(u.Z,{heading:"Datasets",breadcrumbItems:V}),C?(0,l.jsx)(m.I4,{rowHeight:36,numRows:15}):(0,l.jsxs)(s.xuv,{"data-testid":"fields-table",children:[(0,l.jsx)(m.Q$,{children:(0,l.jsx)(m.HO,{globalFilter:k,setGlobalFilter:y,placeholder:"Search",testid:"fields-search"})}),(0,l.jsx)(m.ZK,{tableInstance:S,emptyTableNotice:(0,l.jsx)(j,{}),onRowClick:T,getRowIsClickable:e=>{var t;return!!(e.fields&&(null===(t=e.fields)||void 0===t?void 0:t.length)>0)}}),(0,l.jsx)(h.Z,{isOpen:E,onClose:()=>{U(!1),G(void 0)},field:A,dataset:_,collectionName:w})]})]})}}},function(e){e.O(0,[454,5487,549,2888,9774,179],function(){return e(e.s=59972)}),_N_E=e.O()}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9340],{33187:function(e,t,o){(window.__NEXT_P=window.__NEXT_P||[]).push(["/dataset/[datasetId]",function(){return o(1016)}])},1016:function(e,t,o){"use strict";o.r(t),o.d(t,{default:function(){return y}});var l=o(24246),n=o(92222),s=o(59003),i=o(39158),a=o(86677),c=o(27378),d=o(77213),r=o(77830),u=o(58754),m=o(47935),h=o(69828),x=o(41966),p=o(46628),j=o(79806),f=o(20386),C=o(63927),g=o(69435),w=e=>{let{dataset:t,collection:o,isOpen:n,onClose:s}=e,a=(0,c.useMemo)(()=>null==t?void 0:t.collections.indexOf(o),[o,null==t?void 0:t.collections]),[d]=(0,f.TG)(),r=(0,i.pmc)(),{isOpen:u,onOpen:m,onClose:h}=(0,i.qY0)(),x=async e=>{let l={...o,...e},n=(0,g.jC)(t,l,a);try{await d(n),r((0,p.t5)("Successfully modified collection"))}catch(e){r((0,p.Vo)(e))}s()},w=async()=>{if(t&&void 0!==a){let e=(0,g.qe)(t,a);try{await d(e),r((0,p.t5)("Successfully deleted collection"))}catch(e){r((0,p.Vo)(e))}s(),h()}};return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(j.ZP,{isOpen:n,onClose:s,description:"Collections are an array of objects that describe the Dataset's collections. Provide additional context to this collection by filling out the fields below.",header:(0,l.jsx)(j.zR,{title:"Collection Name: ".concat(null==o?void 0:o.name)}),footer:(0,l.jsx)(j.Gn,{onClose:s,onDelete:m,formId:C.e}),children:(0,l.jsx)(C.Z,{values:o,onSubmit:x,dataType:"collection",showDataCategories:!1})}),(0,l.jsx)(i.cVQ,{isOpen:u,onClose:h,onConfirm:w,title:"Delete Collection",message:(0,l.jsxs)(i.xvT,{children:["You are about to permanently delete the collection named"," ",(0,l.jsx)(i.xvT,{color:"complimentary.500",as:"span",fontWeight:"bold",children:null==o?void 0:o.name})," ","from this dataset. Are you sure you would like to continue?"]})})]})};let b=(0,n.Cl)(),v=()=>(0,l.jsx)(i.gCW,{mt:6,p:10,spacing:4,borderRadius:"base",maxW:"70%","data-testid":"no-results-notice",alignSelf:"center",margin:"auto",textAlign:"center",children:(0,l.jsx)(i.gCW,{children:(0,l.jsx)(i.xvT,{fontSize:"md",fontWeight:"600",children:"No collections found."})})});var y=()=>{let e=(0,a.useRouter)(),t=decodeURIComponent(e.query.datasetId),{isLoading:o,data:p}=(0,x.oM)(t),j=(0,c.useMemo)(()=>(null==p?void 0:p.collections)||[],[p]),[f,C]=(0,c.useState)(!1),[g,y]=(0,c.useState)(),[R,_]=(0,c.useState)(),M=(0,c.useMemo)(()=>[b.accessor(e=>e.name,{id:"name",cell:e=>(0,l.jsx)(m.G3,{value:e.getValue(),fontWeight:"semibold"}),header:e=>(0,l.jsx)(m.Rr,{value:"Collection Name",...e}),size:180}),b.accessor(e=>e.description,{id:"description",cell:e=>(0,l.jsx)(m.G3,{value:e.getValue(),cellProps:e}),header:e=>(0,l.jsx)(m.Rr,{value:"Description",...e}),size:300,meta:{showHeaderMenu:!0}}),b.display({id:"actions",header:"Actions",cell:e=>{let{row:t}=e,o=t.original;return(0,l.jsx)(i.Ugi,{spacing:0,"data-testid":"collection-".concat(o.name),children:(0,l.jsx)(i.wpx,{size:"small",icon:(0,l.jsx)(i.dY8,{}),onClick:()=>{y(o),C(!0)},children:"Edit"})})},meta:{disableRowClick:!0}})],[]),I=(0,c.useMemo)(()=>R?j.filter(e=>e.name.toLowerCase().includes(R.toLowerCase())):j,[j,R]),N=(0,s.b7)({getCoreRowModel:(0,n.sC)(),getFilteredRowModel:(0,n.vL)(),getSortedRowModel:(0,n.tj)(),columns:M,data:I,columnResizeMode:"onChange"}),S=(0,c.useMemo)(()=>[{title:"All datasets",href:r.$m},{title:t,icon:h.Y[1]}],[t]);return(0,l.jsxs)(d.Z,{title:"Dataset - ".concat(t),children:[(0,l.jsx)(u.Z,{heading:"Datasets",breadcrumbItems:S}),o?(0,l.jsx)(m.I4,{rowHeight:36,numRows:15}):(0,l.jsxs)(i.xuv,{"data-testid":"collections-table",children:[(0,l.jsx)(m.Q$,{children:(0,l.jsx)(m.HO,{globalFilter:R,setGlobalFilter:_,placeholder:"Search",testid:"collections-search"})}),(0,l.jsx)(m.ZK,{tableInstance:N,emptyTableNotice:(0,l.jsx)(v,{}),onRowClick:o=>{e.push({pathname:r.RF,query:{datasetId:encodeURIComponent(t),collectionName:encodeURIComponent(o.name)}})}})]}),p&&g&&(0,l.jsx)(w,{dataset:p,collection:g,isOpen:f,onClose:()=>C(!1)})]})}}},function(e){e.O(0,[5487,2888,9774,179],function(){return e(e.s=33187)}),_N_E=e.O()}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8538],{73846:function(e,t,a){(window.__NEXT_P=window.__NEXT_P||[]).push(["/dataset/new",function(){return a(17294)}])},77213:function(e,t,a){"use strict";a.d(t,{Z:function(){return x}});var s=a(24246),r=a(39158),n=a(88038),i=a.n(n),o=a(86677);a(27378);var l=a(25980),d=a(90867),c=a(42478),u=a(77830),h=()=>{let e=(0,o.useRouter)();return(0,s.jsx)(r.xuv,{bg:"gray.50",border:"1px solid",borderColor:"blue.400",borderRadius:"md",justifyContent:"space-between",p:5,mb:5,mt:5,children:(0,s.jsxs)(r.xuv,{children:[(0,s.jsxs)(r.Kqy,{direction:{base:"column",sm:"row"},justifyContent:"space-between",children:[(0,s.jsx)(r.xvT,{fontWeight:"semibold",children:"Configure your storage and messaging provider"}),(0,s.jsx)(r.wpx,{onClick:()=>{e.push(u.AD)},children:"Configure"})]}),(0,s.jsxs)(r.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:a,padded:n=!0,mainProps:u}=e,x=(0,l.hz)(),m=(0,o.useRouter)(),f="/privacy-requests"===m.pathname||"/datastore-connection"===m.pathname,g=!(x.flags.messagingConfiguration&&f),{data:y}=(0,c.JE)(void 0,{skip:g}),{data:p}=(0,d.PW)(void 0,{skip:g}),j=x.flags.messagingConfiguration&&(!y||!p)&&f;return(0,s.jsxs)(r.kCb,{"data-testid":a,direction:"column",h:"100vh",children:[(0,s.jsxs)(i(),{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)(r.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",...u,children:[j?(0,s.jsx)(h,{}):null,t]})]})}},39715:function(e,t,a){"use strict";var s=a(24246),r=a(39158);a(27378),t.Z=e=>{let{isEmptyState:t,yamlError:a}=e;return(0,s.jsxs)(r.xuv,{w:"fit-content",bg:"white",p:3,borderRadius:3,children:[(0,s.jsxs)(r.Ugi,{children:[(0,s.jsx)(r.X6q,{as:"h5",color:"gray.700",size:"xs",children:"YAML"}),(0,s.jsx)(r.Vp9,{colorScheme:"red",size:"sm",variant:"solid",children:"Error"})]}),(0,s.jsx)(r.xuv,{bg:"red.50",border:"1px solid",borderColor:"red.300",color:"red.300",mt:"16px",borderRadius:"6px",children:(0,s.jsxs)(r.Ugi,{alignItems:"flex-start",margin:["14px","17px","14px","17px"],children:[(0,s.jsx)(r.f9v,{}),t&&(0,s.jsxs)(r.xuv,{children:[(0,s.jsx)(r.X6q,{as:"h5",color:"red.500",fontWeight:"semibold",size:"xs",children:"Error message:"}),(0,s.jsx)(r.xvT,{color:"gray.700",fontSize:"sm",fontWeight:"400",children:"Yaml system is required"})]}),a&&(0,s.jsxs)(r.xuv,{children:[(0,s.jsx)(r.X6q,{as:"h5",color:"red.500",fontWeight:"semibold",size:"xs",children:"Error message:"}),(0,s.jsx)(r.xvT,{color:"gray.700",fontSize:"sm",fontWeight:"400",children:a.message}),(0,s.jsx)(r.xvT,{color:"gray.700",fontSize:"sm",fontWeight:"400",children:a.reason}),(0,s.jsxs)(r.xvT,{color:"gray.700",fontSize:"sm",fontWeight:"400",children:["Ln ",(0,s.jsx)("b",{children:a.mark.line}),", Col"," ",(0,s.jsx)("b",{children:a.mark.column}),", Pos"," ",(0,s.jsx)("b",{children:a.mark.position})]})]})]})})]})}},41207:function(e,t,a){"use strict";a.d(t,{F:function(){return i},M:function(){return n}});var s=a(76649),r=a(65218);let n=a.n(r)()(()=>a.e(7088).then(a.bind(a,57088)).then(e=>e.default),{loadableGenerated:{webpack:()=>[57088]},ssr:!1}),i=e=>(0,s.Ln)({name:"string"},e)&&"YAMLException"===e.name},17294:function(e,t,a){"use strict";a.r(t),a.d(t,{default:function(){return R}});var s=a(24246),r=a(39158),n=a(27378),i=a(77213),o=a(77830),l=a(58754),d=a(34090),c=a(86677),u=a(16125),h=a(55484),x=a(25980),m=a(40324),f=a(812),g=a(58452),y=a(46628),p=a(83265),j=a(32885),v=a(60240),b=a(20386);let w=e=>!("system_type"in e),C={url:"",classify:!1,classifyConfirmed:!1},_=h.Ry().shape({url:h.Z_().required().label("Database URL"),classify:h.O7(),classifyConfirmed:h.O7().when(["url","classify"],{is:(e,t)=>e&&t,then:()=>h.O7().equals([!0])})});var k=()=>{let[e,{isLoading:t}]=(0,b.pR)(),[a,{isLoading:n}]=(0,b.IR)(),[i,{isLoading:l}]=(0,j.Du)(),h=t||n||l,k=(0,r.pmc)(),S=(0,c.useRouter)(),A=(0,x.hz)(),z=(0,u.I0)(),E=async t=>{var a;let s=await e({organization_key:p.Av,generate:{config:{connection_string:t.url},target:v.GC.DB,type:v.j.DATASETS}});if((0,f.D4)(s))return{error:(0,f.e$)(s.error)};let r=(null!==(a=s.data.generate_results)&&void 0!==a?a:[]).filter(w);return r&&r.length>0?{datasets:r}:{error:"Unable to generate a dataset with this connection."}},T=async e=>{let t=await a(e);return(0,f.D4)(t)?{error:(0,f.e$)(t.error)}:{dataset:t.data}},R=async e=>{let{values:t,datasets:a}=e,s=await i({dataset_schemas:a.map(e=>{let{name:t,fides_key:a}=e;return{fides_key:a,name:t}}),schema_config:{organization_key:p.Av,generate:{config:{connection_string:t.url},target:v.GC.DB,type:v.j.DATASETS}}});return(0,f.D4)(s)?{error:(0,f.e$)(s.error)}:{classifyInstances:s.data.classify_instances}},D=async e=>{var t;let a=await E(e);if("error"in a){k((0,y.Vo)(a.error));return}let s=await Promise.all(a.datasets.map(e=>T(e))),r=null!==(t=s.find(e=>"error"in e))&&void 0!==t?t:s[0];if("error"in r){k((0,y.Vo)(r.error));return}if(!e.classify){k((0,y.t5)("Generated ".concat(r.dataset.name," dataset"))),S.push({pathname:o.o5,query:{datasetId:r.dataset.fides_key}});return}let n=await R({values:e,datasets:a.datasets});if("error"in n){k((0,y.Vo)(n.error));return}k((0,y.t5)("Generate and classify are now in progress")),z((0,b.Zl)(r.dataset.fides_key)),S.push("/dataset")};return(0,s.jsx)(d.J9,{initialValues:{...C,classify:A.plus},validationSchema:_,onSubmit:D,validateOnChange:!1,validateOnBlur:!1,children:e=>{let{isSubmitting:t,errors:a,values:n,submitForm:i,resetForm:o,setFieldValue:l}=e;return(0,s.jsxs)(d.l0,{children:[(0,s.jsxs)(r.gCW,{spacing:8,align:"left",children:[(0,s.jsx)(r.xvT,{size:"sm",color:"gray.700",children:"Connect to a database using the connection URL. You may have received this URL from a colleague or your Ethyca developer support engineer."}),(0,s.jsx)(r.xuv,{children:(0,s.jsx)(m.j0,{name:"url",label:"Database URL"})}),A.plus?(0,s.jsx)(m.w8,{name:"classify",label:"Classify dataset",tooltip:"Use Fides Classify to suggest labels based on your data."}):null,(0,s.jsx)(r.xuv,{children:(0,s.jsx)(r.wpx,{type:"primary",htmlType:"submit",loading:t||h,disabled:t||h,"data-testid":"create-dataset-btn",children:"Generate dataset"})})]}),(0,s.jsx)(g.Z,{title:"Generate and classify this dataset",message:"You have chosen to generate and classify this dataset. This process may take several minutes. In the meantime you can continue using Fides. You will receive a notification when the process is complete.",isOpen:void 0!==a.classifyConfirmed,onClose:()=>{o({values:{...n,classifyConfirmed:!1}})},onConfirm:()=>{l("classifyConfirmed",!0),setTimeout(()=>{i()},0)}})]})}})},S=a(66527),A=a(17245),z=a(41207),E=a(39715),T=()=>{let[e]=(0,b.IR)(),[t,a]=(0,n.useState)(!0),[i,l]=(0,n.useState)(!1),[d,u]=(0,n.useState)(!1),h=(0,n.useRef)(null),x=(0,c.useRouter)(),m=(0,r.pmc)(),{errorAlert:g}=(0,A.VY)(),[p,j]=(0,n.useState)(void 0),v=e=>{S.ZP.load(e,{json:!0}),j(void 0)},w=async t=>{let a;return"object"==typeof t&&null!==t&&"dataset"in t&&Array.isArray(t.dataset)?[a]=t.dataset:Array.isArray(t)?[a]=t:a=t,e(a)},C=e=>{m((0,y.t5)("Successfully loaded new dataset YAML")),(0,b.Zl)(e.fides_key),x.push({pathname:o.o5,query:{datasetId:e.fides_key}})},_=async()=>{l(!0);let e=h.current.getValue(),t=S.ZP.load(e,{json:!0}),a=await w(t);(0,f.D4)(a)?m((0,y.Vo)((0,f.e$)(a.error))):"data"in a&&C(a.data),l(!1)};return(0,s.jsxs)(r.kCb,{gap:"97px",children:[(0,s.jsxs)(r.xuv,{w:"75%",children:[(0,s.jsx)(r.xuv,{color:"gray.700",fontSize:"14px",mb:4,children:"Get started creating your first dataset by pasting your dataset yaml below! You may have received this yaml from a colleague or your Ethyca developer support engineer."}),(0,s.jsxs)(r.gCW,{align:"stretch",children:[(0,s.jsx)(r.izJ,{color:"gray.100"}),(0,s.jsx)(z.M,{defaultLanguage:"yaml",height:"calc(100vh - 515px)",onChange:e=>{try{u(!0),v(e),a(!!(!e||""===e.trim()))}catch(e){(0,z.F)(e)?j(e):g("Could not parse the supplied YAML")}},onMount:e=>{h.current=e,h.current.focus()},options:{fontFamily:"Menlo",fontSize:13,minimap:{enabled:!0}},theme:"light"}),(0,s.jsx)(r.izJ,{color:"gray.100"}),(0,s.jsx)(r.wpx,{type:"primary",disabled:t||!!p||i,loading:i,onClick:_,htmlType:"submit",className:"mt-6 w-fit",children:"Create dataset"})]})]}),(0,s.jsx)(r.xuv,{children:d&&(t||p)&&(0,s.jsx)(E.Z,{isEmptyState:t,yamlError:p})})]})},R=()=>{let[e,t]=(0,n.useState)(null);return(0,s.jsxs)(i.Z,{title:"Create New Dataset",children:[(0,s.jsx)(l.Z,{heading:"Datasets",breadcrumbItems:[{title:"All datasets",href:o.$m},{title:"Create new"}]}),(0,s.jsxs)(r.Kqy,{spacing:8,children:[(0,s.jsxs)(r.xuv,{children:[(0,s.jsx)(r.wpx,{onClick:()=>t("yaml"),"data-testid":"upload-yaml-btn",className:"mr-2",children:"Upload a Dataset YAML"}),(0,s.jsx)(r.wpx,{onClick:()=>t("database"),ghost:"database"===e,className:"mr-2","data-testid":"connect-db-btn",children:"Connect to a database"})]}),"database"===e&&(0,s.jsx)(r.xuv,{w:{base:"100%",lg:"50%"},children:(0,s.jsx)(k,{})}),"yaml"===e&&(0,s.jsx)(r.xuv,{w:{base:"100%"},children:(0,s.jsx)(T,{})})]})]})}}},function(e){e.O(0,[431,6527,7245,1840,2888,9774,179],function(){return e(e.s=73846)}),_N_E=e.O()}]);
|