ethyca-fides 2.56.2b1__py2.py3-none-any.whl → 2.56.2rc0__py2.py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (298) hide show
  1. {ethyca_fides-2.56.2b1.dist-info → ethyca_fides-2.56.2rc0.dist-info}/METADATA +1 -1
  2. {ethyca_fides-2.56.2b1.dist-info → ethyca_fides-2.56.2rc0.dist-info}/RECORD +206 -208
  3. fides/_version.py +3 -3
  4. fides/api/models/audit_log.py +0 -3
  5. fides/ui-build/static/admin/404.html +1 -1
  6. fides/ui-build/static/admin/_next/static/chunks/1241-438935108aed21e7.js +1 -0
  7. fides/ui-build/static/admin/_next/static/chunks/1288-ba1df63e7fa2234a.js +1 -0
  8. fides/ui-build/static/admin/_next/static/chunks/1827-2d2f6eb59ebca43f.js +1 -0
  9. fides/ui-build/static/admin/_next/static/chunks/2017-312ebd5e1ee3a4cc.js +1 -0
  10. fides/ui-build/static/admin/_next/static/chunks/2025-8e051f2e024df3bf.js +1 -0
  11. fides/ui-build/static/admin/_next/static/chunks/2163-4ea4bc558daae7b9.js +1 -0
  12. fides/ui-build/static/admin/_next/static/chunks/{255-1dab28b6d23451cf.js → 255-8d4d20193afd2223.js} +1 -1
  13. fides/ui-build/static/admin/_next/static/chunks/2556-a58aca0405c150e6.js +1 -0
  14. fides/ui-build/static/admin/_next/static/chunks/{9392.0f11b5b42a4ccb18.js → 2800.6615615b3f98c173.js} +1 -1
  15. fides/ui-build/static/admin/_next/static/chunks/2973-995ae9f580873e5b.js +1 -0
  16. fides/ui-build/static/admin/_next/static/chunks/{3005-373de16453ed7eea.js → 3005-137ef60b77c71ce1.js} +1 -1
  17. fides/ui-build/static/admin/_next/static/chunks/3163-7ebdab4fefa7e21f.js +1 -0
  18. fides/ui-build/static/admin/_next/static/chunks/3309-d014168a94ed008b.js +1 -0
  19. fides/ui-build/static/admin/_next/static/chunks/3528-5e4ade882be165e4.js +1 -0
  20. fides/ui-build/static/admin/_next/static/chunks/3990-d38bb0b12394ae4d.js +1 -0
  21. fides/ui-build/static/admin/_next/static/chunks/4321-9c97c4e0d5cf38bd.js +1 -0
  22. fides/ui-build/static/admin/_next/static/chunks/{3872-bd02ad87861b67d7.js → 4456-87020c4b11dc6e0e.js} +1 -1
  23. fides/ui-build/static/admin/_next/static/chunks/4981-c7710c0d9ff7f9cf.js +1 -0
  24. fides/ui-build/static/admin/_next/static/chunks/53-bd8367b6a28ef9b0.js +1 -0
  25. fides/ui-build/static/admin/_next/static/chunks/{3627-5e589e91b738f5cd.js → 5318-d81dc29254349932.js} +1 -1
  26. fides/ui-build/static/admin/_next/static/chunks/{6372-e305cd2ea5577339.js → 5632-6a150393937e52ea.js} +1 -1
  27. fides/ui-build/static/admin/_next/static/chunks/{2397-5382265aeb68b955.js → 5728-32ce3e7a41d1fb9f.js} +1 -1
  28. fides/ui-build/static/admin/_next/static/chunks/{7980-fb48142b786fcef9.js → 5973-7bbf7cd9475c070d.js} +1 -1
  29. fides/ui-build/static/admin/_next/static/chunks/6182-87e468239a93f7e2.js +1 -0
  30. fides/ui-build/static/admin/_next/static/chunks/{618f8807-d15c33d1d6c8b961.js → 618f8807-5792121b4eda076b.js} +1 -1
  31. fides/ui-build/static/admin/_next/static/chunks/637-3f7f3e47e69e75fe.js +1 -0
  32. fides/ui-build/static/admin/_next/static/chunks/6546-7d8e618a3e49a19a.js +1 -0
  33. fides/ui-build/static/admin/_next/static/chunks/7080-54768a5669e98da9.js +1 -0
  34. fides/ui-build/static/admin/_next/static/chunks/7269-aaa4ad906c8bf8f7.js +1 -0
  35. fides/ui-build/static/admin/_next/static/chunks/7528.b7f05f44d1ff3997.js +1 -0
  36. fides/ui-build/static/admin/_next/static/chunks/{7751-b2504265ef7c096f.js → 7548-cdf0d184fa13ddaf.js} +1 -1
  37. fides/ui-build/static/admin/_next/static/chunks/7636-bf8c77691e80223b.js +1 -0
  38. fides/ui-build/static/admin/_next/static/chunks/7871-69ffa5607b57cbcf.js +1 -0
  39. fides/ui-build/static/admin/_next/static/chunks/7996-5521a6949bfe4640.js +1 -0
  40. fides/ui-build/static/admin/_next/static/chunks/8001-f142a2097615505a.js +1 -0
  41. fides/ui-build/static/admin/_next/static/chunks/{3949-afca6e7434ad561f.js → 8141-4eb48e91039a27d5.js} +1 -1
  42. fides/ui-build/static/admin/_next/static/chunks/8540-cf0177abbe201868.js +1 -0
  43. fides/ui-build/static/admin/_next/static/chunks/{8837-cf26e5ca1ae5aaf5.js → 8837-2b785a4e5bad4813.js} +1 -1
  44. fides/ui-build/static/admin/_next/static/chunks/8986-b955f08aba857064.js +1 -0
  45. fides/ui-build/static/admin/_next/static/chunks/9111-36f3eb6456817560.js +1 -0
  46. fides/ui-build/static/admin/_next/static/chunks/{9255-336a890ada321f89.js → 9255-2b1bafefb091a640.js} +1 -1
  47. fides/ui-build/static/admin/_next/static/chunks/9659-7a6f150315045fdd.js +1 -0
  48. fides/ui-build/static/admin/_next/static/chunks/9822-e0b4ee48b9ca9d6c.js +1 -0
  49. fides/ui-build/static/admin/_next/static/chunks/main-6880a3888740c515.js +1 -0
  50. fides/ui-build/static/admin/_next/static/chunks/main-app-de538a24cbd2733c.js +1 -0
  51. fides/ui-build/static/admin/_next/static/chunks/pages/404-cf2b98b932c99b1e.js +1 -0
  52. fides/ui-build/static/admin/_next/static/chunks/pages/{_app-56cdc9725fe73b37.js → _app-ec8f262156df2273.js} +8 -8
  53. fides/ui-build/static/admin/_next/static/chunks/pages/{_error-bede3a8288930dcf.js → _error-c91b5eabd7ac9382.js} +1 -1
  54. fides/ui-build/static/admin/_next/static/chunks/pages/add-systems/manual-227ad8dba69aadab.js +1 -0
  55. fides/ui-build/static/admin/_next/static/chunks/pages/add-systems/{multiple-c2b5ce54dae22850.js → multiple-e47482277518eeac.js} +1 -1
  56. fides/ui-build/static/admin/_next/static/chunks/pages/add-systems-500ee461301938a8.js +1 -0
  57. fides/ui-build/static/admin/_next/static/chunks/pages/ant-poc-833eede89996ded2.js +1 -0
  58. fides/ui-build/static/admin/_next/static/chunks/pages/consent/configure/{add-vendors-ffa474e483e82d14.js → add-vendors-59913e9cc73e09c9.js} +1 -1
  59. fides/ui-build/static/admin/_next/static/chunks/pages/consent/configure-49c576c235a79105.js +1 -0
  60. fides/ui-build/static/admin/_next/static/chunks/pages/consent/privacy-experience/[id]-f88c83c3daedc898.js +1 -0
  61. fides/ui-build/static/admin/_next/static/chunks/pages/consent/privacy-experience/new-8eb5999c73f3e445.js +1 -0
  62. fides/ui-build/static/admin/_next/static/chunks/pages/consent/privacy-experience-3eaec69fa89f74ce.js +1 -0
  63. fides/ui-build/static/admin/_next/static/chunks/pages/consent/privacy-notices/{[id]-1a3b9b906df09b89.js → [id]-941d95c937170eca.js} +1 -1
  64. fides/ui-build/static/admin/_next/static/chunks/pages/consent/privacy-notices/{new-95f9157a1576682a.js → new-0e3788b351b85329.js} +1 -1
  65. fides/ui-build/static/admin/_next/static/chunks/pages/consent/privacy-notices-363b22d7785b3820.js +1 -0
  66. fides/ui-build/static/admin/_next/static/chunks/pages/consent/properties-5f80a5d6b216b7d3.js +1 -0
  67. fides/ui-build/static/admin/_next/static/chunks/pages/consent/reporting-d1abffec10948e2e.js +1 -0
  68. fides/ui-build/static/admin/_next/static/chunks/pages/{consent-419008bdf518df6b.js → consent-160eab9ebbbd1d25.js} +1 -1
  69. fides/ui-build/static/admin/_next/static/chunks/pages/data-catalog/[systemId]/projects/[projectUrn]/[resourceUrn]-ef19223d2cdc1258.js +1 -0
  70. fides/ui-build/static/admin/_next/static/chunks/pages/data-catalog/[systemId]/projects/[projectUrn]-50b989ef31996157.js +1 -0
  71. fides/ui-build/static/admin/_next/static/chunks/pages/data-catalog/[systemId]/projects-96f81e13cc52686f.js +1 -0
  72. fides/ui-build/static/admin/_next/static/chunks/pages/data-catalog/[systemId]/resources/[resourceUrn]-fd3d508ab13ddb5b.js +1 -0
  73. fides/ui-build/static/admin/_next/static/chunks/pages/data-catalog/[systemId]/{resources-9596052d50cf6cc9.js → resources-71ce2e9dbf646ecd.js} +1 -1
  74. fides/ui-build/static/admin/_next/static/chunks/pages/data-catalog-11d772fe8b66f9b6.js +1 -0
  75. fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/action-center/[monitorId]/[systemId]-e3dbeac39e3ebd59.js +1 -0
  76. fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/action-center/{[monitorId]-39050055e1623a2c.js → [monitorId]-ca97d78d3e655a9d.js} +1 -1
  77. fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/{action-center-d141b9651696c214.js → action-center-6d6d0b3bd37434da.js} +1 -1
  78. fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/activity-bdb48de828181c14.js +1 -0
  79. fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/detection/{[resourceUrn]-82d053232db137ac.js → [resourceUrn]-f8f65f23ff9edaeb.js} +1 -1
  80. fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/{detection-083c8fba2837e11c.js → detection-dbcda00811800c31.js} +1 -1
  81. fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/discovery/[resourceUrn]-90ebc7dd32d37952.js +1 -0
  82. fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/discovery-3251e73054b9f980.js +1 -0
  83. fides/ui-build/static/admin/_next/static/chunks/pages/datamap-f79309e33e7583fa.js +1 -0
  84. fides/ui-build/static/admin/_next/static/chunks/pages/dataset/[datasetId]/[collectionName]/[...subfieldNames]-63f5bebe5851b767.js +1 -0
  85. fides/ui-build/static/admin/_next/static/chunks/pages/dataset/[datasetId]/[collectionName]-18ff69fb79811cff.js +1 -0
  86. fides/ui-build/static/admin/_next/static/chunks/pages/dataset/[datasetId]-ad8ab0745c40a187.js +1 -0
  87. fides/ui-build/static/admin/_next/static/chunks/pages/dataset/new-72cdfa2ff1a4f38b.js +1 -0
  88. fides/ui-build/static/admin/_next/static/chunks/pages/dataset-6ab8c03b8baa93ca.js +1 -0
  89. fides/ui-build/static/admin/_next/static/chunks/pages/datastore-connection/[id]-9f1a9e0e2b443b2a.js +1 -0
  90. fides/ui-build/static/admin/_next/static/chunks/pages/datastore-connection/new-c7de595cc7a42eba.js +1 -0
  91. fides/ui-build/static/admin/_next/static/chunks/pages/datastore-connection-9cafd280f2dff51b.js +1 -0
  92. fides/ui-build/static/admin/_next/static/chunks/pages/index-f6c4817f3c27b16c.js +1 -0
  93. fides/ui-build/static/admin/_next/static/chunks/pages/integrations/[id]-c431f92c941859c4.js +1 -0
  94. fides/ui-build/static/admin/_next/static/chunks/pages/integrations-43234d749fbc0606.js +1 -0
  95. fides/ui-build/static/admin/_next/static/chunks/pages/login/{[provider]-c58beef131c3a82d.js → [provider]-cac9584cefa85a09.js} +1 -1
  96. fides/ui-build/static/admin/_next/static/chunks/pages/{login-0cb0eb44bf2dd24c.js → login-e55849091751c65a.js} +1 -1
  97. fides/ui-build/static/admin/_next/static/chunks/pages/messaging/[id]-014724a2527621b5.js +1 -0
  98. fides/ui-build/static/admin/_next/static/chunks/pages/messaging/add-template-860ee8c0e0a2d994.js +1 -0
  99. fides/ui-build/static/admin/_next/static/chunks/pages/{messaging-194be66253503679.js → messaging-5a6202c3aaf15cce.js} +1 -1
  100. fides/ui-build/static/admin/_next/static/chunks/pages/privacy-requests/[id]-ae047733e540e0ef.js +1 -0
  101. fides/ui-build/static/admin/_next/static/chunks/pages/privacy-requests/configure/messaging-c6881c16a4058f20.js +1 -0
  102. fides/ui-build/static/admin/_next/static/chunks/pages/privacy-requests/configure/storage-4b68311b85486f8c.js +1 -0
  103. fides/ui-build/static/admin/_next/static/chunks/pages/privacy-requests/{configure-8badde37699accd4.js → configure-9ec13a78be8f23bf.js} +1 -1
  104. fides/ui-build/static/admin/_next/static/chunks/pages/privacy-requests-c0ee732681c1d4ef.js +1 -0
  105. fides/ui-build/static/admin/_next/static/chunks/pages/properties/{[id]-4bf43e86f68a99fb.js → [id]-6597c1714cb44cbc.js} +1 -1
  106. fides/ui-build/static/admin/_next/static/chunks/pages/properties/add-property-674abcb6eaeb32de.js +1 -0
  107. fides/ui-build/static/admin/_next/static/chunks/pages/properties-f939fbdb6bc969ef.js +1 -0
  108. fides/ui-build/static/admin/_next/static/chunks/pages/reporting/datamap-7446940b5f984a24.js +1 -0
  109. fides/ui-build/static/admin/_next/static/chunks/pages/settings/{about-a425b79765abd602.js → about-ec35b0518d3fb3bb.js} +1 -1
  110. fides/ui-build/static/admin/_next/static/chunks/pages/settings/consent-92a19e7da38d3325.js +1 -0
  111. fides/ui-build/static/admin/_next/static/chunks/pages/settings/custom-fields-3bbbb1612eb447e9.js +1 -0
  112. fides/ui-build/static/admin/_next/static/chunks/pages/settings/domain-records-c59eedd4f4a637aa.js +1 -0
  113. fides/ui-build/static/admin/_next/static/chunks/pages/settings/domains-61ddd1a76e4ab2c6.js +1 -0
  114. fides/ui-build/static/admin/_next/static/chunks/pages/settings/email-templates-4d55571c2799e7fe.js +1 -0
  115. fides/ui-build/static/admin/_next/static/chunks/pages/settings/locations-725f4a6a809bd1e6.js +1 -0
  116. fides/ui-build/static/admin/_next/static/chunks/pages/settings/organization-fc13f3473328020d.js +1 -0
  117. fides/ui-build/static/admin/_next/static/chunks/pages/settings/regulations-8934706c2c817abe.js +1 -0
  118. fides/ui-build/static/admin/_next/static/chunks/pages/systems/configure/[id]/test-datasets-0ee9dc1f37205410.js +1 -0
  119. fides/ui-build/static/admin/_next/static/chunks/pages/systems/configure/[id]-15f55e6c399eed5e.js +1 -0
  120. fides/ui-build/static/admin/_next/static/chunks/pages/systems-0b4f7a20fa248642.js +1 -0
  121. fides/ui-build/static/admin/_next/static/chunks/pages/taxonomy-ad082f72d90bdfe2.js +1 -0
  122. fides/ui-build/static/admin/_next/static/chunks/pages/user-management/new-a59a02634d672703.js +1 -0
  123. fides/ui-build/static/admin/_next/static/chunks/pages/user-management/profile/[id]-99490929267dbcef.js +1 -0
  124. fides/ui-build/static/admin/_next/static/chunks/pages/user-management-2eedb806df4160b3.js +1 -0
  125. fides/ui-build/static/admin/_next/static/chunks/polyfills-78c92fac7aa8fdd8.js +1 -0
  126. fides/ui-build/static/admin/_next/static/chunks/{webpack-2156b65f5a3e1784.js → webpack-f8d056f5e13fe08a.js} +1 -1
  127. fides/ui-build/static/admin/_next/static/rRoDDYqLSb1smOELraq4P/_buildManifest.js +1 -0
  128. fides/ui-build/static/admin/add-systems/manual.html +1 -1
  129. fides/ui-build/static/admin/add-systems/multiple.html +1 -1
  130. fides/ui-build/static/admin/add-systems.html +1 -1
  131. fides/ui-build/static/admin/ant-poc.html +1 -1
  132. fides/ui-build/static/admin/consent/configure/add-vendors.html +1 -1
  133. fides/ui-build/static/admin/consent/configure.html +1 -1
  134. fides/ui-build/static/admin/consent/privacy-experience/[id].html +1 -1
  135. fides/ui-build/static/admin/consent/privacy-experience/new.html +1 -1
  136. fides/ui-build/static/admin/consent/privacy-experience.html +1 -1
  137. fides/ui-build/static/admin/consent/privacy-notices/[id].html +1 -1
  138. fides/ui-build/static/admin/consent/privacy-notices/new.html +1 -1
  139. fides/ui-build/static/admin/consent/privacy-notices.html +1 -1
  140. fides/ui-build/static/admin/consent/properties.html +1 -1
  141. fides/ui-build/static/admin/consent/reporting.html +1 -1
  142. fides/ui-build/static/admin/consent.html +1 -1
  143. fides/ui-build/static/admin/data-catalog/[systemId]/projects/[projectUrn]/[resourceUrn].html +1 -1
  144. fides/ui-build/static/admin/data-catalog/[systemId]/projects/[projectUrn].html +1 -1
  145. fides/ui-build/static/admin/data-catalog/[systemId]/projects.html +1 -1
  146. fides/ui-build/static/admin/data-catalog/[systemId]/resources/[resourceUrn].html +1 -1
  147. fides/ui-build/static/admin/data-catalog/[systemId]/resources.html +1 -1
  148. fides/ui-build/static/admin/data-catalog.html +1 -1
  149. fides/ui-build/static/admin/data-discovery/action-center/[monitorId]/[systemId].html +1 -1
  150. fides/ui-build/static/admin/data-discovery/action-center/[monitorId].html +1 -1
  151. fides/ui-build/static/admin/data-discovery/action-center.html +1 -1
  152. fides/ui-build/static/admin/data-discovery/activity.html +1 -1
  153. fides/ui-build/static/admin/data-discovery/detection/[resourceUrn].html +1 -1
  154. fides/ui-build/static/admin/data-discovery/detection.html +1 -1
  155. fides/ui-build/static/admin/data-discovery/discovery/[resourceUrn].html +1 -1
  156. fides/ui-build/static/admin/data-discovery/discovery.html +1 -1
  157. fides/ui-build/static/admin/datamap.html +1 -1
  158. fides/ui-build/static/admin/dataset/[datasetId]/[collectionName]/[...subfieldNames].html +1 -1
  159. fides/ui-build/static/admin/dataset/[datasetId]/[collectionName].html +1 -1
  160. fides/ui-build/static/admin/dataset/[datasetId].html +1 -1
  161. fides/ui-build/static/admin/dataset/new.html +1 -1
  162. fides/ui-build/static/admin/dataset.html +1 -1
  163. fides/ui-build/static/admin/datastore-connection/[id].html +1 -1
  164. fides/ui-build/static/admin/datastore-connection/new.html +1 -1
  165. fides/ui-build/static/admin/datastore-connection.html +1 -1
  166. fides/ui-build/static/admin/index.html +1 -1
  167. fides/ui-build/static/admin/integrations/[id].html +1 -1
  168. fides/ui-build/static/admin/integrations.html +1 -1
  169. fides/ui-build/static/admin/lib/fides-headless.js +1 -1
  170. fides/ui-build/static/admin/lib/fides-tcf.js +3 -3
  171. fides/ui-build/static/admin/lib/fides.js +2 -2
  172. fides/ui-build/static/admin/login/[provider].html +1 -1
  173. fides/ui-build/static/admin/login.html +1 -1
  174. fides/ui-build/static/admin/messaging/[id].html +1 -1
  175. fides/ui-build/static/admin/messaging/add-template.html +1 -1
  176. fides/ui-build/static/admin/messaging.html +1 -1
  177. fides/ui-build/static/admin/privacy-requests/[id].html +1 -1
  178. fides/ui-build/static/admin/privacy-requests/configure/messaging.html +1 -1
  179. fides/ui-build/static/admin/privacy-requests/configure/storage.html +1 -1
  180. fides/ui-build/static/admin/privacy-requests/configure.html +1 -1
  181. fides/ui-build/static/admin/privacy-requests.html +1 -1
  182. fides/ui-build/static/admin/properties/[id].html +1 -1
  183. fides/ui-build/static/admin/properties/add-property.html +1 -1
  184. fides/ui-build/static/admin/properties.html +1 -1
  185. fides/ui-build/static/admin/reporting/datamap.html +1 -1
  186. fides/ui-build/static/admin/settings/about.html +1 -1
  187. fides/ui-build/static/admin/settings/consent.html +1 -1
  188. fides/ui-build/static/admin/settings/custom-fields.html +1 -1
  189. fides/ui-build/static/admin/settings/domain-records.html +1 -1
  190. fides/ui-build/static/admin/settings/domains.html +1 -1
  191. fides/ui-build/static/admin/settings/email-templates.html +1 -1
  192. fides/ui-build/static/admin/settings/locations.html +1 -1
  193. fides/ui-build/static/admin/settings/organization.html +1 -1
  194. fides/ui-build/static/admin/settings/regulations.html +1 -1
  195. fides/ui-build/static/admin/systems/configure/[id]/test-datasets.html +1 -1
  196. fides/ui-build/static/admin/systems/configure/[id].html +1 -1
  197. fides/ui-build/static/admin/systems.html +1 -1
  198. fides/ui-build/static/admin/taxonomy.html +1 -1
  199. fides/ui-build/static/admin/user-management/new.html +1 -1
  200. fides/ui-build/static/admin/user-management/profile/[id].html +1 -1
  201. fides/ui-build/static/admin/user-management.html +1 -1
  202. fides/api/alembic/migrations/versions/bd875a8b5d96_add_attachments_and_.py +0 -96
  203. fides/api/models/attachment.py +0 -153
  204. fides/ui-build/static/admin/_next/static/G4yyqYFNYjBbKTQG4qT1Z/_buildManifest.js +0 -1
  205. fides/ui-build/static/admin/_next/static/chunks/1150-45ae64b8999bde9e.js +0 -1
  206. fides/ui-build/static/admin/_next/static/chunks/2201-5cda6f245e348ec1.js +0 -1
  207. fides/ui-build/static/admin/_next/static/chunks/3086-f15b42926fd055a0.js +0 -1
  208. fides/ui-build/static/admin/_next/static/chunks/3320-1070e41adcf432ac.js +0 -1
  209. fides/ui-build/static/admin/_next/static/chunks/3662-5639ae50b8dccf23.js +0 -1
  210. fides/ui-build/static/admin/_next/static/chunks/3855-7fc48fe049dc17e6.js +0 -1
  211. fides/ui-build/static/admin/_next/static/chunks/4481-a29f20bb58b211a4.js +0 -1
  212. fides/ui-build/static/admin/_next/static/chunks/4723-fc2288987e3b29d8.js +0 -1
  213. fides/ui-build/static/admin/_next/static/chunks/5246-9b38e34e434a8568.js +0 -1
  214. fides/ui-build/static/admin/_next/static/chunks/5258-299a63d9b4a469d9.js +0 -1
  215. fides/ui-build/static/admin/_next/static/chunks/5480-2abe7916447fa595.js +0 -1
  216. fides/ui-build/static/admin/_next/static/chunks/5487-348c811472ef5608.js +0 -1
  217. fides/ui-build/static/admin/_next/static/chunks/5826-3df3a9cd796a943f.js +0 -1
  218. fides/ui-build/static/admin/_next/static/chunks/5908-532dfbc9d930f635.js +0 -1
  219. fides/ui-build/static/admin/_next/static/chunks/5960-8895f51b30c35798.js +0 -1
  220. fides/ui-build/static/admin/_next/static/chunks/6277-ea65024c767f543e.js +0 -1
  221. fides/ui-build/static/admin/_next/static/chunks/6315-2ae623f4d2e24041.js +0 -1
  222. fides/ui-build/static/admin/_next/static/chunks/6362-d6d930922043de83.js +0 -1
  223. fides/ui-build/static/admin/_next/static/chunks/6853-350da1a0d61b7dda.js +0 -1
  224. fides/ui-build/static/admin/_next/static/chunks/6954-67c09ef890b489eb.js +0 -1
  225. fides/ui-build/static/admin/_next/static/chunks/7044-fc557bec36e0d833.js +0 -1
  226. fides/ui-build/static/admin/_next/static/chunks/7495-cf5540ed1d3a5f02.js +0 -1
  227. fides/ui-build/static/admin/_next/static/chunks/79-8a82c28f90175a36.js +0 -1
  228. fides/ui-build/static/admin/_next/static/chunks/8433-3912cacade51b692.js +0 -1
  229. fides/ui-build/static/admin/_next/static/chunks/8499-8cdbf2da63982520.js +0 -1
  230. fides/ui-build/static/admin/_next/static/chunks/8573.b0736c9c6f17dae9.js +0 -1
  231. fides/ui-build/static/admin/_next/static/chunks/9046-c49e36fc13e9643b.js +0 -1
  232. fides/ui-build/static/admin/_next/static/chunks/9111-8675301d4dd068bd.js +0 -1
  233. fides/ui-build/static/admin/_next/static/chunks/9282-cf4638e56db0a232.js +0 -1
  234. fides/ui-build/static/admin/_next/static/chunks/9999-fa566e2617c2d660.js +0 -1
  235. fides/ui-build/static/admin/_next/static/chunks/main-app-2650f704701c6a7b.js +0 -1
  236. fides/ui-build/static/admin/_next/static/chunks/main-ce7f38a12ea8c223.js +0 -1
  237. fides/ui-build/static/admin/_next/static/chunks/pages/404-162aedfa3b5c6960.js +0 -1
  238. fides/ui-build/static/admin/_next/static/chunks/pages/add-systems/manual-3cd7cb111fafa3f9.js +0 -1
  239. fides/ui-build/static/admin/_next/static/chunks/pages/add-systems-b1f944d2eb1676ff.js +0 -1
  240. fides/ui-build/static/admin/_next/static/chunks/pages/ant-poc-1e6090a92e89eba3.js +0 -1
  241. fides/ui-build/static/admin/_next/static/chunks/pages/consent/configure-40da2d94f2830e1e.js +0 -1
  242. fides/ui-build/static/admin/_next/static/chunks/pages/consent/privacy-experience/[id]-78ef82002d3d8c19.js +0 -1
  243. fides/ui-build/static/admin/_next/static/chunks/pages/consent/privacy-experience/new-34a85dfbd8040688.js +0 -1
  244. fides/ui-build/static/admin/_next/static/chunks/pages/consent/privacy-experience-fe7d178376b26c3e.js +0 -1
  245. fides/ui-build/static/admin/_next/static/chunks/pages/consent/privacy-notices-94419df1a94676cd.js +0 -1
  246. fides/ui-build/static/admin/_next/static/chunks/pages/consent/properties-03cf23593252980e.js +0 -1
  247. fides/ui-build/static/admin/_next/static/chunks/pages/consent/reporting-fd33cf4bc3bd7217.js +0 -1
  248. fides/ui-build/static/admin/_next/static/chunks/pages/data-catalog/[systemId]/projects/[projectUrn]/[resourceUrn]-dd11337b3513bb8a.js +0 -1
  249. fides/ui-build/static/admin/_next/static/chunks/pages/data-catalog/[systemId]/projects/[projectUrn]-d409ce34ece16cae.js +0 -1
  250. fides/ui-build/static/admin/_next/static/chunks/pages/data-catalog/[systemId]/projects-afaca2d14f3f3372.js +0 -1
  251. fides/ui-build/static/admin/_next/static/chunks/pages/data-catalog/[systemId]/resources/[resourceUrn]-af0763217947fb8d.js +0 -1
  252. fides/ui-build/static/admin/_next/static/chunks/pages/data-catalog-6d0c56a49450b23e.js +0 -1
  253. fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/action-center/[monitorId]/[systemId]-dd67d205d8e01310.js +0 -1
  254. fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/activity-44c921fc8f07ff28.js +0 -1
  255. fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/discovery/[resourceUrn]-c2f75aae2435b3f3.js +0 -1
  256. fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/discovery-6fdf5929b50052fa.js +0 -1
  257. fides/ui-build/static/admin/_next/static/chunks/pages/datamap-fdc1e31b739774a2.js +0 -1
  258. fides/ui-build/static/admin/_next/static/chunks/pages/dataset/[datasetId]/[collectionName]/[...subfieldNames]-bac79550f4a641a6.js +0 -1
  259. fides/ui-build/static/admin/_next/static/chunks/pages/dataset/[datasetId]/[collectionName]-968b9f1be2e8015e.js +0 -1
  260. fides/ui-build/static/admin/_next/static/chunks/pages/dataset/[datasetId]-fc98597c22321ee5.js +0 -1
  261. fides/ui-build/static/admin/_next/static/chunks/pages/dataset/new-13c36e0f9a5851e7.js +0 -1
  262. fides/ui-build/static/admin/_next/static/chunks/pages/dataset-784376c7068a46ea.js +0 -1
  263. fides/ui-build/static/admin/_next/static/chunks/pages/datastore-connection/[id]-a5c8556b5a936710.js +0 -1
  264. fides/ui-build/static/admin/_next/static/chunks/pages/datastore-connection/new-ddadae7cf352bdec.js +0 -1
  265. fides/ui-build/static/admin/_next/static/chunks/pages/datastore-connection-b04df874d0de1600.js +0 -1
  266. fides/ui-build/static/admin/_next/static/chunks/pages/index-0cb69e8e091559f5.js +0 -1
  267. fides/ui-build/static/admin/_next/static/chunks/pages/integrations/[id]-fefec1d20c5f53d3.js +0 -1
  268. fides/ui-build/static/admin/_next/static/chunks/pages/integrations-7cbceff4d808ddef.js +0 -1
  269. fides/ui-build/static/admin/_next/static/chunks/pages/messaging/[id]-dd87f20c6c304f6e.js +0 -1
  270. fides/ui-build/static/admin/_next/static/chunks/pages/messaging/add-template-0282fb9efb4ec896.js +0 -1
  271. fides/ui-build/static/admin/_next/static/chunks/pages/privacy-requests/[id]-4069f3831c0b30e3.js +0 -1
  272. fides/ui-build/static/admin/_next/static/chunks/pages/privacy-requests/configure/messaging-69f722cd2d034c91.js +0 -1
  273. fides/ui-build/static/admin/_next/static/chunks/pages/privacy-requests/configure/storage-70b68e4b21f7cc55.js +0 -1
  274. fides/ui-build/static/admin/_next/static/chunks/pages/privacy-requests-049931ac72a90590.js +0 -1
  275. fides/ui-build/static/admin/_next/static/chunks/pages/properties/add-property-5403174fb79895c3.js +0 -1
  276. fides/ui-build/static/admin/_next/static/chunks/pages/properties-06c55d3d713867b5.js +0 -1
  277. fides/ui-build/static/admin/_next/static/chunks/pages/reporting/datamap-4e1429ad4c083e4f.js +0 -1
  278. fides/ui-build/static/admin/_next/static/chunks/pages/settings/consent-402a7da5dae35b7a.js +0 -1
  279. fides/ui-build/static/admin/_next/static/chunks/pages/settings/custom-fields-24d12a789adc39e2.js +0 -1
  280. fides/ui-build/static/admin/_next/static/chunks/pages/settings/domain-records-b205aaafb53a629d.js +0 -1
  281. fides/ui-build/static/admin/_next/static/chunks/pages/settings/domains-7af5f66895a7f321.js +0 -1
  282. fides/ui-build/static/admin/_next/static/chunks/pages/settings/email-templates-1859b23d0e9ff327.js +0 -1
  283. fides/ui-build/static/admin/_next/static/chunks/pages/settings/locations-7fa58dfa4acc9924.js +0 -1
  284. fides/ui-build/static/admin/_next/static/chunks/pages/settings/organization-50624926a6cf17f0.js +0 -1
  285. fides/ui-build/static/admin/_next/static/chunks/pages/settings/regulations-51cea4d659db4309.js +0 -1
  286. fides/ui-build/static/admin/_next/static/chunks/pages/systems/configure/[id]/test-datasets-cee5aa3edcc6d827.js +0 -1
  287. fides/ui-build/static/admin/_next/static/chunks/pages/systems/configure/[id]-6fb382995c4a8249.js +0 -1
  288. fides/ui-build/static/admin/_next/static/chunks/pages/systems-c800e9fcf38bc6f6.js +0 -1
  289. fides/ui-build/static/admin/_next/static/chunks/pages/taxonomy-cdc44bbdf5694639.js +0 -1
  290. fides/ui-build/static/admin/_next/static/chunks/pages/user-management/new-d6717378b42982d5.js +0 -1
  291. fides/ui-build/static/admin/_next/static/chunks/pages/user-management/profile/[id]-d4a7854a4faf0b0a.js +0 -1
  292. fides/ui-build/static/admin/_next/static/chunks/pages/user-management-858a0d0fabeac02a.js +0 -1
  293. fides/ui-build/static/admin/_next/static/chunks/polyfills-42372ed130431b0a.js +0 -1
  294. {ethyca_fides-2.56.2b1.dist-info → ethyca_fides-2.56.2rc0.dist-info}/LICENSE +0 -0
  295. {ethyca_fides-2.56.2b1.dist-info → ethyca_fides-2.56.2rc0.dist-info}/WHEEL +0 -0
  296. {ethyca_fides-2.56.2b1.dist-info → ethyca_fides-2.56.2rc0.dist-info}/entry_points.txt +0 -0
  297. {ethyca_fides-2.56.2b1.dist-info → ethyca_fides-2.56.2rc0.dist-info}/top_level.txt +0 -0
  298. /fides/ui-build/static/admin/_next/static/{G4yyqYFNYjBbKTQG4qT1Z → rRoDDYqLSb1smOELraq4P}/_ssgManifest.js +0 -0
@@ -1,96 +0,0 @@
1
- """Add Attachment and AttachmentReference tables
2
-
3
- Revision ID: bd875a8b5d96
4
- Revises: 82883b0df5e4
5
- Create Date: 2025-02-19 14:09:07.124680
6
-
7
- """
8
-
9
- import sqlalchemy as sa
10
- from alembic import op
11
- from sqlalchemy.dialects import postgresql
12
-
13
- # revision identifiers, used by Alembic.
14
- revision = "bd875a8b5d96"
15
- down_revision = "82883b0df5e4"
16
- branch_labels = None
17
- depends_on = None
18
-
19
-
20
- def upgrade():
21
- # ### commands auto generated by Alembic - please adjust! ###
22
- # create attachment table
23
- op.create_table(
24
- "attachment",
25
- sa.Column("id", sa.String(length=255), nullable=False),
26
- sa.Column("user_id", sa.String(), nullable=True),
27
- sa.Column("file_name", sa.String(), nullable=False),
28
- sa.Column("attachment_type", sa.String(), nullable=False),
29
- sa.Column("storage_key", sa.String(), nullable=False),
30
- sa.Column(
31
- "created_at",
32
- sa.DateTime(timezone=True),
33
- server_default=sa.text("now()"),
34
- nullable=False,
35
- ),
36
- sa.Column(
37
- "updated_at",
38
- sa.DateTime(timezone=True),
39
- server_default=sa.text("now()"),
40
- nullable=True,
41
- ),
42
- sa.ForeignKeyConstraint(
43
- ["user_id"],
44
- ["fidesuser.id"],
45
- ondelete="SET NULL",
46
- ),
47
- sa.PrimaryKeyConstraint("id"),
48
- )
49
- op.create_index(op.f("ix_attachment_id"), "attachment", ["id"], unique=False)
50
-
51
- # create attachment_reference table
52
- op.create_table(
53
- "attachment_reference",
54
- sa.Column("id", sa.String(length=255), nullable=False),
55
- sa.Column(
56
- "created_at",
57
- sa.DateTime(timezone=True),
58
- server_default=sa.text("now()"),
59
- nullable=False,
60
- ),
61
- sa.Column(
62
- "updated_at",
63
- sa.DateTime(timezone=True),
64
- server_default=sa.text("now()"),
65
- nullable=True,
66
- ),
67
- sa.Column("attachment_id", sa.String(), nullable=False),
68
- sa.Column("reference_id", sa.String(), nullable=False),
69
- sa.Column("reference_type", sa.String(), nullable=False),
70
- sa.ForeignKeyConstraint(
71
- ["attachment_id"],
72
- ["attachment.id"],
73
- ),
74
- sa.PrimaryKeyConstraint("id"),
75
- )
76
- op.create_index(
77
- op.f("ix_attachment_reference_id"),
78
- "attachment_reference",
79
- ["id"],
80
- unique=False,
81
- )
82
- op.create_unique_constraint(
83
- "_attachment_reference_uc",
84
- "attachment_reference",
85
- ["attachment_id", "reference_id"],
86
- )
87
- # ### end Alembic commands ###
88
-
89
-
90
- def downgrade():
91
- # ### commands auto generated by Alembic - please adjust! ###
92
- op.drop_index(op.f("ix_attachment_reference_id"), table_name="attachment_reference")
93
- op.drop_table("attachment_reference")
94
- op.drop_index(op.f("ix_attachment_id"), table_name="attachment")
95
- op.drop_table("attachment")
96
- # ### end Alembic commands ###
@@ -1,153 +0,0 @@
1
- from enum import Enum as EnumType
2
- from typing import Any, Optional
3
-
4
- from sqlalchemy import Column
5
- from sqlalchemy import Enum as EnumColumn
6
- from sqlalchemy import ForeignKey, String, UniqueConstraint
7
- from sqlalchemy.ext.declarative import declared_attr
8
- from sqlalchemy.orm import Session, relationship
9
-
10
- from fides.api.db.base_class import Base
11
- from fides.api.models.fides_user import FidesUser # pylint: disable=unused-import
12
-
13
-
14
- class AttachmentType(str, EnumType):
15
- """
16
- Enum for attachment types. Indicates attachment usage.
17
- """
18
-
19
- internal_use_only = "internal_use_only"
20
- include_with_access_package = "include_with_access_package"
21
-
22
-
23
- class AttachmentReferenceType(str, EnumType):
24
- """
25
- Enum for attachment reference types. Indicates where attachment is referenced.
26
- """
27
-
28
- manual_step = "manual_step"
29
- privacy_request = "privacy_request"
30
- comment = "comment"
31
-
32
-
33
- class AttachmentReference(Base):
34
- """
35
- Stores information about an Attachment and any other element which may reference that attachment.
36
- """
37
-
38
- @declared_attr
39
- def __tablename__(cls) -> str:
40
- """Overriding base class method to set the table name."""
41
- return "attachment_reference"
42
-
43
- attachment_id = Column(String, ForeignKey("attachment.id"), nullable=False)
44
- reference_id = Column(String, nullable=False)
45
- reference_type = Column(EnumColumn(AttachmentReferenceType), nullable=False)
46
-
47
- __table_args__ = (
48
- UniqueConstraint(
49
- "attachment_id", "reference_id", name="_attachment_reference_uc"
50
- ),
51
- )
52
-
53
- attachment = relationship(
54
- "Attachment",
55
- back_populates="references",
56
- uselist=False,
57
- )
58
-
59
- @classmethod
60
- def create(
61
- cls, db: Session, *, data: dict[str, Any], check_name: bool = False
62
- ) -> "AttachmentReference":
63
- """Creates a new attachment reference record in the database."""
64
- return super().create(db=db, data=data, check_name=check_name)
65
-
66
-
67
- class Attachment(Base):
68
- """
69
- Stores information about an Attachment.
70
- """
71
-
72
- user_id = Column(
73
- String, ForeignKey("fidesuser.id", ondelete="SET NULL"), nullable=True
74
- )
75
- file_name = Column(String, nullable=False)
76
- attachment_type = Column(EnumColumn(AttachmentType), nullable=False)
77
- storage_key = Column(String, nullable=False)
78
-
79
- user = relationship(
80
- "FidesUser",
81
- backref="attachments",
82
- lazy="selectin",
83
- uselist=False,
84
- )
85
-
86
- references = relationship(
87
- "AttachmentReference",
88
- back_populates="attachment",
89
- cascade="all, delete",
90
- uselist=True,
91
- )
92
-
93
- async def upload_attachment_to_s3(self, attachment: bytes) -> None:
94
- """Upload an attachment to S3 to the storage_url."""
95
- raise NotImplementedError("This method is not yet implemented")
96
- # AuditLog.create(
97
- # db=db,
98
- # data={
99
- # "user_id": "system",
100
- # "privacy_request_id": privacy_request.id,
101
- # "action": AuditLogAction.attachment_uploaded,
102
- # "message": "",
103
- # },
104
- # )
105
-
106
- async def retrieve_attachment_from_s3(self) -> bytes:
107
- """Retrieve an attachment from S3."""
108
- raise NotImplementedError("This method is not yet implemented")
109
- # AuditLog.create(
110
- # db=db,
111
- # data={
112
- # "user_id": "system",
113
- # "privacy_request_id": privacy_request.id,
114
- # "action": AuditLogAction.attachment_retrieved,
115
- # "message": "",
116
- # },
117
- # )
118
-
119
- async def delete_attachment_from_s3(self) -> None:
120
- """Delete an attachment from S3."""
121
- raise NotImplementedError("This method is not yet implemented")
122
- # AuditLog.create(
123
- # db=db,
124
- # data={
125
- # "user_id": "system",
126
- # "privacy_request_id": privacy_request.id,
127
- # "action": AuditLogAction.attachment_deleted,
128
- # "message": "",
129
- # },
130
- # )
131
-
132
- @classmethod
133
- def create(
134
- cls,
135
- db: Session,
136
- *,
137
- data: dict[str, Any],
138
- check_name: bool = False,
139
- attachment: Optional[
140
- bytes
141
- ] = None, # This will not be optional once the upload method is implemented.
142
- ) -> "Attachment":
143
- """Creates a new attachment record in the database and uploads the attachment to S3."""
144
- # attachment_record.upload_attachment_to_s3(db, attachment)
145
- # log.info(f"Uploaded attachment {attachment_record.id} to S3")
146
- return super().create(db=db, data=data, check_name=check_name)
147
-
148
- def delete(self, db: Session) -> None:
149
- """Deletes an attachment record from the database and deletes the attachment from S3."""
150
- # attachment_record = cls.get(db, id)
151
- # attachment_record.delete_attachment_from_s3(db)
152
- # log.info(f"Deleted attachment {attachment_record.id} from S3")
153
- super().delete(db=db)
@@ -1 +0,0 @@
1
- self.__BUILD_MANIFEST=function(s,e,t,a,c,n,i,d,o,r,u,g,p,f,j,k,h,b,m,y,l,v,I,U,_,w,q,x,N,B,F,z,A,D,E,L,M,S,T,C,P,G,H,J,K,O){return{__rewrites:{afterFiles:[],beforeFiles:[],fallback:[]},"/":[_,"static/chunks/pages/index-0cb69e8e091559f5.js"],"/404":["static/chunks/pages/404-162aedfa3b5c6960.js"],"/_error":["static/chunks/pages/_error-bede3a8288930dcf.js"],"/add-systems":[_,"static/chunks/pages/add-systems-b1f944d2eb1676ff.js"],"/add-systems/manual":[s,e,a,c,n,j,t,o,u,k,m,w,"static/chunks/pages/add-systems/manual-3cd7cb111fafa3f9.js"],"/add-systems/multiple":[s,e,t,u,y,q,"static/chunks/pages/add-systems/multiple-c2b5ce54dae22850.js"],"/ant-poc":["static/chunks/pages/ant-poc-1e6090a92e89eba3.js"],"/consent":["static/chunks/pages/consent-419008bdf518df6b.js"],"/consent/configure":[s,e,t,u,y,"static/chunks/pages/consent/configure-40da2d94f2830e1e.js"],"/consent/configure/add-vendors":[s,e,t,u,y,q,"static/chunks/pages/consent/configure/add-vendors-ffa474e483e82d14.js"],"/consent/privacy-experience":[s,e,j,t,x,"static/chunks/pages/consent/privacy-experience-fe7d178376b26c3e.js"],"/consent/privacy-experience/new":[a,c,g,N,i,h,B,"static/chunks/pages/consent/privacy-experience/new-34a85dfbd8040688.js"],"/consent/privacy-experience/[id]":[a,c,g,N,i,h,B,"static/chunks/pages/consent/privacy-experience/[id]-78ef82002d3d8c19.js"],"/consent/privacy-notices":[s,e,t,x,"static/chunks/pages/consent/privacy-notices-94419df1a94676cd.js"],"/consent/privacy-notices/new":[a,c,g,F,i,h,z,"static/chunks/pages/consent/privacy-notices/new-95f9157a1576682a.js"],"/consent/privacy-notices/[id]":[a,c,g,F,i,h,z,"static/chunks/pages/consent/privacy-notices/[id]-1a3b9b906df09b89.js"],"/consent/properties":[s,e,t,A,"static/chunks/pages/consent/properties-03cf23593252980e.js"],"/consent/reporting":["static/chunks/pages/consent/reporting-fd33cf4bc3bd7217.js"],"/data-catalog":[s,e,a,c,n,t,"static/css/95ac327e5d70148d.css","static/chunks/pages/data-catalog-6d0c56a49450b23e.js"],"/data-catalog/[systemId]/projects":[s,e,a,c,n,t,p,l,d,"static/chunks/pages/data-catalog/[systemId]/projects-afaca2d14f3f3372.js"],"/data-catalog/[systemId]/projects/[projectUrn]":[s,e,t,D,"static/chunks/pages/data-catalog/[systemId]/projects/[projectUrn]-d409ce34ece16cae.js"],"/data-catalog/[systemId]/projects/[projectUrn]/[resourceUrn]":[s,e,a,c,n,t,p,l,E,d,"static/chunks/pages/data-catalog/[systemId]/projects/[projectUrn]/[resourceUrn]-dd11337b3513bb8a.js"],"/data-catalog/[systemId]/resources":[s,e,t,D,"static/chunks/pages/data-catalog/[systemId]/resources-9596052d50cf6cc9.js"],"/data-catalog/[systemId]/resources/[resourceUrn]":[s,e,a,c,n,t,p,l,E,d,"static/chunks/pages/data-catalog/[systemId]/resources/[resourceUrn]-af0763217947fb8d.js"],"/data-discovery/action-center":[s,e,t,"static/chunks/pages/data-discovery/action-center-d141b9651696c214.js"],"/data-discovery/action-center/[monitorId]":[s,e,a,c,n,t,r,"static/chunks/pages/data-discovery/action-center/[monitorId]-39050055e1623a2c.js"],"/data-discovery/action-center/[monitorId]/[systemId]":[s,e,a,c,n,t,m,d,"static/chunks/pages/data-discovery/action-center/[monitorId]/[systemId]-dd67d205d8e01310.js"],"/data-discovery/activity":[s,e,t,r,v,"static/chunks/pages/data-discovery/activity-44c921fc8f07ff28.js"],"/data-discovery/detection":[s,e,t,r,v,L,"static/chunks/pages/data-discovery/detection-083c8fba2837e11c.js"],"/data-discovery/detection/[resourceUrn]":[s,e,t,r,v,L,"static/chunks/pages/data-discovery/detection/[resourceUrn]-82d053232db137ac.js"],"/data-discovery/discovery":[s,e,a,c,n,t,r,p,M,d,"static/chunks/pages/data-discovery/discovery-6fdf5929b50052fa.js"],"/data-discovery/discovery/[resourceUrn]":[s,e,a,c,n,t,r,p,M,d,"static/chunks/pages/data-discovery/discovery/[resourceUrn]-c2f75aae2435b3f3.js"],"/datamap":[s,e,a,"static/chunks/255-1dab28b6d23451cf.js",t,o,k,S,"static/chunks/pages/datamap-fdc1e31b739774a2.js"],"/dataset":[s,e,f,t,"static/chunks/pages/dataset-784376c7068a46ea.js"],"/dataset/new":[f,"static/chunks/pages/dataset/new-13c36e0f9a5851e7.js"],"/dataset/[datasetId]":[s,e,a,t,I,"static/chunks/pages/dataset/[datasetId]-fc98597c22321ee5.js"],"/dataset/[datasetId]/[collectionName]":[s,e,a,c,n,T,t,I,d,"static/chunks/pages/dataset/[datasetId]/[collectionName]-968b9f1be2e8015e.js"],"/dataset/[datasetId]/[collectionName]/[...subfieldNames]":[s,e,a,c,n,T,t,I,d,"static/chunks/pages/dataset/[datasetId]/[collectionName]/[...subfieldNames]-bac79550f4a641a6.js"],"/datastore-connection":["static/css/5f393dea1c0d031c.css","static/chunks/pages/datastore-connection-b04df874d0de1600.js"],"/datastore-connection/new":[f,j,b,C,"static/chunks/pages/datastore-connection/new-ddadae7cf352bdec.js"],"/datastore-connection/[id]":[f,b,C,"static/chunks/pages/datastore-connection/[id]-a5c8556b5a936710.js"],"/integrations":[a,c,n,b,P,"static/chunks/pages/integrations-7cbceff4d808ddef.js"],"/integrations/[id]":[s,e,a,c,n,"static/chunks/9255-336a890ada321f89.js",t,b,P,"static/chunks/pages/integrations/[id]-fefec1d20c5f53d3.js"],"/login":["static/chunks/pages/login-0cb0eb44bf2dd24c.js"],"/login/[provider]":["static/chunks/pages/login/[provider]-c58beef131c3a82d.js"],"/messaging":[s,e,a,c,n,t,"static/chunks/pages/messaging-194be66253503679.js"],"/messaging/add-template":[i,G,"static/chunks/pages/messaging/add-template-0282fb9efb4ec896.js"],"/messaging/[id]":[i,G,"static/chunks/pages/messaging/[id]-dd87f20c6c304f6e.js"],"/privacy-requests":[s,e,t,H,"static/chunks/pages/privacy-requests-049931ac72a90590.js"],"/privacy-requests/configure":["static/chunks/pages/privacy-requests/configure-8badde37699accd4.js"],"/privacy-requests/configure/messaging":["static/chunks/pages/privacy-requests/configure/messaging-69f722cd2d034c91.js"],"/privacy-requests/configure/storage":["static/chunks/pages/privacy-requests/configure/storage-70b68e4b21f7cc55.js"],"/privacy-requests/[id]":[H,"static/chunks/pages/privacy-requests/[id]-4069f3831c0b30e3.js"],"/properties":[s,e,t,A,"static/chunks/pages/properties-06c55d3d713867b5.js"],"/properties/add-property":[i,J,"static/chunks/pages/properties/add-property-5403174fb79895c3.js"],"/properties/[id]":[i,J,"static/chunks/pages/properties/[id]-4bf43e86f68a99fb.js"],"/reporting/datamap":[s,e,a,c,n,"static/chunks/3967-845c902667e47c4f.js",t,o,k,S,"static/chunks/pages/reporting/datamap-4e1429ad4c083e4f.js"],"/settings/about":["static/chunks/pages/settings/about-a425b79765abd602.js"],"/settings/consent":["static/chunks/pages/settings/consent-402a7da5dae35b7a.js"],"/settings/custom-fields":[s,e,t,o,"static/chunks/pages/settings/custom-fields-24d12a789adc39e2.js"],"/settings/domain-records":[s,e,t,"static/chunks/pages/settings/domain-records-b205aaafb53a629d.js"],"/settings/domains":["static/chunks/pages/settings/domains-7af5f66895a7f321.js"],"/settings/email-templates":["static/chunks/pages/settings/email-templates-1859b23d0e9ff327.js"],"/settings/locations":[s,K,"static/chunks/pages/settings/locations-7fa58dfa4acc9924.js"],"/settings/organization":["static/chunks/pages/settings/organization-50624926a6cf17f0.js"],"/settings/regulations":[s,K,"static/chunks/pages/settings/regulations-51cea4d659db4309.js"],"/systems":[s,e,t,"static/chunks/pages/systems-c800e9fcf38bc6f6.js"],"/systems/configure/[id]":[s,e,a,c,n,j,t,o,u,k,m,w,"static/chunks/pages/systems/configure/[id]-6fb382995c4a8249.js"],"/systems/configure/[id]/test-datasets":[f,"static/chunks/pages/systems/configure/[id]/test-datasets-cee5aa3edcc6d827.js"],"/taxonomy":["static/chunks/3e38ba78-4487e45fd4ed2479.js",a,c,n,g,"static/chunks/5960-8895f51b30c35798.js",o,"static/css/34a7eb08b86ddb57.css","static/chunks/pages/taxonomy-cdc44bbdf5694639.js"],"/user-management":[U,"static/chunks/pages/user-management-858a0d0fabeac02a.js"],"/user-management/new":[U,O,"static/chunks/pages/user-management/new-d6717378b42982d5.js"],"/user-management/profile/[id]":[U,O,"static/chunks/pages/user-management/profile/[id]-d4a7854a4faf0b0a.js"],sortedPages:["/","/404","/_app","/_error","/add-systems","/add-systems/manual","/add-systems/multiple","/ant-poc","/consent","/consent/configure","/consent/configure/add-vendors","/consent/privacy-experience","/consent/privacy-experience/new","/consent/privacy-experience/[id]","/consent/privacy-notices","/consent/privacy-notices/new","/consent/privacy-notices/[id]","/consent/properties","/consent/reporting","/data-catalog","/data-catalog/[systemId]/projects","/data-catalog/[systemId]/projects/[projectUrn]","/data-catalog/[systemId]/projects/[projectUrn]/[resourceUrn]","/data-catalog/[systemId]/resources","/data-catalog/[systemId]/resources/[resourceUrn]","/data-discovery/action-center","/data-discovery/action-center/[monitorId]","/data-discovery/action-center/[monitorId]/[systemId]","/data-discovery/activity","/data-discovery/detection","/data-discovery/detection/[resourceUrn]","/data-discovery/discovery","/data-discovery/discovery/[resourceUrn]","/datamap","/dataset","/dataset/new","/dataset/[datasetId]","/dataset/[datasetId]/[collectionName]","/dataset/[datasetId]/[collectionName]/[...subfieldNames]","/datastore-connection","/datastore-connection/new","/datastore-connection/[id]","/integrations","/integrations/[id]","/login","/login/[provider]","/messaging","/messaging/add-template","/messaging/[id]","/privacy-requests","/privacy-requests/configure","/privacy-requests/configure/messaging","/privacy-requests/configure/storage","/privacy-requests/[id]","/properties","/properties/add-property","/properties/[id]","/reporting/datamap","/settings/about","/settings/consent","/settings/custom-fields","/settings/domain-records","/settings/domains","/settings/email-templates","/settings/locations","/settings/organization","/settings/regulations","/systems","/systems/configure/[id]","/systems/configure/[id]/test-datasets","/taxonomy","/user-management","/user-management/new","/user-management/profile/[id]"]}}("static/chunks/c78d26b1-88a3e1bacb2a03c2.js","static/chunks/5559-9b3d8e3dc0533942.js","static/chunks/4481-a29f20bb58b211a4.js","static/chunks/4554-1c73bac0d3b5fa31.js","static/chunks/2866-2aa6a087d80eb4a3.js","static/chunks/9278-9b1b5970f0702668.js","static/chunks/9282-cf4638e56db0a232.js","static/css/d2d4e9a6923e6730.css","static/chunks/7980-fb48142b786fcef9.js","static/chunks/9999-fa566e2617c2d660.js","static/chunks/3949-afca6e7434ad561f.js","static/chunks/9111-8675301d4dd068bd.js","static/chunks/6372-e305cd2ea5577339.js","static/chunks/3005-373de16453ed7eea.js","static/chunks/4833-a85bd5d25ebc40c4.js","static/chunks/8499-8cdbf2da63982520.js","static/chunks/6277-ea65024c767f543e.js","static/chunks/2201-5cda6f245e348ec1.js","static/chunks/3627-5e589e91b738f5cd.js","static/chunks/4723-fc2288987e3b29d8.js","static/chunks/7751-b2504265ef7c096f.js","static/chunks/6315-2ae623f4d2e24041.js","static/chunks/5487-348c811472ef5608.js","static/chunks/5480-2abe7916447fa595.js","static/css/972dc7eef106ee7c.css","static/chunks/7044-fc557bec36e0d833.js","static/chunks/5826-3df3a9cd796a943f.js","static/chunks/6853-350da1a0d61b7dda.js","static/chunks/5908-532dfbc9d930f635.js","static/chunks/3320-1070e41adcf432ac.js","static/chunks/8837-cf26e5ca1ae5aaf5.js","static/chunks/6954-67c09ef890b489eb.js","static/chunks/79-8a82c28f90175a36.js","static/chunks/3872-bd02ad87861b67d7.js","static/chunks/3855-7fc48fe049dc17e6.js","static/chunks/2397-5382265aeb68b955.js","static/chunks/9046-c49e36fc13e9643b.js","static/chunks/5258-299a63d9b4a469d9.js","static/chunks/1995-0e4fc4f7b44ed72b.js","static/chunks/6362-d6d930922043de83.js","static/chunks/7495-cf5540ed1d3a5f02.js","static/chunks/5246-9b38e34e434a8568.js","static/chunks/8433-3912cacade51b692.js","static/chunks/3662-5639ae50b8dccf23.js","static/chunks/3086-f15b42926fd055a0.js","static/chunks/1150-45ae64b8999bde9e.js"),self.__BUILD_MANIFEST_CB&&self.__BUILD_MANIFEST_CB();
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1150],{7617:function(e,s,t){t.d(s,{q:function(){return a}});var i=t(24246),n=t(38458);let a=e=>{let{label:s,isDisabled:t,...a}=e;return(0,i.jsx)(n.OK9,{"data-testid":"tab-".concat(s),_selected:{fontWeight:"600",color:"complimentary.500",borderColor:"complimentary.500"},fontSize:a.fontSize,fontWeight:"500",color:"gray.500",isDisabled:t||!1,children:s})};s.Z=e=>{let{data:s,border:t="partial",...l}=e;return(0,i.jsxs)(n.mQc,{colorScheme:"complimentary",...l,children:[(0,i.jsx)(n.tdY,{width:"partial"===t?"max-content":void 0,children:s.map(e=>(0,i.jsx)(a,{label:e.label,isDisabled:e.isDisabled,fontSize:l.fontSize},e.label))}),(0,i.jsx)(n.nPR,{children:s.map(e=>(0,i.jsx)(n.x45,{px:0,"data-testid":"tab-panel-".concat(e.label),children:e.content},e.label))})]})}},58452:function(e,s,t){var i=t(24246),n=t(38458);s.Z=e=>{let{isOpen:s,onClose:t,onConfirm:a,onCancel:l,title:r,message:d,cancelButtonText:o,continueButtonText:c,isLoading:h,returnFocusOnClose:x,isCentered:m,testId:u="confirmation-modal",icon:p}=e;return(0,i.jsxs)(n.u_l,{isOpen:s,onClose:t,size:"lg",returnFocusOnClose:null==x||x,isCentered:m,children:[(0,i.jsx)(n.ZAr,{}),(0,i.jsxs)(n.hzk,{textAlign:"center",p:6,"data-testid":u,children:[p?(0,i.jsx)(n.M5Y,{mb:2,children:p}):null,r?(0,i.jsx)(n.xBx,{fontWeight:"medium",pb:0,children:r}):null,d?(0,i.jsx)(n.fef,{children:d}):null,(0,i.jsx)(n.mzw,{children:(0,i.jsxs)(n.MIq,{columns:2,width:"100%",children:[(0,i.jsx)(n.wpx,{onClick:()=>{l&&l(),t()},size:"large",className:"mr-3","data-testid":"cancel-btn",disabled:h,children:o||"Cancel"}),(0,i.jsx)(n.wpx,{type:"primary",size:"large",onClick:a,"data-testid":"continue-btn",loading:h,children:c||"Continue"})]})})]})]})}},41150:function(e,s,t){t.d(s,{Z:function(){return H}});var i=t(24246),n=t(38458),a=t(91437),l=()=>(0,i.jsxs)(n.xuv,{children:[(0,i.jsx)(n.xuv,{pb:4,fontSize:"18px",fontWeight:"semibold",children:"Role Description"}),(0,i.jsx)(n.gCW,{spacing:4,children:a.K.map(e=>(0,i.jsxs)(n.xuv,{width:"100%",padding:4,borderRadius:"md",backgroundColor:"gray.75",fontSize:"14px",children:[(0,i.jsx)(n.xuv,{fontWeight:"semibold",children:e.label}),(0,i.jsx)(n.xuv,{color:"gray.700",children:e.description})]},e.roleKey))})]}),r=t(16134),d=t(7617),o=t(21702),c=t(19904),h=t(34090),x=t(86677),m=t(27378),u=t(812),p=t(58452),j=t(77830),w=t(91613),g=t(46628),f=t(86780),b=t(1315),y=t(95492),v=t(65497);let C=e=>{let{assignedSystems:s,onAssignedSystemChange:t}=e,a=(0,r.C)(v.Ux);if((0,v.d6)(a,{skip:!a}),0===s.length)return null;let l=e=>{t(s.filter(s=>s.fides_key!==e.fides_key))};return(0,i.jsxs)(n.iA_,{size:"sm","data-testid":"assign-systems-delete-table",children:[(0,i.jsx)(n.hrZ,{children:(0,i.jsxs)(n.Tr,{children:[(0,i.jsx)(n.Th,{children:"System"}),(0,i.jsx)(n.Th,{})]})}),(0,i.jsx)(n.p3B,{children:s.map(e=>(0,i.jsxs)(n.Tr,{_hover:{bg:"gray.50"},"data-testid":"row-".concat(e.fides_key),children:[(0,i.jsx)(n.Td,{children:e.name}),(0,i.jsx)(n.Td,{textAlign:"end",children:(0,i.jsx)(n.wpx,{"aria-label":"Unassign system from user",icon:(0,i.jsx)(y.l,{}),onClick:()=>l(e),"data-testid":"unassign-btn"})})]},e.fides_key))})]})};var S=e=>{let{allSystems:s,assignedSystems:t,onChange:a}=e,l=e=>{t.find(s=>s.fides_key===e.fides_key)?a(t.filter(s=>s.fides_key!==e.fides_key)):a([...t,e])};return(0,i.jsx)(n.xuv,{overflowY:"auto",maxHeight:"300px",children:(0,i.jsxs)(n.iA_,{size:"sm","data-testid":"assign-systems-table",maxHeight:"50vh",overflowY:"scroll",children:[(0,i.jsx)(n.hrZ,{position:"sticky",top:0,background:"white",zIndex:1,children:(0,i.jsxs)(n.Tr,{children:[(0,i.jsx)(n.Th,{children:"System"}),(0,i.jsx)(n.Th,{children:"Assign"})]})}),(0,i.jsx)(n.p3B,{children:s.map(e=>{let s=!!t.find(s=>s.fides_key===e.fides_key);return(0,i.jsxs)(n.Tr,{_hover:{bg:"gray.50"},"data-testid":"row-".concat(e.fides_key),children:[(0,i.jsx)(n.Td,{children:e.name}),(0,i.jsx)(n.Td,{children:(0,i.jsx)(n.rAg,{checked:s,onChange:()=>l(e),"data-testid":"assign-switch"})})]},e.fides_key)})})]})})};let k=(e,s)=>{var t,i;return(null===(t=e.name)||void 0===t?void 0:t.toLocaleLowerCase().includes(s.toLocaleLowerCase()))||(null===(i=e.description)||void 0===i?void 0:i.toLocaleLowerCase().includes(s.toLocaleLowerCase()))};var _=e=>{let{isOpen:s,onClose:t,assignedSystems:a,onAssignedSystemChange:l}=e,{data:r}=(0,b.K3)(),[d,o]=(0,m.useState)(""),[c,h]=(0,m.useState)(a),x=async()=>{l(c),t()},u=!r||0===r.length,p=(0,m.useMemo)(()=>r?r.filter(e=>k(e,d)):[],[r,d]),j=(0,m.useMemo)(()=>{let e=new Set(c.map(e=>e.fides_key));return p.every(s=>e.has(s.fides_key))},[p,c]);return(0,i.jsxs)(n.u_l,{isOpen:s,onClose:t,size:"2xl",children:[(0,i.jsx)(n.ZAr,{}),(0,i.jsxs)(n.hzk,{p:8,"data-testid":"confirmation-modal",children:[(0,i.jsxs)(n.xBx,{fontWeight:"medium",display:"flex",justifyContent:"space-between",alignItems:"center",children:[(0,i.jsx)(n.xvT,{children:"Assign systems"}),(0,i.jsxs)(n.j8w,{color:"success",children:["Assigned to ",a.length," systems"]})]}),(0,i.jsx)(n.fef,{"data-testid":"assign-systems-modal-body",children:u?(0,i.jsx)(n.xvT,{children:"No systems found"}):(0,i.jsxs)(n.Kqy,{spacing:4,children:[(0,i.jsxs)(n.kCb,{justifyContent:"space-between",children:[(0,i.jsx)(n.xvT,{fontSize:"sm",flexGrow:1,fontWeight:"medium",children:"Assign systems in your organization to this user"}),(0,i.jsx)(n.xuv,{children:(0,i.jsxs)(n.NIc,{display:"flex",alignItems:"center",children:[(0,i.jsx)(n.lXp,{fontSize:"sm",htmlFor:"assign-all-systems",mb:"0",children:"Assign all systems"}),(0,i.jsx)(n.rAg,{size:"small",id:"assign-all-systems",checked:j,onChange:e=>{e&&r?h(p):h(r?r.filter(e=>!p.includes(e)):[])},"data-testid":"assign-all-systems-toggle"})]})})]}),(0,i.jsx)(f.Z,{search:d,onChange:o,placeholder:"Search for systems","data-testid":"system-search",withIcon:!0}),(0,i.jsx)(S,{allSystems:p,assignedSystems:c,onChange:h})]})}),(0,i.jsx)(n.mzw,{justifyContent:"flex-start",children:(0,i.jsxs)("div",{children:[(0,i.jsx)(n.wpx,{onClick:t,className:"mr-2","data-testid":"cancel-btn",children:"Cancel"}),u?null:(0,i.jsx)(n.wpx,{type:"primary",onClick:x,"data-testid":"confirm-btn",children:"Confirm"})]})})]})]})},P=e=>{let{label:s,roleKey:t,isSelected:a,isDisabled:l,assignedSystems:r,onAssignedSystemChange:d}=e,{setFieldValue:c}=(0,h.u6)(),x=(0,n.qY0)(),m=l?"You do not have sufficient permissions to assign this role.":void 0;return a?(0,i.jsxs)(n.Kqy,{borderRadius:"md",border:"1px solid",borderColor:"gray.200",p:4,backgroundColor:"gray.50","aria-selected":"true",spacing:4,"data-testid":"selected",children:[(0,i.jsxs)(n.kCb,{alignItems:"center",justifyContent:"space-between",children:[(0,i.jsx)(n.xvT,{fontSize:"md",fontWeight:"semibold",children:s}),(0,i.jsx)(n.StI,{})]}),t!==o.A7.APPROVER?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)(n.kCb,{alignItems:"center",children:[(0,i.jsx)(n.xvT,{fontSize:"sm",fontWeight:"semibold",mr:1,children:"Assigned systems"}),(0,i.jsx)(w.Z,{label:"Assigned systems refer to those systems that have been specifically allocated to a user for management purposes. Users assigned to a system possess full edit permissions and are listed as the Data Steward for the respective system."})]}),(0,i.jsx)(n.wpx,{disabled:l,title:m,type:"primary",size:"small",onClick:x.onOpen,"data-testid":"assign-systems-btn",children:"Assign systems +"}),(0,i.jsx)(C,{assignedSystems:r,onAssignedSystemChange:d}),x.isOpen?(0,i.jsx)(_,{isOpen:x.isOpen,onClose:x.onClose,assignedSystems:r,onAssignedSystemChange:d}):null]}):null]}):(0,i.jsx)(n.wpx,{onClick:()=>{c("roles",[t])},"data-testid":"role-option-".concat(s),title:m,disabled:l,children:s})};let A={roles:[]};var T=()=>{var e;let s=(0,n.pmc)(),t=(0,x.useRouter)(),l=(0,r.C)(v.Ux);(0,v.d6)(l,{skip:!l});let{isOpen:d,onOpen:f,onClose:b}=(0,n.qY0)(),y=(0,r.C)(v.R$),[C,S]=(0,m.useState)(y),[k]=(0,v.G$)();(0,m.useEffect)(()=>{S(y)},[y]);let{data:_,isLoading:T}=(0,v.gU)(null!=l?l:"",{skip:!l}),[R]=(0,v.lD)(),z=async e=>{if(d&&b(),!l)return;let t=e.roles.includes(o.A7.APPROVER),i=await R({user_id:l,payload:{roles:e.roles}});if((0,u.D4)(i)){s((0,g.Vo)((0,u.e$)(i.error)));return}if(!t){let e=C.map(e=>e.fides_key),t=await k({userId:l,fidesKeys:e});if((0,u.D4)(t)){s((0,g.Vo)((0,u.e$)(t.error)));return}}s((0,g.t5)("Permissions updated"))},I=async e=>{l&&(C.length>0&&e.roles.includes(o.A7.APPROVER)?f():await z(e))},q=(0,c.Tg)([o.Sh.USER_PERMISSION_ASSIGN_OWNERS]);if(!l)return null;if(T)return(0,i.jsx)(n.$jN,{});if(!q&&(null==_?void 0:null===(e=_.roles)||void 0===e?void 0:e.includes(o.A7.OWNER)))return(0,i.jsx)(n.xvT,{"data-testid":"insufficient-access",children:"You do not have sufficient access to change this user's permissions."});let E=(null==_?void 0:_.roles)?{roles:_.roles}:A;return(0,i.jsx)(h.J9,{onSubmit:I,initialValues:E,enableReinitialize:!0,children:e=>{let{values:s,isSubmitting:l,dirty:r}=e;return(0,i.jsxs)(h.l0,{children:[(0,i.jsxs)(n.Kqy,{spacing:7,children:[(0,i.jsxs)(n.Kqy,{spacing:3,"data-testid":"role-options",children:[(0,i.jsxs)(n.kCb,{alignItems:"center",children:[(0,i.jsx)(n.xvT,{fontSize:"sm",fontWeight:"semibold",mr:1,children:"User role"}),(0,i.jsx)(w.Z,{label:"A user's role in the organization determines what parts of the UI they can access and which functions are available to them."})]}),a.K.map(e=>{let t=s.roles.indexOf(e.roleKey)>=0;return(0,i.jsx)(P,{isSelected:t,isDisabled:e.roleKey===o.A7.OWNER&&!q,assignedSystems:C,onAssignedSystemChange:S,...e},e.roleKey)})]}),(0,i.jsxs)("div",{children:[(0,i.jsx)(n.wpx,{onClick:()=>t.push(j.e3),children:"Cancel"}),(0,i.jsx)(n.wpx,{type:"primary",htmlType:"submit",loading:l,disabled:!r&&C===y,"data-testid":"save-btn",children:"Save"})]})]}),(0,i.jsx)(p.Z,{isOpen:d,onClose:b,onConfirm:()=>z(s),title:"Change role to Approver",testId:"downgrade-to-approver-confirmation-modal",continueButtonText:"Yes",message:(0,i.jsx)(n.xvT,{children:"Switching to an approver role will remove all assigned systems. Do you wish to proceed?"})})]})}})},R=t(61038),z=t(59389),I=t(25980),q=t(40324),E=t(96006);let{useGetEmailInviteStatusQuery:O}=t(78780).u.injectEndpoints({endpoints:e=>({getEmailInviteStatus:e.query({query:()=>({url:"/messaging/email-invite/status"}),providesTags:()=>["Email Invite Status"]})})});var N=t(76174),Z=t(91317),U=t(31883);let W=z.Ry().shape({password:E.a.label("Password"),passwordConfirmation:z.Z_().required().oneOf([z.iH("password")],"Passwords must match").label("Password confirmation")}),D={password:"",passwordConfirmation:""},K=e=>{let s=(0,n.qY0)(),t=(0,n.pmc)(),[i]=(0,v.ls)(),a=async n=>{let a=await i({id:e,new_password:n.password});(0,U.D4)(a)?t((0,g.Vo)((0,u.e$)(a.error))):(t((0,g.t5)("Successfully reset user's password. Please inform the user of their new password.")),s.onClose())};return{...s,handleResetPassword:a}};var V=e=>{let{id:s}=e,{handleResetPassword:t,isOpen:a,onClose:l,onOpen:r}=K(s);return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(n.wpx,{onClick:r,"data-testid":"reset-password-btn",children:"Reset password"}),(0,i.jsxs)(n.u_l,{isCentered:!0,isOpen:a,onClose:l,children:[(0,i.jsx)(n.ZAr,{}),(0,i.jsx)(n.hzk,{children:(0,i.jsx)(h.J9,{initialValues:D,validationSchema:W,onSubmit:t,children:e=>{let{isSubmitting:s,dirty:t,isValid:a}=e;return(0,i.jsxs)(h.l0,{children:[(0,i.jsx)(n.xBx,{children:"Reset Password"}),(0,i.jsx)(n.olH,{}),(0,i.jsx)(n.fef,{children:(0,i.jsxs)(n.Kqy,{direction:"column",spacing:4,children:[(0,i.jsx)(n.xvT,{mb:2,children:"Choose a new password for this user."}),(0,i.jsx)(q.j0,{name:"password",label:"Password",placeholder:"********",type:"password",tooltip:"Password must contain at least 8 characters, 1 number, 1 capital letter, 1 lowercase letter, and at least 1 symbol.",autoComplete:"new-password"}),(0,i.jsx)(q.j0,{name:"passwordConfirmation",label:"Confirm Password",placeholder:"********",type:"password",tooltip:"Must match above password.",autoComplete:"confirm-password"})]})}),(0,i.jsx)(n.mzw,{children:(0,i.jsxs)("div",{className:"w-full gap-2",children:[(0,i.jsx)(n.wpx,{onClick:l,className:"w-1/2",children:"Cancel"}),(0,i.jsx)(n.wpx,{type:"primary",disabled:!t||!a,loading:s,htmlType:"submit",className:"w-1/2","data-testid":"submit-btn",children:"Change Password"})]})})]})}})})]})]})};let Y=e=>{let s=(0,n.qY0)(),t=(0,n.pmc)(),[i,a]=(0,m.useState)(""),[l,r]=(0,m.useState)(""),[d,{isLoading:o}]=(0,v.ev)(),c=!!(e&&l&&i),h=async()=>{c&&d({id:e,old_password:i,new_password:l}).unwrap().then(()=>{t((0,g.t5)("Password updated")),s.onClose()})};return{...s,changePasswordValidation:c,handleChange:e=>{"oldPassword"===e.target.name?a(e.target.value):r(e.target.value)},handleChangePassword:h,isLoading:o,newPasswordValue:l,oldPasswordValue:i}};var B=e=>{let{id:s}=e,{changePasswordValidation:t,handleChange:a,handleChangePassword:l,isLoading:r,isOpen:d,newPasswordValue:o,oldPasswordValue:c,onClose:h,onOpen:x}=Y(s);return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(n.wpx,{onClick:x,"data-testid":"update-password-btn",children:"Update password"}),(0,i.jsxs)(n.u_l,{isCentered:!0,isOpen:d,onClose:h,children:[(0,i.jsx)(n.ZAr,{}),(0,i.jsxs)(n.hzk,{children:[(0,i.jsx)(n.xBx,{children:"Update Password"}),(0,i.jsx)(n.olH,{}),(0,i.jsx)(n.fef,{pb:6,children:(0,i.jsxs)(n.Kqy,{direction:"column",spacing:"15px",children:[(0,i.jsx)(n.NIc,{children:(0,i.jsx)(n.IIB,{isRequired:!0,name:"oldPassword",onChange:a,placeholder:"Old Password",type:"password",value:c,"data-testid":"input-oldPassword"})}),(0,i.jsx)(n.NIc,{children:(0,i.jsx)(n.IIB,{isRequired:!0,name:"newPassword",onChange:a,placeholder:"New Password",type:"password",value:o,"data-testid":"input-newPassword"})})]})}),(0,i.jsxs)(n.mzw,{children:[(0,i.jsx)(n.wpx,{onClick:h,className:"mr-2 w-1/2",children:"Cancel"}),(0,i.jsx)(n.wpx,{type:"primary",disabled:!t,loading:r,onClick:l,htmlType:"submit",className:"mr-3 w-1/2","data-testid":"submit-btn",children:"Change Password"})]})]})]})]})},L=()=>{let e=(0,r.C)(v.Ux),s=(0,r.C)(Z.dy),t=!!s&&s.id===e;return(0,i.jsx)(n.xuv,{children:e?(0,i.jsxs)(n.Ugi,{children:[t?(0,i.jsx)(B,{id:e}):null,(0,i.jsx)(c.ZP,{scopes:[o.Sh.USER_PASSWORD_RESET],children:(0,i.jsx)(V,{id:e})})]}):null})};let F={username:"",first_name:"",email_address:"",last_name:"",password:""},M=z.Ry().shape({username:z.Z_().required().label("Username"),email_address:z.Z_().email().required().label("Email address"),first_name:z.Z_().label("First name"),last_name:z.Z_().label("Last name"),password:E.a.label("Password")});var $=e=>{let{onSubmit:s,initialValues:t,canEditNames:a}=e,l=(0,x.useRouter)(),d=(0,n.pmc)(),o=(0,r.T)(),c=(0,n.qY0)(),m=(0,r.C)(v.ZC),{data:p}=O(),w=null==p?void 0:p.enabled,{flags:f}=(0,I.Vb)(),b=!m,C=!b&&!a,S=b&&!w,k=async e=>{let{password:t,...i}=e,n=await s(S?e:i);if((0,u.D4)(n)){d((0,g.Vo)((0,u.e$)(n.error)));return}d((0,g.t5)("".concat(b?"User created. By default, new users are set to the Viewer role. To change the role, please go to the Permissions tab.":"User updated."))),(null==n?void 0:n.data)&&o((0,v.Vv)(n.data.id))},_=M,{data:P}=(0,N.qv)(),A=!f.ssoAuthentication||!(null==P?void 0:P.length);return A||(_=M.shape({password:E.a.optional().label("Password")})),_=S?_:_.omit(["password"]),(0,i.jsx)(h.J9,{onSubmit:k,initialValues:null!=t?t:F,validationSchema:_,children:e=>{let{dirty:s,isSubmitting:t,isValid:a}=e;return(0,i.jsx)(h.l0,{children:(0,i.jsxs)(n.Kqy,{maxW:["xs","xs","100%"],width:"100%",spacing:7,children:[(0,i.jsxs)(n.Kqy,{spacing:6,maxWidth:"55%",children:[(0,i.jsxs)(n.kCb,{children:[(0,i.jsxs)(n.xvT,{display:"flex",alignItems:"center",fontSize:"sm",fontWeight:"semibold",children:["Profile"," ",(null==m?void 0:m.disabled)&&(0,i.jsx)(n.j8w,{color:"success",className:"ml-2","data-testid":"invite-sent-badge",children:"Invite sent"})]}),(0,i.jsx)(n.xuv,{marginLeft:"auto",children:(0,i.jsxs)(n.Ugi,{children:[(0,i.jsx)(L,{}),b?null:(0,i.jsxs)(n.xuv,{children:[(0,i.jsx)(n.wpx,{"aria-label":"delete",icon:(0,i.jsx)(y.l,{}),onClick:c.onOpen,"data-testid":"delete-user-btn"}),(0,i.jsx)(R.Z,{user:m,...c})]})]})})]}),(0,i.jsx)(q.j0,{name:"username",label:"Username",variant:"block",placeholder:"Enter new username",disabled:!b,isRequired:!0}),(0,i.jsx)(q.j0,{name:"email_address",label:"Email address",variant:"block",placeholder:"Enter email of user",isRequired:!0}),(0,i.jsx)(q.j0,{name:"first_name",label:"First Name",variant:"block",placeholder:"Enter first name of user",disabled:C}),(0,i.jsx)(q.j0,{name:"last_name",label:"Last Name",variant:"block",placeholder:"Enter last name of user",disabled:C}),S?(0,i.jsx)(q.j0,{name:"password",label:"Password",variant:"block",placeholder:"********",type:"password",tooltip:"Password must contain at least 8 characters, 1 number, 1 capital letter, 1 lowercase letter, and at least 1 symbol.",isRequired:A}):null]}),(0,i.jsxs)("div",{children:[(0,i.jsx)(n.wpx,{onClick:()=>l.push(j.e3),className:"mr-3",children:"Cancel"}),(0,i.jsx)(n.wpx,{htmlType:"submit",type:"primary",disabled:!s||!a,loading:t,"data-testid":"save-user-btn",children:"Save"})]})]})})}})},H=e=>{let{onSubmit:s,initialValues:t,...a}=e,h=(0,r.C)(v.Ux);(0,v.Fk)(h,{skip:!h});let x=(0,c.Tg)([o.Sh.USER_PERMISSION_UPDATE]),m=[{label:"Profile",content:(0,i.jsx)($,{onSubmit:s,initialValues:t,...a})},{label:"Permissions",content:(0,i.jsxs)(n.kCb,{gap:"97px",children:[(0,i.jsx)(n.xuv,{w:{base:"100%",md:"50%",xl:"50%"},children:(0,i.jsx)(T,{})}),(0,i.jsx)(n.xuv,{position:"absolute",top:"96px",right:6,height:"calc(100% + 100px)",overflowY:"scroll",padding:6,w:"35%",borderLeftWidth:"1px",children:(0,i.jsx)(l,{})})]}),isDisabled:!h||!x}];return(0,i.jsx)(d.Z,{data:m})}},31883:function(e,s,t){t.d(s,{Bw:function(){return i.Bw},D4:function(){return i.D4}});var i=t(19043)}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2201],{7617:function(e,t,n){n.d(t,{q:function(){return o}});var i=n(24246),r=n(38458);let o=e=>{let{label:t,isDisabled:n,...o}=e;return(0,i.jsx)(r.OK9,{"data-testid":"tab-".concat(t),_selected:{fontWeight:"600",color:"complimentary.500",borderColor:"complimentary.500"},fontSize:o.fontSize,fontWeight:"500",color:"gray.500",isDisabled:n||!1,children:t})};t.Z=e=>{let{data:t,border:n="partial",...l}=e;return(0,i.jsxs)(r.mQc,{colorScheme:"complimentary",...l,children:[(0,i.jsx)(r.tdY,{width:"partial"===n?"max-content":void 0,children:t.map(e=>(0,i.jsx)(o,{label:e.label,isDisabled:e.isDisabled,fontSize:l.fontSize},e.label))}),(0,i.jsx)(r.nPR,{children:t.map(e=>(0,i.jsx)(r.x45,{px:0,"data-testid":"tab-panel-".concat(e.label),children:e.content},e.label))})]})}},77213:function(e,t,n){n.d(t,{Z:function(){return p}});var i=n(24246),r=n(38458),o=n(88038),l=n.n(o),a=n(86677);n(27378);var s=n(25980),d=n(90867),c=n(77830),u=()=>{let e=(0,a.useRouter)();return(0,i.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,i.jsxs)(r.xuv,{children:[(0,i.jsxs)(r.Kqy,{direction:{base:"column",sm:"row"},justifyContent:"space-between",children:[(0,i.jsx)(r.xvT,{fontWeight:"semibold",children:"Configure your storage and messaging provider"}),(0,i.jsx)(r.wpx,{onClick:()=>{e.push(c.fz)},children:"Configure"})]}),(0,i.jsxs)(r.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:o=!0,mainProps:c}=e,p=(0,s.hz)(),m=(0,a.useRouter)(),x="/privacy-requests"===m.pathname||"/datastore-connection"===m.pathname,h=!(p.flags.privacyRequestsConfiguration&&x),{data:f}=(0,d.JE)(void 0,{skip:h}),{data:g}=(0,d.PW)(void 0,{skip:h}),v=p.flags.privacyRequestsConfiguration&&(!f||!g)&&x;return(0,i.jsxs)(r.kCb,{"data-testid":n,direction:"column",h:"100vh",children:[(0,i.jsxs)(l(),{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)(r.kCb,{as:"main",direction:"column",py:o?6:0,px:o?10:0,h:o?"calc(100% - 48px)":"full",flex:1,minWidth:0,overflow:"auto",...c,children:[v?(0,i.jsx)(u,{}):null,t]})]})}},58754:function(e,t,n){var i=n(24246),r=n(38458),o=n(70788);t.Z=e=>{let{heading:t,breadcrumbItems:n,isSticky:l=!0,children:a,rightContent:s,style:d,...c}=e;return(0,i.jsxs)("div",{...c,style:l?{position:"sticky",top:"-24px",paddingTop:"24px",paddingBottom:"24px",paddingLeft:"40px",marginLeft:"-40px",paddingRight:"40px",marginRight:"-40px",marginTop:"-24px",left:0,zIndex:20,backgroundColor:"white",...d}:{paddingBottom:"24px",...d},children:[(0,i.jsxs)(r.jqI,{justify:"space-between",children:["string"==typeof t?(0,i.jsx)(r.X6q,{className:n||a?"pb-4":void 0,fontSize:"2xl","data-testid":"page-heading",children:t}):t,s&&(0,i.jsx)("div",{"data-testid":"page-header-right-content",children:s})]}),!!n&&(0,i.jsx)(o.m,{className:a?"pb-4":void 0,items:n,"data-testid":"page-breadcrumb"}),a]})}},97181:function(e,t,n){n.d(t,{d:function(){return d}});var i=n(24246),r=n(38458),o=n(34090),l=n(27378),a=n(91613),s=n(40324);let d=e=>{let{name:t,label:n,labelProps:d,tooltip:c,isRequired:u,layout:p="inline",...m}=e,[x,h,{setValue:f}]=(0,o.U$)(t),g=!!(h.touched&&h.error),[v,j]=(0,l.useState)("");x.value||"tags"!==m.mode&&"multiple"!==m.mode||(x.value=[]),"tags"===m.mode&&"string"==typeof x.value&&(x.value=[x.value]);let b="tags"===m.mode?(e,t)=>e?e.value!==v||x.value.includes(v)?m.optionRender?m.optionRender(e,t):e.label:'Create "'.concat(v,'"'):void 0:m.optionRender||void 0,y=e=>{j(e),m.onSearch&&m.onSearch(e)},C=(e,t)=>{f(e),m.onChange&&m.onChange(e,t)};return"inline"===p?(0,i.jsx)(r.NIc,{isInvalid:g,isRequired:u,children:(0,i.jsxs)(r.rjZ,{templateColumns:n?"1fr 3fr":"1fr",children:[n?(0,i.jsx)(s.__,{htmlFor:m.id||t,...d,children:n}):null,(0,i.jsxs)(r.jqI,{align:"center",children:[(0,i.jsxs)(r.jqI,{vertical:!0,flex:1,className:"mr-2",children:[(0,i.jsx)(r.WPr,{...x,id:m.id||t,"data-testid":"controlled-select-".concat(x.name),...m,optionRender:b,onSearch:"tags"===m.mode?y:void 0,onChange:C,value:x.value||void 0}),(0,i.jsx)(s.Bc,{isInvalid:g,message:h.error,fieldName:x.name})]}),c?(0,i.jsx)(a.Z,{label:c}):null]})]})}):(0,i.jsx)(r.NIc,{isInvalid:g,isRequired:u,children:(0,i.jsxs)(r.gCW,{alignItems:"start",children:[(0,i.jsxs)(r.jqI,{align:"center",children:[n?(0,i.jsx)(s.__,{htmlFor:m.id||t,fontSize:"xs",my:0,mr:1,...d,children:n}):null,c?(0,i.jsx)(a.Z,{label:c}):null]}),(0,i.jsx)(r.WPr,{...x,id:m.id||t,"data-testid":"controlled-select-".concat(x.name),...m,optionRender:b,onSearch:"tags"===m.mode?y:void 0,onChange:C,value:x.value||void 0}),(0,i.jsx)(s.Bc,{isInvalid:g,message:h.error,fieldName:x.name})]})})}},70788:function(e,t,n){n.d(t,{m:function(){return d}});var i=n(24246),r=n(38458),o=n(79894),l=n.n(o),a=n(27378);let{Text:s}=r.AntTypography,d=e=>{let{items:t,...n}=e,o=(0,a.useMemo)(()=>null==t?void 0:t.map((e,n)=>{let o=n===t.length-1,a={...e},d=a.onClick&&!a.href;return("string"==typeof a.title&&(a.title=(0,i.jsx)(s,{style:{color:"inherit",maxWidth:o?void 0:400},ellipsis:!o,children:a.title})),d)?a.title=(0,i.jsx)(r.wpx,{type:"text",size:"small",icon:a.icon,onClick:a.onClick,className:"ant-breadcrumb-link -mt-px px-1 text-inherit",children:a.title}):(a.icon&&(a.title=(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("span",{className:"anticon align-text-bottom",children:a.icon}),a.title]})),a.href&&a.title&&(a.title=(0,i.jsx)(l(),{href:a.href,className:"ant-breadcrumb-link",children:a.title}),delete a.href)),a}),[t]);return(0,i.jsx)(r.zrq,{items:o,...n})}},41337:function(e,t,n){var i=n(24246),r=n(38458);n(27378);var o=n(21702),l=n(14746);let a=e=>void 0!==e.connection_type,s=e=>void 0!==e.encoded_icon;t.Z=e=>{let{data:t,...n}=e;return(0,i.jsx)(r.Eep,{boxSize:"32px",objectFit:"cover",src:(()=>{let e;if(s(t)&&t.encoded_icon)return"data:image/svg+xml;base64,".concat(t.encoded_icon);if(a(t))e=[...l.iW].find(e=>{var n,i;let[r]=e;return t.connection_type.toString()!==o.Rj.SAAS&&t.connection_type.toString()===r||t.connection_type.toString()===o.Rj.SAAS&&(null===(i=t.saas_config)||void 0===i?void 0:null===(n=i.type)||void 0===n?void 0:n.toString())===r.toString()});else if(s(t)){let{identifier:n}=t;e=[...l.iW].find(e=>{let[t]=e;return t.toLowerCase()===n.toLowerCase()})}return e?l.Ny+e[1]:l.VD})(),fallbackSrc:l.VD,alt:(()=>{if(a(t)){var e;return null!==(e=t.name)&&void 0!==e?e:t.key}return s(t)?t.human_readable:t})(),...n})}},3968:function(e,t,n){n.d(t,{E:function(){return i},S:function(){return r}});let i=e=>e.toLowerCase().replace(/ /g,"_"),r=(e,t)=>{let n="".concat(window.location.origin+t,"&key=").concat(e);window.location.href.toLowerCase()!==n.toLowerCase()&&window.history.replaceState(null,"",n)}}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3086],{77213:function(e,t,n){n.d(t,{Z:function(){return f}});var r=n(24246),i=n(38458),l=n(88038),s=n.n(l),a=n(86677);n(27378);var o=n(25980),c=n(90867),d=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(d.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."," "]})]})})},f=e=>{let{children:t,title:n,padded:l=!0,mainProps:d}=e,f=(0,o.hz)(),m=(0,a.useRouter)(),h="/privacy-requests"===m.pathname||"/datastore-connection"===m.pathname,p=!(f.flags.privacyRequestsConfiguration&&h),{data:g}=(0,c.JE)(void 0,{skip:p}),{data:x}=(0,c.PW)(void 0,{skip:p}),j=f.flags.privacyRequestsConfiguration&&(!g||!x)&&h;return(0,r.jsxs)(i.kCb,{"data-testid":n,direction:"column",h:"100vh",children:[(0,r.jsxs)(s(),{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",...d,children:[j?(0,r.jsx)(u,{}):null,t]})]})}},58754:function(e,t,n){var r=n(24246),i=n(38458),l=n(70788);t.Z=e=>{let{heading:t,breadcrumbItems:n,isSticky:s=!0,children:a,rightContent:o,style:c,...d}=e;return(0,r.jsxs)("div",{...d,style:s?{position:"sticky",top:"-24px",paddingTop:"24px",paddingBottom:"24px",paddingLeft:"40px",marginLeft:"-40px",paddingRight:"40px",marginRight:"-40px",marginTop:"-24px",left:0,zIndex:20,backgroundColor:"white",...c}:{paddingBottom:"24px",...c},children:[(0,r.jsxs)(i.jqI,{justify:"space-between",children:["string"==typeof t?(0,r.jsx)(i.X6q,{className:n||a?"pb-4":void 0,fontSize:"2xl","data-testid":"page-heading",children:t}):t,o&&(0,r.jsx)("div",{"data-testid":"page-header-right-content",children:o})]}),!!n&&(0,r.jsx)(l.m,{className:a?"pb-4":void 0,items:n,"data-testid":"page-breadcrumb"}),a]})}},61524:function(e,t,n){n.d(t,{I_:function(){return s}});var r=n(24246),i=n(38458),l=n(67991);let s=5,a=e=>{let{title:t,children:n}=e;return(0,r.jsx)(i.xuv,{p:4,display:"flex",alignItems:"flex-start",gap:"4px",borderRadius:"4px",boxShadow:"0px 1px 2px 0px rgba(0, 0, 0, 0.06), 0px 1px 3px 0px rgba(0, 0, 0, 0.1)",fontSize:"sm","data-testid":"picker-card-".concat(t),children:n})},o=e=>{let{title:t,items:n,selected:a,indeterminate:o,onChange:c,toggle:d,onViewMore:u,numSelected:f,variant:m="default"}=e,h=u?n.slice(0,s):n,{allSelected:p,someSelected:g,handleToggleAll:x,handleToggleSelection:j}=(0,l.QZ)({items:n,selected:a,onChange:c});return(0,r.jsxs)(i.gCW,{alignItems:"flex-start",spacing:3,width:"100%",height:"100%",children:[(0,r.jsxs)(i.kCb,{justifyContent:"space-between",width:"100%",children:[(0,r.jsx)(i.XZJ,{fontSize:"md",textTransform:"emphasize"===m?"capitalize":void 0,fontWeight:"emphasize"===m?"semibold":"auto",isChecked:p,size:"md",mr:"2",onChange:x,colorScheme:"complimentary","data-testid":"select-all",isIndeterminate:!p&&g,children:t}),null!=d?d:null]}),f>0?(0,r.jsxs)(i.j8w,{className:"w-fit","data-testid":"num-selected-badge",children:[f," selected"]}):null,(0,r.jsx)(i.gCW,{paddingLeft:"6",fontSize:"sm",alignItems:"start",spacing:"2",children:(0,r.jsx)(i.cOn,{colorScheme:"complimentary",children:h.map(e=>(0,r.jsx)(i.kCb,{alignItems:"center",gap:"8px",children:(0,r.jsx)(i.XZJ,{isChecked:a.includes(e.id),isIndeterminate:o.includes(e.id),size:"md",fontWeight:"emphasize"===m?"500":"auto",onChange:()=>j(e.id),"data-testid":"".concat(e.name,"-checkbox"),children:e.name},e.id)},e.id))})}),u?(0,r.jsx)(i.wpx,{size:"small",onClick:u,type:"text","data-testid":"view-more-btn",children:"View more"}):null]})};t.ZP=e=>{let{...t}=e;return(0,r.jsx)(a,{title:t.title,children:(0,r.jsx)(o,{...t,variant:"emphasize"})})}},86780:function(e,t,n){var r=n(24246),i=n(38458);t.Z=e=>{let{search:t,onChange:n,withIcon:l,onClear:s,placeholder:a,...o}=e;return(0,r.jsxs)(i.vyj.Compact,{className:"w-96","data-testid":"search-bar",children:[(0,r.jsx)(i.uFc,{autoComplete:"off",value:t,onChange:e=>n(e.target.value),placeholder:a||"Search...",prefix:l?(0,r.jsx)(i.PTu,{boxSize:4}):void 0,...o}),s?(0,r.jsx)(i.wpx,{onClick:s,children:"Clear"}):null]})}},26089:function(e,t,n){var r=n(24246),i=n(38458);t.Z=e=>{let{onClick:t,children:n}=e;return(0,r.jsx)(i.wpx,{onClick:t,type:"link",role:"link",size:"large",className:"m-0 p-0 font-medium text-gray-700 underline",children:n})}},812:function(e,t,n){n.d(t,{D4:function(){return l.D4},MM:function(){return f},Ot:function(){return c},c6:function(){return i},cj:function(){return h},e$:function(){return a},fn:function(){return o},iC:function(){return m},nU:function(){return u},tB:function(){return d}});var r,i,l=n(19043);let s="An unexpected error occurred. Please try again.",a=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:s;if((0,l.Bw)(e)){if((0,l.hE)(e.data))return e.data.detail;if((0,l.cz)(e.data)){var n;let t=null===(n=e.data.detail)||void 0===n?void 0:n[0];return"".concat(null==t?void 0:t.msg,": ").concat(null==t?void 0:t.loc)}if(409===e.status&&(0,l.Dy)(e.data)||404===e.status&&(0,l.XD)(e.data))return"".concat(e.data.detail.error," (").concat(e.data.detail.fides_key,")")}return t};function o(e){return"object"==typeof e&&null!=e&&"status"in e}function c(e){return"object"==typeof e&&null!=e&&"data"in e&&"string"==typeof e.data.detail}function d(e){return"object"==typeof e&&null!=e&&"data"in e&&Array.isArray(e.data.detail)}let u=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{status:500,message:s};if((0,l.oK)(e))return{status:e.originalStatus,message:e.data};if((0,l.Bw)(e)){let{status:n}=e;return{status:n,message:a(e,t.message)}}return t},f=e=>Object.entries(e).map(e=>({value:e[1],label:e[1]}));(r=i||(i={})).GVL="gvl",r.AC="gacp",r.COMPASS="compass";let m={gvl:{label:"GVL",fullName:"Global Vendor List"},gacp:{label:"AC",fullName:"Google Additional Consent List"},compass:{label:"",fullName:""}},h=e=>{let t=e.split(".")[0];return"gacp"===t?"gacp":"gvl"===t?"gvl":"compass"}},67991:function(e,t,n){n.d(t,{Od:function(){return l},QZ:function(){return i}});var r=n(27378);let i=e=>{let{items:t,selected:n,onChange:r}=e,i=t.every(e=>n.includes(e.id))&&!!t.length;return{allSelected:i,someSelected:t.some(e=>n.includes(e.id))&&!!t.length,handleToggleAll:()=>{i?r([]):r(t.map(e=>e.id))},handleToggleSelection:e=>{n.includes(e)?r(n.filter(t=>t!==e)):r([...n,e])}}},l=e=>{let{initialSelected:t,initialExcluded:n,initialAllSelected:i,itemCount:l}=e,[s,a]=(0,r.useState)(t),[o,c]=(0,r.useState)(n),[d,u]=(0,r.useState)(i||s.length===l),f=!!s.length||!!o.length;return{selected:s,excluded:o,allSelected:d,someSelected:f,handleToggleAll:()=>{d?(c([]),o.length||u(!1)):(a([]),u(!0))},handleToggleItemSelected:e=>{if(d)c(o.includes(e)?o.filter(t=>t!==e):[...o,e]);else{let t=s.includes(e)?s.filter(t=>t!==e):[...s,e];a(t),t.length===l&&u(!0)}}}}},58452:function(e,t,n){var r=n(24246),i=n(38458);t.Z=e=>{let{isOpen:t,onClose:n,onConfirm:l,onCancel:s,title:a,message:o,cancelButtonText:c,continueButtonText:d,isLoading:u,returnFocusOnClose:f,isCentered:m,testId:h="confirmation-modal",icon:p}=e;return(0,r.jsxs)(i.u_l,{isOpen:t,onClose:n,size:"lg",returnFocusOnClose:null==f||f,isCentered:m,children:[(0,r.jsx)(i.ZAr,{}),(0,r.jsxs)(i.hzk,{textAlign:"center",p:6,"data-testid":h,children:[p?(0,r.jsx)(i.M5Y,{mb:2,children:p}):null,a?(0,r.jsx)(i.xBx,{fontWeight:"medium",pb:0,children:a}):null,o?(0,r.jsx)(i.fef,{children:o}):null,(0,r.jsx)(i.mzw,{children:(0,r.jsxs)(i.MIq,{columns:2,width:"100%",children:[(0,r.jsx)(i.wpx,{onClick:()=>{s&&s(),n()},size:"large",className:"mr-3","data-testid":"cancel-btn",disabled:u,children:c||"Cancel"}),(0,r.jsx)(i.wpx,{type:"primary",size:"large",onClick:l,"data-testid":"continue-btn",loading:u,children:d||"Continue"})]})})]})]})}},70788:function(e,t,n){n.d(t,{m:function(){return c}});var r=n(24246),i=n(38458),l=n(79894),s=n.n(l),a=n(27378);let{Text:o}=i.AntTypography,c=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},c=a.onClick&&!a.href;return("string"==typeof a.title&&(a.title=(0,r.jsx)(o,{style:{color:"inherit",maxWidth:l?void 0:400},ellipsis:!l,children:a.title})),c)?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)(s(),{href:a.href,className:"ant-breadcrumb-link",children:a.title}),delete a.href)),a}),[t]);return(0,r.jsx)(i.zrq,{items:l,...n})}},46628:function(e,t,n){n.d(t,{MA:function(){return a},Vo:function(){return c},t5:function(){return o}});var r=n(24246),i=n(38458);let l=e=>{let{children:t}=e;return(0,r.jsxs)(i.xvT,{"data-testid":"toast-success-msg",children:[(0,r.jsx)("strong",{children:"Success:"})," ",t]})},s=e=>{let{children:t}=e;return(0,r.jsxs)(i.xvT,{"data-testid":"toast-error-msg",children:[(0,r.jsx)("strong",{children:"Error:"})," ",t]})},a={variant:"subtle",position:"top",description:"",duration:5e3,status:"success",isClosable:!0},o=e=>{let t=(0,r.jsx)(l,{children:e});return{...a,description:t}},c=e=>{let t=(0,r.jsx)(s,{children:e});return{...a,description:t,status:"error"}}},12282:function(e,t,n){n.d(t,{$_:function(){return a},h4:function(){return l},x$:function(){return s}});var r=n(24246),i=n(38458);let l=e=>{let{title:t}=e;return(0,r.jsx)(i.xBx,{fontSize:"lg",fontWeight:"semibold",pt:5,paddingInline:6,pb:5,backgroundColor:"gray.50",borderTopRadius:"md",borderBottom:"1px solid",borderColor:"gray.200",children:t})},s=e=>{let{title:t,allSelected:n,numSelected:l,onToggleAll:s,children:a}=e;return(0,r.jsxs)(i.kCb,{justifyContent:"space-between",mb:4,children:[(0,r.jsxs)(i.xuv,{children:[(0,r.jsx)(i.XZJ,{colorScheme:"complimentary",size:"md",isChecked:n,isIndeterminate:!n&&l>0,onChange:s,mr:3,"data-testid":"select-all",children:(0,r.jsx)(i.xvT,{fontWeight:"semibold",fontSize:"md",children:t})}),(0,r.jsxs)(i.j8w,{color:"minos",className:"w-fit","data-testid":"num-selected-badge",children:[l," selected"]})]}),a]})},a=e=>{let{onApply:t,onClose:n}=e;return(0,r.jsx)(i.mzw,{justifyContent:"center",children:(0,r.jsxs)("div",{className:"flex w-full justify-between",children:[(0,r.jsx)(i.wpx,{onClick:n,"data-testid":"cancel-btn",children:"Cancel"}),(0,r.jsx)(i.wpx,{type:"primary",onClick:t,"data-testid":"apply-btn",children:"Apply"})]})})}},85759:function(e,t,n){n.d(t,{$q:function(){return s},F7:function(){return i},Il:function(){return r},VT:function(){return l},ji:function(){return a}});let r=(e,t)=>{let n={};return new Set(e.map(e=>e.continent).sort()).forEach(r=>{n[r]={locationGroups:t.filter(e=>e.continent===r).sort((e,t)=>e.name.localeCompare(t.name)),locations:e.filter(e=>e.continent===r).sort((e,t)=>e.name.localeCompare(t.name))}}),n},i=e=>{let t={};return new Set(e.map(e=>e.continent).sort()).forEach(n=>{t[n]=e.filter(e=>e.continent===n).sort((e,t)=>e.name.localeCompare(t.name))}),t},l=e=>{let t={};new Set(e.map(e=>e.belongs_to).flat().sort()).forEach(n=>{n&&(t[n]=e.filter(e=>{var t;return null===(t=e.belongs_to)||void 0===t?void 0:t.includes(n)}).sort((e,t)=>e.name.localeCompare(t.name)))});let n=e.filter(e=>!e.belongs_to||0===e.belongs_to.length);return n.length&&(t.Other=n),t},s=(e,t)=>{var n;return null!==(n=e.regulation)&&void 0!==n&&!!n.length||t.filter(t=>{var n;return null===(n=t.belongs_to)||void 0===n?void 0:n.includes(e.id)}).some(e=>{var t;return null===(t=e.regulation)||void 0===t?void 0:t.length})},a=e=>{let{group:t,selected:n,locations:r}=e,i=r.filter(e=>{var n;return null===(n=e.belongs_to)||void 0===n?void 0:n.includes(t.id)});return 0===i.length?"unchecked":i.every(e=>n.includes(e.id))?"checked":i.every(e=>!n.includes(e.id))?"unchecked":"indeterminate"}},19043:function(e,t,n){n.d(t,{Bw:function(){return s},D4:function(){return i},Dy:function(){return o},XD:function(){return c},cz:function(){return d},hE:function(){return a},oK:function(){return l}});var r=n(76649);let i=e=>"error"in e,l=e=>(0,r.Ln)({status:"string"},e)&&"PARSING_ERROR"===e.status,s=e=>(0,r.Ln)({status:"number",data:{}},e),a=e=>(0,r.Ln)({detail:"string"},e),o=e=>(0,r.Ln)({detail:{error:"string",resource_type:"string",fides_key:"string"}},e),c=e=>(0,r.Ln)({detail:{error:"string",resource_type:"string",fides_key:"string"}},e),d=e=>(0,r.Ln)({detail:[{loc:["string","number"],msg:"string",type:"string"}]},e)},31883:function(e,t,n){n.d(t,{Bw:function(){return r.Bw},D4:function(){return r.D4}});var r=n(19043)},76649:function(e,t,n){n.d(t,{Ln:function(){return r}});let r=(e,t)=>l(e,t),i=Symbol("SOME"),l=(e,t)=>"string"==typeof e?e===typeof t:Array.isArray(e)?i in e?e.some(e=>l(e,t)):!!Array.isArray(t)&&(0===e.length||t.every(t=>e.some(e=>l(e,t)))):"object"==typeof t&&null!==t&&Object.entries(e).every(([e,n])=>l(n,t[e]));class s{static narrow(e){return new s(t=>r(e,t))}constructor(e){this.NF=void 0,this.NF=e}satisfied(e){return this.NF(e)}build(e){return e}and(e){let t=this.NF,n=e instanceof s?e.NF:e instanceof Function?e:t=>r(e,t);return new s(e=>t(e)&&n(e))}}new s(e=>!0)}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3320],{3320:function(e,n,i){i.d(n,{Z:function(){return S}});var t=i(24246),a=i(38458),o=i(34090),l=i(86677),r=i(27378),s=i(59389),d=i(16134),c=i(812);let p=(0,a.IUT)({displayName:"DesktopIcon",viewBox:"0 0 24 24",path:(0,t.jsx)("path",{fill:"currentColor",d:"M20.5556 4.05556H3.44444C3.10833 4.05556 2.83333 4.33056 2.83333 4.66667V12H21.1667V4.66667C21.1667 4.33056 20.8917 4.05556 20.5556 4.05556ZM23 12V13.8333V15.6667C23 17.0149 21.9038 18.1111 20.5556 18.1111H14.9142L15.2198 19.9445H17.1944C17.7024 19.9445 18.1111 20.3531 18.1111 20.8611C18.1111 21.3691 17.7024 21.7778 17.1944 21.7778H14.4444H9.55556H6.80556C6.29757 21.7778 5.88889 21.3691 5.88889 20.8611C5.88889 20.3531 6.29757 19.9445 6.80556 19.9445H8.78021L9.08576 18.1111H3.44444C2.09618 18.1111 1 17.0149 1 15.6667V13.8333V12V4.66667C1 3.31841 2.09618 2.22223 3.44444 2.22223H20.5556C21.9038 2.22223 23 3.31841 23 4.66667V12ZM2.83333 13.8333V15.6667C2.83333 16.0028 3.10833 16.2778 3.44444 16.2778H10.1476C10.159 16.2778 10.1705 16.2778 10.1781 16.2778H13.8142C13.8257 16.2778 13.8372 16.2778 13.8448 16.2778H20.5556C20.8917 16.2778 21.1667 16.0028 21.1667 15.6667V13.8333H2.83333ZM10.6365 19.9445H13.3597L13.0542 18.1111H10.942L10.6365 19.9445Z"})}),u=(0,a.IUT)({displayName:"MobileIcon",viewBox:"0 0 24 24",path:(0,t.jsx)("path",{fill:"currentColor",d:"M6.5 20.25C6.5 20.6281 6.80938 20.9375 7.1875 20.9375H16.8125C17.1906 20.9375 17.5 20.6281 17.5 20.25V16.8125H6.5V20.25ZM6.5 14.75H17.5V3.75C17.5 3.37188 17.1906 3.0625 16.8125 3.0625H7.1875C6.80938 3.0625 6.5 3.37188 6.5 3.75V14.75ZM4.4375 3.75C4.4375 2.2332 5.6707 1 7.1875 1H16.8125C18.3293 1 19.5625 2.2332 19.5625 3.75V20.25C19.5625 21.7668 18.3293 23 16.8125 23H7.1875C5.6707 23 4.4375 21.7668 4.4375 20.25V3.75ZM12 17.8438C12.2735 17.8438 12.5358 17.9524 12.7292 18.1458C12.9226 18.3392 13.0312 18.6015 13.0312 18.875C13.0312 19.1485 12.9226 19.4108 12.7292 19.6042C12.5358 19.7976 12.2735 19.9062 12 19.9062C11.7265 19.9062 11.4642 19.7976 11.2708 19.6042C11.0774 19.4108 10.9688 19.1485 10.9688 18.875C10.9688 18.6015 11.0774 18.3392 11.2708 18.1458C11.4642 17.9524 11.7265 17.8438 12 17.8438Z"})});var v=i(77830),_=i(46628),m=i(60325),b=i(34334),f=i(13083),g=i.n(f),y=i(43218),h=i.n(y),x=i(52253),w=i(48515),C=i(21702);let k={language:C.eU.EN,accept_button_label:"Accept",acknowledge_button_label:"OK",banner_description:"",banner_title:"",purpose_header:"",description:"Description",privacy_policy_link_label:"",privacy_policy_url:"",modal_link_label:"",privacy_preferences_link_label:"Privacy preferences",reject_button_label:"Reject All",save_button_label:"Save",title:"Manage your consent preferences",is_default:!0},j=e=>({...k,...e.translations?e.translations[0]:{}}),V=(e,n)=>{var i,t,a,o;return{options:{debug:!1,geolocationApiUrl:"",isGeolocationEnabled:!1,isOverlayEnabled:!0,isPrefetchEnabled:!1,overlayParentId:x.Vk,modalLinkId:null,privacyCenterUrl:"http://localhost:3000",fidesApiUrl:"http://localhost:8080/api/v1",preventDismissal:null!==(o=e.dismissable)&&void 0!==o&&o,allowHTMLDescription:!0,fidesString:null,fidesJsBaseUrl:"",base64Cookie:!1,fidesLocale:null===(t=e.translations)||void 0===t?void 0:null===(i=t[0])||void 0===i?void 0:i.language,fidesClearCookie:!0},experience:{id:"pri_111",region:"us_ca",component:"banner_and_modal",available_locales:null===(a=e.translations)||void 0===a?void 0:a.map(e=>e.language),experience_config:{id:"pri_222",regions:["us_ca"],component:"banner_and_modal",disabled:!1,is_default:!0,dismissable:e.dismissable,show_layer1_notices:!1,layer1_button_options:w.O.OPT_IN_OPT_OUT,allow_language_selection:!0,auto_detect_language:!0,auto_subdomain_cookie_deletion:!0,language:"en",translations:[j(e)]},privacy_notices:n},geolocation:{country:"US",location:"US-CA",region:"CA"}}},A=e=>{let{language:n,is_default:i,...t}=k,a=Object.keys(t).map(n=>{let i=e[n];return{[n]:void 0!==i?i:k[n]}}).reduce((e,n)=>({...e,...n}),{});return{language:e.language,is_default:e.is_default,...a}};var N=i(71922),E=i(32222);let D=e=>{let{title:n,description:i}=e;return(0,t.jsx)(a.kCb,{h:"full",justify:"center",align:"center",children:(0,t.jsxs)(a.kCb,{bgColor:"white",borderRadius:"md",p:6,boxShadow:"md",direction:"column",align:"center",gap:"2",maxW:"512px","data-testid":"no-preview-notice",children:[(0,t.jsx)(a.xvT,{fontSize:"lg",fontWeight:"500",align:"center",children:n}),(0,t.jsx)(a.xvT,{color:"gray.500",align:"center",children:i})]})})};var H=e=>{var n;let{allPrivacyNotices:i,initialValues:l,translation:s,isMobilePreview:d}=e,{values:p}=(0,o.u6)(),[u,v]=(0,r.useState)([]),_=[C.re.BANNER_AND_MODAL,C.re.MODAL].includes(p.component),m=(0,a.pmc)(),[b]=(0,N.Je)(),f=async e=>{let n=await b(e);n.isError&&m({status:"error",description:(0,c.e$)(n.error,"A problem occurred while fetching privacy notice data. Some notices may not display correctly on the preview.")});let{data:i}=await b(e);return i};(0,r.useEffect)(()=>{p.privacy_notice_ids&&p.component!==C.re.TCF_OVERLAY?Promise.all(p.privacy_notice_ids.map(e=>f(e))).then(e=>v(e.filter(e=>void 0!==e))):v([])},[p.privacy_notice_ids]);let y=(0,r.useMemo)(()=>V(l,u),[l,u]);(0,r.useEffect)(()=>{var e,n,i,t;p.component===C.re.MODAL&&(y.experience.experience_config.component=C.re.MODAL);let a=null===(e=p.translations)||void 0===e?void 0:e.find(e=>e.language===(null==s?void 0:s.language));(null===(n=p.translations)||void 0===n?void 0:n.length)&&(a?(y.experience.available_locales=[...y.experience.available_locales||[],a.language],y.experience.experience_config.translations[0]=A(a),y.options.fidesLocale=a.language):p.translations&&(y.experience.experience_config.translations[0]=A(p.translations[0]),y.options.fidesLocale=p.translations[0].language)),y.experience.experience_config.show_layer1_notices=!!(null===(i=p.privacy_notice_ids)||void 0===i?void 0:i.length)&&!!p.show_layer1_notices,y.experience.experience_config.layer1_button_options=p.component===C.re.BANNER_AND_MODAL&&p.layer1_button_options||w.O.OPT_IN_OPT_OUT,y.options.preventDismissal=!p.dismissable,window.Fides&&(null===(t=p.privacy_notice_ids)||void 0===t?void 0:t.length)&&_&&window.Fides.init(y)},[p,s,y,i,_]);let k=document.getElementById("fides-modal");return(k&&k.removeAttribute("tabindex"),_)?(null===(n=p.privacy_notice_ids)||void 0===n?void 0:n.length)?(0,t.jsxs)(a.kCb,{h:"full",justify:"center",align:"center",overflow:"scroll",children:[(0,t.jsx)(g(),{id:"905800c62191633b",dynamic:[x.Vk],children:"div#fides-overlay{z-index:5000!important}div#".concat(x.Vk,"{padding-top:45px;margin:auto!important;pointer-events:none}div#fides-banner-container{position:static!important;-webkit-transform:none!important;-moz-transform:none!important;-ms-transform:none!important;-o-transform:none!important;transform:none!important;-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;transition:none!important}div#fides-banner-container.fides-banner-hidden{display:none}.fides-modal-container{background-color:unset!important;position:static!important;display:none!important}.fides-modal-overlay{background-color:inherit!important;position:static!important;display:none!important}div.fides-modal-content{position:relative!important;-webkit-transform:none!important;-moz-transform:none!important;-ms-transform:none!important;-o-transform:none!important;transform:none!important;left:initial!important;top:initial!important}div.fides-modal-footer{width:unset}")}),_?(0,t.jsx)("style",{children:"div#fides-modal {\n display: flex !important;\n justify-content: center;\n background-color: unset;\n ".concat(p.component===C.re.BANNER_AND_MODAL?"padding-top: 3rem; padding-bottom: 3rem;":"","\n }")}):null,d?(0,t.jsx)("style",{children:"\n div#".concat(x.Vk," {\n width: 70% !important;\n }\n div.fides-modal-button-group {\n flex-direction: column !important;\n }\n div#fides-modal {\n width: 70% !important;\n margin: auto;\n }\n div#fides-banner {\n padding: 24px;\n width: 100%;\n }\n\n div#fides-banner-description {\n margin-bottom: 0px;\n }\n\n div#fides-banner-inner div#fides-button-group {\n flex-direction: column;\n align-items: flex-start;\n gap: 12px;\n padding-top: 24px;\n }\n\n .fides-banner-button-group {\n flex-direction: column;\n width: 100%;\n }\n\n button.fides-banner-button {\n margin: 0px;\n width: 100%;\n }\n\n div#fides-banner-inner-container {\n display: flex;\n flex-direction: column;\n max-height: 50vh;\n overflow-y: auto;\n scrollbar-gutter: stable;\n }\n\n div#fides-privacy-policy-link {\n order: 1;\n width: 100%;\n }\n .fides-modal-footer {\n max-width: 100%;\n }\n .fides-banner-secondary-actions {\n flex-direction: column-reverse;\n gap: 12px;\n }\n ")}):(0,t.jsx)("style",{children:"\n div#fides-banner {\n width: 90% !important;\n }\n "}),(0,t.jsx)(h(),{id:"fides-js-base",src:"/lib/fides.js",onReady:()=>{if(_){var e;null===(e=window.Fides)||void 0===e||e.init(y)}}}),(0,t.jsx)("div",{id:x.Vk,className:g().dynamic([["905800c62191633b",[x.Vk]]])})]}):(0,t.jsx)(D,{title:"No privacy notices added",description:'To view a preview of this experience, add a privacy notice under "Privacy Notices" to the left.'}):(0,t.jsx)(D,{title:"".concat(E.J.get(p.component)," preview not available"),description:"There is no preview available for ".concat(E.J.get(p.component),". You can edit the available settings\n and languages to the left.")})},O=i(94315),M=i(16194),Z=i(16277),T=i(99716),L=i(31883);let P=e=>s.Ry().shape({title:s.Z_().required().label("Title"),description:s.Z_().required().label("Description"),accept_button_label:s.Z_().required().label("Accept button label"),reject_button_label:s.Z_().required().label("Reject button label"),save_button_label:s.Z_().required().label("Save button label"),acknowledge_button_label:s.Z_().required().label("Acknowledge button label"),privacy_policy_url:s.Z_().url().nullable().label("Privacy policy URL"),is_default:s.O7(),privacy_preferences_link_label:e?s.Z_().required().label("Privacy preferences link label"):s.Z_().nullable().label("Privacy preferences link label")}),R=s.Ry().shape({name:s.Z_().required().label("Experience name"),component:s.Z_().required().label("Experience type"),translations:s.IX().when("component",{is:e=>e===C.re.BANNER_AND_MODAL||e===C.re.TCF_OVERLAY,then:e=>e.of(P(!0)),otherwise:e=>e.of(P(!1))})});var S=e=>{var n;let{passedInExperience:i,passedInTranslations:s}=e,[f]=(0,O.mJ)(),[g]=(0,O.$d)(),y=(0,a.pmc)(),[h,x]=(0,r.useState)(!1),w=(0,l.useRouter)(),{data:C}=(0,T.tB)({api_set:!1}),k=null==C?void 0:null===(n=C.plus_consent_settings)||void 0===n?void 0:n.enable_translations,j=(0,d.C)(b.Zp),V=(0,d.C)(b.G1);(0,b.Ah)({page:j,size:V});let A=(0,d.C)(b.fJ),E=(0,d.C)(N.sX),D=i?{...m.DD,...(0,m.Uv)(i)}:m.DD,P=async e=>{var n,t;let a;e.privacy_notice_ids=null===(n=e.privacy_notice_ids)||void 0===n?void 0:n.filter(e=>"tcf_purposes_placeholder"!==e);let o={...e,disabled:null===(t=null==i?void 0:i.disabled)||void 0===t||t,allow_language_selection:e.translations&&e.translations.length>1};if(i){let{component:e,...n}=o;a=await g({...n,id:i.id})}else a=await f(o);(0,L.D4)(a)?y((0,_.Vo)((0,c.e$)(a.error))):(y((0,_.t5)("Privacy experience successfully ".concat(i?"updated":"created"))),w.push(v.w0))},[S,B]=(0,r.useState)(void 0),[U,I]=(0,r.useState)(!1);return(0,t.jsx)(o.J9,{initialValues:D,enableReinitialize:!0,onSubmit:P,validationSchema:R,children:(0,t.jsx)(o.l0,{style:{height:"100vh"},children:(0,t.jsxs)(a.kCb,{w:"full",h:"full",direction:"row","data-testid":"privacy-experience-detail-page",children:[S?(0,t.jsx)(Z.Z,{translation:S,translationsEnabled:k,isOOB:U,onReturnToMainForm:()=>{B(void 0),I(!1)}}):(0,t.jsx)(M.d0,{allPrivacyNotices:E,translationsEnabled:k,onSelectTranslation:e=>{B({...e,name:(0,m.Go)(e,A)})},onCreateTranslation:e=>{let n=null==s?void 0:s.find(n=>n.language===e);return n&&I(!0),null!=n?n:{language:e,is_default:!1}}}),(0,t.jsxs)(a.kCb,{direction:"column",w:"75%",bgColor:"gray.50",overflowY:"hidden",children:[(0,t.jsxs)(a.kCb,{direction:"row",p:4,align:"center",bgColor:"white",borderBottom:"1px solid #DEE5EE",children:[(0,t.jsx)(a.xvT,{fontSize:"md",fontWeight:"semibold",children:"PREVIEW"}),(0,t.jsx)(a.LZC,{}),(0,t.jsxs)("div",{className:"flex gap-2",children:[(0,t.jsx)(a.wpx,{icon:(0,t.jsx)(u,{}),"aria-label":"View mobile preview",onClick:()=>x(!0),className:h?"bg-gray-200":void 0}),(0,t.jsx)(a.wpx,{icon:(0,t.jsx)(p,{}),"aria-label":"View desktop preview",onClick:()=>x(!1),className:h?void 0:"bg-gray-200"})]})]}),(0,t.jsx)(H,{allPrivacyNotices:E,initialValues:D,translation:S,isMobilePreview:h})]})]})})})}},32222:function(e,n,i){i.d(n,{J:function(){return t}});let t=new Map([["overlay","Overlay"],["privacy_center","Privacy center"],["tcf_overlay","TCF overlay"],["modal","Modal"],["banner_and_modal","Banner and modal"],["headless","Headless"]])},31883:function(e,n,i){i.d(n,{Bw:function(){return t.Bw},D4:function(){return t.D4}});var t=i(19043)}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3662],{58754:function(e,t,n){var r=n(24246),i=n(38458),l=n(70788);t.Z=e=>{let{heading:t,breadcrumbItems:n,isSticky:o=!0,children:s,rightContent:a,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.X6q,{className:n||s?"pb-4":void 0,fontSize:"2xl","data-testid":"page-heading",children:t}):t,a&&(0,r.jsx)("div",{"data-testid":"page-header-right-content",children:a})]}),!!n&&(0,r.jsx)(l.m,{className:s?"pb-4":void 0,items:n,"data-testid":"page-breadcrumb"}),s]})}},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}},97181:function(e,t,n){n.d(t,{d:function(){return d}});var r=n(24246),i=n(38458),l=n(34090),o=n(27378),s=n(91613),a=n(40324);let d=e=>{let{name:t,label:n,labelProps:d,tooltip:c,isRequired:u,layout:p="inline",...x}=e,[h,m,{setValue:f}]=(0,l.U$)(t),g=!!(m.touched&&m.error),[y,j]=(0,o.useState)("");h.value||"tags"!==x.mode&&"multiple"!==x.mode||(h.value=[]),"tags"===x.mode&&"string"==typeof h.value&&(h.value=[h.value]);let v="tags"===x.mode?(e,t)=>e?e.value!==y||h.value.includes(y)?x.optionRender?x.optionRender(e,t):e.label:'Create "'.concat(y,'"'):void 0:x.optionRender||void 0,b=e=>{j(e),x.onSearch&&x.onSearch(e)},C=(e,t)=>{f(e),x.onChange&&x.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)(a.__,{htmlFor:x.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:x.id||t,"data-testid":"controlled-select-".concat(h.name),...x,optionRender:v,onSearch:"tags"===x.mode?b:void 0,onChange:C,value:h.value||void 0}),(0,r.jsx)(a.Bc,{isInvalid:g,message:m.error,fieldName:h.name})]}),c?(0,r.jsx)(s.Z,{label:c}):null]})]})}):(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)(a.__,{htmlFor:x.id||t,fontSize:"xs",my:0,mr:1,...d,children:n}):null,c?(0,r.jsx)(s.Z,{label:c}):null]}),(0,r.jsx)(i.WPr,{...h,id:x.id||t,"data-testid":"controlled-select-".concat(h.name),...x,optionRender:v,onSearch:"tags"===x.mode?b:void 0,onChange:C,value:h.value||void 0}),(0,r.jsx)(a.Bc,{isInvalid:g,message:m.error,fieldName:h.name})]})})}},10342:function(e,t,n){var r=n(24246),i=n(38458),l=n(91613);t.Z=e=>{let{title:t,tooltip:n,children:o,...s}=e;return(0,r.jsxs)(i.xuv,{borderRadius:"md",border:"1px solid",borderColor:"gray.200",...s,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.Z,{label:n})}):void 0]}),(0,r.jsx)(i.Kqy,{p:6,spacing:6,children:o})]})}},58452:function(e,t,n){var r=n(24246),i=n(38458);t.Z=e=>{let{isOpen:t,onClose:n,onConfirm:l,onCancel:o,title:s,message:a,cancelButtonText:d,continueButtonText:c,isLoading:u,returnFocusOnClose:p,isCentered:x,testId:h="confirmation-modal",icon:m}=e;return(0,r.jsxs)(i.u_l,{isOpen:t,onClose:n,size:"lg",returnFocusOnClose:null==p||p,isCentered:x,children:[(0,r.jsx)(i.ZAr,{}),(0,r.jsxs)(i.hzk,{textAlign:"center",p:6,"data-testid":h,children:[m?(0,r.jsx)(i.M5Y,{mb:2,children:m}):null,s?(0,r.jsx)(i.xBx,{fontWeight:"medium",pb:0,children:s}):null,a?(0,r.jsx)(i.fef,{children:a}):null,(0,r.jsx)(i.mzw,{children:(0,r.jsxs)(i.MIq,{columns:2,width:"100%",children:[(0,r.jsx)(i.wpx,{onClick:()=>{o&&o(),n()},size:"large",className:"mr-3","data-testid":"cancel-btn",disabled:u,children:d||"Cancel"}),(0,r.jsx)(i.wpx,{type:"primary",size:"large",onClick:l,"data-testid":"continue-btn",loading:u,children:c||"Continue"})]})})]})]})}},70788:function(e,t,n){n.d(t,{m:function(){return d}});var r=n(24246),i=n(38458),l=n(79894),o=n.n(l),s=n(27378);let{Text:a}=i.AntTypography,d=e=>{let{items:t,...n}=e,l=(0,s.useMemo)(()=>null==t?void 0:t.map((e,n)=>{let l=n===t.length-1,s={...e},d=s.onClick&&!s.href;return("string"==typeof s.title&&(s.title=(0,r.jsx)(a,{style:{color:"inherit",maxWidth:l?void 0:400},ellipsis:!l,children:s.title})),d)?s.title=(0,r.jsx)(i.wpx,{type:"text",size:"small",icon:s.icon,onClick:s.onClick,className:"ant-breadcrumb-link -mt-px px-1 text-inherit",children:s.title}):(s.icon&&(s.title=(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("span",{className:"anticon align-text-bottom",children:s.icon}),s.title]})),s.href&&s.title&&(s.title=(0,r.jsx)(o(),{href:s.href,className:"ant-breadcrumb-link",children:s.title}),delete s.href)),s}),[t]);return(0,r.jsx)(i.zrq,{items:l,...n})}},3642:function(e,t,n){var r=n(24246),i=n(38458),l=n(86677),o=n.n(l),s=n(27378),a=n(812),d=n(58452),c=n(77830),u=n(19904),p=n(46628),x=n(98795),h=n(21702);t.Z=e=>{let{property:t,triggerComponent:n}=e,l=(0,i.pmc)(),m=(0,i.qY0)(),[f]=(0,x.YW)(),g=t.experiences.length>0,y=async()=>{m.onClose();let e=await f(t.id);if((0,a.D4)(e)){l((0,p.Vo)((0,a.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:[h.Sh.PROPERTY_DELETE],children:[(0,r.jsx)(i.ua7,{label:"All of the experiences on this property must be unlinked before the property can be deleted.",placement:"right",isDisabled:!g,children:(0,r.jsx)("span",{children:s.cloneElement(n,{onClick:e=>{e.stopPropagation(),g||m.onOpen()},disabled:g})})}),(0,r.jsx)(d.Z,{isOpen:m.isOpen,onClose:m.onClose,onConfirm:y,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(38458),l=n(34090),o=n(86677),s=n(27378),a=n(16134),d=n(10342),c=n(40324),u=n(812),p=n(77830),x=n(51472),h=n(94315),m=n(21702),f=n(97181),g=n(3642);let y=()=>{var e;let t=(0,a.C)(h.Zp),n=(0,a.C)(h.G1);(0,h.cq)({page:t,size:n});let i=(0,a.C)(h.w4),{values:o,setFieldValue:s}=(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=>s("experiences",e),draggable:!0,baseTestId:"experience"})})};t.Z=e=>{let{property:t,handleSubmit:n}=e,a=(0,o.useRouter)(),x=()=>{a.push(p.ru)},h=(0,s.useMemo)(()=>t||{name:"",type:m.uS.WEBSITE,experiences:[],messaging_templates:[],paths:[]},[t]);return(0,r.jsx)(l.J9,{enableReinitialize:!0,initialValues:h,onSubmit:n,children:e=>{let{dirty:n,isValid:o,isSubmitting:s}=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)(m.uS),layout:"stacked"})]})}),(0,r.jsx)(i.xuv,{py:3,children:(0,r.jsx)(y,{})}),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)(g.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:s||!n||!o,loading:s,children:"Save"})]})]})]})}})}},31883:function(e,t,n){n.d(t,{Bw:function(){return r.Bw},D4:function(){return r.D4}});var r=n(19043)},51959:function(e,t,n){n.d(t,{t:function(){return R}});var r=n(24246),i=n(45487),l=n(27378);let o=(0,l.createContext)(null);var s=n(38565),a=n(96681),d=n(10010),c=n(40179);let u=(0,l.forwardRef)(function({children:e,as:t="ul",axis:n="y",onReorder:u,values:h,...m},f){let g=(0,a.h)(()=>(0,s.E)(t)),y=[],j=(0,l.useRef)(!1);return(0,i.k)(!!h,"Reorder.Group must be provided a values prop"),(0,l.useEffect)(()=>{j.current=!1}),(0,r.jsx)(g,{...m,ref:f,ignoreStrict:!0,children:(0,r.jsx)(o.Provider,{value:{axis:n,registerItem:(e,t)=>{let r=y.findIndex(t=>e===t.value);-1!==r?y[r].layout=t[n]:y.push({value:e,layout:t[n]}),y.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 s=e[i],a=o.layout,u=(0,c.t)(a.min,a.max,.5);return 1===l&&s.layout.max+n>u||-1===l&&s.layout.min+n<u?(0,d.uo)(e,i,i+l):e}(y,e,t,n);y!==r&&(j.current=!0,u(r.map(p).filter(e=>-1!==h.indexOf(e))))}},children:e})})});function p(e){return e.value}function x(e,t){return e.layout.min-t.layout.min}var h=n(33234),m=n(16014);function f(e){let t=(0,a.h)(()=>(0,h.BX)(e)),{isStatic:n}=(0,l.useContext)(m._);if(n){let[,n]=(0,l.useState)(e);(0,l.useEffect)(()=>t.on("change",n),[])}return t}var g=n(71884);let y=e=>e&&"object"==typeof e&&e.mix,j=e=>y(e)?e.mix:void 0;var v=n(58868),b=n(26166);function C(e,t){let n=f(t()),r=()=>n.set(t());return r(),(0,v.L)(()=>{let t=()=>b.Wi.preRender(r,!1,!0),n=e.map(e=>e.on("change",t));return()=>{n.forEach(e=>e()),(0,b.Pn)(r)}}),n}function w(e,t){let n=(0,a.h)(()=>[]);return C(e,()=>{n.length=0;let r=e.length;for(let t=0;t<r;t++)n[t]=e[t].get();return t(n)})}var k=n(40406);function I(e,t=0){return(0,k.i)(e)?e:f(t)}let R={Group:u,Item:(0,l.forwardRef)(function({children:e,style:t={},value:n,as:d="li",onDrag:c,layout:u=!0,...p},x){let m=(0,a.h)(()=>(0,s.E)(d)),f=(0,l.useContext)(o),y={x:I(t.x),y:I(t.y)},v=function(e,t,n,r){if("function"==typeof e)return function(e){h.S1.current=[],e();let t=C(h.S1.current,e);return h.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],s=(0,g.s)(i,l,{mixer:j(l[0]),...o});return t?s(r):s}(t,void 0,void 0);return Array.isArray(e)?w(e,i):w([e],([e])=>i(e))}([y.x,y.y],([e,t])=>e||t?1:"unset");(0,i.k)(!!f,"Reorder.Item must be a child of Reorder.Group");let{axis:b,registerItem:k,updateOrder:R}=f;return(0,r.jsx)(m,{drag:b,...p,dragSnapToOrigin:!0,style:{...t,x:y.x,y:y.y,zIndex:v},layout:u,onDrag:(e,t)=>{let{velocity:r}=t;r[b]&&R(n,y[b].get(),r[b]),c&&c(e,t)},onLayoutMeasure:e=>k(n,e),ref:x,ignoreStrict:!0,children:e})})}},60153:function(e,t,n){n.d(t,{o:function(){return o}});var r=n(96681);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)}},76649:function(e,t,n){n.d(t,{Ln:function(){return r}});let r=(e,t)=>l(e,t),i=Symbol("SOME"),l=(e,t)=>"string"==typeof e?e===typeof t:Array.isArray(e)?i in e?e.some(e=>l(e,t)):!!Array.isArray(t)&&(0===e.length||t.every(t=>e.some(e=>l(e,t)))):"object"==typeof t&&null!==t&&Object.entries(e).every(([e,n])=>l(n,t[e]));class o{static narrow(e){return new o(t=>r(e,t))}constructor(e){this.NF=void 0,this.NF=e}satisfied(e){return this.NF(e)}build(e){return e}and(e){let t=this.NF,n=e instanceof o?e.NF:e instanceof Function?e:t=>r(e,t);return new o(e=>t(e)&&n(e))}}new o(e=>!0)}}]);
@@ -1 +0,0 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3855],{66726:function(e,t,i){var r=i(11611),n=i(82846),a=i(91936),s=Math.max,l=Math.min;e.exports=function(e,t,i){var o,c,u,d,p,g,x=0,f=!1,h=!1,v=!0;if("function"!=typeof e)throw TypeError("Expected a function");function j(t){var i=o,r=c;return o=c=void 0,x=t,d=e.apply(r,i)}function m(e){var i=e-g,r=e-x;return void 0===g||i>=t||i<0||h&&r>=u}function C(){var e,i,r,a=n();if(m(a))return y(a);p=setTimeout(C,(e=a-g,i=a-x,r=t-e,h?l(r,u-i):r))}function y(e){return(p=void 0,v&&o)?j(e):(o=c=void 0,d)}function I(){var e,i=n(),r=m(i);if(o=arguments,c=this,g=i,r){if(void 0===p)return x=e=g,p=setTimeout(C,t),f?j(e):d;if(h)return clearTimeout(p),p=setTimeout(C,t),j(g)}return void 0===p&&(p=setTimeout(C,t)),d}return t=a(t)||0,r(i)&&(f=!!i.leading,u=(h="maxWait"in i)?s(a(i.maxWait)||0,t):u,v="trailing"in i?!!i.trailing:v),I.cancel=function(){void 0!==p&&clearTimeout(p),x=0,o=g=c=p=void 0},I.flush=function(){return void 0===p?d:y(n())},I}},82846:function(e,t,i){var r=i(77400);e.exports=function(){return r.Date.now()}},14047:function(e,t,i){"use strict";i.d(t,{H:function(){return a},V:function(){return r.V}});var r=i(84306),n=i(812);let a=()=>{let{errorAlert:e}=(0,r.V)();return{handleError:t=>{let i="An unexpected error occurred. Please try again.";(0,n.Ot)(t)?i=t.data.detail:(0,n.tB)(t)&&(i=t.data.detail[0].msg),e(i)}}}},84306:function(e,t,i){"use strict";i.d(t,{V:function(){return a}});var r=i(24246),n=i(38458);let a=()=>{let e=(0,n.pmc)();return{errorAlert:(t,i,a)=>{let s={...a,position:(null==a?void 0:a.position)||"top",render:e=>{let{onClose:a}=e;return(0,r.jsxs)(n.bZj,{alignItems:"normal",status:"error","data-testid":"error-alert",children:[(0,r.jsx)(n.zMQ,{}),(0,r.jsxs)(n.xuv,{children:[i&&(0,r.jsx)(n.CdC,{children:i}),(0,r.jsx)(n.XaZ,{children:t})]}),(0,r.jsx)(n.PZ7,{onClick:a,position:"relative",right:0,size:"sm",top:-1})]})}};(null==a?void 0:a.id)&&e.isActive(a.id)?e.update(a.id,s):e(s)},successAlert:(t,i,a)=>{let s={...a,position:(null==a?void 0:a.position)||"top",render:e=>{let{onClose:a}=e;return(0,r.jsxs)(n.bZj,{alignItems:"normal",status:"success",variant:"subtle","data-testid":"success-alert",children:[(0,r.jsx)(n.zMQ,{}),(0,r.jsxs)(n.xuv,{children:[i&&(0,r.jsx)(n.CdC,{children:i}),(0,r.jsx)(n.XaZ,{children:t})]}),(0,r.jsx)(n.PZ7,{onClick:a,position:"relative",right:0,size:"sm",top:-1})]})}};(null==a?void 0:a.id)&&e.isActive(a.id)?e.update(a.id,s):e(s)}}}},81406:function(e,t,i){"use strict";var r=i(24246),n=i(38458);t.Z=()=>(0,r.jsxs)(n.gCW,{mt:6,p:10,spacing:4,borderRadius:"base",maxW:"70%","data-testid":"empty-state",alignSelf:"center",margin:"auto",children:[(0,r.jsx)(n.xvT,{fontSize:"md",fontWeight:"600",children:"No resources found"}),(0,r.jsx)(n.xvT,{fontSize:"sm",children:"You're up to date!"})]})},25077:function(e,t,i){"use strict";i.d(t,{Z:function(){return A}});var r=i(24246),n=i(59003),a=i(92222),s=i(38458),l=i(27378),o=i(14481),c=i(81406),u=i(99763),d=i(72625),p=i(14047),g=i(28976),x=i(8151),f=i(70675),h=e=>{let{resource:t,onDetailClick:i}=e,{successAlert:n}=(0,p.V)(),a=(0,x.u)(t),[l,{isLoading:o}]=(0,f.v8)(),[c,{isLoading:u}]=(0,f.cM)(),[d,{isLoading:h}]=(0,f.vi)(),v=async()=>{var e;await l({staged_resource_urn:t.urn,monitor_config_id:t.monitor_config_id,unmute_children:!0,classify_monitored_resources:!0}),n("Started classification on ".concat(null!==(e=t.name)&&void 0!==e?e:"this resource"))},j=async()=>{var e;await c({staged_resource_urn:t.urn}),n("Approved ".concat(null!==(e=t.name)&&void 0!==e?e:" resource"))},m=async()=>{var e;await d({staged_resource_urn:t.urn}),n("Hid ".concat(null!==(e=t.name)&&void 0!==e?e:" resource"))},C=o||u||h;return(0,r.jsxs)(s.kCb,{gap:2,justify:"space-between",children:[a===x.e.ATTENTION_REQUIRED&&(0,r.jsx)(s.wpx,{size:"small",onClick:v,loading:o,disabled:C,"data-testid":"classify-btn",children:"Classify"}),a===x.e.IN_REVIEW&&(0,r.jsx)(s.wpx,{size:"small",onClick:j,loading:u,disabled:C,"data-testid":"approve-btn",children:"Approve"}),(0,r.jsx)(s.LZC,{}),(0,r.jsx)(g.Z,{onHideClick:m,onDetailClick:i})]})},v=i(89200),j=i(5945),m=i(61099),C=i(79947),y=i(21702);let I=(0,a.Cl)();var L=(e,t)=>{let i=[];return e?e===y.D$.TABLE?[I.display({id:"name",cell:e=>{let{row:t}=e;return(0,r.jsx)(v.Z,{resource:t.original})},header:"Table"}),I.display({id:"status",cell:e=>{let{row:t}=e;return(0,r.jsx)(j.Z,{status:(0,x.u)(t.original)})},header:"Status"}),I.display({id:"category",cell:e=>{let{row:t}=e;return(0,r.jsx)(m.Z,{resource:t.original})},header:"Data categories",minSize:280,meta:{disableRowClick:!0}}),I.accessor(e=>e.description,{id:"description",cell:e=>(0,r.jsx)(o.G3,{value:e.getValue()}),header:"Description"}),I.accessor(e=>e.updated_at,{id:"lastUpdated",cell:e=>(0,r.jsx)(d.Cy,{time:e.getValue()}),header:"Updated"}),I.display({id:"actions",cell:e=>{let{row:i}=e;return(0,r.jsx)(h,{resource:i.original,onDetailClick:()=>t(i.original)})},header:"Actions",meta:{disableRowClick:!0}})]:e===y.D$.FIELD?[I.display({id:"name",cell:e=>{let{row:t}=e;return(0,r.jsx)(v.Z,{resource:t.original})},header:"Field"}),I.display({id:"status",cell:e=>{let{row:t}=e;return(0,r.jsx)(j.Z,{status:(0,x.u)(t.original)})},header:"Status"}),I.accessor(e=>e.data_type,{id:"dataType",cell:e=>(0,r.jsx)(C.Z,{type:e.getValue()}),header:"Data type"}),I.display({id:"category",cell:e=>{let{row:t}=e;return(0,r.jsx)(m.Z,{resource:t.original})},header:"Data categories",minSize:280,meta:{disableRowClick:!0}}),I.accessor(e=>e.description,{id:"description",cell:e=>(0,r.jsx)(o.G3,{value:e.getValue()}),header:"Description"}),I.accessor(e=>e.updated_at,{id:"lastUpdated",cell:e=>(0,r.jsx)(d.Cy,{time:e.getValue()}),header:"Updated"}),I.display({id:"actions",cell:e=>{let{row:i}=e;return(0,r.jsx)(h,{resource:i.original,onDetailClick:()=>t(i.original)})},header:"Actions",meta:{disableRowClick:!0}})]:i:i},_=i(57454),b=i(7940),k=i(80356);let w=[y.LL.ADDITION,y.LL.CLASSIFYING,y.LL.CLASSIFICATION_ADDITION,y.LL.CLASSIFICATION_QUEUED,y.LL.CLASSIFICATION_UPDATE,y.LL.MONITORED,y.LL.PROMOTING,y.LL.REMOVAL,y.LL.REMOVING],T={items:[],total:0,page:1,size:50,pages:1};var A=e=>{let{resourceUrn:t,onRowClick:i}=e,{PAGE_SIZES:d,pageSize:p,setPageSize:g,onPreviousPageClick:x,isPreviousPageDisabled:h,onNextPageClick:v,isNextPageDisabled:j,startRange:m,endRange:C,pageIndex:y,setTotalPages:I,resetPageIndexToDefault:A}=(0,o.oi)(),[R,S]=(0,l.useState)("");(0,l.useEffect)(()=>{A()},[t,A]);let{isFetching:Z,isLoading:D,data:E}=(0,f.z8)({staged_resource_urn:t,page:y,size:p,diff_status:w,search:R}),{items:P,total:N,pages:z}=(0,l.useMemo)(()=>null!=E?E:T,[E]);(0,l.useEffect)(()=>{I(z)},[z,I]);let[M,V]=(0,l.useState)(void 0),O=L((0,b.G)(P[0]),V),U=(0,n.b7)({getCoreRowModel:(0,a.sC)(),getGroupedRowModel:(0,a.qe)(),getExpandedRowModel:(0,a.rV)(),columns:O,manualPagination:!0,data:P,columnResizeMode:"onChange",getRowId:e=>e.urn});return D||Z?(0,r.jsx)(o.I4,{rowHeight:36,numRows:36}):(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(o.Q$,{children:(0,r.jsx)(s.kCb,{gap:6,align:"center",children:(0,r.jsx)(s.xuv,{flexShrink:0,children:(0,r.jsx)(_.M,{value:R,onChange:S})})})}),(0,r.jsx)(o.ZK,{tableInstance:U,emptyTableNotice:(0,r.jsx)(c.Z,{}),getRowIsClickable:e=>(0,k.Z)(e),onRowClick:i}),(0,r.jsx)(o.s8,{totalRows:N||0,pageSizes:d,setPageSize:g,onPreviousPageClick:x,isPreviousPageDisabled:h,onNextPageClick:v,isNextPageDisabled:j,startRange:m,endRange:C}),(0,r.jsx)(u.Z,{resource:M,onClose:()=>V(void 0)})]})}},94780:function(e,t,i){"use strict";i.d(t,{X5:function(){return l},pN:function(){return o},sv:function(){return a}});var r=i(24246),n=i(38458);let a=e=>e.split(".")[1],s=[(0,r.jsx)(n.PJP.S9g,{},"layers"),(0,r.jsx)(n.PJP.iA_,{},"table"),(0,r.jsx)(n.PJP.$4y,{style:{transform:"rotate(-90deg)"}},"field")],l=(e,t)=>{if(!e)return[];let i=e.split(".");if(i.length<2)return[];let l=i.splice(0,2).join("."),o=[];return i.reduce((e,r,n)=>{let a=n===i.length-1,c="".concat(e).concat(".").concat(r);return o.push({title:r,href:a?void 0:"".concat(t,"/").concat(l,"/").concat(c),icon:s[n]}),c},l),[{title:a(l),href:"".concat(t,"/").concat(l),icon:(0,r.jsx)(n.PJP.ehp,{})},...o]},o=(e,t)=>{if(!e)return[];let i=e.split(".");if(i.length<2)return[];let r=i.shift(),n=[];return i.reduce((e,r,a)=>{let l=a===i.length-1,o="".concat(e).concat(".").concat(r);return n.push({title:r,href:l?void 0:"".concat(t,"/").concat(o),icon:s[a]}),o},r),n}},57454:function(e,t,i){"use strict";i.d(t,{M:function(){return o}});var r=i(24246),n=i(66726),a=i.n(n),s=i(27378),l=i(86780);let o=e=>{let{value:t,onChange:i}=e,[n,o]=(0,s.useState)(t),c=a()(i,500),u=(0,s.useCallback)(e=>{o(e),c(e)},[]);return(0,r.jsx)(l.Z,{search:n,onChange:u,onClear:()=>{o(""),i("")}})}},79947:function(e,t,i){"use strict";var r=i(24246),n=i(38458);t.Z=e=>{let{type:t}=e;return(0,r.jsx)(n.kCb,{align:"center",h:"full",children:!!t&&(0,r.jsx)(n.j8w,{children:t})})}}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4481],{86780:function(e,t,n){var l=n(24246),o=n(38458);t.Z=e=>{let{search:t,onChange:n,withIcon:i,onClear:r,placeholder:s,...a}=e;return(0,l.jsxs)(o.vyj.Compact,{className:"w-96","data-testid":"search-bar",children:[(0,l.jsx)(o.uFc,{autoComplete:"off",value:t,onChange:e=>n(e.target.value),placeholder:s||"Search...",prefix:i?(0,l.jsx)(o.PTu,{boxSize:4}):void 0,...a}),r?(0,l.jsx)(o.wpx,{onClick:r,children:"Clear"}):null]})}},812:function(e,t,n){n.d(t,{D4:function(){return i.D4},MM:function(){return g},Ot:function(){return c},c6:function(){return o},cj:function(){return h},e$:function(){return s},fn:function(){return a},iC:function(){return x},nU:function(){return u},tB:function(){return d}});var l,o,i=n(19043);let r="An unexpected error occurred. Please try again.",s=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:r;if((0,i.Bw)(e)){if((0,i.hE)(e.data))return e.data.detail;if((0,i.cz)(e.data)){var n;let t=null===(n=e.data.detail)||void 0===n?void 0:n[0];return"".concat(null==t?void 0:t.msg,": ").concat(null==t?void 0:t.loc)}if(409===e.status&&(0,i.Dy)(e.data)||404===e.status&&(0,i.XD)(e.data))return"".concat(e.data.detail.error," (").concat(e.data.detail.fides_key,")")}return t};function a(e){return"object"==typeof e&&null!=e&&"status"in e}function c(e){return"object"==typeof e&&null!=e&&"data"in e&&"string"==typeof e.data.detail}function d(e){return"object"==typeof e&&null!=e&&"data"in e&&Array.isArray(e.data.detail)}let u=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{status:500,message:r};if((0,i.oK)(e))return{status:e.originalStatus,message:e.data};if((0,i.Bw)(e)){let{status:n}=e;return{status:n,message:s(e,t.message)}}return t},g=e=>Object.entries(e).map(e=>({value:e[1],label:e[1]}));(l=o||(o={})).GVL="gvl",l.AC="gacp",l.COMPASS="compass";let x={gvl:{label:"GVL",fullName:"Global Vendor List"},gacp:{label:"AC",fullName:"Google Additional Consent List"},compass:{label:"",fullName:""}},h=e=>{let t=e.split(".")[0];return"gacp"===t?"gacp":"gvl"===t?"gvl":"compass"}},71795:function(e,t,n){n.d(t,{_:function(){return o}});var l=n(27378);function o(e,t){let[n,o]=(0,l.useState)(()=>{if(!e)return t;try{let n=window.localStorage.getItem(e);return n?JSON.parse(n):t}catch(e){return console.error(e),t}});return[n,t=>{try{let l=t instanceof Function?t(n):t;o(l),e&&window.localStorage.setItem(e,JSON.stringify(l))}catch(e){console.error(e)}}]}},58452:function(e,t,n){var l=n(24246),o=n(38458);t.Z=e=>{let{isOpen:t,onClose:n,onConfirm:i,onCancel:r,title:s,message:a,cancelButtonText:c,continueButtonText:d,isLoading:u,returnFocusOnClose:g,isCentered:x,testId:h="confirmation-modal",icon:m}=e;return(0,l.jsxs)(o.u_l,{isOpen:t,onClose:n,size:"lg",returnFocusOnClose:null==g||g,isCentered:x,children:[(0,l.jsx)(o.ZAr,{}),(0,l.jsxs)(o.hzk,{textAlign:"center",p:6,"data-testid":h,children:[m?(0,l.jsx)(o.M5Y,{mb:2,children:m}):null,s?(0,l.jsx)(o.xBx,{fontWeight:"medium",pb:0,children:s}):null,a?(0,l.jsx)(o.fef,{children:a}):null,(0,l.jsx)(o.mzw,{children:(0,l.jsxs)(o.MIq,{columns:2,width:"100%",children:[(0,l.jsx)(o.wpx,{onClick:()=>{r&&r(),n()},size:"large",className:"mr-3","data-testid":"cancel-btn",disabled:u,children:c||"Cancel"}),(0,l.jsx)(o.wpx,{type:"primary",size:"large",onClick:i,"data-testid":"continue-btn",loading:u,children:d||"Continue"})]})})]})]})}},42904:function(e,t,n){n.d(t,{W3:function(){return r},bX:function(){return s},oi:function(){return a},s8:function(){return c}});var l=n(24246),o=n(38458),i=n(27378);let r=[25,50,100],s=e=>{let t=e.getFilteredRowModel().rows.length,{pageIndex:n}=e.getState().pagination,{pageSize:l}=e.getState().pagination,o=e.previousPage,i=!e.getCanPreviousPage(),r=e.nextPage,s=!e.getCanNextPage(),{setPageSize:a}=e;return{totalRows:t,onPreviousPageClick:o,isPreviousPageDisabled:i,onNextPageClick:r,isNextPageDisabled:s,setPageSize:a,startRange:n*l==0?1:n*l,endRange:n*l+l}},a=()=>{let[e,t]=(0,i.useState)(r[0]),[n,l]=(0,i.useState)(1),[o,s]=(0,i.useState)(1),a=(0,i.useCallback)(()=>{l(e=>e-1)},[l]),c=(0,i.useMemo)(()=>1===n,[n]),d=(0,i.useCallback)(()=>{l(e=>e+1)},[l]),u=(0,i.useMemo)(()=>!!o&&(n===o||o<2),[n,o]),g=(n-1)*e==0?1:(n-1)*e,x=(n-1)*e+e,h=(0,i.useCallback)(()=>{l(1)},[]);return{onPreviousPageClick:a,isPreviousPageDisabled:c,onNextPageClick:d,isNextPageDisabled:u,pageSize:e,setPageSize:e=>{t(e),h()},PAGE_SIZES:r,startRange:g,endRange:x,pageIndex:n,resetPageIndexToDefault:h,setTotalPages:s}},c=e=>{let{pageSizes:t,totalRows:n,onPreviousPageClick:i,isPreviousPageDisabled:r,onNextPageClick:s,isNextPageDisabled:a,setPageSize:c,startRange:d,endRange:u}=e;return(0,l.jsxs)(o.Ugi,{ml:1,mt:3,mb:1,children:[(0,l.jsxs)(o.v2r,{children:[(0,l.jsx)(o.j2t,{as:o.wpx,size:"small","data-testid":"pagination-btn",children:(0,l.jsxs)(o.xvT,{fontSize:"xs",lineHeight:4,fontWeight:"semibold",userSelect:"none",style:{fontVariantNumeric:"tabular-nums"},children:[d.toLocaleString("en"),"-",u<=n?u.toLocaleString("en"):n.toLocaleString("en")," ","of ",n.toLocaleString("en")]})}),(0,l.jsx)(o.qyq,{minWidth:"0",children:t.map(e=>(0,l.jsxs)(o.sNh,{onClick:()=>{c(e)},"data-testid":"pageSize-".concat(e),fontSize:"xs",children:[e," per view"]},e))})]}),(0,l.jsx)(o.wpx,{icon:(0,l.jsx)(o.wyc,{}),size:"small","aria-label":"previous page",onClick:i,disabled:r}),(0,l.jsx)(o.wpx,{icon:(0,l.jsx)(o.XCv,{}),size:"small","aria-label":"next page",onClick:s,disabled:a})]})}},72625:function(e,t,n){n.d(t,{A4:function(){return m},CI:function(){return p},Cy:function(){return x},G3:function(){return g},Hm:function(){return C},Rr:function(){return b},S1:function(){return w},WP:function(){return v},k:function(){return j},mb:function(){return f}});var l=n(24246),o=n(7195),i=n(38458),r=n(34090),s=n(27378),a=n(812),c=n(58452),d=n(46628),u=n(16394);let g=e=>{var t,n;let{value:o,cellProps:r,...s}=e,a=!!(null==r?void 0:null===(t=r.cell.column.columnDef.meta)||void 0===t?void 0:t.showHeaderMenu)&&!!(null==r?void 0:null===(n=r.cellState)||void 0===n?void 0:n.isExpanded);return(0,l.jsx)(i.xvT,{fontSize:"xs",lineHeight:4,py:1.5,fontWeight:"normal",textOverflow:"ellipsis",overflow:a?void 0:"hidden",whiteSpace:a?"normal":void 0,title:a&&o?void 0:null==o?void 0:o.toString(),...s,children:null!=o?o.toString():o})},x=e=>{let{time:t}=e;if(!t)return(0,l.jsx)(g,{value:"N/A"});let n=(0,o.B)(new Date(t),new Date,{addSuffix:!0}),r=(0,u.p6)(new Date(t));return(0,l.jsx)(i.kCb,{alignItems:"center",height:"100%",children:(0,l.jsx)(i.ua7,{label:r,hasArrow:!0,children:(0,l.jsx)(i.xvT,{fontSize:"xs",lineHeight:4,fontWeight:"normal",overflow:"hidden",textOverflow:"ellipsis",children:(0,u.G8)(n)})})})},h=e=>{let{children:t,...n}=e;return(0,l.jsx)(i.kCb,{alignItems:"center",height:"100%",mr:2,...n,children:t})},m=e=>{let{value:t,suffix:n,...o}=e;return(0,l.jsx)(h,{children:(0,l.jsxs)(i.j8w,{...o,children:[t,n]})})},p=e=>{let{count:t,singSuffix:n,plSuffix:o,...r}=e,s=null;return s=1===t?(0,l.jsxs)(i.j8w,{...r,children:[t,n?" ".concat(n):null]}):(0,l.jsxs)(i.j8w,{...r,children:[t,o?" ".concat(o):null]}),(0,l.jsx)(h,{children:s})},f=e=>{let{values:t,cellProps:n,...o}=e,{isExpanded:r,isWrapped:a,version:c}=(null==n?void 0:n.cellState)||{},[d,u]=(0,s.useState)(!r),[g,x]=(0,s.useState)(!!a),[h,m]=(0,s.useState)(r?t:null==t?void 0:t.slice(0,2));return(0,s.useEffect)(()=>{u(!r)},[r,c]),(0,s.useEffect)(()=>{x(!!a)},[a]),(0,s.useEffect)(()=>{(null==t?void 0:t.length)&&m(d?t.slice(0,2):t)},[d,t]),(0,s.useMemo)(()=>(null==h?void 0:h.length)?(0,l.jsxs)(i.kCb,{alignItems:d?"center":"flex-start",flexDirection:d||g?"row":"column",flexWrap:g?"wrap":"nowrap",gap:1.5,pt:2,pb:2,onClick:e=>{d||(e.stopPropagation(),u(!0))},cursor:d?void 0:"pointer",children:[h.map(e=>(0,l.jsx)(i.j8w,{color:"white","data-testid":e.key,...o,children:e.label},e.key)),d&&t&&t.length>2&&(0,l.jsxs)(i.wpx,{type:"link",size:"small",onClick:()=>u(!1),className:"text-xs font-normal",children:["+",t.length-2," more"]})]}):null,[h,d,g,t,o])},v=e=>{let{value:t,suffix:n,cellState:o,ignoreZero:r,tagProps:s}=e,a=null;return t?(a=Array.isArray(t)?1===t.length?(0,l.jsx)(i.j8w,{...s,children:t}):(null==o?void 0:o.isExpanded)&&t.length>0?t.map((e,t)=>(0,l.jsx)(i.j8w,{...s,children:e},(null==e?void 0:e.toString())||t)):(0,l.jsxs)(i.j8w,{...s,children:[t.length,n?" ".concat(n):null]}):(0,l.jsx)(i.j8w,{...s,children:t}),(0,l.jsx)(i.kCb,{alignItems:"center",height:"100%",gap:0,overflowX:"hidden",children:a})):r?null:(0,l.jsxs)(i.j8w,{...s,children:["0",n?" ".concat(n):""]})},j=e=>{let{dataTestId:t,...n}=e;return(0,l.jsx)(i.kCb,{alignItems:"center",justifyContent:"center",onClick:e=>e.stopPropagation(),children:(0,l.jsx)(i.XZJ,{"data-testid":t||void 0,...n})})},b=e=>{let{value:t,...n}=e;return(0,l.jsx)(i.xvT,{fontSize:"xs",lineHeight:9,fontWeight:"medium",flex:1,...n,children:t})},C=e=>{let{value:t,defaultValue:n,isEditing:o,...s}=e,a=s.column.columnDef.id||"",[c]=(0,r.U$)(a),{submitForm:d}=(0,r.u6)();return o?(0,l.jsx)(i.uFc,{...c,maxLength:80,placeholder:n,"aria-label":"Edit column name",size:"small","data-testid":"column-".concat(a,"-input"),onPressEnter:d}):(0,l.jsx)(b,{value:t,...s})},w=e=>{let{enabled:t,onToggle:n,title:o,message:r,isDisabled:s,...u}=e,g=(0,i.qY0)(),x=(0,i.pmc)(),h=async e=>{let{enable:t}=e,l=await n(t);(0,a.D4)(l)&&x((0,d.Vo)((0,a.e$)(l.error)))},m=async e=>{e?await h({enable:!0}):g.onOpen()};return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(i.rAg,{checked:t,onChange:m,disabled:s,"data-testid":"toggle-switch",...u}),(0,l.jsx)(c.Z,{isOpen:g.isOpen,onClose:g.onClose,onConfirm:()=>{h({enable:!1}),g.onClose()},title:o,message:(0,l.jsx)(i.xvT,{color:"gray.500",children:r}),continueButtonText:"Confirm",isCentered:!0,icon:(0,l.jsx)(i.aNP,{color:"orange.100"})})]})}},14481:function(e,t,n){n.d(t,{A4:function(){return l.A4},CI:function(){return l.CI},F1:function(){return p},G3:function(){return l.G3},Rr:function(){return l.Rr},vr:function(){return W},ZK:function(){return R},HO:function(){return A},WP:function(){return l.WP},k:function(){return l.k},W3:function(){return D.W3},s8:function(){return D.s8},AA:function(){return N},Q$:function(){return O},I4:function(){return _},bX:function(){return D.bX},oi:function(){return D.oi}});var l=n(72625),o=n(24246),i=n(38458),r=n(27378),s=n(43862),a=n(65201),c=n(75383),d=n(52202);let u="DraggableColumnListItem",g=e=>{let{id:t,index:n,moveColumn:l,setColumnVisible:o}=e,i=(0,r.useRef)(null),[{handlerId:s},a]=(0,c.L)({accept:u,collect:e=>({handlerId:e.getHandlerId()}),hover(e,t){var o;if(!i.current)return;let r=e.index;if(r===n)return;let s=null===(o=i.current)||void 0===o?void 0:o.getBoundingClientRect(),a=(s.bottom-s.top)/2,c=t.getClientOffset().y-s.top;r<n&&c<a||r>n&&c>a||(l(r,n),Object.assign(e,{index:n}))}}),[{isDragging:g},x,h]=(0,d.c)({type:u,item:()=>({id:t,index:n}),collect:e=>({isDragging:!!e.isDragging()})});return x(a(i)),{isDragging:g,ref:i,handlerId:s,preview:h,handleColumnVisibleToggle:e=>{o(n,e)}}},x=e=>{let{id:t,index:n,isVisible:l,moveColumn:r,setColumnVisible:s,text:a}=e,{ref:c,isDragging:d,handlerId:u,preview:x,handleColumnVisibleToggle:h}=g({index:n,id:t,moveColumn:r,setColumnVisible:s});return(0,o.jsxs)(i.HCh,{alignItems:"center",display:"flex",minWidth:0,ref:e=>{x(e)},"data-handler-id":u,opacity:d?.2:1,"data-testid":"column-list-item-".concat(t),children:[(0,o.jsx)(i.xuv,{ref:c,cursor:d?"grabbing":"grab","data-testid":"column-dragger-".concat(t),children:(0,o.jsx)(i.DE2,{as:i.zGR,color:"gray.300",flexShrink:0,height:"20px",width:"20px",_hover:{color:"gray.700"}})}),(0,o.jsxs)(i.NIc,{alignItems:"center",display:"flex",minWidth:0,title:a,children:[(0,o.jsx)(i.lXp,{color:"gray.700",fontSize:"normal",fontWeight:400,htmlFor:"".concat(t),mb:"0",minWidth:0,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",flexGrow:1,children:a}),(0,o.jsx)(i.rAg,{id:"".concat(t),checked:l,onChange:h})]})]})},h=e=>{let{columns:t}=e,[n,l]=(0,r.useState)(null!=t?t:[]);return(0,r.useEffect)(()=>{l((null==t?void 0:t.map(e=>({...e})))||[])},[t]),{columns:n,moveColumn:(0,r.useCallback)((e,t)=>{l(n=>(0,a.ZP)(n,n=>{let l=n[e];n.splice(e,1),n.splice(t,0,l)}))},[]),setColumnVisible:(0,r.useCallback)((e,t)=>{l(n=>(0,a.ZP)(n,n=>{n[e]&&(n[e].isVisible=t)}))},[])}},m=e=>{let{columns:t,columnEditor:n}=e;return(0,o.jsx)(i.aVo,{spacing:4,children:t.map((e,t)=>(0,o.jsx)(x,{id:e.id,index:t,isVisible:e.isVisible,moveColumn:n.moveColumn,setColumnVisible:n.setColumnVisible,text:e.displayText},e.id))})},p=e=>{let{isOpen:t,onClose:n,headerText:l,tableInstance:a,columnNameMap:c,prefixColumns:d,savedCustomReportId:u,onColumnOrderChange:g,onColumnVisibilityChange:x}=e,p=h({columns:(0,r.useMemo)(()=>a.getAllColumns().filter(e=>!d.includes(e.id)).map(e=>{var t;return{id:e.id,displayText:(0,s.AH)({columnNameMap:c,columnId:e.id}),isVisible:null!==(t=a.getState().columnVisibility[e.id])&&void 0!==t?t:e.getIsVisible()}}).sort((e,t)=>{let{columnOrder:n}=a.getState(),l=n.indexOf(e.id),o=n.indexOf(t.id);return -1===l&&-1===o?0:-1===l?1:-1===o?-1:l-o}),[u,c])}),f=(0,r.useCallback)(()=>{let e=[...d,...p.columns.map(e=>e.id)],t=p.columns.reduce((e,t)=>(e[t.id]=t.isVisible,e),{});g(e),x(t),n()},[n,d,p.columns,g,x]);return(0,o.jsxs)(i.u_l,{isOpen:t,onClose:n,isCentered:!0,size:"2xl",children:[(0,o.jsx)(i.ZAr,{}),(0,o.jsxs)(i.hzk,{children:[(0,o.jsx)(i.xBx,{pb:0,children:l}),(0,o.jsx)(i.olH,{"data-testid":"column-settings-close-button"}),(0,o.jsxs)(i.fef,{children:[(0,o.jsx)(i.xvT,{fontSize:"sm",color:"gray.500",mb:2,children:"You can toggle columns on and off to hide or show them in the table. Additionally, you can drag columns up or down to change the order"}),(0,o.jsxs)(i.mQc,{colorScheme:"complimentary",children:[(0,o.jsx)(i.tdY,{children:(0,o.jsx)(i.OK9,{color:"complimentary.500",children:"Columns"})}),(0,o.jsx)(i.nPR,{children:(0,o.jsx)(i.x45,{p:0,pt:4,maxHeight:"270px",overflowY:"scroll",children:(0,o.jsx)(m,{columns:p.columns,columnEditor:p})})})]})]}),(0,o.jsx)(i.mzw,{children:(0,o.jsxs)(i.xuv,{display:"flex",justifyContent:"space-between",width:"100%",children:[(0,o.jsx)(i.wpx,{onClick:n,className:"mr-3 grow",children:"Cancel"}),(0,o.jsx)(i.wpx,{onClick:f,type:"primary",className:"grow","data-testid":"save-button",children:"Save"})]})})]})]})};var f=n(59003),v=n(71795),j=n(14048);let b=e=>{var t,n,l,r,a,c,d,u;let g,{cell:x,onRowClick:h,cellState:m}=e,p=x.getContext().table.getState().grouping.length>0,v=p?x.getContext().table.getState().grouping[0]:void 0,j=x.column.id===v,b=!1,C=!1,w=!1,S=x.getContext().table.getRowModel().rows.filter(e=>!e.id.includes(":")),y=S[0].id===x.row.id,k=S[S.length-1].id===x.row.id;if(x.getValue()&&j){let e=x.getContext().table.getRow("".concat(x.column.id,":").concat(x.getValue()));w=1===e.subRows.length,b=e.subRows[0].id===x.row.id,C=e.subRows[e.subRows.length-1].id===x.row.id}let z=(!j||b)&&!!(null===(t=x.column.columnDef.meta)||void 0===t?void 0:t.onCellClick);return(null===(n=x.column.columnDef.meta)||void 0===n?void 0:n.disableRowClick)||!h?z&&(g=()=>{var e,t;null===(t=x.column.columnDef.meta)||void 0===t||null===(e=t.onCellClick)||void 0===e||e.call(t,x.row.original)}):g=e=>{h(x.row.original,e)},(0,o.jsx)(i.Td,{width:(null===(l=x.column.columnDef.meta)||void 0===l?void 0:l.width)?x.column.columnDef.meta.width:"unset",overflow:(null===(r=x.column.columnDef.meta)||void 0===r?void 0:r.overflow)?null===(a=x.column.columnDef.meta)||void 0===a?void 0:a.overflow:"auto",borderBottomWidth:k||j?"0px":"1px",borderBottomColor:"gray.200",borderRightWidth:"1px",borderRightColor:"gray.200",sx:{article:{borderTopWidth:"2x",borderTopColor:"red"},...(0,s.J9)("select"===x.column.id||(null===(c=x.column.columnDef.meta)||void 0===c?void 0:c.noPadding)),maxWidth:"calc(var(--col-".concat(x.column.id,"-size) * 1px)"),minWidth:"calc(var(--col-".concat(x.column.id,"-size) * 1px)"),"&:hover":{backgroundColor:z?"gray.50":void 0,cursor:z?"pointer":void 0}},_hover:!h||(null===(d=x.column.columnDef.meta)||void 0===d?void 0:d.disableRowClick)?void 0:{cursor:"pointer"},_first:{borderBottomWidth:(p||k)&&(!C||y||k)&&(!b||!w||k)?"0px":"1px"},_last:{borderRightWidth:0},height:"inherit",onClick:g,"data-testid":"row-".concat(x.row.id,"-col-").concat(x.column.id),...null===(u=x.column.columnDef.meta)||void 0===u?void 0:u.cellProps,children:!x.getIsPlaceholder()||b?(0,f.ie)(x.column.columnDef.cell,{...x.getContext(),cellState:m}):null})},C=e=>{let{row:t,renderRowTooltipLabel:n,onRowClick:l,expandedColumns:r,wrappedColumns:a}=e;if(t.getIsGrouped())return null;let c=(0,o.jsx)(i.Tr,{height:"36px",_hover:l?{backgroundColor:"gray.50"}:void 0,"data-testid":"row-".concat(t.id),backgroundColor:t.getCanSelect()?void 0:"gray.50",children:t.getVisibleCells().map(e=>{let t=(0,s.tt)(e.column.id,r),n={isExpanded:!!t&&t>0,isWrapped:!!a.find(t=>t===e.column.id),version:t};return(0,o.jsx)(b,{cell:e,onRowClick:l,cellState:n},e.id)})},t.id);return n?(0,o.jsx)(i.ua7,{label:n?n(t):void 0,hasArrow:!0,placement:"top",children:c}):c},w={asc:{icon:(0,o.jsx)(i.Hf3,{}),title:"Sort ascending"},desc:{icon:(0,o.jsx)(i.veu,{}),title:"Sort descending"}},S={height:i.rSc.space[9],width:"100%",textAlign:"start","&:focus-visible":{backgroundColor:"gray.100"},"&:focus":{outline:"none"}},y=e=>{var t,n,l,r,a,c,d,u;let{header:g,onGroupAll:x,onExpandAll:h,onWrapToggle:m,isExpandAll:p,isWrapped:v,enableSorting:b}=e,{meta:C}=g.column.columnDef;return(null==C?void 0:C.showHeaderMenu)?(0,o.jsxs)(i.v2r,{placement:"bottom-end",closeOnSelect:!C.showHeaderMenuWrapOption,children:[(0,o.jsx)(i.j2t,{as:i.zxk,rightIcon:(0,o.jsxs)(i.Ugi,{children:[null===(t=w[g.column.getIsSorted()])||void 0===t?void 0:t.icon,(0,o.jsx)(i.nXP,{transform:"rotate(90deg)"})]}),title:"Column options",variant:"ghost",size:"sm",sx:{...(0,s.J9)("select"===g.column.id),...S},"data-testid":"".concat(g.id,"-header-menu"),children:(0,f.ie)(g.column.columnDef.header,g.getContext())}),(0,o.jsx)(i.h_i,{children:(0,o.jsxs)(i.qyq,{fontSize:"xs",minW:"0",w:"158px","data-testid":"".concat(g.id,"-header-menu-list"),children:[(0,o.jsxs)(i.sNh,{gap:2,color:p?"complimentary.500":void 0,onClick:()=>h(g.id),children:[(0,o.jsx)(j.oq,{})," Expand all"]}),(0,o.jsxs)(i.sNh,{gap:2,color:p?void 0:"complimentary.500",onClick:()=>x(g.id),children:[(0,o.jsx)(j.Kc,{})," Collapse all"]}),b&&g.column.getCanSort()&&(0,o.jsxs)(i.sNh,{gap:2,onClick:g.column.getToggleSortingHandler(),children:[null!==(d=null===(n=w[g.column.getNextSortingOrder()])||void 0===n?void 0:n.icon)&&void 0!==d?d:(0,o.jsx)(i.Dbz,{}),null!==(u=null===(l=w[g.column.getNextSortingOrder()])||void 0===l?void 0:l.title)&&void 0!==u?u:"Clear sort"]}),C.showHeaderMenuWrapOption&&(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(i.RaW,{}),(0,o.jsx)(i.xuv,{px:3,children:(0,o.jsx)(i.XZJ,{size:"sm",isChecked:v,onChange:()=>m(g.id,!v),colorScheme:"complimentary",children:(0,o.jsx)(i.xvT,{fontSize:"xs",children:"Wrap results"})})})]})]})})]}):b&&g.column.getCanSort()?(0,o.jsx)(i.zxk,{"data-testid":"".concat(g.id,"-header-sort"),onClick:g.column.getToggleSortingHandler(),rightIcon:null===(r=w[g.column.getIsSorted()])||void 0===r?void 0:r.icon,title:null!==(c=null===(a=w[g.column.getNextSortingOrder()])||void 0===a?void 0:a.title)&&void 0!==c?c:"Clear sort",variant:"ghost",size:"sm",sx:{...(0,s.J9)("select"===g.column.id),...S},children:(0,f.ie)(g.column.columnDef.header,g.getContext())}):(0,o.jsx)(i.xuv,{"data-testid":"".concat(g.id,"-header"),sx:{...(0,s.J9)("select"===g.column.id)},fontSize:"xs",lineHeight:9,fontWeight:"medium",children:(0,f.ie)(g.column.columnDef.header,g.getContext())})},k=e=>{var t;let{tableInstance:n,rowActionBar:l,onRowClick:r,getRowIsClickable:s,renderRowTooltipLabel:a,expandedColumns:c,wrappedColumns:d,emptyTableNotice:u}=e,g=e=>s?s(e)?r:void 0:r;return(0,o.jsxs)(i.p3B,{"data-testid":"fidesTable-body",children:[l,n.getRowModel().rows.map(e=>(0,o.jsx)(C,{row:e,onRowClick:g(e.original),renderRowTooltipLabel:a,expandedColumns:c,wrappedColumns:d},e.id)),0===n.getRowModel().rows.length&&!(null===(t=n.getState())||void 0===t?void 0:t.globalFilter)&&u&&(0,o.jsx)(i.Tr,{children:(0,o.jsx)(i.Td,{colSpan:100,children:u})})]})},z=r.memo(k,(e,t)=>e.tableInstance.options.data===t.tableInstance.options.data),R=e=>{let{tableInstance:t,rowActionBar:n,footer:l,onRowClick:a,getRowIsClickable:c,renderRowTooltipLabel:d,emptyTableNotice:u,overflow:g="auto",onSort:x,enableSorting:h=!!x,columnExpandStorageKey:m,columnWrapStorageKey:p}=e,[f,j]=(0,r.useState)(1),[b,C]=(0,v._)(m,[]),[w,S]=(0,v._)(p,[]),R=e=>{C([...b.filter(t=>t.split(s.mb)[0]!==e),"".concat(e).concat(s.mb).concat(f)]),j(f+1)},W=e=>{C([...b.filter(t=>t.split(s.mb)[0]!==e),"".concat(e).concat(s.mb).concat(-1*f)]),j(f+1)},I=(e,t)=>{S(t?[...w,e]:w.filter(t=>t!==e))},T=(0,r.useMemo)(()=>{let e=t.getFlatHeaders(),n={};for(let i=0;i<e.length;i+=1){var l,o;let r=e[i],s=!!(null===(l=t.getState().columnSizing)||void 0===l?void 0:l[r.id]),a="auto"===(null===(o=r.column.columnDef.meta)||void 0===o?void 0:o.width);!s&&a?setTimeout(()=>{var e;let l=null===(e=document.getElementById("column-".concat(r.id)))||void 0===e?void 0:e.offsetWidth;l&&(t.setColumnSizing(e=>({...e,[r.id]:l})),n["--header-".concat(r.id,"-size")]=l,n["--col-".concat(r.column.id,"-size")]=l)}):(n["--header-".concat(r.id,"-size")]=r.getSize(),n["--col-".concat(r.column.id,"-size")]=r.column.getSize())}return n},[t.getState().columnSizingInfo]);return(0,r.useEffect)(()=>{x&&x(t.getState().sorting[0])},[t.getState().sorting]),(0,o.jsx)(i.xJi,{"data-testid":"fidesTable",overflowY:g,overflowX:g,borderColor:"gray.200",borderBottomWidth:"1px",borderRightWidth:"1px",borderLeftWidth:"1px",children:(0,o.jsxs)(i.iA_,{variant:"unstyled",style:{borderCollapse:"separate",borderSpacing:0,...T,minWidth:"100%"},children:[(0,o.jsx)(i.hrZ,{position:"sticky",top:"0",height:"36px",zIndex:10,backgroundColor:"gray.50",children:t.getHeaderGroups().map(e=>(0,o.jsx)(i.Tr,{height:"inherit",children:e.headers.map(e=>{var t;let n=(0,s.tt)(e.id,b);return(0,o.jsxs)(i.Th,{borderColor:"gray.200",borderTopWidth:"1px",borderBottomWidth:"1px",borderRightWidth:"1px",_last:{borderRightWidth:0},colSpan:e.colSpan,"data-testid":"column-".concat(e.id),id:"column-".concat(e.id),sx:{padding:0,width:"calc(var(--header-".concat(e.id,"-size) * 1px)"),overflowX:"auto"},textTransform:"unset",position:"relative",_hover:{"& .resizer":{opacity:1}},...null===(t=e.column.columnDef.meta)||void 0===t?void 0:t.cellProps,children:[(0,o.jsx)(y,{header:e,onGroupAll:W,onExpandAll:R,onWrapToggle:I,isExpandAll:!!n&&n>0,isWrapped:!!w.find(t=>e.id===t),enableSorting:h}),e.column.getCanResize()?(0,o.jsx)(i.xuv,{onDoubleClick:()=>e.column.resetSize(),onMouseDown:e.getResizeHandler(),position:"absolute",height:"100%",top:"0",right:"0",width:"5px",cursor:"col-resize",userSelect:"none",className:"resizer",opacity:0,backgroundColor:e.column.getIsResizing()?"complimentary.500":"gray.200"}):null]},e.id)})},e.id))}),t.getState().columnSizingInfo.isResizingColumn?(0,o.jsx)(z,{tableInstance:t,rowActionBar:n,onRowClick:a,getRowIsClickable:c,renderRowTooltipLabel:d,expandedColumns:b,wrappedColumns:w,emptyTableNotice:u}):(0,o.jsx)(k,{tableInstance:t,rowActionBar:n,onRowClick:a,getRowIsClickable:c,renderRowTooltipLabel:d,expandedColumns:b,wrappedColumns:w,emptyTableNotice:u}),l]})})},W=e=>{let{totalColumns:t,children:n}=e;return(0,o.jsx)(i.$RU,{backgroundColor:"gray.50",children:(0,o.jsx)(i.Tr,{children:(0,o.jsx)(i.Td,{colSpan:t,px:4,py:2,borderTop:"1px solid",borderColor:"gray.200",children:n})})})};var I=n(86780),T=n(16394);let A=e=>{let{globalFilter:t,setGlobalFilter:n,placeholder:l,testid:s="global-text-filter"}=e,[a,c]=(0,r.useState)(t),d=(0,r.useMemo)(()=>(0,T.Ds)(n,200),[n]),u=(0,r.useCallback)(()=>{c(void 0),n(void 0)},[c,n]);return(0,r.useEffect)(()=>{a||u()},[a,u]),(0,o.jsx)(i.xuv,{maxWidth:"424px",width:"100%",children:(0,o.jsx)(I.Z,{onChange:e=>{c(e),d(e)},onClear:u,search:a||"",placeholder:l,"data-testid":s})})};var D=n(42904);let N=e=>{let{tableInstance:t,selectedRows:n,isOpen:l}=e;return l?(0,o.jsx)(i.Tr,{position:"sticky",zIndex:"10",top:"36px",backgroundColor:"neutral.100",height:"36px",p:0,boxShadow:"0px 4px 6px -1px rgba(0, 0, 0, 0.05)",children:(0,o.jsx)(i.Td,{borderWidth:"1px",borderColor:"gray.200",height:"inherit",pl:4,pr:2,py:0,colSpan:t.getAllColumns().length,children:(0,o.jsxs)(i.Ugi,{children:[(0,o.jsxs)(i.xvT,{"data-testid":"selected-row-count",fontSize:"xs",children:[n.toLocaleString("en")," row(s) selected."]}),t.getIsAllRowsSelected()?null:(0,o.jsxs)(i.wpx,{"data-testid":"select-all-rows-btn",onClick:()=>{t.toggleAllRowsSelected()},type:"link",size:"small",className:"text-xs font-normal text-black underline",children:["Select all ",t.getFilteredRowModel().rows.length," rows."]})]})})}):null},O=e=>{let{children:t,...n}=e;return(0,o.jsx)(i.Ugi,{justifyContent:"space-between",alignItems:"center",p:2,borderWidth:"1px",borderBottomWidth:"0px",borderColor:"gray.200",zIndex:11,...n,children:t})},_=e=>{let{rowHeight:t,numRows:n}=e,l=[];for(let e=0;e<n;e+=1)l.push((0,o.jsx)(i.OdW,{height:"".concat(t,"px")},e));return(0,o.jsx)(i.Kqy,{children:l})}},43862:function(e,t,n){n.d(t,{AH:function(){return c},J9:function(){return s},mb:function(){return r},tt:function(){return a}});var l=n(38458),o=n(98784),i=n.n(o);let r="::",s=e=>e?{padding:"0px"}:{paddingLeft:l.rSc.space[3],paddingRight:"calc(".concat(l.rSc.space[3]," - 5px)"),paddingTop:"0px",paddingBottom:"0px",borderRadius:"0px"},a=(e,t)=>{let n=t.find(t=>t.startsWith(e));return n?parseInt(n.split(r)[1],10):void 0},c=e=>{let{columnId:t,columnNameMap:n}=e;if(!t)return"";let l=t.replace(/^(system_|privacy_declaration_)/,""),o=i().upperFirst(l.replaceAll("_"," "));return(null==n?void 0:n[t])||o}},46628:function(e,t,n){n.d(t,{MA:function(){return s},Vo:function(){return c},t5:function(){return a}});var l=n(24246),o=n(38458);let i=e=>{let{children:t}=e;return(0,l.jsxs)(o.xvT,{"data-testid":"toast-success-msg",children:[(0,l.jsx)("strong",{children:"Success:"})," ",t]})},r=e=>{let{children:t}=e;return(0,l.jsxs)(o.xvT,{"data-testid":"toast-error-msg",children:[(0,l.jsx)("strong",{children:"Error:"})," ",t]})},s={variant:"subtle",position:"top",description:"",duration:5e3,status:"success",isClosable:!0},a=e=>{let t=(0,l.jsx)(i,{children:e});return{...s,description:t}},c=e=>{let t=(0,l.jsx)(r,{children:e});return{...s,description:t,status:"error"}}},19043:function(e,t,n){n.d(t,{Bw:function(){return r},D4:function(){return o},Dy:function(){return a},XD:function(){return c},cz:function(){return d},hE:function(){return s},oK:function(){return i}});var l=n(76649);let o=e=>"error"in e,i=e=>(0,l.Ln)({status:"string"},e)&&"PARSING_ERROR"===e.status,r=e=>(0,l.Ln)({status:"number",data:{}},e),s=e=>(0,l.Ln)({detail:"string"},e),a=e=>(0,l.Ln)({detail:{error:"string",resource_type:"string",fides_key:"string"}},e),c=e=>(0,l.Ln)({detail:{error:"string",resource_type:"string",fides_key:"string"}},e),d=e=>(0,l.Ln)({detail:[{loc:["string","number"],msg:"string",type:"string"}]},e)}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4723],{58754:function(e,a,t){var i=t(24246),n=t(38458),s=t(70788);a.Z=e=>{let{heading:a,breadcrumbItems:t,isSticky:r=!0,children:l,rightContent:o,style:d,...c}=e;return(0,i.jsxs)("div",{...c,style:r?{position:"sticky",top:"-24px",paddingTop:"24px",paddingBottom:"24px",paddingLeft:"40px",marginLeft:"-40px",paddingRight:"40px",marginRight:"-40px",marginTop:"-24px",left:0,zIndex:20,backgroundColor:"white",...d}:{paddingBottom:"24px",...d},children:[(0,i.jsxs)(n.jqI,{justify:"space-between",children:["string"==typeof a?(0,i.jsx)(n.X6q,{className:t||l?"pb-4":void 0,fontSize:"2xl","data-testid":"page-heading",children:a}):a,o&&(0,i.jsx)("div",{"data-testid":"page-header-right-content",children:o})]}),!!t&&(0,i.jsx)(s.m,{className:l?"pb-4":void 0,items:t,"data-testid":"page-breadcrumb"}),l]})}},97181:function(e,a,t){t.d(a,{d:function(){return d}});var i=t(24246),n=t(38458),s=t(34090),r=t(27378),l=t(91613),o=t(40324);let d=e=>{let{name:a,label:t,labelProps:d,tooltip:c,isRequired:u,layout:p="inline",...m}=e,[v,g,{setValue:h}]=(0,s.U$)(a),x=!!(g.touched&&g.error),[f,y]=(0,r.useState)("");v.value||"tags"!==m.mode&&"multiple"!==m.mode||(v.value=[]),"tags"===m.mode&&"string"==typeof v.value&&(v.value=[v.value]);let j="tags"===m.mode?(e,a)=>e?e.value!==f||v.value.includes(f)?m.optionRender?m.optionRender(e,a):e.label:'Create "'.concat(f,'"'):void 0:m.optionRender||void 0,_=e=>{y(e),m.onSearch&&m.onSearch(e)},b=(e,a)=>{h(e),m.onChange&&m.onChange(e,a)};return"inline"===p?(0,i.jsx)(n.NIc,{isInvalid:x,isRequired:u,children:(0,i.jsxs)(n.rjZ,{templateColumns:t?"1fr 3fr":"1fr",children:[t?(0,i.jsx)(o.__,{htmlFor:m.id||a,...d,children:t}):null,(0,i.jsxs)(n.jqI,{align:"center",children:[(0,i.jsxs)(n.jqI,{vertical:!0,flex:1,className:"mr-2",children:[(0,i.jsx)(n.WPr,{...v,id:m.id||a,"data-testid":"controlled-select-".concat(v.name),...m,optionRender:j,onSearch:"tags"===m.mode?_:void 0,onChange:b,value:v.value||void 0}),(0,i.jsx)(o.Bc,{isInvalid:x,message:g.error,fieldName:v.name})]}),c?(0,i.jsx)(l.Z,{label:c}):null]})]})}):(0,i.jsx)(n.NIc,{isInvalid:x,isRequired:u,children:(0,i.jsxs)(n.gCW,{alignItems:"start",children:[(0,i.jsxs)(n.jqI,{align:"center",children:[t?(0,i.jsx)(o.__,{htmlFor:m.id||a,fontSize:"xs",my:0,mr:1,...d,children:t}):null,c?(0,i.jsx)(l.Z,{label:c}):null]}),(0,i.jsx)(n.WPr,{...v,id:m.id||a,"data-testid":"controlled-select-".concat(v.name),...m,optionRender:j,onSearch:"tags"===m.mode?_:void 0,onChange:b,value:v.value||void 0}),(0,i.jsx)(o.Bc,{isInvalid:x,message:g.error,fieldName:v.name})]})})}},8133:function(e,a,t){var i=t(24246),n=t(38458);a.Z=e=>{let{title:a,children:t,isOpen:s,onClose:r,...l}=e;return(0,i.jsxs)(n.u_l,{isOpen:s,onClose:r,isCentered:!0,scrollBehavior:"inside",size:"xl",id:"add-modal",...l,children:[(0,i.jsx)(n.ZAr,{}),(0,i.jsxs)(n.hzk,{textAlign:"left",p:0,"data-testid":"add-modal-content",children:[(0,i.jsx)(n.xBx,{p:0,children:(0,i.jsx)(n.xuv,{backgroundColor:"gray.50",px:6,py:4,border:"1px",borderColor:"gray.200",borderTopRadius:6,display:"flex",justifyContent:"space-between",alignItems:"center",children:(0,i.jsx)(n.X6q,{as:"h3",size:"sm",children:a})})}),(0,i.jsx)(n.fef,{pb:4,overflow:"auto",children:t})]})]})}},70788:function(e,a,t){t.d(a,{m:function(){return d}});var i=t(24246),n=t(38458),s=t(79894),r=t.n(s),l=t(27378);let{Text:o}=n.AntTypography,d=e=>{let{items:a,...t}=e,s=(0,l.useMemo)(()=>null==a?void 0:a.map((e,t)=>{let s=t===a.length-1,l={...e},d=l.onClick&&!l.href;return("string"==typeof l.title&&(l.title=(0,i.jsx)(o,{style:{color:"inherit",maxWidth:s?void 0:400},ellipsis:!s,children:l.title})),d)?l.title=(0,i.jsx)(n.wpx,{type:"text",size:"small",icon:l.icon,onClick:l.onClick,className:"ant-breadcrumb-link -mt-px px-1 text-inherit",children:l.title}):(l.icon&&(l.title=(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("span",{className:"anticon align-text-bottom",children:l.icon}),l.title]})),l.href&&l.title&&(l.title=(0,i.jsx)(r(),{href:l.href,className:"ant-breadcrumb-link",children:l.title}),delete l.href)),l}),[a]);return(0,i.jsx)(n.zrq,{items:s,...t})}},31435:function(e,a,t){t.d(a,{Z:function(){return I}});var i=t(24246),n=t(38458),s=t(34090),r=t(27378),l=t(59389),o=t(16134),d=t(25980),c=t(40324),u=t(33335),p=t(32885),m=t(1315),v=t(57865),g=t(72774),h=t(36345),x=t(812),f=t(8133),y=t(46628);let j={name:"",consent_use:"",data_use:"",data_categories:["user"],cookieNames:[],cookies:[]},_=[{label:"Analytics",value:"analytics",description:"Provides analytics for activities such as system and advertising performance reporting, insights and fraud detection."},{label:"Essential",value:"essential",description:"Operates the service or product, including legal obligations, support and basic system operations."},{label:"Functional",value:"functional",description:"Used for specific, necessary, and legitimate purposes."},{label:"Marketing",value:"marketing",description:"Enables marketing, promotion, advertising and sales activities for the product, service, application or system."}],b=e=>_.some(a=>a.value===e.split(".")[0]);var k=t(28079),C=t(69525),w=t(97181);let N=e=>{let{index:a,disabled:t}=e;(0,k.fd)();let r=(0,o.C)(k.oW),{values:l}=(0,s.u6)(),d=r.filter(e=>e.value.split(".")[0]===l.privacy_declarations[a].consent_use);return(0,i.jsxs)(n.gCW,{width:"100%",borderRadius:"4px",border:"1px solid",borderColor:"gray.200",spacing:4,p:4,children:[(0,i.jsx)(w.d,{label:"Consent category",tooltip:"What is the system using the data for. For example, is it for third party advertising or perhaps simply providing system operations.",name:"privacy_declarations.".concat(a,".consent_use"),options:_,layout:"stacked",isRequired:!0,disabled:t}),(0,i.jsx)(w.d,{allowClear:!0,label:"Detailed consent category (optional)",tooltip:"Select a more specific consent category",name:"privacy_declarations.".concat(a,".data_use"),options:d,layout:"stacked",disabled:!l.privacy_declarations[a].consent_use||t}),(0,i.jsx)(w.d,{mode:"tags",label:"Cookie names",name:"privacy_declarations.".concat(a,".cookieNames"),options:[],layout:"stacked",disabled:t,className:"w-full"})]})};var R=e=>{var a,t;let{showSuggestions:l,isCreate:d,disabled:c}=e,{values:u,setFieldValue:m}=(0,s.u6)(),{vendor_id:v}=u,{isLoading:g}=(0,p.Wp)({vendor_id:v},{skip:!l||null==v}),h=(0,o.C)((0,p.cL)(v||""));(0,r.useEffect)(()=>{l&&u.vendor_id&&(null==h?void 0:h.length)?m("privacy_declarations",h.filter(e=>b(e.data_use)).map(e=>(0,C.U)(e)).map(e=>{var a,t,i;return{name:null!==(t=e.name)&&void 0!==t?t:"",consent_use:e.data_use.split(".")[0],data_use:e.data_use,data_categories:e.data_categories,cookieNames:(null===(a=e.cookies)||void 0===a?void 0:a.map(e=>e.name))||[],cookies:null!==(i=e.cookies)&&void 0!==i?i:[]}})):d&&m("privacy_declarations",[j])},[l,d,u.vendor_id,h,m]);let x=(null===(a=u.privacy_declarations[u.privacy_declarations.length-1])||void 0===a?void 0:a.data_use)===j.data_use&&(null===(t=u.privacy_declarations[u.privacy_declarations.length-1])||void 0===t?void 0:t.consent_use)===j.consent_use;return g?(0,i.jsx)(n.$jN,{size:"sm",alignSelf:"center"}):(0,i.jsx)(s.F2,{name:"privacy_declarations",render:e=>(0,i.jsxs)(i.Fragment,{children:[u.privacy_declarations.map((e,a)=>(0,i.jsx)(N,{index:a,disabled:c},e.data_use||a)),(0,i.jsx)(n.wpx,{onClick:()=>e.push(j),size:"small",type:"text",disabled:c||x,"data-testid":"add-data-use-btn",children:"Add data use +"})]})})};let q={name:"",vendor_id:void 0,privacy_declarations:[j]};var I=e=>{let{buttonLabel:a,onButtonClick:t,buttonProps:_}=e,b=(0,n.pmc)(),{isOpen:k,onOpen:C,onClose:w}=(0,n.qY0)(),N=(0,o.T)(),[I]=(0,m.in)(),S=(0,r.useMemo)(()=>l.Ry().shape({name:l.Z_().required().label("Vendor name").test("is-unique","",async(e,a)=>{let{data:t}=await I({page:1,size:10,search:e});return!((null==t?void 0:t.items)||[]).some(a=>a.name===e)||a.createError({message:'You already have a vendor called "'.concat(e,'". Please specify a unique name for this vendor.')})})}),[I]),{tcf:z,dictionaryService:Z}=(0,d.hz)(),{isLoading:F}=(0,p.Rd)(void 0,{skip:!Z}),W=(0,o.C)(p.o),V=(0,o.C)(v.gU),[E]=(0,m.f7)(),A=(0,o.C)(v.bN),B=()=>{w(),N((0,v.b3)("initial")),N((0,v.gQ)(!1))},L=(0,r.useRef)(null),T=L.current?L.current.values.vendor_id:void 0,M=(0,o.C)((0,p.$e)(T||"")),P=async(e,a)=>{let t=e.privacy_declarations.filter(e=>e.consent_use!==j.consent_use).flatMap(e=>{let a=e.cookieNames.map(a=>{let t=e.cookies.find(e=>e.name===a);return null!=t?t:{name:a,path:"/"}}),{cookieNames:t,consent_use:i,...n}=e;return"marketing"!==e.consent_use||e.data_use?{...n,data_use:e.data_use?e.data_use:e.consent_use,cookies:a}:["marketing.advertising.first_party.targeted","marketing.advertising.third_party.targeted"].map(e=>({...n,data_use:e,cookies:a}))}),i={...M,...e,fides_key:(0,u.E)(e.name),system_type:"",privacy_declarations:t},n=await E(i);if((0,x.D4)(n)){b((0,y.Vo)((0,x.e$)(n.error)));return}b((0,y.t5)("Vendor successfully created!")),a.resetForm(),B()},Q=e=>{if(Z){if(!e){N((0,v.b3)("hiding")),N((0,v.gQ)(!1));return}N((0,v.b3)("showing")),z&&(0,x.cj)(e)===x.c6.GVL?N((0,v.gQ)(!0)):N((0,v.gQ)(!1))}};return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(n.wpx,{onClick:()=>{t?t():C()},"data-testid":"add-vendor-btn",..._,children:a}),(0,i.jsx)(s.J9,{initialValues:q,enableReinitialize:!0,onSubmit:P,validationSchema:S,innerRef:L,children:e=>{let{dirty:a,isValid:t,resetForm:r}=e;return(0,i.jsx)(f.Z,{isOpen:k,onClose:B,title:"Add a vendor",children:(0,i.jsxs)(n.xuv,{"data-testid":"add-vendor-modal-content",my:4,children:[V?(0,i.jsx)(g.Z,{}):null,(0,i.jsx)(s.l0,{children:(0,i.jsxs)(n.gCW,{alignItems:"start",spacing:6,children:[Z?(0,i.jsx)(h.Z,{label:"Vendor name",options:W,isLoading:F,onVendorSelected:Q,isCreate:!0,lockedForGVL:V}):(0,i.jsx)(c.j0,{id:"name",name:"name",isRequired:!0,label:"Vendor name",tooltip:"Give the system a unique, and relevant name for reporting purposes. e.g. “Email Data Warehouse”",variant:"stacked"}),(0,i.jsx)(R,{showSuggestions:"showing"===A,isCreate:!0,disabled:V}),(0,i.jsxs)("div",{className:"flex w-full justify-between",children:[(0,i.jsx)(n.wpx,{onClick:()=>{B(),r()},children:"Cancel"}),(0,i.jsx)(n.wpx,{type:"primary",htmlType:"submit",disabled:F||!a||!t,loading:F,"data-testid":"save-btn",children:"Save vendor"})]})]})})]})})}})]})}}}]);