ethyca-fides 2.57.1b4__py2.py3-none-any.whl → 2.57.1b6__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 (99) hide show
  1. {ethyca_fides-2.57.1b4.dist-info → ethyca_fides-2.57.1b6.dist-info}/METADATA +1 -1
  2. {ethyca_fides-2.57.1b4.dist-info → ethyca_fides-2.57.1b6.dist-info}/RECORD +96 -92
  3. fides/_version.py +3 -3
  4. fides/api/models/privacy_request/__init__.py +13 -7
  5. fides/api/models/privacy_request/consent.py +2 -4
  6. fides/api/models/privacy_request/execution_log.py +108 -0
  7. fides/api/models/privacy_request/privacy_request.py +15 -544
  8. fides/api/models/privacy_request/provided_identity.py +149 -0
  9. fides/api/models/privacy_request/request_task.py +284 -0
  10. fides/api/models/privacy_request/webhook.py +94 -0
  11. fides/api/oauth/jwt.py +18 -0
  12. fides/ui-build/static/admin/404.html +1 -1
  13. fides/ui-build/static/admin/_next/static/{sDpAo7vHYkuZ5moMST2L3 → NgZHwKJoepGB5-XW8xdZo}/_buildManifest.js +1 -1
  14. fides/ui-build/static/admin/_next/static/chunks/pages/{_app-b8d38dabe3db0ee0.js → _app-de85703aa2346f42.js} +1 -1
  15. fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/action-center/[monitorId]/[systemId]-214f8f89b94c3842.js +1 -0
  16. fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/action-center/[monitorId]-25eac2d4008cef3d.js +1 -0
  17. fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/action-center-08e6d8bd6e91ee73.js +1 -0
  18. fides/ui-build/static/admin/add-systems/manual.html +1 -1
  19. fides/ui-build/static/admin/add-systems/multiple.html +1 -1
  20. fides/ui-build/static/admin/add-systems.html +1 -1
  21. fides/ui-build/static/admin/ant-poc.html +1 -1
  22. fides/ui-build/static/admin/consent/configure/add-vendors.html +1 -1
  23. fides/ui-build/static/admin/consent/configure.html +1 -1
  24. fides/ui-build/static/admin/consent/privacy-experience/[id].html +1 -1
  25. fides/ui-build/static/admin/consent/privacy-experience/new.html +1 -1
  26. fides/ui-build/static/admin/consent/privacy-experience.html +1 -1
  27. fides/ui-build/static/admin/consent/privacy-notices/[id].html +1 -1
  28. fides/ui-build/static/admin/consent/privacy-notices/new.html +1 -1
  29. fides/ui-build/static/admin/consent/privacy-notices.html +1 -1
  30. fides/ui-build/static/admin/consent/properties.html +1 -1
  31. fides/ui-build/static/admin/consent/reporting.html +1 -1
  32. fides/ui-build/static/admin/consent.html +1 -1
  33. fides/ui-build/static/admin/data-catalog/[systemId]/projects/[projectUrn]/[resourceUrn].html +1 -1
  34. fides/ui-build/static/admin/data-catalog/[systemId]/projects/[projectUrn].html +1 -1
  35. fides/ui-build/static/admin/data-catalog/[systemId]/projects.html +1 -1
  36. fides/ui-build/static/admin/data-catalog/[systemId]/resources/[resourceUrn].html +1 -1
  37. fides/ui-build/static/admin/data-catalog/[systemId]/resources.html +1 -1
  38. fides/ui-build/static/admin/data-catalog.html +1 -1
  39. fides/ui-build/static/admin/data-discovery/action-center/[monitorId]/[systemId].html +1 -1
  40. fides/ui-build/static/admin/data-discovery/action-center/[monitorId].html +1 -1
  41. fides/ui-build/static/admin/data-discovery/action-center.html +1 -1
  42. fides/ui-build/static/admin/data-discovery/activity.html +1 -1
  43. fides/ui-build/static/admin/data-discovery/detection/[resourceUrn].html +1 -1
  44. fides/ui-build/static/admin/data-discovery/detection.html +1 -1
  45. fides/ui-build/static/admin/data-discovery/discovery/[resourceUrn].html +1 -1
  46. fides/ui-build/static/admin/data-discovery/discovery.html +1 -1
  47. fides/ui-build/static/admin/datamap.html +1 -1
  48. fides/ui-build/static/admin/dataset/[datasetId]/[collectionName]/[...subfieldNames].html +1 -1
  49. fides/ui-build/static/admin/dataset/[datasetId]/[collectionName].html +1 -1
  50. fides/ui-build/static/admin/dataset/[datasetId].html +1 -1
  51. fides/ui-build/static/admin/dataset/new.html +1 -1
  52. fides/ui-build/static/admin/dataset.html +1 -1
  53. fides/ui-build/static/admin/datastore-connection/[id].html +1 -1
  54. fides/ui-build/static/admin/datastore-connection/new.html +1 -1
  55. fides/ui-build/static/admin/datastore-connection.html +1 -1
  56. fides/ui-build/static/admin/index.html +1 -1
  57. fides/ui-build/static/admin/integrations/[id].html +1 -1
  58. fides/ui-build/static/admin/integrations.html +1 -1
  59. fides/ui-build/static/admin/lib/fides-headless.js +1 -1
  60. fides/ui-build/static/admin/lib/fides-tcf.js +3 -3
  61. fides/ui-build/static/admin/lib/fides.js +2 -2
  62. fides/ui-build/static/admin/login/[provider].html +1 -1
  63. fides/ui-build/static/admin/login.html +1 -1
  64. fides/ui-build/static/admin/messaging/[id].html +1 -1
  65. fides/ui-build/static/admin/messaging/add-template.html +1 -1
  66. fides/ui-build/static/admin/messaging.html +1 -1
  67. fides/ui-build/static/admin/privacy-requests/[id].html +1 -1
  68. fides/ui-build/static/admin/privacy-requests/configure/messaging.html +1 -1
  69. fides/ui-build/static/admin/privacy-requests/configure/storage.html +1 -1
  70. fides/ui-build/static/admin/privacy-requests/configure.html +1 -1
  71. fides/ui-build/static/admin/privacy-requests.html +1 -1
  72. fides/ui-build/static/admin/properties/[id].html +1 -1
  73. fides/ui-build/static/admin/properties/add-property.html +1 -1
  74. fides/ui-build/static/admin/properties.html +1 -1
  75. fides/ui-build/static/admin/reporting/datamap.html +1 -1
  76. fides/ui-build/static/admin/settings/about.html +1 -1
  77. fides/ui-build/static/admin/settings/consent.html +1 -1
  78. fides/ui-build/static/admin/settings/custom-fields.html +1 -1
  79. fides/ui-build/static/admin/settings/domain-records.html +1 -1
  80. fides/ui-build/static/admin/settings/domains.html +1 -1
  81. fides/ui-build/static/admin/settings/email-templates.html +1 -1
  82. fides/ui-build/static/admin/settings/locations.html +1 -1
  83. fides/ui-build/static/admin/settings/organization.html +1 -1
  84. fides/ui-build/static/admin/settings/regulations.html +1 -1
  85. fides/ui-build/static/admin/systems/configure/[id]/test-datasets.html +1 -1
  86. fides/ui-build/static/admin/systems/configure/[id].html +1 -1
  87. fides/ui-build/static/admin/systems.html +1 -1
  88. fides/ui-build/static/admin/taxonomy.html +1 -1
  89. fides/ui-build/static/admin/user-management/new.html +1 -1
  90. fides/ui-build/static/admin/user-management/profile/[id].html +1 -1
  91. fides/ui-build/static/admin/user-management.html +1 -1
  92. fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/action-center/[monitorId]/[systemId]-b9fe0f7ef05fd12c.js +0 -1
  93. fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/action-center/[monitorId]-deec7b789ef30dc4.js +0 -1
  94. fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/action-center-2220c30c3863b5a5.js +0 -1
  95. {ethyca_fides-2.57.1b4.dist-info → ethyca_fides-2.57.1b6.dist-info}/LICENSE +0 -0
  96. {ethyca_fides-2.57.1b4.dist-info → ethyca_fides-2.57.1b6.dist-info}/WHEEL +0 -0
  97. {ethyca_fides-2.57.1b4.dist-info → ethyca_fides-2.57.1b6.dist-info}/entry_points.txt +0 -0
  98. {ethyca_fides-2.57.1b4.dist-info → ethyca_fides-2.57.1b6.dist-info}/top_level.txt +0 -0
  99. /fides/ui-build/static/admin/_next/static/{sDpAo7vHYkuZ5moMST2L3 → NgZHwKJoepGB5-XW8xdZo}/_ssgManifest.js +0 -0
@@ -1 +0,0 @@
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()}]);
@@ -1 +0,0 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2423],{95372:function(e){e.exports=function(e,t,s,n){for(var i=e.length,r=s+(n?1:-1);n?r--:++r<i;)if(t(e[r],r,e))return r;return -1}},56632:function(e,t,s){var n=s(89278),i=s(80068),r=s(50098);e.exports=function(e){return function(t,s,o){var a=Object(t);if(!i(t)){var l=n(s,3);t=r(t),s=function(e){return l(a[e],e,a)}}var d=e(t,s,o);return d>-1?a[l?t[d]:d]:void 0}}},64925:function(e,t,s){var n=s(56632)(s(66259));e.exports=n},66259:function(e,t,s){var n=s(95372),i=s(89278),r=s(47991),o=Math.max;e.exports=function(e,t,s){var a=null==e?0:e.length;if(!a)return -1;var l=null==s?0:r(s);return l<0&&(l=o(a+l,0)),n(e,i(t,3),l)}},94919:function(e,t,s){var n=s(91936),i=1/0;e.exports=function(e){return e?(e=n(e))===i||e===-i?(e<0?-1:1)*17976931348623157e292:e==e?e:0:0===e?e:0}},47991:function(e,t,s){var n=s(94919);e.exports=function(e){var t=n(e),s=t%1;return t==t?s?t-s:t:0}},86850:function(e,t,s){(window.__NEXT_P=window.__NEXT_P||[]).push(["/data-discovery/action-center/[monitorId]",function(){return s(56856)}])},34929:function(e,t,s){"use strict";var n=s(24246),i=s(64925),r=s.n(i),o=s(27378),a=s(16134),l=s(30002),d=s(28079),c=s(57072);let u=()=>{let{isLoading:e}=(0,d.fd)(),t=(0,a.C)(d.U3),{isLoading:s}=(0,c.MO)(),n=(0,a.C)(c.qb),{isLoading:i}=(0,l.te)();return{dataUses:t,dataSubjects:(0,a.C)(l.ZL),dataCategories:n,isLoading:e||s||i}};t.Z=()=>{let{dataUses:e,dataCategories:t,dataSubjects:s,isLoading:i}=u(),a=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return e.split(".").slice(0,t).join(".")},l=function(e,t){let s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,n=t(e);if(!n)return{};let i=t(a(e,s)),r=!!n.parent_key;return{name:n.name||void 0,primaryName:r&&(null==i?void 0:i.name)!==n.name&&(null==i?void 0:i.name)||void 0}},d=function(e,t){let s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,{name:i,primaryName:r}=l(e,t,s);return i?r?(0,n.jsxs)(o.Fragment,{children:[(0,n.jsxs)("strong",{children:[r,":"]})," ",i]},e):(0,n.jsx)("strong",{children:i},e):e},c=t=>r()(e,{fides_key:t}),g=e=>r()(t,{fides_key:e}),m=e=>r()(s,{fides_key:e});return{getDataUses:()=>e,getDataUseByKey:c,getDataUseDisplayName:e=>d(e,c,1),getDataUseDisplayNameProps:e=>l(e,c,1),getDataCategories:()=>t,getDataCategoryByKey:g,getDataCategoryDisplayName:e=>d(e,g,2),getDataCategoryDisplayNameProps:e=>l(e,g,2),getDataSubjects:()=>s,getDataSubjectByKey:m,getDataSubjectDisplayName:e=>{let t=m(e);return t?t.name:e},getPrimaryKey:a,isLoading:i}}},37059:function(e,t,s){"use strict";s.d(t,{Ak:function(){return m},EY:function(){return c},Ud:function(){return r},Vr:function(){return v},WJ:function(){return a},nP:function(){return d},nS:function(){return u},rs:function(){return l},sX:function(){return g},wi:function(){return o}});var n=s(78780),i=s(16394);let{useGetAggregateMonitorResultsQuery:r,useGetDiscoveredSystemAggregateQuery:o,useGetDiscoveredAssetsQuery:a,useAddMonitorResultSystemsMutation:l,useIgnoreMonitorResultSystemsMutation:d,useAddMonitorResultAssetsMutation:c,useIgnoreMonitorResultAssetsMutation:u,useUpdateAssetsSystemMutation:g,useUpdateAssetsDataUseMutation:m,useUpdateAssetsMutation:v}=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:r}=e;return{url:"/plus/discovery-monitor/".concat(t,"/results"),params:{resolved_system_id:s,page:n,size:i,search:r,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)},56856:function(e,t,s){"use strict";s.r(t),s.d(t,{default:function(){return R}});var n=s(24246),i=s(86677),r=s(35287),o=s(77830),a=s(58754),l=s(59003),d=s(92222),c=s(56351),u=s(27378),g=s(812),m=s(14047),v=s(14481),y=s(37059),h=s(31883),f=s(57454),p=s(34929),_=s(72625),x=s(78238),j=e=>{var t,s;let{system:i}=e,{getDataUseDisplayName:r}=(0,p.Z)(),o=(null!==(s=null===(t=i.data_uses)||void 0===t?void 0:t.filter(e=>(0,x.Z)(e)))&&void 0!==s?s:[]).map(e=>({label:r(e),key:e}));return(0,n.jsx)(_.mb,{values:o})};let b=e=>{let{monitorId:t,system:s}=e,[i,{isLoading:r}]=(0,y.rs)(),[a,{isLoading:l}]=(0,y.nP)(),{successAlert:d,errorAlert:u}=(0,m.V)(),v=r||l,{id:h,name:f,system_key:p,total_updates:_}=s,x=async()=>{let e=await i({monitor_config_key:t,resolved_system_ids:[h]});(0,g.D4)(e)?u((0,g.e$)(e.error)):d(p?"".concat(_," assets from ").concat(f," have been added to the system inventory."):"".concat(f," and ").concat(_," assets have been added to the system inventory. ").concat(f," is now configured for consent."),"Confirmed")},j=async()=>{let e=await a({monitor_config_key:t,resolved_system_ids:[h||o.Kl]});(0,g.D4)(e)?u((0,g.e$)(e.error)):d(f?"".concat(_," assets from ").concat(f," have been ignored and will not appear in future scans."):"".concat(_," uncategorized assets have been ignored and will not appear in future scans."),"Confirmed")};return(0,n.jsxs)(c.vyj,{children:[(0,n.jsx)(c.esZ,{title:s.id?void 0:"These assets must be categorized before you can add them to the inventory.",children:(0,n.jsx)(c.wpx,{"data-testid":"add-btn",size:"small",onClick:x,disabled:!s.id||v,loading:r,children:"Add"})}),(0,n.jsx)(c.wpx,{"data-testid":"ignore-btn",size:"small",onClick:j,disabled:v,loading:l,children:"Ignore"})]})};var w=s(56839);let k=e=>{let{system:t}=e;return(0,n.jsxs)(c.kCb,{alignItems:"center",height:"100%",children:[!(null==t?void 0:t.system_key)&&(0,n.jsx)(c.ua7,{label:"New system",children:(0,n.jsx)("span",{children:w.QL.Change})}),(0,n.jsx)(c.xvT,{fontSize:"xs",fontWeight:"semibold",lineHeight:4,overflow:"hidden",textOverflow:"ellipsis",children:(null==t?void 0:t.name)||"Uncategorized assets"})]})},C=e=>{let t=(0,d.Cl)();return{columns:[t.display({id:"select",cell:e=>{let{row:t}=e;return(0,n.jsx)(v.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)(v.k,{isChecked:t.getIsAllPageRowsSelected(),isIndeterminate:t.getIsSomeRowsSelected(),onChange:t.getToggleAllRowsSelectedHandler(),dataTestId:"select-all-rows"})},maxSize:40,meta:{disableRowClick:!0}}),t.accessor(e=>e.name,{id:"system_name",cell:e=>(0,n.jsx)(k,{system:e.row.original}),header:"System",size:300}),t.accessor(e=>e.total_updates,{id:"total_updates",cell:e=>(0,n.jsx)(v.G3,{value:e.getValue()}),header:"Assets",size:80}),t.display({id:"data_use",cell:e=>(0,n.jsx)(j,{system:e.row.original}),header:"Categories of consent",size:400,meta:{disableRowClick:!0}}),t.accessor(e=>e.locations,{id:"locations",cell:e=>(0,n.jsx)(v.G3,{value:e.getValue().length>1?"".concat(e.getValue().length," locations"):e.getValue()[0]}),header:"Locations"}),t.accessor(e=>e.domains,{id:"domains",cell:e=>(0,n.jsx)(v.G3,{value:e.getValue().length>1?"".concat(e.getValue().length," domains"):e.getValue()[0]}),header:"Domains"}),t.display({id:"actions",cell:t=>(0,n.jsx)(b,{system:t.row.original,monitorId:e}),header:"Actions",meta:{disableRowClick:!0}})]}},D=e=>{let{monitorId:t}=e,s=(0,i.useRouter)(),{PAGE_SIZES:r,pageSize:a,setPageSize:p,onPreviousPageClick:_,isPreviousPageDisabled:x,onNextPageClick:j,isNextPageDisabled:b,startRange:w,endRange:k,pageIndex:D,setTotalPages:R,resetPageIndexToDefault:S}=(0,v.oi)(),[P,{isLoading:T}]=(0,y.rs)(),[A,{isLoading:M}]=(0,y.nP)(),{successAlert:I,errorAlert:z}=(0,m.V)(),[L,N]=(0,u.useState)(""),[q,E]=(0,u.useState)({});(0,u.useEffect)(()=>{S()},[t,L,S]);let{data:U,isLoading:V,isFetching:Z}=(0,y.wi)({key:t,page:D,size:a,search:L});(0,u.useEffect)(()=>{U&&R(U.pages||1)},[U,R]);let{columns:O}=C(t),H=(0,l.b7)({getCoreRowModel:(0,d.sC)(),columns:O,manualPagination:!0,data:(null==U?void 0:U.items)||[],columnResizeMode:"onChange",onRowSelectionChange:E,state:{rowSelection:q}}),K=H.getSelectedRowModel().rows,$=K.some(e=>null===e.original.id);if(V)return(0,n.jsx)(v.I4,{rowHeight:36,numRows:36});let G=async()=>{let e=K.reduce((e,t)=>e+t.original.total_updates,0),s=await P({monitor_config_key:t,resolved_system_ids:K.map(e=>e.original.id)});(0,h.D4)(s)?z((0,g.e$)(s.error)):(I("".concat(e," assets have been added to the system inventory.")),E({}))},W=async()=>{let e=K.reduce((e,t)=>e+t.original.total_updates,0),s=await A({monitor_config_key:t,resolved_system_ids:K.map(e=>{var t;return null!==(t=e.original.id)&&void 0!==t?t:o.Kl})});(0,h.D4)(s)?z((0,g.e$)(s.error)):(I("".concat(e," assets have been ignored and will not appear in future scans.")),E({}))};return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(v.Q$,{children:(0,n.jsxs)(c.kCb,{direction:"row",alignItems:"center",justifyContent:"space-between",width:"full",children:[(0,n.jsx)(c.kCb,{gap:6,align:"center",children:(0,n.jsx)(c.xuv,{flexShrink:0,children:(0,n.jsx)(f.M,{value:L,onChange:N})})}),(0,n.jsxs)(c.kCb,{align:"center",children:[!!K.length&&(0,n.jsx)(c.xvT,{fontSize:"xs",fontWeight:"semibold",minW:16,mr:6,"data-testid":"selected-count",children:"".concat(K.length," selected")}),(0,n.jsxs)(c.v2r,{children:[(0,n.jsx)(c.j2t,{as:c.wpx,icon:(0,n.jsx)(c.PJP._ME,{}),iconPosition:"end",loading:T||M,"data-testid":"bulk-actions-menu",disabled:!K.length,type:"primary",children:"Actions"}),(0,n.jsxs)(c.qyq,{children:[(0,n.jsx)(c.esZ,{title:$?"Uncategorized assets can't be added to the inventory":null,placement:"left",children:(0,n.jsx)(c.sNh,{fontSize:"small",onClick:G,"data-testid":"bulk-add",isDisabled:$,children:"Add"})}),(0,n.jsx)(c.sNh,{fontSize:"small",onClick:W,"data-testid":"bulk-ignore",children:"Ignore"})]})]})]})]})}),(0,n.jsx)(v.ZK,{tableInstance:H,onRowClick:e=>{var n;s.push("".concat(o.vi,"/").concat(t,"/").concat(null!==(n=e.id)&&void 0!==n?n:o.Kl))},emptyTableNotice:(0,n.jsx)(c.oj8,{image:c.oj8.PRESENTED_IMAGE_SIMPLE,description:"All caught up!"})}),(0,n.jsx)(v.s8,{totalRows:(null==U?void 0:U.total)||0,pageSizes:r,setPageSize:p,onPreviousPageClick:_,isPreviousPageDisabled:x||Z,onNextPageClick:j,isNextPageDisabled:b||Z,startRange:w,endRange:k})]})};var R=()=>{let e=decodeURIComponent((0,i.useRouter)().query.monitorId);return(0,n.jsxs)(r.Z,{title:"Action center - Discovered assets by system",children:[(0,n.jsx)(a.Z,{heading:"Action center",breadcrumbItems:[{title:"All activity",href:o.vi},{title:e}]}),(0,n.jsx)(D,{monitorId:e})]})}},31883:function(e,t,s){"use strict";s.d(t,{Bw:function(){return n.Bw},D4:function(){return n.D4}});var n=s(19043)}},function(e){e.O(0,[8033,2780,2858,2866,9278,4481,9999,2888,9774,179],function(){return e(e.s=86850)}),_N_E=e.O()}]);
@@ -1 +0,0 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8443],{74833:function(t,e,n){var r=n(56127),i=/^\s+/;t.exports=function(t){return t?t.slice(0,r(t)+1).replace(i,""):t}},56127:function(t){var e=/\s/;t.exports=function(t){for(var n=t.length;n--&&e.test(t.charAt(n)););return n}},66726:function(t,e,n){var r=n(11611),i=n(82846),s=n(91936),o=Math.max,a=Math.min;t.exports=function(t,e,n){var c,l,u,d,m,p,f=0,v=!1,g=!1,y=!0;if("function"!=typeof t)throw TypeError("Expected a function");function h(e){var n=c,r=l;return c=l=void 0,f=e,d=t.apply(r,n)}function x(t){var n=t-p,r=t-f;return void 0===p||n>=e||n<0||g&&r>=u}function j(){var t,n,r,s=i();if(x(s))return b(s);m=setTimeout(j,(t=s-p,n=s-f,r=e-t,g?a(r,u-n):r))}function b(t){return(m=void 0,y&&c)?h(t):(c=l=void 0,d)}function _(){var t,n=i(),r=x(n);if(c=arguments,l=this,p=n,r){if(void 0===m)return f=t=p,m=setTimeout(j,e),v?h(t):d;if(g)return clearTimeout(m),m=setTimeout(j,e),h(p)}return void 0===m&&(m=setTimeout(j,e)),d}return e=s(e)||0,r(n)&&(v=!!n.leading,u=(g="maxWait"in n)?o(s(n.maxWait)||0,e):u,y="trailing"in n?!!n.trailing:y),_.cancel=function(){void 0!==m&&clearTimeout(m),f=0,c=p=l=m=void 0},_.flush=function(){return void 0===m?d:b(i())},_}},11611:function(t){t.exports=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}},55193:function(t,e,n){var r=n(99736),i=n(92360);t.exports=function(t){return"symbol"==typeof t||i(t)&&"[object Symbol]"==r(t)}},82846:function(t,e,n){var r=n(77400);t.exports=function(){return r.Date.now()}},91936:function(t,e,n){var r=n(74833),i=n(11611),s=n(55193),o=0/0,a=/^[-+]0x[0-9a-f]+$/i,c=/^0b[01]+$/i,l=/^0o[0-7]+$/i,u=parseInt;t.exports=function(t){if("number"==typeof t)return t;if(s(t))return o;if(i(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=i(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=r(t);var n=c.test(t);return n||l.test(t)?u(t.slice(2),n?2:8):a.test(t)?o:+t}},40741:function(t,e,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/data-discovery/action-center",function(){return n(51500)}])},77213:function(t,e,n){"use strict";n.d(e,{Z:function(){return m}});var r=n(24246),i=n(56351),s=n(88038),o=n.n(s),a=n(86677);n(27378);var c=n(25980),l=n(90867),u=n(77830),d=()=>{let t=(0,a.useRouter)();return(0,r.jsx)(i.xuv,{bg:"gray.50",border:"1px solid",borderColor:"blue.400",borderRadius:"md",justifyContent:"space-between",p:5,mb:5,mt:5,children:(0,r.jsxs)(i.xuv,{children:[(0,r.jsxs)(i.Kqy,{direction:{base:"column",sm:"row"},justifyContent:"space-between",children:[(0,r.jsx)(i.xvT,{fontWeight:"semibold",children:"Configure your storage and messaging provider"}),(0,r.jsx)(i.wpx,{onClick:()=>{t.push(u.fz)},children:"Configure"})]}),(0,r.jsxs)(i.xvT,{children:["Before Fides can process your privacy requests we need two simple steps to configure your storage and email client."," "]})]})})},m=t=>{let{children:e,title:n,padded:s=!0,mainProps:u}=t,m=(0,c.hz)(),p=(0,a.useRouter)(),f="/privacy-requests"===p.pathname||"/datastore-connection"===p.pathname,v=!(m.flags.privacyRequestsConfiguration&&f),{data:g}=(0,l.JE)(void 0,{skip:v}),{data:y}=(0,l.PW)(void 0,{skip:v}),h=m.flags.privacyRequestsConfiguration&&(!g||!y)&&f;return(0,r.jsxs)(i.kCb,{"data-testid":n,direction:"column",h:"100vh",children:[(0,r.jsxs)(o(),{children:[(0,r.jsxs)("title",{children:["Fides Admin UI - ",n]}),(0,r.jsx)("meta",{name:"description",content:"Privacy Engineering Platform"}),(0,r.jsx)("link",{rel:"icon",href:"/favicon.ico"})]}),(0,r.jsxs)(i.kCb,{as:"main",direction:"column",py:s?6:0,px:s?10:0,h:s?"calc(100% - 48px)":"full",flex:1,minWidth:0,overflow:"auto",...u,children:[h?(0,r.jsx)(d,{}):null,e]})]})}},58754:function(t,e,n){"use strict";var r=n(24246),i=n(56351),s=n(70788);e.Z=t=>{let{heading:e,breadcrumbItems:n,isSticky:o=!0,children:a,rightContent:c,style:l,...u}=t;return(0,r.jsxs)("div",{...u,style:o?{position:"sticky",top:"-24px",paddingTop:"24px",paddingBottom:"24px",paddingLeft:"40px",marginLeft:"-40px",paddingRight:"40px",marginRight:"-40px",marginTop:"-24px",left:0,zIndex:20,backgroundColor:"white",...l}:{paddingBottom:"24px",...l},children:[(0,r.jsxs)(i.jqI,{justify:"space-between",children:["string"==typeof e?(0,r.jsx)(i.X6q,{className:n||a?"pb-4":void 0,fontSize:"2xl","data-testid":"page-heading",children:e}):e,c&&(0,r.jsx)("div",{"data-testid":"page-header-right-content",children:c})]}),!!n&&(0,r.jsx)(s.m,{className:a?"pb-4":void 0,items:n,"data-testid":"page-breadcrumb"}),a]})}},70788:function(t,e,n){"use strict";n.d(e,{m:function(){return l}});var r=n(24246),i=n(56351),s=n(79894),o=n.n(s),a=n(27378);let{Text:c}=i.AntTypography,l=t=>{let{items:e,...n}=t,s=(0,a.useMemo)(()=>null==e?void 0:e.map((t,n)=>{let s=n===e.length-1,a={...t},l=a.onClick&&!a.href;return("string"==typeof a.title&&(a.title=(0,r.jsx)(c,{style:{color:"inherit",maxWidth:s?void 0:400},ellipsis:!s,children:a.title})),l)?a.title=(0,r.jsx)(i.wpx,{type:"text",size:"small",icon:a.icon,onClick:a.onClick,className:"ant-breadcrumb-link -mt-px px-1 text-inherit",children:a.title}):(a.icon&&(a.title=(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("span",{className:"anticon align-text-bottom",children:a.icon}),a.title]})),a.href&&a.title&&(a.title=(0,r.jsx)(o(),{href:a.href,className:"ant-breadcrumb-link",children:a.title}),delete a.href)),a}),[e]);return(0,r.jsx)(i.zrq,{items:s,...n})}},57454:function(t,e,n){"use strict";n.d(e,{M:function(){return c}});var r=n(24246),i=n(66726),s=n.n(i),o=n(27378),a=n(86780);let c=t=>{let{value:e,onChange:n}=t,[i,c]=(0,o.useState)(e),l=s()(n,500),u=(0,o.useCallback)(t=>{c(t),l(t)},[]);return(0,r.jsx)(a.Z,{search:i,onChange:u,onClear:()=>{c(""),n("")}})}},37059:function(t,e,n){"use strict";n.d(e,{Ak:function(){return p},EY:function(){return u},Ud:function(){return s},Vr:function(){return f},WJ:function(){return a},nP:function(){return l},nS:function(){return d},rs:function(){return c},sX:function(){return m},wi:function(){return o}});var r=n(78780),i=n(16394);let{useGetAggregateMonitorResultsQuery:s,useGetDiscoveredSystemAggregateQuery:o,useGetDiscoveredAssetsQuery:a,useAddMonitorResultSystemsMutation:c,useIgnoreMonitorResultSystemsMutation:l,useAddMonitorResultAssetsMutation:u,useIgnoreMonitorResultAssetsMutation:d,useUpdateAssetsSystemMutation:m,useUpdateAssetsDataUseMutation:p,useUpdateAssetsMutation:f}=r.u.injectEndpoints({endpoints:t=>({getAggregateMonitorResults:t.query({query:t=>{let{page:e=1,size:n=20,search:r}=t;return{url:"/plus/discovery-monitor/aggregate-results",params:{page:e,size:n,search:r,diff_status:"addition"}}},providesTags:["Discovery Monitor Results"]}),getDiscoveredSystemAggregate:t.query({query:t=>{let{key:e,page:n=1,size:r=20,search:i}=t;return{url:"/plus/discovery-monitor/system-aggregate-results",params:{monitor_config_id:e,page:n,size:r,search:i,diff_status:"addition"}}},providesTags:["Discovery Monitor Results"]}),getDiscoveredAssets:t.query({query:t=>{let{key:e,system:n,page:r=1,size:i=20,search:s}=t;return{url:"/plus/discovery-monitor/".concat(e,"/results"),params:{resolved_system_id:n,page:r,size:i,search:s,diff_status:"addition"}}},providesTags:()=>["Discovery Monitor Results"]}),addMonitorResultSystems:t.mutation({query:t=>{let{monitor_config_key:e,resolved_system_ids:n}=t,r=(0,i.du)(n,"resolved_system_ids");return{method:"POST",url:"/plus/discovery-monitor/".concat(e,"/promote?").concat(r)}},invalidatesTags:["Discovery Monitor Results"]}),ignoreMonitorResultSystems:t.mutation({query:t=>{let{monitor_config_key:e,resolved_system_ids:n}=t,r=(0,i.du)(n,"resolved_system_ids");return{method:"POST",url:"/plus/discovery-monitor/".concat(e,"/mute?").concat(r)}},invalidatesTags:["Discovery Monitor Results"]}),addMonitorResultAssets:t.mutation({query:t=>{var e;let n=new URLSearchParams;return null===(e=t.urnList)||void 0===e||e.forEach(t=>n.append("staged_resource_urns",t)),{method:"POST",url:"/plus/discovery-monitor/promote?".concat(n)}},invalidatesTags:["Discovery Monitor Results"]}),ignoreMonitorResultAssets:t.mutation({query:t=>{var e;let n=new URLSearchParams;return null===(e=t.urnList)||void 0===e||e.forEach(t=>n.append("staged_resource_urns",t)),{method:"POST",url:"/plus/discovery-monitor/mute?".concat(n)}},invalidatesTags:["Discovery Monitor Results"]}),updateAssetsSystem:t.mutation({query:t=>({method:"PATCH",url:"/plus/discovery-monitor/".concat(t.monitorId,"/results"),body:t.urnList.map(e=>({urn:e,system_key:t.systemKey}))}),invalidatesTags:["Discovery Monitor Results","System Assets"]}),updateAssetsDataUse:t.mutation({query:t=>({method:"PATCH",url:"/plus/discovery-monitor/".concat(t.monitorId,"/results"),body:t.urnList.map(e=>({urn:e,data_uses:t.dataUses}))}),invalidatesTags:["Discovery Monitor Results"]}),updateAssets:t.mutation({query:t=>({method:"PATCH",url:"/plus/discovery-monitor/".concat(t.monitorId,"/results"),body:t.assets}),invalidatesTags:["Discovery Monitor Results"]})})})},51500:function(t,e,n){"use strict";n.r(e),n.d(e,{default:function(){return b}});var r=n(24246),i=n(56351),s=n(79894),o=n.n(s),a=n(27378),c=n(77213),l=n(77830),u=n(58754),d=n(14481),m=n(37059);let p=t=>{let{isConfigLoading:e}=t;return(0,r.jsx)(c.Z,{title:"Action center",mainProps:{className:"h-full"},children:(0,r.jsx)(i.jqI,{justify:"center",align:"center",className:"h-full",children:e?(0,r.jsx)(i.$jN,{color:"primary.900"}):(0,r.jsx)(i.DUx,{message:"Coming soon...",description:"Action center is currently disabled.",type:"info",showIcon:!0})})})},f=()=>(0,r.jsx)(i.oj8,{image:i.oj8.PRESENTED_IMAGE_SIMPLE,description:"All caught up! Set up an integration monitor to track your infrastructure in greater detail.",children:(0,r.jsx)(o(),{href:l.KH,passHref:!0,legacyBehavior:!0,children:(0,r.jsx)(i.wpx,{type:"primary",children:"Visit integrations"})})});var v=n(7195),g=n(16394);let{Text:y}=i.AntTypography,h=t=>{let{monitorSummary:e,showSkeleton:n,...s}=t,[c,u]=(0,a.useState)(void 0),{name:d,property:m,total_updates:p,updates:f,last_monitored:h,warning:x,key:j}=e,b=Object.entries(f).map(t=>"".concat(t[1]," ").concat(t[0],"s")).join(", "),_=h?(0,v.B)(new Date(h),new Date,{addSuffix:!0}):void 0;return(0,a.useEffect)(()=>{m&&u((0,g.tl)(m))},[m]),(0,r.jsx)(i.krs.Item,{"data-testid":"monitor-result-".concat(j),...s,children:(0,r.jsxs)(i.N_L,{avatar:!0,title:!1,loading:n,active:!0,children:[(0,r.jsx)(i.krs.Item.Meta,{avatar:(0,r.jsx)(i.t3Z,{src:c,size:"small",icon:(0,r.jsx)(i.PJP.huD,{}),style:{backgroundColor:"transparent",color:"var(--ant-color-text)"}}),title:(0,r.jsxs)(o(),{href:"".concat(l.vi,"/").concat(j),className:"whitespace-nowrap",children:["".concat(p," assets detected").concat(m?" on ".concat(m):""),!!x&&(0,r.jsx)(i.esZ,{title:"string"==typeof x?x:void 0,children:(0,r.jsx)(i.PJP.OdJ,{className:"ml-1 inline-block align-middle",style:{color:"var(--fidesui-error)"}})})]}),description:"".concat(b," detected.")}),(0,r.jsxs)(i.jqI,{className:"gap-12",children:[(0,r.jsx)(y,{style:{maxWidth:300},ellipsis:{tooltip:d},children:d}),!!_&&(0,r.jsx)(i.esZ,{title:(0,g.p6)(h),children:(0,r.jsx)(y,{"data-testid":"monitor-date",children:_})})]})]})})};var x=n(57454),j=n(99716),b=()=>{var t;let e=(0,i.pmc)(),{PAGE_SIZES:n,pageSize:s,setPageSize:v,onPreviousPageClick:g,isPreviousPageDisabled:y,onNextPageClick:b,isNextPageDisabled:_,startRange:w,endRange:T,pageIndex:k,setTotalPages:P,resetPageIndexToDefault:C}=(0,d.oi)(),[R,S]=(0,a.useState)(""),{data:A,isLoading:q}=(0,j.tB)({api_set:!1}),M=!!(null==A?void 0:null===(t=A.detection_discovery)||void 0===t?void 0:t.website_monitor_enabled);(0,a.useEffect)(()=>{C()},[R,C]);let{data:E,isError:N,isLoading:D,isFetching:I}=(0,m.Ud)({page:k,size:s,search:R},{skip:q||!M});(0,a.useEffect)(()=>{N&&e&&M&&e({title:"Error fetching data",description:"Please try again later",status:"error"})},[N,e,M]),(0,a.useEffect)(()=>{E&&P(E.total||1)},[E,P]);let L=(null==E?void 0:E.items)||[],z=I?Array.from({length:s},(t,e)=>({key:e.toString(),updates:[],last_monitored:null})):[],O=(0,a.useCallback)(t=>[(0,r.jsx)(o(),{href:"".concat(l.vi,"/").concat(t),passHref:!0,legacyBehavior:!0,children:(0,r.jsx)(i.wpx,{type:"link",className:"p-0","data-testid":"review-button-".concat(t),children:"Review"})},"review")],[]);return M?(0,r.jsxs)(c.Z,{title:"Action center",children:[(0,r.jsx)(u.Z,{heading:"Action center",breadcrumbItems:[{title:"All activity"}]}),(0,r.jsx)(i.jqI,{className:"justify-between py-6",children:(0,r.jsx)(x.M,{value:R,onChange:S})}),(0,r.jsx)(i.krs,{loading:D,dataSource:L||z,locale:{emptyText:(0,r.jsx)(f,{})},renderItem:t=>!!t&&(0,r.jsx)(h,{showSkeleton:I,monitorSummary:t,actions:O(t.key)},t.key)}),!!L&&!!(null==E?void 0:E.total)&&E.total>s&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(i.htM,{className:"mb-6 mt-0"}),(0,r.jsx)(d.s8,{totalRows:(null==E?void 0:E.total)||0,pageSizes:n,setPageSize:v,onPreviousPageClick:g,isPreviousPageDisabled:y||I,onNextPageClick:b,isNextPageDisabled:_||I,startRange:w,endRange:T})]})]}):(0,r.jsx)(p,{isConfigLoading:q})}}},function(t){t.O(0,[8033,2780,4481,2888,9774,179],function(){return t(t.s=40741)}),_N_E=t.O()}]);