ethyca-fides 2.57.1b1__py2.py3-none-any.whl → 2.57.1b3__py2.py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (125) hide show
  1. {ethyca_fides-2.57.1b1.dist-info → ethyca_fides-2.57.1b3.dist-info}/METADATA +1 -1
  2. {ethyca_fides-2.57.1b1.dist-info → ethyca_fides-2.57.1b3.dist-info}/RECORD +120 -118
  3. fides/_version.py +3 -3
  4. fides/api/alembic/migrations/versions/1d2f04ac19f2_add_page_column_to_asset_table.py +49 -0
  5. fides/api/alembic/migrations/versions/7c3fbee90c78_add_user_assigned_data_uses_and_system_.py +54 -0
  6. fides/api/api/v1/endpoints/generic_overrides.py +5 -0
  7. fides/api/models/asset.py +1 -0
  8. fides/api/models/detection_discovery.py +12 -0
  9. fides/api/models/sql_models.py +28 -5
  10. fides/api/schemas/saas/strategy_configuration.py +1 -0
  11. fides/api/service/pagination/pagination_strategy_cursor.py +15 -1
  12. fides/api/service/pagination/pagination_strategy_link.py +1 -1
  13. fides/data/language/languages.yml +2 -0
  14. fides/ui-build/static/admin/404.html +1 -1
  15. fides/ui-build/static/admin/_next/static/{U9NCM5NDIf0eWTgeIGr_u → PCFD-5xFm2ITkbTnvuYrG}/_buildManifest.js +1 -1
  16. fides/ui-build/static/admin/_next/static/chunks/3215-c8c683b93919e0a5.js +1 -0
  17. fides/ui-build/static/admin/_next/static/chunks/4481-0500c40ed13000c0.js +1 -0
  18. fides/ui-build/static/admin/_next/static/chunks/5973-3226fe183b48668b.js +1 -0
  19. fides/ui-build/static/admin/_next/static/chunks/7044-88111db2aca2cf65.js +1 -0
  20. fides/ui-build/static/admin/_next/static/chunks/{9767-4c591bd478c72650.js → 9767-9af77524ed1648c1.js} +1 -1
  21. fides/ui-build/static/admin/_next/static/chunks/pages/{_app-c580f4c12ff5a438.js → _app-ef2643f4e3bede71.js} +1 -1
  22. fides/ui-build/static/admin/_next/static/chunks/pages/add-systems/{manual-d7f60624cbc12217.js → manual-05ab19822a7e9f80.js} +1 -1
  23. fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/action-center/[monitorId]/{[systemId]-00526324583139ab.js → [systemId]-b9fe0f7ef05fd12c.js} +1 -1
  24. fides/ui-build/static/admin/_next/static/chunks/pages/integrations/[id]-a8e08ecb0c6c3a7c.js +1 -0
  25. fides/ui-build/static/admin/_next/static/chunks/pages/privacy-requests/{[id]-c685d19a131d6960.js → [id]-bbe5854b7d19b7e9.js} +1 -1
  26. fides/ui-build/static/admin/_next/static/chunks/pages/systems/configure/{[id]-82d9af34546adaa2.js → [id]-ca753b60ca1745c5.js} +1 -1
  27. fides/ui-build/static/admin/_next/static/css/{b8dbda131f8d4c05.css → 957d0e4fea846ff0.css} +1 -1
  28. fides/ui-build/static/admin/add-systems/manual.html +1 -1
  29. fides/ui-build/static/admin/add-systems/multiple.html +1 -1
  30. fides/ui-build/static/admin/add-systems.html +1 -1
  31. fides/ui-build/static/admin/ant-poc.html +1 -1
  32. fides/ui-build/static/admin/consent/configure/add-vendors.html +1 -1
  33. fides/ui-build/static/admin/consent/configure.html +1 -1
  34. fides/ui-build/static/admin/consent/privacy-experience/[id].html +1 -1
  35. fides/ui-build/static/admin/consent/privacy-experience/new.html +1 -1
  36. fides/ui-build/static/admin/consent/privacy-experience.html +1 -1
  37. fides/ui-build/static/admin/consent/privacy-notices/[id].html +1 -1
  38. fides/ui-build/static/admin/consent/privacy-notices/new.html +1 -1
  39. fides/ui-build/static/admin/consent/privacy-notices.html +1 -1
  40. fides/ui-build/static/admin/consent/properties.html +1 -1
  41. fides/ui-build/static/admin/consent/reporting.html +1 -1
  42. fides/ui-build/static/admin/consent.html +1 -1
  43. fides/ui-build/static/admin/data-catalog/[systemId]/projects/[projectUrn]/[resourceUrn].html +1 -1
  44. fides/ui-build/static/admin/data-catalog/[systemId]/projects/[projectUrn].html +1 -1
  45. fides/ui-build/static/admin/data-catalog/[systemId]/projects.html +1 -1
  46. fides/ui-build/static/admin/data-catalog/[systemId]/resources/[resourceUrn].html +1 -1
  47. fides/ui-build/static/admin/data-catalog/[systemId]/resources.html +1 -1
  48. fides/ui-build/static/admin/data-catalog.html +1 -1
  49. fides/ui-build/static/admin/data-discovery/action-center/[monitorId]/[systemId].html +1 -1
  50. fides/ui-build/static/admin/data-discovery/action-center/[monitorId].html +1 -1
  51. fides/ui-build/static/admin/data-discovery/action-center.html +1 -1
  52. fides/ui-build/static/admin/data-discovery/activity.html +1 -1
  53. fides/ui-build/static/admin/data-discovery/detection/[resourceUrn].html +1 -1
  54. fides/ui-build/static/admin/data-discovery/detection.html +1 -1
  55. fides/ui-build/static/admin/data-discovery/discovery/[resourceUrn].html +1 -1
  56. fides/ui-build/static/admin/data-discovery/discovery.html +1 -1
  57. fides/ui-build/static/admin/datamap.html +1 -1
  58. fides/ui-build/static/admin/dataset/[datasetId]/[collectionName]/[...subfieldNames].html +1 -1
  59. fides/ui-build/static/admin/dataset/[datasetId]/[collectionName].html +1 -1
  60. fides/ui-build/static/admin/dataset/[datasetId].html +1 -1
  61. fides/ui-build/static/admin/dataset/new.html +1 -1
  62. fides/ui-build/static/admin/dataset.html +1 -1
  63. fides/ui-build/static/admin/datastore-connection/[id].html +1 -1
  64. fides/ui-build/static/admin/datastore-connection/new.html +1 -1
  65. fides/ui-build/static/admin/datastore-connection.html +1 -1
  66. fides/ui-build/static/admin/index.html +1 -1
  67. fides/ui-build/static/admin/integrations/[id].html +1 -1
  68. fides/ui-build/static/admin/integrations.html +1 -1
  69. fides/ui-build/static/admin/lib/fides-ext-gpp.js +1 -1
  70. fides/ui-build/static/admin/lib/fides-tcf.js +3 -3
  71. fides/ui-build/static/admin/login/[provider].html +1 -1
  72. fides/ui-build/static/admin/login.html +1 -1
  73. fides/ui-build/static/admin/messaging/[id].html +1 -1
  74. fides/ui-build/static/admin/messaging/add-template.html +1 -1
  75. fides/ui-build/static/admin/messaging.html +1 -1
  76. fides/ui-build/static/admin/privacy-requests/[id].html +1 -1
  77. fides/ui-build/static/admin/privacy-requests/configure/messaging.html +1 -1
  78. fides/ui-build/static/admin/privacy-requests/configure/storage.html +1 -1
  79. fides/ui-build/static/admin/privacy-requests/configure.html +1 -1
  80. fides/ui-build/static/admin/privacy-requests.html +1 -1
  81. fides/ui-build/static/admin/properties/[id].html +1 -1
  82. fides/ui-build/static/admin/properties/add-property.html +1 -1
  83. fides/ui-build/static/admin/properties.html +1 -1
  84. fides/ui-build/static/admin/reporting/datamap.html +1 -1
  85. fides/ui-build/static/admin/settings/about.html +1 -1
  86. fides/ui-build/static/admin/settings/consent.html +1 -1
  87. fides/ui-build/static/admin/settings/custom-fields.html +1 -1
  88. fides/ui-build/static/admin/settings/domain-records.html +1 -1
  89. fides/ui-build/static/admin/settings/domains.html +1 -1
  90. fides/ui-build/static/admin/settings/email-templates.html +1 -1
  91. fides/ui-build/static/admin/settings/locations.html +1 -1
  92. fides/ui-build/static/admin/settings/organization.html +1 -1
  93. fides/ui-build/static/admin/settings/regulations.html +1 -1
  94. fides/ui-build/static/admin/systems/configure/[id]/test-datasets.html +1 -1
  95. fides/ui-build/static/admin/systems/configure/[id].html +1 -1
  96. fides/ui-build/static/admin/systems.html +1 -1
  97. fides/ui-build/static/admin/taxonomy.html +1 -1
  98. fides/ui-build/static/admin/user-management/new.html +1 -1
  99. fides/ui-build/static/admin/user-management/profile/[id].html +1 -1
  100. fides/ui-build/static/admin/user-management.html +1 -1
  101. fides/ui-build/static/admin/_next/static/chunks/3627-fb83adac32c128e6.js +0 -1
  102. fides/ui-build/static/admin/_next/static/chunks/4481-ca8d2c75d634b6bc.js +0 -1
  103. fides/ui-build/static/admin/_next/static/chunks/5973-67c7562997f7d5cb.js +0 -1
  104. fides/ui-build/static/admin/_next/static/chunks/7044-9dc90893067f38ae.js +0 -1
  105. fides/ui-build/static/admin/_next/static/chunks/pages/integrations/[id]-a6448ce6ba7f0cf5.js +0 -1
  106. {ethyca_fides-2.57.1b1.dist-info → ethyca_fides-2.57.1b3.dist-info}/LICENSE +0 -0
  107. {ethyca_fides-2.57.1b1.dist-info → ethyca_fides-2.57.1b3.dist-info}/WHEEL +0 -0
  108. {ethyca_fides-2.57.1b1.dist-info → ethyca_fides-2.57.1b3.dist-info}/entry_points.txt +0 -0
  109. {ethyca_fides-2.57.1b1.dist-info → ethyca_fides-2.57.1b3.dist-info}/top_level.txt +0 -0
  110. /fides/ui-build/static/admin/_next/static/{U9NCM5NDIf0eWTgeIGr_u → PCFD-5xFm2ITkbTnvuYrG}/_ssgManifest.js +0 -0
  111. /fides/ui-build/static/admin/_next/static/chunks/{2397-7177ecf4ebe68feb.js → 2397-d8161100e3634f2c.js} +0 -0
  112. /fides/ui-build/static/admin/_next/static/chunks/{3855-5c7b11871f59e0e0.js → 3855-386aec4f0e0e89f1.js} +0 -0
  113. /fides/ui-build/static/admin/_next/static/chunks/{3872-f3d5054bdc584eaa.js → 3872-0da2c6a790542bd6.js} +0 -0
  114. /fides/ui-build/static/admin/_next/static/chunks/{6277-515c922445b8edc5.js → 6277-cad7c7c8cf48dbec.js} +0 -0
  115. /fides/ui-build/static/admin/_next/static/chunks/{6853-cacea421af3bfc26.js → 6853-2777b5ab5717fada.js} +0 -0
  116. /fides/ui-build/static/admin/_next/static/chunks/{9046-80f1ea44f89fe32c.js → 9046-b18572b89f0aaa92.js} +0 -0
  117. /fides/ui-build/static/admin/_next/static/chunks/pages/consent/{privacy-experience-35e9df60b21e21a6.js → privacy-experience-8b9f75fc0f131240.js} +0 -0
  118. /fides/ui-build/static/admin/_next/static/chunks/pages/consent/{reporting-97fea4ac45093cbd.js → reporting-81ca1ac6f52ec342.js} +0 -0
  119. /fides/ui-build/static/admin/_next/static/chunks/pages/data-catalog/[systemId]/{projects-1f965b9c496071d1.js → projects-742849f39b646a2f.js} +0 -0
  120. /fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/action-center/{[monitorId]-f0ab51d0d5f995de.js → [monitorId]-deec7b789ef30dc4.js} +0 -0
  121. /fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/{activity-1d7936f05d23097f.js → activity-0cfa8a9caf7c75c3.js} +0 -0
  122. /fides/ui-build/static/admin/_next/static/chunks/pages/reporting/{datamap-a3fa3ad77730a03b.js → datamap-449ad3b08750bfc2.js} +0 -0
  123. /fides/ui-build/static/admin/_next/static/chunks/pages/settings/{custom-fields-744e7bbc200557e7.js → custom-fields-ce9305fa04fecbb8.js} +0 -0
  124. /fides/ui-build/static/admin/_next/static/chunks/pages/settings/{locations-45e33ba111f8f8b0.js → locations-f35bd2d0c10aa58c.js} +0 -0
  125. /fides/ui-build/static/admin/_next/static/chunks/pages/settings/{regulations-94975aeab348528e.js → regulations-ba8c25b63bbf7dc2.js} +0 -0
@@ -1 +1 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8012],{43376:function(e,t,s){(window.__NEXT_P=window.__NEXT_P||[]).push(["/add-systems/manual",function(){return s(33688)}])},33688:function(e,t,s){"use strict";s.r(t);var a=s(24246),r=s(56351),n=s(86677),i=s(27378),o=s(16134),u=s(7617),d=s(77213),l=s(77830),m=s(58754),c=s(41337),y=s(57865),h=s(72774),b=s(57342);let x=e=>{let{connector:t}=e;return(0,a.jsxs)(r.xuv,{display:"flex",mb:4,alignItems:"center","data-testid":"header",children:[(0,a.jsx)(c.Z,{data:null!=t?t:"ethyca",mr:2}),(0,a.jsxs)(r.X6q,{fontSize:"md",children:["Describe your ",t?t.human_readable:"new"," system"]})]})};t.default=()=>{let{connectorType:e}=(0,n.useRouter)().query,{tabData:t,tabIndex:s,onTabChange:c}=(0,b.Z)({isCreate:!0}),f=(0,i.useMemo)(()=>{if(e)return JSON.parse(Array.isArray(e)?e[0]:e)},[e]),_=(0,o.C)(y.gU);return(0,a.jsxs)(d.Z,{title:"Describe your system",children:[(0,a.jsx)(m.Z,{heading:"Add systems",breadcrumbItems:[{title:"Add systems",href:l.xo},{title:"New system"}]}),(0,a.jsx)(x,{connector:f}),_?(0,a.jsx)(h.Z,{}):null,(0,a.jsxs)(r.xuv,{w:{base:"100%",md:"75%"},children:[(0,a.jsx)(r.xvT,{fontSize:"sm",mb:8,children:"Systems are anything that might store or process data in your organization, from a web application, to a database or data warehouse. Describe your system below to register it to the map. You may optionally complete data entry for the system using the additional tabs to navigate the sections."}),(0,a.jsx)(u.Z,{data:t,"data-testid":"system-tabs",index:s,isLazy:!0,isManual:!0,onChange:c})]})]})}}},function(e){e.O(0,[8033,2780,2858,2866,9278,4833,4481,7980,3949,8499,3627,7044,2888,9774,179],function(){return e(e.s=43376)}),_N_E=e.O()}]);
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8012],{43376:function(e,t,s){(window.__NEXT_P=window.__NEXT_P||[]).push(["/add-systems/manual",function(){return s(33688)}])},33688:function(e,t,s){"use strict";s.r(t);var a=s(24246),r=s(56351),n=s(86677),i=s(27378),o=s(16134),u=s(7617),d=s(77213),l=s(77830),m=s(58754),c=s(41337),y=s(57865),h=s(72774),b=s(57342);let x=e=>{let{connector:t}=e;return(0,a.jsxs)(r.xuv,{display:"flex",mb:4,alignItems:"center","data-testid":"header",children:[(0,a.jsx)(c.Z,{data:null!=t?t:"ethyca",mr:2}),(0,a.jsxs)(r.X6q,{fontSize:"md",children:["Describe your ",t?t.human_readable:"new"," system"]})]})};t.default=()=>{let{connectorType:e}=(0,n.useRouter)().query,{tabData:t,tabIndex:s,onTabChange:c}=(0,b.Z)({isCreate:!0}),f=(0,i.useMemo)(()=>{if(e)return JSON.parse(Array.isArray(e)?e[0]:e)},[e]),_=(0,o.C)(y.gU);return(0,a.jsxs)(d.Z,{title:"Describe your system",children:[(0,a.jsx)(m.Z,{heading:"Add systems",breadcrumbItems:[{title:"Add systems",href:l.xo},{title:"New system"}]}),(0,a.jsx)(x,{connector:f}),_?(0,a.jsx)(h.Z,{}):null,(0,a.jsxs)(r.xuv,{w:{base:"100%",md:"75%"},children:[(0,a.jsx)(r.xvT,{fontSize:"sm",mb:8,children:"Systems are anything that might store or process data in your organization, from a web application, to a database or data warehouse. Describe your system below to register it to the map. You may optionally complete data entry for the system using the additional tabs to navigate the sections."}),(0,a.jsx)(u.Z,{data:t,"data-testid":"system-tabs",index:s,isLazy:!0,isManual:!0,onChange:c})]})]})}}},function(e){e.O(0,[8033,2780,2858,2866,9278,4833,4481,7980,3949,8499,3215,7044,2888,9774,179],function(){return e(e.s=43376)}),_N_E=e.O()}]);
@@ -1 +1 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4154],{58095:function(e,t,s){var n=s(8817);e.exports=function(e,t){return!!(null==e?0:e.length)&&n(e,t,0)>-1}},21796:function(e){e.exports=function(e,t,s){for(var n=-1,i=null==e?0:e.length;++n<i;)if(s(t,e[n]))return!0;return!1}},8817:function(e,t,s){var n=s(95372),i=s(1129),a=s(58263);e.exports=function(e,t,s){return t==t?a(e,t,s):n(e,i,s)}},1129:function(e){e.exports=function(e){return e!=e}},92198:function(e,t,s){var n=s(52485),i=s(58095),a=s(21796),r=s(65581),o=s(47111),l=s(43735);e.exports=function(e,t,s){var d=-1,c=i,u=e.length,m=!0,h=[],p=h;if(s)m=!1,c=a;else if(u>=200){var v=t?null:o(e);if(v)return l(v);m=!1,c=r,p=new n}else p=t?[]:h;e:for(;++d<u;){var g=e[d],y=t?t(g):g;if(g=s||0!==g?g:0,m&&y==y){for(var x=p.length;x--;)if(p[x]===y)continue e;t&&p.push(y),h.push(g)}else c(p,y,s)||(p!==h&&p.push(y),h.push(g))}return h}},47111:function(e,t,s){var n=s(46151),i=s(50344),a=s(43735),r=n&&1/a(new n([,-0]))[1]==1/0?function(e){return new n(e)}:i;e.exports=r},58263:function(e){e.exports=function(e,t,s){for(var n=s-1,i=e.length;++n<i;)if(e[n]===t)return n;return -1}},50344:function(e){e.exports=function(){}},83766:function(e,t,s){var n=s(92198);e.exports=function(e){return e&&e.length?n(e):[]}},25654:function(e,t,s){(window.__NEXT_P=window.__NEXT_P||[]).push(["/data-discovery/action-center/[monitorId]/[systemId]",function(){return s(58955)}])},35287:function(e,t,s){"use strict";var n=s(24246),i=s(56351),a=s(88038),r=s.n(a);s(27378),t.Z=e=>{let{children:t,title:s,mainProps:a}=e;return(0,n.jsxs)(i.kCb,{"data-testid":s,direction:"column",height:"calc(100vh - 48px)",width:"calc(100vw - 240px)",children:[(0,n.jsxs)(r(),{children:[(0,n.jsxs)("title",{children:["Fides Admin UI - ",s]}),(0,n.jsx)("meta",{name:"description",content:"Privacy Engineering Platform"}),(0,n.jsx)("link",{rel:"icon",href:"/favicon.ico"})]}),(0,n.jsx)(i.kCb,{px:10,py:6,as:"main",overflow:"auto",direction:"column",flex:1,minWidth:0,...a,children:t})]})}},58754:function(e,t,s){"use strict";var n=s(24246),i=s(56351),a=s(70788);t.Z=e=>{let{heading:t,breadcrumbItems:s,isSticky:r=!0,children:o,rightContent:l,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)(i.jqI,{justify:"space-between",children:["string"==typeof t?(0,n.jsx)(i.X6q,{className:s||o?"pb-4":void 0,fontSize:"2xl","data-testid":"page-heading",children:t}):t,l&&(0,n.jsx)("div",{"data-testid":"page-header-right-content",children:l})]}),!!s&&(0,n.jsx)(a.m,{className:o?"pb-4":void 0,items:s,"data-testid":"page-breadcrumb"}),o]})}},79283:function(e,t,s){"use strict";s.d(t,{l:function(){return l}});var n=s(24246),i=s(56351),a=s(72707),r=s.n(a);let o=e=>{let{data:t}=e;return(0,n.jsxs)(i.jqI,{gap:12,title:"".concat(t.primaryName||"").concat(t.primaryName?": ":"").concat(t.name," - ").concat(t.description),children:[(0,n.jsxs)("div",{children:[(0,n.jsx)("strong",{children:t.primaryName||t.name}),t.primaryName&&": ".concat(t.name)]}),(0,n.jsx)("em",{children:t.description})]})},l=e=>{let{options:t,...s}=e,a=null==t?void 0:t.map(e=>({...e,className:r().option}));return(0,n.jsx)(i.WPr,{options:a,autoFocus:!0,variant:"borderless",optionRender:o,dropdownStyle:{minWidth:"500px"},className:"w-full p-0","data-testid":"taxonomy-select",...s})}},97181:function(e,t,s){"use strict";s.d(t,{d:function(){return d}});var n=s(24246),i=s(56351),a=s(34090),r=s(27378),o=s(91613),l=s(40324);let d=e=>{let{name:t,label:s,labelProps:d,tooltip:c,isRequired:u,layout:m="inline",...h}=e,[p,v,{setValue:g}]=(0,a.U$)(t),y=!!(v.touched&&v.error),[x,f]=(0,r.useState)("");p.value||"tags"!==h.mode&&"multiple"!==h.mode||(p.value=[]),"tags"===h.mode&&"string"==typeof p.value&&(p.value=[p.value]);let j="tags"===h.mode?(e,t)=>e?e.value!==x||p.value.includes(x)?h.optionRender?h.optionRender(e,t):e.label:'Create "'.concat(x,'"'):void 0:h.optionRender||void 0,b=e=>{f(e),h.onSearch&&h.onSearch(e)},w=(e,t)=>{g(e),h.onChange&&h.onChange(e,t)};return"inline"===m?(0,n.jsx)(i.NIc,{isInvalid:y,isRequired:u,children:(0,n.jsxs)(i.rjZ,{templateColumns:s?"1fr 3fr":"1fr",children:[s?(0,n.jsx)(l.__,{htmlFor:h.id||t,...d,children:s}):null,(0,n.jsxs)(i.jqI,{align:"center",children:[(0,n.jsxs)(i.jqI,{vertical:!0,flex:1,className:"mr-2",children:[(0,n.jsx)(i.WPr,{...p,id:h.id||t,"data-testid":"controlled-select-".concat(p.name),...h,optionRender:j,onSearch:"tags"===h.mode?b:void 0,onChange:w,value:p.value||void 0}),(0,n.jsx)(l.Bc,{isInvalid:y,message:v.error,fieldName:p.name})]}),c?(0,n.jsx)(o.Z,{label:c}):null]})]})}):(0,n.jsx)(i.NIc,{isInvalid:y,isRequired:u,children:(0,n.jsxs)(i.gCW,{alignItems:"start",children:[(0,n.jsxs)(i.jqI,{align:"center",children:[s?(0,n.jsx)(l.__,{htmlFor:h.id||t,fontSize:"xs",my:0,mr:1,...d,children:s}):null,c?(0,n.jsx)(o.Z,{label:c}):null]}),(0,n.jsx)(i.WPr,{...p,id:h.id||t,"data-testid":"controlled-select-".concat(p.name),...h,optionRender:j,onSearch:"tags"===h.mode?b:void 0,onChange:w,value:p.value||void 0}),(0,n.jsx)(l.Bc,{isInvalid:y,message:v.error,fieldName:p.name})]})})}},14047:function(e,t,s){"use strict";s.d(t,{H:function(){return a},V:function(){return n.V}});var n=s(84306),i=s(812);let a=()=>{let{errorAlert:e}=(0,n.V)();return{handleError:t=>{let s="An unexpected error occurred. Please try again.";(0,i.Ot)(t)?s=t.data.detail:(0,i.tB)(t)&&(s=t.data.detail[0].msg),e(s)}}}},84306:function(e,t,s){"use strict";s.d(t,{V:function(){return a}});var n=s(24246),i=s(56351);let a=()=>{let e=(0,i.pmc)();return{errorAlert:(t,s,a)=>{let r={...a,position:(null==a?void 0:a.position)||"top",render:e=>{let{onClose:a}=e;return(0,n.jsxs)(i.bZj,{alignItems:"normal",status:"error","data-testid":"error-alert",children:[(0,n.jsx)(i.zMQ,{}),(0,n.jsxs)(i.xuv,{children:[s&&(0,n.jsx)(i.CdC,{children:s}),(0,n.jsx)(i.XaZ,{children:t})]}),(0,n.jsx)(i.PZ7,{onClick:a,position:"relative",right:0,size:"sm",top:-1})]})}};(null==a?void 0:a.id)&&e.isActive(a.id)?e.update(a.id,r):e(r)},successAlert:(t,s,a)=>{let r={...a,position:(null==a?void 0:a.position)||"top",render:e=>{let{onClose:a}=e;return(0,n.jsxs)(i.bZj,{alignItems:"normal",status:"success",variant:"subtle","data-testid":"success-alert",children:[(0,n.jsx)(i.zMQ,{}),(0,n.jsxs)(i.xuv,{children:[s&&(0,n.jsx)(i.CdC,{children:s}),(0,n.jsx)(i.XaZ,{children:t})]}),(0,n.jsx)(i.PZ7,{onClick:a,position:"relative",right:0,size:"sm",top:-1})]})}};(null==a?void 0:a.id)&&e.isActive(a.id)?e.update(a.id,r):e(r)}}}},45938:function(e,t,s){"use strict";s.d(t,{Gt:function(){return m},eB:function(){return h},oI:function(){return u}});var n=s(24246),i=s(34090),a=s(27378),r=s(16134),o=s(38602),l=s(58452);let d=(0,a.createRef)(),c=(0,a.createRef)(),u=()=>{let e=(0,r.T)(),t=(0,r.C)(o.DB),s=(0,a.useCallback)(()=>{c.current=void 0,d.current=void 0},[]),n=(0,a.useCallback)(()=>{e((0,o.Mr)()),c.current&&(c.current(!0),s())},[e,s]),i=(0,a.useCallback)(()=>{e((0,o.Mr)()),c.current&&(c.current(!1),s())},[e,s]);return{attemptAction:(0,a.useCallback)(()=>t?(e((0,o.h7)()),d.current||(d.current=new Promise(e=>{c.current=e})),d.current):Promise.resolve(!0),[t,e]),onConfirm:n,onClose:i}},m=e=>{let{id:t,name:s}=e,{dirty:n}=(0,i.u6)(),l=(0,r.T)();return(0,a.useEffect)(()=>(l((0,o.Zu)({id:t,name:s})),()=>{l((0,o.dz)({id:t}))}),[l,t,s]),(0,a.useEffect)(()=>{l((0,o.$p)({id:t,isDirty:n}))},[n,l,t]),null},h=()=>{let{onConfirm:e,onClose:t}=u(),s=(0,r.C)(o.uv);return(0,n.jsx)(l.Z,{isOpen:s,onClose:t,onConfirm:e,isCentered:!0,title:"Unsaved Changes",message:"You have unsaved changes"})}},8133:function(e,t,s){"use strict";var n=s(24246),i=s(56351);t.Z=e=>{let{title:t,children:s,isOpen:a,onClose:r,...o}=e;return(0,n.jsxs)(i.u_l,{isOpen:a,onClose:r,isCentered:!0,scrollBehavior:"inside",size:"xl",id:"add-modal",...o,children:[(0,n.jsx)(i.ZAr,{}),(0,n.jsxs)(i.hzk,{textAlign:"left",p:0,"data-testid":"add-modal-content",children:[(0,n.jsx)(i.xBx,{p:0,children:(0,n.jsx)(i.xuv,{backgroundColor:"gray.50",px:6,py:4,border:"1px",borderColor:"gray.200",borderTopRadius:6,display:"flex",justifyContent:"space-between",alignItems:"center",children:(0,n.jsx)(i.X6q,{as:"h3",size:"sm",children:t})})}),(0,n.jsx)(i.fef,{pb:4,overflow:"auto",children:s})]})]})}},70788:function(e,t,s){"use strict";s.d(t,{m:function(){return d}});var n=s(24246),i=s(56351),a=s(79894),r=s.n(a),o=s(27378);let{Text:l}=i.AntTypography,d=e=>{let{items:t,...s}=e,a=(0,o.useMemo)(()=>null==t?void 0:t.map((e,s)=>{let a=s===t.length-1,o={...e},d=o.onClick&&!o.href;return("string"==typeof o.title&&(o.title=(0,n.jsx)(l,{style:{color:"inherit",maxWidth:a?void 0:400},ellipsis:!a,children:o.title})),d)?o.title=(0,n.jsx)(i.wpx,{type:"text",size:"small",icon:o.icon,onClick:o.onClick,className:"ant-breadcrumb-link -mt-px px-1 text-inherit",children:o.title}):(o.icon&&(o.title=(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("span",{className:"anticon align-text-bottom",children:o.icon}),o.title]})),o.href&&o.title&&(o.title=(0,n.jsx)(r(),{href:o.href,className:"ant-breadcrumb-link",children:o.title}),delete o.href)),o}),[t]);return(0,n.jsx)(i.zrq,{items:a,...s})}},37059:function(e,t,s){"use strict";s.d(t,{Ak:function(){return h},EY:function(){return c},Ud:function(){return a},Vr:function(){return p},WJ:function(){return o},nP:function(){return d},nS:function(){return u},rs:function(){return l},sX:function(){return m},wi:function(){return r}});var n=s(78780),i=s(16394);let{useGetAggregateMonitorResultsQuery:a,useGetDiscoveredSystemAggregateQuery:r,useGetDiscoveredAssetsQuery:o,useAddMonitorResultSystemsMutation:l,useIgnoreMonitorResultSystemsMutation:d,useAddMonitorResultAssetsMutation:c,useIgnoreMonitorResultAssetsMutation:u,useUpdateAssetsSystemMutation:m,useUpdateAssetsDataUseMutation:h,useUpdateAssetsMutation:p}=n.u.injectEndpoints({endpoints:e=>({getAggregateMonitorResults:e.query({query:e=>{let{page:t=1,size:s=20,search:n}=e;return{url:"/plus/discovery-monitor/aggregate-results",params:{page:t,size:s,search:n,diff_status:"addition"}}},providesTags:["Discovery Monitor Results"]}),getDiscoveredSystemAggregate:e.query({query:e=>{let{key:t,page:s=1,size:n=20,search:i}=e;return{url:"/plus/discovery-monitor/system-aggregate-results",params:{monitor_config_id:t,page:s,size:n,search:i,diff_status:"addition"}}},providesTags:["Discovery Monitor Results"]}),getDiscoveredAssets:e.query({query:e=>{let{key:t,system:s,page:n=1,size:i=20,search:a}=e;return{url:"/plus/discovery-monitor/".concat(t,"/results"),params:{resolved_system_id:s,page:n,size:i,search:a,diff_status:"addition"}}},providesTags:()=>["Discovery Monitor Results"]}),addMonitorResultSystems:e.mutation({query:e=>{let{monitor_config_key:t,resolved_system_ids:s}=e,n=(0,i.du)(s,"resolved_system_ids");return{method:"POST",url:"/plus/discovery-monitor/".concat(t,"/promote?").concat(n)}},invalidatesTags:["Discovery Monitor Results"]}),ignoreMonitorResultSystems:e.mutation({query:e=>{let{monitor_config_key:t,resolved_system_ids:s}=e,n=(0,i.du)(s,"resolved_system_ids");return{method:"POST",url:"/plus/discovery-monitor/".concat(t,"/mute?").concat(n)}},invalidatesTags:["Discovery Monitor Results"]}),addMonitorResultAssets:e.mutation({query:e=>{var t;let s=new URLSearchParams;return null===(t=e.urnList)||void 0===t||t.forEach(e=>s.append("staged_resource_urns",e)),{method:"POST",url:"/plus/discovery-monitor/promote?".concat(s)}},invalidatesTags:["Discovery Monitor Results"]}),ignoreMonitorResultAssets:e.mutation({query:e=>{var t;let s=new URLSearchParams;return null===(t=e.urnList)||void 0===t||t.forEach(e=>s.append("staged_resource_urns",e)),{method:"POST",url:"/plus/discovery-monitor/mute?".concat(s)}},invalidatesTags:["Discovery Monitor Results"]}),updateAssetsSystem:e.mutation({query:e=>({method:"PATCH",url:"/plus/discovery-monitor/".concat(e.monitorId,"/results"),body:e.urnList.map(t=>({urn:t,system_key:e.systemKey}))}),invalidatesTags:["Discovery Monitor Results","System Assets"]}),updateAssetsDataUse:e.mutation({query:e=>({method:"PATCH",url:"/plus/discovery-monitor/".concat(e.monitorId,"/results"),body:e.urnList.map(t=>({urn:t,data_uses:e.dataUses}))}),invalidatesTags:["Discovery Monitor Results"]}),updateAssets:e.mutation({query:e=>({method:"PATCH",url:"/plus/discovery-monitor/".concat(e.monitorId,"/results"),body:e.assets}),invalidatesTags:["Discovery Monitor Results"]})})})},78238:function(e,t,s){"use strict";s.d(t,{g:function(){return n}});let n=["essential","functional.service.improve","personalize","analytics","marketing.advertising.first_party.targeted","marketing.advertising.third_party.targeted"];t.Z=e=>n.includes(e)},26183:function(e,t,s){"use strict";var n=s(24246);s(27378),t.Z=e=>{let{children:t,className:s,...i}=e;return(0,n.jsx)("div",{className:"relative flex w-full flex-wrap items-center gap-2 overflow-x-auto py-2 ".concat(s||""),...i,children:t})}},33335:function(e,t,s){"use strict";s.d(t,{E:function(){return n}});let n=e=>e.toLowerCase().replace(/ /g,"_").replace(/[^a-zA-Z0-9._<>-]/g,"")},36345:function(e,t,s){"use strict";s.d(t,{Z:function(){return g}});var n=s(24246),i=s(56351),a=s(34090),r=s(27378),o=s(16134),l=s(40324);let d=(0,i.IUT)({displayName:"CompassIcon",viewBox:"0 0 512 512",path:(0,n.jsx)("path",{fill:"currentColor",d:"M464 256A208 208 0 1 0 48 256a208 208 0 1 0 416 0zM0 256a256 256 0 1 1 512 0A256 256 0 1 1 0 256zm306.7 69.1L162.4 380.6c-19.4 7.5-38.5-11.6-31-31l55.5-144.3c3.3-8.5 9.9-15.1 18.4-18.4l144.3-55.5c19.4-7.5 38.5 11.6 31 31L325.1 306.7c-3.2 8.5-9.9 15.1-18.4 18.4zM288 256a32 32 0 1 0 -64 0 32 32 0 1 0 64 0z"})});var c=s(91613),u=s(57865);let{Text:m}=i.AntTypography,h=e=>{let{searchText:t,suggestion:s,...i}=e;return t&&s?(0,n.jsxs)(m,{"aria-hidden":!0,style:{pointerEvents:"none",position:"absolute",zIndex:10,top:"var(--ant-line-width)",bottom:"var(--ant-line-width)",left:"var(--ant-padding-sm)",lineHeight:"calc(var(--ant-control-height) - var(--ant-line-width))"},...i,children:[(0,n.jsx)(m,{className:"text-transparent",children:t}),(0,n.jsx)(m,{type:"secondary",children:s.substring(t.length)})]}):null},p="Create new system",v=e=>{let{active:t,disabled:s,onRefreshSuggestions:a}=e,r={bg:t?"complimentary.500":"gray.100"};return(0,n.jsxs)(i.gCW,{children:[(0,n.jsx)(i.LZC,{minHeight:"18px"}),(0,n.jsxs)(i.v2r,{children:[(0,n.jsx)(i.j2t,{as:i.hU,size:"sm",isDisabled:s,icon:(0,n.jsx)(d,{color:t?"white":"gray.700",boxSize:4}),"aria-label":"Update information from Compass","data-testid":"refresh-suggestions-btn",_hover:{_disabled:r},...r}),(0,n.jsx)(i.qyq,{children:(0,n.jsx)(i.sNh,{onClick:a,children:(0,n.jsx)(i.xvT,{fontSize:"xs",lineHeight:4,children:"Reset to Compass defaults"})})})]})]})};var g=e=>{var t,s;let{label:d,isCreate:m,lockedForGVL:g,options:y,isLoading:x,onVendorSelected:f}=e,j=(0,o.C)(u.bN),[b,w,{setValue:C}]=(0,a.U$)("name"),S=!!(w.touched&&w.error),_={...b,value:null!==(t=b.value)&&void 0!==t?t:""},{touched:k,values:I,setTouched:R,setFieldValue:A,validateForm:T}=(0,a.u6)(),[N,P]=(0,r.useState)(!0),z=null!==(s=y.find(e=>e.value===_.value))&&void 0!==s?s:{label:_.value,value:_.value,description:""},q=(e,t)=>!!(null==t?void 0:t.label.toLowerCase().startsWith(e.toLowerCase())),[D,Z]=(0,r.useState)(""),M=(0,r.useMemo)(()=>y.filter(e=>q(D,e)),[y,D]),E=(0,r.useMemo)(()=>{let e=y;return m&&D&&(e=[...y,{label:"".concat(p,' "').concat(D,'"...'),value:D}]),e},[m,y,D]),L=!!D&&M.length>0,W=g&&!m;(0,r.useEffect)(()=>{P(!_.value&&!I.vendor_id)},[_.value,I.vendor_id,P]),(0,r.useEffect)(()=>{T()},[N,T]);let U=async()=>{Z(""),A("vendor_id",void 0),await C(""),R({...k,vendor_id:!1,name:!1}),f(void 0)},V=async e=>{if(e){let t=y.some(t=>t.value===e.value)?e.value:void 0;A("vendor_id",t),await C(e.label.startsWith(p)?e.value:e.label),R({...k,vendor_id:!0,name:!0}),f(t)}},B=async e=>{_.onBlur(e),D&&await C(D),R({...k,name:!0})},F=async e=>{M.length>0&&D!==M[0].label?(e.preventDefault(),Z(M[0].label),A("vendor_id",M[0].value),await C(M[0].label),f(M[0].value)):(A("vendor_id",void 0),await C(D)),R({...k,name:!0})},O=(0,n.jsx)(i.NIc,{isInvalid:S,isRequired:!0,width:"100%",children:(0,n.jsxs)(i.gCW,{alignItems:"start",position:"relative",width:"100%",children:[(0,n.jsxs)(i.Ugi,{spacing:1,children:[(0,n.jsx)(l.__,{htmlFor:"vendorName",fontSize:"xs",my:0,mr:1,children:d}),(0,n.jsx)(c.Z,{label:"Enter the system name"})]}),(0,n.jsxs)(i.xuv,{width:"100%",className:"relative",children:[(0,n.jsx)(i.WPr,{id:"vendorName",labelInValue:!0,autoFocus:!0,allowClear:!0,options:E,loading:x,filterOption:(e,t)=>q(e,t)||!!(null==t?void 0:t.label.startsWith(p)),optionFilterProp:"label",value:z,placeholder:"Enter system name...",disabled:W,onChange:V,onSearch:Z,onClear:U,onBlur:B,onInputKeyDown:e=>{D&&"Tab"===e.key&&F(e)},status:S?"error":void 0,"data-testid":"vendor-name-select"}),(0,n.jsx)(h,{searchText:D,suggestion:M.length?M[0].label:""})]}),(0,n.jsx)(l.Bc,{isInvalid:S,message:w.error,fieldName:"name"})]})});return(0,n.jsxs)(i.Ugi,{alignItems:"flex-start",width:"full",children:[N?O:(0,n.jsx)(l.j0,{autoFocus:!0,id:"name",name:"name",label:"System name",tooltip:"Enter the system name",variant:"stacked",disabled:W,isRequired:!0,inputRightElement:W?null:(0,n.jsx)(i.PZ7,{onClick:U,size:"sm","data-testid":"clear-btn"})}),(0,n.jsx)(v,{active:!!I.vendor_id||L,disabled:!I.vendor_id||"showing"===j,onRefreshSuggestions:()=>f(I.vendor_id)})]})}},58955:function(e,t,s){"use strict";s.r(t),s.d(t,{default:function(){return en}});var n=s(24246),i=s(86677),a=s(27378),r=s(35287),o=s(77830),l=s(58754),d=s(59003),c=s(92222),u=s(56351),m=s(83766),h=s.n(m),p=s(812),v=s(14047),g=s(14481),y=s(37059),x=s(8133),f=s(79283),j=s(34929),b=s(78238),w=e=>{let{selectedTaxonomies:t,...s}=e,{getDataUseDisplayNameProps:i,getDataUses:a}=(0,j.Z)(),r=a().filter(e=>e.active&&b.g.includes(e.fides_key)).filter(e=>!t.includes(e.fides_key)).map(e=>{let{name:t,primaryName:s}=i(e.fides_key);return{value:e.fides_key,name:t,primaryName:s,description:e.description||""}});return(0,n.jsx)(f.l,{options:r,...s})};let{Text:C}=u.AntTypography;var S=e=>{let{onSave:t,isSaving:s,onClose:i,...r}=e,[o,l]=(0,a.useState)([]),d=()=>{l([]),i()};return(0,n.jsxs)(x.Z,{title:"Add consent category",...r,onClose:d,children:[(0,n.jsxs)(u.jqI,{vertical:!0,gap:20,className:"pb-6 pt-4",children:[(0,n.jsx)(C,{children:"Assign consent categories to selected assets. This configures the system for consent management. Consent categories apply to both individual assets and the system."}),(0,n.jsx)(w,{mode:"tags",selectedTaxonomies:o,onSelect:(e,t)=>l([...o,t.value]),variant:"outlined"})]}),(0,n.jsxs)(u.jqI,{justify:"space-between",children:[(0,n.jsx)(u.wpx,{htmlType:"reset",onClick:d,"data-testid":"cancel-btn",children:"Cancel"}),(0,n.jsx)(u.wpx,{htmlType:"submit",type:"primary",disabled:!o.length,loading:s,onClick:()=>t(o),"data-testid":"save-btn",children:"Save"})]})]})},_=s(57454),k=s(65450);let I=e=>{let{children:t,className:s,style:i,...a}=e;return(0,n.jsx)(u.wpx,{...a,type:"text",className:"w-full justify-start ".concat(s),style:{fontWeight:600,padding:"var(--ant-select-option-padding)",backgroundColor:"var(--ant-select-option-selected-bg)",...i},children:t})};var R=s(16394);let A=(e,t)=>(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(I,{onClick:t,"data-testid":"add-new-system",id:"add-new-system",children:"Add new system +"}),e]}),T=e=>{var t;let{onAddSystem:s,...i}=e,[r,o]=(0,a.useState)(),{data:l,isFetching:d}=(0,k.xF)({page:1,size:25,search:r||void 0}),c=null==l?void 0:null===(t=l.items)||void 0===t?void 0:t.map(e=>({value:e.fides_key,label:e.name})),m=(0,a.useCallback)(e=>{(null==e?void 0:e.length)>1&&o(e),(null==e?void 0:e.length)===0&&o(void 0)},[o]),h=(0,a.useMemo)(()=>(0,R.Ds)(m,300),[m]);return(0,n.jsx)(u.WPr,{placeholder:"Search...","aria-label":"Search for a system to select",dropdownStyle:{minWidth:"500px"},dropdownRender:s?e=>A(e,s):void 0,"data-testid":"system-select",...i,filterOption:!1,options:c,onSearch:h,loading:i.loading||d})};var N=s(34090),P=s(59389),z=s(16134),q=s(25980),D=s(97181),Z=s(40324),M=s(45938),E=s(33335),L=s(32885),W=s(57865),U=s(93237),V=s(36345);let{Text:B}=u.AntTypography,F={name:"",vendor_id:void 0,description:"",tags:[]},O=e=>{let{onSuccessfulSubmit:t,toastOnSuccess:s,...i}=e,[r,o]=(0,a.useState)(!1),l=(0,z.T)(),{tcf:d,dictionaryService:c}=(0,q.hz)(),{isLoading:m}=(0,L.Rd)(void 0,{skip:!c}),h=(0,z.C)(L.o),g=(0,z.C)(W.gU),[y]=(0,k.in)(),[f]=(0,L.Qk)(),[j]=(0,k.f7)(),{successAlert:b,errorAlert:w}=(0,v.V)(),{setSuggestions:C,setLockedForGVL:S}=W.dictSuggestionsSlice.actions,_=(0,a.useRef)(null),I=(0,a.useMemo)(()=>P.Ry().shape({name:P.Z_().required().label("System name").test("is-unique","",async(e,t)=>{let{data:s}=await y({page:1,size:10,search:e});return!((null==s?void 0:s.items)||[]).filter(t=>t.name===e).some(t=>t.name===e)||t.createError({message:'You already have a system called "'.concat(e,'". Please specify a unique name for this system.')})})}),[y]),R=e=>{if(c){if(!e){l(C("hiding")),l(S(!1));return}l(C("showing")),d&&(0,p.cj)(e)===p.c6.GVL?l(S(!0)):l(S(!1))}},A=()=>{i.onClose(),l(C("initial")),l(S(!1))},T=async e=>{if(o(!0),e.vendor_id){let n=await f([e.vendor_id]);if((0,p.D4)(n))w((0,p.e$)(n.error));else{let{data:e}=n,i=e.systems[0];null==t||t(i.fides_key,i.name),s&&b("".concat(e.name," has been added to your system inventory."))}}else{let n={...e,fides_key:(0,E.E)(e.name),system_type:"",body:"",privacy_declarations:[]},i=await j(n);if((0,p.D4)(i))w((0,p.e$)(i.error));else{let{fides_key:n,name:a}=i.data;null==t||t(n,a),s&&b("".concat(e.name," has been added to your system inventory."))}A()}o(!1)};return(0,n.jsx)(x.Z,{title:"Add New System",...i,onClose:A,children:(0,n.jsx)(N.J9,{initialValues:F,onSubmit:T,validationSchema:I,innerRef:_,children:e=>{let{dirty:t,isValid:s}=e;return(0,n.jsxs)(N.l0,{children:[(0,n.jsx)(M.Gt,{id:"new-system-modal",name:"Add New System"}),(0,n.jsxs)(u.jqI,{vertical:!0,gap:20,className:"pb-6 pt-4",children:[(0,n.jsx)(B,{children:"Fides will add this system to your inventory and configure it for consent using the categories of consent listed below. Optionally, you can check if this system is listed within the Fides compass library by selecting the compass icon below."}),c?(0,n.jsx)(V.Z,{label:"System name",options:h,onVendorSelected:R,isCreate:!0,lockedForGVL:g,isLoading:m}):(0,n.jsx)(Z.j0,{id:"name",name:"name",label:"System name",tooltip:"Give the system a unique, and relevant name for reporting purposes. e.g. “Email Data Warehouse”",variant:"stacked",isRequired:!0}),(0,n.jsx)(U.Sv,{id:"description",name:"description",label:"Description",tooltip:"What services does this system perform?",disabled:g}),(0,n.jsx)(D.d,{mode:"tags",id:"tags",name:"tags",label:"System Tags",options:[],layout:"stacked",tooltip:"Are there any tags to associate with this system?",disabled:g})]}),(0,n.jsxs)(u.jqI,{justify:"space-between",children:[(0,n.jsx)(u.wpx,{htmlType:"reset",onClick:A,disabled:m||!t||!s,"data-testid":"cancel-btn",children:"Cancel"}),(0,n.jsx)(u.wpx,{htmlType:"submit",type:"primary",disabled:m||!t||!s,loading:r,"data-testid":"save-btn",children:"Save"})]})]})}})})},{Text:$}=u.AntTypography,G=e=>{let{onSave:t,isSaving:s,...i}=e,[r,o]=(0,a.useState)(),[l,d]=(0,a.useState)(!1),c=(0,a.useCallback)(e=>{e.preventDefault(),d(!0)},[]),m=()=>{d(!1)},h=()=>{o(void 0),i.onClose()};return(0,n.jsxs)(x.Z,{title:"Assign system",...i,onClose:h,children:[(0,n.jsxs)(u.jqI,{vertical:!0,gap:20,className:"pb-6 pt-4",children:[(0,n.jsx)($,{children:"Assign a system to the selected assets. If no system exists, select 'Add new system' to create one."}),(0,n.jsx)(T,{placeholder:"Search or select...",onSelect:(e,t)=>{o(t)},onAddSystem:c,value:r})]})," ",(0,n.jsxs)(u.jqI,{justify:"space-between",children:[(0,n.jsx)(u.wpx,{htmlType:"reset",onClick:h,"data-testid":"cancel-btn",children:"Cancel"}),(0,n.jsx)(u.wpx,{htmlType:"submit",type:"primary",disabled:!r,loading:s,onClick:()=>{t(r)},"data-testid":"save-btn",children:"Save"})]}),l&&(0,n.jsx)(O,{isOpen:!0,onClose:m,onSuccessfulSubmit:(e,t)=>{m(),o({label:t,value:e})},toastOnSuccess:!0})]})};var H=s(26183),X=s(31883),J=e=>{var t;let{asset:s}=e,[i,r]=(0,a.useState)(!1),[o]=(0,y.Ak)(),{successAlert:l,errorAlert:d}=(0,v.V)(),{getDataUseDisplayName:c}=(0,j.Z)(),m=async e=>{let t=s.data_uses||[],n=await o({monitorId:s.monitor_config_id,urnList:[s.urn],dataUses:[...t,e]});(0,X.D4)(n)?d((0,p.e$)(n.error)):l("Consent category added to ".concat(s.resource_type,' "').concat(s.name,'" .'),"Confirmed"),r(!1)},h=async e=>{let t=s.data_uses||[],n=await o({monitorId:s.monitor_config_id,urnList:[s.urn],dataUses:t.filter(t=>t!==e)});(0,X.D4)(n)?d((0,p.e$)(n.error)):l("Consent category removed from ".concat(s.resource_type,' "').concat(s.name,'".'),"Confirmed")},g=null===(t=s.data_uses)||void 0===t?void 0:t.filter(e=>(0,b.Z)(e));return(0,n.jsxs)(H.Z,{children:[!i&&(0,n.jsxs)(n.Fragment,{children:[null==g?void 0:g.map(e=>(0,n.jsx)(u.j8w,{"data-testid":"data-use-".concat(e),color:"white",closable:!0,onClose:()=>h(e),closeButtonLabel:"Remove data use",children:c(e)},e)),(0,n.jsx)(u.j8w,{onClick:()=>r(!0),"data-testid":"taxonomy-add-btn",addable:!0,"aria-label":"Add data use"})]}),i&&(0,n.jsx)(u.xuv,{className:"select-wrapper",position:"absolute",zIndex:10,top:"0",left:"0",width:"100%",height:"max",bgColor:"#fff",children:(0,n.jsx)(w,{selectedTaxonomies:g||[],onSelect:m,onBlur:()=>r(!1),open:!0})})]})};let K=e=>{let{asset:t}=e,[s,{isLoading:i}]=(0,y.EY)(),[a,{isLoading:r}]=(0,y.nS)(),{successAlert:o,errorAlert:l}=(0,v.V)(),d=i||r,{urn:c,name:m,resource_type:h}=t,g=async()=>{let e=await s({urnList:[c]});(0,p.D4)(e)?l((0,p.e$)(e.error)):o("".concat(h,' "').concat(m,'" has been added to the system inventory.'),"Confirmed")},x=async()=>{let e=await a({urnList:[c]});(0,p.D4)(e)?l((0,p.e$)(e.error)):o("".concat(h,' "').concat(m,'" has been ignored and will not appear in future scans.'),"Ignored")};return(0,n.jsxs)(u.vyj,{children:[(0,n.jsx)(u.esZ,{title:t.system?void 0:"This asset requires a system before you can add it to the inventory.",children:(0,n.jsx)(u.wpx,{"data-testid":"add-btn",size:"small",onClick:g,disabled:!t.system||d,loading:i,children:"Add"})}),(0,n.jsx)(u.wpx,{"data-testid":"ignore-btn",size:"small",onClick:x,disabled:d,loading:r,children:"Ignore"})]})};var Y=s(43862),Q=s(70675);let ee=e=>{let{aggregateSystem:t,monitorConfigId:s}=e,{resource_type:i,name:r,urn:o,system:l}=t,[d,c]=(0,a.useState)(!1),[m,h]=(0,a.useState)(!1),[g,{isLoading:y}]=(0,Q.NA)(),{successAlert:x,errorAlert:f}=(0,v.V)(),j=(0,a.useCallback)(e=>{e.preventDefault(),h(!0)},[]),b=async(e,t,n)=>{let a=await g({staged_resource_urn:o,monitor_config_id:s,system_key:e});(0,p.D4)(a)?f((0,p.e$)(a.error)):x(n?"".concat(t," has been added to your system inventory and the ").concat(i,' "').concat(r,'" has been assigned to that system.'):"".concat(i,' "').concat(r,'" has been assigned to ').concat(t,"."),"Confirmed"),c(!1)};return(0,n.jsxs)(n.Fragment,{children:[!d&&(0,n.jsx)("div",{style:(0,Y.J9)(),children:l?(0,n.jsxs)(u.j8w,{onClick:()=>c(!0),"data-testid":"system-badge",children:[l,(0,n.jsx)(u.PJP.I8b,{})]}):(0,n.jsx)(u.j8w,{onClick:()=>c(!0),"data-testid":"add-system-btn",addable:!0})}),!!d&&(0,n.jsx)(T,{variant:"borderless",className:"w-full",autoFocus:!0,defaultOpen:!0,onBlur:e=>{var t;(null===(t=e.relatedTarget)||void 0===t?void 0:t.getAttribute("id"))!=="add-new-system"&&c(!1)},onAddSystem:j,onSelect:(e,t)=>b(e,t.label),loading:y}),m&&(0,n.jsx)(O,{isOpen:!0,onClose:()=>{h(!1)},onSuccessfulSubmit:(e,t)=>b(e,t,!0)})]})},et=()=>{let e=(0,c.Cl)();return{columns:[e.display({id:"select",cell:e=>{let{row:t}=e;return(0,n.jsx)(g.k,{isChecked:t.getIsSelected(),onChange:t.getToggleSelectedHandler(),dataTestId:"select-".concat(t.original.name||t.id)})},header:e=>{let{table:t}=e;return(0,n.jsx)(g.k,{isChecked:t.getIsAllPageRowsSelected(),isIndeterminate:t.getIsSomeRowsSelected(),onChange:t.getToggleAllRowsSelectedHandler(),dataTestId:"select-all-rows"})},maxSize:40}),e.accessor(e=>e.name,{id:"name",cell:e=>(0,n.jsx)(g.G3,{value:e.getValue()}),header:"Asset",size:300}),e.accessor(e=>e.resource_type,{id:"resource_type",cell:e=>(0,n.jsx)(g.G3,{value:e.getValue()}),header:"Type"}),e.accessor(e=>e.system,{id:"system",cell:e=>!!e.row.original.monitor_config_id&&(0,n.jsx)(ee,{aggregateSystem:e.row.original,monitorConfigId:e.row.original.monitor_config_id}),header:"System",size:200,meta:{noPadding:!0}}),e.display({id:"data_use",cell:e=>(0,n.jsx)(J,{asset:e.row.original}),header:"Categories of consent",size:400,meta:{disableRowClick:!0}}),e.accessor(e=>e.locations,{id:"locations",cell:e=>(0,n.jsx)(g.G3,{value:e.getValue().length>1?"".concat(e.getValue().length," locations"):e.getValue()[0]}),header:"Locations"}),e.accessor(e=>e.domain,{id:"domain",cell:e=>(0,n.jsx)(g.G3,{value:e.getValue()}),header:"Domain"}),e.display({id:"actions",cell:e=>(0,n.jsx)(K,{asset:e.row.original}),header:"Actions",meta:{disableRowClick:!0}})]}},es=e=>{let{monitorId:t,systemId:s,onSystemName:r}=e,l=(0,i.useRouter)(),[m,x]=(0,a.useState)(s),[f,j]=(0,a.useState)({}),[b,w]=(0,a.useState)(!1),[C,k]=(0,a.useState)(!1),[I,{isLoading:R}]=(0,y.EY)(),[A,{isLoading:T}]=(0,y.nS)(),[N,{isLoading:P}]=(0,y.rs)(),[z,{isLoading:q}]=(0,y.sX)(),[D,{isLoading:Z}]=(0,y.Vr)(),M=R||T||P||q,E=M||s===o.Kl,{PAGE_SIZES:L,pageSize:W,setPageSize:U,onPreviousPageClick:V,isPreviousPageDisabled:B,onNextPageClick:F,isNextPageDisabled:O,startRange:$,endRange:H,pageIndex:X,setTotalPages:J,resetPageIndexToDefault:K}=(0,g.oi)(),[Y,Q]=(0,a.useState)(""),{successAlert:ee,errorAlert:es}=(0,v.V)();(0,a.useEffect)(()=>{K()},[t,Y,K]);let{data:en,isLoading:ei,isFetching:ea}=(0,y.WJ)({key:t,system:s,page:X,size:W,search:Y});(0,a.useEffect)(()=>{if(en){var e;let t=(null===(e=en.items[0])||void 0===e?void 0:e.system)||s||"";J(en.pages||1),x(t),null==r||r(t)}},[en,s,r,J]);let{columns:er}=et(),eo=(0,d.b7)({getCoreRowModel:(0,c.sC)(),columns:er,manualPagination:!0,data:(null==en?void 0:en.items)||[],columnResizeMode:"onChange",onRowSelectionChange:j,state:{rowSelection:f}}),el=eo.getSelectedRowModel().rows.map(e=>e.original.urn),ed=async()=>{let e=await I({urnList:el});(0,p.D4)(e)?es((0,p.e$)(e.error)):(eo.resetRowSelection(),ee("".concat(el.length," assets from ").concat(m," have been added to the system inventory."),"Confirmed"))},ec=async e=>{if("string"==typeof(null==e?void 0:e.value)){let s=await z({monitorId:t,urnList:el,systemKey:e.value});(0,p.D4)(s)?es((0,p.e$)(s.error)):(eo.resetRowSelection(),ee("".concat(el.length," assets have been assigned to ").concat(e.label,"."),"Confirmed"))}w(!1)},eu=async e=>{let s=null==en?void 0:en.items.filter(e=>el.includes(e.urn));if(!s)return;let n=s.map(t=>{let s=h()([...t.data_uses||[],...e]);return{urn:t.urn,data_uses:s}}),i=await D({monitorId:t,assets:n});(0,p.D4)(i)?es((0,p.e$)(i.error)):(eo.resetRowSelection(),ee("Consent categories added to ".concat(el.length," assets from ").concat(m,"."),"Confirmed"))},em=async()=>{let e=await A({urnList:el});(0,p.D4)(e)?es((0,p.e$)(e.error)):(eo.resetRowSelection(),ee("".concat(el.length," assets from ").concat(m," have been ignored and will not appear in future scans."),"Confirmed"))},eh=async()=>{let e=(null==en?void 0:en.items.length)||0,n=await N({monitor_config_key:t,resolved_system_ids:[s]});(0,p.D4)(n)?es((0,p.e$)(n.error)):(l.push("".concat(o.vi,"/").concat(t)),ee("".concat(e," assets from ").concat(m," have been added to the system inventory."),"Confirmed"))};return t&&s?ei?(0,n.jsx)(g.I4,{rowHeight:36,numRows:36}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(g.Q$,{children:[(0,n.jsx)(_.M,{value:Y,onChange:Q}),(0,n.jsxs)(u.kCb,{alignItems:"center",children:[!!el.length&&(0,n.jsx)(u.xvT,{fontSize:"xs",fontWeight:"semibold",minW:16,mr:6,"data-testid":"selected-count",children:"".concat(el.length," selected")}),(0,n.jsxs)(u.Ugi,{children:[(0,n.jsxs)(u.v2r,{children:[(0,n.jsx)(u.j2t,{as:u.wpx,icon:(0,n.jsx)(u.PJP._ME,{}),iconPosition:"end",loading:M,"data-testid":"bulk-actions-menu",disabled:!el.length||M,type:"primary",children:"Actions"}),(0,n.jsxs)(u.qyq,{children:[(0,n.jsx)(u.sNh,{fontSize:"small",onClick:ed,"data-testid":"bulk-add",children:"Add"}),(0,n.jsx)(u.sNh,{fontSize:"small",onClick:()=>k(!0),"data-testid":"bulk-add-data-use",children:"Add consent category"}),(0,n.jsx)(u.sNh,{fontSize:"small",onClick:()=>{w(!0)},"data-testid":"bulk-assign-system",children:"Assign system"}),(0,n.jsx)(u.RaW,{}),(0,n.jsx)(u.sNh,{fontSize:"small",onClick:em,"data-testid":"bulk-ignore",children:"Ignore"})]})]}),(0,n.jsx)(u.esZ,{title:E?"These assets require a system before you can add them to the inventory.":void 0,children:(0,n.jsx)(u.wpx,{onClick:eh,disabled:E,loading:P,type:"primary",icon:(0,n.jsx)(u.PJP.MCw,{}),iconPosition:"end","data-testid":"add-all",children:"Add all"})})]})]})]}),(0,n.jsx)(g.ZK,{tableInstance:eo,emptyTableNotice:(0,n.jsx)(u.oj8,{image:u.oj8.PRESENTED_IMAGE_SIMPLE,description:"All caught up!"})}),(0,n.jsx)(g.s8,{totalRows:(null==en?void 0:en.total)||0,pageSizes:L,setPageSize:U,onPreviousPageClick:V,isPreviousPageDisabled:B||ea,onNextPageClick:F,isNextPageDisabled:O||ea,startRange:$,endRange:H}),(0,n.jsx)(G,{isOpen:b,onClose:()=>{w(!1)},onSave:ec,isSaving:q}),(0,n.jsx)(S,{isOpen:C,onClose:()=>{k(!1)},onSave:eu,isSaving:Z})]}):null};var en=()=>{let e=(0,i.useRouter)(),t=decodeURIComponent(e.query.monitorId),s=decodeURIComponent(e.query.systemId),[d,c]=(0,a.useState)(s===o.Kl?"Uncategorized assets":s);return(0,n.jsxs)(r.Z,{title:"Action center - Discovered assets",children:[(0,n.jsx)(l.Z,{heading:"Action center",breadcrumbItems:[{title:"All activity",href:o.vi},{title:t,href:"".concat(o.vi,"/").concat(t)},{title:s===o.Kl?"Uncategorized assets":d}]}),(0,n.jsx)(es,{monitorId:t,systemId:s,onSystemName:c})]})}},31883:function(e,t,s){"use strict";s.d(t,{Bw:function(){return n.Bw},D4:function(){return n.D4}});var n=s(19043)},72707:function(e){e.exports={option:"TaxonomySelect_option__vY6v2"}}},function(e){e.O(0,[8033,2780,2858,2866,9278,4481,3627,2888,9774,179],function(){return e(e.s=25654)}),_N_E=e.O()}]);
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4154],{58095:function(e,t,s){var n=s(8817);e.exports=function(e,t){return!!(null==e?0:e.length)&&n(e,t,0)>-1}},21796:function(e){e.exports=function(e,t,s){for(var n=-1,i=null==e?0:e.length;++n<i;)if(s(t,e[n]))return!0;return!1}},8817:function(e,t,s){var n=s(95372),i=s(1129),a=s(58263);e.exports=function(e,t,s){return t==t?a(e,t,s):n(e,i,s)}},1129:function(e){e.exports=function(e){return e!=e}},92198:function(e,t,s){var n=s(52485),i=s(58095),a=s(21796),r=s(65581),o=s(47111),l=s(43735);e.exports=function(e,t,s){var d=-1,c=i,u=e.length,m=!0,h=[],p=h;if(s)m=!1,c=a;else if(u>=200){var v=t?null:o(e);if(v)return l(v);m=!1,c=r,p=new n}else p=t?[]:h;e:for(;++d<u;){var g=e[d],y=t?t(g):g;if(g=s||0!==g?g:0,m&&y==y){for(var x=p.length;x--;)if(p[x]===y)continue e;t&&p.push(y),h.push(g)}else c(p,y,s)||(p!==h&&p.push(y),h.push(g))}return h}},47111:function(e,t,s){var n=s(46151),i=s(50344),a=s(43735),r=n&&1/a(new n([,-0]))[1]==1/0?function(e){return new n(e)}:i;e.exports=r},58263:function(e){e.exports=function(e,t,s){for(var n=s-1,i=e.length;++n<i;)if(e[n]===t)return n;return -1}},50344:function(e){e.exports=function(){}},83766:function(e,t,s){var n=s(92198);e.exports=function(e){return e&&e.length?n(e):[]}},25654:function(e,t,s){(window.__NEXT_P=window.__NEXT_P||[]).push(["/data-discovery/action-center/[monitorId]/[systemId]",function(){return s(58955)}])},35287:function(e,t,s){"use strict";var n=s(24246),i=s(56351),a=s(88038),r=s.n(a);s(27378),t.Z=e=>{let{children:t,title:s,mainProps:a}=e;return(0,n.jsxs)(i.kCb,{"data-testid":s,direction:"column",height:"calc(100vh - 48px)",width:"calc(100vw - 240px)",children:[(0,n.jsxs)(r(),{children:[(0,n.jsxs)("title",{children:["Fides Admin UI - ",s]}),(0,n.jsx)("meta",{name:"description",content:"Privacy Engineering Platform"}),(0,n.jsx)("link",{rel:"icon",href:"/favicon.ico"})]}),(0,n.jsx)(i.kCb,{px:10,py:6,as:"main",overflow:"auto",direction:"column",flex:1,minWidth:0,...a,children:t})]})}},58754:function(e,t,s){"use strict";var n=s(24246),i=s(56351),a=s(70788);t.Z=e=>{let{heading:t,breadcrumbItems:s,isSticky:r=!0,children:o,rightContent:l,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)(i.jqI,{justify:"space-between",children:["string"==typeof t?(0,n.jsx)(i.X6q,{className:s||o?"pb-4":void 0,fontSize:"2xl","data-testid":"page-heading",children:t}):t,l&&(0,n.jsx)("div",{"data-testid":"page-header-right-content",children:l})]}),!!s&&(0,n.jsx)(a.m,{className:o?"pb-4":void 0,items:s,"data-testid":"page-breadcrumb"}),o]})}},79283:function(e,t,s){"use strict";s.d(t,{l:function(){return l}});var n=s(24246),i=s(56351),a=s(72707),r=s.n(a);let o=e=>{let{data:t}=e;return(0,n.jsxs)(i.jqI,{gap:12,title:"".concat(t.primaryName||"").concat(t.primaryName?": ":"").concat(t.name," - ").concat(t.description),children:[(0,n.jsxs)("div",{children:[(0,n.jsx)("strong",{children:t.primaryName||t.name}),t.primaryName&&": ".concat(t.name)]}),(0,n.jsx)("em",{children:t.description})]})},l=e=>{let{options:t,...s}=e,a=null==t?void 0:t.map(e=>({...e,className:r().option}));return(0,n.jsx)(i.WPr,{options:a,autoFocus:!0,variant:"borderless",optionRender:o,dropdownStyle:{minWidth:"500px"},className:"w-full p-0","data-testid":"taxonomy-select",...s})}},97181:function(e,t,s){"use strict";s.d(t,{d:function(){return d}});var n=s(24246),i=s(56351),a=s(34090),r=s(27378),o=s(91613),l=s(40324);let d=e=>{let{name:t,label:s,labelProps:d,tooltip:c,isRequired:u,layout:m="inline",...h}=e,[p,v,{setValue:g}]=(0,a.U$)(t),y=!!(v.touched&&v.error),[x,f]=(0,r.useState)("");p.value||"tags"!==h.mode&&"multiple"!==h.mode||(p.value=[]),"tags"===h.mode&&"string"==typeof p.value&&(p.value=[p.value]);let j="tags"===h.mode?(e,t)=>e?e.value!==x||p.value.includes(x)?h.optionRender?h.optionRender(e,t):e.label:'Create "'.concat(x,'"'):void 0:h.optionRender||void 0,b=e=>{f(e),h.onSearch&&h.onSearch(e)},w=(e,t)=>{g(e),h.onChange&&h.onChange(e,t)};return"inline"===m?(0,n.jsx)(i.NIc,{isInvalid:y,isRequired:u,children:(0,n.jsxs)(i.rjZ,{templateColumns:s?"1fr 3fr":"1fr",children:[s?(0,n.jsx)(l.__,{htmlFor:h.id||t,...d,children:s}):null,(0,n.jsxs)(i.jqI,{align:"center",children:[(0,n.jsxs)(i.jqI,{vertical:!0,flex:1,className:"mr-2",children:[(0,n.jsx)(i.WPr,{...p,id:h.id||t,"data-testid":"controlled-select-".concat(p.name),...h,optionRender:j,onSearch:"tags"===h.mode?b:void 0,onChange:w,value:p.value||void 0}),(0,n.jsx)(l.Bc,{isInvalid:y,message:v.error,fieldName:p.name})]}),c?(0,n.jsx)(o.Z,{label:c}):null]})]})}):(0,n.jsx)(i.NIc,{isInvalid:y,isRequired:u,children:(0,n.jsxs)(i.gCW,{alignItems:"start",children:[(0,n.jsxs)(i.jqI,{align:"center",children:[s?(0,n.jsx)(l.__,{htmlFor:h.id||t,fontSize:"xs",my:0,mr:1,...d,children:s}):null,c?(0,n.jsx)(o.Z,{label:c}):null]}),(0,n.jsx)(i.WPr,{...p,id:h.id||t,"data-testid":"controlled-select-".concat(p.name),...h,optionRender:j,onSearch:"tags"===h.mode?b:void 0,onChange:w,value:p.value||void 0}),(0,n.jsx)(l.Bc,{isInvalid:y,message:v.error,fieldName:p.name})]})})}},14047:function(e,t,s){"use strict";s.d(t,{H:function(){return a},V:function(){return n.V}});var n=s(84306),i=s(812);let a=()=>{let{errorAlert:e}=(0,n.V)();return{handleError:t=>{let s="An unexpected error occurred. Please try again.";(0,i.Ot)(t)?s=t.data.detail:(0,i.tB)(t)&&(s=t.data.detail[0].msg),e(s)}}}},84306:function(e,t,s){"use strict";s.d(t,{V:function(){return a}});var n=s(24246),i=s(56351);let a=()=>{let e=(0,i.pmc)();return{errorAlert:(t,s,a)=>{let r={...a,position:(null==a?void 0:a.position)||"top",render:e=>{let{onClose:a}=e;return(0,n.jsxs)(i.bZj,{alignItems:"normal",status:"error","data-testid":"error-alert",children:[(0,n.jsx)(i.zMQ,{}),(0,n.jsxs)(i.xuv,{children:[s&&(0,n.jsx)(i.CdC,{children:s}),(0,n.jsx)(i.XaZ,{children:t})]}),(0,n.jsx)(i.PZ7,{onClick:a,position:"relative",right:0,size:"sm",top:-1})]})}};(null==a?void 0:a.id)&&e.isActive(a.id)?e.update(a.id,r):e(r)},successAlert:(t,s,a)=>{let r={...a,position:(null==a?void 0:a.position)||"top",render:e=>{let{onClose:a}=e;return(0,n.jsxs)(i.bZj,{alignItems:"normal",status:"success",variant:"subtle","data-testid":"success-alert",children:[(0,n.jsx)(i.zMQ,{}),(0,n.jsxs)(i.xuv,{children:[s&&(0,n.jsx)(i.CdC,{children:s}),(0,n.jsx)(i.XaZ,{children:t})]}),(0,n.jsx)(i.PZ7,{onClick:a,position:"relative",right:0,size:"sm",top:-1})]})}};(null==a?void 0:a.id)&&e.isActive(a.id)?e.update(a.id,r):e(r)}}}},45938:function(e,t,s){"use strict";s.d(t,{Gt:function(){return m},eB:function(){return h},oI:function(){return u}});var n=s(24246),i=s(34090),a=s(27378),r=s(16134),o=s(38602),l=s(58452);let d=(0,a.createRef)(),c=(0,a.createRef)(),u=()=>{let e=(0,r.T)(),t=(0,r.C)(o.DB),s=(0,a.useCallback)(()=>{c.current=void 0,d.current=void 0},[]),n=(0,a.useCallback)(()=>{e((0,o.Mr)()),c.current&&(c.current(!0),s())},[e,s]),i=(0,a.useCallback)(()=>{e((0,o.Mr)()),c.current&&(c.current(!1),s())},[e,s]);return{attemptAction:(0,a.useCallback)(()=>t?(e((0,o.h7)()),d.current||(d.current=new Promise(e=>{c.current=e})),d.current):Promise.resolve(!0),[t,e]),onConfirm:n,onClose:i}},m=e=>{let{id:t,name:s}=e,{dirty:n}=(0,i.u6)(),l=(0,r.T)();return(0,a.useEffect)(()=>(l((0,o.Zu)({id:t,name:s})),()=>{l((0,o.dz)({id:t}))}),[l,t,s]),(0,a.useEffect)(()=>{l((0,o.$p)({id:t,isDirty:n}))},[n,l,t]),null},h=()=>{let{onConfirm:e,onClose:t}=u(),s=(0,r.C)(o.uv);return(0,n.jsx)(l.Z,{isOpen:s,onClose:t,onConfirm:e,isCentered:!0,title:"Unsaved Changes",message:"You have unsaved changes"})}},8133:function(e,t,s){"use strict";var n=s(24246),i=s(56351);t.Z=e=>{let{title:t,children:s,isOpen:a,onClose:r,...o}=e;return(0,n.jsxs)(i.u_l,{isOpen:a,onClose:r,isCentered:!0,scrollBehavior:"inside",size:"xl",id:"add-modal",...o,children:[(0,n.jsx)(i.ZAr,{}),(0,n.jsxs)(i.hzk,{textAlign:"left",p:0,"data-testid":"add-modal-content",children:[(0,n.jsx)(i.xBx,{p:0,children:(0,n.jsx)(i.xuv,{backgroundColor:"gray.50",px:6,py:4,border:"1px",borderColor:"gray.200",borderTopRadius:6,display:"flex",justifyContent:"space-between",alignItems:"center",children:(0,n.jsx)(i.X6q,{as:"h3",size:"sm",children:t})})}),(0,n.jsx)(i.fef,{pb:4,overflow:"auto",children:s})]})]})}},70788:function(e,t,s){"use strict";s.d(t,{m:function(){return d}});var n=s(24246),i=s(56351),a=s(79894),r=s.n(a),o=s(27378);let{Text:l}=i.AntTypography,d=e=>{let{items:t,...s}=e,a=(0,o.useMemo)(()=>null==t?void 0:t.map((e,s)=>{let a=s===t.length-1,o={...e},d=o.onClick&&!o.href;return("string"==typeof o.title&&(o.title=(0,n.jsx)(l,{style:{color:"inherit",maxWidth:a?void 0:400},ellipsis:!a,children:o.title})),d)?o.title=(0,n.jsx)(i.wpx,{type:"text",size:"small",icon:o.icon,onClick:o.onClick,className:"ant-breadcrumb-link -mt-px px-1 text-inherit",children:o.title}):(o.icon&&(o.title=(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("span",{className:"anticon align-text-bottom",children:o.icon}),o.title]})),o.href&&o.title&&(o.title=(0,n.jsx)(r(),{href:o.href,className:"ant-breadcrumb-link",children:o.title}),delete o.href)),o}),[t]);return(0,n.jsx)(i.zrq,{items:a,...s})}},37059:function(e,t,s){"use strict";s.d(t,{Ak:function(){return h},EY:function(){return c},Ud:function(){return a},Vr:function(){return p},WJ:function(){return o},nP:function(){return d},nS:function(){return u},rs:function(){return l},sX:function(){return m},wi:function(){return r}});var n=s(78780),i=s(16394);let{useGetAggregateMonitorResultsQuery:a,useGetDiscoveredSystemAggregateQuery:r,useGetDiscoveredAssetsQuery:o,useAddMonitorResultSystemsMutation:l,useIgnoreMonitorResultSystemsMutation:d,useAddMonitorResultAssetsMutation:c,useIgnoreMonitorResultAssetsMutation:u,useUpdateAssetsSystemMutation:m,useUpdateAssetsDataUseMutation:h,useUpdateAssetsMutation:p}=n.u.injectEndpoints({endpoints:e=>({getAggregateMonitorResults:e.query({query:e=>{let{page:t=1,size:s=20,search:n}=e;return{url:"/plus/discovery-monitor/aggregate-results",params:{page:t,size:s,search:n,diff_status:"addition"}}},providesTags:["Discovery Monitor Results"]}),getDiscoveredSystemAggregate:e.query({query:e=>{let{key:t,page:s=1,size:n=20,search:i}=e;return{url:"/plus/discovery-monitor/system-aggregate-results",params:{monitor_config_id:t,page:s,size:n,search:i,diff_status:"addition"}}},providesTags:["Discovery Monitor Results"]}),getDiscoveredAssets:e.query({query:e=>{let{key:t,system:s,page:n=1,size:i=20,search:a}=e;return{url:"/plus/discovery-monitor/".concat(t,"/results"),params:{resolved_system_id:s,page:n,size:i,search:a,diff_status:"addition"}}},providesTags:()=>["Discovery Monitor Results"]}),addMonitorResultSystems:e.mutation({query:e=>{let{monitor_config_key:t,resolved_system_ids:s}=e,n=(0,i.du)(s,"resolved_system_ids");return{method:"POST",url:"/plus/discovery-monitor/".concat(t,"/promote?").concat(n)}},invalidatesTags:["Discovery Monitor Results"]}),ignoreMonitorResultSystems:e.mutation({query:e=>{let{monitor_config_key:t,resolved_system_ids:s}=e,n=(0,i.du)(s,"resolved_system_ids");return{method:"POST",url:"/plus/discovery-monitor/".concat(t,"/mute?").concat(n)}},invalidatesTags:["Discovery Monitor Results"]}),addMonitorResultAssets:e.mutation({query:e=>{var t;let s=new URLSearchParams;return null===(t=e.urnList)||void 0===t||t.forEach(e=>s.append("staged_resource_urns",e)),{method:"POST",url:"/plus/discovery-monitor/promote?".concat(s)}},invalidatesTags:["Discovery Monitor Results"]}),ignoreMonitorResultAssets:e.mutation({query:e=>{var t;let s=new URLSearchParams;return null===(t=e.urnList)||void 0===t||t.forEach(e=>s.append("staged_resource_urns",e)),{method:"POST",url:"/plus/discovery-monitor/mute?".concat(s)}},invalidatesTags:["Discovery Monitor Results"]}),updateAssetsSystem:e.mutation({query:e=>({method:"PATCH",url:"/plus/discovery-monitor/".concat(e.monitorId,"/results"),body:e.urnList.map(t=>({urn:t,system_key:e.systemKey}))}),invalidatesTags:["Discovery Monitor Results","System Assets"]}),updateAssetsDataUse:e.mutation({query:e=>({method:"PATCH",url:"/plus/discovery-monitor/".concat(e.monitorId,"/results"),body:e.urnList.map(t=>({urn:t,data_uses:e.dataUses}))}),invalidatesTags:["Discovery Monitor Results"]}),updateAssets:e.mutation({query:e=>({method:"PATCH",url:"/plus/discovery-monitor/".concat(e.monitorId,"/results"),body:e.assets}),invalidatesTags:["Discovery Monitor Results"]})})})},78238:function(e,t,s){"use strict";s.d(t,{g:function(){return n}});let n=["essential","functional.service.improve","personalize","analytics","marketing.advertising.first_party.targeted","marketing.advertising.third_party.targeted"];t.Z=e=>n.includes(e)},26183:function(e,t,s){"use strict";var n=s(24246);s(27378),t.Z=e=>{let{children:t,className:s,...i}=e;return(0,n.jsx)("div",{className:"relative flex w-full flex-wrap items-center gap-2 overflow-x-auto py-2 ".concat(s||""),...i,children:t})}},33335:function(e,t,s){"use strict";s.d(t,{E:function(){return n}});let n=e=>e.toLowerCase().replace(/ /g,"_").replace(/[^a-zA-Z0-9._<>-]/g,"")},36345:function(e,t,s){"use strict";s.d(t,{Z:function(){return g}});var n=s(24246),i=s(56351),a=s(34090),r=s(27378),o=s(16134),l=s(40324);let d=(0,i.IUT)({displayName:"CompassIcon",viewBox:"0 0 512 512",path:(0,n.jsx)("path",{fill:"currentColor",d:"M464 256A208 208 0 1 0 48 256a208 208 0 1 0 416 0zM0 256a256 256 0 1 1 512 0A256 256 0 1 1 0 256zm306.7 69.1L162.4 380.6c-19.4 7.5-38.5-11.6-31-31l55.5-144.3c3.3-8.5 9.9-15.1 18.4-18.4l144.3-55.5c19.4-7.5 38.5 11.6 31 31L325.1 306.7c-3.2 8.5-9.9 15.1-18.4 18.4zM288 256a32 32 0 1 0 -64 0 32 32 0 1 0 64 0z"})});var c=s(91613),u=s(57865);let{Text:m}=i.AntTypography,h=e=>{let{searchText:t,suggestion:s,...i}=e;return t&&s?(0,n.jsxs)(m,{"aria-hidden":!0,style:{pointerEvents:"none",position:"absolute",zIndex:10,top:"var(--ant-line-width)",bottom:"var(--ant-line-width)",left:"var(--ant-padding-sm)",lineHeight:"calc(var(--ant-control-height) - var(--ant-line-width))"},...i,children:[(0,n.jsx)(m,{className:"text-transparent",children:t}),(0,n.jsx)(m,{type:"secondary",children:s.substring(t.length)})]}):null},p="Create new system",v=e=>{let{active:t,disabled:s,onRefreshSuggestions:a}=e,r={bg:t?"complimentary.500":"gray.100"};return(0,n.jsxs)(i.gCW,{children:[(0,n.jsx)(i.LZC,{minHeight:"18px"}),(0,n.jsxs)(i.v2r,{children:[(0,n.jsx)(i.j2t,{as:i.hU,size:"sm",isDisabled:s,icon:(0,n.jsx)(d,{color:t?"white":"gray.700",boxSize:4}),"aria-label":"Update information from Compass","data-testid":"refresh-suggestions-btn",_hover:{_disabled:r},...r}),(0,n.jsx)(i.qyq,{children:(0,n.jsx)(i.sNh,{onClick:a,children:(0,n.jsx)(i.xvT,{fontSize:"xs",lineHeight:4,children:"Reset to Compass defaults"})})})]})]})};var g=e=>{var t,s;let{label:d,isCreate:m,lockedForGVL:g,options:y,isLoading:x,onVendorSelected:f}=e,j=(0,o.C)(u.bN),[b,w,{setValue:C}]=(0,a.U$)("name"),S=!!(w.touched&&w.error),_={...b,value:null!==(t=b.value)&&void 0!==t?t:""},{touched:k,values:R,setTouched:I,setFieldValue:A,validateForm:T}=(0,a.u6)(),[N,P]=(0,r.useState)(!0),z=null!==(s=y.find(e=>e.value===_.value))&&void 0!==s?s:{label:_.value,value:_.value,description:""},q=(e,t)=>!!(null==t?void 0:t.label.toLowerCase().startsWith(e.toLowerCase())),[D,Z]=(0,r.useState)(""),M=(0,r.useMemo)(()=>y.filter(e=>q(D,e)),[y,D]),E=(0,r.useMemo)(()=>{let e=y;return m&&D&&(e=[...y,{label:"".concat(p,' "').concat(D,'"...'),value:D}]),e},[m,y,D]),L=!!D&&M.length>0,V=g&&!m;(0,r.useEffect)(()=>{P(!_.value&&!R.vendor_id)},[_.value,R.vendor_id,P]),(0,r.useEffect)(()=>{T()},[N,T]);let W=async()=>{Z(""),A("vendor_id",void 0),await C(""),I({...k,vendor_id:!1,name:!1}),f(void 0)},U=async e=>{if(e){let t=y.some(t=>t.value===e.value)?e.value:void 0;A("vendor_id",t),await C(e.label.startsWith(p)?e.value:e.label),I({...k,vendor_id:!0,name:!0}),f(t)}},B=async e=>{_.onBlur(e),D&&await C(D),I({...k,name:!0})},F=async e=>{M.length>0&&D!==M[0].label?(e.preventDefault(),Z(M[0].label),A("vendor_id",M[0].value),await C(M[0].label),f(M[0].value)):(A("vendor_id",void 0),await C(D)),I({...k,name:!0})},O=(0,n.jsx)(i.NIc,{isInvalid:S,isRequired:!0,width:"100%",children:(0,n.jsxs)(i.gCW,{alignItems:"start",position:"relative",width:"100%",children:[(0,n.jsxs)(i.Ugi,{spacing:1,children:[(0,n.jsx)(l.__,{htmlFor:"vendorName",fontSize:"xs",my:0,mr:1,children:d}),(0,n.jsx)(c.Z,{label:"Enter the system name"})]}),(0,n.jsxs)(i.xuv,{width:"100%",className:"relative",children:[(0,n.jsx)(i.WPr,{id:"vendorName",labelInValue:!0,autoFocus:!0,allowClear:!0,options:E,loading:x,filterOption:(e,t)=>q(e,t)||!!(null==t?void 0:t.label.startsWith(p)),optionFilterProp:"label",value:z,placeholder:"Enter system name...",disabled:V,onChange:U,onSearch:Z,onClear:W,onBlur:B,onInputKeyDown:e=>{D&&"Tab"===e.key&&F(e)},status:S?"error":void 0,"data-testid":"vendor-name-select"}),(0,n.jsx)(h,{searchText:D,suggestion:M.length?M[0].label:""})]}),(0,n.jsx)(l.Bc,{isInvalid:S,message:w.error,fieldName:"name"})]})});return(0,n.jsxs)(i.Ugi,{alignItems:"flex-start",width:"full",children:[N?O:(0,n.jsx)(l.j0,{autoFocus:!0,id:"name",name:"name",label:"System name",tooltip:"Enter the system name",variant:"stacked",disabled:V,isRequired:!0,inputRightElement:V?null:(0,n.jsx)(i.PZ7,{onClick:W,size:"sm","data-testid":"clear-btn"})}),(0,n.jsx)(v,{active:!!R.vendor_id||L,disabled:!R.vendor_id||"showing"===j,onRefreshSuggestions:()=>f(R.vendor_id)})]})}},58955:function(e,t,s){"use strict";s.r(t),s.d(t,{default:function(){return ea}});var n=s(24246),i=s(86677),a=s(27378),r=s(35287),o=s(77830),l=s(58754),d=s(59003),c=s(92222),u=s(56351),m=s(83766),h=s.n(m),p=s(812),v=s(14047),g=s(14481),y=s(37059),x=s(8133),f=s(79283),j=s(34929),b=s(78238),w=e=>{let{selectedTaxonomies:t,...s}=e,{getDataUseDisplayNameProps:i,getDataUses:a}=(0,j.Z)(),r=a().filter(e=>e.active&&b.g.includes(e.fides_key)).filter(e=>!t.includes(e.fides_key)).map(e=>{let{name:t,primaryName:s}=i(e.fides_key);return{value:e.fides_key,name:t,primaryName:s,description:e.description||""}});return(0,n.jsx)(f.l,{options:r,...s})};let{Text:C}=u.AntTypography;var S=e=>{let{onSave:t,isSaving:s,onClose:i,...r}=e,[o,l]=(0,a.useState)([]),d=()=>{l([]),i()};return(0,n.jsxs)(x.Z,{title:"Add consent category",...r,onClose:d,children:[(0,n.jsxs)(u.jqI,{vertical:!0,gap:20,className:"pb-6 pt-4",children:[(0,n.jsx)(C,{children:"Assign consent categories to selected assets. This configures the system for consent management. Consent categories apply to both individual assets and the system."}),(0,n.jsx)(w,{mode:"tags",selectedTaxonomies:o,onSelect:(e,t)=>l([...o,t.value]),variant:"outlined"})]}),(0,n.jsxs)(u.jqI,{justify:"space-between",children:[(0,n.jsx)(u.wpx,{htmlType:"reset",onClick:d,"data-testid":"cancel-btn",children:"Cancel"}),(0,n.jsx)(u.wpx,{htmlType:"submit",type:"primary",disabled:!o.length,loading:s,onClick:()=>t(o),"data-testid":"save-btn",children:"Save"})]})]})},_=s(57454),k=s(65450);let R=e=>{let{children:t,className:s,style:i,...a}=e;return(0,n.jsx)(u.wpx,{...a,type:"text",className:"w-full justify-start ".concat(s),style:{fontWeight:600,padding:"var(--ant-select-option-padding)",backgroundColor:"var(--ant-select-option-selected-bg)",...i},children:t})};var I=s(16394);let A=(e,t)=>(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(R,{onClick:t,"data-testid":"add-new-system",id:"add-new-system",children:"Add new system +"}),e]}),T=e=>{var t;let{onAddSystem:s,...i}=e,[r,o]=(0,a.useState)(),{data:l,isFetching:d}=(0,k.xF)({page:1,size:25,search:r||void 0}),c=null==l?void 0:null===(t=l.items)||void 0===t?void 0:t.map(e=>({value:e.fides_key,label:e.name})),m=(0,a.useCallback)(e=>{(null==e?void 0:e.length)>1&&o(e),(null==e?void 0:e.length)===0&&o(void 0)},[o]),h=(0,a.useMemo)(()=>(0,I.Ds)(m,300),[m]);return(0,n.jsx)(u.WPr,{placeholder:"Search...","aria-label":"Search for a system to select",dropdownStyle:{minWidth:"500px"},dropdownRender:s?e=>A(e,s):void 0,"data-testid":"system-select",...i,filterOption:!1,options:c,onSearch:h,loading:i.loading||d})};var N=s(34090),P=s(59389),z=s(16134),q=s(25980),D=s(97181),Z=s(40324),M=s(45938),E=s(33335),L=s(32885),V=s(57865),W=s(93237),U=s(36345);let{Text:B}=u.AntTypography,F={name:"",vendor_id:void 0,description:"",tags:[]},O=e=>{let{onSuccessfulSubmit:t,toastOnSuccess:s,...i}=e,[r,o]=(0,a.useState)(!1),l=(0,z.T)(),{tcf:d,dictionaryService:c}=(0,q.hz)(),{isLoading:m}=(0,L.Rd)(void 0,{skip:!c}),h=(0,z.C)(L.o),g=(0,z.C)(V.gU),[y]=(0,k.in)(),[f]=(0,L.Qk)(),[j]=(0,k.f7)(),{successAlert:b,errorAlert:w}=(0,v.V)(),{setSuggestions:C,setLockedForGVL:S}=V.dictSuggestionsSlice.actions,_=(0,a.useRef)(null),R=(0,a.useMemo)(()=>P.Ry().shape({name:P.Z_().required().label("System name").test("is-unique","",async(e,t)=>{let{data:s}=await y({page:1,size:10,search:e});return!((null==s?void 0:s.items)||[]).filter(t=>t.name===e).some(t=>t.name===e)||t.createError({message:'You already have a system called "'.concat(e,'". Please specify a unique name for this system.')})})}),[y]),I=e=>{if(c){if(!e){l(C("hiding")),l(S(!1));return}l(C("showing")),d&&(0,p.cj)(e)===p.c6.GVL?l(S(!0)):l(S(!1))}},A=()=>{i.onClose(),l(C("initial")),l(S(!1))},T=async e=>{if(o(!0),e.vendor_id){let n=await f([e.vendor_id]);if((0,p.D4)(n))w((0,p.e$)(n.error));else{let{data:e}=n,i=e.systems[0];null==t||t(i.fides_key,i.name),s&&b("".concat(e.name," has been added to your system inventory."))}}else{let n={...e,fides_key:(0,E.E)(e.name),system_type:"",body:"",privacy_declarations:[]},i=await j(n);if((0,p.D4)(i))w((0,p.e$)(i.error));else{let{fides_key:n,name:a}=i.data;null==t||t(n,a),s&&b("".concat(e.name," has been added to your system inventory."))}A()}o(!1)};return(0,n.jsx)(x.Z,{title:"Add New System",...i,onClose:A,children:(0,n.jsx)(N.J9,{initialValues:F,onSubmit:T,validationSchema:R,innerRef:_,children:e=>{let{dirty:t,isValid:s}=e;return(0,n.jsxs)(N.l0,{children:[(0,n.jsx)(M.Gt,{id:"new-system-modal",name:"Add New System"}),(0,n.jsxs)(u.jqI,{vertical:!0,gap:20,className:"pb-6 pt-4",children:[(0,n.jsx)(B,{children:"Fides will add this system to your inventory and configure it for consent using the categories of consent listed below. Optionally, you can check if this system is listed within the Fides compass library by selecting the compass icon below."}),c?(0,n.jsx)(U.Z,{label:"System name",options:h,onVendorSelected:I,isCreate:!0,lockedForGVL:g,isLoading:m}):(0,n.jsx)(Z.j0,{id:"name",name:"name",label:"System name",tooltip:"Give the system a unique, and relevant name for reporting purposes. e.g. “Email Data Warehouse”",variant:"stacked",isRequired:!0}),(0,n.jsx)(W.Sv,{id:"description",name:"description",label:"Description",tooltip:"What services does this system perform?",disabled:g}),(0,n.jsx)(D.d,{mode:"tags",id:"tags",name:"tags",label:"System Tags",options:[],layout:"stacked",tooltip:"Are there any tags to associate with this system?",disabled:g})]}),(0,n.jsxs)(u.jqI,{justify:"space-between",children:[(0,n.jsx)(u.wpx,{htmlType:"reset",onClick:A,disabled:m||!t||!s,"data-testid":"cancel-btn",children:"Cancel"}),(0,n.jsx)(u.wpx,{htmlType:"submit",type:"primary",disabled:m||!t||!s,loading:r,"data-testid":"save-btn",children:"Save"})]})]})}})})},{Text:$}=u.AntTypography,H=e=>{let{onSave:t,isSaving:s,...i}=e,[r,o]=(0,a.useState)(),[l,d]=(0,a.useState)(!1),c=(0,a.useCallback)(e=>{e.preventDefault(),d(!0)},[]),m=()=>{d(!1)},h=()=>{o(void 0),i.onClose()};return(0,n.jsxs)(x.Z,{title:"Assign system",...i,onClose:h,children:[(0,n.jsxs)(u.jqI,{vertical:!0,gap:20,className:"pb-6 pt-4",children:[(0,n.jsx)($,{children:"Assign a system to the selected assets. If no system exists, select 'Add new system' to create one."}),(0,n.jsx)(T,{placeholder:"Search or select...",onSelect:(e,t)=>{o(t)},onAddSystem:c,value:r})]})," ",(0,n.jsxs)(u.jqI,{justify:"space-between",children:[(0,n.jsx)(u.wpx,{htmlType:"reset",onClick:h,"data-testid":"cancel-btn",children:"Cancel"}),(0,n.jsx)(u.wpx,{htmlType:"submit",type:"primary",disabled:!r,loading:s,onClick:()=>{t(r)},"data-testid":"save-btn",children:"Save"})]}),l&&(0,n.jsx)(O,{isOpen:!0,onClose:m,onSuccessfulSubmit:(e,t)=>{m(),o({label:t,value:e})},toastOnSuccess:!0})]})};var G=s(8411),X=s(72625);let J=e=>{let{asset:t}=e,[s,{isLoading:i}]=(0,y.EY)(),[a,{isLoading:r}]=(0,y.nS)(),{successAlert:o,errorAlert:l}=(0,v.V)(),d=i||r,{urn:c,name:m,resource_type:h}=t,g=async()=>{let e=await s({urnList:[c]});(0,p.D4)(e)?l((0,p.e$)(e.error)):o("".concat(h,' "').concat(m,'" has been added to the system inventory.'),"Confirmed")},x=async()=>{let e=await a({urnList:[c]});(0,p.D4)(e)?l((0,p.e$)(e.error)):o("".concat(h,' "').concat(m,'" has been ignored and will not appear in future scans.'),"Ignored")};return(0,n.jsxs)(u.vyj,{children:[(0,n.jsx)(u.esZ,{title:t.system?void 0:"This asset requires a system before you can add it to the inventory.",children:(0,n.jsx)(u.wpx,{"data-testid":"add-btn",size:"small",onClick:g,disabled:!t.system||d,loading:i,children:"Add"})}),(0,n.jsx)(u.wpx,{"data-testid":"ignore-btn",size:"small",onClick:x,disabled:d,loading:r,children:"Ignore"})]})};var K=s(26183),Y=s(31883),Q=e=>{var t;let{asset:s}=e,[i,r]=(0,a.useState)(!1),[o]=(0,y.Ak)(),{successAlert:l,errorAlert:d}=(0,v.V)(),{getDataUseDisplayName:c}=(0,j.Z)(),m=async e=>{let t=s.data_uses||[],n=await o({monitorId:s.monitor_config_id,urnList:[s.urn],dataUses:[...t,e]});(0,Y.D4)(n)?d((0,p.e$)(n.error)):l("Consent category added to ".concat(s.resource_type,' "').concat(s.name,'" .'),"Confirmed"),r(!1)},h=async e=>{let t=s.data_uses||[],n=await o({monitorId:s.monitor_config_id,urnList:[s.urn],dataUses:t.filter(t=>t!==e)});(0,Y.D4)(n)?d((0,p.e$)(n.error)):l("Consent category removed from ".concat(s.resource_type,' "').concat(s.name,'".'),"Confirmed")},g=null===(t=s.data_uses)||void 0===t?void 0:t.filter(e=>(0,b.Z)(e));return(0,n.jsxs)(K.Z,{children:[!i&&(0,n.jsxs)(n.Fragment,{children:[null==g?void 0:g.map(e=>(0,n.jsx)(u.j8w,{"data-testid":"data-use-".concat(e),color:"white",closable:!0,onClose:()=>h(e),closeButtonLabel:"Remove data use",children:c(e)},e)),(0,n.jsx)(u.j8w,{onClick:()=>r(!0),"data-testid":"taxonomy-add-btn",addable:!0,"aria-label":"Add data use"})]}),i&&(0,n.jsx)(u.xuv,{className:"select-wrapper",position:"absolute",zIndex:10,top:"0",left:"0",width:"100%",height:"max",bgColor:"#fff",children:(0,n.jsx)(w,{selectedTaxonomies:g||[],onSelect:m,onBlur:()=>r(!1),open:!0})})]})},ee=s(43862),et=s(70675);let es=e=>{let{aggregateSystem:t,monitorConfigId:s}=e,{resource_type:i,name:r,urn:o,system:l}=t,[d,c]=(0,a.useState)(!1),[m,h]=(0,a.useState)(!1),[g,{isLoading:y}]=(0,et.NA)(),{successAlert:x,errorAlert:f}=(0,v.V)(),j=(0,a.useCallback)(e=>{e.preventDefault(),h(!0)},[]),b=async(e,t,n)=>{let a=await g({staged_resource_urn:o,monitor_config_id:s,system_key:e});(0,p.D4)(a)?f((0,p.e$)(a.error)):x(n?"".concat(t," has been added to your system inventory and the ").concat(i,' "').concat(r,'" has been assigned to that system.'):"".concat(i,' "').concat(r,'" has been assigned to ').concat(t,"."),"Confirmed"),c(!1)};return(0,n.jsxs)(n.Fragment,{children:[!d&&(0,n.jsx)("div",{style:(0,ee.J9)(),children:l?(0,n.jsxs)(u.j8w,{onClick:()=>c(!0),"data-testid":"system-badge",children:[l,(0,n.jsx)(u.PJP.I8b,{})]}):(0,n.jsx)(u.j8w,{onClick:()=>c(!0),"data-testid":"add-system-btn",addable:!0})}),!!d&&(0,n.jsx)(T,{variant:"borderless",className:"w-full",autoFocus:!0,defaultOpen:!0,onBlur:e=>{var t;(null===(t=e.relatedTarget)||void 0===t?void 0:t.getAttribute("id"))!=="add-new-system"&&c(!1)},onAddSystem:j,onSelect:(e,t)=>b(e,t.label),loading:y}),m&&(0,n.jsx)(O,{isOpen:!0,onClose:()=>{h(!1)},onSuccessfulSubmit:(e,t)=>b(e,t,!0)})]})},en=()=>{let e=(0,c.Cl)();return{columns:[e.display({id:"select",cell:e=>{let{row:t}=e;return(0,n.jsx)(g.k,{isChecked:t.getIsSelected(),onChange:t.getToggleSelectedHandler(),dataTestId:"select-".concat(t.original.name||t.id)})},header:e=>{let{table:t}=e;return(0,n.jsx)(g.k,{isChecked:t.getIsAllPageRowsSelected(),isIndeterminate:t.getIsSomeRowsSelected(),onChange:t.getToggleAllRowsSelectedHandler(),dataTestId:"select-all-rows"})},maxSize:40}),e.accessor(e=>e.name,{id:"name",cell:e=>(0,n.jsx)(g.G3,{value:e.getValue()}),header:"Asset",size:300}),e.accessor(e=>e.resource_type,{id:"resource_type",cell:e=>(0,n.jsx)(g.G3,{value:e.getValue()}),header:"Type"}),e.accessor(e=>e.system,{id:"system",cell:e=>!!e.row.original.monitor_config_id&&(0,n.jsx)(es,{aggregateSystem:e.row.original,monitorConfigId:e.row.original.monitor_config_id}),header:"System",size:200,meta:{noPadding:!0}}),e.display({id:"data_use",cell:e=>(0,n.jsx)(Q,{asset:e.row.original}),header:"Categories of consent",size:400,meta:{disableRowClick:!0}}),e.accessor(e=>e.locations,{id:"locations",cell:e=>(0,n.jsx)(g.G3,{value:e.getValue().length>1?"".concat(e.getValue().length," locations"):G.Z8[e.getValue()[0]]}),header:"Locations"}),e.accessor(e=>e.domain,{id:"domain",cell:e=>(0,n.jsx)(g.G3,{value:e.getValue()}),header:"Domain"}),e.accessor(e=>e.page,{id:"page",cell:e=>(0,n.jsx)(X.tc,{values:e.getValue(),valueSuffix:"pages",cellProps:e}),header:e=>(0,n.jsx)(X.Rr,{value:"Detected on",...e}),meta:{showHeaderMenu:!0,disableRowClick:!0}}),e.display({id:"actions",cell:e=>(0,n.jsx)(J,{asset:e.row.original}),header:"Actions",meta:{disableRowClick:!0}})]}},ei=e=>{let{monitorId:t,systemId:s,onSystemName:r}=e,l=(0,i.useRouter)(),[m,x]=(0,a.useState)(s),[f,j]=(0,a.useState)({}),[b,w]=(0,a.useState)(!1),[C,k]=(0,a.useState)(!1),[R,{isLoading:I}]=(0,y.EY)(),[A,{isLoading:T}]=(0,y.nS)(),[N,{isLoading:P}]=(0,y.rs)(),[z,{isLoading:q}]=(0,y.sX)(),[D,{isLoading:Z}]=(0,y.Vr)(),M=I||T||P||q,E=M||s===o.Kl,{PAGE_SIZES:L,pageSize:V,setPageSize:W,onPreviousPageClick:U,isPreviousPageDisabled:B,onNextPageClick:F,isNextPageDisabled:O,startRange:$,endRange:G,pageIndex:X,setTotalPages:J,resetPageIndexToDefault:K}=(0,g.oi)(),[Y,Q]=(0,a.useState)(""),{successAlert:ee,errorAlert:et}=(0,v.V)();(0,a.useEffect)(()=>{K()},[t,Y,K]);let{data:es,isLoading:ei,isFetching:ea}=(0,y.WJ)({key:t,system:s,page:X,size:V,search:Y});(0,a.useEffect)(()=>{if(es){var e;let t=(null===(e=es.items[0])||void 0===e?void 0:e.system)||s||"";J(es.pages||1),x(t),null==r||r(t)}},[es,s,r,J]);let{columns:er}=en(),eo=(0,d.b7)({getCoreRowModel:(0,c.sC)(),columns:er,manualPagination:!0,data:(null==es?void 0:es.items)||[],columnResizeMode:"onChange",onRowSelectionChange:j,state:{rowSelection:f}}),el=eo.getSelectedRowModel().rows.map(e=>e.original.urn),ed=async()=>{let e=await R({urnList:el});(0,p.D4)(e)?et((0,p.e$)(e.error)):(eo.resetRowSelection(),ee("".concat(el.length," assets from ").concat(m," have been added to the system inventory."),"Confirmed"))},ec=async e=>{if("string"==typeof(null==e?void 0:e.value)){let s=await z({monitorId:t,urnList:el,systemKey:e.value});(0,p.D4)(s)?et((0,p.e$)(s.error)):(eo.resetRowSelection(),ee("".concat(el.length," assets have been assigned to ").concat(e.label,"."),"Confirmed"))}w(!1)},eu=async e=>{let s=null==es?void 0:es.items.filter(e=>el.includes(e.urn));if(!s)return;let n=s.map(t=>{let s=h()([...t.data_uses||[],...e]);return{urn:t.urn,data_uses:s}}),i=await D({monitorId:t,assets:n});(0,p.D4)(i)?et((0,p.e$)(i.error)):(eo.resetRowSelection(),ee("Consent categories added to ".concat(el.length," assets from ").concat(m,"."),"Confirmed"))},em=async()=>{let e=await A({urnList:el});(0,p.D4)(e)?et((0,p.e$)(e.error)):(eo.resetRowSelection(),ee("".concat(el.length," assets from ").concat(m," have been ignored and will not appear in future scans."),"Confirmed"))},eh=async()=>{let e=(null==es?void 0:es.items.length)||0,n=await N({monitor_config_key:t,resolved_system_ids:[s]});(0,p.D4)(n)?et((0,p.e$)(n.error)):(l.push("".concat(o.vi,"/").concat(t)),ee("".concat(e," assets from ").concat(m," have been added to the system inventory."),"Confirmed"))};return t&&s?ei?(0,n.jsx)(g.I4,{rowHeight:36,numRows:36}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(g.Q$,{children:[(0,n.jsx)(_.M,{value:Y,onChange:Q}),(0,n.jsxs)(u.kCb,{alignItems:"center",children:[!!el.length&&(0,n.jsx)(u.xvT,{fontSize:"xs",fontWeight:"semibold",minW:16,mr:6,"data-testid":"selected-count",children:"".concat(el.length," selected")}),(0,n.jsxs)(u.Ugi,{children:[(0,n.jsxs)(u.v2r,{children:[(0,n.jsx)(u.j2t,{as:u.wpx,icon:(0,n.jsx)(u.PJP._ME,{}),iconPosition:"end",loading:M,"data-testid":"bulk-actions-menu",disabled:!el.length||M,type:"primary",children:"Actions"}),(0,n.jsxs)(u.qyq,{children:[(0,n.jsx)(u.sNh,{fontSize:"small",onClick:ed,"data-testid":"bulk-add",children:"Add"}),(0,n.jsx)(u.sNh,{fontSize:"small",onClick:()=>k(!0),"data-testid":"bulk-add-data-use",children:"Add consent category"}),(0,n.jsx)(u.sNh,{fontSize:"small",onClick:()=>{w(!0)},"data-testid":"bulk-assign-system",children:"Assign system"}),(0,n.jsx)(u.RaW,{}),(0,n.jsx)(u.sNh,{fontSize:"small",onClick:em,"data-testid":"bulk-ignore",children:"Ignore"})]})]}),(0,n.jsx)(u.esZ,{title:E?"These assets require a system before you can add them to the inventory.":void 0,children:(0,n.jsx)(u.wpx,{onClick:eh,disabled:E,loading:P,type:"primary",icon:(0,n.jsx)(u.PJP.MCw,{}),iconPosition:"end","data-testid":"add-all",children:"Add all"})})]})]})]}),(0,n.jsx)(g.ZK,{tableInstance:eo,emptyTableNotice:(0,n.jsx)(u.oj8,{image:u.oj8.PRESENTED_IMAGE_SIMPLE,description:"All caught up!"})}),(0,n.jsx)(g.s8,{totalRows:(null==es?void 0:es.total)||0,pageSizes:L,setPageSize:W,onPreviousPageClick:U,isPreviousPageDisabled:B||ea,onNextPageClick:F,isNextPageDisabled:O||ea,startRange:$,endRange:G}),(0,n.jsx)(H,{isOpen:b,onClose:()=>{w(!1)},onSave:ec,isSaving:q}),(0,n.jsx)(S,{isOpen:C,onClose:()=>{k(!1)},onSave:eu,isSaving:Z})]}):null};var ea=()=>{let e=(0,i.useRouter)(),t=decodeURIComponent(e.query.monitorId),s=decodeURIComponent(e.query.systemId),[d,c]=(0,a.useState)(s===o.Kl?"Uncategorized assets":s);return(0,n.jsxs)(r.Z,{title:"Action center - Discovered assets",children:[(0,n.jsx)(l.Z,{heading:"Action center",breadcrumbItems:[{title:"All activity",href:o.vi},{title:t,href:"".concat(o.vi,"/").concat(t)},{title:s===o.Kl?"Uncategorized assets":d}]}),(0,n.jsx)(ei,{monitorId:t,systemId:s,onSystemName:c})]})}},31883:function(e,t,s){"use strict";s.d(t,{Bw:function(){return n.Bw},D4:function(){return n.D4}});var n=s(19043)},72707:function(e){e.exports={option:"TaxonomySelect_option__vY6v2"}}},function(e){e.O(0,[8033,2780,2858,2866,9278,4481,3215,2888,9774,179],function(){return e(e.s=25654)}),_N_E=e.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1500],{50697:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/integrations/[id]",function(){return n(327)}])},67991:function(e,t,n){"use strict";n.d(t,{Od:function(){return o},QZ:function(){return a}});var i=n(27378);let a=e=>{let{items:t,selected:n,onChange:i}=e,a=t.every(e=>n.includes(e.id))&&!!t.length;return{allSelected:a,someSelected:t.some(e=>n.includes(e.id))&&!!t.length,handleToggleAll:()=>{a?i([]):i(t.map(e=>e.id))},handleToggleSelection:e=>{n.includes(e)?i(n.filter(t=>t!==e)):i([...n,e])}}},o=e=>{let{initialSelected:t,initialExcluded:n,initialAllSelected:a,itemCount:o}=e,[s,l]=(0,i.useState)(t),[r,c]=(0,i.useState)(n),[d,u]=(0,i.useState)(a||s.length===o),m=!!s.length||!!r.length;return{selected:s,excluded:r,allSelected:d,someSelected:m,handleToggleAll:()=>{d?(c([]),r.length||u(!1)):(l([]),u(!0))},handleToggleItemSelected:e=>{if(d)c(r.includes(e)?r.filter(t=>t!==e):[...r,e]);else{let t=s.includes(e)?s.filter(t=>t!==e):[...s,e];l(t),t.length===o&&u(!0)}}}}},79494:function(e,t,n){"use strict";var i=n(24246),a=n(56351);t.Z=e=>{let{title:t,icon:n,type:o,...s}=e;return(0,i.jsx)(a.wpx,{size:"small",type:o,"data-testid":"action-".concat(t),icon:n,iconPosition:"start",...s,children:t})}},327:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return el}});var i=n(24246),a=n(56351),o=n(86677),s=n(7617),l=n(77213),r=n(77830),c=n(58754),d=n(94725),u=n(45216),m=n(7621),x=n(92222),g=n(59003),h=n(27378),p=n(18225);let f=(0,a.IUT)({displayName:"MonitorIcon",viewBox:"0 0 12 12",path:(0,i.jsx)("path",{d:"M1.33333 2.21875C1.15 2.21875 1 2.37344 1 2.5625V5.65625H3.66667C3.84167 5.65625 4.00417 5.75078 4.09583 5.90762L4.62708 6.8207L5.88542 4.22324C5.96667 4.05566 6.13125 3.94609 6.3125 3.93965C6.49375 3.9332 6.66667 4.02773 6.76042 4.18887L7.61458 5.65625H8.83333C9.11042 5.65625 9.33333 5.88613 9.33333 6.17188C9.33333 6.45762 9.11042 6.6875 8.83333 6.6875H7.33333C7.15833 6.6875 6.99583 6.59297 6.90417 6.43613L6.37292 5.52305L5.11458 8.12051C5.03333 8.28809 4.86875 8.39766 4.6875 8.4041C4.50625 8.41055 4.33333 8.31602 4.23958 8.15488L3.38542 6.6875H1V9.4375C1 9.62656 1.15 9.78125 1.33333 9.78125H10.6667C10.85 9.78125 11 9.62656 11 9.4375V2.5625C11 2.37344 10.85 2.21875 10.6667 2.21875H1.33333ZM0 2.5625C0 1.8041 0.597917 1.1875 1.33333 1.1875H10.6667C11.4021 1.1875 12 1.8041 12 2.5625V9.4375C12 10.1959 11.4021 10.8125 10.6667 10.8125H1.33333C0.597917 10.8125 0 10.1959 0 9.4375V2.5625Z",fill:"currentColor"})});var j=n(14481),y=n(72625),_=n(70675),b=n(812),v=e=>{let{defaultSuccessMsg:t,defaultErrorMsg:n}=e,i=(0,a.pmc)();return{toastResult:e=>{(0,b.D4)(e)?i({status:"error",description:(0,b.e$)(e.error,n)}):i({status:"success",description:t})}}},C=n(8133),S=n(46628),k=n(67991),w=n(91613);let R=(0,x.Cl)();var T=e=>{let{items:t,totalItemCount:n,selected:o,excluded:s,allSelected:l,someSelected:r,moreLoading:c,handleToggleSelection:d,handleToggleAll:u,onMoreClick:m}=e,f=t.map(e=>({id:e,isSelected:o.includes(e),isExcluded:s.includes(e)})),y=(0,h.useMemo)(()=>[R.display({id:"select",cell:e=>{let{row:t}=e;return(0,i.jsx)(j.k,{isChecked:t.original.isSelected||l&&!t.original.isExcluded,onChange:()=>d(t.original.id),dataTestId:"".concat(t.original.id,"-checkbox")})},header:()=>(0,i.jsx)(j.k,{isChecked:l,isIndeterminate:r,onChange:u,dataTestId:"select-all-checkbox"}),size:1}),R.accessor(e=>e.id,{id:"id",cell:e=>(0,i.jsx)(j.G3,{value:e.getValue()}),header:e=>(0,i.jsx)(j.Rr,{value:"Scope",...e})})],[d,u,l,r]),_=(0,g.b7)({getCoreRowModel:(0,x.sC)(),getRowId:e=>e.id,manualPagination:!0,data:f,columns:y,columnResizeMode:"onChange"});return(0,i.jsx)(a.kCb,{w:"full",direction:"column",maxH:"lg",children:(0,i.jsx)(j.ZK,{tableInstance:_,onRowClick:e=>d(e.id),footer:!!m&&(0,i.jsx)(j.vr,{totalColumns:2,children:(0,i.jsx)(a.kCb,{justify:"center",children:c?(0,i.jsx)(p.Z,{size:"xs"}):(0,i.jsxs)(a.kCb,{align:"center",children:[(0,i.jsxs)(a.xvT,{fontSize:"xs",mr:4,children:["Showing ",t.length," of ",n]}),(0,i.jsx)(a.wpx,{onClick:m,size:"small","data-testid":"load-more-btn",children:"Load more..."})]})})})})})};let E={items:[],total:1,page:1,size:50,pages:0};var q=(e,t)=>{let[n,i]=(0,h.useState)(2),{data:a,isLoading:o}=(0,_.oN)({page:1,size:25,connection_config_key:e}),s=(0,h.useRef)(o),{items:l,total:r}=null!=a?a:E,c=!!(null==a?void 0:a.pages)&&n>a.pages,[d,u]=(0,h.useState)(l);(0,h.useEffect)(()=>{s.current=o,u(l)},[o,l]),(0,h.useEffect)(()=>{let e=setTimeout(()=>{s.current&&t&&t()},5e3);return()=>clearTimeout(e)},[]);let[m,{isLoading:x,isFetching:g}]=(0,_.j3)(),p=x||g||o,f=async()=>{var t,a;if(c)return;let o=await m({connection_config_key:e,size:25,page:n+1});o.isError||(i(n+1),u([...d,...null!==(a=null===(t=o.data)||void 0===t?void 0:t.items)&&void 0!==a?a:[]]))};return{databases:d,totalDatabases:r,fetchMore:f,initialIsLoading:o,isLoading:p,reachedEnd:c}},M=e=>{var t;let{monitor:n,isEditing:o,isSubmitting:s,integrationKey:l,onSubmit:r,onClose:c}=e,d=(0,a.pmc)(),{databases:u,totalDatabases:m,fetchMore:x,reachedEnd:g,isLoading:h,initialIsLoading:f}=q(l,()=>{r({...n,databases:[]}),d({...S.MA,status:"info",description:"Loading resources is taking longer than expected. The monitor has been saved and is tracking all available resources. You can return later to limit its scope if needed"}),c()}),j=null!==(t=null==n?void 0:n.databases)&&void 0!==t?t:[],{selected:y,excluded:_,allSelected:b,someSelected:v,handleToggleItemSelected:C,handleToggleAll:R}=(0,k.Od)({initialSelected:j,initialExcluded:[],initialAllSelected:o&&!j.length,itemCount:m}),E=!b&&0===y.length;return f?(0,i.jsx)(p.Z,{my:12}):(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)(a.kCb,{p:4,direction:"column",children:[(0,i.jsxs)(a.kCb,{direction:"row",mb:4,gap:1,align:"center",children:[(0,i.jsx)(a.xvT,{fontSize:"sm",children:"Select projects to monitor"}),(0,i.jsx)(w.Z,{label:"Selecting a project will monitor all current and future datasets within that project."})]}),(0,i.jsx)(T,{items:u,totalItemCount:m,selected:y,excluded:_,allSelected:b,someSelected:v,moreLoading:h,handleToggleSelection:C,handleToggleAll:R,onMoreClick:g?void 0:x})]}),(0,i.jsxs)("div",{className:"mt-4 flex w-full justify-between",children:[(0,i.jsx)(a.wpx,{onClick:c,children:"Cancel"}),(0,i.jsx)(a.ua7,{label:"Select one or more projects to save",isDisabled:!E,children:(0,i.jsx)(a.wpx,{onClick:()=>{r({...n,excluded_databases:_,databases:b?[]:y})},loading:s,type:"primary","data-testid":"save-btn",disabled:E,children:"Save"})})]})]})},L=n(19508),D=n(96063),N=n(34090),A=n(59389),Z=n(97181),O=n(40324),z=n(21702),I=e=>{var t,n;let{monitor:s,integrationOption:l,isSubmitting:r,databasesAvailable:c,onClose:d,onAdvance:u,onSubmit:m}=e,x=!!s,{query:g}=(0,o.useRouter)(),h=Array.isArray(g.id)?g.id[0]:g.id,p=A.Ry().shape({name:A.Z_().required().label("Name"),execution_frequency:A.Z_().nullable().label("Execution frequency"),execution_start_date:A.hT().nullable().label("Execution start date")}),f=(null==s?void 0:s.execution_start_date)?(0,L.D)(s.execution_start_date):Date.now(),j={name:null!==(t=null==s?void 0:s.name)&&void 0!==t?t:"",execution_start_date:(0,D.WU)(f,"yyyy-MM-dd'T'HH:mm"),execution_frequency:null!==(n=null==s?void 0:s.execution_frequency)&&void 0!==n?n:z.hV.MONTHLY},y=(0,b.MM)(z.hV);return(0,i.jsx)(N.J9,{initialValues:j,enableReinitialize:!0,onSubmit:e=>{let t=e.execution_frequency!==z.hV.NOT_SCHEDULED?{execution_frequency:e.execution_frequency,execution_start_date:new Date(e.execution_start_date).toISOString()}:{execution_frequency:z.hV.NOT_SCHEDULED,execution_start_date:void 0},n=x?{...s,...t,name:e.name}:{...t,name:e.name,connection_config_key:h,classify_params:{num_samples:25,num_threads:1}};l.identifier===z.Rj.DYNAMODB&&(n.datasource_params={single_dataset:!1}),c?u(n):m(n)},validationSchema:p,children:e=>{let{values:t,isValid:n,resetForm:o}=e;return(0,i.jsx)(N.l0,{children:(0,i.jsxs)(a.gCW,{alignItems:"start",spacing:6,mt:4,children:[(0,i.jsx)(O.j0,{name:"name",id:"name",label:"Name",isRequired:!0,variant:"stacked"}),(0,i.jsx)(Z.d,{name:"execution_frequency",id:"execution_frequency",tooltip:"Interval to run the monitor automatically after the start date",options:y,label:"Automatic execution frequency",layout:"stacked"}),(0,i.jsx)(O.YL,{name:"execution_start_date",label:"Automatic execution start time",disabled:t.execution_frequency===z.hV.NOT_SCHEDULED,id:"execution_start_date"}),(0,i.jsxs)("div",{className:"flex w-full justify-between",children:[(0,i.jsx)(a.wpx,{onClick:()=>{o(),d()},children:"Cancel"}),(0,i.jsx)(a.wpx,{htmlType:"submit",type:"primary",disabled:!n,loading:r,"data-testid":"next-btn",children:c?"Next":"Save"})]})]})})}})},V=n(8411),H=n(3968),P=n(64781),U=n(60325);let W=A.Ry().shape({name:A.Z_().required().label("Name"),execution_frequency:A.Z_().nullable().label("Execution frequency"),execution_start_date:A.hT().nullable().label("Execution start date"),datasource_params:A.Ry().shape({locations:A.IX().label("Locations"),exclude_domains:A.IX().label("Exclude domains"),sitemap_url:A.Z_().nullable().url().label("Sitemap URL")})});var Y=e=>{var t,n,s;let{monitor:l,url:r,onClose:c,onSubmit:d}=e,{query:u}=(0,o.useRouter)(),m=Array.isArray(u.id)?u.id[0]:u.id,x=(null==l?void 0:l.execution_start_date)?(0,L.D)(l.execution_start_date):Date.now(),{data:g,isLoading:h}=(0,P.gT)(),p=[...(0,U.TK)(null!==(t=null==g?void 0:g.locations)&&void 0!==t?t:[]),...(0,U.TK)(null!==(n=null==g?void 0:g.location_groups)&&void 0!==n?n:[])].map(e=>({value:e,label:V.Z8[e]})),f={name:(null==l?void 0:l.name)||"",execution_frequency:(null==l?void 0:l.execution_frequency)||z.hV.MONTHLY,execution_start_date:(0,D.WU)(x,"yyyy-MM-dd'T'HH:mm"),url:r,connection_config_key:m,datasource_params:null!==(s=null==l?void 0:l.datasource_params)&&void 0!==s?s:{locations:[]}},j=async e=>{let t=e.execution_frequency!==z.hV.NOT_SCHEDULED?{execution_frequency:e.execution_frequency,execution_start_date:new Date(e.execution_start_date).toISOString()}:{execution_frequency:z.hV.NOT_SCHEDULED,execution_start_date:void 0};d({...l,...e,...t,key:(null==l?void 0:l.key)||(0,H.E)(e.name),classify_params:(null==l?void 0:l.classify_params)||{},datasource_params:e.datasource_params||{},connection_config_key:m})};return(0,i.jsxs)(a.jqI,{vertical:!0,className:"pt-4",children:[(0,i.jsx)(a.xuv,{p:4,mb:4,border:"1px solid",borderColor:"gray.200",bgColor:"gray.50",borderRadius:"md",children:(0,i.jsx)(a.xvT,{fontSize:"sm",children:"This monitor allows you to simulate and verify user consent actions, such as 'accept,' 'reject,' or 'opt-out,' on consent experiences. For each detected activity, the monitor will record whether it occurred before or after the configured user actions, ensuring compliance with user consent choices."})}),(0,i.jsx)(N.J9,{initialValues:f,enableReinitialize:!0,onSubmit:j,validationSchema:W,children:e=>{let{values:t,resetForm:n}=e;return(0,i.jsx)(N.l0,{children:(0,i.jsxs)(a.jqI,{vertical:!0,gap:"middle",children:[(0,i.jsx)(O.j0,{name:"name",id:"name",label:"Name",isRequired:!0,variant:"stacked"}),(0,i.jsx)(O.j0,{name:"datasource_params.sitemap_url",id:"sitemap_url",label:"Sitemap URL",variant:"stacked"}),(0,i.jsx)(Z.d,{mode:"tags",name:"datasource_params.exclude_domains",placeholder:"Enter domains to exclude",id:"exclude_domains",label:"Exclude domains",options:[],open:!1,layout:"stacked"}),(0,i.jsx)(O.j0,{name:"url",id:"url",label:"URL",isRequired:!0,disabled:!0,variant:"stacked"}),(0,i.jsx)(Z.d,{mode:"multiple",isRequired:!0,name:"datasource_params.locations",id:"locations",label:"Locations",loading:h,options:p,optionFilterProp:"label",tooltip:"Specify the region(s) to include in the scan. The monitor will scan the same URL across these locations to identify tracking technologies, such as cookies served by ad tech vendors.",layout:"stacked"}),(0,i.jsx)(Z.d,{name:"execution_frequency",id:"execution_frequency",options:(0,b.MM)(z.hV),label:"Automatic execution frequency",layout:"stacked"}),(0,i.jsx)(O.YL,{name:"execution_start_date",label:"Automatic execution start time",disabled:t.execution_frequency===z.hV.NOT_SCHEDULED,id:"execution_start_date",tooltip:"Set the start time for the scan. For optimal performance and minimal disruption, schedule scans during periods of low traffic."}),(0,i.jsxs)(a.jqI,{className:"mt-2 justify-between",children:[(0,i.jsx)(a.wpx,{onClick:()=>{n(),c()},children:"Cancel"}),(0,i.jsx)(a.wpx,{type:"primary",htmlType:"submit","data-testid":"save-btn",children:"Save"})]})]})})}})]})},F=n(31883),K=e=>{let{isOpen:t,onClose:n,formStep:o,onAdvance:s,monitor:l,isEditing:r,integration:c,integrationOption:d}=e,[u,{isLoading:m}]=(0,_.Fy)(),{data:x}=(0,_.oN)({page:1,size:25,connection_config_key:c.key}),g=!!x&&!!x.total,h=(0,a.pmc)(),{toastResult:f}=v({defaultSuccessMsg:"Monitor ".concat(r?"updated":"created"," successfully"),defaultErrorMsg:"A problem occurred while ".concat(r?"updating":"creating"," this monitor")}),j=async e=>{let t;let i=setTimeout(()=>{t||(h({...S.MA,status:"info",description:"Saving this monitor is taking longer than expected. Fides will continue processing it in the background, and you can check back later to view the updates."}),n())},5e3);(t=await u(e))&&(clearTimeout(i),f(t),(0,F.D4)(t)||n())};return d.identifier===z.Rj.WEBSITE?(0,i.jsx)(C.Z,{title:(null==l?void 0:l.name)?"Configure ".concat(l.name):"Configure website monitor",isOpen:t,onClose:n,children:(0,i.jsx)(Y,{monitor:l,url:c.secrets.url,onClose:n,onSubmit:j})}):(0,i.jsxs)(C.Z,{title:(null==l?void 0:l.name)?"Configure ".concat(l.name):"Configure discovery monitor",isOpen:t,onClose:n,children:[0===o&&(0,i.jsx)(I,{monitor:l,onClose:n,onAdvance:s,onSubmit:j,isSubmitting:m,databasesAvailable:g,integrationOption:d}),1===o&&(l?(0,i.jsx)(M,{monitor:l,isEditing:r,isSubmitting:m,onSubmit:j,onClose:n,integrationKey:c.key}):(0,i.jsx)(p.Z,{}))]})},B=n(58452),G=n(79494),X=e=>{let{monitorId:t,onEditClick:n}=e,[o]=(0,_.Sb)(),{toastResult:s}=v({defaultErrorMsg:"A problem occurred deleting this monitor",defaultSuccessMsg:"Monitor deleted successfully"}),[l,{isLoading:r}]=(0,_.V9)(),{toastResult:c}=v({defaultErrorMsg:"A problem occurred initiating monitor execution",defaultSuccessMsg:"Monitor execution successfully started"}),d=async()=>{s(await o({monitor_config_id:t}))},{isOpen:u,onOpen:m,onClose:x}=(0,a.qY0)(),g=async()=>{c(await l({monitor_config_id:t}))};return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(B.Z,{isOpen:u,onClose:x,onConfirm:d,title:"Delete monitor",message:"Are you sure you want to delete this discovery monitor?",continueButtonText:"Delete",isCentered:!0}),(0,i.jsxs)("div",{className:"flex gap-2",children:[(0,i.jsx)(a.ua7,{label:"Edit",children:(0,i.jsx)(a.wpx,{onClick:n,size:"small",icon:(0,i.jsx)(a.dY8,{}),"data-testid":"edit-monitor-btn","aria-label":"Edit monitor"})}),(0,i.jsx)(a.ua7,{label:"Delete",children:(0,i.jsx)(a.wpx,{onClick:m,size:"small",icon:(0,i.jsx)(a.pJl,{}),"aria-label":"Delete monitor","data-testid":"delete-monitor-btn"})}),(0,i.jsx)(G.Z,{onClick:g,title:"Scan",loading:r})]})]})};let J=e=>{let{row:t,getValue:n}=e,[a]=(0,_.Fy)(),o=async e=>a({...t.original,enabled:e}),s=n();return(0,i.jsx)(y.S1,{enabled:s,onToggle:o,title:"Disabling monitor",message:"You are about to disable this monitor. If you continue, it will no longer scan automatically."})},$={items:[],total:0,page:1,size:50,pages:0},Q=(0,x.Cl)(),ee=e=>{let{onAddClick:t}=e;return(0,i.jsx)(a.gCW,{mt:6,p:10,spacing:4,borderRadius:"base",maxW:"70%","data-testid":"no-results-notice",alignSelf:"center",margin:"auto",children:(0,i.jsxs)(a.gCW,{children:[(0,i.jsx)(a.xvT,{fontSize:"md",fontWeight:"600",children:"No monitors"}),(0,i.jsx)(a.xvT,{fontSize:"sm",children:'You have not configured any data discovery monitors. Click "Add monitor" to configure data discovery now.'}),(0,i.jsx)(a.wpx,{onClick:t,type:"primary",children:"Add monitor"})]})})};var et=e=>{let{integration:t,integrationOption:n}=e,{PAGE_SIZES:o,pageSize:s,setPageSize:l,onPreviousPageClick:r,isPreviousPageDisabled:c,onNextPageClick:d,isNextPageDisabled:u,startRange:m,endRange:b,pageIndex:v,setTotalPages:C}=(0,j.oi)(),{isLoading:S,isFetching:k,data:w}=(0,_.Fu)({page:v,size:s,connection_config_key:t.key}),R=(0,a.qY0)(),[T,E]=(0,h.useState)(void 0),[q,M]=(0,h.useState)(!1),[L,D]=(0,h.useState)(0),N=e=>{E(e),M(!0),R.onOpen()},A=null!=w?w:$,{items:Z,total:O,pages:I}=(0,h.useMemo)(()=>A,[A]);(0,h.useEffect)(()=>{C(I)},[I,C]);let V=(0,h.useMemo)(()=>[Q.accessor(e=>e.name,{id:"name",cell:e=>(0,i.jsx)(j.G3,{value:e.getValue()}),header:e=>(0,i.jsx)(j.Rr,{value:"Name",...e})}),Q.accessor(e=>e.databases,{id:"projects",cell:e=>0===e.getValue().length?(0,i.jsx)(j.G3,{value:"All projects"}):(0,i.jsx)(j.WP,{suffix:"Projects",value:e.getValue(),...e,cellState:{isExpanded:!0}}),header:e=>(0,i.jsx)(j.Rr,{value:"Scope",...e})}),Q.accessor(e=>e.execution_frequency,{id:"frequency",cell:e=>{var t;return(0,i.jsx)(j.G3,{value:null!==(t=e.getValue())&&void 0!==t?t:"Not scheduled"})},header:e=>(0,i.jsx)(j.Rr,{value:"Scan frequency",...e})}),Q.accessor(e=>e.last_monitored,{id:"last_monitored",cell:e=>(0,i.jsx)(y.Cy,{time:e.getValue()}),header:e=>(0,i.jsx)(j.Rr,{value:"Last scan",...e})}),Q.accessor(e=>e.enabled,{id:"status",cell:J,header:e=>(0,i.jsx)(j.Rr,{value:"Status",...e}),size:0,meta:{disableRowClick:!0}}),Q.display({id:"action",cell:e=>(0,i.jsx)(X,{onEditClick:()=>N(e.row.original),monitorId:e.row.original.key}),header:"Actions",meta:{disableRowClick:!0}})],[]),H=(0,g.b7)({getCoreRowModel:(0,x.sC)(),getGroupedRowModel:(0,x.qe)(),getExpandedRowModel:(0,x.rV)(),getRowId:e=>e.name,manualPagination:!0,data:Z,columns:V,columnResizeMode:"onChange"});return S?(0,i.jsx)(p.Z,{}):(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(a.xvT,{maxW:"720px",mb:6,fontSize:"sm","data-testid":"monitor-description",children:(null==n?void 0:n.identifier)===z.Rj.WEBSITE?"Configure your website monitor to identify active ad tech vendors and tracking technologies across your site. This monitor will analyze selected pages for vendor activity, compliance with privacy requirements, and data collection practices. Set your preferences below to customize the monitor frequency and scan locations.":"A data discovery monitor observes configured systems for data model changes to proactively discover and classify data risks. Monitors can observe part or all of a project, dataset, table, or API for changes and each can be assigned to a different data steward."}),(0,i.jsxs)(j.Q$,{children:[(0,i.jsx)(a.LZC,{}),(0,i.jsx)(a.wpx,{onClick:R.onOpen,icon:(0,i.jsx)(f,{}),iconPosition:"end","data-testid":"add-monitor-btn",children:"Add monitor"}),(0,i.jsx)(K,{isOpen:R.isOpen,onClose:()=>{E(void 0),M(!1),D(0),R.onClose()},formStep:L,onAdvance:e=>{E(e),D(1)},monitor:T,isEditing:q,integration:t,integrationOption:n})]}),(0,i.jsx)(j.ZK,{tableInstance:H,onRowClick:N,emptyTableNotice:(0,i.jsx)(ee,{onAddClick:R.onOpen})}),(0,i.jsx)(j.s8,{totalRows:O||0,pageSizes:o,setPageSize:l,onPreviousPageClick:r,isPreviousPageDisabled:c||k,onNextPageClick:d,isNextPageDisabled:u||k,startRange:m,endRange:b})]})},en=n(15987),ei=n(64176),ea=e=>{let{isOpen:t,onClose:n,connection:a}=e,o=(0,ei.Z)(a.connection_type);return(0,i.jsx)(C.Z,{title:"Manage integration secret",isOpen:t,onClose:n,children:(0,i.jsx)(en.Z,{connection:a,connectionOption:o,onCancel:n})})},eo=n(41553),es=n(75595),el=()=>{var e,t;let{query:n}=(0,o.useRouter)(),x=Array.isArray(n.id)?n.id[0]:n.id,{data:g,isLoading:h}=(0,d.jA)(null!=x?x:""),p=(0,ei.Z)(null==g?void 0:g.connection_type),{testConnection:f,isLoading:j,testData:y}=(0,u.Z)(g),{onOpen:_,isOpen:b,onClose:v}=(0,a.qY0)(),{overview:C,instructions:S}=(0,m.ZP)(null==g?void 0:g.connection_type),k=(0,o.useRouter)();g&&!m.jq.includes(g.connection_type)&&k.push(r.KH);let w=[{label:"Connection",content:(0,i.jsxs)(a.xuv,{maxW:"720px",children:[(0,i.jsxs)(a.kCb,{borderRadius:"md",outline:"1px solid",outlineColor:"gray.100",align:"center",p:3,children:[(0,i.jsx)(a.kCb,{flexDirection:"column",children:(0,i.jsx)(eo.Z,{testData:y})}),(0,i.jsx)(a.LZC,{}),(0,i.jsxs)("div",{className:"flex gap-4",children:[(0,i.jsx)(a.wpx,{onClick:f,loading:j,"data-testid":"test-connection-btn",children:"Test connection"}),(0,i.jsx)(a.wpx,{onClick:_,"data-testid":"manage-btn",children:"Manage"})]})]}),(0,i.jsx)(ea,{isOpen:b,onClose:v,connection:g}),C,S]})},{label:"Data discovery",content:(0,i.jsx)(et,{integration:g,integrationOption:p})}];return(0,i.jsx)(l.Z,{title:"Integrations",children:(0,i.jsxs)(c.Z,{heading:"Integrations",breadcrumbItems:[{title:"All integrations",href:r.KH},{title:null!==(t=null!==(e=null==g?void 0:g.name)&&void 0!==e?e:null==g?void 0:g.key)&&void 0!==t?t:""}],children:[(0,i.jsx)(es.Z,{integration:g,showDeleteButton:!0}),h?(0,i.jsx)(a.$jN,{}):!!g&&(0,i.jsx)(s.Z,{data:w,isLazy:!0})]})})}}},function(e){e.O(0,[8033,2780,2858,2866,9278,9255,4481,5834,5973,2888,9774,179],function(){return e(e.s=50697)}),_N_E=e.O()}]);
@@ -1 +1 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9650],{6554:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/privacy-requests/[id]",function(){return n(93299)}])},77213:function(e,t,n){"use strict";n.d(t,{Z:function(){return h}});var i=n(24246),s=n(56351),l=n(88038),r=n.n(l),a=n(86677);n(27378);var o=n(25980),c=n(90867),d=n(77830),u=()=>{let e=(0,a.useRouter)();return(0,i.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,i.jsxs)(s.xuv,{children:[(0,i.jsxs)(s.Kqy,{direction:{base:"column",sm:"row"},justifyContent:"space-between",children:[(0,i.jsx)(s.xvT,{fontWeight:"semibold",children:"Configure your storage and messaging provider"}),(0,i.jsx)(s.wpx,{onClick:()=>{e.push(d.fz)},children:"Configure"})]}),(0,i.jsxs)(s.xvT,{children:["Before Fides can process your privacy requests we need two simple steps to configure your storage and email client."," "]})]})})},h=e=>{let{children:t,title:n,padded:l=!0,mainProps:d}=e,h=(0,o.hz)(),x=(0,a.useRouter)(),p="/privacy-requests"===x.pathname||"/datastore-connection"===x.pathname,g=!(h.flags.privacyRequestsConfiguration&&p),{data:j}=(0,c.JE)(void 0,{skip:g}),{data:m}=(0,c.PW)(void 0,{skip:g}),f=h.flags.privacyRequestsConfiguration&&(!j||!m)&&p;return(0,i.jsxs)(s.kCb,{"data-testid":n,direction:"column",h:"100vh",children:[(0,i.jsxs)(r(),{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)(s.kCb,{as:"main",direction:"column",py:l?6:0,px:l?10:0,h:l?"calc(100% - 48px)":"full",flex:1,minWidth:0,overflow:"auto",...d,children:[f?(0,i.jsx)(u,{}):null,t]})]})}},812:function(e,t,n){"use strict";n.d(t,{D4:function(){return l.D4},MM:function(){return h},Ot:function(){return c},c6:function(){return s},cj:function(){return p},e$:function(){return a},fn:function(){return o},iC:function(){return x},nU:function(){return u},tB:function(){return d}});var i,s,l=n(19043);let r="An unexpected error occurred. Please try again.",a=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:r;if((0,l.Bw)(e)){if((0,l.hE)(e.data))return e.data.detail;if((0,l.cz)(e.data)){var n;let t=null===(n=e.data.detail)||void 0===n?void 0:n[0];return"".concat(null==t?void 0:t.msg,": ").concat(null==t?void 0:t.loc)}if(409===e.status&&(0,l.Dy)(e.data)||404===e.status&&(0,l.XD)(e.data))return"".concat(e.data.detail.error," (").concat(e.data.detail.fides_key,")")}return t};function o(e){return"object"==typeof e&&null!=e&&"status"in e}function c(e){return"object"==typeof e&&null!=e&&"data"in e&&"string"==typeof e.data.detail}function d(e){return"object"==typeof e&&null!=e&&"data"in e&&Array.isArray(e.data.detail)}let u=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{status:500,message:r};if((0,l.oK)(e))return{status:e.originalStatus,message:e.data};if((0,l.Bw)(e)){let{status:n}=e;return{status:n,message:a(e,t.message)}}return t},h=e=>Object.entries(e).map(e=>({value:e[1],label:e[1]}));(i=s||(s={})).GVL="gvl",i.AC="gacp",i.COMPASS="compass";let x={gvl:{label:"GVL",fullName:"Global Vendor List"},gacp:{label:"AC",fullName:"Google Additional Consent List"},compass:{label:"",fullName:""}},p=e=>{let t=e.split(".")[0];return"gacp"===t?"gacp":"gvl"===t?"gvl":"compass"}},93299:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return ea}});var i,s,l=n(24246),r=n(56351),a=n(86677),o=n(77213),c=n(77830),d=n(58754),u=n(99716),h=n(27378),x=n(21702);(i=s||(s={})).IN_PROCESSING="in_processing",i.PENDING="pending",i.COMPLETE="complete",i.ERROR="error",i.PAUSED="paused",i.RETRYING="retrying",i.SKIPPED="skipped";var p=n(88340);let g=e=>{switch(e){case s.SKIPPED:return"warning";case s.ERROR:default:return"error"}};var j=e=>{let{errorMessage:t,status:n=s.ERROR}=e;return(0,l.jsxs)(r.xuv,{height:"100%",id:"outer",children:[(0,l.jsxs)(r.kCb,{alignItems:"center",paddingBottom:"8px",children:[(0,l.jsx)(r.xvT,{size:"sm",color:"gray.700",fontWeight:"medium",marginRight:"8px",lineHeight:"20px",children:"Status"}),(0,l.jsx)(r.j8w,{color:g(n),children:n}),(0,l.jsx)(r.xuv,{padding:"0px",marginBottom:"3px",children:(0,l.jsx)(p.Z,{copyText:t})})]}),(0,l.jsx)(r.izJ,{}),(0,l.jsx)(r.xuv,{id:"errorWrapper",overflow:"auto",height:"100%",children:(0,l.jsx)(r.xvT,{children:t})})]})},m=n(16394),f=n(3124),v=n.n(f);let y=e=>{switch(e){case x.Us.ACCESS:return"Data Retrieval";case x.Us.ERASURE:return"Data Deletion";case x.Us.CONSENT:return"Consent";case x.Us.UPDATE:return"Data Update";default:return e}};var b=e=>{let{eventLogs:t,openErrorPanel:n}=e,i=null==t?void 0:t.map(e=>(0,l.jsxs)(r.Tr,{_hover:{backgroundColor:e.status===s.ERROR||e.status===s.SKIPPED&&e.message?v().FIDESUI_NEUTRAL_50:"unset"},onClick:()=>{(e.status===s.ERROR||e.status===s.SKIPPED&&e.message)&&n(e.message,e.status)},style:{cursor:e.status===s.ERROR||e.status===s.SKIPPED&&e.message?"pointer":"unset"},children:[(0,l.jsx)(r.Td,{children:(0,l.jsx)(r.xvT,{color:"gray.600",fontSize:"xs",lineHeight:"4",fontWeight:"medium",children:(0,m.p6)(e.updated_at)})}),(0,l.jsx)(r.Td,{children:(0,l.jsx)(r.xvT,{color:"gray.600",fontSize:"xs",lineHeight:"4",fontWeight:"medium",children:y(e.action_type)})}),(0,l.jsx)(r.Td,{children:(0,l.jsx)(r.xvT,{color:"gray.600",fontSize:"xs",lineHeight:"4",fontWeight:"medium",children:e.status})}),(0,l.jsx)(r.Td,{children:(0,l.jsx)(r.xvT,{color:"gray.600",fontSize:"xs",lineHeight:"4",fontWeight:"medium",children:e.collection_name})})]},e.updated_at));return(0,l.jsx)(r.xuv,{width:"100%",paddingTop:"0px",height:"100%",children:(0,l.jsx)(r.xJi,{id:"tableContainer",height:"100%",style:{overflowY:"auto"},children:(0,l.jsxs)(r.iA_,{size:"sm",id:"table",position:"relative",children:[(0,l.jsx)(r.hrZ,{id:"tableHeader",position:"sticky",top:"0px",backgroundColor:"white",children:(0,l.jsxs)(r.Tr,{children:[(0,l.jsx)(r.Th,{children:(0,l.jsx)(r.xvT,{color:"black",fontSize:"xs",lineHeight:"4",fontWeight:"medium",children:"Time"})}),(0,l.jsx)(r.Th,{children:(0,l.jsx)(r.xvT,{color:"black",fontSize:"xs",lineHeight:"4",fontWeight:"medium",children:"Action Type"})}),(0,l.jsx)(r.Th,{children:(0,l.jsx)(r.xvT,{color:"black",fontSize:"xs",lineHeight:"4",fontWeight:"medium",children:"Status"})}),(0,l.jsx)(r.Th,{children:(0,l.jsx)(r.xvT,{color:"black",fontSize:"xs",lineHeight:"4",fontWeight:"medium",children:"Collection"})})]})}),(0,l.jsx)(r.p3B,{id:"tableBody",children:i})]})})})},R=e=>{let{isOpen:t,onClose:n,currentLogs:i,isViewingError:a,errorMessage:o,currentStatus:c=s.ERROR,onCloseErrorPanel:d,onOpenErrorPanel:u}=e;return(0,l.jsxs)(r.dys,{isOpen:t,placement:"right",onClose:n,size:"full",autoFocus:!1,children:[(0,l.jsx)(r.P1B,{}),(0,l.jsxs)(r.scA,{style:{width:"50%"},children:[(0,l.jsx)(r.OXI,{style:{paddingBottom:"0px"},children:(0,l.jsxs)(r.kCb,{justifyContent:"space-between",alignItems:"center",height:"40px",children:[(0,l.jsxs)(r.kCb,{alignItems:"center",children:[a&&(0,l.jsx)(r.wpx,{icon:(0,l.jsx)(r.Rpv,{}),"aria-label":"Close error logs",size:"small",onClick:d}),(0,l.jsx)(r.xvT,{color:"gray.900",fontSize:"md",lineHeight:"6",fontWeight:"medium",ml:1,children:a?"Event detail":"Event log"})]}),(0,l.jsx)(r.wpx,{icon:(0,l.jsx)(r.LGN,{width:"17px"}),"aria-label":"Stop viewing error message",size:"small",onClick:n})]})}),(0,l.jsxs)(r.Ng0,{id:"drawerBody",overflow:"hidden",children:[i&&!a?(0,l.jsx)(b,{eventLogs:i,openErrorPanel:u}):null,a?(0,l.jsx)(j,{errorMessage:o,status:c}):null]})]})]})};let w=(e,t)=>{if(0===e.length)return!1;let n=Array.from(e).sort((e,t)=>new Date(t.updated_at).getTime()-new Date(e.updated_at).getTime());if(!n[0].collection_name)return n[0].status===t;let i={};return n.forEach(e=>{e.collection_name&&!i[e.collection_name]&&(i[e.collection_name]=e)}),Object.values(i).some(e=>e.status===t)},C=e=>w(e,s.ERROR),_=e=>w(e,s.SKIPPED),S=e=>C(e)?(0,l.jsx)(r.f9v,{}):_(e)?(0,l.jsx)(r.XXw,{}):(0,l.jsx)(r.StI,{});var k=e=>{let{entryKey:t,logs:n,isLast:i,onViewLog:s}=e;return(0,l.jsxs)(r.xuv,{children:[(0,l.jsxs)(r.kCb,{alignItems:"center",height:23,position:"relative",children:[(0,l.jsx)(r.xuv,{zIndex:1,children:S(n)}),!i&&(0,l.jsx)(r.xuv,{width:"2px",height:"63px",backgroundColor:"gray.700",position:"absolute",top:"16px",left:"6px",zIndex:0}),(0,l.jsx)(r.xvT,{color:"gray.600",fontWeight:"500",fontSize:"sm",ml:2,children:t})]}),(0,l.jsx)(r.xvT,{cursor:"pointer",color:"link.900",fontWeight:"500",fontSize:"sm",ml:6,mb:7,onClick:()=>s(),children:"View log"})]})},E=e=>{let{subjectRequest:t}=e,{isOpen:n,onOpen:i,onClose:a}=(0,r.qY0)(),[o,c]=(0,h.useState)([]),[d,u]=(0,h.useState)(""),[x,p]=(0,h.useState)(!1),[g,j]=(0,h.useState)(""),[m,f]=(0,h.useState)(s.ERROR),{results:v}=t,y=v?Object.keys(v):[];(0,h.useEffect)(()=>{d&&v&&v[d]&&c(v[d])},[v,d]);let b=()=>{p(!1)},w=(e,t)=>{u(e),c(t),i()};return(0,l.jsxs)(r.xuv,{width:"100%",children:[v&&y.map((e,t)=>(0,l.jsx)(k,{entryKey:e,logs:v[e],isLast:t===y.length-1,onViewLog:()=>w(e,v[e])},e)),(0,l.jsx)(R,{isOpen:n,onClose:()=>{x&&b(),u(""),a()},currentLogs:o,isViewingError:x,errorMessage:g,currentStatus:m,onOpenErrorPanel:(e,t)=>{j(e),t&&f(t),p(!0)},onCloseErrorPanel:b})]})},T=n(14047),q=n(14207),A=n(90867),P=n(16134);let N=e=>Array.from(new Set(e.filter(e=>Object.values(x.Us).includes(e.action_type)).map(e=>e.action_type)));var I=e=>{let{rules:t}=e,n=N(t).map(e=>(0,m.kC)(e)).map(e=>e);return(0,l.jsx)(r.AntTypography.Text,{children:n.join(" - ")})},O=n(34090),z=n(59389),D=e=>{let{connectorName:t,data:n,isSubmitting:i=!1,onSaveClick:s}=e,{isOpen:a,onOpen:o,onClose:c}=(0,r.qY0)(),d=(0,h.useRef)(null),u=async(e,t)=>{s({connection_key:n.connection_key,privacy_request_id:n.privacy_request_id,body:{...e}}),c()};return(0,l.jsxs)(l.Fragment,{children:[(null==n?void 0:n.checked)&&(0,l.jsx)(r.wpx,{onClick:o,size:"small",children:"Review"}),!(null==n?void 0:n.checked)&&(0,l.jsx)(r.wpx,{onClick:o,size:"small",type:"primary",children:"Begin manual input"}),(0,l.jsx)(O.J9,{enableReinitialize:!0,initialValues:{...n.fields},onSubmit:u,validateOnBlur:!1,validateOnChange:!1,validationSchema:z.Ry().shape({}),children:e=>(0,l.jsxs)(r.dys,{isOpen:a,placement:"right",initialFocusRef:d,onClose:c,size:"lg",children:[(0,l.jsx)(r.P1B,{}),(0,l.jsxs)(r.scA,{children:[(0,l.jsx)(r.cCv,{}),(0,l.jsxs)(r.OXI,{color:"gray.900",children:[(0,l.jsx)(r.xvT,{fontSize:"xl",mb:8,children:t}),(0,l.jsx)(r.izJ,{}),(0,l.jsx)(r.xvT,{fontSize:"md",mt:"4",children:"Manual access"}),(0,l.jsx)(r.xuv,{mt:"8px",children:(0,l.jsx)(r.xvT,{color:"gray.700",fontSize:"sm",fontWeight:"normal",children:"Please complete the following PII fields that have been collected for the selected subject."})})]}),(0,l.jsx)(r.Ng0,{children:(0,l.jsx)(O.l0,{id:"manual-detail-form",noValidate:!0,children:(0,l.jsx)(r.gCW,{align:"stretch",gap:"16px",children:Object.entries(n.fields).map((e,t)=>{let[n]=e;return(0,l.jsx)(r.Ugi,{children:(0,l.jsx)(O.gN,{id:n,name:n,children:e=>{let{field:i}=e;return(0,l.jsxs)(r.NIc,{alignItems:"baseline",display:"inline-flex",children:[(0,l.jsx)(r.lXp,{color:"gray.900",fontSize:"14px",fontWeight:"semibold",htmlFor:n,w:"50%",children:n}),(0,l.jsx)(r.IIB,{...i,autoComplete:"off",color:"gray.700",placeholder:"Please enter ".concat(n),ref:0===t?d:void 0,size:"sm"})]})}})},n)})})})}),(0,l.jsx)(r.zeN,{justifyContent:"flex-start",children:(0,l.jsxs)("div",{className:"flex gap-2",children:[(0,l.jsx)(r.wpx,{onClick:c,children:"Cancel"}),(0,l.jsx)(r.wpx,{form:"manual-detail-form",loading:i,htmlType:"submit",children:"Save"})]})})]})]})})]})},U=e=>{let{connectorName:t,data:n,isSubmitting:i=!1,onSaveClick:s}=e,{isOpen:a,onOpen:o,onClose:c}=(0,r.qY0)(),d=(0,h.useRef)(null),u=async(e,t)=>{s({connection_key:n.connection_key,privacy_request_id:n.privacy_request_id,body:{...e}}),c()};return(0,l.jsxs)(l.Fragment,{children:[(null==n?void 0:n.checked)&&(0,l.jsx)(r.wpx,{onClick:o,size:"small",children:"Review"}),!(null==n?void 0:n.checked)&&(0,l.jsx)(r.wpx,{onClick:o,size:"small",type:"primary",children:"Begin manual input"}),(0,l.jsx)(O.J9,{enableReinitialize:!0,initialValues:{...n.fields},onSubmit:u,validateOnBlur:!1,validateOnChange:!1,validationSchema:z.Ry().shape({}),children:e=>(0,l.jsxs)(r.dys,{isOpen:a,placement:"right",initialFocusRef:d,onClose:c,size:"lg",children:[(0,l.jsx)(r.P1B,{}),(0,l.jsxs)(r.scA,{children:[(0,l.jsx)(r.cCv,{}),(0,l.jsxs)(r.OXI,{color:"gray.900",children:[(0,l.jsx)(r.xvT,{fontSize:"xl",mb:8,children:t}),(0,l.jsx)(r.izJ,{}),(0,l.jsx)(r.xvT,{fontSize:"md",mt:"4",children:"Manual erasure"}),(0,l.jsx)(r.xuv,{mt:"8px",children:(0,l.jsx)(r.xvT,{color:"gray.700",fontSize:"sm",fontWeight:"normal",children:"Please delete the following PII fields associated with the selected subject if they are available. Once deleted, check the box to confirm the deletion."})})]}),(0,l.jsx)(r.Ng0,{children:(0,l.jsx)(O.l0,{id:"manual-detail-form",noValidate:!0,children:(0,l.jsx)(r.gCW,{align:"stretch",gap:"16px",children:Object.entries(n.fields).map(e=>{let[t]=e;return(0,l.jsx)(r.Ugi,{children:(0,l.jsx)(O.gN,{id:t,name:t,children:e=>{let{field:n}=e;return(0,l.jsxs)(r.NIc,{alignItems:"baseline",display:"inline-flex",children:[(0,l.jsx)(r.lXp,{color:"gray.900",fontSize:"14px",fontWeight:"semibold",htmlFor:t,w:"50%",children:t}),(0,l.jsx)(r.XZJ,{...n,isChecked:!!n.value,onChange:n.onChange,name:t,id:t})]})}})},t)})})})}),(0,l.jsx)(r.zeN,{justifyContent:"flex-start",children:(0,l.jsxs)("div",{className:"flex gap-2",children:[(0,l.jsx)(r.wpx,{onClick:c,children:"Cancel"}),(0,l.jsx)(r.wpx,{form:"manual-detail-form",loading:i,htmlType:"submit",children:"Save"})]})})]})]})})]})};let M=(e,t,n)=>e.includes(x.Us.ACCESS)?{ProcessingDetailComponent:D,uploadMutation:t,getUploadedWebhookDataEndpoint:A.$I.endpoints.getUploadedManualAccessWebhookData}:e.includes(x.Us.ERASURE)?{ProcessingDetailComponent:U,uploadMutation:n,getUploadedWebhookDataEndpoint:A.$I.endpoints.getUploadedManualErasureWebhookData}:null;var W=e=>{let{subjectRequest:t,onComplete:n}=e,i=(0,P.T)(),{errorAlert:s,successAlert:a}=(0,T.V)(),{handleError:o}=(0,T.H)(),[c,d]=(0,h.useState)([]),[u,p]=(0,h.useState)(!1),[g,j]=(0,h.useState)(!1),{data:m,isFetching:f,isLoading:v,isSuccess:y}=(0,q.W6)(),[b]=(0,A.w3)(),R=N(t.policy.rules),[w]=(0,A.nL)(),[C]=(0,A.UR)(),{ProcessingDetailComponent:_,uploadMutation:S,getUploadedWebhookDataEndpoint:k}=M(R,w,C),E=async()=>{try{p(!0),await b(t.id).unwrap(),a("Manual request has been received. Request now processing."),n()}catch(e){o(e)}finally{p(!1)}},I=async e=>{try{j(!0),await S(e).unwrap();let t={connection_key:e.connection_key,fields:{}};Object.entries(e.body).forEach(e=>{let[n,i]=e;t.fields[n]=i||""});let n=c.map(e=>e.connection_key===t.connection_key?{...e,checked:!0,fields:{...t.fields}}:e);d(n),a("Manual input successfully saved!")}catch(e){o(e)}finally{j(!1)}};return((0,h.useEffect)(()=>(y&&m.length>0&&0===c.length&&(()=>{if(c.length>0)return;let e=[],n=null==m?void 0:m.map(e=>e.connection_config.key);null==n||n.every(n=>e.push(i(k.initiate({connection_key:n,privacy_request_id:t.id})))),Promise.allSettled(e).then(e=>{let t=[];e.forEach((e,n)=>{if("fulfilled"===e.status&&e.value.isSuccess&&e.value.data){let n={checked:e.value.data.checked,fields:{},connection_key:e.value.originalArgs.connection_key,privacy_request_id:e.value.originalArgs.privacy_request_id};Object.entries(e.value.data.fields).forEach(e=>{let[t,i]=e;n.fields[t]=i||""}),t.push(n)}else s("An error occurred while loading manual input data for ".concat(m[n].connection_config.name))}),d(t)})})(),()=>{}),[m,c.length,i,s,y,t.id,k]),R.includes(x.Us.ACCESS)||R.includes(x.Us.ERASURE))?(0,l.jsxs)(r.gCW,{align:"stretch",spacing:8,children:[(0,l.jsx)(r.xuv,{children:(0,l.jsx)(r.xvT,{color:"gray.700",fontSize:"sm",children:"The following table details the integrations that require manual input from you."})}),(0,l.jsxs)(r.xuv,{children:[(f||v)&&(0,l.jsx)(r.M5Y,{children:(0,l.jsx)(r.$jN,{})}),y&&m?(0,l.jsx)(r.xJi,{children:(0,l.jsxs)(r.iA_,{size:"sm",variant:"unstyled",children:[(0,l.jsx)(r.hrZ,{children:(0,l.jsxs)(r.Tr,{children:[(0,l.jsx)(r.Th,{fontSize:"sm",fontWeight:"semibold",pl:"0",textTransform:"none",children:"Integration Identifier"}),(0,l.jsx)(r.Th,{})]})}),(0,l.jsxs)(r.p3B,{children:[m.length>0&&m.map(e=>(0,l.jsxs)(r.Tr,{display:"block",children:[(0,l.jsx)(r.Td,{pl:"0",children:e.connection_config.key}),(0,l.jsx)(r.Td,{children:c.length>0?(0,l.jsx)(_,{connectorName:e.connection_config.name,data:c.find(t=>t.connection_key===e.connection_config.key),isSubmitting:g,onSaveClick:I}):null})]},e.id)),0===m.length&&(0,l.jsx)(r.Tr,{children:(0,l.jsx)(r.Td,{colSpan:3,pl:"0",children:(0,l.jsx)(r.M5Y,{children:(0,l.jsx)(r.xvT,{children:"You don‘t have any Manual Process connections set up yet."})})})})]}),c.length>0&&c.every(e=>e.checked)?(0,l.jsx)(r.$RU,{children:(0,l.jsx)(r.Tr,{children:(0,l.jsx)(r.Th,{pl:"0px",children:(0,l.jsx)(r.wpx,{type:"primary",loading:u,onClick:E,className:"mt-2",children:"Complete DSR"})})})}):null]})}):null]})]}):null},L=n(8557),F=e=>{let{daysLeft:t,includeText:n,status:i}=e;if(!t||i===L.q.COMPLETE||i===L.q.CANCELED||i===L.q.DENIED||i===L.q.IDENTITY_UNVERIFIED)return(0,l.jsx)("span",{children:"-"});let s="";switch(!0){case t>=10:s="success";break;case t<10&&t>4:s="warning";break;case t<5:s="error"}return(0,l.jsx)(r.j8w,{color:s,children:n?"".concat(t," days left"):t})},B=n(25980);let V={approved:{color:"success",label:"Approved"},complete:{color:"success",label:"Completed"},awaiting_email_send:{color:"marble",label:"Awaiting Email Send"},denied:{color:"warning",label:"Denied"},canceled:{color:"marble",label:"Canceled"},error:{color:"error",label:"Error"},in_processing:{color:"caution",label:"In Progress"},paused:{color:"marble",label:"Paused"},pending:{color:"info",label:"New"},identity_unverified:{color:"marble",label:"Unverified"},requires_input:{color:"alert",label:"Requires Input"}};var Y=e=>{let{status:t}=e;return(0,l.jsx)(r.j8w,{color:V[t].color,className:"justify-center","data-testid":"request-status-badge",children:V[t].label})},X=n(15709),Z=n.n(X),H=e=>{let{label:t,children:n}=e;return(0,l.jsxs)("div",{className:"flex items-center",children:[(0,l.jsx)("div",{className:"shrink-0 grow-0 basis-1/2 pr-2 ".concat(Z().label),children:(0,l.jsxs)(r.AntTypography.Text,{children:[t,":"]})}),(0,l.jsx)("div",{className:"min-w-0 shrink grow ".concat(Z().value),"data-testid":"request-detail-value-".concat(t),children:n})]})},G=e=>{let{subjectRequest:t}=e,{custom_privacy_request_fields:n}=t;return(0,l.jsx)("div",{className:"flex flex-col gap-2",children:n&&Object.keys(n).length>0&&Object.entries(n).filter(e=>{let[,t]=e;return t.value}).map(e=>{let[t,n]=e;return(0,l.jsx)(H,{label:n.label,children:(0,l.jsx)(r.AntTypography.Text,{children:Array.isArray(n.value)?n.value.join(", "):n.value})},t)})})},J=e=>{let{subjectRequest:t}=e,{plus:n}=(0,B.hz)(),{id:i,status:s,policy:a,identity:o,identity_verified_at:c}=t;return(0,l.jsxs)("div",{children:[(0,l.jsx)("div",{className:"mb-6",children:(0,l.jsx)(r.AntTypography.Title,{level:2,children:"Request details"})}),(0,l.jsxs)(r.jqI,{vertical:!0,gap:12,className:"mb-6",children:[(0,l.jsx)(H,{label:"Status",children:(0,l.jsx)(Y,{status:s})}),(0,l.jsx)(H,{label:"Time remaining",children:(0,l.jsx)(F,{daysLeft:t.days_left,includeText:!0,status:t.status})}),(0,l.jsx)(H,{label:"Request type",children:(0,l.jsx)(I,{rules:a.rules})}),(0,l.jsx)(H,{label:"Source",children:n&&(0,l.jsx)(r.AntTypography.Text,{children:t.source||"-"})}),Object.entries(o).filter(e=>{let[,{value:t}]=e;return null!==t}).map(e=>{let[t,{value:n="",label:i}]=e,s="".concat(n," ").concat(c?"":"(Unverified)");return(0,l.jsx)(H,{label:"Subject ".concat(i.toLocaleLowerCase()),children:(0,l.jsx)(r.esZ,{title:s,trigger:"click",children:(0,l.jsx)(r.AntTypography.Text,{ellipsis:!0,children:s})})},t)}),(0,l.jsx)(G,{subjectRequest:t})]}),(0,l.jsxs)(r.PPS,{layout:"vertical",children:[(0,l.jsx)(r.PPS.Item,{label:"Request ID:",className:"mb-4",children:(0,l.jsxs)(r.jqI,{gap:1,children:[(0,l.jsx)(r.uFc,{readOnly:!0,value:i,"data-testid":"request-detail-value-id"}),(0,l.jsx)(p.Z,{copyText:i,size:"small"})]})}),(0,l.jsx)(r.PPS.Item,{label:"Policy key:",className:"mb-4",children:(0,l.jsx)(r.uFc,{readOnly:!0,value:t.policy.key,"data-testid":"request-detail-value-policy"})})]})]})},K=e=>{var t;let{data:n}=e,i=(0,h.useMemo)(()=>({id:n.id,verbose:!0}),[n.id]),{data:s}=(0,u.QA)(i,{pollingInterval:n.status===x.q2.APPROVED||n.status===x.q2.IN_PROCESSING?2e3:0,skip:!n.id}),a=null!==(t=null==s?void 0:s.items[0])&&void 0!==t?t:n,o=a.status===x.q2.REQUIRES_INPUT,[c,d]=(0,h.useState)(o?"manual-steps":"activity"),p=(0,h.useMemo)(()=>[{key:"activity",label:"Activity",children:(0,l.jsx)(E,{subjectRequest:a})},{key:"manual-steps",label:"Manual steps",children:(0,l.jsx)(W,{subjectRequest:a,onComplete:()=>d("activity")}),disabled:!o}],[o,a]);return(0,l.jsxs)("div",{className:"flex gap-8",children:[(0,l.jsx)("div",{className:"flex-1",children:(0,l.jsx)(r.A5g,{items:p,activeKey:c,onChange:d})}),(0,l.jsx)("div",{className:"w-[432px]","data-testid":"privacy-request-details",children:(0,l.jsx)(J,{subjectRequest:a})})]})},$=n(57526),Q=n(66548),ee=n(45489),et=e=>{let{privacyRequest:t,action:n}=e,{handleApproveRequest:i,handleDenyRequest:s}=(0,ee.Z)({subjectRequest:t}),l=t.status===x.q2.PENDING,a=(0,r.qY0)(),o=async e=>{let{reason:t}=e,l=r.sYd.loading({content:"approve"===n?"Approving request...":"Denying request..."});"deny"===n&&await s(t),"approve"===n&&await i(),l()};return{showAction:l,closeModal:a.onClose,performAction:o,openConfirmationModal:a.onOpen,isModalOpen:a.isOpen}},en=n(812),ei=n(19904),es=e=>{var t,n,i;let{privacyRequest:s}=e,l=null===(n=(0,B.hz)())||void 0===n?void 0:null===(t=n.flags)||void 0===t?void 0:t.downloadAccessRequestResults,r=s.status===x.q2.COMPLETE,a=N(s.policy.rules).includes(x.Us.ACCESS),o=(0,ei.Tg)([x.Sh.PRIVACY_REQUEST_ACCESS_RESULTS_READ]),{data:c,isLoading:d,isError:u,error:h}=(0,A.br)({privacy_request_id:s.id}),p=null!==(i=null==c?void 0:c.access_result_urls[0])&&void 0!==i?i:"",g=!!p&&"your local fides_uploads folder"!==p,j=null;return u?j=(0,en.e$)(h,"Unable to resolve download URL"):g||(j="Requests stored locally cannot be downloaded"),{showDownloadResults:l&&o&&a&&r,downloadResults:()=>{let e=document.createElement("a");e.href=p,e.target="_blank",e.rel="noopener noreferrer",e.click(),e.remove()},infoTooltip:j,isLoading:d,isDisabled:!g}},el=e=>{let{privacyRequest:t}=e,{errorAlert:n,successAlert:i}=(0,T.V)(),s=t.status===x.q2.ERROR,[l]=(0,A.Fq)();return{reprocessPrivacyRequest:async()=>{if(!t)return;let e=r.sYd.loading("Reprocessing privacy request...",0),s=await l(t);"error"in s?n((0,en.e$)(s.error),"DSR automation has failed for this privacy request due to the following:",{duration:null}):i("Privacy request is now being reprocessed."),e()},showReprocess:s}},er=e=>{let{privacyRequest:t}=e,{showDownloadResults:n,downloadResults:i,infoTooltip:s,isDisabled:a}=es({privacyRequest:t}),{isModalOpen:o,closeModal:c,performAction:d,openConfirmationModal:u,showAction:x}=et({privacyRequest:t,action:"approve"}),{isModalOpen:p,closeModal:g,performAction:j,openConfirmationModal:m,showAction:f}=et({privacyRequest:t,action:"deny"}),{reprocessPrivacyRequest:v,showReprocess:y}=el({privacyRequest:t}),b=(0,h.useMemo)(()=>{let e=[];return e.push({key:"approve",label:(0,l.jsx)("span",{"data-testid":"privacy-request-approve-btn",children:"Approve"}),onClick:u,disabled:!x}),e.push({key:"deny",label:(0,l.jsx)("span",{"data-testid":"privacy-request-deny-btn",children:"Deny"}),onClick:m,disabled:!f}),e.push({key:"reprocess",label:(0,l.jsx)("span",{"data-testid":"privacy-request-action-reprocess",children:"Reprocess"}),onClick:v,disabled:!y}),n&&e.push({key:"download",label:(0,l.jsx)(r.esZ,{title:a?s:null,placement:"bottom",children:(0,l.jsx)("span",{"data-testid":"download-results-btn",children:"Download request results"})}),onClick:i,disabled:a}),e},[n,i,s,a,x,f,u,m,y,v]);return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(r.S0p,{menu:{items:b},trigger:["click"],overlayStyle:{minWidth:"160px"},children:(0,l.jsx)(r.wpx,{icon:(0,l.jsx)(r.PJP.pO,{}),"data-testid":"privacy-request-actions-dropdown-btn",iconPosition:"end",type:"primary",disabled:!b.length,size:"large",children:"Actions"})}),(0,l.jsx)($.Z,{isOpen:o,isLoading:!1,onClose:c,onApproveRequest:()=>d({reason:""}),subjectRequest:t}),(0,l.jsx)(Q.Z,{isOpen:p,onClose:g,onDenyRequest:e=>j({reason:e})})]})},ea=()=>{let e=(0,a.useRouter)().query.id,{data:t,isLoading:n}=(0,u.QA)({id:e,verbose:!0},{skip:!e}),i=(null==t?void 0:t.items[0])||null;return(0,l.jsxs)(o.Z,{title:"Privacy Request - ".concat(e),children:[(0,l.jsx)(d.Z,{heading:"Privacy Requests",breadcrumbItems:[{title:"All requests",href:c.Jw},{title:"Request details"}],rightContent:!!i&&(0,l.jsx)(er,{privacyRequest:i})}),n&&(0,l.jsx)(r.M5Y,{children:(0,l.jsx)(r.$jN,{})}),!n&&!i&&(0,l.jsx)(r.xvT,{children:"404 no privacy request found"}),!n&&i&&(0,l.jsx)(K,{data:i})]})}},19043:function(e,t,n){"use strict";n.d(t,{Bw:function(){return r},D4:function(){return s},Dy:function(){return o},XD:function(){return c},cz:function(){return d},hE:function(){return a},oK:function(){return l}});var i=n(76649);let s=e=>"error"in e,l=e=>(0,i.Ln)({status:"string"},e)&&"PARSING_ERROR"===e.status,r=e=>(0,i.Ln)({status:"number",data:{}},e),a=e=>(0,i.Ln)({detail:"string"},e),o=e=>(0,i.Ln)({detail:{error:"string",resource_type:"string",fides_key:"string"}},e),c=e=>(0,i.Ln)({detail:{error:"string",resource_type:"string",fides_key:"string"}},e),d=e=>(0,i.Ln)({detail:[{loc:["string","number"],msg:"string",type:"string"}]},e)},15709:function(e){e.exports={value:"RequestDetailsRow_value__WMXn3",label:"RequestDetailsRow_label__dn3CQ"}},76649:function(e,t,n){"use strict";n.d(t,{Ln:function(){return i}});let i=(e,t)=>l(e,t),s=Symbol("SOME"),l=(e,t)=>"string"==typeof e?e===typeof t:Array.isArray(e)?s in e?e.some(e=>l(e,t)):!!Array.isArray(t)&&(0===e.length||t.every(t=>e.some(e=>l(e,t)))):"object"==typeof t&&null!==t&&Object.entries(e).every(([e,n])=>l(n,t[e]));class r{static narrow(e){return new r(t=>i(e,t))}constructor(e){this.NF=void 0,this.NF=e}satisfied(e){return this.NF(e)}build(e){return e}and(e){let t=this.NF,n=e instanceof r?e.NF:e instanceof Function?e:t=>i(e,t);return new r(e=>t(e)&&n(e))}}new r(e=>!0)}},function(e){e.O(0,[8433,2888,9774,179],function(){return e(e.s=6554)}),_N_E=e.O()}]);
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9650],{6554:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/privacy-requests/[id]",function(){return n(93299)}])},77213:function(e,t,n){"use strict";n.d(t,{Z:function(){return h}});var i=n(24246),s=n(56351),l=n(88038),r=n.n(l),a=n(86677);n(27378);var o=n(25980),c=n(90867),d=n(77830),u=()=>{let e=(0,a.useRouter)();return(0,i.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,i.jsxs)(s.xuv,{children:[(0,i.jsxs)(s.Kqy,{direction:{base:"column",sm:"row"},justifyContent:"space-between",children:[(0,i.jsx)(s.xvT,{fontWeight:"semibold",children:"Configure your storage and messaging provider"}),(0,i.jsx)(s.wpx,{onClick:()=>{e.push(d.fz)},children:"Configure"})]}),(0,i.jsxs)(s.xvT,{children:["Before Fides can process your privacy requests we need two simple steps to configure your storage and email client."," "]})]})})},h=e=>{let{children:t,title:n,padded:l=!0,mainProps:d}=e,h=(0,o.hz)(),x=(0,a.useRouter)(),p="/privacy-requests"===x.pathname||"/datastore-connection"===x.pathname,g=!(h.flags.privacyRequestsConfiguration&&p),{data:j}=(0,c.JE)(void 0,{skip:g}),{data:m}=(0,c.PW)(void 0,{skip:g}),f=h.flags.privacyRequestsConfiguration&&(!j||!m)&&p;return(0,i.jsxs)(s.kCb,{"data-testid":n,direction:"column",h:"100vh",children:[(0,i.jsxs)(r(),{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)(s.kCb,{as:"main",direction:"column",py:l?6:0,px:l?10:0,h:l?"calc(100% - 48px)":"full",flex:1,minWidth:0,overflow:"auto",...d,children:[f?(0,i.jsx)(u,{}):null,t]})]})}},812:function(e,t,n){"use strict";n.d(t,{D4:function(){return l.D4},MM:function(){return h},Ot:function(){return c},c6:function(){return s},cj:function(){return p},e$:function(){return a},fn:function(){return o},iC:function(){return x},nU:function(){return u},tB:function(){return d}});var i,s,l=n(19043);let r="An unexpected error occurred. Please try again.",a=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:r;if((0,l.Bw)(e)){if((0,l.hE)(e.data))return e.data.detail;if((0,l.cz)(e.data)){var n;let t=null===(n=e.data.detail)||void 0===n?void 0:n[0];return"".concat(null==t?void 0:t.msg,": ").concat(null==t?void 0:t.loc)}if(409===e.status&&(0,l.Dy)(e.data)||404===e.status&&(0,l.XD)(e.data))return"".concat(e.data.detail.error," (").concat(e.data.detail.fides_key,")")}return t};function o(e){return"object"==typeof e&&null!=e&&"status"in e}function c(e){return"object"==typeof e&&null!=e&&"data"in e&&"string"==typeof e.data.detail}function d(e){return"object"==typeof e&&null!=e&&"data"in e&&Array.isArray(e.data.detail)}let u=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{status:500,message:r};if((0,l.oK)(e))return{status:e.originalStatus,message:e.data};if((0,l.Bw)(e)){let{status:n}=e;return{status:n,message:a(e,t.message)}}return t},h=e=>Object.entries(e).map(e=>({value:e[1],label:e[1]}));(i=s||(s={})).GVL="gvl",i.AC="gacp",i.COMPASS="compass";let x={gvl:{label:"GVL",fullName:"Global Vendor List"},gacp:{label:"AC",fullName:"Google Additional Consent List"},compass:{label:"",fullName:""}},p=e=>{let t=e.split(".")[0];return"gacp"===t?"gacp":"gvl"===t?"gvl":"compass"}},93299:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return ea}});var i,s,l=n(24246),r=n(56351),a=n(86677),o=n(77213),c=n(77830),d=n(58754),u=n(99716),h=n(27378),x=n(21702);(i=s||(s={})).IN_PROCESSING="in_processing",i.PENDING="pending",i.COMPLETE="complete",i.ERROR="error",i.PAUSED="paused",i.RETRYING="retrying",i.SKIPPED="skipped";var p=n(88340);let g=e=>{switch(e){case s.SKIPPED:return"warning";case s.ERROR:default:return"error"}};var j=e=>{let{errorMessage:t,status:n=s.ERROR}=e;return(0,l.jsxs)(r.xuv,{height:"100%",id:"outer",children:[(0,l.jsxs)(r.kCb,{alignItems:"center",paddingBottom:"8px",children:[(0,l.jsx)(r.xvT,{size:"sm",color:"gray.700",fontWeight:"medium",marginRight:"8px",lineHeight:"20px",children:"Status"}),(0,l.jsx)(r.j8w,{color:g(n),children:n}),(0,l.jsx)(r.xuv,{padding:"0px",marginBottom:"3px",children:(0,l.jsx)(p.Z,{copyText:t})})]}),(0,l.jsx)(r.izJ,{}),(0,l.jsx)(r.xuv,{id:"errorWrapper",overflow:"auto",height:"100%",children:(0,l.jsx)(r.xvT,{children:t})})]})},m=n(16394),f=n(3124),v=n.n(f);let y=e=>{switch(e){case x.Us.ACCESS:return"Data Retrieval";case x.Us.ERASURE:return"Data Deletion";case x.Us.CONSENT:return"Consent";case x.Us.UPDATE:return"Data Update";default:return e}};var b=e=>{let{eventLogs:t,openErrorPanel:n}=e,i=null==t?void 0:t.map(e=>(0,l.jsxs)(r.Tr,{_hover:{backgroundColor:e.status===s.ERROR||e.status===s.SKIPPED&&e.message?v().FIDESUI_NEUTRAL_50:"unset"},onClick:()=>{(e.status===s.ERROR||e.status===s.SKIPPED&&e.message)&&n(e.message,e.status)},style:{cursor:e.status===s.ERROR||e.status===s.SKIPPED&&e.message?"pointer":"unset"},children:[(0,l.jsx)(r.Td,{children:(0,l.jsx)(r.xvT,{color:"gray.600",fontSize:"xs",lineHeight:"4",fontWeight:"medium",children:(0,m.p6)(e.updated_at)})}),(0,l.jsx)(r.Td,{children:(0,l.jsx)(r.xvT,{color:"gray.600",fontSize:"xs",lineHeight:"4",fontWeight:"medium",children:y(e.action_type)})}),(0,l.jsx)(r.Td,{children:(0,l.jsx)(r.xvT,{color:"gray.600",fontSize:"xs",lineHeight:"4",fontWeight:"medium",children:e.status})}),(0,l.jsx)(r.Td,{children:(0,l.jsx)(r.xvT,{color:"gray.600",fontSize:"xs",lineHeight:"4",fontWeight:"medium",children:e.collection_name})})]},e.updated_at));return(0,l.jsx)(r.xuv,{width:"100%",paddingTop:"0px",height:"100%",children:(0,l.jsx)(r.xJi,{id:"tableContainer",height:"100%",style:{overflowY:"auto"},children:(0,l.jsxs)(r.iA_,{size:"sm",id:"table",position:"relative",children:[(0,l.jsx)(r.hrZ,{id:"tableHeader",position:"sticky",top:"0px",backgroundColor:"white",children:(0,l.jsxs)(r.Tr,{children:[(0,l.jsx)(r.Th,{children:(0,l.jsx)(r.xvT,{color:"black",fontSize:"xs",lineHeight:"4",fontWeight:"medium",children:"Time"})}),(0,l.jsx)(r.Th,{children:(0,l.jsx)(r.xvT,{color:"black",fontSize:"xs",lineHeight:"4",fontWeight:"medium",children:"Action Type"})}),(0,l.jsx)(r.Th,{children:(0,l.jsx)(r.xvT,{color:"black",fontSize:"xs",lineHeight:"4",fontWeight:"medium",children:"Status"})}),(0,l.jsx)(r.Th,{children:(0,l.jsx)(r.xvT,{color:"black",fontSize:"xs",lineHeight:"4",fontWeight:"medium",children:"Collection"})})]})}),(0,l.jsx)(r.p3B,{id:"tableBody",children:i})]})})})},R=e=>{let{isOpen:t,onClose:n,currentLogs:i,isViewingError:a,errorMessage:o,currentStatus:c=s.ERROR,onCloseErrorPanel:d,onOpenErrorPanel:u}=e;return(0,l.jsxs)(r.dys,{isOpen:t,placement:"right",onClose:n,size:"full",autoFocus:!1,children:[(0,l.jsx)(r.P1B,{}),(0,l.jsxs)(r.scA,{style:{width:"50%"},children:[(0,l.jsx)(r.OXI,{style:{paddingBottom:"0px"},children:(0,l.jsxs)(r.kCb,{justifyContent:"space-between",alignItems:"center",height:"40px",children:[(0,l.jsxs)(r.kCb,{alignItems:"center",children:[a&&(0,l.jsx)(r.wpx,{icon:(0,l.jsx)(r.Rpv,{}),"aria-label":"Close error logs",size:"small",onClick:d}),(0,l.jsx)(r.xvT,{color:"gray.900",fontSize:"md",lineHeight:"6",fontWeight:"medium",ml:1,children:a?"Event detail":"Event log"})]}),(0,l.jsx)(r.wpx,{icon:(0,l.jsx)(r.LGN,{width:"17px"}),"aria-label":"Stop viewing error message",size:"small",onClick:n})]})}),(0,l.jsxs)(r.Ng0,{id:"drawerBody",overflow:"hidden",children:[i&&!a?(0,l.jsx)(b,{eventLogs:i,openErrorPanel:u}):null,a?(0,l.jsx)(j,{errorMessage:o,status:c}):null]})]})]})};let w=(e,t)=>{if(0===e.length)return!1;let n=Array.from(e).sort((e,t)=>new Date(t.updated_at).getTime()-new Date(e.updated_at).getTime());if(!n[0].collection_name)return n[0].status===t;let i={};return n.forEach(e=>{e.collection_name&&!i[e.collection_name]&&(i[e.collection_name]=e)}),Object.values(i).some(e=>e.status===t)},C=e=>w(e,s.ERROR),_=e=>w(e,s.SKIPPED),S=e=>C(e)?(0,l.jsx)(r.f9v,{}):_(e)?(0,l.jsx)(r.XXw,{}):(0,l.jsx)(r.StI,{});var k=e=>{let{entryKey:t,logs:n,isLast:i,onViewLog:s}=e;return(0,l.jsxs)(r.xuv,{children:[(0,l.jsxs)(r.kCb,{alignItems:"center",height:23,position:"relative",children:[(0,l.jsx)(r.xuv,{zIndex:1,children:S(n)}),!i&&(0,l.jsx)(r.xuv,{width:"2px",height:"63px",backgroundColor:"gray.700",position:"absolute",top:"16px",left:"6px",zIndex:0}),(0,l.jsx)(r.xvT,{color:"gray.600",fontWeight:"500",fontSize:"sm",ml:2,children:t})]}),(0,l.jsx)(r.xvT,{cursor:"pointer",color:"link.900",fontWeight:"500",fontSize:"sm",ml:6,mb:7,onClick:()=>s(),children:"View log"})]})},E=e=>{let{subjectRequest:t}=e,{isOpen:n,onOpen:i,onClose:a}=(0,r.qY0)(),[o,c]=(0,h.useState)([]),[d,u]=(0,h.useState)(""),[x,p]=(0,h.useState)(!1),[g,j]=(0,h.useState)(""),[m,f]=(0,h.useState)(s.ERROR),{results:v}=t,y=v?Object.keys(v):[];(0,h.useEffect)(()=>{d&&v&&v[d]&&c(v[d])},[v,d]);let b=()=>{p(!1)},w=(e,t)=>{u(e),c(t),i()};return(0,l.jsxs)(r.xuv,{width:"100%",children:[v&&y.map((e,t)=>(0,l.jsx)(k,{entryKey:e,logs:v[e],isLast:t===y.length-1,onViewLog:()=>w(e,v[e])},e)),(0,l.jsx)(R,{isOpen:n,onClose:()=>{x&&b(),u(""),a()},currentLogs:o,isViewingError:x,errorMessage:g,currentStatus:m,onOpenErrorPanel:(e,t)=>{j(e),t&&f(t),p(!0)},onCloseErrorPanel:b})]})},T=n(14047),q=n(14207),A=n(90867),P=n(16134);let N=e=>Array.from(new Set(e.filter(e=>Object.values(x.Us).includes(e.action_type)).map(e=>e.action_type)));var I=e=>{let{rules:t}=e,n=N(t).map(e=>(0,m.kC)(e)).map(e=>e);return(0,l.jsx)(r.AntTypography.Text,{children:n.join(" - ")})},O=n(34090),z=n(59389),D=e=>{let{connectorName:t,data:n,isSubmitting:i=!1,onSaveClick:s}=e,{isOpen:a,onOpen:o,onClose:c}=(0,r.qY0)(),d=(0,h.useRef)(null),u=async(e,t)=>{s({connection_key:n.connection_key,privacy_request_id:n.privacy_request_id,body:{...e}}),c()};return(0,l.jsxs)(l.Fragment,{children:[(null==n?void 0:n.checked)&&(0,l.jsx)(r.wpx,{onClick:o,size:"small",children:"Review"}),!(null==n?void 0:n.checked)&&(0,l.jsx)(r.wpx,{onClick:o,size:"small",type:"primary",children:"Begin manual input"}),(0,l.jsx)(O.J9,{enableReinitialize:!0,initialValues:{...n.fields},onSubmit:u,validateOnBlur:!1,validateOnChange:!1,validationSchema:z.Ry().shape({}),children:e=>(0,l.jsxs)(r.dys,{isOpen:a,placement:"right",initialFocusRef:d,onClose:c,size:"lg",children:[(0,l.jsx)(r.P1B,{}),(0,l.jsxs)(r.scA,{children:[(0,l.jsx)(r.cCv,{}),(0,l.jsxs)(r.OXI,{color:"gray.900",children:[(0,l.jsx)(r.xvT,{fontSize:"xl",mb:8,children:t}),(0,l.jsx)(r.izJ,{}),(0,l.jsx)(r.xvT,{fontSize:"md",mt:"4",children:"Manual access"}),(0,l.jsx)(r.xuv,{mt:"8px",children:(0,l.jsx)(r.xvT,{color:"gray.700",fontSize:"sm",fontWeight:"normal",children:"Please complete the following PII fields that have been collected for the selected subject."})})]}),(0,l.jsx)(r.Ng0,{children:(0,l.jsx)(O.l0,{id:"manual-detail-form",noValidate:!0,children:(0,l.jsx)(r.gCW,{align:"stretch",gap:"16px",children:Object.entries(n.fields).map((e,t)=>{let[n]=e;return(0,l.jsx)(r.Ugi,{children:(0,l.jsx)(O.gN,{id:n,name:n,children:e=>{let{field:i}=e;return(0,l.jsxs)(r.NIc,{alignItems:"baseline",display:"inline-flex",children:[(0,l.jsx)(r.lXp,{color:"gray.900",fontSize:"14px",fontWeight:"semibold",htmlFor:n,w:"50%",children:n}),(0,l.jsx)(r.IIB,{...i,autoComplete:"off",color:"gray.700",placeholder:"Please enter ".concat(n),ref:0===t?d:void 0,size:"sm"})]})}})},n)})})})}),(0,l.jsx)(r.zeN,{justifyContent:"flex-start",children:(0,l.jsxs)("div",{className:"flex gap-2",children:[(0,l.jsx)(r.wpx,{onClick:c,children:"Cancel"}),(0,l.jsx)(r.wpx,{form:"manual-detail-form",loading:i,htmlType:"submit",children:"Save"})]})})]})]})})]})},U=e=>{let{connectorName:t,data:n,isSubmitting:i=!1,onSaveClick:s}=e,{isOpen:a,onOpen:o,onClose:c}=(0,r.qY0)(),d=(0,h.useRef)(null),u=async(e,t)=>{s({connection_key:n.connection_key,privacy_request_id:n.privacy_request_id,body:{...e}}),c()};return(0,l.jsxs)(l.Fragment,{children:[(null==n?void 0:n.checked)&&(0,l.jsx)(r.wpx,{onClick:o,size:"small",children:"Review"}),!(null==n?void 0:n.checked)&&(0,l.jsx)(r.wpx,{onClick:o,size:"small",type:"primary",children:"Begin manual input"}),(0,l.jsx)(O.J9,{enableReinitialize:!0,initialValues:{...n.fields},onSubmit:u,validateOnBlur:!1,validateOnChange:!1,validationSchema:z.Ry().shape({}),children:e=>(0,l.jsxs)(r.dys,{isOpen:a,placement:"right",initialFocusRef:d,onClose:c,size:"lg",children:[(0,l.jsx)(r.P1B,{}),(0,l.jsxs)(r.scA,{children:[(0,l.jsx)(r.cCv,{}),(0,l.jsxs)(r.OXI,{color:"gray.900",children:[(0,l.jsx)(r.xvT,{fontSize:"xl",mb:8,children:t}),(0,l.jsx)(r.izJ,{}),(0,l.jsx)(r.xvT,{fontSize:"md",mt:"4",children:"Manual erasure"}),(0,l.jsx)(r.xuv,{mt:"8px",children:(0,l.jsx)(r.xvT,{color:"gray.700",fontSize:"sm",fontWeight:"normal",children:"Please delete the following PII fields associated with the selected subject if they are available. Once deleted, check the box to confirm the deletion."})})]}),(0,l.jsx)(r.Ng0,{children:(0,l.jsx)(O.l0,{id:"manual-detail-form",noValidate:!0,children:(0,l.jsx)(r.gCW,{align:"stretch",gap:"16px",children:Object.entries(n.fields).map(e=>{let[t]=e;return(0,l.jsx)(r.Ugi,{children:(0,l.jsx)(O.gN,{id:t,name:t,children:e=>{let{field:n}=e;return(0,l.jsxs)(r.NIc,{alignItems:"baseline",display:"inline-flex",children:[(0,l.jsx)(r.lXp,{color:"gray.900",fontSize:"14px",fontWeight:"semibold",htmlFor:t,w:"50%",children:t}),(0,l.jsx)(r.XZJ,{...n,isChecked:!!n.value,onChange:n.onChange,name:t,id:t})]})}})},t)})})})}),(0,l.jsx)(r.zeN,{justifyContent:"flex-start",children:(0,l.jsxs)("div",{className:"flex gap-2",children:[(0,l.jsx)(r.wpx,{onClick:c,children:"Cancel"}),(0,l.jsx)(r.wpx,{form:"manual-detail-form",loading:i,htmlType:"submit",children:"Save"})]})})]})]})})]})};let M=(e,t,n)=>e.includes(x.Us.ACCESS)?{ProcessingDetailComponent:D,uploadMutation:t,getUploadedWebhookDataEndpoint:A.$I.endpoints.getUploadedManualAccessWebhookData}:e.includes(x.Us.ERASURE)?{ProcessingDetailComponent:U,uploadMutation:n,getUploadedWebhookDataEndpoint:A.$I.endpoints.getUploadedManualErasureWebhookData}:null;var W=e=>{let{subjectRequest:t,onComplete:n}=e,i=(0,P.T)(),{errorAlert:s,successAlert:a}=(0,T.V)(),{handleError:o}=(0,T.H)(),[c,d]=(0,h.useState)([]),[u,p]=(0,h.useState)(!1),[g,j]=(0,h.useState)(!1),{data:m,isFetching:f,isLoading:v,isSuccess:y}=(0,q.W6)(),[b]=(0,A.w3)(),R=N(t.policy.rules),[w]=(0,A.nL)(),[C]=(0,A.UR)(),{ProcessingDetailComponent:_,uploadMutation:S,getUploadedWebhookDataEndpoint:k}=M(R,w,C),E=async()=>{try{p(!0),await b(t.id).unwrap(),a("Manual request has been received. Request now processing."),n()}catch(e){o(e)}finally{p(!1)}},I=async e=>{try{j(!0),await S(e).unwrap();let t={connection_key:e.connection_key,fields:{}};Object.entries(e.body).forEach(e=>{let[n,i]=e;t.fields[n]=i||""});let n=c.map(e=>e.connection_key===t.connection_key?{...e,checked:!0,fields:{...t.fields}}:e);d(n),a("Manual input successfully saved!")}catch(e){o(e)}finally{j(!1)}};return((0,h.useEffect)(()=>(y&&m.length>0&&0===c.length&&(()=>{if(c.length>0)return;let e=[],n=null==m?void 0:m.map(e=>e.connection_config.key);null==n||n.every(n=>e.push(i(k.initiate({connection_key:n,privacy_request_id:t.id})))),Promise.allSettled(e).then(e=>{let t=[];e.forEach((e,n)=>{if("fulfilled"===e.status&&e.value.isSuccess&&e.value.data){let n={checked:e.value.data.checked,fields:{},connection_key:e.value.originalArgs.connection_key,privacy_request_id:e.value.originalArgs.privacy_request_id};Object.entries(e.value.data.fields).forEach(e=>{let[t,i]=e;n.fields[t]=i||""}),t.push(n)}else s("An error occurred while loading manual input data for ".concat(m[n].connection_config.name))}),d(t)})})(),()=>{}),[m,c.length,i,s,y,t.id,k]),R.includes(x.Us.ACCESS)||R.includes(x.Us.ERASURE))?(0,l.jsxs)(r.gCW,{align:"stretch",spacing:8,children:[(0,l.jsx)(r.xuv,{children:(0,l.jsx)(r.xvT,{color:"gray.700",fontSize:"sm",children:"The following table details the integrations that require manual input from you."})}),(0,l.jsxs)(r.xuv,{children:[(f||v)&&(0,l.jsx)(r.M5Y,{children:(0,l.jsx)(r.$jN,{})}),y&&m?(0,l.jsx)(r.xJi,{children:(0,l.jsxs)(r.iA_,{size:"sm",variant:"unstyled",children:[(0,l.jsx)(r.hrZ,{children:(0,l.jsxs)(r.Tr,{children:[(0,l.jsx)(r.Th,{fontSize:"sm",fontWeight:"semibold",pl:"0",textTransform:"none",children:"Integration Identifier"}),(0,l.jsx)(r.Th,{})]})}),(0,l.jsxs)(r.p3B,{children:[m.length>0&&m.map(e=>(0,l.jsxs)(r.Tr,{display:"block",children:[(0,l.jsx)(r.Td,{pl:"0",children:e.connection_config.key}),(0,l.jsx)(r.Td,{children:c.length>0?(0,l.jsx)(_,{connectorName:e.connection_config.name,data:c.find(t=>t.connection_key===e.connection_config.key),isSubmitting:g,onSaveClick:I}):null})]},e.id)),0===m.length&&(0,l.jsx)(r.Tr,{children:(0,l.jsx)(r.Td,{colSpan:3,pl:"0",children:(0,l.jsx)(r.M5Y,{children:(0,l.jsx)(r.xvT,{children:"You don‘t have any Manual Process connections set up yet."})})})})]}),c.length>0&&c.every(e=>e.checked)?(0,l.jsx)(r.$RU,{children:(0,l.jsx)(r.Tr,{children:(0,l.jsx)(r.Th,{pl:"0px",children:(0,l.jsx)(r.wpx,{type:"primary",loading:u,onClick:E,className:"mt-2",children:"Complete DSR"})})})}):null]})}):null]})]}):null},L=n(8557),F=e=>{let{daysLeft:t,includeText:n,status:i}=e;if(!t||i===L.q.COMPLETE||i===L.q.CANCELED||i===L.q.DENIED||i===L.q.IDENTITY_UNVERIFIED)return(0,l.jsx)("span",{children:"-"});let s="";switch(!0){case t>=10:s="success";break;case t<10&&t>4:s="warning";break;case t<5:s="error"}return(0,l.jsx)(r.j8w,{color:s,children:n?"".concat(t," days left"):t})},B=n(25980);let V={approved:{color:"success",label:"Approved"},complete:{color:"success",label:"Completed"},awaiting_email_send:{color:"marble",label:"Awaiting Email Send"},denied:{color:"warning",label:"Denied"},canceled:{color:"marble",label:"Canceled"},error:{color:"error",label:"Error"},in_processing:{color:"caution",label:"In Progress"},paused:{color:"marble",label:"Paused"},pending:{color:"info",label:"New"},identity_unverified:{color:"marble",label:"Unverified"},requires_input:{color:"alert",label:"Requires Input"}};var Y=e=>{let{status:t}=e;return(0,l.jsx)(r.j8w,{color:V[t].color,className:"justify-center","data-testid":"request-status-badge",children:V[t].label})},X=n(15709),Z=n.n(X),H=e=>{let{label:t,children:n}=e;return(0,l.jsxs)("div",{className:"flex items-center",children:[(0,l.jsx)("div",{className:"shrink-0 grow-0 basis-1/2 pr-2 ".concat(Z().label),children:(0,l.jsxs)(r.AntTypography.Text,{children:[t,":"]})}),(0,l.jsx)("div",{className:"min-w-0 shrink grow ".concat(Z().value),"data-testid":"request-detail-value-".concat(t),children:n})]})},G=e=>{let{subjectRequest:t}=e,{custom_privacy_request_fields:n}=t;return(0,l.jsx)("div",{className:"flex flex-col gap-2",children:n&&Object.keys(n).length>0&&Object.entries(n).filter(e=>{let[,t]=e;return t.value}).map(e=>{let[t,n]=e;return(0,l.jsx)(H,{label:n.label,children:(0,l.jsx)(r.AntTypography.Text,{children:Array.isArray(n.value)?n.value.join(", "):n.value})},t)})})},J=e=>{let{subjectRequest:t}=e,{plus:n}=(0,B.hz)(),{id:i,status:s,policy:a,identity:o,identity_verified_at:c}=t;return(0,l.jsxs)("div",{children:[(0,l.jsx)("div",{className:"mb-6",children:(0,l.jsx)(r.AntTypography.Title,{level:2,children:"Request details"})}),(0,l.jsxs)(r.jqI,{vertical:!0,gap:12,className:"mb-6",children:[(0,l.jsx)(H,{label:"Status",children:(0,l.jsx)(Y,{status:s})}),(0,l.jsx)(H,{label:"Time remaining",children:(0,l.jsx)(F,{daysLeft:t.days_left,includeText:!0,status:t.status})}),(0,l.jsx)(H,{label:"Request type",children:(0,l.jsx)(I,{rules:a.rules})}),(0,l.jsx)(H,{label:"Source",children:n&&(0,l.jsx)(r.AntTypography.Text,{children:t.source||"-"})}),Object.entries(o).filter(e=>{let[,{value:t}]=e;return null!==t}).map(e=>{let[t,{value:n="",label:i}]=e,s="".concat(n).concat(c?"":" (Unverified)");return(0,l.jsx)(H,{label:"Subject ".concat(i.toLocaleLowerCase()),children:(0,l.jsx)(r.esZ,{title:s,trigger:"click",children:(0,l.jsx)(r.AntTypography.Text,{ellipsis:!0,children:s})})},t)}),(0,l.jsx)(G,{subjectRequest:t})]}),(0,l.jsxs)(r.PPS,{layout:"vertical",children:[(0,l.jsx)(r.PPS.Item,{label:"Request ID:",className:"mb-4",children:(0,l.jsxs)(r.jqI,{gap:1,children:[(0,l.jsx)(r.uFc,{readOnly:!0,value:i,"data-testid":"request-detail-value-id"}),(0,l.jsx)(p.Z,{copyText:i,size:"small"})]})}),(0,l.jsx)(r.PPS.Item,{label:"Policy key:",className:"mb-4",children:(0,l.jsx)(r.uFc,{readOnly:!0,value:t.policy.key,"data-testid":"request-detail-value-policy"})})]})]})},K=e=>{var t;let{data:n}=e,i=(0,h.useMemo)(()=>({id:n.id,verbose:!0}),[n.id]),{data:s}=(0,u.QA)(i,{pollingInterval:n.status===x.q2.APPROVED||n.status===x.q2.IN_PROCESSING?2e3:0,skip:!n.id}),a=null!==(t=null==s?void 0:s.items[0])&&void 0!==t?t:n,o=a.status===x.q2.REQUIRES_INPUT,[c,d]=(0,h.useState)(o?"manual-steps":"activity"),p=(0,h.useMemo)(()=>[{key:"activity",label:"Activity",children:(0,l.jsx)(E,{subjectRequest:a})},{key:"manual-steps",label:"Manual steps",children:(0,l.jsx)(W,{subjectRequest:a,onComplete:()=>d("activity")}),disabled:!o}],[o,a]);return(0,l.jsxs)("div",{className:"flex gap-8",children:[(0,l.jsx)("div",{className:"flex-1",children:(0,l.jsx)(r.A5g,{items:p,activeKey:c,onChange:d})}),(0,l.jsx)("div",{className:"w-[432px]","data-testid":"privacy-request-details",children:(0,l.jsx)(J,{subjectRequest:a})})]})},$=n(57526),Q=n(66548),ee=n(45489),et=e=>{let{privacyRequest:t,action:n}=e,{handleApproveRequest:i,handleDenyRequest:s}=(0,ee.Z)({subjectRequest:t}),l=t.status===x.q2.PENDING,a=(0,r.qY0)(),o=async e=>{let{reason:t}=e,l=r.sYd.loading({content:"approve"===n?"Approving request...":"Denying request..."});"deny"===n&&await s(t),"approve"===n&&await i(),l()};return{showAction:l,closeModal:a.onClose,performAction:o,openConfirmationModal:a.onOpen,isModalOpen:a.isOpen}},en=n(812),ei=n(19904),es=e=>{var t,n,i;let{privacyRequest:s}=e,l=null===(n=(0,B.hz)())||void 0===n?void 0:null===(t=n.flags)||void 0===t?void 0:t.downloadAccessRequestResults,r=s.status===x.q2.COMPLETE,a=N(s.policy.rules).includes(x.Us.ACCESS),o=(0,ei.Tg)([x.Sh.PRIVACY_REQUEST_ACCESS_RESULTS_READ]),{data:c,isLoading:d,isError:u,error:h}=(0,A.br)({privacy_request_id:s.id}),p=null!==(i=null==c?void 0:c.access_result_urls[0])&&void 0!==i?i:"",g=!!p&&"your local fides_uploads folder"!==p,j=null;return u?j=(0,en.e$)(h,"Unable to resolve download URL"):g||(j="Requests stored locally cannot be downloaded"),{showDownloadResults:l&&o&&a&&r,downloadResults:()=>{let e=document.createElement("a");e.href=p,e.target="_blank",e.rel="noopener noreferrer",e.click(),e.remove()},infoTooltip:j,isLoading:d,isDisabled:!g}},el=e=>{let{privacyRequest:t}=e,{errorAlert:n,successAlert:i}=(0,T.V)(),s=t.status===x.q2.ERROR,[l]=(0,A.Fq)();return{reprocessPrivacyRequest:async()=>{if(!t)return;let e=r.sYd.loading("Reprocessing privacy request...",0),s=await l(t);"error"in s?n((0,en.e$)(s.error),"DSR automation has failed for this privacy request due to the following:",{duration:null}):i("Privacy request is now being reprocessed."),e()},showReprocess:s}},er=e=>{let{privacyRequest:t}=e,{showDownloadResults:n,downloadResults:i,infoTooltip:s,isDisabled:a}=es({privacyRequest:t}),{isModalOpen:o,closeModal:c,performAction:d,openConfirmationModal:u,showAction:x}=et({privacyRequest:t,action:"approve"}),{isModalOpen:p,closeModal:g,performAction:j,openConfirmationModal:m,showAction:f}=et({privacyRequest:t,action:"deny"}),{reprocessPrivacyRequest:v,showReprocess:y}=el({privacyRequest:t}),b=(0,h.useMemo)(()=>{let e=[];return e.push({key:"approve",label:(0,l.jsx)("span",{"data-testid":"privacy-request-approve-btn",children:"Approve"}),onClick:u,disabled:!x}),e.push({key:"deny",label:(0,l.jsx)("span",{"data-testid":"privacy-request-deny-btn",children:"Deny"}),onClick:m,disabled:!f}),e.push({key:"reprocess",label:(0,l.jsx)("span",{"data-testid":"privacy-request-action-reprocess",children:"Reprocess"}),onClick:v,disabled:!y}),n&&e.push({key:"download",label:(0,l.jsx)(r.esZ,{title:a?s:null,placement:"bottom",children:(0,l.jsx)("span",{"data-testid":"download-results-btn",children:"Download request results"})}),onClick:i,disabled:a}),e},[n,i,s,a,x,f,u,m,y,v]);return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(r.S0p,{menu:{items:b},trigger:["click"],overlayStyle:{minWidth:"160px"},children:(0,l.jsx)(r.wpx,{icon:(0,l.jsx)(r.PJP.pO,{}),"data-testid":"privacy-request-actions-dropdown-btn",iconPosition:"end",type:"primary",disabled:!b.length,size:"large",children:"Actions"})}),(0,l.jsx)($.Z,{isOpen:o,isLoading:!1,onClose:c,onApproveRequest:()=>d({reason:""}),subjectRequest:t}),(0,l.jsx)(Q.Z,{isOpen:p,onClose:g,onDenyRequest:e=>j({reason:e})})]})},ea=()=>{let e=(0,a.useRouter)().query.id,{data:t,isLoading:n}=(0,u.QA)({id:e,verbose:!0},{skip:!e}),i=(null==t?void 0:t.items[0])||null;return(0,l.jsxs)(o.Z,{title:"Privacy Request - ".concat(e),children:[(0,l.jsx)(d.Z,{heading:"Privacy Requests",breadcrumbItems:[{title:"All requests",href:c.Jw},{title:"Request details"}],rightContent:!!i&&(0,l.jsx)(er,{privacyRequest:i})}),n&&(0,l.jsx)(r.M5Y,{children:(0,l.jsx)(r.$jN,{})}),!n&&!i&&(0,l.jsx)(r.xvT,{children:"404 no privacy request found"}),!n&&i&&(0,l.jsx)(K,{data:i})]})}},19043:function(e,t,n){"use strict";n.d(t,{Bw:function(){return r},D4:function(){return s},Dy:function(){return o},XD:function(){return c},cz:function(){return d},hE:function(){return a},oK:function(){return l}});var i=n(76649);let s=e=>"error"in e,l=e=>(0,i.Ln)({status:"string"},e)&&"PARSING_ERROR"===e.status,r=e=>(0,i.Ln)({status:"number",data:{}},e),a=e=>(0,i.Ln)({detail:"string"},e),o=e=>(0,i.Ln)({detail:{error:"string",resource_type:"string",fides_key:"string"}},e),c=e=>(0,i.Ln)({detail:{error:"string",resource_type:"string",fides_key:"string"}},e),d=e=>(0,i.Ln)({detail:[{loc:["string","number"],msg:"string",type:"string"}]},e)},15709:function(e){e.exports={value:"RequestDetailsRow_value__WMXn3",label:"RequestDetailsRow_label__dn3CQ"}},76649:function(e,t,n){"use strict";n.d(t,{Ln:function(){return i}});let i=(e,t)=>l(e,t),s=Symbol("SOME"),l=(e,t)=>"string"==typeof e?e===typeof t:Array.isArray(e)?s in e?e.some(e=>l(e,t)):!!Array.isArray(t)&&(0===e.length||t.every(t=>e.some(e=>l(e,t)))):"object"==typeof t&&null!==t&&Object.entries(e).every(([e,n])=>l(n,t[e]));class r{static narrow(e){return new r(t=>i(e,t))}constructor(e){this.NF=void 0,this.NF=e}satisfied(e){return this.NF(e)}build(e){return e}and(e){let t=this.NF,n=e instanceof r?e.NF:e instanceof Function?e:t=>i(e,t);return new r(e=>t(e)&&n(e))}}new r(e=>!0)}},function(e){e.O(0,[8433,2888,9774,179],function(){return e(e.s=6554)}),_N_E=e.O()}]);
@@ -1 +1 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3691],{8828:function(e,t,i){(window.__NEXT_P=window.__NEXT_P||[]).push(["/systems/configure/[id]",function(){return i(51226)}])},66379:function(e,t,i){"use strict";var n=i(24246),s=i(56351),r=i(7617);t.Z=e=>{let{data:t,border:i="partial",borderWidth:a=2,...l}=e;return(0,n.jsx)(s.mQc,{colorScheme:"complimentary",...l,children:(0,n.jsx)(s.tdY,{width:"partial"===i?"max-content":void 0,borderBottomWidth:a,children:t.map(e=>(0,n.jsx)(r.q,{label:e.label,"data-testid":e.label,isDisabled:e.isDisabled,fontSize:l.fontSize},e.label))})})}},18225:function(e,t,i){"use strict";var n=i(24246),s=i(56351);t.Z=e=>{let{...t}=e;return(0,n.jsx)(s.kCb,{boxSize:"full",align:"center",justify:"center",children:(0,n.jsx)(s.$jN,{color:"primary",...t})})}},51226:function(e,t,i){"use strict";i.r(t),i.d(t,{default:function(){return _}});var n=i(24246),s=i(56351),r=i(86677),a=i(27378),l=i(16134),d=e=>{let{data:t,...i}=e;return(0,n.jsx)(s.mQc,{colorScheme:"complimentary",...i,children:(0,n.jsx)(s.nPR,{children:t.map(e=>(0,n.jsx)(s.x45,{px:0,"data-testid":"tab-panel-".concat(e.label),children:e.content},e.label))})})},c=i(66379),o=i(25980),u=i(18225),h=i(812),x=i(14048),m=i(77213),f=i(77830),j=i(58754),y=i(32885),b=i(1315),p=i(57865),g=i(72774),v=i(57342),_=()=>{let e=(0,r.useRouter)(),t=(0,l.T)(),i="";e.query.id&&(i=Array.isArray(e.query.id)?e.query.id[0]:e.query.id);let{data:_,isLoading:w}=(0,b.rn)(i,{skip:!i}),{error:C,isLoading:S}=(0,y.Rd)(),{tcf:Z}=(0,o.hz)(),{flags:k}=(0,o.Vb)(),z=k.dataDiscoveryAndDetection,N=(0,l.C)(p.gU);(0,a.useEffect)(()=>{if(t((0,b.db)(_)),_){let e=Z&&!!_.vendor_id&&(0,h.cj)(_.vendor_id)===h.c6.GVL;t((0,p.gQ)(e))}else(0,p.gQ)(!1)},[_,t,Z]);let{tabData:E,tabIndex:q,onTabChange:A}=(0,v.Z)({isCreate:!1});return(w||S)&&!C?(0,n.jsx)(m.Z,{title:"Systems",children:(0,n.jsx)(u.Z,{})}):(0,n.jsxs)(m.Z,{title:"System inventory",mainProps:{w:"calc(100vw - 240px)"},children:[(0,n.jsx)(j.Z,{heading:"System inventory",breadcrumbItems:[{title:"All systems",href:f.So},{title:(null==_?void 0:_.name)||""}],children:(0,n.jsxs)(s.xuv,{position:"relative",children:[(0,n.jsx)(c.Z,{data:E,"data-testid":"system-tabs",index:q,isLazy:!0,isManual:!0,onChange:A,width:"full",border:"full-width"}),z&&(0,n.jsxs)(s.wpx,{size:"small",className:"absolute right-2 top-2","data-testid":"integration-page-btn",onClick:()=>e.push(f.KH),children:[(0,n.jsx)(s.xvT,{children:"Integrations"}),(0,n.jsx)(x.A5,{marginLeft:2})]})]})}),N?(0,n.jsx)(g.Z,{}):null,_||w||S?(0,n.jsx)(s.gCW,{alignItems:"stretch",children:(0,n.jsx)(d,{data:E,index:q,isLazy:!0,isManual:!0,onChange:A})}):(0,n.jsxs)(s.xvT,{"data-testid":"system-not-found",children:["Could not find a system with id ",i]})]})}}},function(e){e.O(0,[8033,2780,2858,2866,9278,4833,4481,7980,3949,8499,3627,7044,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,i){(window.__NEXT_P=window.__NEXT_P||[]).push(["/systems/configure/[id]",function(){return i(51226)}])},66379:function(e,t,i){"use strict";var n=i(24246),s=i(56351),r=i(7617);t.Z=e=>{let{data:t,border:i="partial",borderWidth:a=2,...l}=e;return(0,n.jsx)(s.mQc,{colorScheme:"complimentary",...l,children:(0,n.jsx)(s.tdY,{width:"partial"===i?"max-content":void 0,borderBottomWidth:a,children:t.map(e=>(0,n.jsx)(r.q,{label:e.label,"data-testid":e.label,isDisabled:e.isDisabled,fontSize:l.fontSize},e.label))})})}},18225:function(e,t,i){"use strict";var n=i(24246),s=i(56351);t.Z=e=>{let{...t}=e;return(0,n.jsx)(s.kCb,{boxSize:"full",align:"center",justify:"center",children:(0,n.jsx)(s.$jN,{color:"primary",...t})})}},51226:function(e,t,i){"use strict";i.r(t),i.d(t,{default:function(){return _}});var n=i(24246),s=i(56351),r=i(86677),a=i(27378),l=i(16134),d=e=>{let{data:t,...i}=e;return(0,n.jsx)(s.mQc,{colorScheme:"complimentary",...i,children:(0,n.jsx)(s.nPR,{children:t.map(e=>(0,n.jsx)(s.x45,{px:0,"data-testid":"tab-panel-".concat(e.label),children:e.content},e.label))})})},c=i(66379),o=i(25980),u=i(18225),h=i(812),x=i(14048),m=i(77213),f=i(77830),j=i(58754),y=i(32885),b=i(1315),p=i(57865),g=i(72774),v=i(57342),_=()=>{let e=(0,r.useRouter)(),t=(0,l.T)(),i="";e.query.id&&(i=Array.isArray(e.query.id)?e.query.id[0]:e.query.id);let{data:_,isLoading:w}=(0,b.rn)(i,{skip:!i}),{error:C,isLoading:S}=(0,y.Rd)(),{tcf:Z}=(0,o.hz)(),{flags:k}=(0,o.Vb)(),z=k.dataDiscoveryAndDetection,N=(0,l.C)(p.gU);(0,a.useEffect)(()=>{if(t((0,b.db)(_)),_){let e=Z&&!!_.vendor_id&&(0,h.cj)(_.vendor_id)===h.c6.GVL;t((0,p.gQ)(e))}else(0,p.gQ)(!1)},[_,t,Z]);let{tabData:E,tabIndex:q,onTabChange:A}=(0,v.Z)({isCreate:!1});return(w||S)&&!C?(0,n.jsx)(m.Z,{title:"Systems",children:(0,n.jsx)(u.Z,{})}):(0,n.jsxs)(m.Z,{title:"System inventory",mainProps:{w:"calc(100vw - 240px)"},children:[(0,n.jsx)(j.Z,{heading:"System inventory",breadcrumbItems:[{title:"All systems",href:f.So},{title:(null==_?void 0:_.name)||""}],children:(0,n.jsxs)(s.xuv,{position:"relative",children:[(0,n.jsx)(c.Z,{data:E,"data-testid":"system-tabs",index:q,isLazy:!0,isManual:!0,onChange:A,width:"full",border:"full-width"}),z&&(0,n.jsxs)(s.wpx,{size:"small",className:"absolute right-2 top-2","data-testid":"integration-page-btn",onClick:()=>e.push(f.KH),children:[(0,n.jsx)(s.xvT,{children:"Integrations"}),(0,n.jsx)(x.A5,{marginLeft:2})]})]})}),N?(0,n.jsx)(g.Z,{}):null,_||w||S?(0,n.jsx)(s.gCW,{alignItems:"stretch",children:(0,n.jsx)(d,{data:E,index:q,isLazy:!0,isManual:!0,onChange:A})}):(0,n.jsxs)(s.xvT,{"data-testid":"system-not-found",children:["Could not find a system with id ",i]})]})}}},function(e){e.O(0,[8033,2780,2858,2866,9278,4833,4481,7980,3949,8499,3215,7044,2888,9774,179],function(){return e(e.s=8828)}),_N_E=e.O()}]);
@@ -1 +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}.right-2{right:.5rem}.top-2{top:.5rem}.z-\[1\]{z-index:1}.z-\[2\]{z-index:2}.m-0{margin:0}.m-1{margin:.25rem}.my-4{margin-top:1rem;margin-bottom:1rem}.-mt-px{margin-top:-1px}.mb-1{margin-bottom:.25rem}.mb-2{margin-bottom:.5rem}.mb-4{margin-bottom:1rem}.mb-5{margin-bottom:1.25rem}.mb-6{margin-bottom:1.5rem}.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-2{margin-top:.5rem}.mt-4{margin-top:1rem}.mt-5{margin-top:1.25rem}.mt-6{margin-top:1.5rem}.block{display:block}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.table{display:table}.contents{display:contents}.hidden{display:none}.size-full{width:100%;height:100%}.h-80{height:20rem}.h-full{height:100%}.\!w-auto{width:auto!important}.w-1\/2{width:50%}.w-1\/3{width:33.333333%}.w-1\/5{width:20%}.w-32{width:8rem}.w-4\/5{width:80%}.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%}.min-w-0{min-width:0}.min-w-4{min-width:1rem}.min-w-\[350px\]{min-width:350px}.max-w-4{max-width:1rem}.max-w-40{max-width:10rem}.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%}.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{resize:both}.flex-row{flex-direction:row}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.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\.5{gap:.375rem}.gap-12{gap:3rem}.gap-2{gap:.5rem}.gap-3{gap:.75rem}.gap-4{gap:1rem}.gap-6{gap:1.5rem}.gap-8{gap:2rem}.self-start{align-self:flex-start}.self-end{align-self:flex-end}.overflow-auto{overflow:auto}.overflow-x-auto{overflow-x:auto}.overflow-x-hidden{overflow-x:hidden}.truncate{overflow:hidden;text-overflow:ellipsis}.truncate,.whitespace-nowrap{white-space:nowrap}.text-wrap{text-wrap:wrap}.break-all{word-break:break-all}.rounded{border-radius:.25rem}.border{border-width:1px}.border-t{border-top-width:1px}.border-none{border-style:none}.border-\[\#DEE5EE\]{--tw-border-opacity:1;border-color:rgb(222 229 238/var(--tw-border-opacity))}.border-gray-300{--tw-border-opacity:1;border-color:rgb(209 213 219/var(--tw-border-opacity))}.\!bg-transparent{background-color:transparent!important}.bg-gray-200{--tw-bg-opacity:1;background-color:rgb(229 231 235/var(--tw-bg-opacity))}.bg-transparent{background-color:transparent}.bg-white{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity))}.p-0{padding:0}.p-2{padding:.5rem}.p-3{padding:.75rem}.p-4{padding:1rem}.px-1{padding-left:.25rem;padding-right:.25rem}.px-10{padding-left:2.5rem;padding-right:2.5rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-4{padding-top:1rem;padding-bottom:1rem}.py-6{padding-top:1.5rem;padding-bottom:1.5rem}.pb-4{padding-bottom:1rem}.pb-6{padding-bottom:1.5rem}.pl-0\.5{padding-left:.125rem}.pr-2{padding-right:.5rem}.pt-4{padding-top:1rem}.text-left{text-align:left}.text-center{text-align:center}.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}.uppercase{text-transform:uppercase}.lowercase{text-transform:lowercase}.capitalize{text-transform:capitalize}.italic{font-style:italic}.tabular-nums{--tw-numeric-spacing:tabular-nums;font-variant-numeric:var(--tw-ordinal) var(--tw-slashed-zero) var(--tw-numeric-figure) var(--tw-numeric-spacing) var(--tw-numeric-fraction)}.text-black{--tw-text-opacity:1;color:rgb(0 0 0/var(--tw-text-opacity))}.text-gray-500{--tw-text-opacity:1;color:rgb(107 114 128/var(--tw-text-opacity))}.text-gray-700{--tw-text-opacity:1;color:rgb(55 65 81/var(--tw-text-opacity))}.text-inherit{color:inherit}.text-transparent{color:transparent}.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,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-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))!important}.hover\:bg-transparent:hover{background-color:transparent}.hover\:bg-none:hover{background-image:none}.focus\:\!bg-gray-700:focus{--tw-bg-opacity:1!important;background-color:rgb(55 65 81/var(--tw-bg-opacity))!important}.active\:bg-transparent:active{background-color:transparent}.active\:bg-none:active{background-image:none}.group:hover .group-hover\:visible{visibility:visible}: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}.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-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,.ant-menu-dark .ant-menu-sub>.ant-menu-item:hover{background-color: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-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}.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))}.CustomTag_tag__4q0OL svg:not([data-icon]){width:10px;height:10px;margin-inline-start:0}.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}.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}.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}
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}.right-2{right:.5rem}.top-2{top:.5rem}.z-\[1\]{z-index:1}.z-\[2\]{z-index:2}.m-0{margin:0}.m-1{margin:.25rem}.my-4{margin-top:1rem;margin-bottom:1rem}.-mt-px{margin-top:-1px}.mb-1{margin-bottom:.25rem}.mb-2{margin-bottom:.5rem}.mb-4{margin-bottom:1rem}.mb-5{margin-bottom:1.25rem}.mb-6{margin-bottom:1.5rem}.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-2{margin-top:.5rem}.mt-4{margin-top:1rem}.mt-5{margin-top:1.25rem}.mt-6{margin-top:1.5rem}.block{display:block}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.table{display:table}.contents{display:contents}.hidden{display:none}.size-full{width:100%;height:100%}.h-80{height:20rem}.h-full{height:100%}.\!w-auto{width:auto!important}.w-1\/2{width:50%}.w-1\/3{width:33.333333%}.w-1\/5{width:20%}.w-32{width:8rem}.w-4\/5{width:80%}.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%}.min-w-0{min-width:0}.min-w-4{min-width:1rem}.min-w-\[350px\]{min-width:350px}.max-w-4{max-width:1rem}.max-w-40{max-width:10rem}.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%}.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{resize:both}.flex-row{flex-direction:row}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.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\.5{gap:.375rem}.gap-12{gap:3rem}.gap-2{gap:.5rem}.gap-3{gap:.75rem}.gap-4{gap:1rem}.gap-6{gap:1.5rem}.gap-8{gap:2rem}.self-start{align-self:flex-start}.self-end{align-self:flex-end}.overflow-auto{overflow:auto}.overflow-x-auto{overflow-x:auto}.overflow-x-hidden{overflow-x:hidden}.truncate{overflow:hidden;text-overflow:ellipsis}.truncate,.whitespace-nowrap{white-space:nowrap}.text-wrap{text-wrap:wrap}.break-all{word-break:break-all}.rounded{border-radius:.25rem}.border{border-width:1px}.border-t{border-top-width:1px}.border-none{border-style:none}.border-\[\#DEE5EE\]{--tw-border-opacity:1;border-color:rgb(222 229 238/var(--tw-border-opacity))}.border-gray-300{--tw-border-opacity:1;border-color:rgb(209 213 219/var(--tw-border-opacity))}.\!bg-transparent{background-color:transparent!important}.bg-gray-200{--tw-bg-opacity:1;background-color:rgb(229 231 235/var(--tw-bg-opacity))}.bg-transparent{background-color:transparent}.bg-white{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity))}.p-0{padding:0}.p-2{padding:.5rem}.p-3{padding:.75rem}.p-4{padding:1rem}.px-1{padding-left:.25rem;padding-right:.25rem}.px-10{padding-left:2.5rem;padding-right:2.5rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-4{padding-top:1rem;padding-bottom:1rem}.py-6{padding-top:1.5rem;padding-bottom:1.5rem}.pb-4{padding-bottom:1rem}.pb-6{padding-bottom:1.5rem}.pl-0\.5{padding-left:.125rem}.pr-2{padding-right:.5rem}.pt-4{padding-top:1rem}.text-left{text-align:left}.text-center{text-align:center}.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}.uppercase{text-transform:uppercase}.lowercase{text-transform:lowercase}.capitalize{text-transform:capitalize}.italic{font-style:italic}.tabular-nums{--tw-numeric-spacing:tabular-nums;font-variant-numeric:var(--tw-ordinal) var(--tw-slashed-zero) var(--tw-numeric-figure) var(--tw-numeric-spacing) var(--tw-numeric-fraction)}.text-black{--tw-text-opacity:1;color:rgb(0 0 0/var(--tw-text-opacity))}.text-gray-500{--tw-text-opacity:1;color:rgb(107 114 128/var(--tw-text-opacity))}.text-gray-700{--tw-text-opacity:1;color:rgb(55 65 81/var(--tw-text-opacity))}.text-inherit{color:inherit}.text-transparent{color:transparent}.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,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-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))!important}.hover\:bg-transparent:hover{background-color:transparent}.hover\:bg-none:hover{background-image:none}.focus\:\!bg-gray-700:focus{--tw-bg-opacity:1!important;background-color:rgb(55 65 81/var(--tw-bg-opacity))!important}.active\:bg-transparent:active{background-color:transparent}.active\:bg-none:active{background-image:none}.group:hover .group-hover\:visible{visibility:visible}: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}.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-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-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}.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))}.CustomTag_tag__4q0OL svg:not([data-icon]){width:10px;height:10px;margin-inline-start:0}.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}.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}.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}
@@ -1 +1 @@
1
- <!DOCTYPE html><html lang="en"><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width"/><meta name="next-head-count" content="2"/><link data-next-font="" rel="preconnect" href="/" crossorigin="anonymous"/><link rel="preload" href="/_next/static/css/b8dbda131f8d4c05.css" as="style"/><link rel="stylesheet" href="/_next/static/css/b8dbda131f8d4c05.css" data-n-g=""/><noscript data-n-css=""></noscript><script defer="" nomodule="" src="/_next/static/chunks/polyfills-42372ed130431b0a.js"></script><script src="/_next/static/chunks/webpack-4df2ba5ee2d40f0a.js" defer=""></script><script src="/_next/static/chunks/framework-c92fc3344e6fd165.js" defer=""></script><script src="/_next/static/chunks/main-ce7f38a12ea8c223.js" defer=""></script><script src="/_next/static/chunks/pages/_app-c580f4c12ff5a438.js" defer=""></script><script src="/_next/static/chunks/c78d26b1-88a3e1bacb2a03c2.js" defer=""></script><script src="/_next/static/chunks/2780-8328de94968d05e4.js" defer=""></script><script src="/_next/static/chunks/2858-0b44609b6be7850b.js" defer=""></script><script src="/_next/static/chunks/2866-a73888c17a195cbe.js" defer=""></script><script src="/_next/static/chunks/9278-9b1b5970f0702668.js" defer=""></script><script src="/_next/static/chunks/4833-a85bd5d25ebc40c4.js" defer=""></script><script src="/_next/static/chunks/4481-ca8d2c75d634b6bc.js" defer=""></script><script src="/_next/static/chunks/7980-2597c279c30fbcda.js" defer=""></script><script src="/_next/static/chunks/3949-9888699e2ac564c4.js" defer=""></script><script src="/_next/static/chunks/8499-07507004e8275df2.js" defer=""></script><script src="/_next/static/chunks/3627-fb83adac32c128e6.js" defer=""></script><script src="/_next/static/chunks/7044-9dc90893067f38ae.js" defer=""></script><script src="/_next/static/chunks/pages/add-systems/manual-d7f60624cbc12217.js" defer=""></script><script src="/_next/static/U9NCM5NDIf0eWTgeIGr_u/_buildManifest.js" defer=""></script><script src="/_next/static/U9NCM5NDIf0eWTgeIGr_u/_ssgManifest.js" defer=""></script><style>.data-ant-cssinjs-cache-path{content:"";}</style></head><body><div id="__next"><div style="height:100%;display:flex"></div></div><script id="__NEXT_DATA__" type="application/json">{"props":{"pageProps":{}},"page":"/add-systems/manual","query":{},"buildId":"U9NCM5NDIf0eWTgeIGr_u","nextExport":true,"autoExport":true,"isFallback":false,"scriptLoader":[]}</script></body></html>
1
+ <!DOCTYPE html><html lang="en"><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width"/><meta name="next-head-count" content="2"/><link data-next-font="" rel="preconnect" href="/" crossorigin="anonymous"/><link rel="preload" href="/_next/static/css/957d0e4fea846ff0.css" as="style"/><link rel="stylesheet" href="/_next/static/css/957d0e4fea846ff0.css" data-n-g=""/><noscript data-n-css=""></noscript><script defer="" nomodule="" src="/_next/static/chunks/polyfills-42372ed130431b0a.js"></script><script src="/_next/static/chunks/webpack-4df2ba5ee2d40f0a.js" defer=""></script><script src="/_next/static/chunks/framework-c92fc3344e6fd165.js" defer=""></script><script src="/_next/static/chunks/main-ce7f38a12ea8c223.js" defer=""></script><script src="/_next/static/chunks/pages/_app-ef2643f4e3bede71.js" defer=""></script><script src="/_next/static/chunks/c78d26b1-88a3e1bacb2a03c2.js" defer=""></script><script src="/_next/static/chunks/2780-8328de94968d05e4.js" defer=""></script><script src="/_next/static/chunks/2858-0b44609b6be7850b.js" defer=""></script><script src="/_next/static/chunks/2866-a73888c17a195cbe.js" defer=""></script><script src="/_next/static/chunks/9278-9b1b5970f0702668.js" defer=""></script><script src="/_next/static/chunks/4833-a85bd5d25ebc40c4.js" defer=""></script><script src="/_next/static/chunks/4481-0500c40ed13000c0.js" defer=""></script><script src="/_next/static/chunks/7980-2597c279c30fbcda.js" defer=""></script><script src="/_next/static/chunks/3949-9888699e2ac564c4.js" defer=""></script><script src="/_next/static/chunks/8499-07507004e8275df2.js" defer=""></script><script src="/_next/static/chunks/3215-c8c683b93919e0a5.js" defer=""></script><script src="/_next/static/chunks/7044-88111db2aca2cf65.js" defer=""></script><script src="/_next/static/chunks/pages/add-systems/manual-05ab19822a7e9f80.js" defer=""></script><script src="/_next/static/PCFD-5xFm2ITkbTnvuYrG/_buildManifest.js" defer=""></script><script src="/_next/static/PCFD-5xFm2ITkbTnvuYrG/_ssgManifest.js" defer=""></script><style>.data-ant-cssinjs-cache-path{content:"";}</style></head><body><div id="__next"><div style="height:100%;display:flex"></div></div><script id="__NEXT_DATA__" type="application/json">{"props":{"pageProps":{}},"page":"/add-systems/manual","query":{},"buildId":"PCFD-5xFm2ITkbTnvuYrG","nextExport":true,"autoExport":true,"isFallback":false,"scriptLoader":[]}</script></body></html>
@@ -1 +1 @@
1
- <!DOCTYPE html><html lang="en"><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width"/><meta name="next-head-count" content="2"/><link data-next-font="" rel="preconnect" href="/" crossorigin="anonymous"/><link rel="preload" href="/_next/static/css/b8dbda131f8d4c05.css" as="style"/><link rel="stylesheet" href="/_next/static/css/b8dbda131f8d4c05.css" data-n-g=""/><noscript data-n-css=""></noscript><script defer="" nomodule="" src="/_next/static/chunks/polyfills-42372ed130431b0a.js"></script><script src="/_next/static/chunks/webpack-4df2ba5ee2d40f0a.js" defer=""></script><script src="/_next/static/chunks/framework-c92fc3344e6fd165.js" defer=""></script><script src="/_next/static/chunks/main-ce7f38a12ea8c223.js" defer=""></script><script src="/_next/static/chunks/pages/_app-c580f4c12ff5a438.js" defer=""></script><script src="/_next/static/chunks/c78d26b1-88a3e1bacb2a03c2.js" defer=""></script><script src="/_next/static/chunks/2780-8328de94968d05e4.js" defer=""></script><script src="/_next/static/chunks/4481-ca8d2c75d634b6bc.js" defer=""></script><script src="/_next/static/chunks/3949-9888699e2ac564c4.js" defer=""></script><script src="/_next/static/chunks/4723-81d28e5be5c7b6d7.js" defer=""></script><script src="/_next/static/chunks/5826-16e497af363a0cbc.js" defer=""></script><script src="/_next/static/chunks/pages/add-systems/multiple-18b0b521255289a3.js" defer=""></script><script src="/_next/static/U9NCM5NDIf0eWTgeIGr_u/_buildManifest.js" defer=""></script><script src="/_next/static/U9NCM5NDIf0eWTgeIGr_u/_ssgManifest.js" defer=""></script><style>.data-ant-cssinjs-cache-path{content:"";}</style></head><body><div id="__next"><div style="height:100%;display:flex"></div></div><script id="__NEXT_DATA__" type="application/json">{"props":{"pageProps":{}},"page":"/add-systems/multiple","query":{},"buildId":"U9NCM5NDIf0eWTgeIGr_u","nextExport":true,"autoExport":true,"isFallback":false,"scriptLoader":[]}</script></body></html>
1
+ <!DOCTYPE html><html lang="en"><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width"/><meta name="next-head-count" content="2"/><link data-next-font="" rel="preconnect" href="/" crossorigin="anonymous"/><link rel="preload" href="/_next/static/css/957d0e4fea846ff0.css" as="style"/><link rel="stylesheet" href="/_next/static/css/957d0e4fea846ff0.css" data-n-g=""/><noscript data-n-css=""></noscript><script defer="" nomodule="" src="/_next/static/chunks/polyfills-42372ed130431b0a.js"></script><script src="/_next/static/chunks/webpack-4df2ba5ee2d40f0a.js" defer=""></script><script src="/_next/static/chunks/framework-c92fc3344e6fd165.js" defer=""></script><script src="/_next/static/chunks/main-ce7f38a12ea8c223.js" defer=""></script><script src="/_next/static/chunks/pages/_app-ef2643f4e3bede71.js" defer=""></script><script src="/_next/static/chunks/c78d26b1-88a3e1bacb2a03c2.js" defer=""></script><script src="/_next/static/chunks/2780-8328de94968d05e4.js" defer=""></script><script src="/_next/static/chunks/4481-0500c40ed13000c0.js" defer=""></script><script src="/_next/static/chunks/3949-9888699e2ac564c4.js" defer=""></script><script src="/_next/static/chunks/4723-81d28e5be5c7b6d7.js" defer=""></script><script src="/_next/static/chunks/5826-16e497af363a0cbc.js" defer=""></script><script src="/_next/static/chunks/pages/add-systems/multiple-18b0b521255289a3.js" defer=""></script><script src="/_next/static/PCFD-5xFm2ITkbTnvuYrG/_buildManifest.js" defer=""></script><script src="/_next/static/PCFD-5xFm2ITkbTnvuYrG/_ssgManifest.js" defer=""></script><style>.data-ant-cssinjs-cache-path{content:"";}</style></head><body><div id="__next"><div style="height:100%;display:flex"></div></div><script id="__NEXT_DATA__" type="application/json">{"props":{"pageProps":{}},"page":"/add-systems/multiple","query":{},"buildId":"PCFD-5xFm2ITkbTnvuYrG","nextExport":true,"autoExport":true,"isFallback":false,"scriptLoader":[]}</script></body></html>