ethyca-fides 2.69.3b0__py2.py3-none-any.whl → 2.69.3b2__py2.py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of ethyca-fides might be problematic. Click here for more details.
- {ethyca_fides-2.69.3b0.dist-info → ethyca_fides-2.69.3b2.dist-info}/METADATA +1 -1
- {ethyca_fides-2.69.3b0.dist-info → ethyca_fides-2.69.3b2.dist-info}/RECORD +267 -239
- fides/_version.py +3 -3
- fides/api/alembic/migrations/versions/30369bb8ae01_add_webmonitorgroupjob_model.py +67 -0
- fides/api/alembic/migrations/versions/5fa78b1f324d_add_event_audit_table.py +82 -0
- fides/api/alembic/migrations/versions/67d0e389b003_update_consentstatus_enum.py +47 -0
- fides/api/alembic/migrations/versions/b9bfa12c167b_add_not_applicable_to_asset_consentstatus.py +46 -0
- fides/api/alembic/migrations/versions/f36ce1bde293_add_system_groups.py +132 -0
- fides/api/alembic/migrations/versions/fd7571bef683_adds_new_fields_to_messagingconfig_for_.py +31 -0
- fides/api/api/v1/endpoints/messaging_endpoints.py +164 -34
- fides/api/api/v1/endpoints/system.py +140 -55
- fides/api/db/base.py +3 -0
- fides/api/db/seed.py +34 -0
- fides/api/main.py +2 -0
- fides/api/models/asset.py +3 -0
- fides/api/models/detection_discovery/web_monitor.py +61 -0
- fides/api/models/event_audit.py +68 -0
- fides/api/models/messaging.py +30 -10
- fides/api/models/sql_models.py +8 -0
- fides/api/models/system_group.py +85 -0
- fides/api/models/taxonomy.py +16 -4
- fides/api/schemas/application_config.py +4 -1
- fides/api/schemas/messaging/messaging.py +33 -66
- fides/api/schemas/messaging/messaging_secrets_docs_only.py +1 -1
- fides/api/schemas/messaging/shared_schemas.py +102 -0
- fides/api/schemas/saas/saas_config.py +2 -17
- fides/api/schemas/saas/strategy_configuration.py +12 -0
- fides/api/schemas/system.py +8 -0
- fides/api/service/async_dsr/async_dsr_service.py +130 -10
- fides/api/service/async_dsr/async_dsr_strategy.py +5 -0
- fides/api/service/async_dsr/async_dsr_strategy_callback.py +16 -0
- fides/api/service/async_dsr/async_dsr_strategy_factory.py +63 -0
- fides/api/service/async_dsr/async_dsr_strategy_polling.py +94 -0
- fides/api/service/connectors/saas_connector.py +25 -7
- fides/api/service/deps.py +17 -2
- fides/api/service/messaging/message_dispatch_service.py +16 -15
- fides/api/service/messaging/messaging_crud_service.py +5 -9
- fides/api/service/privacy_request/request_runner_service.py +18 -0
- fides/api/service/privacy_request/request_service.py +29 -20
- fides/api/service/strategy.py +6 -3
- fides/api/task/graph_task.py +1 -2
- fides/api/tasks/__init__.py +1 -0
- fides/api/util/filter_utils.py +0 -3
- fides/api/worker/__init__.py +2 -0
- fides/common/api/v1/urn_registry.py +2 -1
- fides/service/event_audit_service.py +115 -0
- fides/service/messaging/aws_ses_service.py +2 -4
- fides/service/system/__init__.py +0 -0
- fides/service/system/system_service.py +138 -0
- fides/service/taxonomy/taxonomy_service.py +49 -3
- fides/ui-build/static/admin/404.html +1 -1
- fides/ui-build/static/admin/_next/static/86A8z6OnbTuDYww0DJkX0/_buildManifest.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/1115-d5a834cdaa717edc.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/155-b5e4370b158e5ee3.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/1817-dc2bba3ca736d39e.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/1841-2052c3239f2a0a1a.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/1896-49010da5c2705fc5.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/2040-3f9c66c56a05b336.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/2751-58285ccf50a0ba4b.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/3377-c5e0cc3de1a5ffd1.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/3696-fff4f944d7d5ff20.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/{3855-ef5194cdb228beb6.js → 3855-8377b3fcbb3d93b0.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/3872-4786ccbe7c6f65b0.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/409-e1deab19fc7e6d99.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/4230-c55d5531697a715c.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/4608-2fbc3389681f6924.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/4786-8d78ec773d171562.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/5185-a219b390ef17ff4b.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/5309-e994c5195f99b1eb.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/5783-c62c79e7be21be73.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/6084-29cbe703bffdccfe.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/6416-79eee298a5b3f80f.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/6780-eeb7775eb21d7a12.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/{6853-b17673391117c976.js → 6853-91a8641cd2784b54.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/6882-55dbb142f7c40f53.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/6954-6dfafd38b02d5852.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/7476-3da7a490debad8e2.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/7630-22f9c4b25d6aed29.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/7725-b2fa93d747d3d85d.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/7929-4314e317b1717257.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/796-8e4da90ae82dfebb.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/8002-78d78545309b2c1c.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/8373-bd50fa53cbcab2aa.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/9037-453224ba3ee65b13.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/9046-0f92802b0e3382a9.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/9226-49dbcdb135bf9793.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/9826-f316eb1d61cb90b6.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/{9951-a88367a129b724ba.js → 9951-c389c51ca6353035.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/{_app-fcdad91f6f66292b.js → _app-c780470042750062.js} +10 -10
- fides/ui-build/static/admin/_next/static/chunks/pages/add-systems/{manual-ace203dfacacbdc4.js → manual-fb9434d926ebf0b3.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/add-systems-92034daafd2187a0.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/consent/configure-87919c1192e68b1a.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/consent/{privacy-experience-9dda4de5ec580279.js → privacy-experience-ae8a64fffe3f8c66.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/consent/privacy-notices-d7d9ff9ed28fa790.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/consent/{properties-226efa1dcd41437f.js → properties-c985ea8c1a0e0550.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/consent/{reporting-28b192e2c074b0f3.js → reporting-ddf6ba92355f81de.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/consent-35c0ae9d5b5a940c.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/data-catalog/[systemId]/projects/[projectUrn]/{[resourceUrn]-2c29ff7a01198f30.js → [resourceUrn]-6a196c704f1c6dd7.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/data-catalog/[systemId]/projects-06ba907e7d91a724.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/data-catalog/[systemId]/resources/{[resourceUrn]-8eb581024bc0172f.js → [resourceUrn]-9cee4e222ebb2b60.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/data-catalog-f99af5669b9ab44c.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/action-center/[monitorId]/[systemId]-db7f1a269d3e7fc2.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/action-center/[monitorId]-de957913f9b47daa.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/action-center-5868591ff1e5f881.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/activity-715064e1c9788e1a.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/detection/{[resourceUrn]-8f736b078e9842da.js → [resourceUrn]-9ae81f5c245b8a01.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/{detection-eb814e3c22807871.js → detection-6537c93c69b597c7.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/discovery/{[resourceUrn]-6875b7783fcfda2f.js → [resourceUrn]-5db26067d921a94a.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/{discovery-172dbd7740e212ca.js → discovery-9f6a62614d7eb113.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/datamap-aed0e6dafc143b97.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/dataset/[datasetId]/[collectionName]/[...subfieldNames]-72b9878ea9b91529.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/dataset/[datasetId]/[collectionName]-f36a46381a6c25d4.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/dataset/[datasetId]-b653fd60e7db989b.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/dataset/new-5bb96c8684a38bbf.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/dataset-639046f6c76bc8bd.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/datastore-connection/{[id]-927b7e476c4b47d0.js → [id]-6bf117315d909ad1.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/datastore-connection/{new-cbe100d50df34285.js → new-1e2fa11f22dbc449.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/datastore-connection-c55e3e0e19030f3f.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/index-d66ea87b457af21e.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/integrations/[id]-0159fbb2e0440709.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/{integrations-95402b5001c07ef2.js → integrations-267d2742fffaebe5.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/privacy-requests/[id]-670b05b03ba11e0a.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/privacy-requests/configure/storage-482a7256925a6e06.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/privacy-requests/configure-331147598052f25c.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/privacy-requests-28083bfb2dec7b9f.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/properties/{[id]-e784c05d056b2371.js → [id]-e02dc4b4b385c86f.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/properties/{add-property-0a7a2db148a7561a.js → add-property-74c2a0ff4c992633.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/{properties-da734840e4f9d04b.js → properties-7459d56e548925b2.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/reporting/{datamap-6903f42a0412bfa6.js → datamap-aed018025b09c045.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/settings/about/alpha-68eaac2d79133679.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/settings/about-6c4904c157477285.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/settings/consent/[configuration_id]/{[purpose_id]-9495e2eb506606c7.js → [purpose_id]-7f2c50044806c094.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/settings/consent-e8cab942d09aa358.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/settings/custom-fields-128f952a49a0e8dc.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/settings/domain-records-cca3d1a26e1269bb.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/settings/domains-07e1b9937a169e32.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/settings/email-templates-3bc799dac8423f50.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/settings/{locations-2e635dcd11b78224.js → locations-9f36b6c213ae524c.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/settings/messaging-providers/[key]-f8887b2b29aed1b9.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/settings/messaging-providers/new-5473558807e94462.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/settings/messaging-providers-1065fbefd449719c.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/settings/organization-3e23d92d789fff99.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/settings/privacy-requests-907bfbb71d84646f.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/systems/configure/[id]/test-datasets-aa1ada4d4ac09759.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/systems/configure/{[id]-6e15332935f6b538.js → [id]-02b0dde03a1ad159.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/systems-4a6ef2509e8cedfc.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/taxonomy-16b122b83e57bb8c.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/user-management/{new-92f52c43f522a350.js → new-6304dad2c5fab694.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/user-management/profile/{[id]-64452dfae2c5e614.js → [id]-0a8ec3aa2ed59a33.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/{user-management-9cec020f89544426.js → user-management-4036b023366b7eec.js} +1 -1
- fides/ui-build/static/admin/_next/static/css/018c12b58ee7f861.css +1 -0
- fides/ui-build/static/admin/add-systems/manual.html +1 -1
- fides/ui-build/static/admin/add-systems/multiple.html +1 -1
- fides/ui-build/static/admin/add-systems.html +1 -1
- fides/ui-build/static/admin/consent/configure/add-vendors.html +1 -1
- fides/ui-build/static/admin/consent/configure.html +1 -1
- fides/ui-build/static/admin/consent/privacy-experience/[id].html +1 -1
- fides/ui-build/static/admin/consent/privacy-experience/new.html +1 -1
- fides/ui-build/static/admin/consent/privacy-experience.html +1 -1
- fides/ui-build/static/admin/consent/privacy-notices/[id].html +1 -1
- fides/ui-build/static/admin/consent/privacy-notices/new.html +1 -1
- fides/ui-build/static/admin/consent/privacy-notices.html +1 -1
- fides/ui-build/static/admin/consent/properties.html +1 -1
- fides/ui-build/static/admin/consent/reporting.html +1 -1
- fides/ui-build/static/admin/consent.html +1 -1
- fides/ui-build/static/admin/data-catalog/[systemId]/projects/[projectUrn]/[resourceUrn].html +1 -1
- fides/ui-build/static/admin/data-catalog/[systemId]/projects/[projectUrn].html +1 -1
- fides/ui-build/static/admin/data-catalog/[systemId]/projects.html +1 -1
- fides/ui-build/static/admin/data-catalog/[systemId]/resources/[resourceUrn].html +1 -1
- fides/ui-build/static/admin/data-catalog/[systemId]/resources.html +1 -1
- fides/ui-build/static/admin/data-catalog.html +1 -1
- fides/ui-build/static/admin/data-discovery/action-center/[monitorId]/[systemId].html +1 -1
- fides/ui-build/static/admin/data-discovery/action-center/[monitorId].html +1 -1
- fides/ui-build/static/admin/data-discovery/action-center.html +1 -1
- fides/ui-build/static/admin/data-discovery/activity.html +1 -1
- fides/ui-build/static/admin/data-discovery/detection/[resourceUrn].html +1 -1
- fides/ui-build/static/admin/data-discovery/detection.html +1 -1
- fides/ui-build/static/admin/data-discovery/discovery/[resourceUrn].html +1 -1
- fides/ui-build/static/admin/data-discovery/discovery.html +1 -1
- fides/ui-build/static/admin/datamap.html +1 -1
- fides/ui-build/static/admin/dataset/[datasetId]/[collectionName]/[...subfieldNames].html +1 -1
- fides/ui-build/static/admin/dataset/[datasetId]/[collectionName].html +1 -1
- fides/ui-build/static/admin/dataset/[datasetId].html +1 -1
- fides/ui-build/static/admin/dataset/new.html +1 -1
- fides/ui-build/static/admin/dataset.html +1 -1
- fides/ui-build/static/admin/datastore-connection/[id].html +1 -1
- fides/ui-build/static/admin/datastore-connection/new.html +1 -1
- fides/ui-build/static/admin/datastore-connection.html +1 -1
- fides/ui-build/static/admin/index.html +1 -1
- fides/ui-build/static/admin/integrations/[id].html +1 -1
- fides/ui-build/static/admin/integrations.html +1 -1
- fides/ui-build/static/admin/lib/fides-ext-gpp.js +1 -1
- fides/ui-build/static/admin/lib/fides-headless.js +1 -1
- fides/ui-build/static/admin/lib/fides-preview.js +1 -1
- fides/ui-build/static/admin/lib/fides-tcf.js +2 -2
- fides/ui-build/static/admin/lib/fides.js +2 -2
- fides/ui-build/static/admin/login/[provider].html +1 -1
- fides/ui-build/static/admin/login.html +1 -1
- fides/ui-build/static/admin/messaging/[id].html +1 -1
- fides/ui-build/static/admin/messaging/add-template.html +1 -1
- fides/ui-build/static/admin/messaging.html +1 -1
- fides/ui-build/static/admin/poc/ant-components.html +1 -1
- fides/ui-build/static/admin/poc/form-experiments/AntForm.html +1 -1
- fides/ui-build/static/admin/poc/form-experiments/FormikAntFormItem.html +1 -1
- fides/ui-build/static/admin/poc/form-experiments/FormikControlled.html +1 -1
- fides/ui-build/static/admin/poc/form-experiments/FormikField.html +1 -1
- fides/ui-build/static/admin/poc/form-experiments/FormikSpreadField.html +1 -1
- fides/ui-build/static/admin/poc/forms.html +1 -1
- fides/ui-build/static/admin/poc/table-migration.html +1 -1
- fides/ui-build/static/admin/privacy-requests/[id].html +1 -1
- fides/ui-build/static/admin/privacy-requests/configure/storage.html +1 -1
- fides/ui-build/static/admin/privacy-requests/configure.html +1 -1
- fides/ui-build/static/admin/privacy-requests.html +1 -1
- fides/ui-build/static/admin/properties/[id].html +1 -1
- fides/ui-build/static/admin/properties/add-property.html +1 -1
- fides/ui-build/static/admin/properties.html +1 -1
- fides/ui-build/static/admin/reporting/datamap.html +1 -1
- fides/ui-build/static/admin/settings/about/alpha.html +1 -1
- fides/ui-build/static/admin/settings/about.html +1 -1
- fides/ui-build/static/admin/settings/consent/[configuration_id]/[purpose_id].html +1 -1
- fides/ui-build/static/admin/settings/consent.html +1 -1
- fides/ui-build/static/admin/settings/custom-fields.html +1 -1
- fides/ui-build/static/admin/settings/domain-records.html +1 -1
- fides/ui-build/static/admin/settings/domains.html +1 -1
- fides/ui-build/static/admin/settings/email-templates.html +1 -1
- fides/ui-build/static/admin/settings/locations.html +1 -1
- fides/ui-build/static/admin/settings/messaging-providers/[key].html +1 -0
- fides/ui-build/static/admin/settings/messaging-providers/new.html +1 -0
- fides/ui-build/static/admin/settings/messaging-providers.html +1 -0
- fides/ui-build/static/admin/settings/organization.html +1 -1
- fides/ui-build/static/admin/settings/privacy-requests.html +1 -1
- fides/ui-build/static/admin/settings/regulations.html +1 -1
- fides/ui-build/static/admin/systems/configure/[id]/test-datasets.html +1 -1
- fides/ui-build/static/admin/systems/configure/[id].html +1 -1
- fides/ui-build/static/admin/systems.html +1 -1
- fides/ui-build/static/admin/taxonomy.html +1 -1
- fides/ui-build/static/admin/user-management/new.html +1 -1
- fides/ui-build/static/admin/user-management/profile/[id].html +1 -1
- fides/ui-build/static/admin/user-management.html +1 -1
- fides/ui-build/static/admin/_next/static/FFd0ddRZhjxA7iBCrjLzA/_buildManifest.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/1099-79646e64f26d62fa.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/1345-5e1c5b66e25c566e.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/1817-0ca16d288fad916d.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/3620-602eb74dc896d556.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/3729-c17ac8031a4c4fd1.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/3847-f08c58d074858f48.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/3872-f78dec02f0d959ae.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/4164-355644b916ae0094.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/4608-be8cba73f5d7c326.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/4786-61154adf88e448e1.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/4808-dd4157aa72648068.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/4831-fd99c0b3784de128.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/4844-46324c3d848b8b6a.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/5258-e880b606a2293803.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/5487-02d00bad7c6830e0.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/549-38ea1d91ee2addaa.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/6084-c153669d5567e242.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/6954-5296188c19d7d0ac.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/7476-45c5088baa8b66af.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/7630-7ed6c6117775dffe.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/787-a8c7eab617e2fceb.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/79-65674011d455af4d.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/796-9e1ca1a4030707c5.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/8002-24af20d679efc04e.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/9046-712156d461165f56.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/9826-dbae8dee941a7fac.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/add-systems-bd0d82078e67cac3.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/consent/configure-7207ab23bdb36ce8.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/consent/privacy-notices-94c13aad1499eea9.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/consent-3e8bdefe714254ec.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/data-catalog/[systemId]/projects-5f2d7b24804f861f.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/data-catalog-30108b00ac769fc3.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/action-center/[monitorId]/[systemId]-3b0bcb9e98fab95c.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/action-center/[monitorId]-9403d5b239e318d2.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/action-center-9a81d42a474e1e48.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/activity-b6ae7adb8ef0b525.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/datamap-c7390e046b2e2b7f.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/dataset/[datasetId]/[collectionName]/[...subfieldNames]-dfd71c1e9c458b89.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/dataset/[datasetId]/[collectionName]-7cdc42ec5493b83d.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/dataset/[datasetId]-e12b11ba15bc3fc1.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/dataset/new-e32fccc4ca520d2b.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/dataset-7c59a6abf6ba6207.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/datastore-connection-cce20440b177050b.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/index-6cd8708106331b8d.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/integrations/[id]-5d40db1ce8810e1d.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/privacy-requests/[id]-0f25a76dd18c5e20.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/privacy-requests/configure/messaging-ad6ad3e5bd72765d.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/privacy-requests/configure/storage-6032d82f0fc2893d.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/privacy-requests/configure-d83e5bd52a638234.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/privacy-requests-baf31c3e4b081046.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/settings/about/alpha-a82f3df840d5c1b5.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/settings/about-d06fb16487705b9d.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/settings/consent-93a978443bf299db.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/settings/custom-fields-9ecb803099082bf4.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/settings/domain-records-16fdd91a81074dd1.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/settings/domains-4cdd6001e7cb9aee.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/settings/email-templates-1914de830ce5cfc4.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/settings/organization-f547f1f33c12faf3.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/settings/privacy-requests-2ecc073f41628f62.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/systems/configure/[id]/test-datasets-20b1193ed76c56b0.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/systems-fbc8761ef4d55516.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/taxonomy-4d7827fc9c46b6b8.js +0 -1
- fides/ui-build/static/admin/_next/static/css/650df9c348000a26.css +0 -1
- fides/ui-build/static/admin/privacy-requests/configure/messaging.html +0 -1
- {ethyca_fides-2.69.3b0.dist-info → ethyca_fides-2.69.3b2.dist-info}/WHEEL +0 -0
- {ethyca_fides-2.69.3b0.dist-info → ethyca_fides-2.69.3b2.dist-info}/entry_points.txt +0 -0
- {ethyca_fides-2.69.3b0.dist-info → ethyca_fides-2.69.3b2.dist-info}/licenses/LICENSE +0 -0
- {ethyca_fides-2.69.3b0.dist-info → ethyca_fides-2.69.3b2.dist-info}/top_level.txt +0 -0
- /fides/ui-build/static/admin/_next/static/{FFd0ddRZhjxA7iBCrjLzA → 86A8z6OnbTuDYww0DJkX0}/_ssgManifest.js +0 -0
- /fides/ui-build/static/admin/_next/static/chunks/{2921-52328140bc420d0f.js → 2921-cdc7a13973f4a0ba.js} +0 -0
- /fides/ui-build/static/admin/_next/static/chunks/{3923-bb2417b8dcade7a4.js → 3923-db57401384d1de8f.js} +0 -0
- /fides/ui-build/static/admin/_next/static/chunks/{401-4af0a912e249d30f.js → 401-4e56e924f35317f2.js} +0 -0
- /fides/ui-build/static/admin/_next/static/chunks/pages/{404-471a6b18e712f050.js → 404-e4a1f93a7ce944f0.js} +0 -0
- /fides/ui-build/static/admin/_next/static/chunks/pages/add-systems/{multiple-920fb469e0dda1d2.js → multiple-a4f821c4902f2df8.js} +0 -0
- /fides/ui-build/static/admin/_next/static/chunks/pages/consent/configure/{add-vendors-406170eaae4329c6.js → add-vendors-96245b63aafc5168.js} +0 -0
- /fides/ui-build/static/admin/_next/static/chunks/pages/consent/privacy-experience/{[id]-f80cf2d3966816fd.js → [id]-4fea66e59bd59de8.js} +0 -0
- /fides/ui-build/static/admin/_next/static/chunks/pages/consent/privacy-notices/{[id]-b378576cba255609.js → [id]-c8038e05f35da8d1.js} +0 -0
- /fides/ui-build/static/admin/_next/static/chunks/pages/consent/privacy-notices/{new-2ca1de7b88094ab0.js → new-f3a40101a8f3fd00.js} +0 -0
- /fides/ui-build/static/admin/_next/static/chunks/pages/data-catalog/[systemId]/projects/{[projectUrn]-04cfe2cfba7b7cd8.js → [projectUrn]-965af6c1fd01334e.js} +0 -0
- /fides/ui-build/static/admin/_next/static/chunks/pages/data-catalog/[systemId]/{resources-de704de849960f01.js → resources-5afecf141308bfc5.js} +0 -0
- /fides/ui-build/static/admin/_next/static/chunks/pages/messaging/{[id]-3c6dc2f6e6bae960.js → [id]-4352e55f110556b4.js} +0 -0
- /fides/ui-build/static/admin/_next/static/chunks/pages/messaging/{add-template-4a6d4023a7791be8.js → add-template-c533120e94e049e3.js} +0 -0
- /fides/ui-build/static/admin/_next/static/chunks/pages/{messaging-76b204c9b98d656f.js → messaging-b14f5f38b2d711a8.js} +0 -0
- /fides/ui-build/static/admin/_next/static/chunks/pages/poc/{ant-components-bc0e2adf6e0d3ac7.js → ant-components-31d51e3b9227c8d5.js} +0 -0
- /fides/ui-build/static/admin/_next/static/chunks/pages/poc/form-experiments/{AntForm-86ffcc1ad3fa912e.js → AntForm-8794a0d2e7554a05.js} +0 -0
- /fides/ui-build/static/admin/_next/static/chunks/pages/poc/form-experiments/{FormikAntFormItem-ec04f595465bdf69.js → FormikAntFormItem-90b31073e478c99c.js} +0 -0
- /fides/ui-build/static/admin/_next/static/chunks/pages/poc/form-experiments/{FormikControlled-41d309754ff0c1de.js → FormikControlled-0a6859a0225b7e00.js} +0 -0
- /fides/ui-build/static/admin/_next/static/chunks/pages/poc/form-experiments/{FormikField-cab1f78cec7808f9.js → FormikField-eb0552917907fe21.js} +0 -0
- /fides/ui-build/static/admin/_next/static/chunks/pages/poc/{forms-eb6058221403b156.js → forms-b2a2a084d8cfe22d.js} +0 -0
- /fides/ui-build/static/admin/_next/static/chunks/pages/poc/{table-migration-48500551fd6a7602.js → table-migration-0c944cfa9c6acbff.js} +0 -0
- /fides/ui-build/static/admin/_next/static/chunks/pages/settings/{regulations-7c02e469d8c5bd74.js → regulations-f0f0ea35d0185ae3.js} +0 -0
- /fides/ui-build/static/admin/_next/static/chunks/{webpack-678e89d68dbcd94f.js → webpack-55e1c55932df2413.js} +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2423],{66726:function(a,e,n){var t=n(11611),i=n(82846),s=n(91936),o=Math.max,r=Math.min;a.exports=function(a,e,n){var l,_,F,u,d,c,S=0,m=!1,C=!1,h=!0;if("function"!=typeof a)throw TypeError("Expected a function");function v(e){var n=l,t=_;return l=_=void 0,S=e,u=a.apply(t,n)}function y(a){var n=a-c,t=a-S;return void 0===c||n>=e||n<0||C&&t>=F}function A(){var a,n,t,s=i();if(y(s))return I(s);d=setTimeout(A,(a=s-c,n=s-S,t=e-a,C?r(t,F-n):t))}function I(a){return(d=void 0,h&&l)?v(a):(l=_=void 0,u)}function N(){var a,n=i(),t=y(n);if(l=arguments,_=this,c=n,t){if(void 0===d)return S=a=c,d=setTimeout(A,e),m?v(a):u;if(C)return clearTimeout(d),d=setTimeout(A,e),v(c)}return void 0===d&&(d=setTimeout(A,e)),u}return e=s(e)||0,t(n)&&(m=!!n.leading,F=(C="maxWait"in n)?o(s(n.maxWait)||0,e):F,h="trailing"in n?!!n.trailing:h),N.cancel=function(){void 0!==d&&clearTimeout(d),S=0,l=c=_=d=void 0},N.flush=function(){return void 0===d?u:I(i())},N}},82846:function(a,e,n){var t=n(77400);a.exports=function(){return t.Date.now()}},86850:function(a,e,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/data-discovery/action-center/[monitorId]",function(){return n(12109)}])},30952:function(a,e,n){"use strict";n.d(e,{f:function(){return l}});var t=n(24246),i=n(66726),s=n.n(i),o=n(27378),r=n(26917);let l=a=>{let{value:e,onChange:n,placeholder:i,...l}=a,[_,F]=(0,o.useState)(e);(0,o.useEffect)(()=>{F(e||"")},[e]);let u=s()(n,500),d=(0,o.useCallback)(a=>{F(a),u(a)},[]);return(0,t.jsx)(r.Z,{value:_,onChange:d,onClear:()=>{F(""),n("")},placeholder:i,...l})}},26089:function(a,e,n){"use strict";var t=n(24246),i=n(96306),s=n(99830),o=n.n(s);e.Z=a=>{let{onClick:e,children:n}=a;return(0,t.jsx)(i.wpx,{onClick:e,type:"link",role:"link",size:"small",className:o().toastLink,children:n})}},8411:function(a,e,n){"use strict";n.d(e,{NA:function(){return s},Z8:function(){return i}});var t=n(21910);let i={[t._F.ER]:"Eritrea",[t._F.DJ]:"Djibouti",[t._F.MR]:"Mauritania",[t._F.NA]:"Namibia",[t._F.GH]:"Ghana",[t._F.SS]:"South Sudan",[t._F.SC]:"Seychelles",[t._F.IO]:"British Indian Ocean Territory",[t._F.GQ]:"Equatorial Guinea",[t._F.AO]:"Angola",[t._F.CG]:"Republic of the Congo",[t._F.BW]:"Botswana",[t._F.BI]:"Burundi",[t._F.DZ]:"Algeria",[t._F.TD]:"Chad",[t._F.NG]:"Nigeria",[t._F.TZ]:"Tanzania",[t._F.EH]:"Western Sahara",[t._F.SN]:"Senegal",[t._F.LR]:"Liberia",[t._F.ZA]:"South Africa",[t._F.CV]:"Cape Verde",[t._F.GM]:"Gambia",[t._F.SD]:"Sudan",[t._F.KM]:"Comoros",[t._F.SZ]:"Eswatini",[t._F.UG]:"Uganda",[t._F.MG]:"Madagascar",[t._F.RW]:"Rwanda",[t._F.CD]:"DR Congo",[t._F.CM]:"Cameroon",[t._F.SH]:"Saint Helena, Ascension and Tristan da Cunha",[t._F.TG]:"Togo",[t._F.MU]:"Mauritius",[t._F.NE]:"Niger",[t._F.BJ]:"Benin",[t._F.EG]:"Egypt",[t._F.LS]:"Lesotho",[t._F.ET]:"Ethiopia",[t._F.MA]:"Morocco",[t._F.YT]:"Mayotte",[t._F.BF]:"Burkina Faso",[t._F.RE]:"R\xe9union",[t._F.ST]:"S\xe3o Tom\xe9 and Pr\xedncipe",[t._F.CF]:"Central African Republic",[t._F.MZ]:"Mozambique",[t._F.MW]:"Malawi",[t._F.ML]:"Mali",[t._F.ZM]:"Zambia",[t._F.LY]:"Libya",[t._F.GW]:"Guinea-Bissau",[t._F.SO]:"Somalia",[t._F.KE]:"Kenya",[t._F.GN]:"Guinea",[t._F.ZW]:"Zimbabwe",[t._F.TN]:"Tunisia",[t._F.SL]:"Sierra Leone",[t._F.GA]:"Gabon",[t._F.CI]:"Ivory Coast",[t._F.JO]:"Jordan",[t._F.PK]:"Pakistan",[t._F.KP]:"North Korea",[t._F.MO]:"Macau",[t._F.AM]:"Armenia",[t._F.SY]:"Syria",[t._F.TJ]:"Tajikistan",[t._F.SA]:"Saudi Arabia",[t._F.KR]:"South Korea",[t._F.NP]:"Nepal",[t._F.PH]:"Philippines",[t._F.IQ]:"Iraq",[t._F.LB]:"Lebanon",[t._F.MN]:"Mongolia",[t._F.PS]:"Palestine",[t._F.YE]:"Yemen",[t._F.JP]:"Japan",[t._F.KZ]:"Kazakhstan",[t._F.LK]:"Sri Lanka",[t._F.MM]:"Myanmar",[t._F.KG]:"Kyrgyzstan",[t._F.CN]:"China",[t._F.AF]:"Afghanistan",[t._F.OM]:"Oman",[t._F.IN]:"India",[t._F.LA]:"Laos",[t._F.UZ]:"Uzbekistan",[t._F.MV]:"Maldives",[t._F.ID]:"Indonesia",[t._F.VN]:"Vietnam",[t._F.MY]:"Malaysia",[t._F.TW]:"Taiwan",[t._F.KH]:"Cambodia",[t._F.AE]:"United Arab Emirates",[t._F.HK]:"Hong Kong",[t._F.GE]:"Georgia (Country)",[t._F.BD]:"Bangladesh",[t._F.KW]:"Kuwait",[t._F.TM]:"Turkmenistan",[t._F.QA]:"Qatar",[t._F.BH]:"Bahrain",[t._F.BN]:"Brunei",[t._F.TH]:"Thailand",[t._F.BT]:"Bhutan",[t._F.SG]:"Singapore",[t._F.IL]:"Israel",[t._F.AZ]:"Azerbaijan",[t._F.TL]:"Timor-Leste",[t._F.IR]:"Iran",[t._F.TR]:"Turkey",[t._F.MK]:"North Macedonia",[t._F.IE]:"Ireland",[t._F.DK]:"Denmark",[t._F.SK]:"Slovakia",[t._F.MD]:"Moldova",[t._F.AX]:"\xc5land Islands",[t._F.PL]:"Poland",[t._F.BA]:"Bosnia and Herzegovina",[t._F.SM]:"San Marino",[t._F.CZ]:"Czechia",[t._F.EE]:"Estonia",[t._F.XK]:"Kosovo",[t._F.FO]:"Faroe Islands",[t._F.SJ]:"Svalbard and Jan Mayen",[t._F.GG]:"Guernsey",[t._F.FR]:"France",[t._F.NL]:"Netherlands",[t._F.FI]:"Finland",[t._F.PT]:"Portugal",[t._F.DE]:"Germany",[t._F.MT]:"Malta",[t._F.JE]:"Jersey",[t._F.IS]:"Iceland",[t._F.ES]:"Spain",[t._F.GI]:"Gibraltar",[t._F.NO]:"Norway",[t._F.CY]:"Cyprus",[t._F.RS]:"Serbia",[t._F.LT]:"Lithuania",[t._F.MC]:"Monaco",[t._F.LU]:"Luxembourg",[t._F.UA]:"Ukraine",[t._F.IM]:"Isle of Man",[t._F.RO]:"Romania",[t._F.BE]:"Belgium",[t._F.SE]:"Sweden",[t._F.ME]:"Montenegro",[t._F.LV]:"Latvia",[t._F.VA]:"Vatican City",[t._F.AT]:"Austria",[t._F.AL]:"Albania",[t._F.LI]:"Liechtenstein",[t._F.GR]:"Greece",[t._F.IT]:"Italy",[t._F.AD]:"Andorra",[t._F.GB]:"United Kingdom",[t._F.RU]:"Russia",[t._F.SI]:"Slovenia",[t._F.BY]:"Belarus",[t._F.CH]:"Switzerland",[t._F.HU]:"Hungary",[t._F.BG]:"Bulgaria",[t._F.HR]:"Croatia",[t._F.TC]:"Turks and Caicos Islands",[t._F.CW]:"Cura\xe7ao",[t._F.GP]:"Guadeloupe",[t._F.UM]:"United States Minor Outlying Islands",[t._F.GT]:"Guatemala",[t._F.PM]:"Saint Pierre and Miquelon",[t._F.BQ]:"Caribbean Netherlands",[t._F.GL]:"Greenland",[t._F.SX]:"Sint Maarten",[t._F.PA]:"Panama",[t._F.AW]:"Aruba",[t._F.MQ]:"Martinique",[t._F.AG]:"Antigua and Barbuda",[t._F.BM]:"Bermuda",[t._F.CU]:"Cuba",[t._F.GD]:"Grenada",[t._F.NI]:"Nicaragua",[t._F.LC]:"Saint Lucia",[t._F.KN]:"Saint Kitts and Nevis",[t._F.DO]:"Dominican Republic",[t._F.VC]:"Saint Vincent and the Grenadines",[t._F.BZ]:"Belize",[t._F.HT]:"Haiti",[t._F.JM]:"Jamaica",[t._F.BS]:"Bahamas",[t._F.MX]:"Mexico",[t._F.MF]:"Saint Martin",[t._F.SV]:"El Salvador",[t._F.BL]:"Saint Barth\xe9lemy",[t._F.AI]:"Anguilla",[t._F.MS]:"Montserrat",[t._F.VG]:"British Virgin Islands",[t._F.BB]:"Barbados",[t._F.HN]:"Honduras",[t._F.KY]:"Cayman Islands",[t._F.DM]:"Dominica",[t._F.TT]:"Trinidad and Tobago",[t._F.CR]:"Costa Rica",[t._F.SR]:"Suriname",[t._F.CX]:"Christmas Island",[t._F.WS]:"Samoa",[t._F.PF]:"French Polynesia",[t._F.AS]:"American Samoa",[t._F.NC]:"New Caledonia",[t._F.TK]:"Tokelau",[t._F.PW]:"Palau",[t._F.KI]:"Kiribati",[t._F.VU]:"Vanuatu",[t._F.PN]:"Pitcairn Islands",[t._F.CK]:"Cook Islands",[t._F.FJ]:"Fiji",[t._F.PG]:"Papua New Guinea",[t._F.MP]:"Northern Mariana Islands",[t._F.NU]:"Niue",[t._F.TV]:"Tuvalu",[t._F.NF]:"Norfolk Island",[t._F.TO]:"Tonga",[t._F.FM]:"Micronesia",[t._F.SB]:"Solomon Islands",[t._F.NR]:"Nauru",[t._F.WF]:"Wallis and Futuna",[t._F.GU]:"Guam",[t._F.AU]:"Australia",[t._F.NZ]:"New Zealand",[t._F.MH]:"Marshall Islands",[t._F.CC]:"Cocos (Keeling) Islands",[t._F.VE]:"Venezuela",[t._F.PY]:"Paraguay",[t._F.BR]:"Brazil",[t._F.CO]:"Colombia",[t._F.PE]:"Peru",[t._F.CL]:"Chile",[t._F.UY]:"Uruguay",[t._F.AR]:"Argentina",[t._F.GY]:"Guyana",[t._F.BO]:"Bolivia",[t._F.GF]:"French Guiana",[t._F.EC]:"Ecuador",[t._F.FK]:"Falkland Islands",[t._F.US_AL]:"Alabama",[t._F.US_AK]:"Alaska",[t._F.US_AZ]:"Arizona",[t._F.US_AR]:"Arkansas",[t._F.US_CA]:"California",[t._F.US_CO]:"Colorado",[t._F.US_CT]:"Connecticut",[t._F.US_DE]:"Delaware",[t._F.US_DC]:"District of Columbia (DC)",[t._F.US_FL]:"Florida",[t._F.US_GA]:"Georgia",[t._F.US_HI]:"Hawaii",[t._F.US_ID]:"Idaho",[t._F.US_IL]:"Illinois",[t._F.US_IN]:"Indiana",[t._F.US_IA]:"Iowa",[t._F.US_KS]:"Kansas",[t._F.US_KY]:"Kentucky",[t._F.US_LA]:"Louisiana",[t._F.US_ME]:"Maine",[t._F.US_MD]:"Maryland",[t._F.US_MA]:"Massachusetts",[t._F.US_MI]:"Michigan",[t._F.US_MN]:"Minnesota",[t._F.US_MS]:"Mississippi",[t._F.US_MO]:"Missouri",[t._F.US_MT]:"Montana",[t._F.US_NE]:"Nebraska",[t._F.US_NV]:"Nevada",[t._F.US_NH]:"New Hampshire",[t._F.US_NJ]:"New Jersey",[t._F.US_NM]:"New Mexico",[t._F.US_NY]:"New York",[t._F.US_NC]:"North Carolina",[t._F.US_ND]:"North Dakota",[t._F.US_OH]:"Ohio",[t._F.US_OK]:"Oklahoma",[t._F.US_OR]:"Oregon",[t._F.US_PA]:"Pennsylvania",[t._F.US_PR]:"Puerto Rico",[t._F.US_RI]:"Rhode Island",[t._F.US_SC]:"South Carolina",[t._F.US_SD]:"South Dakota",[t._F.US_TN]:"Tennessee",[t._F.US_TX]:"Texas",[t._F.US_UT]:"Utah",[t._F.US_VA]:"Virginia",[t._F.US_VI]:"United States Virgin Islands",[t._F.US_VT]:"Vermont",[t._F.US_WA]:"Washington",[t._F.US_WV]:"West Virginia",[t._F.US_WI]:"Wisconsin",[t._F.US_WY]:"Wyoming",[t._F.CA_AB]:"Alberta",[t._F.CA_BC]:"British Columbia",[t._F.CA_MB]:"Manitoba",[t._F.CA_NB]:"New Brunswick",[t._F.CA_NL]:"Newfoundland and Labrador",[t._F.CA_NS]:"Nova Scotia",[t._F.CA_ON]:"Ontario",[t._F.CA_PE]:"Prince Edward Island",[t._F.CA_QC]:"Quebec",[t._F.CA_SK]:"Saskatchewan",[t._F.CA_NT]:"Northwest Territories",[t._F.CA_NU]:"Nunavut",[t._F.CA_YT]:"Yukon",[t._F.CA]:"Canada",[t._F.US]:"United States",[t._F.MEXICO_CENTRAL_AMERICA]:"Mexico and Central America",[t._F.CARIBBEAN]:"Caribbean",[t._F.EEA]:"European Economic Area (EEA)",[t._F.NON_EEA]:"Non European Economic Area",[t._F.GLOBAL]:"Global"},s=new Map(Object.entries(i));Object.entries(i).map(a=>({value:a[0],label:a[1]}))},99640:function(a,e,n){"use strict";n.d(e,{Z:function(){return _}});var t=n(24246),i=n(96306),s=n(79894),o=n.n(s);let{Link:r,Text:l}=i.AntTypography,_=a=>{let{href:e,children:n,...i}=a;return e?(0,t.jsx)(o(),{href:e,passHref:!0,legacyBehavior:!0,children:(0,t.jsx)(r,{strong:!0,ellipsis:!0,onClick:a=>a.stopPropagation(),...i,children:n})}):(0,t.jsx)(l,{strong:!0,ellipsis:!0,...i,children:n})}},14908:function(a,e,n){"use strict";var t=n(86677),i=n(27378);let s=a=>a.startsWith("#")?a.slice(1):a;e.Z=a=>{let{tabKeys:e,initialTab:n}=a,o=(0,t.useRouter)(),r=o.asPath.split("#")[1]||e[0],[l,_]=(0,i.useState)(r);return(0,i.useEffect)(()=>{n&&e.includes(n)&&_(n)},[n,e,o.isReady]),{activeTab:l,onTabChange:(0,i.useCallback)(async a=>{if(!e.includes(a)){await o.replace({pathname:o.pathname,query:o.query,hash:void 0}),_(e[0]);return}o.isReady&&(await o.replace({pathname:o.pathname,query:o.query,hash:s(a)},void 0,{shallow:!0}),_(a))},[o,e])}}},76904:function(a,e,n){"use strict";n.d(e,{dK:function(){return u},Rv:function(){return m},$P:function(){return c},zj:function(){return C},Kr:function(){return h},q1:function(){return d},QL:function(){return v}});var t=n(24246),i=n(96306),s=n(3124),o=n.n(s);let r=a=>{let{...e}=a;return(0,t.jsx)("svg",{viewBox:"0 0 8 8",focusable:"false",...e,children:(0,t.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"})})},l=a=>{let{...e}=a;return(0,t.jsx)("svg",{viewBox:"0 0 8 8",focusable:"false",...e,children:(0,t.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"})})},_=a=>{let{...e}=a;return(0,t.jsx)("svg",{viewBox:"0 0 9 10",focusable:"false",...e,children:(0,t.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 F=n(28278);let u=()=>(0,t.jsx)(l,{style:{color:o().FIDESUI_SUCCESS},className:"size-2","data-testid":"add-icon"}),d=()=>(0,t.jsx)(r,{style:{color:o().FIDESUI_ERROR},className:"size-2","data-testid":"remove-icon"}),c=()=>(0,t.jsx)(_,{style:{color:o().FIDESUI_WARNING},className:"size-3","data-testid":"classify-icon"}),S=a=>{let{color:e,...n}=a;return(0,t.jsx)(i.PJP.fRw,{style:{color:e},className:"size-2",...n})},m=()=>(0,t.jsx)(S,{color:o().FIDESUI_INFO,"data-testid":"change-icon"}),C=()=>(0,t.jsx)(S,{color:o().FIDESUI_SUCCESS,"data-testid":"monitored-icon"}),h=()=>(0,t.jsx)(S,{color:o().FIDESUI_ERROR,"data-testid":"muted-icon"}),v={[F.E.ADDITION]:(0,t.jsx)(u,{}),[F.E.REMOVAL]:(0,t.jsx)(d,{}),[F.E.CLASSIFICATION]:(0,t.jsx)(c,{}),[F.E.CHANGE]:(0,t.jsx)(m,{}),[F.E.MONITORED]:(0,t.jsx)(C,{}),[F.E.MUTED]:(0,t.jsx)(h,{}),[F.E.IN_PROGRESS]:(0,t.jsx)(()=>(0,t.jsx)(S,{color:o().FIDESUI_WARNING,"data-testid":"in-progress-icon"}),{}),[F.E.NONE]:null}},28278:function(a,e,n){"use strict";var t,i;n.d(e,{E:function(){return t}}),(i=t||(t={})).ADDITION="Addition",i.CHANGE="Change",i.REMOVAL="Removal",i.CLASSIFICATION="Classification",i.IN_PROGRESS="Classifying",i.MONITORED="Monitoring",i.MUTED="Unmonitored",i.NONE="--"},12109:function(a,e,n){"use strict";n.r(e),n.d(e,{default:function(){return w}});var t=n(24246),i=n(86677),s=n(35287),o=n(77830),r=n(58754),l=n(96306),_=n(25415),F=n(21910),u=n(30952),d=n(27378),c=n(812),S=n(8125),m=n(46628),C=n(37059),h=n(98145),v=n(9320),y=n(88708),A=n(8411),I=n(26070),N=n(3110),M=n(54762);let f=a=>{let{monitorId:e,system:n,allowIgnore:s,onTabChange:r}=a,[_,{isLoading:F}]=(0,C.rs)(),[u,{isLoading:d}]=(0,C.nP)(),S=(0,i.useRouter)(),h=(0,l.pmc)(),A=F||d,{id:I,name:N,system_key:M,total_updates:f}=n,p=async()=>{let a=await _({monitor_config_key:e,resolved_system_ids:[I]});if((0,c.D4)(a))h((0,m.Vo)((0,c.e$)(a.error)));else{let a="".concat(o.So,"/configure/").concat(M,"#assets");h((0,m.t5)((0,v._)(M?"".concat(f," assets from ").concat(N," have been added to the system inventory."):"".concat(N," and ").concat(f," assets have been added to the system inventory. ").concat(N," is now configured for consent."),M?()=>S.push(a):void 0)))}},E=async()=>{let a=await u({monitor_config_key:e,resolved_system_ids:[I||o.Kl]});(0,c.D4)(a)?h((0,m.Vo)((0,c.e$)(a.error))):h((0,m.t5)((0,v._)(N?"".concat(f," assets from ").concat(N," have been ignored and will not appear in future scans."):"".concat(f," uncategorized assets have been ignored and will not appear in future scans."),async()=>{await r(y.A.IGNORED)})))};return(0,t.jsxs)(l.vyj,{children:[(0,t.jsx)(l.esZ,{title:n.id?void 0:"These assets must be categorized before you can add them to the inventory.",children:(0,t.jsx)(l.wpx,{"data-testid":"add-btn",size:"small",onClick:p,disabled:!n.id||A,loading:F,children:"Add"})}),s&&(0,t.jsx)(l.wpx,{"data-testid":"ignore-btn",size:"small",onClick:E,disabled:A,loading:d,children:"Ignore"})]})};var p=n(99640),E=n(76904);let g=a=>{let{system:e,rowClickUrl:n}=a,i=null==n?void 0:n(e);return(0,t.jsxs)(l.vyj,{className:"max-w-[250px] flex-nowrap",children:[!e.system_key&&(0,t.jsx)(l.esZ,{title:"New system",children:(0,t.jsx)("span",{children:E.QL.Change})}),(0,t.jsx)(p.Z,{href:i,"data-testid":i?"system-name-link":"system-name-text",children:e.name||"Uncategorized assets"}),(0,t.jsx)(M.l,{consentStatus:e.consent_status})]})};var U=n(34929),b=n(2525),x=n(78238),T=a=>{var e,n;let{system:i,columnState:s}=a,{getDataUseDisplayName:o}=(0,U.Z)(),r=(null!==(n=null===(e=i.data_uses)||void 0===e?void 0:e.filter(a=>(0,x.Z)(a)))&&void 0!==n?n:[]).map(a=>({label:o(a),key:a}));return(0,t.jsx)(b.Q,{values:r,columnState:s})};let k=a=>{let{monitorId:e,readonly:n,allowIgnore:i,onTabChange:s,consentStatus:o,rowClickUrl:r}=a,[_,F]=(0,d.useState)(!1),[u,c]=(0,d.useState)(!1),[S,m]=(0,d.useState)(!1),[C,v]=(0,d.useState)(0),[y,p]=(0,d.useState)(0),[E,U]=(0,d.useState)(0);return{columns:(0,d.useMemo)(()=>{let a=[{title:()=>(0,t.jsxs)(l.vyj,{children:[(0,t.jsx)("div",{children:"System"}),(0,t.jsx)(M.l,{consentStatus:o})]}),dataIndex:"name",key:h.vQ.SYSTEM_NAME,fixed:"left",render:(a,e)=>(0,t.jsx)(g,{system:e,rowClickUrl:r})},{title:"Assets",dataIndex:"total_updates",key:h.vQ.TOTAL_UPDATES},{title:"Categories of consent",key:h.vQ.DATA_USE,menu:{items:N.DI,onClick:a=>{a.domEvent.stopPropagation(),"expand-all"===a.key?(m(!0),U(a=>a+1)):"collapse-all"===a.key&&(m(!1),U(a=>a+1))}},render:(a,e)=>(0,t.jsx)(T,{system:e,columnState:{isExpanded:S,version:E}})},{title:"Locations",menu:{items:N.DI,onClick:a=>{a.domEvent.stopPropagation(),"expand-all"===a.key?(F(!0),v(a=>a+1)):"collapse-all"===a.key&&(F(!1),v(a=>a+1))}},dataIndex:"locations",key:h.vQ.LOCATIONS,render:a=>{var e;return(0,t.jsx)(I.Q,{values:null!==(e=null==a?void 0:a.map(a=>{var e;return{label:null!==(e=A.Z8[a])&&void 0!==e?e:a,key:a}}))&&void 0!==e?e:[],columnState:{isExpanded:_,isWrapped:!0,version:C}})}},{title:"Domains",menu:{items:N.DI,onClick:a=>{a.domEvent.stopPropagation(),"expand-all"===a.key?(c(!0),p(a=>a+1)):"collapse-all"===a.key&&(c(!1),p(a=>a+1))}},dataIndex:"domains",key:h.vQ.DOMAINS,render:a=>(0,t.jsx)(I.v,{values:a,valueSuffix:"domains",columnState:{isExpanded:u,version:y}})}];return n||a.push({title:"Actions",key:h.vQ.ACTIONS,fixed:"right",render:(a,n)=>(0,t.jsx)(f,{system:n,monitorId:e,allowIgnore:i,onTabChange:s})}),a},[n,o,r,S,_,u,E,C,y,e,i,s])}},L=a=>{let{monitorId:e}=a,n=(0,i.useRouter)(),s=(0,l.pmc)(),[r,_]=(0,d.useState)(),{filterTabs:u,activeTab:A,onTabChange:I,activeParams:N,actionsDisabled:M}=(0,y.Z)(),f=(0,S.o)({sorting:{validColumns:Object.values(h.vQ)}}),{pageIndex:p,pageSize:E,searchQuery:g,updateSearch:U,resetState:b}=f,{data:x,isLoading:T,isFetching:L}=(0,C.wi)({key:e,page:p,size:E,search:g,...N}),[j,{isLoading:w}]=(0,C.rs)(),[R,{isLoading:G}]=(0,C.nP)(),D=(0,d.useCallback)(a=>{var e,n,t;return null!==(t=null!==(n=null!==(e=a.id)&&void 0!==e?e:a.vendor_id)&&void 0!==n?n:a.name)&&void 0!==t?t:o.Kl},[]),P=(0,d.useCallback)(a=>{var n;return"".concat(o.vi,"/").concat(e,"/").concat(null!==(n=a.id)&&void 0!==n?n:o.Kl).concat(A?"#".concat(A):"")},[e,A]),B=(0,d.useMemo)(()=>({enableSelection:!0,getRowKey:D,isLoading:T,isFetching:L,dataSource:(null==x?void 0:x.items)||[],totalRows:(null==x?void 0:x.total)||0,customTableProps:{locale:{emptyText:(0,t.jsx)(l.oj8,{image:l.oj8.PRESENTED_IMAGE_SIMPLE,description:"All caught up!"})}}}),[D,T,L,null==x?void 0:x.items,null==x?void 0:x.total]),O=(0,S.V)(f,B),{selectedRows:K,resetSelections:V}=O,H=(0,d.useCallback)(async a=>{_(void 0),await I(a),b(),V()},[I,b,V]),{columns:Z}=k({monitorId:e,onTabChange:H,readonly:M,allowIgnore:!N.diff_status.includes(F.LL.MUTED),consentStatus:r,rowClickUrl:P});(0,d.useEffect)(()=>{if((null==x?void 0:x.items)&&!r){var a;let e=null===(a=x.items.find(a=>{var e;return(null===(e=a.consent_status)||void 0===e?void 0:e.status)===F.pF.ALERT}))||void 0===a?void 0:a.consent_status;_(null!=e?e:void 0)}},[x,r]);let z=(0,d.useCallback)(async()=>{let a=K.reduce((a,e)=>a+e.total_updates,0),t=await j({monitor_config_key:e,resolved_system_ids:K.map(a=>a.id)});(0,c.D4)(t)?s((0,m.Vo)((0,c.e$)(t.error))):(s((0,m.t5)((0,v._)("".concat(a," assets have been added to the system inventory."),()=>n.push(o.So)))),V())},[K,j,e,s,n,V]),W=(0,d.useCallback)(async()=>{let a=K.reduce((a,e)=>a+e.total_updates,0),n=await R({monitor_config_key:e,resolved_system_ids:K.map(a=>{var e;return null!==(e=a.id)&&void 0!==e?e:o.Kl})});(0,c.D4)(n)?s((0,m.Vo)((0,c.e$)(n.error))):(s((0,m.t5)((0,v._)("".concat(a," assets have been ignored and will not appear in future scans."),async()=>{await I(y.A.IGNORED)}))),V())},[K,R,e,s,I,V]),Q=K.some(a=>null===a.id);return{columns:Z,data:x,isLoading:T,isFetching:L,searchQuery:g,updateSearch:U,resetState:b,tableProps:O.tableProps,selectionProps:O.selectionProps,filterTabs:u,activeTab:A,handleTabChange:H,activeParams:N,actionsDisabled:M,selectedRows:K,hasSelectedRows:O.hasSelectedRows,resetSelections:V,uncategorizedIsSelected:Q,handleBulkAdd:z,handleBulkIgnore:W,anyBulkActionIsLoading:w||G,isAddingResults:w,isIgnoringResults:G}},j=a=>{let{monitorId:e}=a,{columns:n,searchQuery:i,updateSearch:s,tableProps:o,selectionProps:r,filterTabs:d,activeTab:c,handleTabChange:S,activeParams:m,selectedRows:C,hasSelectedRows:h,uncategorizedIsSelected:v,handleBulkAdd:y,handleBulkIgnore:A,anyBulkActionIsLoading:I}=L({monitorId:e});return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(l.Niu,{"aria-label":"Asset state filter",mode:"horizontal",items:d.map(a=>({key:a.hash,label:a.label})),selectedKeys:[c],onClick:async a=>{await S(a.key)},className:"mb-4","data-testid":"asset-state-filter"}),(0,t.jsxs)(l.jqI,{justify:"space-between",align:"center",className:"mb-4",children:[(0,t.jsx)(u.f,{value:i,onChange:s}),(0,t.jsxs)(l.vyj,{size:"large",children:[h&&(0,t.jsx)(_.a,{count:C.length}),(0,t.jsx)(l.S0p,{menu:{items:[{key:"add",label:(0,t.jsx)(l.esZ,{title:v?"Uncategorized assets can't be added to the inventory":null,placement:"left",children:"Add"}),onClick:y,disabled:v},m.diff_status.includes(F.LL.MUTED)?null:{key:"ignore",label:"Ignore",onClick:A}]},trigger:["click"],children:(0,t.jsx)(l.wpx,{type:"primary",icon:(0,t.jsx)(l.PJP._ME,{}),iconPosition:"end",loading:I,disabled:!h,"data-testid":"bulk-actions-menu",children:"Actions"})})]})]}),(0,t.jsx)(l.V5H,{...o,columns:n,rowSelection:r})]})};var w=()=>{let a=decodeURIComponent((0,i.useRouter)().query.monitorId);return(0,t.jsxs)(s.Z,{title:"Action center - Discovered assets by system",children:[(0,t.jsx)(r.Z,{heading:"Action center",breadcrumbItems:[{title:"All activity",href:o.vi},{title:a}]}),(0,t.jsx)(j,{monitorId:a})]})}},99830:function(a){a.exports={toastLink:"ToastLink_toastLink__OLSeq"}}},function(a){a.O(0,[431,8765,9278,5163,1841,7725,7929,2888,9774,179],function(){return a(a.s=86850)}),_N_E=a.O()}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8443],{66726:function(e,t,n){var i=n(11611),s=n(82846),a=n(91936),r=Math.max,o=Math.min;e.exports=function(e,t,n){var c,u,l,d,g,f,m=0,v=!1,y=!1,p=!0;if("function"!=typeof e)throw TypeError("Expected a function");function x(t){var n=c,i=u;return c=u=void 0,m=t,d=e.apply(i,n)}function h(e){var n=e-f,i=e-m;return void 0===f||n>=t||n<0||y&&i>=l}function j(){var e,n,i,a=s();if(h(a))return C(a);g=setTimeout(j,(e=a-f,n=a-m,i=t-e,y?o(i,l-n):i))}function C(e){return(g=void 0,p&&c)?x(e):(c=u=void 0,d)}function b(){var e,n=s(),i=h(n);if(c=arguments,u=this,f=n,i){if(void 0===g)return m=e=f,g=setTimeout(j,t),v?x(e):d;if(y)return clearTimeout(g),g=setTimeout(j,t),x(f)}return void 0===g&&(g=setTimeout(j,t)),d}return t=a(t)||0,i(n)&&(v=!!n.leading,l=(y="maxWait"in n)?r(a(n.maxWait)||0,t):l,p="trailing"in n?!!n.trailing:p),b.cancel=function(){void 0!==g&&clearTimeout(g),m=0,c=f=u=g=void 0},b.flush=function(){return void 0===g?d:C(s())},b}},11611:function(e){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},55193:function(e,t,n){var i=n(99736),s=n(92360);e.exports=function(e){return"symbol"==typeof e||s(e)&&"[object Symbol]"==i(e)}},82846:function(e,t,n){var i=n(77400);e.exports=function(){return i.Date.now()}},40741:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/data-discovery/action-center",function(){return n(2656)}])},30952:function(e,t,n){"use strict";n.d(t,{f:function(){return c}});var i=n(24246),s=n(66726),a=n.n(s),r=n(27378),o=n(26917);let c=e=>{let{value:t,onChange:n,placeholder:s,...c}=e,[u,l]=(0,r.useState)(t);(0,r.useEffect)(()=>{l(t||"")},[t]);let d=a()(n,500),g=(0,r.useCallback)(e=>{l(e),d(e)},[]);return(0,i.jsx)(o.Z,{value:u,onChange:g,onClear:()=>{l(""),n("")},placeholder:s,...c})}},77213:function(e,t,n){"use strict";n.d(t,{Z:function(){return f}});var i=n(24246),s=n(96306),a=n(88038),r=n.n(a),o=n(86677);n(27378);var c=n(25980),u=n(90867),l=n(42478),d=n(77830),g=()=>{let e=(0,o.useRouter)();return(0,i.jsx)(s.xuv,{bg:"gray.50",border:"1px solid",borderColor:"blue.400",borderRadius:"md",justifyContent:"space-between",p:5,mb:5,mt:5,children:(0,i.jsxs)(s.xuv,{children:[(0,i.jsxs)(s.Kqy,{direction:{base:"column",sm:"row"},justifyContent:"space-between",children:[(0,i.jsx)(s.xvT,{fontWeight:"semibold",children:"Configure your storage and messaging provider"}),(0,i.jsx)(s.wpx,{onClick:()=>{e.push(d.AD)},children:"Configure"})]}),(0,i.jsxs)(s.xvT,{children:["Before Fides can process your privacy requests we need two simple steps to configure your storage and email client."," "]})]})})},f=e=>{let{children:t,title:n,padded:a=!0,mainProps:d}=e,f=(0,c.hz)(),m=(0,o.useRouter)(),v="/privacy-requests"===m.pathname||"/datastore-connection"===m.pathname,y=!(f.flags.messagingConfiguration&&v),{data:p}=(0,l.JE)(void 0,{skip:y}),{data:x}=(0,u.PW)(void 0,{skip:y}),h=f.flags.messagingConfiguration&&(!p||!x)&&v;return(0,i.jsxs)(s.kCb,{"data-testid":n,direction:"column",h:"100vh",children:[(0,i.jsxs)(r(),{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.jsxs)(s.kCb,{as:"main",direction:"column",py:a?6:0,px:a?10:0,h:a?"calc(100% - 48px)":"full",flex:1,minWidth:0,overflow:"auto",...d,children:[h?(0,i.jsx)(g,{}):null,t]})]})}},42478:function(e,t,n){"use strict";n.d(t,{FU:function(){return u},JE:function(){return s},Ki:function(){return d},SU:function(){return g},W:function(){return f},h9:function(){return a},jc:function(){return i},qt:function(){return c},sn:function(){return l}});let{useGetEmailInviteStatusQuery:i,useGetActiveMessagingProviderQuery:s,useCreateMessagingConfigurationMutation:a,useCreateMessagingConfigurationSecretsMutation:r,useGetMessagingConfigurationDetailsQuery:o,useGetMessagingConfigurationsQuery:c,useGetMessagingConfigurationByKeyQuery:u,useUpdateMessagingConfigurationByKeyMutation:l,useUpdateMessagingConfigurationSecretsByKeyMutation:d,useCreateTestConnectionMessageMutation:g,useDeleteMessagingConfigurationByKeyMutation:f}=n(78780).u.injectEndpoints({endpoints:e=>({getEmailInviteStatus:e.query({query:()=>({url:"/messaging/email-invite/status"}),providesTags:()=>["Email Invite Status"]}),createMessagingConfiguration:e.mutation({query:e=>({url:"messaging/config",method:"POST",body:e}),invalidatesTags:["Messaging Config","Configuration Settings"]}),getActiveMessagingProvider:e.query({queryFn:async(e,t,n,i)=>{let s=await i({url:"messaging/default/active"});return s.error&&404===s.error.status?{data:null}:s},providesTags:["Messaging Config"]}),createMessagingConfigurationSecrets:e.mutation({query:e=>({url:"messaging/default/".concat(e.service_type,"/secret"),method:"PUT",body:e.details}),invalidatesTags:["Messaging Config","Configuration Settings"]}),getMessagingConfigurationDetails:e.query({query:e=>({url:"messaging/default/".concat(e.type)}),providesTags:["Messaging Config"]}),getMessagingConfigurations:e.query({query:()=>({url:"messaging/config"}),providesTags:["Messaging Config"]}),getMessagingConfigurationByKey:e.query({query:e=>({url:"messaging/config/".concat(e.key)}),providesTags:["Messaging Config"]}),createTestConnectionMessage:e.mutation({query:e=>({url:"messaging/test/".concat(e.service_type),method:"POST",body:e.details}),invalidatesTags:["Messaging Config"]}),updateMessagingConfigurationByKey:e.mutation({query:e=>({url:"messaging/config/".concat(e.key),method:"PATCH",body:e.config}),invalidatesTags:["Messaging Config","Configuration Settings"]}),updateMessagingConfigurationSecretsByKey:e.mutation({query:e=>({url:"messaging/config/".concat(e.key,"/secret"),method:"PUT",body:e.secrets}),invalidatesTags:["Messaging Config","Configuration Settings"]}),deleteMessagingConfigurationByKey:e.mutation({query:e=>({url:"messaging/config/".concat(e.key),method:"DELETE"}),invalidatesTags:["Messaging Config","Configuration Settings"]})})})},2656:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return k}});var i=n(24246),s=n(96306),a=n(79894),r=n.n(a),o=n(27378),c=n(30952),u=n(77213),l=n(77830),d=n(58754),g=n(47935),f=n(7426),m=n(37059);let v=e=>{let{isConfigLoading:t}=e;return(0,i.jsx)(u.Z,{title:"Action center",mainProps:{className:"h-full"},children:(0,i.jsx)(s.jqI,{justify:"center",align:"center",className:"h-full",children:t?(0,i.jsx)(s.$jN,{color:"primary.900"}):(0,i.jsx)(s.DUx,{message:"Coming soon...",description:"Action center is currently disabled.",type:"info",showIcon:!0})})})},y=()=>(0,i.jsx)(s.oj8,{image:s.oj8.PRESENTED_IMAGE_SIMPLE,description:"All caught up! Set up an integration monitor to track your infrastructure in greater detail.",children:(0,i.jsx)(r(),{href:l.KH,passHref:!0,legacyBehavior:!0,children:(0,i.jsx)(s.wpx,{type:"primary",children:"Visit integrations"})})});var p=n(10969),x=n(60145),h=n(11558),j=n(70641),C=n(7317),b=n(85302),T=n(64892),w=n(16394),M=n(21910),S=n(54762);let{Text:E}=s.AntTypography,_=e=>{let{monitorSummary:t,showSkeleton:n,...a}=e,{name:c,consent_status:u,total_updates:d,updates:g,last_monitored:f,secrets:m,key:v,connection_type:y}=t,_=(0,o.useMemo)(()=>(null==m?void 0:m.url)?(0,w.ge)(m.url):void 0,[null==m?void 0:m.url]),k=(0,o.useMemo)(()=>_?(0,w.tl)(_,60):void 0,[_]),P=Object.entries(g).map(e=>"".concat(e[1]," ").concat(e[0],"s")).join(", "),q=f?(0,w.p6)(new Date(f)):void 0,D=f?function(e,t,n){let i;let s=(0,x.j)(),a=n?.locale??s.locale??p._,r=(0,b.U)(e,t);if(isNaN(r))throw RangeError("Invalid time value");let o=Object.assign({},n,{addSuffix:n?.addSuffix,comparison:r}),[c,u]=(0,C.d)(n?.in,...r>0?[t,e]:[e,t]),l=(0,h.u)(n?.roundingMethod??"round"),d=u.getTime()-c.getTime(),g=d/T.yJ,f=(d-((0,j.D)(u)-(0,j.D)(c)))/T.yJ,m=n?.unit;if("second"===(i=m||(g<1?"second":g<60?"minute":g<T.H_?"hour":f<T.fH?"day":f<T.UU?"month":"year"))){let e=l(d/1e3);return a.formatDistance("xSeconds",e,o)}if("minute"===i){let e=l(g);return a.formatDistance("xMinutes",e,o)}if("hour"===i){let e=l(g/60);return a.formatDistance("xHours",e,o)}if("day"===i){let e=l(f/T.H_);return a.formatDistance("xDays",e,o)}if("month"===i){let e=l(f/T.fH);return 12===e&&"month"!==m?a.formatDistance("xYears",1,o):a.formatDistance("xMonths",e,o)}{let e=l(f/T.UU);return a.formatDistance("xYears",e,o)}}(new Date(f),new Date,{addSuffix:!0}):void 0;return(0,i.jsx)(s.krs.Item,{"data-testid":"monitor-result-".concat(v),...a,children:(0,i.jsx)(s.N_L,{avatar:!0,title:!1,loading:n,active:!0,children:(0,i.jsxs)(s.bue,{gutter:12,className:"w-full",children:[(0,i.jsx)(s.JGx,{span:17,className:"align-middle",children:(0,i.jsx)(s.krs.Item.Meta,{avatar:(0,i.jsx)(s.t3Z,{src:k,size:30,icon:(0,i.jsx)(s.PJP.huD,{size:30}),style:{backgroundColor:"transparent",color:"var(--ant-color-text)"},alt:"".concat(_," icon")}),title:(0,i.jsxs)(s.jqI,{align:"center",gap:4,children:[(0,i.jsx)(r(),{href:"".concat(l.vi,"/").concat(v),className:"whitespace-nowrap",children:"".concat(d," assets detected").concat(_?" on ".concat(_):"")}),(0,i.jsx)(S.l,{consentStatus:u}),y===M.Rj.TEST_WEBSITE&&(0,i.jsx)(s.j8w,{color:"nectar",style:{fontWeight:"normal"},children:"test monitor"})]}),description:"".concat(P," detected.")})}),(0,i.jsx)(s.JGx,{span:4,className:"flex items-center justify-end",children:(0,i.jsx)(E,{ellipsis:{tooltip:c},children:c})}),(0,i.jsx)(s.JGx,{span:3,className:"flex items-center justify-end",children:!!D&&(0,i.jsx)(E,{"data-testid":"monitor-date",ellipsis:{tooltip:q},children:D})})]})})})};var k=()=>{var e;let t=(0,s.pmc)(),{PAGE_SIZES:n,pageSize:a,setPageSize:p,onPreviousPageClick:x,isPreviousPageDisabled:h,onNextPageClick:j,isNextPageDisabled:C,startRange:b,endRange:T,pageIndex:w,setTotalPages:M,resetPageIndexToDefault:S}=(0,g.oi)(),[E,k]=(0,o.useState)(""),{data:P,isLoading:q}=(0,f.tB)({api_set:!1}),D=!!(null==P?void 0:null===(e=P.detection_discovery)||void 0===e?void 0:e.website_monitor_enabled);(0,o.useEffect)(()=>{S()},[E,S]);let{data:N,isError:I,isLoading:A,isFetching:U}=(0,m.Ud)({page:w,size:a,search:E},{skip:q||!D});(0,o.useEffect)(()=>{I&&t&&D&&t({title:"Error fetching data",description:"Please try again later",status:"error"})},[I,t,D]),(0,o.useEffect)(()=>{if(N){var e;M(null!==(e=N.total)&&void 0!==e?e:1)}},[N,M]);let R=(null==N?void 0:N.items)||[],B=U?Array.from({length:a},(e,t)=>({key:t.toString(),updates:[],last_monitored:null})):[],H=(0,o.useCallback)(e=>[(0,i.jsx)(r(),{href:"".concat(l.vi,"/").concat(e),passHref:!0,legacyBehavior:!0,children:(0,i.jsx)(s.wpx,{type:"link",className:"p-0","data-testid":"review-button-".concat(e),children:"Review"})},"review")],[]);return D?(0,i.jsxs)(u.Z,{title:"Action center",children:[(0,i.jsx)(d.Z,{heading:"Action center",breadcrumbItems:[{title:"All activity"}]}),(0,i.jsx)(s.jqI,{className:"justify-between py-6",children:(0,i.jsx)(c.f,{value:E,onChange:k})}),(0,i.jsx)(s.krs,{loading:A,dataSource:R||B,locale:{emptyText:(0,i.jsx)(y,{})},renderItem:e=>!!(null==e?void 0:e.key)&&(0,i.jsx)(_,{showSkeleton:U,monitorSummary:e,actions:H(e.key)},e.key)}),!!R&&!!(null==N?void 0:N.total)&&N.total>a&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(s.htM,{className:"mb-6 mt-0"}),(0,i.jsx)(g.s8,{totalRows:(null==N?void 0:N.total)||0,pageSizes:n,setPageSize:p,onPreviousPageClick:x,isPreviousPageDisabled:h||U,onNextPageClick:j,isNextPageDisabled:C||U,startRange:b,endRange:T})]})]}):(0,i.jsx)(v,{isConfigLoading:q})}}},function(e){e.O(0,[7725,2888,9774,179],function(){return e(e.s=40741)}),_N_E=e.O()}]);
|
fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/activity-715064e1c9788e1a.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7477],{74833:function(e,t,i){var s=i(56127),a=/^\s+/;e.exports=function(e){return e?e.slice(0,s(e)+1).replace(a,""):e}},56127:function(e){var t=/\s/;e.exports=function(e){for(var i=e.length;i--&&t.test(e.charAt(i)););return i}},11611:function(e){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},55193:function(e,t,i){var s=i(99736),a=i(92360);e.exports=function(e){return"symbol"==typeof e||a(e)&&"[object Symbol]"==s(e)}},91936:function(e,t,i){var s=i(74833),a=i(11611),n=i(55193),r=0/0,o=/^[-+]0x[0-9a-f]+$/i,l=/^0b[01]+$/i,c=/^0o[0-7]+$/i,d=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(n(e))return r;if(a(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=a(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=s(e);var i=l.test(e);return i||c.test(e)?d(e.slice(2),i?2:8):o.test(e)?r:+e}},45550:function(e,t,i){(window.__NEXT_P=window.__NEXT_P||[]).push(["/data-discovery/activity",function(){return i(3680)}])},58754:function(e,t,i){"use strict";var s=i(24246),a=i(96306),n=i(70788);t.Z=e=>{let{heading:t,breadcrumbItems:i,isSticky:r=!0,children:o,rightContent:l,style:c,...d}=e;return(0,s.jsxs)("div",{...d,style:r?{position:"sticky",top:"-24px",paddingTop:"24px",paddingBottom:"24px",paddingLeft:"40px",marginLeft:"-40px",paddingRight:"40px",marginRight:"-40px",marginTop:"-24px",left:0,zIndex:20,backgroundColor:"white",...c}:{paddingBottom:"24px",...c},children:[(0,s.jsxs)(a.jqI,{justify:"space-between",children:["string"==typeof t?(0,s.jsx)(a.lQT,{className:i||o?"pb-4":void 0,level:1,"data-testid":"page-heading",children:t}):t,l&&(0,s.jsx)("div",{"data-testid":"page-header-right-content",children:l})]}),!!i&&(0,s.jsx)(n.m,{className:o?"pb-4":void 0,items:i,"data-testid":"page-breadcrumb"}),o]})}},70788:function(e,t,i){"use strict";i.d(t,{m:function(){return c}});var s=i(24246),a=i(96306),n=i(79894),r=i.n(n),o=i(27378);let{Text:l}=a.AntTypography,c=e=>{let{items:t,...i}=e,n=(0,o.useMemo)(()=>null==t?void 0:t.map((e,i)=>{let n=i===t.length-1,o={...e},c=o.onClick&&!o.href;return("string"==typeof o.title&&(o.title=(0,s.jsx)(l,{style:{color:"inherit",maxWidth:n?void 0:400},ellipsis:!n,id:n?"breadcrumb-current-page":void 0,children:o.title})),c)?o.title=(0,s.jsx)(a.wpx,{type:"text",size:"small",icon:o.icon,onClick:o.onClick,className:"ant-breadcrumb-link -mt-px px-1 text-inherit",children:o.title}):(o.icon&&(o.title=(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("span",{className:"anticon align-text-bottom",children:o.icon}),o.title]})),o.href&&o.title&&(o.title=(0,s.jsx)(r(),{href:o.href,className:"ant-breadcrumb-link",children:o.title}),delete o.href)),o}),[t]);return(0,s.jsx)(a.zrq,{items:n,...i})}},54409:function(e,t,i){"use strict";i.d(t,{Z:function(){return f}});var s=i(24246),a=i(96306),n=i(812),r=i(41841),o=i(21910),l=i(31883);let c=(0,a.IUT)({displayName:"MonitorOffIcon",viewBox:"0 0 12 12",path:(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.47125 1H5.85H6.15H6.51188L6.58875 1.36914L7.52062 5.83268L6.42408 4.98635L6.03375 3.11719L5.8038 4.50761L4.99323 3.882L5.40562 1.38867L5.47125 1ZM4.80795 5.0022L4.67675 5.79545L5.48735 6.42109L5.61854 5.62783L4.80795 5.0022ZM6.73856 6.49227L6.96125 7.55866L8.42407 8.6877L8.69498 8.00228L7.94864 7.42624L7.88625 7.58398L7.83501 7.33853L6.73856 6.49227ZM8.33138 6.45844L9.07755 7.03434L9.30188 6.4668H11.55H12V5.5293H11.55H9H8.69812L8.58375 5.82031L8.33138 6.45844ZM7.27551 9.06443L7.35399 9.125H7.28813L7.27551 9.06443ZM4.49147 6.91566L5.30209 7.54131L4.79437 10.6113L4.72875 11H4.35H4.05H3.69563L3.61313 10.6406L2.64563 6.46875H0.45H0V5.53125H0.45H2.69777L3.49646 6.1477L4.15125 8.97266L4.49147 6.91566Z",fill:"currentColor"}),(0,s.jsx)("g",{clipPath:"url(#clip0_341_3102)",children:(0,s.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.6755 10.4168L0.164222 2.304L0.775218 1.51237L11.2865 9.62517L10.6755 10.4168Z",fill:"currentColor"})}),(0,s.jsx)("defs",{children:(0,s.jsx)("clipPath",{id:"clip0_341_3102",children:(0,s.jsx)("rect",{width:"11.5",height:"9",fill:"white",transform:"translate(0 1.5)"})})})]})}),d=(0,a.IUT)({displayName:"MonitorOnIcon",viewBox:"0 0 12 10",path:(0,s.jsx)("path",{d:"M5.47125 0H5.85H6.15H6.51188L6.58875 0.369141L7.88625 6.58398L8.58375 4.82031L8.69812 4.5293H9H11.55H12V5.4668H11.55H9.30188L8.36625 7.83398L8.25188 8.125H7.95H7.65H7.28813L7.21125 7.75586L6.03375 2.11719L4.79437 9.61133L4.72875 10H4.35H4.05H3.69563L3.61313 9.64062L2.64563 5.46875H0.45H0V4.53125H0.45H3H3.35438L3.43688 4.89062L4.15125 7.97266L5.40562 0.388672L5.47125 0Z",fill:"currentColor"})});var u=i(79494),L=i(70675),g=i(7940),f=e=>{let{resource:t,ignoreChildActions:i=!1}=e,f=(0,g.G)(t),[x,{isLoading:h}]=(0,L.v8)(),[m,{isLoading:p}]=(0,L.vi)(),[I,{isLoading:j}]=(0,L.Tl)(),{successAlert:_,errorAlert:v}=(0,r.VY)(),C=async()=>{let e=await x({staged_resource_urn:t.urn,monitor_config_id:t.monitor_config_id});(0,l.D4)(e)?v((0,n.e$)(e.error,"Failed to confirm resource")):_("Data discovery has started. The results may take some time to appear in the “Data discovery“ tab.","".concat(t.name||"The resource"," is now being monitored."))},A=async()=>{let e=await I({staged_resource_urn:t.urn});(0,l.D4)(e)?v((0,n.e$)(e.error),"Failed to un-mute resource"):_("".concat(t.name||"The resource"," has been un-muted and is now being monitored."))},T=async()=>{let e=await x({staged_resource_urn:t.urn,monitor_config_id:t.monitor_config_id,unmute_children:!0,classify_monitored_resources:!0});(0,l.D4)(e)?v((0,n.e$)(e.error),"Failed to un-mute resource"):_("Data discovery has started. The results may take some time to appear in the “Data discovery“ tab.","".concat(t.name||"The resource"," is now being monitored."))},D=async()=>{let e=await m({staged_resource_urn:t.urn});(0,l.D4)(e)?v((0,n.e$)(e.error),"Failed to mute resource"):_("Ignored data will not be monitored for changes or added to Fides datasets.","".concat(t.name||"Resource"," ignored"))},y=h||p||j,{diff_status:b,child_diff_statuses:S}=t,N=f===o.D$.SCHEMA,w=f===o.D$.FIELD,H=S&&(S[o.LL.CLASSIFICATION_ADDITION]||S[o.LL.CLASSIFICATION_UPDATE]),O=N&&void 0===b||!w&&b===o.LL.ADDITION||H,F=b!==o.LL.MUTED,R=b===o.LL.MUTED&&!w,Z=b===o.LL.MUTED&&w,E=S&&(S[o.LL.ADDITION]||S[o.LL.REMOVAL]),M=b===o.LL.MONITORED&&!i&&E&&!H;return(0,s.jsxs)(a.Ugi,{children:[(O||M)&&(0,s.jsx)(u.Z,{title:"Monitor",icon:(0,s.jsx)(d,{}),onClick:C,disabled:y,loading:h}),Z&&(0,s.jsx)(u.Z,{title:"Un-Mute",icon:(0,s.jsx)(d,{}),onClick:A,disabled:y,loading:h}),R&&(0,s.jsx)(u.Z,{title:"Monitor",icon:(0,s.jsx)(d,{}),onClick:T,disabled:y,loading:h}),F&&(0,s.jsx)(u.Z,{title:"Ignore",icon:(0,s.jsx)(c,{}),onClick:D,disabled:y,loading:p})]})}},91761:function(e,t,i){"use strict";var s=i(24246),a=i(96306),n=i(812),r=i(41841),o=i(7940),l=i(98559),c=i(21910),d=i(79494),u=i(70675);t.Z=e=>{let{resource:t}=e,[i,{isLoading:L}]=(0,u.v8)(),[g,{isLoading:f}]=(0,u.cM)(),[x,{isLoading:h}]=(0,u.vi)(),m=f||h||L,{diff_status:p,child_diff_statuses:I,top_level_field_name:j}=t,{successAlert:_,errorAlert:v}=(0,r.VY)(),C=p===c.LL.CLASSIFICATION_ADDITION||p===c.LL.CLASSIFICATION_UPDATE,A=I&&(I[c.LL.CLASSIFICATION_ADDITION]||I[c.LL.CLASSIFICATION_UPDATE]),T=(C||A)&&!j,D=C||A,y=(0,o.G)(t)!==c.D$.FIELD,b=T&&D&&y,S=async()=>{let e=await g({staged_resource_urn:t.urn});(0,n.D4)(e)?v((0,n.e$)(e.error),"Failed to promote resource"):_('These changes have been added to a Fides dataset. To view, navigate to "Manage datasets".',"Table changes confirmed")},N=async()=>{let e=await x({staged_resource_urn:t.urn});(0,n.D4)(e)?v((0,n.e$)(e.error),"Failed to mute resource"):_("Ignored changes will not be added to a Fides dataset.","".concat(t.name||"Changes"," ignored"))},w=async()=>{let e=await i({staged_resource_urn:t.urn,monitor_config_id:t.monitor_config_id,start_classification:!0,diff_statuses_to_classify:[c.LL.CLASSIFICATION_ADDITION,c.LL.CLASSIFICATION_UPDATE,c.LL.CLASSIFYING,c.LL.CLASSIFICATION_QUEUED]});(0,n.D4)(e)?v((0,n.e$)(e.error),"Failed to reclassify resource"):_("Reclassification of ".concat((0,l.Z)(t)||"the resource"," has begun. The results may take some time to appear in the “Data discovery“ tab."),"Reclassification started")};return(0,s.jsxs)(a.Ugi,{gap:2,children:[T&&(0,s.jsx)(d.Z,{title:"Confirm",icon:(0,s.jsx)(a.nQG,{}),onClick:S,disabled:m,loading:f}),D&&(0,s.jsx)(d.Z,{title:"Ignore",icon:(0,s.jsx)(a.tpL,{}),onClick:N,disabled:m,loading:h}),y&&!b&&(0,s.jsx)(d.Z,{title:"Reclassify",icon:(0,s.jsx)(a.nyI,{}),onClick:w,disabled:m,loading:L}),b&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(a.LZC,{}),(0,s.jsxs)(a.v2r,{children:[(0,s.jsx)(a.j2t,{as:a.wpx,size:"small",type:"text",icon:(0,s.jsx)(a.nXP,{transform:"rotate(90deg)"}),className:"w-6 gap-0","data-testid":"actions-overflow-btn"}),(0,s.jsx)(a.qyq,{children:(0,s.jsx)(a.sNh,{onClick:w,icon:(0,s.jsx)(a.nyI,{}),"data-testid":"action-reclassify",children:"Reclassify"})})]})]})]})}},3680:function(e,t,i){"use strict";i.r(t),i.d(t,{default:function(){return H}});var s,a,n=i(24246),r=i(27378),o=i(35287),l=i(58754),c=i(47182),d=i(92222),u=i(59003),L=i(96306),g=i(47935),f=i(72625),x=i(70675),h=i(38347),m=i(87667),p=i(50169),I=i(80285),j=i(30952);(s=a||(a={})).DATASET="Dataset",s.CLASSIFICATION="Classification";var _=i(74241),v=i(28278),C=i(20449),A=e=>(0,C.Z)(e)===v.E.CLASSIFICATION?a.CLASSIFICATION:a.DATASET,T=i(54409),D=i(91761);let y={items:[],total:0,page:1,size:50,pages:1},b=()=>(0,n.jsx)(L.gCW,{mt:6,p:10,spacing:4,borderRadius:"base",maxW:"70%","data-testid":"empty-state",alignSelf:"center",margin:"auto",children:(0,n.jsxs)(L.gCW,{children:[(0,n.jsx)(L.xvT,{fontSize:"md",fontWeight:"600",children:"No activity found"}),(0,n.jsx)(L.xvT,{fontSize:"sm",children:"You're up to date!"})]})}),S=(0,d.Cl)();var N=e=>{let{onRowClick:t,statusFilters:i,childsStatusFilters:s}=e,[o,l]=(0,r.useState)(""),{PAGE_SIZES:c,pageSize:v,setPageSize:C,onPreviousPageClick:N,isPreviousPageDisabled:w,onNextPageClick:H,isNextPageDisabled:O,startRange:F,endRange:R,pageIndex:Z,setTotalPages:E}=(0,g.oi)(),{isFetching:M,isLoading:k,data:P}=(0,x.z8)({diff_status:i,child_diff_status:s,page:Z,size:v,search:o}),{items:U,total:V,pages:$}=(0,r.useMemo)(()=>null!=P?P:y,[P]);(0,r.useEffect)(()=>{E($)},[$,E]);let z=(0,r.useMemo)(()=>[S.accessor(e=>e.name,{id:"name",cell:e=>(0,n.jsx)(m.Z,{result:e.row.original}),header:e=>(0,n.jsx)(g.Rr,{value:"Name",...e})}),S.accessor(e=>e.urn,{id:"project",cell:e=>(0,n.jsx)(g.G3,{value:(0,_.Z)(e.getValue())}),header:e=>(0,n.jsx)(g.Rr,{value:"Project",...e})}),S.display({id:"status",cell:e=>(0,n.jsx)(p.Z,{result:e.row.original}),header:e=>(0,n.jsx)(g.Rr,{value:"Status",...e})}),S.accessor(e=>e.system,{id:"system",cell:e=>(0,n.jsx)(g.G3,{value:e.getValue()}),header:e=>(0,n.jsx)(g.Rr,{value:"System",...e})}),S.accessor(e=>e.monitor_config_id,{id:"monitor",cell:e=>(0,n.jsx)(g.G3,{value:e.getValue()}),header:e=>(0,n.jsx)(g.Rr,{value:"Detected by",...e})}),S.accessor(e=>e.updated_at,{id:"time",cell:e=>(0,n.jsx)(f.Cy,{time:e.getValue()}),header:e=>(0,n.jsx)(g.Rr,{value:"When",...e})}),S.accessor(e=>e,{id:"action",cell:e=>A(e.getValue())===a.DATASET?(0,n.jsx)(T.Z,{resource:e.getValue()}):(0,n.jsx)(D.Z,{resource:e.getValue()}),header:e=>(0,n.jsx)(g.Rr,{value:"Action",...e})})],[]),G=(0,u.b7)({getCoreRowModel:(0,d.sC)(),getGroupedRowModel:(0,d.qe)(),getExpandedRowModel:(0,d.rV)(),getRowId:I.Z,columns:z,manualPagination:!0,data:U,columnResizeMode:"onChange"});return k?(0,n.jsx)(g.I4,{rowHeight:36,numRows:36}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(g.Q$,{children:(0,n.jsxs)(L.kCb,{gap:6,align:"center",children:[(0,n.jsx)(L.xuv,{flexShrink:0,children:(0,n.jsx)(j.f,{value:o,onChange:l})}),(0,n.jsx)(h.a,{})]})}),(0,n.jsx)(g.ZK,{tableInstance:G,onRowClick:t,emptyTableNotice:(0,n.jsx)(b,{})}),(0,n.jsx)(g.s8,{totalRows:V||0,pageSizes:c,setPageSize:C,onPreviousPageClick:N,isPreviousPageDisabled:w||M,onNextPageClick:H,isNextPageDisabled:O||M,startRange:F,endRange:R})]})},w=i(21910),H=()=>{let{navigateToDetectionResults:e,navigateToDiscoveryResults:t}=(0,c.Z)();return(0,n.jsxs)(o.Z,{title:"Data discovery",children:[(0,n.jsx)(l.Z,{heading:"All activity"}),(0,n.jsx)(N,{onRowClick:i=>{if(A(i)===a.DATASET){e({resourceUrn:i.urn});return}t({resourceUrn:i.urn})},statusFilters:[w.LL.ADDITION,w.LL.REMOVAL,w.LL.CLASSIFICATION_ADDITION,w.LL.CLASSIFICATION_UPDATE],childsStatusFilters:[w.LL.ADDITION,w.LL.REMOVAL,w.LL.CLASSIFICATION_ADDITION,w.LL.CLASSIFICATION_UPDATE]})]})}},31883:function(e,t,i){"use strict";i.d(t,{Bw:function(){return s.Bw},D4:function(){return s.D4}});var s=i(19043)}},function(e){e.O(0,[431,1841,8002,2888,9774,179],function(){return e(e.s=45550)}),_N_E=e.O()}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5744],{24354:function(e,n,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/data-discovery/detection/[resourceUrn]",function(){return r(42705)}])},42705:function(e,n,r){"use strict";r.r(n);var t=r(24246);r(27378);var c=r(35287),i=r(77830),u=r(58754),s=r(69828),o=r(47182),a=r(1039);n.default=()=>{let{resourceUrn:e,navigateToDetectionResults:n}=(0,o.Z)();return(0,t.jsxs)(c.Z,{title:"Data detection",children:[(0,t.jsx)(u.Z,{heading:"Data detection",children:(0,t.jsx)(s.Z,{parentLink:i.XY,resourceUrn:e,onPathClick:e=>n({resourceUrn:e})})}),(0,t.jsx)(a.Z,{resourceUrn:e})]})}}},function(e){e.O(0,[431,
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5744],{24354:function(e,n,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/data-discovery/detection/[resourceUrn]",function(){return r(42705)}])},42705:function(e,n,r){"use strict";r.r(n);var t=r(24246);r(27378);var c=r(35287),i=r(77830),u=r(58754),s=r(69828),o=r(47182),a=r(1039);n.default=()=>{let{resourceUrn:e,navigateToDetectionResults:n}=(0,o.Z)();return(0,t.jsxs)(c.Z,{title:"Data detection",children:[(0,t.jsx)(u.Z,{heading:"Data detection",children:(0,t.jsx)(s.Z,{parentLink:i.XY,resourceUrn:e,onPathClick:e=>n({resourceUrn:e})})}),(0,t.jsx)(a.Z,{resourceUrn:e})]})}}},function(e){e.O(0,[431,1841,8002,5309,2888,9774,179],function(){return e(e.s=24354)}),_N_E=e.O()}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3453],{35041:function(n,t,e){(window.__NEXT_P=window.__NEXT_P||[]).push(["/data-discovery/detection",function(){return e(82660)}])},82660:function(n,t,e){"use strict";e.r(t);var i=e(24246);e(27378);var c=e(35287),a=e(77830),s=e(58754),u=e(69828),r=e(1039);t.default=()=>(0,i.jsxs)(c.Z,{title:"Data detection",children:[(0,i.jsx)(s.Z,{heading:"Data detection",children:(0,i.jsx)(u.Z,{parentLink:a.XY})}),(0,i.jsx)(r.Z,{})]})}},function(n){n.O(0,[431,
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3453],{35041:function(n,t,e){(window.__NEXT_P=window.__NEXT_P||[]).push(["/data-discovery/detection",function(){return e(82660)}])},82660:function(n,t,e){"use strict";e.r(t);var i=e(24246);e(27378);var c=e(35287),a=e(77830),s=e(58754),u=e(69828),r=e(1039);t.default=()=>(0,i.jsxs)(c.Z,{title:"Data detection",children:[(0,i.jsx)(s.Z,{heading:"Data detection",children:(0,i.jsx)(u.Z,{parentLink:a.XY})}),(0,i.jsx)(r.Z,{})]})}},function(n){n.O(0,[431,1841,8002,5309,2888,9774,179],function(){return n(n.s=35041)}),_N_E=n.O()}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1571],{11207:function(r,e,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/data-discovery/discovery/[resourceUrn]",function(){return n(55124)}])},55124:function(r,e,n){"use strict";n.r(e);var s=n(24246);n(27378);var c=n(35287),t=n(77830),i=n(58754),u=n(69828),o=n(47182),a=n(11904);e.default=()=>{let{resourceUrn:r,navigateToDiscoveryResults:e}=(0,o.Z)();return(0,s.jsxs)(c.Z,{title:"Data discovery",children:[(0,s.jsx)(i.Z,{heading:"Data discovery",children:(0,s.jsx)(u.Z,{parentLink:t.zE,resourceUrn:r,onPathClick:r=>e({resourceUrn:r})})}),(0,s.jsx)(a.Z,{resourceUrn:r})]})}}},function(r){r.O(0,[431,8765,9278,5163,
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1571],{11207:function(r,e,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/data-discovery/discovery/[resourceUrn]",function(){return n(55124)}])},55124:function(r,e,n){"use strict";n.r(e);var s=n(24246);n(27378);var c=n(35287),t=n(77830),i=n(58754),u=n(69828),o=n(47182),a=n(11904);e.default=()=>{let{resourceUrn:r,navigateToDiscoveryResults:e}=(0,o.Z)();return(0,s.jsxs)(c.Z,{title:"Data discovery",children:[(0,s.jsx)(i.Z,{heading:"Data discovery",children:(0,s.jsx)(u.Z,{parentLink:t.zE,resourceUrn:r,onPathClick:r=>e({resourceUrn:r})})}),(0,s.jsx)(a.Z,{resourceUrn:r})]})}}},function(r){r.O(0,[431,8765,9278,5163,1841,409,8002,9046,2888,9774,179],function(){return r(r.s=11207)}),_N_E=r.O()}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2320],{48570:function(n,e,i){(window.__NEXT_P=window.__NEXT_P||[]).push(["/data-discovery/discovery",function(){return i(49730)}])},49730:function(n,e,i){"use strict";i.r(e);var s=i(24246);i(27378);var t=i(35287),r=i(77830),c=i(58754),a=i(69828),u=i(11904);e.default=()=>(0,s.jsxs)(t.Z,{title:"Data discovery",children:[(0,s.jsx)(c.Z,{heading:"Data discovery",children:(0,s.jsx)(a.Z,{parentLink:r.zE})}),(0,s.jsx)(u.Z,{})]})}},function(n){n.O(0,[431,8765,9278,5163,
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2320],{48570:function(n,e,i){(window.__NEXT_P=window.__NEXT_P||[]).push(["/data-discovery/discovery",function(){return i(49730)}])},49730:function(n,e,i){"use strict";i.r(e);var s=i(24246);i(27378);var t=i(35287),r=i(77830),c=i(58754),a=i(69828),u=i(11904);e.default=()=>(0,s.jsxs)(t.Z,{title:"Data discovery",children:[(0,s.jsx)(c.Z,{heading:"Data discovery",children:(0,s.jsx)(a.Z,{parentLink:r.zE})}),(0,s.jsx)(u.Z,{})]})}},function(n){n.O(0,[431,8765,9278,5163,1841,409,8002,9046,2888,9774,179],function(){return n(n.s=48570)}),_N_E=n.O()}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9738],{53910:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/datamap",function(){return n(18839)}])},77213:function(e,t,n){"use strict";n.d(t,{Z:function(){return x}});var i=n(24246),s=n(96306),r=n(88038),l=n.n(r),a=n(86677);n(27378);var o=n(25980),d=n(90867),u=n(42478),c=n(77830),g=()=>{let e=(0,a.useRouter)();return(0,i.jsx)(s.xuv,{bg:"gray.50",border:"1px solid",borderColor:"blue.400",borderRadius:"md",justifyContent:"space-between",p:5,mb:5,mt:5,children:(0,i.jsxs)(s.xuv,{children:[(0,i.jsxs)(s.Kqy,{direction:{base:"column",sm:"row"},justifyContent:"space-between",children:[(0,i.jsx)(s.xvT,{fontWeight:"semibold",children:"Configure your storage and messaging provider"}),(0,i.jsx)(s.wpx,{onClick:()=>{e.push(c.AD)},children:"Configure"})]}),(0,i.jsxs)(s.xvT,{children:["Before Fides can process your privacy requests we need two simple steps to configure your storage and email client."," "]})]})})},x=e=>{let{children:t,title:n,padded:r=!0,mainProps:c}=e,x=(0,o.hz)(),h=(0,a.useRouter)(),f="/privacy-requests"===h.pathname||"/datastore-connection"===h.pathname,m=!(x.flags.messagingConfiguration&&f),{data:p}=(0,u.JE)(void 0,{skip:m}),{data:y}=(0,d.PW)(void 0,{skip:m}),j=x.flags.messagingConfiguration&&(!p||!y)&&f;return(0,i.jsxs)(s.kCb,{"data-testid":n,direction:"column",h:"100vh",children:[(0,i.jsxs)(l(),{children:[(0,i.jsxs)("title",{children:["Fides Admin UI - ",n]}),(0,i.jsx)("meta",{name:"description",content:"Privacy Engineering Platform"}),(0,i.jsx)("link",{rel:"icon",href:"/favicon.ico"})]}),(0,i.jsxs)(s.kCb,{as:"main",direction:"column",py:r?6:0,px:r?10:0,h:r?"calc(100% - 48px)":"full",flex:1,minWidth:0,overflow:"auto",...c,children:[j?(0,i.jsx)(g,{}):null,t]})]})}},99811:function(e,t,n){"use strict";n.d(t,{m:function(){return s}});var i=n(27378);class s{updateTableInstance(e){this.tableInstance=e}constructor(e=null){this.tableInstance=e,this.updateTableInstance=this.updateTableInstance.bind(this)}}let r=i.createContext(new s);t.Z=r},42478:function(e,t,n){"use strict";n.d(t,{FU:function(){return d},JE:function(){return s},Ki:function(){return c},SU:function(){return g},W:function(){return x},h9:function(){return r},jc:function(){return i},qt:function(){return o},sn:function(){return u}});let{useGetEmailInviteStatusQuery:i,useGetActiveMessagingProviderQuery:s,useCreateMessagingConfigurationMutation:r,useCreateMessagingConfigurationSecretsMutation:l,useGetMessagingConfigurationDetailsQuery:a,useGetMessagingConfigurationsQuery:o,useGetMessagingConfigurationByKeyQuery:d,useUpdateMessagingConfigurationByKeyMutation:u,useUpdateMessagingConfigurationSecretsByKeyMutation:c,useCreateTestConnectionMessageMutation:g,useDeleteMessagingConfigurationByKeyMutation:x}=n(78780).u.injectEndpoints({endpoints:e=>({getEmailInviteStatus:e.query({query:()=>({url:"/messaging/email-invite/status"}),providesTags:()=>["Email Invite Status"]}),createMessagingConfiguration:e.mutation({query:e=>({url:"messaging/config",method:"POST",body:e}),invalidatesTags:["Messaging Config","Configuration Settings"]}),getActiveMessagingProvider:e.query({queryFn:async(e,t,n,i)=>{let s=await i({url:"messaging/default/active"});return s.error&&404===s.error.status?{data:null}:s},providesTags:["Messaging Config"]}),createMessagingConfigurationSecrets:e.mutation({query:e=>({url:"messaging/default/".concat(e.service_type,"/secret"),method:"PUT",body:e.details}),invalidatesTags:["Messaging Config","Configuration Settings"]}),getMessagingConfigurationDetails:e.query({query:e=>({url:"messaging/default/".concat(e.type)}),providesTags:["Messaging Config"]}),getMessagingConfigurations:e.query({query:()=>({url:"messaging/config"}),providesTags:["Messaging Config"]}),getMessagingConfigurationByKey:e.query({query:e=>({url:"messaging/config/".concat(e.key)}),providesTags:["Messaging Config"]}),createTestConnectionMessage:e.mutation({query:e=>({url:"messaging/test/".concat(e.service_type),method:"POST",body:e.details}),invalidatesTags:["Messaging Config"]}),updateMessagingConfigurationByKey:e.mutation({query:e=>({url:"messaging/config/".concat(e.key),method:"PATCH",body:e.config}),invalidatesTags:["Messaging Config","Configuration Settings"]}),updateMessagingConfigurationSecretsByKey:e.mutation({query:e=>({url:"messaging/config/".concat(e.key,"/secret"),method:"PUT",body:e.secrets}),invalidatesTags:["Messaging Config","Configuration Settings"]}),deleteMessagingConfigurationByKey:e.mutation({query:e=>({url:"messaging/config/".concat(e.key),method:"DELETE"}),invalidatesTags:["Messaging Config","Configuration Settings"]})})})},18839:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return U}});var i=n(24246),s=n(27378),r=n(45938),l=n(77213),a=n(58754),o=n(96306),d=n(65218),u=n.n(d),c=n(16134),g=n(35258),x=n(92222),h=n(59003),f=n(30002),m=n(28079),p=n(49600),y=n(99811);let j=e=>{var t;let{column:n}=e,{tableInstance:i}=(0,s.useContext)(y.Z),r=s.useMemo(()=>Array.from(n.getFacetedUniqueValues().keys()),[n]),l=s.useMemo(()=>{let e={};return r.forEach(t=>{e[t]=!1}),e},[r]);return{filterValue:null!==(t=n.getFilterValue())&&void 0!==t?t:l,clearFilterOptions:()=>{let e={};r.forEach(t=>{e[t]=!1}),n.setFilterValue(e)},toggleFilterOption:(e,t)=>{var s;let r={...null!==(s=n.getFilterValue())&&void 0!==s?s:l,[e]:t};Object.values(r).every(e=>!e)?null==i||i.setColumnFilters(null==i?void 0:i.getState().columnFilters.filter(e=>e.id!==n.id)):n.setFilterValue(r)},options:r,header:n.columnDef.header}};var v=n(57072);let C=(0,x.Cl)(),b={multifield:(e,t,n)=>n[e.original[t]]},w=()=>{let e=(0,c.T)(),{updateTableInstance:t}=(0,s.useContext)(y.Z),n=(0,c.C)(p.eo),{data:i,isLoading:r}=(0,p.Ex)({organizationName:"default_organization"});(0,v.MO)(),(0,m.fd)(),(0,f.te)();let l=(0,s.useRef)(!1);(0,s.useEffect)(()=>{if(i){let{columns:t,rows:n}=i;e((0,p.dd)(t)),l.current||(l.current=!0,0===n.length?e((0,p.ym)(!0)):e((0,p.ym)(!1)))}},[i,e]);let a=(0,s.useMemo)(()=>i?i.rows:[],[i]),o=(0,s.useMemo)(()=>(n||[]).map(e=>{let{text:t,value:n}=e;return C.accessor(e=>e[n],{id:n,header:t,cell:e=>{let{getValue:t}=e,n=t();return Array.isArray(n)?n.join(", "):n},filterFn:b.multifield})}),[n]),d=(0,h.b7)({columns:o,data:a,filterFns:b,getCoreRowModel:(0,x.sC)(),getFilteredRowModel:(0,x.vL)(),getFacetedRowModel:(0,x.o6)(),getFacetedUniqueValues:(0,x.JG)(),manualPagination:!0,columnResizeMode:"onChange"});return(0,s.useEffect)(()=>t(d),[d,t]),{...d,isLoading:r}};var k=n(83766),M=n.n(k),S=n(25980),T=n(46238),F=n(47935),q=n(22968);let E=e=>{var t,n,s;let{option:r,columnId:l,filterValue:a,toggleFilterOption:d}=e,u=(0,c.C)(v.L5),g=l===q.Ux&&null!==(n=null===(t=u.get(r))||void 0===t?void 0:t.name)&&void 0!==n?n:r;return(0,i.jsx)(o.XZJ,{value:r,width:"193px",height:"20px",mb:"25px",isChecked:null!==(s=a[r])&&void 0!==s&&s,onChange:e=>{let{target:t}=e;d(r,t.checked)},_focusWithin:{bg:"gray.100"},colorScheme:"complimentary",children:(0,i.jsx)(o.xvT,{fontSize:"sm",lineHeight:5,height:"20px",width:"170px",textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap",children:g})},r)};var I=e=>{let{column:t}=e,{filterValue:n,toggleFilterOption:r,options:l}=j({column:t}),[a,d]=(0,s.useState)(!1),u=a?l:l.slice(0,15),c=l.length>15;return(0,i.jsx)(o.UQy,{width:"100%",allowToggle:!0,children:(0,i.jsxs)(o.Qdk,{border:"0px",children:[(0,i.jsx)(o.X6q,{height:"56px",children:(0,i.jsxs)(o.KFZ,{height:"100%",children:[(0,i.jsx)(o.xuv,{flex:"1",alignItems:"center",justifyContent:"center",textAlign:"left",children:t.columnDef.header}),(0,i.jsx)(o.XEm,{})]})}),(0,i.jsxs)(o.Hk3,{children:[(0,i.jsx)(o.MIq,{columns:3,children:u.map(e=>(0,i.jsx)(E,{columnId:t.id,option:e,filterValue:n,toggleFilterOption:r},e))}),!a&&c?(0,i.jsx)(o.wpx,{type:"text",onClick:()=>{d(!0)},children:"View more"}):null,a&&c?(0,i.jsx)(o.wpx,{type:"text",onClick:()=>{d(!1)},children:"View less"}):null]})]})},t.id)};let O=e=>{let{heading:t,children:n}=e;return(0,i.jsxs)(o.xuv,{padding:"24px 8px 8px 24px",children:[(0,i.jsx)(o.X6q,{size:"md",lineHeight:6,fontWeight:"bold",mb:2,children:t}),n]})};var P=e=>{let t,{isOpen:n,onClose:r}=e,{tableInstance:l}=(0,s.useContext)(y.Z),a=null==l?void 0:l.getHeaderGroups(),d=(e,t)=>e.filter(e=>e.id===t).map(e=>(0,i.jsx)(I,{column:e.column},t)),u=(0,s.useMemo)(()=>(null==a?void 0:a[0].headers)||[],[a]);return(0,i.jsxs)(o.u_l,{isOpen:n,onClose:r,isCentered:!0,size:"2xl",children:[(0,i.jsx)(o.ZAr,{}),(0,i.jsxs)(o.hzk,{children:[(0,i.jsx)(o.xBx,{children:"Filters"}),(0,i.jsx)(o.olH,{}),(0,i.jsx)(o.izJ,{}),(0,i.jsx)(o.fef,{maxH:"85vh",padding:"0px",overflowX:"auto",children:(t=[q.vy,q.Ux,q.OL],u.some(e=>t.indexOf(e.id)>-1))?(0,i.jsxs)(O,{heading:"Privacy attributes",children:[d(u,q.vy),d(u,q.Ux),d(u,q.OL)]}):null}),(0,i.jsx)(o.mzw,{children:(0,i.jsxs)(o.xuv,{display:"flex",justifyContent:"space-between",width:"100%",children:[(0,i.jsx)(o.wpx,{onClick:()=>{null==l||l.resetColumnFilters()},className:"mr-3 grow",children:"Reset Filters"}),(0,i.jsx)(o.wpx,{onClick:r,type:"primary",className:"grow",children:"Done"})]})})]})]})};let _=()=>{let{isOpen:e,onOpen:t,onClose:n}=(0,o.qY0)();return{isFilterModalOpen:e,onFilterModalOpen:t,onFilterModalClose:n}};var R=()=>{let{isFilterModalOpen:e,onFilterModalOpen:t,onFilterModalClose:n}=_(),{tableInstance:r}=(0,s.useContext)(y.Z),{systemsCount:l,dictionaryService:a}=(0,S.hz)(),d=null==r?void 0:r.getRowModel(),u=(0,s.useMemo)(()=>{let e=(null==d?void 0:d.rows)||[];return M()(null==e?void 0:e.map(e=>e.original["system.fides_key"]))},[d]);if(!r)return null;let c=u.length,g=r.getState().columnFilters.length;return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)(o.kCb,{justifyContent:"flex-end",flexDirection:"row",alignItems:"center",flexWrap:"wrap",rowGap:4,columnGap:4,children:[(0,i.jsx)(o.kCb,{flexGrow:1,children:(0,i.jsx)(F.HO,{globalFilter:r.getState().globalFilter,setGlobalFilter:r.setGlobalFilter})}),(0,i.jsxs)(o.kCb,{children:[l>0?(0,i.jsxs)(o.kCb,{alignItems:"center",borderRadius:"md",gap:1,marginRight:4,children:[(0,i.jsxs)(o.xvT,{fontSize:"xs",children:[c," of ",l," systems displayed"]}),a?(0,i.jsx)(T.b,{label:"Note that Global Vendor List (GVL) and Additional Consent (AC) systems are not currently included in these reports"}):null]}):null,(0,i.jsxs)(o.wpx,{"aria-label":"Open Filter Settings",onClick:t,children:["Filter",g>0?(0,i.jsx)(o.j8w,{className:"ml-2",children:g}):null]})]})]}),(0,i.jsx)(P,{isOpen:e,onClose:n})]})},A=n(38943),N=n(77830),Z=()=>(0,i.jsx)(o.M5Y,{flex:1,"data-testid":"get-started-modal",backgroundColor:"gray.100",children:(0,i.jsx)(o.xuv,{backgroundColor:"white",p:10,borderRadius:"6px",boxShadow:"0px 1px 3px rgba(0, 0, 0, 0.1), 0px 1px 2px rgba(0, 0, 0, 0.06)",maxWidth:{base:"80%",lg:"60%",xl:"50%"},maxHeight:"90%",textAlign:"center",children:(0,i.jsxs)(o.Kqy,{spacing:4,children:[(0,i.jsx)(o.xvT,{color:"gray.700",fontWeight:"600",children:"Privacy engineering can seem like an endlessly complex confluence of legal and data engineering terminology—fear not—Fides is here to simplify this."}),(0,i.jsx)(o.xvT,{children:"Start by scanning your infrastructure. The scanner will connect to your infrastructure to automatically scan and create a list of all systems available and then classify each system containing PII."}),(0,i.jsx)(o.xvT,{children:"Let's get started!"}),(0,i.jsx)(o.xuv,{children:(0,i.jsx)(o.wpx,{href:N.xo,role:"link",type:"primary",className:"w-fit","data-testid":"add-systems-btn",children:"Add Systems"})})]})})});let z=u()(()=>Promise.all([n.e(105),n.e(1096),n.e(8765),n.e(9278),n.e(699),n.e(6148),n.e(5619),n.e(4259),n.e(1975)]).then(n.bind(n,34849)),{loadableGenerated:{webpack:()=>[34849]},ssr:!1,loading:()=>(0,i.jsx)(o.M5Y,{width:"100%",flex:"1",children:(0,i.jsx)(o.$jN,{})})}),V=()=>{let e=(0,c.C)(A.Xt),{attemptAction:t}=(0,r.oI)(),[n,i]=(0,s.useState)(),l=(0,s.useCallback)(e=>{t().then(t=>{t&&i(e)})},[t,i]),a=(0,s.useCallback)(()=>{t().then(e=>{e&&n&&i(void 0)})},[t,n]);return{isGettingStarted:e,selectedSystemId:n,setSelectedSystemId:l,resetSelectedSystemId:a}};var W=()=>{let{isGettingStarted:e,setSelectedSystemId:t,selectedSystemId:n,resetSelectedSystemId:s}=V(),{isLoading:r}=w();return r?(0,i.jsx)(o.M5Y,{width:"100%",flex:"1",children:(0,i.jsx)(o.$jN,{})}):e?(0,i.jsx)(Z,{}):(0,i.jsxs)(o.kCb,{direction:"column",height:"100%",children:[(0,i.jsx)(o.xuv,{marginBottom:3,marginRight:10,children:(0,i.jsx)(R,{})}),(0,i.jsxs)(o.kCb,{position:"relative",flex:1,direction:"row",overflow:"auto",borderWidth:"1px",borderStyle:"solid",borderColor:"gray.200",children:[(0,i.jsx)(o.xuv,{flex:1,minWidth:"50%",maxWidth:"100%",children:(0,i.jsx)(z,{setSelectedSystemId:t,selectedSystemId:n})}),(0,i.jsx)(g.Z,{selectedSystemId:n,resetSelectedSystemId:s})]})]})},U=()=>{let e=(0,s.useMemo)(()=>new y.m,[]);return(0,i.jsxs)(l.Z,{title:"Data lineage",mainProps:{padding:"24px 0 0 40px"},children:[(0,i.jsx)(a.Z,{style:{paddingLeft:0},heading:"Data lineage"}),(0,i.jsxs)(y.Z.Provider,{value:e,children:[(0,i.jsx)(W,{}),(0,i.jsx)(r.eB,{})]})]})}}},function(e){e.O(0,[431,5163,255,1841,9951,4230,2888,9774,179],function(){return e(e.s=53910)}),_N_E=e.O()}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2096],{78859:function(e,t,o){var n=o(71928),a=o(76747),l=o(42383),i=o(11611),s=o(37948);e.exports=function(e,t,o,r){if(!i(e))return e;t=a(t,e);for(var d=-1,c=t.length,u=c-1,f=e;null!=f&&++d<c;){var m=s(t[d]),h=o;if("__proto__"===m||"constructor"===m||"prototype"===m)break;if(d!=u){var p=f[m];void 0===(h=r?r(p,m,f):void 0)&&(h=i(p)?p:l(t[d+1])?[]:{})}n(f,m,h),f=f[m]}return e}},80396:function(e,t,o){var n=o(79867),a=o(78859);e.exports=function(e,t,o,l){return a(e,t,o(n(e,t)),l)}},62079:function(e,t,o){var n=o(31137);e.exports=function(e){return"function"==typeof e?e:n}},30454:function(e,t,o){var n=o(40699);e.exports=function(e){return n(e,5)}},47215:function(e,t,o){var n=o(78859);e.exports=function(e,t,o){return null==e?e:n(e,t,o)}},90271:function(e,t,o){var n=o(80396),a=o(62079);e.exports=function(e,t,o){return null==e?e:n(e,t,a(o))}},16383:function(e,t,o){(window.__NEXT_P=window.__NEXT_P||[]).push(["/dataset/[datasetId]/[collectionName]/[...subfieldNames]",function(){return o(26052)}])},12627:function(e,t,o){"use strict";var n=o(24246),a=o(79283),l=o(34929);t.Z=e=>{let{selectedTaxonomies:t,showDisabled:o=!1,...i}=e,{getDataCategoryDisplayNameProps:s,getDataCategories:r}=(0,l.Z)(),d=(o?r():r().filter(e=>e.active)).filter(e=>!(null==t?void 0:t.includes(e.fides_key))).map(e=>{let{name:t,primaryName:o}=s(e.fides_key);return{value:e.fides_key,name:t,primaryName:o,description:e.description||""}});return(0,n.jsx)(a.l,{options:d,...i})}},66112:function(e,t,o){"use strict";var n=o(24246),a=o(96306),l=o(27378),i=o(12627),s=o(34929),r=o(26183);t.Z=e=>{let{selectedTaxonomies:t,onAddTaxonomy:o,onRemoveTaxonomy:d}=e,[c,u]=(0,l.useState)(!1),{getDataCategoryDisplayName:f}=(0,s.Z)();return(0,n.jsxs)(r.Z,{children:[t.map(e=>(0,n.jsx)(a.j8w,{"data-testid":"classification-".concat(e),color:"white",closable:!0,onClose:()=>d(e),closeButtonLabel:"Remove category",children:f(e)},e)),(0,n.jsx)(a.j8w,{onClick:()=>u(!0),"data-testid":"add-category-btn",addable:!0,"aria-label":"Add category"}),c&&(0,n.jsx)(a.xuv,{className:"select-wrapper",position:"absolute",zIndex:10,top:"0",left:"0",width:"100%",height:"max",bgColor:"#fff",children:(0,n.jsx)(i.Z,{selectedTaxonomies:t,onChange:e=>{u(!1),o(e)},onBlur:()=>u(!1),open:c})})]})}},76252:function(e,t,o){"use strict";var n=o(24246),a=o(96306),l=o(30454),i=o.n(l),s=o(47215),r=o.n(s),d=o(90271),c=o.n(d),u=o(79806),f=o(20386),m=o(63927),h=o(69435);t.Z=e=>{let{field:t,isOpen:o,onClose:l,dataset:s,collectionName:d,subfields:p}=e,[v]=(0,f.TG)(),{isOpen:x,onOpen:g,onClose:b}=(0,a.qY0)();return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(u.ZP,{isOpen:o,onClose:l,description:"Fields are an array of objects that describe the collection's fields. Provide additional context to this field by filling out the fields below.",header:(0,n.jsx)(u.zR,{title:"Field Name: ".concat(null==t?void 0:t.name)}),footer:(0,n.jsx)(u.Gn,{onClose:l,onDelete:g,formId:m.e}),children:(0,n.jsx)(m.Z,{values:t,onSubmit:e=>{let o=(0,h.Fk)({dataset:s,collectionName:d,subfields:p?[...p,(null==t?void 0:t.name)||""]:[(null==t?void 0:t.name)||""]}),n={...t,...e},a=i()(s);r()(a,o,n),v(a),l()},dataType:"field"})}),(0,n.jsx)(a.cVQ,{isOpen:x,onClose:b,onConfirm:()=>{let e=(0,h.Fk)({dataset:s,collectionName:d,subfields:p}),o=i()(s);c()(o,e,e=>({...e,fields:e.fields.filter(e=>e.name!==(null==t?void 0:t.name))})),v(o),l(),b()},title:"Delete Field",message:(0,n.jsxs)(a.xvT,{children:["You are about to permanently delete the field named"," ",(0,n.jsx)(a.xvT,{color:"complimentary.500",as:"span",fontWeight:"bold",children:null==t?void 0:t.name})," ","from this dataset. Are you sure you would like to continue?"]})})]})}},26052:function(e,t,o){"use strict";o.r(t);var n=o(24246),a=o(92222),l=o(59003),i=o(96306),s=o(30454),r=o.n(s),d=o(47215),c=o.n(d),u=o(86677),f=o(27378),m=o(77213),h=o(77830),p=o(58754),v=o(47935),x=o(66112),g=o(69828),b=o(41966),j=o(76252),C=o(69435);let w=(0,a.Cl)(),y=()=>(0,n.jsx)(i.gCW,{mt:6,p:10,spacing:4,borderRadius:"base",maxW:"70%","data-testid":"no-results-notice",alignSelf:"center",margin:"auto",textAlign:"center",children:(0,n.jsx)(i.gCW,{children:(0,n.jsx)(i.xvT,{fontSize:"md",fontWeight:"600",children:"No fields found."})})});t.default=()=>{let e=(0,u.useRouter)(),[t]=(0,b.TG)(),o=decodeURIComponent(e.query.datasetId),s=decodeURIComponent(e.query.collectionName),d=e.query.subfieldNames.map(decodeURIComponent),{isLoading:_,data:R}=(0,b.oM)(o),k=(0,f.useMemo)(()=>(null==R?void 0:R.collections)||[],[R]).find(e=>e.name===s),N=(0,f.useMemo)(()=>(null==k?void 0:k.fields)||[],[k]),T=(0,f.useMemo)(()=>{let e=N;return d.forEach(t=>{let o=e.find(e=>e.name===t);e=(null==o?void 0:o.fields)||[]}),e},[N,d]),[Z,F]=(0,f.useState)(),I=(0,f.useCallback)(e=>{let{dataCategory:o,field:n}=e,a=n.data_categories||[],l=(0,C.Fk)({dataset:R,collectionName:s,subfields:[...d,n.name]}),i=r()(R);c()(i,"".concat(l,".data_categories"),[...a,o]),t(i)},[R,t,s,d]),M=(0,f.useCallback)(e=>{let{dataCategory:o,field:n}=e,a=n.data_categories||[],l=(0,C.Fk)({dataset:R,collectionName:s,subfields:[...d,null==n?void 0:n.name]}),i=r()(R);c()(i,"".concat(l,".data_categories"),a.filter(e=>e!==o)),t(i)},[R,t,s,d]),z=(0,f.useCallback)(t=>{let n=[...d.map(encodeURIComponent),t.name];e.push({pathname:h.y1,query:{datasetId:o,collectionName:s,subfieldNames:n}})},[o,e,s,d]),S=(0,f.useMemo)(()=>[w.accessor(e=>e.name,{id:"name",cell:e=>{var t;let o=e.row.original.fields&&(null===(t=e.row.original.fields)||void 0===t?void 0:t.length)>0;return(0,n.jsx)(v.G3,{fontWeight:o?"semibold":"normal",value:e.getValue()})},header:e=>(0,n.jsx)(v.Rr,{value:"Field Name",...e}),size:180}),w.accessor(e=>{var t;return null===(t=e.fides_meta)||void 0===t?void 0:t.data_type},{id:"type",cell:e=>e.getValue()?(0,n.jsx)(v.A4,{value:e.getValue()}):(0,n.jsx)(v.G3,{value:void 0}),header:e=>(0,n.jsx)(v.Rr,{value:"Type",...e}),size:80}),w.accessor(e=>e.description,{id:"description",cell:e=>(0,n.jsx)(v.G3,{value:e.getValue(),cellProps:e}),header:e=>(0,n.jsx)(v.Rr,{value:"Description",...e}),size:300,meta:{showHeaderMenu:!0}}),w.accessor(e=>e.data_categories,{id:"data_categories",cell:e=>{var t;let o=e.row.original;return!(e.row.original.fields&&(null===(t=e.row.original.fields)||void 0===t?void 0:t.length)>0)&&(0,n.jsx)(x.Z,{selectedTaxonomies:e.getValue()||[],onAddTaxonomy:e=>I({dataCategory:e,field:o}),onRemoveTaxonomy:e=>M({dataCategory:e,field:o})})},header:e=>(0,n.jsx)(v.Rr,{value:"Data categories",...e}),size:300,meta:{disableRowClick:!0}}),w.display({id:"actions",header:"Actions",cell:e=>{let{row:t}=e,o=t.original;return(0,n.jsx)(i.Ugi,{spacing:0,"data-testid":"field-".concat(o.name),children:(0,n.jsx)(i.wpx,{size:"small",icon:(0,n.jsx)(i.dY8,{}),onClick:()=>{D(o),A(!0)},children:"Edit"})})},meta:{disableRowClick:!0}})],[I,M]),q=(0,f.useMemo)(()=>Z?T.filter(e=>e.name.toLowerCase().includes(Z.toLowerCase())):T,[T,Z]),E=(0,l.b7)({getCoreRowModel:(0,a.sC)(),getFilteredRowModel:(0,a.vL)(),getSortedRowModel:(0,a.tj)(),columns:S,data:q,columnResizeMode:"onChange"}),[O,A]=(0,f.useState)(!1),[G,D]=(0,f.useState)(),U=(0,f.useMemo)(()=>{let e=[{title:"All datasets",href:h.$m},{title:o,href:{pathname:h.o5,query:{datasetId:o}},icon:g.Y[1]},{title:s,icon:g.Y[2],href:{pathname:h.RF,query:{datasetId:o,collectionName:s}}}];return d.forEach((t,n)=>{e.push({title:t,href:n<d.length-1?{pathname:h.y1,query:{datasetId:o,collectionName:s,subfieldNames:d.slice(0,n+1).map(encodeURIComponent)}}:void 0,icon:g.Y[3]})}),e},[o,s,d]);return(0,n.jsxs)(m.Z,{title:"Dataset - ".concat(o),children:[(0,n.jsx)(p.Z,{heading:"Datasets",breadcrumbItems:U}),_?(0,n.jsx)(v.I4,{rowHeight:36,numRows:15}):(0,n.jsxs)(i.xuv,{"data-testid":"fields-table",children:[(0,n.jsx)(v.Q$,{children:(0,n.jsx)(v.HO,{globalFilter:Z,setGlobalFilter:F,placeholder:"Search",testid:"fields-search"})}),(0,n.jsx)(v.ZK,{tableInstance:E,emptyTableNotice:(0,n.jsx)(y,{}),onRowClick:z,getRowIsClickable:e=>{var t;return!!(e.fields&&(null===(t=e.fields)||void 0===t?void 0:t.length)>0)}}),(0,n.jsx)(j.Z,{isOpen:O,onClose:()=>{A(!1),D(void 0)},field:G,dataset:R,collectionName:s,subfields:d})]})]})}}},function(e){e.O(0,[8765,9278,5163,699,409,9226,2888,9774,179],function(){return e(e.s=16383)}),_N_E=e.O()}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6556],{78859:function(e,t,o){var n=o(71928),i=o(76747),l=o(42383),a=o(11611),s=o(37948);e.exports=function(e,t,o,r){if(!a(e))return e;t=i(t,e);for(var d=-1,c=t.length,u=c-1,f=e;null!=f&&++d<c;){var m=s(t[d]),x=o;if("__proto__"===m||"constructor"===m||"prototype"===m)break;if(d!=u){var v=f[m];void 0===(x=r?r(v,m,f):void 0)&&(x=a(v)?v:l(t[d+1])?[]:{})}n(f,m,x),f=f[m]}return e}},80396:function(e,t,o){var n=o(79867),i=o(78859);e.exports=function(e,t,o,l){return i(e,t,o(n(e,t)),l)}},62079:function(e,t,o){var n=o(31137);e.exports=function(e){return"function"==typeof e?e:n}},30454:function(e,t,o){var n=o(40699);e.exports=function(e){return n(e,5)}},47215:function(e,t,o){var n=o(78859);e.exports=function(e,t,o){return null==e?e:n(e,t,o)}},90271:function(e,t,o){var n=o(80396),i=o(62079);e.exports=function(e,t,o){return null==e?e:n(e,t,i(o))}},59972:function(e,t,o){(window.__NEXT_P=window.__NEXT_P||[]).push(["/dataset/[datasetId]/[collectionName]",function(){return o(47355)}])},12627:function(e,t,o){"use strict";var n=o(24246),i=o(79283),l=o(34929);t.Z=e=>{let{selectedTaxonomies:t,showDisabled:o=!1,...a}=e,{getDataCategoryDisplayNameProps:s,getDataCategories:r}=(0,l.Z)(),d=(o?r():r().filter(e=>e.active)).filter(e=>!(null==t?void 0:t.includes(e.fides_key))).map(e=>{let{name:t,primaryName:o}=s(e.fides_key);return{value:e.fides_key,name:t,primaryName:o,description:e.description||""}});return(0,n.jsx)(i.l,{options:d,...a})}},66112:function(e,t,o){"use strict";var n=o(24246),i=o(96306),l=o(27378),a=o(12627),s=o(34929),r=o(26183);t.Z=e=>{let{selectedTaxonomies:t,onAddTaxonomy:o,onRemoveTaxonomy:d}=e,[c,u]=(0,l.useState)(!1),{getDataCategoryDisplayName:f}=(0,s.Z)();return(0,n.jsxs)(r.Z,{children:[t.map(e=>(0,n.jsx)(i.j8w,{"data-testid":"classification-".concat(e),color:"white",closable:!0,onClose:()=>d(e),closeButtonLabel:"Remove category",children:f(e)},e)),(0,n.jsx)(i.j8w,{onClick:()=>u(!0),"data-testid":"add-category-btn",addable:!0,"aria-label":"Add category"}),c&&(0,n.jsx)(i.xuv,{className:"select-wrapper",position:"absolute",zIndex:10,top:"0",left:"0",width:"100%",height:"max",bgColor:"#fff",children:(0,n.jsx)(a.Z,{selectedTaxonomies:t,onChange:e=>{u(!1),o(e)},onBlur:()=>u(!1),open:c})})]})}},76252:function(e,t,o){"use strict";var n=o(24246),i=o(96306),l=o(30454),a=o.n(l),s=o(47215),r=o.n(s),d=o(90271),c=o.n(d),u=o(79806),f=o(20386),m=o(63927),x=o(69435);t.Z=e=>{let{field:t,isOpen:o,onClose:l,dataset:s,collectionName:d,subfields:v}=e,[p]=(0,f.TG)(),{isOpen:h,onOpen:g,onClose:j}=(0,i.qY0)();return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(u.ZP,{isOpen:o,onClose:l,description:"Fields are an array of objects that describe the collection's fields. Provide additional context to this field by filling out the fields below.",header:(0,n.jsx)(u.zR,{title:"Field Name: ".concat(null==t?void 0:t.name)}),footer:(0,n.jsx)(u.Gn,{onClose:l,onDelete:g,formId:m.e}),children:(0,n.jsx)(m.Z,{values:t,onSubmit:e=>{let o=(0,x.Fk)({dataset:s,collectionName:d,subfields:v?[...v,(null==t?void 0:t.name)||""]:[(null==t?void 0:t.name)||""]}),n={...t,...e},i=a()(s);r()(i,o,n),p(i),l()},dataType:"field"})}),(0,n.jsx)(i.cVQ,{isOpen:h,onClose:j,onConfirm:()=>{let e=(0,x.Fk)({dataset:s,collectionName:d,subfields:v}),o=a()(s);c()(o,e,e=>({...e,fields:e.fields.filter(e=>e.name!==(null==t?void 0:t.name))})),p(o),l(),j()},title:"Delete Field",message:(0,n.jsxs)(i.xvT,{children:["You are about to permanently delete the field named"," ",(0,n.jsx)(i.xvT,{color:"complimentary.500",as:"span",fontWeight:"bold",children:null==t?void 0:t.name})," ","from this dataset. Are you sure you would like to continue?"]})})]})}},47355:function(e,t,o){"use strict";o.r(t);var n=o(24246),i=o(92222),l=o(59003),a=o(96306),s=o(86677),r=o(27378),d=o(77213),c=o(77830),u=o(58754),f=o(47935),m=o(66112),x=o(69828),v=o(41966),p=o(76252),h=o(69435);let g=(0,i.Cl)(),j=()=>(0,n.jsx)(a.gCW,{mt:6,p:10,spacing:4,borderRadius:"base",maxW:"70%","data-testid":"no-results-notice",alignSelf:"center",margin:"auto",textAlign:"center",children:(0,n.jsx)(a.gCW,{children:(0,n.jsx)(a.xvT,{fontSize:"md",fontWeight:"600",children:"No fields found."})})});t.default=()=>{let e=(0,s.useRouter)(),[t]=(0,v.TG)(),o=decodeURIComponent(e.query.datasetId),b=decodeURIComponent(e.query.collectionName),{isLoading:C,data:w}=(0,v.oM)(o),_=(0,r.useMemo)(()=>(null==w?void 0:w.collections)||[],[w]),y=_.find(e=>e.name===b),R=(0,r.useMemo)(()=>(null==y?void 0:y.fields)||[],[y]),[k,N]=(0,r.useState)(),I=(0,r.useCallback)(e=>{let{dataCategory:o,field:n}=e,i=n.data_categories||[],l={...n,data_categories:[...i,o]},a=_.indexOf(y),s=y.fields.indexOf(n);t((0,h._n)(w,l,a,s))},[y,_,w,t]),T=(0,r.useCallback)(e=>{var o;let{dataCategory:n,field:i}=e,l={...i,data_categories:null===(o=i.data_categories)||void 0===o?void 0:o.filter(e=>e!==n)},a=_.indexOf(y),s=y.fields.indexOf(i);t((0,h._n)(w,l,a,s))},[y,_,w,t]),Z=(0,r.useCallback)(t=>{e.push({pathname:c.y1,query:{datasetId:encodeURIComponent(o),collectionName:encodeURIComponent(b),subfieldNames:encodeURIComponent(t.name)}})},[o,e,b]),O=(0,r.useMemo)(()=>[g.accessor(e=>e.name,{id:"name",cell:e=>{var t;let o=e.row.original.fields&&(null===(t=e.row.original.fields)||void 0===t?void 0:t.length)>0;return(0,n.jsx)(f.G3,{fontWeight:o?"semibold":"normal",value:e.getValue()})},header:e=>(0,n.jsx)(f.Rr,{value:"Field Name",...e}),size:180}),g.accessor(e=>{var t;return null===(t=e.fides_meta)||void 0===t?void 0:t.data_type},{id:"type",cell:e=>e.getValue()?(0,n.jsx)(f.A4,{value:e.getValue()}):(0,n.jsx)(f.G3,{value:void 0}),header:e=>(0,n.jsx)(f.Rr,{value:"Type",...e}),size:80}),g.accessor(e=>e.description,{id:"description",cell:e=>(0,n.jsx)(f.G3,{value:e.getValue(),cellProps:e}),header:e=>(0,n.jsx)(f.Rr,{value:"Description",...e}),size:300,meta:{showHeaderMenu:!0}}),g.accessor(e=>e.data_categories,{id:"data_categories",cell:e=>{var t;let o=e.row.original;return!(e.row.original.fields&&(null===(t=e.row.original.fields)||void 0===t?void 0:t.length)>0)&&(0,n.jsx)(m.Z,{selectedTaxonomies:e.getValue()||[],onAddTaxonomy:e=>I({dataCategory:e,field:o}),onRemoveTaxonomy:e=>T({dataCategory:e,field:o})})},header:e=>(0,n.jsx)(f.Rr,{value:"Data categories",...e}),size:300,meta:{disableRowClick:!0}}),g.display({id:"actions",header:"Actions",cell:e=>{let{row:t}=e,o=t.original;return(0,n.jsx)(a.Ugi,{spacing:0,"data-testid":"field-".concat(o.name),children:(0,n.jsx)(a.wpx,{size:"small",icon:(0,n.jsx)(a.dY8,{}),onClick:()=>{G(o),S(!0)},children:"Edit"})})},meta:{disableRowClick:!0}})],[I,T]),M=(0,r.useMemo)(()=>k?R.filter(e=>e.name.toLowerCase().includes(k.toLowerCase())):R,[R,k]),F=(0,l.b7)({getCoreRowModel:(0,i.sC)(),getFilteredRowModel:(0,i.vL)(),getSortedRowModel:(0,i.tj)(),columns:O,data:M,columnResizeMode:"onChange"}),[z,S]=(0,r.useState)(!1),[A,G]=(0,r.useState)(),D=(0,r.useMemo)(()=>[{title:"All datasets",href:c.$m},{title:o,href:{pathname:c.o5,query:{datasetId:o}},icon:x.Y[1]},{title:b,icon:x.Y[2]}],[o,b]);return(0,n.jsxs)(d.Z,{title:"Dataset - ".concat(o),children:[(0,n.jsx)(u.Z,{heading:"Datasets",breadcrumbItems:D}),C?(0,n.jsx)(f.I4,{rowHeight:36,numRows:15}):(0,n.jsxs)(a.xuv,{"data-testid":"fields-table",children:[(0,n.jsx)(f.Q$,{children:(0,n.jsx)(f.HO,{globalFilter:k,setGlobalFilter:N,placeholder:"Search",testid:"fields-search"})}),(0,n.jsx)(f.ZK,{tableInstance:F,emptyTableNotice:(0,n.jsx)(j,{}),onRowClick:Z,getRowIsClickable:e=>{var t;return!!(e.fields&&(null===(t=e.fields)||void 0===t?void 0:t.length)>0)}}),(0,n.jsx)(p.Z,{isOpen:z,onClose:()=>{S(!1),G(void 0)},field:A,dataset:w,collectionName:b})]})]})}}},function(e){e.O(0,[8765,9278,5163,699,409,9226,2888,9774,179],function(){return e(e.s=59972)}),_N_E=e.O()}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9340],{33187:function(e,t,i){(window.__NEXT_P=window.__NEXT_P||[]).push(["/dataset/[datasetId]",function(){return i(1016)}])},58754:function(e,t,i){"use strict";var n=i(24246),o=i(96306),l=i(70788);t.Z=e=>{let{heading:t,breadcrumbItems:i,isSticky:s=!0,children:a,rightContent:c,style:r,...d}=e;return(0,n.jsxs)("div",{...d,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",...r}:{paddingBottom:"24px",...r},children:[(0,n.jsxs)(o.jqI,{justify:"space-between",children:["string"==typeof t?(0,n.jsx)(o.lQT,{className:i||a?"pb-4":void 0,level:1,"data-testid":"page-heading",children:t}):t,c&&(0,n.jsx)("div",{"data-testid":"page-header-right-content",children:c})]}),!!i&&(0,n.jsx)(l.m,{className:a?"pb-4":void 0,items:i,"data-testid":"page-breadcrumb"}),a]})}},70788:function(e,t,i){"use strict";i.d(t,{m:function(){return r}});var n=i(24246),o=i(96306),l=i(79894),s=i.n(l),a=i(27378);let{Text:c}=o.AntTypography,r=e=>{let{items:t,...i}=e,l=(0,a.useMemo)(()=>null==t?void 0:t.map((e,i)=>{let l=i===t.length-1,a={...e},r=a.onClick&&!a.href;return("string"==typeof a.title&&(a.title=(0,n.jsx)(c,{style:{color:"inherit",maxWidth:l?void 0:400},ellipsis:!l,id:l?"breadcrumb-current-page":void 0,children:a.title})),r)?a.title=(0,n.jsx)(o.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,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("span",{className:"anticon align-text-bottom",children:a.icon}),a.title]})),a.href&&a.title&&(a.title=(0,n.jsx)(s(),{href:a.href,className:"ant-breadcrumb-link",children:a.title}),delete a.href)),a}),[t]);return(0,n.jsx)(o.zrq,{items:l,...i})}},1016:function(e,t,i){"use strict";i.r(t),i.d(t,{default:function(){return w}});var n=i(24246),o=i(92222),l=i(59003),s=i(96306),a=i(86677),c=i(27378),r=i(77213),d=i(77830),u=i(58754),m=i(47935),h=i(69828),p=i(41966),x=i(46628),g=i(79806),f=i(20386),j=i(63927),b=i(69435),C=e=>{let{dataset:t,collection:i,isOpen:o,onClose:l}=e,a=(0,c.useMemo)(()=>null==t?void 0:t.collections.indexOf(i),[]),[r]=(0,f.TG)(),d=(0,s.pmc)(),{isOpen:u,onOpen:m,onClose:h}=(0,s.qY0)(),p=async e=>{let n={...i,...e},o=(0,b.jC)(t,n,a);try{await r(o),d((0,x.t5)("Successfully modified collection"))}catch(e){d((0,x.Vo)(e))}l()},C=async()=>{if(t&&void 0!==a){let e=(0,b.qe)(t,a);try{await r(e),d((0,x.t5)("Successfully deleted collection"))}catch(e){d((0,x.Vo)(e))}l(),h()}};return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(g.ZP,{isOpen:o,onClose:l,description:"Collections are an array of objects that describe the Dataset's collections. Provide additional context to this collection by filling out the fields below.",header:(0,n.jsx)(g.zR,{title:"Collection Name: ".concat(null==i?void 0:i.name)}),footer:(0,n.jsx)(g.Gn,{onClose:l,onDelete:m,formId:j.e}),children:(0,n.jsx)(j.Z,{values:i,onSubmit:p,dataType:"collection",showDataCategories:!1})}),(0,n.jsx)(s.cVQ,{isOpen:u,onClose:h,onConfirm:C,title:"Delete Collection",message:(0,n.jsxs)(s.xvT,{children:["You are about to permanently delete the collection named"," ",(0,n.jsx)(s.xvT,{color:"complimentary.500",as:"span",fontWeight:"bold",children:null==i?void 0:i.name})," ","from this dataset. Are you sure you would like to continue?"]})})]})};let v=(0,o.Cl)(),y=()=>(0,n.jsx)(s.gCW,{mt:6,p:10,spacing:4,borderRadius:"base",maxW:"70%","data-testid":"no-results-notice",alignSelf:"center",margin:"auto",textAlign:"center",children:(0,n.jsx)(s.gCW,{children:(0,n.jsx)(s.xvT,{fontSize:"md",fontWeight:"600",children:"No collections found."})})});var w=()=>{let e=(0,a.useRouter)(),t=decodeURIComponent(e.query.datasetId),{isLoading:i,data:x}=(0,p.oM)(t),g=(0,c.useMemo)(()=>(null==x?void 0:x.collections)||[],[x]),[f,j]=(0,c.useState)(!1),[b,w]=(0,c.useState)(),[R,k]=(0,c.useState)(),N=(0,c.useMemo)(()=>[v.accessor(e=>e.name,{id:"name",cell:e=>(0,n.jsx)(m.G3,{value:e.getValue(),fontWeight:"semibold"}),header:e=>(0,n.jsx)(m.Rr,{value:"Collection Name",...e}),size:180}),v.accessor(e=>e.description,{id:"description",cell:e=>(0,n.jsx)(m.G3,{value:e.getValue(),cellProps:e}),header:e=>(0,n.jsx)(m.Rr,{value:"Description",...e}),size:300,meta:{showHeaderMenu:!0}}),v.display({id:"actions",header:"Actions",cell:e=>{let{row:t}=e,i=t.original;return(0,n.jsx)(s.Ugi,{spacing:0,"data-testid":"collection-".concat(i.name),children:(0,n.jsx)(s.wpx,{size:"small",icon:(0,n.jsx)(s.dY8,{}),onClick:()=>{w(i),j(!0)},children:"Edit"})})},meta:{disableRowClick:!0}})],[]),I=(0,c.useMemo)(()=>R?g.filter(e=>e.name.toLowerCase().includes(R.toLowerCase())):g,[g,R]),M=(0,l.b7)({getCoreRowModel:(0,o.sC)(),getFilteredRowModel:(0,o.vL)(),getSortedRowModel:(0,o.tj)(),columns:N,data:I,columnResizeMode:"onChange"}),T=(0,c.useMemo)(()=>[{title:"All datasets",href:d.$m},{title:t,icon:h.Y[1]}],[t]);return(0,n.jsxs)(r.Z,{title:"Dataset - ".concat(t),children:[(0,n.jsx)(u.Z,{heading:"Datasets",breadcrumbItems:T}),i?(0,n.jsx)(m.I4,{rowHeight:36,numRows:15}):(0,n.jsxs)(s.xuv,{"data-testid":"collections-table",children:[(0,n.jsx)(m.Q$,{children:(0,n.jsx)(m.HO,{globalFilter:R,setGlobalFilter:k,placeholder:"Search",testid:"collections-search"})}),(0,n.jsx)(m.ZK,{tableInstance:M,emptyTableNotice:(0,n.jsx)(y,{}),onRowClick:i=>{e.push({pathname:d.RF,query:{datasetId:encodeURIComponent(t),collectionName:encodeURIComponent(i.name)}})}})]}),x&&b&&(0,n.jsx)(C,{dataset:x,collection:b,isOpen:f,onClose:()=>j(!1)})]})}}},function(e){e.O(0,[9729,9226,2888,9774,179],function(){return e(e.s=33187)}),_N_E=e.O()}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8538],{73846:function(e,t,a){(window.__NEXT_P=window.__NEXT_P||[]).push(["/dataset/new",function(){return a(17294)}])},17294:function(e,t,a){"use strict";a.r(t),a.d(t,{default:function(){return E}});var r=a(24246),s=a(96306),n=a(27378),l=a(77213),i=a(77830),o=a(58754),u=a(34090),d=a(86677),c=a(16125),f=a(55484),h=a(25980),y=a(40324),p=a(812),m=a(58452),_=a(46628),b=a(83265),g=a(32885),x=a(21910),j=a(20386);let v=e=>!("system_type"in e),w={url:"",classify:!1,classifyConfirmed:!1},C=f.Ry().shape({url:f.Z_().required().label("Database URL"),classify:f.O7(),classifyConfirmed:f.O7().when(["url","classify"],{is:(e,t)=>e&&t,then:()=>f.O7().equals([!0])})});var k=()=>{let[e,{isLoading:t}]=(0,j.pR)(),[a,{isLoading:n}]=(0,j.IR)(),[l,{isLoading:o}]=(0,g.Du)(),f=t||n||o,k=(0,s.pmc)(),O=(0,d.useRouter)(),D=(0,h.hz)(),S=(0,c.I0)(),T=async t=>{var a;let r=await e({organization_key:b.Av,generate:{config:{connection_string:t.url},target:x.GC.DB,type:x.j.DATASETS}});if((0,p.D4)(r))return{error:(0,p.e$)(r.error)};let s=(null!==(a=r.data.generate_results)&&void 0!==a?a:[]).filter(v);return s&&s.length>0?{datasets:s}:{error:"Unable to generate a dataset with this connection."}},A=async e=>{let t=await a(e);return(0,p.D4)(t)?{error:(0,p.e$)(t.error)}:{dataset:t.data}},E=async e=>{let{values:t,datasets:a}=e,r=await l({dataset_schemas:a.map(e=>{let{name:t,fides_key:a}=e;return{fides_key:a,name:t}}),schema_config:{organization_key:b.Av,generate:{config:{connection_string:t.url},target:x.GC.DB,type:x.j.DATASETS}}});return(0,p.D4)(r)?{error:(0,p.e$)(r.error)}:{classifyInstances:r.data.classify_instances}},P=async e=>{var t;let a=await T(e);if("error"in a){k((0,_.Vo)(a.error));return}let r=await Promise.all(a.datasets.map(e=>A(e))),s=null!==(t=r.find(e=>"error"in e))&&void 0!==t?t:r[0];if("error"in s){k((0,_.Vo)(s.error));return}if(!e.classify){k((0,_.t5)("Generated ".concat(s.dataset.name," dataset"))),O.push({pathname:i.o5,query:{datasetId:s.dataset.fides_key}});return}let n=await E({values:e,datasets:a.datasets});if("error"in n){k((0,_.Vo)(n.error));return}k((0,_.t5)("Generate and classify are now in progress")),S((0,j.Zl)(s.dataset.fides_key)),O.push("/dataset")};return(0,r.jsx)(u.J9,{initialValues:{...w,classify:D.plus},validationSchema:C,onSubmit:P,validateOnChange:!1,validateOnBlur:!1,children:e=>{let{isSubmitting:t,errors:a,values:n,submitForm:l,resetForm:i,setFieldValue:o}=e;return(0,r.jsxs)(u.l0,{children:[(0,r.jsxs)(s.gCW,{spacing:8,align:"left",children:[(0,r.jsx)(s.xvT,{size:"sm",color:"gray.700",children:"Connect to a database using the connection URL. You may have received this URL from a colleague or your Ethyca developer support engineer."}),(0,r.jsx)(s.xuv,{children:(0,r.jsx)(y.j0,{name:"url",label:"Database URL"})}),D.plus?(0,r.jsx)(y.w8,{name:"classify",label:"Classify dataset",tooltip:"Use Fides Classify to suggest labels based on your data."}):null,(0,r.jsx)(s.xuv,{children:(0,r.jsx)(s.wpx,{type:"primary",htmlType:"submit",loading:t||f,disabled:t||f,"data-testid":"create-dataset-btn",children:"Generate dataset"})})]}),(0,r.jsx)(m.Z,{title:"Generate and classify this dataset",message:"You have chosen to generate and classify this dataset. This process may take several minutes. In the meantime you can continue using Fides. You will receive a notification when the process is complete.",isOpen:void 0!==a.classifyConfirmed,onClose:()=>{i({values:{...n,classifyConfirmed:!1}})},onConfirm:()=>{o("classifyConfirmed",!0),setTimeout(()=>{l()},0)}})]})}})},O=a(66527),D=a(41841),S=a(41207),T=a(39715),A=()=>{let[e]=(0,j.IR)(),[t,a]=(0,n.useState)(!0),[l,o]=(0,n.useState)(!1),[u,c]=(0,n.useState)(!1),f=(0,n.useRef)(null),h=(0,d.useRouter)(),y=(0,s.pmc)(),{errorAlert:m}=(0,D.VY)(),[b,g]=(0,n.useState)(void 0),x=e=>{O.ZP.load(e,{json:!0}),g(void 0)},v=async t=>{let a;return"object"==typeof t&&null!=t&&"dataset"in t&&Array.isArray(t.dataset)?[a]=t.dataset:Array.isArray(t)?[a]=t:a=t,e(a)},w=e=>{y((0,_.t5)("Successfully loaded new dataset YAML")),(0,j.Zl)(e.fides_key),h.push({pathname:i.o5,query:{datasetId:e.fides_key}})},C=async()=>{o(!0);let e=f.current.getValue(),t=O.ZP.load(e,{json:!0}),a=await v(t);(0,p.D4)(a)?y((0,_.Vo)((0,p.e$)(a.error))):"data"in a&&w(a.data),o(!1)};return(0,r.jsxs)(s.kCb,{gap:"97px",children:[(0,r.jsxs)(s.xuv,{w:"75%",children:[(0,r.jsx)(s.xuv,{color:"gray.700",fontSize:"14px",mb:4,children:"Get started creating your first dataset by pasting your dataset yaml below! You may have received this yaml from a colleague or your Ethyca developer support engineer."}),(0,r.jsxs)(s.gCW,{align:"stretch",children:[(0,r.jsx)(s.izJ,{color:"gray.100"}),(0,r.jsx)(S.M,{defaultLanguage:"yaml",height:"calc(100vh - 515px)",onChange:e=>{try{c(!0),x(e),a(!!(!e||""===e.trim()))}catch(e){(0,S.F)(e)?g(e):m("Could not parse the supplied YAML")}},onMount:e=>{f.current=e,f.current.focus()},options:{fontFamily:"Menlo",fontSize:13,minimap:{enabled:!0}},theme:"light"}),(0,r.jsx)(s.izJ,{color:"gray.100"}),(0,r.jsx)(s.wpx,{type:"primary",disabled:t||!!b||l,loading:l,onClick:C,htmlType:"submit",className:"mt-6 w-fit",children:"Create dataset"})]})]}),(0,r.jsx)(s.xuv,{children:u&&(t||b)&&(0,r.jsx)(T.Z,{isEmptyState:t,yamlError:b})})]})},E=()=>{let[e,t]=(0,n.useState)(null);return(0,r.jsxs)(l.Z,{title:"Create New Dataset",children:[(0,r.jsx)(o.Z,{heading:"Datasets",breadcrumbItems:[{title:"All datasets",href:i.$m},{title:"Create new"}]}),(0,r.jsxs)(s.Kqy,{spacing:8,children:[(0,r.jsxs)(s.xuv,{children:[(0,r.jsx)(s.wpx,{onClick:()=>t("yaml"),"data-testid":"upload-yaml-btn",className:"mr-2",children:"Upload a Dataset YAML"}),(0,r.jsx)(s.wpx,{onClick:()=>t("database"),ghost:"database"===e,className:"mr-2","data-testid":"connect-db-btn",children:"Connect to a database"})]}),"database"===e&&(0,r.jsx)(s.xuv,{w:{base:"100%",lg:"50%"},children:(0,r.jsx)(k,{})}),"yaml"===e&&(0,r.jsx)(s.xuv,{w:{base:"100%"},children:(0,r.jsx)(A,{})})]})]})}},76737:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var a in t)Object.defineProperty(e,a,{enumerable:!0,get:t[a]})}(t,{default:function(){return i},noSSR:function(){return l}});let r=a(51538);a(24246),a(27378);let s=r._(a(21887));function n(e){return{default:(null==e?void 0:e.default)||e}}function l(e,t){return delete t.webpack,delete t.modules,e(t)}function i(e,t){let a=s.default,r={loading:e=>{let{error:t,isLoading:a,pastDelay:r}=e;return null}};e instanceof Promise?r.loader=()=>e:"function"==typeof e?r.loader=e:"object"==typeof e&&(r={...r,...e});let i=(r={...r,...t}).loader;return(r.loadableGenerated&&(r={...r,...r.loadableGenerated},delete r.loadableGenerated),"boolean"!=typeof r.ssr||r.ssr)?a({...r,loader:()=>null!=i?i().then(n):Promise.resolve(n(()=>null))}):(delete r.webpack,delete r.modules,l(a,r))}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},28438:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"LoadableContext",{enumerable:!0,get:function(){return r}});let r=a(51538)._(a(27378)).default.createContext(null)},21887:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return f}});let r=a(51538)._(a(27378)),s=a(28438),n=[],l=[],i=!1;function o(e){let t=e(),a={loading:!0,loaded:null,error:null};return a.promise=t.then(e=>(a.loading=!1,a.loaded=e,e)).catch(e=>{throw a.loading=!1,a.error=e,e}),a}class u{promise(){return this._res.promise}retry(){this._clearTimeouts(),this._res=this._loadFn(this._opts.loader),this._state={pastDelay:!1,timedOut:!1};let{_res:e,_opts:t}=this;e.loading&&("number"==typeof t.delay&&(0===t.delay?this._state.pastDelay=!0:this._delay=setTimeout(()=>{this._update({pastDelay:!0})},t.delay)),"number"==typeof t.timeout&&(this._timeout=setTimeout(()=>{this._update({timedOut:!0})},t.timeout))),this._res.promise.then(()=>{this._update({}),this._clearTimeouts()}).catch(e=>{this._update({}),this._clearTimeouts()}),this._update({})}_update(e){this._state={...this._state,error:this._res.error,loaded:this._res.loaded,loading:this._res.loading,...e},this._callbacks.forEach(e=>e())}_clearTimeouts(){clearTimeout(this._delay),clearTimeout(this._timeout)}getCurrentValue(){return this._state}subscribe(e){return this._callbacks.add(e),()=>{this._callbacks.delete(e)}}constructor(e,t){this._loadFn=e,this._opts=t,this._callbacks=new Set,this._delay=null,this._timeout=null,this.retry()}}function d(e){return function(e,t){let a=Object.assign({loader:null,loading:null,delay:200,timeout:null,webpack:null,modules:null},t),n=null;function o(){if(!n){let t=new u(e,a);n={getCurrentValue:t.getCurrentValue.bind(t),subscribe:t.subscribe.bind(t),retry:t.retry.bind(t),promise:t.promise.bind(t)}}return n.promise()}if(!i){let e=a.webpack?a.webpack():a.modules;e&&l.push(t=>{for(let a of e)if(t.includes(a))return o()})}function d(e,t){!function(){o();let e=r.default.useContext(s.LoadableContext);e&&Array.isArray(a.modules)&&a.modules.forEach(t=>{e(t)})}();let l=r.default.useSyncExternalStore(n.subscribe,n.getCurrentValue,n.getCurrentValue);return r.default.useImperativeHandle(t,()=>({retry:n.retry}),[]),r.default.useMemo(()=>{var t;return l.loading||l.error?r.default.createElement(a.loading,{isLoading:l.loading,pastDelay:l.pastDelay,timedOut:l.timedOut,error:l.error,retry:n.retry}):l.loaded?r.default.createElement((t=l.loaded)&&t.default?t.default:t,e):null},[e,l])}return d.preload=()=>o(),d.displayName="LoadableComponent",r.default.forwardRef(d)}(o,e)}function c(e,t){let a=[];for(;e.length;){let r=e.pop();a.push(r(t))}return Promise.all(a).then(()=>{if(e.length)return c(e,t)})}d.preloadAll=()=>new Promise((e,t)=>{c(n).then(e,t)}),d.preloadReady=e=>(void 0===e&&(e=[]),new Promise(t=>{let a=()=>(i=!0,t());c(l,e).then(a,a)})),window.__NEXT_PRELOADREADY=d.preloadReady;let f=d},65218:function(e,t,a){e.exports=a(76737)}},function(e){e.O(0,[431,6527,1841,2751,2888,9774,179],function(){return e(e.s=73846)}),_N_E=e.O()}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8473],{64902:function(e,t,a){(window.__NEXT_P=window.__NEXT_P||[]).push(["/dataset",function(){return a(91949)}])},79806:function(e,t,a){"use strict";a.d(t,{Gn:function(){return r},zR:function(){return n}});var s=a(24246),l=a(96306),i=a(56358);let n=e=>{let{title:t}=e;return(0,s.jsx)(l.OXI,{py:0,display:"flex",alignItems:"flex-start",children:(0,s.jsx)(l.xvT,{mr:"2",color:"gray.700",fontSize:"lg",lineHeight:1.8,children:t})})},r=e=>{let{onDelete:t,onEditYaml:a,formId:n,isSaving:r}=e;return(0,s.jsxs)(l.zeN,{justifyContent:"space-between",children:[t?(0,s.jsx)(l.wpx,{"aria-label":"delete",icon:(0,s.jsx)(i.q,{fontSize:"small"}),onClick:t,"data-testid":"delete-btn"}):null,(0,s.jsxs)("div",{className:"flex gap-2",children:[a&&(0,s.jsx)(l.wpx,{onClick:a,"data-testid":"edit-yaml-btn",children:"Edit YAML"}),(0,s.jsx)(l.wpx,{htmlType:"submit",type:"primary","data-testid":"save-btn",form:n,loading:r,children:"Save"})]})]})};t.ZP=e=>{let{header:t,description:a,isOpen:i,onClose:n,children:r,footer:o}=e;return(0,s.jsxs)(l.dys,{placement:"right",isOpen:i,onClose:n,size:"md",children:[(0,s.jsx)(l.P1B,{}),(0,s.jsxs)(l.scA,{"data-testid":"edit-drawer-content",py:2,children:[(0,s.jsxs)(l.xuv,{display:"flex",justifyContent:"space-between",alignItems:"top",mr:2,py:2,gap:2,children:[(0,s.jsx)(l.xuv,{flex:1,minH:8,children:t}),(0,s.jsx)(l.xuv,{display:"flex",justifyContent:"flex-end",mr:2,children:(0,s.jsx)(l.wpx,{"aria-label":"Close editor",onClick:n,"data-testid":"close-drawer-btn",icon:(0,s.jsx)(l.Two,{fontSize:"smaller"})})})]}),(0,s.jsxs)(l.Ng0,{pt:1,children:[a?(0,s.jsx)(l.xvT,{fontSize:"sm",mb:4,color:"gray.600",children:a}):null,r]}),o]})]})}},56358:function(e,t,a){"use strict";a.d(t,{q:function(){return l}});var s=a(24246);let l=(0,a(96306).IUT)({displayName:"TrashCanOutlineIcon",viewBox:"0 0 11 12",path:(0,s.jsx)("path",{d:"M4.5166 1.60859L4.1084 2.21875H7.22363L6.81543 1.60859C6.7832 1.56133 6.72949 1.53125 6.67148 1.53125H4.6584C4.60039 1.53125 4.54668 1.55918 4.51445 1.60859H4.5166ZM7.6748 1.03711L8.46328 2.21875H8.75977H9.79102H9.96289C10.2486 2.21875 10.4785 2.44863 10.4785 2.73438C10.4785 3.02012 10.2486 3.25 9.96289 3.25H9.79102V9.78125C9.79102 10.7309 9.02188 11.5 8.07227 11.5H3.25977C2.31016 11.5 1.54102 10.7309 1.54102 9.78125V3.25H1.36914C1.0834 3.25 0.853516 3.02012 0.853516 2.73438C0.853516 2.44863 1.0834 2.21875 1.36914 2.21875H1.54102H2.57227H2.86875L3.65723 1.03496C3.88066 0.701953 4.25664 0.5 4.6584 0.5H6.67148C7.07324 0.5 7.44922 0.701953 7.67266 1.03496L7.6748 1.03711ZM2.57227 3.25V9.78125C2.57227 10.1615 2.87949 10.4688 3.25977 10.4688H8.07227C8.45254 10.4688 8.75977 10.1615 8.75977 9.78125V3.25H2.57227ZM4.29102 4.625V9.09375C4.29102 9.28281 4.13633 9.4375 3.94727 9.4375C3.7582 9.4375 3.60352 9.28281 3.60352 9.09375V4.625C3.60352 4.43594 3.7582 4.28125 3.94727 4.28125C4.13633 4.28125 4.29102 4.43594 4.29102 4.625ZM6.00977 4.625V9.09375C6.00977 9.28281 5.85508 9.4375 5.66602 9.4375C5.47695 9.4375 5.32227 9.28281 5.32227 9.09375V4.625C5.32227 4.43594 5.47695 4.28125 5.66602 4.28125C5.85508 4.28125 6.00977 4.43594 6.00977 4.625ZM7.72852 4.625V9.09375C7.72852 9.28281 7.57383 9.4375 7.38477 9.4375C7.1957 9.4375 7.04102 9.28281 7.04102 9.09375V4.625C7.04102 4.43594 7.1957 4.28125 7.38477 4.28125C7.57383 4.28125 7.72852 4.43594 7.72852 4.625Z",fill:"currentColor"})})},84306:function(e,t,a){"use strict";a.d(t,{V:function(){return i}});var s=a(24246),l=a(96306);let i=()=>{let e=(0,l.pmc)();return{errorAlert:(t,a,i)=>{let n={...i,position:(null==i?void 0:i.position)||"top",render:e=>{let{onClose:i}=e;return(0,s.jsxs)(l.bZj,{alignItems:"normal",status:"error","data-testid":"error-alert",children:[(0,s.jsx)(l.zMQ,{}),(0,s.jsxs)(l.xuv,{children:[a&&(0,s.jsx)(l.CdC,{children:a}),(0,s.jsx)(l.XaZ,{children:t})]}),(0,s.jsx)(l.PZ7,{onClick:i,position:"relative",right:0,size:"sm",top:-1})]})}};(null==i?void 0:i.id)&&e.isActive(i.id)?e.update(i.id,n):e(n)},successAlert:(t,a,i)=>{let n={...i,position:(null==i?void 0:i.position)||"top",render:e=>{let{onClose:i}=e;return(0,s.jsxs)(l.bZj,{alignItems:"normal",status:"success",variant:"subtle","data-testid":"success-alert",children:[(0,s.jsx)(l.zMQ,{}),(0,s.jsxs)(l.xuv,{children:[a&&(0,s.jsx)(l.CdC,{children:a}),(0,s.jsx)(l.XaZ,{children:t})]}),(0,s.jsx)(l.PZ7,{onClick:i,position:"relative",right:0,size:"sm",top:-1})]})}};(null==i?void 0:i.id)&&e.isActive(i.id)?e.update(i.id,n):e(n)}}}},8133:function(e,t,a){"use strict";var s=a(24246),l=a(96306);t.Z=e=>{let{title:t,children:a,isOpen:i,onClose:n,modalContentProps:r,showCloseButton:o=!1,footer:d,...u}=e;return(0,s.jsxs)(l.u_l,{isOpen:i,onClose:n,isCentered:!0,scrollBehavior:"inside",size:"xl",id:"add-modal",...u,children:[(0,s.jsx)(l.ZAr,{}),(0,s.jsxs)(l.hzk,{textAlign:"left",p:0,"data-testid":"add-modal-content",...r,children:[o&&(0,s.jsx)(l.olH,{}),(0,s.jsx)(l.xBx,{p:0,children:(0,s.jsx)(l.xuv,{backgroundColor:"gray.50",px:6,py:4,border:"1px",borderColor:"gray.200",borderTopRadius:6,display:"flex",justifyContent:"space-between",alignItems:"center",children:(0,s.jsx)(l.X6q,{as:"h3",size:"sm",children:t})})}),(0,s.jsx)(l.fef,{pb:4,overflow:"auto",children:a}),d&&(0,s.jsx)(l.mzw,{children:d})]})]})}},56026:function(e,t,a){"use strict";a.d(t,{QL:function(){return i},du:function(){return l},tz:function(){return s}});let s={name:{tooltip:"A UI-friendly label for the Dataset."},description:{tooltip:"A human-readable description of the Dataset."},data_categories:{tooltip:"Arrays of Data Category resources, identified by fides_key, that apply to all collections in the Dataset."}},l={description:{tooltip:"A human-readable description of the collection."},data_categories:{tooltip:"Arrays of Data Category resources, identified by fides_key, that apply to all fields in the collection."}},i={description:{tooltip:"A human-readable description of the field."},data_categories:{tooltip:"Arrays of Data Category resources, identified by fides_key, that apply to this field."}}},91949:function(e,t,a){"use strict";a.r(t),a.d(t,{default:function(){return N}});var s=a(24246),l=a(92222),i=a(59003),n=a(96306),r=a(79894),o=a.n(r),d=a(86677),u=a(27378),c=a(16125),p=a(32885),h=a(21910);let f=e=>{let{resourceType:t,fidesKeys:a,skip:s}=e,[l,i]=(0,u.useState)(!0),n=(0,p.Wm)({resource_type:t,fides_keys:a},{skip:s,pollingInterval:l?3e3:void 0}),r=!!n.data&&n.data.every(e=>e.status===h.Wg.COMPLETE||e.status===h.Wg.FAILED||e.status===h.Wg.REVIEWED);return(0,u.useEffect)(()=>{r&&i(!1)},[r]),{...n,isClassificationFinished:r}};var m=a(25980),x=a(77213),g=a(77830),y=a(58754),j=a(47935),b=a(20386),C=a(79806),_=a(812),v=a(46628),w=a(8133),k=a(84306),S=a(66527),z=a(41207),A=a(39715),O=a(41966),P=e=>{let{data:t=[],isSubmitting:a=!1,onCancel:l,onSubmit:i,disabled:r,isLoading:o,onChange:d}=e,c=(0,u.useRef)(null),{errorAlert:p}=(0,k.V)(),h=t.length>0?S.ZP.dump(t):void 0,[f,m]=(0,u.useState)(void 0),[x,g]=(0,u.useState)(!1),[y,j]=(0,u.useState)(!h),{data:b}=(0,O.LH)({minimal:!0}),[C,_]=(0,u.useState)([]),v=e=>{S.ZP.load(e,{json:!0}),m(void 0)},w=()=>{if(b&&b.length){let e=c.current.getValue();_(b.filter(t=>e.includes("fides_key: ".concat(t.fides_key,"\n"))).map(e=>e.fides_key))}},P=r||y||!x||!!f||a;return(0,s.jsxs)(n.kCb,{gap:"97px",children:[(0,s.jsxs)(n.gCW,{align:"stretch",w:"800px",children:[(0,s.jsx)(z.M,{defaultLanguage:"yaml",defaultValue:h,height:"calc(100vh - 526px)",onChange:e=>{try{g(!0),v(e),j(!e||""===e.trim());let t=S.ZP.load(e||"",{json:!0});Array.isArray(t)?d(t[0]):d(t),w()}catch(e){(0,z.F)(e)?m(e):p("Could not parse the supplied YAML")}},onMount:(e,t)=>{c.current=e,c.current.focus()},options:{fontFamily:"Menlo",fontSize:13,minimap:{enabled:!1},readOnly:r},theme:"light"}),C.length>0?(0,s.jsxs)(n.xvT,{children:["You are about to overwrite the dataset",C.length>1?"s":""," ",C.map((e,t)=>{let a=t===C.length-1;return(0,s.jsxs)(u.Fragment,{children:[(0,s.jsx)(n.xvT,{color:"complimentary.500",as:"span",fontWeight:"bold",children:e}),a?".":", "]},e)})]}):null,(0,s.jsx)(n.mzw,{children:(0,s.jsxs)("div",{className:"flex w-full justify-end gap-4",children:[l&&(0,s.jsx)(n.wpx,{onClick:l,"data-testid":"cancel-btn",disabled:o,children:"Cancel"}),(0,s.jsx)(n.wpx,{type:"primary",onClick:()=>{null==i||i(),null==l||l()},"data-testid":"continue-btn",disabled:P,loading:a||o,children:"Confirm"})]})})]}),x&&(y||f)&&(0,s.jsx)(A.Z,{isEmptyState:y,yamlError:f})]})},D=e=>{let{isOpen:t,onClose:a,title:l,isLoading:i,returnFocusOnClose:r,isDatasetSelected:o,dataset:d,onChange:u,onSubmit:c}=e;return(0,s.jsx)(w.Z,{isOpen:t,onClose:a,size:"3xl",returnFocusOnClose:null==r||r,isCentered:!0,title:null!=l?l:"Edit Dataset",children:(0,s.jsx)(n.xuv,{"data-testid":"yaml-editor-section",children:(0,s.jsx)(P,{data:d?[d]:[],onSubmit:c,isSubmitting:!1,disabled:o,onChange:u,isLoading:i,onCancel:a})})})},E=a(34090),T=a(40324),M=a(56026);let R="edit-field-drawer";var V=e=>{var t,a;let{values:l,onSubmit:i}=e,r={name:null!==(t=l.name)&&void 0!==t?t:"",description:null!==(a=l.description)&&void 0!==a?a:"",data_categories:l.data_categories};return(0,s.jsx)(E.J9,{initialValues:r,onSubmit:e=>{i({...e,data_categories:l.data_categories||[]})},children:(0,s.jsx)(E.l0,{id:R,children:(0,s.jsxs)(n.Kqy,{spacing:"3",children:[(0,s.jsx)(T.j0,{name:"name",label:"Name",tooltip:M.tz.name.tooltip,"data-testid":"name-input",variant:"block"}),(0,s.jsx)(T.j0,{name:"description",label:"Description",tooltip:M.tz.description.tooltip,"data-testid":"description-input",variant:"block"})]})})})},Z=e=>{let{dataset:t,isOpen:a,onClose:l}=e,[i,{isLoading:r}]=(0,b.TG)(),[o]=(0,b.QY)(),c=(0,d.useRouter)(),p=(0,n.pmc)(),{isOpen:h,onOpen:f,onClose:m}=(0,n.qY0)(),{isOpen:x,onOpen:g,onClose:y}=(0,n.qY0)(),[j,w]=(0,u.useState)(void 0),k=async e=>{let a={...t,...e};try{let e=await i(a);(0,_.D4)(e)?p((0,v.Vo)((0,_.e$)(e.error))):p((0,v.t5)("Successfully modified dataset"))}catch(e){p((0,v.Vo)(e))}l()},S=async()=>{let{fides_key:e}=t,a=await o(e);(0,_.D4)(a)?p((0,v.Vo)((0,_.e$)(a.error))):p((0,v.t5)("Successfully deleted dataset")),(0,b.Zl)(void 0),c.push("/dataset"),l(),m()};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)(C.ZP,{isOpen:a,onClose:l,description:"A Dataset takes a database schema (tables and columns) and adds Fides privacy categorizations. Provide additional context to this dataset by filling out the fields below.",header:(0,s.jsx)(C.zR,{title:"Edit: ".concat(null==t?void 0:t.name)}),footer:(0,s.jsx)(C.Gn,{onClose:l,onDelete:f,onEditYaml:()=>g(),formId:R}),children:[(0,s.jsx)(D,{isOpen:x,onClose:y,onChange:w,onSubmit:()=>k(j),title:"Edit dataset YAML",isLoading:r,isDatasetSelected:!1,dataset:t}),(0,s.jsx)(V,{values:t,onSubmit:k})]}),(0,s.jsx)(n.cVQ,{isOpen:h,onClose:m,onConfirm:S,title:"Delete Dataset",message:(0,s.jsxs)(n.xvT,{children:["You are about to permanently delete the dataset named"," ",(0,s.jsx)(n.xvT,{color:"complimentary.500",as:"span",fontWeight:"bold",children:null==t?void 0:t.name}),". Are you sure you would like to continue?"]})})]})};let H=(0,l.Cl)(),L={items:[],total:0,page:1,size:25,pages:1},I=()=>(0,s.jsx)(n.gCW,{mt:6,p:10,spacing:4,borderRadius:"base",maxW:"70%","data-testid":"no-results-notice",alignSelf:"center",margin:"auto",textAlign:"center",children:(0,s.jsxs)(n.gCW,{children:[(0,s.jsx)(n.xvT,{fontSize:"md",fontWeight:"600",children:"No datasets found."}),(0,s.jsx)(n.xvT,{fontSize:"sm",children:'Click "Create new dataset" to add your first dataset to Fides.'})]})});var N=()=>{let e=(0,c.I0)(),t=(0,d.useRouter)(),[a,r]=(0,u.useState)(!1),[p,C]=(0,u.useState)(),{PAGE_SIZES:_,pageSize:v,setPageSize:w,onPreviousPageClick:k,isPreviousPageDisabled:S,onNextPageClick:z,isNextPageDisabled:A,startRange:O,endRange:P,pageIndex:D,setTotalPages:E,resetPageIndexToDefault:T}=(0,j.oi)(),[M,R]=(0,u.useState)(),V=(0,u.useCallback)(e=>{T(),R(e)},[T,R]),{data:N,isLoading:F,isFetching:W}=(0,b.rt)({page:D,size:v,search:M,exclude_saas_datasets:!0}),{items:Y,total:G,pages:q}=(0,u.useMemo)(()=>null!=N?N:L,[N]);(0,u.useEffect)(()=>{E(q)},[q,E]);let X=(0,u.useCallback)(a=>{e((0,b.Zl)(a.fides_key)),t.push({pathname:g.o5,query:{datasetId:encodeURIComponent(a.fides_key)}})},[e,t]),B=(0,m.hz)();f({resourceType:h.j.DATASETS,skip:!B.plus});let Q=(0,u.useMemo)(()=>[H.accessor(e=>e.name,{id:"name",cell:e=>(0,s.jsx)(j.G3,{value:e.getValue(),fontWeight:"semibold"}),header:e=>(0,s.jsx)(j.Rr,{value:"Dataset Name",...e}),size:180}),H.accessor(e=>e.fides_key,{id:"fides_key",cell:e=>(0,s.jsx)(j.G3,{value:e.getValue()}),header:e=>(0,s.jsx)(j.Rr,{value:"Fides Key",...e}),size:150}),H.accessor(e=>e.description,{id:"description",cell:e=>(0,s.jsx)(j.G3,{value:e.getValue(),cellProps:e}),header:e=>(0,s.jsx)(j.Rr,{value:"Description",...e}),size:300,meta:{showHeaderMenu:!0}}),H.display({id:"actions",header:"Actions",cell:e=>{let{row:t}=e,a=t.original;return(0,s.jsx)(n.Ugi,{spacing:0,"data-testid":"dataset-".concat(a.fides_key),children:(0,s.jsx)(n.wpx,{size:"small",icon:(0,s.jsx)(n.dY8,{}),onClick:()=>{C(a),r(!0)},children:"Edit"})})},meta:{disableRowClick:!0}})].filter(Boolean),[]),U=(0,i.b7)({getCoreRowModel:(0,l.sC)(),getFilteredRowModel:(0,l.vL)(),getSortedRowModel:(0,l.tj)(),columns:Q,data:Y,columnResizeMode:"onChange"});return(0,s.jsx)(x.Z,{title:"Datasets",children:(0,s.jsxs)(n.xuv,{"data-testid":"system-management",children:[(0,s.jsx)(y.Z,{heading:"Datasets",breadcrumbItems:[{title:"All datasets"}],rightContent:(0,s.jsx)(o(),{href:"/dataset/new",passHref:!0,legacyBehavior:!0,children:(0,s.jsx)(n.wpx,{"data-testid":"create-dataset-btn",children:"+ Add dataset"})})}),F?(0,s.jsx)(j.I4,{rowHeight:36,numRows:15}):(0,s.jsxs)(n.xuv,{"data-testid":"dataset-table",children:[(0,s.jsx)(j.Q$,{children:(0,s.jsx)(j.HO,{globalFilter:M,setGlobalFilter:V,placeholder:"Search",testid:"dataset-search"})}),(0,s.jsx)(j.ZK,{tableInstance:U,emptyTableNotice:(0,s.jsx)(I,{}),onRowClick:X})]}),(0,s.jsx)(j.s8,{totalRows:G||0,pageSizes:_,setPageSize:w,onPreviousPageClick:k,isPreviousPageDisabled:S||W,onNextPageClick:z,isNextPageDisabled:A||W,startRange:O,endRange:P}),(0,s.jsx)(Z,{dataset:p,isOpen:a,onClose:()=>{C(void 0),r(!1)}})]})})}},76737:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var a in t)Object.defineProperty(e,a,{enumerable:!0,get:t[a]})}(t,{default:function(){return r},noSSR:function(){return n}});let s=a(51538);a(24246),a(27378);let l=s._(a(21887));function i(e){return{default:(null==e?void 0:e.default)||e}}function n(e,t){return delete t.webpack,delete t.modules,e(t)}function r(e,t){let a=l.default,s={loading:e=>{let{error:t,isLoading:a,pastDelay:s}=e;return null}};e instanceof Promise?s.loader=()=>e:"function"==typeof e?s.loader=e:"object"==typeof e&&(s={...s,...e});let r=(s={...s,...t}).loader;return(s.loadableGenerated&&(s={...s,...s.loadableGenerated},delete s.loadableGenerated),"boolean"!=typeof s.ssr||s.ssr)?a({...s,loader:()=>null!=r?r().then(i):Promise.resolve(i(()=>null))}):(delete s.webpack,delete s.modules,n(a,s))}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},28438:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"LoadableContext",{enumerable:!0,get:function(){return s}});let s=a(51538)._(a(27378)).default.createContext(null)},21887:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return p}});let s=a(51538)._(a(27378)),l=a(28438),i=[],n=[],r=!1;function o(e){let t=e(),a={loading:!0,loaded:null,error:null};return a.promise=t.then(e=>(a.loading=!1,a.loaded=e,e)).catch(e=>{throw a.loading=!1,a.error=e,e}),a}class d{promise(){return this._res.promise}retry(){this._clearTimeouts(),this._res=this._loadFn(this._opts.loader),this._state={pastDelay:!1,timedOut:!1};let{_res:e,_opts:t}=this;e.loading&&("number"==typeof t.delay&&(0===t.delay?this._state.pastDelay=!0:this._delay=setTimeout(()=>{this._update({pastDelay:!0})},t.delay)),"number"==typeof t.timeout&&(this._timeout=setTimeout(()=>{this._update({timedOut:!0})},t.timeout))),this._res.promise.then(()=>{this._update({}),this._clearTimeouts()}).catch(e=>{this._update({}),this._clearTimeouts()}),this._update({})}_update(e){this._state={...this._state,error:this._res.error,loaded:this._res.loaded,loading:this._res.loading,...e},this._callbacks.forEach(e=>e())}_clearTimeouts(){clearTimeout(this._delay),clearTimeout(this._timeout)}getCurrentValue(){return this._state}subscribe(e){return this._callbacks.add(e),()=>{this._callbacks.delete(e)}}constructor(e,t){this._loadFn=e,this._opts=t,this._callbacks=new Set,this._delay=null,this._timeout=null,this.retry()}}function u(e){return function(e,t){let a=Object.assign({loader:null,loading:null,delay:200,timeout:null,webpack:null,modules:null},t),i=null;function o(){if(!i){let t=new d(e,a);i={getCurrentValue:t.getCurrentValue.bind(t),subscribe:t.subscribe.bind(t),retry:t.retry.bind(t),promise:t.promise.bind(t)}}return i.promise()}if(!r){let e=a.webpack?a.webpack():a.modules;e&&n.push(t=>{for(let a of e)if(t.includes(a))return o()})}function u(e,t){!function(){o();let e=s.default.useContext(l.LoadableContext);e&&Array.isArray(a.modules)&&a.modules.forEach(t=>{e(t)})}();let n=s.default.useSyncExternalStore(i.subscribe,i.getCurrentValue,i.getCurrentValue);return s.default.useImperativeHandle(t,()=>({retry:i.retry}),[]),s.default.useMemo(()=>{var t;return n.loading||n.error?s.default.createElement(a.loading,{isLoading:n.loading,pastDelay:n.pastDelay,timedOut:n.timedOut,error:n.error,retry:i.retry}):n.loaded?s.default.createElement((t=n.loaded)&&t.default?t.default:t,e):null},[e,n])}return u.preload=()=>o(),u.displayName="LoadableComponent",s.default.forwardRef(u)}(o,e)}function c(e,t){let a=[];for(;e.length;){let s=e.pop();a.push(s(t))}return Promise.all(a).then(()=>{if(e.length)return c(e,t)})}u.preloadAll=()=>new Promise((e,t)=>{c(i).then(e,t)}),u.preloadReady=e=>(void 0===e&&(e=[]),new Promise(t=>{let a=()=>(r=!0,t());c(n,e).then(a,a)})),window.__NEXT_PRELOADREADY=u.preloadReady;let p=u},65218:function(e,t,a){e.exports=a(76737)}},function(e){e.O(0,[6527,2751,2888,9774,179],function(){return e(e.s=64902)}),_N_E=e.O()}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6446],{10463:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/datastore-connection/[id]",function(){return t(88228)}])},88228:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return g}});var i=t(24246),l=t(1226),s=t(96306),r=t(86677),a=t(27378),o=t(16134),d=t(41841),c=t(77830),u=t(20682),h=t(94725),f=t(58754),x=t(11274),p=t(26788),y=t(38212),v=t(50881),j=t(41337),m=()=>{let e=(0,o.T)(),{connection:n,connectionOption:t}=(0,o.C)(u.ZZ),[l,r]=(0,a.useState)(void 0),d=(0,a.useMemo)(()=>{let e=[];return(null==l?void 0:l.options)&&l.options.forEach(t=>{let l;switch(t){case p.H5.CONNECTOR_PARAMETERS:l={label:t,key:t,children:(0,i.jsx)(x.s,{})};break;case p.H5.DATASET_CONFIGURATION:l=(null==n?void 0:n.key)?{label:t,key:t,children:(0,i.jsx)(y.Z,{})}:void 0;break;case p.H5.DSR_CUSTOMIZATION:l=(null==n?void 0:n.key)?{label:t,key:t,children:(0,i.jsx)(v.Z,{})}:void 0}l&&e.push(l)}),e},[null==n?void 0:n.key,null==l?void 0:l.options]);return(0,a.useEffect)(()=>{if(t){let n=p.IM.find(e=>e.type===(null==t?void 0:t.type));n&&(r(n),e((0,u.nj)(p.Ss[2])))}return()=>{e((0,u.mc)())}},[t,e]),n&&t?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(f.Z,{heading:"Connection manager",breadcrumbItems:[{title:"All connections",href:c.JR},{title:n.name}]}),(0,i.jsx)(s.X6q,{fontSize:"md",fontWeight:"semibold",maxHeight:"40px",mb:"4px",whiteSpace:"nowrap",children:(0,i.jsxs)(s.xuv,{alignItems:"center",display:"flex",children:[(0,i.jsx)(j.Z,{data:t}),(0,i.jsx)(s.xvT,{ml:"8px",children:n.name})]})}),(0,i.jsx)(s.gCW,{alignItems:"stretch",flex:"1",gap:"18px",children:(0,i.jsx)(s.A5g,{items:d})})]}):null},_=t(
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6446],{10463:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/datastore-connection/[id]",function(){return t(88228)}])},88228:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return g}});var i=t(24246),l=t(1226),s=t(96306),r=t(86677),a=t(27378),o=t(16134),d=t(41841),c=t(77830),u=t(20682),h=t(94725),f=t(58754),x=t(11274),p=t(26788),y=t(38212),v=t(50881),j=t(41337),m=()=>{let e=(0,o.T)(),{connection:n,connectionOption:t}=(0,o.C)(u.ZZ),[l,r]=(0,a.useState)(void 0),d=(0,a.useMemo)(()=>{let e=[];return(null==l?void 0:l.options)&&l.options.forEach(t=>{let l;switch(t){case p.H5.CONNECTOR_PARAMETERS:l={label:t,key:t,children:(0,i.jsx)(x.s,{})};break;case p.H5.DATASET_CONFIGURATION:l=(null==n?void 0:n.key)?{label:t,key:t,children:(0,i.jsx)(y.Z,{})}:void 0;break;case p.H5.DSR_CUSTOMIZATION:l=(null==n?void 0:n.key)?{label:t,key:t,children:(0,i.jsx)(v.Z,{})}:void 0}l&&e.push(l)}),e},[null==n?void 0:n.key,null==l?void 0:l.options]);return(0,a.useEffect)(()=>{if(t){let n=p.IM.find(e=>e.type===(null==t?void 0:t.type));n&&(r(n),e((0,u.nj)(p.Ss[2])))}return()=>{e((0,u.mc)())}},[t,e]),n&&t?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(f.Z,{heading:"Connection manager",breadcrumbItems:[{title:"All connections",href:c.JR},{title:n.name}]}),(0,i.jsx)(s.X6q,{fontSize:"md",fontWeight:"semibold",maxHeight:"40px",mb:"4px",whiteSpace:"nowrap",children:(0,i.jsxs)(s.xuv,{alignItems:"center",display:"flex",children:[(0,i.jsx)(j.Z,{data:t}),(0,i.jsx)(s.xvT,{ml:"8px",children:n.name})]})}),(0,i.jsx)(s.gCW,{alignItems:"stretch",flex:"1",gap:"18px",children:(0,i.jsx)(s.A5g,{items:d})})]}):null},_=t(21910),g=()=>{let e=(0,o.T)(),n=(0,r.useRouter)(),{id:t}=n.query,{errorAlert:f}=(0,d.VY)(),x=(0,o.C)(u.y_),[p,y]=(0,a.useState)(!0),v=(e,n)=>n.find(n=>{var t;return n.identifier===e.connection_type&&n.identifier!==_.Rj.SAAS||n.identifier===(null===(t=e.saas_config)||void 0===t?void 0:t.type)});return(0,a.useEffect)(()=>{let i=()=>{f("An error occurred while loading ".concat(n.query.id)),n.push(c.JR,void 0,{shallow:!0})},l=async n=>{try{let t=[];t.push(e(h.DM.endpoints.getDatastoreConnectionByKey.initiate(n))),0===x.length&&t.push(e(u.d8.endpoints.getAllConnectionTypes.initiate({search:""})));let l=await Promise.allSettled(t);if(l.every(e=>"fulfilled"===e.status)){e((0,u.lm)(l[0].value.data));let n=[...l[1]?l[1].value.data.items:x],t=v(l[0].value.data,n);e((0,u.yA)(t)),y(!1)}else i()}catch(e){i()}};return t&&l(t),()=>{}},[t]),(0,i.jsxs)(i.Fragment,{children:[p&&(0,i.jsx)(s.xuv,{display:"flex",h:"100vh",justifyContent:"center",children:(0,i.jsx)(s.M5Y,{children:(0,i.jsx)(s.$jN,{})})}),!p&&(0,i.jsx)(l.Z,{children:(0,i.jsx)(m,{})})]})}}},function(e){e.O(0,[431,8765,699,6527,1467,1841,2751,4608,2888,9774,179],function(){return e(e.s=10463)}),_N_E=e.O()}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6050],{91747:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/datastore-connection/new",function(){return n(7936)}])},19904:function(e,t,n){"use strict";n.d(t,{Tg:function(){return s}});var i=n(24246),r=n(16134),l=n(31793);let s=e=>(0,r.C)(l.uu).filter(t=>e.includes(t)).length>0;t.ZP=e=>{let{scopes:t,children:n}=e;return s(t)?(0,i.jsx)(i.Fragment,{children:n}):null}},96718:function(e,t,n){"use strict";n.d(t,{z:function(){return l}});var i=n(24246),r=n(96306);let l=e=>{let{...t}=e;return(0,i.jsx)(r.WPr,{defaultActiveFirstOption:!1,maxTagCount:"responsive",allowClear:!0,styles:t.mode?void 0:{popup:{root:{width:"auto",minWidth:"200px"}}},className:"w-auto","data-testid":"filter-select",...t})}},44553:function(e,t,n){"use strict";n.d(t,{Z:function(){return m}});var i=n(24246),r=n(96306),l=n(27378),s=n(45277),a=n(16125),o=n(812),c=n(46628),u=n(20682),d=n(54427),p=n(52253),h=n(78780);let{reducer:x}=(0,d.oM)({name:"connectorTemplate",initialState:{},reducers:{}}),{useRegisterConnectorTemplateMutation:f}=h.u.injectEndpoints({endpoints:e=>({registerConnectorTemplate:e.mutation({query:e=>{let t=new FormData;return t.append("file",e),{url:"".concat(p.o4,"/register"),method:"POST",body:t}},invalidatesTags:()=>["Connection Type"]})})});var m=e=>{let{isOpen:t,onClose:n,testId:d="connector-template-modal"}=e,p=(0,a.I0)(),[h,x]=(0,l.useState)(null),m=(0,r.pmc)(),{getRootProps:y,getInputProps:j,isDragActive:g}=(0,s.uI)({onDrop:e=>{var t;if("zip"!==(null===(t=e[0].name.split(".").pop())||void 0===t?void 0:t.toLowerCase())){m((0,c.Vo)("Only zip files are allowed."));return}x(e[0])}}),[v,{isLoading:C}]=f(),{refetch:b}=(0,u.$I)({search:""},{skip:!1}),w=async()=>{if(h)try{var e;await v(h).unwrap(),m((0,c.t5)("Integration template uploaded successfully."));let{data:t}=await b();p((0,u.fP)(null!==(e=null==t?void 0:t.items)&&void 0!==e?e:[])),n()}catch(e){m((0,c.Vo)((0,o.e$)(e)))}finally{x(null)}};return(0,i.jsxs)(r.u_l,{isOpen:t,onClose:n,size:"2xl",children:[(0,i.jsx)(r.ZAr,{}),(0,i.jsxs)(r.hzk,{textAlign:"left",p:2,"data-testid":d,children:[(0,i.jsx)(r.xBx,{children:"Upload integration template"}),(0,i.jsxs)(r.fef,{children:[(0,i.jsx)(r.xvT,{fontSize:"sm",mb:4,children:"Drag and drop your integration template zip file here, or click to browse your files."}),(0,i.jsxs)(r.xuv,{...y(),bg:g?"gray.100":"gray.50",border:"2px dashed",borderColor:g?"gray.300":"gray.200",borderRadius:"md",cursor:"pointer",minHeight:"150px",display:"flex",alignItems:"center",justifyContent:"center",textAlign:"center",children:[(0,i.jsx)("input",{...j()}),h?(0,i.jsx)(r.xvT,{children:h.name}):g?(0,i.jsx)(r.xvT,{children:"Drop the file here..."}):(0,i.jsx)(r.xvT,{children:"Click or drag and drop your file here."})]}),(0,i.jsx)(r.xvT,{fontSize:"sm",mt:4,children:"An integration template zip file must include a SaaS config and dataset, but may also contain an icon (.svg) as an optional file."})]}),(0,i.jsxs)(r.mzw,{className:"flex w-full justify-end gap-2",children:[(0,i.jsx)(r.wpx,{onClick:n,"data-testid":"cancel-btn",disabled:C,children:"Cancel"}),(0,i.jsx)(r.wpx,{type:"primary",htmlType:"submit",disabled:!h||C,onClick:w,"data-testid":"submit-btn",children:"Submit"})]})]})]})}},7936:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return O}});var i=n(24246),r=n(96356),l=n(41337),s=n(96306),a=n(86677),o=n(27378),c=n(16125),u=n(16134),d=n(77830),p=n(58754),h=n(16394),x=n(19904),f=n(44553),m=n(
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6050],{91747:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/datastore-connection/new",function(){return n(7936)}])},19904:function(e,t,n){"use strict";n.d(t,{Tg:function(){return s}});var i=n(24246),r=n(16134),l=n(31793);let s=e=>(0,r.C)(l.uu).filter(t=>e.includes(t)).length>0;t.ZP=e=>{let{scopes:t,children:n}=e;return s(t)?(0,i.jsx)(i.Fragment,{children:n}):null}},96718:function(e,t,n){"use strict";n.d(t,{z:function(){return l}});var i=n(24246),r=n(96306);let l=e=>{let{...t}=e;return(0,i.jsx)(r.WPr,{defaultActiveFirstOption:!1,maxTagCount:"responsive",allowClear:!0,styles:t.mode?void 0:{popup:{root:{width:"auto",minWidth:"200px"}}},className:"w-auto","data-testid":"filter-select",...t})}},44553:function(e,t,n){"use strict";n.d(t,{Z:function(){return m}});var i=n(24246),r=n(96306),l=n(27378),s=n(45277),a=n(16125),o=n(812),c=n(46628),u=n(20682),d=n(54427),p=n(52253),h=n(78780);let{reducer:x}=(0,d.oM)({name:"connectorTemplate",initialState:{},reducers:{}}),{useRegisterConnectorTemplateMutation:f}=h.u.injectEndpoints({endpoints:e=>({registerConnectorTemplate:e.mutation({query:e=>{let t=new FormData;return t.append("file",e),{url:"".concat(p.o4,"/register"),method:"POST",body:t}},invalidatesTags:()=>["Connection Type"]})})});var m=e=>{let{isOpen:t,onClose:n,testId:d="connector-template-modal"}=e,p=(0,a.I0)(),[h,x]=(0,l.useState)(null),m=(0,r.pmc)(),{getRootProps:y,getInputProps:j,isDragActive:g}=(0,s.uI)({onDrop:e=>{var t;if("zip"!==(null===(t=e[0].name.split(".").pop())||void 0===t?void 0:t.toLowerCase())){m((0,c.Vo)("Only zip files are allowed."));return}x(e[0])}}),[v,{isLoading:C}]=f(),{refetch:b}=(0,u.$I)({search:""},{skip:!1}),w=async()=>{if(h)try{var e;await v(h).unwrap(),m((0,c.t5)("Integration template uploaded successfully."));let{data:t}=await b();p((0,u.fP)(null!==(e=null==t?void 0:t.items)&&void 0!==e?e:[])),n()}catch(e){m((0,c.Vo)((0,o.e$)(e)))}finally{x(null)}};return(0,i.jsxs)(r.u_l,{isOpen:t,onClose:n,size:"2xl",children:[(0,i.jsx)(r.ZAr,{}),(0,i.jsxs)(r.hzk,{textAlign:"left",p:2,"data-testid":d,children:[(0,i.jsx)(r.xBx,{children:"Upload integration template"}),(0,i.jsxs)(r.fef,{children:[(0,i.jsx)(r.xvT,{fontSize:"sm",mb:4,children:"Drag and drop your integration template zip file here, or click to browse your files."}),(0,i.jsxs)(r.xuv,{...y(),bg:g?"gray.100":"gray.50",border:"2px dashed",borderColor:g?"gray.300":"gray.200",borderRadius:"md",cursor:"pointer",minHeight:"150px",display:"flex",alignItems:"center",justifyContent:"center",textAlign:"center",children:[(0,i.jsx)("input",{...j()}),h?(0,i.jsx)(r.xvT,{children:h.name}):g?(0,i.jsx)(r.xvT,{children:"Drop the file here..."}):(0,i.jsx)(r.xvT,{children:"Click or drag and drop your file here."})]}),(0,i.jsx)(r.xvT,{fontSize:"sm",mt:4,children:"An integration template zip file must include a SaaS config and dataset, but may also contain an icon (.svg) as an optional file."})]}),(0,i.jsxs)(r.mzw,{className:"flex w-full justify-end gap-2",children:[(0,i.jsx)(r.wpx,{onClick:n,"data-testid":"cancel-btn",disabled:C,children:"Cancel"}),(0,i.jsx)(r.wpx,{type:"primary",htmlType:"submit",disabled:!h||C,onClick:w,"data-testid":"submit-btn",children:"Submit"})]})]})]})}},7936:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return O}});var i=n(24246),r=n(96356),l=n(41337),s=n(96306),a=n(86677),o=n(27378),c=n(16125),u=n(16134),d=n(77830),p=n(58754),h=n(16394),x=n(19904),f=n(44553),m=n(21910),y=n(96718),j=n(26788),g=()=>{let e=(0,c.I0)(),t=(0,o.useRef)(!1);(0,o.useEffect)(()=>(t.current=!0,()=>{e((0,r.zq)(j.gA)),t.current=!1}),[e]);let n=(0,o.useRef)([...j.yI].map(e=>{let[t,n]=e;return{value:null==n?void 0:n.value,label:t}}));return(0,i.jsx)(y.z,{allowClear:!1,options:n.current,onChange:t=>{e((0,r.zq)(t||j.gA))},defaultValue:"","data-testid":"connection-type-filter"})},v=n(79894),C=n.n(v),b=e=>{let{items:t}=e;return(0,i.jsx)(s.MIq,{columns:4,spacingX:"16px",spacingY:"16px",children:t.map(e=>(0,i.jsx)(C(),{href:{pathname:window.location.pathname,query:{step:2,connectorType:JSON.stringify(e)}},children:(0,i.jsx)(s.xuv,{boxShadow:"base",borderRadius:"5px",maxWidth:"331px",overflow:"hidden",_hover:{boxShadow:"lg",cursor:"pointer"},"data-testid":"".concat(e.identifier,"-item"),children:(0,i.jsxs)(s.kCb,{alignItems:"center",justifyContent:"start",pl:"24px",pr:"24px",color:"gray.700",fontSize:"14px",fontStyle:"normal",fontWeight:"600",lineHeight:"20px",h:"80px",children:[(0,i.jsx)(l.Z,{data:e}),(0,i.jsx)(s.xvT,{ml:"12px",children:e.human_readable})]})})},e.identifier))})},w=()=>{let e=(0,c.I0)(),t=(0,o.useRef)(!1),{step:n}=(0,u.C)(r.ZZ),l=(0,u.C)(r.pw),{data:a,isFetching:d,isLoading:p,isSuccess:y}=(0,r.$I)(l),[j,v]=(0,o.useState)(!1),C=(0,o.useCallback)(t=>{(0===t.target.value.length||t.target.value.length>1)&&e((0,r.qP)(t.target.value))},[e]),w=(0,o.useMemo)(()=>(0,h.Ds)(C,250),[C]),T=(0,o.useMemo)(()=>(null==a?void 0:a.items)&&[...a.items].sort((e,t)=>e.human_readable>t.human_readable?1:-1),[a]);return(0,o.useEffect)(()=>(t.current=!0,()=>{e((0,r.qP)("")),t.current=!1}),[e]),(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(s.kCb,{minWidth:"fit-content",children:(0,i.jsx)(s.xuv,{color:"gray.700",fontSize:"14px",maxHeight:"80px",maxWidth:"474px",mb:"24px",children:n.description})}),(0,i.jsxs)(s.kCb,{alignItems:"center",gap:"4",mb:"24px",minWidth:"fit-content",children:[(0,i.jsx)(g,{}),(0,i.jsxs)(s.BZy,{size:"sm",children:[(0,i.jsx)(s.Z8_,{pointerEvents:"none",children:(0,i.jsx)(s.PTu,{color:"gray.300",h:"17px",w:"17px"})}),(0,i.jsx)(s.IIB,{autoComplete:"off",autoFocus:!0,borderRadius:"md",name:"search",onChange:w,placeholder:"Search integrations",size:"sm",type:"search"})]}),(0,i.jsx)(x.ZP,{scopes:[m.Sh.CONNECTOR_TEMPLATE_REGISTER],children:(0,i.jsx)(s.wpx,{onClick:()=>{v(!0)},type:"primary",htmlType:"submit","data-testid":"upload-btn",children:"Upload connector"})})]}),(0,i.jsx)(f.Z,{isOpen:j,onClose:()=>v(!1)}),(d||p)&&(0,i.jsx)(s.M5Y,{children:(0,i.jsx)(s.$jN,{})}),y&&T?(0,i.jsx)(b,{items:T}):null]})},T=n(11274),S=n(38212),I=n(50881),k=()=>{let e=(0,c.I0)(),t=(0,o.useRef)(!1),[n,l]=(0,o.useState)(!1),{connection:a,connectionOption:d}=(0,u.C)(r.ZZ),p=j.IM.find(e=>e.type===(null==d?void 0:d.type)),[h,x]=(0,o.useState)(null==p?void 0:p.options[0]),f=()=>{l(!0)},y=(0,o.useMemo)(()=>{let e=[];return(null==p?void 0:p.options)&&p.options.forEach(t=>{let n;switch(t){case j.H5.CONNECTOR_PARAMETERS:n={label:t,key:t,children:(0,i.jsx)(T.s,{onConnectionCreated:f})};break;case j.H5.DATASET_CONFIGURATION:n=(null==a?void 0:a.key)?{label:t,key:t,children:(0,i.jsx)(S.Z,{})}:void 0;break;case j.H5.DSR_CUSTOMIZATION:n=(null==a?void 0:a.key)?{label:t,key:t,children:(0,i.jsx)(I.Z,{})}:void 0}n&&e.push(n)}),e},[null==a?void 0:a.key,null==p?void 0:p.options]),g=(0,o.useCallback)(t=>{switch(t){case j.H5.DATASET_CONFIGURATION:case j.H5.DSR_CUSTOMIZATION:e((0,r.nj)(j.Ss[3]));break;case j.H5.CONNECTOR_PARAMETERS:default:e((0,r.nj)(j.Ss[2]))}x(t)},[e]);return(0,o.useEffect)(()=>(t.current=!0,()=>{t.current=!1,e((0,r.mc)())}),[e]),(0,o.useEffect)(()=>{(null==a?void 0:a.key)&&(g((null==d?void 0:d.type)!==m.Zi.MANUAL?j.H5.DATASET_CONFIGURATION:j.H5.DSR_CUSTOMIZATION),n&&l(!1))},[n,null==a?void 0:a.key,null==d?void 0:d.type,null==p?void 0:p.options,g]),(0,i.jsx)(s.gCW,{alignItems:"stretch",gap:"18px",children:(0,i.jsx)(s.A5g,{items:y,activeKey:h,onChange:g})})};let A=(e,t)=>{let n="".concat(window.location.origin+t,"&key=").concat(e);window.location.href.toLowerCase()!==n.toLowerCase()&&window.history.replaceState(null,"",n)},{Title:N}=s.AntTypography;var _=()=>{let e=(0,c.I0)(),t=(0,a.useRouter)(),{connectorType:n,step:h}=t.query,{connection:x,connectionOption:f,step:m}=(0,u.C)(r.ZZ);(0,o.useEffect)(()=>{if(n&&e((0,r.yA)(JSON.parse(n))),t.query.step){let t=j.Ss.find(e=>e.stepId===Number(h));e((0,r.nj)(t||j.Ss[1]))}return!t.query.id&&(null==x?void 0:x.key)&&A(x.key,m.href),()=>{}},[null==x?void 0:x.key,n,h,e,t.query.id,t.query.step,m.href]);let y=(0,o.useCallback)(e=>{let t="";switch(e.stepId){case 2:case 3:t=e.label.replace("{identifier}",f.human_readable);break;default:t=e.label}return t},[f]);return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(p.Z,{heading:"Connections",breadcrumbItems:[{title:"Unlinked connections",href:d.JR},{title:"New connection"}],children:(0,i.jsx)(N,{level:3,style:{marginBottom:0},className:"mt-4",children:f?(0,i.jsxs)(s.vyj,{children:[(0,i.jsx)(l.Z,{data:f}),y(m)]}):y(m)})}),(()=>{switch(m.stepId){case 1:default:return(0,i.jsx)(w,{});case 2:case 3:return(0,i.jsx)(k,{})}})()]})},E=n(1226),O=()=>(0,i.jsx)(E.Z,{children:(0,i.jsx)(_,{})})}},function(e){e.O(0,[431,8765,699,6527,5277,1467,1841,2751,4608,2888,9774,179],function(){return e(e.s=91747)}),_N_E=e.O()}]);
|
fides/ui-build/static/admin/_next/static/chunks/pages/datastore-connection-c55e3e0e19030f3f.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1850],{75733:function(e){e.exports=function(e,n,t){var i=-1,r=e.length;n<0&&(n=-n>r?0:r+n),(t=t>r?r:t)<0&&(t+=r),r=n>t?0:t-n>>>0,n>>>=0;for(var s=Array(r);++i<r;)s[i]=e[i+n];return s}},74833:function(e,n,t){var i=t(56127),r=/^\s+/;e.exports=function(e){return e?e.slice(0,i(e)+1).replace(r,""):e}},42383:function(e){var n=/^(?:0|[1-9]\d*)$/;e.exports=function(e,t){var i=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==i||"symbol"!=i&&n.test(e))&&e>-1&&e%1==0&&e<t}},57535:function(e,n,t){var i=t(85638),r=t(80068),s=t(42383),o=t(11611);e.exports=function(e,n,t){if(!o(t))return!1;var a=typeof n;return("number"==a?!!(r(t)&&s(n,t.length)):"string"==a&&n in t)&&i(t[n],e)}},56127:function(e){var n=/\s/;e.exports=function(e){for(var t=e.length;t--&&n.test(e.charAt(t)););return t}},92875:function(e,n,t){var i=t(75733),r=t(57535),s=t(47991),o=Math.ceil,a=Math.max;e.exports=function(e,n,t){n=(t?r(e,n,t):void 0===n)?1:a(s(n),0);var l=null==e?0:e.length;if(!l||n<1)return[];for(var c=0,u=0,d=Array(o(l/n));c<l;)d[u++]=i(e,c,c+=n);return d}},85638:function(e){e.exports=function(e,n){return e===n||e!=e&&n!=n}},80068:function(e,n,t){var i=t(28338),r=t(84194);e.exports=function(e){return null!=e&&r(e.length)&&!i(e)}},28338:function(e,n,t){var i=t(99736),r=t(11611);e.exports=function(e){if(!r(e))return!1;var n=i(e);return"[object Function]"==n||"[object GeneratorFunction]"==n||"[object AsyncFunction]"==n||"[object Proxy]"==n}},84194:function(e){e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},11611:function(e){e.exports=function(e){var n=typeof e;return null!=e&&("object"==n||"function"==n)}},55193:function(e,n,t){var i=t(99736),r=t(92360);e.exports=function(e){return"symbol"==typeof e||r(e)&&"[object Symbol]"==i(e)}},94919:function(e,n,t){var i=t(91936),r=1/0;e.exports=function(e){return e?(e=i(e))===r||e===-r?(e<0?-1:1)*17976931348623157e292:e==e?e:0:0===e?e:0}},47991:function(e,n,t){var i=t(94919);e.exports=function(e){var n=i(e),t=n%1;return n==n?t?n-t:n:0}},91936:function(e,n,t){var i=t(74833),r=t(11611),s=t(55193),o=0/0,a=/^[-+]0x[0-9a-f]+$/i,l=/^0b[01]+$/i,c=/^0o[0-7]+$/i,u=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(s(e))return o;if(r(e)){var n="function"==typeof e.valueOf?e.valueOf():e;e=r(n)?n+"":n}if("string"!=typeof e)return 0===e?e:+e;e=i(e);var t=l.test(e);return t||c.test(e)?u(e.slice(2),t?2:8):a.test(e)?o:+e}},98720:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/datastore-connection",function(){return t(22285)}])},77867:function(e,n,t){"use strict";var i=t(24246),r=t(96306);n.Z=e=>{let{connected:n,...t}=e,s="red.500";return null==n?s="gray.300":n&&(s="green.500"),(0,i.jsx)(r.xuv,{width:"12px",height:"12px",borderRadius:"6px",backgroundColor:s,...t})}},77213:function(e,n,t){"use strict";t.d(n,{Z:function(){return x}});var i=t(24246),r=t(96306),s=t(88038),o=t.n(s),a=t(86677);t(27378);var l=t(25980),c=t(90867),u=t(42478),d=t(77830),g=()=>{let e=(0,a.useRouter)();return(0,i.jsx)(r.xuv,{bg:"gray.50",border:"1px solid",borderColor:"blue.400",borderRadius:"md",justifyContent:"space-between",p:5,mb:5,mt:5,children:(0,i.jsxs)(r.xuv,{children:[(0,i.jsxs)(r.Kqy,{direction:{base:"column",sm:"row"},justifyContent:"space-between",children:[(0,i.jsx)(r.xvT,{fontWeight:"semibold",children:"Configure your storage and messaging provider"}),(0,i.jsx)(r.wpx,{onClick:()=>{e.push(d.AD)},children:"Configure"})]}),(0,i.jsxs)(r.xvT,{children:["Before Fides can process your privacy requests we need two simple steps to configure your storage and email client."," "]})]})})},x=e=>{let{children:n,title:t,padded:s=!0,mainProps:d}=e,x=(0,l.hz)(),f=(0,a.useRouter)(),h="/privacy-requests"===f.pathname||"/datastore-connection"===f.pathname,p=!(x.flags.messagingConfiguration&&h),{data:m}=(0,u.JE)(void 0,{skip:p}),{data:v}=(0,c.PW)(void 0,{skip:p}),y=x.flags.messagingConfiguration&&(!m||!v)&&h;return(0,i.jsxs)(r.kCb,{"data-testid":t,direction:"column",h:"100vh",children:[(0,i.jsxs)(o(),{children:[(0,i.jsxs)("title",{children:["Fides Admin UI - ",t]}),(0,i.jsx)("meta",{name:"description",content:"Privacy Engineering Platform"}),(0,i.jsx)("link",{rel:"icon",href:"/favicon.ico"})]}),(0,i.jsxs)(r.kCb,{as:"main",direction:"column",py:s?6:0,px:s?10:0,h:s?"calc(100% - 48px)":"full",flex:1,minWidth:0,overflow:"auto",...d,children:[y?(0,i.jsx)(g,{}):null,n]})]})}},58754:function(e,n,t){"use strict";var i=t(24246),r=t(96306),s=t(70788);n.Z=e=>{let{heading:n,breadcrumbItems:t,isSticky:o=!0,children:a,rightContent:l,style:c,...u}=e;return(0,i.jsxs)("div",{...u,style:o?{position:"sticky",top:"-24px",paddingTop:"24px",paddingBottom:"24px",paddingLeft:"40px",marginLeft:"-40px",paddingRight:"40px",marginRight:"-40px",marginTop:"-24px",left:0,zIndex:20,backgroundColor:"white",...c}:{paddingBottom:"24px",...c},children:[(0,i.jsxs)(r.jqI,{justify:"space-between",children:["string"==typeof n?(0,i.jsx)(r.lQT,{className:t||a?"pb-4":void 0,level:1,"data-testid":"page-heading",children:n}):n,l&&(0,i.jsx)("div",{"data-testid":"page-header-right-content",children:l})]}),!!t&&(0,i.jsx)(s.m,{className:a?"pb-4":void 0,items:t,"data-testid":"page-breadcrumb"}),a]})}},96718:function(e,n,t){"use strict";t.d(n,{z:function(){return s}});var i=t(24246),r=t(96306);let s=e=>{let{...n}=e;return(0,i.jsx)(r.WPr,{defaultActiveFirstOption:!1,maxTagCount:"responsive",allowClear:!0,styles:n.mode?void 0:{popup:{root:{width:"auto",minWidth:"200px"}}},className:"w-auto","data-testid":"filter-select",...n})}},70788:function(e,n,t){"use strict";t.d(n,{m:function(){return c}});var i=t(24246),r=t(96306),s=t(79894),o=t.n(s),a=t(27378);let{Text:l}=r.AntTypography,c=e=>{let{items:n,...t}=e,s=(0,a.useMemo)(()=>null==n?void 0:n.map((e,t)=>{let s=t===n.length-1,a={...e},c=a.onClick&&!a.href;return("string"==typeof a.title&&(a.title=(0,i.jsx)(l,{style:{color:"inherit",maxWidth:s?void 0:400},ellipsis:!s,id:s?"breadcrumb-current-page":void 0,children:a.title})),c)?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)(o(),{href:a.href,className:"ant-breadcrumb-link",children:a.title}),delete a.href)),a}),[n]);return(0,i.jsx)(r.zrq,{items:s,...t})}},41337:function(e,n,t){"use strict";var i=t(24246),r=t(96306);t(27378);var s=t(88337),o=t(16394),a=t(14746);let l=a.Ny+a.iW.get(s.R.WEBSITE),c=e=>void 0!==e.connection_type,u=e=>void 0!==e.encoded_icon,d=e=>(null==e?void 0:e.connection_type)===s.R.WEBSITE,g=e=>(null==e?void 0:e.connection_type)===s.R.SAAS;n.Z=e=>{let{data:n,...t}=e;return(0,i.jsx)(r.Eep,{boxSize:"32px",objectFit:"cover",src:(()=>{var e,t;let i;if(u(n)&&n.encoded_icon)return"data:image/svg+xml;base64,".concat(n.encoded_icon);if(d(n)){let t=null===(e=n.secrets)||void 0===e?void 0:e.url;if(!t)return l;let i=(0,o.ge)(t);return(0,o.tl)(i,100)}if(c(n)){if(g(n)&&(null===(t=n.saas_config)||void 0===t?void 0:t.type)){let e=n.saas_config.type,t=a.LN.get(e);return t?a.Ny+t:a.Ny+a.iW.get(s.R.SAAS)}i=[...a.iW].find(e=>{let[t]=e;return n.connection_type.toString()===t.toString()})}else if(u(n)){let{identifier:e}=n;i=[...a.iW].find(n=>{let[t]=n;return t.toLowerCase()===e.toLowerCase()})}return i?a.Ny+i[1]:a.VD})(),fallbackSrc:d(n)?l:a.VD,alt:(()=>{if(c(n)){var e;return null!==(e=n.name)&&void 0!==e?e:n.key}return u(n)?n.human_readable:n})(),...t})}},1226:function(e,n,t){"use strict";var i=t(24246);t(27378);var r=t(77213);n.Z=e=>{let{children:n}=e;return(0,i.jsx)(r.Z,{title:"Connections",children:n})}},15872:function(e,n,t){"use strict";var i=t(24246),r=t(96306),s=t(86677);t(27378);var o=t(77830),a=t(14207);n.Z=e=>{let{connection_key:n,showMenu:t}=e,{isOpen:l,onOpen:c,onClose:u}=(0,r.qY0)(),[d,g]=(0,a.R5)(),x=(0,s.useRouter)(),f=()=>{g.isLoading||u()};return(0,i.jsxs)(i.Fragment,{children:[t&&(0,i.jsx)(r.sNh,{_focus:{color:"complimentary.500",bg:"gray.100"},onClick:c,children:(0,i.jsx)(r.xvT,{fontSize:"sm",children:"Delete"})}),!t&&(0,i.jsx)(r.wpx,{onClick:c,children:"Delete integration"}),(0,i.jsxs)(r.u_l,{isCentered:!0,isOpen:l,onClose:f,children:[(0,i.jsx)(r.ZAr,{}),(0,i.jsxs)(r.hzk,{children:[(0,i.jsx)(r.xBx,{children:"Delete integration"}),(0,i.jsx)(r.olH,{}),(0,i.jsx)(r.fef,{pb:6,children:(0,i.jsx)(r.Kqy,{direction:"column",spacing:"15px",children:(0,i.jsx)(r.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,i.jsxs)(r.mzw,{className:"flex gap-4",children:[(0,i.jsx)(r.wpx,{onClick:f,className:"w-1/2",children:"Cancel"}),(0,i.jsx)(r.wpx,{onClick:()=>{n&&(d(n),t||x.push(o.KH))},loading:g.isLoading,type:"primary",className:"w-1/2",children:"Delete integration"})]})]})]})]})}},73183:function(e,n,t){"use strict";var i=t(24246),r=t(96306);t(27378);var s=t(14207);n.Z=e=>{let{connection_key:n,disabled:t,name:o,access_type:a,connection_type:l,isSwitch:c}=e,{isOpen:u,onOpen:d,onClose:g}=(0,r.qY0)(),[x,f]=(0,s.XX)(),h=async()=>{await x({key:n,name:o,disabled:!t,access:a,connection_type:l}),g()},p=()=>{f.isLoading||g()};return(0,i.jsxs)(i.Fragment,{children:[c?(0,i.jsxs)(r.kCb,{justifyContent:"space-between",alignItems:"center",children:[(0,i.jsx)(r.xvT,{fontSize:"sm",children:"Enable integration"}),(0,i.jsx)(r.rAg,{className:"ml-2",checked:!t,onChange:()=>d()})]}):(0,i.jsx)(r.sNh,{_focus:{color:"complimentary.500",bg:"gray.100"},onClick:d,children:(0,i.jsx)(r.xvT,{fontSize:"sm",children:t?"Enable":"Disable"})}),(0,i.jsxs)(r.u_l,{isCentered:!0,isOpen:u,onClose:p,children:[(0,i.jsx)(r.ZAr,{}),(0,i.jsxs)(r.hzk,{children:[(0,i.jsxs)(r.xBx,{children:[t?"Enable":"Disable"," Connection"]}),(0,i.jsx)(r.olH,{}),(0,i.jsx)(r.fef,{pb:6,children:(0,i.jsx)(r.Kqy,{direction:"column",spacing:"15px",children:(0,i.jsxs)(r.xvT,{color:"gray.600",fontSize:"sm",fontWeight:"sm",lineHeight:"20px",children:[t?"Enabling":"Disabling"," a connection may impact any privacy request that is currently in progress. Do you wish to proceed?"]})})}),(0,i.jsxs)(r.mzw,{className:"flex gap-4",children:[(0,i.jsx)(r.wpx,{onClick:p,className:"w-1/2",children:"Cancel"}),(0,i.jsxs)(r.wpx,{onClick:h,loading:f.isLoading,className:"w-1/2",children:[t?"Enable":"Disable"," Connection"]})]})]})]})]})}},8627:function(e,n,t){"use strict";t.d(n,{s:function(){return a}});var i=t(24246),r=t(96306),s=t(77867),o=t(16394);let a=e=>{let{succeeded:n,timestamp:t}=e,a=t?(0,o.p6)(t):"";return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(s.Z,{connected:n}),(0,i.jsx)(r.xvT,{color:"gray.500",fontSize:"xs",fontWeight:"semibold",lineHeight:"16px",ml:"10px",children:t?"Last tested on ".concat(a):"This connection has not been tested yet"})]})}},42478:function(e,n,t){"use strict";t.d(n,{FU:function(){return c},JE:function(){return r},Ki:function(){return d},SU:function(){return g},W:function(){return x},h9:function(){return s},jc:function(){return i},qt:function(){return l},sn:function(){return u}});let{useGetEmailInviteStatusQuery:i,useGetActiveMessagingProviderQuery:r,useCreateMessagingConfigurationMutation:s,useCreateMessagingConfigurationSecretsMutation:o,useGetMessagingConfigurationDetailsQuery:a,useGetMessagingConfigurationsQuery:l,useGetMessagingConfigurationByKeyQuery:c,useUpdateMessagingConfigurationByKeyMutation:u,useUpdateMessagingConfigurationSecretsByKeyMutation:d,useCreateTestConnectionMessageMutation:g,useDeleteMessagingConfigurationByKeyMutation:x}=t(78780).u.injectEndpoints({endpoints:e=>({getEmailInviteStatus:e.query({query:()=>({url:"/messaging/email-invite/status"}),providesTags:()=>["Email Invite Status"]}),createMessagingConfiguration:e.mutation({query:e=>({url:"messaging/config",method:"POST",body:e}),invalidatesTags:["Messaging Config","Configuration Settings"]}),getActiveMessagingProvider:e.query({queryFn:async(e,n,t,i)=>{let r=await i({url:"messaging/default/active"});return r.error&&404===r.error.status?{data:null}:r},providesTags:["Messaging Config"]}),createMessagingConfigurationSecrets:e.mutation({query:e=>({url:"messaging/default/".concat(e.service_type,"/secret"),method:"PUT",body:e.details}),invalidatesTags:["Messaging Config","Configuration Settings"]}),getMessagingConfigurationDetails:e.query({query:e=>({url:"messaging/default/".concat(e.type)}),providesTags:["Messaging Config"]}),getMessagingConfigurations:e.query({query:()=>({url:"messaging/config"}),providesTags:["Messaging Config"]}),getMessagingConfigurationByKey:e.query({query:e=>({url:"messaging/config/".concat(e.key)}),providesTags:["Messaging Config"]}),createTestConnectionMessage:e.mutation({query:e=>({url:"messaging/test/".concat(e.service_type),method:"POST",body:e.details}),invalidatesTags:["Messaging Config"]}),updateMessagingConfigurationByKey:e.mutation({query:e=>({url:"messaging/config/".concat(e.key),method:"PATCH",body:e.config}),invalidatesTags:["Messaging Config","Configuration Settings"]}),updateMessagingConfigurationSecretsByKey:e.mutation({query:e=>({url:"messaging/config/".concat(e.key,"/secret"),method:"PUT",body:e.secrets}),invalidatesTags:["Messaging Config","Configuration Settings"]}),deleteMessagingConfigurationByKey:e.mutation({query:e=>({url:"messaging/config/".concat(e.key),method:"DELETE"}),invalidatesTags:["Messaging Config","Configuration Settings"]})})})},22285:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return K}});var i=t(24246),r=t(16394),s=t(96306),o=t(27378),a=t(16134),l=t(20682),c=t(16125),u=t(14207),d=t(96718),g=()=>{let{connectionOptions:e}=(0,a.C)(l.ZZ),{connection_type:n}=(0,a.C)(u.dR),t=(0,o.useCallback)(()=>{let t=new Map;return e.forEach(e=>{let i=!1;(null==n?void 0:n.includes(e.identifier))&&(i=!0),t.set(e.human_readable,i)}),t},[e,n]),r=[...(0,o.useMemo)(()=>t(),[t])].map(e=>{let[n]=e;return{value:n,label:n}}),s=(0,a.T)();return(0,i.jsx)(d.z,{mode:"multiple",placeholder:"Connection Type",options:r,onChange:n=>{let t=e.filter(e=>n.includes(e.human_readable));s((0,u.Iw)(t.map(e=>e.identifier)))},defaultValue:(null==n?void 0:n.length)?n:[],className:"w-60","data-testid":"connection-type-filter"})},x=t(14746),f=()=>{let{disabled_status:e}=(0,c.v9)(u.dR),n=()=>{let e=new Map;return Object.values(x.QI).sort().forEach(n=>{e.set((0,r.kC)(n),{value:n})}),e},t=[...(0,o.useMemo)(()=>n(),[])].map(e=>{let[n,t]=e;return{value:t.value,label:n}}),s=(0,c.I0)();return(0,i.jsx)(d.z,{placeholder:"Status",options:t,onChange:e=>{s((0,u.Ru)(e||""))},defaultValue:(null==e?void 0:e.toString())||void 0,"data-testid":"disabled-status-filter"})},h=t(26788),p=()=>{let{system_type:e}=(0,c.v9)(u.dR),n=new Map(h.yI);n.delete("Show all");let t=[...n].map(e=>{let[n,t]=e;return{value:t.value,label:n}}),r=(0,a.T)();return(0,i.jsx)(d.z,{placeholder:"System Type",options:t,onChange:e=>{r((0,u.zq)(e||""))},defaultValue:(null==e?void 0:e.toString())||void 0,"data-testid":"system-type-filter"})},m=()=>{let{test_status:e}=(0,c.v9)(u.dR),n=()=>{let e=new Map;return Object.values(x.i0).sort().forEach(n=>{e.set((0,r.kC)(n),{value:n})}),e},t=[...(0,o.useMemo)(()=>n(),[])].map(e=>{let[n,t]=e;return{value:t.value,label:n}}),s=(0,c.I0)();return(0,i.jsx)(d.z,{placeholder:"Testing Status",options:t,onChange:e=>{s((0,u.Ri)(e||""))},defaultValue:(null==e?void 0:e.toString())||void 0,"data-testid":"testing-status-filter"})};let v=()=>{let e=(0,c.v9)(u.dR),n=(0,c.I0)();return{handleSearchChange:e=>n((0,u.qP)(e.target.value)),...e}};var y=()=>{let{handleSearchChange:e,search:n}=v();return(0,i.jsxs)(s.kCb,{minWidth:"fit-content",alignItems:"center",gap:"4",mb:6,flexWrap:"wrap",children:[(0,i.jsxs)(s.BZy,{size:"sm",minWidth:"308px",children:[(0,i.jsx)(s.Z8_,{pointerEvents:"none",children:(0,i.jsx)(s.PTu,{color:"gray.300",w:"17px",h:"17px"})}),(0,i.jsx)(s.IIB,{autoComplete:"off",autoFocus:!0,type:"search",minWidth:200,placeholder:"Search connection name or description",size:"sm",borderRadius:"md",value:n,name:"search",onChange:e})]}),(0,i.jsx)(g,{}),(0,i.jsx)(p,{}),(0,i.jsx)(m,{}),(0,i.jsx)(f,{})]})},j=e=>{let{page:n,size:t,total:r,handleNextPage:o,handlePreviousPage:a}=e,l=(n-1)*t+1,c=Math.min(r,n*t);return(0,i.jsxs)(s.kCb,{justifyContent:"space-between",mt:6,children:[(0,i.jsx)(s.xvT,{fontSize:"xs",color:"gray.600",children:r>0?(0,i.jsxs)(i.Fragment,{children:["Showing ",Number.isNaN(l)?0:l," to"," ",Number.isNaN(c)?0:c," of"," ",Number.isNaN(r)?0:r," results"]}):"0 results"}),(0,i.jsxs)("div",{children:[(0,i.jsx)(s.wpx,{disabled:n<=1,onClick:a,className:"mr-2",children:"Previous"}),(0,i.jsx)(s.wpx,{disabled:n*t>=r,onClick:o,children:"Next"})]})]})},b=t(92875),C=t.n(b),w=t(40542),_=t.n(w),k=t(79894),S=t.n(k),T=t(77830),N=t(15872),z=t(73183),M=e=>{let{connection_key:n,disabled:t,connection_type:r,access_type:o,name:a}=e;return(0,i.jsxs)(s.v2r,{children:[(0,i.jsx)(s.j2t,{as:s.zxk,size:"xs",bg:"white","data-testid":"connection-menu-btn",children:(0,i.jsx)(s.nXP,{color:"gray.700",w:18,h:18})}),(0,i.jsx)(s.h_i,{children:(0,i.jsxs)(s.qyq,{fontSize:"sm",shadow:"xl","data-testid":"connection-menu-".concat(a),children:[(0,i.jsx)(s.sNh,{as:S(),href:"".concat(T.JR,"/").concat(encodeURIComponent(n)),_focus:{color:"complimentary.500",bg:"gray.100"},"data-testid":"configure-btn",children:"Configure"}),(0,i.jsx)(z.Z,{connection_key:n,disabled:t,connection_type:r,access_type:o,name:a,isSwitch:!1}),(0,i.jsx)(N.Z,{showMenu:!0,connection_key:n})]})})]})},q=e=>{let{disabled:n}=e;return(0,i.jsx)(s.j8w,{color:n?"marble":"success",className:"mr-1 text-center",children:n?"DISABLED":"ACTIVE"})},E=t(41337),Z=t(8627),I=e=>{var n;let{connectionData:t}=e,[c,d]=(0,u.h2)(),{connectionOptions:g}=(0,a.C)(l.ZZ),x=(0,o.useMemo)(()=>g.find(e=>e.identifier===t.connection_type||t.saas_config&&e.identifier===t.saas_config.type)||"ethyca",[t,g]);return(0,i.jsxs)(s.xuv,{width:"100%",height:136,p:"18px 16px 16px 16px","data-testid":"connection-grid-item-".concat(t.name),children:[(0,i.jsxs)(s.kCb,{justifyContent:"center",alignItems:"center",children:[(0,i.jsx)(E.Z,{data:x}),(0,i.jsx)(s.xvT,{color:"gray.900",fontSize:"md",fontWeight:"medium",m:"8px",textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap",children:t.name}),(0,i.jsx)(s.LZC,{}),(0,i.jsx)(q,{disabled:!!t.disabled}),(0,i.jsx)(M,{connection_key:t.key,disabled:!!t.disabled,name:null!==(n=t.name)&&void 0!==n?n:t.key,connection_type:t.connection_type,access_type:t.access})]}),(0,i.jsx)(s.xvT,{color:"gray.600",fontSize:"sm",fontWeight:"sm",lineHeight:"20px",children:t.description?t.description:(0,i.jsx)("br",{})}),(0,i.jsxs)(s.xvT,{color:"gray.600",fontSize:"sm",fontWeight:"sm",lineHeight:"20px",children:["Edited on ",(0,r.p6)(t.updated_at)]}),(0,i.jsxs)(s.kCb,{mt:"0px",justifyContent:"center",alignItems:"center",children:[(0,i.jsx)(Z.s,{succeeded:t.last_test_succeeded,timestamp:t.last_test_timestamp||""}),(0,i.jsx)(s.LZC,{}),(0,i.jsx)(s.wpx,{size:"small",onClick:()=>{c(t.key)},loading:d.isLoading||d.isFetching,children:"Test"})]})]})};let R=()=>{let e=(0,c.I0)(),n=(0,a.C)(u.dR);return{...n,handleNextPage:()=>{e((0,u.YA)(n.page+1))},handlePreviousPage:()=>{e((0,u.YA)(n.page-1))}}};var W=e=>{let{items:n=[],total:t=0}=e,{page:r,size:o,handleNextPage:a,handlePreviousPage:l}=R(),c=C()(n,3);return(0,i.jsxs)(i.Fragment,{children:[c.map((e,n,t)=>{let{length:r}=t;return(0,i.jsx)(s.xuv,{className:_()["grid-row"],borderBottomWidth:r>1&&n===r-1&&3===e.length?"0.5px":void 0,"data-testid":"connection-grid",children:(0,i.jsx)(s.MIq,{columns:3,children:e.map(e=>(0,i.jsx)(s.xuv,{className:_()["grid-item"],children:(0,i.jsx)(I,{connectionData:e})},e.key))})},JSON.stringify(e))}),(0,i.jsx)(j,{page:r,size:o,total:t,handleNextPage:a,handlePreviousPage:l})]})},P=e=>{let{hasFilters:n}=e;return(0,i.jsxs)(s.kCb,{bg:"gray.50",width:"100%",height:"340px",justifyContent:"center",alignItems:"center",flexDirection:"column","data-testid":"connections-empty-state",children:[(0,i.jsx)(s.xvT,{color:"black",fontSize:"x-large",lineHeight:"32px",fontWeight:"600",mb:"7px",children:n?"No connections found":"All of your connections have been linked!"}),(0,i.jsx)(s.xvT,{color:"gray.600",fontSize:"sm",lineHeight:"20px",mb:"11px",children:n?"Modify your search parameters":"You are ready to upgrade Fides"})]})},A=t(25980),D=t(58754),F=t(86677),B=()=>{let e=(0,F.useRouter)();return(0,i.jsx)(s.wpx,{onClick:()=>e.push(h.Ss[1].href),type:"primary",children:"Create new connection"})},L=()=>{let e=(0,A.hz)();return(0,i.jsx)(D.Z,{heading:"Unlinked Connections",rightContent:e.flags.standaloneConnections&&(0,i.jsx)(B,{}),children:(0,i.jsx)(s.xuv,{maxWidth:"450px",children:(0,i.jsxs)(s.xvT,{fontSize:"sm",children:["Connections are now created in the"," ",(0,i.jsx)(s.rUS,{color:"complimentary.500",href:T.xo,children:"system configuration"})," ","section. You can link existing connections to a new or existing system."]})})})},O=()=>{var e;let n=(0,o.useRef)(!1),t=(0,a.T)(),{connectionOptions:c}=(0,a.C)(l.ZZ),d=(0,a.C)(u.dR),[g,x]=(0,o.useState)(d),f=(0,o.useRef)((0,r.Ds)(e=>x(e),250)),{data:h}=(0,l.$I)({search:""},{skip:c.length>0}),{data:p,isFetching:m,isLoading:v,isSuccess:j}=(0,u.AZ)(g),b=(null==p?void 0:null===(e=p.items)||void 0===e?void 0:e.length)>0,C=!!d.search||!!d.connection_type||!!d.system_type||!!d.disabled_status||!!d.test_status;return(0,o.useEffect)(()=>{t((0,u.um)(!0))},[t]),(0,o.useEffect)(()=>(n.current=!0,0===c.length&&(null==h?void 0:h.items)&&t((0,l.fP)(h.items)),f.current(d),()=>{n.current=!1}),[c.length,null==h?void 0:h.items,t,d]),(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(L,{}),n.current&&(0,i.jsx)(y,{}),(m||v)&&(0,i.jsx)(s.M5Y,{children:(0,i.jsx)(s.$jN,{})}),n.current&&j&&(b?(0,i.jsx)(W,{items:null==p?void 0:p.items,total:null==p?void 0:p.total}):(0,i.jsx)(P,{hasFilters:C}))]})},H=t(1226),K=()=>(0,i.jsx)(H.Z,{children:(0,i.jsx)(O,{})})},40542:function(e){e.exports={"grid-row":"ConnectionGrid_grid-row__Cv_Zf","grid-item":"ConnectionGrid_grid-item__xP7eK"}}},function(e){e.O(0,[2888,9774,179],function(){return e(e.s=98720)}),_N_E=e.O()}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5405],{49536:function(e,n,s){(window.__NEXT_P=window.__NEXT_P||[]).push(["/",function(){return s(39461)}])},69e3:function(e,n,s){"use strict";var i=s(24246),t=s(96306),r=s(91507),o=s.n(r);n.Z=e=>{let{color:n,description:s,title:r,icon:a}=e;return(0,i.jsx)(t.xuv,{borderLeft:"9px solid ".concat(n),borderRadius:"6px",className:o().container,children:(0,i.jsxs)(t.V4A,{className:o().card,"data-testid":"tile-".concat(r),children:[(0,i.jsxs)("div",{className:"mb-1 flex items-center gap-1.5",children:[a,(0,i.jsx)(t.AntTypography.Title,{level:3,children:r})]}),(0,i.jsx)(t.AntTypography.Text,{children:s})]})})}},77213:function(e,n,s){"use strict";s.d(n,{Z:function(){return m}});var i=s(24246),t=s(96306),r=s(88038),o=s.n(r),a=s(86677);s(27378);var c=s(25980),u=s(90867),g=s(42478),d=s(77830),l=()=>{let e=(0,a.useRouter)();return(0,i.jsx)(t.xuv,{bg:"gray.50",border:"1px solid",borderColor:"blue.400",borderRadius:"md",justifyContent:"space-between",p:5,mb:5,mt:5,children:(0,i.jsxs)(t.xuv,{children:[(0,i.jsxs)(t.Kqy,{direction:{base:"column",sm:"row"},justifyContent:"space-between",children:[(0,i.jsx)(t.xvT,{fontWeight:"semibold",children:"Configure your storage and messaging provider"}),(0,i.jsx)(t.wpx,{onClick:()=>{e.push(d.AD)},children:"Configure"})]}),(0,i.jsxs)(t.xvT,{children:["Before Fides can process your privacy requests we need two simple steps to configure your storage and email client."," "]})]})})},m=e=>{let{children:n,title:s,padded:r=!0,mainProps:d}=e,m=(0,c.hz)(),f=(0,a.useRouter)(),p="/privacy-requests"===f.pathname||"/datastore-connection"===f.pathname,y=!(m.flags.messagingConfiguration&&p),{data:h}=(0,g.JE)(void 0,{skip:y}),{data:x}=(0,u.PW)(void 0,{skip:y}),S=m.flags.messagingConfiguration&&(!h||!x)&&p;return(0,i.jsxs)(t.kCb,{"data-testid":s,direction:"column",h:"100vh",children:[(0,i.jsxs)(o(),{children:[(0,i.jsxs)("title",{children:["Fides Admin UI - ",s]}),(0,i.jsx)("meta",{name:"description",content:"Privacy Engineering Platform"}),(0,i.jsx)("link",{rel:"icon",href:"/favicon.ico"})]}),(0,i.jsxs)(t.kCb,{as:"main",direction:"column",py:r?6:0,px:r?10:0,h:r?"calc(100% - 48px)":"full",flex:1,minWidth:0,overflow:"auto",...d,children:[S?(0,i.jsx)(l,{}):null,n]})]})}},42478:function(e,n,s){"use strict";s.d(n,{FU:function(){return u},JE:function(){return t},Ki:function(){return d},SU:function(){return l},W:function(){return m},h9:function(){return r},jc:function(){return i},qt:function(){return c},sn:function(){return g}});let{useGetEmailInviteStatusQuery:i,useGetActiveMessagingProviderQuery:t,useCreateMessagingConfigurationMutation:r,useCreateMessagingConfigurationSecretsMutation:o,useGetMessagingConfigurationDetailsQuery:a,useGetMessagingConfigurationsQuery:c,useGetMessagingConfigurationByKeyQuery:u,useUpdateMessagingConfigurationByKeyMutation:g,useUpdateMessagingConfigurationSecretsByKeyMutation:d,useCreateTestConnectionMessageMutation:l,useDeleteMessagingConfigurationByKeyMutation:m}=s(78780).u.injectEndpoints({endpoints:e=>({getEmailInviteStatus:e.query({query:()=>({url:"/messaging/email-invite/status"}),providesTags:()=>["Email Invite Status"]}),createMessagingConfiguration:e.mutation({query:e=>({url:"messaging/config",method:"POST",body:e}),invalidatesTags:["Messaging Config","Configuration Settings"]}),getActiveMessagingProvider:e.query({queryFn:async(e,n,s,i)=>{let t=await i({url:"messaging/default/active"});return t.error&&404===t.error.status?{data:null}:t},providesTags:["Messaging Config"]}),createMessagingConfigurationSecrets:e.mutation({query:e=>({url:"messaging/default/".concat(e.service_type,"/secret"),method:"PUT",body:e.details}),invalidatesTags:["Messaging Config","Configuration Settings"]}),getMessagingConfigurationDetails:e.query({query:e=>({url:"messaging/default/".concat(e.type)}),providesTags:["Messaging Config"]}),getMessagingConfigurations:e.query({query:()=>({url:"messaging/config"}),providesTags:["Messaging Config"]}),getMessagingConfigurationByKey:e.query({query:e=>({url:"messaging/config/".concat(e.key)}),providesTags:["Messaging Config"]}),createTestConnectionMessage:e.mutation({query:e=>({url:"messaging/test/".concat(e.service_type),method:"POST",body:e.details}),invalidatesTags:["Messaging Config"]}),updateMessagingConfigurationByKey:e.mutation({query:e=>({url:"messaging/config/".concat(e.key),method:"PATCH",body:e.config}),invalidatesTags:["Messaging Config","Configuration Settings"]}),updateMessagingConfigurationSecretsByKey:e.mutation({query:e=>({url:"messaging/config/".concat(e.key,"/secret"),method:"PUT",body:e.secrets}),invalidatesTags:["Messaging Config","Configuration Settings"]}),deleteMessagingConfigurationByKey:e.mutation({query:e=>({url:"messaging/config/".concat(e.key),method:"DELETE"}),invalidatesTags:["Messaging Config","Configuration Settings"]})})})},39461:function(e,n,s){"use strict";s.r(n),s.d(n,{default:function(){return _}});var i,t,r=s(24246),o=s(96306),a=s(27378),c=s(77213),u=s(3124),g=s.n(u),d=s(25980),l=()=>{let{systemsCount:e}=(0,d.hz)(),n=e>0;return(0,r.jsx)(o.kCb,{background:g().FIDESUI_CORINTH,children:(0,r.jsxs)(o.kCb,{flexDir:"column",maxWidth:"600px",padding:"10",paddingBottom:"16",children:[n&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(o.xvT,{fontSize:"3xl",fontWeight:"semibold",children:"Welcome back!"}),(0,r.jsx)(o.xvT,{marginTop:"1",fontSize:"lg",fontWeight:"semibold",children:"".concat(e," system").concat(e>1?"s":""," currently under management")}),(0,r.jsx)(o.xvT,{marginTop:"1",fontSize:"sm",children:"Fides is currently managing privacy for ".concat(e," system").concat(e>1?"s":"",". From here you can continue adding and managing systems, process privacy requests or generate reports for your privacy compliance requirements.")})]}),!n&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(o.xvT,{fontSize:"3xl",fontWeight:"semibold",children:"Welcome to Fides!"}),(0,r.jsx)(o.xvT,{marginTop:"1",fontSize:"lg",fontWeight:"semibold",children:"Start your privacy engineering journey today"}),(0,r.jsx)(o.xvT,{marginTop:"1",fontSize:"sm",children:"Step one in setting up your privacy engineering platform is adding the systems you need to manage. Use the links below to add and configure systems within Fides for data mapping and privacy request automation."})]})]})})},m=s(79894),f=s.n(m),p=s(16134),y=s(69e3),h=s(31793),x=s(77830),S=s(21910);(i=t||(t={}))[i.ADD_SYSTEMS=1]="ADD_SYSTEMS",i[i.VIEW_SYSTEMS=2]="VIEW_SYSTEMS",i[i.REVIEW_PRIVACY_REQUESTS=3]="REVIEW_PRIVACY_REQUESTS",i[i.VIEW_MAP=4]="VIEW_MAP",i[i.CONFIGURE_CONSENT=5]="CONFIGURE_CONSENT";let v=[{color:g().FIDESUI_SANDSTONE,description:"Explore the systems and data flow across your organization and create custom reports.",href:"".concat(x.oG),key:4,name:"View data map",sortOrder:0,title:"VM",requiresPlus:!0,requiresSystems:!0,scopes:[S.Sh.DATAMAP_READ]},{color:g().FIDESUI_OLIVE,description:"Add third party applications and databases to your data map.",href:"".concat(x.xo),key:1,name:"Add systems",sortOrder:1,title:"AS",scopes:[S.Sh.SYSTEM_CREATE]},{color:g().FIDESUI_TERRACOTTA,description:"Review system information for all systems in your organization.",href:"".concat(x.So),key:2,name:"View systems",sortOrder:2,title:"VS",scopes:[S.Sh.SYSTEM_READ],requiresSystems:!0},{color:g().FIDESUI_MINOS,description:"Review, approve and process privacy requests across your systems on behalf of your users.",href:"".concat(x.Jw),key:3,name:"Review privacy requests",sortOrder:4,title:"RP",scopes:[S.Sh.PRIVACY_REQUEST_REVIEW],requiresConnections:!0},{color:g().FIDESUI_NECTAR,description:"Manage privacy notices and experiences for all domains in your organization.",href:"".concat(x.zo),key:5,name:"Manage consent",sortOrder:5,title:"MC",scopes:[S.Sh.PRIVACY_NOTICE_READ],requiresPlus:!0}],C=e=>{let{config:n,userScopes:s,hasPlus:i=!1,flags:t}=e,r=n;r=i?r.filter(e=>!e.requiresOss):r.filter(e=>!e.requiresPlus);let o=[];r.forEach(e=>{0===e.scopes.length?o.push(e):e.scopes.filter(e=>s.includes(e)).length>0&&o.push(e)});let a=[];return o.forEach(e=>{e.requiresFlag?t[e.requiresFlag]&&a.push(e):a.push(e)}),a};var E=()=>{let{plus:e,flags:n}=(0,d.hz)(),s=(0,p.C)(h.uu),i=(0,a.useMemo)(()=>C({config:v,hasPlus:e,userScopes:s,flags:n}),[e,s,n]);return(0,r.jsx)(o.kCb,{paddingX:10,"data-testid":"home-content",children:(0,r.jsx)(o.MIq,{columns:{md:2,xl:3},spacing:"24px",children:i.sort((e,n)=>e.sortOrder>n.sortOrder?1:-1).map(e=>(0,r.jsx)(f(),{href:e.href,className:"flex",children:(0,r.jsx)(y.Z,{title:e.name,description:e.description,color:e.color})},e.key))})})},T=()=>(0,r.jsx)(c.Z,{title:"Home",padded:!1,children:(0,r.jsxs)(o.kCb,{direction:"column",gap:10,pb:6,children:[(0,r.jsx)(l,{}),(0,r.jsx)(E,{})]})}),_=()=>(0,r.jsx)(T,{})},91507:function(e){e.exports={container:"CalloutNavCard_container__DXPJb",card:"CalloutNavCard_card__q_XX6"}}},function(e){e.O(0,[2888,9774,179],function(){return e(e.s=49536)}),_N_E=e.O()}]);
|