ethyca-fides 2.72.3rc1__py2.py3-none-any.whl → 2.73.0__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 (317) hide show
  1. {ethyca_fides-2.72.3rc1.dist-info → ethyca_fides-2.73.0.dist-info}/METADATA +2 -2
  2. {ethyca_fides-2.72.3rc1.dist-info → ethyca_fides-2.73.0.dist-info}/RECORD +270 -258
  3. fides/_version.py +3 -3
  4. fides/api/alembic/migrations/versions/a55e12c2c2df_add_tagging_instructions_to_data_.py +29 -0
  5. fides/api/api/v1/endpoints/generic_overrides.py +70 -1
  6. fides/api/models/privacy_preference.py +1 -0
  7. fides/api/models/sql_models.py +3 -0
  8. fides/api/schemas/taxonomy_extensions.py +8 -0
  9. fides/api/service/async_dsr/strategies/async_dsr_strategy_polling.py +1 -0
  10. fides/api/service/connectors/query_configs/saas_query_config.py +141 -78
  11. fides/api/service/connectors/saas_connector.py +45 -43
  12. fides/api/service/privacy_request/request_service.py +1 -1
  13. fides/api/util/saas_util.py +27 -1
  14. fides/config/execution_settings.py +1 -1
  15. fides/ui-build/static/admin/404.html +1 -1
  16. fides/ui-build/static/admin/_next/static/6kEWO-NXzxn1tvUedYFei/_buildManifest.js +1 -0
  17. fides/ui-build/static/admin/_next/static/chunks/{1099-d1b22e891705eaf8.js → 1099-fa8b82f521b23cce.js} +1 -1
  18. fides/ui-build/static/admin/_next/static/chunks/{1115-584dac093cef6cc3.js → 1115-d7ce851b36722c41.js} +1 -1
  19. fides/ui-build/static/admin/_next/static/chunks/{1437-4604a69888906ec0.js → 1437-9dd64c20d38667df.js} +1 -1
  20. fides/ui-build/static/admin/_next/static/chunks/155-1c80b19f58f44a0c.js +1 -0
  21. fides/ui-build/static/admin/_next/static/chunks/{1817-bfe4139324aa0279.js → 1817-0de0312294019817.js} +1 -1
  22. fides/ui-build/static/admin/_next/static/chunks/{1975.50599b6774562644.js → 1975.6ca0e76b5a3d1955.js} +1 -1
  23. fides/ui-build/static/admin/_next/static/chunks/{2040-8eead9d29546a50f.js → 2040-a18cc21821e2d121.js} +1 -1
  24. fides/ui-build/static/admin/_next/static/chunks/{2397-92f628c53688925b.js → 2397-16820a09e8ebfe33.js} +1 -1
  25. fides/ui-build/static/admin/_next/static/chunks/2921-a5dac2eacdcc32ff.js +1 -0
  26. fides/ui-build/static/admin/_next/static/chunks/2962-342ad1b4ab402ded.js +1 -0
  27. fides/ui-build/static/admin/_next/static/chunks/{3377-80612c111e047cb6.js → 3377-c2c9eb177bec8719.js} +1 -1
  28. fides/ui-build/static/admin/_next/static/chunks/3446-f40c352c43ac950c.js +1 -0
  29. fides/ui-build/static/admin/_next/static/chunks/{3696-e4abb6a922b954a2.js → 3696-21e3dec6c2023875.js} +1 -1
  30. fides/ui-build/static/admin/_next/static/chunks/{3700-1f9f6e5ebfa3ab0a.js → 3700-a2903cd95b8a27cb.js} +1 -1
  31. fides/ui-build/static/admin/_next/static/chunks/{3772-b945c6839e43c753.js → 3772-bb84842df51d3f3f.js} +1 -1
  32. fides/ui-build/static/admin/_next/static/chunks/3873-d759bbe7137ae8c2.js +1 -0
  33. fides/ui-build/static/admin/_next/static/chunks/{3923-c1e41661ebf57178.js → 3923-7f0aa36c9e09cedf.js} +1 -1
  34. fides/ui-build/static/admin/_next/static/chunks/{401-c2f1e4ea077f1f26.js → 401-874303feb3899562.js} +1 -1
  35. fides/ui-build/static/admin/_next/static/chunks/{4496-8204168bae78092d.js → 4496-903c81292ffd8f91.js} +1 -1
  36. fides/ui-build/static/admin/_next/static/chunks/4817-d0cc100f259b3c2e.js +1 -0
  37. fides/ui-build/static/admin/_next/static/chunks/{5185-bf5655b5d697b714.js → 5185-fc171b6acce9f915.js} +1 -1
  38. fides/ui-build/static/admin/_next/static/chunks/{5258-63325c03319e87dc.js → 5258-cf0d2c4c4d55a94b.js} +1 -1
  39. fides/ui-build/static/admin/_next/static/chunks/{5279-a05b93a8db6a3e79.js → 5279-8637d735471ec7f1.js} +1 -1
  40. fides/ui-build/static/admin/_next/static/chunks/{549-3e3b8d01bc984f96.js → 549-2d9bde37e5fe13eb.js} +1 -1
  41. fides/ui-build/static/admin/_next/static/chunks/{5643-7800464c8df7a78e.js → 5643-48a5e0ad8b9fc3f7.js} +1 -1
  42. fides/ui-build/static/admin/_next/static/chunks/{5783-7deeb7de5d2db4c4.js → 5783-63912bab7f80b0f8.js} +1 -1
  43. fides/ui-build/static/admin/_next/static/chunks/{6277-970bb31d9b0c0007.js → 6277-ec0e3fa4e4614098.js} +1 -1
  44. fides/ui-build/static/admin/_next/static/chunks/6315-79a1506e01f2f92b.js +1 -0
  45. fides/ui-build/static/admin/_next/static/chunks/6419-11d67f7fd4e2f247.js +1 -0
  46. fides/ui-build/static/admin/_next/static/chunks/6853-c348f6e95f987cbf.js +1 -0
  47. fides/ui-build/static/admin/_next/static/chunks/{6954-8b106311a3be35f4.js → 6954-c44ac4e70e777c2f.js} +1 -1
  48. fides/ui-build/static/admin/_next/static/chunks/7059-3f2641e3130b4ef8.js +1 -0
  49. fides/ui-build/static/admin/_next/static/chunks/7245-120f536e09decb85.js +1 -0
  50. fides/ui-build/static/admin/_next/static/chunks/{7476-08717f00da5f89ab.js → 7476-4234fb244676ec13.js} +1 -1
  51. fides/ui-build/static/admin/_next/static/chunks/{7488-bad160a2bfd89871.js → 7488-2db0992474f8056e.js} +1 -1
  52. fides/ui-build/static/admin/_next/static/chunks/{7630-775c578fa8109b0f.js → 7630-d7bd74d0cfdb22df.js} +1 -1
  53. fides/ui-build/static/admin/_next/static/chunks/{7773-24899908bf8ff659.js → 7773-6dce6187fe2c6984.js} +1 -1
  54. fides/ui-build/static/admin/_next/static/chunks/{796-6fe49d134f660156.js → 796-fae64888b8b2f369.js} +1 -1
  55. fides/ui-build/static/admin/_next/static/chunks/{8011-c23d609ed3f0efa5.js → 8011-6e40c969c9fa7d35.js} +1 -1
  56. fides/ui-build/static/admin/_next/static/chunks/{8212-67ac884660ddb63a.js → 8212-18d8da0f9208f978.js} +1 -1
  57. fides/ui-build/static/admin/_next/static/chunks/8373-24379b7d98e6922e.js +1 -0
  58. fides/ui-build/static/admin/_next/static/chunks/9046-6428eac9f38b3886.js +1 -0
  59. fides/ui-build/static/admin/_next/static/chunks/{9330-6eb11127296c54c2.js → 9330-540a113903cb3c28.js} +1 -1
  60. fides/ui-build/static/admin/_next/static/chunks/{9676.1ea49d4b6e0541f2.js → 9676.704cc210f59d0083.js} +1 -1
  61. fides/ui-build/static/admin/_next/static/chunks/9682-a3b2fb1a2df1c948.js +1 -0
  62. fides/ui-build/static/admin/_next/static/chunks/{9826-1f42934a2863992e.js → 9826-aecc5ddec86989dc.js} +1 -1
  63. fides/ui-build/static/admin/_next/static/chunks/{9899-63998972698a49fb.js → 9899-303921e3d0697960.js} +1 -1
  64. fides/ui-build/static/admin/_next/static/chunks/9965-6906ffdaef0f0d69.js +1 -0
  65. fides/ui-build/static/admin/_next/static/chunks/pages/{404-962d132471cd41ba.js → 404-c31cef0ce3fbeebf.js} +1 -1
  66. fides/ui-build/static/admin/_next/static/chunks/pages/{_app-9de54d6135682f7b.js → _app-5fd4e06224960492.js} +11 -11
  67. fides/ui-build/static/admin/_next/static/chunks/pages/add-systems/manual-a5865f42aafbe1f8.js +1 -0
  68. fides/ui-build/static/admin/_next/static/chunks/pages/add-systems/{multiple-e2a5c951347195e3.js → multiple-f706664770dd3e7f.js} +1 -1
  69. fides/ui-build/static/admin/_next/static/chunks/pages/add-systems-3f0d8698f01aabc5.js +1 -0
  70. fides/ui-build/static/admin/_next/static/chunks/pages/consent/configure/{add-vendors-7c829e58485fc821.js → add-vendors-fcd031b2b775e4f3.js} +1 -1
  71. fides/ui-build/static/admin/_next/static/chunks/pages/consent/{configure-5c58b69dd473cc06.js → configure-0bd2eb0110873c4d.js} +1 -1
  72. fides/ui-build/static/admin/_next/static/chunks/pages/consent/privacy-experience/{[id]-58460ac9c1dface5.js → [id]-0dd17c74a6cc17ff.js} +1 -1
  73. fides/ui-build/static/admin/_next/static/chunks/pages/consent/{privacy-experience-b6b2d50d894cefa5.js → privacy-experience-ae8dff75e1c6c413.js} +1 -1
  74. fides/ui-build/static/admin/_next/static/chunks/pages/consent/privacy-notices/{[id]-25ce8366e689363b.js → [id]-84ba8b9947b9af0a.js} +1 -1
  75. fides/ui-build/static/admin/_next/static/chunks/pages/consent/privacy-notices/{new-faa457089616711a.js → new-f03d1d0df4661a33.js} +1 -1
  76. fides/ui-build/static/admin/_next/static/chunks/pages/consent/{privacy-notices-a7fe3925771bb6c3.js → privacy-notices-5a553b4bdbf85aa9.js} +1 -1
  77. fides/ui-build/static/admin/_next/static/chunks/pages/consent/{properties-45a2901a35edc8f7.js → properties-5cba88e6839a087d.js} +1 -1
  78. fides/ui-build/static/admin/_next/static/chunks/pages/consent/reporting-f2690c381c1d1a52.js +1 -0
  79. fides/ui-build/static/admin/_next/static/chunks/pages/{consent-a7a4e419e4086033.js → consent-289d21aa6c42828b.js} +1 -1
  80. fides/ui-build/static/admin/_next/static/chunks/pages/data-catalog/[systemId]/projects/{[projectUrn]-ffb6e0fe6712342e.js → [projectUrn]-cb56d56b9d918682.js} +1 -1
  81. fides/ui-build/static/admin/_next/static/chunks/pages/data-catalog/[systemId]/{projects-3c935e93208d2bdd.js → projects-ccb66ba6d1ad93fc.js} +1 -1
  82. fides/ui-build/static/admin/_next/static/chunks/pages/data-catalog/[systemId]/{resources-96be972a983616e3.js → resources-ecb2d925d75dfe1e.js} +1 -1
  83. fides/ui-build/static/admin/_next/static/chunks/pages/{data-catalog-79d06a04698c47c0.js → data-catalog-75403467491a251b.js} +1 -1
  84. fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/action-center/datastore/[monitorId]-e46e017a3919f94e.js +1 -0
  85. fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/action-center/datastore-1b0ed3b3ceedfd94.js +1 -0
  86. fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/action-center/website/[monitorId]/[systemId]-71cf0b06b3d5a326.js +1 -0
  87. fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/action-center/website/[monitorId]-cc6b359fb4968bf0.js +1 -0
  88. fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/action-center/website-60ad14c879b4fe27.js +1 -0
  89. fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/action-center-cbff5db86e6951c4.js +1 -0
  90. fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/{activity-6cc1ba1f102ae77d.js → activity-7dded115499a4a4a.js} +1 -1
  91. fides/ui-build/static/admin/_next/static/chunks/pages/datamap-d1bb19fe4ef393dc.js +1 -0
  92. fides/ui-build/static/admin/_next/static/chunks/pages/dataset/[datasetId]/[collectionName]/{[...subfieldNames]-e04a4e16ccf32aef.js → [...subfieldNames]-58c3f4c0b490264b.js} +1 -1
  93. fides/ui-build/static/admin/_next/static/chunks/pages/dataset/[datasetId]/{[collectionName]-a40c4febe16a0a6d.js → [collectionName]-74290432e74fcdc5.js} +1 -1
  94. fides/ui-build/static/admin/_next/static/chunks/pages/dataset/{[datasetId]-f500a77eefb057e7.js → [datasetId]-8dad45f070a06609.js} +1 -1
  95. fides/ui-build/static/admin/_next/static/chunks/pages/dataset/{new-5c20080cdb053b1d.js → new-6aed6dc24c3be001.js} +1 -1
  96. fides/ui-build/static/admin/_next/static/chunks/pages/{dataset-96355a68e8c28fe8.js → dataset-fdaec997c1b0753f.js} +1 -1
  97. fides/ui-build/static/admin/_next/static/chunks/pages/datastore-connection/{[id]-448729ee9d1d78c3.js → [id]-63c4805e40673c60.js} +1 -1
  98. fides/ui-build/static/admin/_next/static/chunks/pages/datastore-connection/{new-42c720ec5c941573.js → new-b5a49743387eecef.js} +1 -1
  99. fides/ui-build/static/admin/_next/static/chunks/pages/datastore-connection-8f0804d9a38688a4.js +1 -0
  100. fides/ui-build/static/admin/_next/static/chunks/pages/{index-ca794e85c16cba67.js → index-363b091a4d1d70ad.js} +1 -1
  101. fides/ui-build/static/admin/_next/static/chunks/pages/integrations/[id]-3b7f47985452e01d.js +1 -0
  102. fides/ui-build/static/admin/_next/static/chunks/pages/integrations-b0da32fe3564c129.js +1 -0
  103. fides/ui-build/static/admin/_next/static/chunks/pages/new-privacy-requests-d1152cbc3c1bbbbb.js +1 -0
  104. fides/ui-build/static/admin/_next/static/chunks/pages/notifications/digests/{[id]-058125922d1eaeec.js → [id]-0e4e4e7110362022.js} +1 -1
  105. fides/ui-build/static/admin/_next/static/chunks/pages/notifications/digests/{new-7a5f76708c79f714.js → new-2e15f6272e9aaeb6.js} +1 -1
  106. fides/ui-build/static/admin/_next/static/chunks/pages/notifications/{digests-31bed1f86b89d1d8.js → digests-65626dfcfacdc605.js} +1 -1
  107. fides/ui-build/static/admin/_next/static/chunks/pages/notifications/providers/{[key]-d08f3a7cd2d011ec.js → [key]-768c4e2f6b05304c.js} +1 -1
  108. fides/ui-build/static/admin/_next/static/chunks/pages/notifications/providers/{new-cb2c7fbc26886052.js → new-2d57a70e4d32e651.js} +1 -1
  109. fides/ui-build/static/admin/_next/static/chunks/pages/notifications/{providers-40b9f1f70d27b660.js → providers-83f78354fa34bffe.js} +1 -1
  110. fides/ui-build/static/admin/_next/static/chunks/pages/notifications/templates/{[id]-a6ae72abe59ff830.js → [id]-1b31764f520fbbc5.js} +1 -1
  111. fides/ui-build/static/admin/_next/static/chunks/pages/notifications/templates/{add-template-a3e4b5b575b31be1.js → add-template-4c74456b6677bf07.js} +1 -1
  112. fides/ui-build/static/admin/_next/static/chunks/pages/notifications/templates-5deb80abd6156f7f.js +1 -0
  113. fides/ui-build/static/admin/_next/static/chunks/pages/{notifications-9644c0f088a01fea.js → notifications-8d8716dda9a6f277.js} +1 -1
  114. fides/ui-build/static/admin/_next/static/chunks/pages/poc/ant-components-52b1572442a20ab4.js +1 -0
  115. fides/ui-build/static/admin/_next/static/chunks/pages/poc/form-experiments/AntForm-a0437ba647d59799.js +1 -0
  116. fides/ui-build/static/admin/_next/static/chunks/pages/poc/form-experiments/FormikAntFormItem-87285c544450ec46.js +1 -0
  117. fides/ui-build/static/admin/_next/static/chunks/pages/poc/form-experiments/FormikControlled-57997dbd451a6eed.js +1 -0
  118. fides/ui-build/static/admin/_next/static/chunks/pages/poc/form-experiments/FormikField-65009783e0404153.js +1 -0
  119. fides/ui-build/static/admin/_next/static/chunks/pages/poc/forms-eafef007c179340f.js +1 -0
  120. fides/ui-build/static/admin/_next/static/chunks/pages/poc/{table-migration-11a70bcfa672ce8f.js → table-migration-7933a824a45d0ee6.js} +1 -1
  121. fides/ui-build/static/admin/_next/static/chunks/pages/privacy-requests/[id]-27c56466eab98b15.js +1 -0
  122. fides/ui-build/static/admin/_next/static/chunks/pages/privacy-requests/configure/{storage-24a8c2ab57625556.js → storage-16f77a6291bb02fe.js} +1 -1
  123. fides/ui-build/static/admin/_next/static/chunks/pages/privacy-requests/{configure-1926359bdf5d6c30.js → configure-d2b3293ab496f7bc.js} +1 -1
  124. fides/ui-build/static/admin/_next/static/chunks/pages/privacy-requests-af4f48d10926e4a4.js +1 -0
  125. fides/ui-build/static/admin/_next/static/chunks/pages/properties/{[id]-47118b9976ad7212.js → [id]-dd3c3d780533a9c2.js} +1 -1
  126. fides/ui-build/static/admin/_next/static/chunks/pages/properties/{add-property-2e6b0d8b409ba1fd.js → add-property-d1af260c3ddbf68b.js} +1 -1
  127. fides/ui-build/static/admin/_next/static/chunks/pages/{properties-32486c25255c9cb1.js → properties-9bb7fe3577402008.js} +1 -1
  128. fides/ui-build/static/admin/_next/static/chunks/pages/reporting/datamap-33ce744d07982c0f.js +1 -0
  129. fides/ui-build/static/admin/_next/static/chunks/pages/settings/consent/[configuration_id]/[purpose_id]-35626e9d8e0a3ca2.js +1 -0
  130. fides/ui-build/static/admin/_next/static/chunks/pages/settings/{consent-4c20c08ca7ea8cff.js → consent-39b5142099ed8705.js} +1 -1
  131. fides/ui-build/static/admin/_next/static/chunks/pages/settings/custom-fields/{[id]-a270325109398f48.js → [id]-b5140de4431a7ff5.js} +1 -1
  132. fides/ui-build/static/admin/_next/static/chunks/pages/settings/custom-fields/{new-2e0c8e249f286427.js → new-dcc16459e754fbbd.js} +1 -1
  133. fides/ui-build/static/admin/_next/static/chunks/pages/settings/{custom-fields-8e4a76376927afd5.js → custom-fields-64c638ea33bb3ff9.js} +1 -1
  134. fides/ui-build/static/admin/_next/static/chunks/pages/settings/{domain-records-e3dcef1ec8cf8b9e.js → domain-records-3843fbaf5bc433f1.js} +1 -1
  135. fides/ui-build/static/admin/_next/static/chunks/pages/settings/{domains-2e88cc7a6074a28b.js → domains-ea549fabce96fde4.js} +1 -1
  136. fides/ui-build/static/admin/_next/static/chunks/pages/settings/{email-templates-7469d2f85396c693.js → email-templates-0fe318a9dfc1f593.js} +1 -1
  137. fides/ui-build/static/admin/_next/static/chunks/pages/settings/{locations-20789aa0c84d544e.js → locations-c42c856510cad6fd.js} +1 -1
  138. fides/ui-build/static/admin/_next/static/chunks/pages/settings/{organization-f84a13eb9688cb5f.js → organization-e4c552a5797c3fa5.js} +1 -1
  139. fides/ui-build/static/admin/_next/static/chunks/pages/settings/{privacy-requests-b72df6f3d460125f.js → privacy-requests-2790d31b59cc3c74.js} +1 -1
  140. fides/ui-build/static/admin/_next/static/chunks/pages/settings/{regulations-aa02bc818e089c49.js → regulations-3c608512c415fca4.js} +1 -1
  141. fides/ui-build/static/admin/_next/static/chunks/pages/systems/configure/[id]/{test-datasets-5be9ce7a745ce908.js → test-datasets-e0e1a5142e41e9f2.js} +1 -1
  142. fides/ui-build/static/admin/_next/static/chunks/pages/systems/configure/{[id]-2fc7c0d3988427b3.js → [id]-9e815520adb3e580.js} +1 -1
  143. fides/ui-build/static/admin/_next/static/chunks/pages/systems-d8ce572ad07ed28c.js +1 -0
  144. fides/ui-build/static/admin/_next/static/chunks/pages/taxonomy-0cae23a599830708.js +1 -0
  145. fides/ui-build/static/admin/_next/static/chunks/pages/user-management/profile/{[id]-6217433a26599521.js → [id]-75d96422db98196f.js} +1 -1
  146. fides/ui-build/static/admin/_next/static/chunks/pages/{user-management-b6c4bf35c003965d.js → user-management-598f98fd88505e1e.js} +1 -1
  147. fides/ui-build/static/admin/_next/static/chunks/{webpack-8eac1ea5c825c8b4.js → webpack-0a3b419ab682b8f9.js} +1 -1
  148. fides/ui-build/static/admin/_next/static/css/012b10627a654d5c.css +1 -0
  149. fides/ui-build/static/admin/_next/static/css/{f38242c11f7fea64.css → 05d05fc31d09638b.css} +1 -1
  150. fides/ui-build/static/admin/_next/static/css/0fd6e0884cfcc5f3.css +1 -0
  151. fides/ui-build/static/admin/_next/static/css/14ba79c49597d37a.css +1 -0
  152. fides/ui-build/static/admin/_next/static/css/{34a7eb08b86ddb57.css → 3d6582469f7d56e0.css} +1 -1
  153. fides/ui-build/static/admin/_next/static/css/4861ca3e088f2d05.css +1 -0
  154. fides/ui-build/static/admin/_next/static/css/{de09ed8a0adf1ca2.css → 919f947a862d28cd.css} +1 -1
  155. fides/ui-build/static/admin/_next/static/css/a1800714b486e230.css +1 -0
  156. fides/ui-build/static/admin/_next/static/css/af32fcac7a177a0e.css +1 -0
  157. fides/ui-build/static/admin/_next/static/css/cb417f0587918f85.css +1 -0
  158. fides/ui-build/static/admin/_next/static/css/dd15c278b964de80.css +1 -0
  159. fides/ui-build/static/admin/_next/static/css/{5f393dea1c0d031c.css → f89607996ad54f4b.css} +1 -1
  160. fides/ui-build/static/admin/_next/static/css/f9a2a44d3d34c904.css +1 -0
  161. fides/ui-build/static/admin/add-systems/manual.html +1 -1
  162. fides/ui-build/static/admin/add-systems/multiple.html +1 -1
  163. fides/ui-build/static/admin/add-systems.html +1 -1
  164. fides/ui-build/static/admin/consent/configure/add-vendors.html +1 -1
  165. fides/ui-build/static/admin/consent/configure.html +1 -1
  166. fides/ui-build/static/admin/consent/privacy-experience/[id].html +1 -1
  167. fides/ui-build/static/admin/consent/privacy-experience/new.html +1 -1
  168. fides/ui-build/static/admin/consent/privacy-experience.html +1 -1
  169. fides/ui-build/static/admin/consent/privacy-notices/[id].html +1 -1
  170. fides/ui-build/static/admin/consent/privacy-notices/new.html +1 -1
  171. fides/ui-build/static/admin/consent/privacy-notices.html +1 -1
  172. fides/ui-build/static/admin/consent/properties.html +1 -1
  173. fides/ui-build/static/admin/consent/reporting.html +1 -1
  174. fides/ui-build/static/admin/consent.html +1 -1
  175. fides/ui-build/static/admin/data-catalog/[systemId]/projects/[projectUrn]/[resourceUrn].html +1 -1
  176. fides/ui-build/static/admin/data-catalog/[systemId]/projects/[projectUrn].html +1 -1
  177. fides/ui-build/static/admin/data-catalog/[systemId]/projects.html +1 -1
  178. fides/ui-build/static/admin/data-catalog/[systemId]/resources/[resourceUrn].html +1 -1
  179. fides/ui-build/static/admin/data-catalog/[systemId]/resources.html +1 -1
  180. fides/ui-build/static/admin/data-catalog.html +1 -1
  181. fides/ui-build/static/admin/data-discovery/action-center/datastore/[monitorId].html +1 -0
  182. fides/ui-build/static/admin/data-discovery/action-center/datastore.html +1 -0
  183. fides/ui-build/static/admin/data-discovery/action-center/website/[monitorId]/[systemId].html +1 -0
  184. fides/ui-build/static/admin/data-discovery/action-center/website/[monitorId].html +1 -0
  185. fides/ui-build/static/admin/data-discovery/action-center/website.html +1 -0
  186. fides/ui-build/static/admin/data-discovery/action-center.html +1 -1
  187. fides/ui-build/static/admin/data-discovery/activity.html +1 -1
  188. fides/ui-build/static/admin/data-discovery/detection/[resourceUrn].html +1 -1
  189. fides/ui-build/static/admin/data-discovery/detection.html +1 -1
  190. fides/ui-build/static/admin/data-discovery/discovery/[resourceUrn].html +1 -1
  191. fides/ui-build/static/admin/data-discovery/discovery.html +1 -1
  192. fides/ui-build/static/admin/datamap.html +1 -1
  193. fides/ui-build/static/admin/dataset/[datasetId]/[collectionName]/[...subfieldNames].html +1 -1
  194. fides/ui-build/static/admin/dataset/[datasetId]/[collectionName].html +1 -1
  195. fides/ui-build/static/admin/dataset/[datasetId].html +1 -1
  196. fides/ui-build/static/admin/dataset/new.html +1 -1
  197. fides/ui-build/static/admin/dataset.html +1 -1
  198. fides/ui-build/static/admin/datastore-connection/[id].html +1 -1
  199. fides/ui-build/static/admin/datastore-connection/new.html +1 -1
  200. fides/ui-build/static/admin/datastore-connection.html +1 -1
  201. fides/ui-build/static/admin/index.html +1 -1
  202. fides/ui-build/static/admin/integrations/[id].html +1 -1
  203. fides/ui-build/static/admin/integrations.html +1 -1
  204. fides/ui-build/static/admin/lib/fides-ext-gpp.js +1 -1
  205. fides/ui-build/static/admin/lib/fides-headless.js +1 -1
  206. fides/ui-build/static/admin/lib/fides-preview.js +1 -1
  207. fides/ui-build/static/admin/lib/fides-tcf.js +3 -3
  208. fides/ui-build/static/admin/lib/fides.js +3 -3
  209. fides/ui-build/static/admin/login/[provider].html +1 -1
  210. fides/ui-build/static/admin/login.html +1 -1
  211. fides/ui-build/static/admin/new-privacy-requests.html +1 -0
  212. fides/ui-build/static/admin/notifications/digests/[id].html +1 -1
  213. fides/ui-build/static/admin/notifications/digests/new.html +1 -1
  214. fides/ui-build/static/admin/notifications/digests.html +1 -1
  215. fides/ui-build/static/admin/notifications/providers/[key].html +1 -1
  216. fides/ui-build/static/admin/notifications/providers/new.html +1 -1
  217. fides/ui-build/static/admin/notifications/providers.html +1 -1
  218. fides/ui-build/static/admin/notifications/templates/[id].html +1 -1
  219. fides/ui-build/static/admin/notifications/templates/add-template.html +1 -1
  220. fides/ui-build/static/admin/notifications/templates.html +1 -1
  221. fides/ui-build/static/admin/notifications.html +1 -1
  222. fides/ui-build/static/admin/poc/ant-components.html +1 -1
  223. fides/ui-build/static/admin/poc/form-experiments/AntForm.html +1 -1
  224. fides/ui-build/static/admin/poc/form-experiments/FormikAntFormItem.html +1 -1
  225. fides/ui-build/static/admin/poc/form-experiments/FormikControlled.html +1 -1
  226. fides/ui-build/static/admin/poc/form-experiments/FormikField.html +1 -1
  227. fides/ui-build/static/admin/poc/form-experiments/FormikSpreadField.html +1 -1
  228. fides/ui-build/static/admin/poc/forms.html +1 -1
  229. fides/ui-build/static/admin/poc/table-migration.html +1 -1
  230. fides/ui-build/static/admin/privacy-requests/[id].html +1 -1
  231. fides/ui-build/static/admin/privacy-requests/configure/storage.html +1 -1
  232. fides/ui-build/static/admin/privacy-requests/configure.html +1 -1
  233. fides/ui-build/static/admin/privacy-requests.html +1 -1
  234. fides/ui-build/static/admin/properties/[id].html +1 -1
  235. fides/ui-build/static/admin/properties/add-property.html +1 -1
  236. fides/ui-build/static/admin/properties.html +1 -1
  237. fides/ui-build/static/admin/reporting/datamap.html +1 -1
  238. fides/ui-build/static/admin/settings/about/alpha.html +1 -1
  239. fides/ui-build/static/admin/settings/about.html +1 -1
  240. fides/ui-build/static/admin/settings/consent/[configuration_id]/[purpose_id].html +1 -1
  241. fides/ui-build/static/admin/settings/consent.html +1 -1
  242. fides/ui-build/static/admin/settings/custom-fields/[id].html +1 -1
  243. fides/ui-build/static/admin/settings/custom-fields/new.html +1 -1
  244. fides/ui-build/static/admin/settings/custom-fields.html +1 -1
  245. fides/ui-build/static/admin/settings/domain-records.html +1 -1
  246. fides/ui-build/static/admin/settings/domains.html +1 -1
  247. fides/ui-build/static/admin/settings/email-templates.html +1 -1
  248. fides/ui-build/static/admin/settings/locations.html +1 -1
  249. fides/ui-build/static/admin/settings/organization.html +1 -1
  250. fides/ui-build/static/admin/settings/privacy-requests.html +1 -1
  251. fides/ui-build/static/admin/settings/regulations.html +1 -1
  252. fides/ui-build/static/admin/systems/configure/[id]/test-datasets.html +1 -1
  253. fides/ui-build/static/admin/systems/configure/[id].html +1 -1
  254. fides/ui-build/static/admin/systems.html +1 -1
  255. fides/ui-build/static/admin/taxonomy.html +1 -1
  256. fides/ui-build/static/admin/user-management/new.html +1 -1
  257. fides/ui-build/static/admin/user-management/profile/[id].html +1 -1
  258. fides/ui-build/static/admin/user-management.html +1 -1
  259. fides/ui-build/static/admin/_next/static/chunks/155-bf4e3ffb18f29226.js +0 -1
  260. fides/ui-build/static/admin/_next/static/chunks/1896-49010da5c2705fc5.js +0 -1
  261. fides/ui-build/static/admin/_next/static/chunks/2150-930ffaf2c4718edc.js +0 -1
  262. fides/ui-build/static/admin/_next/static/chunks/255-1bc0cbef7a59cdc6.js +0 -1
  263. fides/ui-build/static/admin/_next/static/chunks/2921-9b596ba7f5267afc.js +0 -1
  264. fides/ui-build/static/admin/_next/static/chunks/2962-e92d525bf570a9a3.js +0 -1
  265. fides/ui-build/static/admin/_next/static/chunks/3550-83cb70e80cbe41ba.js +0 -1
  266. fides/ui-build/static/admin/_next/static/chunks/4817-066598cef25d7e88.js +0 -1
  267. fides/ui-build/static/admin/_next/static/chunks/6315-4a2151f87c7eefb6.js +0 -1
  268. fides/ui-build/static/admin/_next/static/chunks/6419-9b3a86af57c86791.js +0 -1
  269. fides/ui-build/static/admin/_next/static/chunks/6853-6d64d627df6f8194.js +0 -1
  270. fides/ui-build/static/admin/_next/static/chunks/7245-53a20677c49b41c8.js +0 -1
  271. fides/ui-build/static/admin/_next/static/chunks/8373-43b6df89a2085d6b.js +0 -1
  272. fides/ui-build/static/admin/_next/static/chunks/9046-3a08a09a598396ca.js +0 -1
  273. fides/ui-build/static/admin/_next/static/chunks/9070-6d3aaaf5aa5913ba.js +0 -1
  274. fides/ui-build/static/admin/_next/static/chunks/9682-65d253d54f84f6f2.js +0 -1
  275. fides/ui-build/static/admin/_next/static/chunks/9965-4709f43bf62af9a9.js +0 -1
  276. fides/ui-build/static/admin/_next/static/chunks/pages/add-systems/manual-055d058d16c02957.js +0 -1
  277. fides/ui-build/static/admin/_next/static/chunks/pages/add-systems-0058fe05f2d23d1a.js +0 -1
  278. fides/ui-build/static/admin/_next/static/chunks/pages/consent/reporting-e9ec351281c54822.js +0 -1
  279. fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/action-center/[monitorId]/[systemId]-e50e9c8e11412b2a.js +0 -1
  280. fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/action-center/[monitorId]/data-explorer-09a3a992e564f971.js +0 -1
  281. fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/action-center/[monitorId]-878aa4ab0746df5b.js +0 -1
  282. fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/action-center-a2e9c0bfa67c633d.js +0 -1
  283. fides/ui-build/static/admin/_next/static/chunks/pages/datamap-18f255a8bbeecaa4.js +0 -1
  284. fides/ui-build/static/admin/_next/static/chunks/pages/datastore-connection-a8fc95a46de38b35.js +0 -1
  285. fides/ui-build/static/admin/_next/static/chunks/pages/integrations/[id]-2f1dc17eba11fb4e.js +0 -1
  286. fides/ui-build/static/admin/_next/static/chunks/pages/integrations-bbec0140433a199b.js +0 -1
  287. fides/ui-build/static/admin/_next/static/chunks/pages/notifications/templates-4918f86f7300ac9b.js +0 -1
  288. fides/ui-build/static/admin/_next/static/chunks/pages/poc/ant-components-39b5586d9c8b64aa.js +0 -1
  289. fides/ui-build/static/admin/_next/static/chunks/pages/poc/form-experiments/AntForm-5163f3213377bd35.js +0 -1
  290. fides/ui-build/static/admin/_next/static/chunks/pages/poc/form-experiments/FormikAntFormItem-0b1547cd9b114c6b.js +0 -1
  291. fides/ui-build/static/admin/_next/static/chunks/pages/poc/form-experiments/FormikControlled-da562cba4cffd6bb.js +0 -1
  292. fides/ui-build/static/admin/_next/static/chunks/pages/poc/form-experiments/FormikField-3a587676869d2ef6.js +0 -1
  293. fides/ui-build/static/admin/_next/static/chunks/pages/poc/forms-defc3b917306a6d8.js +0 -1
  294. fides/ui-build/static/admin/_next/static/chunks/pages/privacy-requests/[id]-787621468b5a7619.js +0 -1
  295. fides/ui-build/static/admin/_next/static/chunks/pages/privacy-requests-da634187d8201ab3.js +0 -1
  296. fides/ui-build/static/admin/_next/static/chunks/pages/reporting/datamap-e410d13a2b35cff4.js +0 -1
  297. fides/ui-build/static/admin/_next/static/chunks/pages/settings/consent/[configuration_id]/[purpose_id]-aec1bf8a409ec75f.js +0 -1
  298. fides/ui-build/static/admin/_next/static/chunks/pages/systems-86f5557384124f79.js +0 -1
  299. fides/ui-build/static/admin/_next/static/chunks/pages/taxonomy-2589729c47976357.js +0 -1
  300. fides/ui-build/static/admin/_next/static/css/23cf870196941c9a.css +0 -1
  301. fides/ui-build/static/admin/_next/static/css/304c6f148886a8d4.css +0 -1
  302. fides/ui-build/static/admin/_next/static/hRLR7azkI57zC2PfdYodO/_buildManifest.js +0 -1
  303. fides/ui-build/static/admin/data-discovery/action-center/[monitorId]/[systemId].html +0 -1
  304. fides/ui-build/static/admin/data-discovery/action-center/[monitorId]/data-explorer.html +0 -1
  305. fides/ui-build/static/admin/data-discovery/action-center/[monitorId].html +0 -1
  306. {ethyca_fides-2.72.3rc1.dist-info → ethyca_fides-2.73.0.dist-info}/WHEEL +0 -0
  307. {ethyca_fides-2.72.3rc1.dist-info → ethyca_fides-2.73.0.dist-info}/entry_points.txt +0 -0
  308. {ethyca_fides-2.72.3rc1.dist-info → ethyca_fides-2.73.0.dist-info}/licenses/LICENSE +0 -0
  309. {ethyca_fides-2.72.3rc1.dist-info → ethyca_fides-2.73.0.dist-info}/top_level.txt +0 -0
  310. /fides/ui-build/static/admin/_next/static/{hRLR7azkI57zC2PfdYodO → 6kEWO-NXzxn1tvUedYFei}/_ssgManifest.js +0 -0
  311. /fides/ui-build/static/admin/_next/static/chunks/pages/data-catalog/[systemId]/projects/[projectUrn]/{[resourceUrn]-3b59925f6c9a13a9.js → [resourceUrn]-5d133ec635cd716c.js} +0 -0
  312. /fides/ui-build/static/admin/_next/static/chunks/pages/data-catalog/[systemId]/resources/{[resourceUrn]-8d7d9152e215c3b6.js → [resourceUrn]-9d8efe43b69a285d.js} +0 -0
  313. /fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/detection/{[resourceUrn]-260f5deb68966b70.js → [resourceUrn]-2df143c1e1f79040.js} +0 -0
  314. /fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/{detection-d735dab3d9f3adc5.js → detection-e37c800313e2a422.js} +0 -0
  315. /fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/discovery/{[resourceUrn]-c7f055275a2c503f.js → [resourceUrn]-7022ca5fa834b633.js} +0 -0
  316. /fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/{discovery-b1cfd55c7e127865.js → discovery-6178e22397f20f92.js} +0 -0
  317. /fides/ui-build/static/admin/_next/static/chunks/pages/user-management/{new-e399005c3bb4db1b.js → new-bc1568bb47d198a9.js} +0 -0
@@ -1 +0,0 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2369],{1565:function(e,t,s){(window.__NEXT_P=window.__NEXT_P||[]).push(["/privacy-requests",function(){return s(77169)}])},35287:function(e,t,s){"use strict";var i=s(24246),l=s(20595),a=s(88038),r=s.n(a);s(27378),t.Z=e=>{let{children:t,title:s,mainProps:a}=e;return(0,i.jsxs)(l.kCb,{"data-testid":s,direction:"column",height:"calc(100vh - 48px)",width:"calc(100vw - 240px)",children:[(0,i.jsxs)(r(),{children:[(0,i.jsxs)("title",{children:["Fides Admin UI - ",s]}),(0,i.jsx)("meta",{name:"description",content:"Privacy Engineering Platform"}),(0,i.jsx)("link",{rel:"icon",href:"/favicon.ico"})]}),(0,i.jsx)(l.kCb,{px:10,py:6,as:"main",overflow:"auto",direction:"column",flex:1,minWidth:0,...a,children:t})]})}},87361:function(e,t,s){"use strict";var i=s(24246),l=s(20595);t.Z=e=>{let{title:t,text:s,onClose:a}=e;return(0,i.jsxs)(l.Ugi,{backgroundColor:"gray.50",border:"1px solid",borderRadius:"md",justifyContent:"space-between",py:4,pr:6,pl:3,"data-testid":"empty-state",gap:2,position:"relative",children:[a&&(0,i.jsx)(l.Two,{boxSize:5,position:"absolute",right:3,top:3,zIndex:1,cursor:"pointer",p:1,onClick:a}),(0,i.jsx)(l.iid,{alignSelf:"start",color:"minos",mt:.5,flexGrow:0}),(0,i.jsxs)(l.kCb,{direction:"column",gap:2,flexGrow:1,children:[(0,i.jsx)(l.X6q,{fontSize:"md",children:t}),(0,i.jsx)(l.xvT,{fontSize:"sm",color:"gray.600",lineHeight:"5",children:s})]})]})}},96718:function(e,t,s){"use strict";s.d(t,{z:function(){return a}});var i=s(24246),l=s(20595);let a=e=>{let{...t}=e;return(0,i.jsx)(l.WPr,{defaultActiveFirstOption:!1,maxTagCount:"responsive",allowClear:!0,styles:t.mode?void 0:{popup:{root:{width:"auto",minWidth:"200px"}}},className:"w-auto","data-testid":"filter-select",...t})}},97181:function(e,t,s){"use strict";s.d(t,{d:function(){return o}});var i=s(24246),l=s(20595),a=s(34090),r=s(27378),n=s(46238),d=s(40324);let o=e=>{let{name:t,label:s,labelProps:o,tooltip:c,isRequired:u,layout:p="inline",helperText:m,...x}=e,[h,v,{setValue:y}]=(0,a.U$)(t),j=!!(v.touched&&v.error),[g,f]=(0,r.useState)("");h.value||"tags"!==x.mode&&"multiple"!==x.mode||(h.value=[]),"tags"===x.mode&&"string"==typeof h.value&&(h.value=[h.value]);let _="tags"===x.mode?(e,t)=>e?e.value!==g||h.value.includes(g)?x.optionRender?x.optionRender(e,t):e.label:'Create "'.concat(g,'"'):void 0:x.optionRender||void 0,b=e=>{f(e),x.onSearch&&x.onSearch(e)},q=(e,t)=>{y(e),x.onChange&&x.onChange(e,t)};return"inline"===p?(0,i.jsx)(l.NIc,{isInvalid:j,isRequired:u,children:(0,i.jsxs)(l.rjZ,{templateColumns:s?"1fr 3fr":"1fr",children:[s?(0,i.jsx)(d.__,{htmlFor:x.id||t,...o,children:s}):null,(0,i.jsxs)(l.jqI,{align:"center",children:[(0,i.jsxs)(l.jqI,{vertical:!0,flex:1,className:"mr-2",children:[(0,i.jsx)(l.WPr,{...h,id:x.id||t,"data-testid":"controlled-select-".concat(h.name),...x,optionRender:_,onSearch:"tags"===x.mode?b:void 0,onChange:q,value:h.value||void 0,status:j?"error":void 0}),m&&(0,i.jsx)(l.Q6r,{children:m}),(0,i.jsx)(d.Bc,{isInvalid:j,message:v.error,fieldName:h.name})]}),(0,i.jsx)(n.b,{label:c,className:j?"mt-2 self-start":void 0})]})]})}):(0,i.jsx)(l.NIc,{isInvalid:j,isRequired:u,children:(0,i.jsxs)(l.gCW,{alignItems:"start",children:[(0,i.jsxs)(l.jqI,{align:"center",children:[s?(0,i.jsx)(d.__,{htmlFor:x.id||t,fontSize:"xs",my:0,mr:1,...o,children:s}):null,(0,i.jsx)(n.b,{label:c})]}),(0,i.jsx)(l.WPr,{...h,id:x.id||t,"data-testid":"controlled-select-".concat(h.name),...x,optionRender:_,onSearch:"tags"===x.mode?b:void 0,onChange:q,value:h.value||void 0,status:j?"error":void 0}),m&&(0,i.jsx)(l.Q6r,{style:{marginTop:0},children:m}),(0,i.jsx)(d.Bc,{isInvalid:j,message:v.error,fieldName:h.name})]})})}},9270:function(e,t,s){"use strict";s.d(t,{S:function(){return a}});var i=s(27378),l=s(36866);let a=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=(0,l.h)(e),{pageIndex:s,pageSize:a,updatePageIndex:r,updatePageSize:n,pageSizeOptions:d,showSizeChanger:o}=t,c=(0,i.useMemo)(()=>({current:s,pageSize:a,showSizeChanger:o,pageSizeOptions:d.map(String),onChange:r,onShowSizeChange:(e,t)=>{n(t)}}),[s,a,o,d,r,n]);return{...t,paginationProps:c}}},71784:function(e,t,s){"use strict";s.d(t,{DE:function(){return n},I3:function(){return l},kN:function(){return r},rE:function(){return a}});var i=s(39449);let l=[...new Map([[i.q2.APPROVED,"Approved"],[i.q2.AWAITING_EMAIL_SEND,"Awaiting email send"],[i.q2.CANCELED,"Canceled"],[i.q2.COMPLETE,"Completed"],[i.q2.DENIED,"Denied"],[i.q2.ERROR,"Error"],[i.q2.IN_PROCESSING,"In progress"],[i.q2.PENDING,"New"],[i.q2.PAUSED,"Paused"],[i.q2.IDENTITY_UNVERIFIED,"Unverified"],[i.q2.REQUIRES_INPUT,"Requires input"],[i.q2.REQUIRES_MANUAL_FINALIZATION,"Requires finalization"]])].map(e=>{let[t,s]=e;return{label:s,value:t}}),a=new Map([[i.Us.ACCESS,"Access"],[i.Us.ERASURE,"Erasure"],[i.Us.CONSENT,"Consent"],[i.Us.UPDATE,"Update"]]),r=[...a].map(e=>{let[t,s]=e;return{label:s,value:t}}),n={local:"local",s3:"s3",gcs:"gcs"}},77169:function(e,t,s){"use strict";s.r(t),s.d(t,{default:function(){return eU}});var i,l,a=s(24246),r=s(35287),n=s(20595),d=s(65218),o=s.n(d),c=s(27378),u=s(25980),p=s(19904),m=s(56141),x=s.n(m),h=s(86677),v=s(16134),y=s(91317),j=s(18225),g=s(77830),f=s(28407),_=s(16394),b=s(39449),q=s(32735),C=s(59969),S=s(71784),k=s(45116);let E=e=>{let{label:t,children:s}=e;return(0,a.jsxs)("div",{className:"flex items-center",children:[(0,a.jsx)("div",{className:"shrink-0 grow-0 basis-1/3 pr-2",children:(0,a.jsxs)(n.AntTypography.Text,{className:"text-gray-700",children:[t,":"]})}),(0,a.jsx)("div",{className:"min-w-0 shrink grow text-gray-600",children:s})]})},R=e=>{let{task:t}=e,s=t.request_type===b.k6.ACCESS?b.Us.ACCESS:b.Us.ERASURE,i=S.rE.get(s)||t.request_type;return(0,a.jsxs)("div",{className:"flex flex-col space-y-3","data-testid":"task-details-container",children:[(0,a.jsx)(E,{label:"Name",children:(0,a.jsx)(n.AntTypography.Text,{children:t.name})}),(0,a.jsx)(E,{label:"Description",children:(0,a.jsx)(n.AntTypography.Text,{children:t.description||"-"})}),(0,a.jsx)(E,{label:"Request Type",children:(0,a.jsx)(n.AntTypography.Text,{children:i})}),(0,a.jsx)(E,{label:"Assigned To",children:t.assigned_users&&t.assigned_users.length>0?(0,a.jsx)("div",{className:"flex flex-wrap gap-1","data-testid":"assigned-users-tags",children:t.assigned_users.map(e=>(0,a.jsx)(n.j8w,{"data-testid":"assigned-user-tag-".concat(e.id),children:"".concat(e.first_name||""," ").concat(e.last_name||"").trim()||e.email_address||"Unknown User"},e.id))}):(0,a.jsx)(n.AntTypography.Text,{children:"No one assigned"})}),t.privacy_request.subject_identities&&Object.keys(t.privacy_request.subject_identities).length>0?(0,a.jsx)(E,{label:"Subject identities",children:(0,a.jsx)("div",{className:"flex flex-wrap gap-1",children:Object.entries(t.privacy_request.subject_identities).map(e=>{let[t,s]=e;return(0,a.jsxs)(n.j8w,{children:[t,": ",String(s)]},t)})})}):null,t.privacy_request.custom_fields&&Object.keys(t.privacy_request.custom_fields).length>0?(0,a.jsx)(E,{label:"Custom fields",children:(0,a.jsx)("div",{className:"flex flex-wrap gap-1",children:Object.entries(t.privacy_request.custom_fields).filter(e=>{let[,t]=e;return t}).map(e=>{let[t,s]=e;return(0,a.jsxs)(n.j8w,{children:[t,": ",String(s)]},t)})})}):null]})},w=e=>{let{isOpen:t,onClose:s,task:i}=e,[l,{isLoading:r}]=(0,k.HP)(),[d,o]=(0,c.useState)(""),[u,p]=(0,c.useState)(!1),[m,x]=(0,c.useState)(""),[h,v]=(0,c.useState)([]),y=async()=>{try{await l({privacy_request_id:i.privacy_request.id,manual_field_id:i.manual_field_id,field_value:i.input_type===b.PF.TEXT?d:i.input_type===b.PF.CHECKBOX?u.toString():void 0,comment_text:m||void 0,attachments:h.length>0?h.map(e=>e.originFileObj).filter(Boolean):void 0}).unwrap(),o(""),p(!1),x(""),v([]),s()}catch(e){n.Pg3.error("Failed to complete task. Please try again.")}};return(0,a.jsxs)(n.u_l,{isOpen:t,onClose:s,size:"700px",isCentered:!0,children:[(0,a.jsx)(n.ZAr,{}),(0,a.jsxs)(n.hzk,{maxWidth:"700px","data-testid":"complete-task-modal",children:[(0,a.jsx)(n.xBx,{children:(0,a.jsx)(n.AntTypography.Title,{level:4,children:"Complete Task"})}),(0,a.jsx)(n.fef,{children:(0,a.jsxs)("div",{className:"flex flex-col space-y-6",children:[(0,a.jsx)("div",{children:(0,a.jsx)(R,{task:i})}),(0,a.jsx)(n.htM,{}),(0,a.jsx)("div",{children:(0,a.jsxs)("div",{className:"flex flex-col space-y-4",children:[(()=>{switch(i.input_type){case b.PF.TEXT:return(0,a.jsxs)("div",{className:"space-y-2",children:[(0,a.jsx)("div",{className:"text-sm font-medium text-gray-700",children:"Subject data"}),(0,a.jsx)(n.AntInput.TextArea,{value:d,onChange:e=>o(e.target.value),placeholder:"Enter your response...",rows:4,"data-testid":"complete-modal-text-input"})]});case b.PF.CHECKBOX:return(0,a.jsx)("div",{className:"space-y-2",children:(0,a.jsx)(n.E_O,{checked:u,onChange:e=>p(e.target.checked),"data-testid":"complete-modal-checkbox",children:"The task has been completed"})});default:return(0,a.jsxs)("div",{className:"space-y-2",children:[(0,a.jsx)("div",{className:"text-sm font-medium text-gray-700",children:"Upload Files"}),(0,a.jsx)("div",{children:(0,a.jsx)(n.pMK,{fileList:h,onChange:e=>{let{fileList:t}=e;return v(t)},beforeUpload:()=>!1,"data-testid":"complete-modal-file-upload",multiple:!0,children:(0,a.jsx)(n.wpx,{"data-testid":"complete-modal-upload-button",children:"Click to Upload"})})})]})}})(),(0,a.jsxs)("div",{className:"space-y-2",children:[(0,a.jsx)("div",{className:"text-sm font-medium text-gray-700",children:"Internal comment"}),(0,a.jsx)(n.AntInput.TextArea,{value:m,onChange:e=>x(e.target.value),placeholder:"Add any additional comments...",rows:3,"data-testid":"complete-modal-comment-input"})]})]})})]})}),(0,a.jsx)(n.mzw,{children:(0,a.jsxs)(n.vyj,{children:[(0,a.jsx)(n.wpx,{onClick:()=>{o(""),p(!1),x(""),v([]),s()},disabled:r,"data-testid":"complete-modal-cancel-button",children:"Cancel"}),(0,a.jsx)(n.wpx,{type:"primary",onClick:y,loading:r,disabled:!(()=>{switch(i.input_type){case b.PF.TEXT:return d.trim().length>0;case b.PF.CHECKBOX:return u;default:return h.length>0}})(),"data-testid":"complete-modal-save-button",children:"Save"})]})})]})]})},T=e=>{let{isOpen:t,onClose:s,task:i}=e,[l,{isLoading:r}]=(0,k.DA)(),[d,o]=(0,c.useState)(""),u=async()=>{try{await l({privacy_request_id:i.privacy_request.id,manual_field_id:i.manual_field_id,skip_reason:d}).unwrap(),o(""),s()}catch(e){n.Pg3.error("Failed to skip task. Please try again.")}};return(0,a.jsxs)(n.u_l,{isOpen:t,onClose:s,size:"700px",isCentered:!0,children:[(0,a.jsx)(n.ZAr,{}),(0,a.jsxs)(n.hzk,{maxWidth:"700px","data-testid":"skip-task-modal",children:[(0,a.jsx)(n.xBx,{children:(0,a.jsx)(n.AntTypography.Title,{level:4,children:"Skip Task"})}),(0,a.jsx)(n.fef,{children:(0,a.jsxs)("div",{className:"flex flex-col space-y-6",children:[(0,a.jsx)("div",{children:(0,a.jsx)(R,{task:i})}),(0,a.jsx)(n.htM,{}),(0,a.jsx)("div",{children:(0,a.jsx)("div",{className:"flex flex-col space-y-4",children:(0,a.jsxs)("div",{className:"space-y-2",children:[(0,a.jsx)("div",{className:"text-sm font-medium text-gray-700",children:"Reason for skipping (Required)"}),(0,a.jsx)(n.AntInput.TextArea,{value:d,onChange:e=>o(e.target.value),placeholder:"Please provide a reason for skipping this task...",rows:4,"data-testid":"skip-modal-comment-input"})]})})})]})}),(0,a.jsx)(n.mzw,{children:(0,a.jsxs)(n.vyj,{children:[(0,a.jsx)(n.wpx,{onClick:()=>{o(""),s()},disabled:r,"data-testid":"skip-modal-cancel-button",children:"Cancel"}),(0,a.jsx)(n.wpx,{type:"primary",onClick:u,loading:r,disabled:!d.trim(),danger:!0,"data-testid":"skip-modal-skip-button",children:"Skip Task"})]})})]})]})},I=e=>{let{task:t}=e,s=(0,h.useRouter)(),{isOpen:i,onOpen:l,onClose:r}=(0,n.qY0)(),{isOpen:d,onOpen:o,onClose:c}=(0,n.qY0)(),u=(0,p.Tg)([b.Sh.PRIVACY_REQUEST_READ]);if(t.status!==b.OS.NEW)return null;let m=[{key:"skip",label:"Skip task",onClick:o}];return u&&m.push({key:"go-to-request",label:"Go to request",onClick:()=>{s.push({pathname:g.ld,query:{id:t.privacy_request.id}})}}),(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)(n.vyj,{size:"small",children:[(0,a.jsx)(n.wpx,{type:"default",onClick:l,size:"small",children:"Complete"}),(0,a.jsx)(n.S0p,{menu:{items:m},trigger:["click"],placement:"bottomRight",overlayStyle:{minWidth:120},children:(0,a.jsx)(n.wpx,{size:"small",icon:(0,a.jsx)(n.PJP.r43,{}),"aria-label":"More actions"})})]}),(0,a.jsx)(w,{isOpen:i,onClose:r,task:t}),(0,a.jsx)(T,{isOpen:d,onClose:c,task:t})]})},A={[b.OS.NEW]:{color:"info",label:"New"},[b.OS.COMPLETED]:{color:"success",label:"Completed"},[b.OS.SKIPPED]:{color:"marble",label:"Skipped"}},N=[{text:"New",value:b.OS.NEW},{text:"Completed",value:b.OS.COMPLETED},{text:"Skipped",value:b.OS.SKIPPED}],P=[{text:"Access",value:b.k6.ACCESS},{text:"Erasure",value:b.k6.ERASURE}],O=e=>{let{systemFilters:t,userFilters:s,onUserClick:i,currentFilters:l,hasAccessToAllTasks:r}=e,d=[{title:"Task name",dataIndex:"name",key:"name",minWidth:100,render:e=>(0,a.jsx)(n.AntTypography.Text,{ellipsis:{tooltip:e},children:e})},{title:"Status",dataIndex:"status",key:"status",width:110,render:e=>(0,a.jsx)(n.j8w,{color:A[e].color,"data-testid":"manual-task-status-tag",children:A[e].label}),filters:N,filterMultiple:!1},{title:"System",dataIndex:["system","name"],key:"system_name",minWidth:100,render:e=>(0,a.jsx)(n.AntTypography.Text,{ellipsis:{tooltip:e},children:e}),filters:t,filterMultiple:!1},{title:"Type",dataIndex:"request_type",key:"request_type",width:80,render:e=>{let t=e===b.k6.ACCESS?b.Us.ACCESS:b.Us.ERASURE,s=S.rE.get(t)||e;return(0,a.jsx)(n.AntTypography.Text,{ellipsis:{tooltip:s},children:s})},filters:P,filterMultiple:!1},{title:"Assigned to",dataIndex:"assigned_users",key:"assigned_users",minWidth:100,render:e=>{if(!e||0===e.length)return(0,a.jsx)(n.AntTypography.Text,{children:"-"});let t=e.map(e=>({label:(0,_.gJ)(e),value:e.id})),s=e.map(e=>e.id);return(0,a.jsx)(n.d3V,{value:s,options:t,readonly:!0,onTagClick:e=>i(String(e))})},filters:s,filterMultiple:!1,defaultFilteredValue:l.assignedUsers?[l.assignedUsers]:void 0},{title:"Days left",dataIndex:["privacy_request","days_left"],key:"days_left",width:90,render:e=>(0,a.jsx)(C.Z,{daysLeft:e||0,includeText:!1,status:b.q2.PENDING})},{title:"Subject identity",dataIndex:["privacy_request","subject_identities"],key:"subject_identities",minWidth:120,render:e=>{if(!e)return(0,a.jsx)(n.AntTypography.Text,{children:"-"});let t=e.email||e.phone_number||"";return(0,a.jsx)(n.AntTypography.Text,{ellipsis:{tooltip:t},children:t})}},{title:"Actions",key:"actions",width:145,render:(e,t)=>(0,a.jsx)(I,{task:t})}];return r?d:d.filter(e=>"assigned_users"!==e.key)},U=()=>{let e=(0,h.useRouter)(),t=(0,v.C)(y.dy),[s,i]=(0,c.useState)(1),[l,r]=(0,c.useState)(25),d=(0,p.Tg)([b.Sh.MANUAL_FIELD_READ_ALL]),o=e.query.privacy_request_id||void 0,u=(0,c.useMemo)(()=>{let e={};return(null==t?void 0:t.id)&&!o&&(e.assignedUsers=t.id),o&&"string"==typeof o&&(e.privacyRequestId=o),e},[null==t?void 0:t.id,o]),[m,C]=(0,c.useState)(u),{data:S,isLoading:E,isFetching:R}=(0,k.Ym)({page:s,size:l,status:m.status,systemName:m.systemName,requestType:m.requestType,assignedUserId:m.assignedUsers,privacyRequestId:m.privacyRequestId}),{data:w}=(0,k.Ym)({page:1,size:1}),{items:T,total:I}=(0,c.useMemo)(()=>S||{items:[],total:0,pages:0,filter_options:{assigned_users:[],systems:[]}},[S]),A=(0,c.useMemo)(()=>(null==w?void 0:w.filter_options)||{assigned_users:[],systems:[]},[w]),N=O({systemFilters:(0,c.useMemo)(()=>{var e;return(null==A?void 0:null===(e=A.systems)||void 0===e?void 0:e.map(e=>({text:e.name,value:e.name})))||[]},[null==A?void 0:A.systems]),userFilters:(0,c.useMemo)(()=>{var e;let s=(null==A?void 0:null===(e=A.assigned_users)||void 0===e?void 0:e.map(e=>({text:(0,_.gJ)(e),value:e.id})))||[];return(null==t?void 0:t.id)&&!s.some(e=>e.value===t.id)&&s.push({text:(0,_.gJ)(t,{fallbackToId:!0}),value:t.id}),s},[null==A?void 0:A.assigned_users,t]),onUserClick:t=>{e.push({pathname:g.fw,query:{id:t}})},currentFilters:m,hasAccessToAllTasks:d}),P=(0,c.useMemo)(()=>x()(m,u),[m,u]);return E?(0,a.jsx)(j.Z,{}):(0,a.jsxs)("div",{className:"mt-2 space-y-4",children:[(0,a.jsx)(n.kCb,{gap:3,align:"center",className:"mb-4",children:(0,a.jsx)(f.H,{globalFilter:m.privacyRequestId||"",setGlobalFilter:e=>{let t={...m};e&&e.trim()?t.privacyRequestId=e.trim():delete t.privacyRequestId,C(t),i(1)},placeholder:"Search by privacy request ID",testid:"privacy-request-id-filter"})}),(0,a.jsx)(n.V5H,{columns:N,dataSource:T,rowKey:e=>"".concat(e.privacy_request.id,"-").concat(e.manual_field_id),pagination:{current:s,pageSize:l,pageSizeOptions:q.VZ,total:I||0,showTotal:(e,t)=>"".concat(t[0],"-").concat(t[1]," of ").concat(e," items"),onChange:(e,t)=>{i(e),t!==l&&(r(t),i(1))}},onChange:(e,t)=>{let s={privacyRequestId:m.privacyRequestId};t.status&&([s.status]=t.status),t.system_name&&([s.systemName]=t.system_name),t.request_type&&([s.requestType]=t.request_type),t.assigned_users&&([s.assignedUsers]=t.assigned_users),C(s),i(1)},locale:{emptyText:P?(0,a.jsx)("div",{"data-testid":"empty-state-current-user",className:"my-4",children:(0,a.jsxs)(n.AntTypography.Paragraph,{children:["You have no tasks assigned."," ",d&&(0,a.jsx)("span",{children:'You can modify the "Assigned to" column filter to view tasks assigned to other users.'})]})}):(0,a.jsx)("div",{"data-testid":"empty-state",className:"my-4",children:"No results found."})},loading:E||R,scroll:{scrollToFirstRowOnChange:!0},tableLayout:"fixed",className:"[&_th]:!break-normal"})]})};var z=s(59003),D=s(92222),F=s(40431),M=s(16125),Z=s(14048),L=s(47935),W=s(90867);let Y={approved:{colorScheme:"success",label:"Approved"},complete:{label:"Completed",colorScheme:"success"},awaiting_email_send:{label:"Awaiting Email Send",colorScheme:"marble"},denied:{label:"Denied",colorScheme:"warning"},canceled:{label:"Canceled",colorScheme:"marble"},error:{label:"Error",colorScheme:"error"},in_processing:{label:"In Progress",colorScheme:"caution"},paused:{label:"Paused",colorScheme:"marble"},pending:{label:"New",colorScheme:"info"},identity_unverified:{label:"Unverified",colorScheme:"marble"},requires_input:{colorScheme:"minos",label:"Requires Input"},requires_manual_finalization:{colorScheme:"minos",label:"Requires Finalization"}},B=e=>{let{value:t}=e;return(0,a.jsx)(L.A4,{color:Y[t].colorScheme,value:Y[t].label,"data-testid":"request-status-badge"})},V=e=>{let t,{daysLeft:s,timeframe:i=45,status:l,includeText:r=!1}=e;if(null==s||l===b.q2.COMPLETE||l===b.q2.CANCELED||l===b.q2.DENIED||l===b.q2.IDENTITY_UNVERIFIED)return null;let n=100*s/i;return n<25?t="error":n>=75?t="success":n>=25&&(t="warning"),(0,a.jsx)(L.A4,{value:r?"".concat(s," days left"):s.toString(),color:t})},K=e=>Array.from(new Set(e.filter(e=>Object.values(b.Us).includes(e.action_type)).map(e=>e.action_type))),G=e=>{let{value:t}=e,s=K(t).map(e=>S.rE.get(e));return(0,a.jsx)(L.WP,{value:s,cellState:{isExpanded:!0}})};var Q=s(58452),X=s(7426),J=s(57526),H=s(66548),$=s(45489),ee=s(42478);let et=e=>{var t;let{subjectRequest:s,...i}=e,l=(0,n.qY0)(),r=(0,n.qY0)(),d=(0,n.qY0)(),o=(0,n.qY0)(),{handleApproveRequest:c,handleDenyRequest:u,handleDeleteRequest:m,handleFinalizeRequest:x,isLoading:h}=(0,$.Z)({subjectRequest:s}),{data:v}=(0,X.tB)({api_set:!1}),{data:y}=(0,ee.JE)(),j=null==v?void 0:null===(t=v.notifications)||void 0===t?void 0:t.send_request_completion_notification;return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)(n.Ugi,{...i,children:["pending"!==s.status?null:(0,a.jsx)(n.wpx,{title:"Approve","aria-label":"Approve",icon:(0,a.jsx)(n.PJP.MCw,{}),onClick:l.onOpen,loading:h,disabled:h,"data-testid":"privacy-request-approve-btn",size:"small"}),"pending"!==s.status?null:(0,a.jsx)(n.wpx,{title:"Deny","aria-label":"Deny",icon:(0,a.jsx)(n.PJP.x8P,{}),onClick:r.onOpen,loading:h,disabled:h,"data-testid":"privacy-request-deny-btn",size:"small"}),s.status!==b.q2.REQUIRES_MANUAL_FINALIZATION?null:(0,a.jsx)(p.ZP,{scopes:[b.Sh.PRIVACY_REQUEST_REVIEW],children:(0,a.jsx)(n.wpx,{title:"Finalize","aria-label":"Finalize",icon:(0,a.jsx)(n.PJP.Ok8,{}),onClick:o.onOpen,loading:h,disabled:h,"data-testid":"privacy-request-finalize-btn",size:"small"})}),(0,a.jsx)(p.ZP,{scopes:[b.Sh.PRIVACY_REQUEST_DELETE],children:(0,a.jsx)(n.wpx,{title:"Delete","aria-label":"Delete",icon:(0,a.jsx)(n.PJP.ZNm,{size:14}),onClick:d.onOpen,loading:h,disabled:h,"data-testid":"privacy-request-delete-btn",size:"small"})})]}),(0,a.jsx)(n.h_i,{children:(0,a.jsx)(J.Z,{isOpen:l.isOpen,isLoading:h,onClose:l.onClose,onApproveRequest:c,subjectRequest:s})}),(0,a.jsx)(n.h_i,{children:(0,a.jsx)(H.Z,{isOpen:r.isOpen,onClose:r.onClose,onDenyRequest:u})}),(0,a.jsx)(Q.Z,{isOpen:d.isOpen,onClose:d.onClose,onConfirm:m,message:(0,a.jsx)(n.xvT,{children:"You are about to permanently delete the privacy request. Are you sure you would like to continue?"})}),(0,a.jsx)(Q.Z,{isOpen:o.isOpen,onClose:o.onClose,onConfirm:()=>{x(),o.onClose()},title:"Finalize privacy request",message:(0,a.jsxs)(n.xvT,{children:['You are about to finalize this privacy request. The status will be updated to "Complete"',j&&(null==y?void 0:y.service_type)?" and the requesting user will be notified":"",". Would you like to continue?"]})})]})};(i=l||(l={})).STATUS="status",i.DAYS_LEFT="due_date",i.SOURCE="source",i.REQUEST_TYPE="request_type",i.SUBJECT_IDENTITY="subject_identity",i.TIME_RECEIVED="created_at",i.CREATED_BY="created_by",i.REVIEWER="reviewer",i.ID="id",i.LOCATION="location",i.ACTIONS="actions";let es=(0,D.Cl)(),ei=()=>[es.accessor(e=>e.status,{id:"status",cell:e=>{let{getValue:t}=e;return(0,a.jsx)(B,{value:t()})},header:e=>(0,a.jsx)(L.Rr,{value:"Status",...e}),size:120}),es.accessor(e=>e.days_left,{id:"due_date",cell:e=>{let{row:t,getValue:s}=e;return(0,a.jsx)(V,{daysLeft:s(),timeframe:t.original.policy.execution_timeframe,status:t.original.status})},header:e=>(0,a.jsx)(L.Rr,{value:"Days left",...e}),size:80}),es.accessor(e=>e.source,{id:"source",cell:e=>e.getValue()?(0,a.jsx)(L.A4,{value:e.getValue()}):(0,a.jsx)(L.G3,{value:void 0}),header:e=>(0,a.jsx)(L.Rr,{value:"Source",...e}),enableSorting:!1}),es.accessor(e=>e.policy.rules,{id:"request_type",cell:e=>{let{getValue:t}=e;return(0,a.jsx)(G,{value:t()})},header:e=>(0,a.jsx)(L.Rr,{value:"Request type",...e}),enableSorting:!1,size:100}),es.accessor(e=>{var t,s;return(null===(t=e.identity)||void 0===t?void 0:t.email.value)||(null===(s=e.identity)||void 0===s?void 0:s.phone_number.value)||""},{id:"subject_identity",cell:e=>{let{getValue:t}=e;return(0,a.jsx)(L.G3,{value:t()})},header:e=>(0,a.jsx)(L.Rr,{value:"Subject identity",...e}),enableSorting:!1}),es.accessor(e=>e.created_at,{id:"created_at",cell:e=>{let{getValue:t}=e;return(0,a.jsx)(L.G3,{value:(0,_.p6)(t())})},header:e=>(0,a.jsx)(L.Rr,{value:"Time received",...e}),size:120}),es.accessor(e=>{var t;return(null===(t=e.reviewer)||void 0===t?void 0:t.username)||""},{id:"reviewer",cell:e=>{let{getValue:t}=e;return(0,a.jsx)(L.G3,{value:t()})},header:e=>(0,a.jsx)(L.Rr,{value:"Reviewed by",...e}),enableSorting:!1}),es.accessor(e=>e.id,{id:"id",cell:e=>{let{getValue:t}=e;return(0,a.jsx)(L.G3,{value:t()})},header:e=>(0,a.jsx)(L.Rr,{value:"Request ID",...e}),enableSorting:!1}),es.accessor(e=>e.location,{id:"location",cell:e=>{let{getValue:t}=e,s=t(),i=s?(0,n.QCN)(s):void 0,l=i?(0,n.c1K)({isoEntry:i,showFlag:!0}):s;return(0,a.jsx)(L.G3,{value:l})},header:e=>(0,a.jsx)(L.Rr,{value:"Location",...e}),enableSorting:!1}),es.display({id:"actions",cell:e=>{let{row:t}=e;return(0,a.jsx)(et,{subjectRequest:t.original})},header:e=>(0,a.jsx)(L.Rr,{value:"Actions",...e}),meta:{disableRowClick:!0}})],el=e=>{let t=(0,M.v9)(W.dp),s=(0,M.I0)();return{handleStatusChange:t=>{s((0,W.CI)(t)),e()},handleActionTypeChange:t=>{s((0,W.aM)(t)),e()},handleFromChange:t=>{s((0,W.su)(null==t?void 0:t.target.value)),e()},handleToChange:t=>{s((0,W.Ue)(null==t?void 0:t.target.value)),e()},handleClearAllFilters:()=>{s((0,W.Mk)()),e()},...t}};var ea=s(96718);let er=e=>{let{onClose:t,onFilterChange:s,...i}=e,{handleStatusChange:l,handleActionTypeChange:r,handleFromChange:d,handleToChange:o,handleClearAllFilters:c,from:u,to:p,status:m,action_type:x}=el(s);return(0,a.jsxs)(n.u_l,{onClose:t,size:"xl",...i,children:[(0,a.jsx)(n.ZAr,{}),(0,a.jsxs)(n.hzk,{children:[(0,a.jsx)(n.xBx,{borderBottomWidth:1,borderBottomColor:"gray.200",children:"All Filters"}),(0,a.jsx)(n.olH,{}),(0,a.jsx)(n.fef,{py:4,sx:{"& label":{mb:0}},children:(0,a.jsxs)(n.Kqy,{gap:4,children:[(0,a.jsxs)(n.Kqy,{children:[(0,a.jsx)(n.lXp,{size:"md",id:"request-date-range-label",children:"Date range"}),(0,a.jsxs)(n.Ugi,{gap:3,children:[(0,a.jsxs)(n.BZy,{size:"sm",flex:1,children:[(0,a.jsx)(n.UiE,{as:"label",htmlFor:"from-date",borderRadius:"md",children:"From"}),(0,a.jsx)(n.IIB,{type:"date",name:"From",value:u,max:p||void 0,onChange:d,borderRadius:"md",id:"from-date","aria-describedby":"request-date-range-label"})]}),(0,a.jsxs)(n.BZy,{size:"sm",flex:1,children:[(0,a.jsx)(n.UiE,{as:"label",htmlFor:"to-date",borderRadius:"md",children:"To"}),(0,a.jsx)(n.IIB,{type:"date",borderRadius:"md",name:"To",value:p,min:u||void 0,onChange:o,id:"to-date","aria-describedby":"request-date-range-label"})]})]})]}),(0,a.jsxs)(n.Kqy,{children:[(0,a.jsx)(n.lXp,{size:"md",htmlFor:"request-status",children:"Status"}),(0,a.jsx)(ea.z,{id:"request-status",mode:"multiple",options:S.I3,value:m,onChange:l,"data-testid":"request-status-filter"})]}),(0,a.jsxs)(n.Kqy,{children:[(0,a.jsx)(n.lXp,{size:"md",htmlFor:"request-action-type",children:"Request Type"}),(0,a.jsx)(ea.z,{id:"request-action-type",mode:"multiple",options:S.kN,value:x,onChange:r,"data-testid":"request-action-type-filter"})]})]})}),(0,a.jsxs)(n.mzw,{justifyContent:"space-between",children:[(0,a.jsx)(n.wpx,{type:"text",onClick:c,children:"Clear all"}),(0,a.jsx)(n.wpx,{type:"primary",onClick:t,children:"Done"})]})]})]})};var en=s(9270),ed=s(812),eo=()=>{let e=(0,n.pmc)(),[t,{isFetching:s}]=(0,W.ZU)();return{downloadReport:async s=>{let i=await t(s);if(i.isError)e({status:"error",description:(0,ed.e$)(i.error,"A problem occurred while generating your privacy request report. Please try again.")});else{let t=document.createElement("a"),s=new Blob([i.data],{type:"text/csv"}),l=window.URL.createObjectURL(s);t.href=l,t.download="privacy-request-report.csv",t.click(),t.remove(),window.URL.revokeObjectURL(l),e({status:"success",description:"Successfully downloaded Privacy Request report."})}},isDownloadingReport:s}};let ec=e=>{let{...t}=e,[s,i]=(0,F.v1)("search",F.Oi.withDefault("").withOptions({throttleMs:100})),l=(0,M.v9)(W.dp),r=(0,n.pmc)(),d=(0,h.useRouter)(),o=(0,M.I0)(),u=(0,en.S)(),{pageIndex:p,pageSize:m,resetPagination:x}=u,{isOpen:v,onOpen:y,onClose:j}=(0,n.qY0)(),{data:g,isLoading:f,isFetching:_}=(0,W.QA)({...l,page:p,size:m,fuzzy_search_str:s}),{items:b,total:q}=(0,c.useMemo)(()=>g||{items:[],total:0,pages:0},[g]),{downloadReport:C}=eo(),S=(0,c.useCallback)(e=>{i(null!=e?e:""),x()},[x,i]),k=async()=>{let e;try{await C(l)}catch(t){e=t instanceof Error?t.message:"Unknown error occurred"}e&&r({description:"".concat(e),duration:5e3,status:"error"})},E=e=>{d.push("/privacy-requests/".concat(e))},R=(0,z.b7)({getCoreRowModel:(0,D.sC)(),data:b,columns:(0,c.useMemo)(()=>ei(),[]),getRowId:e=>"".concat(e.status,"-").concat(e.id),manualPagination:!0,columnResizeMode:"onChange"});return(0,a.jsxs)(n.xuv,{...t,children:[(0,a.jsxs)(L.Q$,{children:[(0,a.jsx)(L.HO,{globalFilter:s,setGlobalFilter:S,placeholder:"Search by request ID or identity value"}),(0,a.jsxs)(n.Ugi,{alignItems:"center",spacing:2,children:[(0,a.jsx)(n.wpx,{"data-testid":"filter-btn",onClick:y,children:"Filter"}),(0,a.jsx)(n.wpx,{"aria-label":"Export report","data-testid":"export-btn",icon:(0,a.jsx)(Z.nM,{ml:"1.5px"}),onClick:k})]}),(0,a.jsx)(n.h_i,{children:(0,a.jsx)(er,{isOpen:v,onClose:j,onFilterChange:x})})]}),f?(0,a.jsx)(n.xuv,{p:2,borderWidth:1,children:(0,a.jsx)(L.I4,{rowHeight:26,numRows:10})}):(0,a.jsxs)(n.jqI,{vertical:!0,gap:"middle",children:[(0,a.jsx)(L.ZK,{tableInstance:R,onRowClick:e=>E(e.id),onSort:e=>{if(!e){o((0,W.PS)());return}let{id:t,desc:s}=e;o((0,W.WR)(t)),o((0,W.iX)(s?"desc":"asc")),x()},loading:_}),(0,a.jsx)(n.B7X,{...u.paginationProps,showTotal:(e,t)=>"".concat(t[0],"-").concat(t[1]," of ").concat(e," items"),total:null!=q?q:0,align:"end"})]})]})};var eu=s(87361),ep=s(46628),em=s(32885),ex=s(34090),eh=s(55484),ev=s(40324);let ey=(e,t)=>null==t?void 0:t.find(t=>t.policy_key===e),ej=e=>{var t,s;if(!e)return eh.Ry().shape({policy_key:eh.Z_().required().label("Request type")});let i=e.custom_privacy_request_fields?Object.entries(e.custom_privacy_request_fields).filter(e=>{let[,t]=e;return"field_type"in t&&"location"!==t.field_type}).map(e=>{let[t,s]=e;return{[t]:eh.Ry().shape({value:s.required&&!s.hidden?eh.Z_().required().label(s.label):eh.Z_().nullable()})}}).reduce((e,t)=>({...e,...t}),{}):{};return eh.Ry().shape({policy_key:eh.Z_().required().label("Request type"),identity:eh.Ry().shape({email:(null===(t=e.identity_inputs)||void 0===t?void 0:t.email)==="required"?eh.Z_().email().required().label("Email address"):eh.Z_().nullable(),phone_number:(null===(s=e.identity_inputs)||void 0===s?void 0:s.phone)==="required"?eh.Z_().matches(/^\+?[1-9]\d{1,14}$/,"Phone number must be formatted correctly (e.g. 15555555555)").required().label("Phone number"):eh.Z_().matches(/^\+?[1-9]\d{1,14}$/,"Phone number must be formatted correctly (e.g. 15555555555)").nullable()}),custom_privacy_request_fields:eh.Ry().shape(i)})};var eg=s(97181);let ef={is_verified:!1,policy_key:"",identity:{}},e_=e=>{let{identityInputs:t}=e;return t?(0,a.jsxs)(a.Fragment,{children:[t.email?(0,a.jsx)(ev.j0,{name:"identity.email",label:"User email address",isRequired:"required"===t.email,variant:"stacked"}):null,t.phone?(0,a.jsx)(ev.j0,{name:"identity.phone_number",label:"User phone number",isRequired:"required"===t.phone,variant:"stacked"}):null]}):null},eb=e=>{var t;let{label:s,required:i,name:l}=e,[r,d,o]=(0,ex.U$)(e),c=!!(d.touched&&d.error),{setValue:u}=o,{value:p}={...r,value:null!==(t=r.value)&&void 0!==t?t:""};return(0,a.jsx)(n.PPS.Item,{label:s,name:l,required:null!=i?i:void 0,layout:"vertical",validateStatus:c?"error":void 0,children:(0,a.jsx)(n.AOh,{value:p,onChange:e=>{e&&u(e)}},l)})},eq=e=>{let{customFieldInputs:t}=e;if(!t)return null;let s=Object.entries(t);return(0,a.jsx)(a.Fragment,{children:s.map(e=>{let[t,s]=e;return"field_type"in s&&"location"===s.field_type?(0,a.jsx)(eb,{name:t,label:s.label,required:!!s.required},t):(0,a.jsx)(ev.j0,{name:"custom_privacy_request_fields.".concat(t,".value"),label:s.label,isRequired:!!s.required,variant:"stacked"},t)})})},eC=e=>{let{onSubmit:t,onCancel:s,privacyCenterUrl:i}=e,{onCopy:l}=(0,n.VPI)(""),r=(0,n.pmc)();return(0,a.jsx)(ex.J9,{initialValues:{identity:{email:""}},onSubmit:e=>{l("".concat(i,"?email=").concat(encodeURIComponent(e.identity.email))),t(e),r({status:"success",description:"DSR Link Copied!"})},validationSchema:()=>eh.Ry().shape({identity:eh.Ry().shape({email:eh.Z_().email().required().label("Email Address")})}),children:e=>{let{dirty:t,isValid:i}=e;return(0,a.jsx)(ex.l0,{children:(0,a.jsxs)(n.Kqy,{spacing:6,mb:2,children:[(0,a.jsx)(e_,{identityInputs:{email:"required"}}),(0,a.jsxs)("div",{className:"flex gap-4 self-end",children:[(0,a.jsx)(n.wpx,{onClick:s,children:"Cancel"}),(0,a.jsx)(n.wpx,{htmlType:"submit",type:"primary",disabled:!t||!i,"data-testid":"submit-btn",icon:(0,a.jsx)(n.xPt,{}),children:"Copy"})]})]})})}})};var eS=e=>{let{onSubmit:t,onCancel:s}=e,{data:i}=(0,W.xv)();return(0,a.jsx)(ex.J9,{initialValues:ef,onSubmit:t,validationSchema:()=>(0,eh.Vo)(e=>ej(ey(e.policy_key,null==i?void 0:i.actions))),children:e=>{var t;let{values:l,dirty:r,isValid:d,isSubmitting:o,setFieldValue:c}=e,u=ey(l.policy_key,null==i?void 0:i.actions);return(0,a.jsx)(ex.l0,{children:(0,a.jsxs)(n.Kqy,{spacing:6,mb:2,children:[(0,a.jsx)(eg.d,{name:"policy_key",label:"Request type",options:null!==(t=null==i?void 0:i.actions.map(e=>({label:e.title,value:e.policy_key})))&&void 0!==t?t:[],onChange:e=>{let t=ey(e,null==i?void 0:i.actions);if(!(null==t?void 0:t.custom_privacy_request_fields)){c("custom_privacy_request_fields",void 0);return}c("custom_privacy_request_fields",Object.entries(t.custom_privacy_request_fields).map(e=>{let[t,s]=e;return{[t]:{label:s.label,value:s.default_value}}}).reduce((e,t)=>({...e,...t}),{}))},layout:"stacked",isRequired:!0}),(0,a.jsx)(e_,{identityInputs:null==u?void 0:u.identity_inputs}),(0,a.jsx)(eq,{customFieldInputs:null==u?void 0:u.custom_privacy_request_fields}),(0,a.jsx)(ev.Xl,{name:"is_verified",label:"I confirm that I have verified this user information"}),(0,a.jsxs)("div",{className:"flex gap-4 self-end",children:[(0,a.jsx)(n.wpx,{onClick:s,children:"Cancel"}),(0,a.jsx)(n.wpx,{htmlType:"submit",type:"primary",disabled:!l.is_verified||!r||!d,loading:o,"data-testid":"submit-btn",children:"Create"})]})]})})}})},ek=s(31883);let eE=e=>{let{isOpen:t,onClose:s}=e,[i]=(0,W.M6)(),l=(0,n.pmc)(),r=async e=>{let{is_verified:t,...a}=e,r=a.custom_privacy_request_fields?Object.entries(a.custom_privacy_request_fields).map(e=>{let[t,s]=e;return s.value?{[t]:s}:{}}).reduce((e,t)=>({...e,...t}),{}):void 0,n={...a,custom_privacy_request_fields:r},d=await i([n]);(0,ek.D4)(d)?l((0,ep.Vo)((0,ed.e$)(d.error,"An error occurred while creating this privacy request. Please try again"))):l((0,ep.t5)("Privacy request created")),s()};return(0,a.jsxs)(n.u_l,{isOpen:t,onClose:s,size:"2xl",isCentered:!0,children:[(0,a.jsx)(n.ZAr,{}),(0,a.jsxs)(n.hzk,{"data-testid":"submit-request-modal",maxHeight:"80%",overflowY:"auto",children:[(0,a.jsx)(n.xBx,{children:"Create privacy request"}),(0,a.jsx)(n.fef,{children:(0,a.jsxs)(n.Kqy,{spacing:4,children:[(0,a.jsx)(eu.Z,{title:"Warning: You are bypassing identity verification",text:"You are bypassing Fides' built-in identity verification step. Please ensure that you are only entering information on behalf of a verified and approved user's privacy request."}),(0,a.jsx)(eS,{onSubmit:r,onCancel:()=>s()})]})})]})]})},eR=e=>{let{isOpen:t,onClose:s,privacyCenterUrl:i}=e;return(0,a.jsxs)(n.u_l,{size:"md",isOpen:t,onClose:s,children:[(0,a.jsx)(n.ZAr,{}),(0,a.jsxs)(n.hzk,{children:[(0,a.jsx)(n.xBx,{children:"Create a Privacy Request Link"}),(0,a.jsxs)(n.fef,{children:[(0,a.jsx)(n.Kqy,{spacing:4}),(0,a.jsx)(eC,{privacyCenterUrl:i,onSubmit:s,onCancel:s})]})]})]})};var ew=()=>{var e;let[t,s]=(0,c.useState)("closed"),i=()=>s("closed"),{data:l}=(0,em.Vh)(),r=(null!==(e=null==l?void 0:l.privacy_center_url)&&void 0!==e?e:"").trim(),d=r.length>0;return(0,a.jsxs)(a.Fragment,{children:[d?(0,a.jsx)(eR,{isOpen:"create-link"===t,onClose:i,privacyCenterUrl:r}):null,(0,a.jsx)(eE,{isOpen:"submit-request"===t,onClose:i}),(0,a.jsx)(n.S0p.Button,{type:"primary",onClick:()=>s("submit-request"),"data-testid":"submit-request-btn",menu:{items:[{label:"Create request link",key:"create-request-link",icon:(0,a.jsx)(n.xPt,{}),onClick:()=>s("create-link"),disabled:!d}]},icon:(0,a.jsx)(n.v4q,{}),children:"Create request"})]})},eT=s(58754),eI=s(17245);let eA=()=>{let{errorAlert:e}=(0,eI.VY)(),[t,s]=(0,c.useState)(!1),[i,l]=(0,c.useState)({count:0,total:0}),[r,d]=(0,c.useState)(!0),o=b.q2.ERROR,{data:u}=(0,W.tE)(),{data:p}=(0,W.QA)({status:[o]},{pollingInterval:15e3,skip:r});return(0,c.useEffect)(()=>{d(!(u&&u.notify_after_failures>0))},[u]),(0,c.useEffect)(()=>{let e=(null==p?void 0:p.total)||0;e>=((null==u?void 0:u.notify_after_failures)||0)&&e>i.total?(l({count:e-i.total,total:e}),s(!0)):s(!1)},[null==p?void 0:p.total,null==u?void 0:u.notify_after_failures,i.total]),{processing:()=>{t&&e((0,a.jsxs)(n.xuv,{children:["DSR automation has failed for"," ",(0,a.jsx)(n.xvT,{as:"span",fontWeight:"semibold",children:i.count})," ","privacy request(s). Please review the event log for further details."]}),void 0,{containerStyle:{maxWidth:"max-content"},duration:null,id:"dsrErrorAlert"})}}};var eN=s(72281);let eP=o()(()=>s.e(9676).then(s.bind(s,59676)),{loadableGenerated:{webpack:()=>[59676]},loading:()=>(0,a.jsx)("div",{children:"Loading..."})});var eO=()=>{let{processing:e}=eA(),{plus:t}=(0,u.hz)(),{activeTab:s,handleTabChange:i,availableTabs:l}=(0,eN.d)();(0,c.useEffect)(()=>{e()},[e]);let r=(0,c.useMemo)(()=>{let e=[];return l.request&&e.push({key:eN.G.REQUEST,label:"Request",children:(0,a.jsx)(ec,{})}),l.manualTask&&e.push({key:eN.G.MANUAL_TASK,label:"Manual tasks",children:(0,a.jsx)(U,{})}),e},[l.manualTask,l.request]);return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(eT.Z,{heading:"Privacy Requests",breadcrumbItems:[{title:"All requests"}],rightContent:(0,a.jsxs)(n.vyj,{children:[t&&(0,a.jsx)(p.ZP,{scopes:[b.Sh.PRIVACY_REQUEST_CREATE],children:(0,a.jsx)(ew,{})}),(0,a.jsx)(eP,{})]}),"data-testid":"privacy-requests"}),(0,a.jsx)(n.A5g,{activeKey:s,onChange:i,items:r})]})},eU=()=>(0,a.jsx)(r.Z,{title:"Privacy Requests",children:(0,a.jsx)(eO,{})})},31883:function(e,t,s){"use strict";s.d(t,{Bw:function(){return i.Bw},D4:function(){return i.D4}});var i=s(19043)}},function(e){e.O(0,[431,8765,3550,7245,8373,2888,9774,179],function(){return e(e.s=1565)}),_N_E=e.O()}]);
@@ -1 +0,0 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9196],{6446:function(e){e.exports=function(e,t,a,s){var r=-1,i=null==e?0:e.length;for(s&&i&&(a=e[++r]);++r<i;)a=t(a,e[r],r,e);return a}},67375:function(e,t,a){var s=a(52033),r=a(80068);e.exports=function(e,t){var a=-1,i=r(e)?Array(e.length):[];return s(e,function(e,s,r){i[++a]=t(e,s,r)}),i}},74833:function(e,t,a){var s=a(56127),r=/^\s+/;e.exports=function(e){return e?e.slice(0,s(e)+1).replace(r,""):e}},56632:function(e,t,a){var s=a(89278),r=a(80068),i=a(50098);e.exports=function(e){return function(t,a,l){var n=Object(t);if(!r(t)){var o=s(a,3);t=i(t),a=function(e){return o(n[e],e,n)}}var c=e(t,a,l);return c>-1?n[o?t[c]:c]:void 0}}},56127:function(e){var t=/\s/;e.exports=function(e){for(var a=e.length;a--&&t.test(e.charAt(a)););return a}},64925:function(e,t,a){var s=a(56632)(a(66259));e.exports=s},66259:function(e,t,a){var s=a(95372),r=a(89278),i=a(47991),l=Math.max;e.exports=function(e,t,a){var n=null==e?0:e.length;if(!n)return -1;var o=null==a?0:i(a);return o<0&&(o=l(n+o,0)),s(e,r(t,3),o)}},55807:function(e,t,a){var s=a(66070),r=a(89278),i=a(67375),l=a(19785);e.exports=function(e,t){return(l(e)?s:i)(e,r(t,3))}},82846:function(e,t,a){var s=a(77400);e.exports=function(){return s.Date.now()}},32526:function(e,t,a){var s=a(68267)(function(e,t,a){return e+(a?"_":"")+t.toLowerCase()});e.exports=s},94919:function(e,t,a){var s=a(91936),r=1/0;e.exports=function(e){return e?(e=s(e))===r||e===-r?(e<0?-1:1)*17976931348623157e292:e==e?e:0:0===e?e:0}},47991:function(e,t,a){var s=a(94919);e.exports=function(e){var t=s(e),a=t%1;return t==t?a?t-a:t:0}},91936:function(e,t,a){var s=a(74833),r=a(11611),i=a(55193),l=0/0,n=/^[-+]0x[0-9a-f]+$/i,o=/^0b[01]+$/i,c=/^0o[0-7]+$/i,d=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(i(e))return l;if(r(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=r(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=s(e);var a=o.test(e);return a||c.test(e)?d(e.slice(2),a?2:8):n.test(e)?l:+e}},86548:function(e,t,a){(window.__NEXT_P=window.__NEXT_P||[]).push(["/reporting/datamap",function(){return a(27901)}])},624:function(e,t,a){"use strict";var s=a(24246),r=a(20595),i=a(27378);let l=e=>{let t=e.split("."),a=[];return t.forEach(e=>{let t=a.length>0?a[a.length-1]:null;t?a.push("".concat(t,".").concat(e)):a.push(e)}),a},n=(e,t)=>{let a=l(t).filter(e=>e!==t);return e.filter(e=>a.includes(e)).length>0},o=(e,t)=>!!(e===t||e.startsWith("".concat(t,"."))),c=(e,t,a)=>{let s=null!=a?a:[];return e.forEach(e=>{e.children&&c(e.children,t,s),o(e.value,t)&&s.push(e)}),s},d=e=>{let{node:t,isChecked:a,onChecked:i,isExpanded:l,onExpanded:n,isIndeterminate:o,isDisabled:c,children:d}=e,{value:u,label:_}=t,p=!!t.children&&t.children.length>0;return(0,s.jsxs)(r.xuv,{children:[(0,s.jsxs)(r.xuv,{display:"flex",justifyContent:"space-between",_hover:{backgroundColor:"gray.100",cursor:"pointer"},onClick:()=>n(t),minHeight:8,children:[(0,s.jsx)(r.XZJ,{colorScheme:"complimentary",value:u,isChecked:!o&&a,isIndeterminate:o,isDisabled:c,onChange:()=>i(t),mx:2,"data-testid":"checkbox-".concat(_),children:_}),p?(0,s.jsx)(r.wpx,{"data-testid":"expand-".concat(_),"aria-label":l?"collapse":"expand",icon:(0,s.jsx)(r.v4q,{boxSize:5}),type:"text",onClick:()=>n(t),className:l?"rotate-180":void 0}):null]}),d&&(0,s.jsx)(r.xuv,{ml:5,children:d})]})};t.ZP=e=>{let{nodes:t,selected:a,onSelected:u,..._}=e,[p,m]=(0,i.useState)([]),[E,S]=(0,i.useState)([]);(0,i.useEffect)(()=>{let e=Array.from(new Set([...a.map(e=>l(e)).reduce((e,t)=>e.concat(t),[]),...a.map(e=>c(t,e)).reduce((e,t)=>e.concat(t),[]).map(e=>e.value)]));S(e),m(e)},[a,t]);let g=e=>{let s=[],r=[];p.indexOf(e.value)>=0?(s=p.filter(t=>!o(t,e.value)),r=a.filter(t=>!o(t,e.value))):(s=[...p,...c(t,e.value).map(e=>e.value)],r=[...a,e.value]),m(s),u(r)},f=e=>{E.indexOf(e.value)>=0?S(E.filter(t=>!o(t,e.value))):S([...E,e.value])},h=e=>{if(e.children){let r=p.indexOf(e.value)>=0,l=E.indexOf(e.value)>=0,o=c(t,e.value),u=r&&e.children.length>0&&p.filter(t=>t.startsWith("".concat(e.value,"."))).length+1!==o.length,_=n(a,e.value);return(0,s.jsx)(d,{node:e,isChecked:r,onChecked:g,isExpanded:l,onExpanded:f,isDisabled:_,isIndeterminate:u,children:l?e.children.map(e=>(0,s.jsx)(i.Fragment,{children:h(e)},e.value)):void 0})}return null};return(0,s.jsx)(r.xuv,{..._,children:t.map(e=>(0,s.jsx)(r.xuv,{children:h(e)},e.value))})}},35287:function(e,t,a){"use strict";var s=a(24246),r=a(20595),i=a(88038),l=a.n(i);a(27378),t.Z=e=>{let{children:t,title:a,mainProps:i}=e;return(0,s.jsxs)(r.kCb,{"data-testid":a,direction:"column",height:"calc(100vh - 48px)",width:"calc(100vw - 240px)",children:[(0,s.jsxs)(l(),{children:[(0,s.jsxs)("title",{children:["Fides Admin UI - ",a]}),(0,s.jsx)("meta",{name:"description",content:"Privacy Engineering Platform"}),(0,s.jsx)("link",{rel:"icon",href:"/favicon.ico"})]}),(0,s.jsx)(r.kCb,{px:10,py:6,as:"main",overflow:"auto",direction:"column",flex:1,minWidth:0,...i,children:t})]})}},19904:function(e,t,a){"use strict";a.d(t,{Tg:function(){return l}});var s=a(24246),r=a(16134),i=a(31793);let l=e=>(0,r.C)(i.uu).filter(t=>e.includes(t)).length>0;t.ZP=e=>{let{scopes:t,children:a}=e;return l(t)?(0,s.jsx)(s.Fragment,{children:a}):null}},34929:function(e,t,a){"use strict";var s=a(24246),r=a(64925),i=a.n(r),l=a(27378),n=a(16134),o=a(30002),c=a(28079),d=a(57072);let u=()=>{let{isLoading:e}=(0,c.fd)(),t=(0,n.C)(c.U3),{isLoading:a}=(0,d.MO)(),s=(0,n.C)(d.qb),{isLoading:r}=(0,o.te)();return{dataUses:t,dataSubjects:(0,n.C)(o.ZL),dataCategories:s,isLoading:e||a||r}};t.Z=()=>{let{dataUses:e,dataCategories:t,dataSubjects:a,isLoading:r}=u(),n=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return e.split(".").slice(0,t).join(".")},o=function(e,t){let a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,s=t(e);if(!s)return{};let r=t(n(e,a)),i=!!s.parent_key;return{name:s.name||void 0,primaryName:i&&(null==r?void 0:r.name)!==s.name&&(null==r?void 0:r.name)||void 0}},c=function(e,t){let a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,{name:r,primaryName:i}=o(e,t,a);return r?i?(0,s.jsxs)(l.Fragment,{children:[(0,s.jsxs)("strong",{children:[i,":"]})," ",r]},e):(0,s.jsx)("strong",{children:r},e):e},d=t=>i()(e,{fides_key:t}),_=e=>i()(t,{fides_key:e}),p=e=>i()(a,{fides_key:e});return{getDataUses:()=>e,getDataUseByKey:d,getDataUseDisplayName:e=>c(e,d,1),getDataUseDisplayNameProps:e=>o(e,d,1),getDataCategories:()=>t,getDataCategoryByKey:_,getDataCategoryDisplayName:e=>c(e,_,2),getDataCategoryDisplayNameProps:e=>o(e,_,2),getDataSubjects:()=>a,getDataSubjectByKey:p,getDataSubjectDisplayName:e=>{let t=p(e);return t?t.name:e},getPrimaryKey:n,isLoading:r}}},2525:function(e,t,a){"use strict";a.d(t,{Q:function(){return n}});var s=a(24246),r=a(20595),i=a(27378),l=a(3110);let n=e=>{let{values:t,columnState:a,tagProps:n,onTagClose:o,onStateChange:c,...d}=e,{isExpanded:u,isWrapped:_,version:p}=a||{},[m,E]=(0,i.useState)(!u),[S,g]=(0,i.useState)(!!_),[f,h]=(0,i.useState)(u?t:null==t?void 0:t.slice(0,2));(0,i.useEffect)(()=>{E(!u)},[u,p]),(0,i.useEffect)(()=>{g(!!_)},[_]),(0,i.useEffect)(()=>{(null==t?void 0:t.length)?h(m?t.slice(0,2):t):h(t)},[m,t,c]),(0,i.useEffect)(()=>{(null==t?void 0:t.length)&&t.length<=2&&!m&&(E(!0),null==c||c(!1))},[t,c,m]);let A=(0,i.useCallback)(()=>{h(null==t?void 0:t.slice(0,2)),E(!0),null==c||c(!1)},[t,c]),T=(0,i.useCallback)(()=>{E(!1),null==c||c(!0)},[c]),x=(0,i.useCallback)(()=>{m?T():A()},[m,T,A]);return(0,i.useMemo)(()=>(null==f?void 0:f.length)?(0,s.jsxs)(r.jqI,{align:m?"center":"start",wrap:S?"wrap":"nowrap",vertical:!m,gap:"small","data-testid":"tag-expandable-cell",style:{overflowX:"auto",...d.style},...d,children:[f.map(e=>(0,s.jsx)(r.j8w,{color:"white","data-testid":e.key,onClose:o?()=>o(e.key):void 0,...n,...e.tagProps,children:(0,s.jsx)(r.lKn,{ellipsis:!!m&&{tooltip:!0},style:{color:"inherit",maxWidth:m?l.TD:void 0},children:e.label})},e.key)),t&&t.length>2&&(0,s.jsx)(r.wpx,{type:"link",size:"small",onClick:e=>{e.stopPropagation(),x()},className:"h-auto p-0",style:{fontSize:"var(--ant-font-size)"},children:m?"+".concat(t.length-2," more"):l.T5})]}):(0,s.jsx)("span",{"data-testid":"tag-expandable-cell-empty"}),[f,m,S,d,t,n,o,x])}},3110:function(e,t,a){"use strict";a.d(t,{DI:function(){return n},T5:function(){return i},TD:function(){return l}});var s=a(24246),r=a(20595);let i="show less",l=150,n=[{key:"expand-all",label:"Expand all",icon:(0,s.jsx)(r.PJP.jbG,{})},{key:"collapse-all",label:"Collapse all",icon:(0,s.jsx)(r.PJP.MVB,{})}]},26070:function(e,t,a){"use strict";a.d(t,{v:function(){return o},Q:function(){return c.Q}});var s=a(24246),r=a(20595),i=a(27378),l=a(3110);let{Text:n}=r.AntTypography,o=e=>{let{values:t,valueSuffix:a,columnState:o}=e,{isExpanded:c,version:d}=o||{},[u,_]=(0,i.useState)(!c);(0,i.useEffect)(()=>{_(!c)},[c,d]);let p=(0,i.useCallback)(()=>{_(!0)},[]),m=(0,i.useCallback)(()=>{_(!1)},[]),E=(0,i.useCallback)(()=>{u?m():p()},[u,m,p]);return(0,i.useMemo)(()=>(null==t?void 0:t.length)?1===t.length?(0,s.jsx)(n,{ellipsis:!0,"data-testid":"list-expandable-cell-single",children:t[0]}):(0,s.jsxs)(r.jqI,{align:u?"center":"flex-start",vertical:!u,gap:u?"small":"none","data-testid":"list-expandable-cell",children:[u?(0,s.jsxs)(n,{ellipsis:!0,children:[t.length," ",a]}):(0,s.jsx)(r.krs,{dataSource:t,renderItem:e=>(0,s.jsx)("li",{children:e})}),(0,s.jsx)(r.wpx,{type:"link",size:"small",onClick:e=>{e.stopPropagation(),E()},className:"h-auto p-0",style:{fontSize:"var(--ant-font-size)"},children:u?"view":l.T5})]}):null,[u,t,a,E])};var c=a(2525)},22583:function(e,t,a){"use strict";a.d(t,{j:function(){return r}});var s=a(39449);let r={[s.Ej.TAXONOMY_WHITE]:"default",[s.Ej.TAXONOMY_RED]:"error",[s.Ej.TAXONOMY_ORANGE]:"warning",[s.Ej.TAXONOMY_YELLOW]:"caution",[s.Ej.TAXONOMY_GREEN]:"success",[s.Ej.TAXONOMY_BLUE]:"info",[s.Ej.TAXONOMY_PURPLE]:"alert",[s.Ej.SANDSTONE]:"sandstone",[s.Ej.MINOS]:"minos"}},59001:function(e,t,a){"use strict";a.d(t,{Ch:function(){return o},Lo:function(){return l},_g:function(){return c},ac:function(){return i},aq:function(){return d}});var s,r,i,l,n=a(39449);let o="root";(s=i||(i={})).DATA_CATEGORY="data_category",s.DATA_USE="data_use",s.DATA_SUBJECT="data_subject",s.SYSTEM_GROUP="system_group",(r=l||(l={})).DATA_CATEGORIES="Data categories",r.DATA_USES="Data uses",r.DATA_SUBJECTS="Data subjects",r.SYSTEM_GROUPS="System groups";let c=e=>{switch(e){case"data_category":return"Data categories";case"data_use":return"Data uses";case"data_subject":return"Data subjects";case"system_group":return"System groups";default:return e}},d=e=>{switch(e){case"data_category":return{UPDATE:n.Sh.DATA_CATEGORY_UPDATE,CREATE:n.Sh.DATA_CATEGORY_CREATE,DELETE:n.Sh.DATA_CATEGORY_DELETE,READ:n.Sh.DATA_CATEGORY_READ};case"data_use":return{UPDATE:n.Sh.DATA_USE_UPDATE,CREATE:n.Sh.DATA_USE_CREATE,DELETE:n.Sh.DATA_USE_DELETE,READ:n.Sh.DATA_USE_READ};case"data_subject":return{UPDATE:n.Sh.DATA_SUBJECT_UPDATE,CREATE:n.Sh.DATA_SUBJECT_CREATE,DELETE:n.Sh.DATA_SUBJECT_DELETE,READ:n.Sh.DATA_SUBJECT_READ};case"system_group":return{UPDATE:n.Sh.SYSTEM_GROUP_UPDATE,CREATE:n.Sh.SYSTEM_GROUP_CREATE,DELETE:n.Sh.SYSTEM_GROUP_DELETE,READ:n.Sh.SYSTEM_GROUP_READ};default:return{UPDATE:n.Sh.TAXONOMY_UPDATE,CREATE:n.Sh.TAXONOMY_CREATE,DELETE:n.Sh.TAXONOMY_DELETE,READ:n.Sh.TAXONOMY_READ}}}},90673:function(e,t,a){"use strict";a.d(t,{Cd:function(){return i},Xl:function(){return l}});var s=a(39449),r=a(59001);let i=(e,t)=>{let a;if(null==t&&e.every(e=>void 0===e.parent_key))a=e;else{let s=null!=t?t:null;a=e.filter(e=>e.parent_key===s)}return a.map(t=>{var a,s;let r=t.fides_key;return{value:t.fides_key,label:""===t.name||null==t.name?t.fides_key:t.name,description:t.description,children:i(e,r),is_default:null!==(a=t.is_default)&&void 0!==a&&a,active:null!==(s=t.active)&&void 0!==s&&s}})},l=e=>{switch(e){case r.ac.DATA_CATEGORY:return s.P6.DATA_CATEGORY;case r.ac.DATA_SUBJECT:return s.P6.DATA_SUBJECT;case r.ac.DATA_USE:return s.P6.DATA_USE;default:return}}},27901:function(e,t,a){"use strict";a.r(t),a.d(t,{default:function(){return eC}});var s,r,i,l,n=a(24246),o=a(27378),c=a(35287),d=a(58754),u=a(71795),_=a(39449);(s=i||(i={})).COLUMN_EXPANSION_STATE="datamap-column-expansion-state",s.COLUMN_NAMES="datamap-column-names",s.COLUMN_ORDER="datamap-column-order",s.COLUMN_SIZING="datamap-column-sizing",s.COLUMN_VISIBILITY="datamap-column-visibility",s.CUSTOM_REPORT_ID="datamap-custom-report-id",s.FILTERS="datamap-filters",s.GROUP_BY="datamap-group-by",s.SORTING_STATE="datamap-sorting-state",s.WRAPPING_COLUMNS="datamap-wrapping-columns",(r=l||(l={})).SYSTEM_NAME="system_name",r.DATA_USE="data_uses",r.DATA_CATEGORY="data_categories",r.DATA_SUBJECT="data_subjects",r.LEGAL_NAME="legal_name",r.DPO="dpo",r.LEGAL_BASIS_FOR_PROCESSING="legal_basis_for_processing",r.ADMINISTRATING_DEPARTMENT="administrating_department",r.COOKIE_MAX_AGE_SECONDS="cookie_max_age_seconds",r.PRIVACY_POLICY="privacy_policy",r.LEGAL_ADDRESS="legal_address",r.COOKIE_REFRESH="cookie_refresh",r.DATA_SECURITY_PRACTICES="data_security_practices",r.DATA_SHARED_WITH_THIRD_PARTIES="data_shared_with_third_parties",r.DATA_STEWARDS="data_stewards",r.DECLARATION_NAME="declaration_name",r.DOES_INTERNATIONAL_TRANSFERS="does_international_transfers",r.DPA_LOCATION="dpa_location",r.DESTINATIONS="egress",r.EXEMPT_FROM_PRIVACY_REGULATIONS="exempt_from_privacy_regulations",r.FEATURES="features",r.FIDES_KEY="fides_key",r.FLEXIBLE_LEGAL_BASIS_FOR_PROCESSING="flexible_legal_basis_for_processing",r.IMPACT_ASSESSMENT_LOCATION="impact_assessment_location",r.SOURCES="ingress",r.JOINT_CONTROLLER_INFO="joint_controller_info",r.LEGAL_BASIS_FOR_PROFILING="legal_basis_for_profiling",r.LEGAL_BASIS_FOR_TRANSFERS="legal_basis_for_transfers",r.LEGITIMATE_INTEREST_DISCLOSURE_URL="legitimate_interest_disclosure_url",r.PROCESSES_PERSONAL_DATA="processes_personal_data",r.REASON_FOR_EXEMPTION="reason_for_exemption",r.REQUIRES_DATA_PROTECTION_ASSESSMENTS="requires_data_protection_assessments",r.RESPONSIBILITY="responsibility",r.RETENTION_PERIOD="retention_period",r.SHARED_CATEGORIES="shared_categories",r.SPECIAL_CATEGORY_LEGAL_BASIS="special_category_legal_basis",r.THIRD_PARTIES="third_parties",r.COOKIES="cookies",r.USES_COOKIES="uses_cookies",r.USES_NON_COOKIE_ACCESS="uses_non_cookie_access",r.USES_PROFILING="uses_profiling",r.SYSTEM_UNDECLARED_DATA_CATEGORIES="system_undeclared_data_categories",r.DATA_USE_UNDECLARED_DATA_CATEGORIES="data_use_undeclared_data_categories",r.PROCESSES_SPECIAL_CATEGORY_DATA="processes_special_category_data",r.SYSTEM_GROUPS="system_groups",r.SYSTEM_GROUP="system_group_fides_key",r.SYSTEM_GROUP_DATA_USES="system_group_data_uses";let p={system_name:"System",data_uses:"Data use",data_categories:"Data categories",data_subjects:"Data subject",legal_name:"Legal name",dpo:"Data privacy officer",legal_basis_for_processing:"Legal basis for processing",administrating_department:"Administrating department",cookie_max_age_seconds:"Cookie max age seconds",privacy_policy:"Privacy policy",legal_address:"Legal address",cookie_refresh:"Cookie refresh",data_security_practices:"Data security practices",data_shared_with_third_parties:"Data shared with third parties",data_stewards:"Data stewards",declaration_name:"Declaration name",does_international_transfers:"Does international transfers",dpa_location:"DPA location",egress:"Destination",exempt_from_privacy_regulations:"Exempt from privacy regulations",features:"Features",fides_key:"Fides key",flexible_legal_basis_for_processing:"Flexible legal basis for processing",impact_assessment_location:"Impact assessment location",ingress:"Source",joint_controller_info:"Joint controller info",legal_basis_for_profiling:"Legal basis for profiling",legal_basis_for_transfers:"Legal basis for transfers",legitimate_interest_disclosure_url:"Legitimate interest disclosure URL",processes_personal_data:"Processes personal data",reason_for_exemption:"Reason for exemption",requires_data_protection_assessments:"Requires data protection assessments",responsibility:"Responsibility",retention_period:"Retention period",shared_categories:"Shared categories",special_category_legal_basis:"Special category legal basis",third_parties:"Third parties",system_undeclared_data_categories:"System undeclared data categories",data_use_undeclared_data_categories:"Data use undeclared data categories",cookies:"Cookies",uses_cookies:"Uses cookies",uses_non_cookie_access:"Uses non-cookie access",uses_profiling:"Uses profiling",processes_special_category_data:"Processes special category data",system_groups:"System groups",system_group_fides_key:"System group",system_group_data_uses:"Data uses"},m={[l.SYSTEM_UNDECLARED_DATA_CATEGORIES]:!1,[l.DATA_USE_UNDECLARED_DATA_CATEGORIES]:!1},E={dataUses:[],dataSubjects:[],dataCategories:[]},S=(0,o.createContext)({}),g=e=>{let{children:t}=e,[a,s]=(0,u._)(i.CUSTOM_REPORT_ID,""),[r,l]=(0,u._)(i.GROUP_BY,_.fI.SYSTEM_DATA_USE),[c,d]=(0,u._)(i.FILTERS,E),[p,g]=(0,u._)(i.COLUMN_ORDER,[]),[f,h]=(0,u._)(i.COLUMN_VISIBILITY,m),[A,T]=(0,u._)(i.COLUMN_SIZING,{}),[x,C]=(0,u._)(i.COLUMN_NAMES,{}),v=(0,o.useMemo)(()=>({savedCustomReportId:a,setSavedCustomReportId:s,groupBy:r,setGroupBy:l,selectedFilters:c,setSelectedFilters:d,columnOrder:p,setColumnOrder:g,columnVisibility:f,setColumnVisibility:h,columnSizing:A,setColumnSizing:T,columnNameMapOverrides:x,setColumnNameMapOverrides:C}),[a,s,r,l,c,d,p,g,f,h,A,T,x,C]);return(0,n.jsx)(S.Provider,{value:v,children:t})},f=()=>{let e=(0,o.useContext)(S);if(!e||0===Object.keys(e).length)throw Error("useDatamapReport must be used within a DatamapReportProvider");return e};var h=a(59003),A=a(92222),T=a(47935),x=a(20595),C=a(34090),v=a(66726),O=a.n(v),R=a(16134),y=a(34929),j=a(14048),b=a(19904),D=a(16394),I=a(38943),P=a(35258),N=e=>{let{children:t,heading:a,onCancel:s,onConfirm:r,isLoading:i,cancelButtonText:l,continueButtonText:o,"data-testid":c="standard-dialog",...d}=e,{onClose:u}=d;return(0,n.jsxs)(x.u_l,{closeOnOverlayClick:i,...d,children:[(0,n.jsx)(x.ZAr,{}),(0,n.jsxs)(x.hzk,{"data-testid":c,children:[a&&(0,n.jsx)(x.xBx,{children:a}),(0,n.jsx)(x.olH,{isDisabled:i,"data-testid":"standard-dialog-close-btn"}),t&&(0,n.jsx)(x.fef,{children:t}),(0,n.jsxs)(x.mzw,{gap:3,width:"100%",sx:{"& button":{width:"100%"}},children:[(0,n.jsx)(x.wpx,{onClick:()=>{s&&s(),u()},"data-testid":"".concat(c?"".concat(c,"-"):"","cancel-btn"),disabled:i,children:l||"Cancel"}),(0,n.jsx)(x.wpx,{onClick:r,type:"primary","data-testid":"".concat(c?"".concat(c,"-"):"","continue-btn"),loading:i,children:o||"Continue"})]})]})]})},M=a(22968),w=e=>{let[t,a]=(0,o.useState)(M.T2.csv),{onConfirm:s}=e;return(0,n.jsx)(N,{heading:"Export report",continueButtonText:"Download",size:"xl",...e,onConfirm:()=>s(t),"data-testid":"export-modal",children:(0,n.jsxs)(x.kCb,{direction:"column",gap:3,pb:3,children:[(0,n.jsx)(x.xvT,{textAlign:"left",children:"Export your data map report using the options below. Depending on the number of rows, the file may take a few minutes to process."}),(0,n.jsxs)(x.NIc,{children:[(0,n.jsx)(x.lXp,{htmlFor:"format",children:"Choose Format"}),(0,n.jsx)(x.WPr,{id:"format",value:t,onChange:a,"data-testid":"export-format-select",options:[{value:M.T2.csv,label:"CSV"},{value:M.T2.xlsx,label:"XLSX"}],className:"w-full"})]})]})})},U=a(624),L=a(30002),k=a(28079),G=a(5785),Y=a(90673);let F=e=>{let{label:t,children:a,...s}=e;return(0,n.jsxs)(x.Qdk,{...s,children:[(0,n.jsx)(x.X6q,{children:(0,n.jsxs)(x.KFZ,{height:"100%","data-testid":"filter-modal-accordion-button",textAlign:"left",fontWeight:600,children:[(0,n.jsx)(x.xuv,{flex:1,children:t}),(0,n.jsx)(x.XEm,{boxSize:7})]})}),(0,n.jsx)(x.Hk3,{children:a})]})},H=e=>{let{columnNameMap:t,selectedFilters:a,onFilterChange:s,onClose:r,...i}=e;(0,k.fd)(),(0,L.te)(),(0,G.MO)();let{dataUses:l,dataSubjects:c,dataCategories:d}=a,u=(0,R.C)(k.U3),_=(0,R.C)(L.ZL),p=(0,R.C)(G.qb),[m,E]=(0,o.useState)(l),[S,g]=(0,o.useState)(c),[f,h]=(0,o.useState)(d);(0,o.useEffect)(()=>{E(l)},[l]),(0,o.useEffect)(()=>{g(c)},[c]),(0,o.useEffect)(()=>{h(d)},[d]);let A=(0,o.useMemo)(()=>(0,Y.Cd)(u),[u]),T=(0,o.useMemo)(()=>(0,Y.Cd)(_),[_]),C=(0,o.useMemo)(()=>(0,Y.Cd)(p),[p]);return(0,n.jsx)(N,{heading:"Filter Datamap Report",...i,onCancel:()=>{E([]),g([]),h([]),s({dataUses:[],dataSubjects:[],dataCategories:[]}),r()},onConfirm:()=>{s({dataUses:m,dataSubjects:S,dataCategories:f}),r()},onClose:r,cancelButtonText:"Reset filters",continueButtonText:"Done","data-testid":"datamap-report-filter-modal",children:(0,n.jsxs)(x.UQy,{allowToggle:!0,children:[(0,n.jsx)(F,{label:t.data_uses,children:(0,n.jsx)(U.ZP,{nodes:A,selected:m,onSelected:E,"data-testid":"filter-modal-checkbox-tree-uses"})}),(0,n.jsx)(F,{label:t.data_categories,children:(0,n.jsx)(U.ZP,{nodes:C,selected:f,onSelected:h,"data-testid":"filter-modal-checkbox-tree-categories"})}),(0,n.jsx)(F,{label:t.data_subjects,children:(0,n.jsx)(U.ZP,{nodes:T,selected:S,onSelected:g,"data-testid":"filter-modal-checkbox-tree-subjects"})})]})})};var V=a(32885),z=a(69353),B=a(812);let{useGetMinimalCustomReportsQuery:Z,useLazyGetCustomReportByIdQuery:q,usePostCustomReportMutation:W,useDeleteCustomReportMutation:X}=a(78780).u.injectEndpoints({endpoints:e=>({getMinimalCustomReports:e.query({query:e=>{let{pageIndex:t=1,pageSize:a=50,report_type:s=_.C2.DATAMAP}=e,r="page=".concat(t,"&size=").concat(a,"&report_type=").concat(s);return{url:"plus/custom-report/minimal?".concat(r)}},providesTags:["Custom Reports"]}),getCustomReportById:e.query({query:e=>({url:"plus/custom-report/".concat(e)}),providesTags:(e,t,a)=>[{type:"Custom Reports",id:a}]}),postCustomReport:e.mutation({query:e=>({method:"POST",url:"plus/custom-report",body:e}),invalidatesTags:["Custom Reports"]}),deleteCustomReport:e.mutation({query:e=>({method:"DELETE",url:"plus/custom-report/".concat(e)}),invalidatesTags:["Custom Reports"]})})});var J=a(55484),K=a(40324);let Q="Report name",$=e=>{let{isOpen:t,handleClose:a,tableStateToSave:s,columnMapToSave:r={},unavailableNames:i,onCreateCustomReport:l}=e,c=(0,x.pmc)(),[d]=W(),u=(0,o.useMemo)(()=>J.Ry().shape({reportName:J.Z_().label(Q).required("Please provide a name for this report").test("is-unique","",async(e,t)=>null==i||!i.includes(e)||t.createError({message:"This name already exists"})).max(80,"Report name is too long (max 80 characters)")}),[i]),p=async e=>{var t;let i={};Object.entries(r).forEach(e=>{let[t,a]=e;i[t]={label:a,enabled:!0}}),Object.entries(null!==(t=null==s?void 0:s.columnVisibility)&&void 0!==t?t:{}).forEach(e=>{let[t,a]=e;i[t]||(i[t]={}),i[t].enabled=a});try{let t={name:e.trim(),type:_.C2.DATAMAP,config:{column_map:i,table_state:s}},r=await d(t);if((0,B.D4)(r))throw r.error;l(r.data),a()}catch(e){c({status:"error",description:(0,B.e$)(e,"A problem occurred while creating the report.")})}};return(0,n.jsxs)(x.u_l,{size:"lg",isOpen:t,onClose:a,motionPreset:"none",children:[(0,n.jsx)(x.ZAr,{}),(0,n.jsxs)(x.hzk,{children:[(0,n.jsx)(x.xBx,{pb:0,children:"Create a report"}),(0,n.jsx)(C.J9,{initialValues:{reportName:""},onSubmit:e=>p(e.reportName),onReset:a,validateOnBlur:!1,validationSchema:u,children:e=>{let{dirty:t,isValid:a}=e;return(0,n.jsxs)(C.l0,{"data-testid":"custom-report-form",children:[(0,n.jsxs)(x.fef,{children:[(0,n.jsx)(x.xvT,{fontSize:"sm",color:"gray.600",pb:6,children:"Customize and save your current filter settings for easy access in the future. This saved report will include the column layout and currently applied filter settings."}),(0,n.jsx)(K.j0,{id:"reportName",name:"reportName",isRequired:!0,label:Q,placeholder:"Enter a name for the report...",variant:"stacked",maxLength:80})]}),(0,n.jsxs)(x.mzw,{gap:2,children:[(0,n.jsx)(x.wpx,{size:"small",htmlType:"reset",children:"Cancel"}),(0,n.jsx)(x.wpx,{size:"small",disabled:!t||!a,type:"primary","data-testid":"custom-report-form-submit",htmlType:"submit",children:"Save"})]})]})}})]})]})},ee="Report",et="Reports",ea=e=>{var t;let{reportType:a,savedReportId:s,tableStateToSave:r,currentColumnMap:i,onCustomReportSaved:l,onSavedReportDeleted:c}=e,d=(0,b.Tg)([_.Sh.CUSTOM_REPORT_CREATE]),u=(0,b.Tg)([_.Sh.CUSTOM_REPORT_DELETE]),p=(0,x.pmc)({id:"custom-report-toast"}),{data:m,isLoading:E}=Z({report_type:a}),[S,g]=(0,o.useState)(),[f]=q(),[h]=X(),{isOpen:A,onOpen:T,onClose:v}=(0,x.qY0)(),{isOpen:O,onOpen:R,onClose:y}=(0,x.qY0)(),{isOpen:j,onOpen:D,onClose:I}=(0,x.qY0)(),[P,N]=(0,o.useState)(),[M,w]=(0,o.useState)(),[U,L]=(0,o.useState)(),[k,G]=(0,o.useState)(!1),{resetForm:Y}=(0,C.u6)(),F=(0,o.useMemo)(()=>{var e;let t=null==m?void 0:null===(e=m.items.find(e=>e.id===s))||void 0===e?void 0:e.name;return null!=t?t:et},[null==m?void 0:m.items,s]),H=!E&&!(null==m?void 0:null===(t=m.items)||void 0===t?void 0:t.length),V=e=>{g(null==m?void 0:m.items.filter(t=>t.name.toLowerCase().includes(e.toLowerCase())))},z=async e=>{N(e);let{data:t,isError:a,error:s}=await f(e);if(a){let e=(0,B.e$)(s,"A problem occurred while fetching the ".concat(ee,"."));e.includes("not found")&&c(),p({status:"error",description:e})}else w(t)},W=()=>{N(""),w(void 0),G(!1)},J=()=>{M?(G(!1),M.id!==s&&l(M,Y),v()):P?G(!0):(l(null,Y),v())},K=async e=>{e===(null==M?void 0:M.id)&&(W(),c()),h(e)};(0,o.useEffect)(()=>{m&&g(m.items)},[m]),(0,o.useEffect)(()=>{k&&(G(!1),J())},[M]),(0,o.useEffect)(()=>{s?z(s):W()},[s]),(0,o.useEffect)(()=>{U&&D()},[D,U]);let Q=!M&&!s||(null==M?void 0:M.id)===s,ea=(0,n.jsx)("div",{"data-testid":"custom-reports-popover",children:(0,n.jsx)(C.J9,{initialValues:{},onSubmit:J,onReset:W,children:(0,n.jsxs)(C.l0,{children:[(0,n.jsxs)("div",{className:"relative p-3",style:{borderBottom:"var(--ant-popover-title-border-bottom)"},children:[(0,n.jsx)(x.wpx,{size:"small",disabled:H,htmlType:"reset",className:"absolute left-3 top-3","data-testid":"custom-reports-reset-button",children:"Reset"}),(0,n.jsx)(x.wpx,{type:"text",size:"small","aria-label":"Cancel",icon:(0,n.jsx)(x.PJP.x8P,{}),className:"absolute right-3 top-3",onClick:()=>{s?z(s):W(),v()},"data-testid":"custom-report-popover-cancel"}),(0,n.jsx)("div",{className:"text-center",style:{color:"var(--ant-color-text-heading)",fontWeight:"var(--ant-font-weight-strong)"},children:et}),(0,n.jsx)("div",{className:"mt-3",children:(0,n.jsx)(x.AntInput,{size:"small",placeholder:"Search...",onChange:e=>V(e.target.value)})})]}),(0,n.jsxs)("div",{className:"px-5 pb-1 pt-3",children:[H&&(0,n.jsx)(x.oj8,{image:(0,n.jsx)(x.wpx,{type:"primary",shape:"circle",size:"small","aria-label":"add ".concat(ee),icon:(0,n.jsx)(x.PJP.mm_,{}),onClick:R,"data-testid":"add-report-button"}),description:"No ".concat(et.toLowerCase()," have been created. Start by applying your preferred filter and column settings, then create a ").concat(ee.toLowerCase()," for easy access later."),styles:{image:{height:"24px"}},"data-testid":"custom-reports-empty-state"}),!H&&(E?(0,n.jsx)(x.N_L,{active:!0,paragraph:{rows:3,width:"100%"},title:!1,className:"pt-2"}):(0,n.jsx)(x.y02.Group,{onChange:e=>z(e.target.value),value:P,style:{width:"100%"},children:(0,n.jsx)(x.vyj,{direction:"vertical",className:"w-full",size:"small",children:null==S?void 0:S.map(e=>(0,n.jsxs)(x.jqI,{justify:u?"space-between":"flex-start",align:"center",children:[(0,n.jsx)(x.y02,{value:e.id,name:"custom-report-id","data-testid":"custom-report-item",children:e.name}),u&&(0,n.jsx)(x.wpx,{type:"text",size:"small",icon:(0,n.jsx)(x.PJP.ZNm,{}),onClick:()=>L(e),"data-testid":"delete-report-button","aria-label":"Delete"})]},e.id))})}))]}),(0,n.jsxs)(x.jqI,{className:"px-5 py-4",gap:"small",children:[d&&r&&(0,n.jsxs)(x.wpx,{size:"small",onClick:R,className:"flex-1 gap-1 pl-0","data-testid":"create-report-button",htmlType:"button",icon:(0,n.jsx)(x.PJP.mm_,{}),iconPosition:"start",children:["Create ",ee.toLowerCase()]}),(0,n.jsx)(x.wpx,{size:"small",type:"primary",loading:k,disabled:Q,className:"flex-1","data-testid":"apply-report-button",htmlType:"submit",children:"Apply"})]})]})})});return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(x.bPF,{content:ea,trigger:"click",placement:"bottomRight",open:A,onOpenChange:e=>{e?T():J()},styles:{root:{width:"320px","--ant-popover-inner-content-padding":"0"}},zIndex:1400,children:(0,n.jsx)(x.wpx,{className:"max-w-40",icon:(0,n.jsx)(x.v4q,{}),iconPosition:"end","data-testid":"custom-reports-trigger",children:(0,n.jsx)(x.lKn,{ellipsis:!0,children:F})})}),(0,n.jsx)($,{isOpen:O,handleClose:()=>{y(),setTimeout(()=>{T()},100)},tableStateToSave:r,columnMapToSave:i,unavailableNames:null==m?void 0:m.items.map(e=>e.name),onCreateCustomReport:e=>l(e,Y)}),(0,n.jsx)(x.cVQ,{isOpen:j,onClose:()=>{L(void 0),I()},onConfirm:()=>{U&&K(U.id),I()},title:"Delete ".concat(ee),message:(0,n.jsxs)(x.lKn,{children:["You are about to permanently delete the"," ",ee.toLowerCase()," named"," ",(0,n.jsx)("strong",{children:null==U?void 0:U.name}),". Are you sure you would like to continue?"]})})]})};var es=a(19785),er=a.n(es),ei=a(55807),el=a.n(ei),en=a(32526),eo=a.n(en),ec=a(26070),ed=a(72625),eu=a(43862),e_=a(22583);let ep=(0,A.Cl)(),em=(e,t)=>({cell:e=>(0,n.jsx)(T.G3,{value:e.getValue()}),header:a=>{let s={};return Object.keys(e).forEach(t=>{"string"==typeof e[t]?s[t]=e[t]:e[t].label&&(s[t]=e[t].label||"")}),(0,n.jsx)(ed.Hm,{value:(0,eu.AH)({columnId:a.column.id,columnNameMap:s}),defaultValue:p[a.column.id]||(0,eu.AH)({columnId:a.column.id}),isEditing:t,...a})}}),eE=(e,t)=>{var a;let s=(null==e?void 0:null===(a=e.items)||void 0===a?void 0:a.length)?Object.keys(e.items[0]):[],r=Object.values(l);return s.filter(e=>!r.includes(e)).filter(e=>e.startsWith("privacy_declaration_")||e.startsWith("system_")).map(e=>{let a=t.find(t=>e.includes(eo()(t.name)));return ep.accessor(t=>t[e],{id:e,cell:e=>Array.isArray(e.getValue())?(0,n.jsx)(T.WP,{value:e.getValue(),ignoreZero:!0,...e}):(0,n.jsx)(T.G3,{value:e.getValue()}),meta:{showHeaderMenu:(null==a?void 0:a.field_type)==="string[]"}})})},eS=e=>{let{onSelectRow:t,getDataUseDisplayName:a,getDataCategoryDisplayName:s,getDataSubjectDisplayName:r,datamapReport:i,customFields:o,systemGroups:c=[],isRenaming:d=!1,groupBy:u}=e,p=eE(i,o),m=e=>{let t=c.find(t=>t.fides_key===e);return(null==t?void 0:t.label_color)?e_.j[t.label_color]:void 0},E=e=>{if(e&&0!==e.length&&1===e.length)return m(e[0])},S=[ep.accessor(e=>e.system_name,{enableGrouping:!0,id:l.SYSTEM_NAME,meta:{onCellClick:t}}),ep.accessor(e=>e.data_uses,{id:l.DATA_USE,cell:e=>{let t=e.getValue();return(0,n.jsx)(T.WP,{suffix:"data uses",ignoreZero:!0,value:er()(t)?el()(t,a):a(t||""),tagProps:{color:"white"},...e})},meta:{width:"auto"}}),ep.accessor(e=>e.data_categories,{id:l.DATA_CATEGORY,cell:e=>{let t=e.getValue();if(!t||0===t.length)return null;let a=er()(t)?t.map(e=>({label:s(e),key:e})):[{label:s(t),key:t}];return(0,n.jsx)(ed.mb,{values:a,cellProps:e})},meta:{showHeaderMenu:!d,showHeaderMenuWrapOption:!0,width:"auto",overflow:"hidden"}}),ep.accessor(e=>e.data_subjects,{id:l.DATA_SUBJECT,cell:e=>{let t=e.getValue();return(0,n.jsx)(T.WP,{suffix:"data subjects",ignoreZero:!0,value:er()(t)?el()(t,r):r(t||""),tagProps:{color:"white"},...e})},meta:{showHeaderMenu:!d}}),ep.accessor(e=>e.legal_name,{id:l.LEGAL_NAME}),ep.accessor(e=>e.dpo,{id:l.DPO}),ep.accessor(e=>e.legal_basis_for_processing,{id:l.LEGAL_BASIS_FOR_PROCESSING}),ep.accessor(e=>e.administrating_department,{id:l.ADMINISTRATING_DEPARTMENT}),ep.accessor(e=>e.cookie_max_age_seconds,{id:l.COOKIE_MAX_AGE_SECONDS}),ep.accessor(e=>e.privacy_policy,{id:l.PRIVACY_POLICY}),ep.accessor(e=>e.legal_address,{id:l.LEGAL_ADDRESS}),ep.accessor(e=>e.cookie_refresh,{id:l.COOKIE_REFRESH}),ep.accessor(e=>e.data_security_practices,{id:l.DATA_SECURITY_PRACTICES}),ep.accessor(e=>e.data_shared_with_third_parties,{id:l.DATA_SHARED_WITH_THIRD_PARTIES}),ep.accessor(e=>e.processes_special_category_data,{id:l.PROCESSES_SPECIAL_CATEGORY_DATA}),ep.accessor(e=>e.data_stewards,{id:l.DATA_STEWARDS,cell:e=>(0,n.jsx)(T.WP,{suffix:"data stewards",ignoreZero:!0,value:e.getValue(),...e}),meta:{showHeaderMenu:!d,width:"auto"}}),ep.accessor(e=>e.declaration_name,{id:l.DECLARATION_NAME}),ep.accessor(e=>e.does_international_transfers,{id:l.DOES_INTERNATIONAL_TRANSFERS}),ep.accessor(e=>e.dpa_location,{id:l.DPA_LOCATION}),ep.accessor(e=>e.egress,{id:l.DESTINATIONS,cell:e=>(0,n.jsx)(T.WP,{suffix:"destinations",ignoreZero:!0,value:e.getValue(),...e}),meta:{showHeaderMenu:!d,width:"auto"}}),ep.accessor(e=>e.exempt_from_privacy_regulations,{id:l.EXEMPT_FROM_PRIVACY_REGULATIONS}),ep.accessor(e=>e.features,{id:l.FEATURES,cell:e=>(0,n.jsx)(T.WP,{suffix:"features",ignoreZero:!0,value:e.getValue(),...e}),meta:{showHeaderMenu:!d,width:"auto"}}),ep.accessor(e=>e.fides_key,{id:l.FIDES_KEY}),ep.accessor(e=>e.flexible_legal_basis_for_processing,{id:l.FLEXIBLE_LEGAL_BASIS_FOR_PROCESSING}),ep.accessor(e=>e.impact_assessment_location,{id:l.IMPACT_ASSESSMENT_LOCATION}),ep.accessor(e=>e.ingress,{id:l.SOURCES,cell:e=>(0,n.jsx)(T.WP,{suffix:"sources",ignoreZero:!0,value:e.getValue(),...e}),meta:{showHeaderMenu:!d,width:"auto"}}),ep.accessor(e=>e.joint_controller_info,{id:l.JOINT_CONTROLLER_INFO}),ep.accessor(e=>e.legal_basis_for_profiling,{id:l.LEGAL_BASIS_FOR_PROFILING,cell:e=>(0,n.jsx)(T.WP,{suffix:"profiles",ignoreZero:!0,value:e.getValue(),...e}),meta:{showHeaderMenu:!d,width:"auto"}}),ep.accessor(e=>e.legal_basis_for_transfers,{id:l.LEGAL_BASIS_FOR_TRANSFERS,cell:e=>(0,n.jsx)(T.WP,{suffix:"transfers",ignoreZero:!0,value:e.getValue(),...e}),meta:{showHeaderMenu:!d,width:"auto"}}),ep.accessor(e=>e.legitimate_interest_disclosure_url,{id:l.LEGITIMATE_INTEREST_DISCLOSURE_URL}),ep.accessor(e=>e.processes_personal_data,{id:l.PROCESSES_PERSONAL_DATA}),ep.accessor(e=>e.reason_for_exemption,{id:l.REASON_FOR_EXEMPTION}),ep.accessor(e=>e.requires_data_protection_assessments,{id:l.REQUIRES_DATA_PROTECTION_ASSESSMENTS}),ep.accessor(e=>e.responsibility,{id:l.RESPONSIBILITY,cell:e=>(0,n.jsx)(T.WP,{suffix:"responsibilities",ignoreZero:!0,value:e.getValue(),...e}),meta:{showHeaderMenu:!d,width:"auto"}}),ep.accessor(e=>e.retention_period,{id:l.RETENTION_PERIOD}),ep.accessor(e=>e.shared_categories,{id:l.SHARED_CATEGORIES,cell:e=>(0,n.jsx)(T.WP,{suffix:"shared categories",ignoreZero:!0,value:e.getValue(),tagProps:{color:"white"},...e}),meta:{showHeaderMenu:!d,width:"auto"}}),ep.accessor(e=>e.special_category_legal_basis,{id:l.SPECIAL_CATEGORY_LEGAL_BASIS}),ep.accessor(e=>e.third_parties,{id:l.THIRD_PARTIES}),ep.accessor(e=>e.system_undeclared_data_categories,{id:l.SYSTEM_UNDECLARED_DATA_CATEGORIES,cell:e=>{let t=e.getValue();if(!t||0===t.length)return null;let a=er()(t)?t.map(e=>({label:s(e),key:e})):[{label:s(t),key:t}];return(0,n.jsx)(ed.mb,{values:a,cellProps:e})},meta:{showHeaderMenu:!d,showHeaderMenuWrapOption:!0,width:"auto",overflow:"hidden"}}),ep.accessor(e=>e.data_use_undeclared_data_categories,{id:l.DATA_USE_UNDECLARED_DATA_CATEGORIES,cell:e=>{let t=e.getValue();if(!t||0===t.length)return null;let a=er()(t)?t.map(e=>({label:s(e),key:e})):[{label:s(t),key:t}];return(0,n.jsx)(ed.mb,{values:a,cellProps:e})},meta:{showHeaderMenu:!d,showHeaderMenuWrapOption:!0,width:"auto",overflow:"hidden"}}),ep.accessor(e=>e.cookies,{id:l.COOKIES,cell:e=>(0,n.jsx)(T.WP,{ignoreZero:!0,suffix:"cookies",value:e.getValue(),...e}),meta:{showHeaderMenu:!d,width:"auto"}}),ep.accessor(e=>e.uses_cookies,{id:l.USES_COOKIES}),ep.accessor(e=>e.uses_non_cookie_access,{id:l.USES_NON_COOKIE_ACCESS}),ep.accessor(e=>e.uses_profiling,{id:l.USES_PROFILING}),ep.accessor(e=>e.system_groups,{id:l.SYSTEM_GROUPS,cell:e=>{let t=e.getValue();if(!t||Array.isArray(t)&&0===t.length)return null;let a=(Array.isArray(t)?t:[t]).map(e=>{let t=c.find(t=>t.fides_key===e);return{label:(null==t?void 0:t.name)||e,key:e,tagProps:{color:(null==t?void 0:t.label_color)?e_.j[t.label_color]:"default",bordered:!1}}});return(0,n.jsx)(ec.Q,{values:a})},meta:{width:"auto"}}),...p],g=[];return u===_.fI.SYSTEM_GROUP&&g.push(ep.accessor(e=>e.system_group_fides_key,{id:l.SYSTEM_GROUP,cell:e=>{var t;let a=e.getValue();if(!a||Array.isArray(a)&&0===a.length)return null;let s=Array.isArray(a)?a.map(e=>{var t;return(null===(t=c.find(t=>t.fides_key===e))||void 0===t?void 0:t.name)||e}):[(null===(t=c.find(e=>e.fides_key===a))||void 0===t?void 0:t.name)||a],r=E(Array.isArray(a)?a:[a]);return(0,n.jsx)(T.WP,{suffix:"system group",ignoreZero:!0,value:s,tagProps:{color:r||"white",bordered:!1},...e})},meta:{width:"auto",showHeaderMenu:!d}}),ep.accessor(e=>e.system_group_data_uses,{id:l.SYSTEM_GROUP_DATA_USES,cell:e=>{let t=e.getValue();return!t||Array.isArray(t)&&0===t.length?null:(0,n.jsx)(T.WP,{suffix:"data uses",ignoreZero:!0,value:er()(t)?el()(t,a):a(t||""),tagProps:{color:"white"},...e})},meta:{width:"auto",showHeaderMenu:!d}})),[...S,...g]},eg=e=>{let{columnNameMapOverrides:t,setColumnNameMapOverrides:a,setSavedCustomReportId:s,setIsRenamingColumns:r}=e,{submitForm:i,resetForm:l}=(0,C.u6)();return(0,n.jsxs)("div",{className:"flex gap-2",children:[(0,n.jsx)(x.wpx,{size:"small","data-testid":"rename-columns-reset-btn",onClick:()=>{a({}),s(""),l({values:{}}),r(!1)},children:"Reset all"}),(0,n.jsx)(x.wpx,{size:"small","data-testid":"rename-columns-cancel-btn",onClick:()=>{l({values:t}),r(!1)},children:"Cancel"}),(0,n.jsx)(x.wpx,{size:"small",type:"primary",htmlType:"submit","data-testid":"rename-columns-apply-btn",onClick:i,children:"Apply"})]})},ef=e=>{switch(e){case _.fI.DATA_USE_SYSTEM:return[l.DATA_USE];case _.fI.SYSTEM_GROUP:return[l.SYSTEM_GROUP];default:return[l.SYSTEM_NAME]}},eh=e=>{let t=[];return _.fI.SYSTEM_DATA_USE===e&&(t=[l.SYSTEM_NAME,l.DATA_USE]),_.fI.DATA_USE_SYSTEM===e&&(t=[l.DATA_USE,l.SYSTEM_NAME]),_.fI.SYSTEM_GROUP===e&&(t=[l.SYSTEM_GROUP,l.SYSTEM_GROUP_DATA_USES,l.SYSTEM_NAME,l.DATA_USE]),t},eA=(e,t)=>{let a=eh(e),s=new Set(a);return[...a,...t.filter(e=>!s.has(e))]},eT={items:[],total:0,page:1,size:25,pages:1},ex=()=>{let e=(0,b.Tg)([_.Sh.CUSTOM_REPORT_READ]),{isLoading:t}=(0,V.x8)(),{data:a}=(0,z.QD)(),{PAGE_SIZES:s,pageSize:r,setPageSize:c,onPreviousPageClick:d,isPreviousPageDisabled:u,onNextPageClick:S,isNextPageDisabled:g,startRange:v,endRange:N,pageIndex:M,setTotalPages:U,resetPageIndexToDefault:L}=(0,T.oi)(),k=(0,x.pmc)({id:"datamap-report-toast"}),{isOpen:G,onClose:Y,onOpen:F}=(0,x.qY0)(),{getDataUseDisplayName:B,getDataCategoryDisplayName:Z,getDataSubjectDisplayName:q,isLoading:W}=(0,y.Z)(),[X,J]=(0,o.useState)(),{savedCustomReportId:K,setSavedCustomReportId:Q,groupBy:$,setGroupBy:ee,selectedFilters:et,setSelectedFilters:es,columnOrder:er,setColumnOrder:ei,columnVisibility:el,setColumnVisibility:en,columnSizing:eo,setColumnSizing:ec,columnNameMapOverrides:ed,setColumnNameMapOverrides:eu}=f(),[e_,ep]=(0,o.useState)(!1),eE=e=>{Q(""),ee(e),ep(!0),L()},[ex,eC]=(0,o.useState)(""),ev=(0,o.useCallback)(e=>{L(),eC(e)},[L,eC]),eO={pageIndex:M,pageSize:r,groupBy:$,search:ex,dataUses:(0,D.du)(et.dataUses,"data_uses"),dataSubjects:(0,D.du)(et.dataSubjects,"data_subjects"),dataCategories:(0,D.du)(et.dataCategories,"data_categories")},{data:eR,isLoading:ey,isFetching:ej}=(0,I.tH)(eO),[eb,{isLoading:eD,isError:eI}]=(0,I.Eo)(),{data:eP,totalRows:eN}=(0,o.useMemo)(()=>{let e=eR||eT,t=e.items;return e_&&ep(!1),U(e.pages),{totalRows:e.total,data:t}},[eR]);(0,V.GH)();let eM=(0,R.C)(V.fN),[ew,eU]=(0,o.useState)(!1),eL=(0,o.useMemo)(()=>eR?eS({onSelectRow:e=>J(e.fides_key),getDataUseDisplayName:B,getDataCategoryDisplayName:Z,getDataSubjectDisplayName:q,datamapReport:eR,customFields:eM,systemGroups:a,isRenaming:ew,groupBy:$}):[],[B,q,Z,eR,eM,a,ew,$]),{isOpen:ek,onOpen:eG,onClose:eY}=(0,x.qY0)(),{isOpen:eF,onOpen:eH,onClose:eV}=(0,x.qY0)(),ez=(0,h.b7)({getCoreRowModel:(0,A.sC)(),getGroupedRowModel:(0,A.qe)(),getExpandedRowModel:(0,A.rV)(),manualPagination:!0,enableColumnResizing:!0,columnResizeMode:"onChange",columns:eL,defaultColumn:em({...p,...ed},ew),data:eP,initialState:{expanded:!0,columnSizing:eo,columnOrder:er,columnVisibility:el,grouping:ef($)}});(0,o.useEffect)(()=>{$&&ez&&eR&&(0===ez.getState().columnOrder.length?ei(eA($,ez.getAllColumns().map(e=>e.id))):ei(eA($,ez.getState().columnOrder)))},[$,ez,eR]),(0,o.useEffect)(()=>{let e=ef($);eR&&ez.setGrouping(e)},[eR]);let eB=(0,o.useMemo)(()=>O()(ec,300),[ec]);(0,o.useEffect)(()=>{let e=ez.getState().columnSizing;e&&eB(e)},[ez.getState().columnSizing]);let eZ=()=>ed[l.SYSTEM_GROUP]||"System group",eq=(e,t)=>{if(e||K){if(!e){try{Q(""),en(m),ez.toggleAllColumnsVisible(!0),ez.setColumnVisibility(m),ei([]),ez.setColumnOrder([]),ee(_.fI.SYSTEM_DATA_USE),es(E),eu({}),t({values:{}})}catch(e){k({status:"error",description:"There was a problem resetting the report."})}return}try{var a,s,r,i;if(null===(a=e.config)||void 0===a?void 0:a.table_state){let{groupBy:t,filters:a,columnOrder:s}=e.config.table_state,i={};Object.entries(null!==(r=e.config.column_map)&&void 0!==r?r:{}).forEach(e=>{let[t,a]=e;i[t]=a.enabled||!1}),t&&ee(t),a&&es(a),s&&(ei(s),ez.setColumnOrder(s)),i&&(en(i),ez.setColumnVisibility(i))}if(null===(s=e.config)||void 0===s?void 0:s.column_map){let a={};Object.entries(null!==(i=e.config.column_map)&&void 0!==i?i:{}).forEach(e=>{let[t,s]=e;s.label&&(a[t]=s.label)}),eu(a),t({values:a})}Q(e.id),k({status:"success",description:"Report applied successfully."})}catch(e){k({status:"error",description:"There was a problem applying report."})}}};return ey||t||W?(0,n.jsx)(T.I4,{rowHeight:36,numRows:15}):(0,n.jsxs)(x.kCb,{flex:1,direction:"column",overflow:"auto",children:[(0,n.jsx)(H,{columnNameMap:{...p,...ed},selectedFilters:et,isOpen:G,onClose:Y,onFilterChange:e=>{Q(""),es(e)}}),(0,n.jsx)(T.F1,{isOpen:ek,onClose:eY,headerText:"Columns",columnNameMap:{...p,...ed},prefixColumns:eh($),tableInstance:ez,savedCustomReportId:K,onColumnOrderChange:e=>{Q(""),ez.setColumnOrder(e),ei(e)},onColumnVisibilityChange:e=>{Q(""),ez.setColumnVisibility(e),en(e)}}),(0,n.jsx)(w,{isOpen:eF,onClose:eV,onConfirm:e=>{let t={};Object.entries(el).forEach(e=>{let[a,s]=e;t[a]={enabled:s}}),Object.entries(ed).forEach(e=>{let[a,s]=e;if(t[a])t[a].label=s;else{var r;t[a]={label:s,enabled:null===(r=el[a])||void 0===r||r}}}),eb({...eO,format:e,report_id:K,report:{name:"",type:"datamap",config:{column_map:t,table_state:{groupBy:$,filters:et,columnOrder:er}}}}).then(()=>{eI||eV()})},isLoading:eD}),(0,n.jsx)(C.J9,{initialValues:ed,onSubmit:e=>{Q(""),eu(e),eU(!1)},children:(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(T.Q$,{children:[(0,n.jsx)(T.HO,{globalFilter:ex,setGlobalFilter:ev,placeholder:"System name, Fides key, or ID"}),(0,n.jsxs)(x.kCb,{alignItems:"center",gap:2,children:[e&&(0,n.jsx)(ea,{reportType:_.C2.DATAMAP,savedReportId:K,tableStateToSave:{groupBy:$,filters:et,columnOrder:er,columnVisibility:el},currentColumnMap:ed,onCustomReportSaved:(e,t)=>eq(e,t),onSavedReportDeleted:()=>{Q("")}}),(0,n.jsxs)(x.v2r,{children:[(0,n.jsxs)(x.j2t,{as:x.wpx,icon:(0,n.jsx)(x.v4q,{}),iconPosition:"end",loading:e_,"data-testid":"group-by-menu",children:["Group by ",(()=>{switch($){case _.fI.SYSTEM_DATA_USE:return"system";case _.fI.DATA_USE_SYSTEM:return"data use";case _.fI.SYSTEM_GROUP:{let e=eZ();return e.charAt(0).toLowerCase()+e.slice(1)}default:return"system"}})()]}),(0,n.jsxs)(x.qyq,{zIndex:11,"data-testid":"group-by-menu-list",children:[(0,n.jsx)(x.iiZ,{onClick:()=>{eE(_.fI.SYSTEM_DATA_USE)},isChecked:_.fI.SYSTEM_DATA_USE===$,value:_.fI.SYSTEM_DATA_USE,"data-testid":"group-by-system-data-use",children:"System"}),(0,n.jsx)(x.iiZ,{onClick:()=>{eE(_.fI.DATA_USE_SYSTEM)},isChecked:_.fI.DATA_USE_SYSTEM===$,value:_.fI.DATA_USE_SYSTEM,"data-testid":"group-by-data-use-system",children:"Data use"}),(0,n.jsx)(x.iiZ,{onClick:()=>{eE(_.fI.SYSTEM_GROUP)},isChecked:_.fI.SYSTEM_GROUP===$,value:_.fI.SYSTEM_GROUP,"data-testid":"group-by-system-group",children:eZ()})]})]}),(0,n.jsx)(x.wpx,{"data-testid":"filter-multiple-systems-btn",onClick:F,children:"Filter"}),(0,n.jsx)(x.wpx,{"aria-label":"Export report","data-testid":"export-btn",onClick:eH,icon:(0,n.jsx)(j.nM,{ml:"1.5px"})}),(0,n.jsxs)(x.v2r,{placement:"bottom-end",children:[(0,n.jsx)(x.j2t,{as:x.wpx,icon:(0,n.jsx)(x.nXP,{className:"rotate-90"}),"data-testid":"more-menu","aria-label":"More options",className:"w-6 gap-0"}),(0,n.jsxs)(x.qyq,{"data-testid":"more-menu-list",children:[(0,n.jsx)(x.sNh,{onClick:eG,"data-testid":"edit-columns-btn",children:"Edit columns"}),(0,n.jsx)(x.sNh,{onClick:()=>eU(!0),"data-testid":"rename-columns-btn",children:"Rename columns"})]})]}),ew&&(0,n.jsx)(eg,{columnNameMapOverrides:ed,setColumnNameMapOverrides:eu,setSavedCustomReportId:Q,setIsRenamingColumns:eU})]})]}),(0,n.jsx)(C.l0,{children:(0,n.jsx)(T.ZK,{tableInstance:ez,columnExpandStorageKey:i.COLUMN_EXPANSION_STATE,columnWrapStorageKey:i.WRAPPING_COLUMNS})})]})}),(0,n.jsx)(T.s8,{totalRows:eN||0,pageSizes:s,setPageSize:c,onPreviousPageClick:d,isPreviousPageDisabled:u||ej,onNextPageClick:S,isNextPageDisabled:g||ej,startRange:v,endRange:N}),(0,n.jsx)(P.Z,{selectedSystemId:X,resetSelectedSystemId:()=>J(void 0)})]})};var eC=()=>(0,n.jsxs)(c.Z,{title:"Datamap Report",children:[(0,n.jsx)(d.Z,{"data-testid":"datamap-report-heading",heading:"Data map report"}),(0,n.jsx)(g,{children:(0,n.jsx)(ex,{})})]})}},function(e){e.O(0,[431,8765,9278,5163,9187,7245,9899,5258,2888,9774,179],function(){return e(e.s=86548)}),_N_E=e.O()}]);
@@ -1 +0,0 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5135],{77713:function(e,t,i){(window.__NEXT_P=window.__NEXT_P||[]).push(["/settings/consent/[configuration_id]/[purpose_id]",function(){return i(80758)}])},59301:function(e,t,i){"use strict";var r=i(24246);let{Link:n}=i(20595).AntTypography;t.Z=e=>{let{children:t,...i}=e;return(0,r.jsx)(n,{target:"_blank",rel:"noopener noreferrer",...i,children:t})}},35287:function(e,t,i){"use strict";var r=i(24246),n=i(20595),s=i(88038),o=i.n(s);i(27378),t.Z=e=>{let{children:t,title:i,mainProps:s}=e;return(0,r.jsxs)(n.kCb,{"data-testid":i,direction:"column",height:"calc(100vh - 48px)",width:"calc(100vw - 240px)",children:[(0,r.jsxs)(o(),{children:[(0,r.jsxs)("title",{children:["Fides Admin UI - ",i]}),(0,r.jsx)("meta",{name:"description",content:"Privacy Engineering Platform"}),(0,r.jsx)("link",{rel:"icon",href:"/favicon.ico"})]}),(0,r.jsx)(n.kCb,{px:10,py:6,as:"main",overflow:"auto",direction:"column",flex:1,minWidth:0,...s,children:t})]})}},58754:function(e,t,i){"use strict";var r=i(24246),n=i(20595),s=i(70788);t.Z=e=>{let{heading:t,breadcrumbItems:i,isSticky:o=!0,children:d,rightContent:l,style:a,...c}=e;return(0,r.jsxs)("div",{...c,style:o?{position:"sticky",top:"-24px",paddingTop:"24px",paddingBottom:"24px",paddingLeft:"40px",marginLeft:"-40px",paddingRight:"40px",marginRight:"-40px",marginTop:"-24px",left:0,zIndex:20,backgroundColor:"white",...a}:{paddingBottom:"24px",...a},children:[(0,r.jsxs)(n.jqI,{justify:"space-between",children:["string"==typeof t?(0,r.jsx)(n.lQT,{className:i||d?"pb-4":void 0,level:1,"data-testid":"page-heading",children:t}):t,l&&(0,r.jsx)("div",{"data-testid":"page-header-right-content",children:l})]}),!!i&&(0,r.jsx)(s.m,{className:d?"pb-4":void 0,items:i,"data-testid":"page-breadcrumb"}),d]})}},97181:function(e,t,i){"use strict";i.d(t,{d:function(){return a}});var r=i(24246),n=i(20595),s=i(34090),o=i(27378),d=i(46238),l=i(40324);let a=e=>{let{name:t,label:i,labelProps:a,tooltip:c,isRequired:u,layout:p="inline",helperText:h,...v}=e,[_,m,{setValue:x}]=(0,s.U$)(t),f=!!(m.touched&&m.error),[g,R]=(0,o.useState)("");_.value||"tags"!==v.mode&&"multiple"!==v.mode||(_.value=[]),"tags"===v.mode&&"string"==typeof _.value&&(_.value=[_.value]);let j="tags"===v.mode?(e,t)=>e?e.value!==g||_.value.includes(g)?v.optionRender?v.optionRender(e,t):e.label:'Create "'.concat(g,'"'):void 0:v.optionRender||void 0,I=e=>{R(e),v.onSearch&&v.onSearch(e)},E=(e,t)=>{x(e),v.onChange&&v.onChange(e,t)};return"inline"===p?(0,r.jsx)(n.NIc,{isInvalid:f,isRequired:u,children:(0,r.jsxs)(n.rjZ,{templateColumns:i?"1fr 3fr":"1fr",children:[i?(0,r.jsx)(l.__,{htmlFor:v.id||t,...a,children:i}):null,(0,r.jsxs)(n.jqI,{align:"center",children:[(0,r.jsxs)(n.jqI,{vertical:!0,flex:1,className:"mr-2",children:[(0,r.jsx)(n.WPr,{..._,id:v.id||t,"data-testid":"controlled-select-".concat(_.name),...v,optionRender:j,onSearch:"tags"===v.mode?I:void 0,onChange:E,value:_.value||void 0,status:f?"error":void 0}),h&&(0,r.jsx)(n.Q6r,{children:h}),(0,r.jsx)(l.Bc,{isInvalid:f,message:m.error,fieldName:_.name})]}),(0,r.jsx)(d.b,{label:c,className:f?"mt-2 self-start":void 0})]})]})}):(0,r.jsx)(n.NIc,{isInvalid:f,isRequired:u,children:(0,r.jsxs)(n.gCW,{alignItems:"start",children:[(0,r.jsxs)(n.jqI,{align:"center",children:[i?(0,r.jsx)(l.__,{htmlFor:v.id||t,fontSize:"xs",my:0,mr:1,...a,children:i}):null,(0,r.jsx)(d.b,{label:c})]}),(0,r.jsx)(n.WPr,{..._,id:v.id||t,"data-testid":"controlled-select-".concat(_.name),...v,optionRender:j,onSearch:"tags"===v.mode?I:void 0,onChange:E,value:_.value||void 0,status:f?"error":void 0}),h&&(0,r.jsx)(n.Q6r,{style:{marginTop:0},children:h}),(0,r.jsx)(l.Bc,{isInvalid:f,message:m.error,fieldName:_.name})]})})}},8133:function(e,t,i){"use strict";var r=i(24246),n=i(20595);t.Z=e=>{let{title:t,children:i,isOpen:s,onClose:o,modalContentProps:d,showCloseButton:l=!1,footer:a,...c}=e;return(0,r.jsxs)(n.u_l,{isOpen:s,onClose:o,isCentered:!0,scrollBehavior:"inside",size:"xl",id:"add-modal",...c,children:[(0,r.jsx)(n.ZAr,{}),(0,r.jsxs)(n.hzk,{textAlign:"left",p:0,"data-testid":"add-modal-content",...d,children:[l&&(0,r.jsx)(n.olH,{}),(0,r.jsx)(n.xBx,{p:0,children:(0,r.jsx)(n.xuv,{backgroundColor:"gray.50",px:6,py:4,border:"1px",borderColor:"gray.200",borderTopRadius:6,display:"flex",justifyContent:"space-between",alignItems:"center",children:(0,r.jsx)(n.X6q,{as:"h3",size:"sm",children:t})})}),(0,r.jsx)(n.fef,{pb:4,overflow:"auto",children:i}),a&&(0,r.jsx)(n.mzw,{children:a})]})]})}},70788:function(e,t,i){"use strict";i.d(t,{m:function(){return a}});var r=i(24246),n=i(20595),s=i(79894),o=i.n(s),d=i(27378);let{Text:l}=n.AntTypography,a=e=>{let{items:t,...i}=e,s=(0,d.useMemo)(()=>null==t?void 0:t.map((e,i)=>{let s=i===t.length-1,d={...e},a=d.onClick&&!d.href;return("string"==typeof d.title&&(d.title=(0,r.jsx)(l,{style:{color:"inherit",maxWidth:s?void 0:400},ellipsis:!s,id:s?"breadcrumb-current-page":void 0,children:d.title})),a)?d.title=(0,r.jsx)(n.wpx,{type:"text",size:"small",icon:d.icon,onClick:d.onClick,className:"ant-breadcrumb-link -mt-px px-1 text-inherit",children:d.title}):(d.icon&&(d.title=(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("span",{className:"anticon align-text-bottom",children:d.icon}),d.title]})),d.href&&d.title&&(d.title=(0,r.jsx)(o(),{href:d.href,className:"ant-breadcrumb-link",children:d.title}),delete d.href)),d}),[t]);return(0,r.jsx)(n.zrq,{items:s,...i})}},6675:function(e,t,i){"use strict";i.d(t,{ZS:function(){return d},a4:function(){return s}});var r=i(3228);let n=i(78780).u.injectEndpoints({endpoints:e=>({getPurposes:e.query({query:()=>"purposes"})})}),{useGetPurposesQuery:s}=n,o={purposes:{},special_purposes:{}},d=(0,r.P1)(n.endpoints.getPurposes.select(),e=>{let{data:t}=e;return t||o})},51263:function(e,t,i){"use strict";var r=i(24246),n=i(20595);t.Z=e=>{let{title:t,children:i,...s}=e;return(0,r.jsxs)(n.xuv,{backgroundColor:"var(--fidesui-bg-corinth)",borderRadius:"4px",padding:"3","data-testid":"setting-".concat(t),...s,children:[(0,r.jsx)(n.xvT,{as:"h3",fontSize:"md",fontWeight:"bold",lineHeight:5,color:"gray.700",mb:3,children:t}),i]})}},59512:function(e,t,i){"use strict";i.d(t,{Cu:function(){return d},Py:function(){return n},fj:function(){return o},uh:function(){return s}});var r=i(39449);let n=[1,3,4,5,6],s="https://ethyca.com/docs/tutorials/consent-management/consent-management-configuration/configure-tcf#vendor-overrides",o={[r.FF.PURPOSE_RESTRICTION]:"Purpose restriction",[r.FF.REQUIRE_CONSENT]:"Require consent",[r.FF.REQUIRE_LEGITIMATE_INTEREST]:"Require legitimate interest"},d={[r.PY.RESTRICT_ALL_VENDORS]:"Restrict all vendors",[r.PY.RESTRICT_SPECIFIC_VENDORS]:"Restrict specific vendors",[r.PY.ALLOW_SPECIFIC_VENDORS]:"Allow specific vendors"}},80758:function(e,t,i){"use strict";i.r(t),i.d(t,{default:function(){return Z}});var r=i(24246),n=i(20595),s=i(86677),o=i(27378),d=i(59301),l=i(35287),a=i(58754),c=i(6675),u=i(51263),p=i(59512),h=i(59003),v=i(92222),_=i(47935),m=i(39449),x=i(34090),f=i(55484),g=i(97181),R=i(812),j=i(8133),I=i(46628),E=i(52955);let y=e=>{if(/^\d+$/.test(e))return!0;let t=e.match(/^(\d+)-(\d+)$/);return!!t&&parseInt(t[1],10)<parseInt(t[2],10)},C=e=>{if(/^\d+$/.test(e)){let t=parseInt(e,10);return{start:t,end:t}}let t=e.match(/^(\d+)-(\d+)$/);return t?{start:parseInt(t[1],10),end:parseInt(t[2],10)}:null},T=(e,t)=>e.end===e.start?e.start>=t.start&&(null===t.end||e.start<=t.end):t.end===t.start?t.start>=e.start&&(null===e.end||t.start<=e.end):null===e.end&&null!==t.end?e.start<=t.end:null===t.end&&null!==e.end?t.start<=e.end:null===e.end&&null===t.end||e.start<=t.end&&e.end>=t.start||t.start<=e.end&&t.end>=e.start,b=(e,t)=>e.end===e.start?e.start>=t.start&&(null===t.end||e.start<=t.end):null===t.end?e.start>=t.start:null!==e.end&&e.start>=t.start&&e.end<=t.end,S=(e,t,i,r)=>{var n;let s=t.filter(e=>e.purpose_id===i&&e.id!==r);if(!(null===(n=e.vendor_ids)||void 0===n?void 0:n.length))return!1;let o=e.vendor_ids.map(C).filter(e=>null!==e);return 0!==o.length&&s.some(t=>{let i=e.vendor_restriction===m.PY.RESTRICT_SPECIFIC_VENDORS&&t.vendor_restriction===m.PY.ALLOW_SPECIFIC_VENDORS||e.vendor_restriction===m.PY.ALLOW_SPECIFIC_VENDORS&&t.vendor_restriction===m.PY.RESTRICT_SPECIFIC_VENDORS,r=t.vendor_ids.map(C).filter(e=>null!==e);return i?e.vendor_restriction===m.PY.ALLOW_SPECIFIC_VENDORS?r.some(e=>o.some(t=>!b(e,t))):o.some(e=>r.some(t=>!b(e,t))):t.vendor_restriction===e.vendor_restriction&&o.some(e=>r.some(t=>T(e,t)))})},N=e=>{if(/^\d+$/.test(e))return{start_vendor_id:parseInt(e,10),end_vendor_id:null};let t=e.match(/^(\d+)-(\d+)$/);if(t){let e=parseInt(t[1],10),i=parseInt(t[2],10);if(e<i)return{start_vendor_id:e,end_vendor_id:i}}return null},F=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return e.map(N).filter(e=>null!==e)},w="This restriction type is already in use for this purpose",P={restriction_type:"",vendor_restriction:"",vendor_ids:[]},O=e=>{let{isOpen:t,onClose:i,initialValues:s=P,existingRestrictions:o=[],purposeId:d,restrictionId:l,configurationId:a}=e,c=(0,n.pmc)(),[u]=(0,E.a_)(),[h]=(0,E.h3)(),v=!(d&&p.Py.includes(+d)),_=o.filter(e=>e.id!==l).map(e=>e.restriction_type),C=[{value:m.FF.PURPOSE_RESTRICTION,label:p.fj[m.FF.PURPOSE_RESTRICTION],disabled:_.includes(m.FF.PURPOSE_RESTRICTION),title:_.includes(m.FF.PURPOSE_RESTRICTION)?w:void 0},{value:m.FF.REQUIRE_CONSENT,label:p.fj[m.FF.REQUIRE_CONSENT],disabled:_.includes(m.FF.REQUIRE_CONSENT),title:_.includes(m.FF.REQUIRE_CONSENT)?w:void 0},{value:m.FF.REQUIRE_LEGITIMATE_INTEREST,label:p.fj[m.FF.REQUIRE_LEGITIMATE_INTEREST],disabled:_.includes(m.FF.REQUIRE_LEGITIMATE_INTEREST),title:_.includes(m.FF.REQUIRE_LEGITIMATE_INTEREST)?w:void 0}],T=[{value:m.PY.RESTRICT_ALL_VENDORS,label:p.Cu[m.PY.RESTRICT_ALL_VENDORS],disabled:_.length>0,title:_.length>0?"Cannot restrict all vendors when other restrictions exist":void 0},{value:m.PY.RESTRICT_SPECIFIC_VENDORS,label:p.Cu[m.PY.RESTRICT_SPECIFIC_VENDORS]},{value:m.PY.ALLOW_SPECIFIC_VENDORS,label:p.Cu[m.PY.ALLOW_SPECIFIC_VENDORS]}],b=f.Ry().shape({restriction_type:f.Z_().required("Restriction type is required"),vendor_restriction:f.Z_().required("Vendor restriction is required"),vendor_ids:f.IX().when("vendor_restriction",{is:e=>e!==m.PY.RESTRICT_ALL_VENDORS,then:e=>e.required("At least one vendor ID is required").min(1,"At least one vendor ID is required").test("valid-format","Vendor IDs must be numbers or ranges (e.g., 10 or 15-300)",e=>{var t;return null===(t=null==e?void 0:e.every(e=>y(e)))||void 0===t||t}).test("no-conflicts","One or more of these vendors already have a restriction for this purpose. Please update the existing restriction or remove duplicates.",(e,t)=>!S({...t.parent,vendor_ids:e},o,d,l))})}),N=async e=>{try{let t={restriction_type:e.restriction_type,vendor_restriction:e.vendor_restriction,range_entries:e.vendor_restriction!==m.PY.RESTRICT_ALL_VENDORS?F(e.vendor_ids):[]},r={...t,purpose_id:null!=d?d:0};if(l){let e=await h({configuration_id:a,restriction_id:l,restriction:t});if((0,R.D4)(e)){c((0,I.Vo)("Failed to update restriction"));return}c((0,I.t5)("Restriction updated successfully"))}else{let e=await u({configuration_id:a,restriction:r});if((0,R.D4)(e)){c((0,I.Vo)("Failed to create restriction"));return}c((0,I.t5)("Restriction created successfully"))}i()}catch(e){c((0,I.Vo)("Failed to save restriction"))}};return(0,r.jsx)(j.Z,{isOpen:t,onClose:i,title:"Edit restriction",children:(0,r.jsx)(x.J9,{initialValues:{...s,restriction_type:v?s.restriction_type:m.FF.PURPOSE_RESTRICTION},onSubmit:N,validationSchema:b,children:e=>{let{values:t,validateField:s,setTouched:o}=e;return(0,r.jsx)(x.l0,{children:(0,r.jsxs)(n.jqI,{vertical:!0,className:"gap-6",children:[(0,r.jsx)(n.xvT,{className:"text-sm",children:"Define how specific vendors are restricted from processing data for this purpose. Select a restriction type, set whether the listed vendors are restricted or allowed, and specify which vendor IDs the restriction applies to."}),(0,r.jsx)(n.esZ,{title:v?void 0:"Non-flexible purposes only support Purpose restrictions and cannot be restricted by consent or legitimate interest settings.",children:(0,r.jsx)(g.d,{name:"restriction_type",label:"Restriction type",options:C,layout:"stacked",tooltip:"Choose how vendors are permitted to process data for this purpose. This setting overrides the vendor's declared legal basis in the Global Vendor List.",isRequired:!0,disabled:!v,className:"w-full"})}),(0,r.jsx)(g.d,{name:"vendor_restriction",label:"Vendor restriction",options:T,layout:"stacked",tooltip:"Decide if the restriction applies to all vendors, specific vendors, or if only certain vendors are allowed.",isRequired:!0}),(0,r.jsx)(n.UO1,{in:!!t.restriction_type&&!!t.vendor_restriction&&t.vendor_restriction!==m.PY.RESTRICT_ALL_VENDORS,animateOpacity:!0,children:(0,r.jsx)(g.d,{name:"vendor_ids",label:"Vendor IDs",mode:"tags",options:[],layout:"stacked",placeholder:"Enter vendor IDs",open:!1,suffixIcon:(0,r.jsx)("span",{}),tooltip:"List the specific vendors that are restricted or allowed from processing data for this purpose.",disabled:t.vendor_restriction===m.PY.RESTRICT_ALL_VENDORS,tokenSeparators:[","," "],onBlur:()=>{setTimeout(()=>{o({vendor_ids:!0}),s("vendor_ids")},100)},helperText:"Enter IDs (e.g. 123) or ranges (e.g. 1-10) and press enter",isRequired:!0})}),(0,r.jsxs)(n.jqI,{justify:"flex-end",className:"gap-3 pt-4",children:[(0,r.jsx)(n.wpx,{onClick:i,"data-testid":"cancel-restriction-button",children:"Cancel"}),(0,r.jsx)(n.wpx,{type:"primary",htmlType:"submit","data-testid":"save-restriction-button",children:"Save"})]})]})})}})})};var L=i(72625),q=i(58452);let A=e=>{let{currentValues:t,existingRestrictions:i}=e,[d,l]=(0,o.useState)(!1),[a,c]=(0,o.useState)(!1),u=(0,s.useRouter)(),p=(0,n.pmc)(),[h]=(0,E.FC)(),v=u.query.purpose_id?parseInt(u.query.purpose_id,10):void 0,_=u.query.configuration_id,m=async()=>{try{if(!(null==t?void 0:t.id))return;let e=await h({configuration_id:_,restriction_id:t.id});if((0,R.D4)(e)){p((0,I.Vo)("Failed to delete publisher restriction"));return}l(!1),p((0,I.t5)("Publisher restriction deleted successfully"))}catch(e){p((0,I.Vo)("Failed to delete publisher restriction"))}};return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)(n.vyj,{children:[(0,r.jsx)(n.wpx,{size:"small",onClick:()=>c(!0),"data-testid":"edit-restriction-button",children:"Edit"}),(0,r.jsx)(n.wpx,{size:"small",onClick:()=>l(!0),"data-testid":"delete-restriction-button",children:"Delete"})]}),(0,r.jsx)(O,{isOpen:a,onClose:()=>c(!1),initialValues:t,existingRestrictions:i,purposeId:v,restrictionId:null==t?void 0:t.id,configurationId:_}),(0,r.jsx)(q.Z,{isOpen:d,onClose:()=>l(!1),onConfirm:m,title:"Confirm deletion",message:"Are you sure you want to delete this publisher restriction? This action cannot be undone.",cancelButtonText:"Cancel",continueButtonText:"Delete"})]})},D=(0,v.Cl)(),V=()=>(0,o.useMemo)(()=>[D.accessor(e=>e.restriction_type,{id:"restriction_type",cell:e=>{let{getValue:t}=e,i=t();return(0,r.jsx)(_.G3,{value:p.fj[i]})},header:e=>(0,r.jsx)(_.Rr,{value:"Restriction type",...e})}),D.accessor(e=>e.vendor_restriction,{id:"vendor_restriction",cell:e=>{let{getValue:t}=e,i=t();return(0,r.jsx)(_.G3,{value:p.Cu[i]})},header:e=>(0,r.jsx)(_.Rr,{value:"Vendor restriction",...e})}),D.accessor(e=>e.vendor_ids,{id:"vendor_ids",cell:e=>{let{getValue:t}=e;return(0,r.jsx)(_.G3,{value:t().join(", ")||"All vendors"})},header:e=>(0,r.jsx)(L.vs,{value:"Vendors",helperText:"Specify which vendors the restriction applies to. You can apply restrictions to all vendors, specific vendors by their IDs, or allow only certain vendors while restricting the rest.",...e})}),D.display({id:"actions",cell:e=>(0,r.jsx)(A,{currentValues:e.row.original,existingRestrictions:e.table.getRowModel().rows.map(e=>e.original)}),header:"Actions",size:154,meta:{disableRowClick:!0}})],[]),k=e=>{let{onAdd:t}=e;return(0,r.jsxs)(n.jqI,{vertical:!0,align:"center",className:"mt-6 w-full gap-3 self-center whitespace-normal py-10","data-testid":"empty-table-notice",children:[(0,r.jsx)(n.xvT,{fontSize:"md",fontWeight:"semibold",children:"Add a restriction"}),(0,r.jsx)(n.xvT,{fontSize:"sm",className:"max-w-[70%]",children:"No restrictions have been added. By default, all vendors follow their declared legal basis unless a restriction is applied—add a restriction to override this behavior."}),(0,r.jsx)(n.wpx,{type:"primary",onClick:t,children:"Add +"})]})},U=()=>{let[e,t]=(0,o.useState)(!1),i=V(),d=(0,s.useRouter)(),l=d.query.purpose_id?parseInt(d.query.purpose_id,10):void 0,a=d.query.configuration_id,{data:c,isFetching:u}=(0,E.a9)({configuration_id:a,purpose_id:null!=l?l:0},{skip:!a||!l}),p=((null==c?void 0:c.items)||[]).map(e=>{var t;return{id:e.id,restriction_type:e.restriction_type,vendor_restriction:e.vendor_restriction,vendor_ids:(null===(t=e.range_entries)||void 0===t?void 0:t.map(e=>e.end_vendor_id?"".concat(e.start_vendor_id,"-").concat(e.end_vendor_id):e.start_vendor_id.toString()))||[],purpose_id:e.purpose_id}}),x=p.some(e=>e.vendor_restriction===m.PY.RESTRICT_ALL_VENDORS),f=Object.values(m.FF).every(e=>p.some(t=>t.restriction_type===e)),g=(0,h.b7)({getCoreRowModel:(0,v.sC)(),columns:i,data:p,columnResizeMode:"onChange",manualPagination:!0}),R=()=>{t(!0)};return(0,r.jsxs)(n.jqI,{vertical:!0,className:"overflow-auto",children:[(0,r.jsxs)(_.Q$,{children:[(0,r.jsx)(n.LZC,{}),(0,r.jsx)(n.esZ,{title:x?'Each vendor must have a unique restriction type. When "Restrict all vendors" is active for any restriction type, no other restrictions can be added.':f?"Each purpose must have a unique restriction type. When all restriction types are active, no other restrictions can be added. Use the 'Edit' button to change the vendor restrictions on each type.":void 0,children:(0,r.jsx)(n.wpx,{type:"primary",onClick:R,disabled:x||f,"data-testid":"add-restriction-button",children:"Add restriction +"})})]}),u?(0,r.jsx)(_.I4,{rowHeight:36,numRows:3}):(0,r.jsx)(_.ZK,{tableInstance:g,emptyTableNotice:(0,r.jsx)(k,{onAdd:R})}),(0,r.jsx)(O,{isOpen:e,onClose:()=>{t(!1)},existingRestrictions:p,purposeId:l,configurationId:a})]})};var Z=()=>{let e=(0,s.useRouter)(),t=decodeURIComponent(e.query.configuration_id),i=decodeURIComponent(e.query.purpose_id),{data:h,isLoading:v}=(0,c.a4)(),{data:_}=(0,E.NZ)(t),m=(0,o.useMemo)(()=>null==h?void 0:h.purposes[i],[h,i]);return(0,r.jsxs)(l.Z,{title:"Consent Configuration",children:[(0,r.jsx)(a.Z,{heading:"Consent configuration",breadcrumbItems:[{title:"Consent settings",href:"/settings/consent"},{title:(null==_?void 0:_.name)||"Configuration"},{title:"TCF purpose ".concat(i)}]}),(0,r.jsxs)(n.vyj,{direction:"vertical",size:"middle",children:[(0,r.jsxs)(n.vyj,{direction:"vertical",size:"middle",children:[(0,r.jsx)(u.Z,{title:"TCF purpose ".concat(i).concat((null==m?void 0:m.name)?": ".concat(null==m?void 0:m.name):""),children:v?(0,r.jsxs)(n.jqI,{vertical:!0,className:"gap-1.5",children:[(0,r.jsx)(n.OdW,{height:"16px",width:"100%"}),(0,r.jsx)(n.OdW,{height:"16px",width:"100%"}),(0,r.jsx)(n.OdW,{height:"16px",width:"30%"})]}):!!m&&(0,r.jsx)(n.xvT,{fontSize:"sm",children:null==m?void 0:m.description})}),(0,r.jsx)(u.Z,{title:(null==_?void 0:_.name)||"Configuration",children:(0,r.jsx)(n.vyj,{direction:"vertical",className:"gap-3",children:(0,r.jsxs)(n.xvT,{fontSize:"sm",children:["Add restrictions to control how vendors process data for specific purposes. For each restriction, choose a restriction type. Then, decide whether the restriction applies to all vendors, specific vendors, or only to a limited set of allowed vendors. You can add multiple restrictions—they'll appear in the table below."," ",(0,r.jsx)(d.Z,{href:p.uh,children:"Learn more about publisher restrictions"})," ","in our docs."]})})})]}),(0,r.jsx)(U,{})]})]})}}},function(e){e.O(0,[2888,9774,179],function(){return e(e.s=77713)}),_N_E=e.O()}]);
@@ -1 +0,0 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3785],{90988:function(e,t,s){(window.__NEXT_P=window.__NEXT_P||[]).push(["/systems",function(){return s(69955)}])},30952:function(e,t,s){"use strict";s.d(t,{f:function(){return d}});var l=s(24246),a=s(66726),n=s.n(a),r=s(27378),i=s(26917);let d=e=>{let{value:t,onChange:s,placeholder:a,...d}=e,[o,c]=(0,r.useState)(t);(0,r.useEffect)(()=>{c(t||"")},[t]);let u=n()(s,500),m=(0,r.useCallback)(e=>{c(e),u(e)},[]);return(0,l.jsx)(i.Z,{value:o,onChange:m,onClear:()=>{c(""),s("")},placeholder:a,...d})}},35287:function(e,t,s){"use strict";var l=s(24246),a=s(20595),n=s(88038),r=s.n(n);s(27378),t.Z=e=>{let{children:t,title:s,mainProps:n}=e;return(0,l.jsxs)(a.kCb,{"data-testid":s,direction:"column",height:"calc(100vh - 48px)",width:"calc(100vw - 240px)",children:[(0,l.jsxs)(r(),{children:[(0,l.jsxs)("title",{children:["Fides Admin UI - ",s]}),(0,l.jsx)("meta",{name:"description",content:"Privacy Engineering Platform"}),(0,l.jsx)("link",{rel:"icon",href:"/favicon.ico"})]}),(0,l.jsx)(a.kCb,{px:10,py:6,as:"main",overflow:"auto",direction:"column",flex:1,minWidth:0,...n,children:t})]})}},58754:function(e,t,s){"use strict";var l=s(24246),a=s(20595),n=s(70788);t.Z=e=>{let{heading:t,breadcrumbItems:s,isSticky:r=!0,children:i,rightContent:d,style:o,...c}=e;return(0,l.jsxs)("div",{...c,style:r?{position:"sticky",top:"-24px",paddingTop:"24px",paddingBottom:"24px",paddingLeft:"40px",marginLeft:"-40px",paddingRight:"40px",marginRight:"-40px",marginTop:"-24px",left:0,zIndex:20,backgroundColor:"white",...o}:{paddingBottom:"24px",...o},children:[(0,l.jsxs)(a.jqI,{justify:"space-between",children:["string"==typeof t?(0,l.jsx)(a.lQT,{className:s||i?"pb-4":void 0,level:1,"data-testid":"page-heading",children:t}):t,d&&(0,l.jsx)("div",{"data-testid":"page-header-right-content",children:d})]}),!!s&&(0,l.jsx)(n.m,{className:i?"pb-4":void 0,items:s,"data-testid":"page-breadcrumb"}),i]})}},19904:function(e,t,s){"use strict";s.d(t,{Tg:function(){return r}});var l=s(24246),a=s(16134),n=s(31793);let r=e=>(0,a.C)(n.uu).filter(t=>e.includes(t)).length>0;t.ZP=e=>{let{scopes:t,children:s}=e;return r(t)?(0,l.jsx)(l.Fragment,{children:s}):null}},97181:function(e,t,s){"use strict";s.d(t,{d:function(){return o}});var l=s(24246),a=s(20595),n=s(34090),r=s(27378),i=s(46238),d=s(40324);let o=e=>{let{name:t,label:s,labelProps:o,tooltip:c,isRequired:u,layout:m="inline",helperText:p,...g}=e,[y,h,{setValue:x}]=(0,n.U$)(t),j=!!(h.touched&&h.error),[v,f]=(0,r.useState)("");y.value||"tags"!==g.mode&&"multiple"!==g.mode||(y.value=[]),"tags"===g.mode&&"string"==typeof y.value&&(y.value=[y.value]);let k="tags"===g.mode?(e,t)=>e?e.value!==v||y.value.includes(v)?g.optionRender?g.optionRender(e,t):e.label:'Create "'.concat(v,'"'):void 0:g.optionRender||void 0,b=e=>{f(e),g.onSearch&&g.onSearch(e)},_=(e,t)=>{x(e),g.onChange&&g.onChange(e,t)};return"inline"===m?(0,l.jsx)(a.NIc,{isInvalid:j,isRequired:u,children:(0,l.jsxs)(a.rjZ,{templateColumns:s?"1fr 3fr":"1fr",children:[s?(0,l.jsx)(d.__,{htmlFor:g.id||t,...o,children:s}):null,(0,l.jsxs)(a.jqI,{align:"center",children:[(0,l.jsxs)(a.jqI,{vertical:!0,flex:1,className:"mr-2",children:[(0,l.jsx)(a.WPr,{...y,id:g.id||t,"data-testid":"controlled-select-".concat(y.name),...g,optionRender:k,onSearch:"tags"===g.mode?b:void 0,onChange:_,value:y.value||void 0,status:j?"error":void 0}),p&&(0,l.jsx)(a.Q6r,{children:p}),(0,l.jsx)(d.Bc,{isInvalid:j,message:h.error,fieldName:y.name})]}),(0,l.jsx)(i.b,{label:c,className:j?"mt-2 self-start":void 0})]})]})}):(0,l.jsx)(a.NIc,{isInvalid:j,isRequired:u,children:(0,l.jsxs)(a.gCW,{alignItems:"start",children:[(0,l.jsxs)(a.jqI,{align:"center",children:[s?(0,l.jsx)(d.__,{htmlFor:g.id||t,fontSize:"xs",my:0,mr:1,...o,children:s}):null,(0,l.jsx)(i.b,{label:c})]}),(0,l.jsx)(a.WPr,{...y,id:g.id||t,"data-testid":"controlled-select-".concat(y.name),...g,optionRender:k,onSearch:"tags"===g.mode?b:void 0,onChange:_,value:y.value||void 0,status:j?"error":void 0}),p&&(0,l.jsx)(a.Q6r,{style:{marginTop:0},children:p}),(0,l.jsx)(d.Bc,{isInvalid:j,message:h.error,fieldName:y.name})]})})}},70788:function(e,t,s){"use strict";s.d(t,{m:function(){return o}});var l=s(24246),a=s(20595),n=s(79894),r=s.n(n),i=s(27378);let{Text:d}=a.AntTypography,o=e=>{let{items:t,...s}=e,n=(0,i.useMemo)(()=>null==t?void 0:t.map((e,s)=>{let n=s===t.length-1,i={...e},o=i.onClick&&!i.href;return("string"==typeof i.title&&(i.title=(0,l.jsx)(d,{style:{color:"inherit",maxWidth:n?void 0:400},ellipsis:!n,id:n?"breadcrumb-current-page":void 0,children:i.title})),o)?i.title=(0,l.jsx)(a.wpx,{type:"text",size:"small",icon:i.icon,onClick:i.onClick,className:"ant-breadcrumb-link -mt-px px-1 text-inherit",children:i.title}):(i.icon&&(i.title=(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("span",{className:"anticon align-text-bottom",children:i.icon}),i.title]})),i.href&&i.title&&(i.title=(0,l.jsx)(r(),{href:i.href,className:"ant-breadcrumb-link",children:i.title}),delete i.href)),i}),[t]);return(0,l.jsx)(a.zrq,{items:n,...s})}},33335:function(e,t,s){"use strict";s.d(t,{E:function(){return l}});let l=e=>e.toLowerCase().replace(/[ .]/g,"_").replace(/[^a-zA-Z0-9_<>-]/g,"")},22583:function(e,t,s){"use strict";s.d(t,{j:function(){return a}});var l=s(39449);let a={[l.Ej.TAXONOMY_WHITE]:"default",[l.Ej.TAXONOMY_RED]:"error",[l.Ej.TAXONOMY_ORANGE]:"warning",[l.Ej.TAXONOMY_YELLOW]:"caution",[l.Ej.TAXONOMY_GREEN]:"success",[l.Ej.TAXONOMY_BLUE]:"info",[l.Ej.TAXONOMY_PURPLE]:"alert",[l.Ej.SANDSTONE]:"sandstone",[l.Ej.MINOS]:"minos"}},92818:function(e,t,s){"use strict";s.d(t,{r:function(){return d}});var l=s(24246),a=s(27378),n=s(97181),r=s(22583),i=s(39449);let d={[i.Ej.TAXONOMY_WHITE]:"White",[i.Ej.TAXONOMY_RED]:"Red",[i.Ej.TAXONOMY_ORANGE]:"Orange",[i.Ej.TAXONOMY_YELLOW]:"Yellow",[i.Ej.TAXONOMY_GREEN]:"Green",[i.Ej.TAXONOMY_BLUE]:"Blue",[i.Ej.TAXONOMY_PURPLE]:"Purple",[i.Ej.SANDSTONE]:"Sandstone",[i.Ej.MINOS]:"Minos"},o=e=>{let{color:t,...s}=e;return(0,l.jsx)("span",{"aria-hidden":!0,className:"mr-2 inline-block size-4 rounded-lg align-middle",style:{backgroundColor:"var(--fidesui-bg-".concat(r.j[t],")"),border:t===i.Ej.TAXONOMY_WHITE?"1px solid var(--fidesui-neutral-200)":"none",...s.style}})},c=e=>{let t=null==e?void 0:e.value,s=null==e?void 0:e.label;return(0,l.jsxs)("span",{className:"flex items-center",children:[(0,l.jsx)(o,{color:t}),(0,l.jsx)("span",{children:s})]})};t.Z=e=>{let t=Object.values(i.Ej).map(e=>({value:e,label:d[e]})),[s,r]=(0,a.useState)(void 0);return(0,l.jsx)(n.d,{...e,options:t,optionRender:c,layout:"stacked",value:s,onChange:e=>{r(e)},prefix:(0,l.jsx)(o,{color:null!=s?s:i.Ej.TAXONOMY_WHITE,style:{marginBottom:"2px"}})})}},69955:function(e,t,s){"use strict";s.r(t),s.d(t,{default:function(){return Q}});var l=s(24246),a=s(20595),n=s(86677),r=s(27378),i=s(25980),d=s(35287),o=s(77830),c=s(58754),u=s(30952),m=s(812),p=s(65450),g=s(34090),y=s(83766),h=s.n(y),x=s(55484),j=s(97181),v=s(40324),f=s(28079),k=s(1315),b=s(92818);let _="all-suggested";var E=e=>{let{options:t,loading:s,name:n,suggestedDataUses:i,...d}=e,[o,c,{setValue:u}]=(0,g.U$)(n),m=!!(c.touched&&c.error),p=(0,r.useMemo)(()=>{let e=[],s=[];return null==t||t.forEach(t=>{i.includes(t.value)?e.push(t):s.push(t)}),{suggested:e,all:s}},[t,i]),y=p.suggested.length?[{label:"Select all suggested",value:_},{label:(0,l.jsxs)(a.vyj,{children:[(0,l.jsx)(a.QMR,{size:14}),(0,l.jsx)("span",{children:"Suggested data uses"})]}),value:"suggested",options:p.suggested},{label:(0,l.jsxs)(a.vyj,{children:[(0,l.jsx)(a.PJP.BBB,{}),(0,l.jsx)("span",{children:"All data uses"})]}),value:"all",options:p.all}]:p.all;return(0,l.jsxs)(a.jqI,{vertical:!0,gap:"small",children:[(0,l.jsx)(a.jqI,{align:"center",children:(0,l.jsx)(v.__,{htmlFor:d.id||n,fontSize:"xs",my:0,mr:1,children:"Data uses"})}),(0,l.jsx)(a.WPr,{options:y,mode:"multiple",placeholder:"Select data uses",allowClear:!0,loading:s,value:o.value,onChange:e=>{e.includes(_)?u(h()([...i,...e.filter(e=>e!==_)])):u(e)},status:m?"error":void 0,virtual:!1,...d}),(0,l.jsx)(v.Bc,{isInvalid:m,message:c.error,fieldName:o.name})]})},S=s(39449);let C=x.Ry().shape({name:x.Z_().required("Name is required").label("Name"),label_color:x.Z_().required("Color is required").label("Color"),systems:x.IX().of(x.Z_()).label("Systems"),data_uses:x.IX().of(x.Z_()).label("Data uses")});var N=e=>{let{selectedSystemKeys:t=[],onSubmit:s,onCancel:n,isSubmitting:i=!1}=e,{data:d=[],isLoading:o}=(0,f.fd)(),{data:c,isLoading:u}=(0,k.K3)(),m=(0,r.useMemo)(()=>d.map(e=>({label:e.name||e.fides_key,value:e.fides_key})),[d]),p=(0,r.useMemo)(()=>{var e;let s=null!==(e=null==c?void 0:c.filter(e=>t.includes(e.fides_key)))&&void 0!==e?e:[];return h()(null==s?void 0:s.flatMap(e=>e.privacy_declarations.map(e=>e.data_use)))},[c,t]),y=(0,r.useMemo)(()=>{var e;return null!==(e=null==c?void 0:c.map(e=>({label:e.name||e.fides_key,value:e.fides_key})))&&void 0!==e?e:[]},[c]),x={name:"",description:"",label_color:S.Ej.TAXONOMY_WHITE,systems:t,data_uses:[],active:!0};return(0,l.jsx)(g.J9,{initialValues:x,validationSchema:C,onSubmit:s,enableReinitialize:!0,children:e=>{let{isValid:t,dirty:s}=e;return(0,l.jsx)(g.l0,{children:(0,l.jsxs)(a.jqI,{vertical:!0,gap:"middle",children:[(0,l.jsx)(a.AntTypography.Title,{level:2,children:"Create system group"}),(0,l.jsx)(v.j0,{name:"name",label:"Name",isRequired:!0,variant:"stacked",placeholder:"Enter system group name"}),(0,l.jsx)(v.Ks,{name:"description",label:"Description",variant:"stacked",placeholder:"Enter system group description",resize:!1}),(0,l.jsx)(j.d,{name:"systems",label:"Systems",mode:"multiple",placeholder:"Select systems",options:y,layout:"stacked",allowClear:!0,loading:u}),(0,l.jsx)(b.Z,{name:"label_color",label:"Color"}),(0,l.jsx)(E,{name:"data_uses",options:m,loading:o,suggestedDataUses:p}),(0,l.jsxs)(a.jqI,{gap:"small",justify:"space-between",className:"pt-4",children:[(0,l.jsx)(a.wpx,{onClick:n,disabled:i,children:"Cancel"}),(0,l.jsx)(a.wpx,{type:"primary",htmlType:"submit",loading:i,disabled:!t||!s||i,"data-testid":"save-btn",children:"Create group"})]})]})})}})},w=s(31793),O=s(31883),T=e=>{let{selectedRowKeys:t,createModalIsOpen:s,setCreateModalIsOpen:n,handleCreateSystemGroup:d,handleBulkAddToGroup:o,groupMenuItems:c}=e,[u,g]=a.Pg3.useMessage(),[y,h]=(0,r.useState)(!1),[x]=(0,p.WP)(),{plus:j}=(0,i.hz)(),{data:v}=(0,w.wv)({page:1,size:100,include_external:!1}),[f]=(0,p.C9)(),k=(0,r.useCallback)(async e=>{let s=await x({data_steward:e,system_keys:t});(0,O.D4)(s)?u.error((0,m.e$)(s.error,"A problem occurred assigning stewards")):u.success("".concat(t.length," systems assigned to ").concat(e," successfully"))},[x,t,u]),b=async()=>{let e=await f(t);(0,O.D4)(e)?u.error((0,m.e$)(e.error,"A problem occurred deleting systems")):u.success("".concat(t.length," systems deleted successfully"))},_=(0,r.useMemo)(()=>{let e=[];return c.length&&j&&e.push(t.length?{key:"add-to-system-group",label:"Add to system group",children:[{key:"new-group",label:"Create new group +",onClick:()=>n(!0)},{type:"divider"},...c.map(e=>({key:e.key,label:e.label,onClick:()=>o(e.key)}))]}:{key:"new-group",label:"Create system group +",onClick:()=>n(!0)}),(null==v?void 0:v.items.length)&&e.push({key:"assign-data-steward",label:"Assign data steward",disabled:!t.length,children:v.items.map(e=>({key:e.username,label:e.username,onClick:()=>k(e.username)}))},{type:"divider"}),e.push({key:"delete",label:"Delete",disabled:!t.length,onClick:()=>{h(!0)}}),e},[c,j,null==v?void 0:v.items,t.length,n,o,k]);return(0,l.jsxs)(l.Fragment,{children:[g,(0,l.jsx)(a.$zI,{open:y,onCancel:()=>h(!1),onOk:b,okText:"Delete",okType:"danger",centered:!0,children:(0,l.jsxs)(a.AntTypography.Paragraph,{children:["Delete ",t.length," systems? This action cannot be undone."]})}),(0,l.jsx)(a.$zI,{open:s,destroyOnHidden:!0,onCancel:()=>n(!1),centered:!0,width:768,footer:null,children:(0,l.jsx)(N,{selectedSystemKeys:t.map(e=>e.toString()),onSubmit:d,onCancel:()=>n(!1)})}),(0,l.jsx)(a.S0p,{trigger:["click"],menu:{items:_},children:(0,l.jsx)(a.wpx,{icon:(0,l.jsx)(a.PJP._ME,{}),children:"Actions"})})]})},A=s(19904),I=s(26070),M=s(3110),P=s(99640),D=s(8125),R=s(16394),z=s(33335),X=s(69353),Y=s(88832),q=s(34929),W=e=>{let{privacyDeclarations:t,...s}=e,{getDataUseDisplayName:a}=(0,q.Z)(),n=t.map(e=>e.data_use).map(e=>({label:a(e),key:e}));return(0,l.jsx)(I.Q,{values:n,...s})},Z=s(56141),B=s.n(Z),L=s(22583);let F="update-system-groups-msg";var G=e=>{let{selectedGroups:t,allGroups:s,system:n,columnState:i,...d}=e,[o,c]=(0,r.useState)(!1),[u,p]=(0,r.useState)(t.map(e=>e.fides_key)),[g,y]=a.Pg3.useMessage(),[h]=(0,k.qQ)(),x=async()=>{if(c(!1),B()(u,t.map(e=>e.fides_key)))return;g.open({key:F,type:"loading",content:"Updating groups for ".concat(n.name,"...")});let e=await h({...n,system_groups:u});(0,O.D4)(e)?g.open({key:F,type:"error",content:(0,m.e$)(e.error,"Failed to update system groups")}):g.open({key:F,type:"success",content:"Groups updated for ".concat(n.name)}),setTimeout(()=>{g.destroy(F)},3e3)};return(0,l.jsxs)(a.jqI,{gap:"small",...d,children:[y,!o&&(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(a.j8w,{onClick:()=>c(!0),addable:!0,"data-testid":"group-add-btn","aria-label":"Add group"}),(0,l.jsx)(I.Q,{values:t.map(e=>e&&{label:e.name,key:e.fides_key,tagProps:{color:e.label_color?"".concat(L.j[e.label_color]):void 0,bordered:!1}}),columnState:i})]}),o&&(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(a.WPr,{options:s.map(e=>({label:e.name,value:e.fides_key})),mode:"tags",defaultValue:t.map(e=>e.fides_key),defaultOpen:!0,onChange:e=>{p(e)},onOpenChange:e=>{e||x()},onBlur:()=>c(!1),"aria-label":"Select groups"}),(0,l.jsx)(a.wpx,{"aria-label":"Update groups",icon:(0,l.jsx)(a.PJP.MCw,{}),onClick:x})]})]})},U=()=>{let{data:e}=(0,X.QD)(),t=(0,r.useMemo)(()=>e?e.reduce((e,t)=>({...e,[t.fides_key]:t}),{}):{},[e]),{data:s}=(0,w.wv)({page:1,size:100,include_external:!1}),[d]=(0,p.DW)(),[o]=(0,X.Xz)(),[c]=(0,X.Nr)(),[u,g]=(0,r.useState)(!1),[y,x]=(0,r.useState)(!1),[j,v]=(0,r.useState)(!1),[f,k]=(0,r.useState)(!1),[b,_]=(0,r.useState)(null),E=(0,D.o)({pagination:{defaultPageSize:25,pageSizeOptions:[25,50,100]},search:{defaultSearchQuery:""},sorting:{defaultSortKey:Y.E.NAME,defaultSortOrder:"ascend",validColumns:[Y.E.NAME]}}),{columnFilters:C,pageIndex:N,pageSize:T,searchQuery:q,updateSearch:Z,sortKey:B,sortOrder:L}=E,{data:F,isLoading:U,isFetching:$}=(0,p.xF)({page:N,size:T,search:q,sort_by:B,sort_asc:"ascend"===L,show_deleted:!0,...C}),Q=(0,r.useMemo)(()=>{var e,t;return{enableSelection:!0,dataSource:null!==(e=null==F?void 0:F.items)&&void 0!==e?e:[],totalRows:null!==(t=null==F?void 0:F.total)&&void 0!==t?t:0,isLoading:U,isFetching:$,getRowKey:e=>e.fides_key,customTableProps:{locale:{emptyText:(0,l.jsx)("div",{children:"No systems found"})}}}},[F,U,$]),{tableProps:J,selectionProps:H}=(0,D.V)(E,Q),{selectedRowKeys:K}=null!=H?H:{},[V,ee]=a.Pg3.useMessage(),{plus:et}=(0,i.hz)(),es=(0,n.useRouter)(),el=(0,A.Tg)([S.Sh.SYSTEM_DELETE]),ea=async e=>{let t=await d(e.fides_key);(0,O.D4)(t)?V.error((0,m.e$)(t.error,"Failed to delete system")):V.success("Successfully deleted system"),k(!1)},en=async e=>{let t={...e,fides_key:(0,z.E)(e.name),active:!0},s=await c(t);if((0,O.D4)(s))V.error((0,m.e$)(s.error));else{var l,a;let e="System group '".concat(s.data.name,"' created");(null===(l=s.data.systems)||void 0===l?void 0:l.length)===1?e+=" with system '".concat(s.data.systems[0],"'"):(null===(a=s.data.systems)||void 0===a?void 0:a.length)&&(e+=" with ".concat(s.data.systems.length," systems")),V.success(e)}v(!1)},er=(0,r.useCallback)(async e=>{var s;if(!K)return;let l=t[e],a=await o({...l,systems:h()([...null!==(s=l.systems)&&void 0!==s?s:[],...K.map(e=>e.toString())])});(0,O.D4)(a)?V.error((0,m.e$)(a.error)):V.success("".concat(null==K?void 0:K.length," systems added to group '").concat(e,"'"))},[t,o,K,V]),ei=(0,r.useMemo)(()=>{var t;return null!==(t=null==e?void 0:e.map(e=>({key:e.fides_key,label:e.name,onClick:()=>er(e.fides_key)})))&&void 0!==t?t:[]},[e,er]);return{tableProps:J,selectionProps:H,columns:(0,r.useMemo)(()=>{var n;return[{title:"Name",dataIndex:"name",key:Y.E.NAME,render:(e,t)=>(0,l.jsx)(P.Z,{href:"/systems/configure/".concat(t.fides_key),"data-testid":"system-link-".concat(t.fides_key),children:e||t.fides_key}),ellipsis:!0,fixed:"left",sorter:!0,sortOrder:B===Y.E.NAME?L:null},{dataIndex:"system_groups",key:Y.E.SYSTEM_GROUPS,render:(s,a)=>{var n;return(0,l.jsx)(G,{selectedGroups:null!==(n=null==s?void 0:s.map(e=>null==t?void 0:t[e]).filter(e=>!!e))&&void 0!==n?n:[],allGroups:e,system:{...a,system_groups:null!=s?s:[]},columnState:{isWrapped:!0,isExpanded:u},className:"w-[432px]"})},title:"Groups",hidden:!et,menu:{items:M.DI,onClick:e=>{e.domEvent.stopPropagation(),"expand-all"===e.key?g(!0):"collapse-all"===e.key&&g(!1)}},filters:(0,R.nZ)(null==e?void 0:e.map(e=>e.fides_key),e=>{var s,l;return null!==(l=null===(s=t[e])||void 0===s?void 0:s.name)&&void 0!==l?l:e}),filteredValue:(null==C?void 0:C.system_groups)||null},{title:"Data uses",menu:{items:M.DI,onClick:e=>{e.domEvent.stopPropagation(),"expand-all"===e.key?x(!0):"collapse-all"===e.key&&x(!1)}},dataIndex:"privacy_declarations",key:Y.E.DATA_USES,render:e=>(0,l.jsx)(W,{privacyDeclarations:e,columnState:{isWrapped:!0,isExpanded:y}})},{title:"Data stewards",dataIndex:"data_stewards",key:Y.E.DATA_STEWARDS,render:e=>(0,l.jsx)(I.v,{values:null!=e?e:[],valueSuffix:"users"}),filters:(0,R.nZ)(null==s?void 0:null===(n=s.items)||void 0===n?void 0:n.map(e=>e.username)),filteredValue:(null==C?void 0:C.data_stewards)||null},{title:"Description",dataIndex:"description",key:Y.E.DESCRIPTION,render:e=>(0,l.jsx)("div",{className:"max-w-96",children:(0,l.jsx)(a.AntTypography.Text,{ellipsis:{tooltip:e},children:e})}),ellipsis:!0},{title:"Actions",key:Y.E.ACTIONS,render:(e,t)=>(0,l.jsxs)(a.jqI,{gap:"small",children:[(0,l.jsx)(a.wpx,{size:"small",onClick:()=>es.push("/systems/configure/".concat(t.fides_key)),icon:(0,l.jsx)(a.PJP.I8b,{}),"data-testid":"edit-btn",children:"Edit"}),el&&(0,l.jsx)(a.wpx,{size:"small",onClick:()=>{_(t),k(!0)},icon:(0,l.jsx)(a.PJP.ZNm,{}),"data-testid":"delete-btn",children:"Delete"})]}),fixed:"right"}]},[B,L,et,e,null==C?void 0:C.system_groups,null==C?void 0:C.data_stewards,null==s?void 0:s.items,u,t,y,el,es]),searchQuery:q,updateSearch:Z,columnFilters:C,pageIndex:N,pageSize:T,createModalIsOpen:j,setCreateModalIsOpen:v,deleteModalIsOpen:f,setDeleteModalIsOpen:k,setSelectedSystemForDelete:_,handleCreateSystemGroup:en,handleDelete:ea,handleBulkAddToGroup:er,messageContext:ee,groupMenuItems:ei,selectedSystemForDelete:b}},$=()=>{var e,t;let{tableProps:s,selectionProps:n,columns:r,searchQuery:i,updateSearch:d,createModalIsOpen:o,setCreateModalIsOpen:c,deleteModalIsOpen:m,setDeleteModalIsOpen:p,handleDelete:g,handleCreateSystemGroup:y,handleBulkAddToGroup:h,messageContext:x,groupMenuItems:j,selectedSystemForDelete:v}=U();return(0,l.jsxs)(l.Fragment,{children:[x,(0,l.jsxs)(a.jqI,{justify:"space-between",className:"mb-4",children:[(0,l.jsx)(u.f,{value:i,onChange:d,"data-testid":"system-search"}),(0,l.jsxs)(a.jqI,{gap:"small",children:[(0,l.jsx)(T,{selectedRowKeys:null!==(e=null==n?void 0:n.selectedRowKeys)&&void 0!==e?e:[],createModalIsOpen:o,setCreateModalIsOpen:c,handleCreateSystemGroup:y,handleBulkAddToGroup:h,groupMenuItems:j}),(0,l.jsx)(a.$zI,{open:m,onCancel:()=>p(!1),onOk:()=>!!v&&g(v),okText:"Delete",okType:"danger",cancelText:"Cancel",centered:!0,children:(0,l.jsxs)(a.AntTypography.Paragraph,{children:["Are you sure you want to delete"," ",null!==(t=null==v?void 0:v.name)&&void 0!==t?t:null==v?void 0:v.fides_key,"? This action cannot be undone."]})})]})]}),(0,l.jsx)(a.V5H,{...s,columns:r,rowSelection:n})]})},Q=()=>{let e=(0,n.useRouter)(),{dictionaryService:t}=(0,i.hz)();return(0,l.jsx)(d.Z,{title:"System inventory",children:(0,l.jsxs)(a.xuv,{"data-testid":"system-management",children:[(0,l.jsxs)(c.Z,{heading:"System inventory",breadcrumbItems:[{title:"All systems"}],children:[t&&(0,l.jsx)(a.S0p,{trigger:["click"],menu:{items:[{label:"Create new system",key:"add-system",onClick:()=>e.push(o.N5)},{label:"Add multiple systems",key:"add-multiple-systems",onClick:()=>e.push(o.bJ)}]},children:(0,l.jsx)(a.wpx,{type:"primary","data-testid":"add-system-btn",icon:(0,l.jsx)(a.PJP._ME,{}),className:"absolute right-8 top-8",children:"Add system"})}),!t&&(0,l.jsx)(a.wpx,{type:"primary","data-testid":"add-system-btn",onClick:()=>e.push(o.N5),children:"Add new system"})]}),(0,l.jsx)($,{})]})})}},31883:function(e,t,s){"use strict";s.d(t,{Bw:function(){return l.Bw},D4:function(){return l.D4}});var l=s(19043)}},function(e){e.O(0,[431,8765,9278,5163,1896,7245,9965,2888,9774,179],function(){return e(e.s=90988)}),_N_E=e.O()}]);
@@ -1 +0,0 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4202],{58095:function(e,t,n){var r=n(8817);e.exports=function(e,t){return!!(null==e?0:e.length)&&r(e,t,0)>-1}},21796:function(e){e.exports=function(e,t,n){for(var r=-1,i=null==e?0:e.length;++r<i;)if(n(t,e[r]))return!0;return!1}},8817:function(e,t,n){var r=n(95372),i=n(1129),a=n(58263);e.exports=function(e,t,n){return t==t?a(e,t,n):r(e,i,n)}},1129:function(e){e.exports=function(e){return e!=e}},75733:function(e){e.exports=function(e,t,n){var r=-1,i=e.length;t<0&&(t=-t>i?0:i+t),(n=n>i?i:n)<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var a=Array(i);++r<i;)a[r]=e[r+t];return a}},92198:function(e,t,n){var r=n(52485),i=n(58095),a=n(21796),l=n(65581),o=n(47111),s=n(43735);e.exports=function(e,t,n){var u=-1,d=i,c=e.length,f=!0,h=[],m=h;if(n)f=!1,d=a;else if(c>=200){var p=t?null:o(e);if(p)return s(p);f=!1,d=l,m=new r}else m=t?[]:h;e:for(;++u<c;){var _=e[u],x=t?t(_):_;if(_=n||0!==_?_:0,f&&x==x){for(var v=m.length;v--;)if(m[v]===x)continue e;t&&m.push(x),h.push(_)}else d(m,x,n)||(m!==h&&m.push(x),h.push(_))}return h}},70830:function(e,t,n){var r=n(76747),i=n(31159),a=n(64373),l=n(37948);e.exports=function(e,t){return t=r(t,e),null==(e=a(e,t))||delete e[l(i(t))]}},47111:function(e,t,n){var r=n(46151),i=n(50344),a=n(43735),l=r&&1/a(new r([,-0]))[1]==1/0?function(e){return new r(e)}:i;e.exports=l},64373:function(e,t,n){var r=n(79867),i=n(75733);e.exports=function(e,t){return t.length<2?e:r(e,i(t,0,-1))}},58263:function(e){e.exports=function(e,t,n){for(var r=n-1,i=e.length;++r<i;)if(e[r]===t)return r;return -1}},50344:function(e){e.exports=function(){}},83766:function(e,t,n){var r=n(92198);e.exports=function(e){return e&&e.length?r(e):[]}},43551:function(e,t,n){var r=n(70830);e.exports=function(e,t){return null==e||r(e,t)}},71180:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/taxonomy",function(){return n(33031)}])},18225:function(e,t,n){"use strict";var r=n(24246),i=n(20595);t.Z=e=>{let{alignment:t="center",...n}=e;return(0,r.jsx)(i.kCb,{boxSize:"full",align:"center",justify:t,children:(0,r.jsx)(i.$jN,{color:"primary",...n})})}},19904:function(e,t,n){"use strict";n.d(t,{Tg:function(){return l}});var r=n(24246),i=n(16134),a=n(31793);let l=e=>(0,i.C)(a.uu).filter(t=>e.includes(t)).length>0;t.ZP=e=>{let{scopes:t,children:n}=e;return l(t)?(0,r.jsx)(r.Fragment,{children:n}):null}},94799:function(e,t,n){"use strict";n.d(t,{k:function(){return a}});var r=n(76649);let i=e=>(0,r.Ln)({id:"string"},e),a=e=>(null!=e?e:[]).filter(i)},30320:function(e,t,n){"use strict";n.d(t,{m:function(){return s}});var r=n(27378),i=n(25980),a=n(17245),l=n(32885),o=n(94799);let s=e=>{let{resourceFidesKey:t,resourceType:n}=e,{errorAlert:s}=(0,a.VY)(),{plus:u}=(0,i.hz)(),d=(0,r.useMemo)(()=>null!=t?t:"",[]),c=(0,l.YU)(!0,{skip:!u}),f=(0,l.VN)(n,{skip:!u}),{data:h,isLoading:m,error:p,isError:_}=(0,l.PV)(null!=t?t:"",{skip:""!==d&&!(u&&d)}),[x]=(0,l._D)(),v=c.isLoading||f.isLoading||m,E=(0,r.useMemo)(()=>new Map((0,o.k)(c.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}))}]})),[c.data]),y=(0,r.useMemo)(()=>{var e;return null===(e=f.data)||void 0===e?void 0:e.filter(e=>e.active)},[f.data]),g=(0,r.useMemo)(()=>new Map((0,o.k)(y).map(e=>[e.id,e])),[y]),T=(0,r.useMemo)(()=>_&&(null==p?void 0:p.status)===404?new Map:new Map((0,o.k)(h).map(e=>[e.custom_field_definition_id,e])),[h,_,p]),A=(0,r.useMemo)(()=>{let e=[...g.keys()];return e.sort(),e},[g]),j=(0,r.useMemo)(()=>{let e={};return y&&T&&y.forEach(t=>{let n=T.get(t.id||"");n&&(t.allow_list_id&&"string[]"===t.field_type?e[n.custom_field_definition_id]=n.value:e[n.custom_field_definition_id]=n.value.toString())}),e},[y,T]),S=(0,r.useCallback)(async e=>{if(!u)return;let r="fides_key"in e&&""!==e.fides_key?e.fides_key:t;if(!r)return;let{customFieldValues:i}=e;if(!i||0===Object.keys(i).length)return;let a=[],l=[];A.forEach(e=>{let t=T.get(e),n=i[e];void 0===n||""===n||Array.isArray(n)&&0===n.length?(null==t?void 0:t.id)&&l.push(t.id):a.push({custom_field_definition_id:e,resource_id:r,id:null==t?void 0:t.id,value:n})});try{await x({resource_type:n,resource_id:r,upsert:a,delete:l})}catch(e){s("One or more custom fields have failed to save, please try again."),console.error(e)}},[u,T,s,t,A,x,n]);return{customFieldValues:j,definitionIdToCustomField:T,idToAllowListWithOptions:E,idToCustomFieldDefinition:g,isEnabled:u,isLoading:v,sortedCustomFieldDefinitionIds:A,upsertCustomFields:S}}},33162:function(e,t,n){"use strict";n.d(t,{uc:function(){return c},mZ:function(){return d.m}});var r=n(24246),i=n(20595),a=n(34090),l=n(30234),o=n(39449),s=n(97181),u=n(40324),d=n(30320);let c=e=>{let{resourceFidesKey:t,resourceType:n}=e,{idToAllowListWithOptions:c,idToCustomFieldDefinition:f,isEnabled:h,isLoading:m,sortedCustomFieldDefinitionIds:p}=(0,d.m)({resourceFidesKey:t,resourceType:n});return h&&0!==p.length?(0,r.jsx)(l.Z,{heading:"Custom fields",children:(0,r.jsx)(i.kCb,{flexDir:"column","data-testid":"custom-fields-list",children:(0,r.jsx)(i.kCb,{flexDir:"column",gap:"24px",children:m?(0,r.jsx)(i.M5Y,{children:(0,r.jsx)(i.$jN,{})}):p.length>0&&(0,r.jsx)(i.kCb,{flexDirection:"column",gap:"12px",paddingBottom:"24px",children:p.map(e=>{let t=f.get(e);if(!t)return null;let n="customFieldValues.".concat(t.id);if(!t.allow_list_id&&t.field_type===o.AL.STRING)return(0,r.jsx)(a.gN,{name:n,children:e=>{let{field:n}=e;return(0,r.jsx)(u.j0,{...n,label:t.name,tooltip:t.description,variant:"stacked"})}},e);let i=c.get(t.allow_list_id);if(!i)return null;let{options:l}=i;return(0,r.jsx)(s.d,{name:n,allowClear:!0,mode:t.field_type!==o.AL.STRING?"multiple":void 0,label:t.name,options:l,tooltip:t.description,layout:"stacked",className:"w-full"},e)})})})})}):null};n(94799)},97181:function(e,t,n){"use strict";n.d(t,{d:function(){return u}});var r=n(24246),i=n(20595),a=n(34090),l=n(27378),o=n(46238),s=n(40324);let u=e=>{let{name:t,label:n,labelProps:u,tooltip:d,isRequired:c,layout:f="inline",helperText:h,...m}=e,[p,_,{setValue:x}]=(0,a.U$)(t),v=!!(_.touched&&_.error),[E,y]=(0,l.useState)("");p.value||"tags"!==m.mode&&"multiple"!==m.mode||(p.value=[]),"tags"===m.mode&&"string"==typeof p.value&&(p.value=[p.value]);let g="tags"===m.mode?(e,t)=>e?e.value!==E||p.value.includes(E)?m.optionRender?m.optionRender(e,t):e.label:'Create "'.concat(E,'"'):void 0:m.optionRender||void 0,T=e=>{y(e),m.onSearch&&m.onSearch(e)},A=(e,t)=>{x(e),m.onChange&&m.onChange(e,t)};return"inline"===f?(0,r.jsx)(i.NIc,{isInvalid:v,isRequired:c,children:(0,r.jsxs)(i.rjZ,{templateColumns:n?"1fr 3fr":"1fr",children:[n?(0,r.jsx)(s.__,{htmlFor:m.id||t,...u,children:n}):null,(0,r.jsxs)(i.jqI,{align:"center",children:[(0,r.jsxs)(i.jqI,{vertical:!0,flex:1,className:"mr-2",children:[(0,r.jsx)(i.WPr,{...p,id:m.id||t,"data-testid":"controlled-select-".concat(p.name),...m,optionRender:g,onSearch:"tags"===m.mode?T:void 0,onChange:A,value:p.value||void 0,status:v?"error":void 0}),h&&(0,r.jsx)(i.Q6r,{children:h}),(0,r.jsx)(s.Bc,{isInvalid:v,message:_.error,fieldName:p.name})]}),(0,r.jsx)(o.b,{label:d,className:v?"mt-2 self-start":void 0})]})]})}):(0,r.jsx)(i.NIc,{isInvalid:v,isRequired:c,children:(0,r.jsxs)(i.gCW,{alignItems:"start",children:[(0,r.jsxs)(i.jqI,{align:"center",children:[n?(0,r.jsx)(s.__,{htmlFor:m.id||t,fontSize:"xs",my:0,mr:1,...u,children:n}):null,(0,r.jsx)(o.b,{label:d})]}),(0,r.jsx)(i.WPr,{...p,id:m.id||t,"data-testid":"controlled-select-".concat(p.name),...m,optionRender:g,onSearch:"tags"===m.mode?T:void 0,onChange:A,value:p.value||void 0,status:v?"error":void 0}),h&&(0,r.jsx)(i.Q6r,{style:{marginTop:0},children:h}),(0,r.jsx)(s.Bc,{isInvalid:v,message:_.error,fieldName:p.name})]})})}},30234:function(e,t,n){"use strict";var r=n(24246),i=n(20595);t.Z=e=>{let{heading:t,HeadingButton:n,children:a}=e;return(0,r.jsx)(i.Kqy,{spacing:4,children:(0,r.jsxs)(i.xuv,{maxWidth:"720px",border:"1px",borderColor:"gray.200",borderRadius:6,overflow:"visible",mt:6,children:[(0,r.jsxs)(i.xuv,{backgroundColor:"gray.50",px:6,py:4,display:"flex",flexDirection:"row",alignItems:"center",borderBottom:"1px",borderColor:"gray.200",borderTopRadius:6,children:[(0,r.jsx)(i.X6q,{as:"h3",size:"xs",children:t}),n?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(i.LZC,{}),(0,r.jsx)(n,{})]}):null]}),(0,r.jsx)(i.Kqy,{spacing:4,px:6,py:6,children:a})]})})}},22583:function(e,t,n){"use strict";n.d(t,{j:function(){return i}});var r=n(39449);let i={[r.Ej.TAXONOMY_WHITE]:"default",[r.Ej.TAXONOMY_RED]:"error",[r.Ej.TAXONOMY_ORANGE]:"warning",[r.Ej.TAXONOMY_YELLOW]:"caution",[r.Ej.TAXONOMY_GREEN]:"success",[r.Ej.TAXONOMY_BLUE]:"info",[r.Ej.TAXONOMY_PURPLE]:"alert",[r.Ej.SANDSTONE]:"sandstone",[r.Ej.MINOS]:"minos"}},92818:function(e,t,n){"use strict";n.d(t,{r:function(){return s}});var r=n(24246),i=n(27378),a=n(97181),l=n(22583),o=n(39449);let s={[o.Ej.TAXONOMY_WHITE]:"White",[o.Ej.TAXONOMY_RED]:"Red",[o.Ej.TAXONOMY_ORANGE]:"Orange",[o.Ej.TAXONOMY_YELLOW]:"Yellow",[o.Ej.TAXONOMY_GREEN]:"Green",[o.Ej.TAXONOMY_BLUE]:"Blue",[o.Ej.TAXONOMY_PURPLE]:"Purple",[o.Ej.SANDSTONE]:"Sandstone",[o.Ej.MINOS]:"Minos"},u=e=>{let{color:t,...n}=e;return(0,r.jsx)("span",{"aria-hidden":!0,className:"mr-2 inline-block size-4 rounded-lg align-middle",style:{backgroundColor:"var(--fidesui-bg-".concat(l.j[t],")"),border:t===o.Ej.TAXONOMY_WHITE?"1px solid var(--fidesui-neutral-200)":"none",...n.style}})},d=e=>{let t=null==e?void 0:e.value,n=null==e?void 0:e.label;return(0,r.jsxs)("span",{className:"flex items-center",children:[(0,r.jsx)(u,{color:t}),(0,r.jsx)("span",{children:n})]})};t.Z=e=>{let t=Object.values(o.Ej).map(e=>({value:e,label:s[e]})),[n,l]=(0,i.useState)(void 0);return(0,r.jsx)(a.d,{...e,options:t,optionRender:d,layout:"stacked",value:n,onChange:e=>{l(e)},prefix:(0,r.jsx)(u,{color:null!=n?n:o.Ej.TAXONOMY_WHITE,style:{marginBottom:"2px"}})})}},59001:function(e,t,n){"use strict";n.d(t,{Ch:function(){return s},Lo:function(){return l},_g:function(){return u},ac:function(){return a},aq:function(){return d}});var r,i,a,l,o=n(39449);let s="root";(r=a||(a={})).DATA_CATEGORY="data_category",r.DATA_USE="data_use",r.DATA_SUBJECT="data_subject",r.SYSTEM_GROUP="system_group",(i=l||(l={})).DATA_CATEGORIES="Data categories",i.DATA_USES="Data uses",i.DATA_SUBJECTS="Data subjects",i.SYSTEM_GROUPS="System groups";let u=e=>{switch(e){case"data_category":return"Data categories";case"data_use":return"Data uses";case"data_subject":return"Data subjects";case"system_group":return"System groups";default:return e}},d=e=>{switch(e){case"data_category":return{UPDATE:o.Sh.DATA_CATEGORY_UPDATE,CREATE:o.Sh.DATA_CATEGORY_CREATE,DELETE:o.Sh.DATA_CATEGORY_DELETE,READ:o.Sh.DATA_CATEGORY_READ};case"data_use":return{UPDATE:o.Sh.DATA_USE_UPDATE,CREATE:o.Sh.DATA_USE_CREATE,DELETE:o.Sh.DATA_USE_DELETE,READ:o.Sh.DATA_USE_READ};case"data_subject":return{UPDATE:o.Sh.DATA_SUBJECT_UPDATE,CREATE:o.Sh.DATA_SUBJECT_CREATE,DELETE:o.Sh.DATA_SUBJECT_DELETE,READ:o.Sh.DATA_SUBJECT_READ};case"system_group":return{UPDATE:o.Sh.SYSTEM_GROUP_UPDATE,CREATE:o.Sh.SYSTEM_GROUP_CREATE,DELETE:o.Sh.SYSTEM_GROUP_DELETE,READ:o.Sh.SYSTEM_GROUP_READ};default:return{UPDATE:o.Sh.TAXONOMY_UPDATE,CREATE:o.Sh.TAXONOMY_CREATE,DELETE:o.Sh.TAXONOMY_DELETE,READ:o.Sh.TAXONOMY_READ}}}},90673:function(e,t,n){"use strict";n.d(t,{Cd:function(){return a},Xl:function(){return l}});var r=n(39449),i=n(59001);let a=(e,t)=>{let n;if(null==t&&e.every(e=>void 0===e.parent_key))n=e;else{let r=null!=t?t:null;n=e.filter(e=>e.parent_key===r)}return n.map(t=>{var n,r;let i=t.fides_key;return{value:t.fides_key,label:""===t.name||null==t.name?t.fides_key:t.name,description:t.description,children:a(e,i),is_default:null!==(n=t.is_default)&&void 0!==n&&n,active:null!==(r=t.active)&&void 0!==r&&r}})},l=e=>{switch(e){case i.ac.DATA_CATEGORY:return r.P6.DATA_CATEGORY;case i.ac.DATA_SUBJECT:return r.P6.DATA_SUBJECT;case i.ac.DATA_USE:return r.P6.DATA_USE;default:return}}},33031:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return eL}});var r,i,a=n(24246),l=n(20595),o=n(69238),s=n.n(o),u=n(63662),d=n(27378),c=n(25980),f=n(812),h=n(77213),m=n(58754),p=n(19904),_=n(46628),x=n(33162),v=n(79806),E=n(56358),y=n(59001),g=n(90673),T=n(30002),A=n(28079),j=n(69353),S=n(5785);let{useGetCustomTaxonomiesQuery:b,useLazyGetTaxonomyQuery:C,useCreateTaxonomyMutation:O,useUpdateTaxonomyMutation:N,useDeleteTaxonomyMutation:I}=n(78780).u.injectEndpoints({endpoints:e=>({getCustomTaxonomies:e.query({query:()=>({url:"taxonomies"})}),getTaxonomy:e.query({query:e=>({url:"taxonomies/".concat(e)}),providesTags:(e,t,n)=>[{type:"Taxonomy",id:n}],transformResponse:e=>{let t=[],n=[...e],r=n.filter(e=>null===e.parent_key);r.sort((e,t)=>e.fides_key.localeCompare(t.fides_key)),t.push(...r);let i=n.filter(e=>null!==e.parent_key);for(;i.length>0;){let e=i.filter(e=>t.some(t=>t.fides_key===e.parent_key));if(0===e.length){t.push(...i.sort((e,t)=>e.fides_key.localeCompare(t.fides_key)));break}e.sort((e,t)=>e.fides_key.localeCompare(t.fides_key)),t.push(...e),i=i.filter(t=>!e.includes(t))}return t}}),createTaxonomy:e.mutation({query:e=>{let{taxonomyType:t,...n}=e;return{url:"taxonomies/".concat(t),method:"POST",body:n}},invalidatesTags:(e,t,n)=>{let{taxonomyType:r}=n;return[{type:"Taxonomy",id:r}]}}),updateTaxonomy:e.mutation({query:e=>{let{taxonomyType:t,...n}=e;return{url:"taxonomies/".concat(t),method:"PUT",body:n}},invalidatesTags:(e,t,n)=>{let{taxonomyType:r}=n;return[{type:"Taxonomy",id:r}]}}),deleteTaxonomy:e.mutation({query:e=>{let{taxonomyType:t,key:n}=e;return{url:"taxonomies/".concat(t,"/").concat(n),method:"DELETE"}},invalidatesTags:(e,t,n)=>{let{taxonomyType:r}=n;return[{type:"Taxonomy",id:r}]}})})});var D=e=>{let{taxonomyType:t}=e,[n,r]=(0,S.Vj)(),[i,a]=(0,T.nC)(),[l,o]=(0,A.dk)(),[s,u]=(0,j.cw)(),[c,f]=(0,S.Ti)(),[h,m]=(0,A.Ql)(),[p,_]=(0,T.wG)(),[x,v]=(0,j.Nr)(),[E]=(0,S.jU)(),[g]=(0,A.LG)(),[b]=(0,T.h8)(),[D]=(0,j.Xz)(),[k]=(0,S.K9)(),[R]=(0,A.gu)(),[P]=(0,T.Kv)(),[w]=(0,j.Uv)(),[L,M]=C(),[U,V]=O(),[Y]=N(),[F]=I(),B=(0,d.useCallback)(()=>t?L(t):Promise.resolve(void 0),[t,L]),z=(0,d.useCallback)(e=>t?U({taxonomyType:t,...e}):Promise.resolve(void 0),[t,U]),G=(0,d.useCallback)(e=>t?Y({taxonomyType:t,...e}):Promise.resolve(void 0),[t,Y]),H=(0,d.useCallback)(e=>t?F({taxonomyType:t,key:e}):Promise.resolve(void 0),[t,F]);return t===y.ac.DATA_CATEGORY?{getAllTrigger:n,taxonomyItems:r.data||[],updateTrigger:E,deleteTrigger:k,createTrigger:c,isLoading:r.isLoading,isError:r.isError,isCreating:f.isLoading}:t===y.ac.DATA_USE?{getAllTrigger:l,taxonomyItems:o.data||[],updateTrigger:g,deleteTrigger:R,createTrigger:h,isLoading:o.isLoading,isError:o.isError,isCreating:m.isLoading}:t===y.ac.DATA_SUBJECT?{getAllTrigger:i,taxonomyItems:a.data||[],updateTrigger:b,deleteTrigger:P,createTrigger:p,isLoading:a.isLoading,isError:a.isError,isCreating:_.isLoading}:t===y.ac.SYSTEM_GROUP?{getAllTrigger:s,taxonomyItems:u.data||[],updateTrigger:D,deleteTrigger:w,createTrigger:x,isLoading:u.isLoading,isError:u.isError,isCreating:v.isLoading}:{getAllTrigger:B,taxonomyItems:(null==M?void 0:M.data)||[],updateTrigger:G,deleteTrigger:H,createTrigger:z,isLoading:(null==M?void 0:M.isLoading)||!1,isError:(null==M?void 0:M.isError)||!1,isCreating:V.isLoading}},k=n(31883),R=n(90104),P=n.n(R),w=n(18225),L=n(39449),M=e=>{let{customFields:t,formId:n,form:r}=e,{idToAllowListWithOptions:i,idToCustomFieldDefinition:o,isEnabled:s,isLoading:u,sortedCustomFieldDefinitionIds:d}=t;return s&&0!==d.length?(0,a.jsxs)(l.PPS,{form:r,name:n,initialValues:t.customFieldValues,layout:"vertical","data-testid":"custom-fields-form",children:[(0,a.jsx)("div",{className:"mb-2",children:(0,a.jsx)(l.AntTypography.Title,{level:3,children:"Custom fields"})}),u?(0,a.jsx)(w.Z,{}):(0,a.jsx)("div",{children:!P()(d)&&(0,a.jsx)("div",{children:d.map(e=>{let t=o.get(e);if(!t)return null;let{id:n,name:r,description:s,allow_list_id:u,field_type:d}=t;if(!u&&d===L.AL.STRING)return(0,a.jsx)(l.PPS.Item,{name:n,label:r,tooltip:s,children:(0,a.jsx)(l.AntInput,{})},e);let c=i.get(t.allow_list_id);if(!c)return null;let{options:f}=c;return(0,a.jsx)(l.PPS.Item,{name:n,label:r,tooltip:s,children:(0,a.jsx)(l.WPr,{mode:"string"!==d?"multiple":void 0,allowClear:!0,options:f})},e)})})})]}):null},U=n(43551),V=n.n(U),Y=()=>{let e=l.PPS.useFormInstance(),t=l.PPS.useWatch(["rights","values"],e);return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(l.PPS.Item,{label:"Automated Decisions or Profiling",name:"automated_decisions_or_profiling",layout:"horizontal",valuePropName:"checked",children:(0,a.jsx)(l.E_O,{"data-testid":"edit-taxonomy-form_automated-decisions"})}),(0,a.jsx)(l.PPS.Item,{name:["rights","values"],label:"Rights",children:(0,a.jsx)(l.WPr,{mode:"multiple",options:(0,f.MM)(L.ts),"data-testid":"edit-taxonomy-form_rights"})}),t&&!P()(t)&&(0,a.jsx)(l.PPS.Item,{name:["rights","strategy"],label:"Strategy",required:!0,rules:[{required:!0,message:"Please select a strategy"}],children:(0,a.jsx)(l.WPr,{options:(0,f.MM)(L.jX),"data-testid":"edit-taxonomy-form_strategy"})})]})},F=n(83766),B=n.n(F),z=n(1315),G=n(22583),H=n(92818);let X=e=>{let{color:t,...n}=e;return(0,a.jsx)("span",{"aria-hidden":!0,className:"mr-2 inline-block size-4 rounded-lg align-middle",style:{backgroundColor:"var(--fidesui-bg-".concat(G.j[t],")"),border:t===L.Ej.TAXONOMY_WHITE?"1px solid var(--fidesui-neutral-200)":"none",...n.style}})};var q=e=>{let t=Object.values(L.Ej).map(e=>({value:e,label:(0,a.jsxs)("span",{className:"flex items-center",children:[(0,a.jsx)(X,{color:e}),(0,a.jsx)("span",{children:H.r[e]})]})}));return(0,a.jsx)(l.WPr,{...e,options:t,placeholder:"Select color"})};let W="all-suggested";var Z=e=>{let{initialValues:t,onSubmit:n,form:r,formId:i,isDisabled:o}=e,{data:s=[],isLoading:u}=(0,A.fd)(),{data:c,isLoading:f}=(0,z.K3)(),h=(0,d.useMemo)(()=>s.map(e=>({label:e.name||e.fides_key,value:e.fides_key})),[s]),m=l.PPS.useWatch("systems",r),p=(0,d.useMemo)(()=>{var e;let t=m||[];if(!c||0===t.length)return[];let n=null!==(e=null==c?void 0:c.filter(e=>t.includes(e.fides_key)))&&void 0!==e?e:[];return B()(null==n?void 0:n.flatMap(e=>e.privacy_declarations.map(e=>e.data_use)))},[c,m]),_=(0,d.useMemo)(()=>{var e;return null!==(e=null==c?void 0:c.map(e=>({label:e.name||e.fides_key,value:e.fides_key})))&&void 0!==e?e:[]},[c]),x=(0,d.useMemo)(()=>{let e=[],t=[];return(h.forEach(n=>{p.includes(n.value)?e.push(n):t.push(n)}),0===e.length)?t:[{label:"Select all suggested",value:W},{label:(0,a.jsxs)(l.vyj,{children:[(0,a.jsx)(l.QMR,{size:14}),(0,a.jsx)("span",{children:"Suggested data uses"})]}),options:e},{label:(0,a.jsxs)(l.vyj,{children:[(0,a.jsx)(l.PJP.BBB,{}),(0,a.jsx)("span",{children:"All data uses"})]}),options:t}]},[h,p]);return(0,a.jsxs)(l.PPS,{name:i,initialValues:t,onFinish:e=>{var r,i;let a={...t,...e};(!(null==a?void 0:null===(r=a.rights)||void 0===r?void 0:r.values)||P()(null==a?void 0:null===(i=a.rights)||void 0===i?void 0:i.values))&&V()(a,"rights"),n(a)},layout:"vertical",form:r,children:[(0,a.jsx)(l.PPS.Item,{label:"Name",name:"name",children:(0,a.jsx)(l.AntInput,{"data-testid":"edit-taxonomy-form_name",disabled:o})}),(0,a.jsx)(l.PPS.Item,{label:"Description",name:"description",children:(0,a.jsx)(l.AntInput.TextArea,{rows:4,"data-testid":"edit-taxonomy-form_description",disabled:o})}),(0,a.jsx)(l.PPS.Item,{label:"Systems",name:"systems",children:(0,a.jsx)(l.WPr,{mode:"multiple",placeholder:"Select systems",options:_,allowClear:!0,loading:f,disabled:o,"data-testid":"edit-taxonomy-form_systems"})}),(0,a.jsx)(l.PPS.Item,{label:"Color",name:"label_color",children:(0,a.jsx)(q,{disabled:o,"data-testid":"edit-taxonomy-form_color"})}),(0,a.jsx)(l.PPS.Item,{label:"Data uses",name:"data_uses",children:(0,a.jsx)(l.WPr,{mode:"multiple",placeholder:"Select data uses",options:x,allowClear:!0,loading:u,disabled:o,onChange:e=>{if(e.includes(W)){let t=B()([...p,...e.filter(e=>e!==W)]);r.setFieldsValue({data_uses:t})}else r.setFieldsValue({data_uses:e})},"data-testid":"edit-taxonomy-form_data_uses"})})]})},J=e=>{let{initialValues:t,onSubmit:n,form:r,formId:i,taxonomyType:o,isDisabled:s}=e,u=o===y.ac.DATA_SUBJECT;return o===y.ac.SYSTEM_GROUP?(0,a.jsx)(Z,{initialValues:t,onSubmit:n,form:r,formId:i,isDisabled:s}):(0,a.jsxs)(l.PPS,{name:i,initialValues:t,onFinish:e=>{var r,i;let a={...t,...e};(!(null==a?void 0:null===(r=a.rights)||void 0===r?void 0:r.values)||P()(null==a?void 0:null===(i=a.rights)||void 0===i?void 0:i.values))&&V()(a,"rights"),n(a)},layout:"vertical",form:r,children:[(0,a.jsx)(l.PPS.Item,{label:"Name",name:"name",children:(0,a.jsx)(l.AntInput,{"data-testid":"edit-taxonomy-form_name",disabled:s})}),(0,a.jsx)(l.PPS.Item,{label:"Description",name:"description",children:(0,a.jsx)(l.AntInput.TextArea,{rows:4,"data-testid":"edit-taxonomy-form_description",disabled:s})}),u&&(0,a.jsx)(Y,{})]})},K=e=>{let{taxonomyItem:t,taxonomyType:n,onClose:r}=e,i="edit-taxonomy-form",[o]=l.PPS.useForm(),[s]=l.PPS.useForm(),u=(0,l.pmc)(),{isOpen:d,onOpen:c,onClose:h}=(0,l.qY0)(),{updateTrigger:m}=D({taxonomyType:n}),T=(0,x.mZ)({resourceFidesKey:null==t?void 0:t.fides_key,resourceType:(0,g.Xl)(n)}),A=(0,p.Tg)([(0,y.aq)(n).UPDATE]),j=(0,p.Tg)([(0,y.aq)(n).DELETE]),S=async e=>{let n=await m(e);if((0,k.D4)(n)){u((0,_.Vo)((0,f.e$)(n.error)));return}if(T.isEnabled){let e=s.getFieldsValue();await T.upsertCustomFields({fides_key:null==t?void 0:t.fides_key,customFieldValues:e})}u((0,_.t5)("Taxonomy successfully updated")),r()},b=async()=>{await m({...t,active:!1}),h(),r()},C=async()=>{await m({...t,active:!0}),h(),r()};return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)(v.ZP,{isOpen:!!t,onClose:r,header:(0,a.jsx)(v.zR,{title:(null==t?void 0:t.name)||""}),footer:(0,a.jsxs)(l.zeN,{justifyContent:"space-between",children:[(null==t?void 0:t.active)&&j&&(0,a.jsx)(l.esZ,{title:"Delete label",children:(0,a.jsx)(l.wpx,{"aria-label":"delete",icon:(0,a.jsx)(E.q,{fontSize:"small"}),onClick:c,"data-testid":"delete-btn"})}),!(null==t?void 0:t.active)&&A&&(0,a.jsx)(l.esZ,{title:"Enable label",children:(0,a.jsx)(l.wpx,{"aria-label":"enable",onClick:C,"data-testid":"enable-btn",icon:(0,a.jsx)(l.tEF,{fontSize:"small"})})}),(0,a.jsx)("div",{className:"flex gap-2",children:A&&(0,a.jsx)(l.wpx,{htmlType:"submit",type:"primary","data-testid":"save-btn",form:i,children:"Save"})})]}),children:[(0,a.jsxs)("div",{className:"mb-4",children:[(0,a.jsx)("div",{className:"mb-2",children:(0,a.jsx)(l.AntTypography.Title,{level:3,children:"Details"})}),(0,a.jsxs)("div",{className:"flex",children:[(0,a.jsx)("span",{className:"w-1/3 shrink-0 text-sm text-gray-500",children:"Fides key:"}),(0,a.jsx)(l.esZ,{title:null==t?void 0:t.fides_key,trigger:"click",children:(0,a.jsx)("span",{className:"flex-1 truncate","data-testid":"edit-drawer-fides-key",children:null==t?void 0:t.fides_key})})]})]}),!!t&&(0,a.jsx)(J,{initialValues:t,onSubmit:S,form:o,formId:i,taxonomyType:n,isDisabled:!A}),T.isEnabled&&!T.isLoading&&(0,a.jsx)(M,{form:s,formId:"custom-fields-form",customFields:T})]}),(0,a.jsx)(l.cVQ,{isOpen:d,onClose:h,onConfirm:b,title:"Delete ".concat(n),message:(0,a.jsx)(l.Kqy,{children:(0,a.jsxs)(l.xvT,{children:["You are about to permanently delete the ",n," ",(0,a.jsx)(l.xvT,{color:"complimentary.500",as:"span",fontWeight:"bold",children:null==t?void 0:t.name})," ","from your taxonomy. Are you sure you would like to continue?"]})})})]})};n(51901);var $=n(86298),Q=n(3124),ee=n.n(Q);(r=i||(i={})).DEFAULT="DEFAULT",r.ACTIVE_HOVER="ACTIVE_HOVER",r.PARENT_OF_HOVER="PARENT_OF_HOVER",r.CHILD_OF_HOVER="CHILD_OF_HOVER",r.SIBLING_OF_HOVER="SIBLING_OF_HOVER",r.INACTIVE="INACTIVE";let et=(0,d.createContext)({activeNodeKey:null,setActiveNodeKey:()=>{},onMouseEnter:()=>{},onMouseLeave:()=>{},getNodeHoverStatus:()=>"DEFAULT"}),en=e=>{let{children:t}=e,[n,r]=(0,d.useState)(null),i=(0,d.useCallback)(e=>{e!==n&&r(e)},[n]),l=(0,d.useCallback)(()=>{r(null)},[]),o=(0,d.useCallback)(e=>n?e===n?"ACTIVE_HOVER":n.startsWith("".concat(e,"."))||e===y.Ch?"PARENT_OF_HOVER":e.startsWith("".concat(n,"."))||n===y.Ch?"CHILD_OF_HOVER":n.split(".").slice(0,-1).join(".")===e.split(".").slice(0,-1).join(".")?"SIBLING_OF_HOVER":"INACTIVE":"DEFAULT",[n]),s=(0,d.useMemo)(()=>({activeNodeKey:n,setActiveNodeKey:r,onMouseEnter:i,onMouseLeave:l,getNodeHoverStatus:o}),[n,r,i,l,o]);return(0,a.jsx)(et.Provider,{value:s,children:t})};function er(e){var t=0,n=e.children,r=n&&n.length;if(r)for(;--r>=0;)t+=n[r].value;else t=1;e.value=t}function ei(e,t){e instanceof Map?(e=[void 0,e],void 0===t&&(t=el)):void 0===t&&(t=ea);for(var n,r,i,a,l,o=new eu(e),s=[o];n=s.pop();)if((i=t(n.data))&&(l=(i=Array.from(i)).length))for(n.children=i,a=l-1;a>=0;--a)s.push(r=i[a]=new eu(i[a])),r.parent=n,r.depth=n.depth+1;return o.eachBefore(es)}function ea(e){return e.children}function el(e){return Array.isArray(e)?e[1]:null}function eo(e){void 0!==e.data.value&&(e.value=e.data.value),e.data=e.data.data}function es(e){var t=0;do e.height=t;while((e=e.parent)&&e.height<++t)}function eu(e){this.data=e,this.depth=this.height=0,this.parent=null}function ed(e,t){return e.parent===t.parent?1:2}function ec(e){var t=e.children;return t?t[0]:e.t}function ef(e){var t=e.children;return t?t[t.length-1]:e.t}function eh(e,t){this._=e,this.parent=null,this.children=null,this.A=null,this.a=this,this.z=0,this.m=0,this.c=0,this.s=0,this.t=null,this.i=t}function em(e){return null==e?null:function(e){if("function"!=typeof e)throw Error();return e}(e)}eu.prototype=ei.prototype={constructor:eu,count:function(){return this.eachAfter(er)},each:function(e,t){let n=-1;for(let r of this)e.call(t,r,++n,this);return this},eachAfter:function(e,t){for(var n,r,i,a=this,l=[a],o=[],s=-1;a=l.pop();)if(o.push(a),n=a.children)for(r=0,i=n.length;r<i;++r)l.push(n[r]);for(;a=o.pop();)e.call(t,a,++s,this);return this},eachBefore:function(e,t){for(var n,r,i=this,a=[i],l=-1;i=a.pop();)if(e.call(t,i,++l,this),n=i.children)for(r=n.length-1;r>=0;--r)a.push(n[r]);return this},find:function(e,t){let n=-1;for(let r of this)if(e.call(t,r,++n,this))return r},sum:function(e){return this.eachAfter(function(t){for(var n=+e(t.data)||0,r=t.children,i=r&&r.length;--i>=0;)n+=r[i].value;t.value=n})},sort:function(e){return this.eachBefore(function(t){t.children&&t.children.sort(e)})},path:function(e){for(var t=this,n=function(e,t){if(e===t)return e;var n=e.ancestors(),r=t.ancestors(),i=null;for(e=n.pop(),t=r.pop();e===t;)i=e,e=n.pop(),t=r.pop();return i}(t,e),r=[t];t!==n;)r.push(t=t.parent);for(var i=r.length;e!==n;)r.splice(i,0,e),e=e.parent;return r},ancestors:function(){for(var e=this,t=[e];e=e.parent;)t.push(e);return t},descendants:function(){return Array.from(this)},leaves:function(){var e=[];return this.eachBefore(function(t){t.children||e.push(t)}),e},links:function(){var e=this,t=[];return e.each(function(n){n!==e&&t.push({source:n.parent,target:n})}),t},copy:function(){return ei(this).eachBefore(eo)},[Symbol.iterator]:function*(){var e,t,n,r,i=this,a=[i];do for(e=a.reverse(),a=[];i=e.pop();)if(yield i,t=i.children)for(n=0,r=t.length;n<r;++n)a.push(t[n]);while(a.length)}},eh.prototype=Object.create(eu.prototype);var ep={depth:-1},e_={},ex={};function ev(e){return e.id}function eE(e){return e.parentId}function ey(e){let t=e.length;if(t<2)return"";for(;--t>1&&!eg(e,t););return e.slice(0,t)}function eg(e,t){if("/"===e[t]){let n=0;for(;t>0&&"\\"===e[--t];)++n;if((1&n)==0)return!0}return!1}let eT=function(){var e=ed,t=1,n=1,r=null;function i(i){var s=function(e){for(var t,n,r,i,a,l=new eh(e,0),o=[l];t=o.pop();)if(r=t._.children)for(t.children=Array(a=r.length),i=a-1;i>=0;--i)o.push(n=t.children[i]=new eh(r[i],i)),n.parent=t;return(l.parent=new eh(null,0)).children=[l],l}(i);if(s.eachAfter(a),s.parent.m=-s.z,s.eachBefore(l),r)i.eachBefore(o);else{var u=i,d=i,c=i;i.eachBefore(function(e){e.x<u.x&&(u=e),e.x>d.x&&(d=e),e.depth>c.depth&&(c=e)});var f=u===d?1:e(u,d)/2,h=f-u.x,m=t/(d.x+f+h),p=n/(c.depth||1);i.eachBefore(function(e){e.x=(e.x+h)*m,e.y=e.depth*p})}return i}function a(t){var n=t.children,r=t.parent.children,i=t.i?r[t.i-1]:null;if(n){!function(e){for(var t,n=0,r=0,i=e.children,a=i.length;--a>=0;)t=i[a],t.z+=n,t.m+=n,n+=t.s+(r+=t.c)}(t);var a=(n[0].z+n[n.length-1].z)/2;i?(t.z=i.z+e(t._,i._),t.m=t.z-a):t.z=a}else i&&(t.z=i.z+e(t._,i._));t.parent.A=function(t,n,r){if(n){for(var i,a,l,o=t,s=t,u=n,d=o.parent.children[0],c=o.m,f=s.m,h=u.m,m=d.m;u=ef(u),o=ec(o),u&&o;)d=ec(d),(s=ef(s)).a=t,(l=u.z+h-o.z-c+e(u._,o._))>0&&(function(e,t,n){var r=n/(t.i-e.i);t.c-=r,t.s+=n,e.c+=r,t.z+=n,t.m+=n}((i=u,a=r,i.a.parent===t.parent?i.a:a),t,l),c+=l,f+=l),h+=u.m,c+=o.m,m+=d.m,f+=s.m;u&&!ef(s)&&(s.t=u,s.m+=h-f),o&&!ec(d)&&(d.t=o,d.m+=c-m,r=t)}return r}(t,i,t.parent.A||r[0])}function l(e){e._.x=e.z+e.parent.m,e.m+=e.parent.m}function o(e){e.x*=t,e.y=e.depth*n}return i.separation=function(t){return arguments.length?(e=t,i):e},i.size=function(e){return arguments.length?(r=!1,t=+e[0],n=+e[1],i):r?null:[t,n]},i.nodeSize=function(e){return arguments.length?(r=!0,t=+e[0],n=+e[1],i):r?[t,n]:null},i}();var eA=e=>{let{nodes:t,edges:n,options:r}=e;return(0,d.useMemo)(()=>{if(0===t.length)return{nodes:t,edges:n};let e=(function(){var e,t=ev,n=eE;function r(r){var i,a,l,o,s,u,d,c,f=Array.from(r),h=t,m=n,p=new Map;if(null!=e){let t=f.map((t,n)=>{var i;let a;return i=e(t,n,r),a=(i=`${i}`).length,eg(i,a-1)&&!eg(i,a-2)&&(i=i.slice(0,-1)),"/"===i[0]?i:`/${i}`}),n=t.map(ey),i=new Set(t).add("");for(let e of n)i.has(e)||(i.add(e),t.push(e),n.push(ey(e)),f.push(ex));h=(e,n)=>t[n],m=(e,t)=>n[t]}for(l=0,i=f.length;l<i;++l)a=f[l],u=f[l]=new eu(a),null!=(d=h(a,l,r))&&(d+="")&&(c=u.id=d,p.set(c,p.has(c)?e_:u)),null!=(d=m(a,l,r))&&(d+="")&&(u.parent=d);for(l=0;l<i;++l)if(d=(u=f[l]).parent){if(!(s=p.get(d)))throw Error("missing: "+d);if(s===e_)throw Error("ambiguous: "+d);s.children?s.children.push(u):s.children=[u],u.parent=s}else{if(o)throw Error("multiple roots");o=u}if(!o)throw Error("no root");if(null!=e){for(;o.data===ex&&1===o.children.length;)o=o.children[0],--i;for(let e=f.length-1;e>=0&&(u=f[e]).data===ex;--e)u.data=null}if(o.parent=ep,o.eachBefore(function(e){e.depth=e.parent.depth+1,--i}).eachBefore(es),o.parent=null,i>0)throw Error("cycle");return o}return r.id=function(e){return arguments.length?(t=em(e),r):t},r.parentId=function(e){return arguments.length?(n=em(e),r):n},r.path=function(t){return arguments.length?(e=em(t),r):e},r})().id(e=>e.id).parentId(e=>{var t;return null===(t=n.find(t=>t.target===e.id))||void 0===t?void 0:t.source})(t),i="LR"===r.direction?[35,320]:[320,35];return{nodes:eT.nodeSize(i).separation((e,t)=>e.parent===t.parent?1:1.5)(e).descendants().map(e=>{let t;return t="LR"===r.direction?{x:e.y,y:e.x}:{x:e.x,y:e.y},{...e.data,position:t}}),edges:n}},[t,n,r])},ej=e=>{let{positionAbsoluteX:t,positionAbsoluteY:n,nodeWidth:r}=e,{setCenter:i,getZoom:a}=(0,$._K)();return{centerScreenOnNode:(0,d.useCallback)(()=>i(t+r/2,n,{duration:500,zoom:a()}),[a,t,n,r,i])}},eS=n(1945),eb=n.n(eS),eC=n(8335),eO=e=>{let{type:t,inactive:n=!1}=e;return(0,a.jsx)($.HH,{type:t,position:"source"===t?eC.Ly.Right:eC.Ly.Left,style:{width:8,height:8,backgroundColor:n?ee().FIDESUI_NEUTRAL_400:ee().FIDESUI_MINOS},className:"transition-colors duration-300 ease-in"})},eN=e=>{let{data:t,positionAbsoluteX:n,positionAbsoluteY:r}=e,{onCancel:i,onSubmit:o,parentKey:s,isLoading:u=!1}=t,c=(0,d.useRef)(null),[f,h]=(0,d.useState)(""),{centerScreenOnNode:m}=ej({positionAbsoluteX:n,positionAbsoluteY:r,nodeWidth:200});(0,d.useEffect)(()=>{h("");let e=()=>{var e;return null===(e=c.current)||void 0===e?void 0:e.focus({cursor:"start",preventScroll:!0})};(async()=>{await m(),e()})()},[s,m,n,r]);let p=()=>{!u&&f.trim()&&o(f)},_=()=>{u||i()};return(0,a.jsxs)("div",{style:{width:200},"data-testid":"taxonomy-text-input-node",children:[(0,a.jsx)(l.AntInput,{placeholder:"Type label name...",ref:c,onBlur:_,onSubmit:p,value:f,onChange:e=>h(e.target.value),onKeyUp:e=>{"Escape"===e.key&&_()},onPressEnter:p,className:eb().input,suffix:u&&(0,a.jsx)(l.ZJQ,{size:"small"})}),(0,a.jsx)(eO,{type:"target"})]})},eI=e=>{let{getNodeHoverStatus:t}=(0,d.useContext)(et),{target:n}=e,r=t(n),l=(0,d.useCallback)(()=>{switch(r){case i.ACTIVE_HOVER:case i.PARENT_OF_HOVER:return ee().FIDESUI_MINOS;case i.INACTIVE:return ee().NEUTRAL_400;default:return ee().FIDESUI_SANDSTONE}},[r]),o=(0,d.useCallback)(()=>{switch(r){case i.ACTIVE_HOVER:case i.PARENT_OF_HOVER:return 2;default:return 1}},[r]);return(0,a.jsx)($.Jd,{...e,style:{stroke:l(),strokeWidth:o(),transition:"stroke 0.3s ease 0s"}})},eD=n(34770),ek=n.n(eD),eR=e=>{let{data:t,positionAbsoluteX:n,positionAbsoluteY:r}=e,{onMouseEnter:o,onMouseLeave:s,getNodeHoverStatus:u}=(0,d.useContext)(et),{taxonomyType:c,taxonomyItem:f,onAddButtonClick:h,onTaxonomyItemClick:m,label:p,hasChildren:_,isLastCreatedItem:x,resetLastCreatedItemKey:v,userCanAddLabels:E}=t,{centerScreenOnNode:g}=ej({positionAbsoluteX:n,positionAbsoluteY:r,nodeWidth:200});(0,d.useEffect)(()=>{let e=async()=>{await g(),o(null==f?void 0:f.fides_key)};x&&(e(),v())},[x,o,null==f?void 0:f.fides_key,v,g]);let T=u(null==f?void 0:f.fides_key),A=(0,d.useCallback)(()=>{switch(T){case i.ACTIVE_HOVER:return ek()["button--hover"];case i.PARENT_OF_HOVER:return ek()["button--parent-hover"];case i.INACTIVE:return ek()["button--inactive"];case i.DEFAULT:case i.CHILD_OF_HOVER:case i.SIBLING_OF_HOVER:default:return""}},[T]),j=(null==f?void 0:f.fides_key)===y.Ch,S=c===y.ac.DATA_SUBJECT;return(0,a.jsxs)("div",{className:ek().container,onMouseEnter:()=>o(null==f?void 0:f.fides_key),onMouseLeave:()=>s(null==f?void 0:f.fides_key),"data-testid":"taxonomy-node-".concat(null==f?void 0:f.fides_key),children:[(0,a.jsx)(l.wpx,{className:"".concat(ek().button," ").concat(A()),onClick:()=>null==m?void 0:m(f),disabled:!m,type:"text",children:(0,a.jsxs)(l.AntTypography.Text,{ellipsis:!0,style:{color:"inherit"},children:[(null==f?void 0:f.active)===!1?"(disabled) ":"",p]})}),!j&&(0,a.jsx)(eO,{type:"target",inactive:T===i.INACTIVE}),_&&(0,a.jsx)(eO,{type:"source",inactive:T===i.INACTIVE}),E&&(!S||j)&&(0,a.jsx)("div",{className:ek()["add-button-container"],children:(0,a.jsx)(l.wpx,{type:"default",className:"".concat(ek()["add-button"]," ").concat(T===i.ACTIVE_HOVER?ek()["add-button--visible"]:""),icon:(0,a.jsx)(l.PJP.mm_,{size:20}),onClick:()=>null==h?void 0:h(f),size:"middle","data-testid":"taxonomy-add-child-label-button","aria-label":"Add child label to ".concat(p)})})]})};let eP=e=>{let{taxonomyType:t,taxonomyItems:n,draftNewItem:r,lastCreatedItemKey:i,resetLastCreatedItemKey:l,onTaxonomyItemClick:o,onAddButtonClick:s,onCancelDraftItem:u,onSubmitDraftItem:c,userCanAddLabels:f,isCreating:h=!1}=e,{fitView:m}=(0,$._K)();(0,d.useEffect)(()=>{setTimeout(()=>m(),150)},[m,t]);let p=[(0,d.useMemo)(()=>({id:y.Ch,position:{x:0,y:0},data:{label:(0,y._g)(t),taxonomyItem:{fides_key:y.Ch},taxonomyType:t,onTaxonomyItemClick:null,onAddButtonClick:s,hasChildren:0!==n.length,userCanAddLabels:f},type:"taxonomyTreeNode"}),[t,n.length,s,f])],_=[];if(n.forEach(e=>{let n=e.name||e.fides_key.split(".").pop()||"",r={id:e.fides_key,position:{x:0,y:0},data:{label:n,taxonomyType:t,taxonomyItem:e,onTaxonomyItemClick:o,onAddButtonClick:s,hasChildren:!1,isLastCreatedItem:i===e.fides_key,resetLastCreatedItemKey:l,userCanAddLabels:f},type:"taxonomyTreeNode"};p.push(r);let a=e.parent_key?p.find(t=>t.id===e.parent_key):null,u=a?a.id:y.Ch,d=e.fides_key,c={id:"".concat(u,"-").concat(d),source:u,target:d,type:"taxonomyTreeEdge"};_.push(c),a&&(a.data.hasChildren=!0)}),r){let e=r.parent_key||y.Ch;p.push({id:"draft-node",position:{x:0,y:0},type:"textInputNode",data:{parentKey:e,onCancel:u,onSubmit:c,isLoading:h},hidden:!r}),_.push({id:"draft-line",source:e,target:"draft-node",animated:!0});let t=p.find(t=>t.id===e);t&&(t.data.hasChildren=!0)}let{nodes:x,edges:v}=eA({nodes:p,edges:_,options:{direction:"LR"}}),E=(0,d.useMemo)(()=>({taxonomyTreeNode:eR,textInputNode:eN}),[]),g=(0,d.useMemo)(()=>({taxonomyTreeEdge:eI}),[]);return(0,a.jsx)("div",{className:"size-full",style:{backgroundColor:ee().FIDESUI_BG_CORINTH},"data-testid":"taxonomy-interactive-tree",children:(0,a.jsx)(en,{children:(0,a.jsxs)($.x$,{nodes:x,edges:v,nodeTypes:E,edgeTypes:g,maxZoom:2,minZoom:.3,nodesConnectable:!1,edgesFocusable:!1,elementsSelectable:!1,proOptions:{hideAttribution:!0},children:[(0,a.jsx)($.Aq,{color:ee().FIDESUI_NEUTRAL_100,variant:$.T7.Dots,size:3}),(0,a.jsx)($.a9,{nodeStrokeWidth:3,pannable:!0}),(0,a.jsx)($.ZX,{showInteractive:!1})]})})})};var ew=e=>(0,a.jsx)($.tV,{children:(0,a.jsx)(eP,{...e})}),eL=()=>{let[e,t]=(0,d.useState)(y.ac.DATA_CATEGORY),n=(0,c.hz)().plus,{data:r}=b(void 0,{skip:!n}),{createTrigger:i,getAllTrigger:o,taxonomyItems:x=[],isCreating:v}=D({taxonomyType:e}),E=(0,u.useSearchParams)(),g=(null==E?void 0:E.get("showDisabledItems"))==="true";(0,d.useEffect)(()=>{o()},[o,e]);let[T,A]=(0,d.useState)(null),[j,S]=(0,d.useState)(null),[C,O]=(0,d.useState)(null);(0,d.useEffect)(()=>{S(null),O(null),A(null)},[e]),(0,d.useEffect)(()=>{e!==y.ac.SYSTEM_GROUP||n||t(y.ac.DATA_CATEGORY)},[e,n]);let N=(0,l.pmc)(),I=(0,d.useCallback)(async e=>{if(!j)return;let t=(null==j?void 0:j.parent_key)===y.Ch,n={...j,name:e,parent_key:t?null:j.parent_key},r=await i(n);if((0,f.D4)(r)){N((0,_.Vo)((0,f.e$)(r.error)));return}O(r.data.fides_key),N((0,_.t5)("New label successfully created")),S(null)},[i,j,N]),k=s()(x,"active"),R=(0,p.Tg)([(0,y.aq)(e).CREATE]);return(0,a.jsxs)(h.Z,{title:"Taxonomy",children:[(0,a.jsxs)(l.jqI,{vertical:!0,className:"h-full",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)(m.Z,{heading:"Taxonomy"}),(0,a.jsx)("div",{className:"hidden",children:(0,a.jsx)("div",{className:"mb-5 flex justify-between",children:(0,a.jsxs)(l.vyj.Compact,{children:[(0,a.jsx)(l.AntInput,{className:"min-w-[350px]",placeholder:"Search",allowClear:!0}),(0,a.jsx)(l.wpx,{type:"default",children:"Clear"})]})})})]}),(0,a.jsxs)("div",{className:"relative grow",children:[(0,a.jsx)("div",{className:"absolute left-2 top-2 z-[1]",children:(0,a.jsx)(l.AHg,{selectedKeys:[e],onSelect:e=>{let{key:n}=e;return t(n)},items:(()=>{let e={[y.Lo.DATA_CATEGORIES]:y.ac.DATA_CATEGORY,[y.Lo.DATA_USES]:y.ac.DATA_USE,[y.Lo.DATA_SUBJECTS]:y.ac.DATA_SUBJECT,[y.Lo.SYSTEM_GROUPS]:y.ac.SYSTEM_GROUP},t=(0,f.MM)(y.Lo).filter(e=>n||e.value!==y.Lo.SYSTEM_GROUPS).map(t=>({label:t.label,key:e[t.value]}));return(null==r?void 0:r.length)&&r.forEach(e=>{t.push({label:e.name,key:e.fides_key})}),t})(),"data-testid":"taxonomy-type-selector"})}),!!x.length&&(0,a.jsx)(ew,{userCanAddLabels:R,taxonomyItems:g?x:k,draftNewItem:j,lastCreatedItemKey:C,resetLastCreatedItemKey:()=>O(null),onTaxonomyItemClick:e=>{A(e)},onAddButtonClick:e=>{var t;S({parent_key:null!==(t=null==e?void 0:e.fides_key)&&void 0!==t?t:null,is_default:!1,description:""})},taxonomyType:e,onCancelDraftItem:()=>S(null),onSubmitDraftItem:I,isCreating:v})]})]}),T&&(0,a.jsx)(K,{taxonomyItem:T,taxonomyType:e,onClose:()=>A(null)})]})}},31883:function(e,t,n){"use strict";n.d(t,{Bw:function(){return r.Bw},D4:function(){return r.D4}});var r=n(19043)},1945:function(e){e.exports={input:"TaxonomyTextInputNode_input__P9czz"}},34770:function(e){e.exports={container:"TaxonomyTreeNode_container__T4KpF",button:"TaxonomyTreeNode_button__mcbOd","button--hover":"TaxonomyTreeNode_button--hover__oycXY","button--parent-hover":"TaxonomyTreeNode_button--parent-hover__pwAPl","button--inactive":"TaxonomyTreeNode_button--inactive__Fjdpe","add-button-container":"TaxonomyTreeNode_add-button-container__eEoRN","add-button":"TaxonomyTreeNode_add-button__oM2vI","add-button--visible":"TaxonomyTreeNode_add-button--visible__Ojqqf"}}},function(e){e.O(0,[1096,431,8765,9278,5163,3662,6148,7245,3772,2888,9774,179],function(){return e(e.s=71180)}),_N_E=e.O()}]);
@@ -1 +0,0 @@
1
- .TaxonomySelect_option__vY6v2 strong{font-weight:400}.TaxonomySelect_option__vY6v2 em{visibility:hidden}.TaxonomySelect_option__vY6v2:hover strong{font-weight:600}.TaxonomySelect_option__vY6v2:hover em{visibility:visible}.ToastLink_toastLink__OLSeq{text-decoration:underline;font-size:var(--fidesui-font-size-md);padding-left:0;padding-right:0;color:var(--fidesui-minos)}.ToastLink_toastLink__OLSeq:focus-visible,.ToastLink_toastLink__OLSeq:hover{color:var(--fidesui-neutral-500)}.Cells_cellBleed__dik43{margin:calc(-1*var(--ant-table-cell-padding-block-sm)) calc(-1*var(--ant-table-cell-padding-inline-sm));width:calc(100% + var(--ant-table-cell-padding-inline-sm)*2)}
@@ -1 +0,0 @@
1
- .ToastLink_toastLink__OLSeq{text-decoration:underline;font-size:var(--fidesui-font-size-md);padding-left:0;padding-right:0;color:var(--fidesui-minos)}.ToastLink_toastLink__OLSeq:focus-visible,.ToastLink_toastLink__OLSeq:hover{color:var(--fidesui-neutral-500)}.TaxonomySelect_option__vY6v2 strong{font-weight:400}.TaxonomySelect_option__vY6v2 em{visibility:hidden}.TaxonomySelect_option__vY6v2:hover strong{font-weight:600}.TaxonomySelect_option__vY6v2:hover em{visibility:visible}
@@ -1 +0,0 @@
1
- self.__BUILD_MANIFEST=function(s,t,e,a,c,i,n,o,d,r,p,f,u,g,j,m,k,b,h,y,l,v,I,x,F,w,_,U,q,N,A,S,B,C,z,D,E,L,M,T,P,G,H,J,K,O,Q,R,V,W,X,Y,Z,$,ss,st,se,sa,sc,si,sn){return{__rewrites:{afterFiles:[],beforeFiles:[],fallback:[]},"/":[A,"static/chunks/pages/index-ca794e85c16cba67.js"],"/404":["static/chunks/pages/404-962d132471cd41ba.js"],"/_error":["static/chunks/pages/_error-bede3a8288930dcf.js"],"/add-systems":[s,t,A,"static/chunks/pages/add-systems-0058fe05f2d23d1a.js"],"/add-systems/manual":[s,e,a,c,n,m,v,t,d,k,I,x,S,B,"static/chunks/pages/add-systems/manual-055d058d16c02957.js"],"/add-systems/multiple":[d,b,C,"static/chunks/pages/add-systems/multiple-e2a5c951347195e3.js"],"/consent":["static/chunks/pages/consent-a7a4e419e4086033.js"],"/consent/configure":[d,b,"static/chunks/pages/consent/configure-5c58b69dd473cc06.js"],"/consent/configure/add-vendors":[d,b,C,"static/chunks/pages/consent/configure/add-vendors-7c829e58485fc821.js"],"/consent/privacy-experience":[m,z,"static/chunks/pages/consent/privacy-experience-b6b2d50d894cefa5.js"],"/consent/privacy-experience/new":[e,o,h,r,y,D,"static/chunks/pages/consent/privacy-experience/new-a5e738a234dadc7e.js"],"/consent/privacy-experience/[id]":[e,o,h,r,y,D,"static/chunks/pages/consent/privacy-experience/[id]-58460ac9c1dface5.js"],"/consent/privacy-notices":[z,"static/chunks/pages/consent/privacy-notices-a7fe3925771bb6c3.js"],"/consent/privacy-notices/new":[e,o,h,r,y,E,"static/chunks/pages/consent/privacy-notices/new-faa457089616711a.js"],"/consent/privacy-notices/[id]":[e,o,h,r,y,E,"static/chunks/pages/consent/privacy-notices/[id]-25ce8366e689363b.js"],"/consent/properties":[l,L,"static/chunks/pages/consent/properties-45a2901a35edc8f7.js"],"/consent/reporting":[s,"static/chunks/2150-930ffaf2c4718edc.js",t,"static/chunks/pages/consent/reporting-e9ec351281c54822.js"],"/data-catalog":[e,a,c,"static/css/95ac327e5d70148d.css","static/chunks/pages/data-catalog-79d06a04698c47c0.js"],"/data-catalog/[systemId]/projects":[e,a,c,u,g,i,"static/chunks/pages/data-catalog/[systemId]/projects-3c935e93208d2bdd.js"],"/data-catalog/[systemId]/projects/[projectUrn]":[u,"static/chunks/pages/data-catalog/[systemId]/projects/[projectUrn]-ffb6e0fe6712342e.js"],"/data-catalog/[systemId]/projects/[projectUrn]/[resourceUrn]":[s,e,a,c,t,u,g,M,i,"static/chunks/pages/data-catalog/[systemId]/projects/[projectUrn]/[resourceUrn]-3b59925f6c9a13a9.js"],"/data-catalog/[systemId]/resources":[u,"static/chunks/pages/data-catalog/[systemId]/resources-96be972a983616e3.js"],"/data-catalog/[systemId]/resources/[resourceUrn]":[s,e,a,c,t,u,g,M,i,"static/chunks/pages/data-catalog/[systemId]/resources/[resourceUrn]-8d7d9152e215c3b6.js"],"/data-discovery/action-center":[s,t,F,"static/chunks/pages/data-discovery/action-center-a2e9c0bfa67c633d.js"],"/data-discovery/action-center/[monitorId]":[s,e,a,c,t,p,F,T,w,"static/chunks/pages/data-discovery/action-center/[monitorId]-878aa4ab0746df5b.js"],"/data-discovery/action-center/[monitorId]/data-explorer":[s,e,a,c,t,i,"static/chunks/pages/data-discovery/action-center/[monitorId]/data-explorer-09a3a992e564f971.js"],"/data-discovery/action-center/[monitorId]/[systemId]":[s,e,a,c,v,t,d,I,F,"static/css/23cf870196941c9a.css","static/chunks/pages/data-discovery/action-center/[monitorId]/[systemId]-e50e9c8e11412b2a.js"],"/data-discovery/activity":[s,t,p,_,"static/chunks/pages/data-discovery/activity-6cc1ba1f102ae77d.js"],"/data-discovery/detection":[s,t,p,_,P,"static/chunks/pages/data-discovery/detection-d735dab3d9f3adc5.js"],"/data-discovery/detection/[resourceUrn]":[s,t,p,_,P,"static/chunks/pages/data-discovery/detection/[resourceUrn]-260f5deb68966b70.js"],"/data-discovery/discovery":[s,e,a,c,t,p,g,G,i,"static/chunks/pages/data-discovery/discovery-b1cfd55c7e127865.js"],"/data-discovery/discovery/[resourceUrn]":[s,e,a,c,t,p,g,G,i,"static/chunks/pages/data-discovery/discovery/[resourceUrn]-c7f055275a2c503f.js"],"/datamap":[s,c,"static/chunks/255-1bc0cbef7a59cdc6.js",t,k,H,"static/chunks/pages/datamap-18f255a8bbeecaa4.js"],"/dataset":[f,j,"static/chunks/pages/dataset-96355a68e8c28fe8.js"],"/dataset/new":[s,f,t,"static/chunks/pages/dataset/new-5c20080cdb053b1d.js"],"/dataset/[datasetId]":["static/chunks/9729-fcf6ff4e3534e4a8.js",j,U,"static/chunks/pages/dataset/[datasetId]-f500a77eefb057e7.js"],"/dataset/[datasetId]/[collectionName]":[e,a,c,n,j,U,J,i,"static/chunks/pages/dataset/[datasetId]/[collectionName]-a40c4febe16a0a6d.js"],"/dataset/[datasetId]/[collectionName]/[...subfieldNames]":[e,a,c,n,j,U,J,i,"static/chunks/pages/dataset/[datasetId]/[collectionName]/[...subfieldNames]-e04a4e16ccf32aef.js"],"/datastore-connection":["static/css/5f393dea1c0d031c.css","static/chunks/pages/datastore-connection-a8fc95a46de38b35.js"],"/datastore-connection/new":[s,e,n,f,m,K,t,x,O,"static/chunks/pages/datastore-connection/new-42c720ec5c941573.js"],"/datastore-connection/[id]":[s,e,n,f,K,t,O,"static/chunks/pages/datastore-connection/[id]-448729ee9d1d78c3.js"],"/fides-js-docs":["static/chunks/2fbcc6de-a6c61724c327e9fa.js","static/chunks/e3251fe7-5777b5d778e6fffa.js",e,a,c,n,f,"static/chunks/5619-9b50cec521203989.js",Q,"static/css/0b4b1b65cc874774.css","static/chunks/5596-29a7c8322530b7cf.js","static/chunks/pages/fides-js-docs-1f4335dca5c09860.js"],"/integrations":[s,e,a,c,n,o,R,t,V,i,"static/chunks/pages/integrations-bbec0140433a199b.js"],"/integrations/[id]":[s,e,a,c,n,o,R,t,r,V,i,"static/chunks/pages/integrations/[id]-2f1dc17eba11fb4e.js"],"/login":["static/chunks/pages/login-0cb0eb44bf2dd24c.js"],"/login/[provider]":["static/chunks/pages/login/[provider]-c58beef131c3a82d.js"],"/notifications":["static/chunks/pages/notifications-9644c0f088a01fea.js"],"/notifications/digests":[q,"static/chunks/pages/notifications/digests-31bed1f86b89d1d8.js"],"/notifications/digests/new":[q,W,"static/chunks/pages/notifications/digests/new-7a5f76708c79f714.js"],"/notifications/digests/[id]":[q,W,"static/chunks/pages/notifications/digests/[id]-058125922d1eaeec.js"],"/notifications/providers":[s,t,"static/chunks/pages/notifications/providers-40b9f1f70d27b660.js"],"/notifications/providers/new":[s,e,a,o,X,t,Y,"static/chunks/pages/notifications/providers/new-cb2c7fbc26886052.js"],"/notifications/providers/[key]":[s,e,a,o,X,t,Y,"static/chunks/pages/notifications/providers/[key]-d08f3a7cd2d011ec.js"],"/notifications/templates":[e,a,"static/chunks/346-aa3b88efb85f2e28.js","static/chunks/pages/notifications/templates-4918f86f7300ac9b.js"],"/notifications/templates/add-template":[Z,"static/chunks/pages/notifications/templates/add-template-a3e4b5b575b31be1.js"],"/notifications/templates/[id]":[Z,"static/chunks/pages/notifications/templates/[id]-a6ae72abe59ff830.js"],"/poc/ant-components":["static/chunks/pages/poc/ant-components-39b5586d9c8b64aa.js"],"/poc/form-experiments/AntForm":["static/chunks/pages/poc/form-experiments/AntForm-5163f3213377bd35.js"],"/poc/form-experiments/FormikAntFormItem":["static/chunks/pages/poc/form-experiments/FormikAntFormItem-0b1547cd9b114c6b.js"],"/poc/form-experiments/FormikControlled":["static/chunks/pages/poc/form-experiments/FormikControlled-da562cba4cffd6bb.js"],"/poc/form-experiments/FormikField":["static/chunks/pages/poc/form-experiments/FormikField-3a587676869d2ef6.js"],"/poc/form-experiments/FormikSpreadField":[$,"static/chunks/pages/poc/form-experiments/FormikSpreadField-af097d661f6abcf4.js"],"/poc/forms":[$,"static/chunks/pages/poc/forms-defc3b917306a6d8.js"],"/poc/table-migration":[d,b,"static/chunks/pages/poc/table-migration-11a70bcfa672ce8f.js"],"/privacy-requests":[s,e,"static/chunks/3550-83cb70e80cbe41ba.js",t,ss,"static/chunks/pages/privacy-requests-da634187d8201ab3.js"],"/privacy-requests/configure":["static/chunks/pages/privacy-requests/configure-1926359bdf5d6c30.js"],"/privacy-requests/configure/storage":[s,t,"static/chunks/pages/privacy-requests/configure/storage-24a8c2ab57625556.js"],"/privacy-requests/[id]":[s,t,ss,"static/css/f38242c11f7fea64.css","static/chunks/pages/privacy-requests/[id]-787621468b5a7619.js"],"/properties":[l,L,"static/chunks/pages/properties-32486c25255c9cb1.js"],"/properties/add-property":[l,st,"static/chunks/pages/properties/add-property-2e6b0d8b409ba1fd.js"],"/properties/[id]":[l,st,"static/chunks/pages/properties/[id]-47118b9976ad7212.js"],"/reporting/datamap":[s,e,a,c,Q,t,k,H,"static/chunks/pages/reporting/datamap-e410d13a2b35cff4.js"],"/settings/about":[se,"static/chunks/pages/settings/about-6c4904c157477285.js"],"/settings/about/alpha":[se,"static/chunks/pages/settings/about/alpha-68eaac2d79133679.js"],"/settings/consent":[r,"static/chunks/pages/settings/consent-4c20c08ca7ea8cff.js"],"/settings/consent/[configuration_id]/[purpose_id]":["static/chunks/pages/settings/consent/[configuration_id]/[purpose_id]-aec1bf8a409ec75f.js"],"/settings/custom-fields":[s,t,"static/chunks/pages/settings/custom-fields-8e4a76376927afd5.js"],"/settings/custom-fields/new":[e,sa,sc,"static/chunks/pages/settings/custom-fields/new-2e0c8e249f286427.js"],"/settings/custom-fields/[id]":[e,sa,sc,"static/chunks/pages/settings/custom-fields/[id]-a270325109398f48.js"],"/settings/domain-records":["static/chunks/pages/settings/domain-records-e3dcef1ec8cf8b9e.js"],"/settings/domains":["static/chunks/pages/settings/domains-2e88cc7a6074a28b.js"],"/settings/email-templates":["static/chunks/pages/settings/email-templates-7469d2f85396c693.js"],"/settings/locations":[si,w,"static/chunks/pages/settings/locations-20789aa0c84d544e.js"],"/settings/organization":["static/chunks/pages/settings/organization-f84a13eb9688cb5f.js"],"/settings/privacy-requests":[s,t,"static/chunks/pages/settings/privacy-requests-b72df6f3d460125f.js"],"/settings/regulations":[si,w,"static/chunks/pages/settings/regulations-aa02bc818e089c49.js"],"/systems":[s,e,a,c,"static/chunks/1896-49010da5c2705fc5.js",t,T,"static/chunks/pages/systems-86f5557384124f79.js"],"/systems/configure/[id]":[s,e,a,c,n,m,v,t,d,k,I,x,S,B,"static/chunks/pages/systems/configure/[id]-2fc7c0d3988427b3.js"],"/systems/configure/[id]/test-datasets":[f,"static/chunks/pages/systems/configure/[id]/test-datasets-5be9ce7a745ce908.js"],"/taxonomy":["static/chunks/678d4732-50255cc09048e643.js",s,e,a,c,o,"static/chunks/6148-59a59d5c5925344f.js",t,j,"static/css/34a7eb08b86ddb57.css","static/chunks/pages/taxonomy-2589729c47976357.js"],"/user-management":[N,"static/chunks/pages/user-management-b6c4bf35c003965d.js"],"/user-management/new":[N,sn,"static/chunks/pages/user-management/new-e399005c3bb4db1b.js"],"/user-management/profile/[id]":[N,sn,"static/chunks/pages/user-management/profile/[id]-6217433a26599521.js"],sortedPages:["/","/404","/_app","/_error","/add-systems","/add-systems/manual","/add-systems/multiple","/consent","/consent/configure","/consent/configure/add-vendors","/consent/privacy-experience","/consent/privacy-experience/new","/consent/privacy-experience/[id]","/consent/privacy-notices","/consent/privacy-notices/new","/consent/privacy-notices/[id]","/consent/properties","/consent/reporting","/data-catalog","/data-catalog/[systemId]/projects","/data-catalog/[systemId]/projects/[projectUrn]","/data-catalog/[systemId]/projects/[projectUrn]/[resourceUrn]","/data-catalog/[systemId]/resources","/data-catalog/[systemId]/resources/[resourceUrn]","/data-discovery/action-center","/data-discovery/action-center/[monitorId]","/data-discovery/action-center/[monitorId]/data-explorer","/data-discovery/action-center/[monitorId]/[systemId]","/data-discovery/activity","/data-discovery/detection","/data-discovery/detection/[resourceUrn]","/data-discovery/discovery","/data-discovery/discovery/[resourceUrn]","/datamap","/dataset","/dataset/new","/dataset/[datasetId]","/dataset/[datasetId]/[collectionName]","/dataset/[datasetId]/[collectionName]/[...subfieldNames]","/datastore-connection","/datastore-connection/new","/datastore-connection/[id]","/fides-js-docs","/integrations","/integrations/[id]","/login","/login/[provider]","/notifications","/notifications/digests","/notifications/digests/new","/notifications/digests/[id]","/notifications/providers","/notifications/providers/new","/notifications/providers/[key]","/notifications/templates","/notifications/templates/add-template","/notifications/templates/[id]","/poc/ant-components","/poc/form-experiments/AntForm","/poc/form-experiments/FormikAntFormItem","/poc/form-experiments/FormikControlled","/poc/form-experiments/FormikField","/poc/form-experiments/FormikSpreadField","/poc/forms","/poc/table-migration","/privacy-requests","/privacy-requests/configure","/privacy-requests/configure/storage","/privacy-requests/[id]","/properties","/properties/add-property","/properties/[id]","/reporting/datamap","/settings/about","/settings/about/alpha","/settings/consent","/settings/consent/[configuration_id]/[purpose_id]","/settings/custom-fields","/settings/custom-fields/new","/settings/custom-fields/[id]","/settings/domain-records","/settings/domains","/settings/email-templates","/settings/locations","/settings/organization","/settings/privacy-requests","/settings/regulations","/systems","/systems/configure/[id]","/systems/configure/[id]/test-datasets","/taxonomy","/user-management","/user-management/new","/user-management/profile/[id]"]}}("static/chunks/431-e01ee730c8ad9ece.js","static/chunks/7245-53a20677c49b41c8.js","static/chunks/8765-f622a35b40a7ec63.js","static/chunks/9278-08cc704317fe535e.js","static/chunks/5163-e682273cd76a7d07.js","static/css/d2d4e9a6923e6730.css","static/chunks/699-8ca44b0de9fa20f0.js","static/chunks/3662-f6a1ddca5ee42076.js","static/chunks/401-c2f1e4ea077f1f26.js","static/chunks/5279-a05b93a8db6a3e79.js","static/chunks/4817-066598cef25d7e88.js","static/chunks/6527-0eed08abe252a918.js","static/chunks/9682-65d253d54f84f6f2.js","static/chunks/1099-d1b22e891705eaf8.js","static/chunks/3772-b945c6839e43c753.js","static/chunks/5277-e8a036319456127f.js","static/chunks/9899-63998972698a49fb.js","static/chunks/3923-c1e41661ebf57178.js","static/chunks/6419-9b3a86af57c86791.js","static/chunks/6277-970bb31d9b0c0007.js","static/chunks/2040-8eead9d29546a50f.js","static/chunks/6344-ca66a6e10d128179.js","static/chunks/1437-4604a69888906ec0.js","static/chunks/7773-24899908bf8ff659.js","static/chunks/9070-6d3aaaf5aa5913ba.js","static/css/10994e916bc9a00a.css","static/chunks/6315-4a2151f87c7eefb6.js","static/chunks/7488-bad160a2bfd89871.js","static/chunks/8212-67ac884660ddb63a.js","static/chunks/7476-08717f00da5f89ab.js","static/css/972dc7eef106ee7c.css","static/chunks/3700-1f9f6e5ebfa3ab0a.js","static/css/304c6f148886a8d4.css","static/chunks/796-6fe49d134f660156.js","static/chunks/6853-6d64d627df6f8194.js","static/chunks/1817-bfe4139324aa0279.js","static/chunks/6954-8b106311a3be35f4.js","static/chunks/5783-7deeb7de5d2db4c4.js","static/chunks/9330-6eb11127296c54c2.js","static/chunks/9965-4709f43bf62af9a9.js","static/chunks/2397-92f628c53688925b.js","static/chunks/9046-3a08a09a598396ca.js","static/chunks/5258-63325c03319e87dc.js","static/chunks/549-3e3b8d01bc984f96.js","static/chunks/1467-8808ec8836e033f9.js","static/chunks/8011-c23d609ed3f0efa5.js","static/chunks/9187-7438242f0d380bb0.js","static/chunks/1316-2606e19807c08aa5.js","static/chunks/155-bf4e3ffb18f29226.js","static/chunks/4496-8204168bae78092d.js","static/chunks/9037-453224ba3ee65b13.js","static/chunks/3377-80612c111e047cb6.js","static/chunks/7630-775c578fa8109b0f.js","static/chunks/2921-9b596ba7f5267afc.js","static/chunks/8373-43b6df89a2085d6b.js","static/chunks/5185-bf5655b5d697b714.js","static/chunks/1115-584dac093cef6cc3.js","static/chunks/2962-e92d525bf570a9a3.js","static/chunks/5643-7800464c8df7a78e.js","static/chunks/9826-1f42934a2863992e.js","static/chunks/3696-e4abb6a922b954a2.js"),self.__BUILD_MANIFEST_CB&&self.__BUILD_MANIFEST_CB();
@@ -1 +0,0 @@
1
- <!DOCTYPE html><html lang="en"><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width"/><meta name="next-head-count" content="2"/><link data-next-font="" rel="preconnect" href="/" crossorigin="anonymous"/><link rel="preload" href="/_next/static/css/de09ed8a0adf1ca2.css" as="style"/><link rel="stylesheet" href="/_next/static/css/de09ed8a0adf1ca2.css" data-n-g=""/><link rel="preload" href="/_next/static/css/23cf870196941c9a.css" as="style"/><link rel="stylesheet" href="/_next/static/css/23cf870196941c9a.css" data-n-p=""/><noscript data-n-css=""></noscript><script defer="" nomodule="" src="/_next/static/chunks/polyfills-42372ed130431b0a.js"></script><script src="/_next/static/chunks/webpack-8eac1ea5c825c8b4.js" defer=""></script><script src="/_next/static/chunks/framework-c92fc3344e6fd165.js" defer=""></script><script src="/_next/static/chunks/main-090643377c8254e6.js" defer=""></script><script src="/_next/static/chunks/pages/_app-9de54d6135682f7b.js" defer=""></script><script src="/_next/static/chunks/431-e01ee730c8ad9ece.js" defer=""></script><script src="/_next/static/chunks/8765-f622a35b40a7ec63.js" defer=""></script><script src="/_next/static/chunks/9278-08cc704317fe535e.js" defer=""></script><script src="/_next/static/chunks/5163-e682273cd76a7d07.js" defer=""></script><script src="/_next/static/chunks/6344-ca66a6e10d128179.js" defer=""></script><script src="/_next/static/chunks/7245-53a20677c49b41c8.js" defer=""></script><script src="/_next/static/chunks/401-c2f1e4ea077f1f26.js" defer=""></script><script src="/_next/static/chunks/1437-4604a69888906ec0.js" defer=""></script><script src="/_next/static/chunks/9070-6d3aaaf5aa5913ba.js" defer=""></script><script src="/_next/static/chunks/pages/data-discovery/action-center/%5BmonitorId%5D/%5BsystemId%5D-e50e9c8e11412b2a.js" defer=""></script><script src="/_next/static/hRLR7azkI57zC2PfdYodO/_buildManifest.js" defer=""></script><script src="/_next/static/hRLR7azkI57zC2PfdYodO/_ssgManifest.js" defer=""></script><style>.data-ant-cssinjs-cache-path{content:"";}</style></head><body><div id="__next"><div style="height:100%;display:flex"></div></div><script id="__NEXT_DATA__" type="application/json">{"props":{"pageProps":{}},"page":"/data-discovery/action-center/[monitorId]/[systemId]","query":{},"buildId":"hRLR7azkI57zC2PfdYodO","nextExport":true,"autoExport":true,"isFallback":false,"scriptLoader":[]}</script></body></html>
@@ -1 +0,0 @@
1
- <!DOCTYPE html><html lang="en"><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width"/><meta name="next-head-count" content="2"/><link data-next-font="" rel="preconnect" href="/" crossorigin="anonymous"/><link rel="preload" href="/_next/static/css/de09ed8a0adf1ca2.css" as="style"/><link rel="stylesheet" href="/_next/static/css/de09ed8a0adf1ca2.css" data-n-g=""/><link rel="preload" href="/_next/static/css/d2d4e9a6923e6730.css" as="style"/><link rel="stylesheet" href="/_next/static/css/d2d4e9a6923e6730.css" data-n-p=""/><noscript data-n-css=""></noscript><script defer="" nomodule="" src="/_next/static/chunks/polyfills-42372ed130431b0a.js"></script><script src="/_next/static/chunks/webpack-8eac1ea5c825c8b4.js" defer=""></script><script src="/_next/static/chunks/framework-c92fc3344e6fd165.js" defer=""></script><script src="/_next/static/chunks/main-090643377c8254e6.js" defer=""></script><script src="/_next/static/chunks/pages/_app-9de54d6135682f7b.js" defer=""></script><script src="/_next/static/chunks/431-e01ee730c8ad9ece.js" defer=""></script><script src="/_next/static/chunks/8765-f622a35b40a7ec63.js" defer=""></script><script src="/_next/static/chunks/9278-08cc704317fe535e.js" defer=""></script><script src="/_next/static/chunks/5163-e682273cd76a7d07.js" defer=""></script><script src="/_next/static/chunks/7245-53a20677c49b41c8.js" defer=""></script><script src="/_next/static/chunks/pages/data-discovery/action-center/%5BmonitorId%5D/data-explorer-09a3a992e564f971.js" defer=""></script><script src="/_next/static/hRLR7azkI57zC2PfdYodO/_buildManifest.js" defer=""></script><script src="/_next/static/hRLR7azkI57zC2PfdYodO/_ssgManifest.js" defer=""></script><style>.data-ant-cssinjs-cache-path{content:"";}</style></head><body><div id="__next"><div style="height:100%;display:flex"></div></div><script id="__NEXT_DATA__" type="application/json">{"props":{"pageProps":{}},"page":"/data-discovery/action-center/[monitorId]/data-explorer","query":{},"buildId":"hRLR7azkI57zC2PfdYodO","nextExport":true,"autoExport":true,"isFallback":false,"scriptLoader":[]}</script></body></html>
@@ -1 +0,0 @@
1
- <!DOCTYPE html><html lang="en"><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width"/><meta name="next-head-count" content="2"/><link data-next-font="" rel="preconnect" href="/" crossorigin="anonymous"/><link rel="preload" href="/_next/static/css/de09ed8a0adf1ca2.css" as="style"/><link rel="stylesheet" href="/_next/static/css/de09ed8a0adf1ca2.css" data-n-g=""/><link rel="preload" href="/_next/static/css/10994e916bc9a00a.css" as="style"/><link rel="stylesheet" href="/_next/static/css/10994e916bc9a00a.css" data-n-p=""/><noscript data-n-css=""></noscript><script defer="" nomodule="" src="/_next/static/chunks/polyfills-42372ed130431b0a.js"></script><script src="/_next/static/chunks/webpack-8eac1ea5c825c8b4.js" defer=""></script><script src="/_next/static/chunks/framework-c92fc3344e6fd165.js" defer=""></script><script src="/_next/static/chunks/main-090643377c8254e6.js" defer=""></script><script src="/_next/static/chunks/pages/_app-9de54d6135682f7b.js" defer=""></script><script src="/_next/static/chunks/431-e01ee730c8ad9ece.js" defer=""></script><script src="/_next/static/chunks/8765-f622a35b40a7ec63.js" defer=""></script><script src="/_next/static/chunks/9278-08cc704317fe535e.js" defer=""></script><script src="/_next/static/chunks/5163-e682273cd76a7d07.js" defer=""></script><script src="/_next/static/chunks/7245-53a20677c49b41c8.js" defer=""></script><script src="/_next/static/chunks/4817-066598cef25d7e88.js" defer=""></script><script src="/_next/static/chunks/9070-6d3aaaf5aa5913ba.js" defer=""></script><script src="/_next/static/chunks/9965-4709f43bf62af9a9.js" defer=""></script><script src="/_next/static/chunks/pages/data-discovery/action-center/%5BmonitorId%5D-878aa4ab0746df5b.js" defer=""></script><script src="/_next/static/hRLR7azkI57zC2PfdYodO/_buildManifest.js" defer=""></script><script src="/_next/static/hRLR7azkI57zC2PfdYodO/_ssgManifest.js" defer=""></script><style>.data-ant-cssinjs-cache-path{content:"";}</style></head><body><div id="__next"><div style="height:100%;display:flex"></div></div><script id="__NEXT_DATA__" type="application/json">{"props":{"pageProps":{}},"page":"/data-discovery/action-center/[monitorId]","query":{},"buildId":"hRLR7azkI57zC2PfdYodO","nextExport":true,"autoExport":true,"isFallback":false,"scriptLoader":[]}</script></body></html>