ethyca-fides 2.65.3b2__py2.py3-none-any.whl → 2.66.0__py2.py3-none-any.whl

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

Potentially problematic release.


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

Files changed (205) hide show
  1. {ethyca_fides-2.65.3b2.dist-info → ethyca_fides-2.66.0.dist-info}/METADATA +1 -1
  2. {ethyca_fides-2.65.3b2.dist-info → ethyca_fides-2.66.0.dist-info}/RECORD +200 -200
  3. fides/_version.py +3 -3
  4. fides/api/task/manual/manual_task_graph_task.py +32 -14
  5. fides/api/task/manual/manual_task_utils.py +1 -1
  6. fides/ui-build/static/admin/404.html +1 -1
  7. fides/ui-build/static/admin/_next/static/DWlQQ2Xk3LrTeVwJL9BVz/_buildManifest.js +1 -0
  8. fides/ui-build/static/admin/_next/static/chunks/3450-0ba194991d0cca88.js +1 -0
  9. fides/ui-build/static/admin/_next/static/chunks/{3923-536e8bbbea5b7328.js → 3923-6cc911dafccc5f63.js} +1 -1
  10. fides/ui-build/static/admin/_next/static/chunks/{4230-d91fc4db148387bc.js → 4230-60100f7ef3ddcde1.js} +1 -1
  11. fides/ui-build/static/admin/_next/static/chunks/pages/{_app-5de7e675bc2f3bd1.js → _app-8b3c5d3146ed7692.js} +9 -9
  12. fides/ui-build/static/admin/_next/static/chunks/pages/privacy-requests/[id]-32600543eb7b584f.js +1 -0
  13. fides/ui-build/static/admin/_next/static/chunks/pages/privacy-requests-cbe4c8f9096b6543.js +1 -0
  14. fides/ui-build/static/admin/_next/static/css/2cadb5f62dcd7c2b.css +1 -0
  15. fides/ui-build/static/admin/_next/static/css/{399d4757862a3982.css → 94965f224bc991e9.css} +1 -1
  16. fides/ui-build/static/admin/add-systems/manual.html +1 -1
  17. fides/ui-build/static/admin/add-systems/multiple.html +1 -1
  18. fides/ui-build/static/admin/add-systems.html +1 -1
  19. fides/ui-build/static/admin/consent/configure/add-vendors.html +1 -1
  20. fides/ui-build/static/admin/consent/configure.html +1 -1
  21. fides/ui-build/static/admin/consent/privacy-experience/[id].html +1 -1
  22. fides/ui-build/static/admin/consent/privacy-experience/new.html +1 -1
  23. fides/ui-build/static/admin/consent/privacy-experience.html +1 -1
  24. fides/ui-build/static/admin/consent/privacy-notices/[id].html +1 -1
  25. fides/ui-build/static/admin/consent/privacy-notices/new.html +1 -1
  26. fides/ui-build/static/admin/consent/privacy-notices.html +1 -1
  27. fides/ui-build/static/admin/consent/properties.html +1 -1
  28. fides/ui-build/static/admin/consent/reporting.html +1 -1
  29. fides/ui-build/static/admin/consent.html +1 -1
  30. fides/ui-build/static/admin/data-catalog/[systemId]/projects/[projectUrn]/[resourceUrn].html +1 -1
  31. fides/ui-build/static/admin/data-catalog/[systemId]/projects/[projectUrn].html +1 -1
  32. fides/ui-build/static/admin/data-catalog/[systemId]/projects.html +1 -1
  33. fides/ui-build/static/admin/data-catalog/[systemId]/resources/[resourceUrn].html +1 -1
  34. fides/ui-build/static/admin/data-catalog/[systemId]/resources.html +1 -1
  35. fides/ui-build/static/admin/data-catalog.html +1 -1
  36. fides/ui-build/static/admin/data-discovery/action-center/[monitorId]/[systemId].html +1 -1
  37. fides/ui-build/static/admin/data-discovery/action-center/[monitorId].html +1 -1
  38. fides/ui-build/static/admin/data-discovery/action-center.html +1 -1
  39. fides/ui-build/static/admin/data-discovery/activity.html +1 -1
  40. fides/ui-build/static/admin/data-discovery/detection/[resourceUrn].html +1 -1
  41. fides/ui-build/static/admin/data-discovery/detection.html +1 -1
  42. fides/ui-build/static/admin/data-discovery/discovery/[resourceUrn].html +1 -1
  43. fides/ui-build/static/admin/data-discovery/discovery.html +1 -1
  44. fides/ui-build/static/admin/datamap.html +1 -1
  45. fides/ui-build/static/admin/dataset/[datasetId]/[collectionName]/[...subfieldNames].html +1 -1
  46. fides/ui-build/static/admin/dataset/[datasetId]/[collectionName].html +1 -1
  47. fides/ui-build/static/admin/dataset/[datasetId].html +1 -1
  48. fides/ui-build/static/admin/dataset/new.html +1 -1
  49. fides/ui-build/static/admin/dataset.html +1 -1
  50. fides/ui-build/static/admin/datastore-connection/[id].html +1 -1
  51. fides/ui-build/static/admin/datastore-connection/new.html +1 -1
  52. fides/ui-build/static/admin/datastore-connection.html +1 -1
  53. fides/ui-build/static/admin/index.html +1 -1
  54. fides/ui-build/static/admin/integrations/[id].html +1 -1
  55. fides/ui-build/static/admin/integrations.html +1 -1
  56. fides/ui-build/static/admin/lib/fides-ext-gpp.js +1 -1
  57. fides/ui-build/static/admin/lib/fides-headless.js +1 -1
  58. fides/ui-build/static/admin/lib/fides-preview.js +1 -1
  59. fides/ui-build/static/admin/lib/fides-tcf.js +3 -3
  60. fides/ui-build/static/admin/lib/fides.js +3 -3
  61. fides/ui-build/static/admin/login/[provider].html +1 -1
  62. fides/ui-build/static/admin/login.html +1 -1
  63. fides/ui-build/static/admin/messaging/[id].html +1 -1
  64. fides/ui-build/static/admin/messaging/add-template.html +1 -1
  65. fides/ui-build/static/admin/messaging.html +1 -1
  66. fides/ui-build/static/admin/poc/ant-components.html +1 -1
  67. fides/ui-build/static/admin/poc/form-experiments/AntForm.html +1 -1
  68. fides/ui-build/static/admin/poc/form-experiments/FormikAntFormItem.html +1 -1
  69. fides/ui-build/static/admin/poc/form-experiments/FormikControlled.html +1 -1
  70. fides/ui-build/static/admin/poc/form-experiments/FormikField.html +1 -1
  71. fides/ui-build/static/admin/poc/form-experiments/FormikSpreadField.html +1 -1
  72. fides/ui-build/static/admin/poc/forms.html +1 -1
  73. fides/ui-build/static/admin/poc/table-migration.html +1 -1
  74. fides/ui-build/static/admin/privacy-requests/[id].html +1 -1
  75. fides/ui-build/static/admin/privacy-requests/configure/messaging.html +1 -1
  76. fides/ui-build/static/admin/privacy-requests/configure/storage.html +1 -1
  77. fides/ui-build/static/admin/privacy-requests/configure.html +1 -1
  78. fides/ui-build/static/admin/privacy-requests.html +1 -1
  79. fides/ui-build/static/admin/properties/[id].html +1 -1
  80. fides/ui-build/static/admin/properties/add-property.html +1 -1
  81. fides/ui-build/static/admin/properties.html +1 -1
  82. fides/ui-build/static/admin/reporting/datamap.html +1 -1
  83. fides/ui-build/static/admin/settings/about/alpha.html +1 -1
  84. fides/ui-build/static/admin/settings/about.html +1 -1
  85. fides/ui-build/static/admin/settings/consent/[configuration_id]/[purpose_id].html +1 -1
  86. fides/ui-build/static/admin/settings/consent.html +1 -1
  87. fides/ui-build/static/admin/settings/custom-fields.html +1 -1
  88. fides/ui-build/static/admin/settings/domain-records.html +1 -1
  89. fides/ui-build/static/admin/settings/domains.html +1 -1
  90. fides/ui-build/static/admin/settings/email-templates.html +1 -1
  91. fides/ui-build/static/admin/settings/locations.html +1 -1
  92. fides/ui-build/static/admin/settings/organization.html +1 -1
  93. fides/ui-build/static/admin/settings/regulations.html +1 -1
  94. fides/ui-build/static/admin/systems/configure/[id]/test-datasets.html +1 -1
  95. fides/ui-build/static/admin/systems/configure/[id].html +1 -1
  96. fides/ui-build/static/admin/systems.html +1 -1
  97. fides/ui-build/static/admin/taxonomy.html +1 -1
  98. fides/ui-build/static/admin/user-management/new.html +1 -1
  99. fides/ui-build/static/admin/user-management/profile/[id].html +1 -1
  100. fides/ui-build/static/admin/user-management.html +1 -1
  101. fides/ui-build/static/admin/_next/static/chunks/3450-b7af9fec12e66f7f.js +0 -1
  102. fides/ui-build/static/admin/_next/static/chunks/pages/privacy-requests/[id]-29643fbd5745ac0e.js +0 -1
  103. fides/ui-build/static/admin/_next/static/chunks/pages/privacy-requests-1b9c48484ea70264.js +0 -1
  104. fides/ui-build/static/admin/_next/static/css/4383759407e86f7a.css +0 -1
  105. fides/ui-build/static/admin/_next/static/zKPvcJ5_1YpLm35m0Fl47/_buildManifest.js +0 -1
  106. {ethyca_fides-2.65.3b2.dist-info → ethyca_fides-2.66.0.dist-info}/WHEEL +0 -0
  107. {ethyca_fides-2.65.3b2.dist-info → ethyca_fides-2.66.0.dist-info}/entry_points.txt +0 -0
  108. {ethyca_fides-2.65.3b2.dist-info → ethyca_fides-2.66.0.dist-info}/licenses/LICENSE +0 -0
  109. {ethyca_fides-2.65.3b2.dist-info → ethyca_fides-2.66.0.dist-info}/top_level.txt +0 -0
  110. /fides/ui-build/static/admin/_next/static/{zKPvcJ5_1YpLm35m0Fl47 → DWlQQ2Xk3LrTeVwJL9BVz}/_ssgManifest.js +0 -0
  111. /fides/ui-build/static/admin/_next/static/chunks/{1817-34bd629bf34328ec.js → 1817-e601e737e3cc7a0e.js} +0 -0
  112. /fides/ui-build/static/admin/_next/static/chunks/{203-9e86242bde459a43.js → 203-5a663f465ba26bb4.js} +0 -0
  113. /fides/ui-build/static/admin/_next/static/chunks/{2921-93228aa02364bb48.js → 2921-455e6357b74d2f76.js} +0 -0
  114. /fides/ui-build/static/admin/_next/static/chunks/{3855-b914c1a3124f44ea.js → 3855-e172870d3e21b0dd.js} +0 -0
  115. /fides/ui-build/static/admin/_next/static/chunks/{3872-140c8bf8bdb5d511.js → 3872-46cebf7ec1b31a2b.js} +0 -0
  116. /fides/ui-build/static/admin/_next/static/chunks/{401-002f393dae03f8f4.js → 401-1b529d5800aa1f3a.js} +0 -0
  117. /fides/ui-build/static/admin/_next/static/chunks/{409-6b1b506d59a0399a.js → 409-a257e14acebcd73b.js} +0 -0
  118. /fides/ui-build/static/admin/_next/static/chunks/{4121-91ab0fdde5204f41.js → 4121-2bc09fc4ddbfe5cb.js} +0 -0
  119. /fides/ui-build/static/admin/_next/static/chunks/{431-2a9adafa2689a0f4.js → 431-34f0b91c26f8d9ab.js} +0 -0
  120. /fides/ui-build/static/admin/_next/static/chunks/{4608-52674906c7d6a22e.js → 4608-bbb7bf511a05c3c2.js} +0 -0
  121. /fides/ui-build/static/admin/_next/static/chunks/{5309-90d555ba13edaf08.js → 5309-d73339f062763fed.js} +0 -0
  122. /fides/ui-build/static/admin/_next/static/chunks/{5574-1fad13b944f0c4fc.js → 5574-b13021775a15bfd2.js} +0 -0
  123. /fides/ui-build/static/admin/_next/static/chunks/{6084-1ae40620e79e0cf9.js → 6084-7178ff6ea6822475.js} +0 -0
  124. /fides/ui-build/static/admin/_next/static/chunks/{6662-5fa8a1b20b0d3e3c.js → 6662-507be5d46e5b719b.js} +0 -0
  125. /fides/ui-build/static/admin/_next/static/chunks/{6780-4db9fe1ee8860870.js → 6780-5bd185892f6af46e.js} +0 -0
  126. /fides/ui-build/static/admin/_next/static/chunks/{6853-02be83ef65e8853b.js → 6853-2ad3e08fe6f9f5f2.js} +0 -0
  127. /fides/ui-build/static/admin/_next/static/chunks/{6882-6f755ee046c9d70a.js → 6882-6af16fef26c21e06.js} +0 -0
  128. /fides/ui-build/static/admin/_next/static/chunks/{6954-b242eebbe7c52e5a.js → 6954-bb875d9ac89f6030.js} +0 -0
  129. /fides/ui-build/static/admin/_next/static/chunks/{7476-c4ccb87fb8dbe2c0.js → 7476-281ee9a8286556f3.js} +0 -0
  130. /fides/ui-build/static/admin/_next/static/chunks/{7630-731324d74b20b80e.js → 7630-9aac73191ed5ed13.js} +0 -0
  131. /fides/ui-build/static/admin/_next/static/chunks/{787-a1674f4d14753677.js → 787-fb41002f797eb2df.js} +0 -0
  132. /fides/ui-build/static/admin/_next/static/chunks/{79-056947276803332e.js → 79-7e87aff851423d4a.js} +0 -0
  133. /fides/ui-build/static/admin/_next/static/chunks/{796-e33122908c5e28ce.js → 796-329a5f823ec258a5.js} +0 -0
  134. /fides/ui-build/static/admin/_next/static/chunks/{9046-f5b180534b2637c3.js → 9046-ce9567c9074563e2.js} +0 -0
  135. /fides/ui-build/static/admin/_next/static/chunks/{9226-ce9c651c6ed829dd.js → 9226-746771d47dff6266.js} +0 -0
  136. /fides/ui-build/static/admin/_next/static/chunks/{9826-065b7cd0784d6912.js → 9826-111aaee8bd8dbd09.js} +0 -0
  137. /fides/ui-build/static/admin/_next/static/chunks/{9951-e572cda021343eb1.js → 9951-9b753ad7c3f51bdf.js} +0 -0
  138. /fides/ui-build/static/admin/_next/static/chunks/pages/{404-beb4bf835acb4386.js → 404-aece2c920ea14514.js} +0 -0
  139. /fides/ui-build/static/admin/_next/static/chunks/pages/add-systems/{manual-9c25673536d3f2cc.js → manual-98777246bec9dc2a.js} +0 -0
  140. /fides/ui-build/static/admin/_next/static/chunks/pages/add-systems/{multiple-943479665698c6d2.js → multiple-dc75dc6e37e52f05.js} +0 -0
  141. /fides/ui-build/static/admin/_next/static/chunks/pages/{add-systems-f068a00278624bc9.js → add-systems-a71c0aff4e0e6535.js} +0 -0
  142. /fides/ui-build/static/admin/_next/static/chunks/pages/consent/configure/{add-vendors-1bde4adc6d2a6dfa.js → add-vendors-24d226b5a8de5c74.js} +0 -0
  143. /fides/ui-build/static/admin/_next/static/chunks/pages/consent/{configure-e72c1feeb24bdb73.js → configure-6a8ef51138ac926a.js} +0 -0
  144. /fides/ui-build/static/admin/_next/static/chunks/pages/consent/privacy-experience/{[id]-cc858383bb1bbd36.js → [id]-1edf582ba3cd3bbb.js} +0 -0
  145. /fides/ui-build/static/admin/_next/static/chunks/pages/consent/{privacy-experience-799d2a4a9dd68eea.js → privacy-experience-685771e5f7196d87.js} +0 -0
  146. /fides/ui-build/static/admin/_next/static/chunks/pages/consent/privacy-notices/{[id]-bfca5064b33116b9.js → [id]-6ccedc70dc447089.js} +0 -0
  147. /fides/ui-build/static/admin/_next/static/chunks/pages/consent/privacy-notices/{new-e4a9393b7572e591.js → new-944bca1cc57985b5.js} +0 -0
  148. /fides/ui-build/static/admin/_next/static/chunks/pages/consent/{privacy-notices-55d0f8505a7f8692.js → privacy-notices-84f4bd14ce8673bc.js} +0 -0
  149. /fides/ui-build/static/admin/_next/static/chunks/pages/consent/{properties-a05600d9e3e8735e.js → properties-6f86ab63a08a6528.js} +0 -0
  150. /fides/ui-build/static/admin/_next/static/chunks/pages/consent/{reporting-1103b69bcd90ed6c.js → reporting-afdbd4665657cfa1.js} +0 -0
  151. /fides/ui-build/static/admin/_next/static/chunks/pages/{consent-bd0fbeabe84d3c8f.js → consent-73d3cbf68f7c3a31.js} +0 -0
  152. /fides/ui-build/static/admin/_next/static/chunks/pages/data-catalog/[systemId]/projects/{[projectUrn]-00bbbfb19c15c48d.js → [projectUrn]-6ba9e160dae64695.js} +0 -0
  153. /fides/ui-build/static/admin/_next/static/chunks/pages/data-catalog/[systemId]/{projects-be252cac70aa63dd.js → projects-32eac8bbd217615a.js} +0 -0
  154. /fides/ui-build/static/admin/_next/static/chunks/pages/{data-catalog-6d6584fd49026ec2.js → data-catalog-6f630d42ac9fb6b4.js} +0 -0
  155. /fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/action-center/[monitorId]/{[systemId]-caf0c55830fc91b3.js → [systemId]-2265ecb899d45fbc.js} +0 -0
  156. /fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/action-center/{[monitorId]-5c0b1f15873c90fa.js → [monitorId]-8ab33a1e0272df1f.js} +0 -0
  157. /fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/{action-center-a81165ca06b7c404.js → action-center-9ddb52ebb7ac4c71.js} +0 -0
  158. /fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/{activity-bf3627895c102ae0.js → activity-9aa744d56cdacb0d.js} +0 -0
  159. /fides/ui-build/static/admin/_next/static/chunks/pages/{datamap-639ac9cf51750635.js → datamap-7674b97d655c193b.js} +0 -0
  160. /fides/ui-build/static/admin/_next/static/chunks/pages/dataset/[datasetId]/[collectionName]/{[...subfieldNames]-d69aff79e77c5464.js → [...subfieldNames]-c0d2bfd465df20e0.js} +0 -0
  161. /fides/ui-build/static/admin/_next/static/chunks/pages/dataset/[datasetId]/{[collectionName]-9df954c65a9fe023.js → [collectionName]-28280a8a39a6e37c.js} +0 -0
  162. /fides/ui-build/static/admin/_next/static/chunks/pages/dataset/{[datasetId]-0e90202b2db3797c.js → [datasetId]-006b695e5af5ef24.js} +0 -0
  163. /fides/ui-build/static/admin/_next/static/chunks/pages/dataset/{new-17caa948d13ac81c.js → new-82fb246d87e58ebd.js} +0 -0
  164. /fides/ui-build/static/admin/_next/static/chunks/pages/{dataset-06d5b6944e2de262.js → dataset-20165c31ab1bc7cf.js} +0 -0
  165. /fides/ui-build/static/admin/_next/static/chunks/pages/datastore-connection/{[id]-a980e69a921a0dfb.js → [id]-b4a6bcc87d126840.js} +0 -0
  166. /fides/ui-build/static/admin/_next/static/chunks/pages/datastore-connection/{new-d7160806386bc7e0.js → new-f95d7b0bbfc58f5a.js} +0 -0
  167. /fides/ui-build/static/admin/_next/static/chunks/pages/{datastore-connection-36eeca2fe22be33a.js → datastore-connection-c391c6fad56eec48.js} +0 -0
  168. /fides/ui-build/static/admin/_next/static/chunks/pages/{index-7430cfb2a1bf1442.js → index-1919aab9e5834b51.js} +0 -0
  169. /fides/ui-build/static/admin/_next/static/chunks/pages/integrations/{[id]-e039acfdefb0986e.js → [id]-eacabe4a80cb8813.js} +0 -0
  170. /fides/ui-build/static/admin/_next/static/chunks/pages/{integrations-ea492832424a9619.js → integrations-e2d5d7e2a5265e68.js} +0 -0
  171. /fides/ui-build/static/admin/_next/static/chunks/pages/messaging/{[id]-78606d74f82f5edc.js → [id]-53fecfb9dd6a1e0c.js} +0 -0
  172. /fides/ui-build/static/admin/_next/static/chunks/pages/messaging/{add-template-9dff500113f0710f.js → add-template-76b01cec5fde10a9.js} +0 -0
  173. /fides/ui-build/static/admin/_next/static/chunks/pages/{messaging-c17efc84c54e4fdb.js → messaging-5094ffea13f32ed9.js} +0 -0
  174. /fides/ui-build/static/admin/_next/static/chunks/pages/poc/{ant-components-74348d35e92a2a3c.js → ant-components-5c08e8447c45ce44.js} +0 -0
  175. /fides/ui-build/static/admin/_next/static/chunks/pages/poc/form-experiments/{AntForm-ac613f99cd57d7b3.js → AntForm-06ad5f34585480aa.js} +0 -0
  176. /fides/ui-build/static/admin/_next/static/chunks/pages/poc/form-experiments/{FormikAntFormItem-44605674baae28e2.js → FormikAntFormItem-6f071c2bc9446cb0.js} +0 -0
  177. /fides/ui-build/static/admin/_next/static/chunks/pages/poc/form-experiments/{FormikControlled-86761304f1da7172.js → FormikControlled-efcc38c58991ac9e.js} +0 -0
  178. /fides/ui-build/static/admin/_next/static/chunks/pages/poc/form-experiments/{FormikField-fadf4e866aa8ea22.js → FormikField-430ba5c979abfb7c.js} +0 -0
  179. /fides/ui-build/static/admin/_next/static/chunks/pages/poc/{forms-be9bc54243141257.js → forms-5c561880bf131afb.js} +0 -0
  180. /fides/ui-build/static/admin/_next/static/chunks/pages/poc/{table-migration-69a9e346e32fde53.js → table-migration-69ad86b7a8a9a115.js} +0 -0
  181. /fides/ui-build/static/admin/_next/static/chunks/pages/privacy-requests/configure/{messaging-3062ca1a95ede1a3.js → messaging-10ce53ea356f8bad.js} +0 -0
  182. /fides/ui-build/static/admin/_next/static/chunks/pages/privacy-requests/configure/{storage-a67feed389719f52.js → storage-5501bbb129fee9c4.js} +0 -0
  183. /fides/ui-build/static/admin/_next/static/chunks/pages/privacy-requests/{configure-6935d3c1655ecbbe.js → configure-d888a69a3bbe040e.js} +0 -0
  184. /fides/ui-build/static/admin/_next/static/chunks/pages/properties/{[id]-3a7b2edeb6f6c7a2.js → [id]-d3d8e3d7583ec635.js} +0 -0
  185. /fides/ui-build/static/admin/_next/static/chunks/pages/properties/{add-property-971657cbd5e5490f.js → add-property-1af10ed303815d46.js} +0 -0
  186. /fides/ui-build/static/admin/_next/static/chunks/pages/{properties-be3668cbd03e086e.js → properties-cebc0dc186be499a.js} +0 -0
  187. /fides/ui-build/static/admin/_next/static/chunks/pages/reporting/{datamap-218f88a99e7f0c04.js → datamap-e130c0197362e8f3.js} +0 -0
  188. /fides/ui-build/static/admin/_next/static/chunks/pages/settings/about/{alpha-fb0c7974234d93ee.js → alpha-5e1322de868d615e.js} +0 -0
  189. /fides/ui-build/static/admin/_next/static/chunks/pages/settings/{about-a91bf9cf821bcdcb.js → about-241f95e372b65d0f.js} +0 -0
  190. /fides/ui-build/static/admin/_next/static/chunks/pages/settings/consent/[configuration_id]/{[purpose_id]-738e9c5dd7a4d8f5.js → [purpose_id]-fc201657f4a782c7.js} +0 -0
  191. /fides/ui-build/static/admin/_next/static/chunks/pages/settings/{consent-d0c5a07b57b6adae.js → consent-c2d39cba8396ef3a.js} +0 -0
  192. /fides/ui-build/static/admin/_next/static/chunks/pages/settings/{custom-fields-7945aad419e1ba8b.js → custom-fields-d992103cc55901ae.js} +0 -0
  193. /fides/ui-build/static/admin/_next/static/chunks/pages/settings/{domain-records-9455a95901d7d223.js → domain-records-41242f805599feda.js} +0 -0
  194. /fides/ui-build/static/admin/_next/static/chunks/pages/settings/{domains-57fd9412882c4ab2.js → domains-2e885f74c92f669c.js} +0 -0
  195. /fides/ui-build/static/admin/_next/static/chunks/pages/settings/{email-templates-63a5da14576722a4.js → email-templates-ff112655ad5f41e5.js} +0 -0
  196. /fides/ui-build/static/admin/_next/static/chunks/pages/settings/{locations-694ae08fdc73b92b.js → locations-023e1895552817de.js} +0 -0
  197. /fides/ui-build/static/admin/_next/static/chunks/pages/settings/{organization-26db0a2e4ffe2892.js → organization-ac403c0886b20e20.js} +0 -0
  198. /fides/ui-build/static/admin/_next/static/chunks/pages/settings/{regulations-c304e080c391f254.js → regulations-86062a18e081a52a.js} +0 -0
  199. /fides/ui-build/static/admin/_next/static/chunks/pages/systems/configure/[id]/{test-datasets-ec7efe4e1f09ecb7.js → test-datasets-7a3396ac819c7904.js} +0 -0
  200. /fides/ui-build/static/admin/_next/static/chunks/pages/systems/configure/{[id]-25589319be47ee83.js → [id]-8314a819837f5b2a.js} +0 -0
  201. /fides/ui-build/static/admin/_next/static/chunks/pages/{systems-8045ae1289ef8ebc.js → systems-21f423a7c417aa9d.js} +0 -0
  202. /fides/ui-build/static/admin/_next/static/chunks/pages/{taxonomy-0d17e0de9adb27f8.js → taxonomy-6387fcc8cce872eb.js} +0 -0
  203. /fides/ui-build/static/admin/_next/static/chunks/pages/user-management/profile/{[id]-fe32284ce419e921.js → [id]-ff5738706da07801.js} +0 -0
  204. /fides/ui-build/static/admin/_next/static/chunks/pages/{user-management-9c8200fc2f8b9346.js → user-management-173ac3a1ed2b05a6.js} +0 -0
  205. /fides/ui-build/static/admin/_next/static/chunks/{webpack-c97e8d65bd9739ff.js → webpack-ff0cd6bff75588da.js} +0 -0
fides/_version.py CHANGED
@@ -8,11 +8,11 @@ import json
8
8
 
9
9
  version_json = '''
10
10
  {
11
- "date": "2025-07-15T11:55:33-0600",
11
+ "date": "2025-07-18T11:52:21-0400",
12
12
  "dirty": false,
13
13
  "error": null,
14
- "full-revisionid": "356ed96f2349e29bbc1d830518475a06310d4a07",
15
- "version": "2.65.3b2"
14
+ "full-revisionid": "8321b774e644f70b9239d4cca0ffdf640f03501a",
15
+ "version": "2.66.0"
16
16
  }
17
17
  ''' # END VERSION_JSON
18
18
 
@@ -7,6 +7,7 @@ from fides.api.common_exceptions import AwaitingAsyncTaskCallback
7
7
  from fides.api.models.attachment import AttachmentType
8
8
  from fides.api.models.manual_task import (
9
9
  ManualTask,
10
+ ManualTaskConfig,
10
11
  ManualTaskConfigurationType,
11
12
  ManualTaskEntityType,
12
13
  ManualTaskFieldType,
@@ -66,6 +67,13 @@ class ManualTaskGraphTask(GraphTask):
66
67
  self.log_end(ActionType.access)
67
68
  return []
68
69
 
70
+ if not self.resources.request.policy.get_rules_for_action(
71
+ action_type=ActionType.access
72
+ ):
73
+ # TODO: This will be changed with Manual Task Dependencies Implementation.
74
+ self.log_end(ActionType.access)
75
+ return []
76
+
69
77
  # Check/create manual task instances for ACCESS configs only
70
78
  self._ensure_manual_task_instances(
71
79
  db,
@@ -82,13 +90,6 @@ class ManualTaskGraphTask(GraphTask):
82
90
  ManualTaskConfigurationType.access_privacy_request,
83
91
  )
84
92
 
85
- if not self.resources.request.policy.get_rules_for_action(
86
- action_type=ActionType.access
87
- ):
88
- # TODO: This will be changed with Manual Task Dependencies Implementation.
89
- self.log_end(ActionType.access)
90
- return []
91
-
92
93
  if submitted_data is not None:
93
94
  result: List[Row] = [submitted_data] if submitted_data else []
94
95
  self.request_task.access_data = result
@@ -118,28 +119,30 @@ class ManualTaskGraphTask(GraphTask):
118
119
 
119
120
  for manual_task in manual_tasks:
120
121
  # ------------------------------------------------------------------
121
- # Short-circuit: if instances already exist for this task & entity
122
- # (no matter what config version they were created for) we should reuse
123
- # them instead of creating a brand-new one that would result in
124
- # duplicates when configurations are versioned after the privacy
125
- # request has started.
122
+ # Check if instances already exist for this task & entity with the SAME config type
123
+ # This prevents duplicates when configurations are versioned after the privacy
124
+ # request has started, while allowing different config types (access vs erasure)
125
+ # to have separate instances.
126
126
  # ------------------------------------------------------------------
127
127
  existing_task_instance = (
128
128
  db.query(ManualTaskInstance)
129
+ .join(ManualTaskInstance.config) # Join to access config information
129
130
  .filter(
130
131
  ManualTaskInstance.task_id == manual_task.id,
131
132
  ManualTaskInstance.entity_id == privacy_request.id,
132
133
  ManualTaskInstance.entity_type
133
134
  == ManualTaskEntityType.privacy_request,
135
+ # Only check for instances of the same config type
136
+ ManualTaskConfig.config_type == allowed_config_type,
134
137
  )
135
138
  .first()
136
139
  )
137
140
  if existing_task_instance:
138
- # An instance already exists for this privacy request – no need
141
+ # An instance already exists for this privacy request and config type – no need
139
142
  # to create another one tied to a newer config version.
140
143
  continue
141
144
 
142
- # Check each active config for instances (now we know none exist yet)
145
+ # Check each active config for instances (now we know none exist yet for this config type)
143
146
  for config in manual_task.configs:
144
147
  if not config.is_current or config.config_type != allowed_config_type:
145
148
  # Skip configs that are not current or not relevant for this request type
@@ -288,6 +291,21 @@ class ManualTaskGraphTask(GraphTask):
288
291
  self.log_end(ActionType.erasure)
289
292
  return 0
290
293
 
294
+ # Check if any manual tasks have ERASURE configs
295
+ has_erasure_configs = [
296
+ config
297
+ for manual_task in manual_tasks
298
+ for config in manual_task.configs
299
+ if config.is_current
300
+ and config.config_type
301
+ == ManualTaskConfigurationType.erasure_privacy_request
302
+ ]
303
+
304
+ if not has_erasure_configs:
305
+ # No erasure configs - complete immediately
306
+ self.log_end(ActionType.erasure)
307
+ return 0
308
+
291
309
  # Create ManualTaskInstances for ERASURE configs only
292
310
  self._ensure_manual_task_instances(
293
311
  db,
@@ -217,7 +217,7 @@ def create_manual_task_instances_for_privacy_request(
217
217
  ManualTaskConfigurationType.access_privacy_request,
218
218
  ManualTaskConfigurationType.erasure_privacy_request,
219
219
  ]
220
- ).filter(ManualTaskConfig.is_current.is_(True))
220
+ )
221
221
  )
222
222
  elif has_access_rules:
223
223
  # Only access rules - only include access configurations
@@ -1 +1 @@
1
- <!DOCTYPE html><html lang="en"><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width"/><meta name="next-head-count" content="2"/><link data-next-font="" rel="preconnect" href="/" crossorigin="anonymous"/><link rel="preload" href="/_next/static/css/4383759407e86f7a.css" as="style"/><link rel="stylesheet" href="/_next/static/css/4383759407e86f7a.css" data-n-g=""/><noscript data-n-css=""></noscript><script defer="" nomodule="" src="/_next/static/chunks/polyfills-42372ed130431b0a.js"></script><script src="/_next/static/chunks/webpack-c97e8d65bd9739ff.js" defer=""></script><script src="/_next/static/chunks/framework-c92fc3344e6fd165.js" defer=""></script><script src="/_next/static/chunks/main-090643377c8254e6.js" defer=""></script><script src="/_next/static/chunks/pages/_app-5de7e675bc2f3bd1.js" defer=""></script><script src="/_next/static/chunks/pages/404-beb4bf835acb4386.js" defer=""></script><script src="/_next/static/zKPvcJ5_1YpLm35m0Fl47/_buildManifest.js" defer=""></script><script src="/_next/static/zKPvcJ5_1YpLm35m0Fl47/_ssgManifest.js" defer=""></script><style>.data-ant-cssinjs-cache-path{content:"";}</style></head><body><div id="__next"><div style="height:100%;display:flex"></div></div><script id="__NEXT_DATA__" type="application/json">{"props":{"pageProps":{}},"page":"/404","query":{},"buildId":"zKPvcJ5_1YpLm35m0Fl47","nextExport":true,"autoExport":true,"isFallback":false,"scriptLoader":[]}</script></body></html>
1
+ <!DOCTYPE html><html lang="en"><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width"/><meta name="next-head-count" content="2"/><link data-next-font="" rel="preconnect" href="/" crossorigin="anonymous"/><link rel="preload" href="/_next/static/css/2cadb5f62dcd7c2b.css" as="style"/><link rel="stylesheet" href="/_next/static/css/2cadb5f62dcd7c2b.css" data-n-g=""/><noscript data-n-css=""></noscript><script defer="" nomodule="" src="/_next/static/chunks/polyfills-42372ed130431b0a.js"></script><script src="/_next/static/chunks/webpack-ff0cd6bff75588da.js" defer=""></script><script src="/_next/static/chunks/framework-c92fc3344e6fd165.js" defer=""></script><script src="/_next/static/chunks/main-090643377c8254e6.js" defer=""></script><script src="/_next/static/chunks/pages/_app-8b3c5d3146ed7692.js" defer=""></script><script src="/_next/static/chunks/pages/404-aece2c920ea14514.js" defer=""></script><script src="/_next/static/DWlQQ2Xk3LrTeVwJL9BVz/_buildManifest.js" defer=""></script><script src="/_next/static/DWlQQ2Xk3LrTeVwJL9BVz/_ssgManifest.js" defer=""></script><style>.data-ant-cssinjs-cache-path{content:"";}</style></head><body><div id="__next"><div style="height:100%;display:flex"></div></div><script id="__NEXT_DATA__" type="application/json">{"props":{"pageProps":{}},"page":"/404","query":{},"buildId":"DWlQQ2Xk3LrTeVwJL9BVz","nextExport":true,"autoExport":true,"isFallback":false,"scriptLoader":[]}</script></body></html>
@@ -0,0 +1 @@
1
+ self.__BUILD_MANIFEST=function(s,e,t,a,c,n,i,d,o,r,p,u,g,f,m,b,j,k,h,y,l,v,I,F,x,_,U,w,q,N,A,S,B,C,z,D,E,L,M,T,P,G,H,J,K,O){return{__rewrites:{afterFiles:[],beforeFiles:[],fallback:[]},"/":[l,"static/chunks/pages/index-1919aab9e5834b51.js"],"/404":["static/chunks/pages/404-aece2c920ea14514.js"],"/_error":["static/chunks/pages/_error-bede3a8288930dcf.js"],"/add-systems":[l,"static/chunks/pages/add-systems-a71c0aff4e0e6535.js"],"/add-systems/manual":[s,e,t,c,p,a,i,u,b,v,I,"static/chunks/pages/add-systems/manual-98777246bec9dc2a.js"],"/add-systems/multiple":[i,g,F,"static/chunks/pages/add-systems/multiple-dc75dc6e37e52f05.js"],"/consent":["static/chunks/pages/consent-73d3cbf68f7c3a31.js"],"/consent/configure":[i,g,"static/chunks/pages/consent/configure-6a8ef51138ac926a.js"],"/consent/configure/add-vendors":[i,g,F,"static/chunks/pages/consent/configure/add-vendors-24d226b5a8de5c74.js"],"/consent/privacy-experience":[p,x,"static/chunks/pages/consent/privacy-experience-685771e5f7196d87.js"],"/consent/privacy-experience/new":[s,e,d,_,f,U,"static/chunks/pages/consent/privacy-experience/new-06bb3b0bf097fcdb.js"],"/consent/privacy-experience/[id]":[s,e,d,_,f,U,"static/chunks/pages/consent/privacy-experience/[id]-1edf582ba3cd3bbb.js"],"/consent/privacy-notices":[x,"static/chunks/pages/consent/privacy-notices-84f4bd14ce8673bc.js"],"/consent/privacy-notices/new":[s,e,d,w,f,q,"static/chunks/pages/consent/privacy-notices/new-944bca1cc57985b5.js"],"/consent/privacy-notices/[id]":[s,e,d,w,f,q,"static/chunks/pages/consent/privacy-notices/[id]-6ccedc70dc447089.js"],"/consent/properties":[N,"static/chunks/pages/consent/properties-6f86ab63a08a6528.js"],"/consent/reporting":[s,"static/chunks/pages/consent/reporting-afdbd4665657cfa1.js"],"/data-catalog":[s,e,t,a,"static/css/95ac327e5d70148d.css","static/chunks/pages/data-catalog-6f630d42ac9fb6b4.js"],"/data-catalog/[systemId]/projects":[s,e,t,a,j,n,"static/chunks/pages/data-catalog/[systemId]/projects-32eac8bbd217615a.js"],"/data-catalog/[systemId]/projects/[projectUrn]":[A,"static/chunks/pages/data-catalog/[systemId]/projects/[projectUrn]-6ba9e160dae64695.js"],"/data-catalog/[systemId]/projects/[projectUrn]/[resourceUrn]":[s,e,t,a,j,S,n,"static/chunks/pages/data-catalog/[systemId]/projects/[projectUrn]/[resourceUrn]-11d52f1570759c4d.js"],"/data-catalog/[systemId]/resources":[A,"static/chunks/pages/data-catalog/[systemId]/resources-7648bbd4f6711e4d.js"],"/data-catalog/[systemId]/resources/[resourceUrn]":[s,e,t,a,j,S,n,"static/chunks/pages/data-catalog/[systemId]/resources/[resourceUrn]-b83afa5565d0c84e.js"],"/data-discovery/action-center":["static/chunks/pages/data-discovery/action-center-9ddb52ebb7ac4c71.js"],"/data-discovery/action-center/[monitorId]":[s,e,t,k,"static/chunks/pages/data-discovery/action-center/[monitorId]-8ab33a1e0272df1f.js"],"/data-discovery/action-center/[monitorId]/[systemId]":[s,e,t,a,i,b,"static/css/5bfb2473e5701527.css","static/chunks/pages/data-discovery/action-center/[monitorId]/[systemId]-2265ecb899d45fbc.js"],"/data-discovery/activity":[r,"static/chunks/pages/data-discovery/activity-9aa744d56cdacb0d.js"],"/data-discovery/detection":[r,B,"static/chunks/pages/data-discovery/detection-8733807dad4bc96e.js"],"/data-discovery/detection/[resourceUrn]":[r,B,"static/chunks/pages/data-discovery/detection/[resourceUrn]-393e20924c83373e.js"],"/data-discovery/discovery":[s,e,t,a,r,C,n,"static/chunks/pages/data-discovery/discovery-9e7dfd5a6acc2e8f.js"],"/data-discovery/discovery/[resourceUrn]":[s,e,t,a,r,C,n,"static/chunks/pages/data-discovery/discovery/[resourceUrn]-14bd7500362ff224.js"],"/datamap":["static/chunks/255-7db55b0e3a0f9dea.js",u,z,"static/chunks/pages/datamap-7674b97d655c193b.js"],"/dataset":[o,m,"static/chunks/pages/dataset-20165c31ab1bc7cf.js"],"/dataset/new":[o,m,"static/chunks/pages/dataset/new-82fb246d87e58ebd.js"],"/dataset/[datasetId]":["static/chunks/9729-fcf6ff4e3534e4a8.js",h,"static/chunks/pages/dataset/[datasetId]-006b695e5af5ef24.js"],"/dataset/[datasetId]/[collectionName]":[s,e,t,c,a,h,n,"static/chunks/pages/dataset/[datasetId]/[collectionName]-28280a8a39a6e37c.js"],"/dataset/[datasetId]/[collectionName]/[...subfieldNames]":[s,e,t,c,a,h,n,"static/chunks/pages/dataset/[datasetId]/[collectionName]/[...subfieldNames]-c0d2bfd465df20e0.js"],"/datastore-connection":["static/css/5f393dea1c0d031c.css","static/chunks/pages/datastore-connection-c391c6fad56eec48.js"],"/datastore-connection/new":[s,c,o,p,D,m,E,"static/chunks/pages/datastore-connection/new-f95d7b0bbfc58f5a.js"],"/datastore-connection/[id]":[s,c,o,D,m,E,"static/chunks/pages/datastore-connection/[id]-b4a6bcc87d126840.js"],"/fides-js-docs":["static/chunks/2fbcc6de-a6c61724c327e9fa.js","static/chunks/e3251fe7-5777b5d778e6fffa.js",s,e,t,c,o,L,"static/css/ab65b8cc3144bfc8.css","static/chunks/905-ffdbd0b14167e8bd.js","static/chunks/pages/fides-js-docs-5d8fd1af75f19e2f.js"],"/integrations":[s,e,t,c,d,M,T,n,"static/chunks/pages/integrations-e2d5d7e2a5265e68.js"],"/integrations/[id]":[s,e,t,c,d,M,T,n,"static/chunks/pages/integrations/[id]-eacabe4a80cb8813.js"],"/login":["static/chunks/pages/login-0cb0eb44bf2dd24c.js"],"/login/[provider]":["static/chunks/pages/login/[provider]-c58beef131c3a82d.js"],"/messaging":[s,e,t,"static/chunks/pages/messaging-5094ffea13f32ed9.js"],"/messaging/add-template":[P,"static/chunks/pages/messaging/add-template-76b01cec5fde10a9.js"],"/messaging/[id]":[P,"static/chunks/pages/messaging/[id]-53fecfb9dd6a1e0c.js"],"/poc/ant-components":["static/chunks/pages/poc/ant-components-5c08e8447c45ce44.js"],"/poc/form-experiments/AntForm":["static/chunks/pages/poc/form-experiments/AntForm-06ad5f34585480aa.js"],"/poc/form-experiments/FormikAntFormItem":["static/chunks/pages/poc/form-experiments/FormikAntFormItem-6f071c2bc9446cb0.js"],"/poc/form-experiments/FormikControlled":["static/chunks/pages/poc/form-experiments/FormikControlled-efcc38c58991ac9e.js"],"/poc/form-experiments/FormikField":["static/chunks/pages/poc/form-experiments/FormikField-430ba5c979abfb7c.js"],"/poc/form-experiments/FormikSpreadField":[G,"static/chunks/pages/poc/form-experiments/FormikSpreadField-af097d661f6abcf4.js"],"/poc/forms":[G,"static/chunks/pages/poc/forms-5c561880bf131afb.js"],"/poc/table-migration":[i,g,"static/chunks/pages/poc/table-migration-69ad86b7a8a9a115.js"],"/privacy-requests":[s,e,H,"static/chunks/pages/privacy-requests-cbe4c8f9096b6543.js"],"/privacy-requests/configure":["static/chunks/pages/privacy-requests/configure-d888a69a3bbe040e.js"],"/privacy-requests/configure/messaging":["static/chunks/pages/privacy-requests/configure/messaging-10ce53ea356f8bad.js"],"/privacy-requests/configure/storage":["static/chunks/pages/privacy-requests/configure/storage-5501bbb129fee9c4.js"],"/privacy-requests/[id]":[H,"static/css/94965f224bc991e9.css","static/chunks/pages/privacy-requests/[id]-32600543eb7b584f.js"],"/properties":[N,"static/chunks/pages/properties-cebc0dc186be499a.js"],"/properties/add-property":[J,"static/chunks/pages/properties/add-property-1af10ed303815d46.js"],"/properties/[id]":[J,"static/chunks/pages/properties/[id]-d3d8e3d7583ec635.js"],"/reporting/datamap":[s,e,t,L,u,z,"static/chunks/pages/reporting/datamap-e130c0197362e8f3.js"],"/settings/about":["static/chunks/pages/settings/about-241f95e372b65d0f.js"],"/settings/about/alpha":["static/chunks/pages/settings/about/alpha-5e1322de868d615e.js"],"/settings/consent":["static/chunks/pages/settings/consent-c2d39cba8396ef3a.js"],"/settings/consent/[configuration_id]/[purpose_id]":["static/chunks/pages/settings/consent/[configuration_id]/[purpose_id]-fc201657f4a782c7.js"],"/settings/custom-fields":["static/chunks/pages/settings/custom-fields-d992103cc55901ae.js"],"/settings/domain-records":["static/chunks/pages/settings/domain-records-41242f805599feda.js"],"/settings/domains":["static/chunks/pages/settings/domains-2e885f74c92f669c.js"],"/settings/email-templates":["static/chunks/pages/settings/email-templates-ff112655ad5f41e5.js"],"/settings/locations":[K,k,"static/chunks/pages/settings/locations-023e1895552817de.js"],"/settings/organization":["static/chunks/pages/settings/organization-ac403c0886b20e20.js"],"/settings/regulations":[K,k,"static/chunks/pages/settings/regulations-86062a18e081a52a.js"],"/systems":["static/chunks/pages/systems-21f423a7c417aa9d.js"],"/systems/configure/[id]":[s,e,t,c,p,a,i,u,b,v,I,"static/chunks/pages/systems/configure/[id]-8314a819837f5b2a.js"],"/systems/configure/[id]/test-datasets":[o,"static/chunks/pages/systems/configure/[id]/test-datasets-7a3396ac819c7904.js"],"/taxonomy":["static/chunks/678d4732-50255cc09048e643.js",s,e,t,d,"static/chunks/570-c99f07161bd339cd.js","static/css/34a7eb08b86ddb57.css","static/chunks/pages/taxonomy-6387fcc8cce872eb.js"],"/user-management":[y,"static/chunks/pages/user-management-173ac3a1ed2b05a6.js"],"/user-management/new":[y,O,"static/chunks/pages/user-management/new-a2524414e968f862.js"],"/user-management/profile/[id]":[y,O,"static/chunks/pages/user-management/profile/[id]-ff5738706da07801.js"],sortedPages:["/","/404","/_app","/_error","/add-systems","/add-systems/manual","/add-systems/multiple","/consent","/consent/configure","/consent/configure/add-vendors","/consent/privacy-experience","/consent/privacy-experience/new","/consent/privacy-experience/[id]","/consent/privacy-notices","/consent/privacy-notices/new","/consent/privacy-notices/[id]","/consent/properties","/consent/reporting","/data-catalog","/data-catalog/[systemId]/projects","/data-catalog/[systemId]/projects/[projectUrn]","/data-catalog/[systemId]/projects/[projectUrn]/[resourceUrn]","/data-catalog/[systemId]/resources","/data-catalog/[systemId]/resources/[resourceUrn]","/data-discovery/action-center","/data-discovery/action-center/[monitorId]","/data-discovery/action-center/[monitorId]/[systemId]","/data-discovery/activity","/data-discovery/detection","/data-discovery/detection/[resourceUrn]","/data-discovery/discovery","/data-discovery/discovery/[resourceUrn]","/datamap","/dataset","/dataset/new","/dataset/[datasetId]","/dataset/[datasetId]/[collectionName]","/dataset/[datasetId]/[collectionName]/[...subfieldNames]","/datastore-connection","/datastore-connection/new","/datastore-connection/[id]","/fides-js-docs","/integrations","/integrations/[id]","/login","/login/[provider]","/messaging","/messaging/add-template","/messaging/[id]","/poc/ant-components","/poc/form-experiments/AntForm","/poc/form-experiments/FormikAntFormItem","/poc/form-experiments/FormikControlled","/poc/form-experiments/FormikField","/poc/form-experiments/FormikSpreadField","/poc/forms","/poc/table-migration","/privacy-requests","/privacy-requests/configure","/privacy-requests/configure/messaging","/privacy-requests/configure/storage","/privacy-requests/[id]","/properties","/properties/add-property","/properties/[id]","/reporting/datamap","/settings/about","/settings/about/alpha","/settings/consent","/settings/consent/[configuration_id]/[purpose_id]","/settings/custom-fields","/settings/domain-records","/settings/domains","/settings/email-templates","/settings/locations","/settings/organization","/settings/regulations","/systems","/systems/configure/[id]","/systems/configure/[id]/test-datasets","/taxonomy","/user-management","/user-management/new","/user-management/profile/[id]"]}}("static/chunks/2858-0b44609b6be7850b.js","static/chunks/2866-a73888c17a195cbe.js","static/chunks/9278-9b1b5970f0702668.js","static/chunks/409-a257e14acebcd73b.js","static/chunks/699-8ca44b0de9fa20f0.js","static/css/d2d4e9a6923e6730.css","static/chunks/401-1b529d5800aa1f3a.js","static/chunks/3662-f6a1ddca5ee42076.js","static/chunks/6527-0eed08abe252a918.js","static/chunks/431-34f0b91c26f8d9ab.js","static/chunks/5277-e8a036319456127f.js","static/chunks/9951-9b753ad7c3f51bdf.js","static/chunks/3923-6cc911dafccc5f63.js","static/chunks/6084-7178ff6ea6822475.js","static/chunks/5574-b13021775a15bfd2.js","static/chunks/6780-5bd185892f6af46e.js","static/chunks/6882-6af16fef26c21e06.js","static/css/10994e916bc9a00a.css","static/chunks/9226-746771d47dff6266.js","static/chunks/7476-281ee9a8286556f3.js","static/css/972dc7eef106ee7c.css","static/chunks/3450-0ba194991d0cca88.js","static/css/304c6f148886a8d4.css","static/chunks/796-329a5f823ec258a5.js","static/chunks/6853-2ad3e08fe6f9f5f2.js","static/chunks/9014-eeae6f581158e645.js","static/chunks/1817-e601e737e3cc7a0e.js","static/chunks/3615-5e2d062d684b8fa1.js","static/chunks/6954-bb875d9ac89f6030.js","static/chunks/79-7e87aff851423d4a.js","static/chunks/3872-46cebf7ec1b31a2b.js","static/chunks/3855-e172870d3e21b0dd.js","static/chunks/5309-d73339f062763fed.js","static/chunks/9046-ce9567c9074563e2.js","static/chunks/4230-60100f7ef3ddcde1.js","static/chunks/1807-3beab149351d5ded.js","static/chunks/4608-bbb7bf511a05c3c2.js","static/chunks/2599-6c4d22e75028d8b6.js","static/chunks/1316-6cc72a45ebf7ff81.js","static/chunks/6662-507be5d46e5b719b.js","static/chunks/7630-9aac73191ed5ed13.js","static/chunks/2921-455e6357b74d2f76.js","static/chunks/203-5a663f465ba26bb4.js","static/chunks/787-fb41002f797eb2df.js","static/chunks/9826-111aaee8bd8dbd09.js","static/chunks/4121-2bc09fc4ddbfe5cb.js"),self.__BUILD_MANIFEST_CB&&self.__BUILD_MANIFEST_CB();
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3450],{30454:function(e,s,t){var a=t(40699);e.exports=function(e){return a(e,5)}},77867:function(e,s,t){"use strict";var a=t(24246),i=t(13577);s.Z=e=>{let{connected:s,...t}=e,n="red.500";return null==s?n="gray.300":s&&(n="green.500"),(0,a.jsx)(i.xuv,{width:"12px",height:"12px",borderRadius:"6px",backgroundColor:n,...t})}},59301:function(e,s,t){"use strict";var a=t(24246);let{Link:i}=t(13577).AntTypography;s.Z=e=>(0,a.jsx)(i,{target:"_blank",rel:"noopener noreferrer",...e})},77213:function(e,s,t){"use strict";t.d(s,{Z:function(){return p}});var a=t(24246),i=t(13577),n=t(88038),r=t.n(n),l=t(86677);t(27378);var o=t(25980),d=t(90867),c=t(77830),u=()=>{let e=(0,l.useRouter)();return(0,a.jsx)(i.xuv,{bg:"gray.50",border:"1px solid",borderColor:"blue.400",borderRadius:"md",justifyContent:"space-between",p:5,mb:5,mt:5,children:(0,a.jsxs)(i.xuv,{children:[(0,a.jsxs)(i.Kqy,{direction:{base:"column",sm:"row"},justifyContent:"space-between",children:[(0,a.jsx)(i.xvT,{fontWeight:"semibold",children:"Configure your storage and messaging provider"}),(0,a.jsx)(i.wpx,{onClick:()=>{e.push(c.fz)},children:"Configure"})]}),(0,a.jsxs)(i.xvT,{children:["Before Fides can process your privacy requests we need two simple steps to configure your storage and email client."," "]})]})})},p=e=>{let{children:s,title:t,padded:n=!0,mainProps:c}=e,p=(0,o.hz)(),m=(0,l.useRouter)(),h="/privacy-requests"===m.pathname||"/datastore-connection"===m.pathname,x=!(p.flags.privacyRequestsConfiguration&&h),{data:g}=(0,d.JE)(void 0,{skip:x}),{data:y}=(0,d.PW)(void 0,{skip:x}),f=p.flags.privacyRequestsConfiguration&&(!g||!y)&&h;return(0,a.jsxs)(i.kCb,{"data-testid":t,direction:"column",h:"100vh",children:[(0,a.jsxs)(r(),{children:[(0,a.jsxs)("title",{children:["Fides Admin UI - ",t]}),(0,a.jsx)("meta",{name:"description",content:"Privacy Engineering Platform"}),(0,a.jsx)("link",{rel:"icon",href:"/favicon.ico"})]}),(0,a.jsxs)(i.kCb,{as:"main",direction:"column",py:n?6:0,px:n?10:0,h:n?"calc(100% - 48px)":"full",flex:1,minWidth:0,overflow:"auto",...c,children:[f?(0,a.jsx)(u,{}):null,s]})]})}},19904:function(e,s,t){"use strict";t.d(s,{Tg:function(){return r}});var a=t(24246),i=t(16134),n=t(31793);let r=e=>(0,i.C)(n.uu).filter(s=>e.includes(s)).length>0;s.ZP=e=>{let{scopes:s,children:t}=e;return r(s)?(0,a.jsx)(a.Fragment,{children:t}):null}},83099:function(e,s,t){"use strict";var a=t(24246),i=t(79283),n=t(34929);s.Z=e=>{let{selectedTaxonomies:s,showDisabled:t=!1,...r}=e,{getDataUseDisplayNameProps:l,getDataUses:o}=(0,n.Z)(),d=(t?o():o().filter(e=>e.active)).filter(e=>!s.includes(e.fides_key)).map(e=>{let{name:s,primaryName:t}=l(e.fides_key);return{value:e.fides_key,name:s,primaryName:t,description:e.description||""}});return(0,a.jsx)(i.l,{options:d,...r})}},71248:function(e,s,t){"use strict";t.d(s,{A:function(){return o}});var a=t(24246),i=t(34090),n=t(46782),r=t(97181),l=t(40324);let o=e=>{var s,t;let{name:o,fieldSchema:d,isRequired:c,layout:u="stacked",secretsSchema:p,validate:m}=e,h=(null===(t=d.allOf)||void 0===t?void 0:null===(s=t[0])||void 0===s?void 0:s.$ref)&&d.allOf[0].$ref!==n.j?null==p?void 0:p.definitions[d.allOf[0].$ref.replace("#/definitions/","")]:void 0,x=!!(null==h?void 0:h.enum)||d.options,g="boolean"===d.type,y=()=>{var e;if((null===(e=d.allOf)||void 0===e?void 0:e[0].$ref)===n.j)return"Enter dataset.collection.field"};return(0,a.jsx)(i.gN,{id:o,name:o,validate:m,children:e=>{let{field:s}=e;if(x){var t,i,n;let e=null!==(n=null==h?void 0:null===(t=h.enum)||void 0===t?void 0:t.map(e=>({label:e,value:e})))&&void 0!==n?n:null===(i=d.options)||void 0===i?void 0:i.map(e=>({label:e,value:e}));return(0,a.jsx)(r.d,{name:s.name,id:s.name,label:d.title,isRequired:c,tooltip:d.description,layout:u,options:e,mode:d.multiselect?"multiple":void 0},s.name)}return g?(0,a.jsx)(r.d,{name:s.name,id:s.name,label:d.title,isRequired:c,tooltip:d.description,layout:u,options:[{label:"False",value:"false"},{label:"True",value:"true"}]},s.name):(0,a.jsx)(l.j0,{...s,label:d.title,tooltip:d.description,isRequired:c,type:d.sensitive?"password":"text",placeholder:y(),autoComplete:"off",color:"gray.700",variant:u})}},o)}},46782:function(e,s,t){"use strict";t.d(s,{j:function(){return n},l:function(){return r}});var a=t(30454),i=t.n(a);let n="#/definitions/FidesDatasetReference",r=e=>{let s=(e,s,t)=>{let a;return(void 0===s||""===s||void 0===s)&&(a="".concat(e," is required")),t===n&&((null==s?void 0:s.includes("."))?s.split(".").length<3&&(a="Dataset reference must include at least three parts"):a="Dataset reference must be dot delimited"),a},t=s=>{var t,a;return null!==(a=null==e?void 0:null===(t=e.required)||void 0===t?void 0:t.includes(s))&&void 0!==a&&a};return{validateField:s,isRequiredField:t,getFieldValidation:(e,a)=>{if(t(e))return e=>{var t;return s(a.title,e,null===(t=a.allOf)||void 0===t?void 0:t[0].$ref)}},preprocessValues:s=>{let t=i()(s);return e&&Object.keys(e.properties).forEach(s=>{var a,i;if((null===(a=e.properties[s].allOf)||void 0===a?void 0:a[0].$ref)===n){let e=null===(i=t.secrets[s])||void 0===i?void 0:i.split(".");e&&(t.secrets[s]={dataset:e.shift(),field:e.join("."),direction:"from"})}"WebsiteSchema"!==e.title||"URL"!==e.properties[s].title||t.secrets[s].startsWith("http://")||t.secrets[s].startsWith("https://")||(t.secrets[s]="https://".concat(t.secrets[s]))}),t}}}},16220:function(e,s,t){"use strict";t.d(s,{V:function(){return n}});var a=t(25980),i=t(77830);let n=()=>({systemOrDatamapRoute:(0,a.hz)().plus?i.oG:i.So})},90111:function(e,s,t){"use strict";var a=t(24246),i=t(13577);s.Z=e=>{let{children:s,...t}=e;return(0,a.jsx)(i.xuv,{p:4,mb:4,border:"1px solid",borderColor:"gray.200",bgColor:"gray.50",borderRadius:"md",...t,children:s})}},44553:function(e,s,t){"use strict";t.d(s,{Z:function(){return g}});var a=t(24246),i=t(13577),n=t(27378),r=t(45277),l=t(16125),o=t(812),d=t(46628),c=t(20682),u=t(54427),p=t(52253),m=t(78780);let{reducer:h}=(0,u.oM)({name:"connectorTemplate",initialState:{},reducers:{}}),{useRegisterConnectorTemplateMutation:x}=m.u.injectEndpoints({endpoints:e=>({registerConnectorTemplate:e.mutation({query:e=>{let s=new FormData;return s.append("file",e),{url:"".concat(p.o4,"/register"),method:"POST",body:s}},invalidatesTags:()=>["Connection Type"]})})});var g=e=>{let{isOpen:s,onClose:t,testId:u="connector-template-modal"}=e,p=(0,l.I0)(),[m,h]=(0,n.useState)(null),g=(0,i.pmc)(),{getRootProps:y,getInputProps:f,isDragActive:_}=(0,r.uI)({onDrop:e=>{var s;if("zip"!==(null===(s=e[0].name.split(".").pop())||void 0===s?void 0:s.toLowerCase())){g((0,d.Vo)("Only zip files are allowed."));return}h(e[0])}}),[v,{isLoading:b}]=x(),{refetch:j}=(0,c.$I)({search:""},{skip:!1}),k=async()=>{if(m)try{var e;await v(m).unwrap(),g((0,d.t5)("Integration template uploaded successfully."));let{data:s}=await j();p((0,c.fP)(null!==(e=null==s?void 0:s.items)&&void 0!==e?e:[])),t()}catch(e){g((0,d.Vo)((0,o.e$)(e)))}finally{h(null)}};return(0,a.jsxs)(i.u_l,{isOpen:s,onClose:t,size:"2xl",children:[(0,a.jsx)(i.ZAr,{}),(0,a.jsxs)(i.hzk,{textAlign:"left",p:2,"data-testid":u,children:[(0,a.jsx)(i.xBx,{children:"Upload integration template"}),(0,a.jsxs)(i.fef,{children:[(0,a.jsx)(i.xvT,{fontSize:"sm",mb:4,children:"Drag and drop your integration template zip file here, or click to browse your files."}),(0,a.jsxs)(i.xuv,{...y(),bg:_?"gray.100":"gray.50",border:"2px dashed",borderColor:_?"gray.300":"gray.200",borderRadius:"md",cursor:"pointer",minHeight:"150px",display:"flex",alignItems:"center",justifyContent:"center",textAlign:"center",children:[(0,a.jsx)("input",{...f()}),m?(0,a.jsx)(i.xvT,{children:m.name}):_?(0,a.jsx)(i.xvT,{children:"Drop the file here..."}):(0,a.jsx)(i.xvT,{children:"Click or drag and drop your file here."})]}),(0,a.jsx)(i.xvT,{fontSize:"sm",mt:4,children:"An integration template zip file must include a SaaS config and dataset, but may also contain an icon (.svg) as an optional file."})]}),(0,a.jsxs)(i.mzw,{className:"flex w-full justify-end gap-2",children:[(0,a.jsx)(i.wpx,{onClick:t,"data-testid":"cancel-btn",disabled:b,children:"Cancel"}),(0,a.jsx)(i.wpx,{type:"primary",htmlType:"submit",disabled:!m||b,onClick:k,"data-testid":"submit-btn",children:"Submit"})]})]})]})}},3765:function(e,s,t){"use strict";var a=t(13577),i=t(812),n=t(46628),r=t(1315),l=t(31883);s.Z=e=>{let s=(0,a.pmc)(),[t]=(0,r.qQ)(),o=t=>!!e.privacy_declarations.find(e=>e.data_use===t.data_use&&e.name===t.name)&&(s((0,n.Vo)("A declaration already exists with that data use in this system. Please supply a different data use.")),!0),d=(e,t)=>{if((0,l.D4)(e)){let t=(0,i.e$)(e.error,"An unexpected error occurred while updating the system. Please try again.");s((0,n.Vo)(t));return}return s.closeAll(),s((0,n.t5)(t?"Data use deleted":"Data use saved")),e.data.privacy_declarations},c=async(s,a)=>{let i=s.map(e=>{var s;return{...e,name:null!==(s=e.name)&&void 0!==s?s:""}}),n={...e,privacy_declarations:i};return d(await t(n),a)};return{createDataUse:async t=>{if(!o(t))return s.closeAll(),c([...e.privacy_declarations,t])},updateDataUse:async(s,t)=>{if(!(t.id!==s.id&&o(t)))return c(e.privacy_declarations.map(e=>e.id===s.id?t:e))},deleteDataUse:async s=>c(e.privacy_declarations.filter(e=>e.id!==s.id),!0),deleteDeclarationByDataUse:async s=>c(e.privacy_declarations.filter(e=>e.data_use!==s),!0)}}},41337:function(e,s,t){"use strict";var a=t(24246),i=t(13577);t(27378);var n=t(88337),r=t(16394),l=t(14746);let o=l.Ny+l.iW.get(n.R.WEBSITE),d=e=>void 0!==e.connection_type,c=e=>void 0!==e.encoded_icon,u=e=>(null==e?void 0:e.connection_type)===n.R.WEBSITE,p=e=>(null==e?void 0:e.connection_type)===n.R.SAAS;s.Z=e=>{let{data:s,...t}=e;return(0,a.jsx)(i.Eep,{boxSize:"32px",objectFit:"cover",src:(()=>{var e,t;let a;if(c(s)&&s.encoded_icon)return"data:image/svg+xml;base64,".concat(s.encoded_icon);if(u(s)){let t=null===(e=s.secrets)||void 0===e?void 0:e.url;if(!t)return o;let a=(0,r.ge)(t);return(0,r.tl)(a,100)}if(d(s)){if(p(s)&&(null===(t=s.saas_config)||void 0===t?void 0:t.type)){let e=s.saas_config.type,t=l.LN.get(e);return t?l.Ny+t:l.Ny+l.iW.get(n.R.SAAS)}a=[...l.iW].find(e=>{let[t]=e;return s.connection_type.toString()===t.toString()})}else if(c(s)){let{identifier:e}=s;a=[...l.iW].find(s=>{let[t]=s;return t.toLowerCase()===e.toLowerCase()})}return a?l.Ny+a[1]:l.VD})(),fallbackSrc:u(s)?o:l.VD,alt:(()=>{if(d(s)){var e;return null!==(e=s.name)&&void 0!==e?e:s.key}return c(s)?s.human_readable:s})(),...t})}},73183:function(e,s,t){"use strict";var a=t(24246),i=t(13577);t(27378);var n=t(14207);s.Z=e=>{let{connection_key:s,disabled:t,name:r,access_type:l,connection_type:o,isSwitch:d}=e,{isOpen:c,onOpen:u,onClose:p}=(0,i.qY0)(),[m,h]=(0,n.XX)(),x=async()=>{await m({key:s,name:r,disabled:!t,access:l,connection_type:o}),p()},g=()=>{h.isLoading||p()};return(0,a.jsxs)(a.Fragment,{children:[d?(0,a.jsxs)(i.kCb,{justifyContent:"space-between",alignItems:"center",children:[(0,a.jsx)(i.xvT,{fontSize:"sm",children:"Enable integration"}),(0,a.jsx)(i.rAg,{className:"ml-2",checked:!t,onChange:()=>u()})]}):(0,a.jsx)(i.sNh,{_focus:{color:"complimentary.500",bg:"gray.100"},onClick:u,children:(0,a.jsx)(i.xvT,{fontSize:"sm",children:t?"Enable":"Disable"})}),(0,a.jsxs)(i.u_l,{isCentered:!0,isOpen:c,onClose:g,children:[(0,a.jsx)(i.ZAr,{}),(0,a.jsxs)(i.hzk,{children:[(0,a.jsxs)(i.xBx,{children:[t?"Enable":"Disable"," Connection"]}),(0,a.jsx)(i.olH,{}),(0,a.jsx)(i.fef,{pb:6,children:(0,a.jsx)(i.Kqy,{direction:"column",spacing:"15px",children:(0,a.jsxs)(i.xvT,{color:"gray.600",fontSize:"sm",fontWeight:"sm",lineHeight:"20px",children:[t?"Enabling":"Disabling"," a connection may impact any privacy request that is currently in progress. Do you wish to proceed?"]})})}),(0,a.jsxs)(i.mzw,{className:"flex gap-4",children:[(0,a.jsx)(i.wpx,{onClick:g,className:"w-1/2",children:"Cancel"}),(0,a.jsxs)(i.wpx,{onClick:x,loading:h.isLoading,className:"w-1/2",children:[t?"Enable":"Disable"," Connection"]})]})]})]})]})}},8627:function(e,s,t){"use strict";t.d(s,{s:function(){return l}});var a=t(24246),i=t(13577),n=t(77867),r=t(16394);let l=e=>{let{succeeded:s,timestamp:t}=e,l=t?(0,r.p6)(t):"";return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(n.Z,{connected:s}),(0,a.jsx)(i.xvT,{color:"gray.500",fontSize:"xs",fontWeight:"semibold",lineHeight:"16px",ml:"10px",children:t?"Last tested on ".concat(l):"This connection has not been tested yet"})]})}},27259:function(e,s,t){"use strict";var a=t(24246),i=t(13577),n=t(34090);s.Z=e=>{let{disabled:s=!1,isRequired:t=!1,label:r,placeholder:l,type:o="text",...d}=e,{id:c,autoFocus:u}=d,[p,m]=(0,n.U$)(d);return(0,a.jsxs)(i.NIc,{display:"flex",isRequired:t,isInvalid:!!(m.error&&m.touched),children:[r&&(0,a.jsx)(i.lXp,{color:"gray.900",fontSize:"14px",fontWeight:"semibold",htmlFor:c,minWidth:"150px",children:r}),(0,a.jsxs)(i.gCW,{align:"flex-start",w:"inherit",children:["number"===o&&(0,a.jsxs)(i.Y2U,{allowMouseWheel:!0,color:"gray.700",defaultValue:0,min:0,size:"sm",children:[(0,a.jsx)(i.zuI,{...p,autoComplete:"off",autoFocus:u}),(0,a.jsxs)(i.FiK,{children:[(0,a.jsx)(i.WQu,{}),(0,a.jsx)(i.Y_d,{})]})]}),"text"===o&&(0,a.jsx)(i.IIB,{...p,autoComplete:"off",autoFocus:u,color:"gray.700",isDisabled:s,placeholder:l,size:"sm"}),"textarea"===o&&(0,a.jsx)(i.gxH,{...p,autoComplete:"off",autoFocus:u,color:"gray.700",placeholder:l,resize:"none",size:"sm",value:p.value||""}),(0,a.jsx)(i.J1D,{children:m.error})]})]})}},19812:function(e,s,t){"use strict";t.d(s,{t:function(){return l}});var a=t(14047),i=t(14207),n=t(27378),r=t(41966);let l=e=>{var s,t,l;let{connectionConfig:o}=e,[d]=(0,i.S6)(),{data:c}=(0,i.Eg)(null!==(t=null==o?void 0:o.key)&&void 0!==t?t:""),u=null!==(l=null==c?void 0:null===(s=c.items)||void 0===s?void 0:s.map(e=>e.fides_key))&&void 0!==l?l:[],p=u.map(e=>({label:e,value:e})),{data:m}=(0,r.LH)({onlyUnlinkedDatasets:!0,minimal:!0}),h=(0,n.useMemo)(()=>{var e;return null!==(e=null==m?void 0:m.map(e=>({value:e.fides_key,label:"".concat(e.name," (").concat(e.fides_key,")")||0})))&&void 0!==e?e:[]},[m]),{errorAlert:x,successAlert:g}=(0,a.V)();return{dropdownOptions:[...p,...h],initialDatasets:u,patchConnectionDatasetConfig:async function(e,s){var t,a,i;let{showSuccessAlert:n=!0}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=null!==(i=null===(t=e.dataset)||void 0===t?void 0:t.map(e=>({fides_key:e,ctl_dataset_fides_key:e})))&&void 0!==i?i:[],l=await d({connection_key:s,dataset_pairs:r}).unwrap();(null===(a=l.failed)||void 0===a?void 0:a.length)>0?x(l.failed[0].message):n&&g("Dataset successfully updated!")}}}},72774:function(e,s,t){"use strict";t.d(s,{Z:function(){return r}});var a=t(24246),i=t(13577),n=e=>{let{title:s,description:t,button:n}=e;return(0,a.jsxs)(i.Ugi,{backgroundColor:"gray.50",border:"1px solid",borderColor:"blue.400",borderRadius:"md",justifyContent:"space-between",py:4,px:6,"data-testid":"empty-state",children:[(0,a.jsx)(i.iid,{alignSelf:"start",color:"blue.400",mt:.5}),(0,a.jsxs)(i.xuv,{flexGrow:1,children:[(0,a.jsx)(i.xvT,{fontWeight:"bold",fontSize:"sm",mb:1,children:s}),(0,a.jsx)(i.xvT,{fontSize:"sm",color:"gray.600",lineHeight:"5",children:t})]}),n]})},r=()=>(0,a.jsx)(i.xuv,{mb:"6",maxW:"720px","data-testid":"locked-for-GVL-notice",children:(0,a.jsx)(n,{title:"This system is part of the TCF Global Vendor List (GVL)",description:(0,a.jsxs)(a.Fragment,{children:["As a result, certain fields are not editable as they come directly from Fides Compass and the Global Vendor List (GVL). In some cases, where the legal basis has been declared to be flexible, you may update the legal basis for particular data uses."," ",(0,a.jsx)(i.rUS,{href:"https://fid.es/tcf_gvl",isExternal:!0,color:"complimentary.500",children:"For more information on the Global Vendor List, click here."})]})})})},69525:function(e,s,t){"use strict";t.d(s,{U:function(){return a}});let a=e=>{let s=e.data_categories.flatMap(e=>e.split(","));return{data_use:e.data_use,data_categories:s,features:e.features,legal_basis_for_processing:e.legal_basis_for_processing,flexible_legal_basis_for_processing:e.flexible_legal_basis_for_processing,retention_period:e.retention_period?e.retention_period:""}}},72250:function(e,s,t){"use strict";t.d(s,{Z:function(){return sH}});var a,i,n,r,l=t(24246),o=t(84720),d=t(13577),c=t(79894),u=t.n(c),p=t(86677),m=t.n(p),h=t(27378),x=t(16134),g=t(25980),y=t(45938),f=t(16220),_=t(77830),v=t(14908),b=t(46628),j=t(26089),k=t(19904),w=t(16394),C=t(20682),S=t(41337);let D=e=>{let{connectionConfig:s}=e,t=(0,x.C)(C.pw),{data:a}=(0,C.$I)(t),i=(0,h.useMemo)(()=>(null==a?void 0:a.items)||[],[a]),[n,r]=(0,h.useState)(),l=(0,h.useMemo)(()=>[...i].sort((e,s)=>e.human_readable>s.human_readable?1:-1),[i]),o=(0,h.useMemo)(()=>{let e=new Map;return null==l||l.map(s=>e.set(s.human_readable,{value:s})),e},[l]),d=(0,h.useMemo)(()=>{var e;return(null===(e=i.find(e=>e.identifier===(null==s?void 0:s.connection_type)||(null==s?void 0:s.saas_config)&&e.identifier===(null==s?void 0:s.saas_config.type)))||void 0===e?void 0:e.type)||"ethyca"},[s,i]);return(0,h.useMemo)(()=>{let e=i.find(e=>(null==s?void 0:s.saas_config)&&e.identifier===(null==s?void 0:s.saas_config.type)||e.identifier===(null==s?void 0:s.connection_type));e&&r(e)},[s,i]),{dropDownOptions:o,selectedValue:n,setSelectedValue:r,systemType:d}};var T=e=>{var s;let{disabled:t,hasClear:a=!0,label:i,list:n,onChange:r,selectedValue:o}=e,c=(0,h.useRef)(null),[u,p]=(0,h.useState)(!1),[m,x]=(0,h.useState)(""),g=()=>{p(!1)},y=null===(s=[...n].find(e=>{let[,s]=e;return s.value.identifier===(null==o?void 0:o.identifier)}))||void 0===s?void 0:s[0],f=(0,h.useCallback)(e=>{(0===e.target.value.length||e.target.value.length>1)&&(x(e.target.value),setTimeout(()=>{var e;return null===(e=c.current)||void 0===e?void 0:e.focus()},0))},[]),_=(0,h.useMemo)(()=>(0,w.Ds)(f,100),[f]),v=(0,h.useMemo)(()=>[...n].filter(e=>e[0].toLowerCase().includes(m.toLowerCase())),[n,m]);return(0,l.jsxs)(d.v2r,{isLazy:!0,onClose:g,onOpen:()=>{p(!0)},strategy:"fixed",matchWidth:!0,children:[(0,l.jsx)(d.j2t,{"aria-label":null!=y?y:i,as:d.wpx,color:y?"complimentary.500":void 0,disabled:t,icon:(0,l.jsx)(d.mCO,{}),iconPosition:"end",className:"!bg-transparent text-left hover:bg-transparent active:bg-transparent","data-testid":"select-dropdown-btn",width:"272px",children:(0,l.jsx)(d.xvT,{noOfLines:1,style:{wordBreak:"break-all"},children:null!=y?y:i})}),u?(0,l.jsxs)(d.qyq,{id:"MENU_LIST",lineHeight:"1rem",p:"0",maxHeight:"400px",overflow:"hidden","data-testid":"select-dropdown-list",width:"272px",children:[(0,l.jsx)(d.xuv,{px:"8px",mt:2,children:(0,l.jsxs)(d.BZy,{size:"sm",children:[(0,l.jsx)(d.Z8_,{pointerEvents:"none",children:(0,l.jsx)(d.PTu,{color:"gray.300",h:"17px",w:"17px"})}),(0,l.jsx)(d.IIB,{"data-testid":"input-search-integrations",ref:c,autoComplete:"off",autoFocus:!0,borderRadius:"md",name:"search",onChange:_,placeholder:"Search integrations",size:"sm",type:"search"})]})}),a&&(0,l.jsx)(d.kCb,{borderBottom:"1px",borderColor:"gray.200",cursor:"auto",p:"8px",children:(0,l.jsx)(d.wpx,{onClick:()=>{r(void 0),x(""),g()},size:"small",children:"Clear"})}),(0,l.jsx)(d.xuv,{overflowY:"auto",maxHeight:"272px",children:v.map(e=>{let[s,t]=e;return(0,l.jsx)(d.esZ,{title:t.toolTip,placement:"rightTop",mouseEnterDelay:.5,children:(0,l.jsxs)(d.sNh,{color:o===t.value?"complimentary.500":void 0,isDisabled:t.isDisabled,onClick:()=>r(t.value),paddingTop:"10px",paddingRight:"8.5px",paddingBottom:"10px",paddingLeft:"8.5px",_focus:{bg:"gray.100"},children:[(0,l.jsx)(S.Z,{data:t.value}),(0,l.jsx)(d.xvT,{ml:2,fontSize:"0.75rem",noOfLines:1,wordBreak:"break-all",children:s})]})},s)})})]}):null]})},A=t(14047),E=t(1315),q=t(73825),R=t(84306),I=t(14207),z=t(59301),F=(0,d.IUT)({displayName:"RightArrow",viewBox:"0 0 16 16",d:"M10.7814 7.33312L7.20541 3.75712L8.14808 2.81445L13.3334 7.99979L8.14808 13.1851L7.20541 12.2425L10.7814 8.66645H2.66675V7.33312H10.7814Z"}),L=t(19812),O=e=>{let{status:s,failure_reason:t}=e;if("error"===s){let e="Connection test failed.";return t&&(e+=" ".concat(t)),(0,l.jsx)(d.xvT,{"data-testid":"toast-error-msg",children:e})}return(0,l.jsx)(d.xvT,{"data-testid":"toast-success-msg",children:"Connection test was successful"})},Z=t(8627),W=t(32885),P=t(65450),N=t(40324),U=t(34090),V=t(55484),B=t(97181),M=t(57072),K=t(39864),H=t(27259);let Y=e=>{let{isSubmitting:s=!1,onCancelClick:t}=e;return(0,l.jsxs)(d.hE2,{size:"sm",spacing:"8px",variant:"outline",children:[(0,l.jsx)(d.zxk,{onClick:t,variant:"outline",children:"Cancel"}),(0,l.jsx)(d.zxk,{bg:"primary.800",color:"white",isDisabled:s,isLoading:s,loadingText:"Submitting",size:"sm",variant:"solid",type:"submit",_active:{bg:"primary.500"},_disabled:{opacity:"inherit"},_hover:{bg:"primary.400"},children:"Save"})]})};var G=e=>{let{data:s=[],isSubmitting:t=!1,onSaveClick:a,onCancel:i}=e,{isLoading:n}=(0,M.MO)(),r=(0,x.C)(K.qb),{errorAlert:o}=(0,A.V)();return n?null:(0,l.jsx)(U.J9,{enableReinitialize:!0,initialValues:{fields:s.length>0?s:[{pii_field:"",dsr_package_label:"",data_categories:[]}]},onSubmit:(e,s)=>{if(new Set(e.fields.map(e=>e.pii_field)).size<e.fields.length){o("PII Field must be unique");return}a(e,s)},validateOnBlur:!1,validateOnChange:!1,validationSchema:V.Ry({fields:V.IX().of(V.Ry().shape({pii_field:V.Z_().required("PII Field is required").min(1,"PII Field must have at least one character").max(200,"PII Field has a maximum of 200 characters").label("PII Field"),dsr_package_label:V.Z_().required("DSR Package Label is required").min(1,"DSR Package Label must have at least one character").max(200,"DSR Package Label has a maximum of 200 characters").label("DSR Package Label"),data_categories:V.IX(V.Z_()).label("Data Categories")}))}),children:e=>(0,l.jsx)(U.l0,{style:{marginTop:0},noValidate:!0,children:(0,l.jsx)(d.gCW,{align:"stretch",children:(0,l.jsx)(U.F2,{name:"fields",render:s=>{let{fields:a}=e.values;return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)(d.Ugi,{color:"gray.900",flex:"1",fontSize:"14px",fontWeight:"semibold",lineHeight:"20px",mb:"6px",spacing:"24px",children:[(0,l.jsx)(d.xuv,{w:"416px",children:"PII Field"}),(0,l.jsx)(d.xuv,{w:"416px",children:"DSR Package Label"}),(0,l.jsx)(d.xuv,{w:"416px",children:"Data Categories"}),(0,l.jsx)(d.xuv,{visibility:"hidden",children:(0,l.jsx)(d.lr0,{})})]}),(0,l.jsx)(d.xuv,{children:a&&a.length>0?a.map((e,t)=>(0,l.jsxs)(d.Ugi,{mt:t>0?"12px":void 0,spacing:"24px",align:"flex-start",children:[(0,l.jsx)(d.xuv,{minH:"57px",w:"416px",children:(0,l.jsx)(H.Z,{autoFocus:0===t,isRequired:!0,name:"fields.".concat(t,".pii_field")})}),(0,l.jsx)(d.xuv,{minH:"57px",w:"416px",children:(0,l.jsx)(H.Z,{isRequired:!0,name:"fields.".concat(t,".dsr_package_label")})}),(0,l.jsx)(d.xuv,{minH:"57px",w:"416px",children:(0,l.jsx)(B.d,{name:"fields.".concat(t,".data_categories"),options:r.map(e=>({value:e.fides_key,label:e.fides_key})),isRequired:!0,mode:"multiple"})}),(0,l.jsx)(d.xuv,{h:"57px",visibility:t>0?"visible":"hidden",children:(0,l.jsx)(d.lr0,{onClick:()=>s.remove(t),_hover:{cursor:"pointer"}})})]},t)):null}),(0,l.jsx)(d.xvT,{color:"complimentary.500",fontWeight:"medium",fontSize:"sm",mb:"24px !important",mt:"24px !important",onClick:()=>{s.push({pii_field:"",dsr_package_label:"",data_categories:[]})},_hover:{cursor:"pointer"},children:"Add new PII field"}),(0,l.jsx)(Y,{isSubmitting:t,onCancelClick:i})]})}})})})})},$=e=>{let{connectionConfig:s}=e,t=(0,h.useRef)(!1),{successAlert:a}=(0,A.V)(),{handleError:i}=(0,A.H)(),[n,r]=(0,h.useState)(!1),[o,c]=(0,h.useState)([]),{isOpen:u,onOpen:p,onClose:m}=(0,d.qY0)(),{data:x,isFetching:g,isLoading:y,isSuccess:f}=(0,I.QV)(s?s.key:"",{skip:!s}),[_]=(0,I.jF)(),[v]=(0,I._d)(),b=async(e,t)=>{try{r(!0);let t={connection_key:s.key,body:{...e}};o.length>0?await v(t).unwrap():await _(t).unwrap(),a("DSR customization ".concat(o.length>0?"updated":"added","!"))}catch(e){i(e)}finally{r(!1)}};(0,h.useEffect)(()=>(t.current=!0,f&&x&&c(x.fields),()=>{t.current=!1}),[x,f]);let j=(0,l.jsx)(d.wpx,{disabled:!s||n,loading:n,onClick:p,children:"Customize DSR"});return(0,l.jsxs)(l.Fragment,{children:[s?j:(0,l.jsx)(d.esZ,{title:"Save an Integration first to customize the DSR",placement:"top",children:j}),(0,l.jsxs)(d.u_l,{isCentered:!0,isOpen:u,size:"lg",onClose:m,children:[(0,l.jsx)(d.ZAr,{}),(0,l.jsxs)(d.hzk,{minWidth:"775px",children:[(0,l.jsx)(d.xBx,{children:"Customize DSR"}),(0,l.jsx)(d.olH,{}),(0,l.jsx)(d.fef,{pb:6,children:(0,l.jsxs)(d.gCW,{align:"stretch",gap:"16px",children:[(0,l.jsx)(d.xuv,{color:"gray.700",fontSize:"14px",children:'Customize your PII fields to create a friendly label name for your privacy request packages. This "Package Label" is the label your user will see in their downloaded package.'}),(g||y)&&(0,l.jsx)(d.M5Y,{children:(0,l.jsx)(d.$jN,{})}),t.current&&!y?(0,l.jsx)(G,{data:o,isSubmitting:n,onSaveClick:b,onCancel:m}):null]})})]})]})]})},Q=t(98784),J=t.n(Q),X=t(71248),ee=t(46782),es=t(73183),et=t(95492),ea=e=>{let{onDelete:s,deleteResult:t}=e,{isOpen:a,onOpen:i,onClose:n}=(0,d.qY0)(),r=()=>{(!t.isLoading&&t.isSuccess||!t.isLoading&&t.isUninitialized)&&n()};return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(d.LZC,{}),(0,l.jsxs)(d.kCb,{alignItems:"center",children:[(0,l.jsx)(d.xvT,{fontSize:"sm",children:"Delete integration"}),(0,l.jsx)(d.wpx,{"aria-label":"Delete integration",icon:(0,l.jsx)(et.l,{}),disabled:t.isLoading,onClick:i,className:"ml-2"})]})]}),(0,l.jsxs)(d.u_l,{isCentered:!0,isOpen:a,onClose:r,children:[(0,l.jsx)(d.ZAr,{}),(0,l.jsxs)(d.hzk,{children:[(0,l.jsx)(d.xBx,{children:"Delete integration"}),(0,l.jsx)(d.olH,{}),(0,l.jsx)(d.fef,{pb:6,children:(0,l.jsx)(d.Kqy,{direction:"column",spacing:"15px",children:(0,l.jsx)(d.xvT,{color:"gray.600",fontSize:"sm",fontWeight:"sm",lineHeight:"20px",children:"Deleting an integration may impact any privacy request that is currently in progress. Do you wish to proceed?"})})}),(0,l.jsxs)(d.mzw,{children:[(0,l.jsx)(d.wpx,{onClick:r,className:"w-1/2",children:"Cancel"}),(0,l.jsx)(d.wpx,{onClick:()=>{s()},loading:t.isLoading,type:"primary",className:"w-1/2",children:"Delete integration"})]})]})]})]})},ei=t(99792);let en=(e,s)=>{let t={...e};return s&&Object.entries(s.properties).forEach(e=>{let[s,a]=e;if("secrets"in t||(t.secrets={}),"integer"===a.type)t.secrets[s]=a.default?Number(a.default):0;else{var i;t.secrets[s]=null!==(i=a.default)&&void 0!==i?i:""}}),t},er=(e,s)=>{let t=e.replace(/[^A-Za-z0-9\-_]/g,"");return t.includes(s.identifier)||(t+="_".concat(s.identifier)),s.type===ei.Z.SAAS&&(t+="_api"),t},el=e=>{let{secretsSchema:s,defaultValues:t,isSubmitting:a=!1,isAuthorizing:i=!1,onSaveClick:n,onTestConnectionClick:r,onTestDatasetsClick:o,onAuthorizeConnectionClick:c,testButtonLabel:u="Test integration",connectionOption:p,connectionConfig:m,initialDatasets:h,datasetDropdownOptions:x,isCreatingConnectionConfig:y,onDelete:f,deleteResult:_}=e,[v,{isLoading:b,isFetching:j}]=(0,I.h2)(),{plus:k}=(0,g.hz)(),{getFieldValidation:w,preprocessValues:C}=(0,ee.l)(s),S=async(e,s)=>{Object.keys(await s.validateForm()).length>0||c(C(e))},D=async e=>{Object.keys(await e.validateForm()).length>0||r(await v(m.key))},T=(null==m?void 0:m.disabled)||!1;return(0,l.jsx)(U.J9,{enableReinitialize:!0,initialValues:(()=>{let e={...t};if(null==m?void 0:m.key){var a,i;return e.name=null!==(i=m.name)&&void 0!==i?i:"",e.description=m.description,e.instance_key=m.connection_type===q.Rj.SAAS?null===(a=m.saas_config)||void 0===a?void 0:a.fides_key:m.key,e.enabled_actions=(m.enabled_actions||[]).map(e=>e.toString()),e.secrets=m.secrets?J().cloneDeep(m.secrets):{},e.dataset=h,(null==s?void 0:s.properties)&&Object.entries(s.properties).forEach(s=>{var t;let[a,i]=s;if((null===(t=i.allOf)||void 0===t?void 0:t[0].$ref)===ee.j){let s=e.secrets[a];s&&(e.secrets[a]="".concat(s.dataset,".").concat(s.field))}}),e}return J().isEmpty(e.enabled_actions)&&(e.enabled_actions=p.supported_actions.map(e=>e.toString())),en(e,s)})(),onSubmit:(e,s)=>{n(C(e),s)},validateOnBlur:!0,children:e=>{var t;let n=!e.dirty&&(null==m?void 0:m.authorized);return(0,l.jsx)(U.l0,{children:(0,l.jsxs)(d.gCW,{align:"stretch",gap:"16px",children:[(0,l.jsxs)("div",{className:"flex flex-row",children:[m?(0,l.jsx)(es.Z,{connection_key:null==m?void 0:m.key,disabled:T,connection_type:null==m?void 0:m.connection_type,access_type:null==m?void 0:m.access,name:null!==(t=null==m?void 0:m.name)&&void 0!==t?t:m.key,isSwitch:!0}):null,m?(0,l.jsx)(ea,{onDelete:f,deleteResult:_}):null]}),!!(null==m?void 0:m.key)&&(0,l.jsx)(N.j0,{name:"instance_key",id:"instance_key",label:"Integration identifier",isRequired:!0,disabled:!!(null==m?void 0:m.key),tooltip:"The fides_key will allow fidesops to associate dataset field references appropriately. Must be a unique alphanumeric value with no spaces (underscores allowed) to represent this integration."},"instance_key"),s?Object.entries(s.properties).map(e=>{var t;let[a,i]=e;return"advanced_settings"===a?null:(0,l.jsx)(X.A,{name:"secrets.".concat(a),fieldSchema:i,isRequired:null===(t=s.required)||void 0===t?void 0:t.includes(a),secretsSchema:s,validate:w(a,i),layout:"inline"},"secrets.".concat(a))}):null,k&&(0,l.jsx)(B.d,{name:"enabled_actions",id:"enabled_actions",label:"Request types",isRequired:!0,layout:"inline",mode:"multiple",tooltip:"The request types that are supported for this integration",options:p.supported_actions.map(e=>({label:J().upperFirst(e),value:e}))},"enabled_actions"),q.Zi.DATABASE===p.type&&!y&&(0,l.jsx)(B.d,{name:"dataset",id:"dataset",tooltip:"Select datasets to associate with this integration",label:"Datasets",options:x,layout:"inline",mode:"multiple"}),(0,l.jsxs)("div",{className:"flex gap-4",children:[!p.authorization_required||n?(0,l.jsx)(d.wpx,{disabled:!(null==m?void 0:m.key)||a||_.isLoading,loading:b||j,onClick:()=>D(e),"data-testid":"test-connection-button",children:u}):null,k&&q.Zi.DATABASE===p.type&&!J().isEmpty(h)&&(0,l.jsx)(d.wpx,{onClick:()=>o(),children:"Test datasets"}),p.authorization_required&&!n?(0,l.jsx)(d.wpx,{loading:i,onClick:()=>S(e.values,e),children:"Authorize integration"}):null,p.type===q.Zi.MANUAL?(0,l.jsx)($,{connectionConfig:m}):null,(0,l.jsx)(d.LZC,{}),(0,l.jsx)(d.wpx,{type:"primary",disabled:_.isLoading||a,loading:a,htmlType:"submit","data-testid":"save-integration-btn",children:"Save"})]})]})})}})},eo=async(e,s,t,a,i)=>{let n={description:e.description||"",instance_key:er(a,t),saas_connector_type:t.identifier,secrets:{},...e.enabled_actions?{enabled_actions:e.enabled_actions}:{}},r={systemFidesKey:a,connectionConfig:n};return Object.entries(s.properties).forEach(s=>{r.connectionConfig.secrets[s[0]]=e.secrets[s[0]]}),await i(r).unwrap()},ed=async(e,s,t,a,i)=>{var n;let r=a?a.key:er(t,s),l={access:q.uv.WRITE,connection_type:s.type===q.Zi.SAAS?s.type:s.identifier,description:e.description,key:r,...e.enabled_actions?{enabled_actions:e.enabled_actions}:{}},o=await i({systemFidesKey:t,connectionConfigs:[l]}).unwrap();if((null===(n=o.failed)||void 0===n?void 0:n.length)>0){let e=o.failed[0].message;throw Object.assign(Error(e),{data:{detail:e}})}return o},ec=async(e,s,t,a,i)=>{let n={systemFidesKey:t,secrets:{}};return(Object.entries(s.properties).forEach(s=>{s[0]in a&&e.secrets[s[0]]===a[s[0]]||(n.secrets[s[0]]=e.secrets[s[0]])}),0===Object.keys(n.secrets).length)?Promise.resolve():await i(n).unwrap()},eu=e=>{let{secretsSchema:s,systemFidesKey:t,connectionOption:a,connectionConfig:i,setSelectedConnectionOption:n}=e,{successAlert:r}=(0,R.V)(),{handleError:l}=(0,A.H)(),o=(0,x.T)(),[d,c]=(0,h.useState)(!1),[u,p]=(0,h.useState)(!1),{dropdownOptions:m,patchConnectionDatasetConfig:y,initialDatasets:f}=(0,L.t)({connectionConfig:i}),[_]=(0,I.NG)(),[v]=(0,W.IB)(),[b]=(0,I.rO)(),[j]=(0,P.Zh)(),[k]=(0,P.qd)(),[w]=(0,W.kg)(),[C,S]=(0,P._w)(),{plus:D}=(0,g.hz)(),T=(0,h.useMemo)(()=>{var e;return null!==(e=null==i?void 0:i.secrets)&&void 0!==e?e:{}},[i]),E=(0,x.C)(P.NC);return{isSubmitting:d,isAuthorizing:u,handleSubmit:async e=>{let n=!i;try{if(c(!0),a.type===q.Zi.SAAS&&n)i=(await eo(e,s,a,t,D?v:_)).connection;else{let n=await ed(e,a,t,i,D?w:k);i||a.type!==q.Zi.DATABASE||(i=n.succeeded[0]),a.type!==q.Zi.MANUAL&&await ec(e,s,t,T,j)}i&&e.dataset&&a.type===q.Zi.DATABASE&&await y(e,i.key,{showSuccessAlert:!1}),r("Integration successfully ".concat(n?"added":"updated","!"))}catch(e){l(e)}finally{c(!1)}},handleAuthorization:async e=>{let n=!i;try{p(!0),n?i=(await eo(e,s,a,t,_)).connection:await ec(e,s,t,T,j);let r=await b(i.key).unwrap();p(!1),setTimeout(()=>{window.location.href=r},0)}catch(e){l(e)}finally{p(!1)}},datasetDropdownOptions:m,initialDatasets:f,handleDelete:async()=>{try{await C(t),o((0,P.db)({...E,connection_configs:null})),n(void 0),r("Integration successfully deleted!")}catch(e){l(e)}},deleteDatastoreConnectionResult:S}},ep=e=>{let{systemFidesKey:s,connectionOption:t,connectionConfig:a,setSelectedConnectionOption:i}=e,[n,r]=(0,h.useState)(),o=(0,d.pmc)(),c=t.type===q.Zi.MANUAL,{data:u}=(0,C.n3)(t.identifier,{skip:c}),{isSubmitting:p,isAuthorizing:x,handleSubmit:g,handleAuthorization:y,datasetDropdownOptions:f,initialDatasets:_,handleDelete:v,deleteDatastoreConnectionResult:j}=eu({secretsSchema:u,systemFidesKey:s,connectionOption:t,connectionConfig:a,setSelectedConnectionOption:i});return u||t.type===q.Zi.MANUAL?(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)(d.xuv,{borderRadius:"6px",border:"1px",borderColor:"gray.200",backgroundColor:"gray.50",fontSize:"14px",p:4,mb:4,children:[(0,l.jsxs)("div",{children:["Connect to your ",t.human_readable," environment by providing the information below. Once you have saved the form, you may test the integration to confirm that it's working correctly."]}),t.user_guide&&(0,l.jsx)("div",{style:{marginTop:"12px"},children:(0,l.jsxs)(z.Z,{href:t.user_guide,children:["View docs for help with this integration ",(0,l.jsx)(F,{})]})})]}),(0,l.jsx)(el,{secretsSchema:u,defaultValues:{description:"",instance_key:"",name:"",dataset:[]},isSubmitting:p,isAuthorizing:x,onSaveClick:g,onTestConnectionClick:e=>{var s,t;r(e);let a=(null===(s=e.data)||void 0===s?void 0:s.test_status)==="succeeded"?"success":"error";o({...b.MA,status:a,description:(0,l.jsx)(O,{status:a,failure_reason:null===(t=e.data)||void 0===t?void 0:t.failure_reason})})},onTestDatasetsClick:()=>{m().push("/systems/configure/".concat(s,"/test-datasets"))},onAuthorizeConnectionClick:y,connectionOption:t,connectionConfig:a,datasetDropdownOptions:f,initialDatasets:_,isCreatingConnectionConfig:!a,onDelete:v,deleteResult:j}),a?(0,l.jsxs)(d.kCb,{mt:"4",justifyContent:"between",alignItems:"center",children:[n&&n.data&&void 0!==n.fulfilledTimeStamp?(0,l.jsx)(Z.s,{succeeded:"succeeded"===n.data.test_status,timestamp:n.fulfilledTimeStamp}):(0,l.jsx)(Z.s,{succeeded:null==a?void 0:a.last_test_succeeded,timestamp:(null==a?void 0:a.last_test_timestamp)||""}),(0,l.jsx)(d.LZC,{})]}):null]}):null};var em=e=>{let{connectionConfigs:s,systemFidesKey:t}=e,{isOpen:a,onOpen:i,onClose:n}=(0,d.qY0)(),[r,o]=(0,h.useState)(null),{successAlert:c}=(0,A.V)(),[u,{isLoading:p}]=(0,E.qd)(),m=(0,x.C)(C.pw),{data:g}=(0,C.$I)(m),y=(0,h.useMemo)(()=>(null==g?void 0:g.items)||[],[g]),{handleError:f}=(0,A.H)(),_=()=>{p||(r&&o(null),n())},v=async()=>{try{if(r){var e;let s={...r,instance_key:r.connection_type===q.Rj.SAAS?null===(e=r.saas_config)||void 0===e?void 0:e.fides_key:r.key},a=y.find(e=>(null==r?void 0:r.saas_config)&&e.identifier===(null==r?void 0:r.saas_config.type)||e.identifier===(null==r?void 0:r.connection_type));(await ed(s,a,t,r,u)).succeeded[0]&&c("Integration successfully linked!"),o(null),n()}}catch(e){f(e)}};return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(d.wpx,{onClick:i,children:"Link integration"}),(0,l.jsxs)(d.u_l,{isCentered:!0,isOpen:a,size:"lg",onClose:_,children:[(0,l.jsx)(d.ZAr,{}),(0,l.jsxs)(d.hzk,{children:[(0,l.jsx)(d.xBx,{children:"Unlinked Integrations"}),(0,l.jsx)(d.olH,{}),(0,l.jsx)(d.fef,{pb:6,children:(0,l.jsxs)(d.Kqy,{direction:"column",spacing:"15px",children:[(0,l.jsx)(d.xvT,{color:"gray.600",fontSize:"sm",fontWeight:"sm",lineHeight:"20px",children:"These are all the integrations that are not linked to a system. Please select an integration to link to a system."}),(0,l.jsx)(d.xuv,{maxHeight:"350px",height:"100%",overflowY:"auto",children:s.map(e=>(0,l.jsxs)(d.kCb,{flexDirection:"row",alignItems:"center",_hover:{bg:"gray.100",color:"gray.600"},bg:(null==r?void 0:r.key)===e.key?"gray.100":"unset",color:(null==r?void 0:r.key)===e.key?"gray.600":"unset",cursor:"pointer",onClick:()=>{o(e)},className:"mb-2",children:[(0,l.jsx)(S.Z,{data:e,className:"mr-2"}),(0,l.jsx)(d.xvT,{children:e.name})]},e.key))})]})}),(0,l.jsxs)(d.mzw,{className:"flex gap-4",children:[(0,l.jsx)(d.wpx,{onClick:_,className:"w-1/2",children:"Cancel"}),(0,l.jsx)(d.wpx,{onClick:v,loading:p,disabled:!r||p,className:"w-1/2",children:"Link integration"})]})]})]})]})},eh=t(44553),ex=e=>{let{connectionConfig:s,systemFidesKey:t}=e,{dropDownOptions:a,selectedValue:i,setSelectedValue:n}=D({connectionConfig:s}),r=(0,x.C)(I.dR),{data:o}=(0,I.AZ)({...r,orphaned_from_system:!0}),[c,u]=(0,h.useState)([]);(0,h.useEffect)(()=>{o&&u(o.items)},[o]);let p=(0,d.qY0)();return(0,l.jsxs)(d.xuv,{id:"con-wrapper",px:6,children:[(0,l.jsxs)(d.kCb,{py:5,children:[(0,l.jsxs)(d.Kqy,{direction:{base:"column",lg:"row"},children:[(0,l.jsx)(T,{list:a,label:"Integration type",selectedValue:i,onChange:n,disabled:!!(s&&null!==s)}),!s&&c.length>0?(0,l.jsx)(em,{connectionConfigs:c,systemFidesKey:t}):null,(0,l.jsx)(k.ZP,{scopes:[q.Sh.CONNECTOR_TEMPLATE_REGISTER],children:(0,l.jsx)(d.wpx,{htmlType:"submit","data-testid":"upload-btn",onClick:p.onOpen,className:"ml-2",children:"Upload integration"})})]}),(0,l.jsx)(eh.Z,{isOpen:p.isOpen,onClose:p.onClose})]}),(null==i?void 0:i.type)&&[q.Zi.DATABASE,q.Zi.DATA_CATALOG,q.Zi.SAAS,q.Zi.MANUAL,q.Zi.EMAIL].includes(i.type)?(0,l.jsx)(ep,{connectionConfig:s,connectionOption:i,setSelectedConnectionOption:n,systemFidesKey:t}):null]})},eg=t(71922),ey=t(31883);let ef=e=>{let{item:s,options:t=[],onNoticeChange:a,isChild:i}=e,{external_id:n,name:r}=s,o="".concat(n,"-notice_id"),[c,,u]=(0,U.U$)(o),{setValue:p}=u;return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)(d.Ugi,{flexGrow:1,children:[i&&(0,l.jsx)(d.LqM,{}),(0,l.jsx)(d.lXp,{htmlFor:o,"data-testid":"consentable-item-label".concat(i?"-child":""),m:0,fontSize:"14px",fontWeight:i?"normal":"semibold",children:r})]}),(0,l.jsx)(d.WPr,{...c,id:o,allowClear:!0,placeholder:"None",options:t,onChange:e=>{p(e),a(s={...s,notice_id:e})},className:"w-full","data-testid":"consentable-item-select"})]})},e_=e=>{let{connectionKey:s,...t}=e,a=(0,d.pmc)(),{data:i,isLoading:n}=(0,W.EQ)(s),[r,{isLoading:o}]=(0,W.Am)(),c=(0,x.C)(eg.Zp),u=(0,x.C)(eg.G1),{data:p,isLoading:m}=(0,eg.J6)({page:c,size:u}),[g,y]=(0,h.useState)(),[f,_]=(0,h.useState)([]),v=(0,h.useMemo)(()=>null==g?void 0:g.reduce((e,s)=>{var t;return s.notice_id&&(e["".concat(s.external_id,"-notice_id")]=s.notice_id),(null===(t=s.children)||void 0===t?void 0:t.length)&&s.children.forEach(s=>{s.notice_id&&(e["".concat(s.external_id,"-notice_id")]=s.notice_id)}),e},{}),[g]),j=e=>{let s=e.notice_id;if(s){let e=null==p?void 0:p.items.filter(e=>e.id===s);if(null==e?void 0:e.length){var t;let s=(null===(t=e[0].children)||void 0===t?void 0:t.map(e=>e.id))||[];return f.filter(e=>s.includes(e.value))}}return f},k=async()=>{let e=await r({connectionKey:s,consentableItems:g});(0,ey.D4)(e)?a((0,b.Vo)("Failed to save consent automation")):a({variant:"subtle",position:"top",duration:3e3,status:"success",isClosable:!0,description:(0,l.jsx)(d.xvT,{"data-testid":"toast-success-msg",children:"Your consent automation settings have been successfully saved and applied."}),title:"Settings updated"})};if((0,h.useEffect)(()=>{i&&y(i)},[i]),(0,h.useEffect)(()=>{p&&_(p.items.map(e=>({label:e.name,value:e.id})))},[p]),n||m)return(0,l.jsx)(d.xuv,{borderWidth:"1px",borderRadius:"md",...t,children:(0,l.jsx)(d.OdW,{height:"35px"})});if(!g||!g.length||!p)return null;let w=(e,s)=>{y(g.map(t=>{if(s?t.external_id===s.external_id:t.external_id===e.external_id){if(s){var a;return{...t,children:null===(a=t.children)||void 0===a?void 0:a.map(s=>s.external_id===e.external_id?e:s)}}return e}return t}))};return(0,l.jsx)(d.xuv,{borderWidth:"1px",borderRadius:"md",...t,children:(0,l.jsx)(d.UQy,{allowMultiple:!0,"data-testid":"accordion-consent-automation",children:(0,l.jsxs)(d.Qdk,{border:"none",children:[(0,l.jsxs)(d.KFZ,{children:[(0,l.jsx)(d.xuv,{as:"span",flex:"1",textAlign:"left",children:(0,l.jsx)(d.xvT,{as:"h2",fontWeight:"semibold",fontSize:"sm",children:"Consent automation"})}),(0,l.jsx)(d.XEm,{})]}),(0,l.jsxs)(d.Hk3,{p:5,fontSize:"sm","data-testid":"accordion-panel-consent-automation",children:[(0,l.jsx)(d.xvT,{mb:7,children:"Map consentable items, such as channels and subscriptions, from your integration to Fides privacy notices. This ensures that updates to consent preferences in either location remain accurate and up-to-date."}),(0,l.jsx)(U.J9,{initialValues:v||{},onSubmit:k,children:(0,l.jsxs)(U.l0,{children:[(0,l.jsx)(d.MIq,{columns:2,spacing:3,children:g.map(e=>{var s;return(0,l.jsxs)(h.Fragment,{children:[(0,l.jsx)(ef,{item:e,options:f,onNoticeChange:w}),null===(s=e.children)||void 0===s?void 0:s.map(s=>(0,l.jsx)(ef,{item:s,options:j(e),isChild:!0,onNoticeChange:s=>w(s,e)},s.external_id))]},e.external_id)})}),(0,l.jsx)(d.Ugi,{justifyContent:"flex-end",mt:3,children:(0,l.jsx)(d.wpx,{disabled:o,loading:o,type:"primary",htmlType:"submit","data-testid":"save-consent-automation",children:"Save"})})]})})]})]})})})};var ev=t(57865),eb=t(3124),ej=t.n(eb),ek=(0,d.IUT)({displayName:"NextArrow",viewBox:"0 0 12 12",d:"M6.58584 5.99999L4.11084 3.52499L4.81784 2.81799L7.99984 5.99999L4.81784 9.18199L4.11084 8.47499L6.58584 5.99999Z"}),ew=(0,d.IUT)({displayName:"PrevArrow",viewBox:"0 0 12 12",d:"M5.414 5.99999L7.889 8.47499L7.182 9.18199L4 5.99999L7.182 2.81799L7.889 3.52499L5.414 5.99999Z"});let eC=e=>{let s=new Date(e),t=navigator.language;return{formattedTime:s.toLocaleTimeString(t,{hour:"2-digit",minute:"2-digit",hour12:!0,timeZoneName:"short"}),formattedDate:s.toLocaleDateString(t,{year:"numeric",month:"long",day:"numeric"})}},eS=e=>({privacy_declarations:"data uses",ingress:"sources",egress:"destinations"})[e]||e,eD=(e,s)=>{let t=new Set([...Object.keys(e),...Object.keys(s)]),a=[],i=[],n=[];return Array.from(t).forEach(t=>{let r=eS(t),l=e[t],o=s[t];if("boolean"==typeof l||"boolean"==typeof o||"number"==typeof l||"number"==typeof o){l!==o&&n.push(r);return}!((J().isNil(l)||J().isEmpty(l))&&(J().isNil(o)||J().isEmpty(o)))&&(J().isEqual(l,o)||(J().isNil(l)||J().isEmpty(l)?a.push(r):J().isNil(o)||J().isEmpty(o)?i.push(r):n.push(r)))}),{addedFields:a,removedFields:i,changedFields:n}},eT=e=>{let{edited_by:s,before:t,after:a,created_at:i}=e,n=[],r=[],o=[];t.custom_fields||a.custom_fields?{addedFields:n,removedFields:r,changedFields:o}=eD(t.custom_fields,a.custom_fields):{addedFields:n,removedFields:r,changedFields:o}=eD(t,a);let d=[];if(n.length>0&&d.push(["added ",(0,l.jsx)("b",{children:n.join(", ")})]),r.length>0&&d.push(["removed ",(0,l.jsx)("b",{children:r.join(", ")})]),o.length>0&&d.push(["changed ",(0,l.jsx)("b",{children:o.join(", ")})]),0===d.length)return null;let c=d.pop(),u=d.length>0?(0,l.jsxs)(l.Fragment,{children:[d.map((e,s)=>(0,l.jsxs)(h.Fragment,{children:[e,s<d.length-1?", ":""]},s)),d.length>=2?", and ":" and ",c]}):c,{formattedTime:p,formattedDate:m}=eC(i);return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("b",{children:s})," ",u," on ",m," at ",p]})},eA=(e,s)=>{let t=e=>e.map(e=>{let t=s.find(s=>s.fides_key===e.fides_key);return t&&t.name?t.name:e.fides_key}),a={...e.before},i={...e.after};return a.ingress&&(a.ingress=t(a.ingress)),a.egress&&(a.egress=t(a.egress)),i.ingress&&(i.ingress=t(i.ingress)),i&&i.egress&&(i.egress=t(i.egress)),{...e,before:a,after:i}},eE=(e,s)=>{if(J().isEmpty(s))return e;let t=(e,s)=>{var t,a;return null!==(a=null===(t=s.find(s=>s.value===e))||void 0===t?void 0:t.label)&&void 0!==a?a:e};return{...e,before:{...e.before,vendor_id:t(e.before.vendor_id,s)},after:{...e.after,vendor_id:t(e.after.vendor_id,s)}}},eq=e=>{let s=e.before.privacy_declarations||[],t=e.after.privacy_declarations||[],a=new Set([...s,...t].map(e=>e.data_use)),i=[],n=[];return a.forEach(e=>{let a=s.find(s=>s.data_use===e)||{data_use:"",data_categories:[]},r=t.find(s=>s.data_use===e)||{data_use:"",data_categories:[]};i.push(a),n.push(r)}),{...e,before:{...e.before,privacy_declarations:i},after:{...e.after,privacy_declarations:n}}},eR=e=>{let s={...e.before.custom_fields},t={...e.after.custom_fields};return new Set([...Object.keys(s),...Object.keys(t)]).forEach(e=>{e in s||(s[e]=null),e in t||(t[e]=null)}),{...e,before:{...e.before,custom_fields:s},after:{...e.after,custom_fields:t}}},eI=e=>{if(!e.before.privacy_declarations||!e.before.privacy_declarations[0]||!e.before.privacy_declarations[0].custom_fields)return e;let s={...e.before.privacy_declarations[0].custom_fields},t=e.after.privacy_declarations&&e.after.privacy_declarations[0]?{...e.after.privacy_declarations[0].custom_fields}:{};return new Set([...Object.keys(s),...Object.keys(t)]).forEach(e=>{e in s||(s[e]=null),e in t||(t[e]=null)}),{...e,before:{...e.before,privacy_declarations:[{...e.before.privacy_declarations[0],custom_fields:s}]},after:{...e.after,privacy_declarations:[{...e.after.privacy_declarations[0],custom_fields:t}]}}},ez=(0,h.createContext)(null),eF=()=>(0,h.useContext)(ez);var eL=e=>{let{children:s,selectedHistory:t,formType:a}=e,i=(0,h.useMemo)(()=>({selectedHistory:t,formType:a}),[t,a]);return(0,l.jsx)(ez.Provider,{value:i,children:s})},eO=t(62165),eZ=t(30320),eW=e=>{let{heading:s,children:t}=e,{selectedHistory:a}=eF(),i=h.Children.toArray(t).filter(e=>{if(h.isValidElement(e)&&e.props.name){let{name:s}=e.props,t=J().get(null==a?void 0:a.before,s),i=J().get(null==a?void 0:a.after,s),n="boolean"!=typeof t&&"number"!=typeof t&&J().isEmpty(t),r="boolean"!=typeof i&&"number"!=typeof i&&J().isEmpty(i);return!n||!r}return!1});return 0===i.length?null:(0,l.jsx)(d.Kqy,{marginTop:"0px !important",children:(0,l.jsxs)(d.xuv,{maxWidth:"720px",border:"1px",borderColor:"gray.200",borderRadius:6,overflow:"visible",mt:6,children:[(0,l.jsx)(d.xuv,{backgroundColor:"gray.50",px:6,py:4,display:"flex",flexDirection:"row",alignItems:"center",borderBottom:"1px",borderColor:"gray.200",borderTopRadius:6,children:(0,l.jsx)(d.X6q,{as:"h3",size:"xs",children:s})}),(0,l.jsx)(d.Kqy,{children:i})]})})},eP=t(46238),eN=e=>{var s;let{label:t,tooltip:a,...i}=e,{selectedHistory:n,formType:r}=eF(),[o]=(0,U.U$)(i.name),c={...o,value:null!==(s=o.value)&&void 0!==s?s:[]},u=(0,h.useRef)(null),[p,m]=(0,h.useState)(null),[x,g]=(0,h.useState)([]),[y,f]=(0,h.useState)(!1);(0,h.useEffect)(()=>{let e=J().get(null==n?void 0:n.before,i.name)||[],s=J().get(null==n?void 0:n.after,i.name)||[];f(!J().isEqual(e,s)),g(e.length>s.length?e:s)},[n,i.name]),(0,h.useEffect)(()=>{u.current&&m(u.current.offsetHeight)},[x]);let _={};return y&&(_="before"===r?{backgroundColor:"#FFF5F5",borderColor:"#E53E3E",borderTop:"1px dashed #E53E3E",borderBottom:"1px dashed #E53E3E"}:{backgroundColor:"#F0FFF4",borderColor:"#38A169",borderTop:"1px dashed #38A169",borderBottom:"1px dashed #38A169"}),(0,l.jsx)(d.NIc,{style:_,paddingLeft:4,paddingRight:4,paddingTop:3,paddingBottom:3,marginTop:"-1px !important",children:(0,l.jsxs)(d.gCW,{alignItems:"start",children:[(0,l.jsxs)(d.kCb,{alignItems:"center",children:[(0,l.jsx)(N.__,{htmlFor:i.name,fontSize:"xs",my:0,mr:1,children:t}),(0,l.jsx)(eP.b,{label:a})]}),(0,l.jsx)(d.kCb,{wrap:"wrap",alignItems:"flex-start",ref:u,style:{minHeight:"".concat(p,"px")},children:(p?c.value:x).map((e,s)=>(0,l.jsx)(d.j8w,{color:"marble",className:"m-1",children:"object"==typeof e?e.fides_key:e},s))}),"before"===r&&y&&(0,l.jsx)("div",{style:{position:"absolute",right:"-22px",top:"50%",transform:"translateY(-50%)"},children:"→"})]})})},eU=e=>{var s;let{label:t,tooltip:a,...i}=e,{selectedHistory:n,formType:r}=eF(),[o]=(0,U.U$)(i),c={...o,value:null!==(s=o.value)&&void 0!==s?s:""},u=(0,h.useRef)(null),[p,m]=(0,h.useState)(null),[x,g]=(0,h.useState)(!1);(0,h.useEffect)(()=>{let e=J().get(null==n?void 0:n.before,i.name)||"",s=J().get(null==n?void 0:n.after,i.name)||"";g(!J().isEqual(e,s));let t=e.length>s.length?e:s;u.current&&(u.current.textContent=t,m(u.current.offsetHeight),u.current.textContent=c.value)},[n,i.name,c.value]);let y={};return x&&(y="before"===r?{backgroundColor:"#FFF5F5",borderColor:"#E53E3E",borderTop:"1px dashed #E53E3E",borderBottom:"1px dashed #E53E3E"}:{backgroundColor:"#F0FFF4",borderColor:"#38A169",borderTop:"1px dashed #38A169",borderBottom:"1px dashed #38A169"}),(0,l.jsx)(d.NIc,{style:y,paddingLeft:4,paddingRight:4,paddingTop:3,paddingBottom:3,marginTop:"-1px !important",children:(0,l.jsxs)(d.gCW,{alignItems:"start",children:[(0,l.jsxs)(d.kCb,{alignItems:"center",children:[(0,l.jsx)(N.__,{htmlFor:i.id||i.name,fontSize:"xs",my:0,mr:1,children:t}),(0,l.jsx)(eP.b,{label:a})]}),(0,l.jsx)(d.xvT,{fontSize:"14px",ref:u,style:{height:"".concat(p,"px")},children:c.value}),"before"===r&&x&&(0,l.jsx)("div",{style:{position:"absolute",right:"-22px",top:"50%",transform:"translateY(-50%)"},children:"→"})]})})},eV=e=>{let{customFields:s={},resourceType:t}=e,{idToCustomFieldDefinition:a}=(0,eZ.m)({resourceType:t}),i=e=>Array.from(a.values()).some(s=>s.name===e&&!!s.allow_list_id),n=t===q.P6.SYSTEM?"custom_fields":"privacy_declarations[0].custom_fields",r=Object.keys(s).sort();return(0,l.jsx)(eW,{heading:"Custom fields",children:r.map(e=>i(e)?(0,l.jsx)(eN,{label:e,name:"".concat(n,".").concat(e)},e):(0,l.jsx)(eU,{label:e,name:"".concat(n,".").concat(e)},e))})},eB=e=>{let{label:s,tooltip:t,...a}=e,{selectedHistory:i,formType:n}=eF(),[r]=(0,U.U$)(a),o={...r,value:r.value},[c,u]=(0,h.useState)(!1);(0,h.useEffect)(()=>{u(J().get(null==i?void 0:i.before,a.name)!==J().get(null==i?void 0:i.after,a.name))},[i,a.name,o.value]);let p={};return c&&(p="before"===n?{backgroundColor:"#FFF5F5",borderColor:"#E53E3E",borderTop:"1px dashed #E53E3E",borderBottom:"1px dashed #E53E3E"}:{backgroundColor:"#F0FFF4",borderColor:"#38A169",borderTop:"1px dashed #38A169",borderBottom:"1px dashed #38A169"}),(0,l.jsx)(d.NIc,{style:p,paddingLeft:4,paddingRight:4,paddingTop:3,paddingBottom:3,marginTop:"-1px !important",children:(0,l.jsxs)(d.gCW,{alignItems:"start",minHeight:"46px",children:[(0,l.jsxs)(d.kCb,{alignItems:"center",children:[(0,l.jsx)(N.__,{htmlFor:a.id||a.name,fontSize:"xs",my:0,mr:1,children:s}),(0,l.jsx)(eP.b,{label:t})]}),void 0!==o.value&&(0,l.jsx)(d.j8w,{color:"marble",className:"m-1",children:o.value?"YES":"NO"}),"before"===n&&c&&(0,l.jsx)("div",{style:{position:"absolute",right:"-22px",top:"50%",transform:"translateY(-50%)"},children:"→"})]})})},eM=e=>{let{initialValues:s}=e,t=(0,eO.hz)();return(0,l.jsx)(U.J9,{enableReinitialize:!0,initialValues:s,onSubmit:()=>{},children:()=>(0,l.jsx)(U.l0,{children:(0,l.jsxs)(d.Kqy,{children:[(0,l.jsxs)(eW,{heading:"System details",children:[t.dictionaryService?(0,l.jsx)(eU,{name:"vendor_id",label:"Vendor",tooltip:"Select the vendor that matches the system"}):null,(0,l.jsx)(eU,{name:"name",label:"System name",tooltip:"Give the system a unique, and relevant name for reporting purposes. e.g. “Email Data Warehouse”"}),(0,l.jsx)(eU,{name:"fides_key",label:"Unique ID",disabled:!0,tooltip:"An auto-generated unique ID based on the system name"}),(0,l.jsx)(eU,{name:"description",label:"Description",tooltip:"Give the system a unique, and relevant name for reporting purposes. e.g. “Email Data Warehouse”"}),(0,l.jsx)(eN,{name:"tags",label:"System Tags",tooltip:"Are there any tags to associate with this system?"})]}),(0,l.jsx)(eW,{heading:"Dataset reference",children:(0,l.jsx)(eN,{name:"dataset_references",label:"Dataset references",tooltip:"Is there a dataset configured for this system"})}),(0,l.jsxs)(eW,{heading:"Data processing properties",children:[(0,l.jsx)(eB,{name:"processes_personal_data",label:"This system processes personal data",tooltip:"Does this system process personal data?"}),(0,l.jsx)(eB,{name:"exempt_from_privacy_regulations",label:"This system is exempt from privacy regulations",tooltip:"Is this system exempt from privacy regulations?"}),(0,l.jsx)(eU,{name:"reason_for_exemption",label:"Reason for exemption",tooltip:"Why is this system exempt from privacy regulation?"}),(0,l.jsx)(eB,{name:"uses_profiling",label:"This system performs profiling",tooltip:"Does this system perform profiling that could have a legal effect?"}),(0,l.jsx)(eN,{name:"legal_basis_for_profiling",label:"Legal basis for profiling",tooltip:"What is the legal basis under which profiling is performed?"}),(0,l.jsx)(eB,{name:"does_international_transfers",label:"This system transfers data",tooltip:"Does this system transfer data to other countries or international organizations?"}),(0,l.jsx)(eN,{name:"legal_basis_for_transfers",label:"Legal basis for transfer",tooltip:"What is the legal basis under which the data is transferred?"}),(0,l.jsx)(eB,{name:"requires_data_protection_assessments",label:"This system requires Data Privacy Assessments",tooltip:"Does this system require (DPA/DPIA) assessments?"}),(0,l.jsx)(eU,{label:"DPIA/DPA location",name:"dpa_location",tooltip:"Where is the DPA/DPIA stored?"})]}),(0,l.jsxs)(eW,{heading:"Administrative properties",children:[(0,l.jsx)(eU,{label:"Data stewards",name:"data_stewards",tooltip:"Who are the stewards assigned to the system?"}),(0,l.jsx)(eU,{name:"privacy_policy",label:"Privacy policy URL",tooltip:"Where can the privacy policy be located?"}),(0,l.jsx)(eU,{name:"legal_name",label:"Legal name",tooltip:"What is the legal name of the business?"}),(0,l.jsx)(eU,{name:"legal_address",label:"Legal address",tooltip:"What is the legal address for the business?"}),(0,l.jsx)(eU,{label:"Department",name:"administrating_department",tooltip:"Which department is concerned with this system?"}),(0,l.jsx)(eN,{label:"Responsibility",name:"responsibility",tooltip:"What is the role of the business with regard to data processing?"}),(0,l.jsx)(eU,{name:"dpo",label:"Legal contact (DPO)",tooltip:"What is the official privacy contact information?"}),(0,l.jsx)(eU,{label:"Joint controller",name:"joint_controller_info",tooltip:"Who are the party or parties that share responsibility for processing data?"}),(0,l.jsx)(eU,{label:"Data security practices",name:"data_security_practices",tooltip:"Which data security practices are employed to keep the data safe?"})]}),(0,l.jsx)(eV,{customFields:s.custom_fields,resourceType:q.P6.SYSTEM}),s.privacy_declarations&&s.privacy_declarations.map((e,t)=>(0,l.jsxs)(h.Fragment,{children:[(0,l.jsxs)(eW,{heading:"Data use",children:[(0,l.jsx)(eU,{label:"Declaration name (optional)",name:"privacy_declarations[".concat(t,"].name"),tooltip:"Would you like to append anything to the system name?"}),(0,l.jsx)(eU,{name:"privacy_declarations[".concat(t,"].data_use"),label:"Data use",tooltip:"For which business purposes is this data used?"}),(0,l.jsx)(eN,{name:"privacy_declarations[".concat(t,"].data_categories"),label:"Data categories",tooltip:"Which categories of personal data are collected for this purpose?"}),(0,l.jsx)(eN,{name:"privacy_declarations[".concat(t,"].data_subjects"),label:"Data subjects",tooltip:"Who are the subjects for this personal data?"}),(0,l.jsx)(eU,{name:"privacy_declarations[".concat(t,"].legal_basis_for_processing"),label:"Legal basis for processing",tooltip:"What is the legal basis under which personal data is processed for this purpose?"}),(0,l.jsx)(eU,{name:"privacy_declarations[".concat(t,"].impact_assessment_location"),label:"Impact assessment location",tooltip:"Where is the legitimate interest impact assessment stored?"}),(0,l.jsx)(eU,{name:"privacy_declarations[".concat(t,"].retention_period"),label:"Retention period (days)",tooltip:"How long is personal data retained for this purpose?"})]}),(0,l.jsx)(eW,{heading:"Features",children:(0,l.jsx)(eN,{name:"privacy_declarations[".concat(t,"].features"),label:"Features",tooltip:"What are some features of how data is processed?"})}),(0,l.jsx)(eW,{heading:"Dataset reference",children:(0,l.jsx)(eN,{name:"privacy_declarations[".concat(t,"].dataset_references"),label:"Dataset references",tooltip:"Is there a dataset configured for this system?"})}),(0,l.jsxs)(eW,{heading:"Special category data",children:[(0,l.jsx)(eB,{name:"privacy_declarations[".concat(t,"].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?"}),(0,l.jsx)(eU,{name:"privacy_declarations[".concat(t,"].special_category_legal_basis"),label:"Legal basis for processing",tooltip:"What is the legal basis under which the special category data is processed?"})]}),(0,l.jsxs)(eW,{heading:"Third parties",children:[(0,l.jsx)(eB,{name:"privacy_declarations[".concat(t,"].data_shared_with_third_parties"),label:"This system shares data with 3rd parties for this purpose",tooltip:"Does this system disclose, sell, or share personal data collected for this business use with 3rd parties?"}),(0,l.jsx)(eU,{name:"privacy_declarations[".concat(t,"].third_parties"),label:"Third parties",tooltip:"Which type of third parties is the data shared with?"}),(0,l.jsx)(eN,{name:"privacy_declarations[".concat(t,"].shared_categories"),label:"Shared categories",tooltip:"Which categories of personal data does this system share with third parties?"})]}),(0,l.jsx)(eV,{customFields:s.privacy_declarations[0].custom_fields,resourceType:q.P6.PRIVACY_DECLARATION})]},t)),(0,l.jsxs)(eW,{heading:"Data flow",children:[(0,l.jsx)(eN,{name:"ingress",label:"Sources"}),(0,l.jsx)(eN,{name:"egress",label:"Destinations"})]})]})})})};let eK=(e,s)=>{let t=[],a=new Set(["egress","ingress","privacy_declarations","vendor_id"]);(e.egress||s.egress||e.ingress||s.ingress)&&t.push("Data Flow");let i=e.privacy_declarations&&e.privacy_declarations.length>0||s.privacy_declarations&&s.privacy_declarations.length>0;i&&t.push("Data Uses");let n=[...Object.keys(e),...Object.keys(s)].some(e=>!a.has(e));return!i&&n&&t.unshift("System Information"),t};var eH=e=>{let{selectedHistory:s,isOpen:t,onClose:a}=e;return(0,l.jsxs)(d.u_l,{isOpen:t,onClose:a,size:"4xl",children:[(0,l.jsx)(d.ZAr,{}),(0,l.jsxs)(d.hzk,{children:[(0,l.jsxs)(d.xBx,{backgroundColor:ej().FIDESUI_NEUTRAL_50,borderTopLeftRadius:"8px",borderTopRightRadius:"8px",borderBottom:"1px solid #E2E8F0",children:[(0,l.jsxs)(d.X6q,{size:"xs",children:[(0,l.jsx)("span",{style:{verticalAlign:"middle"},children:"Change detail"}),s&&(0,l.jsx)(l.Fragment,{children:eK(s.before,s.after).map((e,s)=>(0,l.jsx)(d.j8w,{color:"minos",className:"ml-2",children:e},s))})]}),(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(d.LZC,{}),(0,l.jsx)(d.olH,{})]})]}),(0,l.jsx)(d.fef,{paddingTop:0,paddingBottom:6,children:(0,l.jsxs)(d.kCb,{justifyContent:"space-between",children:[(0,l.jsx)("div",{style:{flex:"0 50%",marginRight:"12px"},children:(0,l.jsx)(eL,{selectedHistory:s,formType:"before",children:(0,l.jsx)(eM,{initialValues:null==s?void 0:s.before})})}),(0,l.jsx)("div",{style:{flex:"0 50%",marginLeft:"12px"},children:(0,l.jsx)(eL,{selectedHistory:s,formType:"after",children:(0,l.jsx)(eM,{initialValues:null==s?void 0:s.after})})})]})})]})]})},eY=e=>{let{system:s}=e,[t,a]=(0,h.useState)(1),{data:i}=(0,W.Xc)({system_key:s.fides_key,page:t,size:10}),[n,r]=(0,h.useState)(!1),[o,c]=(0,h.useState)(null),u=(0,x.C)(W.o),{data:p=[]}=(0,P.K3)(),m=(null==i?void 0:i.items)||[],g=e=>{c(e=eI(e=eR(e=eA(e=eE(e=eq(e),u),p)))),r(!0)},{formattedTime:y,formattedDate:f}=eC(s.created_at),_=i&&i.total?Math.ceil(i.total/10):0;return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)(d.iA_,{ml:"24px",children:[(0,l.jsx)(d.hrZ,{children:(0,l.jsx)(d.Tr,{children:(0,l.jsxs)(d.Td,{p:"16px",fontSize:"12px",border:"1px solid #E2E8F0",background:ej().FIDESUI_NEUTRAL_50,children:["System created on ",f," at ",y]})})}),(0,l.jsx)(d.p3B,{children:m.map((e,s)=>{let t=eT(e);return t?(0,l.jsx)(d.Tr,{onClick:()=>g(e),style:{cursor:"pointer"},children:(0,l.jsx)(d.Td,{pt:"10px",pb:"10px",pl:"16px",fontSize:"12px",border:"1px solid #E2E8F0",children:t})},s):null})})]}),((null==i?void 0:i.total)||0)>10&&(0,l.jsxs)(d.kCb,{alignItems:"center",justifyContent:"flex-start",marginTop:"12px",marginLeft:"24px",children:[(0,l.jsxs)(d.xvT,{fontSize:"xs",lineHeight:4,fontWeight:"600",paddingX:2,children:[(t-1)*10+1," -"," ",Math.min(10*t,(null==i?void 0:i.total)||0)," of"," ",(null==i?void 0:i.total)||0]}),(0,l.jsx)(d.wpx,{size:"small",className:"mr-2",onClick:()=>{t>1&&a(t-1)},disabled:1===t,icon:(0,l.jsx)(ew,{})}),(0,l.jsx)(d.wpx,{size:"small",onClick:()=>{t<_&&a(t+1)},disabled:t===_||0===_,icon:(0,l.jsx)(ek,{})})]}),(0,l.jsx)(eH,{selectedHistory:o,isOpen:n,onClose:()=>{r(!1),c(null)}})]})},eG=t(52368),e$=t(3765),eQ=e=>{let{title:s,description:t,handleAdd:a}=e;return(0,l.jsx)(d.Kqy,{backgroundColor:"gray.50",border:"1px solid",borderColor:"blue.500",borderRadius:"md",justifyContent:"space-between",py:4,px:6,"data-testid":"empty-state",children:(0,l.jsxs)(d.Ugi,{children:[(0,l.jsx)(d.iid,{alignSelf:"start",color:"blue.400",mt:.5}),(0,l.jsxs)(d.xuv,{children:[(0,l.jsx)(d.xvT,{fontWeight:"bold",fontSize:"sm",mb:1,children:s}),(0,l.jsx)(d.xvT,{fontSize:"sm",color:"gray.800",lineHeight:"5",children:t}),(0,l.jsx)(d.Ugi,{mt:4,children:(0,l.jsx)(d.wpx,{size:"small",type:"primary","data-testid":"add-btn",onClick:a,icon:(0,l.jsx)(d.jBn,{boxSize:4}),iconPosition:"end",children:"Add data use"})})]})]})})},eJ=t(58452);let eX=e=>{let{declaration:s,title:t,handleDelete:a,handleEdit:i}=e,{isOpen:n,onOpen:r,onClose:o}=(0,d.qY0)();return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(d.fGe,{w:"100%",h:"100%",cursor:"pointer",_hover:{backgroundColor:"gray.50"},children:(0,l.jsx)(d.xuv,{px:6,py:4,"data-testid":"row-".concat(s.data_use),children:(0,l.jsxs)(d.Ugi,{children:[(0,l.jsx)(d.AB5,{onClick:()=>i(s),role:"button",tabIndex:0,children:(0,l.jsx)(d.xvT,{children:t||s.data_use})}),(0,l.jsx)(d.LZC,{}),a?(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(d.wpx,{"aria-label":"delete-declaration",className:"z-[2]",onClick:r,"data-testid":"delete-btn",children:(0,l.jsx)(d.pJl,{})}),(0,l.jsx)(eJ.Z,{isOpen:n,onClose:o,onConfirm:()=>a(s),title:"Delete data use declaration",message:(0,l.jsxs)(d.xvT,{children:["You are about to delete the data use declaration"," ",(0,l.jsx)(d.xvT,{color:"complimentary.500",as:"span",fontWeight:"bold",children:t||s.data_use}),", including all its cookies. Are you sure you want to continue?"]}),isCentered:!0})]}):null]})})}),(0,l.jsx)(d.izJ,{})]})},e0=e=>{let{heading:s,children:t,headerButton:a,footerButton:i}=e;return(0,l.jsx)(d.Kqy,{spacing:4,"data-testid":"privacy-declarations-table",children:(0,l.jsxs)(d.xuv,{maxWidth:"720px",border:"1px",borderColor:"gray.200",borderRadius:6,children:[(0,l.jsxs)(d.Ugi,{backgroundColor:"gray.50",px:6,py:4,borderBottom:"1px",borderColor:"gray.200",borderTopRadius:6,children:[(0,l.jsx)(d.X6q,{as:"h3",size:"xs",children:s}),(0,l.jsx)(d.LZC,{}),a||null]}),(0,l.jsx)(d.Kqy,{spacing:0,children:t}),(0,l.jsx)(d.xuv,{backgroundColor:"gray.50",px:6,py:4,borderBottomRadius:6,children:i||null})]})})},e1=e=>{let{heading:s,declarations:t,handleAdd:a,handleDelete:i,handleEdit:n,allDataUses:r}=e,o=e=>{let s=r.filter(s=>s.fides_key===e.data_use)[0];return s?e.name?"".concat(s.name," - ").concat(e.name):s.name:""},c=(0,x.C)(ev.gU);return(0,l.jsx)(e0,{heading:s,footerButton:!c&&(0,l.jsx)(d.wpx,{onClick:a,size:"small",icon:(0,l.jsx)(d.jBn,{boxSize:4}),iconPosition:"end","data-testid":"add-btn",children:"Add data use"}),children:t.map(e=>(0,l.jsx)(eX,{declaration:e,title:o(e),handleDelete:c?void 0:i,handleEdit:n},e.id))})};var e4=t(95346),e2=t(54748),e3=t(28325),e5=t(30234);let e7=V.Ry().shape({data_categories:V.IX(V.Z_()).min(1,"Must assign at least one data category").label("Data categories"),data_use:V.Z_().required().label("Data use")}),e8={name:"",data_categories:[],data_use:"",data_subjects:[],egress:void 0,ingress:void 0,features:[],legal_basis_for_processing:void 0,flexible_legal_basis_for_processing:!0,impact_assessment_location:"",retention_period:"",processes_special_category_data:!1,special_category_legal_basis:void 0,data_shared_with_third_parties:!1,third_parties:"",shared_categories:[],customFieldValues:{},id:""},e6=e=>{var s;return{...e,name:null!==(s=e.name)&&void 0!==s?s:"",special_category_legal_basis:e.processes_special_category_data?e.special_category_legal_basis:void 0,third_parties:e.data_shared_with_third_parties?e.third_parties:void 0,shared_categories:e.data_shared_with_third_parties?e.shared_categories:void 0}},e9=e=>{let{allDataUses:s,allDataCategories:t,allDataSubjects:a,allDatasets:i,values:n,includeCustomFields:r,privacyDeclarationId:o,lockedForGVL:c}=e,u=!!o,{legalBasisOptions:p}=(0,e2.Z)(),{specialCategoryLegalBasisOptions:m}=(0,e3.Z)(),x=(0,h.useMemo)(()=>i?i.map(e=>({value:e.fides_key,label:e.name?e.name:e.fides_key})):[],[i]);return(0,l.jsxs)(d.Kqy,{spacing:4,children:[(0,l.jsxs)(e5.Z,{heading:"Data use declaration",children:[(0,l.jsx)(N.j0,{id:"name",label:"Declaration name (optional)",name:"name",tooltip:"Would you like to append anything to the system name?",disabled:u,variant:"stacked"}),(0,l.jsx)(B.d,{id:"data_use",label:"Data use",name:"data_use",options:s.map(e=>({value:e.fides_key,label:e.fides_key})),tooltip:"For which business purposes is this data processed?",layout:"stacked",isRequired:!0,disabled:u}),(0,l.jsx)(B.d,{name:"data_categories",label:"Data categories",options:t.map(e=>({value:e.fides_key,label:e.fides_key})),tooltip:"Which categories of personal data are collected for this purpose?",mode:"multiple",isRequired:!0,disabled:c,layout:"stacked"}),(0,l.jsx)(B.d,{name:"data_subjects",label:"Data subjects",options:a.map(e=>({value:e.fides_key,label:e.fides_key})),tooltip:"Who are the subjects for this personal data?",mode:"multiple",layout:"stacked"}),(0,l.jsxs)(d.Kqy,{spacing:0,children:[(0,l.jsx)(B.d,{name:"legal_basis_for_processing",label:"Legal basis for processing",options:p,tooltip:"What is the legal basis under which personal data is processed for this purpose?",layout:"stacked",disabled:c}),(0,l.jsx)(d.UO1,{in:"Legitimate interests"===n.legal_basis_for_processing,animateOpacity:!0,style:{overflow:"visible"},children:(0,l.jsx)(d.xuv,{mt:4,children:(0,l.jsx)(N.j0,{name:"impact_assessment_location",label:"Impact assessment location",tooltip:"Where is the legitimate interest impact assessment stored?",variant:"stacked"})})})]}),(0,l.jsx)(d.xuv,{mt:5,pl:4,children:(0,l.jsx)(N.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",isDisabled:c})}),(0,l.jsx)(N.j0,{name:"retention_period",label:"Retention period (days)",tooltip:"How long is personal data retained for this purpose?",variant:"stacked",disabled:c})]}),(0,l.jsx)(e5.Z,{heading:"Features",children:(0,l.jsx)(B.d,{name:"features",label:"Features",placeholder:"Describe features...",tooltip:"What are some features of how data is processed?",layout:"stacked",disabled:c,mode:"tags"})}),(0,l.jsx)(e5.Z,{heading:"Dataset reference",children:(0,l.jsx)(B.d,{name:"dataset_references",label:"Dataset references",options:x,tooltip:"Is there a dataset configured for this system?",mode:"multiple",layout:"stacked"})}),(0,l.jsx)(e5.Z,{heading:"Special category data",children:(0,l.jsxs)(d.Kqy,{spacing:0,children:[(0,l.jsx)(N.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,l.jsx)(d.UO1,{in:n.processes_special_category_data,animateOpacity:!0,style:{overflow:"visible"},children:(0,l.jsx)(d.xuv,{mt:4,children:(0,l.jsx)(B.d,{name:"special_category_legal_basis",label:"Legal basis for processing",options:m,isRequired:n.processes_special_category_data,tooltip:"What is the legal basis under which the special category data is processed?",layout:"stacked"})})})]})}),(0,l.jsx)(e5.Z,{heading:"Third parties",children:(0,l.jsxs)(d.Kqy,{spacing:0,children:[(0,l.jsx)(N.w8,{name:"data_shared_with_third_parties",label:"This system shares data with 3rd parties for this purpose",tooltip:"Does this system disclose, sell, or share personal data collected for this business use with 3rd parties?",variant:"stacked"}),(0,l.jsx)(d.UO1,{in:n.data_shared_with_third_parties,animateOpacity:!0,style:{overflow:"visible"},children:(0,l.jsxs)(d.Kqy,{mt:4,spacing:4,children:[(0,l.jsx)(N.j0,{name:"third_parties",label:"Third parties",tooltip:"Which type of third parties is the data shared with?",variant:"stacked"}),(0,l.jsx)(B.d,{name:"shared_categories",label:"Shared categories",options:t.map(e=>({value:e.fides_key,label:e.fides_key})),tooltip:"Which categories of personal data does this system share with third parties?",layout:"stacked",mode:"multiple"})]})})]})}),r?(0,l.jsx)(e4.uc,{resourceType:q.P6.PRIVACY_DECLARATION,resourceFidesKey:o}):null]})},se=(e,s)=>e?{...e,customFieldValues:s||{}}:e8,ss=e=>{let{onSubmit:s,initialValues:t,privacyDeclarationId:a}=e,{customFieldValues:i,upsertCustomFields:n}=(0,e4.mZ)({resourceType:q.P6.PRIVACY_DECLARATION,resourceFidesKey:a});return{handleSubmit:async(e,t)=>{let{customFieldValues:a}=e,i=e6(e),r=await s(i,t);if(r){let s=r.filter(s=>s.data_use===e.data_use&&(!s.name||s.name===e.name));s.length>0&&await n({customFieldValues:a,fides_key:s[0].id})}},initialValues:(0,h.useMemo)(()=>se(t,i),[t,i])}},st=e=>{let{onSubmit:s,onCancel:t,initialValues:a,...i}=e,n=null==a?void 0:a.id,{handleSubmit:r,initialValues:o}=ss({onSubmit:s,onCancel:t,initialValues:a,allDataUses:i.allDataUses,privacyDeclarationId:n}),c=(0,x.C)(ev.gU);return(0,l.jsx)(U.J9,{enableReinitialize:!0,initialValues:o,onSubmit:r,validationSchema:e7,children:e=>{let{dirty:s,values:a}=e;return(0,l.jsxs)(U.l0,{"data-testid":"declaration-form",children:[(0,l.jsx)(y.Gt,{id:"PrivacyDeclaration",name:"New Privacy Declaration"}),(0,l.jsxs)(d.Kqy,{spacing:4,children:[(0,l.jsx)(e9,{values:a,lockedForGVL:c,privacyDeclarationId:n,...i}),(0,l.jsxs)(d.kCb,{w:"100%",children:[(0,l.jsx)(d.wpx,{onClick:t,"data-testid":"cancel-btn",children:"Cancel"}),(0,l.jsx)(d.LZC,{}),(0,l.jsx)(d.wpx,{type:"primary",htmlType:"submit",disabled:!s,"data-testid":"save-btn",children:"Save"})]})]})]})}})},sa=e=>{let{isOpen:s,onClose:t,heading:a,isCentered:i=!1,testId:n="privacy-declaration-modal",children:r}=e;return(0,l.jsxs)(d.u_l,{isOpen:s,onClose:t,isCentered:i,scrollBehavior:"inside",size:"3xl",children:[(0,l.jsx)(d.ZAr,{}),(0,l.jsxs)(d.hzk,{textAlign:"left",p:0,"data-testid":n,children:[(0,l.jsx)(d.xBx,{p:0,children:(0,l.jsx)(d.xuv,{backgroundColor:"gray.50",px:6,py:4,border:"1px",borderColor:"gray.200",borderTopRadius:6,children:(0,l.jsx)(d.X6q,{as:"h3",size:"sm",children:a})})}),(0,l.jsx)(d.fef,{pb:4,children:r})]})]})};var si=e=>{let{system:s,includeCustomFields:t,...a}=e,{isOpen:i,onClose:n,onOpen:r}=(0,d.qY0)(),[o,c]=(0,h.useState)(void 0),{createDataUse:u,updateDataUse:p,deleteDataUse:m}=(0,e$.Z)(s),x=()=>{n(),c(void 0)},g=()=>{r(),c(void 0)},y=async e=>(x(),o)?p(o,e):u(e);return(0,h.useEffect)(()=>{n()},[n,s.fides_key]),(0,l.jsxs)(d.Kqy,{spacing:6,"data-testid":"data-use-tab",children:[0===s.privacy_declarations.length?(0,l.jsx)(eQ,{title:"You don't have a data use set up for this system yet.",description:'A Data Use is the purpose for which data is used in a system. In Fides, a system may have more than one Data Use. For example, a CRM system may be used both for "Customer Support" and also for "Email Marketing", each of these is a Data Use.',handleAdd:g}):(0,l.jsx)(e1,{heading:"Data use",declarations:s.privacy_declarations,handleAdd:g,handleEdit:e=>{r(),c(e)},handleDelete:m,allDataUses:a.allDataUses}),(0,l.jsx)(sa,{isOpen:i,onClose:x,heading:"Configure data use",children:(0,l.jsx)(st,{initialValues:o,onSubmit:y,onCancel:x,includeCustomFields:t,...a})})]})},sn=e=>{let{system:s}=e,{isLoading:t,...a}=(0,eG.f)({includeDatasets:!0,includeDisabled:!1}),i=a.allDataCategories.filter(e=>e.active),n=a.allDataUses.filter(e=>e.active),r=a.allDataSubjects.filter(e=>e.active),o={...a,allDataCategories:i,allDataUses:n,allDataSubject:r};return(0,l.jsxs)(d.Kqy,{spacing:3,"data-testid":"privacy-declaration-step",minWidth:580,children:[(0,l.jsx)(d.X6q,{as:"h3",size:"md",children:"Data uses"}),(0,l.jsxs)(d.xvT,{fontSize:"sm",fontWeight:"medium",children:["Data Uses describe the business purpose for which the personal data is processed or collected. Within a Data Use, you assign which categories of personal information are collected for this purpose and for which categories of data subjects. To update the available categories and uses, please visit"," ",(0,l.jsx)(d.rUS,{as:u(),href:"/taxonomy",color:"link.900",children:"Manage taxonomy"}),"."]}),t?(0,l.jsx)(d.$jN,{}):(0,l.jsx)(si,{system:s,includeCustomFields:!0,...o})]})},sr=t(812),sl=t(93237),so=t(69525),sd=t(33335);let sc={system_type:"",fides_key:"",tags:[],name:"",description:"",dataset_references:[],processes_personal_data:!0,exempt_from_privacy_regulations:!1,reason_for_exemption:"",uses_profiling:!1,does_international_transfers:!1,requires_data_protection_assessments:!1,privacy_policy:"",legal_name:"",legal_address:"",administrating_department:"",responsibility:[],joint_controller_info:"",data_security_practices:"",privacy_declarations:[],data_stewards:"",dpo:"",cookie_max_age_seconds:void 0,uses_cookies:!1,cookie_refresh:!1,uses_non_cookie_access:!1,legitimate_interest_disclosure_url:""},su=(e,s)=>{var t;let a=null==e?void 0:null===(t=e.data_stewards)||void 0===t?void 0:t.map(e=>e.username).join(", ");return{...e,customFieldValues:s,description:e.description?e.description:"",legal_address:e.legal_address?e.legal_address:"",dpo:e.dpo?e.dpo:"",cookie_max_age_seconds:e.cookie_max_age_seconds?e.cookie_max_age_seconds:"",legitimate_interest_disclosure_url:e.legitimate_interest_disclosure_url?e.legitimate_interest_disclosure_url:"",vendor_deleted_date:e.vendor_deleted_date?e.vendor_deleted_date:void 0,privacy_policy:e.privacy_policy?e.privacy_policy:"",data_security_practices:e.data_security_practices?e.data_security_practices:"",legal_basis_for_profiling:e.legal_basis_for_profiling?e.legal_basis_for_profiling:"",legal_basis_for_transfers:e.legal_basis_for_transfers?e.legal_basis_for_transfers:"",data_stewards:a}},sp=e=>{let s=e.fides_key?e.fides_key:(0,sd.E)(e.name),t=""===e.privacy_policy?void 0:e.privacy_policy,a={system_type:e.system_type,fides_key:s,name:e.name,description:e.description?e.description:"",dataset_references:e.dataset_references,tags:e.tags,processes_personal_data:e.processes_personal_data,exempt_from_privacy_regulations:e.exempt_from_privacy_regulations,reason_for_exemption:e.exempt_from_privacy_regulations?e.reason_for_exemption:void 0,privacy_declarations:e.processes_personal_data?e.privacy_declarations:[],vendor_id:e.vendor_id,ingress:e.ingress,egress:e.egress,meta:e.meta,fidesctl_meta:e.fidesctl_meta,organization_fides_key:e.organization_fides_key,dpa_progress:e.dpa_progress,previous_vendor_id:e.previous_vendor_id,cookie_max_age_seconds:e.cookie_max_age_seconds?e.cookie_max_age_seconds:void 0,uses_cookies:e.uses_cookies,cookie_refresh:e.cookie_refresh,uses_non_cookie_access:e.uses_non_cookie_access,legitimate_interest_disclosure_url:e.legitimate_interest_disclosure_url?e.legitimate_interest_disclosure_url:void 0,vendor_deleted_date:e.vendor_deleted_date?e.vendor_deleted_date:void 0};return e.processes_personal_data&&(a={...a,dataset_references:e.dataset_references,uses_profiling:e.uses_profiling,legal_basis_for_profiling:e.uses_profiling?e.legal_basis_for_profiling:void 0,does_international_transfers:e.does_international_transfers,legal_basis_for_transfers:e.does_international_transfers?e.legal_basis_for_transfers:void 0,requires_data_protection_assessments:e.requires_data_protection_assessments,dpa_location:e.requires_data_protection_assessments?e.dpa_location:void 0,privacy_policy:t,legal_name:e.legal_name,legal_address:e.legal_address,responsibility:e.responsibility,dpo:e.dpo,data_security_practices:e.data_security_practices},e.administrating_department&&(a.administrating_department=e.administrating_department),e.joint_controller_info&&(a.joint_controller_info=e.joint_controller_info)),a},{useGetSystemAssetsQuery:sm,useAddSystemAssetMutation:sh,useUpdateSystemAssetsMutation:sx,useDeleteSystemAssetsMutation:sg,usePopulateSystemAssetsMutation:sy}=t(78780).u.injectEndpoints({endpoints:e=>({getSystemAssets:e.query({query:e=>{let{fides_key:s,...t}=e;return{method:"GET",url:"/plus/system-assets/".concat(s),params:t}},providesTags:["System Assets"]}),addSystemAsset:e.mutation({query:e=>{let{systemKey:s,asset:t}=e;return{method:"POST",url:"/plus/system-assets/".concat(s,"/assets"),body:t}},invalidatesTags:["System Assets"]}),updateSystemAssets:e.mutation({query:e=>{let{systemKey:s,assets:t}=e;return{method:"PUT",url:"/plus/system-assets/".concat(s,"/assets/"),body:t}},invalidatesTags:["System Assets"]}),deleteSystemAssets:e.mutation({query:e=>{let{systemKey:s,asset_ids:t}=e;return{method:"DELETE",url:"/plus/system-assets/".concat(s,"/assets?").concat((0,w.du)(t,"asset_ids"))}},invalidatesTags:["System Assets"]}),populateSystemAssets:e.mutation({query:e=>{let{systemKey:s}=e;return{method:"POST",url:"/plus/dictionary/system-vendors/cookie-assets",body:[s]}}})})});var sf=t(36345);let s_=["Explicit consent","Contract","Authorised by law"].map(e=>({value:e,label:e})),sv=[{value:"Adequacy Decision",label:"Adequacy decision"},{value:"Supplementary measures",label:"Supplementary measures"},{value:"SCCs",label:"Standard contractual clauses"},{value:"BCRs",label:"Binding corporate rules"},{value:"Other",label:"Other"}],sb=["Controller","Processor","Sub-Processor"].map(e=>({value:e,label:e})),sj=e=>{var s;let{system:t}=e,a=t?null!==(s=t.name)&&void 0!==s?s:"this system":"your new system";return(0,l.jsxs)(d.X6q,{as:"h3",size:"lg",children:["Describe ",a]})};var sk=e=>{let{onSuccess:s,system:t,withHeader:a,children:i}=e,{data:n=[]}=(0,P.K3)(),r=(0,x.T)(),o=(0,e4.mZ)({resourceType:q.P6.SYSTEM,resourceFidesKey:null==t?void 0:t.fides_key}),{...c}=(0,eG.f)({includeDatasets:!0,includeDisabled:!1}),u=(0,h.useMemo)(()=>t?su(t,o.customFieldValues):sc,[t,o.customFieldValues]),[p]=(0,P.in)(),m=(0,h.useMemo)(()=>V.Ry().shape({name:V.Z_().required().label("System name").test("is-unique","",async(e,s)=>{let{data:t}=await p({page:1,size:10,search:e});return!((null==t?void 0:t.items)||[]).filter(e=>e.name!==u.name).some(s=>s.name===e)||s.createError({message:'You already have a system called "'.concat(e,'". Please specify a unique name for this system.')})}),privacy_policy:V.Z_().min(1).url().nullable()}),[p,u.name]),g=(0,eO.hz)(),[f,_]=(0,P.f7)(),[v,j]=(0,P.qQ)(),[k]=sy();(0,W.Rd)(void 0,{skip:!g.dictionaryService});let[w]=(0,W.qz)(),C=(0,x.C)(W.o),S=(0,x.C)(ev.gU),D=(0,h.useMemo)(()=>!!(t&&(null==n?void 0:n.some(e=>e.fides_key===(null==t?void 0:t.fides_key)))),[t,n]),T=(0,h.useMemo)(()=>c.allDatasets?c.allDatasets.map(e=>({value:e.fides_key,label:e.name?e.name:e.fides_key})):[],[c.allDatasets]),A=(0,d.pmc)(),E=async(e,t)=>{var a;let i,n;if(e.vendor_id&&0===e.privacy_declarations.length){let s=await w({vendor_id:e.vendor_id});if(s.isError){if(!((0,sr.fn)(s.error)&&404===s.error.status)){let e=(0,sr.e$)(s.error,"A problem occurred while fetching data uses from Fides Compass for your system. Please try again.");A((0,b.Vo)(e))}}else s.data&&s.data.items.length>0&&(i=s.data.items.map(e=>{var s;return{...(0,so.U)(e),name:null!==(s=e.name)&&void 0!==s?s:""}}))}let l=sp({...e,privacy_declarations:null!=i?i:e.privacy_declarations});if(n=D?await v(l):await f(l),await o.upsertCustomFields(e),!D&&e.vendor_id&&(null===(a=n.data)||void 0===a?void 0:a.fides_key)){let e=await k({systemKey:n.data.fides_key});(0,sr.D4)(e)&&A((0,b.Vo)("An unexpected error occurred while populating the system assets from Compass. Please try again."))}(0,sr.D4)(n)?A({status:"error",description:(0,sr.e$)(n.error,"An unexpected error occurred while ".concat(D?"editing":"creating"," the system. Please try again."))}):(A.closeAll(),t.resetForm({values:e}),s(n.data),r((0,ev.b3)("initial")))},R=e=>{if(g.dictionaryService){if(!e){r((0,ev.b3)("hiding")),r((0,ev.gQ)(!1));return}r((0,ev.b3)("showing")),g.tcf&&(0,sr.cj)(e)===sr.c6.GVL?r((0,ev.gQ)(!0)):r((0,ev.gQ)(!1))}},I=j.isLoading||_.isLoading||o.isLoading;return(0,l.jsx)(U.J9,{initialValues:u,enableReinitialize:!0,onSubmit:E,validationSchema:m,children:e=>{let{dirty:s,values:n,isValid:r}=e;return(0,l.jsxs)(U.l0,{children:[(0,l.jsx)(y.Gt,{id:"SystemInfoTab",name:"System Info"}),(0,l.jsxs)(d.Kqy,{spacing:0,maxWidth:{base:"100%",lg:"70%"},children:[a?(0,l.jsx)(sj,{system:t}):null,(0,l.jsx)(d.xvT,{fontSize:"sm",fontWeight:"medium",children:"By providing a small amount of additional context for each system we can make reporting and understanding our tech stack much easier for everyone from engineering to legal teams. So let’s do this now."}),a?(0,l.jsx)(sj,{system:t}):null,(0,l.jsxs)(e5.Z,{heading:"System details",children:[g.dictionaryService?(0,l.jsx)(sf.Z,{label:"System name",options:C,onVendorSelected:R,isCreate:!t,lockedForGVL:S}):(0,l.jsx)(N.j0,{id:"name",name:"name",label:"System name",tooltip:"Give the system a unique, and relevant name for reporting purposes. e.g. “Email Data Warehouse”",variant:"stacked",isRequired:!0}),(null==t?void 0:t.fides_key)&&(0,l.jsx)(N.j0,{id:"fides_key",name:"fides_key",label:"Unique ID",disabled:!0,variant:"stacked",tooltip:"An auto-generated unique ID based on the system name"}),(0,l.jsx)(sl.Sv,{id:"description",name:"description",label:"Description",tooltip:"What services does this system perform?"}),(0,l.jsx)(B.d,{mode:"tags",id:"tags",name:"tags",label:"System Tags",options:u.tags?u.tags.map(e=>({value:e,label:e})):[],layout:"stacked",tooltip:"Are there any tags to associate with this system?"})]}),(0,l.jsx)(e5.Z,{heading:"Dataset reference",children:(0,l.jsx)(B.d,{name:"dataset_references",label:"Dataset references",options:T,tooltip:"Is there a dataset configured for this system?",mode:"multiple",layout:"stacked"})}),(0,l.jsx)(e5.Z,{heading:"Data processing properties",children:(0,l.jsxs)(d.Kqy,{spacing:0,children:[(0,l.jsx)(d.xuv,{mb:4,children:(0,l.jsx)(sl.dQ,{name:"processes_personal_data",label:"This system processes personal data",tooltip:"Does this system process personal data?",disabled:S})}),(0,l.jsx)(d.xuv,{padding:4,borderRadius:4,backgroundColor:"gray.50",children:(0,l.jsxs)(d.Kqy,{spacing:0,children:[(0,l.jsx)(sl.dQ,{name:"exempt_from_privacy_regulations",label:"This system is exempt from privacy regulations",tooltip:"Is this system exempt from privacy regulations?",disabled:!n.processes_personal_data||S}),(0,l.jsx)(d.UO1,{in:n.exempt_from_privacy_regulations,animateOpacity:!0,children:(0,l.jsx)(d.xuv,{mt:4,children:(0,l.jsx)(N.j0,{name:"reason_for_exemption",label:"Reason for exemption",tooltip:"Why is this system exempt from privacy regulation?",variant:"stacked",isRequired:n.exempt_from_privacy_regulations,disabled:S})})})]})}),(0,l.jsx)(d.UO1,{in:n.processes_personal_data&&!n.exempt_from_privacy_regulations,style:{overflow:"visible"},animateOpacity:!0,children:(0,l.jsxs)(d.Kqy,{spacing:4,mt:4,children:[(0,l.jsxs)(d.Kqy,{spacing:0,children:[(0,l.jsx)(sl.dQ,{name:"uses_profiling",label:"This system performs profiling",tooltip:"Does this system perform profiling that could have a legal effect?",disabled:S}),(0,l.jsx)(d.UO1,{in:n.uses_profiling,animateOpacity:!0,style:{overflow:"visible"},children:(0,l.jsx)(d.xuv,{mt:4,children:(0,l.jsx)(B.d,{mode:"multiple",layout:"stacked",name:"legal_basis_for_profiling",label:"Legal basis for profiling",options:s_,tooltip:"What is the legal basis under which profiling is performed?",disabled:S,isRequired:n.uses_profiling})})})]}),(0,l.jsxs)(d.Kqy,{spacing:0,children:[(0,l.jsx)(sl.dQ,{name:"does_international_transfers",label:"This system transfers data",tooltip:"Does this system transfer data to other countries or international organizations?",disabled:S}),(0,l.jsx)(d.UO1,{in:n.does_international_transfers,animateOpacity:!0,style:{overflow:"visible"},children:(0,l.jsx)(d.xuv,{mt:4,children:(0,l.jsx)(B.d,{mode:"multiple",layout:"stacked",name:"legal_basis_for_transfers",label:"Legal basis for transfer",options:sv,tooltip:"What is the legal basis under which the data is transferred?",isRequired:n.does_international_transfers,disabled:S})})})]}),(0,l.jsxs)(d.Kqy,{spacing:0,children:[(0,l.jsx)(N.w8,{name:"requires_data_protection_assessments",label:"This system requires Data Privacy Assessments",tooltip:"Does this system require (DPA/DPIA) assessments?",variant:"stacked",isDisabled:S}),(0,l.jsx)(d.UO1,{in:n.requires_data_protection_assessments,animateOpacity:!0,children:(0,l.jsx)(d.xuv,{mt:4,children:(0,l.jsx)(N.j0,{label:"DPIA/DPA location",name:"dpa_location",tooltip:"Where is the DPA/DPIA stored?",variant:"stacked",disabled:S,isRequired:n.requires_data_protection_assessments})})})]})]})})]})}),(0,l.jsxs)(d.UO1,{in:n.processes_personal_data&&!n.exempt_from_privacy_regulations,animateOpacity:!0,children:[(0,l.jsxs)(e5.Z,{heading:"Cookie properties",children:[(0,l.jsx)(sl.dQ,{name:"uses_cookies",label:"This system uses cookies",tooltip:"Does this system use cookies?",disabled:S}),(0,l.jsx)(sl.dQ,{name:"cookie_refresh",label:"This system refreshes cookies",tooltip:"Does this system automatically refresh cookies?",disabled:S}),(0,l.jsx)(sl.dQ,{name:"uses_non_cookie_access",label:"This system uses non-cookie trackers",tooltip:"Does this system use other types of trackers?",disabled:S}),(0,l.jsx)(sl.lm,{name:"cookie_max_age_seconds",label:"Maximum duration (seconds)",tooltip:"What is the maximum amount of time a cookie will live?",disabled:S})]}),(0,l.jsxs)(e5.Z,{heading:"Administrative properties",children:[(0,l.jsx)(N.j0,{label:"Data stewards",name:"data_stewards",tooltip:"Who are the stewards assigned to the system?",variant:"stacked",disabled:!0}),(0,l.jsx)(sl.Yb,{id:"privacy_policy",name:"privacy_policy",label:"Privacy policy URL",tooltip:"Where can the privacy policy be located?",disabled:S}),(0,l.jsx)(sl.Yb,{id:"legal_name",name:"legal_name",label:"Legal name",tooltip:"What is the legal name of the business?"}),(0,l.jsx)(sl.Sv,{id:"legal_address",name:"legal_address",label:"Legal address",tooltip:"What is the legal address for the business?"}),(0,l.jsx)(N.j0,{label:"Department",name:"administrating_department",tooltip:"Which department is concerned with this system?",variant:"stacked",disabled:!n.processes_personal_data||n.exempt_from_privacy_regulations}),(0,l.jsx)(B.d,{mode:"multiple",layout:"stacked",label:"Responsibility",name:"responsibility",options:sb,tooltip:"What is the role of the business with regard to data processing?",disabled:!n.processes_personal_data||n.exempt_from_privacy_regulations}),(0,l.jsx)(sl.Yb,{name:"dpo",id:"dpo",label:"Legal contact (DPO)",tooltip:"What is the official privacy contact information?",disabled:S}),(0,l.jsx)(N.j0,{label:"Joint controller",name:"joint_controller_info",tooltip:"Who are the party or parties that share responsibility for processing data?",variant:"stacked",disabled:!n.processes_personal_data||n.exempt_from_privacy_regulations}),(0,l.jsx)(sl.Yb,{label:"Data security practices",name:"data_security_practices",id:"data_security_practices",tooltip:"Which data security practices are employed to keep the data safe?"}),(0,l.jsx)(sl.Yb,{label:"Legitimate interest disclosure URL",name:"legitimate_interest_disclosure_url",id:"legitimate_interest_disclosure_url",disabled:S}),(0,l.jsx)(sl.Yb,{label:"Vendor deleted date",name:"vendor_deleted_date",id:"vendor_deleted_date",tooltip:"If this vendor is no longer active, it will be 'soft' deleted. When that occurs, it's deleted date will be recorded here for reporting.",disabled:!0})]}),n.fides_key?(0,l.jsx)(e4.uc,{resourceType:q.P6.SYSTEM,resourceFidesKey:n.fides_key}):null]})]}),(0,l.jsx)(d.xuv,{mt:6,children:(0,l.jsx)(d.wpx,{htmlType:"submit",type:"primary",disabled:I||!s||!r,loading:I,"data-testid":"save-btn",children:"Save"})}),i]})}})},sw=t(59003),sC=t(92222),sS=t(30952),sD=t(47935),sT=t(90111),sA=t(8133),sE=t(83099),sq=e=>{let{name:s,label:t,labelProps:a,tooltip:i}=e,[n,r,{setValue:o,setTouched:c}]=(0,U.U$)(s),u=!!(r.touched&&r.error);return(0,l.jsx)(d.NIc,{isInvalid:u,isRequired:!0,children:(0,l.jsxs)(d.jqI,{vertical:!0,children:[(0,l.jsxs)(d.jqI,{align:"center",children:[t&&(0,l.jsx)(N.__,{htmlFor:s,fontSize:"xs",mr:1,...a,children:t}),i&&(0,l.jsx)(eP.b,{label:i})]}),(0,l.jsx)(sE.Z,{...n,mode:"multiple",selectedTaxonomies:[],onChange:e=>{o(e)},onBlur:()=>c(!0),variant:"outlined",autoFocus:!1,status:u?"error":void 0,"data-testid":"controlled-select-".concat(s)}),(0,l.jsx)(N.Bc,{isInvalid:u,message:r.error,fieldName:s})]})})};(a=n||(n={})).COOKIE="Cookie",a.BROWSER_REQUEST="Browser Request",a.I_FRAME="iFrame",a.JAVASCRIPT_TAG="Javascript tag",a.IMAGE="Image";let sR=V.Ry().shape({name:V.Z_().required("Enter a name for this asset"),domain:V.Z_().required("Enter a valid domain for this asset"),asset_type:V.Z_().required("Select an asset type"),data_uses:V.IX().min(1,"Select at least one data use"),base_url:V.Z_().when("asset_type",{is:e=>"Cookie"!==e,then:e=>e.required("Base URL is required"),otherwise:e=>e.notRequired()})}),sI={name:"",description:"",data_uses:[],domain:"",asset_type:"",id:"",system_id:""};var sz=e=>{let{isOpen:s,onClose:t,systemKey:a,asset:i,...r}=e,o=!i,[c,{isLoading:u}]=sh(),[p,{isLoading:m}]=sx(),h=(0,d.pmc)(),x=async e=>{let s=await c({systemKey:a,asset:e});if((0,sr.D4)(s)){let e=(0,sr.e$)(s.error,"An unexpected error occurred while saving this asset. Please try again.");h((0,b.Vo)(e))}else h((0,b.t5)("Asset added successfully")),t()},g=async e=>{let s=await p({systemKey:a,assets:[e]});if((0,sr.D4)(s)){let e=(0,sr.e$)(s.error,"An unexpected error occurred while saving this asset. Please try again.");h((0,b.Vo)(e))}else h((0,b.t5)("Asset updated successfully")),t()};return(0,l.jsx)(sA.Z,{title:o?"Add asset":"Edit asset",onClose:t,isOpen:s,...r,children:(0,l.jsx)(U.J9,{initialValues:null!=i?i:sI,onSubmit:e=>{o?x(e):g(e)},validationSchema:sR,children:e=>{let{values:s,isValid:a,dirty:i}=e;return(0,l.jsxs)(U.l0,{children:[(0,l.jsxs)(d.jqI,{vertical:!0,className:"pb-6 pt-4",children:[(0,l.jsx)(sT.Z,{children:(0,l.jsx)(d.xvT,{fontSize:"sm",children:"Create and configure assets (e.g. cookies, pixels, tags) for this system to ensure proper consent enforcement. Adding assets manually allows you to define key attributes, assign categories, and align them with compliance requirements."})}),(0,l.jsxs)(d.jqI,{vertical:!0,gap:20,children:[(0,l.jsx)(N.j0,{id:"name",name:"name",label:"Name",variant:"stacked",isRequired:!0,disabled:!o}),(0,l.jsx)(B.d,{isRequired:!0,id:"asset_type",name:"asset_type",label:"Asset type",options:(0,sr.MM)(n),layout:"stacked",disabled:!o}),(0,l.jsx)(sq,{name:"data_uses",label:"Data uses",layout:"stacked"}),(0,l.jsx)(N.j0,{id:"domain",name:"domain",label:"Domain",variant:"stacked",isRequired:!0,disabled:!o}),(0,l.jsx)(N.Ks,{id:"description",name:"description",label:"Description",variant:"stacked"}),(0,l.jsx)(d.UO1,{in:!!s.asset_type&&"Cookie"!==s.asset_type,children:(0,l.jsx)(N.j0,{id:"base_url",name:"base_url",label:"Base URL",variant:"stacked",isRequired:!!s.asset_type&&"Cookie"!==s.asset_type})})]})]}),(0,l.jsxs)(d.jqI,{justify:"space-between",children:[(0,l.jsx)(d.wpx,{onClick:t,children:"Cancel"}),(0,l.jsx)(d.wpx,{type:"primary",htmlType:"submit",loading:u||m,disabled:!a||!i,"data-testid":"save-btn",children:"Save"})]})]})}})})},sF=t(8411),sL=t(72625),sO=t(29850),sZ=t(77685),sW=e=>{let{systemKey:s,systemName:t,asset:a,readonly:i}=e,[n,r]=(0,h.useState)(!1),[o,c]=(0,h.useState)(),[u,p]=(0,h.useState)(!1),[m,{isLoading:x}]=sx(),{successAlert:g,errorAlert:y}=(0,A.V)(),f=(0,d.qY0)(),{asset_type:_,name:v}=a,b=(0,h.useCallback)(e=>{e.preventDefault(),p(!0)},[]),j=async e=>{if(!e)return;let{newSystemKey:t,newSystemName:i,isNewSystem:n}=e,l=await m({systemKey:s,assets:[{id:a.id,system_key:t}]});(0,ey.D4)(l)?y((0,sr.e$)(l.error)):g(n?"".concat(i," has been added to your system inventory and the ").concat(_,' "').concat(v,'" has been assigned to that system.'):"".concat(_," ").concat(v," has been assigned to ").concat(i)),r(!1),c(void 0)},k=e=>{c(e),f.onOpen()};return i?(0,l.jsx)(d.j8w,{"data-testid":"system-badge",color:"white",children:t}):(0,l.jsxs)(l.Fragment,{children:[!n&&(0,l.jsxs)(d.j8w,{"data-testid":"system-badge",color:"white",onClick:()=>r(!0),children:[t," ",(0,l.jsx)(d.PJP.I8b,{})]}),!!n&&(0,l.jsx)(sO.R,{variant:"borderless",className:"w-full",autoFocus:!0,defaultOpen:!0,defaultValue:s,onBlur:e=>{var s;(null===(s=e.relatedTarget)||void 0===s?void 0:s.getAttribute("id"))!=="add-new-system"&&r(!1)},onAddSystem:b,onSelect:(e,s)=>k({newSystemKey:e,newSystemName:s.label}),loading:x}),u&&(0,l.jsx)(sZ.i,{isOpen:!0,onClose:()=>p(!1),onSuccessfulSubmit:(e,s)=>k({newSystemKey:e,newSystemName:s,isNewSystem:!0})}),(0,l.jsx)(d.cVQ,{isOpen:f.isOpen,onClose:f.onClose,onConfirm:()=>{j(o)},title:"Reassign asset",message:"Are you sure you want to reassign this asset to ".concat(null==o?void 0:o.newSystemName,"?"),isCentered:!0})]})},sP=e=>{let{asset:s,systemKey:t,onEditClick:a}=e,[i,{isLoading:n}]=sg(),r=(0,d.pmc)(),{isOpen:o,onClose:c,onOpen:u}=(0,d.qY0)(),p=async()=>{let e=await i({systemKey:t,asset_ids:[s.id]});(0,ey.D4)(e)?r((0,b.Vo)((0,sr.e$)(e.error,"A problem occurred removing this asset. Please try again"))):r((0,b.t5)("Asset removed successfully"))};return(0,l.jsxs)(d.jqI,{className:"gap-1",children:[(0,l.jsx)(d.wpx,{size:"small",onClick:a,"data-testid":"edit-btn",children:"Edit"}),(0,l.jsx)(d.wpx,{size:"small",onClick:u,loading:n,"data-testid":"remove-btn",children:"Remove"}),(0,l.jsx)(d.cVQ,{isOpen:o,onClose:c,onConfirm:p,title:"Remove asset",message:"Are you sure you want to ignore the selected assets? This action cannot be undone and may impact consent automation.",isCentered:!0})]})},sN=t(34929),sU=t(26183),sV=e=>{var s,t;let{asset:a,systemId:i,readonly:n}=e,{getDataUseDisplayName:r}=(0,sN.Z)(),[o]=sx(),{errorAlert:c,successAlert:u}=(0,R.V)(),[p,m]=(0,h.useState)(!1),x=async e=>{let s=[...a.data_uses||[],e],t=await o({systemKey:i,assets:[{id:a.id,data_uses:s}]});(0,ey.D4)(t)?c((0,sr.e$)(t.error)):u("Consent category added to ".concat(a.asset_type,' "').concat(a.name,'".'),"Confirmed")},g=async e=>{var s;let t=null===(s=a.data_uses)||void 0===s?void 0:s.filter(s=>s!==e),n=await o({systemKey:i,assets:[{id:a.id,data_uses:t}]});(0,ey.D4)(n)?c((0,sr.e$)(n.error)):u("Consent category removed from ".concat(a.asset_type,' "').concat(a.name,'".'),"Confirmed")},y=null!==(t=null===(s=a.data_uses)||void 0===s?void 0:s.map(e=>({label:r(e),key:e})))&&void 0!==t?t:[];return n?(0,l.jsx)(sU.Z,{children:y.map(e=>(0,l.jsx)(d.j8w,{"data-testid":"data-use-".concat(e.key),color:"white",children:e.label},e.key))}):(0,l.jsxs)(sU.Z,{children:[!p&&(0,l.jsxs)(l.Fragment,{children:[y.map(e=>(0,l.jsx)(d.j8w,{"data-testid":"data-use-".concat(e.key),color:"white",closable:!0,onClose:()=>g(e.key),closeButtonLabel:"Remove data use",children:e.label},e.key)),(0,l.jsx)(d.j8w,{onClick:()=>m(!0),"data-testid":"taxonomy-add-btn",addable:!0,"aria-label":"Add data use"})]}),p&&(0,l.jsx)(d.xuv,{className:"select-wrapper",position:"absolute",zIndex:10,top:"0",left:"0",width:"100%",height:"max",bgColor:"#fff",children:(0,l.jsx)(sE.Z,{selectedTaxonomies:a.data_uses||[],onSelect:x,onBlur:()=>m(!1),open:!0})})]})},sB=e=>{let{systemKey:s,systemName:t,lockedForGVL:a,onEditClick:i}=e,n=(0,sC.Cl)(),r=n.display({id:"select",cell:e=>{let{row:s}=e;return(0,l.jsx)(sL.k,{isChecked:s.getIsSelected(),onChange:s.getToggleSelectedHandler(),dataTestId:"select-".concat(s.original.name||s.id)})},header:e=>{let{table:s}=e;return(0,l.jsx)(sL.k,{isChecked:s.getIsAllPageRowsSelected(),isIndeterminate:s.getIsSomeRowsSelected(),onChange:s.getToggleAllRowsSelectedHandler(),dataTestId:"select-all-rows"})},maxSize:40,meta:{cellProps:{borderRight:"none",paddingRight:0}}}),o=n.accessor(e=>e.name,{id:"name",cell:e=>(0,l.jsx)(sD.G3,{value:e.getValue()}),header:"Asset"}),d=n.accessor(e=>e.asset_type,{id:"resource_type",cell:e=>(0,l.jsx)(sD.G3,{value:e.getValue()}),header:"Type"}),c=n.display({id:"system",cell:e=>(0,l.jsx)(sW,{systemKey:s,systemName:t,asset:e.row.original,readonly:a}),header:"System"}),u=n.accessor(e=>e.data_uses,{id:"data_uses",cell:e=>(0,l.jsx)(sV,{asset:e.row.original,systemId:s,readonly:a}),header:"Categories of consent",size:200}),p=n.accessor(e=>e.locations,{id:"locations",cell:e=>(0,l.jsx)(sL.mb,{values:e.getValue().map(e=>({label:sF.Z8[e],key:e}))}),header:"Locations",size:300}),m=n.accessor(e=>e.domain,{id:"domain",cell:e=>(0,l.jsx)(sD.G3,{value:e.getValue()}),header:"Domain"}),h=n.accessor(e=>e.page,{id:"page",cell:e=>(0,l.jsx)(sL.tc,{values:e.getValue(),valueSuffix:"pages",cellProps:e}),header:e=>(0,l.jsx)(sL.Rr,{value:"Detected on",...e}),meta:{showHeaderMenu:!0,disableRowClick:!0}}),x=n.display({id:"actions",cell:e=>{let{row:t}=e;return(0,l.jsx)(sP,{asset:t.original,systemKey:s,onEditClick:()=>i(t.original)})},header:"Actions"}),g=[o,d,c,u,p,m,h];return a?g:[r,...g,x]},sM=e=>{var s;let{system:t}=e,{PAGE_SIZES:a,pageSize:i,setPageSize:n,onPreviousPageClick:r,isPreviousPageDisabled:o,onNextPageClick:c,isNextPageDisabled:u,startRange:p,endRange:m,pageIndex:g,setTotalPages:y,resetPageIndexToDefault:f}=(0,sD.oi)(),[_,v]=(0,h.useState)(""),[j,k]=(0,h.useState)(void 0),[w,C]=(0,h.useState)({}),[S]=sg(),D=(0,x.C)(ev.gU),T=(0,d.pmc)(),{data:A,isLoading:E,isFetching:q}=sm({fides_key:t.fides_key,search:_,page:g,size:i}),{isOpen:R,onClose:I,onOpen:z}=(0,d.qY0)(),{isOpen:F,onClose:L,onOpen:O}=(0,d.qY0)();(0,h.useEffect)(()=>{f()},[_,f]),(0,h.useEffect)(()=>{y(null==A?void 0:A.pages)},[A,y]);let Z=sB({systemName:null!==(s=t.name)&&void 0!==s?s:t.fides_key,systemKey:t.fides_key,onEditClick:e=>{k(e),z()},lockedForGVL:D}),W=(0,sw.b7)({getCoreRowModel:(0,sC.sC)(),columns:Z,manualPagination:!0,data:(null==A?void 0:A.items)||[],columnResizeMode:"onChange",onRowSelectionChange:C,state:{rowSelection:w}}),P=W.getSelectedRowModel().rows.map(e=>e.original.id),N=async()=>{let e=await S({systemKey:t.fides_key,asset_ids:P});(0,ey.D4)(e)?T((0,b.Vo)((0,sr.e$)(e.error,"A problem occurred removing these assets. Please try again."))):(W.resetRowSelection(),T((0,b.t5)("Assets removed successfully"))),L()};return t?E?(0,l.jsx)(sD.I4,{rowHeight:36,numRows:36}):(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(d.xvT,{fontSize:"sm",mb:4,children:D?"This page displays all assets associated with this system. Use the table below to review these technologies for compliance and detailed insights.":"This page displays all assets associated with this system. Use the table below to review and manage these technologies for compliance and detailed insights."}),(0,l.jsxs)(sD.Q$,{children:[(0,l.jsx)(sS.f,{value:_,onChange:v}),!D&&(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(d.LZC,{}),(0,l.jsx)(d.wpx,{icon:(0,l.jsx)(d.PJP.mm_,{}),iconPosition:"end",onClick:z,"data-testid":"add-asset-btn",children:"Add asset"}),(0,l.jsx)(sz,{isOpen:R,onClose:()=>{k(void 0),I()},systemKey:t.fides_key,asset:j}),(0,l.jsx)(d.wpx,{icon:(0,l.jsx)(d.PJP.ZNm,{}),iconPosition:"end",onClick:O,disabled:!P.length,"data-testid":"bulk-delete-btn",children:"Remove"}),(0,l.jsx)(d.cVQ,{isOpen:F,onClose:L,onConfirm:N,title:"Remove assets",message:"Are you sure you want to remove the selected assets? This action cannot be undone and may impact consent automation.",isCentered:!0})]})]}),(0,l.jsx)(sD.ZK,{tableInstance:W,emptyTableNotice:(0,l.jsx)(d.oj8,{image:d.oj8.PRESENTED_IMAGE_SIMPLE,description:"No assets found","data-testid":"empty-state"})}),(0,l.jsx)(sD.s8,{totalRows:(null==A?void 0:A.total)||0,pageSizes:a,setPageSize:n,onPreviousPageClick:r,isPreviousPageDisabled:o||q,onNextPageClick:c,isNextPageDisabled:u||q,startRange:p,endRange:m})]}):null};(i=r||(r={})).INFORMATION="information",i.DATA_USES="data-uses",i.DATA_FLOW="data-flow",i.INTEGRATIONS="integrations",i.ASSETS="assets",i.HISTORY="history";let sK=e=>{let{onViewDatamap:s,onAddPrivacyDeclaration:t}=e;return(0,l.jsxs)(d.xuv,{children:[(0,l.jsx)(d.xvT,{fontWeight:"700",children:"System has been saved successfully"}),(0,l.jsxs)(d.xvT,{textColor:"gray.700",whiteSpace:"inherit",children:["Your system has been added to your data map. You can"," ",(0,l.jsx)(j.Z,{onClick:s,children:"view it now"})," or"," ",(0,l.jsx)(j.Z,{onClick:t,children:"add privacy declarations in the next tab"}),"."]})]})};var sH=e=>{var s,t;let{isCreate:a}=e,i=(0,p.useRouter)(),{activeTab:n,onTabChange:c}=(0,v.Z)({tabKeys:Object.values(r)}),[m,j]=(0,h.useState)(!1),{systemOrDatamapRoute:k}=(0,f.V)(),w=(0,d.pmc)(),C=(0,x.T)(),S=(0,x.C)(P.NC),[D,T]=(0,h.useState)(void 0),{plus:A}=(0,g.hz)(),{plus:E}=(0,g.hz)(),{data:q}=(0,P.rn)(null==S?void 0:S.fides_key,{skip:!S});(0,h.useEffect)(()=>{C((0,P.db)(q))},[q,C]),(0,h.useEffect)(()=>{S&&T(S.processes_personal_data)},[S]);let R=(0,h.useCallback)(e=>{void 0===S&&j(!0),C((0,P.db)(e)),i.push({pathname:_.Dv,query:{id:e.fides_key}});let s={...b.MA,description:(0,l.jsx)(sK,{onViewDatamap:()=>{i.push(k).then(()=>{w.closeAll()})},onAddPrivacyDeclaration:()=>{c("data-uses"),w.closeAll()}})};w({...s})},[S,C,i,k,w,c]);(0,h.useEffect)(()=>(a&&(C((0,P.db)(void 0)),C((0,ev.b3)("initial")),C((0,ev.gQ)(!1))),()=>{C((0,P.db)(void 0))}),[C,a]);let{attemptAction:I}=(0,y.oI)(),z=(0,h.useCallback)(e=>{I().then(async s=>{if(s){let{status:s}=i.query;if(s&&("succeeded"===s?w((0,b.t5)("Integration successfully authorized.")):w((0,b.Vo)("Failed to authorize integration."))),i.isReady){let e={...i.query};delete e.status,await i.replace({pathname:i.pathname,query:e},void 0,{shallow:!0})}c(e)}})},[I,i,w,c]);(0,h.useEffect)(()=>{let{status:e}=i.query;e&&z("integrations")},[i.query,z]);let F=[{label:"Information",key:"information",children:(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)(d.xuv,{px:6,mb:9,children:[(0,l.jsx)(y.eB,{}),(0,l.jsx)(sk,{onSuccess:R,system:S})]}),m?(0,l.jsx)(d.xuv,{backgroundColor:"gray.100",px:6,py:3,children:(0,l.jsxs)(d.xvT,{color:"primary.900",fontSize:"sm","data-testid":"save-help-message",children:["Now that you have saved this new system it is"," ",(0,l.jsx)(d.rUS,{as:u(),href:k,textDecor:"underline",children:"ready to view in your data map"}),". You can return to this setup at any time to add privacy declarations to this system."]})}):null]})},{label:"Data uses",key:"data-uses",children:S?(0,l.jsx)(d.xuv,{px:6,width:{base:"100%",lg:"70%"},children:(0,l.jsx)(sn,{system:S})}):null,disabled:!S||!D},{label:"Data flow",key:"data-flow",children:S?(0,l.jsxs)(d.xuv,{width:{base:"100%",lg:"70%"},children:[(0,l.jsxs)(d.xuv,{px:6,paddingBottom:2,children:[(0,l.jsx)(d.xvT,{fontSize:"md",lineHeight:6,fontWeight:"bold",marginBottom:3,children:"Data flow"}),(0,l.jsx)(d.xvT,{fontSize:"sm",lineHeight:5,fontWeight:"medium",children:"Data flow describes the flow of data between systems in your Data Map. Below, you can configure Source and Destination systems and the corresponding links will be drawn in the Data Map graph. Source systems are systems that send data to this system while Destination systems receive data from this system."})]}),(0,l.jsx)(o.q,{system:S,isSystemTab:!0})]}):null,disabled:!S},{label:"Integrations",key:"integrations",children:S?(0,l.jsxs)(d.xuv,{width:{base:"100%",lg:"70%"},children:[(0,l.jsx)(d.xuv,{px:6,paddingBottom:2,children:(0,l.jsx)(d.xvT,{fontSize:"sm",lineHeight:5,children:E?(0,l.jsxs)(l.Fragment,{children:["Add an integration to start managing privacy requests and consent. Visit"," ",(0,l.jsx)(d.rUS,{href:_.KH,color:"link.900",children:"Integration Management"})," ","to set up monitoring on databases."]}):"Integrations are used to process privacy requests for access erasure, portability, rectification, and consent."})}),(0,l.jsx)(ex,{connectionConfig:S.connection_configs,systemFidesKey:S.fides_key}),(null===(s=S.connection_configs)||void 0===s?void 0:s.key)&&(0,l.jsx)(e_,{m:6,connectionKey:null===(t=S.connection_configs)||void 0===t?void 0:t.key})]}):null,disabled:!S}];return A&&F.push({label:"Assets",key:"assets",children:S?(0,l.jsx)(sM,{system:S}):null,disabled:!S}),A&&F.push({label:"History",key:"history",children:S?(0,l.jsxs)(d.xuv,{width:{base:"100%",lg:"70%"},children:[(0,l.jsx)(d.xuv,{px:6,paddingBottom:6,children:(0,l.jsx)(d.xvT,{fontSize:"sm",lineHeight:5,fontWeight:"medium",children:"All changes to this system are tracked here in this audit table by date and by user. You can inspect the changes by selecting any of the events listed."})}),(0,l.jsx)(eY,{system:S})]}):null,disabled:!S}),{tabData:F,activeKey:n,onTabChange:z}}},54748:function(e,s,t){"use strict";var a=t(27378),i=t(73825);s.Z=()=>({legalBasisOptions:(0,a.useMemo)(()=>Object.keys(i.gP).map(e=>({value:i.gP[e],label:i.gP[e]})),[])})},28325:function(e,s,t){"use strict";var a=t(27378),i=t(73825);s.Z=()=>({specialCategoryLegalBasisOptions:(0,a.useMemo)(()=>Object.keys(i.nV).map(e=>({value:i.nV[e],label:i.nV[e]})),[])})}}]);
@@ -1 +1 @@
1
- "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3923],{23923:function(e,a,t){t.d(a,{Z:function(){return G}});var s=t(24246),i=t(13577),n=t(34090),r=t(27378),o=t(55484),l=t(16134),d=t(25980),c=t(40324),u=t(33335),p=t(32885),m=t(1315),_=t(57865),g=t(72774),v=t(36345),f=t(812),h=t(8133),y=t(46628);let b={name:"",consent_use:"",data_use:"",data_categories:["user"]},x=[{label:"Analytics",value:"analytics",description:"Provides analytics for activities such as system and advertising performance reporting, insights and fraud detection."},{label:"Essential",value:"essential",description:"Operates the service or product, including legal obligations, support and basic system operations."},{label:"Functional",value:"functional",description:"Used for specific, necessary, and legitimate purposes."},{label:"Marketing",value:"marketing",description:"Enables marketing, promotion, advertising and sales activities for the product, service, application or system."}],j=e=>x.some(a=>a.value===e.split(".")[0]);var k=t(28079),C=t(69525),w=t(97181);let V=e=>{let{index:a,disabled:t}=e;(0,k.fd)();let r=(0,l.C)(k.oW),{values:o}=(0,n.u6)(),d=r.filter(e=>e.value.split(".")[0]===o.privacy_declarations[a].consent_use);return(0,s.jsxs)(i.gCW,{width:"100%",borderRadius:"4px",border:"1px solid",borderColor:"gray.200",spacing:4,p:4,children:[(0,s.jsx)(w.d,{label:"Consent category",tooltip:"What is the system using the data for. For example, is it for third party advertising or perhaps simply providing system operations.",name:"privacy_declarations.".concat(a,".consent_use"),options:x,layout:"stacked",isRequired:!0,disabled:t}),(0,s.jsx)(w.d,{allowClear:!0,label:"Detailed consent category (optional)",tooltip:"Select a more specific consent category",name:"privacy_declarations.".concat(a,".data_use"),options:d,layout:"stacked",disabled:!o.privacy_declarations[a].consent_use||t}),(0,s.jsx)(w.d,{mode:"tags",label:"Cookie names",name:"privacy_declarations.".concat(a,".cookieNames"),options:[],layout:"stacked",disabled:t,className:"w-full"})]})};var F=e=>{var a,t;let{showSuggestions:o,isCreate:d,disabled:c}=e,{values:u,setFieldValue:m}=(0,n.u6)(),{vendor_id:_}=u,{isLoading:g}=(0,p.Wp)({vendor_id:_},{skip:!o||null==_}),v=(0,l.C)((0,p.cL)(_||""));(0,r.useEffect)(()=>{o&&u.vendor_id&&(null==v?void 0:v.length)?m("privacy_declarations",v.filter(e=>j(e.data_use)).map(e=>(0,C.U)(e)).map(e=>{var a;return{name:null!==(a=e.name)&&void 0!==a?a:"",consent_use:e.data_use.split(".")[0],data_use:e.data_use,data_categories:e.data_categories}})):d&&m("privacy_declarations",[b])},[o,d,u.vendor_id,v,m]);let f=(null===(a=u.privacy_declarations[u.privacy_declarations.length-1])||void 0===a?void 0:a.data_use)===b.data_use&&(null===(t=u.privacy_declarations[u.privacy_declarations.length-1])||void 0===t?void 0:t.consent_use)===b.consent_use;return g?(0,s.jsx)(i.$jN,{size:"sm",alignSelf:"center"}):(0,s.jsx)(n.F2,{name:"privacy_declarations",render:e=>(0,s.jsxs)(s.Fragment,{children:[u.privacy_declarations.map((e,a)=>(0,s.jsx)(V,{index:a,disabled:c},e.data_use||a)),(0,s.jsx)(i.wpx,{onClick:()=>e.push(b),size:"small",type:"text",disabled:c||f,"data-testid":"add-data-use-btn",children:"Add data use +"})]})})};let S={name:"",vendor_id:void 0,privacy_declarations:[b]};var G=e=>{let{buttonLabel:a,onButtonClick:t,buttonProps:x}=e,j=(0,i.pmc)(),{isOpen:k,onOpen:C,onClose:w}=(0,i.qY0)(),V=(0,l.T)(),[G]=(0,m.in)(),L=(0,r.useMemo)(()=>o.Ry().shape({name:o.Z_().required().label("Vendor name").test("is-unique","",async(e,a)=>{let{data:t}=await G({page:1,size:10,search:e});return!((null==t?void 0:t.items)||[]).some(a=>a.name===e)||a.createError({message:'You already have a vendor called "'.concat(e,'". Please specify a unique name for this vendor.')})})}),[G]),{tcf:E,dictionaryService:R}=(0,d.hz)(),{isLoading:W}=(0,p.Rd)(void 0,{skip:!R}),q=(0,l.C)(p.o),z=(0,l.C)(_.gU),[N]=(0,m.f7)(),T=(0,l.C)(_.bN),U=()=>{w(),V((0,_.b3)("initial")),V((0,_.gQ)(!1))},Z=(0,r.useRef)(null),A=Z.current?Z.current.values.vendor_id:void 0,M=(0,l.C)((0,p.$e)(A||"")),Q=async(e,a)=>{let t=e.privacy_declarations.filter(e=>e.consent_use!==b.consent_use).flatMap(e=>{let{consent_use:a,...t}=e;return"marketing"!==e.consent_use||e.data_use?{...t,data_use:e.data_use?e.data_use:e.consent_use}:["marketing.advertising.first_party.targeted","marketing.advertising.third_party.targeted"].map(e=>({...t,data_use:e}))}),s={...M,...e,fides_key:(0,u.E)(e.name),system_type:"",privacy_declarations:t},i=await N(s);if((0,f.D4)(i)){j((0,y.Vo)((0,f.e$)(i.error)));return}j((0,y.t5)("Vendor successfully created!")),a.resetForm(),U()},D=e=>{if(R){if(!e){V((0,_.b3)("hiding")),V((0,_.gQ)(!1));return}V((0,_.b3)("showing")),E&&(0,f.cj)(e)===f.c6.GVL?V((0,_.gQ)(!0)):V((0,_.gQ)(!1))}};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(i.wpx,{onClick:()=>{t?t():C()},"data-testid":"add-vendor-btn",...x,children:a}),(0,s.jsx)(n.J9,{initialValues:S,enableReinitialize:!0,onSubmit:Q,validationSchema:L,innerRef:Z,children:e=>{let{dirty:a,isValid:t,resetForm:r}=e;return(0,s.jsx)(h.Z,{isOpen:k,onClose:U,title:"Add a vendor",children:(0,s.jsxs)(i.xuv,{"data-testid":"add-vendor-modal-content",my:4,children:[z?(0,s.jsx)(g.Z,{}):null,(0,s.jsx)(n.l0,{children:(0,s.jsxs)(i.gCW,{alignItems:"start",spacing:6,children:[R?(0,s.jsx)(v.Z,{label:"Vendor name",options:q,isLoading:W,onVendorSelected:D,isCreate:!0,lockedForGVL:z}):(0,s.jsx)(c.j0,{id:"name",name:"name",isRequired:!0,label:"Vendor name",tooltip:"Give the system a unique, and relevant name for reporting purposes. e.g. “Email Data Warehouse”",variant:"stacked"}),(0,s.jsx)(F,{showSuggestions:"showing"===T,isCreate:!0,disabled:z}),(0,s.jsxs)("div",{className:"flex w-full justify-between",children:[(0,s.jsx)(i.wpx,{onClick:()=>{U(),r()},children:"Cancel"}),(0,s.jsx)(i.wpx,{type:"primary",htmlType:"submit",disabled:W||!a||!t,loading:W,"data-testid":"save-btn",children:"Save vendor"})]})]})})]})})}})]})}},72774:function(e,a,t){t.d(a,{Z:function(){return r}});var s=t(24246),i=t(13577),n=e=>{let{title:a,description:t,button:n}=e;return(0,s.jsxs)(i.Ugi,{backgroundColor:"gray.50",border:"1px solid",borderColor:"blue.400",borderRadius:"md",justifyContent:"space-between",py:4,px:6,"data-testid":"empty-state",children:[(0,s.jsx)(i.iid,{alignSelf:"start",color:"blue.400",mt:.5}),(0,s.jsxs)(i.xuv,{flexGrow:1,children:[(0,s.jsx)(i.xvT,{fontWeight:"bold",fontSize:"sm",mb:1,children:a}),(0,s.jsx)(i.xvT,{fontSize:"sm",color:"gray.600",lineHeight:"5",children:t})]}),n]})},r=()=>(0,s.jsx)(i.xuv,{mb:"6",maxW:"720px","data-testid":"locked-for-GVL-notice",children:(0,s.jsx)(n,{title:"This system is part of the TCF Global Vendor List (GVL)",description:(0,s.jsxs)(s.Fragment,{children:["As a result, the system fields are not editable as they come directly from Fides Compass and the Global Vendor List (GVL). In some cases where the legal basis has been declared to be flexible, you may update the legal basis for particular data uses."," ",(0,s.jsx)(i.rUS,{href:"https://fid.es/tcf_gvl",isExternal:!0,color:"complimentary.500",children:"For more information on the Global Vendor List, click here."})]})})})},69525:function(e,a,t){t.d(a,{U:function(){return s}});let s=e=>{let a=e.data_categories.flatMap(e=>e.split(","));return{data_use:e.data_use,data_categories:a,features:e.features,legal_basis_for_processing:e.legal_basis_for_processing,flexible_legal_basis_for_processing:e.flexible_legal_basis_for_processing,retention_period:e.retention_period?e.retention_period:""}}}}]);
1
+ "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3923],{23923:function(e,a,t){t.d(a,{Z:function(){return G}});var s=t(24246),i=t(13577),n=t(34090),r=t(27378),o=t(55484),l=t(16134),d=t(25980),c=t(40324),u=t(33335),p=t(32885),m=t(1315),_=t(57865),g=t(72774),v=t(36345),f=t(812),h=t(8133),y=t(46628);let b={name:"",consent_use:"",data_use:"",data_categories:["user"]},x=[{label:"Analytics",value:"analytics",description:"Provides analytics for activities such as system and advertising performance reporting, insights and fraud detection."},{label:"Essential",value:"essential",description:"Operates the service or product, including legal obligations, support and basic system operations."},{label:"Functional",value:"functional",description:"Used for specific, necessary, and legitimate purposes."},{label:"Marketing",value:"marketing",description:"Enables marketing, promotion, advertising and sales activities for the product, service, application or system."}],j=e=>x.some(a=>a.value===e.split(".")[0]);var k=t(28079),C=t(69525),w=t(97181);let V=e=>{let{index:a,disabled:t}=e;(0,k.fd)();let r=(0,l.C)(k.oW),{values:o}=(0,n.u6)(),d=r.filter(e=>e.value.split(".")[0]===o.privacy_declarations[a].consent_use);return(0,s.jsxs)(i.gCW,{width:"100%",borderRadius:"4px",border:"1px solid",borderColor:"gray.200",spacing:4,p:4,children:[(0,s.jsx)(w.d,{label:"Consent category",tooltip:"What is the system using the data for. For example, is it for third party advertising or perhaps simply providing system operations.",name:"privacy_declarations.".concat(a,".consent_use"),options:x,layout:"stacked",isRequired:!0,disabled:t}),(0,s.jsx)(w.d,{allowClear:!0,label:"Detailed consent category (optional)",tooltip:"Select a more specific consent category",name:"privacy_declarations.".concat(a,".data_use"),options:d,layout:"stacked",disabled:!o.privacy_declarations[a].consent_use||t}),(0,s.jsx)(w.d,{mode:"tags",label:"Cookie names",name:"privacy_declarations.".concat(a,".cookieNames"),options:[],layout:"stacked",disabled:t,className:"w-full"})]})};var F=e=>{var a,t;let{showSuggestions:o,isCreate:d,disabled:c}=e,{values:u,setFieldValue:m}=(0,n.u6)(),{vendor_id:_}=u,{isLoading:g}=(0,p.Wp)({vendor_id:_},{skip:!o||null==_}),v=(0,l.C)((0,p.cL)(_||""));(0,r.useEffect)(()=>{o&&u.vendor_id&&(null==v?void 0:v.length)?m("privacy_declarations",v.filter(e=>j(e.data_use)).map(e=>(0,C.U)(e)).map(e=>{var a;return{name:null!==(a=e.name)&&void 0!==a?a:"",consent_use:e.data_use.split(".")[0],data_use:e.data_use,data_categories:e.data_categories}})):d&&m("privacy_declarations",[b])},[o,d,u.vendor_id,v,m]);let f=(null===(a=u.privacy_declarations[u.privacy_declarations.length-1])||void 0===a?void 0:a.data_use)===b.data_use&&(null===(t=u.privacy_declarations[u.privacy_declarations.length-1])||void 0===t?void 0:t.consent_use)===b.consent_use;return g?(0,s.jsx)(i.$jN,{size:"sm",alignSelf:"center"}):(0,s.jsx)(n.F2,{name:"privacy_declarations",render:e=>(0,s.jsxs)(s.Fragment,{children:[u.privacy_declarations.map((e,a)=>(0,s.jsx)(V,{index:a,disabled:c},e.data_use||a)),(0,s.jsx)(i.wpx,{onClick:()=>e.push(b),size:"small",type:"text",disabled:c||f,"data-testid":"add-data-use-btn",children:"Add data use +"})]})})};let S={name:"",vendor_id:void 0,privacy_declarations:[b]};var G=e=>{let{buttonLabel:a,onButtonClick:t,buttonProps:x}=e,j=(0,i.pmc)(),{isOpen:k,onOpen:C,onClose:w}=(0,i.qY0)(),V=(0,l.T)(),[G]=(0,m.in)(),L=(0,r.useMemo)(()=>o.Ry().shape({name:o.Z_().required().label("Vendor name").test("is-unique","",async(e,a)=>{let{data:t}=await G({page:1,size:10,search:e});return!((null==t?void 0:t.items)||[]).some(a=>a.name===e)||a.createError({message:'You already have a vendor called "'.concat(e,'". Please specify a unique name for this vendor.')})})}),[G]),{tcf:E,dictionaryService:R}=(0,d.hz)(),{isLoading:W}=(0,p.Rd)(void 0,{skip:!R}),q=(0,l.C)(p.o),z=(0,l.C)(_.gU),[N]=(0,m.f7)(),T=(0,l.C)(_.bN),U=()=>{w(),V((0,_.b3)("initial")),V((0,_.gQ)(!1))},Z=(0,r.useRef)(null),A=Z.current?Z.current.values.vendor_id:void 0,M=(0,l.C)((0,p.$e)(A||"")),Q=async(e,a)=>{let t=e.privacy_declarations.filter(e=>e.consent_use!==b.consent_use).flatMap(e=>{let{consent_use:a,...t}=e;return"marketing"!==e.consent_use||e.data_use?{...t,data_use:e.data_use?e.data_use:e.consent_use}:["marketing.advertising.first_party.targeted","marketing.advertising.third_party.targeted"].map(e=>({...t,data_use:e}))}),s={...M,...e,fides_key:(0,u.E)(e.name),system_type:"",privacy_declarations:t},i=await N(s);if((0,f.D4)(i)){j((0,y.Vo)((0,f.e$)(i.error)));return}j((0,y.t5)("Vendor successfully created!")),a.resetForm(),U()},D=e=>{if(R){if(!e){V((0,_.b3)("hiding")),V((0,_.gQ)(!1));return}V((0,_.b3)("showing")),E&&(0,f.cj)(e)===f.c6.GVL?V((0,_.gQ)(!0)):V((0,_.gQ)(!1))}};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(i.wpx,{onClick:()=>{t?t():C()},"data-testid":"add-vendor-btn",...x,children:a}),(0,s.jsx)(n.J9,{initialValues:S,enableReinitialize:!0,onSubmit:Q,validationSchema:L,innerRef:Z,children:e=>{let{dirty:a,isValid:t,resetForm:r}=e;return(0,s.jsx)(h.Z,{isOpen:k,onClose:U,title:"Add a vendor",children:(0,s.jsxs)(i.xuv,{"data-testid":"add-vendor-modal-content",my:4,children:[z?(0,s.jsx)(g.Z,{}):null,(0,s.jsx)(n.l0,{children:(0,s.jsxs)(i.gCW,{alignItems:"start",spacing:6,children:[R?(0,s.jsx)(v.Z,{label:"Vendor name",options:q,isLoading:W,onVendorSelected:D,isCreate:!0,lockedForGVL:z}):(0,s.jsx)(c.j0,{id:"name",name:"name",isRequired:!0,label:"Vendor name",tooltip:"Give the system a unique, and relevant name for reporting purposes. e.g. “Email Data Warehouse”",variant:"stacked"}),(0,s.jsx)(F,{showSuggestions:"showing"===T,isCreate:!0,disabled:z}),(0,s.jsxs)("div",{className:"flex w-full justify-between",children:[(0,s.jsx)(i.wpx,{onClick:()=>{U(),r()},children:"Cancel"}),(0,s.jsx)(i.wpx,{type:"primary",htmlType:"submit",disabled:W||!a||!t,loading:W,"data-testid":"save-btn",children:"Save vendor"})]})]})})]})})}})]})}},72774:function(e,a,t){t.d(a,{Z:function(){return r}});var s=t(24246),i=t(13577),n=e=>{let{title:a,description:t,button:n}=e;return(0,s.jsxs)(i.Ugi,{backgroundColor:"gray.50",border:"1px solid",borderColor:"blue.400",borderRadius:"md",justifyContent:"space-between",py:4,px:6,"data-testid":"empty-state",children:[(0,s.jsx)(i.iid,{alignSelf:"start",color:"blue.400",mt:.5}),(0,s.jsxs)(i.xuv,{flexGrow:1,children:[(0,s.jsx)(i.xvT,{fontWeight:"bold",fontSize:"sm",mb:1,children:a}),(0,s.jsx)(i.xvT,{fontSize:"sm",color:"gray.600",lineHeight:"5",children:t})]}),n]})},r=()=>(0,s.jsx)(i.xuv,{mb:"6",maxW:"720px","data-testid":"locked-for-GVL-notice",children:(0,s.jsx)(n,{title:"This system is part of the TCF Global Vendor List (GVL)",description:(0,s.jsxs)(s.Fragment,{children:["As a result, certain fields are not editable as they come directly from Fides Compass and the Global Vendor List (GVL). In some cases, where the legal basis has been declared to be flexible, you may update the legal basis for particular data uses."," ",(0,s.jsx)(i.rUS,{href:"https://fid.es/tcf_gvl",isExternal:!0,color:"complimentary.500",children:"For more information on the Global Vendor List, click here."})]})})})},69525:function(e,a,t){t.d(a,{U:function(){return s}});let s=e=>{let a=e.data_categories.flatMap(e=>e.split(","));return{data_use:e.data_use,data_categories:a,features:e.features,legal_basis_for_processing:e.legal_basis_for_processing,flexible_legal_basis_for_processing:e.flexible_legal_basis_for_processing,retention_period:e.retention_period?e.retention_period:""}}}}]);
@@ -1 +1 @@
1
- "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4230],{58754:function(e,t,a){var i=a(24246),s=a(13577),n=a(70788);t.Z=e=>{let{heading:t,breadcrumbItems:a,isSticky:r=!0,children:l,rightContent:d,style:o,...c}=e;return(0,i.jsxs)("div",{...c,style:r?{position:"sticky",top:"-24px",paddingTop:"24px",paddingBottom:"24px",paddingLeft:"40px",marginLeft:"-40px",paddingRight:"40px",marginRight:"-40px",marginTop:"-24px",left:0,zIndex:20,backgroundColor:"white",...o}:{paddingBottom:"24px",...o},children:[(0,i.jsxs)(s.jqI,{justify:"space-between",children:["string"==typeof t?(0,i.jsx)(s.lQT,{className:a||l?"pb-4":void 0,level:1,"data-testid":"page-heading",children:t}):t,d&&(0,i.jsx)("div",{"data-testid":"page-header-right-content",children:d})]}),!!a&&(0,i.jsx)(n.m,{className:l?"pb-4":void 0,items:a,"data-testid":"page-breadcrumb"}),l]})}},97181:function(e,t,a){a.d(t,{d:function(){return o}});var i=a(24246),s=a(13577),n=a(34090),r=a(27378),l=a(46238),d=a(40324);let o=e=>{let{name:t,label:a,labelProps:o,tooltip:c,isRequired:u,layout:m="inline",helperText:p,...x}=e,[h,y,{setValue:g}]=(0,n.U$)(t),j=!!(y.touched&&y.error),[v,b]=(0,r.useState)("");h.value||"tags"!==x.mode&&"multiple"!==x.mode||(h.value=[]),"tags"===x.mode&&"string"==typeof h.value&&(h.value=[h.value]);let f="tags"===x.mode?(e,t)=>e?e.value!==v||h.value.includes(v)?x.optionRender?x.optionRender(e,t):e.label:'Create "'.concat(v,'"'):void 0:x.optionRender||void 0,_=e=>{b(e),x.onSearch&&x.onSearch(e)},k=(e,t)=>{g(e),x.onChange&&x.onChange(e,t)};return"inline"===m?(0,i.jsx)(s.NIc,{isInvalid:j,isRequired:u,children:(0,i.jsxs)(s.rjZ,{templateColumns:a?"1fr 3fr":"1fr",children:[a?(0,i.jsx)(d.__,{htmlFor:x.id||t,...o,children:a}):null,(0,i.jsxs)(s.jqI,{align:"center",children:[(0,i.jsxs)(s.jqI,{vertical:!0,flex:1,className:"mr-2",children:[(0,i.jsx)(s.WPr,{...h,id:x.id||t,"data-testid":"controlled-select-".concat(h.name),...x,optionRender:f,onSearch:"tags"===x.mode?_:void 0,onChange:k,value:h.value||void 0,status:j?"error":void 0}),p&&(0,i.jsx)(s.Q6r,{children:p}),(0,i.jsx)(d.Bc,{isInvalid:j,message:y.error,fieldName:h.name})]}),(0,i.jsx)(l.b,{label:c,className:j?"mt-2 self-start":void 0})]})]})}):(0,i.jsx)(s.NIc,{isInvalid:j,isRequired:u,children:(0,i.jsxs)(s.gCW,{alignItems:"start",children:[(0,i.jsxs)(s.jqI,{align:"center",children:[a?(0,i.jsx)(d.__,{htmlFor:x.id||t,fontSize:"xs",my:0,mr:1,...o,children:a}):null,(0,i.jsx)(l.b,{label:c})]}),(0,i.jsx)(s.WPr,{...h,id:x.id||t,"data-testid":"controlled-select-".concat(h.name),...x,optionRender:f,onSearch:"tags"===x.mode?_:void 0,onChange:k,value:h.value||void 0,status:j?"error":void 0}),p&&(0,i.jsx)(s.Q6r,{style:{marginTop:0},children:p}),(0,i.jsx)(d.Bc,{isInvalid:j,message:y.error,fieldName:h.name})]})})}},70788:function(e,t,a){a.d(t,{m:function(){return o}});var i=a(24246),s=a(13577),n=a(79894),r=a.n(n),l=a(27378);let{Text:d}=s.AntTypography,o=e=>{let{items:t,...a}=e,n=(0,l.useMemo)(()=>null==t?void 0:t.map((e,a)=>{let n=a===t.length-1,l={...e},o=l.onClick&&!l.href;return("string"==typeof l.title&&(l.title=(0,i.jsx)(d,{style:{color:"inherit",maxWidth:n?void 0:400},ellipsis:!n,children:l.title})),o)?l.title=(0,i.jsx)(s.wpx,{type:"text",size:"small",icon:l.icon,onClick:l.onClick,className:"ant-breadcrumb-link -mt-px px-1 text-inherit",children:l.title}):(l.icon&&(l.title=(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("span",{className:"anticon align-text-bottom",children:l.icon}),l.title]})),l.href&&l.title&&(l.title=(0,i.jsx)(r(),{href:l.href,className:"ant-breadcrumb-link",children:l.title}),delete l.href)),l}),[t]);return(0,i.jsx)(s.zrq,{items:n,...a})}},35258:function(e,t,a){a.d(t,{Z:function(){return q}});var i=a(24246),s=a(84720),n=a(13577),r=a(27378),l=a(52368),d=a(812),o=a(46628),c=a(65450),u=a(31883),m=a(34090),p=a(45938),x=a(95346),h=a(55484),y=a(97181),g=a(40324),j=a(73825);let v=h.Ry().shape({data_categories:h.IX(h.Z_()).min(1,"Must assign at least one data category").label("Data categories"),data_use:h.Z_().required().label("Data use"),data_subjects:h.IX(h.Z_()).min(1,"Must assign at least one data subject").label("Data subjects")}),b={data_categories:[],data_subjects:[],data_use:"",dataset_references:[],customFieldValues:{},id:""},f=e=>{var t;let{customFieldValues:a,...i}=e;return{...i,name:null!==(t=e.name)&&void 0!==t?t:""}},_=e=>{let{allDataUses:t,allDataCategories:a,allDataSubjects:s,allDatasets:r,privacyDeclarationId:l,includeCustomFields:d}=e,o=r?r.map(e=>{var t;return{label:null!==(t=e.name)&&void 0!==t?t:e.fides_key,value:e.fides_key}}):[];return(0,i.jsxs)(n.Kqy,{spacing:4,children:[(0,i.jsx)(y.d,{id:"data_use",label:"Data use",name:"data_use",options:t.map(e=>({value:e.fides_key,label:e.fides_key})),tooltip:"What is the system using the data for. For example, is it for third party advertising or perhaps simply providing system operations.",layout:"stacked",disabled:!!l}),(0,i.jsx)(g.j0,{id:"name",label:"Processing Activity",name:"name",variant:"stacked",tooltip:"The personal data processing activity or activities associated with this data use.",disabled:!!l}),(0,i.jsx)(y.d,{name:"data_categories",label:"Data categories",options:a.map(e=>({value:e.fides_key,label:e.fides_key})),tooltip:"What type of data is your system processing? This could be various types of user or system data.",mode:"multiple",layout:"stacked",disabled:!0}),(0,i.jsx)(y.d,{name:"data_subjects",label:"Data subjects",options:s.map(e=>({value:e.fides_key,label:e.fides_key})),tooltip:"Whose data are you processing? This could be customers, employees or any other type of user in your system.",mode:"multiple",layout:"stacked",disabled:!0}),r?(0,i.jsx)(y.d,{name:"dataset_references",label:"Dataset references",options:o,tooltip:"Referenced Dataset fides keys used by the system.",mode:"multiple",layout:"stacked"}):null,d?(0,i.jsx)(x.uc,{resourceType:j.P6.PRIVACY_DECLARATION,resourceFidesKey:l}):null]})},k=(e,t)=>e?{...e,customFieldValues:t||{}}:b,C=e=>{let{onSubmit:t,initialValues:a,allDataUses:s,privacyDeclarationId:l}=e,{customFieldValues:d,upsertCustomFields:o}=(0,x.mZ)({resourceType:j.P6.PRIVACY_DECLARATION,resourceFidesKey:l}),c=(0,r.useMemo)(()=>k(a,d),[a,d]),[u,m]=(0,r.useState)(!1),p=(0,r.useMemo)(()=>{let e=s.filter(e=>e.fides_key===c.data_use)[0];if(e)return c.name?"".concat(e.name," - ").concat(c.name):e.name},[s,c]);return{handleSubmit:async(e,a)=>{let{customFieldValues:i}=e,s=f(e),n=await t(s,a);if(n){let t=n.filter(t=>t.data_use===e.data_use&&(!t.name||t.name===e.name));t.length>0&&await o({customFieldValues:i,fides_key:t[0].id}),a.resetForm({values:e}),m(!0)}},renderHeader:e=>{let{dirty:t,boxProps:a,hideSaved:s}=e;return(0,i.jsxs)(n.xuv,{display:"flex",alignItems:"center",justifyContent:"space-between",...a,children:[p?(0,i.jsx)(n.X6q,{as:"h4",size:"xs",fontWeight:"medium",mr:4,children:p}):null,!s&&u&&!t&&c.data_use?(0,i.jsxs)(n.xvT,{fontSize:"sm","data-testid":"saved-indicator",children:[(0,i.jsx)(n.StI,{})," Saved"]}):null]})},initialValues:c}},w=e=>{let{onSubmit:t,initialValues:a,onDelete:s,...r}=e,{handleSubmit:l,renderHeader:d,initialValues:o}=C({onSubmit:t,initialValues:a,allDataUses:r.allDataUses,privacyDeclarationId:null==a?void 0:a.id});return(0,i.jsx)(m.J9,{enableReinitialize:!0,initialValues:o,onSubmit:l,validationSchema:v,children:e=>{let{dirty:t}=e;return(0,i.jsxs)(m.l0,{children:[(0,i.jsx)(p.Gt,{id:"PrivacyDeclaration",name:"New Privacy Declaration"}),(0,i.jsxs)(n.Kqy,{spacing:4,children:[(0,i.jsx)(n.xuv,{"data-testid":"header",children:d({dirty:t})}),(0,i.jsx)(_,{onDelete:s,...r})]})]})}})},S=e=>{let{privacyDeclaration:t,onEdit:a,onDelete:s,includeCustomFields:r,...l}=e,{initialValues:d,renderHeader:o,handleSubmit:c}=C({initialValues:t,onSubmit:e=>a(t,e),privacyDeclarationId:t.id,...l});return(0,i.jsx)(n.Qdk,{children:e=>{let{isExpanded:a}=e;return(0,i.jsx)(m.J9,{enableReinitialize:!0,initialValues:d,onSubmit:c,validationSchema:v,children:e=>{let{dirty:d}=e;return(0,i.jsxs)(m.l0,{"data-testid":"".concat(t.data_use,"-form"),children:[(0,i.jsx)(p.Gt,{id:"".concat(t.id,"-form"),name:t.id}),(0,i.jsxs)(n.KFZ,{py:4,borderBottomWidth:a?"0px":"1px",backgroundColor:a?"gray.50":void 0,"data-testid":"accordion-header-".concat(t.data_use),children:[o({dirty:d,boxProps:{flex:"1",textAlign:"left"},hideSaved:!a}),(0,i.jsx)(n.XEm,{})]}),(0,i.jsx)(n.Hk3,{backgroundColor:"gray.50",pt:0,children:(0,i.jsx)(n.Kqy,{spacing:4,children:(0,i.jsx)(_,{privacyDeclarationId:t.id,onDelete:s,includeCustomFields:r,...l})})})]})}})}})};var D=e=>{let{privacyDeclarations:t,...a}=e;return(0,i.jsx)(n.UQy,{allowToggle:!0,border:"transparent","data-testid":"privacy-declaration-accordion",children:t.map(e=>(0,i.jsx)(S,{privacyDeclaration:e,...a},e.id))})},I=e=>{let{system:t,includeCustomFields:a,onSave:s,...l}=e,m=(0,n.pmc)(),[p]=(0,c.qQ)(),[x,h]=(0,r.useState)(!1),[y,g]=(0,r.useState)(void 0),j=(0,r.useMemo)(()=>y?t.privacy_declarations.filter(e=>e.id!==y.id):t.privacy_declarations,[y,t]),v=e=>j.filter(t=>t.data_use===e.data_use&&t.name===e.name).length>0&&(m((0,o.Vo)("A declaration already exists with that data use in this system. Please supply a different data use.")),!0),b=async(e,a)=>{let i=e.map(e=>{var t;return{...e,name:null!==(t=e.name)&&void 0!==t?t:""}}),n={...t,privacy_declarations:i};return(e=>{if((0,u.D4)(e)){let t=(0,d.e$)(e.error,"An unexpected error occurred while updating the system. Please try again.");m((0,o.Vo)(t));return}return m.closeAll(),m((0,o.t5)(a?"Data use deleted":"Data use saved")),s&&s(e.data),e.data.privacy_declarations})(await p(n))},f=async(e,a)=>{if(!(a.id!==e.id&&v(a)))return b(t.privacy_declarations.map(t=>t.id===e.id?a:t))},_=async e=>{if(v(e))return;m.closeAll();let t=[...j,e],a=await b(t);return a&&g(a.filter(t=>(!t.name||t.name===e.name)&&t.data_use===e.data_use)[0]),a},k=async e=>b(t.privacy_declarations.filter(t=>t.id!==e.id),!0),C=async e=>{let t=await k(e);return t&&(h(!1),g(void 0)),t};return(0,r.useEffect)(()=>{h(!1)},[t.fides_key]),(0,i.jsxs)(n.Kqy,{spacing:3,children:[(0,i.jsx)(D,{privacyDeclarations:j,onEdit:f,onDelete:k,includeCustomFields:a,...l}),x?(0,i.jsx)(n.xuv,{backgroundColor:"gray.50",p:4,"data-testid":"new-declaration-form",children:(0,i.jsx)(w,{initialValues:y,onSubmit:_,onDelete:C,includeCustomFields:a,...l})}):null,0===t.privacy_declarations.length?(0,i.jsx)(n.xvT,{fontSize:"sm",lineHeight:5,fontWeight:"medium",pl:2,children:"No data uses"}):null]})},T=a(19043);let R=e=>{let[t]=(0,c.dB)(),a=(0,n.pmc)();return{handleUpsertSystem:async(i,s)=>{let n=[{...e,name:i.name,description:i.description}],r=await t(n);(0,T.D4)(r)?a((0,o.Vo)((0,d.e$)(r.error))):(a((0,o.t5)("Successfully saved system info")),s.resetForm({values:i}))},validationSchema:h.Ry().shape({name:h.Z_().required().label("Name"),description:h.Z_().required().label("Description")})}},N={name:"",description:""};var V=e=>{let{system:t}=e,a="/systems/configure/".concat(t.fides_key),{handleUpsertSystem:s,validationSchema:r}=R(t);return(0,i.jsxs)(n.xuv,{children:[(0,i.jsxs)(n.kCb,{alignItems:"center",children:[(0,i.jsx)(n.xvT,{color:"gray.600",size:"md",lineHeight:6,fontWeight:"semibold",marginBottom:2,children:"System details"}),(0,i.jsx)(n.LZC,{}),(0,i.jsxs)(n._pl,{color:"complimentary.500",href:a,children:["View more",(0,i.jsx)(n.h0n,{ml:2})]})]}),(0,i.jsx)(n.xuv,{width:"100%",padding:4,borderTop:"1px solid",borderColor:"gray.200",children:(0,i.jsx)(m.J9,{enableReinitialize:!0,initialValues:null!=t?t:N,validationSchema:r,onSubmit:s,children:e=>{let{isSubmitting:t,dirty:a,isValid:s}=e;return(0,i.jsxs)(m.l0,{children:[(0,i.jsx)(p.Gt,{id:"SystemInfoDrawer",name:"System Info"}),(0,i.jsx)(n.xuv,{marginTop:3,children:(0,i.jsx)(g.j0,{label:"System name",name:"name",variant:"stacked"})}),(0,i.jsx)(n.xuv,{marginTop:3,children:(0,i.jsx)(g.Ks,{label:"System description",name:"description",variant:"stacked"})}),(0,i.jsx)(n.kCb,{marginTop:6,justifyContent:"flex-end",children:(0,i.jsx)(n.wpx,{htmlType:"submit",disabled:!a||!s,loading:t,type:"primary",children:"Save"})})]})}})})]})},q=e=>{var t;let{selectedSystemId:a,resetSelectedSystemId:d}=e,o=(0,r.useMemo)(()=>!!a,[a]),{isLoading:u,...m}=(0,l.f)({includeDatasets:!1,includeDisabled:!1}),{data:p}=(0,c.rn)(a,{skip:!a});return(0,i.jsx)(n.xuv,{position:"absolute",pointerEvents:"none",top:0,left:0,right:0,bottom:0,overflow:"hidden",children:(0,i.jsx)(n.Mi4,{transition:{enter:{ease:"easeInOut",duration:.5},exit:{ease:"easeInOut",duration:.5}},direction:"right",in:o,unmountOnExit:!0,style:{zIndex:11,pointerEvents:"none",position:"absolute"},children:(0,i.jsxs)(n.xuv,{position:"absolute",right:"0px",height:"100%",width:"100%",maxWidth:"480px",pointerEvents:"auto",borderWidth:0,boxShadow:"0px 20px 25px -5px rgba(0, 0, 0, 0.1), 0px 10px 10px -5px rgba(0, 0, 0, 0.04)",display:a?"unset":"none",backgroundColor:"white","data-testid":"datamap-drawer",children:[(0,i.jsx)(n.xuv,{id:"drawer-header",borderBottomWidth:1,paddingX:6,paddingY:3,children:(0,i.jsxs)(n.kCb,{children:[(0,i.jsx)(n.kCb,{justifyContent:"space-between",alignItems:"center",height:"40px",children:(0,i.jsx)(n.xvT,{fontWeight:"semibold",fontSize:"lg",lineHeight:"7",color:"gray.900",children:null!==(t=null==p?void 0:p.name)&&void 0!==t?t:"System Information"})}),(0,i.jsx)(n.LZC,{}),(0,i.jsx)(n.kCb,{alignItems:"center",children:(0,i.jsx)(n.wpx,{icon:(0,i.jsx)(n.Two,{}),"aria-label":"Close error message",type:"text",onClick:d,"data-testid":"datamap-drawer-close"})})]})}),(0,i.jsx)(n.xuv,{id:"drawer-body",height:"calc(100% - 46px)",overflowY:"auto",padding:6,style:{scrollbarGutter:"stable"},children:p?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(V,{system:p}),(0,i.jsx)(n.xvT,{size:"md",color:"gray.600",lineHeight:6,fontWeight:"semibold",mt:"10px",mb:2,children:"Data uses"}),(0,i.jsx)(n.xuv,{borderTop:"1px solid",borderColor:"gray.200",children:(0,i.jsx)(n.xuv,{pb:3,children:(0,i.jsx)(I,{system:p,...m})})}),(0,i.jsx)(n.xvT,{size:"md",color:"gray.600",lineHeight:6,fontWeight:"semibold",mt:"10px",mb:2,paddingBottom:2,children:"Data flow"}),(0,i.jsx)(s.q,{system:p})]}):null})]})})})}}}]);
1
+ "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4230],{58754:function(e,t,a){var i=a(24246),s=a(13577),n=a(70788);t.Z=e=>{let{heading:t,breadcrumbItems:a,isSticky:l=!0,children:r,rightContent:d,style:o,...c}=e;return(0,i.jsxs)("div",{...c,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",...o}:{paddingBottom:"24px",...o},children:[(0,i.jsxs)(s.jqI,{justify:"space-between",children:["string"==typeof t?(0,i.jsx)(s.lQT,{className:a||r?"pb-4":void 0,level:1,"data-testid":"page-heading",children:t}):t,d&&(0,i.jsx)("div",{"data-testid":"page-header-right-content",children:d})]}),!!a&&(0,i.jsx)(n.m,{className:r?"pb-4":void 0,items:a,"data-testid":"page-breadcrumb"}),r]})}},97181:function(e,t,a){a.d(t,{d:function(){return o}});var i=a(24246),s=a(13577),n=a(34090),l=a(27378),r=a(46238),d=a(40324);let o=e=>{let{name:t,label:a,labelProps:o,tooltip:c,isRequired:u,layout:m="inline",helperText:p,...x}=e,[h,y,{setValue:g}]=(0,n.U$)(t),v=!!(y.touched&&y.error),[j,b]=(0,l.useState)("");h.value||"tags"!==x.mode&&"multiple"!==x.mode||(h.value=[]),"tags"===x.mode&&"string"==typeof h.value&&(h.value=[h.value]);let f="tags"===x.mode?(e,t)=>e?e.value!==j||h.value.includes(j)?x.optionRender?x.optionRender(e,t):e.label:'Create "'.concat(j,'"'):void 0:x.optionRender||void 0,_=e=>{b(e),x.onSearch&&x.onSearch(e)},k=(e,t)=>{g(e),x.onChange&&x.onChange(e,t)};return"inline"===m?(0,i.jsx)(s.NIc,{isInvalid:v,isRequired:u,children:(0,i.jsxs)(s.rjZ,{templateColumns:a?"1fr 3fr":"1fr",children:[a?(0,i.jsx)(d.__,{htmlFor:x.id||t,...o,children:a}):null,(0,i.jsxs)(s.jqI,{align:"center",children:[(0,i.jsxs)(s.jqI,{vertical:!0,flex:1,className:"mr-2",children:[(0,i.jsx)(s.WPr,{...h,id:x.id||t,"data-testid":"controlled-select-".concat(h.name),...x,optionRender:f,onSearch:"tags"===x.mode?_:void 0,onChange:k,value:h.value||void 0,status:v?"error":void 0}),p&&(0,i.jsx)(s.Q6r,{children:p}),(0,i.jsx)(d.Bc,{isInvalid:v,message:y.error,fieldName:h.name})]}),(0,i.jsx)(r.b,{label:c,className:v?"mt-2 self-start":void 0})]})]})}):(0,i.jsx)(s.NIc,{isInvalid:v,isRequired:u,children:(0,i.jsxs)(s.gCW,{alignItems:"start",children:[(0,i.jsxs)(s.jqI,{align:"center",children:[a?(0,i.jsx)(d.__,{htmlFor:x.id||t,fontSize:"xs",my:0,mr:1,...o,children:a}):null,(0,i.jsx)(r.b,{label:c})]}),(0,i.jsx)(s.WPr,{...h,id:x.id||t,"data-testid":"controlled-select-".concat(h.name),...x,optionRender:f,onSearch:"tags"===x.mode?_:void 0,onChange:k,value:h.value||void 0,status:v?"error":void 0}),p&&(0,i.jsx)(s.Q6r,{style:{marginTop:0},children:p}),(0,i.jsx)(d.Bc,{isInvalid:v,message:y.error,fieldName:h.name})]})})}},70788:function(e,t,a){a.d(t,{m:function(){return o}});var i=a(24246),s=a(13577),n=a(79894),l=a.n(n),r=a(27378);let{Text:d}=s.AntTypography,o=e=>{let{items:t,...a}=e,n=(0,r.useMemo)(()=>null==t?void 0:t.map((e,a)=>{let n=a===t.length-1,r={...e},o=r.onClick&&!r.href;return("string"==typeof r.title&&(r.title=(0,i.jsx)(d,{style:{color:"inherit",maxWidth:n?void 0:400},ellipsis:!n,children:r.title})),o)?r.title=(0,i.jsx)(s.wpx,{type:"text",size:"small",icon:r.icon,onClick:r.onClick,className:"ant-breadcrumb-link -mt-px px-1 text-inherit",children:r.title}):(r.icon&&(r.title=(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("span",{className:"anticon align-text-bottom",children:r.icon}),r.title]})),r.href&&r.title&&(r.title=(0,i.jsx)(l(),{href:r.href,className:"ant-breadcrumb-link",children:r.title}),delete r.href)),r}),[t]);return(0,i.jsx)(s.zrq,{items:n,...a})}},35258:function(e,t,a){a.d(t,{Z:function(){return q}});var i=a(24246),s=a(84720),n=a(13577),l=a(27378),r=a(52368),d=a(812),o=a(46628),c=a(65450),u=a(31883),m=a(34090),p=a(45938),x=a(95346),h=a(55484),y=a(97181),g=a(40324),v=a(73825);let j=h.Ry().shape({data_categories:h.IX(h.Z_()).min(1,"Must assign at least one data category").label("Data categories"),data_use:h.Z_().required().label("Data use"),data_subjects:h.IX(h.Z_()).min(1,"Must assign at least one data subject").label("Data subjects")}),b={data_categories:[],data_subjects:[],data_use:"",dataset_references:[],customFieldValues:{},id:""},f=e=>{var t;let{customFieldValues:a,...i}=e;return{...i,name:null!==(t=e.name)&&void 0!==t?t:""}},_=e=>{let{allDataUses:t,allDataCategories:a,allDataSubjects:s,allDatasets:l,privacyDeclarationId:r,includeCustomFields:d}=e,o=l?l.map(e=>{var t;return{label:null!==(t=e.name)&&void 0!==t?t:e.fides_key,value:e.fides_key}}):[];return(0,i.jsxs)(n.Kqy,{spacing:4,children:[(0,i.jsx)(y.d,{id:"data_use",label:"Data use",name:"data_use",options:t.map(e=>({value:e.fides_key,label:e.fides_key})),tooltip:"What is the system using the data for. For example, is it for third party advertising or perhaps simply providing system operations.",layout:"stacked",disabled:!!r}),(0,i.jsx)(g.j0,{id:"name",label:"Processing Activity",name:"name",variant:"stacked",tooltip:"The personal data processing activity or activities associated with this data use.",disabled:!!r}),(0,i.jsx)(y.d,{name:"data_categories",label:"Data categories",options:a.map(e=>({value:e.fides_key,label:e.fides_key})),tooltip:"What type of data is your system processing? This could be various types of user or system data.",mode:"multiple",layout:"stacked",disabled:!0}),(0,i.jsx)(y.d,{name:"data_subjects",label:"Data subjects",options:s.map(e=>({value:e.fides_key,label:e.fides_key})),tooltip:"Whose data are you processing? This could be customers, employees or any other type of user in your system.",mode:"multiple",layout:"stacked",disabled:!0}),l?(0,i.jsx)(y.d,{name:"dataset_references",label:"Dataset references",options:o,tooltip:"Referenced Dataset fides keys used by the system.",mode:"multiple",layout:"stacked"}):null,d?(0,i.jsx)(x.uc,{resourceType:v.P6.PRIVACY_DECLARATION,resourceFidesKey:r}):null]})},k=(e,t)=>e?{...e,customFieldValues:t||{}}:b,C=e=>{let{onSubmit:t,initialValues:a,allDataUses:s,privacyDeclarationId:r}=e,{customFieldValues:d,upsertCustomFields:o}=(0,x.mZ)({resourceType:v.P6.PRIVACY_DECLARATION,resourceFidesKey:r}),c=(0,l.useMemo)(()=>k(a,d),[a,d]),[u,m]=(0,l.useState)(!1),p=(0,l.useMemo)(()=>{let e=s.filter(e=>e.fides_key===c.data_use)[0];if(e)return c.name?"".concat(e.name," - ").concat(c.name):e.name},[s,c]);return{handleSubmit:async(e,a)=>{let{customFieldValues:i}=e,s=f(e),n=await t(s,a);if(n){let t=n.filter(t=>t.data_use===e.data_use&&(!t.name||t.name===e.name));t.length>0&&await o({customFieldValues:i,fides_key:t[0].id}),a.resetForm({values:e}),m(!0)}},renderHeader:e=>{let{dirty:t,boxProps:a,hideSaved:s}=e;return(0,i.jsxs)(n.xuv,{display:"flex",alignItems:"center",justifyContent:"space-between",...a,children:[p?(0,i.jsx)(n.X6q,{as:"h4",size:"xs",fontWeight:"medium",mr:4,children:p}):null,!s&&u&&!t&&c.data_use?(0,i.jsxs)(n.xvT,{fontSize:"sm","data-testid":"saved-indicator",children:[(0,i.jsx)(n.StI,{})," Saved"]}):null]})},initialValues:c}},w=e=>{let{onSubmit:t,initialValues:a,onDelete:s,...l}=e,{handleSubmit:r,renderHeader:d,initialValues:o}=C({onSubmit:t,initialValues:a,allDataUses:l.allDataUses,privacyDeclarationId:null==a?void 0:a.id});return(0,i.jsx)(m.J9,{enableReinitialize:!0,initialValues:o,onSubmit:r,validationSchema:j,children:e=>{let{dirty:t}=e;return(0,i.jsxs)(m.l0,{children:[(0,i.jsx)(p.Gt,{id:"PrivacyDeclaration",name:"New Privacy Declaration"}),(0,i.jsxs)(n.Kqy,{spacing:4,children:[(0,i.jsx)(n.xuv,{"data-testid":"header",children:d({dirty:t})}),(0,i.jsx)(_,{onDelete:s,...l})]})]})}})},S=e=>{let{privacyDeclaration:t,onEdit:a,onDelete:s,includeCustomFields:l,...r}=e,{initialValues:d,renderHeader:o,handleSubmit:c}=C({initialValues:t,onSubmit:e=>a(t,e),privacyDeclarationId:t.id,...r});return(0,i.jsx)(n.Qdk,{children:e=>{let{isExpanded:a}=e;return(0,i.jsx)(m.J9,{enableReinitialize:!0,initialValues:d,onSubmit:c,validationSchema:j,children:e=>{let{dirty:d}=e;return(0,i.jsxs)(m.l0,{"data-testid":"".concat(t.data_use,"-form"),children:[(0,i.jsx)(p.Gt,{id:"".concat(t.id,"-form"),name:t.id}),(0,i.jsxs)(n.KFZ,{py:4,borderBottomWidth:a?"0px":"1px",backgroundColor:a?"gray.50":void 0,"data-testid":"accordion-header-".concat(t.data_use),children:[o({dirty:d,boxProps:{flex:"1",textAlign:"left"},hideSaved:!a}),(0,i.jsx)(n.XEm,{})]}),(0,i.jsx)(n.Hk3,{backgroundColor:"gray.50",pt:0,children:(0,i.jsx)(n.Kqy,{spacing:4,children:(0,i.jsx)(_,{privacyDeclarationId:t.id,onDelete:s,includeCustomFields:l,...r})})})]})}})}})};var D=e=>{let{privacyDeclarations:t,...a}=e;return(0,i.jsx)(n.UQy,{allowToggle:!0,border:"transparent","data-testid":"privacy-declaration-accordion",children:t.map(e=>(0,i.jsx)(S,{privacyDeclaration:e,...a},e.id))})},I=e=>{let{system:t,includeCustomFields:a,onSave:s,...r}=e,m=(0,n.pmc)(),[p]=(0,c.qQ)(),[x,h]=(0,l.useState)(!1),[y,g]=(0,l.useState)(void 0),v=(0,l.useMemo)(()=>y?t.privacy_declarations.filter(e=>e.id!==y.id):t.privacy_declarations,[y,t]),j=e=>v.filter(t=>t.data_use===e.data_use&&t.name===e.name).length>0&&(m((0,o.Vo)("A declaration already exists with that data use in this system. Please supply a different data use.")),!0),b=async(e,a)=>{let i=e.map(e=>{var t;return{...e,name:null!==(t=e.name)&&void 0!==t?t:""}}),n={...t,privacy_declarations:i};return(e=>{if((0,u.D4)(e)){let t=(0,d.e$)(e.error,"An unexpected error occurred while updating the system. Please try again.");m((0,o.Vo)(t));return}return m.closeAll(),m((0,o.t5)(a?"Data use deleted":"Data use saved")),s&&s(e.data),e.data.privacy_declarations})(await p(n))},f=async(e,a)=>{if(!(a.id!==e.id&&j(a)))return b(t.privacy_declarations.map(t=>t.id===e.id?a:t))},_=async e=>{if(j(e))return;m.closeAll();let t=[...v,e],a=await b(t);return a&&g(a.filter(t=>(!t.name||t.name===e.name)&&t.data_use===e.data_use)[0]),a},k=async e=>b(t.privacy_declarations.filter(t=>t.id!==e.id),!0),C=async e=>{let t=await k(e);return t&&(h(!1),g(void 0)),t};return(0,l.useEffect)(()=>{h(!1)},[t.fides_key]),(0,i.jsxs)(n.Kqy,{spacing:3,children:[(0,i.jsx)(D,{privacyDeclarations:v,onEdit:f,onDelete:k,includeCustomFields:a,...r}),x?(0,i.jsx)(n.xuv,{backgroundColor:"gray.50",p:4,"data-testid":"new-declaration-form",children:(0,i.jsx)(w,{initialValues:y,onSubmit:_,onDelete:C,includeCustomFields:a,...r})}):null,0===t.privacy_declarations.length?(0,i.jsx)(n.xvT,{fontSize:"sm",lineHeight:5,fontWeight:"medium",pl:2,children:"No data uses"}):null]})},T=a(19043);let R=e=>{let[t]=(0,c.dB)(),a=(0,n.pmc)();return{handleUpsertSystem:async(i,s)=>{let n=[{...e,name:i.name,description:i.description}],l=await t(n);(0,T.D4)(l)?a((0,o.Vo)((0,d.e$)(l.error))):(a((0,o.t5)("Successfully saved system info")),s.resetForm({values:i}))},validationSchema:h.Ry().shape({name:h.Z_().required().label("Name"),description:h.Z_().required().label("Description")})}},N={name:"",description:""};var V=e=>{let{system:t}=e,a="/systems/configure/".concat(t.fides_key),{handleUpsertSystem:s,validationSchema:l}=R(t);return(0,i.jsxs)(n.xuv,{children:[(0,i.jsxs)(n.kCb,{alignItems:"center",children:[(0,i.jsx)(n.xvT,{color:"gray.600",size:"md",lineHeight:6,fontWeight:"semibold",marginBottom:2,children:"System details"}),(0,i.jsx)(n.LZC,{}),(0,i.jsxs)(n._pl,{color:"complimentary.500",href:a,children:["View more",(0,i.jsx)(n.h0n,{ml:2})]})]}),(0,i.jsx)(n.xuv,{width:"100%",padding:4,borderTop:"1px solid",borderColor:"gray.200",children:(0,i.jsx)(m.J9,{enableReinitialize:!0,initialValues:null!=t?t:N,validationSchema:l,onSubmit:s,children:()=>(0,i.jsxs)(m.l0,{children:[(0,i.jsx)(p.Gt,{id:"SystemInfoDrawer",name:"System Info"}),(0,i.jsx)(n.xuv,{marginTop:3,children:(0,i.jsx)(g.j0,{label:"System name",name:"name",variant:"stacked",disabled:!0})}),(0,i.jsx)(n.xuv,{marginTop:3,children:(0,i.jsx)(g.Ks,{label:"System description",name:"description",variant:"stacked",disabled:!0})})]})})})]})},q=e=>{var t;let{selectedSystemId:a,resetSelectedSystemId:d}=e,o=(0,l.useMemo)(()=>!!a,[a]),{isLoading:u,...m}=(0,r.f)({includeDatasets:!1,includeDisabled:!1}),{data:p}=(0,c.rn)(a,{skip:!a});return(0,i.jsx)(n.xuv,{position:"absolute",pointerEvents:"none",top:0,left:0,right:0,bottom:0,overflow:"hidden",children:(0,i.jsx)(n.Mi4,{transition:{enter:{ease:"easeInOut",duration:.5},exit:{ease:"easeInOut",duration:.5}},direction:"right",in:o,unmountOnExit:!0,style:{zIndex:11,pointerEvents:"none",position:"absolute"},children:(0,i.jsxs)(n.xuv,{position:"absolute",right:"0px",height:"100%",width:"100%",maxWidth:"480px",pointerEvents:"auto",borderWidth:0,boxShadow:"0px 20px 25px -5px rgba(0, 0, 0, 0.1), 0px 10px 10px -5px rgba(0, 0, 0, 0.04)",display:a?"unset":"none",backgroundColor:"white","data-testid":"datamap-drawer",children:[(0,i.jsx)(n.xuv,{id:"drawer-header",borderBottomWidth:1,paddingX:6,paddingY:3,children:(0,i.jsxs)(n.kCb,{children:[(0,i.jsx)(n.kCb,{justifyContent:"space-between",alignItems:"center",height:"40px",children:(0,i.jsx)(n.xvT,{fontWeight:"semibold",fontSize:"lg",lineHeight:"7",color:"gray.900",children:null!==(t=null==p?void 0:p.name)&&void 0!==t?t:"System Information"})}),(0,i.jsx)(n.LZC,{}),(0,i.jsx)(n.kCb,{alignItems:"center",children:(0,i.jsx)(n.wpx,{icon:(0,i.jsx)(n.Two,{}),"aria-label":"Close error message",type:"text",onClick:d,"data-testid":"datamap-drawer-close"})})]})}),(0,i.jsx)(n.xuv,{id:"drawer-body",height:"calc(100% - 46px)",overflowY:"auto",padding:6,style:{scrollbarGutter:"stable"},children:p?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(V,{system:p}),(0,i.jsx)(n.xvT,{size:"md",color:"gray.600",lineHeight:6,fontWeight:"semibold",mt:"10px",mb:2,children:"Data uses"}),(0,i.jsx)(n.xuv,{borderTop:"1px solid",borderColor:"gray.200",children:(0,i.jsx)(n.xuv,{pb:3,children:(0,i.jsx)(I,{system:p,...m})})}),(0,i.jsx)(n.xvT,{size:"md",color:"gray.600",lineHeight:6,fontWeight:"semibold",mt:"10px",mb:2,paddingBottom:2,children:"Data flow"}),(0,i.jsx)(s.q,{system:p})]}):null})]})})})}}}]);