ethyca-fides 2.73.0rc4__py2.py3-none-any.whl → 2.73.1__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 (275) hide show
  1. {ethyca_fides-2.73.0rc4.dist-info → ethyca_fides-2.73.1.dist-info}/METADATA +1 -1
  2. {ethyca_fides-2.73.0rc4.dist-info → ethyca_fides-2.73.1.dist-info}/RECORD +264 -254
  3. fides/_version.py +3 -3
  4. fides/api/alembic/alembic.ini +5 -1
  5. fides/api/alembic/migrations/env.py +7 -1
  6. fides/api/alembic/migrations/versions/c09e76282dd1_add_privacy_request_duplication_cols.py +64 -0
  7. fides/api/alembic/migrations/versions/xx_2025_10_17_1603_5093e92e2a5a_add_consent_data_v3_to_the_database.py +72 -0
  8. fides/api/alembic/migrations/versions/xx_2025_10_27_1834_67f0f2f4748e_adding_identity_definition_model.py +45 -0
  9. fides/api/api/v1/endpoints/privacy_request_endpoints.py +27 -0
  10. fides/api/db/base.py +2 -0
  11. fides/api/db/database.py +32 -2
  12. fides/api/models/identity_definition.py +65 -0
  13. fides/api/models/privacy_request/privacy_request.py +3 -0
  14. fides/api/models/v3/__init__.py +0 -0
  15. fides/api/models/v3/privacy_preferences.py +85 -0
  16. fides/api/schemas/application_config.py +28 -0
  17. fides/api/schemas/privacy_request.py +2 -0
  18. fides/api/service/connectors/query_configs/saas_query_config.py +4 -1
  19. fides/api/service/connectors/saas_connector.py +4 -5
  20. fides/common/api/v1/urn_registry.py +1 -0
  21. fides/config/__init__.py +3 -0
  22. fides/config/config_proxy.py +10 -0
  23. fides/config/duplicate_detection_settings.py +31 -0
  24. fides/config/utils.py +5 -0
  25. fides/service/privacy_request/privacy_request_service.py +96 -38
  26. fides/ui-build/static/admin/404.html +1 -1
  27. fides/ui-build/static/admin/_next/static/BcQzR23eIPTcIJtpdoKEA/_buildManifest.js +1 -0
  28. fides/ui-build/static/admin/_next/static/chunks/{1099-fa8b82f521b23cce.js → 1099-31f9d973bc287df8.js} +1 -1
  29. fides/ui-build/static/admin/_next/static/chunks/{1115-d7ce851b36722c41.js → 1115-26393b586775ea29.js} +1 -1
  30. fides/ui-build/static/admin/_next/static/chunks/{1437-9dd64c20d38667df.js → 1437-8b1f6c8797c68bfd.js} +1 -1
  31. fides/ui-build/static/admin/_next/static/chunks/{155-1c80b19f58f44a0c.js → 155-f6302d32cba4cab6.js} +1 -1
  32. fides/ui-build/static/admin/_next/static/chunks/{1817-0de0312294019817.js → 1817-2d5cf537a2992c79.js} +1 -1
  33. fides/ui-build/static/admin/_next/static/chunks/{1975.6ca0e76b5a3d1955.js → 1975.afe8cad52f904fcf.js} +1 -1
  34. fides/ui-build/static/admin/_next/static/chunks/{2040-a18cc21821e2d121.js → 2040-7eed8491ca7276ed.js} +1 -1
  35. fides/ui-build/static/admin/_next/static/chunks/{2397-16820a09e8ebfe33.js → 2397-083fc511acb6105d.js} +1 -1
  36. fides/ui-build/static/admin/_next/static/chunks/{2921-a5dac2eacdcc32ff.js → 2921-34a43f2f8f5e5e69.js} +1 -1
  37. fides/ui-build/static/admin/_next/static/chunks/{3377-c2c9eb177bec8719.js → 3377-988ac2f3a2e8d5d4.js} +1 -1
  38. fides/ui-build/static/admin/_next/static/chunks/{3696-21e3dec6c2023875.js → 3696-6f90e41a53d22920.js} +1 -1
  39. fides/ui-build/static/admin/_next/static/chunks/{3700-a2903cd95b8a27cb.js → 3700-f695f2f6b8251971.js} +1 -1
  40. fides/ui-build/static/admin/_next/static/chunks/{3772-bb84842df51d3f3f.js → 3772-9f1713f9d5f97a10.js} +1 -1
  41. fides/ui-build/static/admin/_next/static/chunks/{3873-d759bbe7137ae8c2.js → 3873-d18e47b327445db5.js} +1 -1
  42. fides/ui-build/static/admin/_next/static/chunks/{3923-7f0aa36c9e09cedf.js → 3923-f0a85dc5c3684fa0.js} +1 -1
  43. fides/ui-build/static/admin/_next/static/chunks/{401-874303feb3899562.js → 401-7c345d019bb9bcbd.js} +1 -1
  44. fides/ui-build/static/admin/_next/static/chunks/{4496-903c81292ffd8f91.js → 4496-4ff19366c597ec16.js} +1 -1
  45. fides/ui-build/static/admin/_next/static/chunks/{4817-d0cc100f259b3c2e.js → 4817-1f3e6ea38625d8d5.js} +1 -1
  46. fides/ui-build/static/admin/_next/static/chunks/{5185-fc171b6acce9f915.js → 5185-e7f8b81dd3dfbe0b.js} +1 -1
  47. fides/ui-build/static/admin/_next/static/chunks/{5258-cf0d2c4c4d55a94b.js → 5258-62d6bc19add60aa6.js} +1 -1
  48. fides/ui-build/static/admin/_next/static/chunks/{5279-8637d735471ec7f1.js → 5279-bd6cccabdd6ca447.js} +1 -1
  49. fides/ui-build/static/admin/_next/static/chunks/{549-2d9bde37e5fe13eb.js → 549-28537a6de666944b.js} +1 -1
  50. fides/ui-build/static/admin/_next/static/chunks/{5643-48a5e0ad8b9fc3f7.js → 5643-3459282d296a3c59.js} +1 -1
  51. fides/ui-build/static/admin/_next/static/chunks/{5783-63912bab7f80b0f8.js → 5783-21775c232dce7af7.js} +1 -1
  52. fides/ui-build/static/admin/_next/static/chunks/{6277-ec0e3fa4e4614098.js → 6277-3759894435cb8569.js} +1 -1
  53. fides/ui-build/static/admin/_next/static/chunks/{6315-79a1506e01f2f92b.js → 6315-e2fb5ea77179a871.js} +1 -1
  54. fides/ui-build/static/admin/_next/static/chunks/{6853-c348f6e95f987cbf.js → 6853-de9905d28e5b19b3.js} +1 -1
  55. fides/ui-build/static/admin/_next/static/chunks/{6954-c44ac4e70e777c2f.js → 6954-84789a4e4fb04eb9.js} +1 -1
  56. fides/ui-build/static/admin/_next/static/chunks/7059-2bb7c38578549703.js +1 -0
  57. fides/ui-build/static/admin/_next/static/chunks/{7245-120f536e09decb85.js → 7245-c9bc628d078c2170.js} +1 -1
  58. fides/ui-build/static/admin/_next/static/chunks/{7476-4234fb244676ec13.js → 7476-a02d970ea4d3f7d0.js} +1 -1
  59. fides/ui-build/static/admin/_next/static/chunks/7488-cf92601852e3c509.js +1 -0
  60. fides/ui-build/static/admin/_next/static/chunks/{7630-d7bd74d0cfdb22df.js → 7630-a11610c2b31ab2ca.js} +1 -1
  61. fides/ui-build/static/admin/_next/static/chunks/{7773-6dce6187fe2c6984.js → 7773-9ae233109bc64ec2.js} +1 -1
  62. fides/ui-build/static/admin/_next/static/chunks/{796-fae64888b8b2f369.js → 796-e36d610066135f8c.js} +1 -1
  63. fides/ui-build/static/admin/_next/static/chunks/{8011-6e40c969c9fa7d35.js → 8011-75af8b480fa114e6.js} +1 -1
  64. fides/ui-build/static/admin/_next/static/chunks/{8212-18d8da0f9208f978.js → 8212-393420e5a9751791.js} +1 -1
  65. fides/ui-build/static/admin/_next/static/chunks/{8373-24379b7d98e6922e.js → 8373-22b4d20e8cc06b3a.js} +1 -1
  66. fides/ui-build/static/admin/_next/static/chunks/{9046-6428eac9f38b3886.js → 9046-d9c6498368b993d1.js} +1 -1
  67. fides/ui-build/static/admin/_next/static/chunks/{9330-540a113903cb3c28.js → 9330-f753636a31c4ea04.js} +1 -1
  68. fides/ui-build/static/admin/_next/static/chunks/{9676.704cc210f59d0083.js → 9676.7d029a5383595b69.js} +1 -1
  69. fides/ui-build/static/admin/_next/static/chunks/{9682-a3b2fb1a2df1c948.js → 9682-d1a3afa1394f8304.js} +1 -1
  70. fides/ui-build/static/admin/_next/static/chunks/{9826-aecc5ddec86989dc.js → 9826-a737a9956c1d0905.js} +1 -1
  71. fides/ui-build/static/admin/_next/static/chunks/{9899-303921e3d0697960.js → 9899-addc35c81190203d.js} +1 -1
  72. fides/ui-build/static/admin/_next/static/chunks/{9965-6906ffdaef0f0d69.js → 9965-25621dd507e0cfd6.js} +1 -1
  73. fides/ui-build/static/admin/_next/static/chunks/pages/{404-c31cef0ce3fbeebf.js → 404-eb019192ce498f32.js} +1 -1
  74. fides/ui-build/static/admin/_next/static/chunks/pages/{_app-5fd4e06224960492.js → _app-ee588a308812715d.js} +11 -11
  75. fides/ui-build/static/admin/_next/static/chunks/pages/add-systems/{manual-a5865f42aafbe1f8.js → manual-7081e0e49f67716c.js} +1 -1
  76. fides/ui-build/static/admin/_next/static/chunks/pages/add-systems/{multiple-f706664770dd3e7f.js → multiple-a188f84239f4b2a8.js} +1 -1
  77. fides/ui-build/static/admin/_next/static/chunks/pages/{add-systems-3f0d8698f01aabc5.js → add-systems-ee9df33ebd471099.js} +1 -1
  78. fides/ui-build/static/admin/_next/static/chunks/pages/consent/configure/{add-vendors-fcd031b2b775e4f3.js → add-vendors-4f9cf087fcee87e6.js} +1 -1
  79. fides/ui-build/static/admin/_next/static/chunks/pages/consent/{configure-0bd2eb0110873c4d.js → configure-9af75caefc74eaca.js} +1 -1
  80. fides/ui-build/static/admin/_next/static/chunks/pages/consent/privacy-experience/{[id]-0dd17c74a6cc17ff.js → [id]-1b02a4991201b7e4.js} +1 -1
  81. fides/ui-build/static/admin/_next/static/chunks/pages/consent/{privacy-experience-ae8dff75e1c6c413.js → privacy-experience-b08abefec298ccf1.js} +1 -1
  82. fides/ui-build/static/admin/_next/static/chunks/pages/consent/privacy-notices/{[id]-84ba8b9947b9af0a.js → [id]-8c164c4b8310214e.js} +1 -1
  83. fides/ui-build/static/admin/_next/static/chunks/pages/consent/privacy-notices/{new-f03d1d0df4661a33.js → new-db789002d84c8829.js} +1 -1
  84. fides/ui-build/static/admin/_next/static/chunks/pages/consent/{privacy-notices-5a553b4bdbf85aa9.js → privacy-notices-6528eb24165aceb6.js} +1 -1
  85. fides/ui-build/static/admin/_next/static/chunks/pages/consent/{properties-5cba88e6839a087d.js → properties-5cba30eba1e97e56.js} +1 -1
  86. fides/ui-build/static/admin/_next/static/chunks/pages/consent/{reporting-f2690c381c1d1a52.js → reporting-11f1683aa15e1a62.js} +1 -1
  87. fides/ui-build/static/admin/_next/static/chunks/pages/{consent-289d21aa6c42828b.js → consent-614af0a2c2ba966c.js} +1 -1
  88. fides/ui-build/static/admin/_next/static/chunks/pages/data-catalog/[systemId]/projects/{[projectUrn]-cb56d56b9d918682.js → [projectUrn]-d60761c20382b259.js} +1 -1
  89. fides/ui-build/static/admin/_next/static/chunks/pages/data-catalog/[systemId]/{projects-ccb66ba6d1ad93fc.js → projects-07e7d38ce34e1e6c.js} +1 -1
  90. fides/ui-build/static/admin/_next/static/chunks/pages/data-catalog/[systemId]/{resources-ecb2d925d75dfe1e.js → resources-aed94957009eb3fd.js} +1 -1
  91. fides/ui-build/static/admin/_next/static/chunks/pages/{data-catalog-75403467491a251b.js → data-catalog-127c114dd8f102ed.js} +1 -1
  92. fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/action-center/datastore/[monitorId]-21a0f5f1b5450976.js +1 -0
  93. fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/action-center/website/[monitorId]/{[systemId]-71cf0b06b3d5a326.js → [systemId]-899bf30dde8b3292.js} +1 -1
  94. fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/action-center/website/{[monitorId]-cc6b359fb4968bf0.js → [monitorId]-73085f50abb775c0.js} +1 -1
  95. fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/action-center-823d0dd77e66585b.js +1 -0
  96. fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/{activity-7dded115499a4a4a.js → activity-24a82e07a0008516.js} +1 -1
  97. fides/ui-build/static/admin/_next/static/chunks/pages/{datamap-d1bb19fe4ef393dc.js → datamap-3b100c44ea9e3988.js} +1 -1
  98. fides/ui-build/static/admin/_next/static/chunks/pages/dataset/[datasetId]/[collectionName]/{[...subfieldNames]-58c3f4c0b490264b.js → [...subfieldNames]-5f88280db168083e.js} +1 -1
  99. fides/ui-build/static/admin/_next/static/chunks/pages/dataset/[datasetId]/{[collectionName]-74290432e74fcdc5.js → [collectionName]-bfbcf19c28c794ae.js} +1 -1
  100. fides/ui-build/static/admin/_next/static/chunks/pages/dataset/{[datasetId]-8dad45f070a06609.js → [datasetId]-6fbe2b584a509226.js} +1 -1
  101. fides/ui-build/static/admin/_next/static/chunks/pages/dataset/{new-6aed6dc24c3be001.js → new-3d1e48f4b95d7f6b.js} +1 -1
  102. fides/ui-build/static/admin/_next/static/chunks/pages/{dataset-fdaec997c1b0753f.js → dataset-d3c6ecf7f29bea6e.js} +1 -1
  103. fides/ui-build/static/admin/_next/static/chunks/pages/datastore-connection/{[id]-63c4805e40673c60.js → [id]-0a4aa42be2da0255.js} +1 -1
  104. fides/ui-build/static/admin/_next/static/chunks/pages/datastore-connection/{new-b5a49743387eecef.js → new-14313e441a13192c.js} +1 -1
  105. fides/ui-build/static/admin/_next/static/chunks/pages/{datastore-connection-8f0804d9a38688a4.js → datastore-connection-f139d1ce26404f30.js} +1 -1
  106. fides/ui-build/static/admin/_next/static/chunks/pages/{index-363b091a4d1d70ad.js → index-1343fa525a206571.js} +1 -1
  107. fides/ui-build/static/admin/_next/static/chunks/pages/integrations/[id]-b2d3d28b10a758e6.js +1 -0
  108. fides/ui-build/static/admin/_next/static/chunks/pages/{integrations-b0da32fe3564c129.js → integrations-a733e5d7c3ce9bb8.js} +1 -1
  109. fides/ui-build/static/admin/_next/static/chunks/pages/new-privacy-requests-df0c95e408c54c7e.js +1 -0
  110. fides/ui-build/static/admin/_next/static/chunks/pages/notifications/digests/{[id]-0e4e4e7110362022.js → [id]-63b3be660fb12c0f.js} +1 -1
  111. fides/ui-build/static/admin/_next/static/chunks/pages/notifications/digests/{new-2e15f6272e9aaeb6.js → new-d3b577962dd33266.js} +1 -1
  112. fides/ui-build/static/admin/_next/static/chunks/pages/notifications/{digests-65626dfcfacdc605.js → digests-aed9afd988a48acf.js} +1 -1
  113. fides/ui-build/static/admin/_next/static/chunks/pages/notifications/providers/{[key]-768c4e2f6b05304c.js → [key]-720cde29f81db47f.js} +1 -1
  114. fides/ui-build/static/admin/_next/static/chunks/pages/notifications/providers/{new-2d57a70e4d32e651.js → new-3668866076b53016.js} +1 -1
  115. fides/ui-build/static/admin/_next/static/chunks/pages/notifications/{providers-83f78354fa34bffe.js → providers-36a0ac36062abd02.js} +1 -1
  116. fides/ui-build/static/admin/_next/static/chunks/pages/notifications/templates/{[id]-1b31764f520fbbc5.js → [id]-8063dceb32310c85.js} +1 -1
  117. fides/ui-build/static/admin/_next/static/chunks/pages/notifications/templates/{add-template-4c74456b6677bf07.js → add-template-4931c70bee62232f.js} +1 -1
  118. fides/ui-build/static/admin/_next/static/chunks/pages/notifications/{templates-5deb80abd6156f7f.js → templates-a14c876b49422597.js} +1 -1
  119. fides/ui-build/static/admin/_next/static/chunks/pages/{notifications-8d8716dda9a6f277.js → notifications-93af719dab3bd053.js} +1 -1
  120. fides/ui-build/static/admin/_next/static/chunks/pages/poc/{ant-components-52b1572442a20ab4.js → ant-components-9cfb469de7b4aeab.js} +1 -1
  121. fides/ui-build/static/admin/_next/static/chunks/pages/poc/form-experiments/{AntForm-a0437ba647d59799.js → AntForm-e715cc654fb6a5cd.js} +1 -1
  122. fides/ui-build/static/admin/_next/static/chunks/pages/poc/form-experiments/{FormikAntFormItem-87285c544450ec46.js → FormikAntFormItem-72ae299bcb6adae6.js} +1 -1
  123. fides/ui-build/static/admin/_next/static/chunks/pages/poc/form-experiments/{FormikControlled-57997dbd451a6eed.js → FormikControlled-2337f8c81a766eb0.js} +1 -1
  124. fides/ui-build/static/admin/_next/static/chunks/pages/poc/form-experiments/{FormikField-65009783e0404153.js → FormikField-0af454f55494f6fa.js} +1 -1
  125. fides/ui-build/static/admin/_next/static/chunks/pages/poc/{forms-eafef007c179340f.js → forms-d1b90ffa996fbd89.js} +1 -1
  126. fides/ui-build/static/admin/_next/static/chunks/pages/poc/{table-migration-7933a824a45d0ee6.js → table-migration-19724b9e0581b96d.js} +1 -1
  127. fides/ui-build/static/admin/_next/static/chunks/pages/privacy-requests/[id]-cdd3754289a28317.js +1 -0
  128. fides/ui-build/static/admin/_next/static/chunks/pages/privacy-requests/configure/{storage-16f77a6291bb02fe.js → storage-cc41ae605f2b55ae.js} +1 -1
  129. fides/ui-build/static/admin/_next/static/chunks/pages/privacy-requests/{configure-d2b3293ab496f7bc.js → configure-fa82cffba448ccd8.js} +1 -1
  130. fides/ui-build/static/admin/_next/static/chunks/pages/{privacy-requests-af4f48d10926e4a4.js → privacy-requests-6e4c535b6d614596.js} +1 -1
  131. fides/ui-build/static/admin/_next/static/chunks/pages/properties/{[id]-dd3c3d780533a9c2.js → [id]-bc1c289647e52c48.js} +1 -1
  132. fides/ui-build/static/admin/_next/static/chunks/pages/properties/{add-property-d1af260c3ddbf68b.js → add-property-cbfaa23d96f5ed0b.js} +1 -1
  133. fides/ui-build/static/admin/_next/static/chunks/pages/{properties-9bb7fe3577402008.js → properties-a15a3fd0ed88f39c.js} +1 -1
  134. fides/ui-build/static/admin/_next/static/chunks/pages/reporting/datamap-632b3ee563d070f2.js +1 -0
  135. fides/ui-build/static/admin/_next/static/chunks/pages/sandbox/privacy-notices-afe921f6e2a526fb.js +1 -0
  136. fides/ui-build/static/admin/_next/static/chunks/pages/settings/consent/[configuration_id]/{[purpose_id]-35626e9d8e0a3ca2.js → [purpose_id]-19de0024418a4924.js} +1 -1
  137. fides/ui-build/static/admin/_next/static/chunks/pages/settings/{consent-39b5142099ed8705.js → consent-5b6807dced8d03c5.js} +1 -1
  138. fides/ui-build/static/admin/_next/static/chunks/pages/settings/{custom-fields-64c638ea33bb3ff9.js → custom-fields-7dce52bfc1b2652c.js} +1 -1
  139. fides/ui-build/static/admin/_next/static/chunks/pages/settings/{domain-records-3843fbaf5bc433f1.js → domain-records-3b87002753b23ca5.js} +1 -1
  140. fides/ui-build/static/admin/_next/static/chunks/pages/settings/{domains-ea549fabce96fde4.js → domains-aacd9d0ad47082d4.js} +1 -1
  141. fides/ui-build/static/admin/_next/static/chunks/pages/settings/{email-templates-0fe318a9dfc1f593.js → email-templates-3cdd0b39901190ba.js} +1 -1
  142. fides/ui-build/static/admin/_next/static/chunks/pages/settings/{locations-c42c856510cad6fd.js → locations-61076eedbfd137b9.js} +1 -1
  143. fides/ui-build/static/admin/_next/static/chunks/pages/settings/{organization-e4c552a5797c3fa5.js → organization-b07b11d6002f8c8c.js} +1 -1
  144. fides/ui-build/static/admin/_next/static/chunks/pages/settings/{privacy-requests-2790d31b59cc3c74.js → privacy-requests-084a2b4431d35322.js} +1 -1
  145. fides/ui-build/static/admin/_next/static/chunks/pages/settings/{regulations-3c608512c415fca4.js → regulations-b7c0d3b1b754e70f.js} +1 -1
  146. fides/ui-build/static/admin/_next/static/chunks/pages/systems/configure/[id]/{test-datasets-e0e1a5142e41e9f2.js → test-datasets-b72d36243a0a545c.js} +1 -1
  147. fides/ui-build/static/admin/_next/static/chunks/pages/systems/configure/{[id]-9e815520adb3e580.js → [id]-59c89489fa32a4cb.js} +1 -1
  148. fides/ui-build/static/admin/_next/static/chunks/pages/{systems-d8ce572ad07ed28c.js → systems-cfaa37a0df83674b.js} +1 -1
  149. fides/ui-build/static/admin/_next/static/chunks/pages/taxonomy-d2eb5a81d4a19c7d.js +1 -0
  150. fides/ui-build/static/admin/_next/static/chunks/pages/user-management/profile/{[id]-75d96422db98196f.js → [id]-5d5a68e555d18693.js} +1 -1
  151. fides/ui-build/static/admin/_next/static/chunks/pages/{user-management-598f98fd88505e1e.js → user-management-e6a211d8a0401086.js} +1 -1
  152. fides/ui-build/static/admin/_next/static/chunks/{webpack-0a3b419ab682b8f9.js → webpack-c2c11809187b9f84.js} +1 -1
  153. fides/ui-build/static/admin/_next/static/css/d41a048a166d50e4.css +1 -0
  154. fides/ui-build/static/admin/_next/static/css/d78390d6134d8328.css +1 -0
  155. fides/ui-build/static/admin/add-systems/manual.html +1 -1
  156. fides/ui-build/static/admin/add-systems/multiple.html +1 -1
  157. fides/ui-build/static/admin/add-systems.html +1 -1
  158. fides/ui-build/static/admin/consent/configure/add-vendors.html +1 -1
  159. fides/ui-build/static/admin/consent/configure.html +1 -1
  160. fides/ui-build/static/admin/consent/privacy-experience/[id].html +1 -1
  161. fides/ui-build/static/admin/consent/privacy-experience/new.html +1 -1
  162. fides/ui-build/static/admin/consent/privacy-experience.html +1 -1
  163. fides/ui-build/static/admin/consent/privacy-notices/[id].html +1 -1
  164. fides/ui-build/static/admin/consent/privacy-notices/new.html +1 -1
  165. fides/ui-build/static/admin/consent/privacy-notices.html +1 -1
  166. fides/ui-build/static/admin/consent/properties.html +1 -1
  167. fides/ui-build/static/admin/consent/reporting.html +1 -1
  168. fides/ui-build/static/admin/consent.html +1 -1
  169. fides/ui-build/static/admin/data-catalog/[systemId]/projects/[projectUrn]/[resourceUrn].html +1 -1
  170. fides/ui-build/static/admin/data-catalog/[systemId]/projects/[projectUrn].html +1 -1
  171. fides/ui-build/static/admin/data-catalog/[systemId]/projects.html +1 -1
  172. fides/ui-build/static/admin/data-catalog/[systemId]/resources/[resourceUrn].html +1 -1
  173. fides/ui-build/static/admin/data-catalog/[systemId]/resources.html +1 -1
  174. fides/ui-build/static/admin/data-catalog.html +1 -1
  175. fides/ui-build/static/admin/data-discovery/action-center/datastore/[monitorId].html +1 -1
  176. fides/ui-build/static/admin/data-discovery/action-center/datastore.html +1 -1
  177. fides/ui-build/static/admin/data-discovery/action-center/website/[monitorId]/[systemId].html +1 -1
  178. fides/ui-build/static/admin/data-discovery/action-center/website/[monitorId].html +1 -1
  179. fides/ui-build/static/admin/data-discovery/action-center/website.html +1 -1
  180. fides/ui-build/static/admin/data-discovery/action-center.html +1 -1
  181. fides/ui-build/static/admin/data-discovery/activity.html +1 -1
  182. fides/ui-build/static/admin/data-discovery/detection/[resourceUrn].html +1 -1
  183. fides/ui-build/static/admin/data-discovery/detection.html +1 -1
  184. fides/ui-build/static/admin/data-discovery/discovery/[resourceUrn].html +1 -1
  185. fides/ui-build/static/admin/data-discovery/discovery.html +1 -1
  186. fides/ui-build/static/admin/datamap.html +1 -1
  187. fides/ui-build/static/admin/dataset/[datasetId]/[collectionName]/[...subfieldNames].html +1 -1
  188. fides/ui-build/static/admin/dataset/[datasetId]/[collectionName].html +1 -1
  189. fides/ui-build/static/admin/dataset/[datasetId].html +1 -1
  190. fides/ui-build/static/admin/dataset/new.html +1 -1
  191. fides/ui-build/static/admin/dataset.html +1 -1
  192. fides/ui-build/static/admin/datastore-connection/[id].html +1 -1
  193. fides/ui-build/static/admin/datastore-connection/new.html +1 -1
  194. fides/ui-build/static/admin/datastore-connection.html +1 -1
  195. fides/ui-build/static/admin/index.html +1 -1
  196. fides/ui-build/static/admin/integrations/[id].html +1 -1
  197. fides/ui-build/static/admin/integrations.html +1 -1
  198. fides/ui-build/static/admin/login/[provider].html +1 -1
  199. fides/ui-build/static/admin/login.html +1 -1
  200. fides/ui-build/static/admin/new-privacy-requests.html +1 -1
  201. fides/ui-build/static/admin/notifications/digests/[id].html +1 -1
  202. fides/ui-build/static/admin/notifications/digests/new.html +1 -1
  203. fides/ui-build/static/admin/notifications/digests.html +1 -1
  204. fides/ui-build/static/admin/notifications/providers/[key].html +1 -1
  205. fides/ui-build/static/admin/notifications/providers/new.html +1 -1
  206. fides/ui-build/static/admin/notifications/providers.html +1 -1
  207. fides/ui-build/static/admin/notifications/templates/[id].html +1 -1
  208. fides/ui-build/static/admin/notifications/templates/add-template.html +1 -1
  209. fides/ui-build/static/admin/notifications/templates.html +1 -1
  210. fides/ui-build/static/admin/notifications.html +1 -1
  211. fides/ui-build/static/admin/poc/ant-components.html +1 -1
  212. fides/ui-build/static/admin/poc/form-experiments/AntForm.html +1 -1
  213. fides/ui-build/static/admin/poc/form-experiments/FormikAntFormItem.html +1 -1
  214. fides/ui-build/static/admin/poc/form-experiments/FormikControlled.html +1 -1
  215. fides/ui-build/static/admin/poc/form-experiments/FormikField.html +1 -1
  216. fides/ui-build/static/admin/poc/form-experiments/FormikSpreadField.html +1 -1
  217. fides/ui-build/static/admin/poc/forms.html +1 -1
  218. fides/ui-build/static/admin/poc/table-migration.html +1 -1
  219. fides/ui-build/static/admin/privacy-requests/[id].html +1 -1
  220. fides/ui-build/static/admin/privacy-requests/configure/storage.html +1 -1
  221. fides/ui-build/static/admin/privacy-requests/configure.html +1 -1
  222. fides/ui-build/static/admin/privacy-requests.html +1 -1
  223. fides/ui-build/static/admin/properties/[id].html +1 -1
  224. fides/ui-build/static/admin/properties/add-property.html +1 -1
  225. fides/ui-build/static/admin/properties.html +1 -1
  226. fides/ui-build/static/admin/reporting/datamap.html +1 -1
  227. fides/ui-build/static/admin/sandbox/privacy-notices.html +1 -0
  228. fides/ui-build/static/admin/settings/about/alpha.html +1 -1
  229. fides/ui-build/static/admin/settings/about.html +1 -1
  230. fides/ui-build/static/admin/settings/consent/[configuration_id]/[purpose_id].html +1 -1
  231. fides/ui-build/static/admin/settings/consent.html +1 -1
  232. fides/ui-build/static/admin/settings/custom-fields/[id].html +1 -1
  233. fides/ui-build/static/admin/settings/custom-fields/new.html +1 -1
  234. fides/ui-build/static/admin/settings/custom-fields.html +1 -1
  235. fides/ui-build/static/admin/settings/domain-records.html +1 -1
  236. fides/ui-build/static/admin/settings/domains.html +1 -1
  237. fides/ui-build/static/admin/settings/email-templates.html +1 -1
  238. fides/ui-build/static/admin/settings/locations.html +1 -1
  239. fides/ui-build/static/admin/settings/organization.html +1 -1
  240. fides/ui-build/static/admin/settings/privacy-requests.html +1 -1
  241. fides/ui-build/static/admin/settings/regulations.html +1 -1
  242. fides/ui-build/static/admin/systems/configure/[id]/test-datasets.html +1 -1
  243. fides/ui-build/static/admin/systems/configure/[id].html +1 -1
  244. fides/ui-build/static/admin/systems.html +1 -1
  245. fides/ui-build/static/admin/taxonomy.html +1 -1
  246. fides/ui-build/static/admin/user-management/new.html +1 -1
  247. fides/ui-build/static/admin/user-management/profile/[id].html +1 -1
  248. fides/ui-build/static/admin/user-management.html +1 -1
  249. fides/ui-build/static/admin/_next/static/V6C1Uu1MRQoBEyjy_BoEr/_buildManifest.js +0 -1
  250. fides/ui-build/static/admin/_next/static/chunks/7059-3f2641e3130b4ef8.js +0 -1
  251. fides/ui-build/static/admin/_next/static/chunks/7488-2db0992474f8056e.js +0 -1
  252. fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/action-center/datastore/[monitorId]-e46e017a3919f94e.js +0 -1
  253. fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/action-center-cbff5db86e6951c4.js +0 -1
  254. fides/ui-build/static/admin/_next/static/chunks/pages/integrations/[id]-3b7f47985452e01d.js +0 -1
  255. fides/ui-build/static/admin/_next/static/chunks/pages/new-privacy-requests-d1152cbc3c1bbbbb.js +0 -1
  256. fides/ui-build/static/admin/_next/static/chunks/pages/privacy-requests/[id]-27c56466eab98b15.js +0 -1
  257. fides/ui-build/static/admin/_next/static/chunks/pages/reporting/datamap-33ce744d07982c0f.js +0 -1
  258. fides/ui-build/static/admin/_next/static/chunks/pages/taxonomy-0cae23a599830708.js +0 -1
  259. fides/ui-build/static/admin/_next/static/css/919f947a862d28cd.css +0 -1
  260. {ethyca_fides-2.73.0rc4.dist-info → ethyca_fides-2.73.1.dist-info}/WHEEL +0 -0
  261. {ethyca_fides-2.73.0rc4.dist-info → ethyca_fides-2.73.1.dist-info}/entry_points.txt +0 -0
  262. {ethyca_fides-2.73.0rc4.dist-info → ethyca_fides-2.73.1.dist-info}/licenses/LICENSE +0 -0
  263. {ethyca_fides-2.73.0rc4.dist-info → ethyca_fides-2.73.1.dist-info}/top_level.txt +0 -0
  264. /fides/ui-build/static/admin/_next/static/{V6C1Uu1MRQoBEyjy_BoEr → BcQzR23eIPTcIJtpdoKEA}/_ssgManifest.js +0 -0
  265. /fides/ui-build/static/admin/_next/static/chunks/pages/data-catalog/[systemId]/projects/[projectUrn]/{[resourceUrn]-5d133ec635cd716c.js → [resourceUrn]-32bd7a7c990e5bf6.js} +0 -0
  266. /fides/ui-build/static/admin/_next/static/chunks/pages/data-catalog/[systemId]/resources/{[resourceUrn]-9d8efe43b69a285d.js → [resourceUrn]-b07a0707f8c2ec0d.js} +0 -0
  267. /fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/action-center/{datastore-1b0ed3b3ceedfd94.js → datastore-4498881c26f1458d.js} +0 -0
  268. /fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/action-center/{website-60ad14c879b4fe27.js → website-5b3e0009d442bc3f.js} +0 -0
  269. /fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/detection/{[resourceUrn]-2df143c1e1f79040.js → [resourceUrn]-b072cf25aefc98f6.js} +0 -0
  270. /fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/{detection-e37c800313e2a422.js → detection-fd3e8817d8e6dee4.js} +0 -0
  271. /fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/discovery/{[resourceUrn]-7022ca5fa834b633.js → [resourceUrn]-146624cf59792bf7.js} +0 -0
  272. /fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/{discovery-6178e22397f20f92.js → discovery-9695cc9c85592ec5.js} +0 -0
  273. /fides/ui-build/static/admin/_next/static/chunks/pages/settings/custom-fields/{[id]-b5140de4431a7ff5.js → [id]-8634aae3259def37.js} +0 -0
  274. /fides/ui-build/static/admin/_next/static/chunks/pages/settings/custom-fields/{new-dcc16459e754fbbd.js → new-2d9dcca17965dc57.js} +0 -0
  275. /fides/ui-build/static/admin/_next/static/chunks/pages/user-management/{new-bc1568bb47d198a9.js → new-7dce2916cc589c54.js} +0 -0
@@ -1 +1 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3422],{82545:function(e,n,r){var t=r(81822)(r(77400),"DataView");e.exports=t},44538:function(e,n,r){var t=r(81822)(r(77400),"Map");e.exports=t},64825:function(e,n,r){var t=r(81822)(r(77400),"Promise");e.exports=t},46151:function(e,n,r){var t=r(81822)(r(77400),"Set");e.exports=t},66902:function(e,n,r){var t=r(81822)(r(77400),"WeakMap");e.exports=t},80594:function(e){e.exports=function(e,n){for(var r=-1,t=null==e?0:e.length;++r<t&&!1!==n(e[r],r,e););return e}},98213:function(e,n,r){var t=r(24701),a=r(2900),i=r(19785),o=r(43854),s=r(42383),l=r(48519),c=Object.prototype.hasOwnProperty;e.exports=function(e,n){var r=i(e),u=!r&&a(e),_=!r&&!u&&o(e),d=!r&&!u&&!_&&l(e),F=r||u||_||d,p=F?t(e.length,String):[],h=p.length;for(var f in e)(n||c.call(e,f))&&!(F&&("length"==f||_&&("offset"==f||"parent"==f)||d&&("buffer"==f||"byteLength"==f||"byteOffset"==f)||s(f,h)))&&p.push(f);return p}},52033:function(e,n,r){var t=r(26194),a=r(26789)(t);e.exports=a},49819:function(e,n,r){var t=r(18911)();e.exports=t},26194:function(e,n,r){var t=r(49819),a=r(50098);e.exports=function(e,n){return e&&t(e,n,a)}},55829:function(e,n,r){var t=r(99736),a=r(92360);e.exports=function(e){return a(e)&&"[object Arguments]"==t(e)}},46729:function(e,n,r){var t=r(28338),a=r(99678),i=r(11611),o=r(76532),s=/^\[object .+?Constructor\]$/,l=Object.prototype,c=Function.prototype.toString,u=l.hasOwnProperty,_=RegExp("^"+c.call(u).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!i(e)||a(e))&&(t(e)?_:s).test(o(e))}},26972:function(e,n,r){var t=r(99736),a=r(84194),i=r(92360),o={};o["[object Float32Array]"]=o["[object Float64Array]"]=o["[object Int8Array]"]=o["[object Int16Array]"]=o["[object Int32Array]"]=o["[object Uint8Array]"]=o["[object Uint8ClampedArray]"]=o["[object Uint16Array]"]=o["[object Uint32Array]"]=!0,o["[object Arguments]"]=o["[object Array]"]=o["[object ArrayBuffer]"]=o["[object Boolean]"]=o["[object DataView]"]=o["[object Date]"]=o["[object Error]"]=o["[object Function]"]=o["[object Map]"]=o["[object Number]"]=o["[object Object]"]=o["[object RegExp]"]=o["[object Set]"]=o["[object String]"]=o["[object WeakMap]"]=!1,e.exports=function(e){return i(e)&&a(e.length)&&!!o[t(e)]}},20186:function(e,n,r){var t=r(56016),a=r(50962),i=Object.prototype.hasOwnProperty;e.exports=function(e){if(!t(e))return a(e);var n=[];for(var r in Object(e))i.call(e,r)&&"constructor"!=r&&n.push(r);return n}},24701:function(e){e.exports=function(e,n){for(var r=-1,t=Array(e);++r<e;)t[r]=n(r);return t}},39334:function(e){e.exports=function(e){return function(n){return e(n)}}},62079:function(e,n,r){var t=r(31137);e.exports=function(e){return"function"==typeof e?e:t}},64937:function(e,n,r){var t=r(77400)["__core-js_shared__"];e.exports=t},26789:function(e,n,r){var t=r(80068);e.exports=function(e,n){return function(r,a){if(null==r)return r;if(!t(r))return e(r,a);for(var i=r.length,o=n?i:-1,s=Object(r);(n?o--:++o<i)&&!1!==a(s[o],o,s););return r}}},18911:function(e){e.exports=function(e){return function(n,r,t){for(var a=-1,i=Object(n),o=t(n),s=o.length;s--;){var l=o[e?s:++a];if(!1===r(i[l],l,i))break}return n}}},81822:function(e,n,r){var t=r(46729),a=r(15371);e.exports=function(e,n){var r=a(e,n);return t(r)?r:void 0}},3533:function(e,n,r){var t=r(82545),a=r(44538),i=r(64825),o=r(46151),s=r(66902),l=r(99736),c=r(76532),u="[object Map]",_="[object Promise]",d="[object Set]",F="[object WeakMap]",p="[object DataView]",h=c(t),f=c(a),x=c(i),g=c(o),j=c(s),m=l;(t&&m(new t(new ArrayBuffer(1)))!=p||a&&m(new a)!=u||i&&m(i.resolve())!=_||o&&m(new o)!=d||s&&m(new s)!=F)&&(m=function(e){var n=l(e),r="[object Object]"==n?e.constructor:void 0,t=r?c(r):"";if(t)switch(t){case h:return p;case f:return u;case x:return _;case g:return d;case j:return F}return n}),e.exports=m},15371:function(e){e.exports=function(e,n){return null==e?void 0:e[n]}},42383:function(e){var n=/^(?:0|[1-9]\d*)$/;e.exports=function(e,r){var t=typeof e;return!!(r=null==r?9007199254740991:r)&&("number"==t||"symbol"!=t&&n.test(e))&&e>-1&&e%1==0&&e<r}},99678:function(e,n,r){var t,a=r(64937),i=(t=/[^.]+$/.exec(a&&a.keys&&a.keys.IE_PROTO||""))?"Symbol(src)_1."+t:"";e.exports=function(e){return!!i&&i in e}},56016:function(e){var n=Object.prototype;e.exports=function(e){var r=e&&e.constructor;return e===("function"==typeof r&&r.prototype||n)}},50962:function(e,n,r){var t=r(58023)(Object.keys,Object);e.exports=t},18125:function(e,n,r){e=r.nmd(e);var t=r(39120),a=n&&!n.nodeType&&n,i=a&&e&&!e.nodeType&&e,o=i&&i.exports===a&&t.process,s=function(){try{var e=i&&i.require&&i.require("util").types;if(e)return e;return o&&o.binding&&o.binding("util")}catch(e){}}();e.exports=s},58023:function(e){e.exports=function(e,n){return function(r){return e(n(r))}}},76532:function(e){var n=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return n.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},47003:function(e,n,r){var t=r(80594),a=r(52033),i=r(62079),o=r(19785);e.exports=function(e,n){return(o(e)?t:a)(e,i(n))}},31137:function(e){e.exports=function(e){return e}},2900:function(e,n,r){var t=r(55829),a=r(92360),i=Object.prototype,o=i.hasOwnProperty,s=i.propertyIsEnumerable,l=t(function(){return arguments}())?t:function(e){return a(e)&&o.call(e,"callee")&&!s.call(e,"callee")};e.exports=l},19785:function(e){var n=Array.isArray;e.exports=n},80068:function(e,n,r){var t=r(28338),a=r(84194);e.exports=function(e){return null!=e&&a(e.length)&&!t(e)}},43854:function(e,n,r){e=r.nmd(e);var t=r(77400),a=r(57714),i=n&&!n.nodeType&&n,o=i&&e&&!e.nodeType&&e,s=o&&o.exports===i?t.Buffer:void 0,l=s?s.isBuffer:void 0;e.exports=l||a},90104:function(e,n,r){var t=r(20186),a=r(3533),i=r(2900),o=r(19785),s=r(80068),l=r(43854),c=r(56016),u=r(48519),_=Object.prototype.hasOwnProperty;e.exports=function(e){if(null==e)return!0;if(s(e)&&(o(e)||"string"==typeof e||"function"==typeof e.splice||l(e)||u(e)||i(e)))return!e.length;var n=a(e);if("[object Map]"==n||"[object Set]"==n)return!e.size;if(c(e))return!t(e).length;for(var r in e)if(_.call(e,r))return!1;return!0}},28338:function(e,n,r){var t=r(99736),a=r(11611);e.exports=function(e){if(!a(e))return!1;var n=t(e);return"[object Function]"==n||"[object GeneratorFunction]"==n||"[object AsyncFunction]"==n||"[object Proxy]"==n}},84194:function(e){e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},11611:function(e){e.exports=function(e){var n=typeof e;return null!=e&&("object"==n||"function"==n)}},48519:function(e,n,r){var t=r(26972),a=r(39334),i=r(18125),o=i&&i.isTypedArray,s=o?a(o):t;e.exports=s},50098:function(e,n,r){var t=r(98213),a=r(20186),i=r(80068);e.exports=function(e){return i(e)?t(e):a(e)}},57714:function(e){e.exports=function(){return!1}},15806:function(e,n,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/consent/reporting",function(){return r(45113)}])},35287:function(e,n,r){"use strict";var t=r(24246),a=r(87949),i=r(88038),o=r.n(i);r(27378),n.Z=e=>{let{children:n,title:r,fullHeight:i,fullWidth:s,mainProps:l}=e;return(0,t.jsxs)(a.kCb,{"data-testid":r,direction:"column",height:i?"100vh":"calc(100vh - 48px)",width:s?"100vw":"calc(100vw - 240px)",children:[(0,t.jsxs)(o(),{children:[(0,t.jsxs)("title",{children:["Fides Admin UI - ",r]}),(0,t.jsx)("meta",{name:"description",content:"Privacy Engineering Platform"}),(0,t.jsx)("link",{rel:"icon",href:"/favicon.ico"})]}),(0,t.jsx)(a.kCb,{px:10,py:6,as:"main",overflow:"auto",direction:"column",flex:1,minWidth:0,...l,children:n})]})}},58754:function(e,n,r){"use strict";var t=r(24246),a=r(87949),i=r(70788);n.Z=e=>{let{heading:n,breadcrumbItems:r,isSticky:o=!0,children:s,rightContent:l,style:c,...u}=e;return(0,t.jsxs)("div",{...u,style:o?{position:"sticky",top:"-24px",paddingTop:"24px",paddingBottom:"24px",paddingLeft:"40px",marginLeft:"-40px",paddingRight:"40px",marginRight:"-40px",marginTop:"-24px",left:0,zIndex:20,backgroundColor:"white",...c}:{paddingBottom:"24px",...c},children:[(0,t.jsxs)(a.jqI,{justify:"space-between",children:["string"==typeof n?(0,t.jsx)(a.lQT,{className:r||s?"pb-4":void 0,level:1,"data-testid":"page-heading",children:n}):n,l&&(0,t.jsx)("div",{"data-testid":"page-header-right-content",children:l})]}),!!r&&(0,t.jsx)(i.m,{className:s?"pb-4":void 0,items:r,"data-testid":"page-breadcrumb"}),s]})}},70788:function(e,n,r){"use strict";r.d(n,{m:function(){return c}});var t=r(24246),a=r(87949),i=r(79894),o=r.n(i),s=r(27378);let{Text:l}=a.AntTypography,c=e=>{let{items:n,...r}=e,i=(0,s.useMemo)(()=>null==n?void 0:n.map((e,r)=>{let i=r===n.length-1,s={...e},c=s.onClick&&!s.href;return("string"==typeof s.title&&(s.title=(0,t.jsx)(l,{style:{color:"inherit",maxWidth:i?void 0:400},ellipsis:!i,id:i?"breadcrumb-current-page":void 0,children:s.title})),c)?s.title=(0,t.jsx)(a.wpx,{type:"text",size:"small",icon:s.icon,onClick:s.onClick,className:"ant-breadcrumb-link -mt-px px-1 text-inherit",children:s.title}):(s.icon&&(s.title=(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("span",{className:"anticon align-text-bottom",children:s.icon}),s.title]})),s.href&&s.title&&(s.title=(0,t.jsx)(o(),{href:s.href,className:"ant-breadcrumb-link",children:s.title}),delete s.href)),s}),[n]);return(0,t.jsx)(a.zrq,{items:i,...r})}},8411:function(e,n,r){"use strict";r.d(n,{NA:function(){return i},Z8:function(){return a}});var t=r(65735);let a={[t._F.ER]:"Eritrea",[t._F.DJ]:"Djibouti",[t._F.MR]:"Mauritania",[t._F.NA]:"Namibia",[t._F.GH]:"Ghana",[t._F.SS]:"South Sudan",[t._F.SC]:"Seychelles",[t._F.IO]:"British Indian Ocean Territory",[t._F.GQ]:"Equatorial Guinea",[t._F.AO]:"Angola",[t._F.CG]:"Republic of the Congo",[t._F.BW]:"Botswana",[t._F.BI]:"Burundi",[t._F.DZ]:"Algeria",[t._F.TD]:"Chad",[t._F.NG]:"Nigeria",[t._F.TZ]:"Tanzania",[t._F.EH]:"Western Sahara",[t._F.SN]:"Senegal",[t._F.LR]:"Liberia",[t._F.ZA]:"South Africa",[t._F.CV]:"Cape Verde",[t._F.GM]:"Gambia",[t._F.SD]:"Sudan",[t._F.KM]:"Comoros",[t._F.SZ]:"Eswatini",[t._F.UG]:"Uganda",[t._F.MG]:"Madagascar",[t._F.RW]:"Rwanda",[t._F.CD]:"DR Congo",[t._F.CM]:"Cameroon",[t._F.SH]:"Saint Helena, Ascension and Tristan da Cunha",[t._F.TG]:"Togo",[t._F.MU]:"Mauritius",[t._F.NE]:"Niger",[t._F.BJ]:"Benin",[t._F.EG]:"Egypt",[t._F.LS]:"Lesotho",[t._F.ET]:"Ethiopia",[t._F.MA]:"Morocco",[t._F.YT]:"Mayotte",[t._F.BF]:"Burkina Faso",[t._F.RE]:"R\xe9union",[t._F.ST]:"S\xe3o Tom\xe9 and Pr\xedncipe",[t._F.CF]:"Central African Republic",[t._F.MZ]:"Mozambique",[t._F.MW]:"Malawi",[t._F.ML]:"Mali",[t._F.ZM]:"Zambia",[t._F.LY]:"Libya",[t._F.GW]:"Guinea-Bissau",[t._F.SO]:"Somalia",[t._F.KE]:"Kenya",[t._F.GN]:"Guinea",[t._F.ZW]:"Zimbabwe",[t._F.TN]:"Tunisia",[t._F.SL]:"Sierra Leone",[t._F.GA]:"Gabon",[t._F.CI]:"Ivory Coast",[t._F.JO]:"Jordan",[t._F.PK]:"Pakistan",[t._F.KP]:"North Korea",[t._F.MO]:"Macau",[t._F.AM]:"Armenia",[t._F.SY]:"Syria",[t._F.TJ]:"Tajikistan",[t._F.SA]:"Saudi Arabia",[t._F.KR]:"South Korea",[t._F.NP]:"Nepal",[t._F.PH]:"Philippines",[t._F.IQ]:"Iraq",[t._F.LB]:"Lebanon",[t._F.MN]:"Mongolia",[t._F.PS]:"Palestine",[t._F.YE]:"Yemen",[t._F.JP]:"Japan",[t._F.KZ]:"Kazakhstan",[t._F.LK]:"Sri Lanka",[t._F.MM]:"Myanmar",[t._F.KG]:"Kyrgyzstan",[t._F.CN]:"China",[t._F.AF]:"Afghanistan",[t._F.OM]:"Oman",[t._F.IN]:"India",[t._F.LA]:"Laos",[t._F.UZ]:"Uzbekistan",[t._F.MV]:"Maldives",[t._F.ID]:"Indonesia",[t._F.VN]:"Vietnam",[t._F.MY]:"Malaysia",[t._F.TW]:"Taiwan",[t._F.KH]:"Cambodia",[t._F.AE]:"United Arab Emirates",[t._F.HK]:"Hong Kong",[t._F.GE]:"Georgia (Country)",[t._F.BD]:"Bangladesh",[t._F.KW]:"Kuwait",[t._F.TM]:"Turkmenistan",[t._F.QA]:"Qatar",[t._F.BH]:"Bahrain",[t._F.BN]:"Brunei",[t._F.TH]:"Thailand",[t._F.BT]:"Bhutan",[t._F.SG]:"Singapore",[t._F.IL]:"Israel",[t._F.AZ]:"Azerbaijan",[t._F.TL]:"Timor-Leste",[t._F.IR]:"Iran",[t._F.TR]:"Turkey",[t._F.MK]:"North Macedonia",[t._F.IE]:"Ireland",[t._F.DK]:"Denmark",[t._F.SK]:"Slovakia",[t._F.MD]:"Moldova",[t._F.AX]:"\xc5land Islands",[t._F.PL]:"Poland",[t._F.BA]:"Bosnia and Herzegovina",[t._F.SM]:"San Marino",[t._F.CZ]:"Czechia",[t._F.EE]:"Estonia",[t._F.XK]:"Kosovo",[t._F.FO]:"Faroe Islands",[t._F.SJ]:"Svalbard and Jan Mayen",[t._F.GG]:"Guernsey",[t._F.FR]:"France",[t._F.NL]:"Netherlands",[t._F.FI]:"Finland",[t._F.PT]:"Portugal",[t._F.DE]:"Germany",[t._F.MT]:"Malta",[t._F.JE]:"Jersey",[t._F.IS]:"Iceland",[t._F.ES]:"Spain",[t._F.GI]:"Gibraltar",[t._F.NO]:"Norway",[t._F.CY]:"Cyprus",[t._F.RS]:"Serbia",[t._F.LT]:"Lithuania",[t._F.MC]:"Monaco",[t._F.LU]:"Luxembourg",[t._F.UA]:"Ukraine",[t._F.IM]:"Isle of Man",[t._F.RO]:"Romania",[t._F.BE]:"Belgium",[t._F.SE]:"Sweden",[t._F.ME]:"Montenegro",[t._F.LV]:"Latvia",[t._F.VA]:"Vatican City",[t._F.AT]:"Austria",[t._F.AL]:"Albania",[t._F.LI]:"Liechtenstein",[t._F.GR]:"Greece",[t._F.IT]:"Italy",[t._F.AD]:"Andorra",[t._F.GB]:"United Kingdom",[t._F.RU]:"Russia",[t._F.SI]:"Slovenia",[t._F.BY]:"Belarus",[t._F.CH]:"Switzerland",[t._F.HU]:"Hungary",[t._F.BG]:"Bulgaria",[t._F.HR]:"Croatia",[t._F.TC]:"Turks and Caicos Islands",[t._F.CW]:"Cura\xe7ao",[t._F.GP]:"Guadeloupe",[t._F.UM]:"United States Minor Outlying Islands",[t._F.GT]:"Guatemala",[t._F.PM]:"Saint Pierre and Miquelon",[t._F.BQ]:"Caribbean Netherlands",[t._F.GL]:"Greenland",[t._F.SX]:"Sint Maarten",[t._F.PA]:"Panama",[t._F.AW]:"Aruba",[t._F.MQ]:"Martinique",[t._F.AG]:"Antigua and Barbuda",[t._F.BM]:"Bermuda",[t._F.CU]:"Cuba",[t._F.GD]:"Grenada",[t._F.NI]:"Nicaragua",[t._F.LC]:"Saint Lucia",[t._F.KN]:"Saint Kitts and Nevis",[t._F.DO]:"Dominican Republic",[t._F.VC]:"Saint Vincent and the Grenadines",[t._F.BZ]:"Belize",[t._F.HT]:"Haiti",[t._F.JM]:"Jamaica",[t._F.BS]:"Bahamas",[t._F.MX]:"Mexico",[t._F.MF]:"Saint Martin",[t._F.SV]:"El Salvador",[t._F.BL]:"Saint Barth\xe9lemy",[t._F.AI]:"Anguilla",[t._F.MS]:"Montserrat",[t._F.VG]:"British Virgin Islands",[t._F.BB]:"Barbados",[t._F.HN]:"Honduras",[t._F.KY]:"Cayman Islands",[t._F.DM]:"Dominica",[t._F.TT]:"Trinidad and Tobago",[t._F.CR]:"Costa Rica",[t._F.SR]:"Suriname",[t._F.CX]:"Christmas Island",[t._F.WS]:"Samoa",[t._F.PF]:"French Polynesia",[t._F.AS]:"American Samoa",[t._F.NC]:"New Caledonia",[t._F.TK]:"Tokelau",[t._F.PW]:"Palau",[t._F.KI]:"Kiribati",[t._F.VU]:"Vanuatu",[t._F.PN]:"Pitcairn Islands",[t._F.CK]:"Cook Islands",[t._F.FJ]:"Fiji",[t._F.PG]:"Papua New Guinea",[t._F.MP]:"Northern Mariana Islands",[t._F.NU]:"Niue",[t._F.TV]:"Tuvalu",[t._F.NF]:"Norfolk Island",[t._F.TO]:"Tonga",[t._F.FM]:"Micronesia",[t._F.SB]:"Solomon Islands",[t._F.NR]:"Nauru",[t._F.WF]:"Wallis and Futuna",[t._F.GU]:"Guam",[t._F.AU]:"Australia",[t._F.NZ]:"New Zealand",[t._F.MH]:"Marshall Islands",[t._F.CC]:"Cocos (Keeling) Islands",[t._F.VE]:"Venezuela",[t._F.PY]:"Paraguay",[t._F.BR]:"Brazil",[t._F.CO]:"Colombia",[t._F.PE]:"Peru",[t._F.CL]:"Chile",[t._F.UY]:"Uruguay",[t._F.AR]:"Argentina",[t._F.GY]:"Guyana",[t._F.BO]:"Bolivia",[t._F.GF]:"French Guiana",[t._F.EC]:"Ecuador",[t._F.FK]:"Falkland Islands",[t._F.US_AL]:"Alabama",[t._F.US_AK]:"Alaska",[t._F.US_AZ]:"Arizona",[t._F.US_AR]:"Arkansas",[t._F.US_CA]:"California",[t._F.US_CO]:"Colorado",[t._F.US_CT]:"Connecticut",[t._F.US_DE]:"Delaware",[t._F.US_DC]:"District of Columbia (DC)",[t._F.US_FL]:"Florida",[t._F.US_GA]:"Georgia",[t._F.US_HI]:"Hawaii",[t._F.US_ID]:"Idaho",[t._F.US_IL]:"Illinois",[t._F.US_IN]:"Indiana",[t._F.US_IA]:"Iowa",[t._F.US_KS]:"Kansas",[t._F.US_KY]:"Kentucky",[t._F.US_LA]:"Louisiana",[t._F.US_ME]:"Maine",[t._F.US_MD]:"Maryland",[t._F.US_MA]:"Massachusetts",[t._F.US_MI]:"Michigan",[t._F.US_MN]:"Minnesota",[t._F.US_MS]:"Mississippi",[t._F.US_MO]:"Missouri",[t._F.US_MT]:"Montana",[t._F.US_NE]:"Nebraska",[t._F.US_NV]:"Nevada",[t._F.US_NH]:"New Hampshire",[t._F.US_NJ]:"New Jersey",[t._F.US_NM]:"New Mexico",[t._F.US_NY]:"New York",[t._F.US_NC]:"North Carolina",[t._F.US_ND]:"North Dakota",[t._F.US_OH]:"Ohio",[t._F.US_OK]:"Oklahoma",[t._F.US_OR]:"Oregon",[t._F.US_PA]:"Pennsylvania",[t._F.US_PR]:"Puerto Rico",[t._F.US_RI]:"Rhode Island",[t._F.US_SC]:"South Carolina",[t._F.US_SD]:"South Dakota",[t._F.US_TN]:"Tennessee",[t._F.US_TX]:"Texas",[t._F.US_UT]:"Utah",[t._F.US_VA]:"Virginia",[t._F.US_VI]:"United States Virgin Islands",[t._F.US_VT]:"Vermont",[t._F.US_WA]:"Washington",[t._F.US_WV]:"West Virginia",[t._F.US_WI]:"Wisconsin",[t._F.US_WY]:"Wyoming",[t._F.CA_AB]:"Alberta",[t._F.CA_BC]:"British Columbia",[t._F.CA_MB]:"Manitoba",[t._F.CA_NB]:"New Brunswick",[t._F.CA_NL]:"Newfoundland and Labrador",[t._F.CA_NS]:"Nova Scotia",[t._F.CA_ON]:"Ontario",[t._F.CA_PE]:"Prince Edward Island",[t._F.CA_QC]:"Quebec",[t._F.CA_SK]:"Saskatchewan",[t._F.CA_NT]:"Northwest Territories",[t._F.CA_NU]:"Nunavut",[t._F.CA_YT]:"Yukon",[t._F.CA]:"Canada",[t._F.US]:"United States",[t._F.MEXICO_CENTRAL_AMERICA]:"Mexico and Central America",[t._F.CARIBBEAN]:"Caribbean",[t._F.EEA]:"European Economic Area (EEA)",[t._F.NON_EEA]:"Non European Economic Area",[t._F.GLOBAL]:"Global"},i=new Map(Object.entries(a));Object.entries(a).map(e=>({value:e[0],label:e[1]}))},45113:function(e,n,r){"use strict";r.r(n),r.d(n,{default:function(){return V}});var t=r(24246),a=r(59003),i=r(92222),o=r(27693),s=r.n(o),l=r(87949),c=r(27378),u=r(35287),_=r(17245),d=r(58754);let F=e=>{let{disableNext:n,pagination:r}=e;return(0,t.jsxs)(l.jqI,{gap:"middle",align:"center",justify:"right",children:[(0,t.jsx)(l.wpx,{onClick:r.previousPage,disabled:1===r.pageIndex,icon:(0,t.jsx)(l.PJP.s$$,{"aria-hidden":!0}),"aria-label":"Previous"}),(0,t.jsx)("span",{"aria-label":"Page ".concat(r.pageIndex),children:r.pageIndex}),(0,t.jsx)(l.wpx,{onClick:r.nextPage,disabled:n,icon:(0,t.jsx)(l.PJP._Qn,{"aria-hidden":!0}),"aria-label":"Next"}),(0,t.jsx)(l.WPr,{className:"w-auto",value:r.pageSize,onChange:r.updatePageSize,options:r.pageSizeOptions.map(e=>({label:e,value:e})),labelRender:e=>{let{value:n}=e;return(0,t.jsxs)("span",{children:[n," / page"]})},"aria-label":"Select page size"})]})};var p=r(47935),h=r(46628),f=r(78780);let x=e=>{var n,r;return null==e?void 0:null===(r=e.startOf("day"))||void 0===r?void 0:null===(n=r.utc())||void 0===n?void 0:n.toISOString()},g=e=>{var n,r;return null==e?void 0:null===(r=e.endOf("day"))||void 0===r?void 0:null===(n=r.utc())||void 0===n?void 0:n.toISOString()},{useLazyDownloadReportQuery:j,useGetAllHistoricalPrivacyPreferencesQuery:m,useLazyGetCurrentPrivacyPreferencesQuery:v}=f.u.injectEndpoints({endpoints:e=>({getCurrentPrivacyPreferences:e.query({query:e=>{let{search:n}=e;return{url:"current-privacy-preferences",params:{email:n,phone_number:n,fides_user_device_id:n,external_id:n}}},providesTags:["Current Privacy Preferences"]}),downloadReport:e.query({query:e=>{let{startDate:n,endDate:r}=e;return{url:"plus/consent_reporting",params:{created_gt:x(n),created_lt:g(r),download_csv:"true"},responseHandler:"content-type"}},providesTags:["Consent Reporting Export"]}),getAllHistoricalPrivacyPreferences:e.query({query:e=>{let{page:n,size:r,startDate:t,endDate:a,includeTotal:i=!0}=e;return{url:"historical-privacy-preferences",params:{page:n,size:r,request_timestamp_gt:x(t),request_timestamp_lt:g(a),include_total:i}}},providesTags:["Consent Reporting"]})})});var S=r(90104),b=r.n(S),y=r(812),C=r(65735);let A={[C.pq.OPT_IN]:"Opt in",[C.pq.OPT_OUT]:"Opt out",[C.pq.ACKNOWLEDGE]:"Acknowledge",[C.pq.TCF]:"TCF"},N={[C.pq.OPT_IN]:l.tAb.SUCCESS,[C.pq.OPT_OUT]:l.tAb.ERROR,[C.pq.ACKNOWLEDGE]:l.tAb.DEFAULT,[C.pq.TCF]:l.tAb.SANDSTONE},M={[C.jP.ACCEPT]:"Accept",[C.jP.BUTTON]:"Button",[C.jP.DISMISS]:"Dismiss",[C.jP.GPC]:"GPC",[C.jP.REJECT]:"Reject",[C.jP.SAVE]:"Save",[C.jP.SCRIPT]:"Script",[C.jP.INDIVIDUAL_NOTICE]:"Individual Notice",[C.jP.ACKNOWLEDGE]:"Acknowledge",[C.jP.EXTERNAL_PROVIDER]:"External Provider"},P={[C.Tz.API]:"API",[C.Tz.BANNER_AND_MODAL]:"Banner and Modal",[C.Tz.MODAL]:"Modal",[C.Tz.OVERLAY]:"Overlay",[C.Tz.PRIVACY_CENTER]:"Privacy Center",[C.Tz.TCF_OVERLAY]:"TCF Overlay"},I=(0,i.Cl)();var T=()=>(0,c.useMemo)(()=>[I.accessor(e=>e.notice_name,{id:"notice_name",cell:e=>{let{getValue:n}=e;return(0,t.jsx)(p.G3,{value:n()})},header:e=>(0,t.jsx)(p.Rr,{value:"Privacy notice",...e}),enableSorting:!1}),I.accessor(e=>e.notice_key,{id:"notice_key",cell:e=>{let{getValue:n}=e;return(0,t.jsx)(p.G3,{value:n()})},header:e=>(0,t.jsx)(p.Rr,{value:"Notice Key",...e}),enableSorting:!1}),I.accessor(e=>e.preference,{id:"preference",cell:e=>{let{getValue:n}=e,r=n(),a=r&&A[r]||r,i=r&&N[r]||"";return(0,t.jsx)(p.A4,{color:i,value:a})},header:e=>(0,t.jsx)(p.Rr,{value:"Preference",...e}),enableSorting:!1,size:100}),I.accessor(e=>e.privacy_notice_history_id,{id:"privacy_notice_history_id",cell:e=>{let{getValue:n}=e;return(0,t.jsx)(p.G3,{value:n()})},header:e=>(0,t.jsx)(p.Rr,{value:"Privacy Notice History Id",...e}),enableSorting:!1})],[]),w=r(47003),E=r.n(w);let R=(0,i.Cl)();var U=()=>{let e=(0,c.useCallback)(e=>{let n=[];if(e){let{preferences:r,...t}=e;E()(t,(e,r)=>{e&&e.forEach(e=>{n.push({key:r,id:e.id,preference:e.preference})})})}return n},[]),n=(0,c.useCallback)(e=>e.filter(e=>!(e.key.startsWith("system_")||e.key.startsWith("vendor_"))),[]);return{tcfColumns:(0,c.useMemo)(()=>[R.accessor(e=>e.key,{id:"key",cell:e=>{let{getValue:n}=e;return(0,t.jsx)(p.G3,{value:n()})},header:e=>(0,t.jsx)(p.Rr,{value:"Type",...e}),enableSorting:!1}),R.accessor(e=>e.id,{id:"id",cell:e=>{let{getValue:n}=e;return(0,t.jsx)(p.G3,{value:n()})},header:e=>(0,t.jsx)(p.Rr,{value:"ID",...e}),enableSorting:!1}),R.accessor(e=>e.preference,{id:"preference",cell:e=>{let{getValue:n}=e,r=n(),a=r&&A[r]||r,i=r&&N[r]||"";return(0,t.jsx)(p.A4,{color:i,value:a})},header:e=>(0,t.jsx)(p.Rr,{value:"Preference",...e}),enableSorting:!1,size:100})],[]),mapTcfPreferencesToRowColumns:e,filterTcfConsentPreferences:n}},O=e=>{let{isOpen:n,onClose:r}=e,[o,s]=(0,c.useState)(!1),[u,_]=(0,c.useState)(),[d]=v(),F=(0,l.pmc)();(0,c.useEffect)(()=>{n||(_(void 0),s(!1))},[n]);let h=async e=>{s(!0);let{data:n,isError:r,error:t}=await d({search:e}),a=t&&"status"in t&&(null==t?void 0:t.status);r&&404!==a?F({status:"error",description:(0,y.e$)(t,"A problem occurred while looking up the preferences.")}):_(n||null),s(!1)},f=T(),x=(null==u?void 0:u.preferences)||[],g=!b()(x),j=(0,a.b7)({getCoreRowModel:(0,i.sC)(),data:x,columns:f,getRowId:e=>"".concat(e.privacy_notice_history_id),manualPagination:!0}),{tcfColumns:m,mapTcfPreferencesToRowColumns:S,filterTcfConsentPreferences:C}=U(),A=C(S(u)),N=!b()(A),M=(0,a.b7)({getCoreRowModel:(0,i.sC)(),data:A,columns:m,getRowId:e=>"".concat(e.key,"-").concat(e.id),manualPagination:!0});return(0,t.jsxs)(l.u_l,{id:"consent-lookup-modal",isOpen:n,onClose:r,size:"6xl",returnFocusOnClose:!1,isCentered:!0,children:[(0,t.jsx)(l.ZAr,{}),(0,t.jsxs)(l.hzk,{children:[(0,t.jsx)(l.olH,{}),(0,t.jsx)(l.xBx,{pb:2,children:"Consent preference lookup"}),(0,t.jsxs)(l.fef,{children:[(0,t.jsx)(l.AntTypography.Paragraph,{children:"Use this search to look up an individual's latest consent record. You can search by phone number, email, external ID or device ID to retrieve the most recent consent preference associated with that exact identifier."}),(0,t.jsxs)(l.AntTypography.Paragraph,{children:[(0,t.jsx)("strong",{children:"Note:"})," This is an exact match search—partial entries or similar results will not be returned. This lookup retrieves only the most recent consent preference, not the full consent history."]}),(0,t.jsx)(l.PPS,{layout:"vertical",className:"w-1/2",children:(0,t.jsx)(l.PPS.Item,{label:"Subject search",className:"mb-4 mt-6",children:(0,t.jsx)(l.AntInput.Search,{"data-testid":"subject-search-input",placeholder:"Enter email, phone number, external ID or device ID",enterButton:"Search",onSearch:h,loading:o})})}),(0,t.jsxs)("div",{className:"mb-4",children:[(!N||g)&&(0,t.jsx)(p.ZK,{tableInstance:j,emptyTableNotice:(0,t.jsx)(l.oj8,{description:void 0===u?"Search for an email, phone number, or device ID.":"No results found.",image:l.oj8.PRESENTED_IMAGE_SIMPLE,imageStyle:{marginBottom:15}})}),N&&(0,t.jsx)("div",{className:"mt-4",children:(0,t.jsx)(p.ZK,{tableInstance:M})})]})]})]})]})},k=()=>{let e=(0,l.pmc)(),[n,{isFetching:r}]=j();return{downloadReport:async r=>{let{startDate:t,endDate:a}=r,i=await n({startDate:t,endDate:a});if(i.isError)e({status:"error",description:(0,y.e$)(i.error,"A problem occurred while generating your consent report. Please try again.")});else{let e=document.createElement("a"),n=new Blob([i.data],{type:"text/csv"}),r=window.URL.createObjectURL(n);e.href=r,e.download="consent-reports.csv",e.click(),window.URL.revokeObjectURL(r)}},isDownloadingReport:r}},G=e=>{let{isOpen:n,onClose:r,startDate:a,endDate:i}=e,{downloadReport:o,isDownloadingReport:s}=k(),c=async()=>{await o({startDate:a,endDate:i}),r()};return(0,t.jsxs)(l.u_l,{id:"consent-report-download-modal",isOpen:n,onClose:r,size:"xl",returnFocusOnClose:!1,isCentered:!0,children:[(0,t.jsx)(l.ZAr,{}),(0,t.jsxs)(l.hzk,{children:[(0,t.jsx)(l.olH,{}),(0,t.jsx)(l.xBx,{pb:2,children:"Download consent report"}),(0,t.jsxs)(l.fef,{children:[(0,t.jsx)(l.AntTypography.Paragraph,{children:"The downloaded CSV may differ from the UI in Fides, including column order and naming."}),(0,t.jsx)(l.AntTypography.Paragraph,{children:'For large datasets, file generation may take a few minutes after selecting "Download".'}),(0,t.jsx)(l.jqI,{justify:"flex-end",children:(0,t.jsx)(l.wpx,{loading:s,onClick:c,"data-testid":"download-report-btn",type:"primary",className:"mb-2",children:"Download"})})]})]})]})},B=e=>{let{isOpen:n,onClose:r,tcfPreferences:o}=e,{tcfColumns:s,mapTcfPreferencesToRowColumns:c,filterTcfConsentPreferences:u}=U(),_=u(c(o)),d=(0,a.b7)({getCoreRowModel:(0,i.sC)(),data:_||[],columns:s,getRowId:e=>"".concat(e.key,"-").concat(e.id),manualPagination:!0});return(0,t.jsxs)(l.u_l,{id:"consent-lookup-modal",isOpen:n,onClose:r,size:"4xl",returnFocusOnClose:!1,isCentered:!0,children:[(0,t.jsx)(l.ZAr,{}),(0,t.jsxs)(l.hzk,{"data-testid":"consent-tcf-detail-modal",children:[(0,t.jsx)(l.olH,{}),(0,t.jsx)(l.xBx,{pb:2,children:"TCF Consent Details"}),(0,t.jsx)(l.fef,{children:(0,t.jsx)("div",{className:"mb-4",children:(0,t.jsx)(p.ZK,{tableInstance:d,emptyTableNotice:(0,t.jsx)(l.oj8,{description:" No data found",image:l.oj8.PRESENTED_IMAGE_SIMPLE,imageStyle:{marginBottom:15}})})})})]})]})},D=r(8411),L=r(72625);let K=(0,i.Cl)();var z=e=>{let{onTcfDetailViewClick:n}=e;return(0,c.useMemo)(()=>[K.accessor(e=>e.fides_user_device_id,{id:"fides_user_device_id",cell:e=>{let{getValue:n}=e;return(0,t.jsx)(p.G3,{value:n()})},header:e=>(0,t.jsx)(p.Rr,{value:"User device ID",...e}),enableSorting:!1}),K.accessor(e=>e.user_geography,{id:"user_geography",cell:e=>{let{getValue:n}=e,r=n(),a=r&&(0,l.QCN)(r),i=r&&D.Z8[r]||r,o=a?(0,l.c1K)({isoEntry:a}):i;return(0,t.jsx)(p.G3,{value:o})},header:e=>(0,t.jsx)(p.Rr,{value:"User geography",...e}),enableSorting:!1}),K.accessor(e=>e.preference,{id:"preference",cell:e=>{let{getValue:r,row:a}=e,i=r(),o=i&&A[i]||i,s=i&&N[i]||void 0;return"tcf"===i&&a.original.tcf_preferences?(0,t.jsx)(l.j8w,{color:s,closeIcon:(0,t.jsx)(l.PJP.daM,{}),closeButtonLabel:"View details",onClose:()=>n(a.original.tcf_preferences),children:o}):(0,t.jsx)(p.A4,{color:s,value:o})},header:e=>(0,t.jsx)(p.Rr,{value:"Preference",...e}),enableSorting:!1,size:100}),K.accessor(e=>e.notice_name,{id:"notice_name",cell:e=>{let{getValue:n}=e,r=n(),a="tcf"===r?r.toUpperCase():r;return(0,t.jsx)(p.G3,{value:a})},header:e=>(0,t.jsx)(p.Rr,{value:"Privacy notice",...e}),enableSorting:!1}),K.accessor(e=>e.method,{id:"method",cell:e=>{let{getValue:n}=e,r=n(),a=r&&M[r]||r;return(0,t.jsx)(p.G3,{value:a})},header:e=>(0,t.jsx)(p.Rr,{value:"Method",...e}),enableSorting:!1,size:100}),K.accessor(e=>e.request_origin,{id:"request_origin",cell:e=>{let{getValue:n}=e,r=n(),a=r&&P[r]||r;return(0,t.jsx)(p.G3,{value:a})},header:e=>(0,t.jsx)(p.Rr,{value:"Request origin",...e}),enableSorting:!1,size:120}),K.accessor(e=>e.request_timestamp,{id:"request_timestamp",cell:e=>{let{getValue:n}=e;return(0,t.jsx)(L.Cy,{time:n()})},header:e=>(0,t.jsx)(p.Rr,{value:"Request timestamp",...e}),size:120}),K.accessor(e=>e.url_recorded,{id:"url_recorded",cell:e=>{let{getValue:n}=e;return(0,t.jsx)(p.G3,{value:n()})},header:e=>(0,t.jsx)(p.Rr,{value:"Recorded URL",...e})}),K.accessor(e=>e.external_id,{id:"external_id",cell:e=>{let{getValue:n}=e;return(0,t.jsx)(p.G3,{value:n()})},header:e=>(0,t.jsx)(p.Rr,{value:"External ID",...e}),enableSorting:!1}),K.accessor(e=>e.email,{id:"email",cell:e=>{let{getValue:n}=e;return(0,t.jsx)(p.G3,{value:(0,t.jsx)(l.AntTypography.Link,{href:"mailto:".concat(n()),children:n()})})},header:e=>(0,t.jsx)(p.Rr,{value:"Email",...e}),enableSorting:!1}),K.accessor(e=>e.id,{id:"id",cell:e=>{let{getValue:n}=e;return(0,t.jsx)(p.G3,{value:n()})},header:e=>(0,t.jsx)(p.Rr,{value:"Preference ID",...e}),enableSorting:!1})],[n])},V=()=>{var e,n;let r=(0,_.h0)(),{pageIndex:o,pageSize:f,updatePageIndex:x}=r,g=(0,c.useMemo)(()=>s()(),[]),[j,v]=(0,c.useState)(null),[S,b]=(0,c.useState)(null),[y,C]=(0,c.useState)(!1),[A,N]=(0,c.useState)(!1),[M,P]=(0,c.useState)(!1),[I,T]=(0,c.useState)(),w=(0,l.pmc)(),{data:E,isLoading:R,isFetching:U,refetch:k}=m({page:o,size:f,startDate:j,endDate:S,includeTotal:!1}),{items:D}=(0,c.useMemo)(()=>E||{items:[],total:0,pages:0},[E]),L=z({onTcfDetailViewClick:e=>{P(!0),T(e)}}),K=(0,a.b7)({getCoreRowModel:(0,i.sC)(),data:D,columns:L,getRowId:e=>"".concat(e.id),manualPagination:!0}),V=async()=>{x(1),await k(),w((0,h.t5)("Consent report refreshed successfully.","Report Refreshed"))};return(0,t.jsxs)(u.Z,{title:"Consent reporting",children:[(0,t.jsx)(d.Z,{heading:"Consent reporting",rightContent:(0,t.jsx)(l.wpx,{type:"primary",onClick:V,loading:U,children:"Refresh"})}),(0,t.jsx)("div",{"data-testid":"consent-reporting",className:"overflow-auto",children:(0,t.jsxs)(l.jqI,{vertical:!0,gap:"middle",children:[R?(0,t.jsx)("div",{className:"border p-2",children:(0,t.jsx)(p.I4,{rowHeight:26,numRows:10})}):(0,t.jsxs)("div",{children:[(0,t.jsxs)(p.Q$,{children:[(0,t.jsx)(l.gwi,{placeholder:["From","To"],maxDate:g,"data-testid":"input-date-range",onChange:e=>{v(e&&e[0]),b(e&&e[1])}}),(0,t.jsxs)(l.jqI,{gap:12,children:[(0,t.jsx)(l.wpx,{icon:(0,t.jsx)(l.PJP.UWx,{}),"data-testid":"download-btn",onClick:()=>N(!0),"aria-label":"Download Consent Report"}),(0,t.jsx)(l.S0p,{menu:{items:[{key:"1",label:(0,t.jsx)("span",{"data-testid":"consent-preference-lookup-btn",children:"Consent preference lookup"}),onClick:()=>C(!0)}]},overlayStyle:{width:"220px"},trigger:["click"],children:(0,t.jsx)(l.wpx,{"aria-label":"Menu",icon:(0,t.jsx)(l.PJP.r43,{}),"data-testid":"consent-reporting-dropdown-btn"})})]})]}),(0,t.jsx)(p.ZK,{tableInstance:K,emptyTableNotice:(0,t.jsx)(l.oj8,{description:"No results.",image:l.oj8.PRESENTED_IMAGE_SIMPLE,styles:{image:{marginBottom:15}}})})]}),(0,t.jsx)(F,{disableNext:(null!==(n=null==E?void 0:null===(e=E.items)||void 0===e?void 0:e.length)&&void 0!==n?n:0)<f,pagination:r})]})}),(0,t.jsx)(O,{isOpen:y,onClose:()=>C(!1)}),(0,t.jsx)(G,{isOpen:A,onClose:()=>N(!1),startDate:j,endDate:S}),(0,t.jsx)(B,{isOpen:M,onClose:()=>{P(!1),T(void 0)},tcfPreferences:I})]})}}},function(e){e.O(0,[431,7245,2888,9774,179],function(){return e(e.s=15806)}),_N_E=e.O()}]);
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3422],{82545:function(e,n,r){var t=r(81822)(r(77400),"DataView");e.exports=t},44538:function(e,n,r){var t=r(81822)(r(77400),"Map");e.exports=t},64825:function(e,n,r){var t=r(81822)(r(77400),"Promise");e.exports=t},46151:function(e,n,r){var t=r(81822)(r(77400),"Set");e.exports=t},66902:function(e,n,r){var t=r(81822)(r(77400),"WeakMap");e.exports=t},80594:function(e){e.exports=function(e,n){for(var r=-1,t=null==e?0:e.length;++r<t&&!1!==n(e[r],r,e););return e}},98213:function(e,n,r){var t=r(24701),a=r(2900),i=r(19785),o=r(43854),s=r(42383),l=r(48519),c=Object.prototype.hasOwnProperty;e.exports=function(e,n){var r=i(e),u=!r&&a(e),_=!r&&!u&&o(e),d=!r&&!u&&!_&&l(e),F=r||u||_||d,p=F?t(e.length,String):[],h=p.length;for(var f in e)(n||c.call(e,f))&&!(F&&("length"==f||_&&("offset"==f||"parent"==f)||d&&("buffer"==f||"byteLength"==f||"byteOffset"==f)||s(f,h)))&&p.push(f);return p}},52033:function(e,n,r){var t=r(26194),a=r(26789)(t);e.exports=a},49819:function(e,n,r){var t=r(18911)();e.exports=t},26194:function(e,n,r){var t=r(49819),a=r(50098);e.exports=function(e,n){return e&&t(e,n,a)}},55829:function(e,n,r){var t=r(99736),a=r(92360);e.exports=function(e){return a(e)&&"[object Arguments]"==t(e)}},46729:function(e,n,r){var t=r(28338),a=r(99678),i=r(11611),o=r(76532),s=/^\[object .+?Constructor\]$/,l=Object.prototype,c=Function.prototype.toString,u=l.hasOwnProperty,_=RegExp("^"+c.call(u).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!i(e)||a(e))&&(t(e)?_:s).test(o(e))}},26972:function(e,n,r){var t=r(99736),a=r(84194),i=r(92360),o={};o["[object Float32Array]"]=o["[object Float64Array]"]=o["[object Int8Array]"]=o["[object Int16Array]"]=o["[object Int32Array]"]=o["[object Uint8Array]"]=o["[object Uint8ClampedArray]"]=o["[object Uint16Array]"]=o["[object Uint32Array]"]=!0,o["[object Arguments]"]=o["[object Array]"]=o["[object ArrayBuffer]"]=o["[object Boolean]"]=o["[object DataView]"]=o["[object Date]"]=o["[object Error]"]=o["[object Function]"]=o["[object Map]"]=o["[object Number]"]=o["[object Object]"]=o["[object RegExp]"]=o["[object Set]"]=o["[object String]"]=o["[object WeakMap]"]=!1,e.exports=function(e){return i(e)&&a(e.length)&&!!o[t(e)]}},20186:function(e,n,r){var t=r(56016),a=r(50962),i=Object.prototype.hasOwnProperty;e.exports=function(e){if(!t(e))return a(e);var n=[];for(var r in Object(e))i.call(e,r)&&"constructor"!=r&&n.push(r);return n}},24701:function(e){e.exports=function(e,n){for(var r=-1,t=Array(e);++r<e;)t[r]=n(r);return t}},39334:function(e){e.exports=function(e){return function(n){return e(n)}}},62079:function(e,n,r){var t=r(31137);e.exports=function(e){return"function"==typeof e?e:t}},64937:function(e,n,r){var t=r(77400)["__core-js_shared__"];e.exports=t},26789:function(e,n,r){var t=r(80068);e.exports=function(e,n){return function(r,a){if(null==r)return r;if(!t(r))return e(r,a);for(var i=r.length,o=n?i:-1,s=Object(r);(n?o--:++o<i)&&!1!==a(s[o],o,s););return r}}},18911:function(e){e.exports=function(e){return function(n,r,t){for(var a=-1,i=Object(n),o=t(n),s=o.length;s--;){var l=o[e?s:++a];if(!1===r(i[l],l,i))break}return n}}},81822:function(e,n,r){var t=r(46729),a=r(15371);e.exports=function(e,n){var r=a(e,n);return t(r)?r:void 0}},3533:function(e,n,r){var t=r(82545),a=r(44538),i=r(64825),o=r(46151),s=r(66902),l=r(99736),c=r(76532),u="[object Map]",_="[object Promise]",d="[object Set]",F="[object WeakMap]",p="[object DataView]",h=c(t),f=c(a),x=c(i),g=c(o),j=c(s),m=l;(t&&m(new t(new ArrayBuffer(1)))!=p||a&&m(new a)!=u||i&&m(i.resolve())!=_||o&&m(new o)!=d||s&&m(new s)!=F)&&(m=function(e){var n=l(e),r="[object Object]"==n?e.constructor:void 0,t=r?c(r):"";if(t)switch(t){case h:return p;case f:return u;case x:return _;case g:return d;case j:return F}return n}),e.exports=m},15371:function(e){e.exports=function(e,n){return null==e?void 0:e[n]}},42383:function(e){var n=/^(?:0|[1-9]\d*)$/;e.exports=function(e,r){var t=typeof e;return!!(r=null==r?9007199254740991:r)&&("number"==t||"symbol"!=t&&n.test(e))&&e>-1&&e%1==0&&e<r}},99678:function(e,n,r){var t,a=r(64937),i=(t=/[^.]+$/.exec(a&&a.keys&&a.keys.IE_PROTO||""))?"Symbol(src)_1."+t:"";e.exports=function(e){return!!i&&i in e}},56016:function(e){var n=Object.prototype;e.exports=function(e){var r=e&&e.constructor;return e===("function"==typeof r&&r.prototype||n)}},50962:function(e,n,r){var t=r(58023)(Object.keys,Object);e.exports=t},18125:function(e,n,r){e=r.nmd(e);var t=r(39120),a=n&&!n.nodeType&&n,i=a&&e&&!e.nodeType&&e,o=i&&i.exports===a&&t.process,s=function(){try{var e=i&&i.require&&i.require("util").types;if(e)return e;return o&&o.binding&&o.binding("util")}catch(e){}}();e.exports=s},58023:function(e){e.exports=function(e,n){return function(r){return e(n(r))}}},76532:function(e){var n=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return n.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},47003:function(e,n,r){var t=r(80594),a=r(52033),i=r(62079),o=r(19785);e.exports=function(e,n){return(o(e)?t:a)(e,i(n))}},31137:function(e){e.exports=function(e){return e}},2900:function(e,n,r){var t=r(55829),a=r(92360),i=Object.prototype,o=i.hasOwnProperty,s=i.propertyIsEnumerable,l=t(function(){return arguments}())?t:function(e){return a(e)&&o.call(e,"callee")&&!s.call(e,"callee")};e.exports=l},19785:function(e){var n=Array.isArray;e.exports=n},80068:function(e,n,r){var t=r(28338),a=r(84194);e.exports=function(e){return null!=e&&a(e.length)&&!t(e)}},43854:function(e,n,r){e=r.nmd(e);var t=r(77400),a=r(57714),i=n&&!n.nodeType&&n,o=i&&e&&!e.nodeType&&e,s=o&&o.exports===i?t.Buffer:void 0,l=s?s.isBuffer:void 0;e.exports=l||a},90104:function(e,n,r){var t=r(20186),a=r(3533),i=r(2900),o=r(19785),s=r(80068),l=r(43854),c=r(56016),u=r(48519),_=Object.prototype.hasOwnProperty;e.exports=function(e){if(null==e)return!0;if(s(e)&&(o(e)||"string"==typeof e||"function"==typeof e.splice||l(e)||u(e)||i(e)))return!e.length;var n=a(e);if("[object Map]"==n||"[object Set]"==n)return!e.size;if(c(e))return!t(e).length;for(var r in e)if(_.call(e,r))return!1;return!0}},28338:function(e,n,r){var t=r(99736),a=r(11611);e.exports=function(e){if(!a(e))return!1;var n=t(e);return"[object Function]"==n||"[object GeneratorFunction]"==n||"[object AsyncFunction]"==n||"[object Proxy]"==n}},84194:function(e){e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},11611:function(e){e.exports=function(e){var n=typeof e;return null!=e&&("object"==n||"function"==n)}},48519:function(e,n,r){var t=r(26972),a=r(39334),i=r(18125),o=i&&i.isTypedArray,s=o?a(o):t;e.exports=s},50098:function(e,n,r){var t=r(98213),a=r(20186),i=r(80068);e.exports=function(e){return i(e)?t(e):a(e)}},57714:function(e){e.exports=function(){return!1}},15806:function(e,n,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/consent/reporting",function(){return r(45113)}])},35287:function(e,n,r){"use strict";var t=r(24246),a=r(98227),i=r(88038),o=r.n(i);r(27378),n.Z=e=>{let{children:n,title:r,fullHeight:i,fullWidth:s,mainProps:l}=e;return(0,t.jsxs)(a.kCb,{"data-testid":r,direction:"column",height:i?"100vh":"calc(100vh - 48px)",width:s?"100vw":"calc(100vw - 240px)",children:[(0,t.jsxs)(o(),{children:[(0,t.jsxs)("title",{children:["Fides Admin UI - ",r]}),(0,t.jsx)("meta",{name:"description",content:"Privacy Engineering Platform"}),(0,t.jsx)("link",{rel:"icon",href:"/favicon.ico"})]}),(0,t.jsx)(a.kCb,{px:10,py:6,as:"main",overflow:"auto",direction:"column",flex:1,minWidth:0,...l,children:n})]})}},58754:function(e,n,r){"use strict";var t=r(24246),a=r(98227),i=r(70788);n.Z=e=>{let{heading:n,breadcrumbItems:r,isSticky:o=!0,children:s,rightContent:l,style:c,...u}=e;return(0,t.jsxs)("div",{...u,style:o?{position:"sticky",top:"-24px",paddingTop:"24px",paddingBottom:"24px",paddingLeft:"40px",marginLeft:"-40px",paddingRight:"40px",marginRight:"-40px",marginTop:"-24px",left:0,zIndex:20,backgroundColor:"white",...c}:{paddingBottom:"24px",...c},children:[(0,t.jsxs)(a.jqI,{justify:"space-between",children:["string"==typeof n?(0,t.jsx)(a.lQT,{className:r||s?"pb-4":void 0,level:1,"data-testid":"page-heading",children:n}):n,l&&(0,t.jsx)("div",{"data-testid":"page-header-right-content",children:l})]}),!!r&&(0,t.jsx)(i.m,{className:s?"pb-4":void 0,items:r,"data-testid":"page-breadcrumb"}),s]})}},70788:function(e,n,r){"use strict";r.d(n,{m:function(){return c}});var t=r(24246),a=r(98227),i=r(79894),o=r.n(i),s=r(27378);let{Text:l}=a.AntTypography,c=e=>{let{items:n,...r}=e,i=(0,s.useMemo)(()=>null==n?void 0:n.map((e,r)=>{let i=r===n.length-1,s={...e},c=s.onClick&&!s.href;return("string"==typeof s.title&&(s.title=(0,t.jsx)(l,{style:{color:"inherit",maxWidth:i?void 0:400},ellipsis:!i,id:i?"breadcrumb-current-page":void 0,children:s.title})),c)?s.title=(0,t.jsx)(a.wpx,{type:"text",size:"small",icon:s.icon,onClick:s.onClick,className:"ant-breadcrumb-link -mt-px px-1 text-inherit",children:s.title}):(s.icon&&(s.title=(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("span",{className:"anticon align-text-bottom",children:s.icon}),s.title]})),s.href&&s.title&&(s.title=(0,t.jsx)(o(),{href:s.href,className:"ant-breadcrumb-link",children:s.title}),delete s.href)),s}),[n]);return(0,t.jsx)(a.zrq,{items:i,...r})}},8411:function(e,n,r){"use strict";r.d(n,{NA:function(){return i},Z8:function(){return a}});var t=r(65735);let a={[t._F.ER]:"Eritrea",[t._F.DJ]:"Djibouti",[t._F.MR]:"Mauritania",[t._F.NA]:"Namibia",[t._F.GH]:"Ghana",[t._F.SS]:"South Sudan",[t._F.SC]:"Seychelles",[t._F.IO]:"British Indian Ocean Territory",[t._F.GQ]:"Equatorial Guinea",[t._F.AO]:"Angola",[t._F.CG]:"Republic of the Congo",[t._F.BW]:"Botswana",[t._F.BI]:"Burundi",[t._F.DZ]:"Algeria",[t._F.TD]:"Chad",[t._F.NG]:"Nigeria",[t._F.TZ]:"Tanzania",[t._F.EH]:"Western Sahara",[t._F.SN]:"Senegal",[t._F.LR]:"Liberia",[t._F.ZA]:"South Africa",[t._F.CV]:"Cape Verde",[t._F.GM]:"Gambia",[t._F.SD]:"Sudan",[t._F.KM]:"Comoros",[t._F.SZ]:"Eswatini",[t._F.UG]:"Uganda",[t._F.MG]:"Madagascar",[t._F.RW]:"Rwanda",[t._F.CD]:"DR Congo",[t._F.CM]:"Cameroon",[t._F.SH]:"Saint Helena, Ascension and Tristan da Cunha",[t._F.TG]:"Togo",[t._F.MU]:"Mauritius",[t._F.NE]:"Niger",[t._F.BJ]:"Benin",[t._F.EG]:"Egypt",[t._F.LS]:"Lesotho",[t._F.ET]:"Ethiopia",[t._F.MA]:"Morocco",[t._F.YT]:"Mayotte",[t._F.BF]:"Burkina Faso",[t._F.RE]:"R\xe9union",[t._F.ST]:"S\xe3o Tom\xe9 and Pr\xedncipe",[t._F.CF]:"Central African Republic",[t._F.MZ]:"Mozambique",[t._F.MW]:"Malawi",[t._F.ML]:"Mali",[t._F.ZM]:"Zambia",[t._F.LY]:"Libya",[t._F.GW]:"Guinea-Bissau",[t._F.SO]:"Somalia",[t._F.KE]:"Kenya",[t._F.GN]:"Guinea",[t._F.ZW]:"Zimbabwe",[t._F.TN]:"Tunisia",[t._F.SL]:"Sierra Leone",[t._F.GA]:"Gabon",[t._F.CI]:"Ivory Coast",[t._F.JO]:"Jordan",[t._F.PK]:"Pakistan",[t._F.KP]:"North Korea",[t._F.MO]:"Macau",[t._F.AM]:"Armenia",[t._F.SY]:"Syria",[t._F.TJ]:"Tajikistan",[t._F.SA]:"Saudi Arabia",[t._F.KR]:"South Korea",[t._F.NP]:"Nepal",[t._F.PH]:"Philippines",[t._F.IQ]:"Iraq",[t._F.LB]:"Lebanon",[t._F.MN]:"Mongolia",[t._F.PS]:"Palestine",[t._F.YE]:"Yemen",[t._F.JP]:"Japan",[t._F.KZ]:"Kazakhstan",[t._F.LK]:"Sri Lanka",[t._F.MM]:"Myanmar",[t._F.KG]:"Kyrgyzstan",[t._F.CN]:"China",[t._F.AF]:"Afghanistan",[t._F.OM]:"Oman",[t._F.IN]:"India",[t._F.LA]:"Laos",[t._F.UZ]:"Uzbekistan",[t._F.MV]:"Maldives",[t._F.ID]:"Indonesia",[t._F.VN]:"Vietnam",[t._F.MY]:"Malaysia",[t._F.TW]:"Taiwan",[t._F.KH]:"Cambodia",[t._F.AE]:"United Arab Emirates",[t._F.HK]:"Hong Kong",[t._F.GE]:"Georgia (Country)",[t._F.BD]:"Bangladesh",[t._F.KW]:"Kuwait",[t._F.TM]:"Turkmenistan",[t._F.QA]:"Qatar",[t._F.BH]:"Bahrain",[t._F.BN]:"Brunei",[t._F.TH]:"Thailand",[t._F.BT]:"Bhutan",[t._F.SG]:"Singapore",[t._F.IL]:"Israel",[t._F.AZ]:"Azerbaijan",[t._F.TL]:"Timor-Leste",[t._F.IR]:"Iran",[t._F.TR]:"Turkey",[t._F.MK]:"North Macedonia",[t._F.IE]:"Ireland",[t._F.DK]:"Denmark",[t._F.SK]:"Slovakia",[t._F.MD]:"Moldova",[t._F.AX]:"\xc5land Islands",[t._F.PL]:"Poland",[t._F.BA]:"Bosnia and Herzegovina",[t._F.SM]:"San Marino",[t._F.CZ]:"Czechia",[t._F.EE]:"Estonia",[t._F.XK]:"Kosovo",[t._F.FO]:"Faroe Islands",[t._F.SJ]:"Svalbard and Jan Mayen",[t._F.GG]:"Guernsey",[t._F.FR]:"France",[t._F.NL]:"Netherlands",[t._F.FI]:"Finland",[t._F.PT]:"Portugal",[t._F.DE]:"Germany",[t._F.MT]:"Malta",[t._F.JE]:"Jersey",[t._F.IS]:"Iceland",[t._F.ES]:"Spain",[t._F.GI]:"Gibraltar",[t._F.NO]:"Norway",[t._F.CY]:"Cyprus",[t._F.RS]:"Serbia",[t._F.LT]:"Lithuania",[t._F.MC]:"Monaco",[t._F.LU]:"Luxembourg",[t._F.UA]:"Ukraine",[t._F.IM]:"Isle of Man",[t._F.RO]:"Romania",[t._F.BE]:"Belgium",[t._F.SE]:"Sweden",[t._F.ME]:"Montenegro",[t._F.LV]:"Latvia",[t._F.VA]:"Vatican City",[t._F.AT]:"Austria",[t._F.AL]:"Albania",[t._F.LI]:"Liechtenstein",[t._F.GR]:"Greece",[t._F.IT]:"Italy",[t._F.AD]:"Andorra",[t._F.GB]:"United Kingdom",[t._F.RU]:"Russia",[t._F.SI]:"Slovenia",[t._F.BY]:"Belarus",[t._F.CH]:"Switzerland",[t._F.HU]:"Hungary",[t._F.BG]:"Bulgaria",[t._F.HR]:"Croatia",[t._F.TC]:"Turks and Caicos Islands",[t._F.CW]:"Cura\xe7ao",[t._F.GP]:"Guadeloupe",[t._F.UM]:"United States Minor Outlying Islands",[t._F.GT]:"Guatemala",[t._F.PM]:"Saint Pierre and Miquelon",[t._F.BQ]:"Caribbean Netherlands",[t._F.GL]:"Greenland",[t._F.SX]:"Sint Maarten",[t._F.PA]:"Panama",[t._F.AW]:"Aruba",[t._F.MQ]:"Martinique",[t._F.AG]:"Antigua and Barbuda",[t._F.BM]:"Bermuda",[t._F.CU]:"Cuba",[t._F.GD]:"Grenada",[t._F.NI]:"Nicaragua",[t._F.LC]:"Saint Lucia",[t._F.KN]:"Saint Kitts and Nevis",[t._F.DO]:"Dominican Republic",[t._F.VC]:"Saint Vincent and the Grenadines",[t._F.BZ]:"Belize",[t._F.HT]:"Haiti",[t._F.JM]:"Jamaica",[t._F.BS]:"Bahamas",[t._F.MX]:"Mexico",[t._F.MF]:"Saint Martin",[t._F.SV]:"El Salvador",[t._F.BL]:"Saint Barth\xe9lemy",[t._F.AI]:"Anguilla",[t._F.MS]:"Montserrat",[t._F.VG]:"British Virgin Islands",[t._F.BB]:"Barbados",[t._F.HN]:"Honduras",[t._F.KY]:"Cayman Islands",[t._F.DM]:"Dominica",[t._F.TT]:"Trinidad and Tobago",[t._F.CR]:"Costa Rica",[t._F.SR]:"Suriname",[t._F.CX]:"Christmas Island",[t._F.WS]:"Samoa",[t._F.PF]:"French Polynesia",[t._F.AS]:"American Samoa",[t._F.NC]:"New Caledonia",[t._F.TK]:"Tokelau",[t._F.PW]:"Palau",[t._F.KI]:"Kiribati",[t._F.VU]:"Vanuatu",[t._F.PN]:"Pitcairn Islands",[t._F.CK]:"Cook Islands",[t._F.FJ]:"Fiji",[t._F.PG]:"Papua New Guinea",[t._F.MP]:"Northern Mariana Islands",[t._F.NU]:"Niue",[t._F.TV]:"Tuvalu",[t._F.NF]:"Norfolk Island",[t._F.TO]:"Tonga",[t._F.FM]:"Micronesia",[t._F.SB]:"Solomon Islands",[t._F.NR]:"Nauru",[t._F.WF]:"Wallis and Futuna",[t._F.GU]:"Guam",[t._F.AU]:"Australia",[t._F.NZ]:"New Zealand",[t._F.MH]:"Marshall Islands",[t._F.CC]:"Cocos (Keeling) Islands",[t._F.VE]:"Venezuela",[t._F.PY]:"Paraguay",[t._F.BR]:"Brazil",[t._F.CO]:"Colombia",[t._F.PE]:"Peru",[t._F.CL]:"Chile",[t._F.UY]:"Uruguay",[t._F.AR]:"Argentina",[t._F.GY]:"Guyana",[t._F.BO]:"Bolivia",[t._F.GF]:"French Guiana",[t._F.EC]:"Ecuador",[t._F.FK]:"Falkland Islands",[t._F.US_AL]:"Alabama",[t._F.US_AK]:"Alaska",[t._F.US_AZ]:"Arizona",[t._F.US_AR]:"Arkansas",[t._F.US_CA]:"California",[t._F.US_CO]:"Colorado",[t._F.US_CT]:"Connecticut",[t._F.US_DE]:"Delaware",[t._F.US_DC]:"District of Columbia (DC)",[t._F.US_FL]:"Florida",[t._F.US_GA]:"Georgia",[t._F.US_HI]:"Hawaii",[t._F.US_ID]:"Idaho",[t._F.US_IL]:"Illinois",[t._F.US_IN]:"Indiana",[t._F.US_IA]:"Iowa",[t._F.US_KS]:"Kansas",[t._F.US_KY]:"Kentucky",[t._F.US_LA]:"Louisiana",[t._F.US_ME]:"Maine",[t._F.US_MD]:"Maryland",[t._F.US_MA]:"Massachusetts",[t._F.US_MI]:"Michigan",[t._F.US_MN]:"Minnesota",[t._F.US_MS]:"Mississippi",[t._F.US_MO]:"Missouri",[t._F.US_MT]:"Montana",[t._F.US_NE]:"Nebraska",[t._F.US_NV]:"Nevada",[t._F.US_NH]:"New Hampshire",[t._F.US_NJ]:"New Jersey",[t._F.US_NM]:"New Mexico",[t._F.US_NY]:"New York",[t._F.US_NC]:"North Carolina",[t._F.US_ND]:"North Dakota",[t._F.US_OH]:"Ohio",[t._F.US_OK]:"Oklahoma",[t._F.US_OR]:"Oregon",[t._F.US_PA]:"Pennsylvania",[t._F.US_PR]:"Puerto Rico",[t._F.US_RI]:"Rhode Island",[t._F.US_SC]:"South Carolina",[t._F.US_SD]:"South Dakota",[t._F.US_TN]:"Tennessee",[t._F.US_TX]:"Texas",[t._F.US_UT]:"Utah",[t._F.US_VA]:"Virginia",[t._F.US_VI]:"United States Virgin Islands",[t._F.US_VT]:"Vermont",[t._F.US_WA]:"Washington",[t._F.US_WV]:"West Virginia",[t._F.US_WI]:"Wisconsin",[t._F.US_WY]:"Wyoming",[t._F.CA_AB]:"Alberta",[t._F.CA_BC]:"British Columbia",[t._F.CA_MB]:"Manitoba",[t._F.CA_NB]:"New Brunswick",[t._F.CA_NL]:"Newfoundland and Labrador",[t._F.CA_NS]:"Nova Scotia",[t._F.CA_ON]:"Ontario",[t._F.CA_PE]:"Prince Edward Island",[t._F.CA_QC]:"Quebec",[t._F.CA_SK]:"Saskatchewan",[t._F.CA_NT]:"Northwest Territories",[t._F.CA_NU]:"Nunavut",[t._F.CA_YT]:"Yukon",[t._F.CA]:"Canada",[t._F.US]:"United States",[t._F.MEXICO_CENTRAL_AMERICA]:"Mexico and Central America",[t._F.CARIBBEAN]:"Caribbean",[t._F.EEA]:"European Economic Area (EEA)",[t._F.NON_EEA]:"Non European Economic Area",[t._F.GLOBAL]:"Global"},i=new Map(Object.entries(a));Object.entries(a).map(e=>({value:e[0],label:e[1]}))},45113:function(e,n,r){"use strict";r.r(n),r.d(n,{default:function(){return V}});var t=r(24246),a=r(59003),i=r(92222),o=r(27693),s=r.n(o),l=r(98227),c=r(27378),u=r(35287),_=r(17245),d=r(58754);let F=e=>{let{disableNext:n,pagination:r}=e;return(0,t.jsxs)(l.jqI,{gap:"middle",align:"center",justify:"right",children:[(0,t.jsx)(l.wpx,{onClick:r.previousPage,disabled:1===r.pageIndex,icon:(0,t.jsx)(l.PJP.s$$,{"aria-hidden":!0}),"aria-label":"Previous"}),(0,t.jsx)("span",{"aria-label":"Page ".concat(r.pageIndex),children:r.pageIndex}),(0,t.jsx)(l.wpx,{onClick:r.nextPage,disabled:n,icon:(0,t.jsx)(l.PJP._Qn,{"aria-hidden":!0}),"aria-label":"Next"}),(0,t.jsx)(l.WPr,{className:"w-auto",value:r.pageSize,onChange:r.updatePageSize,options:r.pageSizeOptions.map(e=>({label:e,value:e})),labelRender:e=>{let{value:n}=e;return(0,t.jsxs)("span",{children:[n," / page"]})},"aria-label":"Select page size"})]})};var p=r(47935),h=r(46628),f=r(78780);let x=e=>{var n,r;return null==e?void 0:null===(r=e.startOf("day"))||void 0===r?void 0:null===(n=r.utc())||void 0===n?void 0:n.toISOString()},g=e=>{var n,r;return null==e?void 0:null===(r=e.endOf("day"))||void 0===r?void 0:null===(n=r.utc())||void 0===n?void 0:n.toISOString()},{useLazyDownloadReportQuery:j,useGetAllHistoricalPrivacyPreferencesQuery:m,useLazyGetCurrentPrivacyPreferencesQuery:v}=f.u.injectEndpoints({endpoints:e=>({getCurrentPrivacyPreferences:e.query({query:e=>{let{search:n}=e;return{url:"current-privacy-preferences",params:{email:n,phone_number:n,fides_user_device_id:n,external_id:n}}},providesTags:["Current Privacy Preferences"]}),downloadReport:e.query({query:e=>{let{startDate:n,endDate:r}=e;return{url:"plus/consent_reporting",params:{created_gt:x(n),created_lt:g(r),download_csv:"true"},responseHandler:"content-type"}},providesTags:["Consent Reporting Export"]}),getAllHistoricalPrivacyPreferences:e.query({query:e=>{let{page:n,size:r,startDate:t,endDate:a,includeTotal:i=!0}=e;return{url:"historical-privacy-preferences",params:{page:n,size:r,request_timestamp_gt:x(t),request_timestamp_lt:g(a),include_total:i}}},providesTags:["Consent Reporting"]})})});var S=r(90104),b=r.n(S),y=r(812),C=r(65735);let A={[C.pq.OPT_IN]:"Opt in",[C.pq.OPT_OUT]:"Opt out",[C.pq.ACKNOWLEDGE]:"Acknowledge",[C.pq.TCF]:"TCF"},N={[C.pq.OPT_IN]:l.tAb.SUCCESS,[C.pq.OPT_OUT]:l.tAb.ERROR,[C.pq.ACKNOWLEDGE]:l.tAb.DEFAULT,[C.pq.TCF]:l.tAb.SANDSTONE},M={[C.jP.ACCEPT]:"Accept",[C.jP.BUTTON]:"Button",[C.jP.DISMISS]:"Dismiss",[C.jP.GPC]:"GPC",[C.jP.REJECT]:"Reject",[C.jP.SAVE]:"Save",[C.jP.SCRIPT]:"Script",[C.jP.INDIVIDUAL_NOTICE]:"Individual Notice",[C.jP.ACKNOWLEDGE]:"Acknowledge",[C.jP.EXTERNAL_PROVIDER]:"External Provider"},P={[C.Tz.API]:"API",[C.Tz.BANNER_AND_MODAL]:"Banner and Modal",[C.Tz.MODAL]:"Modal",[C.Tz.OVERLAY]:"Overlay",[C.Tz.PRIVACY_CENTER]:"Privacy Center",[C.Tz.TCF_OVERLAY]:"TCF Overlay"},I=(0,i.Cl)();var T=()=>(0,c.useMemo)(()=>[I.accessor(e=>e.notice_name,{id:"notice_name",cell:e=>{let{getValue:n}=e;return(0,t.jsx)(p.G3,{value:n()})},header:e=>(0,t.jsx)(p.Rr,{value:"Privacy notice",...e}),enableSorting:!1}),I.accessor(e=>e.notice_key,{id:"notice_key",cell:e=>{let{getValue:n}=e;return(0,t.jsx)(p.G3,{value:n()})},header:e=>(0,t.jsx)(p.Rr,{value:"Notice Key",...e}),enableSorting:!1}),I.accessor(e=>e.preference,{id:"preference",cell:e=>{let{getValue:n}=e,r=n(),a=r&&A[r]||r,i=r&&N[r]||"";return(0,t.jsx)(p.A4,{color:i,value:a})},header:e=>(0,t.jsx)(p.Rr,{value:"Preference",...e}),enableSorting:!1,size:100}),I.accessor(e=>e.privacy_notice_history_id,{id:"privacy_notice_history_id",cell:e=>{let{getValue:n}=e;return(0,t.jsx)(p.G3,{value:n()})},header:e=>(0,t.jsx)(p.Rr,{value:"Privacy Notice History Id",...e}),enableSorting:!1})],[]),w=r(47003),E=r.n(w);let R=(0,i.Cl)();var U=()=>{let e=(0,c.useCallback)(e=>{let n=[];if(e){let{preferences:r,...t}=e;E()(t,(e,r)=>{e&&e.forEach(e=>{n.push({key:r,id:e.id,preference:e.preference})})})}return n},[]),n=(0,c.useCallback)(e=>e.filter(e=>!(e.key.startsWith("system_")||e.key.startsWith("vendor_"))),[]);return{tcfColumns:(0,c.useMemo)(()=>[R.accessor(e=>e.key,{id:"key",cell:e=>{let{getValue:n}=e;return(0,t.jsx)(p.G3,{value:n()})},header:e=>(0,t.jsx)(p.Rr,{value:"Type",...e}),enableSorting:!1}),R.accessor(e=>e.id,{id:"id",cell:e=>{let{getValue:n}=e;return(0,t.jsx)(p.G3,{value:n()})},header:e=>(0,t.jsx)(p.Rr,{value:"ID",...e}),enableSorting:!1}),R.accessor(e=>e.preference,{id:"preference",cell:e=>{let{getValue:n}=e,r=n(),a=r&&A[r]||r,i=r&&N[r]||"";return(0,t.jsx)(p.A4,{color:i,value:a})},header:e=>(0,t.jsx)(p.Rr,{value:"Preference",...e}),enableSorting:!1,size:100})],[]),mapTcfPreferencesToRowColumns:e,filterTcfConsentPreferences:n}},O=e=>{let{isOpen:n,onClose:r}=e,[o,s]=(0,c.useState)(!1),[u,_]=(0,c.useState)(),[d]=v(),F=(0,l.pmc)();(0,c.useEffect)(()=>{n||(_(void 0),s(!1))},[n]);let h=async e=>{s(!0);let{data:n,isError:r,error:t}=await d({search:e}),a=t&&"status"in t&&(null==t?void 0:t.status);r&&404!==a?F({status:"error",description:(0,y.e$)(t,"A problem occurred while looking up the preferences.")}):_(n||null),s(!1)},f=T(),x=(null==u?void 0:u.preferences)||[],g=!b()(x),j=(0,a.b7)({getCoreRowModel:(0,i.sC)(),data:x,columns:f,getRowId:e=>"".concat(e.privacy_notice_history_id),manualPagination:!0}),{tcfColumns:m,mapTcfPreferencesToRowColumns:S,filterTcfConsentPreferences:C}=U(),A=C(S(u)),N=!b()(A),M=(0,a.b7)({getCoreRowModel:(0,i.sC)(),data:A,columns:m,getRowId:e=>"".concat(e.key,"-").concat(e.id),manualPagination:!0});return(0,t.jsxs)(l.u_l,{id:"consent-lookup-modal",isOpen:n,onClose:r,size:"6xl",returnFocusOnClose:!1,isCentered:!0,children:[(0,t.jsx)(l.ZAr,{}),(0,t.jsxs)(l.hzk,{children:[(0,t.jsx)(l.olH,{}),(0,t.jsx)(l.xBx,{pb:2,children:"Consent preference lookup"}),(0,t.jsxs)(l.fef,{children:[(0,t.jsx)(l.AntTypography.Paragraph,{children:"Use this search to look up an individual's latest consent record. You can search by phone number, email, external ID or device ID to retrieve the most recent consent preference associated with that exact identifier."}),(0,t.jsxs)(l.AntTypography.Paragraph,{children:[(0,t.jsx)("strong",{children:"Note:"})," This is an exact match search—partial entries or similar results will not be returned. This lookup retrieves only the most recent consent preference, not the full consent history."]}),(0,t.jsx)(l.PPS,{layout:"vertical",className:"w-1/2",children:(0,t.jsx)(l.PPS.Item,{label:"Subject search",className:"mb-4 mt-6",children:(0,t.jsx)(l.AntInput.Search,{"data-testid":"subject-search-input",placeholder:"Enter email, phone number, external ID or device ID",enterButton:"Search",onSearch:h,loading:o})})}),(0,t.jsxs)("div",{className:"mb-4",children:[(!N||g)&&(0,t.jsx)(p.ZK,{tableInstance:j,emptyTableNotice:(0,t.jsx)(l.oj8,{description:void 0===u?"Search for an email, phone number, or device ID.":"No results found.",image:l.oj8.PRESENTED_IMAGE_SIMPLE,imageStyle:{marginBottom:15}})}),N&&(0,t.jsx)("div",{className:"mt-4",children:(0,t.jsx)(p.ZK,{tableInstance:M})})]})]})]})]})},k=()=>{let e=(0,l.pmc)(),[n,{isFetching:r}]=j();return{downloadReport:async r=>{let{startDate:t,endDate:a}=r,i=await n({startDate:t,endDate:a});if(i.isError)e({status:"error",description:(0,y.e$)(i.error,"A problem occurred while generating your consent report. Please try again.")});else{let e=document.createElement("a"),n=new Blob([i.data],{type:"text/csv"}),r=window.URL.createObjectURL(n);e.href=r,e.download="consent-reports.csv",e.click(),window.URL.revokeObjectURL(r)}},isDownloadingReport:r}},G=e=>{let{isOpen:n,onClose:r,startDate:a,endDate:i}=e,{downloadReport:o,isDownloadingReport:s}=k(),c=async()=>{await o({startDate:a,endDate:i}),r()};return(0,t.jsxs)(l.u_l,{id:"consent-report-download-modal",isOpen:n,onClose:r,size:"xl",returnFocusOnClose:!1,isCentered:!0,children:[(0,t.jsx)(l.ZAr,{}),(0,t.jsxs)(l.hzk,{children:[(0,t.jsx)(l.olH,{}),(0,t.jsx)(l.xBx,{pb:2,children:"Download consent report"}),(0,t.jsxs)(l.fef,{children:[(0,t.jsx)(l.AntTypography.Paragraph,{children:"The downloaded CSV may differ from the UI in Fides, including column order and naming."}),(0,t.jsx)(l.AntTypography.Paragraph,{children:'For large datasets, file generation may take a few minutes after selecting "Download".'}),(0,t.jsx)(l.jqI,{justify:"flex-end",children:(0,t.jsx)(l.wpx,{loading:s,onClick:c,"data-testid":"download-report-btn",type:"primary",className:"mb-2",children:"Download"})})]})]})]})},B=e=>{let{isOpen:n,onClose:r,tcfPreferences:o}=e,{tcfColumns:s,mapTcfPreferencesToRowColumns:c,filterTcfConsentPreferences:u}=U(),_=u(c(o)),d=(0,a.b7)({getCoreRowModel:(0,i.sC)(),data:_||[],columns:s,getRowId:e=>"".concat(e.key,"-").concat(e.id),manualPagination:!0});return(0,t.jsxs)(l.u_l,{id:"consent-lookup-modal",isOpen:n,onClose:r,size:"4xl",returnFocusOnClose:!1,isCentered:!0,children:[(0,t.jsx)(l.ZAr,{}),(0,t.jsxs)(l.hzk,{"data-testid":"consent-tcf-detail-modal",children:[(0,t.jsx)(l.olH,{}),(0,t.jsx)(l.xBx,{pb:2,children:"TCF Consent Details"}),(0,t.jsx)(l.fef,{children:(0,t.jsx)("div",{className:"mb-4",children:(0,t.jsx)(p.ZK,{tableInstance:d,emptyTableNotice:(0,t.jsx)(l.oj8,{description:" No data found",image:l.oj8.PRESENTED_IMAGE_SIMPLE,imageStyle:{marginBottom:15}})})})})]})]})},D=r(8411),L=r(72625);let K=(0,i.Cl)();var z=e=>{let{onTcfDetailViewClick:n}=e;return(0,c.useMemo)(()=>[K.accessor(e=>e.fides_user_device_id,{id:"fides_user_device_id",cell:e=>{let{getValue:n}=e;return(0,t.jsx)(p.G3,{value:n()})},header:e=>(0,t.jsx)(p.Rr,{value:"User device ID",...e}),enableSorting:!1}),K.accessor(e=>e.user_geography,{id:"user_geography",cell:e=>{let{getValue:n}=e,r=n(),a=r&&(0,l.QCN)(r),i=r&&D.Z8[r]||r,o=a?(0,l.c1K)({isoEntry:a}):i;return(0,t.jsx)(p.G3,{value:o})},header:e=>(0,t.jsx)(p.Rr,{value:"User geography",...e}),enableSorting:!1}),K.accessor(e=>e.preference,{id:"preference",cell:e=>{let{getValue:r,row:a}=e,i=r(),o=i&&A[i]||i,s=i&&N[i]||void 0;return"tcf"===i&&a.original.tcf_preferences?(0,t.jsx)(l.j8w,{color:s,closeIcon:(0,t.jsx)(l.PJP.daM,{}),closeButtonLabel:"View details",onClose:()=>n(a.original.tcf_preferences),children:o}):(0,t.jsx)(p.A4,{color:s,value:o})},header:e=>(0,t.jsx)(p.Rr,{value:"Preference",...e}),enableSorting:!1,size:100}),K.accessor(e=>e.notice_name,{id:"notice_name",cell:e=>{let{getValue:n}=e,r=n(),a="tcf"===r?r.toUpperCase():r;return(0,t.jsx)(p.G3,{value:a})},header:e=>(0,t.jsx)(p.Rr,{value:"Privacy notice",...e}),enableSorting:!1}),K.accessor(e=>e.method,{id:"method",cell:e=>{let{getValue:n}=e,r=n(),a=r&&M[r]||r;return(0,t.jsx)(p.G3,{value:a})},header:e=>(0,t.jsx)(p.Rr,{value:"Method",...e}),enableSorting:!1,size:100}),K.accessor(e=>e.request_origin,{id:"request_origin",cell:e=>{let{getValue:n}=e,r=n(),a=r&&P[r]||r;return(0,t.jsx)(p.G3,{value:a})},header:e=>(0,t.jsx)(p.Rr,{value:"Request origin",...e}),enableSorting:!1,size:120}),K.accessor(e=>e.request_timestamp,{id:"request_timestamp",cell:e=>{let{getValue:n}=e;return(0,t.jsx)(L.Cy,{time:n()})},header:e=>(0,t.jsx)(p.Rr,{value:"Request timestamp",...e}),size:120}),K.accessor(e=>e.url_recorded,{id:"url_recorded",cell:e=>{let{getValue:n}=e;return(0,t.jsx)(p.G3,{value:n()})},header:e=>(0,t.jsx)(p.Rr,{value:"Recorded URL",...e})}),K.accessor(e=>e.external_id,{id:"external_id",cell:e=>{let{getValue:n}=e;return(0,t.jsx)(p.G3,{value:n()})},header:e=>(0,t.jsx)(p.Rr,{value:"External ID",...e}),enableSorting:!1}),K.accessor(e=>e.email,{id:"email",cell:e=>{let{getValue:n}=e;return(0,t.jsx)(p.G3,{value:(0,t.jsx)(l.AntTypography.Link,{href:"mailto:".concat(n()),children:n()})})},header:e=>(0,t.jsx)(p.Rr,{value:"Email",...e}),enableSorting:!1}),K.accessor(e=>e.id,{id:"id",cell:e=>{let{getValue:n}=e;return(0,t.jsx)(p.G3,{value:n()})},header:e=>(0,t.jsx)(p.Rr,{value:"Preference ID",...e}),enableSorting:!1})],[n])},V=()=>{var e,n;let r=(0,_.h0)(),{pageIndex:o,pageSize:f,updatePageIndex:x}=r,g=(0,c.useMemo)(()=>s()(),[]),[j,v]=(0,c.useState)(null),[S,b]=(0,c.useState)(null),[y,C]=(0,c.useState)(!1),[A,N]=(0,c.useState)(!1),[M,P]=(0,c.useState)(!1),[I,T]=(0,c.useState)(),w=(0,l.pmc)(),{data:E,isLoading:R,isFetching:U,refetch:k}=m({page:o,size:f,startDate:j,endDate:S,includeTotal:!1}),{items:D}=(0,c.useMemo)(()=>E||{items:[],total:0,pages:0},[E]),L=z({onTcfDetailViewClick:e=>{P(!0),T(e)}}),K=(0,a.b7)({getCoreRowModel:(0,i.sC)(),data:D,columns:L,getRowId:e=>"".concat(e.id),manualPagination:!0}),V=async()=>{x(1),await k(),w((0,h.t5)("Consent report refreshed successfully.","Report Refreshed"))};return(0,t.jsxs)(u.Z,{title:"Consent reporting",children:[(0,t.jsx)(d.Z,{heading:"Consent reporting",rightContent:(0,t.jsx)(l.wpx,{type:"primary",onClick:V,loading:U,children:"Refresh"})}),(0,t.jsx)("div",{"data-testid":"consent-reporting",className:"overflow-auto",children:(0,t.jsxs)(l.jqI,{vertical:!0,gap:"middle",children:[R?(0,t.jsx)("div",{className:"border p-2",children:(0,t.jsx)(p.I4,{rowHeight:26,numRows:10})}):(0,t.jsxs)("div",{children:[(0,t.jsxs)(p.Q$,{children:[(0,t.jsx)(l.gwi,{placeholder:["From","To"],maxDate:g,"data-testid":"input-date-range",onChange:e=>{v(e&&e[0]),b(e&&e[1])}}),(0,t.jsxs)(l.jqI,{gap:12,children:[(0,t.jsx)(l.wpx,{icon:(0,t.jsx)(l.PJP.UWx,{}),"data-testid":"download-btn",onClick:()=>N(!0),"aria-label":"Download Consent Report"}),(0,t.jsx)(l.S0p,{menu:{items:[{key:"1",label:(0,t.jsx)("span",{"data-testid":"consent-preference-lookup-btn",children:"Consent preference lookup"}),onClick:()=>C(!0)}]},overlayStyle:{width:"220px"},trigger:["click"],children:(0,t.jsx)(l.wpx,{"aria-label":"Menu",icon:(0,t.jsx)(l.PJP.r43,{}),"data-testid":"consent-reporting-dropdown-btn"})})]})]}),(0,t.jsx)(p.ZK,{tableInstance:K,emptyTableNotice:(0,t.jsx)(l.oj8,{description:"No results.",image:l.oj8.PRESENTED_IMAGE_SIMPLE,styles:{image:{marginBottom:15}}})})]}),(0,t.jsx)(F,{disableNext:(null!==(n=null==E?void 0:null===(e=E.items)||void 0===e?void 0:e.length)&&void 0!==n?n:0)<f,pagination:r})]})}),(0,t.jsx)(O,{isOpen:y,onClose:()=>C(!1)}),(0,t.jsx)(G,{isOpen:A,onClose:()=>N(!1),startDate:j,endDate:S}),(0,t.jsx)(B,{isOpen:M,onClose:()=>{P(!1),T(void 0)},tcfPreferences:I})]})}}},function(e){e.O(0,[431,7245,2888,9774,179],function(){return e(e.s=15806)}),_N_E=e.O()}]);
@@ -1 +1 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9851],{66393:function(e,n,i){(window.__NEXT_P=window.__NEXT_P||[]).push(["/consent",function(){return i(78220)}])},77213:function(e,n,i){"use strict";i.d(n,{Z:function(){return f}});var t=i(24246),s=i(87949),r=i(88038),o=i.n(r),a=i(86677);i(27378);var g=i(25980),u=i(90867),c=i(42478),d=i(77830),l=()=>{let e=(0,a.useRouter)();return(0,t.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,t.jsxs)(s.xuv,{children:[(0,t.jsxs)(s.Kqy,{direction:{base:"column",sm:"row"},justifyContent:"space-between",children:[(0,t.jsx)(s.xvT,{fontWeight:"semibold",children:"Configure your storage and messaging provider"}),(0,t.jsx)(s.wpx,{onClick:()=>{e.push(d.AD)},children:"Configure"})]}),(0,t.jsxs)(s.xvT,{children:["Before Fides can process your privacy requests we need two simple steps to configure your storage and email client."," "]})]})})},f=e=>{let{children:n,title:i,padded:r=!0,mainProps:d}=e,f=(0,g.hz)(),y=(0,a.useRouter)(),m="/privacy-requests"===y.pathname||"/datastore-connection"===y.pathname,C=!(f.flags.messagingConfiguration&&m),{data:p}=(0,c.JE)(void 0,{skip:C}),{data:v}=(0,u.PW)(void 0,{skip:C}),h=f.flags.messagingConfiguration&&(!p||!v)&&m;return(0,t.jsxs)(s.kCb,{"data-testid":i,direction:"column",h:"100vh",children:[(0,t.jsxs)(o(),{children:[(0,t.jsxs)("title",{children:["Fides Admin UI - ",i]}),(0,t.jsx)("meta",{name:"description",content:"Privacy Engineering Platform"}),(0,t.jsx)("link",{rel:"icon",href:"/favicon.ico"})]}),(0,t.jsxs)(s.kCb,{as:"main",direction:"column",py:r?6:0,px:r?10:0,h:r?"calc(100% - 48px)":"full",flex:1,minWidth:0,overflow:"auto",...d,children:[h?(0,t.jsx)(l,{}):null,n]})]})}},42478:function(e,n,i){"use strict";i.d(n,{FU:function(){return u},JE:function(){return s},Ki:function(){return d},SU:function(){return l},W:function(){return f},h9:function(){return r},jc:function(){return t},qt:function(){return g},sn:function(){return c}});let{useGetEmailInviteStatusQuery:t,useGetActiveMessagingProviderQuery:s,useCreateMessagingConfigurationMutation:r,useCreateMessagingConfigurationSecretsMutation:o,useGetMessagingConfigurationDetailsQuery:a,useGetMessagingConfigurationsQuery:g,useGetMessagingConfigurationByKeyQuery:u,useUpdateMessagingConfigurationByKeyMutation:c,useUpdateMessagingConfigurationSecretsByKeyMutation:d,useCreateTestConnectionMessageMutation:l,useDeleteMessagingConfigurationByKeyMutation:f}=i(78780).u.injectEndpoints({endpoints:e=>({getEmailInviteStatus:e.query({query:()=>({url:"/messaging/email-invite/status"}),providesTags:()=>["Email Invite Status"]}),createMessagingConfiguration:e.mutation({query:e=>({url:"messaging/config",method:"POST",body:e}),invalidatesTags:["Messaging Config","Configuration Settings"]}),getActiveMessagingProvider:e.query({queryFn:async(e,n,i,t)=>{let s=await t({url:"messaging/default/active"});return s.error&&404===s.error.status?{data:null}:s},providesTags:["Messaging Config"]}),createMessagingConfigurationSecrets:e.mutation({query:e=>({url:"messaging/default/".concat(e.service_type,"/secret"),method:"PUT",body:e.details}),invalidatesTags:["Messaging Config","Configuration Settings"]}),getMessagingConfigurationDetails:e.query({query:e=>({url:"messaging/default/".concat(e.type)}),providesTags:["Messaging Config"]}),getMessagingConfigurations:e.query({query:()=>({url:"messaging/config"}),providesTags:["Messaging Config"]}),getMessagingConfigurationByKey:e.query({query:e=>({url:"messaging/config/".concat(e.key)}),providesTags:["Messaging Config"]}),createTestConnectionMessage:e.mutation({query:e=>({url:"messaging/test/".concat(e.service_type),method:"POST",body:e.details}),invalidatesTags:["Messaging Config"]}),updateMessagingConfigurationByKey:e.mutation({query:e=>({url:"messaging/config/".concat(e.key),method:"PATCH",body:e.config}),invalidatesTags:["Messaging Config","Configuration Settings"]}),updateMessagingConfigurationSecretsByKey:e.mutation({query:e=>({url:"messaging/config/".concat(e.key,"/secret"),method:"PUT",body:e.secrets}),invalidatesTags:["Messaging Config","Configuration Settings"]}),deleteMessagingConfigurationByKey:e.mutation({query:e=>({url:"messaging/config/".concat(e.key),method:"DELETE"}),invalidatesTags:["Messaging Config","Configuration Settings"]})})})},78220:function(e,n,i){"use strict";i.r(n);var t=i(24246),s=i(87949),r=i(86677),o=i(27378),a=i(77213),g=i(77830);n.default=()=>{let e=(0,r.useRouter)();return(0,o.useEffect)(()=>{e.push(g.IT)},[e]),(0,t.jsx)(a.Z,{title:"Consent",children:(0,t.jsx)(s.M5Y,{children:(0,t.jsx)(s.$jN,{})})})}}},function(e){e.O(0,[2888,9774,179],function(){return e(e.s=66393)}),_N_E=e.O()}]);
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9851],{66393:function(e,n,i){(window.__NEXT_P=window.__NEXT_P||[]).push(["/consent",function(){return i(78220)}])},77213:function(e,n,i){"use strict";i.d(n,{Z:function(){return f}});var t=i(24246),s=i(98227),r=i(88038),o=i.n(r),a=i(86677);i(27378);var g=i(25980),u=i(90867),c=i(42478),d=i(77830),l=()=>{let e=(0,a.useRouter)();return(0,t.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,t.jsxs)(s.xuv,{children:[(0,t.jsxs)(s.Kqy,{direction:{base:"column",sm:"row"},justifyContent:"space-between",children:[(0,t.jsx)(s.xvT,{fontWeight:"semibold",children:"Configure your storage and messaging provider"}),(0,t.jsx)(s.wpx,{onClick:()=>{e.push(d.AD)},children:"Configure"})]}),(0,t.jsxs)(s.xvT,{children:["Before Fides can process your privacy requests we need two simple steps to configure your storage and email client."," "]})]})})},f=e=>{let{children:n,title:i,padded:r=!0,mainProps:d}=e,f=(0,g.hz)(),y=(0,a.useRouter)(),m="/privacy-requests"===y.pathname||"/datastore-connection"===y.pathname,C=!(f.flags.messagingConfiguration&&m),{data:p}=(0,c.JE)(void 0,{skip:C}),{data:v}=(0,u.PW)(void 0,{skip:C}),h=f.flags.messagingConfiguration&&(!p||!v)&&m;return(0,t.jsxs)(s.kCb,{"data-testid":i,direction:"column",h:"100vh",children:[(0,t.jsxs)(o(),{children:[(0,t.jsxs)("title",{children:["Fides Admin UI - ",i]}),(0,t.jsx)("meta",{name:"description",content:"Privacy Engineering Platform"}),(0,t.jsx)("link",{rel:"icon",href:"/favicon.ico"})]}),(0,t.jsxs)(s.kCb,{as:"main",direction:"column",py:r?6:0,px:r?10:0,h:r?"calc(100% - 48px)":"full",flex:1,minWidth:0,overflow:"auto",...d,children:[h?(0,t.jsx)(l,{}):null,n]})]})}},42478:function(e,n,i){"use strict";i.d(n,{FU:function(){return u},JE:function(){return s},Ki:function(){return d},SU:function(){return l},W:function(){return f},h9:function(){return r},jc:function(){return t},qt:function(){return g},sn:function(){return c}});let{useGetEmailInviteStatusQuery:t,useGetActiveMessagingProviderQuery:s,useCreateMessagingConfigurationMutation:r,useCreateMessagingConfigurationSecretsMutation:o,useGetMessagingConfigurationDetailsQuery:a,useGetMessagingConfigurationsQuery:g,useGetMessagingConfigurationByKeyQuery:u,useUpdateMessagingConfigurationByKeyMutation:c,useUpdateMessagingConfigurationSecretsByKeyMutation:d,useCreateTestConnectionMessageMutation:l,useDeleteMessagingConfigurationByKeyMutation:f}=i(78780).u.injectEndpoints({endpoints:e=>({getEmailInviteStatus:e.query({query:()=>({url:"/messaging/email-invite/status"}),providesTags:()=>["Email Invite Status"]}),createMessagingConfiguration:e.mutation({query:e=>({url:"messaging/config",method:"POST",body:e}),invalidatesTags:["Messaging Config","Configuration Settings"]}),getActiveMessagingProvider:e.query({queryFn:async(e,n,i,t)=>{let s=await t({url:"messaging/default/active"});return s.error&&404===s.error.status?{data:null}:s},providesTags:["Messaging Config"]}),createMessagingConfigurationSecrets:e.mutation({query:e=>({url:"messaging/default/".concat(e.service_type,"/secret"),method:"PUT",body:e.details}),invalidatesTags:["Messaging Config","Configuration Settings"]}),getMessagingConfigurationDetails:e.query({query:e=>({url:"messaging/default/".concat(e.type)}),providesTags:["Messaging Config"]}),getMessagingConfigurations:e.query({query:()=>({url:"messaging/config"}),providesTags:["Messaging Config"]}),getMessagingConfigurationByKey:e.query({query:e=>({url:"messaging/config/".concat(e.key)}),providesTags:["Messaging Config"]}),createTestConnectionMessage:e.mutation({query:e=>({url:"messaging/test/".concat(e.service_type),method:"POST",body:e.details}),invalidatesTags:["Messaging Config"]}),updateMessagingConfigurationByKey:e.mutation({query:e=>({url:"messaging/config/".concat(e.key),method:"PATCH",body:e.config}),invalidatesTags:["Messaging Config","Configuration Settings"]}),updateMessagingConfigurationSecretsByKey:e.mutation({query:e=>({url:"messaging/config/".concat(e.key,"/secret"),method:"PUT",body:e.secrets}),invalidatesTags:["Messaging Config","Configuration Settings"]}),deleteMessagingConfigurationByKey:e.mutation({query:e=>({url:"messaging/config/".concat(e.key),method:"DELETE"}),invalidatesTags:["Messaging Config","Configuration Settings"]})})})},78220:function(e,n,i){"use strict";i.r(n);var t=i(24246),s=i(98227),r=i(86677),o=i(27378),a=i(77213),g=i(77830);n.default=()=>{let e=(0,r.useRouter)();return(0,o.useEffect)(()=>{e.push(g.IT)},[e]),(0,t.jsx)(a.Z,{title:"Consent",children:(0,t.jsx)(s.M5Y,{children:(0,t.jsx)(s.$jN,{})})})}}},function(e){e.O(0,[2888,9774,179],function(){return e(e.s=66393)}),_N_E=e.O()}]);
@@ -1 +1 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7818],{50481:function(e,t,s){(window.__NEXT_P=window.__NEXT_P||[]).push(["/data-catalog/[systemId]/projects/[projectUrn]",function(){return s(32065)}])},98800:function(e,t,s){"use strict";var n=s(24246),i=s(87949),a=s(79789);t.Z=e=>{var t;let{dataset:s,onClose:r}=e;return(0,n.jsxs)(i.dys,{isOpen:!!s,onClose:r,size:"md",children:[(0,n.jsx)(i.P1B,{}),(0,n.jsxs)(i.scA,{children:[(0,n.jsx)(i.OXI,{children:(null==s?void 0:s.name)||(null==s?void 0:s.urn)}),(0,n.jsx)(i.cCv,{}),(0,n.jsxs)(i.Ng0,{children:[(0,n.jsx)(a.cB,{text:"Title",mt:0}),(0,n.jsx)(a.XU,{children:null!==(t=null==s?void 0:s.name)&&void 0!==t?t:null==s?void 0:s.urn}),(null==s?void 0:s.description)&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(a.cB,{text:"Description"}),(0,n.jsx)(a.XU,{children:null==s?void 0:s.description})]})]})]})]})}},81406:function(e,t,s){"use strict";var n=s(24246),i=s(87949);t.Z=()=>(0,n.jsxs)(i.gCW,{mt:6,p:10,spacing:4,borderRadius:"base",maxW:"70%","data-testid":"empty-state",alignSelf:"center",margin:"auto",children:[(0,n.jsx)(i.xvT,{fontSize:"md",fontWeight:"600",children:"No resources found"}),(0,n.jsx)(i.xvT,{fontSize:"sm",children:"You're up to date!"})]})},69172:function(e,t,s){"use strict";var n=s(24246),i=s(92222),a=s(87949),r=s(27378),l=s(47935),o=s(72625),c=s(89200),d=s(5945),u=s(8151);let x=(0,i.Cl)(),g=e=>{let{onDetailClick:t}=e;return(0,n.jsxs)(a.v2r,{children:[(0,n.jsx)(a.j2t,{as:a.wpx,size:"small",type:"text",icon:(0,n.jsx)(a.nXP,{transform:"rotate(90deg)"}),className:"w-6 gap-0","data-testid":"dataset-actions"}),(0,n.jsx)(a.qyq,{children:(0,n.jsx)(a.sNh,{"data-testid":"view-dataset-details",onClick:t,children:"View details"})})]})};t.Z=e=>{let{onDetailClick:t}=e;return(0,r.useMemo)(()=>[x.accessor(e=>e.name,{id:"name",cell:e=>(0,n.jsx)(c.Z,{resource:e.row.original}),header:"Dataset"}),x.display({id:"status",cell:e=>{let{row:t}=e;return(0,n.jsx)(d.Z,{status:(0,u.u)(t.original)})},header:"Status"}),x.accessor(e=>e.description,{id:"description",cell:e=>(0,n.jsx)(l.G3,{value:e.getValue()}),header:"Description"}),x.accessor(e=>e.updated_at,{id:"lastUpdated",cell:e=>(0,n.jsx)(o.Cy,{time:e.getValue()}),header:"Updated"}),x.display({id:"actions",cell:e=>{let{row:s}=e;return(0,n.jsx)(g,{onDetailClick:()=>t(s.original)})},size:25,meta:{disableRowClick:!0}})],[t])}},94780:function(e,t,s){"use strict";s.d(t,{X5:function(){return l},pN:function(){return o},sv:function(){return a}});var n=s(24246),i=s(87949);let a=e=>e.split(".")[1],r=[(0,n.jsx)(i.PJP.S9g,{},"layers"),(0,n.jsx)(i.PJP.iA_,{},"table"),(0,n.jsx)(i.PJP.$4y,{style:{transform:"rotate(-90deg)"}},"field")],l=(e,t)=>{if(!e)return[];let s=e.split(".");if(s.length<2)return[];let l=s.splice(0,2).join("."),o=[];return s.reduce((e,n,i)=>{let a=i===s.length-1,c="".concat(e).concat(".").concat(n);return o.push({title:n,href:a?void 0:"".concat(t,"/").concat(l,"/").concat(c),icon:r[i]}),c},l),[{title:a(l),href:"".concat(t,"/").concat(l),icon:(0,n.jsx)(i.PJP.ehp,{})},...o]},o=(e,t)=>{if(!e)return[];let s=e.split(".");if(s.length<2)return[];let n=s.shift(),i=[];return s.reduce((e,n,a)=>{let l=a===s.length-1,o="".concat(e).concat(".").concat(n);return i.push({title:n,href:l?void 0:"".concat(t,"/").concat(o),icon:r[a]}),o},n),i}},32065:function(e,t,s){"use strict";s.r(t);var n=s(24246),i=s(59003),a=s(92222),r=s(87949),l=s(86677),o=s(27378),c=s(77213),d=s(77830),u=s(58754),x=s(47935),g=s(98800),p=s(81406),j=s(69172),h=s(94780),m=s(70675),f=s(1315);let v={items:[],total:0,page:1,size:50,pages:1};t.default=()=>{let{query:e,push:t}=(0,l.useRouter)(),s=e.systemId,P=e.projectUrn,[w,C]=(0,o.useState)(void 0),{data:_,isLoading:y}=(0,f.rn)(s),{PAGE_SIZES:b,pageSize:N,setPageSize:R,onPreviousPageClick:k,isPreviousPageDisabled:z,onNextPageClick:Z,isNextPageDisabled:X,startRange:D,endRange:S,pageIndex:E,setTotalPages:I}=(0,x.oi)(),{isFetching:M,isLoading:T,data:U}=(0,m.z8)({staged_resource_urn:P,page:E,size:N}),{items:J,total:O,pages:V}=(0,o.useMemo)(()=>null!=U?U:v,[U]);(0,o.useEffect)(()=>{I(V)},[V,I]);let q=(0,j.Z)({onDetailClick:e=>C(e)}),A=(0,i.b7)({getCoreRowModel:(0,a.sC)(),getGroupedRowModel:(0,a.qe)(),getExpandedRowModel:(0,a.rV)(),columns:q,manualPagination:!0,data:J,columnResizeMode:"onChange"}),B=!T&&!y&&!M;return(0,n.jsxs)(c.Z,{title:"Data catalog",children:[(0,n.jsx)(u.Z,{heading:"Data catalog",breadcrumbItems:[{title:"All systems",href:d.mX},{title:(null==_?void 0:_.name)||s,href:d.mX},{title:(0,h.sv)(P),icon:(0,n.jsx)(r.PJP.ehp,{})}]}),!B&&(0,n.jsx)(x.I4,{rowHeight:36,numRows:36}),B&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(x.ZK,{tableInstance:A,emptyTableNotice:(0,n.jsx)(p.Z,{}),onRowClick:e=>t("".concat(d.mX,"/").concat(s,"/projects/").concat(P,"/").concat(e.urn,"/"))}),(0,n.jsx)(x.s8,{totalRows:O||0,pageSizes:b,setPageSize:R,onPreviousPageClick:k,isPreviousPageDisabled:z,onNextPageClick:Z,isNextPageDisabled:X,startRange:D,endRange:S}),(0,n.jsx)(g.Z,{dataset:w,onClose:()=>C(void 0)})]})]})}}},function(e){e.O(0,[9682,2888,9774,179],function(){return e(e.s=50481)}),_N_E=e.O()}]);
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7818],{50481:function(e,t,s){(window.__NEXT_P=window.__NEXT_P||[]).push(["/data-catalog/[systemId]/projects/[projectUrn]",function(){return s(32065)}])},98800:function(e,t,s){"use strict";var n=s(24246),i=s(98227),a=s(79789);t.Z=e=>{var t;let{dataset:s,onClose:r}=e;return(0,n.jsxs)(i.dys,{isOpen:!!s,onClose:r,size:"md",children:[(0,n.jsx)(i.P1B,{}),(0,n.jsxs)(i.scA,{children:[(0,n.jsx)(i.OXI,{children:(null==s?void 0:s.name)||(null==s?void 0:s.urn)}),(0,n.jsx)(i.cCv,{}),(0,n.jsxs)(i.Ng0,{children:[(0,n.jsx)(a.cB,{text:"Title",mt:0}),(0,n.jsx)(a.XU,{children:null!==(t=null==s?void 0:s.name)&&void 0!==t?t:null==s?void 0:s.urn}),(null==s?void 0:s.description)&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(a.cB,{text:"Description"}),(0,n.jsx)(a.XU,{children:null==s?void 0:s.description})]})]})]})]})}},81406:function(e,t,s){"use strict";var n=s(24246),i=s(98227);t.Z=()=>(0,n.jsxs)(i.gCW,{mt:6,p:10,spacing:4,borderRadius:"base",maxW:"70%","data-testid":"empty-state",alignSelf:"center",margin:"auto",children:[(0,n.jsx)(i.xvT,{fontSize:"md",fontWeight:"600",children:"No resources found"}),(0,n.jsx)(i.xvT,{fontSize:"sm",children:"You're up to date!"})]})},69172:function(e,t,s){"use strict";var n=s(24246),i=s(92222),a=s(98227),r=s(27378),l=s(47935),o=s(72625),c=s(89200),d=s(5945),u=s(8151);let x=(0,i.Cl)(),g=e=>{let{onDetailClick:t}=e;return(0,n.jsxs)(a.v2r,{children:[(0,n.jsx)(a.j2t,{as:a.wpx,size:"small",type:"text",icon:(0,n.jsx)(a.nXP,{transform:"rotate(90deg)"}),className:"w-6 gap-0","data-testid":"dataset-actions"}),(0,n.jsx)(a.qyq,{children:(0,n.jsx)(a.sNh,{"data-testid":"view-dataset-details",onClick:t,children:"View details"})})]})};t.Z=e=>{let{onDetailClick:t}=e;return(0,r.useMemo)(()=>[x.accessor(e=>e.name,{id:"name",cell:e=>(0,n.jsx)(c.Z,{resource:e.row.original}),header:"Dataset"}),x.display({id:"status",cell:e=>{let{row:t}=e;return(0,n.jsx)(d.Z,{status:(0,u.u)(t.original)})},header:"Status"}),x.accessor(e=>e.description,{id:"description",cell:e=>(0,n.jsx)(l.G3,{value:e.getValue()}),header:"Description"}),x.accessor(e=>e.updated_at,{id:"lastUpdated",cell:e=>(0,n.jsx)(o.Cy,{time:e.getValue()}),header:"Updated"}),x.display({id:"actions",cell:e=>{let{row:s}=e;return(0,n.jsx)(g,{onDetailClick:()=>t(s.original)})},size:25,meta:{disableRowClick:!0}})],[t])}},94780:function(e,t,s){"use strict";s.d(t,{X5:function(){return l},pN:function(){return o},sv:function(){return a}});var n=s(24246),i=s(98227);let a=e=>e.split(".")[1],r=[(0,n.jsx)(i.PJP.S9g,{},"layers"),(0,n.jsx)(i.PJP.iA_,{},"table"),(0,n.jsx)(i.PJP.$4y,{style:{transform:"rotate(-90deg)"}},"field")],l=(e,t)=>{if(!e)return[];let s=e.split(".");if(s.length<2)return[];let l=s.splice(0,2).join("."),o=[];return s.reduce((e,n,i)=>{let a=i===s.length-1,c="".concat(e).concat(".").concat(n);return o.push({title:n,href:a?void 0:"".concat(t,"/").concat(l,"/").concat(c),icon:r[i]}),c},l),[{title:a(l),href:"".concat(t,"/").concat(l),icon:(0,n.jsx)(i.PJP.ehp,{})},...o]},o=(e,t)=>{if(!e)return[];let s=e.split(".");if(s.length<2)return[];let n=s.shift(),i=[];return s.reduce((e,n,a)=>{let l=a===s.length-1,o="".concat(e).concat(".").concat(n);return i.push({title:n,href:l?void 0:"".concat(t,"/").concat(o),icon:r[a]}),o},n),i}},32065:function(e,t,s){"use strict";s.r(t);var n=s(24246),i=s(59003),a=s(92222),r=s(98227),l=s(86677),o=s(27378),c=s(77213),d=s(77830),u=s(58754),x=s(47935),g=s(98800),p=s(81406),j=s(69172),h=s(94780),m=s(70675),f=s(1315);let v={items:[],total:0,page:1,size:50,pages:1};t.default=()=>{let{query:e,push:t}=(0,l.useRouter)(),s=e.systemId,P=e.projectUrn,[w,C]=(0,o.useState)(void 0),{data:_,isLoading:y}=(0,f.rn)(s),{PAGE_SIZES:b,pageSize:N,setPageSize:R,onPreviousPageClick:k,isPreviousPageDisabled:z,onNextPageClick:Z,isNextPageDisabled:X,startRange:D,endRange:S,pageIndex:E,setTotalPages:I}=(0,x.oi)(),{isFetching:M,isLoading:T,data:U}=(0,m.z8)({staged_resource_urn:P,page:E,size:N}),{items:J,total:O,pages:V}=(0,o.useMemo)(()=>null!=U?U:v,[U]);(0,o.useEffect)(()=>{I(V)},[V,I]);let q=(0,j.Z)({onDetailClick:e=>C(e)}),A=(0,i.b7)({getCoreRowModel:(0,a.sC)(),getGroupedRowModel:(0,a.qe)(),getExpandedRowModel:(0,a.rV)(),columns:q,manualPagination:!0,data:J,columnResizeMode:"onChange"}),B=!T&&!y&&!M;return(0,n.jsxs)(c.Z,{title:"Data catalog",children:[(0,n.jsx)(u.Z,{heading:"Data catalog",breadcrumbItems:[{title:"All systems",href:d.mX},{title:(null==_?void 0:_.name)||s,href:d.mX},{title:(0,h.sv)(P),icon:(0,n.jsx)(r.PJP.ehp,{})}]}),!B&&(0,n.jsx)(x.I4,{rowHeight:36,numRows:36}),B&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(x.ZK,{tableInstance:A,emptyTableNotice:(0,n.jsx)(p.Z,{}),onRowClick:e=>t("".concat(d.mX,"/").concat(s,"/projects/").concat(P,"/").concat(e.urn,"/"))}),(0,n.jsx)(x.s8,{totalRows:O||0,pageSizes:b,setPageSize:R,onPreviousPageClick:k,isPreviousPageDisabled:z,onNextPageClick:Z,isNextPageDisabled:X,startRange:D,endRange:S}),(0,n.jsx)(g.Z,{dataset:w,onClose:()=>C(void 0)})]})]})}}},function(e){e.O(0,[9682,2888,9774,179],function(){return e(e.s=50481)}),_N_E=e.O()}]);
@@ -1 +1 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[165],{74833:function(e,t,s){var r=s(56127),i=/^\s+/;e.exports=function(e){return e?e.slice(0,r(e)+1).replace(i,""):e}},56127:function(e){var t=/\s/;e.exports=function(e){for(var s=e.length;s--&&t.test(e.charAt(s)););return s}},91936:function(e,t,s){var r=s(74833),i=s(11611),n=s(55193),a=0/0,o=/^[-+]0x[0-9a-f]+$/i,l=/^0b[01]+$/i,c=/^0o[0-7]+$/i,u=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(n(e))return a;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=r(e);var s=l.test(e);return s||c.test(e)?u(e.slice(2),s?2:8):o.test(e)?a:+e}},21865:function(e,t,s){(window.__NEXT_P=window.__NEXT_P||[]).push(["/data-catalog/[systemId]/projects",function(){return s(98791)}])},18225:function(e,t,s){"use strict";var r=s(24246),i=s(87949);t.Z=e=>{let{alignment:t="center",...s}=e;return(0,r.jsx)(i.kCb,{boxSize:"full",align:"center",justify:t,children:(0,r.jsx)(i.$jN,{color:"primary",...s})})}},79609:function(e,t,s){"use strict";s.d(t,{N4:function(){return a},UG:function(){return i},xw:function(){return n}});var r=s(54427);let{useGetCatalogSystemsQuery:i,useGetCatalogProjectsQuery:n,useGetCatalogDatasetsQuery:a}=s(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,r.oM)({name:"dataCatalog",initialState:{page:1,pageSize:50},reducers:{}})},99763:function(e,t,s){"use strict";var r=s(24246),i=s(87949),n=s(79789),a=s(8151),o=s(61099),l=s(7940),c=s(65735);t.Z=e=>{var t;let{resource:s,onClose:u}=e,d=(0,l.G)(s),g=(0,a.u)(s),x=(d===c.D$.FIELD||d===c.D$.TABLE)&&g===a.e.IN_REVIEW;return(0,r.jsxs)(i.dys,{isOpen:!!s,onClose:u,size:"md",children:[(0,r.jsx)(i.P1B,{}),(0,r.jsxs)(i.scA,{"data-testid":"resource-details",children:[(0,r.jsx)(i.OXI,{children:(null==s?void 0:s.name)||(null==s?void 0:s.urn)}),(0,r.jsx)(i.cCv,{}),(0,r.jsxs)(i.Ng0,{children:[(0,r.jsx)(n.cB,{text:"Title",mt:0}),(0,r.jsx)(n.XU,{children:null!==(t=null==s?void 0:s.name)&&void 0!==t?t:null==s?void 0:s.urn}),(null==s?void 0:s.description)&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(n.cB,{text:"Description"}),(0,r.jsx)(n.XU,{children:null==s?void 0:s.description})]}),x&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(n.cB,{text:"Data categories"}),(0,r.jsx)(o.Z,{resource:s})]})]})]})]})}},28976:function(e,t,s){"use strict";var r=s(24246),i=s(87949);t.Z=e=>{let{onHideClick:t,onDetailClick:s}=e;return(0,r.jsxs)(i.v2r,{children:[(0,r.jsx)(i.j2t,{as:i.wpx,size:"small",type:"text",icon:(0,r.jsx)(i.nXP,{transform:"rotate(90deg)"}),className:"w-6 gap-0","data-testid":"actions-menu"}),(0,r.jsxs)(i.qyq,{children:[s&&(0,r.jsx)(i.sNh,{onClick:s,"data-testid":"view-resource-details",children:"View details"}),t&&(0,r.jsx)(i.sNh,{onClick:t,"data-testid":"hide-resource",children:"Hide"})]})]})}},98791:function(e,t,s){"use strict";s.r(t),s.d(t,{default:function(){return N}});var r=s(24246),i=s(86677),n=s(18225),a=s(77213),o=s(77830),l=s(58754),c=s(92222),u=s(59003),d=s(87949),g=s(27378),x=s(47935),p=s(72625),m=s(89200),f=s(5945),j=s(79609),h=s(99763),v=s(28976),y=s(8151);let C={items:[],total:0,page:1,size:50,pages:1},w=()=>(0,r.jsx)(d.gCW,{mt:6,p:10,spacing:4,borderRadius:"base",maxW:"70%","data-testid":"empty-state",alignSelf:"center",margin:"auto",children:(0,r.jsx)(d.gCW,{children:(0,r.jsx)(d.xvT,{fontSize:"md",fontWeight:"600",children:"No resources found"})})}),_=(0,c.Cl)();var R=e=>{let{systemKey:t,monitorConfigIds:s}=e,[n,a]=(0,g.useState)({}),{PAGE_SIZES:l,pageSize:d,setPageSize:R,onPreviousPageClick:b,isPreviousPageDisabled:N,onNextPageClick:D,isNextPageDisabled:E,startRange:P,endRange:S,pageIndex:k,setTotalPages:I}=(0,x.oi)(),{isFetching:T,isLoading:Z,data:z}=(0,j.xw)({page:k,size:d,monitor_config_ids:s}),q=(0,i.useRouter)(),{items:M,total:G,pages:X}=(0,g.useMemo)(()=>null!=z?z:C,[z]);(0,g.useEffect)(()=>{I(X)},[X,I]);let[O,V]=(0,g.useState)(void 0),$=(0,g.useMemo)(()=>[_.accessor(e=>e.name,{id:"name",cell:e=>(0,r.jsx)(m.Z,{resource:e.row.original}),header:"Project"}),_.display({id:"status",cell:e=>{let{row:t}=e;return(0,r.jsx)(f.Z,{status:(0,y.u)(t.original)})},header:"Status"}),_.accessor(e=>e.monitor_config_id,{id:"monitorConfigId",cell:e=>(0,r.jsx)(x.G3,{value:e.getValue()}),header:"Detected by"}),_.accessor(e=>e.description,{id:"description",cell:e=>(0,r.jsx)(x.G3,{value:e.getValue()}),header:"Description"}),_.accessor(e=>e.updated_at,{id:"lastUpdated",cell:e=>(0,r.jsx)(p.Cy,{time:e.getValue()}),header:"Updated",meta:{cellProps:{borderRight:"none"}}}),_.display({id:"actions",cell:e=>{let{row:t}=e;return(0,r.jsx)(v.Z,{onDetailClick:()=>V(t.original)})},size:25,meta:{disableRowClick:!0}})],[]),B=(0,u.b7)({getCoreRowModel:(0,c.sC)(),getGroupedRowModel:(0,c.qe)(),getExpandedRowModel:(0,c.rV)(),manualPagination:!0,columnResizeMode:"onChange",columns:$,data:M,getRowId:e=>e.urn,onRowSelectionChange:a,state:{rowSelection:n}});return Z||T?(0,r.jsx)(x.I4,{rowHeight:36,numRows:36}):(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(x.ZK,{tableInstance:B,emptyTableNotice:(0,r.jsx)(w,{}),onRowClick:e=>q.push("".concat(o.mX,"/").concat(t,"/projects/").concat(e.urn))}),(0,r.jsx)(x.s8,{totalRows:G||0,pageSizes:l,setPageSize:R,onPreviousPageClick:b,isPreviousPageDisabled:N,onNextPageClick:D,isNextPageDisabled:E,startRange:P,endRange:S}),(0,r.jsx)(h.Z,{resource:O,onClose:()=>V(void 0)})]})},b=s(1315),N=()=>{var e;let{query:t}=(0,i.useRouter)(),s=t.systemId,c=t.monitor_config_ids,{data:u,isLoading:d}=(0,b.rn)(s);return d?(0,r.jsx)(n.Z,{}):(0,r.jsxs)(a.Z,{title:"Data catalog",children:[(0,r.jsx)(l.Z,{heading:"Data catalog",breadcrumbItems:[{title:"All systems",href:o.mX},{title:null!==(e=null==u?void 0:u.name)&&void 0!==e?e:null==u?void 0:u.fides_key}]}),(0,r.jsx)(R,{systemKey:s,monitorConfigIds:c})]})}}},function(e){e.O(0,[8765,9278,5163,9682,1099,2888,9774,179],function(){return e(e.s=21865)}),_N_E=e.O()}]);
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[165],{74833:function(e,t,s){var r=s(56127),i=/^\s+/;e.exports=function(e){return e?e.slice(0,r(e)+1).replace(i,""):e}},56127:function(e){var t=/\s/;e.exports=function(e){for(var s=e.length;s--&&t.test(e.charAt(s)););return s}},91936:function(e,t,s){var r=s(74833),i=s(11611),n=s(55193),a=0/0,o=/^[-+]0x[0-9a-f]+$/i,l=/^0b[01]+$/i,c=/^0o[0-7]+$/i,u=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(n(e))return a;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=r(e);var s=l.test(e);return s||c.test(e)?u(e.slice(2),s?2:8):o.test(e)?a:+e}},21865:function(e,t,s){(window.__NEXT_P=window.__NEXT_P||[]).push(["/data-catalog/[systemId]/projects",function(){return s(98791)}])},18225:function(e,t,s){"use strict";var r=s(24246),i=s(98227);t.Z=e=>{let{alignment:t="center",...s}=e;return(0,r.jsx)(i.kCb,{boxSize:"full",align:"center",justify:t,children:(0,r.jsx)(i.$jN,{color:"primary",...s})})}},79609:function(e,t,s){"use strict";s.d(t,{N4:function(){return a},UG:function(){return i},xw:function(){return n}});var r=s(54427);let{useGetCatalogSystemsQuery:i,useGetCatalogProjectsQuery:n,useGetCatalogDatasetsQuery:a}=s(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,r.oM)({name:"dataCatalog",initialState:{page:1,pageSize:50},reducers:{}})},99763:function(e,t,s){"use strict";var r=s(24246),i=s(98227),n=s(79789),a=s(8151),o=s(61099),l=s(7940),c=s(65735);t.Z=e=>{var t;let{resource:s,onClose:u}=e,d=(0,l.G)(s),g=(0,a.u)(s),x=(d===c.D$.FIELD||d===c.D$.TABLE)&&g===a.e.IN_REVIEW;return(0,r.jsxs)(i.dys,{isOpen:!!s,onClose:u,size:"md",children:[(0,r.jsx)(i.P1B,{}),(0,r.jsxs)(i.scA,{"data-testid":"resource-details",children:[(0,r.jsx)(i.OXI,{children:(null==s?void 0:s.name)||(null==s?void 0:s.urn)}),(0,r.jsx)(i.cCv,{}),(0,r.jsxs)(i.Ng0,{children:[(0,r.jsx)(n.cB,{text:"Title",mt:0}),(0,r.jsx)(n.XU,{children:null!==(t=null==s?void 0:s.name)&&void 0!==t?t:null==s?void 0:s.urn}),(null==s?void 0:s.description)&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(n.cB,{text:"Description"}),(0,r.jsx)(n.XU,{children:null==s?void 0:s.description})]}),x&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(n.cB,{text:"Data categories"}),(0,r.jsx)(o.Z,{resource:s})]})]})]})]})}},28976:function(e,t,s){"use strict";var r=s(24246),i=s(98227);t.Z=e=>{let{onHideClick:t,onDetailClick:s}=e;return(0,r.jsxs)(i.v2r,{children:[(0,r.jsx)(i.j2t,{as:i.wpx,size:"small",type:"text",icon:(0,r.jsx)(i.nXP,{transform:"rotate(90deg)"}),className:"w-6 gap-0","data-testid":"actions-menu"}),(0,r.jsxs)(i.qyq,{children:[s&&(0,r.jsx)(i.sNh,{onClick:s,"data-testid":"view-resource-details",children:"View details"}),t&&(0,r.jsx)(i.sNh,{onClick:t,"data-testid":"hide-resource",children:"Hide"})]})]})}},98791:function(e,t,s){"use strict";s.r(t),s.d(t,{default:function(){return N}});var r=s(24246),i=s(86677),n=s(18225),a=s(77213),o=s(77830),l=s(58754),c=s(92222),u=s(59003),d=s(98227),g=s(27378),x=s(47935),p=s(72625),m=s(89200),f=s(5945),j=s(79609),h=s(99763),v=s(28976),y=s(8151);let C={items:[],total:0,page:1,size:50,pages:1},w=()=>(0,r.jsx)(d.gCW,{mt:6,p:10,spacing:4,borderRadius:"base",maxW:"70%","data-testid":"empty-state",alignSelf:"center",margin:"auto",children:(0,r.jsx)(d.gCW,{children:(0,r.jsx)(d.xvT,{fontSize:"md",fontWeight:"600",children:"No resources found"})})}),_=(0,c.Cl)();var R=e=>{let{systemKey:t,monitorConfigIds:s}=e,[n,a]=(0,g.useState)({}),{PAGE_SIZES:l,pageSize:d,setPageSize:R,onPreviousPageClick:b,isPreviousPageDisabled:N,onNextPageClick:D,isNextPageDisabled:E,startRange:P,endRange:S,pageIndex:k,setTotalPages:I}=(0,x.oi)(),{isFetching:T,isLoading:Z,data:z}=(0,j.xw)({page:k,size:d,monitor_config_ids:s}),q=(0,i.useRouter)(),{items:M,total:G,pages:X}=(0,g.useMemo)(()=>null!=z?z:C,[z]);(0,g.useEffect)(()=>{I(X)},[X,I]);let[O,V]=(0,g.useState)(void 0),$=(0,g.useMemo)(()=>[_.accessor(e=>e.name,{id:"name",cell:e=>(0,r.jsx)(m.Z,{resource:e.row.original}),header:"Project"}),_.display({id:"status",cell:e=>{let{row:t}=e;return(0,r.jsx)(f.Z,{status:(0,y.u)(t.original)})},header:"Status"}),_.accessor(e=>e.monitor_config_id,{id:"monitorConfigId",cell:e=>(0,r.jsx)(x.G3,{value:e.getValue()}),header:"Detected by"}),_.accessor(e=>e.description,{id:"description",cell:e=>(0,r.jsx)(x.G3,{value:e.getValue()}),header:"Description"}),_.accessor(e=>e.updated_at,{id:"lastUpdated",cell:e=>(0,r.jsx)(p.Cy,{time:e.getValue()}),header:"Updated",meta:{cellProps:{borderRight:"none"}}}),_.display({id:"actions",cell:e=>{let{row:t}=e;return(0,r.jsx)(v.Z,{onDetailClick:()=>V(t.original)})},size:25,meta:{disableRowClick:!0}})],[]),B=(0,u.b7)({getCoreRowModel:(0,c.sC)(),getGroupedRowModel:(0,c.qe)(),getExpandedRowModel:(0,c.rV)(),manualPagination:!0,columnResizeMode:"onChange",columns:$,data:M,getRowId:e=>e.urn,onRowSelectionChange:a,state:{rowSelection:n}});return Z||T?(0,r.jsx)(x.I4,{rowHeight:36,numRows:36}):(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(x.ZK,{tableInstance:B,emptyTableNotice:(0,r.jsx)(w,{}),onRowClick:e=>q.push("".concat(o.mX,"/").concat(t,"/projects/").concat(e.urn))}),(0,r.jsx)(x.s8,{totalRows:G||0,pageSizes:l,setPageSize:R,onPreviousPageClick:b,isPreviousPageDisabled:N,onNextPageClick:D,isNextPageDisabled:E,startRange:P,endRange:S}),(0,r.jsx)(h.Z,{resource:O,onClose:()=>V(void 0)})]})},b=s(1315),N=()=>{var e;let{query:t}=(0,i.useRouter)(),s=t.systemId,c=t.monitor_config_ids,{data:u,isLoading:d}=(0,b.rn)(s);return d?(0,r.jsx)(n.Z,{}):(0,r.jsxs)(a.Z,{title:"Data catalog",children:[(0,r.jsx)(l.Z,{heading:"Data catalog",breadcrumbItems:[{title:"All systems",href:o.mX},{title:null!==(e=null==u?void 0:u.name)&&void 0!==e?e:null==u?void 0:u.fides_key}]}),(0,r.jsx)(R,{systemKey:s,monitorConfigIds:c})]})}}},function(e){e.O(0,[8765,9278,5163,9682,1099,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([[5158],{57300:function(e,t,s){(window.__NEXT_P=window.__NEXT_P||[]).push(["/data-catalog/[systemId]/resources",function(){return s(21174)}])},79609:function(e,t,s){"use strict";s.d(t,{N4:function(){return o},UG:function(){return i},xw:function(){return n}});var a=s(54427);let{useGetCatalogSystemsQuery:i,useGetCatalogProjectsQuery:n,useGetCatalogDatasetsQuery:o}=s(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,a.oM)({name:"dataCatalog",initialState:{page:1,pageSize:50},reducers:{}})},98800:function(e,t,s){"use strict";var a=s(24246),i=s(87949),n=s(79789);t.Z=e=>{var t;let{dataset:s,onClose:o}=e;return(0,a.jsxs)(i.dys,{isOpen:!!s,onClose:o,size:"md",children:[(0,a.jsx)(i.P1B,{}),(0,a.jsxs)(i.scA,{children:[(0,a.jsx)(i.OXI,{children:(null==s?void 0:s.name)||(null==s?void 0:s.urn)}),(0,a.jsx)(i.cCv,{}),(0,a.jsxs)(i.Ng0,{children:[(0,a.jsx)(n.cB,{text:"Title",mt:0}),(0,a.jsx)(n.XU,{children:null!==(t=null==s?void 0:s.name)&&void 0!==t?t:null==s?void 0:s.urn}),(null==s?void 0:s.description)&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(n.cB,{text:"Description"}),(0,a.jsx)(n.XU,{children:null==s?void 0:s.description})]})]})]})]})}},81406:function(e,t,s){"use strict";var a=s(24246),i=s(87949);t.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!"})]})},69172:function(e,t,s){"use strict";var a=s(24246),i=s(92222),n=s(87949),o=s(27378),r=s(47935),l=s(72625),d=s(89200),c=s(5945),u=s(8151);let g=(0,i.Cl)(),m=e=>{let{onDetailClick:t}=e;return(0,a.jsxs)(n.v2r,{children:[(0,a.jsx)(n.j2t,{as:n.wpx,size:"small",type:"text",icon:(0,a.jsx)(n.nXP,{transform:"rotate(90deg)"}),className:"w-6 gap-0","data-testid":"dataset-actions"}),(0,a.jsx)(n.qyq,{children:(0,a.jsx)(n.sNh,{"data-testid":"view-dataset-details",onClick:t,children:"View details"})})]})};t.Z=e=>{let{onDetailClick:t}=e;return(0,o.useMemo)(()=>[g.accessor(e=>e.name,{id:"name",cell:e=>(0,a.jsx)(d.Z,{resource:e.row.original}),header:"Dataset"}),g.display({id:"status",cell:e=>{let{row:t}=e;return(0,a.jsx)(c.Z,{status:(0,u.u)(t.original)})},header:"Status"}),g.accessor(e=>e.description,{id:"description",cell:e=>(0,a.jsx)(r.G3,{value:e.getValue()}),header:"Description"}),g.accessor(e=>e.updated_at,{id:"lastUpdated",cell:e=>(0,a.jsx)(l.Cy,{time:e.getValue()}),header:"Updated"}),g.display({id:"actions",cell:e=>{let{row:s}=e;return(0,a.jsx)(m,{onDetailClick:()=>t(s.original)})},size:25,meta:{disableRowClick:!0}})],[t])}},21174:function(e,t,s){"use strict";s.r(t);var a=s(24246),i=s(59003),n=s(92222),o=s(86677),r=s(27378),l=s(77213),d=s(77830),c=s(58754),u=s(47935),g=s(79609),m=s(98800),x=s(81406),p=s(69172),j=s(1315);let h={items:[],total:0,page:1,size:50,pages:1};t.default=()=>{let{query:e,push:t}=(0,o.useRouter)(),s=e.systemId,v=e.monitor_config_ids,{data:f,isLoading:y}=(0,j.rn)(s),{PAGE_SIZES:C,pageSize:w,setPageSize:_,onPreviousPageClick:N,isPreviousPageDisabled:R,onNextPageClick:P,isNextPageDisabled:b,startRange:D,endRange:S,pageIndex:T,setTotalPages:k}=(0,u.oi)(),{isFetching:z,isLoading:E,data:Z}=(0,g.N4)({page:T,size:w,monitor_config_ids:v}),{items:q,total:M,pages:X}=(0,r.useMemo)(()=>null!=Z?Z:h,[Z]);(0,r.useEffect)(()=>{k(X)},[X,k]);let[G,I]=(0,r.useState)(void 0),U=(0,p.Z)({onDetailClick:e=>I(e)}),O=(0,i.b7)({getCoreRowModel:(0,n.sC)(),getGroupedRowModel:(0,n.qe)(),getExpandedRowModel:(0,n.rV)(),columns:U,manualPagination:!0,data:q,columnResizeMode:"onChange"}),V=!E&&!y&&!z;return(0,a.jsxs)(l.Z,{title:"Data catalog",children:[(0,a.jsx)(c.Z,{heading:"Data catalog",breadcrumbItems:[{title:"All systems",href:d.mX},{title:(null==f?void 0:f.name)||s}]}),!V&&(0,a.jsx)(u.I4,{rowHeight:36,numRows:36}),V&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(u.ZK,{tableInstance:O,emptyTableNotice:(0,a.jsx)(x.Z,{}),onRowClick:e=>t("".concat(d.mX,"/").concat(s,"/resources/").concat(e.urn))}),(0,a.jsx)(u.s8,{totalRows:M||0,pageSizes:C,setPageSize:_,onPreviousPageClick:N,isPreviousPageDisabled:R,onNextPageClick:P,isNextPageDisabled:b,startRange:D,endRange:S}),(0,a.jsx)(m.Z,{dataset:G,onClose:()=>I(void 0)})]})]})}}},function(e){e.O(0,[9682,2888,9774,179],function(){return e(e.s=57300)}),_N_E=e.O()}]);
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5158],{57300:function(e,t,s){(window.__NEXT_P=window.__NEXT_P||[]).push(["/data-catalog/[systemId]/resources",function(){return s(21174)}])},79609:function(e,t,s){"use strict";s.d(t,{N4:function(){return o},UG:function(){return i},xw:function(){return n}});var a=s(54427);let{useGetCatalogSystemsQuery:i,useGetCatalogProjectsQuery:n,useGetCatalogDatasetsQuery:o}=s(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,a.oM)({name:"dataCatalog",initialState:{page:1,pageSize:50},reducers:{}})},98800:function(e,t,s){"use strict";var a=s(24246),i=s(98227),n=s(79789);t.Z=e=>{var t;let{dataset:s,onClose:o}=e;return(0,a.jsxs)(i.dys,{isOpen:!!s,onClose:o,size:"md",children:[(0,a.jsx)(i.P1B,{}),(0,a.jsxs)(i.scA,{children:[(0,a.jsx)(i.OXI,{children:(null==s?void 0:s.name)||(null==s?void 0:s.urn)}),(0,a.jsx)(i.cCv,{}),(0,a.jsxs)(i.Ng0,{children:[(0,a.jsx)(n.cB,{text:"Title",mt:0}),(0,a.jsx)(n.XU,{children:null!==(t=null==s?void 0:s.name)&&void 0!==t?t:null==s?void 0:s.urn}),(null==s?void 0:s.description)&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(n.cB,{text:"Description"}),(0,a.jsx)(n.XU,{children:null==s?void 0:s.description})]})]})]})]})}},81406:function(e,t,s){"use strict";var a=s(24246),i=s(98227);t.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!"})]})},69172:function(e,t,s){"use strict";var a=s(24246),i=s(92222),n=s(98227),o=s(27378),r=s(47935),l=s(72625),d=s(89200),c=s(5945),u=s(8151);let g=(0,i.Cl)(),m=e=>{let{onDetailClick:t}=e;return(0,a.jsxs)(n.v2r,{children:[(0,a.jsx)(n.j2t,{as:n.wpx,size:"small",type:"text",icon:(0,a.jsx)(n.nXP,{transform:"rotate(90deg)"}),className:"w-6 gap-0","data-testid":"dataset-actions"}),(0,a.jsx)(n.qyq,{children:(0,a.jsx)(n.sNh,{"data-testid":"view-dataset-details",onClick:t,children:"View details"})})]})};t.Z=e=>{let{onDetailClick:t}=e;return(0,o.useMemo)(()=>[g.accessor(e=>e.name,{id:"name",cell:e=>(0,a.jsx)(d.Z,{resource:e.row.original}),header:"Dataset"}),g.display({id:"status",cell:e=>{let{row:t}=e;return(0,a.jsx)(c.Z,{status:(0,u.u)(t.original)})},header:"Status"}),g.accessor(e=>e.description,{id:"description",cell:e=>(0,a.jsx)(r.G3,{value:e.getValue()}),header:"Description"}),g.accessor(e=>e.updated_at,{id:"lastUpdated",cell:e=>(0,a.jsx)(l.Cy,{time:e.getValue()}),header:"Updated"}),g.display({id:"actions",cell:e=>{let{row:s}=e;return(0,a.jsx)(m,{onDetailClick:()=>t(s.original)})},size:25,meta:{disableRowClick:!0}})],[t])}},21174:function(e,t,s){"use strict";s.r(t);var a=s(24246),i=s(59003),n=s(92222),o=s(86677),r=s(27378),l=s(77213),d=s(77830),c=s(58754),u=s(47935),g=s(79609),m=s(98800),x=s(81406),p=s(69172),j=s(1315);let h={items:[],total:0,page:1,size:50,pages:1};t.default=()=>{let{query:e,push:t}=(0,o.useRouter)(),s=e.systemId,v=e.monitor_config_ids,{data:f,isLoading:y}=(0,j.rn)(s),{PAGE_SIZES:C,pageSize:w,setPageSize:_,onPreviousPageClick:N,isPreviousPageDisabled:R,onNextPageClick:P,isNextPageDisabled:b,startRange:D,endRange:S,pageIndex:T,setTotalPages:k}=(0,u.oi)(),{isFetching:z,isLoading:E,data:Z}=(0,g.N4)({page:T,size:w,monitor_config_ids:v}),{items:q,total:M,pages:X}=(0,r.useMemo)(()=>null!=Z?Z:h,[Z]);(0,r.useEffect)(()=>{k(X)},[X,k]);let[G,I]=(0,r.useState)(void 0),U=(0,p.Z)({onDetailClick:e=>I(e)}),O=(0,i.b7)({getCoreRowModel:(0,n.sC)(),getGroupedRowModel:(0,n.qe)(),getExpandedRowModel:(0,n.rV)(),columns:U,manualPagination:!0,data:q,columnResizeMode:"onChange"}),V=!E&&!y&&!z;return(0,a.jsxs)(l.Z,{title:"Data catalog",children:[(0,a.jsx)(c.Z,{heading:"Data catalog",breadcrumbItems:[{title:"All systems",href:d.mX},{title:(null==f?void 0:f.name)||s}]}),!V&&(0,a.jsx)(u.I4,{rowHeight:36,numRows:36}),V&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(u.ZK,{tableInstance:O,emptyTableNotice:(0,a.jsx)(x.Z,{}),onRowClick:e=>t("".concat(d.mX,"/").concat(s,"/resources/").concat(e.urn))}),(0,a.jsx)(u.s8,{totalRows:M||0,pageSizes:C,setPageSize:_,onPreviousPageClick:N,isPreviousPageDisabled:R,onNextPageClick:P,isNextPageDisabled:b,startRange:D,endRange:S}),(0,a.jsx)(m.Z,{dataset:G,onClose:()=>I(void 0)})]})]})}}},function(e){e.O(0,[9682,2888,9774,179],function(){return e(e.s=57300)}),_N_E=e.O()}]);
@@ -1 +1 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4231],{74833:function(e,t,i){var n=i(56127),s=/^\s+/;e.exports=function(e){return e?e.slice(0,n(e)+1).replace(s,""):e}},56632:function(e,t,i){var n=i(89278),s=i(80068),a=i(50098);e.exports=function(e){return function(t,i,r){var o=Object(t);if(!s(t)){var l=n(i,3);t=a(t),i=function(e){return l(o[e],e,o)}}var d=e(t,i,r);return d>-1?o[l?t[d]:d]:void 0}}},56127:function(e){var t=/\s/;e.exports=function(e){for(var i=e.length;i--&&t.test(e.charAt(i)););return i}},64925:function(e,t,i){var n=i(56632)(i(66259));e.exports=n},66259:function(e,t,i){var n=i(95372),s=i(89278),a=i(47991),r=Math.max;e.exports=function(e,t,i){var o=null==e?0:e.length;if(!o)return -1;var l=null==i?0:a(i);return l<0&&(l=r(o+l,0)),n(e,s(t,3),l)}},94919:function(e,t,i){var n=i(91936),s=1/0;e.exports=function(e){return e?(e=n(e))===s||e===-s?(e<0?-1:1)*17976931348623157e292:e==e?e:0:0===e?e:0}},47991:function(e,t,i){var n=i(94919);e.exports=function(e){var t=n(e),i=t%1;return t==t?i?t-i:t:0}},91936:function(e,t,i){var n=i(74833),s=i(11611),a=i(55193),r=0/0,o=/^[-+]0x[0-9a-f]+$/i,l=/^0b[01]+$/i,d=/^0o[0-7]+$/i,c=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(a(e))return r;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 i=l.test(e);return i||d.test(e)?c(e.slice(2),i?2:8):o.test(e)?r:+e}},66248:function(e,t,i){(window.__NEXT_P=window.__NEXT_P||[]).push(["/data-catalog",function(){return i(99375)}])},77213:function(e,t,i){"use strict";i.d(t,{Z:function(){return p}});var n=i(24246),s=i(87949),a=i(88038),r=i.n(a),o=i(86677);i(27378);var l=i(25980),d=i(90867),c=i(42478),u=i(77830),g=()=>{let e=(0,o.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(u.AD)},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."," "]})]})})},p=e=>{let{children:t,title:i,padded:a=!0,mainProps:u}=e,p=(0,l.hz)(),m=(0,o.useRouter)(),f="/privacy-requests"===m.pathname||"/datastore-connection"===m.pathname,x=!(p.flags.messagingConfiguration&&f),{data:v}=(0,c.JE)(void 0,{skip:x}),{data:h}=(0,d.PW)(void 0,{skip:x}),y=p.flags.messagingConfiguration&&(!v||!h)&&f;return(0,n.jsxs)(s.kCb,{"data-testid":i,direction:"column",h:"100vh",children:[(0,n.jsxs)(r(),{children:[(0,n.jsxs)("title",{children:["Fides Admin UI - ",i]}),(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:a?6:0,px:a?10:0,h:a?"calc(100% - 48px)":"full",flex:1,minWidth:0,overflow:"auto",...u,children:[y?(0,n.jsx)(g,{}):null,t]})]})}},58754:function(e,t,i){"use strict";var n=i(24246),s=i(87949),a=i(70788);t.Z=e=>{let{heading:t,breadcrumbItems:i,isSticky:r=!0,children:o,rightContent:l,style:d,...c}=e;return(0,n.jsxs)("div",{...c,style:r?{position:"sticky",top:"-24px",paddingTop:"24px",paddingBottom:"24px",paddingLeft:"40px",marginLeft:"-40px",paddingRight:"40px",marginRight:"-40px",marginTop:"-24px",left:0,zIndex:20,backgroundColor:"white",...d}:{paddingBottom:"24px",...d},children:[(0,n.jsxs)(s.jqI,{justify:"space-between",children:["string"==typeof t?(0,n.jsx)(s.lQT,{className:i||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})]}),!!i&&(0,n.jsx)(a.m,{className:o?"pb-4":void 0,items:i,"data-testid":"page-breadcrumb"}),o]})}},79789:function(e,t,i){"use strict";i.d(t,{Hn:function(){return o},XU:function(){return r},Z5:function(){return l},aG:function(){return u},cB:function(){return a},hX:function(){return c},vQ:function(){return d}});var n=i(24246),s=i(87949);let a=e=>{let{text:t,...i}=e;return(0,n.jsx)(s.X6q,{fontSize:"sm",mt:4,mb:1,...i,children:t})},r=e=>{let{children:t}=e;return(0,n.jsx)(s.xvT,{fontSize:"14px",mb:4,children:t})},o=e=>{let{children:t,href:i}=e;return(0,n.jsx)(s.rUS,{href:i,textDecoration:"underline",isExternal:!0,children:t})},l=e=>{let{children:t}=e;return(0,n.jsx)(s.QI$,{fontSize:"14px",mb:4,children:t})},d=e=>{let{children:t}=e;return(0,n.jsx)(s.GSI,{fontSize:"14px",mb:4,ml:6,children:t})},c=e=>{let{children:t}=e;return(0,n.jsx)(s.EKh,{display:"block",whiteSpace:"pre",p:4,mb:4,overflowX:"scroll",children:t})},u=e=>{let{data:t}=e;return(0,n.jsxs)(s.iA_,{fontSize:"14px",children:[(0,n.jsx)(s.hrZ,{children:(0,n.jsxs)(s.Tr,{children:[(0,n.jsx)(s.Th,{children:"Permission"}),(0,n.jsx)(s.Th,{children:"Description"})]})}),(0,n.jsx)(s.p3B,{children:t.map(e=>(0,n.jsxs)(s.Tr,{children:[(0,n.jsx)(s.Td,{children:(0,n.jsx)(s.Vp9,{children:e.permission})}),(0,n.jsx)(s.Td,{children:e.description})]},e.permission))})]})}},83099:function(e,t,i){"use strict";var n=i(24246),s=i(79283),a=i(34929);t.Z=e=>{let{selectedTaxonomies:t,showDisabled:i=!1,...r}=e,{getDataUseDisplayNameProps:o,getDataUses:l}=(0,a.Z)(),d=(i?l():l().filter(e=>e.active)).filter(e=>!(null==t?void 0:t.includes(e.fides_key))).map(e=>{let{name:t,primaryName:i}=o(e.fides_key);return{value:e.fides_key,name:t,primaryName:i,description:e.description||""}});return(0,n.jsx)(s.l,{options:d,...r})}},79283:function(e,t,i){"use strict";i.d(t,{l:function(){return c}});var n=i(24246),s=i(87949),a=i(72707),r=i.n(a);let o=e=>{let{data:{formattedTitle:t,description:i,name:a,primaryName:r}}=e;return(0,n.jsxs)(s.jqI,{gap:12,title:"".concat(t," - ").concat(i),children:[(0,n.jsxs)("div",{children:[(0,n.jsx)("strong",{children:r||a}),r&&": ".concat(a)]}),(0,n.jsx)("em",{children:i})]})},l=e=>"options"in e&&Array.isArray(e.options),d=e=>({...e,className:r().option,formattedTitle:e.formattedTitle||[e.primaryName,e.name].filter(e=>e).join(": ")}),c=e=>{let{options:t,...i}=e,a=null==t?void 0:t.map(e=>l(e)?{...e,options:e.options.map(d)}:d(e));return(0,n.jsx)(s.WPr,{options:a,filterOption:(e,t)=>{var i,n;return(null==t?void 0:null===(i=t.formattedTitle)||void 0===i?void 0:i.toLowerCase().includes(e.toLowerCase()))||(null==t?void 0:null===(n=t.value)||void 0===n?void 0:n.toLowerCase().includes(e.toLowerCase()))||!1},optionFilterProp:"label",autoFocus:!0,variant:"borderless",optionRender:o,styles:{popup:{root:{minWidth:"500px"}}},className:"w-full p-0","data-testid":"taxonomy-select",...i})}},97181:function(e,t,i){"use strict";i.d(t,{d:function(){return d}});var n=i(24246),s=i(87949),a=i(34090),r=i(27378),o=i(46238),l=i(40324);let d=e=>{let{name:t,label:i,labelProps:d,tooltip:c,isRequired:u,layout:g="inline",helperText:p,...m}=e,[f,x,{setValue:v}]=(0,a.U$)(t),h=!!(x.touched&&x.error),[y,j]=(0,r.useState)("");f.value||"tags"!==m.mode&&"multiple"!==m.mode||(f.value=[]),"tags"===m.mode&&"string"==typeof f.value&&(f.value=[f.value]);let b="tags"===m.mode?(e,t)=>e?e.value!==y||f.value.includes(y)?m.optionRender?m.optionRender(e,t):e.label:'Create "'.concat(y,'"'):void 0:m.optionRender||void 0,_=e=>{j(e),m.onSearch&&m.onSearch(e)},C=(e,t)=>{v(e),m.onChange&&m.onChange(e,t)};return"inline"===g?(0,n.jsx)(s.NIc,{isInvalid:h,isRequired:u,children:(0,n.jsxs)(s.rjZ,{templateColumns:i?"1fr 3fr":"1fr",children:[i?(0,n.jsx)(l.__,{htmlFor:m.id||t,...d,children:i}):null,(0,n.jsxs)(s.jqI,{align:"center",children:[(0,n.jsxs)(s.jqI,{vertical:!0,flex:1,className:"mr-2",children:[(0,n.jsx)(s.WPr,{...f,id:m.id||t,"data-testid":"controlled-select-".concat(f.name),...m,optionRender:b,onSearch:"tags"===m.mode?_:void 0,onChange:C,value:f.value||void 0,status:h?"error":void 0}),p&&(0,n.jsx)(s.Q6r,{children:p}),(0,n.jsx)(l.Bc,{isInvalid:h,message:x.error,fieldName:f.name})]}),(0,n.jsx)(o.b,{label:c,className:h?"mt-2 self-start":void 0})]})]})}):(0,n.jsx)(s.NIc,{isInvalid:h,isRequired:u,children:(0,n.jsxs)(s.gCW,{alignItems:"start",children:[(0,n.jsxs)(s.jqI,{align:"center",children:[i?(0,n.jsx)(l.__,{htmlFor:m.id||t,fontSize:"xs",my:0,mr:1,...d,children:i}):null,(0,n.jsx)(o.b,{label:c})]}),(0,n.jsx)(s.WPr,{...f,id:m.id||t,"data-testid":"controlled-select-".concat(f.name),...m,optionRender:b,onSearch:"tags"===m.mode?_:void 0,onChange:C,value:f.value||void 0,status:h?"error":void 0}),p&&(0,n.jsx)(s.Q6r,{style:{marginTop:0},children:p}),(0,n.jsx)(l.Bc,{isInvalid:h,message:x.error,fieldName:f.name})]})})}},34929:function(e,t,i){"use strict";var n=i(24246),s=i(64925),a=i.n(s),r=i(27378),o=i(16134),l=i(30002),d=i(28079),c=i(57072);let u=()=>{let{isLoading:e}=(0,d.fd)(),t=(0,o.C)(d.U3),{isLoading:i}=(0,c.MO)(),n=(0,o.C)(c.qb),{isLoading:s}=(0,l.te)();return{dataUses:t,dataSubjects:(0,o.C)(l.ZL),dataCategories:n,isLoading:e||i||s}};t.Z=()=>{let{dataUses:e,dataCategories:t,dataSubjects:i,isLoading:s}=u(),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 i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,n=t(e);if(!n)return{};let s=t(o(e,i)),a=!!n.parent_key;return{name:n.name||void 0,primaryName:a&&(null==s?void 0:s.name)!==n.name&&(null==s?void 0:s.name)||void 0}},d=function(e,t){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,{name:s,primaryName:a}=l(e,t,i);return s?a?(0,n.jsxs)(r.Fragment,{children:[(0,n.jsxs)("strong",{children:[a,":"]})," ",s]},e):(0,n.jsx)("strong",{children:s},e):e},c=t=>a()(e,{fides_key:t}),g=e=>a()(t,{fides_key:e}),p=e=>a()(i,{fides_key:e});return{getDataUses:()=>e,getDataUseByKey:c,getDataUseDisplayName:e=>d(e,c,1),getDataUseDisplayNameProps:e=>l(e,c,1),getDataCategories:()=>t,getDataCategoryByKey:g,getDataCategoryDisplayName:e=>d(e,g,2),getDataCategoryDisplayNameProps:e=>l(e,g,2),getDataSubjects:()=>i,getDataSubjectByKey:p,getDataSubjectDisplayName:e=>{let t=p(e);return t?t.name:e},getPrimaryKey:o,isLoading:s}}},8133:function(e,t,i){"use strict";var n=i(24246),s=i(87949);t.Z=e=>{let{title:t,children:i,isOpen:a,onClose:r,modalContentProps:o,showCloseButton:l=!1,footer:d,...c}=e;return(0,n.jsxs)(s.u_l,{isOpen:a,onClose:r,isCentered:!0,scrollBehavior:"inside",size:"xl",id:"add-modal",...c,children:[(0,n.jsx)(s.ZAr,{}),(0,n.jsxs)(s.hzk,{textAlign:"left",p:0,"data-testid":"add-modal-content",...o,children:[l&&(0,n.jsx)(s.olH,{}),(0,n.jsx)(s.xBx,{p:0,children:(0,n.jsx)(s.xuv,{backgroundColor:"gray.50",px:6,py:4,border:"1px",borderColor:"gray.200",borderTopRadius:6,display:"flex",justifyContent:"space-between",alignItems:"center",children:(0,n.jsx)(s.X6q,{as:"h3",size:"sm",children:t})})}),(0,n.jsx)(s.fef,{pb:4,overflow:"auto",children:i}),d&&(0,n.jsx)(s.mzw,{children:d})]})]})}},70788:function(e,t,i){"use strict";i.d(t,{m:function(){return d}});var n=i(24246),s=i(87949),a=i(79894),r=i.n(a),o=i(27378);let{Text:l}=s.AntTypography,d=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},d=o.onClick&&!o.href;return("string"==typeof o.title&&(o.title=(0,n.jsx)(l,{style:{color:"inherit",maxWidth:a?void 0:400},ellipsis:!a,id:a?"breadcrumb-current-page":void 0,children:o.title})),d)?o.title=(0,n.jsx)(s.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)(r(),{href:o.href,className:"ant-breadcrumb-link",children:o.title}),delete o.href)),o}),[t]);return(0,n.jsx)(s.zrq,{items:a,...i})}},79609:function(e,t,i){"use strict";i.d(t,{N4:function(){return r},UG:function(){return s},xw:function(){return a}});var n=i(54427);let{useGetCatalogSystemsQuery:s,useGetCatalogProjectsQuery:a,useGetCatalogDatasetsQuery:r}=i(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,n.oM)({name:"dataCatalog",initialState:{page:1,pageSize:50},reducers:{}})},81406:function(e,t,i){"use strict";var n=i(24246),s=i(87949);t.Z=()=>(0,n.jsxs)(s.gCW,{mt:6,p:10,spacing:4,borderRadius:"base",maxW:"70%","data-testid":"empty-state",alignSelf:"center",margin:"auto",children:[(0,n.jsx)(s.xvT,{fontSize:"md",fontWeight:"600",children:"No resources found"}),(0,n.jsx)(s.xvT,{fontSize:"sm",children:"You're up to date!"})]})},26183:function(e,t,i){"use strict";var n=i(24246);i(27378),t.Z=e=>{let{children:t,className:i,...s}=e;return(0,n.jsx)("div",{className:"relative flex w-full flex-wrap items-center gap-2 overflow-x-auto py-2 ".concat(i||""),...s,children:t})}},3765:function(e,t,i){"use strict";var n=i(87949),s=i(812),a=i(46628),r=i(32885),o=i(1315),l=i(65735),d=i(31883);let c=(e,t)=>{let i=[],n=[];return Object.entries(e).forEach(e=>{let[s,a]=e;a?i.push({id:s,value:a,resource_id:t,custom_field_definition_id:s}):n.push(s)}),{upsert:i,delete:n,resource_type:l.P6.PRIVACY_DECLARATION,resource_id:t}};t.Z=e=>{let t=(0,n.pmc)(),[i]=(0,o.qQ)(),[l]=(0,r._D)(),u=i=>!!e.privacy_declarations.find(e=>e.data_use===i.data_use&&e.name===i.name)&&(t((0,a.Vo)("A declaration already exists with that data use in this system. Please supply a different data use.")),!0),g=e=>{let{systemResult:i,customFieldsResult:n,isDelete:r}=e;if((0,d.D4)(i)){let e=(0,s.e$)(i.error,"An unexpected error occurred while updating the system. Please try again.");t((0,a.Vo)(e));return}if(n&&(0,d.D4)(n)){let e=(0,s.e$)(n.error,"Data use was updated, but an error occurred while updating custom fields. Please try again.");t((0,a.Vo)(e));return}return t((0,a.t5)(r?"Data use deleted":"Data use saved")),i.data.privacy_declarations},p=async(t,n,s,a)=>{let r;let o=t.map(e=>{var t;return{...e,name:null!==(t=e.name)&&void 0!==t?t:""}}),d={...e,privacy_declarations:o},u=await i(d);if(s&&a){var p,m;let e=null==u?void 0:null===(m=u.data)||void 0===m?void 0:null===(p=m.privacy_declarations)||void 0===p?void 0:p.find(e=>e.data_use===a);if(e){let t=c(s,e.id);r=await l(t)}}return g({systemResult:u,customFieldsResult:r,isDelete:n})};return{createDataUse:async i=>{if(u(i))return;let{customFieldValues:n,...s}=i;return t.closeAll(),p([...e.privacy_declarations,s],!1,n,s.data_use)},updateDataUse:async(t,i)=>{if(i.id!==t.id&&u(i))return;let{customFieldValues:n,...s}=i;return p(e.privacy_declarations.map(e=>e.id===t.id?s:e),!1,n,s.data_use)},deleteDataUse:async t=>p(e.privacy_declarations.filter(e=>e.id!==t.id),!0),deleteDeclarationByDataUse:async t=>p(e.privacy_declarations.filter(e=>e.data_use!==t),!0)}}},42478:function(e,t,i){"use strict";i.d(t,{FU:function(){return d},JE:function(){return s},Ki:function(){return u},SU:function(){return g},W:function(){return p},h9:function(){return a},jc:function(){return n},qt:function(){return l},sn:function(){return c}});let{useGetEmailInviteStatusQuery:n,useGetActiveMessagingProviderQuery:s,useCreateMessagingConfigurationMutation:a,useCreateMessagingConfigurationSecretsMutation:r,useGetMessagingConfigurationDetailsQuery:o,useGetMessagingConfigurationsQuery:l,useGetMessagingConfigurationByKeyQuery:d,useUpdateMessagingConfigurationByKeyMutation:c,useUpdateMessagingConfigurationSecretsByKeyMutation:u,useCreateTestConnectionMessageMutation:g,useDeleteMessagingConfigurationByKeyMutation:p}=i(78780).u.injectEndpoints({endpoints:e=>({getEmailInviteStatus:e.query({query:()=>({url:"/messaging/email-invite/status"}),providesTags:()=>["Email Invite Status"]}),createMessagingConfiguration:e.mutation({query:e=>({url:"messaging/config",method:"POST",body:e}),invalidatesTags:["Messaging Config","Configuration Settings"]}),getActiveMessagingProvider:e.query({queryFn:async(e,t,i,n)=>{let s=await n({url:"messaging/default/active"});return s.error&&404===s.error.status?{data:null}:s},providesTags:["Messaging Config"]}),createMessagingConfigurationSecrets:e.mutation({query:e=>({url:"messaging/default/".concat(e.service_type,"/secret"),method:"PUT",body:e.details}),invalidatesTags:["Messaging Config","Configuration Settings"]}),getMessagingConfigurationDetails:e.query({query:e=>({url:"messaging/default/".concat(e.type)}),providesTags:["Messaging Config"]}),getMessagingConfigurations:e.query({query:()=>({url:"messaging/config"}),providesTags:["Messaging Config"]}),getMessagingConfigurationByKey:e.query({query:e=>({url:"messaging/config/".concat(e.key)}),providesTags:["Messaging Config"]}),createTestConnectionMessage:e.mutation({query:e=>({url:"messaging/test/".concat(e.service_type),method:"POST",body:e.details}),invalidatesTags:["Messaging Config"]}),updateMessagingConfigurationByKey:e.mutation({query:e=>({url:"messaging/config/".concat(e.key),method:"PATCH",body:e.config}),invalidatesTags:["Messaging Config","Configuration Settings"]}),updateMessagingConfigurationSecretsByKey:e.mutation({query:e=>({url:"messaging/config/".concat(e.key,"/secret"),method:"PUT",body:e.secrets}),invalidatesTags:["Messaging Config","Configuration Settings"]}),deleteMessagingConfigurationByKey:e.mutation({query:e=>({url:"messaging/config/".concat(e.key),method:"DELETE"}),invalidatesTags:["Messaging Config","Configuration Settings"]})})})},54748:function(e,t,i){"use strict";var n=i(27378),s=i(65735);t.Z=()=>({legalBasisOptions:(0,n.useMemo)(()=>Object.keys(s.gP).map(e=>({value:s.gP[e],label:s.gP[e]})),[])})},28325:function(e,t,i){"use strict";var n=i(27378),s=i(65735);t.Z=()=>({specialCategoryLegalBasisOptions:(0,n.useMemo)(()=>Object.keys(s.nV).map(e=>({value:s.nV[e],label:s.nV[e]})),[])})},57072:function(e,t,i){"use strict";i.d(t,{Bd:function(){return n.Bd},L5:function(){return n.L5},MO:function(){return n.MO},qb:function(){return n.qb}});var n=i(5785)},99375:function(e,t,i){"use strict";i.r(t),i.d(t,{default:function(){return U}});var n=i(24246),s=i(77213),a=i(58754),r=i(92222),o=i(59003),l=i(86677),d=i(27378),c=i(77830),u=i(47935),g=i(16394),p=i(79609),m=i(81406),f=i(87949),x=i(79789),v=i(83099),h=i(34929),y=i(34090),j=i(55484),b=i(97181),_=i(40324),C=i(8133),w=i(54748),k=i(28325),S=i(34151),q=i.n(S);let T=j.Ry().shape({data_use:j.Z_().required("Data use is required")});var D=e=>{let{isOpen:t,onClose:i,onSave:s,declaration:a}=e,{getDataUses:r,getDataCategories:o,getDataSubjects:l}=(0,h.Z)(),{isOpen:d,onToggle:c}=(0,f.qY0)(),u=r().map(e=>({label:e.fides_key,value:e.fides_key})),g=o().map(e=>({label:e.fides_key,value:e.fides_key})),p=l().map(e=>({label:e.fides_key,value:e.fides_key})),{legalBasisOptions:m}=(0,w.Z)(),{specialCategoryLegalBasisOptions:x}=(0,k.Z)();return(0,n.jsx)(y.J9,{initialValues:a,enableReinitialize:!0,onSubmit:e=>{s(e),i()},validationSchema:T,children:e=>{let{dirty:s,isValid:a,values:r,resetForm:o}=e;return(0,n.jsx)(C.Z,{title:"Edit data use",isOpen:t,onClose:i,children:(0,n.jsxs)(y.l0,{children:[(0,n.jsxs)(f.jqI,{vertical:!0,className:"gap-6 py-4",children:[(0,n.jsx)(b.d,{name:"data_use",label:"Data use",options:u,layout:"stacked",isRequired:!0}),(0,n.jsx)(b.d,{name:"data_categories",label:"Data categories",options:g,mode:"multiple",layout:"stacked"}),(0,n.jsx)(b.d,{name:"data_subjects",label:"Data subjects",options:p,mode:"multiple",layout:"stacked"}),(0,n.jsx)(_.j0,{name:"name",label:"Declaration name",variant:"stacked"}),(0,n.jsxs)(f.jqI,{vertical:!0,className:"gap-6 p-4 ".concat(q().advancedSettings),children:[(0,n.jsxs)(f.jqI,{className:"cursor-pointer justify-between",onClick:c,children:[(0,n.jsx)(f.xvT,{fontSize:"xs",children:"Advanced settings"}),(0,n.jsx)(f.v4q,{className:d?"rotate-180":void 0})]}),(0,n.jsx)(f.UO1,{in:d,children:(0,n.jsxs)(f.jqI,{vertical:!0,className:"gap-4",children:[(0,n.jsx)(b.d,{name:"legal_basis_for_processing",label:"Legal basis for processing",options:m,layout:"stacked"}),(0,n.jsx)(f.UO1,{in:(null==r?void 0:r.legal_basis_for_processing)==="Legitimate interests",animateOpacity:!0,style:{overflow:"visible"},children:(0,n.jsx)("div",{className:"mt-4",children:(0,n.jsx)(_.j0,{name:"impact_assessment_location",label:"Impact assessment location",tooltip:"Where is the legitimate interest impact assessment stored?",variant:"stacked"})})}),(0,n.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,n.jsx)(_.j0,{name:"retention_period",label:"Retention period (days)",tooltip:"How long is personal data retained for this purpose?",variant:"stacked"}),(0,n.jsxs)(f.Kqy,{spacing:0,children:[(0,n.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,n.jsx)(f.UO1,{in:null==r?void 0:r.processes_special_category_data,animateOpacity:!0,style:{overflow:"visible"},children:(0,n.jsx)("div",{className:"mt-4",children:(0,n.jsx)(b.d,{isRequired:!0,name:"special_category_legal_basis",label:"Legal basis for processing",options:x,tooltip:"What is the legal basis under which the special category data is processed?",layout:"stacked"})})})]})]})})]})]}),(0,n.jsxs)("div",{className:"flex w-full justify-between",children:[(0,n.jsx)(f.wpx,{onClick:()=>{o(),i()},children:"Cancel"}),(0,n.jsx)(f.wpx,{type:"primary",htmlType:"submit",disabled:!s||!a,loading:!1,"data-testid":"save-btn",children:"Save"})]})]})})}})},N=i(26183),R=i(3765);let P=e=>({data_use:e,data_categories:["system"]});var M=e=>{var t,i;let{system:s}=e,[a,r]=(0,d.useState)(!1),[o,l]=(0,d.useState)(void 0),{getDataUseDisplayName:c}=(0,h.Z)(),{isOpen:u,onOpen:g,onClose:p}=(0,f.qY0)(),m=e=>{l(e),g()},{createDataUse:x,deleteDeclarationByDataUse:y,updateDataUse:j}=(0,R.Z)(s),b=null!==(i=null===(t=s.privacy_declarations)||void 0===t?void 0:t.map(e=>e.data_use))&&void 0!==i?i:[];return(0,n.jsxs)(N.Z,{children:[!a&&(0,n.jsxs)(n.Fragment,{children:[b.map((e,t)=>(0,n.jsxs)(f.j8w,{"data-testid":"data-use-".concat(e),color:"white",onClick:()=>m(s.privacy_declarations[t]),closable:!0,onClose:()=>y(e),closeButtonLabel:"Remove data use",children:[(0,n.jsx)(f.PJP.I8b,{size:10}),c(e)]},e)),(0,n.jsx)(f.j8w,{onClick:()=>r(!0),"data-testid":"taxonomy-add-btn",addable:!0,"aria-label":"Add data use"}),(0,n.jsx)(D,{isOpen:u,onClose:p,onSave:e=>j(o,e),declaration:o})]}),a&&(0,n.jsx)(f.xuv,{className:"select-wrapper",position:"absolute",zIndex:10,top:"0",left:"0",width:"100%",height:"max",bgColor:"#fff",children:(0,n.jsx)(v.Z,{onChange:e=>{x(P(e)),r(!1)},selectedTaxonomies:b,onBlur:()=>r(!1),open:!0})})]})},I=e=>{var t;let{system:i,onEdit:s,onClose:a}=e;return(0,n.jsxs)(f.dys,{isOpen:!!i,onClose:a,size:"md",children:[(0,n.jsx)(f.P1B,{}),(0,n.jsxs)(f.scA,{"data-testid":"system-details",children:[(0,n.jsx)(f.OXI,{children:(null==i?void 0:i.name)||(null==i?void 0:i.fides_key)}),(0,n.jsx)(f.cCv,{}),(0,n.jsxs)(f.Ng0,{children:[(0,n.jsx)(x.cB,{text:"Title",mt:0}),(0,n.jsx)(x.XU,{children:null!==(t=null==i?void 0:i.name)&&void 0!==t?t:null==i?void 0:i.fides_key}),(null==i?void 0:i.description)&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(x.cB,{text:"Description"}),(0,n.jsx)(x.XU,{children:null==i?void 0:i.description})]}),(0,n.jsx)(x.cB,{text:"Data uses"}),(0,n.jsx)(M,{system:i})]}),(0,n.jsx)(f.zeN,{children:(0,n.jsx)(f.wpx,{onClick:s,"data-testid":"edit-system-btn",children:"Edit system"})})]})]})},z=e=>{let{onDetailClick:t}=e;return(0,n.jsxs)(f.v2r,{children:[(0,n.jsx)(f.j2t,{as:f.wpx,size:"small",type:"text",className:"max-w-4",icon:(0,n.jsx)(f.nXP,{transform:"rotate(90deg)",ml:2}),"data-testid":"system-actions-menu"}),(0,n.jsx)(f.qyq,{children:t&&(0,n.jsx)(f.sNh,{onClick:t,"data-testid":"view-system-details",children:"View details"})})]})},Z=i(70675);let E={items:[],total:0,page:1,size:50,pages:1},O=(0,r.Cl)();var B=()=>{let[e,t]=(0,d.useState)({}),i=(0,l.useRouter)(),{PAGE_SIZES:s,pageSize:a,setPageSize:f,onPreviousPageClick:x,isPreviousPageDisabled:v,onNextPageClick:h,isNextPageDisabled:y,startRange:j,endRange:b,pageIndex:_,setTotalPages:C}=(0,u.oi)(),{data:w,isLoading:k}=(0,p.UG)({page:_,size:a,show_hidden:!1}),[S]=(0,Z.j3)(),{items:q,total:T,pages:D}=(0,d.useMemo)(()=>null!=w?w:E,[w]);(0,d.useEffect)(()=>{C(D)},[D,C]);let[N,R]=(0,d.useState)(void 0),P=(0,d.useMemo)(()=>q.find(e=>e.fides_key===N),[q,N]),B=async e=>{var t,n;let s=await S({connection_config_key:e.connection_configs.key,page:1,size:1}),a=!!(null==s?void 0:null===(t=s.data)||void 0===t?void 0:t.total),r=(0,g.du)(null!==(n=e.monitor_config_keys)&&void 0!==n?n:[],"monitor_config_ids"),o="".concat(c.mX,"/").concat(e.fides_key,"/").concat(a?"projects":"resources","?").concat(r);i.push(o)},U=(0,d.useMemo)(()=>[O.accessor(e=>e.name,{id:"name",cell:e=>{var t;let{getValue:i,row:s}=e;return(0,n.jsx)(u.G3,{value:i(),fontWeight:(null===(t=s.original.connection_configs)||void 0===t?void 0:t.key)?"semibold":"normal"})},header:e=>(0,n.jsx)(u.Rr,{value:"Name",...e})}),O.display({id:"data-uses",cell:e=>{let{row:t}=e;return(0,n.jsx)(M,{system:t.original})},header:e=>(0,n.jsx)(u.Rr,{value:"Data uses",...e}),meta:{disableRowClick:!0},minSize:280}),O.display({id:"actions",cell:e=>(0,n.jsx)(z,{onDetailClick:()=>R(e.row.original.fides_key)}),maxSize:20,enableResizing:!1,meta:{cellProps:{borderLeft:"none"},disableRowClick:!0}})],[]),A=(0,o.b7)({getCoreRowModel:(0,r.sC)(),getGroupedRowModel:(0,r.qe)(),getExpandedRowModel:(0,r.rV)(),getRowId:e=>e.fides_key,manualPagination:!0,columnResizeMode:"onChange",columns:U,data:q,onRowSelectionChange:t,state:{rowSelection:e}});return k?(0,n.jsx)(u.I4,{rowHeight:36,numRows:36}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(u.ZK,{tableInstance:A,emptyTableNotice:(0,n.jsx)(m.Z,{}),onRowClick:B,getRowIsClickable:e=>{var t;return!!(null===(t=e.connection_configs)||void 0===t?void 0:t.key)}}),(0,n.jsx)(u.s8,{totalRows:T||0,pageSizes:s,setPageSize:f,onPreviousPageClick:x,isPreviousPageDisabled:v,onNextPageClick:h,isNextPageDisabled:y,startRange:j,endRange:b}),(0,n.jsx)(I,{system:P,onClose:()=>R(void 0),onEdit:()=>i.push({pathname:c.Dv,query:{id:N}})})]})},U=()=>(0,n.jsxs)(s.Z,{title:"Data catalog",children:[(0,n.jsx)(a.Z,{heading:"Data catalog",breadcrumbItems:[{title:"All systems"}]}),(0,n.jsx)(B,{})]})},31883:function(e,t,i){"use strict";i.d(t,{Bw:function(){return n.Bw},D4:function(){return n.D4}});var n=i(19043)},72707:function(e){e.exports={option:"TaxonomySelect_option__vY6v2"}},34151:function(e){e.exports={advancedSettings:"EditMinimalDataUseModal_advancedSettings___i9jS"}}},function(e){e.O(0,[8765,9278,5163,2888,9774,179],function(){return e(e.s=66248)}),_N_E=e.O()}]);
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4231],{74833:function(e,t,i){var n=i(56127),s=/^\s+/;e.exports=function(e){return e?e.slice(0,n(e)+1).replace(s,""):e}},56632:function(e,t,i){var n=i(89278),s=i(80068),a=i(50098);e.exports=function(e){return function(t,i,r){var o=Object(t);if(!s(t)){var l=n(i,3);t=a(t),i=function(e){return l(o[e],e,o)}}var d=e(t,i,r);return d>-1?o[l?t[d]:d]:void 0}}},56127:function(e){var t=/\s/;e.exports=function(e){for(var i=e.length;i--&&t.test(e.charAt(i)););return i}},64925:function(e,t,i){var n=i(56632)(i(66259));e.exports=n},66259:function(e,t,i){var n=i(95372),s=i(89278),a=i(47991),r=Math.max;e.exports=function(e,t,i){var o=null==e?0:e.length;if(!o)return -1;var l=null==i?0:a(i);return l<0&&(l=r(o+l,0)),n(e,s(t,3),l)}},94919:function(e,t,i){var n=i(91936),s=1/0;e.exports=function(e){return e?(e=n(e))===s||e===-s?(e<0?-1:1)*17976931348623157e292:e==e?e:0:0===e?e:0}},47991:function(e,t,i){var n=i(94919);e.exports=function(e){var t=n(e),i=t%1;return t==t?i?t-i:t:0}},91936:function(e,t,i){var n=i(74833),s=i(11611),a=i(55193),r=0/0,o=/^[-+]0x[0-9a-f]+$/i,l=/^0b[01]+$/i,d=/^0o[0-7]+$/i,c=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(a(e))return r;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 i=l.test(e);return i||d.test(e)?c(e.slice(2),i?2:8):o.test(e)?r:+e}},66248:function(e,t,i){(window.__NEXT_P=window.__NEXT_P||[]).push(["/data-catalog",function(){return i(99375)}])},77213:function(e,t,i){"use strict";i.d(t,{Z:function(){return p}});var n=i(24246),s=i(98227),a=i(88038),r=i.n(a),o=i(86677);i(27378);var l=i(25980),d=i(90867),c=i(42478),u=i(77830),g=()=>{let e=(0,o.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(u.AD)},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."," "]})]})})},p=e=>{let{children:t,title:i,padded:a=!0,mainProps:u}=e,p=(0,l.hz)(),m=(0,o.useRouter)(),f="/privacy-requests"===m.pathname||"/datastore-connection"===m.pathname,x=!(p.flags.messagingConfiguration&&f),{data:v}=(0,c.JE)(void 0,{skip:x}),{data:h}=(0,d.PW)(void 0,{skip:x}),y=p.flags.messagingConfiguration&&(!v||!h)&&f;return(0,n.jsxs)(s.kCb,{"data-testid":i,direction:"column",h:"100vh",children:[(0,n.jsxs)(r(),{children:[(0,n.jsxs)("title",{children:["Fides Admin UI - ",i]}),(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:a?6:0,px:a?10:0,h:a?"calc(100% - 48px)":"full",flex:1,minWidth:0,overflow:"auto",...u,children:[y?(0,n.jsx)(g,{}):null,t]})]})}},58754:function(e,t,i){"use strict";var n=i(24246),s=i(98227),a=i(70788);t.Z=e=>{let{heading:t,breadcrumbItems:i,isSticky:r=!0,children:o,rightContent:l,style:d,...c}=e;return(0,n.jsxs)("div",{...c,style:r?{position:"sticky",top:"-24px",paddingTop:"24px",paddingBottom:"24px",paddingLeft:"40px",marginLeft:"-40px",paddingRight:"40px",marginRight:"-40px",marginTop:"-24px",left:0,zIndex:20,backgroundColor:"white",...d}:{paddingBottom:"24px",...d},children:[(0,n.jsxs)(s.jqI,{justify:"space-between",children:["string"==typeof t?(0,n.jsx)(s.lQT,{className:i||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})]}),!!i&&(0,n.jsx)(a.m,{className:o?"pb-4":void 0,items:i,"data-testid":"page-breadcrumb"}),o]})}},79789:function(e,t,i){"use strict";i.d(t,{Hn:function(){return o},XU:function(){return r},Z5:function(){return l},aG:function(){return u},cB:function(){return a},hX:function(){return c},vQ:function(){return d}});var n=i(24246),s=i(98227);let a=e=>{let{text:t,...i}=e;return(0,n.jsx)(s.X6q,{fontSize:"sm",mt:4,mb:1,...i,children:t})},r=e=>{let{children:t}=e;return(0,n.jsx)(s.xvT,{fontSize:"14px",mb:4,children:t})},o=e=>{let{children:t,href:i}=e;return(0,n.jsx)(s.rUS,{href:i,textDecoration:"underline",isExternal:!0,children:t})},l=e=>{let{children:t}=e;return(0,n.jsx)(s.QI$,{fontSize:"14px",mb:4,children:t})},d=e=>{let{children:t}=e;return(0,n.jsx)(s.GSI,{fontSize:"14px",mb:4,ml:6,children:t})},c=e=>{let{children:t}=e;return(0,n.jsx)(s.EKh,{display:"block",whiteSpace:"pre",p:4,mb:4,overflowX:"scroll",children:t})},u=e=>{let{data:t}=e;return(0,n.jsxs)(s.iA_,{fontSize:"14px",children:[(0,n.jsx)(s.hrZ,{children:(0,n.jsxs)(s.Tr,{children:[(0,n.jsx)(s.Th,{children:"Permission"}),(0,n.jsx)(s.Th,{children:"Description"})]})}),(0,n.jsx)(s.p3B,{children:t.map(e=>(0,n.jsxs)(s.Tr,{children:[(0,n.jsx)(s.Td,{children:(0,n.jsx)(s.Vp9,{children:e.permission})}),(0,n.jsx)(s.Td,{children:e.description})]},e.permission))})]})}},83099:function(e,t,i){"use strict";var n=i(24246),s=i(79283),a=i(34929);t.Z=e=>{let{selectedTaxonomies:t,showDisabled:i=!1,...r}=e,{getDataUseDisplayNameProps:o,getDataUses:l}=(0,a.Z)(),d=(i?l():l().filter(e=>e.active)).filter(e=>!(null==t?void 0:t.includes(e.fides_key))).map(e=>{let{name:t,primaryName:i}=o(e.fides_key);return{value:e.fides_key,name:t,primaryName:i,description:e.description||""}});return(0,n.jsx)(s.l,{options:d,...r})}},79283:function(e,t,i){"use strict";i.d(t,{l:function(){return c}});var n=i(24246),s=i(98227),a=i(72707),r=i.n(a);let o=e=>{let{data:{formattedTitle:t,description:i,name:a,primaryName:r}}=e;return(0,n.jsxs)(s.jqI,{gap:12,title:"".concat(t," - ").concat(i),children:[(0,n.jsxs)("div",{children:[(0,n.jsx)("strong",{children:r||a}),r&&": ".concat(a)]}),(0,n.jsx)("em",{children:i})]})},l=e=>"options"in e&&Array.isArray(e.options),d=e=>({...e,className:r().option,formattedTitle:e.formattedTitle||[e.primaryName,e.name].filter(e=>e).join(": ")}),c=e=>{let{options:t,...i}=e,a=null==t?void 0:t.map(e=>l(e)?{...e,options:e.options.map(d)}:d(e));return(0,n.jsx)(s.WPr,{options:a,filterOption:(e,t)=>{var i,n;return(null==t?void 0:null===(i=t.formattedTitle)||void 0===i?void 0:i.toLowerCase().includes(e.toLowerCase()))||(null==t?void 0:null===(n=t.value)||void 0===n?void 0:n.toLowerCase().includes(e.toLowerCase()))||!1},optionFilterProp:"label",autoFocus:!0,variant:"borderless",optionRender:o,styles:{popup:{root:{minWidth:"500px"}}},className:"w-full p-0","data-testid":"taxonomy-select",...i})}},97181:function(e,t,i){"use strict";i.d(t,{d:function(){return d}});var n=i(24246),s=i(98227),a=i(34090),r=i(27378),o=i(46238),l=i(40324);let d=e=>{let{name:t,label:i,labelProps:d,tooltip:c,isRequired:u,layout:g="inline",helperText:p,...m}=e,[f,x,{setValue:v}]=(0,a.U$)(t),h=!!(x.touched&&x.error),[y,j]=(0,r.useState)("");f.value||"tags"!==m.mode&&"multiple"!==m.mode||(f.value=[]),"tags"===m.mode&&"string"==typeof f.value&&(f.value=[f.value]);let b="tags"===m.mode?(e,t)=>e?e.value!==y||f.value.includes(y)?m.optionRender?m.optionRender(e,t):e.label:'Create "'.concat(y,'"'):void 0:m.optionRender||void 0,_=e=>{j(e),m.onSearch&&m.onSearch(e)},C=(e,t)=>{v(e),m.onChange&&m.onChange(e,t)};return"inline"===g?(0,n.jsx)(s.NIc,{isInvalid:h,isRequired:u,children:(0,n.jsxs)(s.rjZ,{templateColumns:i?"1fr 3fr":"1fr",children:[i?(0,n.jsx)(l.__,{htmlFor:m.id||t,...d,children:i}):null,(0,n.jsxs)(s.jqI,{align:"center",children:[(0,n.jsxs)(s.jqI,{vertical:!0,flex:1,className:"mr-2",children:[(0,n.jsx)(s.WPr,{...f,id:m.id||t,"data-testid":"controlled-select-".concat(f.name),...m,optionRender:b,onSearch:"tags"===m.mode?_:void 0,onChange:C,value:f.value||void 0,status:h?"error":void 0}),p&&(0,n.jsx)(s.Q6r,{children:p}),(0,n.jsx)(l.Bc,{isInvalid:h,message:x.error,fieldName:f.name})]}),(0,n.jsx)(o.b,{label:c,className:h?"mt-2 self-start":void 0})]})]})}):(0,n.jsx)(s.NIc,{isInvalid:h,isRequired:u,children:(0,n.jsxs)(s.gCW,{alignItems:"start",children:[(0,n.jsxs)(s.jqI,{align:"center",children:[i?(0,n.jsx)(l.__,{htmlFor:m.id||t,fontSize:"xs",my:0,mr:1,...d,children:i}):null,(0,n.jsx)(o.b,{label:c})]}),(0,n.jsx)(s.WPr,{...f,id:m.id||t,"data-testid":"controlled-select-".concat(f.name),...m,optionRender:b,onSearch:"tags"===m.mode?_:void 0,onChange:C,value:f.value||void 0,status:h?"error":void 0}),p&&(0,n.jsx)(s.Q6r,{style:{marginTop:0},children:p}),(0,n.jsx)(l.Bc,{isInvalid:h,message:x.error,fieldName:f.name})]})})}},34929:function(e,t,i){"use strict";var n=i(24246),s=i(64925),a=i.n(s),r=i(27378),o=i(16134),l=i(30002),d=i(28079),c=i(57072);let u=()=>{let{isLoading:e}=(0,d.fd)(),t=(0,o.C)(d.U3),{isLoading:i}=(0,c.MO)(),n=(0,o.C)(c.qb),{isLoading:s}=(0,l.te)();return{dataUses:t,dataSubjects:(0,o.C)(l.ZL),dataCategories:n,isLoading:e||i||s}};t.Z=()=>{let{dataUses:e,dataCategories:t,dataSubjects:i,isLoading:s}=u(),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 i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,n=t(e);if(!n)return{};let s=t(o(e,i)),a=!!n.parent_key;return{name:n.name||void 0,primaryName:a&&(null==s?void 0:s.name)!==n.name&&(null==s?void 0:s.name)||void 0}},d=function(e,t){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,{name:s,primaryName:a}=l(e,t,i);return s?a?(0,n.jsxs)(r.Fragment,{children:[(0,n.jsxs)("strong",{children:[a,":"]})," ",s]},e):(0,n.jsx)("strong",{children:s},e):e},c=t=>a()(e,{fides_key:t}),g=e=>a()(t,{fides_key:e}),p=e=>a()(i,{fides_key:e});return{getDataUses:()=>e,getDataUseByKey:c,getDataUseDisplayName:e=>d(e,c,1),getDataUseDisplayNameProps:e=>l(e,c,1),getDataCategories:()=>t,getDataCategoryByKey:g,getDataCategoryDisplayName:e=>d(e,g,2),getDataCategoryDisplayNameProps:e=>l(e,g,2),getDataSubjects:()=>i,getDataSubjectByKey:p,getDataSubjectDisplayName:e=>{let t=p(e);return t?t.name:e},getPrimaryKey:o,isLoading:s}}},8133:function(e,t,i){"use strict";var n=i(24246),s=i(98227);t.Z=e=>{let{title:t,children:i,isOpen:a,onClose:r,modalContentProps:o,showCloseButton:l=!1,footer:d,...c}=e;return(0,n.jsxs)(s.u_l,{isOpen:a,onClose:r,isCentered:!0,scrollBehavior:"inside",size:"xl",id:"add-modal",...c,children:[(0,n.jsx)(s.ZAr,{}),(0,n.jsxs)(s.hzk,{textAlign:"left",p:0,"data-testid":"add-modal-content",...o,children:[l&&(0,n.jsx)(s.olH,{}),(0,n.jsx)(s.xBx,{p:0,children:(0,n.jsx)(s.xuv,{backgroundColor:"gray.50",px:6,py:4,border:"1px",borderColor:"gray.200",borderTopRadius:6,display:"flex",justifyContent:"space-between",alignItems:"center",children:(0,n.jsx)(s.X6q,{as:"h3",size:"sm",children:t})})}),(0,n.jsx)(s.fef,{pb:4,overflow:"auto",children:i}),d&&(0,n.jsx)(s.mzw,{children:d})]})]})}},70788:function(e,t,i){"use strict";i.d(t,{m:function(){return d}});var n=i(24246),s=i(98227),a=i(79894),r=i.n(a),o=i(27378);let{Text:l}=s.AntTypography,d=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},d=o.onClick&&!o.href;return("string"==typeof o.title&&(o.title=(0,n.jsx)(l,{style:{color:"inherit",maxWidth:a?void 0:400},ellipsis:!a,id:a?"breadcrumb-current-page":void 0,children:o.title})),d)?o.title=(0,n.jsx)(s.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)(r(),{href:o.href,className:"ant-breadcrumb-link",children:o.title}),delete o.href)),o}),[t]);return(0,n.jsx)(s.zrq,{items:a,...i})}},79609:function(e,t,i){"use strict";i.d(t,{N4:function(){return r},UG:function(){return s},xw:function(){return a}});var n=i(54427);let{useGetCatalogSystemsQuery:s,useGetCatalogProjectsQuery:a,useGetCatalogDatasetsQuery:r}=i(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,n.oM)({name:"dataCatalog",initialState:{page:1,pageSize:50},reducers:{}})},81406:function(e,t,i){"use strict";var n=i(24246),s=i(98227);t.Z=()=>(0,n.jsxs)(s.gCW,{mt:6,p:10,spacing:4,borderRadius:"base",maxW:"70%","data-testid":"empty-state",alignSelf:"center",margin:"auto",children:[(0,n.jsx)(s.xvT,{fontSize:"md",fontWeight:"600",children:"No resources found"}),(0,n.jsx)(s.xvT,{fontSize:"sm",children:"You're up to date!"})]})},26183:function(e,t,i){"use strict";var n=i(24246);i(27378),t.Z=e=>{let{children:t,className:i,...s}=e;return(0,n.jsx)("div",{className:"relative flex w-full flex-wrap items-center gap-2 overflow-x-auto py-2 ".concat(i||""),...s,children:t})}},3765:function(e,t,i){"use strict";var n=i(98227),s=i(812),a=i(46628),r=i(32885),o=i(1315),l=i(65735),d=i(31883);let c=(e,t)=>{let i=[],n=[];return Object.entries(e).forEach(e=>{let[s,a]=e;a?i.push({id:s,value:a,resource_id:t,custom_field_definition_id:s}):n.push(s)}),{upsert:i,delete:n,resource_type:l.P6.PRIVACY_DECLARATION,resource_id:t}};t.Z=e=>{let t=(0,n.pmc)(),[i]=(0,o.qQ)(),[l]=(0,r._D)(),u=i=>!!e.privacy_declarations.find(e=>e.data_use===i.data_use&&e.name===i.name)&&(t((0,a.Vo)("A declaration already exists with that data use in this system. Please supply a different data use.")),!0),g=e=>{let{systemResult:i,customFieldsResult:n,isDelete:r}=e;if((0,d.D4)(i)){let e=(0,s.e$)(i.error,"An unexpected error occurred while updating the system. Please try again.");t((0,a.Vo)(e));return}if(n&&(0,d.D4)(n)){let e=(0,s.e$)(n.error,"Data use was updated, but an error occurred while updating custom fields. Please try again.");t((0,a.Vo)(e));return}return t((0,a.t5)(r?"Data use deleted":"Data use saved")),i.data.privacy_declarations},p=async(t,n,s,a)=>{let r;let o=t.map(e=>{var t;return{...e,name:null!==(t=e.name)&&void 0!==t?t:""}}),d={...e,privacy_declarations:o},u=await i(d);if(s&&a){var p,m;let e=null==u?void 0:null===(m=u.data)||void 0===m?void 0:null===(p=m.privacy_declarations)||void 0===p?void 0:p.find(e=>e.data_use===a);if(e){let t=c(s,e.id);r=await l(t)}}return g({systemResult:u,customFieldsResult:r,isDelete:n})};return{createDataUse:async i=>{if(u(i))return;let{customFieldValues:n,...s}=i;return t.closeAll(),p([...e.privacy_declarations,s],!1,n,s.data_use)},updateDataUse:async(t,i)=>{if(i.id!==t.id&&u(i))return;let{customFieldValues:n,...s}=i;return p(e.privacy_declarations.map(e=>e.id===t.id?s:e),!1,n,s.data_use)},deleteDataUse:async t=>p(e.privacy_declarations.filter(e=>e.id!==t.id),!0),deleteDeclarationByDataUse:async t=>p(e.privacy_declarations.filter(e=>e.data_use!==t),!0)}}},42478:function(e,t,i){"use strict";i.d(t,{FU:function(){return d},JE:function(){return s},Ki:function(){return u},SU:function(){return g},W:function(){return p},h9:function(){return a},jc:function(){return n},qt:function(){return l},sn:function(){return c}});let{useGetEmailInviteStatusQuery:n,useGetActiveMessagingProviderQuery:s,useCreateMessagingConfigurationMutation:a,useCreateMessagingConfigurationSecretsMutation:r,useGetMessagingConfigurationDetailsQuery:o,useGetMessagingConfigurationsQuery:l,useGetMessagingConfigurationByKeyQuery:d,useUpdateMessagingConfigurationByKeyMutation:c,useUpdateMessagingConfigurationSecretsByKeyMutation:u,useCreateTestConnectionMessageMutation:g,useDeleteMessagingConfigurationByKeyMutation:p}=i(78780).u.injectEndpoints({endpoints:e=>({getEmailInviteStatus:e.query({query:()=>({url:"/messaging/email-invite/status"}),providesTags:()=>["Email Invite Status"]}),createMessagingConfiguration:e.mutation({query:e=>({url:"messaging/config",method:"POST",body:e}),invalidatesTags:["Messaging Config","Configuration Settings"]}),getActiveMessagingProvider:e.query({queryFn:async(e,t,i,n)=>{let s=await n({url:"messaging/default/active"});return s.error&&404===s.error.status?{data:null}:s},providesTags:["Messaging Config"]}),createMessagingConfigurationSecrets:e.mutation({query:e=>({url:"messaging/default/".concat(e.service_type,"/secret"),method:"PUT",body:e.details}),invalidatesTags:["Messaging Config","Configuration Settings"]}),getMessagingConfigurationDetails:e.query({query:e=>({url:"messaging/default/".concat(e.type)}),providesTags:["Messaging Config"]}),getMessagingConfigurations:e.query({query:()=>({url:"messaging/config"}),providesTags:["Messaging Config"]}),getMessagingConfigurationByKey:e.query({query:e=>({url:"messaging/config/".concat(e.key)}),providesTags:["Messaging Config"]}),createTestConnectionMessage:e.mutation({query:e=>({url:"messaging/test/".concat(e.service_type),method:"POST",body:e.details}),invalidatesTags:["Messaging Config"]}),updateMessagingConfigurationByKey:e.mutation({query:e=>({url:"messaging/config/".concat(e.key),method:"PATCH",body:e.config}),invalidatesTags:["Messaging Config","Configuration Settings"]}),updateMessagingConfigurationSecretsByKey:e.mutation({query:e=>({url:"messaging/config/".concat(e.key,"/secret"),method:"PUT",body:e.secrets}),invalidatesTags:["Messaging Config","Configuration Settings"]}),deleteMessagingConfigurationByKey:e.mutation({query:e=>({url:"messaging/config/".concat(e.key),method:"DELETE"}),invalidatesTags:["Messaging Config","Configuration Settings"]})})})},54748:function(e,t,i){"use strict";var n=i(27378),s=i(65735);t.Z=()=>({legalBasisOptions:(0,n.useMemo)(()=>Object.keys(s.gP).map(e=>({value:s.gP[e],label:s.gP[e]})),[])})},28325:function(e,t,i){"use strict";var n=i(27378),s=i(65735);t.Z=()=>({specialCategoryLegalBasisOptions:(0,n.useMemo)(()=>Object.keys(s.nV).map(e=>({value:s.nV[e],label:s.nV[e]})),[])})},57072:function(e,t,i){"use strict";i.d(t,{Bd:function(){return n.Bd},L5:function(){return n.L5},MO:function(){return n.MO},qb:function(){return n.qb}});var n=i(5785)},99375:function(e,t,i){"use strict";i.r(t),i.d(t,{default:function(){return U}});var n=i(24246),s=i(77213),a=i(58754),r=i(92222),o=i(59003),l=i(86677),d=i(27378),c=i(77830),u=i(47935),g=i(16394),p=i(79609),m=i(81406),f=i(98227),x=i(79789),v=i(83099),h=i(34929),y=i(34090),j=i(55484),b=i(97181),_=i(40324),C=i(8133),w=i(54748),k=i(28325),S=i(34151),q=i.n(S);let T=j.Ry().shape({data_use:j.Z_().required("Data use is required")});var D=e=>{let{isOpen:t,onClose:i,onSave:s,declaration:a}=e,{getDataUses:r,getDataCategories:o,getDataSubjects:l}=(0,h.Z)(),{isOpen:d,onToggle:c}=(0,f.qY0)(),u=r().map(e=>({label:e.fides_key,value:e.fides_key})),g=o().map(e=>({label:e.fides_key,value:e.fides_key})),p=l().map(e=>({label:e.fides_key,value:e.fides_key})),{legalBasisOptions:m}=(0,w.Z)(),{specialCategoryLegalBasisOptions:x}=(0,k.Z)();return(0,n.jsx)(y.J9,{initialValues:a,enableReinitialize:!0,onSubmit:e=>{s(e),i()},validationSchema:T,children:e=>{let{dirty:s,isValid:a,values:r,resetForm:o}=e;return(0,n.jsx)(C.Z,{title:"Edit data use",isOpen:t,onClose:i,children:(0,n.jsxs)(y.l0,{children:[(0,n.jsxs)(f.jqI,{vertical:!0,className:"gap-6 py-4",children:[(0,n.jsx)(b.d,{name:"data_use",label:"Data use",options:u,layout:"stacked",isRequired:!0}),(0,n.jsx)(b.d,{name:"data_categories",label:"Data categories",options:g,mode:"multiple",layout:"stacked"}),(0,n.jsx)(b.d,{name:"data_subjects",label:"Data subjects",options:p,mode:"multiple",layout:"stacked"}),(0,n.jsx)(_.j0,{name:"name",label:"Declaration name",variant:"stacked"}),(0,n.jsxs)(f.jqI,{vertical:!0,className:"gap-6 p-4 ".concat(q().advancedSettings),children:[(0,n.jsxs)(f.jqI,{className:"cursor-pointer justify-between",onClick:c,children:[(0,n.jsx)(f.xvT,{fontSize:"xs",children:"Advanced settings"}),(0,n.jsx)(f.v4q,{className:d?"rotate-180":void 0})]}),(0,n.jsx)(f.UO1,{in:d,children:(0,n.jsxs)(f.jqI,{vertical:!0,className:"gap-4",children:[(0,n.jsx)(b.d,{name:"legal_basis_for_processing",label:"Legal basis for processing",options:m,layout:"stacked"}),(0,n.jsx)(f.UO1,{in:(null==r?void 0:r.legal_basis_for_processing)==="Legitimate interests",animateOpacity:!0,style:{overflow:"visible"},children:(0,n.jsx)("div",{className:"mt-4",children:(0,n.jsx)(_.j0,{name:"impact_assessment_location",label:"Impact assessment location",tooltip:"Where is the legitimate interest impact assessment stored?",variant:"stacked"})})}),(0,n.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,n.jsx)(_.j0,{name:"retention_period",label:"Retention period (days)",tooltip:"How long is personal data retained for this purpose?",variant:"stacked"}),(0,n.jsxs)(f.Kqy,{spacing:0,children:[(0,n.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,n.jsx)(f.UO1,{in:null==r?void 0:r.processes_special_category_data,animateOpacity:!0,style:{overflow:"visible"},children:(0,n.jsx)("div",{className:"mt-4",children:(0,n.jsx)(b.d,{isRequired:!0,name:"special_category_legal_basis",label:"Legal basis for processing",options:x,tooltip:"What is the legal basis under which the special category data is processed?",layout:"stacked"})})})]})]})})]})]}),(0,n.jsxs)("div",{className:"flex w-full justify-between",children:[(0,n.jsx)(f.wpx,{onClick:()=>{o(),i()},children:"Cancel"}),(0,n.jsx)(f.wpx,{type:"primary",htmlType:"submit",disabled:!s||!a,loading:!1,"data-testid":"save-btn",children:"Save"})]})]})})}})},N=i(26183),R=i(3765);let P=e=>({data_use:e,data_categories:["system"]});var M=e=>{var t,i;let{system:s}=e,[a,r]=(0,d.useState)(!1),[o,l]=(0,d.useState)(void 0),{getDataUseDisplayName:c}=(0,h.Z)(),{isOpen:u,onOpen:g,onClose:p}=(0,f.qY0)(),m=e=>{l(e),g()},{createDataUse:x,deleteDeclarationByDataUse:y,updateDataUse:j}=(0,R.Z)(s),b=null!==(i=null===(t=s.privacy_declarations)||void 0===t?void 0:t.map(e=>e.data_use))&&void 0!==i?i:[];return(0,n.jsxs)(N.Z,{children:[!a&&(0,n.jsxs)(n.Fragment,{children:[b.map((e,t)=>(0,n.jsxs)(f.j8w,{"data-testid":"data-use-".concat(e),color:"white",onClick:()=>m(s.privacy_declarations[t]),closable:!0,onClose:()=>y(e),closeButtonLabel:"Remove data use",children:[(0,n.jsx)(f.PJP.I8b,{size:10}),c(e)]},e)),(0,n.jsx)(f.j8w,{onClick:()=>r(!0),"data-testid":"taxonomy-add-btn",addable:!0,"aria-label":"Add data use"}),(0,n.jsx)(D,{isOpen:u,onClose:p,onSave:e=>j(o,e),declaration:o})]}),a&&(0,n.jsx)(f.xuv,{className:"select-wrapper",position:"absolute",zIndex:10,top:"0",left:"0",width:"100%",height:"max",bgColor:"#fff",children:(0,n.jsx)(v.Z,{onChange:e=>{x(P(e)),r(!1)},selectedTaxonomies:b,onBlur:()=>r(!1),open:!0})})]})},I=e=>{var t;let{system:i,onEdit:s,onClose:a}=e;return(0,n.jsxs)(f.dys,{isOpen:!!i,onClose:a,size:"md",children:[(0,n.jsx)(f.P1B,{}),(0,n.jsxs)(f.scA,{"data-testid":"system-details",children:[(0,n.jsx)(f.OXI,{children:(null==i?void 0:i.name)||(null==i?void 0:i.fides_key)}),(0,n.jsx)(f.cCv,{}),(0,n.jsxs)(f.Ng0,{children:[(0,n.jsx)(x.cB,{text:"Title",mt:0}),(0,n.jsx)(x.XU,{children:null!==(t=null==i?void 0:i.name)&&void 0!==t?t:null==i?void 0:i.fides_key}),(null==i?void 0:i.description)&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(x.cB,{text:"Description"}),(0,n.jsx)(x.XU,{children:null==i?void 0:i.description})]}),(0,n.jsx)(x.cB,{text:"Data uses"}),(0,n.jsx)(M,{system:i})]}),(0,n.jsx)(f.zeN,{children:(0,n.jsx)(f.wpx,{onClick:s,"data-testid":"edit-system-btn",children:"Edit system"})})]})]})},z=e=>{let{onDetailClick:t}=e;return(0,n.jsxs)(f.v2r,{children:[(0,n.jsx)(f.j2t,{as:f.wpx,size:"small",type:"text",className:"max-w-4",icon:(0,n.jsx)(f.nXP,{transform:"rotate(90deg)",ml:2}),"data-testid":"system-actions-menu"}),(0,n.jsx)(f.qyq,{children:t&&(0,n.jsx)(f.sNh,{onClick:t,"data-testid":"view-system-details",children:"View details"})})]})},Z=i(70675);let E={items:[],total:0,page:1,size:50,pages:1},O=(0,r.Cl)();var B=()=>{let[e,t]=(0,d.useState)({}),i=(0,l.useRouter)(),{PAGE_SIZES:s,pageSize:a,setPageSize:f,onPreviousPageClick:x,isPreviousPageDisabled:v,onNextPageClick:h,isNextPageDisabled:y,startRange:j,endRange:b,pageIndex:_,setTotalPages:C}=(0,u.oi)(),{data:w,isLoading:k}=(0,p.UG)({page:_,size:a,show_hidden:!1}),[S]=(0,Z.j3)(),{items:q,total:T,pages:D}=(0,d.useMemo)(()=>null!=w?w:E,[w]);(0,d.useEffect)(()=>{C(D)},[D,C]);let[N,R]=(0,d.useState)(void 0),P=(0,d.useMemo)(()=>q.find(e=>e.fides_key===N),[q,N]),B=async e=>{var t,n;let s=await S({connection_config_key:e.connection_configs.key,page:1,size:1}),a=!!(null==s?void 0:null===(t=s.data)||void 0===t?void 0:t.total),r=(0,g.du)(null!==(n=e.monitor_config_keys)&&void 0!==n?n:[],"monitor_config_ids"),o="".concat(c.mX,"/").concat(e.fides_key,"/").concat(a?"projects":"resources","?").concat(r);i.push(o)},U=(0,d.useMemo)(()=>[O.accessor(e=>e.name,{id:"name",cell:e=>{var t;let{getValue:i,row:s}=e;return(0,n.jsx)(u.G3,{value:i(),fontWeight:(null===(t=s.original.connection_configs)||void 0===t?void 0:t.key)?"semibold":"normal"})},header:e=>(0,n.jsx)(u.Rr,{value:"Name",...e})}),O.display({id:"data-uses",cell:e=>{let{row:t}=e;return(0,n.jsx)(M,{system:t.original})},header:e=>(0,n.jsx)(u.Rr,{value:"Data uses",...e}),meta:{disableRowClick:!0},minSize:280}),O.display({id:"actions",cell:e=>(0,n.jsx)(z,{onDetailClick:()=>R(e.row.original.fides_key)}),maxSize:20,enableResizing:!1,meta:{cellProps:{borderLeft:"none"},disableRowClick:!0}})],[]),A=(0,o.b7)({getCoreRowModel:(0,r.sC)(),getGroupedRowModel:(0,r.qe)(),getExpandedRowModel:(0,r.rV)(),getRowId:e=>e.fides_key,manualPagination:!0,columnResizeMode:"onChange",columns:U,data:q,onRowSelectionChange:t,state:{rowSelection:e}});return k?(0,n.jsx)(u.I4,{rowHeight:36,numRows:36}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(u.ZK,{tableInstance:A,emptyTableNotice:(0,n.jsx)(m.Z,{}),onRowClick:B,getRowIsClickable:e=>{var t;return!!(null===(t=e.connection_configs)||void 0===t?void 0:t.key)}}),(0,n.jsx)(u.s8,{totalRows:T||0,pageSizes:s,setPageSize:f,onPreviousPageClick:x,isPreviousPageDisabled:v,onNextPageClick:h,isNextPageDisabled:y,startRange:j,endRange:b}),(0,n.jsx)(I,{system:P,onClose:()=>R(void 0),onEdit:()=>i.push({pathname:c.Dv,query:{id:N}})})]})},U=()=>(0,n.jsxs)(s.Z,{title:"Data catalog",children:[(0,n.jsx)(a.Z,{heading:"Data catalog",breadcrumbItems:[{title:"All systems"}]}),(0,n.jsx)(B,{})]})},31883:function(e,t,i){"use strict";i.d(t,{Bw:function(){return n.Bw},D4:function(){return n.D4}});var n=i(19043)},72707:function(e){e.exports={option:"TaxonomySelect_option__vY6v2"}},34151:function(e){e.exports={advancedSettings:"EditMinimalDataUseModal_advancedSettings___i9jS"}}},function(e){e.O(0,[8765,9278,5163,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([[6721],{74833:function(e,t,n){var r=n(56127),i=/^\s+/;e.exports=function(e){return e?e.slice(0,r(e)+1).replace(i,""):e}},56632:function(e,t,n){var r=n(89278),i=n(80068),a=n(50098);e.exports=function(e){return function(t,n,l){var o=Object(t);if(!i(t)){var s=r(n,3);t=a(t),n=function(e){return s(o[e],e,o)}}var c=e(t,n,l);return c>-1?o[s?t[c]:c]:void 0}}},56127:function(e){var t=/\s/;e.exports=function(e){for(var n=e.length;n--&&t.test(e.charAt(n)););return n}},66726:function(e,t,n){var r=n(11611),i=n(82846),a=n(91936),l=Math.max,o=Math.min;e.exports=function(e,t,n){var s,c,u,d,p,f,m=0,h=!1,g=!1,v=!0;if("function"!=typeof e)throw TypeError("Expected a function");function y(t){var n=s,r=c;return s=c=void 0,m=t,d=e.apply(r,n)}function _(e){var n=e-f,r=e-m;return void 0===f||n>=t||n<0||g&&r>=u}function x(){var e,n,r,a=i();if(_(a))return S(a);p=setTimeout(x,(e=a-f,n=a-m,r=t-e,g?o(r,u-n):r))}function S(e){return(p=void 0,v&&s)?y(e):(s=c=void 0,d)}function E(){var e,n=i(),r=_(n);if(s=arguments,c=this,f=n,r){if(void 0===p)return m=e=f,p=setTimeout(x,t),h?y(e):d;if(g)return clearTimeout(p),p=setTimeout(x,t),y(f)}return void 0===p&&(p=setTimeout(x,t)),d}return t=a(t)||0,r(n)&&(h=!!n.leading,u=(g="maxWait"in n)?l(a(n.maxWait)||0,t):u,v="trailing"in n?!!n.trailing:v),E.cancel=function(){void 0!==p&&clearTimeout(p),m=0,s=f=c=p=void 0},E.flush=function(){return void 0===p?d:S(i())},E}},64925:function(e,t,n){var r=n(56632)(n(66259));e.exports=r},66259:function(e,t,n){var r=n(95372),i=n(89278),a=n(47991),l=Math.max;e.exports=function(e,t,n){var o=null==e?0:e.length;if(!o)return -1;var s=null==n?0:a(n);return s<0&&(s=l(o+s,0)),r(e,i(t,3),s)}},82846:function(e,t,n){var r=n(77400);e.exports=function(){return r.Date.now()}},94919:function(e,t,n){var r=n(91936),i=1/0;e.exports=function(e){return e?(e=r(e))===i||e===-i?(e<0?-1:1)*17976931348623157e292:e==e?e:0:0===e?e:0}},47991:function(e,t,n){var r=n(94919);e.exports=function(e){var t=r(e),n=t%1;return t==t?n?t-n:t:0}},91936:function(e,t,n){var r=n(74833),i=n(11611),a=n(55193),l=0/0,o=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,c=/^0o[0-7]+$/i,u=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(a(e))return l;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=r(e);var n=s.test(e);return n||c.test(e)?u(e.slice(2),n?2:8):o.test(e)?l:+e}},83806:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/data-discovery/action-center/datastore/[monitorId]",function(){return n(33569)}])},30952:function(e,t,n){"use strict";n.d(t,{f:function(){return s}});var r=n(24246),i=n(66726),a=n.n(i),l=n(27378),o=n(26917);let s=e=>{let{value:t,onChange:n,placeholder:i,...s}=e,[c,u]=(0,l.useState)(t);(0,l.useEffect)(()=>{u(t||"")},[t]);let d=a()(n,500),p=(0,l.useCallback)(e=>{u(e),d(e)},[]);return(0,r.jsx)(o.Z,{value:c,onChange:p,onClear:()=>{u(""),n("")},placeholder:i,...s})}},35287:function(e,t,n){"use strict";var r=n(24246),i=n(98227),a=n(88038),l=n.n(a);n(27378),t.Z=e=>{let{children:t,title:n,fullHeight:a,fullWidth:o,mainProps:s}=e;return(0,r.jsxs)(i.kCb,{"data-testid":n,direction:"column",height:a?"100vh":"calc(100vh - 48px)",width:o?"100vw":"calc(100vw - 240px)",children:[(0,r.jsxs)(l(),{children:[(0,r.jsxs)("title",{children:["Fides Admin UI - ",n]}),(0,r.jsx)("meta",{name:"description",content:"Privacy Engineering Platform"}),(0,r.jsx)("link",{rel:"icon",href:"/favicon.ico"})]}),(0,r.jsx)(i.kCb,{px:10,py:6,as:"main",overflow:"auto",direction:"column",flex:1,minWidth:0,...s,children:t})]})}},58754:function(e,t,n){"use strict";var r=n(24246),i=n(98227),a=n(70788);t.Z=e=>{let{heading:t,breadcrumbItems:n,isSticky:l=!0,children:o,rightContent:s,style:c,...u}=e;return(0,r.jsxs)("div",{...u,style:l?{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,r.jsxs)(i.jqI,{justify:"space-between",children:["string"==typeof t?(0,r.jsx)(i.lQT,{className:n||o?"pb-4":void 0,level:1,"data-testid":"page-heading",children:t}):t,s&&(0,r.jsx)("div",{"data-testid":"page-header-right-content",children:s})]}),!!n&&(0,r.jsx)(a.m,{className:o?"pb-4":void 0,items:n,"data-testid":"page-breadcrumb"}),o]})}},12627:function(e,t,n){"use strict";var r=n(24246),i=n(79283),a=n(34929);t.Z=e=>{let{selectedTaxonomies:t,showDisabled:n=!1,...l}=e,{getDataCategoryDisplayNameProps:o,getDataCategories:s}=(0,a.Z)(),c=(n?s():s().filter(e=>e.active)).filter(e=>!(null==t?void 0:t.includes(e.fides_key))).map(e=>{let{name:t,primaryName:n}=o(e.fides_key);return{value:e.fides_key,name:t,primaryName:n,description:e.description||""}});return(0,r.jsx)(i.l,{options:c,...l})}},79283:function(e,t,n){"use strict";n.d(t,{l:function(){return u}});var r=n(24246),i=n(98227),a=n(72707),l=n.n(a);let o=e=>{let{data:{formattedTitle:t,description:n,name:a,primaryName:l}}=e;return(0,r.jsxs)(i.jqI,{gap:12,title:"".concat(t," - ").concat(n),children:[(0,r.jsxs)("div",{children:[(0,r.jsx)("strong",{children:l||a}),l&&": ".concat(a)]}),(0,r.jsx)("em",{children:n})]})},s=e=>"options"in e&&Array.isArray(e.options),c=e=>({...e,className:l().option,formattedTitle:e.formattedTitle||[e.primaryName,e.name].filter(e=>e).join(": ")}),u=e=>{let{options:t,...n}=e,a=null==t?void 0:t.map(e=>s(e)?{...e,options:e.options.map(c)}:c(e));return(0,r.jsx)(i.WPr,{options:a,filterOption:(e,t)=>{var n,r;return(null==t?void 0:null===(n=t.formattedTitle)||void 0===n?void 0:n.toLowerCase().includes(e.toLowerCase()))||(null==t?void 0:null===(r=t.value)||void 0===r?void 0:r.toLowerCase().includes(e.toLowerCase()))||!1},optionFilterProp:"label",autoFocus:!0,variant:"borderless",optionRender:o,styles:{popup:{root:{minWidth:"500px"}}},className:"w-full p-0","data-testid":"taxonomy-select",...n})}},34929:function(e,t,n){"use strict";var r=n(24246),i=n(64925),a=n.n(i),l=n(27378),o=n(16134),s=n(30002),c=n(28079),u=n(57072);let d=()=>{let{isLoading:e}=(0,c.fd)(),t=(0,o.C)(c.U3),{isLoading:n}=(0,u.MO)(),r=(0,o.C)(u.qb),{isLoading:i}=(0,s.te)();return{dataUses:t,dataSubjects:(0,o.C)(s.ZL),dataCategories:r,isLoading:e||n||i}};t.Z=()=>{let{dataUses:e,dataCategories:t,dataSubjects:n,isLoading:i}=d(),o=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return e.split(".").slice(0,t).join(".")},s=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,r=t(e);if(!r)return{};let i=t(o(e,n)),a=!!r.parent_key;return{name:r.name||void 0,primaryName:a&&(null==i?void 0:i.name)!==r.name&&(null==i?void 0:i.name)||void 0}},c=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,{name:i,primaryName:a}=s(e,t,n);return i?a?(0,r.jsxs)(l.Fragment,{children:[(0,r.jsxs)("strong",{children:[a,":"]})," ",i]},e):(0,r.jsx)("strong",{children:i},e):e},u=t=>a()(e,{fides_key:t}),p=e=>a()(t,{fides_key:e}),f=e=>a()(n,{fides_key:e});return{getDataUses:()=>e,getDataUseByKey:u,getDataUseDisplayName:e=>c(e,u,1),getDataUseDisplayNameProps:e=>s(e,u,1),getDataCategories:()=>t,getDataCategoryByKey:p,getDataCategoryDisplayName:e=>c(e,p,2),getDataCategoryDisplayNameProps:e=>s(e,p,2),getDataSubjects:()=>n,getDataSubjectByKey:f,getDataSubjectDisplayName:e=>{let t=f(e);return t?t.name:e},getPrimaryKey:o,isLoading:i}}},70788:function(e,t,n){"use strict";n.d(t,{m:function(){return c}});var r=n(24246),i=n(98227),a=n(79894),l=n.n(a),o=n(27378);let{Text:s}=i.AntTypography,c=e=>{let{items:t,...n}=e,a=(0,o.useMemo)(()=>null==t?void 0:t.map((e,n)=>{let a=n===t.length-1,o={...e},c=o.onClick&&!o.href;return("string"==typeof o.title&&(o.title=(0,r.jsx)(s,{style:{color:"inherit",maxWidth:a?void 0:400},ellipsis:!a,id:a?"breadcrumb-current-page":void 0,children:o.title})),c)?o.title=(0,r.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,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("span",{className:"anticon align-text-bottom",children:o.icon}),o.title]})),o.href&&o.title&&(o.title=(0,r.jsx)(l(),{href:o.href,className:"ant-breadcrumb-link",children:o.title}),delete o.href)),o}),[t]);return(0,r.jsx)(i.zrq,{items:a,...n})}},9270:function(e,t,n){"use strict";n.d(t,{S:function(){return a}});var r=n(27378),i=n(36866);let a=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=(0,i.h)(e),{pageIndex:n,pageSize:a,updatePageIndex:l,updatePageSize:o,pageSizeOptions:s,showSizeChanger:c}=t,u=(0,r.useMemo)(()=>({current:n,pageSize:a,showSizeChanger:c,pageSizeOptions:s.map(String),onChange:l,onShowSizeChange:(e,t)=>{o(t)}}),[n,a,c,s,l,o]);return{...t,paginationProps:u}}},59001:function(e,t,n){"use strict";n.d(t,{Ch:function(){return s},Lo:function(){return l},_g:function(){return c},ac:function(){return a},aq:function(){return u}});var r,i,a,l,o=n(65735);let s="root";(r=a||(a={})).DATA_CATEGORY="data_category",r.DATA_USE="data_use",r.DATA_SUBJECT="data_subject",r.SYSTEM_GROUP="system_group",(i=l||(l={})).DATA_CATEGORIES="Data categories",i.DATA_USES="Data uses",i.DATA_SUBJECTS="Data subjects",i.SYSTEM_GROUPS="System groups";let c=e=>{switch(e){case"data_category":return"Data categories";case"data_use":return"Data uses";case"data_subject":return"Data subjects";case"system_group":return"System groups";default:return e}},u=e=>{switch(e){case"data_category":return{UPDATE:o.Sh.DATA_CATEGORY_UPDATE,CREATE:o.Sh.DATA_CATEGORY_CREATE,DELETE:o.Sh.DATA_CATEGORY_DELETE,READ:o.Sh.DATA_CATEGORY_READ};case"data_use":return{UPDATE:o.Sh.DATA_USE_UPDATE,CREATE:o.Sh.DATA_USE_CREATE,DELETE:o.Sh.DATA_USE_DELETE,READ:o.Sh.DATA_USE_READ};case"data_subject":return{UPDATE:o.Sh.DATA_SUBJECT_UPDATE,CREATE:o.Sh.DATA_SUBJECT_CREATE,DELETE:o.Sh.DATA_SUBJECT_DELETE,READ:o.Sh.DATA_SUBJECT_READ};case"system_group":return{UPDATE:o.Sh.SYSTEM_GROUP_UPDATE,CREATE:o.Sh.SYSTEM_GROUP_CREATE,DELETE:o.Sh.SYSTEM_GROUP_DELETE,READ:o.Sh.SYSTEM_GROUP_READ};default:return{UPDATE:o.Sh.TAXONOMY_UPDATE,CREATE:o.Sh.TAXONOMY_CREATE,DELETE:o.Sh.TAXONOMY_DELETE,READ:o.Sh.TAXONOMY_READ}}}},90673:function(e,t,n){"use strict";n.d(t,{Cd:function(){return a},Xl:function(){return l}});var r=n(65735),i=n(59001);let a=(e,t)=>{let n;if(null==t&&e.every(e=>void 0===e.parent_key))n=e;else{let r=null!=t?t:null;n=e.filter(e=>e.parent_key===r)}return n.map(t=>{var n,r;let i=t.fides_key;return{value:t.fides_key,label:t.name||t.fides_key,description:t.description,children:a(e,i),is_default:null!==(n=t.is_default)&&void 0!==n&&n,active:null!==(r=t.active)&&void 0!==r&&r}})},l=e=>{switch(e){case i.ac.DATA_CATEGORY:return r.P6.DATA_CATEGORY;case i.ac.DATA_SUBJECT:return r.P6.DATA_SUBJECT;case i.ac.DATA_USE:return r.P6.DATA_USE;default:return}}},57072:function(e,t,n){"use strict";n.d(t,{Bd:function(){return r.Bd},L5:function(){return r.L5},MO:function(){return r.MO},qb:function(){return r.qb}});var r=n(5785)},39864:function(e,t,n){"use strict";n.d(t,{Cy:function(){return l},J1:function(){return a},MU:function(){return r},ci:function(){return i},d9:function(){return o}});let{useGetCustomTaxonomiesQuery:r,useLazyGetTaxonomyQuery:i,useCreateTaxonomyMutation:a,useUpdateTaxonomyMutation:l,useDeleteTaxonomyMutation:o}=n(78780).u.injectEndpoints({endpoints:e=>({getCustomTaxonomies:e.query({query:()=>({url:"taxonomies"})}),getTaxonomy:e.query({query:e=>({url:"taxonomies/".concat(e)}),providesTags:(e,t,n)=>[{type:"Taxonomy",id:n}],transformResponse:e=>{let t=[],n=[...e],r=n.filter(e=>null===e.parent_key);r.sort((e,t)=>e.fides_key.localeCompare(t.fides_key)),t.push(...r);let i=n.filter(e=>null!==e.parent_key);for(;i.length>0;){let e=i.filter(e=>t.some(t=>t.fides_key===e.parent_key));if(0===e.length){t.push(...i.sort((e,t)=>e.fides_key.localeCompare(t.fides_key)));break}e.sort((e,t)=>e.fides_key.localeCompare(t.fides_key)),t.push(...e),i=i.filter(t=>!e.includes(t))}return t}}),createTaxonomy:e.mutation({query:e=>{let{taxonomyType:t,...n}=e;return{url:"taxonomies/".concat(t),method:"POST",body:n}},invalidatesTags:(e,t,n)=>{let{taxonomyType:r}=n;return[{type:"Taxonomy",id:r}]}}),updateTaxonomy:e.mutation({query:e=>{let{taxonomyType:t,...n}=e;return{url:"taxonomies/".concat(t),method:"PUT",body:n}},invalidatesTags:(e,t,n)=>{let{taxonomyType:r}=n;return[{type:"Taxonomy",id:r}]}}),deleteTaxonomy:e.mutation({query:e=>{let{taxonomyType:t,key:n}=e;return{url:"taxonomies/".concat(t,"/").concat(n),method:"DELETE"}},invalidatesTags:(e,t,n)=>{let{taxonomyType:r}=n;return[{type:"Taxonomy",id:r}]}})})})},33569:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return ez}});var r,i,a,l,o=n(24246),s=n(98227),c=n(25980),u=n(3124),d=n.n(u),p=n(86677),f=n(27378),m=n(16394);(r=a||(a={})).LOW="low",r.HIGH="high",r.MANUAL="manual";let h=e=>{let{percent:t,confidenceScore:n}=e;return null};var g=n(30952),v=n(12627),y=n(35287),_=n(17245),x=n(77830),S=n(58754),E=n(9270),A=n(37059),T=n(65735);(i=l||(l={})).CLASSIFY="classify",i.APPROVE="approve",i.UN_APPROVE="un-approve",i.PROMOTE="promote",i.PROMOTE_REMOVALS="promote-removals",i.MUTE="mute",i.UN_MUTE="un-mute",i.ASSIGN_CATEGORIES="assign-categories";var j=n(98784),C=n.n(j);let b=e=>{let{itemKey:t,actions:n}=e;return C().isEmpty(n)?null:(0,o.jsx)(s.jqI,{gap:"small",justify:"flex-end",children:n.map((e,r)=>{let{callback:i,label:a,disabled:l}=e;return(0,o.jsx)(s.wpx,{onClick:()=>i(t),type:r===n.length-1?"primary":"default",disabled:l,children:a},a)})})},D=e=>{let{title:t,titleIcon:n,titleTag:r}=e;return(0,o.jsxs)(s.jqI,{align:"center",gap:"small",children:[n,(0,o.jsx)("span",{children:t}),r&&(0,o.jsx)(s.j8w,{...r})]})},k=e=>{let{title:t,titleIcon:n,titleTag:r,actions:i,width:a=480,...l}=e;return(0,o.jsx)(s.To0,{title:(0,o.jsx)(D,{title:t,titleIcon:n,titleTag:r}),footer:l.footer||!i?l.footer:(0,o.jsx)(b,{itemKey:l.itemKey,actions:i}),width:a,...l})},R={approve:"Approve","assign-categories":"Assign categories",classify:"Classify",mute:"Ignore",promote:"Confirm","promote-removals":"Promote removals","un-approve":"Un-approve","un-mute":"Restore"},I={approve:"Approving","assign-categories":"Updating data categories",classify:"Classifying",mute:"Ignoring",promote:"Confirming","promote-removals":"Promoting removals","un-approve":"Un-approving","un-mute":"Restoring"},P={approve:"Approved","assign-categories":"Data category updated",classify:"Classified",mute:"Ignored",promote:"Confirmed","promote-removals":"Promoted removals","un-approve":"Un-approved","un-mute":"Restored"},w=[l.APPROVE,l.PROMOTE],O=[l.CLASSIFY,l.APPROVE,l.PROMOTE,l.MUTE,l.UN_MUTE],M=[l.CLASSIFY,l.PROMOTE],U={[l.APPROVE]:"You can only approve resources with a data category applied",[l.CLASSIFY]:"You cannot classify resources that are already in classification or ignored",[l.MUTE]:"You cannot ignore resources that are already ignored",[l.PROMOTE]:"You can only confirm resources that have a data category applied",[l.UN_MUTE]:"You can only restore resources that are ignored"},L={"In Review":[l.CLASSIFY,l.MUTE,l.APPROVE,l.PROMOTE],Approved:[l.MUTE,l.PROMOTE],Classifying:[],Confirmed:[],Ignored:[l.UN_MUTE],Removed:[],Unlabeled:[l.ASSIGN_CATEGORIES,l.CLASSIFY],"Confirming...":[]},N={"assign-categories":null,"promote-removals":null,"un-approve":null,"un-mute":(0,o.jsx)(s.PJP.G7x,{}),approve:(0,o.jsx)(s.PJP.MCw,{}),classify:(0,o.jsx)(s.QMR,{size:14}),mute:(0,o.jsx)(s.PJP.uzw,{}),promote:(0,o.jsx)(s.PJP.MCw,{})},q={"assign-categories":e=>null,"promote-removals":e=>null,"un-approve":e=>null,"un-mute":e=>"Are you sure you want to restore ".concat(e.toLocaleString()," resources?"),approve:e=>"Are you sure you want to approve ".concat(e.toLocaleString()," resources?"),classify:e=>"Are you sure you want to run the classifier and apply data categories to ".concat(e.toLocaleString()," unlabeled resources?"),mute:e=>"Are you sure you want to ignore ".concat(e.toLocaleString()," resources? After ignoring, these resources may reappear in future scans."),promote:e=>"Are you sure you want to confirm these ".concat(e.toLocaleString()," resources? After confirming this data can be used for policy automation and DSRs. ")},F={onCancel:async()=>!1,onOk:async()=>!0,icon:null,width:542},{useFieldActionsMutation:Y,useGetMonitorFieldsQuery:G,useLazyGetAllowedActionsQuery:z}=n(78780).u.injectEndpoints({endpoints:e=>({getMonitorFields:e.query({query:e=>{let{path:{monitor_config_id:t},query:{page:n=1,size:r=20,search:i,diff_status:a,confidence_score:l,...o}}=e,s=(0,m.$J)({...o,...i?{search:[i]}:{},...a?{diff_status:a}:{},...l?{confidence_score:l}:{}});return{url:"/plus/discovery-monitor/".concat(t,"/fields?").concat(null==s?void 0:s.toString()),params:{page:n,size:r}}},providesTags:["Monitor Field Results"]}),fieldActions:e.mutation({query:e=>{let{path:{monitor_config_id:t,action_type:n},query:{search:r,diff_status:i,confidence_score:a,...l},...o}=e,s=(0,m.$J)({...l,...r?{search:[r]}:{},...i?{diff_status:i}:{},...a?{confidence_score:a}:{}});return{url:"/plus/discovery-monitor/".concat(t,"/fields/").concat(n,"?").concat(s.toString()),method:"POST",body:o}},invalidatesTags:["Monitor Field Results","Monitor Field Details"]}),getAllowedActions:e.query({query:e=>{let{path:{monitor_config_id:t},query:{search:n,diff_status:r,confidence_score:i,...a},...l}=e,o=(0,m.$J)({...a,...n?{search:[n]}:{},...r?{diff_status:r}:{},...i?{confidence_score:i}:{}});return{url:"/plus/discovery-monitor/".concat(t,"/fields/allowed-actions?").concat(o.toString()),method:"POST",body:l}},providesTags:["Allowed Monitor Field Actions"]})})});var J=n(59001),B=n(90673),$=n(39864);let K="load_more",V="skeleton",Z=["Unlabeled","Classifying","In Review","Approved","Confirming...","Confirmed","Removed","Ignored"],W=["Confirmed","Ignored","Confirming..."],Q=e=>e.filter(e=>!W.includes(e)),H={addition:"Unlabeled",approved:"Approved",classification_addition:"In Review",classification_queued:"Classifying",classification_update:"In Review",classifying:"Classifying",monitored:"Confirmed",muted:"Ignored",promoting:"Confirming...",removal:"Removed",removing:"In Review"},X={addition:{label:"Unlabeled"},approved:{label:"Approved",color:s.tAb.SUCCESS},classification_addition:{label:"In Review",color:s.tAb.CAUTION},classification_queued:{label:"Classifying",color:s.tAb.INFO},classification_update:{label:"In Review",color:s.tAb.CAUTION},classifying:{label:"Classifying",color:s.tAb.INFO},monitored:{label:"Confirmed",color:s.tAb.MINOS},muted:{label:"Ignored",color:s.tAb.DEFAULT},promoting:{label:"Confirming...",color:s.tAb.DEFAULT},removal:{label:"Removed",color:s.tAb.ERROR},removing:{label:"In Review",color:s.tAb.CAUTION}},ee={[T.D$.DATABASE]:s.PJP.S9g,[T.D$.FIELD]:s.PJP.sgG,[T.D$.SCHEMA]:s.PJP.ehp,[T.D$.TABLE]:s.PJP.iA_},et={STATUS:"status-section",DATA_CATEGORY:"data-category-section",CONFIDENCE:"confidence-section"},en={[T.Ag.ADDITION]:{color:d().FIDESUI_SUCCESS,tooltip:"This resource was added in the latest scan"},[T.Ag.REMOVAL]:{color:d().FIDESUI_ERROR,tooltip:"This resource was removed in the latest scan"},[T.Ag.CHANGE]:{color:d().FIDESUI_WARNING,tooltip:"This resource was modified in the latest scan"}},er=(e,t)=>{if(!e||0===e.length)return[];let n=(e,t)=>{let r=t=>{if(t.value===e)return{title:t.label||e,children:t.children||[]};if(t.children&&t.children.length>0){let r=n(e,t.children);if(r)return r}return null};return t.reduce((e,t)=>null!=e?e:r(t),null)},r=new Map;e.forEach(e=>{let i=e.split(".");i.forEach((e,a)=>{let l=i.slice(0,a+1).join(".");if(!r.has(l)){let e=n(l,t);r.set(l,{title:(null==e?void 0:e.title)||(0,m.kC)(l.split(".").pop()||l),key:l,checkable:!0,selectable:!1})}})});let i=Array.from(r.values()),a=new Map;i.forEach(e=>{let t=e.key.toString().split(".");if(t.length>1){let n=t.slice(0,-1).join(".");a.has(n)||a.set(n,[]),a.get(n).push(e)}});let l=e=>(a.get(e)||[]).map(e=>{let t=l(e.key.toString());return{...e,children:t.length>0?t:void 0,isLeaf:0===t.length}});return i.filter(e=>1===e.key.toString().split(".").length).map(e=>{let t=l(e.key.toString());return{...e,children:t.length>0?t:void 0,isLeaf:0===t.length}})},ei=e=>{let{resourceStatus:t,setResourceStatus:n,dataCategory:r,setDataCategory:i,resetToInitialState:a,monitorId:l,stagedResourceUrn:c}=e,[u,d]=(0,f.useState)(t),[p,m]=(0,f.useState)(r),[h,g]=(0,f.useState)([et.STATUS]);(0,f.useEffect)(()=>{d(t)},[t]),(0,f.useEffect)(()=>{m(r)},[r]);let v=c.join(",");(0,f.useEffect)(()=>{a()},[v]);let{data:y,refetch:_}=(0,A.S0)({monitor_config_id:l,staged_resource_urn:c},{refetchOnMountOrArgChange:!0}),[x,{data:S=[]}]=(0,$.ci)();(0,f.useEffect)(()=>{x(J.ac.DATA_CATEGORY)},[x]);let E=(0,f.useMemo)(()=>(0,B.Cd)(S),[S]),T=(0,f.useMemo)(()=>[...Z],[]),j=(0,f.useMemo)(()=>T.map(e=>({title:e.replace(/\.{3}$/,""),key:e,checkable:!0,selectable:!1,isLeaf:!0})),[T]),C=(0,f.useMemo)(()=>(null==y?void 0:y.data_category)&&0!==y.data_category.length?er(y.data_category,E):[],[null==y?void 0:y.data_category,E]),b=(0,f.useMemo)(()=>{let e=[];return j.length>0&&e.push({title:"Status",key:et.STATUS,checkable:!0,selectable:!1,isLeaf:!1,children:j}),C.length>0&&e.push({title:"Data category",key:et.DATA_CATEGORY,checkable:!0,selectable:!1,isLeaf:!1,children:C}),e},[j,C]),D=(0,f.useMemo)(()=>{let e=[];return u&&e.push(...u),p&&e.push(...p),Array.from(new Set(e))},[u,p]),k=(0,f.useMemo)(()=>{let e=0;return t&&(e+=new Set(t).size),r&&(e+=new Set(r).size),e},[t,r]);return(0,o.jsx)(s.wn$,{treeProps:{checkable:!0,checkedKeys:D,onCheck:e=>{let t=Array.isArray(e)?e:e.checked,n=[],r=[],i=Object.values(et),a=(e,t)=>t.some(t=>t!==e&&t.startsWith("".concat(e,"."))),l=t.map(e=>e.toString());t.forEach(e=>{let t=e.toString();!i.includes(t)&&((null==T?void 0:T.includes(t))?n.push(t):a(t,l)||r.push(t))}),d(n.length>0?n:[]),m(r.length>0?r:[])},treeData:b,expandedKeys:h,onExpand:e=>{g(e)}},onApply:()=>{n(u&&u.length>0?Array.from(new Set(u)):u),i(p&&p.length>0?Array.from(new Set(p)):p)},onReset:()=>{a(),d(Q(T)),m([])},onClear:()=>{d([]),m([])},onOpenChange:e=>{if(e){_();return}d(t),m(r)},activeFiltersCount:k})},ea=e=>{switch(e){case 1:return T.D$.DATABASE;case 2:return T.D$.SCHEMA;case 3:return T.D$.TABLE;default:return T.D$.FIELD}},el=e=>{if(!e||"string"!=typeof e)return[];let t=e.trim();if(!t)return[];let n=t.split(".");if(n.length<2)return[];let r=n.filter(e=>e&&e.trim().length>0);return r.length<2?[]:(r.shift(),r.length>0&&r.pop(),0===r.length)?[]:r.map((e,t)=>{let n=ee[ea(t+1)];return{title:e.trim(),IconComponent:n}})};var eo=n(79283),es=n(34929),ec=e=>{let{onSelectDataCategory:t,...n}=e,{getDataCategoryDisplayNameProps:r,getDataCategories:i}=(0,es.Z)(),a=i().filter(e=>e.active),[l,c]=(0,f.useState)(!1),u=a.map(e=>{let{name:t,primaryName:n}=r(e.fides_key);return{value:e.fides_key,label:(0,o.jsxs)("div",{children:[(0,o.jsx)("strong",{children:n||t}),n&&": ".concat(t)]}),name:t,primaryName:n,description:e.description||""}});return(0,o.jsx)(eo.l,{options:u,prefix:(0,o.jsx)(s.wpx,{"aria-label":"Add Data Category",type:"text",size:"small",icon:(0,o.jsx)(s.PJP.mm_,{})}),placeholder:"",suffixIcon:null,classNames:{root:"w-full max-w-full overflow-hidden p-0 cursor-pointer -ml-5"},variant:"borderless",autoFocus:!1,maxTagCount:"responsive",open:l,onOpenChange:e=>c(e),onSelect:e=>{t(e),c(!1)},...n})},eu=n(97947),ed=n.n(eu);let ep=e=>{let{label:t,closable:n,onClose:r,isFromClassifier:i}=e;return(0,o.jsx)(s.j8w,{color:"white",bordered:!0,onMouseDown:e=>{e.preventDefault(),e.stopPropagation()},closable:n,onClose:r,style:{marginInlineEnd:"calc((var(--ant-padding-xs) * 0.5))"},icon:i&&(0,o.jsx)(s.QMR,{}),children:(0,o.jsx)(s.lKn,{size:"sm",children:t})})},ef=e=>{let{title:t,IconComponent:n}=e;return{title:n?(0,o.jsxs)(s.jqI,{gap:3,align:"center",children:[(0,o.jsx)(n,{}),(0,o.jsx)("span",{children:t})]}):t}};var em=e=>{let{urn:t,classifications:n,name:r,diff_status:i,selected:l,onSelect:c,onSetDataCategories:u,onNavigate:d,preferred_data_categories:p,actions:f}=e;return(0,o.jsx)(s.krs.Item,{actions:[n&&n.length>0&&(0,o.jsx)(h,{percent:n.find(e=>e.confidence_score===a.HIGH)?100:25}),...null!=f?f:[]],children:(0,o.jsx)(s.krs.Item.Meta,{avatar:(0,o.jsx)(s.E_O,{checked:l,onChange:e=>c&&c(t,e.target.checked)}),title:(0,o.jsxs)(s.jqI,{gap:12,align:"center",className:ed()["monitor-field__title"],children:[(0,o.jsx)(s.wpx,{type:"text",size:"small",className:"-mx-2",onClick:()=>d&&d(t),children:r}),i&&i!==T.LL.ADDITION&&(0,o.jsx)(s.j8w,{bordered:!1,color:X[i].color,children:X[i].label}),(0,o.jsx)(s.esZ,{title:t,mouseEnterDelay:.5,children:(0,o.jsx)(s.zrq,{className:ed()["monitor-field__breadcrumb"],items:el(t).map(ef),role:"presentation",style:{overflow:"hidden"}})})]}),description:(0,o.jsx)(ec,{mode:"multiple",value:null!=p?p:[],tagRender:e=>{let r=!!(null==n?void 0:n.find(t=>t.label===e.value));return ep({...e,isFromClassifier:r,onClose:()=>{var n;u(t,null!==(n=null==p?void 0:p.filter(t=>t!==e.value))&&void 0!==n?n:[])}})},onSelectDataCategory:e=>{(null==p?void 0:p.includes(e))||u(t,[...null!=p?p:[],e])}})})},t)},eh=n(812);let eg=(e,t)=>e.find(e=>{let{children:n}=e;return n&&!!n.find(e=>e.key.toString()===t)}),ev=(e,t)=>e.reduce((e,n)=>{if(n.children){var r;return null!==(r=eg(n.children,t))&&void 0!==r?r:ev(n.children,t)}return e},null),ey=e=>{let{node:t,treeData:n,onLoadMore:r}=e;if(!t.title)return null;if(t.key.toString().startsWith(K)){let e=ev(n,t.key.toString());return(0,o.jsx)(s.wpx,{type:"link",block:!0,onClick:()=>{(null==e?void 0:e.key)&&r(e.key.toString())},className:"p-0",children:t.title})}if(t.key.toString().startsWith(V))return(0,o.jsx)(s.N_L,{paragraph:!1,title:{width:"80px"},active:!0,children:t.title});let i=t.status?en[t.status]:null;return(0,o.jsxs)(s.jqI,{gap:4,align:"center",className:"inline-flex",children:[i&&(0,o.jsx)(s.esZ,{title:i.tooltip,children:(0,o.jsx)(s.PJP.fRw,{className:"size-2",style:{color:i.color}})}),(0,o.jsx)(s.lKn,{ellipsis:{tooltip:t.title},children:t.title})]})},e_=(e,t,n)=>e.map(e=>e.key===t?{...e,status:n}:e.children?{...e,children:e_(e.children,t,n)}:e),ex=(e,t)=>e.map(e=>{if(e.key===t){let{children:t,...n}=e;return n}return e.children?{...e,children:ex(e.children,t)}:e}),eS=e=>{let t=[];return e.children&&e.children.length>0&&e.children.forEach(e=>{"string"==typeof e.key&&(t.push(e.key),t.push(...eS(e)))}),t},eE=(e,t)=>{for(let n of e){if(n.key===t)return n;if(n.children){let e=eE(n.children,t);if(e)return e}}},eA=(e,t)=>{var n;let r=e.items.map(e=>{let t=e.resource_type?ee[e.resource_type]:void 0;return{title:e.name,key:e.urn,selectable:!0,icon:t?()=>(0,o.jsx)(t,{className:"h-full"}):void 0,status:e.update_status,isLeaf:!e.has_grandchildren}});return(null!==(n=null==r?void 0:r.length)&&void 0!==n?n:0)<100?r:[...r,{title:"Load more...",key:"".concat(K,"-").concat(e.page,"-").concat(t),selectable:!1,isLeaf:!0}]},eT=(e,t,n)=>e.map(e=>{if(e.key===t){var r,i;return{...e,children:[...null!==(i=null===(r=e.children)||void 0===r?void 0:r.filter(e=>!(e.key.toString().startsWith(K)||e.key.toString().startsWith(V))))&&void 0!==i?i:[],...n]}}return e.children?{...e,children:eT(e.children,t,n)}:e}),ej=(e,t,n)=>e.map(e=>e.key===t?{...e,children:n}:e.children?{...e,children:ej(e.children,t,n)}:e),eC=(e,t,n)=>e.map(e=>{if(e.key===t){var r;let t=(null!==(r=e.children)&&void 0!==r?r:[]).filter(e=>!(e.key.toString().startsWith(K)||e.key.toString().startsWith(V))),i=new Map(n.map(e=>[e.key,e])),a=new Map(t.map(e=>[e.key,e])),l=t.map(e=>{let t=i.get(e.key);return null!=t?t:e});return n.forEach(e=>{a.has(e.key)||l.push(e)}),{...e,children:l}}return e.children?{...e,children:eC(e.children,t,n)}:e}),eb=(0,f.forwardRef)((e,t)=>{let{selectedNodeKeys:n,setSelectedNodeKeys:r,onClickClassifyButton:i}=e,a=(0,p.useRouter)(),{errorAlert:l}=(0,_.VY)(),c=decodeURIComponent(a.query.monitorId),[u]=(0,A.RV)(),[d]=(0,A.M8)(),[m,h]=(0,f.useState)({}),[g,v]=(0,f.useState)([]),[y,x]=(0,f.useState)([]),S=(0,f.useRef)({}),E=(0,f.useRef)({}),T=(0,f.useCallback)(async e=>{var t;let{nodeKey:n,queryParams:r,fastUpdateFn:i,detailedUpdateFn:a}=e,l=(null!==(t=S.current[n])&&void 0!==t?t:0)+1;S.current[n]=l;let o=u({...r,include_descendant_details:!1}),s=u({...r,include_descendant_details:!0});o.then(e=>{let{data:t}=e;t&&S.current[n]===l&&E.current[n]!==l&&i(t)}),s.then(e=>{let{data:t}=e;t&&S.current[n]===l&&(E.current[n]=l,(null!=a?a:i)(t))})},[u]),j=(0,f.useCallback)(e=>new Promise(t=>{let{children:n,key:r}=e;if(n){t();return}let i=r.toString();T({nodeKey:i,queryParams:{monitor_config_id:c,staged_resource_urn:i,size:100},fastUpdateFn:e=>{v(t=>ej(t,r,eA(e,i))),h(e=>({...e,[i]:{pageSize:100,pageIndex:1}}))}}),t()}),[T,c]),C=(0,f.useCallback)(e=>{let t=m[e];t&&(v(t=>eT(t,e,[...Array(100)].map((t,n)=>({key:"".concat(V,"-").concat(e,"-").concat(n),title:"SKELETON",isLeaf:!0})))),T({nodeKey:e,queryParams:{monitor_config_id:c,staged_resource_urn:e,size:100,page:t.pageIndex+1},fastUpdateFn:t=>{v(n=>eT(n,e,eA(t,e)))},detailedUpdateFn:t=>{v(n=>eC(n,e,eA(t,e))),h(t=>{var n,r;return{...t,[e]:{pageSize:100,pageIndex:(null!==(r=null===(n=t[e])||void 0===n?void 0:n.pageIndex)&&void 0!==r?r:0)+1}}})}}))},[m,T,c]),b=(0,f.useCallback)(e=>{v(t=>{let n=eE(t,e),r=[e];return n&&r.push(...eS(n)),x(e=>e.filter(e=>!r.includes(e.toString()))),h(e=>{let t={...e};return r.forEach(e=>{delete t[e]}),t}),r.forEach(e=>{delete S.current[e],delete E.current[e]}),ex(t,e)})},[]),D=(0,f.useCallback)(async e=>{let t=async e=>{try{let t=await d({monitor_config_id:c,...e&&{staged_resource_urn:e}});if(t.error){l((0,eh.e$)(t.error),"Failed to get schema explorer ancestors statuses");return}let n=t.data;if(!n)return;e?b(e):n.forEach(e=>{b(e.urn)}),v(e=>n.reduce((e,t)=>e_(e,t.urn,t.update_status),e))}catch(e){l("An unexpected error occurred while refreshing the schema explorer")}};if(0===e.length){await t();return}await Promise.all(e.map(e=>t(e)))},[d,c,b,l]),k=(0,f.useCallback)((e,t)=>{x(e),t.expanded&&!t.node.children&&j&&j(t.node)},[j]);return(0,f.useImperativeHandle)(t,()=>({refreshResourcesAndAncestors:D})),(0,f.useEffect)(()=>{(async()=>{g.length>0||T({nodeKey:"root",queryParams:{monitor_config_id:c,size:100},fastUpdateFn:e=>{v(eA(e))}})})()},[T,c,v,g.length]),(0,o.jsxs)(s.jqI,{gap:"middle",vertical:!0,className:"h-full",children:[(0,o.jsx)(s.lQT,{level:3,className:"sticky top-0",children:"Schema explorer"}),(0,o.jsx)(s.a$q,{loadData:j,treeData:g,expandedKeys:y,onExpand:k,onSelect:(e,t)=>r(t.selectedNodes.map(e=>{let{key:t}=e;return t})),showIcon:!0,showLine:!0,blockNode:!0,rootClassName:"h-full overflow-x-hidden",titleRender:e=>(0,o.jsx)(ey,{node:e,treeData:g,onLoadMore:C})}),n.length>0&&(0,o.jsxs)(s.jqI,{justify:"space-between",align:"center",children:[(0,o.jsxs)("span",{children:[n.length," selected"]}),(0,o.jsx)(s.wpx,{"aria-label":"Classify ".concat(n.length," Selected Nodes"),icon:(0,o.jsx)(s.QMR,{size:12}),size:"small",onClick:i})]})]})});eb.displayName="MonitorTree";var eD=n(31883);let ek=(e,t)=>({title:e,okText:e,content:t,...F}),eR=(e,t)=>"".concat(P[e]).concat((0,m._6)(null!=t?t:0,"","".concat(e===l.ASSIGN_CATEGORIES?" for":""," ").concat(null==t?void 0:t.toLocaleString()," resources"))),eI=e=>"".concat(P[e]," failed").concat(e===l.CLASSIFY||e===l.PROMOTE?": View summary in the activity tab":""),eP=(e,t,n,r)=>{let[i]=Y(),a=a=>async(o,s,c)=>{let u=Date.now();if(!await t.confirm(ek(R[a],q[a](c))))return;n.open({key:u,type:"loading",content:"".concat(I[a]," ").concat(c," ").concat((0,m._6)(c,"resource","resources"),"..."),duration:0});let d=await i({query:{...o.query},path:{monitor_config_id:e,action_type:a},body:{excluded_resource_urns:s}});if((0,eD.D4)(d)){n.open({key:u,type:"error",content:eI(a),duration:5});return}if(n.open({key:u,type:"success",content:eR(a,c),duration:5}),r&&a!==l.APPROVE){let e=o.query.staged_resource_urn||[];await r(e)}};return{"assign-categories":a(l.ASSIGN_CATEGORIES),"promote-removals":a(l.PROMOTE_REMOVALS),"un-approve":a(l.UN_APPROVE),"un-mute":a(l.UN_MUTE),approve:a(l.APPROVE),classify:a(l.CLASSIFY),mute:a(l.MUTE),promote:a(l.PROMOTE)}},ew=e=>e.map(e=>{let{itemKey:t}=e;return t}),eO=()=>{let[e,t]=(0,f.useState)("inclusive"),[n,r]=(0,f.useState)([]),[i,a]=(0,f.useState)([]),l=e=>{a(C().uniqBy(e,"itemKey"))},o=n.filter(e=>{let{itemKey:t}=e;return!i.find(e=>e.itemKey===t)}),s="inclusive"===e?i:o,c="exclusive"===e?i:o;return{excludedListItems:c,indeterminate:"inclusive"===e?s.length>0&&n.length!==s.length:c.length>0,isBulkSelect:"inclusive"===e?s.length>0&&n.length===s.length:0===c.length,listSelectMode:e,resetListSelect:()=>{a([]),t("inclusive")},selectedListItems:s,updateListItems:r,updateListSelectMode:e=>{t(e),a([])},updateSelectedListItem:(t,r)=>{let a=n.find(e=>t===e.itemKey);a&&((("inclusive"===e?r:!r)?"add":"remove")=="add"?l([...i,a]):l(i.filter(e=>e.itemKey!==t)))}}};var eM=n(70675);let eU=e=>{let[t,...n]=e.map(e=>L[e]);return n.reduce((e,t)=>C().intersection(e,[...t]),null!=t?t:[])},eL=(e,t,n,r)=>{let[i]=(0,eM.LI)(),[a]=(0,A.Av)(),[o]=(0,eM.zV)(),[s]=(0,eM.Hf)(),[c]=(0,eM._J)(),[u]=(0,eM.NA)(),d=(e,i)=>async(a,l)=>{let o=Date.now();if(!(1===a.length||await t.confirm(ek(R[e],q[e](a.length)))))return;n.open({key:o,type:"loading",content:"".concat(I[e]," ").concat(a.length," ").concat((0,m._6)(a.length,"resource","resources"),"..."),duration:0});let s=await i(a,l);if((0,eD.D4)(s)){n.open({key:o,type:"error",content:eI(e),duration:5});return}n.open({key:o,type:"success",content:eR(e,a.length),duration:5}),r&&await r(a)},p=async e=>o({staged_resource_urns:e}),f=async e=>c({staged_resource_urns:e}),h=async e=>s({staged_resource_urns:e}),g=async t=>a({monitor_config_key:e,staged_resource_urns:t}),v=async(t,n)=>{var r;let[i]=t;return u({monitor_config_id:e,staged_resource_urn:i,user_assigned_data_categories:null!==(r=null==n?void 0:n.user_assigned_data_categories)&&void 0!==r?r:void 0})},y=async t=>i({monitor_config_key:e,staged_resource_urns:t});return{"assign-categories":d(l.ASSIGN_CATEGORIES,v),"promote-removals":()=>{},"un-approve":()=>{},"un-mute":d(l.UN_MUTE,f),approve:d(l.APPROVE,y),classify:d(l.CLASSIFY,g),mute:d(l.MUTE,p),promote:d(l.PROMOTE,h)}};var eN=n(40431);let eq=()=>{let[e,t]=(0,eN.v1)("resourceStatus",(0,eN.S$)((0,eN.km)(Z))),[n,r]=(0,eN.v1)("confidenceScore",(0,eN.S$)((0,eN.jx)(Object.values(a)))),[i,l]=(0,eN.v1)("dataCategory",(0,eN.S$)(eN.Oi));return(0,f.useEffect)(()=>{if(null===e){let e=Q([...Z]);t(e.length>0?e:[])}},[]),{resourceStatus:e,setResourceStatus:t,confidenceScore:n,setConfidenceScore:r,dataCategory:i,setDataCategory:l,reset:()=>{t([]),r([]),l([])},resetToInitialState:()=>{t(Q([...Z])),r(null),l(null)}}},eF=e=>Object.values(T.LL).flatMap(t=>X[t].label===e?[t]:[]);var eY=()=>{var e,t,n,r,i,a,c,u,m;let T=decodeURIComponent((0,p.useRouter)().query.monitorId),j=(0,f.useRef)(null),[C,b]=s.Pg3.useMessage(),[D,I]=s.$zI.useModal(),{paginationProps:P,pageIndex:q,pageSize:F,resetPagination:Y}=(0,E.S)({defaultPageSize:25}),J=(0,_.Rx)(),{resourceStatus:B,confidenceScore:$,dataCategory:K,...V}=eq(),{data:Z}=(0,A.vc)({monitor_config_id:T}),[W,Q]=(0,f.useState)([]),ee={path:{monitor_config_id:T},query:{staged_resource_urn:W.map(e=>e.toString()),search:J.searchProps.value,diff_status:B?B.flatMap(eF):void 0,confidence_score:$||void 0,data_category:K||void 0}},{data:et,isFetching:en,refetch:er}=G({...ee,query:{...ee.query,size:F,page:q}}),[ea,el]=(0,f.useState)(),[eo,es]=(0,A.mC)(),[ec,{data:eu,isFetching:ed}]=z(),ep=es.data,ef=eP(T,D,C,async e=>{var t;await (null===(t=j.current)||void 0===t?void 0:t.refreshResourcesAndAncestors(e))}),eh=eL(T,D,C,async e=>{var t;await (null===(t=j.current)||void 0===t?void 0:t.refreshResourcesAndAncestors(e))}),{excludedListItems:eg,indeterminate:ev,isBulkSelect:ey,listSelectMode:e_,resetListSelect:ex,selectedListItems:eS,updateListItems:eE,updateListSelectMode:eA,updateSelectedListItem:eT}=eO(),ej=async e=>{el(e)},eC=ey?null==eu?void 0:eu.allowed_actions:eU(eS.flatMap(e=>e.diff_status?[H[e.diff_status]]:[])),eD=null!==(i=null==et?void 0:et.total)&&void 0!==i?i:0,ek="exclusive"===e_&&(null==et?void 0:et.total)?eD-eg.length:eS.length;return(0,f.useEffect)(()=>{et&&eE(et.items.map(e=>{let{urn:t,...n}=e;return{itemKey:t,urn:t,...n}}))},[null==et?void 0:et.items]),(0,f.useEffect)(()=>{ea&&eo({stagedResourceUrn:ea})},[ea]),(0,f.useEffect)(()=>{Y(),ex()},[B,$,W,J.searchQuery,K]),(0,o.jsxs)(y.Z,{title:"Action center - Discovered assets by system",mainProps:{overflow:"hidden"},fullHeight:!0,children:[(0,o.jsx)(S.Z,{heading:"Action center",breadcrumbItems:[{title:"All activity",href:x.vi},{title:T}],isSticky:!1}),(0,o.jsxs)(s.LgQ,{className:"h-[calc(100%-48px)] overflow-hidden",children:[(0,o.jsx)(s.LgQ.Panel,{defaultSize:250,style:{paddingRight:"var(--ant-padding-md)"},children:(0,o.jsx)(eb,{ref:j,selectedNodeKeys:W,setSelectedNodeKeys:Q,onClickClassifyButton:()=>{eh.classify(W.map(e=>e.toString()))}})}),(0,o.jsx)(s.LgQ.Panel,{style:{paddingLeft:"var(--ant-padding-md)"},children:(0,o.jsxs)(s.jqI,{vertical:!0,gap:"middle",className:"h-full overflow-hidden",children:[(0,o.jsxs)(s.jqI,{justify:"space-between",children:[(0,o.jsx)(s.lQT,{level:2,children:"Monitor results"}),(0,o.jsx)(s.jqI,{align:"center",children:(null==Z?void 0:Z.last_monitored)&&(0,o.jsxs)(s.lKn,{type:"secondary",children:["Last scan:"," ",new Date(null==Z?void 0:Z.last_monitored).toLocaleString()]})})]}),(0,o.jsxs)(s.jqI,{justify:"space-between",children:[(0,o.jsx)(g.f,{value:J.searchQuery,onChange:J.updateSearch,placeholder:"Search"}),(0,o.jsxs)(s.jqI,{gap:"small",children:[(0,o.jsx)(ei,{resourceStatus:B,confidenceScore:$,dataCategory:K,...V,monitorId:T,stagedResourceUrn:W.map(e=>e.toString())}),(0,o.jsx)(s.S0p,{onOpenChange:e=>{e&&ey&&ec({...ee,query:{...ee.query},body:{excluded_resource_urns:ew(eg).map(e=>e.toString())}})},menu:{items:[...O.map(e=>({key:e,label:!ed&&(null==eC?void 0:eC.includes(e))?R[e]:(0,o.jsx)(s.esZ,{title:U[e],children:R[e]}),disabled:ed||!(null==eC?void 0:eC.includes(e)),onClick:()=>{ey?ef[e](ee,eg.map(e=>e.itemKey.toString()),ek):eh[e](eS.map(e=>{let{itemKey:t}=e;return t.toString()}))}}))]},disabled:eS.length<=0,children:(0,o.jsx)(s.wpx,{type:"primary",icon:(0,o.jsx)(s.PJP._ME,{}),iconPosition:"end",loading:ed,children:"Actions"})}),(0,o.jsx)(s.esZ,{title:"Refresh",children:(0,o.jsx)(s.wpx,{icon:(0,o.jsx)(s.PJP.CQM,{}),onClick:()=>er(),"aria-label":"Refresh"})})]})]}),(0,o.jsxs)(s.jqI,{gap:"middle",align:"center",children:[(0,o.jsx)(s.E_O,{id:"select-all",checked:ey,indeterminate:ev,onChange:e=>eA(e.target.checked?"exclusive":"inclusive")}),(0,o.jsx)("label",{htmlFor:"select-all",children:"Select all"}),!!ek&&(0,o.jsxs)(s.lKn,{strong:!0,children:[ek.toLocaleString()," selected"]})]}),(0,o.jsx)(s.krs,{dataSource:null==et?void 0:et.items,className:"h-full overflow-scroll",loading:en,renderItem:e=>em({...e,selected:ew(eS).includes(e.urn),onSelect:eT,onNavigate:ej,onSetDataCategories:(e,t)=>eh["assign-categories"]([e],{user_assigned_data_categories:t}),actions:(null==e?void 0:e.diff_status)?M.map(t=>(0,o.jsx)(s.esZ,{title:R[t],children:(0,o.jsx)(s.wpx,{"aria-label":R[t],icon:N[t],onClick:()=>eh[t]([e.urn]),disabled:null==e||!e.diff_status||![...L[H[e.diff_status]]].includes(t),style:{fontSize:"var(--ant-button-content-font-size-lg)"}})},t)):[]})}),(0,o.jsx)(s.B7X,{...P,showSizeChanger:{suffixIcon:(0,o.jsx)(s.PJP._ME,{})},total:(null==et?void 0:et.total)||0,hideOnSinglePage:(null===(e=P.pageSize)||void 0===e?void 0:e.toString())===(null===(t=P.pageSizeOptions)||void 0===t?void 0:t[0])})]})})]}),(0,o.jsx)(k,{itemKey:null!==(a=null==ep?void 0:ep.urn)&&void 0!==a?a:"",title:null!==(c=null==ep?void 0:ep.name)&&void 0!==c?c:null,titleIcon:(0,o.jsx)(s.PJP.sgG,{}),titleTag:{bordered:!1,color:(null==ep?void 0:ep.diff_status)?X[ep.diff_status].color:void 0,className:"font-normal text-[var(--ant-font-size-sm)]",children:(null==ep?void 0:ep.diff_status)?X[ep.diff_status].label:null},actions:w.map(e=>({label:R[e],callback:t=>eh[e]([t]),disabled:null!=ep&&!!ep.diff_status&&![...L[H[ep.diff_status]]].includes(e)})),open:!!ea,onClose:()=>el(void 0),children:ep?(0,o.jsxs)(s.jqI,{gap:"middle",vertical:!0,children:[(0,o.jsx)(s.Yfl,{bordered:!0,size:"small",column:1,items:[{key:"system",label:"System",children:ep.system_key},{key:"path",label:"Path",children:ep.urn},{key:"data-type",label:"Data type",children:ep.resource_type},{key:"description",label:"Description",children:ep.description}]}),(0,o.jsx)(s.PPS,{layout:"vertical",children:(0,o.jsx)(s.PPS.Item,{label:"Data categories",children:(0,o.jsx)(v.Z,{variant:"outlined",mode:"multiple",maxTagCount:"responsive",value:[...null!==(u=null===(n=ep.classifications)||void 0===n?void 0:n.map(e=>{let{label:t}=e;return t}))&&void 0!==u?u:[],...null!==(m=null===(r=ep.user_assigned_data_categories)||void 0===r?void 0:r.map(e=>e))&&void 0!==m?m:[]],autoFocus:!1,disabled:null==ep||!ep.diff_status||![...L[H[ep.diff_status]]].includes(l.ASSIGN_CATEGORIES),onChange:e=>eh["assign-categories"]([ep.urn],{user_assigned_data_categories:e})})})}),ep.classifications&&ep.classifications.length>0&&(0,o.jsx)(s.krs,{dataSource:ep.classifications,renderItem:e=>(0,o.jsx)(s.krs.Item,{children:(0,o.jsx)(s.krs.Item.Meta,{avatar:(0,o.jsx)(s.t3Z,{style:{backgroundColor:null===d()||void 0===d()?void 0:d().FIDESUI_BG_DEFAULT},icon:(0,o.jsx)(s.QMR,{color:"black"})}),title:(0,o.jsxs)(s.jqI,{align:"center",gap:"middle",children:[(0,o.jsx)("div",{children:e.label}),(0,o.jsx)(h,{percent:100*e.score})]}),description:e.rationale})})})]}):null}),I,b]})};let eG=()=>(0,o.jsx)(o.Fragment,{children:"Attempting to access monitor results without the required feature flag enabled"});var ez=()=>{let{flags:e}=(0,c.hz)();return e.heliosV2?(0,o.jsx)(eY,{}):(0,o.jsx)(s.ux6,{status:"error",title:(0,o.jsx)(eG,{})})}},31883:function(e,t,n){"use strict";n.d(t,{Bw:function(){return r.Bw},D4:function(){return r.D4}});var r=n(19043)},72707:function(e){e.exports={option:"TaxonomySelect_option__vY6v2"}},97947:function(e){e.exports={"monitor-field__title":"MonitorFieldListItem_monitor-field__title__YrxOU","monitor-field__breadcrumb":"MonitorFieldListItem_monitor-field__breadcrumb__Rn4vE"}}},function(e){e.O(0,[431,8765,9278,5163,7245,7059,2888,9774,179],function(){return e(e.s=83806)}),_N_E=e.O()}]);