ethyca-fides 2.65.1b2__py2.py3-none-any.whl → 2.65.2rc0__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 (236) hide show
  1. {ethyca_fides-2.65.1b2.dist-info → ethyca_fides-2.65.2rc0.dist-info}/METADATA +1 -1
  2. {ethyca_fides-2.65.1b2.dist-info → ethyca_fides-2.65.2rc0.dist-info}/RECORD +209 -213
  3. fides/_version.py +3 -3
  4. fides/api/migrations/post_upgrade_index_creation.py +0 -12
  5. fides/api/models/asset.py +2 -19
  6. fides/api/models/connectionconfig.py +0 -4
  7. fides/api/models/detection_discovery/core.py +0 -17
  8. fides/api/schemas/connection_configuration/__init__.py +0 -1
  9. fides/api/schemas/masking/masking_configuration.py +0 -4
  10. fides/api/service/connectors/__init__.py +0 -1
  11. fides/api/service/masking/__init__.py +0 -1
  12. fides/api/util/cache.py +16 -8
  13. fides/api/util/connection_type.py +0 -1
  14. fides/ui-build/static/admin/404.html +1 -1
  15. fides/ui-build/static/admin/_next/static/chunks/1040-94f81c731c29246d.js +1 -0
  16. fides/ui-build/static/admin/_next/static/chunks/{1817-e2c599fb2c47dbc4.js → 1817-f2f34b8bd569ae1d.js} +1 -1
  17. fides/ui-build/static/admin/_next/static/chunks/{2921-93228aa02364bb48.js → 2921-c19da1016b81bda3.js} +1 -1
  18. fides/ui-build/static/admin/_next/static/chunks/3450-84ea89e7a0f95470.js +1 -0
  19. fides/ui-build/static/admin/_next/static/chunks/{3855-a0783ba28c644d09.js → 3855-44e1171660633b6f.js} +1 -1
  20. fides/ui-build/static/admin/_next/static/chunks/{3872-18e5da8bda649ddb.js → 3872-a7ee651751f5e145.js} +1 -1
  21. fides/ui-build/static/admin/_next/static/chunks/{3923-536e8bbbea5b7328.js → 3923-5a82816119f8f907.js} +1 -1
  22. fides/ui-build/static/admin/_next/static/chunks/3988-e8e0424b117d813b.js +1 -0
  23. fides/ui-build/static/admin/_next/static/chunks/{401-002f393dae03f8f4.js → 401-7fa53f1e774e02fb.js} +1 -1
  24. fides/ui-build/static/admin/_next/static/chunks/409-03011bbedb4d72f6.js +1 -0
  25. fides/ui-build/static/admin/_next/static/chunks/4121-536e7e853d0833c0.js +1 -0
  26. fides/ui-build/static/admin/_next/static/chunks/{4230-c4c596fb5534e1b1.js → 4230-864eac33691cd299.js} +1 -1
  27. fides/ui-build/static/admin/_next/static/chunks/431-458946a2cae21b5d.js +1 -0
  28. fides/ui-build/static/admin/_next/static/chunks/5309-018fe2068151d699.js +1 -0
  29. fides/ui-build/static/admin/_next/static/chunks/{5574-1fad13b944f0c4fc.js → 5574-48d7c9a526a3a0fe.js} +1 -1
  30. fides/ui-build/static/admin/_next/static/chunks/{6084-5bfa390a4c8fad43.js → 6084-4a1964e1b20c9eee.js} +1 -1
  31. fides/ui-build/static/admin/_next/static/chunks/6662-f2c51b0c01603952.js +1 -0
  32. fides/ui-build/static/admin/_next/static/chunks/{6853-7a089a9fad286bb8.js → 6853-19268388843a58f5.js} +1 -1
  33. fides/ui-build/static/admin/_next/static/chunks/{6882-5a251351689ea74b.js → 6882-f807b643776c8d47.js} +1 -1
  34. fides/ui-build/static/admin/_next/static/chunks/6954-ec0697d355730f74.js +1 -0
  35. fides/ui-build/static/admin/_next/static/chunks/{7476-d7071697bc665a4f.js → 7476-7fc24f19a2cc563a.js} +1 -1
  36. fides/ui-build/static/admin/_next/static/chunks/{7630-731324d74b20b80e.js → 7630-e0e04e495732ae8f.js} +1 -1
  37. fides/ui-build/static/admin/_next/static/chunks/{787-cb0154eaf6114c7e.js → 787-0c18bf9acef937de.js} +1 -1
  38. fides/ui-build/static/admin/_next/static/chunks/{79-f08e91084d10d6dc.js → 79-d4c8900a83eb83bc.js} +1 -1
  39. fides/ui-build/static/admin/_next/static/chunks/{796-e33122908c5e28ce.js → 796-a98f370ec9b5cbf9.js} +1 -1
  40. fides/ui-build/static/admin/_next/static/chunks/9046-b3dccae317a7bae5.js +1 -0
  41. fides/ui-build/static/admin/_next/static/chunks/{9226-f4e70e6f9619e9a9.js → 9226-a5904e64ab72cb18.js} +1 -1
  42. fides/ui-build/static/admin/_next/static/chunks/{9392.f4520f66206d347d.js → 9392.bb5a989efef5b329.js} +1 -1
  43. fides/ui-build/static/admin/_next/static/chunks/{9676.7fbcb6b554cda098.js → 9676.549c72c3eb3df912.js} +1 -1
  44. fides/ui-build/static/admin/_next/static/chunks/9767-9afc910b855d913a.js +1 -0
  45. fides/ui-build/static/admin/_next/static/chunks/{9826-065b7cd0784d6912.js → 9826-7b769d4863df242a.js} +1 -1
  46. fides/ui-build/static/admin/_next/static/chunks/{9951-5e744e8addb6e090.js → 9951-27d79500acfefdd2.js} +1 -1
  47. fides/ui-build/static/admin/_next/static/chunks/pages/{404-beb4bf835acb4386.js → 404-ac335065bc49f818.js} +1 -1
  48. fides/ui-build/static/admin/_next/static/chunks/pages/{_app-ae72c7442ecd3e50.js → _app-be66c01c2b1de442.js} +8 -8
  49. fides/ui-build/static/admin/_next/static/chunks/pages/add-systems/manual-3964f3039ce3f18c.js +1 -0
  50. fides/ui-build/static/admin/_next/static/chunks/pages/add-systems/{multiple-943479665698c6d2.js → multiple-a2ae50c2f0e7608e.js} +1 -1
  51. fides/ui-build/static/admin/_next/static/chunks/pages/{add-systems-e5ef5be6566f9432.js → add-systems-4f20f18ec01fd15a.js} +1 -1
  52. fides/ui-build/static/admin/_next/static/chunks/pages/consent/configure/{add-vendors-1bde4adc6d2a6dfa.js → add-vendors-4957c0b6fa498f6e.js} +1 -1
  53. fides/ui-build/static/admin/_next/static/chunks/pages/consent/{configure-e72c1feeb24bdb73.js → configure-3ede98dedea9f621.js} +1 -1
  54. fides/ui-build/static/admin/_next/static/chunks/pages/consent/privacy-experience/{[id]-cc858383bb1bbd36.js → [id]-f285b2dca83711ba.js} +1 -1
  55. fides/ui-build/static/admin/_next/static/chunks/pages/consent/{privacy-experience-5f2d060952814353.js → privacy-experience-efa0f3e3991dc139.js} +1 -1
  56. fides/ui-build/static/admin/_next/static/chunks/pages/consent/privacy-notices/{[id]-bfca5064b33116b9.js → [id]-21c96b42424c33bc.js} +1 -1
  57. fides/ui-build/static/admin/_next/static/chunks/pages/consent/privacy-notices/{new-e4a9393b7572e591.js → new-e494f14ce371390c.js} +1 -1
  58. fides/ui-build/static/admin/_next/static/chunks/pages/consent/{privacy-notices-232e9ef135b838cf.js → privacy-notices-25cb30b4585622d6.js} +1 -1
  59. fides/ui-build/static/admin/_next/static/chunks/pages/consent/{properties-a05600d9e3e8735e.js → properties-78ba4553dd12d0d3.js} +1 -1
  60. fides/ui-build/static/admin/_next/static/chunks/pages/consent/{reporting-5fcacc8e4baf3d03.js → reporting-b65b5ab73dfcb801.js} +1 -1
  61. fides/ui-build/static/admin/_next/static/chunks/pages/{consent-bd0fbeabe84d3c8f.js → consent-87c06e0daf2b2e87.js} +1 -1
  62. fides/ui-build/static/admin/_next/static/chunks/pages/data-catalog/[systemId]/projects/{[projectUrn]-00bbbfb19c15c48d.js → [projectUrn]-c956a3faed9f922c.js} +1 -1
  63. fides/ui-build/static/admin/_next/static/chunks/pages/data-catalog/[systemId]/{projects-be252cac70aa63dd.js → projects-691e19bdd29b8c3b.js} +1 -1
  64. fides/ui-build/static/admin/_next/static/chunks/pages/{data-catalog-29cde3b7d27b22cf.js → data-catalog-b1616ecfd86a2e2e.js} +1 -1
  65. fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/action-center/[monitorId]/[systemId]-052028439e802c76.js +1 -0
  66. fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/action-center/[monitorId]-99d3a2197ab8a9b0.js +1 -0
  67. fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/{action-center-22fe027966edb092.js → action-center-a694e71d11bed653.js} +1 -1
  68. fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/{activity-f79ec067d906e67f.js → activity-312edbab3c17f26a.js} +1 -1
  69. fides/ui-build/static/admin/_next/static/chunks/pages/{datamap-639ac9cf51750635.js → datamap-e8bfa1a3a8b84b6d.js} +1 -1
  70. fides/ui-build/static/admin/_next/static/chunks/pages/dataset/[datasetId]/[collectionName]/{[...subfieldNames]-d69aff79e77c5464.js → [...subfieldNames]-f976632b92911072.js} +1 -1
  71. fides/ui-build/static/admin/_next/static/chunks/pages/dataset/[datasetId]/{[collectionName]-9df954c65a9fe023.js → [collectionName]-9ffa34d7ee7b2872.js} +1 -1
  72. fides/ui-build/static/admin/_next/static/chunks/pages/dataset/{[datasetId]-0e90202b2db3797c.js → [datasetId]-6e65dcdd692b4625.js} +1 -1
  73. fides/ui-build/static/admin/_next/static/chunks/pages/dataset/{new-403dc361bffe644d.js → new-423f08db5d9adc9a.js} +1 -1
  74. fides/ui-build/static/admin/_next/static/chunks/pages/{dataset-52506e743c73fc7d.js → dataset-2bd2b941ad8f87b1.js} +1 -1
  75. fides/ui-build/static/admin/_next/static/chunks/pages/datastore-connection/[id]-1b7bfb005fd8e4e1.js +1 -0
  76. fides/ui-build/static/admin/_next/static/chunks/pages/datastore-connection/new-b737165f7752f039.js +1 -0
  77. fides/ui-build/static/admin/_next/static/chunks/pages/{datastore-connection-36eeca2fe22be33a.js → datastore-connection-6b02666ce735e092.js} +1 -1
  78. fides/ui-build/static/admin/_next/static/chunks/pages/{index-e92db8bb8c719abc.js → index-99ad22eddbb6b7f2.js} +1 -1
  79. fides/ui-build/static/admin/_next/static/chunks/pages/integrations/[id]-97f9e9b2822d2576.js +1 -0
  80. fides/ui-build/static/admin/_next/static/chunks/pages/integrations-4ce156e73fe3608f.js +1 -0
  81. fides/ui-build/static/admin/_next/static/chunks/pages/messaging/{[id]-78606d74f82f5edc.js → [id]-8970d29f1710f486.js} +1 -1
  82. fides/ui-build/static/admin/_next/static/chunks/pages/messaging/{add-template-9dff500113f0710f.js → add-template-db905b79b189989c.js} +1 -1
  83. fides/ui-build/static/admin/_next/static/chunks/pages/{messaging-c17efc84c54e4fdb.js → messaging-10084105bae43a19.js} +1 -1
  84. fides/ui-build/static/admin/_next/static/chunks/pages/poc/{ant-components-74348d35e92a2a3c.js → ant-components-cf7c0b3782c0c7a6.js} +1 -1
  85. fides/ui-build/static/admin/_next/static/chunks/pages/poc/form-experiments/{AntForm-ac613f99cd57d7b3.js → AntForm-8cf5c6bb7f4595eb.js} +1 -1
  86. fides/ui-build/static/admin/_next/static/chunks/pages/poc/form-experiments/{FormikAntFormItem-44605674baae28e2.js → FormikAntFormItem-01904c9c8521ef1c.js} +1 -1
  87. fides/ui-build/static/admin/_next/static/chunks/pages/poc/form-experiments/{FormikControlled-86761304f1da7172.js → FormikControlled-ed8c23307b2b6868.js} +1 -1
  88. fides/ui-build/static/admin/_next/static/chunks/pages/poc/form-experiments/{FormikField-fadf4e866aa8ea22.js → FormikField-3ec8e1811906a1d2.js} +1 -1
  89. fides/ui-build/static/admin/_next/static/chunks/pages/poc/{forms-be9bc54243141257.js → forms-18fc8b3a8ccfc80b.js} +1 -1
  90. fides/ui-build/static/admin/_next/static/chunks/pages/poc/{table-migration-69a9e346e32fde53.js → table-migration-372166dc1d6268ea.js} +1 -1
  91. fides/ui-build/static/admin/_next/static/chunks/pages/privacy-requests/{[id]-61e32a7b8ef6569c.js → [id]-104f33c424613732.js} +1 -1
  92. fides/ui-build/static/admin/_next/static/chunks/pages/privacy-requests/configure/{messaging-1f57e4d5715dd5cf.js → messaging-a29479bc35b00f45.js} +1 -1
  93. fides/ui-build/static/admin/_next/static/chunks/pages/privacy-requests/configure/{storage-378db5585b89ab5e.js → storage-10e2886bc4d4f62b.js} +1 -1
  94. fides/ui-build/static/admin/_next/static/chunks/pages/privacy-requests/{configure-6935d3c1655ecbbe.js → configure-340150cac5bf8e4a.js} +1 -1
  95. fides/ui-build/static/admin/_next/static/chunks/pages/privacy-requests-93f0fed887d9e98e.js +1 -0
  96. fides/ui-build/static/admin/_next/static/chunks/pages/properties/{[id]-3a7b2edeb6f6c7a2.js → [id]-d9cdc82249593440.js} +1 -1
  97. fides/ui-build/static/admin/_next/static/chunks/pages/properties/{add-property-971657cbd5e5490f.js → add-property-d2e0236ab65b1fb9.js} +1 -1
  98. fides/ui-build/static/admin/_next/static/chunks/pages/{properties-be3668cbd03e086e.js → properties-156bd0e36831ed04.js} +1 -1
  99. fides/ui-build/static/admin/_next/static/chunks/pages/reporting/{datamap-dc3afcf514d7219a.js → datamap-49e5607055db1bee.js} +1 -1
  100. fides/ui-build/static/admin/_next/static/chunks/pages/settings/about/{alpha-fb0c7974234d93ee.js → alpha-68697c49b290ba50.js} +1 -1
  101. fides/ui-build/static/admin/_next/static/chunks/pages/settings/{about-a91bf9cf821bcdcb.js → about-a45a5b9f78c64e27.js} +1 -1
  102. fides/ui-build/static/admin/_next/static/chunks/pages/settings/consent/[configuration_id]/{[purpose_id]-aaa2d02b9be2acb1.js → [purpose_id]-c54d90dd4ac04de3.js} +1 -1
  103. fides/ui-build/static/admin/_next/static/chunks/pages/settings/{consent-bed42ecfab4896af.js → consent-2ecf179f6587e3b3.js} +1 -1
  104. fides/ui-build/static/admin/_next/static/chunks/pages/settings/{custom-fields-82882bc16052ae5b.js → custom-fields-80bf043deb37a20c.js} +1 -1
  105. fides/ui-build/static/admin/_next/static/chunks/pages/settings/{domain-records-9455a95901d7d223.js → domain-records-c2ef327dc49618e9.js} +1 -1
  106. fides/ui-build/static/admin/_next/static/chunks/pages/settings/{domains-57fd9412882c4ab2.js → domains-bdc7ee59802c2e4a.js} +1 -1
  107. fides/ui-build/static/admin/_next/static/chunks/pages/settings/{email-templates-63a5da14576722a4.js → email-templates-6af619d1d57bb99c.js} +1 -1
  108. fides/ui-build/static/admin/_next/static/chunks/pages/settings/{locations-068724e9c574974d.js → locations-09cb08245844c601.js} +1 -1
  109. fides/ui-build/static/admin/_next/static/chunks/pages/settings/{organization-f556688c5fb35f41.js → organization-d9e7feee568f6e35.js} +1 -1
  110. fides/ui-build/static/admin/_next/static/chunks/pages/settings/{regulations-3ddf2001f4605949.js → regulations-7cfbb9149f96961a.js} +1 -1
  111. fides/ui-build/static/admin/_next/static/chunks/pages/systems/configure/[id]/{test-datasets-7ce5dbabf7f1026b.js → test-datasets-9f5912cb2f471fdf.js} +1 -1
  112. fides/ui-build/static/admin/_next/static/chunks/pages/systems/configure/[id]-0252e5f648c5e3f8.js +1 -0
  113. fides/ui-build/static/admin/_next/static/chunks/pages/{systems-b5f68d37abaa8844.js → systems-5332864c5e8595dc.js} +1 -1
  114. fides/ui-build/static/admin/_next/static/chunks/pages/{taxonomy-103618fab50dfd0d.js → taxonomy-80f4ab8b7b6e7f5e.js} +1 -1
  115. fides/ui-build/static/admin/_next/static/chunks/pages/user-management/profile/{[id]-564f87da93e398d0.js → [id]-e607e07bd1ef2da0.js} +1 -1
  116. fides/ui-build/static/admin/_next/static/chunks/pages/{user-management-f552cb870f8a6a17.js → user-management-d539f1c4e6adf73a.js} +1 -1
  117. fides/ui-build/static/admin/_next/static/chunks/webpack-8fc1c717e1c0f7ae.js +1 -0
  118. fides/ui-build/static/admin/_next/static/css/d522df24a125b46f.css +1 -0
  119. fides/ui-build/static/admin/_next/static/g55_mCF_RUKDu-UIKfYXP/_buildManifest.js +1 -0
  120. fides/ui-build/static/admin/add-systems/manual.html +1 -1
  121. fides/ui-build/static/admin/add-systems/multiple.html +1 -1
  122. fides/ui-build/static/admin/add-systems.html +1 -1
  123. fides/ui-build/static/admin/consent/configure/add-vendors.html +1 -1
  124. fides/ui-build/static/admin/consent/configure.html +1 -1
  125. fides/ui-build/static/admin/consent/privacy-experience/[id].html +1 -1
  126. fides/ui-build/static/admin/consent/privacy-experience/new.html +1 -1
  127. fides/ui-build/static/admin/consent/privacy-experience.html +1 -1
  128. fides/ui-build/static/admin/consent/privacy-notices/[id].html +1 -1
  129. fides/ui-build/static/admin/consent/privacy-notices/new.html +1 -1
  130. fides/ui-build/static/admin/consent/privacy-notices.html +1 -1
  131. fides/ui-build/static/admin/consent/properties.html +1 -1
  132. fides/ui-build/static/admin/consent/reporting.html +1 -1
  133. fides/ui-build/static/admin/consent.html +1 -1
  134. fides/ui-build/static/admin/data-catalog/[systemId]/projects/[projectUrn]/[resourceUrn].html +1 -1
  135. fides/ui-build/static/admin/data-catalog/[systemId]/projects/[projectUrn].html +1 -1
  136. fides/ui-build/static/admin/data-catalog/[systemId]/projects.html +1 -1
  137. fides/ui-build/static/admin/data-catalog/[systemId]/resources/[resourceUrn].html +1 -1
  138. fides/ui-build/static/admin/data-catalog/[systemId]/resources.html +1 -1
  139. fides/ui-build/static/admin/data-catalog.html +1 -1
  140. fides/ui-build/static/admin/data-discovery/action-center/[monitorId]/[systemId].html +1 -1
  141. fides/ui-build/static/admin/data-discovery/action-center/[monitorId].html +1 -1
  142. fides/ui-build/static/admin/data-discovery/action-center.html +1 -1
  143. fides/ui-build/static/admin/data-discovery/activity.html +1 -1
  144. fides/ui-build/static/admin/data-discovery/detection/[resourceUrn].html +1 -1
  145. fides/ui-build/static/admin/data-discovery/detection.html +1 -1
  146. fides/ui-build/static/admin/data-discovery/discovery/[resourceUrn].html +1 -1
  147. fides/ui-build/static/admin/data-discovery/discovery.html +1 -1
  148. fides/ui-build/static/admin/datamap.html +1 -1
  149. fides/ui-build/static/admin/dataset/[datasetId]/[collectionName]/[...subfieldNames].html +1 -1
  150. fides/ui-build/static/admin/dataset/[datasetId]/[collectionName].html +1 -1
  151. fides/ui-build/static/admin/dataset/[datasetId].html +1 -1
  152. fides/ui-build/static/admin/dataset/new.html +1 -1
  153. fides/ui-build/static/admin/dataset.html +1 -1
  154. fides/ui-build/static/admin/datastore-connection/[id].html +1 -1
  155. fides/ui-build/static/admin/datastore-connection/new.html +1 -1
  156. fides/ui-build/static/admin/datastore-connection.html +1 -1
  157. fides/ui-build/static/admin/index.html +1 -1
  158. fides/ui-build/static/admin/integrations/[id].html +1 -1
  159. fides/ui-build/static/admin/integrations.html +1 -1
  160. fides/ui-build/static/admin/lib/fides-ext-gpp.js +1 -1
  161. fides/ui-build/static/admin/lib/fides-headless.js +1 -1
  162. fides/ui-build/static/admin/lib/fides-preview.js +1 -1
  163. fides/ui-build/static/admin/lib/fides-tcf.js +2 -2
  164. fides/ui-build/static/admin/lib/fides.js +2 -2
  165. fides/ui-build/static/admin/login/[provider].html +1 -1
  166. fides/ui-build/static/admin/login.html +1 -1
  167. fides/ui-build/static/admin/messaging/[id].html +1 -1
  168. fides/ui-build/static/admin/messaging/add-template.html +1 -1
  169. fides/ui-build/static/admin/messaging.html +1 -1
  170. fides/ui-build/static/admin/poc/ant-components.html +1 -1
  171. fides/ui-build/static/admin/poc/form-experiments/AntForm.html +1 -1
  172. fides/ui-build/static/admin/poc/form-experiments/FormikAntFormItem.html +1 -1
  173. fides/ui-build/static/admin/poc/form-experiments/FormikControlled.html +1 -1
  174. fides/ui-build/static/admin/poc/form-experiments/FormikField.html +1 -1
  175. fides/ui-build/static/admin/poc/form-experiments/FormikSpreadField.html +1 -1
  176. fides/ui-build/static/admin/poc/forms.html +1 -1
  177. fides/ui-build/static/admin/poc/table-migration.html +1 -1
  178. fides/ui-build/static/admin/privacy-requests/[id].html +1 -1
  179. fides/ui-build/static/admin/privacy-requests/configure/messaging.html +1 -1
  180. fides/ui-build/static/admin/privacy-requests/configure/storage.html +1 -1
  181. fides/ui-build/static/admin/privacy-requests/configure.html +1 -1
  182. fides/ui-build/static/admin/privacy-requests.html +1 -1
  183. fides/ui-build/static/admin/properties/[id].html +1 -1
  184. fides/ui-build/static/admin/properties/add-property.html +1 -1
  185. fides/ui-build/static/admin/properties.html +1 -1
  186. fides/ui-build/static/admin/reporting/datamap.html +1 -1
  187. fides/ui-build/static/admin/settings/about/alpha.html +1 -1
  188. fides/ui-build/static/admin/settings/about.html +1 -1
  189. fides/ui-build/static/admin/settings/consent/[configuration_id]/[purpose_id].html +1 -1
  190. fides/ui-build/static/admin/settings/consent.html +1 -1
  191. fides/ui-build/static/admin/settings/custom-fields.html +1 -1
  192. fides/ui-build/static/admin/settings/domain-records.html +1 -1
  193. fides/ui-build/static/admin/settings/domains.html +1 -1
  194. fides/ui-build/static/admin/settings/email-templates.html +1 -1
  195. fides/ui-build/static/admin/settings/locations.html +1 -1
  196. fides/ui-build/static/admin/settings/organization.html +1 -1
  197. fides/ui-build/static/admin/settings/regulations.html +1 -1
  198. fides/ui-build/static/admin/systems/configure/[id]/test-datasets.html +1 -1
  199. fides/ui-build/static/admin/systems/configure/[id].html +1 -1
  200. fides/ui-build/static/admin/systems.html +1 -1
  201. fides/ui-build/static/admin/taxonomy.html +1 -1
  202. fides/ui-build/static/admin/user-management/new.html +1 -1
  203. fides/ui-build/static/admin/user-management/profile/[id].html +1 -1
  204. fides/ui-build/static/admin/user-management.html +1 -1
  205. fides/api/alembic/migrations/versions/3b0f4905378c_change_asset_with_consent_to_asset_.py +0 -47
  206. fides/api/alembic/migrations/versions/9e3dab26f75f_add_test_website_to_connectiontype.py +0 -51
  207. fides/api/alembic/migrations/versions/d45dec7e541d_add_consent_indexes_to_stagedresource.py +0 -64
  208. fides/api/service/masking/strategy/masking_strategy_preserve.py +0 -42
  209. fides/ui-build/static/admin/_next/static/FyEBF3yHHs8bgX7Ko0ZD_/_buildManifest.js +0 -1
  210. fides/ui-build/static/admin/_next/static/chunks/3450-ebcffdd4fb437a2e.js +0 -1
  211. fides/ui-build/static/admin/_next/static/chunks/3988-4b0f160b0969dbd2.js +0 -1
  212. fides/ui-build/static/admin/_next/static/chunks/409-6b1b506d59a0399a.js +0 -1
  213. fides/ui-build/static/admin/_next/static/chunks/4121-23ac086c1aa6a43a.js +0 -1
  214. fides/ui-build/static/admin/_next/static/chunks/431-24380873201c3e1b.js +0 -1
  215. fides/ui-build/static/admin/_next/static/chunks/4608-0cd97892fd0b0e41.js +0 -1
  216. fides/ui-build/static/admin/_next/static/chunks/5309-c8b5165efcc5469f.js +0 -1
  217. fides/ui-build/static/admin/_next/static/chunks/6662-79eee0bf18775b40.js +0 -1
  218. fides/ui-build/static/admin/_next/static/chunks/6780-8b5772a3a2ef1ca6.js +0 -1
  219. fides/ui-build/static/admin/_next/static/chunks/6954-3a7b166c8f3b66b4.js +0 -1
  220. fides/ui-build/static/admin/_next/static/chunks/9046-d4c806aa81ab0bad.js +0 -1
  221. fides/ui-build/static/admin/_next/static/chunks/pages/add-systems/manual-12073578f764815e.js +0 -1
  222. fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/action-center/[monitorId]/[systemId]-3ae1ae3844a6e03a.js +0 -1
  223. fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/action-center/[monitorId]-e8dc8320e826e91c.js +0 -1
  224. fides/ui-build/static/admin/_next/static/chunks/pages/datastore-connection/[id]-7d492050fc33a57a.js +0 -1
  225. fides/ui-build/static/admin/_next/static/chunks/pages/datastore-connection/new-6f68e65f01beb8af.js +0 -1
  226. fides/ui-build/static/admin/_next/static/chunks/pages/integrations/[id]-c245f0b0fd7810c0.js +0 -1
  227. fides/ui-build/static/admin/_next/static/chunks/pages/integrations-ea492832424a9619.js +0 -1
  228. fides/ui-build/static/admin/_next/static/chunks/pages/privacy-requests-d3299d80983c3587.js +0 -1
  229. fides/ui-build/static/admin/_next/static/chunks/pages/systems/configure/[id]-ed809e0961891c0c.js +0 -1
  230. fides/ui-build/static/admin/_next/static/chunks/webpack-c97e8d65bd9739ff.js +0 -1
  231. fides/ui-build/static/admin/_next/static/css/0ba8f1215e9015ff.css +0 -1
  232. {ethyca_fides-2.65.1b2.dist-info → ethyca_fides-2.65.2rc0.dist-info}/WHEEL +0 -0
  233. {ethyca_fides-2.65.1b2.dist-info → ethyca_fides-2.65.2rc0.dist-info}/entry_points.txt +0 -0
  234. {ethyca_fides-2.65.1b2.dist-info → ethyca_fides-2.65.2rc0.dist-info}/licenses/LICENSE +0 -0
  235. {ethyca_fides-2.65.1b2.dist-info → ethyca_fides-2.65.2rc0.dist-info}/top_level.txt +0 -0
  236. /fides/ui-build/static/admin/_next/static/{FyEBF3yHHs8bgX7Ko0ZD_ → g55_mCF_RUKDu-UIKfYXP}/_ssgManifest.js +0 -0
@@ -1 +1 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[165],{21865:function(e,t,a){(window.__NEXT_P=window.__NEXT_P||[]).push(["/data-catalog/[systemId]/projects",function(){return a(98791)}])},79609:function(e,t,a){"use strict";a.d(t,{N4:function(){return n},UG:function(){return o},xw:function(){return i}});var s=a(54427);let{useGetCatalogSystemsQuery:o,useGetCatalogProjectsQuery:i,useGetCatalogDatasetsQuery:n}=a(78780).u.injectEndpoints({endpoints:e=>({getCatalogSystems:e.query({query:e=>({method:"GET",url:"/plus/data-catalog/system",params:e}),providesTags:["Catalog Systems","System"]}),getCatalogProjects:e.query({query:e=>{let{...t}=e;return{method:"GET",url:"/plus/data-catalog/project",params:t}},providesTags:["Discovery Monitor Results"]}),getCatalogDatasets:e.query({query:e=>{let{...t}=e;return{method:"GET",url:"/plus/data-catalog/dataset",params:t}},providesTags:["Discovery Monitor Results"]})})});(0,s.oM)({name:"dataCatalog",initialState:{page:1,pageSize:50},reducers:{}})},98791:function(e,t,a){"use strict";a.r(t),a.d(t,{default:function(){return S}});var s=a(24246),o=a(86677),i=a(18225),n=a(77213),r=a(77830),l=a(58754),u=a(92222),d=a(59003),c=a(13577),g=a(27378),m=a(47935),p=a(72625),f=a(89200),x=a(5945),h=a(79609),j=a(99763),y=a(28976),C=a(8151);let w={items:[],total:0,page:1,size:50,pages:1},_=()=>(0,s.jsx)(c.gCW,{mt:6,p:10,spacing:4,borderRadius:"base",maxW:"70%","data-testid":"empty-state",alignSelf:"center",margin:"auto",children:(0,s.jsx)(c.gCW,{children:(0,s.jsx)(c.xvT,{fontSize:"md",fontWeight:"600",children:"No resources found"})})}),v=(0,u.Cl)();var R=e=>{let{systemKey:t,monitorConfigIds:a}=e,[i,n]=(0,g.useState)({}),{PAGE_SIZES:l,pageSize:c,setPageSize:R,onPreviousPageClick:b,isPreviousPageDisabled:S,onNextPageClick:P,isNextPageDisabled:E,startRange:k,endRange:D,pageIndex:N,setTotalPages:T}=(0,m.oi)(),{isFetching:M,isLoading:z,data:I}=(0,h.xw)({page:N,size:c,monitor_config_ids:a}),Z=(0,o.useRouter)(),{items:q,total:G,pages:V}=(0,g.useMemo)(()=>null!=I?I:w,[I]);(0,g.useEffect)(()=>{T(V)},[V,T]);let[W,X]=(0,g.useState)(void 0),U=(0,g.useMemo)(()=>[v.accessor(e=>e.name,{id:"name",cell:e=>(0,s.jsx)(f.Z,{resource:e.row.original}),header:"Project"}),v.display({id:"status",cell:e=>{let{row:t}=e;return(0,s.jsx)(x.Z,{status:(0,C.u)(t.original)})},header:"Status"}),v.accessor(e=>e.monitor_config_id,{id:"monitorConfigId",cell:e=>(0,s.jsx)(m.G3,{value:e.getValue()}),header:"Detected by"}),v.accessor(e=>e.description,{id:"description",cell:e=>(0,s.jsx)(m.G3,{value:e.getValue()}),header:"Description"}),v.accessor(e=>e.updated_at,{id:"lastUpdated",cell:e=>(0,s.jsx)(p.Cy,{time:e.getValue()}),header:"Updated",meta:{cellProps:{borderRight:"none"}}}),v.display({id:"actions",cell:e=>{let{row:t}=e;return(0,s.jsx)(y.Z,{onDetailClick:()=>X(t.original)})},size:25,meta:{disableRowClick:!0}})],[]),K=(0,d.b7)({getCoreRowModel:(0,u.sC)(),getGroupedRowModel:(0,u.qe)(),getExpandedRowModel:(0,u.rV)(),manualPagination:!0,columnResizeMode:"onChange",columns:U,data:q,getRowId:e=>e.urn,onRowSelectionChange:n,state:{rowSelection:i}});return z||M?(0,s.jsx)(m.I4,{rowHeight:36,numRows:36}):(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(m.ZK,{tableInstance:K,emptyTableNotice:(0,s.jsx)(_,{}),onRowClick:e=>Z.push("".concat(r.mX,"/").concat(t,"/projects/").concat(e.urn))}),(0,s.jsx)(m.s8,{totalRows:G||0,pageSizes:l,setPageSize:R,onPreviousPageClick:b,isPreviousPageDisabled:S,onNextPageClick:P,isNextPageDisabled:E,startRange:k,endRange:D}),(0,s.jsx)(j.Z,{resource:W,onClose:()=>X(void 0)})]})},b=a(1315),S=()=>{var e;let{query:t}=(0,o.useRouter)(),a=t.systemId,u=t.monitor_config_ids,{data:d,isLoading:c}=(0,b.rn)(a);return c?(0,s.jsx)(i.Z,{}):(0,s.jsxs)(n.Z,{title:"Data catalog",children:[(0,s.jsx)(l.Z,{heading:"Data catalog",breadcrumbItems:[{title:"All systems",href:r.mX},{title:null!==(e=null==d?void 0:d.name)&&void 0!==e?e:null==d?void 0:d.fides_key}]}),(0,s.jsx)(R,{systemKey:a,monitorConfigIds:u})]})}}},function(e){e.O(0,[2858,2866,9278,409,6882,2888,9774,179],function(){return e(e.s=21865)}),_N_E=e.O()}]);
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[165],{21865:function(e,t,a){(window.__NEXT_P=window.__NEXT_P||[]).push(["/data-catalog/[systemId]/projects",function(){return a(98791)}])},79609:function(e,t,a){"use strict";a.d(t,{N4:function(){return n},UG:function(){return o},xw:function(){return i}});var s=a(54427);let{useGetCatalogSystemsQuery:o,useGetCatalogProjectsQuery:i,useGetCatalogDatasetsQuery:n}=a(78780).u.injectEndpoints({endpoints:e=>({getCatalogSystems:e.query({query:e=>({method:"GET",url:"/plus/data-catalog/system",params:e}),providesTags:["Catalog Systems","System"]}),getCatalogProjects:e.query({query:e=>{let{...t}=e;return{method:"GET",url:"/plus/data-catalog/project",params:t}},providesTags:["Discovery Monitor Results"]}),getCatalogDatasets:e.query({query:e=>{let{...t}=e;return{method:"GET",url:"/plus/data-catalog/dataset",params:t}},providesTags:["Discovery Monitor Results"]})})});(0,s.oM)({name:"dataCatalog",initialState:{page:1,pageSize:50},reducers:{}})},98791:function(e,t,a){"use strict";a.r(t),a.d(t,{default:function(){return S}});var s=a(24246),o=a(86677),i=a(18225),n=a(77213),r=a(77830),l=a(58754),u=a(92222),d=a(59003),c=a(86920),g=a(27378),m=a(47935),p=a(72625),f=a(89200),x=a(5945),h=a(79609),j=a(99763),y=a(28976),C=a(8151);let w={items:[],total:0,page:1,size:50,pages:1},_=()=>(0,s.jsx)(c.gCW,{mt:6,p:10,spacing:4,borderRadius:"base",maxW:"70%","data-testid":"empty-state",alignSelf:"center",margin:"auto",children:(0,s.jsx)(c.gCW,{children:(0,s.jsx)(c.xvT,{fontSize:"md",fontWeight:"600",children:"No resources found"})})}),v=(0,u.Cl)();var R=e=>{let{systemKey:t,monitorConfigIds:a}=e,[i,n]=(0,g.useState)({}),{PAGE_SIZES:l,pageSize:c,setPageSize:R,onPreviousPageClick:b,isPreviousPageDisabled:S,onNextPageClick:P,isNextPageDisabled:E,startRange:k,endRange:D,pageIndex:N,setTotalPages:T}=(0,m.oi)(),{isFetching:M,isLoading:z,data:I}=(0,h.xw)({page:N,size:c,monitor_config_ids:a}),Z=(0,o.useRouter)(),{items:q,total:G,pages:V}=(0,g.useMemo)(()=>null!=I?I:w,[I]);(0,g.useEffect)(()=>{T(V)},[V,T]);let[W,X]=(0,g.useState)(void 0),U=(0,g.useMemo)(()=>[v.accessor(e=>e.name,{id:"name",cell:e=>(0,s.jsx)(f.Z,{resource:e.row.original}),header:"Project"}),v.display({id:"status",cell:e=>{let{row:t}=e;return(0,s.jsx)(x.Z,{status:(0,C.u)(t.original)})},header:"Status"}),v.accessor(e=>e.monitor_config_id,{id:"monitorConfigId",cell:e=>(0,s.jsx)(m.G3,{value:e.getValue()}),header:"Detected by"}),v.accessor(e=>e.description,{id:"description",cell:e=>(0,s.jsx)(m.G3,{value:e.getValue()}),header:"Description"}),v.accessor(e=>e.updated_at,{id:"lastUpdated",cell:e=>(0,s.jsx)(p.Cy,{time:e.getValue()}),header:"Updated",meta:{cellProps:{borderRight:"none"}}}),v.display({id:"actions",cell:e=>{let{row:t}=e;return(0,s.jsx)(y.Z,{onDetailClick:()=>X(t.original)})},size:25,meta:{disableRowClick:!0}})],[]),K=(0,d.b7)({getCoreRowModel:(0,u.sC)(),getGroupedRowModel:(0,u.qe)(),getExpandedRowModel:(0,u.rV)(),manualPagination:!0,columnResizeMode:"onChange",columns:U,data:q,getRowId:e=>e.urn,onRowSelectionChange:n,state:{rowSelection:i}});return z||M?(0,s.jsx)(m.I4,{rowHeight:36,numRows:36}):(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(m.ZK,{tableInstance:K,emptyTableNotice:(0,s.jsx)(_,{}),onRowClick:e=>Z.push("".concat(r.mX,"/").concat(t,"/projects/").concat(e.urn))}),(0,s.jsx)(m.s8,{totalRows:G||0,pageSizes:l,setPageSize:R,onPreviousPageClick:b,isPreviousPageDisabled:S,onNextPageClick:P,isNextPageDisabled:E,startRange:k,endRange:D}),(0,s.jsx)(j.Z,{resource:W,onClose:()=>X(void 0)})]})},b=a(1315),S=()=>{var e;let{query:t}=(0,o.useRouter)(),a=t.systemId,u=t.monitor_config_ids,{data:d,isLoading:c}=(0,b.rn)(a);return c?(0,s.jsx)(i.Z,{}):(0,s.jsxs)(n.Z,{title:"Data catalog",children:[(0,s.jsx)(l.Z,{heading:"Data catalog",breadcrumbItems:[{title:"All systems",href:r.mX},{title:null!==(e=null==d?void 0:d.name)&&void 0!==e?e:null==d?void 0:d.fides_key}]}),(0,s.jsx)(R,{systemKey:a,monitorConfigIds:u})]})}}},function(e){e.O(0,[2858,2866,9278,409,6882,2888,9774,179],function(){return e(e.s=21865)}),_N_E=e.O()}]);
@@ -1 +1 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4231],{66248:function(e,s,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/data-catalog",function(){return t(99375)}])},77213:function(e,s,t){"use strict";t.d(s,{Z:function(){return m}});var a=t(24246),i=t(13577),n=t(88038),l=t.n(n),r=t(86677);t(27378);var o=t(25980),d=t(90867),c=t(77830),u=()=>{let e=(0,r.useRouter)();return(0,a.jsx)(i.xuv,{bg:"gray.50",border:"1px solid",borderColor:"blue.400",borderRadius:"md",justifyContent:"space-between",p:5,mb:5,mt:5,children:(0,a.jsxs)(i.xuv,{children:[(0,a.jsxs)(i.Kqy,{direction:{base:"column",sm:"row"},justifyContent:"space-between",children:[(0,a.jsx)(i.xvT,{fontWeight:"semibold",children:"Configure your storage and messaging provider"}),(0,a.jsx)(i.wpx,{onClick:()=>{e.push(c.fz)},children:"Configure"})]}),(0,a.jsxs)(i.xvT,{children:["Before Fides can process your privacy requests we need two simple steps to configure your storage and email client."," "]})]})})},m=e=>{let{children:s,title:t,padded:n=!0,mainProps:c}=e,m=(0,o.hz)(),p=(0,r.useRouter)(),x="/privacy-requests"===p.pathname||"/datastore-connection"===p.pathname,h=!(m.flags.privacyRequestsConfiguration&&x),{data:j}=(0,d.JE)(void 0,{skip:h}),{data:v}=(0,d.PW)(void 0,{skip:h}),g=m.flags.privacyRequestsConfiguration&&(!j||!v)&&x;return(0,a.jsxs)(i.kCb,{"data-testid":t,direction:"column",h:"100vh",children:[(0,a.jsxs)(l(),{children:[(0,a.jsxs)("title",{children:["Fides Admin UI - ",t]}),(0,a.jsx)("meta",{name:"description",content:"Privacy Engineering Platform"}),(0,a.jsx)("link",{rel:"icon",href:"/favicon.ico"})]}),(0,a.jsxs)(i.kCb,{as:"main",direction:"column",py:n?6:0,px:n?10:0,h:n?"calc(100% - 48px)":"full",flex:1,minWidth:0,overflow:"auto",...c,children:[g?(0,a.jsx)(u,{}):null,s]})]})}},79789:function(e,s,t){"use strict";t.d(s,{Hn:function(){return r},XU:function(){return l},Z5:function(){return o},aG:function(){return u},cB:function(){return n},hX:function(){return c},vQ:function(){return d}});var a=t(24246),i=t(13577);let n=e=>{let{text:s,...t}=e;return(0,a.jsx)(i.X6q,{fontSize:"sm",mt:4,mb:1,...t,children:s})},l=e=>{let{children:s}=e;return(0,a.jsx)(i.xvT,{fontSize:"14px",mb:4,children:s})},r=e=>{let{children:s,href:t}=e;return(0,a.jsx)(i.rUS,{href:t,textDecoration:"underline",isExternal:!0,children:s})},o=e=>{let{children:s}=e;return(0,a.jsx)(i.QI$,{fontSize:"14px",mb:4,children:s})},d=e=>{let{children:s}=e;return(0,a.jsx)(i.GSI,{fontSize:"14px",mb:4,ml:6,children:s})},c=e=>{let{children:s}=e;return(0,a.jsx)(i.EKh,{display:"block",whiteSpace:"pre",p:4,mb:4,overflowX:"scroll",children:s})},u=e=>{let{data:s}=e;return(0,a.jsxs)(i.iA_,{fontSize:"14px",children:[(0,a.jsx)(i.hrZ,{children:(0,a.jsxs)(i.Tr,{children:[(0,a.jsx)(i.Th,{children:"Permission"}),(0,a.jsx)(i.Th,{children:"Description"})]})}),(0,a.jsx)(i.p3B,{children:s.map(e=>(0,a.jsxs)(i.Tr,{children:[(0,a.jsx)(i.Td,{children:(0,a.jsx)(i.Vp9,{children:e.permission})}),(0,a.jsx)(i.Td,{children:e.description})]},e.permission))})]})}},83099:function(e,s,t){"use strict";var a=t(24246),i=t(79283),n=t(34929);s.Z=e=>{let{selectedTaxonomies:s,showDisabled:t=!1,...l}=e,{getDataUseDisplayNameProps:r,getDataUses:o}=(0,n.Z)(),d=(t?o():o().filter(e=>e.active)).filter(e=>!s.includes(e.fides_key)).map(e=>{let{name:s,primaryName:t}=r(e.fides_key);return{value:e.fides_key,name:s,primaryName:t,description:e.description||""}});return(0,a.jsx)(i.l,{options:d,...l})}},97181:function(e,s,t){"use strict";t.d(s,{d:function(){return d}});var a=t(24246),i=t(13577),n=t(34090),l=t(27378),r=t(46238),o=t(40324);let d=e=>{let{name:s,label:t,labelProps:d,tooltip:c,isRequired:u,layout:m="inline",helperText:p,...x}=e,[h,j,{setValue:v}]=(0,n.U$)(s),g=!!(j.touched&&j.error),[f,y]=(0,l.useState)("");h.value||"tags"!==x.mode&&"multiple"!==x.mode||(h.value=[]),"tags"===x.mode&&"string"==typeof h.value&&(h.value=[h.value]);let b="tags"===x.mode?(e,s)=>e?e.value!==f||h.value.includes(f)?x.optionRender?x.optionRender(e,s):e.label:'Create "'.concat(f,'"'):void 0:x.optionRender||void 0,_=e=>{y(e),x.onSearch&&x.onSearch(e)},w=(e,s)=>{v(e),x.onChange&&x.onChange(e,s)};return"inline"===m?(0,a.jsx)(i.NIc,{isInvalid:g,isRequired:u,children:(0,a.jsxs)(i.rjZ,{templateColumns:t?"1fr 3fr":"1fr",children:[t?(0,a.jsx)(o.__,{htmlFor:x.id||s,...d,children:t}):null,(0,a.jsxs)(i.jqI,{align:"center",children:[(0,a.jsxs)(i.jqI,{vertical:!0,flex:1,className:"mr-2",children:[(0,a.jsx)(i.WPr,{...h,id:x.id||s,"data-testid":"controlled-select-".concat(h.name),...x,optionRender:b,onSearch:"tags"===x.mode?_:void 0,onChange:w,value:h.value||void 0,status:g?"error":void 0}),p&&(0,a.jsx)(i.Q6r,{children:p}),(0,a.jsx)(o.Bc,{isInvalid:g,message:j.error,fieldName:h.name})]}),(0,a.jsx)(r.b,{label:c,className:g?"mt-2 self-start":void 0})]})]})}):(0,a.jsx)(i.NIc,{isInvalid:g,isRequired:u,children:(0,a.jsxs)(i.gCW,{alignItems:"start",children:[(0,a.jsxs)(i.jqI,{align:"center",children:[t?(0,a.jsx)(o.__,{htmlFor:x.id||s,fontSize:"xs",my:0,mr:1,...d,children:t}):null,(0,a.jsx)(r.b,{label:c})]}),(0,a.jsx)(i.WPr,{...h,id:x.id||s,"data-testid":"controlled-select-".concat(h.name),...x,optionRender:b,onSearch:"tags"===x.mode?_:void 0,onChange:w,value:h.value||void 0,status:g?"error":void 0}),p&&(0,a.jsx)(i.Q6r,{style:{marginTop:0},children:p}),(0,a.jsx)(o.Bc,{isInvalid:g,message:j.error,fieldName:h.name})]})})}},8133:function(e,s,t){"use strict";var a=t(24246),i=t(13577);s.Z=e=>{let{title:s,children:t,isOpen:n,onClose:l,modalContentProps:r,showCloseButton:o=!1,footer:d,...c}=e;return(0,a.jsxs)(i.u_l,{isOpen:n,onClose:l,isCentered:!0,scrollBehavior:"inside",size:"xl",id:"add-modal",...c,children:[(0,a.jsx)(i.ZAr,{}),(0,a.jsxs)(i.hzk,{textAlign:"left",p:0,"data-testid":"add-modal-content",...r,children:[o&&(0,a.jsx)(i.olH,{}),(0,a.jsx)(i.xBx,{p:0,children:(0,a.jsx)(i.xuv,{backgroundColor:"gray.50",px:6,py:4,border:"1px",borderColor:"gray.200",borderTopRadius:6,display:"flex",justifyContent:"space-between",alignItems:"center",children:(0,a.jsx)(i.X6q,{as:"h3",size:"sm",children:s})})}),(0,a.jsx)(i.fef,{pb:4,overflow:"auto",children:t}),d&&(0,a.jsx)(i.mzw,{children:d})]})]})}},79609:function(e,s,t){"use strict";t.d(s,{N4:function(){return l},UG:function(){return i},xw:function(){return n}});var a=t(54427);let{useGetCatalogSystemsQuery:i,useGetCatalogProjectsQuery:n,useGetCatalogDatasetsQuery:l}=t(78780).u.injectEndpoints({endpoints:e=>({getCatalogSystems:e.query({query:e=>({method:"GET",url:"/plus/data-catalog/system",params:e}),providesTags:["Catalog Systems","System"]}),getCatalogProjects:e.query({query:e=>{let{...s}=e;return{method:"GET",url:"/plus/data-catalog/project",params:s}},providesTags:["Discovery Monitor Results"]}),getCatalogDatasets:e.query({query:e=>{let{...s}=e;return{method:"GET",url:"/plus/data-catalog/dataset",params:s}},providesTags:["Discovery Monitor Results"]})})});(0,a.oM)({name:"dataCatalog",initialState:{page:1,pageSize:50},reducers:{}})},81406:function(e,s,t){"use strict";var a=t(24246),i=t(13577);s.Z=()=>(0,a.jsxs)(i.gCW,{mt:6,p:10,spacing:4,borderRadius:"base",maxW:"70%","data-testid":"empty-state",alignSelf:"center",margin:"auto",children:[(0,a.jsx)(i.xvT,{fontSize:"md",fontWeight:"600",children:"No resources found"}),(0,a.jsx)(i.xvT,{fontSize:"sm",children:"You're up to date!"})]})},3765:function(e,s,t){"use strict";var a=t(13577),i=t(812),n=t(46628),l=t(1315),r=t(31883);s.Z=e=>{let s=(0,a.pmc)(),[t]=(0,l.qQ)(),o=t=>!!e.privacy_declarations.find(e=>e.data_use===t.data_use&&e.name===t.name)&&(s((0,n.Vo)("A declaration already exists with that data use in this system. Please supply a different data use.")),!0),d=(e,t)=>{if((0,r.D4)(e)){let t=(0,i.e$)(e.error,"An unexpected error occurred while updating the system. Please try again.");s((0,n.Vo)(t));return}return s.closeAll(),s((0,n.t5)(t?"Data use deleted":"Data use saved")),e.data.privacy_declarations},c=async(s,a)=>{let i=s.map(e=>{var s;return{...e,name:null!==(s=e.name)&&void 0!==s?s:""}}),n={...e,privacy_declarations:i};return d(await t(n),a)};return{createDataUse:async t=>{if(!o(t))return s.closeAll(),c([...e.privacy_declarations,t])},updateDataUse:async(s,t)=>{if(!(t.id!==s.id&&o(t)))return c(e.privacy_declarations.map(e=>e.id===s.id?t:e))},deleteDataUse:async s=>c(e.privacy_declarations.filter(e=>e.id!==s.id),!0),deleteDeclarationByDataUse:async s=>c(e.privacy_declarations.filter(e=>e.data_use!==s),!0)}}},54748:function(e,s,t){"use strict";var a=t(27378),i=t(68309);s.Z=()=>({legalBasisOptions:(0,a.useMemo)(()=>Object.keys(i.gP).map(e=>({value:i.gP[e],label:i.gP[e]})),[])})},28325:function(e,s,t){"use strict";var a=t(27378),i=t(68309);s.Z=()=>({specialCategoryLegalBasisOptions:(0,a.useMemo)(()=>Object.keys(i.nV).map(e=>({value:i.nV[e],label:i.nV[e]})),[])})},99375:function(e,s,t){"use strict";t.r(s),t.d(s,{default:function(){return M}});var a=t(24246),i=t(77213),n=t(58754),l=t(92222),r=t(59003),o=t(86677),d=t(27378),c=t(77830),u=t(47935),m=t(16394),p=t(79609),x=t(81406),h=t(13577),j=t(79789),v=t(83099),g=t(34929),f=t(34090),y=t(55484),b=t(97181),_=t(40324),w=t(8133),C=t(54748),k=t(28325),R=t(34151),S=t.n(R);let q=y.Ry().shape({data_use:y.Z_().required("Data use is required")});var z=e=>{let{isOpen:s,onClose:t,onSave:i,declaration:n}=e,{getDataUses:l,getDataCategories:r,getDataSubjects:o}=(0,g.Z)(),{isOpen:d,onToggle:c}=(0,h.qY0)(),u=l().map(e=>({label:e.fides_key,value:e.fides_key})),m=r().map(e=>({label:e.fides_key,value:e.fides_key})),p=o().map(e=>({label:e.fides_key,value:e.fides_key})),{legalBasisOptions:x}=(0,C.Z)(),{specialCategoryLegalBasisOptions:j}=(0,k.Z)();return(0,a.jsx)(f.J9,{initialValues:n,enableReinitialize:!0,onSubmit:e=>{i(e),t()},validationSchema:q,children:e=>{let{dirty:i,isValid:n,values:l,resetForm:r}=e;return(0,a.jsx)(w.Z,{title:"Edit data use",isOpen:s,onClose:t,children:(0,a.jsxs)(f.l0,{children:[(0,a.jsxs)(h.jqI,{vertical:!0,className:"gap-6 py-4",children:[(0,a.jsx)(b.d,{name:"data_use",label:"Data use",options:u,layout:"stacked",isRequired:!0}),(0,a.jsx)(b.d,{name:"data_categories",label:"Data categories",options:m,mode:"multiple",layout:"stacked"}),(0,a.jsx)(b.d,{name:"data_subjects",label:"Data subjects",options:p,mode:"multiple",layout:"stacked"}),(0,a.jsx)(_.j0,{name:"name",label:"Declaration name",variant:"stacked"}),(0,a.jsxs)(h.jqI,{vertical:!0,className:"gap-6 p-4 ".concat(S().advancedSettings),children:[(0,a.jsxs)(h.jqI,{className:"cursor-pointer justify-between",onClick:c,children:[(0,a.jsx)(h.xvT,{fontSize:"xs",children:"Advanced settings"}),(0,a.jsx)(h.v4q,{className:d?"rotate-180":void 0})]}),(0,a.jsx)(h.UO1,{in:d,children:(0,a.jsxs)(h.jqI,{vertical:!0,className:"gap-4",children:[(0,a.jsx)(b.d,{name:"legal_basis_for_processing",label:"Legal basis for processing",options:x,layout:"stacked"}),(0,a.jsx)(h.UO1,{in:(null==l?void 0:l.legal_basis_for_processing)==="Legitimate interests",animateOpacity:!0,style:{overflow:"visible"},children:(0,a.jsx)("div",{className:"mt-4",children:(0,a.jsx)(_.j0,{name:"impact_assessment_location",label:"Impact assessment location",tooltip:"Where is the legitimate interest impact assessment stored?",variant:"stacked"})})}),(0,a.jsx)(_.w8,{name:"flexible_legal_basis_for_processing",label:"This legal basis is flexible",tooltip:"Has the vendor declared that the legal basis may be overridden?",variant:"stacked"}),(0,a.jsx)(_.j0,{name:"retention_period",label:"Retention period (days)",tooltip:"How long is personal data retained for this purpose?",variant:"stacked"}),(0,a.jsxs)(h.Kqy,{spacing:0,children:[(0,a.jsx)(_.w8,{name:"processes_special_category_data",label:"This system processes special category data",tooltip:"Is this system processing special category data as defined by GDPR Article 9?",variant:"stacked"}),(0,a.jsx)(h.UO1,{in:null==l?void 0:l.processes_special_category_data,animateOpacity:!0,style:{overflow:"visible"},children:(0,a.jsx)("div",{className:"mt-4",children:(0,a.jsx)(b.d,{isRequired:!0,name:"special_category_legal_basis",label:"Legal basis for processing",options:j,tooltip:"What is the legal basis under which the special category data is processed?",layout:"stacked"})})})]})]})})]})]}),(0,a.jsxs)("div",{className:"flex w-full justify-between",children:[(0,a.jsx)(h.wpx,{onClick:()=>{r(),t()},children:"Cancel"}),(0,a.jsx)(h.wpx,{type:"primary",htmlType:"submit",disabled:!i||!n,loading:!1,"data-testid":"save-btn",children:"Save"})]})]})})}})},D=t(26183),N=t(3765);let T=e=>({data_use:e,data_categories:["system"]});var I=e=>{var s,t;let{system:i}=e,[n,l]=(0,d.useState)(!1),[r,o]=(0,d.useState)(void 0),{getDataUseDisplayName:c}=(0,g.Z)(),{isOpen:u,onOpen:m,onClose:p}=(0,h.qY0)(),x=e=>{o(e),m()},{createDataUse:j,deleteDeclarationByDataUse:f,updateDataUse:y}=(0,N.Z)(i),b=null!==(t=null===(s=i.privacy_declarations)||void 0===s?void 0:s.map(e=>e.data_use))&&void 0!==t?t:[];return(0,a.jsxs)(D.Z,{children:[!n&&(0,a.jsxs)(a.Fragment,{children:[b.map((e,s)=>(0,a.jsxs)(h.j8w,{"data-testid":"data-use-".concat(e),color:"white",onClick:()=>x(i.privacy_declarations[s]),closable:!0,onClose:()=>f(e),closeButtonLabel:"Remove data use",children:[(0,a.jsx)(h.PJP.I8b,{size:10}),c(e)]},e)),(0,a.jsx)(h.j8w,{onClick:()=>l(!0),"data-testid":"taxonomy-add-btn",addable:!0,"aria-label":"Add data use"}),(0,a.jsx)(z,{isOpen:u,onClose:p,onSave:e=>y(r,e),declaration:r})]}),n&&(0,a.jsx)(h.xuv,{className:"select-wrapper",position:"absolute",zIndex:10,top:"0",left:"0",width:"100%",height:"max",bgColor:"#fff",children:(0,a.jsx)(v.Z,{onChange:e=>{j(T(e)),l(!1)},selectedTaxonomies:b,onBlur:()=>l(!1),open:!0})})]})},P=e=>{var s;let{system:t,onEdit:i,onClose:n}=e;return(0,a.jsxs)(h.dys,{isOpen:!!t,onClose:n,size:"md",children:[(0,a.jsx)(h.P1B,{}),(0,a.jsxs)(h.scA,{"data-testid":"system-details",children:[(0,a.jsx)(h.OXI,{children:(null==t?void 0:t.name)||(null==t?void 0:t.fides_key)}),(0,a.jsx)(h.cCv,{}),(0,a.jsxs)(h.Ng0,{children:[(0,a.jsx)(j.cB,{text:"Title",mt:0}),(0,a.jsx)(j.XU,{children:null!==(s=null==t?void 0:t.name)&&void 0!==s?s:null==t?void 0:t.fides_key}),(null==t?void 0:t.description)&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(j.cB,{text:"Description"}),(0,a.jsx)(j.XU,{children:null==t?void 0:t.description})]}),(0,a.jsx)(j.cB,{text:"Data uses"}),(0,a.jsx)(I,{system:t})]}),(0,a.jsx)(h.zeN,{children:(0,a.jsx)(h.wpx,{onClick:i,"data-testid":"edit-system-btn",children:"Edit system"})})]})]})},Z=e=>{let{onDetailClick:s}=e;return(0,a.jsxs)(h.v2r,{children:[(0,a.jsx)(h.j2t,{as:h.wpx,size:"small",type:"text",className:"max-w-4",icon:(0,a.jsx)(h.nXP,{transform:"rotate(90deg)",ml:2}),"data-testid":"system-actions-menu"}),(0,a.jsx)(h.qyq,{children:s&&(0,a.jsx)(h.sNh,{onClick:s,"data-testid":"view-system-details",children:"View details"})})]})},E=t(70675);let B={items:[],total:0,page:1,size:50,pages:1},O=(0,l.Cl)();var U=()=>{let[e,s]=(0,d.useState)({}),t=(0,o.useRouter)(),{PAGE_SIZES:i,pageSize:n,setPageSize:h,onPreviousPageClick:j,isPreviousPageDisabled:v,onNextPageClick:g,isNextPageDisabled:f,startRange:y,endRange:b,pageIndex:_,setTotalPages:w}=(0,u.oi)(),{data:C,isLoading:k}=(0,p.UG)({page:_,size:n,show_hidden:!1}),[R]=(0,E.j3)(),{items:S,total:q,pages:z}=(0,d.useMemo)(()=>null!=C?C:B,[C]);(0,d.useEffect)(()=>{w(z)},[z,w]);let[D,N]=(0,d.useState)(void 0),T=(0,d.useMemo)(()=>S.find(e=>e.fides_key===D),[S,D]),U=async e=>{var s,a;let i=await R({connection_config_key:e.connection_configs.key,page:1,size:1}),n=!!(null==i?void 0:null===(s=i.data)||void 0===s?void 0:s.total),l=(0,m.du)(null!==(a=e.monitor_config_keys)&&void 0!==a?a:[],"monitor_config_ids"),r="".concat(c.mX,"/").concat(e.fides_key,"/").concat(n?"projects":"resources","?").concat(l);t.push(r)},M=(0,d.useMemo)(()=>[O.accessor(e=>e.name,{id:"name",cell:e=>{var s;let{getValue:t,row:i}=e;return(0,a.jsx)(u.G3,{value:t(),fontWeight:(null===(s=i.original.connection_configs)||void 0===s?void 0:s.key)?"semibold":"normal"})},header:e=>(0,a.jsx)(u.Rr,{value:"Name",...e})}),O.display({id:"data-uses",cell:e=>{let{row:s}=e;return(0,a.jsx)(I,{system:s.original})},header:e=>(0,a.jsx)(u.Rr,{value:"Data uses",...e}),meta:{disableRowClick:!0},minSize:280}),O.display({id:"actions",cell:e=>(0,a.jsx)(Z,{onDetailClick:()=>N(e.row.original.fides_key)}),maxSize:20,enableResizing:!1,meta:{cellProps:{borderLeft:"none"},disableRowClick:!0}})],[]),A=(0,r.b7)({getCoreRowModel:(0,l.sC)(),getGroupedRowModel:(0,l.qe)(),getExpandedRowModel:(0,l.rV)(),getRowId:e=>e.fides_key,manualPagination:!0,columnResizeMode:"onChange",columns:M,data:S,onRowSelectionChange:s,state:{rowSelection:e}});return k?(0,a.jsx)(u.I4,{rowHeight:36,numRows:36}):(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(u.ZK,{tableInstance:A,emptyTableNotice:(0,a.jsx)(x.Z,{}),onRowClick:U,getRowIsClickable:e=>{var s;return!!(null===(s=e.connection_configs)||void 0===s?void 0:s.key)}}),(0,a.jsx)(u.s8,{totalRows:q||0,pageSizes:i,setPageSize:h,onPreviousPageClick:j,isPreviousPageDisabled:v,onNextPageClick:g,isNextPageDisabled:f,startRange:y,endRange:b}),(0,a.jsx)(P,{system:T,onClose:()=>N(void 0),onEdit:()=>t.push({pathname:c.Dv,query:{id:D}})})]})},M=()=>(0,a.jsxs)(i.Z,{title:"Data catalog",children:[(0,a.jsx)(n.Z,{heading:"Data catalog",breadcrumbItems:[{title:"All systems"}]}),(0,a.jsx)(U,{})]})},31883:function(e,s,t){"use strict";t.d(s,{Bw:function(){return a.Bw},D4:function(){return a.D4}});var a=t(19043)},34151:function(e){e.exports={advancedSettings:"EditMinimalDataUseModal_advancedSettings___i9jS"}}},function(e){e.O(0,[2858,2866,9278,409,2888,9774,179],function(){return e(e.s=66248)}),_N_E=e.O()}]);
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4231],{66248:function(e,s,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/data-catalog",function(){return t(99375)}])},77213:function(e,s,t){"use strict";t.d(s,{Z:function(){return m}});var a=t(24246),i=t(86920),n=t(88038),l=t.n(n),r=t(86677);t(27378);var o=t(25980),d=t(90867),c=t(77830),u=()=>{let e=(0,r.useRouter)();return(0,a.jsx)(i.xuv,{bg:"gray.50",border:"1px solid",borderColor:"blue.400",borderRadius:"md",justifyContent:"space-between",p:5,mb:5,mt:5,children:(0,a.jsxs)(i.xuv,{children:[(0,a.jsxs)(i.Kqy,{direction:{base:"column",sm:"row"},justifyContent:"space-between",children:[(0,a.jsx)(i.xvT,{fontWeight:"semibold",children:"Configure your storage and messaging provider"}),(0,a.jsx)(i.wpx,{onClick:()=>{e.push(c.fz)},children:"Configure"})]}),(0,a.jsxs)(i.xvT,{children:["Before Fides can process your privacy requests we need two simple steps to configure your storage and email client."," "]})]})})},m=e=>{let{children:s,title:t,padded:n=!0,mainProps:c}=e,m=(0,o.hz)(),p=(0,r.useRouter)(),x="/privacy-requests"===p.pathname||"/datastore-connection"===p.pathname,h=!(m.flags.privacyRequestsConfiguration&&x),{data:j}=(0,d.JE)(void 0,{skip:h}),{data:v}=(0,d.PW)(void 0,{skip:h}),g=m.flags.privacyRequestsConfiguration&&(!j||!v)&&x;return(0,a.jsxs)(i.kCb,{"data-testid":t,direction:"column",h:"100vh",children:[(0,a.jsxs)(l(),{children:[(0,a.jsxs)("title",{children:["Fides Admin UI - ",t]}),(0,a.jsx)("meta",{name:"description",content:"Privacy Engineering Platform"}),(0,a.jsx)("link",{rel:"icon",href:"/favicon.ico"})]}),(0,a.jsxs)(i.kCb,{as:"main",direction:"column",py:n?6:0,px:n?10:0,h:n?"calc(100% - 48px)":"full",flex:1,minWidth:0,overflow:"auto",...c,children:[g?(0,a.jsx)(u,{}):null,s]})]})}},79789:function(e,s,t){"use strict";t.d(s,{Hn:function(){return r},XU:function(){return l},Z5:function(){return o},aG:function(){return u},cB:function(){return n},hX:function(){return c},vQ:function(){return d}});var a=t(24246),i=t(86920);let n=e=>{let{text:s,...t}=e;return(0,a.jsx)(i.X6q,{fontSize:"sm",mt:4,mb:1,...t,children:s})},l=e=>{let{children:s}=e;return(0,a.jsx)(i.xvT,{fontSize:"14px",mb:4,children:s})},r=e=>{let{children:s,href:t}=e;return(0,a.jsx)(i.rUS,{href:t,textDecoration:"underline",isExternal:!0,children:s})},o=e=>{let{children:s}=e;return(0,a.jsx)(i.QI$,{fontSize:"14px",mb:4,children:s})},d=e=>{let{children:s}=e;return(0,a.jsx)(i.GSI,{fontSize:"14px",mb:4,ml:6,children:s})},c=e=>{let{children:s}=e;return(0,a.jsx)(i.EKh,{display:"block",whiteSpace:"pre",p:4,mb:4,overflowX:"scroll",children:s})},u=e=>{let{data:s}=e;return(0,a.jsxs)(i.iA_,{fontSize:"14px",children:[(0,a.jsx)(i.hrZ,{children:(0,a.jsxs)(i.Tr,{children:[(0,a.jsx)(i.Th,{children:"Permission"}),(0,a.jsx)(i.Th,{children:"Description"})]})}),(0,a.jsx)(i.p3B,{children:s.map(e=>(0,a.jsxs)(i.Tr,{children:[(0,a.jsx)(i.Td,{children:(0,a.jsx)(i.Vp9,{children:e.permission})}),(0,a.jsx)(i.Td,{children:e.description})]},e.permission))})]})}},83099:function(e,s,t){"use strict";var a=t(24246),i=t(79283),n=t(34929);s.Z=e=>{let{selectedTaxonomies:s,showDisabled:t=!1,...l}=e,{getDataUseDisplayNameProps:r,getDataUses:o}=(0,n.Z)(),d=(t?o():o().filter(e=>e.active)).filter(e=>!s.includes(e.fides_key)).map(e=>{let{name:s,primaryName:t}=r(e.fides_key);return{value:e.fides_key,name:s,primaryName:t,description:e.description||""}});return(0,a.jsx)(i.l,{options:d,...l})}},97181:function(e,s,t){"use strict";t.d(s,{d:function(){return d}});var a=t(24246),i=t(86920),n=t(34090),l=t(27378),r=t(46238),o=t(40324);let d=e=>{let{name:s,label:t,labelProps:d,tooltip:c,isRequired:u,layout:m="inline",helperText:p,...x}=e,[h,j,{setValue:v}]=(0,n.U$)(s),g=!!(j.touched&&j.error),[f,y]=(0,l.useState)("");h.value||"tags"!==x.mode&&"multiple"!==x.mode||(h.value=[]),"tags"===x.mode&&"string"==typeof h.value&&(h.value=[h.value]);let b="tags"===x.mode?(e,s)=>e?e.value!==f||h.value.includes(f)?x.optionRender?x.optionRender(e,s):e.label:'Create "'.concat(f,'"'):void 0:x.optionRender||void 0,_=e=>{y(e),x.onSearch&&x.onSearch(e)},w=(e,s)=>{v(e),x.onChange&&x.onChange(e,s)};return"inline"===m?(0,a.jsx)(i.NIc,{isInvalid:g,isRequired:u,children:(0,a.jsxs)(i.rjZ,{templateColumns:t?"1fr 3fr":"1fr",children:[t?(0,a.jsx)(o.__,{htmlFor:x.id||s,...d,children:t}):null,(0,a.jsxs)(i.jqI,{align:"center",children:[(0,a.jsxs)(i.jqI,{vertical:!0,flex:1,className:"mr-2",children:[(0,a.jsx)(i.WPr,{...h,id:x.id||s,"data-testid":"controlled-select-".concat(h.name),...x,optionRender:b,onSearch:"tags"===x.mode?_:void 0,onChange:w,value:h.value||void 0,status:g?"error":void 0}),p&&(0,a.jsx)(i.Q6r,{children:p}),(0,a.jsx)(o.Bc,{isInvalid:g,message:j.error,fieldName:h.name})]}),(0,a.jsx)(r.b,{label:c,className:g?"mt-2 self-start":void 0})]})]})}):(0,a.jsx)(i.NIc,{isInvalid:g,isRequired:u,children:(0,a.jsxs)(i.gCW,{alignItems:"start",children:[(0,a.jsxs)(i.jqI,{align:"center",children:[t?(0,a.jsx)(o.__,{htmlFor:x.id||s,fontSize:"xs",my:0,mr:1,...d,children:t}):null,(0,a.jsx)(r.b,{label:c})]}),(0,a.jsx)(i.WPr,{...h,id:x.id||s,"data-testid":"controlled-select-".concat(h.name),...x,optionRender:b,onSearch:"tags"===x.mode?_:void 0,onChange:w,value:h.value||void 0,status:g?"error":void 0}),p&&(0,a.jsx)(i.Q6r,{style:{marginTop:0},children:p}),(0,a.jsx)(o.Bc,{isInvalid:g,message:j.error,fieldName:h.name})]})})}},8133:function(e,s,t){"use strict";var a=t(24246),i=t(86920);s.Z=e=>{let{title:s,children:t,isOpen:n,onClose:l,modalContentProps:r,showCloseButton:o=!1,footer:d,...c}=e;return(0,a.jsxs)(i.u_l,{isOpen:n,onClose:l,isCentered:!0,scrollBehavior:"inside",size:"xl",id:"add-modal",...c,children:[(0,a.jsx)(i.ZAr,{}),(0,a.jsxs)(i.hzk,{textAlign:"left",p:0,"data-testid":"add-modal-content",...r,children:[o&&(0,a.jsx)(i.olH,{}),(0,a.jsx)(i.xBx,{p:0,children:(0,a.jsx)(i.xuv,{backgroundColor:"gray.50",px:6,py:4,border:"1px",borderColor:"gray.200",borderTopRadius:6,display:"flex",justifyContent:"space-between",alignItems:"center",children:(0,a.jsx)(i.X6q,{as:"h3",size:"sm",children:s})})}),(0,a.jsx)(i.fef,{pb:4,overflow:"auto",children:t}),d&&(0,a.jsx)(i.mzw,{children:d})]})]})}},79609:function(e,s,t){"use strict";t.d(s,{N4:function(){return l},UG:function(){return i},xw:function(){return n}});var a=t(54427);let{useGetCatalogSystemsQuery:i,useGetCatalogProjectsQuery:n,useGetCatalogDatasetsQuery:l}=t(78780).u.injectEndpoints({endpoints:e=>({getCatalogSystems:e.query({query:e=>({method:"GET",url:"/plus/data-catalog/system",params:e}),providesTags:["Catalog Systems","System"]}),getCatalogProjects:e.query({query:e=>{let{...s}=e;return{method:"GET",url:"/plus/data-catalog/project",params:s}},providesTags:["Discovery Monitor Results"]}),getCatalogDatasets:e.query({query:e=>{let{...s}=e;return{method:"GET",url:"/plus/data-catalog/dataset",params:s}},providesTags:["Discovery Monitor Results"]})})});(0,a.oM)({name:"dataCatalog",initialState:{page:1,pageSize:50},reducers:{}})},81406:function(e,s,t){"use strict";var a=t(24246),i=t(86920);s.Z=()=>(0,a.jsxs)(i.gCW,{mt:6,p:10,spacing:4,borderRadius:"base",maxW:"70%","data-testid":"empty-state",alignSelf:"center",margin:"auto",children:[(0,a.jsx)(i.xvT,{fontSize:"md",fontWeight:"600",children:"No resources found"}),(0,a.jsx)(i.xvT,{fontSize:"sm",children:"You're up to date!"})]})},3765:function(e,s,t){"use strict";var a=t(86920),i=t(812),n=t(46628),l=t(1315),r=t(31883);s.Z=e=>{let s=(0,a.pmc)(),[t]=(0,l.qQ)(),o=t=>!!e.privacy_declarations.find(e=>e.data_use===t.data_use&&e.name===t.name)&&(s((0,n.Vo)("A declaration already exists with that data use in this system. Please supply a different data use.")),!0),d=(e,t)=>{if((0,r.D4)(e)){let t=(0,i.e$)(e.error,"An unexpected error occurred while updating the system. Please try again.");s((0,n.Vo)(t));return}return s.closeAll(),s((0,n.t5)(t?"Data use deleted":"Data use saved")),e.data.privacy_declarations},c=async(s,a)=>{let i=s.map(e=>{var s;return{...e,name:null!==(s=e.name)&&void 0!==s?s:""}}),n={...e,privacy_declarations:i};return d(await t(n),a)};return{createDataUse:async t=>{if(!o(t))return s.closeAll(),c([...e.privacy_declarations,t])},updateDataUse:async(s,t)=>{if(!(t.id!==s.id&&o(t)))return c(e.privacy_declarations.map(e=>e.id===s.id?t:e))},deleteDataUse:async s=>c(e.privacy_declarations.filter(e=>e.id!==s.id),!0),deleteDeclarationByDataUse:async s=>c(e.privacy_declarations.filter(e=>e.data_use!==s),!0)}}},54748:function(e,s,t){"use strict";var a=t(27378),i=t(68309);s.Z=()=>({legalBasisOptions:(0,a.useMemo)(()=>Object.keys(i.gP).map(e=>({value:i.gP[e],label:i.gP[e]})),[])})},28325:function(e,s,t){"use strict";var a=t(27378),i=t(68309);s.Z=()=>({specialCategoryLegalBasisOptions:(0,a.useMemo)(()=>Object.keys(i.nV).map(e=>({value:i.nV[e],label:i.nV[e]})),[])})},99375:function(e,s,t){"use strict";t.r(s),t.d(s,{default:function(){return M}});var a=t(24246),i=t(77213),n=t(58754),l=t(92222),r=t(59003),o=t(86677),d=t(27378),c=t(77830),u=t(47935),m=t(16394),p=t(79609),x=t(81406),h=t(86920),j=t(79789),v=t(83099),g=t(34929),f=t(34090),y=t(55484),b=t(97181),_=t(40324),w=t(8133),C=t(54748),k=t(28325),R=t(34151),S=t.n(R);let q=y.Ry().shape({data_use:y.Z_().required("Data use is required")});var z=e=>{let{isOpen:s,onClose:t,onSave:i,declaration:n}=e,{getDataUses:l,getDataCategories:r,getDataSubjects:o}=(0,g.Z)(),{isOpen:d,onToggle:c}=(0,h.qY0)(),u=l().map(e=>({label:e.fides_key,value:e.fides_key})),m=r().map(e=>({label:e.fides_key,value:e.fides_key})),p=o().map(e=>({label:e.fides_key,value:e.fides_key})),{legalBasisOptions:x}=(0,C.Z)(),{specialCategoryLegalBasisOptions:j}=(0,k.Z)();return(0,a.jsx)(f.J9,{initialValues:n,enableReinitialize:!0,onSubmit:e=>{i(e),t()},validationSchema:q,children:e=>{let{dirty:i,isValid:n,values:l,resetForm:r}=e;return(0,a.jsx)(w.Z,{title:"Edit data use",isOpen:s,onClose:t,children:(0,a.jsxs)(f.l0,{children:[(0,a.jsxs)(h.jqI,{vertical:!0,className:"gap-6 py-4",children:[(0,a.jsx)(b.d,{name:"data_use",label:"Data use",options:u,layout:"stacked",isRequired:!0}),(0,a.jsx)(b.d,{name:"data_categories",label:"Data categories",options:m,mode:"multiple",layout:"stacked"}),(0,a.jsx)(b.d,{name:"data_subjects",label:"Data subjects",options:p,mode:"multiple",layout:"stacked"}),(0,a.jsx)(_.j0,{name:"name",label:"Declaration name",variant:"stacked"}),(0,a.jsxs)(h.jqI,{vertical:!0,className:"gap-6 p-4 ".concat(S().advancedSettings),children:[(0,a.jsxs)(h.jqI,{className:"cursor-pointer justify-between",onClick:c,children:[(0,a.jsx)(h.xvT,{fontSize:"xs",children:"Advanced settings"}),(0,a.jsx)(h.v4q,{className:d?"rotate-180":void 0})]}),(0,a.jsx)(h.UO1,{in:d,children:(0,a.jsxs)(h.jqI,{vertical:!0,className:"gap-4",children:[(0,a.jsx)(b.d,{name:"legal_basis_for_processing",label:"Legal basis for processing",options:x,layout:"stacked"}),(0,a.jsx)(h.UO1,{in:(null==l?void 0:l.legal_basis_for_processing)==="Legitimate interests",animateOpacity:!0,style:{overflow:"visible"},children:(0,a.jsx)("div",{className:"mt-4",children:(0,a.jsx)(_.j0,{name:"impact_assessment_location",label:"Impact assessment location",tooltip:"Where is the legitimate interest impact assessment stored?",variant:"stacked"})})}),(0,a.jsx)(_.w8,{name:"flexible_legal_basis_for_processing",label:"This legal basis is flexible",tooltip:"Has the vendor declared that the legal basis may be overridden?",variant:"stacked"}),(0,a.jsx)(_.j0,{name:"retention_period",label:"Retention period (days)",tooltip:"How long is personal data retained for this purpose?",variant:"stacked"}),(0,a.jsxs)(h.Kqy,{spacing:0,children:[(0,a.jsx)(_.w8,{name:"processes_special_category_data",label:"This system processes special category data",tooltip:"Is this system processing special category data as defined by GDPR Article 9?",variant:"stacked"}),(0,a.jsx)(h.UO1,{in:null==l?void 0:l.processes_special_category_data,animateOpacity:!0,style:{overflow:"visible"},children:(0,a.jsx)("div",{className:"mt-4",children:(0,a.jsx)(b.d,{isRequired:!0,name:"special_category_legal_basis",label:"Legal basis for processing",options:j,tooltip:"What is the legal basis under which the special category data is processed?",layout:"stacked"})})})]})]})})]})]}),(0,a.jsxs)("div",{className:"flex w-full justify-between",children:[(0,a.jsx)(h.wpx,{onClick:()=>{r(),t()},children:"Cancel"}),(0,a.jsx)(h.wpx,{type:"primary",htmlType:"submit",disabled:!i||!n,loading:!1,"data-testid":"save-btn",children:"Save"})]})]})})}})},D=t(26183),N=t(3765);let T=e=>({data_use:e,data_categories:["system"]});var I=e=>{var s,t;let{system:i}=e,[n,l]=(0,d.useState)(!1),[r,o]=(0,d.useState)(void 0),{getDataUseDisplayName:c}=(0,g.Z)(),{isOpen:u,onOpen:m,onClose:p}=(0,h.qY0)(),x=e=>{o(e),m()},{createDataUse:j,deleteDeclarationByDataUse:f,updateDataUse:y}=(0,N.Z)(i),b=null!==(t=null===(s=i.privacy_declarations)||void 0===s?void 0:s.map(e=>e.data_use))&&void 0!==t?t:[];return(0,a.jsxs)(D.Z,{children:[!n&&(0,a.jsxs)(a.Fragment,{children:[b.map((e,s)=>(0,a.jsxs)(h.j8w,{"data-testid":"data-use-".concat(e),color:"white",onClick:()=>x(i.privacy_declarations[s]),closable:!0,onClose:()=>f(e),closeButtonLabel:"Remove data use",children:[(0,a.jsx)(h.PJP.I8b,{size:10}),c(e)]},e)),(0,a.jsx)(h.j8w,{onClick:()=>l(!0),"data-testid":"taxonomy-add-btn",addable:!0,"aria-label":"Add data use"}),(0,a.jsx)(z,{isOpen:u,onClose:p,onSave:e=>y(r,e),declaration:r})]}),n&&(0,a.jsx)(h.xuv,{className:"select-wrapper",position:"absolute",zIndex:10,top:"0",left:"0",width:"100%",height:"max",bgColor:"#fff",children:(0,a.jsx)(v.Z,{onChange:e=>{j(T(e)),l(!1)},selectedTaxonomies:b,onBlur:()=>l(!1),open:!0})})]})},P=e=>{var s;let{system:t,onEdit:i,onClose:n}=e;return(0,a.jsxs)(h.dys,{isOpen:!!t,onClose:n,size:"md",children:[(0,a.jsx)(h.P1B,{}),(0,a.jsxs)(h.scA,{"data-testid":"system-details",children:[(0,a.jsx)(h.OXI,{children:(null==t?void 0:t.name)||(null==t?void 0:t.fides_key)}),(0,a.jsx)(h.cCv,{}),(0,a.jsxs)(h.Ng0,{children:[(0,a.jsx)(j.cB,{text:"Title",mt:0}),(0,a.jsx)(j.XU,{children:null!==(s=null==t?void 0:t.name)&&void 0!==s?s:null==t?void 0:t.fides_key}),(null==t?void 0:t.description)&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(j.cB,{text:"Description"}),(0,a.jsx)(j.XU,{children:null==t?void 0:t.description})]}),(0,a.jsx)(j.cB,{text:"Data uses"}),(0,a.jsx)(I,{system:t})]}),(0,a.jsx)(h.zeN,{children:(0,a.jsx)(h.wpx,{onClick:i,"data-testid":"edit-system-btn",children:"Edit system"})})]})]})},Z=e=>{let{onDetailClick:s}=e;return(0,a.jsxs)(h.v2r,{children:[(0,a.jsx)(h.j2t,{as:h.wpx,size:"small",type:"text",className:"max-w-4",icon:(0,a.jsx)(h.nXP,{transform:"rotate(90deg)",ml:2}),"data-testid":"system-actions-menu"}),(0,a.jsx)(h.qyq,{children:s&&(0,a.jsx)(h.sNh,{onClick:s,"data-testid":"view-system-details",children:"View details"})})]})},E=t(70675);let B={items:[],total:0,page:1,size:50,pages:1},O=(0,l.Cl)();var U=()=>{let[e,s]=(0,d.useState)({}),t=(0,o.useRouter)(),{PAGE_SIZES:i,pageSize:n,setPageSize:h,onPreviousPageClick:j,isPreviousPageDisabled:v,onNextPageClick:g,isNextPageDisabled:f,startRange:y,endRange:b,pageIndex:_,setTotalPages:w}=(0,u.oi)(),{data:C,isLoading:k}=(0,p.UG)({page:_,size:n,show_hidden:!1}),[R]=(0,E.j3)(),{items:S,total:q,pages:z}=(0,d.useMemo)(()=>null!=C?C:B,[C]);(0,d.useEffect)(()=>{w(z)},[z,w]);let[D,N]=(0,d.useState)(void 0),T=(0,d.useMemo)(()=>S.find(e=>e.fides_key===D),[S,D]),U=async e=>{var s,a;let i=await R({connection_config_key:e.connection_configs.key,page:1,size:1}),n=!!(null==i?void 0:null===(s=i.data)||void 0===s?void 0:s.total),l=(0,m.du)(null!==(a=e.monitor_config_keys)&&void 0!==a?a:[],"monitor_config_ids"),r="".concat(c.mX,"/").concat(e.fides_key,"/").concat(n?"projects":"resources","?").concat(l);t.push(r)},M=(0,d.useMemo)(()=>[O.accessor(e=>e.name,{id:"name",cell:e=>{var s;let{getValue:t,row:i}=e;return(0,a.jsx)(u.G3,{value:t(),fontWeight:(null===(s=i.original.connection_configs)||void 0===s?void 0:s.key)?"semibold":"normal"})},header:e=>(0,a.jsx)(u.Rr,{value:"Name",...e})}),O.display({id:"data-uses",cell:e=>{let{row:s}=e;return(0,a.jsx)(I,{system:s.original})},header:e=>(0,a.jsx)(u.Rr,{value:"Data uses",...e}),meta:{disableRowClick:!0},minSize:280}),O.display({id:"actions",cell:e=>(0,a.jsx)(Z,{onDetailClick:()=>N(e.row.original.fides_key)}),maxSize:20,enableResizing:!1,meta:{cellProps:{borderLeft:"none"},disableRowClick:!0}})],[]),A=(0,r.b7)({getCoreRowModel:(0,l.sC)(),getGroupedRowModel:(0,l.qe)(),getExpandedRowModel:(0,l.rV)(),getRowId:e=>e.fides_key,manualPagination:!0,columnResizeMode:"onChange",columns:M,data:S,onRowSelectionChange:s,state:{rowSelection:e}});return k?(0,a.jsx)(u.I4,{rowHeight:36,numRows:36}):(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(u.ZK,{tableInstance:A,emptyTableNotice:(0,a.jsx)(x.Z,{}),onRowClick:U,getRowIsClickable:e=>{var s;return!!(null===(s=e.connection_configs)||void 0===s?void 0:s.key)}}),(0,a.jsx)(u.s8,{totalRows:q||0,pageSizes:i,setPageSize:h,onPreviousPageClick:j,isPreviousPageDisabled:v,onNextPageClick:g,isNextPageDisabled:f,startRange:y,endRange:b}),(0,a.jsx)(P,{system:T,onClose:()=>N(void 0),onEdit:()=>t.push({pathname:c.Dv,query:{id:D}})})]})},M=()=>(0,a.jsxs)(i.Z,{title:"Data catalog",children:[(0,a.jsx)(n.Z,{heading:"Data catalog",breadcrumbItems:[{title:"All systems"}]}),(0,a.jsx)(U,{})]})},31883:function(e,s,t){"use strict";t.d(s,{Bw:function(){return a.Bw},D4:function(){return a.D4}});var a=t(19043)},34151:function(e){e.exports={advancedSettings:"EditMinimalDataUseModal_advancedSettings___i9jS"}}},function(e){e.O(0,[2858,2866,9278,409,2888,9774,179],function(){return e(e.s=66248)}),_N_E=e.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4154],{58095:function(e,t,s){var n=s(8817);e.exports=function(e,t){return!!(null==e?0:e.length)&&n(e,t,0)>-1}},21796:function(e){e.exports=function(e,t,s){for(var n=-1,r=null==e?0:e.length;++n<r;)if(s(t,e[n]))return!0;return!1}},8817:function(e,t,s){var n=s(95372),r=s(1129),i=s(58263);e.exports=function(e,t,s){return t==t?i(e,t,s):n(e,r,s)}},1129:function(e){e.exports=function(e){return e!=e}},92198:function(e,t,s){var n=s(52485),r=s(58095),i=s(21796),a=s(65581),o=s(47111),l=s(43735);e.exports=function(e,t,s){var d=-1,c=r,u=e.length,m=!0,g=[],v=g;if(s)m=!1,c=i;else if(u>=200){var y=t?null:o(e);if(y)return l(y);m=!1,c=a,v=new n}else v=t?[]:g;e:for(;++d<u;){var h=e[d],p=t?t(h):h;if(h=s||0!==h?h:0,m&&p==p){for(var f=v.length;f--;)if(v[f]===p)continue e;t&&v.push(p),g.push(h)}else c(v,p,s)||(v!==g&&v.push(p),g.push(h))}return g}},47111:function(e,t,s){var n=s(46151),r=s(50344),i=s(43735),a=n&&1/i(new n([,-0]))[1]==1/0?function(e){return new n(e)}:r;e.exports=a},58263:function(e){e.exports=function(e,t,s){for(var n=s-1,r=e.length;++n<r;)if(e[n]===t)return n;return -1}},50344:function(e){e.exports=function(){}},83766:function(e,t,s){var n=s(92198);e.exports=function(e){return e&&e.length?n(e):[]}},25654:function(e,t,s){(window.__NEXT_P=window.__NEXT_P||[]).push(["/data-discovery/action-center/[monitorId]/[systemId]",function(){return s(52641)}])},66379:function(e,t,s){"use strict";var n=s(24246),r=s(86920),i=s(7617);t.Z=e=>{let{data:t,border:s="partial",borderWidth:a=2,...o}=e;return(0,n.jsx)(r.mQc,{colorScheme:"complimentary",...o,children:(0,n.jsx)(r.tdY,{width:"partial"===s?"max-content":void 0,borderBottomWidth:a,children:t.map(e=>(0,n.jsx)(i.q,{label:e.label,"data-testid":e.label,isDisabled:e.isDisabled,fontSize:o.fontSize},e.label))})})}},35287:function(e,t,s){"use strict";var n=s(24246),r=s(86920),i=s(88038),a=s.n(i);s(27378),t.Z=e=>{let{children:t,title:s,mainProps:i}=e;return(0,n.jsxs)(r.kCb,{"data-testid":s,direction:"column",height:"calc(100vh - 48px)",width:"calc(100vw - 240px)",children:[(0,n.jsxs)(a(),{children:[(0,n.jsxs)("title",{children:["Fides Admin UI - ",s]}),(0,n.jsx)("meta",{name:"description",content:"Privacy Engineering Platform"}),(0,n.jsx)("link",{rel:"icon",href:"/favicon.ico"})]}),(0,n.jsx)(r.kCb,{px:10,py:6,as:"main",overflow:"auto",direction:"column",flex:1,minWidth:0,...i,children:t})]})}},14047:function(e,t,s){"use strict";s.d(t,{H:function(){return i},V:function(){return n.V}});var n=s(84306),r=s(812);let i=()=>{let{errorAlert:e}=(0,n.V)();return{handleError:t=>{let s="An unexpected error occurred. Please try again.";(0,r.Ot)(t)?s=t.data.detail:(0,r.tB)(t)&&(s=t.data.detail[0].msg),e(s)}}}},84306:function(e,t,s){"use strict";s.d(t,{V:function(){return i}});var n=s(24246),r=s(86920);let i=()=>{let e=(0,r.pmc)();return{errorAlert:(t,s,i)=>{let a={...i,position:(null==i?void 0:i.position)||"top",render:e=>{let{onClose:i}=e;return(0,n.jsxs)(r.bZj,{alignItems:"normal",status:"error","data-testid":"error-alert",children:[(0,n.jsx)(r.zMQ,{}),(0,n.jsxs)(r.xuv,{children:[s&&(0,n.jsx)(r.CdC,{children:s}),(0,n.jsx)(r.XaZ,{children:t})]}),(0,n.jsx)(r.PZ7,{onClick:i,position:"relative",right:0,size:"sm",top:-1})]})}};(null==i?void 0:i.id)&&e.isActive(i.id)?e.update(i.id,a):e(a)},successAlert:(t,s,i)=>{let a={...i,position:(null==i?void 0:i.position)||"top",render:e=>{let{onClose:i}=e;return(0,n.jsxs)(r.bZj,{alignItems:"normal",status:"success",variant:"subtle","data-testid":"success-alert",children:[(0,n.jsx)(r.zMQ,{}),(0,n.jsxs)(r.xuv,{children:[s&&(0,n.jsx)(r.CdC,{children:s}),(0,n.jsx)(r.XaZ,{children:t})]}),(0,n.jsx)(r.PZ7,{onClick:i,position:"relative",right:0,size:"sm",top:-1})]})}};(null==i?void 0:i.id)&&e.isActive(i.id)?e.update(i.id,a):e(a)}}}},45938:function(e,t,s){"use strict";s.d(t,{Gt:function(){return m},eB:function(){return g},oI:function(){return u}});var n=s(24246),r=s(34090),i=s(27378),a=s(16134),o=s(38602),l=s(58452);let d=(0,i.createRef)(),c=(0,i.createRef)(),u=()=>{let e=(0,a.T)(),t=(0,a.C)(o.DB),s=(0,i.useCallback)(()=>{c.current=void 0,d.current=void 0},[]),n=(0,i.useCallback)(()=>{e((0,o.Mr)()),c.current&&(c.current(!0),s())},[e,s]),r=(0,i.useCallback)(()=>{e((0,o.Mr)()),c.current&&(c.current(!1),s())},[e,s]);return{attemptAction:(0,i.useCallback)(()=>t?(e((0,o.h7)()),d.current||(d.current=new Promise(e=>{c.current=e})),d.current):Promise.resolve(!0),[t,e]),onConfirm:n,onClose:r}},m=e=>{let{id:t,name:s}=e,{dirty:n}=(0,r.u6)(),l=(0,a.T)();return(0,i.useEffect)(()=>(l((0,o.Zu)({id:t,name:s})),()=>{l((0,o.dz)({id:t}))}),[l,t,s]),(0,i.useEffect)(()=>{l((0,o.$p)({id:t,isDirty:n}))},[n,l,t]),null},g=()=>{let{onConfirm:e,onClose:t}=u(),s=(0,a.C)(o.uv);return(0,n.jsx)(l.Z,{isOpen:s,onClose:t,onConfirm:e,isCentered:!0,title:"Unsaved Changes",message:"You have unsaved changes"})}},37059:function(e,t,s){"use strict";s.d(t,{Ak:function(){return y},EY:function(){return u},Tj:function(){return g},Ud:function(){return a},Vr:function(){return h},WJ:function(){return l},nP:function(){return c},nS:function(){return m},rs:function(){return d},sX:function(){return v},wi:function(){return o}});var n=s(78780),r=s(16394),i=s(68309);let{useGetAggregateMonitorResultsQuery:a,useGetDiscoveredSystemAggregateQuery:o,useGetDiscoveredAssetsQuery:l,useAddMonitorResultSystemsMutation:d,useIgnoreMonitorResultSystemsMutation:c,useAddMonitorResultAssetsMutation:u,useIgnoreMonitorResultAssetsMutation:m,useRestoreMonitorResultAssetsMutation:g,useUpdateAssetsSystemMutation:v,useUpdateAssetsDataUseMutation:y,useUpdateAssetsMutation:h}=n.u.injectEndpoints({endpoints:e=>({getAggregateMonitorResults:e.query({query:e=>{let{page:t=1,size:s=20,search:n}=e;return{url:"/plus/discovery-monitor/aggregate-results",params:{page:t,size:s,search:n,diff_status:"addition"}}},providesTags:["Discovery Monitor Results"]}),getDiscoveredSystemAggregate:e.query({query:e=>{let{key:t,page:s=1,size:n=20,search:r,diff_status:i}=e;return{url:"/plus/discovery-monitor/system-aggregate-results",params:{monitor_config_id:t,page:s,size:n,search:r,diff_status:i}}},providesTags:["Discovery Monitor Results"]}),getDiscoveredAssets:e.query({query:e=>{let{key:t,system:s,page:n=1,size:r=20,search:i,diff_status:a}=e;return{url:"/plus/discovery-monitor/".concat(t,"/results"),params:{resolved_system_id:s,page:n,size:r,search:i,diff_status:a,sort_by:"urn"}}},providesTags:()=>["Discovery Monitor Results"]}),addMonitorResultSystems:e.mutation({query:e=>{let{monitor_config_key:t,resolved_system_ids:s}=e,n=(0,r.du)(s,"resolved_system_ids");return{method:"POST",url:"/plus/discovery-monitor/".concat(t,"/promote?").concat(n)}},invalidatesTags:["Discovery Monitor Results"]}),ignoreMonitorResultSystems:e.mutation({query:e=>{let{monitor_config_key:t,resolved_system_ids:s}=e,n=(0,r.du)(s,"resolved_system_ids");return{method:"POST",url:"/plus/discovery-monitor/".concat(t,"/mute?").concat(n)}},invalidatesTags:["Discovery Monitor Results"]}),addMonitorResultAssets:e.mutation({query:e=>{var t;let s=new URLSearchParams;return null===(t=e.urnList)||void 0===t||t.forEach(e=>s.append("staged_resource_urns",e)),{method:"POST",url:"/plus/discovery-monitor/promote?".concat(s)}},invalidatesTags:["Discovery Monitor Results"]}),ignoreMonitorResultAssets:e.mutation({query:e=>{var t;let s=new URLSearchParams;return null===(t=e.urnList)||void 0===t||t.forEach(e=>s.append("staged_resource_urns",e)),{method:"POST",url:"/plus/discovery-monitor/mute?".concat(s)}},invalidatesTags:["Discovery Monitor Results"]}),restoreMonitorResultAssets:e.mutation({query:e=>{var t;let s=new URLSearchParams({status_to_set:i.LL.ADDITION});return null===(t=e.urnList)||void 0===t||t.forEach(e=>s.append("staged_resource_urns",e)),{method:"POST",url:"/plus/discovery-monitor/un-mute?".concat(s)}},invalidatesTags:["Discovery Monitor Results"]}),updateAssetsSystem:e.mutation({query:e=>({method:"PATCH",url:"/plus/discovery-monitor/".concat(e.monitorId,"/results"),body:e.urnList.map(t=>({urn:t,user_assigned_system_key:e.systemKey}))}),invalidatesTags:["Discovery Monitor Results","System Assets"]}),updateAssetsDataUse:e.mutation({query:e=>({method:"PATCH",url:"/plus/discovery-monitor/".concat(e.monitorId,"/results"),body:e.urnList.map(t=>({urn:t,user_assigned_data_uses:e.dataUses}))}),invalidatesTags:["Discovery Monitor Results"]}),updateAssets:e.mutation({query:e=>({method:"PATCH",url:"/plus/discovery-monitor/".concat(e.monitorId,"/results"),body:e.assets}),invalidatesTags:["Discovery Monitor Results"]})})})},90057:function(e,t,s){"use strict";s.d(t,{T:function(){return d}});var n=s(86677),r=s(27378),i=s(68309);let a={ATTENTION_REQUIRED:{index:0,hash:"#attention-required"},RECENT_ACTIVITY:{index:1,hash:"#recent-activity"},IGNORED:{index:2,hash:"#ignored"}},o=e=>{let t=e.startsWith("#")?e:"#".concat(e);return Object.values(a).find(e=>e.hash===t)},l=e=>Object.values(a).find(t=>t.index===e),d=e=>{var t;return null===(t=o(e))||void 0===t?void 0:t.index};t.Z=e=>{var t;let{systemId:s,initialHash:d}=e,c=(0,n.useRouter)(),[u,m]=(0,r.useState)(d?null===(t=o(d))||void 0===t?void 0:t.index:a.ATTENTION_REQUIRED.index),g=(0,r.useCallback)(async e=>{if(m(e),c.isReady){let t=l(e);if(t){let e={...c.query};await c.replace({pathname:c.pathname,query:e,hash:t.hash},void 0,{shallow:!0})}}},[c]),v=[{label:"Attention required",params:{diff_status:[i.LL.ADDITION],system:s}},{label:"Recent activity",params:{diff_status:[i.LL.MONITORED]}},{label:"Ignored",params:{diff_status:[i.LL.MUTED],system:s}}],{diff_status:y,system:h}=v[u].params,p=y.includes(i.LL.MONITORED);return{filterTabs:v,filterTabIndex:u,onTabChange:g,activeParams:s?{diff_status:y,system:h}:{diff_status:y},actionsDisabled:p}}},78238:function(e,t,s){"use strict";s.d(t,{g:function(){return n}});let n=["essential","functional.service.improve","personalize","analytics","marketing.advertising.first_party.targeted","marketing.advertising.third_party.targeted"];t.Z=e=>n.includes(e)},96107:function(e,t,s){"use strict";s.d(t,{u:function(){return i}});var n=s(24246),r=s(26089);let i=(e,t)=>(0,n.jsxs)(n.Fragment,{children:[e," ",t&&(0,n.jsx)(r.Z,{onClick:t,children:"View"})]})},52641:function(e,t,s){"use strict";s.r(t),s.d(t,{default:function(){return F}});var n=s(24246),r=s(86677),i=s(27378),a=s(35287),o=s(77830),l=s(58754),d=s(59003),c=s(92222),u=s(86920),m=s(83766),g=s.n(m),v=s(66379),y=s(812),h=s(47935),p=s(46628),f=s(37059),x=s(8133),j=s(79283),_=s(34929),b=s(78238),w=e=>{let{selectedTaxonomies:t,...s}=e,{getDataUseDisplayNameProps:r,getDataUses:i}=(0,_.Z)(),a=i().filter(e=>e.active&&b.g.includes(e.fides_key)).map(e=>{let{name:t,primaryName:s}=r(e.fides_key);return{value:e.fides_key,name:t,primaryName:s,description:e.description||""}});return(0,n.jsx)(j.l,{options:a,...s})};let{Text:C}=u.AntTypography;var S=e=>{let{onSave:t,isSaving:s,onClose:r,...a}=e,[o,l]=(0,i.useState)([]),d=()=>{l([]),r()};return(0,n.jsxs)(x.Z,{title:"Add consent category",...a,onClose:d,children:[(0,n.jsxs)(u.jqI,{vertical:!0,gap:20,className:"pb-6 pt-4",children:[(0,n.jsx)(C,{children:"Assign consent categories to selected assets. This configures the system for consent management. Consent categories apply to both individual assets and the system."}),(0,n.jsx)(w,{mode:"tags",selectedTaxonomies:o,onSelect:(e,t)=>l([...o,t.value]),variant:"outlined"})]}),(0,n.jsxs)(u.jqI,{justify:"space-between",children:[(0,n.jsx)(u.wpx,{htmlType:"reset",onClick:d,"data-testid":"cancel-btn",children:"Cancel"}),(0,n.jsx)(u.wpx,{htmlType:"submit",type:"primary",disabled:!o.length,loading:s,onClick:()=>{t(o),d()},"data-testid":"save-btn",children:"Save"})]})]})},k=s(90057),R=s(96107),T=s(68309),A=s(30952),I=s(29850),D=s(77685);let{Text:P}=u.AntTypography,L=e=>{let{onSave:t,isSaving:s,...r}=e,[a,o]=(0,i.useState)(),[l,d]=(0,i.useState)(!1),c=(0,i.useCallback)(e=>{e.preventDefault(),d(!0)},[]),m=()=>{d(!1)},g=()=>{o(void 0),r.onClose()};return(0,n.jsxs)(x.Z,{title:"Assign system",...r,onClose:g,children:[(0,n.jsxs)(u.jqI,{vertical:!0,gap:20,className:"pb-6 pt-4",children:[(0,n.jsx)(P,{children:"Assign a system to the selected assets. If no system exists, select 'Add new system' to create one."}),(0,n.jsx)(I.R,{placeholder:"Search or select...",onSelect:(e,t)=>{o(t)},onAddSystem:c,value:a})]})," ",(0,n.jsxs)(u.jqI,{justify:"space-between",children:[(0,n.jsx)(u.wpx,{htmlType:"reset",onClick:g,"data-testid":"cancel-btn",children:"Cancel"}),(0,n.jsx)(u.wpx,{htmlType:"submit",type:"primary",disabled:!a,loading:s,onClick:()=>{t(a),g()},"data-testid":"save-btn",children:"Save"})]}),l&&(0,n.jsx)(D.i,{isOpen:!0,onClose:m,onSuccessfulSubmit:(e,t)=>{m(),o({label:t,value:e})},toastOnSuccess:!0})]})};var E=s(8411),M=s(72625);let Z=e=>{let{asset:t,onTabChange:s}=e,[i,{isLoading:a}]=(0,f.EY)(),[l,{isLoading:d}]=(0,f.nS)(),[c,{isLoading:m}]=(0,f.Tj)(),g=(0,u.pmc)(),v=(0,r.useRouter)(),h=a||d||m,{urn:x,name:j,resource_type:_,diff_status:b,system_key:w,user_assigned_system_key:C}=t,S=async()=>{let e=await i({urnList:[x]});if((0,y.D4)(e))g((0,p.Vo)((0,y.e$)(e.error)));else{var t,s;let n=(null===(s=e.data)||void 0===s?void 0:null===(t=s[0])||void 0===t?void 0:t.promoted_system_key)||C||w,r="".concat(o.So,"/configure/").concat(n,"#assets");g((0,p.t5)((0,R.u)("".concat(_,' "').concat(j,'" has been added to the system inventory.'),n?()=>v.push(r):void 0)))}},A=async()=>{let e=await l({urnList:[x]});(0,y.D4)(e)?g((0,p.Vo)((0,y.e$)(e.error))):g((0,p.t5)((0,R.u)("".concat(_,' "').concat(j,'" has been ignored and will not appear in future scans.'),()=>s((0,k.T)("#ignored")))))},I=async()=>{let e=await c({urnList:[x]});(0,y.D4)(e)?g((0,p.Vo)((0,y.e$)(e.error))):g((0,p.t5)("".concat(_,' "').concat(j,'" is no longer ignored and will appear in future scans.')))};return(0,n.jsxs)(u.vyj,{children:[b!==T.LL.MUTED&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(u.esZ,{title:t.system?void 0:"This asset requires a system before you can add it to the inventory.",children:(0,n.jsx)(u.wpx,{"data-testid":"add-btn",size:"small",onClick:S,disabled:!t.system||h,loading:a,children:"Add"})}),(0,n.jsx)(u.wpx,{"data-testid":"ignore-btn",size:"small",onClick:A,disabled:h,loading:d,children:"Ignore"})]}),b===T.LL.MUTED&&(0,n.jsx)(u.wpx,{"data-testid":"restore-btn",size:"small",onClick:I,disabled:h,loading:m,children:"Restore"})]})};var q=s(14047),z=s(26183),O=s(31883),N=e=>{var t;let{asset:s,readonly:r}=e,[a,o]=(0,i.useState)(!1),[l]=(0,f.Ak)(),{successAlert:d,errorAlert:c}=(0,q.V)(),{getDataUseDisplayName:m}=(0,_.Z)(),g=s.user_assigned_data_uses||s.data_uses||[],v=async e=>{let t=await l({monitorId:s.monitor_config_id,urnList:[s.urn],dataUses:[...g,e]});(0,O.D4)(t)?c((0,y.e$)(t.error)):d("Consent category added to ".concat(s.resource_type,' "').concat(s.name,'" .'),"Confirmed"),o(!1)},h=async e=>{let t=await l({monitorId:s.monitor_config_id,urnList:[s.urn],dataUses:g.filter(t=>t!==e)});(0,O.D4)(t)?c((0,y.e$)(t.error)):d("Consent category removed from ".concat(s.resource_type,' "').concat(s.name,'".'),"Confirmed")},p=(null===(t=s.user_assigned_data_uses)||void 0===t?void 0:t.length)?s.user_assigned_data_uses:s.data_uses,x=null==p?void 0:p.filter(e=>(0,b.Z)(e));return r?(0,n.jsx)(z.Z,{children:null==x?void 0:x.map(e=>(0,n.jsx)(u.j8w,{color:"white",children:m(e)},e))}):(0,n.jsxs)(z.Z,{children:[!a&&(0,n.jsxs)(n.Fragment,{children:[null==x?void 0:x.map(e=>(0,n.jsx)(u.j8w,{"data-testid":"data-use-".concat(e),color:"white",closable:!0,onClose:()=>h(e),closeButtonLabel:"Remove data use",children:m(e)},e)),(0,n.jsx)(u.j8w,{onClick:()=>o(!0),"data-testid":"taxonomy-add-btn",addable:!0,"aria-label":"Add data use"})]}),a&&(0,n.jsx)(u.xuv,{className:"select-wrapper",position:"absolute",zIndex:10,top:"0",left:"0",width:"100%",height:"max",bgColor:"#fff",children:(0,n.jsx)(w,{selectedTaxonomies:x||[],onSelect:v,onBlur:()=>o(!1),open:!0})})]})},V=s(43862),U=s(70675);let $=e=>{let{aggregateSystem:t,monitorConfigId:s,readonly:r}=e,{resource_type:a,name:o,urn:l,system:d,user_assigned_system_key:c,system_key:m}=t,[g,v]=(0,i.useState)(!1),[h,p]=(0,i.useState)(!1),[f,{isLoading:x}]=(0,U.NA)(),{successAlert:j,errorAlert:_}=(0,q.V)(),b=(0,i.useCallback)(e=>{e.preventDefault(),p(!0)},[]),w=async(e,t,n)=>{let r=await f({staged_resource_urn:l,monitor_config_id:s,user_assigned_system_key:e});(0,y.D4)(r)?_((0,y.e$)(r.error)):j(n?"".concat(t," has been added to your system inventory and the ").concat(a,' "').concat(o,'" has been assigned to that system.'):"".concat(a,' "').concat(o,'" has been assigned to ').concat(t,"."),"Confirmed"),v(!1)};return r?(0,n.jsx)("div",{style:(0,V.J9)(),children:(0,n.jsx)(u.j8w,{"data-testid":"system-badge",color:"white",children:d})}):(0,n.jsxs)(n.Fragment,{children:[!g&&(0,n.jsx)("div",{style:(0,V.J9)(),children:d?(0,n.jsxs)(u.j8w,{onClick:()=>v(!0),"data-testid":"system-badge",children:[d,(0,n.jsx)(u.PJP.I8b,{})]}):(0,n.jsx)(u.j8w,{onClick:()=>v(!0),"data-testid":"add-system-btn",addable:!0})}),!!g&&(0,n.jsx)(I.R,{variant:"borderless",className:"w-full",autoFocus:!0,defaultOpen:!0,defaultValue:c||m,onBlur:e=>{var t;(null===(t=e.relatedTarget)||void 0===t?void 0:t.getAttribute("id"))!=="add-new-system"&&v(!1)},onAddSystem:b,onSelect:(e,t)=>w(e,t.label),loading:x}),h&&(0,n.jsx)(D.i,{isOpen:!0,onClose:()=>{p(!1)},onSuccessfulSubmit:(e,t)=>w(e,t,!0)})]})},H=e=>{let{readonly:t,onTabChange:s}=e,r=(0,c.Cl)(),i=[r.accessor(e=>e.name,{id:"name",cell:e=>(0,n.jsx)(h.G3,{value:e.getValue()}),header:"Asset",size:300,meta:{headerProps:t?void 0:{paddingLeft:"0px"},cellProps:t?void 0:{padding:"0 !important"}}}),r.accessor(e=>e.resource_type,{id:"resource_type",cell:e=>(0,n.jsx)(h.G3,{value:e.getValue()}),header:"Type"}),r.accessor(e=>e.system,{id:"system",cell:e=>!!e.row.original.monitor_config_id&&(0,n.jsx)($,{aggregateSystem:e.row.original,monitorConfigId:e.row.original.monitor_config_id,readonly:t}),header:"System",size:200,meta:{noPadding:!0}}),r.display({id:"data_use",cell:e=>(0,n.jsx)(N,{asset:e.row.original,readonly:t}),header:"Categories of consent",size:400,meta:{disableRowClick:!0}}),r.accessor(e=>e.locations,{id:"locations",cell:e=>(0,n.jsx)(M.mb,{values:e.getValue().map(e=>{var t;return{label:null!==(t=E.Z8[e])&&void 0!==t?t:e,key:e}}),cellProps:e}),header:e=>(0,n.jsx)(M.Rr,{value:"Locations",...e}),size:300,meta:{showHeaderMenu:!0,disableRowClick:!0}}),r.accessor(e=>e.domain,{id:"domain",cell:e=>(0,n.jsx)(h.G3,{value:e.getValue()}),header:e=>(0,n.jsx)(M.Rr,{value:"Domain",...e})}),r.accessor(e=>e.page,{id:"page",cell:e=>(0,n.jsx)(M.tc,{values:e.getValue(),valueSuffix:"pages",cellProps:e}),header:e=>(0,n.jsx)(M.Rr,{value:"Detected on",...e}),meta:{showHeaderMenu:!0,disableRowClick:!0}})];return t?{columns:i}:{columns:[r.display({id:"select",cell:e=>{let{row:t}=e;return(0,n.jsx)(h.k,{isChecked:t.getIsSelected(),onChange:t.getToggleSelectedHandler(),dataTestId:"select-".concat(t.original.name||t.id)})},header:e=>{let{table:t}=e;return(0,n.jsx)(h.k,{isChecked:t.getIsAllPageRowsSelected(),isIndeterminate:t.getIsSomeRowsSelected(),onChange:t.getToggleAllRowsSelectedHandler(),dataTestId:"select-all-rows"})},maxSize:40,meta:{cellProps:{borderRight:"none"}}}),...i,r.display({id:"actions",cell:e=>(0,n.jsx)(Z,{asset:e.row.original,onTabChange:s}),header:"Actions",meta:{disableRowClick:!0}})]}},B=e=>{let{monitorId:t,systemId:s,onSystemName:a}=e,l=(0,r.useRouter)(),m=l.asPath.split("#")[1],[x,j]=(0,i.useState)(s),[_,b]=(0,i.useState)({}),[w,C]=(0,i.useState)(!1),[I,D]=(0,i.useState)(!1),[P,{isLoading:E}]=(0,f.EY)(),[M,{isLoading:Z}]=(0,f.nS)(),[q,{isLoading:z}]=(0,f.rs)(),[O,{isLoading:N}]=(0,f.sX)(),[V,{isLoading:U}]=(0,f.Vr)(),[$,{isLoading:B}]=(0,f.Tj)(),F=E||Z||z||N||B,J=F||s===o.Kl,{PAGE_SIZES:K,pageSize:W,setPageSize:G,onPreviousPageClick:Q,isPreviousPageDisabled:X,onNextPageClick:Y,isNextPageDisabled:ee,startRange:et,endRange:es,pageIndex:en,setTotalPages:er,resetPageIndexToDefault:ei}=(0,h.oi)(),[ea,eo]=(0,i.useState)(""),el=(0,u.pmc)(),{filterTabs:ed,filterTabIndex:ec,onTabChange:eu,activeParams:em,actionsDisabled:eg}=(0,k.Z)({systemId:s,initialHash:m});(0,i.useEffect)(()=>{ei()},[t,ea,ec,ei]);let{data:ev,isLoading:ey,isFetching:eh}=(0,f.WJ)({key:t,page:en,size:W,search:ea,...em});(0,i.useEffect)(()=>{if(ev){var e,t;let n=(null===(e=ev.items[0])||void 0===e?void 0:e.system)||x||s||"";er(null!==(t=ev.pages)&&void 0!==t?t:1),j(n),null==a||a(n)}},[ev,s,a,er,x]);let{columns:ep}=H({readonly:eg,onTabChange:eu}),ef=(0,d.b7)({getCoreRowModel:(0,c.sC)(),columns:ep,manualPagination:!0,data:(null==ev?void 0:ev.items)||[],columnResizeMode:"onChange",onRowSelectionChange:b,getRowId:e=>e.urn,state:{rowSelection:_}}),ex=ef.getSelectedRowModel().rows.map(e=>e.original.urn),ej=async()=>{var e,t,s,n,r;let i=await P({urnList:ex}),a=null!==(r=null==ev?void 0:ev.items.filter(e=>ex.includes(e.urn)))&&void 0!==r?r:[],d=(null===(e=a[0])||void 0===e?void 0:e.user_assigned_system_key)||(null===(t=a[0])||void 0===t?void 0:t.system_key),c=a.every(e=>(e.user_assigned_system_key||e.system_key)===d),u=null===(n=i.data)||void 0===n?void 0:null===(s=n[0])||void 0===s?void 0:s.promoted_system_key,m=c?null!=u?u:d:void 0;(0,y.D4)(i)?el((0,p.Vo)((0,y.e$)(i.error))):(ef.resetRowSelection(),el((0,p.t5)((0,R.u)("".concat(ex.length," assets from ").concat(x," have been added to the system inventory."),m?()=>l.push("".concat(o.So,"/configure/").concat(m,"#assets")):()=>l.push(o.So)))))},e_=async e=>{if("string"==typeof(null==e?void 0:e.value)){let s=await O({monitorId:t,urnList:ex,systemKey:e.value});(0,y.D4)(s)?el((0,p.Vo)((0,y.e$)(s.error))):el((0,p.t5)("".concat(ex.length," assets have been assigned to ").concat(e.label,"."),"Confirmed"))}C(!1)},eb=async e=>{let s=null==ev?void 0:ev.items.filter(e=>ex.includes(e.urn));if(!s)return;let n=s.map(t=>{let s=g()([...t.user_assigned_data_uses||t.data_uses||[],...e]);return{urn:t.urn,user_assigned_data_uses:s}}),r=await V({monitorId:t,assets:n});(0,y.D4)(r)?el((0,p.Vo)((0,y.e$)(r.error))):el((0,p.t5)("Consent categories added to ".concat(ex.length," assets").concat(x?" from ".concat(x):"","."),"Confirmed")),D(!1)},ew=async()=>{let e=await M({urnList:ex});(0,y.D4)(e)?el((0,p.Vo)((0,y.e$)(e.error))):(ef.resetRowSelection(),el((0,p.t5)(x===o.Kl?"".concat(ex.length," uncategorized assets have been ignored and will not appear in future scans."):"".concat(ex.length," assets from ").concat(x," have been ignored and will not appear in future scans."),"Confirmed")))},eC=async()=>{let e=await $({urnList:ex});(0,y.D4)(e)?el((0,p.Vo)((0,y.e$)(e.error))):(ef.resetRowSelection(),el((0,p.t5)("".concat(ex.length," assets have been restored and will appear in future scans."),"Confirmed")))},eS=async()=>{let e=(null==ev?void 0:ev.items.length)||0,n=await q({monitor_config_key:t,resolved_system_ids:[s]});(0,y.D4)(n)?el((0,p.Vo)((0,y.e$)(n.error))):(l.push("".concat(o.vi,"/").concat(t)),el((0,p.t5)("".concat(e," assets from ").concat(x," have been added to the system inventory."),"Confirmed")))};return t&&s?ey?(0,n.jsx)(h.I4,{rowHeight:36,numRows:36}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(v.Z,{data:ed,"data-testid":"filter-tabs",index:ec,isLazy:!0,isManual:!0,onChange:e=>{eu(e),b({})}}),(0,n.jsxs)(h.Q$,{children:[(0,n.jsx)(A.f,{value:ea,onChange:eo,placeholder:"Search by asset name..."}),(0,n.jsxs)(u.kCb,{alignItems:"center",children:[!!ex.length&&(0,n.jsx)(u.xvT,{fontSize:"xs",fontWeight:"semibold",minW:16,mr:6,"data-testid":"selected-count",children:"".concat(ex.length," selected")}),(0,n.jsxs)(u.Ugi,{children:[(0,n.jsx)(u.S0p,{menu:{items:[{key:"add",label:"Add",onClick:ej},{key:"add-data-use",label:"Add consent category",onClick:()=>D(!0)},{key:"assign-system",label:"Assign system",onClick:()=>C(!0)},...em.diff_status.includes(T.LL.MUTED)?[{key:"restore",label:"Restore",onClick:eC}]:[{type:"divider"},{key:"ignore",label:"Ignore",onClick:ew}]]},trigger:["click"],children:(0,n.jsx)(u.wpx,{icon:(0,n.jsx)(u.PJP._ME,{}),iconPosition:"end",loading:F,"data-testid":"bulk-actions-menu",disabled:!ex.length||F||eg,type:"primary",children:"Actions"})}),(0,n.jsx)(u.esZ,{title:J?"These assets require a system before you can add them to the inventory.":void 0,children:(0,n.jsx)(u.wpx,{onClick:eS,disabled:J,loading:z,type:"primary",icon:(0,n.jsx)(u.PJP.MCw,{}),iconPosition:"end","data-testid":"add-all",children:"Add all"})})]})]})]}),(0,n.jsx)(h.ZK,{tableInstance:ef,emptyTableNotice:(0,n.jsx)(u.oj8,{image:u.oj8.PRESENTED_IMAGE_SIMPLE,description:"All caught up!"})}),(0,n.jsx)(h.s8,{totalRows:(null==ev?void 0:ev.total)||0,pageSizes:K,setPageSize:G,onPreviousPageClick:Q,isPreviousPageDisabled:X||eh,onNextPageClick:Y,isNextPageDisabled:ee||eh,startRange:et,endRange:es}),(0,n.jsx)(L,{isOpen:w,onClose:()=>{C(!1)},onSave:e_,isSaving:N}),(0,n.jsx)(S,{isOpen:I,onClose:()=>{D(!1)},onSave:eb,isSaving:U})]}):null};var F=()=>{let e=(0,r.useRouter)(),t=decodeURIComponent(e.query.monitorId),s=decodeURIComponent(e.query.systemId),[d,c]=(0,i.useState)(s===o.Kl?"Uncategorized assets":s);return(0,n.jsxs)(a.Z,{title:"Action center - Discovered assets",children:[(0,n.jsx)(l.Z,{heading:"Action center",breadcrumbItems:[{title:"All activity",href:o.vi},{title:t,href:"".concat(o.vi,"/").concat(t)},{title:s===o.Kl?"Uncategorized assets":d}]}),(0,n.jsx)(B,{monitorId:t,systemId:s,onSystemName:c})]})}},31883:function(e,t,s){"use strict";s.d(t,{Bw:function(){return n.Bw},D4:function(){return n.D4}});var n=s(19043)}},function(e){e.O(0,[2858,2866,9278,409,401,1040,2888,9774,179],function(){return e(e.s=25654)}),_N_E=e.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2423],{95372:function(e){e.exports=function(e,t,a,n){for(var i=e.length,r=a+(n?1:-1);n?r--:++r<i;)if(t(e[r],r,e))return r;return -1}},74833:function(e,t,a){var n=a(56127),i=/^\s+/;e.exports=function(e){return e?e.slice(0,n(e)+1).replace(i,""):e}},56632:function(e,t,a){var n=a(89278),i=a(80068),r=a(50098);e.exports=function(e){return function(t,a,s){var o=Object(t);if(!i(t)){var l=n(a,3);t=r(t),a=function(e){return l(o[e],e,o)}}var d=e(t,a,s);return d>-1?o[l?t[d]:d]: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}},66726:function(e,t,a){var n=a(11611),i=a(82846),r=a(91936),s=Math.max,o=Math.min;e.exports=function(e,t,a){var l,d,u,c,_,F,m=0,g=!1,h=!1,v=!0;if("function"!=typeof e)throw TypeError("Expected a function");function p(t){var a=l,n=d;return l=d=void 0,m=t,c=e.apply(n,a)}function f(e){var a=e-F,n=e-m;return void 0===F||a>=t||a<0||h&&n>=u}function S(){var e,a,n,r=i();if(f(r))return y(r);_=setTimeout(S,(e=r-F,a=r-m,n=t-e,h?o(n,u-a):n))}function y(e){return(_=void 0,v&&l)?p(e):(l=d=void 0,c)}function x(){var e,a=i(),n=f(a);if(l=arguments,d=this,F=a,n){if(void 0===_)return m=e=F,_=setTimeout(S,t),g?p(e):c;if(h)return clearTimeout(_),_=setTimeout(S,t),p(F)}return void 0===_&&(_=setTimeout(S,t)),c}return t=r(t)||0,n(a)&&(g=!!a.leading,u=(h="maxWait"in a)?s(r(a.maxWait)||0,t):u,v="trailing"in a?!!a.trailing:v),x.cancel=function(){void 0!==_&&clearTimeout(_),m=0,l=F=d=_=void 0},x.flush=function(){return void 0===_?c:y(i())},x}},64925:function(e,t,a){var n=a(56632)(a(66259));e.exports=n},66259:function(e,t,a){var n=a(95372),i=a(89278),r=a(47991),s=Math.max;e.exports=function(e,t,a){var o=null==e?0:e.length;if(!o)return -1;var l=null==a?0:r(a);return l<0&&(l=s(o+l,0)),n(e,i(t,3),l)}},82846:function(e,t,a){var n=a(77400);e.exports=function(){return n.Date.now()}},94919:function(e,t,a){var n=a(91936),i=1/0;e.exports=function(e){return e?(e=n(e))===i||e===-i?(e<0?-1:1)*17976931348623157e292:e==e?e:0:0===e?e:0}},47991:function(e,t,a){var n=a(94919);e.exports=function(e){var t=n(e),a=t%1;return t==t?a?t-a:t:0}},91936:function(e,t,a){var n=a(74833),i=a(11611),r=a(55193),s=0/0,o=/^[-+]0x[0-9a-f]+$/i,l=/^0b[01]+$/i,d=/^0o[0-7]+$/i,u=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(r(e))return s;if(i(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=i(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=n(e);var a=l.test(e);return a||d.test(e)?u(e.slice(2),a?2:8):o.test(e)?s:+e}},86850:function(e,t,a){(window.__NEXT_P=window.__NEXT_P||[]).push(["/data-discovery/action-center/[monitorId]",function(){return a(56856)}])},7617:function(e,t,a){"use strict";a.d(t,{q:function(){return r}});var n=a(24246),i=a(86920);let r=e=>{let{label:t,isDisabled:a,...r}=e;return(0,n.jsx)(i.OK9,{"data-testid":"tab-".concat(t),_selected:{fontWeight:"600",color:"complimentary.500",borderColor:"complimentary.500"},fontSize:r.fontSize,fontWeight:"500",color:"gray.500",isDisabled:a||!1,children:t})};t.Z=e=>{let{data:t,border:a="partial",...s}=e;return(0,n.jsxs)(i.mQc,{colorScheme:"complimentary",...s,children:[(0,n.jsx)(i.tdY,{width:"partial"===a?"max-content":void 0,children:t.map(e=>(0,n.jsx)(r,{label:e.label,isDisabled:e.isDisabled,fontSize:s.fontSize},e.label))}),(0,n.jsx)(i.nPR,{children:t.map(e=>(0,n.jsx)(i.x45,{px:0,"data-testid":"tab-panel-".concat(e.label),children:e.content},e.label))})]})}},66379:function(e,t,a){"use strict";var n=a(24246),i=a(86920),r=a(7617);t.Z=e=>{let{data:t,border:a="partial",borderWidth:s=2,...o}=e;return(0,n.jsx)(i.mQc,{colorScheme:"complimentary",...o,children:(0,n.jsx)(i.tdY,{width:"partial"===a?"max-content":void 0,borderBottomWidth:s,children:t.map(e=>(0,n.jsx)(r.q,{label:e.label,"data-testid":e.label,isDisabled:e.isDisabled,fontSize:o.fontSize},e.label))})})}},30952:function(e,t,a){"use strict";a.d(t,{f:function(){return l}});var n=a(24246),i=a(66726),r=a.n(i),s=a(27378),o=a(26917);let l=e=>{let{value:t,onChange:a,placeholder:i,...l}=e,[d,u]=(0,s.useState)(t),c=r()(a,500),_=(0,s.useCallback)(e=>{u(e),c(e)},[]);return(0,n.jsx)(o.Z,{value:d,onChange:_,onClear:()=>{u(""),a("")},placeholder:i,...l})}},35287:function(e,t,a){"use strict";var n=a(24246),i=a(86920),r=a(88038),s=a.n(r);a(27378),t.Z=e=>{let{children:t,title:a,mainProps:r}=e;return(0,n.jsxs)(i.kCb,{"data-testid":a,direction:"column",height:"calc(100vh - 48px)",width:"calc(100vw - 240px)",children:[(0,n.jsxs)(s(),{children:[(0,n.jsxs)("title",{children:["Fides Admin UI - ",a]}),(0,n.jsx)("meta",{name:"description",content:"Privacy Engineering Platform"}),(0,n.jsx)("link",{rel:"icon",href:"/favicon.ico"})]}),(0,n.jsx)(i.kCb,{px:10,py:6,as:"main",overflow:"auto",direction:"column",flex:1,minWidth:0,...r,children:t})]})}},58754:function(e,t,a){"use strict";var n=a(24246),i=a(86920),r=a(70788);t.Z=e=>{let{heading:t,breadcrumbItems:a,isSticky:s=!0,children:o,rightContent:l,style:d,...u}=e;return(0,n.jsxs)("div",{...u,style:s?{position:"sticky",top:"-24px",paddingTop:"24px",paddingBottom:"24px",paddingLeft:"40px",marginLeft:"-40px",paddingRight:"40px",marginRight:"-40px",marginTop:"-24px",left:0,zIndex:20,backgroundColor:"white",...d}:{paddingBottom:"24px",...d},children:[(0,n.jsxs)(i.jqI,{justify:"space-between",children:["string"==typeof t?(0,n.jsx)(i.lQT,{className:a||o?"pb-4":void 0,level:1,"data-testid":"page-heading",children:t}):t,l&&(0,n.jsx)("div",{"data-testid":"page-header-right-content",children:l})]}),!!a&&(0,n.jsx)(r.m,{className:o?"pb-4":void 0,items:a,"data-testid":"page-breadcrumb"}),o]})}},26089:function(e,t,a){"use strict";var n=a(24246),i=a(86920),r=a(99830),s=a.n(r);t.Z=e=>{let{onClick:t,children:a}=e;return(0,n.jsx)(i.wpx,{onClick:t,type:"link",role:"link",size:"small",className:s().toastLink,children:a})}},34929:function(e,t,a){"use strict";var n=a(24246),i=a(64925),r=a.n(i),s=a(27378),o=a(16134),l=a(30002),d=a(28079),u=a(57072);let c=()=>{let{isLoading:e}=(0,d.fd)(),t=(0,o.C)(d.U3),{isLoading:a}=(0,u.MO)(),n=(0,o.C)(u.qb),{isLoading:i}=(0,l.te)();return{dataUses:t,dataSubjects:(0,o.C)(l.ZL),dataCategories:n,isLoading:e||a||i}};t.Z=()=>{let{dataUses:e,dataCategories:t,dataSubjects:a,isLoading:i}=c(),o=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return e.split(".").slice(0,t).join(".")},l=function(e,t){let a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,n=t(e);if(!n)return{};let i=t(o(e,a)),r=!!n.parent_key;return{name:n.name||void 0,primaryName:r&&(null==i?void 0:i.name)!==n.name&&(null==i?void 0:i.name)||void 0}},d=function(e,t){let a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,{name:i,primaryName:r}=l(e,t,a);return i?r?(0,n.jsxs)(s.Fragment,{children:[(0,n.jsxs)("strong",{children:[r,":"]})," ",i]},e):(0,n.jsx)("strong",{children:i},e):e},u=t=>r()(e,{fides_key:t}),_=e=>r()(t,{fides_key:e}),F=e=>r()(a,{fides_key:e});return{getDataUses:()=>e,getDataUseByKey:u,getDataUseDisplayName:e=>d(e,u,1),getDataUseDisplayNameProps:e=>l(e,u,1),getDataCategories:()=>t,getDataCategoryByKey:_,getDataCategoryDisplayName:e=>d(e,_,2),getDataCategoryDisplayNameProps:e=>l(e,_,2),getDataSubjects:()=>a,getDataSubjectByKey:F,getDataSubjectDisplayName:e=>{let t=F(e);return t?t.name:e},getPrimaryKey:o,isLoading:i}}},70788:function(e,t,a){"use strict";a.d(t,{m:function(){return d}});var n=a(24246),i=a(86920),r=a(79894),s=a.n(r),o=a(27378);let{Text:l}=i.AntTypography,d=e=>{let{items:t,...a}=e,r=(0,o.useMemo)(()=>null==t?void 0:t.map((e,a)=>{let r=a===t.length-1,o={...e},d=o.onClick&&!o.href;return("string"==typeof o.title&&(o.title=(0,n.jsx)(l,{style:{color:"inherit",maxWidth:r?void 0:400},ellipsis:!r,children:o.title})),d)?o.title=(0,n.jsx)(i.wpx,{type:"text",size:"small",icon:o.icon,onClick:o.onClick,className:"ant-breadcrumb-link -mt-px px-1 text-inherit",children:o.title}):(o.icon&&(o.title=(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("span",{className:"anticon align-text-bottom",children:o.icon}),o.title]})),o.href&&o.title&&(o.title=(0,n.jsx)(s(),{href:o.href,className:"ant-breadcrumb-link",children:o.title}),delete o.href)),o}),[t]);return(0,n.jsx)(i.zrq,{items:r,...a})}},8411:function(e,t,a){"use strict";a.d(t,{NA:function(){return r},Z8:function(){return i}});var n=a(68309);let i={[n._F.ER]:"Eritrea",[n._F.DJ]:"Djibouti",[n._F.MR]:"Mauritania",[n._F.NA]:"Namibia",[n._F.GH]:"Ghana",[n._F.SS]:"South Sudan",[n._F.SC]:"Seychelles",[n._F.IO]:"British Indian Ocean Territory",[n._F.GQ]:"Equatorial Guinea",[n._F.AO]:"Angola",[n._F.CG]:"Republic of the Congo",[n._F.BW]:"Botswana",[n._F.BI]:"Burundi",[n._F.DZ]:"Algeria",[n._F.TD]:"Chad",[n._F.NG]:"Nigeria",[n._F.TZ]:"Tanzania",[n._F.EH]:"Western Sahara",[n._F.SN]:"Senegal",[n._F.LR]:"Liberia",[n._F.ZA]:"South Africa",[n._F.CV]:"Cape Verde",[n._F.GM]:"Gambia",[n._F.SD]:"Sudan",[n._F.KM]:"Comoros",[n._F.SZ]:"Eswatini",[n._F.UG]:"Uganda",[n._F.MG]:"Madagascar",[n._F.RW]:"Rwanda",[n._F.CD]:"DR Congo",[n._F.CM]:"Cameroon",[n._F.SH]:"Saint Helena, Ascension and Tristan da Cunha",[n._F.TG]:"Togo",[n._F.MU]:"Mauritius",[n._F.NE]:"Niger",[n._F.BJ]:"Benin",[n._F.EG]:"Egypt",[n._F.LS]:"Lesotho",[n._F.ET]:"Ethiopia",[n._F.MA]:"Morocco",[n._F.YT]:"Mayotte",[n._F.BF]:"Burkina Faso",[n._F.RE]:"R\xe9union",[n._F.ST]:"S\xe3o Tom\xe9 and Pr\xedncipe",[n._F.CF]:"Central African Republic",[n._F.MZ]:"Mozambique",[n._F.MW]:"Malawi",[n._F.ML]:"Mali",[n._F.ZM]:"Zambia",[n._F.LY]:"Libya",[n._F.GW]:"Guinea-Bissau",[n._F.SO]:"Somalia",[n._F.KE]:"Kenya",[n._F.GN]:"Guinea",[n._F.ZW]:"Zimbabwe",[n._F.TN]:"Tunisia",[n._F.SL]:"Sierra Leone",[n._F.GA]:"Gabon",[n._F.CI]:"Ivory Coast",[n._F.JO]:"Jordan",[n._F.PK]:"Pakistan",[n._F.KP]:"North Korea",[n._F.MO]:"Macau",[n._F.AM]:"Armenia",[n._F.SY]:"Syria",[n._F.TJ]:"Tajikistan",[n._F.SA]:"Saudi Arabia",[n._F.KR]:"South Korea",[n._F.NP]:"Nepal",[n._F.PH]:"Philippines",[n._F.IQ]:"Iraq",[n._F.LB]:"Lebanon",[n._F.MN]:"Mongolia",[n._F.PS]:"Palestine",[n._F.YE]:"Yemen",[n._F.JP]:"Japan",[n._F.KZ]:"Kazakhstan",[n._F.LK]:"Sri Lanka",[n._F.MM]:"Myanmar",[n._F.KG]:"Kyrgyzstan",[n._F.CN]:"China",[n._F.AF]:"Afghanistan",[n._F.OM]:"Oman",[n._F.IN]:"India",[n._F.LA]:"Laos",[n._F.UZ]:"Uzbekistan",[n._F.MV]:"Maldives",[n._F.ID]:"Indonesia",[n._F.VN]:"Vietnam",[n._F.MY]:"Malaysia",[n._F.TW]:"Taiwan",[n._F.KH]:"Cambodia",[n._F.AE]:"United Arab Emirates",[n._F.HK]:"Hong Kong",[n._F.GE]:"Georgia (Country)",[n._F.BD]:"Bangladesh",[n._F.KW]:"Kuwait",[n._F.TM]:"Turkmenistan",[n._F.QA]:"Qatar",[n._F.BH]:"Bahrain",[n._F.BN]:"Brunei",[n._F.TH]:"Thailand",[n._F.BT]:"Bhutan",[n._F.SG]:"Singapore",[n._F.IL]:"Israel",[n._F.AZ]:"Azerbaijan",[n._F.TL]:"Timor-Leste",[n._F.IR]:"Iran",[n._F.TR]:"Turkey",[n._F.MK]:"North Macedonia",[n._F.IE]:"Ireland",[n._F.DK]:"Denmark",[n._F.SK]:"Slovakia",[n._F.MD]:"Moldova",[n._F.AX]:"\xc5land Islands",[n._F.PL]:"Poland",[n._F.BA]:"Bosnia and Herzegovina",[n._F.SM]:"San Marino",[n._F.CZ]:"Czechia",[n._F.EE]:"Estonia",[n._F.XK]:"Kosovo",[n._F.FO]:"Faroe Islands",[n._F.SJ]:"Svalbard and Jan Mayen",[n._F.GG]:"Guernsey",[n._F.FR]:"France",[n._F.NL]:"Netherlands",[n._F.FI]:"Finland",[n._F.PT]:"Portugal",[n._F.DE]:"Germany",[n._F.MT]:"Malta",[n._F.JE]:"Jersey",[n._F.IS]:"Iceland",[n._F.ES]:"Spain",[n._F.GI]:"Gibraltar",[n._F.NO]:"Norway",[n._F.CY]:"Cyprus",[n._F.RS]:"Serbia",[n._F.LT]:"Lithuania",[n._F.MC]:"Monaco",[n._F.LU]:"Luxembourg",[n._F.UA]:"Ukraine",[n._F.IM]:"Isle of Man",[n._F.RO]:"Romania",[n._F.BE]:"Belgium",[n._F.SE]:"Sweden",[n._F.ME]:"Montenegro",[n._F.LV]:"Latvia",[n._F.VA]:"Vatican City",[n._F.AT]:"Austria",[n._F.AL]:"Albania",[n._F.LI]:"Liechtenstein",[n._F.GR]:"Greece",[n._F.IT]:"Italy",[n._F.AD]:"Andorra",[n._F.GB]:"United Kingdom",[n._F.RU]:"Russia",[n._F.SI]:"Slovenia",[n._F.BY]:"Belarus",[n._F.CH]:"Switzerland",[n._F.HU]:"Hungary",[n._F.BG]:"Bulgaria",[n._F.HR]:"Croatia",[n._F.TC]:"Turks and Caicos Islands",[n._F.CW]:"Cura\xe7ao",[n._F.GP]:"Guadeloupe",[n._F.UM]:"United States Minor Outlying Islands",[n._F.GT]:"Guatemala",[n._F.PM]:"Saint Pierre and Miquelon",[n._F.BQ]:"Caribbean Netherlands",[n._F.GL]:"Greenland",[n._F.SX]:"Sint Maarten",[n._F.PA]:"Panama",[n._F.AW]:"Aruba",[n._F.MQ]:"Martinique",[n._F.AG]:"Antigua and Barbuda",[n._F.BM]:"Bermuda",[n._F.CU]:"Cuba",[n._F.GD]:"Grenada",[n._F.NI]:"Nicaragua",[n._F.LC]:"Saint Lucia",[n._F.KN]:"Saint Kitts and Nevis",[n._F.DO]:"Dominican Republic",[n._F.VC]:"Saint Vincent and the Grenadines",[n._F.BZ]:"Belize",[n._F.HT]:"Haiti",[n._F.JM]:"Jamaica",[n._F.BS]:"Bahamas",[n._F.MX]:"Mexico",[n._F.MF]:"Saint Martin",[n._F.SV]:"El Salvador",[n._F.BL]:"Saint Barth\xe9lemy",[n._F.AI]:"Anguilla",[n._F.MS]:"Montserrat",[n._F.VG]:"British Virgin Islands",[n._F.BB]:"Barbados",[n._F.HN]:"Honduras",[n._F.KY]:"Cayman Islands",[n._F.DM]:"Dominica",[n._F.TT]:"Trinidad and Tobago",[n._F.CR]:"Costa Rica",[n._F.SR]:"Suriname",[n._F.CX]:"Christmas Island",[n._F.WS]:"Samoa",[n._F.PF]:"French Polynesia",[n._F.AS]:"American Samoa",[n._F.NC]:"New Caledonia",[n._F.TK]:"Tokelau",[n._F.PW]:"Palau",[n._F.KI]:"Kiribati",[n._F.VU]:"Vanuatu",[n._F.PN]:"Pitcairn Islands",[n._F.CK]:"Cook Islands",[n._F.FJ]:"Fiji",[n._F.PG]:"Papua New Guinea",[n._F.MP]:"Northern Mariana Islands",[n._F.NU]:"Niue",[n._F.TV]:"Tuvalu",[n._F.NF]:"Norfolk Island",[n._F.TO]:"Tonga",[n._F.FM]:"Micronesia",[n._F.SB]:"Solomon Islands",[n._F.NR]:"Nauru",[n._F.WF]:"Wallis and Futuna",[n._F.GU]:"Guam",[n._F.AU]:"Australia",[n._F.NZ]:"New Zealand",[n._F.MH]:"Marshall Islands",[n._F.CC]:"Cocos (Keeling) Islands",[n._F.VE]:"Venezuela",[n._F.PY]:"Paraguay",[n._F.BR]:"Brazil",[n._F.CO]:"Colombia",[n._F.PE]:"Peru",[n._F.CL]:"Chile",[n._F.UY]:"Uruguay",[n._F.AR]:"Argentina",[n._F.GY]:"Guyana",[n._F.BO]:"Bolivia",[n._F.GF]:"French Guiana",[n._F.EC]:"Ecuador",[n._F.FK]:"Falkland Islands",[n._F.US_AL]:"Alabama",[n._F.US_AK]:"Alaska",[n._F.US_AZ]:"Arizona",[n._F.US_AR]:"Arkansas",[n._F.US_CA]:"California",[n._F.US_CO]:"Colorado",[n._F.US_CT]:"Connecticut",[n._F.US_DE]:"Delaware",[n._F.US_DC]:"District of Columbia (DC)",[n._F.US_FL]:"Florida",[n._F.US_GA]:"Georgia",[n._F.US_HI]:"Hawaii",[n._F.US_ID]:"Idaho",[n._F.US_IL]:"Illinois",[n._F.US_IN]:"Indiana",[n._F.US_IA]:"Iowa",[n._F.US_KS]:"Kansas",[n._F.US_KY]:"Kentucky",[n._F.US_LA]:"Louisiana",[n._F.US_ME]:"Maine",[n._F.US_MD]:"Maryland",[n._F.US_MA]:"Massachusetts",[n._F.US_MI]:"Michigan",[n._F.US_MN]:"Minnesota",[n._F.US_MS]:"Mississippi",[n._F.US_MO]:"Missouri",[n._F.US_MT]:"Montana",[n._F.US_NE]:"Nebraska",[n._F.US_NV]:"Nevada",[n._F.US_NH]:"New Hampshire",[n._F.US_NJ]:"New Jersey",[n._F.US_NM]:"New Mexico",[n._F.US_NY]:"New York",[n._F.US_NC]:"North Carolina",[n._F.US_ND]:"North Dakota",[n._F.US_OH]:"Ohio",[n._F.US_OK]:"Oklahoma",[n._F.US_OR]:"Oregon",[n._F.US_PA]:"Pennsylvania",[n._F.US_PR]:"Puerto Rico",[n._F.US_RI]:"Rhode Island",[n._F.US_SC]:"South Carolina",[n._F.US_SD]:"South Dakota",[n._F.US_TN]:"Tennessee",[n._F.US_TX]:"Texas",[n._F.US_UT]:"Utah",[n._F.US_VA]:"Virginia",[n._F.US_VI]:"United States Virgin Islands",[n._F.US_VT]:"Vermont",[n._F.US_WA]:"Washington",[n._F.US_WV]:"West Virginia",[n._F.US_WI]:"Wisconsin",[n._F.US_WY]:"Wyoming",[n._F.CA_AB]:"Alberta",[n._F.CA_BC]:"British Columbia",[n._F.CA_MB]:"Manitoba",[n._F.CA_NB]:"New Brunswick",[n._F.CA_NL]:"Newfoundland and Labrador",[n._F.CA_NS]:"Nova Scotia",[n._F.CA_ON]:"Ontario",[n._F.CA_PE]:"Prince Edward Island",[n._F.CA_QC]:"Quebec",[n._F.CA_SK]:"Saskatchewan",[n._F.CA_NT]:"Northwest Territories",[n._F.CA_NU]:"Nunavut",[n._F.CA_YT]:"Yukon",[n._F.CA]:"Canada",[n._F.US]:"United States",[n._F.MEXICO_CENTRAL_AMERICA]:"Mexico and Central America",[n._F.CARIBBEAN]:"Caribbean",[n._F.EEA]:"European Economic Area (EEA)",[n._F.NON_EEA]:"Non European Economic Area",[n._F.GLOBAL]:"Global"},r=new Map(Object.entries(i));Object.entries(i).map(e=>({value:e[0],label:e[1]}))},37059:function(e,t,a){"use strict";a.d(t,{Ak:function(){return g},EY:function(){return c},Tj:function(){return F},Ud:function(){return s},Vr:function(){return h},WJ:function(){return l},nP:function(){return u},nS:function(){return _},rs:function(){return d},sX:function(){return m},wi:function(){return o}});var n=a(78780),i=a(16394),r=a(68309);let{useGetAggregateMonitorResultsQuery:s,useGetDiscoveredSystemAggregateQuery:o,useGetDiscoveredAssetsQuery:l,useAddMonitorResultSystemsMutation:d,useIgnoreMonitorResultSystemsMutation:u,useAddMonitorResultAssetsMutation:c,useIgnoreMonitorResultAssetsMutation:_,useRestoreMonitorResultAssetsMutation:F,useUpdateAssetsSystemMutation:m,useUpdateAssetsDataUseMutation:g,useUpdateAssetsMutation:h}=n.u.injectEndpoints({endpoints:e=>({getAggregateMonitorResults:e.query({query:e=>{let{page:t=1,size:a=20,search:n}=e;return{url:"/plus/discovery-monitor/aggregate-results",params:{page:t,size:a,search:n,diff_status:"addition"}}},providesTags:["Discovery Monitor Results"]}),getDiscoveredSystemAggregate:e.query({query:e=>{let{key:t,page:a=1,size:n=20,search:i,diff_status:r}=e;return{url:"/plus/discovery-monitor/system-aggregate-results",params:{monitor_config_id:t,page:a,size:n,search:i,diff_status:r}}},providesTags:["Discovery Monitor Results"]}),getDiscoveredAssets:e.query({query:e=>{let{key:t,system:a,page:n=1,size:i=20,search:r,diff_status:s}=e;return{url:"/plus/discovery-monitor/".concat(t,"/results"),params:{resolved_system_id:a,page:n,size:i,search:r,diff_status:s,sort_by:"urn"}}},providesTags:()=>["Discovery Monitor Results"]}),addMonitorResultSystems:e.mutation({query:e=>{let{monitor_config_key:t,resolved_system_ids:a}=e,n=(0,i.du)(a,"resolved_system_ids");return{method:"POST",url:"/plus/discovery-monitor/".concat(t,"/promote?").concat(n)}},invalidatesTags:["Discovery Monitor Results"]}),ignoreMonitorResultSystems:e.mutation({query:e=>{let{monitor_config_key:t,resolved_system_ids:a}=e,n=(0,i.du)(a,"resolved_system_ids");return{method:"POST",url:"/plus/discovery-monitor/".concat(t,"/mute?").concat(n)}},invalidatesTags:["Discovery Monitor Results"]}),addMonitorResultAssets:e.mutation({query:e=>{var t;let a=new URLSearchParams;return null===(t=e.urnList)||void 0===t||t.forEach(e=>a.append("staged_resource_urns",e)),{method:"POST",url:"/plus/discovery-monitor/promote?".concat(a)}},invalidatesTags:["Discovery Monitor Results"]}),ignoreMonitorResultAssets:e.mutation({query:e=>{var t;let a=new URLSearchParams;return null===(t=e.urnList)||void 0===t||t.forEach(e=>a.append("staged_resource_urns",e)),{method:"POST",url:"/plus/discovery-monitor/mute?".concat(a)}},invalidatesTags:["Discovery Monitor Results"]}),restoreMonitorResultAssets:e.mutation({query:e=>{var t;let a=new URLSearchParams({status_to_set:r.LL.ADDITION});return null===(t=e.urnList)||void 0===t||t.forEach(e=>a.append("staged_resource_urns",e)),{method:"POST",url:"/plus/discovery-monitor/un-mute?".concat(a)}},invalidatesTags:["Discovery Monitor Results"]}),updateAssetsSystem:e.mutation({query:e=>({method:"PATCH",url:"/plus/discovery-monitor/".concat(e.monitorId,"/results"),body:e.urnList.map(t=>({urn:t,user_assigned_system_key:e.systemKey}))}),invalidatesTags:["Discovery Monitor Results","System Assets"]}),updateAssetsDataUse:e.mutation({query:e=>({method:"PATCH",url:"/plus/discovery-monitor/".concat(e.monitorId,"/results"),body:e.urnList.map(t=>({urn:t,user_assigned_data_uses:e.dataUses}))}),invalidatesTags:["Discovery Monitor Results"]}),updateAssets:e.mutation({query:e=>({method:"PATCH",url:"/plus/discovery-monitor/".concat(e.monitorId,"/results"),body:e.assets}),invalidatesTags:["Discovery Monitor Results"]})})})},90057:function(e,t,a){"use strict";a.d(t,{T:function(){return d}});var n=a(86677),i=a(27378),r=a(68309);let s={ATTENTION_REQUIRED:{index:0,hash:"#attention-required"},RECENT_ACTIVITY:{index:1,hash:"#recent-activity"},IGNORED:{index:2,hash:"#ignored"}},o=e=>{let t=e.startsWith("#")?e:"#".concat(e);return Object.values(s).find(e=>e.hash===t)},l=e=>Object.values(s).find(t=>t.index===e),d=e=>{var t;return null===(t=o(e))||void 0===t?void 0:t.index};t.Z=e=>{var t;let{systemId:a,initialHash:d}=e,u=(0,n.useRouter)(),[c,_]=(0,i.useState)(d?null===(t=o(d))||void 0===t?void 0:t.index:s.ATTENTION_REQUIRED.index),F=(0,i.useCallback)(async e=>{if(_(e),u.isReady){let t=l(e);if(t){let e={...u.query};await u.replace({pathname:u.pathname,query:e,hash:t.hash},void 0,{shallow:!0})}}},[u]),m=[{label:"Attention required",params:{diff_status:[r.LL.ADDITION],system:a}},{label:"Recent activity",params:{diff_status:[r.LL.MONITORED]}},{label:"Ignored",params:{diff_status:[r.LL.MUTED],system:a}}],{diff_status:g,system:h}=m[c].params,v=g.includes(r.LL.MONITORED);return{filterTabs:m,filterTabIndex:c,onTabChange:F,activeParams:a?{diff_status:g,system:h}:{diff_status:g},actionsDisabled:v}}},78238:function(e,t,a){"use strict";a.d(t,{g:function(){return n}});let n=["essential","functional.service.improve","personalize","analytics","marketing.advertising.first_party.targeted","marketing.advertising.third_party.targeted"];t.Z=e=>n.includes(e)},96107:function(e,t,a){"use strict";a.d(t,{u:function(){return r}});var n=a(24246),i=a(26089);let r=(e,t)=>(0,n.jsxs)(n.Fragment,{children:[e," ",t&&(0,n.jsx)(i.Z,{onClick:t,children:"View"})]})},56839:function(e,t,a){"use strict";a.d(t,{dK:function(){return u},Rv:function(){return F},$P:function(){return _},zj:function(){return m},Kr:function(){return g},q1:function(){return c},QL:function(){return h}});var n=a(24246),i=a(86920);let r=(0,i.IUT)({displayName:"CircleIcon",viewBox:"0 0 200 200",path:(0,n.jsx)("path",{fill:"currentColor",d:"M 100, 100 m -75, 0 a 75,75 0 1,0 150,0 a 75,75 0 1,0 -150,0"})}),s=(0,i.IUT)({displayName:"RightDownArrowIcon",viewBox:"0 0 8 8",path:(0,n.jsx)("path",{fill:"currentColor",d:"M7.23192 8H8V7.23192V1.85539V1.08731H6.46385V1.85539V5.37654L1.62976 0.544855L1.08731 0L0 1.08731L0.542454 1.62976L5.37654 6.46385H1.85539H1.08731V8H1.85539H7.23192Z"})}),o=(0,i.IUT)({displayName:"RightUpArrowIcon",viewBox:"0 0 8 8",path:(0,n.jsx)("path",{fill:"currentColor",d:"M7.23192 0H8V0.768077V6.14461V6.91269H6.46385V6.14461V2.62346L1.62976 7.45515L1.08731 8L0 6.91269L0.542454 6.37024L5.37654 1.53615H1.85539H1.08731V0H1.85539H7.23192Z"})}),l=(0,i.IUT)({displayName:"TagIcon",viewBox:"0 0 9 10",path:(0,n.jsx)("path",{fill:"currentColor",d:"M0 0.5V5L4.5 9.5L9 5L4.5 0.5H0ZM2.25 2.10714C2.4205 2.10714 2.58401 2.17487 2.70457 2.29543C2.82513 2.41599 2.89286 2.5795 2.89286 2.75C2.89286 2.9205 2.82513 3.08401 2.70457 3.20457C2.58401 3.32513 2.4205 3.39286 2.25 3.39286C2.0795 3.39286 1.91599 3.32513 1.79543 3.20457C1.67487 3.08401 1.60714 2.9205 1.60714 2.75C1.60714 2.5795 1.67487 2.41599 1.79543 2.29543C1.91599 2.17487 2.0795 2.10714 2.25 2.10714Z"})});var d=a(28278);let u=()=>(0,n.jsx)(o,{color:"green.400",boxSize:2,mr:2,"data-testid":"add-icon"}),c=()=>(0,n.jsx)(s,{color:"red.400",boxSize:2,mr:2,"data-testid":"remove-icon"}),_=()=>(0,n.jsx)(l,{color:"orange.400",boxSize:3,mr:1,"data-testid":"classify-icon"}),F=()=>(0,n.jsx)(r,{color:"blue.400",boxSize:2.5,mb:"2px",mr:"6px","data-testid":"change-icon"}),m=()=>(0,n.jsx)(r,{color:"green.400",boxSize:2,mr:2,"data-testid":"monitored-icon"}),g=()=>(0,n.jsx)(r,{color:"red.400",boxSize:2,mr:2,"data-testid":"muted-icon"}),h={[d.E.ADDITION]:(0,n.jsx)(u,{}),[d.E.REMOVAL]:(0,n.jsx)(c,{}),[d.E.CLASSIFICATION]:(0,n.jsx)(_,{}),[d.E.CHANGE]:(0,n.jsx)(F,{}),[d.E.MONITORED]:(0,n.jsx)(m,{}),[d.E.MUTED]:(0,n.jsx)(g,{}),[d.E.IN_PROGRESS]:(0,n.jsx)(()=>(0,n.jsx)(r,{color:"orange.400",boxSize:2,mr:2,"data-testid":"in-progress-icon"}),{}),[d.E.NONE]:null}},28278:function(e,t,a){"use strict";var n,i;a.d(t,{E:function(){return n}}),(i=n||(n={})).ADDITION="Addition",i.CHANGE="Change",i.REMOVAL="Removal",i.CLASSIFICATION="Classification",i.IN_PROGRESS="Classifying",i.MONITORED="Monitoring",i.MUTED="Unmonitored",i.NONE="--"},56856:function(e,t,a){"use strict";a.r(t),a.d(t,{default:function(){return U}});var n=a(24246),i=a(86677),r=a(35287),s=a(77830),o=a(58754),l=a(59003),d=a(92222),u=a(86920),c=a(27378),_=a(66379),F=a(812),m=a(47935),g=a(46628),h=a(37059),v=a(90057),p=a(96107),f=a(68309),S=a(31883),y=a(30952),x=a(8411),C=a(72625),b=a(34929),M=a(78238),A=e=>{var t,a;let{system:i}=e,{getDataUseDisplayName:r}=(0,b.Z)(),s=(null!==(a=null===(t=i.data_uses)||void 0===t?void 0:t.filter(e=>(0,M.Z)(e)))&&void 0!==a?a:[]).map(e=>({label:r(e),key:e}));return(0,n.jsx)(C.mb,{values:s})};let T=e=>{let{monitorId:t,system:a,allowIgnore:r,onTabChange:o}=e,[l,{isLoading:d}]=(0,h.rs)(),[c,{isLoading:_}]=(0,h.nP)(),m=(0,i.useRouter)(),f=(0,u.pmc)(),S=d||_,{id:y,name:x,system_key:C,total_updates:b}=a,M=async()=>{let e=await l({monitor_config_key:t,resolved_system_ids:[y]});if((0,F.D4)(e))f((0,g.Vo)((0,F.e$)(e.error)));else{var a,n,i;let t=(null===(i=e.data)||void 0===i?void 0:null===(n=i.items)||void 0===n?void 0:null===(a=n[0])||void 0===a?void 0:a.promoted_system_key)||C,r="".concat(s.So,"/configure/").concat(t,"#assets");f((0,g.t5)((0,p.u)(C?"".concat(b," assets from ").concat(x," have been added to the system inventory."):"".concat(x," and ").concat(b," assets have been added to the system inventory. ").concat(x," is now configured for consent."),t?()=>m.push(r):void 0)))}},A=async()=>{let e=await c({monitor_config_key:t,resolved_system_ids:[y||s.Kl]});(0,F.D4)(e)?f((0,g.Vo)((0,F.e$)(e.error))):f((0,g.t5)((0,p.u)(x?"".concat(b," assets from ").concat(x," have been ignored and will not appear in future scans."):"".concat(b," uncategorized assets have been ignored and will not appear in future scans."),()=>o((0,v.T)("#ignored")))))};return(0,n.jsxs)(u.vyj,{children:[(0,n.jsx)(u.esZ,{title:a.id?void 0:"These assets must be categorized before you can add them to the inventory.",children:(0,n.jsx)(u.wpx,{"data-testid":"add-btn",size:"small",onClick:M,disabled:!a.id||S,loading:d,children:"Add"})}),r&&(0,n.jsx)(u.wpx,{"data-testid":"ignore-btn",size:"small",onClick:A,disabled:S,loading:_,children:"Ignore"})]})};var I=a(56839);let N=e=>{let{system:t}=e;return(0,n.jsxs)(u.kCb,{alignItems:"center",height:"100%",children:[!(null==t?void 0:t.system_key)&&(0,n.jsx)(u.esZ,{title:"New system",children:(0,n.jsx)("span",{children:I.QL.Change})}),(0,n.jsx)(u.xvT,{fontSize:"xs",fontWeight:"semibold",lineHeight:4,overflow:"hidden",textOverflow:"ellipsis",children:(null==t?void 0:t.name)||"Uncategorized assets"})]})},j=e=>{let{monitorId:t,readonly:a,allowIgnore:i,onTabChange:r}=e,s=(0,d.Cl)(),o=s.display({id:"select",cell:e=>{let{row:t}=e;return(0,n.jsx)(m.k,{isChecked:t.getIsSelected(),onChange:t.getToggleSelectedHandler(),dataTestId:"select-".concat(t.original.name||t.id)})},header:e=>{let{table:t}=e;return(0,n.jsx)(m.k,{isChecked:t.getIsAllPageRowsSelected(),isIndeterminate:t.getIsSomeRowsSelected(),onChange:t.getToggleAllRowsSelectedHandler(),dataTestId:"select-all-rows"})},maxSize:40,meta:{disableRowClick:!0,cellProps:{borderRight:"none"}}}),l=s.accessor(e=>e.name,{id:"system_name",cell:e=>(0,n.jsx)(N,{system:e.row.original}),header:"System",size:300,meta:{headerProps:a?void 0:{paddingLeft:"0px"},cellProps:a?void 0:{padding:"0 !important"}}}),u=s.accessor(e=>e.total_updates,{id:"total_updates",cell:e=>(0,n.jsx)(m.G3,{value:e.getValue()}),header:"Assets",size:80}),_=s.display({id:"data_use",cell:e=>(0,n.jsx)(A,{system:e.row.original}),header:"Categories of consent",size:400,meta:{disableRowClick:!0}}),F=s.accessor(e=>e.locations,{id:"locations",cell:e=>{var t,a;return(0,n.jsx)(C.mb,{values:null!==(a=null===(t=e.getValue())||void 0===t?void 0:t.map(e=>({label:x.Z8[e],key:e})))&&void 0!==a?a:[]})},header:e=>(0,n.jsx)(C.Rr,{value:"Locations",...e}),size:300,meta:{showHeaderMenu:!0,disableRowClick:!0}}),g=s.accessor(e=>e.domains,{id:"domains",cell:e=>(0,n.jsx)(C.tc,{values:e.getValue(),valueSuffix:"domains",cellProps:e}),header:e=>(0,n.jsx)(C.Rr,{value:"Domains",...e}),meta:{showHeaderMenu:!0,disableRowClick:!0}}),h=s.display({id:"actions",cell:e=>(0,n.jsx)(T,{system:e.row.original,monitorId:t,allowIgnore:i,onTabChange:r}),header:"Actions",meta:{disableRowClick:!0}}),v=(0,c.useMemo)(()=>[l,u,_,F,g],[l,u,_,F,g]);return a?{columns:v}:{columns:[o,...v,h]}},R=e=>{let{monitorId:t}=e,a=(0,i.useRouter)(),r=a.asPath.split("#")[1],{PAGE_SIZES:o,pageSize:x,setPageSize:C,onPreviousPageClick:b,isPreviousPageDisabled:M,onNextPageClick:A,isNextPageDisabled:T,startRange:I,endRange:N,pageIndex:R,setTotalPages:U,resetPageIndexToDefault:E}=(0,m.oi)(),[L,{isLoading:w}]=(0,h.rs)(),[D,{isLoading:k}]=(0,h.nP)(),P=(0,u.pmc)(),[O,B]=(0,c.useState)(""),[G,V]=(0,c.useState)({}),{filterTabs:z,filterTabIndex:H,onTabChange:K,activeParams:Z,actionsDisabled:W}=(0,v.Z)({initialHash:r});(0,c.useEffect)(()=>{E()},[t,O,E]);let{data:q,isLoading:Y,isFetching:J}=(0,h.wi)({key:t,page:R,size:x,search:O,...Z});(0,c.useEffect)(()=>{if(q){var e;U(null!==(e=q.pages)&&void 0!==e?e:1)}},[q,U]);let Q=e=>{K(e),V({})},{columns:X}=j({monitorId:t,onTabChange:Q,readonly:W,allowIgnore:!Z.diff_status.includes(f.LL.MUTED)}),$=(0,l.b7)({getCoreRowModel:(0,d.sC)(),columns:X,manualPagination:!0,data:(null==q?void 0:q.items)||[],columnResizeMode:"onChange",onRowSelectionChange:V,state:{rowSelection:G},getRowId:e=>{var t,a,n;return null!==(n=null!==(a=null!==(t=e.id)&&void 0!==t?t:e.vendor_id)&&void 0!==a?a:e.name)&&void 0!==n?n:s.Kl}}),ee=$.getSelectedRowModel().rows,et=ee.some(e=>null===e.original.id);if(Y)return(0,n.jsx)(m.I4,{rowHeight:36,numRows:36});let ea=async()=>{let e=ee.reduce((e,t)=>e+t.original.total_updates,0),n=await L({monitor_config_key:t,resolved_system_ids:ee.map(e=>e.original.id)});(0,S.D4)(n)?P((0,g.Vo)((0,F.e$)(n.error))):(P((0,g.t5)((0,p.u)("".concat(e," assets have been added to the system inventory."),()=>a.push(s.So)))),V({}))},en=async()=>{let e=ee.reduce((e,t)=>e+t.original.total_updates,0),a=await D({monitor_config_key:t,resolved_system_ids:ee.map(e=>{var t;return null!==(t=e.original.id)&&void 0!==t?t:s.Kl})});(0,S.D4)(a)?P((0,g.Vo)((0,F.e$)(a.error))):(P((0,g.t5)((0,p.u)("".concat(e," assets have been ignored and will not appear in future scans."),()=>K((0,v.T)("#ignored"))))),V({}))};return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(_.Z,{data:z,"data-testid":"filter-tabs",index:H,isLazy:!0,isManual:!0,onChange:Q}),(0,n.jsx)(m.Q$,{children:(0,n.jsxs)(u.kCb,{direction:"row",alignItems:"center",justifyContent:"space-between",width:"full",children:[(0,n.jsx)(u.kCb,{gap:6,align:"center",children:(0,n.jsx)(u.xuv,{flexShrink:0,children:(0,n.jsx)(y.f,{value:O,onChange:B})})}),(0,n.jsxs)(u.kCb,{align:"center",children:[!!ee.length&&(0,n.jsx)(u.xvT,{fontSize:"xs",fontWeight:"semibold",minW:16,mr:6,"data-testid":"selected-count",children:"".concat(ee.length," selected")}),(0,n.jsx)(u.S0p,{menu:{items:[{key:"add",label:(0,n.jsx)(u.esZ,{title:et?"Uncategorized assets can't be added to the inventory":null,placement:"left",children:"Add"}),onClick:ea,disabled:et},Z.diff_status.includes(f.LL.MUTED)?null:{key:"ignore",label:"Ignore",onClick:en}]},trigger:["click"],children:(0,n.jsx)(u.wpx,{type:"primary",icon:(0,n.jsx)(u.PJP._ME,{}),iconPosition:"end",loading:w||k,disabled:!ee.length,"data-testid":"bulk-actions-menu",children:"Actions"})})]})]})}),(0,n.jsx)(m.ZK,{tableInstance:$,onRowClick:e=>{var n;let i="".concat(s.vi,"/").concat(t,"/").concat(null!==(n=e.id)&&void 0!==n?n:s.Kl).concat(r?"#".concat(r):"");a.push(i)},emptyTableNotice:(0,n.jsx)(u.oj8,{image:u.oj8.PRESENTED_IMAGE_SIMPLE,description:"All caught up!"})}),(0,n.jsx)(m.s8,{totalRows:(null==q?void 0:q.total)||0,pageSizes:o,setPageSize:C,onPreviousPageClick:b,isPreviousPageDisabled:M||J,onNextPageClick:A,isNextPageDisabled:T||J,startRange:I,endRange:N})]})};var U=()=>{let e=decodeURIComponent((0,i.useRouter)().query.monitorId);return(0,n.jsxs)(r.Z,{title:"Action center - Discovered assets by system",children:[(0,n.jsx)(o.Z,{heading:"Action center",breadcrumbItems:[{title:"All activity",href:s.vi},{title:e}]}),(0,n.jsx)(R,{monitorId:e})]})}},31883:function(e,t,a){"use strict";a.d(t,{Bw:function(){return n.Bw},D4:function(){return n.D4}});var n=a(19043)},99830:function(e){e.exports={toastLink:"ToastLink_toastLink__OLSeq"}}},function(e){e.O(0,[2858,2866,9278,2888,9774,179],function(){return e(e.s=86850)}),_N_E=e.O()}]);
@@ -1 +1 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8443],{74833:function(e,t,r){var n=r(56127),s=/^\s+/;e.exports=function(e){return e?e.slice(0,n(e)+1).replace(s,""):e}},56127:function(e){var t=/\s/;e.exports=function(e){for(var r=e.length;r--&&t.test(e.charAt(r)););return r}},66726:function(e,t,r){var n=r(11611),s=r(82846),i=r(91936),o=Math.max,a=Math.min;e.exports=function(e,t,r){var l,u,c,d,m,p,f=0,v=!1,g=!1,y=!0;if("function"!=typeof e)throw TypeError("Expected a function");function h(t){var r=l,n=u;return l=u=void 0,f=t,d=e.apply(n,r)}function x(e){var r=e-p,n=e-f;return void 0===p||r>=t||r<0||g&&n>=c}function j(){var e,r,n,i=s();if(x(i))return b(i);m=setTimeout(j,(e=i-p,r=i-f,n=t-e,g?a(n,c-r):n))}function b(e){return(m=void 0,y&&l)?h(e):(l=u=void 0,d)}function _(){var e,r=s(),n=x(r);if(l=arguments,u=this,p=r,n){if(void 0===m)return f=e=p,m=setTimeout(j,t),v?h(e):d;if(g)return clearTimeout(m),m=setTimeout(j,t),h(p)}return void 0===m&&(m=setTimeout(j,t)),d}return t=i(t)||0,n(r)&&(v=!!r.leading,c=(g="maxWait"in r)?o(i(r.maxWait)||0,t):c,y="trailing"in r?!!r.trailing:y),_.cancel=function(){void 0!==m&&clearTimeout(m),f=0,l=p=u=m=void 0},_.flush=function(){return void 0===m?d:b(s())},_}},11611:function(e){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},55193:function(e,t,r){var n=r(99736),s=r(92360);e.exports=function(e){return"symbol"==typeof e||s(e)&&"[object Symbol]"==n(e)}},82846:function(e,t,r){var n=r(77400);e.exports=function(){return n.Date.now()}},91936:function(e,t,r){var n=r(74833),s=r(11611),i=r(55193),o=0/0,a=/^[-+]0x[0-9a-f]+$/i,l=/^0b[01]+$/i,u=/^0o[0-7]+$/i,c=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(i(e))return o;if(s(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=s(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=n(e);var r=l.test(e);return r||u.test(e)?c(e.slice(2),r?2:8):a.test(e)?o:+e}},40741:function(e,t,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/data-discovery/action-center",function(){return r(51500)}])},30952:function(e,t,r){"use strict";r.d(t,{f:function(){return l}});var n=r(24246),s=r(66726),i=r.n(s),o=r(27378),a=r(26917);let l=e=>{let{value:t,onChange:r,placeholder:s,...l}=e,[u,c]=(0,o.useState)(t),d=i()(r,500),m=(0,o.useCallback)(e=>{c(e),d(e)},[]);return(0,n.jsx)(a.Z,{value:u,onChange:m,onClear:()=>{c(""),r("")},placeholder:s,...l})}},77213:function(e,t,r){"use strict";r.d(t,{Z:function(){return m}});var n=r(24246),s=r(13577),i=r(88038),o=r.n(i),a=r(86677);r(27378);var l=r(25980),u=r(90867),c=r(77830),d=()=>{let e=(0,a.useRouter)();return(0,n.jsx)(s.xuv,{bg:"gray.50",border:"1px solid",borderColor:"blue.400",borderRadius:"md",justifyContent:"space-between",p:5,mb:5,mt:5,children:(0,n.jsxs)(s.xuv,{children:[(0,n.jsxs)(s.Kqy,{direction:{base:"column",sm:"row"},justifyContent:"space-between",children:[(0,n.jsx)(s.xvT,{fontWeight:"semibold",children:"Configure your storage and messaging provider"}),(0,n.jsx)(s.wpx,{onClick:()=>{e.push(c.fz)},children:"Configure"})]}),(0,n.jsxs)(s.xvT,{children:["Before Fides can process your privacy requests we need two simple steps to configure your storage and email client."," "]})]})})},m=e=>{let{children:t,title:r,padded:i=!0,mainProps:c}=e,m=(0,l.hz)(),p=(0,a.useRouter)(),f="/privacy-requests"===p.pathname||"/datastore-connection"===p.pathname,v=!(m.flags.privacyRequestsConfiguration&&f),{data:g}=(0,u.JE)(void 0,{skip:v}),{data:y}=(0,u.PW)(void 0,{skip:v}),h=m.flags.privacyRequestsConfiguration&&(!g||!y)&&f;return(0,n.jsxs)(s.kCb,{"data-testid":r,direction:"column",h:"100vh",children:[(0,n.jsxs)(o(),{children:[(0,n.jsxs)("title",{children:["Fides Admin UI - ",r]}),(0,n.jsx)("meta",{name:"description",content:"Privacy Engineering Platform"}),(0,n.jsx)("link",{rel:"icon",href:"/favicon.ico"})]}),(0,n.jsxs)(s.kCb,{as:"main",direction:"column",py:i?6:0,px:i?10:0,h:i?"calc(100% - 48px)":"full",flex:1,minWidth:0,overflow:"auto",...c,children:[h?(0,n.jsx)(d,{}):null,t]})]})}},58754:function(e,t,r){"use strict";var n=r(24246),s=r(13577),i=r(70788);t.Z=e=>{let{heading:t,breadcrumbItems:r,isSticky:o=!0,children:a,rightContent:l,style:u,...c}=e;return(0,n.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",...u}:{paddingBottom:"24px",...u},children:[(0,n.jsxs)(s.jqI,{justify:"space-between",children:["string"==typeof t?(0,n.jsx)(s.lQT,{className:r||a?"pb-4":void 0,level:1,"data-testid":"page-heading",children:t}):t,l&&(0,n.jsx)("div",{"data-testid":"page-header-right-content",children:l})]}),!!r&&(0,n.jsx)(i.m,{className:a?"pb-4":void 0,items:r,"data-testid":"page-breadcrumb"}),a]})}},70788:function(e,t,r){"use strict";r.d(t,{m:function(){return u}});var n=r(24246),s=r(13577),i=r(79894),o=r.n(i),a=r(27378);let{Text:l}=s.AntTypography,u=e=>{let{items:t,...r}=e,i=(0,a.useMemo)(()=>null==t?void 0:t.map((e,r)=>{let i=r===t.length-1,a={...e},u=a.onClick&&!a.href;return("string"==typeof a.title&&(a.title=(0,n.jsx)(l,{style:{color:"inherit",maxWidth:i?void 0:400},ellipsis:!i,children:a.title})),u)?a.title=(0,n.jsx)(s.wpx,{type:"text",size:"small",icon:a.icon,onClick:a.onClick,className:"ant-breadcrumb-link -mt-px px-1 text-inherit",children:a.title}):(a.icon&&(a.title=(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("span",{className:"anticon align-text-bottom",children:a.icon}),a.title]})),a.href&&a.title&&(a.title=(0,n.jsx)(o(),{href:a.href,className:"ant-breadcrumb-link",children:a.title}),delete a.href)),a}),[t]);return(0,n.jsx)(s.zrq,{items:i,...r})}},37059:function(e,t,r){"use strict";r.d(t,{Ak:function(){return v},EY:function(){return d},Tj:function(){return p},Ud:function(){return o},Vr:function(){return g},WJ:function(){return l},nP:function(){return c},nS:function(){return m},rs:function(){return u},sX:function(){return f},wi:function(){return a}});var n=r(78780),s=r(16394),i=r(68309);let{useGetAggregateMonitorResultsQuery:o,useGetDiscoveredSystemAggregateQuery:a,useGetDiscoveredAssetsQuery:l,useAddMonitorResultSystemsMutation:u,useIgnoreMonitorResultSystemsMutation:c,useAddMonitorResultAssetsMutation:d,useIgnoreMonitorResultAssetsMutation:m,useRestoreMonitorResultAssetsMutation:p,useUpdateAssetsSystemMutation:f,useUpdateAssetsDataUseMutation:v,useUpdateAssetsMutation:g}=n.u.injectEndpoints({endpoints:e=>({getAggregateMonitorResults:e.query({query:e=>{let{page:t=1,size:r=20,search:n}=e;return{url:"/plus/discovery-monitor/aggregate-results",params:{page:t,size:r,search:n,diff_status:"addition"}}},providesTags:["Discovery Monitor Results"]}),getDiscoveredSystemAggregate:e.query({query:e=>{let{key:t,page:r=1,size:n=20,search:s,diff_status:i}=e;return{url:"/plus/discovery-monitor/system-aggregate-results",params:{monitor_config_id:t,page:r,size:n,search:s,diff_status:i}}},providesTags:["Discovery Monitor Results"]}),getDiscoveredAssets:e.query({query:e=>{let{key:t,system:r,page:n=1,size:s=20,search:i,diff_status:o}=e;return{url:"/plus/discovery-monitor/".concat(t,"/results"),params:{resolved_system_id:r,page:n,size:s,search:i,diff_status:o,sort_by:"urn"}}},providesTags:()=>["Discovery Monitor Results"]}),addMonitorResultSystems:e.mutation({query:e=>{let{monitor_config_key:t,resolved_system_ids:r}=e,n=(0,s.du)(r,"resolved_system_ids");return{method:"POST",url:"/plus/discovery-monitor/".concat(t,"/promote?").concat(n)}},invalidatesTags:["Discovery Monitor Results"]}),ignoreMonitorResultSystems:e.mutation({query:e=>{let{monitor_config_key:t,resolved_system_ids:r}=e,n=(0,s.du)(r,"resolved_system_ids");return{method:"POST",url:"/plus/discovery-monitor/".concat(t,"/mute?").concat(n)}},invalidatesTags:["Discovery Monitor Results"]}),addMonitorResultAssets:e.mutation({query:e=>{var t;let r=new URLSearchParams;return null===(t=e.urnList)||void 0===t||t.forEach(e=>r.append("staged_resource_urns",e)),{method:"POST",url:"/plus/discovery-monitor/promote?".concat(r)}},invalidatesTags:["Discovery Monitor Results"]}),ignoreMonitorResultAssets:e.mutation({query:e=>{var t;let r=new URLSearchParams;return null===(t=e.urnList)||void 0===t||t.forEach(e=>r.append("staged_resource_urns",e)),{method:"POST",url:"/plus/discovery-monitor/mute?".concat(r)}},invalidatesTags:["Discovery Monitor Results"]}),restoreMonitorResultAssets:e.mutation({query:e=>{var t;let r=new URLSearchParams({status_to_set:i.LL.ADDITION});return null===(t=e.urnList)||void 0===t||t.forEach(e=>r.append("staged_resource_urns",e)),{method:"POST",url:"/plus/discovery-monitor/un-mute?".concat(r)}},invalidatesTags:["Discovery Monitor Results"]}),updateAssetsSystem:e.mutation({query:e=>({method:"PATCH",url:"/plus/discovery-monitor/".concat(e.monitorId,"/results"),body:e.urnList.map(t=>({urn:t,user_assigned_system_key:e.systemKey}))}),invalidatesTags:["Discovery Monitor Results","System Assets"]}),updateAssetsDataUse:e.mutation({query:e=>({method:"PATCH",url:"/plus/discovery-monitor/".concat(e.monitorId,"/results"),body:e.urnList.map(t=>({urn:t,user_assigned_data_uses:e.dataUses}))}),invalidatesTags:["Discovery Monitor Results"]}),updateAssets:e.mutation({query:e=>({method:"PATCH",url:"/plus/discovery-monitor/".concat(e.monitorId,"/results"),body:e.assets}),invalidatesTags:["Discovery Monitor Results"]})})})},51500:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return b}});var n=r(24246),s=r(13577),i=r(79894),o=r.n(i),a=r(27378),l=r(30952),u=r(77213),c=r(77830),d=r(58754),m=r(47935),p=r(7426),f=r(37059);let v=e=>{let{isConfigLoading:t}=e;return(0,n.jsx)(u.Z,{title:"Action center",mainProps:{className:"h-full"},children:(0,n.jsx)(s.jqI,{justify:"center",align:"center",className:"h-full",children:t?(0,n.jsx)(s.$jN,{color:"primary.900"}):(0,n.jsx)(s.DUx,{message:"Coming soon...",description:"Action center is currently disabled.",type:"info",showIcon:!0})})})},g=()=>(0,n.jsx)(s.oj8,{image:s.oj8.PRESENTED_IMAGE_SIMPLE,description:"All caught up! Set up an integration monitor to track your infrastructure in greater detail.",children:(0,n.jsx)(o(),{href:c.KH,passHref:!0,legacyBehavior:!0,children:(0,n.jsx)(s.wpx,{type:"primary",children:"Visit integrations"})})});var y=r(7195),h=r(16394);let{Text:x}=s.AntTypography,j=e=>{let{monitorSummary:t,showSkeleton:r,...i}=e,[l,u]=(0,a.useState)(void 0),{name:d,property:m,total_updates:p,updates:f,last_monitored:v,warning:g,secrets:j,key:b}=t,_=Object.entries(f).map(e=>"".concat(e[1]," ").concat(e[0],"s")).join(", "),T=v?(0,h.p6)(new Date(v)):void 0,w=v?(0,y.B)(new Date(v),new Date,{addSuffix:!0}):void 0;return(0,a.useEffect)(()=>{m&&u((0,h.tl)(m,60)),(null==j?void 0:j.url)&&u((0,h.tl)((0,h.ge)(j.url),60))},[m,null==j?void 0:j.url]),(0,n.jsx)(s.krs.Item,{"data-testid":"monitor-result-".concat(b),...i,children:(0,n.jsx)(s.N_L,{avatar:!0,title:!1,loading:r,active:!0,children:(0,n.jsxs)(s.bue,{gutter:12,className:"w-full",children:[(0,n.jsx)(s.JGx,{span:18,className:"align-middle",children:(0,n.jsx)(s.krs.Item.Meta,{avatar:(0,n.jsx)(s.t3Z,{src:l,size:30,icon:(0,n.jsx)(s.PJP.huD,{}),style:{backgroundColor:"transparent",color:"var(--ant-color-text)"}}),title:(0,n.jsxs)(o(),{href:"".concat(c.vi,"/").concat(b),className:"whitespace-nowrap",children:["".concat(p," assets detected").concat(m?" on ".concat(m):""),!!g&&(0,n.jsx)(s.esZ,{title:"string"==typeof g?g:void 0,children:(0,n.jsx)(s.PJP.OdJ,{className:"ml-1 inline-block align-middle",style:{color:"var(--fidesui-error)"}})})]}),description:"".concat(_," detected.")})}),(0,n.jsx)(s.JGx,{span:4,className:"flex items-center justify-end",children:(0,n.jsx)(x,{ellipsis:{tooltip:d},children:d})}),(0,n.jsx)(s.JGx,{span:2,className:"flex items-center justify-end",children:!!w&&(0,n.jsx)(s.esZ,{title:T,children:(0,n.jsx)(x,{"data-testid":"monitor-date",ellipsis:{tooltip:T},children:w})})})]})})})};var b=()=>{var e;let t=(0,s.pmc)(),{PAGE_SIZES:r,pageSize:i,setPageSize:y,onPreviousPageClick:h,isPreviousPageDisabled:x,onNextPageClick:b,isNextPageDisabled:_,startRange:T,endRange:w,pageIndex:k,setTotalPages:P,resetPageIndexToDefault:R}=(0,m.oi)(),[C,S]=(0,a.useState)(""),{data:A,isLoading:N}=(0,p.tB)({api_set:!1}),D=!!(null==A?void 0:null===(e=A.detection_discovery)||void 0===e?void 0:e.website_monitor_enabled);(0,a.useEffect)(()=>{R()},[C,R]);let{data:E,isError:M,isLoading:q,isFetching:I}=(0,f.Ud)({page:k,size:i,search:C},{skip:N||!D});(0,a.useEffect)(()=>{M&&t&&D&&t({title:"Error fetching data",description:"Please try again later",status:"error"})},[M,t,D]),(0,a.useEffect)(()=>{if(E){var e;P(null!==(e=E.total)&&void 0!==e?e:1)}},[E,P]);let L=(null==E?void 0:E.items)||[],O=I?Array.from({length:i},(e,t)=>({key:t.toString(),updates:[],last_monitored:null})):[],z=(0,a.useCallback)(e=>[(0,n.jsx)(o(),{href:"".concat(c.vi,"/").concat(e),passHref:!0,legacyBehavior:!0,children:(0,n.jsx)(s.wpx,{type:"link",className:"p-0","data-testid":"review-button-".concat(e),children:"Review"})},"review")],[]);return D?(0,n.jsxs)(u.Z,{title:"Action center",children:[(0,n.jsx)(d.Z,{heading:"Action center",breadcrumbItems:[{title:"All activity"}]}),(0,n.jsx)(s.jqI,{className:"justify-between py-6",children:(0,n.jsx)(l.f,{value:C,onChange:S})}),(0,n.jsx)(s.krs,{loading:q,dataSource:L||O,locale:{emptyText:(0,n.jsx)(g,{})},renderItem:e=>!!e&&(0,n.jsx)(j,{showSkeleton:I,monitorSummary:e,actions:z(e.key)},e.key)}),!!L&&!!(null==E?void 0:E.total)&&E.total>i&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(s.htM,{className:"mb-6 mt-0"}),(0,n.jsx)(m.s8,{totalRows:(null==E?void 0:E.total)||0,pageSizes:r,setPageSize:y,onPreviousPageClick:h,isPreviousPageDisabled:x||I,onNextPageClick:b,isNextPageDisabled:_||I,startRange:T,endRange:w})]})]}):(0,n.jsx)(v,{isConfigLoading:N})}}},function(e){e.O(0,[2888,9774,179],function(){return e(e.s=40741)}),_N_E=e.O()}]);
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8443],{74833:function(e,t,r){var n=r(56127),s=/^\s+/;e.exports=function(e){return e?e.slice(0,n(e)+1).replace(s,""):e}},56127:function(e){var t=/\s/;e.exports=function(e){for(var r=e.length;r--&&t.test(e.charAt(r)););return r}},66726:function(e,t,r){var n=r(11611),s=r(82846),i=r(91936),o=Math.max,a=Math.min;e.exports=function(e,t,r){var l,u,c,d,m,p,f=0,v=!1,g=!1,y=!0;if("function"!=typeof e)throw TypeError("Expected a function");function h(t){var r=l,n=u;return l=u=void 0,f=t,d=e.apply(n,r)}function x(e){var r=e-p,n=e-f;return void 0===p||r>=t||r<0||g&&n>=c}function j(){var e,r,n,i=s();if(x(i))return b(i);m=setTimeout(j,(e=i-p,r=i-f,n=t-e,g?a(n,c-r):n))}function b(e){return(m=void 0,y&&l)?h(e):(l=u=void 0,d)}function _(){var e,r=s(),n=x(r);if(l=arguments,u=this,p=r,n){if(void 0===m)return f=e=p,m=setTimeout(j,t),v?h(e):d;if(g)return clearTimeout(m),m=setTimeout(j,t),h(p)}return void 0===m&&(m=setTimeout(j,t)),d}return t=i(t)||0,n(r)&&(v=!!r.leading,c=(g="maxWait"in r)?o(i(r.maxWait)||0,t):c,y="trailing"in r?!!r.trailing:y),_.cancel=function(){void 0!==m&&clearTimeout(m),f=0,l=p=u=m=void 0},_.flush=function(){return void 0===m?d:b(s())},_}},11611:function(e){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},55193:function(e,t,r){var n=r(99736),s=r(92360);e.exports=function(e){return"symbol"==typeof e||s(e)&&"[object Symbol]"==n(e)}},82846:function(e,t,r){var n=r(77400);e.exports=function(){return n.Date.now()}},91936:function(e,t,r){var n=r(74833),s=r(11611),i=r(55193),o=0/0,a=/^[-+]0x[0-9a-f]+$/i,l=/^0b[01]+$/i,u=/^0o[0-7]+$/i,c=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(i(e))return o;if(s(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=s(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=n(e);var r=l.test(e);return r||u.test(e)?c(e.slice(2),r?2:8):a.test(e)?o:+e}},40741:function(e,t,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/data-discovery/action-center",function(){return r(51500)}])},30952:function(e,t,r){"use strict";r.d(t,{f:function(){return l}});var n=r(24246),s=r(66726),i=r.n(s),o=r(27378),a=r(26917);let l=e=>{let{value:t,onChange:r,placeholder:s,...l}=e,[u,c]=(0,o.useState)(t),d=i()(r,500),m=(0,o.useCallback)(e=>{c(e),d(e)},[]);return(0,n.jsx)(a.Z,{value:u,onChange:m,onClear:()=>{c(""),r("")},placeholder:s,...l})}},77213:function(e,t,r){"use strict";r.d(t,{Z:function(){return m}});var n=r(24246),s=r(86920),i=r(88038),o=r.n(i),a=r(86677);r(27378);var l=r(25980),u=r(90867),c=r(77830),d=()=>{let e=(0,a.useRouter)();return(0,n.jsx)(s.xuv,{bg:"gray.50",border:"1px solid",borderColor:"blue.400",borderRadius:"md",justifyContent:"space-between",p:5,mb:5,mt:5,children:(0,n.jsxs)(s.xuv,{children:[(0,n.jsxs)(s.Kqy,{direction:{base:"column",sm:"row"},justifyContent:"space-between",children:[(0,n.jsx)(s.xvT,{fontWeight:"semibold",children:"Configure your storage and messaging provider"}),(0,n.jsx)(s.wpx,{onClick:()=>{e.push(c.fz)},children:"Configure"})]}),(0,n.jsxs)(s.xvT,{children:["Before Fides can process your privacy requests we need two simple steps to configure your storage and email client."," "]})]})})},m=e=>{let{children:t,title:r,padded:i=!0,mainProps:c}=e,m=(0,l.hz)(),p=(0,a.useRouter)(),f="/privacy-requests"===p.pathname||"/datastore-connection"===p.pathname,v=!(m.flags.privacyRequestsConfiguration&&f),{data:g}=(0,u.JE)(void 0,{skip:v}),{data:y}=(0,u.PW)(void 0,{skip:v}),h=m.flags.privacyRequestsConfiguration&&(!g||!y)&&f;return(0,n.jsxs)(s.kCb,{"data-testid":r,direction:"column",h:"100vh",children:[(0,n.jsxs)(o(),{children:[(0,n.jsxs)("title",{children:["Fides Admin UI - ",r]}),(0,n.jsx)("meta",{name:"description",content:"Privacy Engineering Platform"}),(0,n.jsx)("link",{rel:"icon",href:"/favicon.ico"})]}),(0,n.jsxs)(s.kCb,{as:"main",direction:"column",py:i?6:0,px:i?10:0,h:i?"calc(100% - 48px)":"full",flex:1,minWidth:0,overflow:"auto",...c,children:[h?(0,n.jsx)(d,{}):null,t]})]})}},58754:function(e,t,r){"use strict";var n=r(24246),s=r(86920),i=r(70788);t.Z=e=>{let{heading:t,breadcrumbItems:r,isSticky:o=!0,children:a,rightContent:l,style:u,...c}=e;return(0,n.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",...u}:{paddingBottom:"24px",...u},children:[(0,n.jsxs)(s.jqI,{justify:"space-between",children:["string"==typeof t?(0,n.jsx)(s.lQT,{className:r||a?"pb-4":void 0,level:1,"data-testid":"page-heading",children:t}):t,l&&(0,n.jsx)("div",{"data-testid":"page-header-right-content",children:l})]}),!!r&&(0,n.jsx)(i.m,{className:a?"pb-4":void 0,items:r,"data-testid":"page-breadcrumb"}),a]})}},70788:function(e,t,r){"use strict";r.d(t,{m:function(){return u}});var n=r(24246),s=r(86920),i=r(79894),o=r.n(i),a=r(27378);let{Text:l}=s.AntTypography,u=e=>{let{items:t,...r}=e,i=(0,a.useMemo)(()=>null==t?void 0:t.map((e,r)=>{let i=r===t.length-1,a={...e},u=a.onClick&&!a.href;return("string"==typeof a.title&&(a.title=(0,n.jsx)(l,{style:{color:"inherit",maxWidth:i?void 0:400},ellipsis:!i,children:a.title})),u)?a.title=(0,n.jsx)(s.wpx,{type:"text",size:"small",icon:a.icon,onClick:a.onClick,className:"ant-breadcrumb-link -mt-px px-1 text-inherit",children:a.title}):(a.icon&&(a.title=(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("span",{className:"anticon align-text-bottom",children:a.icon}),a.title]})),a.href&&a.title&&(a.title=(0,n.jsx)(o(),{href:a.href,className:"ant-breadcrumb-link",children:a.title}),delete a.href)),a}),[t]);return(0,n.jsx)(s.zrq,{items:i,...r})}},37059:function(e,t,r){"use strict";r.d(t,{Ak:function(){return v},EY:function(){return d},Tj:function(){return p},Ud:function(){return o},Vr:function(){return g},WJ:function(){return l},nP:function(){return c},nS:function(){return m},rs:function(){return u},sX:function(){return f},wi:function(){return a}});var n=r(78780),s=r(16394),i=r(68309);let{useGetAggregateMonitorResultsQuery:o,useGetDiscoveredSystemAggregateQuery:a,useGetDiscoveredAssetsQuery:l,useAddMonitorResultSystemsMutation:u,useIgnoreMonitorResultSystemsMutation:c,useAddMonitorResultAssetsMutation:d,useIgnoreMonitorResultAssetsMutation:m,useRestoreMonitorResultAssetsMutation:p,useUpdateAssetsSystemMutation:f,useUpdateAssetsDataUseMutation:v,useUpdateAssetsMutation:g}=n.u.injectEndpoints({endpoints:e=>({getAggregateMonitorResults:e.query({query:e=>{let{page:t=1,size:r=20,search:n}=e;return{url:"/plus/discovery-monitor/aggregate-results",params:{page:t,size:r,search:n,diff_status:"addition"}}},providesTags:["Discovery Monitor Results"]}),getDiscoveredSystemAggregate:e.query({query:e=>{let{key:t,page:r=1,size:n=20,search:s,diff_status:i}=e;return{url:"/plus/discovery-monitor/system-aggregate-results",params:{monitor_config_id:t,page:r,size:n,search:s,diff_status:i}}},providesTags:["Discovery Monitor Results"]}),getDiscoveredAssets:e.query({query:e=>{let{key:t,system:r,page:n=1,size:s=20,search:i,diff_status:o}=e;return{url:"/plus/discovery-monitor/".concat(t,"/results"),params:{resolved_system_id:r,page:n,size:s,search:i,diff_status:o,sort_by:"urn"}}},providesTags:()=>["Discovery Monitor Results"]}),addMonitorResultSystems:e.mutation({query:e=>{let{monitor_config_key:t,resolved_system_ids:r}=e,n=(0,s.du)(r,"resolved_system_ids");return{method:"POST",url:"/plus/discovery-monitor/".concat(t,"/promote?").concat(n)}},invalidatesTags:["Discovery Monitor Results"]}),ignoreMonitorResultSystems:e.mutation({query:e=>{let{monitor_config_key:t,resolved_system_ids:r}=e,n=(0,s.du)(r,"resolved_system_ids");return{method:"POST",url:"/plus/discovery-monitor/".concat(t,"/mute?").concat(n)}},invalidatesTags:["Discovery Monitor Results"]}),addMonitorResultAssets:e.mutation({query:e=>{var t;let r=new URLSearchParams;return null===(t=e.urnList)||void 0===t||t.forEach(e=>r.append("staged_resource_urns",e)),{method:"POST",url:"/plus/discovery-monitor/promote?".concat(r)}},invalidatesTags:["Discovery Monitor Results"]}),ignoreMonitorResultAssets:e.mutation({query:e=>{var t;let r=new URLSearchParams;return null===(t=e.urnList)||void 0===t||t.forEach(e=>r.append("staged_resource_urns",e)),{method:"POST",url:"/plus/discovery-monitor/mute?".concat(r)}},invalidatesTags:["Discovery Monitor Results"]}),restoreMonitorResultAssets:e.mutation({query:e=>{var t;let r=new URLSearchParams({status_to_set:i.LL.ADDITION});return null===(t=e.urnList)||void 0===t||t.forEach(e=>r.append("staged_resource_urns",e)),{method:"POST",url:"/plus/discovery-monitor/un-mute?".concat(r)}},invalidatesTags:["Discovery Monitor Results"]}),updateAssetsSystem:e.mutation({query:e=>({method:"PATCH",url:"/plus/discovery-monitor/".concat(e.monitorId,"/results"),body:e.urnList.map(t=>({urn:t,user_assigned_system_key:e.systemKey}))}),invalidatesTags:["Discovery Monitor Results","System Assets"]}),updateAssetsDataUse:e.mutation({query:e=>({method:"PATCH",url:"/plus/discovery-monitor/".concat(e.monitorId,"/results"),body:e.urnList.map(t=>({urn:t,user_assigned_data_uses:e.dataUses}))}),invalidatesTags:["Discovery Monitor Results"]}),updateAssets:e.mutation({query:e=>({method:"PATCH",url:"/plus/discovery-monitor/".concat(e.monitorId,"/results"),body:e.assets}),invalidatesTags:["Discovery Monitor Results"]})})})},51500:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return b}});var n=r(24246),s=r(86920),i=r(79894),o=r.n(i),a=r(27378),l=r(30952),u=r(77213),c=r(77830),d=r(58754),m=r(47935),p=r(7426),f=r(37059);let v=e=>{let{isConfigLoading:t}=e;return(0,n.jsx)(u.Z,{title:"Action center",mainProps:{className:"h-full"},children:(0,n.jsx)(s.jqI,{justify:"center",align:"center",className:"h-full",children:t?(0,n.jsx)(s.$jN,{color:"primary.900"}):(0,n.jsx)(s.DUx,{message:"Coming soon...",description:"Action center is currently disabled.",type:"info",showIcon:!0})})})},g=()=>(0,n.jsx)(s.oj8,{image:s.oj8.PRESENTED_IMAGE_SIMPLE,description:"All caught up! Set up an integration monitor to track your infrastructure in greater detail.",children:(0,n.jsx)(o(),{href:c.KH,passHref:!0,legacyBehavior:!0,children:(0,n.jsx)(s.wpx,{type:"primary",children:"Visit integrations"})})});var y=r(7195),h=r(16394);let{Text:x}=s.AntTypography,j=e=>{let{monitorSummary:t,showSkeleton:r,...i}=e,[l,u]=(0,a.useState)(void 0),{name:d,property:m,total_updates:p,updates:f,last_monitored:v,warning:g,secrets:j,key:b}=t,_=Object.entries(f).map(e=>"".concat(e[1]," ").concat(e[0],"s")).join(", "),T=v?(0,h.p6)(new Date(v)):void 0,w=v?(0,y.B)(new Date(v),new Date,{addSuffix:!0}):void 0;return(0,a.useEffect)(()=>{m&&u((0,h.tl)(m,60)),(null==j?void 0:j.url)&&u((0,h.tl)((0,h.ge)(j.url),60))},[m,null==j?void 0:j.url]),(0,n.jsx)(s.krs.Item,{"data-testid":"monitor-result-".concat(b),...i,children:(0,n.jsx)(s.N_L,{avatar:!0,title:!1,loading:r,active:!0,children:(0,n.jsxs)(s.bue,{gutter:12,className:"w-full",children:[(0,n.jsx)(s.JGx,{span:18,className:"align-middle",children:(0,n.jsx)(s.krs.Item.Meta,{avatar:(0,n.jsx)(s.t3Z,{src:l,size:30,icon:(0,n.jsx)(s.PJP.huD,{}),style:{backgroundColor:"transparent",color:"var(--ant-color-text)"}}),title:(0,n.jsxs)(o(),{href:"".concat(c.vi,"/").concat(b),className:"whitespace-nowrap",children:["".concat(p," assets detected").concat(m?" on ".concat(m):""),!!g&&(0,n.jsx)(s.esZ,{title:"string"==typeof g?g:void 0,children:(0,n.jsx)(s.PJP.OdJ,{className:"ml-1 inline-block align-middle",style:{color:"var(--fidesui-error)"}})})]}),description:"".concat(_," detected.")})}),(0,n.jsx)(s.JGx,{span:4,className:"flex items-center justify-end",children:(0,n.jsx)(x,{ellipsis:{tooltip:d},children:d})}),(0,n.jsx)(s.JGx,{span:2,className:"flex items-center justify-end",children:!!w&&(0,n.jsx)(s.esZ,{title:T,children:(0,n.jsx)(x,{"data-testid":"monitor-date",ellipsis:{tooltip:T},children:w})})})]})})})};var b=()=>{var e;let t=(0,s.pmc)(),{PAGE_SIZES:r,pageSize:i,setPageSize:y,onPreviousPageClick:h,isPreviousPageDisabled:x,onNextPageClick:b,isNextPageDisabled:_,startRange:T,endRange:w,pageIndex:k,setTotalPages:P,resetPageIndexToDefault:R}=(0,m.oi)(),[C,S]=(0,a.useState)(""),{data:A,isLoading:N}=(0,p.tB)({api_set:!1}),D=!!(null==A?void 0:null===(e=A.detection_discovery)||void 0===e?void 0:e.website_monitor_enabled);(0,a.useEffect)(()=>{R()},[C,R]);let{data:E,isError:M,isLoading:q,isFetching:I}=(0,f.Ud)({page:k,size:i,search:C},{skip:N||!D});(0,a.useEffect)(()=>{M&&t&&D&&t({title:"Error fetching data",description:"Please try again later",status:"error"})},[M,t,D]),(0,a.useEffect)(()=>{if(E){var e;P(null!==(e=E.total)&&void 0!==e?e:1)}},[E,P]);let L=(null==E?void 0:E.items)||[],O=I?Array.from({length:i},(e,t)=>({key:t.toString(),updates:[],last_monitored:null})):[],z=(0,a.useCallback)(e=>[(0,n.jsx)(o(),{href:"".concat(c.vi,"/").concat(e),passHref:!0,legacyBehavior:!0,children:(0,n.jsx)(s.wpx,{type:"link",className:"p-0","data-testid":"review-button-".concat(e),children:"Review"})},"review")],[]);return D?(0,n.jsxs)(u.Z,{title:"Action center",children:[(0,n.jsx)(d.Z,{heading:"Action center",breadcrumbItems:[{title:"All activity"}]}),(0,n.jsx)(s.jqI,{className:"justify-between py-6",children:(0,n.jsx)(l.f,{value:C,onChange:S})}),(0,n.jsx)(s.krs,{loading:q,dataSource:L||O,locale:{emptyText:(0,n.jsx)(g,{})},renderItem:e=>!!e&&(0,n.jsx)(j,{showSkeleton:I,monitorSummary:e,actions:z(e.key)},e.key)}),!!L&&!!(null==E?void 0:E.total)&&E.total>i&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(s.htM,{className:"mb-6 mt-0"}),(0,n.jsx)(m.s8,{totalRows:(null==E?void 0:E.total)||0,pageSizes:r,setPageSize:y,onPreviousPageClick:h,isPreviousPageDisabled:x||I,onNextPageClick:b,isNextPageDisabled:_||I,startRange:T,endRange:w})]})]}):(0,n.jsx)(v,{isConfigLoading:N})}}},function(e){e.O(0,[2888,9774,179],function(){return e(e.s=40741)}),_N_E=e.O()}]);
@@ -1 +1 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7477],{74833:function(e,t,i){var s=i(56127),n=/^\s+/;e.exports=function(e){return e?e.slice(0,s(e)+1).replace(n,""):e}},56127:function(e){var t=/\s/;e.exports=function(e){for(var i=e.length;i--&&t.test(e.charAt(i)););return i}},11611:function(e){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},55193:function(e,t,i){var s=i(99736),n=i(92360);e.exports=function(e){return"symbol"==typeof e||n(e)&&"[object Symbol]"==s(e)}},91936:function(e,t,i){var s=i(74833),n=i(11611),a=i(55193),r=0/0,o=/^[-+]0x[0-9a-f]+$/i,l=/^0b[01]+$/i,c=/^0o[0-7]+$/i,d=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(a(e))return r;if(n(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=n(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=s(e);var i=l.test(e);return i||c.test(e)?d(e.slice(2),i?2:8):o.test(e)?r:+e}},45550:function(e,t,i){(window.__NEXT_P=window.__NEXT_P||[]).push(["/data-discovery/activity",function(){return i(3680)}])},58754:function(e,t,i){"use strict";var s=i(24246),n=i(13577),a=i(70788);t.Z=e=>{let{heading:t,breadcrumbItems:i,isSticky:r=!0,children:o,rightContent:l,style:c,...d}=e;return(0,s.jsxs)("div",{...d,style:r?{position:"sticky",top:"-24px",paddingTop:"24px",paddingBottom:"24px",paddingLeft:"40px",marginLeft:"-40px",paddingRight:"40px",marginRight:"-40px",marginTop:"-24px",left:0,zIndex:20,backgroundColor:"white",...c}:{paddingBottom:"24px",...c},children:[(0,s.jsxs)(n.jqI,{justify:"space-between",children:["string"==typeof t?(0,s.jsx)(n.lQT,{className:i||o?"pb-4":void 0,level:1,"data-testid":"page-heading",children:t}):t,l&&(0,s.jsx)("div",{"data-testid":"page-header-right-content",children:l})]}),!!i&&(0,s.jsx)(a.m,{className:o?"pb-4":void 0,items:i,"data-testid":"page-breadcrumb"}),o]})}},70788:function(e,t,i){"use strict";i.d(t,{m:function(){return c}});var s=i(24246),n=i(13577),a=i(79894),r=i.n(a),o=i(27378);let{Text:l}=n.AntTypography,c=e=>{let{items:t,...i}=e,a=(0,o.useMemo)(()=>null==t?void 0:t.map((e,i)=>{let a=i===t.length-1,o={...e},c=o.onClick&&!o.href;return("string"==typeof o.title&&(o.title=(0,s.jsx)(l,{style:{color:"inherit",maxWidth:a?void 0:400},ellipsis:!a,children:o.title})),c)?o.title=(0,s.jsx)(n.wpx,{type:"text",size:"small",icon:o.icon,onClick:o.onClick,className:"ant-breadcrumb-link -mt-px px-1 text-inherit",children:o.title}):(o.icon&&(o.title=(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("span",{className:"anticon align-text-bottom",children:o.icon}),o.title]})),o.href&&o.title&&(o.title=(0,s.jsx)(r(),{href:o.href,className:"ant-breadcrumb-link",children:o.title}),delete o.href)),o}),[t]);return(0,s.jsx)(n.zrq,{items:a,...i})}},54409:function(e,t,i){"use strict";i.d(t,{Z:function(){return f}});var s=i(24246),n=i(13577),a=i(812),r=i(14047),o=i(68309),l=i(31883);let c=(0,n.IUT)({displayName:"MonitorOffIcon",viewBox:"0 0 12 12",path:(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.47125 1H5.85H6.15H6.51188L6.58875 1.36914L7.52062 5.83268L6.42408 4.98635L6.03375 3.11719L5.8038 4.50761L4.99323 3.882L5.40562 1.38867L5.47125 1ZM4.80795 5.0022L4.67675 5.79545L5.48735 6.42109L5.61854 5.62783L4.80795 5.0022ZM6.73856 6.49227L6.96125 7.55866L8.42407 8.6877L8.69498 8.00228L7.94864 7.42624L7.88625 7.58398L7.83501 7.33853L6.73856 6.49227ZM8.33138 6.45844L9.07755 7.03434L9.30188 6.4668H11.55H12V5.5293H11.55H9H8.69812L8.58375 5.82031L8.33138 6.45844ZM7.27551 9.06443L7.35399 9.125H7.28813L7.27551 9.06443ZM4.49147 6.91566L5.30209 7.54131L4.79437 10.6113L4.72875 11H4.35H4.05H3.69563L3.61313 10.6406L2.64563 6.46875H0.45H0V5.53125H0.45H2.69777L3.49646 6.1477L4.15125 8.97266L4.49147 6.91566Z",fill:"currentColor"}),(0,s.jsx)("g",{clipPath:"url(#clip0_341_3102)",children:(0,s.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.6755 10.4168L0.164222 2.304L0.775218 1.51237L11.2865 9.62517L10.6755 10.4168Z",fill:"currentColor"})}),(0,s.jsx)("defs",{children:(0,s.jsx)("clipPath",{id:"clip0_341_3102",children:(0,s.jsx)("rect",{width:"11.5",height:"9",fill:"white",transform:"translate(0 1.5)"})})})]})}),d=(0,n.IUT)({displayName:"MonitorOnIcon",viewBox:"0 0 12 10",path:(0,s.jsx)("path",{d:"M5.47125 0H5.85H6.15H6.51188L6.58875 0.369141L7.88625 6.58398L8.58375 4.82031L8.69812 4.5293H9H11.55H12V5.4668H11.55H9.30188L8.36625 7.83398L8.25188 8.125H7.95H7.65H7.28813L7.21125 7.75586L6.03375 2.11719L4.79437 9.61133L4.72875 10H4.35H4.05H3.69563L3.61313 9.64062L2.64563 5.46875H0.45H0V4.53125H0.45H3H3.35438L3.43688 4.89062L4.15125 7.97266L5.40562 0.388672L5.47125 0Z",fill:"currentColor"})});var u=i(79494),L=i(70675),g=i(7940),f=e=>{let{resource:t,ignoreChildActions:i=!1}=e,f=(0,g.G)(t),[x,{isLoading:h}]=(0,L.v8)(),[m,{isLoading:p}]=(0,L.vi)(),[I,{isLoading:j}]=(0,L.Tl)(),{successAlert:_,errorAlert:v}=(0,r.V)(),C=async()=>{let e=await x({staged_resource_urn:t.urn,monitor_config_id:t.monitor_config_id});(0,l.D4)(e)?v((0,a.e$)(e.error,"Failed to confirm resource")):_("Data discovery has started. The results may take some time to appear in the “Data discovery“ tab.","".concat(t.name||"The resource"," is now being monitored."))},A=async()=>{let e=await I({staged_resource_urn:t.urn});(0,l.D4)(e)?v((0,a.e$)(e.error),"Failed to un-mute resource"):_("".concat(t.name||"The resource"," has been un-muted and is now being monitored."))},T=async()=>{let e=await x({staged_resource_urn:t.urn,monitor_config_id:t.monitor_config_id,unmute_children:!0,classify_monitored_resources:!0});(0,l.D4)(e)?v((0,a.e$)(e.error),"Failed to un-mute resource"):_("Data discovery has started. The results may take some time to appear in the “Data discovery“ tab.","".concat(t.name||"The resource"," is now being monitored."))},D=async()=>{let e=await m({staged_resource_urn:t.urn});(0,l.D4)(e)?v((0,a.e$)(e.error),"Failed to mute resource"):_("Ignored data will not be monitored for changes or added to Fides datasets.","".concat(t.name||"Resource"," ignored"))},y=h||p||j,{diff_status:S,child_diff_statuses:b}=t,N=f===o.D$.SCHEMA,w=f===o.D$.FIELD,H=b&&(b[o.LL.CLASSIFICATION_ADDITION]||b[o.LL.CLASSIFICATION_UPDATE]),O=N&&void 0===S||!w&&S===o.LL.ADDITION||H,F=S!==o.LL.MUTED,R=S===o.LL.MUTED&&!w,Z=S===o.LL.MUTED&&w,E=b&&(b[o.LL.ADDITION]||b[o.LL.REMOVAL]),M=S===o.LL.MONITORED&&!i&&E&&!H;return(0,s.jsxs)(n.Ugi,{children:[(O||M)&&(0,s.jsx)(u.Z,{title:"Monitor",icon:(0,s.jsx)(d,{}),onClick:C,disabled:y,loading:h}),Z&&(0,s.jsx)(u.Z,{title:"Un-Mute",icon:(0,s.jsx)(d,{}),onClick:A,disabled:y,loading:h}),R&&(0,s.jsx)(u.Z,{title:"Monitor",icon:(0,s.jsx)(d,{}),onClick:T,disabled:y,loading:h}),F&&(0,s.jsx)(u.Z,{title:"Ignore",icon:(0,s.jsx)(c,{}),onClick:D,disabled:y,loading:p})]})}},91761:function(e,t,i){"use strict";var s=i(24246),n=i(13577),a=i(812),r=i(14047),o=i(7940),l=i(98559),c=i(68309),d=i(79494),u=i(70675);t.Z=e=>{let{resource:t}=e,[i,{isLoading:L}]=(0,u.v8)(),[g,{isLoading:f}]=(0,u.cM)(),[x,{isLoading:h}]=(0,u.vi)(),m=f||h||L,{diff_status:p,child_diff_statuses:I,top_level_field_name:j}=t,{successAlert:_,errorAlert:v}=(0,r.V)(),C=p===c.LL.CLASSIFICATION_ADDITION||p===c.LL.CLASSIFICATION_UPDATE,A=I&&(I[c.LL.CLASSIFICATION_ADDITION]||I[c.LL.CLASSIFICATION_UPDATE]),T=(C||A)&&!j,D=C||A,y=(0,o.G)(t)!==c.D$.FIELD,S=T&&D&&y,b=async()=>{let e=await g({staged_resource_urn:t.urn});(0,a.D4)(e)?v((0,a.e$)(e.error),"Failed to promote resource"):_('These changes have been added to a Fides dataset. To view, navigate to "Manage datasets".',"Table changes confirmed")},N=async()=>{let e=await x({staged_resource_urn:t.urn});(0,a.D4)(e)?v((0,a.e$)(e.error),"Failed to mute resource"):_("Ignored changes will not be added to a Fides dataset.","".concat(t.name||"Changes"," ignored"))},w=async()=>{let e=await i({staged_resource_urn:t.urn,monitor_config_id:t.monitor_config_id,start_classification:!0,diff_statuses_to_classify:[c.LL.CLASSIFICATION_ADDITION,c.LL.CLASSIFICATION_UPDATE,c.LL.CLASSIFYING,c.LL.CLASSIFICATION_QUEUED]});(0,a.D4)(e)?v((0,a.e$)(e.error),"Failed to reclassify resource"):_("Reclassification of ".concat((0,l.Z)(t)||"the resource"," has begun. The results may take some time to appear in the “Data discovery“ tab."),"Reclassification started")};return(0,s.jsxs)(n.Ugi,{gap:2,children:[T&&(0,s.jsx)(d.Z,{title:"Confirm",icon:(0,s.jsx)(n.nQG,{}),onClick:b,disabled:m,loading:f}),D&&(0,s.jsx)(d.Z,{title:"Ignore",icon:(0,s.jsx)(n.tpL,{}),onClick:N,disabled:m,loading:h}),y&&!S&&(0,s.jsx)(d.Z,{title:"Reclassify",icon:(0,s.jsx)(n.nyI,{}),onClick:w,disabled:m,loading:L}),S&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(n.LZC,{}),(0,s.jsxs)(n.v2r,{children:[(0,s.jsx)(n.j2t,{as:n.wpx,size:"small",type:"text",icon:(0,s.jsx)(n.nXP,{transform:"rotate(90deg)"}),className:"w-6 gap-0","data-testid":"actions-overflow-btn"}),(0,s.jsx)(n.qyq,{children:(0,s.jsx)(n.sNh,{onClick:w,icon:(0,s.jsx)(n.nyI,{}),"data-testid":"action-reclassify",children:"Reclassify"})})]})]})]})}},3680:function(e,t,i){"use strict";i.r(t),i.d(t,{default:function(){return H}});var s,n,a=i(24246),r=i(27378),o=i(35287),l=i(58754),c=i(47182),d=i(92222),u=i(59003),L=i(13577),g=i(47935),f=i(72625),x=i(70675),h=i(38347),m=i(87667),p=i(50169),I=i(80285),j=i(30952);(s=n||(n={})).DATASET="Dataset",s.CLASSIFICATION="Classification";var _=i(74241),v=i(28278),C=i(20449),A=e=>(0,C.Z)(e)===v.E.CLASSIFICATION?n.CLASSIFICATION:n.DATASET,T=i(54409),D=i(91761);let y={items:[],total:0,page:1,size:50,pages:1},S=()=>(0,a.jsx)(L.gCW,{mt:6,p:10,spacing:4,borderRadius:"base",maxW:"70%","data-testid":"empty-state",alignSelf:"center",margin:"auto",children:(0,a.jsxs)(L.gCW,{children:[(0,a.jsx)(L.xvT,{fontSize:"md",fontWeight:"600",children:"No activity found"}),(0,a.jsx)(L.xvT,{fontSize:"sm",children:"You're up to date!"})]})}),b=(0,d.Cl)();var N=e=>{let{onRowClick:t,statusFilters:i,childsStatusFilters:s}=e,[o,l]=(0,r.useState)(""),{PAGE_SIZES:c,pageSize:v,setPageSize:C,onPreviousPageClick:N,isPreviousPageDisabled:w,onNextPageClick:H,isNextPageDisabled:O,startRange:F,endRange:R,pageIndex:Z,setTotalPages:E}=(0,g.oi)(),{isFetching:M,isLoading:k,data:P}=(0,x.z8)({diff_status:i,child_diff_status:s,page:Z,size:v,search:o}),{items:U,total:V,pages:$}=(0,r.useMemo)(()=>null!=P?P:y,[P]);(0,r.useEffect)(()=>{E($)},[$,E]);let z=(0,r.useMemo)(()=>[b.accessor(e=>e.name,{id:"name",cell:e=>(0,a.jsx)(m.Z,{result:e.row.original}),header:e=>(0,a.jsx)(g.Rr,{value:"Name",...e})}),b.accessor(e=>e.urn,{id:"project",cell:e=>(0,a.jsx)(g.G3,{value:(0,_.Z)(e.getValue())}),header:e=>(0,a.jsx)(g.Rr,{value:"Project",...e})}),b.display({id:"status",cell:e=>(0,a.jsx)(p.Z,{result:e.row.original}),header:e=>(0,a.jsx)(g.Rr,{value:"Status",...e})}),b.accessor(e=>e.system,{id:"system",cell:e=>(0,a.jsx)(g.G3,{value:e.getValue()}),header:e=>(0,a.jsx)(g.Rr,{value:"System",...e})}),b.accessor(e=>e.monitor_config_id,{id:"monitor",cell:e=>(0,a.jsx)(g.G3,{value:e.getValue()}),header:e=>(0,a.jsx)(g.Rr,{value:"Detected by",...e})}),b.accessor(e=>e.updated_at,{id:"time",cell:e=>(0,a.jsx)(f.Cy,{time:e.getValue()}),header:e=>(0,a.jsx)(g.Rr,{value:"When",...e})}),b.accessor(e=>e,{id:"action",cell:e=>A(e.getValue())===n.DATASET?(0,a.jsx)(T.Z,{resource:e.getValue()}):(0,a.jsx)(D.Z,{resource:e.getValue()}),header:e=>(0,a.jsx)(g.Rr,{value:"Action",...e})})],[]),G=(0,u.b7)({getCoreRowModel:(0,d.sC)(),getGroupedRowModel:(0,d.qe)(),getExpandedRowModel:(0,d.rV)(),getRowId:I.Z,columns:z,manualPagination:!0,data:U,columnResizeMode:"onChange"});return k?(0,a.jsx)(g.I4,{rowHeight:36,numRows:36}):(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(g.Q$,{children:(0,a.jsxs)(L.kCb,{gap:6,align:"center",children:[(0,a.jsx)(L.xuv,{flexShrink:0,children:(0,a.jsx)(j.f,{value:o,onChange:l})}),(0,a.jsx)(h.Z,{})]})}),(0,a.jsx)(g.ZK,{tableInstance:G,onRowClick:t,emptyTableNotice:(0,a.jsx)(S,{})}),(0,a.jsx)(g.s8,{totalRows:V||0,pageSizes:c,setPageSize:C,onPreviousPageClick:N,isPreviousPageDisabled:w||M,onNextPageClick:H,isNextPageDisabled:O||M,startRange:F,endRange:R})]})},w=i(68309),H=()=>{let{navigateToDetectionResults:e,navigateToDiscoveryResults:t}=(0,c.Z)();return(0,a.jsxs)(o.Z,{title:"Data discovery",children:[(0,a.jsx)(l.Z,{heading:"All activity"}),(0,a.jsx)(N,{onRowClick:i=>{if(A(i)===n.DATASET){e({resourceUrn:i.urn});return}t({resourceUrn:i.urn})},statusFilters:[w.LL.ADDITION,w.LL.REMOVAL,w.LL.CLASSIFICATION_ADDITION,w.LL.CLASSIFICATION_UPDATE],childsStatusFilters:[w.LL.ADDITION,w.LL.REMOVAL,w.LL.CLASSIFICATION_ADDITION,w.LL.CLASSIFICATION_UPDATE]})]})}},31883:function(e,t,i){"use strict";i.d(t,{Bw:function(){return s.Bw},D4:function(){return s.D4}});var s=i(19043)}},function(e){e.O(0,[431,2888,9774,179],function(){return e(e.s=45550)}),_N_E=e.O()}]);
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7477],{74833:function(e,t,i){var s=i(56127),n=/^\s+/;e.exports=function(e){return e?e.slice(0,s(e)+1).replace(n,""):e}},56127:function(e){var t=/\s/;e.exports=function(e){for(var i=e.length;i--&&t.test(e.charAt(i)););return i}},11611:function(e){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},55193:function(e,t,i){var s=i(99736),n=i(92360);e.exports=function(e){return"symbol"==typeof e||n(e)&&"[object Symbol]"==s(e)}},91936:function(e,t,i){var s=i(74833),n=i(11611),a=i(55193),r=0/0,o=/^[-+]0x[0-9a-f]+$/i,l=/^0b[01]+$/i,c=/^0o[0-7]+$/i,d=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(a(e))return r;if(n(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=n(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=s(e);var i=l.test(e);return i||c.test(e)?d(e.slice(2),i?2:8):o.test(e)?r:+e}},45550:function(e,t,i){(window.__NEXT_P=window.__NEXT_P||[]).push(["/data-discovery/activity",function(){return i(3680)}])},58754:function(e,t,i){"use strict";var s=i(24246),n=i(86920),a=i(70788);t.Z=e=>{let{heading:t,breadcrumbItems:i,isSticky:r=!0,children:o,rightContent:l,style:c,...d}=e;return(0,s.jsxs)("div",{...d,style:r?{position:"sticky",top:"-24px",paddingTop:"24px",paddingBottom:"24px",paddingLeft:"40px",marginLeft:"-40px",paddingRight:"40px",marginRight:"-40px",marginTop:"-24px",left:0,zIndex:20,backgroundColor:"white",...c}:{paddingBottom:"24px",...c},children:[(0,s.jsxs)(n.jqI,{justify:"space-between",children:["string"==typeof t?(0,s.jsx)(n.lQT,{className:i||o?"pb-4":void 0,level:1,"data-testid":"page-heading",children:t}):t,l&&(0,s.jsx)("div",{"data-testid":"page-header-right-content",children:l})]}),!!i&&(0,s.jsx)(a.m,{className:o?"pb-4":void 0,items:i,"data-testid":"page-breadcrumb"}),o]})}},70788:function(e,t,i){"use strict";i.d(t,{m:function(){return c}});var s=i(24246),n=i(86920),a=i(79894),r=i.n(a),o=i(27378);let{Text:l}=n.AntTypography,c=e=>{let{items:t,...i}=e,a=(0,o.useMemo)(()=>null==t?void 0:t.map((e,i)=>{let a=i===t.length-1,o={...e},c=o.onClick&&!o.href;return("string"==typeof o.title&&(o.title=(0,s.jsx)(l,{style:{color:"inherit",maxWidth:a?void 0:400},ellipsis:!a,children:o.title})),c)?o.title=(0,s.jsx)(n.wpx,{type:"text",size:"small",icon:o.icon,onClick:o.onClick,className:"ant-breadcrumb-link -mt-px px-1 text-inherit",children:o.title}):(o.icon&&(o.title=(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("span",{className:"anticon align-text-bottom",children:o.icon}),o.title]})),o.href&&o.title&&(o.title=(0,s.jsx)(r(),{href:o.href,className:"ant-breadcrumb-link",children:o.title}),delete o.href)),o}),[t]);return(0,s.jsx)(n.zrq,{items:a,...i})}},54409:function(e,t,i){"use strict";i.d(t,{Z:function(){return f}});var s=i(24246),n=i(86920),a=i(812),r=i(14047),o=i(68309),l=i(31883);let c=(0,n.IUT)({displayName:"MonitorOffIcon",viewBox:"0 0 12 12",path:(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.47125 1H5.85H6.15H6.51188L6.58875 1.36914L7.52062 5.83268L6.42408 4.98635L6.03375 3.11719L5.8038 4.50761L4.99323 3.882L5.40562 1.38867L5.47125 1ZM4.80795 5.0022L4.67675 5.79545L5.48735 6.42109L5.61854 5.62783L4.80795 5.0022ZM6.73856 6.49227L6.96125 7.55866L8.42407 8.6877L8.69498 8.00228L7.94864 7.42624L7.88625 7.58398L7.83501 7.33853L6.73856 6.49227ZM8.33138 6.45844L9.07755 7.03434L9.30188 6.4668H11.55H12V5.5293H11.55H9H8.69812L8.58375 5.82031L8.33138 6.45844ZM7.27551 9.06443L7.35399 9.125H7.28813L7.27551 9.06443ZM4.49147 6.91566L5.30209 7.54131L4.79437 10.6113L4.72875 11H4.35H4.05H3.69563L3.61313 10.6406L2.64563 6.46875H0.45H0V5.53125H0.45H2.69777L3.49646 6.1477L4.15125 8.97266L4.49147 6.91566Z",fill:"currentColor"}),(0,s.jsx)("g",{clipPath:"url(#clip0_341_3102)",children:(0,s.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.6755 10.4168L0.164222 2.304L0.775218 1.51237L11.2865 9.62517L10.6755 10.4168Z",fill:"currentColor"})}),(0,s.jsx)("defs",{children:(0,s.jsx)("clipPath",{id:"clip0_341_3102",children:(0,s.jsx)("rect",{width:"11.5",height:"9",fill:"white",transform:"translate(0 1.5)"})})})]})}),d=(0,n.IUT)({displayName:"MonitorOnIcon",viewBox:"0 0 12 10",path:(0,s.jsx)("path",{d:"M5.47125 0H5.85H6.15H6.51188L6.58875 0.369141L7.88625 6.58398L8.58375 4.82031L8.69812 4.5293H9H11.55H12V5.4668H11.55H9.30188L8.36625 7.83398L8.25188 8.125H7.95H7.65H7.28813L7.21125 7.75586L6.03375 2.11719L4.79437 9.61133L4.72875 10H4.35H4.05H3.69563L3.61313 9.64062L2.64563 5.46875H0.45H0V4.53125H0.45H3H3.35438L3.43688 4.89062L4.15125 7.97266L5.40562 0.388672L5.47125 0Z",fill:"currentColor"})});var u=i(79494),L=i(70675),g=i(7940),f=e=>{let{resource:t,ignoreChildActions:i=!1}=e,f=(0,g.G)(t),[x,{isLoading:h}]=(0,L.v8)(),[m,{isLoading:p}]=(0,L.vi)(),[I,{isLoading:j}]=(0,L.Tl)(),{successAlert:_,errorAlert:v}=(0,r.V)(),C=async()=>{let e=await x({staged_resource_urn:t.urn,monitor_config_id:t.monitor_config_id});(0,l.D4)(e)?v((0,a.e$)(e.error,"Failed to confirm resource")):_("Data discovery has started. The results may take some time to appear in the “Data discovery“ tab.","".concat(t.name||"The resource"," is now being monitored."))},A=async()=>{let e=await I({staged_resource_urn:t.urn});(0,l.D4)(e)?v((0,a.e$)(e.error),"Failed to un-mute resource"):_("".concat(t.name||"The resource"," has been un-muted and is now being monitored."))},T=async()=>{let e=await x({staged_resource_urn:t.urn,monitor_config_id:t.monitor_config_id,unmute_children:!0,classify_monitored_resources:!0});(0,l.D4)(e)?v((0,a.e$)(e.error),"Failed to un-mute resource"):_("Data discovery has started. The results may take some time to appear in the “Data discovery“ tab.","".concat(t.name||"The resource"," is now being monitored."))},D=async()=>{let e=await m({staged_resource_urn:t.urn});(0,l.D4)(e)?v((0,a.e$)(e.error),"Failed to mute resource"):_("Ignored data will not be monitored for changes or added to Fides datasets.","".concat(t.name||"Resource"," ignored"))},y=h||p||j,{diff_status:S,child_diff_statuses:b}=t,N=f===o.D$.SCHEMA,w=f===o.D$.FIELD,H=b&&(b[o.LL.CLASSIFICATION_ADDITION]||b[o.LL.CLASSIFICATION_UPDATE]),O=N&&void 0===S||!w&&S===o.LL.ADDITION||H,F=S!==o.LL.MUTED,R=S===o.LL.MUTED&&!w,Z=S===o.LL.MUTED&&w,E=b&&(b[o.LL.ADDITION]||b[o.LL.REMOVAL]),M=S===o.LL.MONITORED&&!i&&E&&!H;return(0,s.jsxs)(n.Ugi,{children:[(O||M)&&(0,s.jsx)(u.Z,{title:"Monitor",icon:(0,s.jsx)(d,{}),onClick:C,disabled:y,loading:h}),Z&&(0,s.jsx)(u.Z,{title:"Un-Mute",icon:(0,s.jsx)(d,{}),onClick:A,disabled:y,loading:h}),R&&(0,s.jsx)(u.Z,{title:"Monitor",icon:(0,s.jsx)(d,{}),onClick:T,disabled:y,loading:h}),F&&(0,s.jsx)(u.Z,{title:"Ignore",icon:(0,s.jsx)(c,{}),onClick:D,disabled:y,loading:p})]})}},91761:function(e,t,i){"use strict";var s=i(24246),n=i(86920),a=i(812),r=i(14047),o=i(7940),l=i(98559),c=i(68309),d=i(79494),u=i(70675);t.Z=e=>{let{resource:t}=e,[i,{isLoading:L}]=(0,u.v8)(),[g,{isLoading:f}]=(0,u.cM)(),[x,{isLoading:h}]=(0,u.vi)(),m=f||h||L,{diff_status:p,child_diff_statuses:I,top_level_field_name:j}=t,{successAlert:_,errorAlert:v}=(0,r.V)(),C=p===c.LL.CLASSIFICATION_ADDITION||p===c.LL.CLASSIFICATION_UPDATE,A=I&&(I[c.LL.CLASSIFICATION_ADDITION]||I[c.LL.CLASSIFICATION_UPDATE]),T=(C||A)&&!j,D=C||A,y=(0,o.G)(t)!==c.D$.FIELD,S=T&&D&&y,b=async()=>{let e=await g({staged_resource_urn:t.urn});(0,a.D4)(e)?v((0,a.e$)(e.error),"Failed to promote resource"):_('These changes have been added to a Fides dataset. To view, navigate to "Manage datasets".',"Table changes confirmed")},N=async()=>{let e=await x({staged_resource_urn:t.urn});(0,a.D4)(e)?v((0,a.e$)(e.error),"Failed to mute resource"):_("Ignored changes will not be added to a Fides dataset.","".concat(t.name||"Changes"," ignored"))},w=async()=>{let e=await i({staged_resource_urn:t.urn,monitor_config_id:t.monitor_config_id,start_classification:!0,diff_statuses_to_classify:[c.LL.CLASSIFICATION_ADDITION,c.LL.CLASSIFICATION_UPDATE,c.LL.CLASSIFYING,c.LL.CLASSIFICATION_QUEUED]});(0,a.D4)(e)?v((0,a.e$)(e.error),"Failed to reclassify resource"):_("Reclassification of ".concat((0,l.Z)(t)||"the resource"," has begun. The results may take some time to appear in the “Data discovery“ tab."),"Reclassification started")};return(0,s.jsxs)(n.Ugi,{gap:2,children:[T&&(0,s.jsx)(d.Z,{title:"Confirm",icon:(0,s.jsx)(n.nQG,{}),onClick:b,disabled:m,loading:f}),D&&(0,s.jsx)(d.Z,{title:"Ignore",icon:(0,s.jsx)(n.tpL,{}),onClick:N,disabled:m,loading:h}),y&&!S&&(0,s.jsx)(d.Z,{title:"Reclassify",icon:(0,s.jsx)(n.nyI,{}),onClick:w,disabled:m,loading:L}),S&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(n.LZC,{}),(0,s.jsxs)(n.v2r,{children:[(0,s.jsx)(n.j2t,{as:n.wpx,size:"small",type:"text",icon:(0,s.jsx)(n.nXP,{transform:"rotate(90deg)"}),className:"w-6 gap-0","data-testid":"actions-overflow-btn"}),(0,s.jsx)(n.qyq,{children:(0,s.jsx)(n.sNh,{onClick:w,icon:(0,s.jsx)(n.nyI,{}),"data-testid":"action-reclassify",children:"Reclassify"})})]})]})]})}},3680:function(e,t,i){"use strict";i.r(t),i.d(t,{default:function(){return H}});var s,n,a=i(24246),r=i(27378),o=i(35287),l=i(58754),c=i(47182),d=i(92222),u=i(59003),L=i(86920),g=i(47935),f=i(72625),x=i(70675),h=i(38347),m=i(87667),p=i(50169),I=i(80285),j=i(30952);(s=n||(n={})).DATASET="Dataset",s.CLASSIFICATION="Classification";var _=i(74241),v=i(28278),C=i(20449),A=e=>(0,C.Z)(e)===v.E.CLASSIFICATION?n.CLASSIFICATION:n.DATASET,T=i(54409),D=i(91761);let y={items:[],total:0,page:1,size:50,pages:1},S=()=>(0,a.jsx)(L.gCW,{mt:6,p:10,spacing:4,borderRadius:"base",maxW:"70%","data-testid":"empty-state",alignSelf:"center",margin:"auto",children:(0,a.jsxs)(L.gCW,{children:[(0,a.jsx)(L.xvT,{fontSize:"md",fontWeight:"600",children:"No activity found"}),(0,a.jsx)(L.xvT,{fontSize:"sm",children:"You're up to date!"})]})}),b=(0,d.Cl)();var N=e=>{let{onRowClick:t,statusFilters:i,childsStatusFilters:s}=e,[o,l]=(0,r.useState)(""),{PAGE_SIZES:c,pageSize:v,setPageSize:C,onPreviousPageClick:N,isPreviousPageDisabled:w,onNextPageClick:H,isNextPageDisabled:O,startRange:F,endRange:R,pageIndex:Z,setTotalPages:E}=(0,g.oi)(),{isFetching:M,isLoading:k,data:P}=(0,x.z8)({diff_status:i,child_diff_status:s,page:Z,size:v,search:o}),{items:U,total:V,pages:$}=(0,r.useMemo)(()=>null!=P?P:y,[P]);(0,r.useEffect)(()=>{E($)},[$,E]);let z=(0,r.useMemo)(()=>[b.accessor(e=>e.name,{id:"name",cell:e=>(0,a.jsx)(m.Z,{result:e.row.original}),header:e=>(0,a.jsx)(g.Rr,{value:"Name",...e})}),b.accessor(e=>e.urn,{id:"project",cell:e=>(0,a.jsx)(g.G3,{value:(0,_.Z)(e.getValue())}),header:e=>(0,a.jsx)(g.Rr,{value:"Project",...e})}),b.display({id:"status",cell:e=>(0,a.jsx)(p.Z,{result:e.row.original}),header:e=>(0,a.jsx)(g.Rr,{value:"Status",...e})}),b.accessor(e=>e.system,{id:"system",cell:e=>(0,a.jsx)(g.G3,{value:e.getValue()}),header:e=>(0,a.jsx)(g.Rr,{value:"System",...e})}),b.accessor(e=>e.monitor_config_id,{id:"monitor",cell:e=>(0,a.jsx)(g.G3,{value:e.getValue()}),header:e=>(0,a.jsx)(g.Rr,{value:"Detected by",...e})}),b.accessor(e=>e.updated_at,{id:"time",cell:e=>(0,a.jsx)(f.Cy,{time:e.getValue()}),header:e=>(0,a.jsx)(g.Rr,{value:"When",...e})}),b.accessor(e=>e,{id:"action",cell:e=>A(e.getValue())===n.DATASET?(0,a.jsx)(T.Z,{resource:e.getValue()}):(0,a.jsx)(D.Z,{resource:e.getValue()}),header:e=>(0,a.jsx)(g.Rr,{value:"Action",...e})})],[]),G=(0,u.b7)({getCoreRowModel:(0,d.sC)(),getGroupedRowModel:(0,d.qe)(),getExpandedRowModel:(0,d.rV)(),getRowId:I.Z,columns:z,manualPagination:!0,data:U,columnResizeMode:"onChange"});return k?(0,a.jsx)(g.I4,{rowHeight:36,numRows:36}):(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(g.Q$,{children:(0,a.jsxs)(L.kCb,{gap:6,align:"center",children:[(0,a.jsx)(L.xuv,{flexShrink:0,children:(0,a.jsx)(j.f,{value:o,onChange:l})}),(0,a.jsx)(h.Z,{})]})}),(0,a.jsx)(g.ZK,{tableInstance:G,onRowClick:t,emptyTableNotice:(0,a.jsx)(S,{})}),(0,a.jsx)(g.s8,{totalRows:V||0,pageSizes:c,setPageSize:C,onPreviousPageClick:N,isPreviousPageDisabled:w||M,onNextPageClick:H,isNextPageDisabled:O||M,startRange:F,endRange:R})]})},w=i(68309),H=()=>{let{navigateToDetectionResults:e,navigateToDiscoveryResults:t}=(0,c.Z)();return(0,a.jsxs)(o.Z,{title:"Data discovery",children:[(0,a.jsx)(l.Z,{heading:"All activity"}),(0,a.jsx)(N,{onRowClick:i=>{if(A(i)===n.DATASET){e({resourceUrn:i.urn});return}t({resourceUrn:i.urn})},statusFilters:[w.LL.ADDITION,w.LL.REMOVAL,w.LL.CLASSIFICATION_ADDITION,w.LL.CLASSIFICATION_UPDATE],childsStatusFilters:[w.LL.ADDITION,w.LL.REMOVAL,w.LL.CLASSIFICATION_ADDITION,w.LL.CLASSIFICATION_UPDATE]})]})}},31883:function(e,t,i){"use strict";i.d(t,{Bw:function(){return s.Bw},D4:function(){return s.D4}});var s=i(19043)}},function(e){e.O(0,[431,2888,9774,179],function(){return e(e.s=45550)}),_N_E=e.O()}]);
@@ -1 +1 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9738],{53910:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/datamap",function(){return n(18839)}])},77213:function(e,t,n){"use strict";n.d(t,{Z:function(){return x}});var l=n(24246),i=n(13577),r=n(88038),s=n.n(r),a=n(86677);n(27378);var o=n(25980),d=n(90867),c=n(77830),u=()=>{let e=(0,a.useRouter)();return(0,l.jsx)(i.xuv,{bg:"gray.50",border:"1px solid",borderColor:"blue.400",borderRadius:"md",justifyContent:"space-between",p:5,mb:5,mt:5,children:(0,l.jsxs)(i.xuv,{children:[(0,l.jsxs)(i.Kqy,{direction:{base:"column",sm:"row"},justifyContent:"space-between",children:[(0,l.jsx)(i.xvT,{fontWeight:"semibold",children:"Configure your storage and messaging provider"}),(0,l.jsx)(i.wpx,{onClick:()=>{e.push(c.fz)},children:"Configure"})]}),(0,l.jsxs)(i.xvT,{children:["Before Fides can process your privacy requests we need two simple steps to configure your storage and email client."," "]})]})})},x=e=>{let{children:t,title:n,padded:r=!0,mainProps:c}=e,x=(0,o.hz)(),h=(0,a.useRouter)(),m="/privacy-requests"===h.pathname||"/datastore-connection"===h.pathname,g=!(x.flags.privacyRequestsConfiguration&&m),{data:p}=(0,d.JE)(void 0,{skip:g}),{data:f}=(0,d.PW)(void 0,{skip:g}),j=x.flags.privacyRequestsConfiguration&&(!p||!f)&&m;return(0,l.jsxs)(i.kCb,{"data-testid":n,direction:"column",h:"100vh",children:[(0,l.jsxs)(s(),{children:[(0,l.jsxs)("title",{children:["Fides Admin UI - ",n]}),(0,l.jsx)("meta",{name:"description",content:"Privacy Engineering Platform"}),(0,l.jsx)("link",{rel:"icon",href:"/favicon.ico"})]}),(0,l.jsxs)(i.kCb,{as:"main",direction:"column",py:r?6:0,px:r?10:0,h:r?"calc(100% - 48px)":"full",flex:1,minWidth:0,overflow:"auto",...c,children:[j?(0,l.jsx)(u,{}):null,t]})]})}},54349:function(e,t,n){"use strict";n.d(t,{Y:function(){return s}});var l=n(24246),i=n(27378);let r=(0,i.createRef)(),s=(0,i.createContext)(r);t.Z=e=>{let{children:t}=e;return(0,l.jsx)(s.Provider,{value:r,children:t})}},99811:function(e,t,n){"use strict";n.d(t,{m:function(){return i}});var l=n(27378);class i{updateTableInstance(e){this.tableInstance=e}constructor(e=null){this.tableInstance=e,this.updateTableInstance=this.updateTableInstance.bind(this)}}let r=l.createContext(new i);t.Z=r},18839:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return H}});var l=n(24246),i=n(27378),r=n(45938),s=n(77213),a=n(58754),o=n(13577),d=n(65218),c=n.n(d),u=n(16134),x=n(35258),h=n(54349),m=n(92222),g=n(59003),p=n(30002),f=n(28079),j=n(49600),v=n(99811);let y=e=>{var t;let{column:n}=e,{tableInstance:l}=(0,i.useContext)(v.Z),r=i.useMemo(()=>Array.from(n.getFacetedUniqueValues().keys()),[n]),s=i.useMemo(()=>{let e={};return r.forEach(t=>{e[t]=!1}),e},[r]);return{filterValue:null!==(t=n.getFilterValue())&&void 0!==t?t:s,clearFilterOptions:()=>{let e={};r.forEach(t=>{e[t]=!1}),n.setFilterValue(e)},toggleFilterOption:(e,t)=>{var i;let r={...null!==(i=n.getFilterValue())&&void 0!==i?i:s,[e]:t};Object.values(r).every(e=>!e)?null==l||l.setColumnFilters(null==l?void 0:l.getState().columnFilters.filter(e=>e.id!==n.id)):n.setFilterValue(r)},options:r,header:n.columnDef.header}};var b=n(57072);let w=(0,m.Cl)(),C={multifield:(e,t,n)=>n[e.original[t]]},k=()=>{let e=(0,u.T)(),{updateTableInstance:t}=(0,i.useContext)(v.Z),n=(0,u.C)(j.eo),{data:l,isLoading:r}=(0,j.Ex)({organizationName:"default_organization"});(0,b.MO)(),(0,f.fd)(),(0,p.te)();let s=(0,i.useRef)(!1);(0,i.useEffect)(()=>{if(l){let{columns:t,rows:n}=l;e((0,j.dd)(t)),s.current||(s.current=!0,0===n.length?e((0,j.ym)(!0)):e((0,j.ym)(!1)))}},[l,e]);let a=(0,i.useMemo)(()=>l?l.rows:[],[l]),o=(0,i.useMemo)(()=>(n||[]).map(e=>{let{text:t,value:n}=e;return w.accessor(e=>e[n],{id:n,header:t,cell:e=>{let{getValue:t}=e,n=t();return Array.isArray(n)?n.join(", "):n},filterFn:C.multifield})}),[n]),d=(0,g.b7)({columns:o,data:a,filterFns:C,getCoreRowModel:(0,m.sC)(),getFilteredRowModel:(0,m.vL)(),getFacetedRowModel:(0,m.o6)(),getFacetedUniqueValues:(0,m.JG)(),manualPagination:!0,columnResizeMode:"onChange"});return(0,i.useEffect)(()=>t(d),[d,t]),{...d,isLoading:r}};var F=n(83766),S=n.n(F),I=n(25980),O=n(46238),R=n(47935),M=n(22968);let _=e=>{var t,n,i;let{option:r,columnId:s,filterValue:a,toggleFilterOption:d}=e,c=(0,u.C)(b.L5),x=s===M.Ux&&null!==(n=null===(t=c.get(r))||void 0===t?void 0:t.name)&&void 0!==n?n:r;return(0,l.jsx)(o.XZJ,{value:r,width:"193px",height:"20px",mb:"25px",isChecked:null!==(i=a[r])&&void 0!==i&&i,onChange:e=>{let{target:t}=e;d(r,t.checked)},_focusWithin:{bg:"gray.100"},colorScheme:"complimentary",children:(0,l.jsx)(o.xvT,{fontSize:"sm",lineHeight:5,height:"20px",width:"170px",textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap",children:x})},r)};var T=e=>{let{column:t}=e,{filterValue:n,toggleFilterOption:r,options:s}=y({column:t}),[a,d]=(0,i.useState)(!1),c=a?s:s.slice(0,15),u=s.length>15;return(0,l.jsx)(o.UQy,{width:"100%",allowToggle:!0,children:(0,l.jsxs)(o.Qdk,{border:"0px",children:[(0,l.jsx)(o.X6q,{height:"56px",children:(0,l.jsxs)(o.KFZ,{height:"100%",children:[(0,l.jsx)(o.xuv,{flex:"1",alignItems:"center",justifyContent:"center",textAlign:"left",children:t.columnDef.header}),(0,l.jsx)(o.XEm,{})]})}),(0,l.jsxs)(o.Hk3,{children:[(0,l.jsx)(o.MIq,{columns:3,children:c.map(e=>(0,l.jsx)(_,{columnId:t.id,option:e,filterValue:n,toggleFilterOption:r},e))}),!a&&u?(0,l.jsx)(o.wpx,{type:"text",onClick:()=>{d(!0)},children:"View more"}):null,a&&u?(0,l.jsx)(o.wpx,{type:"text",onClick:()=>{d(!1)},children:"View less"}):null]})]})},t.id)};let Z=e=>{let{heading:t,children:n}=e;return(0,l.jsxs)(o.xuv,{padding:"24px 8px 8px 24px",children:[(0,l.jsx)(o.X6q,{size:"md",lineHeight:6,fontWeight:"bold",mb:2,children:t}),n]})};var z=e=>{let t,{isOpen:n,onClose:r}=e,{tableInstance:s}=(0,i.useContext)(v.Z),a=null==s?void 0:s.getHeaderGroups(),d=(e,t)=>e.filter(e=>e.id===t).map(e=>(0,l.jsx)(T,{column:e.column},t)),c=(0,i.useMemo)(()=>(null==a?void 0:a[0].headers)||[],[a]);return(0,l.jsxs)(o.u_l,{isOpen:n,onClose:r,isCentered:!0,size:"2xl",children:[(0,l.jsx)(o.ZAr,{}),(0,l.jsxs)(o.hzk,{children:[(0,l.jsx)(o.xBx,{children:"Filters"}),(0,l.jsx)(o.olH,{}),(0,l.jsx)(o.izJ,{}),(0,l.jsx)(o.fef,{maxH:"85vh",padding:"0px",overflowX:"auto",children:(t=[M.vy,M.Ux,M.OL],c.some(e=>t.indexOf(e.id)>-1))?(0,l.jsxs)(Z,{heading:"Privacy attributes",children:[d(c,M.vy),d(c,M.Ux),d(c,M.OL)]}):null}),(0,l.jsx)(o.mzw,{children:(0,l.jsxs)(o.xuv,{display:"flex",justifyContent:"space-between",width:"100%",children:[(0,l.jsx)(o.wpx,{onClick:()=>{null==s||s.resetColumnFilters()},className:"mr-3 grow",children:"Reset Filters"}),(0,l.jsx)(o.wpx,{onClick:r,type:"primary",className:"grow",children:"Done"})]})})]})]})};let E=()=>{let{isOpen:e,onOpen:t,onClose:n}=(0,o.qY0)();return{isFilterModalOpen:e,onFilterModalOpen:t,onFilterModalClose:n}};var P=()=>{let{isFilterModalOpen:e,onFilterModalOpen:t,onFilterModalClose:n}=E(),{tableInstance:r}=(0,i.useContext)(v.Z),{systemsCount:s,dictionaryService:a}=(0,I.hz)(),d=null==r?void 0:r.getRowModel(),c=(0,i.useMemo)(()=>{let e=(null==d?void 0:d.rows)||[];return S()(null==e?void 0:e.map(e=>e.original["system.fides_key"]))},[d]);if(!r)return null;let u=c.length,x=r.getState().columnFilters.length;return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)(o.kCb,{justifyContent:"flex-end",flexDirection:"row",alignItems:"center",flexWrap:"wrap",rowGap:4,columnGap:4,children:[(0,l.jsx)(o.kCb,{flexGrow:1,children:(0,l.jsx)(R.HO,{globalFilter:r.getState().globalFilter,setGlobalFilter:r.setGlobalFilter})}),(0,l.jsxs)(o.kCb,{children:[s>0?(0,l.jsxs)(o.kCb,{alignItems:"center",borderRadius:"md",gap:1,marginRight:4,children:[(0,l.jsxs)(o.xvT,{fontSize:"xs",children:[u," of ",s," systems displayed"]}),a?(0,l.jsx)(O.b,{label:"Note that Global Vendor List (GVL) and Additional Consent (AC) systems are not currently included in these reports"}):null]}):null,(0,l.jsxs)(o.wpx,{"aria-label":"Open Filter Settings",onClick:t,children:["Filter",x>0?(0,l.jsx)(o.j8w,{className:"ml-2",children:x}):null]})]})]}),(0,l.jsx)(z,{isOpen:e,onClose:n})]})},q=n(38943),N=n(77830),V=()=>(0,l.jsx)(o.M5Y,{flex:1,"data-testid":"get-started-modal",backgroundColor:"gray.100",children:(0,l.jsx)(o.xuv,{backgroundColor:"white",p:10,borderRadius:"6px",boxShadow:"0px 1px 3px rgba(0, 0, 0, 0.1), 0px 1px 2px rgba(0, 0, 0, 0.06)",maxWidth:{base:"80%",lg:"60%",xl:"50%"},maxHeight:"90%",textAlign:"center",children:(0,l.jsxs)(o.Kqy,{spacing:4,children:[(0,l.jsx)(o.xvT,{color:"gray.700",fontWeight:"600",children:"Privacy engineering can seem like an endlessly complex confluence of legal and data engineering terminology—fear not—Fides is here to simplify this."}),(0,l.jsx)(o.xvT,{children:"Start by scanning your infrastructure. The scanner will connect to your infrastructure to automatically scan and create a list of all systems available and then classify each system containing PII."}),(0,l.jsx)(o.xvT,{children:"Let's get started!"}),(0,l.jsx)(o.xuv,{children:(0,l.jsx)(o.wpx,{href:N.xo,role:"link",type:"primary",className:"w-fit","data-testid":"add-systems-btn",children:"Add Systems"})})]})})});let W=c()(()=>Promise.all([n.e(5199),n.e(4804),n.e(9392)]).then(n.bind(n,19392)),{loadableGenerated:{webpack:()=>[19392]},ssr:!1}),A=()=>{let e=(0,u.C)(q.Xt),t=(0,i.useContext)(h.Y),{attemptAction:n}=(0,r.oI)(),[l,s]=(0,i.useState)(),a=(0,i.useCallback)(e=>{n().then(t=>{t&&s(e)})},[n,s]),o=(0,i.useCallback)(()=>{n().then(e=>{if(e&&l){if(t.current){var n;null===(n=t.current)||void 0===n||n.$id(l).unselect()}s(void 0)}})},[n,t,l]);return{isGettingStarted:e,selectedSystemId:l,setSelectedSystemId:a,resetSelectedSystemId:o}};var G=()=>{let{isGettingStarted:e,setSelectedSystemId:t,selectedSystemId:n,resetSelectedSystemId:i}=A(),{isLoading:r}=k();return r?(0,l.jsx)(o.M5Y,{width:"100%",flex:"1",children:(0,l.jsx)(o.$jN,{})}):e?(0,l.jsx)(V,{}):(0,l.jsxs)(o.kCb,{direction:"column",height:"100%",children:[(0,l.jsx)(o.xuv,{marginBottom:3,marginRight:10,children:(0,l.jsx)(P,{})}),(0,l.jsxs)(o.kCb,{position:"relative",flex:1,direction:"row",overflow:"auto",borderWidth:"1px",borderStyle:"solid",borderColor:"gray.200",children:[(0,l.jsx)(o.xuv,{flex:1,minWidth:"50%",maxWidth:"100%",children:(0,l.jsx)(W,{setSelectedSystemId:t})}),(0,l.jsx)(x.Z,{selectedSystemId:n,resetSelectedSystemId:i})]})]})},H=()=>{let e=(0,i.useMemo)(()=>new v.m,[]);return(0,l.jsxs)(s.Z,{title:"Data lineage",mainProps:{padding:"24px 0 0 40px"},children:[(0,l.jsx)(a.Z,{style:{paddingLeft:0},heading:"Data lineage"}),(0,l.jsx)(v.Z.Provider,{value:e,children:(0,l.jsxs)(h.Z,{children:[(0,l.jsx)(G,{}),(0,l.jsx)(r.eB,{})]})})]})}}},function(e){e.O(0,[255,9951,4230,2888,9774,179],function(){return e(e.s=53910)}),_N_E=e.O()}]);
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9738],{53910:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/datamap",function(){return n(18839)}])},77213:function(e,t,n){"use strict";n.d(t,{Z:function(){return x}});var l=n(24246),i=n(86920),r=n(88038),s=n.n(r),a=n(86677);n(27378);var o=n(25980),d=n(90867),c=n(77830),u=()=>{let e=(0,a.useRouter)();return(0,l.jsx)(i.xuv,{bg:"gray.50",border:"1px solid",borderColor:"blue.400",borderRadius:"md",justifyContent:"space-between",p:5,mb:5,mt:5,children:(0,l.jsxs)(i.xuv,{children:[(0,l.jsxs)(i.Kqy,{direction:{base:"column",sm:"row"},justifyContent:"space-between",children:[(0,l.jsx)(i.xvT,{fontWeight:"semibold",children:"Configure your storage and messaging provider"}),(0,l.jsx)(i.wpx,{onClick:()=>{e.push(c.fz)},children:"Configure"})]}),(0,l.jsxs)(i.xvT,{children:["Before Fides can process your privacy requests we need two simple steps to configure your storage and email client."," "]})]})})},x=e=>{let{children:t,title:n,padded:r=!0,mainProps:c}=e,x=(0,o.hz)(),h=(0,a.useRouter)(),m="/privacy-requests"===h.pathname||"/datastore-connection"===h.pathname,g=!(x.flags.privacyRequestsConfiguration&&m),{data:p}=(0,d.JE)(void 0,{skip:g}),{data:f}=(0,d.PW)(void 0,{skip:g}),j=x.flags.privacyRequestsConfiguration&&(!p||!f)&&m;return(0,l.jsxs)(i.kCb,{"data-testid":n,direction:"column",h:"100vh",children:[(0,l.jsxs)(s(),{children:[(0,l.jsxs)("title",{children:["Fides Admin UI - ",n]}),(0,l.jsx)("meta",{name:"description",content:"Privacy Engineering Platform"}),(0,l.jsx)("link",{rel:"icon",href:"/favicon.ico"})]}),(0,l.jsxs)(i.kCb,{as:"main",direction:"column",py:r?6:0,px:r?10:0,h:r?"calc(100% - 48px)":"full",flex:1,minWidth:0,overflow:"auto",...c,children:[j?(0,l.jsx)(u,{}):null,t]})]})}},54349:function(e,t,n){"use strict";n.d(t,{Y:function(){return s}});var l=n(24246),i=n(27378);let r=(0,i.createRef)(),s=(0,i.createContext)(r);t.Z=e=>{let{children:t}=e;return(0,l.jsx)(s.Provider,{value:r,children:t})}},99811:function(e,t,n){"use strict";n.d(t,{m:function(){return i}});var l=n(27378);class i{updateTableInstance(e){this.tableInstance=e}constructor(e=null){this.tableInstance=e,this.updateTableInstance=this.updateTableInstance.bind(this)}}let r=l.createContext(new i);t.Z=r},18839:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return H}});var l=n(24246),i=n(27378),r=n(45938),s=n(77213),a=n(58754),o=n(86920),d=n(65218),c=n.n(d),u=n(16134),x=n(35258),h=n(54349),m=n(92222),g=n(59003),p=n(30002),f=n(28079),j=n(49600),v=n(99811);let y=e=>{var t;let{column:n}=e,{tableInstance:l}=(0,i.useContext)(v.Z),r=i.useMemo(()=>Array.from(n.getFacetedUniqueValues().keys()),[n]),s=i.useMemo(()=>{let e={};return r.forEach(t=>{e[t]=!1}),e},[r]);return{filterValue:null!==(t=n.getFilterValue())&&void 0!==t?t:s,clearFilterOptions:()=>{let e={};r.forEach(t=>{e[t]=!1}),n.setFilterValue(e)},toggleFilterOption:(e,t)=>{var i;let r={...null!==(i=n.getFilterValue())&&void 0!==i?i:s,[e]:t};Object.values(r).every(e=>!e)?null==l||l.setColumnFilters(null==l?void 0:l.getState().columnFilters.filter(e=>e.id!==n.id)):n.setFilterValue(r)},options:r,header:n.columnDef.header}};var b=n(57072);let w=(0,m.Cl)(),C={multifield:(e,t,n)=>n[e.original[t]]},k=()=>{let e=(0,u.T)(),{updateTableInstance:t}=(0,i.useContext)(v.Z),n=(0,u.C)(j.eo),{data:l,isLoading:r}=(0,j.Ex)({organizationName:"default_organization"});(0,b.MO)(),(0,f.fd)(),(0,p.te)();let s=(0,i.useRef)(!1);(0,i.useEffect)(()=>{if(l){let{columns:t,rows:n}=l;e((0,j.dd)(t)),s.current||(s.current=!0,0===n.length?e((0,j.ym)(!0)):e((0,j.ym)(!1)))}},[l,e]);let a=(0,i.useMemo)(()=>l?l.rows:[],[l]),o=(0,i.useMemo)(()=>(n||[]).map(e=>{let{text:t,value:n}=e;return w.accessor(e=>e[n],{id:n,header:t,cell:e=>{let{getValue:t}=e,n=t();return Array.isArray(n)?n.join(", "):n},filterFn:C.multifield})}),[n]),d=(0,g.b7)({columns:o,data:a,filterFns:C,getCoreRowModel:(0,m.sC)(),getFilteredRowModel:(0,m.vL)(),getFacetedRowModel:(0,m.o6)(),getFacetedUniqueValues:(0,m.JG)(),manualPagination:!0,columnResizeMode:"onChange"});return(0,i.useEffect)(()=>t(d),[d,t]),{...d,isLoading:r}};var F=n(83766),S=n.n(F),I=n(25980),O=n(46238),R=n(47935),M=n(22968);let _=e=>{var t,n,i;let{option:r,columnId:s,filterValue:a,toggleFilterOption:d}=e,c=(0,u.C)(b.L5),x=s===M.Ux&&null!==(n=null===(t=c.get(r))||void 0===t?void 0:t.name)&&void 0!==n?n:r;return(0,l.jsx)(o.XZJ,{value:r,width:"193px",height:"20px",mb:"25px",isChecked:null!==(i=a[r])&&void 0!==i&&i,onChange:e=>{let{target:t}=e;d(r,t.checked)},_focusWithin:{bg:"gray.100"},colorScheme:"complimentary",children:(0,l.jsx)(o.xvT,{fontSize:"sm",lineHeight:5,height:"20px",width:"170px",textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap",children:x})},r)};var T=e=>{let{column:t}=e,{filterValue:n,toggleFilterOption:r,options:s}=y({column:t}),[a,d]=(0,i.useState)(!1),c=a?s:s.slice(0,15),u=s.length>15;return(0,l.jsx)(o.UQy,{width:"100%",allowToggle:!0,children:(0,l.jsxs)(o.Qdk,{border:"0px",children:[(0,l.jsx)(o.X6q,{height:"56px",children:(0,l.jsxs)(o.KFZ,{height:"100%",children:[(0,l.jsx)(o.xuv,{flex:"1",alignItems:"center",justifyContent:"center",textAlign:"left",children:t.columnDef.header}),(0,l.jsx)(o.XEm,{})]})}),(0,l.jsxs)(o.Hk3,{children:[(0,l.jsx)(o.MIq,{columns:3,children:c.map(e=>(0,l.jsx)(_,{columnId:t.id,option:e,filterValue:n,toggleFilterOption:r},e))}),!a&&u?(0,l.jsx)(o.wpx,{type:"text",onClick:()=>{d(!0)},children:"View more"}):null,a&&u?(0,l.jsx)(o.wpx,{type:"text",onClick:()=>{d(!1)},children:"View less"}):null]})]})},t.id)};let Z=e=>{let{heading:t,children:n}=e;return(0,l.jsxs)(o.xuv,{padding:"24px 8px 8px 24px",children:[(0,l.jsx)(o.X6q,{size:"md",lineHeight:6,fontWeight:"bold",mb:2,children:t}),n]})};var z=e=>{let t,{isOpen:n,onClose:r}=e,{tableInstance:s}=(0,i.useContext)(v.Z),a=null==s?void 0:s.getHeaderGroups(),d=(e,t)=>e.filter(e=>e.id===t).map(e=>(0,l.jsx)(T,{column:e.column},t)),c=(0,i.useMemo)(()=>(null==a?void 0:a[0].headers)||[],[a]);return(0,l.jsxs)(o.u_l,{isOpen:n,onClose:r,isCentered:!0,size:"2xl",children:[(0,l.jsx)(o.ZAr,{}),(0,l.jsxs)(o.hzk,{children:[(0,l.jsx)(o.xBx,{children:"Filters"}),(0,l.jsx)(o.olH,{}),(0,l.jsx)(o.izJ,{}),(0,l.jsx)(o.fef,{maxH:"85vh",padding:"0px",overflowX:"auto",children:(t=[M.vy,M.Ux,M.OL],c.some(e=>t.indexOf(e.id)>-1))?(0,l.jsxs)(Z,{heading:"Privacy attributes",children:[d(c,M.vy),d(c,M.Ux),d(c,M.OL)]}):null}),(0,l.jsx)(o.mzw,{children:(0,l.jsxs)(o.xuv,{display:"flex",justifyContent:"space-between",width:"100%",children:[(0,l.jsx)(o.wpx,{onClick:()=>{null==s||s.resetColumnFilters()},className:"mr-3 grow",children:"Reset Filters"}),(0,l.jsx)(o.wpx,{onClick:r,type:"primary",className:"grow",children:"Done"})]})})]})]})};let E=()=>{let{isOpen:e,onOpen:t,onClose:n}=(0,o.qY0)();return{isFilterModalOpen:e,onFilterModalOpen:t,onFilterModalClose:n}};var P=()=>{let{isFilterModalOpen:e,onFilterModalOpen:t,onFilterModalClose:n}=E(),{tableInstance:r}=(0,i.useContext)(v.Z),{systemsCount:s,dictionaryService:a}=(0,I.hz)(),d=null==r?void 0:r.getRowModel(),c=(0,i.useMemo)(()=>{let e=(null==d?void 0:d.rows)||[];return S()(null==e?void 0:e.map(e=>e.original["system.fides_key"]))},[d]);if(!r)return null;let u=c.length,x=r.getState().columnFilters.length;return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)(o.kCb,{justifyContent:"flex-end",flexDirection:"row",alignItems:"center",flexWrap:"wrap",rowGap:4,columnGap:4,children:[(0,l.jsx)(o.kCb,{flexGrow:1,children:(0,l.jsx)(R.HO,{globalFilter:r.getState().globalFilter,setGlobalFilter:r.setGlobalFilter})}),(0,l.jsxs)(o.kCb,{children:[s>0?(0,l.jsxs)(o.kCb,{alignItems:"center",borderRadius:"md",gap:1,marginRight:4,children:[(0,l.jsxs)(o.xvT,{fontSize:"xs",children:[u," of ",s," systems displayed"]}),a?(0,l.jsx)(O.b,{label:"Note that Global Vendor List (GVL) and Additional Consent (AC) systems are not currently included in these reports"}):null]}):null,(0,l.jsxs)(o.wpx,{"aria-label":"Open Filter Settings",onClick:t,children:["Filter",x>0?(0,l.jsx)(o.j8w,{className:"ml-2",children:x}):null]})]})]}),(0,l.jsx)(z,{isOpen:e,onClose:n})]})},q=n(38943),N=n(77830),V=()=>(0,l.jsx)(o.M5Y,{flex:1,"data-testid":"get-started-modal",backgroundColor:"gray.100",children:(0,l.jsx)(o.xuv,{backgroundColor:"white",p:10,borderRadius:"6px",boxShadow:"0px 1px 3px rgba(0, 0, 0, 0.1), 0px 1px 2px rgba(0, 0, 0, 0.06)",maxWidth:{base:"80%",lg:"60%",xl:"50%"},maxHeight:"90%",textAlign:"center",children:(0,l.jsxs)(o.Kqy,{spacing:4,children:[(0,l.jsx)(o.xvT,{color:"gray.700",fontWeight:"600",children:"Privacy engineering can seem like an endlessly complex confluence of legal and data engineering terminology—fear not—Fides is here to simplify this."}),(0,l.jsx)(o.xvT,{children:"Start by scanning your infrastructure. The scanner will connect to your infrastructure to automatically scan and create a list of all systems available and then classify each system containing PII."}),(0,l.jsx)(o.xvT,{children:"Let's get started!"}),(0,l.jsx)(o.xuv,{children:(0,l.jsx)(o.wpx,{href:N.xo,role:"link",type:"primary",className:"w-fit","data-testid":"add-systems-btn",children:"Add Systems"})})]})})});let W=c()(()=>Promise.all([n.e(5199),n.e(4804),n.e(9392)]).then(n.bind(n,19392)),{loadableGenerated:{webpack:()=>[19392]},ssr:!1}),A=()=>{let e=(0,u.C)(q.Xt),t=(0,i.useContext)(h.Y),{attemptAction:n}=(0,r.oI)(),[l,s]=(0,i.useState)(),a=(0,i.useCallback)(e=>{n().then(t=>{t&&s(e)})},[n,s]),o=(0,i.useCallback)(()=>{n().then(e=>{if(e&&l){if(t.current){var n;null===(n=t.current)||void 0===n||n.$id(l).unselect()}s(void 0)}})},[n,t,l]);return{isGettingStarted:e,selectedSystemId:l,setSelectedSystemId:a,resetSelectedSystemId:o}};var G=()=>{let{isGettingStarted:e,setSelectedSystemId:t,selectedSystemId:n,resetSelectedSystemId:i}=A(),{isLoading:r}=k();return r?(0,l.jsx)(o.M5Y,{width:"100%",flex:"1",children:(0,l.jsx)(o.$jN,{})}):e?(0,l.jsx)(V,{}):(0,l.jsxs)(o.kCb,{direction:"column",height:"100%",children:[(0,l.jsx)(o.xuv,{marginBottom:3,marginRight:10,children:(0,l.jsx)(P,{})}),(0,l.jsxs)(o.kCb,{position:"relative",flex:1,direction:"row",overflow:"auto",borderWidth:"1px",borderStyle:"solid",borderColor:"gray.200",children:[(0,l.jsx)(o.xuv,{flex:1,minWidth:"50%",maxWidth:"100%",children:(0,l.jsx)(W,{setSelectedSystemId:t})}),(0,l.jsx)(x.Z,{selectedSystemId:n,resetSelectedSystemId:i})]})]})},H=()=>{let e=(0,i.useMemo)(()=>new v.m,[]);return(0,l.jsxs)(s.Z,{title:"Data lineage",mainProps:{padding:"24px 0 0 40px"},children:[(0,l.jsx)(a.Z,{style:{paddingLeft:0},heading:"Data lineage"}),(0,l.jsx)(v.Z.Provider,{value:e,children:(0,l.jsxs)(h.Z,{children:[(0,l.jsx)(G,{}),(0,l.jsx)(r.eB,{})]})})]})}}},function(e){e.O(0,[255,9951,4230,2888,9774,179],function(){return e(e.s=53910)}),_N_E=e.O()}]);
@@ -1 +1 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2096],{78859:function(e,t,o){var a=o(71928),n=o(76747),l=o(42383),i=o(11611),s=o(37948);e.exports=function(e,t,o,r){if(!i(e))return e;t=n(t,e);for(var d=-1,c=t.length,u=c-1,f=e;null!=f&&++d<c;){var m=s(t[d]),h=o;if("__proto__"===m||"constructor"===m||"prototype"===m)break;if(d!=u){var p=f[m];void 0===(h=r?r(p,m,f):void 0)&&(h=i(p)?p:l(t[d+1])?[]:{})}a(f,m,h),f=f[m]}return e}},80396:function(e,t,o){var a=o(79867),n=o(78859);e.exports=function(e,t,o,l){return n(e,t,o(a(e,t)),l)}},62079:function(e,t,o){var a=o(31137);e.exports=function(e){return"function"==typeof e?e:a}},30454:function(e,t,o){var a=o(40699);e.exports=function(e){return a(e,5)}},47215:function(e,t,o){var a=o(78859);e.exports=function(e,t,o){return null==e?e:a(e,t,o)}},90271:function(e,t,o){var a=o(80396),n=o(62079);e.exports=function(e,t,o){return null==e?e:a(e,t,n(o))}},16383:function(e,t,o){(window.__NEXT_P=window.__NEXT_P||[]).push(["/dataset/[datasetId]/[collectionName]/[...subfieldNames]",function(){return o(26052)}])},12627:function(e,t,o){"use strict";var a=o(24246),n=o(79283),l=o(34929);t.Z=e=>{let{selectedTaxonomies:t,showDisabled:o=!1,...i}=e,{getDataCategoryDisplayNameProps:s,getDataCategories:r}=(0,l.Z)(),d=(o?r():r().filter(e=>e.active)).filter(e=>!t.includes(e.fides_key)).map(e=>{let{name:t,primaryName:o}=s(e.fides_key);return{value:e.fides_key,name:t,primaryName:o,description:e.description||""}});return(0,a.jsx)(n.l,{options:d,...i})}},66112:function(e,t,o){"use strict";var a=o(24246),n=o(13577),l=o(27378),i=o(12627),s=o(34929),r=o(26183);t.Z=e=>{let{selectedTaxonomies:t,onAddTaxonomy:o,onRemoveTaxonomy:d}=e,[c,u]=(0,l.useState)(!1),{getDataCategoryDisplayName:f}=(0,s.Z)();return(0,a.jsxs)(r.Z,{children:[t.map(e=>(0,a.jsx)(n.j8w,{"data-testid":"classification-".concat(e),color:"white",closable:!0,onClose:()=>d(e),closeButtonLabel:"Remove category",children:f(e)},e)),(0,a.jsx)(n.j8w,{onClick:()=>u(!0),"data-testid":"add-category-btn",addable:!0,"aria-label":"Add category"}),c&&(0,a.jsx)(n.xuv,{className:"select-wrapper",position:"absolute",zIndex:10,top:"0",left:"0",width:"100%",height:"max",bgColor:"#fff",children:(0,a.jsx)(i.Z,{selectedTaxonomies:t,onChange:e=>{u(!1),o(e)},onBlur:()=>u(!1),open:c})})]})}},76252:function(e,t,o){"use strict";var a=o(24246),n=o(13577),l=o(30454),i=o.n(l),s=o(47215),r=o.n(s),d=o(90271),c=o.n(d),u=o(79806),f=o(20386),m=o(63927),h=o(69435);t.Z=e=>{let{field:t,isOpen:o,onClose:l,dataset:s,collectionName:d,subfields:p}=e,[v]=(0,f.TG)(),{isOpen:x,onOpen:g,onClose:b}=(0,n.qY0)();return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(u.ZP,{isOpen:o,onClose:l,description:"Fields are an array of objects that describe the collection's fields. Provide additional context to this field by filling out the fields below.",header:(0,a.jsx)(u.zR,{title:"Field Name: ".concat(null==t?void 0:t.name)}),footer:(0,a.jsx)(u.Gn,{onClose:l,onDelete:g,formId:m.e}),children:(0,a.jsx)(m.Z,{values:t,onSubmit:e=>{let o=(0,h.Fk)({dataset:s,collectionName:d,subfields:p?[...p,(null==t?void 0:t.name)||""]:[(null==t?void 0:t.name)||""]}),a={...t,...e},n=i()(s);r()(n,o,a),v(n),l()},dataType:"field"})}),(0,a.jsx)(n.cVQ,{isOpen:x,onClose:b,onConfirm:()=>{let e=(0,h.Fk)({dataset:s,collectionName:d,subfields:p}),o=i()(s);c()(o,e,e=>({...e,fields:e.fields.filter(e=>e.name!==(null==t?void 0:t.name))})),v(o),l(),b()},title:"Delete Field",message:(0,a.jsxs)(n.xvT,{children:["You are about to permanently delete the field named"," ",(0,a.jsx)(n.xvT,{color:"complimentary.500",as:"span",fontWeight:"bold",children:null==t?void 0:t.name})," ","from this dataset. Are you sure you would like to continue?"]})})]})}},26052:function(e,t,o){"use strict";o.r(t);var a=o(24246),n=o(92222),l=o(59003),i=o(13577),s=o(30454),r=o.n(s),d=o(47215),c=o.n(d),u=o(86677),f=o(27378),m=o(77213),h=o(77830),p=o(58754),v=o(47935),x=o(66112),g=o(69828),b=o(41966),j=o(76252),C=o(69435);let w=(0,n.Cl)(),y=()=>(0,a.jsx)(i.gCW,{mt:6,p:10,spacing:4,borderRadius:"base",maxW:"70%","data-testid":"no-results-notice",alignSelf:"center",margin:"auto",textAlign:"center",children:(0,a.jsx)(i.gCW,{children:(0,a.jsx)(i.xvT,{fontSize:"md",fontWeight:"600",children:"No fields found."})})});t.default=()=>{let e=(0,u.useRouter)(),[t]=(0,b.TG)(),o=decodeURIComponent(e.query.datasetId),s=decodeURIComponent(e.query.collectionName),d=e.query.subfieldNames.map(decodeURIComponent),{isLoading:_,data:R}=(0,b.oM)(o),k=(0,f.useMemo)(()=>(null==R?void 0:R.collections)||[],[R]).find(e=>e.name===s),N=(0,f.useMemo)(()=>(null==k?void 0:k.fields)||[],[k]),T=(0,f.useMemo)(()=>{let e=N;return d.forEach(t=>{let o=e.find(e=>e.name===t);e=(null==o?void 0:o.fields)||[]}),e},[N,d]),[Z,F]=(0,f.useState)(),I=(0,f.useCallback)(e=>{let{dataCategory:o,field:a}=e,n=a.data_categories||[],l=(0,C.Fk)({dataset:R,collectionName:s,subfields:[...d,a.name]}),i=r()(R);c()(i,"".concat(l,".data_categories"),[...n,o]),t(i)},[R,t,s,d]),M=(0,f.useCallback)(e=>{let{dataCategory:o,field:a}=e,n=a.data_categories||[],l=(0,C.Fk)({dataset:R,collectionName:s,subfields:[...d,null==a?void 0:a.name]}),i=r()(R);c()(i,"".concat(l,".data_categories"),n.filter(e=>e!==o)),t(i)},[R,t,s,d]),z=(0,f.useCallback)(t=>{let a=[...d.map(encodeURIComponent),t.name];e.push({pathname:h.y1,query:{datasetId:o,collectionName:s,subfieldNames:a}})},[o,e,s,d]),S=(0,f.useMemo)(()=>[w.accessor(e=>e.name,{id:"name",cell:e=>{var t;let o=e.row.original.fields&&(null===(t=e.row.original.fields)||void 0===t?void 0:t.length)>0;return(0,a.jsx)(v.G3,{fontWeight:o?"semibold":"normal",value:e.getValue()})},header:e=>(0,a.jsx)(v.Rr,{value:"Field Name",...e}),size:180}),w.accessor(e=>{var t;return null===(t=e.fides_meta)||void 0===t?void 0:t.data_type},{id:"type",cell:e=>e.getValue()?(0,a.jsx)(v.A4,{value:e.getValue()}):(0,a.jsx)(v.G3,{value:void 0}),header:e=>(0,a.jsx)(v.Rr,{value:"Type",...e}),size:80}),w.accessor(e=>e.description,{id:"description",cell:e=>(0,a.jsx)(v.G3,{value:e.getValue(),cellProps:e}),header:e=>(0,a.jsx)(v.Rr,{value:"Description",...e}),size:300,meta:{showHeaderMenu:!0}}),w.accessor(e=>e.data_categories,{id:"data_categories",cell:e=>{var t;let o=e.row.original;return!(e.row.original.fields&&(null===(t=e.row.original.fields)||void 0===t?void 0:t.length)>0)&&(0,a.jsx)(x.Z,{selectedTaxonomies:e.getValue()||[],onAddTaxonomy:e=>I({dataCategory:e,field:o}),onRemoveTaxonomy:e=>M({dataCategory:e,field:o})})},header:e=>(0,a.jsx)(v.Rr,{value:"Data categories",...e}),size:300,meta:{disableRowClick:!0}}),w.display({id:"actions",header:"Actions",cell:e=>{let{row:t}=e,o=t.original;return(0,a.jsx)(i.Ugi,{spacing:0,"data-testid":"field-".concat(o.name),children:(0,a.jsx)(i.wpx,{size:"small",icon:(0,a.jsx)(i.dY8,{}),onClick:()=>{D(o),A(!0)},children:"Edit"})})},meta:{disableRowClick:!0}})],[I,M]),q=(0,f.useMemo)(()=>Z?T.filter(e=>e.name.toLowerCase().includes(Z.toLowerCase())):T,[T,Z]),E=(0,l.b7)({getCoreRowModel:(0,n.sC)(),getFilteredRowModel:(0,n.vL)(),getSortedRowModel:(0,n.tj)(),columns:S,data:q,columnResizeMode:"onChange"}),[O,A]=(0,f.useState)(!1),[G,D]=(0,f.useState)(),U=(0,f.useMemo)(()=>{let e=[{title:"All datasets",href:h.$m},{title:o,href:{pathname:h.o5,query:{datasetId:o}},icon:g.Y[1]},{title:s,icon:g.Y[2],href:{pathname:h.RF,query:{datasetId:o,collectionName:s}}}];return d.forEach((t,a)=>{e.push({title:t,href:a<d.length-1?{pathname:h.y1,query:{datasetId:o,collectionName:s,subfieldNames:d.slice(0,a+1).map(encodeURIComponent)}}:void 0,icon:g.Y[3]})}),e},[o,s,d]);return(0,a.jsxs)(m.Z,{title:"Dataset - ".concat(o),children:[(0,a.jsx)(p.Z,{heading:"Datasets",breadcrumbItems:U}),_?(0,a.jsx)(v.I4,{rowHeight:36,numRows:15}):(0,a.jsxs)(i.xuv,{"data-testid":"fields-table",children:[(0,a.jsx)(v.Q$,{children:(0,a.jsx)(v.HO,{globalFilter:Z,setGlobalFilter:F,placeholder:"Search",testid:"fields-search"})}),(0,a.jsx)(v.ZK,{tableInstance:E,emptyTableNotice:(0,a.jsx)(y,{}),onRowClick:z,getRowIsClickable:e=>{var t;return!!(e.fields&&(null===(t=e.fields)||void 0===t?void 0:t.length)>0)}}),(0,a.jsx)(j.Z,{isOpen:O,onClose:()=>{A(!1),D(void 0)},field:G,dataset:R,collectionName:s,subfields:d})]})]})}}},function(e){e.O(0,[2858,2866,9278,699,409,9226,2888,9774,179],function(){return e(e.s=16383)}),_N_E=e.O()}]);
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2096],{78859:function(e,t,o){var a=o(71928),n=o(76747),l=o(42383),i=o(11611),s=o(37948);e.exports=function(e,t,o,r){if(!i(e))return e;t=n(t,e);for(var d=-1,c=t.length,u=c-1,f=e;null!=f&&++d<c;){var m=s(t[d]),h=o;if("__proto__"===m||"constructor"===m||"prototype"===m)break;if(d!=u){var p=f[m];void 0===(h=r?r(p,m,f):void 0)&&(h=i(p)?p:l(t[d+1])?[]:{})}a(f,m,h),f=f[m]}return e}},80396:function(e,t,o){var a=o(79867),n=o(78859);e.exports=function(e,t,o,l){return n(e,t,o(a(e,t)),l)}},62079:function(e,t,o){var a=o(31137);e.exports=function(e){return"function"==typeof e?e:a}},30454:function(e,t,o){var a=o(40699);e.exports=function(e){return a(e,5)}},47215:function(e,t,o){var a=o(78859);e.exports=function(e,t,o){return null==e?e:a(e,t,o)}},90271:function(e,t,o){var a=o(80396),n=o(62079);e.exports=function(e,t,o){return null==e?e:a(e,t,n(o))}},16383:function(e,t,o){(window.__NEXT_P=window.__NEXT_P||[]).push(["/dataset/[datasetId]/[collectionName]/[...subfieldNames]",function(){return o(26052)}])},12627:function(e,t,o){"use strict";var a=o(24246),n=o(79283),l=o(34929);t.Z=e=>{let{selectedTaxonomies:t,showDisabled:o=!1,...i}=e,{getDataCategoryDisplayNameProps:s,getDataCategories:r}=(0,l.Z)(),d=(o?r():r().filter(e=>e.active)).filter(e=>!t.includes(e.fides_key)).map(e=>{let{name:t,primaryName:o}=s(e.fides_key);return{value:e.fides_key,name:t,primaryName:o,description:e.description||""}});return(0,a.jsx)(n.l,{options:d,...i})}},66112:function(e,t,o){"use strict";var a=o(24246),n=o(86920),l=o(27378),i=o(12627),s=o(34929),r=o(26183);t.Z=e=>{let{selectedTaxonomies:t,onAddTaxonomy:o,onRemoveTaxonomy:d}=e,[c,u]=(0,l.useState)(!1),{getDataCategoryDisplayName:f}=(0,s.Z)();return(0,a.jsxs)(r.Z,{children:[t.map(e=>(0,a.jsx)(n.j8w,{"data-testid":"classification-".concat(e),color:"white",closable:!0,onClose:()=>d(e),closeButtonLabel:"Remove category",children:f(e)},e)),(0,a.jsx)(n.j8w,{onClick:()=>u(!0),"data-testid":"add-category-btn",addable:!0,"aria-label":"Add category"}),c&&(0,a.jsx)(n.xuv,{className:"select-wrapper",position:"absolute",zIndex:10,top:"0",left:"0",width:"100%",height:"max",bgColor:"#fff",children:(0,a.jsx)(i.Z,{selectedTaxonomies:t,onChange:e=>{u(!1),o(e)},onBlur:()=>u(!1),open:c})})]})}},76252:function(e,t,o){"use strict";var a=o(24246),n=o(86920),l=o(30454),i=o.n(l),s=o(47215),r=o.n(s),d=o(90271),c=o.n(d),u=o(79806),f=o(20386),m=o(63927),h=o(69435);t.Z=e=>{let{field:t,isOpen:o,onClose:l,dataset:s,collectionName:d,subfields:p}=e,[v]=(0,f.TG)(),{isOpen:x,onOpen:g,onClose:b}=(0,n.qY0)();return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(u.ZP,{isOpen:o,onClose:l,description:"Fields are an array of objects that describe the collection's fields. Provide additional context to this field by filling out the fields below.",header:(0,a.jsx)(u.zR,{title:"Field Name: ".concat(null==t?void 0:t.name)}),footer:(0,a.jsx)(u.Gn,{onClose:l,onDelete:g,formId:m.e}),children:(0,a.jsx)(m.Z,{values:t,onSubmit:e=>{let o=(0,h.Fk)({dataset:s,collectionName:d,subfields:p?[...p,(null==t?void 0:t.name)||""]:[(null==t?void 0:t.name)||""]}),a={...t,...e},n=i()(s);r()(n,o,a),v(n),l()},dataType:"field"})}),(0,a.jsx)(n.cVQ,{isOpen:x,onClose:b,onConfirm:()=>{let e=(0,h.Fk)({dataset:s,collectionName:d,subfields:p}),o=i()(s);c()(o,e,e=>({...e,fields:e.fields.filter(e=>e.name!==(null==t?void 0:t.name))})),v(o),l(),b()},title:"Delete Field",message:(0,a.jsxs)(n.xvT,{children:["You are about to permanently delete the field named"," ",(0,a.jsx)(n.xvT,{color:"complimentary.500",as:"span",fontWeight:"bold",children:null==t?void 0:t.name})," ","from this dataset. Are you sure you would like to continue?"]})})]})}},26052:function(e,t,o){"use strict";o.r(t);var a=o(24246),n=o(92222),l=o(59003),i=o(86920),s=o(30454),r=o.n(s),d=o(47215),c=o.n(d),u=o(86677),f=o(27378),m=o(77213),h=o(77830),p=o(58754),v=o(47935),x=o(66112),g=o(69828),b=o(41966),j=o(76252),C=o(69435);let w=(0,n.Cl)(),y=()=>(0,a.jsx)(i.gCW,{mt:6,p:10,spacing:4,borderRadius:"base",maxW:"70%","data-testid":"no-results-notice",alignSelf:"center",margin:"auto",textAlign:"center",children:(0,a.jsx)(i.gCW,{children:(0,a.jsx)(i.xvT,{fontSize:"md",fontWeight:"600",children:"No fields found."})})});t.default=()=>{let e=(0,u.useRouter)(),[t]=(0,b.TG)(),o=decodeURIComponent(e.query.datasetId),s=decodeURIComponent(e.query.collectionName),d=e.query.subfieldNames.map(decodeURIComponent),{isLoading:_,data:R}=(0,b.oM)(o),k=(0,f.useMemo)(()=>(null==R?void 0:R.collections)||[],[R]).find(e=>e.name===s),N=(0,f.useMemo)(()=>(null==k?void 0:k.fields)||[],[k]),T=(0,f.useMemo)(()=>{let e=N;return d.forEach(t=>{let o=e.find(e=>e.name===t);e=(null==o?void 0:o.fields)||[]}),e},[N,d]),[Z,F]=(0,f.useState)(),I=(0,f.useCallback)(e=>{let{dataCategory:o,field:a}=e,n=a.data_categories||[],l=(0,C.Fk)({dataset:R,collectionName:s,subfields:[...d,a.name]}),i=r()(R);c()(i,"".concat(l,".data_categories"),[...n,o]),t(i)},[R,t,s,d]),M=(0,f.useCallback)(e=>{let{dataCategory:o,field:a}=e,n=a.data_categories||[],l=(0,C.Fk)({dataset:R,collectionName:s,subfields:[...d,null==a?void 0:a.name]}),i=r()(R);c()(i,"".concat(l,".data_categories"),n.filter(e=>e!==o)),t(i)},[R,t,s,d]),z=(0,f.useCallback)(t=>{let a=[...d.map(encodeURIComponent),t.name];e.push({pathname:h.y1,query:{datasetId:o,collectionName:s,subfieldNames:a}})},[o,e,s,d]),S=(0,f.useMemo)(()=>[w.accessor(e=>e.name,{id:"name",cell:e=>{var t;let o=e.row.original.fields&&(null===(t=e.row.original.fields)||void 0===t?void 0:t.length)>0;return(0,a.jsx)(v.G3,{fontWeight:o?"semibold":"normal",value:e.getValue()})},header:e=>(0,a.jsx)(v.Rr,{value:"Field Name",...e}),size:180}),w.accessor(e=>{var t;return null===(t=e.fides_meta)||void 0===t?void 0:t.data_type},{id:"type",cell:e=>e.getValue()?(0,a.jsx)(v.A4,{value:e.getValue()}):(0,a.jsx)(v.G3,{value:void 0}),header:e=>(0,a.jsx)(v.Rr,{value:"Type",...e}),size:80}),w.accessor(e=>e.description,{id:"description",cell:e=>(0,a.jsx)(v.G3,{value:e.getValue(),cellProps:e}),header:e=>(0,a.jsx)(v.Rr,{value:"Description",...e}),size:300,meta:{showHeaderMenu:!0}}),w.accessor(e=>e.data_categories,{id:"data_categories",cell:e=>{var t;let o=e.row.original;return!(e.row.original.fields&&(null===(t=e.row.original.fields)||void 0===t?void 0:t.length)>0)&&(0,a.jsx)(x.Z,{selectedTaxonomies:e.getValue()||[],onAddTaxonomy:e=>I({dataCategory:e,field:o}),onRemoveTaxonomy:e=>M({dataCategory:e,field:o})})},header:e=>(0,a.jsx)(v.Rr,{value:"Data categories",...e}),size:300,meta:{disableRowClick:!0}}),w.display({id:"actions",header:"Actions",cell:e=>{let{row:t}=e,o=t.original;return(0,a.jsx)(i.Ugi,{spacing:0,"data-testid":"field-".concat(o.name),children:(0,a.jsx)(i.wpx,{size:"small",icon:(0,a.jsx)(i.dY8,{}),onClick:()=>{D(o),A(!0)},children:"Edit"})})},meta:{disableRowClick:!0}})],[I,M]),q=(0,f.useMemo)(()=>Z?T.filter(e=>e.name.toLowerCase().includes(Z.toLowerCase())):T,[T,Z]),E=(0,l.b7)({getCoreRowModel:(0,n.sC)(),getFilteredRowModel:(0,n.vL)(),getSortedRowModel:(0,n.tj)(),columns:S,data:q,columnResizeMode:"onChange"}),[O,A]=(0,f.useState)(!1),[G,D]=(0,f.useState)(),U=(0,f.useMemo)(()=>{let e=[{title:"All datasets",href:h.$m},{title:o,href:{pathname:h.o5,query:{datasetId:o}},icon:g.Y[1]},{title:s,icon:g.Y[2],href:{pathname:h.RF,query:{datasetId:o,collectionName:s}}}];return d.forEach((t,a)=>{e.push({title:t,href:a<d.length-1?{pathname:h.y1,query:{datasetId:o,collectionName:s,subfieldNames:d.slice(0,a+1).map(encodeURIComponent)}}:void 0,icon:g.Y[3]})}),e},[o,s,d]);return(0,a.jsxs)(m.Z,{title:"Dataset - ".concat(o),children:[(0,a.jsx)(p.Z,{heading:"Datasets",breadcrumbItems:U}),_?(0,a.jsx)(v.I4,{rowHeight:36,numRows:15}):(0,a.jsxs)(i.xuv,{"data-testid":"fields-table",children:[(0,a.jsx)(v.Q$,{children:(0,a.jsx)(v.HO,{globalFilter:Z,setGlobalFilter:F,placeholder:"Search",testid:"fields-search"})}),(0,a.jsx)(v.ZK,{tableInstance:E,emptyTableNotice:(0,a.jsx)(y,{}),onRowClick:z,getRowIsClickable:e=>{var t;return!!(e.fields&&(null===(t=e.fields)||void 0===t?void 0:t.length)>0)}}),(0,a.jsx)(j.Z,{isOpen:O,onClose:()=>{A(!1),D(void 0)},field:G,dataset:R,collectionName:s,subfields:d})]})]})}}},function(e){e.O(0,[2858,2866,9278,699,409,9226,2888,9774,179],function(){return e(e.s=16383)}),_N_E=e.O()}]);
@@ -1 +1 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6556],{78859:function(e,t,o){var n=o(71928),i=o(76747),l=o(42383),a=o(11611),s=o(37948);e.exports=function(e,t,o,r){if(!a(e))return e;t=i(t,e);for(var d=-1,c=t.length,u=c-1,f=e;null!=f&&++d<c;){var m=s(t[d]),x=o;if("__proto__"===m||"constructor"===m||"prototype"===m)break;if(d!=u){var v=f[m];void 0===(x=r?r(v,m,f):void 0)&&(x=a(v)?v:l(t[d+1])?[]:{})}n(f,m,x),f=f[m]}return e}},80396:function(e,t,o){var n=o(79867),i=o(78859);e.exports=function(e,t,o,l){return i(e,t,o(n(e,t)),l)}},62079:function(e,t,o){var n=o(31137);e.exports=function(e){return"function"==typeof e?e:n}},30454:function(e,t,o){var n=o(40699);e.exports=function(e){return n(e,5)}},47215:function(e,t,o){var n=o(78859);e.exports=function(e,t,o){return null==e?e:n(e,t,o)}},90271:function(e,t,o){var n=o(80396),i=o(62079);e.exports=function(e,t,o){return null==e?e:n(e,t,i(o))}},59972:function(e,t,o){(window.__NEXT_P=window.__NEXT_P||[]).push(["/dataset/[datasetId]/[collectionName]",function(){return o(47355)}])},12627:function(e,t,o){"use strict";var n=o(24246),i=o(79283),l=o(34929);t.Z=e=>{let{selectedTaxonomies:t,showDisabled:o=!1,...a}=e,{getDataCategoryDisplayNameProps:s,getDataCategories:r}=(0,l.Z)(),d=(o?r():r().filter(e=>e.active)).filter(e=>!t.includes(e.fides_key)).map(e=>{let{name:t,primaryName:o}=s(e.fides_key);return{value:e.fides_key,name:t,primaryName:o,description:e.description||""}});return(0,n.jsx)(i.l,{options:d,...a})}},66112:function(e,t,o){"use strict";var n=o(24246),i=o(13577),l=o(27378),a=o(12627),s=o(34929),r=o(26183);t.Z=e=>{let{selectedTaxonomies:t,onAddTaxonomy:o,onRemoveTaxonomy:d}=e,[c,u]=(0,l.useState)(!1),{getDataCategoryDisplayName:f}=(0,s.Z)();return(0,n.jsxs)(r.Z,{children:[t.map(e=>(0,n.jsx)(i.j8w,{"data-testid":"classification-".concat(e),color:"white",closable:!0,onClose:()=>d(e),closeButtonLabel:"Remove category",children:f(e)},e)),(0,n.jsx)(i.j8w,{onClick:()=>u(!0),"data-testid":"add-category-btn",addable:!0,"aria-label":"Add category"}),c&&(0,n.jsx)(i.xuv,{className:"select-wrapper",position:"absolute",zIndex:10,top:"0",left:"0",width:"100%",height:"max",bgColor:"#fff",children:(0,n.jsx)(a.Z,{selectedTaxonomies:t,onChange:e=>{u(!1),o(e)},onBlur:()=>u(!1),open:c})})]})}},76252:function(e,t,o){"use strict";var n=o(24246),i=o(13577),l=o(30454),a=o.n(l),s=o(47215),r=o.n(s),d=o(90271),c=o.n(d),u=o(79806),f=o(20386),m=o(63927),x=o(69435);t.Z=e=>{let{field:t,isOpen:o,onClose:l,dataset:s,collectionName:d,subfields:v}=e,[p]=(0,f.TG)(),{isOpen:h,onOpen:g,onClose:j}=(0,i.qY0)();return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(u.ZP,{isOpen:o,onClose:l,description:"Fields are an array of objects that describe the collection's fields. Provide additional context to this field by filling out the fields below.",header:(0,n.jsx)(u.zR,{title:"Field Name: ".concat(null==t?void 0:t.name)}),footer:(0,n.jsx)(u.Gn,{onClose:l,onDelete:g,formId:m.e}),children:(0,n.jsx)(m.Z,{values:t,onSubmit:e=>{let o=(0,x.Fk)({dataset:s,collectionName:d,subfields:v?[...v,(null==t?void 0:t.name)||""]:[(null==t?void 0:t.name)||""]}),n={...t,...e},i=a()(s);r()(i,o,n),p(i),l()},dataType:"field"})}),(0,n.jsx)(i.cVQ,{isOpen:h,onClose:j,onConfirm:()=>{let e=(0,x.Fk)({dataset:s,collectionName:d,subfields:v}),o=a()(s);c()(o,e,e=>({...e,fields:e.fields.filter(e=>e.name!==(null==t?void 0:t.name))})),p(o),l(),j()},title:"Delete Field",message:(0,n.jsxs)(i.xvT,{children:["You are about to permanently delete the field named"," ",(0,n.jsx)(i.xvT,{color:"complimentary.500",as:"span",fontWeight:"bold",children:null==t?void 0:t.name})," ","from this dataset. Are you sure you would like to continue?"]})})]})}},47355:function(e,t,o){"use strict";o.r(t);var n=o(24246),i=o(92222),l=o(59003),a=o(13577),s=o(86677),r=o(27378),d=o(77213),c=o(77830),u=o(58754),f=o(47935),m=o(66112),x=o(69828),v=o(41966),p=o(76252),h=o(69435);let g=(0,i.Cl)(),j=()=>(0,n.jsx)(a.gCW,{mt:6,p:10,spacing:4,borderRadius:"base",maxW:"70%","data-testid":"no-results-notice",alignSelf:"center",margin:"auto",textAlign:"center",children:(0,n.jsx)(a.gCW,{children:(0,n.jsx)(a.xvT,{fontSize:"md",fontWeight:"600",children:"No fields found."})})});t.default=()=>{let e=(0,s.useRouter)(),[t]=(0,v.TG)(),o=decodeURIComponent(e.query.datasetId),b=decodeURIComponent(e.query.collectionName),{isLoading:C,data:w}=(0,v.oM)(o),_=(0,r.useMemo)(()=>(null==w?void 0:w.collections)||[],[w]),y=_.find(e=>e.name===b),R=(0,r.useMemo)(()=>(null==y?void 0:y.fields)||[],[y]),[k,N]=(0,r.useState)(),I=(0,r.useCallback)(e=>{let{dataCategory:o,field:n}=e,i=n.data_categories||[],l={...n,data_categories:[...i,o]},a=_.indexOf(y),s=y.fields.indexOf(n);t((0,h._n)(w,l,a,s))},[y,_,w,t]),T=(0,r.useCallback)(e=>{var o;let{dataCategory:n,field:i}=e,l={...i,data_categories:null===(o=i.data_categories)||void 0===o?void 0:o.filter(e=>e!==n)},a=_.indexOf(y),s=y.fields.indexOf(i);t((0,h._n)(w,l,a,s))},[y,_,w,t]),Z=(0,r.useCallback)(t=>{e.push({pathname:c.y1,query:{datasetId:encodeURIComponent(o),collectionName:encodeURIComponent(b),subfieldNames:encodeURIComponent(t.name)}})},[o,e,b]),O=(0,r.useMemo)(()=>[g.accessor(e=>e.name,{id:"name",cell:e=>{var t;let o=e.row.original.fields&&(null===(t=e.row.original.fields)||void 0===t?void 0:t.length)>0;return(0,n.jsx)(f.G3,{fontWeight:o?"semibold":"normal",value:e.getValue()})},header:e=>(0,n.jsx)(f.Rr,{value:"Field Name",...e}),size:180}),g.accessor(e=>{var t;return null===(t=e.fides_meta)||void 0===t?void 0:t.data_type},{id:"type",cell:e=>e.getValue()?(0,n.jsx)(f.A4,{value:e.getValue()}):(0,n.jsx)(f.G3,{value:void 0}),header:e=>(0,n.jsx)(f.Rr,{value:"Type",...e}),size:80}),g.accessor(e=>e.description,{id:"description",cell:e=>(0,n.jsx)(f.G3,{value:e.getValue(),cellProps:e}),header:e=>(0,n.jsx)(f.Rr,{value:"Description",...e}),size:300,meta:{showHeaderMenu:!0}}),g.accessor(e=>e.data_categories,{id:"data_categories",cell:e=>{var t;let o=e.row.original;return!(e.row.original.fields&&(null===(t=e.row.original.fields)||void 0===t?void 0:t.length)>0)&&(0,n.jsx)(m.Z,{selectedTaxonomies:e.getValue()||[],onAddTaxonomy:e=>I({dataCategory:e,field:o}),onRemoveTaxonomy:e=>T({dataCategory:e,field:o})})},header:e=>(0,n.jsx)(f.Rr,{value:"Data categories",...e}),size:300,meta:{disableRowClick:!0}}),g.display({id:"actions",header:"Actions",cell:e=>{let{row:t}=e,o=t.original;return(0,n.jsx)(a.Ugi,{spacing:0,"data-testid":"field-".concat(o.name),children:(0,n.jsx)(a.wpx,{size:"small",icon:(0,n.jsx)(a.dY8,{}),onClick:()=>{G(o),S(!0)},children:"Edit"})})},meta:{disableRowClick:!0}})],[I,T]),M=(0,r.useMemo)(()=>k?R.filter(e=>e.name.toLowerCase().includes(k.toLowerCase())):R,[R,k]),F=(0,l.b7)({getCoreRowModel:(0,i.sC)(),getFilteredRowModel:(0,i.vL)(),getSortedRowModel:(0,i.tj)(),columns:O,data:M,columnResizeMode:"onChange"}),[z,S]=(0,r.useState)(!1),[A,G]=(0,r.useState)(),D=(0,r.useMemo)(()=>[{title:"All datasets",href:c.$m},{title:o,href:{pathname:c.o5,query:{datasetId:o}},icon:x.Y[1]},{title:b,icon:x.Y[2]}],[o,b]);return(0,n.jsxs)(d.Z,{title:"Dataset - ".concat(o),children:[(0,n.jsx)(u.Z,{heading:"Datasets",breadcrumbItems:D}),C?(0,n.jsx)(f.I4,{rowHeight:36,numRows:15}):(0,n.jsxs)(a.xuv,{"data-testid":"fields-table",children:[(0,n.jsx)(f.Q$,{children:(0,n.jsx)(f.HO,{globalFilter:k,setGlobalFilter:N,placeholder:"Search",testid:"fields-search"})}),(0,n.jsx)(f.ZK,{tableInstance:F,emptyTableNotice:(0,n.jsx)(j,{}),onRowClick:Z,getRowIsClickable:e=>{var t;return!!(e.fields&&(null===(t=e.fields)||void 0===t?void 0:t.length)>0)}}),(0,n.jsx)(p.Z,{isOpen:z,onClose:()=>{S(!1),G(void 0)},field:A,dataset:w,collectionName:b})]})]})}}},function(e){e.O(0,[2858,2866,9278,699,409,9226,2888,9774,179],function(){return e(e.s=59972)}),_N_E=e.O()}]);
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6556],{78859:function(e,t,o){var n=o(71928),i=o(76747),l=o(42383),a=o(11611),s=o(37948);e.exports=function(e,t,o,r){if(!a(e))return e;t=i(t,e);for(var d=-1,c=t.length,u=c-1,f=e;null!=f&&++d<c;){var m=s(t[d]),x=o;if("__proto__"===m||"constructor"===m||"prototype"===m)break;if(d!=u){var v=f[m];void 0===(x=r?r(v,m,f):void 0)&&(x=a(v)?v:l(t[d+1])?[]:{})}n(f,m,x),f=f[m]}return e}},80396:function(e,t,o){var n=o(79867),i=o(78859);e.exports=function(e,t,o,l){return i(e,t,o(n(e,t)),l)}},62079:function(e,t,o){var n=o(31137);e.exports=function(e){return"function"==typeof e?e:n}},30454:function(e,t,o){var n=o(40699);e.exports=function(e){return n(e,5)}},47215:function(e,t,o){var n=o(78859);e.exports=function(e,t,o){return null==e?e:n(e,t,o)}},90271:function(e,t,o){var n=o(80396),i=o(62079);e.exports=function(e,t,o){return null==e?e:n(e,t,i(o))}},59972:function(e,t,o){(window.__NEXT_P=window.__NEXT_P||[]).push(["/dataset/[datasetId]/[collectionName]",function(){return o(47355)}])},12627:function(e,t,o){"use strict";var n=o(24246),i=o(79283),l=o(34929);t.Z=e=>{let{selectedTaxonomies:t,showDisabled:o=!1,...a}=e,{getDataCategoryDisplayNameProps:s,getDataCategories:r}=(0,l.Z)(),d=(o?r():r().filter(e=>e.active)).filter(e=>!t.includes(e.fides_key)).map(e=>{let{name:t,primaryName:o}=s(e.fides_key);return{value:e.fides_key,name:t,primaryName:o,description:e.description||""}});return(0,n.jsx)(i.l,{options:d,...a})}},66112:function(e,t,o){"use strict";var n=o(24246),i=o(86920),l=o(27378),a=o(12627),s=o(34929),r=o(26183);t.Z=e=>{let{selectedTaxonomies:t,onAddTaxonomy:o,onRemoveTaxonomy:d}=e,[c,u]=(0,l.useState)(!1),{getDataCategoryDisplayName:f}=(0,s.Z)();return(0,n.jsxs)(r.Z,{children:[t.map(e=>(0,n.jsx)(i.j8w,{"data-testid":"classification-".concat(e),color:"white",closable:!0,onClose:()=>d(e),closeButtonLabel:"Remove category",children:f(e)},e)),(0,n.jsx)(i.j8w,{onClick:()=>u(!0),"data-testid":"add-category-btn",addable:!0,"aria-label":"Add category"}),c&&(0,n.jsx)(i.xuv,{className:"select-wrapper",position:"absolute",zIndex:10,top:"0",left:"0",width:"100%",height:"max",bgColor:"#fff",children:(0,n.jsx)(a.Z,{selectedTaxonomies:t,onChange:e=>{u(!1),o(e)},onBlur:()=>u(!1),open:c})})]})}},76252:function(e,t,o){"use strict";var n=o(24246),i=o(86920),l=o(30454),a=o.n(l),s=o(47215),r=o.n(s),d=o(90271),c=o.n(d),u=o(79806),f=o(20386),m=o(63927),x=o(69435);t.Z=e=>{let{field:t,isOpen:o,onClose:l,dataset:s,collectionName:d,subfields:v}=e,[p]=(0,f.TG)(),{isOpen:h,onOpen:g,onClose:j}=(0,i.qY0)();return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(u.ZP,{isOpen:o,onClose:l,description:"Fields are an array of objects that describe the collection's fields. Provide additional context to this field by filling out the fields below.",header:(0,n.jsx)(u.zR,{title:"Field Name: ".concat(null==t?void 0:t.name)}),footer:(0,n.jsx)(u.Gn,{onClose:l,onDelete:g,formId:m.e}),children:(0,n.jsx)(m.Z,{values:t,onSubmit:e=>{let o=(0,x.Fk)({dataset:s,collectionName:d,subfields:v?[...v,(null==t?void 0:t.name)||""]:[(null==t?void 0:t.name)||""]}),n={...t,...e},i=a()(s);r()(i,o,n),p(i),l()},dataType:"field"})}),(0,n.jsx)(i.cVQ,{isOpen:h,onClose:j,onConfirm:()=>{let e=(0,x.Fk)({dataset:s,collectionName:d,subfields:v}),o=a()(s);c()(o,e,e=>({...e,fields:e.fields.filter(e=>e.name!==(null==t?void 0:t.name))})),p(o),l(),j()},title:"Delete Field",message:(0,n.jsxs)(i.xvT,{children:["You are about to permanently delete the field named"," ",(0,n.jsx)(i.xvT,{color:"complimentary.500",as:"span",fontWeight:"bold",children:null==t?void 0:t.name})," ","from this dataset. Are you sure you would like to continue?"]})})]})}},47355:function(e,t,o){"use strict";o.r(t);var n=o(24246),i=o(92222),l=o(59003),a=o(86920),s=o(86677),r=o(27378),d=o(77213),c=o(77830),u=o(58754),f=o(47935),m=o(66112),x=o(69828),v=o(41966),p=o(76252),h=o(69435);let g=(0,i.Cl)(),j=()=>(0,n.jsx)(a.gCW,{mt:6,p:10,spacing:4,borderRadius:"base",maxW:"70%","data-testid":"no-results-notice",alignSelf:"center",margin:"auto",textAlign:"center",children:(0,n.jsx)(a.gCW,{children:(0,n.jsx)(a.xvT,{fontSize:"md",fontWeight:"600",children:"No fields found."})})});t.default=()=>{let e=(0,s.useRouter)(),[t]=(0,v.TG)(),o=decodeURIComponent(e.query.datasetId),b=decodeURIComponent(e.query.collectionName),{isLoading:C,data:w}=(0,v.oM)(o),_=(0,r.useMemo)(()=>(null==w?void 0:w.collections)||[],[w]),y=_.find(e=>e.name===b),R=(0,r.useMemo)(()=>(null==y?void 0:y.fields)||[],[y]),[k,N]=(0,r.useState)(),I=(0,r.useCallback)(e=>{let{dataCategory:o,field:n}=e,i=n.data_categories||[],l={...n,data_categories:[...i,o]},a=_.indexOf(y),s=y.fields.indexOf(n);t((0,h._n)(w,l,a,s))},[y,_,w,t]),T=(0,r.useCallback)(e=>{var o;let{dataCategory:n,field:i}=e,l={...i,data_categories:null===(o=i.data_categories)||void 0===o?void 0:o.filter(e=>e!==n)},a=_.indexOf(y),s=y.fields.indexOf(i);t((0,h._n)(w,l,a,s))},[y,_,w,t]),Z=(0,r.useCallback)(t=>{e.push({pathname:c.y1,query:{datasetId:encodeURIComponent(o),collectionName:encodeURIComponent(b),subfieldNames:encodeURIComponent(t.name)}})},[o,e,b]),O=(0,r.useMemo)(()=>[g.accessor(e=>e.name,{id:"name",cell:e=>{var t;let o=e.row.original.fields&&(null===(t=e.row.original.fields)||void 0===t?void 0:t.length)>0;return(0,n.jsx)(f.G3,{fontWeight:o?"semibold":"normal",value:e.getValue()})},header:e=>(0,n.jsx)(f.Rr,{value:"Field Name",...e}),size:180}),g.accessor(e=>{var t;return null===(t=e.fides_meta)||void 0===t?void 0:t.data_type},{id:"type",cell:e=>e.getValue()?(0,n.jsx)(f.A4,{value:e.getValue()}):(0,n.jsx)(f.G3,{value:void 0}),header:e=>(0,n.jsx)(f.Rr,{value:"Type",...e}),size:80}),g.accessor(e=>e.description,{id:"description",cell:e=>(0,n.jsx)(f.G3,{value:e.getValue(),cellProps:e}),header:e=>(0,n.jsx)(f.Rr,{value:"Description",...e}),size:300,meta:{showHeaderMenu:!0}}),g.accessor(e=>e.data_categories,{id:"data_categories",cell:e=>{var t;let o=e.row.original;return!(e.row.original.fields&&(null===(t=e.row.original.fields)||void 0===t?void 0:t.length)>0)&&(0,n.jsx)(m.Z,{selectedTaxonomies:e.getValue()||[],onAddTaxonomy:e=>I({dataCategory:e,field:o}),onRemoveTaxonomy:e=>T({dataCategory:e,field:o})})},header:e=>(0,n.jsx)(f.Rr,{value:"Data categories",...e}),size:300,meta:{disableRowClick:!0}}),g.display({id:"actions",header:"Actions",cell:e=>{let{row:t}=e,o=t.original;return(0,n.jsx)(a.Ugi,{spacing:0,"data-testid":"field-".concat(o.name),children:(0,n.jsx)(a.wpx,{size:"small",icon:(0,n.jsx)(a.dY8,{}),onClick:()=>{G(o),S(!0)},children:"Edit"})})},meta:{disableRowClick:!0}})],[I,T]),M=(0,r.useMemo)(()=>k?R.filter(e=>e.name.toLowerCase().includes(k.toLowerCase())):R,[R,k]),F=(0,l.b7)({getCoreRowModel:(0,i.sC)(),getFilteredRowModel:(0,i.vL)(),getSortedRowModel:(0,i.tj)(),columns:O,data:M,columnResizeMode:"onChange"}),[z,S]=(0,r.useState)(!1),[A,G]=(0,r.useState)(),D=(0,r.useMemo)(()=>[{title:"All datasets",href:c.$m},{title:o,href:{pathname:c.o5,query:{datasetId:o}},icon:x.Y[1]},{title:b,icon:x.Y[2]}],[o,b]);return(0,n.jsxs)(d.Z,{title:"Dataset - ".concat(o),children:[(0,n.jsx)(u.Z,{heading:"Datasets",breadcrumbItems:D}),C?(0,n.jsx)(f.I4,{rowHeight:36,numRows:15}):(0,n.jsxs)(a.xuv,{"data-testid":"fields-table",children:[(0,n.jsx)(f.Q$,{children:(0,n.jsx)(f.HO,{globalFilter:k,setGlobalFilter:N,placeholder:"Search",testid:"fields-search"})}),(0,n.jsx)(f.ZK,{tableInstance:F,emptyTableNotice:(0,n.jsx)(j,{}),onRowClick:Z,getRowIsClickable:e=>{var t;return!!(e.fields&&(null===(t=e.fields)||void 0===t?void 0:t.length)>0)}}),(0,n.jsx)(p.Z,{isOpen:z,onClose:()=>{S(!1),G(void 0)},field:A,dataset:w,collectionName:b})]})]})}}},function(e){e.O(0,[2858,2866,9278,699,409,9226,2888,9774,179],function(){return e(e.s=59972)}),_N_E=e.O()}]);