ethyca-fides 2.71.1b1__py2.py3-none-any.whl → 2.74.0rc1__py2.py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of ethyca-fides might be problematic. Click here for more details.
- {ethyca_fides-2.71.1b1.dist-info → ethyca_fides-2.74.0rc1.dist-info}/METADATA +3 -2
- {ethyca_fides-2.71.1b1.dist-info → ethyca_fides-2.74.0rc1.dist-info}/RECORD +377 -327
- fides/_version.py +3 -3
- fides/api/alembic/alembic.ini +5 -1
- fides/api/alembic/migrations/env.py +7 -1
- fides/api/alembic/migrations/versions/4bfbeff34611_add_polling_status.py +68 -0
- fides/api/alembic/migrations/versions/65a1bc82ae09_adds_experience_config_for_delete_.py +53 -0
- fides/api/alembic/migrations/versions/7db29f9cd77b_create_new_sub_request_table.py +95 -0
- fides/api/alembic/migrations/versions/a55e12c2c2df_add_tagging_instructions_to_data_.py +29 -0
- fides/api/alembic/migrations/versions/b97e92b038d2_add_digest_execution_model.py +117 -0
- fides/api/alembic/migrations/versions/c09e76282dd1_add_privacy_request_duplication_cols.py +64 -0
- fides/api/alembic/migrations/versions/xx_2025_10_17_1603_5093e92e2a5a_add_consent_data_v3_to_the_database.py +72 -0
- fides/api/alembic/migrations/versions/xx_2025_10_27_1834_67f0f2f4748e_adding_identity_definition_model.py +45 -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/api/v1/endpoints/connection_endpoints.py +38 -45
- fides/api/api/v1/endpoints/generic_overrides.py +75 -6
- fides/api/api/v1/endpoints/privacy_request_endpoints.py +60 -6
- fides/api/api/v1/endpoints/saas_config_endpoints.py +60 -48
- fides/api/api/v1/endpoints/system.py +11 -43
- fides/api/api/v1/endpoints/user_endpoints.py +8 -1
- fides/api/app_setup.py +1 -3
- fides/api/common_exceptions.py +8 -0
- fides/api/db/base.py +2 -0
- fides/api/db/database.py +257 -2
- fides/api/email_templates/get_email_template.py +3 -0
- fides/api/email_templates/template_names.py +1 -0
- fides/api/email_templates/templates/manual_task_digest.html +316 -0
- fides/api/main.py +2 -2
- fides/api/models/attachment.py +1 -0
- fides/api/models/detection_discovery/__init__.py +2 -0
- fides/api/models/detection_discovery/core.py +10 -0
- fides/api/models/detection_discovery/monitor_task.py +1 -0
- fides/api/models/detection_discovery/staged_resource_error.py +25 -0
- fides/api/models/digest/__init__.py +2 -0
- fides/api/models/digest/digest_config.py +10 -1
- fides/api/models/digest/digest_execution.py +142 -0
- fides/api/models/event_audit.py +17 -0
- fides/api/models/identity_definition.py +65 -0
- fides/api/models/messaging_template.py +7 -0
- fides/api/models/privacy_experience.py +11 -0
- fides/api/models/privacy_preference.py +2 -0
- fides/api/models/privacy_request/duplicate_group.py +84 -0
- fides/api/models/privacy_request/privacy_request.py +56 -8
- fides/api/models/privacy_request/request_task.py +98 -1
- fides/api/models/sql_models.py +3 -0
- fides/api/models/taxonomy.py +14 -4
- fides/api/models/v3/__init__.py +0 -0
- fides/api/models/v3/privacy_preferences.py +85 -0
- fides/api/models/worker_task.py +8 -0
- fides/api/schemas/application_config.py +28 -0
- fides/api/schemas/connection_configuration/connection_config.py +1 -30
- fides/api/schemas/messaging/messaging.py +15 -0
- fides/api/schemas/privacy_request.py +17 -3
- fides/api/schemas/saas/async_polling_configuration.py +81 -0
- fides/api/schemas/saas/saas_config.py +10 -3
- fides/api/schemas/saas/strategy_configuration.py +0 -12
- fides/api/schemas/taxonomy_extensions.py +8 -0
- fides/api/service/async_dsr/handlers/__init__.py +0 -0
- fides/api/service/async_dsr/handlers/polling_attachment_handler.py +155 -0
- fides/api/service/async_dsr/handlers/polling_request_handler.py +88 -0
- fides/api/service/async_dsr/handlers/polling_response_handler.py +261 -0
- fides/api/service/async_dsr/handlers/polling_sub_request_handler.py +123 -0
- fides/api/service/async_dsr/strategies/__init__.py +0 -0
- fides/api/service/async_dsr/strategies/async_dsr_strategy.py +52 -0
- fides/api/service/async_dsr/strategies/async_dsr_strategy_callback.py +199 -0
- fides/api/service/async_dsr/strategies/async_dsr_strategy_factory.py +72 -0
- fides/api/service/async_dsr/strategies/async_dsr_strategy_polling.py +686 -0
- fides/api/service/async_dsr/utils.py +130 -0
- fides/api/service/connectors/bigquery_connector.py +34 -16
- fides/api/service/connectors/fides/fides_client.py +63 -1
- fides/api/service/connectors/query_configs/saas_query_config.py +160 -79
- fides/api/service/connectors/saas/connector_registry_service.py +1 -138
- fides/api/service/connectors/saas_connector.py +116 -94
- fides/api/service/connectors/sql_connector.py +14 -4
- fides/api/service/deps.py +8 -0
- fides/api/service/messaging/message_dispatch_service.py +38 -1
- fides/api/service/privacy_request/attachment_handling.py +9 -2
- fides/api/service/privacy_request/duplication_detection.py +424 -0
- fides/api/service/privacy_request/request_runner_service.py +46 -84
- fides/api/service/privacy_request/request_service.py +47 -74
- fides/api/service/saas_request/saas_request_override_factory.py +71 -1
- fides/api/task/execute_request_tasks.py +17 -9
- fides/api/task/filter_results.py +35 -2
- fides/api/task/graph_task.py +37 -8
- fides/api/tasks/__init__.py +0 -1
- fides/api/util/connection_util.py +99 -215
- fides/api/util/event_audit_util.py +230 -0
- fides/api/util/logger_context_utils.py +3 -1
- fides/api/util/masking_util.py +31 -0
- fides/api/util/memory_watchdog.py +118 -0
- fides/api/util/saas_config_updater.py +66 -0
- fides/api/util/saas_util.py +28 -1
- fides/common/api/scope_registry.py +0 -7
- fides/common/api/v1/urn_registry.py +2 -0
- fides/config/__init__.py +10 -1
- fides/config/celery_settings.py +42 -0
- fides/config/config_proxy.py +10 -0
- fides/config/duplicate_detection_settings.py +31 -0
- fides/config/execution_settings.py +7 -3
- fides/config/utils.py +5 -0
- fides/data/language/languages.yml +2 -0
- fides/service/connection/__init__.py +0 -0
- fides/service/connection/connection_service.py +651 -0
- fides/service/event_audit_service.py +16 -22
- fides/service/privacy_request/privacy_request_service.py +162 -43
- fides/service/taxonomy/handlers/legacy_handler.py +3 -3
- fides/service/taxonomy/taxonomy_service.py +15 -15
- fides/ui-build/static/admin/404.html +1 -1
- fides/ui-build/static/admin/_next/static/FZTEUgamBvOhgPWce135w/_buildManifest.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/{1115-90baef2a89f361ad.js → 1115-0da062111df309bf.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/{6148-59a59d5c5925344f.js → 1533-84e250d1f26e6d7d.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/1817-508b16628e8eb225.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/1840-5bbe6d878ed73fb4.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/{1975.78e719130cfe3fd6.js → 1975.afe8cad52f904fcf.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/{2040-fdecc41a18e40bdc.js → 2040-fe1a06d82c0413f1.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/2397-40b8db1cb2f23e2a.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/2921-b10bbc3a9104933b.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-eb5cd82b3ee6ab0c.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-93ecd09f1cb9dbef.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/{3696-90c8b336bbc46782.js → 3696-6db05a35ae806825.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/{3923-98bea73b618292aa.js → 3923-44255a63d6d80ff5.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/401-fe8db8b5d8f600de.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/4277-13bcf4516326d474.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/431-e01ee730c8ad9ece.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/4496-bed72bd5639075be.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/454-d5c2c84f1a14e4f1.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/4817-d29f40d4ce729f37.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/5185-b2ac9fecc00b67e7.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/5258-4672eae0656430f9.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/5487-8dedd1ca94fbba54.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/549-6e2442db533a711e.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/5643-55d758444a8d7162.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/5724-1e40975cefa405f0.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/{5783-d119cb132abd8a91.js → 5783-6055edba275155ca.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/6084-82e2df433fe5ba85.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/6344-3e21444374f8059f.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/6362-12e3fd23130ccf15.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/6372-a8d0f08dac1ebd0e.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/6780-3db5133c1f4c6f1e.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/6853-1adbdf6418ec3d62.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/6954-aa0c60ee1092be8e.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/7059-12be23a345a94c1e.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/7079-6e6efc3396ff1ebb.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/7218-d297a4a06f924b09.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/7245-686665c197b58e68.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/{7476-d055aa931da47ac0.js → 7476-a43c046c24de37cc.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/7630-c654c61ba98d8c74.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/7654-716cf37a020b3d11.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/{796-02086581996a0548.js → 796-e83ace3c6ab99ac7.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/8212-b9e8295ca883c9f8.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/8939-4925751c57c51f87.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/9014-eeae6f581158e645.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/9046-e4daf28840a69fd6.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/{5596-29a7c8322530b7cf.js → 9195-550bd50d538c5f79.js} +3 -3
- fides/ui-build/static/admin/_next/static/chunks/9330-e519adec48222d45.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/9341-bfc0e59bcc56c604.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/9450-b7b7bb1d755ecf57.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/{9676.b86ecbcfe5afd25d.js → 9676.7d029a5383595b69.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/9682-da69ac5d06f281da.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/{9826-ccedc28e978ca9e1.js → 9826-657652d55936a8c6.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/9911-ece086f2230e34f0.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/9965-56c5e4fc9cd3b3a5.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/{404-2eb8aed4939f1142.js → 404-d079b8bf35250874.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/{_app-c1c2f757b1f3da12.js → _app-e64fd8510033a27c.js} +63 -63
- fides/ui-build/static/admin/_next/static/chunks/pages/add-systems/manual-ddd9d7d40847fc28.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/add-systems/multiple-b4d18c1f4d414f5f.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/add-systems-d451bc8932330141.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/consent/configure/{add-vendors-7a258b7ecd6da4b8.js → add-vendors-c24663cd5dec57db.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/consent/{configure-fb5017ff5fa54fcc.js → configure-d93418688bd258eb.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/consent/privacy-experience/{[id]-e1e2fd704ac2d71d.js → [id]-9b1f2b1c06968166.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/consent/privacy-experience/{new-a5e738a234dadc7e.js → new-115a085e5d42de45.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/consent/privacy-experience-d9b7b311195df29e.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/consent/privacy-notices/{[id]-5fc78b78a51c239c.js → [id]-3de34624829cbce8.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/consent/privacy-notices/{new-b79bcb93b5f4c734.js → new-dc95e7ed278d1a29.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/consent/privacy-notices-cdfc9bb19f47c709.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/consent/{properties-069f4e3ee96ebf77.js → properties-0b995b01dc4dbd1f.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/consent/reporting-e3ad3a55624e302a.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/{consent-d2bf72508c3cad55.js → consent-b37ed76849330edd.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/data-catalog/[systemId]/projects/[projectUrn]/{[resourceUrn]-2fa4b3a58f75f81d.js → [resourceUrn]-dd82729296dee5c5.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/data-catalog/[systemId]/projects/[projectUrn]-49e5477eb1a11b92.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/data-catalog/[systemId]/projects-dfc1ead4a12c9ffa.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/data-catalog/[systemId]/resources/{[resourceUrn]-5b31e3d7727b917a.js → [resourceUrn]-8442eb219958ac7e.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/data-catalog/[systemId]/resources-feda358d1801c18d.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/data-catalog-d16acb6fc07aad46.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/action-center/datastore/[monitorId]-c51a1e98c45d231a.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/action-center/datastore-4498881c26f1458d.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/action-center/website/[monitorId]/[systemId]-bcfe38eebca30f8c.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/action-center/website/[monitorId]-f66d0655897c4400.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/action-center/website-5b3e0009d442bc3f.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/action-center-6f1e012cd641da19.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/activity-581d6248fcf98d17.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/detection/{[resourceUrn]-844a8de0d1b506e2.js → [resourceUrn]-ddc1c1641e1e9430.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/{detection-11b07cf2d91b17ef.js → detection-2b48f7e524743b2b.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/discovery/{[resourceUrn]-5525cf287d4ab493.js → [resourceUrn]-862b67418600251e.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/{discovery-ed4723e1b67d890e.js → discovery-0ffec855f5df262c.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/datamap-6a030ab8c2e2b0db.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/dataset/[datasetId]/[collectionName]/[...subfieldNames]-6cb66f649b8ca4bf.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/dataset/[datasetId]/[collectionName]-0b008dad90b00aaa.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/dataset/[datasetId]-5566edf9a9d1be2d.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/dataset/new-d4ca1f485b6e9e02.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/dataset-85dee7e81dc4bafb.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/datastore-connection/[id]-e905e018a2cab35d.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/datastore-connection/new-912723bc86299b1a.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/datastore-connection-f1f0affc18327033.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-b74d1e8608ae5b5d.js → index-692d27dbe9392c9f.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/integrations/[id]-1b94e2d769a182b2.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/integrations-adfe6c5ac5b703d0.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/new-privacy-requests-f9be7080ebbb7445.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/notifications/digests/[id]-caaa8602a1d449b1.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/notifications/digests/new-9b106b1d2d93985b.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/notifications/digests-6a1ded8cdde836c4.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/notifications/providers/[key]-f94e3accf9507ebf.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/notifications/providers/new-5e83220ff1f2a250.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/notifications/providers-a03cbd698a23e5b3.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/notifications/templates/[id]-3cde574b3c8447c0.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/notifications/templates/add-template-0448bb4ae8536c58.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/notifications/templates-1621a4b87c432117.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/notifications-4ea28f6b1dd63642.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/poc/ant-components-e02516d9fd314528.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/poc/form-experiments/AntForm-fec08bea801b4918.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/poc/form-experiments/FormikAntFormItem-d911e5fbf5a4a888.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/poc/form-experiments/FormikControlled-91b1adcac6a57b2d.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/poc/form-experiments/FormikField-de309d8813b1ebfb.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/poc/forms-f2943c1309062284.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/poc/{table-migration-29fb7b39f8962650.js → table-migration-03eda417711ae909.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/privacy-requests/[id]-1fe486f3af832c80.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/privacy-requests/configure/storage-ea6f78fa8b2d3f6c.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/privacy-requests/{configure-8f577df28ebca869.js → configure-bda7b474493e7128.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/privacy-requests-2c0ec8fed16c20ae.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/properties/{[id]-57a75c7e9659271a.js → [id]-30d298a47e85709f.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/properties/{add-property-8964c2300206bc89.js → add-property-438084cca0d0f10d.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/{properties-08472b2a6bf1d392.js → properties-17fd44d98f5bd5b6.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/reporting/datamap-baf77d34a3b3bece.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/sandbox/privacy-notices-8c80391025ca7339.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/settings/consent/[configuration_id]/[purpose_id]-7c19810858b708cc.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/settings/consent-ee8820fe0fa14c77.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/settings/custom-fields/{[id]-bd1042a0e9be6aff.js → [id]-8eb862182f19a6c2.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/settings/custom-fields/{new-469ad83c8cfa1290.js → new-37c29ef618e9fe3c.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/settings/custom-fields-1db425150dcb1b6b.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/settings/{domain-records-744f669431b84f71.js → domain-records-e334b43fa5c5b1e6.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/settings/domains-9d18eb5c38d85522.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/settings/{email-templates-604790638c656fbd.js → email-templates-cb937ed7c4b1e5a8.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/settings/{locations-be2a885150adc133.js → locations-835281251f0785cd.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/settings/{organization-3c86162afe9759df.js → organization-7fd050c92866938c.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/settings/privacy-requests-59ea66130fca0d05.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/settings/{regulations-4fe3b90747d885e5.js → regulations-b0fe1051d908f366.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/systems/configure/[id]/test-datasets-f108bf5015144d2f.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/systems/configure/{[id]-4d470bbf199a2f9c.js → [id]-0e7c7228d01290ea.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/systems-adc13b542e10a37d.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/taxonomy-23dd250da26511c5.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/user-management/profile/{[id]-98f737e735eaa0f0.js → [id]-aed30fb22ae7c9ec.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/{user-management-562624e5461083ec.js → user-management-6b88ca3e02ee67c9.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/webpack-6f97ebe373e7ef6b.js +1 -0
- fides/ui-build/static/admin/_next/static/css/012b10627a654d5c.css +1 -0
- fides/ui-build/static/admin/_next/static/css/05d05fc31d09638b.css +1 -0
- fides/ui-build/static/admin/_next/static/css/0fd6e0884cfcc5f3.css +1 -0
- fides/ui-build/static/admin/_next/static/css/14ba79c49597d37a.css +1 -0
- fides/ui-build/static/admin/_next/static/css/{34a7eb08b86ddb57.css → 3d6582469f7d56e0.css} +1 -1
- fides/ui-build/static/admin/_next/static/css/4861ca3e088f2d05.css +1 -0
- fides/ui-build/static/admin/_next/static/css/65ae906f224cd8ae.css +1 -0
- fides/ui-build/static/admin/_next/static/css/a1800714b486e230.css +1 -0
- fides/ui-build/static/admin/_next/static/css/af32fcac7a177a0e.css +1 -0
- fides/ui-build/static/admin/_next/static/css/cb417f0587918f85.css +1 -0
- fides/ui-build/static/admin/_next/static/css/d5701118537cbdd2.css +1 -0
- fides/ui-build/static/admin/_next/static/css/dd15c278b964de80.css +1 -0
- fides/ui-build/static/admin/_next/static/css/{5f393dea1c0d031c.css → f89607996ad54f4b.css} +1 -1
- fides/ui-build/static/admin/_next/static/css/f9a2a44d3d34c904.css +1 -0
- fides/ui-build/static/admin/add-systems/manual.html +1 -1
- fides/ui-build/static/admin/add-systems/multiple.html +1 -1
- fides/ui-build/static/admin/add-systems.html +1 -1
- fides/ui-build/static/admin/consent/configure/add-vendors.html +1 -1
- fides/ui-build/static/admin/consent/configure.html +1 -1
- fides/ui-build/static/admin/consent/privacy-experience/[id].html +1 -1
- fides/ui-build/static/admin/consent/privacy-experience/new.html +1 -1
- fides/ui-build/static/admin/consent/privacy-experience.html +1 -1
- fides/ui-build/static/admin/consent/privacy-notices/[id].html +1 -1
- fides/ui-build/static/admin/consent/privacy-notices/new.html +1 -1
- fides/ui-build/static/admin/consent/privacy-notices.html +1 -1
- fides/ui-build/static/admin/consent/properties.html +1 -1
- fides/ui-build/static/admin/consent/reporting.html +1 -1
- fides/ui-build/static/admin/consent.html +1 -1
- fides/ui-build/static/admin/data-catalog/[systemId]/projects/[projectUrn]/[resourceUrn].html +1 -1
- fides/ui-build/static/admin/data-catalog/[systemId]/projects/[projectUrn].html +1 -1
- fides/ui-build/static/admin/data-catalog/[systemId]/projects.html +1 -1
- fides/ui-build/static/admin/data-catalog/[systemId]/resources/[resourceUrn].html +1 -1
- fides/ui-build/static/admin/data-catalog/[systemId]/resources.html +1 -1
- fides/ui-build/static/admin/data-catalog.html +1 -1
- fides/ui-build/static/admin/data-discovery/action-center/datastore/[monitorId].html +1 -0
- fides/ui-build/static/admin/data-discovery/action-center/datastore.html +1 -0
- fides/ui-build/static/admin/data-discovery/action-center/website/[monitorId]/[systemId].html +1 -0
- fides/ui-build/static/admin/data-discovery/action-center/website/[monitorId].html +1 -0
- fides/ui-build/static/admin/data-discovery/action-center/website.html +1 -0
- 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 +3 -3
- fides/ui-build/static/admin/lib/fides.js +3 -3
- 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 -0
- fides/ui-build/static/admin/notifications/digests/[id].html +1 -0
- fides/ui-build/static/admin/notifications/digests/new.html +1 -0
- fides/ui-build/static/admin/notifications/digests.html +1 -0
- fides/ui-build/static/admin/notifications/providers/[key].html +1 -0
- fides/ui-build/static/admin/notifications/providers/new.html +1 -0
- fides/ui-build/static/admin/notifications/providers.html +1 -0
- fides/ui-build/static/admin/notifications/templates/[id].html +1 -0
- fides/ui-build/static/admin/notifications/templates/add-template.html +1 -0
- fides/ui-build/static/admin/notifications/templates.html +1 -0
- fides/ui-build/static/admin/notifications.html +1 -0
- fides/ui-build/static/admin/poc/ant-components.html +1 -1
- fides/ui-build/static/admin/poc/form-experiments/AntForm.html +1 -1
- fides/ui-build/static/admin/poc/form-experiments/FormikAntFormItem.html +1 -1
- fides/ui-build/static/admin/poc/form-experiments/FormikControlled.html +1 -1
- fides/ui-build/static/admin/poc/form-experiments/FormikField.html +1 -1
- fides/ui-build/static/admin/poc/form-experiments/FormikSpreadField.html +1 -1
- fides/ui-build/static/admin/poc/forms.html +1 -1
- fides/ui-build/static/admin/poc/table-migration.html +1 -1
- fides/ui-build/static/admin/privacy-requests/[id].html +1 -1
- fides/ui-build/static/admin/privacy-requests/configure/storage.html +1 -1
- fides/ui-build/static/admin/privacy-requests/configure.html +1 -1
- fides/ui-build/static/admin/privacy-requests.html +1 -1
- fides/ui-build/static/admin/properties/[id].html +1 -1
- fides/ui-build/static/admin/properties/add-property.html +1 -1
- fides/ui-build/static/admin/properties.html +1 -1
- fides/ui-build/static/admin/reporting/datamap.html +1 -1
- fides/ui-build/static/admin/sandbox/privacy-notices.html +1 -0
- 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/async_dsr/async_dsr_service.py +0 -195
- fides/api/service/async_dsr/async_dsr_strategy.py +0 -5
- fides/api/service/async_dsr/async_dsr_strategy_callback.py +0 -16
- fides/api/service/async_dsr/async_dsr_strategy_factory.py +0 -63
- fides/api/service/async_dsr/async_dsr_strategy_polling.py +0 -94
- fides/ui-build/static/admin/_next/static/_IxwgneyQjdSaZFEF3Tqu/_buildManifest.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/1316-2606e19807c08aa5.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-b4337d0826d5addc.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/1817-1ad037b7d6d2f6d2.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/1896-49010da5c2705fc5.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/2150-930ffaf2c4718edc.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/255-1bc0cbef7a59cdc6.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/2921-66f65496c3a09316.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/2962-e92d525bf570a9a3.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/346-aa3b88efb85f2e28.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/3550-83cb70e80cbe41ba.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/3585-f728d32fda6f1ac1.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/3855-ed226b8a8050bd40.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/3872-04d3afbfa41a7782.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/401-ffe4e8436e1eceb9.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/409-5c3d31163028339f.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/431-78bf05f35d7eec4f.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/4558-8305aee48def1dcd.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/4608-0c6ef78e30a51f84.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/4718-3a412bdb90add82f.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/502-0d9f4ac29ef34a1c.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/504-88caa30c03374e9b.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/5163-e682273cd76a7d07.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/5185-51eaa78e3ed6bfb7.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/5279-12c9cbdc67ad7b14.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/5309-3b6cf0cc9d0c6a83.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/5574-c31ea831371610d5.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-10a36584c399526c.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/6277-182efc294d413f64.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/6419-9b3a86af57c86791.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/6853-7004a8c420b1ca02.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/6882-dbe0a25dcf1a8ee0.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/6954-4b24e1731c1cc3b3.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/699-8ca44b0de9fa20f0.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/7045-14e955890f1147e4.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/7079-50571e9f3269d74d.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/7158-04745cc8d684b2e7.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/7218-e2983b96b95e33b4.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/7630-d0d3a0fe3f95e971.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/7725-f2a7be705b75dcc3.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/7929-0fd0d4948bc8d70e.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/8002-ed832921ad190832.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-b6616ba7b59d947e.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/9187-7438242f0d380bb0.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/9226-4a7027057f55ca2a.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/9278-08cc704317fe535e.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/9729-fcf6ff4e3534e4a8.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/add-systems/manual-4ec03eed67572861.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/add-systems/multiple-2ca59996860a33c5.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/add-systems-19214babd1f219e3.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/consent/privacy-experience-92182be6603c2842.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/consent/privacy-notices-ab54b19609bff325.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/consent/reporting-c1a3caf3c286bf5d.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/data-catalog/[systemId]/projects/[projectUrn]-4a1af12d2d7cd660.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/data-catalog/[systemId]/projects-99573a1ee3ef8f4c.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/data-catalog/[systemId]/resources-6e429b7511028d60.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/data-catalog-b7326c51d88cc2cc.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/action-center/[monitorId]/[systemId]-5b57f9132426fe52.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/action-center/[monitorId]-0d512528b498d75c.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/action-center-040813022f0890c9.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/activity-a28cc0e23bbe4fc8.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/datamap-7d22222608ec3aac.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/dataset/[datasetId]/[collectionName]/[...subfieldNames]-0abd30eada811b5b.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/dataset/[datasetId]/[collectionName]-007965429368d9a3.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/dataset/[datasetId]-60a4a9eb4aab4c11.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/dataset/new-d514cd4ec62e3b03.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/dataset-0e3a6ac4797ffbbb.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/datastore-connection/[id]-816e02b6cbe4a684.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/datastore-connection/new-b6838162200141b3.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/datastore-connection-223c2d1ded51bfb1.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/integrations/[id]-153eb88ab4e7dc6d.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/integrations-331544e9b85c4ac2.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/messaging/[id]-e8d2140787045acd.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/messaging/add-template-e3f93462a08251bf.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/messaging-b5f7d6afdecd013d.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/poc/ant-components-248ad9f65a872442.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/poc/form-experiments/AntForm-aedb66a62042b10a.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/poc/form-experiments/FormikAntFormItem-018df38b7cd77fdb.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/poc/form-experiments/FormikControlled-6ca9099d03aab817.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/poc/form-experiments/FormikField-0f2c90786ea005a4.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/poc/forms-200b51a725f8b2d1.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/privacy-requests/[id]-7dac2302f573f5ee.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/privacy-requests/configure/storage-479890582973deaf.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/privacy-requests-7af00f72cf694077.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/reporting/datamap-f7753e9effae3816.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/settings/consent/[configuration_id]/[purpose_id]-f3e6e74e0efb005c.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/settings/consent-4d658222ec800511.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/settings/custom-fields-2fcd95c41e578d57.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/settings/domains-a3275554ffe8e640.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/settings/messaging-providers/[key]-77239269acc2d31a.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/settings/messaging-providers/new-8bf1821722b082e9.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/settings/messaging-providers-8d92be437793c96f.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/settings/privacy-requests-97221067330c0c27.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/systems/configure/[id]/test-datasets-2deb6becece69d46.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/systems-6c91bdea40875227.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/taxonomy-3059aba38adefa56.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/webpack-2766492c5dbceb0a.js +0 -1
- fides/ui-build/static/admin/_next/static/css/073713cd1eddda79.css +0 -1
- fides/ui-build/static/admin/_next/static/css/23cf870196941c9a.css +0 -1
- fides/ui-build/static/admin/_next/static/css/295d729ea1b11885.css +0 -1
- fides/ui-build/static/admin/_next/static/css/304c6f148886a8d4.css +0 -1
- fides/ui-build/static/admin/data-discovery/action-center/[monitorId]/[systemId].html +0 -1
- fides/ui-build/static/admin/data-discovery/action-center/[monitorId].html +0 -1
- fides/ui-build/static/admin/messaging/[id].html +0 -1
- fides/ui-build/static/admin/messaging/add-template.html +0 -1
- fides/ui-build/static/admin/messaging.html +0 -1
- fides/ui-build/static/admin/settings/messaging-providers/[key].html +0 -1
- fides/ui-build/static/admin/settings/messaging-providers/new.html +0 -1
- fides/ui-build/static/admin/settings/messaging-providers.html +0 -1
- {ethyca_fides-2.71.1b1.dist-info → ethyca_fides-2.74.0rc1.dist-info}/WHEEL +0 -0
- {ethyca_fides-2.71.1b1.dist-info → ethyca_fides-2.74.0rc1.dist-info}/entry_points.txt +0 -0
- {ethyca_fides-2.71.1b1.dist-info → ethyca_fides-2.74.0rc1.dist-info}/licenses/LICENSE +0 -0
- {ethyca_fides-2.71.1b1.dist-info → ethyca_fides-2.74.0rc1.dist-info}/top_level.txt +0 -0
- /fides/ui-build/static/admin/_next/static/{_IxwgneyQjdSaZFEF3Tqu → FZTEUgamBvOhgPWce135w}/_ssgManifest.js +0 -0
- /fides/ui-build/static/admin/_next/static/chunks/pages/user-management/{new-629c88e90699369b.js → new-7dce2916cc589c54.js} +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4259],{24259:function(e,n,t){e.exports={graphlib:t(99043),layout:t(69155),debug:t(38093),util:{time:t(51942).time,notime:t(51942).notime},version:t(50665)}},19371:function(e,n,t){"use strict";var r=t(27568),o=t(26238);e.exports={run:function(e){var n,t,i,a="greedy"===e.graph().acyclicer?o(e,function(n){return e.edge(n).weight}):(n=[],t={},i={},r.forEach(e.nodes(),function o(a){r.has(i,a)||(i[a]=!0,t[a]=!0,r.forEach(e.outEdges(a),function(e){r.has(t,e.w)?n.push(e):o(e.w)}),delete t[a])}),n);r.forEach(a,function(n){var t=e.edge(n);e.removeEdge(n),t.forwardName=n.name,t.reversed=!0,e.setEdge(n.w,n.v,t,r.uniqueId("rev"))})},undo:function(e){r.forEach(e.edges(),function(n){var t=e.edge(n);if(t.reversed){e.removeEdge(n);var r=t.forwardName;delete t.reversed,delete t.forwardName,e.setEdge(n.w,n.v,t,r)}})}}},30111:function(e,n,t){var r=t(27568),o=t(51942);function i(e,n,t,r,i,a){var u=i[n][a-1],s=o.addDummyNode(e,"border",{width:0,height:0,rank:a,borderType:n},t);i[n][a]=s,e.setParent(s,r),u&&e.setEdge(u,s,{weight:1})}e.exports=function(e){r.forEach(e.children(),function n(t){var o=e.children(t),a=e.node(t);if(o.length&&r.forEach(o,n),r.has(a,"minRank")){a.borderLeft=[],a.borderRight=[];for(var u=a.minRank,s=a.maxRank+1;u<s;++u)i(e,"borderLeft","_bl",t,a,u),i(e,"borderRight","_br",t,a,u)}})}},52551:function(e,n,t){"use strict";var r=t(27568);function o(e){r.forEach(e.nodes(),function(n){i(e.node(n))}),r.forEach(e.edges(),function(n){i(e.edge(n))})}function i(e){var n=e.width;e.width=e.height,e.height=n}function a(e){e.y=-e.y}function u(e){var n=e.x;e.x=e.y,e.y=n}e.exports={adjust:function(e){var n=e.graph().rankdir.toLowerCase();("lr"===n||"rl"===n)&&o(e)},undo:function(e){var n=e.graph().rankdir.toLowerCase();("bt"===n||"rl"===n)&&(r.forEach(e.nodes(),function(n){a(e.node(n))}),r.forEach(e.edges(),function(n){var t=e.edge(n);r.forEach(t.points,a),r.has(t,"y")&&a(t)})),("lr"===n||"rl"===n)&&(r.forEach(e.nodes(),function(n){u(e.node(n))}),r.forEach(e.edges(),function(n){var t=e.edge(n);r.forEach(t.points,u),r.has(t,"x")&&u(t)}),o(e))}}},65186:function(e){function n(){var e={};e._next=e._prev=e,this._sentinel=e}function t(e){e._prev._next=e._next,e._next._prev=e._prev,delete e._next,delete e._prev}function r(e,n){if("_next"!==e&&"_prev"!==e)return n}e.exports=n,n.prototype.dequeue=function(){var e=this._sentinel,n=e._prev;if(n!==e)return t(n),n},n.prototype.enqueue=function(e){var n=this._sentinel;e._prev&&e._next&&t(e),e._next=n._next,n._next._prev=e,n._next=e,e._prev=n},n.prototype.toString=function(){for(var e=[],n=this._sentinel,t=n._prev;t!==n;)e.push(JSON.stringify(t,r)),t=t._prev;return"["+e.join(", ")+"]"}},38093:function(e,n,t){var r=t(27568),o=t(51942),i=t(99043).Graph;e.exports={debugOrdering:function(e){var n=o.buildLayerMatrix(e),t=new i({compound:!0,multigraph:!0}).setGraph({});return r.forEach(e.nodes(),function(n){t.setNode(n,{label:n}),t.setParent(n,"layer"+e.node(n).rank)}),r.forEach(e.edges(),function(e){t.setEdge(e.v,e.w,{},e.name)}),r.forEach(n,function(e,n){t.setNode("layer"+n,{rank:"same"}),r.reduce(e,function(e,n){return t.setEdge(e,n,{style:"invis"}),n})}),t}}},99043:function(e,n,t){var r;try{r=t(39254)}catch(e){}r||(r=window.graphlib),e.exports=r},26238:function(e,n,t){var r=t(27568),o=t(99043).Graph,i=t(65186);e.exports=function(e,n){if(1>=e.nodeCount())return[];var t,c,d,f,h,p,v=(t=n||a,c=new o,d=0,f=0,r.forEach(e.nodes(),function(e){c.setNode(e,{v:e,in:0,out:0})}),r.forEach(e.edges(),function(e){var n=c.edge(e.v,e.w)||0,r=t(e);c.setEdge(e.v,e.w,n+r),f=Math.max(f,c.node(e.v).out+=r),d=Math.max(d,c.node(e.w).in+=r)}),h=r.range(f+d+3).map(function(){return new i}),p=d+1,r.forEach(c.nodes(),function(e){s(h,p,c.node(e))}),{graph:c,buckets:h,zeroIdx:p}),l=function(e,n,t){for(var r,o=[],i=n[n.length-1],a=n[0];e.nodeCount();){for(;r=a.dequeue();)u(e,n,t,r);for(;r=i.dequeue();)u(e,n,t,r);if(e.nodeCount()){for(var s=n.length-2;s>0;--s)if(r=n[s].dequeue()){o=o.concat(u(e,n,t,r,!0));break}}}return o}(v.graph,v.buckets,v.zeroIdx);return r.flatten(r.map(l,function(n){return e.outEdges(n.v,n.w)}),!0)};var a=r.constant(1);function u(e,n,t,o,i){var a=i?[]:void 0;return r.forEach(e.inEdges(o.v),function(r){var o=e.edge(r),u=e.node(r.v);i&&a.push({v:r.v,w:r.w}),u.out-=o,s(n,t,u)}),r.forEach(e.outEdges(o.v),function(r){var o=e.edge(r),i=r.w,a=e.node(i);a.in-=o,s(n,t,a)}),e.removeNode(o.v),a}function s(e,n,t){t.out?t.in?e[t.out-t.in+n].enqueue(t):e[e.length-1].enqueue(t):e[0].enqueue(t)}},69155:function(e,n,t){"use strict";var r=t(27568),o=t(19371),i=t(431),a=t(29102),u=t(51942).normalizeRanks,s=t(14146),c=t(51942).removeEmptyRanks,d=t(2856),f=t(30111),h=t(52551),p=t(79595),v=t(50199),l=t(51942),g=t(99043).Graph;e.exports=function(e,n){var t=n&&n.debugTiming?l.time:l.notime;t("layout",function(){var n=t(" buildLayoutGraph",function(){var n,t;return n=new g({multigraph:!0,compound:!0}),t=I(e.graph()),n.setGraph(r.merge({},y,N(t,m),r.pick(t,E))),r.forEach(e.nodes(),function(t){var o=I(e.node(t));n.setNode(t,r.defaults(N(o,w),b)),n.setParent(t,e.parent(t))}),r.forEach(e.edges(),function(t){var o=I(e.edge(t));n.setEdge(t,r.merge({},x,N(o,_),r.pick(o,k)))}),n});t(" runLayout",function(){t(" makeSpaceForEdgeLabels",function(){var e;e=n.graph(),e.ranksep/=2,r.forEach(n.edges(),function(t){var r=n.edge(t);r.minlen*=2,"c"!==r.labelpos.toLowerCase()&&("TB"===e.rankdir||"BT"===e.rankdir?r.width+=r.labeloffset:r.height+=r.labeloffset)})}),t(" removeSelfEdges",function(){r.forEach(n.edges(),function(e){if(e.v===e.w){var t=n.node(e.v);t.selfEdges||(t.selfEdges=[]),t.selfEdges.push({e:e,label:n.edge(e)}),n.removeEdge(e)}})}),t(" acyclic",function(){o.run(n)}),t(" nestingGraph.run",function(){d.run(n)}),t(" rank",function(){a(l.asNonCompoundGraph(n))}),t(" injectEdgeLabelProxies",function(){r.forEach(n.edges(),function(e){var t=n.edge(e);if(t.width&&t.height){var r=n.node(e.v),o={rank:(n.node(e.w).rank-r.rank)/2+r.rank,e:e};l.addDummyNode(n,"edge-proxy",o,"_ep")}})}),t(" removeEmptyRanks",function(){c(n)}),t(" nestingGraph.cleanup",function(){d.cleanup(n)}),t(" normalizeRanks",function(){u(n)}),t(" assignRankMinMax",function(){var e;e=0,r.forEach(n.nodes(),function(t){var o=n.node(t);o.borderTop&&(o.minRank=n.node(o.borderTop).rank,o.maxRank=n.node(o.borderBottom).rank,e=r.max(e,o.maxRank))}),n.graph().maxRank=e}),t(" removeEdgeLabelProxies",function(){r.forEach(n.nodes(),function(e){var t=n.node(e);"edge-proxy"===t.dummy&&(n.edge(t.e).labelRank=t.rank,n.removeNode(e))})}),t(" normalize.run",function(){i.run(n)}),t(" parentDummyChains",function(){s(n)}),t(" addBorderSegments",function(){f(n)}),t(" order",function(){p(n)}),t(" insertSelfEdges",function(){var e;e=l.buildLayerMatrix(n),r.forEach(e,function(e){var t=0;r.forEach(e,function(e,o){var i=n.node(e);i.order=o+t,r.forEach(i.selfEdges,function(e){l.addDummyNode(n,"selfedge",{width:e.label.width,height:e.label.height,rank:i.rank,order:o+ ++t,e:e.e,label:e.label},"_se")}),delete i.selfEdges})})}),t(" adjustCoordinateSystem",function(){h.adjust(n)}),t(" position",function(){v(n)}),t(" positionSelfEdges",function(){r.forEach(n.nodes(),function(e){var t=n.node(e);if("selfedge"===t.dummy){var r=n.node(t.e.v),o=r.x+r.width/2,i=r.y,a=t.x-o,u=r.height/2;n.setEdge(t.e,t.label),n.removeNode(e),t.label.points=[{x:o+2*a/3,y:i-u},{x:o+5*a/6,y:i-u},{x:o+a,y:i},{x:o+5*a/6,y:i+u},{x:o+2*a/3,y:i+u}],t.label.x=t.x,t.label.y=t.y}})}),t(" removeBorderNodes",function(){r.forEach(n.nodes(),function(e){if(n.children(e).length){var t=n.node(e),o=n.node(t.borderTop),i=n.node(t.borderBottom),a=n.node(r.last(t.borderLeft)),u=n.node(r.last(t.borderRight));t.width=Math.abs(u.x-a.x),t.height=Math.abs(i.y-o.y),t.x=a.x+t.width/2,t.y=o.y+t.height/2}}),r.forEach(n.nodes(),function(e){"border"===n.node(e).dummy&&n.removeNode(e)})}),t(" normalize.undo",function(){i.undo(n)}),t(" fixupEdgeLabelCoords",function(){r.forEach(n.edges(),function(e){var t=n.edge(e);if(r.has(t,"x"))switch(("l"===t.labelpos||"r"===t.labelpos)&&(t.width-=t.labeloffset),t.labelpos){case"l":t.x-=t.width/2+t.labeloffset;break;case"r":t.x+=t.width/2+t.labeloffset}})}),t(" undoCoordinateSystem",function(){h.undo(n)}),t(" translateGraph",function(){(function(e){var n=Number.POSITIVE_INFINITY,t=0,o=Number.POSITIVE_INFINITY,i=0,a=e.graph(),u=a.marginx||0,s=a.marginy||0;function c(e){var r=e.x,a=e.y,u=e.width,s=e.height;n=Math.min(n,r-u/2),t=Math.max(t,r+u/2),o=Math.min(o,a-s/2),i=Math.max(i,a+s/2)}r.forEach(e.nodes(),function(n){c(e.node(n))}),r.forEach(e.edges(),function(n){var t=e.edge(n);r.has(t,"x")&&c(t)}),n-=u,o-=s,r.forEach(e.nodes(),function(t){var r=e.node(t);r.x-=n,r.y-=o}),r.forEach(e.edges(),function(t){var i=e.edge(t);r.forEach(i.points,function(e){e.x-=n,e.y-=o}),r.has(i,"x")&&(i.x-=n),r.has(i,"y")&&(i.y-=o)}),a.width=t-n+u,a.height=i-o+s})(n)}),t(" assignNodeIntersects",function(){r.forEach(n.edges(),function(e){var t,r,o=n.edge(e),i=n.node(e.v),a=n.node(e.w);o.points?(t=o.points[0],r=o.points[o.points.length-1]):(o.points=[],t=a,r=i),o.points.unshift(l.intersectRect(i,t)),o.points.push(l.intersectRect(a,r))})}),t(" reversePoints",function(){r.forEach(n.edges(),function(e){var t=n.edge(e);t.reversed&&t.points.reverse()})}),t(" acyclic.undo",function(){o.undo(n)})}),t(" updateInputGraph",function(){r.forEach(e.nodes(),function(t){var r=e.node(t),o=n.node(t);r&&(r.x=o.x,r.y=o.y,n.children(t).length&&(r.width=o.width,r.height=o.height))}),r.forEach(e.edges(),function(t){var o=e.edge(t),i=n.edge(t);o.points=i.points,r.has(i,"x")&&(o.x=i.x,o.y=i.y)}),e.graph().width=n.graph().width,e.graph().height=n.graph().height})})};var m=["nodesep","edgesep","ranksep","marginx","marginy"],y={ranksep:50,edgesep:20,nodesep:50,rankdir:"tb"},E=["acyclicer","ranker","rankdir","align"],w=["width","height"],b={width:0,height:0},_=["minlen","weight","width","height","labeloffset"],x={minlen:1,weight:1,width:0,height:0,labeloffset:10,labelpos:"r"},k=["labelpos"];function N(e,n){return r.mapValues(r.pick(e,n),Number)}function I(e){var n={};return r.forEach(e,function(e,t){n[t.toLowerCase()]=e}),n}},27568:function(e,n,t){var r;try{r={cloneDeep:t(30454),constant:t(551),defaults:t(70236),each:t(72856),filter:t(69238),find:t(64925),flatten:t(89754),forEach:t(47003),forIn:t(3544),has:t(73915),isUndefined:t(92465),last:t(31159),map:t(55807),mapValues:t(25389),max:t(7620),merge:t(15409),min:t(14176),minBy:t(70201),now:t(82846),pick:t(14648),range:t(4215),reduce:t(34172),sortBy:t(95099),uniqueId:t(46854),values:t(58185),zipObject:t(11775)}}catch(e){}r||(r=window._),e.exports=r},2856:function(e,n,t){var r=t(27568),o=t(51942);e.exports={run:function(e){var n,t=o.addDummyNode(e,"root",{},"_root"),i=(n={},r.forEach(e.children(),function(t){!function t(o,i){var a=e.children(o);a&&a.length&&r.forEach(a,function(e){t(e,i+1)}),n[o]=i}(t,1)}),n),a=r.max(r.values(i))-1,u=2*a+1;e.graph().nestingRoot=t,r.forEach(e.edges(),function(n){e.edge(n).minlen*=u});var s=r.reduce(e.edges(),function(n,t){return n+e.edge(t).weight},0)+1;r.forEach(e.children(),function(n){(function e(n,t,i,a,u,s,c){var d=n.children(c);if(!d.length){c!==t&&n.setEdge(t,c,{weight:0,minlen:i});return}var f=o.addBorderNode(n,"_bt"),h=o.addBorderNode(n,"_bb"),p=n.node(c);n.setParent(f,c),p.borderTop=f,n.setParent(h,c),p.borderBottom=h,r.forEach(d,function(r){e(n,t,i,a,u,s,r);var o=n.node(r),d=o.borderTop?o.borderTop:r,p=o.borderBottom?o.borderBottom:r,v=o.borderTop?a:2*a,l=d!==p?1:u-s[c]+1;n.setEdge(f,d,{weight:v,minlen:l,nestingEdge:!0}),n.setEdge(p,h,{weight:v,minlen:l,nestingEdge:!0})}),n.parent(c)||n.setEdge(t,f,{weight:0,minlen:u+s[c]})})(e,t,u,s,a,i,n)}),e.graph().nodeRankFactor=u},cleanup:function(e){var n=e.graph();e.removeNode(n.nestingRoot),delete n.nestingRoot,r.forEach(e.edges(),function(n){e.edge(n).nestingEdge&&e.removeEdge(n)})}}},431:function(e,n,t){"use strict";var r=t(27568),o=t(51942);e.exports={run:function(e){e.graph().dummyChains=[],r.forEach(e.edges(),function(n){(function(e,n){var t,r,i,a=n.v,u=e.node(a).rank,s=n.w,c=e.node(s).rank,d=n.name,f=e.edge(n),h=f.labelRank;if(c!==u+1){for(e.removeEdge(n),i=0,++u;u<c;++i,++u)f.points=[],r={width:0,height:0,edgeLabel:f,edgeObj:n,rank:u},t=o.addDummyNode(e,"edge",r,"_d"),u===h&&(r.width=f.width,r.height=f.height,r.dummy="edge-label",r.labelpos=f.labelpos),e.setEdge(a,t,{weight:f.weight},d),0===i&&e.graph().dummyChains.push(t),a=t;e.setEdge(a,s,{weight:f.weight},d)}})(e,n)})},undo:function(e){r.forEach(e.graph().dummyChains,function(n){var t,r=e.node(n),o=r.edgeLabel;for(e.setEdge(r.edgeObj,o);r.dummy;)t=e.successors(n)[0],e.removeNode(n),o.points.push({x:r.x,y:r.y}),"edge-label"===r.dummy&&(o.x=r.x,o.y=r.y,o.width=r.width,o.height=r.height),n=t,r=e.node(n)})}}},74671:function(e,n,t){var r=t(27568);e.exports=function(e,n,t){var o,i={};r.forEach(t,function(t){for(var r,a,u=e.parent(t);u;){if((r=e.parent(u))?(a=i[r],i[r]=u):(a=o,o=u),a&&a!==u){n.setEdge(a,u);return}u=r}})}},18346:function(e,n,t){var r=t(27568);e.exports=function(e,n){return r.map(n,function(n){var t=e.inEdges(n);if(!t.length)return{v:n};var o=r.reduce(t,function(n,t){var r=e.edge(t),o=e.node(t.v);return{sum:n.sum+r.weight*o.order,weight:n.weight+r.weight}},{sum:0,weight:0});return{v:n,barycenter:o.sum/o.weight,weight:o.weight}})}},46901:function(e,n,t){var r=t(27568),o=t(99043).Graph;e.exports=function(e,n,t){var i=function(e){for(var n;e.hasNode(n=r.uniqueId("_root")););return n}(e),a=new o({compound:!0}).setGraph({root:i}).setDefaultNodeLabel(function(n){return e.node(n)});return r.forEach(e.nodes(),function(o){var u=e.node(o),s=e.parent(o);(u.rank===n||u.minRank<=n&&n<=u.maxRank)&&(a.setNode(o),a.setParent(o,s||i),r.forEach(e[t](o),function(n){var t=n.v===o?n.w:n.v,i=a.edge(t,o),u=r.isUndefined(i)?0:i.weight;a.setEdge(t,o,{weight:e.edge(n).weight+u})}),r.has(u,"minRank")&&a.setNode(o,{borderLeft:u.borderLeft[n],borderRight:u.borderRight[n]}))}),a}},27525:function(e,n,t){"use strict";var r=t(27568);e.exports=function(e,n){for(var t=0,o=1;o<n.length;++o)t+=function(e,n,t){for(var o=r.zipObject(t,r.map(t,function(e,n){return n})),i=r.flatten(r.map(n,function(n){return r.sortBy(r.map(e.outEdges(n),function(n){return{pos:o[n.w],weight:e.edge(n).weight}}),"pos")}),!0),a=1;a<t.length;)a<<=1;var u=2*a-1;a-=1;var s=r.map(Array(u),function(){return 0}),c=0;return r.forEach(i.forEach(function(e){var n=e.pos+a;s[n]+=e.weight;for(var t=0;n>0;)n%2&&(t+=s[n+1]),n=n-1>>1,s[n]+=e.weight;c+=e.weight*t})),c}(e,n[o-1],n[o]);return t}},79595:function(e,n,t){"use strict";var r=t(27568),o=t(35037),i=t(27525),a=t(60066),u=t(46901),s=t(74671),c=t(99043).Graph,d=t(51942);function f(e,n,t){return r.map(n,function(n){return u(e,n,t)})}function h(e,n){r.forEach(n,function(n){r.forEach(n,function(n,t){e.node(n).order=t})})}e.exports=function(e){var n=d.maxRank(e),t=f(e,r.range(1,n+1),"inEdges"),u=f(e,r.range(n-1,-1,-1),"outEdges"),p=o(e);h(e,p);for(var v,l=Number.POSITIVE_INFINITY,g=0,m=0;m<4;++g,++m){(function(e,n){var t=new c;r.forEach(e,function(e){var o=e.graph().root,i=a(e,o,t,n);r.forEach(i.vs,function(n,t){e.node(n).order=t}),s(e,t,i.vs)})})(g%2?t:u,g%4>=2),p=d.buildLayerMatrix(e);var y=i(e,p);y<l&&(m=0,v=r.cloneDeep(p),l=y)}h(e,v)}},35037:function(e,n,t){"use strict";var r=t(27568);e.exports=function(e){var n={},t=r.filter(e.nodes(),function(n){return!e.children(n).length}),o=r.max(r.map(t,function(n){return e.node(n).rank})),i=r.map(r.range(o+1),function(){return[]}),a=r.sortBy(t,function(n){return e.node(n).rank});return r.forEach(a,function t(o){r.has(n,o)||(n[o]=!0,i[e.node(o).rank].push(o),r.forEach(e.successors(o),t))}),i}},64873:function(e,n,t){"use strict";var r=t(27568);e.exports=function(e,n){var t={};return r.forEach(e,function(e,n){var o=t[e.v]={indegree:0,in:[],out:[],vs:[e.v],i:n};r.isUndefined(e.barycenter)||(o.barycenter=e.barycenter,o.weight=e.weight)}),r.forEach(n.edges(),function(e){var n=t[e.v],o=t[e.w];r.isUndefined(n)||r.isUndefined(o)||(o.indegree++,n.out.push(t[e.w]))}),function(e){for(var n=[];e.length;){var t=e.pop();n.push(t),r.forEach(t.in.reverse(),function(e){return function(n){!n.merged&&(r.isUndefined(n.barycenter)||r.isUndefined(e.barycenter)||n.barycenter>=e.barycenter)&&function(e,n){var t=0,r=0;e.weight&&(t+=e.barycenter*e.weight,r+=e.weight),n.weight&&(t+=n.barycenter*n.weight,r+=n.weight),e.vs=n.vs.concat(e.vs),e.barycenter=t/r,e.weight=r,e.i=Math.min(n.i,e.i),n.merged=!0}(e,n)}}(t)),r.forEach(t.out,function(n){return function(t){t.in.push(n),0==--t.indegree&&e.push(t)}}(t))}return r.map(r.filter(n,function(e){return!e.merged}),function(e){return r.pick(e,["vs","i","barycenter","weight"])})}(r.filter(t,function(e){return!e.indegree}))}},60066:function(e,n,t){var r=t(27568),o=t(18346),i=t(64873),a=t(22474);e.exports=function e(n,t,u,s){var c=n.children(t),d=n.node(t),f=d?d.borderLeft:void 0,h=d?d.borderRight:void 0,p={};f&&(c=r.filter(c,function(e){return e!==f&&e!==h}));var v=o(n,c);r.forEach(v,function(t){if(n.children(t.v).length){var o=e(n,t.v,u,s);p[t.v]=o,r.has(o,"barycenter")&&(r.isUndefined(t.barycenter)?(t.barycenter=o.barycenter,t.weight=o.weight):(t.barycenter=(t.barycenter*t.weight+o.barycenter*o.weight)/(t.weight+o.weight),t.weight+=o.weight))}});var l=i(v,u);r.forEach(l,function(e){e.vs=r.flatten(e.vs.map(function(e){return p[e]?p[e].vs:e}),!0)});var g=a(l,s);if(f&&(g.vs=r.flatten([f,g.vs,h],!0),n.predecessors(f).length)){var m=n.node(n.predecessors(f)[0]),y=n.node(n.predecessors(h)[0]);r.has(g,"barycenter")||(g.barycenter=0,g.weight=0),g.barycenter=(g.barycenter*g.weight+m.order+y.order)/(g.weight+2),g.weight+=2}return g}},22474:function(e,n,t){var r=t(27568),o=t(51942);function i(e,n,t){for(var o;n.length&&(o=r.last(n)).i<=t;)n.pop(),e.push(o.vs),t++;return t}e.exports=function(e,n){var t,a=o.partition(e,function(e){return r.has(e,"barycenter")}),u=a.lhs,s=r.sortBy(a.rhs,function(e){return-e.i}),c=[],d=0,f=0,h=0;u.sort((t=!!n,function(e,n){return e.barycenter<n.barycenter?-1:e.barycenter>n.barycenter?1:t?n.i-e.i:e.i-n.i})),h=i(c,s,h),r.forEach(u,function(e){h+=e.vs.length,c.push(e.vs),d+=e.barycenter*e.weight,f+=e.weight,h=i(c,s,h)});var p={vs:r.flatten(c,!0)};return f&&(p.barycenter=d/f,p.weight=f),p}},14146:function(e,n,t){var r=t(27568);e.exports=function(e){var n,t,o=(n={},t=0,r.forEach(e.children(),function o(i){var a=t;r.forEach(e.children(i),o),n[i]={low:a,lim:t++}}),n);r.forEach(e.graph().dummyChains,function(n){for(var t=e.node(n),r=t.edgeObj,i=function(e,n,t,r){var o,i,a=[],u=[],s=Math.min(n[t].low,n[r].low),c=Math.max(n[t].lim,n[r].lim);o=t;do a.push(o=e.parent(o));while(o&&(n[o].low>s||c>n[o].lim));for(i=o,o=r;(o=e.parent(o))!==i;)u.push(o);return{path:a.concat(u.reverse()),lca:i}}(e,o,r.v,r.w),a=i.path,u=i.lca,s=0,c=a[0],d=!0;n!==r.w;){if(t=e.node(n),d){for(;(c=a[s])!==u&&e.node(c).maxRank<t.rank;)s++;c===u&&(d=!1)}if(!d){for(;s<a.length-1&&e.node(c=a[s+1]).minRank<=t.rank;)s++;c=a[s]}e.setParent(n,c),n=e.successors(n)[0]}})}},31867:function(e,n,t){"use strict";var r=t(27568),o=t(99043).Graph,i=t(51942);function a(e,n){var t={};return r.reduce(n,function(n,o){var i=0,a=0,u=n.length,c=r.last(o);return r.forEach(o,function(n,d){var f=function(e,n){if(e.node(n).dummy)return r.find(e.predecessors(n),function(n){return e.node(n).dummy})}(e,n),h=f?e.node(f).order:u;(f||n===c)&&(r.forEach(o.slice(a,d+1),function(n){r.forEach(e.predecessors(n),function(r){var o=e.node(r),a=o.order;(a<i||h<a)&&!(o.dummy&&e.node(n).dummy)&&s(t,r,n)})}),a=d+1,i=h)}),o}),t}function u(e,n){var t={};function o(n,o,i,a,u){var c;r.forEach(r.range(o,i),function(o){c=n[o],e.node(c).dummy&&r.forEach(e.predecessors(c),function(n){var r=e.node(n);r.dummy&&(r.order<a||r.order>u)&&s(t,n,c)})})}return r.reduce(n,function(n,t){var i,a=-1,u=0;return r.forEach(t,function(r,s){if("border"===e.node(r).dummy){var c=e.predecessors(r);c.length&&(i=e.node(c[0]).order,o(t,u,s,a,i),u=s,a=i)}o(t,u,t.length,i,n.length)}),t}),t}function s(e,n,t){if(n>t){var r=n;n=t,t=r}var o=e[n];o||(e[n]=o={}),o[t]=!0}function c(e,n,t){if(n>t){var o=n;n=t,t=o}return r.has(e[n],t)}function d(e,n,t,o){var i={},a={},u={};return r.forEach(n,function(e){r.forEach(e,function(e,n){i[e]=e,a[e]=e,u[e]=n})}),r.forEach(n,function(e){var n=-1;r.forEach(e,function(e){var s=o(e);if(s.length)for(var d=((s=r.sortBy(s,function(e){return u[e]})).length-1)/2,f=Math.floor(d),h=Math.ceil(d);f<=h;++f){var p=s[f];a[e]===e&&n<u[p]&&!c(t,e,p)&&(a[p]=e,a[e]=i[e]=i[p],n=u[p])}})}),{root:i,align:a}}function f(e,n,t,i,a){var u,s,c,d,f,h={},p=(c=new o,u=(d=e.graph()).nodesep,s=d.edgesep,f=function(e,n,t){var o,i,c=e.node(n),d=e.node(t);if(o=0+c.width/2,r.has(c,"labelpos"))switch(c.labelpos.toLowerCase()){case"l":i=-c.width/2;break;case"r":i=c.width/2}if(i&&(o+=a?i:-i),i=0,o+=(c.dummy?s:u)/2+(d.dummy?s:u)/2+d.width/2,r.has(d,"labelpos"))switch(d.labelpos.toLowerCase()){case"l":i=d.width/2;break;case"r":i=-d.width/2}return i&&(o+=a?i:-i),i=0,o},r.forEach(n,function(n){var o;r.forEach(n,function(n){var r=t[n];if(c.setNode(r),o){var i=t[o],a=c.edge(i,r);c.setEdge(i,r,Math.max(f(e,n,o),a||0))}o=n})}),c),v=a?"borderLeft":"borderRight";function l(e,n){for(var t=p.nodes(),r=t.pop(),o={};r;)o[r]?e(r):(o[r]=!0,t.push(r),t=t.concat(n(r))),r=t.pop()}return l(function(e){h[e]=p.inEdges(e).reduce(function(e,n){return Math.max(e,h[n.v]+p.edge(n))},0)},p.predecessors.bind(p)),l(function(n){var t=p.outEdges(n).reduce(function(e,n){return Math.min(e,h[n.w]-p.edge(n))},Number.POSITIVE_INFINITY),r=e.node(n);t!==Number.POSITIVE_INFINITY&&r.borderType!==v&&(h[n]=Math.max(h[n],t))},p.successors.bind(p)),r.forEach(i,function(e){h[e]=h[t[e]]}),h}function h(e,n){return r.minBy(r.values(n),function(n){var t=Number.NEGATIVE_INFINITY,o=Number.POSITIVE_INFINITY;return r.forIn(n,function(n,r){var i=e.node(r).width/2;t=Math.max(n+i,t),o=Math.min(n-i,o)}),t-o})}function p(e,n){var t=r.values(n),o=r.min(t),i=r.max(t);r.forEach(["u","d"],function(t){r.forEach(["l","r"],function(a){var u,s=t+a,c=e[s];if(c!==n){var d=r.values(c);(u="l"===a?o-r.min(d):i-r.max(d))&&(e[s]=r.mapValues(c,function(e){return e+u}))}})})}function v(e,n){return r.mapValues(e.ul,function(t,o){if(n)return e[n.toLowerCase()][o];var i=r.sortBy(r.map(e,o));return(i[1]+i[2])/2})}e.exports={positionX:function(e){var n,t=i.buildLayerMatrix(e),o=r.merge(a(e,t),u(e,t)),s={};r.forEach(["u","d"],function(i){n="u"===i?t:r.values(t).reverse(),r.forEach(["l","r"],function(t){"r"===t&&(n=r.map(n,function(e){return r.values(e).reverse()}));var a=("u"===i?e.predecessors:e.successors).bind(e),u=d(e,n,o,a),c=f(e,n,u.root,u.align,"r"===t);"r"===t&&(c=r.mapValues(c,function(e){return-e})),s[i+t]=c})});var c=h(e,s);return p(s,c),v(s,e.graph().align)},findType1Conflicts:a,findType2Conflicts:u,addConflict:s,hasConflict:c,verticalAlignment:d,horizontalCompaction:f,alignCoordinates:p,findSmallestWidthAlignment:h,balance:v}},50199:function(e,n,t){"use strict";var r=t(27568),o=t(51942),i=t(31867).positionX;e.exports=function(e){var n,t,a,u;n=e=o.asNonCompoundGraph(e),t=o.buildLayerMatrix(n),a=n.graph().ranksep,u=0,r.forEach(t,function(e){var t=r.max(r.map(e,function(e){return n.node(e).height}));r.forEach(e,function(e){n.node(e).y=u+t/2}),u+=t+a}),r.forEach(i(e),function(n,t){e.node(t).x=n})}},7589:function(e,n,t){"use strict";var r=t(27568),o=t(99043).Graph,i=t(51512).slack;e.exports=function(e){var n,t,a=new o({directed:!1}),u=e.nodes()[0],s=e.nodeCount();for(a.setNode(u,{});r.forEach(a.nodes(),function n(t){r.forEach(e.nodeEdges(t),function(r){var o=r.v,u=t===o?r.w:o;a.hasNode(u)||i(e,r)||(a.setNode(u,{}),a.setEdge(t,u,{}),n(u))})}),a.nodeCount()<s;)n=function(e,n){return r.minBy(n.edges(),function(t){if(e.hasNode(t.v)!==e.hasNode(t.w))return i(n,t)})}(a,e),t=a.hasNode(n.v)?i(e,n):-i(e,n),function(e,n,t){r.forEach(e.nodes(),function(e){n.node(e).rank+=t})}(a,e,t);return a}},29102:function(e,n,t){"use strict";var r=t(51512).longestPath,o=t(7589),i=t(95823);e.exports=function(e){switch(e.graph().ranker){case"network-simplex":default:i(e);break;case"tight-tree":r(e),o(e);break;case"longest-path":a(e)}};var a=r},95823:function(e,n,t){"use strict";var r=t(27568),o=t(7589),i=t(51512).slack,a=t(51512).longestPath,u=t(99043).alg.preorder,s=t(99043).alg.postorder,c=t(51942).simplify;function d(e){a(e=c(e));var n,t,r=o(e);for(p(r),f(r,e);n=v(r);)t=l(r,e,n),g(r,e,n,t)}function f(e,n){var t=s(e,e.nodes());t=t.slice(0,t.length-1),r.forEach(t,function(t){var r;r=e.node(t).parent,e.edge(t,r).cutvalue=h(e,n,t)})}function h(e,n,t){var o=e.node(t).parent,i=!0,a=n.edge(t,o),u=0;return a||(i=!1,a=n.edge(o,t)),u=a.weight,r.forEach(n.nodeEdges(t),function(r){var a=r.v===t,s=a?r.w:r.v;if(s!==o){var c=a===i,d=n.edge(r).weight;if(u+=c?d:-d,e.hasEdge(t,s)){var f=e.edge(t,s).cutvalue;u+=c?-f:f}}}),u}function p(e,n){arguments.length<2&&(n=e.nodes()[0]),function e(n,t,o,i,a){var u=o,s=n.node(i);return t[i]=!0,r.forEach(n.neighbors(i),function(a){r.has(t,a)||(o=e(n,t,o,a,i))}),s.low=u,s.lim=o++,a?s.parent=a:delete s.parent,o}(e,{},1,n)}function v(e){return r.find(e.edges(),function(n){return e.edge(n).cutvalue<0})}function l(e,n,t){var o=t.v,a=t.w;n.hasEdge(o,a)||(o=t.w,a=t.v);var u=e.node(o),s=e.node(a),c=u,d=!1;u.lim>s.lim&&(c=s,d=!0);var f=r.filter(n.edges(),function(n){return d===m(e,e.node(n.v),c)&&d!==m(e,e.node(n.w),c)});return r.minBy(f,function(e){return i(n,e)})}function g(e,n,t,o){var i,a,s=t.v,c=t.w;e.removeEdge(s,c),e.setEdge(o.v,o.w,{}),p(e),f(e,n),i=r.find(e.nodes(),function(e){return!n.node(e).parent}),a=(a=u(e,i)).slice(1),r.forEach(a,function(t){var r=e.node(t).parent,o=n.edge(t,r),i=!1;o||(o=n.edge(r,t),i=!0),n.node(t).rank=n.node(r).rank+(i?o.minlen:-o.minlen)})}function m(e,n,t){return t.low<=n.lim&&n.lim<=t.lim}e.exports=d,d.initLowLimValues=p,d.initCutValues=f,d.calcCutValue=h,d.leaveEdge=v,d.enterEdge=l,d.exchangeEdges=g},51512:function(e,n,t){"use strict";var r=t(27568);e.exports={longestPath:function(e){var n={};r.forEach(e.sources(),function t(o){var i=e.node(o);if(r.has(n,o))return i.rank;n[o]=!0;var a=r.min(r.map(e.outEdges(o),function(n){return t(n.w)-e.edge(n).minlen}));return(a===Number.POSITIVE_INFINITY||null==a)&&(a=0),i.rank=a})},slack:function(e,n){return e.node(n.w).rank-e.node(n.v).rank-e.edge(n).minlen}}},51942:function(e,n,t){"use strict";var r=t(27568),o=t(99043).Graph;function i(e,n,t,o){var i;do i=r.uniqueId(o);while(e.hasNode(i));return t.dummy=n,e.setNode(i,t),i}function a(e){return r.max(r.map(e.nodes(),function(n){var t=e.node(n).rank;if(!r.isUndefined(t))return t}))}e.exports={addDummyNode:i,simplify:function(e){var n=new o().setGraph(e.graph());return r.forEach(e.nodes(),function(t){n.setNode(t,e.node(t))}),r.forEach(e.edges(),function(t){var r=n.edge(t.v,t.w)||{weight:0,minlen:1},o=e.edge(t);n.setEdge(t.v,t.w,{weight:r.weight+o.weight,minlen:Math.max(r.minlen,o.minlen)})}),n},asNonCompoundGraph:function(e){var n=new o({multigraph:e.isMultigraph()}).setGraph(e.graph());return r.forEach(e.nodes(),function(t){e.children(t).length||n.setNode(t,e.node(t))}),r.forEach(e.edges(),function(t){n.setEdge(t,e.edge(t))}),n},successorWeights:function(e){var n=r.map(e.nodes(),function(n){var t={};return r.forEach(e.outEdges(n),function(n){t[n.w]=(t[n.w]||0)+e.edge(n).weight}),t});return r.zipObject(e.nodes(),n)},predecessorWeights:function(e){var n=r.map(e.nodes(),function(n){var t={};return r.forEach(e.inEdges(n),function(n){t[n.v]=(t[n.v]||0)+e.edge(n).weight}),t});return r.zipObject(e.nodes(),n)},intersectRect:function(e,n){var t,r,o=e.x,i=e.y,a=n.x-o,u=n.y-i,s=e.width/2,c=e.height/2;if(!a&&!u)throw Error("Not possible to find intersection inside of the rectangle");return Math.abs(u)*s>Math.abs(a)*c?(u<0&&(c=-c),t=c*a/u,r=c):(a<0&&(s=-s),t=s,r=s*u/a),{x:o+t,y:i+r}},buildLayerMatrix:function(e){var n=r.map(r.range(a(e)+1),function(){return[]});return r.forEach(e.nodes(),function(t){var o=e.node(t),i=o.rank;r.isUndefined(i)||(n[i][o.order]=t)}),n},normalizeRanks:function(e){var n=r.min(r.map(e.nodes(),function(n){return e.node(n).rank}));r.forEach(e.nodes(),function(t){var o=e.node(t);r.has(o,"rank")&&(o.rank-=n)})},removeEmptyRanks:function(e){var n=r.min(r.map(e.nodes(),function(n){return e.node(n).rank})),t=[];r.forEach(e.nodes(),function(r){var o=e.node(r).rank-n;t[o]||(t[o]=[]),t[o].push(r)});var o=0,i=e.graph().nodeRankFactor;r.forEach(t,function(n,t){r.isUndefined(n)&&t%i!=0?--o:o&&r.forEach(n,function(n){e.node(n).rank+=o})})},addBorderNode:function(e,n,t,r){var o={width:0,height:0};return arguments.length>=4&&(o.rank=t,o.order=r),i(e,"border",o,n)},maxRank:a,partition:function(e,n){var t={lhs:[],rhs:[]};return r.forEach(e,function(e){n(e)?t.lhs.push(e):t.rhs.push(e)}),t},time:function(e,n){var t=r.now();try{return n()}finally{console.log(e+" time: "+(r.now()-t)+"ms")}},notime:function(e,n){return n()}}},50665:function(e){e.exports="0.8.5"},39254:function(e,n,t){var r=t(44020);e.exports={Graph:r.Graph,json:t(89063),alg:t(2757),version:r.version}},47205:function(e,n,t){var r=t(43329);e.exports=function(e){var n,t={},o=[];return r.each(e.nodes(),function(i){n=[],function o(i){r.has(t,i)||(t[i]=!0,n.push(i),r.each(e.successors(i),o),r.each(e.predecessors(i),o))}(i),n.length&&o.push(n)}),o}},56658:function(e,n,t){var r=t(43329);e.exports=function(e,n,t){r.isArray(n)||(n=[n]);var o=(e.isDirected()?e.successors:e.neighbors).bind(e),i=[],a={};return r.each(n,function(n){if(!e.hasNode(n))throw Error("Graph does not have node: "+n);(function e(n,t,o,i,a,u){!r.has(i,t)&&(i[t]=!0,o||u.push(t),r.each(a(t),function(t){e(n,t,o,i,a,u)}),o&&u.push(t))})(e,n,"post"===t,a,o,i)}),i}},35852:function(e,n,t){var r=t(47470),o=t(43329);e.exports=function(e,n,t){return o.transform(e.nodes(),function(o,i){o[i]=r(e,i,n,t)},{})}},47470:function(e,n,t){var r=t(43329),o=t(35472);e.exports=function(e,n,t,r){return function(e,n,t,r){var i,a,u={},s=new o,c=function(e){var n=e.v!==i?e.v:e.w,r=u[n],o=t(e),c=a.distance+o;if(o<0)throw Error("dijkstra does not allow negative edge weights. Bad edge: "+e+" Weight: "+o);c<r.distance&&(r.distance=c,r.predecessor=i,s.decrease(n,c))};for(e.nodes().forEach(function(e){var t=e===n?0:Number.POSITIVE_INFINITY;u[e]={distance:t},s.add(e,t)});s.size()>0&&(a=u[i=s.removeMin()]).distance!==Number.POSITIVE_INFINITY;)r(i).forEach(c);return u}(e,String(n),t||i,r||function(n){return e.outEdges(n)})};var i=r.constant(1)},40641:function(e,n,t){var r=t(43329),o=t(45379);e.exports=function(e){return r.filter(o(e),function(n){return n.length>1||1===n.length&&e.hasEdge(n[0],n[0])})}},13917:function(e,n,t){var r=t(43329);e.exports=function(e,n,t){var r,i,a,u;return r=n||o,i=t||function(n){return e.outEdges(n)},a={},(u=e.nodes()).forEach(function(e){a[e]={},a[e][e]={distance:0},u.forEach(function(n){e!==n&&(a[e][n]={distance:Number.POSITIVE_INFINITY})}),i(e).forEach(function(n){var t=n.v===e?n.w:n.v,o=r(n);a[e][t]={distance:o,predecessor:e}})}),u.forEach(function(e){var n=a[e];u.forEach(function(t){var r=a[t];u.forEach(function(t){var o=r[e],i=n[t],a=r[t],u=o.distance+i.distance;u<a.distance&&(a.distance=u,a.predecessor=i.predecessor)})})}),a};var o=r.constant(1)},2757:function(e,n,t){e.exports={components:t(47205),dijkstra:t(47470),dijkstraAll:t(35852),findCycles:t(40641),floydWarshall:t(13917),isAcyclic:t(66069),postorder:t(49444),preorder:t(54911),prim:t(73873),tarjan:t(45379),topsort:t(85954)}},66069:function(e,n,t){var r=t(85954);e.exports=function(e){try{r(e)}catch(e){if(e instanceof r.CycleException)return!1;throw e}return!0}},49444:function(e,n,t){var r=t(56658);e.exports=function(e,n){return r(e,n,"post")}},54911:function(e,n,t){var r=t(56658);e.exports=function(e,n){return r(e,n,"pre")}},73873:function(e,n,t){var r=t(43329),o=t(14015),i=t(35472);e.exports=function(e,n){var t,a=new o,u={},s=new i;function c(e){var r=e.v===t?e.w:e.v,o=s.priority(r);if(void 0!==o){var i=n(e);i<o&&(u[r]=t,s.decrease(r,i))}}if(0===e.nodeCount())return a;r.each(e.nodes(),function(e){s.add(e,Number.POSITIVE_INFINITY),a.setNode(e)}),s.decrease(e.nodes()[0],0);for(var d=!1;s.size()>0;){if(t=s.removeMin(),r.has(u,t))a.setEdge(t,u[t]);else if(d)throw Error("Input graph is not connected: "+e);else d=!0;e.nodeEdges(t).forEach(c)}return a}},45379:function(e,n,t){var r=t(43329);e.exports=function(e){var n=0,t=[],o={},i=[];return e.nodes().forEach(function(a){r.has(o,a)||function a(u){var s=o[u]={onStack:!0,lowlink:n,index:n++};if(t.push(u),e.successors(u).forEach(function(e){r.has(o,e)?o[e].onStack&&(s.lowlink=Math.min(s.lowlink,o[e].index)):(a(e),s.lowlink=Math.min(s.lowlink,o[e].lowlink))}),s.lowlink===s.index){var c,d=[];do o[c=t.pop()].onStack=!1,d.push(c);while(u!==c);i.push(d)}}(a)}),i}},85954:function(e,n,t){var r=t(43329);function o(e){var n={},t={},o=[];if(r.each(e.sinks(),function a(u){if(r.has(t,u))throw new i;r.has(n,u)||(t[u]=!0,n[u]=!0,r.each(e.predecessors(u),a),delete t[u],o.push(u))}),r.size(n)!==e.nodeCount())throw new i;return o}function i(){}e.exports=o,o.CycleException=i,i.prototype=Error()},35472:function(e,n,t){var r=t(43329);function o(){this._arr=[],this._keyIndices={}}e.exports=o,o.prototype.size=function(){return this._arr.length},o.prototype.keys=function(){return this._arr.map(function(e){return e.key})},o.prototype.has=function(e){return r.has(this._keyIndices,e)},o.prototype.priority=function(e){var n=this._keyIndices[e];if(void 0!==n)return this._arr[n].priority},o.prototype.min=function(){if(0===this.size())throw Error("Queue underflow");return this._arr[0].key},o.prototype.add=function(e,n){var t=this._keyIndices;if(e=String(e),!r.has(t,e)){var o=this._arr,i=o.length;return t[e]=i,o.push({key:e,priority:n}),this._decrease(i),!0}return!1},o.prototype.removeMin=function(){this._swap(0,this._arr.length-1);var e=this._arr.pop();return delete this._keyIndices[e.key],this._heapify(0),e.key},o.prototype.decrease=function(e,n){var t=this._keyIndices[e];if(n>this._arr[t].priority)throw Error("New priority is greater than current priority. Key: "+e+" Old: "+this._arr[t].priority+" New: "+n);this._arr[t].priority=n,this._decrease(t)},o.prototype._heapify=function(e){var n=this._arr,t=2*e,r=t+1,o=e;t<n.length&&(o=n[t].priority<n[o].priority?t:o,r<n.length&&(o=n[r].priority<n[o].priority?r:o),o!==e&&(this._swap(e,o),this._heapify(o)))},o.prototype._decrease=function(e){for(var n,t=this._arr,r=t[e].priority;0!==e&&!(t[n=e>>1].priority<r);)this._swap(e,n),e=n},o.prototype._swap=function(e,n){var t=this._arr,r=this._keyIndices,o=t[e],i=t[n];t[e]=i,t[n]=o,r[i.key]=e,r[o.key]=n}},14015:function(e,n,t){"use strict";var r=t(43329);function o(e){this._isDirected=!r.has(e,"directed")||e.directed,this._isMultigraph=!!r.has(e,"multigraph")&&e.multigraph,this._isCompound=!!r.has(e,"compound")&&e.compound,this._label=void 0,this._defaultNodeLabelFn=r.constant(void 0),this._defaultEdgeLabelFn=r.constant(void 0),this._nodes={},this._isCompound&&(this._parent={},this._children={},this._children["\0"]={}),this._in={},this._preds={},this._out={},this._sucs={},this._edgeObjs={},this._edgeLabels={}}function i(e,n){e[n]?e[n]++:e[n]=1}function a(e,n){--e[n]||delete e[n]}function u(e,n,t,o){var i=""+n,a=""+t;if(!e&&i>a){var u=i;i=a,a=u}return i+"\x01"+a+"\x01"+(r.isUndefined(o)?"\0":o)}function s(e,n){return u(e,n.v,n.w,n.name)}e.exports=o,o.prototype._nodeCount=0,o.prototype._edgeCount=0,o.prototype.isDirected=function(){return this._isDirected},o.prototype.isMultigraph=function(){return this._isMultigraph},o.prototype.isCompound=function(){return this._isCompound},o.prototype.setGraph=function(e){return this._label=e,this},o.prototype.graph=function(){return this._label},o.prototype.setDefaultNodeLabel=function(e){return r.isFunction(e)||(e=r.constant(e)),this._defaultNodeLabelFn=e,this},o.prototype.nodeCount=function(){return this._nodeCount},o.prototype.nodes=function(){return r.keys(this._nodes)},o.prototype.sources=function(){var e=this;return r.filter(this.nodes(),function(n){return r.isEmpty(e._in[n])})},o.prototype.sinks=function(){var e=this;return r.filter(this.nodes(),function(n){return r.isEmpty(e._out[n])})},o.prototype.setNodes=function(e,n){var t=arguments,o=this;return r.each(e,function(e){t.length>1?o.setNode(e,n):o.setNode(e)}),this},o.prototype.setNode=function(e,n){return r.has(this._nodes,e)?arguments.length>1&&(this._nodes[e]=n):(this._nodes[e]=arguments.length>1?n:this._defaultNodeLabelFn(e),this._isCompound&&(this._parent[e]="\0",this._children[e]={},this._children["\0"][e]=!0),this._in[e]={},this._preds[e]={},this._out[e]={},this._sucs[e]={},++this._nodeCount),this},o.prototype.node=function(e){return this._nodes[e]},o.prototype.hasNode=function(e){return r.has(this._nodes,e)},o.prototype.removeNode=function(e){var n=this;if(r.has(this._nodes,e)){var t=function(e){n.removeEdge(n._edgeObjs[e])};delete this._nodes[e],this._isCompound&&(this._removeFromParentsChildList(e),delete this._parent[e],r.each(this.children(e),function(e){n.setParent(e)}),delete this._children[e]),r.each(r.keys(this._in[e]),t),delete this._in[e],delete this._preds[e],r.each(r.keys(this._out[e]),t),delete this._out[e],delete this._sucs[e],--this._nodeCount}return this},o.prototype.setParent=function(e,n){if(!this._isCompound)throw Error("Cannot set parent in a non-compound graph");if(r.isUndefined(n))n="\0";else{n+="";for(var t=n;!r.isUndefined(t);t=this.parent(t))if(t===e)throw Error("Setting "+n+" as parent of "+e+" would create a cycle");this.setNode(n)}return this.setNode(e),this._removeFromParentsChildList(e),this._parent[e]=n,this._children[n][e]=!0,this},o.prototype._removeFromParentsChildList=function(e){delete this._children[this._parent[e]][e]},o.prototype.parent=function(e){if(this._isCompound){var n=this._parent[e];if("\0"!==n)return n}},o.prototype.children=function(e){if(r.isUndefined(e)&&(e="\0"),this._isCompound){var n=this._children[e];if(n)return r.keys(n)}else if("\0"===e)return this.nodes();else if(this.hasNode(e))return[]},o.prototype.predecessors=function(e){var n=this._preds[e];if(n)return r.keys(n)},o.prototype.successors=function(e){var n=this._sucs[e];if(n)return r.keys(n)},o.prototype.neighbors=function(e){var n=this.predecessors(e);if(n)return r.union(n,this.successors(e))},o.prototype.isLeaf=function(e){return 0===(this.isDirected()?this.successors(e):this.neighbors(e)).length},o.prototype.filterNodes=function(e){var n=new this.constructor({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound});n.setGraph(this.graph());var t=this;r.each(this._nodes,function(t,r){e(r)&&n.setNode(r,t)}),r.each(this._edgeObjs,function(e){n.hasNode(e.v)&&n.hasNode(e.w)&&n.setEdge(e,t.edge(e))});var o={};return this._isCompound&&r.each(n.nodes(),function(e){n.setParent(e,function e(r){var i=t.parent(r);return void 0===i||n.hasNode(i)?(o[r]=i,i):i in o?o[i]:e(i)}(e))}),n},o.prototype.setDefaultEdgeLabel=function(e){return r.isFunction(e)||(e=r.constant(e)),this._defaultEdgeLabelFn=e,this},o.prototype.edgeCount=function(){return this._edgeCount},o.prototype.edges=function(){return r.values(this._edgeObjs)},o.prototype.setPath=function(e,n){var t=this,o=arguments;return r.reduce(e,function(e,r){return o.length>1?t.setEdge(e,r,n):t.setEdge(e,r),r}),this},o.prototype.setEdge=function(){var e,n,t,o,a=!1,s=arguments[0];"object"==typeof s&&null!==s&&"v"in s?(e=s.v,n=s.w,t=s.name,2==arguments.length&&(o=arguments[1],a=!0)):(e=s,n=arguments[1],t=arguments[3],arguments.length>2&&(o=arguments[2],a=!0)),e=""+e,n=""+n,r.isUndefined(t)||(t=""+t);var c=u(this._isDirected,e,n,t);if(r.has(this._edgeLabels,c))return a&&(this._edgeLabels[c]=o),this;if(!r.isUndefined(t)&&!this._isMultigraph)throw Error("Cannot set a named edge when isMultigraph = false");this.setNode(e),this.setNode(n),this._edgeLabels[c]=a?o:this._defaultEdgeLabelFn(e,n,t);var d=function(e,n,t,r){var o=""+n,i=""+t;if(!e&&o>i){var a=o;o=i,i=a}var u={v:o,w:i};return r&&(u.name=r),u}(this._isDirected,e,n,t);return e=d.v,n=d.w,Object.freeze(d),this._edgeObjs[c]=d,i(this._preds[n],e),i(this._sucs[e],n),this._in[n][c]=d,this._out[e][c]=d,this._edgeCount++,this},o.prototype.edge=function(e,n,t){var r=1==arguments.length?s(this._isDirected,arguments[0]):u(this._isDirected,e,n,t);return this._edgeLabels[r]},o.prototype.hasEdge=function(e,n,t){var o=1==arguments.length?s(this._isDirected,arguments[0]):u(this._isDirected,e,n,t);return r.has(this._edgeLabels,o)},o.prototype.removeEdge=function(e,n,t){var r=1==arguments.length?s(this._isDirected,arguments[0]):u(this._isDirected,e,n,t),o=this._edgeObjs[r];return o&&(e=o.v,n=o.w,delete this._edgeLabels[r],delete this._edgeObjs[r],a(this._preds[n],e),a(this._sucs[e],n),delete this._in[n][r],delete this._out[e][r],this._edgeCount--),this},o.prototype.inEdges=function(e,n){var t=this._in[e];if(t){var o=r.values(t);return n?r.filter(o,function(e){return e.v===n}):o}},o.prototype.outEdges=function(e,n){var t=this._out[e];if(t){var o=r.values(t);return n?r.filter(o,function(e){return e.w===n}):o}},o.prototype.nodeEdges=function(e,n){var t=this.inEdges(e,n);if(t)return t.concat(this.outEdges(e,n))}},44020:function(e,n,t){e.exports={Graph:t(14015),version:t(86471)}},89063:function(e,n,t){var r=t(43329),o=t(14015);e.exports={write:function(e){var n={options:{directed:e.isDirected(),multigraph:e.isMultigraph(),compound:e.isCompound()},nodes:r.map(e.nodes(),function(n){var t=e.node(n),o=e.parent(n),i={v:n};return r.isUndefined(t)||(i.value=t),r.isUndefined(o)||(i.parent=o),i}),edges:r.map(e.edges(),function(n){var t=e.edge(n),o={v:n.v,w:n.w};return r.isUndefined(n.name)||(o.name=n.name),r.isUndefined(t)||(o.value=t),o})};return r.isUndefined(e.graph())||(n.value=r.clone(e.graph())),n},read:function(e){var n=new o(e.options).setGraph(e.value);return r.each(e.nodes,function(e){n.setNode(e.v,e.value),e.parent&&n.setParent(e.v,e.parent)}),r.each(e.edges,function(e){n.setEdge({v:e.v,w:e.w,name:e.name},e.value)}),n}}},43329:function(e,n,t){var r;try{r={clone:t(13784),constant:t(551),each:t(72856),filter:t(69238),has:t(73915),isArray:t(19785),isEmpty:t(90104),isFunction:t(28338),isUndefined:t(92465),keys:t(50098),map:t(55807),reduce:t(34172),size:t(36417),transform:t(42673),union:t(68946),values:t(58185)}}catch(e){}r||(r=window._),e.exports=r},86471:function(e){e.exports="2.1.8"},46008:function(e,n,t){var r=t(50517)("length");e.exports=r},58403:function(e,n,t){var r=t(55193);e.exports=function(e,n,t){for(var o=-1,i=e.length;++o<i;){var a=e[o],u=n(a);if(null!=u&&(void 0===s?u==u&&!r(u):t(u,s)))var s=u,c=a}return c}},59517:function(e){e.exports=function(e,n){return e>n}},73818:function(e){e.exports=function(e,n){return e<n}},67375:function(e,n,t){var r=t(52033),o=t(80068);e.exports=function(e,n){var t=-1,i=o(e)?Array(e.length):[];return r(e,function(e,r,o){i[++t]=n(e,r,o)}),i}},98497:function(e,n,t){var r=t(66070),o=t(79867),i=t(89278),a=t(67375),u=t(73303),s=t(39334),c=t(96348),d=t(31137),f=t(19785);e.exports=function(e,n,t){n=n.length?r(n,function(e){return f(e)?function(n){return o(n,1===e.length?e[0]:e)}:e}):[d];var h=-1;return n=r(n,s(i)),u(a(e,function(e,t,o){return{criteria:r(n,function(n){return n(e)}),index:++h,value:e}}),function(e,n){return c(e,n,t)})}},63005:function(e,n,t){var r=t(10228),o=t(79749);e.exports=function(e,n){return r(e,n,function(n,t){return o(e,t)})}},10228:function(e,n,t){var r=t(79867),o=t(78859),i=t(76747);e.exports=function(e,n,t){for(var a=-1,u=n.length,s={};++a<u;){var c=n[a],d=r(e,c);t(d,c)&&o(s,i(c,e),d)}return s}},18365:function(e){var n=Math.ceil,t=Math.max;e.exports=function(e,r,o,i){for(var a=-1,u=t(n((r-e)/(o||1)),0),s=Array(u);u--;)s[i?u:++a]=e,e+=o;return s}},73303:function(e){e.exports=function(e,n){var t=e.length;for(e.sort(n);t--;)e[t]=e[t].value;return e}},42231:function(e,n,t){var r=t(66070);e.exports=function(e,n){return r(n,function(n){return e[n]})}},62079:function(e,n,t){var r=t(31137);e.exports=function(e){return"function"==typeof e?e:r}},17845:function(e,n,t){var r=t(55193);e.exports=function(e,n){if(e!==n){var t=void 0!==e,o=null===e,i=e==e,a=r(e),u=void 0!==n,s=null===n,c=n==n,d=r(n);if(!s&&!d&&!a&&e>n||a&&u&&c&&!s&&!d||o&&u&&c||!t&&c||!i)return 1;if(!o&&!a&&!d&&e<n||d&&t&&i&&!o&&!a||s&&t&&i||!u&&i||!c)return -1}return 0}},96348:function(e,n,t){var r=t(17845);e.exports=function(e,n,t){for(var o=-1,i=e.criteria,a=n.criteria,u=i.length,s=t.length;++o<u;){var c=r(i[o],a[o]);if(c){if(o>=s)return c;return c*("desc"==t[o]?-1:1)}}return e.index-n.index}},55294:function(e,n,t){var r=t(18365),o=t(57535),i=t(94919);e.exports=function(e){return function(n,t,a){return a&&"number"!=typeof a&&o(n,t,a)&&(t=a=void 0),n=i(n),void 0===t?(t=n,n=0):t=i(t),a=void 0===a?n<t?1:-1:i(a),r(n,t,a,e)}}},64090:function(e,n,t){var r=t(46008),o=t(25348),i=t(44088);e.exports=function(e){return o(e)?i(e):r(e)}},44088:function(e){var n="\ud800-\udfff",t="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",r="\ud83c[\udffb-\udfff]",o="[^"+n+"]",i="(?:\ud83c[\udde6-\uddff]){2}",a="[\ud800-\udbff][\udc00-\udfff]",u="(?:"+t+"|"+r+")?",s="[\\ufe0e\\ufe0f]?",c="(?:\\u200d(?:"+[o,i,a].join("|")+")"+s+u+")*",d=RegExp(r+"(?="+r+")|(?:"+[o+t+"?",t,i,a,"["+n+"]"].join("|")+")"+(s+u+c),"g");e.exports=function(e){for(var n=d.lastIndex=0;d.test(e);)++n;return n}},30454:function(e,n,t){var r=t(40699);e.exports=function(e){return r(e,5)}},70236:function(e,n,t){var r=t(1197),o=t(85638),i=t(57535),a=t(53893),u=Object.prototype,s=u.hasOwnProperty,c=r(function(e,n){e=Object(e);var t=-1,r=n.length,c=r>2?n[2]:void 0;for(c&&i(n[0],n[1],c)&&(r=1);++t<r;)for(var d=n[t],f=a(d),h=-1,p=f.length;++h<p;){var v=f[h],l=e[v];(void 0===l||o(l,u[v])&&!s.call(e,v))&&(e[v]=d[v])}return e});e.exports=c},72856:function(e,n,t){e.exports=t(47003)},47003:function(e,n,t){var r=t(80594),o=t(52033),i=t(62079),a=t(19785);e.exports=function(e,n){return(a(e)?r:o)(e,i(n))}},3544:function(e,n,t){var r=t(49819),o=t(62079),i=t(53893);e.exports=function(e,n){return null==e?e:r(e,o(n),i)}},92465:function(e){e.exports=function(e){return void 0===e}},55807:function(e,n,t){var r=t(66070),o=t(89278),i=t(67375),a=t(19785);e.exports=function(e,n){return(a(e)?r:i)(e,o(n,3))}},25389:function(e,n,t){var r=t(88799),o=t(26194),i=t(89278);e.exports=function(e,n){var t={};return n=i(n,3),o(e,function(e,o,i){r(t,o,n(e,o,i))}),t}},7620:function(e,n,t){var r=t(58403),o=t(59517),i=t(31137);e.exports=function(e){return e&&e.length?r(e,i,o):void 0}},14176:function(e,n,t){var r=t(58403),o=t(73818),i=t(31137);e.exports=function(e){return e&&e.length?r(e,i,o):void 0}},70201:function(e,n,t){var r=t(58403),o=t(89278),i=t(73818);e.exports=function(e,n){return e&&e.length?r(e,o(n,2),i):void 0}},14648:function(e,n,t){var r=t(63005),o=t(24288)(function(e,n){return null==e?{}:r(e,n)});e.exports=o},4215:function(e,n,t){var r=t(55294)();e.exports=r},36417:function(e,n,t){var r=t(20186),o=t(3533),i=t(80068),a=t(88012),u=t(64090);e.exports=function(e){if(null==e)return 0;if(i(e))return a(e)?u(e):e.length;var n=o(e);return"[object Map]"==n||"[object Set]"==n?e.size:r(e).length}},95099:function(e,n,t){var r=t(23545),o=t(98497),i=t(1197),a=t(57535),u=i(function(e,n){if(null==e)return[];var t=n.length;return t>1&&a(e,n[0],n[1])?n=[]:t>2&&a(n[0],n[1],n[2])&&(n=[n[0]]),o(e,r(n,1),[])});e.exports=u},42673:function(e,n,t){var r=t(80594),o=t(80158),i=t(26194),a=t(89278),u=t(2173),s=t(19785),c=t(43854),d=t(28338),f=t(11611),h=t(48519);e.exports=function(e,n,t){var p=s(e),v=p||c(e)||h(e);if(n=a(n,4),null==t){var l=e&&e.constructor;t=v?p?new l:[]:f(e)&&d(l)?o(u(e)):{}}return(v?r:i)(e,function(e,r,o){return n(t,e,r,o)}),t}},68946:function(e,n,t){var r=t(23545),o=t(1197),i=t(92198),a=t(36468),u=o(function(e){return i(r(e,1,a,!0))});e.exports=u},46854:function(e,n,t){var r=t(65567),o=0;e.exports=function(e){var n=++o;return r(e)+n}},58185:function(e,n,t){var r=t(42231),o=t(50098);e.exports=function(e){return null==e?[]:r(e,o(e))}}}]);
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4259],{24259:function(e,n,t){e.exports={graphlib:t(99043),layout:t(69155),debug:t(38093),util:{time:t(51942).time,notime:t(51942).notime},version:t(50665)}},19371:function(e,n,t){"use strict";var r=t(27568),o=t(26238);e.exports={run:function(e){var n,t,i,a="greedy"===e.graph().acyclicer?o(e,function(n){return e.edge(n).weight}):(n=[],t={},i={},r.forEach(e.nodes(),function o(a){r.has(i,a)||(i[a]=!0,t[a]=!0,r.forEach(e.outEdges(a),function(e){r.has(t,e.w)?n.push(e):o(e.w)}),delete t[a])}),n);r.forEach(a,function(n){var t=e.edge(n);e.removeEdge(n),t.forwardName=n.name,t.reversed=!0,e.setEdge(n.w,n.v,t,r.uniqueId("rev"))})},undo:function(e){r.forEach(e.edges(),function(n){var t=e.edge(n);if(t.reversed){e.removeEdge(n);var r=t.forwardName;delete t.reversed,delete t.forwardName,e.setEdge(n.w,n.v,t,r)}})}}},30111:function(e,n,t){var r=t(27568),o=t(51942);function i(e,n,t,r,i,a){var u=i[n][a-1],s=o.addDummyNode(e,"border",{width:0,height:0,rank:a,borderType:n},t);i[n][a]=s,e.setParent(s,r),u&&e.setEdge(u,s,{weight:1})}e.exports=function(e){r.forEach(e.children(),function n(t){var o=e.children(t),a=e.node(t);if(o.length&&r.forEach(o,n),r.has(a,"minRank")){a.borderLeft=[],a.borderRight=[];for(var u=a.minRank,s=a.maxRank+1;u<s;++u)i(e,"borderLeft","_bl",t,a,u),i(e,"borderRight","_br",t,a,u)}})}},52551:function(e,n,t){"use strict";var r=t(27568);function o(e){r.forEach(e.nodes(),function(n){i(e.node(n))}),r.forEach(e.edges(),function(n){i(e.edge(n))})}function i(e){var n=e.width;e.width=e.height,e.height=n}function a(e){e.y=-e.y}function u(e){var n=e.x;e.x=e.y,e.y=n}e.exports={adjust:function(e){var n=e.graph().rankdir.toLowerCase();("lr"===n||"rl"===n)&&o(e)},undo:function(e){var n=e.graph().rankdir.toLowerCase();("bt"===n||"rl"===n)&&(r.forEach(e.nodes(),function(n){a(e.node(n))}),r.forEach(e.edges(),function(n){var t=e.edge(n);r.forEach(t.points,a),r.has(t,"y")&&a(t)})),("lr"===n||"rl"===n)&&(r.forEach(e.nodes(),function(n){u(e.node(n))}),r.forEach(e.edges(),function(n){var t=e.edge(n);r.forEach(t.points,u),r.has(t,"x")&&u(t)}),o(e))}}},65186:function(e){function n(){var e={};e._next=e._prev=e,this._sentinel=e}function t(e){e._prev._next=e._next,e._next._prev=e._prev,delete e._next,delete e._prev}function r(e,n){if("_next"!==e&&"_prev"!==e)return n}e.exports=n,n.prototype.dequeue=function(){var e=this._sentinel,n=e._prev;if(n!==e)return t(n),n},n.prototype.enqueue=function(e){var n=this._sentinel;e._prev&&e._next&&t(e),e._next=n._next,n._next._prev=e,n._next=e,e._prev=n},n.prototype.toString=function(){for(var e=[],n=this._sentinel,t=n._prev;t!==n;)e.push(JSON.stringify(t,r)),t=t._prev;return"["+e.join(", ")+"]"}},38093:function(e,n,t){var r=t(27568),o=t(51942),i=t(99043).Graph;e.exports={debugOrdering:function(e){var n=o.buildLayerMatrix(e),t=new i({compound:!0,multigraph:!0}).setGraph({});return r.forEach(e.nodes(),function(n){t.setNode(n,{label:n}),t.setParent(n,"layer"+e.node(n).rank)}),r.forEach(e.edges(),function(e){t.setEdge(e.v,e.w,{},e.name)}),r.forEach(n,function(e,n){t.setNode("layer"+n,{rank:"same"}),r.reduce(e,function(e,n){return t.setEdge(e,n,{style:"invis"}),n})}),t}}},99043:function(e,n,t){var r;try{r=t(39254)}catch(e){}r||(r=window.graphlib),e.exports=r},26238:function(e,n,t){var r=t(27568),o=t(99043).Graph,i=t(65186);e.exports=function(e,n){if(1>=e.nodeCount())return[];var t,c,d,f,h,p,v=(t=n||a,c=new o,d=0,f=0,r.forEach(e.nodes(),function(e){c.setNode(e,{v:e,in:0,out:0})}),r.forEach(e.edges(),function(e){var n=c.edge(e.v,e.w)||0,r=t(e);c.setEdge(e.v,e.w,n+r),f=Math.max(f,c.node(e.v).out+=r),d=Math.max(d,c.node(e.w).in+=r)}),h=r.range(f+d+3).map(function(){return new i}),p=d+1,r.forEach(c.nodes(),function(e){s(h,p,c.node(e))}),{graph:c,buckets:h,zeroIdx:p}),l=function(e,n,t){for(var r,o=[],i=n[n.length-1],a=n[0];e.nodeCount();){for(;r=a.dequeue();)u(e,n,t,r);for(;r=i.dequeue();)u(e,n,t,r);if(e.nodeCount()){for(var s=n.length-2;s>0;--s)if(r=n[s].dequeue()){o=o.concat(u(e,n,t,r,!0));break}}}return o}(v.graph,v.buckets,v.zeroIdx);return r.flatten(r.map(l,function(n){return e.outEdges(n.v,n.w)}),!0)};var a=r.constant(1);function u(e,n,t,o,i){var a=i?[]:void 0;return r.forEach(e.inEdges(o.v),function(r){var o=e.edge(r),u=e.node(r.v);i&&a.push({v:r.v,w:r.w}),u.out-=o,s(n,t,u)}),r.forEach(e.outEdges(o.v),function(r){var o=e.edge(r),i=r.w,a=e.node(i);a.in-=o,s(n,t,a)}),e.removeNode(o.v),a}function s(e,n,t){t.out?t.in?e[t.out-t.in+n].enqueue(t):e[e.length-1].enqueue(t):e[0].enqueue(t)}},69155:function(e,n,t){"use strict";var r=t(27568),o=t(19371),i=t(431),a=t(29102),u=t(51942).normalizeRanks,s=t(14146),c=t(51942).removeEmptyRanks,d=t(2856),f=t(30111),h=t(52551),p=t(79595),v=t(50199),l=t(51942),g=t(99043).Graph;e.exports=function(e,n){var t=n&&n.debugTiming?l.time:l.notime;t("layout",function(){var n=t(" buildLayoutGraph",function(){var n,t;return n=new g({multigraph:!0,compound:!0}),t=I(e.graph()),n.setGraph(r.merge({},y,N(t,m),r.pick(t,E))),r.forEach(e.nodes(),function(t){var o=I(e.node(t));n.setNode(t,r.defaults(N(o,w),b)),n.setParent(t,e.parent(t))}),r.forEach(e.edges(),function(t){var o=I(e.edge(t));n.setEdge(t,r.merge({},x,N(o,_),r.pick(o,k)))}),n});t(" runLayout",function(){t(" makeSpaceForEdgeLabels",function(){var e;e=n.graph(),e.ranksep/=2,r.forEach(n.edges(),function(t){var r=n.edge(t);r.minlen*=2,"c"!==r.labelpos.toLowerCase()&&("TB"===e.rankdir||"BT"===e.rankdir?r.width+=r.labeloffset:r.height+=r.labeloffset)})}),t(" removeSelfEdges",function(){r.forEach(n.edges(),function(e){if(e.v===e.w){var t=n.node(e.v);t.selfEdges||(t.selfEdges=[]),t.selfEdges.push({e:e,label:n.edge(e)}),n.removeEdge(e)}})}),t(" acyclic",function(){o.run(n)}),t(" nestingGraph.run",function(){d.run(n)}),t(" rank",function(){a(l.asNonCompoundGraph(n))}),t(" injectEdgeLabelProxies",function(){r.forEach(n.edges(),function(e){var t=n.edge(e);if(t.width&&t.height){var r=n.node(e.v),o={rank:(n.node(e.w).rank-r.rank)/2+r.rank,e:e};l.addDummyNode(n,"edge-proxy",o,"_ep")}})}),t(" removeEmptyRanks",function(){c(n)}),t(" nestingGraph.cleanup",function(){d.cleanup(n)}),t(" normalizeRanks",function(){u(n)}),t(" assignRankMinMax",function(){var e;e=0,r.forEach(n.nodes(),function(t){var o=n.node(t);o.borderTop&&(o.minRank=n.node(o.borderTop).rank,o.maxRank=n.node(o.borderBottom).rank,e=r.max(e,o.maxRank))}),n.graph().maxRank=e}),t(" removeEdgeLabelProxies",function(){r.forEach(n.nodes(),function(e){var t=n.node(e);"edge-proxy"===t.dummy&&(n.edge(t.e).labelRank=t.rank,n.removeNode(e))})}),t(" normalize.run",function(){i.run(n)}),t(" parentDummyChains",function(){s(n)}),t(" addBorderSegments",function(){f(n)}),t(" order",function(){p(n)}),t(" insertSelfEdges",function(){var e;e=l.buildLayerMatrix(n),r.forEach(e,function(e){var t=0;r.forEach(e,function(e,o){var i=n.node(e);i.order=o+t,r.forEach(i.selfEdges,function(e){l.addDummyNode(n,"selfedge",{width:e.label.width,height:e.label.height,rank:i.rank,order:o+ ++t,e:e.e,label:e.label},"_se")}),delete i.selfEdges})})}),t(" adjustCoordinateSystem",function(){h.adjust(n)}),t(" position",function(){v(n)}),t(" positionSelfEdges",function(){r.forEach(n.nodes(),function(e){var t=n.node(e);if("selfedge"===t.dummy){var r=n.node(t.e.v),o=r.x+r.width/2,i=r.y,a=t.x-o,u=r.height/2;n.setEdge(t.e,t.label),n.removeNode(e),t.label.points=[{x:o+2*a/3,y:i-u},{x:o+5*a/6,y:i-u},{x:o+a,y:i},{x:o+5*a/6,y:i+u},{x:o+2*a/3,y:i+u}],t.label.x=t.x,t.label.y=t.y}})}),t(" removeBorderNodes",function(){r.forEach(n.nodes(),function(e){if(n.children(e).length){var t=n.node(e),o=n.node(t.borderTop),i=n.node(t.borderBottom),a=n.node(r.last(t.borderLeft)),u=n.node(r.last(t.borderRight));t.width=Math.abs(u.x-a.x),t.height=Math.abs(i.y-o.y),t.x=a.x+t.width/2,t.y=o.y+t.height/2}}),r.forEach(n.nodes(),function(e){"border"===n.node(e).dummy&&n.removeNode(e)})}),t(" normalize.undo",function(){i.undo(n)}),t(" fixupEdgeLabelCoords",function(){r.forEach(n.edges(),function(e){var t=n.edge(e);if(r.has(t,"x"))switch(("l"===t.labelpos||"r"===t.labelpos)&&(t.width-=t.labeloffset),t.labelpos){case"l":t.x-=t.width/2+t.labeloffset;break;case"r":t.x+=t.width/2+t.labeloffset}})}),t(" undoCoordinateSystem",function(){h.undo(n)}),t(" translateGraph",function(){(function(e){var n=Number.POSITIVE_INFINITY,t=0,o=Number.POSITIVE_INFINITY,i=0,a=e.graph(),u=a.marginx||0,s=a.marginy||0;function c(e){var r=e.x,a=e.y,u=e.width,s=e.height;n=Math.min(n,r-u/2),t=Math.max(t,r+u/2),o=Math.min(o,a-s/2),i=Math.max(i,a+s/2)}r.forEach(e.nodes(),function(n){c(e.node(n))}),r.forEach(e.edges(),function(n){var t=e.edge(n);r.has(t,"x")&&c(t)}),n-=u,o-=s,r.forEach(e.nodes(),function(t){var r=e.node(t);r.x-=n,r.y-=o}),r.forEach(e.edges(),function(t){var i=e.edge(t);r.forEach(i.points,function(e){e.x-=n,e.y-=o}),r.has(i,"x")&&(i.x-=n),r.has(i,"y")&&(i.y-=o)}),a.width=t-n+u,a.height=i-o+s})(n)}),t(" assignNodeIntersects",function(){r.forEach(n.edges(),function(e){var t,r,o=n.edge(e),i=n.node(e.v),a=n.node(e.w);o.points?(t=o.points[0],r=o.points[o.points.length-1]):(o.points=[],t=a,r=i),o.points.unshift(l.intersectRect(i,t)),o.points.push(l.intersectRect(a,r))})}),t(" reversePoints",function(){r.forEach(n.edges(),function(e){var t=n.edge(e);t.reversed&&t.points.reverse()})}),t(" acyclic.undo",function(){o.undo(n)})}),t(" updateInputGraph",function(){r.forEach(e.nodes(),function(t){var r=e.node(t),o=n.node(t);r&&(r.x=o.x,r.y=o.y,n.children(t).length&&(r.width=o.width,r.height=o.height))}),r.forEach(e.edges(),function(t){var o=e.edge(t),i=n.edge(t);o.points=i.points,r.has(i,"x")&&(o.x=i.x,o.y=i.y)}),e.graph().width=n.graph().width,e.graph().height=n.graph().height})})};var m=["nodesep","edgesep","ranksep","marginx","marginy"],y={ranksep:50,edgesep:20,nodesep:50,rankdir:"tb"},E=["acyclicer","ranker","rankdir","align"],w=["width","height"],b={width:0,height:0},_=["minlen","weight","width","height","labeloffset"],x={minlen:1,weight:1,width:0,height:0,labeloffset:10,labelpos:"r"},k=["labelpos"];function N(e,n){return r.mapValues(r.pick(e,n),Number)}function I(e){var n={};return r.forEach(e,function(e,t){n[t.toLowerCase()]=e}),n}},27568:function(e,n,t){var r;try{r={cloneDeep:t(30454),constant:t(551),defaults:t(70236),each:t(72856),filter:t(69238),find:t(64925),flatten:t(89754),forEach:t(47003),forIn:t(3544),has:t(73915),isUndefined:t(92465),last:t(31159),map:t(55807),mapValues:t(25389),max:t(7620),merge:t(15409),min:t(14176),minBy:t(70201),now:t(82846),pick:t(14648),range:t(4215),reduce:t(34172),sortBy:t(95099),uniqueId:t(46854),values:t(58185),zipObject:t(11775)}}catch(e){}r||(r=window._),e.exports=r},2856:function(e,n,t){var r=t(27568),o=t(51942);e.exports={run:function(e){var n,t=o.addDummyNode(e,"root",{},"_root"),i=(n={},r.forEach(e.children(),function(t){!function t(o,i){var a=e.children(o);a&&a.length&&r.forEach(a,function(e){t(e,i+1)}),n[o]=i}(t,1)}),n),a=r.max(r.values(i))-1,u=2*a+1;e.graph().nestingRoot=t,r.forEach(e.edges(),function(n){e.edge(n).minlen*=u});var s=r.reduce(e.edges(),function(n,t){return n+e.edge(t).weight},0)+1;r.forEach(e.children(),function(n){(function e(n,t,i,a,u,s,c){var d=n.children(c);if(!d.length){c!==t&&n.setEdge(t,c,{weight:0,minlen:i});return}var f=o.addBorderNode(n,"_bt"),h=o.addBorderNode(n,"_bb"),p=n.node(c);n.setParent(f,c),p.borderTop=f,n.setParent(h,c),p.borderBottom=h,r.forEach(d,function(r){e(n,t,i,a,u,s,r);var o=n.node(r),d=o.borderTop?o.borderTop:r,p=o.borderBottom?o.borderBottom:r,v=o.borderTop?a:2*a,l=d!==p?1:u-s[c]+1;n.setEdge(f,d,{weight:v,minlen:l,nestingEdge:!0}),n.setEdge(p,h,{weight:v,minlen:l,nestingEdge:!0})}),n.parent(c)||n.setEdge(t,f,{weight:0,minlen:u+s[c]})})(e,t,u,s,a,i,n)}),e.graph().nodeRankFactor=u},cleanup:function(e){var n=e.graph();e.removeNode(n.nestingRoot),delete n.nestingRoot,r.forEach(e.edges(),function(n){e.edge(n).nestingEdge&&e.removeEdge(n)})}}},431:function(e,n,t){"use strict";var r=t(27568),o=t(51942);e.exports={run:function(e){e.graph().dummyChains=[],r.forEach(e.edges(),function(n){(function(e,n){var t,r,i,a=n.v,u=e.node(a).rank,s=n.w,c=e.node(s).rank,d=n.name,f=e.edge(n),h=f.labelRank;if(c!==u+1){for(e.removeEdge(n),i=0,++u;u<c;++i,++u)f.points=[],r={width:0,height:0,edgeLabel:f,edgeObj:n,rank:u},t=o.addDummyNode(e,"edge",r,"_d"),u===h&&(r.width=f.width,r.height=f.height,r.dummy="edge-label",r.labelpos=f.labelpos),e.setEdge(a,t,{weight:f.weight},d),0===i&&e.graph().dummyChains.push(t),a=t;e.setEdge(a,s,{weight:f.weight},d)}})(e,n)})},undo:function(e){r.forEach(e.graph().dummyChains,function(n){var t,r=e.node(n),o=r.edgeLabel;for(e.setEdge(r.edgeObj,o);r.dummy;)t=e.successors(n)[0],e.removeNode(n),o.points.push({x:r.x,y:r.y}),"edge-label"===r.dummy&&(o.x=r.x,o.y=r.y,o.width=r.width,o.height=r.height),n=t,r=e.node(n)})}}},74671:function(e,n,t){var r=t(27568);e.exports=function(e,n,t){var o,i={};r.forEach(t,function(t){for(var r,a,u=e.parent(t);u;){if((r=e.parent(u))?(a=i[r],i[r]=u):(a=o,o=u),a&&a!==u){n.setEdge(a,u);return}u=r}})}},18346:function(e,n,t){var r=t(27568);e.exports=function(e,n){return r.map(n,function(n){var t=e.inEdges(n);if(!t.length)return{v:n};var o=r.reduce(t,function(n,t){var r=e.edge(t),o=e.node(t.v);return{sum:n.sum+r.weight*o.order,weight:n.weight+r.weight}},{sum:0,weight:0});return{v:n,barycenter:o.sum/o.weight,weight:o.weight}})}},46901:function(e,n,t){var r=t(27568),o=t(99043).Graph;e.exports=function(e,n,t){var i=function(e){for(var n;e.hasNode(n=r.uniqueId("_root")););return n}(e),a=new o({compound:!0}).setGraph({root:i}).setDefaultNodeLabel(function(n){return e.node(n)});return r.forEach(e.nodes(),function(o){var u=e.node(o),s=e.parent(o);(u.rank===n||u.minRank<=n&&n<=u.maxRank)&&(a.setNode(o),a.setParent(o,s||i),r.forEach(e[t](o),function(n){var t=n.v===o?n.w:n.v,i=a.edge(t,o),u=r.isUndefined(i)?0:i.weight;a.setEdge(t,o,{weight:e.edge(n).weight+u})}),r.has(u,"minRank")&&a.setNode(o,{borderLeft:u.borderLeft[n],borderRight:u.borderRight[n]}))}),a}},27525:function(e,n,t){"use strict";var r=t(27568);e.exports=function(e,n){for(var t=0,o=1;o<n.length;++o)t+=function(e,n,t){for(var o=r.zipObject(t,r.map(t,function(e,n){return n})),i=r.flatten(r.map(n,function(n){return r.sortBy(r.map(e.outEdges(n),function(n){return{pos:o[n.w],weight:e.edge(n).weight}}),"pos")}),!0),a=1;a<t.length;)a<<=1;var u=2*a-1;a-=1;var s=r.map(Array(u),function(){return 0}),c=0;return r.forEach(i.forEach(function(e){var n=e.pos+a;s[n]+=e.weight;for(var t=0;n>0;)n%2&&(t+=s[n+1]),n=n-1>>1,s[n]+=e.weight;c+=e.weight*t})),c}(e,n[o-1],n[o]);return t}},79595:function(e,n,t){"use strict";var r=t(27568),o=t(35037),i=t(27525),a=t(60066),u=t(46901),s=t(74671),c=t(99043).Graph,d=t(51942);function f(e,n,t){return r.map(n,function(n){return u(e,n,t)})}function h(e,n){r.forEach(n,function(n){r.forEach(n,function(n,t){e.node(n).order=t})})}e.exports=function(e){var n=d.maxRank(e),t=f(e,r.range(1,n+1),"inEdges"),u=f(e,r.range(n-1,-1,-1),"outEdges"),p=o(e);h(e,p);for(var v,l=Number.POSITIVE_INFINITY,g=0,m=0;m<4;++g,++m){(function(e,n){var t=new c;r.forEach(e,function(e){var o=e.graph().root,i=a(e,o,t,n);r.forEach(i.vs,function(n,t){e.node(n).order=t}),s(e,t,i.vs)})})(g%2?t:u,g%4>=2),p=d.buildLayerMatrix(e);var y=i(e,p);y<l&&(m=0,v=r.cloneDeep(p),l=y)}h(e,v)}},35037:function(e,n,t){"use strict";var r=t(27568);e.exports=function(e){var n={},t=r.filter(e.nodes(),function(n){return!e.children(n).length}),o=r.max(r.map(t,function(n){return e.node(n).rank})),i=r.map(r.range(o+1),function(){return[]}),a=r.sortBy(t,function(n){return e.node(n).rank});return r.forEach(a,function t(o){r.has(n,o)||(n[o]=!0,i[e.node(o).rank].push(o),r.forEach(e.successors(o),t))}),i}},64873:function(e,n,t){"use strict";var r=t(27568);e.exports=function(e,n){var t={};return r.forEach(e,function(e,n){var o=t[e.v]={indegree:0,in:[],out:[],vs:[e.v],i:n};r.isUndefined(e.barycenter)||(o.barycenter=e.barycenter,o.weight=e.weight)}),r.forEach(n.edges(),function(e){var n=t[e.v],o=t[e.w];r.isUndefined(n)||r.isUndefined(o)||(o.indegree++,n.out.push(t[e.w]))}),function(e){for(var n=[];e.length;){var t=e.pop();n.push(t),r.forEach(t.in.reverse(),function(e){return function(n){!n.merged&&(r.isUndefined(n.barycenter)||r.isUndefined(e.barycenter)||n.barycenter>=e.barycenter)&&function(e,n){var t=0,r=0;e.weight&&(t+=e.barycenter*e.weight,r+=e.weight),n.weight&&(t+=n.barycenter*n.weight,r+=n.weight),e.vs=n.vs.concat(e.vs),e.barycenter=t/r,e.weight=r,e.i=Math.min(n.i,e.i),n.merged=!0}(e,n)}}(t)),r.forEach(t.out,function(n){return function(t){t.in.push(n),0==--t.indegree&&e.push(t)}}(t))}return r.map(r.filter(n,function(e){return!e.merged}),function(e){return r.pick(e,["vs","i","barycenter","weight"])})}(r.filter(t,function(e){return!e.indegree}))}},60066:function(e,n,t){var r=t(27568),o=t(18346),i=t(64873),a=t(22474);e.exports=function e(n,t,u,s){var c=n.children(t),d=n.node(t),f=d?d.borderLeft:void 0,h=d?d.borderRight:void 0,p={};f&&(c=r.filter(c,function(e){return e!==f&&e!==h}));var v=o(n,c);r.forEach(v,function(t){if(n.children(t.v).length){var o=e(n,t.v,u,s);p[t.v]=o,r.has(o,"barycenter")&&(r.isUndefined(t.barycenter)?(t.barycenter=o.barycenter,t.weight=o.weight):(t.barycenter=(t.barycenter*t.weight+o.barycenter*o.weight)/(t.weight+o.weight),t.weight+=o.weight))}});var l=i(v,u);r.forEach(l,function(e){e.vs=r.flatten(e.vs.map(function(e){return p[e]?p[e].vs:e}),!0)});var g=a(l,s);if(f&&(g.vs=r.flatten([f,g.vs,h],!0),n.predecessors(f).length)){var m=n.node(n.predecessors(f)[0]),y=n.node(n.predecessors(h)[0]);r.has(g,"barycenter")||(g.barycenter=0,g.weight=0),g.barycenter=(g.barycenter*g.weight+m.order+y.order)/(g.weight+2),g.weight+=2}return g}},22474:function(e,n,t){var r=t(27568),o=t(51942);function i(e,n,t){for(var o;n.length&&(o=r.last(n)).i<=t;)n.pop(),e.push(o.vs),t++;return t}e.exports=function(e,n){var t,a=o.partition(e,function(e){return r.has(e,"barycenter")}),u=a.lhs,s=r.sortBy(a.rhs,function(e){return-e.i}),c=[],d=0,f=0,h=0;u.sort((t=!!n,function(e,n){return e.barycenter<n.barycenter?-1:e.barycenter>n.barycenter?1:t?n.i-e.i:e.i-n.i})),h=i(c,s,h),r.forEach(u,function(e){h+=e.vs.length,c.push(e.vs),d+=e.barycenter*e.weight,f+=e.weight,h=i(c,s,h)});var p={vs:r.flatten(c,!0)};return f&&(p.barycenter=d/f,p.weight=f),p}},14146:function(e,n,t){var r=t(27568);e.exports=function(e){var n,t,o=(n={},t=0,r.forEach(e.children(),function o(i){var a=t;r.forEach(e.children(i),o),n[i]={low:a,lim:t++}}),n);r.forEach(e.graph().dummyChains,function(n){for(var t=e.node(n),r=t.edgeObj,i=function(e,n,t,r){var o,i,a=[],u=[],s=Math.min(n[t].low,n[r].low),c=Math.max(n[t].lim,n[r].lim);o=t;do a.push(o=e.parent(o));while(o&&(n[o].low>s||c>n[o].lim));for(i=o,o=r;(o=e.parent(o))!==i;)u.push(o);return{path:a.concat(u.reverse()),lca:i}}(e,o,r.v,r.w),a=i.path,u=i.lca,s=0,c=a[0],d=!0;n!==r.w;){if(t=e.node(n),d){for(;(c=a[s])!==u&&e.node(c).maxRank<t.rank;)s++;c===u&&(d=!1)}if(!d){for(;s<a.length-1&&e.node(c=a[s+1]).minRank<=t.rank;)s++;c=a[s]}e.setParent(n,c),n=e.successors(n)[0]}})}},31867:function(e,n,t){"use strict";var r=t(27568),o=t(99043).Graph,i=t(51942);function a(e,n){var t={};return r.reduce(n,function(n,o){var i=0,a=0,u=n.length,c=r.last(o);return r.forEach(o,function(n,d){var f=function(e,n){if(e.node(n).dummy)return r.find(e.predecessors(n),function(n){return e.node(n).dummy})}(e,n),h=f?e.node(f).order:u;(f||n===c)&&(r.forEach(o.slice(a,d+1),function(n){r.forEach(e.predecessors(n),function(r){var o=e.node(r),a=o.order;(a<i||h<a)&&!(o.dummy&&e.node(n).dummy)&&s(t,r,n)})}),a=d+1,i=h)}),o}),t}function u(e,n){var t={};function o(n,o,i,a,u){var c;r.forEach(r.range(o,i),function(o){c=n[o],e.node(c).dummy&&r.forEach(e.predecessors(c),function(n){var r=e.node(n);r.dummy&&(r.order<a||r.order>u)&&s(t,n,c)})})}return r.reduce(n,function(n,t){var i,a=-1,u=0;return r.forEach(t,function(r,s){if("border"===e.node(r).dummy){var c=e.predecessors(r);c.length&&(i=e.node(c[0]).order,o(t,u,s,a,i),u=s,a=i)}o(t,u,t.length,i,n.length)}),t}),t}function s(e,n,t){if(n>t){var r=n;n=t,t=r}var o=e[n];o||(e[n]=o={}),o[t]=!0}function c(e,n,t){if(n>t){var o=n;n=t,t=o}return r.has(e[n],t)}function d(e,n,t,o){var i={},a={},u={};return r.forEach(n,function(e){r.forEach(e,function(e,n){i[e]=e,a[e]=e,u[e]=n})}),r.forEach(n,function(e){var n=-1;r.forEach(e,function(e){var s=o(e);if(s.length)for(var d=((s=r.sortBy(s,function(e){return u[e]})).length-1)/2,f=Math.floor(d),h=Math.ceil(d);f<=h;++f){var p=s[f];a[e]===e&&n<u[p]&&!c(t,e,p)&&(a[p]=e,a[e]=i[e]=i[p],n=u[p])}})}),{root:i,align:a}}function f(e,n,t,i,a){var u,s,c,d,f,h={},p=(c=new o,u=(d=e.graph()).nodesep,s=d.edgesep,f=function(e,n,t){var o,i,c=e.node(n),d=e.node(t);if(o=0+c.width/2,r.has(c,"labelpos"))switch(c.labelpos.toLowerCase()){case"l":i=-c.width/2;break;case"r":i=c.width/2}if(i&&(o+=a?i:-i),i=0,o+=(c.dummy?s:u)/2+(d.dummy?s:u)/2+d.width/2,r.has(d,"labelpos"))switch(d.labelpos.toLowerCase()){case"l":i=d.width/2;break;case"r":i=-d.width/2}return i&&(o+=a?i:-i),i=0,o},r.forEach(n,function(n){var o;r.forEach(n,function(n){var r=t[n];if(c.setNode(r),o){var i=t[o],a=c.edge(i,r);c.setEdge(i,r,Math.max(f(e,n,o),a||0))}o=n})}),c),v=a?"borderLeft":"borderRight";function l(e,n){for(var t=p.nodes(),r=t.pop(),o={};r;)o[r]?e(r):(o[r]=!0,t.push(r),t=t.concat(n(r))),r=t.pop()}return l(function(e){h[e]=p.inEdges(e).reduce(function(e,n){return Math.max(e,h[n.v]+p.edge(n))},0)},p.predecessors.bind(p)),l(function(n){var t=p.outEdges(n).reduce(function(e,n){return Math.min(e,h[n.w]-p.edge(n))},Number.POSITIVE_INFINITY),r=e.node(n);t!==Number.POSITIVE_INFINITY&&r.borderType!==v&&(h[n]=Math.max(h[n],t))},p.successors.bind(p)),r.forEach(i,function(e){h[e]=h[t[e]]}),h}function h(e,n){return r.minBy(r.values(n),function(n){var t=Number.NEGATIVE_INFINITY,o=Number.POSITIVE_INFINITY;return r.forIn(n,function(n,r){var i=e.node(r).width/2;t=Math.max(n+i,t),o=Math.min(n-i,o)}),t-o})}function p(e,n){var t=r.values(n),o=r.min(t),i=r.max(t);r.forEach(["u","d"],function(t){r.forEach(["l","r"],function(a){var u,s=t+a,c=e[s];if(c!==n){var d=r.values(c);(u="l"===a?o-r.min(d):i-r.max(d))&&(e[s]=r.mapValues(c,function(e){return e+u}))}})})}function v(e,n){return r.mapValues(e.ul,function(t,o){if(n)return e[n.toLowerCase()][o];var i=r.sortBy(r.map(e,o));return(i[1]+i[2])/2})}e.exports={positionX:function(e){var n,t=i.buildLayerMatrix(e),o=r.merge(a(e,t),u(e,t)),s={};r.forEach(["u","d"],function(i){n="u"===i?t:r.values(t).reverse(),r.forEach(["l","r"],function(t){"r"===t&&(n=r.map(n,function(e){return r.values(e).reverse()}));var a=("u"===i?e.predecessors:e.successors).bind(e),u=d(e,n,o,a),c=f(e,n,u.root,u.align,"r"===t);"r"===t&&(c=r.mapValues(c,function(e){return-e})),s[i+t]=c})});var c=h(e,s);return p(s,c),v(s,e.graph().align)},findType1Conflicts:a,findType2Conflicts:u,addConflict:s,hasConflict:c,verticalAlignment:d,horizontalCompaction:f,alignCoordinates:p,findSmallestWidthAlignment:h,balance:v}},50199:function(e,n,t){"use strict";var r=t(27568),o=t(51942),i=t(31867).positionX;e.exports=function(e){var n,t,a,u;n=e=o.asNonCompoundGraph(e),t=o.buildLayerMatrix(n),a=n.graph().ranksep,u=0,r.forEach(t,function(e){var t=r.max(r.map(e,function(e){return n.node(e).height}));r.forEach(e,function(e){n.node(e).y=u+t/2}),u+=t+a}),r.forEach(i(e),function(n,t){e.node(t).x=n})}},7589:function(e,n,t){"use strict";var r=t(27568),o=t(99043).Graph,i=t(51512).slack;e.exports=function(e){var n,t,a=new o({directed:!1}),u=e.nodes()[0],s=e.nodeCount();for(a.setNode(u,{});r.forEach(a.nodes(),function n(t){r.forEach(e.nodeEdges(t),function(r){var o=r.v,u=t===o?r.w:o;a.hasNode(u)||i(e,r)||(a.setNode(u,{}),a.setEdge(t,u,{}),n(u))})}),a.nodeCount()<s;)n=function(e,n){return r.minBy(n.edges(),function(t){if(e.hasNode(t.v)!==e.hasNode(t.w))return i(n,t)})}(a,e),t=a.hasNode(n.v)?i(e,n):-i(e,n),function(e,n,t){r.forEach(e.nodes(),function(e){n.node(e).rank+=t})}(a,e,t);return a}},29102:function(e,n,t){"use strict";var r=t(51512).longestPath,o=t(7589),i=t(95823);e.exports=function(e){switch(e.graph().ranker){case"network-simplex":default:i(e);break;case"tight-tree":r(e),o(e);break;case"longest-path":a(e)}};var a=r},95823:function(e,n,t){"use strict";var r=t(27568),o=t(7589),i=t(51512).slack,a=t(51512).longestPath,u=t(99043).alg.preorder,s=t(99043).alg.postorder,c=t(51942).simplify;function d(e){a(e=c(e));var n,t,r=o(e);for(p(r),f(r,e);n=v(r);)t=l(r,e,n),g(r,e,n,t)}function f(e,n){var t=s(e,e.nodes());t=t.slice(0,t.length-1),r.forEach(t,function(t){var r;r=e.node(t).parent,e.edge(t,r).cutvalue=h(e,n,t)})}function h(e,n,t){var o=e.node(t).parent,i=!0,a=n.edge(t,o),u=0;return a||(i=!1,a=n.edge(o,t)),u=a.weight,r.forEach(n.nodeEdges(t),function(r){var a=r.v===t,s=a?r.w:r.v;if(s!==o){var c=a===i,d=n.edge(r).weight;if(u+=c?d:-d,e.hasEdge(t,s)){var f=e.edge(t,s).cutvalue;u+=c?-f:f}}}),u}function p(e,n){arguments.length<2&&(n=e.nodes()[0]),function e(n,t,o,i,a){var u=o,s=n.node(i);return t[i]=!0,r.forEach(n.neighbors(i),function(a){r.has(t,a)||(o=e(n,t,o,a,i))}),s.low=u,s.lim=o++,a?s.parent=a:delete s.parent,o}(e,{},1,n)}function v(e){return r.find(e.edges(),function(n){return e.edge(n).cutvalue<0})}function l(e,n,t){var o=t.v,a=t.w;n.hasEdge(o,a)||(o=t.w,a=t.v);var u=e.node(o),s=e.node(a),c=u,d=!1;u.lim>s.lim&&(c=s,d=!0);var f=r.filter(n.edges(),function(n){return d===m(e,e.node(n.v),c)&&d!==m(e,e.node(n.w),c)});return r.minBy(f,function(e){return i(n,e)})}function g(e,n,t,o){var i,a,s=t.v,c=t.w;e.removeEdge(s,c),e.setEdge(o.v,o.w,{}),p(e),f(e,n),i=r.find(e.nodes(),function(e){return!n.node(e).parent}),a=(a=u(e,i)).slice(1),r.forEach(a,function(t){var r=e.node(t).parent,o=n.edge(t,r),i=!1;o||(o=n.edge(r,t),i=!0),n.node(t).rank=n.node(r).rank+(i?o.minlen:-o.minlen)})}function m(e,n,t){return t.low<=n.lim&&n.lim<=t.lim}e.exports=d,d.initLowLimValues=p,d.initCutValues=f,d.calcCutValue=h,d.leaveEdge=v,d.enterEdge=l,d.exchangeEdges=g},51512:function(e,n,t){"use strict";var r=t(27568);e.exports={longestPath:function(e){var n={};r.forEach(e.sources(),function t(o){var i=e.node(o);if(r.has(n,o))return i.rank;n[o]=!0;var a=r.min(r.map(e.outEdges(o),function(n){return t(n.w)-e.edge(n).minlen}));return(a===Number.POSITIVE_INFINITY||null==a)&&(a=0),i.rank=a})},slack:function(e,n){return e.node(n.w).rank-e.node(n.v).rank-e.edge(n).minlen}}},51942:function(e,n,t){"use strict";var r=t(27568),o=t(99043).Graph;function i(e,n,t,o){var i;do i=r.uniqueId(o);while(e.hasNode(i));return t.dummy=n,e.setNode(i,t),i}function a(e){return r.max(r.map(e.nodes(),function(n){var t=e.node(n).rank;if(!r.isUndefined(t))return t}))}e.exports={addDummyNode:i,simplify:function(e){var n=new o().setGraph(e.graph());return r.forEach(e.nodes(),function(t){n.setNode(t,e.node(t))}),r.forEach(e.edges(),function(t){var r=n.edge(t.v,t.w)||{weight:0,minlen:1},o=e.edge(t);n.setEdge(t.v,t.w,{weight:r.weight+o.weight,minlen:Math.max(r.minlen,o.minlen)})}),n},asNonCompoundGraph:function(e){var n=new o({multigraph:e.isMultigraph()}).setGraph(e.graph());return r.forEach(e.nodes(),function(t){e.children(t).length||n.setNode(t,e.node(t))}),r.forEach(e.edges(),function(t){n.setEdge(t,e.edge(t))}),n},successorWeights:function(e){var n=r.map(e.nodes(),function(n){var t={};return r.forEach(e.outEdges(n),function(n){t[n.w]=(t[n.w]||0)+e.edge(n).weight}),t});return r.zipObject(e.nodes(),n)},predecessorWeights:function(e){var n=r.map(e.nodes(),function(n){var t={};return r.forEach(e.inEdges(n),function(n){t[n.v]=(t[n.v]||0)+e.edge(n).weight}),t});return r.zipObject(e.nodes(),n)},intersectRect:function(e,n){var t,r,o=e.x,i=e.y,a=n.x-o,u=n.y-i,s=e.width/2,c=e.height/2;if(!a&&!u)throw Error("Not possible to find intersection inside of the rectangle");return Math.abs(u)*s>Math.abs(a)*c?(u<0&&(c=-c),t=c*a/u,r=c):(a<0&&(s=-s),t=s,r=s*u/a),{x:o+t,y:i+r}},buildLayerMatrix:function(e){var n=r.map(r.range(a(e)+1),function(){return[]});return r.forEach(e.nodes(),function(t){var o=e.node(t),i=o.rank;r.isUndefined(i)||(n[i][o.order]=t)}),n},normalizeRanks:function(e){var n=r.min(r.map(e.nodes(),function(n){return e.node(n).rank}));r.forEach(e.nodes(),function(t){var o=e.node(t);r.has(o,"rank")&&(o.rank-=n)})},removeEmptyRanks:function(e){var n=r.min(r.map(e.nodes(),function(n){return e.node(n).rank})),t=[];r.forEach(e.nodes(),function(r){var o=e.node(r).rank-n;t[o]||(t[o]=[]),t[o].push(r)});var o=0,i=e.graph().nodeRankFactor;r.forEach(t,function(n,t){r.isUndefined(n)&&t%i!=0?--o:o&&r.forEach(n,function(n){e.node(n).rank+=o})})},addBorderNode:function(e,n,t,r){var o={width:0,height:0};return arguments.length>=4&&(o.rank=t,o.order=r),i(e,"border",o,n)},maxRank:a,partition:function(e,n){var t={lhs:[],rhs:[]};return r.forEach(e,function(e){n(e)?t.lhs.push(e):t.rhs.push(e)}),t},time:function(e,n){var t=r.now();try{return n()}finally{console.log(e+" time: "+(r.now()-t)+"ms")}},notime:function(e,n){return n()}}},50665:function(e){e.exports="0.8.5"},39254:function(e,n,t){var r=t(44020);e.exports={Graph:r.Graph,json:t(89063),alg:t(2757),version:r.version}},47205:function(e,n,t){var r=t(43329);e.exports=function(e){var n,t={},o=[];return r.each(e.nodes(),function(i){n=[],function o(i){r.has(t,i)||(t[i]=!0,n.push(i),r.each(e.successors(i),o),r.each(e.predecessors(i),o))}(i),n.length&&o.push(n)}),o}},56658:function(e,n,t){var r=t(43329);e.exports=function(e,n,t){r.isArray(n)||(n=[n]);var o=(e.isDirected()?e.successors:e.neighbors).bind(e),i=[],a={};return r.each(n,function(n){if(!e.hasNode(n))throw Error("Graph does not have node: "+n);(function e(n,t,o,i,a,u){!r.has(i,t)&&(i[t]=!0,o||u.push(t),r.each(a(t),function(t){e(n,t,o,i,a,u)}),o&&u.push(t))})(e,n,"post"===t,a,o,i)}),i}},35852:function(e,n,t){var r=t(47470),o=t(43329);e.exports=function(e,n,t){return o.transform(e.nodes(),function(o,i){o[i]=r(e,i,n,t)},{})}},47470:function(e,n,t){var r=t(43329),o=t(35472);e.exports=function(e,n,t,r){return function(e,n,t,r){var i,a,u={},s=new o,c=function(e){var n=e.v!==i?e.v:e.w,r=u[n],o=t(e),c=a.distance+o;if(o<0)throw Error("dijkstra does not allow negative edge weights. Bad edge: "+e+" Weight: "+o);c<r.distance&&(r.distance=c,r.predecessor=i,s.decrease(n,c))};for(e.nodes().forEach(function(e){var t=e===n?0:Number.POSITIVE_INFINITY;u[e]={distance:t},s.add(e,t)});s.size()>0&&(a=u[i=s.removeMin()]).distance!==Number.POSITIVE_INFINITY;)r(i).forEach(c);return u}(e,String(n),t||i,r||function(n){return e.outEdges(n)})};var i=r.constant(1)},40641:function(e,n,t){var r=t(43329),o=t(45379);e.exports=function(e){return r.filter(o(e),function(n){return n.length>1||1===n.length&&e.hasEdge(n[0],n[0])})}},13917:function(e,n,t){var r=t(43329);e.exports=function(e,n,t){var r,i,a,u;return r=n||o,i=t||function(n){return e.outEdges(n)},a={},(u=e.nodes()).forEach(function(e){a[e]={},a[e][e]={distance:0},u.forEach(function(n){e!==n&&(a[e][n]={distance:Number.POSITIVE_INFINITY})}),i(e).forEach(function(n){var t=n.v===e?n.w:n.v,o=r(n);a[e][t]={distance:o,predecessor:e}})}),u.forEach(function(e){var n=a[e];u.forEach(function(t){var r=a[t];u.forEach(function(t){var o=r[e],i=n[t],a=r[t],u=o.distance+i.distance;u<a.distance&&(a.distance=u,a.predecessor=i.predecessor)})})}),a};var o=r.constant(1)},2757:function(e,n,t){e.exports={components:t(47205),dijkstra:t(47470),dijkstraAll:t(35852),findCycles:t(40641),floydWarshall:t(13917),isAcyclic:t(66069),postorder:t(49444),preorder:t(54911),prim:t(73873),tarjan:t(45379),topsort:t(85954)}},66069:function(e,n,t){var r=t(85954);e.exports=function(e){try{r(e)}catch(e){if(e instanceof r.CycleException)return!1;throw e}return!0}},49444:function(e,n,t){var r=t(56658);e.exports=function(e,n){return r(e,n,"post")}},54911:function(e,n,t){var r=t(56658);e.exports=function(e,n){return r(e,n,"pre")}},73873:function(e,n,t){var r=t(43329),o=t(14015),i=t(35472);e.exports=function(e,n){var t,a=new o,u={},s=new i;function c(e){var r=e.v===t?e.w:e.v,o=s.priority(r);if(void 0!==o){var i=n(e);i<o&&(u[r]=t,s.decrease(r,i))}}if(0===e.nodeCount())return a;r.each(e.nodes(),function(e){s.add(e,Number.POSITIVE_INFINITY),a.setNode(e)}),s.decrease(e.nodes()[0],0);for(var d=!1;s.size()>0;){if(t=s.removeMin(),r.has(u,t))a.setEdge(t,u[t]);else if(d)throw Error("Input graph is not connected: "+e);else d=!0;e.nodeEdges(t).forEach(c)}return a}},45379:function(e,n,t){var r=t(43329);e.exports=function(e){var n=0,t=[],o={},i=[];return e.nodes().forEach(function(a){r.has(o,a)||function a(u){var s=o[u]={onStack:!0,lowlink:n,index:n++};if(t.push(u),e.successors(u).forEach(function(e){r.has(o,e)?o[e].onStack&&(s.lowlink=Math.min(s.lowlink,o[e].index)):(a(e),s.lowlink=Math.min(s.lowlink,o[e].lowlink))}),s.lowlink===s.index){var c,d=[];do o[c=t.pop()].onStack=!1,d.push(c);while(u!==c);i.push(d)}}(a)}),i}},85954:function(e,n,t){var r=t(43329);function o(e){var n={},t={},o=[];if(r.each(e.sinks(),function a(u){if(r.has(t,u))throw new i;r.has(n,u)||(t[u]=!0,n[u]=!0,r.each(e.predecessors(u),a),delete t[u],o.push(u))}),r.size(n)!==e.nodeCount())throw new i;return o}function i(){}e.exports=o,o.CycleException=i,i.prototype=Error()},35472:function(e,n,t){var r=t(43329);function o(){this._arr=[],this._keyIndices={}}e.exports=o,o.prototype.size=function(){return this._arr.length},o.prototype.keys=function(){return this._arr.map(function(e){return e.key})},o.prototype.has=function(e){return r.has(this._keyIndices,e)},o.prototype.priority=function(e){var n=this._keyIndices[e];if(void 0!==n)return this._arr[n].priority},o.prototype.min=function(){if(0===this.size())throw Error("Queue underflow");return this._arr[0].key},o.prototype.add=function(e,n){var t=this._keyIndices;if(e=String(e),!r.has(t,e)){var o=this._arr,i=o.length;return t[e]=i,o.push({key:e,priority:n}),this._decrease(i),!0}return!1},o.prototype.removeMin=function(){this._swap(0,this._arr.length-1);var e=this._arr.pop();return delete this._keyIndices[e.key],this._heapify(0),e.key},o.prototype.decrease=function(e,n){var t=this._keyIndices[e];if(n>this._arr[t].priority)throw Error("New priority is greater than current priority. Key: "+e+" Old: "+this._arr[t].priority+" New: "+n);this._arr[t].priority=n,this._decrease(t)},o.prototype._heapify=function(e){var n=this._arr,t=2*e,r=t+1,o=e;t<n.length&&(o=n[t].priority<n[o].priority?t:o,r<n.length&&(o=n[r].priority<n[o].priority?r:o),o!==e&&(this._swap(e,o),this._heapify(o)))},o.prototype._decrease=function(e){for(var n,t=this._arr,r=t[e].priority;0!==e&&!(t[n=e>>1].priority<r);)this._swap(e,n),e=n},o.prototype._swap=function(e,n){var t=this._arr,r=this._keyIndices,o=t[e],i=t[n];t[e]=i,t[n]=o,r[i.key]=e,r[o.key]=n}},14015:function(e,n,t){"use strict";var r=t(43329);function o(e){this._isDirected=!r.has(e,"directed")||e.directed,this._isMultigraph=!!r.has(e,"multigraph")&&e.multigraph,this._isCompound=!!r.has(e,"compound")&&e.compound,this._label=void 0,this._defaultNodeLabelFn=r.constant(void 0),this._defaultEdgeLabelFn=r.constant(void 0),this._nodes={},this._isCompound&&(this._parent={},this._children={},this._children["\0"]={}),this._in={},this._preds={},this._out={},this._sucs={},this._edgeObjs={},this._edgeLabels={}}function i(e,n){e[n]?e[n]++:e[n]=1}function a(e,n){--e[n]||delete e[n]}function u(e,n,t,o){var i=""+n,a=""+t;if(!e&&i>a){var u=i;i=a,a=u}return i+"\x01"+a+"\x01"+(r.isUndefined(o)?"\0":o)}function s(e,n){return u(e,n.v,n.w,n.name)}e.exports=o,o.prototype._nodeCount=0,o.prototype._edgeCount=0,o.prototype.isDirected=function(){return this._isDirected},o.prototype.isMultigraph=function(){return this._isMultigraph},o.prototype.isCompound=function(){return this._isCompound},o.prototype.setGraph=function(e){return this._label=e,this},o.prototype.graph=function(){return this._label},o.prototype.setDefaultNodeLabel=function(e){return r.isFunction(e)||(e=r.constant(e)),this._defaultNodeLabelFn=e,this},o.prototype.nodeCount=function(){return this._nodeCount},o.prototype.nodes=function(){return r.keys(this._nodes)},o.prototype.sources=function(){var e=this;return r.filter(this.nodes(),function(n){return r.isEmpty(e._in[n])})},o.prototype.sinks=function(){var e=this;return r.filter(this.nodes(),function(n){return r.isEmpty(e._out[n])})},o.prototype.setNodes=function(e,n){var t=arguments,o=this;return r.each(e,function(e){t.length>1?o.setNode(e,n):o.setNode(e)}),this},o.prototype.setNode=function(e,n){return r.has(this._nodes,e)?arguments.length>1&&(this._nodes[e]=n):(this._nodes[e]=arguments.length>1?n:this._defaultNodeLabelFn(e),this._isCompound&&(this._parent[e]="\0",this._children[e]={},this._children["\0"][e]=!0),this._in[e]={},this._preds[e]={},this._out[e]={},this._sucs[e]={},++this._nodeCount),this},o.prototype.node=function(e){return this._nodes[e]},o.prototype.hasNode=function(e){return r.has(this._nodes,e)},o.prototype.removeNode=function(e){var n=this;if(r.has(this._nodes,e)){var t=function(e){n.removeEdge(n._edgeObjs[e])};delete this._nodes[e],this._isCompound&&(this._removeFromParentsChildList(e),delete this._parent[e],r.each(this.children(e),function(e){n.setParent(e)}),delete this._children[e]),r.each(r.keys(this._in[e]),t),delete this._in[e],delete this._preds[e],r.each(r.keys(this._out[e]),t),delete this._out[e],delete this._sucs[e],--this._nodeCount}return this},o.prototype.setParent=function(e,n){if(!this._isCompound)throw Error("Cannot set parent in a non-compound graph");if(r.isUndefined(n))n="\0";else{n+="";for(var t=n;!r.isUndefined(t);t=this.parent(t))if(t===e)throw Error("Setting "+n+" as parent of "+e+" would create a cycle");this.setNode(n)}return this.setNode(e),this._removeFromParentsChildList(e),this._parent[e]=n,this._children[n][e]=!0,this},o.prototype._removeFromParentsChildList=function(e){delete this._children[this._parent[e]][e]},o.prototype.parent=function(e){if(this._isCompound){var n=this._parent[e];if("\0"!==n)return n}},o.prototype.children=function(e){if(r.isUndefined(e)&&(e="\0"),this._isCompound){var n=this._children[e];if(n)return r.keys(n)}else if("\0"===e)return this.nodes();else if(this.hasNode(e))return[]},o.prototype.predecessors=function(e){var n=this._preds[e];if(n)return r.keys(n)},o.prototype.successors=function(e){var n=this._sucs[e];if(n)return r.keys(n)},o.prototype.neighbors=function(e){var n=this.predecessors(e);if(n)return r.union(n,this.successors(e))},o.prototype.isLeaf=function(e){return 0===(this.isDirected()?this.successors(e):this.neighbors(e)).length},o.prototype.filterNodes=function(e){var n=new this.constructor({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound});n.setGraph(this.graph());var t=this;r.each(this._nodes,function(t,r){e(r)&&n.setNode(r,t)}),r.each(this._edgeObjs,function(e){n.hasNode(e.v)&&n.hasNode(e.w)&&n.setEdge(e,t.edge(e))});var o={};return this._isCompound&&r.each(n.nodes(),function(e){n.setParent(e,function e(r){var i=t.parent(r);return void 0===i||n.hasNode(i)?(o[r]=i,i):i in o?o[i]:e(i)}(e))}),n},o.prototype.setDefaultEdgeLabel=function(e){return r.isFunction(e)||(e=r.constant(e)),this._defaultEdgeLabelFn=e,this},o.prototype.edgeCount=function(){return this._edgeCount},o.prototype.edges=function(){return r.values(this._edgeObjs)},o.prototype.setPath=function(e,n){var t=this,o=arguments;return r.reduce(e,function(e,r){return o.length>1?t.setEdge(e,r,n):t.setEdge(e,r),r}),this},o.prototype.setEdge=function(){var e,n,t,o,a=!1,s=arguments[0];"object"==typeof s&&null!==s&&"v"in s?(e=s.v,n=s.w,t=s.name,2==arguments.length&&(o=arguments[1],a=!0)):(e=s,n=arguments[1],t=arguments[3],arguments.length>2&&(o=arguments[2],a=!0)),e=""+e,n=""+n,r.isUndefined(t)||(t=""+t);var c=u(this._isDirected,e,n,t);if(r.has(this._edgeLabels,c))return a&&(this._edgeLabels[c]=o),this;if(!r.isUndefined(t)&&!this._isMultigraph)throw Error("Cannot set a named edge when isMultigraph = false");this.setNode(e),this.setNode(n),this._edgeLabels[c]=a?o:this._defaultEdgeLabelFn(e,n,t);var d=function(e,n,t,r){var o=""+n,i=""+t;if(!e&&o>i){var a=o;o=i,i=a}var u={v:o,w:i};return r&&(u.name=r),u}(this._isDirected,e,n,t);return e=d.v,n=d.w,Object.freeze(d),this._edgeObjs[c]=d,i(this._preds[n],e),i(this._sucs[e],n),this._in[n][c]=d,this._out[e][c]=d,this._edgeCount++,this},o.prototype.edge=function(e,n,t){var r=1==arguments.length?s(this._isDirected,arguments[0]):u(this._isDirected,e,n,t);return this._edgeLabels[r]},o.prototype.hasEdge=function(e,n,t){var o=1==arguments.length?s(this._isDirected,arguments[0]):u(this._isDirected,e,n,t);return r.has(this._edgeLabels,o)},o.prototype.removeEdge=function(e,n,t){var r=1==arguments.length?s(this._isDirected,arguments[0]):u(this._isDirected,e,n,t),o=this._edgeObjs[r];return o&&(e=o.v,n=o.w,delete this._edgeLabels[r],delete this._edgeObjs[r],a(this._preds[n],e),a(this._sucs[e],n),delete this._in[n][r],delete this._out[e][r],this._edgeCount--),this},o.prototype.inEdges=function(e,n){var t=this._in[e];if(t){var o=r.values(t);return n?r.filter(o,function(e){return e.v===n}):o}},o.prototype.outEdges=function(e,n){var t=this._out[e];if(t){var o=r.values(t);return n?r.filter(o,function(e){return e.w===n}):o}},o.prototype.nodeEdges=function(e,n){var t=this.inEdges(e,n);if(t)return t.concat(this.outEdges(e,n))}},44020:function(e,n,t){e.exports={Graph:t(14015),version:t(86471)}},89063:function(e,n,t){var r=t(43329),o=t(14015);e.exports={write:function(e){var n={options:{directed:e.isDirected(),multigraph:e.isMultigraph(),compound:e.isCompound()},nodes:r.map(e.nodes(),function(n){var t=e.node(n),o=e.parent(n),i={v:n};return r.isUndefined(t)||(i.value=t),r.isUndefined(o)||(i.parent=o),i}),edges:r.map(e.edges(),function(n){var t=e.edge(n),o={v:n.v,w:n.w};return r.isUndefined(n.name)||(o.name=n.name),r.isUndefined(t)||(o.value=t),o})};return r.isUndefined(e.graph())||(n.value=r.clone(e.graph())),n},read:function(e){var n=new o(e.options).setGraph(e.value);return r.each(e.nodes,function(e){n.setNode(e.v,e.value),e.parent&&n.setParent(e.v,e.parent)}),r.each(e.edges,function(e){n.setEdge({v:e.v,w:e.w,name:e.name},e.value)}),n}}},43329:function(e,n,t){var r;try{r={clone:t(13784),constant:t(551),each:t(72856),filter:t(69238),has:t(73915),isArray:t(19785),isEmpty:t(90104),isFunction:t(28338),isUndefined:t(92465),keys:t(50098),map:t(55807),reduce:t(34172),size:t(36417),transform:t(42673),union:t(68946),values:t(58185)}}catch(e){}r||(r=window._),e.exports=r},86471:function(e){e.exports="2.1.8"},46008:function(e,n,t){var r=t(50517)("length");e.exports=r},58403:function(e,n,t){var r=t(55193);e.exports=function(e,n,t){for(var o=-1,i=e.length;++o<i;){var a=e[o],u=n(a);if(null!=u&&(void 0===s?u==u&&!r(u):t(u,s)))var s=u,c=a}return c}},59517:function(e){e.exports=function(e,n){return e>n}},73818:function(e){e.exports=function(e,n){return e<n}},67375:function(e,n,t){var r=t(52033),o=t(80068);e.exports=function(e,n){var t=-1,i=o(e)?Array(e.length):[];return r(e,function(e,r,o){i[++t]=n(e,r,o)}),i}},98497:function(e,n,t){var r=t(66070),o=t(79867),i=t(89278),a=t(67375),u=t(73303),s=t(39334),c=t(96348),d=t(31137),f=t(19785);e.exports=function(e,n,t){n=n.length?r(n,function(e){return f(e)?function(n){return o(n,1===e.length?e[0]:e)}:e}):[d];var h=-1;return n=r(n,s(i)),u(a(e,function(e,t,o){return{criteria:r(n,function(n){return n(e)}),index:++h,value:e}}),function(e,n){return c(e,n,t)})}},63005:function(e,n,t){var r=t(10228),o=t(79749);e.exports=function(e,n){return r(e,n,function(n,t){return o(e,t)})}},18365:function(e){var n=Math.ceil,t=Math.max;e.exports=function(e,r,o,i){for(var a=-1,u=t(n((r-e)/(o||1)),0),s=Array(u);u--;)s[i?u:++a]=e,e+=o;return s}},73303:function(e){e.exports=function(e,n){var t=e.length;for(e.sort(n);t--;)e[t]=e[t].value;return e}},42231:function(e,n,t){var r=t(66070);e.exports=function(e,n){return r(n,function(n){return e[n]})}},62079:function(e,n,t){var r=t(31137);e.exports=function(e){return"function"==typeof e?e:r}},17845:function(e,n,t){var r=t(55193);e.exports=function(e,n){if(e!==n){var t=void 0!==e,o=null===e,i=e==e,a=r(e),u=void 0!==n,s=null===n,c=n==n,d=r(n);if(!s&&!d&&!a&&e>n||a&&u&&c&&!s&&!d||o&&u&&c||!t&&c||!i)return 1;if(!o&&!a&&!d&&e<n||d&&t&&i&&!o&&!a||s&&t&&i||!u&&i||!c)return -1}return 0}},96348:function(e,n,t){var r=t(17845);e.exports=function(e,n,t){for(var o=-1,i=e.criteria,a=n.criteria,u=i.length,s=t.length;++o<u;){var c=r(i[o],a[o]);if(c){if(o>=s)return c;return c*("desc"==t[o]?-1:1)}}return e.index-n.index}},55294:function(e,n,t){var r=t(18365),o=t(57535),i=t(94919);e.exports=function(e){return function(n,t,a){return a&&"number"!=typeof a&&o(n,t,a)&&(t=a=void 0),n=i(n),void 0===t?(t=n,n=0):t=i(t),a=void 0===a?n<t?1:-1:i(a),r(n,t,a,e)}}},64090:function(e,n,t){var r=t(46008),o=t(25348),i=t(44088);e.exports=function(e){return o(e)?i(e):r(e)}},44088:function(e){var n="\ud800-\udfff",t="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",r="\ud83c[\udffb-\udfff]",o="[^"+n+"]",i="(?:\ud83c[\udde6-\uddff]){2}",a="[\ud800-\udbff][\udc00-\udfff]",u="(?:"+t+"|"+r+")?",s="[\\ufe0e\\ufe0f]?",c="(?:\\u200d(?:"+[o,i,a].join("|")+")"+s+u+")*",d=RegExp(r+"(?="+r+")|(?:"+[o+t+"?",t,i,a,"["+n+"]"].join("|")+")"+(s+u+c),"g");e.exports=function(e){for(var n=d.lastIndex=0;d.test(e);)++n;return n}},70236:function(e,n,t){var r=t(1197),o=t(85638),i=t(57535),a=t(53893),u=Object.prototype,s=u.hasOwnProperty,c=r(function(e,n){e=Object(e);var t=-1,r=n.length,c=r>2?n[2]:void 0;for(c&&i(n[0],n[1],c)&&(r=1);++t<r;)for(var d=n[t],f=a(d),h=-1,p=f.length;++h<p;){var v=f[h],l=e[v];(void 0===l||o(l,u[v])&&!s.call(e,v))&&(e[v]=d[v])}return e});e.exports=c},72856:function(e,n,t){e.exports=t(47003)},47003:function(e,n,t){var r=t(80594),o=t(52033),i=t(62079),a=t(19785);e.exports=function(e,n){return(a(e)?r:o)(e,i(n))}},3544:function(e,n,t){var r=t(49819),o=t(62079),i=t(53893);e.exports=function(e,n){return null==e?e:r(e,o(n),i)}},92465:function(e){e.exports=function(e){return void 0===e}},55807:function(e,n,t){var r=t(66070),o=t(89278),i=t(67375),a=t(19785);e.exports=function(e,n){return(a(e)?r:i)(e,o(n,3))}},25389:function(e,n,t){var r=t(88799),o=t(26194),i=t(89278);e.exports=function(e,n){var t={};return n=i(n,3),o(e,function(e,o,i){r(t,o,n(e,o,i))}),t}},7620:function(e,n,t){var r=t(58403),o=t(59517),i=t(31137);e.exports=function(e){return e&&e.length?r(e,i,o):void 0}},14176:function(e,n,t){var r=t(58403),o=t(73818),i=t(31137);e.exports=function(e){return e&&e.length?r(e,i,o):void 0}},70201:function(e,n,t){var r=t(58403),o=t(89278),i=t(73818);e.exports=function(e,n){return e&&e.length?r(e,o(n,2),i):void 0}},14648:function(e,n,t){var r=t(63005),o=t(24288)(function(e,n){return null==e?{}:r(e,n)});e.exports=o},4215:function(e,n,t){var r=t(55294)();e.exports=r},36417:function(e,n,t){var r=t(20186),o=t(3533),i=t(80068),a=t(88012),u=t(64090);e.exports=function(e){if(null==e)return 0;if(i(e))return a(e)?u(e):e.length;var n=o(e);return"[object Map]"==n||"[object Set]"==n?e.size:r(e).length}},95099:function(e,n,t){var r=t(23545),o=t(98497),i=t(1197),a=t(57535),u=i(function(e,n){if(null==e)return[];var t=n.length;return t>1&&a(e,n[0],n[1])?n=[]:t>2&&a(n[0],n[1],n[2])&&(n=[n[0]]),o(e,r(n,1),[])});e.exports=u},42673:function(e,n,t){var r=t(80594),o=t(80158),i=t(26194),a=t(89278),u=t(2173),s=t(19785),c=t(43854),d=t(28338),f=t(11611),h=t(48519);e.exports=function(e,n,t){var p=s(e),v=p||c(e)||h(e);if(n=a(n,4),null==t){var l=e&&e.constructor;t=v?p?new l:[]:f(e)&&d(l)?o(u(e)):{}}return(v?r:i)(e,function(e,r,o){return n(t,e,r,o)}),t}},68946:function(e,n,t){var r=t(23545),o=t(1197),i=t(92198),a=t(36468),u=o(function(e){return i(r(e,1,a,!0))});e.exports=u},46854:function(e,n,t){var r=t(65567),o=0;e.exports=function(e){var n=++o;return r(e)+n}},58185:function(e,n,t){var r=t(42231),o=t(50098);e.exports=function(e){return null==e?[]:r(e,o(e))}}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4277],{18225:function(e,s,t){var a=t(24246),i=t(98227);s.Z=e=>{let{alignment:s="center",...t}=e;return(0,a.jsx)(i.kCb,{boxSize:"full",align:"center",justify:s,children:(0,a.jsx)(i.$jN,{color:"primary",...t})})}},79789:function(e,s,t){t.d(s,{Hn:function(){return o},XU:function(){return r},Z5:function(){return c},aG:function(){return h},cB:function(){return n},hX:function(){return l},vQ:function(){return d}});var a=t(24246),i=t(98227);let n=e=>{let{text:s,...t}=e;return(0,a.jsx)(i.X6q,{fontSize:"sm",mt:4,mb:1,...t,children:s})},r=e=>{let{children:s}=e;return(0,a.jsx)(i.xvT,{fontSize:"14px",mb:4,children:s})},o=e=>{let{children:s,href:t}=e;return(0,a.jsx)(i.rUS,{href:t,textDecoration:"underline",isExternal:!0,children:s})},c=e=>{let{children:s}=e;return(0,a.jsx)(i.QI$,{fontSize:"14px",mb:4,children:s})},d=e=>{let{children:s}=e;return(0,a.jsx)(i.GSI,{fontSize:"14px",mb:4,ml:6,children:s})},l=e=>{let{children:s}=e;return(0,a.jsx)(i.EKh,{display:"block",whiteSpace:"pre",p:4,mb:4,overflowX:"scroll",children:s})},h=e=>{let{data:s}=e;return(0,a.jsxs)(i.iA_,{fontSize:"14px",children:[(0,a.jsx)(i.hrZ,{children:(0,a.jsxs)(i.Tr,{children:[(0,a.jsx)(i.Th,{children:"Permission"}),(0,a.jsx)(i.Th,{children:"Description"})]})}),(0,a.jsx)(i.p3B,{children:s.map(e=>(0,a.jsxs)(i.Tr,{children:[(0,a.jsx)(i.Td,{children:(0,a.jsx)(i.Vp9,{children:e.permission})}),(0,a.jsx)(i.Td,{children:e.description})]},e.permission))})]})}},12627:function(e,s,t){var a=t(24246),i=t(79283),n=t(34929);s.Z=e=>{let{selectedTaxonomies:s,showDisabled:t=!1,...r}=e,{getDataCategoryDisplayNameProps:o,getDataCategories:c}=(0,n.Z)(),d=(t?c():c().filter(e=>e.active)).filter(e=>!(null==s?void 0:s.includes(e.fides_key))).map(e=>{let{name:s,primaryName:t}=o(e.fides_key);return{value:e.fides_key,name:s,primaryName:t,description:e.description||""}});return(0,a.jsx)(i.l,{options:d,...r})}},97181:function(e,s,t){t.d(s,{d:function(){return d}});var a=t(24246),i=t(98227),n=t(34090),r=t(27378),o=t(46238),c=t(40324);let d=e=>{let{name:s,label:t,labelProps:d,tooltip:l,isRequired:h,layout:u="inline",helperText:x,...m}=e,[p,j,{setValue:g}]=(0,n.U$)(s),y=!!(j.touched&&j.error),[v,f]=(0,r.useState)("");p.value||"tags"!==m.mode&&"multiple"!==m.mode||(p.value=[]),"tags"===m.mode&&"string"==typeof p.value&&(p.value=[p.value]);let C="tags"===m.mode?(e,s)=>e?e.value!==v||p.value.includes(v)?m.optionRender?m.optionRender(e,s):e.label:'Create "'.concat(v,'"'):void 0:m.optionRender||void 0,S=e=>{f(e),m.onSearch&&m.onSearch(e)},A=(e,s)=>{g(e),m.onChange&&m.onChange(e,s)};return"inline"===u?(0,a.jsx)(i.NIc,{isInvalid:y,isRequired:h,children:(0,a.jsxs)(i.rjZ,{templateColumns:t?"1fr 3fr":"1fr",children:[t?(0,a.jsx)(c.__,{htmlFor:m.id||s,...d,children:t}):null,(0,a.jsxs)(i.jqI,{align:"center",children:[(0,a.jsxs)(i.jqI,{vertical:!0,flex:1,className:"mr-2",children:[(0,a.jsx)(i.WPr,{...p,id:m.id||s,"data-testid":"controlled-select-".concat(p.name),...m,optionRender:C,onSearch:"tags"===m.mode?S:void 0,onChange:A,value:p.value||void 0,status:y?"error":void 0}),x&&(0,a.jsx)(i.Q6r,{children:x}),(0,a.jsx)(c.Bc,{isInvalid:y,message:j.error,fieldName:p.name})]}),(0,a.jsx)(o.b,{label:l,className:y?"mt-2 self-start":void 0})]})]})}):(0,a.jsx)(i.NIc,{isInvalid:y,isRequired:h,children:(0,a.jsxs)(i.gCW,{alignItems:"start",children:[(0,a.jsxs)(i.jqI,{align:"center",children:[t?(0,a.jsx)(c.__,{htmlFor:m.id||s,fontSize:"xs",my:0,mr:1,...d,children:t}):null,(0,a.jsx)(o.b,{label:l})]}),(0,a.jsx)(i.WPr,{...p,id:m.id||s,"data-testid":"controlled-select-".concat(p.name),...m,optionRender:C,onSearch:"tags"===m.mode?S:void 0,onChange:A,value:p.value||void 0,status:y?"error":void 0}),x&&(0,a.jsx)(i.Q6r,{style:{marginTop:0},children:x}),(0,a.jsx)(c.Bc,{isInvalid:y,message:j.error,fieldName:p.name})]})})}},8133:function(e,s,t){var a=t(24246),i=t(98227);s.Z=e=>{let{title:s,children:t,isOpen:n,onClose:r,modalContentProps:o,showCloseButton:c=!1,footer:d,...l}=e;return(0,a.jsxs)(i.u_l,{isOpen:n,onClose:r,isCentered:!0,scrollBehavior:"inside",size:"xl",id:"add-modal",...l,children:[(0,a.jsx)(i.ZAr,{}),(0,a.jsxs)(i.hzk,{textAlign:"left",p:0,"data-testid":"add-modal-content",...o,children:[c&&(0,a.jsx)(i.olH,{}),(0,a.jsx)(i.xBx,{p:0,children:(0,a.jsx)(i.xuv,{backgroundColor:"gray.50",px:6,py:4,border:"1px",borderColor:"gray.200",borderTopRadius:6,display:"flex",justifyContent:"space-between",alignItems:"center",children:(0,a.jsx)(i.X6q,{as:"h3",size:"sm",children:s})})}),(0,a.jsx)(i.fef,{pb:4,overflow:"auto",children:t}),d&&(0,a.jsx)(i.mzw,{children:d})]})]})}},90980:function(e,s,t){t.d(s,{R:function(){return c}});var a=t(24246),i=t(98227),n=t(79894),r=t.n(n),o=t(63662);let c=e=>{let{onClick:s,...t}=e;return(0,a.jsxs)(i.kCb,{alignItems:"center",mt:-4,mb:3,onClick:s,cursor:"pointer",...t,children:[(0,a.jsx)(i.wpx,{"aria-label":"Back",icon:(0,a.jsx)(i.Rpv,{}),className:"mr-2",size:"small"}),(0,a.jsx)(i.xvT,{as:"a",fontSize:"sm",fontWeight:"500",children:"Back"})]})};s.Z=e=>{let{backPath:s,...t}=e,n=(0,o.useRouter)();return(0,a.jsxs)(i.kCb,{alignItems:"center",mb:6,...t,children:[(0,a.jsx)(i.wpx,{onClick:()=>n.push(s),"aria-label":"Back",icon:(0,a.jsx)(i.Rpv,{}),className:"mr-2",size:"small"}),(0,a.jsx)(i.xvT,{as:r(),href:s,tabIndex:-1,fontSize:"sm",fontWeight:"500",children:"Back"})]})}},15872:function(e,s,t){var a=t(24246),i=t(98227),n=t(86677);t(27378);var r=t(77830),o=t(14207);s.Z=e=>{let{connection_key:s,showMenu:t}=e,{isOpen:c,onOpen:d,onClose:l}=(0,i.qY0)(),[h,u]=(0,o.R5)(),x=(0,n.useRouter)(),m=()=>{u.isLoading||l()};return(0,a.jsxs)(a.Fragment,{children:[t&&(0,a.jsx)(i.sNh,{_focus:{color:"complimentary.500",bg:"gray.100"},onClick:d,children:(0,a.jsx)(i.xvT,{fontSize:"sm",children:"Delete"})}),!t&&(0,a.jsx)(i.wpx,{onClick:d,children:"Delete integration"}),(0,a.jsxs)(i.u_l,{isCentered:!0,isOpen:c,onClose:m,children:[(0,a.jsx)(i.ZAr,{}),(0,a.jsxs)(i.hzk,{children:[(0,a.jsx)(i.xBx,{children:"Delete integration"}),(0,a.jsx)(i.olH,{}),(0,a.jsx)(i.fef,{pb:6,children:(0,a.jsx)(i.Kqy,{direction:"column",spacing:"15px",children:(0,a.jsx)(i.xvT,{color:"gray.600",fontSize:"sm",fontWeight:"sm",lineHeight:"20px",children:"Deleting an integration may impact any privacy request that is currently in progress. Do you wish to proceed?"})})}),(0,a.jsxs)(i.mzw,{className:"flex gap-4",children:[(0,a.jsx)(i.wpx,{onClick:m,className:"w-1/2",children:"Cancel"}),(0,a.jsx)(i.wpx,{onClick:()=>{s&&(h(s),t||x.push(r.KH))},loading:u.isLoading,type:"primary",className:"w-1/2",children:"Delete integration"})]})]})]})]})}},33335:function(e,s,t){t.d(s,{E:function(){return a}});let a=e=>e.toLowerCase().replace(/[ .]/g,"_").replace(/[^a-zA-Z0-9_<>-]/g,"")},45216:function(e,s,t){var a=t(98227),i=t(812),n=t(16394),r=t(14207);s.Z=e=>{let[s,{data:t,fulfilledTimeStamp:o,isLoading:c,isFetching:d}]=(0,r.h2)(),l=(0,a.pmc)();return{testConnection:async()=>{var t,a,n,r;if(!e)return;let o=await s(e.key);if(o.isError)l({status:"error",description:(0,i.e$)(o.error,"Unable to test connection. Please try again.")});else if((null===(t=o.data)||void 0===t?void 0:t.test_status)==="succeeded")l({status:"success",description:"Connected successfully"});else if((null===(a=o.data)||void 0===a?void 0:a.test_status)==="failed"){let e="Connection test failed.";(null===(n=o.data)||void 0===n?void 0:n.failure_reason)&&(e+=" ".concat(null===(r=o.data)||void 0===r?void 0:r.failure_reason)),l({status:"warning",description:e})}},isLoading:c||d,testData:{timestamp:o?(0,n.p6)(o):null==e?void 0:e.last_test_timestamp,succeeded:t?"succeeded"===t.test_status:!!(null==e?void 0:e.last_test_succeeded),authorized:!!(null==e?void 0:e.authorized),connectionKey:null==e?void 0:e.key}}}},41553:function(e,s,t){var a=t(24246),i=t(98227),n=t(16394);s.Z=e=>{let{testData:s,connectionOption:t}=e;if((null==t?void 0:t.authorization_required)&&!s.authorized)return(0,a.jsx)(i.kCb,{align:"center","data-testid":"connection-status",children:(0,a.jsx)(i.xvT,{color:"error-text.900",children:"Authorization required"})});if(!s.timestamp)return(0,a.jsx)(i.xvT,{"data-testid":"connection-status",children:"Connection not tested"});let r=(0,n.p6)(s.timestamp);return s.succeeded?(0,a.jsxs)(i.kCb,{color:"success-text.900",align:"center","data-testid":"connection-status",children:[(0,a.jsx)(i.rE2,{mr:2,boxSize:4}),(0,a.jsxs)(i.xvT,{children:["Last connected ",r]})]}):(0,a.jsxs)(i.kCb,{color:"error-text.900",align:"center","data-testid":"connection-status",children:[(0,a.jsx)(i.iid,{mr:2,boxSize:4}),(0,a.jsxs)(i.xvT,{children:["Last connection failed ",r]})]})}},75595:function(e,s,t){var a=t(24246),i=t(98227),n=t(17245),r=t(20682),o=t(41337),c=t(15872),d=t(45216),l=t(38187),h=t(41553),u=t(93633),x=t(80388),m=t(64176),p=t(35030);s.Z=e=>{var s,t;let{integration:j,integrationTypeInfo:g,showTestNotice:y,otherButtons:v,showDeleteButton:f,configureButtonLabel:C="Configure",onConfigureClick:S}=e,{testConnection:A,isLoading:b,testData:D}=(0,d.Z)(j),R=(0,n.pI)(j),{data:w}=(0,r.$I)({}),E=(null==w?void 0:w.items)||[],T=g||(0,l.ZP)(null==j?void 0:j.connection_type,null==j?void 0:null===(s=j.saas_config)||void 0===s?void 0:s.type,E),_=null==j?void 0:null===(t=j.saas_config)||void 0===t?void 0:t.type,k=(0,m.Z)(null==j?void 0:j.connection_type,_&&Object.values(x.m).includes(_)?_:void 0),{handleAuthorize:H,needsAuthorization:I}=(0,u.z)({connection:j,connectionOption:k,testData:D});return(0,a.jsxs)(i.xuv,{borderWidth:1,borderColor:"gray.200",borderRadius:"lg",overflow:"hidden",padding:"12px",marginBottom:"24px","data-testid":"integration-info-".concat(null==j?void 0:j.key),children:[(0,a.jsxs)(i.kCb,{children:[(0,a.jsx)(o.ZP,{data:R,size:50}),(0,a.jsxs)(i.kCb,{direction:"column",flexGrow:1,marginLeft:"16px",children:[(0,a.jsx)(i.xvT,{color:"gray.700",fontWeight:"semibold",children:(null==j?void 0:j.name)||"(No name)"}),y?(0,a.jsx)(h.Z,{testData:D,connectionOption:k}):(0,a.jsx)(i.xvT,{color:"gray.700",fontSize:"sm",fontWeight:"semibold",mt:1,children:(0,p.qS)(T.category)})]}),(0,a.jsxs)("div",{className:"flex gap-4",children:[f&&j&&(0,a.jsx)(c.Z,{showMenu:!1,connection_key:j.key}),y&&I&&(0,a.jsx)(i.wpx,{onClick:H,"data-testid":"authorize-integration-btn",children:"Authorize integration"}),y&&!I&&(0,a.jsx)(i.wpx,{onClick:A,loading:b,"data-testid":"test-connection-btn",children:"Test connection"}),v,S&&(0,a.jsx)(i.wpx,{onClick:S,"data-testid":"configure-btn",children:C})]})]}),(0,a.jsx)(i.Eq9,{marginTop:"16px",children:T.tags.map(e=>(0,a.jsx)(i.j8w,{children:e},e))})]})}},40774:function(e,s,t){t.d(s,{Z:function(){return S}});var a,i,n=t(24246),r=t(98227),o=t(27378),c=t(22485),d=t(46381),l=t(12627),h=t(812),u=t(46238),x=t(90980),m=t(46628),p=t(11013),j=t(31883);let g={rules:[{regex:void 0,dataCategory:void 0}]};var y=e=>{var s,t,a;let{config:i,onBackClick:o}=e,[y]=r.PPS.useForm(),v=(0,r.pmc)(),[f,{isLoading:C}]=(0,p.$y)(),[S,{isLoading:A}]=(0,p.ww)(),b=e=>({name:e.name,description:e.description,classify_params:{context_regex_pattern_mapping:e.rules.map(e=>{let{regex:s,dataCategory:t}=e;return[s,t]})}}),D=(e,s)=>{(0,j.D4)(e)?v((0,m.Vo)((0,h.e$)(e.error,"A problem occurred"))):(v((0,m.t5)(s?"Monitor config created successfully":"Monitor config updated successfully")),o())},R=async e=>{let s=b(e);D(i?await S({...s,id:i.id}):await f(s),!i)},w=e=>{let{file:s}=e;if(!s)return;let t=new FileReader;t.onload=e=>{try{var s;let t=null===(s=e.target)||void 0===s?void 0:s.result,{data:a}=(0,d.parse)(t,{skipEmptyLines:!0,header:!1}),i=a.map(e=>{let[s,t]=e;return{regex:s,dataCategory:t}});y.setFieldValue("rules",i),v((0,m.t5)("CSV patterns imported successfully"))}catch(e){v((0,m.Vo)("Failed to parse CSV file"))}},t.readAsText(s)};return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(x.R,{onClick:o,className:"pt-3"}),(0,n.jsx)(c.ZT.Title,{level:2,children:i?"Edit ".concat(i.name):"Create new configuration"}),(0,n.jsx)(c.ZT.Paragraph,{className:"mt-2",children:'Match regular expressions to data categories to customize classification. Use the "shared monitor configuration" field when editing monitors to apply this configuration.'}),(0,n.jsxs)(r.PPS,{name:"monitor-template",layout:"vertical",form:y,onFinish:R,className:"mt-4",initialValues:i?{...i,rules:null!==(a=null==i?void 0:null===(t=i.classify_params)||void 0===t?void 0:null===(s=t.context_regex_pattern_mapping)||void 0===s?void 0:s.map(e=>{let[s,t]=e;return{regex:s,dataCategory:t}}))&&void 0!==a?a:[]}:g,validateTrigger:["onBlur","onChange"],children:[(0,n.jsx)(r.bue,{children:(0,n.jsxs)(r.JGx,{span:24,children:[(0,n.jsx)(r.PPS.Item,{label:"Configuration name",name:"name",rules:[{required:!0,message:"Config name is required"}],"data-testid":"form-item-name",children:(0,n.jsx)(r.AntInput,{autoFocus:!0,"data-testid":"input-name"})}),(0,n.jsx)(r.PPS.Item,{label:"Description",name:"description","data-testid":"form-item-description",children:(0,n.jsx)(r.AntInput.TextArea,{"data-testid":"input-description"})})]})}),(0,n.jsx)(r.PPS.List,{name:"rules",rules:[{validator:(e,s)=>0===s.length?Promise.reject(Error("Please input at least one pattern")):Promise.resolve()}],children:(e,s,t)=>{let{add:a,remove:d}=s,{errors:h}=t;return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(r.jqI,{justify:"space-between",children:[(0,n.jsx)(c.ZT.Title,{level:3,className:"pb-5",children:"Regex patterns"}),!i&&(0,n.jsxs)(r.jqI,{gap:8,align:"center",children:[(0,n.jsx)(u.b,{label:"Upload a CSV to map regex patterns to data categories. Format: regex,data_category",placement:"left"}),(0,n.jsx)(r.pMK,{accept:".csv",showUploadList:!1,beforeUpload:()=>!1,onChange:w,children:(0,n.jsx)(r.wpx,{icon:(0,n.jsx)(r.PJP.gqx,{}),iconPosition:"end",size:"small","data-testid":"upload-csv-btn",children:"Upload CSV"})})]})]}),e.map((s,t)=>{let{key:i,name:o,...c}=s;return(0,n.jsxs)(r.bue,{align:"middle",children:[(0,n.jsx)(r.JGx,{span:11,children:(0,n.jsx)(r.PPS.Item,{label:"On match",...c,name:[o,"regex"],rules:[{required:!0,message:"Regex is required"}],"data-testid":"form-item-rules.".concat(o,".regex"),children:(0,n.jsx)(r.AntInput,{placeholder:"Enter a regular expression","data-testid":"input-rules.".concat(o,".regex")})})}),(0,n.jsx)(r.JGx,{span:1,className:"flex justify-center pt-[5px]",children:"->"}),(0,n.jsx)(r.JGx,{span:11,className:"pr-2",children:(0,n.jsx)(r.PPS.Item,{label:"Assign",...c,name:[o,"dataCategory"],rules:[{required:!0,message:"Data category is required"}],"data-testid":"form-item-rules.".concat(o,".dataCategory"),children:(0,n.jsx)(l.Z,{selectedTaxonomies:[],variant:"outlined",placeholder:"Select a data category",autoFocus:!1,allowClear:!0,"data-testid":"input-rules.".concat(o,".dataCategory")})})}),(0,n.jsx)(r.JGx,{span:1,className:"mt-[7.25px]",children:t===e.length-1?(0,n.jsx)(r.wpx,{onClick:()=>a(),icon:(0,n.jsx)(r.PJP.mm_,{}),"aria-label":"Add new rule","data-testid":"add-rule-btn"}):(0,n.jsx)(r.wpx,{onClick:()=>d(o),icon:(0,n.jsx)(r.PJP.ZNm,{}),"aria-label":"Remove rule","data-testid":"remove-rule-".concat(o)})})]},i)}),(0,n.jsx)(r.PPS.ErrorList,{errors:h}),(0,n.jsx)(r.PPS.Item,{label:null,className:"mb-0",children:(0,n.jsxs)(r.jqI,{justify:"end",gap:8,children:[(0,n.jsx)(r.wpx,{onClick:o,children:"Cancel"}),(0,n.jsx)(r.wpx,{type:"primary",htmlType:"submit",loading:C||A,"data-testid":"save-btn",children:"Save"})]})})]})}})]})]})},v=t(47935),f=e=>{let{onEditClick:s}=e,[t]=(0,p.m5)(),a=(0,r.pmc)(),i=async e=>{let s=await t({id:e});(0,j.D4)(s)?a((0,m.Vo)((0,h.e$)(s.error,"A problem occurred deleting this config"))):a((0,m.t5)("Monitor config deleted successfully"))};return[{title:"Name",dataIndex:"name",key:"name"},{title:"Description",dataIndex:"description",key:"description"},{title:"Actions",key:"actions",render:(e,t)=>(0,n.jsxs)(r.jqI,{className:"gap-2",children:[(0,n.jsx)(r.wpx,{size:"small",onClick:()=>s(t),icon:(0,n.jsx)(r.PJP.I8b,{}),"data-testid":"edit-btn","aria-label":"Edit"}),(0,n.jsx)(r.wpx,{size:"small",onClick:()=>i(t.id),icon:(0,n.jsx)(r.PJP.ZNm,{}),"aria-label":"Delete"})]})}]},C=e=>{let{onNewClick:s,onRowClick:t}=e,{onPreviousPageClick:a,isPreviousPageDisabled:i,onNextPageClick:o,isNextPageDisabled:d,pageSize:l,setPageSize:h,PAGE_SIZES:u,startRange:x,endRange:m,pageIndex:j}=(0,v.oi)(),{data:g,isLoading:y,isFetching:C}=(0,p.eV)({page:j,size:l}),S=f({onEditClick:t});return y||C?(0,n.jsx)(r.ZJQ,{size:"large",className:"flex h-full items-center justify-center"}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(c.ZT.Title,{level:2,children:"Shared monitor configurations"}),(0,n.jsx)(c.ZT.Paragraph,{className:"mb-2 mt-4",children:"Shared monitor configurations can be applied to monitors to customize classification."}),(0,n.jsx)(r.wpx,{type:"primary",onClick:s,"data-testid":"create-new-btn",className:"mb-3",children:"Create new"}),(0,n.jsx)(r.V5H,{columns:S,dataSource:null==g?void 0:g.items,pagination:!1,onRow:e=>({"data-testid":"config-".concat(e.id)}),locale:{emptyText:(0,n.jsx)(c.ZT.Paragraph,{className:"py-8",children:"No shared monitor configs found"})}}),(0,n.jsx)(r.jqI,{justify:"space-between",className:"mt-4",children:(0,n.jsx)(v.s8,{totalRows:(null==g?void 0:g.total)||0,pageSizes:u,setPageSize:h,onPreviousPageClick:a,isPreviousPageDisabled:i,onNextPageClick:o,isNextPageDisabled:d,startRange:x,endRange:m})})]})};(a=i||(i={})).MAIN_VIEW="main",a.FORM_VIEW="form";var S=()=>{let[e,s]=(0,o.useState)(!1),[t,a]=(0,o.useState)(void 0),[i,c]=(0,o.useState)("main"),d=()=>{c("main"),a(void 0)};return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(r.wpx,{icon:(0,n.jsx)(r.PJP.Zrf,{}),iconPosition:"end",onClick:()=>s(!0),"data-testid":"configurations-btn",children:"Shared configs"}),(0,n.jsxs)(r.$zI,{open:e,onCancel:()=>{d(),s(!1)},destroyOnHidden:!0,centered:!0,width:768,footer:null,children:["form"===i&&(0,n.jsx)(y,{config:t,onBackClick:d}),"main"===i&&(0,n.jsx)(C,{onNewClick:()=>c("form"),onRowClick:e=>{a(e),c("form"),s(!0)}})]})]})}},21365:function(e,s,t){var a=t(24246),i=t(98227),n=t(34090),r=t(90104),o=t.n(r),c=t(92465),d=t.n(c),l=t(25389),h=t.n(l),u=t(15539),x=t.n(u),m=t(86677),p=t(27378),j=t(18225),g=t(97181),y=t(71248),v=t(40324),f=t(46782),C=t(812),S=t(77830),A=t(20682),b=t(41966),D=t(94725),R=t(19812),w=t(33335),E=t(1315),T=t(65735),_=t(31883);let k=e=>{let{dirty:s,isValid:t,submitForm:a,loading:i,onFormStateChange:n}=e;return(0,p.useEffect)(()=>{n&&n({dirty:s,isValid:t,submitForm:a,loading:i})},[s,t,a,i,n]),null};s.Z=e=>{var s,t;let{connection:r,connectionOption:c,onClose:l,description:u,onFormStateChange:p}=e,[H,{isLoading:I}]=(0,D.Pp)(),[F,{isLoading:B}]=(0,D.pH)(),[O,{isLoading:L}]=(0,E.qd)(),P=(0,m.useRouter)(),[q]=(0,D.pL)(),M=c.identifier!==T.Rj.MANUAL_TASK,{data:U,isLoading:N}=(0,A.n3)(c.identifier,{skip:!M}),{data:z}=(0,E.K3)(),G=null==z?void 0:z.map(e=>{var s;return{label:null!==(s=e.name)&&void 0!==s?s:e.fides_key,value:e.fides_key}}),{data:Q}=(0,b.LH)({minimal:!0,connection_type:T.Rj.BIGQUERY}),Z=null==Q?void 0:Q.map(e=>{var s;return{label:null!==(s=e.name)&&void 0!==s?s:e.fides_key,value:e.fides_key}}),{patchConnectionDatasetConfig:X,initialDatasets:W}=(0,R.t)({connectionConfig:r}),{getFieldValidation:Y,preprocessValues:V}=(0,f.l)(U),K={name:null!==(s=null==r?void 0:r.name)&&void 0!==s?s:"",description:null!==(t=null==r?void 0:r.description)&&void 0!==t?t:"",...M&&{secrets:h()(null==U?void 0:U.properties,(e,s)=>{var t,a,i;return null!==(i=null!==(a=null==r?void 0:null===(t=r.secrets)||void 0===t?void 0:t[s])&&void 0!==a?a:e.default)&&void 0!==i?i:""})},dataset:W},J=(0,i.pmc)(),$=!!r,ee=c.type===T.Zi.SAAS,es=c.identifier===T.Rj.WEBSITE,et=e=>x()(h()(e,(e,s)=>{var t,a;return(null!==(a=null==r?void 0:null===(t=r.secrets)||void 0===t?void 0:t[s])&&void 0!==a?a:"")===e?void 0:e}),d()),ea=async e=>{var s;let t;let a=V(e),i=M?et(a.secrets):{},n=$?{...r,disabled:null!==(s=r.disabled)&&void 0!==s&&s,name:e.name,description:e.description,secrets:void 0}:{name:e.name,key:(0,w.E)(e.name),connection_type:c.identifier,access:T.uv.READ,disabled:!1,description:e.description,secrets:a.secrets,dataset:e.dataset};if(t=e.system_fides_key?await O({systemFidesKey:e.system_fides_key,connectionConfigs:[n]}):ee&&!$?await q({...n,instance_key:(0,w.E)(e.name),saas_connector_type:c.identifier,secrets:e.secrets||{}}):await F(n),(0,_.D4)(t)){J({status:"error",description:(0,C.e$)(t.error,"A problem occurred while ".concat($?"updating":"creating"," this integration. Please try again."))});return}if(!M||!e.secrets){J({status:"success",description:"Integration ".concat($?"updated":"created"," successfully")}),l();return}if(!o()(i)){let e=await H({connection_key:n.key,secrets:i});if((0,_.D4)(e)){J({status:"error",description:(0,C.e$)(e.error,"An error occurred while ".concat($?"updating":"creating"," this integration's secret. Please try again."))});return}}J({status:"success",description:"Integration secret ".concat($?"updated":"created"," successfully")}),l(),$||P.push({pathname:S.jh,query:{id:n.key}}),n&&e.dataset&&c.identifier===T.Rj.DATAHUB&&await X(e,n.key,{showSuccessAlert:!1})},ei=I||B||L;if(N)return(0,a.jsx)(j.Z,{});let en=e=>Object.entries(e.properties).map(s=>{let[t,i]=s,n="secrets.".concat(t);return(0,a.jsx)(y.A,{name:n,fieldSchema:i,isRequired:e.required.includes(t),secretsSchema:e,validate:Y(t,i)},n)});return(0,a.jsxs)(a.Fragment,{children:[u&&(0,a.jsx)(i.xuv,{padding:"20px 24px",backgroundColor:"gray.50",borderRadius:"md",border:"1px solid",borderColor:"gray.200",fontSize:"sm",marginTop:"16px",children:u}),(0,a.jsx)(n.J9,{initialValues:K,enableReinitialize:!0,onSubmit:ea,children:e=>{let{dirty:s,isValid:t,submitForm:r}=e;return(0,a.jsxs)(n.l0,{children:[(0,a.jsxs)(i.gCW,{alignItems:"start",spacing:6,mt:4,children:[(0,a.jsx)(v.j0,{id:"name",name:"name",label:"Name",variant:"stacked",isRequired:!0}),(0,a.jsx)(v.j0,{id:"description",name:"description",label:"Description",variant:"stacked"}),M&&U&&en(U),!$&&!ee&&!es&&(0,a.jsx)(g.d,{id:"system_fides_key",name:"system_fides_key",options:null!=G?G:[],label:"System",tooltip:"The system to associate with the integration",layout:"stacked"}),c.identifier===T.Rj.DATAHUB&&(0,a.jsx)(g.d,{id:"dataset",name:"dataset",options:null!=Z?Z:[],label:"Datasets",tooltip:"Only BigQuery datasets are supported. Selected datasets will sync with matching DataHub datasets. If none are selected, all datasets will be included by default.",layout:"stacked",mode:"multiple"})]}),(0,a.jsx)(k,{dirty:s,isValid:t,submitForm:r,loading:ei,onFormStateChange:p})]})}})]})}},38187:function(e,s,t){t.d(s,{FO:function(){return M},jq:function(){return U},ZP:function(){return G}});var a=t(24246),i=t(98227),n=t(79789),r=e=>{let{children:s}=e,{isOpen:t,onToggle:n}=(0,i.qY0)();return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(i.UO1,{in:t,children:s}),(0,a.jsx)(i.wpx,{type:"link",size:"small",onClick:n,children:t?"Show less":"Show more"})]})},o=t(65735),c=t(28946),d=t(87174);let l={name:"Google BigQuery",key:"bq_placeholder",connection_type:o.Rj.BIGQUERY,access:o.uv.READ,created_at:""},h=[{permission:"bigquery.jobs.create",description:"Run jobs (e.g. queries) within the project. This is only needed for the Fides Project where the Fides service account is located."},{permission:"bigquery.jobs.list",description:"Manage the queries that the service account performs. This is only needed for the Fides Project where the Fides service account is located."},{permission:"bigquery.routines.get",description:"Allow the service account to retrieve custom routines (e.g. queries) on associated datasets and tables."},{permission:"bigquery.routines.list",description:"Allow the service account to manage the custom routines (e.g. queries) that run on associated datasets and tables."}],u=[{permission:"bigquery.datasets.get",description:"Retrieve metadata and list tables for the specified project."},{permission:"bigquery.tables.get",description:"Retrieve metadata for the specified table."},{permission:"bigquery.tables.getData",description:"Read data in the specified table."},{permission:"bigquery.tables.list",description:"List all tables in the specified dataset."},{permission:"resourcemanager.projects.get",description:"Retrieve metadata for the specified project."}],x={placeholder:l,category:c.k.DATA_WAREHOUSE,overview:(0,a.jsx)(()=>(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(n.cB,{text:"Overview"}),(0,a.jsx)(n.XU,{children:"Continuously monitor BigQuery to detect and track schema-level changes, automatically discover and label data categories as well as automatically process DSR (privacy requests) and consent enforcement to proactively manage data governance risks."}),(0,a.jsxs)(r,{children:[(0,a.jsx)(n.cB,{text:"Categories"}),(0,a.jsxs)(n.Z5,{children:[(0,a.jsx)(i.HCh,{children:"Data Warehouse"}),(0,a.jsx)(i.HCh,{children:"Storage system"}),(0,a.jsx)(i.HCh,{children:"Cloud provider"}),(0,a.jsx)(i.HCh,{children:"Data detection"}),(0,a.jsx)(i.HCh,{children:"Data discovery"}),(0,a.jsx)(i.HCh,{children:"DSR automation"}),(0,a.jsx)(i.HCh,{children:"Consent orchestration"})]}),(0,a.jsx)(n.cB,{text:"Permissions"}),(0,a.jsx)(n.XU,{children:"For detection and discovery, Fides requires a read-only BigQuery service account with limited permissions. If you intend to automate governance for DSR or Consent, Fides requires a read-and-write BigQuery service account to any project you would like Fides to govern."}),(0,a.jsx)(n.XU,{children:"A BigQuery administrator can create the necessary role for Fides using BigQuery's roles guide and assign this to a service account using BigQuery's service account guide."}),(0,a.jsx)(n.XU,{children:"The permissions allow Fides to read the schema of, and data stored in projects, datasets and tables as well write restricted updates based on your policy configurations to tables you specify as part of DSR and Consent orchestration."}),(0,a.jsx)(n.cB,{text:"Permissions list"}),(0,a.jsxs)(n.Z5,{children:[(0,a.jsx)(i.HCh,{children:"bigquery.jobs.create"}),(0,a.jsx)(i.HCh,{children:"bigquery.jobs.list"}),(0,a.jsx)(i.HCh,{children:"bigquery.routines.get"}),(0,a.jsx)(i.HCh,{children:"bigquery.routines.list"}),(0,a.jsx)(i.HCh,{children:"bigquery.datasets.get"}),(0,a.jsx)(i.HCh,{children:"bigquery.tables.get"}),(0,a.jsx)(i.HCh,{children:"bigquery.tables.getData"}),(0,a.jsx)(i.HCh,{children:"bigquery.tables.list"}),(0,a.jsx)(i.HCh,{children:"bigquery.tables.updateData"}),(0,a.jsx)(i.HCh,{children:"resourcemanager.projects.get"})]})]})]}),{}),instructions:(0,a.jsx)(()=>(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(n.cB,{text:"Configuring a Fides -> BigQuery Integration"}),(0,a.jsx)(n.cB,{text:"Step 1: Create a Fides project"}),(0,a.jsxs)(n.XU,{children:["Create a Fides Project using"," ",(0,a.jsx)(n.Hn,{href:"https://cloud.google.com/resource-manager/docs/creating-managing-projects#creating_a_project",children:"BigQuery's project creation guide"}),"."]}),(0,a.jsx)(n.cB,{text:"Step 2: Create a Fides role in GCP"}),(0,a.jsxs)(n.vQ,{children:[(0,a.jsxs)(i.HCh,{children:["Create a custom role for Fides using BigQuery's"," ",(0,a.jsx)(n.Hn,{href:"https://cloud.google.com/iam/docs/creating-custom-roles#creating_a_custom_role",children:"roles guide"}),"."]}),(0,a.jsx)(i.HCh,{children:"Follow the sections below to grant permissions to this role for the Fides project and any project you would like Fides to manage."})]}),(0,a.jsxs)(r,{children:[(0,a.jsx)(n.cB,{text:"Step 3: Assign permissions to the Fides project"}),(0,a.jsx)(n.XU,{children:"Assign the following permissions to the Fides Project that will be used by your Fides service account to run queries:"}),(0,a.jsx)(n.aG,{data:h}),(0,a.jsx)(n.cB,{text:"Step 4: Assign permissions to any project you'd like Fides to monitor"}),(0,a.jsx)(n.XU,{children:"Grant the following permissions to the Fides service account in every project where you would like Fides detection and discovery monitoring."}),(0,a.jsx)(n.aG,{data:u}),(0,a.jsx)(n.cB,{text:"Step 5: Create a Fides service account in the Fides Project"}),(0,a.jsxs)(n.vQ,{children:[(0,a.jsxs)(i.HCh,{children:["Create a service account for Fides using BigQuery's"," ",(0,a.jsx)(n.Hn,{href:"https://cloud.google.com/iam/docs/service-accounts-create",children:"service account guide"}),"."]}),(0,a.jsx)(i.HCh,{children:"Assign the previously created role to this service account."}),(0,a.jsxs)(i.HCh,{children:["Download the service account JSON keyfile."," ",(0,a.jsx)("strong",{children:"Note: this is sensitive information that should not be shared."})," ","An example of this is below:"]})]}),(0,a.jsx)(n.hX,{children:'{\n "type": "service_account",\n "project_id": "project-id-123456",\n "private_key_id": "0123456789abcdef0123456789abcdef01234567",\n "private_key": "-----BEGIN PRIVATE KEY-----\\nMIIyourkey-----\\nEND PRIVATE KEY-----\\n",\n "client_email": "test@project-id-123456.iam.gserviceaccount.com",\n "client_id": "012345678901234567890",\n "auth_uri": "https://accounts.google.com/o/oauth2/auth",\n "token_uri": "https://oauth2.googleapis.com/token",\n "auth_provider_x509_cert_url": "https://www.googleapis.com/oauth2/v1/certs",\n "client_x509_cert_url": "https://www.googleapis.com/robot/v1/metadata/x509/test%40project-id-123456.iam.gserviceaccount.com"\n}'}),(0,a.jsx)(n.cB,{text:"Step 6: Use the JSON key to authenticate your integration"}),(0,a.jsx)(n.XU,{children:"Provide the JSON key to your Fides instance to securely connect Fides."})]})]}),{}),tags:["DSR Automation","Discovery","Detection"],enabledFeatures:[d.q.DATA_DISCOVERY]},m={name:"Datahub",key:"datahub_placeholder",connection_type:o.Rj.DATAHUB,access:o.uv.READ,created_at:""},p=(0,a.jsx)(a.Fragment,{children:"Set up a connection to your DataHub instance by providing a name, server URL, and access token. You can also select the BigQuery datasets you'd like to sync—these will be matched with corresponding datasets in DataHub. If no datasets are selected, all available BigQuery datasets will be included by default."}),j={placeholder:m,category:c.k.DATA_CATALOG,overview:(0,a.jsx)(()=>(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(n.cB,{text:"Overview"}),(0,a.jsx)(n.XU,{children:"DataHub is a metadata platform designed to help organizations manage and govern their data. It acts as a centralized repository for tracking and discovering data assets across an organization, helping data teams understand where their data resides, how it's used, and how it flows through various systems."}),(0,a.jsxs)(r,{children:[(0,a.jsx)(n.cB,{text:"Categories"}),(0,a.jsx)(n.Z5,{children:(0,a.jsx)(i.HCh,{children:"Data Catalog"})}),(0,a.jsx)(n.cB,{text:"Permissions"}),(0,a.jsx)(n.Z5,{children:(0,a.jsx)(i.HCh,{children:"The related user to the access token must have at least the Editor role on DataHub."})})]})]}),{}),tags:["Sync"],description:p,enabledFeatures:[d.q.DATA_SYNC]},g={name:"DynamoDB",key:"dynamo_placeholder",connection_type:o.Rj.DYNAMODB,access:o.uv.READ,created_at:""},y=[{permission:"AmazonDynamoDBReadOnlyAccess",description:"Provides read-only access to Amazon DynamoDB via the AWS Management Console."},{permission:"AmazonDynamoDBFullAccess",description:"Provides full access to Amazon DynamoDB via the AWS Management Console. Only needed if automating governance for DSR or Consent."}],v={placeholder:g,category:c.k.DATABASE,overview:(0,a.jsx)(()=>(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(n.cB,{text:"Overview"}),(0,a.jsx)(n.XU,{children:"Continuously monitor DynamoDB to detect and track schema-level changes, automatically discover and label data categories as well as automatically process DSR (privacy requests) and consent enforcement to proactively manage data governance risks."}),(0,a.jsxs)(r,{children:[(0,a.jsx)(n.cB,{text:"Categories"}),(0,a.jsxs)(n.Z5,{children:[(0,a.jsx)(i.HCh,{children:"NoSQL database"}),(0,a.jsx)(i.HCh,{children:"Storage system"}),(0,a.jsx)(i.HCh,{children:"Cloud provider"}),(0,a.jsx)(i.HCh,{children:"Data detection"}),(0,a.jsx)(i.HCh,{children:"Data discovery"})]}),(0,a.jsx)(n.cB,{text:"Permissions and Policies"}),(0,a.jsxs)(n.XU,{children:["For detection and discovery, Fides requires an IAM user with read-only DynamoDB permissions in order to detect, discover, and classify sensitive data. The AWS-managed"," ",(0,a.jsx)(i.EKh,{children:"AmazonDynamoDBReadOnlyAccess"})," policy can be used to assign these permissions. If you intend to automate governance for DSR or Consent, Fides requires an IAM user with read-and-write DynamoDB permissions. The AWS-managed",(0,a.jsx)(i.EKh,{children:"AmazonDynamoDBFullAccess"})," policy can be used to assign these permissions. An IAM administrator can create the necessary principal for Fides using the AWS IAM guides, and assign the appropriate permissions policy to the IAM user."]}),(0,a.jsx)(n.XU,{children:"The permissions allow Fides to read the schema of, and data stored in, DynamoDB tables. This data is inspected only for the purpose of detecting sensitive data risks and no data is stored by Fides. As part of DSR or Consent orchestration, Fides will only write restricted updates to the tables specified by your Fides policy configuration."}),(0,a.jsx)(n.cB,{text:"Policy List"}),(0,a.jsx)(n.XU,{children:"The following AWS-managed policies provide the necessary permissions for Fides:"}),(0,a.jsxs)(n.Z5,{children:[(0,a.jsx)(i.HCh,{children:"AmazonDynamoDBReadOnlyAccess"}),(0,a.jsx)(i.HCh,{children:"AmazonDynamoDBFullAccess (only needed if automating governance for DSR or Consent)"})]})]})]}),{}),instructions:(0,a.jsx)(()=>(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(n.cB,{text:"Configuring a Fides -> DynamoDB Integration"}),(0,a.jsx)(n.cB,{text:"Step 1: Create an IAM user in AWS"}),(0,a.jsxs)(n.XU,{children:["Create an IAM user for Fides' DynamoDB access following the"," ",(0,a.jsx)(n.Hn,{href:"https://docs.aws.amazon.com/IAM/latest/UserGuide/getting-started.html#getting-started-iam-user",children:"AWS IAM user guide"}),"."]}),(0,a.jsxs)(r,{children:[(0,a.jsx)(n.cB,{text:"Step 2: Assign policies to the IAM user"}),(0,a.jsx)(n.XU,{children:"Grant the necessary permissions to the IAM user by attaching directly the appropriate AWS-managed policy for your use case:"}),(0,a.jsx)(n.aG,{data:y}),(0,a.jsx)(n.cB,{text:"Step 3: Create an access key for the IAM user"}),(0,a.jsxs)(n.vQ,{children:[(0,a.jsxs)(i.HCh,{children:["Create an access key for the IAM user under"," ",(0,a.jsx)("strong",{children:"Security credentials"})]}),(0,a.jsx)(i.HCh,{children:"Select the Other use case"}),(0,a.jsx)(i.HCh,{children:"Copy the Access Key ID and Secret Access Key"})]}),(0,a.jsx)(n.cB,{text:"Use the Credentials to Authenticate Your Integration"}),(0,a.jsx)(n.XU,{children:"Provide the credentials to your Fides instance to securely connect Fides."})]})]}),{}),tags:["DSR Automation","Discovery","Detection"],enabledFeatures:[d.q.DATA_DISCOVERY]},f={placeholder:{name:"Cloud SQL - MySQL",key:"google_cloud_sql_for_mysql_placeholder",connection_type:o.Rj.GOOGLE_CLOUD_SQL_MYSQL,access:o.uv.READ,created_at:""},category:c.k.DATABASE,overview:(0,a.jsx)(()=>(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(n.cB,{text:"Overview"}),(0,a.jsx)(n.XU,{children:"Google Cloud SQL for MySQL is a fully-managed relational database service that simplifies the setup, maintenance, management, and administration of MySQL databases. Connect Fides to your Google Cloud SQL for MySQL to detect and track changes in schemas and tables and automatically discover and label data categories to proactively manage data governance risks."}),(0,a.jsxs)(r,{children:[(0,a.jsx)(n.cB,{text:"Categories"}),(0,a.jsxs)(n.Z5,{children:[(0,a.jsx)(i.HCh,{children:"Database"}),(0,a.jsx)(i.HCh,{children:"SQL database"}),(0,a.jsx)(i.HCh,{children:"Storage system"}),(0,a.jsx)(i.HCh,{children:"Data detection"}),(0,a.jsx)(i.HCh,{children:"Data discovery"}),(0,a.jsx)(i.HCh,{children:"DSR automation"})]}),(0,a.jsx)(n.cB,{text:"Permissions"}),(0,a.jsx)(n.XU,{children:"For detection and discovery, Fides requires a user with the SELECT permission on the database. If you intend to automate governance for DSR or Consent, Fides requires a user with the SELECT, UPDATE, and DELETE The permissions allow Fides to read the schema of, and data stored in tables, and fields as well as write restricted updates based on your policy configurations to tables you specify as part of DSR and Consent orchestration. For a complete list of permissions view the Google Cloud SQL for MySQL DB documentation."}),(0,a.jsx)(n.cB,{text:"Permissions list"}),(0,a.jsxs)(n.Z5,{children:[(0,a.jsx)(i.HCh,{children:"GRANT SELECT"}),(0,a.jsx)(i.HCh,{children:"GRANT UPDATE"}),(0,a.jsx)(i.HCh,{children:"GRANT DELETE"})]})]})]}),{}),tags:["Discovery","Detection"],enabledFeatures:[d.q.DATA_DISCOVERY]},C={placeholder:{name:"Cloud SQL - Postgres",key:"google_cloud_sql_for_postgres_placeholder",connection_type:o.Rj.GOOGLE_CLOUD_SQL_POSTGRES,access:o.uv.READ,created_at:""},category:c.k.DATABASE,overview:(0,a.jsx)(()=>(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(n.cB,{text:"Overview"}),(0,a.jsx)(n.XU,{children:"Google Cloud SQL for Postgres is a fully-managed relational database service that simplifies the setup, maintenance, management, and administration of Postgres databases. Connect Fides to your Google Cloud SQL for Postgres to detect and track changes in schemas and tables and automatically discover and label data categories to proactively manage data governance risks."}),(0,a.jsxs)(r,{children:[(0,a.jsx)(n.cB,{text:"Categories"}),(0,a.jsxs)(n.Z5,{children:[(0,a.jsx)(i.HCh,{children:"Database"}),(0,a.jsx)(i.HCh,{children:"SQL database"}),(0,a.jsx)(i.HCh,{children:"Storage system"}),(0,a.jsx)(i.HCh,{children:"Data detection"}),(0,a.jsx)(i.HCh,{children:"Data discovery"}),(0,a.jsx)(i.HCh,{children:"DSR automation"})]}),(0,a.jsx)(n.cB,{text:"Permissions"}),(0,a.jsx)(n.XU,{children:"For detection and discovery, Fides requires a user with the SELECT permission on the database. If you intend to automate governance for DSR or Consent, Fides requires a user with the SELECT, UPDATE, and DELETE permission. The permissions allow Fides to read the schema of, and data stored in tables, and fields as well as write restricted updates based on your policy configurations to tables you specify as part of DSR and orchestration. For a complete list of permissions view the Google Cloud SQL for Postgres DB documentation."}),(0,a.jsx)(n.XU,{children:"The following GCP service account permissions are needed when setting up Google Cloud SQL for Postgres."}),(0,a.jsx)(n.cB,{text:"Permissions list"}),(0,a.jsxs)(n.Z5,{children:[(0,a.jsx)(i.HCh,{children:"cloudsql.instances.connect"}),(0,a.jsx)(i.HCh,{children:"cloudsql.instances.get"}),(0,a.jsx)(i.HCh,{children:"cloudsql.instances.login"})]})]})]}),{}),tags:["Discovery","Detection"],enabledFeatures:[d.q.DATA_DISCOVERY]};var S=t(88337);let A={placeholder:{name:"Manual Tasks",key:"manual_placeholder",connection_type:S.R.MANUAL_TASK,access:o.uv.READ,created_at:""},category:c.k.MANUAL,tags:["DSR","Manual tasks"],overview:(0,a.jsx)(()=>(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(n.cB,{text:"Overview"}),(0,a.jsx)(n.XU,{children:"Manual Integrations enable you to create and assign tasks for data that requires manual handling during access and erasure requests. Tasks can be assigned to internal users within Fides or external users who complete them securely through the external task portal."}),(0,a.jsxs)(n.XU,{children:["When privacy requests involve manual integrations, execution will pause in a ",(0,a.jsx)("em",{children:"Requires input"})," state until all assigned tasks are completed."]})]}),{}),enabledFeatures:[d.q.TASKS,d.q.WITHOUT_CONNECTION,d.q.CONDITIONS]},b={placeholder:{name:"Microsoft SQL Server",key:"microsoft_sql_server_placeholder",connection_type:o.Rj.MSSQL,access:o.uv.READ,created_at:""},category:c.k.DATABASE,overview:(0,a.jsx)(()=>(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(n.cB,{text:"Overview"}),(0,a.jsx)(n.XU,{children:"Microsoft SQL Server, is a relational database management system (RDBMS) developed by Microsoft. It is designed to store, manage, and retrieve data as requested by other software applications, which may run either on the same computer or across a network."}),(0,a.jsxs)(r,{children:[(0,a.jsx)(n.cB,{text:"Categories"}),(0,a.jsxs)(n.Z5,{children:[(0,a.jsx)(i.HCh,{children:"Database"}),(0,a.jsx)(i.HCh,{children:"SQL database"}),(0,a.jsx)(i.HCh,{children:"Storage system"}),(0,a.jsx)(i.HCh,{children:"Data detection"}),(0,a.jsx)(i.HCh,{children:"Data discovery"})]}),(0,a.jsx)(n.cB,{text:"Permissions"}),(0,a.jsx)(n.XU,{children:"For detecting databases, Fides requires a user with the following permissions/role:"}),(0,a.jsxs)(n.Z5,{children:[(0,a.jsx)(i.HCh,{children:"CREATE LOGIN username WITH PASSWORD = 'password';"}),(0,a.jsx)(i.HCh,{children:"GRANT SELECT, INSERT, UPDATE TO username;"})]})]})]}),{}),tags:["DSR Automation","Discovery","Detection"],enabledFeatures:[d.q.DATA_DISCOVERY]},D={placeholder:{name:"MySQL",key:"mysql_placeholder",connection_type:S.R.MYSQL,access:o.uv.READ,created_at:""},category:c.k.DATABASE,overview:(0,a.jsx)(()=>(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(n.cB,{text:"Overview"}),(0,a.jsx)(n.XU,{children:"Continuously monitor MySQL databases to detect and track schema-level changes, automatically discover and label data categories as well as automatically process DSR (privacy requests) and consent enforcement to proactively manage data governance risks."}),(0,a.jsxs)(r,{children:[(0,a.jsx)(n.cB,{text:"Categories"}),(0,a.jsxs)(n.Z5,{children:[(0,a.jsx)(i.HCh,{children:"Database"}),(0,a.jsx)(i.HCh,{children:"SQL database"}),(0,a.jsx)(i.HCh,{children:"Storage system"}),(0,a.jsx)(i.HCh,{children:"Data detection"}),(0,a.jsx)(i.HCh,{children:"Data discovery"})]}),(0,a.jsx)(n.cB,{text:"Permissions"}),(0,a.jsx)(n.XU,{children:"For detecting databases, Fides requires a user with the following permissions/role:"}),(0,a.jsxs)(n.Z5,{children:[(0,a.jsx)(i.HCh,{children:"CREATE USER 'username' IDENTIFIED WITH authentication_plugin BY 'password';"}),(0,a.jsx)(i.HCh,{children:"GRANT SELECT, INSERT ON database.* TO 'username'@'%';"})]})]})]}),{}),tags:["DSR Automation","Discovery","Detection"],enabledFeatures:[d.q.DATA_DISCOVERY]},R={name:"Okta",key:"okta_placeholder",connection_type:S.R.OKTA,access:o.uv.READ,created_at:""},w=(0,a.jsx)(a.Fragment,{children:"SSO providers manage user authentication and can help identify systems within your infrastructure. Adding an SSO provider as a data source allows you to detect connected systems, monitor access patterns, and enhance your data map for better visibility and control."}),E={placeholder:R,category:c.k.IDENTITY_PROVIDER,tags:["Discovery","Inventory"],overview:(0,a.jsx)(()=>(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(n.cB,{text:"Overview"}),(0,a.jsx)(n.XU,{children:"SSO providers manage user authentication and can help identify systems within your infrastructure. Adding an SSO provider as a data source allows you to detect connected systems, monitor access patterns, and enhance your data map for better visibility and control."})]}),{}),description:w,enabledFeatures:[d.q.DATA_DISCOVERY]},T={placeholder:{name:"Postgres",key:"postgres_placeholder",connection_type:S.R.POSTGRES,access:o.uv.READ,created_at:""},category:c.k.DATABASE,overview:(0,a.jsx)(()=>(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(n.cB,{text:"Overview"}),(0,a.jsx)(n.XU,{children:"Postgres is a relational database. Connect Fides to your Postgres Datbase to detect and track changes in schemas and tables and automatically discover and label data categories to proactively manage data governance risks."}),(0,a.jsxs)(r,{children:[(0,a.jsx)(n.cB,{text:"Categories"}),(0,a.jsxs)(n.Z5,{children:[(0,a.jsx)(i.HCh,{children:"Database"}),(0,a.jsx)(i.HCh,{children:"SQL database"}),(0,a.jsx)(i.HCh,{children:"Storage system"}),(0,a.jsx)(i.HCh,{children:"Data detection"}),(0,a.jsx)(i.HCh,{children:"Data discovery"})]}),(0,a.jsx)(n.XU,{children:"For each database, Fides requires the following permissions, where 'username' is the user set up for Fides, and 'database' is the name of the database you want to connect to."}),(0,a.jsxs)(n.Z5,{children:[(0,a.jsx)(i.HCh,{children:"CREATE USER username WITH LOGIN;"}),(0,a.jsx)(i.HCh,{children:"GRANT SELECT ON ALL TABLES IN SCHEMA public TO username;"}),(0,a.jsx)(i.HCh,{children:"GRANT ALL PRIVILEGES ON ALL TABLES IN SCHEMA public TO username;"})]})]})]}),{}),tags:["Detection","Discovery"],enabledFeatures:[d.q.DATA_DISCOVERY]},_={placeholder:{name:"Amazon RDS MySQL",key:"rds_mysql_placeholder",connection_type:o.Rj.RDS_MYSQL,access:o.uv.READ,created_at:""},category:c.k.DATABASE,overview:(0,a.jsx)(()=>(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(n.cB,{text:"Overview"}),(0,a.jsx)(n.XU,{children:"Amazon RDS MySQL is a fully-managed relational database service that simplifies the setup, maintenance, management, and administration of MySQL databases. Connect Fides to your Amazon RDS MySQL to detect and track changes in schemas and tables and automatically discover and label data categories to proactively manage data governance risks."}),(0,a.jsxs)(r,{children:[(0,a.jsx)(n.cB,{text:"Categories"}),(0,a.jsxs)(n.Z5,{children:[(0,a.jsx)(i.HCh,{children:"Database"}),(0,a.jsx)(i.HCh,{children:"SQL database"}),(0,a.jsx)(i.HCh,{children:"Storage system"}),(0,a.jsx)(i.HCh,{children:"Data detection"}),(0,a.jsx)(i.HCh,{children:"Data discovery"})]}),(0,a.jsx)(n.cB,{text:"Permissions"}),(0,a.jsx)(n.XU,{children:"For detecting database RDS instances and clusters, Fides requires an IAM user with the following permissions/role:"}),(0,a.jsxs)(n.Z5,{children:[(0,a.jsx)(i.HCh,{children:"rds:DescribeDBClusters"}),(0,a.jsx)(i.HCh,{children:"rds:DescribeDBInstances"}),(0,a.jsx)(i.HCh,{children:"rds-db:connect"})]}),(0,a.jsx)(n.XU,{children:"And per database instance and database it requires the following permissions, where 'username' is the user set up for Fides, and 'database' is the database name, you want to connect to."}),(0,a.jsxs)(n.Z5,{children:[(0,a.jsx)(i.HCh,{children:"CREATE USER 'username' IDENTIFIED WITH AWSAuthenticationPlugin AS 'RDS';"}),(0,a.jsx)(i.HCh,{children:"GRANT SELECT, INSERT ON database.* TO 'username'@'%';"})]})]})]}),{}),tags:["Discovery","Detection"],enabledFeatures:[d.q.DATA_DISCOVERY]},k={placeholder:{name:"Amazon RDS Postgres",key:"rds_postgres_placeholder",connection_type:o.Rj.RDS_POSTGRES,access:o.uv.READ,created_at:""},category:c.k.DATABASE,overview:(0,a.jsx)(()=>(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(n.cB,{text:"Overview"}),(0,a.jsx)(n.XU,{children:"Amazon RDS Postgres is a fully-managed relational database service that simplifies the setup, maintenance, management, and administration of Postgres databases. Connect Fides to your Amazon RDS Postgres to detect and track changes in schemas and tables and automatically discover and label data categories to proactively manage data governance risks."}),(0,a.jsxs)(r,{children:[(0,a.jsx)(n.cB,{text:"Categories"}),(0,a.jsxs)(n.Z5,{children:[(0,a.jsx)(i.HCh,{children:"Database"}),(0,a.jsx)(i.HCh,{children:"SQL database"}),(0,a.jsx)(i.HCh,{children:"Storage system"}),(0,a.jsx)(i.HCh,{children:"Data detection"}),(0,a.jsx)(i.HCh,{children:"Data discovery"})]}),(0,a.jsx)(n.cB,{text:"Permissions"}),(0,a.jsx)(n.XU,{children:"For detecting database RDS instances and clusters, Fides requires an IAM user with the following permissions/role:"}),(0,a.jsxs)(n.Z5,{children:[(0,a.jsx)(i.HCh,{children:"rds:DescribeDBClusters"}),(0,a.jsx)(i.HCh,{children:"rds:DescribeDBInstances"}),(0,a.jsx)(i.HCh,{children:"rds-db:connect"})]}),(0,a.jsx)(n.XU,{children:"For each database instance and database, Fides requires the following permissions, where 'username' is the user set up for Fides, and 'database' is the name of the database you want to connect to."}),(0,a.jsxs)(n.Z5,{children:[(0,a.jsx)(i.HCh,{children:"CREATE USER username WITH LOGIN;"}),(0,a.jsx)(i.HCh,{children:"GRANT rds_iam TO username;"}),(0,a.jsx)(i.HCh,{children:"GRANT SELECT ON ALL TABLES IN SCHEMA public TO username;"}),(0,a.jsx)(i.HCh,{children:"GRANT ALL PRIVILEGES ON ALL TABLES IN SCHEMA public TO username;"})]})]})]}),{}),tags:["Discovery","Detection"],enabledFeatures:[d.q.DATA_DISCOVERY]},H={placeholder:{name:"Amazon S3",key:"s3_placeholder",connection_type:o.Rj.S3,access:o.uv.READ,created_at:""},category:c.k.DATA_WAREHOUSE,overview:(0,a.jsx)(()=>(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(n.cB,{text:"Overview"}),(0,a.jsx)(n.XU,{children:"Continuously monitor S3 to detect and track schema-level changes, automatically discover and label data categories as well as automatically process DSR (privacy requests) and consent enforcement to proactively manage data governance risks."}),(0,a.jsxs)(r,{children:[(0,a.jsx)(n.cB,{text:"Categories"}),(0,a.jsxs)(n.Z5,{children:[(0,a.jsx)(i.HCh,{children:"Object storage"}),(0,a.jsx)(i.HCh,{children:"Storage system"}),(0,a.jsx)(i.HCh,{children:"Cloud provider"}),(0,a.jsx)(i.HCh,{children:"Data detection"}),(0,a.jsx)(i.HCh,{children:"Data discovery"})]}),(0,a.jsx)(n.cB,{text:"Permissions"}),(0,a.jsx)(n.XU,{children:"Fides requires an IAM principal with read-only S3 permissions in order to detect, discover, and classify sensitive data. The AWS-managed AmazonS3ReadOnlyAccess policy can be used to assign these permissions. An IAM administrator can create the necessary principal for Fides using the AWS IAM guides, and assign the appropriate permissions policy to the IAM principal."}),(0,a.jsx)(n.XU,{children:"The permissions allow Fides to list buckets and read object data data stored in those buckets. This data is inspected only for the purpose of detecting sensitive data risks and no data is stored by Fides."}),(0,a.jsx)(n.XU,{children:"Ethyca recommends creating an IAM role with the appropriate permissions, which will be assumed by Fides at runtime, with ephemeral credentials. There must also be an IAM user with fixed credentials that Fides uses strictly for assuming the IAM role with the appropriate permissions. If desired, Fides also supports authenticating directly as an IAM user with the appropriate permissions, but this is considered a less secure option."}),(0,a.jsx)(n.cB,{text:"Permissions list"}),(0,a.jsx)(n.Z5,{children:(0,a.jsx)(i.HCh,{children:"AmazonS3ReadOnlyAccess"})})]})]}),{}),instructions:(0,a.jsx)(()=>(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(n.cB,{text:"Configuring a Fides -> Amazon S3 Integration"}),(0,a.jsx)(n.cB,{text:"Step 1: Create an IAM role in AWS"}),(0,a.jsx)(n.XU,{children:"Create an IAM role for Fides' S3 access following the AWS IAM roles guide. This role will be referred to below as the Fides S3 Access Role."}),(0,a.jsxs)(r,{children:[(0,a.jsx)(n.cB,{text:"Step 2: Assign policies to the IAM role"}),(0,a.jsx)(n.XU,{children:"Grant the necessary permissions to the IAM role by attaching the following AWS-managed policy:"}),(0,a.jsx)(n.aG,{data:[{permission:"AmazonS3ReadOnlyAccess",description:"Provides read-only access to all buckets via the AWS Management Console."}]}),(0,a.jsx)(n.cB,{text:"Step 3: Create an IAM user for assuming a role"}),(0,a.jsxs)(n.XU,{children:["Follow the ",(0,a.jsx)(n.Hn,{href:"https://docs.aws.amazon.com/IAM/latest/UserGuide/getting-started.html#getting-started-iam-user",children:"AWS guide"})," for creating an IAM user to create an IAM user that Fides will authenticate as in order to assume the Fides S3 Access Role created above, and retrieve ephemeral credentials."]}),(0,a.jsx)(n.cB,{text:"Step 4: Grant the IAM user permission to assume the Fides S3 Access Role"}),(0,a.jsx)(n.XU,{children:"Navigate to the IAM user's Permissions page and add a permission by creating an inline policy. This permission should grant the IAM user permission to assume the Fides S3 Access Role created above (you'll need to retrieve the role ARN). The inline policy should look similar to this:"}),(0,a.jsx)(n.hX,{children:'{\n "Version": "2012-10-17",\n "Statement": [\n {\n "Sid": "VisualEditor0",\n "Effect": "Allow",\n "Action": "sts:AssumeRole",\n "Resource": "arn:aws:iam::[AWS ACCOUNT NUMBER]:role/[Fides S3 Access Role ARN]"\n }\n ]\n}'}),(0,a.jsx)(n.cB,{text:"Step 5: Create an access key for the IAM user"}),(0,a.jsxs)(n.vQ,{children:[(0,a.jsxs)(i.HCh,{children:["Create an access key for the IAM user under"," ",(0,a.jsx)("strong",{children:"Security credentials"}),"."]}),(0,a.jsx)(i.HCh,{children:"Select the Other use case"}),(0,a.jsx)(i.HCh,{children:"Copy the Access Key ID and Secret Access Key"})]}),(0,a.jsx)(n.cB,{text:"Step 6: Use the credentials to authenticate your integration"}),(0,a.jsxs)(n.XU,{children:["Provide the credentials to your Fides instance to securely connect Fides. For the Assume Role ARN, provide the ARN for the Fides S3 Access Role created in step 1."," "]})]})]}),{}),tags:["DSR Automation","Discovery","Detection"],enabledFeatures:[d.q.DATA_DISCOVERY]};var I=t(80388);let F={placeholder:{name:"Salesforce",key:"salesforce_placeholder",connection_type:S.R.SAAS,saas_config:{fides_key:"salesforce",name:"Salesforce",type:I.m.SALESFORCE},access:o.uv.WRITE,created_at:""},category:c.k.CRM,overview:(0,a.jsx)(()=>(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(n.cB,{text:"Overview"}),(0,a.jsx)(n.XU,{children:"Salesforce is a cloud-based customer relationship management (CRM) platform that helps businesses manage sales, marketing, and customer service interactions in a unified system. Connect Fides to your Salesforce instance to automatically discover and track data across both standard and custom objects, detect sensitive information, and automate DSR fulfillment."}),(0,a.jsxs)(r,{children:[(0,a.jsx)(n.cB,{text:"What this integration does"}),(0,a.jsxs)(n.Z5,{children:[(0,a.jsx)(i.HCh,{children:"Discover personal data in standard Salesforce objects"}),(0,a.jsx)(i.HCh,{children:"Detect sensitive information across your Salesforce instance"}),(0,a.jsx)(i.HCh,{children:"Automate data subject access requests including data retrieval, updates, and deletions"}),(0,a.jsx)(i.HCh,{children:"Map Salesforce data to your organization's data map"}),(0,a.jsx)(i.HCh,{children:"Discover and map custom Salesforce objects (requires setting up a monitor)"})]}),(0,a.jsx)(n.XU,{children:"Once integrated, the system will automatically map sensitive personal data for standard Salesforce objects. By setting up a monitor, you can also detect and map custom objects in your Salesforce instance."}),(0,a.jsx)(n.cB,{text:"Categories"}),(0,a.jsxs)(n.Z5,{children:[(0,a.jsx)(i.HCh,{children:"CRM System"}),(0,a.jsx)(i.HCh,{children:"Data detection"}),(0,a.jsx)(i.HCh,{children:"Data discovery"}),(0,a.jsx)(i.HCh,{children:"DSR automation"})]}),(0,a.jsx)(n.cB,{text:"Prerequisites"}),(0,a.jsx)(n.XU,{children:"To integrate with Salesforce, you need to create a Connected App in your Salesforce instance. This ensures exclusive data control and enhances security by reducing unauthorized access risks."}),(0,a.jsx)(n.cB,{text:"Setup instructions"}),(0,a.jsx)(n.XU,{children:"Follow these steps to set up your Salesforce integration:"}),(0,a.jsxs)(n.vQ,{children:[(0,a.jsx)(i.HCh,{children:"Create a Connected App in Salesforce by following the Salesforce guide"}),(0,a.jsx)(i.HCh,{children:"Configure Basic Connected App Settings"}),(0,a.jsx)(i.HCh,{children:'Uncheck "Require Proof Key for Code Exchange (PKCE) Extension for Supported Authorization Flows"'}),(0,a.jsx)(i.HCh,{children:"Enable OAuth Settings for API Integration with the required scopes"}),(0,a.jsx)(i.HCh,{children:"Enter your Fides Redirect URL (typically https://fides-host.com/api/v1/oauth/callback)"})]}),(0,a.jsx)(n.cB,{text:"Required information"}),(0,a.jsxs)(n.Z5,{children:[(0,a.jsx)(i.HCh,{children:"Domain: Your Salesforce URL"}),(0,a.jsx)(i.HCh,{children:"Consumer Key: Your OAuth client ID"}),(0,a.jsx)(i.HCh,{children:"Consumer Secret: Your OAuth client secret"}),(0,a.jsx)(i.HCh,{children:"Redirect URL: The Fides URL for OAuth callback"}),(0,a.jsx)(i.HCh,{children:"Token Refresh URL: The Salesforce URL for refresh tokens"})]}),(0,a.jsx)(n.cB,{text:"Required OAuth scopes"}),(0,a.jsxs)(n.Z5,{children:[(0,a.jsx)(i.HCh,{children:"Manage user data via APIs (api)"}),(0,a.jsx)(i.HCh,{children:"Perform requests at any time (refresh_token, offline_access)"})]}),(0,a.jsx)(n.cB,{text:"Supported objects"}),(0,a.jsx)(n.XU,{children:"Fides supports both standard and custom Salesforce objects. The integration includes built-in support for common objects such as:"}),(0,a.jsxs)(n.Z5,{children:[(0,a.jsx)(i.HCh,{children:"Contacts"}),(0,a.jsx)(i.HCh,{children:"Cases"}),(0,a.jsx)(i.HCh,{children:"Leads"}),(0,a.jsx)(i.HCh,{children:"Accounts"}),(0,a.jsx)(i.HCh,{children:"Campaign Members"}),(0,a.jsx)(i.HCh,{children:"Custom Objects"})]})]})]}),{}),tags:["API","DSR Automation","Discovery","Detection"],enabledFeatures:[d.q.DATA_DISCOVERY,d.q.DSR_AUTOMATION]},B={placeholder:{name:"Scylla",key:"scylla_placeholder",connection_type:o.Rj.SCYLLA,access:o.uv.READ,created_at:""},category:c.k.DATABASE,overview:(0,a.jsx)(()=>(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(n.cB,{text:"Overview"}),(0,a.jsx)(n.XU,{children:"ScyllaDB is an open-sources distributed NoSQL data store designed to be compatible with Apache Cassandra. Connect Fides to your ScyllaDB to detect and track changes in keyspaces and tables and automatically discover and label data categories to proactively manage data governance risks."}),(0,a.jsxs)(r,{children:[(0,a.jsx)(n.cB,{text:"Categories"}),(0,a.jsxs)(n.Z5,{children:[(0,a.jsx)(i.HCh,{children:"Database"}),(0,a.jsx)(i.HCh,{children:"NoSQL database"}),(0,a.jsx)(i.HCh,{children:"Storage system"}),(0,a.jsx)(i.HCh,{children:"Data detection"}),(0,a.jsx)(i.HCh,{children:"Data discovery"}),(0,a.jsx)(i.HCh,{children:"DSR automation"})]}),(0,a.jsx)(n.cB,{text:"Permissions"}),(0,a.jsx)(n.XU,{children:"For detection and discovery, Fides requires a user with the SELECT permission on all keyspaces. If you intend to automate governance for DSR or Consent, Fides requires the role to to be granted SELECT and MODIFY on all keyspaces. The permissions allow Fides to read the schema of, and data stored in keyspaces, tables, and fields as well as write restricted updates based on your policy configurations to tables you specify as part of DSR and Consent orchestration. For a complete list of permissions view the Scylla DB documentation."}),(0,a.jsx)(n.cB,{text:"Permissions list"}),(0,a.jsxs)(n.Z5,{children:[(0,a.jsx)(i.HCh,{children:"SELECT ALL KEYSPACES"}),(0,a.jsx)(i.HCh,{children:"MODIFY ALL KEYSPACES"})]})]})]}),{}),tags:["DSR Automation","Discovery","Detection"],enabledFeatures:[d.q.DATA_DISCOVERY]},O={placeholder:{name:"Snowflake",key:"snowflake_placeholder",connection_type:o.Rj.SNOWFLAKE,access:o.uv.READ,created_at:""},category:c.k.DATA_WAREHOUSE,overview:(0,a.jsx)(()=>(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(n.cB,{text:"Overview"}),(0,a.jsx)(n.XU,{children:"Snowflake is a cloud-based data warehousing platform designed for handling large-scale data storage and analytics. It enables organizations to store, manage, and analyze massive amounts of data efficiently, offering features like scalability, performance, and flexibility."}),(0,a.jsxs)(r,{children:[(0,a.jsx)(n.cB,{text:"Categories"}),(0,a.jsxs)(n.Z5,{children:[(0,a.jsx)(i.HCh,{children:"Database"}),(0,a.jsx)(i.HCh,{children:"SQL database"}),(0,a.jsx)(i.HCh,{children:"Storage system"}),(0,a.jsx)(i.HCh,{children:"Data detection"}),(0,a.jsx)(i.HCh,{children:"Data discovery"})]}),(0,a.jsx)(n.cB,{text:"Permissions"}),(0,a.jsxs)(n.Z5,{children:[(0,a.jsx)(i.HCh,{children:"CREATE ROLE my_monitor_role;"}),(0,a.jsx)(i.HCh,{children:"GRANT USAGE ON DATABASE DATABASE_1 TO ROLE my_monitor_role;"}),(0,a.jsx)(i.HCh,{children:"GRANT USAGE ON SCHEMA DATABASE_1.TEST_SCHEMA TO ROLE my_monitor_role;"}),(0,a.jsx)(i.HCh,{children:"GRANT SELECT ON ALL TABLES IN SCHEMA DATABASE_1.TEST_SCHEMA TO ROLE my_monitor_role;"}),(0,a.jsx)(i.HCh,{children:"CREATE USER test_user PASSWORD='***';"}),(0,a.jsx)(i.HCh,{children:"GRANT ROLE my_monitor_role TO USER test_user;"})]})]})]}),{}),tags:["DSR Automation","Discovery","Detection"],enabledFeatures:[d.q.DATA_DISCOVERY]},L={placeholder:{name:"Website",key:"website_placeholder",connection_type:S.R.WEBSITE,access:o.uv.READ,created_at:""},category:c.k.WEBSITE,tags:["Consent","Discovery","Detection"],overview:(0,a.jsx)(()=>(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(n.cB,{text:"Overview"}),(0,a.jsx)(n.XU,{children:'Websites, or "properties", often process user data. Adding a website as an integration lets you configure a Consent Management Platform (CMP), a site-specific privacy center, and Cross-Origin requests via Fides. You can configure the various security settings, styling, and user experience settings for the privacy center and CMP on a per-website basis.'})]}),{}),enabledFeatures:[d.q.DATA_DISCOVERY]},P=[F],q={[S.R.BIGQUERY]:x,[S.R.DATAHUB]:j,[S.R.DYNAMODB]:v,[S.R.GOOGLE_CLOUD_SQL_MYSQL]:f,[S.R.GOOGLE_CLOUD_SQL_POSTGRES]:C,[S.R.MSSQL]:b,[S.R.OKTA]:E,[S.R.RDS_MYSQL]:_,[S.R.RDS_POSTGRES]:k,[S.R.S3]:H,[S.R.SCYLLA]:B,[S.R.SNOWFLAKE]:O,[S.R.MYSQL]:D,[S.R.WEBSITE]:L,[S.R.POSTGRES]:T,[S.R.MANUAL_TASK]:A},M=[...Object.values(q),...P],U=[...Object.keys(q),S.R.SAAS],N=e=>({placeholder:{name:e.human_readable,key:"".concat(e.identifier,"_placeholder"),connection_type:S.R.SAAS,saas_config:{fides_key:e.identifier,name:e.human_readable,type:e.identifier},access:o.uv.WRITE,created_at:""},category:e.category||c.k.CUSTOM,tags:e.tags||["API","Custom"],enabledFeatures:e.enabled_features||[d.q.DSR_AUTOMATION]}),z={placeholder:{name:"",key:"placeholder",connection_type:S.R.MANUAL,access:o.uv.READ,created_at:""},category:c.k.DATA_WAREHOUSE,tags:[],enabledFeatures:[]};var G=(e,s,t)=>{if(!e)return z;if(e===S.R.SAAS&&s){if(t){let e=t.find(e=>e.identifier===s);if(e){let t=N(e),a=P.find(e=>{var t;return(null===(t=e.placeholder.saas_config)||void 0===t?void 0:t.type)===s});return a&&a.overview?{...t,overview:a.overview}:t}}let e=P.find(e=>{var t;return(null===(t=e.placeholder.saas_config)||void 0===t?void 0:t.type)===s});if(e)return e}if(e!==S.R.SAAS){let s=q[e];if(s)return s}return z}},93633:function(e,s,t){t.d(s,{z:function(){return r}});var a=t(17245),i=t(98227),n=t(14207);let r=e=>{let{connection:s,connectionOption:t,testData:r}=e,[o]=(0,n.rO)(),{handleError:c}=(0,a.HK)();return{handleAuthorize:async()=>{if(!(null==s?void 0:s.key)){i.Pg3.error("Authorization failed: connection key not found");return}try{let e=await o(s.key).unwrap();window.location.href=e}catch(e){c(e)}},needsAuthorization:!!(null==t?void 0:t.authorization_required)&&!r.authorized}}},64176:function(e,s,t){var a=t(27378),i=t(20682),n=t(88337);s.Z=(e,s)=>{let{data:t}=(0,i.$I)({});return(0,a.useMemo)(()=>e===n.R.SAAS?null==t?void 0:t.items.find(e=>e.identifier===s):null==t?void 0:t.items.find(s=>s.identifier===e),[t,e,s])}},35030:function(e,s,t){t.d(s,{qS:function(){return i}});var a=t(28946);let i=e=>{switch(e){case a.k.DATA_CATALOG:return"Data Catalog";case a.k.DATA_WAREHOUSE:return"Data Warehouse";case a.k.DATABASE:return"Database";case a.k.IDENTITY_PROVIDER:return"Identity Provider";case a.k.WEBSITE:return"Website";case a.k.CRM:return"CRM";case a.k.MANUAL:return"Manual";case a.k.MARKETING:return"Marketing";case a.k.ANALYTICS:return"Analytics";case a.k.ECOMMERCE:return"E-commerce";case a.k.COMMUNICATION:return"Communication";case a.k.CUSTOM:return"Custom";default:return e}}},11013:function(e,s,t){t.d(s,{$y:function(){return n},eV:function(){return a},m5:function(){return o},ww:function(){return r}});let{useGetSharedMonitorConfigsQuery:a,useGetSharedMonitorConfigByIdQuery:i,useCreateSharedMonitorConfigMutation:n,useUpdateSharedMonitorConfigMutation:r,useDeleteSharedMonitorConfigMutation:o}=t(78780).u.injectEndpoints({endpoints:e=>({getSharedMonitorConfigs:e.query({query:e=>({method:"GET",url:"/plus/shared-monitor-config",params:e}),providesTags:["Shared Monitor Configs"]}),getSharedMonitorConfigById:e.query({query:e=>{let{id:s}=e;return{method:"GET",url:"/plus/shared-monitor-config/".concat(s)}},providesTags:["Shared Monitor Configs"]}),createSharedMonitorConfig:e.mutation({query:e=>({method:"POST",url:"/plus/shared-monitor-config",body:e}),invalidatesTags:["Shared Monitor Configs"]}),updateSharedMonitorConfig:e.mutation({query:e=>({method:"PUT",url:"/plus/shared-monitor-config/".concat(e.id),body:e}),invalidatesTags:["Shared Monitor Configs"]}),deleteSharedMonitorConfig:e.mutation({query:e=>{let{id:s}=e;return{method:"DELETE",url:"/plus/shared-monitor-config/".concat(s)}},invalidatesTags:["Shared Monitor Configs"]})})})},57072:function(e,s,t){t.d(s,{Bd:function(){return a.Bd},L5:function(){return a.L5},MO:function(){return a.MO},qb:function(){return a.qb}});var a=t(5785)},31883:function(e,s,t){t.d(s,{Bw:function(){return a.Bw},D4:function(){return a.D4}});var a=t(19043)}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[431],{40431:function(e,t,r){r.d(t,{jo:function(){return g},S$:function(){return q},WJ:function(){return j},bJ:function(){return w},Oi:function(){return y},jx:function(){return S},km:function(){return v},v1:function(){return F},XI:function(){return k}});var n,l=r(95897);function u(e,t,r){try{return e(t)}catch(e){return(0,l.ZK)("[nuqs] Error while parsing value `%s`: %O"+(r?" (for key `%s`)":""),t,e,r),null}}var s=function(){if("undefined"==typeof window||!window.GestureEvent)return 50;try{let e=navigator.userAgent?.match(/version\/([\d\.]+) safari/i);return parseFloat(e[1])>=17?120:320}catch{return 320}}(),i=new Map,a={history:"replace",scroll:!1,shallow:!0,throttleMs:s},o=new Set,c=0,f=null;function h(e,t,r,n){let u=null===t?null:r(t);return(0,l.fF)("[nuqs queue] Enqueueing %s=%s %O",e,u,n),i.set(e,u),"push"===n.history&&(a.history="push"),n.scroll&&(a.scroll=!0),!1===n.shallow&&(a.shallow=!1),n.startTransition&&o.add(n.startTransition),a.throttleMs=Math.max(n.throttleMs??s,Number.isFinite(a.throttleMs)?a.throttleMs:0),u}function p(){return new URLSearchParams(location.search)}function m({getSearchParamsSnapshot:e=p,updateUrl:t,rateLimitFactor:r=1}){return null===f&&(f=new Promise((n,u)=>{if(!Number.isFinite(a.throttleMs)){(0,l.fF)("[nuqs queue] Skipping flush due to throttleMs=Infinity"),n(e()),setTimeout(()=>{f=null},0);return}function h(){c=performance.now();let[r,h]=function({updateUrl:e,getSearchParamsSnapshot:t}){let r=t();if(0===i.size)return[r,null];let n=Array.from(i.entries()),u={...a},c=Array.from(o);for(let[e,t]of(i.clear(),o.clear(),a.history="replace",a.scroll=!1,a.shallow=!0,a.throttleMs=s,(0,l.fF)("[nuqs queue] Flushing queue %O with options %O",n,u),n))null===t?r.delete(e):r.set(e,t);try{return function(e,t){let r=n=>{if(n===e.length)return t();let l=e[n];if(!l)throw Error("Invalid transition function");l(()=>r(n+1))};r(0)}(c,()=>{e(r,{history:u.history,scroll:u.scroll,shallow:u.shallow})}),[r,null]}catch(e){return console.error((0,l.vU)(429),n.map(([e])=>e).join(),e),[r,e]}}({updateUrl:t,getSearchParamsSnapshot:e});null===h?n(r):u(r),f=null}setTimeout(function(){let e=performance.now()-c,t=a.throttleMs,n=r*Math.max(0,Math.min(t,t-e));(0,l.fF)("[nuqs queue] Scheduling flush in %f ms. Throttled at %f ms",n,t),0===n?h():setTimeout(h,n)},0)})),f}var O=r(27378);function g(e){function t(t){if(void 0===t)return null;let r="";if(Array.isArray(t)){if(void 0===t[0])return null;r=t[0]}return"string"==typeof t&&(r=t),u(e.parse,r)}return{eq:(e,t)=>e===t,...e,parseServerSide:t,withDefault(e){return{...this,defaultValue:e,parseServerSide:r=>t(r)??e}},withOptions(e){return{...this,...e}}}}var y=g({parse:e=>e,serialize:e=>`${e}`}),d=g({parse:e=>{let t=parseInt(e);return Number.isNaN(t)?null:t},serialize:e=>Math.round(e).toFixed()});function b(e,t){return e.valueOf()===t.valueOf()}function S(e){return g({parse:t=>e.includes(t)?t:null,serialize:e=>e.toString()})}function v(e){return g({parse:t=>e.includes(t)?t:null,serialize:e=>e.toString()})}function w(e){return g({parse:t=>{let r=parseFloat(t);return e.includes(r)?r:null},serialize:e=>e.toString()})}function j(e){return g({parse:t=>{try{let r=JSON.parse(t);return e(r)}catch{return null}},serialize:e=>JSON.stringify(e),eq:(e,t)=>e===t||JSON.stringify(e)===JSON.stringify(t)})}function q(e,t=","){let r=e.eq??((e,t)=>e===t),n=encodeURIComponent(t);return g({parse:r=>""===r?[]:r.split(t).map((r,l)=>u(e.parse,r.replaceAll(n,t),`[${l}]`)).filter(e=>null!=e),serialize:r=>r.map(r=>(e.serialize?e.serialize(r):String(r)).replaceAll(t,n)).join(t),eq:(e,t)=>e===t||e.length===t.length&&e.every((e,n)=>r(e,t[n]))})}g({parse:e=>{let t=d.parse(e);return null===t?null:t-1},serialize:e=>d.serialize(e+1)}),g({parse:e=>{let t=parseInt(e,16);return Number.isNaN(t)?null:t},serialize:e=>{let t=Math.round(e).toString(16);return t.padStart(t.length+t.length%2,"0")}}),g({parse:e=>{let t=parseFloat(e);return Number.isNaN(t)?null:t},serialize:e=>e.toString()}),g({parse:e=>"true"===e,serialize:e=>e?"true":"false"}),g({parse:e=>{let t=parseInt(e);return Number.isNaN(t)?null:new Date(t)},serialize:e=>e.valueOf().toString(),eq:b}),g({parse:e=>{let t=new Date(e);return Number.isNaN(t.valueOf())?null:t},serialize:e=>e.toISOString(),eq:b}),g({parse:e=>{let t=new Date(e.slice(0,10));return Number.isNaN(t.valueOf())?null:t},serialize:e=>e.toISOString().slice(0,10),eq:b});var N={all:n=n||new Map,on:function(e,t){var r=n.get(e);r?r.push(t):n.set(e,[t])},off:function(e,t){var r=n.get(e);r&&(t?r.splice(r.indexOf(t)>>>0,1):n.set(e,[]))},emit:function(e,t){var r=n.get(e);r&&r.slice().map(function(e){e(t)}),(r=n.get("*"))&&r.slice().map(function(r){r(e,t)})}};function F(e,{history:t="replace",shallow:r=!0,scroll:n=!1,throttleMs:a=s,parse:o=e=>e,serialize:c=String,eq:f=(e,t)=>e===t,defaultValue:p,clearOnDefault:g=!0,startTransition:y}={history:"replace",scroll:!1,shallow:!0,throttleMs:s,parse:e=>e,serialize:String,eq:(e,t)=>e===t,clearOnDefault:!0,defaultValue:void 0}){let d=(0,l.YW)(),b=d.searchParams,S=(0,O.useRef)(b?.get(e)??null),[v,w]=(0,O.useState)(()=>{let t=i.get(e),r=void 0===t?b?.get(e)??null:t;return null===r?null:u(o,r,e)}),j=(0,O.useRef)(v);(0,l.fF)("[nuqs `%s`] render - state: %O, iSP: %s",e,v,b?.get(e)??null),(0,O.useEffect)(()=>{let t=b?.get(e)??null;if(t===S.current)return;let r=null===t?null:u(o,t,e);(0,l.fF)("[nuqs `%s`] syncFromUseSearchParams %O",e,r),j.current=r,S.current=t,w(r)},[b?.get(e),e]),(0,O.useEffect)(()=>{function t({state:t,query:r}){(0,l.fF)("[nuqs `%s`] updateInternalState %O",e,t),j.current=t,S.current=r,w(t)}return(0,l.fF)("[nuqs `%s`] subscribing to sync",e),N.on(e,t),()=>{(0,l.fF)("[nuqs `%s`] unsubscribing from sync",e),N.off(e,t)}},[e]);let q=(0,O.useCallback)((l,u={})=>{let s="function"==typeof l?l(j.current??p??null):l;(u.clearOnDefault??g)&&null!==s&&void 0!==p&&f(s,p)&&(s=null);let i=h(e,s,c,{history:u.history??t,shallow:u.shallow??r,scroll:u.scroll??n,throttleMs:u.throttleMs??a,startTransition:u.startTransition??y});return N.emit(e,{state:s,query:i}),m(d)},[e,t,r,n,a,y,d.updateUrl,d.getSearchParamsSnapshot,d.rateLimitFactor]);return[v??p??null,q]}var M={};function k(e,{history:t="replace",scroll:r=!1,shallow:n=!0,throttleMs:u=s,clearOnDefault:i=!0,startTransition:a,urlKeys:o=M}={}){let c=Object.keys(e).join(","),f=(0,O.useMemo)(()=>Object.fromEntries(Object.keys(e).map(e=>[e,o[e]??e])),[c,JSON.stringify(o)]),p=(0,l.YW)(),g=p.searchParams,y=(0,O.useRef)({}),d=(0,O.useMemo)(()=>Object.fromEntries(Object.keys(e).map(t=>[t,e[t].defaultValue??null])),[Object.values(e).map(({defaultValue:e})=>e).join(",")]),[b,S]=(0,O.useState)(()=>z(e,o,g??new URLSearchParams).state),v=(0,O.useRef)(b);if((0,l.fF)("[nuq+ `%s`] render - state: %O, iSP: %s",c,b,g),Object.keys(y.current).join("&")!==Object.values(f).join("&")){let{state:t,hasChanged:r}=z(e,o,g,y.current,v.current);r&&(v.current=t,S(t)),y.current=Object.fromEntries(Object.values(f).map(e=>[e,g?.get(e)??null]))}(0,O.useEffect)(()=>{let{state:t,hasChanged:r}=z(e,o,g,y.current,v.current);r&&(v.current=t,S(t))},[Object.values(f).map(e=>`${e}=${g?.get(e)}`).join("&")]),(0,O.useEffect)(()=>{let t=Object.keys(e).reduce((t,r)=>(t[r]=({state:t,query:n})=>{var u;let{defaultValue:s}=e[r],i=f[r];v.current={...v.current,[r]:t??s??null},y.current[i]=n,(0,l.fF)("[nuq+ `%s`] Cross-hook key sync %s: %O (default: %O). Resolved: %O",c,i,t,s,v.current),u=v.current,(0,l.fF)("[nuq+ `%s`] updateInternalState %O",c,u),v.current=u,S(u)},t),{});for(let r of Object.keys(e)){let e=f[r];(0,l.fF)("[nuq+ `%s`] Subscribing to sync for `%s`",c,e),N.on(e,t[r])}return()=>{for(let r of Object.keys(e)){let e=f[r];(0,l.fF)("[nuq+ `%s`] Unsubscribing to sync for `%s`",c,e),N.off(e,t[r])}}},[c,f]);let w=(0,O.useCallback)((s,o={})=>{let O=Object.fromEntries(Object.keys(e).map(e=>[e,null])),g="function"==typeof s?s(E(v.current,d))??O:s??O;for(let[s,p]of((0,l.fF)("[nuq+ `%s`] setState: %O",c,g),Object.entries(g))){let l=e[s],c=f[s];if(!l)continue;(o.clearOnDefault??l.clearOnDefault??i)&&null!==p&&void 0!==l.defaultValue&&(l.eq??((e,t)=>e===t))(p,l.defaultValue)&&(p=null);let m=h(c,p,l.serialize??String,{history:o.history??l.history??t,shallow:o.shallow??l.shallow??n,scroll:o.scroll??l.scroll??r,throttleMs:o.throttleMs??l.throttleMs??u,startTransition:o.startTransition??l.startTransition??a});N.emit(c,{state:p,query:m})}return m(p)},[c,t,n,r,u,a,f,p.updateUrl,p.getSearchParamsSnapshot,p.rateLimitFactor,d]);return[(0,O.useMemo)(()=>E(b,d),[b,d]),w]}function z(e,t,r,n,l){let s=!1,a=Object.keys(e).reduce((a,o)=>{let c=t?.[o]??o,{parse:f}=e[o],h=i.get(c),p=void 0===h?r?.get(c)??null:h;if(n&&l&&(n[c]??null)===p)return a[o]=l[o]??null,a;s=!0;let m=null===p?null:u(f,p,o);return a[o]=m??null,n&&(n[c]=p),a},{});if(!s){let t=Object.keys(e),r=Object.keys(l??{});s=t.length!==r.length||t.some(e=>!r.includes(e))}return{state:a,hasChanged:s}}function E(e,t){return Object.fromEntries(Object.keys(e).map(r=>[r,e[r]??t[r]??null]))}}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4496],{12197:function(e){var t;t=function(){"use strict";var e={year:0,month:1,day:2,hour:3,minute:4,second:5},t={};return function(s,n,i){var a,l=function(e,s,n){void 0===n&&(n={});var i,a,l,r,o=new Date(e);return(void 0===(i=n)&&(i={}),(r=t[l=s+"|"+(a=i.timeZoneName||"short")])||(r=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:s,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",timeZoneName:a}),t[l]=r),r).formatToParts(o)},r=function(t,s){for(var n=l(t,s),a=[],r=0;r<n.length;r+=1){var o=n[r],d=o.type,u=o.value,c=e[d];c>=0&&(a[c]=parseInt(u,10))}var m=a[3],f=a[0]+"-"+a[1]+"-"+a[2]+" "+(24===m?0:m)+":"+a[4]+":"+a[5]+":000",h=+t;return(i.utc(f).valueOf()-(h-=h%1e3))/6e4},o=n.prototype;o.tz=function(e,t){void 0===e&&(e=a);var s,n=this.utcOffset(),l=this.toDate(),r=l.toLocaleString("en-US",{timeZone:e}),o=Math.round((l-new Date(r))/1e3/60),d=-(15*Math.round(l.getTimezoneOffset()/15))-o;if(Number(d)){if(s=i(r,{locale:this.$L}).$set("millisecond",this.$ms).utcOffset(d,!0),t){var u=s.utcOffset();s=s.add(n-u,"minute")}}else s=this.utcOffset(0,t);return s.$x.$timezone=e,s},o.offsetName=function(e){var t=this.$x.$timezone||i.tz.guess(),s=l(this.valueOf(),t,{timeZoneName:e}).find(function(e){return"timezonename"===e.type.toLowerCase()});return s&&s.value};var d=o.startOf;o.startOf=function(e,t){if(!this.$x||!this.$x.$timezone)return d.call(this,e,t);var s=i(this.format("YYYY-MM-DD HH:mm:ss:SSS"),{locale:this.$L});return d.call(s,e,t).tz(this.$x.$timezone,!0)},i.tz=function(e,t,s){var n=s&&t,l=s||t||a,o=r(+i(),l);if("string"!=typeof e)return i(e).tz(l);var d=function(e,t,s){var n=e-60*t*1e3,i=r(n,s);if(t===i)return[n,t];var a=r(n-=60*(i-t)*1e3,s);return i===a?[n,i]:[e-60*Math.min(i,a)*1e3,Math.max(i,a)]}(i.utc(e,n).valueOf(),o,l),u=d[0],c=d[1],m=i(u).utcOffset(c);return m.$x.$timezone=l,m},i.tz.guess=function(){return Intl.DateTimeFormat().resolvedOptions().timeZone},i.tz.setDefault=function(e){a=e}}},e.exports=t()},4496:function(e,t,s){"use strict";s.d(t,{Z:function(){return w}});var n=s(24246),i=s(98227),a=s(86677),l=s(27378),r=s(812),o=s(58452),d=s(77830),u=s(19904),c=s(65735),m=s(35493),f=s(40822),h=s(54458),g=s(27693),p=s.n(g),y=s(12197),x=s.n(y),v=s(96600),j=s.n(v),D=s(81179);p().extend(j()),p().extend(x());let{Text:S}=i.AntTypography,N="09:00",_=D.eO.MONDAY,b=[{label:"Daily",value:D.Di.DAILY},{label:"Weekly",value:D.Di.WEEKLY},{label:"Weekdays",value:D.Di.WEEKDAYS},{label:"Monthly",value:D.Di.MONTHLY}];var T=e=>{let{value:t,onChange:s,onTimezoneChange:a,timezone:r}=e,[o,d]=(0,l.useState)(D.Di.WEEKLY),[u,c]=(0,l.useState)(1),[m,f]=(0,l.useState)(!1),g=(0,l.useRef)(!1),y=p().tz.guess(),x=r||y,v=(0,l.useMemo)(()=>{let e=new Date,t=(0,h.WU)(e,"O",{timeZone:x}),s=x.split("/");return{cityName:s[s.length-1].replace(/_/g," "),gmtOffset:t}},[x]);(0,l.useEffect)(()=>{r||null==a||a(y)},[y,a,r]),(0,l.useEffect)(()=>{if(t&&!g.current){let e=(0,D.se)(t);e?(f(!1),d(e.frequency),void 0!==e.dayOfMonth&&c(e.dayOfMonth)):f(!0),g.current=!0}},[t]),(0,l.useEffect)(()=>{let e={frequency:o,time:N,...o===D.Di.WEEKLY&&{dayOfWeek:_},...o===D.Di.MONTHLY&&{dayOfMonth:u}};try{let t=(0,D.Ns)(e);null==s||s(t)}catch(e){console.error("Error generating cron expression:",e)}},[o,u,s]);let j={frequency:o,time:N,...o===D.Di.WEEKLY&&{dayOfWeek:_},...o===D.Di.MONTHLY&&{dayOfMonth:u}};return(0,n.jsxs)(i.vyj,{direction:"vertical",size:"middle",className:"w-full",children:[m&&(0,n.jsx)(i.DUx,{message:"Custom Cron Expression",description:"This digest uses a custom cron expression that cannot be edited with the picker. Changing the schedule will replace the custom expression.",type:"warning",closable:!0,onClose:()=>f(!1)}),(0,n.jsxs)("div",{children:[(0,n.jsx)(S,{strong:!0,className:"mb-1 block",children:"Frequency"}),(0,n.jsx)(i.WPr,{value:o,onChange:d,options:b,"data-testid":"select-frequency",className:"w-full",id:"select-frequency","aria-label":"Frequency"})]}),o===D.Di.MONTHLY&&(0,n.jsxs)("div",{children:[(0,n.jsx)(S,{strong:!0,className:"mb-1 block",children:"Day of Month"}),(0,n.jsx)(i.W7D,{value:u,onChange:e=>{null!==e&&(0,D.Ch)(e)&&c(e)},min:1,max:31,"data-testid":"input-day-of-month",className:"w-full"}),u>28&&(0,n.jsx)(S,{type:"secondary",className:"mt-1 block text-xs",children:"Note: Days 29-31 will not trigger in all months"})]}),(0,n.jsx)("div",{className:"rounded-md bg-gray-50 p-3",children:(0,n.jsxs)(S,{type:"secondary",className:"text-xs",children:["Schedule: ",(0,D.qV)(j)," ",v.cityName," (",v.gmtOffset,")"]})})]})},P=e=>{let{isOpen:t,onClose:s,digestConfigId:a,digestType:l}=e,[o]=i.PPS.useForm(),[d,u]=i.Pg3.useMessage(),[c,{isLoading:m}]=(0,f.ch)(),h=async e=>{let t=await c({digest_config_id:a,digest_config_type:l,test_email:e.email});if((0,r.D4)(t)){d.error((0,r.e$)(t.error));return}d.success("Test email sent to ".concat(e.email)),o.resetFields(),s()},g=()=>{o.resetFields(),s()};return(0,n.jsxs)(i.$zI,{title:"Send Test Email",open:t,onCancel:g,footer:null,destroyOnClose:!0,children:[u,(0,n.jsxs)(i.PPS,{form:o,layout:"vertical",onFinish:h,initialValues:{email:""},children:[(0,n.jsx)(i.PPS.Item,{label:"Email Address",name:"email",rules:[{required:!0,message:"Please enter an email address"},{type:"email",message:"Please enter a valid email address"}],children:(0,n.jsx)(i.AntInput,{type:"email",placeholder:"user@example.com","data-testid":"test-email-input"})}),(0,n.jsx)(i.PPS.Item,{children:(0,n.jsxs)(i.vyj,{className:"w-full justify-end",children:[(0,n.jsx)(i.wpx,{onClick:g,"data-testid":"cancel-test-btn",children:"Cancel"}),(0,n.jsx)(i.wpx,{type:"primary",htmlType:"submit",loading:m,"data-testid":"send-test-btn",children:"Send Test"})]})})]})]})},w=e=>{let{initialValues:t,isLoading:s}=e,[h]=i.PPS.useForm(),g=(0,a.useRouter)(),[p,y]=i.Pg3.useMessage(),[x,v]=(0,l.useState)(!1),[j,D]=(0,l.useState)(!1),[S,N]=(0,l.useState)((null==t?void 0:t.timezone)||m.EW),[_,{isLoading:b}]=(0,f.m1)(),[w,{isLoading:A}]=(0,f.zb)(),[M]=(0,f.yG)(),O=!!(null==t?void 0:t.id),C=(0,u.Tg)([c.Sh.DIGEST_CONFIG_DELETE])&&O,E=async()=>{let e=await M({config_id:null==t?void 0:t.id,digest_config_type:c.tB.MANUAL_TASKS});if((0,r.D4)(e)){p.error((0,r.e$)(e.error)),D(!1);return}p.success("Digest configuration deleted successfully",void 0,()=>{g.push(d.DN)})},L=async e=>{var s;let{id:n,...i}=e,a={...i,messaging_service_type:i.messaging_service_type||c.qr.EMAIL,enabled:null===(s=null==t?void 0:t.enabled)||void 0===s||s,timezone:S};if(O&&n){let e=await w({config_id:n,digest_config_type:c.tB.MANUAL_TASKS,data:a});if((0,r.D4)(e)){p.error((0,r.e$)(e.error));return}p.success({content:"Digest configuration updated successfully",duration:3}),setTimeout(()=>{g.push(d.DN)},500)}else{let e=await _({digest_config_type:c.tB.MANUAL_TASKS,data:a});if((0,r.D4)(e)){p.error((0,r.e$)(e.error));return}p.success({content:"Digest configuration created successfully",duration:3}),setTimeout(()=>{g.push(d.DN)},500)}},z=t||{name:"",digest_type:c.tB.MANUAL_TASKS,messaging_service_type:c.qr.EMAIL,cron_expression:m.by,timezone:m.EW,config_metadata:null};return s?(0,n.jsx)("div",{children:"Loading..."}):(0,n.jsxs)(n.Fragment,{children:[y,(0,n.jsxs)(i.PPS,{form:h,layout:"vertical",initialValues:z,onFinish:L,className:"max-w-2xl",children:[(0,n.jsx)(i.PPS.Item,{label:"Digest Type",name:"digest_type",tooltip:"Type of content this digest will contain",children:(0,n.jsx)(i.WPr,{disabled:!0,options:[{label:"Manual Tasks",value:c.tB.MANUAL_TASKS}],"data-testid":"select-digest-type","aria-label":"Digest Type"})}),(0,n.jsx)(i.PPS.Item,{label:"Name",name:"name",rules:[{required:!0,message:"Please enter a name"}],tooltip:"A descriptive name for this digest configuration",children:(0,n.jsx)(i.AntInput,{"data-testid":"input-name",placeholder:"e.g., Weekly Manual Tasks Summary"})}),(0,n.jsx)(i.PPS.Item,{name:"id",hidden:!0,children:(0,n.jsx)(i.AntInput,{})}),(0,n.jsx)(i.PPS.Item,{name:"messaging_service_type",hidden:!0,children:(0,n.jsx)(i.AntInput,{})}),(0,n.jsx)(i.PPS.Item,{name:"cron_expression",rules:[{required:!0,message:"Please configure a schedule"}],tooltip:"Configure when the digest should be sent",children:(0,n.jsx)(T,{onTimezoneChange:N,timezone:null==t?void 0:t.timezone})}),(0,n.jsx)(i.PPS.Item,{children:(0,n.jsxs)(i.vyj,{className:"w-full justify-between",children:[(0,n.jsxs)(i.vyj,{children:[O&&(0,n.jsx)(i.wpx,{onClick:()=>v(!0),"data-testid":"test-email-btn",children:"Send test"}),C&&(0,n.jsx)(i.wpx,{danger:!0,onClick:()=>{D(!0)},"data-testid":"delete-btn",children:"Delete"})]}),(0,n.jsxs)(i.vyj,{children:[(0,n.jsx)(i.wpx,{onClick:()=>g.push(d.DN),"data-testid":"cancel-btn",children:"Cancel"}),(0,n.jsx)(i.wpx,{type:"primary",htmlType:"submit",loading:b||A,"data-testid":"submit-btn",children:O?"Update":"Create"})]})]})})]}),O&&(null==t?void 0:t.id)&&(0,n.jsx)(P,{isOpen:x,onClose:()=>v(!1),digestConfigId:t.id,digestType:c.tB.MANUAL_TASKS}),(0,n.jsx)(o.Z,{isOpen:j,onClose:()=>{D(!1)},onConfirm:E,title:"Delete digest configuration",message:(0,n.jsxs)("span",{className:"text-gray-500",children:['Are you sure you want to delete the digest "',null==t?void 0:t.name,'"? This action cannot be undone.']}),continueButtonText:"Delete",isCentered:!0,icon:(0,n.jsx)(i.aNP,{})})]})}}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[454],{80594:function(t){t.exports=function(t,r){for(var e=-1,n=null==t?0:t.length;++e<n&&!1!==r(t[e],e,t););return t}},41876:function(t,r,e){var n=e(35159),o=e(50098);t.exports=function(t,r){return t&&n(r,o(r),t)}},5947:function(t,r,e){var n=e(35159),o=e(53893);t.exports=function(t,r){return t&&n(r,o(r),t)}},40699:function(t,r,e){var n=e(23694),o=e(80594),c=e(71928),u=e(41876),a=e(5947),i=e(2734),f=e(37561),s=e(31102),b=e(37048),p=e(51385),j=e(39759),v=e(3533),y=e(86541),l=e(2078),x=e(97635),A=e(19785),d=e(43854),w=e(98247),g=e(11611),h=e(47614),U=e(50098),m=e(53893),I="[object Arguments]",O="[object Function]",S="[object Object]",E={};E[I]=E["[object Array]"]=E["[object ArrayBuffer]"]=E["[object DataView]"]=E["[object Boolean]"]=E["[object Date]"]=E["[object Float32Array]"]=E["[object Float64Array]"]=E["[object Int8Array]"]=E["[object Int16Array]"]=E["[object Int32Array]"]=E["[object Map]"]=E["[object Number]"]=E[S]=E["[object RegExp]"]=E["[object Set]"]=E["[object String]"]=E["[object Symbol]"]=E["[object Uint8Array]"]=E["[object Uint8ClampedArray]"]=E["[object Uint16Array]"]=E["[object Uint32Array]"]=!0,E["[object Error]"]=E[O]=E["[object WeakMap]"]=!1,t.exports=function t(r,e,F,k,B,M){var C,D=1&e,N=2&e,_=4&e;if(F&&(C=B?F(r,k,B,M):F(r)),void 0!==C)return C;if(!g(r))return r;var L=A(r);if(L){if(C=y(r),!D)return f(r,C)}else{var R=v(r),T=R==O||"[object GeneratorFunction]"==R;if(d(r))return i(r,D);if(R==S||R==I||T&&!B){if(C=N||T?{}:x(r),!D)return N?b(r,a(C,r)):s(r,u(C,r))}else{if(!E[R])return B?r:{};C=l(r,R,D)}}M||(M=new n);var V=M.get(r);if(V)return V;M.set(r,C),h(r)?r.forEach(function(n){C.add(t(n,e,F,n,r,M))}):w(r)&&r.forEach(function(n,o){C.set(o,t(n,e,F,o,r,M))});var G=_?N?j:p:N?m:U,P=L?void 0:G(r);return o(P||r,function(n,o){P&&(n=r[o=n]),c(C,o,t(n,e,F,o,r,M))}),C}},80158:function(t,r,e){var n=e(11611),o=Object.create,c=function(){function t(){}return function(r){if(!n(r))return{};if(o)return o(r);t.prototype=r;var e=new t;return t.prototype=void 0,e}}();t.exports=c},57657:function(t,r,e){var n=e(3533),o=e(92360);t.exports=function(t){return o(t)&&"[object Map]"==n(t)}},26903:function(t,r,e){var n=e(3533),o=e(92360);t.exports=function(t){return o(t)&&"[object Set]"==n(t)}},95825:function(t,r,e){var n=e(59942);t.exports=function(t){var r=new t.constructor(t.byteLength);return new n(r).set(new n(t)),r}},2734:function(t,r,e){t=e.nmd(t);var n=e(77400),o=r&&!r.nodeType&&r,c=o&&t&&!t.nodeType&&t,u=c&&c.exports===o?n.Buffer:void 0,a=u?u.allocUnsafe:void 0;t.exports=function(t,r){if(r)return t.slice();var e=t.length,n=a?a(e):new t.constructor(e);return t.copy(n),n}},61859:function(t,r,e){var n=e(95825);t.exports=function(t,r){var e=r?n(t.buffer):t.buffer;return new t.constructor(e,t.byteOffset,t.byteLength)}},9377:function(t){var r=/\w*$/;t.exports=function(t){var e=new t.constructor(t.source,r.exec(t));return e.lastIndex=t.lastIndex,e}},24116:function(t,r,e){var n=e(96539),o=n?n.prototype:void 0,c=o?o.valueOf:void 0;t.exports=function(t){return c?Object(c.call(t)):{}}},63428:function(t,r,e){var n=e(95825);t.exports=function(t,r){var e=r?n(t.buffer):t.buffer;return new t.constructor(e,t.byteOffset,t.length)}},37561:function(t){t.exports=function(t,r){var e=-1,n=t.length;for(r||(r=Array(n));++e<n;)r[e]=t[e];return r}},35159:function(t,r,e){var n=e(71928),o=e(88799);t.exports=function(t,r,e,c){var u=!e;e||(e={});for(var a=-1,i=r.length;++a<i;){var f=r[a],s=c?c(e[f],t[f],f,e,t):void 0;void 0===s&&(s=t[f]),u?o(e,f,s):n(e,f,s)}return e}},31102:function(t,r,e){var n=e(35159),o=e(83080);t.exports=function(t,r){return n(t,o(t),r)}},37048:function(t,r,e){var n=e(35159),o=e(30791);t.exports=function(t,r){return n(t,o(t),r)}},86541:function(t){var r=Object.prototype.hasOwnProperty;t.exports=function(t){var e=t.length,n=new t.constructor(e);return e&&"string"==typeof t[0]&&r.call(t,"index")&&(n.index=t.index,n.input=t.input),n}},2078:function(t,r,e){var n=e(95825),o=e(61859),c=e(9377),u=e(24116),a=e(63428);t.exports=function(t,r,e){var i=t.constructor;switch(r){case"[object ArrayBuffer]":return n(t);case"[object Boolean]":case"[object Date]":return new i(+t);case"[object DataView]":return o(t,e);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return a(t,e);case"[object Map]":case"[object Set]":return new i;case"[object Number]":case"[object String]":return new i(t);case"[object RegExp]":return c(t);case"[object Symbol]":return u(t)}}},97635:function(t,r,e){var n=e(80158),o=e(2173),c=e(56016);t.exports=function(t){return"function"!=typeof t.constructor||c(t)?{}:n(o(t))}},30454:function(t,r,e){var n=e(40699);t.exports=function(t){return n(t,5)}},98247:function(t,r,e){var n=e(57657),o=e(39334),c=e(18125),u=c&&c.isMap,a=u?o(u):n;t.exports=a},47614:function(t,r,e){var n=e(26903),o=e(39334),c=e(18125),u=c&&c.isSet,a=u?o(u):n;t.exports=a}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4817],{74833:function(t,e,n){var i=n(56127),r=/^\s+/;t.exports=function(t){return t?t.slice(0,i(t)+1).replace(r,""):t}},56127:function(t){var e=/\s/;t.exports=function(t){for(var n=t.length;n--&&e.test(t.charAt(n)););return n}},66726:function(t,e,n){var i=n(11611),r=n(82846),o=n(91936),s=Math.max,a=Math.min;t.exports=function(t,e,n){var c,l,u,d,f,x,p=0,h=!1,v=!1,m=!0;if("function"!=typeof t)throw TypeError("Expected a function");function j(e){var n=c,i=l;return c=l=void 0,p=e,d=t.apply(i,n)}function g(t){var n=t-x,i=t-p;return void 0===x||n>=e||n<0||v&&i>=u}function E(){var t,n,i,o=r();if(g(o))return C(o);f=setTimeout(E,(t=o-x,n=o-p,i=e-t,v?a(i,u-n):i))}function C(t){return(f=void 0,m&&c)?j(t):(c=l=void 0,d)}function I(){var t,n=r(),i=g(n);if(c=arguments,l=this,x=n,i){if(void 0===f)return p=t=x,f=setTimeout(E,e),h?j(t):d;if(v)return clearTimeout(f),f=setTimeout(E,e),j(x)}return void 0===f&&(f=setTimeout(E,e)),d}return e=o(e)||0,i(n)&&(h=!!n.leading,u=(v="maxWait"in n)?s(o(n.maxWait)||0,e):u,m="trailing"in n?!!n.trailing:m),I.cancel=function(){void 0!==f&&clearTimeout(f),p=0,c=x=l=f=void 0},I.flush=function(){return void 0===f?d:C(r())},I}},82846:function(t,e,n){var i=n(77400);t.exports=function(){return i.Date.now()}},91936:function(t,e,n){var i=n(74833),r=n(11611),o=n(55193),s=0/0,a=/^[-+]0x[0-9a-f]+$/i,c=/^0b[01]+$/i,l=/^0o[0-7]+$/i,u=parseInt;t.exports=function(t){if("number"==typeof t)return t;if(o(t))return s;if(r(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=r(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=i(t);var n=c.test(t);return n||l.test(t)?u(t.slice(2),n?2:8):a.test(t)?s:+t}},30952:function(t,e,n){"use strict";n.d(e,{f:function(){return c}});var i=n(24246),r=n(66726),o=n.n(r),s=n(27378),a=n(26917);let c=t=>{let{value:e,onChange:n,placeholder:r,...c}=t,[l,u]=(0,s.useState)(e);(0,s.useEffect)(()=>{u(e||"")},[e]);let d=o()(n,500),f=(0,s.useCallback)(t=>{u(t),d(t)},[]);return(0,i.jsx)(a.Z,{value:l,onChange:f,onClear:()=>{u(""),n("")},placeholder:r,...c})}},35287:function(t,e,n){"use strict";var i=n(24246),r=n(98227),o=n(88038),s=n.n(o);n(27378),e.Z=t=>{let{children:e,title:n,fullHeight:o,fullWidth:a,mainProps:c}=t;return(0,i.jsxs)(r.kCb,{"data-testid":n,direction:"column",height:o?"100vh":"calc(100vh - 48px)",width:a?"100vw":"calc(100vw - 240px)",children:[(0,i.jsxs)(s(),{children:[(0,i.jsxs)("title",{children:["Fides Admin UI - ",n]}),(0,i.jsx)("meta",{name:"description",content:"Privacy Engineering Platform"}),(0,i.jsx)("link",{rel:"icon",href:"/favicon.ico"})]}),(0,i.jsx)(r.kCb,{px:10,py:6,as:"main",overflow:"auto",direction:"column",flex:1,minWidth:0,...c,children:e})]})}},58754:function(t,e,n){"use strict";var i=n(24246),r=n(98227),o=n(70788);e.Z=t=>{let{heading:e,breadcrumbItems:n,isSticky:s=!0,children:a,rightContent:c,style:l,...u}=t;return(0,i.jsxs)("div",{...u,style:s?{position:"sticky",top:"-24px",paddingTop:"24px",paddingBottom:"24px",paddingLeft:"40px",marginLeft:"-40px",paddingRight:"40px",marginRight:"-40px",marginTop:"-24px",left:0,zIndex:20,backgroundColor:"white",...l}:{paddingBottom:"24px",...l},children:[(0,i.jsxs)(r.jqI,{justify:"space-between",children:["string"==typeof e?(0,i.jsx)(r.lQT,{className:n||a?"pb-4":void 0,level:1,"data-testid":"page-heading",children:e}):e,c&&(0,i.jsx)("div",{"data-testid":"page-header-right-content",children:c})]}),!!n&&(0,i.jsx)(o.m,{className:a?"pb-4":void 0,items:n,"data-testid":"page-breadcrumb"}),a]})}},70788:function(t,e,n){"use strict";n.d(e,{m:function(){return l}});var i=n(24246),r=n(98227),o=n(79894),s=n.n(o),a=n(27378);let{Text:c}=r.AntTypography,l=t=>{let{items:e,...n}=t,o=(0,a.useMemo)(()=>null==e?void 0:e.map((t,n)=>{let o=n===e.length-1,a={...t},l=a.onClick&&!a.href;return("string"==typeof a.title&&(a.title=(0,i.jsx)(c,{style:{color:"inherit",maxWidth:o?void 0:400},ellipsis:!o,id:o?"breadcrumb-current-page":void 0,children:a.title})),l)?a.title=(0,i.jsx)(r.wpx,{type:"text",size:"small",icon:a.icon,onClick:a.onClick,className:"ant-breadcrumb-link -mt-px px-1 text-inherit",children:a.title}):(a.icon&&(a.title=(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("span",{className:"anticon align-text-bottom",children:a.icon}),a.title]})),a.href&&a.title&&(a.title=(0,i.jsx)(s(),{href:a.href,className:"ant-breadcrumb-link",children:a.title}),delete a.href)),a}),[e]);return(0,i.jsx)(r.zrq,{items:o,...n})}},76904:function(t,e,n){"use strict";n.d(e,{dK:function(){return d},Rv:function(){return h},$P:function(){return x},zj:function(){return v},Kr:function(){return m},q1:function(){return f},QL:function(){return j}});var i=n(24246),r=n(98227),o=n(3124),s=n.n(o);let a=t=>{let{...e}=t;return(0,i.jsx)("svg",{viewBox:"0 0 8 8",focusable:"false",...e,children:(0,i.jsx)("path",{fill:"currentColor",d:"M7.23192 8H8V7.23192V1.85539V1.08731H6.46385V1.85539V5.37654L1.62976 0.544855L1.08731 0L0 1.08731L0.542454 1.62976L5.37654 6.46385H1.85539H1.08731V8H1.85539H7.23192Z"})})},c=t=>{let{...e}=t;return(0,i.jsx)("svg",{viewBox:"0 0 8 8",focusable:"false",...e,children:(0,i.jsx)("path",{fill:"currentColor",d:"M7.23192 0H8V0.768077V6.14461V6.91269H6.46385V6.14461V2.62346L1.62976 7.45515L1.08731 8L0 6.91269L0.542454 6.37024L5.37654 1.53615H1.85539H1.08731V0H1.85539H7.23192Z"})})},l=t=>{let{...e}=t;return(0,i.jsx)("svg",{viewBox:"0 0 9 10",focusable:"false",...e,children:(0,i.jsx)("path",{fill:"currentColor",d:"M0 0.5V5L4.5 9.5L9 5L4.5 0.5H0ZM2.25 2.10714C2.4205 2.10714 2.58401 2.17487 2.70457 2.29543C2.82513 2.41599 2.89286 2.5795 2.89286 2.75C2.89286 2.9205 2.82513 3.08401 2.70457 3.20457C2.58401 3.32513 2.4205 3.39286 2.25 3.39286C2.0795 3.39286 1.91599 3.32513 1.79543 3.20457C1.67487 3.08401 1.60714 2.9205 1.60714 2.75C1.60714 2.5795 1.67487 2.41599 1.79543 2.29543C1.91599 2.17487 2.0795 2.10714 2.25 2.10714Z"})})};var u=n(28278);let d=()=>(0,i.jsx)(c,{style:{color:s().FIDESUI_SUCCESS},className:"size-2","data-testid":"add-icon"}),f=()=>(0,i.jsx)(a,{style:{color:s().FIDESUI_ERROR},className:"size-2","data-testid":"remove-icon"}),x=()=>(0,i.jsx)(l,{style:{color:s().FIDESUI_WARNING},className:"size-3","data-testid":"classify-icon"}),p=t=>{let{color:e,...n}=t;return(0,i.jsx)(r.PJP.fRw,{style:{color:e},className:"size-2",...n})},h=()=>(0,i.jsx)(p,{color:s().FIDESUI_INFO,"data-testid":"change-icon"}),v=()=>(0,i.jsx)(p,{color:s().FIDESUI_SUCCESS,"data-testid":"monitored-icon"}),m=()=>(0,i.jsx)(p,{color:s().FIDESUI_ERROR,"data-testid":"muted-icon"}),j={[u.E.ADDITION]:(0,i.jsx)(d,{}),[u.E.REMOVAL]:(0,i.jsx)(f,{}),[u.E.CLASSIFICATION]:(0,i.jsx)(x,{}),[u.E.CHANGE]:(0,i.jsx)(h,{}),[u.E.MONITORED]:(0,i.jsx)(v,{}),[u.E.MUTED]:(0,i.jsx)(m,{}),[u.E.IN_PROGRESS]:(0,i.jsx)(()=>(0,i.jsx)(p,{color:s().FIDESUI_WARNING,"data-testid":"in-progress-icon"}),{}),[u.E.NONE]:null}},28278:function(t,e,n){"use strict";var i,r;n.d(e,{E:function(){return i}}),(r=i||(i={})).ADDITION="Addition",r.CHANGE="Change",r.REMOVAL="Removal",r.CLASSIFICATION="Classification",r.IN_PROGRESS="Classifying",r.MONITORED="Monitoring",r.MUTED="Unmonitored",r.NONE="--"}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5185],{51472:function(e,t,n){var r=n(24246),l=n(98227),i=n(47397),o=n(7078),a=n(18397),s=n(11055),d=n(27378),u=n(40324),c=n(46238);let x=e=>{let{item:t,label:n,draggable:a,onDeleteItem:s,onEditItem:d,tooltip:u,onRowClick:x,maxH:p=10,rowTestId:m}=e,f=(0,i.o)(),h=(0,r.jsxs)(l.kCb,{direction:"row",gap:2,maxH:p,w:"full",px:2,align:"center",role:"group",className:"group",borderY:"1px",my:"-1px",borderColor:"gray.200",_hover:x?{bgColor:"gray.100"}:void 0,bgColor:"white",position:"relative",children:[a&&(0,r.jsx)(l.VVU,{onPointerDown:e=>f.start(e),cursor:"grab"}),(0,r.jsxs)(l.kCb,{direction:"row",gap:2,p:2,align:"center",w:"full",cursor:x?"pointer":"auto",onClick:()=>{x&&x(t)},overflow:"clip","data-testid":m,children:[(0,r.jsx)(l.xvT,{fontSize:"sm",userSelect:"none",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden",children:n}),(0,r.jsx)(c.b,{label:u})]}),(0,r.jsxs)(l.vyj,{className:"invisible absolute right-2 bg-white group-hover:visible",children:[d&&(0,r.jsx)(l.wpx,{"aria-label":"Edit",onClick:()=>d(t),icon:(0,r.jsx)(l.PJP.I8b,{}),size:"small","data-testid":"edit-".concat(m)}),s&&(0,r.jsx)(l.wpx,{"aria-label":"Delete",onClick:()=>s(t),icon:(0,r.jsx)(l.PJP.ZNm,{}),size:"small","data-testid":"delete-".concat(m)})]})]});return a?(0,r.jsx)(o.e,{value:t,dragListener:!1,dragControls:f,children:h}):h},p=e=>{let{label:t,options:n,onOptionSelected:i,baseTestId:o}=e,[a,s]=(0,d.useState)(!1),[u,c]=(0,d.useState)(void 0);return a?(0,r.jsx)(l.xuv,{w:"full",children:(0,r.jsx)(l.WPr,{labelInValue:!0,placeholder:"Select...",filterOption:(e,t)=>{var n;return(null!==(n=null==t?void 0:t.label)&&void 0!==n?n:"").toLowerCase().includes(e.toLowerCase())},value:u,options:n,onChange:e=>{i(e),s(!1),c(void 0)},className:"w-full","data-testid":"select-".concat(o),"aria-label":t})}):(0,r.jsx)(l.wpx,{onClick:()=>s(!0),"data-testid":"add-".concat(o),block:!0,icon:(0,r.jsx)(l.jBn,{boxSize:4}),iconPosition:"end",children:t})};t.Z=e=>{let{label:t,tooltip:n,draggable:i,addButtonLabel:o,allItems:d,idField:m,nameField:f=m,values:h,setValues:v,canDeleteItem:j,getTooltip:g,onRowClick:b,onEditItem:y,selectOnAdd:w,getItemLabel:C,createNewValue:S,maxHeight:I=36,baseTestId:R}=e,k=e=>e instanceof Object&&m&&m in e?e[m]:e,E=d.every(e=>"string"==typeof e)?d.filter(e=>h.every(t=>t!==e)):d.filter(e=>h.every(t=>k(t)!==k(e))),T=e=>{v(h.filter(t=>t!==e).slice())},N=null!=C?C:e=>e instanceof Object&&m&&m in e?f&&f in e?e[f]:e[m]:e,P=e=>{let t=e instanceof Object&&m&&m in e?e[m]:e;return{label:N(e),value:t}},_=e=>d.every(e=>"string"==typeof e)?e.value:d.find(t=>t[m]===e.value),q=e=>{let t=S?S(e):_(e);v([t,...h.slice()]),w&&b&&b(t),w&&y&&y(t)},O={border:"1px",borderColor:"gray.200",borderRadius:"md",w:"full",maxH:"8.5rem",overflowY:"auto"},Z=i?(0,r.jsx)(l.xuv,{as:a.E.div,layoutScroll:!0,...O,children:(0,r.jsx)(s.M,{values:h,onReorder:e=>v(e.slice()),children:h.map(e=>{let t=k(e);return(0,r.jsx)(x,{item:e,label:N(e),onDeleteItem:!j||j&&j(e)?T:void 0,onEditItem:y,onRowClick:b,draggable:!0,maxH:I,rowTestId:"".concat(R,"-row-").concat(t),tooltip:g&&g(e)?g(e):void 0},t)})})}):(0,r.jsx)(l.xuv,{...O,children:(0,r.jsx)(l.aVo,{children:h.map(e=>{let t=k(e);return(0,r.jsx)(x,{item:e,label:N(e),onRowClick:b,onDeleteItem:T,tooltip:g&&g(e)?g(e):void 0,maxH:I,rowTestId:"".concat(R,"-row-").concat(t)},t)})})});return h.length?(0,r.jsxs)(l.kCb,{align:"start",direction:"column",w:"full",gap:4,children:[t?(0,r.jsx)(u.__,{htmlFor:"test",fontSize:"xs",my:0,mr:1,children:t}):null,(0,r.jsx)(c.b,{label:n}),Z,E.length?(0,r.jsx)(p,{label:null!=o?o:"Add new",options:E.map(e=>P(e)),onOptionSelected:q,baseTestId:R}):null]}):(0,r.jsx)(p,{label:null!=o?o:"Add new",options:E.map(e=>P(e)),onOptionSelected:q,baseTestId:R})}},97181:function(e,t,n){n.d(t,{d:function(){return d}});var r=n(24246),l=n(98227),i=n(34090),o=n(27378),a=n(46238),s=n(40324);let d=e=>{let{name:t,label:n,labelProps:d,tooltip:u,isRequired:c,layout:x="inline",helperText:p,...m}=e,[f,h,{setValue:v}]=(0,i.U$)(t),j=!!(h.touched&&h.error),[g,b]=(0,o.useState)("");f.value||"tags"!==m.mode&&"multiple"!==m.mode||(f.value=[]),"tags"===m.mode&&"string"==typeof f.value&&(f.value=[f.value]);let y="tags"===m.mode?(e,t)=>e?e.value!==g||f.value.includes(g)?m.optionRender?m.optionRender(e,t):e.label:'Create "'.concat(g,'"'):void 0:m.optionRender||void 0,w=e=>{b(e),m.onSearch&&m.onSearch(e)},C=(e,t)=>{v(e),m.onChange&&m.onChange(e,t)};return"inline"===x?(0,r.jsx)(l.NIc,{isInvalid:j,isRequired:c,children:(0,r.jsxs)(l.rjZ,{templateColumns:n?"1fr 3fr":"1fr",children:[n?(0,r.jsx)(s.__,{htmlFor:m.id||t,...d,children:n}):null,(0,r.jsxs)(l.jqI,{align:"center",children:[(0,r.jsxs)(l.jqI,{vertical:!0,flex:1,className:"mr-2",children:[(0,r.jsx)(l.WPr,{...f,id:m.id||t,"data-testid":"controlled-select-".concat(f.name),...m,optionRender:y,onSearch:"tags"===m.mode?w:void 0,onChange:C,value:f.value||void 0,status:j?"error":void 0}),p&&(0,r.jsx)(l.Q6r,{children:p}),(0,r.jsx)(s.Bc,{isInvalid:j,message:h.error,fieldName:f.name})]}),(0,r.jsx)(a.b,{label:u,className:j?"mt-2 self-start":void 0})]})]})}):(0,r.jsx)(l.NIc,{isInvalid:j,isRequired:c,children:(0,r.jsxs)(l.gCW,{alignItems:"start",children:[(0,r.jsxs)(l.jqI,{align:"center",children:[n?(0,r.jsx)(s.__,{htmlFor:m.id||t,fontSize:"xs",my:0,mr:1,...d,children:n}):null,(0,r.jsx)(a.b,{label:u})]}),(0,r.jsx)(l.WPr,{...f,id:m.id||t,"data-testid":"controlled-select-".concat(f.name),...m,optionRender:y,onSearch:"tags"===m.mode?w:void 0,onChange:C,value:f.value||void 0,status:j?"error":void 0}),p&&(0,r.jsx)(l.Q6r,{style:{marginTop:0},children:p}),(0,r.jsx)(s.Bc,{isInvalid:j,message:h.error,fieldName:f.name})]})})}},10342:function(e,t,n){var r=n(24246),l=n(98227),i=n(46238);t.Z=e=>{let{title:t,tooltip:n,children:o,...a}=e;return(0,r.jsxs)(l.xuv,{borderRadius:"md",border:"1px solid",borderColor:"gray.200",...a,children:[(0,r.jsxs)(l.X6q,{as:"h3",fontSize:"sm",fontWeight:"semibold",color:"gray.700",py:4,px:6,backgroundColor:"gray.50",borderRadius:"md",textAlign:"left",children:[t,n?(0,r.jsx)(l.xvT,{as:"span",mx:1,children:(0,r.jsx)(i.b,{label:n})}):void 0]}),(0,r.jsx)(l.Kqy,{p:6,spacing:6,children:o})]})}},18880:function(e,t,n){var r=n(24246),l=n(98227),i=n(34090),o=n(86677),a=n(27378),s=n(16134),d=n(10342),u=n(40324),c=n(812),x=n(77830),p=n(51472),m=n(94315),f=n(65735),h=n(97181),v=n(3642);let j=()=>{var e;let t=(0,s.C)(m.Zp),n=(0,s.C)(m.G1);(0,m.cq)({page:t,size:n});let l=(0,s.C)(m.w4),{values:o,setFieldValue:a}=(0,i.u6)();return(0,r.jsx)(d.Z,{title:"Experiences",children:(0,r.jsx)(p.Z,{addButtonLabel:"Add experience",idField:"id",nameField:"name",allItems:l.map(e=>({id:e.id,name:e.name})),values:null!==(e=o.experiences)&&void 0!==e?e:[],setValues:e=>a("experiences",e),draggable:!0,baseTestId:"experience"})})};t.Z=e=>{let{property:t,handleSubmit:n}=e,s=(0,o.useRouter)(),p=()=>{s.push(x.ru)},m=(0,a.useMemo)(()=>t||{name:"",type:f.uS.WEBSITE,experiences:[],messaging_templates:[],paths:[]},[t]);return(0,r.jsx)(i.J9,{enableReinitialize:!0,initialValues:m,onSubmit:n,children:e=>{let{dirty:n,isValid:o,isSubmitting:a}=e;return(0,r.jsxs)(i.l0,{style:{paddingTop:"12px",paddingBottom:"12px"},children:[(0,r.jsx)(l.xuv,{py:3,children:(0,r.jsxs)(d.Z,{title:"Property details",children:[(0,r.jsx)(u.j0,{isRequired:!0,label:"Property name",name:"name",tooltip:"Unique name to identify this property",variant:"stacked"}),(0,r.jsx)(h.d,{isRequired:!0,label:"Type",name:"type",options:(0,c.MM)(f.uS),layout:"stacked"})]})}),(0,r.jsx)(l.xuv,{py:3,children:(0,r.jsx)(j,{})}),t&&(0,r.jsx)(l.xuv,{py:3,children:(0,r.jsx)(d.Z,{title:"Advanced settings",children:(0,r.jsx)(u.Io,{label:"Property ID",name:"id",tooltip:"Automatically generated unique ID for this property, used for developer configurations",variant:"stacked",readOnly:!0})})}),(0,r.jsxs)(l.kCb,{justifyContent:"space-between",width:"100%",paddingTop:2,children:[t&&(0,r.jsx)(v.Z,{property:t,triggerComponent:(0,r.jsx)(l.wpx,{"data-testid":"delete-property-button",loading:!1,className:"mr-3",children:"Delete"})}),(0,r.jsxs)(l.kCb,{justifyContent:"right",width:"100%",paddingTop:2,children:[(0,r.jsx)(l.wpx,{onClick:p,loading:!1,className:"mr-3",children:"Cancel"}),(0,r.jsx)(l.wpx,{htmlType:"submit",type:"primary",disabled:a||!n||!o,loading:a,children:"Save"})]})]})]})}})}},31883:function(e,t,n){n.d(t,{Bw:function(){return r.Bw},D4:function(){return r.D4}});var r=n(19043)},11055:function(e,t,n){n.d(t,{M:function(){return c}});var r=n(24246),l=n(29427),i=n(27378),o=n(40976),a=n(18397),s=n(42308),d=n(25431),u=n(39556);let c=(0,i.forwardRef)(function({children:e,as:t="ul",axis:n="y",onReorder:c,values:m,...f},h){let v=(0,s.h)(()=>a.E[t]),j=[],g=(0,i.useRef)(!1);return(0,l.k)(!!m,"Reorder.Group must be provided a values prop"),(0,i.useEffect)(()=>{g.current=!1}),(0,r.jsx)(v,{...f,ref:h,ignoreStrict:!0,children:(0,r.jsx)(o.Y.Provider,{value:{axis:n,registerItem:(e,t)=>{let r=j.findIndex(t=>e===t.value);-1!==r?j[r].layout=t[n]:j.push({value:e,layout:t[n]}),j.sort(p)},updateOrder:(e,t,n)=>{if(g.current)return;let r=function(e,t,n,r){if(!r)return e;let l=e.findIndex(e=>e.value===t);if(-1===l)return e;let i=r>0?1:-1,o=e[l+i];if(!o)return e;let a=e[l],s=o.layout,c=(0,u.t)(s.min,s.max,.5);return 1===i&&a.layout.max+n>c||-1===i&&a.layout.min+n<c?(0,d.uo)(e,l,l+i):e}(j,e,t,n);j!==r&&(g.current=!0,c(r.map(x).filter(e=>-1!==m.indexOf(e))))}},children:e})})});function x(e){return e.value}function p(e,t){return e.layout.min-t.layout.min}},7078:function(e,t,n){n.d(t,{e:function(){return y}});var r=n(24246),l=n(29427),i=n(27378),o=n(40976),a=n(18397),s=n(42308),d=n(69222),u=n(67412);function c(e){let t=(0,s.h)(()=>(0,d.BX)(e)),{isStatic:n}=(0,i.useContext)(u._);if(n){let[,n]=(0,i.useState)(e);(0,i.useEffect)(()=>t.on("change",n),[])}return t}var x=n(13998);let p=e=>e&&"object"==typeof e&&e.mix,m=e=>p(e)?e.mix:void 0;var f=n(64306),h=n(95984);function v(e,t){let n=c(t()),r=()=>n.set(t());return r(),(0,f.L)(()=>{let t=()=>h.Wi.preRender(r,!1,!0),n=e.map(e=>e.on("change",t));return()=>{n.forEach(e=>e()),(0,h.Pn)(r)}}),n}function j(e,t){let n=(0,s.h)(()=>[]);return v(e,()=>{n.length=0;let r=e.length;for(let t=0;t<r;t++)n[t]=e[t].get();return t(n)})}var g=n(3522);function b(e,t=0){return(0,g.i)(e)?e:c(t)}let y=(0,i.forwardRef)(function({children:e,style:t={},value:n,as:u="li",onDrag:c,layout:p=!0,...f},h){let g=(0,s.h)(()=>a.E[u]),y=(0,i.useContext)(o.Y),w={x:b(t.x),y:b(t.y)},C=function(e,t,n,r){if("function"==typeof e)return function(e){d.S1.current=[],e();let t=v(d.S1.current,e);return d.S1.current=void 0,t}(e);let l="function"==typeof t?t:function(...e){let t=!Array.isArray(e[0]),n=t?0:-1,r=e[0+n],l=e[1+n],i=e[2+n],o=e[3+n],a=(0,x.s)(l,i,{mixer:m(i[0]),...o});return t?a(r):a}(t,void 0,void 0);return Array.isArray(e)?j(e,l):j([e],([e])=>l(e))}([w.x,w.y],([e,t])=>e||t?1:"unset");(0,l.k)(!!y,"Reorder.Item must be a child of Reorder.Group");let{axis:S,registerItem:I,updateOrder:R}=y;return(0,r.jsx)(g,{drag:S,...f,dragSnapToOrigin:!0,style:{...t,x:w.x,y:w.y,zIndex:C},layout:p,onDrag:(e,t)=>{let{velocity:r}=t;r[S]&&R(n,w[S].get(),r[S]),c&&c(e,t)},onLayoutMeasure:e=>I(n,e),ref:h,ignoreStrict:!0,children:e})})},40976:function(e,t,n){n.d(t,{Y:function(){return r}});let r=(0,n(27378).createContext)(null)},47397:function(e,t,n){n.d(t,{o:function(){return o}});var r=n(42308);class l{constructor(){this.componentControls=new Set}subscribe(e){return this.componentControls.add(e),()=>this.componentControls.delete(e)}start(e,t){this.componentControls.forEach(n=>{n.start(e.nativeEvent||e,t)})}}let i=()=>new l;function o(){return(0,r.h)(i)}}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5258],{97181:function(e,a,t){t.d(a,{d:function(){return o}});var i=t(24246),s=t(98227),n=t(34090),r=t(27378),l=t(46238),d=t(40324);let o=e=>{let{name:a,label:t,labelProps:o,tooltip:c,isRequired:u,layout:m="inline",helperText:x,...p}=e,[h,y,{setValue:v}]=(0,n.U$)(a),j=!!(y.touched&&y.error),[g,b]=(0,r.useState)("");h.value||"tags"!==p.mode&&"multiple"!==p.mode||(h.value=[]),"tags"===p.mode&&"string"==typeof h.value&&(h.value=[h.value]);let f="tags"===p.mode?(e,a)=>e?e.value!==g||h.value.includes(g)?p.optionRender?p.optionRender(e,a):e.label:'Create "'.concat(g,'"'):void 0:p.optionRender||void 0,_=e=>{b(e),p.onSearch&&p.onSearch(e)},k=(e,a)=>{v(e),p.onChange&&p.onChange(e,a)};return"inline"===m?(0,i.jsx)(s.NIc,{isInvalid:j,isRequired:u,children:(0,i.jsxs)(s.rjZ,{templateColumns:t?"1fr 3fr":"1fr",children:[t?(0,i.jsx)(d.__,{htmlFor:p.id||a,...o,children:t}):null,(0,i.jsxs)(s.jqI,{align:"center",children:[(0,i.jsxs)(s.jqI,{vertical:!0,flex:1,className:"mr-2",children:[(0,i.jsx)(s.WPr,{...h,id:p.id||a,"data-testid":"controlled-select-".concat(h.name),...p,optionRender:f,onSearch:"tags"===p.mode?_:void 0,onChange:k,value:h.value||void 0,status:j?"error":void 0}),x&&(0,i.jsx)(s.Q6r,{children:x}),(0,i.jsx)(d.Bc,{isInvalid:j,message:y.error,fieldName:h.name})]}),(0,i.jsx)(l.b,{label:c,className:j?"mt-2 self-start":void 0})]})]})}):(0,i.jsx)(s.NIc,{isInvalid:j,isRequired:u,children:(0,i.jsxs)(s.gCW,{alignItems:"start",children:[(0,i.jsxs)(s.jqI,{align:"center",children:[t?(0,i.jsx)(d.__,{htmlFor:p.id||a,fontSize:"xs",my:0,mr:1,...o,children:t}):null,(0,i.jsx)(l.b,{label:c})]}),(0,i.jsx)(s.WPr,{...h,id:p.id||a,"data-testid":"controlled-select-".concat(h.name),...p,optionRender:f,onSearch:"tags"===p.mode?_:void 0,onChange:k,value:h.value||void 0,status:j?"error":void 0}),x&&(0,i.jsx)(s.Q6r,{style:{marginTop:0},children:x}),(0,i.jsx)(d.Bc,{isInvalid:j,message:y.error,fieldName:h.name})]})})}},35258:function(e,a,t){t.d(a,{Z:function(){return W}});var i=t(24246),s=t(98227),n=t(27378),r=t(84720),l=t(52368),d=t(812),o=t(46628),c=t(65450),u=t(31883),m=t(34090),x=t(45938),p=t(33162),h=t(55484),y=t(97181),v=t(40324),j=t(65735);let g=h.Ry().shape({data_categories:h.IX(h.Z_()).min(1,"Must assign at least one data category").label("Data categories"),data_use:h.Z_().required().label("Data use"),data_subjects:h.IX(h.Z_()).min(1,"Must assign at least one data subject").label("Data subjects")}),b={data_categories:[],data_subjects:[],data_use:"",dataset_references:[],customFieldValues:{},id:""},f=e=>{var a;let{customFieldValues:t,...i}=e;return{...i,name:null!==(a=e.name)&&void 0!==a?a:""}},_=e=>{let{allDataUses:a,allDataCategories:t,allDataSubjects:n,allDatasets:r,privacyDeclarationId:l,includeCustomFields:d}=e,o=r?r.map(e=>{var a;return{label:null!==(a=e.name)&&void 0!==a?a:e.fides_key,value:e.fides_key}}):[];return(0,i.jsxs)(s.Kqy,{spacing:4,children:[(0,i.jsx)(y.d,{id:"data_use",label:"Data use",name:"data_use",options:a.map(e=>({value:e.fides_key,label:e.fides_key})),tooltip:"What is the system using the data for. For example, is it for third party advertising or perhaps simply providing system operations.",layout:"stacked",disabled:!!l}),(0,i.jsx)(v.j0,{id:"name",label:"Processing Activity",name:"name",variant:"stacked",tooltip:"The personal data processing activity or activities associated with this data use.",disabled:!!l}),(0,i.jsx)(y.d,{name:"data_categories",label:"Data categories",options:t.map(e=>({value:e.fides_key,label:e.fides_key})),tooltip:"What type of data is your system processing? This could be various types of user or system data.",mode:"multiple",layout:"stacked",disabled:!0}),(0,i.jsx)(y.d,{name:"data_subjects",label:"Data subjects",options:n.map(e=>({value:e.fides_key,label:e.fides_key})),tooltip:"Whose data are you processing? This could be customers, employees or any other type of user in your system.",mode:"multiple",layout:"stacked",disabled:!0}),r?(0,i.jsx)(y.d,{name:"dataset_references",label:"Dataset references",options:o,tooltip:"Referenced Dataset fides keys used by the system.",mode:"multiple",layout:"stacked"}):null,d?(0,i.jsx)(p.uc,{resourceType:j.P6.PRIVACY_DECLARATION,resourceFidesKey:l}):null]})},k=(e,a)=>e?{...e,customFieldValues:a||{}}:b,S=e=>{let{onSubmit:a,initialValues:t,allDataUses:r,privacyDeclarationId:l}=e,{customFieldValues:d,upsertCustomFields:o}=(0,p.mZ)({resourceType:j.P6.PRIVACY_DECLARATION,resourceFidesKey:l}),c=(0,n.useMemo)(()=>k(t,d),[t,d]),[u,m]=(0,n.useState)(!1),x=(0,n.useMemo)(()=>{let e=r.filter(e=>e.fides_key===c.data_use)[0];if(e)return c.name?"".concat(e.name," - ").concat(c.name):e.name},[r,c]);return{handleSubmit:async(e,t)=>{let{customFieldValues:i}=e,s=f(e),n=await a(s,t);if(n){let a=n.filter(a=>a.data_use===e.data_use&&(!a.name||a.name===e.name));a.length>0&&await o({customFieldValues:i,fides_key:a[0].id}),t.resetForm({values:e}),m(!0)}},renderHeader:e=>{let{dirty:a,boxProps:t,hideSaved:n}=e;return(0,i.jsxs)(s.xuv,{display:"flex",alignItems:"center",justifyContent:"space-between",...t,children:[x?(0,i.jsx)(s.X6q,{as:"h4",size:"xs",fontWeight:"medium",mr:4,children:x}):null,!n&&u&&!a&&c.data_use?(0,i.jsxs)(s.xvT,{fontSize:"sm","data-testid":"saved-indicator",children:[(0,i.jsx)(s.StI,{})," Saved"]}):null]})},initialValues:c}},D=e=>{let{onSubmit:a,initialValues:t,onDelete:n,...r}=e,{handleSubmit:l,renderHeader:d,initialValues:o}=S({onSubmit:a,initialValues:t,allDataUses:r.allDataUses,privacyDeclarationId:null==t?void 0:t.id});return(0,i.jsx)(m.J9,{enableReinitialize:!0,initialValues:o,onSubmit:l,validationSchema:g,children:e=>{let{dirty:a}=e;return(0,i.jsxs)(m.l0,{children:[(0,i.jsx)(x.Gt,{id:"PrivacyDeclaration",name:"New Privacy Declaration"}),(0,i.jsxs)(s.Kqy,{spacing:4,children:[(0,i.jsx)(s.xuv,{"data-testid":"header",children:d({dirty:a})}),(0,i.jsx)(_,{onDelete:n,...r})]})]})}})},C=e=>{let{privacyDeclaration:a,onEdit:t,onDelete:n,includeCustomFields:r,...l}=e,{initialValues:d,renderHeader:o,handleSubmit:c}=S({initialValues:a,onSubmit:e=>t(a,e),privacyDeclarationId:a.id,...l});return(0,i.jsx)(s.Qdk,{children:e=>{let{isExpanded:t}=e;return(0,i.jsx)(m.J9,{enableReinitialize:!0,initialValues:d,onSubmit:c,validationSchema:g,children:e=>{let{dirty:d}=e;return(0,i.jsxs)(m.l0,{"data-testid":"".concat(a.data_use,"-form"),children:[(0,i.jsx)(x.Gt,{id:"".concat(a.id,"-form"),name:a.id}),(0,i.jsxs)(s.KFZ,{py:4,borderBottomWidth:t?"0px":"1px",backgroundColor:t?"gray.50":void 0,"data-testid":"accordion-header-".concat(a.data_use),children:[o({dirty:d,boxProps:{flex:"1",textAlign:"left"},hideSaved:!t}),(0,i.jsx)(s.XEm,{})]}),(0,i.jsx)(s.Hk3,{backgroundColor:"gray.50",pt:0,children:(0,i.jsx)(s.Kqy,{spacing:4,children:(0,i.jsx)(_,{privacyDeclarationId:a.id,onDelete:n,includeCustomFields:r,...l})})})]})}})}})};var w=e=>{let{privacyDeclarations:a,...t}=e;return(0,i.jsx)(s.UQy,{allowToggle:!0,border:"transparent","data-testid":"privacy-declaration-accordion",children:a.map(e=>(0,i.jsx)(C,{privacyDeclaration:e,...t},e.id))})},I=e=>{let{system:a,includeCustomFields:t,onSave:r,...l}=e,m=(0,s.pmc)(),[x]=(0,c.qQ)(),[p,h]=(0,n.useState)(!1),[y,v]=(0,n.useState)(void 0),j=(0,n.useMemo)(()=>y?a.privacy_declarations.filter(e=>e.id!==y.id):a.privacy_declarations,[y,a]),g=e=>j.filter(a=>a.data_use===e.data_use&&a.name===e.name).length>0&&(m((0,o.Vo)("A declaration already exists with that data use in this system. Please supply a different data use.")),!0),b=async(e,t)=>{let i=e.map(e=>{var a;return{...e,name:null!==(a=e.name)&&void 0!==a?a:""}}),s={...a,privacy_declarations:i};return(e=>{if((0,u.D4)(e)){let a=(0,d.e$)(e.error,"An unexpected error occurred while updating the system. Please try again.");m((0,o.Vo)(a));return}return m.closeAll(),m((0,o.t5)(t?"Data use deleted":"Data use saved")),r&&r(e.data),e.data.privacy_declarations})(await x(s))},f=async(e,t)=>{if(!(t.id!==e.id&&g(t)))return b(a.privacy_declarations.map(a=>a.id===e.id?t:a))},_=async e=>{if(g(e))return;m.closeAll();let a=[...j,e],t=await b(a);return t&&v(t.filter(a=>(!a.name||a.name===e.name)&&a.data_use===e.data_use)[0]),t},k=async e=>b(a.privacy_declarations.filter(a=>a.id!==e.id),!0),S=async e=>{let a=await k(e);return a&&(h(!1),v(void 0)),a};return(0,n.useEffect)(()=>{h(!1)},[a.fides_key]),(0,i.jsxs)(s.Kqy,{spacing:3,children:[(0,i.jsx)(w,{privacyDeclarations:j,onEdit:f,onDelete:k,includeCustomFields:t,...l}),p?(0,i.jsx)(s.xuv,{backgroundColor:"gray.50",p:4,"data-testid":"new-declaration-form",children:(0,i.jsx)(D,{initialValues:y,onSubmit:_,onDelete:S,includeCustomFields:t,...l})}):null,0===a.privacy_declarations.length?(0,i.jsx)(s.xvT,{fontSize:"sm",lineHeight:5,fontWeight:"medium",pl:2,children:"No data uses"}):null]})},T=t(19043);let V=e=>{let[a]=(0,c.dB)(),t=(0,s.pmc)();return{handleUpsertSystem:async(i,s)=>{let n=[{...e,name:i.name,description:i.description}],r=await a(n);(0,T.D4)(r)?t((0,o.Vo)((0,d.e$)(r.error))):(t((0,o.t5)("Successfully saved system info")),s.resetForm({values:i}))},validationSchema:h.Ry().shape({name:h.Z_().required().label("Name"),description:h.Z_().required().label("Description")})}},R={name:"",description:""};var F=e=>{let{system:a}=e,t="/systems/configure/".concat(a.fides_key),{handleUpsertSystem:n,validationSchema:r}=V(a);return(0,i.jsxs)(s.xuv,{children:[(0,i.jsxs)(s.kCb,{alignItems:"center",children:[(0,i.jsx)(s.xvT,{color:"gray.600",size:"md",lineHeight:6,fontWeight:"semibold",marginBottom:2,children:"System details"}),(0,i.jsx)(s.LZC,{}),(0,i.jsxs)(s._pl,{color:"complimentary.500",href:t,children:["View more",(0,i.jsx)(s.h0n,{ml:2})]})]}),(0,i.jsx)(s.xuv,{width:"100%",padding:4,borderTop:"1px solid",borderColor:"gray.200",children:(0,i.jsx)(m.J9,{enableReinitialize:!0,initialValues:null!=a?a:R,validationSchema:r,onSubmit:n,children:()=>(0,i.jsxs)(m.l0,{children:[(0,i.jsx)(x.Gt,{id:"SystemInfoDrawer",name:"System Info"}),(0,i.jsx)(s.xuv,{marginTop:3,children:(0,i.jsx)(v.j0,{label:"System name",name:"name",variant:"stacked",disabled:!0})}),(0,i.jsx)(s.xuv,{marginTop:3,children:(0,i.jsx)(v.Ks,{label:"System description",name:"description",variant:"stacked",disabled:!0})})]})})})]})},W=e=>{var a;let{selectedSystemId:t,resetSelectedSystemId:d}=e,o=(0,n.useMemo)(()=>!!t,[t]),{isLoading:u,...m}=(0,l.f)({includeDatasets:!1,includeDisabled:!1}),{data:x}=(0,c.rn)(t,{skip:!t});return(0,i.jsx)(s.xuv,{position:"absolute",pointerEvents:"none",top:0,left:0,right:0,bottom:0,overflow:"hidden",children:(0,i.jsx)(s.Mi4,{transition:{enter:{ease:"easeInOut",duration:.5},exit:{ease:"easeInOut",duration:.5}},direction:"right",in:o,unmountOnExit:!0,style:{zIndex:21,pointerEvents:"none",position:"absolute"},children:(0,i.jsxs)(s.xuv,{position:"absolute",right:"0px",height:"100%",width:"100%",maxWidth:"480px",pointerEvents:"auto",borderWidth:0,boxShadow:"0px 20px 25px -5px rgba(0, 0, 0, 0.1), 0px 10px 10px -5px rgba(0, 0, 0, 0.04)",display:t?"unset":"none",backgroundColor:"white","data-testid":"datamap-drawer",children:[(0,i.jsx)(s.xuv,{id:"drawer-header",borderBottomWidth:1,paddingX:6,paddingY:3,children:(0,i.jsxs)(s.kCb,{children:[(0,i.jsx)(s.kCb,{justifyContent:"space-between",alignItems:"center",height:"40px",children:(0,i.jsx)(s.xvT,{fontWeight:"semibold",fontSize:"lg",lineHeight:"7",color:"gray.900",children:null!==(a=null==x?void 0:x.name)&&void 0!==a?a:"System Information"})}),(0,i.jsx)(s.LZC,{}),(0,i.jsx)(s.kCb,{alignItems:"center",children:(0,i.jsx)(s.wpx,{icon:(0,i.jsx)(s.Two,{}),"aria-label":"Close error message",type:"text",onClick:d,"data-testid":"datamap-drawer-close"})})]})}),(0,i.jsx)(s.xuv,{id:"drawer-body",height:"calc(100% - 46px)",overflowY:"auto",padding:6,style:{scrollbarGutter:"stable"},children:x?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(F,{system:x}),(0,i.jsx)(s.xvT,{size:"md",color:"gray.600",lineHeight:6,fontWeight:"semibold",mt:"10px",mb:2,children:"Data uses"}),(0,i.jsx)(s.xuv,{borderTop:"1px solid",borderColor:"gray.200",children:(0,i.jsx)(s.xuv,{pb:3,children:(0,i.jsx)(I,{system:x,...m})})}),(0,i.jsx)(s.xvT,{size:"md",color:"gray.600",lineHeight:6,fontWeight:"semibold",mt:"10px",mb:2,paddingBottom:2,children:"Data flow"}),(0,i.jsx)(r.q,{system:x})]}):null})]})})})}}}]);
|