ethyca-fides 2.67.3b1__py2.py3-none-any.whl → 2.68.0rc1__py2.py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of ethyca-fides might be problematic. Click here for more details.

Files changed (209) hide show
  1. {ethyca_fides-2.67.3b1.dist-info → ethyca_fides-2.68.0rc1.dist-info}/METADATA +1 -1
  2. {ethyca_fides-2.67.3b1.dist-info → ethyca_fides-2.68.0rc1.dist-info}/RECORD +207 -206
  3. fides/_version.py +3 -3
  4. fides/api/alembic/migrations/versions/2f3c1a2d6b10_disallow_dot_in_monitor_key_and_update_refs.py +439 -0
  5. fides/api/db/base_class.py +19 -1
  6. fides/api/models/db_cache.py +8 -0
  7. fides/api/models/detection_discovery/core.py +14 -1
  8. fides/ui-build/static/admin/404.html +1 -1
  9. fides/ui-build/static/admin/_next/static/chunks/{1817-b78b58ae3b75d75a.js → 1817-c90365325f8a3d75.js} +1 -1
  10. fides/ui-build/static/admin/_next/static/chunks/{1975.7d4634a0e823a02b.js → 1975.e5cc7a1ccd477671.js} +1 -1
  11. fides/ui-build/static/admin/_next/static/chunks/{203-cd78ea279cecba60.js → 203-0c6cadcda98bdd33.js} +1 -1
  12. fides/ui-build/static/admin/_next/static/chunks/{2921-86f1547ac40a5cdf.js → 2921-46f9465c2852a46b.js} +1 -1
  13. fides/ui-build/static/admin/_next/static/chunks/{3450-69f4e16978971bb8.js → 3450-9314e1b15df8a8da.js} +1 -1
  14. fides/ui-build/static/admin/_next/static/chunks/{3855-509ca7ac99b5eada.js → 3855-4267fd8193e7f525.js} +1 -1
  15. fides/ui-build/static/admin/_next/static/chunks/{3872-0a0f0032ca39a93f.js → 3872-ac5feefd40b61ae3.js} +1 -1
  16. fides/ui-build/static/admin/_next/static/chunks/{3923-13a6b4da2d51bf8f.js → 3923-a33633feba5e655e.js} +1 -1
  17. fides/ui-build/static/admin/_next/static/chunks/{401-3cc1fee61494e3bd.js → 401-741bb31b586b7c96.js} +1 -1
  18. fides/ui-build/static/admin/_next/static/chunks/{409-ea70638a59296659.js → 409-5bc4369b80a8c11d.js} +1 -1
  19. fides/ui-build/static/admin/_next/static/chunks/{4121-877e19d3fa078c7b.js → 4121-94354b50a41f8497.js} +1 -1
  20. fides/ui-build/static/admin/_next/static/chunks/{4230-114e31621c19ea69.js → 4230-1ebc8c0ab293a077.js} +1 -1
  21. fides/ui-build/static/admin/_next/static/chunks/{431-1db919f6569a4021.js → 431-a34d7ceff17c2169.js} +1 -1
  22. fides/ui-build/static/admin/_next/static/chunks/{4608-f16f281f2d05d963.js → 4608-557fb24665b2e4bf.js} +1 -1
  23. fides/ui-build/static/admin/_next/static/chunks/{5309-d9a488457898263b.js → 5309-ffdec884eec79d29.js} +1 -1
  24. fides/ui-build/static/admin/_next/static/chunks/{5574-9312f97b637d9ee2.js → 5574-831167a8da90e2e6.js} +1 -1
  25. fides/ui-build/static/admin/_next/static/chunks/{6084-ddbad3149364725d.js → 6084-02abe12327fc3dbc.js} +1 -1
  26. fides/ui-build/static/admin/_next/static/chunks/{6662-ef0edd3598b1d431.js → 6662-499c189f932a35aa.js} +1 -1
  27. fides/ui-build/static/admin/_next/static/chunks/{6780-b42a27e72707936d.js → 6780-7d28e030f6516e5d.js} +1 -1
  28. fides/ui-build/static/admin/_next/static/chunks/{6853-d0190d2cca9dbde2.js → 6853-270261ef5537a106.js} +1 -1
  29. fides/ui-build/static/admin/_next/static/chunks/{6882-59ea739e3616ce83.js → 6882-7cc1d14e27a80c10.js} +1 -1
  30. fides/ui-build/static/admin/_next/static/chunks/{6954-ba98e778a5b45ebf.js → 6954-7784e8d5ad6b8110.js} +1 -1
  31. fides/ui-build/static/admin/_next/static/chunks/{7476-cc0d9a94ed7aad53.js → 7476-4de465016d3433b4.js} +1 -1
  32. fides/ui-build/static/admin/_next/static/chunks/{7630-b1c93688013ef013.js → 7630-2a5c57787632693d.js} +1 -1
  33. fides/ui-build/static/admin/_next/static/chunks/{7725-539d3a906f627531.js → 7725-c79513b04113112b.js} +1 -1
  34. fides/ui-build/static/admin/_next/static/chunks/{787-c57185ad89c4e288.js → 787-5ba991cad1f7664a.js} +1 -1
  35. fides/ui-build/static/admin/_next/static/chunks/{79-2aab56be75e16187.js → 79-98cfab20bb831137.js} +1 -1
  36. fides/ui-build/static/admin/_next/static/chunks/{796-3bdda2a7868464af.js → 796-0b768155bf20505f.js} +1 -1
  37. fides/ui-build/static/admin/_next/static/chunks/{8735-40caf91800a3610c.js → 8735-f84afcc50885883c.js} +1 -1
  38. fides/ui-build/static/admin/_next/static/chunks/{9046-7085a401297c5520.js → 9046-97a972cc8a8ed24d.js} +1 -1
  39. fides/ui-build/static/admin/_next/static/chunks/{9226-2dcac54ab3fb94be.js → 9226-318dadf1c050ecda.js} +1 -1
  40. fides/ui-build/static/admin/_next/static/chunks/{9676.7fbcb6b554cda098.js → 9676.9e6828b42ef05e06.js} +1 -1
  41. fides/ui-build/static/admin/_next/static/chunks/{9826-3c578665c6d3b21d.js → 9826-8c81c97a72510fcf.js} +1 -1
  42. fides/ui-build/static/admin/_next/static/chunks/{9951-7c6639e5d062779e.js → 9951-4df2b67e0def5500.js} +1 -1
  43. fides/ui-build/static/admin/_next/static/chunks/pages/{404-2d803dab6a00f353.js → 404-9174cdb70126c2c5.js} +1 -1
  44. fides/ui-build/static/admin/_next/static/chunks/pages/{_app-750d6bd16c971bb9.js → _app-65723cd4b8fc36ac.js} +18 -18
  45. fides/ui-build/static/admin/_next/static/chunks/pages/add-systems/{manual-2a655ff3a97f2492.js → manual-621416493c89ef01.js} +1 -1
  46. fides/ui-build/static/admin/_next/static/chunks/pages/add-systems/{multiple-8ff7f37913ad736a.js → multiple-0b9908c3e1dfe49e.js} +1 -1
  47. fides/ui-build/static/admin/_next/static/chunks/pages/{add-systems-0902f0bb4080643e.js → add-systems-18e96ce81dab51a4.js} +1 -1
  48. fides/ui-build/static/admin/_next/static/chunks/pages/consent/configure/{add-vendors-d00c9034cdeb0236.js → add-vendors-5bb1b31ae8752250.js} +1 -1
  49. fides/ui-build/static/admin/_next/static/chunks/pages/consent/{configure-0e1ca0f4c8e7f4da.js → configure-54d7c7310763c66d.js} +1 -1
  50. fides/ui-build/static/admin/_next/static/chunks/pages/consent/privacy-experience/{[id]-f22ddd9b48a5c418.js → [id]-4e4d9426743b5cb4.js} +1 -1
  51. fides/ui-build/static/admin/_next/static/chunks/pages/consent/{privacy-experience-21f997c69fc3b4c2.js → privacy-experience-d72460348fadcab8.js} +1 -1
  52. fides/ui-build/static/admin/_next/static/chunks/pages/consent/privacy-notices/{[id]-da4124b7600a2a1d.js → [id]-3e7ddc252da00c98.js} +1 -1
  53. fides/ui-build/static/admin/_next/static/chunks/pages/consent/privacy-notices/{new-a57d251c88ce68ae.js → new-35a7c305beee9428.js} +1 -1
  54. fides/ui-build/static/admin/_next/static/chunks/pages/consent/{privacy-notices-ad105181bc91209b.js → privacy-notices-6bc3b73a21576869.js} +1 -1
  55. fides/ui-build/static/admin/_next/static/chunks/pages/consent/{properties-057cad65e7414a44.js → properties-ab96939421639153.js} +1 -1
  56. fides/ui-build/static/admin/_next/static/chunks/pages/consent/{reporting-b0c4235fe6d0b0c8.js → reporting-fe3d6887fecf0f86.js} +1 -1
  57. fides/ui-build/static/admin/_next/static/chunks/pages/{consent-e17c56eec8d91371.js → consent-13240e3ca77acfeb.js} +1 -1
  58. fides/ui-build/static/admin/_next/static/chunks/pages/data-catalog/[systemId]/projects/{[projectUrn]-80a6cc8e8573514a.js → [projectUrn]-bd37b407c80c6986.js} +1 -1
  59. fides/ui-build/static/admin/_next/static/chunks/pages/data-catalog/[systemId]/{projects-29784a11fe0fbd0a.js → projects-e4770acf7044e2f5.js} +1 -1
  60. fides/ui-build/static/admin/_next/static/chunks/pages/{data-catalog-7770a8dc34bd0fc0.js → data-catalog-0db635c3483c9da8.js} +1 -1
  61. fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/action-center/[monitorId]/{[systemId]-3e5725cd06d7fe6c.js → [systemId]-0c0e0a7798345541.js} +1 -1
  62. fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/action-center/{[monitorId]-92b0bd97d8e79340.js → [monitorId]-3c56e5fe072a44c6.js} +1 -1
  63. fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/{action-center-ee3c0a103346fc06.js → action-center-53a763e49ce34a74.js} +1 -1
  64. fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/{activity-ad6a84a6276f914c.js → activity-6a90131dcecd694c.js} +1 -1
  65. fides/ui-build/static/admin/_next/static/chunks/pages/{datamap-d23b3ae139f0428b.js → datamap-8f88dc31c5144ea8.js} +1 -1
  66. fides/ui-build/static/admin/_next/static/chunks/pages/dataset/[datasetId]/[collectionName]/{[...subfieldNames]-15301bd6bf7cf718.js → [...subfieldNames]-145fe9e4cfcb231d.js} +1 -1
  67. fides/ui-build/static/admin/_next/static/chunks/pages/dataset/[datasetId]/{[collectionName]-0fa72873e464f581.js → [collectionName]-8a1e5d140785c1e9.js} +1 -1
  68. fides/ui-build/static/admin/_next/static/chunks/pages/dataset/{[datasetId]-a8e8b5f4ee7af86c.js → [datasetId]-227b5db4b472a6a7.js} +1 -1
  69. fides/ui-build/static/admin/_next/static/chunks/pages/dataset/{new-0d50084fbdf9b84c.js → new-8401f17fe5d9a1dc.js} +1 -1
  70. fides/ui-build/static/admin/_next/static/chunks/pages/{dataset-f3348d0a92543bab.js → dataset-7d77b3ad069be268.js} +1 -1
  71. fides/ui-build/static/admin/_next/static/chunks/pages/datastore-connection/{[id]-7d6027570d05c57f.js → [id]-67a7fe58b96ea739.js} +1 -1
  72. fides/ui-build/static/admin/_next/static/chunks/pages/datastore-connection/{new-c6614583b14dc9f2.js → new-90a8df230cb89877.js} +1 -1
  73. fides/ui-build/static/admin/_next/static/chunks/pages/{datastore-connection-3bd77864da523d41.js → datastore-connection-cfb25b02abb8da71.js} +1 -1
  74. fides/ui-build/static/admin/_next/static/chunks/pages/{index-fbf9b845bb901238.js → index-876bfd7210040cec.js} +1 -1
  75. fides/ui-build/static/admin/_next/static/chunks/pages/integrations/{[id]-330475705adbd36f.js → [id]-766e57bcf38b5b1e.js} +1 -1
  76. fides/ui-build/static/admin/_next/static/chunks/pages/{integrations-7f15cd8538cdc24d.js → integrations-3fdc55d4c129e618.js} +1 -1
  77. fides/ui-build/static/admin/_next/static/chunks/pages/messaging/{[id]-5627d0d0668077f9.js → [id]-6e796c3fe632280b.js} +1 -1
  78. fides/ui-build/static/admin/_next/static/chunks/pages/messaging/{add-template-feca66ad5c5fe54a.js → add-template-fa0f3841c5bdfdeb.js} +1 -1
  79. fides/ui-build/static/admin/_next/static/chunks/pages/{messaging-1bae386d8c190348.js → messaging-8f9c006b6166f002.js} +1 -1
  80. fides/ui-build/static/admin/_next/static/chunks/pages/poc/{ant-components-64a322d01aae5ca7.js → ant-components-6ba7ae4f26c06cb0.js} +1 -1
  81. fides/ui-build/static/admin/_next/static/chunks/pages/poc/form-experiments/{AntForm-8bca16a7726e7eb2.js → AntForm-11503454a62d8d7b.js} +1 -1
  82. fides/ui-build/static/admin/_next/static/chunks/pages/poc/form-experiments/{FormikAntFormItem-b0f246fc3b67ebf7.js → FormikAntFormItem-a504941807bdb7f1.js} +1 -1
  83. fides/ui-build/static/admin/_next/static/chunks/pages/poc/form-experiments/{FormikControlled-1a0852b090bfc392.js → FormikControlled-0119403c8ff97f83.js} +1 -1
  84. fides/ui-build/static/admin/_next/static/chunks/pages/poc/form-experiments/{FormikField-11f3de1b45e36583.js → FormikField-94f6d57d6c94ddf7.js} +1 -1
  85. fides/ui-build/static/admin/_next/static/chunks/pages/poc/{forms-1b73a1c2b6c6285f.js → forms-ed1a3ae09d72df89.js} +1 -1
  86. fides/ui-build/static/admin/_next/static/chunks/pages/poc/{table-migration-05616e2ae20ff4f8.js → table-migration-e8db3ad525e7ddbd.js} +1 -1
  87. fides/ui-build/static/admin/_next/static/chunks/pages/privacy-requests/[id]-c14dd24592369467.js +1 -0
  88. fides/ui-build/static/admin/_next/static/chunks/pages/privacy-requests/configure/{messaging-f1d818242d8550f8.js → messaging-100d7d03930629a8.js} +1 -1
  89. fides/ui-build/static/admin/_next/static/chunks/pages/privacy-requests/configure/{storage-d40a26bddb126c5c.js → storage-6f8d1b3ec83cfcf0.js} +1 -1
  90. fides/ui-build/static/admin/_next/static/chunks/pages/privacy-requests/{configure-e551a860ec727802.js → configure-3ce15577435d47cb.js} +1 -1
  91. fides/ui-build/static/admin/_next/static/chunks/pages/{privacy-requests-96a08c4431b5462c.js → privacy-requests-f43a988542813110.js} +1 -1
  92. fides/ui-build/static/admin/_next/static/chunks/pages/properties/{[id]-dd99183f93763ae4.js → [id]-41976b28503623cd.js} +1 -1
  93. fides/ui-build/static/admin/_next/static/chunks/pages/properties/{add-property-0bdbc1fcbf553b8f.js → add-property-cb438d8f5ec6007a.js} +1 -1
  94. fides/ui-build/static/admin/_next/static/chunks/pages/{properties-e959378bb32b6b73.js → properties-b6db7036993709b3.js} +1 -1
  95. fides/ui-build/static/admin/_next/static/chunks/pages/reporting/{datamap-9d1840f8309b706e.js → datamap-4bc3e281409265cc.js} +1 -1
  96. fides/ui-build/static/admin/_next/static/chunks/pages/settings/about/{alpha-1066f0c202ef744c.js → alpha-1ea40fcd6b4268bf.js} +1 -1
  97. fides/ui-build/static/admin/_next/static/chunks/pages/settings/{about-37ba24a72a06862e.js → about-65c7600fadc6e55a.js} +1 -1
  98. fides/ui-build/static/admin/_next/static/chunks/pages/settings/consent/[configuration_id]/{[purpose_id]-e891d01ece59669e.js → [purpose_id]-33dab986141b3663.js} +1 -1
  99. fides/ui-build/static/admin/_next/static/chunks/pages/settings/{consent-f61b87e79367865b.js → consent-1195042727c399ed.js} +1 -1
  100. fides/ui-build/static/admin/_next/static/chunks/pages/settings/{custom-fields-f8eea5d508c60c64.js → custom-fields-71b98858ecb4e097.js} +1 -1
  101. fides/ui-build/static/admin/_next/static/chunks/pages/settings/{domain-records-51333dbd21cb37c8.js → domain-records-386368bf7cb31771.js} +1 -1
  102. fides/ui-build/static/admin/_next/static/chunks/pages/settings/{domains-bde86e5f6c09da5a.js → domains-cf427e04f862b5d2.js} +1 -1
  103. fides/ui-build/static/admin/_next/static/chunks/pages/settings/{email-templates-4f9a5cc8bea7725b.js → email-templates-eabeeec5bf2773c6.js} +1 -1
  104. fides/ui-build/static/admin/_next/static/chunks/pages/settings/{locations-ed6a140b362c5baa.js → locations-b41fb5ad277088ab.js} +1 -1
  105. fides/ui-build/static/admin/_next/static/chunks/pages/settings/{organization-ff9a34264d48c35f.js → organization-ee56698ae3a6a78b.js} +1 -1
  106. fides/ui-build/static/admin/_next/static/chunks/pages/settings/{regulations-102efd9199e87124.js → regulations-a94dfeea43fbca7d.js} +1 -1
  107. fides/ui-build/static/admin/_next/static/chunks/pages/systems/configure/[id]/{test-datasets-a4b6d41ca679298b.js → test-datasets-0e2e98cc38ee5499.js} +1 -1
  108. fides/ui-build/static/admin/_next/static/chunks/pages/systems/configure/{[id]-c8f5fbaa83dd9945.js → [id]-18b316e2dad73731.js} +1 -1
  109. fides/ui-build/static/admin/_next/static/chunks/pages/{systems-c05b49ddec1a1b4f.js → systems-c32589c86081b750.js} +1 -1
  110. fides/ui-build/static/admin/_next/static/chunks/pages/{taxonomy-df0d88716578e295.js → taxonomy-a8f09bf8f3204ca7.js} +1 -1
  111. fides/ui-build/static/admin/_next/static/chunks/pages/user-management/profile/{[id]-da68efc31998dc66.js → [id]-3237881945acc0ee.js} +1 -1
  112. fides/ui-build/static/admin/_next/static/chunks/pages/{user-management-e98dfc7d4f2a4e16.js → user-management-a3a50d9d79066935.js} +1 -1
  113. fides/ui-build/static/admin/_next/static/chunks/{webpack-90e8ec1fc5c6455b.js → webpack-69658aeaf6155d89.js} +1 -1
  114. fides/ui-build/static/admin/_next/static/css/{8bc1833f1fa53ff0.css → 073713cd1eddda79.css} +1 -1
  115. fides/ui-build/static/admin/_next/static/css/{ab65b8cc3144bfc8.css → 0b4b1b65cc874774.css} +1 -1
  116. fides/ui-build/static/admin/_next/static/css/{d9924caa849931b3.css → e1628f15dd5f019b.css} +1 -1
  117. fides/ui-build/static/admin/_next/static/nd386tKRkuP7h0W5NiKwd/_buildManifest.js +1 -0
  118. fides/ui-build/static/admin/add-systems/manual.html +1 -1
  119. fides/ui-build/static/admin/add-systems/multiple.html +1 -1
  120. fides/ui-build/static/admin/add-systems.html +1 -1
  121. fides/ui-build/static/admin/consent/configure/add-vendors.html +1 -1
  122. fides/ui-build/static/admin/consent/configure.html +1 -1
  123. fides/ui-build/static/admin/consent/privacy-experience/[id].html +1 -1
  124. fides/ui-build/static/admin/consent/privacy-experience/new.html +1 -1
  125. fides/ui-build/static/admin/consent/privacy-experience.html +1 -1
  126. fides/ui-build/static/admin/consent/privacy-notices/[id].html +1 -1
  127. fides/ui-build/static/admin/consent/privacy-notices/new.html +1 -1
  128. fides/ui-build/static/admin/consent/privacy-notices.html +1 -1
  129. fides/ui-build/static/admin/consent/properties.html +1 -1
  130. fides/ui-build/static/admin/consent/reporting.html +1 -1
  131. fides/ui-build/static/admin/consent.html +1 -1
  132. fides/ui-build/static/admin/data-catalog/[systemId]/projects/[projectUrn]/[resourceUrn].html +1 -1
  133. fides/ui-build/static/admin/data-catalog/[systemId]/projects/[projectUrn].html +1 -1
  134. fides/ui-build/static/admin/data-catalog/[systemId]/projects.html +1 -1
  135. fides/ui-build/static/admin/data-catalog/[systemId]/resources/[resourceUrn].html +1 -1
  136. fides/ui-build/static/admin/data-catalog/[systemId]/resources.html +1 -1
  137. fides/ui-build/static/admin/data-catalog.html +1 -1
  138. fides/ui-build/static/admin/data-discovery/action-center/[monitorId]/[systemId].html +1 -1
  139. fides/ui-build/static/admin/data-discovery/action-center/[monitorId].html +1 -1
  140. fides/ui-build/static/admin/data-discovery/action-center.html +1 -1
  141. fides/ui-build/static/admin/data-discovery/activity.html +1 -1
  142. fides/ui-build/static/admin/data-discovery/detection/[resourceUrn].html +1 -1
  143. fides/ui-build/static/admin/data-discovery/detection.html +1 -1
  144. fides/ui-build/static/admin/data-discovery/discovery/[resourceUrn].html +1 -1
  145. fides/ui-build/static/admin/data-discovery/discovery.html +1 -1
  146. fides/ui-build/static/admin/datamap.html +1 -1
  147. fides/ui-build/static/admin/dataset/[datasetId]/[collectionName]/[...subfieldNames].html +1 -1
  148. fides/ui-build/static/admin/dataset/[datasetId]/[collectionName].html +1 -1
  149. fides/ui-build/static/admin/dataset/[datasetId].html +1 -1
  150. fides/ui-build/static/admin/dataset/new.html +1 -1
  151. fides/ui-build/static/admin/dataset.html +1 -1
  152. fides/ui-build/static/admin/datastore-connection/[id].html +1 -1
  153. fides/ui-build/static/admin/datastore-connection/new.html +1 -1
  154. fides/ui-build/static/admin/datastore-connection.html +1 -1
  155. fides/ui-build/static/admin/index.html +1 -1
  156. fides/ui-build/static/admin/integrations/[id].html +1 -1
  157. fides/ui-build/static/admin/integrations.html +1 -1
  158. fides/ui-build/static/admin/lib/fides-ext-gpp.js +1 -1
  159. fides/ui-build/static/admin/lib/fides-preview.js +1 -1
  160. fides/ui-build/static/admin/lib/fides-tcf.js +3 -3
  161. fides/ui-build/static/admin/lib/fides.js +3 -3
  162. fides/ui-build/static/admin/login/[provider].html +1 -1
  163. fides/ui-build/static/admin/login.html +1 -1
  164. fides/ui-build/static/admin/messaging/[id].html +1 -1
  165. fides/ui-build/static/admin/messaging/add-template.html +1 -1
  166. fides/ui-build/static/admin/messaging.html +1 -1
  167. fides/ui-build/static/admin/poc/ant-components.html +1 -1
  168. fides/ui-build/static/admin/poc/form-experiments/AntForm.html +1 -1
  169. fides/ui-build/static/admin/poc/form-experiments/FormikAntFormItem.html +1 -1
  170. fides/ui-build/static/admin/poc/form-experiments/FormikControlled.html +1 -1
  171. fides/ui-build/static/admin/poc/form-experiments/FormikField.html +1 -1
  172. fides/ui-build/static/admin/poc/form-experiments/FormikSpreadField.html +1 -1
  173. fides/ui-build/static/admin/poc/forms.html +1 -1
  174. fides/ui-build/static/admin/poc/table-migration.html +1 -1
  175. fides/ui-build/static/admin/privacy-requests/[id].html +1 -1
  176. fides/ui-build/static/admin/privacy-requests/configure/messaging.html +1 -1
  177. fides/ui-build/static/admin/privacy-requests/configure/storage.html +1 -1
  178. fides/ui-build/static/admin/privacy-requests/configure.html +1 -1
  179. fides/ui-build/static/admin/privacy-requests.html +1 -1
  180. fides/ui-build/static/admin/properties/[id].html +1 -1
  181. fides/ui-build/static/admin/properties/add-property.html +1 -1
  182. fides/ui-build/static/admin/properties.html +1 -1
  183. fides/ui-build/static/admin/reporting/datamap.html +1 -1
  184. fides/ui-build/static/admin/settings/about/alpha.html +1 -1
  185. fides/ui-build/static/admin/settings/about.html +1 -1
  186. fides/ui-build/static/admin/settings/consent/[configuration_id]/[purpose_id].html +1 -1
  187. fides/ui-build/static/admin/settings/consent.html +1 -1
  188. fides/ui-build/static/admin/settings/custom-fields.html +1 -1
  189. fides/ui-build/static/admin/settings/domain-records.html +1 -1
  190. fides/ui-build/static/admin/settings/domains.html +1 -1
  191. fides/ui-build/static/admin/settings/email-templates.html +1 -1
  192. fides/ui-build/static/admin/settings/locations.html +1 -1
  193. fides/ui-build/static/admin/settings/organization.html +1 -1
  194. fides/ui-build/static/admin/settings/regulations.html +1 -1
  195. fides/ui-build/static/admin/systems/configure/[id]/test-datasets.html +1 -1
  196. fides/ui-build/static/admin/systems/configure/[id].html +1 -1
  197. fides/ui-build/static/admin/systems.html +1 -1
  198. fides/ui-build/static/admin/taxonomy.html +1 -1
  199. fides/ui-build/static/admin/user-management/new.html +1 -1
  200. fides/ui-build/static/admin/user-management/profile/[id].html +1 -1
  201. fides/ui-build/static/admin/user-management.html +1 -1
  202. fides/ui-build/static/admin/_next/static/KAV7vwBbSuOInfCyClBs2/_buildManifest.js +0 -1
  203. fides/ui-build/static/admin/_next/static/chunks/pages/privacy-requests/[id]-79f1576b1126975c.js +0 -1
  204. {ethyca_fides-2.67.3b1.dist-info → ethyca_fides-2.68.0rc1.dist-info}/WHEEL +0 -0
  205. {ethyca_fides-2.67.3b1.dist-info → ethyca_fides-2.68.0rc1.dist-info}/entry_points.txt +0 -0
  206. {ethyca_fides-2.67.3b1.dist-info → ethyca_fides-2.68.0rc1.dist-info}/licenses/LICENSE +0 -0
  207. {ethyca_fides-2.67.3b1.dist-info → ethyca_fides-2.68.0rc1.dist-info}/top_level.txt +0 -0
  208. /fides/ui-build/static/admin/_next/static/chunks/{5596-4378b2927dae65b2.js → 5596-bb601cbf40e47a0f.js} +0 -0
  209. /fides/ui-build/static/admin/_next/static/{KAV7vwBbSuOInfCyClBs2 → nd386tKRkuP7h0W5NiKwd}/_ssgManifest.js +0 -0
@@ -1 +1 @@
1
- "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9046],{12627:function(e,s,a){var i=a(24246),t=a(79283),l=a(34929);s.Z=e=>{let{selectedTaxonomies:s,showDisabled:a=!1,...r}=e,{getDataCategoryDisplayNameProps:n,getDataCategories:o}=(0,l.Z)(),d=(a?o():o().filter(e=>e.active)).filter(e=>!s.includes(e.fides_key)).map(e=>{let{name:s,primaryName:a}=n(e.fides_key);return{value:e.fides_key,name:s,primaryName:a,description:e.description||""}});return(0,i.jsx)(t.l,{options:d,...r})}},14908:function(e,s,a){var i=a(86677),t=a(27378);let l=e=>e.startsWith("#")?e.slice(1):e;s.Z=e=>{let{tabKeys:s,initialTab:a}=e,r=(0,i.useRouter)(),n=r.asPath.split("#")[1]||s[0],[o,d]=(0,t.useState)(n);return(0,t.useEffect)(()=>{a&&s.includes(a)&&d(a)},[a,s,r.isReady]),{activeTab:o,onTabChange:(0,t.useCallback)(async e=>{if(!s.includes(e)){await r.replace({pathname:r.pathname,query:r.query,hash:void 0}),d(s[0]);return}r.isReady&&(await r.replace({pathname:r.pathname,query:r.query,hash:l(e)},void 0,{shallow:!0}),d(e))},[r,s])}}},69828:function(e,s,a){a.d(s,{Y:function(){return r}});var i=a(24246),t=a(13577),l=a(70788);let r=[(0,i.jsx)(t.PJP.S9g,{},"layers"),(0,i.jsx)(t.PJP.ehp,{},"dataset"),(0,i.jsx)(t.PJP.iA_,{},"table"),(0,i.jsx)(t.PJP.$4y,{style:{transform:"rotate(-90deg)"}},"field")];s.Z=e=>{let{resourceUrn:s,parentLink:a,onPathClick:t=()=>{}}=e,n=[];if(s||n.push({title:"All activity"}),s){n.push({title:"All activity",href:a});let e=s.split(".");e.forEach((s,a)=>{0!==a&&n.push({title:s,icon:r[a-1],onClick:s=>{s.preventDefault(),t(e.slice(0,a+1).join("."))}})})}return(0,i.jsx)(l.m,{"data-testid":"results-breadcrumb",items:n})}},11904:function(e,s,a){a.d(s,{Z:function(){return E}});var i,t,l=a(24246),r=a(59003),n=a(92222),o=a(13577),d=a(27378),c=a(47935),u=a(70675),g=a(72625),x=a(79947),h=a(50169),j=a(28278),m=a(74241),p=a(54682),f=a(91761),v=a(61099),y=a(87667),I=e=>{let{resourceType:s}=e,a=(0,n.Cl)();return s===p.D$.SCHEMA?{columns:[a.accessor(e=>e.name,{id:"name",cell:e=>(0,l.jsx)(y.Z,{result:e.row.original,changeTypeOverride:j.E.CLASSIFICATION}),header:e=>(0,l.jsx)(c.Rr,{value:"Name",...e}),size:300}),a.accessor(e=>e.urn,{id:"project",cell:e=>(0,l.jsx)(c.G3,{value:(0,m.Z)(e.getValue())}),header:e=>(0,l.jsx)(c.Rr,{value:"Project",...e})}),a.display({id:"status",cell:e=>(0,l.jsx)(h.Z,{result:e.row.original}),header:e=>(0,l.jsx)(c.Rr,{value:"Status",...e})}),a.accessor(e=>e.system,{id:"system",cell:e=>(0,l.jsx)(c.G3,{value:e.getValue()}),header:e=>(0,l.jsx)(c.Rr,{value:"System",...e})}),a.accessor(e=>e.monitor_config_id,{id:"monitor",cell:e=>(0,l.jsx)(c.G3,{value:e.getValue()}),header:e=>(0,l.jsx)(c.Rr,{value:"Detected by",...e})}),a.accessor(e=>e.updated_at,{id:"time",cell:e=>(0,l.jsx)(g.Cy,{time:e.getValue()}),header:e=>(0,l.jsx)(c.Rr,{value:"When",...e})}),a.display({id:"action",cell:e=>e.row.original.diff_status!==p.LL.MUTED?(0,l.jsx)(f.Z,{resource:e.row.original}):(0,l.jsx)(c.G3,{value:"--"}),header:"Actions",size:235,meta:{disableRowClick:!0}})]}:s===p.D$.TABLE?{columns:[a.display({id:"select",cell:e=>{var s;let{row:a}=e;return(0,l.jsx)(g.k,{isChecked:a.getIsSelected(),onChange:a.getToggleSelectedHandler(),dataTestId:"select-".concat(null!==(s=a.original.name)&&void 0!==s?s:a.id)})},header:e=>{let{table:s}=e;return(0,l.jsx)(g.k,{isChecked:s.getIsAllPageRowsSelected(),isIndeterminate:s.getIsSomeRowsSelected(),onChange:s.getToggleAllRowsSelectedHandler(),dataTestId:"select-all-rows"})},maxSize:40}),a.accessor(e=>e.name,{id:"tables",cell:e=>(0,l.jsx)(y.Z,{result:e.row.original}),header:e=>(0,l.jsx)(c.Rr,{value:"Table name",...e}),size:300}),a.accessor(e=>e.description,{id:"description",cell:e=>(0,l.jsx)(c.G3,{value:e.getValue(),cellProps:e}),header:e=>(0,l.jsx)(c.Rr,{value:"Description",...e}),meta:{showHeaderMenu:!0}}),a.display({id:"status",cell:e=>(0,l.jsx)(h.Z,{result:e.row.original}),header:e=>(0,l.jsx)(c.Rr,{value:"Status",...e})}),a.display({id:"type",cell:()=>(0,l.jsx)(c.G3,{value:"Table"}),header:"Type"}),a.accessor(e=>e.updated_at,{id:"time",cell:e=>(0,l.jsx)(g.Cy,{time:e.getValue()}),header:"Time"}),a.display({id:"actions",cell:e=>(0,l.jsx)(f.Z,{resource:e.row.original}),header:"Actions",size:235,meta:{disableRowClick:!0}})]}:s===p.D$.FIELD?{columns:[a.accessor(e=>e.name,{id:"name",cell:e=>(0,l.jsx)(y.Z,{result:e.row.original}),header:e=>(0,l.jsx)(c.Rr,{value:"Field name",...e}),size:300}),a.accessor(e=>e.source_data_type,{id:"data-type",cell:e=>(0,l.jsx)(x.Z,{type:e.getValue()}),header:e=>(0,l.jsx)(c.Rr,{value:"Data type",...e})}),a.accessor(e=>e.description,{id:"description",cell:e=>(0,l.jsx)(c.G3,{value:e.getValue(),cellProps:e}),header:e=>(0,l.jsx)(c.Rr,{value:"Description",...e}),meta:{showHeaderMenu:!0}}),a.display({id:"status",cell:e=>(0,l.jsx)(h.Z,{result:e.row.original}),header:e=>(0,l.jsx)(c.Rr,{value:"Status",...e})}),a.display({id:"type",cell:()=>(0,l.jsx)(c.G3,{value:"Field"}),header:"Type"}),a.display({id:"classifications",cell:e=>{let{row:s}=e;return(0,l.jsx)(v.Z,{resource:s.original})},meta:{overflow:"visible",disableRowClick:!0},header:"Data category",minSize:280}),a.accessor(e=>e.updated_at,{id:"time",cell:e=>(0,l.jsx)(g.Cy,{time:e.getValue()}),header:e=>(0,l.jsx)(c.Rr,{value:"When",...e})}),a.display({id:"actions",cell:e=>(0,l.jsx)(f.Z,{resource:e.row.original}),header:"Actions",size:235,meta:{disableRowClick:!0}})]}:s===p.D$.ENDPOINT?{columns:[a.accessor(e=>e.name,{id:"name",cell:e=>(0,l.jsx)(y.Z,{result:e.row.original}),header:e=>(0,l.jsx)(c.Rr,{value:"Object",...e}),size:300}),a.accessor(e=>e.description,{id:"description",cell:e=>(0,l.jsx)(c.G3,{value:e.getValue(),cellProps:e}),header:e=>(0,l.jsx)(c.Rr,{value:"Description",...e}),meta:{showHeaderMenu:!0}}),a.display({id:"status",cell:e=>(0,l.jsx)(h.Z,{result:e.row.original}),header:e=>(0,l.jsx)(c.Rr,{value:"Status",...e})}),a.display({id:"type",cell:()=>(0,l.jsx)(c.G3,{value:"Endpoint"}),header:"Type"}),a.display({id:"classifications",cell:e=>{let{row:s}=e;return(0,l.jsx)(v.Z,{resource:s.original})},meta:{overflow:"visible",disableRowClick:!0},header:"Data category",minSize:280}),a.accessor(e=>e.updated_at,{id:"time",cell:e=>(0,l.jsx)(g.Cy,{time:e.getValue()}),header:e=>(0,l.jsx)(c.Rr,{value:"When",...e})}),a.display({id:"actions",cell:e=>(0,l.jsx)(f.Z,{resource:e.row.original}),header:"Actions",size:235,meta:{disableRowClick:!0}})]}:{columns:[]}},C=a(14908);(i=t||(t={})).ACTION_REQUIRED="action-required",i.IN_PROGRESS="in-progress",i.UNMONITORED="unmonitored";let _={"action-required":{label:"Action Required",key:"action-required",filters:[p.LL.CLASSIFICATION_ADDITION,p.LL.CLASSIFICATION_UPDATE],childFilters:[p.LL.CLASSIFICATION_ADDITION,p.LL.CLASSIFICATION_UPDATE]},"in-progress":{label:"In progress",key:"in-progress",filters:[p.LL.CLASSIFYING,p.LL.CLASSIFICATION_QUEUED],childFilters:[p.LL.CLASSIFYING,p.LL.CLASSIFICATION_QUEUED]},unmonitored:{label:"Unmonitored",key:"unmonitored",filters:[p.LL.MUTED],childFilters:[]}};var L=()=>{var e,s;let{activeTab:a,onTabChange:i}=(0,C.Z)({tabKeys:Object.values(t)});return{filterTabs:Object.values(_),activeTab:a,onTabChange:i,activeDiffFilters:null===(e=_[a])||void 0===e?void 0:e.filters,activeChildDiffFilters:null===(s=_[a])||void 0===s?void 0:s.childFilters}},b=a(47182),w=a(38347),S=a(79494),A=e=>{let{resourceUrn:s}=e,[a,{isLoading:i}]=(0,u.Hf)(),[t,{isLoading:r}]=(0,u.zV)(),n=i||r,d=async e=>{await t({staged_resource_urns:e})},c=async e=>{await a({staged_resource_urns:e})};return(0,l.jsx)(o.jqI,{"data-testid":"bulk-actions-menu",children:(0,l.jsxs)("div",{className:"flex gap-2",children:[(0,l.jsx)(S.Z,{title:"Confirm all",icon:(0,l.jsx)(o.nQG,{}),onClick:()=>c([s]),disabled:n,loading:i,type:"primary",size:"middle"}),(0,l.jsx)(S.Z,{title:"Ignore all",icon:(0,l.jsx)(o.tpL,{}),onClick:()=>d([s]),disabled:n,loading:r,size:"middle"})]})})},R=e=>{let{selectedUrns:s}=e,[a,{isLoading:i}]=(0,u.Hf)(),[t,{isLoading:r}]=(0,u.zV)(),n=i||r,d=async e=>{await a({staged_resource_urns:e})},c=async e=>{await t({staged_resource_urns:e})};return s.length?(0,l.jsxs)(o.jqI,{className:"items-center","data-testid":"bulk-actions-menu",children:[(0,l.jsx)(o.xvT,{fontSize:"xs",fontWeight:"semibold",minW:16,mr:4,children:"".concat(s.length," selected")}),(0,l.jsxs)(o.jqI,{className:"gap-2",children:[(0,l.jsx)(S.Z,{title:"Confirm",icon:(0,l.jsx)(o.nQG,{}),onClick:()=>d(s),disabled:n,loading:i,type:"primary",size:"middle"}),(0,l.jsx)(S.Z,{title:"Ignore",icon:(0,l.jsx)(o.tpL,{}),disabled:n,loading:r,onClick:()=>c(s),size:"middle"})]})]}):null},T=a(7940),D=a(80285),k=a(36168),N=a(30952);let Z={items:[],total:0,page:1,size:50,pages:1},F=()=>(0,l.jsx)(o.gCW,{mt:6,p:10,spacing:4,borderRadius:"base",maxW:"70%","data-testid":"empty-state",alignSelf:"center",margin:"auto",children:(0,l.jsxs)(o.gCW,{children:[(0,l.jsx)(o.xvT,{fontSize:"md",fontWeight:"600",children:"No activity found"}),(0,l.jsx)(o.xvT,{fontSize:"sm",children:"You're up to date!"})]})});var E=e=>{let{resourceUrn:s}=e,[a,i]=(0,d.useState)(""),{filterTabs:t,activeTab:g,onTabChange:x,activeDiffFilters:h,activeChildDiffFilters:j}=L(),[m,f]=(0,d.useState)({}),{PAGE_SIZES:v,pageSize:y,setPageSize:C,onPreviousPageClick:_,isPreviousPageDisabled:S,onNextPageClick:E,isNextPageDisabled:P,startRange:z,endRange:O,pageIndex:G,setTotalPages:U,resetPageIndexToDefault:M}=(0,c.oi)();(0,d.useEffect)(()=>{M()},[s,a,M,h,j]);let{isFetching:V,isLoading:q,data:$}=(0,u.z8)({staged_resource_urn:s,page:G,size:y,child_diff_status:j,diff_status:h,search:a}),W=(0,T.G)(null==$?void 0:$.items[0]),{items:H,total:Q,pages:J}=(0,d.useMemo)(()=>null!=$?$:Z,[$]);(0,d.useEffect)(()=>{U(J)},[J,U]);let{columns:Y}=I({resourceType:W}),B=(0,d.useMemo)(()=>Y,[Y]),{navigateToDiscoveryResults:K}=(0,b.Z)(),X=(0,r.b7)({getCoreRowModel:(0,n.sC)(),getGroupedRowModel:(0,n.qe)(),getExpandedRowModel:(0,n.rV)(),columns:B,manualPagination:!0,onRowSelectionChange:f,state:{rowSelection:m},getRowId:D.Z,data:H,columnResizeMode:"onChange"}),ee=Object.keys(m).filter(e=>m[e]);return q?(0,l.jsx)(c.I4,{rowHeight:36,numRows:36}):(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(o.A5g,{items:t.map(e=>({key:e.key,label:e.label})),activeKey:g,onChange:e=>x(e)}),(0,l.jsxs)(c.Q$,{children:[(0,l.jsxs)(o.kCb,{gap:6,align:"center",children:[(0,l.jsx)(o.xuv,{flexShrink:0,children:(0,l.jsx)(N.f,{value:a,onChange:i})}),(0,l.jsx)(w.Z,{})]}),W===p.D$.TABLE&&!!ee.length&&(0,l.jsx)(R,{selectedUrns:ee}),W===p.D$.FIELD&&"unmonitored"!==g&&(0,l.jsx)(A,{resourceUrn:s})]}),(0,l.jsx)(c.ZK,{tableInstance:X,onRowClick:e=>K({resourceUrn:e.urn,filterTab:g}),getRowIsClickable:e=>W!==p.D$.FIELD||(0,k.Z)(e),emptyTableNotice:(0,l.jsx)(F,{})}),(0,l.jsx)(c.s8,{totalRows:Q||0,pageSizes:v,setPageSize:C,onPreviousPageClick:_,isPreviousPageDisabled:S||V,onNextPageClick:E,isNextPageDisabled:P||V,startRange:z,endRange:O})]})}},91761:function(e,s,a){var i=a(24246),t=a(13577),l=a(812),r=a(14047),n=a(7940),o=a(98559),d=a(54682),c=a(79494),u=a(70675);s.Z=e=>{let{resource:s}=e,[a,{isLoading:g}]=(0,u.v8)(),[x,{isLoading:h}]=(0,u.cM)(),[j,{isLoading:m}]=(0,u.vi)(),p=h||m||g,{diff_status:f,child_diff_statuses:v,top_level_field_name:y}=s,{successAlert:I,errorAlert:C}=(0,r.V)(),_=f===d.LL.CLASSIFICATION_ADDITION||f===d.LL.CLASSIFICATION_UPDATE,L=v&&(v[d.LL.CLASSIFICATION_ADDITION]||v[d.LL.CLASSIFICATION_UPDATE]),b=(_||L)&&!y,w=_||L,S=(0,n.G)(s)!==d.D$.FIELD,A=b&&w&&S,R=async()=>{let e=await x({staged_resource_urn:s.urn});(0,l.D4)(e)?C((0,l.e$)(e.error),"Failed to promote resource"):I('These changes have been added to a Fides dataset. To view, navigate to "Manage datasets".',"Table changes confirmed")},T=async()=>{let e=await j({staged_resource_urn:s.urn});(0,l.D4)(e)?C((0,l.e$)(e.error),"Failed to mute resource"):I("Ignored changes will not be added to a Fides dataset.","".concat(s.name||"Changes"," ignored"))},D=async()=>{let e=await a({staged_resource_urn:s.urn,monitor_config_id:s.monitor_config_id,start_classification:!0,diff_statuses_to_classify:[d.LL.CLASSIFICATION_ADDITION,d.LL.CLASSIFICATION_UPDATE,d.LL.CLASSIFYING,d.LL.CLASSIFICATION_QUEUED]});(0,l.D4)(e)?C((0,l.e$)(e.error),"Failed to reclassify resource"):I("Reclassification of ".concat((0,o.Z)(s)||"the resource"," has begun. The results may take some time to appear in the “Data discovery“ tab."),"Reclassification started")};return(0,i.jsxs)(t.Ugi,{gap:2,children:[b&&(0,i.jsx)(c.Z,{title:"Confirm",icon:(0,i.jsx)(t.nQG,{}),onClick:R,disabled:p,loading:h}),w&&(0,i.jsx)(c.Z,{title:"Ignore",icon:(0,i.jsx)(t.tpL,{}),onClick:T,disabled:p,loading:m}),S&&!A&&(0,i.jsx)(c.Z,{title:"Reclassify",icon:(0,i.jsx)(t.nyI,{}),onClick:D,disabled:p,loading:g}),A&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(t.LZC,{}),(0,i.jsxs)(t.v2r,{children:[(0,i.jsx)(t.j2t,{as:t.wpx,size:"small",type:"text",icon:(0,i.jsx)(t.nXP,{transform:"rotate(90deg)"}),className:"w-6 gap-0","data-testid":"actions-overflow-btn"}),(0,i.jsx)(t.qyq,{children:(0,i.jsx)(t.sNh,{onClick:D,icon:(0,i.jsx)(t.nyI,{}),"data-testid":"action-reclassify",children:"Reclassify"})})]})]})]})}},61099:function(e,s,a){var i=a(24246),t=a(13577),l=a(27378),r=a(12627),n=a(34929),o=a(26183),d=a(70675);s.Z=e=>{var s,a,c;let{resource:u}=e,[g,x]=(0,l.useState)(!1),{getDataCategoryDisplayName:h}=(0,n.Z)(),[j]=(0,d.NA)(),m=(null===(s=u.classifications)||void 0===s?void 0:s.length)?u.classifications[0].label:null,p=null!==(c=u.user_assigned_data_categories)&&void 0!==c?c:[],f=!m&&!(null==p?void 0:p.length),v=null===(a=u.sub_field_urns)||void 0===a?void 0:a.length,y=e=>{j({staged_resource_urn:u.urn,monitor_config_id:u.monitor_config_id,user_assigned_data_categories:[...p,e]})},I=e=>{var s;j({staged_resource_urn:u.urn,monitor_config_id:u.monitor_config_id,user_assigned_data_categories:null!==(s=null==p?void 0:p.filter(s=>s!==e))&&void 0!==s?s:[]})},C=!g&&!!p.length,_=!g&&!!m&&!p.length;return(0,i.jsxs)(o.Z,{"data-testid":"edit-category-cell",children:[f&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(t.j8w,{"data-testid":"no-classifications",color:"white",children:"None"}),!v&&(0,i.jsx)(t.j8w,{onClick:()=>x(!0),addable:!0,"data-testid":"taxonomy-add-btn","aria-label":"Add category"})]}),C&&(0,i.jsxs)(i.Fragment,{children:[p.map(e=>(0,i.jsx)(t.j8w,{"data-testid":"user-classification-".concat(e),color:"white",closable:!0,onClose:()=>I(e),closeButtonLabel:"Remove category",children:h(e)},e)),(0,i.jsx)(t.j8w,{onClick:()=>x(!0),addable:!0,"data-testid":"taxonomy-add-btn","aria-label":"Add category"})]}),_&&(0,i.jsxs)(t.j8w,{onClick:()=>x(!0),color:"white","data-testid":"classification-".concat(m),hasSparkle:!0,children:[h(m),(0,i.jsx)(t.PJP.I8b,{size:10})]}),g&&(0,i.jsx)(t.xuv,{className:"select-wrapper",position:"absolute",zIndex:10,top:"0",left:"0",width:"100%",height:"max",bgColor:"#fff",children:(0,i.jsx)(r.Z,{selectedTaxonomies:p,onChange:e=>{x(!1),y(e)},onBlur:()=>x(!1),open:!0})})]})}},79947:function(e,s,a){var i=a(24246),t=a(13577);s.Z=e=>{let{type:s}=e;return(0,i.jsx)(t.kCb,{align:"center",h:"full",children:!!s&&(0,i.jsx)(t.j8w,{children:s})})}}}]);
1
+ "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9046],{12627:function(e,s,a){var i=a(24246),t=a(79283),l=a(34929);s.Z=e=>{let{selectedTaxonomies:s,showDisabled:a=!1,...r}=e,{getDataCategoryDisplayNameProps:n,getDataCategories:o}=(0,l.Z)(),d=(a?o():o().filter(e=>e.active)).filter(e=>!s.includes(e.fides_key)).map(e=>{let{name:s,primaryName:a}=n(e.fides_key);return{value:e.fides_key,name:s,primaryName:a,description:e.description||""}});return(0,i.jsx)(t.l,{options:d,...r})}},14908:function(e,s,a){var i=a(86677),t=a(27378);let l=e=>e.startsWith("#")?e.slice(1):e;s.Z=e=>{let{tabKeys:s,initialTab:a}=e,r=(0,i.useRouter)(),n=r.asPath.split("#")[1]||s[0],[o,d]=(0,t.useState)(n);return(0,t.useEffect)(()=>{a&&s.includes(a)&&d(a)},[a,s,r.isReady]),{activeTab:o,onTabChange:(0,t.useCallback)(async e=>{if(!s.includes(e)){await r.replace({pathname:r.pathname,query:r.query,hash:void 0}),d(s[0]);return}r.isReady&&(await r.replace({pathname:r.pathname,query:r.query,hash:l(e)},void 0,{shallow:!0}),d(e))},[r,s])}}},69828:function(e,s,a){a.d(s,{Y:function(){return r}});var i=a(24246),t=a(27824),l=a(70788);let r=[(0,i.jsx)(t.PJP.S9g,{},"layers"),(0,i.jsx)(t.PJP.ehp,{},"dataset"),(0,i.jsx)(t.PJP.iA_,{},"table"),(0,i.jsx)(t.PJP.$4y,{style:{transform:"rotate(-90deg)"}},"field")];s.Z=e=>{let{resourceUrn:s,parentLink:a,onPathClick:t=()=>{}}=e,n=[];if(s||n.push({title:"All activity"}),s){n.push({title:"All activity",href:a});let e=s.split(".");e.forEach((s,a)=>{0!==a&&n.push({title:s,icon:r[a-1],onClick:s=>{s.preventDefault(),t(e.slice(0,a+1).join("."))}})})}return(0,i.jsx)(l.m,{"data-testid":"results-breadcrumb",items:n})}},11904:function(e,s,a){a.d(s,{Z:function(){return E}});var i,t,l=a(24246),r=a(59003),n=a(92222),o=a(27824),d=a(27378),c=a(47935),u=a(70675),g=a(72625),x=a(79947),h=a(50169),j=a(28278),m=a(74241),p=a(54682),f=a(91761),v=a(61099),y=a(87667),I=e=>{let{resourceType:s}=e,a=(0,n.Cl)();return s===p.D$.SCHEMA?{columns:[a.accessor(e=>e.name,{id:"name",cell:e=>(0,l.jsx)(y.Z,{result:e.row.original,changeTypeOverride:j.E.CLASSIFICATION}),header:e=>(0,l.jsx)(c.Rr,{value:"Name",...e}),size:300}),a.accessor(e=>e.urn,{id:"project",cell:e=>(0,l.jsx)(c.G3,{value:(0,m.Z)(e.getValue())}),header:e=>(0,l.jsx)(c.Rr,{value:"Project",...e})}),a.display({id:"status",cell:e=>(0,l.jsx)(h.Z,{result:e.row.original}),header:e=>(0,l.jsx)(c.Rr,{value:"Status",...e})}),a.accessor(e=>e.system,{id:"system",cell:e=>(0,l.jsx)(c.G3,{value:e.getValue()}),header:e=>(0,l.jsx)(c.Rr,{value:"System",...e})}),a.accessor(e=>e.monitor_config_id,{id:"monitor",cell:e=>(0,l.jsx)(c.G3,{value:e.getValue()}),header:e=>(0,l.jsx)(c.Rr,{value:"Detected by",...e})}),a.accessor(e=>e.updated_at,{id:"time",cell:e=>(0,l.jsx)(g.Cy,{time:e.getValue()}),header:e=>(0,l.jsx)(c.Rr,{value:"When",...e})}),a.display({id:"action",cell:e=>e.row.original.diff_status!==p.LL.MUTED?(0,l.jsx)(f.Z,{resource:e.row.original}):(0,l.jsx)(c.G3,{value:"--"}),header:"Actions",size:235,meta:{disableRowClick:!0}})]}:s===p.D$.TABLE?{columns:[a.display({id:"select",cell:e=>{var s;let{row:a}=e;return(0,l.jsx)(g.k,{isChecked:a.getIsSelected(),onChange:a.getToggleSelectedHandler(),dataTestId:"select-".concat(null!==(s=a.original.name)&&void 0!==s?s:a.id)})},header:e=>{let{table:s}=e;return(0,l.jsx)(g.k,{isChecked:s.getIsAllPageRowsSelected(),isIndeterminate:s.getIsSomeRowsSelected(),onChange:s.getToggleAllRowsSelectedHandler(),dataTestId:"select-all-rows"})},maxSize:40}),a.accessor(e=>e.name,{id:"tables",cell:e=>(0,l.jsx)(y.Z,{result:e.row.original}),header:e=>(0,l.jsx)(c.Rr,{value:"Table name",...e}),size:300}),a.accessor(e=>e.description,{id:"description",cell:e=>(0,l.jsx)(c.G3,{value:e.getValue(),cellProps:e}),header:e=>(0,l.jsx)(c.Rr,{value:"Description",...e}),meta:{showHeaderMenu:!0}}),a.display({id:"status",cell:e=>(0,l.jsx)(h.Z,{result:e.row.original}),header:e=>(0,l.jsx)(c.Rr,{value:"Status",...e})}),a.display({id:"type",cell:()=>(0,l.jsx)(c.G3,{value:"Table"}),header:"Type"}),a.accessor(e=>e.updated_at,{id:"time",cell:e=>(0,l.jsx)(g.Cy,{time:e.getValue()}),header:"Time"}),a.display({id:"actions",cell:e=>(0,l.jsx)(f.Z,{resource:e.row.original}),header:"Actions",size:235,meta:{disableRowClick:!0}})]}:s===p.D$.FIELD?{columns:[a.accessor(e=>e.name,{id:"name",cell:e=>(0,l.jsx)(y.Z,{result:e.row.original}),header:e=>(0,l.jsx)(c.Rr,{value:"Field name",...e}),size:300}),a.accessor(e=>e.source_data_type,{id:"data-type",cell:e=>(0,l.jsx)(x.Z,{type:e.getValue()}),header:e=>(0,l.jsx)(c.Rr,{value:"Data type",...e})}),a.accessor(e=>e.description,{id:"description",cell:e=>(0,l.jsx)(c.G3,{value:e.getValue(),cellProps:e}),header:e=>(0,l.jsx)(c.Rr,{value:"Description",...e}),meta:{showHeaderMenu:!0}}),a.display({id:"status",cell:e=>(0,l.jsx)(h.Z,{result:e.row.original}),header:e=>(0,l.jsx)(c.Rr,{value:"Status",...e})}),a.display({id:"type",cell:()=>(0,l.jsx)(c.G3,{value:"Field"}),header:"Type"}),a.display({id:"classifications",cell:e=>{let{row:s}=e;return(0,l.jsx)(v.Z,{resource:s.original})},meta:{overflow:"visible",disableRowClick:!0},header:"Data category",minSize:280}),a.accessor(e=>e.updated_at,{id:"time",cell:e=>(0,l.jsx)(g.Cy,{time:e.getValue()}),header:e=>(0,l.jsx)(c.Rr,{value:"When",...e})}),a.display({id:"actions",cell:e=>(0,l.jsx)(f.Z,{resource:e.row.original}),header:"Actions",size:235,meta:{disableRowClick:!0}})]}:s===p.D$.ENDPOINT?{columns:[a.accessor(e=>e.name,{id:"name",cell:e=>(0,l.jsx)(y.Z,{result:e.row.original}),header:e=>(0,l.jsx)(c.Rr,{value:"Object",...e}),size:300}),a.accessor(e=>e.description,{id:"description",cell:e=>(0,l.jsx)(c.G3,{value:e.getValue(),cellProps:e}),header:e=>(0,l.jsx)(c.Rr,{value:"Description",...e}),meta:{showHeaderMenu:!0}}),a.display({id:"status",cell:e=>(0,l.jsx)(h.Z,{result:e.row.original}),header:e=>(0,l.jsx)(c.Rr,{value:"Status",...e})}),a.display({id:"type",cell:()=>(0,l.jsx)(c.G3,{value:"Endpoint"}),header:"Type"}),a.display({id:"classifications",cell:e=>{let{row:s}=e;return(0,l.jsx)(v.Z,{resource:s.original})},meta:{overflow:"visible",disableRowClick:!0},header:"Data category",minSize:280}),a.accessor(e=>e.updated_at,{id:"time",cell:e=>(0,l.jsx)(g.Cy,{time:e.getValue()}),header:e=>(0,l.jsx)(c.Rr,{value:"When",...e})}),a.display({id:"actions",cell:e=>(0,l.jsx)(f.Z,{resource:e.row.original}),header:"Actions",size:235,meta:{disableRowClick:!0}})]}:{columns:[]}},C=a(14908);(i=t||(t={})).ACTION_REQUIRED="action-required",i.IN_PROGRESS="in-progress",i.UNMONITORED="unmonitored";let _={"action-required":{label:"Action Required",key:"action-required",filters:[p.LL.CLASSIFICATION_ADDITION,p.LL.CLASSIFICATION_UPDATE],childFilters:[p.LL.CLASSIFICATION_ADDITION,p.LL.CLASSIFICATION_UPDATE]},"in-progress":{label:"In progress",key:"in-progress",filters:[p.LL.CLASSIFYING,p.LL.CLASSIFICATION_QUEUED],childFilters:[p.LL.CLASSIFYING,p.LL.CLASSIFICATION_QUEUED]},unmonitored:{label:"Unmonitored",key:"unmonitored",filters:[p.LL.MUTED],childFilters:[]}};var L=()=>{var e,s;let{activeTab:a,onTabChange:i}=(0,C.Z)({tabKeys:Object.values(t)});return{filterTabs:Object.values(_),activeTab:a,onTabChange:i,activeDiffFilters:null===(e=_[a])||void 0===e?void 0:e.filters,activeChildDiffFilters:null===(s=_[a])||void 0===s?void 0:s.childFilters}},b=a(47182),w=a(38347),S=a(79494),A=e=>{let{resourceUrn:s}=e,[a,{isLoading:i}]=(0,u.Hf)(),[t,{isLoading:r}]=(0,u.zV)(),n=i||r,d=async e=>{await t({staged_resource_urns:e})},c=async e=>{await a({staged_resource_urns:e})};return(0,l.jsx)(o.jqI,{"data-testid":"bulk-actions-menu",children:(0,l.jsxs)("div",{className:"flex gap-2",children:[(0,l.jsx)(S.Z,{title:"Confirm all",icon:(0,l.jsx)(o.nQG,{}),onClick:()=>c([s]),disabled:n,loading:i,type:"primary",size:"middle"}),(0,l.jsx)(S.Z,{title:"Ignore all",icon:(0,l.jsx)(o.tpL,{}),onClick:()=>d([s]),disabled:n,loading:r,size:"middle"})]})})},R=e=>{let{selectedUrns:s}=e,[a,{isLoading:i}]=(0,u.Hf)(),[t,{isLoading:r}]=(0,u.zV)(),n=i||r,d=async e=>{await a({staged_resource_urns:e})},c=async e=>{await t({staged_resource_urns:e})};return s.length?(0,l.jsxs)(o.jqI,{className:"items-center","data-testid":"bulk-actions-menu",children:[(0,l.jsx)(o.xvT,{fontSize:"xs",fontWeight:"semibold",minW:16,mr:4,children:"".concat(s.length," selected")}),(0,l.jsxs)(o.jqI,{className:"gap-2",children:[(0,l.jsx)(S.Z,{title:"Confirm",icon:(0,l.jsx)(o.nQG,{}),onClick:()=>d(s),disabled:n,loading:i,type:"primary",size:"middle"}),(0,l.jsx)(S.Z,{title:"Ignore",icon:(0,l.jsx)(o.tpL,{}),disabled:n,loading:r,onClick:()=>c(s),size:"middle"})]})]}):null},T=a(7940),D=a(80285),k=a(36168),N=a(30952);let Z={items:[],total:0,page:1,size:50,pages:1},F=()=>(0,l.jsx)(o.gCW,{mt:6,p:10,spacing:4,borderRadius:"base",maxW:"70%","data-testid":"empty-state",alignSelf:"center",margin:"auto",children:(0,l.jsxs)(o.gCW,{children:[(0,l.jsx)(o.xvT,{fontSize:"md",fontWeight:"600",children:"No activity found"}),(0,l.jsx)(o.xvT,{fontSize:"sm",children:"You're up to date!"})]})});var E=e=>{let{resourceUrn:s}=e,[a,i]=(0,d.useState)(""),{filterTabs:t,activeTab:g,onTabChange:x,activeDiffFilters:h,activeChildDiffFilters:j}=L(),[m,f]=(0,d.useState)({}),{PAGE_SIZES:v,pageSize:y,setPageSize:C,onPreviousPageClick:_,isPreviousPageDisabled:S,onNextPageClick:E,isNextPageDisabled:P,startRange:z,endRange:O,pageIndex:G,setTotalPages:U,resetPageIndexToDefault:M}=(0,c.oi)();(0,d.useEffect)(()=>{M()},[s,a,M,h,j]);let{isFetching:V,isLoading:q,data:$}=(0,u.z8)({staged_resource_urn:s,page:G,size:y,child_diff_status:j,diff_status:h,search:a}),W=(0,T.G)(null==$?void 0:$.items[0]),{items:H,total:Q,pages:J}=(0,d.useMemo)(()=>null!=$?$:Z,[$]);(0,d.useEffect)(()=>{U(J)},[J,U]);let{columns:Y}=I({resourceType:W}),B=(0,d.useMemo)(()=>Y,[Y]),{navigateToDiscoveryResults:K}=(0,b.Z)(),X=(0,r.b7)({getCoreRowModel:(0,n.sC)(),getGroupedRowModel:(0,n.qe)(),getExpandedRowModel:(0,n.rV)(),columns:B,manualPagination:!0,onRowSelectionChange:f,state:{rowSelection:m},getRowId:D.Z,data:H,columnResizeMode:"onChange"}),ee=Object.keys(m).filter(e=>m[e]);return q?(0,l.jsx)(c.I4,{rowHeight:36,numRows:36}):(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(o.A5g,{items:t.map(e=>({key:e.key,label:e.label})),activeKey:g,onChange:e=>x(e)}),(0,l.jsxs)(c.Q$,{children:[(0,l.jsxs)(o.kCb,{gap:6,align:"center",children:[(0,l.jsx)(o.xuv,{flexShrink:0,children:(0,l.jsx)(N.f,{value:a,onChange:i})}),(0,l.jsx)(w.Z,{})]}),W===p.D$.TABLE&&!!ee.length&&(0,l.jsx)(R,{selectedUrns:ee}),W===p.D$.FIELD&&"unmonitored"!==g&&(0,l.jsx)(A,{resourceUrn:s})]}),(0,l.jsx)(c.ZK,{tableInstance:X,onRowClick:e=>K({resourceUrn:e.urn,filterTab:g}),getRowIsClickable:e=>W!==p.D$.FIELD||(0,k.Z)(e),emptyTableNotice:(0,l.jsx)(F,{})}),(0,l.jsx)(c.s8,{totalRows:Q||0,pageSizes:v,setPageSize:C,onPreviousPageClick:_,isPreviousPageDisabled:S||V,onNextPageClick:E,isNextPageDisabled:P||V,startRange:z,endRange:O})]})}},91761:function(e,s,a){var i=a(24246),t=a(27824),l=a(812),r=a(14047),n=a(7940),o=a(98559),d=a(54682),c=a(79494),u=a(70675);s.Z=e=>{let{resource:s}=e,[a,{isLoading:g}]=(0,u.v8)(),[x,{isLoading:h}]=(0,u.cM)(),[j,{isLoading:m}]=(0,u.vi)(),p=h||m||g,{diff_status:f,child_diff_statuses:v,top_level_field_name:y}=s,{successAlert:I,errorAlert:C}=(0,r.V)(),_=f===d.LL.CLASSIFICATION_ADDITION||f===d.LL.CLASSIFICATION_UPDATE,L=v&&(v[d.LL.CLASSIFICATION_ADDITION]||v[d.LL.CLASSIFICATION_UPDATE]),b=(_||L)&&!y,w=_||L,S=(0,n.G)(s)!==d.D$.FIELD,A=b&&w&&S,R=async()=>{let e=await x({staged_resource_urn:s.urn});(0,l.D4)(e)?C((0,l.e$)(e.error),"Failed to promote resource"):I('These changes have been added to a Fides dataset. To view, navigate to "Manage datasets".',"Table changes confirmed")},T=async()=>{let e=await j({staged_resource_urn:s.urn});(0,l.D4)(e)?C((0,l.e$)(e.error),"Failed to mute resource"):I("Ignored changes will not be added to a Fides dataset.","".concat(s.name||"Changes"," ignored"))},D=async()=>{let e=await a({staged_resource_urn:s.urn,monitor_config_id:s.monitor_config_id,start_classification:!0,diff_statuses_to_classify:[d.LL.CLASSIFICATION_ADDITION,d.LL.CLASSIFICATION_UPDATE,d.LL.CLASSIFYING,d.LL.CLASSIFICATION_QUEUED]});(0,l.D4)(e)?C((0,l.e$)(e.error),"Failed to reclassify resource"):I("Reclassification of ".concat((0,o.Z)(s)||"the resource"," has begun. The results may take some time to appear in the “Data discovery“ tab."),"Reclassification started")};return(0,i.jsxs)(t.Ugi,{gap:2,children:[b&&(0,i.jsx)(c.Z,{title:"Confirm",icon:(0,i.jsx)(t.nQG,{}),onClick:R,disabled:p,loading:h}),w&&(0,i.jsx)(c.Z,{title:"Ignore",icon:(0,i.jsx)(t.tpL,{}),onClick:T,disabled:p,loading:m}),S&&!A&&(0,i.jsx)(c.Z,{title:"Reclassify",icon:(0,i.jsx)(t.nyI,{}),onClick:D,disabled:p,loading:g}),A&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(t.LZC,{}),(0,i.jsxs)(t.v2r,{children:[(0,i.jsx)(t.j2t,{as:t.wpx,size:"small",type:"text",icon:(0,i.jsx)(t.nXP,{transform:"rotate(90deg)"}),className:"w-6 gap-0","data-testid":"actions-overflow-btn"}),(0,i.jsx)(t.qyq,{children:(0,i.jsx)(t.sNh,{onClick:D,icon:(0,i.jsx)(t.nyI,{}),"data-testid":"action-reclassify",children:"Reclassify"})})]})]})]})}},61099:function(e,s,a){var i=a(24246),t=a(27824),l=a(27378),r=a(12627),n=a(34929),o=a(26183),d=a(70675);s.Z=e=>{var s,a,c;let{resource:u}=e,[g,x]=(0,l.useState)(!1),{getDataCategoryDisplayName:h}=(0,n.Z)(),[j]=(0,d.NA)(),m=(null===(s=u.classifications)||void 0===s?void 0:s.length)?u.classifications[0].label:null,p=null!==(c=u.user_assigned_data_categories)&&void 0!==c?c:[],f=!m&&!(null==p?void 0:p.length),v=null===(a=u.sub_field_urns)||void 0===a?void 0:a.length,y=e=>{j({staged_resource_urn:u.urn,monitor_config_id:u.monitor_config_id,user_assigned_data_categories:[...p,e]})},I=e=>{var s;j({staged_resource_urn:u.urn,monitor_config_id:u.monitor_config_id,user_assigned_data_categories:null!==(s=null==p?void 0:p.filter(s=>s!==e))&&void 0!==s?s:[]})},C=!g&&!!p.length,_=!g&&!!m&&!p.length;return(0,i.jsxs)(o.Z,{"data-testid":"edit-category-cell",children:[f&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(t.j8w,{"data-testid":"no-classifications",color:"white",children:"None"}),!v&&(0,i.jsx)(t.j8w,{onClick:()=>x(!0),addable:!0,"data-testid":"taxonomy-add-btn","aria-label":"Add category"})]}),C&&(0,i.jsxs)(i.Fragment,{children:[p.map(e=>(0,i.jsx)(t.j8w,{"data-testid":"user-classification-".concat(e),color:"white",closable:!0,onClose:()=>I(e),closeButtonLabel:"Remove category",children:h(e)},e)),(0,i.jsx)(t.j8w,{onClick:()=>x(!0),addable:!0,"data-testid":"taxonomy-add-btn","aria-label":"Add category"})]}),_&&(0,i.jsxs)(t.j8w,{onClick:()=>x(!0),color:"white","data-testid":"classification-".concat(m),hasSparkle:!0,children:[h(m),(0,i.jsx)(t.PJP.I8b,{size:10})]}),g&&(0,i.jsx)(t.xuv,{className:"select-wrapper",position:"absolute",zIndex:10,top:"0",left:"0",width:"100%",height:"max",bgColor:"#fff",children:(0,i.jsx)(r.Z,{selectedTaxonomies:p,onChange:e=>{x(!1),y(e)},onBlur:()=>x(!1),open:!0})})]})}},79947:function(e,s,a){var i=a(24246),t=a(27824);s.Z=e=>{let{type:s}=e;return(0,i.jsx)(t.kCb,{align:"center",h:"full",children:!!s&&(0,i.jsx)(t.j8w,{children:s})})}}}]);
@@ -1 +1 @@
1
- "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9226],{624:function(e,t,n){var i=n(24246),l=n(13577),r=n(27378);let a=e=>{let t=e.split("."),n=[];return t.forEach(e=>{let t=n.length>0?n[n.length-1]:null;t?n.push("".concat(t,".").concat(e)):n.push(e)}),n},s=(e,t)=>{let n=a(t).filter(e=>e!==t);return e.filter(e=>n.includes(e)).length>0},o=(e,t)=>!!(e===t||e.startsWith("".concat(t,"."))),c=(e,t,n)=>{let i=null!=n?n:[];return e.forEach(e=>{e.children&&c(e.children,t,i),o(e.value,t)&&i.push(e)}),i},d=e=>{let{node:t,isChecked:n,onChecked:r,isExpanded:a,onExpanded:s,isIndeterminate:o,isDisabled:c,children:d}=e,{value:u,label:h}=t,x=!!t.children&&t.children.length>0;return(0,i.jsxs)(l.xuv,{children:[(0,i.jsxs)(l.xuv,{display:"flex",justifyContent:"space-between",_hover:{backgroundColor:"gray.100",cursor:"pointer"},onClick:()=>s(t),minHeight:8,children:[(0,i.jsx)(l.XZJ,{colorScheme:"complimentary",value:u,isChecked:!o&&n,isIndeterminate:o,isDisabled:c,onChange:()=>r(t),mx:2,"data-testid":"checkbox-".concat(h),children:h}),x?(0,i.jsx)(l.wpx,{"data-testid":"expand-".concat(h),"aria-label":a?"collapse":"expand",icon:(0,i.jsx)(l.v4q,{boxSize:5}),type:"text",onClick:()=>s(t),className:a?"rotate-180":void 0}):null]}),d&&(0,i.jsx)(l.xuv,{ml:5,children:d})]})};t.ZP=e=>{let{nodes:t,selected:n,onSelected:u,...h}=e,[x,f]=(0,r.useState)([]),[p,C]=(0,r.useState)([]);(0,r.useEffect)(()=>{let e=Array.from(new Set([...n.map(e=>a(e)).reduce((e,t)=>e.concat(t),[]),...n.map(e=>c(t,e)).reduce((e,t)=>e.concat(t),[]).map(e=>e.value)]));C(e),f(e)},[n,t]);let m=e=>{let i=[],l=[];x.indexOf(e.value)>=0?(i=x.filter(t=>!o(t,e.value)),l=n.filter(t=>!o(t,e.value))):(i=[...x,...c(t,e.value).map(e=>e.value)],l=[...n,e.value]),f(i),u(l)},j=e=>{p.indexOf(e.value)>=0?C(p.filter(t=>!o(t,e.value))):C([...p,e.value])},v=e=>{if(e.children){let l=x.indexOf(e.value)>=0,a=p.indexOf(e.value)>=0,o=c(t,e.value),u=l&&e.children.length>0&&x.filter(t=>t.startsWith("".concat(e.value,"."))).length+1!==o.length,h=s(n,e.value);return(0,i.jsx)(d,{node:e,isChecked:l,onChecked:m,isExpanded:a,onExpanded:j,isDisabled:h,isIndeterminate:u,children:a?e.children.map(e=>(0,i.jsx)(r.Fragment,{children:v(e)},e.value)):void 0})}return null};return(0,i.jsx)(l.xuv,{...h,children:t.map(e=>(0,i.jsx)(l.xuv,{children:v(e)},e.value))})}},79806:function(e,t,n){n.d(t,{Gn:function(){return s},zR:function(){return a}});var i=n(24246),l=n(13577),r=n(56358);let a=e=>{let{title:t}=e;return(0,i.jsx)(l.OXI,{py:0,display:"flex",alignItems:"flex-start",children:(0,i.jsx)(l.xvT,{mr:"2",color:"gray.700",fontSize:"lg",lineHeight:1.8,children:t})})},s=e=>{let{onDelete:t,onEditYaml:n,formId:a,isSaving:s}=e;return(0,i.jsxs)(l.zeN,{justifyContent:"space-between",children:[t?(0,i.jsx)(l.wpx,{"aria-label":"delete",icon:(0,i.jsx)(r.q,{fontSize:"small"}),onClick:t,"data-testid":"delete-btn"}):null,(0,i.jsxs)("div",{className:"flex gap-2",children:[n&&(0,i.jsx)(l.wpx,{onClick:n,"data-testid":"edit-yaml-btn",children:"Edit YAML"}),(0,i.jsx)(l.wpx,{htmlType:"submit",type:"primary","data-testid":"save-btn",form:a,loading:s,children:"Save"})]})]})};t.ZP=e=>{let{header:t,description:n,isOpen:r,onClose:a,children:s,footer:o}=e;return(0,i.jsxs)(l.dys,{placement:"right",isOpen:r,onClose:a,size:"md",children:[(0,i.jsx)(l.P1B,{}),(0,i.jsxs)(l.scA,{"data-testid":"edit-drawer-content",py:2,children:[(0,i.jsxs)(l.xuv,{display:"flex",justifyContent:"space-between",alignItems:"top",mr:2,py:2,gap:2,children:[(0,i.jsx)(l.xuv,{flex:1,minH:8,children:t}),(0,i.jsx)(l.xuv,{display:"flex",justifyContent:"flex-end",mr:2,children:(0,i.jsx)(l.wpx,{"aria-label":"Close editor",onClick:a,"data-testid":"close-drawer-btn",icon:(0,i.jsx)(l.Two,{fontSize:"smaller"})})})]}),(0,i.jsxs)(l.Ng0,{pt:1,children:[n?(0,i.jsx)(l.xvT,{fontSize:"sm",mb:4,color:"gray.600",children:n}):null,s]}),o]})]})}},56358:function(e,t,n){n.d(t,{q:function(){return l}});var i=n(24246);let l=(0,n(13577).IUT)({displayName:"TrashCanOutlineIcon",viewBox:"0 0 11 12",path:(0,i.jsx)("path",{d:"M4.5166 1.60859L4.1084 2.21875H7.22363L6.81543 1.60859C6.7832 1.56133 6.72949 1.53125 6.67148 1.53125H4.6584C4.60039 1.53125 4.54668 1.55918 4.51445 1.60859H4.5166ZM7.6748 1.03711L8.46328 2.21875H8.75977H9.79102H9.96289C10.2486 2.21875 10.4785 2.44863 10.4785 2.73438C10.4785 3.02012 10.2486 3.25 9.96289 3.25H9.79102V9.78125C9.79102 10.7309 9.02188 11.5 8.07227 11.5H3.25977C2.31016 11.5 1.54102 10.7309 1.54102 9.78125V3.25H1.36914C1.0834 3.25 0.853516 3.02012 0.853516 2.73438C0.853516 2.44863 1.0834 2.21875 1.36914 2.21875H1.54102H2.57227H2.86875L3.65723 1.03496C3.88066 0.701953 4.25664 0.5 4.6584 0.5H6.67148C7.07324 0.5 7.44922 0.701953 7.67266 1.03496L7.6748 1.03711ZM2.57227 3.25V9.78125C2.57227 10.1615 2.87949 10.4688 3.25977 10.4688H8.07227C8.45254 10.4688 8.75977 10.1615 8.75977 9.78125V3.25H2.57227ZM4.29102 4.625V9.09375C4.29102 9.28281 4.13633 9.4375 3.94727 9.4375C3.7582 9.4375 3.60352 9.28281 3.60352 9.09375V4.625C3.60352 4.43594 3.7582 4.28125 3.94727 4.28125C4.13633 4.28125 4.29102 4.43594 4.29102 4.625ZM6.00977 4.625V9.09375C6.00977 9.28281 5.85508 9.4375 5.66602 9.4375C5.47695 9.4375 5.32227 9.28281 5.32227 9.09375V4.625C5.32227 4.43594 5.47695 4.28125 5.66602 4.28125C5.85508 4.28125 6.00977 4.43594 6.00977 4.625ZM7.72852 4.625V9.09375C7.72852 9.28281 7.57383 9.4375 7.38477 9.4375C7.1957 9.4375 7.04102 9.28281 7.04102 9.09375V4.625C7.04102 4.43594 7.1957 4.28125 7.38477 4.28125C7.57383 4.28125 7.72852 4.43594 7.72852 4.625Z",fill:"currentColor"})})},77213:function(e,t,n){n.d(t,{Z:function(){return h}});var i=n(24246),l=n(13577),r=n(88038),a=n.n(r),s=n(86677);n(27378);var o=n(25980),c=n(90867),d=n(77830),u=()=>{let e=(0,s.useRouter)();return(0,i.jsx)(l.xuv,{bg:"gray.50",border:"1px solid",borderColor:"blue.400",borderRadius:"md",justifyContent:"space-between",p:5,mb:5,mt:5,children:(0,i.jsxs)(l.xuv,{children:[(0,i.jsxs)(l.Kqy,{direction:{base:"column",sm:"row"},justifyContent:"space-between",children:[(0,i.jsx)(l.xvT,{fontWeight:"semibold",children:"Configure your storage and messaging provider"}),(0,i.jsx)(l.wpx,{onClick:()=>{e.push(d.fz)},children:"Configure"})]}),(0,i.jsxs)(l.xvT,{children:["Before Fides can process your privacy requests we need two simple steps to configure your storage and email client."," "]})]})})},h=e=>{let{children:t,title:n,padded:r=!0,mainProps:d}=e,h=(0,o.hz)(),x=(0,s.useRouter)(),f="/privacy-requests"===x.pathname||"/datastore-connection"===x.pathname,p=!(h.flags.privacyRequestsConfiguration&&f),{data:C}=(0,c.JE)(void 0,{skip:p}),{data:m}=(0,c.PW)(void 0,{skip:p}),j=h.flags.privacyRequestsConfiguration&&(!C||!m)&&f;return(0,i.jsxs)(l.kCb,{"data-testid":n,direction:"column",h:"100vh",children:[(0,i.jsxs)(a(),{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)(l.kCb,{as:"main",direction:"column",py:r?6:0,px:r?10:0,h:r?"calc(100% - 48px)":"full",flex:1,minWidth:0,overflow:"auto",...d,children:[j?(0,i.jsx)(u,{}):null,t]})]})}},69828:function(e,t,n){n.d(t,{Y:function(){return a}});var i=n(24246),l=n(13577),r=n(70788);let a=[(0,i.jsx)(l.PJP.S9g,{},"layers"),(0,i.jsx)(l.PJP.ehp,{},"dataset"),(0,i.jsx)(l.PJP.iA_,{},"table"),(0,i.jsx)(l.PJP.$4y,{style:{transform:"rotate(-90deg)"}},"field")];t.Z=e=>{let{resourceUrn:t,parentLink:n,onPathClick:l=()=>{}}=e,s=[];if(t||s.push({title:"All activity"}),t){s.push({title:"All activity",href:n});let e=t.split(".");e.forEach((t,n)=>{0!==n&&s.push({title:t,icon:a[n-1],onClick:t=>{t.preventDefault(),l(e.slice(0,n+1).join("."))}})})}return(0,i.jsx)(r.m,{"data-testid":"results-breadcrumb",items:s})}},63927:function(e,t,n){n.d(t,{e:function(){return C},Z:function(){return m}});var i=n(24246),l=n(13577),r=n(34090),a=n(27378),s=n(16125),o=n(40324),c=n(39864),d=n(56026),u=n(46238),h=n(624),x=n(90673),f=e=>{let{dataCategories:t,checked:n,onChecked:r,buttonLabel:s}=e,o=(0,a.useMemo)(()=>(0,x.Cd)(t),[t]);return(0,i.jsxs)(l.v2r,{closeOnSelect:!0,children:[(0,i.jsx)(l.j2t,{as:l.wpx,icon:(0,i.jsx)(l.mCO,{}),className:"!bg-transparent",block:!0,"data-testid":"data-category-dropdown",children:null!=s?s:"Select data categories"}),(0,i.jsx)(l.qyq,{children:(0,i.jsxs)(l.xuv,{maxHeight:"50vh",minWidth:"300px",maxW:"full",overflowY:"scroll",children:[(0,i.jsxs)(l.xuv,{position:"sticky",top:0,zIndex:1,backgroundColor:"white",pt:1,children:[(0,i.jsx)(l.__7,{children:(0,i.jsxs)(l.xuv,{display:"flex",justifyContent:"space-between",px:2,mb:2,children:[(0,i.jsx)(l.sNh,{as:l.wpx,size:"small",className:"mr-2 !w-auto",onClick:()=>r([]),closeOnSelect:!1,"data-testid":"data-category-clear-btn",children:"Clear"}),(0,i.jsx)(l.xvT,{mr:2,children:"Data Categories"}),(0,i.jsx)(l.sNh,{as:l.wpx,size:"small",className:"!w-auto","data-testid":"data-category-done-btn",children:"Done"})]})}),(0,i.jsx)(l.RaW,{})]}),(0,i.jsx)(l.xuv,{px:2,"data-testid":"data-category-checkbox-tree",children:(0,i.jsx)(h.ZP,{nodes:o,selected:n,onSelected:r})})]})})]})},p=e=>{let{dataCategories:t,checked:n,onChecked:r,tooltip:a}=e,s=e=>{r(n.filter(t=>t!==e))},o=n.slice().sort((e,t)=>e.localeCompare(t));return(0,i.jsxs)(l.rjZ,{templateColumns:"1fr 3fr",children:[(0,i.jsx)(l.lXp,{children:"Data Categories"}),(0,i.jsxs)(l.vyj,{direction:"vertical",size:"small",children:[(0,i.jsxs)(l.xuv,{display:"flex",alignItems:"center",children:[(0,i.jsx)(l.xuv,{mr:"2",width:"100%",children:(0,i.jsx)(f,{dataCategories:t,checked:n,onChecked:r})}),(0,i.jsx)(u.b,{label:a})]}),(0,i.jsx)(l.vyj,{direction:"vertical",size:2,"data-testid":"selected-categories",children:o.map(e=>(0,i.jsx)(l.j8w,{closable:!0,onClose:()=>{s(e)},children:e},e))})]})]})};let C="edit-collection-or-field-form";var m=e=>{var t;let{values:n,onSubmit:u,dataType:h,showDataCategories:x=!0}=e,f={description:null!==(t=n.description)&&void 0!==t?t:"",data_categories:n.data_categories},m=(0,s.v9)(c.qb).filter(e=>e.active),[j,v]=(0,a.useState)(f.data_categories||[]),A="collection"===h?d.du.description.tooltip:d.QL.description.tooltip,y="collection"===h?d.du.data_categories.tooltip:d.QL.data_categories.tooltip;return(0,i.jsx)(r.J9,{initialValues:f,onSubmit:e=>{u({...e,data_categories:j})},children:(0,i.jsx)(r.l0,{id:C,children:(0,i.jsxs)(l.Kqy,{children:[(0,i.jsx)(o.j0,{name:"description",label:"Description",tooltip:A,"data-testid":"description-input"}),x&&(0,i.jsx)(p,{dataCategories:m,checked:j,onChecked:v,tooltip:y})]})})})}},56026:function(e,t,n){n.d(t,{QL:function(){return r},du:function(){return l},tz:function(){return i}});let i={name:{tooltip:"A UI-friendly label for the Dataset."},description:{tooltip:"A human-readable description of the Dataset."},data_categories:{tooltip:"Arrays of Data Category resources, identified by fides_key, that apply to all collections in the Dataset."}},l={description:{tooltip:"A human-readable description of the collection."},data_categories:{tooltip:"Arrays of Data Category resources, identified by fides_key, that apply to all fields in the collection."}},r={description:{tooltip:"A human-readable description of the field."},data_categories:{tooltip:"Arrays of Data Category resources, identified by fides_key, that apply to this field."}}},69435:function(e,t,n){n.d(t,{Fk:function(){return c},_n:function(){return s},jC:function(){return r},qe:function(){return o}});var i=n(99729),l=n.n(i);let r=(e,t,n)=>{let i=e.collections.map((e,i)=>i===n?t:e);return{...e,collections:i}},a=(e,t,n)=>{let i=e.fields.map((e,i)=>i===n?t:e);return{...e,fields:i}},s=(e,t,n,i)=>{let l=a(e.collections[n],t,i);return r(e,l,n)},o=(e,t)=>{let n=e.collections.filter((e,n)=>n!==t);return{...e,collections:n}},c=e=>{let{dataset:t,collectionName:n,subfields:i}=e,r="",a=t.collections.findIndex(e=>e.name===n);return r+="collections[".concat(a,"]"),i&&i.forEach(e=>{let n=l()(t,r).fields.findIndex(t=>t.name===e);r+=".fields[".concat(n,"]")}),r}},59001:function(e,t,n){n.d(t,{Ch:function(){return a},Hy:function(){return s},Lo:function(){return l}});var i,l,r=n(54682);let a="root";(i=l||(l={})).DATA_CATEGORIES="Data categories",i.DATA_USES="Data uses",i.DATA_SUBJECTS="Data subjects";let s=e=>{switch(e){case"Data categories":return{UPDATE:r.Sh.DATA_CATEGORY_UPDATE,CREATE:r.Sh.DATA_CATEGORY_CREATE,DELETE:r.Sh.DATA_CATEGORY_DELETE,READ:r.Sh.DATA_CATEGORY_READ};case"Data uses":return{UPDATE:r.Sh.DATA_USE_UPDATE,CREATE:r.Sh.DATA_USE_CREATE,DELETE:r.Sh.DATA_USE_DELETE,READ:r.Sh.DATA_USE_READ};case"Data subjects":return{UPDATE:r.Sh.DATA_SUBJECT_UPDATE,CREATE:r.Sh.DATA_SUBJECT_CREATE,DELETE:r.Sh.DATA_SUBJECT_DELETE,READ:r.Sh.DATA_SUBJECT_READ};default:throw Error("Unknown taxonomy type: ".concat(e))}}},90673:function(e,t,n){n.d(t,{Cd:function(){return r},Xl:function(){return a}});var i=n(54682),l=n(59001);let r=(e,t)=>{let n;if(null==t&&e.every(e=>void 0===e.parent_key))n=e;else{let i=null!=t?t:null;n=e.filter(e=>e.parent_key===i)}return n.map(t=>{var n,i;let l=t.fides_key;return{value:t.fides_key,label:""===t.name||null==t.name?t.fides_key:t.name,description:t.description,children:r(e,l),is_default:null!==(n=t.is_default)&&void 0!==n&&n,active:null!==(i=t.active)&&void 0!==i&&i}})},a=e=>{switch(e){case l.Lo.DATA_CATEGORIES:return i.P6.DATA_CATEGORY;case l.Lo.DATA_SUBJECTS:return i.P6.DATA_SUBJECT;case l.Lo.DATA_USES:return i.P6.DATA_USE;default:return}}}}]);
1
+ "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9226],{624:function(e,t,n){var i=n(24246),l=n(27824),r=n(27378);let a=e=>{let t=e.split("."),n=[];return t.forEach(e=>{let t=n.length>0?n[n.length-1]:null;t?n.push("".concat(t,".").concat(e)):n.push(e)}),n},s=(e,t)=>{let n=a(t).filter(e=>e!==t);return e.filter(e=>n.includes(e)).length>0},o=(e,t)=>!!(e===t||e.startsWith("".concat(t,"."))),c=(e,t,n)=>{let i=null!=n?n:[];return e.forEach(e=>{e.children&&c(e.children,t,i),o(e.value,t)&&i.push(e)}),i},d=e=>{let{node:t,isChecked:n,onChecked:r,isExpanded:a,onExpanded:s,isIndeterminate:o,isDisabled:c,children:d}=e,{value:u,label:h}=t,x=!!t.children&&t.children.length>0;return(0,i.jsxs)(l.xuv,{children:[(0,i.jsxs)(l.xuv,{display:"flex",justifyContent:"space-between",_hover:{backgroundColor:"gray.100",cursor:"pointer"},onClick:()=>s(t),minHeight:8,children:[(0,i.jsx)(l.XZJ,{colorScheme:"complimentary",value:u,isChecked:!o&&n,isIndeterminate:o,isDisabled:c,onChange:()=>r(t),mx:2,"data-testid":"checkbox-".concat(h),children:h}),x?(0,i.jsx)(l.wpx,{"data-testid":"expand-".concat(h),"aria-label":a?"collapse":"expand",icon:(0,i.jsx)(l.v4q,{boxSize:5}),type:"text",onClick:()=>s(t),className:a?"rotate-180":void 0}):null]}),d&&(0,i.jsx)(l.xuv,{ml:5,children:d})]})};t.ZP=e=>{let{nodes:t,selected:n,onSelected:u,...h}=e,[x,f]=(0,r.useState)([]),[p,C]=(0,r.useState)([]);(0,r.useEffect)(()=>{let e=Array.from(new Set([...n.map(e=>a(e)).reduce((e,t)=>e.concat(t),[]),...n.map(e=>c(t,e)).reduce((e,t)=>e.concat(t),[]).map(e=>e.value)]));C(e),f(e)},[n,t]);let m=e=>{let i=[],l=[];x.indexOf(e.value)>=0?(i=x.filter(t=>!o(t,e.value)),l=n.filter(t=>!o(t,e.value))):(i=[...x,...c(t,e.value).map(e=>e.value)],l=[...n,e.value]),f(i),u(l)},j=e=>{p.indexOf(e.value)>=0?C(p.filter(t=>!o(t,e.value))):C([...p,e.value])},v=e=>{if(e.children){let l=x.indexOf(e.value)>=0,a=p.indexOf(e.value)>=0,o=c(t,e.value),u=l&&e.children.length>0&&x.filter(t=>t.startsWith("".concat(e.value,"."))).length+1!==o.length,h=s(n,e.value);return(0,i.jsx)(d,{node:e,isChecked:l,onChecked:m,isExpanded:a,onExpanded:j,isDisabled:h,isIndeterminate:u,children:a?e.children.map(e=>(0,i.jsx)(r.Fragment,{children:v(e)},e.value)):void 0})}return null};return(0,i.jsx)(l.xuv,{...h,children:t.map(e=>(0,i.jsx)(l.xuv,{children:v(e)},e.value))})}},79806:function(e,t,n){n.d(t,{Gn:function(){return s},zR:function(){return a}});var i=n(24246),l=n(27824),r=n(56358);let a=e=>{let{title:t}=e;return(0,i.jsx)(l.OXI,{py:0,display:"flex",alignItems:"flex-start",children:(0,i.jsx)(l.xvT,{mr:"2",color:"gray.700",fontSize:"lg",lineHeight:1.8,children:t})})},s=e=>{let{onDelete:t,onEditYaml:n,formId:a,isSaving:s}=e;return(0,i.jsxs)(l.zeN,{justifyContent:"space-between",children:[t?(0,i.jsx)(l.wpx,{"aria-label":"delete",icon:(0,i.jsx)(r.q,{fontSize:"small"}),onClick:t,"data-testid":"delete-btn"}):null,(0,i.jsxs)("div",{className:"flex gap-2",children:[n&&(0,i.jsx)(l.wpx,{onClick:n,"data-testid":"edit-yaml-btn",children:"Edit YAML"}),(0,i.jsx)(l.wpx,{htmlType:"submit",type:"primary","data-testid":"save-btn",form:a,loading:s,children:"Save"})]})]})};t.ZP=e=>{let{header:t,description:n,isOpen:r,onClose:a,children:s,footer:o}=e;return(0,i.jsxs)(l.dys,{placement:"right",isOpen:r,onClose:a,size:"md",children:[(0,i.jsx)(l.P1B,{}),(0,i.jsxs)(l.scA,{"data-testid":"edit-drawer-content",py:2,children:[(0,i.jsxs)(l.xuv,{display:"flex",justifyContent:"space-between",alignItems:"top",mr:2,py:2,gap:2,children:[(0,i.jsx)(l.xuv,{flex:1,minH:8,children:t}),(0,i.jsx)(l.xuv,{display:"flex",justifyContent:"flex-end",mr:2,children:(0,i.jsx)(l.wpx,{"aria-label":"Close editor",onClick:a,"data-testid":"close-drawer-btn",icon:(0,i.jsx)(l.Two,{fontSize:"smaller"})})})]}),(0,i.jsxs)(l.Ng0,{pt:1,children:[n?(0,i.jsx)(l.xvT,{fontSize:"sm",mb:4,color:"gray.600",children:n}):null,s]}),o]})]})}},56358:function(e,t,n){n.d(t,{q:function(){return l}});var i=n(24246);let l=(0,n(27824).IUT)({displayName:"TrashCanOutlineIcon",viewBox:"0 0 11 12",path:(0,i.jsx)("path",{d:"M4.5166 1.60859L4.1084 2.21875H7.22363L6.81543 1.60859C6.7832 1.56133 6.72949 1.53125 6.67148 1.53125H4.6584C4.60039 1.53125 4.54668 1.55918 4.51445 1.60859H4.5166ZM7.6748 1.03711L8.46328 2.21875H8.75977H9.79102H9.96289C10.2486 2.21875 10.4785 2.44863 10.4785 2.73438C10.4785 3.02012 10.2486 3.25 9.96289 3.25H9.79102V9.78125C9.79102 10.7309 9.02188 11.5 8.07227 11.5H3.25977C2.31016 11.5 1.54102 10.7309 1.54102 9.78125V3.25H1.36914C1.0834 3.25 0.853516 3.02012 0.853516 2.73438C0.853516 2.44863 1.0834 2.21875 1.36914 2.21875H1.54102H2.57227H2.86875L3.65723 1.03496C3.88066 0.701953 4.25664 0.5 4.6584 0.5H6.67148C7.07324 0.5 7.44922 0.701953 7.67266 1.03496L7.6748 1.03711ZM2.57227 3.25V9.78125C2.57227 10.1615 2.87949 10.4688 3.25977 10.4688H8.07227C8.45254 10.4688 8.75977 10.1615 8.75977 9.78125V3.25H2.57227ZM4.29102 4.625V9.09375C4.29102 9.28281 4.13633 9.4375 3.94727 9.4375C3.7582 9.4375 3.60352 9.28281 3.60352 9.09375V4.625C3.60352 4.43594 3.7582 4.28125 3.94727 4.28125C4.13633 4.28125 4.29102 4.43594 4.29102 4.625ZM6.00977 4.625V9.09375C6.00977 9.28281 5.85508 9.4375 5.66602 9.4375C5.47695 9.4375 5.32227 9.28281 5.32227 9.09375V4.625C5.32227 4.43594 5.47695 4.28125 5.66602 4.28125C5.85508 4.28125 6.00977 4.43594 6.00977 4.625ZM7.72852 4.625V9.09375C7.72852 9.28281 7.57383 9.4375 7.38477 9.4375C7.1957 9.4375 7.04102 9.28281 7.04102 9.09375V4.625C7.04102 4.43594 7.1957 4.28125 7.38477 4.28125C7.57383 4.28125 7.72852 4.43594 7.72852 4.625Z",fill:"currentColor"})})},77213:function(e,t,n){n.d(t,{Z:function(){return h}});var i=n(24246),l=n(27824),r=n(88038),a=n.n(r),s=n(86677);n(27378);var o=n(25980),c=n(90867),d=n(77830),u=()=>{let e=(0,s.useRouter)();return(0,i.jsx)(l.xuv,{bg:"gray.50",border:"1px solid",borderColor:"blue.400",borderRadius:"md",justifyContent:"space-between",p:5,mb:5,mt:5,children:(0,i.jsxs)(l.xuv,{children:[(0,i.jsxs)(l.Kqy,{direction:{base:"column",sm:"row"},justifyContent:"space-between",children:[(0,i.jsx)(l.xvT,{fontWeight:"semibold",children:"Configure your storage and messaging provider"}),(0,i.jsx)(l.wpx,{onClick:()=>{e.push(d.fz)},children:"Configure"})]}),(0,i.jsxs)(l.xvT,{children:["Before Fides can process your privacy requests we need two simple steps to configure your storage and email client."," "]})]})})},h=e=>{let{children:t,title:n,padded:r=!0,mainProps:d}=e,h=(0,o.hz)(),x=(0,s.useRouter)(),f="/privacy-requests"===x.pathname||"/datastore-connection"===x.pathname,p=!(h.flags.privacyRequestsConfiguration&&f),{data:C}=(0,c.JE)(void 0,{skip:p}),{data:m}=(0,c.PW)(void 0,{skip:p}),j=h.flags.privacyRequestsConfiguration&&(!C||!m)&&f;return(0,i.jsxs)(l.kCb,{"data-testid":n,direction:"column",h:"100vh",children:[(0,i.jsxs)(a(),{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)(l.kCb,{as:"main",direction:"column",py:r?6:0,px:r?10:0,h:r?"calc(100% - 48px)":"full",flex:1,minWidth:0,overflow:"auto",...d,children:[j?(0,i.jsx)(u,{}):null,t]})]})}},69828:function(e,t,n){n.d(t,{Y:function(){return a}});var i=n(24246),l=n(27824),r=n(70788);let a=[(0,i.jsx)(l.PJP.S9g,{},"layers"),(0,i.jsx)(l.PJP.ehp,{},"dataset"),(0,i.jsx)(l.PJP.iA_,{},"table"),(0,i.jsx)(l.PJP.$4y,{style:{transform:"rotate(-90deg)"}},"field")];t.Z=e=>{let{resourceUrn:t,parentLink:n,onPathClick:l=()=>{}}=e,s=[];if(t||s.push({title:"All activity"}),t){s.push({title:"All activity",href:n});let e=t.split(".");e.forEach((t,n)=>{0!==n&&s.push({title:t,icon:a[n-1],onClick:t=>{t.preventDefault(),l(e.slice(0,n+1).join("."))}})})}return(0,i.jsx)(r.m,{"data-testid":"results-breadcrumb",items:s})}},63927:function(e,t,n){n.d(t,{e:function(){return C},Z:function(){return m}});var i=n(24246),l=n(27824),r=n(34090),a=n(27378),s=n(16125),o=n(40324),c=n(39864),d=n(56026),u=n(46238),h=n(624),x=n(90673),f=e=>{let{dataCategories:t,checked:n,onChecked:r,buttonLabel:s}=e,o=(0,a.useMemo)(()=>(0,x.Cd)(t),[t]);return(0,i.jsxs)(l.v2r,{closeOnSelect:!0,children:[(0,i.jsx)(l.j2t,{as:l.wpx,icon:(0,i.jsx)(l.mCO,{}),className:"!bg-transparent",block:!0,"data-testid":"data-category-dropdown",children:null!=s?s:"Select data categories"}),(0,i.jsx)(l.qyq,{children:(0,i.jsxs)(l.xuv,{maxHeight:"50vh",minWidth:"300px",maxW:"full",overflowY:"scroll",children:[(0,i.jsxs)(l.xuv,{position:"sticky",top:0,zIndex:1,backgroundColor:"white",pt:1,children:[(0,i.jsx)(l.__7,{children:(0,i.jsxs)(l.xuv,{display:"flex",justifyContent:"space-between",px:2,mb:2,children:[(0,i.jsx)(l.sNh,{as:l.wpx,size:"small",className:"mr-2 !w-auto",onClick:()=>r([]),closeOnSelect:!1,"data-testid":"data-category-clear-btn",children:"Clear"}),(0,i.jsx)(l.xvT,{mr:2,children:"Data Categories"}),(0,i.jsx)(l.sNh,{as:l.wpx,size:"small",className:"!w-auto","data-testid":"data-category-done-btn",children:"Done"})]})}),(0,i.jsx)(l.RaW,{})]}),(0,i.jsx)(l.xuv,{px:2,"data-testid":"data-category-checkbox-tree",children:(0,i.jsx)(h.ZP,{nodes:o,selected:n,onSelected:r})})]})})]})},p=e=>{let{dataCategories:t,checked:n,onChecked:r,tooltip:a}=e,s=e=>{r(n.filter(t=>t!==e))},o=n.slice().sort((e,t)=>e.localeCompare(t));return(0,i.jsxs)(l.rjZ,{templateColumns:"1fr 3fr",children:[(0,i.jsx)(l.lXp,{children:"Data Categories"}),(0,i.jsxs)(l.vyj,{direction:"vertical",size:"small",children:[(0,i.jsxs)(l.xuv,{display:"flex",alignItems:"center",children:[(0,i.jsx)(l.xuv,{mr:"2",width:"100%",children:(0,i.jsx)(f,{dataCategories:t,checked:n,onChecked:r})}),(0,i.jsx)(u.b,{label:a})]}),(0,i.jsx)(l.vyj,{direction:"vertical",size:2,"data-testid":"selected-categories",children:o.map(e=>(0,i.jsx)(l.j8w,{closable:!0,onClose:()=>{s(e)},children:e},e))})]})]})};let C="edit-collection-or-field-form";var m=e=>{var t;let{values:n,onSubmit:u,dataType:h,showDataCategories:x=!0}=e,f={description:null!==(t=n.description)&&void 0!==t?t:"",data_categories:n.data_categories},m=(0,s.v9)(c.qb).filter(e=>e.active),[j,v]=(0,a.useState)(f.data_categories||[]),A="collection"===h?d.du.description.tooltip:d.QL.description.tooltip,y="collection"===h?d.du.data_categories.tooltip:d.QL.data_categories.tooltip;return(0,i.jsx)(r.J9,{initialValues:f,onSubmit:e=>{u({...e,data_categories:j})},children:(0,i.jsx)(r.l0,{id:C,children:(0,i.jsxs)(l.Kqy,{children:[(0,i.jsx)(o.j0,{name:"description",label:"Description",tooltip:A,"data-testid":"description-input"}),x&&(0,i.jsx)(p,{dataCategories:m,checked:j,onChecked:v,tooltip:y})]})})})}},56026:function(e,t,n){n.d(t,{QL:function(){return r},du:function(){return l},tz:function(){return i}});let i={name:{tooltip:"A UI-friendly label for the Dataset."},description:{tooltip:"A human-readable description of the Dataset."},data_categories:{tooltip:"Arrays of Data Category resources, identified by fides_key, that apply to all collections in the Dataset."}},l={description:{tooltip:"A human-readable description of the collection."},data_categories:{tooltip:"Arrays of Data Category resources, identified by fides_key, that apply to all fields in the collection."}},r={description:{tooltip:"A human-readable description of the field."},data_categories:{tooltip:"Arrays of Data Category resources, identified by fides_key, that apply to this field."}}},69435:function(e,t,n){n.d(t,{Fk:function(){return c},_n:function(){return s},jC:function(){return r},qe:function(){return o}});var i=n(99729),l=n.n(i);let r=(e,t,n)=>{let i=e.collections.map((e,i)=>i===n?t:e);return{...e,collections:i}},a=(e,t,n)=>{let i=e.fields.map((e,i)=>i===n?t:e);return{...e,fields:i}},s=(e,t,n,i)=>{let l=a(e.collections[n],t,i);return r(e,l,n)},o=(e,t)=>{let n=e.collections.filter((e,n)=>n!==t);return{...e,collections:n}},c=e=>{let{dataset:t,collectionName:n,subfields:i}=e,r="",a=t.collections.findIndex(e=>e.name===n);return r+="collections[".concat(a,"]"),i&&i.forEach(e=>{let n=l()(t,r).fields.findIndex(t=>t.name===e);r+=".fields[".concat(n,"]")}),r}},59001:function(e,t,n){n.d(t,{Ch:function(){return a},Hy:function(){return s},Lo:function(){return l}});var i,l,r=n(54682);let a="root";(i=l||(l={})).DATA_CATEGORIES="Data categories",i.DATA_USES="Data uses",i.DATA_SUBJECTS="Data subjects";let s=e=>{switch(e){case"Data categories":return{UPDATE:r.Sh.DATA_CATEGORY_UPDATE,CREATE:r.Sh.DATA_CATEGORY_CREATE,DELETE:r.Sh.DATA_CATEGORY_DELETE,READ:r.Sh.DATA_CATEGORY_READ};case"Data uses":return{UPDATE:r.Sh.DATA_USE_UPDATE,CREATE:r.Sh.DATA_USE_CREATE,DELETE:r.Sh.DATA_USE_DELETE,READ:r.Sh.DATA_USE_READ};case"Data subjects":return{UPDATE:r.Sh.DATA_SUBJECT_UPDATE,CREATE:r.Sh.DATA_SUBJECT_CREATE,DELETE:r.Sh.DATA_SUBJECT_DELETE,READ:r.Sh.DATA_SUBJECT_READ};default:throw Error("Unknown taxonomy type: ".concat(e))}}},90673:function(e,t,n){n.d(t,{Cd:function(){return r},Xl:function(){return a}});var i=n(54682),l=n(59001);let r=(e,t)=>{let n;if(null==t&&e.every(e=>void 0===e.parent_key))n=e;else{let i=null!=t?t:null;n=e.filter(e=>e.parent_key===i)}return n.map(t=>{var n,i;let l=t.fides_key;return{value:t.fides_key,label:""===t.name||null==t.name?t.fides_key:t.name,description:t.description,children:r(e,l),is_default:null!==(n=t.is_default)&&void 0!==n&&n,active:null!==(i=t.active)&&void 0!==i&&i}})},a=e=>{switch(e){case l.Lo.DATA_CATEGORIES:return i.P6.DATA_CATEGORY;case l.Lo.DATA_SUBJECTS:return i.P6.DATA_SUBJECT;case l.Lo.DATA_USES:return i.P6.DATA_USE;default:return}}}}]);
@@ -1 +1 @@
1
- "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9676],{59676:function(e,i,r){r.r(i),r.d(i,{default:function(){return j}});var t=r(24246),s=r(13577),n=r(16134),a=r(27378),l=r(812),o=r(14047),d=r(90867);let u=(0,s.Gpc)((e,i)=>{let{handleBlur:r,subjectRequest:u}=e,c=(0,n.T)(),[f,m]=(0,a.useState)(!1),{errorAlert:h,successAlert:x}=(0,o.V)(),{errorRequests:p}=(0,n.C)(d.fe),[g]=(0,d.JD)(),[j]=(0,d.Fq)(),y=async()=>{m(!0);let e=await g(p);(0,l.D4)(e)?(c((0,d.uT)({checkAll:!1,errorRequests:[]})),h((0,l.e$)(e.error),"DSR batch automation has failed due to the following:",{duration:null})):(e.data.failed.length>0&&h((0,t.jsxs)(s.xuv,{children:["DSR automation has failed for"," ",(0,t.jsx)(s.xvT,{as:"span",fontWeight:"semibold",children:e.data.failed.length})," ","privacy request(s). Please review the event log for further details."]}),void 0,{containerStyle:{maxWidth:"max-content"},duration:null}),e.data.succeeded.length>0&&x("Privacy request(s) are now being reprocessed.")),m(!1)},v=async()=>{if(!u)return;m(!0);let e=await j(u);(0,l.D4)(e)?h((0,l.e$)(e.error),"DSR automation has failed for this privacy request due to the following:",{duration:null}):x("Privacy request is now being reprocessed."),m(!1),r&&r(i)};return(0,t.jsx)(s.wpx,{disabled:f,loading:f,onClick:u?v:y,ref:i,size:"small",icon:(0,t.jsx)(s.AyE,{}),children:"Reprocess"})});var c=r(34090),f=r(55484);let m=/^[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,4}$/i,h=e=>m.test(e),x=(0,s.Gpc)((e,i)=>{let{isRequired:r=!1,...n}=e,{emails:l}=n.form.values,[o,d]=(0,a.useState)(""),u=e=>l.includes(e),c=e=>{e.map(e=>e.trim()).filter(e=>h(e)&&!u(e)).forEach(e=>n.push(e)),d("")};return(0,t.jsxs)(s.NIc,{alignItems:"baseline",display:"inline-flex",isInvalid:!!n.form.errors[n.name],isRequired:r,children:[(0,t.jsx)(s.lXp,{fontSize:"md",htmlFor:"email",children:"Email"}),(0,t.jsxs)(s.gCW,{align:"flex-start",w:"inherit",children:[(0,t.jsx)(s.IIB,{autoComplete:"off",placeholder:"Type or paste email addresses separated by commas and press `Enter` or `Tab`...",onChange:e=>{d(e.target.value)},onKeyDown:e=>{["Enter","Tab",","].includes(e.key)&&(e.preventDefault(),c([o]))},onPaste:e=>{e.preventDefault(),c(e.clipboardData.getData("text").split(","))},ref:i,size:"sm",type:"email",value:o}),(0,t.jsx)(s.J1D,{children:n.form.errors[n.name]}),l.length>0&&(0,t.jsx)(s.Eq9,{spacing:1,mb:3,pt:"8px",children:l.map((e,i)=>(0,t.jsxs)(s.Vp9,{borderRadius:"full",backgroundColor:"primary.400",color:"white",size:"sm",variant:"solid",children:[(0,t.jsx)(s.Sn0,{children:e}),(0,t.jsx)(s.SD9,{onClick:()=>{n.remove(i)}})]},e))})]})]})}),p=f.Ry().shape({emails:f.IX(f.Z_()).when(["notify"],{is:!0,then:()=>f.IX(f.Z_()).min(1,"Must enter at least one valid email").label("Email")}),notify:f.O7(),minErrorCount:f.Rx().required()});var g=()=>{let{isOpen:e,onOpen:i,onClose:r}=(0,s.qY0)(),[n,u]=(0,a.useState)({emails:[],notify:!1,minErrorCount:1}),f=(0,a.useRef)(null),{errorAlert:m,successAlert:h}=(0,o.V)(),[g,j]=(0,a.useState)(!0),{data:y}=(0,d.tE)(void 0,{skip:g}),[v]=(0,d.SC)(),C=async(e,i)=>{i.setSubmitting(!0);let t=await v({email_addresses:e.emails,notify_after_failures:e.notify?e.minErrorCount:0});(0,l.D4)(t)?m((0,l.e$)(t.error),"Configure alerts and notifications has failed to save due to the following:"):h("Configure alerts and notifications saved successfully."),i.setSubmitting(!1),r()};return(0,a.useEffect)(()=>{e&&j(!1),y&&u({emails:y.email_addresses,notify:0!==y.notify_after_failures,minErrorCount:y.notify_after_failures})},[y,e]),(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(s.wpx,{onClick:i,title:"Configure alerts","aria-label":"Configure alerts",icon:(0,t.jsx)(s.Dkj,{})}),(0,t.jsx)(c.J9,{enableReinitialize:!0,initialValues:n,onSubmit:C,validationSchema:p,children:i=>(0,t.jsxs)(s.dys,{isOpen:e,placement:"right",initialFocusRef:f,onClose:()=>{i.resetForm(),r()},size:"lg",children:[(0,t.jsx)(s.P1B,{}),(0,t.jsxs)(s.scA,{color:"gray.900",children:[(0,t.jsx)(s.cCv,{}),(0,t.jsxs)(s.OXI,{color:"gray.900",children:[(0,t.jsx)(s.xvT,{fontSize:"2xl",fontWeight:"normal",mb:4,children:"Configure alerts and notifications"}),(0,t.jsx)(s.xuv,{mt:"26px",children:(0,t.jsx)(s.xvT,{fontSize:"md",fontWeight:"normal",children:"Setup your alerts to send you a notification when there are any processing failures. You can also setup a threshold for connector failures for Fides to notify you after X amount of failures have occurred."})})]}),(0,t.jsx)(s.Ng0,{mt:"20px",children:(0,t.jsxs)(c.l0,{id:"configure-alerts-form",noValidate:!0,children:[(0,t.jsx)(s.xvT,{fontSize:"md",children:"Contact details"}),(0,t.jsxs)(s.gCW,{align:"stretch",gap:"29px",mt:"14px",children:[(0,t.jsx)(s.Ugi,{children:(0,t.jsx)(c.F2,{name:"emails",render:e=>(0,t.jsx)(x,{...e,isRequired:i.values.notify,ref:f})})}),(0,t.jsx)(s.Ugi,{children:(0,t.jsx)(c.gN,{id:"notify",name:"notify",children:e=>{let{field:r}=e;return(0,t.jsxs)(s.NIc,{alignItems:"center",display:"flex",mt:"45px",children:[(0,t.jsx)(s.lXp,{fontSize:"md",mb:"0",children:"Notify me immediately if there are any DSR processing errors"}),(0,t.jsx)(s.rAg,{checked:i.values.notify,onChange:(e,t)=>{r.onChange(t),i.setFieldValue(r.name,e),i.setFieldValue("minErrorCount",1),e||setTimeout(()=>{i.setFieldTouched("emails",!1)},0)}})]})}})})]}),(0,t.jsx)(s.xvT,{color:"#757575",fontSize:"sm",mt:"11px",children:"If selected, then Fides will notify you by your chosen method of communication every time the system encounters a data subject request processing error. You can turn this off anytime and setup a more suitable notification method below if you wish."}),i.values.notify&&(0,t.jsx)(s.Ugi,{mt:"34px",children:(0,t.jsx)(c.gN,{id:"minErrorCount",name:"minErrorCount",children:e=>{let{field:r,meta:n}=e;return(0,t.jsxs)(s.NIc,{alignItems:"center",display:"flex",isInvalid:!!(n.error&&n.touched),isRequired:!0,children:[(0,t.jsx)(s.xvT,{children:"Notify me after"}),(0,t.jsxs)(s.Y2U,{allowMouseWheel:!0,color:"gray.700",defaultValue:i.values.minErrorCount||1,min:1,ml:"8px",mr:"8px",onChange:(e,r)=>{i.setFieldValue("minErrorCount",r)},size:"sm",w:"80px",children:[(0,t.jsx)(s.zuI,{...r}),(0,t.jsxs)(s.FiK,{children:[(0,t.jsx)(s.WQu,{}),(0,t.jsx)(s.Y_d,{})]})]}),(0,t.jsx)(s.xvT,{children:"DSR processing errors "})]})}})})]})}),(0,t.jsx)(s.zeN,{justifyContent:"flex-start",children:(0,t.jsxs)("div",{className:"flex gap-2",children:[(0,t.jsx)(s.wpx,{onClick:()=>{i.resetForm(),r()},children:"Cancel"}),(0,t.jsx)(s.wpx,{form:"configure-alerts-form",disabled:i.isSubmitting,loading:i.isSubmitting,htmlType:"submit",children:"Save"})]})})]})]})})]})},j=()=>{let{errorRequests:e}=(0,n.C)(d.fe);return(0,t.jsxs)(s.kCb,{gap:4,children:[(null==e?void 0:e.length)>0&&(0,t.jsx)(u,{}),(0,t.jsx)(g,{})]})}}}]);
1
+ "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9676],{59676:function(e,i,r){r.r(i),r.d(i,{default:function(){return j}});var t=r(24246),s=r(27824),n=r(16134),a=r(27378),l=r(812),o=r(14047),d=r(90867);let u=(0,s.Gpc)((e,i)=>{let{handleBlur:r,subjectRequest:u}=e,c=(0,n.T)(),[f,m]=(0,a.useState)(!1),{errorAlert:h,successAlert:x}=(0,o.V)(),{errorRequests:p}=(0,n.C)(d.fe),[g]=(0,d.JD)(),[j]=(0,d.Fq)(),y=async()=>{m(!0);let e=await g(p);(0,l.D4)(e)?(c((0,d.uT)({checkAll:!1,errorRequests:[]})),h((0,l.e$)(e.error),"DSR batch automation has failed due to the following:",{duration:null})):(e.data.failed.length>0&&h((0,t.jsxs)(s.xuv,{children:["DSR automation has failed for"," ",(0,t.jsx)(s.xvT,{as:"span",fontWeight:"semibold",children:e.data.failed.length})," ","privacy request(s). Please review the event log for further details."]}),void 0,{containerStyle:{maxWidth:"max-content"},duration:null}),e.data.succeeded.length>0&&x("Privacy request(s) are now being reprocessed.")),m(!1)},v=async()=>{if(!u)return;m(!0);let e=await j(u);(0,l.D4)(e)?h((0,l.e$)(e.error),"DSR automation has failed for this privacy request due to the following:",{duration:null}):x("Privacy request is now being reprocessed."),m(!1),r&&r(i)};return(0,t.jsx)(s.wpx,{disabled:f,loading:f,onClick:u?v:y,ref:i,size:"small",icon:(0,t.jsx)(s.AyE,{}),children:"Reprocess"})});var c=r(34090),f=r(55484);let m=/^[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,4}$/i,h=e=>m.test(e),x=(0,s.Gpc)((e,i)=>{let{isRequired:r=!1,...n}=e,{emails:l}=n.form.values,[o,d]=(0,a.useState)(""),u=e=>l.includes(e),c=e=>{e.map(e=>e.trim()).filter(e=>h(e)&&!u(e)).forEach(e=>n.push(e)),d("")};return(0,t.jsxs)(s.NIc,{alignItems:"baseline",display:"inline-flex",isInvalid:!!n.form.errors[n.name],isRequired:r,children:[(0,t.jsx)(s.lXp,{fontSize:"md",htmlFor:"email",children:"Email"}),(0,t.jsxs)(s.gCW,{align:"flex-start",w:"inherit",children:[(0,t.jsx)(s.IIB,{autoComplete:"off",placeholder:"Type or paste email addresses separated by commas and press `Enter` or `Tab`...",onChange:e=>{d(e.target.value)},onKeyDown:e=>{["Enter","Tab",","].includes(e.key)&&(e.preventDefault(),c([o]))},onPaste:e=>{e.preventDefault(),c(e.clipboardData.getData("text").split(","))},ref:i,size:"sm",type:"email",value:o}),(0,t.jsx)(s.J1D,{children:n.form.errors[n.name]}),l.length>0&&(0,t.jsx)(s.Eq9,{spacing:1,mb:3,pt:"8px",children:l.map((e,i)=>(0,t.jsxs)(s.Vp9,{borderRadius:"full",backgroundColor:"primary.400",color:"white",size:"sm",variant:"solid",children:[(0,t.jsx)(s.Sn0,{children:e}),(0,t.jsx)(s.SD9,{onClick:()=>{n.remove(i)}})]},e))})]})]})}),p=f.Ry().shape({emails:f.IX(f.Z_()).when(["notify"],{is:!0,then:()=>f.IX(f.Z_()).min(1,"Must enter at least one valid email").label("Email")}),notify:f.O7(),minErrorCount:f.Rx().required()});var g=()=>{let{isOpen:e,onOpen:i,onClose:r}=(0,s.qY0)(),[n,u]=(0,a.useState)({emails:[],notify:!1,minErrorCount:1}),f=(0,a.useRef)(null),{errorAlert:m,successAlert:h}=(0,o.V)(),[g,j]=(0,a.useState)(!0),{data:y}=(0,d.tE)(void 0,{skip:g}),[v]=(0,d.SC)(),C=async(e,i)=>{i.setSubmitting(!0);let t=await v({email_addresses:e.emails,notify_after_failures:e.notify?e.minErrorCount:0});(0,l.D4)(t)?m((0,l.e$)(t.error),"Configure alerts and notifications has failed to save due to the following:"):h("Configure alerts and notifications saved successfully."),i.setSubmitting(!1),r()};return(0,a.useEffect)(()=>{e&&j(!1),y&&u({emails:y.email_addresses,notify:0!==y.notify_after_failures,minErrorCount:y.notify_after_failures})},[y,e]),(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(s.wpx,{onClick:i,title:"Configure alerts","aria-label":"Configure alerts",icon:(0,t.jsx)(s.Dkj,{})}),(0,t.jsx)(c.J9,{enableReinitialize:!0,initialValues:n,onSubmit:C,validationSchema:p,children:i=>(0,t.jsxs)(s.dys,{isOpen:e,placement:"right",initialFocusRef:f,onClose:()=>{i.resetForm(),r()},size:"lg",children:[(0,t.jsx)(s.P1B,{}),(0,t.jsxs)(s.scA,{color:"gray.900",children:[(0,t.jsx)(s.cCv,{}),(0,t.jsxs)(s.OXI,{color:"gray.900",children:[(0,t.jsx)(s.xvT,{fontSize:"2xl",fontWeight:"normal",mb:4,children:"Configure alerts and notifications"}),(0,t.jsx)(s.xuv,{mt:"26px",children:(0,t.jsx)(s.xvT,{fontSize:"md",fontWeight:"normal",children:"Setup your alerts to send you a notification when there are any processing failures. You can also setup a threshold for connector failures for Fides to notify you after X amount of failures have occurred."})})]}),(0,t.jsx)(s.Ng0,{mt:"20px",children:(0,t.jsxs)(c.l0,{id:"configure-alerts-form",noValidate:!0,children:[(0,t.jsx)(s.xvT,{fontSize:"md",children:"Contact details"}),(0,t.jsxs)(s.gCW,{align:"stretch",gap:"29px",mt:"14px",children:[(0,t.jsx)(s.Ugi,{children:(0,t.jsx)(c.F2,{name:"emails",render:e=>(0,t.jsx)(x,{...e,isRequired:i.values.notify,ref:f})})}),(0,t.jsx)(s.Ugi,{children:(0,t.jsx)(c.gN,{id:"notify",name:"notify",children:e=>{let{field:r}=e;return(0,t.jsxs)(s.NIc,{alignItems:"center",display:"flex",mt:"45px",children:[(0,t.jsx)(s.lXp,{fontSize:"md",mb:"0",children:"Notify me immediately if there are any DSR processing errors"}),(0,t.jsx)(s.rAg,{checked:i.values.notify,onChange:(e,t)=>{r.onChange(t),i.setFieldValue(r.name,e),i.setFieldValue("minErrorCount",1),e||setTimeout(()=>{i.setFieldTouched("emails",!1)},0)}})]})}})})]}),(0,t.jsx)(s.xvT,{color:"#757575",fontSize:"sm",mt:"11px",children:"If selected, then Fides will notify you by your chosen method of communication every time the system encounters a data subject request processing error. You can turn this off anytime and setup a more suitable notification method below if you wish."}),i.values.notify&&(0,t.jsx)(s.Ugi,{mt:"34px",children:(0,t.jsx)(c.gN,{id:"minErrorCount",name:"minErrorCount",children:e=>{let{field:r,meta:n}=e;return(0,t.jsxs)(s.NIc,{alignItems:"center",display:"flex",isInvalid:!!(n.error&&n.touched),isRequired:!0,children:[(0,t.jsx)(s.xvT,{children:"Notify me after"}),(0,t.jsxs)(s.Y2U,{allowMouseWheel:!0,color:"gray.700",defaultValue:i.values.minErrorCount||1,min:1,ml:"8px",mr:"8px",onChange:(e,r)=>{i.setFieldValue("minErrorCount",r)},size:"sm",w:"80px",children:[(0,t.jsx)(s.zuI,{...r}),(0,t.jsxs)(s.FiK,{children:[(0,t.jsx)(s.WQu,{}),(0,t.jsx)(s.Y_d,{})]})]}),(0,t.jsx)(s.xvT,{children:"DSR processing errors "})]})}})})]})}),(0,t.jsx)(s.zeN,{justifyContent:"flex-start",children:(0,t.jsxs)("div",{className:"flex gap-2",children:[(0,t.jsx)(s.wpx,{onClick:()=>{i.resetForm(),r()},children:"Cancel"}),(0,t.jsx)(s.wpx,{form:"configure-alerts-form",disabled:i.isSubmitting,loading:i.isSubmitting,htmlType:"submit",children:"Save"})]})})]})]})})]})},j=()=>{let{errorRequests:e}=(0,n.C)(d.fe);return(0,t.jsxs)(s.kCb,{gap:4,children:[(null==e?void 0:e.length)>0&&(0,t.jsx)(u,{}),(0,t.jsx)(g,{})]})}}}]);
@@ -1 +1 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9826],{77213:function(e,t,n){"use strict";n.d(t,{Z:function(){return h}});var i=n(24246),r=n(13577),l=n(88038),s=n.n(l),o=n(86677);n(27378);var a=n(25980),d=n(90867),c=n(77830),u=()=>{let e=(0,o.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(c.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."," "]})]})})},h=e=>{let{children:t,title:n,padded:l=!0,mainProps:c}=e,h=(0,a.hz)(),m=(0,o.useRouter)(),p="/privacy-requests"===m.pathname||"/datastore-connection"===m.pathname,x=!(h.flags.privacyRequestsConfiguration&&p),{data:f}=(0,d.JE)(void 0,{skip:x}),{data:g}=(0,d.PW)(void 0,{skip:x}),j=h.flags.privacyRequestsConfiguration&&(!f||!g)&&p;return(0,i.jsxs)(r.kCb,{"data-testid":n,direction:"column",h:"100vh",children:[(0,i.jsxs)(s(),{children:[(0,i.jsxs)("title",{children:["Fides Admin UI - ",n]}),(0,i.jsx)("meta",{name:"description",content:"Privacy Engineering Platform"}),(0,i.jsx)("link",{rel:"icon",href:"/favicon.ico"})]}),(0,i.jsxs)(r.kCb,{as:"main",direction:"column",py:l?6:0,px:l?10:0,h:l?"calc(100% - 48px)":"full",flex:1,minWidth:0,overflow:"auto",...c,children:[j?(0,i.jsx)(u,{}):null,t]})]})}},58754:function(e,t,n){"use strict";var i=n(24246),r=n(13577),l=n(70788);t.Z=e=>{let{heading:t,breadcrumbItems:n,isSticky:s=!0,children:o,rightContent:a,style:d,...c}=e;return(0,i.jsxs)("div",{...c,style:s?{position:"sticky",top:"-24px",paddingTop:"24px",paddingBottom:"24px",paddingLeft:"40px",marginLeft:"-40px",paddingRight:"40px",marginRight:"-40px",marginTop:"-24px",left:0,zIndex:20,backgroundColor:"white",...d}:{paddingBottom:"24px",...d},children:[(0,i.jsxs)(r.jqI,{justify:"space-between",children:["string"==typeof t?(0,i.jsx)(r.lQT,{className:n||o?"pb-4":void 0,level:1,"data-testid":"page-heading",children:t}):t,a&&(0,i.jsx)("div",{"data-testid":"page-header-right-content",children:a})]}),!!n&&(0,i.jsx)(l.m,{className:o?"pb-4":void 0,items:n,"data-testid":"page-breadcrumb"}),o]})}},61524:function(e,t,n){"use strict";n.d(t,{I_:function(){return s}});var i=n(24246),r=n(13577),l=n(67991);let s=5,o=e=>{let{title:t,children:n}=e;return(0,i.jsx)(r.xuv,{p:4,display:"flex",alignItems:"flex-start",gap:"4px",borderRadius:"4px",boxShadow:"0px 1px 2px 0px rgba(0, 0, 0, 0.06), 0px 1px 3px 0px rgba(0, 0, 0, 0.1)",fontSize:"sm","data-testid":"picker-card-".concat(t),children:n})},a=e=>{let{title:t,items:n,selected:o,indeterminate:a,onChange:d,toggle:c,onViewMore:u,numSelected:h,variant:m="default"}=e,p=u?n.slice(0,s):n,{allSelected:x,someSelected:f,handleToggleAll:g,handleToggleSelection:j}=(0,l.QZ)({items:n,selected:o,onChange:d});return(0,i.jsxs)(r.gCW,{alignItems:"flex-start",spacing:3,width:"100%",height:"100%",children:[(0,i.jsxs)(r.kCb,{justifyContent:"space-between",width:"100%",children:[(0,i.jsx)(r.XZJ,{fontSize:"md",textTransform:"emphasize"===m?"capitalize":void 0,fontWeight:"emphasize"===m?"semibold":"auto",isChecked:x,size:"md",mr:"2",onChange:g,colorScheme:"complimentary","data-testid":"select-all",isIndeterminate:!x&&f,children:t}),null!=c?c:null]}),h>0?(0,i.jsxs)(r.j8w,{className:"w-fit","data-testid":"num-selected-badge",children:[h," selected"]}):null,(0,i.jsx)(r.gCW,{paddingLeft:"6",fontSize:"sm",alignItems:"start",spacing:"2",children:(0,i.jsx)(r.cOn,{colorScheme:"complimentary",children:p.map(e=>(0,i.jsx)(r.kCb,{alignItems:"center",gap:"8px",children:(0,i.jsx)(r.XZJ,{isChecked:o.includes(e.id),isIndeterminate:a.includes(e.id),size:"md",fontWeight:"emphasize"===m?"500":"auto",onChange:()=>j(e.id),"data-testid":"".concat(e.name,"-checkbox"),children:e.name},e.id)},e.id))})}),u?(0,i.jsx)(r.wpx,{size:"small",onClick:u,type:"text","data-testid":"view-more-btn",children:"View more"}):null]})};t.ZP=e=>{let{...t}=e;return(0,i.jsx)(o,{title:t.title,children:(0,i.jsx)(a,{...t,variant:"emphasize"})})}},26089:function(e,t,n){"use strict";var i=n(24246),r=n(13577),l=n(99830),s=n.n(l);t.Z=e=>{let{onClick:t,children:n}=e;return(0,i.jsx)(r.wpx,{onClick:t,type:"link",role:"link",size:"small",className:s().toastLink,children:n})}},67991:function(e,t,n){"use strict";n.d(t,{Od:function(){return l},QZ:function(){return r}});var i=n(27378);let r=e=>{let{items:t,selected:n,onChange:i}=e,r=t.every(e=>n.includes(e.id))&&!!t.length;return{allSelected:r,someSelected:t.some(e=>n.includes(e.id))&&!!t.length,handleToggleAll:()=>{r?i([]):i(t.map(e=>e.id))},handleToggleSelection:e=>{n.includes(e)?i(n.filter(t=>t!==e)):i([...n,e])}}},l=e=>{let{initialSelected:t,initialExcluded:n,initialAllSelected:r,itemCount:l}=e,[s,o]=(0,i.useState)(t),[a,d]=(0,i.useState)(n),[c,u]=(0,i.useState)(r||s.length===l),h=!!s.length||!!a.length;return{selected:s,excluded:a,allSelected:c,someSelected:h,handleToggleAll:()=>{c?(d([]),a.length||u(!1)):(o([]),u(!0))},handleToggleItemSelected:e=>{if(c)d(a.includes(e)?a.filter(t=>t!==e):[...a,e]);else{let t=s.includes(e)?s.filter(t=>t!==e):[...s,e];o(t),t.length===l&&u(!0)}}}}},70788:function(e,t,n){"use strict";n.d(t,{m:function(){return d}});var i=n(24246),r=n(13577),l=n(79894),s=n.n(l),o=n(27378);let{Text:a}=r.AntTypography,d=e=>{let{items:t,...n}=e,l=(0,o.useMemo)(()=>null==t?void 0:t.map((e,n)=>{let l=n===t.length-1,o={...e},d=o.onClick&&!o.href;return("string"==typeof o.title&&(o.title=(0,i.jsx)(a,{style:{color:"inherit",maxWidth:l?void 0:400},ellipsis:!l,children:o.title})),d)?o.title=(0,i.jsx)(r.wpx,{type:"text",size:"small",icon:o.icon,onClick:o.onClick,className:"ant-breadcrumb-link -mt-px px-1 text-inherit",children:o.title}):(o.icon&&(o.title=(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("span",{className:"anticon align-text-bottom",children:o.icon}),o.title]})),o.href&&o.title&&(o.title=(0,i.jsx)(s(),{href:o.href,className:"ant-breadcrumb-link",children:o.title}),delete o.href)),o}),[t]);return(0,i.jsx)(r.zrq,{items:l,...n})}},12282:function(e,t,n){"use strict";n.d(t,{$_:function(){return o},h4:function(){return l},x$:function(){return s}});var i=n(24246),r=n(13577);let l=e=>{let{title:t}=e;return(0,i.jsx)(r.xBx,{fontSize:"lg",fontWeight:"semibold",pt:5,paddingInline:6,pb:5,backgroundColor:"gray.50",borderTopRadius:"md",borderBottom:"1px solid",borderColor:"gray.200",children:t})},s=e=>{let{title:t,allSelected:n,numSelected:l,onToggleAll:s,children:o}=e;return(0,i.jsxs)(r.kCb,{justifyContent:"space-between",mb:4,children:[(0,i.jsxs)(r.xuv,{children:[(0,i.jsx)(r.XZJ,{colorScheme:"complimentary",size:"md",isChecked:n,isIndeterminate:!n&&l>0,onChange:s,mr:3,"data-testid":"select-all",children:(0,i.jsx)(r.xvT,{fontWeight:"semibold",fontSize:"md",children:t})}),(0,i.jsxs)(r.j8w,{color:"minos",className:"w-fit","data-testid":"num-selected-badge",children:[l," selected"]})]}),o]})},o=e=>{let{onApply:t,onClose:n}=e;return(0,i.jsx)(r.mzw,{justifyContent:"center",children:(0,i.jsxs)("div",{className:"flex w-full justify-between",children:[(0,i.jsx)(r.wpx,{onClick:n,"data-testid":"cancel-btn",children:"Cancel"}),(0,i.jsx)(r.wpx,{type:"primary",onClick:t,"data-testid":"apply-btn",children:"Apply"})]})})}},85759:function(e,t,n){"use strict";n.d(t,{$q:function(){return s},F7:function(){return r},Il:function(){return i},VT:function(){return l},ji:function(){return o}});let i=(e,t)=>{let n={};return new Set(e.map(e=>e.continent).sort()).forEach(i=>{n[i]={locationGroups:t.filter(e=>e.continent===i).sort((e,t)=>e.name.localeCompare(t.name)),locations:e.filter(e=>e.continent===i).sort((e,t)=>e.name.localeCompare(t.name))}}),n},r=e=>{let t={};return new Set(e.map(e=>e.continent).sort()).forEach(n=>{t[n]=e.filter(e=>e.continent===n).sort((e,t)=>e.name.localeCompare(t.name))}),t},l=e=>{let t={};new Set(e.map(e=>e.belongs_to).flat().sort()).forEach(n=>{n&&(t[n]=e.filter(e=>{var t;return null===(t=e.belongs_to)||void 0===t?void 0:t.includes(n)}).sort((e,t)=>e.name.localeCompare(t.name)))});let n=e.filter(e=>!e.belongs_to||0===e.belongs_to.length);return n.length&&(t.Other=n),t},s=(e,t)=>{var n;return null!==(n=e.regulation)&&void 0!==n&&!!n.length||t.filter(t=>{var n;return null===(n=t.belongs_to)||void 0===n?void 0:n.includes(e.id)}).some(e=>{var t;return null===(t=e.regulation)||void 0===t?void 0:t.length})},o=e=>{let{group:t,selected:n,locations:i}=e,r=i.filter(e=>{var n;return null===(n=e.belongs_to)||void 0===n?void 0:n.includes(t.id)});return 0===r.length?"unchecked":r.every(e=>n.includes(e.id))?"checked":r.every(e=>!n.includes(e.id))?"unchecked":"indeterminate"}},31883:function(e,t,n){"use strict";n.d(t,{Bw:function(){return i.Bw},D4:function(){return i.D4}});var i=n(19043)},99830:function(e){e.exports={toastLink:"ToastLink_toastLink__OLSeq"}}}]);
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9826],{77213:function(e,t,n){"use strict";n.d(t,{Z:function(){return h}});var i=n(24246),r=n(27824),l=n(88038),s=n.n(l),o=n(86677);n(27378);var a=n(25980),d=n(90867),c=n(77830),u=()=>{let e=(0,o.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(c.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."," "]})]})})},h=e=>{let{children:t,title:n,padded:l=!0,mainProps:c}=e,h=(0,a.hz)(),m=(0,o.useRouter)(),p="/privacy-requests"===m.pathname||"/datastore-connection"===m.pathname,x=!(h.flags.privacyRequestsConfiguration&&p),{data:f}=(0,d.JE)(void 0,{skip:x}),{data:g}=(0,d.PW)(void 0,{skip:x}),j=h.flags.privacyRequestsConfiguration&&(!f||!g)&&p;return(0,i.jsxs)(r.kCb,{"data-testid":n,direction:"column",h:"100vh",children:[(0,i.jsxs)(s(),{children:[(0,i.jsxs)("title",{children:["Fides Admin UI - ",n]}),(0,i.jsx)("meta",{name:"description",content:"Privacy Engineering Platform"}),(0,i.jsx)("link",{rel:"icon",href:"/favicon.ico"})]}),(0,i.jsxs)(r.kCb,{as:"main",direction:"column",py:l?6:0,px:l?10:0,h:l?"calc(100% - 48px)":"full",flex:1,minWidth:0,overflow:"auto",...c,children:[j?(0,i.jsx)(u,{}):null,t]})]})}},58754:function(e,t,n){"use strict";var i=n(24246),r=n(27824),l=n(70788);t.Z=e=>{let{heading:t,breadcrumbItems:n,isSticky:s=!0,children:o,rightContent:a,style:d,...c}=e;return(0,i.jsxs)("div",{...c,style:s?{position:"sticky",top:"-24px",paddingTop:"24px",paddingBottom:"24px",paddingLeft:"40px",marginLeft:"-40px",paddingRight:"40px",marginRight:"-40px",marginTop:"-24px",left:0,zIndex:20,backgroundColor:"white",...d}:{paddingBottom:"24px",...d},children:[(0,i.jsxs)(r.jqI,{justify:"space-between",children:["string"==typeof t?(0,i.jsx)(r.lQT,{className:n||o?"pb-4":void 0,level:1,"data-testid":"page-heading",children:t}):t,a&&(0,i.jsx)("div",{"data-testid":"page-header-right-content",children:a})]}),!!n&&(0,i.jsx)(l.m,{className:o?"pb-4":void 0,items:n,"data-testid":"page-breadcrumb"}),o]})}},61524:function(e,t,n){"use strict";n.d(t,{I_:function(){return s}});var i=n(24246),r=n(27824),l=n(67991);let s=5,o=e=>{let{title:t,children:n}=e;return(0,i.jsx)(r.xuv,{p:4,display:"flex",alignItems:"flex-start",gap:"4px",borderRadius:"4px",boxShadow:"0px 1px 2px 0px rgba(0, 0, 0, 0.06), 0px 1px 3px 0px rgba(0, 0, 0, 0.1)",fontSize:"sm","data-testid":"picker-card-".concat(t),children:n})},a=e=>{let{title:t,items:n,selected:o,indeterminate:a,onChange:d,toggle:c,onViewMore:u,numSelected:h,variant:m="default"}=e,p=u?n.slice(0,s):n,{allSelected:x,someSelected:f,handleToggleAll:g,handleToggleSelection:j}=(0,l.QZ)({items:n,selected:o,onChange:d});return(0,i.jsxs)(r.gCW,{alignItems:"flex-start",spacing:3,width:"100%",height:"100%",children:[(0,i.jsxs)(r.kCb,{justifyContent:"space-between",width:"100%",children:[(0,i.jsx)(r.XZJ,{fontSize:"md",textTransform:"emphasize"===m?"capitalize":void 0,fontWeight:"emphasize"===m?"semibold":"auto",isChecked:x,size:"md",mr:"2",onChange:g,colorScheme:"complimentary","data-testid":"select-all",isIndeterminate:!x&&f,children:t}),null!=c?c:null]}),h>0?(0,i.jsxs)(r.j8w,{className:"w-fit","data-testid":"num-selected-badge",children:[h," selected"]}):null,(0,i.jsx)(r.gCW,{paddingLeft:"6",fontSize:"sm",alignItems:"start",spacing:"2",children:(0,i.jsx)(r.cOn,{colorScheme:"complimentary",children:p.map(e=>(0,i.jsx)(r.kCb,{alignItems:"center",gap:"8px",children:(0,i.jsx)(r.XZJ,{isChecked:o.includes(e.id),isIndeterminate:a.includes(e.id),size:"md",fontWeight:"emphasize"===m?"500":"auto",onChange:()=>j(e.id),"data-testid":"".concat(e.name,"-checkbox"),children:e.name},e.id)},e.id))})}),u?(0,i.jsx)(r.wpx,{size:"small",onClick:u,type:"text","data-testid":"view-more-btn",children:"View more"}):null]})};t.ZP=e=>{let{...t}=e;return(0,i.jsx)(o,{title:t.title,children:(0,i.jsx)(a,{...t,variant:"emphasize"})})}},26089:function(e,t,n){"use strict";var i=n(24246),r=n(27824),l=n(99830),s=n.n(l);t.Z=e=>{let{onClick:t,children:n}=e;return(0,i.jsx)(r.wpx,{onClick:t,type:"link",role:"link",size:"small",className:s().toastLink,children:n})}},67991:function(e,t,n){"use strict";n.d(t,{Od:function(){return l},QZ:function(){return r}});var i=n(27378);let r=e=>{let{items:t,selected:n,onChange:i}=e,r=t.every(e=>n.includes(e.id))&&!!t.length;return{allSelected:r,someSelected:t.some(e=>n.includes(e.id))&&!!t.length,handleToggleAll:()=>{r?i([]):i(t.map(e=>e.id))},handleToggleSelection:e=>{n.includes(e)?i(n.filter(t=>t!==e)):i([...n,e])}}},l=e=>{let{initialSelected:t,initialExcluded:n,initialAllSelected:r,itemCount:l}=e,[s,o]=(0,i.useState)(t),[a,d]=(0,i.useState)(n),[c,u]=(0,i.useState)(r||s.length===l),h=!!s.length||!!a.length;return{selected:s,excluded:a,allSelected:c,someSelected:h,handleToggleAll:()=>{c?(d([]),a.length||u(!1)):(o([]),u(!0))},handleToggleItemSelected:e=>{if(c)d(a.includes(e)?a.filter(t=>t!==e):[...a,e]);else{let t=s.includes(e)?s.filter(t=>t!==e):[...s,e];o(t),t.length===l&&u(!0)}}}}},70788:function(e,t,n){"use strict";n.d(t,{m:function(){return d}});var i=n(24246),r=n(27824),l=n(79894),s=n.n(l),o=n(27378);let{Text:a}=r.AntTypography,d=e=>{let{items:t,...n}=e,l=(0,o.useMemo)(()=>null==t?void 0:t.map((e,n)=>{let l=n===t.length-1,o={...e},d=o.onClick&&!o.href;return("string"==typeof o.title&&(o.title=(0,i.jsx)(a,{style:{color:"inherit",maxWidth:l?void 0:400},ellipsis:!l,children:o.title})),d)?o.title=(0,i.jsx)(r.wpx,{type:"text",size:"small",icon:o.icon,onClick:o.onClick,className:"ant-breadcrumb-link -mt-px px-1 text-inherit",children:o.title}):(o.icon&&(o.title=(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("span",{className:"anticon align-text-bottom",children:o.icon}),o.title]})),o.href&&o.title&&(o.title=(0,i.jsx)(s(),{href:o.href,className:"ant-breadcrumb-link",children:o.title}),delete o.href)),o}),[t]);return(0,i.jsx)(r.zrq,{items:l,...n})}},12282:function(e,t,n){"use strict";n.d(t,{$_:function(){return o},h4:function(){return l},x$:function(){return s}});var i=n(24246),r=n(27824);let l=e=>{let{title:t}=e;return(0,i.jsx)(r.xBx,{fontSize:"lg",fontWeight:"semibold",pt:5,paddingInline:6,pb:5,backgroundColor:"gray.50",borderTopRadius:"md",borderBottom:"1px solid",borderColor:"gray.200",children:t})},s=e=>{let{title:t,allSelected:n,numSelected:l,onToggleAll:s,children:o}=e;return(0,i.jsxs)(r.kCb,{justifyContent:"space-between",mb:4,children:[(0,i.jsxs)(r.xuv,{children:[(0,i.jsx)(r.XZJ,{colorScheme:"complimentary",size:"md",isChecked:n,isIndeterminate:!n&&l>0,onChange:s,mr:3,"data-testid":"select-all",children:(0,i.jsx)(r.xvT,{fontWeight:"semibold",fontSize:"md",children:t})}),(0,i.jsxs)(r.j8w,{color:"minos",className:"w-fit","data-testid":"num-selected-badge",children:[l," selected"]})]}),o]})},o=e=>{let{onApply:t,onClose:n}=e;return(0,i.jsx)(r.mzw,{justifyContent:"center",children:(0,i.jsxs)("div",{className:"flex w-full justify-between",children:[(0,i.jsx)(r.wpx,{onClick:n,"data-testid":"cancel-btn",children:"Cancel"}),(0,i.jsx)(r.wpx,{type:"primary",onClick:t,"data-testid":"apply-btn",children:"Apply"})]})})}},85759:function(e,t,n){"use strict";n.d(t,{$q:function(){return s},F7:function(){return r},Il:function(){return i},VT:function(){return l},ji:function(){return o}});let i=(e,t)=>{let n={};return new Set(e.map(e=>e.continent).sort()).forEach(i=>{n[i]={locationGroups:t.filter(e=>e.continent===i).sort((e,t)=>e.name.localeCompare(t.name)),locations:e.filter(e=>e.continent===i).sort((e,t)=>e.name.localeCompare(t.name))}}),n},r=e=>{let t={};return new Set(e.map(e=>e.continent).sort()).forEach(n=>{t[n]=e.filter(e=>e.continent===n).sort((e,t)=>e.name.localeCompare(t.name))}),t},l=e=>{let t={};new Set(e.map(e=>e.belongs_to).flat().sort()).forEach(n=>{n&&(t[n]=e.filter(e=>{var t;return null===(t=e.belongs_to)||void 0===t?void 0:t.includes(n)}).sort((e,t)=>e.name.localeCompare(t.name)))});let n=e.filter(e=>!e.belongs_to||0===e.belongs_to.length);return n.length&&(t.Other=n),t},s=(e,t)=>{var n;return null!==(n=e.regulation)&&void 0!==n&&!!n.length||t.filter(t=>{var n;return null===(n=t.belongs_to)||void 0===n?void 0:n.includes(e.id)}).some(e=>{var t;return null===(t=e.regulation)||void 0===t?void 0:t.length})},o=e=>{let{group:t,selected:n,locations:i}=e,r=i.filter(e=>{var n;return null===(n=e.belongs_to)||void 0===n?void 0:n.includes(t.id)});return 0===r.length?"unchecked":r.every(e=>n.includes(e.id))?"checked":r.every(e=>!n.includes(e.id))?"unchecked":"indeterminate"}},31883:function(e,t,n){"use strict";n.d(t,{Bw:function(){return i.Bw},D4:function(){return i.D4}});var i=n(19043)},99830:function(e){e.exports={toastLink:"ToastLink_toastLink__OLSeq"}}}]);
@@ -1 +1 @@
1
- "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9951],{95492:function(e,t,s){s.d(t,{l:function(){return n}});var i=s(24246);let n=(0,s(13577).IUT)({displayName:"TrashCanSolidIcon",viewBox:"0 0 12 15",path:(0,i.jsx)("path",{d:"M8.37857 1.18083C8.23393 0.892838 7.93661 0.710938 7.6125 0.710938H4.3875C4.06339 0.710938 3.76607 0.892838 3.62143 1.18083L3.42857 1.56094H0.857143C0.383036 1.56094 -1.19209e-07 1.94158 -1.19209e-07 2.41094C-1.19209e-07 2.8803 0.383036 3.26094 0.857143 3.26094H11.1429C11.6162 3.26094 12 2.8803 12 2.41094C12 1.94158 11.6162 1.56094 11.1429 1.56094H8.57143L8.37857 1.18083ZM11.167 4.11094H0.857143V12.6109C0.857143 13.5486 1.62589 14.3109 2.57143 14.3109H9.45268C10.3754 14.3109 11.167 13.5486 11.167 12.6109V4.11094ZM9.02411 6.23594V12.1859C9.02411 12.4197 8.80714 12.6109 8.59554 12.6109C8.33571 12.6109 8.16696 12.4197 8.16696 12.1859V6.23594C8.16696 6.00219 8.33571 5.81094 8.59554 5.81094C8.80714 5.81094 9.02411 6.00219 9.02411 6.23594ZM6.45268 6.23594V12.1859C6.45268 12.4197 6.23571 12.6109 6.02411 12.6109C5.76429 12.6109 5.57143 12.4197 5.57143 12.1859V6.23594C5.57143 6.00219 5.76429 5.81094 6.02411 5.81094C6.23571 5.81094 6.45268 6.00219 6.45268 6.23594ZM3.85714 6.23594V12.1859C3.85714 12.4197 3.66429 12.6109 3.42857 12.6109C3.19286 12.6109 3 12.4197 3 12.1859V6.23594C3 6.00219 3.19286 5.81094 3.42857 5.81094C3.66429 5.81094 3.85714 6.00219 3.85714 6.23594Z",fill:"currentColor"})})},94799:function(e,t,s){s.d(t,{k:function(){return l}});var i=s(76649);let n=e=>(0,i.Ln)({id:"string"},e),l=e=>(null!=e?e:[]).filter(n)},30320:function(e,t,s){s.d(t,{m:function(){return d}});var i=s(27378),n=s(25980),l=s(14047),a=s(32885),r=s(94799);let d=e=>{let{resourceFidesKey:t,resourceType:s}=e,{errorAlert:d}=(0,l.V)(),{plus:o}=(0,n.hz)(),c=(0,i.useMemo)(()=>null!=t?t:"",[]),u=(0,a.YU)(!0,{skip:!o}),m=(0,a.VN)(s,{skip:!o}),{data:x,isLoading:f,error:h,isError:p}=(0,a.PV)(null!=t?t:"",{skip:""!==c&&!(o&&c)}),[y]=(0,a._D)(),g=u.isLoading||m.isLoading||f,C=(0,i.useMemo)(()=>new Map((0,r.k)(u.data).map(e=>{var t;return[e.id,{...e,options:(null!==(t=e.allowed_values)&&void 0!==t?t:[]).map(e=>({value:e,label:e}))}]})),[u.data]),j=(0,i.useMemo)(()=>{var e;return null===(e=m.data)||void 0===e?void 0:e.filter(e=>e.active)},[m.data]),v=(0,i.useMemo)(()=>new Map((0,r.k)(j).map(e=>[e.id,e])),[j]),_=(0,i.useMemo)(()=>p&&(null==h?void 0:h.status)===404?new Map:new Map((0,r.k)(x).map(e=>[e.custom_field_definition_id,e])),[x,p,h]),k=(0,i.useMemo)(()=>{let e=[...v.keys()];return e.sort(),e},[v]),b=(0,i.useMemo)(()=>{let e={};return j&&_&&j.forEach(t=>{let s=_.get(t.id||"");s&&(t.allow_list_id&&"string[]"===t.field_type?e[s.custom_field_definition_id]=s.value:e[s.custom_field_definition_id]=s.value.toString())}),e},[j,_]),w=(0,i.useCallback)(async e=>{if(!o)return;let i="fides_key"in e&&""!==e.fides_key?e.fides_key:t;if(!i)return;let{customFieldValues:n}=e;if(!n||0===Object.keys(n).length)return;let l=[],a=[];k.forEach(e=>{let t=_.get(e),s=n[e];void 0===s||""===s||Array.isArray(s)&&0===s.length?(null==t?void 0:t.id)&&a.push(t.id):l.push({custom_field_definition_id:e,resource_id:i,id:null==t?void 0:t.id,value:s})});try{await y({resource_type:s,resource_id:i,upsert:l,delete:a})}catch(e){d("One or more custom fields have failed to save, please try again."),console.error(e)}},[o,_,d,t,k,y,s]);return{customFieldValues:b,definitionIdToCustomField:_,idToAllowListWithOptions:C,idToCustomFieldDefinition:v,isEnabled:o,isLoading:g,sortedCustomFieldDefinitionIds:k,upsertCustomFields:w}}},95346:function(e,t,s){s.d(t,{uc:function(){return y},Hn:function(){return d},Uv:function(){return a},C7:function(){return o},mZ:function(){return p.m}});var i,n,l,a,r=s(54682);(i=l||(l={}))[i.CREATE_CUSTOM_FIELDS=0]="CREATE_CUSTOM_FIELDS",i[i.CREATE_CUSTOM_LISTS=1]="CREATE_CUSTOM_LISTS",i[i.CHOOSE_FROM_LIBRARY=2]="CHOOSE_FROM_LIBRARY",r.AL.STRING,r.AL.STRING_,(n=a||(a={})).SINGLE_SELECT="singleSelect",n.MULTIPLE_SELECT="multipleSelect",n.OPEN_TEXT="openText";let d=[{label:"Single select",value:"singleSelect"},{label:"Multiple select",value:"multipleSelect"},{label:"Open Text",value:"openText"}],o=[{label:"taxonomy:".concat(r.P6.DATA_CATEGORY),value:r.P6.DATA_CATEGORY},{label:"taxonomy:".concat(r.P6.DATA_SUBJECT),value:r.P6.DATA_SUBJECT},{label:"taxonomy:".concat(r.P6.DATA_USE),value:r.P6.DATA_USE},{label:"".concat(r.P6.SYSTEM,":information"),value:r.P6.SYSTEM},{label:"system:data use",value:r.P6.PRIVACY_DECLARATION}];var c=s(24246),u=s(13577),m=s(34090),x=s(30234),f=s(97181),h=s(40324),p=s(30320);let y=e=>{let{resourceFidesKey:t,resourceType:s}=e,{idToAllowListWithOptions:i,idToCustomFieldDefinition:n,isEnabled:l,isLoading:a,sortedCustomFieldDefinitionIds:d}=(0,p.m)({resourceFidesKey:t,resourceType:s});return l&&0!==d.length?(0,c.jsx)(x.Z,{heading:"Custom fields",children:(0,c.jsx)(u.kCb,{flexDir:"column","data-testid":"custom-fields-list",children:(0,c.jsx)(u.kCb,{flexDir:"column",gap:"24px",children:a?(0,c.jsx)(u.M5Y,{children:(0,c.jsx)(u.$jN,{})}):d.length>0&&(0,c.jsx)(u.kCb,{flexDirection:"column",gap:"12px",paddingBottom:"24px",children:d.map(e=>{let t=n.get(e);if(!t)return null;let s="customFieldValues.".concat(t.id);if(!t.allow_list_id&&t.field_type===r.AL.STRING)return(0,c.jsx)(m.gN,{name:s,children:e=>{let{field:s}=e;return(0,c.jsx)(h.j0,{...s,label:t.name,tooltip:t.description,variant:"stacked"})}},e);let l=i.get(t.allow_list_id);if(!l)return null;let{options:a}=l;return(0,c.jsx)(f.d,{name:s,allowClear:!0,mode:t.field_type!==r.AL.STRING?"multiple":void 0,label:t.name,options:a,tooltip:t.description,layout:"stacked",className:"w-full"},e)})})})})}):null};s(94799)},14047:function(e,t,s){s.d(t,{H:function(){return l},V:function(){return i.V}});var i=s(84306),n=s(812);let l=()=>{let{errorAlert:e}=(0,i.V)();return{handleError:t=>{let s="An unexpected error occurred. Please try again.";(0,n.Ot)(t)?s=t.data.detail:(0,n.tB)(t)&&(s=t.data.detail[0].msg),e(s)}}}},84306:function(e,t,s){s.d(t,{V:function(){return l}});var i=s(24246),n=s(13577);let l=()=>{let e=(0,n.pmc)();return{errorAlert:(t,s,l)=>{let a={...l,position:(null==l?void 0:l.position)||"top",render:e=>{let{onClose:l}=e;return(0,i.jsxs)(n.bZj,{alignItems:"normal",status:"error","data-testid":"error-alert",children:[(0,i.jsx)(n.zMQ,{}),(0,i.jsxs)(n.xuv,{children:[s&&(0,i.jsx)(n.CdC,{children:s}),(0,i.jsx)(n.XaZ,{children:t})]}),(0,i.jsx)(n.PZ7,{onClick:l,position:"relative",right:0,size:"sm",top:-1})]})}};(null==l?void 0:l.id)&&e.isActive(l.id)?e.update(l.id,a):e(a)},successAlert:(t,s,l)=>{let a={...l,position:(null==l?void 0:l.position)||"top",render:e=>{let{onClose:l}=e;return(0,i.jsxs)(n.bZj,{alignItems:"normal",status:"success",variant:"subtle","data-testid":"success-alert",children:[(0,i.jsx)(n.zMQ,{}),(0,i.jsxs)(n.xuv,{children:[s&&(0,i.jsx)(n.CdC,{children:s}),(0,i.jsx)(n.XaZ,{children:t})]}),(0,i.jsx)(n.PZ7,{onClick:l,position:"relative",right:0,size:"sm",top:-1})]})}};(null==l?void 0:l.id)&&e.isActive(l.id)?e.update(l.id,a):e(a)}}}},45938:function(e,t,s){s.d(t,{Gt:function(){return m},eB:function(){return x},oI:function(){return u}});var i=s(24246),n=s(34090),l=s(27378),a=s(16134),r=s(38602),d=s(58452);let o=(0,l.createRef)(),c=(0,l.createRef)(),u=()=>{let e=(0,a.T)(),t=(0,a.C)(r.DB),s=(0,l.useCallback)(()=>{c.current=void 0,o.current=void 0},[]),i=(0,l.useCallback)(()=>{e((0,r.Mr)()),c.current&&(c.current(!0),s())},[e,s]),n=(0,l.useCallback)(()=>{e((0,r.Mr)()),c.current&&(c.current(!1),s())},[e,s]);return{attemptAction:(0,l.useCallback)(()=>t?(e((0,r.h7)()),o.current||(o.current=new Promise(e=>{c.current=e})),o.current):Promise.resolve(!0),[t,e]),onConfirm:i,onClose:n}},m=e=>{let{id:t,name:s}=e,{dirty:i}=(0,n.u6)(),d=(0,a.T)();return(0,l.useEffect)(()=>(d((0,r.Zu)({id:t,name:s})),()=>{d((0,r.dz)({id:t}))}),[d,t,s]),(0,l.useEffect)(()=>{d((0,r.$p)({id:t,isDirty:i}))},[i,d,t]),null},x=()=>{let{onConfirm:e,onClose:t}=u(),s=(0,a.C)(r.uv);return(0,i.jsx)(d.Z,{isOpen:s,onClose:t,onConfirm:e,isCentered:!0,title:"Unsaved Changes",message:"You have unsaved changes"})}},84720:function(e,t,s){s.d(t,{q:function(){return j}});var i=s(24246),n=s(13577),l=s(27378),a=s(34090),r=s(812),d=s(45938),o=s(14048),c=s(95492);let u=e=>{let{systems:t,dataFlows:s,onDataFlowSystemChange:l}=e,{setFieldValue:r}=(0,a.u6)(),d=s.map(e=>e.fides_key),o=e=>{let t=s.filter(t=>t.fides_key!==e.fides_key);r("dataFlowSystems",t),l(t)};return(0,i.jsxs)(n.iA_,{size:"sm","data-testid":"assign-systems-delete-table",children:[(0,i.jsx)(n.hrZ,{children:(0,i.jsxs)(n.Tr,{children:[(0,i.jsx)(n.Th,{children:"System"}),(0,i.jsx)(n.Th,{})]})}),(0,i.jsx)(n.p3B,{children:t.filter(e=>d.includes(e.fides_key)).map(e=>(0,i.jsxs)(n.Tr,{_hover:{bg:"gray.50"},"data-testid":"row-".concat(e.fides_key),children:[(0,i.jsx)(n.Td,{children:(0,i.jsx)(n.xvT,{fontSize:"xs",lineHeight:4,fontWeight:"medium",children:e.name})}),(0,i.jsx)(n.Td,{textAlign:"end",children:(0,i.jsx)(n.wpx,{"aria-label":"Unassign data flow from system",icon:(0,i.jsx)(c.l,{}),onClick:()=>o(e),"data-testid":"unassign-btn"})})]},e.fides_key))})]})};var m=s(26917),x=e=>{let{allSystems:t,dataFlowSystems:s,onChange:l,flowType:r}=e,{setFieldValue:d}=(0,a.u6)(),o=e=>{if(s.find(t=>t.fides_key===e.fides_key)){let t=s.filter(t=>t.fides_key!==e.fides_key);d("dataFlowSystems",t),l(t)}else{let t=[...s,{fides_key:e.fides_key,type:"system"}];d("dataFlowSystems",t),l(t)}};return(0,i.jsx)(n.xuv,{overflowY:"auto",maxHeight:"300px",children:(0,i.jsxs)(n.iA_,{size:"sm","data-testid":"assign-systems-table",maxHeight:"50vh",overflowY:"scroll",children:[(0,i.jsx)(n.hrZ,{position:"sticky",top:0,background:"white",zIndex:1,children:(0,i.jsxs)(n.Tr,{children:[(0,i.jsx)(n.Th,{children:"System"}),(0,i.jsxs)(n.Th,{textAlign:"right",children:["Set as ",r]})]})}),(0,i.jsx)(n.p3B,{children:t.map(e=>{let t=!!s.find(t=>t.fides_key===e.fides_key);return(0,i.jsxs)(n.Tr,{_hover:{bg:"gray.50"},"data-testid":"row-".concat(e.fides_key),children:[(0,i.jsx)(n.Td,{children:(0,i.jsx)(n.xvT,{fontSize:"xs",lineHeight:4,fontWeight:"medium",children:e.name})}),(0,i.jsx)(n.Td,{textAlign:"right",children:(0,i.jsx)(n.rAg,{checked:t,onChange:()=>o(e),"data-testid":"assign-switch"})})]},e.fides_key)})})]})})};let f=(e,t)=>{var s,i;return(null===(s=e.name)||void 0===s?void 0:s.toLocaleLowerCase().includes(t.toLocaleLowerCase()))||(null===(i=e.description)||void 0===i?void 0:i.toLocaleLowerCase().includes(t.toLocaleLowerCase()))};var h=e=>{let{currentSystem:t,systems:s,isOpen:r,onClose:d,dataFlowSystems:o,onDataFlowSystemChange:c,flowType:u}=e,{setFieldValue:h}=(0,a.u6)(),[p,y]=(0,l.useState)(""),[g,C]=(0,l.useState)(o),j=async()=>{c(g),d()},v=0===s.length,_=(0,l.useMemo)(()=>s?s.filter(e=>e.fides_key!==t.fides_key).filter(e=>f(e,p)):[],[s,t.fides_key,p]),k=(0,l.useMemo)(()=>{let e=new Set(g.map(e=>e.fides_key));return _.every(t=>e.has(t.fides_key))},[_,g]);return(0,i.jsxs)(n.u_l,{isOpen:r,onClose:d,size:"2xl",isCentered:!0,children:[(0,i.jsx)(n.ZAr,{}),(0,i.jsxs)(n.hzk,{p:8,"data-testid":"confirmation-modal",children:[(0,i.jsxs)(n.xBx,{fontWeight:"medium",display:"flex",justifyContent:"space-between",alignItems:"center",children:[(0,i.jsxs)(n.xvT,{fontSize:"2xl",lineHeight:8,fontWeight:"semibold",children:["Configure ",u.toLocaleLowerCase()," systems"]}),(0,i.jsxs)(n.j8w,{color:"success",children:["Assigned to ",g.length," systems"]})]}),(0,i.jsx)(n.fef,{"data-testid":"assign-systems-modal-body",children:v?(0,i.jsx)(n.xvT,{children:"No systems found"}):(0,i.jsxs)(n.Kqy,{spacing:4,children:[(0,i.jsxs)(n.kCb,{justifyContent:"space-between",children:[(0,i.jsx)(n.xvT,{fontSize:"sm",flexGrow:1,fontWeight:"medium",children:"Add or remove destination systems from your data map"}),(0,i.jsx)(n.xuv,{children:(0,i.jsxs)(n.NIc,{display:"flex",alignItems:"center",children:[(0,i.jsx)(n.lXp,{fontSize:"sm",htmlFor:"assign-all-systems",mb:"0",children:"Assign all systems"}),(0,i.jsx)(n.rAg,{size:"small",id:"assign-all-systems",checked:k,onChange:e=>{if(e&&s){let e=_.map(e=>({fides_key:e.fides_key,type:"system"}));h("dataFlowSystems",e),C(e)}else C([])},"data-testid":"assign-all-systems-toggle"})]})})]}),(0,i.jsx)(m.Z,{value:p,onChange:y,placeholder:"Search for systems","data-testid":"system-search",withIcon:!0}),(0,i.jsx)(x,{flowType:u,allSystems:_,dataFlowSystems:g,onChange:C})]})}),(0,i.jsxs)(n.mzw,{justifyContent:"flex-start",children:[(0,i.jsx)(n.wpx,{onClick:d,className:"mr-2","data-testid":"cancel-btn",children:"Cancel"}),!v&&(0,i.jsx)(n.wpx,{type:"primary",onClick:j,"data-testid":"confirm-btn",children:"Confirm"})]})]})]})},p=s(46628),y=s(1315);let g={dataFlowSystems:[]},C=e=>{let{system:t,isIngress:s,isSystemTab:c}=e,m=(0,n.pmc)(),x=s?"Source":"Destination",f="".concat(x,"s"),C=(0,n.qY0)(),[j]=(0,y.qQ)(),{data:v=[]}=(0,y.K3)(),_=(0,l.useMemo)(()=>{let e=s?t.ingress:t.egress;e||(e=[]);let i=v?v.map(e=>e.fides_key):[];return e.filter(e=>i.includes(e.fides_key))},[s,t,v]),[k,b]=(0,l.useState)(_);(0,l.useEffect)(()=>{b(_)},[_]);let w=async(e,i)=>{let{dataFlowSystems:n}=e,{resetForm:l}=i,a={...t,ingress:s?n:t.ingress,egress:s?t.egress:n},d=await j(a);(0,r.D4)(d)?m((0,p.Vo)("Failed to update data flows")):m((0,p.t5)("".concat(f," updated"))),l({values:{dataFlowSystems:n}})};return(0,i.jsxs)(n.Qdk,{children:[(0,i.jsx)(n.KFZ,{height:"68px",paddingLeft:c?6:2,"data-testid":"data-flow-button-".concat(x),children:(0,i.jsxs)(n.kCb,{alignItems:"center",justifyContent:"start",flex:1,textAlign:"left",children:[(0,i.jsx)(n.xvT,{fontSize:"sm",lineHeight:5,fontWeight:"semibold",mr:2,children:f}),(0,i.jsx)(n.Vp9,{ml:2,backgroundColor:"primary.400",borderRadius:"6px",color:"white",children:k.length}),(0,i.jsx)(n.LZC,{}),(0,i.jsx)(n.XEm,{})]})}),(0,i.jsx)(n.Hk3,{backgroundColor:"gray.50",padding:6,"data-testid":"data-flow-panel-".concat(x),children:(0,i.jsx)(n.Kqy,{borderRadius:"md",backgroundColor:"gray.50","aria-selected":"true",spacing:4,"data-testid":"selected",children:(0,i.jsx)(a.J9,{initialValues:g,onSubmit:w,children:e=>{let{isSubmitting:s,dirty:l,resetForm:r}=e;return(0,i.jsxs)(a.l0,{children:[(0,i.jsx)(d.Gt,{id:"".concat(t.fides_key,":").concat(x),name:"".concat(x," Data Flow")}),(0,i.jsx)(n.wpx,{onClick:C.onOpen,type:"primary",size:"small",icon:(0,i.jsx)(o.A5,{}),iconPosition:"end",className:"mb-4","data-testid":"assign-systems-btn",children:"Configure ".concat(f.toLocaleLowerCase())}),(0,i.jsx)(u,{systems:v,dataFlows:k,onDataFlowSystemChange:b}),(0,i.jsxs)("div",{className:"mt-6 flex gap-2",children:[(0,i.jsx)(n.wpx,{disabled:!l&&k===_,onClick:()=>{b(_),r({values:{dataFlowSystems:_}})},"data-testid":"cancel-btn",children:"Cancel"}),(0,i.jsx)(n.wpx,{type:"primary",htmlType:"submit",loading:s,disabled:!l&&k===_,"data-testid":"save-btn",children:"Save"})]}),C.isOpen?(0,i.jsx)(h,{currentSystem:t,systems:v,isOpen:C.isOpen,onClose:C.onClose,dataFlowSystems:k,onDataFlowSystemChange:b,flowType:x}):null]})}})})})]})},j=e=>{let{system:t,isSystemTab:s}=e;return(0,i.jsxs)(n.UQy,{allowToggle:!0,"data-testid":"data-flow-accordion",children:[(0,i.jsx)(C,{system:t,isIngress:!0,isSystemTab:s}),(0,i.jsx)(C,{system:t,isSystemTab:s})]})}},30234:function(e,t,s){var i=s(24246),n=s(13577);t.Z=e=>{let{heading:t,HeadingButton:s,children:l}=e;return(0,i.jsx)(n.Kqy,{spacing:4,children:(0,i.jsxs)(n.xuv,{maxWidth:"720px",border:"1px",borderColor:"gray.200",borderRadius:6,overflow:"visible",mt:6,children:[(0,i.jsxs)(n.xuv,{backgroundColor:"gray.50",px:6,py:4,display:"flex",flexDirection:"row",alignItems:"center",borderBottom:"1px",borderColor:"gray.200",borderTopRadius:6,children:[(0,i.jsx)(n.X6q,{as:"h3",size:"xs",children:t}),s?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(n.LZC,{}),(0,i.jsx)(s,{})]}):null]}),(0,i.jsx)(n.Kqy,{spacing:4,px:6,py:6,children:l})]})})}},52368:function(e,t,s){s.d(t,{f:function(){return d}});var i=s(16134),n=s(30002),l=s(28079),a=s(41966),r=s(57072);let d=e=>{let{includeDatasets:t,includeDisabled:s}=e,{isLoading:d}=(0,r.MO)(),{isLoading:o}=(0,n.te)(),{isLoading:c}=(0,l.fd)(),{isLoading:u}=(0,a.LH)({onlyUnlinkedDatasets:!1,minimal:!0},{skip:!t}),m=(0,i.C)(r.qb),x=(0,i.C)(r.Bd),f=(0,i.C)(n.ZL),h=(0,i.C)(n.H7),p=(0,i.C)(l.U3),y=(0,i.C)(l.jp),g=(0,i.C)(a.Q4);return{allDataCategories:s?m:x,allDataSubjects:s?f:h,allDataUses:s?p:y,allDatasets:t?g:void 0,isLoading:d||o||c||u}}},31883:function(e,t,s){s.d(t,{Bw:function(){return i.Bw},D4:function(){return i.D4}});var i=s(19043)}}]);
1
+ "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9951],{95492:function(e,t,s){s.d(t,{l:function(){return n}});var i=s(24246);let n=(0,s(27824).IUT)({displayName:"TrashCanSolidIcon",viewBox:"0 0 12 15",path:(0,i.jsx)("path",{d:"M8.37857 1.18083C8.23393 0.892838 7.93661 0.710938 7.6125 0.710938H4.3875C4.06339 0.710938 3.76607 0.892838 3.62143 1.18083L3.42857 1.56094H0.857143C0.383036 1.56094 -1.19209e-07 1.94158 -1.19209e-07 2.41094C-1.19209e-07 2.8803 0.383036 3.26094 0.857143 3.26094H11.1429C11.6162 3.26094 12 2.8803 12 2.41094C12 1.94158 11.6162 1.56094 11.1429 1.56094H8.57143L8.37857 1.18083ZM11.167 4.11094H0.857143V12.6109C0.857143 13.5486 1.62589 14.3109 2.57143 14.3109H9.45268C10.3754 14.3109 11.167 13.5486 11.167 12.6109V4.11094ZM9.02411 6.23594V12.1859C9.02411 12.4197 8.80714 12.6109 8.59554 12.6109C8.33571 12.6109 8.16696 12.4197 8.16696 12.1859V6.23594C8.16696 6.00219 8.33571 5.81094 8.59554 5.81094C8.80714 5.81094 9.02411 6.00219 9.02411 6.23594ZM6.45268 6.23594V12.1859C6.45268 12.4197 6.23571 12.6109 6.02411 12.6109C5.76429 12.6109 5.57143 12.4197 5.57143 12.1859V6.23594C5.57143 6.00219 5.76429 5.81094 6.02411 5.81094C6.23571 5.81094 6.45268 6.00219 6.45268 6.23594ZM3.85714 6.23594V12.1859C3.85714 12.4197 3.66429 12.6109 3.42857 12.6109C3.19286 12.6109 3 12.4197 3 12.1859V6.23594C3 6.00219 3.19286 5.81094 3.42857 5.81094C3.66429 5.81094 3.85714 6.00219 3.85714 6.23594Z",fill:"currentColor"})})},94799:function(e,t,s){s.d(t,{k:function(){return l}});var i=s(76649);let n=e=>(0,i.Ln)({id:"string"},e),l=e=>(null!=e?e:[]).filter(n)},30320:function(e,t,s){s.d(t,{m:function(){return d}});var i=s(27378),n=s(25980),l=s(14047),a=s(32885),r=s(94799);let d=e=>{let{resourceFidesKey:t,resourceType:s}=e,{errorAlert:d}=(0,l.V)(),{plus:o}=(0,n.hz)(),c=(0,i.useMemo)(()=>null!=t?t:"",[]),u=(0,a.YU)(!0,{skip:!o}),m=(0,a.VN)(s,{skip:!o}),{data:x,isLoading:f,error:h,isError:p}=(0,a.PV)(null!=t?t:"",{skip:""!==c&&!(o&&c)}),[y]=(0,a._D)(),g=u.isLoading||m.isLoading||f,C=(0,i.useMemo)(()=>new Map((0,r.k)(u.data).map(e=>{var t;return[e.id,{...e,options:(null!==(t=e.allowed_values)&&void 0!==t?t:[]).map(e=>({value:e,label:e}))}]})),[u.data]),j=(0,i.useMemo)(()=>{var e;return null===(e=m.data)||void 0===e?void 0:e.filter(e=>e.active)},[m.data]),v=(0,i.useMemo)(()=>new Map((0,r.k)(j).map(e=>[e.id,e])),[j]),_=(0,i.useMemo)(()=>p&&(null==h?void 0:h.status)===404?new Map:new Map((0,r.k)(x).map(e=>[e.custom_field_definition_id,e])),[x,p,h]),k=(0,i.useMemo)(()=>{let e=[...v.keys()];return e.sort(),e},[v]),b=(0,i.useMemo)(()=>{let e={};return j&&_&&j.forEach(t=>{let s=_.get(t.id||"");s&&(t.allow_list_id&&"string[]"===t.field_type?e[s.custom_field_definition_id]=s.value:e[s.custom_field_definition_id]=s.value.toString())}),e},[j,_]),w=(0,i.useCallback)(async e=>{if(!o)return;let i="fides_key"in e&&""!==e.fides_key?e.fides_key:t;if(!i)return;let{customFieldValues:n}=e;if(!n||0===Object.keys(n).length)return;let l=[],a=[];k.forEach(e=>{let t=_.get(e),s=n[e];void 0===s||""===s||Array.isArray(s)&&0===s.length?(null==t?void 0:t.id)&&a.push(t.id):l.push({custom_field_definition_id:e,resource_id:i,id:null==t?void 0:t.id,value:s})});try{await y({resource_type:s,resource_id:i,upsert:l,delete:a})}catch(e){d("One or more custom fields have failed to save, please try again."),console.error(e)}},[o,_,d,t,k,y,s]);return{customFieldValues:b,definitionIdToCustomField:_,idToAllowListWithOptions:C,idToCustomFieldDefinition:v,isEnabled:o,isLoading:g,sortedCustomFieldDefinitionIds:k,upsertCustomFields:w}}},95346:function(e,t,s){s.d(t,{uc:function(){return y},Hn:function(){return d},Uv:function(){return a},C7:function(){return o},mZ:function(){return p.m}});var i,n,l,a,r=s(54682);(i=l||(l={}))[i.CREATE_CUSTOM_FIELDS=0]="CREATE_CUSTOM_FIELDS",i[i.CREATE_CUSTOM_LISTS=1]="CREATE_CUSTOM_LISTS",i[i.CHOOSE_FROM_LIBRARY=2]="CHOOSE_FROM_LIBRARY",r.AL.STRING,r.AL.STRING_,(n=a||(a={})).SINGLE_SELECT="singleSelect",n.MULTIPLE_SELECT="multipleSelect",n.OPEN_TEXT="openText";let d=[{label:"Single select",value:"singleSelect"},{label:"Multiple select",value:"multipleSelect"},{label:"Open Text",value:"openText"}],o=[{label:"taxonomy:".concat(r.P6.DATA_CATEGORY),value:r.P6.DATA_CATEGORY},{label:"taxonomy:".concat(r.P6.DATA_SUBJECT),value:r.P6.DATA_SUBJECT},{label:"taxonomy:".concat(r.P6.DATA_USE),value:r.P6.DATA_USE},{label:"".concat(r.P6.SYSTEM,":information"),value:r.P6.SYSTEM},{label:"system:data use",value:r.P6.PRIVACY_DECLARATION}];var c=s(24246),u=s(27824),m=s(34090),x=s(30234),f=s(97181),h=s(40324),p=s(30320);let y=e=>{let{resourceFidesKey:t,resourceType:s}=e,{idToAllowListWithOptions:i,idToCustomFieldDefinition:n,isEnabled:l,isLoading:a,sortedCustomFieldDefinitionIds:d}=(0,p.m)({resourceFidesKey:t,resourceType:s});return l&&0!==d.length?(0,c.jsx)(x.Z,{heading:"Custom fields",children:(0,c.jsx)(u.kCb,{flexDir:"column","data-testid":"custom-fields-list",children:(0,c.jsx)(u.kCb,{flexDir:"column",gap:"24px",children:a?(0,c.jsx)(u.M5Y,{children:(0,c.jsx)(u.$jN,{})}):d.length>0&&(0,c.jsx)(u.kCb,{flexDirection:"column",gap:"12px",paddingBottom:"24px",children:d.map(e=>{let t=n.get(e);if(!t)return null;let s="customFieldValues.".concat(t.id);if(!t.allow_list_id&&t.field_type===r.AL.STRING)return(0,c.jsx)(m.gN,{name:s,children:e=>{let{field:s}=e;return(0,c.jsx)(h.j0,{...s,label:t.name,tooltip:t.description,variant:"stacked"})}},e);let l=i.get(t.allow_list_id);if(!l)return null;let{options:a}=l;return(0,c.jsx)(f.d,{name:s,allowClear:!0,mode:t.field_type!==r.AL.STRING?"multiple":void 0,label:t.name,options:a,tooltip:t.description,layout:"stacked",className:"w-full"},e)})})})})}):null};s(94799)},14047:function(e,t,s){s.d(t,{H:function(){return l},V:function(){return i.V}});var i=s(84306),n=s(812);let l=()=>{let{errorAlert:e}=(0,i.V)();return{handleError:t=>{let s="An unexpected error occurred. Please try again.";(0,n.Ot)(t)?s=t.data.detail:(0,n.tB)(t)&&(s=t.data.detail[0].msg),e(s)}}}},84306:function(e,t,s){s.d(t,{V:function(){return l}});var i=s(24246),n=s(27824);let l=()=>{let e=(0,n.pmc)();return{errorAlert:(t,s,l)=>{let a={...l,position:(null==l?void 0:l.position)||"top",render:e=>{let{onClose:l}=e;return(0,i.jsxs)(n.bZj,{alignItems:"normal",status:"error","data-testid":"error-alert",children:[(0,i.jsx)(n.zMQ,{}),(0,i.jsxs)(n.xuv,{children:[s&&(0,i.jsx)(n.CdC,{children:s}),(0,i.jsx)(n.XaZ,{children:t})]}),(0,i.jsx)(n.PZ7,{onClick:l,position:"relative",right:0,size:"sm",top:-1})]})}};(null==l?void 0:l.id)&&e.isActive(l.id)?e.update(l.id,a):e(a)},successAlert:(t,s,l)=>{let a={...l,position:(null==l?void 0:l.position)||"top",render:e=>{let{onClose:l}=e;return(0,i.jsxs)(n.bZj,{alignItems:"normal",status:"success",variant:"subtle","data-testid":"success-alert",children:[(0,i.jsx)(n.zMQ,{}),(0,i.jsxs)(n.xuv,{children:[s&&(0,i.jsx)(n.CdC,{children:s}),(0,i.jsx)(n.XaZ,{children:t})]}),(0,i.jsx)(n.PZ7,{onClick:l,position:"relative",right:0,size:"sm",top:-1})]})}};(null==l?void 0:l.id)&&e.isActive(l.id)?e.update(l.id,a):e(a)}}}},45938:function(e,t,s){s.d(t,{Gt:function(){return m},eB:function(){return x},oI:function(){return u}});var i=s(24246),n=s(34090),l=s(27378),a=s(16134),r=s(38602),d=s(58452);let o=(0,l.createRef)(),c=(0,l.createRef)(),u=()=>{let e=(0,a.T)(),t=(0,a.C)(r.DB),s=(0,l.useCallback)(()=>{c.current=void 0,o.current=void 0},[]),i=(0,l.useCallback)(()=>{e((0,r.Mr)()),c.current&&(c.current(!0),s())},[e,s]),n=(0,l.useCallback)(()=>{e((0,r.Mr)()),c.current&&(c.current(!1),s())},[e,s]);return{attemptAction:(0,l.useCallback)(()=>t?(e((0,r.h7)()),o.current||(o.current=new Promise(e=>{c.current=e})),o.current):Promise.resolve(!0),[t,e]),onConfirm:i,onClose:n}},m=e=>{let{id:t,name:s}=e,{dirty:i}=(0,n.u6)(),d=(0,a.T)();return(0,l.useEffect)(()=>(d((0,r.Zu)({id:t,name:s})),()=>{d((0,r.dz)({id:t}))}),[d,t,s]),(0,l.useEffect)(()=>{d((0,r.$p)({id:t,isDirty:i}))},[i,d,t]),null},x=()=>{let{onConfirm:e,onClose:t}=u(),s=(0,a.C)(r.uv);return(0,i.jsx)(d.Z,{isOpen:s,onClose:t,onConfirm:e,isCentered:!0,title:"Unsaved Changes",message:"You have unsaved changes"})}},84720:function(e,t,s){s.d(t,{q:function(){return j}});var i=s(24246),n=s(27824),l=s(27378),a=s(34090),r=s(812),d=s(45938),o=s(14048),c=s(95492);let u=e=>{let{systems:t,dataFlows:s,onDataFlowSystemChange:l}=e,{setFieldValue:r}=(0,a.u6)(),d=s.map(e=>e.fides_key),o=e=>{let t=s.filter(t=>t.fides_key!==e.fides_key);r("dataFlowSystems",t),l(t)};return(0,i.jsxs)(n.iA_,{size:"sm","data-testid":"assign-systems-delete-table",children:[(0,i.jsx)(n.hrZ,{children:(0,i.jsxs)(n.Tr,{children:[(0,i.jsx)(n.Th,{children:"System"}),(0,i.jsx)(n.Th,{})]})}),(0,i.jsx)(n.p3B,{children:t.filter(e=>d.includes(e.fides_key)).map(e=>(0,i.jsxs)(n.Tr,{_hover:{bg:"gray.50"},"data-testid":"row-".concat(e.fides_key),children:[(0,i.jsx)(n.Td,{children:(0,i.jsx)(n.xvT,{fontSize:"xs",lineHeight:4,fontWeight:"medium",children:e.name})}),(0,i.jsx)(n.Td,{textAlign:"end",children:(0,i.jsx)(n.wpx,{"aria-label":"Unassign data flow from system",icon:(0,i.jsx)(c.l,{}),onClick:()=>o(e),"data-testid":"unassign-btn"})})]},e.fides_key))})]})};var m=s(26917),x=e=>{let{allSystems:t,dataFlowSystems:s,onChange:l,flowType:r}=e,{setFieldValue:d}=(0,a.u6)(),o=e=>{if(s.find(t=>t.fides_key===e.fides_key)){let t=s.filter(t=>t.fides_key!==e.fides_key);d("dataFlowSystems",t),l(t)}else{let t=[...s,{fides_key:e.fides_key,type:"system"}];d("dataFlowSystems",t),l(t)}};return(0,i.jsx)(n.xuv,{overflowY:"auto",maxHeight:"300px",children:(0,i.jsxs)(n.iA_,{size:"sm","data-testid":"assign-systems-table",maxHeight:"50vh",overflowY:"scroll",children:[(0,i.jsx)(n.hrZ,{position:"sticky",top:0,background:"white",zIndex:1,children:(0,i.jsxs)(n.Tr,{children:[(0,i.jsx)(n.Th,{children:"System"}),(0,i.jsxs)(n.Th,{textAlign:"right",children:["Set as ",r]})]})}),(0,i.jsx)(n.p3B,{children:t.map(e=>{let t=!!s.find(t=>t.fides_key===e.fides_key);return(0,i.jsxs)(n.Tr,{_hover:{bg:"gray.50"},"data-testid":"row-".concat(e.fides_key),children:[(0,i.jsx)(n.Td,{children:(0,i.jsx)(n.xvT,{fontSize:"xs",lineHeight:4,fontWeight:"medium",children:e.name})}),(0,i.jsx)(n.Td,{textAlign:"right",children:(0,i.jsx)(n.rAg,{checked:t,onChange:()=>o(e),"data-testid":"assign-switch"})})]},e.fides_key)})})]})})};let f=(e,t)=>{var s,i;return(null===(s=e.name)||void 0===s?void 0:s.toLocaleLowerCase().includes(t.toLocaleLowerCase()))||(null===(i=e.description)||void 0===i?void 0:i.toLocaleLowerCase().includes(t.toLocaleLowerCase()))};var h=e=>{let{currentSystem:t,systems:s,isOpen:r,onClose:d,dataFlowSystems:o,onDataFlowSystemChange:c,flowType:u}=e,{setFieldValue:h}=(0,a.u6)(),[p,y]=(0,l.useState)(""),[g,C]=(0,l.useState)(o),j=async()=>{c(g),d()},v=0===s.length,_=(0,l.useMemo)(()=>s?s.filter(e=>e.fides_key!==t.fides_key).filter(e=>f(e,p)):[],[s,t.fides_key,p]),k=(0,l.useMemo)(()=>{let e=new Set(g.map(e=>e.fides_key));return _.every(t=>e.has(t.fides_key))},[_,g]);return(0,i.jsxs)(n.u_l,{isOpen:r,onClose:d,size:"2xl",isCentered:!0,children:[(0,i.jsx)(n.ZAr,{}),(0,i.jsxs)(n.hzk,{p:8,"data-testid":"confirmation-modal",children:[(0,i.jsxs)(n.xBx,{fontWeight:"medium",display:"flex",justifyContent:"space-between",alignItems:"center",children:[(0,i.jsxs)(n.xvT,{fontSize:"2xl",lineHeight:8,fontWeight:"semibold",children:["Configure ",u.toLocaleLowerCase()," systems"]}),(0,i.jsxs)(n.j8w,{color:"success",children:["Assigned to ",g.length," systems"]})]}),(0,i.jsx)(n.fef,{"data-testid":"assign-systems-modal-body",children:v?(0,i.jsx)(n.xvT,{children:"No systems found"}):(0,i.jsxs)(n.Kqy,{spacing:4,children:[(0,i.jsxs)(n.kCb,{justifyContent:"space-between",children:[(0,i.jsx)(n.xvT,{fontSize:"sm",flexGrow:1,fontWeight:"medium",children:"Add or remove destination systems from your data map"}),(0,i.jsx)(n.xuv,{children:(0,i.jsxs)(n.NIc,{display:"flex",alignItems:"center",children:[(0,i.jsx)(n.lXp,{fontSize:"sm",htmlFor:"assign-all-systems",mb:"0",children:"Assign all systems"}),(0,i.jsx)(n.rAg,{size:"small",id:"assign-all-systems",checked:k,onChange:e=>{if(e&&s){let e=_.map(e=>({fides_key:e.fides_key,type:"system"}));h("dataFlowSystems",e),C(e)}else C([])},"data-testid":"assign-all-systems-toggle"})]})})]}),(0,i.jsx)(m.Z,{value:p,onChange:y,placeholder:"Search for systems","data-testid":"system-search",withIcon:!0}),(0,i.jsx)(x,{flowType:u,allSystems:_,dataFlowSystems:g,onChange:C})]})}),(0,i.jsxs)(n.mzw,{justifyContent:"flex-start",children:[(0,i.jsx)(n.wpx,{onClick:d,className:"mr-2","data-testid":"cancel-btn",children:"Cancel"}),!v&&(0,i.jsx)(n.wpx,{type:"primary",onClick:j,"data-testid":"confirm-btn",children:"Confirm"})]})]})]})},p=s(46628),y=s(1315);let g={dataFlowSystems:[]},C=e=>{let{system:t,isIngress:s,isSystemTab:c}=e,m=(0,n.pmc)(),x=s?"Source":"Destination",f="".concat(x,"s"),C=(0,n.qY0)(),[j]=(0,y.qQ)(),{data:v=[]}=(0,y.K3)(),_=(0,l.useMemo)(()=>{let e=s?t.ingress:t.egress;e||(e=[]);let i=v?v.map(e=>e.fides_key):[];return e.filter(e=>i.includes(e.fides_key))},[s,t,v]),[k,b]=(0,l.useState)(_);(0,l.useEffect)(()=>{b(_)},[_]);let w=async(e,i)=>{let{dataFlowSystems:n}=e,{resetForm:l}=i,a={...t,ingress:s?n:t.ingress,egress:s?t.egress:n},d=await j(a);(0,r.D4)(d)?m((0,p.Vo)("Failed to update data flows")):m((0,p.t5)("".concat(f," updated"))),l({values:{dataFlowSystems:n}})};return(0,i.jsxs)(n.Qdk,{children:[(0,i.jsx)(n.KFZ,{height:"68px",paddingLeft:c?6:2,"data-testid":"data-flow-button-".concat(x),children:(0,i.jsxs)(n.kCb,{alignItems:"center",justifyContent:"start",flex:1,textAlign:"left",children:[(0,i.jsx)(n.xvT,{fontSize:"sm",lineHeight:5,fontWeight:"semibold",mr:2,children:f}),(0,i.jsx)(n.Vp9,{ml:2,backgroundColor:"primary.400",borderRadius:"6px",color:"white",children:k.length}),(0,i.jsx)(n.LZC,{}),(0,i.jsx)(n.XEm,{})]})}),(0,i.jsx)(n.Hk3,{backgroundColor:"gray.50",padding:6,"data-testid":"data-flow-panel-".concat(x),children:(0,i.jsx)(n.Kqy,{borderRadius:"md",backgroundColor:"gray.50","aria-selected":"true",spacing:4,"data-testid":"selected",children:(0,i.jsx)(a.J9,{initialValues:g,onSubmit:w,children:e=>{let{isSubmitting:s,dirty:l,resetForm:r}=e;return(0,i.jsxs)(a.l0,{children:[(0,i.jsx)(d.Gt,{id:"".concat(t.fides_key,":").concat(x),name:"".concat(x," Data Flow")}),(0,i.jsx)(n.wpx,{onClick:C.onOpen,type:"primary",size:"small",icon:(0,i.jsx)(o.A5,{}),iconPosition:"end",className:"mb-4","data-testid":"assign-systems-btn",children:"Configure ".concat(f.toLocaleLowerCase())}),(0,i.jsx)(u,{systems:v,dataFlows:k,onDataFlowSystemChange:b}),(0,i.jsxs)("div",{className:"mt-6 flex gap-2",children:[(0,i.jsx)(n.wpx,{disabled:!l&&k===_,onClick:()=>{b(_),r({values:{dataFlowSystems:_}})},"data-testid":"cancel-btn",children:"Cancel"}),(0,i.jsx)(n.wpx,{type:"primary",htmlType:"submit",loading:s,disabled:!l&&k===_,"data-testid":"save-btn",children:"Save"})]}),C.isOpen?(0,i.jsx)(h,{currentSystem:t,systems:v,isOpen:C.isOpen,onClose:C.onClose,dataFlowSystems:k,onDataFlowSystemChange:b,flowType:x}):null]})}})})})]})},j=e=>{let{system:t,isSystemTab:s}=e;return(0,i.jsxs)(n.UQy,{allowToggle:!0,"data-testid":"data-flow-accordion",children:[(0,i.jsx)(C,{system:t,isIngress:!0,isSystemTab:s}),(0,i.jsx)(C,{system:t,isSystemTab:s})]})}},30234:function(e,t,s){var i=s(24246),n=s(27824);t.Z=e=>{let{heading:t,HeadingButton:s,children:l}=e;return(0,i.jsx)(n.Kqy,{spacing:4,children:(0,i.jsxs)(n.xuv,{maxWidth:"720px",border:"1px",borderColor:"gray.200",borderRadius:6,overflow:"visible",mt:6,children:[(0,i.jsxs)(n.xuv,{backgroundColor:"gray.50",px:6,py:4,display:"flex",flexDirection:"row",alignItems:"center",borderBottom:"1px",borderColor:"gray.200",borderTopRadius:6,children:[(0,i.jsx)(n.X6q,{as:"h3",size:"xs",children:t}),s?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(n.LZC,{}),(0,i.jsx)(s,{})]}):null]}),(0,i.jsx)(n.Kqy,{spacing:4,px:6,py:6,children:l})]})})}},52368:function(e,t,s){s.d(t,{f:function(){return d}});var i=s(16134),n=s(30002),l=s(28079),a=s(41966),r=s(57072);let d=e=>{let{includeDatasets:t,includeDisabled:s}=e,{isLoading:d}=(0,r.MO)(),{isLoading:o}=(0,n.te)(),{isLoading:c}=(0,l.fd)(),{isLoading:u}=(0,a.LH)({onlyUnlinkedDatasets:!1,minimal:!0},{skip:!t}),m=(0,i.C)(r.qb),x=(0,i.C)(r.Bd),f=(0,i.C)(n.ZL),h=(0,i.C)(n.H7),p=(0,i.C)(l.U3),y=(0,i.C)(l.jp),g=(0,i.C)(a.Q4);return{allDataCategories:s?m:x,allDataSubjects:s?f:h,allDataUses:s?p:y,allDatasets:t?g:void 0,isLoading:d||o||c||u}}},31883:function(e,t,s){s.d(t,{Bw:function(){return i.Bw},D4:function(){return i.D4}});var i=s(19043)}}]);
@@ -1 +1 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2197],{26496:function(e,i,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/404",function(){return n(77030)}])},77030:function(e,i,n){"use strict";n.r(i);var s=n(24246),t=n(72111),r=n(91067),o=n(13577),l=n(86677),c=n(52253);i.default=()=>{let e=(0,l.useRouter)();return(0,s.jsxs)("div",{children:[(0,s.jsx)(t.Z,{}),(0,s.jsx)("main",{children:(0,s.jsxs)(o.Kqy,{minH:"100vh",align:"center",justify:"center",spacing:6,children:[(0,s.jsx)(o.xuv,{bg:"white",py:16,px:[0,0,35],width:["100%","100%",640],borderRadius:4,position:["absolute","absolute","inherit"],top:0,bottom:0,left:0,right:0,boxShadow:"base",children:(0,s.jsxs)(o.Kqy,{align:"center",spacing:9,children:[(0,s.jsxs)(o.Kqy,{align:"center",justify:"center",spacing:3,children:[(0,s.jsx)(o.X6q,{fontSize:"7xl",lineHeight:"1",colorScheme:"primary",color:"gray.700",children:"Error: 404"}),(0,s.jsx)(o.xvT,{fontWeight:"semibold",children:"We’re sorry but this page doesn’t exist"}),(0,s.jsx)(o.wpx,{type:"primary",onClick:()=>e.push(c.gp),className:"w-80",children:"Return to homepage"})]}),(0,s.jsx)(o.xuv,{display:[null,null,"none"],children:(0,s.jsx)(r.Z,{src:"/logo.svg",alt:"Fides logo",width:205,height:46})})]})}),(0,s.jsx)(o.xuv,{display:["none","none","inherit"],children:(0,s.jsx)(r.Z,{src:"/logo.svg",alt:"Fides logo",width:205,height:46})})]})})]})}}},function(e){e.O(0,[2888,9774,179],function(){return e(e.s=26496)}),_N_E=e.O()}]);
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2197],{26496:function(e,i,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/404",function(){return n(77030)}])},77030:function(e,i,n){"use strict";n.r(i);var s=n(24246),t=n(72111),r=n(91067),o=n(27824),l=n(86677),c=n(52253);i.default=()=>{let e=(0,l.useRouter)();return(0,s.jsxs)("div",{children:[(0,s.jsx)(t.Z,{}),(0,s.jsx)("main",{children:(0,s.jsxs)(o.Kqy,{minH:"100vh",align:"center",justify:"center",spacing:6,children:[(0,s.jsx)(o.xuv,{bg:"white",py:16,px:[0,0,35],width:["100%","100%",640],borderRadius:4,position:["absolute","absolute","inherit"],top:0,bottom:0,left:0,right:0,boxShadow:"base",children:(0,s.jsxs)(o.Kqy,{align:"center",spacing:9,children:[(0,s.jsxs)(o.Kqy,{align:"center",justify:"center",spacing:3,children:[(0,s.jsx)(o.X6q,{fontSize:"7xl",lineHeight:"1",colorScheme:"primary",color:"gray.700",children:"Error: 404"}),(0,s.jsx)(o.xvT,{fontWeight:"semibold",children:"We’re sorry but this page doesn’t exist"}),(0,s.jsx)(o.wpx,{type:"primary",onClick:()=>e.push(c.gp),className:"w-80",children:"Return to homepage"})]}),(0,s.jsx)(o.xuv,{display:[null,null,"none"],children:(0,s.jsx)(r.Z,{src:"/logo.svg",alt:"Fides logo",width:205,height:46})})]})}),(0,s.jsx)(o.xuv,{display:["none","none","inherit"],children:(0,s.jsx)(r.Z,{src:"/logo.svg",alt:"Fides logo",width:205,height:46})})]})})]})}}},function(e){e.O(0,[2888,9774,179],function(){return e(e.s=26496)}),_N_E=e.O()}]);