ethyca-fides 2.73.0rc0__py2.py3-none-any.whl → 2.73.0rc1__py2.py3-none-any.whl

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

Potentially problematic release.


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

Files changed (174) hide show
  1. {ethyca_fides-2.73.0rc0.dist-info → ethyca_fides-2.73.0rc1.dist-info}/METADATA +1 -1
  2. {ethyca_fides-2.73.0rc0.dist-info → ethyca_fides-2.73.0rc1.dist-info}/RECORD +146 -146
  3. fides/_version.py +3 -3
  4. fides/ui-build/static/admin/404.html +1 -1
  5. fides/ui-build/static/admin/_next/static/chunks/{1438-62df8751f76235e7.js → 1437-9dd64c20d38667df.js} +1 -1
  6. fides/ui-build/static/admin/_next/static/chunks/155-1c80b19f58f44a0c.js +1 -0
  7. fides/ui-build/static/admin/_next/static/chunks/{2397-b9c1b4a7f11e862d.js → 2397-16820a09e8ebfe33.js} +1 -1
  8. fides/ui-build/static/admin/_next/static/chunks/{3700-940e5630ee5efe10.js → 3700-a2903cd95b8a27cb.js} +1 -1
  9. fides/ui-build/static/admin/_next/static/chunks/4817-d0cc100f259b3c2e.js +1 -0
  10. fides/ui-build/static/admin/_next/static/chunks/5279-8637d735471ec7f1.js +1 -0
  11. fides/ui-build/static/admin/_next/static/chunks/6277-ec0e3fa4e4614098.js +1 -0
  12. fides/ui-build/static/admin/_next/static/chunks/6315-79a1506e01f2f92b.js +1 -0
  13. fides/ui-build/static/admin/_next/static/chunks/7059-3f2641e3130b4ef8.js +1 -0
  14. fides/ui-build/static/admin/_next/static/chunks/9046-6428eac9f38b3886.js +1 -0
  15. fides/ui-build/static/admin/_next/static/chunks/9330-540a113903cb3c28.js +1 -0
  16. fides/ui-build/static/admin/_next/static/chunks/9682-a3b2fb1a2df1c948.js +1 -0
  17. fides/ui-build/static/admin/_next/static/chunks/9965-6906ffdaef0f0d69.js +1 -0
  18. fides/ui-build/static/admin/_next/static/chunks/pages/add-systems/{manual-b9dbc9ac030f0490.js → manual-a5865f42aafbe1f8.js} +1 -1
  19. fides/ui-build/static/admin/_next/static/chunks/pages/consent/privacy-experience/{[id]-53f6037b25dd5ccb.js → [id]-0dd17c74a6cc17ff.js} +1 -1
  20. fides/ui-build/static/admin/_next/static/chunks/pages/consent/privacy-experience/{new-e74cb5ea87f15b40.js → new-a5e738a234dadc7e.js} +1 -1
  21. fides/ui-build/static/admin/_next/static/chunks/pages/consent/privacy-notices/{[id]-b40fa30ca73e50c2.js → [id]-84ba8b9947b9af0a.js} +1 -1
  22. fides/ui-build/static/admin/_next/static/chunks/pages/consent/privacy-notices/{new-7197fadcd57b623d.js → new-f03d1d0df4661a33.js} +1 -1
  23. fides/ui-build/static/admin/_next/static/chunks/pages/consent/privacy-notices-5a553b4bdbf85aa9.js +1 -0
  24. fides/ui-build/static/admin/_next/static/chunks/pages/data-catalog/[systemId]/projects/[projectUrn]/[resourceUrn]-5d133ec635cd716c.js +1 -0
  25. fides/ui-build/static/admin/_next/static/chunks/pages/data-catalog/[systemId]/projects/[projectUrn]-cb56d56b9d918682.js +1 -0
  26. fides/ui-build/static/admin/_next/static/chunks/pages/data-catalog/[systemId]/projects-ccb66ba6d1ad93fc.js +1 -0
  27. fides/ui-build/static/admin/_next/static/chunks/pages/data-catalog/[systemId]/resources/[resourceUrn]-9d8efe43b69a285d.js +1 -0
  28. fides/ui-build/static/admin/_next/static/chunks/pages/data-catalog/[systemId]/resources-ecb2d925d75dfe1e.js +1 -0
  29. fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/action-center/datastore/{[monitorId]-fb69b66faffc8f4a.js → [monitorId]-e46e017a3919f94e.js} +1 -1
  30. fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/action-center/website/[monitorId]/[systemId]-a6319fb434888d5a.js +1 -0
  31. fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/action-center/website/[monitorId]-cc6b359fb4968bf0.js +1 -0
  32. fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/{action-center-46b2cdceea3993c8.js → action-center-cbff5db86e6951c4.js} +1 -1
  33. fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/activity-7dded115499a4a4a.js +1 -0
  34. fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/detection/{[resourceUrn]-27227f5c402b3a92.js → [resourceUrn]-2df143c1e1f79040.js} +1 -1
  35. fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/{detection-1fe30896a5df2b9a.js → detection-e37c800313e2a422.js} +1 -1
  36. fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/discovery/{[resourceUrn]-e17f809058842014.js → [resourceUrn]-7022ca5fa834b633.js} +1 -1
  37. fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/{discovery-2f73cff60a628e42.js → discovery-6178e22397f20f92.js} +1 -1
  38. fides/ui-build/static/admin/_next/static/chunks/pages/integrations/[id]-3b7f47985452e01d.js +1 -0
  39. fides/ui-build/static/admin/_next/static/chunks/pages/integrations-b0da32fe3564c129.js +1 -0
  40. fides/ui-build/static/admin/_next/static/chunks/pages/notifications/providers-83f78354fa34bffe.js +1 -0
  41. fides/ui-build/static/admin/_next/static/chunks/pages/reporting/datamap-33ce744d07982c0f.js +1 -0
  42. fides/ui-build/static/admin/_next/static/chunks/pages/settings/consent-39b5142099ed8705.js +1 -0
  43. fides/ui-build/static/admin/_next/static/chunks/pages/settings/custom-fields-64c638ea33bb3ff9.js +1 -0
  44. fides/ui-build/static/admin/_next/static/chunks/pages/systems/configure/{[id]-70820c4199cb11cb.js → [id]-9e815520adb3e580.js} +1 -1
  45. fides/ui-build/static/admin/_next/static/chunks/pages/systems-d8ce572ad07ed28c.js +1 -0
  46. fides/ui-build/static/admin/_next/static/css/919f947a862d28cd.css +1 -0
  47. fides/ui-build/static/admin/_next/static/r8rZDWqXNk5LNRek9nRdo/_buildManifest.js +1 -0
  48. fides/ui-build/static/admin/add-systems/manual.html +1 -1
  49. fides/ui-build/static/admin/add-systems/multiple.html +1 -1
  50. fides/ui-build/static/admin/add-systems.html +1 -1
  51. fides/ui-build/static/admin/consent/configure/add-vendors.html +1 -1
  52. fides/ui-build/static/admin/consent/configure.html +1 -1
  53. fides/ui-build/static/admin/consent/privacy-experience/[id].html +1 -1
  54. fides/ui-build/static/admin/consent/privacy-experience/new.html +1 -1
  55. fides/ui-build/static/admin/consent/privacy-experience.html +1 -1
  56. fides/ui-build/static/admin/consent/privacy-notices/[id].html +1 -1
  57. fides/ui-build/static/admin/consent/privacy-notices/new.html +1 -1
  58. fides/ui-build/static/admin/consent/privacy-notices.html +1 -1
  59. fides/ui-build/static/admin/consent/properties.html +1 -1
  60. fides/ui-build/static/admin/consent/reporting.html +1 -1
  61. fides/ui-build/static/admin/consent.html +1 -1
  62. fides/ui-build/static/admin/data-catalog/[systemId]/projects/[projectUrn]/[resourceUrn].html +1 -1
  63. fides/ui-build/static/admin/data-catalog/[systemId]/projects/[projectUrn].html +1 -1
  64. fides/ui-build/static/admin/data-catalog/[systemId]/projects.html +1 -1
  65. fides/ui-build/static/admin/data-catalog/[systemId]/resources/[resourceUrn].html +1 -1
  66. fides/ui-build/static/admin/data-catalog/[systemId]/resources.html +1 -1
  67. fides/ui-build/static/admin/data-catalog.html +1 -1
  68. fides/ui-build/static/admin/data-discovery/action-center/datastore/[monitorId].html +1 -1
  69. fides/ui-build/static/admin/data-discovery/action-center/datastore.html +1 -1
  70. fides/ui-build/static/admin/data-discovery/action-center/website/[monitorId]/[systemId].html +1 -1
  71. fides/ui-build/static/admin/data-discovery/action-center/website/[monitorId].html +1 -1
  72. fides/ui-build/static/admin/data-discovery/action-center/website.html +1 -1
  73. fides/ui-build/static/admin/data-discovery/action-center.html +1 -1
  74. fides/ui-build/static/admin/data-discovery/activity.html +1 -1
  75. fides/ui-build/static/admin/data-discovery/detection/[resourceUrn].html +1 -1
  76. fides/ui-build/static/admin/data-discovery/detection.html +1 -1
  77. fides/ui-build/static/admin/data-discovery/discovery/[resourceUrn].html +1 -1
  78. fides/ui-build/static/admin/data-discovery/discovery.html +1 -1
  79. fides/ui-build/static/admin/datamap.html +1 -1
  80. fides/ui-build/static/admin/dataset/[datasetId]/[collectionName]/[...subfieldNames].html +1 -1
  81. fides/ui-build/static/admin/dataset/[datasetId]/[collectionName].html +1 -1
  82. fides/ui-build/static/admin/dataset/[datasetId].html +1 -1
  83. fides/ui-build/static/admin/dataset/new.html +1 -1
  84. fides/ui-build/static/admin/dataset.html +1 -1
  85. fides/ui-build/static/admin/datastore-connection/[id].html +1 -1
  86. fides/ui-build/static/admin/datastore-connection/new.html +1 -1
  87. fides/ui-build/static/admin/datastore-connection.html +1 -1
  88. fides/ui-build/static/admin/index.html +1 -1
  89. fides/ui-build/static/admin/integrations/[id].html +1 -1
  90. fides/ui-build/static/admin/integrations.html +1 -1
  91. fides/ui-build/static/admin/login/[provider].html +1 -1
  92. fides/ui-build/static/admin/login.html +1 -1
  93. fides/ui-build/static/admin/new-privacy-requests.html +1 -1
  94. fides/ui-build/static/admin/notifications/digests/[id].html +1 -1
  95. fides/ui-build/static/admin/notifications/digests/new.html +1 -1
  96. fides/ui-build/static/admin/notifications/digests.html +1 -1
  97. fides/ui-build/static/admin/notifications/providers/[key].html +1 -1
  98. fides/ui-build/static/admin/notifications/providers/new.html +1 -1
  99. fides/ui-build/static/admin/notifications/providers.html +1 -1
  100. fides/ui-build/static/admin/notifications/templates/[id].html +1 -1
  101. fides/ui-build/static/admin/notifications/templates/add-template.html +1 -1
  102. fides/ui-build/static/admin/notifications/templates.html +1 -1
  103. fides/ui-build/static/admin/notifications.html +1 -1
  104. fides/ui-build/static/admin/poc/ant-components.html +1 -1
  105. fides/ui-build/static/admin/poc/form-experiments/AntForm.html +1 -1
  106. fides/ui-build/static/admin/poc/form-experiments/FormikAntFormItem.html +1 -1
  107. fides/ui-build/static/admin/poc/form-experiments/FormikControlled.html +1 -1
  108. fides/ui-build/static/admin/poc/form-experiments/FormikField.html +1 -1
  109. fides/ui-build/static/admin/poc/form-experiments/FormikSpreadField.html +1 -1
  110. fides/ui-build/static/admin/poc/forms.html +1 -1
  111. fides/ui-build/static/admin/poc/table-migration.html +1 -1
  112. fides/ui-build/static/admin/privacy-requests/[id].html +1 -1
  113. fides/ui-build/static/admin/privacy-requests/configure/storage.html +1 -1
  114. fides/ui-build/static/admin/privacy-requests/configure.html +1 -1
  115. fides/ui-build/static/admin/privacy-requests.html +1 -1
  116. fides/ui-build/static/admin/properties/[id].html +1 -1
  117. fides/ui-build/static/admin/properties/add-property.html +1 -1
  118. fides/ui-build/static/admin/properties.html +1 -1
  119. fides/ui-build/static/admin/reporting/datamap.html +1 -1
  120. fides/ui-build/static/admin/settings/about/alpha.html +1 -1
  121. fides/ui-build/static/admin/settings/about.html +1 -1
  122. fides/ui-build/static/admin/settings/consent/[configuration_id]/[purpose_id].html +1 -1
  123. fides/ui-build/static/admin/settings/consent.html +1 -1
  124. fides/ui-build/static/admin/settings/custom-fields/[id].html +1 -1
  125. fides/ui-build/static/admin/settings/custom-fields/new.html +1 -1
  126. fides/ui-build/static/admin/settings/custom-fields.html +1 -1
  127. fides/ui-build/static/admin/settings/domain-records.html +1 -1
  128. fides/ui-build/static/admin/settings/domains.html +1 -1
  129. fides/ui-build/static/admin/settings/email-templates.html +1 -1
  130. fides/ui-build/static/admin/settings/locations.html +1 -1
  131. fides/ui-build/static/admin/settings/organization.html +1 -1
  132. fides/ui-build/static/admin/settings/privacy-requests.html +1 -1
  133. fides/ui-build/static/admin/settings/regulations.html +1 -1
  134. fides/ui-build/static/admin/systems/configure/[id]/test-datasets.html +1 -1
  135. fides/ui-build/static/admin/systems/configure/[id].html +1 -1
  136. fides/ui-build/static/admin/systems.html +1 -1
  137. fides/ui-build/static/admin/taxonomy.html +1 -1
  138. fides/ui-build/static/admin/user-management/new.html +1 -1
  139. fides/ui-build/static/admin/user-management/profile/[id].html +1 -1
  140. fides/ui-build/static/admin/user-management.html +1 -1
  141. fides/ui-build/static/admin/_next/static/Y4fC3QVMk1ujcOb92jMd8/_buildManifest.js +0 -1
  142. fides/ui-build/static/admin/_next/static/chunks/3080-218ac9199ab43f37.js +0 -1
  143. fides/ui-build/static/admin/_next/static/chunks/3729-a1aaa30987ee9f28.js +0 -1
  144. fides/ui-build/static/admin/_next/static/chunks/3872-25c16c5a21152b31.js +0 -1
  145. fides/ui-build/static/admin/_next/static/chunks/4322-2b986cc150c42771.js +0 -1
  146. fides/ui-build/static/admin/_next/static/chunks/5327-282ef735516d3b89.js +0 -1
  147. fides/ui-build/static/admin/_next/static/chunks/6084-023f8c6e65faeb9c.js +0 -1
  148. fides/ui-build/static/admin/_next/static/chunks/6882-ec4429aef277a3a4.js +0 -1
  149. fides/ui-build/static/admin/_next/static/chunks/7170-4ac982fffdba3a55.js +0 -1
  150. fides/ui-build/static/admin/_next/static/chunks/8563-fe06e1fa6d795938.js +0 -1
  151. fides/ui-build/static/admin/_next/static/chunks/8853-28242f6079441663.js +0 -1
  152. fides/ui-build/static/admin/_next/static/chunks/pages/consent/privacy-notices-30cecb4656886008.js +0 -1
  153. fides/ui-build/static/admin/_next/static/chunks/pages/data-catalog/[systemId]/projects/[projectUrn]/[resourceUrn]-89f202662b70059a.js +0 -1
  154. fides/ui-build/static/admin/_next/static/chunks/pages/data-catalog/[systemId]/projects/[projectUrn]-6c19b6be18db5972.js +0 -1
  155. fides/ui-build/static/admin/_next/static/chunks/pages/data-catalog/[systemId]/projects-aac70cc10a651e80.js +0 -1
  156. fides/ui-build/static/admin/_next/static/chunks/pages/data-catalog/[systemId]/resources/[resourceUrn]-14dd38964617db2b.js +0 -1
  157. fides/ui-build/static/admin/_next/static/chunks/pages/data-catalog/[systemId]/resources-8e1d671ff51386ff.js +0 -1
  158. fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/action-center/website/[monitorId]/[systemId]-2978a8aa990ec3a9.js +0 -1
  159. fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/action-center/website/[monitorId]-968e1c27b0970d67.js +0 -1
  160. fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/activity-4c18f83478bf5db2.js +0 -1
  161. fides/ui-build/static/admin/_next/static/chunks/pages/integrations/[id]-d26992b1651b74ae.js +0 -1
  162. fides/ui-build/static/admin/_next/static/chunks/pages/integrations-401b0b6b9d447d00.js +0 -1
  163. fides/ui-build/static/admin/_next/static/chunks/pages/notifications/providers-e71a1d0f7633a968.js +0 -1
  164. fides/ui-build/static/admin/_next/static/chunks/pages/reporting/datamap-479401ebaf1160ab.js +0 -1
  165. fides/ui-build/static/admin/_next/static/chunks/pages/settings/consent-38b4b0d710d162bc.js +0 -1
  166. fides/ui-build/static/admin/_next/static/chunks/pages/settings/custom-fields-4171abc37fe1475c.js +0 -1
  167. fides/ui-build/static/admin/_next/static/chunks/pages/systems-753ee6b9bb80a657.js +0 -1
  168. fides/ui-build/static/admin/_next/static/css/8317e07483c73e4f.css +0 -1
  169. {ethyca_fides-2.73.0rc0.dist-info → ethyca_fides-2.73.0rc1.dist-info}/WHEEL +0 -0
  170. {ethyca_fides-2.73.0rc0.dist-info → ethyca_fides-2.73.0rc1.dist-info}/entry_points.txt +0 -0
  171. {ethyca_fides-2.73.0rc0.dist-info → ethyca_fides-2.73.0rc1.dist-info}/licenses/LICENSE +0 -0
  172. {ethyca_fides-2.73.0rc0.dist-info → ethyca_fides-2.73.0rc1.dist-info}/top_level.txt +0 -0
  173. /fides/ui-build/static/admin/_next/static/chunks/pages/{_app-6f721c56270cb96e.js → _app-5fd4e06224960492.js} +0 -0
  174. /fides/ui-build/static/admin/_next/static/{Y4fC3QVMk1ujcOb92jMd8 → r8rZDWqXNk5LNRek9nRdo}/_ssgManifest.js +0 -0
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[710],{66726:function(e,t,n){var i=n(11611),a=n(82846),o=n(91936),s=Math.max,r=Math.min;e.exports=function(e,t,n){var l,c,d,u,g,p,m=0,f=!1,h=!1,v=!0;if("function"!=typeof e)throw TypeError("Expected a function");function y(t){var n=l,i=c;return l=c=void 0,m=t,u=e.apply(i,n)}function x(e){var n=e-p,i=e-m;return void 0===p||n>=t||n<0||h&&i>=d}function j(){var e,n,i,o=a();if(x(o))return C(o);g=setTimeout(j,(e=o-p,n=o-m,i=t-e,h?r(i,d-n):i))}function C(e){return(g=void 0,v&&l)?y(e):(l=c=void 0,u)}function w(){var e,n=a(),i=x(n);if(l=arguments,c=this,p=n,i){if(void 0===g)return m=e=p,g=setTimeout(j,t),f?y(e):u;if(h)return clearTimeout(g),g=setTimeout(j,t),y(p)}return void 0===g&&(g=setTimeout(j,t)),u}return t=o(t)||0,i(n)&&(f=!!n.leading,d=(h="maxWait"in n)?s(o(n.maxWait)||0,t):d,v="trailing"in n?!!n.trailing:v),w.cancel=function(){void 0!==g&&clearTimeout(g),m=0,l=p=c=g=void 0},w.flush=function(){return void 0===g?u:C(a())},w}},82846:function(e,t,n){var i=n(77400);e.exports=function(){return i.Date.now()}},9387:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/integrations",function(){return n(31912)}])},30952:function(e,t,n){"use strict";n.d(t,{f:function(){return l}});var i=n(24246),a=n(66726),o=n.n(a),s=n(27378),r=n(26917);let l=e=>{let{value:t,onChange:n,placeholder:a,...l}=e,[c,d]=(0,s.useState)(t);(0,s.useEffect)(()=>{d(t||"")},[t]);let u=o()(n,500),g=(0,s.useCallback)(e=>{d(e),u(e)},[]);return(0,i.jsx)(r.Z,{value:c,onChange:g,onClear:()=>{d(""),n("")},placeholder:a,...l})}},77213:function(e,t,n){"use strict";n.d(t,{Z:function(){return p}});var i=n(24246),a=n(87949),o=n(88038),s=n.n(o),r=n(86677);n(27378);var l=n(25980),c=n(90867),d=n(42478),u=n(77830),g=()=>{let e=(0,r.useRouter)();return(0,i.jsx)(a.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)(a.xuv,{children:[(0,i.jsxs)(a.Kqy,{direction:{base:"column",sm:"row"},justifyContent:"space-between",children:[(0,i.jsx)(a.xvT,{fontWeight:"semibold",children:"Configure your storage and messaging provider"}),(0,i.jsx)(a.wpx,{onClick:()=>{e.push(u.AD)},children:"Configure"})]}),(0,i.jsxs)(a.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:u}=e,p=(0,l.hz)(),m=(0,r.useRouter)(),f="/privacy-requests"===m.pathname||"/datastore-connection"===m.pathname,h=!(p.flags.messagingConfiguration&&f),{data:v}=(0,d.JE)(void 0,{skip:h}),{data:y}=(0,c.PW)(void 0,{skip:h}),x=p.flags.messagingConfiguration&&(!v||!y)&&f;return(0,i.jsxs)(a.kCb,{"data-testid":n,direction:"column",h:"100vh",children:[(0,i.jsxs)(s(),{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)(a.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",...u,children:[x?(0,i.jsx)(g,{}):null,t]})]})}},42478:function(e,t,n){"use strict";n.d(t,{FU:function(){return c},JE:function(){return a},Ki:function(){return u},SU:function(){return g},W:function(){return p},h9:function(){return o},jc:function(){return i},qt:function(){return l},sn:function(){return d}});let{useGetEmailInviteStatusQuery:i,useGetActiveMessagingProviderQuery:a,useCreateMessagingConfigurationMutation:o,useCreateMessagingConfigurationSecretsMutation:s,useGetMessagingConfigurationDetailsQuery:r,useGetMessagingConfigurationsQuery:l,useGetMessagingConfigurationByKeyQuery:c,useUpdateMessagingConfigurationByKeyMutation:d,useUpdateMessagingConfigurationSecretsByKeyMutation:u,useCreateTestConnectionMessageMutation:g,useDeleteMessagingConfigurationByKeyMutation:p}=n(78780).u.injectEndpoints({endpoints:e=>({getEmailInviteStatus:e.query({query:()=>({url:"/messaging/email-invite/status"}),providesTags:()=>["Email Invite Status"]}),createMessagingConfiguration:e.mutation({query:e=>({url:"messaging/config",method:"POST",body:e}),invalidatesTags:["Messaging Config","Configuration Settings"]}),getActiveMessagingProvider:e.query({queryFn:async(e,t,n,i)=>{let a=await i({url:"messaging/default/active"});return a.error&&404===a.error.status?{data:null}:a},providesTags:["Messaging Config"]}),createMessagingConfigurationSecrets:e.mutation({query:e=>({url:"messaging/default/".concat(e.service_type,"/secret"),method:"PUT",body:e.details}),invalidatesTags:["Messaging Config","Configuration Settings"]}),getMessagingConfigurationDetails:e.query({query:e=>({url:"messaging/default/".concat(e.type)}),providesTags:["Messaging Config"]}),getMessagingConfigurations:e.query({query:()=>({url:"messaging/config"}),providesTags:["Messaging Config"]}),getMessagingConfigurationByKey:e.query({query:e=>({url:"messaging/config/".concat(e.key)}),providesTags:["Messaging Config"]}),createTestConnectionMessage:e.mutation({query:e=>({url:"messaging/test/".concat(e.service_type),method:"POST",body:e.details}),invalidatesTags:["Messaging Config"]}),updateMessagingConfigurationByKey:e.mutation({query:e=>({url:"messaging/config/".concat(e.key),method:"PATCH",body:e.config}),invalidatesTags:["Messaging Config","Configuration Settings"]}),updateMessagingConfigurationSecretsByKey:e.mutation({query:e=>({url:"messaging/config/".concat(e.key,"/secret"),method:"PUT",body:e.secrets}),invalidatesTags:["Messaging Config","Configuration Settings"]}),deleteMessagingConfigurationByKey:e.mutation({query:e=>({url:"messaging/config/".concat(e.key),method:"DELETE"}),invalidatesTags:["Messaging Config","Configuration Settings"]})})})},31912:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return L}});var i,a,o=n(24246),s=n(87949),r=n(86677),l=n(27378),c=n(30952),d=n(25980),u=n(18225),g=n(17245),p=n(77213),m=n(77830),f=n(58754),h=n(16394),v=n(20682),y=n(41337),x=n(14207),j=n(8133),C=n(38187),w=n(21365),b=n(75595),k=e=>{let{integrationType:t,onConfigure:n}=e;return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(b.Z,{integration:null==t?void 0:t.placeholder,integrationTypeInfo:t,onConfigureClick:n}),null==t?void 0:t.overview]})},S=e=>{let t=(0,l.useRef)(null);return(0,l.useEffect)(()=>{let n=n=>{!t.current||t.current.contains(n.target)||n.target.closest('button, [role="button"], a, input, select, textarea')||e()};return document.addEventListener("mousedown",n),()=>{document.removeEventListener("mousedown",n)}},[e]),t},T=n(35030),_=e=>{var t;let{integration:n,integrationTypeInfo:i,selected:a=!1,onClick:r,onDetailsClick:l,onUnfocus:c}=e,d=(0,g.pI)(n),u=i||(0,C.ZP)(null==n?void 0:n.connection_type,null==n?void 0:null===(t=n.saas_config)||void 0===t?void 0:t.type),p=S(()=>{a&&c&&c()});return(0,o.jsxs)(s.xuv,{ref:p,borderWidth:1,borderColor:a?"black":"gray.200",backgroundColor:a?"gray.50":"transparent",boxShadow:a?"md":"none",borderRadius:"lg",overflow:"hidden",padding:"12px",cursor:"pointer",onClick:r,"data-testid":"integration-info-".concat(null==n?void 0:n.key),children:[(0,o.jsx)(s.kCb,{justifyContent:"space-between",alignItems:"flex-start",className:"w-full",children:(0,o.jsxs)(s.kCb,{flexGrow:1,width:"100%",children:[(0,o.jsx)(y.ZP,{data:d,size:40}),(0,o.jsxs)(s.kCb,{direction:"column",flexGrow:1,flexShrink:1,marginLeft:"12px",marginRight:"12px",width:0,children:[(0,o.jsx)(s.AntTypography.Text,{strong:!0,style:{color:"var(--chakra-colors-gray-700)",fontSize:"14px"},ellipsis:{tooltip:(null==n?void 0:n.name)||"(No name)"},children:(null==n?void 0:n.name)||"(No name)"}),(0,o.jsx)(s.xvT,{color:"gray.600",fontSize:"xs",mt:1,children:(0,T.qS)(u.category)})]}),l&&(0,o.jsx)(s.wpx,{size:"small",onClick:e=>{e.stopPropagation(),l()},type:"default",className:"shrink-0 px-2 py-1 text-xs","data-testid":"details-btn-".concat(null==n?void 0:n.key),children:"Details"})]})}),(0,o.jsxs)(s.Eq9,{marginTop:"12px",spacing:1,children:[u.tags.slice(0,3).map(e=>(0,o.jsx)(s.j8w,{children:e},e)),u.tags.length>3&&(0,o.jsxs)(s.j8w,{color:"corinth",children:["+",u.tags.length-3]})]})]})},A=n(65735),M=n(28946),E=e=>{let{selectedIntegration:t,onSelectIntegration:n,onDetailClick:i}=e,[a,r]=(0,l.useState)(""),[c,g]=(0,l.useState)("ALL"),[p,m]=(0,l.useState)(!1),{flags:{oktaMonitor:f,newIntegrationManagement:h}}=(0,d.Vb)(),{data:y}=(0,v.$I)({}),x=(0,l.useMemo)(()=>(null==y?void 0:y.items)||[],[y]),j=(0,l.useMemo)(()=>{let e=C.FO;h||(e=e.filter(e=>e.placeholder.connection_type!==A.Rj.SAAS));let t=new Set(e.filter(e=>e.placeholder.connection_type===A.Rj.SAAS).map(e=>{var t;return null===(t=e.placeholder.saas_config)||void 0===t?void 0:t.type}));return[...e,...h?x.filter(e=>"saas"===e.type&&!t.has(e.identifier)).map(e=>(0,C.ZP)(A.Rj.SAAS,e.identifier,x)):[]]},[x,h]),w=(0,l.useMemo)(()=>{let e=["ALL",...Object.values(M.k).filter(e=>e!==M.k.IDENTITY_PROVIDER||f)];return h?e:e.filter(e=>"ALL"===e?j.length>0:j.some(t=>t.category===e))},[f,h,j]),b=(0,l.useMemo)(()=>{let e=j;if("ALL"!==c&&(e=e.filter(e=>e.category===c)),a.trim()){let t=a.toLowerCase();e=e.filter(e=>(e.placeholder.name||"").toLowerCase().includes(t))}return(e=e.filter(e=>!!f||"okta"!==e.placeholder.connection_type)).sort((e,t)=>{let n=e.placeholder.name||"",i=t.placeholder.name||"";return n.localeCompare(i)})},[a,c,f,j]),k=w.map(e=>"ALL"===e?{label:"All",value:e}:{label:(0,T.qS)(e),value:e}).sort((e,t)=>"All"===e.label?-1:"All"===t.label?1:e.label.localeCompare(t.label));return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)("div",{className:"mb-4 mt-3 flex items-center justify-between gap-4",children:[(0,o.jsx)(s.AntInput,{placeholder:"Search by name...",value:a,onChange:e=>r(e.target.value),className:"w-64",allowClear:!0}),(0,o.jsx)(s.WPr,{value:c,onChange:e=>{m(!0),g(e),setTimeout(()=>m(!1),100)},options:k,className:"w-48",placeholder:"Select category","aria-label":"Select a category","data-testid":"category-filter-select"})]}),p?(0,o.jsx)(u.Z,{}):(0,o.jsx)("div",{className:"grid grid-cols-3 gap-6",children:b.map(e=>(0,o.jsx)("div",{children:(0,o.jsx)(_,{integration:e.placeholder,integrationTypeInfo:e,selected:(null==t?void 0:t.placeholder.key)===e.placeholder.key,onClick:()=>{n((null==t?void 0:t.placeholder.key)===e.placeholder.key?void 0:e)},onDetailsClick:()=>i(e),onUnfocus:()=>n(void 0)})},e.placeholder.key))})]})},I=n(64176);(i=a||(a={})).LIST_VIEW="list-view",i.DETAIL="detail",i.FORM="form";var N=e=>{var t,n,i;let{isOpen:a,onClose:r}=e,[c,d]=(0,l.useState)("list-view"),[u,g]=(0,l.useState)(null),[p,m]=(0,l.useState)(),[f,h]=(0,l.useState)(null),v=(0,I.Z)(null==p?void 0:p.placeholder.connection_type,null==p?void 0:null===(n=p.placeholder)||void 0===n?void 0:null===(t=n.saas_config)||void 0===t?void 0:t.type),{description:y}=(0,C.ZP)(null==p?void 0:p.placeholder.connection_type,null==p?void 0:null===(i=p.placeholder.saas_config)||void 0===i?void 0:i.type),x=()=>{d("list-view"),g(null),m(void 0),h(null),r()},b=()=>{g("detail"),d("form")},S=p&&"list-view"!==c?"".concat(p.placeholder.name," Integration"):"Add integration",T="list-view"===c?(0,o.jsxs)("div",{className:"flex w-full justify-between",children:[(0,o.jsx)(s.wpx,{onClick:x,children:"Cancel"}),(0,o.jsx)(s.wpx,{type:"primary",onClick:()=>{"list-view"===c&&p&&(g("list-view"),d("form"))},disabled:!p,children:"Next"})]}):"detail"===c?(0,o.jsxs)("div",{className:"flex w-full justify-between",children:[(0,o.jsx)(s.wpx,{onClick:()=>d("list-view"),children:"Back"}),(0,o.jsx)(s.wpx,{onClick:b,type:"primary","data-testid":"configure-modal-btn",children:"Next"})]}):"form"===c?(0,o.jsxs)("div",{className:"flex w-full justify-between",children:[(0,o.jsx)(s.wpx,{onClick:()=>{u&&(d(u),g(null))},children:"Back"}),(0,o.jsx)(s.wpx,{type:"primary",onClick:()=>{f&&f.submitForm&&f.submitForm()},disabled:!f||!f.isValid||!f.dirty,loading:null==f?void 0:f.loading,"data-testid":"save-btn",children:"Save"})]}):null;return(0,o.jsxs)(j.Z,{isOpen:a,onClose:x,title:S,scrollBehavior:"inside",showCloseButton:!0,modalContentProps:{height:"700px",maxWidth:"1010px"},footer:T,children:["list-view"===c&&(0,o.jsx)(E,{selectedIntegration:p,onSelectIntegration:e=>{m(e)},onDetailClick:e=>{d("detail"),m(e)}}),"detail"===c&&(0,o.jsx)(k,{integrationType:p,onConfigure:b}),"form"===c&&(0,o.jsx)(w.Z,{connectionOption:v,onClose:x,description:y,onFormStateChange:h})]})},q=n(40774);let P=e=>{let{integration:t}=e,n=(0,g.pI)(t);return(0,o.jsx)(y.ZP,{data:n,size:20})};var L=()=>{let[e,t]=(0,l.useState)(1),[n,i]=(0,l.useState)(50),[a,g]=(0,l.useState)(""),y=(0,r.useRouter)(),{flags:{newIntegrationManagement:j}}=(0,d.Vb)(),w=(0,l.useCallback)(a=>{(null==a?void 0:a.current)!==e&&t(a.current),(null==a?void 0:a.pageSize)&&a.pageSize!==n&&i(a.pageSize)},[e,n]),{data:b}=(0,v.$I)({}),k=(0,l.useMemo)(()=>(null==b?void 0:b.items)||[],[b]),S=(0,l.useMemo)(()=>j?C.jq:C.jq.filter(e=>e!==A.Rj.SAAS),[j]),{data:T,isLoading:_}=(0,x.AZ)({connection_type:S,size:n,page:e,search:a.trim()||void 0}),{items:M}=null!=T?T:{},{onOpen:E,isOpen:I,onClose:L}=(0,s.qY0)(),Z=(0,l.useMemo)(()=>{var e;return null!==(e=null==M?void 0:M.map(e=>{var t;return{...e,integrationTypeInfo:(0,C.ZP)(e.connection_type,null===(t=e.saas_config)||void 0===t?void 0:t.type,k)}}))&&void 0!==e?e:[]},[M,k]),R=e=>{y.push("".concat(m.KH,"/").concat(e.key))},F=[{title:"Name",dataIndex:"name",key:"name",width:250,render:(e,t)=>(0,o.jsxs)("div",{className:"flex items-center gap-3",children:[(0,o.jsx)(P,{integration:t}),(0,o.jsx)(s.AntTypography.Text,{ellipsis:{tooltip:e||"(No name)"},className:"font-semibold",children:e||"(No name)"})]})},{title:"Type",dataIndex:"connection_type",key:"connection_type",width:150,render:(e,t)=>{var n;return(0,C.ZP)(e,null===(n=t.saas_config)||void 0===n?void 0:n.type,k).placeholder.name||e}},{title:"Capabilities",dataIndex:["integrationTypeInfo","tags"],key:"capabilities",width:300,render:e=>(0,o.jsx)("div",{className:"flex flex-wrap gap-1",children:e.map(e=>(0,o.jsx)(s.j8w,{children:e},e))})},{title:"Connection Status",key:"connection_status",width:150,render:(e,t)=>{let{status:n,color:i}=null===t.last_test_timestamp||void 0===t.last_test_timestamp?{status:"Untested",color:s.tAb.DEFAULT}:!0===t.last_test_succeeded?{status:"Healthy",color:s.tAb.SUCCESS}:!1===t.last_test_succeeded?{status:"Failed",color:s.tAb.ERROR}:{status:"Untested",color:s.tAb.DEFAULT},a=t.last_test_timestamp?"Last connection: ".concat((0,h.p6)(t.last_test_timestamp)):"The connection has not been tested";return(0,o.jsx)(s.esZ,{title:a,children:(0,o.jsx)(s.j8w,{color:i,children:n})})}},{title:"Actions",key:"actions",width:100,render:(e,t)=>(0,o.jsx)(s.wpx,{onClick:()=>R(t),"data-testid":"manage-btn-".concat(t.key),size:"small",children:"Manage"})}],z={current:e,pageSize:n,total:Z.length,showQuickJumper:!1,showTotal:(e,t)=>"".concat(t[0],"-").concat(t[1]," of ").concat(e," integrations"),pageSizeOptions:["10","25","50","100"]},O={emptyText:a.trim()?"No integrations match your search":(0,o.jsx)("div",{"data-testid":"empty-state",children:'You have not configured any integrations. Click "Add Integration" to connect and configure systems now.'})};return(0,o.jsxs)(p.Z,{title:"Integrations",children:[(0,o.jsx)(f.Z,{heading:"Integrations",breadcrumbItems:[{title:"All integrations"}],rightContent:(0,o.jsx)(s.wpx,{onClick:E,"data-testid":"add-integration-btn",type:"primary",children:"Add integration"})}),(0,o.jsxs)("div",{className:"mb-4 flex items-center justify-between gap-4",children:[(0,o.jsx)(c.f,{placeholder:"Search by name...",value:a,onChange:e=>{g(e),t(1)},className:"max-w-sm"}),(0,o.jsx)(q.Z,{})]}),_?(0,o.jsx)(u.Z,{}):(0,o.jsx)(s.V5H,{columns:F,dataSource:Z,rowKey:"key",pagination:z,loading:_,size:"small",locale:O,bordered:!0,onRow:e=>({onClick:()=>R(e),"data-testid":"integration-info-".concat(e.key)}),rowClassName:"cursor-pointer",onChange:w,"data-testid":"integrations-table"}),(0,o.jsx)(N,{isOpen:I,onClose:L})]})}}},function(e){e.O(0,[431,8765,9278,5163,699,3662,1316,7245,155,2888,9774,179],function(){return e(e.s=9387)}),_N_E=e.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1537],{30890:function(e,t,i){(window.__NEXT_P=window.__NEXT_P||[]).push(["/notifications/providers",function(){return i(66605)}])},77213:function(e,t,i){"use strict";i.d(t,{Z:function(){return p}});var n=i(24246),s=i(87949),a=i(88038),r=i.n(a),l=i(86677);i(27378);var o=i(25980),d=i(90867),c=i(42478),u=i(77830),g=()=>{let e=(0,l.useRouter)();return(0,n.jsx)(s.xuv,{bg:"gray.50",border:"1px solid",borderColor:"blue.400",borderRadius:"md",justifyContent:"space-between",p:5,mb:5,mt:5,children:(0,n.jsxs)(s.xuv,{children:[(0,n.jsxs)(s.Kqy,{direction:{base:"column",sm:"row"},justifyContent:"space-between",children:[(0,n.jsx)(s.xvT,{fontWeight:"semibold",children:"Configure your storage and messaging provider"}),(0,n.jsx)(s.wpx,{onClick:()=>{e.push(u.AD)},children:"Configure"})]}),(0,n.jsxs)(s.xvT,{children:["Before Fides can process your privacy requests we need two simple steps to configure your storage and email client."," "]})]})})},p=e=>{let{children:t,title:i,padded:a=!0,mainProps:u}=e,p=(0,o.hz)(),f=(0,l.useRouter)(),h="/privacy-requests"===f.pathname||"/datastore-connection"===f.pathname,m=!(p.flags.messagingConfiguration&&h),{data:x}=(0,c.JE)(void 0,{skip:m}),{data:v}=(0,d.PW)(void 0,{skip:m}),y=p.flags.messagingConfiguration&&(!x||!v)&&h;return(0,n.jsxs)(s.kCb,{"data-testid":i,direction:"column",h:"100vh",children:[(0,n.jsxs)(r(),{children:[(0,n.jsxs)("title",{children:["Fides Admin UI - ",i]}),(0,n.jsx)("meta",{name:"description",content:"Privacy Engineering Platform"}),(0,n.jsx)("link",{rel:"icon",href:"/favicon.ico"})]}),(0,n.jsxs)(s.kCb,{as:"main",direction:"column",py:a?6:0,px:a?10:0,h:a?"calc(100% - 48px)":"full",flex:1,minWidth:0,overflow:"auto",...u,children:[y?(0,n.jsx)(g,{}):null,t]})]})}},129:function(e,t,i){"use strict";var n=i(24246),s=i(87949),a=i(86677),r=i(16134),l=i(25980),o=i(77830),d=i(65735),c=i(31793);t.Z=()=>{let e=(0,a.useRouter)(),t=e.pathname,{plus:i}=(0,l.hz)(),u="providers";t.startsWith(o.AD)?u="providers":t.startsWith(o.Wi)?u="templates":t.startsWith(o.DN)&&(u="digests");let g=[{key:"templates",label:"Templates",requiresPlus:!0,scopes:[d.Sh.MESSAGING_TEMPLATE_UPDATE],path:o.Wi},{key:"digests",label:"Digests",requiresPlus:!0,scopes:[d.Sh.DIGEST_CONFIG_READ],path:o.DN},{key:"providers",label:"Providers",requiresPlus:!1,scopes:[d.Sh.MESSAGING_CREATE_OR_UPDATE],path:o.AD}];i||(g=g.filter(e=>!e.requiresPlus));let p=(0,r.C)(c.uu);g=g.filter(e=>e.scopes.some(e=>p.includes(e)));let f=t=>{let i=g.find(e=>e.key===t);i&&e.push(i.path)},h=g.map(e=>({label:e.label,key:e.key}));return(0,n.jsx)("div",{className:"mb-6",children:(0,n.jsx)(s.Niu,{mode:"horizontal",selectedKeys:[u],onClick:e=>{let{key:t}=e;return f(t)},items:h})})}},58754:function(e,t,i){"use strict";var n=i(24246),s=i(87949),a=i(70788);t.Z=e=>{let{heading:t,breadcrumbItems:i,isSticky:r=!0,children:l,rightContent:o,style:d,...c}=e;return(0,n.jsxs)("div",{...c,style:r?{position:"sticky",top:"-24px",paddingTop:"24px",paddingBottom:"24px",paddingLeft:"40px",marginLeft:"-40px",paddingRight:"40px",marginRight:"-40px",marginTop:"-24px",left:0,zIndex:20,backgroundColor:"white",...d}:{paddingBottom:"24px",...d},children:[(0,n.jsxs)(s.jqI,{justify:"space-between",children:["string"==typeof t?(0,n.jsx)(s.lQT,{className:i||l?"pb-4":void 0,level:1,"data-testid":"page-heading",children:t}):t,o&&(0,n.jsx)("div",{"data-testid":"page-header-right-content",children:o})]}),!!i&&(0,n.jsx)(a.m,{className:l?"pb-4":void 0,items:i,"data-testid":"page-breadcrumb"}),l]})}},19904:function(e,t,i){"use strict";i.d(t,{Tg:function(){return r}});var n=i(24246),s=i(16134),a=i(31793);let r=e=>(0,s.C)(a.uu).filter(t=>e.includes(t)).length>0;t.ZP=e=>{let{scopes:t,children:i}=e;return r(t)?(0,n.jsx)(n.Fragment,{children:i}):null}},70788:function(e,t,i){"use strict";i.d(t,{m:function(){return d}});var n=i(24246),s=i(87949),a=i(79894),r=i.n(a),l=i(27378);let{Text:o}=s.AntTypography,d=e=>{let{items:t,...i}=e,a=(0,l.useMemo)(()=>null==t?void 0:t.map((e,i)=>{let a=i===t.length-1,l={...e},d=l.onClick&&!l.href;return("string"==typeof l.title&&(l.title=(0,n.jsx)(o,{style:{color:"inherit",maxWidth:a?void 0:400},ellipsis:!a,id:a?"breadcrumb-current-page":void 0,children:l.title})),d)?l.title=(0,n.jsx)(s.wpx,{type:"text",size:"small",icon:l.icon,onClick:l.onClick,className:"ant-breadcrumb-link -mt-px px-1 text-inherit",children:l.title}):(l.icon&&(l.title=(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("span",{className:"anticon align-text-bottom",children:l.icon}),l.title]})),l.href&&l.title&&(l.title=(0,n.jsx)(r(),{href:l.href,className:"ant-breadcrumb-link",children:l.title}),delete l.href)),l}),[t]);return(0,n.jsx)(s.zrq,{items:a,...i})}},8125:function(e,t,i){"use strict";i.d(t,{V:function(){return a},o:function(){return d}});var n=i(27378),s=i(32735);let a=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{enableSelection:i=!1,getRowKey:a,bulkActions:r,isLoading:l=!1,isFetching:o=!1,dataSource:d=[],totalRows:c=0,currentPage:u,pageSize:g,customTableProps:p={}}=t,f=(0,n.useCallback)(e=>{if(e&&"object"==typeof e){if(e.id)return String(e.id);if(e.key)return String(e.key)}return String(e)},[]),h=a||f,[m,x]=(0,n.useState)([]),[v,y]=(0,n.useState)([]),j=(0,n.useCallback)(()=>{x([]),y([])},[]),C=(0,n.useMemo)(()=>({selectedRowKeys:m,selectedRows:v,resetSelections:j}),[m,v,j]),b=(0,n.useMemo)(()=>{if(i)return{selectedRowKeys:m,onChange:(e,t)=>{x(e),y(t)}}},[i,m]),S=(0,n.useCallback)((t,i,n)=>{var s,a;let r=null!==(s=t.current)&&void 0!==s?s:e.pageIndex,l=null!==(a=t.pageSize)&&void 0!==a?a:e.pageSize,o=r!==e.pageIndex||l!==e.pageSize;o?(t.current&&t.current!==e.pageIndex&&e.updatePageIndex(t.current),t.pageSize&&t.pageSize!==e.pageSize&&e.updatePageSize(t.pageSize)):e.updateFilters(i||{});let d=n&&!Array.isArray(n)?n.field:void 0,c=n&&!Array.isArray(n)&&null!==n.order?n.order:void 0;o||e.updateSorting(d,c)},[e]),w=(0,n.useMemo)(()=>{var t,i,n,a,r;return{current:null!=u?u:e.pageIndex,pageSize:null!=g?g:e.pageSize,total:c,showSizeChanger:null===(a=null===(t=e.paginationConfig)||void 0===t?void 0:t.showSizeChanger)||void 0===a||a,pageSizeOptions:null!==(r=null===(n=e.paginationConfig)||void 0===n?void 0:null===(i=n.pageSizeOptions)||void 0===i?void 0:i.map(String))&&void 0!==r?r:s.VZ}},[u,e.pageIndex,g,e.pageSize,c,e.paginationConfig]),k=(0,n.useMemo)(()=>({dataSource:d,loading:l||o,pagination:w,onChange:S,rowKey:h,scroll:{x:"max-content",scrollToFirstRowOnChange:!0},size:"small",bordered:!0,...p}),[d,l,o,w,S,h,p]),_=m.map(String),T=v.length>0,z=(0,n.useCallback)(e=>{let t=null==r?void 0:r.actions.find(t=>t.key===e);return t?{disabled:!T||!!t.disabled&&t.disabled(v),loading:t.loading||!1,onClick:()=>t.onClick(v)}:{disabled:!0,loading:!1}},[r,T,v]);return(0,n.useMemo)(()=>({tableProps:k,selectionProps:b,selectionState:C,selectedRows:v,selectedKeys:_,hasSelectedRows:T,resetSelections:j,getBulkActionProps:z,isLoadingOrFetching:l||o,hasData:d.length>0}),[k,b,C,v,_,T,j,z,l,o,d.length])};var r=i(40431),l=i(17245);let o=()=>({filters:(0,r.WJ)(e=>e).withDefault({})}),d=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{pagination:t={},sorting:i={},search:s={},onStateChange:a,disableUrlState:d=!1}=e,{pageIndex:c,pageSize:u,resetPagination:g,updatePageIndex:p,updatePageSize:f,pageSizeOptions:h,showSizeChanger:m}=(0,l.h0)({...t,disableUrlState:d}),{sortKey:x,sortOrder:v,updateSorting:y,resetSorting:j}=(0,l.rK)({...i,disableUrlState:d}),{searchQuery:C,updateSearch:b,resetSearch:S}=(0,l.Rx)({...s,disableUrlState:d}),[w,k]=(0,n.useState)({}),_=(0,n.useMemo)(()=>d?null:o(),[d]),[T,z]=(0,r.XI)(null!=_?_:{},{history:"push"}),M=(0,n.useMemo)(()=>{var e;return{pageIndex:c,pageSize:u,sortKey:x,sortOrder:v,columnFilters:d?w:null!==(e=T.filters)&&void 0!==e?e:{},searchQuery:C}},[d,w,T,c,u,x,v,C]),E=(0,n.useCallback)((e,t)=>{y(e,t),g()},[y,g]),P=(0,n.useCallback)(e=>{if(d)k(e);else{let t=Object.fromEntries(Object.entries(e).filter(e=>{let[,t]=e;return null!=t}));z({filters:Object.keys(t).length>0?t:null})}g()},[d,z,g]),A=(0,n.useCallback)(e=>{b(e),g()},[b,g]),q=(0,n.useCallback)(()=>{d?k({}):z({filters:null}),g(),j(),S()},[d,z,g,j,S]);return(0,n.useEffect)(()=>{a&&a(M)},[M,a]),{state:M,pageIndex:M.pageIndex,pageSize:M.pageSize,updatePageIndex:p,updatePageSize:f,sortKey:M.sortKey,sortOrder:M.sortOrder,updateSorting:E,columnFilters:M.columnFilters,updateFilters:P,searchQuery:M.searchQuery,updateSearch:A,resetState:q,paginationConfig:{pageSizeOptions:h,showSizeChanger:m}}}},17828:function(e,t,i){"use strict";var n=i(24246);i(27378),t.Z=()=>(0,n.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",viewBox:"0 0 74.375 85",width:"20",height:"20",fill:"#fff",fillRule:"evenodd",stroke:"#000",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,n.jsx)("use",{xlinkHref:"#A",x:"2.188",y:"2.5"}),(0,n.jsx)("symbol",{id:"A",overflow:"visible",children:(0,n.jsxs)("g",{stroke:"none",children:[(0,n.jsx)("path",{d:"M16.558 12.75L0 38.591l16.558 25.841 13.227-3.324.654-44.869-13.881-3.489z",fill:"#876929"}),(0,n.jsx)("path",{d:"M35.049 59.786l-18.491 4.645V12.75l18.491 4.645v42.391z",fill:"#d9a741"}),(0,n.jsxs)("g",{fill:"#876929",children:[(0,n.jsx)("path",{d:"M32.849 21.614L35.05 80 70 62.867l-.01-43.615-8.914 1.448-28.228.913z"}),(0,n.jsx)("path",{d:"M46.184 33.149l10.906-.632 10.778-19.164L40.612 0 30.439 4.364l15.745 28.785z"})]}),(0,n.jsx)("path",{d:"M40.612 0l27.256 13.353-10.778 19.164L40.612 0z",fill:"#d9a741"}),(0,n.jsx)("path",{d:"M35.049 5.539L57.09 44.742l3.788 22.595L35.049 80l-10.46-5.131V9.64l10.45-4.101h.01z",fill:"#876929"}),(0,n.jsx)("path",{d:"M69.991 19.251L70 62.867 35.05 80V5.539l22.041 39.203 12.899-25.491z",fill:"#d9a741"})]})})]})},44907:function(e,t,i){"use strict";var n=i(24246);i(27378),t.Z=()=>(0,n.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",preserveAspectRatio:"xMidYMid",viewBox:"-0.5 0 257 257",children:(0,n.jsx)("path",{fill:"#C02428",d:"M128.418 80.526c-26.51 0-48.884 21.475-48.884 48.728a48.197 48.197 0 0014.187 34.579 48.532 48.532 0 0034.697 14.14c26.511 0 48.875-21.476 48.875-48.719 0-27.253-22.364-48.728-48.875-48.728zm-76.22 47.895c0-41.285 33.968-75.138 75.395-75.138 41.417 0 75.385 33.853 75.385 75.138 0 2.478 0 5.788-.825 8.266-.835 7.422 4.972 13.2 12.43 13.2 12.43 0 14.08-15.678 14.08-21.466 0-55.328-45.573-100.746-101.07-100.746-55.518 0-101.07 45.418-101.07 100.746 0 55.339 45.552 100.747 101.07 100.747 29.822 0 56.333-12.388 74.56-33.03l20.703 17.342c-22.364 26.43-57.158 42.952-94.448 42.952-34.097.105-66.827-13.35-90.932-37.384C13.37 195.016-.118 162.392 0 128.411 0 58.228 57.159.432 128.418.432 198.832.432 256 58.238 256 128.432c0 28.075-13.256 51.205-40.591 51.205-11.605 0-19.053-5.787-23.2-11.565-13.255 21.476-37.29 35.508-64.626 35.508-20.017.068-39.234-7.827-53.388-21.933a74.755 74.755 0 01-22.008-53.205l.01-.02zm76.21-22.297c12.43 0 22.374 9.91 22.374 22.297 0 12.388-9.944 22.298-22.364 22.298a22.322 22.322 0 01-15.848-6.504 22.169 22.169 0 01-6.526-15.794c0-12.387 9.944-22.297 22.374-22.297h-.01z"})})},5144:function(e,t,i){"use strict";var n=i(24246);t.Z=()=>(0,n.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",preserveAspectRatio:"xMidYMid",viewBox:"0 0 256 256",children:(0,n.jsx)("path",{fill:"#F12E45",d:"M128 0c70.656 0 128 57.344 128 128s-57.344 128-128 128S0 198.656 0 128 57.344 0 128 0zm0 33.792c-52.224 0-94.208 41.984-94.208 94.208S75.776 222.208 128 222.208s94.208-41.984 94.208-94.208S180.224 33.792 128 33.792zm31.744 99.328c14.704 0 26.624 11.92 26.624 26.624 0 14.704-11.92 26.624-26.624 26.624-14.704 0-26.624-11.92-26.624-26.624 0-14.704 11.92-26.624 26.624-26.624zm-63.488 0c14.704 0 26.624 11.92 26.624 26.624 0 14.704-11.92 26.624-26.624 26.624-14.704 0-26.624-11.92-26.624-26.624 0-14.704 11.92-26.624 26.624-26.624zm63.488-63.488c14.704 0 26.624 11.92 26.624 26.624 0 14.704-11.92 26.624-26.624 26.624-14.704 0-26.624-11.92-26.624-26.624 0-14.704 11.92-26.624 26.624-26.624zm-63.488 0c14.704 0 26.624 11.92 26.624 26.624 0 14.704-11.92 26.624-26.624 26.624-14.704 0-26.624-11.92-26.624-26.624 0-14.704 11.92-26.624 26.624-26.624z"})})},42478:function(e,t,i){"use strict";i.d(t,{FU:function(){return d},JE:function(){return s},Ki:function(){return u},SU:function(){return g},W:function(){return p},h9:function(){return a},jc:function(){return n},qt:function(){return o},sn:function(){return c}});let{useGetEmailInviteStatusQuery:n,useGetActiveMessagingProviderQuery:s,useCreateMessagingConfigurationMutation:a,useCreateMessagingConfigurationSecretsMutation:r,useGetMessagingConfigurationDetailsQuery:l,useGetMessagingConfigurationsQuery:o,useGetMessagingConfigurationByKeyQuery:d,useUpdateMessagingConfigurationByKeyMutation:c,useUpdateMessagingConfigurationSecretsByKeyMutation:u,useCreateTestConnectionMessageMutation:g,useDeleteMessagingConfigurationByKeyMutation:p}=i(78780).u.injectEndpoints({endpoints:e=>({getEmailInviteStatus:e.query({query:()=>({url:"/messaging/email-invite/status"}),providesTags:()=>["Email Invite Status"]}),createMessagingConfiguration:e.mutation({query:e=>({url:"messaging/config",method:"POST",body:e}),invalidatesTags:["Messaging Config","Configuration Settings"]}),getActiveMessagingProvider:e.query({queryFn:async(e,t,i,n)=>{let s=await n({url:"messaging/default/active"});return s.error&&404===s.error.status?{data:null}:s},providesTags:["Messaging Config"]}),createMessagingConfigurationSecrets:e.mutation({query:e=>({url:"messaging/default/".concat(e.service_type,"/secret"),method:"PUT",body:e.details}),invalidatesTags:["Messaging Config","Configuration Settings"]}),getMessagingConfigurationDetails:e.query({query:e=>({url:"messaging/default/".concat(e.type)}),providesTags:["Messaging Config"]}),getMessagingConfigurations:e.query({query:()=>({url:"messaging/config"}),providesTags:["Messaging Config"]}),getMessagingConfigurationByKey:e.query({query:e=>({url:"messaging/config/".concat(e.key)}),providesTags:["Messaging Config"]}),createTestConnectionMessage:e.mutation({query:e=>({url:"messaging/test/".concat(e.service_type),method:"POST",body:e.details}),invalidatesTags:["Messaging Config"]}),updateMessagingConfigurationByKey:e.mutation({query:e=>({url:"messaging/config/".concat(e.key),method:"PATCH",body:e.config}),invalidatesTags:["Messaging Config","Configuration Settings"]}),updateMessagingConfigurationSecretsByKey:e.mutation({query:e=>({url:"messaging/config/".concat(e.key,"/secret"),method:"PUT",body:e.secrets}),invalidatesTags:["Messaging Config","Configuration Settings"]}),deleteMessagingConfigurationByKey:e.mutation({query:e=>({url:"messaging/config/".concat(e.key),method:"DELETE"}),invalidatesTags:["Messaging Config","Configuration Settings"]})})})},66605:function(e,t,i){"use strict";i.r(t),i.d(t,{default:function(){return E}});var n,s,a=i(24246),r=i(77213),l=i(129),o=i(58754),d=i(19904),c=i(87949),u=i(86677),g=i(77830),p=i(47935),f=i(812),h=i(17245),m=i(27378),x=i(8125),v=i(7426),y=i(65735),j=i(17828),C=i(44907),b=i(5144),S=i(42478),w=i(51980),k=i(16394),_=e=>{let{messagingConfig:t}=e,{last_test_succeeded:i,last_test_timestamp:n}=t;if(!n)return(0,a.jsx)(c.j8w,{children:"Verify configuration"});let s=new Date(n),r=(0,k.p6)(s),l=(0,w.B)(s,new Date,{addSuffix:!0});return(0,a.jsx)(c.esZ,{title:"Last verified: ".concat(r),children:(0,a.jsxs)(c.j8w,{color:i?"success":"error","data-testid":i?"test-success":"test-error",children:[i?"Succeeded":"Failed"," ",l]})})};(n=s||(s={})).NAME="name",n.VERIFICATION_STATUS="verification_status",n.ENABLED="enabled",n.ACTIONS="actions";let T=()=>{let e=(0,u.useRouter)(),{handleError:t}=(0,h.HK)(),[i,n]=(0,m.useState)(null),[r]=(0,v.L)(),[l]=(0,S.W)(),o=(0,d.Tg)([y.Sh.MESSAGING_CREATE_OR_UPDATE]),[p,w]=(0,m.useState)(!1),[k,T]=(0,m.useState)(null),z=(0,x.o)({pagination:{defaultPageSize:25,pageSizeOptions:[25,50,100]},sorting:{validColumns:Object.values(s),defaultSortKey:"name",defaultSortOrder:"ascend"}}),{data:M,isLoading:E}=(0,S.JE)(),{data:P,isLoading:A}=(0,S.qt)();(0,m.useEffect)(()=>{M?n(M.service_type):n(null)},[M]);let q=(0,m.useCallback)(async e=>{try{let i=await r({notifications:{notification_service_type:e}});(0,f.D4)(i)?t(i.error):(n(e),c.Pg3.success(e?"Updated active messaging config":"Disabled active messaging config"))}catch(e){t(e)}},[r,t,n]),I=(0,m.useCallback)(t=>{var i,n;let s=g.GE.replace("[key]",t.key);e.push({pathname:s,query:{last_test_succeeded:null!==(i=t.last_test_succeeded)&&void 0!==i?i:"",last_test_timestamp:null!==(n=t.last_test_timestamp)&&void 0!==n?n:""}})},[e]),N=(0,m.useCallback)((e,t)=>{T({key:e,name:t}),w(!0)},[]),D=(0,m.useCallback)(async()=>{if(k)try{let e=await l({key:k.key});(0,f.D4)(e)?t(e.error):c.Pg3.success("Messaging configuration successfully deleted")}catch(e){t(e)}finally{w(!1),T(null)}},[k,l,t]),R=(0,m.useCallback)(()=>{w(!1),T(null)},[]),O=(0,m.useMemo)(()=>({enableSelection:!1,getRowKey:e=>e.key,isLoading:A||E,dataSource:(null==P?void 0:P.items)||[],totalRows:(null==P?void 0:P.total)||0,customTableProps:{size:"small",pagination:{hideOnSinglePage:!0,showSizeChanger:!0,pageSizeOptions:["25","50","100"]}}}),[A,E,null==P?void 0:P.items,null==P?void 0:P.total]),L=(0,x.V)(z,O),F=(0,m.useMemo)(()=>[{title:"Provider type",dataIndex:"name",key:"name",render:(e,t)=>(0,a.jsxs)(c.Ugi,{children:[(()=>{switch(t.service_type){case"mailgun":return(0,a.jsx)(C.Z,{});case"twilio_text":case"twilio_email":default:return(0,a.jsx)(b.Z,{});case"aws_ses":return(0,a.jsx)(j.Z,{})}})(),(0,a.jsx)(c.xvT,{children:e})]})},{title:"Verification status",key:"verification_status",render:(e,t)=>(0,a.jsx)(_,{messagingConfig:t})},{title:"Enabled",key:"enabled",width:100,render:(e,t)=>{let n=t.service_type===i,s=!!t.last_test_timestamp&&""!==t.last_test_timestamp&&!1===t.last_test_succeeded&&!n,r=(0,a.jsx)(c.rAg,{checked:n,disabled:s,onChange:e=>{e?q(t.service_type):q(null)}});return s?(0,a.jsx)(c.esZ,{title:"This provider cannot be enabled because its last test failed. Please fix the configuration and test again.",children:r}):r}},{title:"Actions",key:"actions",render:(e,t)=>(0,a.jsxs)(c.Ugi,{children:[o&&(0,a.jsx)(c.wpx,{onClick:e=>{e.stopPropagation(),I(t)},size:"small",icon:(0,a.jsx)(c.PJP.I8b,{}),title:"Edit","aria-label":"Edit messaging configuration","data-testid":"edit-messaging-config-btn"}),o&&(0,a.jsx)(c.wpx,{onClick:e=>{e.stopPropagation(),N(t.key,t.name)},size:"small",icon:(0,a.jsx)(c.PJP.ZNm,{}),title:"Delete","aria-label":"Delete messaging configuration","data-testid":"delete-messaging-config-btn"})]})}],[o,i,I,N,q]),Z=(0,m.useMemo)(()=>(0,a.jsx)(c.$zI,{title:"Delete messaging configuration",open:p,onCancel:R,footer:[(0,a.jsx)(c.wpx,{onClick:R,children:"Cancel"},"cancel"),(0,a.jsx)(c.wpx,{type:"primary",danger:!0,onClick:D,children:"Delete"},"delete")],children:(0,a.jsxs)(c.vyj,{direction:"vertical",children:[(0,a.jsxs)(c.xvT,{children:['Are you sure you want to delete "',(0,a.jsx)("strong",{children:null==k?void 0:k.name}),'" messaging configuration?']}),(0,a.jsx)(c.xvT,{children:"This action cannot be undone."})]})}),[p,null==k?void 0:k.name,R,D]);return{columns:F,tableProps:L.tableProps,selectionProps:L.selectionProps,userCanUpdate:o,isLoading:A||E,deleteModal:Z,handleEditConfiguration:I,handleDeleteConfiguration:N,setActiveServiceType:q}},z=()=>(0,a.jsx)(c.gCW,{mt:6,p:10,spacing:4,borderRadius:"base",maxW:"70%","data-testid":"no-results-notice",alignSelf:"center",margin:"auto",children:(0,a.jsxs)(c.gCW,{children:[(0,a.jsx)(c.xvT,{fontSize:"md",fontWeight:"600",children:"No messaging providers found."}),(0,a.jsx)(c.xvT,{fontSize:"sm",children:'Click "Add a messaging provider" to add your first messaging provider to Fides.'})]})}),M=()=>{let{columns:e,tableProps:t,userCanUpdate:i,isLoading:n,deleteModal:s}=T(),r=(0,u.useRouter)();return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)(c.xvT,{fontSize:"sm",mb:8,width:{base:"100%",lg:"70%"},children:["Fides requires a messaging provider for sending processing notices to privacy request subjects, and allows for Subject Identity Verification in privacy requests. Please follow the"," ",(0,a.jsx)(c.xvT,{as:"span",color:"complimentary.500",children:"documentation"})," ","to setup a messaging service that Fides supports. Ensure you have completed the setup for the preferred messaging provider and have the details handy prior to the following steps."]}),(0,a.jsxs)(c.kCb,{flex:1,direction:"column",overflow:"auto",children:[i&&(0,a.jsx)(c.vyj,{direction:"horizontal",style:{width:"100%",justifyContent:"flex-end",marginBottom:16},children:(0,a.jsx)(c.wpx,{onClick:()=>{r.push(g.Nu)},role:"link",type:"primary",icon:(0,a.jsx)(c.PJP.mm_,{}),iconPosition:"end","data-testid":"add-messaging-provider-btn",children:"Add a messaging provider"})}),n?(0,a.jsx)(p.I4,{rowHeight:36,numRows:5}):(0,a.jsx)(c.V5H,{...t,columns:e,locale:{emptyText:(0,a.jsx)(z,{})}})]}),s]})};var E=()=>(0,a.jsx)(r.Z,{title:"Notifications",children:(0,a.jsxs)(d.ZP,{scopes:[y.Sh.MESSAGING_CREATE_OR_UPDATE],children:[(0,a.jsx)(o.Z,{heading:"Notifications"}),(0,a.jsx)(l.Z,{}),(0,a.jsx)(M,{})]})})}},function(e){e.O(0,[431,7245,2888,9774,179],function(){return e(e.s=30890)}),_N_E=e.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9196],{6446:function(e){e.exports=function(e,t,a,s){var r=-1,i=null==e?0:e.length;for(s&&i&&(a=e[++r]);++r<i;)a=t(a,e[r],r,e);return a}},67375:function(e,t,a){var s=a(52033),r=a(80068);e.exports=function(e,t){var a=-1,i=r(e)?Array(e.length):[];return s(e,function(e,s,r){i[++a]=t(e,s,r)}),i}},74833:function(e,t,a){var s=a(56127),r=/^\s+/;e.exports=function(e){return e?e.slice(0,s(e)+1).replace(r,""):e}},56632:function(e,t,a){var s=a(89278),r=a(80068),i=a(50098);e.exports=function(e){return function(t,a,l){var n=Object(t);if(!r(t)){var o=s(a,3);t=i(t),a=function(e){return o(n[e],e,n)}}var c=e(t,a,l);return c>-1?n[o?t[c]:c]:void 0}}},56127:function(e){var t=/\s/;e.exports=function(e){for(var a=e.length;a--&&t.test(e.charAt(a)););return a}},64925:function(e,t,a){var s=a(56632)(a(66259));e.exports=s},66259:function(e,t,a){var s=a(95372),r=a(89278),i=a(47991),l=Math.max;e.exports=function(e,t,a){var n=null==e?0:e.length;if(!n)return -1;var o=null==a?0:i(a);return o<0&&(o=l(n+o,0)),s(e,r(t,3),o)}},55807:function(e,t,a){var s=a(66070),r=a(89278),i=a(67375),l=a(19785);e.exports=function(e,t){return(l(e)?s:i)(e,r(t,3))}},82846:function(e,t,a){var s=a(77400);e.exports=function(){return s.Date.now()}},32526:function(e,t,a){var s=a(68267)(function(e,t,a){return e+(a?"_":"")+t.toLowerCase()});e.exports=s},94919:function(e,t,a){var s=a(91936),r=1/0;e.exports=function(e){return e?(e=s(e))===r||e===-r?(e<0?-1:1)*17976931348623157e292:e==e?e:0:0===e?e:0}},47991:function(e,t,a){var s=a(94919);e.exports=function(e){var t=s(e),a=t%1;return t==t?a?t-a:t:0}},91936:function(e,t,a){var s=a(74833),r=a(11611),i=a(55193),l=0/0,n=/^[-+]0x[0-9a-f]+$/i,o=/^0b[01]+$/i,c=/^0o[0-7]+$/i,d=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(i(e))return l;if(r(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=r(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=s(e);var a=o.test(e);return a||c.test(e)?d(e.slice(2),a?2:8):n.test(e)?l:+e}},86548:function(e,t,a){(window.__NEXT_P=window.__NEXT_P||[]).push(["/reporting/datamap",function(){return a(27901)}])},624:function(e,t,a){"use strict";var s=a(24246),r=a(87949),i=a(27378);let l=e=>{let t=e.split("."),a=[];return t.forEach(e=>{let t=a.length>0?a[a.length-1]:null;t?a.push("".concat(t,".").concat(e)):a.push(e)}),a},n=(e,t)=>{let a=l(t).filter(e=>e!==t);return e.filter(e=>a.includes(e)).length>0},o=(e,t)=>!!(e===t||e.startsWith("".concat(t,"."))),c=(e,t,a)=>{let s=null!=a?a:[];return e.forEach(e=>{e.children&&c(e.children,t,s),o(e.value,t)&&s.push(e)}),s},d=e=>{let{node:t,isChecked:a,onChecked:i,isExpanded:l,onExpanded:n,isIndeterminate:o,isDisabled:c,children:d}=e,{value:u,label:_}=t,p=!!t.children&&t.children.length>0;return(0,s.jsxs)(r.xuv,{children:[(0,s.jsxs)(r.xuv,{display:"flex",justifyContent:"space-between",_hover:{backgroundColor:"gray.100",cursor:"pointer"},onClick:()=>n(t),minHeight:8,children:[(0,s.jsx)(r.XZJ,{colorScheme:"complimentary",value:u,isChecked:!o&&a,isIndeterminate:o,isDisabled:c,onChange:()=>i(t),mx:2,"data-testid":"checkbox-".concat(_),children:_}),p?(0,s.jsx)(r.wpx,{"data-testid":"expand-".concat(_),"aria-label":l?"collapse":"expand",icon:(0,s.jsx)(r.v4q,{boxSize:5}),type:"text",onClick:()=>n(t),className:l?"rotate-180":void 0}):null]}),d&&(0,s.jsx)(r.xuv,{ml:5,children:d})]})};t.ZP=e=>{let{nodes:t,selected:a,onSelected:u,..._}=e,[p,m]=(0,i.useState)([]),[E,S]=(0,i.useState)([]);(0,i.useEffect)(()=>{let e=Array.from(new Set([...a.map(e=>l(e)).reduce((e,t)=>e.concat(t),[]),...a.map(e=>c(t,e)).reduce((e,t)=>e.concat(t),[]).map(e=>e.value)]));S(e),m(e)},[a,t]);let A=e=>{let s=[],r=[];p.indexOf(e.value)>=0?(s=p.filter(t=>!o(t,e.value)),r=a.filter(t=>!o(t,e.value))):(s=[...p,...c(t,e.value).map(e=>e.value)],r=[...a,e.value]),m(s),u(r)},g=e=>{E.indexOf(e.value)>=0?S(E.filter(t=>!o(t,e.value))):S([...E,e.value])},h=e=>{if(e.children){let r=p.indexOf(e.value)>=0,l=E.indexOf(e.value)>=0,o=c(t,e.value),u=r&&e.children.length>0&&p.filter(t=>t.startsWith("".concat(e.value,"."))).length+1!==o.length,_=n(a,e.value);return(0,s.jsx)(d,{node:e,isChecked:r,onChecked:A,isExpanded:l,onExpanded:g,isDisabled:_,isIndeterminate:u,children:l?e.children.map(e=>(0,s.jsx)(i.Fragment,{children:h(e)},e.value)):void 0})}return null};return(0,s.jsx)(r.xuv,{..._,children:t.map(e=>(0,s.jsx)(r.xuv,{children:h(e)},e.value))})}},35287:function(e,t,a){"use strict";var s=a(24246),r=a(87949),i=a(88038),l=a.n(i);a(27378),t.Z=e=>{let{children:t,title:a,fullHeight:i,fullWidth:n,mainProps:o}=e;return(0,s.jsxs)(r.kCb,{"data-testid":a,direction:"column",height:i?"100vh":"calc(100vh - 48px)",width:n?"100vw":"calc(100vw - 240px)",children:[(0,s.jsxs)(l(),{children:[(0,s.jsxs)("title",{children:["Fides Admin UI - ",a]}),(0,s.jsx)("meta",{name:"description",content:"Privacy Engineering Platform"}),(0,s.jsx)("link",{rel:"icon",href:"/favicon.ico"})]}),(0,s.jsx)(r.kCb,{px:10,py:6,as:"main",overflow:"auto",direction:"column",flex:1,minWidth:0,...o,children:t})]})}},19904:function(e,t,a){"use strict";a.d(t,{Tg:function(){return l}});var s=a(24246),r=a(16134),i=a(31793);let l=e=>(0,r.C)(i.uu).filter(t=>e.includes(t)).length>0;t.ZP=e=>{let{scopes:t,children:a}=e;return l(t)?(0,s.jsx)(s.Fragment,{children:a}):null}},34929:function(e,t,a){"use strict";var s=a(24246),r=a(64925),i=a.n(r),l=a(27378),n=a(16134),o=a(30002),c=a(28079),d=a(57072);let u=()=>{let{isLoading:e}=(0,c.fd)(),t=(0,n.C)(c.U3),{isLoading:a}=(0,d.MO)(),s=(0,n.C)(d.qb),{isLoading:r}=(0,o.te)();return{dataUses:t,dataSubjects:(0,n.C)(o.ZL),dataCategories:s,isLoading:e||a||r}};t.Z=()=>{let{dataUses:e,dataCategories:t,dataSubjects:a,isLoading:r}=u(),n=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return e.split(".").slice(0,t).join(".")},o=function(e,t){let a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,s=t(e);if(!s)return{};let r=t(n(e,a)),i=!!s.parent_key;return{name:s.name||void 0,primaryName:i&&(null==r?void 0:r.name)!==s.name&&(null==r?void 0:r.name)||void 0}},c=function(e,t){let a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,{name:r,primaryName:i}=o(e,t,a);return r?i?(0,s.jsxs)(l.Fragment,{children:[(0,s.jsxs)("strong",{children:[i,":"]})," ",r]},e):(0,s.jsx)("strong",{children:r},e):e},d=t=>i()(e,{fides_key:t}),_=e=>i()(t,{fides_key:e}),p=e=>i()(a,{fides_key:e});return{getDataUses:()=>e,getDataUseByKey:d,getDataUseDisplayName:e=>c(e,d,1),getDataUseDisplayNameProps:e=>o(e,d,1),getDataCategories:()=>t,getDataCategoryByKey:_,getDataCategoryDisplayName:e=>c(e,_,2),getDataCategoryDisplayNameProps:e=>o(e,_,2),getDataSubjects:()=>a,getDataSubjectByKey:p,getDataSubjectDisplayName:e=>{let t=p(e);return t?t.name:e},getPrimaryKey:n,isLoading:r}}},2525:function(e,t,a){"use strict";a.d(t,{Q:function(){return n}});var s=a(24246),r=a(87949),i=a(27378),l=a(3110);let n=e=>{let{values:t,columnState:a,tagProps:n,onTagClose:o,onStateChange:c,...d}=e,{isExpanded:u,isWrapped:_,version:p}=a||{},[m,E]=(0,i.useState)(!u),[S,A]=(0,i.useState)(!!_),[g,h]=(0,i.useState)(u?t:null==t?void 0:t.slice(0,2));(0,i.useEffect)(()=>{E(!u)},[u,p]),(0,i.useEffect)(()=>{A(!!_)},[_]),(0,i.useEffect)(()=>{(null==t?void 0:t.length)?h(m?t.slice(0,2):t):h(t)},[m,t,c]),(0,i.useEffect)(()=>{(null==t?void 0:t.length)&&t.length<=2&&!m&&(E(!0),null==c||c(!1))},[t,c,m]);let f=(0,i.useCallback)(()=>{h(null==t?void 0:t.slice(0,2)),E(!0),null==c||c(!1)},[t,c]),T=(0,i.useCallback)(()=>{E(!1),null==c||c(!0)},[c]),x=(0,i.useCallback)(()=>{m?T():f()},[m,T,f]);return(0,i.useMemo)(()=>(null==g?void 0:g.length)?(0,s.jsxs)(r.jqI,{align:m?"center":"start",wrap:S?"wrap":"nowrap",vertical:!m,gap:"small","data-testid":"tag-expandable-cell",style:{overflowX:"auto",...d.style},...d,children:[g.map(e=>(0,s.jsx)(r.j8w,{color:"white","data-testid":e.key,onClose:o?()=>o(e.key):void 0,...n,...e.tagProps,children:(0,s.jsx)(r.lKn,{ellipsis:!!m&&{tooltip:!0},style:{color:"inherit",maxWidth:m?l.TD:void 0},children:e.label})},e.key)),t&&t.length>2&&(0,s.jsx)(r.wpx,{type:"link",size:"small",onClick:e=>{e.stopPropagation(),x()},className:"h-auto p-0",style:{fontSize:"var(--ant-font-size)"},children:m?"+".concat(t.length-2," more"):l.T5})]}):(0,s.jsx)("span",{"data-testid":"tag-expandable-cell-empty"}),[g,m,S,d,t,n,o,x])}},3110:function(e,t,a){"use strict";a.d(t,{DI:function(){return n},T5:function(){return i},TD:function(){return l}});var s=a(24246),r=a(87949);let i="show less",l=150,n=[{key:"expand-all",label:"Expand all",icon:(0,s.jsx)(r.PJP.jbG,{})},{key:"collapse-all",label:"Collapse all",icon:(0,s.jsx)(r.PJP.MVB,{})}]},26070:function(e,t,a){"use strict";a.d(t,{v:function(){return o},Q:function(){return c.Q}});var s=a(24246),r=a(87949),i=a(27378),l=a(3110);let{Text:n}=r.AntTypography,o=e=>{let{values:t,valueSuffix:a,columnState:o}=e,{isExpanded:c,version:d}=o||{},[u,_]=(0,i.useState)(!c);(0,i.useEffect)(()=>{_(!c)},[c,d]);let p=(0,i.useCallback)(()=>{_(!0)},[]),m=(0,i.useCallback)(()=>{_(!1)},[]),E=(0,i.useCallback)(()=>{u?m():p()},[u,m,p]);return(0,i.useMemo)(()=>(null==t?void 0:t.length)?1===t.length?(0,s.jsx)(n,{ellipsis:!0,"data-testid":"list-expandable-cell-single",children:t[0]}):(0,s.jsxs)(r.jqI,{align:u?"center":"flex-start",vertical:!u,gap:u?"small":"none","data-testid":"list-expandable-cell",children:[u?(0,s.jsxs)(n,{ellipsis:!0,children:[t.length," ",a]}):(0,s.jsx)(r.krs,{dataSource:t,renderItem:e=>(0,s.jsx)("li",{children:e})}),(0,s.jsx)(r.wpx,{type:"link",size:"small",onClick:e=>{e.stopPropagation(),E()},className:"h-auto p-0",style:{fontSize:"var(--ant-font-size)"},children:u?"view":l.T5})]}):null,[u,t,a,E])};var c=a(2525)},22583:function(e,t,a){"use strict";a.d(t,{j:function(){return i}});var s=a(87949),r=a(65735);let i={[r.Ej.TAXONOMY_WHITE]:s.tAb.DEFAULT,[r.Ej.TAXONOMY_RED]:s.tAb.ERROR,[r.Ej.TAXONOMY_ORANGE]:s.tAb.WARNING,[r.Ej.TAXONOMY_YELLOW]:s.tAb.CAUTION,[r.Ej.TAXONOMY_GREEN]:s.tAb.SUCCESS,[r.Ej.TAXONOMY_BLUE]:s.tAb.INFO,[r.Ej.TAXONOMY_PURPLE]:s.tAb.ALERT,[r.Ej.SANDSTONE]:s.tAb.SANDSTONE,[r.Ej.MINOS]:s.tAb.MINOS}},59001:function(e,t,a){"use strict";a.d(t,{Ch:function(){return o},Lo:function(){return l},_g:function(){return c},ac:function(){return i},aq:function(){return d}});var s,r,i,l,n=a(65735);let o="root";(s=i||(i={})).DATA_CATEGORY="data_category",s.DATA_USE="data_use",s.DATA_SUBJECT="data_subject",s.SYSTEM_GROUP="system_group",(r=l||(l={})).DATA_CATEGORIES="Data categories",r.DATA_USES="Data uses",r.DATA_SUBJECTS="Data subjects",r.SYSTEM_GROUPS="System groups";let c=e=>{switch(e){case"data_category":return"Data categories";case"data_use":return"Data uses";case"data_subject":return"Data subjects";case"system_group":return"System groups";default:return e}},d=e=>{switch(e){case"data_category":return{UPDATE:n.Sh.DATA_CATEGORY_UPDATE,CREATE:n.Sh.DATA_CATEGORY_CREATE,DELETE:n.Sh.DATA_CATEGORY_DELETE,READ:n.Sh.DATA_CATEGORY_READ};case"data_use":return{UPDATE:n.Sh.DATA_USE_UPDATE,CREATE:n.Sh.DATA_USE_CREATE,DELETE:n.Sh.DATA_USE_DELETE,READ:n.Sh.DATA_USE_READ};case"data_subject":return{UPDATE:n.Sh.DATA_SUBJECT_UPDATE,CREATE:n.Sh.DATA_SUBJECT_CREATE,DELETE:n.Sh.DATA_SUBJECT_DELETE,READ:n.Sh.DATA_SUBJECT_READ};case"system_group":return{UPDATE:n.Sh.SYSTEM_GROUP_UPDATE,CREATE:n.Sh.SYSTEM_GROUP_CREATE,DELETE:n.Sh.SYSTEM_GROUP_DELETE,READ:n.Sh.SYSTEM_GROUP_READ};default:return{UPDATE:n.Sh.TAXONOMY_UPDATE,CREATE:n.Sh.TAXONOMY_CREATE,DELETE:n.Sh.TAXONOMY_DELETE,READ:n.Sh.TAXONOMY_READ}}}},90673:function(e,t,a){"use strict";a.d(t,{Cd:function(){return i},Xl:function(){return l}});var s=a(65735),r=a(59001);let i=(e,t)=>{let a;if(null==t&&e.every(e=>void 0===e.parent_key))a=e;else{let s=null!=t?t:null;a=e.filter(e=>e.parent_key===s)}return a.map(t=>{var a,s;let r=t.fides_key;return{value:t.fides_key,label:""===t.name||null==t.name?t.fides_key:t.name,description:t.description,children:i(e,r),is_default:null!==(a=t.is_default)&&void 0!==a&&a,active:null!==(s=t.active)&&void 0!==s&&s}})},l=e=>{switch(e){case r.ac.DATA_CATEGORY:return s.P6.DATA_CATEGORY;case r.ac.DATA_SUBJECT:return s.P6.DATA_SUBJECT;case r.ac.DATA_USE:return s.P6.DATA_USE;default:return}}},27901:function(e,t,a){"use strict";a.r(t),a.d(t,{default:function(){return eC}});var s,r,i,l,n=a(24246),o=a(27378),c=a(35287),d=a(58754),u=a(71795),_=a(65735);(s=i||(i={})).COLUMN_EXPANSION_STATE="datamap-column-expansion-state",s.COLUMN_NAMES="datamap-column-names",s.COLUMN_ORDER="datamap-column-order",s.COLUMN_SIZING="datamap-column-sizing",s.COLUMN_VISIBILITY="datamap-column-visibility",s.CUSTOM_REPORT_ID="datamap-custom-report-id",s.FILTERS="datamap-filters",s.GROUP_BY="datamap-group-by",s.SORTING_STATE="datamap-sorting-state",s.WRAPPING_COLUMNS="datamap-wrapping-columns",(r=l||(l={})).SYSTEM_NAME="system_name",r.DATA_USE="data_uses",r.DATA_CATEGORY="data_categories",r.DATA_SUBJECT="data_subjects",r.LEGAL_NAME="legal_name",r.DPO="dpo",r.LEGAL_BASIS_FOR_PROCESSING="legal_basis_for_processing",r.ADMINISTRATING_DEPARTMENT="administrating_department",r.COOKIE_MAX_AGE_SECONDS="cookie_max_age_seconds",r.PRIVACY_POLICY="privacy_policy",r.LEGAL_ADDRESS="legal_address",r.COOKIE_REFRESH="cookie_refresh",r.DATA_SECURITY_PRACTICES="data_security_practices",r.DATA_SHARED_WITH_THIRD_PARTIES="data_shared_with_third_parties",r.DATA_STEWARDS="data_stewards",r.DECLARATION_NAME="declaration_name",r.DOES_INTERNATIONAL_TRANSFERS="does_international_transfers",r.DPA_LOCATION="dpa_location",r.DESTINATIONS="egress",r.EXEMPT_FROM_PRIVACY_REGULATIONS="exempt_from_privacy_regulations",r.FEATURES="features",r.FIDES_KEY="fides_key",r.FLEXIBLE_LEGAL_BASIS_FOR_PROCESSING="flexible_legal_basis_for_processing",r.IMPACT_ASSESSMENT_LOCATION="impact_assessment_location",r.SOURCES="ingress",r.JOINT_CONTROLLER_INFO="joint_controller_info",r.LEGAL_BASIS_FOR_PROFILING="legal_basis_for_profiling",r.LEGAL_BASIS_FOR_TRANSFERS="legal_basis_for_transfers",r.LEGITIMATE_INTEREST_DISCLOSURE_URL="legitimate_interest_disclosure_url",r.PROCESSES_PERSONAL_DATA="processes_personal_data",r.REASON_FOR_EXEMPTION="reason_for_exemption",r.REQUIRES_DATA_PROTECTION_ASSESSMENTS="requires_data_protection_assessments",r.RESPONSIBILITY="responsibility",r.RETENTION_PERIOD="retention_period",r.SHARED_CATEGORIES="shared_categories",r.SPECIAL_CATEGORY_LEGAL_BASIS="special_category_legal_basis",r.THIRD_PARTIES="third_parties",r.COOKIES="cookies",r.USES_COOKIES="uses_cookies",r.USES_NON_COOKIE_ACCESS="uses_non_cookie_access",r.USES_PROFILING="uses_profiling",r.SYSTEM_UNDECLARED_DATA_CATEGORIES="system_undeclared_data_categories",r.DATA_USE_UNDECLARED_DATA_CATEGORIES="data_use_undeclared_data_categories",r.PROCESSES_SPECIAL_CATEGORY_DATA="processes_special_category_data",r.SYSTEM_GROUPS="system_groups",r.SYSTEM_GROUP="system_group_fides_key",r.SYSTEM_GROUP_DATA_USES="system_group_data_uses";let p={system_name:"System",data_uses:"Data use",data_categories:"Data categories",data_subjects:"Data subject",legal_name:"Legal name",dpo:"Data privacy officer",legal_basis_for_processing:"Legal basis for processing",administrating_department:"Administrating department",cookie_max_age_seconds:"Cookie max age seconds",privacy_policy:"Privacy policy",legal_address:"Legal address",cookie_refresh:"Cookie refresh",data_security_practices:"Data security practices",data_shared_with_third_parties:"Data shared with third parties",data_stewards:"Data stewards",declaration_name:"Declaration name",does_international_transfers:"Does international transfers",dpa_location:"DPA location",egress:"Destination",exempt_from_privacy_regulations:"Exempt from privacy regulations",features:"Features",fides_key:"Fides key",flexible_legal_basis_for_processing:"Flexible legal basis for processing",impact_assessment_location:"Impact assessment location",ingress:"Source",joint_controller_info:"Joint controller info",legal_basis_for_profiling:"Legal basis for profiling",legal_basis_for_transfers:"Legal basis for transfers",legitimate_interest_disclosure_url:"Legitimate interest disclosure URL",processes_personal_data:"Processes personal data",reason_for_exemption:"Reason for exemption",requires_data_protection_assessments:"Requires data protection assessments",responsibility:"Responsibility",retention_period:"Retention period",shared_categories:"Shared categories",special_category_legal_basis:"Special category legal basis",third_parties:"Third parties",system_undeclared_data_categories:"System undeclared data categories",data_use_undeclared_data_categories:"Data use undeclared data categories",cookies:"Cookies",uses_cookies:"Uses cookies",uses_non_cookie_access:"Uses non-cookie access",uses_profiling:"Uses profiling",processes_special_category_data:"Processes special category data",system_groups:"System groups",system_group_fides_key:"System group",system_group_data_uses:"Data uses"},m={[l.SYSTEM_UNDECLARED_DATA_CATEGORIES]:!1,[l.DATA_USE_UNDECLARED_DATA_CATEGORIES]:!1},E={dataUses:[],dataSubjects:[],dataCategories:[]},S=(0,o.createContext)({}),A=e=>{let{children:t}=e,[a,s]=(0,u._)(i.CUSTOM_REPORT_ID,""),[r,l]=(0,u._)(i.GROUP_BY,_.fI.SYSTEM_DATA_USE),[c,d]=(0,u._)(i.FILTERS,E),[p,A]=(0,u._)(i.COLUMN_ORDER,[]),[g,h]=(0,u._)(i.COLUMN_VISIBILITY,m),[f,T]=(0,u._)(i.COLUMN_SIZING,{}),[x,C]=(0,u._)(i.COLUMN_NAMES,{}),O=(0,o.useMemo)(()=>({savedCustomReportId:a,setSavedCustomReportId:s,groupBy:r,setGroupBy:l,selectedFilters:c,setSelectedFilters:d,columnOrder:p,setColumnOrder:A,columnVisibility:g,setColumnVisibility:h,columnSizing:f,setColumnSizing:T,columnNameMapOverrides:x,setColumnNameMapOverrides:C}),[a,s,r,l,c,d,p,A,g,h,f,T,x,C]);return(0,n.jsx)(S.Provider,{value:O,children:t})},g=()=>{let e=(0,o.useContext)(S);if(!e||0===Object.keys(e).length)throw Error("useDatamapReport must be used within a DatamapReportProvider");return e};var h=a(59003),f=a(92222),T=a(47935),x=a(87949),C=a(34090),O=a(66726),v=a.n(O),R=a(16134),y=a(34929),b=a(14048),j=a(19904),D=a(16394),I=a(38943),N=a(35258),P=e=>{let{children:t,heading:a,onCancel:s,onConfirm:r,isLoading:i,cancelButtonText:l,continueButtonText:o,"data-testid":c="standard-dialog",...d}=e,{onClose:u}=d;return(0,n.jsxs)(x.u_l,{closeOnOverlayClick:i,...d,children:[(0,n.jsx)(x.ZAr,{}),(0,n.jsxs)(x.hzk,{"data-testid":c,children:[a&&(0,n.jsx)(x.xBx,{children:a}),(0,n.jsx)(x.olH,{isDisabled:i,"data-testid":"standard-dialog-close-btn"}),t&&(0,n.jsx)(x.fef,{children:t}),(0,n.jsxs)(x.mzw,{gap:3,width:"100%",sx:{"& button":{width:"100%"}},children:[(0,n.jsx)(x.wpx,{onClick:()=>{s&&s(),u()},"data-testid":"".concat(c?"".concat(c,"-"):"","cancel-btn"),disabled:i,children:l||"Cancel"}),(0,n.jsx)(x.wpx,{onClick:r,type:"primary","data-testid":"".concat(c?"".concat(c,"-"):"","continue-btn"),loading:i,children:o||"Continue"})]})]})]})},M=a(22968),w=e=>{let[t,a]=(0,o.useState)(M.T2.csv),{onConfirm:s}=e;return(0,n.jsx)(P,{heading:"Export report",continueButtonText:"Download",size:"xl",...e,onConfirm:()=>s(t),"data-testid":"export-modal",children:(0,n.jsxs)(x.kCb,{direction:"column",gap:3,pb:3,children:[(0,n.jsx)(x.xvT,{textAlign:"left",children:"Export your data map report using the options below. Depending on the number of rows, the file may take a few minutes to process."}),(0,n.jsxs)(x.NIc,{children:[(0,n.jsx)(x.lXp,{htmlFor:"format",children:"Choose Format"}),(0,n.jsx)(x.WPr,{id:"format",value:t,onChange:a,"data-testid":"export-format-select",options:[{value:M.T2.csv,label:"CSV"},{value:M.T2.xlsx,label:"XLSX"}],className:"w-full"})]})]})})},U=a(624),L=a(30002),k=a(28079),G=a(5785),Y=a(90673);let F=e=>{let{label:t,children:a,...s}=e;return(0,n.jsxs)(x.Qdk,{...s,children:[(0,n.jsx)(x.X6q,{children:(0,n.jsxs)(x.KFZ,{height:"100%","data-testid":"filter-modal-accordion-button",textAlign:"left",fontWeight:600,children:[(0,n.jsx)(x.xuv,{flex:1,children:t}),(0,n.jsx)(x.XEm,{boxSize:7})]})}),(0,n.jsx)(x.Hk3,{children:a})]})},H=e=>{let{columnNameMap:t,selectedFilters:a,onFilterChange:s,onClose:r,...i}=e;(0,k.fd)(),(0,L.te)(),(0,G.MO)();let{dataUses:l,dataSubjects:c,dataCategories:d}=a,u=(0,R.C)(k.U3),_=(0,R.C)(L.ZL),p=(0,R.C)(G.qb),[m,E]=(0,o.useState)(l),[S,A]=(0,o.useState)(c),[g,h]=(0,o.useState)(d);(0,o.useEffect)(()=>{E(l)},[l]),(0,o.useEffect)(()=>{A(c)},[c]),(0,o.useEffect)(()=>{h(d)},[d]);let f=(0,o.useMemo)(()=>(0,Y.Cd)(u),[u]),T=(0,o.useMemo)(()=>(0,Y.Cd)(_),[_]),C=(0,o.useMemo)(()=>(0,Y.Cd)(p),[p]);return(0,n.jsx)(P,{heading:"Filter Datamap Report",...i,onCancel:()=>{E([]),A([]),h([]),s({dataUses:[],dataSubjects:[],dataCategories:[]}),r()},onConfirm:()=>{s({dataUses:m,dataSubjects:S,dataCategories:g}),r()},onClose:r,cancelButtonText:"Reset filters",continueButtonText:"Done","data-testid":"datamap-report-filter-modal",children:(0,n.jsxs)(x.UQy,{allowToggle:!0,children:[(0,n.jsx)(F,{label:t.data_uses,children:(0,n.jsx)(U.ZP,{nodes:f,selected:m,onSelected:E,"data-testid":"filter-modal-checkbox-tree-uses"})}),(0,n.jsx)(F,{label:t.data_categories,children:(0,n.jsx)(U.ZP,{nodes:C,selected:g,onSelected:h,"data-testid":"filter-modal-checkbox-tree-categories"})}),(0,n.jsx)(F,{label:t.data_subjects,children:(0,n.jsx)(U.ZP,{nodes:T,selected:S,onSelected:A,"data-testid":"filter-modal-checkbox-tree-subjects"})})]})})};var V=a(32885),z=a(69353),B=a(812);let{useGetMinimalCustomReportsQuery:Z,useLazyGetCustomReportByIdQuery:W,usePostCustomReportMutation:q,useDeleteCustomReportMutation:X}=a(78780).u.injectEndpoints({endpoints:e=>({getMinimalCustomReports:e.query({query:e=>{let{pageIndex:t=1,pageSize:a=50,report_type:s=_.C2.DATAMAP}=e,r="page=".concat(t,"&size=").concat(a,"&report_type=").concat(s);return{url:"plus/custom-report/minimal?".concat(r)}},providesTags:["Custom Reports"]}),getCustomReportById:e.query({query:e=>({url:"plus/custom-report/".concat(e)}),providesTags:(e,t,a)=>[{type:"Custom Reports",id:a}]}),postCustomReport:e.mutation({query:e=>({method:"POST",url:"plus/custom-report",body:e}),invalidatesTags:["Custom Reports"]}),deleteCustomReport:e.mutation({query:e=>({method:"DELETE",url:"plus/custom-report/".concat(e)}),invalidatesTags:["Custom Reports"]})})});var J=a(55484),K=a(40324);let Q="Report name",$=e=>{let{isOpen:t,handleClose:a,tableStateToSave:s,columnMapToSave:r={},unavailableNames:i,onCreateCustomReport:l}=e,c=(0,x.pmc)(),[d]=q(),u=(0,o.useMemo)(()=>J.Ry().shape({reportName:J.Z_().label(Q).required("Please provide a name for this report").test("is-unique","",async(e,t)=>null==i||!i.includes(e)||t.createError({message:"This name already exists"})).max(80,"Report name is too long (max 80 characters)")}),[i]),p=async e=>{var t;let i={};Object.entries(r).forEach(e=>{let[t,a]=e;i[t]={label:a,enabled:!0}}),Object.entries(null!==(t=null==s?void 0:s.columnVisibility)&&void 0!==t?t:{}).forEach(e=>{let[t,a]=e;i[t]||(i[t]={}),i[t].enabled=a});try{let t={name:e.trim(),type:_.C2.DATAMAP,config:{column_map:i,table_state:s}},r=await d(t);if((0,B.D4)(r))throw r.error;l(r.data),a()}catch(e){c({status:"error",description:(0,B.e$)(e,"A problem occurred while creating the report.")})}};return(0,n.jsxs)(x.u_l,{size:"lg",isOpen:t,onClose:a,motionPreset:"none",children:[(0,n.jsx)(x.ZAr,{}),(0,n.jsxs)(x.hzk,{children:[(0,n.jsx)(x.xBx,{pb:0,children:"Create a report"}),(0,n.jsx)(C.J9,{initialValues:{reportName:""},onSubmit:e=>p(e.reportName),onReset:a,validateOnBlur:!1,validationSchema:u,children:e=>{let{dirty:t,isValid:a}=e;return(0,n.jsxs)(C.l0,{"data-testid":"custom-report-form",children:[(0,n.jsxs)(x.fef,{children:[(0,n.jsx)(x.xvT,{fontSize:"sm",color:"gray.600",pb:6,children:"Customize and save your current filter settings for easy access in the future. This saved report will include the column layout and currently applied filter settings."}),(0,n.jsx)(K.j0,{id:"reportName",name:"reportName",isRequired:!0,label:Q,placeholder:"Enter a name for the report...",variant:"stacked",maxLength:80})]}),(0,n.jsxs)(x.mzw,{gap:2,children:[(0,n.jsx)(x.wpx,{size:"small",htmlType:"reset",children:"Cancel"}),(0,n.jsx)(x.wpx,{size:"small",disabled:!t||!a,type:"primary","data-testid":"custom-report-form-submit",htmlType:"submit",children:"Save"})]})]})}})]})]})},ee="Report",et="Reports",ea=e=>{var t;let{reportType:a,savedReportId:s,tableStateToSave:r,currentColumnMap:i,onCustomReportSaved:l,onSavedReportDeleted:c}=e,d=(0,j.Tg)([_.Sh.CUSTOM_REPORT_CREATE]),u=(0,j.Tg)([_.Sh.CUSTOM_REPORT_DELETE]),p=(0,x.pmc)({id:"custom-report-toast"}),{data:m,isLoading:E}=Z({report_type:a}),[S,A]=(0,o.useState)(),[g]=W(),[h]=X(),{isOpen:f,onOpen:T,onClose:O}=(0,x.qY0)(),{isOpen:v,onOpen:R,onClose:y}=(0,x.qY0)(),{isOpen:b,onOpen:D,onClose:I}=(0,x.qY0)(),[N,P]=(0,o.useState)(),[M,w]=(0,o.useState)(),[U,L]=(0,o.useState)(),[k,G]=(0,o.useState)(!1),{resetForm:Y}=(0,C.u6)(),F=(0,o.useMemo)(()=>{var e;let t=null==m?void 0:null===(e=m.items.find(e=>e.id===s))||void 0===e?void 0:e.name;return null!=t?t:et},[null==m?void 0:m.items,s]),H=!E&&!(null==m?void 0:null===(t=m.items)||void 0===t?void 0:t.length),V=e=>{A(null==m?void 0:m.items.filter(t=>t.name.toLowerCase().includes(e.toLowerCase())))},z=async e=>{P(e);let{data:t,isError:a,error:s}=await g(e);if(a){let e=(0,B.e$)(s,"A problem occurred while fetching the ".concat(ee,"."));e.includes("not found")&&c(),p({status:"error",description:e})}else w(t)},q=()=>{P(""),w(void 0),G(!1)},J=()=>{M?(G(!1),M.id!==s&&l(M,Y),O()):N?G(!0):(l(null,Y),O())},K=async e=>{e===(null==M?void 0:M.id)&&(q(),c()),h(e)};(0,o.useEffect)(()=>{m&&A(m.items)},[m]),(0,o.useEffect)(()=>{k&&(G(!1),J())},[M]),(0,o.useEffect)(()=>{s?z(s):q()},[s]),(0,o.useEffect)(()=>{U&&D()},[D,U]);let Q=!M&&!s||(null==M?void 0:M.id)===s,ea=(0,n.jsx)("div",{"data-testid":"custom-reports-popover",children:(0,n.jsx)(C.J9,{initialValues:{},onSubmit:J,onReset:q,children:(0,n.jsxs)(C.l0,{children:[(0,n.jsxs)("div",{className:"relative p-3",style:{borderBottom:"var(--ant-popover-title-border-bottom)"},children:[(0,n.jsx)(x.wpx,{size:"small",disabled:H,htmlType:"reset",className:"absolute left-3 top-3","data-testid":"custom-reports-reset-button",children:"Reset"}),(0,n.jsx)(x.wpx,{type:"text",size:"small","aria-label":"Cancel",icon:(0,n.jsx)(x.PJP.x8P,{}),className:"absolute right-3 top-3",onClick:()=>{s?z(s):q(),O()},"data-testid":"custom-report-popover-cancel"}),(0,n.jsx)("div",{className:"text-center",style:{color:"var(--ant-color-text-heading)",fontWeight:"var(--ant-font-weight-strong)"},children:et}),(0,n.jsx)("div",{className:"mt-3",children:(0,n.jsx)(x.AntInput,{size:"small",placeholder:"Search...",onChange:e=>V(e.target.value)})})]}),(0,n.jsxs)("div",{className:"px-5 pb-1 pt-3",children:[H&&(0,n.jsx)(x.oj8,{image:(0,n.jsx)(x.wpx,{type:"primary",shape:"circle",size:"small","aria-label":"add ".concat(ee),icon:(0,n.jsx)(x.PJP.mm_,{}),onClick:R,"data-testid":"add-report-button"}),description:"No ".concat(et.toLowerCase()," have been created. Start by applying your preferred filter and column settings, then create a ").concat(ee.toLowerCase()," for easy access later."),styles:{image:{height:"24px"}},"data-testid":"custom-reports-empty-state"}),!H&&(E?(0,n.jsx)(x.N_L,{active:!0,paragraph:{rows:3,width:"100%"},title:!1,className:"pt-2"}):(0,n.jsx)(x.y02.Group,{onChange:e=>z(e.target.value),value:N,style:{width:"100%"},children:(0,n.jsx)(x.vyj,{direction:"vertical",className:"w-full",size:"small",children:null==S?void 0:S.map(e=>(0,n.jsxs)(x.jqI,{justify:u?"space-between":"flex-start",align:"center",children:[(0,n.jsx)(x.y02,{value:e.id,name:"custom-report-id","data-testid":"custom-report-item",children:e.name}),u&&(0,n.jsx)(x.wpx,{type:"text",size:"small",icon:(0,n.jsx)(x.PJP.ZNm,{}),onClick:()=>L(e),"data-testid":"delete-report-button","aria-label":"Delete"})]},e.id))})}))]}),(0,n.jsxs)(x.jqI,{className:"px-5 py-4",gap:"small",children:[d&&r&&(0,n.jsxs)(x.wpx,{size:"small",onClick:R,className:"flex-1 gap-1 pl-0","data-testid":"create-report-button",htmlType:"button",icon:(0,n.jsx)(x.PJP.mm_,{}),iconPosition:"start",children:["Create ",ee.toLowerCase()]}),(0,n.jsx)(x.wpx,{size:"small",type:"primary",loading:k,disabled:Q,className:"flex-1","data-testid":"apply-report-button",htmlType:"submit",children:"Apply"})]})]})})});return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(x.bPF,{content:ea,trigger:"click",placement:"bottomRight",open:f,onOpenChange:e=>{e?T():J()},styles:{root:{width:"320px"}},zIndex:1400,children:(0,n.jsx)(x.wpx,{className:"max-w-40",icon:(0,n.jsx)(x.v4q,{}),iconPosition:"end","data-testid":"custom-reports-trigger",children:(0,n.jsx)(x.lKn,{ellipsis:!0,children:F})})}),(0,n.jsx)($,{isOpen:v,handleClose:()=>{y(),setTimeout(()=>{T()},100)},tableStateToSave:r,columnMapToSave:i,unavailableNames:null==m?void 0:m.items.map(e=>e.name),onCreateCustomReport:e=>l(e,Y)}),(0,n.jsx)(x.cVQ,{isOpen:b,onClose:()=>{L(void 0),I()},onConfirm:()=>{U&&K(U.id),I()},title:"Delete ".concat(ee),message:(0,n.jsxs)(x.lKn,{children:["You are about to permanently delete the"," ",ee.toLowerCase()," named"," ",(0,n.jsx)("strong",{children:null==U?void 0:U.name}),". Are you sure you would like to continue?"]})})]})};var es=a(19785),er=a.n(es),ei=a(55807),el=a.n(ei),en=a(32526),eo=a.n(en),ec=a(26070),ed=a(72625),eu=a(43862),e_=a(22583);let ep=(0,f.Cl)(),em=(e,t)=>({cell:e=>(0,n.jsx)(T.G3,{value:e.getValue()}),header:a=>{let s={};return Object.keys(e).forEach(t=>{"string"==typeof e[t]?s[t]=e[t]:e[t].label&&(s[t]=e[t].label||"")}),(0,n.jsx)(ed.Hm,{value:(0,eu.AH)({columnId:a.column.id,columnNameMap:s}),defaultValue:p[a.column.id]||(0,eu.AH)({columnId:a.column.id}),isEditing:t,...a})}}),eE=(e,t)=>{var a;let s=(null==e?void 0:null===(a=e.items)||void 0===a?void 0:a.length)?Object.keys(e.items[0]):[],r=Object.values(l);return s.filter(e=>!r.includes(e)).filter(e=>e.startsWith("privacy_declaration_")||e.startsWith("system_")).map(e=>{let a=t.find(t=>e.includes(eo()(t.name)));return ep.accessor(t=>t[e],{id:e,cell:e=>Array.isArray(e.getValue())?(0,n.jsx)(T.WP,{value:e.getValue(),ignoreZero:!0,...e}):(0,n.jsx)(T.G3,{value:e.getValue()}),meta:{showHeaderMenu:(null==a?void 0:a.field_type)==="string[]"}})})},eS=e=>{let{onSelectRow:t,getDataUseDisplayName:a,getDataCategoryDisplayName:s,getDataSubjectDisplayName:r,datamapReport:i,customFields:o,systemGroups:c=[],isRenaming:d=!1,groupBy:u}=e,p=eE(i,o),m=e=>{let t=c.find(t=>t.fides_key===e);return(null==t?void 0:t.label_color)?e_.j[t.label_color]:void 0},E=e=>{if(e&&0!==e.length&&1===e.length)return m(e[0])},S=[ep.accessor(e=>e.system_name,{enableGrouping:!0,id:l.SYSTEM_NAME,meta:{onCellClick:t}}),ep.accessor(e=>e.data_uses,{id:l.DATA_USE,cell:e=>{let t=e.getValue();return(0,n.jsx)(T.WP,{suffix:"data uses",ignoreZero:!0,value:er()(t)?el()(t,a):a(t||""),tagProps:{color:"white"},...e})},meta:{width:"auto"}}),ep.accessor(e=>e.data_categories,{id:l.DATA_CATEGORY,cell:e=>{let t=e.getValue();if(!t||0===t.length)return null;let a=er()(t)?t.map(e=>({label:s(e),key:e})):[{label:s(t),key:t}];return(0,n.jsx)(ed.mb,{values:a,cellProps:e})},meta:{showHeaderMenu:!d,showHeaderMenuWrapOption:!0,width:"auto",overflow:"hidden"}}),ep.accessor(e=>e.data_subjects,{id:l.DATA_SUBJECT,cell:e=>{let t=e.getValue();return(0,n.jsx)(T.WP,{suffix:"data subjects",ignoreZero:!0,value:er()(t)?el()(t,r):r(t||""),tagProps:{color:"white"},...e})},meta:{showHeaderMenu:!d}}),ep.accessor(e=>e.legal_name,{id:l.LEGAL_NAME}),ep.accessor(e=>e.dpo,{id:l.DPO}),ep.accessor(e=>e.legal_basis_for_processing,{id:l.LEGAL_BASIS_FOR_PROCESSING}),ep.accessor(e=>e.administrating_department,{id:l.ADMINISTRATING_DEPARTMENT}),ep.accessor(e=>e.cookie_max_age_seconds,{id:l.COOKIE_MAX_AGE_SECONDS}),ep.accessor(e=>e.privacy_policy,{id:l.PRIVACY_POLICY}),ep.accessor(e=>e.legal_address,{id:l.LEGAL_ADDRESS}),ep.accessor(e=>e.cookie_refresh,{id:l.COOKIE_REFRESH}),ep.accessor(e=>e.data_security_practices,{id:l.DATA_SECURITY_PRACTICES}),ep.accessor(e=>e.data_shared_with_third_parties,{id:l.DATA_SHARED_WITH_THIRD_PARTIES}),ep.accessor(e=>e.processes_special_category_data,{id:l.PROCESSES_SPECIAL_CATEGORY_DATA}),ep.accessor(e=>e.data_stewards,{id:l.DATA_STEWARDS,cell:e=>(0,n.jsx)(T.WP,{suffix:"data stewards",ignoreZero:!0,value:e.getValue(),...e}),meta:{showHeaderMenu:!d,width:"auto"}}),ep.accessor(e=>e.declaration_name,{id:l.DECLARATION_NAME}),ep.accessor(e=>e.does_international_transfers,{id:l.DOES_INTERNATIONAL_TRANSFERS}),ep.accessor(e=>e.dpa_location,{id:l.DPA_LOCATION}),ep.accessor(e=>e.egress,{id:l.DESTINATIONS,cell:e=>(0,n.jsx)(T.WP,{suffix:"destinations",ignoreZero:!0,value:e.getValue(),...e}),meta:{showHeaderMenu:!d,width:"auto"}}),ep.accessor(e=>e.exempt_from_privacy_regulations,{id:l.EXEMPT_FROM_PRIVACY_REGULATIONS}),ep.accessor(e=>e.features,{id:l.FEATURES,cell:e=>(0,n.jsx)(T.WP,{suffix:"features",ignoreZero:!0,value:e.getValue(),...e}),meta:{showHeaderMenu:!d,width:"auto"}}),ep.accessor(e=>e.fides_key,{id:l.FIDES_KEY}),ep.accessor(e=>e.flexible_legal_basis_for_processing,{id:l.FLEXIBLE_LEGAL_BASIS_FOR_PROCESSING}),ep.accessor(e=>e.impact_assessment_location,{id:l.IMPACT_ASSESSMENT_LOCATION}),ep.accessor(e=>e.ingress,{id:l.SOURCES,cell:e=>(0,n.jsx)(T.WP,{suffix:"sources",ignoreZero:!0,value:e.getValue(),...e}),meta:{showHeaderMenu:!d,width:"auto"}}),ep.accessor(e=>e.joint_controller_info,{id:l.JOINT_CONTROLLER_INFO}),ep.accessor(e=>e.legal_basis_for_profiling,{id:l.LEGAL_BASIS_FOR_PROFILING,cell:e=>(0,n.jsx)(T.WP,{suffix:"profiles",ignoreZero:!0,value:e.getValue(),...e}),meta:{showHeaderMenu:!d,width:"auto"}}),ep.accessor(e=>e.legal_basis_for_transfers,{id:l.LEGAL_BASIS_FOR_TRANSFERS,cell:e=>(0,n.jsx)(T.WP,{suffix:"transfers",ignoreZero:!0,value:e.getValue(),...e}),meta:{showHeaderMenu:!d,width:"auto"}}),ep.accessor(e=>e.legitimate_interest_disclosure_url,{id:l.LEGITIMATE_INTEREST_DISCLOSURE_URL}),ep.accessor(e=>e.processes_personal_data,{id:l.PROCESSES_PERSONAL_DATA}),ep.accessor(e=>e.reason_for_exemption,{id:l.REASON_FOR_EXEMPTION}),ep.accessor(e=>e.requires_data_protection_assessments,{id:l.REQUIRES_DATA_PROTECTION_ASSESSMENTS}),ep.accessor(e=>e.responsibility,{id:l.RESPONSIBILITY,cell:e=>(0,n.jsx)(T.WP,{suffix:"responsibilities",ignoreZero:!0,value:e.getValue(),...e}),meta:{showHeaderMenu:!d,width:"auto"}}),ep.accessor(e=>e.retention_period,{id:l.RETENTION_PERIOD}),ep.accessor(e=>e.shared_categories,{id:l.SHARED_CATEGORIES,cell:e=>(0,n.jsx)(T.WP,{suffix:"shared categories",ignoreZero:!0,value:e.getValue(),tagProps:{color:"white"},...e}),meta:{showHeaderMenu:!d,width:"auto"}}),ep.accessor(e=>e.special_category_legal_basis,{id:l.SPECIAL_CATEGORY_LEGAL_BASIS}),ep.accessor(e=>e.third_parties,{id:l.THIRD_PARTIES}),ep.accessor(e=>e.system_undeclared_data_categories,{id:l.SYSTEM_UNDECLARED_DATA_CATEGORIES,cell:e=>{let t=e.getValue();if(!t||0===t.length)return null;let a=er()(t)?t.map(e=>({label:s(e),key:e})):[{label:s(t),key:t}];return(0,n.jsx)(ed.mb,{values:a,cellProps:e})},meta:{showHeaderMenu:!d,showHeaderMenuWrapOption:!0,width:"auto",overflow:"hidden"}}),ep.accessor(e=>e.data_use_undeclared_data_categories,{id:l.DATA_USE_UNDECLARED_DATA_CATEGORIES,cell:e=>{let t=e.getValue();if(!t||0===t.length)return null;let a=er()(t)?t.map(e=>({label:s(e),key:e})):[{label:s(t),key:t}];return(0,n.jsx)(ed.mb,{values:a,cellProps:e})},meta:{showHeaderMenu:!d,showHeaderMenuWrapOption:!0,width:"auto",overflow:"hidden"}}),ep.accessor(e=>e.cookies,{id:l.COOKIES,cell:e=>(0,n.jsx)(T.WP,{ignoreZero:!0,suffix:"cookies",value:e.getValue(),...e}),meta:{showHeaderMenu:!d,width:"auto"}}),ep.accessor(e=>e.uses_cookies,{id:l.USES_COOKIES}),ep.accessor(e=>e.uses_non_cookie_access,{id:l.USES_NON_COOKIE_ACCESS}),ep.accessor(e=>e.uses_profiling,{id:l.USES_PROFILING}),ep.accessor(e=>e.system_groups,{id:l.SYSTEM_GROUPS,cell:e=>{let t=e.getValue();if(!t||Array.isArray(t)&&0===t.length)return null;let a=(Array.isArray(t)?t:[t]).map(e=>{let t=c.find(t=>t.fides_key===e);return{label:(null==t?void 0:t.name)||e,key:e,tagProps:{color:(null==t?void 0:t.label_color)?e_.j[t.label_color]:void 0,bordered:!1}}});return(0,n.jsx)(ec.Q,{values:a})},meta:{width:"auto"}}),...p],A=[];return u===_.fI.SYSTEM_GROUP&&A.push(ep.accessor(e=>e.system_group_fides_key,{id:l.SYSTEM_GROUP,cell:e=>{var t;let a=e.getValue();if(!a||Array.isArray(a)&&0===a.length)return null;let s=Array.isArray(a)?a.map(e=>{var t;return(null===(t=c.find(t=>t.fides_key===e))||void 0===t?void 0:t.name)||e}):[(null===(t=c.find(e=>e.fides_key===a))||void 0===t?void 0:t.name)||a],r=E(Array.isArray(a)?a:[a]);return(0,n.jsx)(T.WP,{suffix:"system group",ignoreZero:!0,value:s,tagProps:{color:null!=r?r:x.tAb.WHITE,bordered:!1},...e})},meta:{width:"auto",showHeaderMenu:!d}}),ep.accessor(e=>e.system_group_data_uses,{id:l.SYSTEM_GROUP_DATA_USES,cell:e=>{let t=e.getValue();return!t||Array.isArray(t)&&0===t.length?null:(0,n.jsx)(T.WP,{suffix:"data uses",ignoreZero:!0,value:er()(t)?el()(t,a):a(t||""),tagProps:{color:"white"},...e})},meta:{width:"auto",showHeaderMenu:!d}})),[...S,...A]},eA=e=>{let{columnNameMapOverrides:t,setColumnNameMapOverrides:a,setSavedCustomReportId:s,setIsRenamingColumns:r}=e,{submitForm:i,resetForm:l}=(0,C.u6)();return(0,n.jsxs)("div",{className:"flex gap-2",children:[(0,n.jsx)(x.wpx,{size:"small","data-testid":"rename-columns-reset-btn",onClick:()=>{a({}),s(""),l({values:{}}),r(!1)},children:"Reset all"}),(0,n.jsx)(x.wpx,{size:"small","data-testid":"rename-columns-cancel-btn",onClick:()=>{l({values:t}),r(!1)},children:"Cancel"}),(0,n.jsx)(x.wpx,{size:"small",type:"primary",htmlType:"submit","data-testid":"rename-columns-apply-btn",onClick:i,children:"Apply"})]})},eg=e=>{switch(e){case _.fI.DATA_USE_SYSTEM:return[l.DATA_USE];case _.fI.SYSTEM_GROUP:return[l.SYSTEM_GROUP];default:return[l.SYSTEM_NAME]}},eh=e=>{let t=[];return _.fI.SYSTEM_DATA_USE===e&&(t=[l.SYSTEM_NAME,l.DATA_USE]),_.fI.DATA_USE_SYSTEM===e&&(t=[l.DATA_USE,l.SYSTEM_NAME]),_.fI.SYSTEM_GROUP===e&&(t=[l.SYSTEM_GROUP,l.SYSTEM_GROUP_DATA_USES,l.SYSTEM_NAME,l.DATA_USE]),t},ef=(e,t)=>{let a=eh(e),s=new Set(a);return[...a,...t.filter(e=>!s.has(e))]},eT={items:[],total:0,page:1,size:25,pages:1},ex=()=>{let e=(0,j.Tg)([_.Sh.CUSTOM_REPORT_READ]),{isLoading:t}=(0,V.x8)(),{data:a}=(0,z.QD)(),{PAGE_SIZES:s,pageSize:r,setPageSize:c,onPreviousPageClick:d,isPreviousPageDisabled:u,onNextPageClick:S,isNextPageDisabled:A,startRange:O,endRange:P,pageIndex:M,setTotalPages:U,resetPageIndexToDefault:L}=(0,T.oi)(),k=(0,x.pmc)({id:"datamap-report-toast"}),{isOpen:G,onClose:Y,onOpen:F}=(0,x.qY0)(),{getDataUseDisplayName:B,getDataCategoryDisplayName:Z,getDataSubjectDisplayName:W,isLoading:q}=(0,y.Z)(),[X,J]=(0,o.useState)(),{savedCustomReportId:K,setSavedCustomReportId:Q,groupBy:$,setGroupBy:ee,selectedFilters:et,setSelectedFilters:es,columnOrder:er,setColumnOrder:ei,columnVisibility:el,setColumnVisibility:en,columnSizing:eo,setColumnSizing:ec,columnNameMapOverrides:ed,setColumnNameMapOverrides:eu}=g(),[e_,ep]=(0,o.useState)(!1),eE=e=>{Q(""),ee(e),ep(!0),L()},[ex,eC]=(0,o.useState)(""),eO=(0,o.useCallback)(e=>{L(),eC(e)},[L,eC]),ev={pageIndex:M,pageSize:r,groupBy:$,search:ex,dataUses:(0,D.du)(et.dataUses,"data_uses"),dataSubjects:(0,D.du)(et.dataSubjects,"data_subjects"),dataCategories:(0,D.du)(et.dataCategories,"data_categories")},{data:eR,isLoading:ey,isFetching:eb}=(0,I.tH)(ev),[ej,{isLoading:eD,isError:eI}]=(0,I.Eo)(),{data:eN,totalRows:eP}=(0,o.useMemo)(()=>{let e=eR||eT,t=e.items;return e_&&ep(!1),U(e.pages),{totalRows:e.total,data:t}},[eR]);(0,V.GH)();let eM=(0,R.C)(V.fN),[ew,eU]=(0,o.useState)(!1),eL=(0,o.useMemo)(()=>eR?eS({onSelectRow:e=>J(e.fides_key),getDataUseDisplayName:B,getDataCategoryDisplayName:Z,getDataSubjectDisplayName:W,datamapReport:eR,customFields:eM,systemGroups:a,isRenaming:ew,groupBy:$}):[],[B,W,Z,eR,eM,a,ew,$]),{isOpen:ek,onOpen:eG,onClose:eY}=(0,x.qY0)(),{isOpen:eF,onOpen:eH,onClose:eV}=(0,x.qY0)(),ez=(0,h.b7)({getCoreRowModel:(0,f.sC)(),getGroupedRowModel:(0,f.qe)(),getExpandedRowModel:(0,f.rV)(),manualPagination:!0,enableColumnResizing:!0,columnResizeMode:"onChange",columns:eL,defaultColumn:em({...p,...ed},ew),data:eN,initialState:{expanded:!0,columnSizing:eo,columnOrder:er,columnVisibility:el,grouping:eg($)}});(0,o.useEffect)(()=>{$&&ez&&eR&&(0===ez.getState().columnOrder.length?ei(ef($,ez.getAllColumns().map(e=>e.id))):ei(ef($,ez.getState().columnOrder)))},[$,ez,eR]),(0,o.useEffect)(()=>{let e=eg($);eR&&ez.setGrouping(e)},[eR]);let eB=(0,o.useMemo)(()=>v()(ec,300),[ec]);(0,o.useEffect)(()=>{let e=ez.getState().columnSizing;e&&eB(e)},[ez.getState().columnSizing]);let eZ=()=>ed[l.SYSTEM_GROUP]||"System group",eW=(e,t)=>{if(e||K){if(!e){try{Q(""),en(m),ez.toggleAllColumnsVisible(!0),ez.setColumnVisibility(m),ei([]),ez.setColumnOrder([]),ee(_.fI.SYSTEM_DATA_USE),es(E),eu({}),t({values:{}})}catch(e){k({status:"error",description:"There was a problem resetting the report."})}return}try{var a,s,r,i;if(null===(a=e.config)||void 0===a?void 0:a.table_state){let{groupBy:t,filters:a,columnOrder:s}=e.config.table_state,i={};Object.entries(null!==(r=e.config.column_map)&&void 0!==r?r:{}).forEach(e=>{let[t,a]=e;i[t]=a.enabled||!1}),t&&ee(t),a&&es(a),s&&(ei(s),ez.setColumnOrder(s)),i&&(en(i),ez.setColumnVisibility(i))}if(null===(s=e.config)||void 0===s?void 0:s.column_map){let a={};Object.entries(null!==(i=e.config.column_map)&&void 0!==i?i:{}).forEach(e=>{let[t,s]=e;s.label&&(a[t]=s.label)}),eu(a),t({values:a})}Q(e.id),k({status:"success",description:"Report applied successfully."})}catch(e){k({status:"error",description:"There was a problem applying report."})}}};return ey||t||q?(0,n.jsx)(T.I4,{rowHeight:36,numRows:15}):(0,n.jsxs)(x.kCb,{flex:1,direction:"column",overflow:"auto",children:[(0,n.jsx)(H,{columnNameMap:{...p,...ed},selectedFilters:et,isOpen:G,onClose:Y,onFilterChange:e=>{Q(""),es(e)}}),(0,n.jsx)(T.F1,{isOpen:ek,onClose:eY,headerText:"Columns",columnNameMap:{...p,...ed},prefixColumns:eh($),tableInstance:ez,savedCustomReportId:K,onColumnOrderChange:e=>{Q(""),ez.setColumnOrder(e),ei(e)},onColumnVisibilityChange:e=>{Q(""),ez.setColumnVisibility(e),en(e)}}),(0,n.jsx)(w,{isOpen:eF,onClose:eV,onConfirm:e=>{let t={};Object.entries(el).forEach(e=>{let[a,s]=e;t[a]={enabled:s}}),Object.entries(ed).forEach(e=>{let[a,s]=e;if(t[a])t[a].label=s;else{var r;t[a]={label:s,enabled:null===(r=el[a])||void 0===r||r}}}),ej({...ev,format:e,report_id:K,report:{name:"",type:"datamap",config:{column_map:t,table_state:{groupBy:$,filters:et,columnOrder:er}}}}).then(()=>{eI||eV()})},isLoading:eD}),(0,n.jsx)(C.J9,{initialValues:ed,onSubmit:e=>{Q(""),eu(e),eU(!1)},children:(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(T.Q$,{children:[(0,n.jsx)(T.HO,{globalFilter:ex,setGlobalFilter:eO,placeholder:"System name, Fides key, or ID"}),(0,n.jsxs)(x.kCb,{alignItems:"center",gap:2,children:[e&&(0,n.jsx)(ea,{reportType:_.C2.DATAMAP,savedReportId:K,tableStateToSave:{groupBy:$,filters:et,columnOrder:er,columnVisibility:el},currentColumnMap:ed,onCustomReportSaved:(e,t)=>eW(e,t),onSavedReportDeleted:()=>{Q("")}}),(0,n.jsxs)(x.v2r,{children:[(0,n.jsxs)(x.j2t,{as:x.wpx,icon:(0,n.jsx)(x.v4q,{}),iconPosition:"end",loading:e_,"data-testid":"group-by-menu",children:["Group by ",(()=>{switch($){case _.fI.SYSTEM_DATA_USE:return"system";case _.fI.DATA_USE_SYSTEM:return"data use";case _.fI.SYSTEM_GROUP:{let e=eZ();return e.charAt(0).toLowerCase()+e.slice(1)}default:return"system"}})()]}),(0,n.jsxs)(x.qyq,{zIndex:11,"data-testid":"group-by-menu-list",children:[(0,n.jsx)(x.iiZ,{onClick:()=>{eE(_.fI.SYSTEM_DATA_USE)},isChecked:_.fI.SYSTEM_DATA_USE===$,value:_.fI.SYSTEM_DATA_USE,"data-testid":"group-by-system-data-use",children:"System"}),(0,n.jsx)(x.iiZ,{onClick:()=>{eE(_.fI.DATA_USE_SYSTEM)},isChecked:_.fI.DATA_USE_SYSTEM===$,value:_.fI.DATA_USE_SYSTEM,"data-testid":"group-by-data-use-system",children:"Data use"}),(0,n.jsx)(x.iiZ,{onClick:()=>{eE(_.fI.SYSTEM_GROUP)},isChecked:_.fI.SYSTEM_GROUP===$,value:_.fI.SYSTEM_GROUP,"data-testid":"group-by-system-group",children:eZ()})]})]}),(0,n.jsx)(x.wpx,{"data-testid":"filter-multiple-systems-btn",onClick:F,children:"Filter"}),(0,n.jsx)(x.wpx,{"aria-label":"Export report","data-testid":"export-btn",onClick:eH,icon:(0,n.jsx)(b.nM,{ml:"1.5px"})}),(0,n.jsxs)(x.v2r,{placement:"bottom-end",children:[(0,n.jsx)(x.j2t,{as:x.wpx,icon:(0,n.jsx)(x.nXP,{className:"rotate-90"}),"data-testid":"more-menu","aria-label":"More options",className:"w-6 gap-0"}),(0,n.jsxs)(x.qyq,{"data-testid":"more-menu-list",children:[(0,n.jsx)(x.sNh,{onClick:eG,"data-testid":"edit-columns-btn",children:"Edit columns"}),(0,n.jsx)(x.sNh,{onClick:()=>eU(!0),"data-testid":"rename-columns-btn",children:"Rename columns"})]})]}),ew&&(0,n.jsx)(eA,{columnNameMapOverrides:ed,setColumnNameMapOverrides:eu,setSavedCustomReportId:Q,setIsRenamingColumns:eU})]})]}),(0,n.jsx)(C.l0,{children:(0,n.jsx)(T.ZK,{tableInstance:ez,columnExpandStorageKey:i.COLUMN_EXPANSION_STATE,columnWrapStorageKey:i.WRAPPING_COLUMNS})})]})}),(0,n.jsx)(T.s8,{totalRows:eP||0,pageSizes:s,setPageSize:c,onPreviousPageClick:d,isPreviousPageDisabled:u||eb,onNextPageClick:S,isNextPageDisabled:A||eb,startRange:O,endRange:P}),(0,n.jsx)(N.Z,{selectedSystemId:X,resetSelectedSystemId:()=>J(void 0)})]})};var eC=()=>(0,n.jsxs)(c.Z,{title:"Datamap Report",children:[(0,n.jsx)(d.Z,{"data-testid":"datamap-report-heading",heading:"Data map report"}),(0,n.jsx)(A,{children:(0,n.jsx)(ex,{})})]})}},function(e){e.O(0,[431,8765,9278,5163,9187,7245,9899,5258,2888,9774,179],function(){return e(e.s=86548)}),_N_E=e.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[210],{53748:function(e,t,i){(window.__NEXT_P=window.__NEXT_P||[]).push(["/settings/consent",function(){return i(96236)}])},59301:function(e,t,i){"use strict";var s=i(24246);let{Link:n}=i(87949).AntTypography;t.Z=e=>{let{children:t,...i}=e;return(0,s.jsx)(n,{target:"_blank",rel:"noopener noreferrer",...i,children:t})}},56358:function(e,t,i){"use strict";i.d(t,{q:function(){return n}});var s=i(24246);let n=(0,i(87949).IUT)({displayName:"TrashCanOutlineIcon",viewBox:"0 0 11 12",path:(0,s.jsx)("path",{d:"M4.5166 1.60859L4.1084 2.21875H7.22363L6.81543 1.60859C6.7832 1.56133 6.72949 1.53125 6.67148 1.53125H4.6584C4.60039 1.53125 4.54668 1.55918 4.51445 1.60859H4.5166ZM7.6748 1.03711L8.46328 2.21875H8.75977H9.79102H9.96289C10.2486 2.21875 10.4785 2.44863 10.4785 2.73438C10.4785 3.02012 10.2486 3.25 9.96289 3.25H9.79102V9.78125C9.79102 10.7309 9.02188 11.5 8.07227 11.5H3.25977C2.31016 11.5 1.54102 10.7309 1.54102 9.78125V3.25H1.36914C1.0834 3.25 0.853516 3.02012 0.853516 2.73438C0.853516 2.44863 1.0834 2.21875 1.36914 2.21875H1.54102H2.57227H2.86875L3.65723 1.03496C3.88066 0.701953 4.25664 0.5 4.6584 0.5H6.67148C7.07324 0.5 7.44922 0.701953 7.67266 1.03496L7.6748 1.03711ZM2.57227 3.25V9.78125C2.57227 10.1615 2.87949 10.4688 3.25977 10.4688H8.07227C8.45254 10.4688 8.75977 10.1615 8.75977 9.78125V3.25H2.57227ZM4.29102 4.625V9.09375C4.29102 9.28281 4.13633 9.4375 3.94727 9.4375C3.7582 9.4375 3.60352 9.28281 3.60352 9.09375V4.625C3.60352 4.43594 3.7582 4.28125 3.94727 4.28125C4.13633 4.28125 4.29102 4.43594 4.29102 4.625ZM6.00977 4.625V9.09375C6.00977 9.28281 5.85508 9.4375 5.66602 9.4375C5.47695 9.4375 5.32227 9.28281 5.32227 9.09375V4.625C5.32227 4.43594 5.47695 4.28125 5.66602 4.28125C5.85508 4.28125 6.00977 4.43594 6.00977 4.625ZM7.72852 4.625V9.09375C7.72852 9.28281 7.57383 9.4375 7.38477 9.4375C7.1957 9.4375 7.04102 9.28281 7.04102 9.09375V4.625C7.04102 4.43594 7.1957 4.28125 7.38477 4.28125C7.57383 4.28125 7.72852 4.43594 7.72852 4.625Z",fill:"currentColor"})})},58754:function(e,t,i){"use strict";var s=i(24246),n=i(87949),r=i(70788);t.Z=e=>{let{heading:t,breadcrumbItems:i,isSticky:o=!0,children:l,rightContent:a,style:d,...c}=e;return(0,s.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,s.jsxs)(n.jqI,{justify:"space-between",children:["string"==typeof t?(0,s.jsx)(n.lQT,{className:i||l?"pb-4":void 0,level:1,"data-testid":"page-heading",children:t}):t,a&&(0,s.jsx)("div",{"data-testid":"page-header-right-content",children:a})]}),!!i&&(0,s.jsx)(r.m,{className:l?"pb-4":void 0,items:i,"data-testid":"page-breadcrumb"}),l]})}},19904:function(e,t,i){"use strict";i.d(t,{Tg:function(){return o}});var s=i(24246),n=i(16134),r=i(31793);let o=e=>(0,n.C)(r.uu).filter(t=>e.includes(t)).length>0;t.ZP=e=>{let{scopes:t,children:i}=e;return o(t)?(0,s.jsx)(s.Fragment,{children:i}):null}},8133:function(e,t,i){"use strict";var s=i(24246),n=i(87949);t.Z=e=>{let{title:t,children:i,isOpen:r,onClose:o,modalContentProps:l,showCloseButton:a=!1,footer:d,...c}=e;return(0,s.jsxs)(n.u_l,{isOpen:r,onClose:o,isCentered:!0,scrollBehavior:"inside",size:"xl",id:"add-modal",...c,children:[(0,s.jsx)(n.ZAr,{}),(0,s.jsxs)(n.hzk,{textAlign:"left",p:0,"data-testid":"add-modal-content",...l,children:[a&&(0,s.jsx)(n.olH,{}),(0,s.jsx)(n.xBx,{p:0,children:(0,s.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,s.jsx)(n.X6q,{as:"h3",size:"sm",children:t})})}),(0,s.jsx)(n.fef,{pb:4,overflow:"auto",children:i}),d&&(0,s.jsx)(n.mzw,{children:d})]})]})}},70788:function(e,t,i){"use strict";i.d(t,{m:function(){return d}});var s=i(24246),n=i(87949),r=i(79894),o=i.n(r),l=i(27378);let{Text:a}=n.AntTypography,d=e=>{let{items:t,...i}=e,r=(0,l.useMemo)(()=>null==t?void 0:t.map((e,i)=>{let r=i===t.length-1,l={...e},d=l.onClick&&!l.href;return("string"==typeof l.title&&(l.title=(0,s.jsx)(a,{style:{color:"inherit",maxWidth:r?void 0:400},ellipsis:!r,id:r?"breadcrumb-current-page":void 0,children:l.title})),d)?l.title=(0,s.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,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("span",{className:"anticon align-text-bottom",children:l.icon}),l.title]})),l.href&&l.title&&(l.title=(0,s.jsx)(o(),{href:l.href,className:"ant-breadcrumb-link",children:l.title}),delete l.href)),l}),[t]);return(0,s.jsx)(n.zrq,{items:r,...i})}},6675:function(e,t,i){"use strict";i.d(t,{ZS:function(){return l},a4:function(){return r}});var s=i(3228);let n=i(78780).u.injectEndpoints({endpoints:e=>({getPurposes:e.query({query:()=>"purposes"})})}),{useGetPurposesQuery:r}=n,o={purposes:{},special_purposes:{}},l=(0,s.P1)(n.endpoints.getPurposes.select(),e=>{let{data:t}=e;return t||o})},51263:function(e,t,i){"use strict";var s=i(24246),n=i(87949);t.Z=e=>{let{title:t,children:i,...r}=e;return(0,s.jsxs)(n.xuv,{backgroundColor:"var(--fidesui-bg-corinth)",borderRadius:"4px",padding:"3","data-testid":"setting-".concat(t),...r,children:[(0,s.jsx)(n.xvT,{as:"h3",fontSize:"md",fontWeight:"bold",lineHeight:5,color:"gray.700",mb:3,children:t}),i]})}},59512:function(e,t,i){"use strict";i.d(t,{Cu:function(){return l},Py:function(){return n},fj:function(){return o},uh:function(){return r}});var s=i(65735);let n=[1,3,4,5,6],r="https://ethyca.com/docs/tutorials/consent-management/consent-management-configuration/configure-tcf#vendor-overrides",o={[s.FF.PURPOSE_RESTRICTION]:"Purpose restriction",[s.FF.REQUIRE_CONSENT]:"Require consent",[s.FF.REQUIRE_LEGITIMATE_INTEREST]:"Require legitimate interest"},l={[s.PY.RESTRICT_ALL_VENDORS]:"Restrict all vendors",[s.PY.RESTRICT_SPECIFIC_VENDORS]:"Restrict specific vendors",[s.PY.ALLOW_SPECIFIC_VENDORS]:"Allow specific vendors"}},96236:function(e,t,i){"use strict";i.r(t),i.d(t,{default:function(){return J}});var s=i(24246),n=i(87949),r=i(34090),o=i(27378),l=i(16134),a=i(25980),d=i(812),c=i(77213),u=i(58754),p=i(6675),h=i(46628),x=i(7426),g=i(40324);let m=e=>{let{children:t,purpose:i,endCol:r}=e;return(0,s.jsx)(n.kCb,{flex:"1",justifyContent:"center",alignItems:"center",borderLeft:"solid 1px",borderRight:r?"solid 1px":"unset",borderColor:"gray.200",height:"100%",minWidth:"36px",children:[1,3,4,5,6].includes(i)?null:(0,s.jsx)(n.xuv,{children:t})})};var f=()=>{let{values:e,setFieldValue:t}=(0,r.u6)(),{purposes:i}=(0,l.C)(p.ZS);return(0,s.jsx)(r.F2,{name:"purposeOverrides",render:()=>(0,s.jsxs)(n.kCb,{flexDirection:"column",minWidth:"944px",children:[(0,s.jsxs)(n.kCb,{width:"100%",border:"solid 1px",borderColor:"gray.200",backgroundColor:"gray.50",height:"36px",children:[(0,s.jsx)(n.kCb,{width:"600px",pl:"4",fontSize:"xs",fontWeight:"medium",lineHeight:"4",alignItems:"center",borderRight:"solid 1px",borderColor:"gray.200",children:"TCF purpose"}),(0,s.jsx)(n.kCb,{flex:"1",alignItems:"center",borderRight:"solid 1px",borderColor:"gray.200",minWidth:"36px",children:(0,s.jsx)(n.xvT,{pl:"4",fontSize:"xs",fontWeight:"medium",lineHeight:"4",children:"Allowed"})}),(0,s.jsx)(n.kCb,{flex:"1",alignItems:"center",borderRight:"solid 1px",borderColor:"gray.200",children:(0,s.jsx)(n.xvT,{pl:"4",fontSize:"xs",fontWeight:"medium",lineHeight:"4",children:"Consent"})}),(0,s.jsx)(n.kCb,{flex:"1",alignItems:"center",children:(0,s.jsx)(n.xvT,{pl:"4",fontSize:"xs",fontWeight:"medium",lineHeight:"4",children:"Legitimate interest"})})]}),e.purposeOverrides.map((r,o)=>(0,s.jsxs)(n.kCb,{width:"100%",height:"36px",alignItems:"center",borderBottom:"solid 1px",borderColor:"gray.200",backgroundColor:"#fff",children:[(0,s.jsxs)(n.kCb,{width:"600px",borderLeft:"solid 1px",borderColor:"gray.200",p:0,alignItems:"center",height:"100%",pl:"4",fontSize:"xs",fontWeight:"normal",lineHeight:"4",children:["Purpose ",r.purpose,": ",i[r.purpose].name]}),(0,s.jsx)(n.kCb,{flex:"1",justifyContent:"center",alignItems:"center",borderLeft:"solid 1px",borderColor:"gray.200",height:"100%",children:(0,s.jsx)(n.xuv,{children:(0,s.jsx)(g.w8,{name:"purposeOverrides[".concat(o,"].is_included"),onChange:e=>{e||(t("purposeOverrides[".concat(o,"].is_consent"),!1),t("purposeOverrides[".concat(o,"].is_legitimate_interest"),!1))}})})}),(0,s.jsx)(m,{purpose:r.purpose,children:(0,s.jsx)(g.w8,{isDisabled:!e.purposeOverrides[o].is_included||e.purposeOverrides[o].is_legitimate_interest,name:"purposeOverrides[".concat(o,"].is_consent")})}),(0,s.jsx)(m,{purpose:r.purpose,endCol:!0,children:(0,s.jsx)(g.w8,{isDisabled:!e.purposeOverrides[o].is_included||e.purposeOverrides[o].is_consent,name:"purposeOverrides[".concat(o,"].is_legitimate_interest")})})]},r.purpose))]})})},v=i(59301),j=e=>{let{name:t,enabled:i}=e;return(0,s.jsxs)(n.Kqy,{spacing:2,fontSize:"sm",lineHeight:"5",fontWeight:"medium",color:"gray.700",children:[(0,s.jsxs)(n.xvT,{children:[t," status"," ",i?(0,s.jsx)(n.j8w,{color:"success",children:"Enabled"}):(0,s.jsx)(n.j8w,{color:"error",children:"Disabled"})]}),(0,s.jsxs)(n.xvT,{children:["To ",i?"disable":"enable"," ",t,", please contact your Fides administrator or"," ",(0,s.jsx)(v.Z,{href:"mailto:support@ethyca.com",children:"Ethyca support"}),"."]})]})},b=i(46238),C=e=>{var t,i;let{label:o,options:l,layout:a,defaultFirstSelected:d=!0,...c}=e,[u,p]=(0,r.U$)(c),h={...u,value:null!==(t=u.value)&&void 0!==t?t:""},x=!!(p.touched&&p.error),m=d?l[0]:void 0,f=null!==(i=l.find(e=>e.value===h.value))&&void 0!==i?i:m,v=e=>{h.onChange(c.name)(e.target.value)};return"stacked"===a?(0,s.jsxs)(n.NIc,{isInvalid:x,children:[(0,s.jsxs)(n.jqI,{className:"w-fit",children:[o?(0,s.jsx)(g.__,{children:o}):null,(0,s.jsx)(n.y02.Group,{onChange:v,value:null==f?void 0:f.value,"data-testid":"input-".concat(h.name),children:(0,s.jsx)(n.jqI,{className:"flex-col gap-3",children:l.map(e=>{let{value:t,label:i,tooltip:r}=e;return(0,s.jsx)(n.y02,{value:t,"data-testid":"option-".concat(t),children:(0,s.jsxs)(n.jqI,{className:"items-center gap-2",children:[(0,s.jsx)(n.xvT,{fontSize:"sm",fontWeight:"medium",children:i}),r?(0,s.jsx)(b.b,{label:r}):null]})},t)})})})]}),(0,s.jsx)(g.Bc,{isInvalid:x,message:p.error,fieldName:h.name})]}):(0,s.jsxs)(n.NIc,{isInvalid:x,children:[(0,s.jsxs)(n.rjZ,{templateColumns:"1fr 3fr",children:[(0,s.jsx)(g.__,{children:o}),(0,s.jsx)(n.y02.Group,{onChange:v,value:null==f?void 0:f.value,"data-testid":"input-".concat(h.name),children:(0,s.jsx)(n.jqI,{children:l.map(e=>(0,s.jsx)(n.y02,{value:e.value,"data-testid":"option-".concat(e.value),children:e.label},e.value))})})]}),(0,s.jsx)(g.Bc,{isInvalid:x,message:p.error,fieldName:h.name})]})},y=i(65735),_=i(51263);let w=e=>{let{title:t,children:i}=e;return(0,s.jsxs)(n.Kqy,{spacing:3,mb:3,"data-testid":"section-".concat(t),children:[(0,s.jsx)(n.xvT,{fontSize:"sm",fontWeight:"bold",lineHeight:5,color:"gray.700",children:t}),i]})};var T=()=>{let{tcf:e}=(0,a.hz)(),t=!!(0,l.C)(x.D2).enabled,{values:i,setFieldValue:o}=(0,r.u6)(),d=!!i.gpp.us_approach;return(0,s.jsx)(_.Z,{title:"Global Privacy Platform",children:(0,s.jsxs)(n.Kqy,{spacing:6,children:[(0,s.jsx)(j,{name:"GPP",enabled:t}),t?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(w,{title:"GPP U.S.",children:(0,s.jsx)(C,{name:"gpp.us_approach",layout:"stacked",defaultFirstSelected:!1,options:[{label:"Enable U.S. National",value:y.en.NATIONAL,tooltip:"When US National is selected, Fides will present the same privacy notices to all consumers located anywhere in the United States."},{label:"Enable U.S. State-by-State",value:y.en.STATE,tooltip:"When state-by-state is selected, Fides will only present consent to consumers and save their preferences if they are located in a state that is supported by the GPP. The consent options presented to consumers will vary depending on the regulations in each state."},{label:"Enable US National and State-by-State notices",value:y.en.ALL,tooltip:"When enabled, Fides can be configured to serve the National and U.S. state notices. This mode is intended to provide consent coverage to U.S. states with new privacy laws where GPP support lags behind the effective date of state laws."}]})}),d?(0,s.jsxs)(w,{title:"MSPA",children:[(0,s.jsx)(g.Xl,{name:"gpp.mspa_covered_transactions",label:"All transactions covered by MSPA",tooltip:"When selected, the Fides CMP will communicate to downstream vendors that all preferences are covered under the MSPA.",onChange:e=>{e||(o("gpp.mspa_service_provider_mode",!1),o("gpp.mspa_opt_out_option_mode",!1))}}),(0,s.jsx)(g.w8,{label:"Enable MSPA service provider mode",name:"gpp.mspa_service_provider_mode",variant:"switchFirst",tooltip:"Enable service provider mode if you do not engage in any sales or sharing of personal information.",isDisabled:!!i.gpp.mspa_opt_out_option_mode||!i.gpp.mspa_covered_transactions}),(0,s.jsx)(g.w8,{label:"Enable MSPA opt-out option mode",name:"gpp.mspa_opt_out_option_mode",variant:"switchFirst",tooltip:"Enable opt-out option mode if you engage or may engage in the sales or sharing of personal information, or process any information for the purpose of targeted advertising.",isDisabled:!!i.gpp.mspa_service_provider_mode||!i.gpp.mspa_covered_transactions})]}):null]}):null,e?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(n.izJ,{color:"gray.200"}),(0,s.jsxs)(w,{title:"GPP Europe",children:[(0,s.jsx)(n.xvT,{fontSize:"sm",fontWeight:"medium",children:"Configure TCF string for Global Privacy Platform"}),(0,s.jsx)(g.w8,{label:"Enable TC string",name:"gpp.enable_tcfeu_string",variant:"switchFirst",tooltip:"When enabled, the GPP API will include a TCF EU consent string for users who are in regions where TCF applies."})]})]}):null]})})},S=i(64781),I=i(60325),N=()=>{var e,t,i;let{tcf:o}=(0,a.hz)(),{values:l,setFieldValue:d}=(0,r.u6)(),{data:c,isLoading:u}=(0,S.gT)(),p=[...(0,I.k1)(null!==(t=null==c?void 0:c.locations)&&void 0!==t?t:[]),...(0,I.k1)(null!==(i=null==c?void 0:c.location_groups)&&void 0!==i?i:[])].sort((e,t)=>e.name<t.name?-1:1);return o?(0,s.jsxs)(_.Z,{title:"Publisher settings",children:[(0,s.jsx)(n.AntTypography.Paragraph,{className:"mb-3",children:"Specify the country in which your organization operates for TCF compliance. This setting will determine the 'Publisher Country Code ' transmitted in the Transparency and Consent (TC) Data."}),(0,s.jsx)(n.PPS.Item,{label:"Publisher country",htmlFor:"publisher_country_code",children:(0,s.jsx)(n.AOh,{"data-testid":"input-publisher_settings.publisher_country_code",id:"publisher_country_code",loading:u,allowClear:!0,options:(0,n.Ky_)(null==p?void 0:p.map(e=>e.id)),placeholder:"Select a country",value:null===(e=l.tcfPublisherSettings.publisher_country_code)||void 0===e?void 0:e.replace("_","-").toUpperCase(),onChange:e=>d("tcfPublisherSettings.publisher_country_code",null==e?void 0:e.toLowerCase()),className:"!w-80"})})]}):null},E=i(52955),P=i(71795),k=i(59512),F=i(55484),L=i(8133),O=i(31883);let R=F.Ry().shape({name:F.Z_().required().label("Name")}),z=e=>{let{isOpen:t,onClose:i,onSuccess:o}=e,l=(0,n.pmc)(),[a]=(0,E.LK)(),c=async e=>{let t=await a({name:e.name});(0,O.D4)(t)?l((0,h.Vo)((0,d.e$)(t.error))):(l((0,h.t5)("Successfully created TCF configuration")),null==o||o(t.data.id),i())};return(0,s.jsx)(L.Z,{title:"Create a new TCF configuration",isOpen:t,onClose:i,children:(0,s.jsx)(r.J9,{initialValues:{name:""},onSubmit:c,validationSchema:R,children:e=>{let{isValid:t,dirty:o}=e;return(0,s.jsx)(r.l0,{children:(0,s.jsxs)(n.vyj,{direction:"vertical",size:"small",className:"w-full",children:[(0,s.jsx)(n.xvT,{children:"TCF configurations allow you to define unique sets of publisher restrictions. These configurations can be added to privacy experiences."}),(0,s.jsx)(g.j0,{id:"name",name:"name",label:"Name",isRequired:!0,variant:"stacked"}),(0,s.jsxs)(n.vyj,{className:"w-full justify-end pt-6",children:[(0,s.jsx)(n.wpx,{onClick:i,children:"Cancel"}),(0,s.jsx)(n.wpx,{type:"primary",htmlType:"submit",disabled:!t||!o,"data-testid":"save-config-button",children:"Save"})]})]})})}})})};var A=i(79894),q=i.n(A);let Z=e=>{let{width:t,style:i,borderLeft:r=!1,borderRight:o=!1,...l}=e;return(0,s.jsx)(n.jqI,{align:"center",className:"h-full px-4",...l,style:{borderLeft:r?"solid 1px":"none",borderRight:o?"solid 1px":"none",borderColor:"var(--ant-color-border)",width:t,...i},role:"cell"})},W=e=>{let{width:t,style:i,borderLeft:r=!1,children:o,...l}=e;return(0,s.jsx)(n.jqI,{align:"center",role:"columnheader",className:"px-4",...l,style:{borderLeft:r?"solid 1px":"none",borderColor:"var(--ant-color-border)",fontWeight:500,whiteSpace:"nowrap",width:t,...i},children:o})},H=e=>{let{isHeader:t=!1,isLastRow:i=!1,style:r,...o}=e;return(0,s.jsx)(n.jqI,{role:t?"rowheader":"row",className:"h-9 w-full",...o,style:{backgroundColor:t?"var(--fidesui-bg-default)":void 0,borderBottom:i?"none":"solid 1px",borderColor:"var(--ant-color-border)",...r}})},M=e=>{let{config:t,isLoading:i,style:r,...o}=e,{purposes:a}=(0,l.C)(p.ZS);return(0,s.jsxs)(n.jqI,{vertical:!0,...o,style:{maxWidth:"1200px",border:"solid 1px",borderColor:"var(--ant-color-border)",backgroundColor:"var(--ant-color-bg-base)",fontSize:"12px",...r},"aria-label":"Publisher restrictions table",role:"table","data-testid":"publisher-restrictions-table",children:[(0,s.jsxs)(H,{isHeader:!0,style:{width:"100%"},children:[(0,s.jsx)(W,{width:"600px",children:"TCF purpose"}),(0,s.jsxs)(W,{flex:1,gap:3,borderLeft:!0,children:["Restrictions",(0,s.jsx)(b.b,{label:"Restrictions control how vendors are permitted to process data for specific purposes. Fides supports three restriction types: Purpose Restriction to completely disallow data processing for a purpose, Require Consent to allow processing only with explicit user consent, and Require Legitimate Interest to allow processing based on legitimate business interest unless the user objects."})]}),(0,s.jsxs)(W,{width:"100px",gap:3,borderLeft:!0,children:["Flexible",(0,s.jsx)(b.b,{label:'Indicates whether the legal basis for this purpose can be overridden by publisher restrictions. If marked "No," the purpose has a fixed legal basis defined by the TCF and cannot be changed.'})]}),(0,s.jsx)(W,{width:"100px",borderLeft:!0,children:"Actions"})]}),Object.values(a).map((e,r)=>(0,s.jsxs)(H,{isLastRow:r===Object.values(a).length-1,children:[(0,s.jsxs)(Z,{width:"600px",children:["Purpose ",e.id,": ",e.name]}),(0,s.jsx)(Z,{flex:1,borderLeft:!0,"data-testid":"restriction-type-cell-".concat(e.id),children:i?(0,s.jsx)(n.OdW,{height:"16px",width:"100%"}):(()=>{var i;let r=(null==t?void 0:null===(i=t.restriction_types_per_purpose)||void 0===i?void 0:i[e.id])||[];return 0===r.length?"none":1===r.length?(0,s.jsx)(n.xvT,{size:"sm",whiteSpace:"nowrap",children:k.fj[r[0]]}):(0,s.jsxs)(n.xvT,{children:[r.length," restrictions"]})})()}),(0,s.jsx)(Z,{width:"100px",borderLeft:!0,children:k.Py.includes(e.id)?(0,s.jsx)(n.j8w,{color:"error","data-testid":"flexibility-tag-".concat(e.id),children:"No"}):(0,s.jsx)(n.j8w,{color:"success","data-testid":"flexibility-tag-".concat(e.id),children:"Yes"})}),(0,s.jsx)(Z,{width:"100px",borderLeft:!0,children:(0,s.jsx)(q(),{href:"/settings/consent/".concat(null==t?void 0:t.id,"/").concat(e.id),passHref:!0,legacyBehavior:!0,children:(0,s.jsx)(n.wpx,{size:"small","data-testid":"edit-restriction-btn-".concat(e.id),children:"Edit"})})})]},e.id))]})};var V=i(56358),D=i(19904);let B=()=>(0,s.jsxs)(n.vyj,{direction:"vertical",size:"small",children:[(0,s.jsx)(n.OdW,{width:"100%",className:"h-4"}),(0,s.jsx)(n.OdW,{width:"100%",className:"h-4"}),(0,s.jsx)(n.OdW,{width:"100%",className:"h-4"})]}),G=e=>{let{searchResults:t,selectedConfigId:i,handleSelection:r,userCanDeleteConfigs:o,onDeleteOpen:l,setConfigToDelete:a}=e;return(0,s.jsx)(n.y02.Group,{onChange:e=>r(e.target.value),value:i,className:"flex flex-col gap-2",children:t.map(e=>(0,s.jsxs)(n.jqI,{className:o?"justify-between":"justify-start","data-testid":"tcf-config-item-".concat(e.id),children:[(0,s.jsx)(n.y02,{value:e.id,name:"tcf-config-id","data-testid":"tcf-config-item",children:(0,s.jsx)(n.xvT,{className:"text-sm",children:e.name})}),o&&(0,s.jsx)(n.wpx,{type:"text",size:"small","aria-label":"Delete",icon:(0,s.jsx)(V.q,{fontSize:16}),onClick:t=>{t.stopPropagation(),a(e),l()},"data-testid":"delete-config-button"})]},e.id))})},U=e=>{let t,{searchTerm:i,setSearchTerm:r,searchResults:l,selectedConfigId:a,handleSelection:d,userCanCreateConfigs:c,userCanDeleteConfigs:u,modalOnOpen:p,onDeleteOpen:h,setConfigToDelete:x,isLoading:g,setDropdownOpen:m,configurations:f}=e,[v,j]=(0,o.useState)(a);return(0,o.useEffect)(()=>{j(a)},[a]),t=g?(0,s.jsx)(B,{}):0===l.length?(0,s.jsx)(n.xvT,{className:"text-center",children:"No configurations found."}):(0,s.jsx)(G,{searchResults:l,selectedConfigId:v,handleSelection:e=>{j(e)},userCanDeleteConfigs:u,onDeleteOpen:h,setConfigToDelete:x}),(0,s.jsxs)(n.V4A,{title:"TCF configurations",className:"min-w-[300px]",extra:(0,s.jsx)(n.wpx,{type:"text",size:"small","aria-label":"Close",icon:(0,s.jsx)(n.Two,{}),onClick:()=>m(!1),"data-testid":"close-config-dropdown"}),style:{boxShadow:"var(--ant-box-shadow)"},children:[f.length>10&&(0,s.jsx)(n.BZy,{size:"sm",children:(0,s.jsx)(n.AntInput,{className:"mb-4",placeholder:"Search...",onChange:e=>r(e.target.value),value:i})}),t,(0,s.jsxs)(n.jqI,{gap:"small",className:"mt-4",children:[c&&(0,s.jsx)(n.wpx,{size:"small",onClick:()=>{p(),m(!1)},className:"flex-1","data-testid":"create-config-button",children:"+ Create"}),(0,s.jsx)(n.wpx,{size:"small",onClick:()=>d(v),className:"flex-1","data-testid":"apply-config-button",disabled:v===a,children:"Apply"})]})]})},$=e=>(0,s.jsx)(U,{...e}),Y=e=>{var t;let{selectedConfigId:i,configurations:r,isLoading:l=!1,onConfigurationSelect:a,onConfigurationDelete:c}=e,u=(0,D.Tg)([y.Sh.PRIVACY_EXPERIENCE_CREATE]),p=(0,D.Tg)([y.Sh.PRIVACY_EXPERIENCE_CREATE]),h=(0,n.pmc)({id:"tcf-config-toast"}),[x]=(0,E.Cm)(),{isOpen:g,onOpen:m,onClose:f}=(0,n.qY0)(),{isOpen:v,onOpen:j,onClose:b}=(0,n.qY0)(),[C,_]=(0,o.useState)(""),[w,T]=(0,o.useState)(),[S,I]=(0,o.useState)(!1),N=(0,o.useMemo)(()=>C?r.filter(e=>e.name.toLowerCase().includes(C.toLowerCase())):r,[r,C]),P=(0,o.useMemo)(()=>r.find(e=>e.id===i),[r,i]),k=null!==(t=null==P?void 0:P.name)&&void 0!==t?t:"Select Configuration",F=e=>{a(e),I(!1)},L=async e=>{try{await x(e).unwrap(),null==c||c(e),T(void 0),b(),h({status:"success",description:'Configuration "'.concat(null==w?void 0:w.name,'" was successfully deleted.')})}catch(e){h({status:"error",description:(0,d.e$)(e,"A problem occurred while deleting the configuration.")})}};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(n.S0p,{open:S,onOpenChange:I,trigger:["click"],overlayStyle:{zIndex:999},dropdownRender:()=>$({searchTerm:C,setSearchTerm:_,searchResults:N,selectedConfigId:i,handleSelection:F,userCanCreateConfigs:u,userCanDeleteConfigs:p,modalOnOpen:m,onDeleteOpen:j,setConfigToDelete:T,isLoading:l,setDropdownOpen:I,configurations:r}),children:(0,s.jsx)(n.wpx,{icon:(0,s.jsx)(n.v4q,{}),iconPosition:"end","data-testid":"tcf-config-dropdown-trigger",children:k})}),(0,s.jsx)(z,{isOpen:g,onClose:f,onSuccess:e=>{a(e)}}),(0,s.jsx)(n.cVQ,{isOpen:v,onClose:()=>{T(void 0),b()},onConfirm:()=>{w&&L(w.id)},title:"Delete configuration",message:"Are you sure you want to delete this configuration? This action cannot be undone."})]})};var K=i(32885);let X=e=>{let{defaultChecked:t,onChange:i,...r}=e,l=(0,n.pmc)(),[a,c]=(0,o.useState)(t),[u,p]=(0,o.useState)(!1),{isLoading:g}=(0,K.x8)(),[m,{isLoading:f}]=(0,x.L)(),[v]=(0,K.M7)(),{data:j}=(0,K.n3)(void 0,{skip:g}),C=async e=>{let t=await m({consent:{override_vendor_purposes:e}});e&&j&&await v(j.map(e=>({...e,is_included:!0,required_legal_basis:void 0}))),(t=>{if(l.closeAll(),null==i||i(e),(0,O.D4)(t)){let e=(0,d.e$)(t.error,"An unexpected error occurred while saving vendor override settings. Please try again.");null==i||i(!1),l((0,h.Vo)(e))}})(t)};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)(n.vyj,{direction:"vertical",size:"small",children:[(0,s.jsx)(n.xvT,{children:"Configure overrides for TCF related purposes."}),(0,s.jsxs)(n.vyj,{size:"small",children:[(0,s.jsx)(n.rAg,{size:"small",disabled:f,loading:f,...r,checked:a,defaultChecked:t,onClick:e=>{e?(c(e),C(e)):p(!0)},"data-testid":"tcf-override-toggle"}),(0,s.jsx)(n.xvT,{children:"Override vendor purposes"}),(0,s.jsx)(b.b,{label:"Toggle on if you want to globally change any flexible legal bases or remove TCF purposes from your CMP"})]})]}),(0,s.jsx)(n.cVQ,{isOpen:u,onClose:()=>p(!1),onConfirm:()=>{c(!1),C(!1),p(!1)},title:"Disable Vendor Overrides",message:"Are you sure you want to disable vendor overrides? Clicking 'Continue' will immediately remove any custom configurations you have set for TCF purposes for all experiences."})]})},Q=e=>{var t;let{isTCFOverrideEnabled:i}=e,[r,l]=(0,o.useState)(i),[a,d]=(0,o.useState)(!1),[c,u]=(0,P._)("selectedTCFConfigId",null),{data:p,isLoading:h}=(0,E.LS)({page:1,size:50},{skip:!i}),{data:x,isFetching:g}=(0,E.NZ)(c||"",{skip:!c});return(0,o.useEffect)(()=>{var e,t;!h&&(null==p?void 0:null===(e=p.items)||void 0===e?void 0:e.length)&&!c&&u(p.items[0].id),h||!c||(null==p?void 0:null===(t=p.items)||void 0===t?void 0:t.length)||u(null)},[h,null==p?void 0:p.items,c,u]),(0,s.jsxs)(_.Z,{title:"Publisher restrictions",fontSize:"sm",children:[(0,s.jsxs)(n.vyj,{direction:"vertical",size:"small",style:{width:"100%"},children:[(0,s.jsx)(X,{defaultChecked:r,onChange:e=>l(e)}),r&&(0,s.jsxs)(s.Fragment,{children:[h&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(n.OdW,{height:"20px"}),(0,s.jsx)(n.OdW,{height:"20px"}),(0,s.jsx)(n.OdW,{height:"32px",width:"200px"})]}),!h&&(null==p?void 0:null===(t=p.items)||void 0===t?void 0:t.length)?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(n.xvT,{children:"The table below allows you to adjust which TCF purposes you allow as part of your user facing notices and business activities."}),(0,s.jsxs)(n.xvT,{children:["To configure this section, select a TCF purpose to edit the restriction type and vendors."," ",(0,s.jsx)(v.Z,{href:k.uh,children:"Learn more about publisher restrictions"})," ","in our docs."]}),(0,s.jsx)(Y,{selectedConfigId:c||"",configurations:(null==p?void 0:p.items)||[],onConfigurationSelect:u})]}):(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)(n.xvT,{children:['To define custom publisher restrictions select "create configuration" below.'," ",(0,s.jsx)(v.Z,{href:k.uh,children:"Learn more about publisher restrictions"})," ","in our docs."]}),(0,s.jsx)(n.wpx,{onClick:()=>d(!0),"data-testid":"create-config-button",children:"Create configuration +"})]})]})]}),(0,s.jsx)(z,{isOpen:a,onClose:()=>d(!1),onSuccess:e=>{u(e)}}),r&&c&&(0,s.jsx)(M,{className:"mt-3",config:x,isLoading:g})]})};var J=()=>{var e,t;let{isLoading:i}=(0,K.x8)(),{tcf:g}=(0,a.hz)(),{data:m,isLoading:v}=(0,K.n3)(void 0,{skip:i||!g}),[b,{isLoading:C}]=(0,K.M7)(),{data:w,isLoading:S}=(0,x.tB)({api_set:!0}),{data:I,isLoading:E}=(0,x.tB)({api_set:!1}),[P]=(0,x.L)(),k=(0,l.C)(x.D2),F=(0,l.C)(x.Yh),L=(0,o.useMemo)(()=>w&&(null==w?void 0:w.consent)&&"override_vendor_purposes"in w.consent?w.consent.override_vendor_purposes:!!I&&null!=I&&!!I.consent&&"override_vendor_purposes"in I.consent&&I.consent.override_vendor_purposes,[w,I]),{isLoading:O}=(0,p.a4)(),R=(0,n.pmc)(),z=async e=>{var t;let i=e=>{if(R.closeAll(),(0,d.D4)(e)){let t=(0,d.e$)(e.error,"An unexpected error occurred while saving. Please try again.");R((0,h.Vo)(t))}else R((0,h.t5)("Settings saved successfully"))},s=[...e.purposeOverrides.map(e=>{let t;return e.is_consent&&(t=y.I$.CONSENT),e.is_legitimate_interest&&(t=y.I$.LEGITIMATE_INTERESTS),{purpose:e.purpose,is_included:e.is_included,required_legal_basis:t}})];if(L){let e=await b(s);if((0,d.D4)(e)){i(e);return}}let{enabled:n,...r}=e.gpp;i(await P({gpp:r,plus_consent_settings:{tcf_publisher_country_code:null!==(t=e.tcfPublisherSettings.publisher_country_code)&&void 0!==t?t:null}}))},A=(0,o.useMemo)(()=>({purposeOverrides:m?m.map(e=>({purpose:e.purpose,is_included:e.is_included,is_consent:e.required_legal_basis===y.I$.CONSENT,is_legitimate_interest:e.required_legal_basis===y.I$.LEGITIMATE_INTERESTS})):[],gpp:k,tcfPublisherSettings:{publisher_country_code:F.tcf_publisher_country_code}}),[m,k,F]),q=(0,o.useMemo)(()=>(null==m?void 0:m.some(e=>!e.is_included||e.required_legal_basis===y.I$.CONSENT||e.required_legal_basis===y.I$.LEGITIMATE_INTERESTS))||!1,[m]),Z=null===(t=(0,a.hz)())||void 0===t?void 0:null===(e=t.flags)||void 0===e?void 0:e.publisherRestrictions;return(0,s.jsx)(c.Z,{title:"Consent Configuration",children:i||O||v||S||E?(0,s.jsx)(n.kCb,{justifyContent:"center",alignItems:"center",height:"100%",children:(0,s.jsx)(n.$jN,{})}):(0,s.jsxs)(n.xuv,{"data-testid":"consent-configuration",children:[(0,s.jsx)(u.Z,{heading:"Consent settings"}),(0,s.jsxs)(n.Kqy,{spacing:3,mb:3,children:[(0,s.jsx)(_.Z,{title:"Transparency & Consent Framework settings",children:(0,s.jsx)(j,{name:"TCF",enabled:g})}),g&&!q&&Z&&(0,s.jsx)(Q,{isTCFOverrideEnabled:L})]}),(0,s.jsx)(r.J9,{initialValues:A,enableReinitialize:!0,onSubmit:z,children:e=>{let{dirty:t,isValid:i,isSubmitting:o}=e;return(0,s.jsx)(r.l0,{children:(0,s.jsxs)(n.Kqy,{spacing:6,children:[g&&(q||!Z)&&(0,s.jsxs)(_.Z,{title:"Vendor overrides",fontSize:"sm",children:[(0,s.jsx)(X,{defaultChecked:L,disabled:C}),L&&(0,s.jsxs)(n.Kqy,{mt:2,spacing:2,children:[(0,s.jsx)(n.xvT,{children:"The table below allows you to adjust which TCF purposes you allow as part of your user facing notices and business activites."}),(0,s.jsx)(n.xvT,{children:"To configure this section, select the purposes you allow and where available, the appropriate legal bases (either Consent or Legitimate Interest)."}),(0,s.jsx)(f,{})]})]}),(0,s.jsx)(N,{}),(0,s.jsx)(T,{}),(0,s.jsx)(n.wpx,{htmlType:"submit",type:"primary",disabled:!t||!i,loading:o,"data-testid":"save-btn",className:"self-start",children:"Save"})]})})}})]})})}},31883:function(e,t,i){"use strict";i.d(t,{Bw:function(){return s.Bw},D4:function(){return s.D4}});var s=i(19043)}},function(e){e.O(0,[5279,2888,9774,179],function(){return e(e.s=53748)}),_N_E=e.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4065],{74833:function(e,t,n){var i=n(56127),a=/^\s+/;e.exports=function(e){return e?e.slice(0,i(e)+1).replace(a,""):e}},56127:function(e){var t=/\s/;e.exports=function(e){for(var n=e.length;n--&&t.test(e.charAt(n)););return n}},66726:function(e,t,n){var i=n(11611),a=n(82846),r=n(91936),s=Math.max,o=Math.min;e.exports=function(e,t,n){var l,u,c,d,g,f,p=0,m=!1,h=!1,y=!0;if("function"!=typeof e)throw TypeError("Expected a function");function v(t){var n=l,i=u;return l=u=void 0,p=t,d=e.apply(i,n)}function x(e){var n=e-f,i=e-p;return void 0===f||n>=t||n<0||h&&i>=c}function C(){var e,n,i,r=a();if(x(r))return b(r);g=setTimeout(C,(e=r-f,n=r-p,i=t-e,h?o(i,c-n):i))}function b(e){return(g=void 0,y&&l)?v(e):(l=u=void 0,d)}function S(){var e,n=a(),i=x(n);if(l=arguments,u=this,f=n,i){if(void 0===g)return p=e=f,g=setTimeout(C,t),m?v(e):d;if(h)return clearTimeout(g),g=setTimeout(C,t),v(f)}return void 0===g&&(g=setTimeout(C,t)),d}return t=r(t)||0,i(n)&&(m=!!n.leading,c=(h="maxWait"in n)?s(r(n.maxWait)||0,t):c,y="trailing"in n?!!n.trailing:y),S.cancel=function(){void 0!==g&&clearTimeout(g),p=0,l=f=u=g=void 0},S.flush=function(){return void 0===g?d:b(a())},S}},11611:function(e){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},55193:function(e,t,n){var i=n(99736),a=n(92360);e.exports=function(e){return"symbol"==typeof e||a(e)&&"[object Symbol]"==i(e)}},82846:function(e,t,n){var i=n(77400);e.exports=function(){return i.Date.now()}},91936:function(e,t,n){var i=n(74833),a=n(11611),r=n(55193),s=0/0,o=/^[-+]0x[0-9a-f]+$/i,l=/^0b[01]+$/i,u=/^0o[0-7]+$/i,c=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(r(e))return s;if(a(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=a(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=i(e);var n=l.test(e);return n||u.test(e)?c(e.slice(2),n?2:8):o.test(e)?s:+e}},1770:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/settings/custom-fields",function(){return n(5810)}])},30952:function(e,t,n){"use strict";n.d(t,{f:function(){return l}});var i=n(24246),a=n(66726),r=n.n(a),s=n(27378),o=n(26917);let l=e=>{let{value:t,onChange:n,placeholder:a,...l}=e,[u,c]=(0,s.useState)(t);(0,s.useEffect)(()=>{c(t||"")},[t]);let d=r()(n,500),g=(0,s.useCallback)(e=>{c(e),d(e)},[]);return(0,i.jsx)(o.Z,{value:u,onChange:g,onClear:()=>{c(""),n("")},placeholder:a,...l})}},77213:function(e,t,n){"use strict";n.d(t,{Z:function(){return f}});var i=n(24246),a=n(87949),r=n(88038),s=n.n(r),o=n(86677);n(27378);var l=n(25980),u=n(90867),c=n(42478),d=n(77830),g=()=>{let e=(0,o.useRouter)();return(0,i.jsx)(a.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)(a.xuv,{children:[(0,i.jsxs)(a.Kqy,{direction:{base:"column",sm:"row"},justifyContent:"space-between",children:[(0,i.jsx)(a.xvT,{fontWeight:"semibold",children:"Configure your storage and messaging provider"}),(0,i.jsx)(a.wpx,{onClick:()=>{e.push(d.AD)},children:"Configure"})]}),(0,i.jsxs)(a.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:r=!0,mainProps:d}=e,f=(0,l.hz)(),p=(0,o.useRouter)(),m="/privacy-requests"===p.pathname||"/datastore-connection"===p.pathname,h=!(f.flags.messagingConfiguration&&m),{data:y}=(0,c.JE)(void 0,{skip:h}),{data:v}=(0,u.PW)(void 0,{skip:h}),x=f.flags.messagingConfiguration&&(!y||!v)&&m;return(0,i.jsxs)(a.kCb,{"data-testid":n,direction:"column",h:"100vh",children:[(0,i.jsxs)(s(),{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)(a.kCb,{as:"main",direction:"column",py:r?6:0,px:r?10:0,h:r?"calc(100% - 48px)":"full",flex:1,minWidth:0,overflow:"auto",...d,children:[x?(0,i.jsx)(g,{}):null,t]})]})}},58754:function(e,t,n){"use strict";var i=n(24246),a=n(87949),r=n(70788);t.Z=e=>{let{heading:t,breadcrumbItems:n,isSticky:s=!0,children:o,rightContent:l,style:u,...c}=e;return(0,i.jsxs)("div",{...c,style:s?{position:"sticky",top:"-24px",paddingTop:"24px",paddingBottom:"24px",paddingLeft:"40px",marginLeft:"-40px",paddingRight:"40px",marginRight:"-40px",marginTop:"-24px",left:0,zIndex:20,backgroundColor:"white",...u}:{paddingBottom:"24px",...u},children:[(0,i.jsxs)(a.jqI,{justify:"space-between",children:["string"==typeof t?(0,i.jsx)(a.lQT,{className:n||o?"pb-4":void 0,level:1,"data-testid":"page-heading",children:t}):t,l&&(0,i.jsx)("div",{"data-testid":"page-header-right-content",children:l})]}),!!n&&(0,i.jsx)(r.m,{className:o?"pb-4":void 0,items:n,"data-testid":"page-breadcrumb"}),o]})}},19904:function(e,t,n){"use strict";n.d(t,{Tg:function(){return s}});var i=n(24246),a=n(16134),r=n(31793);let s=e=>(0,a.C)(r.uu).filter(t=>e.includes(t)).length>0;t.ZP=e=>{let{scopes:t,children:n}=e;return s(t)?(0,i.jsx)(i.Fragment,{children:n}):null}},70788:function(e,t,n){"use strict";n.d(t,{m:function(){return u}});var i=n(24246),a=n(87949),r=n(79894),s=n.n(r),o=n(27378);let{Text:l}=a.AntTypography,u=e=>{let{items:t,...n}=e,r=(0,o.useMemo)(()=>null==t?void 0:t.map((e,n)=>{let r=n===t.length-1,o={...e},u=o.onClick&&!o.href;return("string"==typeof o.title&&(o.title=(0,i.jsx)(l,{style:{color:"inherit",maxWidth:r?void 0:400},ellipsis:!r,id:r?"breadcrumb-current-page":void 0,children:o.title})),u)?o.title=(0,i.jsx)(a.wpx,{type:"text",size:"small",icon:o.icon,onClick:o.onClick,className:"ant-breadcrumb-link -mt-px px-1 text-inherit",children:o.title}):(o.icon&&(o.title=(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("span",{className:"anticon align-text-bottom",children:o.icon}),o.title]})),o.href&&o.title&&(o.title=(0,i.jsx)(s(),{href:o.href,className:"ant-breadcrumb-link",children:o.title}),delete o.href)),o}),[t]);return(0,i.jsx)(a.zrq,{items:r,...n})}},8125:function(e,t,n){"use strict";n.d(t,{V:function(){return r},o:function(){return u}});var i=n(27378),a=n(32735);let r=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{enableSelection:n=!1,getRowKey:r,bulkActions:s,isLoading:o=!1,isFetching:l=!1,dataSource:u=[],totalRows:c=0,currentPage:d,pageSize:g,customTableProps:f={}}=t,p=(0,i.useCallback)(e=>{if(e&&"object"==typeof e){if(e.id)return String(e.id);if(e.key)return String(e.key)}return String(e)},[]),m=r||p,[h,y]=(0,i.useState)([]),[v,x]=(0,i.useState)([]),C=(0,i.useCallback)(()=>{y([]),x([])},[]),b=(0,i.useMemo)(()=>({selectedRowKeys:h,selectedRows:v,resetSelections:C}),[h,v,C]),S=(0,i.useMemo)(()=>{if(n)return{selectedRowKeys:h,onChange:(e,t)=>{y(e),x(t)}}},[n,h]),T=(0,i.useCallback)((t,n,i)=>{var a,r;let s=null!==(a=t.current)&&void 0!==a?a:e.pageIndex,o=null!==(r=t.pageSize)&&void 0!==r?r:e.pageSize,l=s!==e.pageIndex||o!==e.pageSize;l?(t.current&&t.current!==e.pageIndex&&e.updatePageIndex(t.current),t.pageSize&&t.pageSize!==e.pageSize&&e.updatePageSize(t.pageSize)):e.updateFilters(n||{});let u=i&&!Array.isArray(i)?i.field:void 0,c=i&&!Array.isArray(i)&&null!==i.order?i.order:void 0;l||e.updateSorting(u,c)},[e]),j=(0,i.useMemo)(()=>{var t,n,i,r,s;return{current:null!=d?d:e.pageIndex,pageSize:null!=g?g:e.pageSize,total:c,showSizeChanger:null===(r=null===(t=e.paginationConfig)||void 0===t?void 0:t.showSizeChanger)||void 0===r||r,pageSizeOptions:null!==(s=null===(i=e.paginationConfig)||void 0===i?void 0:null===(n=i.pageSizeOptions)||void 0===n?void 0:n.map(String))&&void 0!==s?s:a.VZ}},[d,e.pageIndex,g,e.pageSize,c,e.paginationConfig]),E=(0,i.useMemo)(()=>({dataSource:u,loading:o||l,pagination:j,onChange:T,rowKey:m,scroll:{x:"max-content",scrollToFirstRowOnChange:!0},size:"small",bordered:!0,...f}),[u,o,l,j,T,m,f]),A=h.map(String),k=v.length>0,w=(0,i.useCallback)(e=>{let t=null==s?void 0:s.actions.find(t=>t.key===e);return t?{disabled:!k||!!t.disabled&&t.disabled(v),loading:t.loading||!1,onClick:()=>t.onClick(v)}:{disabled:!0,loading:!1}},[s,k,v]);return(0,i.useMemo)(()=>({tableProps:E,selectionProps:S,selectionState:b,selectedRows:v,selectedKeys:A,hasSelectedRows:k,resetSelections:C,getBulkActionProps:w,isLoadingOrFetching:o||l,hasData:u.length>0}),[E,S,b,v,A,k,C,w,o,l,u.length])};var s=n(40431),o=n(17245);let l=()=>({filters:(0,s.WJ)(e=>e).withDefault({})}),u=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{pagination:t={},sorting:n={},search:a={},onStateChange:r,disableUrlState:u=!1}=e,{pageIndex:c,pageSize:d,resetPagination:g,updatePageIndex:f,updatePageSize:p,pageSizeOptions:m,showSizeChanger:h}=(0,o.h0)({...t,disableUrlState:u}),{sortKey:y,sortOrder:v,updateSorting:x,resetSorting:C}=(0,o.rK)({...n,disableUrlState:u}),{searchQuery:b,updateSearch:S,resetSearch:T}=(0,o.Rx)({...a,disableUrlState:u}),[j,E]=(0,i.useState)({}),A=(0,i.useMemo)(()=>u?null:l(),[u]),[k,w]=(0,s.XI)(null!=A?A:{},{history:"push"}),P=(0,i.useMemo)(()=>{var e;return{pageIndex:c,pageSize:d,sortKey:y,sortOrder:v,columnFilters:u?j:null!==(e=k.filters)&&void 0!==e?e:{},searchQuery:b}},[u,j,k,c,d,y,v,b]),_=(0,i.useCallback)((e,t)=>{x(e,t),g()},[x,g]),M=(0,i.useCallback)(e=>{if(u)E(e);else{let t=Object.fromEntries(Object.entries(e).filter(e=>{let[,t]=e;return null!=t}));w({filters:Object.keys(t).length>0?t:null})}g()},[u,w,g]),I=(0,i.useCallback)(e=>{S(e),g()},[S,g]),z=(0,i.useCallback)(()=>{u?E({}):w({filters:null}),g(),C(),T()},[u,w,g,C,T]);return(0,i.useEffect)(()=>{r&&r(P)},[P,r]),{state:P,pageIndex:P.pageIndex,pageSize:P.pageSize,updatePageIndex:f,updatePageSize:p,sortKey:P.sortKey,sortOrder:P.sortOrder,updateSorting:_,columnFilters:P.columnFilters,updateFilters:M,searchQuery:P.searchQuery,updateSearch:I,resetState:z,paginationConfig:{pageSizeOptions:m,showSizeChanger:h}}}},8917:function(e,t,n){"use strict";n.d(t,{C7:function(){return o},P3:function(){return u},TY:function(){return l},Uv:function(){return a},uP:function(){return s}});var i,a,r=n(65735);let s=new Map([[r.P6.SYSTEM,"system:information"],[r.P6.DATA_USE,"taxonomy:data use"],[r.P6.DATA_CATEGORY,"taxonomy:data category"],[r.P6.DATA_SUBJECT,"taxonomy:data subject"],[r.P6.PRIVACY_DECLARATION,"system:data use"]]);(i=a||(a={})).SINGLE_SELECT="singleSelect",i.MULTIPLE_SELECT="multipleSelect",i.OPEN_TEXT="openText";let o=[{label:"taxonomy:".concat(r.P6.DATA_CATEGORY),value:r.P6.DATA_CATEGORY},{label:"taxonomy:".concat(r.P6.DATA_SUBJECT),value:r.P6.DATA_SUBJECT},{label:"taxonomy:".concat(r.P6.DATA_USE),value:r.P6.DATA_USE},{label:"".concat(r.P6.SYSTEM,":information"),value:r.P6.SYSTEM},{label:"system:data use",value:r.P6.PRIVACY_DECLARATION}],l=[{label:"Single select",value:"singleSelect"},{label:"Multiple select",value:"multipleSelect"},{label:"Open text",value:"openText"}],u={singleSelect:"Single-value select",multipleSelect:"Multi-value select",openText:"Open text"}},66236:function(e,t,n){"use strict";n.d(t,{S:function(){return s},_:function(){return r}});var i=n(8917),a=n(65735);let r=e=>e.field_type===a.AL.STRING_?i.Uv.MULTIPLE_SELECT:e.allow_list_id?i.Uv.SINGLE_SELECT:i.Uv.OPEN_TEXT,s=e=>i.P3[r(e)]},42478:function(e,t,n){"use strict";n.d(t,{FU:function(){return u},JE:function(){return a},Ki:function(){return d},SU:function(){return g},W:function(){return f},h9:function(){return r},jc:function(){return i},qt:function(){return l},sn:function(){return c}});let{useGetEmailInviteStatusQuery:i,useGetActiveMessagingProviderQuery:a,useCreateMessagingConfigurationMutation:r,useCreateMessagingConfigurationSecretsMutation:s,useGetMessagingConfigurationDetailsQuery:o,useGetMessagingConfigurationsQuery:l,useGetMessagingConfigurationByKeyQuery:u,useUpdateMessagingConfigurationByKeyMutation:c,useUpdateMessagingConfigurationSecretsByKeyMutation:d,useCreateTestConnectionMessageMutation:g,useDeleteMessagingConfigurationByKeyMutation:f}=n(78780).u.injectEndpoints({endpoints:e=>({getEmailInviteStatus:e.query({query:()=>({url:"/messaging/email-invite/status"}),providesTags:()=>["Email Invite Status"]}),createMessagingConfiguration:e.mutation({query:e=>({url:"messaging/config",method:"POST",body:e}),invalidatesTags:["Messaging Config","Configuration Settings"]}),getActiveMessagingProvider:e.query({queryFn:async(e,t,n,i)=>{let a=await i({url:"messaging/default/active"});return a.error&&404===a.error.status?{data:null}:a},providesTags:["Messaging Config"]}),createMessagingConfigurationSecrets:e.mutation({query:e=>({url:"messaging/default/".concat(e.service_type,"/secret"),method:"PUT",body:e.details}),invalidatesTags:["Messaging Config","Configuration Settings"]}),getMessagingConfigurationDetails:e.query({query:e=>({url:"messaging/default/".concat(e.type)}),providesTags:["Messaging Config"]}),getMessagingConfigurations:e.query({query:()=>({url:"messaging/config"}),providesTags:["Messaging Config"]}),getMessagingConfigurationByKey:e.query({query:e=>({url:"messaging/config/".concat(e.key)}),providesTags:["Messaging Config"]}),createTestConnectionMessage:e.mutation({query:e=>({url:"messaging/test/".concat(e.service_type),method:"POST",body:e.details}),invalidatesTags:["Messaging Config"]}),updateMessagingConfigurationByKey:e.mutation({query:e=>({url:"messaging/config/".concat(e.key),method:"PATCH",body:e.config}),invalidatesTags:["Messaging Config","Configuration Settings"]}),updateMessagingConfigurationSecretsByKey:e.mutation({query:e=>({url:"messaging/config/".concat(e.key,"/secret"),method:"PUT",body:e.secrets}),invalidatesTags:["Messaging Config","Configuration Settings"]}),deleteMessagingConfigurationByKey:e.mutation({query:e=>({url:"messaging/config/".concat(e.key),method:"DELETE"}),invalidatesTags:["Messaging Config","Configuration Settings"]})})})},5810:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return b}});var i=n(24246),a=n(77213),r=n(87949),s=n(27378),o=n(58754),l=n(30952),u=n(86677),c=n(77830),d=n(19904),g=n(8125),f=n(8917),p=n(72625),m=n(32885),h=e=>{var t;let{field:n,isDisabled:a}=e,[r,{isLoading:s}]=(0,m.yM)(),o=async e=>r({...n,active:e});return(0,i.jsx)(p.S1,{enabled:null!==(t=n.active)&&void 0!==t&&t,onToggle:o,title:"Disable custom field",message:"Are you sure you want to disable this custom field?",isDisabled:a,"aria-label":n.active?"Disable custom field":"Enable custom field",loading:s})},y=n(66236),v=n(65735),x=()=>{let e=(0,g.o)({pagination:{defaultPageSize:25,pageSizeOptions:[10,25,50]},search:{defaultSearchQuery:""}}),t=(0,u.useRouter)(),{data:n,isLoading:a}=(0,m.GH)(),{tableProps:o}=(0,g.V)(e,{dataSource:n||[],totalRows:(null==n?void 0:n.length)||0,isLoading:a,customTableProps:{layout:"fixed"}}),l=(0,d.Tg)([v.Sh.CUSTOM_FIELD_UPDATE]);return{tableProps:o,columns:(0,s.useMemo)(()=>[{title:"Name",dataIndex:"name",key:"name",filteredValue:e.searchQuery?[e.searchQuery]:null,onFilter:(e,t)=>t.name.toLowerCase().includes(e.toString().toLowerCase())},{title:"Description",dataIndex:"description",key:"description",render:e=>(0,i.jsx)(r.AntTypography.Text,{ellipsis:{tooltip:e},className:"w-96",children:e}),width:384},{title:"Type",dataIndex:"field_type",key:"field_type",render:(e,t)=>(0,y.S)(t)},{title:"Applies to",dataIndex:"resource_type",key:"resource_type",render:e=>f.uP.get(e)||e},{title:"Enabled",dataIndex:"active",key:"active",hidden:!l,render:(e,t)=>(0,i.jsx)(h,{field:t,isDisabled:!l}),width:96},{title:"Actions",key:"actions",render:(e,n)=>(0,i.jsx)(r.jqI,{gap:"middle",children:(0,i.jsx)(r.wpx,{size:"small",onClick:()=>t.push("".concat(c.WC,"/").concat(n.id)),"data-testid":"edit-btn",children:"Edit"})}),hidden:!l,width:96}],[t,l,e.searchQuery,l]),searchQuery:e.searchQuery,updateSearch:e.updateSearch,onAddClick:()=>t.push("".concat(c.WC,"/new"))}},C=()=>{let{tableProps:e,columns:t,searchQuery:n,updateSearch:a,onAddClick:s}=x();return(0,i.jsxs)(r.jqI,{vertical:!0,gap:"middle",children:[(0,i.jsxs)(r.jqI,{justify:"space-between",children:[(0,i.jsx)(l.f,{value:n,onChange:a,placeholder:"Search custom fields..."}),(0,i.jsx)(r.wpx,{onClick:s,type:"primary","data-testid":"add-custom-field-btn",children:"Add custom field"})]}),(0,i.jsx)(r.V5H,{...e,columns:t})]})},b=()=>(0,i.jsx)(a.Z,{title:"Custom fields",children:(0,i.jsxs)(r.xuv,{"data-testid":"custom-fields-management",children:[(0,i.jsx)(o.Z,{heading:"Custom fields",children:(0,i.jsx)(r.AntTypography.Paragraph,{className:"max-w-screen-md",children:"Custom fields provide organizations with the capability to capture metrics that are unique to their specific needs, allowing them to create customized reports. These fields can be added to either systems or elements within a taxonomy, and once added, they become reportable fields that are visible on the data map."})}),(0,i.jsx)(C,{})]})})}},function(e){e.O(0,[431,7245,2888,9774,179],function(){return e(e.s=1770)}),_N_E=e.O()}]);
@@ -1 +1 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3691],{8828:function(e,t,s){(window.__NEXT_P=window.__NEXT_P||[]).push(["/systems/configure/[id]",function(){return s(82657)}])},18225:function(e,t,s){"use strict";var n=s(24246),i=s(87949);t.Z=e=>{let{alignment:t="center",...s}=e;return(0,n.jsx)(i.kCb,{boxSize:"full",align:"center",justify:t,children:(0,n.jsx)(i.$jN,{color:"primary",...s})})}},82657:function(e,t,s){"use strict";s.r(t);var n=s(24246),i=s(87949),r=s(86677),a=s(27378),l=s(16134),d=s(25980),u=s(18225),c=s(812),o=s(14048),f=s(77213),x=s(77830),h=s(58754),m=s(32885),y=s(1315),j=s(57865),g=s(72774),_=s(21103);t.default=()=>{let e=(0,r.useRouter)(),t=(0,l.T)(),s="";e.query.id&&(s=Array.isArray(e.query.id)?e.query.id[0]:e.query.id);let{data:p,isLoading:v}=(0,y.rn)(s),{error:w,isLoading:b}=(0,m.Rd)(),{tcf:C,plus:N}=(0,d.hz)(),Z=(0,l.C)(j.gU);(0,a.useEffect)(()=>{if(p){let e=C&&!!p.vendor_id&&(0,c.cj)(p.vendor_id)===c.c6.GVL;t((0,j.gQ)(e))}else(0,j.gQ)(!1)},[p,t,C]);let{tabData:E,activeKey:k,onTabChange:S}=(0,_.Z)({isCreate:!1});return(v||b)&&!w?(0,n.jsx)(f.Z,{title:"Systems",children:(0,n.jsx)(u.Z,{})}):p?(0,n.jsxs)(f.Z,{title:"System inventory",mainProps:{w:"calc(100vw - 240px)"},children:[(0,n.jsx)(h.Z,{heading:"System inventory",breadcrumbItems:[{title:"All systems",href:x.So},{title:(null==p?void 0:p.name)||""}]}),(0,n.jsx)(i.A5g,{activeKey:k,onChange:S,items:E,className:"w-full",tabBarExtraContent:N&&(0,n.jsxs)(i.wpx,{size:"small",className:"absolute right-2 top-2","data-testid":"integration-page-btn",onClick:()=>e.push(x.KH),children:[(0,n.jsx)(i.xvT,{children:"Integrations"}),(0,n.jsx)(o.A5,{marginLeft:2})]}),renderTabBar:(e,t)=>(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(t,{...e}),Z&&(0,n.jsx)(g.Z,{})]})})]}):(0,n.jsx)(f.Z,{title:"Systems",children:(0,n.jsxs)(i.xvT,{"data-testid":"system-not-found",children:["Could not find a system with id ",s]})})}}},function(e){e.O(0,[431,8765,9278,5163,699,5277,6344,7245,401,9899,1438,7773,3700,2888,9774,179],function(){return e(e.s=8828)}),_N_E=e.O()}]);
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3691],{8828:function(e,t,s){(window.__NEXT_P=window.__NEXT_P||[]).push(["/systems/configure/[id]",function(){return s(82657)}])},18225:function(e,t,s){"use strict";var n=s(24246),i=s(87949);t.Z=e=>{let{alignment:t="center",...s}=e;return(0,n.jsx)(i.kCb,{boxSize:"full",align:"center",justify:t,children:(0,n.jsx)(i.$jN,{color:"primary",...s})})}},82657:function(e,t,s){"use strict";s.r(t);var n=s(24246),i=s(87949),r=s(86677),a=s(27378),l=s(16134),d=s(25980),u=s(18225),c=s(812),o=s(14048),f=s(77213),x=s(77830),h=s(58754),m=s(32885),y=s(1315),j=s(57865),g=s(72774),_=s(21103);t.default=()=>{let e=(0,r.useRouter)(),t=(0,l.T)(),s="";e.query.id&&(s=Array.isArray(e.query.id)?e.query.id[0]:e.query.id);let{data:p,isLoading:v}=(0,y.rn)(s),{error:w,isLoading:b}=(0,m.Rd)(),{tcf:C,plus:N}=(0,d.hz)(),Z=(0,l.C)(j.gU);(0,a.useEffect)(()=>{if(p){let e=C&&!!p.vendor_id&&(0,c.cj)(p.vendor_id)===c.c6.GVL;t((0,j.gQ)(e))}else(0,j.gQ)(!1)},[p,t,C]);let{tabData:E,activeKey:k,onTabChange:S}=(0,_.Z)({isCreate:!1});return(v||b)&&!w?(0,n.jsx)(f.Z,{title:"Systems",children:(0,n.jsx)(u.Z,{})}):p?(0,n.jsxs)(f.Z,{title:"System inventory",mainProps:{w:"calc(100vw - 240px)"},children:[(0,n.jsx)(h.Z,{heading:"System inventory",breadcrumbItems:[{title:"All systems",href:x.So},{title:(null==p?void 0:p.name)||""}]}),(0,n.jsx)(i.A5g,{activeKey:k,onChange:S,items:E,className:"w-full",tabBarExtraContent:N&&(0,n.jsxs)(i.wpx,{size:"small",className:"absolute right-2 top-2","data-testid":"integration-page-btn",onClick:()=>e.push(x.KH),children:[(0,n.jsx)(i.xvT,{children:"Integrations"}),(0,n.jsx)(o.A5,{marginLeft:2})]}),renderTabBar:(e,t)=>(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(t,{...e}),Z&&(0,n.jsx)(g.Z,{})]})})]}):(0,n.jsx)(f.Z,{title:"Systems",children:(0,n.jsxs)(i.xvT,{"data-testid":"system-not-found",children:["Could not find a system with id ",s]})})}}},function(e){e.O(0,[431,8765,9278,5163,699,5277,6344,7245,401,9899,1437,7773,3700,2888,9774,179],function(){return e(e.s=8828)}),_N_E=e.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3785],{58095:function(e,t,n){var s=n(8817);e.exports=function(e,t){return!!(null==e?0:e.length)&&s(e,t,0)>-1}},21796:function(e){e.exports=function(e,t,n){for(var s=-1,l=null==e?0:e.length;++s<l;)if(n(t,e[s]))return!0;return!1}},8817:function(e,t,n){var s=n(95372),l=n(1129),a=n(58263);e.exports=function(e,t,n){return t==t?a(e,t,n):s(e,l,n)}},1129:function(e){e.exports=function(e){return e!=e}},74833:function(e,t,n){var s=n(56127),l=/^\s+/;e.exports=function(e){return e?e.slice(0,s(e)+1).replace(l,""):e}},92198:function(e,t,n){var s=n(52485),l=n(58095),a=n(21796),r=n(65581),i=n(47111),o=n(43735);e.exports=function(e,t,n){var d=-1,u=l,c=e.length,p=!0,m=[],h=m;if(n)p=!1,u=a;else if(c>=200){var f=t?null:i(e);if(f)return o(f);p=!1,u=r,h=new s}else h=t?[]:m;e:for(;++d<c;){var g=e[d],v=t?t(g):g;if(g=n||0!==g?g:0,p&&v==v){for(var x=h.length;x--;)if(h[x]===v)continue e;t&&h.push(v),m.push(g)}else u(h,v,n)||(h!==m&&h.push(v),m.push(g))}return m}},47111:function(e,t,n){var s=n(46151),l=n(50344),a=n(43735),r=s&&1/a(new s([,-0]))[1]==1/0?function(e){return new s(e)}:l;e.exports=r},58263:function(e){e.exports=function(e,t,n){for(var s=n-1,l=e.length;++s<l;)if(e[s]===t)return s;return -1}},56127:function(e){var t=/\s/;e.exports=function(e){for(var n=e.length;n--&&t.test(e.charAt(n)););return n}},66726:function(e,t,n){var s=n(11611),l=n(82846),a=n(91936),r=Math.max,i=Math.min;e.exports=function(e,t,n){var o,d,u,c,p,m,h=0,f=!1,g=!1,v=!0;if("function"!=typeof e)throw TypeError("Expected a function");function x(t){var n=o,s=d;return o=d=void 0,h=t,c=e.apply(s,n)}function y(e){var n=e-m,s=e-h;return void 0===m||n>=t||n<0||g&&s>=u}function j(){var e,n,s,a=l();if(y(a))return b(a);p=setTimeout(j,(e=a-m,n=a-h,s=t-e,g?i(s,u-n):s))}function b(e){return(p=void 0,v&&o)?x(e):(o=d=void 0,c)}function k(){var e,n=l(),s=y(n);if(o=arguments,d=this,m=n,s){if(void 0===p)return h=e=m,p=setTimeout(j,t),f?x(e):c;if(g)return clearTimeout(p),p=setTimeout(j,t),x(m)}return void 0===p&&(p=setTimeout(j,t)),c}return t=a(t)||0,s(n)&&(f=!!n.leading,u=(g="maxWait"in n)?r(a(n.maxWait)||0,t):u,v="trailing"in n?!!n.trailing:v),k.cancel=function(){void 0!==p&&clearTimeout(p),h=0,o=m=d=p=void 0},k.flush=function(){return void 0===p?c:b(l())},k}},56141:function(e,t,n){var s=n(32866);e.exports=function(e,t){return s(e,t)}},50344:function(e){e.exports=function(){}},82846:function(e,t,n){var s=n(77400);e.exports=function(){return s.Date.now()}},91936:function(e,t,n){var s=n(74833),l=n(11611),a=n(55193),r=0/0,i=/^[-+]0x[0-9a-f]+$/i,o=/^0b[01]+$/i,d=/^0o[0-7]+$/i,u=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(a(e))return r;if(l(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=l(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=s(e);var n=o.test(e);return n||d.test(e)?u(e.slice(2),n?2:8):i.test(e)?r:+e}},83766:function(e,t,n){var s=n(92198);e.exports=function(e){return e&&e.length?s(e):[]}},90988:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/systems",function(){return n(74233)}])},30952:function(e,t,n){"use strict";n.d(t,{f:function(){return o}});var s=n(24246),l=n(66726),a=n.n(l),r=n(27378),i=n(26917);let o=e=>{let{value:t,onChange:n,placeholder:l,...o}=e,[d,u]=(0,r.useState)(t);(0,r.useEffect)(()=>{u(t||"")},[t]);let c=a()(n,500),p=(0,r.useCallback)(e=>{u(e),c(e)},[]);return(0,s.jsx)(i.Z,{value:d,onChange:p,onClear:()=>{u(""),n("")},placeholder:l,...o})}},35287:function(e,t,n){"use strict";var s=n(24246),l=n(87949),a=n(88038),r=n.n(a);n(27378),t.Z=e=>{let{children:t,title:n,fullHeight:a,fullWidth:i,mainProps:o}=e;return(0,s.jsxs)(l.kCb,{"data-testid":n,direction:"column",height:a?"100vh":"calc(100vh - 48px)",width:i?"100vw":"calc(100vw - 240px)",children:[(0,s.jsxs)(r(),{children:[(0,s.jsxs)("title",{children:["Fides Admin UI - ",n]}),(0,s.jsx)("meta",{name:"description",content:"Privacy Engineering Platform"}),(0,s.jsx)("link",{rel:"icon",href:"/favicon.ico"})]}),(0,s.jsx)(l.kCb,{px:10,py:6,as:"main",overflow:"auto",direction:"column",flex:1,minWidth:0,...o,children:t})]})}},58754:function(e,t,n){"use strict";var s=n(24246),l=n(87949),a=n(70788);t.Z=e=>{let{heading:t,breadcrumbItems:n,isSticky:r=!0,children:i,rightContent:o,style:d,...u}=e;return(0,s.jsxs)("div",{...u,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,s.jsxs)(l.jqI,{justify:"space-between",children:["string"==typeof t?(0,s.jsx)(l.lQT,{className:n||i?"pb-4":void 0,level:1,"data-testid":"page-heading",children:t}):t,o&&(0,s.jsx)("div",{"data-testid":"page-header-right-content",children:o})]}),!!n&&(0,s.jsx)(a.m,{className:i?"pb-4":void 0,items:n,"data-testid":"page-breadcrumb"}),i]})}},19904:function(e,t,n){"use strict";n.d(t,{Tg:function(){return r}});var s=n(24246),l=n(16134),a=n(31793);let r=e=>(0,l.C)(a.uu).filter(t=>e.includes(t)).length>0;t.ZP=e=>{let{scopes:t,children:n}=e;return r(t)?(0,s.jsx)(s.Fragment,{children:n}):null}},97181:function(e,t,n){"use strict";n.d(t,{d:function(){return d}});var s=n(24246),l=n(87949),a=n(34090),r=n(27378),i=n(46238),o=n(40324);let d=e=>{let{name:t,label:n,labelProps:d,tooltip:u,isRequired:c,layout:p="inline",helperText:m,...h}=e,[f,g,{setValue:v}]=(0,a.U$)(t),x=!!(g.touched&&g.error),[y,j]=(0,r.useState)("");f.value||"tags"!==h.mode&&"multiple"!==h.mode||(f.value=[]),"tags"===h.mode&&"string"==typeof f.value&&(f.value=[f.value]);let b="tags"===h.mode?(e,t)=>e?e.value!==y||f.value.includes(y)?h.optionRender?h.optionRender(e,t):e.label:'Create "'.concat(y,'"'):void 0:h.optionRender||void 0,k=e=>{j(e),h.onSearch&&h.onSearch(e)},_=(e,t)=>{v(e),h.onChange&&h.onChange(e,t)};return"inline"===p?(0,s.jsx)(l.NIc,{isInvalid:x,isRequired:c,children:(0,s.jsxs)(l.rjZ,{templateColumns:n?"1fr 3fr":"1fr",children:[n?(0,s.jsx)(o.__,{htmlFor:h.id||t,...d,children:n}):null,(0,s.jsxs)(l.jqI,{align:"center",children:[(0,s.jsxs)(l.jqI,{vertical:!0,flex:1,className:"mr-2",children:[(0,s.jsx)(l.WPr,{...f,id:h.id||t,"data-testid":"controlled-select-".concat(f.name),...h,optionRender:b,onSearch:"tags"===h.mode?k:void 0,onChange:_,value:f.value||void 0,status:x?"error":void 0}),m&&(0,s.jsx)(l.Q6r,{children:m}),(0,s.jsx)(o.Bc,{isInvalid:x,message:g.error,fieldName:f.name})]}),(0,s.jsx)(i.b,{label:u,className:x?"mt-2 self-start":void 0})]})]})}):(0,s.jsx)(l.NIc,{isInvalid:x,isRequired:c,children:(0,s.jsxs)(l.gCW,{alignItems:"start",children:[(0,s.jsxs)(l.jqI,{align:"center",children:[n?(0,s.jsx)(o.__,{htmlFor:h.id||t,fontSize:"xs",my:0,mr:1,...d,children:n}):null,(0,s.jsx)(i.b,{label:u})]}),(0,s.jsx)(l.WPr,{...f,id:h.id||t,"data-testid":"controlled-select-".concat(f.name),...h,optionRender:b,onSearch:"tags"===h.mode?k:void 0,onChange:_,value:f.value||void 0,status:x?"error":void 0}),m&&(0,s.jsx)(l.Q6r,{style:{marginTop:0},children:m}),(0,s.jsx)(o.Bc,{isInvalid:x,message:g.error,fieldName:f.name})]})})}},70788:function(e,t,n){"use strict";n.d(t,{m:function(){return d}});var s=n(24246),l=n(87949),a=n(79894),r=n.n(a),i=n(27378);let{Text:o}=l.AntTypography,d=e=>{let{items:t,...n}=e,a=(0,i.useMemo)(()=>null==t?void 0:t.map((e,n)=>{let a=n===t.length-1,i={...e},d=i.onClick&&!i.href;return("string"==typeof i.title&&(i.title=(0,s.jsx)(o,{style:{color:"inherit",maxWidth:a?void 0:400},ellipsis:!a,id:a?"breadcrumb-current-page":void 0,children:i.title})),d)?i.title=(0,s.jsx)(l.wpx,{type:"text",size:"small",icon:i.icon,onClick:i.onClick,className:"ant-breadcrumb-link -mt-px px-1 text-inherit",children:i.title}):(i.icon&&(i.title=(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("span",{className:"anticon align-text-bottom",children:i.icon}),i.title]})),i.href&&i.title&&(i.title=(0,s.jsx)(r(),{href:i.href,className:"ant-breadcrumb-link",children:i.title}),delete i.href)),i}),[t]);return(0,s.jsx)(l.zrq,{items:a,...n})}},33335:function(e,t,n){"use strict";n.d(t,{E:function(){return s}});let s=e=>e.toLowerCase().replace(/[ .]/g,"_").replace(/[^a-zA-Z0-9_<>-]/g,"")},22583:function(e,t,n){"use strict";n.d(t,{j:function(){return a}});var s=n(87949),l=n(65735);let a={[l.Ej.TAXONOMY_WHITE]:s.tAb.DEFAULT,[l.Ej.TAXONOMY_RED]:s.tAb.ERROR,[l.Ej.TAXONOMY_ORANGE]:s.tAb.WARNING,[l.Ej.TAXONOMY_YELLOW]:s.tAb.CAUTION,[l.Ej.TAXONOMY_GREEN]:s.tAb.SUCCESS,[l.Ej.TAXONOMY_BLUE]:s.tAb.INFO,[l.Ej.TAXONOMY_PURPLE]:s.tAb.ALERT,[l.Ej.SANDSTONE]:s.tAb.SANDSTONE,[l.Ej.MINOS]:s.tAb.MINOS}},92818:function(e,t,n){"use strict";n.d(t,{r:function(){return o}});var s=n(24246),l=n(27378),a=n(97181),r=n(22583),i=n(65735);let o={[i.Ej.TAXONOMY_WHITE]:"White",[i.Ej.TAXONOMY_RED]:"Red",[i.Ej.TAXONOMY_ORANGE]:"Orange",[i.Ej.TAXONOMY_YELLOW]:"Yellow",[i.Ej.TAXONOMY_GREEN]:"Green",[i.Ej.TAXONOMY_BLUE]:"Blue",[i.Ej.TAXONOMY_PURPLE]:"Purple",[i.Ej.SANDSTONE]:"Sandstone",[i.Ej.MINOS]:"Minos"},d=e=>{let{color:t,...n}=e;return(0,s.jsx)("span",{"aria-hidden":!0,className:"mr-2 inline-block size-4 rounded-lg align-middle",style:{backgroundColor:"var(--fidesui-bg-".concat(r.j[t],")"),border:t===i.Ej.TAXONOMY_WHITE?"1px solid var(--fidesui-neutral-200)":"none",...n.style}})},u=e=>{let t=null==e?void 0:e.value,n=null==e?void 0:e.label;return(0,s.jsxs)("span",{className:"flex items-center",children:[(0,s.jsx)(d,{color:t}),(0,s.jsx)("span",{children:n})]})};t.Z=e=>{let t=Object.values(i.Ej).map(e=>({value:e,label:o[e]})),[n,r]=(0,l.useState)(void 0);return(0,s.jsx)(a.d,{...e,options:t,optionRender:u,layout:"stacked",value:n,onChange:e=>{r(e)},prefix:(0,s.jsx)(d,{color:null!=n?n:i.Ej.TAXONOMY_WHITE,style:{marginBottom:"2px"}})})}},74233:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return J}});var s=n(24246),l=n(87949),a=n(27378),r=n(35287),i=n(58754),o=n(86677),d=n(25980),u=n(77830),c=()=>{let{dictionaryService:e}=(0,d.hz)(),t=(0,o.useRouter)();return(0,s.jsxs)(l.jqI,{className:"absolute right-8 top-8",children:[e&&(0,s.jsx)(l.S0p,{trigger:["click"],menu:{items:[{label:"Create new system",key:"add-system",onClick:()=>t.push(u.N5)},{label:"Add multiple systems",key:"add-multiple-systems",onClick:()=>t.push(u.bJ)}]},children:(0,s.jsx)(l.wpx,{type:"primary","data-testid":"add-system-btn",icon:(0,s.jsx)(l.PJP._ME,{}),children:"Add system"})}),!e&&(0,s.jsx)(l.wpx,{type:"primary","data-testid":"add-system-btn",onClick:()=>t.push(u.N5),children:"Add new system"})]})},p=n(30952),m=n(812),h=n(65450),f=n(34090),g=n(83766),v=n.n(g),x=n(55484),y=n(97181),j=n(40324),b=n(28079),k=n(1315),_=n(92818);let E="all-suggested";var S=e=>{let{options:t,loading:n,name:r,suggestedDataUses:i,...o}=e,[d,u,{setValue:c}]=(0,f.U$)(r),p=!!(u.touched&&u.error),m=(0,a.useMemo)(()=>{let e=[],n=[];return null==t||t.forEach(t=>{i.includes(t.value)?e.push(t):n.push(t)}),{suggested:e,all:n}},[t,i]),h=m.suggested.length?[{label:"Select all suggested",value:E},{label:(0,s.jsxs)(l.vyj,{children:[(0,s.jsx)(l.QMR,{size:14}),(0,s.jsx)("span",{children:"Suggested data uses"})]}),value:"suggested",options:m.suggested},{label:(0,s.jsxs)(l.vyj,{children:[(0,s.jsx)(l.PJP.BBB,{}),(0,s.jsx)("span",{children:"All data uses"})]}),value:"all",options:m.all}]:m.all;return(0,s.jsxs)(l.jqI,{vertical:!0,gap:"small",children:[(0,s.jsx)(l.jqI,{align:"center",children:(0,s.jsx)(j.__,{htmlFor:o.id||r,fontSize:"xs",my:0,mr:1,children:"Data uses"})}),(0,s.jsx)(l.WPr,{options:h,mode:"multiple",placeholder:"Select data uses",allowClear:!0,loading:n,value:d.value,onChange:e=>{e.includes(E)?c(v()([...i,...e.filter(e=>e!==E)])):c(e)},status:p?"error":void 0,virtual:!1,...o}),(0,s.jsx)(j.Bc,{isInvalid:p,message:u.error,fieldName:d.name})]})},N=n(65735);let C=x.Ry().shape({name:x.Z_().required("Name is required").label("Name"),label_color:x.Z_().required("Color is required").label("Color"),systems:x.IX().of(x.Z_()).label("Systems"),data_uses:x.IX().of(x.Z_()).label("Data uses")});var T=e=>{let{selectedSystemKeys:t=[],onSubmit:n,onCancel:r,isSubmitting:i=!1}=e,{data:o=[],isLoading:d}=(0,b.fd)(),{data:u,isLoading:c}=(0,k.K3)(),p=(0,a.useMemo)(()=>o.map(e=>({label:e.name||e.fides_key,value:e.fides_key})),[o]),m=(0,a.useMemo)(()=>{var e;let n=null!==(e=null==u?void 0:u.filter(e=>t.includes(e.fides_key)))&&void 0!==e?e:[];return v()(null==n?void 0:n.flatMap(e=>e.privacy_declarations.map(e=>e.data_use)))},[u,t]),h=(0,a.useMemo)(()=>{var e;return null!==(e=null==u?void 0:u.map(e=>({label:e.name||e.fides_key,value:e.fides_key})))&&void 0!==e?e:[]},[u]),g={name:"",description:"",label_color:N.Ej.TAXONOMY_WHITE,systems:t,data_uses:[],active:!0};return(0,s.jsx)(f.J9,{initialValues:g,validationSchema:C,onSubmit:n,enableReinitialize:!0,children:e=>{let{isValid:t,dirty:n}=e;return(0,s.jsx)(f.l0,{children:(0,s.jsxs)(l.jqI,{vertical:!0,gap:"middle",children:[(0,s.jsx)(l.AntTypography.Title,{level:2,children:"Create system group"}),(0,s.jsx)(j.j0,{name:"name",label:"Name",isRequired:!0,variant:"stacked",placeholder:"Enter system group name"}),(0,s.jsx)(j.Ks,{name:"description",label:"Description",variant:"stacked",placeholder:"Enter system group description",resize:!1}),(0,s.jsx)(y.d,{name:"systems",label:"Systems",mode:"multiple",placeholder:"Select systems",options:h,layout:"stacked",allowClear:!0,loading:c}),(0,s.jsx)(_.Z,{name:"label_color",label:"Color"}),(0,s.jsx)(S,{name:"data_uses",options:p,loading:d,suggestedDataUses:m}),(0,s.jsxs)(l.jqI,{gap:"small",justify:"space-between",className:"pt-4",children:[(0,s.jsx)(l.wpx,{onClick:r,disabled:i,children:"Cancel"}),(0,s.jsx)(l.wpx,{type:"primary",htmlType:"submit",loading:i,disabled:!t||!n||i,"data-testid":"save-btn",children:"Create group"})]})]})})}})},w=n(31793),A=n(31883),O=e=>{let{selectedRowKeys:t,createModalIsOpen:n,setCreateModalIsOpen:r,handleCreateSystemGroup:i,handleBulkAddToGroup:o,groupMenuItems:u}=e,[c,p]=l.Pg3.useMessage(),[f,g]=(0,a.useState)(!1),[v]=(0,h.WP)(),{plus:x}=(0,d.hz)(),{data:y}=(0,w.wv)({page:1,size:100,include_external:!1}),[j]=(0,h.C9)(),b=(0,a.useCallback)(async e=>{let n=await v({data_steward:e,system_keys:t});(0,A.D4)(n)?c.error((0,m.e$)(n.error,"A problem occurred assigning stewards")):c.success("".concat(t.length," systems assigned to ").concat(e," successfully"))},[v,t,c]),k=async()=>{let e=await j(t);(0,A.D4)(e)?c.error((0,m.e$)(e.error,"A problem occurred deleting systems")):c.success("".concat(t.length," systems deleted successfully"))},_=(0,a.useMemo)(()=>{let e=[];return u.length&&x&&e.push(t.length?{key:"add-to-system-group",label:"Add to system group",children:[{key:"new-group",label:"Create new group +",onClick:()=>r(!0)},{type:"divider"},...u.map(e=>({key:e.key,label:e.label,onClick:()=>o(e.key)}))]}:{key:"new-group",label:"Create system group +",onClick:()=>r(!0)}),(null==y?void 0:y.items.length)&&e.push({key:"assign-data-steward",label:"Assign data steward",disabled:!t.length,children:y.items.map(e=>({key:e.username,label:e.username,onClick:()=>b(e.username)}))},{type:"divider"}),e.push({key:"delete",label:"Delete",disabled:!t.length,onClick:()=>{g(!0)}}),e},[u,x,null==y?void 0:y.items,t.length,r,o,b]);return(0,s.jsxs)(s.Fragment,{children:[p,(0,s.jsx)(l.$zI,{open:f,onCancel:()=>g(!1),onOk:k,okText:"Delete",okType:"danger",centered:!0,children:(0,s.jsxs)(l.AntTypography.Paragraph,{children:["Delete ",t.length," systems? This action cannot be undone."]})}),(0,s.jsx)(l.$zI,{open:n,destroyOnHidden:!0,onCancel:()=>r(!1),centered:!0,width:768,footer:null,children:(0,s.jsx)(T,{selectedSystemKeys:t.map(e=>e.toString()),onSubmit:i,onCancel:()=>r(!1)})}),(0,s.jsx)(l.S0p,{trigger:["click"],menu:{items:_},children:(0,s.jsx)(l.wpx,{icon:(0,s.jsx)(l.PJP._ME,{}),children:"Actions"})})]})},I=n(19904),M=n(26070),P=n(3110),D=n(99640),R=n(8125),z=n(16394),W=n(33335),q=n(69353),X=n(88832),Y=n(34929),Z=e=>{let{privacyDeclarations:t,...n}=e,{getDataUseDisplayName:l}=(0,Y.Z)(),a=t.map(e=>e.data_use).map(e=>({label:l(e),key:e}));return(0,s.jsx)(M.Q,{values:a,...n})},B=n(56141),L=n.n(B),F=n(22583);let U="update-system-groups-msg";var $=e=>{let{selectedGroups:t,allGroups:n,system:r,columnState:i,...o}=e,[d,u]=(0,a.useState)(!1),[c,p]=(0,a.useState)(t.map(e=>e.fides_key)),[h,f]=l.Pg3.useMessage(),[g]=(0,k.qQ)(),v=async()=>{if(u(!1),L()(c,t.map(e=>e.fides_key)))return;h.open({key:U,type:"loading",content:"Updating groups for ".concat(r.name,"...")});let e=await g({...r,system_groups:c});(0,A.D4)(e)?h.open({key:U,type:"error",content:(0,m.e$)(e.error,"Failed to update system groups")}):h.open({key:U,type:"success",content:"Groups updated for ".concat(r.name)}),setTimeout(()=>{h.destroy(U)},3e3)};return(0,s.jsxs)(l.jqI,{gap:"small",...o,children:[f,!d&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(l.j8w,{onClick:()=>u(!0),addable:!0,"data-testid":"group-add-btn","aria-label":"Add group"}),(0,s.jsx)(M.Q,{values:t.map(e=>e&&{label:e.name,key:e.fides_key,tagProps:{color:e.label_color?"".concat(F.j[e.label_color]):void 0,bordered:!1}}),columnState:i})]}),d&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(l.WPr,{options:n.map(e=>({label:e.name,value:e.fides_key})),mode:"tags",defaultValue:t.map(e=>e.fides_key),defaultOpen:!0,onChange:e=>{p(e)},onOpenChange:e=>{e||v()},onBlur:()=>u(!1),"aria-label":"Select groups"}),(0,s.jsx)(l.wpx,{"aria-label":"Update groups",icon:(0,s.jsx)(l.PJP.MCw,{}),onClick:v})]})]})},G=()=>{let{data:e}=(0,q.QD)(),t=(0,a.useMemo)(()=>e?e.reduce((e,t)=>({...e,[t.fides_key]:t}),{}):{},[e]),{data:n}=(0,w.wv)({page:1,size:100,include_external:!1}),[r]=(0,h.DW)(),[i]=(0,q.Xz)(),[u]=(0,q.Nr)(),[c,p]=(0,a.useState)(!1),[f,g]=(0,a.useState)(!1),[x,y]=(0,a.useState)(!1),[j,b]=(0,a.useState)(!1),[k,_]=(0,a.useState)(null),E=(0,R.o)({pagination:{defaultPageSize:25,pageSizeOptions:[25,50,100]},search:{defaultSearchQuery:""},sorting:{defaultSortKey:X.E.NAME,defaultSortOrder:"ascend",validColumns:[X.E.NAME]}}),{columnFilters:S,pageIndex:C,pageSize:T,searchQuery:O,updateSearch:Y,sortKey:B,sortOrder:L}=E,{data:F,isLoading:U,isFetching:G}=(0,h.xF)({page:C,size:T,search:O,sort_by:B,sort_asc:"ascend"===L,show_deleted:!0,...S}),Q=(0,a.useMemo)(()=>{var e,t;return{enableSelection:!0,dataSource:null!==(e=null==F?void 0:F.items)&&void 0!==e?e:[],totalRows:null!==(t=null==F?void 0:F.total)&&void 0!==t?t:0,isLoading:U,isFetching:G,getRowKey:e=>e.fides_key,customTableProps:{locale:{emptyText:(0,s.jsx)("div",{children:"No systems found"})}}}},[F,U,G]),{tableProps:J,selectionProps:H}=(0,R.V)(E,Q),{selectedRowKeys:K}=null!=H?H:{},[V,ee]=l.Pg3.useMessage(),{plus:et}=(0,d.hz)(),en=(0,o.useRouter)(),es=(0,I.Tg)([N.Sh.SYSTEM_DELETE]),el=async e=>{let t=await r(e.fides_key);(0,A.D4)(t)?V.error((0,m.e$)(t.error,"Failed to delete system")):V.success("Successfully deleted system"),b(!1)},ea=async e=>{let t={...e,fides_key:(0,W.E)(e.name),active:!0},n=await u(t);if((0,A.D4)(n))V.error((0,m.e$)(n.error));else{var s,l;let e="System group '".concat(n.data.name,"' created");(null===(s=n.data.systems)||void 0===s?void 0:s.length)===1?e+=" with system '".concat(n.data.systems[0],"'"):(null===(l=n.data.systems)||void 0===l?void 0:l.length)&&(e+=" with ".concat(n.data.systems.length," systems")),V.success(e)}y(!1)},er=(0,a.useCallback)(async e=>{var n;if(!K)return;let s=t[e],l=await i({...s,systems:v()([...null!==(n=s.systems)&&void 0!==n?n:[],...K.map(e=>e.toString())])});(0,A.D4)(l)?V.error((0,m.e$)(l.error)):V.success("".concat(null==K?void 0:K.length," systems added to group '").concat(e,"'"))},[t,i,K,V]),ei=(0,a.useMemo)(()=>{var t;return null!==(t=null==e?void 0:e.map(e=>({key:e.fides_key,label:e.name,onClick:()=>er(e.fides_key)})))&&void 0!==t?t:[]},[e,er]);return{tableProps:J,selectionProps:H,columns:(0,a.useMemo)(()=>{var a;return[{title:"Name",dataIndex:"name",key:X.E.NAME,render:(e,t)=>(0,s.jsx)(D.Z,{href:"/systems/configure/".concat(t.fides_key),"data-testid":"system-link-".concat(t.fides_key),children:e||t.fides_key}),ellipsis:!0,fixed:"left",sorter:!0,sortOrder:B===X.E.NAME?L:null},{dataIndex:"system_groups",key:X.E.SYSTEM_GROUPS,render:(n,l)=>{var a;return(0,s.jsx)($,{selectedGroups:null!==(a=null==n?void 0:n.map(e=>null==t?void 0:t[e]).filter(e=>!!e))&&void 0!==a?a:[],allGroups:e,system:{...l,system_groups:null!=n?n:[]},columnState:{isWrapped:!0,isExpanded:c},className:"w-[432px]"})},title:"Groups",hidden:!et,menu:{items:P.DI,onClick:e=>{e.domEvent.stopPropagation(),"expand-all"===e.key?p(!0):"collapse-all"===e.key&&p(!1)}},filters:(0,z.nZ)(null==e?void 0:e.map(e=>e.fides_key),e=>{var n,s;return null!==(s=null===(n=t[e])||void 0===n?void 0:n.name)&&void 0!==s?s:e}),filteredValue:(null==S?void 0:S.system_groups)||null},{title:"Data uses",menu:{items:P.DI,onClick:e=>{e.domEvent.stopPropagation(),"expand-all"===e.key?g(!0):"collapse-all"===e.key&&g(!1)}},dataIndex:"privacy_declarations",key:X.E.DATA_USES,render:e=>(0,s.jsx)(Z,{privacyDeclarations:e,columnState:{isWrapped:!0,isExpanded:f}})},{title:"Data stewards",dataIndex:"data_stewards",key:X.E.DATA_STEWARDS,render:e=>(0,s.jsx)(M.v,{values:null!=e?e:[],valueSuffix:"users"}),filters:(0,z.nZ)(null==n?void 0:null===(a=n.items)||void 0===a?void 0:a.map(e=>e.username)),filteredValue:(null==S?void 0:S.data_stewards)||null},{title:"Description",dataIndex:"description",key:X.E.DESCRIPTION,render:e=>(0,s.jsx)("div",{className:"max-w-96",children:(0,s.jsx)(l.AntTypography.Text,{ellipsis:{tooltip:e},children:e})}),ellipsis:!0},{title:"Actions",key:X.E.ACTIONS,render:(e,t)=>(0,s.jsxs)(l.jqI,{gap:"small",children:[(0,s.jsx)(l.wpx,{size:"small",onClick:()=>en.push("/systems/configure/".concat(t.fides_key)),icon:(0,s.jsx)(l.PJP.I8b,{}),"data-testid":"edit-btn",children:"Edit"}),es&&(0,s.jsx)(l.wpx,{size:"small",onClick:()=>{_(t),b(!0)},icon:(0,s.jsx)(l.PJP.ZNm,{}),"data-testid":"delete-btn",children:"Delete"})]}),fixed:"right"}]},[B,L,et,e,null==S?void 0:S.system_groups,null==S?void 0:S.data_stewards,null==n?void 0:n.items,c,t,f,es,en]),searchQuery:O,updateSearch:Y,columnFilters:S,pageIndex:C,pageSize:T,createModalIsOpen:x,setCreateModalIsOpen:y,deleteModalIsOpen:j,setDeleteModalIsOpen:b,setSelectedSystemForDelete:_,handleCreateSystemGroup:ea,handleDelete:el,handleBulkAddToGroup:er,messageContext:ee,groupMenuItems:ei,selectedSystemForDelete:k}},Q=()=>{var e,t;let{tableProps:n,selectionProps:a,columns:r,searchQuery:i,updateSearch:o,createModalIsOpen:d,setCreateModalIsOpen:u,deleteModalIsOpen:c,setDeleteModalIsOpen:m,handleDelete:h,handleCreateSystemGroup:f,handleBulkAddToGroup:g,messageContext:v,groupMenuItems:x,selectedSystemForDelete:y}=G();return(0,s.jsxs)(s.Fragment,{children:[v,(0,s.jsxs)(l.jqI,{justify:"space-between",className:"mb-4",children:[(0,s.jsx)(p.f,{value:i,onChange:o,"data-testid":"system-search"}),(0,s.jsxs)(l.jqI,{gap:"small",children:[(0,s.jsx)(O,{selectedRowKeys:null!==(e=null==a?void 0:a.selectedRowKeys)&&void 0!==e?e:[],createModalIsOpen:d,setCreateModalIsOpen:u,handleCreateSystemGroup:f,handleBulkAddToGroup:g,groupMenuItems:x}),(0,s.jsx)(l.$zI,{open:c,onCancel:()=>m(!1),onOk:()=>!!y&&h(y),okText:"Delete",okType:"danger",cancelText:"Cancel",centered:!0,children:(0,s.jsxs)(l.AntTypography.Paragraph,{children:["Are you sure you want to delete"," ",null!==(t=null==y?void 0:y.name)&&void 0!==t?t:null==y?void 0:y.fides_key,"? This action cannot be undone."]})})]})]}),(0,s.jsx)(l.V5H,{...n,columns:r,rowSelection:a})]})},J=()=>(0,s.jsx)(r.Z,{title:"System inventory",children:(0,s.jsxs)(l.xuv,{"data-testid":"system-management",children:[(0,s.jsx)(i.Z,{heading:"System inventory",breadcrumbItems:[{title:"All systems"}],rightContent:(0,s.jsx)(c,{})}),(0,s.jsx)(Q,{})]})})},31883:function(e,t,n){"use strict";n.d(t,{Bw:function(){return s.Bw},D4:function(){return s.D4}});var s=n(19043)}},function(e){e.O(0,[431,8765,9278,5163,7245,9965,2888,9774,179],function(){return e(e.s=90988)}),_N_E=e.O()}]);
@@ -0,0 +1 @@
1
+ @font-face{font-family:Inter;font-style:normal;font-display:swap;font-weight:400;src:url(/_next/static/media/inter-cyrillic-ext-400-normal.06b6faa3.woff2) format("woff2"),url(/_next/static/media/inter-all-400-normal.2ae8ed37.woff) format("woff");unicode-range:u+0460-052f,u+1c80-1c88,u+20b4,u+2de0-2dff,u+a640-a69f,u+fe2e-fe2f}@font-face{font-family:Inter;font-style:normal;font-display:swap;font-weight:400;src:url(/_next/static/media/inter-cyrillic-400-normal.5122dff0.woff2) format("woff2"),url(/_next/static/media/inter-all-400-normal.2ae8ed37.woff) format("woff");unicode-range:u+0301,u+0400-045f,u+0490-0491,u+04b0-04b1,u+2116}@font-face{font-family:Inter;font-style:normal;font-display:swap;font-weight:400;src:url(/_next/static/media/inter-greek-ext-400-normal.2271c2a1.woff2) format("woff2"),url(/_next/static/media/inter-all-400-normal.2ae8ed37.woff) format("woff");unicode-range:u+1f??}@font-face{font-family:Inter;font-style:normal;font-display:swap;font-weight:400;src:url(/_next/static/media/inter-greek-400-normal.d1deb2fe.woff2) format("woff2"),url(/_next/static/media/inter-all-400-normal.2ae8ed37.woff) format("woff");unicode-range:u+0370-03ff}@font-face{font-family:Inter;font-style:normal;font-display:swap;font-weight:400;src:url(/_next/static/media/inter-vietnamese-400-normal.ebde713a.woff2) format("woff2"),url(/_next/static/media/inter-all-400-normal.2ae8ed37.woff) format("woff");unicode-range:u+0102-0103,u+0110-0111,u+0128-0129,u+0168-0169,u+01a0-01a1,u+01af-01b0,u+1ea0-1ef9,u+20ab}@font-face{font-family:Inter;font-style:normal;font-display:swap;font-weight:400;src:url(/_next/static/media/inter-latin-ext-400-normal.261aa6d4.woff2) format("woff2"),url(/_next/static/media/inter-all-400-normal.2ae8ed37.woff) format("woff");unicode-range:u+0100-024f,u+0259,u+1e??,u+2020,u+20a0-20ab,u+20ad-20cf,u+2113,u+2c60-2c7f,u+a720-a7ff}@font-face{font-family:Inter;font-style:normal;font-display:swap;font-weight:400;src:url(/_next/static/media/inter-latin-400-normal.493934f7.woff2) format("woff2"),url(/_next/static/media/inter-all-400-normal.2ae8ed37.woff) format("woff");unicode-range:u+00??,u+0131,u+0152-0153,u+02bb-02bc,u+02c6,u+02da,u+02dc,u+2000-206f,u+2074,u+20ac,u+2122,u+2191,u+2193,u+2212,u+2215,u+feff,u+fffd}@font-face{font-family:Inter;font-style:normal;font-display:swap;font-weight:500;src:url(/_next/static/media/inter-cyrillic-ext-500-normal.563e11f7.woff2) format("woff2"),url(/_next/static/media/inter-all-500-normal.56c3d87b.woff) format("woff");unicode-range:u+0460-052f,u+1c80-1c88,u+20b4,u+2de0-2dff,u+a640-a69f,u+fe2e-fe2f}@font-face{font-family:Inter;font-style:normal;font-display:swap;font-weight:500;src:url(/_next/static/media/inter-cyrillic-500-normal.017c512f.woff2) format("woff2"),url(/_next/static/media/inter-all-500-normal.56c3d87b.woff) format("woff");unicode-range:u+0301,u+0400-045f,u+0490-0491,u+04b0-04b1,u+2116}@font-face{font-family:Inter;font-style:normal;font-display:swap;font-weight:500;src:url(/_next/static/media/inter-greek-ext-500-normal.9ef8ce0d.woff2) format("woff2"),url(/_next/static/media/inter-all-500-normal.56c3d87b.woff) format("woff");unicode-range:u+1f??}@font-face{font-family:Inter;font-style:normal;font-display:swap;font-weight:500;src:url(/_next/static/media/inter-greek-500-normal.599dd974.woff2) format("woff2"),url(/_next/static/media/inter-all-500-normal.56c3d87b.woff) format("woff");unicode-range:u+0370-03ff}@font-face{font-family:Inter;font-style:normal;font-display:swap;font-weight:500;src:url(/_next/static/media/inter-vietnamese-500-normal.7b524ed3.woff2) format("woff2"),url(/_next/static/media/inter-all-500-normal.56c3d87b.woff) format("woff");unicode-range:u+0102-0103,u+0110-0111,u+0128-0129,u+0168-0169,u+01a0-01a1,u+01af-01b0,u+1ea0-1ef9,u+20ab}@font-face{font-family:Inter;font-style:normal;font-display:swap;font-weight:500;src:url(/_next/static/media/inter-latin-ext-500-normal.47503116.woff2) format("woff2"),url(/_next/static/media/inter-all-500-normal.56c3d87b.woff) format("woff");unicode-range:u+0100-024f,u+0259,u+1e??,u+2020,u+20a0-20ab,u+20ad-20cf,u+2113,u+2c60-2c7f,u+a720-a7ff}@font-face{font-family:Inter;font-style:normal;font-display:swap;font-weight:500;src:url(/_next/static/media/inter-latin-500-normal.b7be75b9.woff2) format("woff2"),url(/_next/static/media/inter-all-500-normal.56c3d87b.woff) format("woff");unicode-range:u+00??,u+0131,u+0152-0153,u+02bb-02bc,u+02c6,u+02da,u+02dc,u+2000-206f,u+2074,u+20ac,u+2122,u+2191,u+2193,u+2212,u+2215,u+feff,u+fffd}@font-face{font-family:Inter;font-style:normal;font-display:swap;font-weight:600;src:url(/_next/static/media/inter-cyrillic-ext-600-normal.4eb7a897.woff2) format("woff2"),url(/_next/static/media/inter-all-600-normal.d9666969.woff) format("woff");unicode-range:u+0460-052f,u+1c80-1c88,u+20b4,u+2de0-2dff,u+a640-a69f,u+fe2e-fe2f}@font-face{font-family:Inter;font-style:normal;font-display:swap;font-weight:600;src:url(/_next/static/media/inter-cyrillic-600-normal.9f2082d5.woff2) format("woff2"),url(/_next/static/media/inter-all-600-normal.d9666969.woff) format("woff");unicode-range:u+0301,u+0400-045f,u+0490-0491,u+04b0-04b1,u+2116}@font-face{font-family:Inter;font-style:normal;font-display:swap;font-weight:600;src:url(/_next/static/media/inter-greek-ext-600-normal.04ef07b9.woff2) format("woff2"),url(/_next/static/media/inter-all-600-normal.d9666969.woff) format("woff");unicode-range:u+1f??}@font-face{font-family:Inter;font-style:normal;font-display:swap;font-weight:600;src:url(/_next/static/media/inter-greek-600-normal.eff3b663.woff2) format("woff2"),url(/_next/static/media/inter-all-600-normal.d9666969.woff) format("woff");unicode-range:u+0370-03ff}@font-face{font-family:Inter;font-style:normal;font-display:swap;font-weight:600;src:url(/_next/static/media/inter-vietnamese-600-normal.eb82de1d.woff2) format("woff2"),url(/_next/static/media/inter-all-600-normal.d9666969.woff) format("woff");unicode-range:u+0102-0103,u+0110-0111,u+0128-0129,u+0168-0169,u+01a0-01a1,u+01af-01b0,u+1ea0-1ef9,u+20ab}@font-face{font-family:Inter;font-style:normal;font-display:swap;font-weight:600;src:url(/_next/static/media/inter-latin-ext-600-normal.0a04c3cd.woff2) format("woff2"),url(/_next/static/media/inter-all-600-normal.d9666969.woff) format("woff");unicode-range:u+0100-024f,u+0259,u+1e??,u+2020,u+20a0-20ab,u+20ad-20cf,u+2113,u+2c60-2c7f,u+a720-a7ff}@font-face{font-family:Inter;font-style:normal;font-display:swap;font-weight:600;src:url(/_next/static/media/inter-latin-600-normal.a3e93aa0.woff2) format("woff2"),url(/_next/static/media/inter-all-600-normal.d9666969.woff) format("woff");unicode-range:u+00??,u+0131,u+0152-0153,u+02bb-02bc,u+02c6,u+02da,u+02dc,u+2000-206f,u+2074,u+20ac,u+2122,u+2191,u+2193,u+2212,u+2215,u+feff,u+fffd}@font-face{font-family:Inter;font-style:normal;font-display:swap;font-weight:700;src:url(/_next/static/media/inter-cyrillic-ext-700-normal.7c668daa.woff2) format("woff2"),url(/_next/static/media/inter-all-700-normal.f3163a49.woff) format("woff");unicode-range:u+0460-052f,u+1c80-1c88,u+20b4,u+2de0-2dff,u+a640-a69f,u+fe2e-fe2f}@font-face{font-family:Inter;font-style:normal;font-display:swap;font-weight:700;src:url(/_next/static/media/inter-cyrillic-700-normal.8b03fbd1.woff2) format("woff2"),url(/_next/static/media/inter-all-700-normal.f3163a49.woff) format("woff");unicode-range:u+0301,u+0400-045f,u+0490-0491,u+04b0-04b1,u+2116}@font-face{font-family:Inter;font-style:normal;font-display:swap;font-weight:700;src:url(/_next/static/media/inter-greek-ext-700-normal.5fb4f9ba.woff2) format("woff2"),url(/_next/static/media/inter-all-700-normal.f3163a49.woff) format("woff");unicode-range:u+1f??}@font-face{font-family:Inter;font-style:normal;font-display:swap;font-weight:700;src:url(/_next/static/media/inter-greek-700-normal.54b722f0.woff2) format("woff2"),url(/_next/static/media/inter-all-700-normal.f3163a49.woff) format("woff");unicode-range:u+0370-03ff}@font-face{font-family:Inter;font-style:normal;font-display:swap;font-weight:700;src:url(/_next/static/media/inter-vietnamese-700-normal.00e401a9.woff2) format("woff2"),url(/_next/static/media/inter-all-700-normal.f3163a49.woff) format("woff");unicode-range:u+0102-0103,u+0110-0111,u+0128-0129,u+0168-0169,u+01a0-01a1,u+01af-01b0,u+1ea0-1ef9,u+20ab}@font-face{font-family:Inter;font-style:normal;font-display:swap;font-weight:700;src:url(/_next/static/media/inter-latin-ext-700-normal.07491ea2.woff2) format("woff2"),url(/_next/static/media/inter-all-700-normal.f3163a49.woff) format("woff");unicode-range:u+0100-024f,u+0259,u+1e??,u+2020,u+20a0-20ab,u+20ad-20cf,u+2113,u+2c60-2c7f,u+a720-a7ff}@font-face{font-family:Inter;font-style:normal;font-display:swap;font-weight:700;src:url(/_next/static/media/inter-latin-700-normal.7ddf3c11.woff2) format("woff2"),url(/_next/static/media/inter-all-700-normal.f3163a49.woff) format("woff");unicode-range:u+00??,u+0131,u+0152-0153,u+02bb-02bc,u+02c6,u+02da,u+02dc,u+2000-206f,u+2074,u+20ac,u+2122,u+2191,u+2193,u+2212,u+2215,u+feff,u+fffd}.visible{visibility:visible}.invisible{visibility:hidden}.collapse{visibility:collapse}.static{position:static}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.sticky{position:sticky}.left-2{left:.5rem}.left-3{left:.75rem}.right-2{right:.5rem}.right-3{right:.75rem}.right-8{right:2rem}.top-0{top:0}.top-2{top:.5rem}.top-3{top:.75rem}.top-8{top:2rem}.z-\[1\]{z-index:1}.z-\[2\]{z-index:2}.m-0{margin:0}.m-1{margin:.25rem}.mx-4{margin-left:1rem;margin-right:1rem}.my-2{margin-top:.5rem;margin-bottom:.5rem}.my-4{margin-top:1rem;margin-bottom:1rem}.my-6{margin-top:1.5rem;margin-bottom:1.5rem}.\!mb-0{margin-bottom:0!important}.\!mt-0{margin-top:0!important}.-ml-2{margin-left:-.5rem}.-mt-4{margin-top:-1rem}.-mt-px{margin-top:-1px}.mb-0{margin-bottom:0}.mb-1{margin-bottom:.25rem}.mb-2{margin-bottom:.5rem}.mb-3{margin-bottom:.75rem}.mb-4{margin-bottom:1rem}.mb-5{margin-bottom:1.25rem}.mb-6{margin-bottom:1.5rem}.mb-px{margin-bottom:1px}.ml-1{margin-left:.25rem}.ml-2{margin-left:.5rem}.ml-3{margin-left:.75rem}.ml-4{margin-left:1rem}.mr-0{margin-right:0}.mr-1{margin-right:.25rem}.mr-2{margin-right:.5rem}.mr-3{margin-right:.75rem}.mr-\[10px\]{margin-right:10px}.mt-0{margin-top:0}.mt-1{margin-top:.25rem}.mt-2{margin-top:.5rem}.mt-3{margin-top:.75rem}.mt-4{margin-top:1rem}.mt-5{margin-top:1.25rem}.mt-6{margin-top:1.5rem}.mt-\[-25px\]{margin-top:-25px}.mt-\[7\.25px\]{margin-top:7.25px}.block{display:block}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.table{display:table}.grid{display:grid}.contents{display:contents}.hidden{display:none}.size-2{width:.5rem;height:.5rem}.size-3{width:.75rem;height:.75rem}.size-4{width:1rem;height:1rem}.size-full{width:100%;height:100%}.h-4{height:1rem}.h-80{height:20rem}.h-9{height:2.25rem}.h-\[150px\]{height:150px}.h-\[calc\(100\%-48px\)\]{height:calc(100% - 48px)}.h-auto{height:auto}.h-full{height:100%}.h-screen{height:100vh}.max-h-96{max-height:24rem}.\!w-80{width:20rem!important}.\!w-auto{width:auto!important}.w-0{width:0}.w-1\/2{width:50%}.w-1\/3{width:33.333333%}.w-1\/5{width:20%}.w-2\/3{width:66.666667%}.w-32{width:8rem}.w-4\/5{width:80%}.w-48{width:12rem}.w-6{width:1.5rem}.w-60{width:15rem}.w-64{width:16rem}.w-80{width:20rem}.w-96{width:24rem}.w-\[432px\]{width:432px}.w-auto{width:auto}.w-fit{width:-moz-fit-content;width:fit-content}.w-full{width:100%}.w-min{width:-moz-min-content;width:min-content}.min-w-0{min-width:0}.min-w-\[100px\]{min-width:100px}.min-w-\[125px\]{min-width:125px}.min-w-\[220px\]{min-width:220px}.min-w-\[300px\]{min-width:300px}.min-w-\[350px\]{min-width:350px}.\!max-w-\[200px\]{max-width:200px!important}.max-w-2xl{max-width:42rem}.max-w-3xl{max-width:48rem}.max-w-4{max-width:1rem}.max-w-40{max-width:10rem}.max-w-96{max-width:24rem}.max-w-\[250px\]{max-width:250px}.max-w-\[300px\]{max-width:300px}.max-w-\[70\%\]{max-width:70%}.max-w-full{max-width:100%}.max-w-screen-md{max-width:768px}.max-w-sm{max-width:24rem}.flex-1{flex:1 1 0%}.shrink{flex-shrink:1}.shrink-0{flex-shrink:0}.grow{flex-grow:1}.grow-0{flex-grow:0}.basis-1\/2{flex-basis:50%}.basis-1\/3{flex-basis:33.333333%}.rotate-180{--tw-rotate:180deg}.rotate-180,.rotate-90{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.rotate-90{--tw-rotate:90deg}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.cursor-pointer{cursor:pointer}.select-all{-webkit-user-select:all;-moz-user-select:all;user-select:all}.\!resize-none{resize:none!important}.resize{resize:both}.\!list-none{list-style-type:none!important}.list-disc{list-style-type:disc}.grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.flex-row{flex-direction:row}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.flex-nowrap{flex-wrap:nowrap}.items-center{align-items:center}.justify-start{justify-content:flex-start}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-0{gap:0}.gap-1{gap:.25rem}.gap-1\.5{gap:.375rem}.gap-2{gap:.5rem}.gap-3{gap:.75rem}.gap-4{gap:1rem}.gap-6{gap:1.5rem}.gap-8{gap:2rem}.space-y-1>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-top:calc(.25rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.25rem * var(--tw-space-y-reverse))}.space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-top:calc(.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.5rem * var(--tw-space-y-reverse))}.space-y-3>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-top:calc(.75rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.75rem * var(--tw-space-y-reverse))}.space-y-4>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-top:calc(1rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1rem * var(--tw-space-y-reverse))}.space-y-6>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-top:calc(1.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1.5rem * var(--tw-space-y-reverse))}.self-start{align-self:flex-start}.self-end{align-self:flex-end}.self-center{align-self:center}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-scroll{overflow:scroll}.overflow-x-auto{overflow-x:auto}.overflow-y-auto{overflow-y:auto}.overflow-x-hidden{overflow-x:hidden}.overflow-y-hidden{overflow-y:hidden}.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.whitespace-normal{white-space:normal}.whitespace-nowrap{white-space:nowrap}.whitespace-pre-wrap{white-space:pre-wrap}.break-all{word-break:break-all}.rounded{border-radius:.25rem}.rounded-lg{border-radius:.5rem}.rounded-md{border-radius:.375rem}.border{border-width:1px}.border-t{border-top-width:1px}.\!border-none{border-style:none!important}.border-none{border-style:none}.border-\[\#DEE5EE\]{--tw-border-opacity:1;border-color:rgb(222 229 238/var(--tw-border-opacity,1))}.\!bg-transparent{background-color:transparent!important}.bg-gray-50{--tw-bg-opacity:1;background-color:rgb(249 250 251/var(--tw-bg-opacity,1))}.bg-transparent{background-color:transparent}.bg-white{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity,1))}.p-0{padding:0}.p-2{padding:.5rem}.p-3{padding:.75rem}.p-4{padding:1rem}.p-6{padding:1.5rem}.p-\[var\(--ant-padding\)\]{padding:var(--ant-padding)}.px-1{padding-left:.25rem;padding-right:.25rem}.px-10{padding-left:2.5rem;padding-right:2.5rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-4{padding-left:1rem;padding-right:1rem}.px-5{padding-left:1.25rem;padding-right:1.25rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.py-10{padding-top:2.5rem;padding-bottom:2.5rem}.py-12{padding-top:3rem;padding-bottom:3rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}.py-4{padding-top:1rem;padding-bottom:1rem}.py-6{padding-top:1.5rem;padding-bottom:1.5rem}.py-8{padding-top:2rem;padding-bottom:2rem}.pb-1{padding-bottom:.25rem}.pb-4{padding-bottom:1rem}.pb-5{padding-bottom:1.25rem}.pb-6{padding-bottom:1.5rem}.pl-0{padding-left:0}.pl-0\.5{padding-left:.125rem}.pl-1{padding-left:.25rem}.pl-2\.5{padding-left:.625rem}.pl-4{padding-left:1rem}.pr-2{padding-right:.5rem}.pr-4{padding-right:1rem}.pt-1{padding-top:.25rem}.pt-2{padding-top:.5rem}.pt-3{padding-top:.75rem}.pt-4{padding-top:1rem}.pt-6{padding-top:1.5rem}.pt-\[5px\]{padding-top:5px}.text-left{text-align:left}.text-center{text-align:center}.align-top{vertical-align:top}.align-middle{vertical-align:middle}.align-text-bottom{vertical-align:text-bottom}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xs{font-size:.75rem;line-height:1rem}.font-medium{font-weight:500}.font-normal{font-weight:400}.font-semibold{font-weight:600}.uppercase{text-transform:uppercase}.lowercase{text-transform:lowercase}.capitalize{text-transform:capitalize}.italic{font-style:italic}.ordinal{--tw-ordinal:ordinal}.ordinal,.tabular-nums{font-variant-numeric:var(--tw-ordinal) var(--tw-slashed-zero) var(--tw-numeric-figure) var(--tw-numeric-spacing) var(--tw-numeric-fraction)}.tabular-nums{--tw-numeric-spacing:tabular-nums}.text-\[var\(--ant-font-size-sm\)\]{color:var(--ant-font-size-sm)}.text-black{--tw-text-opacity:1;color:rgb(0 0 0/var(--tw-text-opacity,1))}.text-gray-500{--tw-text-opacity:1;color:rgb(107 114 128/var(--tw-text-opacity,1))}.text-gray-600{--tw-text-opacity:1;color:rgb(75 85 99/var(--tw-text-opacity,1))}.text-gray-700{--tw-text-opacity:1;color:rgb(55 65 81/var(--tw-text-opacity,1))}.text-inherit{color:inherit}.text-red-500{--tw-text-opacity:1;color:rgb(239 68 68/var(--tw-text-opacity,1))}.text-transparent{color:transparent}.text-white{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}.underline{text-decoration-line:underline}.shadow{--tw-shadow:0 1px 3px 0 rgba(0,0,0,.1),0 1px 2px -1px rgba(0,0,0,.1);--tw-shadow-colored:0 1px 3px 0 var(--tw-shadow-color),0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.outline{outline-style:solid}.blur{--tw-blur:blur(8px)}.blur,.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.duration-300{transition-duration:.3s}.ease-in{transition-timing-function:cubic-bezier(.4,0,1,1)}.hover\:\!bg-gray-700:hover{--tw-bg-opacity:1!important;background-color:rgb(55 65 81/var(--tw-bg-opacity,1))!important}.hover\:bg-transparent:hover{background-color:transparent}.focus\:\!bg-gray-700:focus{--tw-bg-opacity:1!important;background-color:rgb(55 65 81/var(--tw-bg-opacity,1))!important}.active\:bg-transparent:active{background-color:transparent}.group:hover .group-hover\:visible{visibility:visible}@media (min-width:1024px){.lg\:inline{display:inline}}@media (min-width:1280px){.xl\:block{display:block}.xl\:hidden{display:none}}@media (min-width:1536px){.\32xl\:w-\[432px\]{width:432px}}.\[\&_th\]\:\!break-normal th{overflow-wrap:normal!important;word-break:normal!important}:export{FIDESUI_FULL_BLACK:#000;FIDESUI_FULL_WHITE:#fff;FIDESUI_BG_WHITE:#fff;FIDESUI_NEUTRAL_50:#fafafa;FIDESUI_NEUTRAL_75:#f5f5f5;FIDESUI_NEUTRAL_100:#e6e6e8;FIDESUI_NEUTRAL_200:#d1d2d4;FIDESUI_NEUTRAL_300:#bcbec1;FIDESUI_NEUTRAL_400:#a8aaad;FIDESUI_NEUTRAL_500:#93969a;FIDESUI_NEUTRAL_600:#7e8185;FIDESUI_NEUTRAL_700:#696c71;FIDESUI_NEUTRAL_800:#53575c;FIDESUI_NEUTRAL_900:#2b2e35;FIDESUI_BG_DEFAULT:#f5f5f5;FIDESUI_CORINTH:#fafafa;FIDESUI_BG_CORINTH:#fafafa;FIDESUI_LIMESTONE:#f1efee;FIDESUI_MINOS:#2b2e35;FIDESUI_BG_MINOS:#4f525b;FIDESUI_TERRACOTTA:#b9704b;FIDESUI_BG_TERRACOTTA:#f1b193;FIDESUI_OLIVE:#999b83;FIDESUI_BG_OLIVE:#d4d5c8;FIDESUI_MARBLE:#cdd2d3;FIDESUI_BG_MARBLE:#e1e5e6;FIDESUI_SANDSTONE:#cecac2;FIDESUI_BG_SANDSTONE:#e3e0d9;FIDESUI_NECTAR:#f0ebc1;FIDESUI_BG_NECTAR:#f5f2d7;FIDESUI_ERROR:#d9534f;FIDESUI_BG_ERROR:#f7c2c2;FIDESUI_WARNING:#e59d47;FIDESUI_BG_WARNING:#fbddb5;FIDESUI_BG_CAUTION:#f6e3a4;FIDESUI_SUCCESS:#5a9a68;FIDESUI_BG_SUCCESS:#c3e6b2;FIDESUI_INFO:#4a90e2;FIDESUI_BG_INFO:#a5d6f3;FIDESUI_ALERT:#7b4ea9;FIDESUI_BG_ALERT:#d9b0d7;FIDESUI_ERROR_TEXT:#d32f2f;FIDESUI_SUCCESS_TEXT:#388e3c;FIDESUI_LINK:#2272ce}h1,h2,h3,h4,h5,h6{font-weight:700}:root{--fidesui-full-black:#000;--fidesui-full-white:#fff;--fidesui-bg-white:#fff;--fidesui-neutral-50:#fafafa;--fidesui-neutral-75:#f5f5f5;--fidesui-neutral-100:#e6e6e8;--fidesui-neutral-200:#d1d2d4;--fidesui-neutral-300:#bcbec1;--fidesui-neutral-400:#a8aaad;--fidesui-neutral-500:#93969a;--fidesui-neutral-600:#7e8185;--fidesui-neutral-700:#696c71;--fidesui-neutral-800:#53575c;--fidesui-neutral-900:#2b2e35;--fidesui-bg-default:#f5f5f5;--fidesui-corinth:#fafafa;--fidesui-bg-corinth:#fafafa;--fidesui-limestone:#f1efee;--fidesui-minos:#2b2e35;--fidesui-bg-minos:#4f525b;--fidesui-terracotta:#b9704b;--fidesui-bg-terracotta:#f1b193;--fidesui-olive:#999b83;--fidesui-bg-olive:#d4d5c8;--fidesui-marble:#cdd2d3;--fidesui-bg-marble:#e1e5e6;--fidesui-sandstone:#cecac2;--fidesui-bg-sandstone:#e3e0d9;--fidesui-nectar:#f0ebc1;--fidesui-bg-nectar:#f5f2d7;--fidesui-error:#d9534f;--fidesui-bg-error:#f7c2c2;--fidesui-warning:#e59d47;--fidesui-bg-warning:#fbddb5;--fidesui-bg-caution:#f6e3a4;--fidesui-success:#5a9a68;--fidesui-bg-success:#c3e6b2;--fidesui-info:#4a90e2;--fidesui-bg-info:#a5d6f3;--fidesui-alert:#7b4ea9;--fidesui-bg-alert:#d9b0d7;--fidesui-error-text:#d32f2f;--fidesui-success-text:#388e3c;--fidesui-link:#2272ce}:focus-visible{outline-color:var(--fidesui-minos)}.ant-input-compact-item.ant-input-css-var{--ant-color-border:var(--fidesui-neutral-200);--ant-input-hover-border-color:var(--fidesui-neutral-200)}.ant-btn-compact-item.ant-btn-variant-outlined{--ant-button-default-border-color:var(--fidesui-neutral-200);--ant-button-default-hover-border-color:var(--fidesui-neutral-200);--ant-button-default-hover-bg:var(--fidesui-neutral-200);--ant-button-default-bg:var(--fidesui-neutral-50)}.ant-btn-icon{line-height:1}.ant-form-item-label{font-weight:600}.ant-menu-dark .ant-menu-sub>.ant-menu-item>.ant-menu-title-content a{color:var(--fidesui-neutral-200)}.ant-menu-dark .ant-menu-sub>.ant-menu-item>.ant-menu-title-content a:focus-visible{text-decoration:underline}.ant-menu-dark .ant-menu-sub>.ant-menu-item:focus-within:not(.ant-menu-item-selected){background-color:var(--fidesui-neutral-800)}.ant-menu-dark .ant-menu-sub>.ant-menu-item:hover{--ant-menu-dark-item-hover-bg:var(--fidesui-neutral-800)}.ant-menu-dark .ant-menu-sub>.ant-menu-item.ant-menu-item-selected>.ant-menu-title-content a{color:var(--fidesui-minos)}.ant-menu .ant-menu-submenu-arrow{--ant-border-radius:0px}.ant-menu .ant-menu-submenu-arrow:after,.ant-menu .ant-menu-submenu-arrow:before{width:calc(var(--ant-font-size)/7*5*.65)}.ant-menu.ant-menu-horizontal .ant-menu-item:first-child{padding-left:0}.ant-menu.ant-menu-horizontal .ant-menu-item:first-child:after{inset-inline-start:0}.ant-input:-moz-read-only{--ant-color-text:var(--fidesui-neutral-700);--ant-color-bg-container:var(--fidesui-neutral-50);--ant-input-hover-bg:var(--fidesui-neutral-50);--ant-input-active-bg:var(--fidesui-neutral-50);--ant-input-active-border-color:var(--ant-color-border);--ant-input-hover-border-color:var(--ant-color-border);--ant-input-active-shadow:none;--ant-input-hove-shadow:none}.ant-input:read-only{--ant-color-text:var(--fidesui-neutral-700);--ant-color-bg-container:var(--fidesui-neutral-50);--ant-input-hover-bg:var(--fidesui-neutral-50);--ant-input-active-bg:var(--fidesui-neutral-50);--ant-input-active-border-color:var(--ant-color-border);--ant-input-hover-border-color:var(--ant-color-border);--ant-input-active-shadow:none;--ant-input-hove-shadow:none}.ant-steps-item-title{font-weight:500}.ant-table-wrapper .ant-table{--ant-table-header-icon-color:var(--fidesui-neutral-300)}.ant-table-cell *{--ant-font-size:var(--ant-table-cell-font-size-sm)}.ant-list :focus-visible{outline:auto}.ant-list .ant-list-item .ant-list-item-meta .ant-list-item-meta-title>a:focus-visible,.ant-list .ant-list-item .ant-list-item-meta .ant-list-item-meta-title>a:hover,.ant-list .ant-list-item-meta-title a:focus-visible,.ant-list .ant-list-item-meta-title a:hover{color:var(--fidesui-neutral-600)}.ant-select-dropdown .ant-select-item-group{font-weight:600;font-size:var(--ant-select-option-font-size);color:var(--ant-color-text);border-radius:0}.ant-select-dropdown .ant-select-item-group:not(:first-child){border-top:1px solid var(--ant-color-border)}.ant-progress-steps-item{border-radius:calc(var(--ant-progress-line-border-radius)/40)}.ant-tree .ant-tree-node-content-wrapper{white-space:nowrap}.ant-list .ant-list-item .ant-list-item-action li{padding-left:0}.ant-list-item-action-split{display:none}.ant-popover .ant-popover-inner-content{--ant-popover-inner-content-padding:0}.ant-drawer-header-title{flex-direction:row-reverse}.CustomTypography_paragraph__c2AID.ant-typography{margin-bottom:0}.CustomTypography_paragraph__c2AID.ant-typography:not(:last-child){margin-bottom:1em}.CustomTypography_sm__pWu1p{font-size:var(--ant-font-size-sm)!important}.CustomTypography_default__ZT1tF{font-size:var(--ant-font-size)!important}.CustomTypography_lg__dP6f4{font-size:var(--ant-font-size-lg)!important}.CustomTypography_h1__HnHaB{font-size:var(--ant-font-size-heading-1)!important}.CustomTypography_h2__D50up{font-size:var(--ant-font-size-heading-2)!important}.CustomTypography_h3__gBiAY{font-size:var(--ant-font-size-heading-3)!important}.CustomTypography_h4__r1NNB{font-size:var(--ant-font-size-heading-4)!important}.CustomTypography_h5__TUNTk{font-size:var(--ant-font-size-heading-5)!important}.CustomTypography_primaryColorLink__t9FZ3{color:var(--fides-color-primary)!important}.CustomTypography_primaryColorLink__t9FZ3 strong{color:inherit!important;text-decoration:inherit!important}.CustomTypography_primaryColorLink__t9FZ3:hover{color:var(--fidesui-neutral-800)!important;text-decoration:underline!important}.CustomTypography_unStyled__SED1R{color:inherit!important;text-decoration:inherit!important}.CustomTableHeaderCell_customTableHeaderCell__YXEen{display:flex;align-items:center}.CustomTableHeaderCell_customTableHeaderCell__children__WxTeU{flex:1}.CustomTableHeaderCell_customTableHeaderCell__button__xSmE5.ant-table-filter-trigger{margin-inline-start:calc(var(--ant-table-cell-padding-inline-sm)/2);width:20px}.CustomTag_tag__4q0OL{display:inline-flex;align-items:center;gap:calc(var(--ant-margin-xs)*.75);line-height:calc(var(--ant-line-height-sm)*var(--ant-font-size-sm) - 2px);min-height:calc(var(--ant-line-height-sm)*var(--ant-font-size-sm));font-weight:400;--ant-padding-xxs:0}.CustomTag_tag__4q0OL svg:not([data-icon]){width:10px;height:10px}.CustomTag_tag__4q0OL .ant-tag-close-icon svg{width:12px;height:12px}.CustomTag_buttonTag__IYAPu{border-radius:var(--ant-border-radius-sm)}.CustomTag_buttonTag__IYAPu:focus .ant-tag,.CustomTag_buttonTag__IYAPu:hover .ant-tag{background:#fafafa!important}.CustomTag_buttonTag__IYAPu:focus-visible{outline:none}.CustomTag_buttonTag__IYAPu:focus-visible .ant-tag{border:1px solid #2b2e35}.CustomTag_closeButton__Un_6X{border-radius:var(--ant-border-radius-xs)}.CustomTag_closeButton__Un_6X:focus-visible{outline:1px solid #2b2e35;outline-offset:2px}.CustomTooltip_tooltipChild__uzOBp{--custom-tooltip-outline-width:1px}.CustomTooltip_tooltipChild__uzOBp:focus-visible{outline:var(--custom-tooltip-outline-width) dashed #2b2e35;outline-offset:1px;transition:outline-offset 0s,outline 0s}.FloatingMenu_menu__msgMt{--ant-menu-item-height:36px!important;--ant-menu-item-margin-inline:8px!important;--ant-menu-item-width:calc(100% - 16px)!important;padding-top:4px;padding-bottom:4px;border-radius:6px;box-shadow:0 4px 6px -2px rgba(0,0,0,.05),0 10px 15px -3px rgba(0,0,0,.1)!important}.SelectInline_selectInlineRoot__sebHb{--ant-padding-sm:0;--ant-padding-xxs:0;--ant-select-multiple-selector-bg-disabled:transparent!important;--ant-select-option-selected-font-weight:400!important}.SelectInline_selectInlineRoot__sebHb .ant-select-selector{cursor:auto!important}.NavMenu_menu__ecOrj{--ant-menu-item-margin-block:0!important;--ant-menu-item-margin-inline:0!important;--ant-menu-item-width:100%!important;--ant-margin:8px}
@@ -0,0 +1 @@
1
+ self.__BUILD_MANIFEST=function(s,t,e,c,a,i,n,d,o,r,f,p,u,g,b,j,m,k,h,y,l,v,I,w,F,x,_,U,q,N,A,S,B,C,z,D,E,L,M,T,P,G,H,J,K,O,Q,R,V,W,X,Y,Z,$,ss,st,se,sc,sa,si,sn,sd,so,sr){return{__rewrites:{afterFiles:[],beforeFiles:[],fallback:[]},"/":["static/css/972dc7eef106ee7c.css","static/chunks/pages/index-363b091a4d1d70ad.js"],"/404":["static/chunks/pages/404-c31cef0ce3fbeebf.js"],"/_error":["static/chunks/pages/_error-bede3a8288930dcf.js"],"/add-systems":[s,t,"static/css/dd15c278b964de80.css","static/chunks/pages/add-systems-3f0d8698f01aabc5.js"],"/add-systems/manual":[s,e,c,a,n,j,w,t,o,m,F,x,C,"static/css/af32fcac7a177a0e.css","static/chunks/pages/add-systems/manual-a5865f42aafbe1f8.js"],"/add-systems/multiple":[o,k,z,"static/chunks/pages/add-systems/multiple-f706664770dd3e7f.js"],"/consent":["static/chunks/pages/consent-289d21aa6c42828b.js"],"/consent/configure":[o,k,"static/chunks/pages/consent/configure-0bd2eb0110873c4d.js"],"/consent/configure/add-vendors":[o,k,z,"static/chunks/pages/consent/configure/add-vendors-fcd031b2b775e4f3.js"],"/consent/privacy-experience":[j,D,"static/chunks/pages/consent/privacy-experience-ae8dff75e1c6c413.js"],"/consent/privacy-experience/new":[e,d,h,r,y,E,"static/chunks/pages/consent/privacy-experience/new-a5e738a234dadc7e.js"],"/consent/privacy-experience/[id]":[e,d,h,r,y,E,"static/chunks/pages/consent/privacy-experience/[id]-0dd17c74a6cc17ff.js"],"/consent/privacy-notices":[D,"static/chunks/pages/consent/privacy-notices-5a553b4bdbf85aa9.js"],"/consent/privacy-notices/new":[e,d,h,r,y,L,"static/chunks/pages/consent/privacy-notices/new-f03d1d0df4661a33.js"],"/consent/privacy-notices/[id]":[e,d,h,r,y,L,"static/chunks/pages/consent/privacy-notices/[id]-84ba8b9947b9af0a.js"],"/consent/properties":[l,M,"static/chunks/pages/consent/properties-5cba88e6839a087d.js"],"/consent/reporting":[s,t,i,"static/chunks/pages/consent/reporting-f2690c381c1d1a52.js"],"/data-catalog":[e,c,a,"static/css/95ac327e5d70148d.css","static/chunks/pages/data-catalog-75403467491a251b.js"],"/data-catalog/[systemId]/projects":[e,c,a,u,g,_,"static/chunks/pages/data-catalog/[systemId]/projects-ccb66ba6d1ad93fc.js"],"/data-catalog/[systemId]/projects/[projectUrn]":[u,"static/chunks/pages/data-catalog/[systemId]/projects/[projectUrn]-cb56d56b9d918682.js"],"/data-catalog/[systemId]/projects/[projectUrn]/[resourceUrn]":[s,e,c,a,t,u,g,T,U,"static/chunks/pages/data-catalog/[systemId]/projects/[projectUrn]/[resourceUrn]-5d133ec635cd716c.js"],"/data-catalog/[systemId]/resources":[u,"static/chunks/pages/data-catalog/[systemId]/resources-ecb2d925d75dfe1e.js"],"/data-catalog/[systemId]/resources/[resourceUrn]":[s,e,c,a,t,u,g,T,U,"static/chunks/pages/data-catalog/[systemId]/resources/[resourceUrn]-9d8efe43b69a285d.js"],"/data-discovery/action-center":[s,t,v,"static/css/0fd6e0884cfcc5f3.css","static/chunks/pages/data-discovery/action-center-cbff5db86e6951c4.js"],"/data-discovery/action-center/datastore":["static/chunks/pages/data-discovery/action-center/datastore-1b0ed3b3ceedfd94.js"],"/data-discovery/action-center/datastore/[monitorId]":[s,e,c,a,t,v,U,"static/chunks/pages/data-discovery/action-center/datastore/[monitorId]-e46e017a3919f94e.js"],"/data-discovery/action-center/website":["static/chunks/pages/data-discovery/action-center/website-60ad14c879b4fe27.js"],"/data-discovery/action-center/website/[monitorId]":[s,e,c,a,t,f,v,P,"static/css/cb417f0587918f85.css","static/chunks/pages/data-discovery/action-center/website/[monitorId]-cc6b359fb4968bf0.js"],"/data-discovery/action-center/website/[monitorId]/[systemId]":[s,e,c,a,w,t,o,v,F,"static/css/f9a2a44d3d34c904.css","static/chunks/pages/data-discovery/action-center/website/[monitorId]/[systemId]-a6319fb434888d5a.js"],"/data-discovery/activity":[s,t,f,q,i,"static/chunks/pages/data-discovery/activity-7dded115499a4a4a.js"],"/data-discovery/detection":[s,t,f,q,G,i,"static/chunks/pages/data-discovery/detection-e37c800313e2a422.js"],"/data-discovery/detection/[resourceUrn]":[s,t,f,q,G,i,"static/chunks/pages/data-discovery/detection/[resourceUrn]-2df143c1e1f79040.js"],"/data-discovery/discovery":[s,e,c,a,t,f,g,H,I,"static/chunks/pages/data-discovery/discovery-6178e22397f20f92.js"],"/data-discovery/discovery/[resourceUrn]":[s,e,c,a,t,f,g,H,I,"static/chunks/pages/data-discovery/discovery/[resourceUrn]-7022ca5fa834b633.js"],"/datamap":[s,a,t,m,J,i,"static/chunks/pages/datamap-d1bb19fe4ef393dc.js"],"/dataset":[p,b,"static/chunks/pages/dataset-fdaec997c1b0753f.js"],"/dataset/new":[s,p,t,i,"static/chunks/pages/dataset/new-6aed6dc24c3be001.js"],"/dataset/[datasetId]":["static/chunks/9729-fcf6ff4e3534e4a8.js",b,N,"static/chunks/pages/dataset/[datasetId]-8dad45f070a06609.js"],"/dataset/[datasetId]/[collectionName]":[e,c,a,n,b,N,K,_,"static/chunks/pages/dataset/[datasetId]/[collectionName]-74290432e74fcdc5.js"],"/dataset/[datasetId]/[collectionName]/[...subfieldNames]":[e,c,a,n,b,N,K,_,"static/chunks/pages/dataset/[datasetId]/[collectionName]/[...subfieldNames]-58c3f4c0b490264b.js"],"/datastore-connection":["static/css/f89607996ad54f4b.css","static/chunks/pages/datastore-connection-8f0804d9a38688a4.js"],"/datastore-connection/new":[s,e,n,p,j,O,t,x,Q,i,"static/chunks/pages/datastore-connection/new-b5a49743387eecef.js"],"/datastore-connection/[id]":[s,e,n,p,O,t,Q,i,"static/chunks/pages/datastore-connection/[id]-63c4805e40673c60.js"],"/fides-js-docs":["static/chunks/2fbcc6de-a6c61724c327e9fa.js","static/chunks/e3251fe7-5777b5d778e6fffa.js",e,c,a,n,p,"static/chunks/5619-9b50cec521203989.js",R,"static/css/0b4b1b65cc874774.css","static/chunks/5596-29a7c8322530b7cf.js","static/chunks/pages/fides-js-docs-1f4335dca5c09860.js"],"/integrations":[s,e,c,a,n,d,V,t,W,I,"static/chunks/pages/integrations-b0da32fe3564c129.js"],"/integrations/[id]":[s,e,c,a,n,d,V,t,r,W,I,"static/chunks/pages/integrations/[id]-3b7f47985452e01d.js"],"/login":["static/chunks/pages/login-0cb0eb44bf2dd24c.js"],"/login/[provider]":["static/chunks/pages/login/[provider]-c58beef131c3a82d.js"],"/new-privacy-requests":[s,e,X,t,A,Y,i,"static/chunks/pages/new-privacy-requests-d1152cbc3c1bbbbb.js"],"/notifications":["static/chunks/pages/notifications-8d8716dda9a6f277.js"],"/notifications/digests":[S,"static/chunks/pages/notifications/digests-65626dfcfacdc605.js"],"/notifications/digests/new":[S,Z,"static/chunks/pages/notifications/digests/new-2e15f6272e9aaeb6.js"],"/notifications/digests/[id]":[S,Z,"static/chunks/pages/notifications/digests/[id]-0e4e4e7110362022.js"],"/notifications/providers":[s,t,i,"static/chunks/pages/notifications/providers-83f78354fa34bffe.js"],"/notifications/providers/new":[s,e,c,d,$,t,ss,i,"static/chunks/pages/notifications/providers/new-2d57a70e4d32e651.js"],"/notifications/providers/[key]":[s,e,c,d,$,t,ss,i,"static/chunks/pages/notifications/providers/[key]-768c4e2f6b05304c.js"],"/notifications/templates":[e,c,"static/chunks/346-aa3b88efb85f2e28.js","static/chunks/pages/notifications/templates-5deb80abd6156f7f.js"],"/notifications/templates/add-template":[st,"static/chunks/pages/notifications/templates/add-template-4c74456b6677bf07.js"],"/notifications/templates/[id]":[st,"static/chunks/pages/notifications/templates/[id]-1b31764f520fbbc5.js"],"/poc/ant-components":["static/chunks/pages/poc/ant-components-52b1572442a20ab4.js"],"/poc/form-experiments/AntForm":["static/chunks/pages/poc/form-experiments/AntForm-a0437ba647d59799.js"],"/poc/form-experiments/FormikAntFormItem":["static/chunks/pages/poc/form-experiments/FormikAntFormItem-87285c544450ec46.js"],"/poc/form-experiments/FormikControlled":["static/chunks/pages/poc/form-experiments/FormikControlled-57997dbd451a6eed.js"],"/poc/form-experiments/FormikField":["static/chunks/pages/poc/form-experiments/FormikField-65009783e0404153.js"],"/poc/form-experiments/FormikSpreadField":[se,"static/chunks/pages/poc/form-experiments/FormikSpreadField-af097d661f6abcf4.js"],"/poc/forms":[se,"static/chunks/pages/poc/forms-eafef007c179340f.js"],"/poc/table-migration":[o,k,"static/chunks/pages/poc/table-migration-7933a824a45d0ee6.js"],"/privacy-requests":[s,e,X,t,A,Y,i,"static/chunks/pages/privacy-requests-af4f48d10926e4a4.js"],"/privacy-requests/configure":["static/chunks/pages/privacy-requests/configure-d2b3293ab496f7bc.js"],"/privacy-requests/configure/storage":[s,t,i,"static/chunks/pages/privacy-requests/configure/storage-16f77a6291bb02fe.js"],"/privacy-requests/[id]":[s,t,A,"static/css/05d05fc31d09638b.css","static/chunks/pages/privacy-requests/[id]-27c56466eab98b15.js"],"/properties":[l,M,"static/chunks/pages/properties-9bb7fe3577402008.js"],"/properties/add-property":[l,sc,"static/chunks/pages/properties/add-property-d1af260c3ddbf68b.js"],"/properties/[id]":[l,sc,"static/chunks/pages/properties/[id]-dd3c3d780533a9c2.js"],"/reporting/datamap":[s,e,c,a,R,t,m,J,i,"static/chunks/pages/reporting/datamap-33ce744d07982c0f.js"],"/settings/about":[sa,"static/chunks/pages/settings/about-6c4904c157477285.js"],"/settings/about/alpha":[sa,"static/chunks/pages/settings/about/alpha-68eaac2d79133679.js"],"/settings/consent":[r,"static/chunks/pages/settings/consent-39b5142099ed8705.js"],"/settings/consent/[configuration_id]/[purpose_id]":["static/chunks/pages/settings/consent/[configuration_id]/[purpose_id]-35626e9d8e0a3ca2.js"],"/settings/custom-fields":[s,t,i,"static/chunks/pages/settings/custom-fields-64c638ea33bb3ff9.js"],"/settings/custom-fields/new":[e,si,sn,"static/chunks/pages/settings/custom-fields/new-dcc16459e754fbbd.js"],"/settings/custom-fields/[id]":[e,si,sn,"static/chunks/pages/settings/custom-fields/[id]-b5140de4431a7ff5.js"],"/settings/domain-records":["static/chunks/pages/settings/domain-records-3843fbaf5bc433f1.js"],"/settings/domains":["static/chunks/pages/settings/domains-ea549fabce96fde4.js"],"/settings/email-templates":["static/chunks/pages/settings/email-templates-0fe318a9dfc1f593.js"],"/settings/locations":[sd,so,"static/chunks/pages/settings/locations-c42c856510cad6fd.js"],"/settings/organization":["static/chunks/pages/settings/organization-e4c552a5797c3fa5.js"],"/settings/privacy-requests":[s,t,i,"static/chunks/pages/settings/privacy-requests-2790d31b59cc3c74.js"],"/settings/regulations":[sd,so,"static/chunks/pages/settings/regulations-3c608512c415fca4.js"],"/systems":[s,e,c,a,t,P,i,"static/chunks/pages/systems-d8ce572ad07ed28c.js"],"/systems/configure/[id]":[s,e,c,a,n,j,w,t,o,m,F,x,C,"static/css/012b10627a654d5c.css","static/chunks/pages/systems/configure/[id]-9e815520adb3e580.js"],"/systems/configure/[id]/test-datasets":[p,"static/chunks/pages/systems/configure/[id]/test-datasets-e0e1a5142e41e9f2.js"],"/taxonomy":["static/chunks/678d4732-50255cc09048e643.js",s,e,c,a,d,"static/chunks/6148-59a59d5c5925344f.js",t,b,"static/css/3d6582469f7d56e0.css","static/chunks/pages/taxonomy-0cae23a599830708.js"],"/user-management":[B,"static/chunks/pages/user-management-598f98fd88505e1e.js"],"/user-management/new":[B,sr,"static/chunks/pages/user-management/new-bc1568bb47d198a9.js"],"/user-management/profile/[id]":[B,sr,"static/chunks/pages/user-management/profile/[id]-75d96422db98196f.js"],sortedPages:["/","/404","/_app","/_error","/add-systems","/add-systems/manual","/add-systems/multiple","/consent","/consent/configure","/consent/configure/add-vendors","/consent/privacy-experience","/consent/privacy-experience/new","/consent/privacy-experience/[id]","/consent/privacy-notices","/consent/privacy-notices/new","/consent/privacy-notices/[id]","/consent/properties","/consent/reporting","/data-catalog","/data-catalog/[systemId]/projects","/data-catalog/[systemId]/projects/[projectUrn]","/data-catalog/[systemId]/projects/[projectUrn]/[resourceUrn]","/data-catalog/[systemId]/resources","/data-catalog/[systemId]/resources/[resourceUrn]","/data-discovery/action-center","/data-discovery/action-center/datastore","/data-discovery/action-center/datastore/[monitorId]","/data-discovery/action-center/website","/data-discovery/action-center/website/[monitorId]","/data-discovery/action-center/website/[monitorId]/[systemId]","/data-discovery/activity","/data-discovery/detection","/data-discovery/detection/[resourceUrn]","/data-discovery/discovery","/data-discovery/discovery/[resourceUrn]","/datamap","/dataset","/dataset/new","/dataset/[datasetId]","/dataset/[datasetId]/[collectionName]","/dataset/[datasetId]/[collectionName]/[...subfieldNames]","/datastore-connection","/datastore-connection/new","/datastore-connection/[id]","/fides-js-docs","/integrations","/integrations/[id]","/login","/login/[provider]","/new-privacy-requests","/notifications","/notifications/digests","/notifications/digests/new","/notifications/digests/[id]","/notifications/providers","/notifications/providers/new","/notifications/providers/[key]","/notifications/templates","/notifications/templates/add-template","/notifications/templates/[id]","/poc/ant-components","/poc/form-experiments/AntForm","/poc/form-experiments/FormikAntFormItem","/poc/form-experiments/FormikControlled","/poc/form-experiments/FormikField","/poc/form-experiments/FormikSpreadField","/poc/forms","/poc/table-migration","/privacy-requests","/privacy-requests/configure","/privacy-requests/configure/storage","/privacy-requests/[id]","/properties","/properties/add-property","/properties/[id]","/reporting/datamap","/settings/about","/settings/about/alpha","/settings/consent","/settings/consent/[configuration_id]/[purpose_id]","/settings/custom-fields","/settings/custom-fields/new","/settings/custom-fields/[id]","/settings/domain-records","/settings/domains","/settings/email-templates","/settings/locations","/settings/organization","/settings/privacy-requests","/settings/regulations","/systems","/systems/configure/[id]","/systems/configure/[id]/test-datasets","/taxonomy","/user-management","/user-management/new","/user-management/profile/[id]"]}}("static/chunks/431-e01ee730c8ad9ece.js","static/chunks/7245-120f536e09decb85.js","static/chunks/8765-f622a35b40a7ec63.js","static/chunks/9278-08cc704317fe535e.js","static/chunks/5163-e682273cd76a7d07.js","static/css/14ba79c49597d37a.css","static/chunks/699-8ca44b0de9fa20f0.js","static/chunks/3662-f6a1ddca5ee42076.js","static/chunks/401-874303feb3899562.js","static/chunks/5279-8637d735471ec7f1.js","static/chunks/4817-d0cc100f259b3c2e.js","static/chunks/6527-0eed08abe252a918.js","static/chunks/9682-a3b2fb1a2df1c948.js","static/chunks/1099-fa8b82f521b23cce.js","static/chunks/3772-bb84842df51d3f3f.js","static/chunks/5277-e8a036319456127f.js","static/chunks/9899-303921e3d0697960.js","static/chunks/3923-7f0aa36c9e09cedf.js","static/chunks/6419-11d67f7fd4e2f247.js","static/chunks/6277-ec0e3fa4e4614098.js","static/chunks/2040-a18cc21821e2d121.js","static/chunks/7059-3f2641e3130b4ef8.js","static/css/a1800714b486e230.css","static/chunks/6344-ca66a6e10d128179.js","static/chunks/1437-9dd64c20d38667df.js","static/chunks/7773-6dce6187fe2c6984.js","static/css/d2d4e9a6923e6730.css","static/css/4861ca3e088f2d05.css","static/chunks/6315-79a1506e01f2f92b.js","static/chunks/7488-2db0992474f8056e.js","static/chunks/8373-d6c02a17fb0b118e.js","static/chunks/8212-18d8da0f9208f978.js","static/chunks/7476-4234fb244676ec13.js","static/chunks/3700-a2903cd95b8a27cb.js","static/chunks/796-fae64888b8b2f369.js","static/chunks/6853-c348f6e95f987cbf.js","static/chunks/1817-0de0312294019817.js","static/chunks/6954-c44ac4e70e777c2f.js","static/chunks/5783-63912bab7f80b0f8.js","static/chunks/9330-540a113903cb3c28.js","static/chunks/9965-6906ffdaef0f0d69.js","static/chunks/2397-16820a09e8ebfe33.js","static/chunks/9046-6428eac9f38b3886.js","static/chunks/5258-cf0d2c4c4d55a94b.js","static/chunks/549-2d9bde37e5fe13eb.js","static/chunks/1467-8808ec8836e033f9.js","static/chunks/8011-6e40c969c9fa7d35.js","static/chunks/9187-7438242f0d380bb0.js","static/chunks/1316-2606e19807c08aa5.js","static/chunks/155-1c80b19f58f44a0c.js","static/chunks/2962-342ad1b4ab402ded.js","static/chunks/3873-d759bbe7137ae8c2.js","static/chunks/4496-903c81292ffd8f91.js","static/chunks/9037-453224ba3ee65b13.js","static/chunks/3377-c2c9eb177bec8719.js","static/chunks/7630-d7bd74d0cfdb22df.js","static/chunks/2921-a5dac2eacdcc32ff.js","static/chunks/5185-fc171b6acce9f915.js","static/chunks/1115-d7ce851b36722c41.js","static/chunks/3446-f40c352c43ac950c.js","static/chunks/5643-48a5e0ad8b9fc3f7.js","static/chunks/9826-aecc5ddec86989dc.js","static/css/10994e916bc9a00a.css","static/chunks/3696-21e3dec6c2023875.js"),self.__BUILD_MANIFEST_CB&&self.__BUILD_MANIFEST_CB();