ethyca-fides 2.56.2rc1__py2.py3-none-any.whl → 2.56.2rc2__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.
Files changed (216) hide show
  1. {ethyca_fides-2.56.2rc1.dist-info → ethyca_fides-2.56.2rc2.dist-info}/METADATA +1 -1
  2. {ethyca_fides-2.56.2rc1.dist-info → ethyca_fides-2.56.2rc2.dist-info}/RECORD +195 -193
  3. fides/_version.py +3 -3
  4. fides/ui-build/static/admin/404.html +1 -1
  5. fides/ui-build/static/admin/_next/static/chunks/{1241-438935108aed21e7.js → 1241-5f9673b3a7fd9469.js} +1 -1
  6. fides/ui-build/static/admin/_next/static/chunks/{1288-ba1df63e7fa2234a.js → 1288-84c330c47e031622.js} +1 -1
  7. fides/ui-build/static/admin/_next/static/chunks/{1827-2d2f6eb59ebca43f.js → 1827-db04b6d4756e3a25.js} +1 -1
  8. fides/ui-build/static/admin/_next/static/chunks/{2017-312ebd5e1ee3a4cc.js → 2017-99f489b3e0279798.js} +1 -1
  9. fides/ui-build/static/admin/_next/static/chunks/{2025-8e051f2e024df3bf.js → 2025-b6a78063b47b0607.js} +1 -1
  10. fides/ui-build/static/admin/_next/static/chunks/{2163-4ea4bc558daae7b9.js → 2163-9631ae84deb6560b.js} +1 -1
  11. fides/ui-build/static/admin/_next/static/chunks/255-69ac1bcb5a52b022.js +1 -0
  12. fides/ui-build/static/admin/_next/static/chunks/{2556-a58aca0405c150e6.js → 2556-1d0c02e14299bf23.js} +1 -1
  13. fides/ui-build/static/admin/_next/static/chunks/{5559-9b3d8e3dc0533942.js → 2780-8328de94968d05e4.js} +2 -2
  14. fides/ui-build/static/admin/_next/static/chunks/{2800.6615615b3f98c173.js → 2800.40212c25719a2351.js} +1 -1
  15. fides/ui-build/static/admin/_next/static/chunks/2858-0b44609b6be7850b.js +1 -0
  16. fides/ui-build/static/admin/_next/static/chunks/2866-a73888c17a195cbe.js +1 -0
  17. fides/ui-build/static/admin/_next/static/chunks/{2973-995ae9f580873e5b.js → 2973-2d9d761cc3aeda1d.js} +1 -1
  18. fides/ui-build/static/admin/_next/static/chunks/{3163-7ebdab4fefa7e21f.js → 3163-5fe20dd3d43cef46.js} +1 -1
  19. fides/ui-build/static/admin/_next/static/chunks/{3309-d014168a94ed008b.js → 3309-db63287718ef9694.js} +1 -1
  20. fides/ui-build/static/admin/_next/static/chunks/{3528-5e4ade882be165e4.js → 3528-30fc61a98d99a66b.js} +1 -1
  21. fides/ui-build/static/admin/_next/static/chunks/{3990-d38bb0b12394ae4d.js → 3990-146beccde8afea98.js} +1 -1
  22. fides/ui-build/static/admin/_next/static/chunks/4294-3e67d7ef3d390c2f.js +1 -0
  23. fides/ui-build/static/admin/_next/static/chunks/{4321-9c97c4e0d5cf38bd.js → 4321-1bf69f1e83baf995.js} +1 -1
  24. fides/ui-build/static/admin/_next/static/chunks/{4456-87020c4b11dc6e0e.js → 4456-67c8d5b2d96dea1d.js} +1 -1
  25. fides/ui-build/static/admin/_next/static/chunks/{4981-c7710c0d9ff7f9cf.js → 4981-8d81ec3b6031f0f9.js} +1 -1
  26. fides/ui-build/static/admin/_next/static/chunks/{53-bd8367b6a28ef9b0.js → 53-eb32dc5d8571cb7b.js} +1 -1
  27. fides/ui-build/static/admin/_next/static/chunks/{5318-d81dc29254349932.js → 5318-1bfde23609ea3718.js} +1 -1
  28. fides/ui-build/static/admin/_next/static/chunks/{5632-6a150393937e52ea.js → 5632-b98308c17b9cd230.js} +1 -1
  29. fides/ui-build/static/admin/_next/static/chunks/{5728-32ce3e7a41d1fb9f.js → 5728-7be08c654c024baa.js} +1 -1
  30. fides/ui-build/static/admin/_next/static/chunks/{5973-7bbf7cd9475c070d.js → 5973-c0b74d6cf14833cb.js} +1 -1
  31. fides/ui-build/static/admin/_next/static/chunks/{6182-87e468239a93f7e2.js → 6182-1949666cc9179015.js} +1 -1
  32. fides/ui-build/static/admin/_next/static/chunks/{6546-7d8e618a3e49a19a.js → 6546-aa6826fdd0356505.js} +1 -1
  33. fides/ui-build/static/admin/_next/static/chunks/6834-5082b5702e80b531.js +1 -0
  34. fides/ui-build/static/admin/_next/static/chunks/{7080-54768a5669e98da9.js → 7080-051d67719049e77a.js} +1 -1
  35. fides/ui-build/static/admin/_next/static/chunks/{7528.b7f05f44d1ff3997.js → 7528.dff66491009d309b.js} +1 -1
  36. fides/ui-build/static/admin/_next/static/chunks/{7548-cdf0d184fa13ddaf.js → 7548-b3992b0c7fb852c9.js} +1 -1
  37. fides/ui-build/static/admin/_next/static/chunks/{7636-bf8c77691e80223b.js → 7636-b2dadd026c1fe754.js} +1 -1
  38. fides/ui-build/static/admin/_next/static/chunks/{7871-69ffa5607b57cbcf.js → 7871-0a9b00bc8760d091.js} +1 -1
  39. fides/ui-build/static/admin/_next/static/chunks/7996-23e83b8ca562a06c.js +1 -0
  40. fides/ui-build/static/admin/_next/static/chunks/{8001-f142a2097615505a.js → 8001-3fdc7b543233f717.js} +1 -1
  41. fides/ui-build/static/admin/_next/static/chunks/{8141-4eb48e91039a27d5.js → 8141-55187bd207f5ea9e.js} +1 -1
  42. fides/ui-build/static/admin/_next/static/chunks/8540-a7c91bdbe1bb48fb.js +1 -0
  43. fides/ui-build/static/admin/_next/static/chunks/{8986-b955f08aba857064.js → 8986-c24a626d90c8be1d.js} +1 -1
  44. fides/ui-build/static/admin/_next/static/chunks/{9659-7a6f150315045fdd.js → 9659-478f2eaaf48a8943.js} +1 -1
  45. fides/ui-build/static/admin/_next/static/chunks/9729-fcf6ff4e3534e4a8.js +1 -0
  46. fides/ui-build/static/admin/_next/static/chunks/{9822-e0b4ee48b9ca9d6c.js → 9822-88b7435d5868e1ef.js} +1 -1
  47. fides/ui-build/static/admin/_next/static/chunks/pages/{404-cf2b98b932c99b1e.js → 404-5c601b7b9c17b770.js} +1 -1
  48. fides/ui-build/static/admin/_next/static/chunks/pages/{_app-ec8f262156df2273.js → _app-8021f4b202818ba2.js} +11 -11
  49. fides/ui-build/static/admin/_next/static/chunks/pages/add-systems/{manual-227ad8dba69aadab.js → manual-2bfb79fc5d16caa4.js} +1 -1
  50. fides/ui-build/static/admin/_next/static/chunks/pages/add-systems/{multiple-e47482277518eeac.js → multiple-17b38b57adc62ed2.js} +1 -1
  51. fides/ui-build/static/admin/_next/static/chunks/pages/add-systems-4e54aefa8b7f554f.js +1 -0
  52. fides/ui-build/static/admin/_next/static/chunks/pages/{ant-poc-833eede89996ded2.js → ant-poc-6048ddeee842c93b.js} +1 -1
  53. fides/ui-build/static/admin/_next/static/chunks/pages/consent/configure/{add-vendors-59913e9cc73e09c9.js → add-vendors-7469901adf64d0e2.js} +1 -1
  54. fides/ui-build/static/admin/_next/static/chunks/pages/consent/{configure-49c576c235a79105.js → configure-833ab451ff99ba12.js} +1 -1
  55. fides/ui-build/static/admin/_next/static/chunks/pages/consent/privacy-experience/{[id]-f88c83c3daedc898.js → [id]-b796be4c70e08aa0.js} +1 -1
  56. fides/ui-build/static/admin/_next/static/chunks/pages/consent/privacy-experience/{new-8eb5999c73f3e445.js → new-35bc7b42751bb78a.js} +1 -1
  57. fides/ui-build/static/admin/_next/static/chunks/pages/consent/{privacy-experience-3eaec69fa89f74ce.js → privacy-experience-089a73cd8a34dbec.js} +1 -1
  58. fides/ui-build/static/admin/_next/static/chunks/pages/consent/privacy-notices/{[id]-941d95c937170eca.js → [id]-a2713f5a7a2c45e5.js} +1 -1
  59. fides/ui-build/static/admin/_next/static/chunks/pages/consent/privacy-notices/{new-0e3788b351b85329.js → new-b67c3c8c25e7051b.js} +1 -1
  60. fides/ui-build/static/admin/_next/static/chunks/pages/consent/{privacy-notices-363b22d7785b3820.js → privacy-notices-cfe92d1c2e95d917.js} +1 -1
  61. fides/ui-build/static/admin/_next/static/chunks/pages/consent/{properties-5f80a5d6b216b7d3.js → properties-059c82d3b8ccdaf6.js} +1 -1
  62. fides/ui-build/static/admin/_next/static/chunks/pages/consent/reporting-54c762b6fe38c20e.js +1 -0
  63. fides/ui-build/static/admin/_next/static/chunks/pages/{consent-160eab9ebbbd1d25.js → consent-a3233ad24a82465a.js} +1 -1
  64. fides/ui-build/static/admin/_next/static/chunks/pages/data-catalog/[systemId]/projects/[projectUrn]/{[resourceUrn]-ef19223d2cdc1258.js → [resourceUrn]-e1bd1bdd2c310ecc.js} +1 -1
  65. fides/ui-build/static/admin/_next/static/chunks/pages/data-catalog/[systemId]/projects/{[projectUrn]-50b989ef31996157.js → [projectUrn]-c9032d9e0c1dfe1a.js} +1 -1
  66. fides/ui-build/static/admin/_next/static/chunks/pages/data-catalog/[systemId]/{projects-96f81e13cc52686f.js → projects-62087de19ac179b3.js} +1 -1
  67. fides/ui-build/static/admin/_next/static/chunks/pages/data-catalog/[systemId]/resources/{[resourceUrn]-fd3d508ab13ddb5b.js → [resourceUrn]-c7614c7742e41151.js} +1 -1
  68. fides/ui-build/static/admin/_next/static/chunks/pages/data-catalog/[systemId]/{resources-71ce2e9dbf646ecd.js → resources-6563b9d6f77d0690.js} +1 -1
  69. fides/ui-build/static/admin/_next/static/chunks/pages/{data-catalog-11d772fe8b66f9b6.js → data-catalog-9b33b5875445751e.js} +1 -1
  70. fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/action-center/[monitorId]/{[systemId]-e3dbeac39e3ebd59.js → [systemId]-c299a8bd5e1c1def.js} +1 -1
  71. fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/action-center/{[monitorId]-ca97d78d3e655a9d.js → [monitorId]-8e6f4b1b5b89aff0.js} +1 -1
  72. fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/action-center-a6a9bbfac5ca8d0b.js +1 -0
  73. fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/{activity-bdb48de828181c14.js → activity-a9a864cb621d65c6.js} +1 -1
  74. fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/detection/{[resourceUrn]-f8f65f23ff9edaeb.js → [resourceUrn]-c575c057b35b958e.js} +1 -1
  75. fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/{detection-dbcda00811800c31.js → detection-c1d2018f3ab3e39c.js} +1 -1
  76. fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/discovery/{[resourceUrn]-90ebc7dd32d37952.js → [resourceUrn]-9ae2adfc68b95d78.js} +1 -1
  77. fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/{discovery-3251e73054b9f980.js → discovery-a617ddfa3dfdab23.js} +1 -1
  78. fides/ui-build/static/admin/_next/static/chunks/pages/{datamap-f79309e33e7583fa.js → datamap-6a0e22b9ce8f5332.js} +1 -1
  79. fides/ui-build/static/admin/_next/static/chunks/pages/dataset/[datasetId]/[collectionName]/{[...subfieldNames]-63f5bebe5851b767.js → [...subfieldNames]-3e506baace396803.js} +1 -1
  80. fides/ui-build/static/admin/_next/static/chunks/pages/dataset/[datasetId]/{[collectionName]-18ff69fb79811cff.js → [collectionName]-6bb9fbe3d41c3127.js} +1 -1
  81. fides/ui-build/static/admin/_next/static/chunks/pages/dataset/[datasetId]-a358b344095573a9.js +1 -0
  82. fides/ui-build/static/admin/_next/static/chunks/pages/dataset/new-b328f9aab79dd734.js +1 -0
  83. fides/ui-build/static/admin/_next/static/chunks/pages/{dataset-6ab8c03b8baa93ca.js → dataset-3c0b2ccfa442b79d.js} +1 -1
  84. fides/ui-build/static/admin/_next/static/chunks/pages/datastore-connection/{[id]-9f1a9e0e2b443b2a.js → [id]-102772521ee4a69a.js} +1 -1
  85. fides/ui-build/static/admin/_next/static/chunks/pages/datastore-connection/new-754926e02c1e0ab0.js +1 -0
  86. fides/ui-build/static/admin/_next/static/chunks/pages/{datastore-connection-9cafd280f2dff51b.js → datastore-connection-1e81b412b5837755.js} +1 -1
  87. fides/ui-build/static/admin/_next/static/chunks/pages/{index-f6c4817f3c27b16c.js → index-aa7b15f51ccbdf8b.js} +1 -1
  88. fides/ui-build/static/admin/_next/static/chunks/pages/integrations/{[id]-c431f92c941859c4.js → [id]-2436e6c6406e5f4f.js} +1 -1
  89. fides/ui-build/static/admin/_next/static/chunks/pages/integrations-b6c0f9648f6fa298.js +1 -0
  90. fides/ui-build/static/admin/_next/static/chunks/pages/messaging/{[id]-014724a2527621b5.js → [id]-d1e96f12c1a12d4d.js} +1 -1
  91. fides/ui-build/static/admin/_next/static/chunks/pages/messaging/{add-template-860ee8c0e0a2d994.js → add-template-3ff3a7c3c76a208e.js} +1 -1
  92. fides/ui-build/static/admin/_next/static/chunks/pages/{messaging-5a6202c3aaf15cce.js → messaging-910372bec245ba5d.js} +1 -1
  93. fides/ui-build/static/admin/_next/static/chunks/pages/privacy-requests/{[id]-ae047733e540e0ef.js → [id]-7b13b42d1b23f93b.js} +1 -1
  94. fides/ui-build/static/admin/_next/static/chunks/pages/privacy-requests/configure/{messaging-c6881c16a4058f20.js → messaging-6971c7e98c00390a.js} +1 -1
  95. fides/ui-build/static/admin/_next/static/chunks/pages/privacy-requests/configure/{storage-4b68311b85486f8c.js → storage-71386e3e260a9220.js} +1 -1
  96. fides/ui-build/static/admin/_next/static/chunks/pages/privacy-requests/{configure-9ec13a78be8f23bf.js → configure-e0ca944878ef12e8.js} +1 -1
  97. fides/ui-build/static/admin/_next/static/chunks/pages/privacy-requests-be0c167fa1565e38.js +1 -0
  98. fides/ui-build/static/admin/_next/static/chunks/pages/properties/{[id]-6597c1714cb44cbc.js → [id]-e780943ac4ce5bf1.js} +1 -1
  99. fides/ui-build/static/admin/_next/static/chunks/pages/properties/{add-property-674abcb6eaeb32de.js → add-property-fc660bc2a3641cd3.js} +1 -1
  100. fides/ui-build/static/admin/_next/static/chunks/pages/{properties-f939fbdb6bc969ef.js → properties-1a35fd97f2510989.js} +1 -1
  101. fides/ui-build/static/admin/_next/static/chunks/pages/reporting/{datamap-7446940b5f984a24.js → datamap-b9fe3f3bb16a14eb.js} +1 -1
  102. fides/ui-build/static/admin/_next/static/chunks/pages/settings/{about-ec35b0518d3fb3bb.js → about-bfe2495fb54933ee.js} +1 -1
  103. fides/ui-build/static/admin/_next/static/chunks/pages/settings/consent-7eec113882c35c3f.js +1 -0
  104. fides/ui-build/static/admin/_next/static/chunks/pages/settings/{custom-fields-3bbbb1612eb447e9.js → custom-fields-aaf29e3dd2c7e955.js} +1 -1
  105. fides/ui-build/static/admin/_next/static/chunks/pages/settings/{domain-records-c59eedd4f4a637aa.js → domain-records-8b7e71fe1307c5a3.js} +1 -1
  106. fides/ui-build/static/admin/_next/static/chunks/pages/settings/domains-0b9e78e671540cef.js +1 -0
  107. fides/ui-build/static/admin/_next/static/chunks/pages/settings/{email-templates-4d55571c2799e7fe.js → email-templates-eb04e1584d98edb3.js} +1 -1
  108. fides/ui-build/static/admin/_next/static/chunks/pages/settings/{locations-725f4a6a809bd1e6.js → locations-195f7ddfc3768ece.js} +1 -1
  109. fides/ui-build/static/admin/_next/static/chunks/pages/settings/organization-22cb683d203ea7fb.js +1 -0
  110. fides/ui-build/static/admin/_next/static/chunks/pages/settings/{regulations-8934706c2c817abe.js → regulations-3eede241c9df1476.js} +1 -1
  111. fides/ui-build/static/admin/_next/static/chunks/pages/systems/configure/[id]/test-datasets-54d7c6fcc4c79635.js +1 -0
  112. fides/ui-build/static/admin/_next/static/chunks/pages/systems/configure/{[id]-15f55e6c399eed5e.js → [id]-8271db0c80e6e154.js} +1 -1
  113. fides/ui-build/static/admin/_next/static/chunks/pages/{systems-0b4f7a20fa248642.js → systems-7d81df09a0b4eb23.js} +1 -1
  114. fides/ui-build/static/admin/_next/static/chunks/pages/taxonomy-7abe76200e4519d8.js +1 -0
  115. fides/ui-build/static/admin/_next/static/chunks/pages/user-management/profile/{[id]-99490929267dbcef.js → [id]-269b17114579510b.js} +1 -1
  116. fides/ui-build/static/admin/_next/static/chunks/pages/{user-management-2eedb806df4160b3.js → user-management-f7e75911c071a20e.js} +1 -1
  117. fides/ui-build/static/admin/_next/static/chunks/{webpack-f8d056f5e13fe08a.js → webpack-c51aa6524c2716b8.js} +1 -1
  118. fides/ui-build/static/admin/_next/static/css/918de8c66b18ce6b.css +1 -0
  119. fides/ui-build/static/admin/_next/static/tPSLTgZreOp3PFQm7pvou/_buildManifest.js +1 -0
  120. fides/ui-build/static/admin/add-systems/manual.html +1 -1
  121. fides/ui-build/static/admin/add-systems/multiple.html +1 -1
  122. fides/ui-build/static/admin/add-systems.html +1 -1
  123. fides/ui-build/static/admin/ant-poc.html +1 -1
  124. fides/ui-build/static/admin/consent/configure/add-vendors.html +1 -1
  125. fides/ui-build/static/admin/consent/configure.html +1 -1
  126. fides/ui-build/static/admin/consent/privacy-experience/[id].html +1 -1
  127. fides/ui-build/static/admin/consent/privacy-experience/new.html +1 -1
  128. fides/ui-build/static/admin/consent/privacy-experience.html +1 -1
  129. fides/ui-build/static/admin/consent/privacy-notices/[id].html +1 -1
  130. fides/ui-build/static/admin/consent/privacy-notices/new.html +1 -1
  131. fides/ui-build/static/admin/consent/privacy-notices.html +1 -1
  132. fides/ui-build/static/admin/consent/properties.html +1 -1
  133. fides/ui-build/static/admin/consent/reporting.html +1 -1
  134. fides/ui-build/static/admin/consent.html +1 -1
  135. fides/ui-build/static/admin/data-catalog/[systemId]/projects/[projectUrn]/[resourceUrn].html +1 -1
  136. fides/ui-build/static/admin/data-catalog/[systemId]/projects/[projectUrn].html +1 -1
  137. fides/ui-build/static/admin/data-catalog/[systemId]/projects.html +1 -1
  138. fides/ui-build/static/admin/data-catalog/[systemId]/resources/[resourceUrn].html +1 -1
  139. fides/ui-build/static/admin/data-catalog/[systemId]/resources.html +1 -1
  140. fides/ui-build/static/admin/data-catalog.html +1 -1
  141. fides/ui-build/static/admin/data-discovery/action-center/[monitorId]/[systemId].html +1 -1
  142. fides/ui-build/static/admin/data-discovery/action-center/[monitorId].html +1 -1
  143. fides/ui-build/static/admin/data-discovery/action-center.html +1 -1
  144. fides/ui-build/static/admin/data-discovery/activity.html +1 -1
  145. fides/ui-build/static/admin/data-discovery/detection/[resourceUrn].html +1 -1
  146. fides/ui-build/static/admin/data-discovery/detection.html +1 -1
  147. fides/ui-build/static/admin/data-discovery/discovery/[resourceUrn].html +1 -1
  148. fides/ui-build/static/admin/data-discovery/discovery.html +1 -1
  149. fides/ui-build/static/admin/datamap.html +1 -1
  150. fides/ui-build/static/admin/dataset/[datasetId]/[collectionName]/[...subfieldNames].html +1 -1
  151. fides/ui-build/static/admin/dataset/[datasetId]/[collectionName].html +1 -1
  152. fides/ui-build/static/admin/dataset/[datasetId].html +1 -1
  153. fides/ui-build/static/admin/dataset/new.html +1 -1
  154. fides/ui-build/static/admin/dataset.html +1 -1
  155. fides/ui-build/static/admin/datastore-connection/[id].html +1 -1
  156. fides/ui-build/static/admin/datastore-connection/new.html +1 -1
  157. fides/ui-build/static/admin/datastore-connection.html +1 -1
  158. fides/ui-build/static/admin/index.html +1 -1
  159. fides/ui-build/static/admin/integrations/[id].html +1 -1
  160. fides/ui-build/static/admin/integrations.html +1 -1
  161. fides/ui-build/static/admin/login/[provider].html +1 -1
  162. fides/ui-build/static/admin/login.html +1 -1
  163. fides/ui-build/static/admin/messaging/[id].html +1 -1
  164. fides/ui-build/static/admin/messaging/add-template.html +1 -1
  165. fides/ui-build/static/admin/messaging.html +1 -1
  166. fides/ui-build/static/admin/privacy-requests/[id].html +1 -1
  167. fides/ui-build/static/admin/privacy-requests/configure/messaging.html +1 -1
  168. fides/ui-build/static/admin/privacy-requests/configure/storage.html +1 -1
  169. fides/ui-build/static/admin/privacy-requests/configure.html +1 -1
  170. fides/ui-build/static/admin/privacy-requests.html +1 -1
  171. fides/ui-build/static/admin/properties/[id].html +1 -1
  172. fides/ui-build/static/admin/properties/add-property.html +1 -1
  173. fides/ui-build/static/admin/properties.html +1 -1
  174. fides/ui-build/static/admin/reporting/datamap.html +1 -1
  175. fides/ui-build/static/admin/settings/about.html +1 -1
  176. fides/ui-build/static/admin/settings/consent.html +1 -1
  177. fides/ui-build/static/admin/settings/custom-fields.html +1 -1
  178. fides/ui-build/static/admin/settings/domain-records.html +1 -1
  179. fides/ui-build/static/admin/settings/domains.html +1 -1
  180. fides/ui-build/static/admin/settings/email-templates.html +1 -1
  181. fides/ui-build/static/admin/settings/locations.html +1 -1
  182. fides/ui-build/static/admin/settings/organization.html +1 -1
  183. fides/ui-build/static/admin/settings/regulations.html +1 -1
  184. fides/ui-build/static/admin/systems/configure/[id]/test-datasets.html +1 -1
  185. fides/ui-build/static/admin/systems/configure/[id].html +1 -1
  186. fides/ui-build/static/admin/systems.html +1 -1
  187. fides/ui-build/static/admin/taxonomy.html +1 -1
  188. fides/ui-build/static/admin/user-management/new.html +1 -1
  189. fides/ui-build/static/admin/user-management/profile/[id].html +1 -1
  190. fides/ui-build/static/admin/user-management.html +1 -1
  191. fides/ui-build/static/admin/_next/static/R6bUB85DlaFNTdyaL366M/_buildManifest.js +0 -1
  192. fides/ui-build/static/admin/_next/static/chunks/255-8d4d20193afd2223.js +0 -1
  193. fides/ui-build/static/admin/_next/static/chunks/2866-2aa6a087d80eb4a3.js +0 -1
  194. fides/ui-build/static/admin/_next/static/chunks/4554-1c73bac0d3b5fa31.js +0 -1
  195. fides/ui-build/static/admin/_next/static/chunks/7996-5521a6949bfe4640.js +0 -1
  196. fides/ui-build/static/admin/_next/static/chunks/8540-cf0177abbe201868.js +0 -1
  197. fides/ui-build/static/admin/_next/static/chunks/9111-36f3eb6456817560.js +0 -1
  198. fides/ui-build/static/admin/_next/static/chunks/pages/add-systems-500ee461301938a8.js +0 -1
  199. fides/ui-build/static/admin/_next/static/chunks/pages/consent/reporting-d1abffec10948e2e.js +0 -1
  200. fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/action-center-6d6d0b3bd37434da.js +0 -1
  201. fides/ui-build/static/admin/_next/static/chunks/pages/dataset/[datasetId]-ad8ab0745c40a187.js +0 -1
  202. fides/ui-build/static/admin/_next/static/chunks/pages/dataset/new-72cdfa2ff1a4f38b.js +0 -1
  203. fides/ui-build/static/admin/_next/static/chunks/pages/datastore-connection/new-c7de595cc7a42eba.js +0 -1
  204. fides/ui-build/static/admin/_next/static/chunks/pages/integrations-43234d749fbc0606.js +0 -1
  205. fides/ui-build/static/admin/_next/static/chunks/pages/privacy-requests-c0ee732681c1d4ef.js +0 -1
  206. fides/ui-build/static/admin/_next/static/chunks/pages/settings/consent-92a19e7da38d3325.js +0 -1
  207. fides/ui-build/static/admin/_next/static/chunks/pages/settings/domains-61ddd1a76e4ab2c6.js +0 -1
  208. fides/ui-build/static/admin/_next/static/chunks/pages/settings/organization-fc13f3473328020d.js +0 -1
  209. fides/ui-build/static/admin/_next/static/chunks/pages/systems/configure/[id]/test-datasets-0ee9dc1f37205410.js +0 -1
  210. fides/ui-build/static/admin/_next/static/chunks/pages/taxonomy-ad082f72d90bdfe2.js +0 -1
  211. fides/ui-build/static/admin/_next/static/css/ddd0b958fa57d1b9.css +0 -1
  212. {ethyca_fides-2.56.2rc1.dist-info → ethyca_fides-2.56.2rc2.dist-info}/LICENSE +0 -0
  213. {ethyca_fides-2.56.2rc1.dist-info → ethyca_fides-2.56.2rc2.dist-info}/WHEEL +0 -0
  214. {ethyca_fides-2.56.2rc1.dist-info → ethyca_fides-2.56.2rc2.dist-info}/entry_points.txt +0 -0
  215. {ethyca_fides-2.56.2rc1.dist-info → ethyca_fides-2.56.2rc2.dist-info}/top_level.txt +0 -0
  216. /fides/ui-build/static/admin/_next/static/{R6bUB85DlaFNTdyaL366M → tPSLTgZreOp3PFQm7pvou}/_ssgManifest.js +0 -0
@@ -1 +1 @@
1
- "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4981],{72809:function(e,t,i){var n=i(24246),l=i(96013),r=i(27378);let a=e=>{let t=e.split("."),i=[];return t.forEach(e=>{let t=i.length>0?i[i.length-1]:null;t?i.push("".concat(t,".").concat(e)):i.push(e)}),i},s=(e,t)=>{let i=a(t).filter(e=>e!==t);return e.filter(e=>i.includes(e)).length>0},o=(e,t)=>!!(e===t||e.startsWith("".concat(t,"."))),c=(e,t,i)=>{let n=null!=i?i:[];return e.forEach(e=>{e.children&&c(e.children,t,n),o(e.value,t)&&n.push(e)}),n},d=e=>{let{node:t,isChecked:i,onChecked:r,isExpanded:a,onExpanded:s,isIndeterminate:o,isDisabled:c,children:d}=e,{value:u,label:h}=t,x=!!t.children&&t.children.length>0;return(0,n.jsxs)(l.xuv,{children:[(0,n.jsxs)(l.xuv,{display:"flex",justifyContent:"space-between",_hover:{backgroundColor:"gray.100",cursor:"pointer"},onClick:()=>s(t),minHeight:8,children:[(0,n.jsx)(l.XZJ,{colorScheme:"complimentary",value:u,isChecked:!o&&i,isIndeterminate:o,isDisabled:c,onChange:()=>r(t),mx:2,"data-testid":"checkbox-".concat(h),children:h}),x?(0,n.jsx)(l.wpx,{"data-testid":"expand-".concat(h),"aria-label":a?"collapse":"expand",icon:(0,n.jsx)(l.v4q,{boxSize:5}),type:"text",onClick:()=>s(t),className:a?"rotate-180":void 0}):null]}),d&&(0,n.jsx)(l.xuv,{ml:5,children:d})]})};t.ZP=e=>{let{nodes:t,selected:i,onSelected:u,...h}=e,[x,p]=(0,r.useState)([]),[f,m]=(0,r.useState)([]);(0,r.useEffect)(()=>{let e=Array.from(new Set([...i.map(e=>a(e)).reduce((e,t)=>e.concat(t),[]),...i.map(e=>c(t,e)).reduce((e,t)=>e.concat(t),[]).map(e=>e.value)]));m(e),p(e)},[i,t]);let j=e=>{let n=[],l=[];x.indexOf(e.value)>=0?(n=x.filter(t=>!o(t,e.value)),l=i.filter(t=>!o(t,e.value))):(n=[...x,...c(t,e.value).map(e=>e.value)],l=[...i,e.value]),p(n),u(l)},v=e=>{f.indexOf(e.value)>=0?m(f.filter(t=>!o(t,e.value))):m([...f,e.value])},C=e=>{if(e.children){let l=x.indexOf(e.value)>=0,a=f.indexOf(e.value)>=0,o=c(t,e.value),u=l&&e.children.length>0&&x.filter(t=>t.startsWith("".concat(e.value,"."))).length+1!==o.length,h=s(i,e.value);return(0,n.jsx)(d,{node:e,isChecked:l,onChecked:j,isExpanded:a,onExpanded:v,isDisabled:h,isIndeterminate:u,children:a?e.children.map(e=>(0,n.jsx)(r.Fragment,{children:C(e)},e.value)):void 0})}return null};return(0,n.jsx)(l.xuv,{...h,children:t.map(e=>(0,n.jsx)(l.xuv,{children:C(e)},e.value))})}},57311:function(e,t,i){i.d(t,{Gn:function(){return s},zR:function(){return a}});var n=i(24246),l=i(96013),r=i(79711);let a=e=>{let{title:t}=e;return(0,n.jsx)(l.OXI,{py:0,display:"flex",alignItems:"flex-start",children:(0,n.jsx)(l.xvT,{mr:"2",color:"gray.700",fontSize:"lg",lineHeight:1.8,children:t})})},s=e=>{let{onDelete:t,onEditYaml:i,formId:a,isSaving:s}=e;return(0,n.jsxs)(l.zeN,{justifyContent:"space-between",children:[t?(0,n.jsx)(l.wpx,{"aria-label":"delete",icon:(0,n.jsx)(r.q,{fontSize:"small"}),onClick:t,"data-testid":"delete-btn"}):null,(0,n.jsxs)("div",{className:"flex gap-2",children:[i&&(0,n.jsx)(l.wpx,{onClick:i,"data-testid":"edit-yaml-btn",children:"Edit YAML"}),(0,n.jsx)(l.wpx,{htmlType:"submit",type:"primary","data-testid":"save-btn",form:a,loading:s,children:"Save"})]})]})};t.ZP=e=>{let{header:t,description:i,isOpen:r,onClose:a,children:s,footer:o}=e;return(0,n.jsxs)(l.dys,{placement:"right",isOpen:r,onClose:a,size:"md",children:[(0,n.jsx)(l.P1B,{}),(0,n.jsxs)(l.scA,{"data-testid":"edit-drawer-content",py:2,children:[(0,n.jsxs)(l.xuv,{display:"flex",justifyContent:"space-between",alignItems:"top",mr:2,py:2,gap:2,children:[(0,n.jsx)(l.xuv,{flex:1,minH:8,children:t}),(0,n.jsx)(l.xuv,{display:"flex",justifyContent:"flex-end",mr:2,children:(0,n.jsx)(l.wpx,{"aria-label":"Close editor",onClick:a,"data-testid":"close-drawer-btn",icon:(0,n.jsx)(l.Two,{fontSize:"smaller"})})})]}),(0,n.jsxs)(l.Ng0,{pt:1,children:[i?(0,n.jsx)(l.xvT,{fontSize:"sm",mb:4,color:"gray.600",children:i}):null,s]}),o]})]})}},79711:function(e,t,i){i.d(t,{q:function(){return l}});var n=i(24246);let l=(0,i(96013).IUT)({displayName:"TrashCanOutlineIcon",viewBox:"0 0 11 12",path:(0,n.jsx)("path",{d:"M4.5166 1.60859L4.1084 2.21875H7.22363L6.81543 1.60859C6.7832 1.56133 6.72949 1.53125 6.67148 1.53125H4.6584C4.60039 1.53125 4.54668 1.55918 4.51445 1.60859H4.5166ZM7.6748 1.03711L8.46328 2.21875H8.75977H9.79102H9.96289C10.2486 2.21875 10.4785 2.44863 10.4785 2.73438C10.4785 3.02012 10.2486 3.25 9.96289 3.25H9.79102V9.78125C9.79102 10.7309 9.02188 11.5 8.07227 11.5H3.25977C2.31016 11.5 1.54102 10.7309 1.54102 9.78125V3.25H1.36914C1.0834 3.25 0.853516 3.02012 0.853516 2.73438C0.853516 2.44863 1.0834 2.21875 1.36914 2.21875H1.54102H2.57227H2.86875L3.65723 1.03496C3.88066 0.701953 4.25664 0.5 4.6584 0.5H6.67148C7.07324 0.5 7.44922 0.701953 7.67266 1.03496L7.6748 1.03711ZM2.57227 3.25V9.78125C2.57227 10.1615 2.87949 10.4688 3.25977 10.4688H8.07227C8.45254 10.4688 8.75977 10.1615 8.75977 9.78125V3.25H2.57227ZM4.29102 4.625V9.09375C4.29102 9.28281 4.13633 9.4375 3.94727 9.4375C3.7582 9.4375 3.60352 9.28281 3.60352 9.09375V4.625C3.60352 4.43594 3.7582 4.28125 3.94727 4.28125C4.13633 4.28125 4.29102 4.43594 4.29102 4.625ZM6.00977 4.625V9.09375C6.00977 9.28281 5.85508 9.4375 5.66602 9.4375C5.47695 9.4375 5.32227 9.28281 5.32227 9.09375V4.625C5.32227 4.43594 5.47695 4.28125 5.66602 4.28125C5.85508 4.28125 6.00977 4.43594 6.00977 4.625ZM7.72852 4.625V9.09375C7.72852 9.28281 7.57383 9.4375 7.38477 9.4375C7.1957 9.4375 7.04102 9.28281 7.04102 9.09375V4.625C7.04102 4.43594 7.1957 4.28125 7.38477 4.28125C7.57383 4.28125 7.72852 4.43594 7.72852 4.625Z",fill:"currentColor"})})},43124:function(e,t,i){i.d(t,{Z:function(){return h}});var n=i(24246),l=i(96013),r=i(88038),a=i.n(r),s=i(86677);i(27378);var o=i(11596),c=i(72247),d=i(87162),u=()=>{let e=(0,s.useRouter)();return(0,n.jsx)(l.xuv,{bg:"gray.50",border:"1px solid",borderColor:"blue.400",borderRadius:"md",justifyContent:"space-between",p:5,mb:5,mt:5,children:(0,n.jsxs)(l.xuv,{children:[(0,n.jsxs)(l.Kqy,{direction:{base:"column",sm:"row"},justifyContent:"space-between",children:[(0,n.jsx)(l.xvT,{fontWeight:"semibold",children:"Configure your storage and messaging provider"}),(0,n.jsx)(l.wpx,{onClick:()=>{e.push(d.fz)},children:"Configure"})]}),(0,n.jsxs)(l.xvT,{children:["Before Fides can process your privacy requests we need two simple steps to configure your storage and email client."," "]})]})})},h=e=>{let{children:t,title:i,padded:r=!0,mainProps:d}=e,h=(0,o.hz)(),x=(0,s.useRouter)(),p="/privacy-requests"===x.pathname||"/datastore-connection"===x.pathname,f=!(h.flags.privacyRequestsConfiguration&&p),{data:m}=(0,c.JE)(void 0,{skip:f}),{data:j}=(0,c.PW)(void 0,{skip:f}),v=h.flags.privacyRequestsConfiguration&&(!m||!j)&&p;return(0,n.jsxs)(l.kCb,{"data-testid":i,direction:"column",h:"100vh",children:[(0,n.jsxs)(a(),{children:[(0,n.jsxs)("title",{children:["Fides Admin UI - ",i]}),(0,n.jsx)("meta",{name:"description",content:"Privacy Engineering Platform"}),(0,n.jsx)("link",{rel:"icon",href:"/favicon.ico"})]}),(0,n.jsxs)(l.kCb,{as:"main",direction:"column",py:r?6:0,px:r?10:0,h:r?"calc(100% - 48px)":"full",flex:1,minWidth:0,overflow:"auto",...d,children:[v?(0,n.jsx)(u,{}):null,t]})]})}},37541:function(e,t,i){var n=i(24246),l=i(96013),r=i(53614);t.Z=e=>{let{heading:t,breadcrumbItems:i,isSticky:a=!0,children:s,rightContent:o,style:c,...d}=e;return(0,n.jsxs)("div",{...d,style:a?{position:"sticky",top:"-24px",paddingTop:"24px",paddingBottom:"24px",paddingLeft:"40px",marginLeft:"-40px",paddingRight:"40px",marginRight:"-40px",marginTop:"-24px",left:0,zIndex:20,backgroundColor:"white",...c}:{paddingBottom:"24px",...c},children:[(0,n.jsxs)(l.jqI,{justify:"space-between",children:["string"==typeof t?(0,n.jsx)(l.X6q,{className:i||s?"pb-4":void 0,fontSize:"2xl","data-testid":"page-heading",children:t}):t,o&&(0,n.jsx)("div",{"data-testid":"page-header-right-content",children:o})]}),!!i&&(0,n.jsx)(r.m,{className:s?"pb-4":void 0,items:i,"data-testid":"page-breadcrumb"}),s]})}},53614:function(e,t,i){i.d(t,{m:function(){return c}});var n=i(24246),l=i(96013),r=i(79894),a=i.n(r),s=i(27378);let{Text:o}=l.AntTypography,c=e=>{let{items:t,...i}=e,r=(0,s.useMemo)(()=>null==t?void 0:t.map((e,i)=>{let r=i===t.length-1,s={...e},c=s.onClick&&!s.href;return("string"==typeof s.title&&(s.title=(0,n.jsx)(o,{style:{color:"inherit",maxWidth:r?void 0:400},ellipsis:!r,children:s.title})),c)?s.title=(0,n.jsx)(l.wpx,{type:"text",size:"small",icon:s.icon,onClick:s.onClick,className:"ant-breadcrumb-link -mt-px px-1 text-inherit",children:s.title}):(s.icon&&(s.title=(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("span",{className:"anticon align-text-bottom",children:s.icon}),s.title]})),s.href&&s.title&&(s.title=(0,n.jsx)(a(),{href:s.href,className:"ant-breadcrumb-link",children:s.title}),delete s.href)),s}),[t]);return(0,n.jsx)(l.zrq,{items:r,...i})}},8339:function(e,t,i){i.d(t,{Y:function(){return a}});var n=i(24246),l=i(96013),r=i(53614);let a=[(0,n.jsx)(l.PJP.S9g,{},"layers"),(0,n.jsx)(l.PJP.ehp,{},"dataset"),(0,n.jsx)(l.PJP.iA_,{},"table"),(0,n.jsx)(l.PJP.$4y,{style:{transform:"rotate(-90deg)"}},"field")];t.Z=e=>{let{resourceUrn:t,parentLink:i,onPathClick:l=()=>{}}=e,s=[];if(t||s.push({title:"All activity"}),t){s.push({title:"All activity",href:i});let e=t.split(".");e.forEach((t,i)=>{0!==i&&s.push({title:t,icon:a[i-1],onClick:t=>{t.preventDefault(),l(e.slice(0,i+1).join("."))}})})}return(0,n.jsx)(r.m,{"data-testid":"results-breadcrumb",items:s})}},17823:function(e,t,i){i.d(t,{e:function(){return m},Z:function(){return j}});var n=i(24246),l=i(96013),r=i(34090),a=i(27378),s=i(45007),o=i(34803),c=i(35249),d=i(64712),u=i(39514),h=i(72809),x=i(62091),p=e=>{let{dataCategories:t,checked:i,onChecked:r,buttonLabel:s}=e,o=(0,a.useMemo)(()=>(0,x.Cd)(t),[t]);return(0,n.jsxs)(l.v2r,{closeOnSelect:!0,children:[(0,n.jsx)(l.j2t,{as:l.wpx,icon:(0,n.jsx)(l.mCO,{}),className:"!bg-transparent",block:!0,"data-testid":"data-category-dropdown",children:null!=s?s:"Select data categories"}),(0,n.jsx)(l.qyq,{children:(0,n.jsxs)(l.xuv,{maxHeight:"50vh",minWidth:"300px",maxW:"full",overflowY:"scroll",children:[(0,n.jsxs)(l.xuv,{position:"sticky",top:0,zIndex:1,backgroundColor:"white",pt:1,children:[(0,n.jsx)(l.__7,{children:(0,n.jsxs)(l.xuv,{display:"flex",justifyContent:"space-between",px:2,mb:2,children:[(0,n.jsx)(l.sNh,{as:l.wpx,size:"small",className:"mr-2 !w-auto",onClick:()=>r([]),closeOnSelect:!1,"data-testid":"data-category-clear-btn",children:"Clear"}),(0,n.jsx)(l.xvT,{mr:2,children:"Data Categories"}),(0,n.jsx)(l.sNh,{as:l.wpx,size:"small",className:"!w-auto","data-testid":"data-category-done-btn",children:"Done"})]})}),(0,n.jsx)(l.RaW,{})]}),(0,n.jsx)(l.xuv,{px:2,"data-testid":"data-category-checkbox-tree",children:(0,n.jsx)(h.ZP,{nodes:o,selected:i,onSelected:r})})]})})]})},f=e=>{let{dataCategories:t,checked:i,onChecked:r,tooltip:a}=e,s=e=>{r(i.filter(t=>t!==e))},o=i.slice().sort((e,t)=>e.localeCompare(t));return(0,n.jsxs)(l.rjZ,{templateColumns:"1fr 3fr",children:[(0,n.jsx)(l.lXp,{children:"Data Categories"}),(0,n.jsxs)(l.vyj,{direction:"vertical",size:"small",children:[(0,n.jsxs)(l.xuv,{display:"flex",alignItems:"center",children:[(0,n.jsx)(l.xuv,{mr:"2",width:"100%",children:(0,n.jsx)(p,{dataCategories:t,checked:i,onChecked:r})}),(0,n.jsx)(u.Z,{label:a})]}),(0,n.jsx)(l.vyj,{direction:"vertical",size:2,"data-testid":"selected-categories",children:o.map(e=>(0,n.jsx)(l.j8w,{closable:!0,onClose:()=>{s(e)},children:e},e))})]})]})};let m="edit-collection-or-field-form";var j=e=>{var t;let{values:i,onSubmit:u,dataType:h,showDataCategories:x=!0}=e,p={description:null!==(t=i.description)&&void 0!==t?t:"",data_categories:i.data_categories},j=(0,s.v9)(c.qb).filter(e=>e.active),[v,C]=(0,a.useState)(p.data_categories||[]),g="collection"===h?d.du.description.tooltip:d.QL.description.tooltip,y="collection"===h?d.du.data_categories.tooltip:d.QL.data_categories.tooltip;return(0,n.jsx)(r.J9,{initialValues:p,onSubmit:e=>{u({...e,data_categories:v})},children:(0,n.jsx)(r.l0,{id:m,children:(0,n.jsxs)(l.Kqy,{children:[(0,n.jsx)(o.j0,{name:"description",label:"Description",tooltip:g,"data-testid":"description-input"}),x&&(0,n.jsx)(f,{dataCategories:j,checked:v,onChecked:C,tooltip:y})]})})})}},64712:function(e,t,i){i.d(t,{QL:function(){return r},du:function(){return l},tz:function(){return n}});let n={name:{tooltip:"A UI-friendly label for the Dataset."},description:{tooltip:"A human-readable description of the Dataset."},data_categories:{tooltip:"Arrays of Data Category resources, identified by fides_key, that apply to all collections in the Dataset."}},l={description:{tooltip:"A human-readable description of the collection."},data_categories:{tooltip:"Arrays of Data Category resources, identified by fides_key, that apply to all fields in the collection."}},r={description:{tooltip:"A human-readable description of the field."},data_categories:{tooltip:"Arrays of Data Category resources, identified by fides_key, that apply to this field."}}},5067:function(e,t,i){i.d(t,{Fk:function(){return c},_n:function(){return s},jC:function(){return r},qe:function(){return o}});var n=i(99729),l=i.n(n);let r=(e,t,i)=>{let n=e.collections.map((e,n)=>n===i?t:e);return{...e,collections:n}},a=(e,t,i)=>{let n=e.fields.map((e,n)=>n===i?t:e);return{...e,fields:n}},s=(e,t,i,n)=>{let l=a(e.collections[i],t,n);return r(e,l,i)},o=(e,t)=>{let i=e.collections.filter((e,i)=>i!==t);return{...e,collections:i}},c=e=>{let{dataset:t,collectionName:i,subfields:n}=e,r="",a=t.collections.findIndex(e=>e.name===i);return r+="collections[".concat(a,"]"),n&&n.forEach(e=>{let i=l()(t,r).fields.findIndex(t=>t.name===e);r+=".fields[".concat(i,"]")}),r}},91311:function(e,t,i){i.d(t,{Ch:function(){return a},Hy:function(){return s},Lo:function(){return l}});var n,l,r=i(37760);let a="root";(n=l||(l={})).DATA_CATEGORIES="Data categories",n.DATA_USES="Data uses",n.DATA_SUBJECTS="Data subjects";let s=e=>{switch(e){case"Data categories":return{UPDATE:r.Sh.DATA_CATEGORY_UPDATE,CREATE:r.Sh.DATA_CATEGORY_CREATE,DELETE:r.Sh.DATA_CATEGORY_DELETE,READ:r.Sh.DATA_CATEGORY_READ};case"Data uses":return{UPDATE:r.Sh.DATA_USE_UPDATE,CREATE:r.Sh.DATA_USE_CREATE,DELETE:r.Sh.DATA_USE_DELETE,READ:r.Sh.DATA_USE_READ};case"Data subjects":return{UPDATE:r.Sh.DATA_SUBJECT_UPDATE,CREATE:r.Sh.DATA_SUBJECT_CREATE,DELETE:r.Sh.DATA_SUBJECT_DELETE,READ:r.Sh.DATA_SUBJECT_READ};default:throw Error("Unknown taxonomy type: ".concat(e))}}},62091:function(e,t,i){i.d(t,{Cd:function(){return r},Xl:function(){return a}});var n=i(37760),l=i(91311);let r=(e,t)=>{let i;if(null==t&&e.every(e=>void 0===e.parent_key))i=e;else{let n=null!=t?t:null;i=e.filter(e=>e.parent_key===n)}return i.map(t=>{var i,n;let l=t.fides_key;return{value:t.fides_key,label:""===t.name||null==t.name?t.fides_key:t.name,description:t.description,children:r(e,l),is_default:null!==(i=t.is_default)&&void 0!==i&&i,active:null!==(n=t.active)&&void 0!==n&&n}})},a=e=>{switch(e){case l.Lo.DATA_CATEGORIES:return n.P6.DATA_CATEGORY;case l.Lo.DATA_SUBJECTS:return n.P6.DATA_SUBJECT;case l.Lo.DATA_USES:return n.P6.DATA_USE;default:return}}}}]);
1
+ "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4981],{72809:function(e,t,i){var n=i(24246),l=i(52615),r=i(27378);let a=e=>{let t=e.split("."),i=[];return t.forEach(e=>{let t=i.length>0?i[i.length-1]:null;t?i.push("".concat(t,".").concat(e)):i.push(e)}),i},s=(e,t)=>{let i=a(t).filter(e=>e!==t);return e.filter(e=>i.includes(e)).length>0},o=(e,t)=>!!(e===t||e.startsWith("".concat(t,"."))),c=(e,t,i)=>{let n=null!=i?i:[];return e.forEach(e=>{e.children&&c(e.children,t,n),o(e.value,t)&&n.push(e)}),n},d=e=>{let{node:t,isChecked:i,onChecked:r,isExpanded:a,onExpanded:s,isIndeterminate:o,isDisabled:c,children:d}=e,{value:u,label:h}=t,x=!!t.children&&t.children.length>0;return(0,n.jsxs)(l.xuv,{children:[(0,n.jsxs)(l.xuv,{display:"flex",justifyContent:"space-between",_hover:{backgroundColor:"gray.100",cursor:"pointer"},onClick:()=>s(t),minHeight:8,children:[(0,n.jsx)(l.XZJ,{colorScheme:"complimentary",value:u,isChecked:!o&&i,isIndeterminate:o,isDisabled:c,onChange:()=>r(t),mx:2,"data-testid":"checkbox-".concat(h),children:h}),x?(0,n.jsx)(l.wpx,{"data-testid":"expand-".concat(h),"aria-label":a?"collapse":"expand",icon:(0,n.jsx)(l.v4q,{boxSize:5}),type:"text",onClick:()=>s(t),className:a?"rotate-180":void 0}):null]}),d&&(0,n.jsx)(l.xuv,{ml:5,children:d})]})};t.ZP=e=>{let{nodes:t,selected:i,onSelected:u,...h}=e,[x,p]=(0,r.useState)([]),[f,m]=(0,r.useState)([]);(0,r.useEffect)(()=>{let e=Array.from(new Set([...i.map(e=>a(e)).reduce((e,t)=>e.concat(t),[]),...i.map(e=>c(t,e)).reduce((e,t)=>e.concat(t),[]).map(e=>e.value)]));m(e),p(e)},[i,t]);let j=e=>{let n=[],l=[];x.indexOf(e.value)>=0?(n=x.filter(t=>!o(t,e.value)),l=i.filter(t=>!o(t,e.value))):(n=[...x,...c(t,e.value).map(e=>e.value)],l=[...i,e.value]),p(n),u(l)},v=e=>{f.indexOf(e.value)>=0?m(f.filter(t=>!o(t,e.value))):m([...f,e.value])},C=e=>{if(e.children){let l=x.indexOf(e.value)>=0,a=f.indexOf(e.value)>=0,o=c(t,e.value),u=l&&e.children.length>0&&x.filter(t=>t.startsWith("".concat(e.value,"."))).length+1!==o.length,h=s(i,e.value);return(0,n.jsx)(d,{node:e,isChecked:l,onChecked:j,isExpanded:a,onExpanded:v,isDisabled:h,isIndeterminate:u,children:a?e.children.map(e=>(0,n.jsx)(r.Fragment,{children:C(e)},e.value)):void 0})}return null};return(0,n.jsx)(l.xuv,{...h,children:t.map(e=>(0,n.jsx)(l.xuv,{children:C(e)},e.value))})}},57311:function(e,t,i){i.d(t,{Gn:function(){return s},zR:function(){return a}});var n=i(24246),l=i(52615),r=i(79711);let a=e=>{let{title:t}=e;return(0,n.jsx)(l.OXI,{py:0,display:"flex",alignItems:"flex-start",children:(0,n.jsx)(l.xvT,{mr:"2",color:"gray.700",fontSize:"lg",lineHeight:1.8,children:t})})},s=e=>{let{onDelete:t,onEditYaml:i,formId:a,isSaving:s}=e;return(0,n.jsxs)(l.zeN,{justifyContent:"space-between",children:[t?(0,n.jsx)(l.wpx,{"aria-label":"delete",icon:(0,n.jsx)(r.q,{fontSize:"small"}),onClick:t,"data-testid":"delete-btn"}):null,(0,n.jsxs)("div",{className:"flex gap-2",children:[i&&(0,n.jsx)(l.wpx,{onClick:i,"data-testid":"edit-yaml-btn",children:"Edit YAML"}),(0,n.jsx)(l.wpx,{htmlType:"submit",type:"primary","data-testid":"save-btn",form:a,loading:s,children:"Save"})]})]})};t.ZP=e=>{let{header:t,description:i,isOpen:r,onClose:a,children:s,footer:o}=e;return(0,n.jsxs)(l.dys,{placement:"right",isOpen:r,onClose:a,size:"md",children:[(0,n.jsx)(l.P1B,{}),(0,n.jsxs)(l.scA,{"data-testid":"edit-drawer-content",py:2,children:[(0,n.jsxs)(l.xuv,{display:"flex",justifyContent:"space-between",alignItems:"top",mr:2,py:2,gap:2,children:[(0,n.jsx)(l.xuv,{flex:1,minH:8,children:t}),(0,n.jsx)(l.xuv,{display:"flex",justifyContent:"flex-end",mr:2,children:(0,n.jsx)(l.wpx,{"aria-label":"Close editor",onClick:a,"data-testid":"close-drawer-btn",icon:(0,n.jsx)(l.Two,{fontSize:"smaller"})})})]}),(0,n.jsxs)(l.Ng0,{pt:1,children:[i?(0,n.jsx)(l.xvT,{fontSize:"sm",mb:4,color:"gray.600",children:i}):null,s]}),o]})]})}},79711:function(e,t,i){i.d(t,{q:function(){return l}});var n=i(24246);let l=(0,i(52615).IUT)({displayName:"TrashCanOutlineIcon",viewBox:"0 0 11 12",path:(0,n.jsx)("path",{d:"M4.5166 1.60859L4.1084 2.21875H7.22363L6.81543 1.60859C6.7832 1.56133 6.72949 1.53125 6.67148 1.53125H4.6584C4.60039 1.53125 4.54668 1.55918 4.51445 1.60859H4.5166ZM7.6748 1.03711L8.46328 2.21875H8.75977H9.79102H9.96289C10.2486 2.21875 10.4785 2.44863 10.4785 2.73438C10.4785 3.02012 10.2486 3.25 9.96289 3.25H9.79102V9.78125C9.79102 10.7309 9.02188 11.5 8.07227 11.5H3.25977C2.31016 11.5 1.54102 10.7309 1.54102 9.78125V3.25H1.36914C1.0834 3.25 0.853516 3.02012 0.853516 2.73438C0.853516 2.44863 1.0834 2.21875 1.36914 2.21875H1.54102H2.57227H2.86875L3.65723 1.03496C3.88066 0.701953 4.25664 0.5 4.6584 0.5H6.67148C7.07324 0.5 7.44922 0.701953 7.67266 1.03496L7.6748 1.03711ZM2.57227 3.25V9.78125C2.57227 10.1615 2.87949 10.4688 3.25977 10.4688H8.07227C8.45254 10.4688 8.75977 10.1615 8.75977 9.78125V3.25H2.57227ZM4.29102 4.625V9.09375C4.29102 9.28281 4.13633 9.4375 3.94727 9.4375C3.7582 9.4375 3.60352 9.28281 3.60352 9.09375V4.625C3.60352 4.43594 3.7582 4.28125 3.94727 4.28125C4.13633 4.28125 4.29102 4.43594 4.29102 4.625ZM6.00977 4.625V9.09375C6.00977 9.28281 5.85508 9.4375 5.66602 9.4375C5.47695 9.4375 5.32227 9.28281 5.32227 9.09375V4.625C5.32227 4.43594 5.47695 4.28125 5.66602 4.28125C5.85508 4.28125 6.00977 4.43594 6.00977 4.625ZM7.72852 4.625V9.09375C7.72852 9.28281 7.57383 9.4375 7.38477 9.4375C7.1957 9.4375 7.04102 9.28281 7.04102 9.09375V4.625C7.04102 4.43594 7.1957 4.28125 7.38477 4.28125C7.57383 4.28125 7.72852 4.43594 7.72852 4.625Z",fill:"currentColor"})})},43124:function(e,t,i){i.d(t,{Z:function(){return h}});var n=i(24246),l=i(52615),r=i(88038),a=i.n(r),s=i(86677);i(27378);var o=i(11596),c=i(72247),d=i(87162),u=()=>{let e=(0,s.useRouter)();return(0,n.jsx)(l.xuv,{bg:"gray.50",border:"1px solid",borderColor:"blue.400",borderRadius:"md",justifyContent:"space-between",p:5,mb:5,mt:5,children:(0,n.jsxs)(l.xuv,{children:[(0,n.jsxs)(l.Kqy,{direction:{base:"column",sm:"row"},justifyContent:"space-between",children:[(0,n.jsx)(l.xvT,{fontWeight:"semibold",children:"Configure your storage and messaging provider"}),(0,n.jsx)(l.wpx,{onClick:()=>{e.push(d.fz)},children:"Configure"})]}),(0,n.jsxs)(l.xvT,{children:["Before Fides can process your privacy requests we need two simple steps to configure your storage and email client."," "]})]})})},h=e=>{let{children:t,title:i,padded:r=!0,mainProps:d}=e,h=(0,o.hz)(),x=(0,s.useRouter)(),p="/privacy-requests"===x.pathname||"/datastore-connection"===x.pathname,f=!(h.flags.privacyRequestsConfiguration&&p),{data:m}=(0,c.JE)(void 0,{skip:f}),{data:j}=(0,c.PW)(void 0,{skip:f}),v=h.flags.privacyRequestsConfiguration&&(!m||!j)&&p;return(0,n.jsxs)(l.kCb,{"data-testid":i,direction:"column",h:"100vh",children:[(0,n.jsxs)(a(),{children:[(0,n.jsxs)("title",{children:["Fides Admin UI - ",i]}),(0,n.jsx)("meta",{name:"description",content:"Privacy Engineering Platform"}),(0,n.jsx)("link",{rel:"icon",href:"/favicon.ico"})]}),(0,n.jsxs)(l.kCb,{as:"main",direction:"column",py:r?6:0,px:r?10:0,h:r?"calc(100% - 48px)":"full",flex:1,minWidth:0,overflow:"auto",...d,children:[v?(0,n.jsx)(u,{}):null,t]})]})}},37541:function(e,t,i){var n=i(24246),l=i(52615),r=i(53614);t.Z=e=>{let{heading:t,breadcrumbItems:i,isSticky:a=!0,children:s,rightContent:o,style:c,...d}=e;return(0,n.jsxs)("div",{...d,style:a?{position:"sticky",top:"-24px",paddingTop:"24px",paddingBottom:"24px",paddingLeft:"40px",marginLeft:"-40px",paddingRight:"40px",marginRight:"-40px",marginTop:"-24px",left:0,zIndex:20,backgroundColor:"white",...c}:{paddingBottom:"24px",...c},children:[(0,n.jsxs)(l.jqI,{justify:"space-between",children:["string"==typeof t?(0,n.jsx)(l.X6q,{className:i||s?"pb-4":void 0,fontSize:"2xl","data-testid":"page-heading",children:t}):t,o&&(0,n.jsx)("div",{"data-testid":"page-header-right-content",children:o})]}),!!i&&(0,n.jsx)(r.m,{className:s?"pb-4":void 0,items:i,"data-testid":"page-breadcrumb"}),s]})}},53614:function(e,t,i){i.d(t,{m:function(){return c}});var n=i(24246),l=i(52615),r=i(79894),a=i.n(r),s=i(27378);let{Text:o}=l.AntTypography,c=e=>{let{items:t,...i}=e,r=(0,s.useMemo)(()=>null==t?void 0:t.map((e,i)=>{let r=i===t.length-1,s={...e},c=s.onClick&&!s.href;return("string"==typeof s.title&&(s.title=(0,n.jsx)(o,{style:{color:"inherit",maxWidth:r?void 0:400},ellipsis:!r,children:s.title})),c)?s.title=(0,n.jsx)(l.wpx,{type:"text",size:"small",icon:s.icon,onClick:s.onClick,className:"ant-breadcrumb-link -mt-px px-1 text-inherit",children:s.title}):(s.icon&&(s.title=(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("span",{className:"anticon align-text-bottom",children:s.icon}),s.title]})),s.href&&s.title&&(s.title=(0,n.jsx)(a(),{href:s.href,className:"ant-breadcrumb-link",children:s.title}),delete s.href)),s}),[t]);return(0,n.jsx)(l.zrq,{items:r,...i})}},8339:function(e,t,i){i.d(t,{Y:function(){return a}});var n=i(24246),l=i(52615),r=i(53614);let a=[(0,n.jsx)(l.PJP.S9g,{},"layers"),(0,n.jsx)(l.PJP.ehp,{},"dataset"),(0,n.jsx)(l.PJP.iA_,{},"table"),(0,n.jsx)(l.PJP.$4y,{style:{transform:"rotate(-90deg)"}},"field")];t.Z=e=>{let{resourceUrn:t,parentLink:i,onPathClick:l=()=>{}}=e,s=[];if(t||s.push({title:"All activity"}),t){s.push({title:"All activity",href:i});let e=t.split(".");e.forEach((t,i)=>{0!==i&&s.push({title:t,icon:a[i-1],onClick:t=>{t.preventDefault(),l(e.slice(0,i+1).join("."))}})})}return(0,n.jsx)(r.m,{"data-testid":"results-breadcrumb",items:s})}},17823:function(e,t,i){i.d(t,{e:function(){return m},Z:function(){return j}});var n=i(24246),l=i(52615),r=i(34090),a=i(27378),s=i(45007),o=i(34803),c=i(35249),d=i(64712),u=i(39514),h=i(72809),x=i(62091),p=e=>{let{dataCategories:t,checked:i,onChecked:r,buttonLabel:s}=e,o=(0,a.useMemo)(()=>(0,x.Cd)(t),[t]);return(0,n.jsxs)(l.v2r,{closeOnSelect:!0,children:[(0,n.jsx)(l.j2t,{as:l.wpx,icon:(0,n.jsx)(l.mCO,{}),className:"!bg-transparent",block:!0,"data-testid":"data-category-dropdown",children:null!=s?s:"Select data categories"}),(0,n.jsx)(l.qyq,{children:(0,n.jsxs)(l.xuv,{maxHeight:"50vh",minWidth:"300px",maxW:"full",overflowY:"scroll",children:[(0,n.jsxs)(l.xuv,{position:"sticky",top:0,zIndex:1,backgroundColor:"white",pt:1,children:[(0,n.jsx)(l.__7,{children:(0,n.jsxs)(l.xuv,{display:"flex",justifyContent:"space-between",px:2,mb:2,children:[(0,n.jsx)(l.sNh,{as:l.wpx,size:"small",className:"mr-2 !w-auto",onClick:()=>r([]),closeOnSelect:!1,"data-testid":"data-category-clear-btn",children:"Clear"}),(0,n.jsx)(l.xvT,{mr:2,children:"Data Categories"}),(0,n.jsx)(l.sNh,{as:l.wpx,size:"small",className:"!w-auto","data-testid":"data-category-done-btn",children:"Done"})]})}),(0,n.jsx)(l.RaW,{})]}),(0,n.jsx)(l.xuv,{px:2,"data-testid":"data-category-checkbox-tree",children:(0,n.jsx)(h.ZP,{nodes:o,selected:i,onSelected:r})})]})})]})},f=e=>{let{dataCategories:t,checked:i,onChecked:r,tooltip:a}=e,s=e=>{r(i.filter(t=>t!==e))},o=i.slice().sort((e,t)=>e.localeCompare(t));return(0,n.jsxs)(l.rjZ,{templateColumns:"1fr 3fr",children:[(0,n.jsx)(l.lXp,{children:"Data Categories"}),(0,n.jsxs)(l.vyj,{direction:"vertical",size:"small",children:[(0,n.jsxs)(l.xuv,{display:"flex",alignItems:"center",children:[(0,n.jsx)(l.xuv,{mr:"2",width:"100%",children:(0,n.jsx)(p,{dataCategories:t,checked:i,onChecked:r})}),(0,n.jsx)(u.Z,{label:a})]}),(0,n.jsx)(l.vyj,{direction:"vertical",size:2,"data-testid":"selected-categories",children:o.map(e=>(0,n.jsx)(l.j8w,{closable:!0,onClose:()=>{s(e)},children:e},e))})]})]})};let m="edit-collection-or-field-form";var j=e=>{var t;let{values:i,onSubmit:u,dataType:h,showDataCategories:x=!0}=e,p={description:null!==(t=i.description)&&void 0!==t?t:"",data_categories:i.data_categories},j=(0,s.v9)(c.qb).filter(e=>e.active),[v,C]=(0,a.useState)(p.data_categories||[]),g="collection"===h?d.du.description.tooltip:d.QL.description.tooltip,y="collection"===h?d.du.data_categories.tooltip:d.QL.data_categories.tooltip;return(0,n.jsx)(r.J9,{initialValues:p,onSubmit:e=>{u({...e,data_categories:v})},children:(0,n.jsx)(r.l0,{id:m,children:(0,n.jsxs)(l.Kqy,{children:[(0,n.jsx)(o.j0,{name:"description",label:"Description",tooltip:g,"data-testid":"description-input"}),x&&(0,n.jsx)(f,{dataCategories:j,checked:v,onChecked:C,tooltip:y})]})})})}},64712:function(e,t,i){i.d(t,{QL:function(){return r},du:function(){return l},tz:function(){return n}});let n={name:{tooltip:"A UI-friendly label for the Dataset."},description:{tooltip:"A human-readable description of the Dataset."},data_categories:{tooltip:"Arrays of Data Category resources, identified by fides_key, that apply to all collections in the Dataset."}},l={description:{tooltip:"A human-readable description of the collection."},data_categories:{tooltip:"Arrays of Data Category resources, identified by fides_key, that apply to all fields in the collection."}},r={description:{tooltip:"A human-readable description of the field."},data_categories:{tooltip:"Arrays of Data Category resources, identified by fides_key, that apply to this field."}}},5067:function(e,t,i){i.d(t,{Fk:function(){return c},_n:function(){return s},jC:function(){return r},qe:function(){return o}});var n=i(99729),l=i.n(n);let r=(e,t,i)=>{let n=e.collections.map((e,n)=>n===i?t:e);return{...e,collections:n}},a=(e,t,i)=>{let n=e.fields.map((e,n)=>n===i?t:e);return{...e,fields:n}},s=(e,t,i,n)=>{let l=a(e.collections[i],t,n);return r(e,l,i)},o=(e,t)=>{let i=e.collections.filter((e,i)=>i!==t);return{...e,collections:i}},c=e=>{let{dataset:t,collectionName:i,subfields:n}=e,r="",a=t.collections.findIndex(e=>e.name===i);return r+="collections[".concat(a,"]"),n&&n.forEach(e=>{let i=l()(t,r).fields.findIndex(t=>t.name===e);r+=".fields[".concat(i,"]")}),r}},91311:function(e,t,i){i.d(t,{Ch:function(){return a},Hy:function(){return s},Lo:function(){return l}});var n,l,r=i(37760);let a="root";(n=l||(l={})).DATA_CATEGORIES="Data categories",n.DATA_USES="Data uses",n.DATA_SUBJECTS="Data subjects";let s=e=>{switch(e){case"Data categories":return{UPDATE:r.Sh.DATA_CATEGORY_UPDATE,CREATE:r.Sh.DATA_CATEGORY_CREATE,DELETE:r.Sh.DATA_CATEGORY_DELETE,READ:r.Sh.DATA_CATEGORY_READ};case"Data uses":return{UPDATE:r.Sh.DATA_USE_UPDATE,CREATE:r.Sh.DATA_USE_CREATE,DELETE:r.Sh.DATA_USE_DELETE,READ:r.Sh.DATA_USE_READ};case"Data subjects":return{UPDATE:r.Sh.DATA_SUBJECT_UPDATE,CREATE:r.Sh.DATA_SUBJECT_CREATE,DELETE:r.Sh.DATA_SUBJECT_DELETE,READ:r.Sh.DATA_SUBJECT_READ};default:throw Error("Unknown taxonomy type: ".concat(e))}}},62091:function(e,t,i){i.d(t,{Cd:function(){return r},Xl:function(){return a}});var n=i(37760),l=i(91311);let r=(e,t)=>{let i;if(null==t&&e.every(e=>void 0===e.parent_key))i=e;else{let n=null!=t?t:null;i=e.filter(e=>e.parent_key===n)}return i.map(t=>{var i,n;let l=t.fides_key;return{value:t.fides_key,label:""===t.name||null==t.name?t.fides_key:t.name,description:t.description,children:r(e,l),is_default:null!==(i=t.is_default)&&void 0!==i&&i,active:null!==(n=t.active)&&void 0!==n&&n}})},a=e=>{switch(e){case l.Lo.DATA_CATEGORIES:return n.P6.DATA_CATEGORY;case l.Lo.DATA_SUBJECTS:return n.P6.DATA_SUBJECT;case l.Lo.DATA_USES:return n.P6.DATA_USE;default:return}}}}]);
@@ -1 +1 @@
1
- "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[53],{20133:function(e,t,n){n.d(t,{l:function(){return i}});var r=n(24246);let i=(0,n(96013).IUT)({displayName:"TrashCanSolidIcon",viewBox:"0 0 12 15",path:(0,r.jsx)("path",{d:"M8.37857 1.18083C8.23393 0.892838 7.93661 0.710938 7.6125 0.710938H4.3875C4.06339 0.710938 3.76607 0.892838 3.62143 1.18083L3.42857 1.56094H0.857143C0.383036 1.56094 -1.19209e-07 1.94158 -1.19209e-07 2.41094C-1.19209e-07 2.8803 0.383036 3.26094 0.857143 3.26094H11.1429C11.6162 3.26094 12 2.8803 12 2.41094C12 1.94158 11.6162 1.56094 11.1429 1.56094H8.57143L8.37857 1.18083ZM11.167 4.11094H0.857143V12.6109C0.857143 13.5486 1.62589 14.3109 2.57143 14.3109H9.45268C10.3754 14.3109 11.167 13.5486 11.167 12.6109V4.11094ZM9.02411 6.23594V12.1859C9.02411 12.4197 8.80714 12.6109 8.59554 12.6109C8.33571 12.6109 8.16696 12.4197 8.16696 12.1859V6.23594C8.16696 6.00219 8.33571 5.81094 8.59554 5.81094C8.80714 5.81094 9.02411 6.00219 9.02411 6.23594ZM6.45268 6.23594V12.1859C6.45268 12.4197 6.23571 12.6109 6.02411 12.6109C5.76429 12.6109 5.57143 12.4197 5.57143 12.1859V6.23594C5.57143 6.00219 5.76429 5.81094 6.02411 5.81094C6.23571 5.81094 6.45268 6.00219 6.45268 6.23594ZM3.85714 6.23594V12.1859C3.85714 12.4197 3.66429 12.6109 3.42857 12.6109C3.19286 12.6109 3 12.4197 3 12.1859V6.23594C3 6.00219 3.19286 5.81094 3.42857 5.81094C3.66429 5.81094 3.85714 6.00219 3.85714 6.23594Z",fill:"currentColor"})})},43124:function(e,t,n){n.d(t,{Z:function(){return p}});var r=n(24246),i=n(96013),s=n(88038),a=n.n(s),o=n(86677);n(27378);var l=n(11596),c=n(72247),u=n(87162),d=()=>{let e=(0,o.useRouter)();return(0,r.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,r.jsxs)(i.xuv,{children:[(0,r.jsxs)(i.Kqy,{direction:{base:"column",sm:"row"},justifyContent:"space-between",children:[(0,r.jsx)(i.xvT,{fontWeight:"semibold",children:"Configure your storage and messaging provider"}),(0,r.jsx)(i.wpx,{onClick:()=>{e.push(u.fz)},children:"Configure"})]}),(0,r.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:t,title:n,padded:s=!0,mainProps:u}=e,p=(0,l.hz)(),f=(0,o.useRouter)(),m="/privacy-requests"===f.pathname||"/datastore-connection"===f.pathname,h=!(p.flags.privacyRequestsConfiguration&&m),{data:x}=(0,c.JE)(void 0,{skip:h}),{data:g}=(0,c.PW)(void 0,{skip:h}),v=p.flags.privacyRequestsConfiguration&&(!x||!g)&&m;return(0,r.jsxs)(i.kCb,{"data-testid":n,direction:"column",h:"100vh",children:[(0,r.jsxs)(a(),{children:[(0,r.jsxs)("title",{children:["Fides Admin UI - ",n]}),(0,r.jsx)("meta",{name:"description",content:"Privacy Engineering Platform"}),(0,r.jsx)("link",{rel:"icon",href:"/favicon.ico"})]}),(0,r.jsxs)(i.kCb,{as:"main",direction:"column",py:s?6:0,px:s?10:0,h:s?"calc(100% - 48px)":"full",flex:1,minWidth:0,overflow:"auto",...u,children:[v?(0,r.jsx)(d,{}):null,t]})]})}},37541:function(e,t,n){var r=n(24246),i=n(96013),s=n(53614);t.Z=e=>{let{heading:t,breadcrumbItems:n,isSticky:a=!0,children:o,rightContent:l,style:c,...u}=e;return(0,r.jsxs)("div",{...u,style:a?{position:"sticky",top:"-24px",paddingTop:"24px",paddingBottom:"24px",paddingLeft:"40px",marginLeft:"-40px",paddingRight:"40px",marginRight:"-40px",marginTop:"-24px",left:0,zIndex:20,backgroundColor:"white",...c}:{paddingBottom:"24px",...c},children:[(0,r.jsxs)(i.jqI,{justify:"space-between",children:["string"==typeof t?(0,r.jsx)(i.X6q,{className:n||o?"pb-4":void 0,fontSize:"2xl","data-testid":"page-heading",children:t}):t,l&&(0,r.jsx)("div",{"data-testid":"page-header-right-content",children:l})]}),!!n&&(0,r.jsx)(s.m,{className:o?"pb-4":void 0,items:n,"data-testid":"page-breadcrumb"}),o]})}},38615:function(e,t,n){n.d(t,{Tg:function(){return a}});var r=n(24246),i=n(44296),s=n(96451);let a=e=>(0,i.C)(s.uu).filter(t=>e.includes(t)).length>0;t.ZP=e=>{let{scopes:t,children:n}=e;return a(t)?(0,r.jsx)(r.Fragment,{children:n}):null}},33312:function(e,t,n){var r=n(24246),i=n(96013);t.Z=e=>{let{search:t,onChange:n,withIcon:s,onClear:a,placeholder:o,...l}=e;return(0,r.jsxs)(i.vyj.Compact,{className:"w-96","data-testid":"search-bar",children:[(0,r.jsx)(i.uFc,{autoComplete:"off",value:t,onChange:e=>n(e.target.value),placeholder:o||"Search...",prefix:s?(0,r.jsx)(i.PTu,{boxSize:4}):void 0,...l}),a?(0,r.jsx)(i.wpx,{onClick:a,children:"Clear"}):null]})}},60136:function(e,t,n){n.d(t,{D4:function(){return s.D4},MM:function(){return p},Ot:function(){return c},c6:function(){return i},cj:function(){return m},e$:function(){return o},fn:function(){return l},iC:function(){return f},nU:function(){return d},tB:function(){return u}});var r,i,s=n(41164);let a="An unexpected error occurred. Please try again.",o=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:a;if((0,s.Bw)(e)){if((0,s.hE)(e.data))return e.data.detail;if((0,s.cz)(e.data)){var n;let t=null===(n=e.data.detail)||void 0===n?void 0:n[0];return"".concat(null==t?void 0:t.msg,": ").concat(null==t?void 0:t.loc)}if(409===e.status&&(0,s.Dy)(e.data)||404===e.status&&(0,s.XD)(e.data))return"".concat(e.data.detail.error," (").concat(e.data.detail.fides_key,")")}return t};function l(e){return"object"==typeof e&&null!=e&&"status"in e}function c(e){return"object"==typeof e&&null!=e&&"data"in e&&"string"==typeof e.data.detail}function u(e){return"object"==typeof e&&null!=e&&"data"in e&&Array.isArray(e.data.detail)}let d=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{status:500,message:a};if((0,s.oK)(e))return{status:e.originalStatus,message:e.data};if((0,s.Bw)(e)){let{status:n}=e;return{status:n,message:o(e,t.message)}}return t},p=e=>Object.entries(e).map(e=>({value:e[1],label:e[1]}));(r=i||(i={})).GVL="gvl",r.AC="gacp",r.COMPASS="compass";let f={gvl:{label:"GVL",fullName:"Global Vendor List"},gacp:{label:"AC",fullName:"Google Additional Consent List"},compass:{label:"",fullName:""}},m=e=>{let t=e.split(".")[0];return"gacp"===t?"gacp":"gvl"===t?"gvl":"compass"}},53614:function(e,t,n){n.d(t,{m:function(){return c}});var r=n(24246),i=n(96013),s=n(79894),a=n.n(s),o=n(27378);let{Text:l}=i.AntTypography,c=e=>{let{items:t,...n}=e,s=(0,o.useMemo)(()=>null==t?void 0:t.map((e,n)=>{let s=n===t.length-1,o={...e},c=o.onClick&&!o.href;return("string"==typeof o.title&&(o.title=(0,r.jsx)(l,{style:{color:"inherit",maxWidth:s?void 0:400},ellipsis:!s,children:o.title})),c)?o.title=(0,r.jsx)(i.wpx,{type:"text",size:"small",icon:o.icon,onClick:o.onClick,className:"ant-breadcrumb-link -mt-px px-1 text-inherit",children:o.title}):(o.icon&&(o.title=(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("span",{className:"anticon align-text-bottom",children:o.icon}),o.title]})),o.href&&o.title&&(o.title=(0,r.jsx)(a(),{href:o.href,className:"ant-breadcrumb-link",children:o.title}),delete o.href)),o}),[t]);return(0,r.jsx)(i.zrq,{items:s,...n})}},16781:function(e,t,n){n.d(t,{MA:function(){return o},Vo:function(){return c},t5:function(){return l}});var r=n(24246),i=n(96013);let s=e=>{let{children:t}=e;return(0,r.jsxs)(i.xvT,{"data-testid":"toast-success-msg",children:[(0,r.jsx)("strong",{children:"Success:"})," ",t]})},a=e=>{let{children:t}=e;return(0,r.jsxs)(i.xvT,{"data-testid":"toast-error-msg",children:[(0,r.jsx)("strong",{children:"Error:"})," ",t]})},o={variant:"subtle",position:"top",description:"",duration:5e3,status:"success",isClosable:!0},l=e=>{let t=(0,r.jsx)(s,{children:e});return{...o,description:t}},c=e=>{let t=(0,r.jsx)(a,{children:e});return{...o,description:t,status:"error"}}},72763:function(e,t,n){var r=n(24246),i=n(96013),s=n(34090),a=n(86677);n(27378);var o=n(59389),l=n(44296),c=n(34803),u=n(60136),d=n(87162),p=n(16781),f=n(31756);let m={username:"",usernameConfirmation:""},h=e=>{let{id:t,username:n,onClose:r}=e,s=(0,i.pmc)(),c=(0,a.useRouter)(),m=(0,l.T)(),[h]=(0,f.I1)();return{handleDeleteUser:async()=>{let e=await h(t);(0,u.D4)(e)?s((0,p.Vo)((0,u.e$)(e.error))):(s((0,p.t5)("Successfully deleted user")),r()),m((0,f.Vv)(void 0)),c.push(d.e3)},validationSchema:o.Ry().shape({usernameConfirmation:o.Z_().required().oneOf([n],"Confirmation input must match the username").label("Username confirmation")})}};t.Z=e=>{let{user:t,...n}=e,{isOpen:a,onClose:o}=n,{handleDeleteUser:l,validationSchema:u}=h({id:t.id,username:t.username,onClose:o});return(0,r.jsxs)(i.u_l,{isCentered:!0,isOpen:a,onClose:o,children:[(0,r.jsx)(i.ZAr,{}),(0,r.jsx)(i.hzk,{"data-testid":"delete-user-modal",children:(0,r.jsx)(s.J9,{initialValues:m,validationSchema:u,onSubmit:l,children:e=>{let{isSubmitting:n,dirty:a,isValid:l}=e;return(0,r.jsxs)(s.l0,{children:[(0,r.jsx)(i.xBx,{children:"Delete User"}),(0,r.jsx)(i.olH,{}),(0,r.jsxs)(i.fef,{children:[(0,r.jsxs)(i.bZj,{status:"warning",overflow:"visible",colorScheme:"warn",marginBottom:4,children:[(0,r.jsx)(i.zMQ,{}),(0,r.jsxs)(i.XaZ,{children:[(0,r.jsx)(i.xvT,{as:"span",mb:2,children:"You are about to delete the user\xa0"}),(0,r.jsxs)(i.xvT,{as:"span",mb:2,fontStyle:"italic",fontWeight:"semibold",children:[t.username,"."]}),(0,r.jsx)(i.xvT,{mb:2,children:"This action cannot be undone. To confirm, please enter the user’s username below."})]})]}),(0,r.jsx)(i.Kqy,{direction:"column",spacing:4,children:(0,r.jsx)(c.j0,{name:"usernameConfirmation",label:"Confirm username",placeholder:"Type the username to delete"})})]}),(0,r.jsx)(i.mzw,{children:(0,r.jsxs)("div",{className:"flex w-full gap-2",children:[(0,r.jsx)(i.wpx,{onClick:o,className:"w-1/2",children:"Cancel"}),(0,r.jsx)(i.wpx,{type:"primary",disabled:!a||!l,loading:n,htmlType:"submit",className:"w-1/2","data-testid":"submit-btn",children:"Delete User"})]})})]})}})})]})}},49646:function(e,t,n){n.d(t,{K:function(){return i}});var r=n(37760);let i=[{label:"Owner",permissions_label:"Owner",roleKey:r.A7.OWNER,description:"Owners have view and edit access to the whole organization and can create new users"},{label:"Contributor",permissions_label:"Contributor",roleKey:r.A7.CONTRIBUTOR,description:"Contributors can create new users and have view and edit access to the whole organization. Contributors cannot configure storage and messaging services"},{label:"Viewer",permissions_label:"Viewer",roleKey:r.A7.VIEWER,description:"Viewers have view access to the Data Map and all systems"},{label:"Viewer & Approver",permissions_label:"Viewer & Approver",roleKey:r.A7.VIEWER_AND_APPROVER,description:"Viewer & Approvers have view access to the Data Map but can also manage Privacy Requests"},{label:"Approver",permissions_label:"Approver",roleKey:r.A7.APPROVER,description:"Approvers can only access the Privacy Requests portal to manage requests"}]},41164:function(e,t,n){n.d(t,{Bw:function(){return a},D4:function(){return i},Dy:function(){return l},XD:function(){return c},cz:function(){return u},hE:function(){return o},oK:function(){return s}});var r=n(76649);let i=e=>"error"in e,s=e=>(0,r.Ln)({status:"string"},e)&&"PARSING_ERROR"===e.status,a=e=>(0,r.Ln)({status:"number",data:{}},e),o=e=>(0,r.Ln)({detail:"string"},e),l=e=>(0,r.Ln)({detail:{error:"string",resource_type:"string",fides_key:"string"}},e),c=e=>(0,r.Ln)({detail:{error:"string",resource_type:"string",fides_key:"string"}},e),u=e=>(0,r.Ln)({detail:[{loc:["string","number"],msg:"string",type:"string"}]},e)},76649:function(e,t,n){n.d(t,{Ln:function(){return r}});let r=(e,t)=>s(e,t),i=Symbol("SOME"),s=(e,t)=>"string"==typeof e?e===typeof t:Array.isArray(e)?i in e?e.some(e=>s(e,t)):!!Array.isArray(t)&&(0===e.length||t.every(t=>e.some(e=>s(e,t)))):"object"==typeof t&&null!==t&&Object.entries(e).every(([e,n])=>s(n,t[e]));class a{static narrow(e){return new a(t=>r(e,t))}constructor(e){this.NF=void 0,this.NF=e}satisfied(e){return this.NF(e)}build(e){return e}and(e){let t=this.NF,n=e instanceof a?e.NF:e instanceof Function?e:t=>r(e,t);return new a(e=>t(e)&&n(e))}}new a(e=>!0)}}]);
1
+ "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[53],{20133:function(e,t,n){n.d(t,{l:function(){return i}});var r=n(24246);let i=(0,n(52615).IUT)({displayName:"TrashCanSolidIcon",viewBox:"0 0 12 15",path:(0,r.jsx)("path",{d:"M8.37857 1.18083C8.23393 0.892838 7.93661 0.710938 7.6125 0.710938H4.3875C4.06339 0.710938 3.76607 0.892838 3.62143 1.18083L3.42857 1.56094H0.857143C0.383036 1.56094 -1.19209e-07 1.94158 -1.19209e-07 2.41094C-1.19209e-07 2.8803 0.383036 3.26094 0.857143 3.26094H11.1429C11.6162 3.26094 12 2.8803 12 2.41094C12 1.94158 11.6162 1.56094 11.1429 1.56094H8.57143L8.37857 1.18083ZM11.167 4.11094H0.857143V12.6109C0.857143 13.5486 1.62589 14.3109 2.57143 14.3109H9.45268C10.3754 14.3109 11.167 13.5486 11.167 12.6109V4.11094ZM9.02411 6.23594V12.1859C9.02411 12.4197 8.80714 12.6109 8.59554 12.6109C8.33571 12.6109 8.16696 12.4197 8.16696 12.1859V6.23594C8.16696 6.00219 8.33571 5.81094 8.59554 5.81094C8.80714 5.81094 9.02411 6.00219 9.02411 6.23594ZM6.45268 6.23594V12.1859C6.45268 12.4197 6.23571 12.6109 6.02411 12.6109C5.76429 12.6109 5.57143 12.4197 5.57143 12.1859V6.23594C5.57143 6.00219 5.76429 5.81094 6.02411 5.81094C6.23571 5.81094 6.45268 6.00219 6.45268 6.23594ZM3.85714 6.23594V12.1859C3.85714 12.4197 3.66429 12.6109 3.42857 12.6109C3.19286 12.6109 3 12.4197 3 12.1859V6.23594C3 6.00219 3.19286 5.81094 3.42857 5.81094C3.66429 5.81094 3.85714 6.00219 3.85714 6.23594Z",fill:"currentColor"})})},43124:function(e,t,n){n.d(t,{Z:function(){return p}});var r=n(24246),i=n(52615),s=n(88038),a=n.n(s),o=n(86677);n(27378);var l=n(11596),c=n(72247),u=n(87162),d=()=>{let e=(0,o.useRouter)();return(0,r.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,r.jsxs)(i.xuv,{children:[(0,r.jsxs)(i.Kqy,{direction:{base:"column",sm:"row"},justifyContent:"space-between",children:[(0,r.jsx)(i.xvT,{fontWeight:"semibold",children:"Configure your storage and messaging provider"}),(0,r.jsx)(i.wpx,{onClick:()=>{e.push(u.fz)},children:"Configure"})]}),(0,r.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:t,title:n,padded:s=!0,mainProps:u}=e,p=(0,l.hz)(),f=(0,o.useRouter)(),m="/privacy-requests"===f.pathname||"/datastore-connection"===f.pathname,h=!(p.flags.privacyRequestsConfiguration&&m),{data:x}=(0,c.JE)(void 0,{skip:h}),{data:g}=(0,c.PW)(void 0,{skip:h}),v=p.flags.privacyRequestsConfiguration&&(!x||!g)&&m;return(0,r.jsxs)(i.kCb,{"data-testid":n,direction:"column",h:"100vh",children:[(0,r.jsxs)(a(),{children:[(0,r.jsxs)("title",{children:["Fides Admin UI - ",n]}),(0,r.jsx)("meta",{name:"description",content:"Privacy Engineering Platform"}),(0,r.jsx)("link",{rel:"icon",href:"/favicon.ico"})]}),(0,r.jsxs)(i.kCb,{as:"main",direction:"column",py:s?6:0,px:s?10:0,h:s?"calc(100% - 48px)":"full",flex:1,minWidth:0,overflow:"auto",...u,children:[v?(0,r.jsx)(d,{}):null,t]})]})}},37541:function(e,t,n){var r=n(24246),i=n(52615),s=n(53614);t.Z=e=>{let{heading:t,breadcrumbItems:n,isSticky:a=!0,children:o,rightContent:l,style:c,...u}=e;return(0,r.jsxs)("div",{...u,style:a?{position:"sticky",top:"-24px",paddingTop:"24px",paddingBottom:"24px",paddingLeft:"40px",marginLeft:"-40px",paddingRight:"40px",marginRight:"-40px",marginTop:"-24px",left:0,zIndex:20,backgroundColor:"white",...c}:{paddingBottom:"24px",...c},children:[(0,r.jsxs)(i.jqI,{justify:"space-between",children:["string"==typeof t?(0,r.jsx)(i.X6q,{className:n||o?"pb-4":void 0,fontSize:"2xl","data-testid":"page-heading",children:t}):t,l&&(0,r.jsx)("div",{"data-testid":"page-header-right-content",children:l})]}),!!n&&(0,r.jsx)(s.m,{className:o?"pb-4":void 0,items:n,"data-testid":"page-breadcrumb"}),o]})}},38615:function(e,t,n){n.d(t,{Tg:function(){return a}});var r=n(24246),i=n(44296),s=n(96451);let a=e=>(0,i.C)(s.uu).filter(t=>e.includes(t)).length>0;t.ZP=e=>{let{scopes:t,children:n}=e;return a(t)?(0,r.jsx)(r.Fragment,{children:n}):null}},33312:function(e,t,n){var r=n(24246),i=n(52615);t.Z=e=>{let{search:t,onChange:n,withIcon:s,onClear:a,placeholder:o,...l}=e;return(0,r.jsxs)(i.vyj.Compact,{className:"w-96","data-testid":"search-bar",children:[(0,r.jsx)(i.uFc,{autoComplete:"off",value:t,onChange:e=>n(e.target.value),placeholder:o||"Search...",prefix:s?(0,r.jsx)(i.PTu,{boxSize:4}):void 0,...l}),a?(0,r.jsx)(i.wpx,{onClick:a,children:"Clear"}):null]})}},60136:function(e,t,n){n.d(t,{D4:function(){return s.D4},MM:function(){return p},Ot:function(){return c},c6:function(){return i},cj:function(){return m},e$:function(){return o},fn:function(){return l},iC:function(){return f},nU:function(){return d},tB:function(){return u}});var r,i,s=n(41164);let a="An unexpected error occurred. Please try again.",o=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:a;if((0,s.Bw)(e)){if((0,s.hE)(e.data))return e.data.detail;if((0,s.cz)(e.data)){var n;let t=null===(n=e.data.detail)||void 0===n?void 0:n[0];return"".concat(null==t?void 0:t.msg,": ").concat(null==t?void 0:t.loc)}if(409===e.status&&(0,s.Dy)(e.data)||404===e.status&&(0,s.XD)(e.data))return"".concat(e.data.detail.error," (").concat(e.data.detail.fides_key,")")}return t};function l(e){return"object"==typeof e&&null!=e&&"status"in e}function c(e){return"object"==typeof e&&null!=e&&"data"in e&&"string"==typeof e.data.detail}function u(e){return"object"==typeof e&&null!=e&&"data"in e&&Array.isArray(e.data.detail)}let d=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{status:500,message:a};if((0,s.oK)(e))return{status:e.originalStatus,message:e.data};if((0,s.Bw)(e)){let{status:n}=e;return{status:n,message:o(e,t.message)}}return t},p=e=>Object.entries(e).map(e=>({value:e[1],label:e[1]}));(r=i||(i={})).GVL="gvl",r.AC="gacp",r.COMPASS="compass";let f={gvl:{label:"GVL",fullName:"Global Vendor List"},gacp:{label:"AC",fullName:"Google Additional Consent List"},compass:{label:"",fullName:""}},m=e=>{let t=e.split(".")[0];return"gacp"===t?"gacp":"gvl"===t?"gvl":"compass"}},53614:function(e,t,n){n.d(t,{m:function(){return c}});var r=n(24246),i=n(52615),s=n(79894),a=n.n(s),o=n(27378);let{Text:l}=i.AntTypography,c=e=>{let{items:t,...n}=e,s=(0,o.useMemo)(()=>null==t?void 0:t.map((e,n)=>{let s=n===t.length-1,o={...e},c=o.onClick&&!o.href;return("string"==typeof o.title&&(o.title=(0,r.jsx)(l,{style:{color:"inherit",maxWidth:s?void 0:400},ellipsis:!s,children:o.title})),c)?o.title=(0,r.jsx)(i.wpx,{type:"text",size:"small",icon:o.icon,onClick:o.onClick,className:"ant-breadcrumb-link -mt-px px-1 text-inherit",children:o.title}):(o.icon&&(o.title=(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("span",{className:"anticon align-text-bottom",children:o.icon}),o.title]})),o.href&&o.title&&(o.title=(0,r.jsx)(a(),{href:o.href,className:"ant-breadcrumb-link",children:o.title}),delete o.href)),o}),[t]);return(0,r.jsx)(i.zrq,{items:s,...n})}},16781:function(e,t,n){n.d(t,{MA:function(){return o},Vo:function(){return c},t5:function(){return l}});var r=n(24246),i=n(52615);let s=e=>{let{children:t,title:n="Success"}=e;return(0,r.jsxs)(i.xvT,{"data-testid":"toast-success-msg",children:[(0,r.jsxs)("strong",{children:[n,":"]})," ",t]})},a=e=>{let{children:t}=e;return(0,r.jsxs)(i.xvT,{"data-testid":"toast-error-msg",children:[(0,r.jsx)("strong",{children:"Error:"})," ",t]})},o={variant:"subtle",position:"top",description:"",duration:5e3,status:"success",isClosable:!0},l=(e,t)=>{let n=(0,r.jsx)(s,{title:t,children:e});return{...o,description:n}},c=e=>{let t=(0,r.jsx)(a,{children:e});return{...o,description:t,status:"error"}}},72763:function(e,t,n){var r=n(24246),i=n(52615),s=n(34090),a=n(86677);n(27378);var o=n(59389),l=n(44296),c=n(34803),u=n(60136),d=n(87162),p=n(16781),f=n(31756);let m={username:"",usernameConfirmation:""},h=e=>{let{id:t,username:n,onClose:r}=e,s=(0,i.pmc)(),c=(0,a.useRouter)(),m=(0,l.T)(),[h]=(0,f.I1)();return{handleDeleteUser:async()=>{let e=await h(t);(0,u.D4)(e)?s((0,p.Vo)((0,u.e$)(e.error))):(s((0,p.t5)("Successfully deleted user")),r()),m((0,f.Vv)(void 0)),c.push(d.e3)},validationSchema:o.Ry().shape({usernameConfirmation:o.Z_().required().oneOf([n],"Confirmation input must match the username").label("Username confirmation")})}};t.Z=e=>{let{user:t,...n}=e,{isOpen:a,onClose:o}=n,{handleDeleteUser:l,validationSchema:u}=h({id:t.id,username:t.username,onClose:o});return(0,r.jsxs)(i.u_l,{isCentered:!0,isOpen:a,onClose:o,children:[(0,r.jsx)(i.ZAr,{}),(0,r.jsx)(i.hzk,{"data-testid":"delete-user-modal",children:(0,r.jsx)(s.J9,{initialValues:m,validationSchema:u,onSubmit:l,children:e=>{let{isSubmitting:n,dirty:a,isValid:l}=e;return(0,r.jsxs)(s.l0,{children:[(0,r.jsx)(i.xBx,{children:"Delete User"}),(0,r.jsx)(i.olH,{}),(0,r.jsxs)(i.fef,{children:[(0,r.jsxs)(i.bZj,{status:"warning",overflow:"visible",colorScheme:"warn",marginBottom:4,children:[(0,r.jsx)(i.zMQ,{}),(0,r.jsxs)(i.XaZ,{children:[(0,r.jsx)(i.xvT,{as:"span",mb:2,children:"You are about to delete the user\xa0"}),(0,r.jsxs)(i.xvT,{as:"span",mb:2,fontStyle:"italic",fontWeight:"semibold",children:[t.username,"."]}),(0,r.jsx)(i.xvT,{mb:2,children:"This action cannot be undone. To confirm, please enter the user’s username below."})]})]}),(0,r.jsx)(i.Kqy,{direction:"column",spacing:4,children:(0,r.jsx)(c.j0,{name:"usernameConfirmation",label:"Confirm username",placeholder:"Type the username to delete"})})]}),(0,r.jsx)(i.mzw,{children:(0,r.jsxs)("div",{className:"flex w-full gap-2",children:[(0,r.jsx)(i.wpx,{onClick:o,className:"w-1/2",children:"Cancel"}),(0,r.jsx)(i.wpx,{type:"primary",disabled:!a||!l,loading:n,htmlType:"submit",className:"w-1/2","data-testid":"submit-btn",children:"Delete User"})]})})]})}})})]})}},49646:function(e,t,n){n.d(t,{K:function(){return i}});var r=n(37760);let i=[{label:"Owner",permissions_label:"Owner",roleKey:r.A7.OWNER,description:"Owners have view and edit access to the whole organization and can create new users"},{label:"Contributor",permissions_label:"Contributor",roleKey:r.A7.CONTRIBUTOR,description:"Contributors can create new users and have view and edit access to the whole organization. Contributors cannot configure storage and messaging services"},{label:"Viewer",permissions_label:"Viewer",roleKey:r.A7.VIEWER,description:"Viewers have view access to the Data Map and all systems"},{label:"Viewer & Approver",permissions_label:"Viewer & Approver",roleKey:r.A7.VIEWER_AND_APPROVER,description:"Viewer & Approvers have view access to the Data Map but can also manage Privacy Requests"},{label:"Approver",permissions_label:"Approver",roleKey:r.A7.APPROVER,description:"Approvers can only access the Privacy Requests portal to manage requests"}]},41164:function(e,t,n){n.d(t,{Bw:function(){return a},D4:function(){return i},Dy:function(){return l},XD:function(){return c},cz:function(){return u},hE:function(){return o},oK:function(){return s}});var r=n(76649);let i=e=>"error"in e,s=e=>(0,r.Ln)({status:"string"},e)&&"PARSING_ERROR"===e.status,a=e=>(0,r.Ln)({status:"number",data:{}},e),o=e=>(0,r.Ln)({detail:"string"},e),l=e=>(0,r.Ln)({detail:{error:"string",resource_type:"string",fides_key:"string"}},e),c=e=>(0,r.Ln)({detail:{error:"string",resource_type:"string",fides_key:"string"}},e),u=e=>(0,r.Ln)({detail:[{loc:["string","number"],msg:"string",type:"string"}]},e)},76649:function(e,t,n){n.d(t,{Ln:function(){return r}});let r=(e,t)=>s(e,t),i=Symbol("SOME"),s=(e,t)=>"string"==typeof e?e===typeof t:Array.isArray(e)?i in e?e.some(e=>s(e,t)):!!Array.isArray(t)&&(0===e.length||t.every(t=>e.some(e=>s(e,t)))):"object"==typeof t&&null!==t&&Object.entries(e).every(([e,n])=>s(n,t[e]));class a{static narrow(e){return new a(t=>r(e,t))}constructor(e){this.NF=void 0,this.NF=e}satisfied(e){return this.NF(e)}build(e){return e}and(e){let t=this.NF,n=e instanceof a?e.NF:e instanceof Function?e:t=>r(e,t);return new a(e=>t(e)&&n(e))}}new a(e=>!0)}}]);
@@ -1 +1 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5318],{95372:function(e){e.exports=function(e,n,t,r){for(var i=e.length,a=t+(r?1:-1);r?a--:++a<i;)if(n(e[a],a,e))return a;return -1}},74833:function(e,n,t){var r=t(56127),i=/^\s+/;e.exports=function(e){return e?e.slice(0,r(e)+1).replace(i,""):e}},56632:function(e,n,t){var r=t(89278),i=t(80068),a=t(50098);e.exports=function(e){return function(n,t,s){var l=Object(n);if(!i(n)){var u=r(t,3);n=a(n),t=function(e){return u(l[e],e,l)}}var o=e(n,t,s);return o>-1?l[u?n[o]:o]:void 0}}},56127:function(e){var n=/\s/;e.exports=function(e){for(var t=e.length;t--&&n.test(e.charAt(t)););return t}},66726:function(e,n,t){var r=t(11611),i=t(82846),a=t(91936),s=Math.max,l=Math.min;e.exports=function(e,n,t){var u,o,c,d,f,m,v=0,x=!1,h=!1,g=!0;if("function"!=typeof e)throw TypeError("Expected a function");function p(n){var t=u,r=o;return u=o=void 0,v=n,d=e.apply(r,t)}function j(e){var t=e-m,r=e-v;return void 0===m||t>=n||t<0||h&&r>=c}function y(){var e,t,r,a=i();if(j(a))return b(a);f=setTimeout(y,(e=a-m,t=a-v,r=n-e,h?l(r,c-t):r))}function b(e){return(f=void 0,g&&u)?p(e):(u=o=void 0,d)}function C(){var e,t=i(),r=j(t);if(u=arguments,o=this,m=t,r){if(void 0===f)return v=e=m,f=setTimeout(y,n),x?p(e):d;if(h)return clearTimeout(f),f=setTimeout(y,n),p(m)}return void 0===f&&(f=setTimeout(y,n)),d}return n=a(n)||0,r(t)&&(x=!!t.leading,c=(h="maxWait"in t)?s(a(t.maxWait)||0,n):c,g="trailing"in t?!!t.trailing:g),C.cancel=function(){void 0!==f&&clearTimeout(f),v=0,u=m=o=f=void 0},C.flush=function(){return void 0===f?d:b(i())},C}},64925:function(e,n,t){var r=t(56632)(t(66259));e.exports=r},66259:function(e,n,t){var r=t(95372),i=t(89278),a=t(47991),s=Math.max;e.exports=function(e,n,t){var l=null==e?0:e.length;if(!l)return -1;var u=null==t?0:a(t);return u<0&&(u=s(l+u,0)),r(e,i(n,3),u)}},82846:function(e,n,t){var r=t(77400);e.exports=function(){return r.Date.now()}},94919:function(e,n,t){var r=t(91936),i=1/0;e.exports=function(e){return e?(e=r(e))===i||e===-i?(e<0?-1:1)*17976931348623157e292:e==e?e:0:0===e?e:0}},47991:function(e,n,t){var r=t(94919);e.exports=function(e){var n=r(e),t=n%1;return n==n?t?n-t:n:0}},91936:function(e,n,t){var r=t(74833),i=t(11611),a=t(55193),s=0/0,l=/^[-+]0x[0-9a-f]+$/i,u=/^0b[01]+$/i,o=/^0o[0-7]+$/i,c=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(a(e))return s;if(i(e)){var n="function"==typeof e.valueOf?e.valueOf():e;e=i(n)?n+"":n}if("string"!=typeof e)return 0===e?e:+e;e=r(e);var t=u.test(e);return t||o.test(e)?c(e.slice(2),t?2:8):l.test(e)?s:+e}},19310:function(e,n,t){"use strict";var r=t(24246),i=t(64925),a=t.n(i),s=t(27378),l=t(44296),u=t(91650),o=t(79851),c=t(47411);let d=()=>{let{isLoading:e}=(0,o.fd)(),n=(0,l.C)(o.U3),{isLoading:t}=(0,c.MO)(),r=(0,l.C)(c.qb),{isLoading:i}=(0,u.te)();return{dataUses:n,dataSubjects:(0,l.C)(u.ZL),dataCategories:r,isLoading:e||t||i}};n.Z=()=>{let{dataUses:e,dataCategories:n,dataSubjects:t,isLoading:i}=d(),l=function(e){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return e.split(".").slice(0,n).join(".")},u=function(e,n){let t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,r=n(e);if(!r)return{};let i=n(l(e,t)),a=!!r.parent_key;return{name:r.name||void 0,primaryName:a&&(null==i?void 0:i.name)!==r.name&&(null==i?void 0:i.name)||void 0}},o=function(e,n){let t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,{name:i,primaryName:a}=u(e,n,t);return i?a?(0,r.jsxs)(s.Fragment,{children:[(0,r.jsxs)("strong",{children:[a,":"]})," ",i]},e):(0,r.jsx)("strong",{children:i},e):e},c=n=>a()(e,{fides_key:n}),f=e=>a()(n,{fides_key:e}),m=e=>a()(t,{fides_key:e});return{getDataUses:()=>e,getDataUseByKey:c,getDataUseDisplayName:e=>o(e,c,1),getDataUseDisplayNameProps:e=>u(e,c,1),getDataCategories:()=>n,getDataCategoryByKey:f,getDataCategoryDisplayName:e=>o(e,f,2),getDataCategoryDisplayNameProps:e=>u(e,f,2),getDataSubjects:()=>t,getDataSubjectByKey:m,getDataSubjectDisplayName:e=>{let n=m(e);return n?n.name:e},getPrimaryKey:l,isLoading:i}}},22770:function(e,n,t){"use strict";t.d(n,{M:function(){return u}});var r=t(24246),i=t(66726),a=t.n(i),s=t(27378),l=t(33312);let u=e=>{let{value:n,onChange:t}=e,[i,u]=(0,s.useState)(n),o=a()(t,500),c=(0,s.useCallback)(e=>{u(e),o(e)},[]);return(0,r.jsx)(l.Z,{search:i,onChange:c,onClear:()=>{u(""),t("")}})}},43894:function(e,n,t){"use strict";t.d(n,{Sv:function(){return v},Yb:function(){return m},dQ:function(){return x},lm:function(){return h}});var r=t(24246),i=t(96013),a=t(34090),s=t(27378),l=t(44296),u=t(34803),o=t(39514),c=t(96878),d=t(62711);let f=(e,n,t)=>{var r,i;let[u,o,{setValue:f,setTouched:m}]=(0,a.U$)({name:e,type:t||void 0}),v=!!(o.touched&&o.error),{error:x}=o,h={...u,value:null!==(r=u.value)&&void 0!==r?r:""},[g,p]=(0,s.useState)(null!==(i=h.value)&&void 0!==i?i:""),{values:j}=(0,a.u6)(),{vendor_id:y}=j,b=(0,l.C)((0,c.$e)(y||"")),C=(0,l.C)(d.bN),I=(0,s.useRef)();return(0,s.useEffect)(()=>{"showing"===C&&p(h.value)},[C,p]),(0,s.useEffect)(()=>{if("showing"===C&&b){let t=n?n(b):b[e];h.value!==t&&(f(t),setTimeout(()=>{var e;m(!0),null===(e=I.current)||void 0===e||e.blur()},300))}},[C,f,b,I.current]),(0,s.useEffect)(()=>{"hiding"===C&&f(g)},[C,f,g]),{field:h,isInvalid:v,isShowingSuggestions:C,error:x,inputRef:I}},m=e=>{let{label:n,tooltip:t,disabled:a,isRequired:s=!1,dictField:l,name:c,placeholder:d,id:m}=e,{field:v,isInvalid:x,isShowingSuggestions:h,error:g,inputRef:p}=f(c,l);return(0,r.jsx)(i.NIc,{isInvalid:x,isRequired:s,children:(0,r.jsxs)(i.gCW,{alignItems:"start",children:[(0,r.jsxs)(i.kCb,{alignItems:"center",children:[(0,r.jsx)(u.__,{htmlFor:m||c,fontSize:"xs",my:0,mr:1,children:n}),t?(0,r.jsx)(o.Z,{label:t}):null]}),(0,r.jsx)(u.oi,{...v,ref:p,isRequired:s,isDisabled:a,"data-testid":"input-".concat(v.name),placeholder:d,isPassword:!1,color:"showing"===h?"complimentary.500":"gray.800"}),(0,r.jsx)(u.Bc,{isInvalid:x,message:g,fieldName:v.name})]})})},v=e=>{let{label:n,tooltip:t,disabled:a,isRequired:s=!1,dictField:l,name:c,id:d}=e,{field:m,isInvalid:v,isShowingSuggestions:x,error:h}=f(c,l);return(0,r.jsx)(i.NIc,{isInvalid:v,isRequired:s,children:(0,r.jsxs)(i.gCW,{alignItems:"start",children:[(0,r.jsxs)(i.kCb,{alignItems:"center",children:[(0,r.jsx)(u.__,{htmlFor:d||c,fontSize:"xs",my:0,mr:1,children:n}),t?(0,r.jsx)(o.Z,{label:t}):null]}),(0,r.jsx)(i.gxH,{...m,size:"sm","data-testid":"input-".concat(m.name),focusBorderColor:"primary.600",color:"showing"===x?"complimentary.500":"gray.800",isDisabled:a}),(0,r.jsx)(u.Bc,{isInvalid:v,message:h,fieldName:m.name})]})})},x=e=>{let{label:n,tooltip:t,dictField:s,name:l,id:c,disabled:d}=e,{field:m,isInvalid:v,error:x}=f(l,s,"checkbox");return(0,r.jsxs)(i.NIc,{isInvalid:v,width:"full",children:[(0,r.jsxs)(i.xuv,{display:"flex",alignItems:"center",justifyContent:"space-between",children:[(0,r.jsxs)(i.Ugi,{spacing:1,children:[(0,r.jsx)(u.__,{htmlFor:c||l,fontSize:"xs",my:0,mr:0,children:n}),t?(0,r.jsx)(o.Z,{label:t}):null]}),(0,r.jsx)(i.Ugi,{children:(0,r.jsx)(a.gN,{name:m.name,children:e=>{let{form:{setFieldValue:n}}=e;return(0,r.jsx)(i.rAg,{checked:m.checked,onChange:e=>{n(m.name,e)},disabled:d,className:"mr-2","data-testid":"input-".concat(m.name),size:"small"})}})})]}),(0,r.jsx)(u.Bc,{isInvalid:v,message:x,fieldName:m.name})]})},h=e=>{let{label:n,tooltip:t,dictField:s,name:l,id:c,disabled:d}=e,{field:m,isInvalid:v,error:x,isShowingSuggestions:h}=f(l,s,"numeric"),{setFieldValue:g}=(0,a.u6)();return(0,r.jsxs)(i.NIc,{isInvalid:v,width:"full",children:[(0,r.jsxs)(i.xuv,{display:"flex",alignItems:"center",justifyContent:"space-between",children:[(0,r.jsxs)(i.Ugi,{spacing:1,children:[(0,r.jsx)(u.__,{htmlFor:c||l,fontSize:"xs",my:0,mr:0,children:n}),t?(0,r.jsx)(o.Z,{label:t}):null]}),(0,r.jsx)(i.Ugi,{children:(0,r.jsxs)(i.Y2U,{value:m.value,name:m.name,size:"xs",onBlur:m.onBlur,onChange:e=>{g(m.name,e)},w:"100%",colorScheme:"terracotta",inputMode:"numeric","data-testid":"input-".concat(m.name),color:"showing"===h?"complimentary.500":"gray.800",focusBorderColor:"primary.600",isDisabled:d,children:[(0,r.jsx)(i.zuI,{}),(0,r.jsxs)(i.FiK,{children:[(0,r.jsx)(i.WQu,{}),(0,r.jsx)(i.Y_d,{})]})]})})]}),(0,r.jsx)(u.Bc,{isInvalid:v,message:x,fieldName:m.name})]})}}}]);
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5318],{95372:function(e){e.exports=function(e,n,t,r){for(var i=e.length,a=t+(r?1:-1);r?a--:++a<i;)if(n(e[a],a,e))return a;return -1}},74833:function(e,n,t){var r=t(56127),i=/^\s+/;e.exports=function(e){return e?e.slice(0,r(e)+1).replace(i,""):e}},56632:function(e,n,t){var r=t(89278),i=t(80068),a=t(50098);e.exports=function(e){return function(n,t,s){var l=Object(n);if(!i(n)){var u=r(t,3);n=a(n),t=function(e){return u(l[e],e,l)}}var o=e(n,t,s);return o>-1?l[u?n[o]:o]:void 0}}},56127:function(e){var n=/\s/;e.exports=function(e){for(var t=e.length;t--&&n.test(e.charAt(t)););return t}},66726:function(e,n,t){var r=t(11611),i=t(82846),a=t(91936),s=Math.max,l=Math.min;e.exports=function(e,n,t){var u,o,c,d,f,m,v=0,x=!1,h=!1,g=!0;if("function"!=typeof e)throw TypeError("Expected a function");function p(n){var t=u,r=o;return u=o=void 0,v=n,d=e.apply(r,t)}function j(e){var t=e-m,r=e-v;return void 0===m||t>=n||t<0||h&&r>=c}function y(){var e,t,r,a=i();if(j(a))return b(a);f=setTimeout(y,(e=a-m,t=a-v,r=n-e,h?l(r,c-t):r))}function b(e){return(f=void 0,g&&u)?p(e):(u=o=void 0,d)}function C(){var e,t=i(),r=j(t);if(u=arguments,o=this,m=t,r){if(void 0===f)return v=e=m,f=setTimeout(y,n),x?p(e):d;if(h)return clearTimeout(f),f=setTimeout(y,n),p(m)}return void 0===f&&(f=setTimeout(y,n)),d}return n=a(n)||0,r(t)&&(x=!!t.leading,c=(h="maxWait"in t)?s(a(t.maxWait)||0,n):c,g="trailing"in t?!!t.trailing:g),C.cancel=function(){void 0!==f&&clearTimeout(f),v=0,u=m=o=f=void 0},C.flush=function(){return void 0===f?d:b(i())},C}},64925:function(e,n,t){var r=t(56632)(t(66259));e.exports=r},66259:function(e,n,t){var r=t(95372),i=t(89278),a=t(47991),s=Math.max;e.exports=function(e,n,t){var l=null==e?0:e.length;if(!l)return -1;var u=null==t?0:a(t);return u<0&&(u=s(l+u,0)),r(e,i(n,3),u)}},82846:function(e,n,t){var r=t(77400);e.exports=function(){return r.Date.now()}},94919:function(e,n,t){var r=t(91936),i=1/0;e.exports=function(e){return e?(e=r(e))===i||e===-i?(e<0?-1:1)*17976931348623157e292:e==e?e:0:0===e?e:0}},47991:function(e,n,t){var r=t(94919);e.exports=function(e){var n=r(e),t=n%1;return n==n?t?n-t:n:0}},91936:function(e,n,t){var r=t(74833),i=t(11611),a=t(55193),s=0/0,l=/^[-+]0x[0-9a-f]+$/i,u=/^0b[01]+$/i,o=/^0o[0-7]+$/i,c=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(a(e))return s;if(i(e)){var n="function"==typeof e.valueOf?e.valueOf():e;e=i(n)?n+"":n}if("string"!=typeof e)return 0===e?e:+e;e=r(e);var t=u.test(e);return t||o.test(e)?c(e.slice(2),t?2:8):l.test(e)?s:+e}},19310:function(e,n,t){"use strict";var r=t(24246),i=t(64925),a=t.n(i),s=t(27378),l=t(44296),u=t(91650),o=t(79851),c=t(47411);let d=()=>{let{isLoading:e}=(0,o.fd)(),n=(0,l.C)(o.U3),{isLoading:t}=(0,c.MO)(),r=(0,l.C)(c.qb),{isLoading:i}=(0,u.te)();return{dataUses:n,dataSubjects:(0,l.C)(u.ZL),dataCategories:r,isLoading:e||t||i}};n.Z=()=>{let{dataUses:e,dataCategories:n,dataSubjects:t,isLoading:i}=d(),l=function(e){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return e.split(".").slice(0,n).join(".")},u=function(e,n){let t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,r=n(e);if(!r)return{};let i=n(l(e,t)),a=!!r.parent_key;return{name:r.name||void 0,primaryName:a&&(null==i?void 0:i.name)!==r.name&&(null==i?void 0:i.name)||void 0}},o=function(e,n){let t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,{name:i,primaryName:a}=u(e,n,t);return i?a?(0,r.jsxs)(s.Fragment,{children:[(0,r.jsxs)("strong",{children:[a,":"]})," ",i]},e):(0,r.jsx)("strong",{children:i},e):e},c=n=>a()(e,{fides_key:n}),f=e=>a()(n,{fides_key:e}),m=e=>a()(t,{fides_key:e});return{getDataUses:()=>e,getDataUseByKey:c,getDataUseDisplayName:e=>o(e,c,1),getDataUseDisplayNameProps:e=>u(e,c,1),getDataCategories:()=>n,getDataCategoryByKey:f,getDataCategoryDisplayName:e=>o(e,f,2),getDataCategoryDisplayNameProps:e=>u(e,f,2),getDataSubjects:()=>t,getDataSubjectByKey:m,getDataSubjectDisplayName:e=>{let n=m(e);return n?n.name:e},getPrimaryKey:l,isLoading:i}}},22770:function(e,n,t){"use strict";t.d(n,{M:function(){return u}});var r=t(24246),i=t(66726),a=t.n(i),s=t(27378),l=t(33312);let u=e=>{let{value:n,onChange:t}=e,[i,u]=(0,s.useState)(n),o=a()(t,500),c=(0,s.useCallback)(e=>{u(e),o(e)},[]);return(0,r.jsx)(l.Z,{search:i,onChange:c,onClear:()=>{u(""),t("")}})}},43894:function(e,n,t){"use strict";t.d(n,{Sv:function(){return v},Yb:function(){return m},dQ:function(){return x},lm:function(){return h}});var r=t(24246),i=t(52615),a=t(34090),s=t(27378),l=t(44296),u=t(34803),o=t(39514),c=t(96878),d=t(62711);let f=(e,n,t)=>{var r,i;let[u,o,{setValue:f,setTouched:m}]=(0,a.U$)({name:e,type:t||void 0}),v=!!(o.touched&&o.error),{error:x}=o,h={...u,value:null!==(r=u.value)&&void 0!==r?r:""},[g,p]=(0,s.useState)(null!==(i=h.value)&&void 0!==i?i:""),{values:j}=(0,a.u6)(),{vendor_id:y}=j,b=(0,l.C)((0,c.$e)(y||"")),C=(0,l.C)(d.bN),I=(0,s.useRef)();return(0,s.useEffect)(()=>{"showing"===C&&p(h.value)},[C,p]),(0,s.useEffect)(()=>{if("showing"===C&&b){let t=n?n(b):b[e];h.value!==t&&(f(t),setTimeout(()=>{var e;m(!0),null===(e=I.current)||void 0===e||e.blur()},300))}},[C,f,b,I.current]),(0,s.useEffect)(()=>{"hiding"===C&&f(g)},[C,f,g]),{field:h,isInvalid:v,isShowingSuggestions:C,error:x,inputRef:I}},m=e=>{let{label:n,tooltip:t,disabled:a,isRequired:s=!1,dictField:l,name:c,placeholder:d,id:m}=e,{field:v,isInvalid:x,isShowingSuggestions:h,error:g,inputRef:p}=f(c,l);return(0,r.jsx)(i.NIc,{isInvalid:x,isRequired:s,children:(0,r.jsxs)(i.gCW,{alignItems:"start",children:[(0,r.jsxs)(i.kCb,{alignItems:"center",children:[(0,r.jsx)(u.__,{htmlFor:m||c,fontSize:"xs",my:0,mr:1,children:n}),t?(0,r.jsx)(o.Z,{label:t}):null]}),(0,r.jsx)(u.oi,{...v,ref:p,isRequired:s,isDisabled:a,"data-testid":"input-".concat(v.name),placeholder:d,isPassword:!1,color:"showing"===h?"complimentary.500":"gray.800"}),(0,r.jsx)(u.Bc,{isInvalid:x,message:g,fieldName:v.name})]})})},v=e=>{let{label:n,tooltip:t,disabled:a,isRequired:s=!1,dictField:l,name:c,id:d}=e,{field:m,isInvalid:v,isShowingSuggestions:x,error:h}=f(c,l);return(0,r.jsx)(i.NIc,{isInvalid:v,isRequired:s,children:(0,r.jsxs)(i.gCW,{alignItems:"start",children:[(0,r.jsxs)(i.kCb,{alignItems:"center",children:[(0,r.jsx)(u.__,{htmlFor:d||c,fontSize:"xs",my:0,mr:1,children:n}),t?(0,r.jsx)(o.Z,{label:t}):null]}),(0,r.jsx)(i.gxH,{...m,size:"sm","data-testid":"input-".concat(m.name),focusBorderColor:"primary.600",color:"showing"===x?"complimentary.500":"gray.800",isDisabled:a}),(0,r.jsx)(u.Bc,{isInvalid:v,message:h,fieldName:m.name})]})})},x=e=>{let{label:n,tooltip:t,dictField:s,name:l,id:c,disabled:d}=e,{field:m,isInvalid:v,error:x}=f(l,s,"checkbox");return(0,r.jsxs)(i.NIc,{isInvalid:v,width:"full",children:[(0,r.jsxs)(i.xuv,{display:"flex",alignItems:"center",justifyContent:"space-between",children:[(0,r.jsxs)(i.Ugi,{spacing:1,children:[(0,r.jsx)(u.__,{htmlFor:c||l,fontSize:"xs",my:0,mr:0,children:n}),t?(0,r.jsx)(o.Z,{label:t}):null]}),(0,r.jsx)(i.Ugi,{children:(0,r.jsx)(a.gN,{name:m.name,children:e=>{let{form:{setFieldValue:n}}=e;return(0,r.jsx)(i.rAg,{checked:m.checked,onChange:e=>{n(m.name,e)},disabled:d,className:"mr-2","data-testid":"input-".concat(m.name),size:"small"})}})})]}),(0,r.jsx)(u.Bc,{isInvalid:v,message:x,fieldName:m.name})]})},h=e=>{let{label:n,tooltip:t,dictField:s,name:l,id:c,disabled:d}=e,{field:m,isInvalid:v,error:x,isShowingSuggestions:h}=f(l,s,"numeric"),{setFieldValue:g}=(0,a.u6)();return(0,r.jsxs)(i.NIc,{isInvalid:v,width:"full",children:[(0,r.jsxs)(i.xuv,{display:"flex",alignItems:"center",justifyContent:"space-between",children:[(0,r.jsxs)(i.Ugi,{spacing:1,children:[(0,r.jsx)(u.__,{htmlFor:c||l,fontSize:"xs",my:0,mr:0,children:n}),t?(0,r.jsx)(o.Z,{label:t}):null]}),(0,r.jsx)(i.Ugi,{children:(0,r.jsxs)(i.Y2U,{value:m.value,name:m.name,size:"xs",onBlur:m.onBlur,onChange:e=>{g(m.name,e)},w:"100%",colorScheme:"terracotta",inputMode:"numeric","data-testid":"input-".concat(m.name),color:"showing"===h?"complimentary.500":"gray.800",focusBorderColor:"primary.600",isDisabled:d,children:[(0,r.jsx)(i.zuI,{}),(0,r.jsxs)(i.FiK,{children:[(0,r.jsx)(i.WQu,{}),(0,r.jsx)(i.Y_d,{})]})]})})]}),(0,r.jsx)(u.Bc,{isInvalid:v,message:x,fieldName:m.name})]})}}}]);
@@ -1 +1 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5632],{95372:function(e){e.exports=function(e,t,n,i){for(var r=e.length,a=n+(i?1:-1);i?a--:++a<r;)if(t(e[a],a,e))return a;return -1}},56632:function(e,t,n){var i=n(89278),r=n(80068),a=n(50098);e.exports=function(e){return function(t,n,o){var s=Object(t);if(!r(t)){var l=i(n,3);t=a(t),n=function(e){return l(s[e],e,s)}}var c=e(t,n,o);return c>-1?s[l?t[c]:c]:void 0}}},64925:function(e,t,n){var i=n(56632)(n(66259));e.exports=i},66259:function(e,t,n){var i=n(95372),r=n(89278),a=n(47991),o=Math.max;e.exports=function(e,t,n){var s=null==e?0:e.length;if(!s)return -1;var l=null==n?0:a(n);return l<0&&(l=o(s+l,0)),i(e,r(t,3),l)}},94919:function(e,t,n){var i=n(91936),r=1/0;e.exports=function(e){return e?(e=i(e))===r||e===-r?(e<0?-1:1)*17976931348623157e292:e==e?e:0:0===e?e:0}},47991:function(e,t,n){var i=n(94919);e.exports=function(e){var t=i(e),n=t%1;return t==t?n?t-n:t:0}},66857:function(e,t,n){"use strict";var i=n(24246),r=n(74588),a=n(19310);t.Z=e=>{let{selectedTaxonomies:t,showDisabled:n=!1,...o}=e,{getDataCategoryDisplayNameProps:s,getDataCategories:l}=(0,a.Z)(),c=(n?l():l().filter(e=>e.active)).filter(e=>!t.includes(e.fides_key)).map(e=>{let{name:t,primaryName:n}=s(e.fides_key);return{value:e.fides_key,name:t,primaryName:n,description:e.description||""}});return(0,i.jsx)(r.l,{options:c,...o})}},74588:function(e,t,n){"use strict";n.d(t,{l:function(){return l}});var i=n(24246),r=n(96013),a=n(55372),o=n.n(a);let s=e=>{let{data:t}=e;return(0,i.jsxs)(r.jqI,{gap:12,title:"".concat(t.primaryName||"").concat(t.primaryName?": ":"").concat(t.name," - ").concat(t.description),children:[(0,i.jsxs)("div",{children:[(0,i.jsx)("strong",{children:t.primaryName||t.name}),t.primaryName&&": ".concat(t.name)]}),(0,i.jsx)("em",{children:t.description})]})},l=e=>{let{options:t,...n}=e,a=null==t?void 0:t.map(e=>({...e,className:o().option}));return(0,i.jsx)(r.WPr,{options:a,autoFocus:!0,variant:"borderless",optionRender:s,dropdownStyle:{minWidth:"500px"},className:"w-full p-0","data-testid":"taxonomy-select",...n})}},19310:function(e,t,n){"use strict";var i=n(24246),r=n(64925),a=n.n(r),o=n(27378),s=n(44296),l=n(91650),c=n(79851),u=n(47411);let d=()=>{let{isLoading:e}=(0,c.fd)(),t=(0,s.C)(c.U3),{isLoading:n}=(0,u.MO)(),i=(0,s.C)(u.qb),{isLoading:r}=(0,l.te)();return{dataUses:t,dataSubjects:(0,s.C)(l.ZL),dataCategories:i,isLoading:e||n||r}};t.Z=()=>{let{dataUses:e,dataCategories:t,dataSubjects:n,isLoading:r}=d(),s=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return e.split(".").slice(0,t).join(".")},l=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,i=t(e);if(!i)return{};let r=t(s(e,n)),a=!!i.parent_key;return{name:i.name||void 0,primaryName:a&&(null==r?void 0:r.name)!==i.name&&(null==r?void 0:r.name)||void 0}},c=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,{name:r,primaryName:a}=l(e,t,n);return r?a?(0,i.jsxs)(o.Fragment,{children:[(0,i.jsxs)("strong",{children:[a,":"]})," ",r]},e):(0,i.jsx)("strong",{children:r},e):e},u=t=>a()(e,{fides_key:t}),f=e=>a()(t,{fides_key:e}),v=e=>a()(n,{fides_key:e});return{getDataUses:()=>e,getDataUseByKey:u,getDataUseDisplayName:e=>c(e,u,1),getDataUseDisplayNameProps:e=>l(e,u,1),getDataCategories:()=>t,getDataCategoryByKey:f,getDataCategoryDisplayName:e=>c(e,f,2),getDataCategoryDisplayNameProps:e=>l(e,f,2),getDataSubjects:()=>n,getDataSubjectByKey:v,getDataSubjectDisplayName:e=>{let t=v(e);return t?t.name:e},getPrimaryKey:s,isLoading:r}}},52810:function(e,t,n){"use strict";var i=n(24246),r=n(96013),a=n(27378),o=n(66857),s=n(19310),l=n(74473),c=n(6111);t.Z=e=>{var t,n,u;let{resource:d}=e,[f,v]=(0,a.useState)(!1),{getDataCategoryDisplayName:p}=(0,s.Z)(),[g]=(0,c.NA)(),m=(null===(t=d.classifications)||void 0===t?void 0:t.length)?d.classifications[0].label:null,_=null!==(u=d.user_assigned_data_categories)&&void 0!==u?u:[],h=!m&&!(null==_?void 0:_.length),x=null===(n=d.sub_field_urns)||void 0===n?void 0:n.length,j=e=>{g({staged_resource_urn:d.urn,monitor_config_id:d.monitor_config_id,user_assigned_data_categories:[..._,e]})},y=e=>{var t;g({staged_resource_urn:d.urn,monitor_config_id:d.monitor_config_id,user_assigned_data_categories:null!==(t=null==_?void 0:_.filter(t=>t!==e))&&void 0!==t?t:[]})},b=!f&&!!_.length,D=!f&&!!m&&!_.length;return(0,i.jsxs)(l.Z,{"data-testid":"edit-category-cell",children:[h&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(r.j8w,{"data-testid":"no-classifications",color:"white",children:"None"}),!x&&(0,i.jsx)(r.j8w,{onClick:()=>v(!0),addable:!0,"data-testid":"taxonomy-add-btn","aria-label":"Add category"})]}),b&&(0,i.jsxs)(i.Fragment,{children:[_.map(e=>(0,i.jsx)(r.j8w,{"data-testid":"user-classification-".concat(e),color:"white",closable:!0,onClose:()=>y(e),closeButtonLabel:"Remove category",children:p(e)},e)),(0,i.jsx)(r.j8w,{onClick:()=>v(!0),addable:!0,"data-testid":"taxonomy-add-btn","aria-label":"Add category"})]}),D&&(0,i.jsxs)(r.j8w,{onClick:()=>v(!0),color:"white","data-testid":"classification-".concat(m),hasSparkle:!0,children:[p(m),(0,i.jsx)(r.PJP.I8b,{size:10})]}),f&&(0,i.jsx)(r.xuv,{className:"select-wrapper",position:"absolute",zIndex:10,top:"0",left:"0",width:"100%",height:"max",bgColor:"#fff",children:(0,i.jsx)(o.Z,{selectedTaxonomies:_,onChange:e=>{v(!1),j(e)},onBlur:()=>v(!1),open:!0})})]})}},74473:function(e,t,n){"use strict";var i=n(24246);n(27378),t.Z=e=>{let{children:t,className:n,...r}=e;return(0,i.jsx)("div",{className:"relative flex w-full flex-wrap items-center gap-2 overflow-x-auto py-2 ".concat(n||""),...r,children:t})}},52962:function(e,t,n){"use strict";n.d(t,{G:function(){return r}});var i=n(37760);let r=e=>{var t,n,r;return e?e.resource_type?e.resource_type:(null===(t=e.schemas)||void 0===t?void 0:t.length)?i.D$.DATABASE:(null===(n=e.tables)||void 0===n?void 0:n.length)?i.D$.SCHEMA:(null===(r=e.fields)||void 0===r?void 0:r.length)?i.D$.TABLE:i.D$.FIELD:void 0}},90049:function(e,t){"use strict";t.Z=e=>{let{name:t,urn:n,monitor_config_id:i,database_name:r,schema_name:a,table_name:o,top_level_field_name:s,top_level_field_urn:l}=e;if(!s)return t;let c=n.split(".");return l?n.replace("".concat(l).concat("."),""):([i,r,a,o,s].forEach(e=>{if(e){let t=c.indexOf(e);t>-1&&c.splice(t,1)}}),c.join("."))}},2053:function(e,t){"use strict";t.Z=e=>{var t;return!!e.parent_table_urn&&null!==(t=e.sub_field_urns)&&void 0!==t&&!!t.length&&!e.top_level_field_name}},6170:function(e,t,n){"use strict";var i=n(52962),r=n(2053),a=n(37760);t.Z=e=>(0,i.G)(e)!==a.D$.FIELD||(0,r.Z)(e)},55372:function(e){e.exports={option:"TaxonomySelect_option__vY6v2"}}}]);
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5632],{95372:function(e){e.exports=function(e,t,n,i){for(var r=e.length,a=n+(i?1:-1);i?a--:++a<r;)if(t(e[a],a,e))return a;return -1}},56632:function(e,t,n){var i=n(89278),r=n(80068),a=n(50098);e.exports=function(e){return function(t,n,o){var s=Object(t);if(!r(t)){var l=i(n,3);t=a(t),n=function(e){return l(s[e],e,s)}}var c=e(t,n,o);return c>-1?s[l?t[c]:c]:void 0}}},64925:function(e,t,n){var i=n(56632)(n(66259));e.exports=i},66259:function(e,t,n){var i=n(95372),r=n(89278),a=n(47991),o=Math.max;e.exports=function(e,t,n){var s=null==e?0:e.length;if(!s)return -1;var l=null==n?0:a(n);return l<0&&(l=o(s+l,0)),i(e,r(t,3),l)}},94919:function(e,t,n){var i=n(91936),r=1/0;e.exports=function(e){return e?(e=i(e))===r||e===-r?(e<0?-1:1)*17976931348623157e292:e==e?e:0:0===e?e:0}},47991:function(e,t,n){var i=n(94919);e.exports=function(e){var t=i(e),n=t%1;return t==t?n?t-n:t:0}},66857:function(e,t,n){"use strict";var i=n(24246),r=n(74588),a=n(19310);t.Z=e=>{let{selectedTaxonomies:t,showDisabled:n=!1,...o}=e,{getDataCategoryDisplayNameProps:s,getDataCategories:l}=(0,a.Z)(),c=(n?l():l().filter(e=>e.active)).filter(e=>!t.includes(e.fides_key)).map(e=>{let{name:t,primaryName:n}=s(e.fides_key);return{value:e.fides_key,name:t,primaryName:n,description:e.description||""}});return(0,i.jsx)(r.l,{options:c,...o})}},74588:function(e,t,n){"use strict";n.d(t,{l:function(){return l}});var i=n(24246),r=n(52615),a=n(55372),o=n.n(a);let s=e=>{let{data:t}=e;return(0,i.jsxs)(r.jqI,{gap:12,title:"".concat(t.primaryName||"").concat(t.primaryName?": ":"").concat(t.name," - ").concat(t.description),children:[(0,i.jsxs)("div",{children:[(0,i.jsx)("strong",{children:t.primaryName||t.name}),t.primaryName&&": ".concat(t.name)]}),(0,i.jsx)("em",{children:t.description})]})},l=e=>{let{options:t,...n}=e,a=null==t?void 0:t.map(e=>({...e,className:o().option}));return(0,i.jsx)(r.WPr,{options:a,autoFocus:!0,variant:"borderless",optionRender:s,dropdownStyle:{minWidth:"500px"},className:"w-full p-0","data-testid":"taxonomy-select",...n})}},19310:function(e,t,n){"use strict";var i=n(24246),r=n(64925),a=n.n(r),o=n(27378),s=n(44296),l=n(91650),c=n(79851),u=n(47411);let d=()=>{let{isLoading:e}=(0,c.fd)(),t=(0,s.C)(c.U3),{isLoading:n}=(0,u.MO)(),i=(0,s.C)(u.qb),{isLoading:r}=(0,l.te)();return{dataUses:t,dataSubjects:(0,s.C)(l.ZL),dataCategories:i,isLoading:e||n||r}};t.Z=()=>{let{dataUses:e,dataCategories:t,dataSubjects:n,isLoading:r}=d(),s=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return e.split(".").slice(0,t).join(".")},l=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,i=t(e);if(!i)return{};let r=t(s(e,n)),a=!!i.parent_key;return{name:i.name||void 0,primaryName:a&&(null==r?void 0:r.name)!==i.name&&(null==r?void 0:r.name)||void 0}},c=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,{name:r,primaryName:a}=l(e,t,n);return r?a?(0,i.jsxs)(o.Fragment,{children:[(0,i.jsxs)("strong",{children:[a,":"]})," ",r]},e):(0,i.jsx)("strong",{children:r},e):e},u=t=>a()(e,{fides_key:t}),f=e=>a()(t,{fides_key:e}),v=e=>a()(n,{fides_key:e});return{getDataUses:()=>e,getDataUseByKey:u,getDataUseDisplayName:e=>c(e,u,1),getDataUseDisplayNameProps:e=>l(e,u,1),getDataCategories:()=>t,getDataCategoryByKey:f,getDataCategoryDisplayName:e=>c(e,f,2),getDataCategoryDisplayNameProps:e=>l(e,f,2),getDataSubjects:()=>n,getDataSubjectByKey:v,getDataSubjectDisplayName:e=>{let t=v(e);return t?t.name:e},getPrimaryKey:s,isLoading:r}}},52810:function(e,t,n){"use strict";var i=n(24246),r=n(52615),a=n(27378),o=n(66857),s=n(19310),l=n(74473),c=n(6111);t.Z=e=>{var t,n,u;let{resource:d}=e,[f,v]=(0,a.useState)(!1),{getDataCategoryDisplayName:p}=(0,s.Z)(),[g]=(0,c.NA)(),m=(null===(t=d.classifications)||void 0===t?void 0:t.length)?d.classifications[0].label:null,_=null!==(u=d.user_assigned_data_categories)&&void 0!==u?u:[],h=!m&&!(null==_?void 0:_.length),x=null===(n=d.sub_field_urns)||void 0===n?void 0:n.length,j=e=>{g({staged_resource_urn:d.urn,monitor_config_id:d.monitor_config_id,user_assigned_data_categories:[..._,e]})},y=e=>{var t;g({staged_resource_urn:d.urn,monitor_config_id:d.monitor_config_id,user_assigned_data_categories:null!==(t=null==_?void 0:_.filter(t=>t!==e))&&void 0!==t?t:[]})},b=!f&&!!_.length,D=!f&&!!m&&!_.length;return(0,i.jsxs)(l.Z,{"data-testid":"edit-category-cell",children:[h&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(r.j8w,{"data-testid":"no-classifications",color:"white",children:"None"}),!x&&(0,i.jsx)(r.j8w,{onClick:()=>v(!0),addable:!0,"data-testid":"taxonomy-add-btn","aria-label":"Add category"})]}),b&&(0,i.jsxs)(i.Fragment,{children:[_.map(e=>(0,i.jsx)(r.j8w,{"data-testid":"user-classification-".concat(e),color:"white",closable:!0,onClose:()=>y(e),closeButtonLabel:"Remove category",children:p(e)},e)),(0,i.jsx)(r.j8w,{onClick:()=>v(!0),addable:!0,"data-testid":"taxonomy-add-btn","aria-label":"Add category"})]}),D&&(0,i.jsxs)(r.j8w,{onClick:()=>v(!0),color:"white","data-testid":"classification-".concat(m),hasSparkle:!0,children:[p(m),(0,i.jsx)(r.PJP.I8b,{size:10})]}),f&&(0,i.jsx)(r.xuv,{className:"select-wrapper",position:"absolute",zIndex:10,top:"0",left:"0",width:"100%",height:"max",bgColor:"#fff",children:(0,i.jsx)(o.Z,{selectedTaxonomies:_,onChange:e=>{v(!1),j(e)},onBlur:()=>v(!1),open:!0})})]})}},74473:function(e,t,n){"use strict";var i=n(24246);n(27378),t.Z=e=>{let{children:t,className:n,...r}=e;return(0,i.jsx)("div",{className:"relative flex w-full flex-wrap items-center gap-2 overflow-x-auto py-2 ".concat(n||""),...r,children:t})}},52962:function(e,t,n){"use strict";n.d(t,{G:function(){return r}});var i=n(37760);let r=e=>{var t,n,r;return e?e.resource_type?e.resource_type:(null===(t=e.schemas)||void 0===t?void 0:t.length)?i.D$.DATABASE:(null===(n=e.tables)||void 0===n?void 0:n.length)?i.D$.SCHEMA:(null===(r=e.fields)||void 0===r?void 0:r.length)?i.D$.TABLE:i.D$.FIELD:void 0}},90049:function(e,t){"use strict";t.Z=e=>{let{name:t,urn:n,monitor_config_id:i,database_name:r,schema_name:a,table_name:o,top_level_field_name:s,top_level_field_urn:l}=e;if(!s)return t;let c=n.split(".");return l?n.replace("".concat(l).concat("."),""):([i,r,a,o,s].forEach(e=>{if(e){let t=c.indexOf(e);t>-1&&c.splice(t,1)}}),c.join("."))}},2053:function(e,t){"use strict";t.Z=e=>{var t;return!!e.parent_table_urn&&null!==(t=e.sub_field_urns)&&void 0!==t&&!!t.length&&!e.top_level_field_name}},6170:function(e,t,n){"use strict";var i=n(52962),r=n(2053),a=n(37760);t.Z=e=>(0,i.G)(e)!==a.D$.FIELD||(0,r.Z)(e)},55372:function(e){e.exports={option:"TaxonomySelect_option__vY6v2"}}}]);
@@ -1 +1 @@
1
- "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5728],{36848:function(e,t,a){a.d(t,{q:function(){return s}});var i=a(24246),l=a(96013);let s=e=>{let{label:t,isDisabled:a,...s}=e;return(0,i.jsx)(l.OK9,{"data-testid":"tab-".concat(t),_selected:{fontWeight:"600",color:"complimentary.500",borderColor:"complimentary.500"},fontSize:s.fontSize,fontWeight:"500",color:"gray.500",isDisabled:a||!1,children:t})};t.Z=e=>{let{data:t,border:a="partial",...r}=e;return(0,i.jsxs)(l.mQc,{colorScheme:"complimentary",...r,children:[(0,i.jsx)(l.tdY,{width:"partial"===a?"max-content":void 0,children:t.map(e=>(0,i.jsx)(s,{label:e.label,isDisabled:e.isDisabled,fontSize:r.fontSize},e.label))}),(0,i.jsx)(l.nPR,{children:t.map(e=>(0,i.jsx)(l.x45,{px:0,"data-testid":"tab-panel-".concat(e.label),children:e.content},e.label))})]})}},11574:function(e,t,a){var i=a(24246),l=a(96013),s=a(36848);t.Z=e=>{let{data:t,border:a="partial",borderWidth:r=2,...n}=e;return(0,i.jsx)(l.mQc,{colorScheme:"complimentary",...n,children:(0,i.jsx)(l.tdY,{width:"partial"===a?"max-content":void 0,borderBottomWidth:r,children:t.map(e=>(0,i.jsx)(s.q,{label:e.label,"data-testid":e.label,isDisabled:e.isDisabled,fontSize:n.fontSize},e.label))})})}},76552:function(e,t,a){var i=a(24246),l=a(11574);t.Z=e=>{let{filterTabs:t,onChange:a,filterTabIndex:s}=e;return(0,i.jsx)(l.Z,{border:"full-width",mb:5,size:"sm",data:t,borderWidth:1,index:s,onChange:a})}},8339:function(e,t,a){a.d(t,{Y:function(){return r}});var i=a(24246),l=a(96013),s=a(53614);let r=[(0,i.jsx)(l.PJP.S9g,{},"layers"),(0,i.jsx)(l.PJP.ehp,{},"dataset"),(0,i.jsx)(l.PJP.iA_,{},"table"),(0,i.jsx)(l.PJP.$4y,{style:{transform:"rotate(-90deg)"}},"field")];t.Z=e=>{let{resourceUrn:t,parentLink:a,onPathClick:l=()=>{}}=e,n=[];if(t||n.push({title:"All activity"}),t){n.push({title:"All activity",href:a});let e=t.split(".");e.forEach((t,a)=>{0!==a&&n.push({title:t,icon:r[a-1],onClick:t=>{t.preventDefault(),l(e.slice(0,a+1).join("."))}})})}return(0,i.jsx)(s.m,{"data-testid":"results-breadcrumb",items:n})}},79620:function(e,t,a){a.d(t,{Z:function(){return S}});var i=a(24246),l=a(59003),s=a(92222),r=a(96013),n=a(86677),o=a(27378),c=a(8540),d=a(76552),u=a(6111),h=a(98320),x=a(64900),m=a(61934),g=a(62448),j=a(38575),p=a(51557),v=a(37760),f=a(15025),b=e=>{let{resourceType:t,changeTypeOverride:a}=e,l=(0,s.Cl)(),r=[];return t?t===v.D$.SCHEMA?{columns:[l.accessor(e=>e.name,{id:"name",cell:e=>(0,i.jsx)(g.Z,{changeTypeOverride:a,result:e.row.original}),header:e=>(0,i.jsx)(c.Rr,{value:"Name",...e}),size:300}),l.accessor(e=>e.urn,{id:"project",cell:e=>(0,i.jsx)(c.G3,{value:(0,f.Z)(e.getValue())}),header:e=>(0,i.jsx)(c.Rr,{value:"Project",...e})}),l.display({id:"status",cell:e=>(0,i.jsx)(j.Z,{changeTypeOverride:a,result:e.row.original}),header:e=>(0,i.jsx)(c.Rr,{value:"Status",...e})}),l.accessor(e=>e.system,{id:"system",cell:e=>(0,i.jsx)(c.G3,{value:e.getValue()}),header:e=>(0,i.jsx)(c.Rr,{value:"System",...e})}),l.accessor(e=>e.monitor_config_id,{id:"monitor",cell:e=>(0,i.jsx)(c.G3,{value:e.getValue()}),header:e=>(0,i.jsx)(c.Rr,{value:"Detected by",...e})}),l.accessor(e=>e.updated_at,{id:"time",cell:e=>(0,i.jsx)(h.Cy,{time:e.getValue()}),header:e=>(0,i.jsx)(c.Rr,{value:"When",...e})}),l.display({id:"actions",cell:e=>(0,i.jsx)(x.Z,{ignoreChildActions:a===p.E.MONITORED||a===p.E.MUTED,resource:e.row.original}),header:"Actions",size:200,meta:{disableRowClick:!0}})]}:t===v.D$.TABLE?{columns:[l.accessor(e=>e.name,{id:"name",cell:e=>(0,i.jsx)(g.Z,{changeTypeOverride:a,result:e.row.original}),header:e=>(0,i.jsx)(c.Rr,{value:"Table name",...e}),size:300}),l.accessor(e=>e.description,{id:"description",cell:e=>(0,i.jsx)(c.G3,{value:e.getValue(),cellProps:e}),header:e=>(0,i.jsx)(c.Rr,{value:"Description",...e}),meta:{showHeaderMenu:!0}}),l.display({id:"status",cell:e=>(0,i.jsx)(j.Z,{changeTypeOverride:a,result:e.row.original}),header:e=>(0,i.jsx)(c.Rr,{value:"Status",...e})}),l.accessor(e=>e.monitor_config_id,{id:"monitor",cell:e=>(0,i.jsx)(c.G3,{value:e.getValue()}),header:e=>(0,i.jsx)(c.Rr,{value:"Detected by",...e})}),l.accessor(e=>e.updated_at,{id:"time",cell:e=>(0,i.jsx)(h.Cy,{time:e.getValue()}),header:e=>(0,i.jsx)(c.Rr,{value:"When",...e})}),l.display({id:"actions",cell:e=>(0,i.jsx)(x.Z,{resource:e.row.original}),header:"Actions",size:200,meta:{disableRowClick:!0}})]}:t===v.D$.FIELD?{columns:[l.accessor(e=>e.name,{id:"name",cell:e=>(0,i.jsx)(g.Z,{changeTypeOverride:a,result:e.row.original}),header:e=>(0,i.jsx)(c.Rr,{value:"Field name",...e}),size:300}),l.accessor(e=>e.source_data_type,{id:"data-type",cell:e=>(0,i.jsx)(m.Z,{type:e.getValue()}),header:e=>(0,i.jsx)(c.Rr,{value:"Data type",...e})}),l.accessor(e=>e.description,{id:"description",cell:e=>(0,i.jsx)(c.G3,{value:e.getValue(),cellProps:e}),header:e=>(0,i.jsx)(c.Rr,{value:"Description",...e}),meta:{showHeaderMenu:!0}}),l.display({id:"status",cell:e=>(0,i.jsx)(j.Z,{changeTypeOverride:a,result:e.row.original}),header:e=>(0,i.jsx)(c.Rr,{value:"Status",...e})}),l.accessor(e=>e.monitor_config_id,{id:"monitor",cell:e=>(0,i.jsx)(c.G3,{value:e.getValue()}),header:e=>(0,i.jsx)(c.Rr,{value:"Detected by",...e})}),l.accessor(e=>e.updated_at,{id:"time",cell:e=>(0,i.jsx)(h.Cy,{time:e.getValue()}),header:e=>(0,i.jsx)(c.Rr,{value:"When",...e})}),l.display({id:"actions",cell:e=>(0,i.jsx)(x.Z,{resource:e.row.original}),header:"Actions",size:200,meta:{disableRowClick:!0}})]}:{columns:r}:{columns:r}},y=e=>{let{initialFilterTabIndex:t=0}=e,[a,i]=(0,o.useState)(t),l=(0,o.useMemo)(()=>[{label:"Action Required",filters:[v.LL.ADDITION,v.LL.REMOVAL],childFilters:[v.LL.ADDITION,v.LL.REMOVAL]},{label:"Monitored",filters:[v.LL.MONITORED],childFilters:[],changeTypeOverride:p.E.MONITORED},{label:"Unmonitored",filters:[v.LL.MUTED],childFilters:[],changeTypeOverride:p.E.MUTED}],[]);return{filterTabs:l,filterTabIndex:a,setFilterTabIndex:i,activeDiffFilters:l[a].filters,activeChildDiffFilters:l[a].childFilters,activeChangeTypeOverride:l[a].changeTypeOverride}},R=a(38637),w=a(87573),D=a(52962),C=a(71329),T=a(2053),Z=a(22770);let E={items:[],total:0,page:1,size:50,pages:1},O=()=>(0,i.jsx)(r.gCW,{mt:6,p:10,spacing:4,borderRadius:"base",maxW:"70%","data-testid":"empty-state",alignSelf:"center",margin:"auto",children:(0,i.jsxs)(r.gCW,{children:[(0,i.jsx)(r.xvT,{fontSize:"md",fontWeight:"600",children:"No activity found"}),(0,i.jsx)(r.xvT,{fontSize:"sm",children:"You're up to date!"})]})});var S=e=>{var t,a;let{resourceUrn:h}=e,x=(0,n.useRouter)(),[m,g]=(0,o.useState)(""),{filterTabs:j,setFilterTabIndex:p,filterTabIndex:f,activeDiffFilters:S,activeChildDiffFilters:_,activeChangeTypeOverride:z}=y({initialFilterTabIndex:(null===(t=x.query)||void 0===t?void 0:t.filterTabIndex)?Number(null===(a=x.query)||void 0===a?void 0:a.filterTabIndex):void 0}),{PAGE_SIZES:M,pageSize:P,setPageSize:I,onPreviousPageClick:L,isPreviousPageDisabled:k,onNextPageClick:A,isNextPageDisabled:V,startRange:N,endRange:F,pageIndex:W,setTotalPages:G,resetPageIndexToDefault:q}=(0,c.oi)();(0,o.useEffect)(()=>{q()},[h,m,q,S,_]);let{isFetching:$,isLoading:U,data:H}=(0,u.z8)({staged_resource_urn:h,page:W,size:P,child_diff_status:_,diff_status:S,search:m}),J=(0,D.G)(null==H?void 0:H.items[0]),{columns:Y}=b({resourceType:J,changeTypeOverride:z}),{items:Q,total:B,pages:K}=(0,o.useMemo)(()=>null!=H?H:E,[H]);(0,o.useEffect)(()=>{G(K)},[K,G]);let X=(0,o.useMemo)(()=>Y,[Y]),{navigateToDetectionResults:ee}=(0,R.Z)(),et=(0,l.b7)({getCoreRowModel:(0,s.sC)(),getGroupedRowModel:(0,s.qe)(),getExpandedRowModel:(0,s.rV)(),getRowId:C.Z,columns:X,manualPagination:!0,data:Q,columnResizeMode:"onChange"});return U?(0,i.jsx)(c.I4,{rowHeight:36,numRows:36}):(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(d.Z,{filterTabs:j,filterTabIndex:f,onChange:p}),(0,i.jsx)(c.Q$,{children:(0,i.jsx)(r.kCb,{direction:"row",alignItems:"center",justifyContent:"space-between",width:"full",children:(0,i.jsxs)(r.kCb,{gap:6,align:"center",children:[(0,i.jsx)(r.xuv,{flexShrink:0,children:(0,i.jsx)(Z.M,{value:m,onChange:g})}),(0,i.jsx)(w.Z,{})]})})}),(0,i.jsx)(c.ZK,{tableInstance:et,onRowClick:e=>ee({resourceUrn:e.urn,filterTabIndex:f}),getRowIsClickable:e=>J!==v.D$.FIELD||(0,T.Z)(e),emptyTableNotice:(0,i.jsx)(O,{})}),(0,i.jsx)(c.s8,{totalRows:B||0,pageSizes:M,setPageSize:I,onPreviousPageClick:L,isPreviousPageDisabled:k||$,onNextPageClick:A,isNextPageDisabled:V||$,startRange:N,endRange:F})]})}},61934:function(e,t,a){var i=a(24246),l=a(96013);t.Z=e=>{let{type:t}=e;return(0,i.jsx)(l.kCb,{align:"center",h:"full",children:!!t&&(0,i.jsx)(l.j8w,{children:t})})}}}]);
1
+ "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5728],{36848:function(e,t,a){a.d(t,{q:function(){return s}});var i=a(24246),l=a(52615);let s=e=>{let{label:t,isDisabled:a,...s}=e;return(0,i.jsx)(l.OK9,{"data-testid":"tab-".concat(t),_selected:{fontWeight:"600",color:"complimentary.500",borderColor:"complimentary.500"},fontSize:s.fontSize,fontWeight:"500",color:"gray.500",isDisabled:a||!1,children:t})};t.Z=e=>{let{data:t,border:a="partial",...r}=e;return(0,i.jsxs)(l.mQc,{colorScheme:"complimentary",...r,children:[(0,i.jsx)(l.tdY,{width:"partial"===a?"max-content":void 0,children:t.map(e=>(0,i.jsx)(s,{label:e.label,isDisabled:e.isDisabled,fontSize:r.fontSize},e.label))}),(0,i.jsx)(l.nPR,{children:t.map(e=>(0,i.jsx)(l.x45,{px:0,"data-testid":"tab-panel-".concat(e.label),children:e.content},e.label))})]})}},11574:function(e,t,a){var i=a(24246),l=a(52615),s=a(36848);t.Z=e=>{let{data:t,border:a="partial",borderWidth:r=2,...n}=e;return(0,i.jsx)(l.mQc,{colorScheme:"complimentary",...n,children:(0,i.jsx)(l.tdY,{width:"partial"===a?"max-content":void 0,borderBottomWidth:r,children:t.map(e=>(0,i.jsx)(s.q,{label:e.label,"data-testid":e.label,isDisabled:e.isDisabled,fontSize:n.fontSize},e.label))})})}},76552:function(e,t,a){var i=a(24246),l=a(11574);t.Z=e=>{let{filterTabs:t,onChange:a,filterTabIndex:s}=e;return(0,i.jsx)(l.Z,{border:"full-width",mb:5,size:"sm",data:t,borderWidth:1,index:s,onChange:a})}},8339:function(e,t,a){a.d(t,{Y:function(){return r}});var i=a(24246),l=a(52615),s=a(53614);let r=[(0,i.jsx)(l.PJP.S9g,{},"layers"),(0,i.jsx)(l.PJP.ehp,{},"dataset"),(0,i.jsx)(l.PJP.iA_,{},"table"),(0,i.jsx)(l.PJP.$4y,{style:{transform:"rotate(-90deg)"}},"field")];t.Z=e=>{let{resourceUrn:t,parentLink:a,onPathClick:l=()=>{}}=e,n=[];if(t||n.push({title:"All activity"}),t){n.push({title:"All activity",href:a});let e=t.split(".");e.forEach((t,a)=>{0!==a&&n.push({title:t,icon:r[a-1],onClick:t=>{t.preventDefault(),l(e.slice(0,a+1).join("."))}})})}return(0,i.jsx)(s.m,{"data-testid":"results-breadcrumb",items:n})}},79620:function(e,t,a){a.d(t,{Z:function(){return S}});var i=a(24246),l=a(59003),s=a(92222),r=a(52615),n=a(86677),o=a(27378),c=a(8540),d=a(76552),u=a(6111),h=a(98320),x=a(64900),m=a(61934),g=a(62448),j=a(38575),p=a(51557),v=a(37760),f=a(15025),b=e=>{let{resourceType:t,changeTypeOverride:a}=e,l=(0,s.Cl)(),r=[];return t?t===v.D$.SCHEMA?{columns:[l.accessor(e=>e.name,{id:"name",cell:e=>(0,i.jsx)(g.Z,{changeTypeOverride:a,result:e.row.original}),header:e=>(0,i.jsx)(c.Rr,{value:"Name",...e}),size:300}),l.accessor(e=>e.urn,{id:"project",cell:e=>(0,i.jsx)(c.G3,{value:(0,f.Z)(e.getValue())}),header:e=>(0,i.jsx)(c.Rr,{value:"Project",...e})}),l.display({id:"status",cell:e=>(0,i.jsx)(j.Z,{changeTypeOverride:a,result:e.row.original}),header:e=>(0,i.jsx)(c.Rr,{value:"Status",...e})}),l.accessor(e=>e.system,{id:"system",cell:e=>(0,i.jsx)(c.G3,{value:e.getValue()}),header:e=>(0,i.jsx)(c.Rr,{value:"System",...e})}),l.accessor(e=>e.monitor_config_id,{id:"monitor",cell:e=>(0,i.jsx)(c.G3,{value:e.getValue()}),header:e=>(0,i.jsx)(c.Rr,{value:"Detected by",...e})}),l.accessor(e=>e.updated_at,{id:"time",cell:e=>(0,i.jsx)(h.Cy,{time:e.getValue()}),header:e=>(0,i.jsx)(c.Rr,{value:"When",...e})}),l.display({id:"actions",cell:e=>(0,i.jsx)(x.Z,{ignoreChildActions:a===p.E.MONITORED||a===p.E.MUTED,resource:e.row.original}),header:"Actions",size:200,meta:{disableRowClick:!0}})]}:t===v.D$.TABLE?{columns:[l.accessor(e=>e.name,{id:"name",cell:e=>(0,i.jsx)(g.Z,{changeTypeOverride:a,result:e.row.original}),header:e=>(0,i.jsx)(c.Rr,{value:"Table name",...e}),size:300}),l.accessor(e=>e.description,{id:"description",cell:e=>(0,i.jsx)(c.G3,{value:e.getValue(),cellProps:e}),header:e=>(0,i.jsx)(c.Rr,{value:"Description",...e}),meta:{showHeaderMenu:!0}}),l.display({id:"status",cell:e=>(0,i.jsx)(j.Z,{changeTypeOverride:a,result:e.row.original}),header:e=>(0,i.jsx)(c.Rr,{value:"Status",...e})}),l.accessor(e=>e.monitor_config_id,{id:"monitor",cell:e=>(0,i.jsx)(c.G3,{value:e.getValue()}),header:e=>(0,i.jsx)(c.Rr,{value:"Detected by",...e})}),l.accessor(e=>e.updated_at,{id:"time",cell:e=>(0,i.jsx)(h.Cy,{time:e.getValue()}),header:e=>(0,i.jsx)(c.Rr,{value:"When",...e})}),l.display({id:"actions",cell:e=>(0,i.jsx)(x.Z,{resource:e.row.original}),header:"Actions",size:200,meta:{disableRowClick:!0}})]}:t===v.D$.FIELD?{columns:[l.accessor(e=>e.name,{id:"name",cell:e=>(0,i.jsx)(g.Z,{changeTypeOverride:a,result:e.row.original}),header:e=>(0,i.jsx)(c.Rr,{value:"Field name",...e}),size:300}),l.accessor(e=>e.source_data_type,{id:"data-type",cell:e=>(0,i.jsx)(m.Z,{type:e.getValue()}),header:e=>(0,i.jsx)(c.Rr,{value:"Data type",...e})}),l.accessor(e=>e.description,{id:"description",cell:e=>(0,i.jsx)(c.G3,{value:e.getValue(),cellProps:e}),header:e=>(0,i.jsx)(c.Rr,{value:"Description",...e}),meta:{showHeaderMenu:!0}}),l.display({id:"status",cell:e=>(0,i.jsx)(j.Z,{changeTypeOverride:a,result:e.row.original}),header:e=>(0,i.jsx)(c.Rr,{value:"Status",...e})}),l.accessor(e=>e.monitor_config_id,{id:"monitor",cell:e=>(0,i.jsx)(c.G3,{value:e.getValue()}),header:e=>(0,i.jsx)(c.Rr,{value:"Detected by",...e})}),l.accessor(e=>e.updated_at,{id:"time",cell:e=>(0,i.jsx)(h.Cy,{time:e.getValue()}),header:e=>(0,i.jsx)(c.Rr,{value:"When",...e})}),l.display({id:"actions",cell:e=>(0,i.jsx)(x.Z,{resource:e.row.original}),header:"Actions",size:200,meta:{disableRowClick:!0}})]}:{columns:r}:{columns:r}},y=e=>{let{initialFilterTabIndex:t=0}=e,[a,i]=(0,o.useState)(t),l=(0,o.useMemo)(()=>[{label:"Action Required",filters:[v.LL.ADDITION,v.LL.REMOVAL],childFilters:[v.LL.ADDITION,v.LL.REMOVAL]},{label:"Monitored",filters:[v.LL.MONITORED],childFilters:[],changeTypeOverride:p.E.MONITORED},{label:"Unmonitored",filters:[v.LL.MUTED],childFilters:[],changeTypeOverride:p.E.MUTED}],[]);return{filterTabs:l,filterTabIndex:a,setFilterTabIndex:i,activeDiffFilters:l[a].filters,activeChildDiffFilters:l[a].childFilters,activeChangeTypeOverride:l[a].changeTypeOverride}},R=a(38637),w=a(87573),D=a(52962),C=a(71329),T=a(2053),Z=a(22770);let E={items:[],total:0,page:1,size:50,pages:1},O=()=>(0,i.jsx)(r.gCW,{mt:6,p:10,spacing:4,borderRadius:"base",maxW:"70%","data-testid":"empty-state",alignSelf:"center",margin:"auto",children:(0,i.jsxs)(r.gCW,{children:[(0,i.jsx)(r.xvT,{fontSize:"md",fontWeight:"600",children:"No activity found"}),(0,i.jsx)(r.xvT,{fontSize:"sm",children:"You're up to date!"})]})});var S=e=>{var t,a;let{resourceUrn:h}=e,x=(0,n.useRouter)(),[m,g]=(0,o.useState)(""),{filterTabs:j,setFilterTabIndex:p,filterTabIndex:f,activeDiffFilters:S,activeChildDiffFilters:_,activeChangeTypeOverride:z}=y({initialFilterTabIndex:(null===(t=x.query)||void 0===t?void 0:t.filterTabIndex)?Number(null===(a=x.query)||void 0===a?void 0:a.filterTabIndex):void 0}),{PAGE_SIZES:M,pageSize:P,setPageSize:I,onPreviousPageClick:L,isPreviousPageDisabled:k,onNextPageClick:A,isNextPageDisabled:V,startRange:N,endRange:F,pageIndex:W,setTotalPages:G,resetPageIndexToDefault:q}=(0,c.oi)();(0,o.useEffect)(()=>{q()},[h,m,q,S,_]);let{isFetching:$,isLoading:U,data:H}=(0,u.z8)({staged_resource_urn:h,page:W,size:P,child_diff_status:_,diff_status:S,search:m}),J=(0,D.G)(null==H?void 0:H.items[0]),{columns:Y}=b({resourceType:J,changeTypeOverride:z}),{items:Q,total:B,pages:K}=(0,o.useMemo)(()=>null!=H?H:E,[H]);(0,o.useEffect)(()=>{G(K)},[K,G]);let X=(0,o.useMemo)(()=>Y,[Y]),{navigateToDetectionResults:ee}=(0,R.Z)(),et=(0,l.b7)({getCoreRowModel:(0,s.sC)(),getGroupedRowModel:(0,s.qe)(),getExpandedRowModel:(0,s.rV)(),getRowId:C.Z,columns:X,manualPagination:!0,data:Q,columnResizeMode:"onChange"});return U?(0,i.jsx)(c.I4,{rowHeight:36,numRows:36}):(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(d.Z,{filterTabs:j,filterTabIndex:f,onChange:p}),(0,i.jsx)(c.Q$,{children:(0,i.jsx)(r.kCb,{direction:"row",alignItems:"center",justifyContent:"space-between",width:"full",children:(0,i.jsxs)(r.kCb,{gap:6,align:"center",children:[(0,i.jsx)(r.xuv,{flexShrink:0,children:(0,i.jsx)(Z.M,{value:m,onChange:g})}),(0,i.jsx)(w.Z,{})]})})}),(0,i.jsx)(c.ZK,{tableInstance:et,onRowClick:e=>ee({resourceUrn:e.urn,filterTabIndex:f}),getRowIsClickable:e=>J!==v.D$.FIELD||(0,T.Z)(e),emptyTableNotice:(0,i.jsx)(O,{})}),(0,i.jsx)(c.s8,{totalRows:B||0,pageSizes:M,setPageSize:I,onPreviousPageClick:L,isPreviousPageDisabled:k||$,onNextPageClick:A,isNextPageDisabled:V||$,startRange:N,endRange:F})]})}},61934:function(e,t,a){var i=a(24246),l=a(52615);t.Z=e=>{let{type:t}=e;return(0,i.jsx)(l.kCb,{align:"center",h:"full",children:!!t&&(0,i.jsx)(l.j8w,{children:t})})}}}]);
@@ -1 +1 @@
1
- "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5973],{37541:function(e,t,i){var l=i(24246),n=i(96013),r=i(53614);t.Z=e=>{let{heading:t,breadcrumbItems:i,isSticky:a=!0,children:s,rightContent:o,style:d,...c}=e;return(0,l.jsxs)("div",{...c,style:a?{position:"sticky",top:"-24px",paddingTop:"24px",paddingBottom:"24px",paddingLeft:"40px",marginLeft:"-40px",paddingRight:"40px",marginRight:"-40px",marginTop:"-24px",left:0,zIndex:20,backgroundColor:"white",...d}:{paddingBottom:"24px",...d},children:[(0,l.jsxs)(n.jqI,{justify:"space-between",children:["string"==typeof t?(0,l.jsx)(n.X6q,{className:i||s?"pb-4":void 0,fontSize:"2xl","data-testid":"page-heading",children:t}):t,o&&(0,l.jsx)("div",{"data-testid":"page-header-right-content",children:o})]}),!!i&&(0,l.jsx)(r.m,{className:s?"pb-4":void 0,items:i,"data-testid":"page-breadcrumb"}),s]})}},79511:function(e,t,i){i.d(t,{k:function(){return r}});var l=i(76649);let n=e=>(0,l.Ln)({id:"string"},e),r=e=>(null!=e?e:[]).filter(n)},19535:function(e,t,i){i.d(t,{m:function(){return o}});var l=i(27378),n=i(11596),r=i(53359),a=i(96878),s=i(79511);let o=e=>{let{resourceFidesKey:t,resourceType:i}=e,{errorAlert:o}=(0,r.V)(),{plus:d}=(0,n.hz)(),c=(0,l.useMemo)(()=>null!=t?t:"",[]),u=(0,a.YU)(!0,{skip:!d}),p=(0,a.VN)(i,{skip:!d}),{data:m,isLoading:x,error:h,isError:f}=(0,a.PV)(null!=t?t:"",{skip:""!==c&&!(d&&c)}),[v]=(0,a._D)(),g=u.isLoading||p.isLoading||x,j=(0,l.useMemo)(()=>new Map((0,s.k)(u.data).map(e=>{var t;return[e.id,{...e,options:(null!==(t=e.allowed_values)&&void 0!==t?t:[]).map(e=>({value:e,label:e}))}]})),[u.data]),_=(0,l.useMemo)(()=>{var e;return null===(e=p.data)||void 0===e?void 0:e.filter(e=>e.active)},[p.data]),C=(0,l.useMemo)(()=>new Map((0,s.k)(_).map(e=>[e.id,e])),[_]),b=(0,l.useMemo)(()=>f&&(null==h?void 0:h.status)===404?new Map:new Map((0,s.k)(m).map(e=>[e.custom_field_definition_id,e])),[m,f,h]),S=(0,l.useMemo)(()=>{let e=[...C.keys()];return e.sort(),e},[C]),y=(0,l.useMemo)(()=>{let e={};return _&&b&&_.forEach(t=>{let i=b.get(t.id||"");i&&(t.allow_list_id&&"string[]"===t.field_type?e[i.custom_field_definition_id]=i.value:e[i.custom_field_definition_id]=i.value.toString())}),e},[_,b]),T=(0,l.useCallback)(async e=>{if(!d)return;let l="fides_key"in e&&""!==e.fides_key?e.fides_key:t;if(!l)return;let{customFieldValues:n}=e;if(!n||0===Object.keys(n).length)return;let r=[],a=[];S.forEach(e=>{let t=b.get(e),i=n[e];void 0===i||""===i||Array.isArray(i)&&0===i.length?(null==t?void 0:t.id)&&a.push(t.id):r.push({custom_field_definition_id:e,resource_id:l,id:null==t?void 0:t.id,value:i})});try{await v({resource_type:i,resource_id:l,upsert:r,delete:a})}catch(e){o("One or more custom fields have failed to save, please try again."),console.error(e)}},[d,b,o,t,S,v,i]);return{customFieldValues:y,definitionIdToCustomField:b,idToAllowListWithOptions:j,idToCustomFieldDefinition:C,isEnabled:d,isLoading:g,sortedCustomFieldDefinitionIds:S,upsertCustomFields:T}}},79356:function(e,t,i){i.d(t,{uc:function(){return v},Hn:function(){return o},Uv:function(){return a},C7:function(){return d},mZ:function(){return f.m}});var l,n,r,a,s=i(37760);(l=r||(r={}))[l.CREATE_CUSTOM_FIELDS=0]="CREATE_CUSTOM_FIELDS",l[l.CREATE_CUSTOM_LISTS=1]="CREATE_CUSTOM_LISTS",l[l.CHOOSE_FROM_LIBRARY=2]="CHOOSE_FROM_LIBRARY",s.AL.STRING,s.AL.STRING_,(n=a||(a={})).SINGLE_SELECT="singleSelect",n.MULTIPLE_SELECT="multipleSelect",n.OPEN_TEXT="openText";let o=[{label:"Single select",value:"singleSelect"},{label:"Multiple select",value:"multipleSelect"},{label:"Open Text",value:"openText"}],d=[{label:"taxonomy:".concat(s.P6.DATA_CATEGORY),value:s.P6.DATA_CATEGORY},{label:"taxonomy:".concat(s.P6.DATA_SUBJECT),value:s.P6.DATA_SUBJECT},{label:"taxonomy:".concat(s.P6.DATA_USE),value:s.P6.DATA_USE},{label:"".concat(s.P6.SYSTEM,":information"),value:s.P6.SYSTEM},{label:"system:data use",value:s.P6.PRIVACY_DECLARATION}];var c=i(24246),u=i(96013),p=i(34090),m=i(90982),x=i(78973),h=i(34803),f=i(19535);let v=e=>{let{resourceFidesKey:t,resourceType:i}=e,{idToAllowListWithOptions:l,idToCustomFieldDefinition:n,isEnabled:r,isLoading:a,sortedCustomFieldDefinitionIds:o}=(0,f.m)({resourceFidesKey:t,resourceType:i});return r&&0!==o.length?(0,c.jsx)(m.Z,{heading:"Custom fields",children:(0,c.jsx)(u.kCb,{flexDir:"column","data-testid":"custom-fields-list",children:(0,c.jsx)(u.kCb,{flexDir:"column",gap:"24px",children:a?(0,c.jsx)(u.M5Y,{children:(0,c.jsx)(u.$jN,{})}):o.length>0&&(0,c.jsx)(u.kCb,{flexDirection:"column",gap:"12px",paddingBottom:"24px",children:o.map(e=>{let t=n.get(e);if(!t)return null;let i="customFieldValues.".concat(t.id);if(!t.allow_list_id&&t.field_type===s.AL.STRING)return(0,c.jsx)(p.gN,{name:i,children:e=>{let{field:i}=e;return(0,c.jsx)(h.j0,{...i,label:t.name,tooltip:t.description,variant:"stacked"})}},e);let r=l.get(t.allow_list_id);if(!r)return null;let{options:a}=r;return(0,c.jsx)(x.d,{name:i,allowClear:!0,mode:t.field_type!==s.AL.STRING?"multiple":void 0,label:t.name,options:a,tooltip:t.description,layout:"stacked",className:"w-full"},e)})})})})}):null};i(79511)},78973:function(e,t,i){i.d(t,{d:function(){return d}});var l=i(24246),n=i(96013),r=i(34090),a=i(27378),s=i(39514),o=i(34803);let d=e=>{let{name:t,label:i,labelProps:d,tooltip:c,isRequired:u,layout:p="inline",...m}=e,[x,h,{setValue:f}]=(0,r.U$)(t),v=!!(h.touched&&h.error),[g,j]=(0,a.useState)("");x.value||"tags"!==m.mode&&"multiple"!==m.mode||(x.value=[]),"tags"===m.mode&&"string"==typeof x.value&&(x.value=[x.value]);let _="tags"===m.mode?(e,t)=>e?e.value!==g||x.value.includes(g)?m.optionRender?m.optionRender(e,t):e.label:'Create "'.concat(g,'"'):void 0:m.optionRender||void 0,C=e=>{j(e),m.onSearch&&m.onSearch(e)},b=(e,t)=>{f(e),m.onChange&&m.onChange(e,t)};return"inline"===p?(0,l.jsx)(n.NIc,{isInvalid:v,isRequired:u,children:(0,l.jsxs)(n.rjZ,{templateColumns:i?"1fr 3fr":"1fr",children:[i?(0,l.jsx)(o.__,{htmlFor:m.id||t,...d,children:i}):null,(0,l.jsxs)(n.jqI,{align:"center",children:[(0,l.jsxs)(n.jqI,{vertical:!0,flex:1,className:"mr-2",children:[(0,l.jsx)(n.WPr,{...x,id:m.id||t,"data-testid":"controlled-select-".concat(x.name),...m,optionRender:_,onSearch:"tags"===m.mode?C:void 0,onChange:b,value:x.value||void 0}),(0,l.jsx)(o.Bc,{isInvalid:v,message:h.error,fieldName:x.name})]}),c?(0,l.jsx)(s.Z,{label:c}):null]})]})}):(0,l.jsx)(n.NIc,{isInvalid:v,isRequired:u,children:(0,l.jsxs)(n.gCW,{alignItems:"start",children:[(0,l.jsxs)(n.jqI,{align:"center",children:[i?(0,l.jsx)(o.__,{htmlFor:m.id||t,fontSize:"xs",my:0,mr:1,...d,children:i}):null,c?(0,l.jsx)(s.Z,{label:c}):null]}),(0,l.jsx)(n.WPr,{...x,id:m.id||t,"data-testid":"controlled-select-".concat(x.name),...m,optionRender:_,onSearch:"tags"===m.mode?C:void 0,onChange:b,value:x.value||void 0}),(0,l.jsx)(o.Bc,{isInvalid:v,message:h.error,fieldName:x.name})]})})}},53359:function(e,t,i){i.d(t,{H:function(){return r},V:function(){return l.V}});var l=i(75139),n=i(60136);let r=()=>{let{errorAlert:e}=(0,l.V)();return{handleError:t=>{let i="An unexpected error occurred. Please try again.";(0,n.Ot)(t)?i=t.data.detail:(0,n.tB)(t)&&(i=t.data.detail[0].msg),e(i)}}}},75139:function(e,t,i){i.d(t,{V:function(){return r}});var l=i(24246),n=i(96013);let r=()=>{let e=(0,n.pmc)();return{errorAlert:(t,i,r)=>{let a={...r,position:(null==r?void 0:r.position)||"top",render:e=>{let{onClose:r}=e;return(0,l.jsxs)(n.bZj,{alignItems:"normal",status:"error","data-testid":"error-alert",children:[(0,l.jsx)(n.zMQ,{}),(0,l.jsxs)(n.xuv,{children:[i&&(0,l.jsx)(n.CdC,{children:i}),(0,l.jsx)(n.XaZ,{children:t})]}),(0,l.jsx)(n.PZ7,{onClick:r,position:"relative",right:0,size:"sm",top:-1})]})}};(null==r?void 0:r.id)&&e.isActive(r.id)?e.update(r.id,a):e(a)},successAlert:(t,i,r)=>{let a={...r,position:(null==r?void 0:r.position)||"top",render:e=>{let{onClose:r}=e;return(0,l.jsxs)(n.bZj,{alignItems:"normal",status:"success",variant:"subtle","data-testid":"success-alert",children:[(0,l.jsx)(n.zMQ,{}),(0,l.jsxs)(n.xuv,{children:[i&&(0,l.jsx)(n.CdC,{children:i}),(0,l.jsx)(n.XaZ,{children:t})]}),(0,l.jsx)(n.PZ7,{onClick:r,position:"relative",right:0,size:"sm",top:-1})]})}};(null==r?void 0:r.id)&&e.isActive(r.id)?e.update(r.id,a):e(a)}}}},53614:function(e,t,i){i.d(t,{m:function(){return d}});var l=i(24246),n=i(96013),r=i(79894),a=i.n(r),s=i(27378);let{Text:o}=n.AntTypography,d=e=>{let{items:t,...i}=e,r=(0,s.useMemo)(()=>null==t?void 0:t.map((e,i)=>{let r=i===t.length-1,s={...e},d=s.onClick&&!s.href;return("string"==typeof s.title&&(s.title=(0,l.jsx)(o,{style:{color:"inherit",maxWidth:r?void 0:400},ellipsis:!r,children:s.title})),d)?s.title=(0,l.jsx)(n.wpx,{type:"text",size:"small",icon:s.icon,onClick:s.onClick,className:"ant-breadcrumb-link -mt-px px-1 text-inherit",children:s.title}):(s.icon&&(s.title=(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("span",{className:"anticon align-text-bottom",children:s.icon}),s.title]})),s.href&&s.title&&(s.title=(0,l.jsx)(a(),{href:s.href,className:"ant-breadcrumb-link",children:s.title}),delete s.href)),s}),[t]);return(0,l.jsx)(n.zrq,{items:r,...i})}},90982:function(e,t,i){var l=i(24246),n=i(96013);t.Z=e=>{let{heading:t,HeadingButton:i,children:r}=e;return(0,l.jsx)(n.Kqy,{spacing:4,children:(0,l.jsxs)(n.xuv,{maxWidth:"720px",border:"1px",borderColor:"gray.200",borderRadius:6,overflow:"visible",mt:6,children:[(0,l.jsxs)(n.xuv,{backgroundColor:"gray.50",px:6,py:4,display:"flex",flexDirection:"row",alignItems:"center",borderBottom:"1px",borderColor:"gray.200",borderTopRadius:6,children:[(0,l.jsx)(n.X6q,{as:"h3",size:"xs",children:t}),i?(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(n.LZC,{}),(0,l.jsx)(i,{})]}):null]}),(0,l.jsx)(n.Kqy,{spacing:4,px:6,py:6,children:r})]})})}}}]);
1
+ "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5973],{37541:function(e,t,i){var l=i(24246),n=i(52615),r=i(53614);t.Z=e=>{let{heading:t,breadcrumbItems:i,isSticky:a=!0,children:s,rightContent:o,style:d,...c}=e;return(0,l.jsxs)("div",{...c,style:a?{position:"sticky",top:"-24px",paddingTop:"24px",paddingBottom:"24px",paddingLeft:"40px",marginLeft:"-40px",paddingRight:"40px",marginRight:"-40px",marginTop:"-24px",left:0,zIndex:20,backgroundColor:"white",...d}:{paddingBottom:"24px",...d},children:[(0,l.jsxs)(n.jqI,{justify:"space-between",children:["string"==typeof t?(0,l.jsx)(n.X6q,{className:i||s?"pb-4":void 0,fontSize:"2xl","data-testid":"page-heading",children:t}):t,o&&(0,l.jsx)("div",{"data-testid":"page-header-right-content",children:o})]}),!!i&&(0,l.jsx)(r.m,{className:s?"pb-4":void 0,items:i,"data-testid":"page-breadcrumb"}),s]})}},79511:function(e,t,i){i.d(t,{k:function(){return r}});var l=i(76649);let n=e=>(0,l.Ln)({id:"string"},e),r=e=>(null!=e?e:[]).filter(n)},19535:function(e,t,i){i.d(t,{m:function(){return o}});var l=i(27378),n=i(11596),r=i(53359),a=i(96878),s=i(79511);let o=e=>{let{resourceFidesKey:t,resourceType:i}=e,{errorAlert:o}=(0,r.V)(),{plus:d}=(0,n.hz)(),c=(0,l.useMemo)(()=>null!=t?t:"",[]),u=(0,a.YU)(!0,{skip:!d}),p=(0,a.VN)(i,{skip:!d}),{data:m,isLoading:x,error:h,isError:f}=(0,a.PV)(null!=t?t:"",{skip:""!==c&&!(d&&c)}),[v]=(0,a._D)(),g=u.isLoading||p.isLoading||x,j=(0,l.useMemo)(()=>new Map((0,s.k)(u.data).map(e=>{var t;return[e.id,{...e,options:(null!==(t=e.allowed_values)&&void 0!==t?t:[]).map(e=>({value:e,label:e}))}]})),[u.data]),_=(0,l.useMemo)(()=>{var e;return null===(e=p.data)||void 0===e?void 0:e.filter(e=>e.active)},[p.data]),C=(0,l.useMemo)(()=>new Map((0,s.k)(_).map(e=>[e.id,e])),[_]),b=(0,l.useMemo)(()=>f&&(null==h?void 0:h.status)===404?new Map:new Map((0,s.k)(m).map(e=>[e.custom_field_definition_id,e])),[m,f,h]),S=(0,l.useMemo)(()=>{let e=[...C.keys()];return e.sort(),e},[C]),y=(0,l.useMemo)(()=>{let e={};return _&&b&&_.forEach(t=>{let i=b.get(t.id||"");i&&(t.allow_list_id&&"string[]"===t.field_type?e[i.custom_field_definition_id]=i.value:e[i.custom_field_definition_id]=i.value.toString())}),e},[_,b]),T=(0,l.useCallback)(async e=>{if(!d)return;let l="fides_key"in e&&""!==e.fides_key?e.fides_key:t;if(!l)return;let{customFieldValues:n}=e;if(!n||0===Object.keys(n).length)return;let r=[],a=[];S.forEach(e=>{let t=b.get(e),i=n[e];void 0===i||""===i||Array.isArray(i)&&0===i.length?(null==t?void 0:t.id)&&a.push(t.id):r.push({custom_field_definition_id:e,resource_id:l,id:null==t?void 0:t.id,value:i})});try{await v({resource_type:i,resource_id:l,upsert:r,delete:a})}catch(e){o("One or more custom fields have failed to save, please try again."),console.error(e)}},[d,b,o,t,S,v,i]);return{customFieldValues:y,definitionIdToCustomField:b,idToAllowListWithOptions:j,idToCustomFieldDefinition:C,isEnabled:d,isLoading:g,sortedCustomFieldDefinitionIds:S,upsertCustomFields:T}}},79356:function(e,t,i){i.d(t,{uc:function(){return v},Hn:function(){return o},Uv:function(){return a},C7:function(){return d},mZ:function(){return f.m}});var l,n,r,a,s=i(37760);(l=r||(r={}))[l.CREATE_CUSTOM_FIELDS=0]="CREATE_CUSTOM_FIELDS",l[l.CREATE_CUSTOM_LISTS=1]="CREATE_CUSTOM_LISTS",l[l.CHOOSE_FROM_LIBRARY=2]="CHOOSE_FROM_LIBRARY",s.AL.STRING,s.AL.STRING_,(n=a||(a={})).SINGLE_SELECT="singleSelect",n.MULTIPLE_SELECT="multipleSelect",n.OPEN_TEXT="openText";let o=[{label:"Single select",value:"singleSelect"},{label:"Multiple select",value:"multipleSelect"},{label:"Open Text",value:"openText"}],d=[{label:"taxonomy:".concat(s.P6.DATA_CATEGORY),value:s.P6.DATA_CATEGORY},{label:"taxonomy:".concat(s.P6.DATA_SUBJECT),value:s.P6.DATA_SUBJECT},{label:"taxonomy:".concat(s.P6.DATA_USE),value:s.P6.DATA_USE},{label:"".concat(s.P6.SYSTEM,":information"),value:s.P6.SYSTEM},{label:"system:data use",value:s.P6.PRIVACY_DECLARATION}];var c=i(24246),u=i(52615),p=i(34090),m=i(90982),x=i(78973),h=i(34803),f=i(19535);let v=e=>{let{resourceFidesKey:t,resourceType:i}=e,{idToAllowListWithOptions:l,idToCustomFieldDefinition:n,isEnabled:r,isLoading:a,sortedCustomFieldDefinitionIds:o}=(0,f.m)({resourceFidesKey:t,resourceType:i});return r&&0!==o.length?(0,c.jsx)(m.Z,{heading:"Custom fields",children:(0,c.jsx)(u.kCb,{flexDir:"column","data-testid":"custom-fields-list",children:(0,c.jsx)(u.kCb,{flexDir:"column",gap:"24px",children:a?(0,c.jsx)(u.M5Y,{children:(0,c.jsx)(u.$jN,{})}):o.length>0&&(0,c.jsx)(u.kCb,{flexDirection:"column",gap:"12px",paddingBottom:"24px",children:o.map(e=>{let t=n.get(e);if(!t)return null;let i="customFieldValues.".concat(t.id);if(!t.allow_list_id&&t.field_type===s.AL.STRING)return(0,c.jsx)(p.gN,{name:i,children:e=>{let{field:i}=e;return(0,c.jsx)(h.j0,{...i,label:t.name,tooltip:t.description,variant:"stacked"})}},e);let r=l.get(t.allow_list_id);if(!r)return null;let{options:a}=r;return(0,c.jsx)(x.d,{name:i,allowClear:!0,mode:t.field_type!==s.AL.STRING?"multiple":void 0,label:t.name,options:a,tooltip:t.description,layout:"stacked",className:"w-full"},e)})})})})}):null};i(79511)},78973:function(e,t,i){i.d(t,{d:function(){return d}});var l=i(24246),n=i(52615),r=i(34090),a=i(27378),s=i(39514),o=i(34803);let d=e=>{let{name:t,label:i,labelProps:d,tooltip:c,isRequired:u,layout:p="inline",...m}=e,[x,h,{setValue:f}]=(0,r.U$)(t),v=!!(h.touched&&h.error),[g,j]=(0,a.useState)("");x.value||"tags"!==m.mode&&"multiple"!==m.mode||(x.value=[]),"tags"===m.mode&&"string"==typeof x.value&&(x.value=[x.value]);let _="tags"===m.mode?(e,t)=>e?e.value!==g||x.value.includes(g)?m.optionRender?m.optionRender(e,t):e.label:'Create "'.concat(g,'"'):void 0:m.optionRender||void 0,C=e=>{j(e),m.onSearch&&m.onSearch(e)},b=(e,t)=>{f(e),m.onChange&&m.onChange(e,t)};return"inline"===p?(0,l.jsx)(n.NIc,{isInvalid:v,isRequired:u,children:(0,l.jsxs)(n.rjZ,{templateColumns:i?"1fr 3fr":"1fr",children:[i?(0,l.jsx)(o.__,{htmlFor:m.id||t,...d,children:i}):null,(0,l.jsxs)(n.jqI,{align:"center",children:[(0,l.jsxs)(n.jqI,{vertical:!0,flex:1,className:"mr-2",children:[(0,l.jsx)(n.WPr,{...x,id:m.id||t,"data-testid":"controlled-select-".concat(x.name),...m,optionRender:_,onSearch:"tags"===m.mode?C:void 0,onChange:b,value:x.value||void 0}),(0,l.jsx)(o.Bc,{isInvalid:v,message:h.error,fieldName:x.name})]}),c?(0,l.jsx)(s.Z,{label:c}):null]})]})}):(0,l.jsx)(n.NIc,{isInvalid:v,isRequired:u,children:(0,l.jsxs)(n.gCW,{alignItems:"start",children:[(0,l.jsxs)(n.jqI,{align:"center",children:[i?(0,l.jsx)(o.__,{htmlFor:m.id||t,fontSize:"xs",my:0,mr:1,...d,children:i}):null,c?(0,l.jsx)(s.Z,{label:c}):null]}),(0,l.jsx)(n.WPr,{...x,id:m.id||t,"data-testid":"controlled-select-".concat(x.name),...m,optionRender:_,onSearch:"tags"===m.mode?C:void 0,onChange:b,value:x.value||void 0}),(0,l.jsx)(o.Bc,{isInvalid:v,message:h.error,fieldName:x.name})]})})}},53359:function(e,t,i){i.d(t,{H:function(){return r},V:function(){return l.V}});var l=i(75139),n=i(60136);let r=()=>{let{errorAlert:e}=(0,l.V)();return{handleError:t=>{let i="An unexpected error occurred. Please try again.";(0,n.Ot)(t)?i=t.data.detail:(0,n.tB)(t)&&(i=t.data.detail[0].msg),e(i)}}}},75139:function(e,t,i){i.d(t,{V:function(){return r}});var l=i(24246),n=i(52615);let r=()=>{let e=(0,n.pmc)();return{errorAlert:(t,i,r)=>{let a={...r,position:(null==r?void 0:r.position)||"top",render:e=>{let{onClose:r}=e;return(0,l.jsxs)(n.bZj,{alignItems:"normal",status:"error","data-testid":"error-alert",children:[(0,l.jsx)(n.zMQ,{}),(0,l.jsxs)(n.xuv,{children:[i&&(0,l.jsx)(n.CdC,{children:i}),(0,l.jsx)(n.XaZ,{children:t})]}),(0,l.jsx)(n.PZ7,{onClick:r,position:"relative",right:0,size:"sm",top:-1})]})}};(null==r?void 0:r.id)&&e.isActive(r.id)?e.update(r.id,a):e(a)},successAlert:(t,i,r)=>{let a={...r,position:(null==r?void 0:r.position)||"top",render:e=>{let{onClose:r}=e;return(0,l.jsxs)(n.bZj,{alignItems:"normal",status:"success",variant:"subtle","data-testid":"success-alert",children:[(0,l.jsx)(n.zMQ,{}),(0,l.jsxs)(n.xuv,{children:[i&&(0,l.jsx)(n.CdC,{children:i}),(0,l.jsx)(n.XaZ,{children:t})]}),(0,l.jsx)(n.PZ7,{onClick:r,position:"relative",right:0,size:"sm",top:-1})]})}};(null==r?void 0:r.id)&&e.isActive(r.id)?e.update(r.id,a):e(a)}}}},53614:function(e,t,i){i.d(t,{m:function(){return d}});var l=i(24246),n=i(52615),r=i(79894),a=i.n(r),s=i(27378);let{Text:o}=n.AntTypography,d=e=>{let{items:t,...i}=e,r=(0,s.useMemo)(()=>null==t?void 0:t.map((e,i)=>{let r=i===t.length-1,s={...e},d=s.onClick&&!s.href;return("string"==typeof s.title&&(s.title=(0,l.jsx)(o,{style:{color:"inherit",maxWidth:r?void 0:400},ellipsis:!r,children:s.title})),d)?s.title=(0,l.jsx)(n.wpx,{type:"text",size:"small",icon:s.icon,onClick:s.onClick,className:"ant-breadcrumb-link -mt-px px-1 text-inherit",children:s.title}):(s.icon&&(s.title=(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("span",{className:"anticon align-text-bottom",children:s.icon}),s.title]})),s.href&&s.title&&(s.title=(0,l.jsx)(a(),{href:s.href,className:"ant-breadcrumb-link",children:s.title}),delete s.href)),s}),[t]);return(0,l.jsx)(n.zrq,{items:r,...i})}},90982:function(e,t,i){var l=i(24246),n=i(52615);t.Z=e=>{let{heading:t,HeadingButton:i,children:r}=e;return(0,l.jsx)(n.Kqy,{spacing:4,children:(0,l.jsxs)(n.xuv,{maxWidth:"720px",border:"1px",borderColor:"gray.200",borderRadius:6,overflow:"visible",mt:6,children:[(0,l.jsxs)(n.xuv,{backgroundColor:"gray.50",px:6,py:4,display:"flex",flexDirection:"row",alignItems:"center",borderBottom:"1px",borderColor:"gray.200",borderTopRadius:6,children:[(0,l.jsx)(n.X6q,{as:"h3",size:"xs",children:t}),i?(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(n.LZC,{}),(0,l.jsx)(i,{})]}):null]}),(0,l.jsx)(n.Kqy,{spacing:4,px:6,py:6,children:r})]})})}}}]);
@@ -1 +1 @@
1
- "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6182],{36182:function(e,n,i){i.d(n,{Z:function(){return S}});var t=i(24246),a=i(96013),o=i(34090),l=i(86677),r=i(27378),s=i(59389),d=i(44296),c=i(60136);let p=(0,a.IUT)({displayName:"DesktopIcon",viewBox:"0 0 24 24",path:(0,t.jsx)("path",{fill:"currentColor",d:"M20.5556 4.05556H3.44444C3.10833 4.05556 2.83333 4.33056 2.83333 4.66667V12H21.1667V4.66667C21.1667 4.33056 20.8917 4.05556 20.5556 4.05556ZM23 12V13.8333V15.6667C23 17.0149 21.9038 18.1111 20.5556 18.1111H14.9142L15.2198 19.9445H17.1944C17.7024 19.9445 18.1111 20.3531 18.1111 20.8611C18.1111 21.3691 17.7024 21.7778 17.1944 21.7778H14.4444H9.55556H6.80556C6.29757 21.7778 5.88889 21.3691 5.88889 20.8611C5.88889 20.3531 6.29757 19.9445 6.80556 19.9445H8.78021L9.08576 18.1111H3.44444C2.09618 18.1111 1 17.0149 1 15.6667V13.8333V12V4.66667C1 3.31841 2.09618 2.22223 3.44444 2.22223H20.5556C21.9038 2.22223 23 3.31841 23 4.66667V12ZM2.83333 13.8333V15.6667C2.83333 16.0028 3.10833 16.2778 3.44444 16.2778H10.1476C10.159 16.2778 10.1705 16.2778 10.1781 16.2778H13.8142C13.8257 16.2778 13.8372 16.2778 13.8448 16.2778H20.5556C20.8917 16.2778 21.1667 16.0028 21.1667 15.6667V13.8333H2.83333ZM10.6365 19.9445H13.3597L13.0542 18.1111H10.942L10.6365 19.9445Z"})}),u=(0,a.IUT)({displayName:"MobileIcon",viewBox:"0 0 24 24",path:(0,t.jsx)("path",{fill:"currentColor",d:"M6.5 20.25C6.5 20.6281 6.80938 20.9375 7.1875 20.9375H16.8125C17.1906 20.9375 17.5 20.6281 17.5 20.25V16.8125H6.5V20.25ZM6.5 14.75H17.5V3.75C17.5 3.37188 17.1906 3.0625 16.8125 3.0625H7.1875C6.80938 3.0625 6.5 3.37188 6.5 3.75V14.75ZM4.4375 3.75C4.4375 2.2332 5.6707 1 7.1875 1H16.8125C18.3293 1 19.5625 2.2332 19.5625 3.75V20.25C19.5625 21.7668 18.3293 23 16.8125 23H7.1875C5.6707 23 4.4375 21.7668 4.4375 20.25V3.75ZM12 17.8438C12.2735 17.8438 12.5358 17.9524 12.7292 18.1458C12.9226 18.3392 13.0312 18.6015 13.0312 18.875C13.0312 19.1485 12.9226 19.4108 12.7292 19.6042C12.5358 19.7976 12.2735 19.9062 12 19.9062C11.7265 19.9062 11.4642 19.7976 11.2708 19.6042C11.0774 19.4108 10.9688 19.1485 10.9688 18.875C10.9688 18.6015 11.0774 18.3392 11.2708 18.1458C11.4642 17.9524 11.7265 17.8438 12 17.8438Z"})});var v=i(87162),_=i(16781),m=i(91943),b=i(35051),f=i(46835),g=i.n(f),y=i(43218),h=i.n(y),x=i(52020),w=i(20949),C=i(37760);let k={language:C.eU.EN,accept_button_label:"Accept",acknowledge_button_label:"OK",banner_description:"",banner_title:"",purpose_header:"",description:"Description",privacy_policy_link_label:"",privacy_policy_url:"",modal_link_label:"",privacy_preferences_link_label:"Privacy preferences",reject_button_label:"Reject All",save_button_label:"Save",title:"Manage your consent preferences",is_default:!0},j=e=>({...k,...e.translations?e.translations[0]:{}}),V=(e,n)=>{var i,t,a,o;return{options:{debug:!1,geolocationApiUrl:"",isGeolocationEnabled:!1,isOverlayEnabled:!0,isPrefetchEnabled:!1,overlayParentId:x.Vk,modalLinkId:null,privacyCenterUrl:"http://localhost:3000",fidesApiUrl:"http://localhost:8080/api/v1",preventDismissal:null!==(o=e.dismissable)&&void 0!==o&&o,allowHTMLDescription:!0,fidesString:null,fidesJsBaseUrl:"",base64Cookie:!1,fidesLocale:null===(t=e.translations)||void 0===t?void 0:null===(i=t[0])||void 0===i?void 0:i.language,fidesClearCookie:!0},experience:{id:"pri_111",region:"us_ca",component:"banner_and_modal",available_locales:null===(a=e.translations)||void 0===a?void 0:a.map(e=>e.language),experience_config:{id:"pri_222",regions:["us_ca"],component:"banner_and_modal",disabled:!1,is_default:!0,dismissable:e.dismissable,show_layer1_notices:!1,layer1_button_options:w.O.OPT_IN_OPT_OUT,allow_language_selection:!0,auto_detect_language:!0,auto_subdomain_cookie_deletion:!0,language:"en",translations:[j(e)]},privacy_notices:n},geolocation:{country:"US",location:"US-CA",region:"CA"}}},A=e=>{let{language:n,is_default:i,...t}=k,a=Object.keys(t).map(n=>{let i=e[n];return{[n]:void 0!==i?i:k[n]}}).reduce((e,n)=>({...e,...n}),{});return{language:e.language,is_default:e.is_default,...a}};var N=i(40793),E=i(35093);let D=e=>{let{title:n,description:i}=e;return(0,t.jsx)(a.kCb,{h:"full",justify:"center",align:"center",children:(0,t.jsxs)(a.kCb,{bgColor:"white",borderRadius:"md",p:6,boxShadow:"md",direction:"column",align:"center",gap:"2",maxW:"512px","data-testid":"no-preview-notice",children:[(0,t.jsx)(a.xvT,{fontSize:"lg",fontWeight:"500",align:"center",children:n}),(0,t.jsx)(a.xvT,{color:"gray.500",align:"center",children:i})]})})};var H=e=>{var n;let{allPrivacyNotices:i,initialValues:l,translation:s,isMobilePreview:d}=e,{values:p}=(0,o.u6)(),[u,v]=(0,r.useState)([]),_=[C.re.BANNER_AND_MODAL,C.re.MODAL].includes(p.component),m=(0,a.pmc)(),[b]=(0,N.Je)(),f=async e=>{let n=await b(e);n.isError&&m({status:"error",description:(0,c.e$)(n.error,"A problem occurred while fetching privacy notice data. Some notices may not display correctly on the preview.")});let{data:i}=await b(e);return i};(0,r.useEffect)(()=>{p.privacy_notice_ids&&p.component!==C.re.TCF_OVERLAY?Promise.all(p.privacy_notice_ids.map(e=>f(e))).then(e=>v(e.filter(e=>void 0!==e))):v([])},[p.privacy_notice_ids]);let y=(0,r.useMemo)(()=>V(l,u),[l,u]);(0,r.useEffect)(()=>{var e,n,i,t;p.component===C.re.MODAL&&(y.experience.experience_config.component=C.re.MODAL);let a=null===(e=p.translations)||void 0===e?void 0:e.find(e=>e.language===(null==s?void 0:s.language));(null===(n=p.translations)||void 0===n?void 0:n.length)&&(a?(y.experience.available_locales=[...y.experience.available_locales||[],a.language],y.experience.experience_config.translations[0]=A(a),y.options.fidesLocale=a.language):p.translations&&(y.experience.experience_config.translations[0]=A(p.translations[0]),y.options.fidesLocale=p.translations[0].language)),y.experience.experience_config.show_layer1_notices=!!(null===(i=p.privacy_notice_ids)||void 0===i?void 0:i.length)&&!!p.show_layer1_notices,y.experience.experience_config.layer1_button_options=p.component===C.re.BANNER_AND_MODAL&&p.layer1_button_options||w.O.OPT_IN_OPT_OUT,y.options.preventDismissal=!p.dismissable,window.Fides&&(null===(t=p.privacy_notice_ids)||void 0===t?void 0:t.length)&&_&&window.Fides.init(y)},[p,s,y,i,_]);let k=document.getElementById("fides-modal");return(k&&k.removeAttribute("tabindex"),_)?(null===(n=p.privacy_notice_ids)||void 0===n?void 0:n.length)?(0,t.jsxs)(a.kCb,{h:"full",justify:"center",align:"center",overflow:"scroll",children:[(0,t.jsx)(g(),{id:"905800c62191633b",dynamic:[x.Vk],children:"div#fides-overlay{z-index:5000!important}div#".concat(x.Vk,"{padding-top:45px;margin:auto!important;pointer-events:none}div#fides-banner-container{position:static!important;-webkit-transform:none!important;-moz-transform:none!important;-ms-transform:none!important;-o-transform:none!important;transform:none!important;-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;transition:none!important}div#fides-banner-container.fides-banner-hidden{display:none}.fides-modal-container{background-color:unset!important;position:static!important;display:none!important}.fides-modal-overlay{background-color:inherit!important;position:static!important;display:none!important}div.fides-modal-content{position:relative!important;-webkit-transform:none!important;-moz-transform:none!important;-ms-transform:none!important;-o-transform:none!important;transform:none!important;left:initial!important;top:initial!important}div.fides-modal-footer{width:unset}")}),_?(0,t.jsx)("style",{children:"div#fides-modal {\n display: flex !important;\n justify-content: center;\n background-color: unset;\n ".concat(p.component===C.re.BANNER_AND_MODAL?"padding-top: 3rem; padding-bottom: 3rem;":"","\n }")}):null,d?(0,t.jsx)("style",{children:"\n div#".concat(x.Vk," {\n width: 70% !important;\n }\n div.fides-modal-button-group {\n flex-direction: column !important;\n }\n div#fides-modal {\n width: 70% !important;\n margin: auto;\n }\n div#fides-banner {\n padding: 24px;\n width: 100%;\n }\n\n div#fides-banner-description {\n margin-bottom: 0px;\n }\n\n div#fides-banner-inner div#fides-button-group {\n flex-direction: column;\n align-items: flex-start;\n gap: 12px;\n padding-top: 24px;\n }\n\n .fides-banner-button-group {\n flex-direction: column;\n width: 100%;\n }\n\n button.fides-banner-button {\n margin: 0px;\n width: 100%;\n }\n\n div#fides-banner-inner-container {\n display: flex;\n flex-direction: column;\n max-height: 50vh;\n overflow-y: auto;\n scrollbar-gutter: stable;\n }\n\n div#fides-privacy-policy-link {\n order: 1;\n width: 100%;\n }\n .fides-modal-footer {\n max-width: 100%;\n }\n .fides-banner-secondary-actions {\n flex-direction: column-reverse;\n gap: 12px;\n }\n ")}):(0,t.jsx)("style",{children:"\n div#fides-banner {\n width: 90% !important;\n }\n "}),(0,t.jsx)(h(),{id:"fides-js-base",src:"/lib/fides.js",onReady:()=>{if(_){var e;null===(e=window.Fides)||void 0===e||e.init(y)}}}),(0,t.jsx)("div",{id:x.Vk,className:g().dynamic([["905800c62191633b",[x.Vk]]])})]}):(0,t.jsx)(D,{title:"No privacy notices added",description:'To view a preview of this experience, add a privacy notice under "Privacy Notices" to the left.'}):(0,t.jsx)(D,{title:"".concat(E.J.get(p.component)," preview not available"),description:"There is no preview available for ".concat(E.J.get(p.component),". You can edit the available settings\n and languages to the left.")})},O=i(63982),M=i(74561),Z=i(31241),T=i(27365),L=i(43073);let P=e=>s.Ry().shape({title:s.Z_().required().label("Title"),description:s.Z_().required().label("Description"),accept_button_label:s.Z_().required().label("Accept button label"),reject_button_label:s.Z_().required().label("Reject button label"),save_button_label:s.Z_().required().label("Save button label"),acknowledge_button_label:s.Z_().required().label("Acknowledge button label"),privacy_policy_url:s.Z_().url().nullable().label("Privacy policy URL"),is_default:s.O7(),privacy_preferences_link_label:e?s.Z_().required().label("Privacy preferences link label"):s.Z_().nullable().label("Privacy preferences link label")}),R=s.Ry().shape({name:s.Z_().required().label("Experience name"),component:s.Z_().required().label("Experience type"),translations:s.IX().when("component",{is:e=>e===C.re.BANNER_AND_MODAL||e===C.re.TCF_OVERLAY,then:e=>e.of(P(!0)),otherwise:e=>e.of(P(!1))})});var S=e=>{var n;let{passedInExperience:i,passedInTranslations:s}=e,[f]=(0,O.mJ)(),[g]=(0,O.$d)(),y=(0,a.pmc)(),[h,x]=(0,r.useState)(!1),w=(0,l.useRouter)(),{data:C}=(0,T.tB)({api_set:!1}),k=null==C?void 0:null===(n=C.plus_consent_settings)||void 0===n?void 0:n.enable_translations,j=(0,d.C)(b.Zp),V=(0,d.C)(b.G1);(0,b.Ah)({page:j,size:V});let A=(0,d.C)(b.fJ),E=(0,d.C)(N.sX),D=i?{...m.DD,...(0,m.Uv)(i)}:m.DD,P=async e=>{var n,t;let a;e.privacy_notice_ids=null===(n=e.privacy_notice_ids)||void 0===n?void 0:n.filter(e=>"tcf_purposes_placeholder"!==e);let o={...e,disabled:null===(t=null==i?void 0:i.disabled)||void 0===t||t,allow_language_selection:e.translations&&e.translations.length>1};if(i){let{component:e,...n}=o;a=await g({...n,id:i.id})}else a=await f(o);(0,L.D4)(a)?y((0,_.Vo)((0,c.e$)(a.error))):(y((0,_.t5)("Privacy experience successfully ".concat(i?"updated":"created"))),w.push(v.w0))},[S,B]=(0,r.useState)(void 0),[U,I]=(0,r.useState)(!1);return(0,t.jsx)(o.J9,{initialValues:D,enableReinitialize:!0,onSubmit:P,validationSchema:R,children:(0,t.jsx)(o.l0,{style:{height:"100vh"},children:(0,t.jsxs)(a.kCb,{w:"full",h:"full",direction:"row","data-testid":"privacy-experience-detail-page",children:[S?(0,t.jsx)(Z.Z,{translation:S,translationsEnabled:k,isOOB:U,onReturnToMainForm:()=>{B(void 0),I(!1)}}):(0,t.jsx)(M.d0,{allPrivacyNotices:E,translationsEnabled:k,onSelectTranslation:e=>{B({...e,name:(0,m.Go)(e,A)})},onCreateTranslation:e=>{let n=null==s?void 0:s.find(n=>n.language===e);return n&&I(!0),null!=n?n:{language:e,is_default:!1}}}),(0,t.jsxs)(a.kCb,{direction:"column",w:"75%",bgColor:"gray.50",overflowY:"hidden",children:[(0,t.jsxs)(a.kCb,{direction:"row",p:4,align:"center",bgColor:"white",borderBottom:"1px solid #DEE5EE",children:[(0,t.jsx)(a.xvT,{fontSize:"md",fontWeight:"semibold",children:"PREVIEW"}),(0,t.jsx)(a.LZC,{}),(0,t.jsxs)("div",{className:"flex gap-2",children:[(0,t.jsx)(a.wpx,{icon:(0,t.jsx)(u,{}),"aria-label":"View mobile preview",onClick:()=>x(!0),className:h?"bg-gray-200":void 0}),(0,t.jsx)(a.wpx,{icon:(0,t.jsx)(p,{}),"aria-label":"View desktop preview",onClick:()=>x(!1),className:h?void 0:"bg-gray-200"})]})]}),(0,t.jsx)(H,{allPrivacyNotices:E,initialValues:D,translation:S,isMobilePreview:h})]})]})})})}},35093:function(e,n,i){i.d(n,{J:function(){return t}});let t=new Map([["overlay","Overlay"],["privacy_center","Privacy center"],["tcf_overlay","TCF overlay"],["modal","Modal"],["banner_and_modal","Banner and modal"],["headless","Headless"]])},43073:function(e,n,i){i.d(n,{Bw:function(){return t.Bw},D4:function(){return t.D4}});var t=i(41164)}}]);
1
+ "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6182],{36182:function(e,n,i){i.d(n,{Z:function(){return S}});var t=i(24246),a=i(52615),o=i(34090),l=i(86677),r=i(27378),s=i(59389),d=i(44296),c=i(60136);let p=(0,a.IUT)({displayName:"DesktopIcon",viewBox:"0 0 24 24",path:(0,t.jsx)("path",{fill:"currentColor",d:"M20.5556 4.05556H3.44444C3.10833 4.05556 2.83333 4.33056 2.83333 4.66667V12H21.1667V4.66667C21.1667 4.33056 20.8917 4.05556 20.5556 4.05556ZM23 12V13.8333V15.6667C23 17.0149 21.9038 18.1111 20.5556 18.1111H14.9142L15.2198 19.9445H17.1944C17.7024 19.9445 18.1111 20.3531 18.1111 20.8611C18.1111 21.3691 17.7024 21.7778 17.1944 21.7778H14.4444H9.55556H6.80556C6.29757 21.7778 5.88889 21.3691 5.88889 20.8611C5.88889 20.3531 6.29757 19.9445 6.80556 19.9445H8.78021L9.08576 18.1111H3.44444C2.09618 18.1111 1 17.0149 1 15.6667V13.8333V12V4.66667C1 3.31841 2.09618 2.22223 3.44444 2.22223H20.5556C21.9038 2.22223 23 3.31841 23 4.66667V12ZM2.83333 13.8333V15.6667C2.83333 16.0028 3.10833 16.2778 3.44444 16.2778H10.1476C10.159 16.2778 10.1705 16.2778 10.1781 16.2778H13.8142C13.8257 16.2778 13.8372 16.2778 13.8448 16.2778H20.5556C20.8917 16.2778 21.1667 16.0028 21.1667 15.6667V13.8333H2.83333ZM10.6365 19.9445H13.3597L13.0542 18.1111H10.942L10.6365 19.9445Z"})}),u=(0,a.IUT)({displayName:"MobileIcon",viewBox:"0 0 24 24",path:(0,t.jsx)("path",{fill:"currentColor",d:"M6.5 20.25C6.5 20.6281 6.80938 20.9375 7.1875 20.9375H16.8125C17.1906 20.9375 17.5 20.6281 17.5 20.25V16.8125H6.5V20.25ZM6.5 14.75H17.5V3.75C17.5 3.37188 17.1906 3.0625 16.8125 3.0625H7.1875C6.80938 3.0625 6.5 3.37188 6.5 3.75V14.75ZM4.4375 3.75C4.4375 2.2332 5.6707 1 7.1875 1H16.8125C18.3293 1 19.5625 2.2332 19.5625 3.75V20.25C19.5625 21.7668 18.3293 23 16.8125 23H7.1875C5.6707 23 4.4375 21.7668 4.4375 20.25V3.75ZM12 17.8438C12.2735 17.8438 12.5358 17.9524 12.7292 18.1458C12.9226 18.3392 13.0312 18.6015 13.0312 18.875C13.0312 19.1485 12.9226 19.4108 12.7292 19.6042C12.5358 19.7976 12.2735 19.9062 12 19.9062C11.7265 19.9062 11.4642 19.7976 11.2708 19.6042C11.0774 19.4108 10.9688 19.1485 10.9688 18.875C10.9688 18.6015 11.0774 18.3392 11.2708 18.1458C11.4642 17.9524 11.7265 17.8438 12 17.8438Z"})});var v=i(87162),_=i(16781),m=i(91943),b=i(35051),f=i(46835),g=i.n(f),y=i(43218),h=i.n(y),x=i(52020),w=i(20949),C=i(37760);let k={language:C.eU.EN,accept_button_label:"Accept",acknowledge_button_label:"OK",banner_description:"",banner_title:"",purpose_header:"",description:"Description",privacy_policy_link_label:"",privacy_policy_url:"",modal_link_label:"",privacy_preferences_link_label:"Privacy preferences",reject_button_label:"Reject All",save_button_label:"Save",title:"Manage your consent preferences",is_default:!0},j=e=>({...k,...e.translations?e.translations[0]:{}}),V=(e,n)=>{var i,t,a,o;return{options:{debug:!1,geolocationApiUrl:"",isGeolocationEnabled:!1,isOverlayEnabled:!0,isPrefetchEnabled:!1,overlayParentId:x.Vk,modalLinkId:null,privacyCenterUrl:"http://localhost:3000",fidesApiUrl:"http://localhost:8080/api/v1",preventDismissal:null!==(o=e.dismissable)&&void 0!==o&&o,allowHTMLDescription:!0,fidesString:null,fidesJsBaseUrl:"",base64Cookie:!1,fidesLocale:null===(t=e.translations)||void 0===t?void 0:null===(i=t[0])||void 0===i?void 0:i.language,fidesClearCookie:!0},experience:{id:"pri_111",region:"us_ca",component:"banner_and_modal",available_locales:null===(a=e.translations)||void 0===a?void 0:a.map(e=>e.language),experience_config:{id:"pri_222",regions:["us_ca"],component:"banner_and_modal",disabled:!1,is_default:!0,dismissable:e.dismissable,show_layer1_notices:!1,layer1_button_options:w.O.OPT_IN_OPT_OUT,allow_language_selection:!0,auto_detect_language:!0,auto_subdomain_cookie_deletion:!0,language:"en",translations:[j(e)]},privacy_notices:n},geolocation:{country:"US",location:"US-CA",region:"CA"}}},A=e=>{let{language:n,is_default:i,...t}=k,a=Object.keys(t).map(n=>{let i=e[n];return{[n]:void 0!==i?i:k[n]}}).reduce((e,n)=>({...e,...n}),{});return{language:e.language,is_default:e.is_default,...a}};var N=i(40793),E=i(35093);let D=e=>{let{title:n,description:i}=e;return(0,t.jsx)(a.kCb,{h:"full",justify:"center",align:"center",children:(0,t.jsxs)(a.kCb,{bgColor:"white",borderRadius:"md",p:6,boxShadow:"md",direction:"column",align:"center",gap:"2",maxW:"512px","data-testid":"no-preview-notice",children:[(0,t.jsx)(a.xvT,{fontSize:"lg",fontWeight:"500",align:"center",children:n}),(0,t.jsx)(a.xvT,{color:"gray.500",align:"center",children:i})]})})};var H=e=>{var n;let{allPrivacyNotices:i,initialValues:l,translation:s,isMobilePreview:d}=e,{values:p}=(0,o.u6)(),[u,v]=(0,r.useState)([]),_=[C.re.BANNER_AND_MODAL,C.re.MODAL].includes(p.component),m=(0,a.pmc)(),[b]=(0,N.Je)(),f=async e=>{let n=await b(e);n.isError&&m({status:"error",description:(0,c.e$)(n.error,"A problem occurred while fetching privacy notice data. Some notices may not display correctly on the preview.")});let{data:i}=await b(e);return i};(0,r.useEffect)(()=>{p.privacy_notice_ids&&p.component!==C.re.TCF_OVERLAY?Promise.all(p.privacy_notice_ids.map(e=>f(e))).then(e=>v(e.filter(e=>void 0!==e))):v([])},[p.privacy_notice_ids]);let y=(0,r.useMemo)(()=>V(l,u),[l,u]);(0,r.useEffect)(()=>{var e,n,i,t;p.component===C.re.MODAL&&(y.experience.experience_config.component=C.re.MODAL);let a=null===(e=p.translations)||void 0===e?void 0:e.find(e=>e.language===(null==s?void 0:s.language));(null===(n=p.translations)||void 0===n?void 0:n.length)&&(a?(y.experience.available_locales=[...y.experience.available_locales||[],a.language],y.experience.experience_config.translations[0]=A(a),y.options.fidesLocale=a.language):p.translations&&(y.experience.experience_config.translations[0]=A(p.translations[0]),y.options.fidesLocale=p.translations[0].language)),y.experience.experience_config.show_layer1_notices=!!(null===(i=p.privacy_notice_ids)||void 0===i?void 0:i.length)&&!!p.show_layer1_notices,y.experience.experience_config.layer1_button_options=p.component===C.re.BANNER_AND_MODAL&&p.layer1_button_options||w.O.OPT_IN_OPT_OUT,y.options.preventDismissal=!p.dismissable,window.Fides&&(null===(t=p.privacy_notice_ids)||void 0===t?void 0:t.length)&&_&&window.Fides.init(y)},[p,s,y,i,_]);let k=document.getElementById("fides-modal");return(k&&k.removeAttribute("tabindex"),_)?(null===(n=p.privacy_notice_ids)||void 0===n?void 0:n.length)?(0,t.jsxs)(a.kCb,{h:"full",justify:"center",align:"center",overflow:"scroll",children:[(0,t.jsx)(g(),{id:"905800c62191633b",dynamic:[x.Vk],children:"div#fides-overlay{z-index:5000!important}div#".concat(x.Vk,"{padding-top:45px;margin:auto!important;pointer-events:none}div#fides-banner-container{position:static!important;-webkit-transform:none!important;-moz-transform:none!important;-ms-transform:none!important;-o-transform:none!important;transform:none!important;-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;transition:none!important}div#fides-banner-container.fides-banner-hidden{display:none}.fides-modal-container{background-color:unset!important;position:static!important;display:none!important}.fides-modal-overlay{background-color:inherit!important;position:static!important;display:none!important}div.fides-modal-content{position:relative!important;-webkit-transform:none!important;-moz-transform:none!important;-ms-transform:none!important;-o-transform:none!important;transform:none!important;left:initial!important;top:initial!important}div.fides-modal-footer{width:unset}")}),_?(0,t.jsx)("style",{children:"div#fides-modal {\n display: flex !important;\n justify-content: center;\n background-color: unset;\n ".concat(p.component===C.re.BANNER_AND_MODAL?"padding-top: 3rem; padding-bottom: 3rem;":"","\n }")}):null,d?(0,t.jsx)("style",{children:"\n div#".concat(x.Vk," {\n width: 70% !important;\n }\n div.fides-modal-button-group {\n flex-direction: column !important;\n }\n div#fides-modal {\n width: 70% !important;\n margin: auto;\n }\n div#fides-banner {\n padding: 24px;\n width: 100%;\n }\n\n div#fides-banner-description {\n margin-bottom: 0px;\n }\n\n div#fides-banner-inner div#fides-button-group {\n flex-direction: column;\n align-items: flex-start;\n gap: 12px;\n padding-top: 24px;\n }\n\n .fides-banner-button-group {\n flex-direction: column;\n width: 100%;\n }\n\n button.fides-banner-button {\n margin: 0px;\n width: 100%;\n }\n\n div#fides-banner-inner-container {\n display: flex;\n flex-direction: column;\n max-height: 50vh;\n overflow-y: auto;\n scrollbar-gutter: stable;\n }\n\n div#fides-privacy-policy-link {\n order: 1;\n width: 100%;\n }\n .fides-modal-footer {\n max-width: 100%;\n }\n .fides-banner-secondary-actions {\n flex-direction: column-reverse;\n gap: 12px;\n }\n ")}):(0,t.jsx)("style",{children:"\n div#fides-banner {\n width: 90% !important;\n }\n "}),(0,t.jsx)(h(),{id:"fides-js-base",src:"/lib/fides.js",onReady:()=>{if(_){var e;null===(e=window.Fides)||void 0===e||e.init(y)}}}),(0,t.jsx)("div",{id:x.Vk,className:g().dynamic([["905800c62191633b",[x.Vk]]])})]}):(0,t.jsx)(D,{title:"No privacy notices added",description:'To view a preview of this experience, add a privacy notice under "Privacy Notices" to the left.'}):(0,t.jsx)(D,{title:"".concat(E.J.get(p.component)," preview not available"),description:"There is no preview available for ".concat(E.J.get(p.component),". You can edit the available settings\n and languages to the left.")})},O=i(63982),M=i(74561),Z=i(31241),T=i(27365),L=i(43073);let P=e=>s.Ry().shape({title:s.Z_().required().label("Title"),description:s.Z_().required().label("Description"),accept_button_label:s.Z_().required().label("Accept button label"),reject_button_label:s.Z_().required().label("Reject button label"),save_button_label:s.Z_().required().label("Save button label"),acknowledge_button_label:s.Z_().required().label("Acknowledge button label"),privacy_policy_url:s.Z_().url().nullable().label("Privacy policy URL"),is_default:s.O7(),privacy_preferences_link_label:e?s.Z_().required().label("Privacy preferences link label"):s.Z_().nullable().label("Privacy preferences link label")}),R=s.Ry().shape({name:s.Z_().required().label("Experience name"),component:s.Z_().required().label("Experience type"),translations:s.IX().when("component",{is:e=>e===C.re.BANNER_AND_MODAL||e===C.re.TCF_OVERLAY,then:e=>e.of(P(!0)),otherwise:e=>e.of(P(!1))})});var S=e=>{var n;let{passedInExperience:i,passedInTranslations:s}=e,[f]=(0,O.mJ)(),[g]=(0,O.$d)(),y=(0,a.pmc)(),[h,x]=(0,r.useState)(!1),w=(0,l.useRouter)(),{data:C}=(0,T.tB)({api_set:!1}),k=null==C?void 0:null===(n=C.plus_consent_settings)||void 0===n?void 0:n.enable_translations,j=(0,d.C)(b.Zp),V=(0,d.C)(b.G1);(0,b.Ah)({page:j,size:V});let A=(0,d.C)(b.fJ),E=(0,d.C)(N.sX),D=i?{...m.DD,...(0,m.Uv)(i)}:m.DD,P=async e=>{var n,t;let a;e.privacy_notice_ids=null===(n=e.privacy_notice_ids)||void 0===n?void 0:n.filter(e=>"tcf_purposes_placeholder"!==e);let o={...e,disabled:null===(t=null==i?void 0:i.disabled)||void 0===t||t,allow_language_selection:e.translations&&e.translations.length>1};if(i){let{component:e,...n}=o;a=await g({...n,id:i.id})}else a=await f(o);(0,L.D4)(a)?y((0,_.Vo)((0,c.e$)(a.error))):(y((0,_.t5)("Privacy experience successfully ".concat(i?"updated":"created"))),w.push(v.w0))},[S,B]=(0,r.useState)(void 0),[U,I]=(0,r.useState)(!1);return(0,t.jsx)(o.J9,{initialValues:D,enableReinitialize:!0,onSubmit:P,validationSchema:R,children:(0,t.jsx)(o.l0,{style:{height:"100vh"},children:(0,t.jsxs)(a.kCb,{w:"full",h:"full",direction:"row","data-testid":"privacy-experience-detail-page",children:[S?(0,t.jsx)(Z.Z,{translation:S,translationsEnabled:k,isOOB:U,onReturnToMainForm:()=>{B(void 0),I(!1)}}):(0,t.jsx)(M.d0,{allPrivacyNotices:E,translationsEnabled:k,onSelectTranslation:e=>{B({...e,name:(0,m.Go)(e,A)})},onCreateTranslation:e=>{let n=null==s?void 0:s.find(n=>n.language===e);return n&&I(!0),null!=n?n:{language:e,is_default:!1}}}),(0,t.jsxs)(a.kCb,{direction:"column",w:"75%",bgColor:"gray.50",overflowY:"hidden",children:[(0,t.jsxs)(a.kCb,{direction:"row",p:4,align:"center",bgColor:"white",borderBottom:"1px solid #DEE5EE",children:[(0,t.jsx)(a.xvT,{fontSize:"md",fontWeight:"semibold",children:"PREVIEW"}),(0,t.jsx)(a.LZC,{}),(0,t.jsxs)("div",{className:"flex gap-2",children:[(0,t.jsx)(a.wpx,{icon:(0,t.jsx)(u,{}),"aria-label":"View mobile preview",onClick:()=>x(!0),className:h?"bg-gray-200":void 0}),(0,t.jsx)(a.wpx,{icon:(0,t.jsx)(p,{}),"aria-label":"View desktop preview",onClick:()=>x(!1),className:h?void 0:"bg-gray-200"})]})]}),(0,t.jsx)(H,{allPrivacyNotices:E,initialValues:D,translation:S,isMobilePreview:h})]})]})})})}},35093:function(e,n,i){i.d(n,{J:function(){return t}});let t=new Map([["overlay","Overlay"],["privacy_center","Privacy center"],["tcf_overlay","TCF overlay"],["modal","Modal"],["banner_and_modal","Banner and modal"],["headless","Headless"]])},43073:function(e,n,i){i.d(n,{Bw:function(){return t.Bw},D4:function(){return t.D4}});var t=i(41164)}}]);
@@ -1 +1 @@
1
- "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6546],{37541:function(e,t,i){var n=i(24246),r=i(96013),s=i(53614);t.Z=e=>{let{heading:t,breadcrumbItems:i,isSticky:l=!0,children:a,rightContent:d,style:o,...c}=e;return(0,n.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,n.jsxs)(r.jqI,{justify:"space-between",children:["string"==typeof t?(0,n.jsx)(r.X6q,{className:i||a?"pb-4":void 0,fontSize:"2xl","data-testid":"page-heading",children:t}):t,d&&(0,n.jsx)("div",{"data-testid":"page-header-right-content",children:d})]}),!!i&&(0,n.jsx)(s.m,{className:a?"pb-4":void 0,items:i,"data-testid":"page-breadcrumb"}),a]})}},38615:function(e,t,i){i.d(t,{Tg:function(){return l}});var n=i(24246),r=i(44296),s=i(96451);let l=e=>(0,r.C)(s.uu).filter(t=>e.includes(t)).length>0;t.ZP=e=>{let{scopes:t,children:i}=e;return l(t)?(0,n.jsx)(n.Fragment,{children:i}):null}},53359:function(e,t,i){i.d(t,{H:function(){return s},V:function(){return n.V}});var n=i(75139),r=i(60136);let s=()=>{let{errorAlert:e}=(0,n.V)();return{handleError:t=>{let i="An unexpected error occurred. Please try again.";(0,r.Ot)(t)?i=t.data.detail:(0,r.tB)(t)&&(i=t.data.detail[0].msg),e(i)}}}},75139:function(e,t,i){i.d(t,{V:function(){return s}});var n=i(24246),r=i(96013);let s=()=>{let e=(0,r.pmc)();return{errorAlert:(t,i,s)=>{let l={...s,position:(null==s?void 0:s.position)||"top",render:e=>{let{onClose:s}=e;return(0,n.jsxs)(r.bZj,{alignItems:"normal",status:"error","data-testid":"error-alert",children:[(0,n.jsx)(r.zMQ,{}),(0,n.jsxs)(r.xuv,{children:[i&&(0,n.jsx)(r.CdC,{children:i}),(0,n.jsx)(r.XaZ,{children:t})]}),(0,n.jsx)(r.PZ7,{onClick:s,position:"relative",right:0,size:"sm",top:-1})]})}};(null==s?void 0:s.id)&&e.isActive(s.id)?e.update(s.id,l):e(l)},successAlert:(t,i,s)=>{let l={...s,position:(null==s?void 0:s.position)||"top",render:e=>{let{onClose:s}=e;return(0,n.jsxs)(r.bZj,{alignItems:"normal",status:"success",variant:"subtle","data-testid":"success-alert",children:[(0,n.jsx)(r.zMQ,{}),(0,n.jsxs)(r.xuv,{children:[i&&(0,n.jsx)(r.CdC,{children:i}),(0,n.jsx)(r.XaZ,{children:t})]}),(0,n.jsx)(r.PZ7,{onClick:s,position:"relative",right:0,size:"sm",top:-1})]})}};(null==s?void 0:s.id)&&e.isActive(s.id)?e.update(s.id,l):e(l)}}}},53614:function(e,t,i){i.d(t,{m:function(){return o}});var n=i(24246),r=i(96013),s=i(79894),l=i.n(s),a=i(27378);let{Text:d}=r.AntTypography,o=e=>{let{items:t,...i}=e,s=(0,a.useMemo)(()=>null==t?void 0:t.map((e,i)=>{let s=i===t.length-1,a={...e},o=a.onClick&&!a.href;return("string"==typeof a.title&&(a.title=(0,n.jsx)(d,{style:{color:"inherit",maxWidth:s?void 0:400},ellipsis:!s,children:a.title})),o)?a.title=(0,n.jsx)(r.wpx,{type:"text",size:"small",icon:a.icon,onClick:a.onClick,className:"ant-breadcrumb-link -mt-px px-1 text-inherit",children:a.title}):(a.icon&&(a.title=(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("span",{className:"anticon align-text-bottom",children:a.icon}),a.title]})),a.href&&a.title&&(a.title=(0,n.jsx)(l(),{href:a.href,className:"ant-breadcrumb-link",children:a.title}),delete a.href)),a}),[t]);return(0,n.jsx)(r.zrq,{items:s,...i})}},21613:function(e,t,i){var n=i(24246),r=i(96013),s=i(27378);t.Z=e=>{let{isOpen:t,onClose:i,onApproveRequest:l,isLoading:a,subjectRequest:d}=e,{identity:o,identity_verified_at:c,custom_privacy_request_fields:u}=d,x=(0,s.useCallback)(()=>{l().then(()=>{i()})},[l,i]);return(0,n.jsxs)(r.u_l,{isOpen:t,onClose:i,size:"lg",isCentered:!0,children:[(0,n.jsx)(r.ZAr,{}),(0,n.jsxs)(r.hzk,{children:[(0,n.jsx)(r.xBx,{children:"Privacy request approval"}),(0,n.jsxs)(r.fef,{paddingTop:0,paddingBottom:0,children:[(0,n.jsx)(r.xvT,{color:"gray.500",fontSize:"14px",marginBottom:4,children:"Are you sure you want to approve this privacy request?"}),(0,n.jsxs)(r.QI$,{children:[Object.entries(o).filter(e=>{let[,{value:t}]=e;return null!==t}).map(e=>{let[t,{value:i,label:s}]=e;return(0,n.jsx)(r.HCh,{children:(0,n.jsxs)(r.kCb,{alignItems:"flex-start",children:[(0,n.jsxs)(r.xvT,{mr:2,fontSize:"sm",color:"gray.900",fontWeight:"500",children:[s,":"]}),(0,n.jsx)(r.xvT,{color:"gray.600",fontWeight:"500",fontSize:"sm",mr:2,children:i}),"(",c?"Verified":"Unverified",")"]},t)},t)}),u&&Object.entries(u).filter(e=>{let[,t]=e;return t.value}).map(e=>{let[t,i]=e;return(0,n.jsx)(r.HCh,{children:(0,n.jsxs)(r.kCb,{alignItems:"flex-start",children:[(0,n.jsxs)(r.xvT,{mr:2,fontSize:"sm",color:"gray.900",fontWeight:"500",children:[i.label,":"]}),(0,n.jsxs)(r.xvT,{color:"gray.600",fontWeight:"500",fontSize:"sm",mr:2,children:[Array.isArray(i.value)?i.value.join(", "):i.value," "]}),"(Unverified)"]},t)},t)})]})]}),(0,n.jsx)(r.mzw,{children:(0,n.jsxs)(r.MIq,{columns:2,width:"100%",children:[(0,n.jsx)(r.wpx,{onClick:i,className:"mr-3","data-testid":"cancel-btn",children:"Cancel"}),(0,n.jsx)(r.wpx,{type:"primary","data-testid":"continue-btn",onClick:x,loading:a,children:"Confirm"})]})})]})]})}},94723:function(e,t,i){var n=i(24246),r=i(34803),s=i(96013),l=i(34090),a=i(27378),d=i(59389);let o={denialReason:""};t.Z=e=>{let{isOpen:t,onClose:i,onDenyRequest:c}=e,u=(0,a.useCallback)((e,t)=>{let{setSubmitting:n}=t;c(e.denialReason).then(()=>{n(!1),i()})},[c,i]);return(0,n.jsxs)(s.u_l,{isOpen:t,onClose:i,isCentered:!0,returnFocusOnClose:!1,children:[(0,n.jsx)(s.ZAr,{}),(0,n.jsx)(s.hzk,{width:"100%",maxWidth:"456px","data-testid":"deny-privacy-request-modal",children:(0,n.jsx)(l.J9,{initialValues:o,validationSchema:d.Ry({denialReason:d.Z_().required().label("Reason for denial")}),onSubmit:u,children:e=>{let{isSubmitting:t,dirty:a,isValid:d}=e;return(0,n.jsxs)(l.l0,{children:[(0,n.jsx)(s.xBx,{children:"Privacy request denial"}),(0,n.jsx)(s.fef,{color:"gray.500",fontSize:"14px",children:"Please enter a reason for denying this privacy request. Please note: this can be seen by the user in their notification email."}),(0,n.jsx)(s.fef,{children:(0,n.jsx)(r.Ks,{name:"denialReason",textAreaProps:{focusBorderColor:"primary.600",resize:"none"}})}),(0,n.jsxs)(s.mzw,{className:"flex w-full gap-4",children:[(0,n.jsx)(s.wpx,{disabled:t,onClick:i,className:"grow",children:"Cancel"}),(0,n.jsx)(s.wpx,{htmlType:"submit",type:"primary",disabled:!a||!d,loading:t,className:"grow","data-testid":"deny-privacy-request-modal-btn",children:"Confirm"})]})]})}})})]})}},25662:function(e,t,i){i.d(t,{Z:function(){return r}});var n=i(72247);let r=e=>{let{subjectRequest:t}=e,[i,r]=(0,n.RW)({fixedCacheKey:t.id}),[s,l]=(0,n.F1)({fixedCacheKey:t.id}),[a,d]=(0,n.rC)({fixedCacheKey:t.id}),o=l.isLoading||r.isLoading;return{approveRequest:i,approveRequestResult:r,denyRequest:s,denyRequestResult:l,handleApproveRequest:()=>i(t),handleDenyRequest:e=>s({id:t.id,reason:e}),handleDeleteRequest:()=>a(t),softDeleteRequestResult:d,isLoading:o}}}}]);
1
+ "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6546],{37541:function(e,t,i){var n=i(24246),r=i(52615),s=i(53614);t.Z=e=>{let{heading:t,breadcrumbItems:i,isSticky:l=!0,children:a,rightContent:d,style:o,...c}=e;return(0,n.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,n.jsxs)(r.jqI,{justify:"space-between",children:["string"==typeof t?(0,n.jsx)(r.X6q,{className:i||a?"pb-4":void 0,fontSize:"2xl","data-testid":"page-heading",children:t}):t,d&&(0,n.jsx)("div",{"data-testid":"page-header-right-content",children:d})]}),!!i&&(0,n.jsx)(s.m,{className:a?"pb-4":void 0,items:i,"data-testid":"page-breadcrumb"}),a]})}},38615:function(e,t,i){i.d(t,{Tg:function(){return l}});var n=i(24246),r=i(44296),s=i(96451);let l=e=>(0,r.C)(s.uu).filter(t=>e.includes(t)).length>0;t.ZP=e=>{let{scopes:t,children:i}=e;return l(t)?(0,n.jsx)(n.Fragment,{children:i}):null}},53359:function(e,t,i){i.d(t,{H:function(){return s},V:function(){return n.V}});var n=i(75139),r=i(60136);let s=()=>{let{errorAlert:e}=(0,n.V)();return{handleError:t=>{let i="An unexpected error occurred. Please try again.";(0,r.Ot)(t)?i=t.data.detail:(0,r.tB)(t)&&(i=t.data.detail[0].msg),e(i)}}}},75139:function(e,t,i){i.d(t,{V:function(){return s}});var n=i(24246),r=i(52615);let s=()=>{let e=(0,r.pmc)();return{errorAlert:(t,i,s)=>{let l={...s,position:(null==s?void 0:s.position)||"top",render:e=>{let{onClose:s}=e;return(0,n.jsxs)(r.bZj,{alignItems:"normal",status:"error","data-testid":"error-alert",children:[(0,n.jsx)(r.zMQ,{}),(0,n.jsxs)(r.xuv,{children:[i&&(0,n.jsx)(r.CdC,{children:i}),(0,n.jsx)(r.XaZ,{children:t})]}),(0,n.jsx)(r.PZ7,{onClick:s,position:"relative",right:0,size:"sm",top:-1})]})}};(null==s?void 0:s.id)&&e.isActive(s.id)?e.update(s.id,l):e(l)},successAlert:(t,i,s)=>{let l={...s,position:(null==s?void 0:s.position)||"top",render:e=>{let{onClose:s}=e;return(0,n.jsxs)(r.bZj,{alignItems:"normal",status:"success",variant:"subtle","data-testid":"success-alert",children:[(0,n.jsx)(r.zMQ,{}),(0,n.jsxs)(r.xuv,{children:[i&&(0,n.jsx)(r.CdC,{children:i}),(0,n.jsx)(r.XaZ,{children:t})]}),(0,n.jsx)(r.PZ7,{onClick:s,position:"relative",right:0,size:"sm",top:-1})]})}};(null==s?void 0:s.id)&&e.isActive(s.id)?e.update(s.id,l):e(l)}}}},53614:function(e,t,i){i.d(t,{m:function(){return o}});var n=i(24246),r=i(52615),s=i(79894),l=i.n(s),a=i(27378);let{Text:d}=r.AntTypography,o=e=>{let{items:t,...i}=e,s=(0,a.useMemo)(()=>null==t?void 0:t.map((e,i)=>{let s=i===t.length-1,a={...e},o=a.onClick&&!a.href;return("string"==typeof a.title&&(a.title=(0,n.jsx)(d,{style:{color:"inherit",maxWidth:s?void 0:400},ellipsis:!s,children:a.title})),o)?a.title=(0,n.jsx)(r.wpx,{type:"text",size:"small",icon:a.icon,onClick:a.onClick,className:"ant-breadcrumb-link -mt-px px-1 text-inherit",children:a.title}):(a.icon&&(a.title=(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("span",{className:"anticon align-text-bottom",children:a.icon}),a.title]})),a.href&&a.title&&(a.title=(0,n.jsx)(l(),{href:a.href,className:"ant-breadcrumb-link",children:a.title}),delete a.href)),a}),[t]);return(0,n.jsx)(r.zrq,{items:s,...i})}},21613:function(e,t,i){var n=i(24246),r=i(52615),s=i(27378);t.Z=e=>{let{isOpen:t,onClose:i,onApproveRequest:l,isLoading:a,subjectRequest:d}=e,{identity:o,identity_verified_at:c,custom_privacy_request_fields:u}=d,x=(0,s.useCallback)(()=>{l().then(()=>{i()})},[l,i]);return(0,n.jsxs)(r.u_l,{isOpen:t,onClose:i,size:"lg",isCentered:!0,children:[(0,n.jsx)(r.ZAr,{}),(0,n.jsxs)(r.hzk,{children:[(0,n.jsx)(r.xBx,{children:"Privacy request approval"}),(0,n.jsxs)(r.fef,{paddingTop:0,paddingBottom:0,children:[(0,n.jsx)(r.xvT,{color:"gray.500",fontSize:"14px",marginBottom:4,children:"Are you sure you want to approve this privacy request?"}),(0,n.jsxs)(r.QI$,{children:[Object.entries(o).filter(e=>{let[,{value:t}]=e;return null!==t}).map(e=>{let[t,{value:i,label:s}]=e;return(0,n.jsx)(r.HCh,{children:(0,n.jsxs)(r.kCb,{alignItems:"flex-start",children:[(0,n.jsxs)(r.xvT,{mr:2,fontSize:"sm",color:"gray.900",fontWeight:"500",children:[s,":"]}),(0,n.jsx)(r.xvT,{color:"gray.600",fontWeight:"500",fontSize:"sm",mr:2,children:i}),"(",c?"Verified":"Unverified",")"]},t)},t)}),u&&Object.entries(u).filter(e=>{let[,t]=e;return t.value}).map(e=>{let[t,i]=e;return(0,n.jsx)(r.HCh,{children:(0,n.jsxs)(r.kCb,{alignItems:"flex-start",children:[(0,n.jsxs)(r.xvT,{mr:2,fontSize:"sm",color:"gray.900",fontWeight:"500",children:[i.label,":"]}),(0,n.jsxs)(r.xvT,{color:"gray.600",fontWeight:"500",fontSize:"sm",mr:2,children:[Array.isArray(i.value)?i.value.join(", "):i.value," "]}),"(Unverified)"]},t)},t)})]})]}),(0,n.jsx)(r.mzw,{children:(0,n.jsxs)(r.MIq,{columns:2,width:"100%",children:[(0,n.jsx)(r.wpx,{onClick:i,className:"mr-3","data-testid":"cancel-btn",children:"Cancel"}),(0,n.jsx)(r.wpx,{type:"primary","data-testid":"continue-btn",onClick:x,loading:a,children:"Confirm"})]})})]})]})}},94723:function(e,t,i){var n=i(24246),r=i(34803),s=i(52615),l=i(34090),a=i(27378),d=i(59389);let o={denialReason:""};t.Z=e=>{let{isOpen:t,onClose:i,onDenyRequest:c}=e,u=(0,a.useCallback)((e,t)=>{let{setSubmitting:n}=t;c(e.denialReason).then(()=>{n(!1),i()})},[c,i]);return(0,n.jsxs)(s.u_l,{isOpen:t,onClose:i,isCentered:!0,returnFocusOnClose:!1,children:[(0,n.jsx)(s.ZAr,{}),(0,n.jsx)(s.hzk,{width:"100%",maxWidth:"456px","data-testid":"deny-privacy-request-modal",children:(0,n.jsx)(l.J9,{initialValues:o,validationSchema:d.Ry({denialReason:d.Z_().required().label("Reason for denial")}),onSubmit:u,children:e=>{let{isSubmitting:t,dirty:a,isValid:d}=e;return(0,n.jsxs)(l.l0,{children:[(0,n.jsx)(s.xBx,{children:"Privacy request denial"}),(0,n.jsx)(s.fef,{color:"gray.500",fontSize:"14px",children:"Please enter a reason for denying this privacy request. Please note: this can be seen by the user in their notification email."}),(0,n.jsx)(s.fef,{children:(0,n.jsx)(r.Ks,{name:"denialReason",textAreaProps:{focusBorderColor:"primary.600",resize:"none"}})}),(0,n.jsxs)(s.mzw,{className:"flex w-full gap-4",children:[(0,n.jsx)(s.wpx,{disabled:t,onClick:i,className:"grow",children:"Cancel"}),(0,n.jsx)(s.wpx,{htmlType:"submit",type:"primary",disabled:!a||!d,loading:t,className:"grow","data-testid":"deny-privacy-request-modal-btn",children:"Confirm"})]})]})}})})]})}},25662:function(e,t,i){i.d(t,{Z:function(){return r}});var n=i(72247);let r=e=>{let{subjectRequest:t}=e,[i,r]=(0,n.RW)({fixedCacheKey:t.id}),[s,l]=(0,n.F1)({fixedCacheKey:t.id}),[a,d]=(0,n.rC)({fixedCacheKey:t.id}),o=l.isLoading||r.isLoading;return{approveRequest:i,approveRequestResult:r,denyRequest:s,denyRequestResult:l,handleApproveRequest:()=>i(t),handleDenyRequest:e=>s({id:t.id,reason:e}),handleDeleteRequest:()=>a(t),softDeleteRequestResult:d,isLoading:o}}}}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6834],{96539:function(t,r,n){var e=n(77400).Symbol;t.exports=e},71928:function(t,r,n){var e=n(88799),o=n(85638),u=Object.prototype.hasOwnProperty;t.exports=function(t,r,n){var i=t[r];u.call(t,r)&&o(i,n)&&(void 0!==n||r in t)||e(t,r,n)}},88799:function(t,r,n){var e=n(42630);t.exports=function(t,r,n){"__proto__"==r&&e?e(t,r,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[r]=n}},49819:function(t,r,n){var e=n(18911)();t.exports=e},26194:function(t,r,n){var e=n(49819),o=n(50098);t.exports=function(t,r){return t&&e(t,r,o)}},99736:function(t,r,n){var e=n(96539),o=n(34840),u=n(21258),i=e?e.toStringTag:void 0;t.exports=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":i&&i in Object(t)?o(t):u(t)}},59464:function(t,r,n){var e=n(11611),o=n(56016),u=n(21586),i=Object.prototype.hasOwnProperty;t.exports=function(t){if(!e(t))return u(t);var r=o(t),n=[];for(var c in t)"constructor"==c&&(r||!i.call(t,c))||n.push(c);return n}},10228:function(t,r,n){var e=n(79867),o=n(78859),u=n(76747);t.exports=function(t,r,n){for(var i=-1,c=r.length,f={};++i<c;){var a=r[i],s=e(t,a);n(s,a)&&o(f,u(a,t),s)}return f}},78859:function(t,r,n){var e=n(71928),o=n(76747),u=n(42383),i=n(11611),c=n(37948);t.exports=function(t,r,n,f){if(!i(t))return t;r=o(r,t);for(var a=-1,s=r.length,p=s-1,l=t;null!=l&&++a<s;){var v=c(r[a]),b=n;if("__proto__"===v||"constructor"===v||"prototype"===v)break;if(a!=p){var y=l[v];void 0===(b=f?f(y,v,l):void 0)&&(b=i(y)?y:u(r[a+1])?[]:{})}e(l,v,b),l=l[v]}return t}},18911:function(t){t.exports=function(t){return function(r,n,e){for(var o=-1,u=Object(r),i=e(r),c=i.length;c--;){var f=i[t?c:++o];if(!1===n(u[f],f,u))break}return r}}},42630:function(t,r,n){var e=n(81822),o=function(){try{var t=e(Object,"defineProperty");return t({},"",{}),t}catch(t){}}();t.exports=o},39120:function(t,r,n){var e="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g;t.exports=e},39759:function(t,r,n){var e=n(11324),o=n(30791),u=n(53893);t.exports=function(t){return e(t,u,o)}},2173:function(t,r,n){var e=n(58023)(Object.getPrototypeOf,Object);t.exports=e},34840:function(t,r,n){var e=n(96539),o=Object.prototype,u=o.hasOwnProperty,i=o.toString,c=e?e.toStringTag:void 0;t.exports=function(t){var r=u.call(t,c),n=t[c];try{t[c]=void 0;var e=!0}catch(t){}var o=i.call(t);return e&&(r?t[c]=n:delete t[c]),o}},30791:function(t,r,n){var e=n(97141),o=n(2173),u=n(83080),i=n(15937),c=Object.getOwnPropertySymbols?function(t){for(var r=[];t;)e(r,u(t)),t=o(t);return r}:i;t.exports=c},21586:function(t){t.exports=function(t){var r=[];if(null!=t)for(var n in Object(t))r.push(n);return r}},21258:function(t){var r=Object.prototype.toString;t.exports=function(t){return r.call(t)}},77400:function(t,r,n){var e=n(39120),o="object"==typeof self&&self&&self.Object===Object&&self,u=e||o||Function("return this")();t.exports=u},90104:function(t,r,n){var e=n(20186),o=n(3533),u=n(2900),i=n(19785),c=n(80068),f=n(43854),a=n(56016),s=n(48519),p=Object.prototype.hasOwnProperty;t.exports=function(t){if(null==t)return!0;if(c(t)&&(i(t)||"string"==typeof t||"function"==typeof t.splice||f(t)||s(t)||u(t)))return!t.length;var r=o(t);if("[object Map]"==r||"[object Set]"==r)return!t.size;if(a(t))return!e(t).length;for(var n in t)if(p.call(t,n))return!1;return!0}},92360:function(t){t.exports=function(t){return null!=t&&"object"==typeof t}},92465:function(t){t.exports=function(t){return void 0===t}},53893:function(t,r,n){var e=n(98213),o=n(59464),u=n(80068);t.exports=function(t){return u(t)?e(t,!0):o(t)}},25389:function(t,r,n){var e=n(88799),o=n(26194),u=n(89278);t.exports=function(t,r){var n={};return r=u(r,3),o(t,function(t,o,u){e(n,o,r(t,o,u))}),n}},9799:function(t){t.exports=function(t){if("function"!=typeof t)throw TypeError("Expected a function");return function(){var r=arguments;switch(r.length){case 0:return!t.call(this);case 1:return!t.call(this,r[0]);case 2:return!t.call(this,r[0],r[1]);case 3:return!t.call(this,r[0],r[1],r[2])}return!t.apply(this,r)}}},40015:function(t,r,n){var e=n(89278),o=n(9799),u=n(71975);t.exports=function(t,r){return u(t,o(e(r)))}},71975:function(t,r,n){var e=n(66070),o=n(89278),u=n(10228),i=n(39759);t.exports=function(t,r){if(null==t)return{};var n=e(i(t),function(t){return[t]});return r=o(r),u(t,n,function(t,n){return r(t,n[0])})}},76649:function(t,r,n){"use strict";n.d(r,{Ln:function(){return e}});let e=(t,r)=>u(t,r),o=Symbol("SOME"),u=(t,r)=>"string"==typeof t?t===typeof r:Array.isArray(t)?o in t?t.some(t=>u(t,r)):!!Array.isArray(r)&&(0===t.length||r.every(r=>t.some(t=>u(t,r)))):"object"==typeof r&&null!==r&&Object.entries(t).every(([t,n])=>u(n,r[t]));class i{static narrow(t){return new i(r=>e(t,r))}constructor(t){this.NF=void 0,this.NF=t}satisfied(t){return this.NF(t)}build(t){return t}and(t){let r=this.NF,n=t instanceof i?t.NF:t instanceof Function?t:r=>e(t,r);return new i(t=>r(t)&&n(t))}}new i(t=>!0)}}]);
@@ -1 +1 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7080],{74833:function(t,e,i){var n=i(56127),r=/^\s+/;t.exports=function(t){return t?t.slice(0,n(t)+1).replace(r,""):t}},56127:function(t){var e=/\s/;t.exports=function(t){for(var i=t.length;i--&&e.test(t.charAt(i)););return i}},66726:function(t,e,i){var n=i(11611),r=i(82846),o=i(91936),s=Math.max,a=Math.min;t.exports=function(t,e,i){var l,c,d,u,x,p,f=0,h=!1,m=!1,v=!0;if("function"!=typeof t)throw TypeError("Expected a function");function j(e){var i=l,n=c;return l=c=void 0,f=e,u=t.apply(n,i)}function g(t){var i=t-p,n=t-f;return void 0===p||i>=e||i<0||m&&n>=d}function C(){var t,i,n,o=r();if(g(o))return b(o);x=setTimeout(C,(t=o-p,i=o-f,n=e-t,m?a(n,d-i):n))}function b(t){return(x=void 0,v&&l)?j(t):(l=c=void 0,u)}function I(){var t,i=r(),n=g(i);if(l=arguments,c=this,p=i,n){if(void 0===x)return f=t=p,x=setTimeout(C,e),h?j(t):u;if(m)return clearTimeout(x),x=setTimeout(C,e),j(p)}return void 0===x&&(x=setTimeout(C,e)),u}return e=o(e)||0,n(i)&&(h=!!i.leading,d=(m="maxWait"in i)?s(o(i.maxWait)||0,e):d,v="trailing"in i?!!i.trailing:v),I.cancel=function(){void 0!==x&&clearTimeout(x),f=0,l=p=c=x=void 0},I.flush=function(){return void 0===x?u:b(r())},I}},82846:function(t,e,i){var n=i(77400);t.exports=function(){return n.Date.now()}},91936:function(t,e,i){var n=i(74833),r=i(11611),o=i(55193),s=0/0,a=/^[-+]0x[0-9a-f]+$/i,l=/^0b[01]+$/i,c=/^0o[0-7]+$/i,d=parseInt;t.exports=function(t){if("number"==typeof t)return t;if(o(t))return s;if(r(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=r(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=n(t);var i=l.test(t);return i||c.test(t)?d(t.slice(2),i?2:8):a.test(t)?s:+t}},65464:function(t,e,i){"use strict";var n=i(24246),r=i(96013),o=i(88038),s=i.n(o);i(27378),e.Z=t=>{let{children:e,title:i,mainProps:o}=t;return(0,n.jsxs)(r.kCb,{"data-testid":i,direction:"column",height:"calc(100vh - 48px)",width:"calc(100vw - 240px)",children:[(0,n.jsxs)(s(),{children:[(0,n.jsxs)("title",{children:["Fides Admin UI - ",i]}),(0,n.jsx)("meta",{name:"description",content:"Privacy Engineering Platform"}),(0,n.jsx)("link",{rel:"icon",href:"/favicon.ico"})]}),(0,n.jsx)(r.kCb,{px:10,py:6,as:"main",overflow:"auto",direction:"column",flex:1,minWidth:0,...o,children:e})]})}},37541:function(t,e,i){"use strict";var n=i(24246),r=i(96013),o=i(53614);e.Z=t=>{let{heading:e,breadcrumbItems:i,isSticky:s=!0,children:a,rightContent:l,style:c,...d}=t;return(0,n.jsxs)("div",{...d,style:s?{position:"sticky",top:"-24px",paddingTop:"24px",paddingBottom:"24px",paddingLeft:"40px",marginLeft:"-40px",paddingRight:"40px",marginRight:"-40px",marginTop:"-24px",left:0,zIndex:20,backgroundColor:"white",...c}:{paddingBottom:"24px",...c},children:[(0,n.jsxs)(r.jqI,{justify:"space-between",children:["string"==typeof e?(0,n.jsx)(r.X6q,{className:i||a?"pb-4":void 0,fontSize:"2xl","data-testid":"page-heading",children:e}):e,l&&(0,n.jsx)("div",{"data-testid":"page-header-right-content",children:l})]}),!!i&&(0,n.jsx)(o.m,{className:a?"pb-4":void 0,items:i,"data-testid":"page-breadcrumb"}),a]})}},53359:function(t,e,i){"use strict";i.d(e,{H:function(){return o},V:function(){return n.V}});var n=i(75139),r=i(60136);let o=()=>{let{errorAlert:t}=(0,n.V)();return{handleError:e=>{let i="An unexpected error occurred. Please try again.";(0,r.Ot)(e)?i=e.data.detail:(0,r.tB)(e)&&(i=e.data.detail[0].msg),t(i)}}}},75139:function(t,e,i){"use strict";i.d(e,{V:function(){return o}});var n=i(24246),r=i(96013);let o=()=>{let t=(0,r.pmc)();return{errorAlert:(e,i,o)=>{let s={...o,position:(null==o?void 0:o.position)||"top",render:t=>{let{onClose:o}=t;return(0,n.jsxs)(r.bZj,{alignItems:"normal",status:"error","data-testid":"error-alert",children:[(0,n.jsx)(r.zMQ,{}),(0,n.jsxs)(r.xuv,{children:[i&&(0,n.jsx)(r.CdC,{children:i}),(0,n.jsx)(r.XaZ,{children:e})]}),(0,n.jsx)(r.PZ7,{onClick:o,position:"relative",right:0,size:"sm",top:-1})]})}};(null==o?void 0:o.id)&&t.isActive(o.id)?t.update(o.id,s):t(s)},successAlert:(e,i,o)=>{let s={...o,position:(null==o?void 0:o.position)||"top",render:t=>{let{onClose:o}=t;return(0,n.jsxs)(r.bZj,{alignItems:"normal",status:"success",variant:"subtle","data-testid":"success-alert",children:[(0,n.jsx)(r.zMQ,{}),(0,n.jsxs)(r.xuv,{children:[i&&(0,n.jsx)(r.CdC,{children:i}),(0,n.jsx)(r.XaZ,{children:e})]}),(0,n.jsx)(r.PZ7,{onClick:o,position:"relative",right:0,size:"sm",top:-1})]})}};(null==o?void 0:o.id)&&t.isActive(o.id)?t.update(o.id,s):t(s)}}}},53614:function(t,e,i){"use strict";i.d(e,{m:function(){return c}});var n=i(24246),r=i(96013),o=i(79894),s=i.n(o),a=i(27378);let{Text:l}=r.AntTypography,c=t=>{let{items:e,...i}=t,o=(0,a.useMemo)(()=>null==e?void 0:e.map((t,i)=>{let o=i===e.length-1,a={...t},c=a.onClick&&!a.href;return("string"==typeof a.title&&(a.title=(0,n.jsx)(l,{style:{color:"inherit",maxWidth:o?void 0:400},ellipsis:!o,children:a.title})),c)?a.title=(0,n.jsx)(r.wpx,{type:"text",size:"small",icon:a.icon,onClick:a.onClick,className:"ant-breadcrumb-link -mt-px px-1 text-inherit",children:a.title}):(a.icon&&(a.title=(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("span",{className:"anticon align-text-bottom",children:a.icon}),a.title]})),a.href&&a.title&&(a.title=(0,n.jsx)(s(),{href:a.href,className:"ant-breadcrumb-link",children:a.title}),delete a.href)),a}),[e]);return(0,n.jsx)(r.zrq,{items:o,...i})}},22770:function(t,e,i){"use strict";i.d(e,{M:function(){return l}});var n=i(24246),r=i(66726),o=i.n(r),s=i(27378),a=i(33312);let l=t=>{let{value:e,onChange:i}=t,[r,l]=(0,s.useState)(e),c=o()(i,500),d=(0,s.useCallback)(t=>{l(t),c(t)},[]);return(0,n.jsx)(a.Z,{search:r,onChange:d,onClear:()=>{l(""),i("")}})}},2686:function(t,e,i){"use strict";i.d(e,{dK:function(){return d},Rv:function(){return p},$P:function(){return x},zj:function(){return f},Kr:function(){return h},q1:function(){return u},QL:function(){return m}});var n=i(24246),r=i(96013);let o=(0,r.IUT)({displayName:"CircleIcon",viewBox:"0 0 200 200",path:(0,n.jsx)("path",{fill:"currentColor",d:"M 100, 100 m -75, 0 a 75,75 0 1,0 150,0 a 75,75 0 1,0 -150,0"})}),s=(0,r.IUT)({displayName:"RightDownArrowIcon",viewBox:"0 0 8 8",path:(0,n.jsx)("path",{fill:"currentColor",d:"M7.23192 8H8V7.23192V1.85539V1.08731H6.46385V1.85539V5.37654L1.62976 0.544855L1.08731 0L0 1.08731L0.542454 1.62976L5.37654 6.46385H1.85539H1.08731V8H1.85539H7.23192Z"})}),a=(0,r.IUT)({displayName:"RightUpArrowIcon",viewBox:"0 0 8 8",path:(0,n.jsx)("path",{fill:"currentColor",d:"M7.23192 0H8V0.768077V6.14461V6.91269H6.46385V6.14461V2.62346L1.62976 7.45515L1.08731 8L0 6.91269L0.542454 6.37024L5.37654 1.53615H1.85539H1.08731V0H1.85539H7.23192Z"})}),l=(0,r.IUT)({displayName:"TagIcon",viewBox:"0 0 9 10",path:(0,n.jsx)("path",{fill:"currentColor",d:"M0 0.5V5L4.5 9.5L9 5L4.5 0.5H0ZM2.25 2.10714C2.4205 2.10714 2.58401 2.17487 2.70457 2.29543C2.82513 2.41599 2.89286 2.5795 2.89286 2.75C2.89286 2.9205 2.82513 3.08401 2.70457 3.20457C2.58401 3.32513 2.4205 3.39286 2.25 3.39286C2.0795 3.39286 1.91599 3.32513 1.79543 3.20457C1.67487 3.08401 1.60714 2.9205 1.60714 2.75C1.60714 2.5795 1.67487 2.41599 1.79543 2.29543C1.91599 2.17487 2.0795 2.10714 2.25 2.10714Z"})});var c=i(51557);let d=()=>(0,n.jsx)(a,{color:"green.400",boxSize:2,mr:2,"data-testid":"add-icon"}),u=()=>(0,n.jsx)(s,{color:"red.400",boxSize:2,mr:2,"data-testid":"remove-icon"}),x=()=>(0,n.jsx)(l,{color:"orange.400",boxSize:3,mr:1,"data-testid":"classify-icon"}),p=()=>(0,n.jsx)(o,{color:"blue.400",boxSize:2,mr:2,"data-testid":"change-icon"}),f=()=>(0,n.jsx)(o,{color:"green.400",boxSize:2,mr:2,"data-testid":"monitored-icon"}),h=()=>(0,n.jsx)(o,{color:"red.400",boxSize:2,mr:2,"data-testid":"muted-icon"}),m={[c.E.ADDITION]:(0,n.jsx)(d,{}),[c.E.REMOVAL]:(0,n.jsx)(u,{}),[c.E.CLASSIFICATION]:(0,n.jsx)(x,{}),[c.E.CHANGE]:(0,n.jsx)(p,{}),[c.E.MONITORED]:(0,n.jsx)(f,{}),[c.E.MUTED]:(0,n.jsx)(h,{}),[c.E.IN_PROGRESS]:(0,n.jsx)(()=>(0,n.jsx)(o,{color:"orange.400",boxSize:2,mr:2,"data-testid":"in-progress-icon"}),{}),[c.E.NONE]:null}},51557:function(t,e,i){"use strict";var n,r;i.d(e,{E:function(){return n}}),(r=n||(n={})).ADDITION="Addition",r.CHANGE="Change",r.REMOVAL="Removal",r.CLASSIFICATION="Classification",r.IN_PROGRESS="Classifying",r.MONITORED="Monitoring",r.MUTED="Unmonitored",r.NONE="--"}}]);
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7080],{74833:function(t,e,i){var n=i(56127),r=/^\s+/;t.exports=function(t){return t?t.slice(0,n(t)+1).replace(r,""):t}},56127:function(t){var e=/\s/;t.exports=function(t){for(var i=t.length;i--&&e.test(t.charAt(i)););return i}},66726:function(t,e,i){var n=i(11611),r=i(82846),o=i(91936),s=Math.max,a=Math.min;t.exports=function(t,e,i){var l,c,d,u,x,p,f=0,h=!1,m=!1,v=!0;if("function"!=typeof t)throw TypeError("Expected a function");function j(e){var i=l,n=c;return l=c=void 0,f=e,u=t.apply(n,i)}function g(t){var i=t-p,n=t-f;return void 0===p||i>=e||i<0||m&&n>=d}function C(){var t,i,n,o=r();if(g(o))return b(o);x=setTimeout(C,(t=o-p,i=o-f,n=e-t,m?a(n,d-i):n))}function b(t){return(x=void 0,v&&l)?j(t):(l=c=void 0,u)}function I(){var t,i=r(),n=g(i);if(l=arguments,c=this,p=i,n){if(void 0===x)return f=t=p,x=setTimeout(C,e),h?j(t):u;if(m)return clearTimeout(x),x=setTimeout(C,e),j(p)}return void 0===x&&(x=setTimeout(C,e)),u}return e=o(e)||0,n(i)&&(h=!!i.leading,d=(m="maxWait"in i)?s(o(i.maxWait)||0,e):d,v="trailing"in i?!!i.trailing:v),I.cancel=function(){void 0!==x&&clearTimeout(x),f=0,l=p=c=x=void 0},I.flush=function(){return void 0===x?u:b(r())},I}},82846:function(t,e,i){var n=i(77400);t.exports=function(){return n.Date.now()}},91936:function(t,e,i){var n=i(74833),r=i(11611),o=i(55193),s=0/0,a=/^[-+]0x[0-9a-f]+$/i,l=/^0b[01]+$/i,c=/^0o[0-7]+$/i,d=parseInt;t.exports=function(t){if("number"==typeof t)return t;if(o(t))return s;if(r(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=r(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=n(t);var i=l.test(t);return i||c.test(t)?d(t.slice(2),i?2:8):a.test(t)?s:+t}},65464:function(t,e,i){"use strict";var n=i(24246),r=i(52615),o=i(88038),s=i.n(o);i(27378),e.Z=t=>{let{children:e,title:i,mainProps:o}=t;return(0,n.jsxs)(r.kCb,{"data-testid":i,direction:"column",height:"calc(100vh - 48px)",width:"calc(100vw - 240px)",children:[(0,n.jsxs)(s(),{children:[(0,n.jsxs)("title",{children:["Fides Admin UI - ",i]}),(0,n.jsx)("meta",{name:"description",content:"Privacy Engineering Platform"}),(0,n.jsx)("link",{rel:"icon",href:"/favicon.ico"})]}),(0,n.jsx)(r.kCb,{px:10,py:6,as:"main",overflow:"auto",direction:"column",flex:1,minWidth:0,...o,children:e})]})}},37541:function(t,e,i){"use strict";var n=i(24246),r=i(52615),o=i(53614);e.Z=t=>{let{heading:e,breadcrumbItems:i,isSticky:s=!0,children:a,rightContent:l,style:c,...d}=t;return(0,n.jsxs)("div",{...d,style:s?{position:"sticky",top:"-24px",paddingTop:"24px",paddingBottom:"24px",paddingLeft:"40px",marginLeft:"-40px",paddingRight:"40px",marginRight:"-40px",marginTop:"-24px",left:0,zIndex:20,backgroundColor:"white",...c}:{paddingBottom:"24px",...c},children:[(0,n.jsxs)(r.jqI,{justify:"space-between",children:["string"==typeof e?(0,n.jsx)(r.X6q,{className:i||a?"pb-4":void 0,fontSize:"2xl","data-testid":"page-heading",children:e}):e,l&&(0,n.jsx)("div",{"data-testid":"page-header-right-content",children:l})]}),!!i&&(0,n.jsx)(o.m,{className:a?"pb-4":void 0,items:i,"data-testid":"page-breadcrumb"}),a]})}},53359:function(t,e,i){"use strict";i.d(e,{H:function(){return o},V:function(){return n.V}});var n=i(75139),r=i(60136);let o=()=>{let{errorAlert:t}=(0,n.V)();return{handleError:e=>{let i="An unexpected error occurred. Please try again.";(0,r.Ot)(e)?i=e.data.detail:(0,r.tB)(e)&&(i=e.data.detail[0].msg),t(i)}}}},75139:function(t,e,i){"use strict";i.d(e,{V:function(){return o}});var n=i(24246),r=i(52615);let o=()=>{let t=(0,r.pmc)();return{errorAlert:(e,i,o)=>{let s={...o,position:(null==o?void 0:o.position)||"top",render:t=>{let{onClose:o}=t;return(0,n.jsxs)(r.bZj,{alignItems:"normal",status:"error","data-testid":"error-alert",children:[(0,n.jsx)(r.zMQ,{}),(0,n.jsxs)(r.xuv,{children:[i&&(0,n.jsx)(r.CdC,{children:i}),(0,n.jsx)(r.XaZ,{children:e})]}),(0,n.jsx)(r.PZ7,{onClick:o,position:"relative",right:0,size:"sm",top:-1})]})}};(null==o?void 0:o.id)&&t.isActive(o.id)?t.update(o.id,s):t(s)},successAlert:(e,i,o)=>{let s={...o,position:(null==o?void 0:o.position)||"top",render:t=>{let{onClose:o}=t;return(0,n.jsxs)(r.bZj,{alignItems:"normal",status:"success",variant:"subtle","data-testid":"success-alert",children:[(0,n.jsx)(r.zMQ,{}),(0,n.jsxs)(r.xuv,{children:[i&&(0,n.jsx)(r.CdC,{children:i}),(0,n.jsx)(r.XaZ,{children:e})]}),(0,n.jsx)(r.PZ7,{onClick:o,position:"relative",right:0,size:"sm",top:-1})]})}};(null==o?void 0:o.id)&&t.isActive(o.id)?t.update(o.id,s):t(s)}}}},53614:function(t,e,i){"use strict";i.d(e,{m:function(){return c}});var n=i(24246),r=i(52615),o=i(79894),s=i.n(o),a=i(27378);let{Text:l}=r.AntTypography,c=t=>{let{items:e,...i}=t,o=(0,a.useMemo)(()=>null==e?void 0:e.map((t,i)=>{let o=i===e.length-1,a={...t},c=a.onClick&&!a.href;return("string"==typeof a.title&&(a.title=(0,n.jsx)(l,{style:{color:"inherit",maxWidth:o?void 0:400},ellipsis:!o,children:a.title})),c)?a.title=(0,n.jsx)(r.wpx,{type:"text",size:"small",icon:a.icon,onClick:a.onClick,className:"ant-breadcrumb-link -mt-px px-1 text-inherit",children:a.title}):(a.icon&&(a.title=(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("span",{className:"anticon align-text-bottom",children:a.icon}),a.title]})),a.href&&a.title&&(a.title=(0,n.jsx)(s(),{href:a.href,className:"ant-breadcrumb-link",children:a.title}),delete a.href)),a}),[e]);return(0,n.jsx)(r.zrq,{items:o,...i})}},22770:function(t,e,i){"use strict";i.d(e,{M:function(){return l}});var n=i(24246),r=i(66726),o=i.n(r),s=i(27378),a=i(33312);let l=t=>{let{value:e,onChange:i}=t,[r,l]=(0,s.useState)(e),c=o()(i,500),d=(0,s.useCallback)(t=>{l(t),c(t)},[]);return(0,n.jsx)(a.Z,{search:r,onChange:d,onClear:()=>{l(""),i("")}})}},2686:function(t,e,i){"use strict";i.d(e,{dK:function(){return d},Rv:function(){return p},$P:function(){return x},zj:function(){return f},Kr:function(){return h},q1:function(){return u},QL:function(){return m}});var n=i(24246),r=i(52615);let o=(0,r.IUT)({displayName:"CircleIcon",viewBox:"0 0 200 200",path:(0,n.jsx)("path",{fill:"currentColor",d:"M 100, 100 m -75, 0 a 75,75 0 1,0 150,0 a 75,75 0 1,0 -150,0"})}),s=(0,r.IUT)({displayName:"RightDownArrowIcon",viewBox:"0 0 8 8",path:(0,n.jsx)("path",{fill:"currentColor",d:"M7.23192 8H8V7.23192V1.85539V1.08731H6.46385V1.85539V5.37654L1.62976 0.544855L1.08731 0L0 1.08731L0.542454 1.62976L5.37654 6.46385H1.85539H1.08731V8H1.85539H7.23192Z"})}),a=(0,r.IUT)({displayName:"RightUpArrowIcon",viewBox:"0 0 8 8",path:(0,n.jsx)("path",{fill:"currentColor",d:"M7.23192 0H8V0.768077V6.14461V6.91269H6.46385V6.14461V2.62346L1.62976 7.45515L1.08731 8L0 6.91269L0.542454 6.37024L5.37654 1.53615H1.85539H1.08731V0H1.85539H7.23192Z"})}),l=(0,r.IUT)({displayName:"TagIcon",viewBox:"0 0 9 10",path:(0,n.jsx)("path",{fill:"currentColor",d:"M0 0.5V5L4.5 9.5L9 5L4.5 0.5H0ZM2.25 2.10714C2.4205 2.10714 2.58401 2.17487 2.70457 2.29543C2.82513 2.41599 2.89286 2.5795 2.89286 2.75C2.89286 2.9205 2.82513 3.08401 2.70457 3.20457C2.58401 3.32513 2.4205 3.39286 2.25 3.39286C2.0795 3.39286 1.91599 3.32513 1.79543 3.20457C1.67487 3.08401 1.60714 2.9205 1.60714 2.75C1.60714 2.5795 1.67487 2.41599 1.79543 2.29543C1.91599 2.17487 2.0795 2.10714 2.25 2.10714Z"})});var c=i(51557);let d=()=>(0,n.jsx)(a,{color:"green.400",boxSize:2,mr:2,"data-testid":"add-icon"}),u=()=>(0,n.jsx)(s,{color:"red.400",boxSize:2,mr:2,"data-testid":"remove-icon"}),x=()=>(0,n.jsx)(l,{color:"orange.400",boxSize:3,mr:1,"data-testid":"classify-icon"}),p=()=>(0,n.jsx)(o,{color:"blue.400",boxSize:2,mr:2,"data-testid":"change-icon"}),f=()=>(0,n.jsx)(o,{color:"green.400",boxSize:2,mr:2,"data-testid":"monitored-icon"}),h=()=>(0,n.jsx)(o,{color:"red.400",boxSize:2,mr:2,"data-testid":"muted-icon"}),m={[c.E.ADDITION]:(0,n.jsx)(d,{}),[c.E.REMOVAL]:(0,n.jsx)(u,{}),[c.E.CLASSIFICATION]:(0,n.jsx)(x,{}),[c.E.CHANGE]:(0,n.jsx)(p,{}),[c.E.MONITORED]:(0,n.jsx)(f,{}),[c.E.MUTED]:(0,n.jsx)(h,{}),[c.E.IN_PROGRESS]:(0,n.jsx)(()=>(0,n.jsx)(o,{color:"orange.400",boxSize:2,mr:2,"data-testid":"in-progress-icon"}),{}),[c.E.NONE]:null}},51557:function(t,e,i){"use strict";var n,r;i.d(e,{E:function(){return n}}),(r=n||(n={})).ADDITION="Addition",r.CHANGE="Change",r.REMOVAL="Removal",r.CLASSIFICATION="Classification",r.IN_PROGRESS="Classifying",r.MONITORED="Monitoring",r.MUTED="Unmonitored",r.NONE="--"}}]);
@@ -1 +1 @@
1
- "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7528],{37528:function(e,i,r){r.r(i),r.d(i,{default:function(){return j}});var t=r(24246),n=r(96013),s=r(44296),a=r(41628),l=r(34090),o=r(27378),d=r(59389),u=r(60136),c=r(53359);let f=/^[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,4}$/i,m=e=>f.test(e),h=(0,n.Gpc)((e,i)=>{let{isRequired:r=!1,...s}=e,{emails:a}=s.form.values,[l,d]=(0,o.useState)(""),u=e=>a.includes(e),c=e=>{e.map(e=>e.trim()).filter(e=>m(e)&&!u(e)).forEach(e=>s.push(e)),d("")};return(0,t.jsxs)(n.NIc,{alignItems:"baseline",display:"inline-flex",isInvalid:!!s.form.errors[s.name],isRequired:r,children:[(0,t.jsx)(n.lXp,{fontSize:"md",htmlFor:"email",children:"Email"}),(0,t.jsxs)(n.gCW,{align:"flex-start",w:"inherit",children:[(0,t.jsx)(n.IIB,{autoComplete:"off",placeholder:"Type or paste email addresses separated by commas and press `Enter` or `Tab`...",onChange:e=>{d(e.target.value)},onKeyDown:e=>{["Enter","Tab",","].includes(e.key)&&(e.preventDefault(),c([l]))},onPaste:e=>{e.preventDefault(),c(e.clipboardData.getData("text").split(","))},ref:i,size:"sm",type:"email",value:l}),(0,t.jsx)(n.J1D,{children:s.form.errors[s.name]}),a.length>0&&(0,t.jsx)(n.Eq9,{spacing:1,mb:3,pt:"8px",children:a.map((e,i)=>(0,t.jsxs)(n.Vp9,{borderRadius:"full",backgroundColor:"primary.400",color:"white",size:"sm",variant:"solid",children:[(0,t.jsx)(n.Sn0,{children:e}),(0,t.jsx)(n.SD9,{onClick:()=>{s.remove(i)}})]},e))})]})]})});var x=r(72247);let p=d.Ry().shape({emails:d.IX(d.Z_()).when(["notify"],{is:!0,then:()=>d.IX(d.Z_()).min(1,"Must enter at least one valid email").label("Email")}),notify:d.O7(),minErrorCount:d.Rx().required()});var g=()=>{let{isOpen:e,onOpen:i,onClose:r}=(0,n.qY0)(),[s,a]=(0,o.useState)({emails:[],notify:!1,minErrorCount:1}),d=(0,o.useRef)(null),{errorAlert:f,successAlert:m}=(0,c.V)(),[g,j]=(0,o.useState)(!0),{data:y}=(0,x.tE)(void 0,{skip:g}),[v]=(0,x.SC)(),C=async(e,i)=>{i.setSubmitting(!0);let t=await v({email_addresses:e.emails,notify_after_failures:e.notify?e.minErrorCount:0});"error"in t?f((0,u.e$)(t.error),"Configure alerts and notifications has failed to save due to the following:"):m("Configure alerts and notifications saved successfully."),i.setSubmitting(!1),r()};return(0,o.useEffect)(()=>{e&&j(!1),y&&a({emails:y.email_addresses,notify:0!==y.notify_after_failures,minErrorCount:y.notify_after_failures})},[y,e]),(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(n.wpx,{onClick:i,title:"Configure alerts","aria-label":"Configure alerts",icon:(0,t.jsx)(n.Dkj,{})}),(0,t.jsx)(l.J9,{enableReinitialize:!0,initialValues:s,onSubmit:C,validationSchema:p,children:i=>(0,t.jsxs)(n.dys,{isOpen:e,placement:"right",initialFocusRef:d,onClose:()=>{i.resetForm(),r()},size:"lg",children:[(0,t.jsx)(n.P1B,{}),(0,t.jsxs)(n.scA,{color:"gray.900",children:[(0,t.jsx)(n.cCv,{}),(0,t.jsxs)(n.OXI,{color:"gray.900",children:[(0,t.jsx)(n.xvT,{fontSize:"2xl",fontWeight:"normal",mb:4,children:"Configure alerts and notifications"}),(0,t.jsx)(n.xuv,{mt:"26px",children:(0,t.jsx)(n.xvT,{fontSize:"md",fontWeight:"normal",children:"Setup your alerts to send you a notification when there are any processing failures. You can also setup a threshold for connector failures for Fides to notify you after X amount of failures have occurred."})})]}),(0,t.jsx)(n.Ng0,{mt:"20px",children:(0,t.jsxs)(l.l0,{id:"configure-alerts-form",noValidate:!0,children:[(0,t.jsx)(n.xvT,{fontSize:"md",children:"Contact details"}),(0,t.jsxs)(n.gCW,{align:"stretch",gap:"29px",mt:"14px",children:[(0,t.jsx)(n.Ugi,{children:(0,t.jsx)(l.F2,{name:"emails",render:e=>(0,t.jsx)(h,{...e,isRequired:i.values.notify,ref:d})})}),(0,t.jsx)(n.Ugi,{children:(0,t.jsx)(l.gN,{id:"notify",name:"notify",children:e=>{let{field:r}=e;return(0,t.jsxs)(n.NIc,{alignItems:"center",display:"flex",mt:"45px",children:[(0,t.jsx)(n.lXp,{fontSize:"md",mb:"0",children:"Notify me immediately if there are any DSR processing errors"}),(0,t.jsx)(n.rAg,{checked:i.values.notify,onChange:(e,t)=>{r.onChange(t),i.setFieldValue(r.name,e),i.setFieldValue("minErrorCount",1),e||setTimeout(()=>{i.setFieldTouched("emails",!1)},0)}})]})}})})]}),(0,t.jsx)(n.xvT,{color:"#757575",fontSize:"sm",mt:"11px",children:"If selected, then Fides will notify you by your chosen method of communication every time the system encounters a data subject request processing error. You can turn this off anytime and setup a more suitable notification method below if you wish."}),i.values.notify&&(0,t.jsx)(n.Ugi,{mt:"34px",children:(0,t.jsx)(l.gN,{id:"minErrorCount",name:"minErrorCount",children:e=>{let{field:r,meta:s}=e;return(0,t.jsxs)(n.NIc,{alignItems:"center",display:"flex",isInvalid:!!(s.error&&s.touched),isRequired:!0,children:[(0,t.jsx)(n.xvT,{children:"Notify me after"}),(0,t.jsxs)(n.Y2U,{allowMouseWheel:!0,color:"gray.700",defaultValue:i.values.minErrorCount||1,min:1,ml:"8px",mr:"8px",onChange:(e,r)=>{i.setFieldValue("minErrorCount",r)},size:"sm",w:"80px",children:[(0,t.jsx)(n.zuI,{...r}),(0,t.jsxs)(n.FiK,{children:[(0,t.jsx)(n.WQu,{}),(0,t.jsx)(n.Y_d,{})]})]}),(0,t.jsx)(n.xvT,{children:"DSR processing errors "})]})}})})]})}),(0,t.jsx)(n.zeN,{justifyContent:"flex-start",children:(0,t.jsxs)("div",{className:"flex gap-2",children:[(0,t.jsx)(n.wpx,{onClick:()=>{i.resetForm(),r()},children:"Cancel"}),(0,t.jsx)(n.wpx,{form:"configure-alerts-form",disabled:i.isSubmitting,loading:i.isSubmitting,htmlType:"submit",children:"Save"})]})})]})]})})]})},j=()=>{let{errorRequests:e}=(0,s.C)(x.fe);return(0,t.jsxs)(n.kCb,{gap:4,children:[(null==e?void 0:e.length)>0&&(0,t.jsx)(a.Z,{}),(0,t.jsx)(g,{})]})}},41628:function(e,i,r){var t=r(24246),n=r(96013),s=r(27378),a=r(44296),l=r(60136),o=r(53359),d=r(72247);let u=(0,n.Gpc)((e,i)=>{let{handleBlur:r,subjectRequest:u}=e,c=(0,a.T)(),[f,m]=(0,s.useState)(!1),{errorAlert:h,successAlert:x}=(0,o.V)(),{errorRequests:p}=(0,a.C)(d.fe),[g]=(0,d.JD)(),[j]=(0,d.Fq)(),y=async()=>{m(!0);let e=await g(p);"error"in e?(c((0,d.uT)({checkAll:!1,errorRequests:[]})),h((0,l.e$)(e.error),"DSR batch automation has failed due to the following:",{duration:null})):(e.data.failed.length>0&&h((0,t.jsxs)(n.xuv,{children:["DSR automation has failed for"," ",(0,t.jsx)(n.xvT,{as:"span",fontWeight:"semibold",children:e.data.failed.length})," ","privacy request(s). Please review the event log for further details."]}),void 0,{containerStyle:{maxWidth:"max-content"},duration:null}),e.data.succeeded.length>0&&x("Privacy request(s) are now being reprocessed.")),m(!1)},v=async()=>{if(!u)return;m(!0);let e=await j(u);"error"in e?h((0,l.e$)(e.error),"DSR automation has failed for this privacy request due to the following:",{duration:null}):x("Privacy request is now being reprocessed."),m(!1),r&&r(i)};return(0,t.jsx)(n.wpx,{disabled:f,loading:f,onClick:u?v:y,ref:i,size:"small",icon:(0,t.jsx)(n.AyE,{}),children:"Reprocess"})});i.Z=u}}]);
1
+ "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7528],{37528:function(e,i,r){r.r(i),r.d(i,{default:function(){return j}});var t=r(24246),n=r(52615),s=r(44296),a=r(41628),l=r(34090),o=r(27378),d=r(59389),u=r(60136),c=r(53359);let f=/^[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,4}$/i,m=e=>f.test(e),h=(0,n.Gpc)((e,i)=>{let{isRequired:r=!1,...s}=e,{emails:a}=s.form.values,[l,d]=(0,o.useState)(""),u=e=>a.includes(e),c=e=>{e.map(e=>e.trim()).filter(e=>m(e)&&!u(e)).forEach(e=>s.push(e)),d("")};return(0,t.jsxs)(n.NIc,{alignItems:"baseline",display:"inline-flex",isInvalid:!!s.form.errors[s.name],isRequired:r,children:[(0,t.jsx)(n.lXp,{fontSize:"md",htmlFor:"email",children:"Email"}),(0,t.jsxs)(n.gCW,{align:"flex-start",w:"inherit",children:[(0,t.jsx)(n.IIB,{autoComplete:"off",placeholder:"Type or paste email addresses separated by commas and press `Enter` or `Tab`...",onChange:e=>{d(e.target.value)},onKeyDown:e=>{["Enter","Tab",","].includes(e.key)&&(e.preventDefault(),c([l]))},onPaste:e=>{e.preventDefault(),c(e.clipboardData.getData("text").split(","))},ref:i,size:"sm",type:"email",value:l}),(0,t.jsx)(n.J1D,{children:s.form.errors[s.name]}),a.length>0&&(0,t.jsx)(n.Eq9,{spacing:1,mb:3,pt:"8px",children:a.map((e,i)=>(0,t.jsxs)(n.Vp9,{borderRadius:"full",backgroundColor:"primary.400",color:"white",size:"sm",variant:"solid",children:[(0,t.jsx)(n.Sn0,{children:e}),(0,t.jsx)(n.SD9,{onClick:()=>{s.remove(i)}})]},e))})]})]})});var x=r(72247);let p=d.Ry().shape({emails:d.IX(d.Z_()).when(["notify"],{is:!0,then:()=>d.IX(d.Z_()).min(1,"Must enter at least one valid email").label("Email")}),notify:d.O7(),minErrorCount:d.Rx().required()});var g=()=>{let{isOpen:e,onOpen:i,onClose:r}=(0,n.qY0)(),[s,a]=(0,o.useState)({emails:[],notify:!1,minErrorCount:1}),d=(0,o.useRef)(null),{errorAlert:f,successAlert:m}=(0,c.V)(),[g,j]=(0,o.useState)(!0),{data:y}=(0,x.tE)(void 0,{skip:g}),[v]=(0,x.SC)(),C=async(e,i)=>{i.setSubmitting(!0);let t=await v({email_addresses:e.emails,notify_after_failures:e.notify?e.minErrorCount:0});"error"in t?f((0,u.e$)(t.error),"Configure alerts and notifications has failed to save due to the following:"):m("Configure alerts and notifications saved successfully."),i.setSubmitting(!1),r()};return(0,o.useEffect)(()=>{e&&j(!1),y&&a({emails:y.email_addresses,notify:0!==y.notify_after_failures,minErrorCount:y.notify_after_failures})},[y,e]),(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(n.wpx,{onClick:i,title:"Configure alerts","aria-label":"Configure alerts",icon:(0,t.jsx)(n.Dkj,{})}),(0,t.jsx)(l.J9,{enableReinitialize:!0,initialValues:s,onSubmit:C,validationSchema:p,children:i=>(0,t.jsxs)(n.dys,{isOpen:e,placement:"right",initialFocusRef:d,onClose:()=>{i.resetForm(),r()},size:"lg",children:[(0,t.jsx)(n.P1B,{}),(0,t.jsxs)(n.scA,{color:"gray.900",children:[(0,t.jsx)(n.cCv,{}),(0,t.jsxs)(n.OXI,{color:"gray.900",children:[(0,t.jsx)(n.xvT,{fontSize:"2xl",fontWeight:"normal",mb:4,children:"Configure alerts and notifications"}),(0,t.jsx)(n.xuv,{mt:"26px",children:(0,t.jsx)(n.xvT,{fontSize:"md",fontWeight:"normal",children:"Setup your alerts to send you a notification when there are any processing failures. You can also setup a threshold for connector failures for Fides to notify you after X amount of failures have occurred."})})]}),(0,t.jsx)(n.Ng0,{mt:"20px",children:(0,t.jsxs)(l.l0,{id:"configure-alerts-form",noValidate:!0,children:[(0,t.jsx)(n.xvT,{fontSize:"md",children:"Contact details"}),(0,t.jsxs)(n.gCW,{align:"stretch",gap:"29px",mt:"14px",children:[(0,t.jsx)(n.Ugi,{children:(0,t.jsx)(l.F2,{name:"emails",render:e=>(0,t.jsx)(h,{...e,isRequired:i.values.notify,ref:d})})}),(0,t.jsx)(n.Ugi,{children:(0,t.jsx)(l.gN,{id:"notify",name:"notify",children:e=>{let{field:r}=e;return(0,t.jsxs)(n.NIc,{alignItems:"center",display:"flex",mt:"45px",children:[(0,t.jsx)(n.lXp,{fontSize:"md",mb:"0",children:"Notify me immediately if there are any DSR processing errors"}),(0,t.jsx)(n.rAg,{checked:i.values.notify,onChange:(e,t)=>{r.onChange(t),i.setFieldValue(r.name,e),i.setFieldValue("minErrorCount",1),e||setTimeout(()=>{i.setFieldTouched("emails",!1)},0)}})]})}})})]}),(0,t.jsx)(n.xvT,{color:"#757575",fontSize:"sm",mt:"11px",children:"If selected, then Fides will notify you by your chosen method of communication every time the system encounters a data subject request processing error. You can turn this off anytime and setup a more suitable notification method below if you wish."}),i.values.notify&&(0,t.jsx)(n.Ugi,{mt:"34px",children:(0,t.jsx)(l.gN,{id:"minErrorCount",name:"minErrorCount",children:e=>{let{field:r,meta:s}=e;return(0,t.jsxs)(n.NIc,{alignItems:"center",display:"flex",isInvalid:!!(s.error&&s.touched),isRequired:!0,children:[(0,t.jsx)(n.xvT,{children:"Notify me after"}),(0,t.jsxs)(n.Y2U,{allowMouseWheel:!0,color:"gray.700",defaultValue:i.values.minErrorCount||1,min:1,ml:"8px",mr:"8px",onChange:(e,r)=>{i.setFieldValue("minErrorCount",r)},size:"sm",w:"80px",children:[(0,t.jsx)(n.zuI,{...r}),(0,t.jsxs)(n.FiK,{children:[(0,t.jsx)(n.WQu,{}),(0,t.jsx)(n.Y_d,{})]})]}),(0,t.jsx)(n.xvT,{children:"DSR processing errors "})]})}})})]})}),(0,t.jsx)(n.zeN,{justifyContent:"flex-start",children:(0,t.jsxs)("div",{className:"flex gap-2",children:[(0,t.jsx)(n.wpx,{onClick:()=>{i.resetForm(),r()},children:"Cancel"}),(0,t.jsx)(n.wpx,{form:"configure-alerts-form",disabled:i.isSubmitting,loading:i.isSubmitting,htmlType:"submit",children:"Save"})]})})]})]})})]})},j=()=>{let{errorRequests:e}=(0,s.C)(x.fe);return(0,t.jsxs)(n.kCb,{gap:4,children:[(null==e?void 0:e.length)>0&&(0,t.jsx)(a.Z,{}),(0,t.jsx)(g,{})]})}},41628:function(e,i,r){var t=r(24246),n=r(52615),s=r(27378),a=r(44296),l=r(60136),o=r(53359),d=r(72247);let u=(0,n.Gpc)((e,i)=>{let{handleBlur:r,subjectRequest:u}=e,c=(0,a.T)(),[f,m]=(0,s.useState)(!1),{errorAlert:h,successAlert:x}=(0,o.V)(),{errorRequests:p}=(0,a.C)(d.fe),[g]=(0,d.JD)(),[j]=(0,d.Fq)(),y=async()=>{m(!0);let e=await g(p);"error"in e?(c((0,d.uT)({checkAll:!1,errorRequests:[]})),h((0,l.e$)(e.error),"DSR batch automation has failed due to the following:",{duration:null})):(e.data.failed.length>0&&h((0,t.jsxs)(n.xuv,{children:["DSR automation has failed for"," ",(0,t.jsx)(n.xvT,{as:"span",fontWeight:"semibold",children:e.data.failed.length})," ","privacy request(s). Please review the event log for further details."]}),void 0,{containerStyle:{maxWidth:"max-content"},duration:null}),e.data.succeeded.length>0&&x("Privacy request(s) are now being reprocessed.")),m(!1)},v=async()=>{if(!u)return;m(!0);let e=await j(u);"error"in e?h((0,l.e$)(e.error),"DSR automation has failed for this privacy request due to the following:",{duration:null}):x("Privacy request is now being reprocessed."),m(!1),r&&r(i)};return(0,t.jsx)(n.wpx,{disabled:f,loading:f,onClick:u?v:y,ref:i,size:"small",icon:(0,t.jsx)(n.AyE,{}),children:"Reprocess"})});i.Z=u}}]);