ethyca-fides 2.66.3b0__py2.py3-none-any.whl → 2.67.0rc0__py2.py3-none-any.whl

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

Potentially problematic release.


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

Files changed (216) hide show
  1. {ethyca_fides-2.66.3b0.dist-info → ethyca_fides-2.67.0rc0.dist-info}/METADATA +1 -1
  2. {ethyca_fides-2.66.3b0.dist-info → ethyca_fides-2.67.0rc0.dist-info}/RECORD +190 -188
  3. fides/_version.py +3 -3
  4. fides/api/graph/graph.py +13 -2
  5. fides/api/graph/traversal.py +125 -38
  6. fides/api/service/privacy_request/dsr_package/templates/welcome.html +2 -2
  7. fides/api/util/aws_util.py +5 -1
  8. fides/ui-build/static/admin/404.html +1 -1
  9. fides/ui-build/static/admin/_next/static/GKmhMPa_1gMto8JZO8ENy/_buildManifest.js +1 -0
  10. fides/ui-build/static/admin/_next/static/chunks/1316-2606e19807c08aa5.js +1 -0
  11. fides/ui-build/static/admin/_next/static/chunks/1467-8808ec8836e033f9.js +1 -0
  12. fides/ui-build/static/admin/_next/static/chunks/1817-b78b58ae3b75d75a.js +1 -0
  13. fides/ui-build/static/admin/_next/static/chunks/1975.7d4634a0e823a02b.js +1 -0
  14. fides/ui-build/static/admin/_next/static/chunks/{203-4e777c324a01dbec.js → 203-cd78ea279cecba60.js} +1 -1
  15. fides/ui-build/static/admin/_next/static/chunks/2150-930ffaf2c4718edc.js +1 -0
  16. fides/ui-build/static/admin/_next/static/chunks/255-1bc0cbef7a59cdc6.js +1 -0
  17. fides/ui-build/static/admin/_next/static/chunks/{3450-1cc2bb07ed142203.js → 3450-ca4ba70da999f264.js} +1 -1
  18. fides/ui-build/static/admin/_next/static/chunks/346-aa3b88efb85f2e28.js +1 -0
  19. fides/ui-build/static/admin/_next/static/chunks/3550-d04125c828d591a1.js +1 -0
  20. fides/ui-build/static/admin/_next/static/chunks/{3855-e2fa6db53d32c3de.js → 3855-509ca7ac99b5eada.js} +1 -1
  21. fides/ui-build/static/admin/_next/static/chunks/{3872-84b7e380b88b4454.js → 3872-0a0f0032ca39a93f.js} +1 -1
  22. fides/ui-build/static/admin/_next/static/chunks/409-ea70638a59296659.js +1 -0
  23. fides/ui-build/static/admin/_next/static/chunks/{4121-f50675521dfee6eb.js → 4121-877e19d3fa078c7b.js} +1 -1
  24. fides/ui-build/static/admin/_next/static/chunks/{4230-840c287045c88b34.js → 4230-114e31621c19ea69.js} +1 -1
  25. fides/ui-build/static/admin/_next/static/chunks/4259.d1507e0db19cbed7.js +1 -0
  26. fides/ui-build/static/admin/_next/static/chunks/{431-ade3e312fac3430b.js → 431-1db919f6569a4021.js} +1 -1
  27. fides/ui-build/static/admin/_next/static/chunks/{4608-a8e3100e2806dbff.js → 4608-43acf39319177bee.js} +1 -1
  28. fides/ui-build/static/admin/_next/static/chunks/5163-e682273cd76a7d07.js +1 -0
  29. fides/ui-build/static/admin/_next/static/chunks/{5309-1172322bf91b5d57.js → 5309-ce5702b9faeaff55.js} +1 -1
  30. fides/ui-build/static/admin/_next/static/chunks/{905-ffdbd0b14167e8bd.js → 5596-4378b2927dae65b2.js} +3 -3
  31. fides/ui-build/static/admin/_next/static/chunks/5619-9b50cec521203989.js +1 -0
  32. fides/ui-build/static/admin/_next/static/chunks/{6084-5d7598b7bcb548cf.js → 6084-ddbad3149364725d.js} +1 -1
  33. fides/ui-build/static/admin/_next/static/chunks/6148-59a59d5c5925344f.js +1 -0
  34. fides/ui-build/static/admin/_next/static/chunks/6419-d0c00d661b01f8fa.js +1 -0
  35. fides/ui-build/static/admin/_next/static/chunks/{6662-efb2cf74641647f2.js → 6662-4392ba1e4c254ef7.js} +1 -1
  36. fides/ui-build/static/admin/_next/static/chunks/{6780-a00c87739acc004d.js → 6780-fc7d9ddb1a03e7b3.js} +1 -1
  37. fides/ui-build/static/admin/_next/static/chunks/{6853-4f8bf6558f8c6a46.js → 6853-d0190d2cca9dbde2.js} +1 -1
  38. fides/ui-build/static/admin/_next/static/chunks/{6882-586b84aeb02d5830.js → 6882-59ea739e3616ce83.js} +1 -1
  39. fides/ui-build/static/admin/_next/static/chunks/6954-9c4912fbce87c4df.js +1 -0
  40. fides/ui-build/static/admin/_next/static/chunks/{7476-d206c11823c91088.js → 7476-cc0d9a94ed7aad53.js} +1 -1
  41. fides/ui-build/static/admin/_next/static/chunks/{787-cbe2d0bfb513d90a.js → 787-c57185ad89c4e288.js} +1 -1
  42. fides/ui-build/static/admin/_next/static/chunks/{79-3db1941d274f40c7.js → 79-2aab56be75e16187.js} +1 -1
  43. fides/ui-build/static/admin/_next/static/chunks/8237-841439bef6682177.js +1 -0
  44. fides/ui-build/static/admin/_next/static/chunks/8765-f622a35b40a7ec63.js +1 -0
  45. fides/ui-build/static/admin/_next/static/chunks/{9046-c8233981762585b4.js → 9046-04a8c092fef1cd83.js} +1 -1
  46. fides/ui-build/static/admin/_next/static/chunks/9187-7438242f0d380bb0.js +1 -0
  47. fides/ui-build/static/admin/_next/static/chunks/{9226-72ad691ca57b83ef.js → 9226-2dcac54ab3fb94be.js} +1 -1
  48. fides/ui-build/static/admin/_next/static/chunks/9278-08cc704317fe535e.js +1 -0
  49. fides/ui-build/static/admin/_next/static/chunks/{9951-595d0f1588215081.js → 9951-7c6639e5d062779e.js} +1 -1
  50. fides/ui-build/static/admin/_next/static/chunks/pages/{_app-f2c3d287bac00395.js → _app-4b5bff46158a19a3.js} +1 -1
  51. fides/ui-build/static/admin/_next/static/chunks/pages/add-systems/{manual-acb59f8b5e97512a.js → manual-2a655ff3a97f2492.js} +1 -1
  52. fides/ui-build/static/admin/_next/static/chunks/pages/{add-systems-0943633a8e422695.js → add-systems-0902f0bb4080643e.js} +1 -1
  53. fides/ui-build/static/admin/_next/static/chunks/pages/consent/privacy-experience/{[id]-fc3a011154a2e1de.js → [id]-f22ddd9b48a5c418.js} +1 -1
  54. fides/ui-build/static/admin/_next/static/chunks/pages/consent/privacy-experience/{new-06bb3b0bf097fcdb.js → new-e74cb5ea87f15b40.js} +1 -1
  55. fides/ui-build/static/admin/_next/static/chunks/pages/consent/{privacy-experience-09d4408014bcfe1c.js → privacy-experience-21f997c69fc3b4c2.js} +1 -1
  56. fides/ui-build/static/admin/_next/static/chunks/pages/consent/privacy-notices/{[id]-d67542783ef5ddac.js → [id]-da4124b7600a2a1d.js} +1 -1
  57. fides/ui-build/static/admin/_next/static/chunks/pages/consent/privacy-notices/{new-3f20e8a316bb3d5b.js → new-a57d251c88ce68ae.js} +1 -1
  58. fides/ui-build/static/admin/_next/static/chunks/pages/consent/{privacy-notices-23e9dcd4590312d2.js → privacy-notices-ad105181bc91209b.js} +1 -1
  59. fides/ui-build/static/admin/_next/static/chunks/pages/consent/reporting-b0c4235fe6d0b0c8.js +1 -0
  60. fides/ui-build/static/admin/_next/static/chunks/pages/data-catalog/[systemId]/projects/[projectUrn]/{[resourceUrn]-99c9092d65c94807.js → [resourceUrn]-aad6047a4604b945.js} +1 -1
  61. fides/ui-build/static/admin/_next/static/chunks/pages/data-catalog/[systemId]/{projects-774fecea22ba8852.js → projects-29784a11fe0fbd0a.js} +1 -1
  62. fides/ui-build/static/admin/_next/static/chunks/pages/data-catalog/[systemId]/resources/{[resourceUrn]-f6bd6aff389cb9fe.js → [resourceUrn]-b6b98cea25dd94fa.js} +1 -1
  63. fides/ui-build/static/admin/_next/static/chunks/pages/{data-catalog-8a7f9285da66b965.js → data-catalog-d5b01abcb76792ce.js} +1 -1
  64. fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/action-center/[monitorId]/{[systemId]-71579a199158952e.js → [systemId]-7caea7bb58c1f153.js} +1 -1
  65. fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/action-center/{[monitorId]-7d3115059503b904.js → [monitorId]-a9a70856f7be1542.js} +1 -1
  66. fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/{action-center-85e140788e251272.js → action-center-1f0ea5c92ae9a2b4.js} +1 -1
  67. fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/{activity-5af9381f02b2aff6.js → activity-ad6a84a6276f914c.js} +1 -1
  68. fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/discovery/{[resourceUrn]-6421ce247549c5d6.js → [resourceUrn]-f98dd251babb7e28.js} +1 -1
  69. fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/{discovery-3eac407ac5181a3c.js → discovery-56eb4c014f0d96a3.js} +1 -1
  70. fides/ui-build/static/admin/_next/static/chunks/pages/datamap-d23b3ae139f0428b.js +1 -0
  71. fides/ui-build/static/admin/_next/static/chunks/pages/dataset/[datasetId]/[collectionName]/{[...subfieldNames]-1c98bd0959d9570a.js → [...subfieldNames]-15301bd6bf7cf718.js} +1 -1
  72. fides/ui-build/static/admin/_next/static/chunks/pages/dataset/[datasetId]/{[collectionName]-e548cabda7da32c9.js → [collectionName]-0fa72873e464f581.js} +1 -1
  73. fides/ui-build/static/admin/_next/static/chunks/pages/dataset/{new-513c862c3a707735.js → new-0d50084fbdf9b84c.js} +1 -1
  74. fides/ui-build/static/admin/_next/static/chunks/pages/{dataset-747b7a13289f1cd7.js → dataset-f3348d0a92543bab.js} +1 -1
  75. fides/ui-build/static/admin/_next/static/chunks/pages/datastore-connection/{[id]-3d22525b3c327b2e.js → [id]-7d6027570d05c57f.js} +1 -1
  76. fides/ui-build/static/admin/_next/static/chunks/pages/datastore-connection/{new-d2cad97495e86adb.js → new-8446418c7ad28f77.js} +1 -1
  77. fides/ui-build/static/admin/_next/static/chunks/pages/{fides-js-docs-5d8fd1af75f19e2f.js → fides-js-docs-1f4335dca5c09860.js} +1 -1
  78. fides/ui-build/static/admin/_next/static/chunks/pages/{index-12ac3e317fc86f21.js → index-fbf9b845bb901238.js} +1 -1
  79. fides/ui-build/static/admin/_next/static/chunks/pages/integrations/{[id]-f9c0eac932188593.js → [id]-f53fe1f2cbebda7c.js} +1 -1
  80. fides/ui-build/static/admin/_next/static/chunks/pages/{integrations-f10a7dcf7541c865.js → integrations-142abe3e3e3e5bf7.js} +1 -1
  81. fides/ui-build/static/admin/_next/static/chunks/pages/messaging-1bae386d8c190348.js +1 -0
  82. fides/ui-build/static/admin/_next/static/chunks/pages/privacy-requests/{[id]-c73497fc333c324d.js → [id]-1b6b0d703cf59389.js} +1 -1
  83. fides/ui-build/static/admin/_next/static/chunks/pages/privacy-requests/configure/{messaging-7498d1d5974a78b0.js → messaging-f1d818242d8550f8.js} +1 -1
  84. fides/ui-build/static/admin/_next/static/chunks/pages/privacy-requests/configure/{storage-2d3a2d967767a131.js → storage-d40a26bddb126c5c.js} +1 -1
  85. fides/ui-build/static/admin/_next/static/chunks/pages/privacy-requests-ccd8d9e06cf2d278.js +1 -0
  86. fides/ui-build/static/admin/_next/static/chunks/pages/reporting/datamap-fd1a67892056830a.js +1 -0
  87. fides/ui-build/static/admin/_next/static/chunks/pages/settings/consent/[configuration_id]/{[purpose_id]-668d74c041d74650.js → [purpose_id]-e891d01ece59669e.js} +1 -1
  88. fides/ui-build/static/admin/_next/static/chunks/pages/settings/{consent-a989532a12c40dcf.js → consent-f61b87e79367865b.js} +1 -1
  89. fides/ui-build/static/admin/_next/static/chunks/pages/settings/{custom-fields-45bea76ff7eda3cb.js → custom-fields-f8eea5d508c60c64.js} +1 -1
  90. fides/ui-build/static/admin/_next/static/chunks/pages/settings/{locations-6946e78a5d43e654.js → locations-ed6a140b362c5baa.js} +1 -1
  91. fides/ui-build/static/admin/_next/static/chunks/pages/settings/{organization-55a10e01dffc8039.js → organization-ff9a34264d48c35f.js} +1 -1
  92. fides/ui-build/static/admin/_next/static/chunks/pages/systems/configure/[id]/{test-datasets-f91f22cf96566ed4.js → test-datasets-a4b6d41ca679298b.js} +1 -1
  93. fides/ui-build/static/admin/_next/static/chunks/pages/systems/configure/{[id]-d4a57ea18935dd70.js → [id]-c8f5fbaa83dd9945.js} +1 -1
  94. fides/ui-build/static/admin/_next/static/chunks/pages/{systems-648a0ff4920579ce.js → systems-c05b49ddec1a1b4f.js} +1 -1
  95. fides/ui-build/static/admin/_next/static/chunks/pages/taxonomy-df0d88716578e295.js +1 -0
  96. fides/ui-build/static/admin/_next/static/chunks/pages/user-management/profile/{[id]-fe58cebba358119d.js → [id]-da68efc31998dc66.js} +1 -1
  97. fides/ui-build/static/admin/_next/static/chunks/pages/{user-management-45bfa04e45a7d13f.js → user-management-e98dfc7d4f2a4e16.js} +1 -1
  98. fides/ui-build/static/admin/_next/static/chunks/webpack-90e8ec1fc5c6455b.js +1 -0
  99. fides/ui-build/static/admin/_next/static/css/{79e296c724c1568c.css → d9924caa849931b3.css} +1 -1
  100. fides/ui-build/static/admin/_next/static/css/dbcf63488933a4d5.css +29 -0
  101. fides/ui-build/static/admin/add-systems/manual.html +1 -1
  102. fides/ui-build/static/admin/add-systems/multiple.html +1 -1
  103. fides/ui-build/static/admin/add-systems.html +1 -1
  104. fides/ui-build/static/admin/consent/configure/add-vendors.html +1 -1
  105. fides/ui-build/static/admin/consent/configure.html +1 -1
  106. fides/ui-build/static/admin/consent/privacy-experience/[id].html +1 -1
  107. fides/ui-build/static/admin/consent/privacy-experience/new.html +1 -1
  108. fides/ui-build/static/admin/consent/privacy-experience.html +1 -1
  109. fides/ui-build/static/admin/consent/privacy-notices/[id].html +1 -1
  110. fides/ui-build/static/admin/consent/privacy-notices/new.html +1 -1
  111. fides/ui-build/static/admin/consent/privacy-notices.html +1 -1
  112. fides/ui-build/static/admin/consent/properties.html +1 -1
  113. fides/ui-build/static/admin/consent/reporting.html +1 -1
  114. fides/ui-build/static/admin/consent.html +1 -1
  115. fides/ui-build/static/admin/data-catalog/[systemId]/projects/[projectUrn]/[resourceUrn].html +1 -1
  116. fides/ui-build/static/admin/data-catalog/[systemId]/projects/[projectUrn].html +1 -1
  117. fides/ui-build/static/admin/data-catalog/[systemId]/projects.html +1 -1
  118. fides/ui-build/static/admin/data-catalog/[systemId]/resources/[resourceUrn].html +1 -1
  119. fides/ui-build/static/admin/data-catalog/[systemId]/resources.html +1 -1
  120. fides/ui-build/static/admin/data-catalog.html +1 -1
  121. fides/ui-build/static/admin/data-discovery/action-center/[monitorId]/[systemId].html +1 -1
  122. fides/ui-build/static/admin/data-discovery/action-center/[monitorId].html +1 -1
  123. fides/ui-build/static/admin/data-discovery/action-center.html +1 -1
  124. fides/ui-build/static/admin/data-discovery/activity.html +1 -1
  125. fides/ui-build/static/admin/data-discovery/detection/[resourceUrn].html +1 -1
  126. fides/ui-build/static/admin/data-discovery/detection.html +1 -1
  127. fides/ui-build/static/admin/data-discovery/discovery/[resourceUrn].html +1 -1
  128. fides/ui-build/static/admin/data-discovery/discovery.html +1 -1
  129. fides/ui-build/static/admin/datamap.html +1 -1
  130. fides/ui-build/static/admin/dataset/[datasetId]/[collectionName]/[...subfieldNames].html +1 -1
  131. fides/ui-build/static/admin/dataset/[datasetId]/[collectionName].html +1 -1
  132. fides/ui-build/static/admin/dataset/[datasetId].html +1 -1
  133. fides/ui-build/static/admin/dataset/new.html +1 -1
  134. fides/ui-build/static/admin/dataset.html +1 -1
  135. fides/ui-build/static/admin/datastore-connection/[id].html +1 -1
  136. fides/ui-build/static/admin/datastore-connection/new.html +1 -1
  137. fides/ui-build/static/admin/datastore-connection.html +1 -1
  138. fides/ui-build/static/admin/index.html +1 -1
  139. fides/ui-build/static/admin/integrations/[id].html +1 -1
  140. fides/ui-build/static/admin/integrations.html +1 -1
  141. fides/ui-build/static/admin/lib/fides-ext-gpp.js +1 -1
  142. fides/ui-build/static/admin/lib/fides-headless.js +1 -1
  143. fides/ui-build/static/admin/lib/fides-preview.js +1 -1
  144. fides/ui-build/static/admin/lib/fides-tcf.js +2 -2
  145. fides/ui-build/static/admin/lib/fides.js +2 -2
  146. fides/ui-build/static/admin/login/[provider].html +1 -1
  147. fides/ui-build/static/admin/login.html +1 -1
  148. fides/ui-build/static/admin/messaging/[id].html +1 -1
  149. fides/ui-build/static/admin/messaging/add-template.html +1 -1
  150. fides/ui-build/static/admin/messaging.html +1 -1
  151. fides/ui-build/static/admin/poc/ant-components.html +1 -1
  152. fides/ui-build/static/admin/poc/form-experiments/AntForm.html +1 -1
  153. fides/ui-build/static/admin/poc/form-experiments/FormikAntFormItem.html +1 -1
  154. fides/ui-build/static/admin/poc/form-experiments/FormikControlled.html +1 -1
  155. fides/ui-build/static/admin/poc/form-experiments/FormikField.html +1 -1
  156. fides/ui-build/static/admin/poc/form-experiments/FormikSpreadField.html +1 -1
  157. fides/ui-build/static/admin/poc/forms.html +1 -1
  158. fides/ui-build/static/admin/poc/table-migration.html +1 -1
  159. fides/ui-build/static/admin/privacy-requests/[id].html +1 -1
  160. fides/ui-build/static/admin/privacy-requests/configure/messaging.html +1 -1
  161. fides/ui-build/static/admin/privacy-requests/configure/storage.html +1 -1
  162. fides/ui-build/static/admin/privacy-requests/configure.html +1 -1
  163. fides/ui-build/static/admin/privacy-requests.html +1 -1
  164. fides/ui-build/static/admin/properties/[id].html +1 -1
  165. fides/ui-build/static/admin/properties/add-property.html +1 -1
  166. fides/ui-build/static/admin/properties.html +1 -1
  167. fides/ui-build/static/admin/reporting/datamap.html +1 -1
  168. fides/ui-build/static/admin/settings/about/alpha.html +1 -1
  169. fides/ui-build/static/admin/settings/about.html +1 -1
  170. fides/ui-build/static/admin/settings/consent/[configuration_id]/[purpose_id].html +1 -1
  171. fides/ui-build/static/admin/settings/consent.html +1 -1
  172. fides/ui-build/static/admin/settings/custom-fields.html +1 -1
  173. fides/ui-build/static/admin/settings/domain-records.html +1 -1
  174. fides/ui-build/static/admin/settings/domains.html +1 -1
  175. fides/ui-build/static/admin/settings/email-templates.html +1 -1
  176. fides/ui-build/static/admin/settings/locations.html +1 -1
  177. fides/ui-build/static/admin/settings/organization.html +1 -1
  178. fides/ui-build/static/admin/settings/regulations.html +1 -1
  179. fides/ui-build/static/admin/systems/configure/[id]/test-datasets.html +1 -1
  180. fides/ui-build/static/admin/systems/configure/[id].html +1 -1
  181. fides/ui-build/static/admin/systems.html +1 -1
  182. fides/ui-build/static/admin/taxonomy.html +1 -1
  183. fides/ui-build/static/admin/user-management/new.html +1 -1
  184. fides/ui-build/static/admin/user-management/profile/[id].html +1 -1
  185. fides/ui-build/static/admin/user-management.html +1 -1
  186. fides/ui-build/static/admin/_next/static/chunks/1316-6cc72a45ebf7ff81.js +0 -1
  187. fides/ui-build/static/admin/_next/static/chunks/1807-3beab149351d5ded.js +0 -1
  188. fides/ui-build/static/admin/_next/static/chunks/1817-6f35f58cd08b04ae.js +0 -1
  189. fides/ui-build/static/admin/_next/static/chunks/255-7db55b0e3a0f9dea.js +0 -1
  190. fides/ui-build/static/admin/_next/static/chunks/2599-6c4d22e75028d8b6.js +0 -1
  191. fides/ui-build/static/admin/_next/static/chunks/2858-0b44609b6be7850b.js +0 -1
  192. fides/ui-build/static/admin/_next/static/chunks/2866-a73888c17a195cbe.js +0 -1
  193. fides/ui-build/static/admin/_next/static/chunks/3615-5e2d062d684b8fa1.js +0 -1
  194. fides/ui-build/static/admin/_next/static/chunks/409-45a125437261580c.js +0 -1
  195. fides/ui-build/static/admin/_next/static/chunks/570-c99f07161bd339cd.js +0 -1
  196. fides/ui-build/static/admin/_next/static/chunks/6954-34e062e4bffc7e71.js +0 -1
  197. fides/ui-build/static/admin/_next/static/chunks/7062.fda15dcb7df85675.js +0 -1
  198. fides/ui-build/static/admin/_next/static/chunks/7c79804f.7a7112aece470725.js +0 -1
  199. fides/ui-build/static/admin/_next/static/chunks/8237-55049f8f5fd5e058.js +0 -1
  200. fides/ui-build/static/admin/_next/static/chunks/9014-eeae6f581158e645.js +0 -1
  201. fides/ui-build/static/admin/_next/static/chunks/9278-9b1b5970f0702668.js +0 -1
  202. fides/ui-build/static/admin/_next/static/chunks/9392.f4520f66206d347d.js +0 -1
  203. fides/ui-build/static/admin/_next/static/chunks/ea076c0a.84423f606aef37cd.js +0 -1
  204. fides/ui-build/static/admin/_next/static/chunks/pages/consent/reporting-8f891957c8944137.js +0 -1
  205. fides/ui-build/static/admin/_next/static/chunks/pages/datamap-d2b275d83089820d.js +0 -1
  206. fides/ui-build/static/admin/_next/static/chunks/pages/messaging-c1bd3e7adbe8d2d3.js +0 -1
  207. fides/ui-build/static/admin/_next/static/chunks/pages/privacy-requests-6a9068df48bdee05.js +0 -1
  208. fides/ui-build/static/admin/_next/static/chunks/pages/reporting/datamap-2a98bd257edd8f47.js +0 -1
  209. fides/ui-build/static/admin/_next/static/chunks/pages/taxonomy-0b9d1a24188f65a9.js +0 -1
  210. fides/ui-build/static/admin/_next/static/chunks/webpack-63a0c45b150a1037.js +0 -1
  211. fides/ui-build/static/admin/_next/static/hKDMNIRKgB86FSDpiOjHn/_buildManifest.js +0 -1
  212. {ethyca_fides-2.66.3b0.dist-info → ethyca_fides-2.67.0rc0.dist-info}/WHEEL +0 -0
  213. {ethyca_fides-2.66.3b0.dist-info → ethyca_fides-2.67.0rc0.dist-info}/entry_points.txt +0 -0
  214. {ethyca_fides-2.66.3b0.dist-info → ethyca_fides-2.67.0rc0.dist-info}/licenses/LICENSE +0 -0
  215. {ethyca_fides-2.66.3b0.dist-info → ethyca_fides-2.67.0rc0.dist-info}/top_level.txt +0 -0
  216. /fides/ui-build/static/admin/_next/static/{hKDMNIRKgB86FSDpiOjHn → GKmhMPa_1gMto8JZO8ENy}/_ssgManifest.js +0 -0
@@ -1 +1 @@
1
- "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6882],{18225:function(e,t,i){var n=i(24246),r=i(13577);t.Z=e=>{let{alignment:t="center",...i}=e;return(0,n.jsx)(r.kCb,{boxSize:"full",align:"center",justify:t,children:(0,n.jsx)(r.$jN,{color:"primary",...i})})}},77213:function(e,t,i){i.d(t,{Z:function(){return f}});var n=i(24246),r=i(13577),s=i(88038),l=i.n(s),o=i(86677);i(27378);var d=i(25980),a=i(90867),c=i(77830),u=()=>{let e=(0,o.useRouter)();return(0,n.jsx)(r.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)(r.xuv,{children:[(0,n.jsxs)(r.Kqy,{direction:{base:"column",sm:"row"},justifyContent:"space-between",children:[(0,n.jsx)(r.xvT,{fontWeight:"semibold",children:"Configure your storage and messaging provider"}),(0,n.jsx)(r.wpx,{onClick:()=>{e.push(c.fz)},children:"Configure"})]}),(0,n.jsxs)(r.xvT,{children:["Before Fides can process your privacy requests we need two simple steps to configure your storage and email client."," "]})]})})},f=e=>{let{children:t,title:i,padded:s=!0,mainProps:c}=e,f=(0,d.hz)(),h=(0,o.useRouter)(),x="/privacy-requests"===h.pathname||"/datastore-connection"===h.pathname,j=!(f.flags.privacyRequestsConfiguration&&x),{data:_}=(0,a.JE)(void 0,{skip:j}),{data:v}=(0,a.PW)(void 0,{skip:j}),p=f.flags.privacyRequestsConfiguration&&(!_||!v)&&x;return(0,n.jsxs)(r.kCb,{"data-testid":i,direction:"column",h:"100vh",children:[(0,n.jsxs)(l(),{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)(r.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",...c,children:[p?(0,n.jsx)(u,{}):null,t]})]})}},79789:function(e,t,i){i.d(t,{Hn:function(){return o},XU:function(){return l},Z5:function(){return d},aG:function(){return u},cB:function(){return s},hX:function(){return c},vQ:function(){return a}});var n=i(24246),r=i(13577);let s=e=>{let{text:t,...i}=e;return(0,n.jsx)(r.X6q,{fontSize:"sm",mt:4,mb:1,...i,children:t})},l=e=>{let{children:t}=e;return(0,n.jsx)(r.xvT,{fontSize:"14px",mb:4,children:t})},o=e=>{let{children:t,href:i}=e;return(0,n.jsx)(r.rUS,{href:i,textDecoration:"underline",isExternal:!0,children:t})},d=e=>{let{children:t}=e;return(0,n.jsx)(r.QI$,{fontSize:"14px",mb:4,children:t})},a=e=>{let{children:t}=e;return(0,n.jsx)(r.GSI,{fontSize:"14px",mb:4,ml:6,children:t})},c=e=>{let{children:t}=e;return(0,n.jsx)(r.EKh,{display:"block",whiteSpace:"pre",p:4,mb:4,overflowX:"scroll",children:t})},u=e=>{let{data:t}=e;return(0,n.jsxs)(r.iA_,{fontSize:"14px",children:[(0,n.jsx)(r.hrZ,{children:(0,n.jsxs)(r.Tr,{children:[(0,n.jsx)(r.Th,{children:"Permission"}),(0,n.jsx)(r.Th,{children:"Description"})]})}),(0,n.jsx)(r.p3B,{children:t.map(e=>(0,n.jsxs)(r.Tr,{children:[(0,n.jsx)(r.Td,{children:(0,n.jsx)(r.Vp9,{children:e.permission})}),(0,n.jsx)(r.Td,{children:e.description})]},e.permission))})]})}},12627:function(e,t,i){var n=i(24246),r=i(79283),s=i(34929);t.Z=e=>{let{selectedTaxonomies:t,showDisabled:i=!1,...l}=e,{getDataCategoryDisplayNameProps:o,getDataCategories:d}=(0,s.Z)(),a=(i?d():d().filter(e=>e.active)).filter(e=>!t.includes(e.fides_key)).map(e=>{let{name:t,primaryName:i}=o(e.fides_key);return{value:e.fides_key,name:t,primaryName:i,description:e.description||""}});return(0,n.jsx)(r.l,{options:a,...l})}},89200:function(e,t,i){var n=i(24246),r=i(47935),s=i(98559),l=i(80356);t.Z=e=>{let{resource:t}=e;return(0,n.jsx)(r.G3,{value:(0,s.Z)(t),fontWeight:(0,l.Z)(t)?"semibold":"normal"})}},5945:function(e,t,i){var n=i(24246),r=i(47935),s=i(8151);let l={[s.e.ATTENTION_REQUIRED]:"error",[s.e.APPROVED]:"success",[s.e.IN_REVIEW]:"warning",[s.e.CLASSIFYING]:"info",[s.e.NONE]:"marble"};t.Z=e=>{let{status:t}=e;return(0,n.jsx)(r.A4,{color:l[t],value:t})}},99763:function(e,t,i){var n=i(24246),r=i(13577),s=i(79789),l=i(8151),o=i(61099),d=i(7940),a=i(73825);t.Z=e=>{var t;let{resource:i,onClose:c}=e,u=(0,d.G)(i),f=(0,l.u)(i),h=(u===a.D$.FIELD||u===a.D$.TABLE)&&f===l.e.IN_REVIEW;return(0,n.jsxs)(r.dys,{isOpen:!!i,onClose:c,size:"md",children:[(0,n.jsx)(r.P1B,{}),(0,n.jsxs)(r.scA,{"data-testid":"resource-details",children:[(0,n.jsx)(r.OXI,{children:(null==i?void 0:i.name)||(null==i?void 0:i.urn)}),(0,n.jsx)(r.cCv,{}),(0,n.jsxs)(r.Ng0,{children:[(0,n.jsx)(s.cB,{text:"Title",mt:0}),(0,n.jsx)(s.XU,{children:null!==(t=null==i?void 0:i.name)&&void 0!==t?t:null==i?void 0:i.urn}),(null==i?void 0:i.description)&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(s.cB,{text:"Description"}),(0,n.jsx)(s.XU,{children:null==i?void 0:i.description})]}),h&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(s.cB,{text:"Data categories"}),(0,n.jsx)(o.Z,{resource:i})]})]})]})]})}},28976:function(e,t,i){var n=i(24246),r=i(13577);t.Z=e=>{let{onHideClick:t,onDetailClick:i}=e;return(0,n.jsxs)(r.v2r,{children:[(0,n.jsx)(r.j2t,{as:r.wpx,size:"small",type:"text",icon:(0,n.jsx)(r.nXP,{transform:"rotate(90deg)"}),className:"w-6 gap-0","data-testid":"actions-menu"}),(0,n.jsxs)(r.qyq,{children:[i&&(0,n.jsx)(r.sNh,{onClick:i,"data-testid":"view-resource-details",children:"View details"}),t&&(0,n.jsx)(r.sNh,{onClick:t,"data-testid":"hide-resource",children:"Hide"})]})]})}},8151:function(e,t,i){i.d(t,{e:function(){return r},u:function(){return l}});var n,r,s=i(73825);(n=r||(r={})).ATTENTION_REQUIRED="Attention required",n.IN_REVIEW="In review",n.APPROVED="Approved",n.CLASSIFYING="Classifying",n.NONE="None";let l=e=>{if(!e)return"Approved";let t=e.diff_status===s.LL.ADDITION||e.diff_status===s.LL.REMOVAL,i=e.child_diff_statuses&&(e.child_diff_statuses[s.LL.ADDITION]||e.child_diff_statuses[s.LL.REMOVAL]);if(t||i)return"Attention required";let n=e.diff_status===s.LL.CLASSIFICATION_QUEUED||e.diff_status===s.LL.CLASSIFYING,r=e.child_diff_statuses&&(e.child_diff_statuses[s.LL.CLASSIFICATION_QUEUED]||e.child_diff_statuses[s.LL.CLASSIFYING]);if(n||r)return"Classifying";let l=e.diff_status===s.LL.CLASSIFICATION_ADDITION||e.diff_status===s.LL.CLASSIFICATION_UPDATE,o=e.child_diff_statuses&&(e.child_diff_statuses[s.LL.CLASSIFICATION_ADDITION]||e.child_diff_statuses[s.LL.CLASSIFICATION_UPDATE]);return l||o?"In review":"Approved"}},61099:function(e,t,i){var n=i(24246),r=i(13577),s=i(27378),l=i(12627),o=i(34929),d=i(26183),a=i(70675);t.Z=e=>{var t,i,c;let{resource:u}=e,[f,h]=(0,s.useState)(!1),{getDataCategoryDisplayName:x}=(0,o.Z)(),[j]=(0,a.NA)(),_=(null===(t=u.classifications)||void 0===t?void 0:t.length)?u.classifications[0].label:null,v=null!==(c=u.user_assigned_data_categories)&&void 0!==c?c:[],p=!_&&!(null==v?void 0:v.length),m=null===(i=u.sub_field_urns)||void 0===i?void 0:i.length,g=e=>{j({staged_resource_urn:u.urn,monitor_config_id:u.monitor_config_id,user_assigned_data_categories:[...v,e]})},I=e=>{var t;j({staged_resource_urn:u.urn,monitor_config_id:u.monitor_config_id,user_assigned_data_categories:null!==(t=null==v?void 0:v.filter(t=>t!==e))&&void 0!==t?t:[]})},A=!f&&!!v.length,C=!f&&!!_&&!v.length;return(0,n.jsxs)(d.Z,{"data-testid":"edit-category-cell",children:[p&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(r.j8w,{"data-testid":"no-classifications",color:"white",children:"None"}),!m&&(0,n.jsx)(r.j8w,{onClick:()=>h(!0),addable:!0,"data-testid":"taxonomy-add-btn","aria-label":"Add category"})]}),A&&(0,n.jsxs)(n.Fragment,{children:[v.map(e=>(0,n.jsx)(r.j8w,{"data-testid":"user-classification-".concat(e),color:"white",closable:!0,onClose:()=>I(e),closeButtonLabel:"Remove category",children:x(e)},e)),(0,n.jsx)(r.j8w,{onClick:()=>h(!0),addable:!0,"data-testid":"taxonomy-add-btn","aria-label":"Add category"})]}),C&&(0,n.jsxs)(r.j8w,{onClick:()=>h(!0),color:"white","data-testid":"classification-".concat(_),hasSparkle:!0,children:[x(_),(0,n.jsx)(r.PJP.I8b,{size:10})]}),f&&(0,n.jsx)(r.xuv,{className:"select-wrapper",position:"absolute",zIndex:10,top:"0",left:"0",width:"100%",height:"max",bgColor:"#fff",children:(0,n.jsx)(l.Z,{selectedTaxonomies:v,onChange:e=>{h(!1),g(e)},onBlur:()=>h(!1),open:!0})})]})}},7940:function(e,t,i){i.d(t,{G:function(){return r}});var n=i(73825);let r=e=>{var t,i,r;return e?e.resource_type?e.resource_type:(null===(t=e.schemas)||void 0===t?void 0:t.length)?n.D$.DATABASE:(null===(i=e.tables)||void 0===i?void 0:i.length)?n.D$.SCHEMA:(null===(r=e.fields)||void 0===r?void 0:r.length)?n.D$.TABLE:n.D$.FIELD:void 0}},98559:function(e,t){t.Z=e=>{let{name:t,urn:i,monitor_config_id:n,database_name:r,schema_name:s,table_name:l,top_level_field_name:o,top_level_field_urn:d}=e;if(!o)return t;let a=i.split(".");return d?i.replace("".concat(d).concat("."),""):([n,r,s,l,o].forEach(e=>{if(e){let t=a.indexOf(e);t>-1&&a.splice(t,1)}}),a.join("."))}},36168:function(e,t){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}},80356:function(e,t,i){var n=i(7940),r=i(36168),s=i(73825);t.Z=e=>(0,n.G)(e)!==s.D$.FIELD||(0,r.Z)(e)}}]);
1
+ "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6882],{18225:function(e,t,i){var n=i(24246),r=i(13577);t.Z=e=>{let{alignment:t="center",...i}=e;return(0,n.jsx)(r.kCb,{boxSize:"full",align:"center",justify:t,children:(0,n.jsx)(r.$jN,{color:"primary",...i})})}},77213:function(e,t,i){i.d(t,{Z:function(){return f}});var n=i(24246),r=i(13577),s=i(88038),l=i.n(s),o=i(86677);i(27378);var d=i(25980),a=i(90867),c=i(77830),u=()=>{let e=(0,o.useRouter)();return(0,n.jsx)(r.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)(r.xuv,{children:[(0,n.jsxs)(r.Kqy,{direction:{base:"column",sm:"row"},justifyContent:"space-between",children:[(0,n.jsx)(r.xvT,{fontWeight:"semibold",children:"Configure your storage and messaging provider"}),(0,n.jsx)(r.wpx,{onClick:()=>{e.push(c.fz)},children:"Configure"})]}),(0,n.jsxs)(r.xvT,{children:["Before Fides can process your privacy requests we need two simple steps to configure your storage and email client."," "]})]})})},f=e=>{let{children:t,title:i,padded:s=!0,mainProps:c}=e,f=(0,d.hz)(),h=(0,o.useRouter)(),x="/privacy-requests"===h.pathname||"/datastore-connection"===h.pathname,j=!(f.flags.privacyRequestsConfiguration&&x),{data:_}=(0,a.JE)(void 0,{skip:j}),{data:v}=(0,a.PW)(void 0,{skip:j}),p=f.flags.privacyRequestsConfiguration&&(!_||!v)&&x;return(0,n.jsxs)(r.kCb,{"data-testid":i,direction:"column",h:"100vh",children:[(0,n.jsxs)(l(),{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)(r.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",...c,children:[p?(0,n.jsx)(u,{}):null,t]})]})}},79789:function(e,t,i){i.d(t,{Hn:function(){return o},XU:function(){return l},Z5:function(){return d},aG:function(){return u},cB:function(){return s},hX:function(){return c},vQ:function(){return a}});var n=i(24246),r=i(13577);let s=e=>{let{text:t,...i}=e;return(0,n.jsx)(r.X6q,{fontSize:"sm",mt:4,mb:1,...i,children:t})},l=e=>{let{children:t}=e;return(0,n.jsx)(r.xvT,{fontSize:"14px",mb:4,children:t})},o=e=>{let{children:t,href:i}=e;return(0,n.jsx)(r.rUS,{href:i,textDecoration:"underline",isExternal:!0,children:t})},d=e=>{let{children:t}=e;return(0,n.jsx)(r.QI$,{fontSize:"14px",mb:4,children:t})},a=e=>{let{children:t}=e;return(0,n.jsx)(r.GSI,{fontSize:"14px",mb:4,ml:6,children:t})},c=e=>{let{children:t}=e;return(0,n.jsx)(r.EKh,{display:"block",whiteSpace:"pre",p:4,mb:4,overflowX:"scroll",children:t})},u=e=>{let{data:t}=e;return(0,n.jsxs)(r.iA_,{fontSize:"14px",children:[(0,n.jsx)(r.hrZ,{children:(0,n.jsxs)(r.Tr,{children:[(0,n.jsx)(r.Th,{children:"Permission"}),(0,n.jsx)(r.Th,{children:"Description"})]})}),(0,n.jsx)(r.p3B,{children:t.map(e=>(0,n.jsxs)(r.Tr,{children:[(0,n.jsx)(r.Td,{children:(0,n.jsx)(r.Vp9,{children:e.permission})}),(0,n.jsx)(r.Td,{children:e.description})]},e.permission))})]})}},12627:function(e,t,i){var n=i(24246),r=i(79283),s=i(34929);t.Z=e=>{let{selectedTaxonomies:t,showDisabled:i=!1,...l}=e,{getDataCategoryDisplayNameProps:o,getDataCategories:d}=(0,s.Z)(),a=(i?d():d().filter(e=>e.active)).filter(e=>!t.includes(e.fides_key)).map(e=>{let{name:t,primaryName:i}=o(e.fides_key);return{value:e.fides_key,name:t,primaryName:i,description:e.description||""}});return(0,n.jsx)(r.l,{options:a,...l})}},89200:function(e,t,i){var n=i(24246),r=i(47935),s=i(98559),l=i(80356);t.Z=e=>{let{resource:t}=e;return(0,n.jsx)(r.G3,{value:(0,s.Z)(t),fontWeight:(0,l.Z)(t)?"semibold":"normal"})}},5945:function(e,t,i){var n=i(24246),r=i(47935),s=i(8151);let l={[s.e.ATTENTION_REQUIRED]:"error",[s.e.APPROVED]:"success",[s.e.IN_REVIEW]:"warning",[s.e.CLASSIFYING]:"info",[s.e.NONE]:"marble"};t.Z=e=>{let{status:t}=e;return(0,n.jsx)(r.A4,{color:l[t],value:t})}},99763:function(e,t,i){var n=i(24246),r=i(13577),s=i(79789),l=i(8151),o=i(61099),d=i(7940),a=i(54682);t.Z=e=>{var t;let{resource:i,onClose:c}=e,u=(0,d.G)(i),f=(0,l.u)(i),h=(u===a.D$.FIELD||u===a.D$.TABLE)&&f===l.e.IN_REVIEW;return(0,n.jsxs)(r.dys,{isOpen:!!i,onClose:c,size:"md",children:[(0,n.jsx)(r.P1B,{}),(0,n.jsxs)(r.scA,{"data-testid":"resource-details",children:[(0,n.jsx)(r.OXI,{children:(null==i?void 0:i.name)||(null==i?void 0:i.urn)}),(0,n.jsx)(r.cCv,{}),(0,n.jsxs)(r.Ng0,{children:[(0,n.jsx)(s.cB,{text:"Title",mt:0}),(0,n.jsx)(s.XU,{children:null!==(t=null==i?void 0:i.name)&&void 0!==t?t:null==i?void 0:i.urn}),(null==i?void 0:i.description)&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(s.cB,{text:"Description"}),(0,n.jsx)(s.XU,{children:null==i?void 0:i.description})]}),h&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(s.cB,{text:"Data categories"}),(0,n.jsx)(o.Z,{resource:i})]})]})]})]})}},28976:function(e,t,i){var n=i(24246),r=i(13577);t.Z=e=>{let{onHideClick:t,onDetailClick:i}=e;return(0,n.jsxs)(r.v2r,{children:[(0,n.jsx)(r.j2t,{as:r.wpx,size:"small",type:"text",icon:(0,n.jsx)(r.nXP,{transform:"rotate(90deg)"}),className:"w-6 gap-0","data-testid":"actions-menu"}),(0,n.jsxs)(r.qyq,{children:[i&&(0,n.jsx)(r.sNh,{onClick:i,"data-testid":"view-resource-details",children:"View details"}),t&&(0,n.jsx)(r.sNh,{onClick:t,"data-testid":"hide-resource",children:"Hide"})]})]})}},8151:function(e,t,i){i.d(t,{e:function(){return r},u:function(){return l}});var n,r,s=i(54682);(n=r||(r={})).ATTENTION_REQUIRED="Attention required",n.IN_REVIEW="In review",n.APPROVED="Approved",n.CLASSIFYING="Classifying",n.NONE="None";let l=e=>{if(!e)return"Approved";let t=e.diff_status===s.LL.ADDITION||e.diff_status===s.LL.REMOVAL,i=e.child_diff_statuses&&(e.child_diff_statuses[s.LL.ADDITION]||e.child_diff_statuses[s.LL.REMOVAL]);if(t||i)return"Attention required";let n=e.diff_status===s.LL.CLASSIFICATION_QUEUED||e.diff_status===s.LL.CLASSIFYING,r=e.child_diff_statuses&&(e.child_diff_statuses[s.LL.CLASSIFICATION_QUEUED]||e.child_diff_statuses[s.LL.CLASSIFYING]);if(n||r)return"Classifying";let l=e.diff_status===s.LL.CLASSIFICATION_ADDITION||e.diff_status===s.LL.CLASSIFICATION_UPDATE,o=e.child_diff_statuses&&(e.child_diff_statuses[s.LL.CLASSIFICATION_ADDITION]||e.child_diff_statuses[s.LL.CLASSIFICATION_UPDATE]);return l||o?"In review":"Approved"}},61099:function(e,t,i){var n=i(24246),r=i(13577),s=i(27378),l=i(12627),o=i(34929),d=i(26183),a=i(70675);t.Z=e=>{var t,i,c;let{resource:u}=e,[f,h]=(0,s.useState)(!1),{getDataCategoryDisplayName:x}=(0,o.Z)(),[j]=(0,a.NA)(),_=(null===(t=u.classifications)||void 0===t?void 0:t.length)?u.classifications[0].label:null,v=null!==(c=u.user_assigned_data_categories)&&void 0!==c?c:[],p=!_&&!(null==v?void 0:v.length),m=null===(i=u.sub_field_urns)||void 0===i?void 0:i.length,g=e=>{j({staged_resource_urn:u.urn,monitor_config_id:u.monitor_config_id,user_assigned_data_categories:[...v,e]})},I=e=>{var t;j({staged_resource_urn:u.urn,monitor_config_id:u.monitor_config_id,user_assigned_data_categories:null!==(t=null==v?void 0:v.filter(t=>t!==e))&&void 0!==t?t:[]})},A=!f&&!!v.length,C=!f&&!!_&&!v.length;return(0,n.jsxs)(d.Z,{"data-testid":"edit-category-cell",children:[p&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(r.j8w,{"data-testid":"no-classifications",color:"white",children:"None"}),!m&&(0,n.jsx)(r.j8w,{onClick:()=>h(!0),addable:!0,"data-testid":"taxonomy-add-btn","aria-label":"Add category"})]}),A&&(0,n.jsxs)(n.Fragment,{children:[v.map(e=>(0,n.jsx)(r.j8w,{"data-testid":"user-classification-".concat(e),color:"white",closable:!0,onClose:()=>I(e),closeButtonLabel:"Remove category",children:x(e)},e)),(0,n.jsx)(r.j8w,{onClick:()=>h(!0),addable:!0,"data-testid":"taxonomy-add-btn","aria-label":"Add category"})]}),C&&(0,n.jsxs)(r.j8w,{onClick:()=>h(!0),color:"white","data-testid":"classification-".concat(_),hasSparkle:!0,children:[x(_),(0,n.jsx)(r.PJP.I8b,{size:10})]}),f&&(0,n.jsx)(r.xuv,{className:"select-wrapper",position:"absolute",zIndex:10,top:"0",left:"0",width:"100%",height:"max",bgColor:"#fff",children:(0,n.jsx)(l.Z,{selectedTaxonomies:v,onChange:e=>{h(!1),g(e)},onBlur:()=>h(!1),open:!0})})]})}},7940:function(e,t,i){i.d(t,{G:function(){return r}});var n=i(54682);let r=e=>{var t,i,r;return e?e.resource_type?e.resource_type:(null===(t=e.schemas)||void 0===t?void 0:t.length)?n.D$.DATABASE:(null===(i=e.tables)||void 0===i?void 0:i.length)?n.D$.SCHEMA:(null===(r=e.fields)||void 0===r?void 0:r.length)?n.D$.TABLE:n.D$.FIELD:void 0}},98559:function(e,t){t.Z=e=>{let{name:t,urn:i,monitor_config_id:n,database_name:r,schema_name:s,table_name:l,top_level_field_name:o,top_level_field_urn:d}=e;if(!o)return t;let a=i.split(".");return d?i.replace("".concat(d).concat("."),""):([n,r,s,l,o].forEach(e=>{if(e){let t=a.indexOf(e);t>-1&&a.splice(t,1)}}),a.join("."))}},36168:function(e,t){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}},80356:function(e,t,i){var n=i(7940),r=i(36168),s=i(54682);t.Z=e=>(0,n.G)(e)!==s.D$.FIELD||(0,r.Z)(e)}}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6954],{14441:function(e,t,n){var a,i,l=1/0,s=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,r=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,o="\ud800-\udfff",d="\\u2700-\\u27bf",c="a-z\\xdf-\\xf6\\xf8-\\xff",u="A-Z\\xc0-\\xd6\\xd8-\\xde",x="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",p="['’]",g="["+x+"]",f="[\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0]",m="["+c+"]",h="[^"+o+x+"\\d+"+d+c+u+"]",v="(?:\ud83c[\udde6-\uddff]){2}",b="[\ud800-\udbff][\udc00-\udfff]",j="["+u+"]",y="(?:"+m+"|"+h+")",_="(?:"+p+"(?:d|ll|m|re|s|t|ve))?",C="(?:"+p+"(?:D|LL|M|RE|S|T|VE))?",k="(?:"+f+"|\ud83c[\udffb-\udfff])?",N="[\\ufe0e\\ufe0f]?",T="(?:\\u200d(?:"+["[^"+o+"]",v,b].join("|")+")"+N+k+")*",E="(?:"+["["+d+"]",v,b].join("|")+")"+(N+k+T),O=RegExp(p,"g"),w=RegExp(f,"g"),A=RegExp([j+"?"+m+"+"+_+"(?="+[g,j,"$"].join("|")+")","(?:"+j+"|"+h+")+"+C+"(?="+[g,j+y,"$"].join("|")+")",j+"?"+y+"+"+_,j+"+"+C,"\\d+",E].join("|"),"g"),S=/[a-z][A-Z]|[A-Z]{2,}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,I="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,z="object"==typeof self&&self&&self.Object===Object&&self,Z=I||z||Function("return this")(),L=(a={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"ss"},function(e){return null==a?void 0:a[e]}),R=Object.prototype.toString,P=Z.Symbol,U=P?P.prototype:void 0,q=U?U.toString:void 0;function J(e){return null==e?"":function(e){if("string"==typeof e)return e;if("symbol"==typeof(t=e)||t&&"object"==typeof t&&"[object Symbol]"==R.call(t))return q?q.call(e):"";var t,n=e+"";return"0"==n&&1/e==-l?"-0":n}(e)}var F=(i=function(e,t,n){return e+(n?"_":"")+t.toLowerCase()},function(e){var t;return function(e,t,n,a){for(var i=-1,l=e?e.length:0;++i<l;)n=t(n,e[i],i,e);return n}(function(e,t,n){if(e=J(e),void 0===t){var a;return(a=e,S.test(a))?e.match(A)||[]:e.match(s)||[]}return e.match(t)||[]}(((t=J(t=e))&&t.replace(r,L).replace(w,"")).replace(O,"")),i,"")});e.exports=F},58754:function(e,t,n){"use strict";var a=n(24246),i=n(13577),l=n(70788);t.Z=e=>{let{heading:t,breadcrumbItems:n,isSticky:s=!0,children:r,rightContent:o,style:d,...c}=e;return(0,a.jsxs)("div",{...c,style:s?{position:"sticky",top:"-24px",paddingTop:"24px",paddingBottom:"24px",paddingLeft:"40px",marginLeft:"-40px",paddingRight:"40px",marginRight:"-40px",marginTop:"-24px",left:0,zIndex:20,backgroundColor:"white",...d}:{paddingBottom:"24px",...d},children:[(0,a.jsxs)(i.jqI,{justify:"space-between",children:["string"==typeof t?(0,a.jsx)(i.lQT,{className:n||r?"pb-4":void 0,level:1,"data-testid":"page-heading",children:t}):t,o&&(0,a.jsx)("div",{"data-testid":"page-header-right-content",children:o})]}),!!n&&(0,a.jsx)(l.m,{className:r?"pb-4":void 0,items:n,"data-testid":"page-breadcrumb"}),r]})}},10342:function(e,t,n){"use strict";var a=n(24246),i=n(13577),l=n(46238);t.Z=e=>{let{title:t,tooltip:n,children:s,...r}=e;return(0,a.jsxs)(i.xuv,{borderRadius:"md",border:"1px solid",borderColor:"gray.200",...r,children:[(0,a.jsxs)(i.X6q,{as:"h3",fontSize:"sm",fontWeight:"semibold",color:"gray.700",py:4,px:6,backgroundColor:"gray.50",borderRadius:"md",textAlign:"left",children:[t,n?(0,a.jsx)(i.xvT,{as:"span",mx:1,children:(0,a.jsx)(l.b,{label:n})}):void 0]}),(0,a.jsx)(i.Kqy,{p:6,spacing:6,children:s})]})}},70788:function(e,t,n){"use strict";n.d(t,{m:function(){return d}});var a=n(24246),i=n(13577),l=n(79894),s=n.n(l),r=n(27378);let{Text:o}=i.AntTypography,d=e=>{let{items:t,...n}=e,l=(0,r.useMemo)(()=>null==t?void 0:t.map((e,n)=>{let l=n===t.length-1,r={...e},d=r.onClick&&!r.href;return("string"==typeof r.title&&(r.title=(0,a.jsx)(o,{style:{color:"inherit",maxWidth:l?void 0:400},ellipsis:!l,children:r.title})),d)?r.title=(0,a.jsx)(i.wpx,{type:"text",size:"small",icon:r.icon,onClick:r.onClick,className:"ant-breadcrumb-link -mt-px px-1 text-inherit",children:r.title}):(r.icon&&(r.title=(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("span",{className:"anticon align-text-bottom",children:r.icon}),r.title]})),r.href&&r.title&&(r.title=(0,a.jsx)(s(),{href:r.href,className:"ant-breadcrumb-link",children:r.title}),delete r.href)),r}),[t]);return(0,a.jsx)(i.zrq,{items:l,...n})}},34391:function(e,t,n){"use strict";n.d(t,{Z:function(){return G}});var a=n(24246),i=n(51472),l=n(13577),s=n(34090),r=n(79894),o=n.n(r),d=n(86677),c=n(27378),u=n(16134),x=n(10342),p=n(40324),g=n(812),f=n(46238),m=n(77830),h=n(8411),v=n(46628),b=n(28079),j=n(7426),y=n(34334),_=n(16277);let C=e=>{let{index:t}=e;return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(p.j0,{autoFocus:0!==t,name:"translations.".concat(t,".title"),label:"Title of privacy notice as displayed to user",variant:"stacked"}),(0,a.jsx)(p.Ks,{name:"translations.".concat(t,".description"),label:"Privacy notice displayed to the user",variant:"stacked"})]})},k=e=>{let{languageOptions:t,handleCreateLanguage:n}=e,[i,s]=(0,c.useState)(!1);return i?(0,a.jsx)(l.WPr,{autoFocus:!0,defaultOpen:!0,allowClear:!0,placeholder:"Select a language...",options:t,onChange:e=>{n(e),s(!1)},"data-testid":"select-language",className:"w-full"}):(0,a.jsx)(l.wpx,{block:!0,icon:(0,a.jsx)(l.PJP.mm_,{}),iconPosition:"end",onClick:()=>s(!0),"data-testid":"add-language-btn",className:"mb-1",children:"Add"})},N=e=>{let{index:t,name:n,isOOB:i}=e;return(0,a.jsxs)(l.kCb,{direction:"column",gap:6,children:[(0,a.jsxs)(l.X6q,{size:"sm",children:["Edit ",n," translation"]}),i?(0,a.jsx)(_.f,{languageName:n}):null,(0,a.jsx)(C,{index:t})]})};var T=e=>{var t,n,i,r;let{availableTranslations:o}=e,{values:d,setFieldValue:p}=(0,s.u6)(),[g,f]=(0,c.useState)(!1),[m,h]=(0,c.useState)(null!==(r=null===(n=d.translations)||void 0===n?void 0:null===(t=n[0])||void 0===t?void 0:t.language)&&void 0!==r?r:""),{data:v}=(0,j.tB)({api_set:!1}),b=null==v?void 0:null===(i=v.plus_consent_settings)||void 0===i?void 0:i.enable_translations,_=(0,u.C)(y.Zp),T=(0,u.C)(y.G1);(0,y.Ah)({page:_,size:T});let E=(0,u.C)(y.fJ).slice().sort((e,t)=>e.name.localeCompare(t.name)),O=E.filter(e=>{var t;return null===(t=d.translations)||void 0===t?void 0:t.every(t=>t.language!==e.id)}).map(e=>({label:e.name,value:e.id})),w=e=>{h(e),f(!1)},A=e=>{let t=null==o?void 0:o.find(t=>t.language===e);f(!!t);let n=null!=t?t:{language:e,title:"",description:""};h(e),p("translations",[...d.translations,n])},S=e=>{var t,n;let a=d.translations?d.translations.slice().filter(t=>t.language!==e):[],i=m===e?null!==(n=null===(t=a[a.length-1])||void 0===t?void 0:t.language)&&void 0!==n?n:"":m;p("translations",a),h(i)},I=e=>{var t,n;return null!==(n=null===(t=E.find(t=>t.id===e))||void 0===t?void 0:t.name)&&void 0!==n?n:e};return b?(0,a.jsx)(x.Z,{title:"Localizations",children:(0,a.jsx)(s.F2,{name:"translations",render:()=>(0,a.jsx)(l.A5g,{activeKey:m,onChange:w,type:"editable-card",tabBarExtraContent:!!O.length&&(0,a.jsx)(k,{languageOptions:O,handleCreateLanguage:A}),hideAdd:!0,onEdit:(e,t)=>{"remove"===t&&S(e)},items:d.translations.map(e=>({key:e.language,label:I(e.language),children:(0,a.jsx)(N,{index:d.translations.findIndex(t=>t.language===e.language),name:I(e.language),isOOB:g}),closable:d.translations.length>1}))})})}):(0,a.jsx)(x.Z,{title:"Notice text",children:(0,a.jsx)(C,{index:0})})},E=n(97181),O=n(55484),w=n(16394),A=n(65063),S=n(54682);let I=(0,w.Jt)(A.ye),z=(0,w.Jt)(A.B8),Z=[{language:S.eU.EN,title:"",description:""}],L={name:"",consent_mechanism:S.J7.OPT_IN,data_uses:[],enforcement_level:S.QT.FRONTEND,disabled:!0,translations:Z,children:[]},R=e=>{var t,n,a,i;return{name:null!==(t=e.name)&&void 0!==t?t:L.name,consent_mechanism:null!==(n=e.consent_mechanism)&&void 0!==n?n:L.consent_mechanism,data_uses:null!==(a=e.data_uses)&&void 0!==a?a:L.data_uses,enforcement_level:null!==(i=e.enforcement_level)&&void 0!==i?i:L.enforcement_level,notice_key:e.notice_key,disabled:e.disabled,has_gpc_flag:e.has_gpc_flag,id:e.id,internal_description:e.internal_description,translations:e.translations?e.translations.map(e=>{var t;let{privacy_notice_history_id:n,...a}=e;return{...a,title:null!==(t=e.title)&&void 0!==t?t:""}}):Z,children:e.children}},P=O.Ry().shape({name:O.Z_().required().label("Title"),consent_mechanism:O.Z_().required().label("Consent mechanism")});var U=n(14441),q=n.n(U),J=e=>{let{isEditing:t}=e,{values:n,setFieldValue:i}=(0,s.u6)();return(0,c.useEffect)(()=>{t||i("notice_key",q()(n.name))},[n.name,t,i]),(0,a.jsx)(p.j0,{name:"notice_key",label:"Key used in Fides cookie",variant:"stacked"})},F=n(71922);let{Text:B}=l.AntTypography,D=e=>{let{regions:t,label:n,tooltip:i}=e;return(0,a.jsxs)(l.gCW,{align:"start",children:[(0,a.jsxs)(l.kCb,{align:"start",children:[n?(0,a.jsx)(l.lXp,{htmlFor:"regions",fontSize:"xs",my:0,mr:1,children:n}):null,(0,a.jsx)(f.b,{label:i})]}),(0,a.jsx)(l.xuv,{w:"100%","data-testid":"notice-locations",children:(0,a.jsxs)(l.vyj,{size:[0,2],wrap:!0,children:[null==t?void 0:t.map(e=>(0,a.jsx)(l.j8w,{children:h.Z8[e]},e)),!(null==t?void 0:t.length)&&(0,a.jsxs)(B,{italic:!0,children:["No locations assigned. Navigate to the"," ",(0,a.jsx)(o(),{href:m.w0,children:"experiences view"})," ","configure."]})]})})]})};var G=e=>{let{privacyNotice:t,availableTranslations:n}=e,r=(0,d.useRouter)(),o=(0,l.pmc)(),f=t?R(t):L;(0,b.fd)();let h=(0,u.C)(b.qv),j=(0,u.C)(F.sX),y=(0,u.C)(F.Zp),_=(0,u.C)(F.G1);(0,F.J6)({page:y,size:_});let C=e=>{var t;let{id:n}=e,a=j.find(e=>e.id===n);return null!==(t=null==a?void 0:a.name)&&void 0!==t?t:n},k=j.some(e=>{var n;return null===(n=e.children)||void 0===n?void 0:n.some(e=>e.id===(null==t?void 0:t.id))}),[N]=(0,F.vL)(),[O]=(0,F.p4)(),w=(0,c.useMemo)(()=>!!t,[t]),A=async e=>{let n;if(w){var a,i;let l={...e,id:t.id,translations:null!==(a=e.translations)&&void 0!==a?a:[],children:null!==(i=e.children)&&void 0!==i?i:[]};n=await N(l)}else n=await O(e);(0,g.D4)(n)?o((0,v.Vo)((0,g.e$)(n.error))):(o((0,v.t5)("Privacy notice ".concat(w?"updated":"created"))),w||r.push(m.IT))};return(0,a.jsx)(s.J9,{initialValues:f,enableReinitialize:!0,onSubmit:A,validationSchema:P,children:e=>{var o,d;let{values:c,setFieldValue:u,dirty:g,isValid:f,isSubmitting:m}=e;return(0,a.jsx)(s.l0,{children:(0,a.jsxs)(l.Kqy,{spacing:10,children:[(0,a.jsxs)(l.Kqy,{spacing:6,children:[(0,a.jsxs)(x.Z,{title:"Privacy notice details",children:[(0,a.jsx)(p.j0,{label:"Notice title",name:"name",isRequired:!0,variant:"stacked"}),(0,a.jsx)(E.d,{name:"consent_mechanism",label:"Consent mechanism",options:I,isRequired:!0,layout:"stacked"}),(0,a.jsx)(J,{isEditing:w}),(0,a.jsx)(p.w8,{name:"has_gpc_flag",label:"Configure whether this notice conforms to the Global Privacy Control",variant:"stacked"}),(0,a.jsx)(D,{regions:null==t?void 0:t.configured_regions,label:"Locations where privacy notice is shown to visitors",tooltip:"To configure locations, change the privacy experiences where this notice is shown"}),(0,a.jsx)(l.izJ,{}),!k&&(0,a.jsx)(i.Z,{label:"Child notices",addButtonLabel:"Add notice children",allItems:j.map(e=>({id:e.id,name:e.name})),values:null!==(d=null===(o=c.children)||void 0===o?void 0:o.map(e=>({id:e.id,name:e.name})))&&void 0!==d?d:[],setValues:e=>u("children",e),idField:"id",getItemLabel:C,draggable:!0,maxHeight:100,baseTestId:"children"}),(0,a.jsx)(E.d,{name:"data_uses",label:"Data use",options:h,mode:"multiple",layout:"stacked"}),(0,a.jsx)(E.d,{name:"enforcement_level",label:"Enforcement level",options:z,isRequired:!0,layout:"stacked"})]}),(0,a.jsx)(T,{availableTranslations:n})]}),(0,a.jsxs)("div",{className:"flex gap-2",children:[(0,a.jsx)(l.wpx,{onClick:()=>{r.back()},children:"Cancel"}),(0,a.jsx)(l.wpx,{htmlType:"submit",type:"primary",disabled:m||!g||!f,loading:m,"data-testid":"save-btn",children:"Save"})]})]})})}})}},65063:function(e,t,n){"use strict";n.d(t,{B8:function(){return l},Ep:function(){return s},ye:function(){return i}});var a=n(54682);let i=new Map([[a.J7.OPT_IN,"Opt in"],[a.J7.NOTICE_ONLY,"Notice only"],[a.J7.OPT_OUT,"Opt out"]]),l=new Map([[a.QT.SYSTEM_WIDE,"System wide"],[a.QT.FRONTEND,"Front end"],[a.QT.NOT_APPLICABLE,"Not applicable"]]),s=new Map([["gpp_us_national","GPP US National"],["gpp_us_state","GPP US State"]])}}]);
@@ -1 +1 @@
1
- "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7476],{95492:function(e,n,t){t.d(n,{l:function(){return i}});var s=t(24246);let i=(0,t(13577).IUT)({displayName:"TrashCanSolidIcon",viewBox:"0 0 12 15",path:(0,s.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"})})},77213:function(e,n,t){t.d(n,{Z:function(){return p}});var s=t(24246),i=t(13577),r=t(88038),a=t.n(r),l=t(86677);t(27378);var o=t(25980),c=t(90867),d=t(77830),u=()=>{let e=(0,l.useRouter)();return(0,s.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,s.jsxs)(i.xuv,{children:[(0,s.jsxs)(i.Kqy,{direction:{base:"column",sm:"row"},justifyContent:"space-between",children:[(0,s.jsx)(i.xvT,{fontWeight:"semibold",children:"Configure your storage and messaging provider"}),(0,s.jsx)(i.wpx,{onClick:()=>{e.push(d.fz)},children:"Configure"})]}),(0,s.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:n,title:t,padded:r=!0,mainProps:d}=e,p=(0,o.hz)(),m=(0,l.useRouter)(),h="/privacy-requests"===m.pathname||"/datastore-connection"===m.pathname,x=!(p.flags.privacyRequestsConfiguration&&h),{data:f}=(0,c.JE)(void 0,{skip:x}),{data:v}=(0,c.PW)(void 0,{skip:x}),b=p.flags.privacyRequestsConfiguration&&(!f||!v)&&h;return(0,s.jsxs)(i.kCb,{"data-testid":t,direction:"column",h:"100vh",children:[(0,s.jsxs)(a(),{children:[(0,s.jsxs)("title",{children:["Fides Admin UI - ",t]}),(0,s.jsx)("meta",{name:"description",content:"Privacy Engineering Platform"}),(0,s.jsx)("link",{rel:"icon",href:"/favicon.ico"})]}),(0,s.jsxs)(i.kCb,{as:"main",direction:"column",py:r?6:0,px:r?10:0,h:r?"calc(100% - 48px)":"full",flex:1,minWidth:0,overflow:"auto",...d,children:[b?(0,s.jsx)(u,{}):null,n]})]})}},58754:function(e,n,t){var s=t(24246),i=t(13577),r=t(70788);n.Z=e=>{let{heading:n,breadcrumbItems:t,isSticky:a=!0,children:l,rightContent:o,style:c,...d}=e;return(0,s.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,s.jsxs)(i.jqI,{justify:"space-between",children:["string"==typeof n?(0,s.jsx)(i.lQT,{className:t||l?"pb-4":void 0,level:1,"data-testid":"page-heading",children:n}):n,o&&(0,s.jsx)("div",{"data-testid":"page-header-right-content",children:o})]}),!!t&&(0,s.jsx)(r.m,{className:l?"pb-4":void 0,items:t,"data-testid":"page-breadcrumb"}),l]})}},19904:function(e,n,t){t.d(n,{Tg:function(){return a}});var s=t(24246),i=t(16134),r=t(31793);let a=e=>(0,i.C)(r.uu).filter(n=>e.includes(n)).length>0;n.ZP=e=>{let{scopes:n,children:t}=e;return a(n)?(0,s.jsx)(s.Fragment,{children:t}):null}},70788:function(e,n,t){t.d(n,{m:function(){return c}});var s=t(24246),i=t(13577),r=t(79894),a=t.n(r),l=t(27378);let{Text:o}=i.AntTypography,c=e=>{let{items:n,...t}=e,r=(0,l.useMemo)(()=>null==n?void 0:n.map((e,t)=>{let r=t===n.length-1,l={...e},c=l.onClick&&!l.href;return("string"==typeof l.title&&(l.title=(0,s.jsx)(o,{style:{color:"inherit",maxWidth:r?void 0:400},ellipsis:!r,children:l.title})),c)?l.title=(0,s.jsx)(i.wpx,{type:"text",size:"small",icon:l.icon,onClick:l.onClick,className:"ant-breadcrumb-link -mt-px px-1 text-inherit",children:l.title}):(l.icon&&(l.title=(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("span",{className:"anticon align-text-bottom",children:l.icon}),l.title]})),l.href&&l.title&&(l.title=(0,s.jsx)(a(),{href:l.href,className:"ant-breadcrumb-link",children:l.title}),delete l.href)),l}),[n]);return(0,s.jsx)(i.zrq,{items:r,...t})}},61038:function(e,n,t){var s=t(24246),i=t(13577),r=t(34090),a=t(86677);t(27378);var l=t(55484),o=t(16134),c=t(40324),d=t(812),u=t(77830),p=t(46628),m=t(65497);let h={username:"",usernameConfirmation:""},x=e=>{let{id:n,username:t,onClose:s}=e,r=(0,i.pmc)(),c=(0,a.useRouter)(),h=(0,o.T)(),[x]=(0,m.I1)();return{handleDeleteUser:async()=>{let e=await x(n);(0,d.D4)(e)?r((0,p.Vo)((0,d.e$)(e.error))):(r((0,p.t5)("Successfully deleted user")),s()),h((0,m.Vv)(void 0)),c.push(u.e3)},validationSchema:l.Ry().shape({usernameConfirmation:l.Z_().required().oneOf([t],"Confirmation input must match the username").label("Username confirmation")})}};n.Z=e=>{let{user:n,...t}=e,{isOpen:a,onClose:l}=t,{handleDeleteUser:o,validationSchema:d}=x({id:n.id,username:n.username,onClose:l});return(0,s.jsxs)(i.u_l,{isCentered:!0,isOpen:a,onClose:l,children:[(0,s.jsx)(i.ZAr,{}),(0,s.jsx)(i.hzk,{"data-testid":"delete-user-modal",children:(0,s.jsx)(r.J9,{initialValues:h,validationSchema:d,onSubmit:o,children:e=>{let{isSubmitting:t,dirty:a,isValid:o}=e;return(0,s.jsxs)(r.l0,{children:[(0,s.jsx)(i.xBx,{children:"Delete User"}),(0,s.jsx)(i.olH,{}),(0,s.jsxs)(i.fef,{children:[(0,s.jsxs)(i.bZj,{status:"warning",overflow:"visible",colorScheme:"warn",marginBottom:4,children:[(0,s.jsx)(i.zMQ,{}),(0,s.jsxs)(i.XaZ,{children:[(0,s.jsx)(i.xvT,{as:"span",mb:2,children:"You are about to delete the user\xa0"}),(0,s.jsxs)(i.xvT,{as:"span",mb:2,fontStyle:"italic",fontWeight:"semibold",children:[n.username,"."]}),(0,s.jsx)(i.xvT,{mb:2,children:"This action cannot be undone. To confirm, please enter the user’s username below."})]})]}),(0,s.jsx)(i.Kqy,{direction:"column",spacing:4,children:(0,s.jsx)(c.j0,{name:"usernameConfirmation",label:"Confirm username",placeholder:"Type the username to delete"})})]}),(0,s.jsx)(i.mzw,{children:(0,s.jsxs)("div",{className:"flex w-full gap-2",children:[(0,s.jsx)(i.wpx,{onClick:l,className:"w-1/2",children:"Cancel"}),(0,s.jsx)(i.wpx,{type:"primary",disabled:!a||!o,loading:t,htmlType:"submit",className:"w-1/2","data-testid":"submit-btn",children:"Delete User"})]})})]})}})})]})}},91437:function(e,n,t){t.d(n,{K:function(){return i}});var s=t(73825);let i=[{label:"Owner",permissions_label:"Owner",roleKey:s.A7.OWNER,description:"Owners have view and edit access to the whole organization and can create new users"},{label:"Contributor",permissions_label:"Contributor",roleKey:s.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:s.A7.VIEWER,description:"Viewers have view access to the Data Map and all systems"},{label:"Viewer & Approver",permissions_label:"Viewer & Approver",roleKey:s.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:s.A7.APPROVER,description:"Approvers can only access the Privacy Requests portal to manage requests"},{label:"Internal respondent",permissions_label:"Internal respondent",roleKey:s.A7.RESPONDENT,description:"Internal respondents have limited access and can only view and complete manual DSR tasks assigned to them"},{label:"External respondent",permissions_label:"External respondent",roleKey:s.A7.EXTERNAL_RESPONDENT,description:"External respondents can only access the external task portal to complete manual DSR tasks assigned to them"}]}}]);
1
+ "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7476],{95492:function(e,n,t){t.d(n,{l:function(){return i}});var s=t(24246);let i=(0,t(13577).IUT)({displayName:"TrashCanSolidIcon",viewBox:"0 0 12 15",path:(0,s.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"})})},77213:function(e,n,t){t.d(n,{Z:function(){return p}});var s=t(24246),i=t(13577),r=t(88038),a=t.n(r),l=t(86677);t(27378);var o=t(25980),c=t(90867),d=t(77830),u=()=>{let e=(0,l.useRouter)();return(0,s.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,s.jsxs)(i.xuv,{children:[(0,s.jsxs)(i.Kqy,{direction:{base:"column",sm:"row"},justifyContent:"space-between",children:[(0,s.jsx)(i.xvT,{fontWeight:"semibold",children:"Configure your storage and messaging provider"}),(0,s.jsx)(i.wpx,{onClick:()=>{e.push(d.fz)},children:"Configure"})]}),(0,s.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:n,title:t,padded:r=!0,mainProps:d}=e,p=(0,o.hz)(),m=(0,l.useRouter)(),h="/privacy-requests"===m.pathname||"/datastore-connection"===m.pathname,x=!(p.flags.privacyRequestsConfiguration&&h),{data:f}=(0,c.JE)(void 0,{skip:x}),{data:v}=(0,c.PW)(void 0,{skip:x}),b=p.flags.privacyRequestsConfiguration&&(!f||!v)&&h;return(0,s.jsxs)(i.kCb,{"data-testid":t,direction:"column",h:"100vh",children:[(0,s.jsxs)(a(),{children:[(0,s.jsxs)("title",{children:["Fides Admin UI - ",t]}),(0,s.jsx)("meta",{name:"description",content:"Privacy Engineering Platform"}),(0,s.jsx)("link",{rel:"icon",href:"/favicon.ico"})]}),(0,s.jsxs)(i.kCb,{as:"main",direction:"column",py:r?6:0,px:r?10:0,h:r?"calc(100% - 48px)":"full",flex:1,minWidth:0,overflow:"auto",...d,children:[b?(0,s.jsx)(u,{}):null,n]})]})}},58754:function(e,n,t){var s=t(24246),i=t(13577),r=t(70788);n.Z=e=>{let{heading:n,breadcrumbItems:t,isSticky:a=!0,children:l,rightContent:o,style:c,...d}=e;return(0,s.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,s.jsxs)(i.jqI,{justify:"space-between",children:["string"==typeof n?(0,s.jsx)(i.lQT,{className:t||l?"pb-4":void 0,level:1,"data-testid":"page-heading",children:n}):n,o&&(0,s.jsx)("div",{"data-testid":"page-header-right-content",children:o})]}),!!t&&(0,s.jsx)(r.m,{className:l?"pb-4":void 0,items:t,"data-testid":"page-breadcrumb"}),l]})}},19904:function(e,n,t){t.d(n,{Tg:function(){return a}});var s=t(24246),i=t(16134),r=t(31793);let a=e=>(0,i.C)(r.uu).filter(n=>e.includes(n)).length>0;n.ZP=e=>{let{scopes:n,children:t}=e;return a(n)?(0,s.jsx)(s.Fragment,{children:t}):null}},70788:function(e,n,t){t.d(n,{m:function(){return c}});var s=t(24246),i=t(13577),r=t(79894),a=t.n(r),l=t(27378);let{Text:o}=i.AntTypography,c=e=>{let{items:n,...t}=e,r=(0,l.useMemo)(()=>null==n?void 0:n.map((e,t)=>{let r=t===n.length-1,l={...e},c=l.onClick&&!l.href;return("string"==typeof l.title&&(l.title=(0,s.jsx)(o,{style:{color:"inherit",maxWidth:r?void 0:400},ellipsis:!r,children:l.title})),c)?l.title=(0,s.jsx)(i.wpx,{type:"text",size:"small",icon:l.icon,onClick:l.onClick,className:"ant-breadcrumb-link -mt-px px-1 text-inherit",children:l.title}):(l.icon&&(l.title=(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("span",{className:"anticon align-text-bottom",children:l.icon}),l.title]})),l.href&&l.title&&(l.title=(0,s.jsx)(a(),{href:l.href,className:"ant-breadcrumb-link",children:l.title}),delete l.href)),l}),[n]);return(0,s.jsx)(i.zrq,{items:r,...t})}},61038:function(e,n,t){var s=t(24246),i=t(13577),r=t(34090),a=t(86677);t(27378);var l=t(55484),o=t(16134),c=t(40324),d=t(812),u=t(77830),p=t(46628),m=t(65497);let h={username:"",usernameConfirmation:""},x=e=>{let{id:n,username:t,onClose:s}=e,r=(0,i.pmc)(),c=(0,a.useRouter)(),h=(0,o.T)(),[x]=(0,m.I1)();return{handleDeleteUser:async()=>{let e=await x(n);(0,d.D4)(e)?r((0,p.Vo)((0,d.e$)(e.error))):(r((0,p.t5)("Successfully deleted user")),s()),h((0,m.Vv)(void 0)),c.push(u.e3)},validationSchema:l.Ry().shape({usernameConfirmation:l.Z_().required().oneOf([t],"Confirmation input must match the username").label("Username confirmation")})}};n.Z=e=>{let{user:n,...t}=e,{isOpen:a,onClose:l}=t,{handleDeleteUser:o,validationSchema:d}=x({id:n.id,username:n.username,onClose:l});return(0,s.jsxs)(i.u_l,{isCentered:!0,isOpen:a,onClose:l,children:[(0,s.jsx)(i.ZAr,{}),(0,s.jsx)(i.hzk,{"data-testid":"delete-user-modal",children:(0,s.jsx)(r.J9,{initialValues:h,validationSchema:d,onSubmit:o,children:e=>{let{isSubmitting:t,dirty:a,isValid:o}=e;return(0,s.jsxs)(r.l0,{children:[(0,s.jsx)(i.xBx,{children:"Delete User"}),(0,s.jsx)(i.olH,{}),(0,s.jsxs)(i.fef,{children:[(0,s.jsxs)(i.bZj,{status:"warning",overflow:"visible",colorScheme:"warn",marginBottom:4,children:[(0,s.jsx)(i.zMQ,{}),(0,s.jsxs)(i.XaZ,{children:[(0,s.jsx)(i.xvT,{as:"span",mb:2,children:"You are about to delete the user\xa0"}),(0,s.jsxs)(i.xvT,{as:"span",mb:2,fontStyle:"italic",fontWeight:"semibold",children:[n.username,"."]}),(0,s.jsx)(i.xvT,{mb:2,children:"This action cannot be undone. To confirm, please enter the user’s username below."})]})]}),(0,s.jsx)(i.Kqy,{direction:"column",spacing:4,children:(0,s.jsx)(c.j0,{name:"usernameConfirmation",label:"Confirm username",placeholder:"Type the username to delete"})})]}),(0,s.jsx)(i.mzw,{children:(0,s.jsxs)("div",{className:"flex w-full gap-2",children:[(0,s.jsx)(i.wpx,{onClick:l,className:"w-1/2",children:"Cancel"}),(0,s.jsx)(i.wpx,{type:"primary",disabled:!a||!o,loading:t,htmlType:"submit",className:"w-1/2","data-testid":"submit-btn",children:"Delete User"})]})})]})}})})]})}},91437:function(e,n,t){t.d(n,{K:function(){return i}});var s=t(54682);let i=[{label:"Owner",permissions_label:"Owner",roleKey:s.A7.OWNER,description:"Owners have view and edit access to the whole organization and can create new users"},{label:"Contributor",permissions_label:"Contributor",roleKey:s.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:s.A7.VIEWER,description:"Viewers have view access to the Data Map and all systems"},{label:"Viewer & Approver",permissions_label:"Viewer & Approver",roleKey:s.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:s.A7.APPROVER,description:"Approvers can only access the Privacy Requests portal to manage requests"},{label:"Internal respondent",permissions_label:"Internal respondent",roleKey:s.A7.RESPONDENT,description:"Internal respondents have limited access and can only view and complete manual DSR tasks assigned to them"},{label:"External respondent",permissions_label:"External respondent",roleKey:s.A7.EXTERNAL_RESPONDENT,description:"External respondents can only access the external task portal to complete manual DSR tasks assigned to them"}]}}]);
@@ -1 +1 @@
1
- "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[787],{77213:function(e,t,n){n.d(t,{Z:function(){return p}});var r=n(24246),i=n(13577),l=n(88038),o=n.n(l),a=n(86677);n(27378);var s=n(25980),d=n(90867),c=n(77830),u=()=>{let e=(0,a.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(c.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:l=!0,mainProps:c}=e,p=(0,s.hz)(),x=(0,a.useRouter)(),m="/privacy-requests"===x.pathname||"/datastore-connection"===x.pathname,h=!(p.flags.privacyRequestsConfiguration&&m),{data:f}=(0,d.JE)(void 0,{skip:h}),{data:v}=(0,d.PW)(void 0,{skip:h}),g=p.flags.privacyRequestsConfiguration&&(!f||!v)&&m;return(0,r.jsxs)(i.kCb,{"data-testid":n,direction:"column",h:"100vh",children:[(0,r.jsxs)(o(),{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:l?6:0,px:l?10:0,h:l?"calc(100% - 48px)":"full",flex:1,minWidth:0,overflow:"auto",...c,children:[g?(0,r.jsx)(u,{}):null,t]})]})}},58754:function(e,t,n){var r=n(24246),i=n(13577),l=n(70788);t.Z=e=>{let{heading:t,breadcrumbItems:n,isSticky:o=!0,children:a,rightContent:s,style:d,...c}=e;return(0,r.jsxs)("div",{...c,style:o?{position:"sticky",top:"-24px",paddingTop:"24px",paddingBottom:"24px",paddingLeft:"40px",marginLeft:"-40px",paddingRight:"40px",marginRight:"-40px",marginTop:"-24px",left:0,zIndex:20,backgroundColor:"white",...d}:{paddingBottom:"24px",...d},children:[(0,r.jsxs)(i.jqI,{justify:"space-between",children:["string"==typeof t?(0,r.jsx)(i.lQT,{className:n||a?"pb-4":void 0,level:1,"data-testid":"page-heading",children:t}):t,s&&(0,r.jsx)("div",{"data-testid":"page-header-right-content",children:s})]}),!!n&&(0,r.jsx)(l.m,{className:a?"pb-4":void 0,items:n,"data-testid":"page-breadcrumb"}),a]})}},19904:function(e,t,n){n.d(t,{Tg:function(){return o}});var r=n(24246),i=n(16134),l=n(31793);let o=e=>(0,i.C)(l.uu).filter(t=>e.includes(t)).length>0;t.ZP=e=>{let{scopes:t,children:n}=e;return o(t)?(0,r.jsx)(r.Fragment,{children:n}):null}},51472:function(e,t,n){var r=n(24246),i=n(13577),l=n(47397),o=n(7078),a=n(18397),s=n(11055),d=n(27378),c=n(40324),u=n(46238);let p=e=>{let{item:t,label:n,draggable:a,onDeleteItem:s,onEditItem:d,tooltip:c,onRowClick:p,maxH:x=10,rowTestId:m}=e,h=(0,l.o)(),f=(0,r.jsxs)(i.kCb,{direction:"row",gap:2,maxH:x,w:"full",px:2,align:"center",role:"group",className:"group",borderY:"1px",my:"-1px",borderColor:"gray.200",_hover:p?{bgColor:"gray.100"}:void 0,bgColor:"white",position:"relative",children:[a&&(0,r.jsx)(i.VVU,{onPointerDown:e=>h.start(e),cursor:"grab"}),(0,r.jsxs)(i.kCb,{direction:"row",gap:2,p:2,align:"center",w:"full",cursor:p?"pointer":"auto",onClick:()=>{p&&p(t)},overflow:"clip","data-testid":m,children:[(0,r.jsx)(i.xvT,{fontSize:"sm",userSelect:"none",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden",children:n}),(0,r.jsx)(u.b,{label:c})]}),(0,r.jsxs)(i.vyj,{className:"invisible absolute right-2 bg-white group-hover:visible",children:[d&&(0,r.jsx)(i.wpx,{"aria-label":"Edit",onClick:()=>d(t),icon:(0,r.jsx)(i.PJP.I8b,{}),size:"small","data-testid":"edit-".concat(m)}),s&&(0,r.jsx)(i.wpx,{"aria-label":"Delete",onClick:()=>s(t),icon:(0,r.jsx)(i.PJP.ZNm,{}),size:"small","data-testid":"delete-".concat(m)})]})]});return a?(0,r.jsx)(o.e,{value:t,dragListener:!1,dragControls:h,children:f}):f},x=e=>{let{label:t,options:n,onOptionSelected:l,baseTestId:o}=e,[a,s]=(0,d.useState)(!1),[c,u]=(0,d.useState)(void 0);return a?(0,r.jsx)(i.xuv,{w:"full",children:(0,r.jsx)(i.WPr,{labelInValue:!0,placeholder:"Select...",filterOption:(e,t)=>{var n;return(null!==(n=null==t?void 0:t.label)&&void 0!==n?n:"").toLowerCase().includes(e.toLowerCase())},value:c,options:n,onChange:e=>{l(e),s(!1),u(void 0)},className:"w-full","data-testid":"select-".concat(o)})}):(0,r.jsx)(i.wpx,{onClick:()=>s(!0),"data-testid":"add-".concat(o),block:!0,icon:(0,r.jsx)(i.jBn,{boxSize:4}),iconPosition:"end",children:t})};t.Z=e=>{let{label:t,tooltip:n,draggable:l,addButtonLabel:o,allItems:d,idField:m,nameField:h=m,values:f,setValues:v,canDeleteItem:g,getTooltip:j,onRowClick:b,onEditItem:y,selectOnAdd:C,getItemLabel:w,createNewValue:k,maxHeight:R=36,baseTestId:I}=e,S=e=>e instanceof Object&&m&&m in e?e[m]:e,T=d.every(e=>"string"==typeof e)?d.filter(e=>f.every(t=>t!==e)):d.filter(e=>f.every(t=>S(t)!==S(e))),P=e=>{v(f.filter(t=>t!==e).slice())},E=null!=w?w:e=>e instanceof Object&&m&&m in e?h&&h in e?e[h]:e[m]:e,q=e=>{let t=e instanceof Object&&m&&m in e?e[m]:e;return{label:E(e),value:t}},N=e=>d.every(e=>"string"==typeof e)?e.value:d.find(t=>t[m]===e.value),Z=e=>{let t=k?k(e):N(e);v([t,...f.slice()]),C&&b&&b(t),C&&y&&y(t)},O={border:"1px",borderColor:"gray.200",borderRadius:"md",w:"full",maxH:"8.5rem",overflowY:"auto"},z=l?(0,r.jsx)(i.xuv,{as:a.E.div,layoutScroll:!0,...O,children:(0,r.jsx)(s.M,{values:f,onReorder:e=>v(e.slice()),children:f.map(e=>{let t=S(e);return(0,r.jsx)(p,{item:e,label:E(e),onDeleteItem:!g||g&&g(e)?P:void 0,onEditItem:y,onRowClick:b,draggable:!0,maxH:R,rowTestId:"".concat(I,"-row-").concat(t),tooltip:j&&j(e)?j(e):void 0},t)})})}):(0,r.jsx)(i.xuv,{...O,children:(0,r.jsx)(i.aVo,{children:f.map(e=>{let t=S(e);return(0,r.jsx)(p,{item:e,label:E(e),onRowClick:b,onDeleteItem:P,tooltip:j&&j(e)?j(e):void 0,maxH:R,rowTestId:"".concat(I,"-row-").concat(t)},t)})})});return f.length?(0,r.jsxs)(i.kCb,{align:"start",direction:"column",w:"full",gap:4,children:[t?(0,r.jsx)(c.__,{htmlFor:"test",fontSize:"xs",my:0,mr:1,children:t}):null,(0,r.jsx)(u.b,{label:n}),z,T.length?(0,r.jsx)(x,{label:null!=o?o:"Add new",options:T.map(e=>q(e)),onOptionSelected:Z,baseTestId:I}):null]}):(0,r.jsx)(x,{label:null!=o?o:"Add new",options:T.map(e=>q(e)),onOptionSelected:Z,baseTestId:I})}},97181:function(e,t,n){n.d(t,{d:function(){return d}});var r=n(24246),i=n(13577),l=n(34090),o=n(27378),a=n(46238),s=n(40324);let d=e=>{let{name:t,label:n,labelProps:d,tooltip:c,isRequired:u,layout:p="inline",helperText:x,...m}=e,[h,f,{setValue:v}]=(0,l.U$)(t),g=!!(f.touched&&f.error),[j,b]=(0,o.useState)("");h.value||"tags"!==m.mode&&"multiple"!==m.mode||(h.value=[]),"tags"===m.mode&&"string"==typeof h.value&&(h.value=[h.value]);let y="tags"===m.mode?(e,t)=>e?e.value!==j||h.value.includes(j)?m.optionRender?m.optionRender(e,t):e.label:'Create "'.concat(j,'"'):void 0:m.optionRender||void 0,C=e=>{b(e),m.onSearch&&m.onSearch(e)},w=(e,t)=>{v(e),m.onChange&&m.onChange(e,t)};return"inline"===p?(0,r.jsx)(i.NIc,{isInvalid:g,isRequired:u,children:(0,r.jsxs)(i.rjZ,{templateColumns:n?"1fr 3fr":"1fr",children:[n?(0,r.jsx)(s.__,{htmlFor:m.id||t,...d,children:n}):null,(0,r.jsxs)(i.jqI,{align:"center",children:[(0,r.jsxs)(i.jqI,{vertical:!0,flex:1,className:"mr-2",children:[(0,r.jsx)(i.WPr,{...h,id:m.id||t,"data-testid":"controlled-select-".concat(h.name),...m,optionRender:y,onSearch:"tags"===m.mode?C:void 0,onChange:w,value:h.value||void 0,status:g?"error":void 0}),x&&(0,r.jsx)(i.Q6r,{children:x}),(0,r.jsx)(s.Bc,{isInvalid:g,message:f.error,fieldName:h.name})]}),(0,r.jsx)(a.b,{label:c,className:g?"mt-2 self-start":void 0})]})]})}):(0,r.jsx)(i.NIc,{isInvalid:g,isRequired:u,children:(0,r.jsxs)(i.gCW,{alignItems:"start",children:[(0,r.jsxs)(i.jqI,{align:"center",children:[n?(0,r.jsx)(s.__,{htmlFor:m.id||t,fontSize:"xs",my:0,mr:1,...d,children:n}):null,(0,r.jsx)(a.b,{label:c})]}),(0,r.jsx)(i.WPr,{...h,id:m.id||t,"data-testid":"controlled-select-".concat(h.name),...m,optionRender:y,onSearch:"tags"===m.mode?C:void 0,onChange:w,value:h.value||void 0,status:g?"error":void 0}),x&&(0,r.jsx)(i.Q6r,{style:{marginTop:0},children:x}),(0,r.jsx)(s.Bc,{isInvalid:g,message:f.error,fieldName:h.name})]})})}},10342:function(e,t,n){var r=n(24246),i=n(13577),l=n(46238);t.Z=e=>{let{title:t,tooltip:n,children:o,...a}=e;return(0,r.jsxs)(i.xuv,{borderRadius:"md",border:"1px solid",borderColor:"gray.200",...a,children:[(0,r.jsxs)(i.X6q,{as:"h3",fontSize:"sm",fontWeight:"semibold",color:"gray.700",py:4,px:6,backgroundColor:"gray.50",borderRadius:"md",textAlign:"left",children:[t,n?(0,r.jsx)(i.xvT,{as:"span",mx:1,children:(0,r.jsx)(l.b,{label:n})}):void 0]}),(0,r.jsx)(i.Kqy,{p:6,spacing:6,children:o})]})}},70788:function(e,t,n){n.d(t,{m:function(){return d}});var r=n(24246),i=n(13577),l=n(79894),o=n.n(l),a=n(27378);let{Text:s}=i.AntTypography,d=e=>{let{items:t,...n}=e,l=(0,a.useMemo)(()=>null==t?void 0:t.map((e,n)=>{let l=n===t.length-1,a={...e},d=a.onClick&&!a.href;return("string"==typeof a.title&&(a.title=(0,r.jsx)(s,{style:{color:"inherit",maxWidth:l?void 0:400},ellipsis:!l,children:a.title})),d)?a.title=(0,r.jsx)(i.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,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("span",{className:"anticon align-text-bottom",children:a.icon}),a.title]})),a.href&&a.title&&(a.title=(0,r.jsx)(o(),{href:a.href,className:"ant-breadcrumb-link",children:a.title}),delete a.href)),a}),[t]);return(0,r.jsx)(i.zrq,{items:l,...n})}},3642:function(e,t,n){var r=n(24246),i=n(13577),l=n(86677),o=n.n(l),a=n(27378),s=n(812),d=n(58452),c=n(77830),u=n(19904),p=n(46628),x=n(98795),m=n(73825);t.Z=e=>{let{property:t,triggerComponent:n}=e,l=(0,i.pmc)(),h=(0,i.qY0)(),[f]=(0,x.YW)(),v=t.experiences.length>0,g=async()=>{h.onClose();let e=await f(t.id);if((0,s.D4)(e)){l((0,p.Vo)((0,s.e$)(e.error)));return}o().push("".concat(c.ru)),l((0,p.t5)("Property ".concat(t.name," deleted successfully")))};return(0,r.jsxs)(u.ZP,{scopes:[m.Sh.PROPERTY_DELETE],children:[(0,r.jsx)(i.esZ,{title:v?"All of the experiences on this property must be unlinked before the property can be deleted.":void 0,placement:"right",children:(0,r.jsx)("span",{children:a.cloneElement(n,{onClick:e=>{e.stopPropagation(),v||h.onOpen()},disabled:v})})}),(0,r.jsx)(d.Z,{isOpen:h.isOpen,onClose:h.onClose,onConfirm:g,title:"Delete ".concat(t.name),message:(0,r.jsxs)(i.xvT,{color:"gray.500",children:["You are about to delete property ",t.name,". This action is not reversible and will result in ",t.name," no longer being available for your data governance. Are you sure you want to proceed?"]}),continueButtonText:"Ok",isCentered:!0,icon:(0,r.jsx)(i.aNP,{})})]})}},18880:function(e,t,n){var r=n(24246),i=n(13577),l=n(34090),o=n(86677),a=n(27378),s=n(16134),d=n(10342),c=n(40324),u=n(812),p=n(77830),x=n(51472),m=n(94315),h=n(73825),f=n(97181),v=n(3642);let g=()=>{var e;let t=(0,s.C)(m.Zp),n=(0,s.C)(m.G1);(0,m.cq)({page:t,size:n});let i=(0,s.C)(m.w4),{values:o,setFieldValue:a}=(0,l.u6)();return(0,r.jsx)(d.Z,{title:"Experiences",children:(0,r.jsx)(x.Z,{addButtonLabel:"Add experience",idField:"id",nameField:"name",allItems:i.map(e=>({id:e.id,name:e.name})),values:null!==(e=o.experiences)&&void 0!==e?e:[],setValues:e=>a("experiences",e),draggable:!0,baseTestId:"experience"})})};t.Z=e=>{let{property:t,handleSubmit:n}=e,s=(0,o.useRouter)(),x=()=>{s.push(p.ru)},m=(0,a.useMemo)(()=>t||{name:"",type:h.uS.WEBSITE,experiences:[],messaging_templates:[],paths:[]},[t]);return(0,r.jsx)(l.J9,{enableReinitialize:!0,initialValues:m,onSubmit:n,children:e=>{let{dirty:n,isValid:o,isSubmitting:a}=e;return(0,r.jsxs)(l.l0,{style:{paddingTop:"12px",paddingBottom:"12px"},children:[(0,r.jsx)(i.xuv,{py:3,children:(0,r.jsxs)(d.Z,{title:"Property details",children:[(0,r.jsx)(c.j0,{isRequired:!0,label:"Property name",name:"name",tooltip:"Unique name to identify this property",variant:"stacked"}),(0,r.jsx)(f.d,{isRequired:!0,label:"Type",name:"type",options:(0,u.MM)(h.uS),layout:"stacked"})]})}),(0,r.jsx)(i.xuv,{py:3,children:(0,r.jsx)(g,{})}),t&&(0,r.jsx)(i.xuv,{py:3,children:(0,r.jsx)(d.Z,{title:"Advanced settings",children:(0,r.jsx)(c.Io,{label:"Property ID",name:"id",tooltip:"Automatically generated unique ID for this property, used for developer configurations",variant:"stacked",readOnly:!0})})}),(0,r.jsxs)(i.kCb,{justifyContent:"space-between",width:"100%",paddingTop:2,children:[t&&(0,r.jsx)(v.Z,{property:t,triggerComponent:(0,r.jsx)(i.wpx,{"data-testid":"delete-property-button",loading:!1,className:"mr-3",children:"Delete"})}),(0,r.jsxs)(i.kCb,{justifyContent:"right",width:"100%",paddingTop:2,children:[(0,r.jsx)(i.wpx,{onClick:x,loading:!1,className:"mr-3",children:"Cancel"}),(0,r.jsx)(i.wpx,{htmlType:"submit",type:"primary",disabled:a||!n||!o,loading:a,children:"Save"})]})]})]})}})}},31883:function(e,t,n){n.d(t,{Bw:function(){return r.Bw},D4:function(){return r.D4}});var r=n(19043)},11055:function(e,t,n){n.d(t,{M:function(){return u}});var r=n(24246),i=n(29427),l=n(27378),o=n(40976),a=n(18397),s=n(42308),d=n(25431),c=n(39556);let u=(0,l.forwardRef)(function({children:e,as:t="ul",axis:n="y",onReorder:u,values:m,...h},f){let v=(0,s.h)(()=>a.E[t]),g=[],j=(0,l.useRef)(!1);return(0,i.k)(!!m,"Reorder.Group must be provided a values prop"),(0,l.useEffect)(()=>{j.current=!1}),(0,r.jsx)(v,{...h,ref:f,ignoreStrict:!0,children:(0,r.jsx)(o.Y.Provider,{value:{axis:n,registerItem:(e,t)=>{let r=g.findIndex(t=>e===t.value);-1!==r?g[r].layout=t[n]:g.push({value:e,layout:t[n]}),g.sort(x)},updateOrder:(e,t,n)=>{if(j.current)return;let r=function(e,t,n,r){if(!r)return e;let i=e.findIndex(e=>e.value===t);if(-1===i)return e;let l=r>0?1:-1,o=e[i+l];if(!o)return e;let a=e[i],s=o.layout,u=(0,c.t)(s.min,s.max,.5);return 1===l&&a.layout.max+n>u||-1===l&&a.layout.min+n<u?(0,d.uo)(e,i,i+l):e}(g,e,t,n);g!==r&&(j.current=!0,u(r.map(p).filter(e=>-1!==m.indexOf(e))))}},children:e})})});function p(e){return e.value}function x(e,t){return e.layout.min-t.layout.min}},7078:function(e,t,n){n.d(t,{e:function(){return y}});var r=n(24246),i=n(29427),l=n(27378),o=n(40976),a=n(18397),s=n(42308),d=n(69222),c=n(67412);function u(e){let t=(0,s.h)(()=>(0,d.BX)(e)),{isStatic:n}=(0,l.useContext)(c._);if(n){let[,n]=(0,l.useState)(e);(0,l.useEffect)(()=>t.on("change",n),[])}return t}var p=n(13998);let x=e=>e&&"object"==typeof e&&e.mix,m=e=>x(e)?e.mix:void 0;var h=n(64306),f=n(95984);function v(e,t){let n=u(t()),r=()=>n.set(t());return r(),(0,h.L)(()=>{let t=()=>f.Wi.preRender(r,!1,!0),n=e.map(e=>e.on("change",t));return()=>{n.forEach(e=>e()),(0,f.Pn)(r)}}),n}function g(e,t){let n=(0,s.h)(()=>[]);return v(e,()=>{n.length=0;let r=e.length;for(let t=0;t<r;t++)n[t]=e[t].get();return t(n)})}var j=n(3522);function b(e,t=0){return(0,j.i)(e)?e:u(t)}let y=(0,l.forwardRef)(function({children:e,style:t={},value:n,as:c="li",onDrag:u,layout:x=!0,...h},f){let j=(0,s.h)(()=>a.E[c]),y=(0,l.useContext)(o.Y),C={x:b(t.x),y:b(t.y)},w=function(e,t,n,r){if("function"==typeof e)return function(e){d.S1.current=[],e();let t=v(d.S1.current,e);return d.S1.current=void 0,t}(e);let i="function"==typeof t?t:function(...e){let t=!Array.isArray(e[0]),n=t?0:-1,r=e[0+n],i=e[1+n],l=e[2+n],o=e[3+n],a=(0,p.s)(i,l,{mixer:m(l[0]),...o});return t?a(r):a}(t,void 0,void 0);return Array.isArray(e)?g(e,i):g([e],([e])=>i(e))}([C.x,C.y],([e,t])=>e||t?1:"unset");(0,i.k)(!!y,"Reorder.Item must be a child of Reorder.Group");let{axis:k,registerItem:R,updateOrder:I}=y;return(0,r.jsx)(j,{drag:k,...h,dragSnapToOrigin:!0,style:{...t,x:C.x,y:C.y,zIndex:w},layout:x,onDrag:(e,t)=>{let{velocity:r}=t;r[k]&&I(n,C[k].get(),r[k]),u&&u(e,t)},onLayoutMeasure:e=>R(n,e),ref:f,ignoreStrict:!0,children:e})})},40976:function(e,t,n){n.d(t,{Y:function(){return r}});let r=(0,n(27378).createContext)(null)},47397:function(e,t,n){n.d(t,{o:function(){return o}});var r=n(42308);class i{constructor(){this.componentControls=new Set}subscribe(e){return this.componentControls.add(e),()=>this.componentControls.delete(e)}start(e,t){this.componentControls.forEach(n=>{n.start(e.nativeEvent||e,t)})}}let l=()=>new i;function o(){return(0,r.h)(l)}}}]);
1
+ "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[787],{77213:function(e,t,n){n.d(t,{Z:function(){return p}});var r=n(24246),i=n(13577),l=n(88038),o=n.n(l),a=n(86677);n(27378);var s=n(25980),d=n(90867),c=n(77830),u=()=>{let e=(0,a.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(c.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:l=!0,mainProps:c}=e,p=(0,s.hz)(),x=(0,a.useRouter)(),m="/privacy-requests"===x.pathname||"/datastore-connection"===x.pathname,h=!(p.flags.privacyRequestsConfiguration&&m),{data:f}=(0,d.JE)(void 0,{skip:h}),{data:v}=(0,d.PW)(void 0,{skip:h}),g=p.flags.privacyRequestsConfiguration&&(!f||!v)&&m;return(0,r.jsxs)(i.kCb,{"data-testid":n,direction:"column",h:"100vh",children:[(0,r.jsxs)(o(),{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:l?6:0,px:l?10:0,h:l?"calc(100% - 48px)":"full",flex:1,minWidth:0,overflow:"auto",...c,children:[g?(0,r.jsx)(u,{}):null,t]})]})}},58754:function(e,t,n){var r=n(24246),i=n(13577),l=n(70788);t.Z=e=>{let{heading:t,breadcrumbItems:n,isSticky:o=!0,children:a,rightContent:s,style:d,...c}=e;return(0,r.jsxs)("div",{...c,style:o?{position:"sticky",top:"-24px",paddingTop:"24px",paddingBottom:"24px",paddingLeft:"40px",marginLeft:"-40px",paddingRight:"40px",marginRight:"-40px",marginTop:"-24px",left:0,zIndex:20,backgroundColor:"white",...d}:{paddingBottom:"24px",...d},children:[(0,r.jsxs)(i.jqI,{justify:"space-between",children:["string"==typeof t?(0,r.jsx)(i.lQT,{className:n||a?"pb-4":void 0,level:1,"data-testid":"page-heading",children:t}):t,s&&(0,r.jsx)("div",{"data-testid":"page-header-right-content",children:s})]}),!!n&&(0,r.jsx)(l.m,{className:a?"pb-4":void 0,items:n,"data-testid":"page-breadcrumb"}),a]})}},19904:function(e,t,n){n.d(t,{Tg:function(){return o}});var r=n(24246),i=n(16134),l=n(31793);let o=e=>(0,i.C)(l.uu).filter(t=>e.includes(t)).length>0;t.ZP=e=>{let{scopes:t,children:n}=e;return o(t)?(0,r.jsx)(r.Fragment,{children:n}):null}},51472:function(e,t,n){var r=n(24246),i=n(13577),l=n(47397),o=n(7078),a=n(18397),s=n(11055),d=n(27378),c=n(40324),u=n(46238);let p=e=>{let{item:t,label:n,draggable:a,onDeleteItem:s,onEditItem:d,tooltip:c,onRowClick:p,maxH:x=10,rowTestId:m}=e,h=(0,l.o)(),f=(0,r.jsxs)(i.kCb,{direction:"row",gap:2,maxH:x,w:"full",px:2,align:"center",role:"group",className:"group",borderY:"1px",my:"-1px",borderColor:"gray.200",_hover:p?{bgColor:"gray.100"}:void 0,bgColor:"white",position:"relative",children:[a&&(0,r.jsx)(i.VVU,{onPointerDown:e=>h.start(e),cursor:"grab"}),(0,r.jsxs)(i.kCb,{direction:"row",gap:2,p:2,align:"center",w:"full",cursor:p?"pointer":"auto",onClick:()=>{p&&p(t)},overflow:"clip","data-testid":m,children:[(0,r.jsx)(i.xvT,{fontSize:"sm",userSelect:"none",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden",children:n}),(0,r.jsx)(u.b,{label:c})]}),(0,r.jsxs)(i.vyj,{className:"invisible absolute right-2 bg-white group-hover:visible",children:[d&&(0,r.jsx)(i.wpx,{"aria-label":"Edit",onClick:()=>d(t),icon:(0,r.jsx)(i.PJP.I8b,{}),size:"small","data-testid":"edit-".concat(m)}),s&&(0,r.jsx)(i.wpx,{"aria-label":"Delete",onClick:()=>s(t),icon:(0,r.jsx)(i.PJP.ZNm,{}),size:"small","data-testid":"delete-".concat(m)})]})]});return a?(0,r.jsx)(o.e,{value:t,dragListener:!1,dragControls:h,children:f}):f},x=e=>{let{label:t,options:n,onOptionSelected:l,baseTestId:o}=e,[a,s]=(0,d.useState)(!1),[c,u]=(0,d.useState)(void 0);return a?(0,r.jsx)(i.xuv,{w:"full",children:(0,r.jsx)(i.WPr,{labelInValue:!0,placeholder:"Select...",filterOption:(e,t)=>{var n;return(null!==(n=null==t?void 0:t.label)&&void 0!==n?n:"").toLowerCase().includes(e.toLowerCase())},value:c,options:n,onChange:e=>{l(e),s(!1),u(void 0)},className:"w-full","data-testid":"select-".concat(o)})}):(0,r.jsx)(i.wpx,{onClick:()=>s(!0),"data-testid":"add-".concat(o),block:!0,icon:(0,r.jsx)(i.jBn,{boxSize:4}),iconPosition:"end",children:t})};t.Z=e=>{let{label:t,tooltip:n,draggable:l,addButtonLabel:o,allItems:d,idField:m,nameField:h=m,values:f,setValues:v,canDeleteItem:g,getTooltip:j,onRowClick:b,onEditItem:y,selectOnAdd:C,getItemLabel:w,createNewValue:k,maxHeight:R=36,baseTestId:I}=e,S=e=>e instanceof Object&&m&&m in e?e[m]:e,T=d.every(e=>"string"==typeof e)?d.filter(e=>f.every(t=>t!==e)):d.filter(e=>f.every(t=>S(t)!==S(e))),P=e=>{v(f.filter(t=>t!==e).slice())},E=null!=w?w:e=>e instanceof Object&&m&&m in e?h&&h in e?e[h]:e[m]:e,q=e=>{let t=e instanceof Object&&m&&m in e?e[m]:e;return{label:E(e),value:t}},N=e=>d.every(e=>"string"==typeof e)?e.value:d.find(t=>t[m]===e.value),Z=e=>{let t=k?k(e):N(e);v([t,...f.slice()]),C&&b&&b(t),C&&y&&y(t)},O={border:"1px",borderColor:"gray.200",borderRadius:"md",w:"full",maxH:"8.5rem",overflowY:"auto"},z=l?(0,r.jsx)(i.xuv,{as:a.E.div,layoutScroll:!0,...O,children:(0,r.jsx)(s.M,{values:f,onReorder:e=>v(e.slice()),children:f.map(e=>{let t=S(e);return(0,r.jsx)(p,{item:e,label:E(e),onDeleteItem:!g||g&&g(e)?P:void 0,onEditItem:y,onRowClick:b,draggable:!0,maxH:R,rowTestId:"".concat(I,"-row-").concat(t),tooltip:j&&j(e)?j(e):void 0},t)})})}):(0,r.jsx)(i.xuv,{...O,children:(0,r.jsx)(i.aVo,{children:f.map(e=>{let t=S(e);return(0,r.jsx)(p,{item:e,label:E(e),onRowClick:b,onDeleteItem:P,tooltip:j&&j(e)?j(e):void 0,maxH:R,rowTestId:"".concat(I,"-row-").concat(t)},t)})})});return f.length?(0,r.jsxs)(i.kCb,{align:"start",direction:"column",w:"full",gap:4,children:[t?(0,r.jsx)(c.__,{htmlFor:"test",fontSize:"xs",my:0,mr:1,children:t}):null,(0,r.jsx)(u.b,{label:n}),z,T.length?(0,r.jsx)(x,{label:null!=o?o:"Add new",options:T.map(e=>q(e)),onOptionSelected:Z,baseTestId:I}):null]}):(0,r.jsx)(x,{label:null!=o?o:"Add new",options:T.map(e=>q(e)),onOptionSelected:Z,baseTestId:I})}},97181:function(e,t,n){n.d(t,{d:function(){return d}});var r=n(24246),i=n(13577),l=n(34090),o=n(27378),a=n(46238),s=n(40324);let d=e=>{let{name:t,label:n,labelProps:d,tooltip:c,isRequired:u,layout:p="inline",helperText:x,...m}=e,[h,f,{setValue:v}]=(0,l.U$)(t),g=!!(f.touched&&f.error),[j,b]=(0,o.useState)("");h.value||"tags"!==m.mode&&"multiple"!==m.mode||(h.value=[]),"tags"===m.mode&&"string"==typeof h.value&&(h.value=[h.value]);let y="tags"===m.mode?(e,t)=>e?e.value!==j||h.value.includes(j)?m.optionRender?m.optionRender(e,t):e.label:'Create "'.concat(j,'"'):void 0:m.optionRender||void 0,C=e=>{b(e),m.onSearch&&m.onSearch(e)},w=(e,t)=>{v(e),m.onChange&&m.onChange(e,t)};return"inline"===p?(0,r.jsx)(i.NIc,{isInvalid:g,isRequired:u,children:(0,r.jsxs)(i.rjZ,{templateColumns:n?"1fr 3fr":"1fr",children:[n?(0,r.jsx)(s.__,{htmlFor:m.id||t,...d,children:n}):null,(0,r.jsxs)(i.jqI,{align:"center",children:[(0,r.jsxs)(i.jqI,{vertical:!0,flex:1,className:"mr-2",children:[(0,r.jsx)(i.WPr,{...h,id:m.id||t,"data-testid":"controlled-select-".concat(h.name),...m,optionRender:y,onSearch:"tags"===m.mode?C:void 0,onChange:w,value:h.value||void 0,status:g?"error":void 0}),x&&(0,r.jsx)(i.Q6r,{children:x}),(0,r.jsx)(s.Bc,{isInvalid:g,message:f.error,fieldName:h.name})]}),(0,r.jsx)(a.b,{label:c,className:g?"mt-2 self-start":void 0})]})]})}):(0,r.jsx)(i.NIc,{isInvalid:g,isRequired:u,children:(0,r.jsxs)(i.gCW,{alignItems:"start",children:[(0,r.jsxs)(i.jqI,{align:"center",children:[n?(0,r.jsx)(s.__,{htmlFor:m.id||t,fontSize:"xs",my:0,mr:1,...d,children:n}):null,(0,r.jsx)(a.b,{label:c})]}),(0,r.jsx)(i.WPr,{...h,id:m.id||t,"data-testid":"controlled-select-".concat(h.name),...m,optionRender:y,onSearch:"tags"===m.mode?C:void 0,onChange:w,value:h.value||void 0,status:g?"error":void 0}),x&&(0,r.jsx)(i.Q6r,{style:{marginTop:0},children:x}),(0,r.jsx)(s.Bc,{isInvalid:g,message:f.error,fieldName:h.name})]})})}},10342:function(e,t,n){var r=n(24246),i=n(13577),l=n(46238);t.Z=e=>{let{title:t,tooltip:n,children:o,...a}=e;return(0,r.jsxs)(i.xuv,{borderRadius:"md",border:"1px solid",borderColor:"gray.200",...a,children:[(0,r.jsxs)(i.X6q,{as:"h3",fontSize:"sm",fontWeight:"semibold",color:"gray.700",py:4,px:6,backgroundColor:"gray.50",borderRadius:"md",textAlign:"left",children:[t,n?(0,r.jsx)(i.xvT,{as:"span",mx:1,children:(0,r.jsx)(l.b,{label:n})}):void 0]}),(0,r.jsx)(i.Kqy,{p:6,spacing:6,children:o})]})}},70788:function(e,t,n){n.d(t,{m:function(){return d}});var r=n(24246),i=n(13577),l=n(79894),o=n.n(l),a=n(27378);let{Text:s}=i.AntTypography,d=e=>{let{items:t,...n}=e,l=(0,a.useMemo)(()=>null==t?void 0:t.map((e,n)=>{let l=n===t.length-1,a={...e},d=a.onClick&&!a.href;return("string"==typeof a.title&&(a.title=(0,r.jsx)(s,{style:{color:"inherit",maxWidth:l?void 0:400},ellipsis:!l,children:a.title})),d)?a.title=(0,r.jsx)(i.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,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("span",{className:"anticon align-text-bottom",children:a.icon}),a.title]})),a.href&&a.title&&(a.title=(0,r.jsx)(o(),{href:a.href,className:"ant-breadcrumb-link",children:a.title}),delete a.href)),a}),[t]);return(0,r.jsx)(i.zrq,{items:l,...n})}},3642:function(e,t,n){var r=n(24246),i=n(13577),l=n(86677),o=n.n(l),a=n(27378),s=n(812),d=n(58452),c=n(77830),u=n(19904),p=n(46628),x=n(98795),m=n(54682);t.Z=e=>{let{property:t,triggerComponent:n}=e,l=(0,i.pmc)(),h=(0,i.qY0)(),[f]=(0,x.YW)(),v=t.experiences.length>0,g=async()=>{h.onClose();let e=await f(t.id);if((0,s.D4)(e)){l((0,p.Vo)((0,s.e$)(e.error)));return}o().push("".concat(c.ru)),l((0,p.t5)("Property ".concat(t.name," deleted successfully")))};return(0,r.jsxs)(u.ZP,{scopes:[m.Sh.PROPERTY_DELETE],children:[(0,r.jsx)(i.esZ,{title:v?"All of the experiences on this property must be unlinked before the property can be deleted.":void 0,placement:"right",children:(0,r.jsx)("span",{children:a.cloneElement(n,{onClick:e=>{e.stopPropagation(),v||h.onOpen()},disabled:v})})}),(0,r.jsx)(d.Z,{isOpen:h.isOpen,onClose:h.onClose,onConfirm:g,title:"Delete ".concat(t.name),message:(0,r.jsxs)(i.xvT,{color:"gray.500",children:["You are about to delete property ",t.name,". This action is not reversible and will result in ",t.name," no longer being available for your data governance. Are you sure you want to proceed?"]}),continueButtonText:"Ok",isCentered:!0,icon:(0,r.jsx)(i.aNP,{})})]})}},18880:function(e,t,n){var r=n(24246),i=n(13577),l=n(34090),o=n(86677),a=n(27378),s=n(16134),d=n(10342),c=n(40324),u=n(812),p=n(77830),x=n(51472),m=n(94315),h=n(54682),f=n(97181),v=n(3642);let g=()=>{var e;let t=(0,s.C)(m.Zp),n=(0,s.C)(m.G1);(0,m.cq)({page:t,size:n});let i=(0,s.C)(m.w4),{values:o,setFieldValue:a}=(0,l.u6)();return(0,r.jsx)(d.Z,{title:"Experiences",children:(0,r.jsx)(x.Z,{addButtonLabel:"Add experience",idField:"id",nameField:"name",allItems:i.map(e=>({id:e.id,name:e.name})),values:null!==(e=o.experiences)&&void 0!==e?e:[],setValues:e=>a("experiences",e),draggable:!0,baseTestId:"experience"})})};t.Z=e=>{let{property:t,handleSubmit:n}=e,s=(0,o.useRouter)(),x=()=>{s.push(p.ru)},m=(0,a.useMemo)(()=>t||{name:"",type:h.uS.WEBSITE,experiences:[],messaging_templates:[],paths:[]},[t]);return(0,r.jsx)(l.J9,{enableReinitialize:!0,initialValues:m,onSubmit:n,children:e=>{let{dirty:n,isValid:o,isSubmitting:a}=e;return(0,r.jsxs)(l.l0,{style:{paddingTop:"12px",paddingBottom:"12px"},children:[(0,r.jsx)(i.xuv,{py:3,children:(0,r.jsxs)(d.Z,{title:"Property details",children:[(0,r.jsx)(c.j0,{isRequired:!0,label:"Property name",name:"name",tooltip:"Unique name to identify this property",variant:"stacked"}),(0,r.jsx)(f.d,{isRequired:!0,label:"Type",name:"type",options:(0,u.MM)(h.uS),layout:"stacked"})]})}),(0,r.jsx)(i.xuv,{py:3,children:(0,r.jsx)(g,{})}),t&&(0,r.jsx)(i.xuv,{py:3,children:(0,r.jsx)(d.Z,{title:"Advanced settings",children:(0,r.jsx)(c.Io,{label:"Property ID",name:"id",tooltip:"Automatically generated unique ID for this property, used for developer configurations",variant:"stacked",readOnly:!0})})}),(0,r.jsxs)(i.kCb,{justifyContent:"space-between",width:"100%",paddingTop:2,children:[t&&(0,r.jsx)(v.Z,{property:t,triggerComponent:(0,r.jsx)(i.wpx,{"data-testid":"delete-property-button",loading:!1,className:"mr-3",children:"Delete"})}),(0,r.jsxs)(i.kCb,{justifyContent:"right",width:"100%",paddingTop:2,children:[(0,r.jsx)(i.wpx,{onClick:x,loading:!1,className:"mr-3",children:"Cancel"}),(0,r.jsx)(i.wpx,{htmlType:"submit",type:"primary",disabled:a||!n||!o,loading:a,children:"Save"})]})]})]})}})}},31883:function(e,t,n){n.d(t,{Bw:function(){return r.Bw},D4:function(){return r.D4}});var r=n(19043)},11055:function(e,t,n){n.d(t,{M:function(){return u}});var r=n(24246),i=n(29427),l=n(27378),o=n(40976),a=n(18397),s=n(42308),d=n(25431),c=n(39556);let u=(0,l.forwardRef)(function({children:e,as:t="ul",axis:n="y",onReorder:u,values:m,...h},f){let v=(0,s.h)(()=>a.E[t]),g=[],j=(0,l.useRef)(!1);return(0,i.k)(!!m,"Reorder.Group must be provided a values prop"),(0,l.useEffect)(()=>{j.current=!1}),(0,r.jsx)(v,{...h,ref:f,ignoreStrict:!0,children:(0,r.jsx)(o.Y.Provider,{value:{axis:n,registerItem:(e,t)=>{let r=g.findIndex(t=>e===t.value);-1!==r?g[r].layout=t[n]:g.push({value:e,layout:t[n]}),g.sort(x)},updateOrder:(e,t,n)=>{if(j.current)return;let r=function(e,t,n,r){if(!r)return e;let i=e.findIndex(e=>e.value===t);if(-1===i)return e;let l=r>0?1:-1,o=e[i+l];if(!o)return e;let a=e[i],s=o.layout,u=(0,c.t)(s.min,s.max,.5);return 1===l&&a.layout.max+n>u||-1===l&&a.layout.min+n<u?(0,d.uo)(e,i,i+l):e}(g,e,t,n);g!==r&&(j.current=!0,u(r.map(p).filter(e=>-1!==m.indexOf(e))))}},children:e})})});function p(e){return e.value}function x(e,t){return e.layout.min-t.layout.min}},7078:function(e,t,n){n.d(t,{e:function(){return y}});var r=n(24246),i=n(29427),l=n(27378),o=n(40976),a=n(18397),s=n(42308),d=n(69222),c=n(67412);function u(e){let t=(0,s.h)(()=>(0,d.BX)(e)),{isStatic:n}=(0,l.useContext)(c._);if(n){let[,n]=(0,l.useState)(e);(0,l.useEffect)(()=>t.on("change",n),[])}return t}var p=n(13998);let x=e=>e&&"object"==typeof e&&e.mix,m=e=>x(e)?e.mix:void 0;var h=n(64306),f=n(95984);function v(e,t){let n=u(t()),r=()=>n.set(t());return r(),(0,h.L)(()=>{let t=()=>f.Wi.preRender(r,!1,!0),n=e.map(e=>e.on("change",t));return()=>{n.forEach(e=>e()),(0,f.Pn)(r)}}),n}function g(e,t){let n=(0,s.h)(()=>[]);return v(e,()=>{n.length=0;let r=e.length;for(let t=0;t<r;t++)n[t]=e[t].get();return t(n)})}var j=n(3522);function b(e,t=0){return(0,j.i)(e)?e:u(t)}let y=(0,l.forwardRef)(function({children:e,style:t={},value:n,as:c="li",onDrag:u,layout:x=!0,...h},f){let j=(0,s.h)(()=>a.E[c]),y=(0,l.useContext)(o.Y),C={x:b(t.x),y:b(t.y)},w=function(e,t,n,r){if("function"==typeof e)return function(e){d.S1.current=[],e();let t=v(d.S1.current,e);return d.S1.current=void 0,t}(e);let i="function"==typeof t?t:function(...e){let t=!Array.isArray(e[0]),n=t?0:-1,r=e[0+n],i=e[1+n],l=e[2+n],o=e[3+n],a=(0,p.s)(i,l,{mixer:m(l[0]),...o});return t?a(r):a}(t,void 0,void 0);return Array.isArray(e)?g(e,i):g([e],([e])=>i(e))}([C.x,C.y],([e,t])=>e||t?1:"unset");(0,i.k)(!!y,"Reorder.Item must be a child of Reorder.Group");let{axis:k,registerItem:R,updateOrder:I}=y;return(0,r.jsx)(j,{drag:k,...h,dragSnapToOrigin:!0,style:{...t,x:C.x,y:C.y,zIndex:w},layout:x,onDrag:(e,t)=>{let{velocity:r}=t;r[k]&&I(n,C[k].get(),r[k]),u&&u(e,t)},onLayoutMeasure:e=>R(n,e),ref:f,ignoreStrict:!0,children:e})})},40976:function(e,t,n){n.d(t,{Y:function(){return r}});let r=(0,n(27378).createContext)(null)},47397:function(e,t,n){n.d(t,{o:function(){return o}});var r=n(42308);class i{constructor(){this.componentControls=new Set}subscribe(e){return this.componentControls.add(e),()=>this.componentControls.delete(e)}start(e,t){this.componentControls.forEach(n=>{n.start(e.nativeEvent||e,t)})}}let l=()=>new i;function o(){return(0,r.h)(l)}}}]);
@@ -1 +1 @@
1
- "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[79],{56358:function(e,t,n){n.d(t,{q:function(){return i}});var s=n(24246);let i=(0,n(13577).IUT)({displayName:"TrashCanOutlineIcon",viewBox:"0 0 11 12",path:(0,s.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"})})},77213:function(e,t,n){n.d(t,{Z:function(){return u}});var s=n(24246),i=n(13577),r=n(88038),a=n.n(r),o=n(86677);n(27378);var l=n(25980),c=n(90867),d=n(77830),p=()=>{let e=(0,o.useRouter)();return(0,s.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,s.jsxs)(i.xuv,{children:[(0,s.jsxs)(i.Kqy,{direction:{base:"column",sm:"row"},justifyContent:"space-between",children:[(0,s.jsx)(i.xvT,{fontWeight:"semibold",children:"Configure your storage and messaging provider"}),(0,s.jsx)(i.wpx,{onClick:()=>{e.push(d.fz)},children:"Configure"})]}),(0,s.jsxs)(i.xvT,{children:["Before Fides can process your privacy requests we need two simple steps to configure your storage and email client."," "]})]})})},u=e=>{let{children:t,title:n,padded:r=!0,mainProps:d}=e,u=(0,l.hz)(),x=(0,o.useRouter)(),h="/privacy-requests"===x.pathname||"/datastore-connection"===x.pathname,g=!(u.flags.privacyRequestsConfiguration&&h),{data:m}=(0,c.JE)(void 0,{skip:g}),{data:j}=(0,c.PW)(void 0,{skip:g}),f=u.flags.privacyRequestsConfiguration&&(!m||!j)&&h;return(0,s.jsxs)(i.kCb,{"data-testid":n,direction:"column",h:"100vh",children:[(0,s.jsxs)(a(),{children:[(0,s.jsxs)("title",{children:["Fides Admin UI - ",n]}),(0,s.jsx)("meta",{name:"description",content:"Privacy Engineering Platform"}),(0,s.jsx)("link",{rel:"icon",href:"/favicon.ico"})]}),(0,s.jsxs)(i.kCb,{as:"main",direction:"column",py:r?6:0,px:r?10:0,h:r?"calc(100% - 48px)":"full",flex:1,minWidth:0,overflow:"auto",...d,children:[f?(0,s.jsx)(p,{}):null,t]})]})}},58754:function(e,t,n){var s=n(24246),i=n(13577),r=n(70788);t.Z=e=>{let{heading:t,breadcrumbItems:n,isSticky:a=!0,children:o,rightContent:l,style:c,...d}=e;return(0,s.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,s.jsxs)(i.jqI,{justify:"space-between",children:["string"==typeof t?(0,s.jsx)(i.lQT,{className:n||o?"pb-4":void 0,level:1,"data-testid":"page-heading",children:t}):t,l&&(0,s.jsx)("div",{"data-testid":"page-header-right-content",children:l})]}),!!n&&(0,s.jsx)(r.m,{className:o?"pb-4":void 0,items:n,"data-testid":"page-breadcrumb"}),o]})}},19904:function(e,t,n){n.d(t,{Tg:function(){return a}});var s=n(24246),i=n(16134),r=n(31793);let a=e=>(0,i.C)(r.uu).filter(t=>e.includes(t)).length>0;t.ZP=e=>{let{scopes:t,children:n}=e;return a(t)?(0,s.jsx)(s.Fragment,{children:n}):null}},70788:function(e,t,n){n.d(t,{m:function(){return c}});var s=n(24246),i=n(13577),r=n(79894),a=n.n(r),o=n(27378);let{Text:l}=i.AntTypography,c=e=>{let{items:t,...n}=e,r=(0,o.useMemo)(()=>null==t?void 0:t.map((e,n)=>{let r=n===t.length-1,o={...e},c=o.onClick&&!o.href;return("string"==typeof o.title&&(o.title=(0,s.jsx)(l,{style:{color:"inherit",maxWidth:r?void 0:400},ellipsis:!r,children:o.title})),c)?o.title=(0,s.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,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("span",{className:"anticon align-text-bottom",children:o.icon}),o.title]})),o.href&&o.title&&(o.title=(0,s.jsx)(a(),{href:o.href,className:"ant-breadcrumb-link",children:o.title}),delete o.href)),o}),[t]);return(0,s.jsx)(i.zrq,{items:r,...n})}},3642:function(e,t,n){var s=n(24246),i=n(13577),r=n(86677),a=n.n(r),o=n(27378),l=n(812),c=n(58452),d=n(77830),p=n(19904),u=n(46628),x=n(98795),h=n(73825);t.Z=e=>{let{property:t,triggerComponent:n}=e,r=(0,i.pmc)(),g=(0,i.qY0)(),[m]=(0,x.YW)(),j=t.experiences.length>0,f=async()=>{g.onClose();let e=await m(t.id);if((0,l.D4)(e)){r((0,u.Vo)((0,l.e$)(e.error)));return}a().push("".concat(d.ru)),r((0,u.t5)("Property ".concat(t.name," deleted successfully")))};return(0,s.jsxs)(p.ZP,{scopes:[h.Sh.PROPERTY_DELETE],children:[(0,s.jsx)(i.esZ,{title:j?"All of the experiences on this property must be unlinked before the property can be deleted.":void 0,placement:"right",children:(0,s.jsx)("span",{children:o.cloneElement(n,{onClick:e=>{e.stopPropagation(),j||g.onOpen()},disabled:j})})}),(0,s.jsx)(c.Z,{isOpen:g.isOpen,onClose:g.onClose,onConfirm:f,title:"Delete ".concat(t.name),message:(0,s.jsxs)(i.xvT,{color:"gray.500",children:["You are about to delete property ",t.name,". This action is not reversible and will result in ",t.name," no longer being available for your data governance. Are you sure you want to proceed?"]}),continueButtonText:"Ok",isCentered:!0,icon:(0,s.jsx)(i.aNP,{})})]})}},25783:function(e,t,n){n.d(t,{V:function(){return M}});var s=n(24246),i=n(92222),r=n(59003),a=n(47935),o=n(13577),l=n(98784),c=n.n(l),d=n(86677),p=n(27378),u=n(77830),x=n(19904),h=n(32885),g=n(98795),m=n(73825),j=e=>{let{buttonLabel:t,buttonProps:n}=e,i=(0,d.useRouter)();return(0,s.jsx)(o.wpx,{onClick:()=>i.push(u.B9),"data-testid":"add-property-button",...n,children:t})},f=n(56358),y=n(88340),C=n(25980),b=n(14048);let v="{privacy-center-hostname-and-path}",w="{property-unique-id}",P='<script src="https://'.concat(v,"/fides.js?property_id=").concat(w,'"></script>'),R="<script>Fides.gtm()</script>";var T=e=>{let{property:t}=e,n=(0,o.qY0)(),i=(0,p.useRef)(null),{fidesCloud:r}=(0,C.hz)(),{data:a,isSuccess:l}=(0,h.Vh)(void 0,{skip:!r}),c=(0,p.useMemo)(()=>{let e=P.replace(w,t.id.toString());return r&&l&&(null==a?void 0:a.privacy_center_url)&&e.replace(v,a.privacy_center_url),e},[null==a?void 0:a.privacy_center_url,r,l,t]);return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(o.wpx,{"aria-label":"Install property",size:"small",className:"mr-[10px]",icon:(0,s.jsx)(b.A5,{}),onClick:e=>{e.stopPropagation(),n.onOpen()}}),(0,s.jsxs)(o.u_l,{isOpen:n.isOpen,onClose:n.onClose,isCentered:!0,size:"xl",initialFocusRef:i,children:[(0,s.jsx)(o.ZAr,{}),(0,s.jsxs)(o.hzk,{"data-testid":"copy-js-tag-modal",children:[(0,s.jsx)(o.xBx,{tabIndex:-1,ref:i,pb:0,children:"Install Fides Consent Manager"}),(0,s.jsx)(o.fef,{pt:3,pb:6,fontSize:"14px",fontWeight:500,children:(0,s.jsxs)(o.Kqy,{spacing:3,children:[(0,s.jsxs)(o.xvT,{children:["Copy the code below and paste it onto every page of the"," ",t.name," property."]}),(0,s.jsxs)(o.xvT,{children:["1. Paste this code as high in the ",(0,s.jsx)("b",{children:"<head>"})," of the page as possible:"]}),(0,s.jsxs)(o.EKh,{display:"flex",justifyContent:"space-between",alignItems:"top",p:0,children:[(0,s.jsx)(o.xvT,{p:4,children:c}),(0,s.jsx)(y.Z,{copyText:c})]}),(0,s.jsx)(o.xvT,{children:"2. Optionally, you can enable Google Tag Manager for managing tags on your website by including the script tag below along with the Fides.js tag. Place it below the Fides.js script tag."}),(0,s.jsxs)(o.EKh,{display:"flex",justifyContent:"space-between",alignItems:"center",p:0,children:[(0,s.jsx)(o.xvT,{p:4,children:R}),(0,s.jsx)(y.Z,{copyText:R})]}),(0,s.jsxs)(o.xvT,{children:["For more information about adding a JavaScript tag to your website, please visit"," ",(0,s.jsx)(o.rUS,{color:"complimentary.500",href:"https://docs.ethyca.com/tutorials/consent-management-configuration/install-fides#install-fidesjs-script-on-your-website",isExternal:!0,children:"docs.ethyca.com"})]})]})})]})]})]})},k=n(3642),E=e=>{let{property:t}=e,n=(0,d.useRouter)(),i=()=>{n.push("".concat(u.ru,"/").concat(t.id))};return(0,s.jsxs)(o.xuv,{py:2,children:[(0,s.jsx)(T,{property:t}),(0,s.jsx)(x.ZP,{scopes:[m.Sh.PROPERTY_UPDATE],children:(0,s.jsx)(o.wpx,{"aria-label":"Edit property","data-testid":"edit-property-button",size:"small",className:"mr-[10px]",icon:(0,s.jsx)(o.dY8,{}),onClick:e=>{e.stopPropagation(),i()}})}),(0,s.jsx)(k.Z,{property:t,triggerComponent:(0,s.jsx)(o.wpx,{"aria-label":"Delete property","data-testid":"delete-property-button",size:"small",className:"mr-[10px]",icon:(0,s.jsx)(f.q,{})})})]})};let z=(0,i.Cl)(),Z={items:[],total:0,page:1,size:25,pages:1},H=()=>(0,s.jsx)(o.gCW,{mt:6,p:10,spacing:4,borderRadius:"base",maxW:"70%","data-testid":"no-results-notice",alignSelf:"center",margin:"auto",children:(0,s.jsxs)(o.gCW,{children:[(0,s.jsx)(o.xvT,{fontSize:"md",fontWeight:"600",children:"No properties found."}),(0,s.jsxs)(x.ZP,{scopes:[m.Sh.PROPERTY_CREATE],children:[(0,s.jsx)(o.xvT,{fontSize:"sm",children:"Click “Add property” to add your first property to Fides."}),(0,s.jsx)(j,{buttonLabel:"Add property",buttonProps:{type:"primary"}})]})]})}),M=()=>{let{isLoading:e}=(0,h.x8)(),t=(0,x.Tg)([m.Sh.PROPERTY_UPDATE]),{PAGE_SIZES:n,pageSize:l,setPageSize:f,onPreviousPageClick:y,isPreviousPageDisabled:C,onNextPageClick:b,isNextPageDisabled:v,startRange:w,endRange:P,pageIndex:R,setTotalPages:T,resetPageIndexToDefault:k}=(0,a.oi)(),M=(0,d.useRouter)(),[V,_]=(0,p.useState)(),N=(0,p.useCallback)(e=>{k(),_(e)},[k,_]),{isFetching:S,isLoading:q,data:O}=(0,g.gz)({page:R,size:l,search:V}),{items:A,total:F,pages:I}=(0,p.useMemo)(()=>O||Z,[O]);(0,p.useEffect)(()=>{T(I)},[I,T]);let L=(0,p.useMemo)(()=>[z.accessor(e=>e.name,{id:"name",cell:e=>(0,s.jsx)(a.G3,{value:e.getValue()}),header:e=>(0,s.jsx)(a.Rr,{value:"Property",...e})}),z.accessor(e=>e.type,{id:"type",cell:e=>(0,s.jsx)(a.G3,{value:c().capitalize(e.getValue())}),header:e=>(0,s.jsx)(a.Rr,{value:"Type",...e})}),z.accessor(e=>e.experiences.map(e=>e.name),{id:"experiences",cell:e=>(0,s.jsx)(a.WP,{suffix:"experiences",value:e.getValue(),...e}),header:e=>(0,s.jsx)(a.Rr,{value:"Experience",...e}),meta:{showHeaderMenu:!0}}),z.display({id:"actions",header:"Actions",cell:e=>{let{row:t}=e;return(0,s.jsx)(E,{property:t.original})}})],[]),W=(0,r.b7)({getCoreRowModel:(0,i.sC)(),getGroupedRowModel:(0,i.qe)(),getExpandedRowModel:(0,i.rV)(),columns:L,manualPagination:!0,data:A,state:{expanded:!0},columnResizeMode:"onChange"});return q||e?(0,s.jsx)(a.I4,{rowHeight:36,numRows:15}):(0,s.jsx)("div",{children:(0,s.jsxs)(o.kCb,{flex:1,direction:"column",overflow:"auto",children:[(0,s.jsxs)(a.Q$,{children:[(0,s.jsx)(a.HO,{globalFilter:V,setGlobalFilter:N,placeholder:"Search property"}),(0,s.jsx)(o.Ugi,{alignItems:"center",spacing:4,children:(0,s.jsx)(x.ZP,{scopes:[m.Sh.PROPERTY_CREATE],children:(0,s.jsx)(j,{buttonLabel:"Add property"})})})]}),(0,s.jsx)(a.ZK,{tableInstance:W,onRowClick:e=>{t&&M.push({pathname:u.D3,query:{id:e.id}})},emptyTableNotice:(0,s.jsx)(H,{})}),(0,s.jsx)(a.s8,{totalRows:F||0,pageSizes:n,setPageSize:f,onPreviousPageClick:y,isPreviousPageDisabled:C||S,onNextPageClick:b,isNextPageDisabled:v||S,startRange:w,endRange:P})]})})}}}]);
1
+ "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[79],{56358:function(e,t,n){n.d(t,{q:function(){return i}});var s=n(24246);let i=(0,n(13577).IUT)({displayName:"TrashCanOutlineIcon",viewBox:"0 0 11 12",path:(0,s.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"})})},77213:function(e,t,n){n.d(t,{Z:function(){return u}});var s=n(24246),i=n(13577),r=n(88038),a=n.n(r),o=n(86677);n(27378);var l=n(25980),c=n(90867),d=n(77830),p=()=>{let e=(0,o.useRouter)();return(0,s.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,s.jsxs)(i.xuv,{children:[(0,s.jsxs)(i.Kqy,{direction:{base:"column",sm:"row"},justifyContent:"space-between",children:[(0,s.jsx)(i.xvT,{fontWeight:"semibold",children:"Configure your storage and messaging provider"}),(0,s.jsx)(i.wpx,{onClick:()=>{e.push(d.fz)},children:"Configure"})]}),(0,s.jsxs)(i.xvT,{children:["Before Fides can process your privacy requests we need two simple steps to configure your storage and email client."," "]})]})})},u=e=>{let{children:t,title:n,padded:r=!0,mainProps:d}=e,u=(0,l.hz)(),x=(0,o.useRouter)(),h="/privacy-requests"===x.pathname||"/datastore-connection"===x.pathname,g=!(u.flags.privacyRequestsConfiguration&&h),{data:m}=(0,c.JE)(void 0,{skip:g}),{data:j}=(0,c.PW)(void 0,{skip:g}),f=u.flags.privacyRequestsConfiguration&&(!m||!j)&&h;return(0,s.jsxs)(i.kCb,{"data-testid":n,direction:"column",h:"100vh",children:[(0,s.jsxs)(a(),{children:[(0,s.jsxs)("title",{children:["Fides Admin UI - ",n]}),(0,s.jsx)("meta",{name:"description",content:"Privacy Engineering Platform"}),(0,s.jsx)("link",{rel:"icon",href:"/favicon.ico"})]}),(0,s.jsxs)(i.kCb,{as:"main",direction:"column",py:r?6:0,px:r?10:0,h:r?"calc(100% - 48px)":"full",flex:1,minWidth:0,overflow:"auto",...d,children:[f?(0,s.jsx)(p,{}):null,t]})]})}},58754:function(e,t,n){var s=n(24246),i=n(13577),r=n(70788);t.Z=e=>{let{heading:t,breadcrumbItems:n,isSticky:a=!0,children:o,rightContent:l,style:c,...d}=e;return(0,s.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,s.jsxs)(i.jqI,{justify:"space-between",children:["string"==typeof t?(0,s.jsx)(i.lQT,{className:n||o?"pb-4":void 0,level:1,"data-testid":"page-heading",children:t}):t,l&&(0,s.jsx)("div",{"data-testid":"page-header-right-content",children:l})]}),!!n&&(0,s.jsx)(r.m,{className:o?"pb-4":void 0,items:n,"data-testid":"page-breadcrumb"}),o]})}},19904:function(e,t,n){n.d(t,{Tg:function(){return a}});var s=n(24246),i=n(16134),r=n(31793);let a=e=>(0,i.C)(r.uu).filter(t=>e.includes(t)).length>0;t.ZP=e=>{let{scopes:t,children:n}=e;return a(t)?(0,s.jsx)(s.Fragment,{children:n}):null}},70788:function(e,t,n){n.d(t,{m:function(){return c}});var s=n(24246),i=n(13577),r=n(79894),a=n.n(r),o=n(27378);let{Text:l}=i.AntTypography,c=e=>{let{items:t,...n}=e,r=(0,o.useMemo)(()=>null==t?void 0:t.map((e,n)=>{let r=n===t.length-1,o={...e},c=o.onClick&&!o.href;return("string"==typeof o.title&&(o.title=(0,s.jsx)(l,{style:{color:"inherit",maxWidth:r?void 0:400},ellipsis:!r,children:o.title})),c)?o.title=(0,s.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,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("span",{className:"anticon align-text-bottom",children:o.icon}),o.title]})),o.href&&o.title&&(o.title=(0,s.jsx)(a(),{href:o.href,className:"ant-breadcrumb-link",children:o.title}),delete o.href)),o}),[t]);return(0,s.jsx)(i.zrq,{items:r,...n})}},3642:function(e,t,n){var s=n(24246),i=n(13577),r=n(86677),a=n.n(r),o=n(27378),l=n(812),c=n(58452),d=n(77830),p=n(19904),u=n(46628),x=n(98795),h=n(54682);t.Z=e=>{let{property:t,triggerComponent:n}=e,r=(0,i.pmc)(),g=(0,i.qY0)(),[m]=(0,x.YW)(),j=t.experiences.length>0,f=async()=>{g.onClose();let e=await m(t.id);if((0,l.D4)(e)){r((0,u.Vo)((0,l.e$)(e.error)));return}a().push("".concat(d.ru)),r((0,u.t5)("Property ".concat(t.name," deleted successfully")))};return(0,s.jsxs)(p.ZP,{scopes:[h.Sh.PROPERTY_DELETE],children:[(0,s.jsx)(i.esZ,{title:j?"All of the experiences on this property must be unlinked before the property can be deleted.":void 0,placement:"right",children:(0,s.jsx)("span",{children:o.cloneElement(n,{onClick:e=>{e.stopPropagation(),j||g.onOpen()},disabled:j})})}),(0,s.jsx)(c.Z,{isOpen:g.isOpen,onClose:g.onClose,onConfirm:f,title:"Delete ".concat(t.name),message:(0,s.jsxs)(i.xvT,{color:"gray.500",children:["You are about to delete property ",t.name,". This action is not reversible and will result in ",t.name," no longer being available for your data governance. Are you sure you want to proceed?"]}),continueButtonText:"Ok",isCentered:!0,icon:(0,s.jsx)(i.aNP,{})})]})}},25783:function(e,t,n){n.d(t,{V:function(){return M}});var s=n(24246),i=n(92222),r=n(59003),a=n(47935),o=n(13577),l=n(98784),c=n.n(l),d=n(86677),p=n(27378),u=n(77830),x=n(19904),h=n(32885),g=n(98795),m=n(54682),j=e=>{let{buttonLabel:t,buttonProps:n}=e,i=(0,d.useRouter)();return(0,s.jsx)(o.wpx,{onClick:()=>i.push(u.B9),"data-testid":"add-property-button",...n,children:t})},f=n(56358),y=n(88340),C=n(25980),b=n(14048);let v="{privacy-center-hostname-and-path}",w="{property-unique-id}",P='<script src="https://'.concat(v,"/fides.js?property_id=").concat(w,'"></script>'),R="<script>Fides.gtm()</script>";var T=e=>{let{property:t}=e,n=(0,o.qY0)(),i=(0,p.useRef)(null),{fidesCloud:r}=(0,C.hz)(),{data:a,isSuccess:l}=(0,h.Vh)(void 0,{skip:!r}),c=(0,p.useMemo)(()=>{let e=P.replace(w,t.id.toString());return r&&l&&(null==a?void 0:a.privacy_center_url)&&e.replace(v,a.privacy_center_url),e},[null==a?void 0:a.privacy_center_url,r,l,t]);return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(o.wpx,{"aria-label":"Install property",size:"small",className:"mr-[10px]",icon:(0,s.jsx)(b.A5,{}),onClick:e=>{e.stopPropagation(),n.onOpen()}}),(0,s.jsxs)(o.u_l,{isOpen:n.isOpen,onClose:n.onClose,isCentered:!0,size:"xl",initialFocusRef:i,children:[(0,s.jsx)(o.ZAr,{}),(0,s.jsxs)(o.hzk,{"data-testid":"copy-js-tag-modal",children:[(0,s.jsx)(o.xBx,{tabIndex:-1,ref:i,pb:0,children:"Install Fides Consent Manager"}),(0,s.jsx)(o.fef,{pt:3,pb:6,fontSize:"14px",fontWeight:500,children:(0,s.jsxs)(o.Kqy,{spacing:3,children:[(0,s.jsxs)(o.xvT,{children:["Copy the code below and paste it onto every page of the"," ",t.name," property."]}),(0,s.jsxs)(o.xvT,{children:["1. Paste this code as high in the ",(0,s.jsx)("b",{children:"<head>"})," of the page as possible:"]}),(0,s.jsxs)(o.EKh,{display:"flex",justifyContent:"space-between",alignItems:"top",p:0,children:[(0,s.jsx)(o.xvT,{p:4,children:c}),(0,s.jsx)(y.Z,{copyText:c})]}),(0,s.jsx)(o.xvT,{children:"2. Optionally, you can enable Google Tag Manager for managing tags on your website by including the script tag below along with the Fides.js tag. Place it below the Fides.js script tag."}),(0,s.jsxs)(o.EKh,{display:"flex",justifyContent:"space-between",alignItems:"center",p:0,children:[(0,s.jsx)(o.xvT,{p:4,children:R}),(0,s.jsx)(y.Z,{copyText:R})]}),(0,s.jsxs)(o.xvT,{children:["For more information about adding a JavaScript tag to your website, please visit"," ",(0,s.jsx)(o.rUS,{color:"complimentary.500",href:"https://docs.ethyca.com/tutorials/consent-management-configuration/install-fides#install-fidesjs-script-on-your-website",isExternal:!0,children:"docs.ethyca.com"})]})]})})]})]})]})},k=n(3642),E=e=>{let{property:t}=e,n=(0,d.useRouter)(),i=()=>{n.push("".concat(u.ru,"/").concat(t.id))};return(0,s.jsxs)(o.xuv,{py:2,children:[(0,s.jsx)(T,{property:t}),(0,s.jsx)(x.ZP,{scopes:[m.Sh.PROPERTY_UPDATE],children:(0,s.jsx)(o.wpx,{"aria-label":"Edit property","data-testid":"edit-property-button",size:"small",className:"mr-[10px]",icon:(0,s.jsx)(o.dY8,{}),onClick:e=>{e.stopPropagation(),i()}})}),(0,s.jsx)(k.Z,{property:t,triggerComponent:(0,s.jsx)(o.wpx,{"aria-label":"Delete property","data-testid":"delete-property-button",size:"small",className:"mr-[10px]",icon:(0,s.jsx)(f.q,{})})})]})};let z=(0,i.Cl)(),Z={items:[],total:0,page:1,size:25,pages:1},H=()=>(0,s.jsx)(o.gCW,{mt:6,p:10,spacing:4,borderRadius:"base",maxW:"70%","data-testid":"no-results-notice",alignSelf:"center",margin:"auto",children:(0,s.jsxs)(o.gCW,{children:[(0,s.jsx)(o.xvT,{fontSize:"md",fontWeight:"600",children:"No properties found."}),(0,s.jsxs)(x.ZP,{scopes:[m.Sh.PROPERTY_CREATE],children:[(0,s.jsx)(o.xvT,{fontSize:"sm",children:"Click “Add property” to add your first property to Fides."}),(0,s.jsx)(j,{buttonLabel:"Add property",buttonProps:{type:"primary"}})]})]})}),M=()=>{let{isLoading:e}=(0,h.x8)(),t=(0,x.Tg)([m.Sh.PROPERTY_UPDATE]),{PAGE_SIZES:n,pageSize:l,setPageSize:f,onPreviousPageClick:y,isPreviousPageDisabled:C,onNextPageClick:b,isNextPageDisabled:v,startRange:w,endRange:P,pageIndex:R,setTotalPages:T,resetPageIndexToDefault:k}=(0,a.oi)(),M=(0,d.useRouter)(),[V,_]=(0,p.useState)(),N=(0,p.useCallback)(e=>{k(),_(e)},[k,_]),{isFetching:S,isLoading:q,data:O}=(0,g.gz)({page:R,size:l,search:V}),{items:A,total:F,pages:I}=(0,p.useMemo)(()=>O||Z,[O]);(0,p.useEffect)(()=>{T(I)},[I,T]);let L=(0,p.useMemo)(()=>[z.accessor(e=>e.name,{id:"name",cell:e=>(0,s.jsx)(a.G3,{value:e.getValue()}),header:e=>(0,s.jsx)(a.Rr,{value:"Property",...e})}),z.accessor(e=>e.type,{id:"type",cell:e=>(0,s.jsx)(a.G3,{value:c().capitalize(e.getValue())}),header:e=>(0,s.jsx)(a.Rr,{value:"Type",...e})}),z.accessor(e=>e.experiences.map(e=>e.name),{id:"experiences",cell:e=>(0,s.jsx)(a.WP,{suffix:"experiences",value:e.getValue(),...e}),header:e=>(0,s.jsx)(a.Rr,{value:"Experience",...e}),meta:{showHeaderMenu:!0}}),z.display({id:"actions",header:"Actions",cell:e=>{let{row:t}=e;return(0,s.jsx)(E,{property:t.original})}})],[]),W=(0,r.b7)({getCoreRowModel:(0,i.sC)(),getGroupedRowModel:(0,i.qe)(),getExpandedRowModel:(0,i.rV)(),columns:L,manualPagination:!0,data:A,state:{expanded:!0},columnResizeMode:"onChange"});return q||e?(0,s.jsx)(a.I4,{rowHeight:36,numRows:15}):(0,s.jsx)("div",{children:(0,s.jsxs)(o.kCb,{flex:1,direction:"column",overflow:"auto",children:[(0,s.jsxs)(a.Q$,{children:[(0,s.jsx)(a.HO,{globalFilter:V,setGlobalFilter:N,placeholder:"Search property"}),(0,s.jsx)(o.Ugi,{alignItems:"center",spacing:4,children:(0,s.jsx)(x.ZP,{scopes:[m.Sh.PROPERTY_CREATE],children:(0,s.jsx)(j,{buttonLabel:"Add property"})})})]}),(0,s.jsx)(a.ZK,{tableInstance:W,onRowClick:e=>{t&&M.push({pathname:u.D3,query:{id:e.id}})},emptyTableNotice:(0,s.jsx)(H,{})}),(0,s.jsx)(a.s8,{totalRows:F||0,pageSizes:n,setPageSize:f,onPreviousPageClick:y,isPreviousPageDisabled:C||S,onNextPageClick:b,isNextPageDisabled:v||S,startRange:w,endRange:P})]})})}}}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8237],{74833:function(e,t,n){var r=n(56127),s=/^\s+/;e.exports=function(e){return e?e.slice(0,r(e)+1).replace(s,""):e}},56632:function(e,t,n){var r=n(89278),s=n(80068),i=n(50098);e.exports=function(e){return function(t,n,a){var o=Object(t);if(!s(t)){var l=r(n,3);t=i(t),n=function(e){return l(o[e],e,o)}}var u=e(t,n,a);return u>-1?o[l?t[u]:u]:void 0}}},56127:function(e){var t=/\s/;e.exports=function(e){for(var n=e.length;n--&&t.test(e.charAt(n)););return n}},64925:function(e,t,n){var r=n(56632)(n(66259));e.exports=r},66259:function(e,t,n){var r=n(95372),s=n(89278),i=n(47991),a=Math.max;e.exports=function(e,t,n){var o=null==e?0:e.length;if(!o)return -1;var l=null==n?0:i(n);return l<0&&(l=a(o+l,0)),r(e,s(t,3),l)}},94919:function(e,t,n){var r=n(91936),s=1/0;e.exports=function(e){return e?(e=r(e))===s||e===-s?(e<0?-1:1)*17976931348623157e292:e==e?e:0:0===e?e:0}},47991:function(e,t,n){var r=n(94919);e.exports=function(e){var t=r(e),n=t%1;return t==t?n?t-n:t:0}},91936:function(e,t,n){var r=n(74833),s=n(11611),i=n(55193),a=0/0,o=/^[-+]0x[0-9a-f]+$/i,l=/^0b[01]+$/i,u=/^0o[0-7]+$/i,c=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(i(e))return a;if(s(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=s(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=r(e);var n=l.test(e);return n||u.test(e)?c(e.slice(2),n?2:8):o.test(e)?a:+e}},35287:function(e,t,n){"use strict";var r=n(24246),s=n(13577),i=n(88038),a=n.n(i);n(27378),t.Z=e=>{let{children:t,title:n,mainProps:i}=e;return(0,r.jsxs)(s.kCb,{"data-testid":n,direction:"column",height:"calc(100vh - 48px)",width:"calc(100vw - 240px)",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.jsx)(s.kCb,{px:10,py:6,as:"main",overflow:"auto",direction:"column",flex:1,minWidth:0,...i,children:t})]})}},58754:function(e,t,n){"use strict";var r=n(24246),s=n(13577),i=n(70788);t.Z=e=>{let{heading:t,breadcrumbItems:n,isSticky:a=!0,children:o,rightContent:l,style:u,...c}=e;return(0,r.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",...u}:{paddingBottom:"24px",...u},children:[(0,r.jsxs)(s.jqI,{justify:"space-between",children:["string"==typeof t?(0,r.jsx)(s.lQT,{className:n||o?"pb-4":void 0,level:1,"data-testid":"page-heading",children:t}):t,l&&(0,r.jsx)("div",{"data-testid":"page-header-right-content",children:l})]}),!!n&&(0,r.jsx)(i.m,{className:o?"pb-4":void 0,items:n,"data-testid":"page-breadcrumb"}),o]})}},34929:function(e,t,n){"use strict";var r=n(24246),s=n(64925),i=n.n(s),a=n(27378),o=n(16134),l=n(30002),u=n(28079),c=n(57072);let d=()=>{let{isLoading:e}=(0,u.fd)(),t=(0,o.C)(u.U3),{isLoading:n}=(0,c.MO)(),r=(0,o.C)(c.qb),{isLoading:s}=(0,l.te)();return{dataUses:t,dataSubjects:(0,o.C)(l.ZL),dataCategories:r,isLoading:e||n||s}};t.Z=()=>{let{dataUses:e,dataCategories:t,dataSubjects:n,isLoading:s}=d(),o=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return e.split(".").slice(0,t).join(".")},l=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,r=t(e);if(!r)return{};let s=t(o(e,n)),i=!!r.parent_key;return{name:r.name||void 0,primaryName:i&&(null==s?void 0:s.name)!==r.name&&(null==s?void 0:s.name)||void 0}},u=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,{name:s,primaryName:i}=l(e,t,n);return s?i?(0,r.jsxs)(a.Fragment,{children:[(0,r.jsxs)("strong",{children:[i,":"]})," ",s]},e):(0,r.jsx)("strong",{children:s},e):e},c=t=>i()(e,{fides_key:t}),p=e=>i()(t,{fides_key:e}),m=e=>i()(n,{fides_key:e});return{getDataUses:()=>e,getDataUseByKey:c,getDataUseDisplayName:e=>u(e,c,1),getDataUseDisplayNameProps:e=>l(e,c,1),getDataCategories:()=>t,getDataCategoryByKey:p,getDataCategoryDisplayName:e=>u(e,p,2),getDataCategoryDisplayNameProps:e=>l(e,p,2),getDataSubjects:()=>n,getDataSubjectByKey:m,getDataSubjectDisplayName:e=>{let t=m(e);return t?t.name:e},getPrimaryKey:o,isLoading:s}}},70788:function(e,t,n){"use strict";n.d(t,{m:function(){return u}});var r=n(24246),s=n(13577),i=n(79894),a=n.n(i),o=n(27378);let{Text:l}=s.AntTypography,u=e=>{let{items:t,...n}=e,i=(0,o.useMemo)(()=>null==t?void 0:t.map((e,n)=>{let i=n===t.length-1,o={...e},u=o.onClick&&!o.href;return("string"==typeof o.title&&(o.title=(0,r.jsx)(l,{style:{color:"inherit",maxWidth:i?void 0:400},ellipsis:!i,children:o.title})),u)?o.title=(0,r.jsx)(s.wpx,{type:"text",size:"small",icon:o.icon,onClick:o.onClick,className:"ant-breadcrumb-link -mt-px px-1 text-inherit",children:o.title}):(o.icon&&(o.title=(0,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)(s.zrq,{items:i,...n})}},25415:function(e,t,n){"use strict";n.d(t,{a:function(){return i}});var r=n(24246);let{Text:s}=n(13577).AntTypography,i=e=>{let{count:t}=e;return(0,r.jsx)(s,{size:"sm",strong:!0,"data-testid":"selected-count",children:"".concat(t," selected")})}},2525:function(e,t,n){"use strict";n.d(t,{Q:function(){return o}});var r=n(24246),s=n(13577),i=n(27378),a=n(97327);let o=e=>{let{values:t,columnState:n,...o}=e,{isExpanded:l,isWrapped:u,version:c}=n||{},[d,p]=(0,i.useState)(!l),[m,f]=(0,i.useState)(!!u),[g,v]=(0,i.useState)(l?t:null==t?void 0:t.slice(0,2));(0,i.useEffect)(()=>{p(!l)},[l,c]),(0,i.useEffect)(()=>{f(!!u)},[u]),(0,i.useEffect)(()=>{(null==t?void 0:t.length)&&v(d?t.slice(0,2):t)},[d,t]);let y=(0,i.useCallback)(()=>{v(null==t?void 0:t.slice(0,2)),p(!0)},[t]),h=(0,i.useCallback)(()=>{p(!1)},[]),x=(0,i.useCallback)(()=>{d?h():y()},[d,h,y]);return(0,i.useMemo)(()=>(null==g?void 0:g.length)?(0,r.jsxs)(s.jqI,{align:"center",wrap:m?"wrap":"nowrap",gap:"small","data-testid":"tag-expandable-cell",children:[g.map(e=>(0,r.jsx)(s.j8w,{color:"white","data-testid":e.key,...o,children:e.label},e.key)),t&&t.length>2&&(0,r.jsx)(s.wpx,{type:"link",size:"small",onClick:e=>{e.stopPropagation(),x()},className:"h-auto p-0",style:{fontSize:"var(--ant-font-size)"},children:d?"+".concat(t.length-2," more"):a.T})]}):(0,r.jsx)("span",{"data-testid":"tag-expandable-cell-empty"}),[g,d,m,t,x,o])}},97327:function(e,t,n){"use strict";n.d(t,{T:function(){return r}});let r="show less"},91982:function(e,t,n){"use strict";n.d(t,{vx:function(){return l},OL:function(){return c},Q3:function(){return d.Q},DI:function(){return u}});var r=n(24246),s=n(13577),i=n(27378),a=n(97327);let{Text:o}=s.AntTypography,l=e=>{let{values:t,valueSuffix:n,columnState:l}=e,{isExpanded:u,version:c}=l||{},[d,p]=(0,i.useState)(!u);(0,i.useEffect)(()=>{p(!u)},[u,c]);let m=(0,i.useCallback)(()=>{p(!0)},[]),f=(0,i.useCallback)(()=>{p(!1)},[]),g=(0,i.useCallback)(()=>{d?f():m()},[d,f,m]);return(0,i.useMemo)(()=>(null==t?void 0:t.length)?1===t.length?(0,r.jsx)(o,{ellipsis:!0,"data-testid":"list-expandable-cell-single",children:t[0]}):(0,r.jsxs)(s.jqI,{align:d?"center":"flex-start",vertical:!d,gap:d?"small":"none","data-testid":"list-expandable-cell",children:[d?(0,r.jsxs)(o,{ellipsis:!0,children:[t.length," ",n]}):(0,r.jsx)(s.krs,{dataSource:t,renderItem:e=>(0,r.jsx)("li",{children:e})}),(0,r.jsx)(s.wpx,{type:"link",size:"small",onClick:e=>{e.stopPropagation(),g()},className:"h-auto p-0",style:{fontSize:"var(--ant-font-size)"},children:d?"view":a.T})]}):null,[d,t,n,g])},u=[{key:"expand-all",label:"Expand all",icon:(0,r.jsx)(s.PJP.jbG,{})},{key:"collapse-all",label:"Collapse all",icon:(0,r.jsx)(s.PJP.MVB,{})}],c=e=>{let{title:t,menuIcon:n,menuIconLabel:i="Menu",menu:a,...o}=e;return(0,r.jsxs)(s.jqI,{align:"center",justify:"space-between",children:[t,(0,r.jsx)(s.S0p,{trigger:["click"],menu:a,placement:"bottomRight",...o,children:(0,r.jsx)(s.wpx,{icon:n||(0,r.jsx)(s.PJP.r43,{title:i}),size:"small",type:"text",className:"ant-table-filter-trigger"})})]})};var d=n(2525)},54762:function(e,t,n){"use strict";n.d(t,{l:function(){return o}});var r=n(24246),s=n(13577),i=n(62165),a=n(54682);let o=e=>{let{consentStatus:t}=e,{flags:n}=(0,i.hz)(),{assetConsentStatusLabels:o}=n;return o&&(null==t?void 0:t.status)===a.pF.ALERT?(0,r.jsx)(s.esZ,{title:null==t?void 0:t.message,"data-testid":"discovery-status-icon-alert-tooltip",children:(0,r.jsx)("div",{className:"mb-px","data-testid":"discovery-status-icon-alert",children:(0,r.jsx)(s.PJP.OdJ,{style:{color:"var(--fidesui-error)"}})})}):null}},9320:function(e,t,n){"use strict";n.d(t,{_:function(){return i}});var r=n(24246),s=n(26089);let i=(e,t)=>(0,r.jsxs)(r.Fragment,{children:[e," ",t&&(0,r.jsx)(s.Z,{onClick:t,children:"View"})]})},37059:function(e,t,n){"use strict";n.d(t,{Ak:function(){return g},EY:function(){return d},Tj:function(){return m},Ud:function(){return a},Vr:function(){return v},WJ:function(){return l},mi:function(){return y},nP:function(){return c},nS:function(){return p},rs:function(){return u},sX:function(){return f},wi:function(){return o}});var r=n(78780),s=n(16394),i=n(54682);let{useGetAggregateMonitorResultsQuery:a,useGetDiscoveredSystemAggregateQuery:o,useGetDiscoveredAssetsQuery:l,useAddMonitorResultSystemsMutation:u,useIgnoreMonitorResultSystemsMutation:c,useAddMonitorResultAssetsMutation:d,useIgnoreMonitorResultAssetsMutation:p,useRestoreMonitorResultAssetsMutation:m,useUpdateAssetsSystemMutation:f,useUpdateAssetsDataUseMutation:g,useUpdateAssetsMutation:v,useGetConsentBreakdownQuery:y}=r.u.injectEndpoints({endpoints:e=>({getAggregateMonitorResults:e.query({query:e=>{let{page:t=1,size:n=20,search:r}=e;return{url:"/plus/discovery-monitor/aggregate-results",params:{page:t,size:n,search:r,diff_status:"addition"}}},providesTags:["Discovery Monitor Results"]}),getDiscoveredSystemAggregate:e.query({query:e=>{let{key:t,page:n=1,size:r=20,search:s,diff_status:i}=e;return{url:"/plus/discovery-monitor/system-aggregate-results",params:{monitor_config_id:t,page:n,size:r,search:s,diff_status:i}}},providesTags:["Discovery Monitor Results"]}),getDiscoveredAssets:e.query({query:e=>{let{key:t,system:n,page:r=1,size:i=20,search:a,diff_status:o,sort_by:l=["consent_aggregated","urn"],sort_asc:u=!0}=e;return{url:"/plus/discovery-monitor/".concat(t,"/results?").concat((0,s.du)(Array.isArray(l)?l:[l],"sort_by")),params:{resolved_system_id:n,page:r,size:i,search:a,diff_status:o,sort_asc:u}}},providesTags:()=>["Discovery Monitor Results"]}),addMonitorResultSystems:e.mutation({query:e=>{let{monitor_config_key:t,resolved_system_ids:n}=e,r=(0,s.du)(n,"resolved_system_ids");return{method:"POST",url:"/plus/discovery-monitor/".concat(t,"/promote?").concat(r)}},invalidatesTags:["Discovery Monitor Results"]}),ignoreMonitorResultSystems:e.mutation({query:e=>{let{monitor_config_key:t,resolved_system_ids:n}=e,r=(0,s.du)(n,"resolved_system_ids");return{method:"POST",url:"/plus/discovery-monitor/".concat(t,"/mute?").concat(r)}},invalidatesTags:["Discovery Monitor Results"]}),addMonitorResultAssets:e.mutation({query:e=>{var t;let n=new URLSearchParams;return null===(t=e.urnList)||void 0===t||t.forEach(e=>n.append("staged_resource_urns",e)),{method:"POST",url:"/plus/discovery-monitor/promote?".concat(n)}},invalidatesTags:["Discovery Monitor Results"]}),ignoreMonitorResultAssets:e.mutation({query:e=>{var t;let n=new URLSearchParams;return null===(t=e.urnList)||void 0===t||t.forEach(e=>n.append("staged_resource_urns",e)),{method:"POST",url:"/plus/discovery-monitor/mute?".concat(n)}},invalidatesTags:["Discovery Monitor Results"]}),restoreMonitorResultAssets:e.mutation({query:e=>{var t;let n=new URLSearchParams({status_to_set:i.LL.ADDITION});return null===(t=e.urnList)||void 0===t||t.forEach(e=>n.append("staged_resource_urns",e)),{method:"POST",url:"/plus/discovery-monitor/un-mute?".concat(n)}},invalidatesTags:["Discovery Monitor Results"]}),updateAssetsSystem:e.mutation({query:e=>({method:"PATCH",url:"/plus/discovery-monitor/".concat(e.monitorId,"/results"),body:e.urnList.map(t=>({urn:t,user_assigned_system_key:e.systemKey}))}),invalidatesTags:["Discovery Monitor Results","System Assets"]}),updateAssetsDataUse:e.mutation({query:e=>({method:"PATCH",url:"/plus/discovery-monitor/".concat(e.monitorId,"/results"),body:e.urnList.map(t=>({urn:t,user_assigned_data_uses:e.dataUses}))}),invalidatesTags:["Discovery Monitor Results"]}),updateAssets:e.mutation({query:e=>({method:"PATCH",url:"/plus/discovery-monitor/".concat(e.monitorId,"/results"),body:e.assets}),invalidatesTags:["Discovery Monitor Results"]}),getConsentBreakdown:e.query({query:e=>{let{stagedResourceUrn:t,status:n,page:r=1,size:s=20}=e;return{url:"/plus/discovery-monitor/staged_resource/".concat(encodeURIComponent(t),"/consent"),params:{status:n,page:r,size:s}}}})})})},88708:function(e,t,n){"use strict";n.d(t,{A:function(){return s}});var r,s,i=n(27378),a=n(14908),o=n(54682);(r=s||(s={})).ATTENTION_REQUIRED="attention-required",r.RECENT_ACTIVITY="recent-activity",r.IGNORED="ignored",t.Z=e=>{let{activeTab:t,onTabChange:n}=(0,a.Z)({tabKeys:Object.values(s)}),r=(0,i.useMemo)(()=>[{label:"Attention required",params:{diff_status:[o.LL.ADDITION],system:e},hash:"attention-required"},{label:"Recent activity",params:{diff_status:[o.LL.MONITORED]},hash:"recent-activity"},{label:"Ignored",params:{diff_status:[o.LL.MUTED],system:e},hash:"ignored"}],[e]),{diff_status:l,system:u}=(0,i.useMemo)(()=>{var e;return null!==(e=r.find(e=>e.hash===t))&&void 0!==e?e:r[0]},[r,t]).params,c=(0,i.useMemo)(()=>l.includes(o.LL.MONITORED),[l]);return{filterTabs:r,activeTab:t,onTabChange:n,activeParams:(0,i.useMemo)(()=>e?{diff_status:l,system:u}:{diff_status:l},[e,l,u]),actionsDisabled:c}}},78238:function(e,t,n){"use strict";n.d(t,{g:function(){return r}});let r=["essential","functional.service.improve","personalize","analytics","marketing.advertising.first_party.targeted","marketing.advertising.third_party.targeted"];t.Z=e=>r.includes(e)},31883:function(e,t,n){"use strict";n.d(t,{Bw:function(){return r.Bw},D4:function(){return r.D4}});var r=n(19043)}}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8765],{82545:function(t,r,e){var n=e(81822)(e(77400),"DataView");t.exports=n},64825:function(t,r,e){var n=e(81822)(e(77400),"Promise");t.exports=n},23694:function(t,r,e){var n=e(36301),o=e(7354),c=e(5863),u=e(12367),i=e(90748),a=e(97569);function s(t){var r=this.__data__=new n(t);this.size=r.size}s.prototype.clear=o,s.prototype.delete=c,s.prototype.get=u,s.prototype.has=i,s.prototype.set=a,t.exports=s},59942:function(t,r,e){var n=e(77400).Uint8Array;t.exports=n},66902:function(t,r,e){var n=e(81822)(e(77400),"WeakMap");t.exports=n},10263:function(t){t.exports=function(t,r){for(var e=-1,n=null==t?0:t.length,o=0,c=[];++e<n;){var u=t[e];r(u,e,t)&&(c[o++]=u)}return c}},98213:function(t,r,e){var n=e(24701),o=e(2900),c=e(19785),u=e(43854),i=e(42383),a=e(48519),s=Object.prototype.hasOwnProperty;t.exports=function(t,r){var e=c(t),f=!e&&o(t),p=!e&&!f&&u(t),b=!e&&!f&&!p&&a(t),y=e||f||p||b,l=y?n(t.length,String):[],v=l.length;for(var j in t)(r||s.call(t,j))&&!(y&&("length"==j||p&&("offset"==j||"parent"==j)||b&&("buffer"==j||"byteLength"==j||"byteOffset"==j)||i(j,v)))&&l.push(j);return l}},97141:function(t){t.exports=function(t,r){for(var e=-1,n=r.length,o=t.length;++e<n;)t[o+e]=r[e];return t}},11324:function(t,r,e){var n=e(97141),o=e(19785);t.exports=function(t,r,e){var c=r(t);return o(t)?c:n(c,e(t))}},55829:function(t,r,e){var n=e(99736),o=e(92360);t.exports=function(t){return o(t)&&"[object Arguments]"==n(t)}},26972:function(t,r,e){var n=e(99736),o=e(84194),c=e(92360),u={};u["[object Float32Array]"]=u["[object Float64Array]"]=u["[object Int8Array]"]=u["[object Int16Array]"]=u["[object Int32Array]"]=u["[object Uint8Array]"]=u["[object Uint8ClampedArray]"]=u["[object Uint16Array]"]=u["[object Uint32Array]"]=!0,u["[object Arguments]"]=u["[object Array]"]=u["[object ArrayBuffer]"]=u["[object Boolean]"]=u["[object DataView]"]=u["[object Date]"]=u["[object Error]"]=u["[object Function]"]=u["[object Map]"]=u["[object Number]"]=u["[object Object]"]=u["[object RegExp]"]=u["[object Set]"]=u["[object String]"]=u["[object WeakMap]"]=!1,t.exports=function(t){return c(t)&&o(t.length)&&!!u[n(t)]}},20186:function(t,r,e){var n=e(56016),o=e(50962),c=Object.prototype.hasOwnProperty;t.exports=function(t){if(!n(t))return o(t);var r=[];for(var e in Object(t))c.call(t,e)&&"constructor"!=e&&r.push(e);return r}},24701:function(t){t.exports=function(t,r){for(var e=-1,n=Array(t);++e<t;)n[e]=r(e);return n}},39334:function(t){t.exports=function(t){return function(r){return t(r)}}},51385:function(t,r,e){var n=e(11324),o=e(83080),c=e(50098);t.exports=function(t){return n(t,c,o)}},83080:function(t,r,e){var n=e(10263),o=e(15937),c=Object.prototype.propertyIsEnumerable,u=Object.getOwnPropertySymbols,i=u?function(t){return null==t?[]:n(u(t=Object(t)),function(r){return c.call(t,r)})}:o;t.exports=i},3533:function(t,r,e){var n=e(82545),o=e(44538),c=e(64825),u=e(46151),i=e(66902),a=e(99736),s=e(76532),f="[object Map]",p="[object Promise]",b="[object Set]",y="[object WeakMap]",l="[object DataView]",v=s(n),j=s(o),x=s(c),h=s(u),_=s(i),d=a;(n&&d(new n(new ArrayBuffer(1)))!=l||o&&d(new o)!=f||c&&d(c.resolve())!=p||u&&d(new u)!=b||i&&d(new i)!=y)&&(d=function(t){var r=a(t),e="[object Object]"==r?t.constructor:void 0,n=e?s(e):"";if(n)switch(n){case v:return l;case j:return f;case x:return p;case h:return b;case _:return y}return r}),t.exports=d},42383:function(t){var r=/^(?:0|[1-9]\d*)$/;t.exports=function(t,e){var n=typeof t;return!!(e=null==e?9007199254740991:e)&&("number"==n||"symbol"!=n&&r.test(t))&&t>-1&&t%1==0&&t<e}},56016:function(t){var r=Object.prototype;t.exports=function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||r)}},50962:function(t,r,e){var n=e(58023)(Object.keys,Object);t.exports=n},18125:function(t,r,e){t=e.nmd(t);var n=e(39120),o=r&&!r.nodeType&&r,c=o&&t&&!t.nodeType&&t,u=c&&c.exports===o&&n.process,i=function(){try{var t=c&&c.require&&c.require("util").types;if(t)return t;return u&&u.binding&&u.binding("util")}catch(t){}}();t.exports=i},58023:function(t){t.exports=function(t,r){return function(e){return t(r(e))}}},7354:function(t,r,e){var n=e(36301);t.exports=function(){this.__data__=new n,this.size=0}},5863:function(t){t.exports=function(t){var r=this.__data__,e=r.delete(t);return this.size=r.size,e}},12367:function(t){t.exports=function(t){return this.__data__.get(t)}},90748:function(t){t.exports=function(t){return this.__data__.has(t)}},97569:function(t,r,e){var n=e(36301),o=e(44538),c=e(74554);t.exports=function(t,r){var e=this.__data__;if(e instanceof n){var u=e.__data__;if(!o||u.length<199)return u.push([t,r]),this.size=++e.size,this;e=this.__data__=new c(u)}return e.set(t,r),this.size=e.size,this}},2900:function(t,r,e){var n=e(55829),o=e(92360),c=Object.prototype,u=c.hasOwnProperty,i=c.propertyIsEnumerable,a=n(function(){return arguments}())?n:function(t){return o(t)&&u.call(t,"callee")&&!i.call(t,"callee")};t.exports=a},19785:function(t){var r=Array.isArray;t.exports=r},80068:function(t,r,e){var n=e(28338),o=e(84194);t.exports=function(t){return null!=t&&o(t.length)&&!n(t)}},43854:function(t,r,e){t=e.nmd(t);var n=e(77400),o=e(57714),c=r&&!r.nodeType&&r,u=c&&t&&!t.nodeType&&t,i=u&&u.exports===c?n.Buffer:void 0,a=i?i.isBuffer:void 0;t.exports=a||o},84194:function(t){t.exports=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}},48519:function(t,r,e){var n=e(26972),o=e(39334),c=e(18125),u=c&&c.isTypedArray,i=u?o(u):n;t.exports=i},50098:function(t,r,e){var n=e(98213),o=e(20186),c=e(80068);t.exports=function(t){return c(t)?n(t):o(t)}},15937:function(t){t.exports=function(){return[]}},57714:function(t){t.exports=function(){return!1}}}]);
@@ -1 +1 @@
1
- "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9046],{12627:function(e,s,a){var i=a(24246),t=a(79283),l=a(34929);s.Z=e=>{let{selectedTaxonomies:s,showDisabled:a=!1,...r}=e,{getDataCategoryDisplayNameProps:n,getDataCategories:o}=(0,l.Z)(),d=(a?o():o().filter(e=>e.active)).filter(e=>!s.includes(e.fides_key)).map(e=>{let{name:s,primaryName:a}=n(e.fides_key);return{value:e.fides_key,name:s,primaryName:a,description:e.description||""}});return(0,i.jsx)(t.l,{options:d,...r})}},14908:function(e,s,a){var i=a(86677),t=a(27378);let l=e=>e.startsWith("#")?e.slice(1):e;s.Z=e=>{let{tabKeys:s,initialTab:a}=e,r=(0,i.useRouter)(),n=r.asPath.split("#")[1]||s[0],[o,d]=(0,t.useState)(n);return(0,t.useEffect)(()=>{a&&s.includes(a)&&d(a)},[a,s,r.isReady]),{activeTab:o,onTabChange:(0,t.useCallback)(async e=>{if(!s.includes(e)){d(s[0]),await r.replace({pathname:r.pathname,query:r.query,hash:void 0});return}d(e),r.isReady&&await r.replace({pathname:r.pathname,query:r.query,hash:l(e)},void 0,{shallow:!0})},[r,s])}}},69828:function(e,s,a){a.d(s,{Y:function(){return r}});var i=a(24246),t=a(13577),l=a(70788);let r=[(0,i.jsx)(t.PJP.S9g,{},"layers"),(0,i.jsx)(t.PJP.ehp,{},"dataset"),(0,i.jsx)(t.PJP.iA_,{},"table"),(0,i.jsx)(t.PJP.$4y,{style:{transform:"rotate(-90deg)"}},"field")];s.Z=e=>{let{resourceUrn:s,parentLink:a,onPathClick:t=()=>{}}=e,n=[];if(s||n.push({title:"All activity"}),s){n.push({title:"All activity",href:a});let e=s.split(".");e.forEach((s,a)=>{0!==a&&n.push({title:s,icon:r[a-1],onClick:s=>{s.preventDefault(),t(e.slice(0,a+1).join("."))}})})}return(0,i.jsx)(l.m,{"data-testid":"results-breadcrumb",items:n})}},11904:function(e,s,a){a.d(s,{Z:function(){return E}});var i,t,l=a(24246),r=a(59003),n=a(92222),o=a(13577),d=a(27378),c=a(47935),u=a(70675),g=a(72625),x=a(79947),h=a(50169),j=a(28278),m=a(74241),p=a(73825),f=a(91761),v=a(61099),y=a(87667),I=e=>{let{resourceType:s}=e,a=(0,n.Cl)();return s===p.D$.SCHEMA?{columns:[a.accessor(e=>e.name,{id:"name",cell:e=>(0,l.jsx)(y.Z,{result:e.row.original,changeTypeOverride:j.E.CLASSIFICATION}),header:e=>(0,l.jsx)(c.Rr,{value:"Name",...e}),size:300}),a.accessor(e=>e.urn,{id:"project",cell:e=>(0,l.jsx)(c.G3,{value:(0,m.Z)(e.getValue())}),header:e=>(0,l.jsx)(c.Rr,{value:"Project",...e})}),a.display({id:"status",cell:e=>(0,l.jsx)(h.Z,{result:e.row.original}),header:e=>(0,l.jsx)(c.Rr,{value:"Status",...e})}),a.accessor(e=>e.system,{id:"system",cell:e=>(0,l.jsx)(c.G3,{value:e.getValue()}),header:e=>(0,l.jsx)(c.Rr,{value:"System",...e})}),a.accessor(e=>e.monitor_config_id,{id:"monitor",cell:e=>(0,l.jsx)(c.G3,{value:e.getValue()}),header:e=>(0,l.jsx)(c.Rr,{value:"Detected by",...e})}),a.accessor(e=>e.updated_at,{id:"time",cell:e=>(0,l.jsx)(g.Cy,{time:e.getValue()}),header:e=>(0,l.jsx)(c.Rr,{value:"When",...e})}),a.display({id:"action",cell:e=>e.row.original.diff_status!==p.LL.MUTED?(0,l.jsx)(f.Z,{resource:e.row.original}):(0,l.jsx)(c.G3,{value:"--"}),header:"Actions",size:235,meta:{disableRowClick:!0}})]}:s===p.D$.TABLE?{columns:[a.display({id:"select",cell:e=>{var s;let{row:a}=e;return(0,l.jsx)(g.k,{isChecked:a.getIsSelected(),onChange:a.getToggleSelectedHandler(),dataTestId:"select-".concat(null!==(s=a.original.name)&&void 0!==s?s:a.id)})},header:e=>{let{table:s}=e;return(0,l.jsx)(g.k,{isChecked:s.getIsAllPageRowsSelected(),isIndeterminate:s.getIsSomeRowsSelected(),onChange:s.getToggleAllRowsSelectedHandler(),dataTestId:"select-all-rows"})},maxSize:40}),a.accessor(e=>e.name,{id:"tables",cell:e=>(0,l.jsx)(y.Z,{result:e.row.original}),header:e=>(0,l.jsx)(c.Rr,{value:"Table name",...e}),size:300}),a.accessor(e=>e.description,{id:"description",cell:e=>(0,l.jsx)(c.G3,{value:e.getValue(),cellProps:e}),header:e=>(0,l.jsx)(c.Rr,{value:"Description",...e}),meta:{showHeaderMenu:!0}}),a.display({id:"status",cell:e=>(0,l.jsx)(h.Z,{result:e.row.original}),header:e=>(0,l.jsx)(c.Rr,{value:"Status",...e})}),a.display({id:"type",cell:()=>(0,l.jsx)(c.G3,{value:"Table"}),header:"Type"}),a.accessor(e=>e.updated_at,{id:"time",cell:e=>(0,l.jsx)(g.Cy,{time:e.getValue()}),header:"Time"}),a.display({id:"actions",cell:e=>(0,l.jsx)(f.Z,{resource:e.row.original}),header:"Actions",size:235,meta:{disableRowClick:!0}})]}:s===p.D$.FIELD?{columns:[a.accessor(e=>e.name,{id:"name",cell:e=>(0,l.jsx)(y.Z,{result:e.row.original}),header:e=>(0,l.jsx)(c.Rr,{value:"Field name",...e}),size:300}),a.accessor(e=>e.source_data_type,{id:"data-type",cell:e=>(0,l.jsx)(x.Z,{type:e.getValue()}),header:e=>(0,l.jsx)(c.Rr,{value:"Data type",...e})}),a.accessor(e=>e.description,{id:"description",cell:e=>(0,l.jsx)(c.G3,{value:e.getValue(),cellProps:e}),header:e=>(0,l.jsx)(c.Rr,{value:"Description",...e}),meta:{showHeaderMenu:!0}}),a.display({id:"status",cell:e=>(0,l.jsx)(h.Z,{result:e.row.original}),header:e=>(0,l.jsx)(c.Rr,{value:"Status",...e})}),a.display({id:"type",cell:()=>(0,l.jsx)(c.G3,{value:"Field"}),header:"Type"}),a.display({id:"classifications",cell:e=>{let{row:s}=e;return(0,l.jsx)(v.Z,{resource:s.original})},meta:{overflow:"visible",disableRowClick:!0},header:"Data category",minSize:280}),a.accessor(e=>e.updated_at,{id:"time",cell:e=>(0,l.jsx)(g.Cy,{time:e.getValue()}),header:e=>(0,l.jsx)(c.Rr,{value:"When",...e})}),a.display({id:"actions",cell:e=>(0,l.jsx)(f.Z,{resource:e.row.original}),header:"Actions",size:235,meta:{disableRowClick:!0}})]}:s===p.D$.ENDPOINT?{columns:[a.accessor(e=>e.name,{id:"name",cell:e=>(0,l.jsx)(y.Z,{result:e.row.original}),header:e=>(0,l.jsx)(c.Rr,{value:"Object",...e}),size:300}),a.accessor(e=>e.description,{id:"description",cell:e=>(0,l.jsx)(c.G3,{value:e.getValue(),cellProps:e}),header:e=>(0,l.jsx)(c.Rr,{value:"Description",...e}),meta:{showHeaderMenu:!0}}),a.display({id:"status",cell:e=>(0,l.jsx)(h.Z,{result:e.row.original}),header:e=>(0,l.jsx)(c.Rr,{value:"Status",...e})}),a.display({id:"type",cell:()=>(0,l.jsx)(c.G3,{value:"Endpoint"}),header:"Type"}),a.display({id:"classifications",cell:e=>{let{row:s}=e;return(0,l.jsx)(v.Z,{resource:s.original})},meta:{overflow:"visible",disableRowClick:!0},header:"Data category",minSize:280}),a.accessor(e=>e.updated_at,{id:"time",cell:e=>(0,l.jsx)(g.Cy,{time:e.getValue()}),header:e=>(0,l.jsx)(c.Rr,{value:"When",...e})}),a.display({id:"actions",cell:e=>(0,l.jsx)(f.Z,{resource:e.row.original}),header:"Actions",size:235,meta:{disableRowClick:!0}})]}:{columns:[]}},C=a(14908);(i=t||(t={})).ACTION_REQUIRED="action-required",i.IN_PROGRESS="in-progress",i.UNMONITORED="unmonitored";let _={"action-required":{label:"Action Required",key:"action-required",filters:[p.LL.CLASSIFICATION_ADDITION,p.LL.CLASSIFICATION_UPDATE],childFilters:[p.LL.CLASSIFICATION_ADDITION,p.LL.CLASSIFICATION_UPDATE]},"in-progress":{label:"In progress",key:"in-progress",filters:[p.LL.CLASSIFYING,p.LL.CLASSIFICATION_QUEUED],childFilters:[p.LL.CLASSIFYING,p.LL.CLASSIFICATION_QUEUED]},unmonitored:{label:"Unmonitored",key:"unmonitored",filters:[p.LL.MUTED],childFilters:[]}};var L=()=>{var e,s;let{activeTab:a,onTabChange:i}=(0,C.Z)({tabKeys:Object.values(t)});return{filterTabs:Object.values(_),activeTab:a,onTabChange:i,activeDiffFilters:null===(e=_[a])||void 0===e?void 0:e.filters,activeChildDiffFilters:null===(s=_[a])||void 0===s?void 0:s.childFilters}},b=a(47182),w=a(38347),S=a(79494),A=e=>{let{resourceUrn:s}=e,[a,{isLoading:i}]=(0,u.Hf)(),[t,{isLoading:r}]=(0,u.zV)(),n=i||r,d=async e=>{await t({staged_resource_urns:e})},c=async e=>{await a({staged_resource_urns:e})};return(0,l.jsx)(o.jqI,{"data-testid":"bulk-actions-menu",children:(0,l.jsxs)("div",{className:"flex gap-2",children:[(0,l.jsx)(S.Z,{title:"Confirm all",icon:(0,l.jsx)(o.nQG,{}),onClick:()=>c([s]),disabled:n,loading:i,type:"primary",size:"middle"}),(0,l.jsx)(S.Z,{title:"Ignore all",icon:(0,l.jsx)(o.tpL,{}),onClick:()=>d([s]),disabled:n,loading:r,size:"middle"})]})})},R=e=>{let{selectedUrns:s}=e,[a,{isLoading:i}]=(0,u.Hf)(),[t,{isLoading:r}]=(0,u.zV)(),n=i||r,d=async e=>{await a({staged_resource_urns:e})},c=async e=>{await t({staged_resource_urns:e})};return s.length?(0,l.jsxs)(o.jqI,{className:"items-center","data-testid":"bulk-actions-menu",children:[(0,l.jsx)(o.xvT,{fontSize:"xs",fontWeight:"semibold",minW:16,mr:4,children:"".concat(s.length," selected")}),(0,l.jsxs)(o.jqI,{className:"gap-2",children:[(0,l.jsx)(S.Z,{title:"Confirm",icon:(0,l.jsx)(o.nQG,{}),onClick:()=>d(s),disabled:n,loading:i,type:"primary",size:"middle"}),(0,l.jsx)(S.Z,{title:"Ignore",icon:(0,l.jsx)(o.tpL,{}),disabled:n,loading:r,onClick:()=>c(s),size:"middle"})]})]}):null},T=a(7940),D=a(80285),k=a(36168),N=a(30952);let Z={items:[],total:0,page:1,size:50,pages:1},F=()=>(0,l.jsx)(o.gCW,{mt:6,p:10,spacing:4,borderRadius:"base",maxW:"70%","data-testid":"empty-state",alignSelf:"center",margin:"auto",children:(0,l.jsxs)(o.gCW,{children:[(0,l.jsx)(o.xvT,{fontSize:"md",fontWeight:"600",children:"No activity found"}),(0,l.jsx)(o.xvT,{fontSize:"sm",children:"You're up to date!"})]})});var E=e=>{let{resourceUrn:s}=e,[a,i]=(0,d.useState)(""),{filterTabs:t,activeTab:g,onTabChange:x,activeDiffFilters:h,activeChildDiffFilters:j}=L(),[m,f]=(0,d.useState)({}),{PAGE_SIZES:v,pageSize:y,setPageSize:C,onPreviousPageClick:_,isPreviousPageDisabled:S,onNextPageClick:E,isNextPageDisabled:P,startRange:z,endRange:O,pageIndex:G,setTotalPages:U,resetPageIndexToDefault:M}=(0,c.oi)();(0,d.useEffect)(()=>{M()},[s,a,M,h,j]);let{isFetching:V,isLoading:q,data:$}=(0,u.z8)({staged_resource_urn:s,page:G,size:y,child_diff_status:j,diff_status:h,search:a}),W=(0,T.G)(null==$?void 0:$.items[0]),{items:H,total:Q,pages:J}=(0,d.useMemo)(()=>null!=$?$:Z,[$]);(0,d.useEffect)(()=>{U(J)},[J,U]);let{columns:Y}=I({resourceType:W}),B=(0,d.useMemo)(()=>Y,[Y]),{navigateToDiscoveryResults:K}=(0,b.Z)(),X=(0,r.b7)({getCoreRowModel:(0,n.sC)(),getGroupedRowModel:(0,n.qe)(),getExpandedRowModel:(0,n.rV)(),columns:B,manualPagination:!0,onRowSelectionChange:f,state:{rowSelection:m},getRowId:D.Z,data:H,columnResizeMode:"onChange"}),ee=Object.keys(m).filter(e=>m[e]);return q?(0,l.jsx)(c.I4,{rowHeight:36,numRows:36}):(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(o.A5g,{items:t.map(e=>({key:e.key,label:e.label})),activeKey:g,onChange:e=>x(e)}),(0,l.jsxs)(c.Q$,{children:[(0,l.jsxs)(o.kCb,{gap:6,align:"center",children:[(0,l.jsx)(o.xuv,{flexShrink:0,children:(0,l.jsx)(N.f,{value:a,onChange:i})}),(0,l.jsx)(w.Z,{})]}),W===p.D$.TABLE&&!!ee.length&&(0,l.jsx)(R,{selectedUrns:ee}),W===p.D$.FIELD&&"unmonitored"!==g&&(0,l.jsx)(A,{resourceUrn:s})]}),(0,l.jsx)(c.ZK,{tableInstance:X,onRowClick:e=>K({resourceUrn:e.urn,filterTab:g}),getRowIsClickable:e=>W!==p.D$.FIELD||(0,k.Z)(e),emptyTableNotice:(0,l.jsx)(F,{})}),(0,l.jsx)(c.s8,{totalRows:Q||0,pageSizes:v,setPageSize:C,onPreviousPageClick:_,isPreviousPageDisabled:S||V,onNextPageClick:E,isNextPageDisabled:P||V,startRange:z,endRange:O})]})}},91761:function(e,s,a){var i=a(24246),t=a(13577),l=a(812),r=a(14047),n=a(7940),o=a(98559),d=a(73825),c=a(79494),u=a(70675);s.Z=e=>{let{resource:s}=e,[a,{isLoading:g}]=(0,u.v8)(),[x,{isLoading:h}]=(0,u.cM)(),[j,{isLoading:m}]=(0,u.vi)(),p=h||m||g,{diff_status:f,child_diff_statuses:v,top_level_field_name:y}=s,{successAlert:I,errorAlert:C}=(0,r.V)(),_=f===d.LL.CLASSIFICATION_ADDITION||f===d.LL.CLASSIFICATION_UPDATE,L=v&&(v[d.LL.CLASSIFICATION_ADDITION]||v[d.LL.CLASSIFICATION_UPDATE]),b=(_||L)&&!y,w=_||L,S=(0,n.G)(s)!==d.D$.FIELD,A=b&&w&&S,R=async()=>{let e=await x({staged_resource_urn:s.urn});(0,l.D4)(e)?C((0,l.e$)(e.error),"Failed to promote resource"):I('These changes have been added to a Fides dataset. To view, navigate to "Manage datasets".',"Table changes confirmed")},T=async()=>{let e=await j({staged_resource_urn:s.urn});(0,l.D4)(e)?C((0,l.e$)(e.error),"Failed to mute resource"):I("Ignored changes will not be added to a Fides dataset.","".concat(s.name||"Changes"," ignored"))},D=async()=>{let e=await a({staged_resource_urn:s.urn,monitor_config_id:s.monitor_config_id,start_classification:!0,diff_statuses_to_classify:[d.LL.CLASSIFICATION_ADDITION,d.LL.CLASSIFICATION_UPDATE,d.LL.CLASSIFYING,d.LL.CLASSIFICATION_QUEUED]});(0,l.D4)(e)?C((0,l.e$)(e.error),"Failed to reclassify resource"):I("Reclassification of ".concat((0,o.Z)(s)||"the resource"," has begun. The results may take some time to appear in the “Data discovery“ tab."),"Reclassification started")};return(0,i.jsxs)(t.Ugi,{gap:2,children:[b&&(0,i.jsx)(c.Z,{title:"Confirm",icon:(0,i.jsx)(t.nQG,{}),onClick:R,disabled:p,loading:h}),w&&(0,i.jsx)(c.Z,{title:"Ignore",icon:(0,i.jsx)(t.tpL,{}),onClick:T,disabled:p,loading:m}),S&&!A&&(0,i.jsx)(c.Z,{title:"Reclassify",icon:(0,i.jsx)(t.nyI,{}),onClick:D,disabled:p,loading:g}),A&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(t.LZC,{}),(0,i.jsxs)(t.v2r,{children:[(0,i.jsx)(t.j2t,{as:t.wpx,size:"small",type:"text",icon:(0,i.jsx)(t.nXP,{transform:"rotate(90deg)"}),className:"w-6 gap-0","data-testid":"actions-overflow-btn"}),(0,i.jsx)(t.qyq,{children:(0,i.jsx)(t.sNh,{onClick:D,icon:(0,i.jsx)(t.nyI,{}),"data-testid":"action-reclassify",children:"Reclassify"})})]})]})]})}},61099:function(e,s,a){var i=a(24246),t=a(13577),l=a(27378),r=a(12627),n=a(34929),o=a(26183),d=a(70675);s.Z=e=>{var s,a,c;let{resource:u}=e,[g,x]=(0,l.useState)(!1),{getDataCategoryDisplayName:h}=(0,n.Z)(),[j]=(0,d.NA)(),m=(null===(s=u.classifications)||void 0===s?void 0:s.length)?u.classifications[0].label:null,p=null!==(c=u.user_assigned_data_categories)&&void 0!==c?c:[],f=!m&&!(null==p?void 0:p.length),v=null===(a=u.sub_field_urns)||void 0===a?void 0:a.length,y=e=>{j({staged_resource_urn:u.urn,monitor_config_id:u.monitor_config_id,user_assigned_data_categories:[...p,e]})},I=e=>{var s;j({staged_resource_urn:u.urn,monitor_config_id:u.monitor_config_id,user_assigned_data_categories:null!==(s=null==p?void 0:p.filter(s=>s!==e))&&void 0!==s?s:[]})},C=!g&&!!p.length,_=!g&&!!m&&!p.length;return(0,i.jsxs)(o.Z,{"data-testid":"edit-category-cell",children:[f&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(t.j8w,{"data-testid":"no-classifications",color:"white",children:"None"}),!v&&(0,i.jsx)(t.j8w,{onClick:()=>x(!0),addable:!0,"data-testid":"taxonomy-add-btn","aria-label":"Add category"})]}),C&&(0,i.jsxs)(i.Fragment,{children:[p.map(e=>(0,i.jsx)(t.j8w,{"data-testid":"user-classification-".concat(e),color:"white",closable:!0,onClose:()=>I(e),closeButtonLabel:"Remove category",children:h(e)},e)),(0,i.jsx)(t.j8w,{onClick:()=>x(!0),addable:!0,"data-testid":"taxonomy-add-btn","aria-label":"Add category"})]}),_&&(0,i.jsxs)(t.j8w,{onClick:()=>x(!0),color:"white","data-testid":"classification-".concat(m),hasSparkle:!0,children:[h(m),(0,i.jsx)(t.PJP.I8b,{size:10})]}),g&&(0,i.jsx)(t.xuv,{className:"select-wrapper",position:"absolute",zIndex:10,top:"0",left:"0",width:"100%",height:"max",bgColor:"#fff",children:(0,i.jsx)(r.Z,{selectedTaxonomies:p,onChange:e=>{x(!1),y(e)},onBlur:()=>x(!1),open:!0})})]})}},79947:function(e,s,a){var i=a(24246),t=a(13577);s.Z=e=>{let{type:s}=e;return(0,i.jsx)(t.kCb,{align:"center",h:"full",children:!!s&&(0,i.jsx)(t.j8w,{children:s})})}}}]);
1
+ "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9046],{12627:function(e,s,a){var i=a(24246),t=a(79283),l=a(34929);s.Z=e=>{let{selectedTaxonomies:s,showDisabled:a=!1,...r}=e,{getDataCategoryDisplayNameProps:n,getDataCategories:o}=(0,l.Z)(),d=(a?o():o().filter(e=>e.active)).filter(e=>!s.includes(e.fides_key)).map(e=>{let{name:s,primaryName:a}=n(e.fides_key);return{value:e.fides_key,name:s,primaryName:a,description:e.description||""}});return(0,i.jsx)(t.l,{options:d,...r})}},14908:function(e,s,a){var i=a(86677),t=a(27378);let l=e=>e.startsWith("#")?e.slice(1):e;s.Z=e=>{let{tabKeys:s,initialTab:a}=e,r=(0,i.useRouter)(),n=r.asPath.split("#")[1]||s[0],[o,d]=(0,t.useState)(n);return(0,t.useEffect)(()=>{a&&s.includes(a)&&d(a)},[a,s,r.isReady]),{activeTab:o,onTabChange:(0,t.useCallback)(async e=>{if(!s.includes(e)){d(s[0]),await r.replace({pathname:r.pathname,query:r.query,hash:void 0});return}d(e),r.isReady&&await r.replace({pathname:r.pathname,query:r.query,hash:l(e)},void 0,{shallow:!0})},[r,s])}}},69828:function(e,s,a){a.d(s,{Y:function(){return r}});var i=a(24246),t=a(13577),l=a(70788);let r=[(0,i.jsx)(t.PJP.S9g,{},"layers"),(0,i.jsx)(t.PJP.ehp,{},"dataset"),(0,i.jsx)(t.PJP.iA_,{},"table"),(0,i.jsx)(t.PJP.$4y,{style:{transform:"rotate(-90deg)"}},"field")];s.Z=e=>{let{resourceUrn:s,parentLink:a,onPathClick:t=()=>{}}=e,n=[];if(s||n.push({title:"All activity"}),s){n.push({title:"All activity",href:a});let e=s.split(".");e.forEach((s,a)=>{0!==a&&n.push({title:s,icon:r[a-1],onClick:s=>{s.preventDefault(),t(e.slice(0,a+1).join("."))}})})}return(0,i.jsx)(l.m,{"data-testid":"results-breadcrumb",items:n})}},11904:function(e,s,a){a.d(s,{Z:function(){return E}});var i,t,l=a(24246),r=a(59003),n=a(92222),o=a(13577),d=a(27378),c=a(47935),u=a(70675),g=a(72625),x=a(79947),h=a(50169),j=a(28278),m=a(74241),p=a(54682),f=a(91761),v=a(61099),y=a(87667),I=e=>{let{resourceType:s}=e,a=(0,n.Cl)();return s===p.D$.SCHEMA?{columns:[a.accessor(e=>e.name,{id:"name",cell:e=>(0,l.jsx)(y.Z,{result:e.row.original,changeTypeOverride:j.E.CLASSIFICATION}),header:e=>(0,l.jsx)(c.Rr,{value:"Name",...e}),size:300}),a.accessor(e=>e.urn,{id:"project",cell:e=>(0,l.jsx)(c.G3,{value:(0,m.Z)(e.getValue())}),header:e=>(0,l.jsx)(c.Rr,{value:"Project",...e})}),a.display({id:"status",cell:e=>(0,l.jsx)(h.Z,{result:e.row.original}),header:e=>(0,l.jsx)(c.Rr,{value:"Status",...e})}),a.accessor(e=>e.system,{id:"system",cell:e=>(0,l.jsx)(c.G3,{value:e.getValue()}),header:e=>(0,l.jsx)(c.Rr,{value:"System",...e})}),a.accessor(e=>e.monitor_config_id,{id:"monitor",cell:e=>(0,l.jsx)(c.G3,{value:e.getValue()}),header:e=>(0,l.jsx)(c.Rr,{value:"Detected by",...e})}),a.accessor(e=>e.updated_at,{id:"time",cell:e=>(0,l.jsx)(g.Cy,{time:e.getValue()}),header:e=>(0,l.jsx)(c.Rr,{value:"When",...e})}),a.display({id:"action",cell:e=>e.row.original.diff_status!==p.LL.MUTED?(0,l.jsx)(f.Z,{resource:e.row.original}):(0,l.jsx)(c.G3,{value:"--"}),header:"Actions",size:235,meta:{disableRowClick:!0}})]}:s===p.D$.TABLE?{columns:[a.display({id:"select",cell:e=>{var s;let{row:a}=e;return(0,l.jsx)(g.k,{isChecked:a.getIsSelected(),onChange:a.getToggleSelectedHandler(),dataTestId:"select-".concat(null!==(s=a.original.name)&&void 0!==s?s:a.id)})},header:e=>{let{table:s}=e;return(0,l.jsx)(g.k,{isChecked:s.getIsAllPageRowsSelected(),isIndeterminate:s.getIsSomeRowsSelected(),onChange:s.getToggleAllRowsSelectedHandler(),dataTestId:"select-all-rows"})},maxSize:40}),a.accessor(e=>e.name,{id:"tables",cell:e=>(0,l.jsx)(y.Z,{result:e.row.original}),header:e=>(0,l.jsx)(c.Rr,{value:"Table name",...e}),size:300}),a.accessor(e=>e.description,{id:"description",cell:e=>(0,l.jsx)(c.G3,{value:e.getValue(),cellProps:e}),header:e=>(0,l.jsx)(c.Rr,{value:"Description",...e}),meta:{showHeaderMenu:!0}}),a.display({id:"status",cell:e=>(0,l.jsx)(h.Z,{result:e.row.original}),header:e=>(0,l.jsx)(c.Rr,{value:"Status",...e})}),a.display({id:"type",cell:()=>(0,l.jsx)(c.G3,{value:"Table"}),header:"Type"}),a.accessor(e=>e.updated_at,{id:"time",cell:e=>(0,l.jsx)(g.Cy,{time:e.getValue()}),header:"Time"}),a.display({id:"actions",cell:e=>(0,l.jsx)(f.Z,{resource:e.row.original}),header:"Actions",size:235,meta:{disableRowClick:!0}})]}:s===p.D$.FIELD?{columns:[a.accessor(e=>e.name,{id:"name",cell:e=>(0,l.jsx)(y.Z,{result:e.row.original}),header:e=>(0,l.jsx)(c.Rr,{value:"Field name",...e}),size:300}),a.accessor(e=>e.source_data_type,{id:"data-type",cell:e=>(0,l.jsx)(x.Z,{type:e.getValue()}),header:e=>(0,l.jsx)(c.Rr,{value:"Data type",...e})}),a.accessor(e=>e.description,{id:"description",cell:e=>(0,l.jsx)(c.G3,{value:e.getValue(),cellProps:e}),header:e=>(0,l.jsx)(c.Rr,{value:"Description",...e}),meta:{showHeaderMenu:!0}}),a.display({id:"status",cell:e=>(0,l.jsx)(h.Z,{result:e.row.original}),header:e=>(0,l.jsx)(c.Rr,{value:"Status",...e})}),a.display({id:"type",cell:()=>(0,l.jsx)(c.G3,{value:"Field"}),header:"Type"}),a.display({id:"classifications",cell:e=>{let{row:s}=e;return(0,l.jsx)(v.Z,{resource:s.original})},meta:{overflow:"visible",disableRowClick:!0},header:"Data category",minSize:280}),a.accessor(e=>e.updated_at,{id:"time",cell:e=>(0,l.jsx)(g.Cy,{time:e.getValue()}),header:e=>(0,l.jsx)(c.Rr,{value:"When",...e})}),a.display({id:"actions",cell:e=>(0,l.jsx)(f.Z,{resource:e.row.original}),header:"Actions",size:235,meta:{disableRowClick:!0}})]}:s===p.D$.ENDPOINT?{columns:[a.accessor(e=>e.name,{id:"name",cell:e=>(0,l.jsx)(y.Z,{result:e.row.original}),header:e=>(0,l.jsx)(c.Rr,{value:"Object",...e}),size:300}),a.accessor(e=>e.description,{id:"description",cell:e=>(0,l.jsx)(c.G3,{value:e.getValue(),cellProps:e}),header:e=>(0,l.jsx)(c.Rr,{value:"Description",...e}),meta:{showHeaderMenu:!0}}),a.display({id:"status",cell:e=>(0,l.jsx)(h.Z,{result:e.row.original}),header:e=>(0,l.jsx)(c.Rr,{value:"Status",...e})}),a.display({id:"type",cell:()=>(0,l.jsx)(c.G3,{value:"Endpoint"}),header:"Type"}),a.display({id:"classifications",cell:e=>{let{row:s}=e;return(0,l.jsx)(v.Z,{resource:s.original})},meta:{overflow:"visible",disableRowClick:!0},header:"Data category",minSize:280}),a.accessor(e=>e.updated_at,{id:"time",cell:e=>(0,l.jsx)(g.Cy,{time:e.getValue()}),header:e=>(0,l.jsx)(c.Rr,{value:"When",...e})}),a.display({id:"actions",cell:e=>(0,l.jsx)(f.Z,{resource:e.row.original}),header:"Actions",size:235,meta:{disableRowClick:!0}})]}:{columns:[]}},C=a(14908);(i=t||(t={})).ACTION_REQUIRED="action-required",i.IN_PROGRESS="in-progress",i.UNMONITORED="unmonitored";let _={"action-required":{label:"Action Required",key:"action-required",filters:[p.LL.CLASSIFICATION_ADDITION,p.LL.CLASSIFICATION_UPDATE],childFilters:[p.LL.CLASSIFICATION_ADDITION,p.LL.CLASSIFICATION_UPDATE]},"in-progress":{label:"In progress",key:"in-progress",filters:[p.LL.CLASSIFYING,p.LL.CLASSIFICATION_QUEUED],childFilters:[p.LL.CLASSIFYING,p.LL.CLASSIFICATION_QUEUED]},unmonitored:{label:"Unmonitored",key:"unmonitored",filters:[p.LL.MUTED],childFilters:[]}};var L=()=>{var e,s;let{activeTab:a,onTabChange:i}=(0,C.Z)({tabKeys:Object.values(t)});return{filterTabs:Object.values(_),activeTab:a,onTabChange:i,activeDiffFilters:null===(e=_[a])||void 0===e?void 0:e.filters,activeChildDiffFilters:null===(s=_[a])||void 0===s?void 0:s.childFilters}},b=a(47182),w=a(38347),S=a(79494),A=e=>{let{resourceUrn:s}=e,[a,{isLoading:i}]=(0,u.Hf)(),[t,{isLoading:r}]=(0,u.zV)(),n=i||r,d=async e=>{await t({staged_resource_urns:e})},c=async e=>{await a({staged_resource_urns:e})};return(0,l.jsx)(o.jqI,{"data-testid":"bulk-actions-menu",children:(0,l.jsxs)("div",{className:"flex gap-2",children:[(0,l.jsx)(S.Z,{title:"Confirm all",icon:(0,l.jsx)(o.nQG,{}),onClick:()=>c([s]),disabled:n,loading:i,type:"primary",size:"middle"}),(0,l.jsx)(S.Z,{title:"Ignore all",icon:(0,l.jsx)(o.tpL,{}),onClick:()=>d([s]),disabled:n,loading:r,size:"middle"})]})})},R=e=>{let{selectedUrns:s}=e,[a,{isLoading:i}]=(0,u.Hf)(),[t,{isLoading:r}]=(0,u.zV)(),n=i||r,d=async e=>{await a({staged_resource_urns:e})},c=async e=>{await t({staged_resource_urns:e})};return s.length?(0,l.jsxs)(o.jqI,{className:"items-center","data-testid":"bulk-actions-menu",children:[(0,l.jsx)(o.xvT,{fontSize:"xs",fontWeight:"semibold",minW:16,mr:4,children:"".concat(s.length," selected")}),(0,l.jsxs)(o.jqI,{className:"gap-2",children:[(0,l.jsx)(S.Z,{title:"Confirm",icon:(0,l.jsx)(o.nQG,{}),onClick:()=>d(s),disabled:n,loading:i,type:"primary",size:"middle"}),(0,l.jsx)(S.Z,{title:"Ignore",icon:(0,l.jsx)(o.tpL,{}),disabled:n,loading:r,onClick:()=>c(s),size:"middle"})]})]}):null},T=a(7940),D=a(80285),k=a(36168),N=a(30952);let Z={items:[],total:0,page:1,size:50,pages:1},F=()=>(0,l.jsx)(o.gCW,{mt:6,p:10,spacing:4,borderRadius:"base",maxW:"70%","data-testid":"empty-state",alignSelf:"center",margin:"auto",children:(0,l.jsxs)(o.gCW,{children:[(0,l.jsx)(o.xvT,{fontSize:"md",fontWeight:"600",children:"No activity found"}),(0,l.jsx)(o.xvT,{fontSize:"sm",children:"You're up to date!"})]})});var E=e=>{let{resourceUrn:s}=e,[a,i]=(0,d.useState)(""),{filterTabs:t,activeTab:g,onTabChange:x,activeDiffFilters:h,activeChildDiffFilters:j}=L(),[m,f]=(0,d.useState)({}),{PAGE_SIZES:v,pageSize:y,setPageSize:C,onPreviousPageClick:_,isPreviousPageDisabled:S,onNextPageClick:E,isNextPageDisabled:P,startRange:z,endRange:O,pageIndex:G,setTotalPages:U,resetPageIndexToDefault:M}=(0,c.oi)();(0,d.useEffect)(()=>{M()},[s,a,M,h,j]);let{isFetching:V,isLoading:q,data:$}=(0,u.z8)({staged_resource_urn:s,page:G,size:y,child_diff_status:j,diff_status:h,search:a}),W=(0,T.G)(null==$?void 0:$.items[0]),{items:H,total:Q,pages:J}=(0,d.useMemo)(()=>null!=$?$:Z,[$]);(0,d.useEffect)(()=>{U(J)},[J,U]);let{columns:Y}=I({resourceType:W}),B=(0,d.useMemo)(()=>Y,[Y]),{navigateToDiscoveryResults:K}=(0,b.Z)(),X=(0,r.b7)({getCoreRowModel:(0,n.sC)(),getGroupedRowModel:(0,n.qe)(),getExpandedRowModel:(0,n.rV)(),columns:B,manualPagination:!0,onRowSelectionChange:f,state:{rowSelection:m},getRowId:D.Z,data:H,columnResizeMode:"onChange"}),ee=Object.keys(m).filter(e=>m[e]);return q?(0,l.jsx)(c.I4,{rowHeight:36,numRows:36}):(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(o.A5g,{items:t.map(e=>({key:e.key,label:e.label})),activeKey:g,onChange:e=>x(e)}),(0,l.jsxs)(c.Q$,{children:[(0,l.jsxs)(o.kCb,{gap:6,align:"center",children:[(0,l.jsx)(o.xuv,{flexShrink:0,children:(0,l.jsx)(N.f,{value:a,onChange:i})}),(0,l.jsx)(w.Z,{})]}),W===p.D$.TABLE&&!!ee.length&&(0,l.jsx)(R,{selectedUrns:ee}),W===p.D$.FIELD&&"unmonitored"!==g&&(0,l.jsx)(A,{resourceUrn:s})]}),(0,l.jsx)(c.ZK,{tableInstance:X,onRowClick:e=>K({resourceUrn:e.urn,filterTab:g}),getRowIsClickable:e=>W!==p.D$.FIELD||(0,k.Z)(e),emptyTableNotice:(0,l.jsx)(F,{})}),(0,l.jsx)(c.s8,{totalRows:Q||0,pageSizes:v,setPageSize:C,onPreviousPageClick:_,isPreviousPageDisabled:S||V,onNextPageClick:E,isNextPageDisabled:P||V,startRange:z,endRange:O})]})}},91761:function(e,s,a){var i=a(24246),t=a(13577),l=a(812),r=a(14047),n=a(7940),o=a(98559),d=a(54682),c=a(79494),u=a(70675);s.Z=e=>{let{resource:s}=e,[a,{isLoading:g}]=(0,u.v8)(),[x,{isLoading:h}]=(0,u.cM)(),[j,{isLoading:m}]=(0,u.vi)(),p=h||m||g,{diff_status:f,child_diff_statuses:v,top_level_field_name:y}=s,{successAlert:I,errorAlert:C}=(0,r.V)(),_=f===d.LL.CLASSIFICATION_ADDITION||f===d.LL.CLASSIFICATION_UPDATE,L=v&&(v[d.LL.CLASSIFICATION_ADDITION]||v[d.LL.CLASSIFICATION_UPDATE]),b=(_||L)&&!y,w=_||L,S=(0,n.G)(s)!==d.D$.FIELD,A=b&&w&&S,R=async()=>{let e=await x({staged_resource_urn:s.urn});(0,l.D4)(e)?C((0,l.e$)(e.error),"Failed to promote resource"):I('These changes have been added to a Fides dataset. To view, navigate to "Manage datasets".',"Table changes confirmed")},T=async()=>{let e=await j({staged_resource_urn:s.urn});(0,l.D4)(e)?C((0,l.e$)(e.error),"Failed to mute resource"):I("Ignored changes will not be added to a Fides dataset.","".concat(s.name||"Changes"," ignored"))},D=async()=>{let e=await a({staged_resource_urn:s.urn,monitor_config_id:s.monitor_config_id,start_classification:!0,diff_statuses_to_classify:[d.LL.CLASSIFICATION_ADDITION,d.LL.CLASSIFICATION_UPDATE,d.LL.CLASSIFYING,d.LL.CLASSIFICATION_QUEUED]});(0,l.D4)(e)?C((0,l.e$)(e.error),"Failed to reclassify resource"):I("Reclassification of ".concat((0,o.Z)(s)||"the resource"," has begun. The results may take some time to appear in the “Data discovery“ tab."),"Reclassification started")};return(0,i.jsxs)(t.Ugi,{gap:2,children:[b&&(0,i.jsx)(c.Z,{title:"Confirm",icon:(0,i.jsx)(t.nQG,{}),onClick:R,disabled:p,loading:h}),w&&(0,i.jsx)(c.Z,{title:"Ignore",icon:(0,i.jsx)(t.tpL,{}),onClick:T,disabled:p,loading:m}),S&&!A&&(0,i.jsx)(c.Z,{title:"Reclassify",icon:(0,i.jsx)(t.nyI,{}),onClick:D,disabled:p,loading:g}),A&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(t.LZC,{}),(0,i.jsxs)(t.v2r,{children:[(0,i.jsx)(t.j2t,{as:t.wpx,size:"small",type:"text",icon:(0,i.jsx)(t.nXP,{transform:"rotate(90deg)"}),className:"w-6 gap-0","data-testid":"actions-overflow-btn"}),(0,i.jsx)(t.qyq,{children:(0,i.jsx)(t.sNh,{onClick:D,icon:(0,i.jsx)(t.nyI,{}),"data-testid":"action-reclassify",children:"Reclassify"})})]})]})]})}},61099:function(e,s,a){var i=a(24246),t=a(13577),l=a(27378),r=a(12627),n=a(34929),o=a(26183),d=a(70675);s.Z=e=>{var s,a,c;let{resource:u}=e,[g,x]=(0,l.useState)(!1),{getDataCategoryDisplayName:h}=(0,n.Z)(),[j]=(0,d.NA)(),m=(null===(s=u.classifications)||void 0===s?void 0:s.length)?u.classifications[0].label:null,p=null!==(c=u.user_assigned_data_categories)&&void 0!==c?c:[],f=!m&&!(null==p?void 0:p.length),v=null===(a=u.sub_field_urns)||void 0===a?void 0:a.length,y=e=>{j({staged_resource_urn:u.urn,monitor_config_id:u.monitor_config_id,user_assigned_data_categories:[...p,e]})},I=e=>{var s;j({staged_resource_urn:u.urn,monitor_config_id:u.monitor_config_id,user_assigned_data_categories:null!==(s=null==p?void 0:p.filter(s=>s!==e))&&void 0!==s?s:[]})},C=!g&&!!p.length,_=!g&&!!m&&!p.length;return(0,i.jsxs)(o.Z,{"data-testid":"edit-category-cell",children:[f&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(t.j8w,{"data-testid":"no-classifications",color:"white",children:"None"}),!v&&(0,i.jsx)(t.j8w,{onClick:()=>x(!0),addable:!0,"data-testid":"taxonomy-add-btn","aria-label":"Add category"})]}),C&&(0,i.jsxs)(i.Fragment,{children:[p.map(e=>(0,i.jsx)(t.j8w,{"data-testid":"user-classification-".concat(e),color:"white",closable:!0,onClose:()=>I(e),closeButtonLabel:"Remove category",children:h(e)},e)),(0,i.jsx)(t.j8w,{onClick:()=>x(!0),addable:!0,"data-testid":"taxonomy-add-btn","aria-label":"Add category"})]}),_&&(0,i.jsxs)(t.j8w,{onClick:()=>x(!0),color:"white","data-testid":"classification-".concat(m),hasSparkle:!0,children:[h(m),(0,i.jsx)(t.PJP.I8b,{size:10})]}),g&&(0,i.jsx)(t.xuv,{className:"select-wrapper",position:"absolute",zIndex:10,top:"0",left:"0",width:"100%",height:"max",bgColor:"#fff",children:(0,i.jsx)(r.Z,{selectedTaxonomies:p,onChange:e=>{x(!1),y(e)},onBlur:()=>x(!1),open:!0})})]})}},79947:function(e,s,a){var i=a(24246),t=a(13577);s.Z=e=>{let{type:s}=e;return(0,i.jsx)(t.kCb,{align:"center",h:"full",children:!!s&&(0,i.jsx)(t.j8w,{children:s})})}}}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9187],{40585:function(u){var n=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;u.exports=function(u){return u.match(n)||[]}},52033:function(u,n,t){var f=t(26194),r=t(26789)(f);u.exports=r},49819:function(u,n,t){var f=t(18911)();u.exports=f},26194:function(u,n,t){var f=t(49819),r=t(50098);u.exports=function(u,n){return u&&f(u,n,r)}},17646:function(u){u.exports=function(u){return function(n){return null==u?void 0:u[n]}}},26789:function(u,n,t){var f=t(80068);u.exports=function(u,n){return function(t,r){if(null==t)return t;if(!f(t))return u(t,r);for(var e=t.length,i=n?e:-1,o=Object(t);(n?i--:++i<e)&&!1!==r(o[i],i,o););return t}}},18911:function(u){u.exports=function(u){return function(n,t,f){for(var r=-1,e=Object(n),i=f(n),o=i.length;o--;){var a=i[u?o:++r];if(!1===t(e[a],a,e))break}return n}}},68267:function(u,n,t){var f=t(6446),r=t(69689),e=t(93254),i=RegExp("['’]","g");u.exports=function(u){return function(n){return f(e(r(n).replace(i,"")),u,"")}}},4248:function(u,n,t){var f=t(17646)({À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"});u.exports=f},73909:function(u){var n=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;u.exports=function(u){return n.test(u)}},97025:function(u){var n="\ud800-\udfff",t="\\u2700-\\u27bf",f="a-z\\xdf-\\xf6\\xf8-\\xff",r="A-Z\\xc0-\\xd6\\xd8-\\xde",e="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",i="['’]",o="["+e+"]",a="["+f+"]",c="[^"+n+e+"\\d+"+t+f+r+"]",x="(?:\ud83c[\udde6-\uddff]){2}",d="[\ud800-\udbff][\udc00-\udfff]",s="["+r+"]",v="(?:"+a+"|"+c+")",p="(?:"+i+"(?:d|ll|m|re|s|t|ve))?",l="(?:"+i+"(?:D|LL|M|RE|S|T|VE))?",h="(?:[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]|\ud83c[\udffb-\udfff])?",E="[\\ufe0e\\ufe0f]?",b="(?:\\u200d(?:"+["[^"+n+"]",x,d].join("|")+")"+E+h+")*",g="(?:"+["["+t+"]",x,d].join("|")+")"+(E+h+b),A=RegExp([s+"?"+a+"+"+p+"(?="+[o,s,"$"].join("|")+")","(?:"+s+"|"+c+")+"+l+"(?="+[o,s+v,"$"].join("|")+")",s+"?"+v+"+"+p,s+"+"+l,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])","\\d+",g].join("|"),"g");u.exports=function(u){return u.match(A)||[]}},66726:function(u,n,t){var f=t(11611),r=t(82846),e=t(91936),i=Math.max,o=Math.min;u.exports=function(u,n,t){var a,c,x,d,s,v,p=0,l=!1,h=!1,E=!0;if("function"!=typeof u)throw TypeError("Expected a function");function b(n){var t=a,f=c;return a=c=void 0,p=n,d=u.apply(f,t)}function g(u){var t=u-v,f=u-p;return void 0===v||t>=n||t<0||h&&f>=x}function A(){var u,t,f,e=r();if(g(e))return m(e);s=setTimeout(A,(u=e-v,t=e-p,f=n-u,h?o(f,x-t):f))}function m(u){return(s=void 0,E&&a)?b(u):(a=c=void 0,d)}function T(){var u,t=r(),f=g(t);if(a=arguments,c=this,v=t,f){if(void 0===s)return p=u=v,s=setTimeout(A,n),l?b(u):d;if(h)return clearTimeout(s),s=setTimeout(A,n),b(v)}return void 0===s&&(s=setTimeout(A,n)),d}return n=e(n)||0,f(t)&&(l=!!t.leading,x=(h="maxWait"in t)?i(e(t.maxWait)||0,n):x,E="trailing"in t?!!t.trailing:E),T.cancel=function(){void 0!==s&&clearTimeout(s),p=0,a=v=c=s=void 0},T.flush=function(){return void 0===s?d:m(r())},T}},69689:function(u,n,t){var f=t(4248),r=t(65567),e=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,i=RegExp("[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]","g");u.exports=function(u){return(u=r(u))&&u.replace(e,f).replace(i,"")}},93254:function(u,n,t){var f=t(40585),r=t(73909),e=t(65567),i=t(97025);u.exports=function(u,n,t){return(u=e(u),void 0===(n=t?void 0:n))?r(u)?i(u):f(u):u.match(n)||[]}}}]);
@@ -1 +1 @@
1
- "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9226],{624:function(e,t,n){var i=n(24246),l=n(13577),r=n(27378);let a=e=>{let t=e.split("."),n=[];return t.forEach(e=>{let t=n.length>0?n[n.length-1]:null;t?n.push("".concat(t,".").concat(e)):n.push(e)}),n},s=(e,t)=>{let n=a(t).filter(e=>e!==t);return e.filter(e=>n.includes(e)).length>0},o=(e,t)=>!!(e===t||e.startsWith("".concat(t,"."))),c=(e,t,n)=>{let i=null!=n?n:[];return e.forEach(e=>{e.children&&c(e.children,t,i),o(e.value,t)&&i.push(e)}),i},d=e=>{let{node:t,isChecked:n,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,i.jsxs)(l.xuv,{children:[(0,i.jsxs)(l.xuv,{display:"flex",justifyContent:"space-between",_hover:{backgroundColor:"gray.100",cursor:"pointer"},onClick:()=>s(t),minHeight:8,children:[(0,i.jsx)(l.XZJ,{colorScheme:"complimentary",value:u,isChecked:!o&&n,isIndeterminate:o,isDisabled:c,onChange:()=>r(t),mx:2,"data-testid":"checkbox-".concat(h),children:h}),x?(0,i.jsx)(l.wpx,{"data-testid":"expand-".concat(h),"aria-label":a?"collapse":"expand",icon:(0,i.jsx)(l.v4q,{boxSize:5}),type:"text",onClick:()=>s(t),className:a?"rotate-180":void 0}):null]}),d&&(0,i.jsx)(l.xuv,{ml:5,children:d})]})};t.ZP=e=>{let{nodes:t,selected:n,onSelected:u,...h}=e,[x,f]=(0,r.useState)([]),[p,C]=(0,r.useState)([]);(0,r.useEffect)(()=>{let e=Array.from(new Set([...n.map(e=>a(e)).reduce((e,t)=>e.concat(t),[]),...n.map(e=>c(t,e)).reduce((e,t)=>e.concat(t),[]).map(e=>e.value)]));C(e),f(e)},[n,t]);let m=e=>{let i=[],l=[];x.indexOf(e.value)>=0?(i=x.filter(t=>!o(t,e.value)),l=n.filter(t=>!o(t,e.value))):(i=[...x,...c(t,e.value).map(e=>e.value)],l=[...n,e.value]),f(i),u(l)},j=e=>{p.indexOf(e.value)>=0?C(p.filter(t=>!o(t,e.value))):C([...p,e.value])},v=e=>{if(e.children){let l=x.indexOf(e.value)>=0,a=p.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(n,e.value);return(0,i.jsx)(d,{node:e,isChecked:l,onChecked:m,isExpanded:a,onExpanded:j,isDisabled:h,isIndeterminate:u,children:a?e.children.map(e=>(0,i.jsx)(r.Fragment,{children:v(e)},e.value)):void 0})}return null};return(0,i.jsx)(l.xuv,{...h,children:t.map(e=>(0,i.jsx)(l.xuv,{children:v(e)},e.value))})}},79806:function(e,t,n){n.d(t,{Gn:function(){return s},zR:function(){return a}});var i=n(24246),l=n(13577),r=n(56358);let a=e=>{let{title:t}=e;return(0,i.jsx)(l.OXI,{py:0,display:"flex",alignItems:"flex-start",children:(0,i.jsx)(l.xvT,{mr:"2",color:"gray.700",fontSize:"lg",lineHeight:1.8,children:t})})},s=e=>{let{onDelete:t,onEditYaml:n,formId:a,isSaving:s}=e;return(0,i.jsxs)(l.zeN,{justifyContent:"space-between",children:[t?(0,i.jsx)(l.wpx,{"aria-label":"delete",icon:(0,i.jsx)(r.q,{fontSize:"small"}),onClick:t,"data-testid":"delete-btn"}):null,(0,i.jsxs)("div",{className:"flex gap-2",children:[n&&(0,i.jsx)(l.wpx,{onClick:n,"data-testid":"edit-yaml-btn",children:"Edit YAML"}),(0,i.jsx)(l.wpx,{htmlType:"submit",type:"primary","data-testid":"save-btn",form:a,loading:s,children:"Save"})]})]})};t.ZP=e=>{let{header:t,description:n,isOpen:r,onClose:a,children:s,footer:o}=e;return(0,i.jsxs)(l.dys,{placement:"right",isOpen:r,onClose:a,size:"md",children:[(0,i.jsx)(l.P1B,{}),(0,i.jsxs)(l.scA,{"data-testid":"edit-drawer-content",py:2,children:[(0,i.jsxs)(l.xuv,{display:"flex",justifyContent:"space-between",alignItems:"top",mr:2,py:2,gap:2,children:[(0,i.jsx)(l.xuv,{flex:1,minH:8,children:t}),(0,i.jsx)(l.xuv,{display:"flex",justifyContent:"flex-end",mr:2,children:(0,i.jsx)(l.wpx,{"aria-label":"Close editor",onClick:a,"data-testid":"close-drawer-btn",icon:(0,i.jsx)(l.Two,{fontSize:"smaller"})})})]}),(0,i.jsxs)(l.Ng0,{pt:1,children:[n?(0,i.jsx)(l.xvT,{fontSize:"sm",mb:4,color:"gray.600",children:n}):null,s]}),o]})]})}},56358:function(e,t,n){n.d(t,{q:function(){return l}});var i=n(24246);let l=(0,n(13577).IUT)({displayName:"TrashCanOutlineIcon",viewBox:"0 0 11 12",path:(0,i.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"})})},77213:function(e,t,n){n.d(t,{Z:function(){return h}});var i=n(24246),l=n(13577),r=n(88038),a=n.n(r),s=n(86677);n(27378);var o=n(25980),c=n(90867),d=n(77830),u=()=>{let e=(0,s.useRouter)();return(0,i.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,i.jsxs)(l.xuv,{children:[(0,i.jsxs)(l.Kqy,{direction:{base:"column",sm:"row"},justifyContent:"space-between",children:[(0,i.jsx)(l.xvT,{fontWeight:"semibold",children:"Configure your storage and messaging provider"}),(0,i.jsx)(l.wpx,{onClick:()=>{e.push(d.fz)},children:"Configure"})]}),(0,i.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:n,padded:r=!0,mainProps:d}=e,h=(0,o.hz)(),x=(0,s.useRouter)(),f="/privacy-requests"===x.pathname||"/datastore-connection"===x.pathname,p=!(h.flags.privacyRequestsConfiguration&&f),{data:C}=(0,c.JE)(void 0,{skip:p}),{data:m}=(0,c.PW)(void 0,{skip:p}),j=h.flags.privacyRequestsConfiguration&&(!C||!m)&&f;return(0,i.jsxs)(l.kCb,{"data-testid":n,direction:"column",h:"100vh",children:[(0,i.jsxs)(a(),{children:[(0,i.jsxs)("title",{children:["Fides Admin UI - ",n]}),(0,i.jsx)("meta",{name:"description",content:"Privacy Engineering Platform"}),(0,i.jsx)("link",{rel:"icon",href:"/favicon.ico"})]}),(0,i.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:[j?(0,i.jsx)(u,{}):null,t]})]})}},69828:function(e,t,n){n.d(t,{Y:function(){return a}});var i=n(24246),l=n(13577),r=n(70788);let a=[(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:n,onPathClick:l=()=>{}}=e,s=[];if(t||s.push({title:"All activity"}),t){s.push({title:"All activity",href:n});let e=t.split(".");e.forEach((t,n)=>{0!==n&&s.push({title:t,icon:a[n-1],onClick:t=>{t.preventDefault(),l(e.slice(0,n+1).join("."))}})})}return(0,i.jsx)(r.m,{"data-testid":"results-breadcrumb",items:s})}},63927:function(e,t,n){n.d(t,{e:function(){return C},Z:function(){return m}});var i=n(24246),l=n(13577),r=n(34090),a=n(27378),s=n(16125),o=n(40324),c=n(39864),d=n(56026),u=n(46238),h=n(624),x=n(90673),f=e=>{let{dataCategories:t,checked:n,onChecked:r,buttonLabel:s}=e,o=(0,a.useMemo)(()=>(0,x.Cd)(t),[t]);return(0,i.jsxs)(l.v2r,{closeOnSelect:!0,children:[(0,i.jsx)(l.j2t,{as:l.wpx,icon:(0,i.jsx)(l.mCO,{}),className:"!bg-transparent",block:!0,"data-testid":"data-category-dropdown",children:null!=s?s:"Select data categories"}),(0,i.jsx)(l.qyq,{children:(0,i.jsxs)(l.xuv,{maxHeight:"50vh",minWidth:"300px",maxW:"full",overflowY:"scroll",children:[(0,i.jsxs)(l.xuv,{position:"sticky",top:0,zIndex:1,backgroundColor:"white",pt:1,children:[(0,i.jsx)(l.__7,{children:(0,i.jsxs)(l.xuv,{display:"flex",justifyContent:"space-between",px:2,mb:2,children:[(0,i.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,i.jsx)(l.xvT,{mr:2,children:"Data Categories"}),(0,i.jsx)(l.sNh,{as:l.wpx,size:"small",className:"!w-auto","data-testid":"data-category-done-btn",children:"Done"})]})}),(0,i.jsx)(l.RaW,{})]}),(0,i.jsx)(l.xuv,{px:2,"data-testid":"data-category-checkbox-tree",children:(0,i.jsx)(h.ZP,{nodes:o,selected:n,onSelected:r})})]})})]})},p=e=>{let{dataCategories:t,checked:n,onChecked:r,tooltip:a}=e,s=e=>{r(n.filter(t=>t!==e))},o=n.slice().sort((e,t)=>e.localeCompare(t));return(0,i.jsxs)(l.rjZ,{templateColumns:"1fr 3fr",children:[(0,i.jsx)(l.lXp,{children:"Data Categories"}),(0,i.jsxs)(l.vyj,{direction:"vertical",size:"small",children:[(0,i.jsxs)(l.xuv,{display:"flex",alignItems:"center",children:[(0,i.jsx)(l.xuv,{mr:"2",width:"100%",children:(0,i.jsx)(f,{dataCategories:t,checked:n,onChecked:r})}),(0,i.jsx)(u.b,{label:a})]}),(0,i.jsx)(l.vyj,{direction:"vertical",size:2,"data-testid":"selected-categories",children:o.map(e=>(0,i.jsx)(l.j8w,{closable:!0,onClose:()=>{s(e)},children:e},e))})]})]})};let C="edit-collection-or-field-form";var m=e=>{var t;let{values:n,onSubmit:u,dataType:h,showDataCategories:x=!0}=e,f={description:null!==(t=n.description)&&void 0!==t?t:"",data_categories:n.data_categories},m=(0,s.v9)(c.qb).filter(e=>e.active),[j,v]=(0,a.useState)(f.data_categories||[]),A="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,i.jsx)(r.J9,{initialValues:f,onSubmit:e=>{u({...e,data_categories:j})},children:(0,i.jsx)(r.l0,{id:C,children:(0,i.jsxs)(l.Kqy,{children:[(0,i.jsx)(o.j0,{name:"description",label:"Description",tooltip:A,"data-testid":"description-input"}),x&&(0,i.jsx)(p,{dataCategories:m,checked:j,onChecked:v,tooltip:y})]})})})}},56026:function(e,t,n){n.d(t,{QL:function(){return r},du:function(){return l},tz:function(){return i}});let i={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."}}},69435:function(e,t,n){n.d(t,{Fk:function(){return c},_n:function(){return s},jC:function(){return r},qe:function(){return o}});var i=n(99729),l=n.n(i);let r=(e,t,n)=>{let i=e.collections.map((e,i)=>i===n?t:e);return{...e,collections:i}},a=(e,t,n)=>{let i=e.fields.map((e,i)=>i===n?t:e);return{...e,fields:i}},s=(e,t,n,i)=>{let l=a(e.collections[n],t,i);return r(e,l,n)},o=(e,t)=>{let n=e.collections.filter((e,n)=>n!==t);return{...e,collections:n}},c=e=>{let{dataset:t,collectionName:n,subfields:i}=e,r="",a=t.collections.findIndex(e=>e.name===n);return r+="collections[".concat(a,"]"),i&&i.forEach(e=>{let n=l()(t,r).fields.findIndex(t=>t.name===e);r+=".fields[".concat(n,"]")}),r}},59001:function(e,t,n){n.d(t,{Ch:function(){return a},Hy:function(){return s},Lo:function(){return l}});var i,l,r=n(73825);let a="root";(i=l||(l={})).DATA_CATEGORIES="Data categories",i.DATA_USES="Data uses",i.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))}}},90673:function(e,t,n){n.d(t,{Cd:function(){return r},Xl:function(){return a}});var i=n(73825),l=n(59001);let r=(e,t)=>{let n;if(null==t&&e.every(e=>void 0===e.parent_key))n=e;else{let i=null!=t?t:null;n=e.filter(e=>e.parent_key===i)}return n.map(t=>{var n,i;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!==(n=t.is_default)&&void 0!==n&&n,active:null!==(i=t.active)&&void 0!==i&&i}})},a=e=>{switch(e){case l.Lo.DATA_CATEGORIES:return i.P6.DATA_CATEGORY;case l.Lo.DATA_SUBJECTS:return i.P6.DATA_SUBJECT;case l.Lo.DATA_USES:return i.P6.DATA_USE;default:return}}}}]);
1
+ "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9226],{624:function(e,t,n){var i=n(24246),l=n(13577),r=n(27378);let a=e=>{let t=e.split("."),n=[];return t.forEach(e=>{let t=n.length>0?n[n.length-1]:null;t?n.push("".concat(t,".").concat(e)):n.push(e)}),n},s=(e,t)=>{let n=a(t).filter(e=>e!==t);return e.filter(e=>n.includes(e)).length>0},o=(e,t)=>!!(e===t||e.startsWith("".concat(t,"."))),c=(e,t,n)=>{let i=null!=n?n:[];return e.forEach(e=>{e.children&&c(e.children,t,i),o(e.value,t)&&i.push(e)}),i},d=e=>{let{node:t,isChecked:n,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,i.jsxs)(l.xuv,{children:[(0,i.jsxs)(l.xuv,{display:"flex",justifyContent:"space-between",_hover:{backgroundColor:"gray.100",cursor:"pointer"},onClick:()=>s(t),minHeight:8,children:[(0,i.jsx)(l.XZJ,{colorScheme:"complimentary",value:u,isChecked:!o&&n,isIndeterminate:o,isDisabled:c,onChange:()=>r(t),mx:2,"data-testid":"checkbox-".concat(h),children:h}),x?(0,i.jsx)(l.wpx,{"data-testid":"expand-".concat(h),"aria-label":a?"collapse":"expand",icon:(0,i.jsx)(l.v4q,{boxSize:5}),type:"text",onClick:()=>s(t),className:a?"rotate-180":void 0}):null]}),d&&(0,i.jsx)(l.xuv,{ml:5,children:d})]})};t.ZP=e=>{let{nodes:t,selected:n,onSelected:u,...h}=e,[x,f]=(0,r.useState)([]),[p,C]=(0,r.useState)([]);(0,r.useEffect)(()=>{let e=Array.from(new Set([...n.map(e=>a(e)).reduce((e,t)=>e.concat(t),[]),...n.map(e=>c(t,e)).reduce((e,t)=>e.concat(t),[]).map(e=>e.value)]));C(e),f(e)},[n,t]);let m=e=>{let i=[],l=[];x.indexOf(e.value)>=0?(i=x.filter(t=>!o(t,e.value)),l=n.filter(t=>!o(t,e.value))):(i=[...x,...c(t,e.value).map(e=>e.value)],l=[...n,e.value]),f(i),u(l)},j=e=>{p.indexOf(e.value)>=0?C(p.filter(t=>!o(t,e.value))):C([...p,e.value])},v=e=>{if(e.children){let l=x.indexOf(e.value)>=0,a=p.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(n,e.value);return(0,i.jsx)(d,{node:e,isChecked:l,onChecked:m,isExpanded:a,onExpanded:j,isDisabled:h,isIndeterminate:u,children:a?e.children.map(e=>(0,i.jsx)(r.Fragment,{children:v(e)},e.value)):void 0})}return null};return(0,i.jsx)(l.xuv,{...h,children:t.map(e=>(0,i.jsx)(l.xuv,{children:v(e)},e.value))})}},79806:function(e,t,n){n.d(t,{Gn:function(){return s},zR:function(){return a}});var i=n(24246),l=n(13577),r=n(56358);let a=e=>{let{title:t}=e;return(0,i.jsx)(l.OXI,{py:0,display:"flex",alignItems:"flex-start",children:(0,i.jsx)(l.xvT,{mr:"2",color:"gray.700",fontSize:"lg",lineHeight:1.8,children:t})})},s=e=>{let{onDelete:t,onEditYaml:n,formId:a,isSaving:s}=e;return(0,i.jsxs)(l.zeN,{justifyContent:"space-between",children:[t?(0,i.jsx)(l.wpx,{"aria-label":"delete",icon:(0,i.jsx)(r.q,{fontSize:"small"}),onClick:t,"data-testid":"delete-btn"}):null,(0,i.jsxs)("div",{className:"flex gap-2",children:[n&&(0,i.jsx)(l.wpx,{onClick:n,"data-testid":"edit-yaml-btn",children:"Edit YAML"}),(0,i.jsx)(l.wpx,{htmlType:"submit",type:"primary","data-testid":"save-btn",form:a,loading:s,children:"Save"})]})]})};t.ZP=e=>{let{header:t,description:n,isOpen:r,onClose:a,children:s,footer:o}=e;return(0,i.jsxs)(l.dys,{placement:"right",isOpen:r,onClose:a,size:"md",children:[(0,i.jsx)(l.P1B,{}),(0,i.jsxs)(l.scA,{"data-testid":"edit-drawer-content",py:2,children:[(0,i.jsxs)(l.xuv,{display:"flex",justifyContent:"space-between",alignItems:"top",mr:2,py:2,gap:2,children:[(0,i.jsx)(l.xuv,{flex:1,minH:8,children:t}),(0,i.jsx)(l.xuv,{display:"flex",justifyContent:"flex-end",mr:2,children:(0,i.jsx)(l.wpx,{"aria-label":"Close editor",onClick:a,"data-testid":"close-drawer-btn",icon:(0,i.jsx)(l.Two,{fontSize:"smaller"})})})]}),(0,i.jsxs)(l.Ng0,{pt:1,children:[n?(0,i.jsx)(l.xvT,{fontSize:"sm",mb:4,color:"gray.600",children:n}):null,s]}),o]})]})}},56358:function(e,t,n){n.d(t,{q:function(){return l}});var i=n(24246);let l=(0,n(13577).IUT)({displayName:"TrashCanOutlineIcon",viewBox:"0 0 11 12",path:(0,i.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"})})},77213:function(e,t,n){n.d(t,{Z:function(){return h}});var i=n(24246),l=n(13577),r=n(88038),a=n.n(r),s=n(86677);n(27378);var o=n(25980),c=n(90867),d=n(77830),u=()=>{let e=(0,s.useRouter)();return(0,i.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,i.jsxs)(l.xuv,{children:[(0,i.jsxs)(l.Kqy,{direction:{base:"column",sm:"row"},justifyContent:"space-between",children:[(0,i.jsx)(l.xvT,{fontWeight:"semibold",children:"Configure your storage and messaging provider"}),(0,i.jsx)(l.wpx,{onClick:()=>{e.push(d.fz)},children:"Configure"})]}),(0,i.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:n,padded:r=!0,mainProps:d}=e,h=(0,o.hz)(),x=(0,s.useRouter)(),f="/privacy-requests"===x.pathname||"/datastore-connection"===x.pathname,p=!(h.flags.privacyRequestsConfiguration&&f),{data:C}=(0,c.JE)(void 0,{skip:p}),{data:m}=(0,c.PW)(void 0,{skip:p}),j=h.flags.privacyRequestsConfiguration&&(!C||!m)&&f;return(0,i.jsxs)(l.kCb,{"data-testid":n,direction:"column",h:"100vh",children:[(0,i.jsxs)(a(),{children:[(0,i.jsxs)("title",{children:["Fides Admin UI - ",n]}),(0,i.jsx)("meta",{name:"description",content:"Privacy Engineering Platform"}),(0,i.jsx)("link",{rel:"icon",href:"/favicon.ico"})]}),(0,i.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:[j?(0,i.jsx)(u,{}):null,t]})]})}},69828:function(e,t,n){n.d(t,{Y:function(){return a}});var i=n(24246),l=n(13577),r=n(70788);let a=[(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:n,onPathClick:l=()=>{}}=e,s=[];if(t||s.push({title:"All activity"}),t){s.push({title:"All activity",href:n});let e=t.split(".");e.forEach((t,n)=>{0!==n&&s.push({title:t,icon:a[n-1],onClick:t=>{t.preventDefault(),l(e.slice(0,n+1).join("."))}})})}return(0,i.jsx)(r.m,{"data-testid":"results-breadcrumb",items:s})}},63927:function(e,t,n){n.d(t,{e:function(){return C},Z:function(){return m}});var i=n(24246),l=n(13577),r=n(34090),a=n(27378),s=n(16125),o=n(40324),c=n(39864),d=n(56026),u=n(46238),h=n(624),x=n(90673),f=e=>{let{dataCategories:t,checked:n,onChecked:r,buttonLabel:s}=e,o=(0,a.useMemo)(()=>(0,x.Cd)(t),[t]);return(0,i.jsxs)(l.v2r,{closeOnSelect:!0,children:[(0,i.jsx)(l.j2t,{as:l.wpx,icon:(0,i.jsx)(l.mCO,{}),className:"!bg-transparent",block:!0,"data-testid":"data-category-dropdown",children:null!=s?s:"Select data categories"}),(0,i.jsx)(l.qyq,{children:(0,i.jsxs)(l.xuv,{maxHeight:"50vh",minWidth:"300px",maxW:"full",overflowY:"scroll",children:[(0,i.jsxs)(l.xuv,{position:"sticky",top:0,zIndex:1,backgroundColor:"white",pt:1,children:[(0,i.jsx)(l.__7,{children:(0,i.jsxs)(l.xuv,{display:"flex",justifyContent:"space-between",px:2,mb:2,children:[(0,i.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,i.jsx)(l.xvT,{mr:2,children:"Data Categories"}),(0,i.jsx)(l.sNh,{as:l.wpx,size:"small",className:"!w-auto","data-testid":"data-category-done-btn",children:"Done"})]})}),(0,i.jsx)(l.RaW,{})]}),(0,i.jsx)(l.xuv,{px:2,"data-testid":"data-category-checkbox-tree",children:(0,i.jsx)(h.ZP,{nodes:o,selected:n,onSelected:r})})]})})]})},p=e=>{let{dataCategories:t,checked:n,onChecked:r,tooltip:a}=e,s=e=>{r(n.filter(t=>t!==e))},o=n.slice().sort((e,t)=>e.localeCompare(t));return(0,i.jsxs)(l.rjZ,{templateColumns:"1fr 3fr",children:[(0,i.jsx)(l.lXp,{children:"Data Categories"}),(0,i.jsxs)(l.vyj,{direction:"vertical",size:"small",children:[(0,i.jsxs)(l.xuv,{display:"flex",alignItems:"center",children:[(0,i.jsx)(l.xuv,{mr:"2",width:"100%",children:(0,i.jsx)(f,{dataCategories:t,checked:n,onChecked:r})}),(0,i.jsx)(u.b,{label:a})]}),(0,i.jsx)(l.vyj,{direction:"vertical",size:2,"data-testid":"selected-categories",children:o.map(e=>(0,i.jsx)(l.j8w,{closable:!0,onClose:()=>{s(e)},children:e},e))})]})]})};let C="edit-collection-or-field-form";var m=e=>{var t;let{values:n,onSubmit:u,dataType:h,showDataCategories:x=!0}=e,f={description:null!==(t=n.description)&&void 0!==t?t:"",data_categories:n.data_categories},m=(0,s.v9)(c.qb).filter(e=>e.active),[j,v]=(0,a.useState)(f.data_categories||[]),A="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,i.jsx)(r.J9,{initialValues:f,onSubmit:e=>{u({...e,data_categories:j})},children:(0,i.jsx)(r.l0,{id:C,children:(0,i.jsxs)(l.Kqy,{children:[(0,i.jsx)(o.j0,{name:"description",label:"Description",tooltip:A,"data-testid":"description-input"}),x&&(0,i.jsx)(p,{dataCategories:m,checked:j,onChecked:v,tooltip:y})]})})})}},56026:function(e,t,n){n.d(t,{QL:function(){return r},du:function(){return l},tz:function(){return i}});let i={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."}}},69435:function(e,t,n){n.d(t,{Fk:function(){return c},_n:function(){return s},jC:function(){return r},qe:function(){return o}});var i=n(99729),l=n.n(i);let r=(e,t,n)=>{let i=e.collections.map((e,i)=>i===n?t:e);return{...e,collections:i}},a=(e,t,n)=>{let i=e.fields.map((e,i)=>i===n?t:e);return{...e,fields:i}},s=(e,t,n,i)=>{let l=a(e.collections[n],t,i);return r(e,l,n)},o=(e,t)=>{let n=e.collections.filter((e,n)=>n!==t);return{...e,collections:n}},c=e=>{let{dataset:t,collectionName:n,subfields:i}=e,r="",a=t.collections.findIndex(e=>e.name===n);return r+="collections[".concat(a,"]"),i&&i.forEach(e=>{let n=l()(t,r).fields.findIndex(t=>t.name===e);r+=".fields[".concat(n,"]")}),r}},59001:function(e,t,n){n.d(t,{Ch:function(){return a},Hy:function(){return s},Lo:function(){return l}});var i,l,r=n(54682);let a="root";(i=l||(l={})).DATA_CATEGORIES="Data categories",i.DATA_USES="Data uses",i.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))}}},90673:function(e,t,n){n.d(t,{Cd:function(){return r},Xl:function(){return a}});var i=n(54682),l=n(59001);let r=(e,t)=>{let n;if(null==t&&e.every(e=>void 0===e.parent_key))n=e;else{let i=null!=t?t:null;n=e.filter(e=>e.parent_key===i)}return n.map(t=>{var n,i;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!==(n=t.is_default)&&void 0!==n&&n,active:null!==(i=t.active)&&void 0!==i&&i}})},a=e=>{switch(e){case l.Lo.DATA_CATEGORIES:return i.P6.DATA_CATEGORY;case l.Lo.DATA_SUBJECTS:return i.P6.DATA_SUBJECT;case l.Lo.DATA_USES:return i.P6.DATA_USE;default:return}}}}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9278],{66070:function(r){r.exports=function(r,n){for(var t=-1,e=null==r?0:r.length,o=Array(e);++t<e;)o[t]=n(r[t],t,r);return o}},90756:function(r){r.exports=function(r,n){for(var t=-1,e=null==r?0:r.length;++t<e;)if(n(r[t],t,r))return!0;return!1}},79867:function(r,n,t){var e=t(76747),o=t(37948);r.exports=function(r,n){n=e(n,r);for(var t=0,u=n.length;null!=r&&t<u;)r=r[o(n[t++])];return t&&t==u?r:void 0}},21610:function(r){r.exports=function(r,n){return null!=r&&n in Object(r)}},32866:function(r,n,t){var e=t(12772),o=t(92360);r.exports=function r(n,t,u,i,f){return n===t||(null!=n&&null!=t&&(o(n)||o(t))?e(n,t,u,i,r,f):n!=n&&t!=t)}},12772:function(r,n,t){var e=t(23694),o=t(27042),u=t(370),i=t(39584),f=t(3533),c=t(19785),a=t(43854),v=t(48519),s="[object Arguments]",l="[object Array]",p="[object Object]",b=Object.prototype.hasOwnProperty;r.exports=function(r,n,t,h,x,y){var g=c(r),d=c(n),j=g?l:f(r),w=d?l:f(n);j=j==s?p:j,w=w==s?p:w;var k=j==p,O=w==p,_=j==w;if(_&&a(r)){if(!a(n))return!1;g=!0,k=!1}if(_&&!k)return y||(y=new e),g||v(r)?o(r,n,t,h,x,y):u(r,n,j,t,h,x,y);if(!(1&t)){var m=k&&b.call(r,"__wrapped__"),E=O&&b.call(n,"__wrapped__");if(m||E){var A=m?r.value():r,C=E?n.value():n;return y||(y=new e),x(A,C,t,h,y)}}return!!_&&(y||(y=new e),i(r,n,t,h,x,y))}},19850:function(r,n,t){var e=t(23694),o=t(32866);r.exports=function(r,n,t,u){var i=t.length,f=i,c=!u;if(null==r)return!f;for(r=Object(r);i--;){var a=t[i];if(c&&a[2]?a[1]!==r[a[0]]:!(a[0]in r))return!1}for(;++i<f;){var v=(a=t[i])[0],s=r[v],l=a[1];if(c&&a[2]){if(void 0===s&&!(v in r))return!1}else{var p=new e;if(u)var b=u(s,l,v,r,n,p);if(!(void 0===b?o(l,s,3,u,p):b))return!1}}return!0}},89278:function(r,n,t){var e=t(71410),o=t(57518),u=t(31137),i=t(19785),f=t(96001);r.exports=function(r){return"function"==typeof r?r:null==r?u:"object"==typeof r?i(r)?o(r[0],r[1]):e(r):f(r)}},71410:function(r,n,t){var e=t(19850),o=t(68125),u=t(65042);r.exports=function(r){var n=o(r);return 1==n.length&&n[0][2]?u(n[0][0],n[0][1]):function(t){return t===r||e(t,r,n)}}},57518:function(r,n,t){var e=t(32866),o=t(99729),u=t(79749),i=t(40318),f=t(68302),c=t(65042),a=t(37948);r.exports=function(r,n){return i(r)&&f(n)?c(a(r),n):function(t){var i=o(t,r);return void 0===i&&i===n?u(t,r):e(n,i,3)}}},50517:function(r){r.exports=function(r){return function(n){return null==n?void 0:n[r]}}},10301:function(r,n,t){var e=t(79867);r.exports=function(r){return function(n){return e(n,r)}}},34282:function(r,n,t){var e=t(96539),o=t(66070),u=t(19785),i=t(55193),f=1/0,c=e?e.prototype:void 0,a=c?c.toString:void 0;r.exports=function r(n){if("string"==typeof n)return n;if(u(n))return o(n,r)+"";if(i(n))return a?a.call(n):"";var t=n+"";return"0"==t&&1/n==-f?"-0":t}},76747:function(r,n,t){var e=t(19785),o=t(40318),u=t(23419),i=t(65567);r.exports=function(r,n){return e(r)?r:o(r,n)?[r]:u(i(r))}},27042:function(r,n,t){var e=t(52485),o=t(90756),u=t(65581);r.exports=function(r,n,t,i,f,c){var a=1&t,v=r.length,s=n.length;if(v!=s&&!(a&&s>v))return!1;var l=c.get(r),p=c.get(n);if(l&&p)return l==n&&p==r;var b=-1,h=!0,x=2&t?new e:void 0;for(c.set(r,n),c.set(n,r);++b<v;){var y=r[b],g=n[b];if(i)var d=a?i(g,y,b,n,r,c):i(y,g,b,r,n,c);if(void 0!==d){if(d)continue;h=!1;break}if(x){if(!o(n,function(r,n){if(!u(x,n)&&(y===r||f(y,r,t,i,c)))return x.push(n)})){h=!1;break}}else if(!(y===g||f(y,g,t,i,c))){h=!1;break}}return c.delete(r),c.delete(n),h}},370:function(r,n,t){var e=t(96539),o=t(59942),u=t(85638),i=t(27042),f=t(19383),c=t(43735),a=e?e.prototype:void 0,v=a?a.valueOf:void 0;r.exports=function(r,n,t,e,a,s,l){switch(t){case"[object DataView]":if(r.byteLength!=n.byteLength||r.byteOffset!=n.byteOffset)break;r=r.buffer,n=n.buffer;case"[object ArrayBuffer]":if(r.byteLength!=n.byteLength||!s(new o(r),new o(n)))break;return!0;case"[object Boolean]":case"[object Date]":case"[object Number]":return u(+r,+n);case"[object Error]":return r.name==n.name&&r.message==n.message;case"[object RegExp]":case"[object String]":return r==n+"";case"[object Map]":var p=f;case"[object Set]":var b=1&e;if(p||(p=c),r.size!=n.size&&!b)break;var h=l.get(r);if(h)return h==n;e|=2,l.set(r,n);var x=i(p(r),p(n),e,a,s,l);return l.delete(r),x;case"[object Symbol]":if(v)return v.call(r)==v.call(n)}return!1}},39584:function(r,n,t){var e=t(51385),o=Object.prototype.hasOwnProperty;r.exports=function(r,n,t,u,i,f){var c=1&t,a=e(r),v=a.length;if(v!=e(n).length&&!c)return!1;for(var s=v;s--;){var l=a[s];if(!(c?l in n:o.call(n,l)))return!1}var p=f.get(r),b=f.get(n);if(p&&b)return p==n&&b==r;var h=!0;f.set(r,n),f.set(n,r);for(var x=c;++s<v;){var y=r[l=a[s]],g=n[l];if(u)var d=c?u(g,y,l,n,r,f):u(y,g,l,r,n,f);if(!(void 0===d?y===g||i(y,g,t,u,f):d)){h=!1;break}x||(x="constructor"==l)}if(h&&!x){var j=r.constructor,w=n.constructor;j!=w&&"constructor"in r&&"constructor"in n&&!("function"==typeof j&&j instanceof j&&"function"==typeof w&&w instanceof w)&&(h=!1)}return f.delete(r),f.delete(n),h}},68125:function(r,n,t){var e=t(68302),o=t(50098);r.exports=function(r){for(var n=o(r),t=n.length;t--;){var u=n[t],i=r[u];n[t]=[u,i,e(i)]}return n}},731:function(r,n,t){var e=t(76747),o=t(2900),u=t(19785),i=t(42383),f=t(84194),c=t(37948);r.exports=function(r,n,t){n=e(n,r);for(var a=-1,v=n.length,s=!1;++a<v;){var l=c(n[a]);if(!(s=null!=r&&t(r,l)))break;r=r[l]}return s||++a!=v?s:!!(v=null==r?0:r.length)&&f(v)&&i(l,v)&&(u(r)||o(r))}},40318:function(r,n,t){var e=t(19785),o=t(55193),u=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,i=/^\w*$/;r.exports=function(r,n){if(e(r))return!1;var t=typeof r;return!!("number"==t||"symbol"==t||"boolean"==t||null==r||o(r))||i.test(r)||!u.test(r)||null!=n&&r in Object(n)}},68302:function(r,n,t){var e=t(11611);r.exports=function(r){return r==r&&!e(r)}},19383:function(r){r.exports=function(r){var n=-1,t=Array(r.size);return r.forEach(function(r,e){t[++n]=[e,r]}),t}},65042:function(r){r.exports=function(r,n){return function(t){return null!=t&&t[r]===n&&(void 0!==n||r in Object(t))}}},2941:function(r,n,t){var e=t(16651);r.exports=function(r){var n=e(r,function(r){return 500===t.size&&t.clear(),r}),t=n.cache;return n}},23419:function(r,n,t){var e=t(2941),o=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,u=/\\(\\)?/g,i=e(function(r){var n=[];return 46===r.charCodeAt(0)&&n.push(""),r.replace(o,function(r,t,e,o){n.push(e?o.replace(u,"$1"):t||r)}),n});r.exports=i},37948:function(r,n,t){var e=t(55193),o=1/0;r.exports=function(r){if("string"==typeof r||e(r))return r;var n=r+"";return"0"==n&&1/r==-o?"-0":n}},99729:function(r,n,t){var e=t(79867);r.exports=function(r,n,t){var o=null==r?void 0:e(r,n);return void 0===o?t:o}},79749:function(r,n,t){var e=t(21610),o=t(731);r.exports=function(r,n){return null!=r&&o(r,n,e)}},31137:function(r){r.exports=function(r){return r}},55193:function(r,n,t){var e=t(99736),o=t(92360);r.exports=function(r){return"symbol"==typeof r||o(r)&&"[object Symbol]"==e(r)}},16651:function(r,n,t){var e=t(74554);function o(r,n){if("function"!=typeof r||null!=n&&"function"!=typeof n)throw TypeError("Expected a function");var t=function(){var e=arguments,o=n?n.apply(this,e):e[0],u=t.cache;if(u.has(o))return u.get(o);var i=r.apply(this,e);return t.cache=u.set(o,i)||u,i};return t.cache=new(o.Cache||e),t}o.Cache=e,r.exports=o},96001:function(r,n,t){var e=t(50517),o=t(10301),u=t(40318),i=t(37948);r.exports=function(r){return u(r)?e(i(r)):o(r)}},65567:function(r,n,t){var e=t(34282);r.exports=function(r){return null==r?"":e(r)}}}]);