ethyca-fides 2.67.3b1__py2.py3-none-any.whl → 2.68.0rc0__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.67.3b1.dist-info → ethyca_fides-2.68.0rc0.dist-info}/METADATA +1 -1
- {ethyca_fides-2.67.3b1.dist-info → ethyca_fides-2.68.0rc0.dist-info}/RECORD +203 -203
- fides/_version.py +3 -3
- fides/ui-build/static/admin/404.html +1 -1
- fides/ui-build/static/admin/_next/static/QlH9EstEPGgswLXq9aikH/_buildManifest.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/{1817-b78b58ae3b75d75a.js → 1817-c90365325f8a3d75.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/{1975.7d4634a0e823a02b.js → 1975.e5cc7a1ccd477671.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/{203-cd78ea279cecba60.js → 203-0c6cadcda98bdd33.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/{2921-86f1547ac40a5cdf.js → 2921-46f9465c2852a46b.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/{3450-69f4e16978971bb8.js → 3450-9314e1b15df8a8da.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/{3855-509ca7ac99b5eada.js → 3855-4267fd8193e7f525.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/{3872-0a0f0032ca39a93f.js → 3872-ac5feefd40b61ae3.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/{3923-13a6b4da2d51bf8f.js → 3923-a33633feba5e655e.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/{401-3cc1fee61494e3bd.js → 401-741bb31b586b7c96.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/{409-ea70638a59296659.js → 409-5bc4369b80a8c11d.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/{4121-877e19d3fa078c7b.js → 4121-94354b50a41f8497.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/{4230-114e31621c19ea69.js → 4230-1ebc8c0ab293a077.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/{431-1db919f6569a4021.js → 431-a34d7ceff17c2169.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/{4608-f16f281f2d05d963.js → 4608-557fb24665b2e4bf.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/{5309-d9a488457898263b.js → 5309-ffdec884eec79d29.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/{5574-9312f97b637d9ee2.js → 5574-831167a8da90e2e6.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/{6084-ddbad3149364725d.js → 6084-02abe12327fc3dbc.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/{6662-ef0edd3598b1d431.js → 6662-499c189f932a35aa.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/{6780-b42a27e72707936d.js → 6780-7d28e030f6516e5d.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/{6853-d0190d2cca9dbde2.js → 6853-270261ef5537a106.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/{6882-59ea739e3616ce83.js → 6882-7cc1d14e27a80c10.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/{6954-ba98e778a5b45ebf.js → 6954-7784e8d5ad6b8110.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/{7476-cc0d9a94ed7aad53.js → 7476-4de465016d3433b4.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/{7630-b1c93688013ef013.js → 7630-2a5c57787632693d.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/{7725-539d3a906f627531.js → 7725-c79513b04113112b.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/{787-c57185ad89c4e288.js → 787-5ba991cad1f7664a.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/{79-2aab56be75e16187.js → 79-98cfab20bb831137.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/{796-3bdda2a7868464af.js → 796-0b768155bf20505f.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/{8735-40caf91800a3610c.js → 8735-f84afcc50885883c.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/{9046-7085a401297c5520.js → 9046-97a972cc8a8ed24d.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/{9226-2dcac54ab3fb94be.js → 9226-318dadf1c050ecda.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/{9676.7fbcb6b554cda098.js → 9676.9e6828b42ef05e06.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/{9826-3c578665c6d3b21d.js → 9826-8c81c97a72510fcf.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/{9951-7c6639e5d062779e.js → 9951-4df2b67e0def5500.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/{404-2d803dab6a00f353.js → 404-9174cdb70126c2c5.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/{_app-750d6bd16c971bb9.js → _app-65723cd4b8fc36ac.js} +18 -18
- fides/ui-build/static/admin/_next/static/chunks/pages/add-systems/{manual-2a655ff3a97f2492.js → manual-621416493c89ef01.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/add-systems/{multiple-8ff7f37913ad736a.js → multiple-0b9908c3e1dfe49e.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/{add-systems-0902f0bb4080643e.js → add-systems-18e96ce81dab51a4.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/consent/configure/{add-vendors-d00c9034cdeb0236.js → add-vendors-5bb1b31ae8752250.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/consent/{configure-0e1ca0f4c8e7f4da.js → configure-54d7c7310763c66d.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/consent/privacy-experience/{[id]-f22ddd9b48a5c418.js → [id]-4e4d9426743b5cb4.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/consent/{privacy-experience-21f997c69fc3b4c2.js → privacy-experience-d72460348fadcab8.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/consent/privacy-notices/{[id]-da4124b7600a2a1d.js → [id]-3e7ddc252da00c98.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/consent/privacy-notices/{new-a57d251c88ce68ae.js → new-35a7c305beee9428.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/consent/{privacy-notices-ad105181bc91209b.js → privacy-notices-6bc3b73a21576869.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/consent/{properties-057cad65e7414a44.js → properties-ab96939421639153.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/consent/{reporting-b0c4235fe6d0b0c8.js → reporting-fe3d6887fecf0f86.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/{consent-e17c56eec8d91371.js → consent-13240e3ca77acfeb.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/data-catalog/[systemId]/projects/{[projectUrn]-80a6cc8e8573514a.js → [projectUrn]-bd37b407c80c6986.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/data-catalog/[systemId]/{projects-29784a11fe0fbd0a.js → projects-e4770acf7044e2f5.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/{data-catalog-7770a8dc34bd0fc0.js → data-catalog-0db635c3483c9da8.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/action-center/[monitorId]/{[systemId]-3e5725cd06d7fe6c.js → [systemId]-0c0e0a7798345541.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/action-center/{[monitorId]-92b0bd97d8e79340.js → [monitorId]-3c56e5fe072a44c6.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/{action-center-ee3c0a103346fc06.js → action-center-53a763e49ce34a74.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/{activity-ad6a84a6276f914c.js → activity-6a90131dcecd694c.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/{datamap-d23b3ae139f0428b.js → datamap-8f88dc31c5144ea8.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/dataset/[datasetId]/[collectionName]/{[...subfieldNames]-15301bd6bf7cf718.js → [...subfieldNames]-145fe9e4cfcb231d.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/dataset/[datasetId]/{[collectionName]-0fa72873e464f581.js → [collectionName]-8a1e5d140785c1e9.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/dataset/{[datasetId]-a8e8b5f4ee7af86c.js → [datasetId]-227b5db4b472a6a7.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/dataset/{new-0d50084fbdf9b84c.js → new-8401f17fe5d9a1dc.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/{dataset-f3348d0a92543bab.js → dataset-7d77b3ad069be268.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/datastore-connection/{[id]-7d6027570d05c57f.js → [id]-67a7fe58b96ea739.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/datastore-connection/{new-c6614583b14dc9f2.js → new-90a8df230cb89877.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/{datastore-connection-3bd77864da523d41.js → datastore-connection-cfb25b02abb8da71.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/{index-fbf9b845bb901238.js → index-876bfd7210040cec.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/integrations/{[id]-330475705adbd36f.js → [id]-766e57bcf38b5b1e.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/{integrations-7f15cd8538cdc24d.js → integrations-3fdc55d4c129e618.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/messaging/{[id]-5627d0d0668077f9.js → [id]-6e796c3fe632280b.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/messaging/{add-template-feca66ad5c5fe54a.js → add-template-fa0f3841c5bdfdeb.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/{messaging-1bae386d8c190348.js → messaging-8f9c006b6166f002.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/poc/{ant-components-64a322d01aae5ca7.js → ant-components-6ba7ae4f26c06cb0.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/poc/form-experiments/{AntForm-8bca16a7726e7eb2.js → AntForm-11503454a62d8d7b.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/poc/form-experiments/{FormikAntFormItem-b0f246fc3b67ebf7.js → FormikAntFormItem-a504941807bdb7f1.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/poc/form-experiments/{FormikControlled-1a0852b090bfc392.js → FormikControlled-0119403c8ff97f83.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/poc/form-experiments/{FormikField-11f3de1b45e36583.js → FormikField-94f6d57d6c94ddf7.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/poc/{forms-1b73a1c2b6c6285f.js → forms-ed1a3ae09d72df89.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/poc/{table-migration-05616e2ae20ff4f8.js → table-migration-e8db3ad525e7ddbd.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/privacy-requests/[id]-c14dd24592369467.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/privacy-requests/configure/{messaging-f1d818242d8550f8.js → messaging-100d7d03930629a8.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/privacy-requests/configure/{storage-d40a26bddb126c5c.js → storage-6f8d1b3ec83cfcf0.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/privacy-requests/{configure-e551a860ec727802.js → configure-3ce15577435d47cb.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/{privacy-requests-96a08c4431b5462c.js → privacy-requests-f43a988542813110.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/properties/{[id]-dd99183f93763ae4.js → [id]-41976b28503623cd.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/properties/{add-property-0bdbc1fcbf553b8f.js → add-property-cb438d8f5ec6007a.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/{properties-e959378bb32b6b73.js → properties-b6db7036993709b3.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/reporting/{datamap-9d1840f8309b706e.js → datamap-4bc3e281409265cc.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/settings/about/{alpha-1066f0c202ef744c.js → alpha-1ea40fcd6b4268bf.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/settings/{about-37ba24a72a06862e.js → about-65c7600fadc6e55a.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/settings/consent/[configuration_id]/{[purpose_id]-e891d01ece59669e.js → [purpose_id]-33dab986141b3663.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/settings/{consent-f61b87e79367865b.js → consent-1195042727c399ed.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/settings/{custom-fields-f8eea5d508c60c64.js → custom-fields-71b98858ecb4e097.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/settings/{domain-records-51333dbd21cb37c8.js → domain-records-386368bf7cb31771.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/settings/{domains-bde86e5f6c09da5a.js → domains-cf427e04f862b5d2.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/settings/{email-templates-4f9a5cc8bea7725b.js → email-templates-eabeeec5bf2773c6.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/settings/{locations-ed6a140b362c5baa.js → locations-b41fb5ad277088ab.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/settings/{organization-ff9a34264d48c35f.js → organization-ee56698ae3a6a78b.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/settings/{regulations-102efd9199e87124.js → regulations-a94dfeea43fbca7d.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/systems/configure/[id]/{test-datasets-a4b6d41ca679298b.js → test-datasets-0e2e98cc38ee5499.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/systems/configure/{[id]-c8f5fbaa83dd9945.js → [id]-18b316e2dad73731.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/{systems-c05b49ddec1a1b4f.js → systems-c32589c86081b750.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/{taxonomy-df0d88716578e295.js → taxonomy-a8f09bf8f3204ca7.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/user-management/profile/{[id]-da68efc31998dc66.js → [id]-3237881945acc0ee.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/{user-management-e98dfc7d4f2a4e16.js → user-management-a3a50d9d79066935.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/{webpack-90e8ec1fc5c6455b.js → webpack-69658aeaf6155d89.js} +1 -1
- fides/ui-build/static/admin/_next/static/css/{8bc1833f1fa53ff0.css → 073713cd1eddda79.css} +1 -1
- fides/ui-build/static/admin/_next/static/css/{ab65b8cc3144bfc8.css → 0b4b1b65cc874774.css} +1 -1
- fides/ui-build/static/admin/_next/static/css/{d9924caa849931b3.css → e1628f15dd5f019b.css} +1 -1
- 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-preview.js +1 -1
- fides/ui-build/static/admin/lib/fides-tcf.js +3 -3
- fides/ui-build/static/admin/lib/fides.js +3 -3
- fides/ui-build/static/admin/login/[provider].html +1 -1
- fides/ui-build/static/admin/login.html +1 -1
- fides/ui-build/static/admin/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/messaging.html +1 -1
- fides/ui-build/static/admin/privacy-requests/configure/storage.html +1 -1
- fides/ui-build/static/admin/privacy-requests/configure.html +1 -1
- fides/ui-build/static/admin/privacy-requests.html +1 -1
- fides/ui-build/static/admin/properties/[id].html +1 -1
- fides/ui-build/static/admin/properties/add-property.html +1 -1
- fides/ui-build/static/admin/properties.html +1 -1
- fides/ui-build/static/admin/reporting/datamap.html +1 -1
- fides/ui-build/static/admin/settings/about/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/organization.html +1 -1
- fides/ui-build/static/admin/settings/regulations.html +1 -1
- fides/ui-build/static/admin/systems/configure/[id]/test-datasets.html +1 -1
- fides/ui-build/static/admin/systems/configure/[id].html +1 -1
- fides/ui-build/static/admin/systems.html +1 -1
- fides/ui-build/static/admin/taxonomy.html +1 -1
- fides/ui-build/static/admin/user-management/new.html +1 -1
- fides/ui-build/static/admin/user-management/profile/[id].html +1 -1
- fides/ui-build/static/admin/user-management.html +1 -1
- fides/ui-build/static/admin/_next/static/KAV7vwBbSuOInfCyClBs2/_buildManifest.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/privacy-requests/[id]-79f1576b1126975c.js +0 -1
- {ethyca_fides-2.67.3b1.dist-info → ethyca_fides-2.68.0rc0.dist-info}/WHEEL +0 -0
- {ethyca_fides-2.67.3b1.dist-info → ethyca_fides-2.68.0rc0.dist-info}/entry_points.txt +0 -0
- {ethyca_fides-2.67.3b1.dist-info → ethyca_fides-2.68.0rc0.dist-info}/licenses/LICENSE +0 -0
- {ethyca_fides-2.67.3b1.dist-info → ethyca_fides-2.68.0rc0.dist-info}/top_level.txt +0 -0
- /fides/ui-build/static/admin/_next/static/{KAV7vwBbSuOInfCyClBs2 → QlH9EstEPGgswLXq9aikH}/_ssgManifest.js +0 -0
- /fides/ui-build/static/admin/_next/static/chunks/{5596-4378b2927dae65b2.js → 5596-bb601cbf40e47a0f.js} +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[165],{21865:function(e,t,a){(window.__NEXT_P=window.__NEXT_P||[]).push(["/data-catalog/[systemId]/projects",function(){return a(98791)}])},79609:function(e,t,a){"use strict";a.d(t,{N4:function(){return n},UG:function(){return o},xw:function(){return i}});var s=a(54427);let{useGetCatalogSystemsQuery:o,useGetCatalogProjectsQuery:i,useGetCatalogDatasetsQuery:n}=a(78780).u.injectEndpoints({endpoints:e=>({getCatalogSystems:e.query({query:e=>({method:"GET",url:"/plus/data-catalog/system",params:e}),providesTags:["Catalog Systems","System"]}),getCatalogProjects:e.query({query:e=>{let{...t}=e;return{method:"GET",url:"/plus/data-catalog/project",params:t}},providesTags:["Discovery Monitor Results"]}),getCatalogDatasets:e.query({query:e=>{let{...t}=e;return{method:"GET",url:"/plus/data-catalog/dataset",params:t}},providesTags:["Discovery Monitor Results"]})})});(0,s.oM)({name:"dataCatalog",initialState:{page:1,pageSize:50},reducers:{}})},98791:function(e,t,a){"use strict";a.r(t),a.d(t,{default:function(){return S}});var s=a(24246),o=a(86677),i=a(18225),n=a(77213),r=a(77830),l=a(58754),u=a(92222),d=a(59003),c=a(
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[165],{21865:function(e,t,a){(window.__NEXT_P=window.__NEXT_P||[]).push(["/data-catalog/[systemId]/projects",function(){return a(98791)}])},79609:function(e,t,a){"use strict";a.d(t,{N4:function(){return n},UG:function(){return o},xw:function(){return i}});var s=a(54427);let{useGetCatalogSystemsQuery:o,useGetCatalogProjectsQuery:i,useGetCatalogDatasetsQuery:n}=a(78780).u.injectEndpoints({endpoints:e=>({getCatalogSystems:e.query({query:e=>({method:"GET",url:"/plus/data-catalog/system",params:e}),providesTags:["Catalog Systems","System"]}),getCatalogProjects:e.query({query:e=>{let{...t}=e;return{method:"GET",url:"/plus/data-catalog/project",params:t}},providesTags:["Discovery Monitor Results"]}),getCatalogDatasets:e.query({query:e=>{let{...t}=e;return{method:"GET",url:"/plus/data-catalog/dataset",params:t}},providesTags:["Discovery Monitor Results"]})})});(0,s.oM)({name:"dataCatalog",initialState:{page:1,pageSize:50},reducers:{}})},98791:function(e,t,a){"use strict";a.r(t),a.d(t,{default:function(){return S}});var s=a(24246),o=a(86677),i=a(18225),n=a(77213),r=a(77830),l=a(58754),u=a(92222),d=a(59003),c=a(27824),g=a(27378),m=a(47935),p=a(72625),f=a(89200),x=a(5945),h=a(79609),j=a(99763),y=a(28976),C=a(8151);let w={items:[],total:0,page:1,size:50,pages:1},_=()=>(0,s.jsx)(c.gCW,{mt:6,p:10,spacing:4,borderRadius:"base",maxW:"70%","data-testid":"empty-state",alignSelf:"center",margin:"auto",children:(0,s.jsx)(c.gCW,{children:(0,s.jsx)(c.xvT,{fontSize:"md",fontWeight:"600",children:"No resources found"})})}),v=(0,u.Cl)();var R=e=>{let{systemKey:t,monitorConfigIds:a}=e,[i,n]=(0,g.useState)({}),{PAGE_SIZES:l,pageSize:c,setPageSize:R,onPreviousPageClick:b,isPreviousPageDisabled:S,onNextPageClick:P,isNextPageDisabled:E,startRange:k,endRange:D,pageIndex:N,setTotalPages:T}=(0,m.oi)(),{isFetching:M,isLoading:z,data:I}=(0,h.xw)({page:N,size:c,monitor_config_ids:a}),Z=(0,o.useRouter)(),{items:q,total:G,pages:V}=(0,g.useMemo)(()=>null!=I?I:w,[I]);(0,g.useEffect)(()=>{T(V)},[V,T]);let[W,X]=(0,g.useState)(void 0),U=(0,g.useMemo)(()=>[v.accessor(e=>e.name,{id:"name",cell:e=>(0,s.jsx)(f.Z,{resource:e.row.original}),header:"Project"}),v.display({id:"status",cell:e=>{let{row:t}=e;return(0,s.jsx)(x.Z,{status:(0,C.u)(t.original)})},header:"Status"}),v.accessor(e=>e.monitor_config_id,{id:"monitorConfigId",cell:e=>(0,s.jsx)(m.G3,{value:e.getValue()}),header:"Detected by"}),v.accessor(e=>e.description,{id:"description",cell:e=>(0,s.jsx)(m.G3,{value:e.getValue()}),header:"Description"}),v.accessor(e=>e.updated_at,{id:"lastUpdated",cell:e=>(0,s.jsx)(p.Cy,{time:e.getValue()}),header:"Updated",meta:{cellProps:{borderRight:"none"}}}),v.display({id:"actions",cell:e=>{let{row:t}=e;return(0,s.jsx)(y.Z,{onDetailClick:()=>X(t.original)})},size:25,meta:{disableRowClick:!0}})],[]),K=(0,d.b7)({getCoreRowModel:(0,u.sC)(),getGroupedRowModel:(0,u.qe)(),getExpandedRowModel:(0,u.rV)(),manualPagination:!0,columnResizeMode:"onChange",columns:U,data:q,getRowId:e=>e.urn,onRowSelectionChange:n,state:{rowSelection:i}});return z||M?(0,s.jsx)(m.I4,{rowHeight:36,numRows:36}):(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(m.ZK,{tableInstance:K,emptyTableNotice:(0,s.jsx)(_,{}),onRowClick:e=>Z.push("".concat(r.mX,"/").concat(t,"/projects/").concat(e.urn))}),(0,s.jsx)(m.s8,{totalRows:G||0,pageSizes:l,setPageSize:R,onPreviousPageClick:b,isPreviousPageDisabled:S,onNextPageClick:P,isNextPageDisabled:E,startRange:k,endRange:D}),(0,s.jsx)(j.Z,{resource:W,onClose:()=>X(void 0)})]})},b=a(1315),S=()=>{var e;let{query:t}=(0,o.useRouter)(),a=t.systemId,u=t.monitor_config_ids,{data:d,isLoading:c}=(0,b.rn)(a);return c?(0,s.jsx)(i.Z,{}):(0,s.jsxs)(n.Z,{title:"Data catalog",children:[(0,s.jsx)(l.Z,{heading:"Data catalog",breadcrumbItems:[{title:"All systems",href:r.mX},{title:null!==(e=null==d?void 0:d.name)&&void 0!==e?e:null==d?void 0:d.fides_key}]}),(0,s.jsx)(R,{systemKey:a,monitorConfigIds:u})]})}}},function(e){e.O(0,[8765,9278,5163,409,6882,2888,9774,179],function(){return e(e.s=21865)}),_N_E=e.O()}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4231],{66248:function(e,s,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/data-catalog",function(){return t(99375)}])},77213:function(e,s,t){"use strict";t.d(s,{Z:function(){return m}});var a=t(24246),i=t(13577),n=t(88038),l=t.n(n),r=t(86677);t(27378);var o=t(25980),d=t(90867),c=t(77830),u=()=>{let e=(0,r.useRouter)();return(0,a.jsx)(i.xuv,{bg:"gray.50",border:"1px solid",borderColor:"blue.400",borderRadius:"md",justifyContent:"space-between",p:5,mb:5,mt:5,children:(0,a.jsxs)(i.xuv,{children:[(0,a.jsxs)(i.Kqy,{direction:{base:"column",sm:"row"},justifyContent:"space-between",children:[(0,a.jsx)(i.xvT,{fontWeight:"semibold",children:"Configure your storage and messaging provider"}),(0,a.jsx)(i.wpx,{onClick:()=>{e.push(c.fz)},children:"Configure"})]}),(0,a.jsxs)(i.xvT,{children:["Before Fides can process your privacy requests we need two simple steps to configure your storage and email client."," "]})]})})},m=e=>{let{children:s,title:t,padded:n=!0,mainProps:c}=e,m=(0,o.hz)(),p=(0,r.useRouter)(),x="/privacy-requests"===p.pathname||"/datastore-connection"===p.pathname,h=!(m.flags.privacyRequestsConfiguration&&x),{data:j}=(0,d.JE)(void 0,{skip:h}),{data:v}=(0,d.PW)(void 0,{skip:h}),g=m.flags.privacyRequestsConfiguration&&(!j||!v)&&x;return(0,a.jsxs)(i.kCb,{"data-testid":t,direction:"column",h:"100vh",children:[(0,a.jsxs)(l(),{children:[(0,a.jsxs)("title",{children:["Fides Admin UI - ",t]}),(0,a.jsx)("meta",{name:"description",content:"Privacy Engineering Platform"}),(0,a.jsx)("link",{rel:"icon",href:"/favicon.ico"})]}),(0,a.jsxs)(i.kCb,{as:"main",direction:"column",py:n?6:0,px:n?10:0,h:n?"calc(100% - 48px)":"full",flex:1,minWidth:0,overflow:"auto",...c,children:[g?(0,a.jsx)(u,{}):null,s]})]})}},79789:function(e,s,t){"use strict";t.d(s,{Hn:function(){return r},XU:function(){return l},Z5:function(){return o},aG:function(){return u},cB:function(){return n},hX:function(){return c},vQ:function(){return d}});var a=t(24246),i=t(13577);let n=e=>{let{text:s,...t}=e;return(0,a.jsx)(i.X6q,{fontSize:"sm",mt:4,mb:1,...t,children:s})},l=e=>{let{children:s}=e;return(0,a.jsx)(i.xvT,{fontSize:"14px",mb:4,children:s})},r=e=>{let{children:s,href:t}=e;return(0,a.jsx)(i.rUS,{href:t,textDecoration:"underline",isExternal:!0,children:s})},o=e=>{let{children:s}=e;return(0,a.jsx)(i.QI$,{fontSize:"14px",mb:4,children:s})},d=e=>{let{children:s}=e;return(0,a.jsx)(i.GSI,{fontSize:"14px",mb:4,ml:6,children:s})},c=e=>{let{children:s}=e;return(0,a.jsx)(i.EKh,{display:"block",whiteSpace:"pre",p:4,mb:4,overflowX:"scroll",children:s})},u=e=>{let{data:s}=e;return(0,a.jsxs)(i.iA_,{fontSize:"14px",children:[(0,a.jsx)(i.hrZ,{children:(0,a.jsxs)(i.Tr,{children:[(0,a.jsx)(i.Th,{children:"Permission"}),(0,a.jsx)(i.Th,{children:"Description"})]})}),(0,a.jsx)(i.p3B,{children:s.map(e=>(0,a.jsxs)(i.Tr,{children:[(0,a.jsx)(i.Td,{children:(0,a.jsx)(i.Vp9,{children:e.permission})}),(0,a.jsx)(i.Td,{children:e.description})]},e.permission))})]})}},83099:function(e,s,t){"use strict";var a=t(24246),i=t(79283),n=t(34929);s.Z=e=>{let{selectedTaxonomies:s,showDisabled:t=!1,...l}=e,{getDataUseDisplayNameProps:r,getDataUses:o}=(0,n.Z)(),d=(t?o():o().filter(e=>e.active)).filter(e=>!s.includes(e.fides_key)).map(e=>{let{name:s,primaryName:t}=r(e.fides_key);return{value:e.fides_key,name:s,primaryName:t,description:e.description||""}});return(0,a.jsx)(i.l,{options:d,...l})}},97181:function(e,s,t){"use strict";t.d(s,{d:function(){return d}});var a=t(24246),i=t(13577),n=t(34090),l=t(27378),r=t(46238),o=t(40324);let d=e=>{let{name:s,label:t,labelProps:d,tooltip:c,isRequired:u,layout:m="inline",helperText:p,...x}=e,[h,j,{setValue:v}]=(0,n.U$)(s),g=!!(j.touched&&j.error),[f,y]=(0,l.useState)("");h.value||"tags"!==x.mode&&"multiple"!==x.mode||(h.value=[]),"tags"===x.mode&&"string"==typeof h.value&&(h.value=[h.value]);let b="tags"===x.mode?(e,s)=>e?e.value!==f||h.value.includes(f)?x.optionRender?x.optionRender(e,s):e.label:'Create "'.concat(f,'"'):void 0:x.optionRender||void 0,_=e=>{y(e),x.onSearch&&x.onSearch(e)},w=(e,s)=>{v(e),x.onChange&&x.onChange(e,s)};return"inline"===m?(0,a.jsx)(i.NIc,{isInvalid:g,isRequired:u,children:(0,a.jsxs)(i.rjZ,{templateColumns:t?"1fr 3fr":"1fr",children:[t?(0,a.jsx)(o.__,{htmlFor:x.id||s,...d,children:t}):null,(0,a.jsxs)(i.jqI,{align:"center",children:[(0,a.jsxs)(i.jqI,{vertical:!0,flex:1,className:"mr-2",children:[(0,a.jsx)(i.WPr,{...h,id:x.id||s,"data-testid":"controlled-select-".concat(h.name),...x,optionRender:b,onSearch:"tags"===x.mode?_:void 0,onChange:w,value:h.value||void 0,status:g?"error":void 0}),p&&(0,a.jsx)(i.Q6r,{children:p}),(0,a.jsx)(o.Bc,{isInvalid:g,message:j.error,fieldName:h.name})]}),(0,a.jsx)(r.b,{label:c,className:g?"mt-2 self-start":void 0})]})]})}):(0,a.jsx)(i.NIc,{isInvalid:g,isRequired:u,children:(0,a.jsxs)(i.gCW,{alignItems:"start",children:[(0,a.jsxs)(i.jqI,{align:"center",children:[t?(0,a.jsx)(o.__,{htmlFor:x.id||s,fontSize:"xs",my:0,mr:1,...d,children:t}):null,(0,a.jsx)(r.b,{label:c})]}),(0,a.jsx)(i.WPr,{...h,id:x.id||s,"data-testid":"controlled-select-".concat(h.name),...x,optionRender:b,onSearch:"tags"===x.mode?_:void 0,onChange:w,value:h.value||void 0,status:g?"error":void 0}),p&&(0,a.jsx)(i.Q6r,{style:{marginTop:0},children:p}),(0,a.jsx)(o.Bc,{isInvalid:g,message:j.error,fieldName:h.name})]})})}},8133:function(e,s,t){"use strict";var a=t(24246),i=t(13577);s.Z=e=>{let{title:s,children:t,isOpen:n,onClose:l,modalContentProps:r,showCloseButton:o=!1,footer:d,...c}=e;return(0,a.jsxs)(i.u_l,{isOpen:n,onClose:l,isCentered:!0,scrollBehavior:"inside",size:"xl",id:"add-modal",...c,children:[(0,a.jsx)(i.ZAr,{}),(0,a.jsxs)(i.hzk,{textAlign:"left",p:0,"data-testid":"add-modal-content",...r,children:[o&&(0,a.jsx)(i.olH,{}),(0,a.jsx)(i.xBx,{p:0,children:(0,a.jsx)(i.xuv,{backgroundColor:"gray.50",px:6,py:4,border:"1px",borderColor:"gray.200",borderTopRadius:6,display:"flex",justifyContent:"space-between",alignItems:"center",children:(0,a.jsx)(i.X6q,{as:"h3",size:"sm",children:s})})}),(0,a.jsx)(i.fef,{pb:4,overflow:"auto",children:t}),d&&(0,a.jsx)(i.mzw,{children:d})]})]})}},79609:function(e,s,t){"use strict";t.d(s,{N4:function(){return l},UG:function(){return i},xw:function(){return n}});var a=t(54427);let{useGetCatalogSystemsQuery:i,useGetCatalogProjectsQuery:n,useGetCatalogDatasetsQuery:l}=t(78780).u.injectEndpoints({endpoints:e=>({getCatalogSystems:e.query({query:e=>({method:"GET",url:"/plus/data-catalog/system",params:e}),providesTags:["Catalog Systems","System"]}),getCatalogProjects:e.query({query:e=>{let{...s}=e;return{method:"GET",url:"/plus/data-catalog/project",params:s}},providesTags:["Discovery Monitor Results"]}),getCatalogDatasets:e.query({query:e=>{let{...s}=e;return{method:"GET",url:"/plus/data-catalog/dataset",params:s}},providesTags:["Discovery Monitor Results"]})})});(0,a.oM)({name:"dataCatalog",initialState:{page:1,pageSize:50},reducers:{}})},81406:function(e,s,t){"use strict";var a=t(24246),i=t(13577);s.Z=()=>(0,a.jsxs)(i.gCW,{mt:6,p:10,spacing:4,borderRadius:"base",maxW:"70%","data-testid":"empty-state",alignSelf:"center",margin:"auto",children:[(0,a.jsx)(i.xvT,{fontSize:"md",fontWeight:"600",children:"No resources found"}),(0,a.jsx)(i.xvT,{fontSize:"sm",children:"You're up to date!"})]})},3765:function(e,s,t){"use strict";var a=t(13577),i=t(812),n=t(46628),l=t(1315),r=t(31883);s.Z=e=>{let s=(0,a.pmc)(),[t]=(0,l.qQ)(),o=t=>!!e.privacy_declarations.find(e=>e.data_use===t.data_use&&e.name===t.name)&&(s((0,n.Vo)("A declaration already exists with that data use in this system. Please supply a different data use.")),!0),d=(e,t)=>{if((0,r.D4)(e)){let t=(0,i.e$)(e.error,"An unexpected error occurred while updating the system. Please try again.");s((0,n.Vo)(t));return}return s.closeAll(),s((0,n.t5)(t?"Data use deleted":"Data use saved")),e.data.privacy_declarations},c=async(s,a)=>{let i=s.map(e=>{var s;return{...e,name:null!==(s=e.name)&&void 0!==s?s:""}}),n={...e,privacy_declarations:i};return d(await t(n),a)};return{createDataUse:async t=>{if(!o(t))return s.closeAll(),c([...e.privacy_declarations,t])},updateDataUse:async(s,t)=>{if(!(t.id!==s.id&&o(t)))return c(e.privacy_declarations.map(e=>e.id===s.id?t:e))},deleteDataUse:async s=>c(e.privacy_declarations.filter(e=>e.id!==s.id),!0),deleteDeclarationByDataUse:async s=>c(e.privacy_declarations.filter(e=>e.data_use!==s),!0)}}},54748:function(e,s,t){"use strict";var a=t(27378),i=t(54682);s.Z=()=>({legalBasisOptions:(0,a.useMemo)(()=>Object.keys(i.gP).map(e=>({value:i.gP[e],label:i.gP[e]})),[])})},28325:function(e,s,t){"use strict";var a=t(27378),i=t(54682);s.Z=()=>({specialCategoryLegalBasisOptions:(0,a.useMemo)(()=>Object.keys(i.nV).map(e=>({value:i.nV[e],label:i.nV[e]})),[])})},99375:function(e,s,t){"use strict";t.r(s),t.d(s,{default:function(){return M}});var a=t(24246),i=t(77213),n=t(58754),l=t(92222),r=t(59003),o=t(86677),d=t(27378),c=t(77830),u=t(47935),m=t(16394),p=t(79609),x=t(81406),h=t(13577),j=t(79789),v=t(83099),g=t(34929),f=t(34090),y=t(55484),b=t(97181),_=t(40324),w=t(8133),C=t(54748),k=t(28325),R=t(34151),S=t.n(R);let q=y.Ry().shape({data_use:y.Z_().required("Data use is required")});var z=e=>{let{isOpen:s,onClose:t,onSave:i,declaration:n}=e,{getDataUses:l,getDataCategories:r,getDataSubjects:o}=(0,g.Z)(),{isOpen:d,onToggle:c}=(0,h.qY0)(),u=l().map(e=>({label:e.fides_key,value:e.fides_key})),m=r().map(e=>({label:e.fides_key,value:e.fides_key})),p=o().map(e=>({label:e.fides_key,value:e.fides_key})),{legalBasisOptions:x}=(0,C.Z)(),{specialCategoryLegalBasisOptions:j}=(0,k.Z)();return(0,a.jsx)(f.J9,{initialValues:n,enableReinitialize:!0,onSubmit:e=>{i(e),t()},validationSchema:q,children:e=>{let{dirty:i,isValid:n,values:l,resetForm:r}=e;return(0,a.jsx)(w.Z,{title:"Edit data use",isOpen:s,onClose:t,children:(0,a.jsxs)(f.l0,{children:[(0,a.jsxs)(h.jqI,{vertical:!0,className:"gap-6 py-4",children:[(0,a.jsx)(b.d,{name:"data_use",label:"Data use",options:u,layout:"stacked",isRequired:!0}),(0,a.jsx)(b.d,{name:"data_categories",label:"Data categories",options:m,mode:"multiple",layout:"stacked"}),(0,a.jsx)(b.d,{name:"data_subjects",label:"Data subjects",options:p,mode:"multiple",layout:"stacked"}),(0,a.jsx)(_.j0,{name:"name",label:"Declaration name",variant:"stacked"}),(0,a.jsxs)(h.jqI,{vertical:!0,className:"gap-6 p-4 ".concat(S().advancedSettings),children:[(0,a.jsxs)(h.jqI,{className:"cursor-pointer justify-between",onClick:c,children:[(0,a.jsx)(h.xvT,{fontSize:"xs",children:"Advanced settings"}),(0,a.jsx)(h.v4q,{className:d?"rotate-180":void 0})]}),(0,a.jsx)(h.UO1,{in:d,children:(0,a.jsxs)(h.jqI,{vertical:!0,className:"gap-4",children:[(0,a.jsx)(b.d,{name:"legal_basis_for_processing",label:"Legal basis for processing",options:x,layout:"stacked"}),(0,a.jsx)(h.UO1,{in:(null==l?void 0:l.legal_basis_for_processing)==="Legitimate interests",animateOpacity:!0,style:{overflow:"visible"},children:(0,a.jsx)("div",{className:"mt-4",children:(0,a.jsx)(_.j0,{name:"impact_assessment_location",label:"Impact assessment location",tooltip:"Where is the legitimate interest impact assessment stored?",variant:"stacked"})})}),(0,a.jsx)(_.w8,{name:"flexible_legal_basis_for_processing",label:"This legal basis is flexible",tooltip:"Has the vendor declared that the legal basis may be overridden?",variant:"stacked"}),(0,a.jsx)(_.j0,{name:"retention_period",label:"Retention period (days)",tooltip:"How long is personal data retained for this purpose?",variant:"stacked"}),(0,a.jsxs)(h.Kqy,{spacing:0,children:[(0,a.jsx)(_.w8,{name:"processes_special_category_data",label:"This system processes special category data",tooltip:"Is this system processing special category data as defined by GDPR Article 9?",variant:"stacked"}),(0,a.jsx)(h.UO1,{in:null==l?void 0:l.processes_special_category_data,animateOpacity:!0,style:{overflow:"visible"},children:(0,a.jsx)("div",{className:"mt-4",children:(0,a.jsx)(b.d,{isRequired:!0,name:"special_category_legal_basis",label:"Legal basis for processing",options:j,tooltip:"What is the legal basis under which the special category data is processed?",layout:"stacked"})})})]})]})})]})]}),(0,a.jsxs)("div",{className:"flex w-full justify-between",children:[(0,a.jsx)(h.wpx,{onClick:()=>{r(),t()},children:"Cancel"}),(0,a.jsx)(h.wpx,{type:"primary",htmlType:"submit",disabled:!i||!n,loading:!1,"data-testid":"save-btn",children:"Save"})]})]})})}})},D=t(26183),N=t(3765);let T=e=>({data_use:e,data_categories:["system"]});var I=e=>{var s,t;let{system:i}=e,[n,l]=(0,d.useState)(!1),[r,o]=(0,d.useState)(void 0),{getDataUseDisplayName:c}=(0,g.Z)(),{isOpen:u,onOpen:m,onClose:p}=(0,h.qY0)(),x=e=>{o(e),m()},{createDataUse:j,deleteDeclarationByDataUse:f,updateDataUse:y}=(0,N.Z)(i),b=null!==(t=null===(s=i.privacy_declarations)||void 0===s?void 0:s.map(e=>e.data_use))&&void 0!==t?t:[];return(0,a.jsxs)(D.Z,{children:[!n&&(0,a.jsxs)(a.Fragment,{children:[b.map((e,s)=>(0,a.jsxs)(h.j8w,{"data-testid":"data-use-".concat(e),color:"white",onClick:()=>x(i.privacy_declarations[s]),closable:!0,onClose:()=>f(e),closeButtonLabel:"Remove data use",children:[(0,a.jsx)(h.PJP.I8b,{size:10}),c(e)]},e)),(0,a.jsx)(h.j8w,{onClick:()=>l(!0),"data-testid":"taxonomy-add-btn",addable:!0,"aria-label":"Add data use"}),(0,a.jsx)(z,{isOpen:u,onClose:p,onSave:e=>y(r,e),declaration:r})]}),n&&(0,a.jsx)(h.xuv,{className:"select-wrapper",position:"absolute",zIndex:10,top:"0",left:"0",width:"100%",height:"max",bgColor:"#fff",children:(0,a.jsx)(v.Z,{onChange:e=>{j(T(e)),l(!1)},selectedTaxonomies:b,onBlur:()=>l(!1),open:!0})})]})},P=e=>{var s;let{system:t,onEdit:i,onClose:n}=e;return(0,a.jsxs)(h.dys,{isOpen:!!t,onClose:n,size:"md",children:[(0,a.jsx)(h.P1B,{}),(0,a.jsxs)(h.scA,{"data-testid":"system-details",children:[(0,a.jsx)(h.OXI,{children:(null==t?void 0:t.name)||(null==t?void 0:t.fides_key)}),(0,a.jsx)(h.cCv,{}),(0,a.jsxs)(h.Ng0,{children:[(0,a.jsx)(j.cB,{text:"Title",mt:0}),(0,a.jsx)(j.XU,{children:null!==(s=null==t?void 0:t.name)&&void 0!==s?s:null==t?void 0:t.fides_key}),(null==t?void 0:t.description)&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(j.cB,{text:"Description"}),(0,a.jsx)(j.XU,{children:null==t?void 0:t.description})]}),(0,a.jsx)(j.cB,{text:"Data uses"}),(0,a.jsx)(I,{system:t})]}),(0,a.jsx)(h.zeN,{children:(0,a.jsx)(h.wpx,{onClick:i,"data-testid":"edit-system-btn",children:"Edit system"})})]})]})},Z=e=>{let{onDetailClick:s}=e;return(0,a.jsxs)(h.v2r,{children:[(0,a.jsx)(h.j2t,{as:h.wpx,size:"small",type:"text",className:"max-w-4",icon:(0,a.jsx)(h.nXP,{transform:"rotate(90deg)",ml:2}),"data-testid":"system-actions-menu"}),(0,a.jsx)(h.qyq,{children:s&&(0,a.jsx)(h.sNh,{onClick:s,"data-testid":"view-system-details",children:"View details"})})]})},E=t(70675);let B={items:[],total:0,page:1,size:50,pages:1},O=(0,l.Cl)();var U=()=>{let[e,s]=(0,d.useState)({}),t=(0,o.useRouter)(),{PAGE_SIZES:i,pageSize:n,setPageSize:h,onPreviousPageClick:j,isPreviousPageDisabled:v,onNextPageClick:g,isNextPageDisabled:f,startRange:y,endRange:b,pageIndex:_,setTotalPages:w}=(0,u.oi)(),{data:C,isLoading:k}=(0,p.UG)({page:_,size:n,show_hidden:!1}),[R]=(0,E.j3)(),{items:S,total:q,pages:z}=(0,d.useMemo)(()=>null!=C?C:B,[C]);(0,d.useEffect)(()=>{w(z)},[z,w]);let[D,N]=(0,d.useState)(void 0),T=(0,d.useMemo)(()=>S.find(e=>e.fides_key===D),[S,D]),U=async e=>{var s,a;let i=await R({connection_config_key:e.connection_configs.key,page:1,size:1}),n=!!(null==i?void 0:null===(s=i.data)||void 0===s?void 0:s.total),l=(0,m.du)(null!==(a=e.monitor_config_keys)&&void 0!==a?a:[],"monitor_config_ids"),r="".concat(c.mX,"/").concat(e.fides_key,"/").concat(n?"projects":"resources","?").concat(l);t.push(r)},M=(0,d.useMemo)(()=>[O.accessor(e=>e.name,{id:"name",cell:e=>{var s;let{getValue:t,row:i}=e;return(0,a.jsx)(u.G3,{value:t(),fontWeight:(null===(s=i.original.connection_configs)||void 0===s?void 0:s.key)?"semibold":"normal"})},header:e=>(0,a.jsx)(u.Rr,{value:"Name",...e})}),O.display({id:"data-uses",cell:e=>{let{row:s}=e;return(0,a.jsx)(I,{system:s.original})},header:e=>(0,a.jsx)(u.Rr,{value:"Data uses",...e}),meta:{disableRowClick:!0},minSize:280}),O.display({id:"actions",cell:e=>(0,a.jsx)(Z,{onDetailClick:()=>N(e.row.original.fides_key)}),maxSize:20,enableResizing:!1,meta:{cellProps:{borderLeft:"none"},disableRowClick:!0}})],[]),A=(0,r.b7)({getCoreRowModel:(0,l.sC)(),getGroupedRowModel:(0,l.qe)(),getExpandedRowModel:(0,l.rV)(),getRowId:e=>e.fides_key,manualPagination:!0,columnResizeMode:"onChange",columns:M,data:S,onRowSelectionChange:s,state:{rowSelection:e}});return k?(0,a.jsx)(u.I4,{rowHeight:36,numRows:36}):(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(u.ZK,{tableInstance:A,emptyTableNotice:(0,a.jsx)(x.Z,{}),onRowClick:U,getRowIsClickable:e=>{var s;return!!(null===(s=e.connection_configs)||void 0===s?void 0:s.key)}}),(0,a.jsx)(u.s8,{totalRows:q||0,pageSizes:i,setPageSize:h,onPreviousPageClick:j,isPreviousPageDisabled:v,onNextPageClick:g,isNextPageDisabled:f,startRange:y,endRange:b}),(0,a.jsx)(P,{system:T,onClose:()=>N(void 0),onEdit:()=>t.push({pathname:c.Dv,query:{id:D}})})]})},M=()=>(0,a.jsxs)(i.Z,{title:"Data catalog",children:[(0,a.jsx)(n.Z,{heading:"Data catalog",breadcrumbItems:[{title:"All systems"}]}),(0,a.jsx)(U,{})]})},31883:function(e,s,t){"use strict";t.d(s,{Bw:function(){return a.Bw},D4:function(){return a.D4}});var a=t(19043)},34151:function(e){e.exports={advancedSettings:"EditMinimalDataUseModal_advancedSettings___i9jS"}}},function(e){e.O(0,[8765,9278,5163,409,2888,9774,179],function(){return e(e.s=66248)}),_N_E=e.O()}]);
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4231],{66248:function(e,s,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/data-catalog",function(){return t(99375)}])},77213:function(e,s,t){"use strict";t.d(s,{Z:function(){return m}});var a=t(24246),i=t(27824),n=t(88038),l=t.n(n),r=t(86677);t(27378);var o=t(25980),d=t(90867),c=t(77830),u=()=>{let e=(0,r.useRouter)();return(0,a.jsx)(i.xuv,{bg:"gray.50",border:"1px solid",borderColor:"blue.400",borderRadius:"md",justifyContent:"space-between",p:5,mb:5,mt:5,children:(0,a.jsxs)(i.xuv,{children:[(0,a.jsxs)(i.Kqy,{direction:{base:"column",sm:"row"},justifyContent:"space-between",children:[(0,a.jsx)(i.xvT,{fontWeight:"semibold",children:"Configure your storage and messaging provider"}),(0,a.jsx)(i.wpx,{onClick:()=>{e.push(c.fz)},children:"Configure"})]}),(0,a.jsxs)(i.xvT,{children:["Before Fides can process your privacy requests we need two simple steps to configure your storage and email client."," "]})]})})},m=e=>{let{children:s,title:t,padded:n=!0,mainProps:c}=e,m=(0,o.hz)(),p=(0,r.useRouter)(),x="/privacy-requests"===p.pathname||"/datastore-connection"===p.pathname,h=!(m.flags.privacyRequestsConfiguration&&x),{data:j}=(0,d.JE)(void 0,{skip:h}),{data:v}=(0,d.PW)(void 0,{skip:h}),g=m.flags.privacyRequestsConfiguration&&(!j||!v)&&x;return(0,a.jsxs)(i.kCb,{"data-testid":t,direction:"column",h:"100vh",children:[(0,a.jsxs)(l(),{children:[(0,a.jsxs)("title",{children:["Fides Admin UI - ",t]}),(0,a.jsx)("meta",{name:"description",content:"Privacy Engineering Platform"}),(0,a.jsx)("link",{rel:"icon",href:"/favicon.ico"})]}),(0,a.jsxs)(i.kCb,{as:"main",direction:"column",py:n?6:0,px:n?10:0,h:n?"calc(100% - 48px)":"full",flex:1,minWidth:0,overflow:"auto",...c,children:[g?(0,a.jsx)(u,{}):null,s]})]})}},79789:function(e,s,t){"use strict";t.d(s,{Hn:function(){return r},XU:function(){return l},Z5:function(){return o},aG:function(){return u},cB:function(){return n},hX:function(){return c},vQ:function(){return d}});var a=t(24246),i=t(27824);let n=e=>{let{text:s,...t}=e;return(0,a.jsx)(i.X6q,{fontSize:"sm",mt:4,mb:1,...t,children:s})},l=e=>{let{children:s}=e;return(0,a.jsx)(i.xvT,{fontSize:"14px",mb:4,children:s})},r=e=>{let{children:s,href:t}=e;return(0,a.jsx)(i.rUS,{href:t,textDecoration:"underline",isExternal:!0,children:s})},o=e=>{let{children:s}=e;return(0,a.jsx)(i.QI$,{fontSize:"14px",mb:4,children:s})},d=e=>{let{children:s}=e;return(0,a.jsx)(i.GSI,{fontSize:"14px",mb:4,ml:6,children:s})},c=e=>{let{children:s}=e;return(0,a.jsx)(i.EKh,{display:"block",whiteSpace:"pre",p:4,mb:4,overflowX:"scroll",children:s})},u=e=>{let{data:s}=e;return(0,a.jsxs)(i.iA_,{fontSize:"14px",children:[(0,a.jsx)(i.hrZ,{children:(0,a.jsxs)(i.Tr,{children:[(0,a.jsx)(i.Th,{children:"Permission"}),(0,a.jsx)(i.Th,{children:"Description"})]})}),(0,a.jsx)(i.p3B,{children:s.map(e=>(0,a.jsxs)(i.Tr,{children:[(0,a.jsx)(i.Td,{children:(0,a.jsx)(i.Vp9,{children:e.permission})}),(0,a.jsx)(i.Td,{children:e.description})]},e.permission))})]})}},83099:function(e,s,t){"use strict";var a=t(24246),i=t(79283),n=t(34929);s.Z=e=>{let{selectedTaxonomies:s,showDisabled:t=!1,...l}=e,{getDataUseDisplayNameProps:r,getDataUses:o}=(0,n.Z)(),d=(t?o():o().filter(e=>e.active)).filter(e=>!s.includes(e.fides_key)).map(e=>{let{name:s,primaryName:t}=r(e.fides_key);return{value:e.fides_key,name:s,primaryName:t,description:e.description||""}});return(0,a.jsx)(i.l,{options:d,...l})}},97181:function(e,s,t){"use strict";t.d(s,{d:function(){return d}});var a=t(24246),i=t(27824),n=t(34090),l=t(27378),r=t(46238),o=t(40324);let d=e=>{let{name:s,label:t,labelProps:d,tooltip:c,isRequired:u,layout:m="inline",helperText:p,...x}=e,[h,j,{setValue:v}]=(0,n.U$)(s),g=!!(j.touched&&j.error),[f,y]=(0,l.useState)("");h.value||"tags"!==x.mode&&"multiple"!==x.mode||(h.value=[]),"tags"===x.mode&&"string"==typeof h.value&&(h.value=[h.value]);let b="tags"===x.mode?(e,s)=>e?e.value!==f||h.value.includes(f)?x.optionRender?x.optionRender(e,s):e.label:'Create "'.concat(f,'"'):void 0:x.optionRender||void 0,_=e=>{y(e),x.onSearch&&x.onSearch(e)},w=(e,s)=>{v(e),x.onChange&&x.onChange(e,s)};return"inline"===m?(0,a.jsx)(i.NIc,{isInvalid:g,isRequired:u,children:(0,a.jsxs)(i.rjZ,{templateColumns:t?"1fr 3fr":"1fr",children:[t?(0,a.jsx)(o.__,{htmlFor:x.id||s,...d,children:t}):null,(0,a.jsxs)(i.jqI,{align:"center",children:[(0,a.jsxs)(i.jqI,{vertical:!0,flex:1,className:"mr-2",children:[(0,a.jsx)(i.WPr,{...h,id:x.id||s,"data-testid":"controlled-select-".concat(h.name),...x,optionRender:b,onSearch:"tags"===x.mode?_:void 0,onChange:w,value:h.value||void 0,status:g?"error":void 0}),p&&(0,a.jsx)(i.Q6r,{children:p}),(0,a.jsx)(o.Bc,{isInvalid:g,message:j.error,fieldName:h.name})]}),(0,a.jsx)(r.b,{label:c,className:g?"mt-2 self-start":void 0})]})]})}):(0,a.jsx)(i.NIc,{isInvalid:g,isRequired:u,children:(0,a.jsxs)(i.gCW,{alignItems:"start",children:[(0,a.jsxs)(i.jqI,{align:"center",children:[t?(0,a.jsx)(o.__,{htmlFor:x.id||s,fontSize:"xs",my:0,mr:1,...d,children:t}):null,(0,a.jsx)(r.b,{label:c})]}),(0,a.jsx)(i.WPr,{...h,id:x.id||s,"data-testid":"controlled-select-".concat(h.name),...x,optionRender:b,onSearch:"tags"===x.mode?_:void 0,onChange:w,value:h.value||void 0,status:g?"error":void 0}),p&&(0,a.jsx)(i.Q6r,{style:{marginTop:0},children:p}),(0,a.jsx)(o.Bc,{isInvalid:g,message:j.error,fieldName:h.name})]})})}},8133:function(e,s,t){"use strict";var a=t(24246),i=t(27824);s.Z=e=>{let{title:s,children:t,isOpen:n,onClose:l,modalContentProps:r,showCloseButton:o=!1,footer:d,...c}=e;return(0,a.jsxs)(i.u_l,{isOpen:n,onClose:l,isCentered:!0,scrollBehavior:"inside",size:"xl",id:"add-modal",...c,children:[(0,a.jsx)(i.ZAr,{}),(0,a.jsxs)(i.hzk,{textAlign:"left",p:0,"data-testid":"add-modal-content",...r,children:[o&&(0,a.jsx)(i.olH,{}),(0,a.jsx)(i.xBx,{p:0,children:(0,a.jsx)(i.xuv,{backgroundColor:"gray.50",px:6,py:4,border:"1px",borderColor:"gray.200",borderTopRadius:6,display:"flex",justifyContent:"space-between",alignItems:"center",children:(0,a.jsx)(i.X6q,{as:"h3",size:"sm",children:s})})}),(0,a.jsx)(i.fef,{pb:4,overflow:"auto",children:t}),d&&(0,a.jsx)(i.mzw,{children:d})]})]})}},79609:function(e,s,t){"use strict";t.d(s,{N4:function(){return l},UG:function(){return i},xw:function(){return n}});var a=t(54427);let{useGetCatalogSystemsQuery:i,useGetCatalogProjectsQuery:n,useGetCatalogDatasetsQuery:l}=t(78780).u.injectEndpoints({endpoints:e=>({getCatalogSystems:e.query({query:e=>({method:"GET",url:"/plus/data-catalog/system",params:e}),providesTags:["Catalog Systems","System"]}),getCatalogProjects:e.query({query:e=>{let{...s}=e;return{method:"GET",url:"/plus/data-catalog/project",params:s}},providesTags:["Discovery Monitor Results"]}),getCatalogDatasets:e.query({query:e=>{let{...s}=e;return{method:"GET",url:"/plus/data-catalog/dataset",params:s}},providesTags:["Discovery Monitor Results"]})})});(0,a.oM)({name:"dataCatalog",initialState:{page:1,pageSize:50},reducers:{}})},81406:function(e,s,t){"use strict";var a=t(24246),i=t(27824);s.Z=()=>(0,a.jsxs)(i.gCW,{mt:6,p:10,spacing:4,borderRadius:"base",maxW:"70%","data-testid":"empty-state",alignSelf:"center",margin:"auto",children:[(0,a.jsx)(i.xvT,{fontSize:"md",fontWeight:"600",children:"No resources found"}),(0,a.jsx)(i.xvT,{fontSize:"sm",children:"You're up to date!"})]})},3765:function(e,s,t){"use strict";var a=t(27824),i=t(812),n=t(46628),l=t(1315),r=t(31883);s.Z=e=>{let s=(0,a.pmc)(),[t]=(0,l.qQ)(),o=t=>!!e.privacy_declarations.find(e=>e.data_use===t.data_use&&e.name===t.name)&&(s((0,n.Vo)("A declaration already exists with that data use in this system. Please supply a different data use.")),!0),d=(e,t)=>{if((0,r.D4)(e)){let t=(0,i.e$)(e.error,"An unexpected error occurred while updating the system. Please try again.");s((0,n.Vo)(t));return}return s.closeAll(),s((0,n.t5)(t?"Data use deleted":"Data use saved")),e.data.privacy_declarations},c=async(s,a)=>{let i=s.map(e=>{var s;return{...e,name:null!==(s=e.name)&&void 0!==s?s:""}}),n={...e,privacy_declarations:i};return d(await t(n),a)};return{createDataUse:async t=>{if(!o(t))return s.closeAll(),c([...e.privacy_declarations,t])},updateDataUse:async(s,t)=>{if(!(t.id!==s.id&&o(t)))return c(e.privacy_declarations.map(e=>e.id===s.id?t:e))},deleteDataUse:async s=>c(e.privacy_declarations.filter(e=>e.id!==s.id),!0),deleteDeclarationByDataUse:async s=>c(e.privacy_declarations.filter(e=>e.data_use!==s),!0)}}},54748:function(e,s,t){"use strict";var a=t(27378),i=t(54682);s.Z=()=>({legalBasisOptions:(0,a.useMemo)(()=>Object.keys(i.gP).map(e=>({value:i.gP[e],label:i.gP[e]})),[])})},28325:function(e,s,t){"use strict";var a=t(27378),i=t(54682);s.Z=()=>({specialCategoryLegalBasisOptions:(0,a.useMemo)(()=>Object.keys(i.nV).map(e=>({value:i.nV[e],label:i.nV[e]})),[])})},99375:function(e,s,t){"use strict";t.r(s),t.d(s,{default:function(){return M}});var a=t(24246),i=t(77213),n=t(58754),l=t(92222),r=t(59003),o=t(86677),d=t(27378),c=t(77830),u=t(47935),m=t(16394),p=t(79609),x=t(81406),h=t(27824),j=t(79789),v=t(83099),g=t(34929),f=t(34090),y=t(55484),b=t(97181),_=t(40324),w=t(8133),C=t(54748),k=t(28325),R=t(34151),S=t.n(R);let q=y.Ry().shape({data_use:y.Z_().required("Data use is required")});var z=e=>{let{isOpen:s,onClose:t,onSave:i,declaration:n}=e,{getDataUses:l,getDataCategories:r,getDataSubjects:o}=(0,g.Z)(),{isOpen:d,onToggle:c}=(0,h.qY0)(),u=l().map(e=>({label:e.fides_key,value:e.fides_key})),m=r().map(e=>({label:e.fides_key,value:e.fides_key})),p=o().map(e=>({label:e.fides_key,value:e.fides_key})),{legalBasisOptions:x}=(0,C.Z)(),{specialCategoryLegalBasisOptions:j}=(0,k.Z)();return(0,a.jsx)(f.J9,{initialValues:n,enableReinitialize:!0,onSubmit:e=>{i(e),t()},validationSchema:q,children:e=>{let{dirty:i,isValid:n,values:l,resetForm:r}=e;return(0,a.jsx)(w.Z,{title:"Edit data use",isOpen:s,onClose:t,children:(0,a.jsxs)(f.l0,{children:[(0,a.jsxs)(h.jqI,{vertical:!0,className:"gap-6 py-4",children:[(0,a.jsx)(b.d,{name:"data_use",label:"Data use",options:u,layout:"stacked",isRequired:!0}),(0,a.jsx)(b.d,{name:"data_categories",label:"Data categories",options:m,mode:"multiple",layout:"stacked"}),(0,a.jsx)(b.d,{name:"data_subjects",label:"Data subjects",options:p,mode:"multiple",layout:"stacked"}),(0,a.jsx)(_.j0,{name:"name",label:"Declaration name",variant:"stacked"}),(0,a.jsxs)(h.jqI,{vertical:!0,className:"gap-6 p-4 ".concat(S().advancedSettings),children:[(0,a.jsxs)(h.jqI,{className:"cursor-pointer justify-between",onClick:c,children:[(0,a.jsx)(h.xvT,{fontSize:"xs",children:"Advanced settings"}),(0,a.jsx)(h.v4q,{className:d?"rotate-180":void 0})]}),(0,a.jsx)(h.UO1,{in:d,children:(0,a.jsxs)(h.jqI,{vertical:!0,className:"gap-4",children:[(0,a.jsx)(b.d,{name:"legal_basis_for_processing",label:"Legal basis for processing",options:x,layout:"stacked"}),(0,a.jsx)(h.UO1,{in:(null==l?void 0:l.legal_basis_for_processing)==="Legitimate interests",animateOpacity:!0,style:{overflow:"visible"},children:(0,a.jsx)("div",{className:"mt-4",children:(0,a.jsx)(_.j0,{name:"impact_assessment_location",label:"Impact assessment location",tooltip:"Where is the legitimate interest impact assessment stored?",variant:"stacked"})})}),(0,a.jsx)(_.w8,{name:"flexible_legal_basis_for_processing",label:"This legal basis is flexible",tooltip:"Has the vendor declared that the legal basis may be overridden?",variant:"stacked"}),(0,a.jsx)(_.j0,{name:"retention_period",label:"Retention period (days)",tooltip:"How long is personal data retained for this purpose?",variant:"stacked"}),(0,a.jsxs)(h.Kqy,{spacing:0,children:[(0,a.jsx)(_.w8,{name:"processes_special_category_data",label:"This system processes special category data",tooltip:"Is this system processing special category data as defined by GDPR Article 9?",variant:"stacked"}),(0,a.jsx)(h.UO1,{in:null==l?void 0:l.processes_special_category_data,animateOpacity:!0,style:{overflow:"visible"},children:(0,a.jsx)("div",{className:"mt-4",children:(0,a.jsx)(b.d,{isRequired:!0,name:"special_category_legal_basis",label:"Legal basis for processing",options:j,tooltip:"What is the legal basis under which the special category data is processed?",layout:"stacked"})})})]})]})})]})]}),(0,a.jsxs)("div",{className:"flex w-full justify-between",children:[(0,a.jsx)(h.wpx,{onClick:()=>{r(),t()},children:"Cancel"}),(0,a.jsx)(h.wpx,{type:"primary",htmlType:"submit",disabled:!i||!n,loading:!1,"data-testid":"save-btn",children:"Save"})]})]})})}})},D=t(26183),N=t(3765);let T=e=>({data_use:e,data_categories:["system"]});var I=e=>{var s,t;let{system:i}=e,[n,l]=(0,d.useState)(!1),[r,o]=(0,d.useState)(void 0),{getDataUseDisplayName:c}=(0,g.Z)(),{isOpen:u,onOpen:m,onClose:p}=(0,h.qY0)(),x=e=>{o(e),m()},{createDataUse:j,deleteDeclarationByDataUse:f,updateDataUse:y}=(0,N.Z)(i),b=null!==(t=null===(s=i.privacy_declarations)||void 0===s?void 0:s.map(e=>e.data_use))&&void 0!==t?t:[];return(0,a.jsxs)(D.Z,{children:[!n&&(0,a.jsxs)(a.Fragment,{children:[b.map((e,s)=>(0,a.jsxs)(h.j8w,{"data-testid":"data-use-".concat(e),color:"white",onClick:()=>x(i.privacy_declarations[s]),closable:!0,onClose:()=>f(e),closeButtonLabel:"Remove data use",children:[(0,a.jsx)(h.PJP.I8b,{size:10}),c(e)]},e)),(0,a.jsx)(h.j8w,{onClick:()=>l(!0),"data-testid":"taxonomy-add-btn",addable:!0,"aria-label":"Add data use"}),(0,a.jsx)(z,{isOpen:u,onClose:p,onSave:e=>y(r,e),declaration:r})]}),n&&(0,a.jsx)(h.xuv,{className:"select-wrapper",position:"absolute",zIndex:10,top:"0",left:"0",width:"100%",height:"max",bgColor:"#fff",children:(0,a.jsx)(v.Z,{onChange:e=>{j(T(e)),l(!1)},selectedTaxonomies:b,onBlur:()=>l(!1),open:!0})})]})},P=e=>{var s;let{system:t,onEdit:i,onClose:n}=e;return(0,a.jsxs)(h.dys,{isOpen:!!t,onClose:n,size:"md",children:[(0,a.jsx)(h.P1B,{}),(0,a.jsxs)(h.scA,{"data-testid":"system-details",children:[(0,a.jsx)(h.OXI,{children:(null==t?void 0:t.name)||(null==t?void 0:t.fides_key)}),(0,a.jsx)(h.cCv,{}),(0,a.jsxs)(h.Ng0,{children:[(0,a.jsx)(j.cB,{text:"Title",mt:0}),(0,a.jsx)(j.XU,{children:null!==(s=null==t?void 0:t.name)&&void 0!==s?s:null==t?void 0:t.fides_key}),(null==t?void 0:t.description)&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(j.cB,{text:"Description"}),(0,a.jsx)(j.XU,{children:null==t?void 0:t.description})]}),(0,a.jsx)(j.cB,{text:"Data uses"}),(0,a.jsx)(I,{system:t})]}),(0,a.jsx)(h.zeN,{children:(0,a.jsx)(h.wpx,{onClick:i,"data-testid":"edit-system-btn",children:"Edit system"})})]})]})},Z=e=>{let{onDetailClick:s}=e;return(0,a.jsxs)(h.v2r,{children:[(0,a.jsx)(h.j2t,{as:h.wpx,size:"small",type:"text",className:"max-w-4",icon:(0,a.jsx)(h.nXP,{transform:"rotate(90deg)",ml:2}),"data-testid":"system-actions-menu"}),(0,a.jsx)(h.qyq,{children:s&&(0,a.jsx)(h.sNh,{onClick:s,"data-testid":"view-system-details",children:"View details"})})]})},E=t(70675);let B={items:[],total:0,page:1,size:50,pages:1},O=(0,l.Cl)();var U=()=>{let[e,s]=(0,d.useState)({}),t=(0,o.useRouter)(),{PAGE_SIZES:i,pageSize:n,setPageSize:h,onPreviousPageClick:j,isPreviousPageDisabled:v,onNextPageClick:g,isNextPageDisabled:f,startRange:y,endRange:b,pageIndex:_,setTotalPages:w}=(0,u.oi)(),{data:C,isLoading:k}=(0,p.UG)({page:_,size:n,show_hidden:!1}),[R]=(0,E.j3)(),{items:S,total:q,pages:z}=(0,d.useMemo)(()=>null!=C?C:B,[C]);(0,d.useEffect)(()=>{w(z)},[z,w]);let[D,N]=(0,d.useState)(void 0),T=(0,d.useMemo)(()=>S.find(e=>e.fides_key===D),[S,D]),U=async e=>{var s,a;let i=await R({connection_config_key:e.connection_configs.key,page:1,size:1}),n=!!(null==i?void 0:null===(s=i.data)||void 0===s?void 0:s.total),l=(0,m.du)(null!==(a=e.monitor_config_keys)&&void 0!==a?a:[],"monitor_config_ids"),r="".concat(c.mX,"/").concat(e.fides_key,"/").concat(n?"projects":"resources","?").concat(l);t.push(r)},M=(0,d.useMemo)(()=>[O.accessor(e=>e.name,{id:"name",cell:e=>{var s;let{getValue:t,row:i}=e;return(0,a.jsx)(u.G3,{value:t(),fontWeight:(null===(s=i.original.connection_configs)||void 0===s?void 0:s.key)?"semibold":"normal"})},header:e=>(0,a.jsx)(u.Rr,{value:"Name",...e})}),O.display({id:"data-uses",cell:e=>{let{row:s}=e;return(0,a.jsx)(I,{system:s.original})},header:e=>(0,a.jsx)(u.Rr,{value:"Data uses",...e}),meta:{disableRowClick:!0},minSize:280}),O.display({id:"actions",cell:e=>(0,a.jsx)(Z,{onDetailClick:()=>N(e.row.original.fides_key)}),maxSize:20,enableResizing:!1,meta:{cellProps:{borderLeft:"none"},disableRowClick:!0}})],[]),A=(0,r.b7)({getCoreRowModel:(0,l.sC)(),getGroupedRowModel:(0,l.qe)(),getExpandedRowModel:(0,l.rV)(),getRowId:e=>e.fides_key,manualPagination:!0,columnResizeMode:"onChange",columns:M,data:S,onRowSelectionChange:s,state:{rowSelection:e}});return k?(0,a.jsx)(u.I4,{rowHeight:36,numRows:36}):(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(u.ZK,{tableInstance:A,emptyTableNotice:(0,a.jsx)(x.Z,{}),onRowClick:U,getRowIsClickable:e=>{var s;return!!(null===(s=e.connection_configs)||void 0===s?void 0:s.key)}}),(0,a.jsx)(u.s8,{totalRows:q||0,pageSizes:i,setPageSize:h,onPreviousPageClick:j,isPreviousPageDisabled:v,onNextPageClick:g,isNextPageDisabled:f,startRange:y,endRange:b}),(0,a.jsx)(P,{system:T,onClose:()=>N(void 0),onEdit:()=>t.push({pathname:c.Dv,query:{id:D}})})]})},M=()=>(0,a.jsxs)(i.Z,{title:"Data catalog",children:[(0,a.jsx)(n.Z,{heading:"Data catalog",breadcrumbItems:[{title:"All systems"}]}),(0,a.jsx)(U,{})]})},31883:function(e,s,t){"use strict";t.d(s,{Bw:function(){return a.Bw},D4:function(){return a.D4}});var a=t(19043)},34151:function(e){e.exports={advancedSettings:"EditMinimalDataUseModal_advancedSettings___i9jS"}}},function(e){e.O(0,[8765,9278,5163,409,2888,9774,179],function(){return e(e.s=66248)}),_N_E=e.O()}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4154],{58095:function(e,t,n){var s=n(8817);e.exports=function(e,t){return!!(null==e?0:e.length)&&s(e,t,0)>-1}},21796:function(e){e.exports=function(e,t,n){for(var s=-1,a=null==e?0:e.length;++s<a;)if(n(t,e[s]))return!0;return!1}},8817:function(e,t,n){var s=n(95372),a=n(1129),r=n(58263);e.exports=function(e,t,n){return t==t?r(e,t,n):s(e,a,n)}},1129:function(e){e.exports=function(e){return e!=e}},92198:function(e,t,n){var s=n(52485),a=n(58095),r=n(21796),i=n(65581),o=n(47111),l=n(43735);e.exports=function(e,t,n){var d=-1,c=a,u=e.length,h=!0,m=[],g=m;if(n)h=!1,c=r;else if(u>=200){var v=t?null:o(e);if(v)return l(v);h=!1,c=i,g=new s}else g=t?[]:m;e:for(;++d<u;){var p=e[d],y=t?t(p):p;if(p=n||0!==p?p:0,h&&y==y){for(var f=g.length;f--;)if(g[f]===y)continue e;t&&g.push(y),m.push(p)}else c(g,y,n)||(g!==m&&g.push(y),m.push(p))}return m}},47111:function(e,t,n){var s=n(46151),a=n(50344),r=n(43735),i=s&&1/r(new s([,-0]))[1]==1/0?function(e){return new s(e)}:a;e.exports=i},58263:function(e){e.exports=function(e,t,n){for(var s=n-1,a=e.length;++s<a;)if(e[s]===t)return s;return -1}},50344:function(e){e.exports=function(){}},83766:function(e,t,n){var s=n(92198);e.exports=function(e){return e&&e.length?s(e):[]}},25654:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/data-discovery/action-center/[monitorId]/[systemId]",function(){return n(56514)}])},79283:function(e,t,n){"use strict";n.d(t,{l:function(){return l}});var s=n(24246),a=n(13577),r=n(72707),i=n.n(r);let o=e=>{let{data:{formattedTitle:t,description:n,name:r,primaryName:i}}=e;return(0,s.jsxs)(a.jqI,{gap:12,title:"".concat(t," - ").concat(n),children:[(0,s.jsxs)("div",{children:[(0,s.jsx)("strong",{children:i||r}),i&&": ".concat(r)]}),(0,s.jsx)("em",{children:n})]})},l=e=>{let{options:t,...n}=e,r=null==t?void 0:t.map(e=>({...e,className:i().option,formattedTitle:[e.primaryName,e.name].filter(e=>e).join(": ")}));return(0,s.jsx)(a.WPr,{options:r,filterOption:(e,t)=>(null==t?void 0:t.formattedTitle.toLowerCase().includes(e.toLowerCase()))||(null==t?void 0:t.value.toLowerCase().includes(e.toLowerCase()))||!1,optionFilterProp:"label",autoFocus:!0,variant:"borderless",optionRender:o,dropdownStyle:{minWidth:"500px"},className:"w-full p-0","data-testid":"taxonomy-select",...n})}},14047:function(e,t,n){"use strict";n.d(t,{H:function(){return r},V:function(){return s.V}});var s=n(84306),a=n(812);let r=()=>{let{errorAlert:e}=(0,s.V)();return{handleError:t=>{let n="An unexpected error occurred. Please try again.";(0,a.Ot)(t)?n=t.data.detail:(0,a.tB)(t)&&(n=t.data.detail[0].msg),e(n)}}}},84306:function(e,t,n){"use strict";n.d(t,{V:function(){return r}});var s=n(24246),a=n(13577);let r=()=>{let e=(0,a.pmc)();return{errorAlert:(t,n,r)=>{let i={...r,position:(null==r?void 0:r.position)||"top",render:e=>{let{onClose:r}=e;return(0,s.jsxs)(a.bZj,{alignItems:"normal",status:"error","data-testid":"error-alert",children:[(0,s.jsx)(a.zMQ,{}),(0,s.jsxs)(a.xuv,{children:[n&&(0,s.jsx)(a.CdC,{children:n}),(0,s.jsx)(a.XaZ,{children:t})]}),(0,s.jsx)(a.PZ7,{onClick:r,position:"relative",right:0,size:"sm",top:-1})]})}};(null==r?void 0:r.id)&&e.isActive(r.id)?e.update(r.id,i):e(i)},successAlert:(t,n,r)=>{let i={...r,position:(null==r?void 0:r.position)||"top",render:e=>{let{onClose:r}=e;return(0,s.jsxs)(a.bZj,{alignItems:"normal",status:"success",variant:"subtle","data-testid":"success-alert",children:[(0,s.jsx)(a.zMQ,{}),(0,s.jsxs)(a.xuv,{children:[n&&(0,s.jsx)(a.CdC,{children:n}),(0,s.jsx)(a.XaZ,{children:t})]}),(0,s.jsx)(a.PZ7,{onClick:r,position:"relative",right:0,size:"sm",top:-1})]})}};(null==r?void 0:r.id)&&e.isActive(r.id)?e.update(r.id,i):e(i)}}}},45938:function(e,t,n){"use strict";n.d(t,{Gt:function(){return h},eB:function(){return m},oI:function(){return u}});var s=n(24246),a=n(34090),r=n(27378),i=n(16134),o=n(38602),l=n(58452);let d=(0,r.createRef)(),c=(0,r.createRef)(),u=()=>{let e=(0,i.T)(),t=(0,i.C)(o.DB),n=(0,r.useCallback)(()=>{c.current=void 0,d.current=void 0},[]),s=(0,r.useCallback)(()=>{e((0,o.Mr)()),c.current&&(c.current(!0),n())},[e,n]),a=(0,r.useCallback)(()=>{e((0,o.Mr)()),c.current&&(c.current(!1),n())},[e,n]);return{attemptAction:(0,r.useCallback)(()=>t?(e((0,o.h7)()),d.current||(d.current=new Promise(e=>{c.current=e})),d.current):Promise.resolve(!0),[t,e]),onConfirm:s,onClose:a}},h=e=>{let{id:t,name:n}=e,{dirty:s}=(0,a.u6)(),l=(0,i.T)();return(0,r.useEffect)(()=>(l((0,o.Zu)({id:t,name:n})),()=>{l((0,o.dz)({id:t}))}),[l,t,n]),(0,r.useEffect)(()=>{l((0,o.$p)({id:t,isDirty:s}))},[s,l,t]),null},m=()=>{let{onConfirm:e,onClose:t}=u(),n=(0,i.C)(o.uv);return(0,s.jsx)(l.Z,{isOpen:n,onClose:t,onConfirm:e,isCentered:!0,title:"Unsaved Changes",message:"You have unsaved changes"})}},56514:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return Q}});var s=n(24246),a=n(86677),r=n(27378),i=n(35287),o=n(77830),l=n(58754),d=n(13577),c=n(83766),u=n.n(c),h=n(812),m=n(25415),g=n(46628),v=n(54682),p=n(30952),y=n(37059),f=n(8133),x=n(79283),j=n(34929),_=n(78238),C=e=>{let{selectedTaxonomies:t,...n}=e,{getDataUseDisplayNameProps:a,getDataUses:r}=(0,j.Z)(),i=r().filter(e=>e.active&&_.g.includes(e.fides_key)).map(e=>{let{name:t,primaryName:n}=a(e.fides_key);return{value:e.fides_key,name:t,primaryName:n,description:e.description||""}});return(0,s.jsx)(x.l,{options:i,...n})};let{Text:w}=d.AntTypography;var S=e=>{let{onSave:t,isSaving:n,onClose:a,...i}=e,[o,l]=(0,r.useState)([]),c=()=>{l([]),a()};return(0,s.jsxs)(f.Z,{title:"Add consent category",...i,onClose:c,children:[(0,s.jsxs)(d.jqI,{vertical:!0,gap:20,className:"pb-6 pt-4",children:[(0,s.jsx)(w,{children:"Assign consent categories to selected assets. This configures the system for consent management. Consent categories apply to both individual assets and the system."}),(0,s.jsx)(C,{mode:"tags",selectedTaxonomies:o,onSelect:(e,t)=>l([...o,t.value]),variant:"outlined"})]}),(0,s.jsxs)(d.jqI,{justify:"space-between",children:[(0,s.jsx)(d.wpx,{htmlType:"reset",onClick:c,"data-testid":"cancel-btn",children:"Cancel"}),(0,s.jsx)(d.wpx,{htmlType:"submit",type:"primary",disabled:!o.length,loading:n,onClick:()=>{t(o),c()},"data-testid":"save-btn",children:"Save"})]})]})},b=n(29850),k=n(77685);let{Text:E}=d.AntTypography,T=e=>{let{onSave:t,isSaving:n,...a}=e,[i,o]=(0,r.useState)(),[l,c]=(0,r.useState)(!1),u=(0,r.useCallback)(e=>{e.preventDefault(),c(!0)},[]),h=()=>{c(!1)},m=()=>{o(void 0),a.onClose()};return(0,s.jsxs)(f.Z,{title:"Assign system",...a,onClose:m,children:[(0,s.jsxs)(d.jqI,{vertical:!0,gap:20,className:"pb-6 pt-4",children:[(0,s.jsx)(E,{children:"Assign a system to the selected assets. If no system exists, select 'Add new system' to create one."}),(0,s.jsx)(b.R,{placeholder:"Search or select...",onSelect:(e,t)=>{o(t)},onAddSystem:u,value:i})]})," ",(0,s.jsxs)(d.jqI,{justify:"space-between",children:[(0,s.jsx)(d.wpx,{htmlType:"reset",onClick:m,"data-testid":"cancel-btn",children:"Cancel"}),(0,s.jsx)(d.wpx,{htmlType:"submit",type:"primary",disabled:!i,loading:n,onClick:()=>{t(i),m()},"data-testid":"save-btn",children:"Save"})]}),l&&(0,s.jsx)(k.i,{isOpen:!0,onClose:h,onSuccessfulSubmit:(e,t)=>{h(),o({label:t,value:e})},toastOnSuccess:!0})]})};var A=n(8411),N=n(47935);let{Paragraph:I,Text:O,Link:D}=d.AntTypography,L=e=>{var t,n,a;let{isOpen:i,stagedResource:o,status:l,onCancel:c,onDownload:u}=e,[h,m]=(0,r.useState)(1),[g,v]=(0,r.useState)(N.W3[0]),{data:p,isFetching:f,isError:x}=(0,y.mi)({stagedResourceUrn:o.urn,status:l,page:h,size:g}),{items:j,total:_}=(0,r.useMemo)(()=>p||{items:[],total:0,pages:0,filterOptions:{assigned_users:[],systems:[]}},[p]);return(0,s.jsx)(d.$zI,{title:"Consent discovery",width:768,open:i,onCancel:c,footer:[(0,s.jsx)(d.wpx,{onClick:c,children:"Cancel"},"cancel"),!!u&&(0,s.jsx)(d.wpx,{type:"primary",onClick:u,children:"Download"},"download")],"data-testid":"consent-breakdown-modal",children:(0,s.jsxs)(d.jqI,{vertical:!0,className:"gap-6","data-testid":"consent-breakdown-modal-content",children:[(0,s.jsxs)("div",{children:[(0,s.jsx)(I,{children:"View all instances where this asset was detected without consent, organized by location and page. Use this to investigate potential compliance issues."}),(0,s.jsxs)(I,{children:[(0,s.jsx)(O,{strong:!0,children:"Asset name:"})," ",null!==(t=o.name)&&void 0!==t?t:(0,s.jsx)(O,{italic:!0,children:"Unknown"}),","," ",(0,s.jsx)(O,{strong:!0,children:"System:"})," ",null!==(n=o.system)&&void 0!==n?n:(0,s.jsx)(O,{italic:!0,children:"Unassigned"}),","," ",(0,s.jsx)(O,{strong:!0,children:"Domain:"})," ",null!==(a=o.domain)&&void 0!==a?a:(0,s.jsx)(O,{italic:!0,children:"Unknown"})]})]}),x?(0,s.jsx)(d.DUx,{type:"error",message:"Error fetching data",description:"Please try again later.",showIcon:!0}):(0,s.jsx)(d.V5H,{columns:[{title:"Location",dataIndex:"location",key:"location",render:e=>{var t;return null!==(t=A.Z8[e])&&void 0!==t?t:e}},{title:"Page",dataIndex:"page",key:"page",render:e=>(0,s.jsx)(D,{href:e,target:"_blank",rel:"noopener noreferrer",children:e})}],rowKey:e=>e.location,dataSource:j,pagination:!!_&&(h>1||g>N.W3[0])&&{current:h,pageSize:g,total:_||0,showTotal:(e,t)=>"".concat(t[0],"-").concat(t[1]," of ").concat(e," items"),onChange:(e,t)=>{m(e),t!==g&&(v(t),m(1))}},loading:f,"data-testid":"consent-breakdown-modal-table"})]})})};var P=n(98145),R=n(88708),Z=n(62165),U=n(91982),M=n(16394),V=n(54762),G=n(9320);let z=e=>{let{asset:t,onTabChange:n}=e,[r,{isLoading:i}]=(0,y.EY)(),[l,{isLoading:c}]=(0,y.nS)(),[u,{isLoading:m}]=(0,y.Tj)(),p=(0,d.pmc)(),f=(0,a.useRouter)(),x=i||c||m,{urn:j,name:_,resource_type:C,diff_status:w,system_key:S,user_assigned_system_key:b}=t,k=async()=>{let e=await r({urnList:[j]});if((0,h.D4)(e))p((0,g.Vo)((0,h.e$)(e.error)));else{let e=b||S,t="".concat(o.So,"/configure/").concat(e,"#assets");p((0,g.t5)((0,G._)("".concat(C,' "').concat(_,'" has been added to the system inventory.'),e?()=>f.push(t):void 0)))}},E=async()=>{let e=await l({urnList:[j]});(0,h.D4)(e)?p((0,g.Vo)((0,h.e$)(e.error))):p((0,g.t5)((0,G._)("".concat(C,' "').concat(_,'" has been ignored and will not appear in future scans.'),()=>n(R.A.IGNORED))))},T=async()=>{let e=await u({urnList:[j]});(0,h.D4)(e)?p((0,g.Vo)((0,h.e$)(e.error))):p((0,g.t5)("".concat(C,' "').concat(_,'" is no longer ignored and will appear in future scans.')))};return(0,s.jsxs)(d.vyj,{children:[w!==v.LL.MUTED&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(d.esZ,{title:t.system?void 0:"This asset requires a system before you can add it to the inventory.",children:(0,s.jsx)(d.wpx,{"data-testid":"add-btn",size:"small",onClick:k,disabled:!t.system||x,loading:i,children:"Add"})}),(0,s.jsx)(d.wpx,{"data-testid":"ignore-btn",size:"small",onClick:E,disabled:x,loading:c,children:"Ignore"})]}),w===v.LL.MUTED&&(0,s.jsx)(d.wpx,{"data-testid":"restore-btn",size:"small",onClick:T,disabled:x,loading:m,children:"Restore"})]})};var W=n(14047),X=n(18992),$=n.n(X),B=n(31883),K=e=>{var t,n,a;let{asset:i,readonly:o}=e,[l,c]=(0,r.useState)(!1),[u]=(0,y.Ak)(),{successAlert:m,errorAlert:g}=(0,W.V)(),{getDataUseDisplayName:v}=(0,j.Z)(),p=(null===(t=i.user_assigned_data_uses)||void 0===t?void 0:t.length)?i.user_assigned_data_uses:(null===(n=i.data_uses)||void 0===n?void 0:n.length)?i.data_uses:[],f=async e=>{let t=await u({monitorId:i.monitor_config_id,urnList:[i.urn],dataUses:[...p,e]});(0,B.D4)(t)?g((0,h.e$)(t.error)):m("Consent category added to ".concat(i.resource_type,' "').concat(i.name,'" .'),"Confirmed"),c(!1)},x=async e=>{let t=await u({monitorId:i.monitor_config_id,urnList:[i.urn],dataUses:p.filter(t=>t!==e)});(0,B.D4)(t)?g((0,h.e$)(t.error)):m("Consent category removed from ".concat(i.resource_type,' "').concat(i.name,'".'),"Confirmed")},w=(null===(a=i.user_assigned_data_uses)||void 0===a?void 0:a.length)?i.user_assigned_data_uses:i.data_uses,S=null==w?void 0:w.filter(e=>(0,_.Z)(e));return o?(0,s.jsx)(d.vyj,{direction:"vertical",children:null==S?void 0:S.map(e=>(0,s.jsx)(d.j8w,{color:"white",children:v(e)},e))}):(0,s.jsxs)(s.Fragment,{children:[!l&&(0,s.jsxs)(d.vyj,{wrap:!0,children:[null==S?void 0:S.map(e=>(0,s.jsx)(d.j8w,{"data-testid":"data-use-".concat(e),color:"white",closable:!0,onClose:()=>x(e),closeButtonLabel:"Remove data use",children:v(e)},e)),(0,s.jsx)(d.j8w,{onClick:()=>c(!0),"data-testid":"taxonomy-add-btn",addable:!0,"aria-label":"Add data use"})]}),l&&(0,s.jsx)("div",{className:$().cellBleed,style:{backgroundColor:"var(--fides-color-white)"},children:(0,s.jsx)(C,{selectedTaxonomies:S||[],onSelect:f,onBlur:()=>c(!1),open:!0})})]})};let q=e=>{let{consentAggregated:t,stagedResource:n,onShowBreakdown:a}=e;return(0,s.jsxs)(s.Fragment,{children:[t===v.lg.WITHOUT_CONSENT&&(0,s.jsx)(d.esZ,{title:"Asset was detected before the user gave consent or without any consent. Click the info icon for more details.",children:(0,s.jsx)(d.j8w,{color:"error",closeIcon:(0,s.jsx)(d.PJP.daM,{style:{width:12,height:12}}),closeButtonLabel:"View details",onClose:()=>{null==a||a(n,t)},"data-testid":"status-badge_without-consent",children:P.X.WITHOUT_CONSENT})}),t===v.lg.WITH_CONSENT&&(0,s.jsx)(d.esZ,{title:"Asset was detected after the user gave consent",children:(0,s.jsx)(d.j8w,{color:"success","data-testid":"status-badge_with-consent",children:P.X.WITH_CONSENT})}),t===v.lg.EXEMPT&&(0,s.jsx)(d.esZ,{title:"Asset is valid regardless of consent",children:(0,s.jsx)(d.j8w,{"data-testid":"status-badge_consent-exempt",children:P.X.EXEMPT})}),t===v.lg.UNKNOWN&&(0,s.jsx)(d.esZ,{title:"Did not find consent information for this asset. You may need to re-run the monitor.",children:(0,s.jsx)(d.j8w,{"data-testid":"status-badge_unknown",children:P.X.UNKNOWN})})]})};var H=n(70675);let Y=e=>{let{aggregateSystem:t,monitorConfigId:n,readonly:a}=e,{resource_type:i,name:o,urn:l,system:c,user_assigned_system_key:u,system_key:m}=t,[g,v]=(0,r.useState)(!1),[p,y]=(0,r.useState)(!1),[f,{isLoading:x}]=(0,H.NA)(),{successAlert:j,errorAlert:_}=(0,W.V)(),C=(0,r.useCallback)(e=>{e.preventDefault(),y(!0)},[]),w=async(e,t,s)=>{let a=await f({staged_resource_urn:l,monitor_config_id:n,user_assigned_system_key:e});(0,h.D4)(a)?_((0,h.e$)(a.error)):j(s?"".concat(t," has been added to your system inventory and the ").concat(i,' "').concat(o,'" has been assigned to that system.'):"".concat(i,' "').concat(o,'" has been assigned to ').concat(t,"."),"Confirmed"),v(!1)};return a?c?(0,s.jsx)(d.j8w,{"data-testid":"system-badge",color:"white",children:c}):null:(0,s.jsxs)(s.Fragment,{children:[!g&&(c?(0,s.jsxs)(d.j8w,{onClick:()=>v(!0),"data-testid":"system-badge",children:[c,(0,s.jsx)(d.PJP.I8b,{})]}):(0,s.jsx)(d.j8w,{onClick:()=>v(!0),"data-testid":"add-system-btn",addable:!0})),!!g&&(0,s.jsx)("div",{className:$().cellBleed,children:(0,s.jsx)(b.R,{variant:"borderless",autoFocus:!0,defaultOpen:!0,defaultValue:u||m,onBlur:e=>{var t;(null===(t=e.relatedTarget)||void 0===t?void 0:t.getAttribute("id"))!=="add-new-system"&&v(!1)},onAddSystem:C,onSelect:(e,t)=>w(e,t.label),loading:x})}),p&&(0,s.jsx)(k.i,{isOpen:!0,onClose:()=>{y(!1)},onSuccessfulSubmit:(e,t)=>w(e,t,!0)})]})},F=e=>{let{readonly:t,aggregatedConsent:n,onTabChange:a,onShowBreakdown:i,monitorConfigId:o,resolvedSystemId:l,diffStatus:c,columnFilters:u,sortField:h,sortOrder:m,searchQuery:g}=e,{flags:p}=(0,Z.hz)(),{assetConsentStatusLabels:f}=p,[x,j]=(0,r.useState)(!1),[C,w]=(0,r.useState)(!1),{data:S}=(0,y.ut)({monitor_config_id:o,resolved_system_id:l,diff_status:c,search:g,...u});return{columns:(0,r.useMemo)(()=>{var e;let r=[{title:"Asset",dataIndex:P.r.NAME,key:P.r.NAME,sorter:!0,sortOrder:h===P.r.NAME?m:null,render:e=>(0,s.jsx)(d.lKn,{ellipsis:{tooltip:!0},style:{maxWidth:300},children:e}),fixed:"left"},{title:"Type",dataIndex:P.r.RESOURCE_TYPE,key:P.r.RESOURCE_TYPE,sorter:!0,sortOrder:h===P.r.RESOURCE_TYPE?m:null,filters:(0,M.nZ)(null==S?void 0:S.resource_type),filteredValue:(null==u?void 0:u.resource_type)||null},{title:"System",dataIndex:P.r.SYSTEM,key:P.r.SYSTEM,width:200,render:(e,n)=>!!n.monitor_config_id&&(0,s.jsx)(Y,{aggregateSystem:n,monitorConfigId:n.monitor_config_id,readonly:t})},{title:"Categories of consent",key:P.r.DATA_USES,width:400,filters:(0,M.nZ)(null==S?void 0:null===(e=S.data_uses)||void 0===e?void 0:e.filter(e=>(0,_.Z)(e))),filteredValue:(null==u?void 0:u.data_uses)||null,render:(e,n)=>(0,s.jsx)(K,{asset:n,readonly:t})},{title:()=>(0,s.jsx)(U.OL,{title:"Locations",menu:{items:U.DI,onClick:e=>{e.domEvent.stopPropagation(),"expand-all"===e.key?j(!0):"collapse-all"===e.key&&j(!1)}}}),dataIndex:P.r.LOCATIONS,key:P.r.LOCATIONS,width:250,filters:(0,M.nZ)(null==S?void 0:S.locations,e=>{var t;return null!==(t=A.Z8[e])&&void 0!==t?t:e}),filteredValue:(null==u?void 0:u.locations)||null,render:e=>{var t;return(0,s.jsx)(U.Q3,{values:null!==(t=null==e?void 0:e.map(e=>{var t;return{label:null!==(t=A.Z8[e])&&void 0!==t?t:e,key:e}}))&&void 0!==t?t:[],columnState:{isExpanded:x,isWrapped:!0}})}},{title:"Domain",dataIndex:P.r.DOMAIN,key:P.r.DOMAIN},{title:()=>(0,s.jsx)(U.OL,{title:"Detected on",menu:{items:U.DI,onClick:e=>{e.domEvent.stopPropagation(),"expand-all"===e.key?w(!0):"collapse-all"===e.key&&w(!1)}}}),dataIndex:P.r.PAGE,key:P.r.PAGE,render:e=>(0,s.jsx)(U.vx,{values:e,valueSuffix:"pages",columnState:{isExpanded:C}})}];return f&&r.push({title:()=>(0,s.jsxs)(d.vyj,{children:[(0,s.jsx)("div",{children:"Compliance"}),n===v.lg.WITHOUT_CONSENT&&(0,s.jsx)(V.l,{consentStatus:{status:v.pF.ALERT,message:"One or more assets were detected without consent"}})]}),dataIndex:P.r.CONSENT_AGGREGATED,key:P.r.CONSENT_AGGREGATED,sorter:!0,sortOrder:h===P.r.CONSENT_AGGREGATED?m:null,filters:(0,M.nZ)(null==S?void 0:S[P.r.CONSENT_AGGREGATED],e=>{var t;return null!==(t=({with_consent:P.X.WITH_CONSENT,without_consent:P.X.WITHOUT_CONSENT,exempt:P.X.EXEMPT,unknown:P.X.UNKNOWN})[e])&&void 0!==t?t:e}),filteredValue:(null==u?void 0:u[P.r.CONSENT_AGGREGATED])||null,render:(e,t)=>(0,s.jsx)(q,{consentAggregated:null!=e?e:v.lg.UNKNOWN,stagedResource:t,onShowBreakdown:i})}),t||r.push({title:"Actions",key:P.r.ACTIONS,fixed:"right",render:(e,t)=>(0,s.jsx)(z,{asset:t,onTabChange:a})}),r},[S,u,h,m,f,t,x,C,n,i,a])}},J=e=>{var t;let{monitorId:n,systemId:i,onSystemName:l}=e,c=(0,a.useRouter)(),[f,x]=(0,r.useState)(),[j,_]=(0,r.useState)(i),[C,w]=(0,r.useState)(1),[b,k]=(0,r.useState)(25),[E,A]=(0,r.useState)({}),[N,I]=(0,r.useState)(),[O,D]=(0,r.useState)(),[Z,U]=(0,r.useState)([]),[M,V]=(0,r.useState)(new Map),z=()=>{U([]),V(new Map)},[W,X]=(0,r.useState)(!1),[$,B]=(0,r.useState)(!1),[K,q]=(0,r.useState)(null),[H,{isLoading:Y}]=(0,y.EY)(),[J,{isLoading:Q}]=(0,y.nS)(),[ee,{isLoading:et}]=(0,y.rs)(),[en,{isLoading:es}]=(0,y.sX)(),[ea,{isLoading:er}]=(0,y.Vr)(),[ei,{isLoading:eo}]=(0,y.Tj)(),el=Y||Q||et||es||eo,ed=el||i===o.Kl,[ec,eu]=(0,r.useState)(""),eh=(0,d.pmc)(),{filterTabs:em,activeTab:eg,onTabChange:ev,activeParams:ep,actionsDisabled:ey}=(0,R.Z)(i);(0,r.useEffect)(()=>{w(1)},[n,ec,eg]),(0,r.useEffect)(()=>{z()},[n,eg]);let{data:ef,isLoading:ex,isFetching:ej}=(0,y.WJ)({key:n,page:C,size:b,search:ec,sort_by:N?[N]:[P.r.CONSENT_AGGREGATED,"urn"],sort_asc:"descend"!==O,...ep,...E});(0,r.useEffect)(()=>{if(ef){var e;let t=(null===(e=ef.items[0])||void 0===e?void 0:e.system)||j||i||"";_(t),null==l||l(t)}},[ef,i,l,j]),(0,r.useEffect)(()=>{if((null==ef?void 0:ef.items)&&!f){var e;x(null===(e=ef.items.find(e=>e.consent_aggregated===v.lg.WITHOUT_CONSENT))||void 0===e?void 0:e.consent_aggregated)}},[ef,f]);let{columns:e_}=F({readonly:null!=ey&&ey,onTabChange:ev,aggregatedConsent:f,onShowBreakdown:(e,t)=>{q({stagedResource:e,status:t})},monitorConfigId:n,resolvedSystemId:i,diffStatus:null==ep?void 0:ep.diff_status,columnFilters:E,sortField:N,sortOrder:O,searchQuery:ec}),eC=Array.from(M.keys()),ew=Array.from(M.values()),eS=async()=>{var e,t;let n=await H({urnList:eC}),s=(null===(e=ew[0])||void 0===e?void 0:e.user_assigned_system_key)||(null===(t=ew[0])||void 0===t?void 0:t.system_key),a=ew.every(e=>(e.user_assigned_system_key||e.system_key)===s)?s:void 0;(0,h.D4)(n)?eh((0,g.Vo)((0,h.e$)(n.error))):(eh((0,g.t5)((0,G._)("".concat(eC.length," assets from ").concat(j," have been added to the system inventory."),a?()=>c.push("".concat(o.So,"/configure/").concat(a,"#assets")):()=>c.push(o.So)))),z())},eb=async e=>{if("string"==typeof(null==e?void 0:e.value)){let t=await en({monitorId:n,urnList:eC,systemKey:e.value});(0,h.D4)(t)?eh((0,g.Vo)((0,h.e$)(t.error))):eh((0,g.t5)("".concat(eC.length," assets have been assigned to ").concat(e.label,"."),"Confirmed"))}X(!1)},ek=async e=>{if(!ew.length)return;let t=ew.map(t=>{let n=u()([...t.user_assigned_data_uses||t.data_uses||[],...e]);return{urn:t.urn,user_assigned_data_uses:n}}),s=await ea({monitorId:n,assets:t});(0,h.D4)(s)?eh((0,g.Vo)((0,h.e$)(s.error))):eh((0,g.t5)("Consent categories added to ".concat(eC.length," assets").concat(j?" from ".concat(j):"","."),"Confirmed")),B(!1)},eE=async()=>{let e=await J({urnList:eC});(0,h.D4)(e)?eh((0,g.Vo)((0,h.e$)(e.error))):(eh((0,g.t5)(j===o.Kl?"".concat(eC.length," uncategorized assets have been ignored and will not appear in future scans."):"".concat(eC.length," assets from ").concat(j," have been ignored and will not appear in future scans."),"Confirmed")),z())},eT=async()=>{let e=await ei({urnList:eC});(0,h.D4)(e)?eh((0,g.Vo)((0,h.e$)(e.error))):(eh((0,g.t5)("".concat(eC.length," assets have been restored and will appear in future scans."),"Confirmed")),z())},eA=async()=>{let e=(null==ef?void 0:ef.items.length)||0,t=await ee({monitor_config_key:n,resolved_system_ids:[i]});(0,h.D4)(t)?eh((0,g.Vo)((0,h.e$)(t.error))):(c.push("".concat(o.vi,"/").concat(n)),eh((0,g.t5)("".concat(e," assets from ").concat(j," have been added to the system inventory."),"Confirmed")),z())},eN=e=>{ev(e),z()};return((0,r.useEffect)(()=>{(null==ef?void 0:ef.items)&&U(ef.items.filter(e=>M.has(e.urn)).map(e=>e.urn))},[ef,M]),n&&i)?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(d.A5g,{items:em.map(e=>({key:e.hash,label:e.label})),activeKey:eg,onChange:e=>eN(e)}),(0,s.jsxs)(d.jqI,{justify:"space-between",align:"center",className:"mb-4",children:[(0,s.jsx)(p.f,{value:ec,onChange:eu,placeholder:"Search by asset name..."}),(0,s.jsxs)(d.vyj,{size:"large",children:[!!eC.length&&(0,s.jsx)(m.a,{count:eC.length}),(0,s.jsxs)(d.vyj,{size:"small",children:[(0,s.jsx)(d.wpx,{onClick:()=>{A({}),eu(""),I(void 0),D(void 0)},"data-testid":"clear-filters",children:"Clear filters"}),(0,s.jsx)(d.S0p,{menu:{items:[{key:"add",label:"Add",onClick:eS},{key:"add-data-use",label:"Add consent category",onClick:()=>B(!0)},{key:"assign-system",label:"Assign system",onClick:()=>X(!0)},...(null==ep?void 0:null===(t=ep.diff_status)||void 0===t?void 0:t.includes(v.LL.MUTED))?[{key:"restore",label:"Restore",onClick:eT}]:[{type:"divider"},{key:"ignore",label:"Ignore",onClick:eE}]]},trigger:["click"],children:(0,s.jsx)(d.wpx,{icon:(0,s.jsx)(d.PJP._ME,{}),iconPosition:"end",loading:el,"data-testid":"bulk-actions-menu",disabled:!eC.length||el||ey,type:"primary",children:"Actions"})}),(0,s.jsx)(d.esZ,{title:ed?"These assets require a system before you can add them to the inventory.":void 0,children:(0,s.jsx)(d.wpx,{onClick:eA,disabled:ed,loading:et,type:"primary",icon:(0,s.jsx)(d.PJP.MCw,{}),iconPosition:"end","data-testid":"add-all",children:"Add all"})})]})]})]}),(0,s.jsx)(d.V5H,{dataSource:(null==ef?void 0:ef.items)||[],columns:e_,loading:ex||ej,rowKey:e=>e.urn,rowSelection:eg===R.A.RECENT_ACTIVITY?void 0:{selectedRowKeys:Z,onChange:(e,t)=>{U(e);let n=new Map(M);(null==ef?void 0:ef.items)&&ef.items.forEach(t=>{e.includes(t.urn)||n.delete(t.urn)}),t.forEach(e=>{n.set(e.urn,e)}),V(n)}},pagination:{current:C,pageSize:b,total:(null==ef?void 0:ef.total)||0},onChange:(e,t,n)=>{e.current!==C||e.pageSize!==b?w(e.current||1):w(1),k(e.pageSize||25),A(t||{});let s=n&&!Array.isArray(n)?n.field:void 0,a=n&&!Array.isArray(n)&&null!==n.order?n.order:void 0;I(s),D(a)},locale:{emptyText:(0,s.jsx)(d.oj8,{image:d.oj8.PRESENTED_IMAGE_SIMPLE,description:"All caught up!"})}}),(0,s.jsx)(T,{isOpen:W,onClose:()=>{X(!1)},onSave:eb,isSaving:es}),(0,s.jsx)(S,{isOpen:$,onClose:()=>{B(!1)},onSave:ek,isSaving:er}),K&&(0,s.jsx)(L,{isOpen:!!K,stagedResource:K.stagedResource,status:K.status,onCancel:()=>{q(null)}})]}):null};var Q=()=>{let e=(0,a.useRouter)(),t=decodeURIComponent(e.query.monitorId),n=decodeURIComponent(e.query.systemId),[d,c]=(0,r.useState)(n===o.Kl?"Uncategorized assets":n);return(0,s.jsxs)(i.Z,{title:"Action center - Discovered assets",children:[(0,s.jsx)(l.Z,{heading:"Action center",breadcrumbItems:[{title:"All activity",href:o.vi},{title:t,href:"".concat(o.vi,"/").concat(t)},{title:n===o.Kl?"Uncategorized assets":d}]}),(0,s.jsx)(J,{monitorId:t,systemId:n,onSystemName:c})]})}},72707:function(e){e.exports={option:"TaxonomySelect_option__vY6v2"}},18992:function(e){e.exports={cellBleed:"Cells_cellBleed__dik43"}}},function(e){e.O(0,[8765,9278,5163,401,6780,7725,8735,2888,9774,179],function(){return e(e.s=25654)}),_N_E=e.O()}]);
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4154],{58095:function(e,t,n){var s=n(8817);e.exports=function(e,t){return!!(null==e?0:e.length)&&s(e,t,0)>-1}},21796:function(e){e.exports=function(e,t,n){for(var s=-1,a=null==e?0:e.length;++s<a;)if(n(t,e[s]))return!0;return!1}},8817:function(e,t,n){var s=n(95372),a=n(1129),r=n(58263);e.exports=function(e,t,n){return t==t?r(e,t,n):s(e,a,n)}},1129:function(e){e.exports=function(e){return e!=e}},92198:function(e,t,n){var s=n(52485),a=n(58095),r=n(21796),i=n(65581),o=n(47111),l=n(43735);e.exports=function(e,t,n){var d=-1,c=a,u=e.length,h=!0,m=[],g=m;if(n)h=!1,c=r;else if(u>=200){var v=t?null:o(e);if(v)return l(v);h=!1,c=i,g=new s}else g=t?[]:m;e:for(;++d<u;){var p=e[d],y=t?t(p):p;if(p=n||0!==p?p:0,h&&y==y){for(var f=g.length;f--;)if(g[f]===y)continue e;t&&g.push(y),m.push(p)}else c(g,y,n)||(g!==m&&g.push(y),m.push(p))}return m}},47111:function(e,t,n){var s=n(46151),a=n(50344),r=n(43735),i=s&&1/r(new s([,-0]))[1]==1/0?function(e){return new s(e)}:a;e.exports=i},58263:function(e){e.exports=function(e,t,n){for(var s=n-1,a=e.length;++s<a;)if(e[s]===t)return s;return -1}},50344:function(e){e.exports=function(){}},83766:function(e,t,n){var s=n(92198);e.exports=function(e){return e&&e.length?s(e):[]}},25654:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/data-discovery/action-center/[monitorId]/[systemId]",function(){return n(56514)}])},79283:function(e,t,n){"use strict";n.d(t,{l:function(){return l}});var s=n(24246),a=n(27824),r=n(72707),i=n.n(r);let o=e=>{let{data:{formattedTitle:t,description:n,name:r,primaryName:i}}=e;return(0,s.jsxs)(a.jqI,{gap:12,title:"".concat(t," - ").concat(n),children:[(0,s.jsxs)("div",{children:[(0,s.jsx)("strong",{children:i||r}),i&&": ".concat(r)]}),(0,s.jsx)("em",{children:n})]})},l=e=>{let{options:t,...n}=e,r=null==t?void 0:t.map(e=>({...e,className:i().option,formattedTitle:[e.primaryName,e.name].filter(e=>e).join(": ")}));return(0,s.jsx)(a.WPr,{options:r,filterOption:(e,t)=>(null==t?void 0:t.formattedTitle.toLowerCase().includes(e.toLowerCase()))||(null==t?void 0:t.value.toLowerCase().includes(e.toLowerCase()))||!1,optionFilterProp:"label",autoFocus:!0,variant:"borderless",optionRender:o,dropdownStyle:{minWidth:"500px"},className:"w-full p-0","data-testid":"taxonomy-select",...n})}},14047:function(e,t,n){"use strict";n.d(t,{H:function(){return r},V:function(){return s.V}});var s=n(84306),a=n(812);let r=()=>{let{errorAlert:e}=(0,s.V)();return{handleError:t=>{let n="An unexpected error occurred. Please try again.";(0,a.Ot)(t)?n=t.data.detail:(0,a.tB)(t)&&(n=t.data.detail[0].msg),e(n)}}}},84306:function(e,t,n){"use strict";n.d(t,{V:function(){return r}});var s=n(24246),a=n(27824);let r=()=>{let e=(0,a.pmc)();return{errorAlert:(t,n,r)=>{let i={...r,position:(null==r?void 0:r.position)||"top",render:e=>{let{onClose:r}=e;return(0,s.jsxs)(a.bZj,{alignItems:"normal",status:"error","data-testid":"error-alert",children:[(0,s.jsx)(a.zMQ,{}),(0,s.jsxs)(a.xuv,{children:[n&&(0,s.jsx)(a.CdC,{children:n}),(0,s.jsx)(a.XaZ,{children:t})]}),(0,s.jsx)(a.PZ7,{onClick:r,position:"relative",right:0,size:"sm",top:-1})]})}};(null==r?void 0:r.id)&&e.isActive(r.id)?e.update(r.id,i):e(i)},successAlert:(t,n,r)=>{let i={...r,position:(null==r?void 0:r.position)||"top",render:e=>{let{onClose:r}=e;return(0,s.jsxs)(a.bZj,{alignItems:"normal",status:"success",variant:"subtle","data-testid":"success-alert",children:[(0,s.jsx)(a.zMQ,{}),(0,s.jsxs)(a.xuv,{children:[n&&(0,s.jsx)(a.CdC,{children:n}),(0,s.jsx)(a.XaZ,{children:t})]}),(0,s.jsx)(a.PZ7,{onClick:r,position:"relative",right:0,size:"sm",top:-1})]})}};(null==r?void 0:r.id)&&e.isActive(r.id)?e.update(r.id,i):e(i)}}}},45938:function(e,t,n){"use strict";n.d(t,{Gt:function(){return h},eB:function(){return m},oI:function(){return u}});var s=n(24246),a=n(34090),r=n(27378),i=n(16134),o=n(38602),l=n(58452);let d=(0,r.createRef)(),c=(0,r.createRef)(),u=()=>{let e=(0,i.T)(),t=(0,i.C)(o.DB),n=(0,r.useCallback)(()=>{c.current=void 0,d.current=void 0},[]),s=(0,r.useCallback)(()=>{e((0,o.Mr)()),c.current&&(c.current(!0),n())},[e,n]),a=(0,r.useCallback)(()=>{e((0,o.Mr)()),c.current&&(c.current(!1),n())},[e,n]);return{attemptAction:(0,r.useCallback)(()=>t?(e((0,o.h7)()),d.current||(d.current=new Promise(e=>{c.current=e})),d.current):Promise.resolve(!0),[t,e]),onConfirm:s,onClose:a}},h=e=>{let{id:t,name:n}=e,{dirty:s}=(0,a.u6)(),l=(0,i.T)();return(0,r.useEffect)(()=>(l((0,o.Zu)({id:t,name:n})),()=>{l((0,o.dz)({id:t}))}),[l,t,n]),(0,r.useEffect)(()=>{l((0,o.$p)({id:t,isDirty:s}))},[s,l,t]),null},m=()=>{let{onConfirm:e,onClose:t}=u(),n=(0,i.C)(o.uv);return(0,s.jsx)(l.Z,{isOpen:n,onClose:t,onConfirm:e,isCentered:!0,title:"Unsaved Changes",message:"You have unsaved changes"})}},56514:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return Q}});var s=n(24246),a=n(86677),r=n(27378),i=n(35287),o=n(77830),l=n(58754),d=n(27824),c=n(83766),u=n.n(c),h=n(812),m=n(25415),g=n(46628),v=n(54682),p=n(30952),y=n(37059),f=n(8133),x=n(79283),j=n(34929),_=n(78238),C=e=>{let{selectedTaxonomies:t,...n}=e,{getDataUseDisplayNameProps:a,getDataUses:r}=(0,j.Z)(),i=r().filter(e=>e.active&&_.g.includes(e.fides_key)).map(e=>{let{name:t,primaryName:n}=a(e.fides_key);return{value:e.fides_key,name:t,primaryName:n,description:e.description||""}});return(0,s.jsx)(x.l,{options:i,...n})};let{Text:w}=d.AntTypography;var S=e=>{let{onSave:t,isSaving:n,onClose:a,...i}=e,[o,l]=(0,r.useState)([]),c=()=>{l([]),a()};return(0,s.jsxs)(f.Z,{title:"Add consent category",...i,onClose:c,children:[(0,s.jsxs)(d.jqI,{vertical:!0,gap:20,className:"pb-6 pt-4",children:[(0,s.jsx)(w,{children:"Assign consent categories to selected assets. This configures the system for consent management. Consent categories apply to both individual assets and the system."}),(0,s.jsx)(C,{mode:"tags",selectedTaxonomies:o,onSelect:(e,t)=>l([...o,t.value]),variant:"outlined"})]}),(0,s.jsxs)(d.jqI,{justify:"space-between",children:[(0,s.jsx)(d.wpx,{htmlType:"reset",onClick:c,"data-testid":"cancel-btn",children:"Cancel"}),(0,s.jsx)(d.wpx,{htmlType:"submit",type:"primary",disabled:!o.length,loading:n,onClick:()=>{t(o),c()},"data-testid":"save-btn",children:"Save"})]})]})},b=n(29850),k=n(77685);let{Text:E}=d.AntTypography,T=e=>{let{onSave:t,isSaving:n,...a}=e,[i,o]=(0,r.useState)(),[l,c]=(0,r.useState)(!1),u=(0,r.useCallback)(e=>{e.preventDefault(),c(!0)},[]),h=()=>{c(!1)},m=()=>{o(void 0),a.onClose()};return(0,s.jsxs)(f.Z,{title:"Assign system",...a,onClose:m,children:[(0,s.jsxs)(d.jqI,{vertical:!0,gap:20,className:"pb-6 pt-4",children:[(0,s.jsx)(E,{children:"Assign a system to the selected assets. If no system exists, select 'Add new system' to create one."}),(0,s.jsx)(b.R,{placeholder:"Search or select...",onSelect:(e,t)=>{o(t)},onAddSystem:u,value:i})]})," ",(0,s.jsxs)(d.jqI,{justify:"space-between",children:[(0,s.jsx)(d.wpx,{htmlType:"reset",onClick:m,"data-testid":"cancel-btn",children:"Cancel"}),(0,s.jsx)(d.wpx,{htmlType:"submit",type:"primary",disabled:!i,loading:n,onClick:()=>{t(i),m()},"data-testid":"save-btn",children:"Save"})]}),l&&(0,s.jsx)(k.i,{isOpen:!0,onClose:h,onSuccessfulSubmit:(e,t)=>{h(),o({label:t,value:e})},toastOnSuccess:!0})]})};var A=n(8411),N=n(47935);let{Paragraph:I,Text:O,Link:D}=d.AntTypography,L=e=>{var t,n,a;let{isOpen:i,stagedResource:o,status:l,onCancel:c,onDownload:u}=e,[h,m]=(0,r.useState)(1),[g,v]=(0,r.useState)(N.W3[0]),{data:p,isFetching:f,isError:x}=(0,y.mi)({stagedResourceUrn:o.urn,status:l,page:h,size:g}),{items:j,total:_}=(0,r.useMemo)(()=>p||{items:[],total:0,pages:0,filterOptions:{assigned_users:[],systems:[]}},[p]);return(0,s.jsx)(d.$zI,{title:"Consent discovery",width:768,open:i,onCancel:c,footer:[(0,s.jsx)(d.wpx,{onClick:c,children:"Cancel"},"cancel"),!!u&&(0,s.jsx)(d.wpx,{type:"primary",onClick:u,children:"Download"},"download")],"data-testid":"consent-breakdown-modal",children:(0,s.jsxs)(d.jqI,{vertical:!0,className:"gap-6","data-testid":"consent-breakdown-modal-content",children:[(0,s.jsxs)("div",{children:[(0,s.jsx)(I,{children:"View all instances where this asset was detected without consent, organized by location and page. Use this to investigate potential compliance issues."}),(0,s.jsxs)(I,{children:[(0,s.jsx)(O,{strong:!0,children:"Asset name:"})," ",null!==(t=o.name)&&void 0!==t?t:(0,s.jsx)(O,{italic:!0,children:"Unknown"}),","," ",(0,s.jsx)(O,{strong:!0,children:"System:"})," ",null!==(n=o.system)&&void 0!==n?n:(0,s.jsx)(O,{italic:!0,children:"Unassigned"}),","," ",(0,s.jsx)(O,{strong:!0,children:"Domain:"})," ",null!==(a=o.domain)&&void 0!==a?a:(0,s.jsx)(O,{italic:!0,children:"Unknown"})]})]}),x?(0,s.jsx)(d.DUx,{type:"error",message:"Error fetching data",description:"Please try again later.",showIcon:!0}):(0,s.jsx)(d.V5H,{columns:[{title:"Location",dataIndex:"location",key:"location",render:e=>{var t;return null!==(t=A.Z8[e])&&void 0!==t?t:e}},{title:"Page",dataIndex:"page",key:"page",render:e=>(0,s.jsx)(D,{href:e,target:"_blank",rel:"noopener noreferrer",children:e})}],rowKey:e=>e.location,dataSource:j,pagination:!!_&&(h>1||g>N.W3[0])&&{current:h,pageSize:g,total:_||0,showTotal:(e,t)=>"".concat(t[0],"-").concat(t[1]," of ").concat(e," items"),onChange:(e,t)=>{m(e),t!==g&&(v(t),m(1))}},loading:f,"data-testid":"consent-breakdown-modal-table"})]})})};var P=n(98145),R=n(88708),Z=n(62165),U=n(91982),M=n(16394),V=n(54762),G=n(9320);let z=e=>{let{asset:t,onTabChange:n}=e,[r,{isLoading:i}]=(0,y.EY)(),[l,{isLoading:c}]=(0,y.nS)(),[u,{isLoading:m}]=(0,y.Tj)(),p=(0,d.pmc)(),f=(0,a.useRouter)(),x=i||c||m,{urn:j,name:_,resource_type:C,diff_status:w,system_key:S,user_assigned_system_key:b}=t,k=async()=>{let e=await r({urnList:[j]});if((0,h.D4)(e))p((0,g.Vo)((0,h.e$)(e.error)));else{let e=b||S,t="".concat(o.So,"/configure/").concat(e,"#assets");p((0,g.t5)((0,G._)("".concat(C,' "').concat(_,'" has been added to the system inventory.'),e?()=>f.push(t):void 0)))}},E=async()=>{let e=await l({urnList:[j]});(0,h.D4)(e)?p((0,g.Vo)((0,h.e$)(e.error))):p((0,g.t5)((0,G._)("".concat(C,' "').concat(_,'" has been ignored and will not appear in future scans.'),()=>n(R.A.IGNORED))))},T=async()=>{let e=await u({urnList:[j]});(0,h.D4)(e)?p((0,g.Vo)((0,h.e$)(e.error))):p((0,g.t5)("".concat(C,' "').concat(_,'" is no longer ignored and will appear in future scans.')))};return(0,s.jsxs)(d.vyj,{children:[w!==v.LL.MUTED&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(d.esZ,{title:t.system?void 0:"This asset requires a system before you can add it to the inventory.",children:(0,s.jsx)(d.wpx,{"data-testid":"add-btn",size:"small",onClick:k,disabled:!t.system||x,loading:i,children:"Add"})}),(0,s.jsx)(d.wpx,{"data-testid":"ignore-btn",size:"small",onClick:E,disabled:x,loading:c,children:"Ignore"})]}),w===v.LL.MUTED&&(0,s.jsx)(d.wpx,{"data-testid":"restore-btn",size:"small",onClick:T,disabled:x,loading:m,children:"Restore"})]})};var W=n(14047),X=n(18992),$=n.n(X),B=n(31883),K=e=>{var t,n,a;let{asset:i,readonly:o}=e,[l,c]=(0,r.useState)(!1),[u]=(0,y.Ak)(),{successAlert:m,errorAlert:g}=(0,W.V)(),{getDataUseDisplayName:v}=(0,j.Z)(),p=(null===(t=i.user_assigned_data_uses)||void 0===t?void 0:t.length)?i.user_assigned_data_uses:(null===(n=i.data_uses)||void 0===n?void 0:n.length)?i.data_uses:[],f=async e=>{let t=await u({monitorId:i.monitor_config_id,urnList:[i.urn],dataUses:[...p,e]});(0,B.D4)(t)?g((0,h.e$)(t.error)):m("Consent category added to ".concat(i.resource_type,' "').concat(i.name,'" .'),"Confirmed"),c(!1)},x=async e=>{let t=await u({monitorId:i.monitor_config_id,urnList:[i.urn],dataUses:p.filter(t=>t!==e)});(0,B.D4)(t)?g((0,h.e$)(t.error)):m("Consent category removed from ".concat(i.resource_type,' "').concat(i.name,'".'),"Confirmed")},w=(null===(a=i.user_assigned_data_uses)||void 0===a?void 0:a.length)?i.user_assigned_data_uses:i.data_uses,S=null==w?void 0:w.filter(e=>(0,_.Z)(e));return o?(0,s.jsx)(d.vyj,{direction:"vertical",children:null==S?void 0:S.map(e=>(0,s.jsx)(d.j8w,{color:"white",children:v(e)},e))}):(0,s.jsxs)(s.Fragment,{children:[!l&&(0,s.jsxs)(d.vyj,{wrap:!0,children:[null==S?void 0:S.map(e=>(0,s.jsx)(d.j8w,{"data-testid":"data-use-".concat(e),color:"white",closable:!0,onClose:()=>x(e),closeButtonLabel:"Remove data use",children:v(e)},e)),(0,s.jsx)(d.j8w,{onClick:()=>c(!0),"data-testid":"taxonomy-add-btn",addable:!0,"aria-label":"Add data use"})]}),l&&(0,s.jsx)("div",{className:$().cellBleed,style:{backgroundColor:"var(--fides-color-white)"},children:(0,s.jsx)(C,{selectedTaxonomies:S||[],onSelect:f,onBlur:()=>c(!1),open:!0})})]})};let q=e=>{let{consentAggregated:t,stagedResource:n,onShowBreakdown:a}=e;return(0,s.jsxs)(s.Fragment,{children:[t===v.lg.WITHOUT_CONSENT&&(0,s.jsx)(d.esZ,{title:"Asset was detected before the user gave consent or without any consent. Click the info icon for more details.",children:(0,s.jsx)(d.j8w,{color:"error",closeIcon:(0,s.jsx)(d.PJP.daM,{style:{width:12,height:12}}),closeButtonLabel:"View details",onClose:()=>{null==a||a(n,t)},"data-testid":"status-badge_without-consent",children:P.X.WITHOUT_CONSENT})}),t===v.lg.WITH_CONSENT&&(0,s.jsx)(d.esZ,{title:"Asset was detected after the user gave consent",children:(0,s.jsx)(d.j8w,{color:"success","data-testid":"status-badge_with-consent",children:P.X.WITH_CONSENT})}),t===v.lg.EXEMPT&&(0,s.jsx)(d.esZ,{title:"Asset is valid regardless of consent",children:(0,s.jsx)(d.j8w,{"data-testid":"status-badge_consent-exempt",children:P.X.EXEMPT})}),t===v.lg.UNKNOWN&&(0,s.jsx)(d.esZ,{title:"Did not find consent information for this asset. You may need to re-run the monitor.",children:(0,s.jsx)(d.j8w,{"data-testid":"status-badge_unknown",children:P.X.UNKNOWN})})]})};var H=n(70675);let Y=e=>{let{aggregateSystem:t,monitorConfigId:n,readonly:a}=e,{resource_type:i,name:o,urn:l,system:c,user_assigned_system_key:u,system_key:m}=t,[g,v]=(0,r.useState)(!1),[p,y]=(0,r.useState)(!1),[f,{isLoading:x}]=(0,H.NA)(),{successAlert:j,errorAlert:_}=(0,W.V)(),C=(0,r.useCallback)(e=>{e.preventDefault(),y(!0)},[]),w=async(e,t,s)=>{let a=await f({staged_resource_urn:l,monitor_config_id:n,user_assigned_system_key:e});(0,h.D4)(a)?_((0,h.e$)(a.error)):j(s?"".concat(t," has been added to your system inventory and the ").concat(i,' "').concat(o,'" has been assigned to that system.'):"".concat(i,' "').concat(o,'" has been assigned to ').concat(t,"."),"Confirmed"),v(!1)};return a?c?(0,s.jsx)(d.j8w,{"data-testid":"system-badge",color:"white",children:c}):null:(0,s.jsxs)(s.Fragment,{children:[!g&&(c?(0,s.jsxs)(d.j8w,{onClick:()=>v(!0),"data-testid":"system-badge",children:[c,(0,s.jsx)(d.PJP.I8b,{})]}):(0,s.jsx)(d.j8w,{onClick:()=>v(!0),"data-testid":"add-system-btn",addable:!0})),!!g&&(0,s.jsx)("div",{className:$().cellBleed,children:(0,s.jsx)(b.R,{variant:"borderless",autoFocus:!0,defaultOpen:!0,defaultValue:u||m,onBlur:e=>{var t;(null===(t=e.relatedTarget)||void 0===t?void 0:t.getAttribute("id"))!=="add-new-system"&&v(!1)},onAddSystem:C,onSelect:(e,t)=>w(e,t.label),loading:x})}),p&&(0,s.jsx)(k.i,{isOpen:!0,onClose:()=>{y(!1)},onSuccessfulSubmit:(e,t)=>w(e,t,!0)})]})},F=e=>{let{readonly:t,aggregatedConsent:n,onTabChange:a,onShowBreakdown:i,monitorConfigId:o,resolvedSystemId:l,diffStatus:c,columnFilters:u,sortField:h,sortOrder:m,searchQuery:g}=e,{flags:p}=(0,Z.hz)(),{assetConsentStatusLabels:f}=p,[x,j]=(0,r.useState)(!1),[C,w]=(0,r.useState)(!1),{data:S}=(0,y.ut)({monitor_config_id:o,resolved_system_id:l,diff_status:c,search:g,...u});return{columns:(0,r.useMemo)(()=>{var e;let r=[{title:"Asset",dataIndex:P.r.NAME,key:P.r.NAME,sorter:!0,sortOrder:h===P.r.NAME?m:null,render:e=>(0,s.jsx)(d.lKn,{ellipsis:{tooltip:!0},style:{maxWidth:300},children:e}),fixed:"left"},{title:"Type",dataIndex:P.r.RESOURCE_TYPE,key:P.r.RESOURCE_TYPE,sorter:!0,sortOrder:h===P.r.RESOURCE_TYPE?m:null,filters:(0,M.nZ)(null==S?void 0:S.resource_type),filteredValue:(null==u?void 0:u.resource_type)||null},{title:"System",dataIndex:P.r.SYSTEM,key:P.r.SYSTEM,width:200,render:(e,n)=>!!n.monitor_config_id&&(0,s.jsx)(Y,{aggregateSystem:n,monitorConfigId:n.monitor_config_id,readonly:t})},{title:"Categories of consent",key:P.r.DATA_USES,width:400,filters:(0,M.nZ)(null==S?void 0:null===(e=S.data_uses)||void 0===e?void 0:e.filter(e=>(0,_.Z)(e))),filteredValue:(null==u?void 0:u.data_uses)||null,render:(e,n)=>(0,s.jsx)(K,{asset:n,readonly:t})},{title:()=>(0,s.jsx)(U.OL,{title:"Locations",menu:{items:U.DI,onClick:e=>{e.domEvent.stopPropagation(),"expand-all"===e.key?j(!0):"collapse-all"===e.key&&j(!1)}}}),dataIndex:P.r.LOCATIONS,key:P.r.LOCATIONS,width:250,filters:(0,M.nZ)(null==S?void 0:S.locations,e=>{var t;return null!==(t=A.Z8[e])&&void 0!==t?t:e}),filteredValue:(null==u?void 0:u.locations)||null,render:e=>{var t;return(0,s.jsx)(U.Q3,{values:null!==(t=null==e?void 0:e.map(e=>{var t;return{label:null!==(t=A.Z8[e])&&void 0!==t?t:e,key:e}}))&&void 0!==t?t:[],columnState:{isExpanded:x,isWrapped:!0}})}},{title:"Domain",dataIndex:P.r.DOMAIN,key:P.r.DOMAIN},{title:()=>(0,s.jsx)(U.OL,{title:"Detected on",menu:{items:U.DI,onClick:e=>{e.domEvent.stopPropagation(),"expand-all"===e.key?w(!0):"collapse-all"===e.key&&w(!1)}}}),dataIndex:P.r.PAGE,key:P.r.PAGE,render:e=>(0,s.jsx)(U.vx,{values:e,valueSuffix:"pages",columnState:{isExpanded:C}})}];return f&&r.push({title:()=>(0,s.jsxs)(d.vyj,{children:[(0,s.jsx)("div",{children:"Compliance"}),n===v.lg.WITHOUT_CONSENT&&(0,s.jsx)(V.l,{consentStatus:{status:v.pF.ALERT,message:"One or more assets were detected without consent"}})]}),dataIndex:P.r.CONSENT_AGGREGATED,key:P.r.CONSENT_AGGREGATED,sorter:!0,sortOrder:h===P.r.CONSENT_AGGREGATED?m:null,filters:(0,M.nZ)(null==S?void 0:S[P.r.CONSENT_AGGREGATED],e=>{var t;return null!==(t=({with_consent:P.X.WITH_CONSENT,without_consent:P.X.WITHOUT_CONSENT,exempt:P.X.EXEMPT,unknown:P.X.UNKNOWN})[e])&&void 0!==t?t:e}),filteredValue:(null==u?void 0:u[P.r.CONSENT_AGGREGATED])||null,render:(e,t)=>(0,s.jsx)(q,{consentAggregated:null!=e?e:v.lg.UNKNOWN,stagedResource:t,onShowBreakdown:i})}),t||r.push({title:"Actions",key:P.r.ACTIONS,fixed:"right",render:(e,t)=>(0,s.jsx)(z,{asset:t,onTabChange:a})}),r},[S,u,h,m,f,t,x,C,n,i,a])}},J=e=>{var t;let{monitorId:n,systemId:i,onSystemName:l}=e,c=(0,a.useRouter)(),[f,x]=(0,r.useState)(),[j,_]=(0,r.useState)(i),[C,w]=(0,r.useState)(1),[b,k]=(0,r.useState)(25),[E,A]=(0,r.useState)({}),[N,I]=(0,r.useState)(),[O,D]=(0,r.useState)(),[Z,U]=(0,r.useState)([]),[M,V]=(0,r.useState)(new Map),z=()=>{U([]),V(new Map)},[W,X]=(0,r.useState)(!1),[$,B]=(0,r.useState)(!1),[K,q]=(0,r.useState)(null),[H,{isLoading:Y}]=(0,y.EY)(),[J,{isLoading:Q}]=(0,y.nS)(),[ee,{isLoading:et}]=(0,y.rs)(),[en,{isLoading:es}]=(0,y.sX)(),[ea,{isLoading:er}]=(0,y.Vr)(),[ei,{isLoading:eo}]=(0,y.Tj)(),el=Y||Q||et||es||eo,ed=el||i===o.Kl,[ec,eu]=(0,r.useState)(""),eh=(0,d.pmc)(),{filterTabs:em,activeTab:eg,onTabChange:ev,activeParams:ep,actionsDisabled:ey}=(0,R.Z)(i);(0,r.useEffect)(()=>{w(1)},[n,ec,eg]),(0,r.useEffect)(()=>{z()},[n,eg]);let{data:ef,isLoading:ex,isFetching:ej}=(0,y.WJ)({key:n,page:C,size:b,search:ec,sort_by:N?[N]:[P.r.CONSENT_AGGREGATED,"urn"],sort_asc:"descend"!==O,...ep,...E});(0,r.useEffect)(()=>{if(ef){var e;let t=(null===(e=ef.items[0])||void 0===e?void 0:e.system)||j||i||"";_(t),null==l||l(t)}},[ef,i,l,j]),(0,r.useEffect)(()=>{if((null==ef?void 0:ef.items)&&!f){var e;x(null===(e=ef.items.find(e=>e.consent_aggregated===v.lg.WITHOUT_CONSENT))||void 0===e?void 0:e.consent_aggregated)}},[ef,f]);let{columns:e_}=F({readonly:null!=ey&&ey,onTabChange:ev,aggregatedConsent:f,onShowBreakdown:(e,t)=>{q({stagedResource:e,status:t})},monitorConfigId:n,resolvedSystemId:i,diffStatus:null==ep?void 0:ep.diff_status,columnFilters:E,sortField:N,sortOrder:O,searchQuery:ec}),eC=Array.from(M.keys()),ew=Array.from(M.values()),eS=async()=>{var e,t;let n=await H({urnList:eC}),s=(null===(e=ew[0])||void 0===e?void 0:e.user_assigned_system_key)||(null===(t=ew[0])||void 0===t?void 0:t.system_key),a=ew.every(e=>(e.user_assigned_system_key||e.system_key)===s)?s:void 0;(0,h.D4)(n)?eh((0,g.Vo)((0,h.e$)(n.error))):(eh((0,g.t5)((0,G._)("".concat(eC.length," assets from ").concat(j," have been added to the system inventory."),a?()=>c.push("".concat(o.So,"/configure/").concat(a,"#assets")):()=>c.push(o.So)))),z())},eb=async e=>{if("string"==typeof(null==e?void 0:e.value)){let t=await en({monitorId:n,urnList:eC,systemKey:e.value});(0,h.D4)(t)?eh((0,g.Vo)((0,h.e$)(t.error))):eh((0,g.t5)("".concat(eC.length," assets have been assigned to ").concat(e.label,"."),"Confirmed"))}X(!1)},ek=async e=>{if(!ew.length)return;let t=ew.map(t=>{let n=u()([...t.user_assigned_data_uses||t.data_uses||[],...e]);return{urn:t.urn,user_assigned_data_uses:n}}),s=await ea({monitorId:n,assets:t});(0,h.D4)(s)?eh((0,g.Vo)((0,h.e$)(s.error))):eh((0,g.t5)("Consent categories added to ".concat(eC.length," assets").concat(j?" from ".concat(j):"","."),"Confirmed")),B(!1)},eE=async()=>{let e=await J({urnList:eC});(0,h.D4)(e)?eh((0,g.Vo)((0,h.e$)(e.error))):(eh((0,g.t5)(j===o.Kl?"".concat(eC.length," uncategorized assets have been ignored and will not appear in future scans."):"".concat(eC.length," assets from ").concat(j," have been ignored and will not appear in future scans."),"Confirmed")),z())},eT=async()=>{let e=await ei({urnList:eC});(0,h.D4)(e)?eh((0,g.Vo)((0,h.e$)(e.error))):(eh((0,g.t5)("".concat(eC.length," assets have been restored and will appear in future scans."),"Confirmed")),z())},eA=async()=>{let e=(null==ef?void 0:ef.items.length)||0,t=await ee({monitor_config_key:n,resolved_system_ids:[i]});(0,h.D4)(t)?eh((0,g.Vo)((0,h.e$)(t.error))):(c.push("".concat(o.vi,"/").concat(n)),eh((0,g.t5)("".concat(e," assets from ").concat(j," have been added to the system inventory."),"Confirmed")),z())},eN=e=>{ev(e),z()};return((0,r.useEffect)(()=>{(null==ef?void 0:ef.items)&&U(ef.items.filter(e=>M.has(e.urn)).map(e=>e.urn))},[ef,M]),n&&i)?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(d.A5g,{items:em.map(e=>({key:e.hash,label:e.label})),activeKey:eg,onChange:e=>eN(e)}),(0,s.jsxs)(d.jqI,{justify:"space-between",align:"center",className:"mb-4",children:[(0,s.jsx)(p.f,{value:ec,onChange:eu,placeholder:"Search by asset name..."}),(0,s.jsxs)(d.vyj,{size:"large",children:[!!eC.length&&(0,s.jsx)(m.a,{count:eC.length}),(0,s.jsxs)(d.vyj,{size:"small",children:[(0,s.jsx)(d.wpx,{onClick:()=>{A({}),eu(""),I(void 0),D(void 0)},"data-testid":"clear-filters",children:"Clear filters"}),(0,s.jsx)(d.S0p,{menu:{items:[{key:"add",label:"Add",onClick:eS},{key:"add-data-use",label:"Add consent category",onClick:()=>B(!0)},{key:"assign-system",label:"Assign system",onClick:()=>X(!0)},...(null==ep?void 0:null===(t=ep.diff_status)||void 0===t?void 0:t.includes(v.LL.MUTED))?[{key:"restore",label:"Restore",onClick:eT}]:[{type:"divider"},{key:"ignore",label:"Ignore",onClick:eE}]]},trigger:["click"],children:(0,s.jsx)(d.wpx,{icon:(0,s.jsx)(d.PJP._ME,{}),iconPosition:"end",loading:el,"data-testid":"bulk-actions-menu",disabled:!eC.length||el||ey,type:"primary",children:"Actions"})}),(0,s.jsx)(d.esZ,{title:ed?"These assets require a system before you can add them to the inventory.":void 0,children:(0,s.jsx)(d.wpx,{onClick:eA,disabled:ed,loading:et,type:"primary",icon:(0,s.jsx)(d.PJP.MCw,{}),iconPosition:"end","data-testid":"add-all",children:"Add all"})})]})]})]}),(0,s.jsx)(d.V5H,{dataSource:(null==ef?void 0:ef.items)||[],columns:e_,loading:ex||ej,rowKey:e=>e.urn,rowSelection:eg===R.A.RECENT_ACTIVITY?void 0:{selectedRowKeys:Z,onChange:(e,t)=>{U(e);let n=new Map(M);(null==ef?void 0:ef.items)&&ef.items.forEach(t=>{e.includes(t.urn)||n.delete(t.urn)}),t.forEach(e=>{n.set(e.urn,e)}),V(n)}},pagination:{current:C,pageSize:b,total:(null==ef?void 0:ef.total)||0},onChange:(e,t,n)=>{e.current!==C||e.pageSize!==b?w(e.current||1):w(1),k(e.pageSize||25),A(t||{});let s=n&&!Array.isArray(n)?n.field:void 0,a=n&&!Array.isArray(n)&&null!==n.order?n.order:void 0;I(s),D(a)},locale:{emptyText:(0,s.jsx)(d.oj8,{image:d.oj8.PRESENTED_IMAGE_SIMPLE,description:"All caught up!"})}}),(0,s.jsx)(T,{isOpen:W,onClose:()=>{X(!1)},onSave:eb,isSaving:es}),(0,s.jsx)(S,{isOpen:$,onClose:()=>{B(!1)},onSave:ek,isSaving:er}),K&&(0,s.jsx)(L,{isOpen:!!K,stagedResource:K.stagedResource,status:K.status,onCancel:()=>{q(null)}})]}):null};var Q=()=>{let e=(0,a.useRouter)(),t=decodeURIComponent(e.query.monitorId),n=decodeURIComponent(e.query.systemId),[d,c]=(0,r.useState)(n===o.Kl?"Uncategorized assets":n);return(0,s.jsxs)(i.Z,{title:"Action center - Discovered assets",children:[(0,s.jsx)(l.Z,{heading:"Action center",breadcrumbItems:[{title:"All activity",href:o.vi},{title:t,href:"".concat(o.vi,"/").concat(t)},{title:n===o.Kl?"Uncategorized assets":d}]}),(0,s.jsx)(J,{monitorId:t,systemId:n,onSystemName:c})]})}},72707:function(e){e.exports={option:"TaxonomySelect_option__vY6v2"}},18992:function(e){e.exports={cellBleed:"Cells_cellBleed__dik43"}}},function(e){e.O(0,[8765,9278,5163,401,6780,7725,8735,2888,9774,179],function(){return e(e.s=25654)}),_N_E=e.O()}]);
|
|
@@ -1 +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,d,u,c,S=0,m=!1,h=!1,C=!0;if("function"!=typeof a)throw TypeError("Expected a function");function v(e){var n=_,t=l;return _=l=void 0,S=e,d=a.apply(t,n)}function y(a){var n=a-c,t=a-S;return void 0===c||n>=e||n<0||h&&t>=F}function f(){var a,n,t,s=i();if(y(s))return g(s);u=setTimeout(f,(a=s-c,n=s-S,t=e-a,h?r(t,F-n):t))}function g(a){return(u=void 0,C&&_)?v(a):(_=l=void 0,d)}function A(){var a,n=i(),t=y(n);if(_=arguments,l=this,c=n,t){if(void 0===u)return S=a=c,u=setTimeout(f,e),m?v(a):d;if(h)return clearTimeout(u),u=setTimeout(f,e),v(c)}return void 0===u&&(u=setTimeout(f,e)),d}return e=s(e)||0,t(n)&&(m=!!n.leading,F=(h="maxWait"in n)?o(s(n.maxWait)||0,e):F,C="trailing"in n?!!n.trailing:C),A.cancel=function(){void 0!==u&&clearTimeout(u),S=0,_=c=l=u=void 0},A.flush=function(){return void 0===u?d:g(i())},A}},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(99948)}])},30952:function(a,e,n){"use strict";n.d(e,{f:function(){return _}});var t=n(24246),i=n(66726),s=n.n(i),o=n(27378),r=n(26917);let _=a=>{let{value:e,onChange:n,placeholder:i,..._}=a,[l,F]=(0,o.useState)(e),d=s()(n,500),u=(0,o.useCallback)(a=>{F(a),d(a)},[]);return(0,t.jsx)(r.Z,{value:l,onChange:u,onClear:()=>{F(""),n("")},placeholder:i,..._})}},26089:function(a,e,n){"use strict";var t=n(24246),i=n(13577),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(54682);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]}))},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)&&l(n)},[n,e,o.isReady]),{activeTab:_,onTabChange:(0,i.useCallback)(async a=>{if(!e.includes(a)){await o.replace({pathname:o.pathname,query:o.query,hash:void 0}),l(e[0]);return}o.isReady&&(await o.replace({pathname:o.pathname,query:o.query,hash:s(a)},void 0,{shallow:!0}),l(a))},[o,e])}}},76904:function(a,e,n){"use strict";n.d(e,{dK:function(){return d},Rv:function(){return m},$P:function(){return c},zj:function(){return h},Kr:function(){return C},q1:function(){return u},QL:function(){return v}});var t=n(24246),i=n(13577),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"})})},_=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"})})},l=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 d=()=>(0,t.jsx)(_,{style:{color:o().FIDESUI_SUCCESS},className:"size-2","data-testid":"add-icon"}),u=()=>(0,t.jsx)(r,{style:{color:o().FIDESUI_ERROR},className:"size-2","data-testid":"remove-icon"}),c=()=>(0,t.jsx)(l,{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"}),h=()=>(0,t.jsx)(S,{color:o().FIDESUI_SUCCESS,"data-testid":"monitored-icon"}),C=()=>(0,t.jsx)(S,{color:o().FIDESUI_ERROR,"data-testid":"muted-icon"}),v={[F.E.ADDITION]:(0,t.jsx)(d,{}),[F.E.REMOVAL]:(0,t.jsx)(u,{}),[F.E.CLASSIFICATION]:(0,t.jsx)(c,{}),[F.E.CHANGE]:(0,t.jsx)(m,{}),[F.E.MONITORED]:(0,t.jsx)(h,{}),[F.E.MUTED]:(0,t.jsx)(C,{}),[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="--"},99948:function(a,e,n){"use strict";n.r(e),n.d(e,{default:function(){return R}});var t=n(24246),i=n(86677),s=n(35287),o=n(77830),r=n(58754),_=n(13577),l=n(27378),F=n(812),d=n(25415),u=n(46628),c=n(37059),S=n(88708),m=n(9320),h=n(54682),C=n(31883),v=n(30952),y=n(8411),f=n(91982),g=n(54762);let A=a=>{let{monitorId:e,system:n,allowIgnore:s,onTabChange:r}=a,[l,{isLoading:d}]=(0,c.rs)(),[h,{isLoading:C}]=(0,c.nP)(),v=(0,i.useRouter)(),y=(0,_.pmc)(),f=d||C,{id:g,name:A,system_key:I,total_updates:M}=n,p=async()=>{let a=await l({monitor_config_key:e,resolved_system_ids:[g]});if((0,F.D4)(a))y((0,u.Vo)((0,F.e$)(a.error)));else{let a="".concat(o.So,"/configure/").concat(I,"#assets");y((0,u.t5)((0,m._)(I?"".concat(M," assets from ").concat(A," have been added to the system inventory."):"".concat(A," and ").concat(M," assets have been added to the system inventory. ").concat(A," is now configured for consent."),I?()=>v.push(a):void 0)))}},N=async()=>{let a=await h({monitor_config_key:e,resolved_system_ids:[g||o.Kl]});(0,F.D4)(a)?y((0,u.Vo)((0,F.e$)(a.error))):y((0,u.t5)((0,m._)(A?"".concat(M," assets from ").concat(A," have been ignored and will not appear in future scans."):"".concat(M," uncategorized assets have been ignored and will not appear in future scans."),()=>r(S.A.IGNORED))))};return(0,t.jsxs)(_.vyj,{children:[(0,t.jsx)(_.esZ,{title:n.id?void 0:"These assets must be categorized before you can add them to the inventory.",children:(0,t.jsx)(_.wpx,{"data-testid":"add-btn",size:"small",onClick:p,disabled:!n.id||f,loading:d,children:"Add"})}),s&&(0,t.jsx)(_.wpx,{"data-testid":"ignore-btn",size:"small",onClick:N,disabled:f,loading:C,children:"Ignore"})]})};var I=n(79894),M=n.n(I);let{Link:p,Text:N}=_.AntTypography,E=a=>{let{href:e,children:n,...i}=a;return e?(0,t.jsx)(M(),{href:e,passHref:!0,legacyBehavior:!0,children:(0,t.jsx)(p,{strong:!0,ellipsis:!0,onClick:a=>a.stopPropagation(),...i,children:n})}):(0,t.jsx)(N,{strong:!0,ellipsis:!0,...i,children:n})};var U=n(76904);let x=a=>{let{system:e,rowClickUrl:n}=a,i=null==n?void 0:n(e);return(0,t.jsxs)(_.vyj,{className:"max-w-[250px] flex-nowrap",children:[!e.system_key&&(0,t.jsx)(_.esZ,{title:"New system",children:(0,t.jsx)("span",{children:U.QL.Change})}),(0,t.jsx)(E,{href:i,"data-testid":i?"system-name-link":"system-name-text",children:e.name||"Uncategorized assets"}),(0,t.jsx)(g.l,{consentStatus:e.consent_status})]})};var b=n(34929),T=n(2525),L=n(78238),j=a=>{var e,n;let{system:i}=a,{getDataUseDisplayName:s}=(0,b.Z)(),o=(null!==(n=null===(e=i.data_uses)||void 0===e?void 0:e.filter(a=>(0,L.Z)(a)))&&void 0!==n?n:[]).map(a=>({label:s(a),key:a}));return(0,t.jsx)(T.Q,{values:o})};let k=a=>{let{monitorId:e,readonly:n,allowIgnore:i,onTabChange:s,consentStatus:o,rowClickUrl:r}=a,[F,d]=(0,l.useState)(!1),[u,c]=(0,l.useState)(!1);return{columns:(0,l.useMemo)(()=>{let a=[{title:()=>(0,t.jsxs)(_.vyj,{children:[(0,t.jsx)("div",{children:"System"}),(0,t.jsx)(g.l,{consentStatus:o})]}),dataIndex:"name",key:"system_name",fixed:"left",render:(a,e)=>(0,t.jsx)(x,{system:e,rowClickUrl:r})},{title:"Assets",dataIndex:"total_updates",key:"total_updates"},{title:"Categories of consent",key:"data_use",render:(a,e)=>(0,t.jsx)(j,{system:e})},{title:()=>(0,t.jsx)(f.OL,{title:"Locations",menu:{items:f.DI,onClick:a=>{a.domEvent.stopPropagation(),"expand-all"===a.key?d(!0):"collapse-all"===a.key&&d(!1)}}}),dataIndex:"locations",key:"locations",width:250,render:a=>{var e;return(0,t.jsx)(f.Q3,{values:null!==(e=null==a?void 0:a.map(a=>{var e;return{label:null!==(e=y.Z8[a])&&void 0!==e?e:a,key:a}}))&&void 0!==e?e:[],columnState:{isExpanded:F,isWrapped:!0}})}},{title:()=>(0,t.jsx)(f.OL,{title:"Domains",menu:{items:f.DI,onClick:a=>{a.domEvent.stopPropagation(),"expand-all"===a.key?c(!0):"collapse-all"===a.key&&c(!1)}}}),dataIndex:"domains",key:"domains",render:a=>(0,t.jsx)(f.vx,{values:a,valueSuffix:"domains",columnState:{isExpanded:u}})}];return n||a.push({title:"Actions",key:"actions",render:(a,n)=>(0,t.jsx)(A,{system:n,monitorId:e,allowIgnore:i,onTabChange:s})}),a},[n,o,r,F,u,e,i,s])}},w=a=>{let{monitorId:e}=a,n=(0,i.useRouter)(),[s,r]=(0,l.useState)(),[y,f]=(0,l.useState)(1),[g,A]=(0,l.useState)(25),[I,{isLoading:M}]=(0,c.rs)(),[p,{isLoading:N}]=(0,c.nP)(),E=(0,_.pmc)(),[U,x]=(0,l.useState)(""),[b,T]=(0,l.useState)([]),[L,j]=(0,l.useState)(new Map),w=()=>{T([]),j(new Map)},R=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},{filterTabs:G,activeTab:B,onTabChange:D,activeParams:P,actionsDisabled:O}=(0,S.Z)();(0,l.useEffect)(()=>{f(1)},[e,U]),(0,l.useEffect)(()=>{w()},[e,U,B]);let{data:K,isLoading:V,isFetching:H}=(0,c.wi)({key:e,page:y,size:g,search:U,...P});(0,l.useEffect)(()=>{if((null==K?void 0:K.items)&&!s){var a;let e=null===(a=K.items.find(a=>{var e;return(null===(e=a.consent_status)||void 0===e?void 0:e.status)===h.pF.ALERT}))||void 0===a?void 0:a.consent_status;r(null!=e?e:void 0)}},[K,s]),(0,l.useEffect)(()=>{(null==K?void 0:K.items)&&T(K.items.filter(a=>{let e=R(a);return L.has(String(e))}).map(a=>R(a)))},[K,L]);let Z=Array.from(L.values()),z=a=>{r(void 0),D(a),w()},W=(0,l.useCallback)(a=>{var n;return"".concat(o.vi,"/").concat(e,"/").concat(null!==(n=a.id)&&void 0!==n?n:o.Kl).concat(B?"#".concat(B):"")},[e,B]),{columns:J}=k({monitorId:e,onTabChange:z,readonly:O,allowIgnore:!P.diff_status.includes(h.LL.MUTED),consentStatus:s,rowClickUrl:W}),Y=async()=>{let a=Z.reduce((a,e)=>a+e.total_updates,0),t=await I({monitor_config_key:e,resolved_system_ids:Z.map(a=>a.id)});(0,C.D4)(t)?E((0,u.Vo)((0,F.e$)(t.error))):(E((0,u.t5)((0,m._)("".concat(a," assets have been added to the system inventory."),()=>n.push(o.So)))),w())},q=async()=>{let a=Z.reduce((a,e)=>a+e.total_updates,0),n=await p({monitor_config_key:e,resolved_system_ids:Z.map(a=>{var e;return null!==(e=a.id)&&void 0!==e?e:o.Kl})});(0,C.D4)(n)?E((0,u.Vo)((0,F.e$)(n.error))):(E((0,u.t5)((0,m._)("".concat(a," assets have been ignored and will not appear in future scans."),()=>D(S.A.IGNORED)))),w())},Q=Z.some(a=>null===a.id);return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(_.A5g,{items:G.map(a=>({key:a.hash,label:a.label})),activeKey:B,onChange:a=>z(a)}),(0,t.jsxs)(_.jqI,{justify:"space-between",align:"center",className:"mb-4",children:[(0,t.jsx)(v.f,{value:U,onChange:x}),(0,t.jsxs)(_.vyj,{size:"large",children:[!!b.length&&(0,t.jsx)(d.a,{count:Z.length}),(0,t.jsx)(_.S0p,{menu:{items:[{key:"add",label:(0,t.jsx)(_.esZ,{title:Q?"Uncategorized assets can't be added to the inventory":null,placement:"left",children:"Add"}),onClick:Y,disabled:Q},P.diff_status.includes(h.LL.MUTED)?null:{key:"ignore",label:"Ignore",onClick:q}]},trigger:["click"],children:(0,t.jsx)(_.wpx,{type:"primary",icon:(0,t.jsx)(_.PJP._ME,{}),iconPosition:"end",loading:M||N,disabled:!b.length,"data-testid":"bulk-actions-menu",children:"Actions"})})]})]}),(0,t.jsx)(_.V5H,{dataSource:(null==K?void 0:K.items)||[],columns:J,loading:V||H,rowKey: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},rowSelection:{selectedRowKeys:b,onChange:(a,e)=>{T(a);let n=new Map(L);(null==K?void 0:K.items)&&K.items.forEach(e=>{let t=R(e);a.includes(t)||n.delete(String(t))}),e.forEach(a=>{let e=R(a);n.set(String(e),a)}),j(n)}},pagination:{current:y,pageSize:g,total:(null==K?void 0:K.total)||0},onChange:a=>{f(a.current),A(a.pageSize)},locale:{emptyText:(0,t.jsx)(_.oj8,{image:_.oj8.PRESENTED_IMAGE_SIMPLE,description:"All caught up!"})}})]})};var R=()=>{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)(w,{monitorId:a})]})}},99830:function(a){a.exports={toastLink:"ToastLink_toastLink__OLSeq"}}},function(a){a.O(0,[8765,9278,5163,7725,8735,2888,9774,179],function(){return a(a.s=86850)}),_N_E=a.O()}]);
|
|
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,d,u,c,S=0,m=!1,h=!1,C=!0;if("function"!=typeof a)throw TypeError("Expected a function");function v(e){var n=_,t=l;return _=l=void 0,S=e,d=a.apply(t,n)}function y(a){var n=a-c,t=a-S;return void 0===c||n>=e||n<0||h&&t>=F}function f(){var a,n,t,s=i();if(y(s))return g(s);u=setTimeout(f,(a=s-c,n=s-S,t=e-a,h?r(t,F-n):t))}function g(a){return(u=void 0,C&&_)?v(a):(_=l=void 0,d)}function A(){var a,n=i(),t=y(n);if(_=arguments,l=this,c=n,t){if(void 0===u)return S=a=c,u=setTimeout(f,e),m?v(a):d;if(h)return clearTimeout(u),u=setTimeout(f,e),v(c)}return void 0===u&&(u=setTimeout(f,e)),d}return e=s(e)||0,t(n)&&(m=!!n.leading,F=(h="maxWait"in n)?o(s(n.maxWait)||0,e):F,C="trailing"in n?!!n.trailing:C),A.cancel=function(){void 0!==u&&clearTimeout(u),S=0,_=c=l=u=void 0},A.flush=function(){return void 0===u?d:g(i())},A}},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(99948)}])},30952:function(a,e,n){"use strict";n.d(e,{f:function(){return _}});var t=n(24246),i=n(66726),s=n.n(i),o=n(27378),r=n(26917);let _=a=>{let{value:e,onChange:n,placeholder:i,..._}=a,[l,F]=(0,o.useState)(e),d=s()(n,500),u=(0,o.useCallback)(a=>{F(a),d(a)},[]);return(0,t.jsx)(r.Z,{value:l,onChange:u,onClear:()=>{F(""),n("")},placeholder:i,..._})}},26089:function(a,e,n){"use strict";var t=n(24246),i=n(27824),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(54682);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]}))},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)&&l(n)},[n,e,o.isReady]),{activeTab:_,onTabChange:(0,i.useCallback)(async a=>{if(!e.includes(a)){await o.replace({pathname:o.pathname,query:o.query,hash:void 0}),l(e[0]);return}o.isReady&&(await o.replace({pathname:o.pathname,query:o.query,hash:s(a)},void 0,{shallow:!0}),l(a))},[o,e])}}},76904:function(a,e,n){"use strict";n.d(e,{dK:function(){return d},Rv:function(){return m},$P:function(){return c},zj:function(){return h},Kr:function(){return C},q1:function(){return u},QL:function(){return v}});var t=n(24246),i=n(27824),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"})})},_=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"})})},l=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 d=()=>(0,t.jsx)(_,{style:{color:o().FIDESUI_SUCCESS},className:"size-2","data-testid":"add-icon"}),u=()=>(0,t.jsx)(r,{style:{color:o().FIDESUI_ERROR},className:"size-2","data-testid":"remove-icon"}),c=()=>(0,t.jsx)(l,{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"}),h=()=>(0,t.jsx)(S,{color:o().FIDESUI_SUCCESS,"data-testid":"monitored-icon"}),C=()=>(0,t.jsx)(S,{color:o().FIDESUI_ERROR,"data-testid":"muted-icon"}),v={[F.E.ADDITION]:(0,t.jsx)(d,{}),[F.E.REMOVAL]:(0,t.jsx)(u,{}),[F.E.CLASSIFICATION]:(0,t.jsx)(c,{}),[F.E.CHANGE]:(0,t.jsx)(m,{}),[F.E.MONITORED]:(0,t.jsx)(h,{}),[F.E.MUTED]:(0,t.jsx)(C,{}),[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="--"},99948:function(a,e,n){"use strict";n.r(e),n.d(e,{default:function(){return R}});var t=n(24246),i=n(86677),s=n(35287),o=n(77830),r=n(58754),_=n(27824),l=n(27378),F=n(812),d=n(25415),u=n(46628),c=n(37059),S=n(88708),m=n(9320),h=n(54682),C=n(31883),v=n(30952),y=n(8411),f=n(91982),g=n(54762);let A=a=>{let{monitorId:e,system:n,allowIgnore:s,onTabChange:r}=a,[l,{isLoading:d}]=(0,c.rs)(),[h,{isLoading:C}]=(0,c.nP)(),v=(0,i.useRouter)(),y=(0,_.pmc)(),f=d||C,{id:g,name:A,system_key:I,total_updates:M}=n,p=async()=>{let a=await l({monitor_config_key:e,resolved_system_ids:[g]});if((0,F.D4)(a))y((0,u.Vo)((0,F.e$)(a.error)));else{let a="".concat(o.So,"/configure/").concat(I,"#assets");y((0,u.t5)((0,m._)(I?"".concat(M," assets from ").concat(A," have been added to the system inventory."):"".concat(A," and ").concat(M," assets have been added to the system inventory. ").concat(A," is now configured for consent."),I?()=>v.push(a):void 0)))}},N=async()=>{let a=await h({monitor_config_key:e,resolved_system_ids:[g||o.Kl]});(0,F.D4)(a)?y((0,u.Vo)((0,F.e$)(a.error))):y((0,u.t5)((0,m._)(A?"".concat(M," assets from ").concat(A," have been ignored and will not appear in future scans."):"".concat(M," uncategorized assets have been ignored and will not appear in future scans."),()=>r(S.A.IGNORED))))};return(0,t.jsxs)(_.vyj,{children:[(0,t.jsx)(_.esZ,{title:n.id?void 0:"These assets must be categorized before you can add them to the inventory.",children:(0,t.jsx)(_.wpx,{"data-testid":"add-btn",size:"small",onClick:p,disabled:!n.id||f,loading:d,children:"Add"})}),s&&(0,t.jsx)(_.wpx,{"data-testid":"ignore-btn",size:"small",onClick:N,disabled:f,loading:C,children:"Ignore"})]})};var I=n(79894),M=n.n(I);let{Link:p,Text:N}=_.AntTypography,E=a=>{let{href:e,children:n,...i}=a;return e?(0,t.jsx)(M(),{href:e,passHref:!0,legacyBehavior:!0,children:(0,t.jsx)(p,{strong:!0,ellipsis:!0,onClick:a=>a.stopPropagation(),...i,children:n})}):(0,t.jsx)(N,{strong:!0,ellipsis:!0,...i,children:n})};var U=n(76904);let x=a=>{let{system:e,rowClickUrl:n}=a,i=null==n?void 0:n(e);return(0,t.jsxs)(_.vyj,{className:"max-w-[250px] flex-nowrap",children:[!e.system_key&&(0,t.jsx)(_.esZ,{title:"New system",children:(0,t.jsx)("span",{children:U.QL.Change})}),(0,t.jsx)(E,{href:i,"data-testid":i?"system-name-link":"system-name-text",children:e.name||"Uncategorized assets"}),(0,t.jsx)(g.l,{consentStatus:e.consent_status})]})};var b=n(34929),T=n(2525),L=n(78238),j=a=>{var e,n;let{system:i}=a,{getDataUseDisplayName:s}=(0,b.Z)(),o=(null!==(n=null===(e=i.data_uses)||void 0===e?void 0:e.filter(a=>(0,L.Z)(a)))&&void 0!==n?n:[]).map(a=>({label:s(a),key:a}));return(0,t.jsx)(T.Q,{values:o})};let k=a=>{let{monitorId:e,readonly:n,allowIgnore:i,onTabChange:s,consentStatus:o,rowClickUrl:r}=a,[F,d]=(0,l.useState)(!1),[u,c]=(0,l.useState)(!1);return{columns:(0,l.useMemo)(()=>{let a=[{title:()=>(0,t.jsxs)(_.vyj,{children:[(0,t.jsx)("div",{children:"System"}),(0,t.jsx)(g.l,{consentStatus:o})]}),dataIndex:"name",key:"system_name",fixed:"left",render:(a,e)=>(0,t.jsx)(x,{system:e,rowClickUrl:r})},{title:"Assets",dataIndex:"total_updates",key:"total_updates"},{title:"Categories of consent",key:"data_use",render:(a,e)=>(0,t.jsx)(j,{system:e})},{title:()=>(0,t.jsx)(f.OL,{title:"Locations",menu:{items:f.DI,onClick:a=>{a.domEvent.stopPropagation(),"expand-all"===a.key?d(!0):"collapse-all"===a.key&&d(!1)}}}),dataIndex:"locations",key:"locations",width:250,render:a=>{var e;return(0,t.jsx)(f.Q3,{values:null!==(e=null==a?void 0:a.map(a=>{var e;return{label:null!==(e=y.Z8[a])&&void 0!==e?e:a,key:a}}))&&void 0!==e?e:[],columnState:{isExpanded:F,isWrapped:!0}})}},{title:()=>(0,t.jsx)(f.OL,{title:"Domains",menu:{items:f.DI,onClick:a=>{a.domEvent.stopPropagation(),"expand-all"===a.key?c(!0):"collapse-all"===a.key&&c(!1)}}}),dataIndex:"domains",key:"domains",render:a=>(0,t.jsx)(f.vx,{values:a,valueSuffix:"domains",columnState:{isExpanded:u}})}];return n||a.push({title:"Actions",key:"actions",render:(a,n)=>(0,t.jsx)(A,{system:n,monitorId:e,allowIgnore:i,onTabChange:s})}),a},[n,o,r,F,u,e,i,s])}},w=a=>{let{monitorId:e}=a,n=(0,i.useRouter)(),[s,r]=(0,l.useState)(),[y,f]=(0,l.useState)(1),[g,A]=(0,l.useState)(25),[I,{isLoading:M}]=(0,c.rs)(),[p,{isLoading:N}]=(0,c.nP)(),E=(0,_.pmc)(),[U,x]=(0,l.useState)(""),[b,T]=(0,l.useState)([]),[L,j]=(0,l.useState)(new Map),w=()=>{T([]),j(new Map)},R=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},{filterTabs:G,activeTab:B,onTabChange:D,activeParams:P,actionsDisabled:O}=(0,S.Z)();(0,l.useEffect)(()=>{f(1)},[e,U]),(0,l.useEffect)(()=>{w()},[e,U,B]);let{data:K,isLoading:V,isFetching:H}=(0,c.wi)({key:e,page:y,size:g,search:U,...P});(0,l.useEffect)(()=>{if((null==K?void 0:K.items)&&!s){var a;let e=null===(a=K.items.find(a=>{var e;return(null===(e=a.consent_status)||void 0===e?void 0:e.status)===h.pF.ALERT}))||void 0===a?void 0:a.consent_status;r(null!=e?e:void 0)}},[K,s]),(0,l.useEffect)(()=>{(null==K?void 0:K.items)&&T(K.items.filter(a=>{let e=R(a);return L.has(String(e))}).map(a=>R(a)))},[K,L]);let Z=Array.from(L.values()),z=a=>{r(void 0),D(a),w()},W=(0,l.useCallback)(a=>{var n;return"".concat(o.vi,"/").concat(e,"/").concat(null!==(n=a.id)&&void 0!==n?n:o.Kl).concat(B?"#".concat(B):"")},[e,B]),{columns:J}=k({monitorId:e,onTabChange:z,readonly:O,allowIgnore:!P.diff_status.includes(h.LL.MUTED),consentStatus:s,rowClickUrl:W}),Y=async()=>{let a=Z.reduce((a,e)=>a+e.total_updates,0),t=await I({monitor_config_key:e,resolved_system_ids:Z.map(a=>a.id)});(0,C.D4)(t)?E((0,u.Vo)((0,F.e$)(t.error))):(E((0,u.t5)((0,m._)("".concat(a," assets have been added to the system inventory."),()=>n.push(o.So)))),w())},q=async()=>{let a=Z.reduce((a,e)=>a+e.total_updates,0),n=await p({monitor_config_key:e,resolved_system_ids:Z.map(a=>{var e;return null!==(e=a.id)&&void 0!==e?e:o.Kl})});(0,C.D4)(n)?E((0,u.Vo)((0,F.e$)(n.error))):(E((0,u.t5)((0,m._)("".concat(a," assets have been ignored and will not appear in future scans."),()=>D(S.A.IGNORED)))),w())},Q=Z.some(a=>null===a.id);return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(_.A5g,{items:G.map(a=>({key:a.hash,label:a.label})),activeKey:B,onChange:a=>z(a)}),(0,t.jsxs)(_.jqI,{justify:"space-between",align:"center",className:"mb-4",children:[(0,t.jsx)(v.f,{value:U,onChange:x}),(0,t.jsxs)(_.vyj,{size:"large",children:[!!b.length&&(0,t.jsx)(d.a,{count:Z.length}),(0,t.jsx)(_.S0p,{menu:{items:[{key:"add",label:(0,t.jsx)(_.esZ,{title:Q?"Uncategorized assets can't be added to the inventory":null,placement:"left",children:"Add"}),onClick:Y,disabled:Q},P.diff_status.includes(h.LL.MUTED)?null:{key:"ignore",label:"Ignore",onClick:q}]},trigger:["click"],children:(0,t.jsx)(_.wpx,{type:"primary",icon:(0,t.jsx)(_.PJP._ME,{}),iconPosition:"end",loading:M||N,disabled:!b.length,"data-testid":"bulk-actions-menu",children:"Actions"})})]})]}),(0,t.jsx)(_.V5H,{dataSource:(null==K?void 0:K.items)||[],columns:J,loading:V||H,rowKey: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},rowSelection:{selectedRowKeys:b,onChange:(a,e)=>{T(a);let n=new Map(L);(null==K?void 0:K.items)&&K.items.forEach(e=>{let t=R(e);a.includes(t)||n.delete(String(t))}),e.forEach(a=>{let e=R(a);n.set(String(e),a)}),j(n)}},pagination:{current:y,pageSize:g,total:(null==K?void 0:K.total)||0},onChange:a=>{f(a.current),A(a.pageSize)},locale:{emptyText:(0,t.jsx)(_.oj8,{image:_.oj8.PRESENTED_IMAGE_SIMPLE,description:"All caught up!"})}})]})};var R=()=>{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)(w,{monitorId:a})]})}},99830:function(a){a.exports={toastLink:"ToastLink_toastLink__OLSeq"}}},function(a){a.O(0,[8765,9278,5163,7725,8735,2888,9774,179],function(){return a(a.s=86850)}),_N_E=a.O()}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8443],{66726:function(e,t,n){var i=n(11611),r=n(82846),a=n(91936),o=Math.max,s=Math.min;e.exports=function(e,t,n){var c,l,u,d,f,m,x=0,h=!1,p=!1,v=!0;if("function"!=typeof e)throw TypeError("Expected a function");function j(t){var n=c,i=l;return c=l=void 0,x=t,d=e.apply(i,n)}function g(e){var n=e-m,i=e-x;return void 0===m||n>=t||n<0||p&&i>=u}function y(){var e,n,i,a=r();if(g(a))return b(a);f=setTimeout(y,(e=a-m,n=a-x,i=t-e,p?s(i,u-n):i))}function b(e){return(f=void 0,v&&c)?j(e):(c=l=void 0,d)}function w(){var e,n=r(),i=g(n);if(c=arguments,l=this,m=n,i){if(void 0===f)return x=e=m,f=setTimeout(y,t),h?j(e):d;if(p)return clearTimeout(f),f=setTimeout(y,t),j(m)}return void 0===f&&(f=setTimeout(y,t)),d}return t=a(t)||0,i(n)&&(h=!!n.leading,u=(p="maxWait"in n)?o(a(n.maxWait)||0,t):u,v="trailing"in n?!!n.trailing:v),w.cancel=function(){void 0!==f&&clearTimeout(f),x=0,c=m=l=f=void 0},w.flush=function(){return void 0===f?d:b(r())},w}},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),r=n(92360);e.exports=function(e){return"symbol"==typeof e||r(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),r=n(66726),a=n.n(r),o=n(27378),s=n(26917);let c=e=>{let{value:t,onChange:n,placeholder:r,...c}=e,[l,u]=(0,o.useState)(t),d=a()(n,500),f=(0,o.useCallback)(e=>{u(e),d(e)},[]);return(0,i.jsx)(s.Z,{value:l,onChange:f,onClear:()=>{u(""),n("")},placeholder:r,...c})}},77213:function(e,t,n){"use strict";n.d(t,{Z:function(){return f}});var i=n(24246),r=n(
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8443],{66726:function(e,t,n){var i=n(11611),r=n(82846),a=n(91936),o=Math.max,s=Math.min;e.exports=function(e,t,n){var c,l,u,d,f,m,x=0,h=!1,p=!1,v=!0;if("function"!=typeof e)throw TypeError("Expected a function");function j(t){var n=c,i=l;return c=l=void 0,x=t,d=e.apply(i,n)}function g(e){var n=e-m,i=e-x;return void 0===m||n>=t||n<0||p&&i>=u}function y(){var e,n,i,a=r();if(g(a))return b(a);f=setTimeout(y,(e=a-m,n=a-x,i=t-e,p?s(i,u-n):i))}function b(e){return(f=void 0,v&&c)?j(e):(c=l=void 0,d)}function w(){var e,n=r(),i=g(n);if(c=arguments,l=this,m=n,i){if(void 0===f)return x=e=m,f=setTimeout(y,t),h?j(e):d;if(p)return clearTimeout(f),f=setTimeout(y,t),j(m)}return void 0===f&&(f=setTimeout(y,t)),d}return t=a(t)||0,i(n)&&(h=!!n.leading,u=(p="maxWait"in n)?o(a(n.maxWait)||0,t):u,v="trailing"in n?!!n.trailing:v),w.cancel=function(){void 0!==f&&clearTimeout(f),x=0,c=m=l=f=void 0},w.flush=function(){return void 0===f?d:b(r())},w}},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),r=n(92360);e.exports=function(e){return"symbol"==typeof e||r(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),r=n(66726),a=n.n(r),o=n(27378),s=n(26917);let c=e=>{let{value:t,onChange:n,placeholder:r,...c}=e,[l,u]=(0,o.useState)(t),d=a()(n,500),f=(0,o.useCallback)(e=>{u(e),d(e)},[]);return(0,i.jsx)(s.Z,{value:l,onChange:f,onClear:()=>{u(""),n("")},placeholder:r,...c})}},77213:function(e,t,n){"use strict";n.d(t,{Z:function(){return f}});var i=n(24246),r=n(27824),a=n(88038),o=n.n(a),s=n(86677);n(27378);var c=n(25980),l=n(90867),u=n(77830),d=()=>{let e=(0,s.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(u.fz)},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."," "]})]})})},f=e=>{let{children:t,title:n,padded:a=!0,mainProps:u}=e,f=(0,c.hz)(),m=(0,s.useRouter)(),x="/privacy-requests"===m.pathname||"/datastore-connection"===m.pathname,h=!(f.flags.privacyRequestsConfiguration&&x),{data:p}=(0,l.JE)(void 0,{skip:h}),{data:v}=(0,l.PW)(void 0,{skip:h}),j=f.flags.privacyRequestsConfiguration&&(!p||!v)&&x;return(0,i.jsxs)(r.kCb,{"data-testid":n,direction:"column",h:"100vh",children:[(0,i.jsxs)(o(),{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)(r.kCb,{as:"main",direction:"column",py:a?6:0,px:a?10:0,h:a?"calc(100% - 48px)":"full",flex:1,minWidth:0,overflow:"auto",...u,children:[j?(0,i.jsx)(d,{}):null,t]})]})}},2656:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return E}});var i=n(24246),r=n(27824),a=n(79894),o=n.n(a),s=n(27378),c=n(30952),l=n(77213),u=n(77830),d=n(58754),f=n(47935),m=n(7426),x=n(37059);let h=e=>{let{isConfigLoading:t}=e;return(0,i.jsx)(l.Z,{title:"Action center",mainProps:{className:"h-full"},children:(0,i.jsx)(r.jqI,{justify:"center",align:"center",className:"h-full",children:t?(0,i.jsx)(r.$jN,{color:"primary.900"}):(0,i.jsx)(r.DUx,{message:"Coming soon...",description:"Action center is currently disabled.",type:"info",showIcon:!0})})})},p=()=>(0,i.jsx)(r.oj8,{image:r.oj8.PRESENTED_IMAGE_SIMPLE,description:"All caught up! Set up an integration monitor to track your infrastructure in greater detail.",children:(0,i.jsx)(o(),{href:u.KH,passHref:!0,legacyBehavior:!0,children:(0,i.jsx)(r.wpx,{type:"primary",children:"Visit integrations"})})});var v=n(10969),j=n(60145),g=n(11558),y=n(70641),b=n(7317),w=n(85302),_=n(64892),k=n(16394),C=n(54762);let{Text:N}=r.AntTypography,D=e=>{let{monitorSummary:t,showSkeleton:n,...a}=e,{name:c,consent_status:l,total_updates:d,updates:f,last_monitored:m,secrets:x,key:h}=t,p=(0,s.useMemo)(()=>(null==x?void 0:x.url)?(0,k.ge)(x.url):void 0,[null==x?void 0:x.url]),D=(0,s.useMemo)(()=>p?(0,k.tl)(p,60):void 0,[p]),E=Object.entries(f).map(e=>"".concat(e[1]," ").concat(e[0],"s")).join(", "),P=m?(0,k.p6)(new Date(m)):void 0,S=m?function(e,t,n){let i;let r=(0,j.j)(),a=n?.locale??r.locale??v._,o=(0,w.U)(e,t);if(isNaN(o))throw RangeError("Invalid time value");let s=Object.assign({},n,{addSuffix:n?.addSuffix,comparison:o}),[c,l]=(0,b.d)(n?.in,...o>0?[t,e]:[e,t]),u=(0,g.u)(n?.roundingMethod??"round"),d=l.getTime()-c.getTime(),f=d/_.yJ,m=(d-((0,y.D)(l)-(0,y.D)(c)))/_.yJ,x=n?.unit;if("second"===(i=x||(f<1?"second":f<60?"minute":f<_.H_?"hour":m<_.fH?"day":m<_.UU?"month":"year"))){let e=u(d/1e3);return a.formatDistance("xSeconds",e,s)}if("minute"===i){let e=u(f);return a.formatDistance("xMinutes",e,s)}if("hour"===i){let e=u(f/60);return a.formatDistance("xHours",e,s)}if("day"===i){let e=u(m/_.H_);return a.formatDistance("xDays",e,s)}if("month"===i){let e=u(m/_.fH);return 12===e&&"month"!==x?a.formatDistance("xYears",1,s):a.formatDistance("xMonths",e,s)}{let e=u(m/_.UU);return a.formatDistance("xYears",e,s)}}(new Date(m),new Date,{addSuffix:!0}):void 0;return(0,i.jsx)(r.krs.Item,{"data-testid":"monitor-result-".concat(h),...a,children:(0,i.jsx)(r.N_L,{avatar:!0,title:!1,loading:n,active:!0,children:(0,i.jsxs)(r.bue,{gutter:12,className:"w-full",children:[(0,i.jsx)(r.JGx,{span:17,className:"align-middle",children:(0,i.jsx)(r.krs.Item.Meta,{avatar:(0,i.jsx)(r.t3Z,{src:D,size:30,icon:(0,i.jsx)(r.PJP.huD,{size:30}),style:{backgroundColor:"transparent",color:"var(--ant-color-text)"},alt:"".concat(p," icon")}),title:(0,i.jsxs)(r.jqI,{align:"center",gap:4,children:[(0,i.jsx)(o(),{href:"".concat(u.vi,"/").concat(h),className:"whitespace-nowrap",children:"".concat(d," assets detected").concat(p?" on ".concat(p):"")}),(0,i.jsx)(C.l,{consentStatus:l})]}),description:"".concat(E," detected.")})}),(0,i.jsx)(r.JGx,{span:4,className:"flex items-center justify-end",children:(0,i.jsx)(N,{ellipsis:{tooltip:c},children:c})}),(0,i.jsx)(r.JGx,{span:3,className:"flex items-center justify-end",children:!!S&&(0,i.jsx)(N,{"data-testid":"monitor-date",ellipsis:{tooltip:P},children:S})})]})})})};var E=()=>{var e;let t=(0,r.pmc)(),{PAGE_SIZES:n,pageSize:a,setPageSize:v,onPreviousPageClick:j,isPreviousPageDisabled:g,onNextPageClick:y,isNextPageDisabled:b,startRange:w,endRange:_,pageIndex:k,setTotalPages:C,resetPageIndexToDefault:N}=(0,f.oi)(),[E,P]=(0,s.useState)(""),{data:S,isLoading:T}=(0,m.tB)({api_set:!1}),I=!!(null==S?void 0:null===(e=S.detection_discovery)||void 0===e?void 0:e.website_monitor_enabled);(0,s.useEffect)(()=>{N()},[E,N]);let{data:M,isError:R,isLoading:A,isFetching:q}=(0,x.Ud)({page:k,size:a,search:E},{skip:T||!I});(0,s.useEffect)(()=>{R&&t&&I&&t({title:"Error fetching data",description:"Please try again later",status:"error"})},[R,t,I]),(0,s.useEffect)(()=>{if(M){var e;C(null!==(e=M.total)&&void 0!==e?e:1)}},[M,C]);let H=(null==M?void 0:M.items)||[],U=q?Array.from({length:a},(e,t)=>({key:t.toString(),updates:[],last_monitored:null})):[],z=(0,s.useCallback)(e=>[(0,i.jsx)(o(),{href:"".concat(u.vi,"/").concat(e),passHref:!0,legacyBehavior:!0,children:(0,i.jsx)(r.wpx,{type:"link",className:"p-0","data-testid":"review-button-".concat(e),children:"Review"})},"review")],[]);return I?(0,i.jsxs)(l.Z,{title:"Action center",children:[(0,i.jsx)(d.Z,{heading:"Action center",breadcrumbItems:[{title:"All activity"}]}),(0,i.jsx)(r.jqI,{className:"justify-between py-6",children:(0,i.jsx)(c.f,{value:E,onChange:P})}),(0,i.jsx)(r.krs,{loading:A,dataSource:H||U,locale:{emptyText:(0,i.jsx)(p,{})},renderItem:e=>!!(null==e?void 0:e.key)&&(0,i.jsx)(D,{showSkeleton:q,monitorSummary:e,actions:z(e.key)},e.key)}),!!H&&!!(null==M?void 0:M.total)&&M.total>a&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(r.htM,{className:"mb-6 mt-0"}),(0,i.jsx)(f.s8,{totalRows:(null==M?void 0:M.total)||0,pageSizes:n,setPageSize:v,onPreviousPageClick:j,isPreviousPageDisabled:g||q,onNextPageClick:y,isNextPageDisabled:b||q,startRange:w,endRange:_})]})]}):(0,i.jsx)(h,{isConfigLoading:T})}}},function(e){e.O(0,[7725,2888,9774,179],function(){return e(e.s=40741)}),_N_E=e.O()}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7477],{74833:function(e,t,i){var s=i(56127),n=/^\s+/;e.exports=function(e){return e?e.slice(0,s(e)+1).replace(n,""):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),n=i(92360);e.exports=function(e){return"symbol"==typeof e||n(e)&&"[object Symbol]"==s(e)}},91936:function(e,t,i){var s=i(74833),n=i(11611),a=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(a(e))return r;if(n(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=n(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),n=i(13577),a=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)(n.jqI,{justify:"space-between",children:["string"==typeof t?(0,s.jsx)(n.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)(a.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),n=i(13577),a=i(79894),r=i.n(a),o=i(27378);let{Text:l}=n.AntTypography,c=e=>{let{items:t,...i}=e,a=(0,o.useMemo)(()=>null==t?void 0:t.map((e,i)=>{let a=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:a?void 0:400},ellipsis:!a,children:o.title})),c)?o.title=(0,s.jsx)(n.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)(n.zrq,{items:a,...i})}},54409:function(e,t,i){"use strict";i.d(t,{Z:function(){return f}});var s=i(24246),n=i(13577),a=i(812),r=i(14047),o=i(54682),l=i(31883);let c=(0,n.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,n.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.V)(),C=async()=>{let e=await x({staged_resource_urn:t.urn,monitor_config_id:t.monitor_config_id});(0,l.D4)(e)?v((0,a.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,a.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,a.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,a.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:S,child_diff_statuses:b}=t,N=f===o.D$.SCHEMA,w=f===o.D$.FIELD,H=b&&(b[o.LL.CLASSIFICATION_ADDITION]||b[o.LL.CLASSIFICATION_UPDATE]),O=N&&void 0===S||!w&&S===o.LL.ADDITION||H,F=S!==o.LL.MUTED,R=S===o.LL.MUTED&&!w,Z=S===o.LL.MUTED&&w,E=b&&(b[o.LL.ADDITION]||b[o.LL.REMOVAL]),M=S===o.LL.MONITORED&&!i&&E&&!H;return(0,s.jsxs)(n.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),n=i(13577),a=i(812),r=i(14047),o=i(7940),l=i(98559),c=i(54682),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.V)(),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,S=T&&D&&y,b=async()=>{let e=await g({staged_resource_urn:t.urn});(0,a.D4)(e)?v((0,a.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,a.D4)(e)?v((0,a.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,a.D4)(e)?v((0,a.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)(n.Ugi,{gap:2,children:[T&&(0,s.jsx)(d.Z,{title:"Confirm",icon:(0,s.jsx)(n.nQG,{}),onClick:b,disabled:m,loading:f}),D&&(0,s.jsx)(d.Z,{title:"Ignore",icon:(0,s.jsx)(n.tpL,{}),onClick:N,disabled:m,loading:h}),y&&!S&&(0,s.jsx)(d.Z,{title:"Reclassify",icon:(0,s.jsx)(n.nyI,{}),onClick:w,disabled:m,loading:L}),S&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(n.LZC,{}),(0,s.jsxs)(n.v2r,{children:[(0,s.jsx)(n.j2t,{as:n.wpx,size:"small",type:"text",icon:(0,s.jsx)(n.nXP,{transform:"rotate(90deg)"}),className:"w-6 gap-0","data-testid":"actions-overflow-btn"}),(0,s.jsx)(n.qyq,{children:(0,s.jsx)(n.sNh,{onClick:w,icon:(0,s.jsx)(n.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,n,a=i(24246),r=i(27378),o=i(35287),l=i(58754),c=i(47182),d=i(92222),u=i(59003),L=i(13577),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=n||(n={})).DATASET="Dataset",s.CLASSIFICATION="Classification";var _=i(74241),v=i(28278),C=i(20449),A=e=>(0,C.Z)(e)===v.E.CLASSIFICATION?n.CLASSIFICATION:n.DATASET,T=i(54409),D=i(91761);let y={items:[],total:0,page:1,size:50,pages:1},S=()=>(0,a.jsx)(L.gCW,{mt:6,p:10,spacing:4,borderRadius:"base",maxW:"70%","data-testid":"empty-state",alignSelf:"center",margin:"auto",children:(0,a.jsxs)(L.gCW,{children:[(0,a.jsx)(L.xvT,{fontSize:"md",fontWeight:"600",children:"No activity found"}),(0,a.jsx)(L.xvT,{fontSize:"sm",children:"You're up to date!"})]})}),b=(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)(()=>[b.accessor(e=>e.name,{id:"name",cell:e=>(0,a.jsx)(m.Z,{result:e.row.original}),header:e=>(0,a.jsx)(g.Rr,{value:"Name",...e})}),b.accessor(e=>e.urn,{id:"project",cell:e=>(0,a.jsx)(g.G3,{value:(0,_.Z)(e.getValue())}),header:e=>(0,a.jsx)(g.Rr,{value:"Project",...e})}),b.display({id:"status",cell:e=>(0,a.jsx)(p.Z,{result:e.row.original}),header:e=>(0,a.jsx)(g.Rr,{value:"Status",...e})}),b.accessor(e=>e.system,{id:"system",cell:e=>(0,a.jsx)(g.G3,{value:e.getValue()}),header:e=>(0,a.jsx)(g.Rr,{value:"System",...e})}),b.accessor(e=>e.monitor_config_id,{id:"monitor",cell:e=>(0,a.jsx)(g.G3,{value:e.getValue()}),header:e=>(0,a.jsx)(g.Rr,{value:"Detected by",...e})}),b.accessor(e=>e.updated_at,{id:"time",cell:e=>(0,a.jsx)(f.Cy,{time:e.getValue()}),header:e=>(0,a.jsx)(g.Rr,{value:"When",...e})}),b.accessor(e=>e,{id:"action",cell:e=>A(e.getValue())===n.DATASET?(0,a.jsx)(T.Z,{resource:e.getValue()}):(0,a.jsx)(D.Z,{resource:e.getValue()}),header:e=>(0,a.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,a.jsx)(g.I4,{rowHeight:36,numRows:36}):(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(g.Q$,{children:(0,a.jsxs)(L.kCb,{gap:6,align:"center",children:[(0,a.jsx)(L.xuv,{flexShrink:0,children:(0,a.jsx)(j.f,{value:o,onChange:l})}),(0,a.jsx)(h.Z,{})]})}),(0,a.jsx)(g.ZK,{tableInstance:G,onRowClick:t,emptyTableNotice:(0,a.jsx)(S,{})}),(0,a.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(54682),H=()=>{let{navigateToDetectionResults:e,navigateToDiscoveryResults:t}=(0,c.Z)();return(0,a.jsxs)(o.Z,{title:"Data discovery",children:[(0,a.jsx)(l.Z,{heading:"All activity"}),(0,a.jsx)(N,{onRowClick:i=>{if(A(i)===n.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,2888,9774,179],function(){return e(e.s=45550)}),_N_E=e.O()}]);
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7477],{74833:function(e,t,i){var s=i(56127),n=/^\s+/;e.exports=function(e){return e?e.slice(0,s(e)+1).replace(n,""):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),n=i(92360);e.exports=function(e){return"symbol"==typeof e||n(e)&&"[object Symbol]"==s(e)}},91936:function(e,t,i){var s=i(74833),n=i(11611),a=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(a(e))return r;if(n(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=n(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),n=i(27824),a=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)(n.jqI,{justify:"space-between",children:["string"==typeof t?(0,s.jsx)(n.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)(a.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),n=i(27824),a=i(79894),r=i.n(a),o=i(27378);let{Text:l}=n.AntTypography,c=e=>{let{items:t,...i}=e,a=(0,o.useMemo)(()=>null==t?void 0:t.map((e,i)=>{let a=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:a?void 0:400},ellipsis:!a,children:o.title})),c)?o.title=(0,s.jsx)(n.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)(n.zrq,{items:a,...i})}},54409:function(e,t,i){"use strict";i.d(t,{Z:function(){return f}});var s=i(24246),n=i(27824),a=i(812),r=i(14047),o=i(54682),l=i(31883);let c=(0,n.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,n.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.V)(),C=async()=>{let e=await x({staged_resource_urn:t.urn,monitor_config_id:t.monitor_config_id});(0,l.D4)(e)?v((0,a.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,a.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,a.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,a.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:S,child_diff_statuses:b}=t,N=f===o.D$.SCHEMA,w=f===o.D$.FIELD,H=b&&(b[o.LL.CLASSIFICATION_ADDITION]||b[o.LL.CLASSIFICATION_UPDATE]),O=N&&void 0===S||!w&&S===o.LL.ADDITION||H,F=S!==o.LL.MUTED,R=S===o.LL.MUTED&&!w,Z=S===o.LL.MUTED&&w,E=b&&(b[o.LL.ADDITION]||b[o.LL.REMOVAL]),M=S===o.LL.MONITORED&&!i&&E&&!H;return(0,s.jsxs)(n.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),n=i(27824),a=i(812),r=i(14047),o=i(7940),l=i(98559),c=i(54682),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.V)(),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,S=T&&D&&y,b=async()=>{let e=await g({staged_resource_urn:t.urn});(0,a.D4)(e)?v((0,a.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,a.D4)(e)?v((0,a.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,a.D4)(e)?v((0,a.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)(n.Ugi,{gap:2,children:[T&&(0,s.jsx)(d.Z,{title:"Confirm",icon:(0,s.jsx)(n.nQG,{}),onClick:b,disabled:m,loading:f}),D&&(0,s.jsx)(d.Z,{title:"Ignore",icon:(0,s.jsx)(n.tpL,{}),onClick:N,disabled:m,loading:h}),y&&!S&&(0,s.jsx)(d.Z,{title:"Reclassify",icon:(0,s.jsx)(n.nyI,{}),onClick:w,disabled:m,loading:L}),S&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(n.LZC,{}),(0,s.jsxs)(n.v2r,{children:[(0,s.jsx)(n.j2t,{as:n.wpx,size:"small",type:"text",icon:(0,s.jsx)(n.nXP,{transform:"rotate(90deg)"}),className:"w-6 gap-0","data-testid":"actions-overflow-btn"}),(0,s.jsx)(n.qyq,{children:(0,s.jsx)(n.sNh,{onClick:w,icon:(0,s.jsx)(n.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,n,a=i(24246),r=i(27378),o=i(35287),l=i(58754),c=i(47182),d=i(92222),u=i(59003),L=i(27824),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=n||(n={})).DATASET="Dataset",s.CLASSIFICATION="Classification";var _=i(74241),v=i(28278),C=i(20449),A=e=>(0,C.Z)(e)===v.E.CLASSIFICATION?n.CLASSIFICATION:n.DATASET,T=i(54409),D=i(91761);let y={items:[],total:0,page:1,size:50,pages:1},S=()=>(0,a.jsx)(L.gCW,{mt:6,p:10,spacing:4,borderRadius:"base",maxW:"70%","data-testid":"empty-state",alignSelf:"center",margin:"auto",children:(0,a.jsxs)(L.gCW,{children:[(0,a.jsx)(L.xvT,{fontSize:"md",fontWeight:"600",children:"No activity found"}),(0,a.jsx)(L.xvT,{fontSize:"sm",children:"You're up to date!"})]})}),b=(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)(()=>[b.accessor(e=>e.name,{id:"name",cell:e=>(0,a.jsx)(m.Z,{result:e.row.original}),header:e=>(0,a.jsx)(g.Rr,{value:"Name",...e})}),b.accessor(e=>e.urn,{id:"project",cell:e=>(0,a.jsx)(g.G3,{value:(0,_.Z)(e.getValue())}),header:e=>(0,a.jsx)(g.Rr,{value:"Project",...e})}),b.display({id:"status",cell:e=>(0,a.jsx)(p.Z,{result:e.row.original}),header:e=>(0,a.jsx)(g.Rr,{value:"Status",...e})}),b.accessor(e=>e.system,{id:"system",cell:e=>(0,a.jsx)(g.G3,{value:e.getValue()}),header:e=>(0,a.jsx)(g.Rr,{value:"System",...e})}),b.accessor(e=>e.monitor_config_id,{id:"monitor",cell:e=>(0,a.jsx)(g.G3,{value:e.getValue()}),header:e=>(0,a.jsx)(g.Rr,{value:"Detected by",...e})}),b.accessor(e=>e.updated_at,{id:"time",cell:e=>(0,a.jsx)(f.Cy,{time:e.getValue()}),header:e=>(0,a.jsx)(g.Rr,{value:"When",...e})}),b.accessor(e=>e,{id:"action",cell:e=>A(e.getValue())===n.DATASET?(0,a.jsx)(T.Z,{resource:e.getValue()}):(0,a.jsx)(D.Z,{resource:e.getValue()}),header:e=>(0,a.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,a.jsx)(g.I4,{rowHeight:36,numRows:36}):(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(g.Q$,{children:(0,a.jsxs)(L.kCb,{gap:6,align:"center",children:[(0,a.jsx)(L.xuv,{flexShrink:0,children:(0,a.jsx)(j.f,{value:o,onChange:l})}),(0,a.jsx)(h.Z,{})]})}),(0,a.jsx)(g.ZK,{tableInstance:G,onRowClick:t,emptyTableNotice:(0,a.jsx)(S,{})}),(0,a.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(54682),H=()=>{let{navigateToDetectionResults:e,navigateToDiscoveryResults:t}=(0,c.Z)();return(0,a.jsxs)(o.Z,{title:"Data discovery",children:[(0,a.jsx)(l.Z,{heading:"All activity"}),(0,a.jsx)(N,{onRowClick:i=>{if(A(i)===n.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,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([[9738],{53910:function(e,t,l){(window.__NEXT_P=window.__NEXT_P||[]).push(["/datamap",function(){return l(18839)}])},77213:function(e,t,l){"use strict";l.d(t,{Z:function(){return x}});var n=l(24246),i=l(13577),r=l(88038),s=l.n(r),a=l(86677);l(27378);var o=l(25980),d=l(90867),c=l(77830),u=()=>{let e=(0,a.useRouter)();return(0,n.jsx)(i.xuv,{bg:"gray.50",border:"1px solid",borderColor:"blue.400",borderRadius:"md",justifyContent:"space-between",p:5,mb:5,mt:5,children:(0,n.jsxs)(i.xuv,{children:[(0,n.jsxs)(i.Kqy,{direction:{base:"column",sm:"row"},justifyContent:"space-between",children:[(0,n.jsx)(i.xvT,{fontWeight:"semibold",children:"Configure your storage and messaging provider"}),(0,n.jsx)(i.wpx,{onClick:()=>{e.push(c.fz)},children:"Configure"})]}),(0,n.jsxs)(i.xvT,{children:["Before Fides can process your privacy requests we need two simple steps to configure your storage and email client."," "]})]})})},x=e=>{let{children:t,title:l,padded:r=!0,mainProps:c}=e,x=(0,o.hz)(),h=(0,a.useRouter)(),m="/privacy-requests"===h.pathname||"/datastore-connection"===h.pathname,g=!(x.flags.privacyRequestsConfiguration&&m),{data:p}=(0,d.JE)(void 0,{skip:g}),{data:f}=(0,d.PW)(void 0,{skip:g}),j=x.flags.privacyRequestsConfiguration&&(!p||!f)&&m;return(0,n.jsxs)(i.kCb,{"data-testid":l,direction:"column",h:"100vh",children:[(0,n.jsxs)(s(),{children:[(0,n.jsxs)("title",{children:["Fides Admin UI - ",l]}),(0,n.jsx)("meta",{name:"description",content:"Privacy Engineering Platform"}),(0,n.jsx)("link",{rel:"icon",href:"/favicon.ico"})]}),(0,n.jsxs)(i.kCb,{as:"main",direction:"column",py:r?6:0,px:r?10:0,h:r?"calc(100% - 48px)":"full",flex:1,minWidth:0,overflow:"auto",...c,children:[j?(0,n.jsx)(u,{}):null,t]})]})}},99811:function(e,t,l){"use strict";l.d(t,{m:function(){return i}});var n=l(27378);class i{updateTableInstance(e){this.tableInstance=e}constructor(e=null){this.tableInstance=e,this.updateTableInstance=this.updateTableInstance.bind(this)}}let r=n.createContext(new i);t.Z=r},18839:function(e,t,l){"use strict";l.r(t),l.d(t,{default:function(){return G}});var n=l(24246),i=l(27378),r=l(45938),s=l(77213),a=l(58754),o=l(13577),d=l(65218),c=l.n(d),u=l(16134),x=l(35258),h=l(92222),m=l(59003),g=l(30002),p=l(28079),f=l(49600),j=l(99811);let v=e=>{var t;let{column:l}=e,{tableInstance:n}=(0,i.useContext)(j.Z),r=i.useMemo(()=>Array.from(l.getFacetedUniqueValues().keys()),[l]),s=i.useMemo(()=>{let e={};return r.forEach(t=>{e[t]=!1}),e},[r]);return{filterValue:null!==(t=l.getFilterValue())&&void 0!==t?t:s,clearFilterOptions:()=>{let e={};r.forEach(t=>{e[t]=!1}),l.setFilterValue(e)},toggleFilterOption:(e,t)=>{var i;let r={...null!==(i=l.getFilterValue())&&void 0!==i?i:s,[e]:t};Object.values(r).every(e=>!e)?null==n||n.setColumnFilters(null==n?void 0:n.getState().columnFilters.filter(e=>e.id!==l.id)):l.setFilterValue(r)},options:r,header:l.columnDef.header}};var y=l(57072);let b=(0,h.Cl)(),w={multifield:(e,t,l)=>l[e.original[t]]},C=()=>{let e=(0,u.T)(),{updateTableInstance:t}=(0,i.useContext)(j.Z),l=(0,u.C)(f.eo),{data:n,isLoading:r}=(0,f.Ex)({organizationName:"default_organization"});(0,y.MO)(),(0,p.fd)(),(0,g.te)();let s=(0,i.useRef)(!1);(0,i.useEffect)(()=>{if(n){let{columns:t,rows:l}=n;e((0,f.dd)(t)),s.current||(s.current=!0,0===l.length?e((0,f.ym)(!0)):e((0,f.ym)(!1)))}},[n,e]);let a=(0,i.useMemo)(()=>n?n.rows:[],[n]),o=(0,i.useMemo)(()=>(l||[]).map(e=>{let{text:t,value:l}=e;return b.accessor(e=>e[l],{id:l,header:t,cell:e=>{let{getValue:t}=e,l=t();return Array.isArray(l)?l.join(", "):l},filterFn:w.multifield})}),[l]),d=(0,m.b7)({columns:o,data:a,filterFns:w,getCoreRowModel:(0,h.sC)(),getFilteredRowModel:(0,h.vL)(),getFacetedRowModel:(0,h.o6)(),getFacetedUniqueValues:(0,h.JG)(),manualPagination:!0,columnResizeMode:"onChange"});return(0,i.useEffect)(()=>t(d),[d,t]),{...d,isLoading:r}};var k=l(83766),F=l.n(k),S=l(25980),I=l(46238),M=l(47935),O=l(22968);let R=e=>{var t,l,i;let{option:r,columnId:s,filterValue:a,toggleFilterOption:d}=e,c=(0,u.C)(y.L5),x=s===O.Ux&&null!==(l=null===(t=c.get(r))||void 0===t?void 0:t.name)&&void 0!==l?l:r;return(0,n.jsx)(o.XZJ,{value:r,width:"193px",height:"20px",mb:"25px",isChecked:null!==(i=a[r])&&void 0!==i&&i,onChange:e=>{let{target:t}=e;d(r,t.checked)},_focusWithin:{bg:"gray.100"},colorScheme:"complimentary",children:(0,n.jsx)(o.xvT,{fontSize:"sm",lineHeight:5,height:"20px",width:"170px",textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap",children:x})},r)};var _=e=>{let{column:t}=e,{filterValue:l,toggleFilterOption:r,options:s}=v({column:t}),[a,d]=(0,i.useState)(!1),c=a?s:s.slice(0,15),u=s.length>15;return(0,n.jsx)(o.UQy,{width:"100%",allowToggle:!0,children:(0,n.jsxs)(o.Qdk,{border:"0px",children:[(0,n.jsx)(o.X6q,{height:"56px",children:(0,n.jsxs)(o.KFZ,{height:"100%",children:[(0,n.jsx)(o.xuv,{flex:"1",alignItems:"center",justifyContent:"center",textAlign:"left",children:t.columnDef.header}),(0,n.jsx)(o.XEm,{})]})}),(0,n.jsxs)(o.Hk3,{children:[(0,n.jsx)(o.MIq,{columns:3,children:c.map(e=>(0,n.jsx)(R,{columnId:t.id,option:e,filterValue:l,toggleFilterOption:r},e))}),!a&&u?(0,n.jsx)(o.wpx,{type:"text",onClick:()=>{d(!0)},children:"View more"}):null,a&&u?(0,n.jsx)(o.wpx,{type:"text",onClick:()=>{d(!1)},children:"View less"}):null]})]})},t.id)};let T=e=>{let{heading:t,children:l}=e;return(0,n.jsxs)(o.xuv,{padding:"24px 8px 8px 24px",children:[(0,n.jsx)(o.X6q,{size:"md",lineHeight:6,fontWeight:"bold",mb:2,children:t}),l]})};var z=e=>{let t,{isOpen:l,onClose:r}=e,{tableInstance:s}=(0,i.useContext)(j.Z),a=null==s?void 0:s.getHeaderGroups(),d=(e,t)=>e.filter(e=>e.id===t).map(e=>(0,n.jsx)(_,{column:e.column},t)),c=(0,i.useMemo)(()=>(null==a?void 0:a[0].headers)||[],[a]);return(0,n.jsxs)(o.u_l,{isOpen:l,onClose:r,isCentered:!0,size:"2xl",children:[(0,n.jsx)(o.ZAr,{}),(0,n.jsxs)(o.hzk,{children:[(0,n.jsx)(o.xBx,{children:"Filters"}),(0,n.jsx)(o.olH,{}),(0,n.jsx)(o.izJ,{}),(0,n.jsx)(o.fef,{maxH:"85vh",padding:"0px",overflowX:"auto",children:(t=[O.vy,O.Ux,O.OL],c.some(e=>t.indexOf(e.id)>-1))?(0,n.jsxs)(T,{heading:"Privacy attributes",children:[d(c,O.vy),d(c,O.Ux),d(c,O.OL)]}):null}),(0,n.jsx)(o.mzw,{children:(0,n.jsxs)(o.xuv,{display:"flex",justifyContent:"space-between",width:"100%",children:[(0,n.jsx)(o.wpx,{onClick:()=>{null==s||s.resetColumnFilters()},className:"mr-3 grow",children:"Reset Filters"}),(0,n.jsx)(o.wpx,{onClick:r,type:"primary",className:"grow",children:"Done"})]})})]})]})};let E=()=>{let{isOpen:e,onOpen:t,onClose:l}=(0,o.qY0)();return{isFilterModalOpen:e,onFilterModalOpen:t,onFilterModalClose:l}};var N=()=>{let{isFilterModalOpen:e,onFilterModalOpen:t,onFilterModalClose:l}=E(),{tableInstance:r}=(0,i.useContext)(j.Z),{systemsCount:s,dictionaryService:a}=(0,S.hz)(),d=null==r?void 0:r.getRowModel(),c=(0,i.useMemo)(()=>{let e=(null==d?void 0:d.rows)||[];return F()(null==e?void 0:e.map(e=>e.original["system.fides_key"]))},[d]);if(!r)return null;let u=c.length,x=r.getState().columnFilters.length;return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(o.kCb,{justifyContent:"flex-end",flexDirection:"row",alignItems:"center",flexWrap:"wrap",rowGap:4,columnGap:4,children:[(0,n.jsx)(o.kCb,{flexGrow:1,children:(0,n.jsx)(M.HO,{globalFilter:r.getState().globalFilter,setGlobalFilter:r.setGlobalFilter})}),(0,n.jsxs)(o.kCb,{children:[s>0?(0,n.jsxs)(o.kCb,{alignItems:"center",borderRadius:"md",gap:1,marginRight:4,children:[(0,n.jsxs)(o.xvT,{fontSize:"xs",children:[u," of ",s," systems displayed"]}),a?(0,n.jsx)(I.b,{label:"Note that Global Vendor List (GVL) and Additional Consent (AC) systems are not currently included in these reports"}):null]}):null,(0,n.jsxs)(o.wpx,{"aria-label":"Open Filter Settings",onClick:t,children:["Filter",x>0?(0,n.jsx)(o.j8w,{className:"ml-2",children:x}):null]})]})]}),(0,n.jsx)(z,{isOpen:e,onClose:l})]})},Z=l(38943),q=l(77830),P=()=>(0,n.jsx)(o.M5Y,{flex:1,"data-testid":"get-started-modal",backgroundColor:"gray.100",children:(0,n.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,n.jsxs)(o.Kqy,{spacing:4,children:[(0,n.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,n.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,n.jsx)(o.xvT,{children:"Let's get started!"}),(0,n.jsx)(o.xuv,{children:(0,n.jsx)(o.wpx,{href:q.xo,role:"link",type:"primary",className:"w-fit","data-testid":"add-systems-btn",children:"Add Systems"})})]})})});let V=c()(()=>Promise.all([l.e(105),l.e(1096),l.e(8765),l.e(9278),l.e(699),l.e(6148),l.e(5619),l.e(4259),l.e(1975)]).then(l.bind(l,34849)),{loadableGenerated:{webpack:()=>[34849]},ssr:!1,loading:()=>(0,n.jsx)(o.M5Y,{width:"100%",flex:"1",children:(0,n.jsx)(o.$jN,{})})}),W=()=>{let e=(0,u.C)(Z.Xt),{attemptAction:t}=(0,r.oI)(),[l,n]=(0,i.useState)(),s=(0,i.useCallback)(e=>{t().then(t=>{t&&n(e)})},[t,n]),a=(0,i.useCallback)(()=>{t().then(e=>{e&&l&&n(void 0)})},[t,l]);return{isGettingStarted:e,selectedSystemId:l,setSelectedSystemId:s,resetSelectedSystemId:a}};var A=()=>{let{isGettingStarted:e,setSelectedSystemId:t,selectedSystemId:l,resetSelectedSystemId:i}=W(),{isLoading:r}=C();return r?(0,n.jsx)(o.M5Y,{width:"100%",flex:"1",children:(0,n.jsx)(o.$jN,{})}):e?(0,n.jsx)(P,{}):(0,n.jsxs)(o.kCb,{direction:"column",height:"100%",children:[(0,n.jsx)(o.xuv,{marginBottom:3,marginRight:10,children:(0,n.jsx)(N,{})}),(0,n.jsxs)(o.kCb,{position:"relative",flex:1,direction:"row",overflow:"auto",borderWidth:"1px",borderStyle:"solid",borderColor:"gray.200",children:[(0,n.jsx)(o.xuv,{flex:1,minWidth:"50%",maxWidth:"100%",children:(0,n.jsx)(V,{setSelectedSystemId:t,selectedSystemId:l})}),(0,n.jsx)(x.Z,{selectedSystemId:l,resetSelectedSystemId:i})]})]})},G=()=>{let e=(0,i.useMemo)(()=>new j.m,[]);return(0,n.jsxs)(s.Z,{title:"Data lineage",mainProps:{padding:"24px 0 0 40px"},children:[(0,n.jsx)(a.Z,{style:{paddingLeft:0},heading:"Data lineage"}),(0,n.jsxs)(j.Z.Provider,{value:e,children:[(0,n.jsx)(A,{}),(0,n.jsx)(r.eB,{})]})]})}}},function(e){e.O(0,[5163,255,9951,4230,2888,9774,179],function(){return e(e.s=53910)}),_N_E=e.O()}]);
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9738],{53910:function(e,t,l){(window.__NEXT_P=window.__NEXT_P||[]).push(["/datamap",function(){return l(18839)}])},77213:function(e,t,l){"use strict";l.d(t,{Z:function(){return x}});var n=l(24246),i=l(27824),r=l(88038),s=l.n(r),a=l(86677);l(27378);var o=l(25980),d=l(90867),c=l(77830),u=()=>{let e=(0,a.useRouter)();return(0,n.jsx)(i.xuv,{bg:"gray.50",border:"1px solid",borderColor:"blue.400",borderRadius:"md",justifyContent:"space-between",p:5,mb:5,mt:5,children:(0,n.jsxs)(i.xuv,{children:[(0,n.jsxs)(i.Kqy,{direction:{base:"column",sm:"row"},justifyContent:"space-between",children:[(0,n.jsx)(i.xvT,{fontWeight:"semibold",children:"Configure your storage and messaging provider"}),(0,n.jsx)(i.wpx,{onClick:()=>{e.push(c.fz)},children:"Configure"})]}),(0,n.jsxs)(i.xvT,{children:["Before Fides can process your privacy requests we need two simple steps to configure your storage and email client."," "]})]})})},x=e=>{let{children:t,title:l,padded:r=!0,mainProps:c}=e,x=(0,o.hz)(),h=(0,a.useRouter)(),m="/privacy-requests"===h.pathname||"/datastore-connection"===h.pathname,g=!(x.flags.privacyRequestsConfiguration&&m),{data:p}=(0,d.JE)(void 0,{skip:g}),{data:f}=(0,d.PW)(void 0,{skip:g}),j=x.flags.privacyRequestsConfiguration&&(!p||!f)&&m;return(0,n.jsxs)(i.kCb,{"data-testid":l,direction:"column",h:"100vh",children:[(0,n.jsxs)(s(),{children:[(0,n.jsxs)("title",{children:["Fides Admin UI - ",l]}),(0,n.jsx)("meta",{name:"description",content:"Privacy Engineering Platform"}),(0,n.jsx)("link",{rel:"icon",href:"/favicon.ico"})]}),(0,n.jsxs)(i.kCb,{as:"main",direction:"column",py:r?6:0,px:r?10:0,h:r?"calc(100% - 48px)":"full",flex:1,minWidth:0,overflow:"auto",...c,children:[j?(0,n.jsx)(u,{}):null,t]})]})}},99811:function(e,t,l){"use strict";l.d(t,{m:function(){return i}});var n=l(27378);class i{updateTableInstance(e){this.tableInstance=e}constructor(e=null){this.tableInstance=e,this.updateTableInstance=this.updateTableInstance.bind(this)}}let r=n.createContext(new i);t.Z=r},18839:function(e,t,l){"use strict";l.r(t),l.d(t,{default:function(){return G}});var n=l(24246),i=l(27378),r=l(45938),s=l(77213),a=l(58754),o=l(27824),d=l(65218),c=l.n(d),u=l(16134),x=l(35258),h=l(92222),m=l(59003),g=l(30002),p=l(28079),f=l(49600),j=l(99811);let v=e=>{var t;let{column:l}=e,{tableInstance:n}=(0,i.useContext)(j.Z),r=i.useMemo(()=>Array.from(l.getFacetedUniqueValues().keys()),[l]),s=i.useMemo(()=>{let e={};return r.forEach(t=>{e[t]=!1}),e},[r]);return{filterValue:null!==(t=l.getFilterValue())&&void 0!==t?t:s,clearFilterOptions:()=>{let e={};r.forEach(t=>{e[t]=!1}),l.setFilterValue(e)},toggleFilterOption:(e,t)=>{var i;let r={...null!==(i=l.getFilterValue())&&void 0!==i?i:s,[e]:t};Object.values(r).every(e=>!e)?null==n||n.setColumnFilters(null==n?void 0:n.getState().columnFilters.filter(e=>e.id!==l.id)):l.setFilterValue(r)},options:r,header:l.columnDef.header}};var y=l(57072);let b=(0,h.Cl)(),w={multifield:(e,t,l)=>l[e.original[t]]},C=()=>{let e=(0,u.T)(),{updateTableInstance:t}=(0,i.useContext)(j.Z),l=(0,u.C)(f.eo),{data:n,isLoading:r}=(0,f.Ex)({organizationName:"default_organization"});(0,y.MO)(),(0,p.fd)(),(0,g.te)();let s=(0,i.useRef)(!1);(0,i.useEffect)(()=>{if(n){let{columns:t,rows:l}=n;e((0,f.dd)(t)),s.current||(s.current=!0,0===l.length?e((0,f.ym)(!0)):e((0,f.ym)(!1)))}},[n,e]);let a=(0,i.useMemo)(()=>n?n.rows:[],[n]),o=(0,i.useMemo)(()=>(l||[]).map(e=>{let{text:t,value:l}=e;return b.accessor(e=>e[l],{id:l,header:t,cell:e=>{let{getValue:t}=e,l=t();return Array.isArray(l)?l.join(", "):l},filterFn:w.multifield})}),[l]),d=(0,m.b7)({columns:o,data:a,filterFns:w,getCoreRowModel:(0,h.sC)(),getFilteredRowModel:(0,h.vL)(),getFacetedRowModel:(0,h.o6)(),getFacetedUniqueValues:(0,h.JG)(),manualPagination:!0,columnResizeMode:"onChange"});return(0,i.useEffect)(()=>t(d),[d,t]),{...d,isLoading:r}};var k=l(83766),F=l.n(k),S=l(25980),I=l(46238),M=l(47935),O=l(22968);let R=e=>{var t,l,i;let{option:r,columnId:s,filterValue:a,toggleFilterOption:d}=e,c=(0,u.C)(y.L5),x=s===O.Ux&&null!==(l=null===(t=c.get(r))||void 0===t?void 0:t.name)&&void 0!==l?l:r;return(0,n.jsx)(o.XZJ,{value:r,width:"193px",height:"20px",mb:"25px",isChecked:null!==(i=a[r])&&void 0!==i&&i,onChange:e=>{let{target:t}=e;d(r,t.checked)},_focusWithin:{bg:"gray.100"},colorScheme:"complimentary",children:(0,n.jsx)(o.xvT,{fontSize:"sm",lineHeight:5,height:"20px",width:"170px",textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap",children:x})},r)};var _=e=>{let{column:t}=e,{filterValue:l,toggleFilterOption:r,options:s}=v({column:t}),[a,d]=(0,i.useState)(!1),c=a?s:s.slice(0,15),u=s.length>15;return(0,n.jsx)(o.UQy,{width:"100%",allowToggle:!0,children:(0,n.jsxs)(o.Qdk,{border:"0px",children:[(0,n.jsx)(o.X6q,{height:"56px",children:(0,n.jsxs)(o.KFZ,{height:"100%",children:[(0,n.jsx)(o.xuv,{flex:"1",alignItems:"center",justifyContent:"center",textAlign:"left",children:t.columnDef.header}),(0,n.jsx)(o.XEm,{})]})}),(0,n.jsxs)(o.Hk3,{children:[(0,n.jsx)(o.MIq,{columns:3,children:c.map(e=>(0,n.jsx)(R,{columnId:t.id,option:e,filterValue:l,toggleFilterOption:r},e))}),!a&&u?(0,n.jsx)(o.wpx,{type:"text",onClick:()=>{d(!0)},children:"View more"}):null,a&&u?(0,n.jsx)(o.wpx,{type:"text",onClick:()=>{d(!1)},children:"View less"}):null]})]})},t.id)};let T=e=>{let{heading:t,children:l}=e;return(0,n.jsxs)(o.xuv,{padding:"24px 8px 8px 24px",children:[(0,n.jsx)(o.X6q,{size:"md",lineHeight:6,fontWeight:"bold",mb:2,children:t}),l]})};var z=e=>{let t,{isOpen:l,onClose:r}=e,{tableInstance:s}=(0,i.useContext)(j.Z),a=null==s?void 0:s.getHeaderGroups(),d=(e,t)=>e.filter(e=>e.id===t).map(e=>(0,n.jsx)(_,{column:e.column},t)),c=(0,i.useMemo)(()=>(null==a?void 0:a[0].headers)||[],[a]);return(0,n.jsxs)(o.u_l,{isOpen:l,onClose:r,isCentered:!0,size:"2xl",children:[(0,n.jsx)(o.ZAr,{}),(0,n.jsxs)(o.hzk,{children:[(0,n.jsx)(o.xBx,{children:"Filters"}),(0,n.jsx)(o.olH,{}),(0,n.jsx)(o.izJ,{}),(0,n.jsx)(o.fef,{maxH:"85vh",padding:"0px",overflowX:"auto",children:(t=[O.vy,O.Ux,O.OL],c.some(e=>t.indexOf(e.id)>-1))?(0,n.jsxs)(T,{heading:"Privacy attributes",children:[d(c,O.vy),d(c,O.Ux),d(c,O.OL)]}):null}),(0,n.jsx)(o.mzw,{children:(0,n.jsxs)(o.xuv,{display:"flex",justifyContent:"space-between",width:"100%",children:[(0,n.jsx)(o.wpx,{onClick:()=>{null==s||s.resetColumnFilters()},className:"mr-3 grow",children:"Reset Filters"}),(0,n.jsx)(o.wpx,{onClick:r,type:"primary",className:"grow",children:"Done"})]})})]})]})};let E=()=>{let{isOpen:e,onOpen:t,onClose:l}=(0,o.qY0)();return{isFilterModalOpen:e,onFilterModalOpen:t,onFilterModalClose:l}};var N=()=>{let{isFilterModalOpen:e,onFilterModalOpen:t,onFilterModalClose:l}=E(),{tableInstance:r}=(0,i.useContext)(j.Z),{systemsCount:s,dictionaryService:a}=(0,S.hz)(),d=null==r?void 0:r.getRowModel(),c=(0,i.useMemo)(()=>{let e=(null==d?void 0:d.rows)||[];return F()(null==e?void 0:e.map(e=>e.original["system.fides_key"]))},[d]);if(!r)return null;let u=c.length,x=r.getState().columnFilters.length;return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(o.kCb,{justifyContent:"flex-end",flexDirection:"row",alignItems:"center",flexWrap:"wrap",rowGap:4,columnGap:4,children:[(0,n.jsx)(o.kCb,{flexGrow:1,children:(0,n.jsx)(M.HO,{globalFilter:r.getState().globalFilter,setGlobalFilter:r.setGlobalFilter})}),(0,n.jsxs)(o.kCb,{children:[s>0?(0,n.jsxs)(o.kCb,{alignItems:"center",borderRadius:"md",gap:1,marginRight:4,children:[(0,n.jsxs)(o.xvT,{fontSize:"xs",children:[u," of ",s," systems displayed"]}),a?(0,n.jsx)(I.b,{label:"Note that Global Vendor List (GVL) and Additional Consent (AC) systems are not currently included in these reports"}):null]}):null,(0,n.jsxs)(o.wpx,{"aria-label":"Open Filter Settings",onClick:t,children:["Filter",x>0?(0,n.jsx)(o.j8w,{className:"ml-2",children:x}):null]})]})]}),(0,n.jsx)(z,{isOpen:e,onClose:l})]})},Z=l(38943),q=l(77830),P=()=>(0,n.jsx)(o.M5Y,{flex:1,"data-testid":"get-started-modal",backgroundColor:"gray.100",children:(0,n.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,n.jsxs)(o.Kqy,{spacing:4,children:[(0,n.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,n.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,n.jsx)(o.xvT,{children:"Let's get started!"}),(0,n.jsx)(o.xuv,{children:(0,n.jsx)(o.wpx,{href:q.xo,role:"link",type:"primary",className:"w-fit","data-testid":"add-systems-btn",children:"Add Systems"})})]})})});let V=c()(()=>Promise.all([l.e(105),l.e(1096),l.e(8765),l.e(9278),l.e(699),l.e(6148),l.e(5619),l.e(4259),l.e(1975)]).then(l.bind(l,34849)),{loadableGenerated:{webpack:()=>[34849]},ssr:!1,loading:()=>(0,n.jsx)(o.M5Y,{width:"100%",flex:"1",children:(0,n.jsx)(o.$jN,{})})}),W=()=>{let e=(0,u.C)(Z.Xt),{attemptAction:t}=(0,r.oI)(),[l,n]=(0,i.useState)(),s=(0,i.useCallback)(e=>{t().then(t=>{t&&n(e)})},[t,n]),a=(0,i.useCallback)(()=>{t().then(e=>{e&&l&&n(void 0)})},[t,l]);return{isGettingStarted:e,selectedSystemId:l,setSelectedSystemId:s,resetSelectedSystemId:a}};var A=()=>{let{isGettingStarted:e,setSelectedSystemId:t,selectedSystemId:l,resetSelectedSystemId:i}=W(),{isLoading:r}=C();return r?(0,n.jsx)(o.M5Y,{width:"100%",flex:"1",children:(0,n.jsx)(o.$jN,{})}):e?(0,n.jsx)(P,{}):(0,n.jsxs)(o.kCb,{direction:"column",height:"100%",children:[(0,n.jsx)(o.xuv,{marginBottom:3,marginRight:10,children:(0,n.jsx)(N,{})}),(0,n.jsxs)(o.kCb,{position:"relative",flex:1,direction:"row",overflow:"auto",borderWidth:"1px",borderStyle:"solid",borderColor:"gray.200",children:[(0,n.jsx)(o.xuv,{flex:1,minWidth:"50%",maxWidth:"100%",children:(0,n.jsx)(V,{setSelectedSystemId:t,selectedSystemId:l})}),(0,n.jsx)(x.Z,{selectedSystemId:l,resetSelectedSystemId:i})]})]})},G=()=>{let e=(0,i.useMemo)(()=>new j.m,[]);return(0,n.jsxs)(s.Z,{title:"Data lineage",mainProps:{padding:"24px 0 0 40px"},children:[(0,n.jsx)(a.Z,{style:{paddingLeft:0},heading:"Data lineage"}),(0,n.jsxs)(j.Z.Provider,{value:e,children:[(0,n.jsx)(A,{}),(0,n.jsx)(r.eB,{})]})]})}}},function(e){e.O(0,[5163,255,9951,4230,2888,9774,179],function(){return e(e.s=53910)}),_N_E=e.O()}]);
|