ethyca-fides 2.58.3b1__py2.py3-none-any.whl → 2.59.0__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 (149) hide show
  1. {ethyca_fides-2.58.3b1.dist-info → ethyca_fides-2.59.0.dist-info}/METADATA +1 -1
  2. {ethyca_fides-2.58.3b1.dist-info → ethyca_fides-2.59.0.dist-info}/RECORD +140 -140
  3. fides/_version.py +3 -3
  4. fides/api/models/comment.py +11 -0
  5. fides/api/models/manual_webhook.py +89 -14
  6. fides/api/models/privacy_experience.py +1 -0
  7. fides/api/models/tcf_publisher_restrictions.py +1 -0
  8. fides/api/schemas/manual_webhook_schemas.py +9 -8
  9. fides/ui-build/static/admin/404.html +1 -1
  10. fides/ui-build/static/admin/_next/static/chunks/{1376-f2e68d1cfdacfd48.js → 1376-92890c17ce39ca0d.js} +1 -1
  11. fides/ui-build/static/admin/_next/static/chunks/{146-9567a3d2f9e21b83.js → 146-d1820217dc36d46d.js} +1 -1
  12. fides/ui-build/static/admin/_next/static/chunks/{1817-5c32a7592d18a859.js → 1817-6abbe957a53026d7.js} +1 -1
  13. fides/ui-build/static/admin/_next/static/chunks/{1904-689b67a43153d56c.js → 1904-281183a117e26585.js} +1 -1
  14. fides/ui-build/static/admin/_next/static/chunks/{2479-bf5586191c72fb2b.js → 2479-b4f7a1c7c711cb65.js} +1 -1
  15. fides/ui-build/static/admin/_next/static/chunks/{3244-c728351365b77871.js → 3244-3d94bf3393366412.js} +1 -1
  16. fides/ui-build/static/admin/_next/static/chunks/{3702-70f90912a76ecef3.js → 3702-3d814671c31eaca3.js} +1 -1
  17. fides/ui-build/static/admin/_next/static/chunks/{3855-c02445526594fc1f.js → 3855-237afbbea7f54707.js} +1 -1
  18. fides/ui-build/static/admin/_next/static/chunks/{3872-0b61e674a790491b.js → 3872-c53d74aebd12cfd3.js} +1 -1
  19. fides/ui-build/static/admin/_next/static/chunks/401-50974f107c2712fc.js +1 -0
  20. fides/ui-build/static/admin/_next/static/chunks/{4060-fd2f97afa5ba80d4.js → 4060-52fd85fb1e15a2b8.js} +1 -1
  21. fides/ui-build/static/admin/_next/static/chunks/{4121-28beb1c0ce3330b6.js → 4121-476f657b03a78965.js} +1 -1
  22. fides/ui-build/static/admin/_next/static/chunks/{4481-865277e9623e6014.js → 4481-288d74a33473cff7.js} +1 -1
  23. fides/ui-build/static/admin/_next/static/chunks/{5480-ff3e05a015ee2799.js → 5480-1623dbacdf4e6794.js} +1 -1
  24. fides/ui-build/static/admin/_next/static/chunks/{5487-f281d138cb89b5c9.js → 5487-9a2aecb0ec63d567.js} +1 -1
  25. fides/ui-build/static/admin/_next/static/chunks/5973-2db5181149073311.js +1 -0
  26. fides/ui-build/static/admin/_next/static/chunks/{6372-8479ec83d73af02b.js → 6372-2aee10b79089521a.js} +1 -1
  27. fides/ui-build/static/admin/_next/static/chunks/{6853-3562089cc16a6799.js → 6853-ca5dacd25c9ccb7c.js} +1 -1
  28. fides/ui-build/static/admin/_next/static/chunks/{6954-23438f7f9729748b.js → 6954-127745bfdc5bc0b3.js} +1 -1
  29. fides/ui-build/static/admin/_next/static/chunks/{7751-95349028f1ee3fb5.js → 7751-3913b8c055f599e5.js} +1 -1
  30. fides/ui-build/static/admin/_next/static/chunks/{79-488979db197d250c.js → 79-77cfed02164241ca.js} +1 -1
  31. fides/ui-build/static/admin/_next/static/chunks/{9572-82484a4dd5ebc57e.js → 9572-2b9b10e146130c85.js} +1 -1
  32. fides/ui-build/static/admin/_next/static/chunks/9767-bf415d0daea960cd.js +1 -0
  33. fides/ui-build/static/admin/_next/static/chunks/{9951-8425f24ce61496bd.js → 9951-66aad0602aadfbe2.js} +1 -1
  34. fides/ui-build/static/admin/_next/static/chunks/pages/{_app-fadef5a6a65d3ec4.js → _app-13a604eb8d39dffc.js} +15 -15
  35. fides/ui-build/static/admin/_next/static/chunks/pages/{add-systems-661ff00f91fe62df.js → add-systems-a6926f7ec7ad10cf.js} +1 -1
  36. fides/ui-build/static/admin/_next/static/chunks/pages/consent/{privacy-experience-7dcbcd6f74029d90.js → privacy-experience-7eeeee3769e73f78.js} +1 -1
  37. fides/ui-build/static/admin/_next/static/chunks/pages/consent/{privacy-notices-c27810fc7d8ad4c0.js → privacy-notices-65091908d6296afc.js} +1 -1
  38. fides/ui-build/static/admin/_next/static/chunks/pages/consent/{reporting-71c8a8557a0fb316.js → reporting-7a1976c0d1aca8b6.js} +1 -1
  39. fides/ui-build/static/admin/_next/static/chunks/pages/{data-catalog-6dae602b509b00b5.js → data-catalog-75989f9732d90793.js} +1 -1
  40. fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/action-center/[monitorId]/{[systemId]-f149a0df946c05db.js → [systemId]-6b3d1fe762c747d8.js} +1 -1
  41. fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/action-center/[monitorId]-61eafb8444bffb76.js +1 -0
  42. fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/activity-e7869f658e3017b9.js +1 -0
  43. fides/ui-build/static/admin/_next/static/chunks/pages/dataset/{new-afb5d98731bc1bb1.js → new-5aff1d01c6c30ad6.js} +1 -1
  44. fides/ui-build/static/admin/_next/static/chunks/pages/{dataset-13e06b0a4a8c114c.js → dataset-f4d57b3432c57112.js} +1 -1
  45. fides/ui-build/static/admin/_next/static/chunks/pages/datastore-connection/{[id]-d796cf4c25d0b988.js → [id]-b2b1168d0361baa8.js} +1 -1
  46. fides/ui-build/static/admin/_next/static/chunks/pages/datastore-connection/new-c804349a417a888b.js +1 -0
  47. fides/ui-build/static/admin/_next/static/chunks/pages/{datastore-connection-be295129568a929c.js → datastore-connection-0faa9b3c4555e585.js} +1 -1
  48. fides/ui-build/static/admin/_next/static/chunks/pages/{index-b0926c4083d4ac88.js → index-e72904e316ede1b0.js} +1 -1
  49. fides/ui-build/static/admin/_next/static/chunks/pages/integrations/[id]-59d30d48fcae067c.js +1 -0
  50. fides/ui-build/static/admin/_next/static/chunks/pages/privacy-requests/{[id]-b1d39bb680cfd6d2.js → [id]-54ea39f203182c53.js} +1 -1
  51. fides/ui-build/static/admin/_next/static/chunks/pages/privacy-requests/configure/{messaging-ea8c82f36520e542.js → messaging-d889076067104e56.js} +1 -1
  52. fides/ui-build/static/admin/_next/static/chunks/pages/privacy-requests/configure/{storage-2a56dc41a292a468.js → storage-3355b4803b2916f3.js} +1 -1
  53. fides/ui-build/static/admin/_next/static/chunks/pages/{privacy-requests-f394d59981a4f50c.js → privacy-requests-3ac47981f1e2b0aa.js} +1 -1
  54. fides/ui-build/static/admin/_next/static/chunks/pages/reporting/{datamap-4e04234aa5dff9f8.js → datamap-fe743440d7eb007b.js} +1 -1
  55. fides/ui-build/static/admin/_next/static/chunks/pages/settings/{consent-b359f061d3b9d455.js → consent-cdc866af93898716.js} +1 -1
  56. fides/ui-build/static/admin/_next/static/chunks/pages/settings/{custom-fields-dcf102352d4d4d98.js → custom-fields-a7dc8113067dff42.js} +1 -1
  57. fides/ui-build/static/admin/_next/static/chunks/pages/settings/{organization-b208f9fd45ebb829.js → organization-5bcc7a6976e01a56.js} +1 -1
  58. fides/ui-build/static/admin/_next/static/chunks/pages/systems/configure/[id]/{test-datasets-37c8930711ca2b8e.js → test-datasets-0b47ff26897c1d9a.js} +1 -1
  59. fides/ui-build/static/admin/_next/static/chunks/pages/{systems-4f07a39a7def714a.js → systems-820893393f1516ee.js} +1 -1
  60. fides/ui-build/static/admin/_next/static/chunks/pages/{taxonomy-ec35b1f86d536b75.js → taxonomy-8fccd670220dbf60.js} +1 -1
  61. fides/ui-build/static/admin/_next/static/chunks/pages/user-management/profile/{[id]-963b0dbbf93b9e49.js → [id]-d527d1d1635541df.js} +1 -1
  62. fides/ui-build/static/admin/_next/static/chunks/pages/{user-management-cb40808c1509f191.js → user-management-facb8c0128a44cb1.js} +1 -1
  63. fides/ui-build/static/admin/_next/static/css/92c81f666644c594.css +1 -0
  64. fides/ui-build/static/admin/_next/static/tJ5K8Qm0MCCxhC_ThXm0s/_buildManifest.js +1 -0
  65. fides/ui-build/static/admin/add-systems/manual.html +1 -1
  66. fides/ui-build/static/admin/add-systems/multiple.html +1 -1
  67. fides/ui-build/static/admin/add-systems.html +1 -1
  68. fides/ui-build/static/admin/ant-poc.html +1 -1
  69. fides/ui-build/static/admin/consent/configure/add-vendors.html +1 -1
  70. fides/ui-build/static/admin/consent/configure.html +1 -1
  71. fides/ui-build/static/admin/consent/privacy-experience/[id].html +1 -1
  72. fides/ui-build/static/admin/consent/privacy-experience/new.html +1 -1
  73. fides/ui-build/static/admin/consent/privacy-experience.html +1 -1
  74. fides/ui-build/static/admin/consent/privacy-notices/[id].html +1 -1
  75. fides/ui-build/static/admin/consent/privacy-notices/new.html +1 -1
  76. fides/ui-build/static/admin/consent/privacy-notices.html +1 -1
  77. fides/ui-build/static/admin/consent/properties.html +1 -1
  78. fides/ui-build/static/admin/consent/reporting.html +1 -1
  79. fides/ui-build/static/admin/consent.html +1 -1
  80. fides/ui-build/static/admin/data-catalog/[systemId]/projects/[projectUrn]/[resourceUrn].html +1 -1
  81. fides/ui-build/static/admin/data-catalog/[systemId]/projects/[projectUrn].html +1 -1
  82. fides/ui-build/static/admin/data-catalog/[systemId]/projects.html +1 -1
  83. fides/ui-build/static/admin/data-catalog/[systemId]/resources/[resourceUrn].html +1 -1
  84. fides/ui-build/static/admin/data-catalog/[systemId]/resources.html +1 -1
  85. fides/ui-build/static/admin/data-catalog.html +1 -1
  86. fides/ui-build/static/admin/data-discovery/action-center/[monitorId]/[systemId].html +1 -1
  87. fides/ui-build/static/admin/data-discovery/action-center/[monitorId].html +1 -1
  88. fides/ui-build/static/admin/data-discovery/action-center.html +1 -1
  89. fides/ui-build/static/admin/data-discovery/activity.html +1 -1
  90. fides/ui-build/static/admin/data-discovery/detection/[resourceUrn].html +1 -1
  91. fides/ui-build/static/admin/data-discovery/detection.html +1 -1
  92. fides/ui-build/static/admin/data-discovery/discovery/[resourceUrn].html +1 -1
  93. fides/ui-build/static/admin/data-discovery/discovery.html +1 -1
  94. fides/ui-build/static/admin/datamap.html +1 -1
  95. fides/ui-build/static/admin/dataset/[datasetId]/[collectionName]/[...subfieldNames].html +1 -1
  96. fides/ui-build/static/admin/dataset/[datasetId]/[collectionName].html +1 -1
  97. fides/ui-build/static/admin/dataset/[datasetId].html +1 -1
  98. fides/ui-build/static/admin/dataset/new.html +1 -1
  99. fides/ui-build/static/admin/dataset.html +1 -1
  100. fides/ui-build/static/admin/datastore-connection/[id].html +1 -1
  101. fides/ui-build/static/admin/datastore-connection/new.html +1 -1
  102. fides/ui-build/static/admin/datastore-connection.html +1 -1
  103. fides/ui-build/static/admin/index.html +1 -1
  104. fides/ui-build/static/admin/integrations/[id].html +1 -1
  105. fides/ui-build/static/admin/integrations.html +1 -1
  106. fides/ui-build/static/admin/login/[provider].html +1 -1
  107. fides/ui-build/static/admin/login.html +1 -1
  108. fides/ui-build/static/admin/messaging/[id].html +1 -1
  109. fides/ui-build/static/admin/messaging/add-template.html +1 -1
  110. fides/ui-build/static/admin/messaging.html +1 -1
  111. fides/ui-build/static/admin/privacy-requests/[id].html +1 -1
  112. fides/ui-build/static/admin/privacy-requests/configure/messaging.html +1 -1
  113. fides/ui-build/static/admin/privacy-requests/configure/storage.html +1 -1
  114. fides/ui-build/static/admin/privacy-requests/configure.html +1 -1
  115. fides/ui-build/static/admin/privacy-requests.html +1 -1
  116. fides/ui-build/static/admin/properties/[id].html +1 -1
  117. fides/ui-build/static/admin/properties/add-property.html +1 -1
  118. fides/ui-build/static/admin/properties.html +1 -1
  119. fides/ui-build/static/admin/reporting/datamap.html +1 -1
  120. fides/ui-build/static/admin/settings/about.html +1 -1
  121. fides/ui-build/static/admin/settings/consent.html +1 -1
  122. fides/ui-build/static/admin/settings/custom-fields.html +1 -1
  123. fides/ui-build/static/admin/settings/domain-records.html +1 -1
  124. fides/ui-build/static/admin/settings/domains.html +1 -1
  125. fides/ui-build/static/admin/settings/email-templates.html +1 -1
  126. fides/ui-build/static/admin/settings/locations.html +1 -1
  127. fides/ui-build/static/admin/settings/organization.html +1 -1
  128. fides/ui-build/static/admin/settings/regulations.html +1 -1
  129. fides/ui-build/static/admin/systems/configure/[id]/test-datasets.html +1 -1
  130. fides/ui-build/static/admin/systems/configure/[id].html +1 -1
  131. fides/ui-build/static/admin/systems.html +1 -1
  132. fides/ui-build/static/admin/taxonomy.html +1 -1
  133. fides/ui-build/static/admin/user-management/new.html +1 -1
  134. fides/ui-build/static/admin/user-management/profile/[id].html +1 -1
  135. fides/ui-build/static/admin/user-management.html +1 -1
  136. fides/ui-build/static/admin/_next/static/Phr0wJQrVglnj5svYDeUY/_buildManifest.js +0 -1
  137. fides/ui-build/static/admin/_next/static/chunks/401-839481005c1ba95e.js +0 -1
  138. fides/ui-build/static/admin/_next/static/chunks/5973-28d2af853d8498d7.js +0 -1
  139. fides/ui-build/static/admin/_next/static/chunks/9255-336a890ada321f89.js +0 -1
  140. fides/ui-build/static/admin/_next/static/chunks/9767-d1d54cb9b74c0693.js +0 -1
  141. fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/action-center/[monitorId]-c5b3283cddb68c19.js +0 -1
  142. fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/activity-36ce3e322670e082.js +0 -1
  143. fides/ui-build/static/admin/_next/static/chunks/pages/datastore-connection/new-814849a549132ffa.js +0 -1
  144. fides/ui-build/static/admin/_next/static/chunks/pages/integrations/[id]-dadebdf2d6fbcc64.js +0 -1
  145. {ethyca_fides-2.58.3b1.dist-info → ethyca_fides-2.59.0.dist-info}/WHEEL +0 -0
  146. {ethyca_fides-2.58.3b1.dist-info → ethyca_fides-2.59.0.dist-info}/entry_points.txt +0 -0
  147. {ethyca_fides-2.58.3b1.dist-info → ethyca_fides-2.59.0.dist-info}/licenses/LICENSE +0 -0
  148. {ethyca_fides-2.58.3b1.dist-info → ethyca_fides-2.59.0.dist-info}/top_level.txt +0 -0
  149. /fides/ui-build/static/admin/_next/static/{Phr0wJQrVglnj5svYDeUY → tJ5K8Qm0MCCxhC_ThXm0s}/_ssgManifest.js +0 -0
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5973],{7617:function(e,t,s){s.d(t,{q:function(){return a}});var i=s(24246),n=s(77181);let a=e=>{let{label:t,isDisabled:s,...a}=e;return(0,i.jsx)(n.OK9,{"data-testid":"tab-".concat(t),_selected:{fontWeight:"600",color:"complimentary.500",borderColor:"complimentary.500"},fontSize:a.fontSize,fontWeight:"500",color:"gray.500",isDisabled:s||!1,children:t})};t.Z=e=>{let{data:t,border:s="partial",...r}=e;return(0,i.jsxs)(n.mQc,{colorScheme:"complimentary",...r,children:[(0,i.jsx)(n.tdY,{width:"partial"===s?"max-content":void 0,children:t.map(e=>(0,i.jsx)(a,{label:e.label,isDisabled:e.isDisabled,fontSize:r.fontSize},e.label))}),(0,i.jsx)(n.nPR,{children:t.map(e=>(0,i.jsx)(n.x45,{px:0,"data-testid":"tab-panel-".concat(e.label),children:e.content},e.label))})]})}},18225:function(e,t,s){var i=s(24246),n=s(77181);t.Z=e=>{let{...t}=e;return(0,i.jsx)(n.kCb,{boxSize:"full",align:"center",justify:"center",children:(0,i.jsx)(n.$jN,{color:"primary",...t})})}},77213:function(e,t,s){s.d(t,{Z:function(){return u}});var i=s(24246),n=s(77181),a=s(88038),r=s.n(a),o=s(86677);s(27378);var c=s(25980),d=s(90867),l=s(77830),h=()=>{let e=(0,o.useRouter)();return(0,i.jsx)(n.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)(n.xuv,{children:[(0,i.jsxs)(n.Kqy,{direction:{base:"column",sm:"row"},justifyContent:"space-between",children:[(0,i.jsx)(n.xvT,{fontWeight:"semibold",children:"Configure your storage and messaging provider"}),(0,i.jsx)(n.wpx,{onClick:()=>{e.push(l.fz)},children:"Configure"})]}),(0,i.jsxs)(n.xvT,{children:["Before Fides can process your privacy requests we need two simple steps to configure your storage and email client."," "]})]})})},u=e=>{let{children:t,title:s,padded:a=!0,mainProps:l}=e,u=(0,c.hz)(),x=(0,o.useRouter)(),m="/privacy-requests"===x.pathname||"/datastore-connection"===x.pathname,j=!(u.flags.privacyRequestsConfiguration&&m),{data:p}=(0,d.JE)(void 0,{skip:j}),{data:g}=(0,d.PW)(void 0,{skip:j}),y=u.flags.privacyRequestsConfiguration&&(!p||!g)&&m;return(0,i.jsxs)(n.kCb,{"data-testid":s,direction:"column",h:"100vh",children:[(0,i.jsxs)(r(),{children:[(0,i.jsxs)("title",{children:["Fides Admin UI - ",s]}),(0,i.jsx)("meta",{name:"description",content:"Privacy Engineering Platform"}),(0,i.jsx)("link",{rel:"icon",href:"/favicon.ico"})]}),(0,i.jsxs)(n.kCb,{as:"main",direction:"column",py:a?6:0,px:a?10:0,h:a?"calc(100% - 48px)":"full",flex:1,minWidth:0,overflow:"auto",...l,children:[y?(0,i.jsx)(h,{}):null,t]})]})}},58754:function(e,t,s){var i=s(24246),n=s(77181),a=s(70788);t.Z=e=>{let{heading:t,breadcrumbItems:s,isSticky:r=!0,children:o,rightContent:c,style:d,...l}=e;return(0,i.jsxs)("div",{...l,style:r?{position:"sticky",top:"-24px",paddingTop:"24px",paddingBottom:"24px",paddingLeft:"40px",marginLeft:"-40px",paddingRight:"40px",marginRight:"-40px",marginTop:"-24px",left:0,zIndex:20,backgroundColor:"white",...d}:{paddingBottom:"24px",...d},children:[(0,i.jsxs)(n.jqI,{justify:"space-between",children:["string"==typeof t?(0,i.jsx)(n.X6q,{className:s||o?"pb-4":void 0,fontSize:"2xl","data-testid":"page-heading",children:t}):t,c&&(0,i.jsx)("div",{"data-testid":"page-header-right-content",children:c})]}),!!s&&(0,i.jsx)(a.m,{className:o?"pb-4":void 0,items:s,"data-testid":"page-breadcrumb"}),o]})}},79789:function(e,t,s){s.d(t,{Hn:function(){return o},XU:function(){return r},Z5:function(){return c},aG:function(){return h},cB:function(){return a},hX:function(){return l},vQ:function(){return d}});var i=s(24246),n=s(77181);let a=e=>{let{text:t,...s}=e;return(0,i.jsx)(n.X6q,{fontSize:"sm",mt:4,mb:1,...s,children:t})},r=e=>{let{children:t}=e;return(0,i.jsx)(n.xvT,{fontSize:"14px",mb:4,children:t})},o=e=>{let{children:t,href:s}=e;return(0,i.jsx)(n.rUS,{href:s,textDecoration:"underline",isExternal:!0,children:t})},c=e=>{let{children:t}=e;return(0,i.jsx)(n.QI$,{fontSize:"14px",mb:4,children:t})},d=e=>{let{children:t}=e;return(0,i.jsx)(n.GSI,{fontSize:"14px",mb:4,ml:6,children:t})},l=e=>{let{children:t}=e;return(0,i.jsx)(n.EKh,{display:"block",whiteSpace:"pre",p:4,mb:4,overflowX:"scroll",children:t})},h=e=>{let{data:t}=e;return(0,i.jsxs)(n.iA_,{fontSize:"14px",children:[(0,i.jsx)(n.hrZ,{children:(0,i.jsxs)(n.Tr,{children:[(0,i.jsx)(n.Th,{children:"Permission"}),(0,i.jsx)(n.Th,{children:"Description"})]})}),(0,i.jsx)(n.p3B,{children:t.map(e=>(0,i.jsxs)(n.Tr,{children:[(0,i.jsx)(n.Td,{children:(0,i.jsx)(n.Vp9,{children:e.permission})}),(0,i.jsx)(n.Td,{children:e.description})]},e.permission))})]})}},97181:function(e,t,s){s.d(t,{d:function(){return d}});var i=s(24246),n=s(77181),a=s(34090),r=s(27378),o=s(91613),c=s(40324);let d=e=>{let{name:t,label:s,labelProps:d,tooltip:l,isRequired:h,layout:u="inline",...x}=e,[m,j,{setValue:p}]=(0,a.U$)(t),g=!!(j.touched&&j.error),[y,v]=(0,r.useState)("");m.value||"tags"!==x.mode&&"multiple"!==x.mode||(m.value=[]),"tags"===x.mode&&"string"==typeof m.value&&(m.value=[m.value]);let f="tags"===x.mode?(e,t)=>e?e.value!==y||m.value.includes(y)?x.optionRender?x.optionRender(e,t):e.label:'Create "'.concat(y,'"'):void 0:x.optionRender||void 0,C=e=>{v(e),x.onSearch&&x.onSearch(e)},S=(e,t)=>{p(e),x.onChange&&x.onChange(e,t)};return"inline"===u?(0,i.jsx)(n.NIc,{isInvalid:g,isRequired:h,children:(0,i.jsxs)(n.rjZ,{templateColumns:s?"1fr 3fr":"1fr",children:[s?(0,i.jsx)(c.__,{htmlFor:x.id||t,...d,children:s}):null,(0,i.jsxs)(n.jqI,{align:"center",children:[(0,i.jsxs)(n.jqI,{vertical:!0,flex:1,className:"mr-2",children:[(0,i.jsx)(n.WPr,{...m,id:x.id||t,"data-testid":"controlled-select-".concat(m.name),...x,optionRender:f,onSearch:"tags"===x.mode?C:void 0,onChange:S,value:m.value||void 0,status:g?"error":void 0}),(0,i.jsx)(c.Bc,{isInvalid:g,message:j.error,fieldName:m.name})]}),l?(0,i.jsx)(o.Z,{label:l}):null]})]})}):(0,i.jsx)(n.NIc,{isInvalid:g,isRequired:h,children:(0,i.jsxs)(n.gCW,{alignItems:"start",children:[(0,i.jsxs)(n.jqI,{align:"center",children:[s?(0,i.jsx)(c.__,{htmlFor:x.id||t,fontSize:"xs",my:0,mr:1,...d,children:s}):null,l?(0,i.jsx)(o.Z,{label:l}):null]}),(0,i.jsx)(n.WPr,{...m,id:x.id||t,"data-testid":"controlled-select-".concat(m.name),...x,optionRender:f,onSearch:"tags"===x.mode?C:void 0,onChange:S,value:m.value||void 0,status:g?"error":void 0}),(0,i.jsx)(c.Bc,{isInvalid:g,message:j.error,fieldName:m.name})]})})}},14047:function(e,t,s){s.d(t,{H:function(){return a},V:function(){return i.V}});var i=s(84306),n=s(812);let a=()=>{let{errorAlert:e}=(0,i.V)();return{handleError:t=>{let s="An unexpected error occurred. Please try again.";(0,n.Ot)(t)?s=t.data.detail:(0,n.tB)(t)&&(s=t.data.detail[0].msg),e(s)}}}},84306:function(e,t,s){s.d(t,{V:function(){return a}});var i=s(24246),n=s(77181);let a=()=>{let e=(0,n.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,i.jsxs)(n.bZj,{alignItems:"normal",status:"error","data-testid":"error-alert",children:[(0,i.jsx)(n.zMQ,{}),(0,i.jsxs)(n.xuv,{children:[s&&(0,i.jsx)(n.CdC,{children:s}),(0,i.jsx)(n.XaZ,{children:t})]}),(0,i.jsx)(n.PZ7,{onClick:a,position:"relative",right:0,size:"sm",top:-1})]})}};(null==a?void 0:a.id)&&e.isActive(a.id)?e.update(a.id,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,i.jsxs)(n.bZj,{alignItems:"normal",status:"success",variant:"subtle","data-testid":"success-alert",children:[(0,i.jsx)(n.zMQ,{}),(0,i.jsxs)(n.xuv,{children:[s&&(0,i.jsx)(n.CdC,{children:s}),(0,i.jsx)(n.XaZ,{children:t})]}),(0,i.jsx)(n.PZ7,{onClick:a,position:"relative",right:0,size:"sm",top:-1})]})}};(null==a?void 0:a.id)&&e.isActive(a.id)?e.update(a.id,r):e(r)}}}},8133:function(e,t,s){var i=s(24246),n=s(77181);t.Z=e=>{let{title:t,children:s,isOpen:a,onClose:r,...o}=e;return(0,i.jsxs)(n.u_l,{isOpen:a,onClose:r,isCentered:!0,scrollBehavior:"inside",size:"xl",id:"add-modal",...o,children:[(0,i.jsx)(n.ZAr,{}),(0,i.jsxs)(n.hzk,{textAlign:"left",p:0,"data-testid":"add-modal-content",children:[(0,i.jsx)(n.xBx,{p:0,children:(0,i.jsx)(n.xuv,{backgroundColor:"gray.50",px:6,py:4,border:"1px",borderColor:"gray.200",borderTopRadius:6,display:"flex",justifyContent:"space-between",alignItems:"center",children:(0,i.jsx)(n.X6q,{as:"h3",size:"sm",children:t})})}),(0,i.jsx)(n.fef,{pb:4,overflow:"auto",children:s})]})]})}},70788:function(e,t,s){s.d(t,{m:function(){return d}});var i=s(24246),n=s(77181),a=s(79894),r=s.n(a),o=s(27378);let{Text:c}=n.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,i.jsx)(c,{style:{color:"inherit",maxWidth:a?void 0:400},ellipsis:!a,children:o.title})),d)?o.title=(0,i.jsx)(n.wpx,{type:"text",size:"small",icon:o.icon,onClick:o.onClick,className:"ant-breadcrumb-link -mt-px px-1 text-inherit",children:o.title}):(o.icon&&(o.title=(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("span",{className:"anticon align-text-bottom",children:o.icon}),o.title]})),o.href&&o.title&&(o.title=(0,i.jsx)(r(),{href:o.href,className:"ant-breadcrumb-link",children:o.title}),delete o.href)),o}),[t]);return(0,i.jsx)(n.zrq,{items:a,...s})}},41337:function(e,t,s){var i=s(24246),n=s(77181);s(27378);var a=s(28120),r=s(16394),o=s(14746);let c=o.Ny+o.iW.get(a.Rj.WEBSITE),d=e=>void 0!==e.connection_type,l=e=>void 0!==e.encoded_icon,h=e=>(null==e?void 0:e.connection_type)===a.Rj.WEBSITE;t.Z=e=>{let{data:t,...s}=e;return(0,i.jsx)(n.Eep,{boxSize:"32px",objectFit:"cover",src:(()=>{let e;if(l(t)&&t.encoded_icon)return"data:image/svg+xml;base64,".concat(t.encoded_icon);if(h(t)){var s;let e=null===(s=t.secrets)||void 0===s?void 0:s.url;if(!e)return c;let i=(0,r.ge)(e);return(0,r.tl)(i,100)}if(d(t))e=[...o.iW].find(e=>{var s,i;let[n]=e;return t.connection_type.toString()!==a.Rj.SAAS&&t.connection_type.toString()===n||t.connection_type.toString()===a.Rj.SAAS&&(null===(i=t.saas_config)||void 0===i?void 0:null===(s=i.type)||void 0===s?void 0:s.toString())===n.toString()});else if(l(t)){let{identifier:s}=t;e=[...o.iW].find(e=>{let[t]=e;return t.toLowerCase()===s.toLowerCase()})}return e?o.Ny+e[1]:o.VD})(),fallbackSrc:h(t)?c:o.VD,alt:(()=>{if(d(t)){var e;return null!==(e=t.name)&&void 0!==e?e:t.key}return l(t)?t.human_readable:t})(),...s})}},15872:function(e,t,s){var i=s(24246),n=s(77181),a=s(86677);s(27378);var r=s(77830),o=s(14207);t.Z=e=>{let{connection_key:t,showMenu:s}=e,{isOpen:c,onOpen:d,onClose:l}=(0,n.qY0)(),[h,u]=(0,o.R5)(),x=(0,a.useRouter)(),m=()=>{u.isLoading||l()};return(0,i.jsxs)(i.Fragment,{children:[s&&(0,i.jsx)(n.sNh,{_focus:{color:"complimentary.500",bg:"gray.100"},onClick:d,children:(0,i.jsx)(n.xvT,{fontSize:"sm",children:"Delete"})}),!s&&(0,i.jsx)(n.wpx,{onClick:d,children:"Delete integration"}),(0,i.jsxs)(n.u_l,{isCentered:!0,isOpen:c,onClose:m,children:[(0,i.jsx)(n.ZAr,{}),(0,i.jsxs)(n.hzk,{children:[(0,i.jsx)(n.xBx,{children:"Delete integration"}),(0,i.jsx)(n.olH,{}),(0,i.jsx)(n.fef,{pb:6,children:(0,i.jsx)(n.Kqy,{direction:"column",spacing:"15px",children:(0,i.jsx)(n.xvT,{color:"gray.600",fontSize:"sm",fontWeight:"sm",lineHeight:"20px",children:"Deleting an integration may impact any privacy request that is currently in progress. Do you wish to proceed?"})})}),(0,i.jsxs)(n.mzw,{className:"flex gap-4",children:[(0,i.jsx)(n.wpx,{onClick:m,className:"w-1/2",children:"Cancel"}),(0,i.jsx)(n.wpx,{onClick:()=>{t&&(h(t),s||x.push(r.KH))},loading:u.isLoading,type:"primary",className:"w-1/2",children:"Delete integration"})]})]})]})]})}},3968:function(e,t,s){s.d(t,{E:function(){return i},S:function(){return n}});let i=e=>e.toLowerCase().replace(/ |\./g,"_"),n=(e,t)=>{let s="".concat(window.location.origin+t,"&key=").concat(e);window.location.href.toLowerCase()!==s.toLowerCase()&&window.history.replaceState(null,"",s)}},19812:function(e,t,s){s.d(t,{t:function(){return o}});var i=s(14047),n=s(14207),a=s(27378),r=s(41966);let o=e=>{var t,s,o;let{connectionConfig:c}=e,[d]=(0,n.S6)(),{data:l}=(0,n.Eg)(null!==(s=null==c?void 0:c.key)&&void 0!==s?s:""),h=null!==(o=null==l?void 0:null===(t=l.items)||void 0===t?void 0:t.map(e=>e.fides_key))&&void 0!==o?o:[],u=h.map(e=>({label:e,value:e})),{data:x}=(0,r.LH)({onlyUnlinkedDatasets:!0}),m=(0,a.useMemo)(()=>{var e;return null!==(e=null==x?void 0:x.map(e=>({value:e.fides_key,label:"".concat(e.name," (").concat(e.fides_key,")")||0})))&&void 0!==e?e:[]},[x]),{errorAlert:j,successAlert:p}=(0,i.V)();return{dropdownOptions:[...u,...m],initialDatasets:h,patchConnectionDatasetConfig:async function(e,t){var s,i,n;let{showSuccessAlert:a=!0}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=null!==(n=null===(s=e.dataset)||void 0===s?void 0:s.map(e=>({fides_key:e,ctl_dataset_fides_key:e})))&&void 0!==n?n:[],o=await d({connection_key:t,dataset_pairs:r}).unwrap();(null===(i=o.failed)||void 0===i?void 0:i.length)>0?j(o.failed[0].message):a&&p("Dataset successfully updated!")}}}},45216:function(e,t,s){var i=s(77181),n=s(812),a=s(16394),r=s(14207);t.Z=e=>{let[t,{data:s,fulfilledTimeStamp:o,isLoading:c,isFetching:d}]=(0,r.h2)(),l=(0,i.pmc)();return{testConnection:async()=>{var s,i;if(!e)return;let a=await t(e.key);a.isError?l({status:"error",description:(0,n.e$)(a.error,"Unable to test connection. Please try again.")}):(null===(s=a.data)||void 0===s?void 0:s.test_status)==="succeeded"?l({status:"success",description:"Connected successfully"}):(null===(i=a.data)||void 0===i?void 0:i.test_status)==="failed"&&l({status:"warning",description:"Connection test failed"})},isLoading:c||d,testData:{timestamp:o?(0,a.p6)(o):null==e?void 0:e.last_test_timestamp,succeeded:s?"succeeded"===s.test_status:!!(null==e?void 0:e.last_test_succeeded)}}}},41553:function(e,t,s){var i=s(24246),n=s(77181),a=s(16394);t.Z=e=>{let{testData:t}=e;if(!t.timestamp)return(0,i.jsx)(n.xvT,{"data-testid":"connection-status",children:"Connection not tested"});let s=(0,a.p6)(t.timestamp);return t.succeeded?(0,i.jsxs)(n.kCb,{color:"success-text.900",align:"center","data-testid":"connection-status",children:[(0,i.jsx)(n.rE2,{mr:2,boxSize:4}),(0,i.jsxs)(n.xvT,{children:["Last connected ",s]})]}):(0,i.jsxs)(n.kCb,{color:"error-text.900",align:"center","data-testid":"connection-status",children:[(0,i.jsx)(n.iid,{mr:2,boxSize:4}),(0,i.jsxs)(n.xvT,{children:["Last connection failed ",s]})]})}},75595:function(e,t,s){var i=s(24246),n=s(77181),a=s(41337),r=s(15872),o=s(45216),c=s(7621),d=s(41553);t.Z=e=>{let{integration:t,showTestNotice:s,otherButtons:l,showDeleteButton:h,configureButtonLabel:u="Configure",onConfigureClick:x}=e,{testConnection:m,isLoading:j,testData:p}=(0,o.Z)(t),g=(0,c.ZP)(null==t?void 0:t.connection_type);return(0,i.jsxs)(n.xuv,{maxW:"760px",borderWidth:1,borderRadius:"lg",overflow:"hidden",padding:"12px",marginBottom:"24px","data-testid":"integration-info-".concat(null==t?void 0:t.key),children:[(0,i.jsxs)(n.kCb,{children:[(0,i.jsx)(a.Z,{data:null!=t?t:"",boxSize:"50px"}),(0,i.jsxs)(n.kCb,{direction:"column",flexGrow:1,marginLeft:"16px",children:[(0,i.jsx)(n.xvT,{color:"gray.700",fontWeight:"semibold",children:(null==t?void 0:t.name)||"(No name)"}),s?(0,i.jsx)(d.Z,{testData:p}):(0,i.jsx)(n.xvT,{color:"gray.700",fontSize:"sm",fontWeight:"semibold",mt:1,children:g.category})]}),(0,i.jsxs)("div",{className:"flex gap-4",children:[h&&t&&(0,i.jsx)(r.Z,{showMenu:!1,connection_key:t.key}),s&&(0,i.jsx)(n.wpx,{onClick:m,loading:j,"data-testid":"test-connection-btn",children:"Test connection"}),l,x&&(0,i.jsx)(n.wpx,{onClick:x,"data-testid":"configure-btn",children:u})]})]}),(0,i.jsx)(n.Eq9,{marginTop:"16px",children:g.tags.map(e=>(0,i.jsx)(n.j8w,{children:e},e))})]})}},15987:function(e,t,s){var i=s(24246),n=s(77181),a=s(34090),r=s(90104),o=s.n(r),c=s(92465),d=s.n(c),l=s(25389),h=s.n(l),u=s(15539),x=s.n(u),m=s(55484),j=s(18225),p=s(97181),g=s(40324),y=s(812),v=s(20682),f=s(41966),C=s(94725),S=s(3968),A=s(19812),b=s(1315),D=s(28120),w=s(31883);t.Z=e=>{var t,s;let{connection:r,connectionOption:c,onCancel:l}=e,[u,{isLoading:R}]=(0,C.Pp)(),[E,{isLoading:_}]=(0,C.pH)(),[T,{isLoading:H}]=(0,b.qd)(),{data:B,isLoading:k}=(0,v.n3)(c.identifier),{data:F}=(0,b.K3)(),L=null==F?void 0:F.map(e=>{var t;return{label:null!==(t=e.name)&&void 0!==t?t:e.fides_key,value:e.fides_key}}),{data:I}=(0,f.LH)({minimal:!0,connection_type:D.Rj.BIGQUERY}),O=null==I?void 0:I.map(e=>{var t;return{label:null!==(t=e.name)&&void 0!==t?t:e.fides_key,value:e.fides_key}}),{patchConnectionDatasetConfig:U,initialDatasets:M}=(0,A.t)({connectionConfig:r}),q=R||_||H,P={name:null!==(t=null==r?void 0:r.name)&&void 0!==t?t:"",description:null!==(s=null==r?void 0:r.description)&&void 0!==s?s:"",secrets:h()(null==B?void 0:B.properties,(e,t)=>{var s,i;return null!==(i=null==r?void 0:null===(s=r.secrets)||void 0===s?void 0:s[t])&&void 0!==i?i:""}),dataset:M},N=(0,n.pmc)(),Q=!!r,Z=e=>x()(h()(e,(e,t)=>{var s,i;return(null!==(i=null==r?void 0:null===(s=r.secrets)||void 0===s?void 0:s[t])&&void 0!==i?i:"")===e?void 0:e}),d()),z=async e=>{var t;let s;let i=Z(e.secrets),n=Q?{...r,disabled:null!==(t=r.disabled)&&void 0!==t&&t,name:e.name,description:e.description,secrets:void 0}:{name:e.name,key:(0,S.E)(e.name),connection_type:c.identifier,access:D.uv.READ,disabled:!1,description:e.description,secrets:e.secrets,dataset:e.dataset};if(s=e.system_fides_key?await T({systemFidesKey:e.system_fides_key,connectionConfigs:[n]}):await E(n),(0,w.D4)(s)){N({status:"error",description:(0,y.e$)(s.error,"A problem occurred while ".concat(Q?"updating":"creating"," this integration. Please try again."))});return}if(!e.secrets){N({status:"success",description:"Integration ".concat(Q?"updated":"created"," successfully")});return}if(!o()(i)){let e=await u({connection_key:n.key,secrets:i});if((0,w.D4)(e)){N({status:"error",description:(0,y.e$)(e.error,"An error occurred while ".concat(Q?"updating":"creating"," this integration's secret. Please try again."))});return}}N({status:"success",description:"Integration secret ".concat(Q?"updated":"created"," successfully")}),l(),n&&e.dataset&&c.identifier===D.Rj.DATAHUB&&await U(e,n.key,{showSuccessAlert:!1})};if(k)return(0,i.jsx)(j.Z,{});let G=e=>Object.entries(e.properties).map(t=>{let[s,n]=t,a="secrets.".concat(s);return(0,i.jsx)(g.j0,{name:a,id:a,type:n.sensitive?"password":void 0,label:n.title,isRequired:e.required.includes(s),tooltip:n.description,variant:"stacked"},a)});return(0,i.jsx)(a.J9,{initialValues:P,enableReinitialize:!0,onSubmit:z,validationSchema:(e=>{let t=Object.entries(e.properties).map(t=>{let[s,i]=t;return[s,e.required.includes(s)?m.Z_().required().label(i.title):m.Z_().nullable().label(i.title)]});return m.Ry().shape({name:m.Z_().required().label("Name"),description:m.Z_().nullable().label("Description"),secrets:m.Ry().shape(Object.fromEntries(t))})})(B),children:e=>{let{dirty:t,isValid:s,resetForm:r}=e;return(0,i.jsx)(a.l0,{children:(0,i.jsxs)(n.gCW,{alignItems:"start",spacing:6,mt:4,children:[(0,i.jsx)(g.j0,{id:"name",name:"name",label:"Name",variant:"stacked",isRequired:!0}),(0,i.jsx)(g.j0,{id:"description",name:"description",label:"Description",variant:"stacked"}),G(B),!Q&&(0,i.jsx)(p.d,{id:"system_fides_key",name:"system_fides_key",options:null!=L?L:[],label:"System",tooltip:"The system to associate with the integration",layout:"stacked"}),c.identifier===D.Rj.DATAHUB&&(0,i.jsx)(p.d,{id:"dataset",name:"dataset",options:null!=O?O:[],label:"Datasets",tooltip:"The datasets to associate with the integration",layout:"stacked",mode:"multiple"}),(0,i.jsxs)("div",{className:"flex w-full justify-between",children:[(0,i.jsx)(n.wpx,{onClick:()=>{l(),r()},children:"Cancel"}),(0,i.jsx)(n.wpx,{htmlType:"submit",type:"primary",disabled:!t||!s,loading:q,"data-testid":"save-btn",children:"Save"})]})]})})}})}},7621:function(e,t,s){s.d(t,{FO:function(){return _},jq:function(){return T},ZP:function(){return B}}),(i=n||(n={})).DATA_CATALOG="Data Catalog",i.DATA_WAREHOUSE="Data Warehouse",i.DATABASE="Database",i.WEBSITE="Website";var i,n,a=s(24246),r=s(77181),o=s(79789),c=e=>{let{children:t}=e,{isOpen:s,onToggle:i}=(0,r.qY0)();return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(r.UO1,{in:s,children:t}),(0,a.jsx)(r.xvT,{fontSize:"sm",cursor:"pointer",textDecoration:"underline",onClick:i,children:s?"Show less":"Show more"})]})},d=s(28120);let l={name:"Google BigQuery",key:"bq_placeholder",connection_type:d.Rj.BIGQUERY,access:d.uv.READ,created_at:""},h=[{permission:"bigquery.jobs.create",description:"Run jobs (e.g. queries) within the project. This is only needed for the Fides Project where the Fides service account is located."},{permission:"bigquery.jobs.list",description:"Manage the queries that the service account performs. This is only needed for the Fides Project where the Fides service account is located."},{permission:"bigquery.routines.get",description:"Allow the service account to retrieve custom routines (e.g. queries) on associated datasets and tables."},{permission:"bigquery.routines.list",description:"Allow the service account to manage the custom routines (e.g. queries) that run on associated datasets and tables."}],u=[{permission:"bigquery.datasets.get",description:"Retrieve metadata and list tables for the specified project."},{permission:"bigquery.tables.get",description:"Retrieve metadata for the specified table."},{permission:"bigquery.tables.getData",description:"Read data in the specified table."},{permission:"bigquery.tables.list",description:"List all tables in the specified dataset."},{permission:"resourcemanager.projects.get",description:"Retrieve metadata for the specified project."}],x={placeholder:l,category:n.DATA_WAREHOUSE,overview:(0,a.jsx)(()=>(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(o.cB,{text:"Overview"}),(0,a.jsx)(o.XU,{children:"Continuously monitor BigQuery to detect and track schema-level changes, automatically discover and label data categories as well as automatically process DSR (privacy requests) and consent enforcement to proactively manage data governance risks."}),(0,a.jsxs)(c,{children:[(0,a.jsx)(o.cB,{text:"Categories"}),(0,a.jsxs)(o.Z5,{children:[(0,a.jsx)(r.HCh,{children:"Data Warehouse"}),(0,a.jsx)(r.HCh,{children:"Storage system"}),(0,a.jsx)(r.HCh,{children:"Cloud provider"}),(0,a.jsx)(r.HCh,{children:"Data detection"}),(0,a.jsx)(r.HCh,{children:"Data discovery"}),(0,a.jsx)(r.HCh,{children:"DSR automation"}),(0,a.jsx)(r.HCh,{children:"Consent orchestration"})]}),(0,a.jsx)(o.cB,{text:"Permissions"}),(0,a.jsx)(o.XU,{children:"For detection and discovery, Fides requires a read-only BigQuery service account with limited permissions. If you intend to automate governance for DSR or Consent, Fides requires a read-and-write BigQuery service account to any project you would like Fides to govern."}),(0,a.jsx)(o.XU,{children:"A BigQuery administrator can create the necessary role for Fides using BigQuery's roles guide and assign this to a service account using BigQuery's service account guide."}),(0,a.jsx)(o.XU,{children:"The permissions allow Fides to read the schema of, and data stored in projects, datasets and tables as well write restricted updates based on your policy configurations to tables you specify as part of DSR and Consent orchestration."}),(0,a.jsx)(o.cB,{text:"Permissions list"}),(0,a.jsxs)(o.Z5,{children:[(0,a.jsx)(r.HCh,{children:"bigquery.jobs.create"}),(0,a.jsx)(r.HCh,{children:"bigquery.jobs.list"}),(0,a.jsx)(r.HCh,{children:"bigquery.routines.get"}),(0,a.jsx)(r.HCh,{children:"bigquery.routines.list"}),(0,a.jsx)(r.HCh,{children:"bigquery.datasets.get"}),(0,a.jsx)(r.HCh,{children:"bigquery.tables.get"}),(0,a.jsx)(r.HCh,{children:"bigquery.tables.getData"}),(0,a.jsx)(r.HCh,{children:"bigquery.tables.list"}),(0,a.jsx)(r.HCh,{children:"bigquery.tables.updateData"}),(0,a.jsx)(r.HCh,{children:"resourcemanager.projects.get"})]})]})]}),{}),instructions:(0,a.jsx)(()=>(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(o.cB,{text:"Configuring a Fides -> BigQuery Integration"}),(0,a.jsx)(o.cB,{text:"Step 1: Create a Fides project"}),(0,a.jsxs)(o.XU,{children:["Create a Fides Project using"," ",(0,a.jsx)(o.Hn,{href:"https://cloud.google.com/resource-manager/docs/creating-managing-projects#creating_a_project",children:"BigQuery's project creation guide"}),"."]}),(0,a.jsx)(o.cB,{text:"Step 2: Create a Fides role in GCP"}),(0,a.jsxs)(o.vQ,{children:[(0,a.jsxs)(r.HCh,{children:["Create a custom role for Fides using BigQuery's"," ",(0,a.jsx)(o.Hn,{href:"https://cloud.google.com/iam/docs/creating-custom-roles#creating_a_custom_role",children:"roles guide"}),"."]}),(0,a.jsx)(r.HCh,{children:"Follow the sections below to grant permissions to this role for the Fides project and any project you would like Fides to manage."})]}),(0,a.jsxs)(c,{children:[(0,a.jsx)(o.cB,{text:"Step 3: Assign permissions to the Fides project"}),(0,a.jsx)(o.XU,{children:"Assign the following permissions to the Fides Project that will be used by your Fides service account to run queries:"}),(0,a.jsx)(o.aG,{data:h}),(0,a.jsx)(o.cB,{text:"Step 4: Assign permissions to any project you’d like Fides to monitor"}),(0,a.jsx)(o.XU,{children:"Grant the following permissions to the Fides service account in every project where you would like Fides detection and discovery monitoring."}),(0,a.jsx)(o.aG,{data:u}),(0,a.jsx)(o.cB,{text:"Step 5: Create a Fides service account in the Fides Project"}),(0,a.jsxs)(o.vQ,{children:[(0,a.jsxs)(r.HCh,{children:["Create a service account for Fides using BigQuery's"," ",(0,a.jsx)(o.Hn,{href:"https://cloud.google.com/iam/docs/service-accounts-create",children:"service account guide"}),"."]}),(0,a.jsx)(r.HCh,{children:"Assign the previously created role to this service account."}),(0,a.jsxs)(r.HCh,{children:["Download the service account JSON keyfile."," ",(0,a.jsx)("strong",{children:"Note: this is sensitive information that should not be shared."})," ","An example of this is below:"]})]}),(0,a.jsx)(o.hX,{children:'{\n "type": "service_account",\n "project_id": "project-id-123456",\n "private_key_id": "0123456789abcdef0123456789abcdef01234567",\n "private_key": "-----BEGIN PRIVATE KEY-----\\nMIIyourkey-----\\nEND PRIVATE KEY-----\\n",\n "client_email": "test@project-id-123456.iam.gserviceaccount.com",\n "client_id": "012345678901234567890",\n "auth_uri": "https://accounts.google.com/o/oauth2/auth",\n "token_uri": "https://oauth2.googleapis.com/token",\n "auth_provider_x509_cert_url": "https://www.googleapis.com/oauth2/v1/certs",\n "client_x509_cert_url": "https://www.googleapis.com/robot/v1/metadata/x509/test%40project-id-123456.iam.gserviceaccount.com"\n}'}),(0,a.jsx)(o.cB,{text:"Step 6: Use the JSON key to authenticate your integration"}),(0,a.jsx)(o.XU,{children:"Provide the JSON key to your Fides instance to securely connect Fides."})]})]}),{}),tags:["DSR Automation","Discovery","Detection"]},m={placeholder:{name:"Datahub",key:"datahub_placeholder",connection_type:d.Rj.DATAHUB,access:d.uv.READ,created_at:""},category:n.DATA_CATALOG,overview:(0,a.jsx)(()=>(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(o.cB,{text:"Overview"}),(0,a.jsx)(o.XU,{children:"DataHub is a metadata platform designed to help organizations manage and govern their data. It acts as a centralized repository for tracking and discovering data assets across an organization, helping data teams understand where their data resides, how it's used, and how it flows through various systems."}),(0,a.jsxs)(c,{children:[(0,a.jsx)(o.cB,{text:"Categories"}),(0,a.jsx)(o.Z5,{children:(0,a.jsx)(r.HCh,{children:"Data Catalog"})}),(0,a.jsx)(o.cB,{text:"Permissions"}),(0,a.jsx)(o.Z5,{children:(0,a.jsx)(r.HCh,{children:"Placeholder"})})]})]}),{}),tags:["Sync"]},j={name:"DynamoDB",key:"dynamo_placeholder",connection_type:d.Rj.DYNAMODB,access:d.uv.READ,created_at:""},p=[{permission:"AmazonDynamoDBReadOnlyAccess",description:"Provides read-only access to Amazon DynamoDB via the AWS Management Console."},{permission:"AmazonDynamoDBFullAccess",description:"Provides full access to Amazon DynamoDB via the AWS Management Console. Only needed if automating governance for DSR or Consent."}],g={placeholder:j,category:n.DATABASE,overview:(0,a.jsx)(()=>(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(o.cB,{text:"Overview"}),(0,a.jsx)(o.XU,{children:"Continuously monitor DynamoDB to detect and track schema-level changes, automatically discover and label data categories as well as automatically process DSR (privacy requests) and consent enforcement to proactively manage data governance risks."}),(0,a.jsxs)(c,{children:[(0,a.jsx)(o.cB,{text:"Categories"}),(0,a.jsxs)(o.Z5,{children:[(0,a.jsx)(r.HCh,{children:"NoSQL database"}),(0,a.jsx)(r.HCh,{children:"Storage system"}),(0,a.jsx)(r.HCh,{children:"Cloud provider"}),(0,a.jsx)(r.HCh,{children:"Data detection"}),(0,a.jsx)(r.HCh,{children:"Data discovery"})]}),(0,a.jsx)(o.cB,{text:"Permissions and Policies"}),(0,a.jsxs)(o.XU,{children:["For detection and discovery, Fides requires an IAM user with read-only DynamoDB permissions in order to detect, discover, and classify sensitive data. The AWS-managed"," ",(0,a.jsx)(r.EKh,{children:"AmazonDynamoDBReadOnlyAccess"})," policy can be used to assign these permissions. If you intend to automate governance for DSR or Consent, Fides requires an IAM user with read-and-write DynamoDB permissions. The AWS-managed",(0,a.jsx)(r.EKh,{children:"AmazonDynamoDBFullAccess"})," policy can be used to assign these permissions. An IAM administrator can create the necessary principal for Fides using the AWS IAM guides, and assign the appropriate permissions policy to the IAM user."]}),(0,a.jsx)(o.XU,{children:"The permissions allow Fides to read the schema of, and data stored in, DynamoDB tables. This data is inspected only for the purpose of detecting sensitive data risks and no data is stored by Fides. As part of DSR or Consent orchestration, Fides will only write restricted updates to the tables specified by your Fides policy configuration."}),(0,a.jsx)(o.cB,{text:"Policy List"}),(0,a.jsx)(o.XU,{children:"The following AWS-managed policies provide the necessary permissions for Fides:"}),(0,a.jsxs)(o.Z5,{children:[(0,a.jsx)(r.HCh,{children:"AmazonDynamoDBReadOnlyAccess"}),(0,a.jsx)(r.HCh,{children:"AmazonDynamoDBFullAccess (only needed if automating governance for DSR or Consent)"})]})]})]}),{}),instructions:(0,a.jsx)(()=>(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(o.cB,{text:"Configuring a Fides -> DynamoDB Integration"}),(0,a.jsx)(o.cB,{text:"Step 1: Create an IAM user in AWS"}),(0,a.jsxs)(o.XU,{children:["Create an IAM user for Fides' DynamoDB access following the"," ",(0,a.jsx)(o.Hn,{href:"https://docs.aws.amazon.com/IAM/latest/UserGuide/getting-started.html#getting-started-iam-user",children:"AWS IAM user guide"}),"."]}),(0,a.jsxs)(c,{children:[(0,a.jsx)(o.cB,{text:"Step 2: Assign policies to the IAM user"}),(0,a.jsx)(o.XU,{children:"Grant the necessary permissions to the IAM user by attaching directly the appropriate AWS-managed policy for your use case:"}),(0,a.jsx)(o.aG,{data:p}),(0,a.jsx)(o.cB,{text:"Step 3: Create an access key for the IAM user"}),(0,a.jsxs)(o.vQ,{children:[(0,a.jsxs)(r.HCh,{children:["Create an access key for the IAM user under"," ",(0,a.jsx)("strong",{children:"Security credentials"})]}),(0,a.jsx)(r.HCh,{children:"Select the Other use case"}),(0,a.jsx)(r.HCh,{children:"Copy the Access Key ID and Secret Access Key"})]}),(0,a.jsx)(o.cB,{text:"Use the Credentials to Authenticate Your Integration"}),(0,a.jsx)(o.XU,{children:"Provide the credentials to your Fides instance to securely connect Fides."})]})]}),{}),tags:["Database","DSR Automation","Discovery","Detection"]},y={placeholder:{name:"Google Cloud SQL for MySQL",key:"google_cloud_sql_for_mysql_placeholder",connection_type:d.Rj.GOOGLE_CLOUD_SQL_MYSQL,access:d.uv.READ,created_at:""},category:n.DATABASE,overview:(0,a.jsx)(()=>(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(o.cB,{text:"Overview"}),(0,a.jsx)(o.XU,{children:"Google Cloud SQL for MySQL is a fully-managed relational database service that simplifies the setup, maintenance, management, and administration of MySQL databases. Connect Fides to your Google Cloud SQL for MySQL to detect and track changes in schemas and tables and automatically discover and label data categories to proactively manage data governance risks."}),(0,a.jsxs)(c,{children:[(0,a.jsx)(o.cB,{text:"Categories"}),(0,a.jsxs)(o.Z5,{children:[(0,a.jsx)(r.HCh,{children:"Database"}),(0,a.jsx)(r.HCh,{children:"SQL database"}),(0,a.jsx)(r.HCh,{children:"Storage system"}),(0,a.jsx)(r.HCh,{children:"Data detection"}),(0,a.jsx)(r.HCh,{children:"Data discovery"}),(0,a.jsx)(r.HCh,{children:"DSR automation"})]}),(0,a.jsx)(o.cB,{text:"Permissions"}),(0,a.jsx)(o.XU,{children:"For detection and discovery, Fides requires a user with the SELECT permission on the database. If you intend to automate governance for DSR or Consent, Fides requires a user with the SELECT, UPDATE, and DELETE The permissions allow Fides to read the schema of, and data stored in tables, and fields as well as write restricted updates based on your policy configurations to tables you specify as part of DSR and Consent orchestration. For a complete list of permissions view the Google Cloud SQL for MySQL DB documentation."}),(0,a.jsx)(o.cB,{text:"Permissions list"}),(0,a.jsxs)(o.Z5,{children:[(0,a.jsx)(r.HCh,{children:"GRANT SELECT"}),(0,a.jsx)(r.HCh,{children:"GRANT UPDATE"}),(0,a.jsx)(r.HCh,{children:"GRANT DELETE"})]})]})]}),{}),tags:["Discovery","Detection"]},v={placeholder:{name:"Google Cloud SQL for Postgres",key:"google_cloud_sql_for_postgres_placeholder",connection_type:d.Rj.GOOGLE_CLOUD_SQL_POSTGRES,access:d.uv.READ,created_at:""},category:n.DATABASE,overview:(0,a.jsx)(()=>(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(o.cB,{text:"Overview"}),(0,a.jsx)(o.XU,{children:"Google Cloud SQL for Postgres is a fully-managed relational database service that simplifies the setup, maintenance, management, and administration of Postgres databases. Connect Fides to your Google Cloud SQL for Postgres to detect and track changes in schemas and tables and automatically discover and label data categories to proactively manage data governance risks."}),(0,a.jsxs)(c,{children:[(0,a.jsx)(o.cB,{text:"Categories"}),(0,a.jsxs)(o.Z5,{children:[(0,a.jsx)(r.HCh,{children:"Database"}),(0,a.jsx)(r.HCh,{children:"SQL database"}),(0,a.jsx)(r.HCh,{children:"Storage system"}),(0,a.jsx)(r.HCh,{children:"Data detection"}),(0,a.jsx)(r.HCh,{children:"Data discovery"}),(0,a.jsx)(r.HCh,{children:"DSR automation"})]}),(0,a.jsx)(o.cB,{text:"Permissions"}),(0,a.jsx)(o.XU,{children:"For detection and discovery, Fides requires a user with the SELECT permission on the database. If you intend to automate governance for DSR or Consent, Fides requires a user with the SELECT, UPDATE, and DELETE permission. The permissions allow Fides to read the schema of, and data stored in tables, and fields as well as write restricted updates based on your policy configurations to tables you specify as part of DSR and orchestration. For a complete list of permissions view the Google Cloud SQL for Postgres DB documentation."}),(0,a.jsx)(o.XU,{children:"The following GCP service account permissions are needed when setting up Google Cloud SQL for Postgres."}),(0,a.jsx)(o.cB,{text:"Permissions list"}),(0,a.jsxs)(o.Z5,{children:[(0,a.jsx)(r.HCh,{children:"cloudsql.instances.connect"}),(0,a.jsx)(r.HCh,{children:"cloudsql.instances.get"}),(0,a.jsx)(r.HCh,{children:"cloudsql.instances.login"})]})]})]}),{}),tags:["Discovery","Detection"]},f={placeholder:{name:"Microsoft SQL Server",key:"microsoft_sql_server_placeholder",connection_type:d.Rj.MSSQL,access:d.uv.READ,created_at:""},category:n.DATABASE,overview:(0,a.jsx)(()=>(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(o.cB,{text:"Overview"}),(0,a.jsx)(o.XU,{children:"Microsoft SQL Server, is a relational database management system (RDBMS) developed by Microsoft. It is designed to store, manage, and retrieve data as requested by other software applications, which may run either on the same computer or across a network."}),(0,a.jsxs)(c,{children:[(0,a.jsx)(o.cB,{text:"Categories"}),(0,a.jsxs)(o.Z5,{children:[(0,a.jsx)(r.HCh,{children:"Database"}),(0,a.jsx)(r.HCh,{children:"SQL database"}),(0,a.jsx)(r.HCh,{children:"Storage system"}),(0,a.jsx)(r.HCh,{children:"Data detection"}),(0,a.jsx)(r.HCh,{children:"Data discovery"})]}),(0,a.jsx)(o.cB,{text:"Permissions"}),(0,a.jsx)(o.XU,{children:"For detecting databases, Fides requires a user with the following permissions/role:"}),(0,a.jsxs)(o.Z5,{children:[(0,a.jsx)(r.HCh,{children:"CREATE LOGIN username WITH PASSWORD = 'password';"}),(0,a.jsx)(r.HCh,{children:"GRANT SELECT, INSERT, UPDATE TO username;"})]})]})]}),{}),tags:["DSR Automation","Discovery","Detection"]},C={placeholder:{name:"MySQL",key:"mysql_placeholder",connection_type:d.Rj.MYSQL,access:d.uv.READ,created_at:""},category:n.DATABASE,overview:(0,a.jsx)(()=>(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(o.cB,{text:"Overview"}),(0,a.jsx)(o.XU,{children:"Add infotext"}),(0,a.jsxs)(c,{children:[(0,a.jsx)(o.cB,{text:"Categories"}),(0,a.jsxs)(o.Z5,{children:[(0,a.jsx)(r.HCh,{children:"Database"}),(0,a.jsx)(r.HCh,{children:"SQL database"}),(0,a.jsx)(r.HCh,{children:"Storage system"}),(0,a.jsx)(r.HCh,{children:"Data detection"}),(0,a.jsx)(r.HCh,{children:"Data discovery"})]}),(0,a.jsx)(o.cB,{text:"Permissions"}),(0,a.jsx)(o.XU,{children:"For detecting databases, Fides requires a user with the following permissions/role:"}),(0,a.jsxs)(o.Z5,{children:[(0,a.jsx)(r.HCh,{children:"CREATE USER 'username' IDENTIFIED WITH authentication_plugin BY 'password';"}),(0,a.jsx)(r.HCh,{children:"GRANT SELECT, INSERT ON database.* TO 'username'@'%';"})]})]})]}),{}),tags:["DSR Automation","Discovery","Detection"]},S={placeholder:{name:"Amazon RDS MySQL",key:"rds_mysql_placeholder",connection_type:d.Rj.RDS_MYSQL,access:d.uv.READ,created_at:""},category:n.DATABASE,overview:(0,a.jsx)(()=>(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(o.cB,{text:"Overview"}),(0,a.jsx)(o.XU,{children:"Amazon RDS MySQL is a fully-managed relational database service that simplifies the setup, maintenance, management, and administration of MySQL databases. Connect Fides to your Amazon RDS MySQL to detect and track changes in schemas and tables and automatically discover and label data categories to proactively manage data governance risks."}),(0,a.jsxs)(c,{children:[(0,a.jsx)(o.cB,{text:"Categories"}),(0,a.jsxs)(o.Z5,{children:[(0,a.jsx)(r.HCh,{children:"Database"}),(0,a.jsx)(r.HCh,{children:"SQL database"}),(0,a.jsx)(r.HCh,{children:"Storage system"}),(0,a.jsx)(r.HCh,{children:"Data detection"}),(0,a.jsx)(r.HCh,{children:"Data discovery"})]}),(0,a.jsx)(o.cB,{text:"Permissions"}),(0,a.jsx)(o.XU,{children:"For detecting database RDS instances and clusters, Fides requires an IAM user with the following permissions/role:"}),(0,a.jsxs)(o.Z5,{children:[(0,a.jsx)(r.HCh,{children:"rds:DescribeDBClusters"}),(0,a.jsx)(r.HCh,{children:"rds:DescribeDBInstances"}),(0,a.jsx)(r.HCh,{children:"rds-db:connect"})]}),(0,a.jsx)(o.XU,{children:"And per database instance and database it requires the following permissions, where 'username' is the user set up for Fides, and 'database' is the database name, you want to connect to."}),(0,a.jsxs)(o.Z5,{children:[(0,a.jsx)(r.HCh,{children:"CREATE USER 'username' IDENTIFIED WITH AWSAuthenticationPlugin AS 'RDS';"}),(0,a.jsx)(r.HCh,{children:"GRANT SELECT, INSERT ON database.* TO 'username'@'%';"})]})]})]}),{}),tags:["Discovery","Detection"]},A={placeholder:{name:"Amazon RDS Postgres",key:"rds_postgres_placeholder",connection_type:d.Rj.RDS_POSTGRES,access:d.uv.READ,created_at:""},category:n.DATABASE,overview:(0,a.jsx)(()=>(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(o.cB,{text:"Overview"}),(0,a.jsx)(o.XU,{children:"Amazon RDS Postgres is a fully-managed relational database service that simplifies the setup, maintenance, management, and administration of Postgres databases. Connect Fides to your Amazon RDS Postgres to detect and track changes in schemas and tables and automatically discover and label data categories to proactively manage data governance risks."}),(0,a.jsxs)(c,{children:[(0,a.jsx)(o.cB,{text:"Categories"}),(0,a.jsxs)(o.Z5,{children:[(0,a.jsx)(r.HCh,{children:"Database"}),(0,a.jsx)(r.HCh,{children:"SQL database"}),(0,a.jsx)(r.HCh,{children:"Storage system"}),(0,a.jsx)(r.HCh,{children:"Data detection"}),(0,a.jsx)(r.HCh,{children:"Data discovery"})]}),(0,a.jsx)(o.cB,{text:"Permissions"}),(0,a.jsx)(o.XU,{children:"For detecting database RDS instances and clusters, Fides requires an IAM user with the following permissions/role:"}),(0,a.jsxs)(o.Z5,{children:[(0,a.jsx)(r.HCh,{children:"rds:DescribeDBClusters"}),(0,a.jsx)(r.HCh,{children:"rds:DescribeDBInstances"}),(0,a.jsx)(r.HCh,{children:"rds-db:connect"})]}),(0,a.jsx)(o.XU,{children:"For each database instance and database, Fides requires the following permissions, where 'username' is the user set up for Fides, and 'database' is the name of the database you want to connect to."}),(0,a.jsxs)(o.Z5,{children:[(0,a.jsx)(r.HCh,{children:"CREATE USER username WITH LOGIN;"}),(0,a.jsx)(r.HCh,{children:"GRANT rds_iam TO username;"}),(0,a.jsx)(r.HCh,{children:"GRANT SELECT ON ALL TABLES IN SCHEMA public TO username;"}),(0,a.jsx)(r.HCh,{children:"GRANT ALL PRIVILEGES ON ALL TABLES IN SCHEMA public TO username;"})]})]})]}),{}),tags:["Discovery","Detection"]},b={placeholder:{name:"Amazon S3",key:"s3_placeholder",connection_type:d.Rj.S3,access:d.uv.READ,created_at:""},category:n.DATA_WAREHOUSE,overview:(0,a.jsx)(()=>(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(o.cB,{text:"Overview"}),(0,a.jsx)(o.XU,{children:"Continuously monitor S3 to detect and track schema-level changes, automatically discover and label data categories as well as automatically process DSR (privacy requests) and consent enforcement to proactively manage data governance risks."}),(0,a.jsxs)(c,{children:[(0,a.jsx)(o.cB,{text:"Categories"}),(0,a.jsxs)(o.Z5,{children:[(0,a.jsx)(r.HCh,{children:"Object storage"}),(0,a.jsx)(r.HCh,{children:"Storage system"}),(0,a.jsx)(r.HCh,{children:"Cloud provider"}),(0,a.jsx)(r.HCh,{children:"Data detection"}),(0,a.jsx)(r.HCh,{children:"Data discovery"})]}),(0,a.jsx)(o.cB,{text:"Permissions"}),(0,a.jsx)(o.XU,{children:"Fides requires an IAM principal with read-only S3 permissions in order to detect, discover, and classify sensitive data. The AWS-managed AmazonS3ReadOnlyAccess policy can be used to assign these permissions. An IAM administrator can create the necessary principal for Fides using the AWS IAM guides, and assign the appropriate permissions policy to the IAM principal."}),(0,a.jsx)(o.XU,{children:"The permissions allow Fides to list buckets and read object data data stored in those buckets. This data is inspected only for the purpose of detecting sensitive data risks and no data is stored by Fides."}),(0,a.jsx)(o.XU,{children:"Ethyca recommends creating an IAM role with the appropriate permissions, which will be assumed by Fides at runtime, with ephemeral credentials. There must also be an IAM user with fixed credentials that Fides uses strictly for assuming the IAM role with the appropriate permissions. If desired, Fides also supports authenticating directly as an IAM user with the appropriate permissions, but this is considered a less secure option."}),(0,a.jsx)(o.cB,{text:"Permissions list"}),(0,a.jsx)(o.Z5,{children:(0,a.jsx)(r.HCh,{children:"AmazonS3ReadOnlyAccess"})})]})]}),{}),instructions:(0,a.jsx)(()=>(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(o.cB,{text:"Configuring a Fides -> Amazon S3 Integration"}),(0,a.jsx)(o.cB,{text:"Step 1: Create an IAM role in AWS"}),(0,a.jsx)(o.XU,{children:"Create an IAM role for Fides' S3 access following the AWS IAM roles guide. This role will be referred to below as the Fides S3 Access Role."}),(0,a.jsxs)(c,{children:[(0,a.jsx)(o.cB,{text:"Step 2: Assign policies to the IAM role"}),(0,a.jsx)(o.XU,{children:"Grant the necessary permissions to the IAM role by attaching the following AWS-managed policy:"}),(0,a.jsx)(o.aG,{data:[{permission:"AmazonS3ReadOnlyAccess",description:"Provides read-only access to all buckets via the AWS Management Console."}]}),(0,a.jsx)(o.cB,{text:"Step 3: Create an IAM user for assuming a role"}),(0,a.jsxs)(o.XU,{children:["Follow the ",(0,a.jsx)(o.Hn,{href:"https://docs.aws.amazon.com/IAM/latest/UserGuide/getting-started.html#getting-started-iam-user",children:"AWS guide"})," for creating an IAM user to create an IAM user that Fides will authenticate as in order to assume the Fides S3 Access Role created above, and retrieve ephemeral credentials."]}),(0,a.jsx)(o.cB,{text:"Step 4: Grant the IAM user permission to assume the Fides S3 Access Role"}),(0,a.jsx)(o.XU,{children:"Navigate to the IAM user’s Permissions page and add a permission by creating an inline policy. This permission should grant the IAM user permission to assume the Fides S3 Access Role created above (you’ll need to retrieve the role ARN). The inline policy should look similar to this:"}),(0,a.jsx)(o.hX,{children:'{\n "Version": "2012-10-17",\n "Statement": [\n {\n "Sid": "VisualEditor0",\n "Effect": "Allow",\n "Action": "sts:AssumeRole",\n "Resource": "arn:aws:iam::[AWS ACCOUNT NUMBER]:role/[Fides S3 Access Role ARN]"\n }\n ]\n}'}),(0,a.jsx)(o.cB,{text:"Step 5: Create an access key for the IAM user"}),(0,a.jsxs)(o.vQ,{children:[(0,a.jsxs)(r.HCh,{children:["Create an access key for the IAM user under"," ",(0,a.jsx)("strong",{children:"Security credentials"}),"."]}),(0,a.jsx)(r.HCh,{children:"Select the Other use case"}),(0,a.jsx)(r.HCh,{children:"Copy the Access Key ID and Secret Access Key"})]}),(0,a.jsx)(o.cB,{text:"Step 6: Use the credentials to authenticate your integration"}),(0,a.jsxs)(o.XU,{children:["Provide the credentials to your Fides instance to securely connect Fides. For the Assume Role ARN, provide the ARN for the Fides S3 Access Role created in step 1."," "]})]})]}),{}),tags:["DSR Automation","Discovery","Detection"]},D={placeholder:{name:"Scylla",key:"scylla_placeholder",connection_type:d.Rj.SCYLLA,access:d.uv.READ,created_at:""},category:n.DATABASE,overview:(0,a.jsx)(()=>(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(o.cB,{text:"Overview"}),(0,a.jsx)(o.XU,{children:"ScyllaDB is an open-sources distributed NoSQL data store designed to be compatible with Apache Cassandra. Connect Fides to your ScyllaDB to detect and track changes in keyspaces and tables and automatically discover and label data categories to proactively manage data governance risks."}),(0,a.jsxs)(c,{children:[(0,a.jsx)(o.cB,{text:"Categories"}),(0,a.jsxs)(o.Z5,{children:[(0,a.jsx)(r.HCh,{children:"Database"}),(0,a.jsx)(r.HCh,{children:"NoSQL database"}),(0,a.jsx)(r.HCh,{children:"Storage system"}),(0,a.jsx)(r.HCh,{children:"Data detection"}),(0,a.jsx)(r.HCh,{children:"Data discovery"}),(0,a.jsx)(r.HCh,{children:"DSR automation"})]}),(0,a.jsx)(o.cB,{text:"Permissions"}),(0,a.jsx)(o.XU,{children:"For detection and discovery, Fides requires a user with the SELECT permission on all keyspaces. If you intend to automate governance for DSR or Consent, Fides requires the role to to be granted SELECT and MODIFY on all keyspaces. The permissions allow Fides to read the schema of, and data stored in keyspaces, tables, and fields as well as write restricted updates based on your policy configurations to tables you specify as part of DSR and Consent orchestration. For a complete list of permissions view the Scylla DB documentation."}),(0,a.jsx)(o.cB,{text:"Permissions list"}),(0,a.jsxs)(o.Z5,{children:[(0,a.jsx)(r.HCh,{children:"SELECT ALL KEYSPACES"}),(0,a.jsx)(r.HCh,{children:"MODIFY ALL KEYSPACES"})]})]})]}),{}),tags:["DSR Automation","Discovery","Detection"]},w={placeholder:{name:"Snowflake",key:"snowflake_placeholder",connection_type:d.Rj.SNOWFLAKE,access:d.uv.READ,created_at:""},category:n.DATABASE,overview:(0,a.jsx)(()=>(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(o.cB,{text:"Overview"}),(0,a.jsx)(o.XU,{children:"Snowflake is a cloud-based data warehousing platform designed for handling large-scale data storage and analytics. It enables organizations to store, manage, and analyze massive amounts of data efficiently, offering features like scalability, performance, and flexibility."}),(0,a.jsxs)(c,{children:[(0,a.jsx)(o.cB,{text:"Categories"}),(0,a.jsxs)(o.Z5,{children:[(0,a.jsx)(r.HCh,{children:"Database"}),(0,a.jsx)(r.HCh,{children:"SQL database"}),(0,a.jsx)(r.HCh,{children:"Storage system"}),(0,a.jsx)(r.HCh,{children:"Data detection"}),(0,a.jsx)(r.HCh,{children:"Data discovery"})]}),(0,a.jsx)(o.cB,{text:"Permissions"}),(0,a.jsxs)(o.Z5,{children:[(0,a.jsx)(r.HCh,{children:"CREATE ROLE my_monitor_role;"}),(0,a.jsx)(r.HCh,{children:"GRANT USAGE ON DATABASE DATABASE_1 TO ROLE my_monitor_role;"}),(0,a.jsx)(r.HCh,{children:"GRANT USAGE ON SCHEMA DATABASE_1.TEST_SCHEMA TO ROLE my_monitor_role;"}),(0,a.jsx)(r.HCh,{children:"GRANT SELECT ON ALL TABLES IN SCHEMA DATABASE_1.TEST_SCHEMA TO ROLE my_monitor_role;"}),(0,a.jsx)(r.HCh,{children:"CREATE USER test_user PASSWORD='***';"}),(0,a.jsx)(r.HCh,{children:"GRANT ROLE my_monitor_role TO USER test_user;"})]})]})]}),{}),tags:["DSR Automation","Discovery","Detection"]},R={placeholder:{name:"Website",key:"website_placeholder",connection_type:d.Rj.WEBSITE,access:d.uv.READ,created_at:""},category:n.WEBSITE,tags:["Consent","Discovery","Detection"],overview:(0,a.jsx)(()=>(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(o.cB,{text:"Overview"}),(0,a.jsx)(o.XU,{children:"Websites, or “properties”, often process user data. Adding a website as an integration lets you configure a Consent Management Platform (CMP), a site-specific privacy center, and Cross-Origin requests via Fides. You can also set up monitors to detect vendors, track technologies like cookies or pixels, and ensure compliance."})]}),{})},E={[d.Rj.BIGQUERY]:x,[d.Rj.DATAHUB]:m,[d.Rj.DYNAMODB]:g,[d.Rj.GOOGLE_CLOUD_SQL_MYSQL]:y,[d.Rj.GOOGLE_CLOUD_SQL_POSTGRES]:v,[d.Rj.MSSQL]:f,[d.Rj.RDS_MYSQL]:S,[d.Rj.RDS_POSTGRES]:A,[d.Rj.S3]:b,[d.Rj.SCYLLA]:D,[d.Rj.SNOWFLAKE]:w,[d.Rj.MYSQL]:C,[d.Rj.WEBSITE]:R},_=Object.values(E),T=Object.keys(E),H={placeholder:{name:"",key:"placeholder",connection_type:d.Rj.MANUAL,access:d.uv.READ,created_at:""},category:n.DATA_WAREHOUSE,tags:[]};var B=e=>{var t;return e&&null!==(t=E[e])&&void 0!==t?t:H}},64176:function(e,t,s){var i=s(27378),n=s(20682);t.Z=e=>{let{data:t}=(0,n.$I)({});return(0,i.useMemo)(()=>null==t?void 0:t.items.find(t=>t.identifier===e),[t,e])}},31883:function(e,t,s){s.d(t,{Bw:function(){return i.Bw},D4:function(){return i.D4}});var i=s(19043)}}]);
@@ -1 +0,0 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9255],{71928:function(t,e,n){var r=n(88799),i=n(85638),u=Object.prototype.hasOwnProperty;t.exports=function(t,e,n){var o=t[e];u.call(t,e)&&i(o,n)&&(void 0!==n||e in t)||r(t,e,n)}},88799:function(t,e,n){var r=n(42630);t.exports=function(t,e,n){"__proto__"==e&&r?r(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n}},49819:function(t,e,n){var r=n(18911)();t.exports=r},26194:function(t,e,n){var r=n(49819),i=n(50098);t.exports=function(t,e){return t&&r(t,e,i)}},59464:function(t,e,n){var r=n(11611),i=n(56016),u=n(21586),o=Object.prototype.hasOwnProperty;t.exports=function(t){if(!r(t))return u(t);var e=i(t),n=[];for(var a in t)"constructor"==a&&(e||!o.call(t,a))||n.push(a);return n}},10228:function(t,e,n){var r=n(79867),i=n(78859),u=n(76747);t.exports=function(t,e,n){for(var o=-1,a=e.length,c={};++o<a;){var f=e[o],l=r(t,f);n(l,f)&&i(c,u(f,t),l)}return c}},78859:function(t,e,n){var r=n(71928),i=n(76747),u=n(42383),o=n(11611),a=n(37948);t.exports=function(t,e,n,c){if(!o(t))return t;e=i(e,t);for(var f=-1,l=e.length,s=l-1,p=t;null!=p&&++f<l;){var v=a(e[f]),d=n;if("__proto__"===v||"constructor"===v||"prototype"===v)break;if(f!=s){var h=p[v];void 0===(d=c?c(h,v,p):void 0)&&(d=o(h)?h:u(e[f+1])?[]:{})}r(p,v,d),p=p[v]}return t}},18911:function(t){t.exports=function(t){return function(e,n,r){for(var i=-1,u=Object(e),o=r(e),a=o.length;a--;){var c=o[t?a:++i];if(!1===n(u[c],c,u))break}return e}}},42630:function(t,e,n){var r=n(81822),i=function(){try{var t=r(Object,"defineProperty");return t({},"",{}),t}catch(t){}}();t.exports=i},39759:function(t,e,n){var r=n(11324),i=n(30791),u=n(53893);t.exports=function(t){return r(t,u,i)}},2173:function(t,e,n){var r=n(58023)(Object.getPrototypeOf,Object);t.exports=r},30791:function(t,e,n){var r=n(97141),i=n(2173),u=n(83080),o=n(15937),a=Object.getOwnPropertySymbols?function(t){for(var e=[];t;)r(e,u(t)),t=i(t);return e}:o;t.exports=a},21586:function(t){t.exports=function(t){var e=[];if(null!=t)for(var n in Object(t))e.push(n);return e}},90104:function(t,e,n){var r=n(20186),i=n(3533),u=n(2900),o=n(19785),a=n(80068),c=n(43854),f=n(56016),l=n(48519),s=Object.prototype.hasOwnProperty;t.exports=function(t){if(null==t)return!0;if(a(t)&&(o(t)||"string"==typeof t||"function"==typeof t.splice||c(t)||l(t)||u(t)))return!t.length;var e=i(t);if("[object Map]"==e||"[object Set]"==e)return!t.size;if(f(t))return!r(t).length;for(var n in t)if(s.call(t,n))return!1;return!0}},92465:function(t){t.exports=function(t){return void 0===t}},53893:function(t,e,n){var r=n(98213),i=n(59464),u=n(80068);t.exports=function(t){return u(t)?r(t,!0):i(t)}},25389:function(t,e,n){var r=n(88799),i=n(26194),u=n(89278);t.exports=function(t,e){var n={};return e=u(e,3),i(t,function(t,i,u){r(n,i,e(t,i,u))}),n}},9799:function(t){t.exports=function(t){if("function"!=typeof t)throw TypeError("Expected a function");return function(){var e=arguments;switch(e.length){case 0:return!t.call(this);case 1:return!t.call(this,e[0]);case 2:return!t.call(this,e[0],e[1]);case 3:return!t.call(this,e[0],e[1],e[2])}return!t.apply(this,e)}}},15539:function(t,e,n){var r=n(89278),i=n(9799),u=n(71975);t.exports=function(t,e){return u(t,i(r(e)))}},71975:function(t,e,n){var r=n(66070),i=n(89278),u=n(10228),o=n(39759);t.exports=function(t,e){if(null==t)return{};var n=r(o(t),function(t){return[t]});return e=i(e),u(t,n,function(t,n){return e(t,n[0])})}},19508:function(t,e,n){"use strict";n.d(e,{D:function(){return o}});var r=n(64892),i=n(6680),u=n(54743);function o(t,e){let n,o;let h=()=>(0,i.L)(e?.in,NaN),g=e?.additionalDigits??2,m=function(t){let e;let n={},r=t.split(a.dateTimeDelimiter);if(r.length>2)return n;if(/:/.test(r[0])?e=r[0]:(n.date=r[0],e=r[1],a.timeZoneDelimiter.test(n.date)&&(n.date=t.split(a.timeZoneDelimiter)[0],e=t.substr(n.date.length,t.length))),e){let t=a.timezone.exec(e);t?(n.time=e.replace(t[1],""),n.timezone=t[1]):n.time=e}return n}(t);if(m.date){let t=function(t,e){let n=RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+e)+"})|(\\d{2}|[+-]\\d{"+(2+e)+"})$)"),r=t.match(n);if(!r)return{year:NaN,restDateString:""};let i=r[1]?parseInt(r[1]):null,u=r[2]?parseInt(r[2]):null;return{year:null===u?i:100*u,restDateString:t.slice((r[1]||r[2]).length)}}(m.date,g);n=function(t,e){if(null===e)return new Date(NaN);let n=t.match(c);if(!n)return new Date(NaN);let r=!!n[4],i=s(n[1]),u=s(n[2])-1,o=s(n[3]),a=s(n[4]),f=s(n[5])-1;if(r)return a>=1&&a<=53&&f>=0&&f<=6?function(t,e,n){let r=new Date(0);r.setUTCFullYear(t,0,4);let i=r.getUTCDay()||7;return r.setUTCDate(r.getUTCDate()+((e-1)*7+n+1-i)),r}(e,a,f):new Date(NaN);{let t=new Date(0);return u>=0&&u<=11&&o>=1&&o<=(v[u]||(d(e)?29:28))&&i>=1&&i<=(d(e)?366:365)?(t.setUTCFullYear(e,u,Math.max(i,o)),t):new Date(NaN)}}(t.restDateString,t.year)}if(!n||isNaN(+n))return h();let N=+n,x=0;if(m.time&&isNaN(x=function(t){let e=t.match(f);if(!e)return NaN;let n=p(e[1]),i=p(e[2]),u=p(e[3]);return(24===n?0===i&&0===u:u>=0&&u<60&&i>=0&&i<60&&n>=0&&n<25)?n*r.vh+i*r.yJ+1e3*u:NaN}(m.time)))return h();if(m.timezone){if(isNaN(o=function(t){if("Z"===t)return 0;let e=t.match(l);if(!e)return 0;let n="+"===e[1]?-1:1,i=parseInt(e[2]),u=e[3]&&parseInt(e[3])||0;return u>=0&&u<=59?n*(i*r.vh+u*r.yJ):NaN}(m.timezone)))return h()}else{let t=new Date(N+x),n=(0,u.Q)(0,e?.in);return n.setFullYear(t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()),n.setHours(t.getUTCHours(),t.getUTCMinutes(),t.getUTCSeconds(),t.getUTCMilliseconds()),n}return(0,u.Q)(N+x+o,e?.in)}let a={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},c=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,f=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,l=/^([+-])(\d{2})(?::?(\d{2}))?$/;function s(t){return t?parseInt(t):1}function p(t){return t&&parseFloat(t.replace(",","."))||0}let v=[31,null,31,30,31,30,31,31,30,31,30,31];function d(t){return t%400==0||t%4==0&&t%100!=0}}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9767],{7617:function(e,t,i){i.d(t,{q:function(){return a}});var n=i(24246),r=i(77181);let a=e=>{let{label:t,isDisabled:i,...a}=e;return(0,n.jsx)(r.OK9,{"data-testid":"tab-".concat(t),_selected:{fontWeight:"600",color:"complimentary.500",borderColor:"complimentary.500"},fontSize:a.fontSize,fontWeight:"500",color:"gray.500",isDisabled:i||!1,children:t})};t.Z=e=>{let{data:t,border:i="partial",...s}=e;return(0,n.jsxs)(r.mQc,{colorScheme:"complimentary",...s,children:[(0,n.jsx)(r.tdY,{width:"partial"===i?"max-content":void 0,children:t.map(e=>(0,n.jsx)(a,{label:e.label,isDisabled:e.isDisabled,fontSize:s.fontSize},e.label))}),(0,n.jsx)(r.nPR,{children:t.map(e=>(0,n.jsx)(r.x45,{px:0,"data-testid":"tab-panel-".concat(e.label),children:e.content},e.label))})]})}},97181:function(e,t,i){i.d(t,{d:function(){return d}});var n=i(24246),r=i(77181),a=i(34090),s=i(27378),l=i(91613),o=i(40324);let d=e=>{let{name:t,label:i,labelProps:d,tooltip:c,isRequired:u,layout:h="inline",...x}=e,[p,m,{setValue:f}]=(0,a.U$)(t),g=!!(m.touched&&m.error),[v,j]=(0,s.useState)("");p.value||"tags"!==x.mode&&"multiple"!==x.mode||(p.value=[]),"tags"===x.mode&&"string"==typeof p.value&&(p.value=[p.value]);let y="tags"===x.mode?(e,t)=>e?e.value!==v||p.value.includes(v)?x.optionRender?x.optionRender(e,t):e.label:'Create "'.concat(v,'"'):void 0:x.optionRender||void 0,b=e=>{j(e),x.onSearch&&x.onSearch(e)},C=(e,t)=>{f(e),x.onChange&&x.onChange(e,t)};return"inline"===h?(0,n.jsx)(r.NIc,{isInvalid:g,isRequired:u,children:(0,n.jsxs)(r.rjZ,{templateColumns:i?"1fr 3fr":"1fr",children:[i?(0,n.jsx)(o.__,{htmlFor:x.id||t,...d,children:i}):null,(0,n.jsxs)(r.jqI,{align:"center",children:[(0,n.jsxs)(r.jqI,{vertical:!0,flex:1,className:"mr-2",children:[(0,n.jsx)(r.WPr,{...p,id:x.id||t,"data-testid":"controlled-select-".concat(p.name),...x,optionRender:y,onSearch:"tags"===x.mode?b:void 0,onChange:C,value:p.value||void 0,status:g?"error":void 0}),(0,n.jsx)(o.Bc,{isInvalid:g,message:m.error,fieldName:p.name})]}),c?(0,n.jsx)(l.Z,{label:c}):null]})]})}):(0,n.jsx)(r.NIc,{isInvalid:g,isRequired:u,children:(0,n.jsxs)(r.gCW,{alignItems:"start",children:[(0,n.jsxs)(r.jqI,{align:"center",children:[i?(0,n.jsx)(o.__,{htmlFor:x.id||t,fontSize:"xs",my:0,mr:1,...d,children:i}):null,c?(0,n.jsx)(l.Z,{label:c}):null]}),(0,n.jsx)(r.WPr,{...p,id:x.id||t,"data-testid":"controlled-select-".concat(p.name),...x,optionRender:y,onSearch:"tags"===x.mode?b:void 0,onChange:C,value:p.value||void 0,status:g?"error":void 0}),(0,n.jsx)(o.Bc,{isInvalid:g,message:m.error,fieldName:p.name})]})})}},812:function(e,t,i){i.d(t,{D4:function(){return a.D4},MM:function(){return h},Ot:function(){return d},c6:function(){return r},cj:function(){return p},e$:function(){return l},fn:function(){return o},iC:function(){return x},nU:function(){return u},tB:function(){return c}});var n,r,a=i(19043);let s="An unexpected error occurred. Please try again.",l=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:s;if((0,a.Bw)(e)){if((0,a.hE)(e.data))return e.data.detail;if((0,a.cz)(e.data)){var i;let t=null===(i=e.data.detail)||void 0===i?void 0:i[0];return"".concat(null==t?void 0:t.msg,": ").concat(null==t?void 0:t.loc)}if(409===e.status&&(0,a.Dy)(e.data)||404===e.status&&(0,a.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 d(e){return"object"==typeof e&&null!=e&&"data"in e&&"string"==typeof e.data.detail}function c(e){return"object"==typeof e&&null!=e&&"data"in e&&Array.isArray(e.data.detail)}let u=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{status:500,message:s};if((0,a.oK)(e))return{status:e.originalStatus,message:e.data};if((0,a.Bw)(e)){let{status:i}=e;return{status:i,message:l(e,t.message)}}return t},h=e=>Object.entries(e).map(e=>({value:e[1],label:e[1]}));(n=r||(r={})).GVL="gvl",n.AC="gacp",n.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"}},14047:function(e,t,i){i.d(t,{H:function(){return a},V:function(){return n.V}});var n=i(84306),r=i(812);let a=()=>{let{errorAlert:e}=(0,n.V)();return{handleError:t=>{let i="An unexpected error occurred. Please try again.";(0,r.Ot)(t)?i=t.data.detail:(0,r.tB)(t)&&(i=t.data.detail[0].msg),e(i)}}}},84306:function(e,t,i){i.d(t,{V:function(){return a}});var n=i(24246),r=i(77181);let a=()=>{let e=(0,r.pmc)();return{errorAlert:(t,i,a)=>{let s={...a,position:(null==a?void 0:a.position)||"top",render:e=>{let{onClose:a}=e;return(0,n.jsxs)(r.bZj,{alignItems:"normal",status:"error","data-testid":"error-alert",children:[(0,n.jsx)(r.zMQ,{}),(0,n.jsxs)(r.xuv,{children:[i&&(0,n.jsx)(r.CdC,{children:i}),(0,n.jsx)(r.XaZ,{children:t})]}),(0,n.jsx)(r.PZ7,{onClick:a,position:"relative",right:0,size:"sm",top:-1})]})}};(null==a?void 0:a.id)&&e.isActive(a.id)?e.update(a.id,s):e(s)},successAlert:(t,i,a)=>{let s={...a,position:(null==a?void 0:a.position)||"top",render:e=>{let{onClose:a}=e;return(0,n.jsxs)(r.bZj,{alignItems:"normal",status:"success",variant:"subtle","data-testid":"success-alert",children:[(0,n.jsx)(r.zMQ,{}),(0,n.jsxs)(r.xuv,{children:[i&&(0,n.jsx)(r.CdC,{children:i}),(0,n.jsx)(r.XaZ,{children:t})]}),(0,n.jsx)(r.PZ7,{onClick:a,position:"relative",right:0,size:"sm",top:-1})]})}};(null==a?void 0:a.id)&&e.isActive(a.id)?e.update(a.id,s):e(s)}}}},39715:function(e,t,i){var n=i(24246),r=i(77181);i(27378),t.Z=e=>{let{isEmptyState:t,yamlError:i}=e;return(0,n.jsx)(r.Rg9,{in:!0,children:(0,n.jsxs)(r.xuv,{w:"fit-content",bg:"white",p:3,borderRadius:3,children:[(0,n.jsxs)(r.Ugi,{children:[(0,n.jsx)(r.X6q,{as:"h5",color:"gray.700",size:"xs",children:"YAML"}),(0,n.jsx)(r.Vp9,{colorScheme:"red",size:"sm",variant:"solid",children:"Error"})]}),(0,n.jsx)(r.xuv,{bg:"red.50",border:"1px solid",borderColor:"red.300",color:"red.300",mt:"16px",borderRadius:"6px",children:(0,n.jsxs)(r.Ugi,{alignItems:"flex-start",margin:["14px","17px","14px","17px"],children:[(0,n.jsx)(r.f9v,{}),t&&(0,n.jsxs)(r.xuv,{children:[(0,n.jsx)(r.X6q,{as:"h5",color:"red.500",fontWeight:"semibold",size:"xs",children:"Error message:"}),(0,n.jsx)(r.xvT,{color:"gray.700",fontSize:"sm",fontWeight:"400",children:"Yaml system is required"})]}),i&&(0,n.jsxs)(r.xuv,{children:[(0,n.jsx)(r.X6q,{as:"h5",color:"red.500",fontWeight:"semibold",size:"xs",children:"Error message:"}),(0,n.jsx)(r.xvT,{color:"gray.700",fontSize:"sm",fontWeight:"400",children:i.message}),(0,n.jsx)(r.xvT,{color:"gray.700",fontSize:"sm",fontWeight:"400",children:i.reason}),(0,n.jsxs)(r.xvT,{color:"gray.700",fontSize:"sm",fontWeight:"400",children:["Ln ",(0,n.jsx)("b",{children:i.mark.line}),", Col"," ",(0,n.jsx)("b",{children:i.mark.column}),", Pos"," ",(0,n.jsx)("b",{children:i.mark.position})]})]})]})})]})})}},41337:function(e,t,i){var n=i(24246),r=i(77181);i(27378);var a=i(28120),s=i(16394),l=i(14746);let o=l.Ny+l.iW.get(a.Rj.WEBSITE),d=e=>void 0!==e.connection_type,c=e=>void 0!==e.encoded_icon,u=e=>(null==e?void 0:e.connection_type)===a.Rj.WEBSITE;t.Z=e=>{let{data:t,...i}=e;return(0,n.jsx)(r.Eep,{boxSize:"32px",objectFit:"cover",src:(()=>{let e;if(c(t)&&t.encoded_icon)return"data:image/svg+xml;base64,".concat(t.encoded_icon);if(u(t)){var i;let e=null===(i=t.secrets)||void 0===i?void 0:i.url;if(!e)return o;let n=(0,s.ge)(e);return(0,s.tl)(n,100)}if(d(t))e=[...l.iW].find(e=>{var i,n;let[r]=e;return t.connection_type.toString()!==a.Rj.SAAS&&t.connection_type.toString()===r||t.connection_type.toString()===a.Rj.SAAS&&(null===(n=t.saas_config)||void 0===n?void 0:null===(i=n.type)||void 0===i?void 0:i.toString())===r.toString()});else if(c(t)){let{identifier:i}=t;e=[...l.iW].find(e=>{let[t]=e;return t.toLowerCase()===i.toLowerCase()})}return e?l.Ny+e[1]:l.VD})(),fallbackSrc:u(t)?o:l.VD,alt:(()=>{if(d(t)){var e;return null!==(e=t.name)&&void 0!==e?e:t.key}return c(t)?t.human_readable:t})(),...i})}},1226:function(e,t,i){var n=i(24246);i(27378);var r=i(77213);t.Z=e=>{let{children:t}=e;return(0,n.jsx)(r.Z,{title:"Connections",children:t})}},11274:function(e,t,i){i.d(t,{s:function(){return E}});var n=i(24246),r=i(96356),a=i(77181),s=i(86677),l=i(27378),o=i(16134),d=i(77830),c=i(28120),u=i(14047),h=i(84306),x=i(14207),p=i(16125),m=i(34090);let f=(e,t)=>{let i={...e};return Object.entries(t.properties).forEach(t=>{let[n,r]=t;if("integer"===r.type){let t=r.default?Number(r.default):e[n];i[n]=t||0}else{var a;let t=null!==(a=r.default)&&void 0!==a?a:e[n];i[n]=null!=t?t:null}}),i},g="#/definitions/FidesDatasetReference";var v=e=>{let{data:t,defaultValues:i,isSubmitting:s=!1,onSaveClick:d,onTestConnectionClick:h,testButtonLabel:p="Test integration"}=e,v=(0,l.useRef)(!1),{handleError:j}=(0,u.H)(),{connection:y,connectionOption:b}=(0,o.C)(r.ZZ),[C,_]=(0,x.h2)(),k=e=>{let t;return(void 0===e||""===e)&&(t="Connection Identifier is required"),e&&(0,a.kEn)(e)&&(t="Connection Identifier must be an alphanumeric value"),t},S=(e,t,i)=>{let n;return(void 0===t||""===t)&&(n="".concat(e," is required")),i===g&&(t.includes(".")?t.split(".").length<3&&(n="Dataset reference must include at least three parts"):n="Dataset reference must be dot delimited"),n},w=(e,t)=>(0,n.jsx)(a.lXp,{color:"gray.900",fontSize:"14px",fontWeight:"semibold",htmlFor:e,minWidth:"150px",children:t}),I=e=>{var t;if((null===(t=e.allOf)||void 0===t?void 0:t[0].$ref)===g)return"Enter dataset.collection.field"},z=(e,i)=>{var r;return(0,n.jsx)(m.gN,{id:e,name:e,validate:(null!==(r=t.required)&&void 0!==r&&!!r.includes(e)||"integer"===i.type)&&(e=>{var t;return S(i.title,e,null===(t=i.allOf)||void 0===t?void 0:t[0].$ref)}),children:r=>{var s;let{field:l,form:o}=r;return(0,n.jsxs)(a.NIc,{display:"flex",isRequired:null===(s=t.required)||void 0===s?void 0:s.includes(e),isInvalid:o.errors[e]&&o.touched[e],children:[w(e,i.title),(0,n.jsxs)(a.gCW,{align:"flex-start",w:"inherit",children:["integer"!==i.type&&(0,n.jsx)(a.IIB,{...l,value:l.value||"",placeholder:I(i),autoComplete:"off",color:"gray.700",size:"sm"}),"integer"===i.type&&(0,n.jsxs)(a.Y2U,{allowMouseWheel:!0,color:"gray.700",defaultValue:0,min:0,size:"sm",children:[(0,n.jsx)(a.zuI,{...l,autoComplete:"off"}),(0,n.jsxs)(a.FiK,{children:[(0,n.jsx)(a.WQu,{}),(0,n.jsx)(a.Y_d,{})]})]}),(0,n.jsx)(a.J1D,{children:o.errors[e]})]}),(0,n.jsx)(a.ua7,{"aria-label":i.description,hasArrow:!0,label:i.description,placement:"right-start",openDelay:500,children:(0,n.jsx)(a.kCb,{alignItems:"center",h:"32px",visibility:i.description?"visible":"hidden",children:(0,n.jsx)(a.ITP,{marginLeft:"8px",_hover:{cursor:"pointer"}})})})]})}},e)},R=async()=>{try{await C(y.key).unwrap()}catch(e){j(e)}};return(0,l.useEffect)(()=>(v.current=!0,_.isSuccess&&h(_),()=>{v.current=!1}),[h,_]),(0,n.jsx)(m.J9,{enableReinitialize:!0,initialValues:(()=>{let e={...i};if(null==y?void 0:y.key){var n,r;e.name=null!==(r=y.name)&&void 0!==r?r:"",e.description=y.description,e.instance_key=y.connection_type===c.Rj.SAAS?null===(n=y.saas_config)||void 0===n?void 0:n.fides_key:y.key}return f(e,t)})(),onSubmit:(e,i)=>{let n={...e};Object.keys(t.properties).forEach(i=>{var r;if((null===(r=t.properties[i].allOf)||void 0===r?void 0:r[0].$ref)===g){let t=e[i].split(".");n[i]={dataset:t.shift(),field:t.join("."),direction:"from"}}}),d(n,i)},validateOnBlur:!1,validateOnChange:!1,children:e=>(0,n.jsx)(m.l0,{noValidate:!0,children:(0,n.jsxs)(a.gCW,{align:"stretch",gap:"16px",children:[(0,n.jsx)(m.gN,{id:"name",name:"name",validate:e=>S("Name",e),children:t=>{let{field:i}=t;return(0,n.jsxs)(a.NIc,{display:"flex",isRequired:!0,isInvalid:e.errors.name&&e.touched.name,children:[w("name","Name"),(0,n.jsxs)(a.gCW,{align:"flex-start",w:"inherit",children:[(0,n.jsx)(a.IIB,{...i,autoComplete:"off",autoFocus:!0,color:"gray.700",placeholder:"Enter a friendly name for your new ".concat(b.human_readable," connection"),size:"sm","data-testid":"input-name"}),(0,n.jsx)(a.J1D,{children:e.errors.name})]}),(0,n.jsx)(a.kCb,{alignItems:"center",h:"32px",visibility:"hidden",children:(0,n.jsx)(a.ITP,{marginLeft:"8px"})})]})}}),(0,n.jsx)(m.gN,{id:"description",name:"description",children:e=>{let{field:t}=e;return(0,n.jsxs)(a.NIc,{display:"flex",children:[w("description","Description"),(0,n.jsx)(a.gxH,{...t,color:"gray.700",placeholder:"Enter a description for your new ".concat(b.human_readable," connection"),resize:"none",size:"sm",value:t.value||""}),(0,n.jsx)(a.kCb,{alignItems:"center",h:"32px",visibility:"hidden",children:(0,n.jsx)(a.ITP,{marginLeft:"8px"})})]})}}),(0,n.jsx)(m.gN,{id:"instance_key",name:"instance_key",validate:k,children:t=>{let{field:i}=t;return(0,n.jsxs)(a.NIc,{display:"flex",isRequired:!0,isInvalid:e.errors.instance_key&&e.touched.instance_key,children:[w("instance_key","Connection Identifier"),(0,n.jsxs)(a.gCW,{align:"flex-start",w:"inherit",children:[(0,n.jsx)(a.IIB,{...i,autoComplete:"off",color:"gray.700",isDisabled:!!(null==y?void 0:y.key),placeholder:"A unique identifier for your new ".concat(b.human_readable," connection"),size:"sm"}),(0,n.jsx)(a.J1D,{children:e.errors.instance_key})]}),(0,n.jsx)(a.ua7,{"aria-label":"The fides_key will allow fidesops to associate dataset field references appropriately. Must be a unique alphanumeric value with no spaces (underscores allowed) to represent this connection.",hasArrow:!0,label:"The fides_key will allow fidesops to associate dataset field references appropriately. Must be a unique alphanumeric value with no spaces (underscores allowed) to represent this connection.",placement:"right-start",openDelay:500,children:(0,n.jsx)(a.kCb,{alignItems:"center",h:"32px",children:(0,n.jsx)(a.ITP,{marginLeft:"8px",_hover:{cursor:"pointer"}})})})]})}}),Object.entries(t.properties).map(e=>{let[t,i]=e;return"advanced_settings"===t?null:z(t,i)}),(0,n.jsxs)("div",{className:"flex gap-2",children:[(0,n.jsx)(a.wpx,{disabled:!(null==y?void 0:y.key),loading:_.isLoading||_.isFetching,onClick:R,"data-testid":"test-connection-button",children:p}),(0,n.jsx)(a.wpx,{htmlType:"submit",type:"primary",disabled:s,loading:s,children:"Save"})]})]})})})},j=i(3968);let y=e=>{let{onConnectionCreated:t,data:i}=e,a=(0,p.I0)(),{errorAlert:s,successAlert:d}=(0,h.V)(),{handleError:m}=(0,u.H)(),[f,g]=(0,l.useState)(!1),{connection:v,connectionOption:y}=(0,o.C)(r.ZZ),[b]=(0,x.pH)(),[C]=(0,x.Du)();return{isSubmitting:f,handleSubmit:async e=>{try{var l;g(!0);let o={access:c.uv.WRITE,connection_type:null==y?void 0:y.identifier,description:e.description,disabled:!1,key:(0,j.E)(e.instance_key),name:e.name},u=await b(o).unwrap();if((null===(l=u.failed)||void 0===l?void 0:l.length)>0)s(u.failed[0].message);else{let l={connection_key:u.succeeded[0].key,secrets:{}};Object.entries(i.properties).forEach(t=>{l.secrets[t[0]]=e[t[0]]});let o=await C(l).unwrap();"failed"===o.test_status?s((0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("b",{children:"Message:"})," ",o.msg,(0,n.jsx)("br",{}),(0,n.jsx)("b",{children:"Failure Reason:"})," ",o.failure_reason]})):(a((0,r.lm)(u.succeeded[0])),d("Connector successfully ".concat((null==v?void 0:v.key)?"updated":"added","!")),(null==v?void 0:v.key)||!t||t())}}catch(e){m(e)}finally{g(!1)}},connectionOption:y}},b=e=>{let{data:t,onConnectionCreated:i,onTestConnectionClick:r}=e,{isSubmitting:s,handleSubmit:l,connectionOption:o}=y({onConnectionCreated:i,data:t});return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(a.xuv,{color:"gray.700",fontSize:"14px",h:"80px",children:["Connect to your ",o.human_readable," environment by providing the information below. Once you have saved the form, you may test the integration to confirm that it's working correctly."]}),(0,n.jsx)(v,{data:t,defaultValues:{description:"",instance_key:"",name:""},isSubmitting:s,onSaveClick:l,onTestConnectionClick:r})]})},C={description:"",instance_key:"",name:""},_=e=>{let{data:t,onConnectionCreated:i,onTestEmail:r}=e,{connectionOption:s,isSubmitting:l,handleSubmit:o}=y({onConnectionCreated:i,data:t});return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(a.xuv,{color:"gray.700",fontSize:"14px",h:"80px",children:["Configure your ",s.human_readable," connector by providing the connector name, description and a test email address. Once you have saved the details, you can click test email to check the format of the email."]}),(0,n.jsx)(v,{data:t,defaultValues:C,isSubmitting:l,onSaveClick:e=>{o(e)},onTestConnectionClick:r,testButtonLabel:"Test email"})]})};var k=i(55484),S=i(27259),w=i(67762),I=e=>{let{defaultValues:t,isSubmitting:i=!1,onSaveClick:l}=e,c=(0,s.useRouter)(),{connection:u,connectionOption:h}=(0,o.C)(r.ZZ);return(0,n.jsx)(m.J9,{initialValues:(()=>{if(null==u?void 0:u.key){var e;t.name=null!==(e=u.name)&&void 0!==e?e:"",t.description=u.description}return t})(),onSubmit:(e,t)=>{l(e,t)},validateOnBlur:!1,validateOnChange:!1,validationSchema:k.Ry().shape({name:k.Z_().required("Name is required")}),children:(0,n.jsx)(m.l0,{noValidate:!0,children:(0,n.jsxs)(a.gCW,{align:"stretch",gap:"16px",children:[(0,n.jsx)(S.Z,{autoFocus:!0,disabled:!!(null==u?void 0:u.key),isRequired:!0,label:"Name",name:"name",placeholder:"Enter a friendly name for your new ".concat(h.human_readable," connection")}),(0,n.jsx)(S.Z,{label:"Description",name:"description",placeholder:"Enter a description for your new ".concat(h.human_readable," connection"),type:"textarea"}),(0,n.jsx)(w.h,{isSubmitting:i,onCancelClick:()=>{c.push(d.JR)}})]})})})};let z=e=>{let{onConnectionCreated:t}=e,i=(0,p.I0)(),{errorAlert:s,successAlert:d}=(0,h.V)(),{handleError:m}=(0,u.H)(),[f,g]=(0,l.useState)(!1),{connection:v,connectionOption:j}=(0,o.C)(r.ZZ),[y]=(0,x.pH)(),b=async(e,n)=>{try{var a;g(!0);let n={access:c.uv.WRITE,connection_type:null==j?void 0:j.identifier,description:e.description,disabled:!1,name:e.name,key:null==v?void 0:v.key},l=await y(n).unwrap();(null===(a=l.failed)||void 0===a?void 0:a.length)>0?s(l.failed[0].message):(i((0,r.lm)(l.succeeded[0])),d("Connector successfully ".concat((null==v?void 0:v.key)?"updated":"added","!")),(null==v?void 0:v.key)||!t||t())}catch(e){m(e)}finally{g(!1)}};return(0,n.jsxs)(a.gCW,{align:"stretch",gap:"16px",children:[(0,n.jsxs)(a.xuv,{color:"gray.700",fontSize:"14px",children:["To begin setting up your new ",j.human_readable," ","connector you must first assign a name to the connector and a description.",(0,n.jsx)("br",{}),(0,n.jsx)("br",{}),"Once you have completed this section you can then progress onto"," ",(0,n.jsx)(a.xvT,{display:"inline-block",fontWeight:"700",children:"DSR customization"})," ","using the menu on the left hand side."]}),(0,n.jsx)(I,{defaultValues:{description:"",name:""},isSubmitting:f,onSaveClick:b})]})},R=e=>{let{data:t,onConnectionCreated:i,onTestConnectionClick:s}=e,d=(0,p.I0)(),{errorAlert:m,successAlert:f}=(0,h.V)(),{handleError:g}=(0,u.H)(),[y,b]=(0,l.useState)(!1),{connection:C,connectionOption:_}=(0,o.C)(r.ZZ),[k]=(0,x.pL)(),[S]=(0,x.pH)(),[w]=(0,x.Du)(),I=async(e,a)=>{try{if(b(!0),C){var s;let i={access:c.uv.WRITE,connection_type:C.connection_type,description:e.description,disabled:!1,key:C.key,name:e.name},a=await S(i).unwrap();if((null===(s=a.failed)||void 0===s?void 0:s.length)>0)m(a.failed[0].message);else{d((0,r.lm)(a.succeeded[0]));let i={connection_key:C.key,secrets:{}};Object.entries(t.properties).forEach(t=>{i.secrets[t[0]]=e[t[0]]});let s=await w(i).unwrap();"failed"===s.test_status?m((0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("b",{children:"Message:"})," ",s.msg,(0,n.jsx)("br",{}),(0,n.jsx)("b",{children:"Failure Reason:"})," ",s.failure_reason]})):f("Connector successfully updated!")}}else{let n={description:e.description,name:e.name,instance_key:(0,j.E)(e.instance_key),saas_connector_type:_.identifier,secrets:{}};Object.entries(t.properties).forEach(t=>{n.secrets[t[0]]=e[t[0]]});let a=await k(n).unwrap();d((0,r.lm)(a.connection)),f("Connector successfully added!"),null==i||i()}}catch(e){g(e)}finally{b(!1)}};return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(a.xuv,{color:"gray.700",fontSize:"14px",h:"80px",children:["Connect to your ",_.human_readable," environment by providing the information below. Once you have saved the form, you may test the integration to confirm that it's working correctly."]}),(0,n.jsx)(v,{data:t,defaultValues:{description:"",instance_key:"",name:""},isSubmitting:y,onSaveClick:I,onTestConnectionClick:s})]})};var W=i(16394);let Z=e=>{var t,i;let{response:s}=e,{connectionOption:l}=(0,o.C)(r.ZZ);return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(a.izJ,{color:"gray.100"}),(0,n.jsxs)(a.gCW,{align:"flex-start",mt:"16px",children:[(null===(t=s.data)||void 0===t?void 0:t.test_status)==="succeeded"&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(a.Ugi,{children:[(0,n.jsxs)(a.X6q,{as:"h5",color:"gray.700",size:"xs",children:["Successfully connected to ",l.human_readable]}),(0,n.jsx)(a.Vp9,{colorScheme:"green",size:"sm",variant:"solid",children:"Success"})]}),(0,n.jsx)(a.xvT,{color:"gray.500",fontSize:"sm",mt:"12px !important",children:(0,W.p6)(s.fulfilledTimeStamp)}),(0,n.jsx)(a.xuv,{bg:"green.100",border:"1px solid",borderColor:"green.300",color:"green.700",mt:"16px",borderRadius:"6px",children:(0,n.jsxs)(a.Ugi,{alignItems:"flex-start",margin:["14px","17px","14px","17px"],children:[(0,n.jsx)(a.StI,{}),(0,n.jsxs)(a.xuv,{children:[(0,n.jsx)(a.X6q,{as:"h5",color:"green.500",fontWeight:"semibold",size:"xs",children:"Success message:"}),(0,n.jsx)(a.xvT,{color:"gray.700",fontSize:"sm",fontWeight:"400",children:s.data.msg})]})]})})]}),(null===(i=s.data)||void 0===i?void 0:i.test_status)==="failed"&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(a.Ugi,{children:[(0,n.jsxs)(a.X6q,{as:"h5",color:"gray.700",size:"xs",children:["Output error to ",l.human_readable]}),(0,n.jsx)(a.Vp9,{colorScheme:"red",size:"sm",variant:"solid",children:"Error"})]}),(0,n.jsx)(a.xvT,{color:"gray.500",fontSize:"sm",mt:"12px !important",children:(0,W.p6)(s.fulfilledTimeStamp)}),(0,n.jsx)(a.xuv,{bg:"red.50",border:"1px solid",borderColor:"red.300",color:"red.300",mt:"16px",borderRadius:"6px",children:(0,n.jsxs)(a.Ugi,{alignItems:"flex-start",margin:["14px","17px","14px","17px"],children:[(0,n.jsx)(a.f9v,{}),(0,n.jsxs)(a.xuv,{children:[(0,n.jsx)(a.X6q,{as:"h5",color:"red.500",fontWeight:"semibold",size:"xs",children:"Error message:"}),(0,n.jsx)(a.xvT,{color:"gray.700",fontSize:"sm",fontWeight:"400",children:s.data.failure_reason}),(0,n.jsx)(a.xvT,{color:"gray.700",fontSize:"sm",fontWeight:"400",children:s.data.msg})]})]})})]})]})]})},E=e=>{let{onConnectionCreated:t}=e,i=(0,s.useRouter)(),{connectionOption:u}=(0,o.C)(r.ZZ),h=u&&u.type===c.Zi.MANUAL,{data:x,isFetching:p,isLoading:m,isSuccess:f}=(0,r.n3)(u.identifier,{skip:h}),[g,v]=(0,l.useState)(),j=e=>{v(e)},y=(0,l.useCallback)(()=>{i.push(d.JR)},[i]),C=(0,l.useCallback)(()=>{switch(null==u?void 0:u.type){case c.Zi.DATABASE:if(f&&x)return(0,n.jsx)(b,{data:x,onConnectionCreated:t,onTestConnectionClick:j});break;case c.Zi.MANUAL:return(0,n.jsx)(z,{onConnectionCreated:t});case c.Zi.SAAS:if(f&&x)return(0,n.jsx)(R,{data:x,onConnectionCreated:t,onTestConnectionClick:j});break;case c.Zi.EMAIL:if(f&&x)return(0,n.jsx)(_,{data:x,onConnectionCreated:y,onTestEmail:j})}},[null==u?void 0:u.type,x,f,t,y]);return(0,n.jsxs)(a.kCb,{gap:"97px",children:[(0,n.jsxs)(a.gCW,{w:"579px",gap:"16px",align:"stretch",children:[(p||m)&&(0,n.jsx)(a.M5Y,{children:(0,n.jsx)(a.$jN,{})}),C()]}),g&&(0,n.jsxs)(a.Rg9,{in:!0,children:[" ",(0,n.jsx)(a.xuv,{mt:"16px",maxW:"528px",w:"fit-content",children:(0,n.jsx)(Z,{response:g})})]})]})}},38212:function(e,t,i){i.d(t,{Z:function(){return y}});var n=i(24246),r=i(14047),a=i(96356),s=i(14207),l=i(77181),o=i(86677),d=i(27378),c=i(16134),u=i(812),h=i(77830),x=i(41966),p=i(84306),m=i(66527),f=i(41207),g=i(39715),v=e=>{let{data:t=[],isSubmitting:i=!1,onSubmit:r,onCancel:a,disabled:s}=e,o=(0,d.useRef)(null),{errorAlert:c}=(0,p.V)(),u=t.length>0?m.ZP.dump(t):void 0,[h,v]=(0,d.useState)(void 0),[j,y]=(0,d.useState)(!1),[b,C]=(0,d.useState)(!u),_=(0,l.qY0)(),{data:k}=(0,x.NR)(),[S,w]=(0,d.useState)([]),I=e=>{m.ZP.load(e,{json:!0}),v(void 0)},z=()=>{let e=o.current.getValue();r(m.ZP.load(e,{json:!0})),w([])};return(0,n.jsxs)(l.kCb,{gap:"97px",children:[(0,n.jsxs)(l.gCW,{align:"stretch",w:"800px",children:[(0,n.jsx)(f.M,{defaultLanguage:"yaml",defaultValue:u,height:"calc(100vh - 526px)",onChange:e=>{try{y(!0),I(e),C(!!(!e||""===e.trim()))}catch(e){(0,f.F)(e)?v(e):c("Could not parse the supplied YAML")}},onMount:(e,t)=>{o.current=e,o.current.focus()},options:{fontFamily:"Menlo",fontSize:13,minimap:{enabled:!0},readOnly:s},theme:"light"}),(0,n.jsxs)(l.Ugi,{justifyContent:"flex-end",pr:6,children:[a&&(0,n.jsx)(l.wpx,{onClick:a,children:"Cancel"}),(0,n.jsx)(l.wpx,{type:"primary",disabled:s||b||!!h||i,loading:i,onClick:()=>{if(k&&k.length){let e=o.current.getValue(),t=k.filter(t=>e.includes("fides_key: ".concat(t.fides_key,"\n"))).map(e=>e.fides_key);if(w(t),t.length){_.onOpen();return}}z()},htmlType:"submit","data-testid":"save-yaml-btn",children:"Save"})]})]}),j&&(b||h)&&(0,n.jsx)(g.Z,{isEmptyState:b,yamlError:h}),(0,n.jsx)(l.cVQ,{isOpen:_.isOpen,onClose:_.onClose,onConfirm:()=>{z(),_.onClose()},title:"Overwrite dataset",message:(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(l.xvT,{children:["You are about to overwrite the dataset",S.length>1?"s":""," ",S.map((e,t)=>{let i=t===S.length-1;return(0,n.jsxs)(d.Fragment,{children:[(0,n.jsx)(l.xvT,{color:"complimentary.500",as:"span",fontWeight:"bold",children:e}),i?".":", "]},e)})]}),(0,n.jsx)(l.xvT,{children:"Are you sure you would like to continue?"})]})})]})};let j=e=>{let{children:t,...i}=e;return(0,n.jsx)(l.xvT,{color:"gray.700",fontSize:"14px",...i,children:t})};var y=()=>{let e=(0,o.useRouter)(),{errorAlert:t,successAlert:i}=(0,r.V)(),{handleError:p}=(0,r.H)(),[m,f]=(0,d.useState)(!1),{connection:g}=(0,c.C)(a.ZZ),{data:y,isFetching:b,isLoading:C,isSuccess:_}=(0,s.Eg)(g.key),[k]=(0,s.Lz)(),[S]=(0,x.EG)(),{data:w,isLoading:I,error:z}=(0,x.NR)(),[R,W]=(0,d.useState)(void 0);(0,d.useEffect)(()=>{y&&y.items.length&&W(y.items[0].ctl_dataset.fides_key)},[y]);let Z=async n=>{var r;let a={connection_key:null==g?void 0:g.key,dataset_pairs:n},s=await k(a).unwrap();(null===(r=s.failed)||void 0===r?void 0:r.length)>0?t(s.failed[0].message):i("Dataset successfully updated!"),e.push(h.JR)},E=async()=>{if(R)try{let e=R;y&&y.items.length&&(e=y.items[0].fides_key);let t=[{fides_key:e,ctl_dataset_fides_key:R}];Z(t)}catch(e){p(e)}},T=async e=>{try{f(!0);let i=Array.isArray(e)?e:[e],n=await S(i);if((0,u.D4)(n)){let e=(0,u.e$)(n.error);t(e);return}let r=i.map(e=>({fides_key:e.fides_key,ctl_dataset_fides_key:e.fides_key}));if(y&&y.items.length){let{items:e}=y;r=e.map((e,t)=>({fides_key:e.fides_key,ctl_dataset_fides_key:i[t].fides_key}))}Z(r)}catch(e){p(e)}finally{f(!1)}},F=""!==R&&void 0!==R;if(b||C||I&&!z)return(0,n.jsx)(l.M5Y,{children:(0,n.jsx)(l.$jN,{})});let A=w&&w.length;return(0,n.jsxs)(l.gCW,{alignItems:"left",gap:4,children:[z&&(0,n.jsx)(j,{color:"red",children:"There was a problem loading existing datasets, please try again."}),(0,n.jsxs)(l.gCW,{alignItems:"flex-start",children:[A&&(0,n.jsx)("div",{children:(0,n.jsx)(l.gCW,{alignSelf:"start",gap:4,children:(0,n.jsxs)(l.xuv,{"data-testid":"dataset-selector-section",children:[(0,n.jsx)(j,{mb:4,children:"Choose a dataset to associate with this connector."}),(0,n.jsxs)(l.Ugi,{children:[(0,n.jsx)(l.WPr,{allowClear:!0,options:w.map(e=>({label:e.fides_key,value:e.fides_key})),className:"w-full",placeholder:"Select",onChange:e=>W(e),value:R,"data-testid":"dataset-selector"}),(0,n.jsx)(l.wpx,{onClick:E,type:"primary",className:"self-start",disabled:!F,"data-testid":"save-dataset-link-btn",children:"Save"})]})]})})}),A&&_&&(null==y?void 0:y.items)&&(0,n.jsx)(l.htM,{plain:!0,children:"or"}),_&&(null==y?void 0:y.items)&&(0,n.jsxs)(l.xuv,{"data-testid":"yaml-editor-section",children:[(0,n.jsx)(j,{mb:4,children:"View your dataset YAML below!"}),(0,n.jsx)(v,{data:y.items.map(e=>e.ctl_dataset),isSubmitting:m,onSubmit:T,disabled:F})]})]})]})}},27259:function(e,t,i){var n=i(24246),r=i(77181),a=i(34090);t.Z=e=>{let{disabled:t=!1,displayHelpIcon:i=!0,helpIconVisibility:s=!1,isRequired:l=!1,label:o,placeholder:d,type:c="text",...u}=e,{id:h,autoFocus:x}=u,[p,m]=(0,a.U$)(u);return(0,n.jsxs)(r.NIc,{display:"flex",isRequired:l,isInvalid:!!(m.error&&m.touched),children:[o&&(0,n.jsx)(r.lXp,{color:"gray.900",fontSize:"14px",fontWeight:"semibold",htmlFor:h,minWidth:"150px",children:o}),(0,n.jsxs)(r.gCW,{align:"flex-start",w:"inherit",children:["number"===c&&(0,n.jsxs)(r.Y2U,{allowMouseWheel:!0,color:"gray.700",defaultValue:0,min:0,size:"sm",children:[(0,n.jsx)(r.zuI,{...p,autoComplete:"off",autoFocus:x}),(0,n.jsxs)(r.FiK,{children:[(0,n.jsx)(r.WQu,{}),(0,n.jsx)(r.Y_d,{})]})]}),"text"===c&&(0,n.jsx)(r.IIB,{...p,autoComplete:"off",autoFocus:x,color:"gray.700",isDisabled:t,placeholder:d,size:"sm"}),"textarea"===c&&(0,n.jsx)(r.gxH,{...p,autoComplete:"off",autoFocus:x,color:"gray.700",placeholder:d,resize:"none",size:"sm",value:p.value||""}),(0,n.jsx)(r.J1D,{children:m.error})]}),i&&(0,n.jsx)(r.kCb,{alignContent:"center",h:"32px",visibility:s?"visible":"hidden",children:(0,n.jsx)(r.ITP,{marginLeft:"8px",_hover:{cursor:"pointer"}})})]})}},3968:function(e,t,i){i.d(t,{E:function(){return n},S:function(){return r}});let n=e=>e.toLowerCase().replace(/ |\./g,"_"),r=(e,t)=>{let i="".concat(window.location.origin+t,"&key=").concat(e);window.location.href.toLowerCase()!==i.toLowerCase()&&window.history.replaceState(null,"",i)}},67762:function(e,t,i){i.d(t,{h:function(){return a}});var n=i(24246),r=i(77181);i(27378);let a=e=>{let{isSubmitting:t=!1,onCancelClick:i}=e;return(0,n.jsxs)(r.hE2,{size:"sm",spacing:"8px",variant:"outline",children:[(0,n.jsx)(r.zxk,{onClick:i,variant:"outline",children:"Cancel"}),(0,n.jsx)(r.zxk,{bg:"primary.800",color:"white",isDisabled:t,isLoading:t,loadingText:"Submitting",size:"sm",variant:"solid",type:"submit",_active:{bg:"primary.500"},_disabled:{opacity:"inherit"},_hover:{bg:"primary.400"},children:"Save"})]})}},50881:function(e,t,i){i.d(t,{Z:function(){return y}});var n=i(24246),r=i(14047),a=i(96356),s=i(14207),l=i(77181),o=i(86677),d=i(27378),c=i(16134),u=i(77830),h=i(34090),x=i(55484),p=i(97181),m=i(57072),f=i(39864),g=i(27259),v=i(67762),j=e=>{let{data:t=[],isSubmitting:i=!1,onSaveClick:a}=e,{isLoading:s}=(0,m.MO)(),d=(0,c.C)(f.qb),j=(0,o.useRouter)(),{errorAlert:y}=(0,r.V)(),b=()=>{j.push(u.JR)};return s?null:(0,n.jsx)(h.J9,{enableReinitialize:!0,initialValues:{fields:t.length>0?t:[{pii_field:"",dsr_package_label:"",data_categories:[]}]},onSubmit:(e,t)=>{if(new Set(e.fields.map(e=>e.pii_field)).size<e.fields.length){y("PII Field must be unique");return}a(e,t)},validateOnBlur:!1,validateOnChange:!1,validationSchema:x.Ry({fields:x.IX().of(x.Ry().shape({pii_field:x.Z_().required("PII Field is required").min(1,"PII Field must have at least one character").max(200,"PII Field has a maximum of 200 characters").label("PII Field"),dsr_package_label:x.Z_().required("DSR Package Label is required").min(1,"DSR Package Label must have at least one character").max(200,"DSR Package Label has a maximum of 200 characters").label("DSR Package Label"),data_categories:x.IX(x.Z_()).label("Data Categories")}))}),children:e=>(0,n.jsx)(h.l0,{style:{marginTop:0},noValidate:!0,children:(0,n.jsx)(l.gCW,{align:"stretch",children:(0,n.jsx)(h.F2,{name:"fields",render:t=>{let{fields:r}=e.values;return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(l.Ugi,{color:"gray.900",flex:"1",fontSize:"14px",fontWeight:"semibold",lineHeight:"20px",mb:"6px",spacing:"24px",children:[(0,n.jsx)(l.xuv,{w:"416px",children:"PII Field"}),(0,n.jsx)(l.xuv,{w:"416px",children:"DSR Package Label"}),(0,n.jsx)(l.xuv,{w:"416px",children:"Data Categories"}),(0,n.jsx)(l.xuv,{visibility:"hidden",children:(0,n.jsx)(l.lr0,{})})]}),(0,n.jsx)(l.xuv,{children:r&&r.length>0?r.map((e,i)=>(0,n.jsxs)(l.Ugi,{mt:i>0?"12px":void 0,spacing:"24px",align:"flex-start",children:[(0,n.jsx)(l.xuv,{minH:"57px",w:"416px",children:(0,n.jsx)(g.Z,{autoFocus:0===i,displayHelpIcon:!1,isRequired:!0,name:"fields.".concat(i,".pii_field")})}),(0,n.jsx)(l.xuv,{minH:"57px",w:"416px",children:(0,n.jsx)(g.Z,{displayHelpIcon:!1,isRequired:!0,name:"fields.".concat(i,".dsr_package_label")})}),(0,n.jsx)(l.xuv,{minH:"57px",w:"416px",children:(0,n.jsx)(p.d,{name:"fields.".concat(i,".data_categories"),options:d.map(e=>({value:e.fides_key,label:e.fides_key})),isRequired:!0,mode:"multiple"})}),(0,n.jsx)(l.xuv,{h:"57px",visibility:i>0?"visible":"hidden",children:(0,n.jsx)(l.lr0,{onClick:()=>t.remove(i),_hover:{cursor:"pointer"}})})]},i)):null}),(0,n.jsx)(l.xvT,{color:"complimentary.500",fontWeight:"medium",fontSize:"sm",mb:"24px !important",mt:"24px !important",onClick:()=>{t.push({pii_field:"",dsr_package_label:"",data_categories:[]})},_hover:{cursor:"pointer"},children:"Add new PII field"}),(0,n.jsx)(v.h,{isSubmitting:i,onCancelClick:b})]})}})})})})},y=()=>{let e=(0,d.useRef)(!1),t=(0,o.useRouter)(),{successAlert:i}=(0,r.V)(),{handleError:h}=(0,r.H)(),[x,p]=(0,d.useState)(!1),[m,f]=(0,d.useState)([]),{connection:g}=(0,c.C)(a.ZZ),{data:v,isFetching:y,isLoading:b,isSuccess:C}=(0,s.QV)(g.key),[_]=(0,s.jF)(),[k]=(0,s._d)(),S=async(e,n)=>{try{p(!0);let n={connection_key:null==g?void 0:g.key,body:{...e}};m.length>0?await k(n).unwrap():await _(n).unwrap(),i("DSR customization ".concat(m.length>0?"updated":"added","!")),t.push(u.JR)}catch(e){h(e)}finally{p(!1)}};return(0,d.useEffect)(()=>(e.current=!0,C&&v&&f(v.fields),()=>{e.current=!1}),[v,C]),(0,n.jsxs)(l.gCW,{align:"stretch",gap:"16px",children:[(0,n.jsx)(l.xuv,{color:"gray.700",fontSize:"14px",w:"572px",children:"Customize your PII fields to create a friendly label name for your privacy request packages. This “Package Label” is the label your user will see in their downloaded package."}),(y||b)&&(0,n.jsx)(l.M5Y,{children:(0,n.jsx)(l.$jN,{})}),e.current&&!b?(0,n.jsx)(j,{data:m,isSubmitting:x,onSaveClick:S}):null]})}},19043:function(e,t,i){i.d(t,{Bw:function(){return s},D4:function(){return r},Dy:function(){return o},XD:function(){return d},cz:function(){return c},hE:function(){return l},oK:function(){return a}});var n=i(76649);let r=e=>"error"in e,a=e=>(0,n.Ln)({status:"string"},e)&&"PARSING_ERROR"===e.status,s=e=>(0,n.Ln)({status:"number",data:{}},e),l=e=>(0,n.Ln)({detail:"string"},e),o=e=>(0,n.Ln)({detail:{error:"string",resource_type:"string",fides_key:"string"}},e),d=e=>(0,n.Ln)({detail:{error:"string",resource_type:"string",fides_key:"string"}},e),c=e=>(0,n.Ln)({detail:[{loc:["string","number"],msg:"string",type:"string"}]},e)},76649:function(e,t,i){i.d(t,{Ln:function(){return n}});let n=(e,t)=>a(e,t),r=Symbol("SOME"),a=(e,t)=>"string"==typeof e?e===typeof t:Array.isArray(e)?r in e?e.some(e=>a(e,t)):!!Array.isArray(t)&&(0===e.length||t.every(t=>e.some(e=>a(e,t)))):"object"==typeof t&&null!==t&&Object.entries(e).every(([e,i])=>a(i,t[e]));class s{static narrow(e){return new s(t=>n(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,i=e instanceof s?e.NF:e instanceof Function?e:t=>n(e,t);return new s(e=>t(e)&&i(e))}}new s(e=>!0)}}]);
@@ -1 +0,0 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2423],{86850:function(e,t,s){(window.__NEXT_P=window.__NEXT_P||[]).push(["/data-discovery/action-center/[monitorId]",function(){return s(56856)}])},35287:function(e,t,s){"use strict";var n=s(24246),i=s(77181),o=s(88038),a=s.n(o);s(27378),t.Z=e=>{let{children:t,title:s,mainProps:o}=e;return(0,n.jsxs)(i.kCb,{"data-testid":s,direction:"column",height:"calc(100vh - 48px)",width:"calc(100vw - 240px)",children:[(0,n.jsxs)(a(),{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,...o,children:t})]})}},37059:function(e,t,s){"use strict";s.d(t,{Ak:function(){return g},EY:function(){return c},Ud:function(){return o},Vr:function(){return h},WJ:function(){return r},nP:function(){return d},nS:function(){return u},rs:function(){return l},sX:function(){return m},wi:function(){return a}});var n=s(78780),i=s(16394);let{useGetAggregateMonitorResultsQuery:o,useGetDiscoveredSystemAggregateQuery:a,useGetDiscoveredAssetsQuery:r,useAddMonitorResultSystemsMutation:l,useIgnoreMonitorResultSystemsMutation:d,useAddMonitorResultAssetsMutation:c,useIgnoreMonitorResultAssetsMutation:u,useUpdateAssetsSystemMutation:m,useUpdateAssetsDataUseMutation:g,useUpdateAssetsMutation:h}=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,diff_status:o}=e;return{url:"/plus/discovery-monitor/system-aggregate-results",params:{monitor_config_id:t,page:s,size:n,search:i,diff_status:o}}},providesTags:["Discovery Monitor Results"]}),getDiscoveredAssets:e.query({query:e=>{let{key:t,system:s,page:n=1,size:i=20,search:o,diff_status:a}=e;return{url:"/plus/discovery-monitor/".concat(t,"/results"),params:{resolved_system_id:s,page:n,size:i,search:o,diff_status:a,sort_by:"urn"}}},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,user_assigned_system_key:e.systemKey}))}),invalidatesTags:["Discovery Monitor Results","System Assets"]}),updateAssetsDataUse:e.mutation({query:e=>({method:"PATCH",url:"/plus/discovery-monitor/".concat(e.monitorId,"/results"),body:e.urnList.map(t=>({urn:t,user_assigned_data_uses:e.dataUses}))}),invalidatesTags:["Discovery Monitor Results"]}),updateAssets:e.mutation({query:e=>({method:"PATCH",url:"/plus/discovery-monitor/".concat(e.monitorId,"/results"),body:e.assets}),invalidatesTags:["Discovery Monitor Results"]})})})},90057:function(e,t,s){"use strict";var n=s(86677),i=s(27378),o=s(28120);let a={ATTENTION_REQUIRED:{index:0,hash:"#attention-required"},RECENT_ACTIVITY:{index:1,hash:"#recent-activity"},IGNORED:{index:2,hash:"#ignored"}},r=e=>{let t=e.startsWith("#")?e:"#".concat(e);return Object.values(a).find(e=>e.hash===t)},l=e=>Object.values(a).find(t=>t.index===e);t.Z=e=>{var t;let{systemId:s,initialHash:d}=e,c=(0,n.useRouter)(),[u,m]=(0,i.useState)(d?null===(t=r(d))||void 0===t?void 0:t.index:a.ATTENTION_REQUIRED.index),g=(0,i.useCallback)(async e=>{if(m(e),c.isReady){let t=l(e);if(t){let e={...c.query};await c.replace({pathname:c.pathname,query:e,hash:t.hash},void 0,{shallow:!0})}}},[c]),h=[{label:"Attention required",params:{diff_status:[o.LL.ADDITION],system:s}},{label:"Recent activity",params:{diff_status:[o.LL.MONITORED]}},{label:"Ignored",params:{diff_status:[o.LL.MUTED],system:s}}],{diff_status:v,system:y}=h[u].params,f=v.includes(o.LL.MONITORED);return{filterTabs:h,filterTabIndex:u,onTabChange:g,activeParams:s?{diff_status:v,system:y}:{diff_status:v},actionsDisabled:f}}},56839:function(e,t,s){"use strict";s.d(t,{dK:function(){return c},Rv:function(){return g},$P:function(){return m},zj:function(){return h},Kr:function(){return v},q1:function(){return u},QL:function(){return y}});var n=s(24246),i=s(77181);let o=(0,i.IUT)({displayName:"CircleIcon",viewBox:"0 0 200 200",path:(0,n.jsx)("path",{fill:"currentColor",d:"M 100, 100 m -75, 0 a 75,75 0 1,0 150,0 a 75,75 0 1,0 -150,0"})}),a=(0,i.IUT)({displayName:"RightDownArrowIcon",viewBox:"0 0 8 8",path:(0,n.jsx)("path",{fill:"currentColor",d:"M7.23192 8H8V7.23192V1.85539V1.08731H6.46385V1.85539V5.37654L1.62976 0.544855L1.08731 0L0 1.08731L0.542454 1.62976L5.37654 6.46385H1.85539H1.08731V8H1.85539H7.23192Z"})}),r=(0,i.IUT)({displayName:"RightUpArrowIcon",viewBox:"0 0 8 8",path:(0,n.jsx)("path",{fill:"currentColor",d:"M7.23192 0H8V0.768077V6.14461V6.91269H6.46385V6.14461V2.62346L1.62976 7.45515L1.08731 8L0 6.91269L0.542454 6.37024L5.37654 1.53615H1.85539H1.08731V0H1.85539H7.23192Z"})}),l=(0,i.IUT)({displayName:"TagIcon",viewBox:"0 0 9 10",path:(0,n.jsx)("path",{fill:"currentColor",d:"M0 0.5V5L4.5 9.5L9 5L4.5 0.5H0ZM2.25 2.10714C2.4205 2.10714 2.58401 2.17487 2.70457 2.29543C2.82513 2.41599 2.89286 2.5795 2.89286 2.75C2.89286 2.9205 2.82513 3.08401 2.70457 3.20457C2.58401 3.32513 2.4205 3.39286 2.25 3.39286C2.0795 3.39286 1.91599 3.32513 1.79543 3.20457C1.67487 3.08401 1.60714 2.9205 1.60714 2.75C1.60714 2.5795 1.67487 2.41599 1.79543 2.29543C1.91599 2.17487 2.0795 2.10714 2.25 2.10714Z"})});var d=s(28278);let c=()=>(0,n.jsx)(r,{color:"green.400",boxSize:2,mr:2,"data-testid":"add-icon"}),u=()=>(0,n.jsx)(a,{color:"red.400",boxSize:2,mr:2,"data-testid":"remove-icon"}),m=()=>(0,n.jsx)(l,{color:"orange.400",boxSize:3,mr:1,"data-testid":"classify-icon"}),g=()=>(0,n.jsx)(o,{color:"blue.400",boxSize:2,mr:2,"data-testid":"change-icon"}),h=()=>(0,n.jsx)(o,{color:"green.400",boxSize:2,mr:2,"data-testid":"monitored-icon"}),v=()=>(0,n.jsx)(o,{color:"red.400",boxSize:2,mr:2,"data-testid":"muted-icon"}),y={[d.E.ADDITION]:(0,n.jsx)(c,{}),[d.E.REMOVAL]:(0,n.jsx)(u,{}),[d.E.CLASSIFICATION]:(0,n.jsx)(m,{}),[d.E.CHANGE]:(0,n.jsx)(g,{}),[d.E.MONITORED]:(0,n.jsx)(h,{}),[d.E.MUTED]:(0,n.jsx)(v,{}),[d.E.IN_PROGRESS]:(0,n.jsx)(()=>(0,n.jsx)(o,{color:"orange.400",boxSize:2,mr:2,"data-testid":"in-progress-icon"}),{}),[d.E.NONE]:null}},28278:function(e,t,s){"use strict";var n,i;s.d(t,{E:function(){return n}}),(i=n||(n={})).ADDITION="Addition",i.CHANGE="Change",i.REMOVAL="Removal",i.CLASSIFICATION="Classification",i.IN_PROGRESS="Classifying",i.MONITORED="Monitoring",i.MUTED="Unmonitored",i.NONE="--"},56856:function(e,t,s){"use strict";s.r(t),s.d(t,{default:function(){return D}});var n=s(24246),i=s(86677),o=s(35287),a=s(77830),r=s(58754),l=s(59003),d=s(92222),c=s(77181),u=s(27378),m=s(66379),g=s(812),h=s(14047),v=s(14481),y=s(37059),f=s(90057),x=s(28120),p=s(31883),j=s(57454),_=s(8411),b=s(72625),w=s(34929),C=s(78238),R=e=>{var t,s;let{system:i}=e,{getDataUseDisplayName:o}=(0,w.Z)(),a=(null!==(s=null===(t=i.data_uses)||void 0===t?void 0:t.filter(e=>(0,C.Z)(e)))&&void 0!==s?s:[]).map(e=>({label:o(e),key:e}));return(0,n.jsx)(b.mb,{values:a})};let I=e=>{let{monitorId:t,system:s,allowIgnore:i}=e,[o,{isLoading:r}]=(0,y.rs)(),[l,{isLoading:d}]=(0,y.nP)(),{successAlert:u,errorAlert:m}=(0,h.V)(),v=r||d,{id:f,name:x,system_key:p,total_updates:j}=s,_=async()=>{let e=await o({monitor_config_key:t,resolved_system_ids:[f]});(0,g.D4)(e)?m((0,g.e$)(e.error)):u(p?"".concat(j," assets from ").concat(x," have been added to the system inventory."):"".concat(x," and ").concat(j," assets have been added to the system inventory. ").concat(x," is now configured for consent."),"Confirmed")},b=async()=>{let e=await l({monitor_config_key:t,resolved_system_ids:[f||a.Kl]});(0,g.D4)(e)?m((0,g.e$)(e.error)):u(x?"".concat(j," assets from ").concat(x," have been ignored and will not appear in future scans."):"".concat(j," 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:_,disabled:!s.id||v,loading:r,children:"Add"})}),i&&(0,n.jsx)(c.wpx,{"data-testid":"ignore-btn",size:"small",onClick:b,disabled:v,loading:d,children:"Ignore"})]})};var T=s(56839);let E=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:T.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"})]})},S=e=>{let{monitorId:t,readonly:s,allowIgnore:i}=e,o=(0,d.Cl)(),a=o.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}}),r=o.accessor(e=>e.name,{id:"system_name",cell:e=>(0,n.jsx)(E,{system:e.row.original}),header:"System",size:300}),l=o.accessor(e=>e.total_updates,{id:"total_updates",cell:e=>(0,n.jsx)(v.G3,{value:e.getValue()}),header:"Assets",size:80}),c=o.display({id:"data_use",cell:e=>(0,n.jsx)(R,{system:e.row.original}),header:"Categories of consent",size:400,meta:{disableRowClick:!0}}),m=o.accessor(e=>e.locations,{id:"locations",cell:e=>(0,n.jsx)(b.mb,{values:e.getValue().map(e=>({label:_.Z8[e],key:e}))}),header:"Locations",size:300,meta:{showHeaderMenu:!0,disableRowClick:!0}}),g=o.accessor(e=>e.domains,{id:"domains",cell:e=>(0,n.jsx)(b.tc,{values:e.getValue(),valueSuffix:"domains",cellProps:e}),header:"Domains",meta:{showHeaderMenu:!0,disableRowClick:!0}}),h=o.display({id:"actions",cell:e=>(0,n.jsx)(I,{system:e.row.original,monitorId:t,allowIgnore:i}),header:"Actions",meta:{disableRowClick:!0}}),y=(0,u.useMemo)(()=>[r,l,c,m,g],[r,l,c,m,g]);return s?{columns:y}:{columns:[a,...y,h]}},A=e=>{let{monitorId:t}=e,s=(0,i.useRouter)(),o=s.asPath.split("#")[1],{PAGE_SIZES:r,pageSize:_,setPageSize:b,onPreviousPageClick:w,isPreviousPageDisabled:C,onNextPageClick:R,isNextPageDisabled:I,startRange:T,endRange:E,pageIndex:A,setTotalPages:D,resetPageIndexToDefault:L}=(0,v.oi)(),[k,{isLoading:M}]=(0,y.rs)(),[N,{isLoading:P}]=(0,y.nP)(),{successAlert:O,errorAlert:z}=(0,h.V)(),[H,U]=(0,u.useState)(""),[V,q]=(0,u.useState)({});(0,u.useEffect)(()=>{L()},[t,H,L]);let{filterTabs:Z,filterTabIndex:G,onTabChange:K,activeParams:B,actionsDisabled:W}=(0,f.Z)({initialHash:o}),{data:$,isLoading:Q,isFetching:F}=(0,y.wi)({key:t,page:A,size:_,search:H,...B});(0,u.useEffect)(()=>{$&&D($.pages||1)},[$,D]);let{columns:X}=S({monitorId:t,readonly:W,allowIgnore:!B.diff_status.includes(x.LL.MUTED)}),J=(0,l.b7)({getCoreRowModel:(0,d.sC)(),columns:X,manualPagination:!0,data:(null==$?void 0:$.items)||[],columnResizeMode:"onChange",onRowSelectionChange:q,state:{rowSelection:V}}),Y=J.getSelectedRowModel().rows,ee=Y.some(e=>null===e.original.id);if(Q)return(0,n.jsx)(v.I4,{rowHeight:36,numRows:36});let et=async()=>{let e=Y.reduce((e,t)=>e+t.original.total_updates,0),s=await k({monitor_config_key:t,resolved_system_ids:Y.map(e=>e.original.id)});(0,p.D4)(s)?z((0,g.e$)(s.error)):(O("".concat(e," assets have been added to the system inventory.")),q({}))},es=async()=>{let e=Y.reduce((e,t)=>e+t.original.total_updates,0),s=await N({monitor_config_key:t,resolved_system_ids:Y.map(e=>{var t;return null!==(t=e.original.id)&&void 0!==t?t:a.Kl})});(0,p.D4)(s)?z((0,g.e$)(s.error)):(O("".concat(e," assets have been ignored and will not appear in future scans.")),q({}))};return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(m.Z,{data:Z,"data-testid":"filter-tabs",index:G,isLazy:!0,isManual:!0,onChange:e=>{K(e),q({})}}),(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)(j.M,{value:H,onChange:U})})}),(0,n.jsxs)(c.kCb,{align:"center",children:[!!Y.length&&(0,n.jsx)(c.xvT,{fontSize:"xs",fontWeight:"semibold",minW:16,mr:6,"data-testid":"selected-count",children:"".concat(Y.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:M||P,"data-testid":"bulk-actions-menu",disabled:!Y.length,type:"primary",children:"Actions"}),(0,n.jsxs)(c.qyq,{children:[(0,n.jsx)(c.esZ,{title:ee?"Uncategorized assets can't be added to the inventory":null,placement:"left",children:(0,n.jsx)(c.sNh,{fontSize:"small",onClick:et,"data-testid":"bulk-add",isDisabled:ee,children:"Add"})}),!B.diff_status.includes(x.LL.MUTED)&&(0,n.jsx)(c.sNh,{fontSize:"small",onClick:es,"data-testid":"bulk-ignore",children:"Ignore"})]})]})]})]})}),(0,n.jsx)(v.ZK,{tableInstance:J,onRowClick:e=>{var n;let i="".concat(a.vi,"/").concat(t,"/").concat(null!==(n=e.id)&&void 0!==n?n:a.Kl).concat(o?"#".concat(o):"");s.push(i)},emptyTableNotice:(0,n.jsx)(c.oj8,{image:c.oj8.PRESENTED_IMAGE_SIMPLE,description:"All caught up!"})}),(0,n.jsx)(v.s8,{totalRows:(null==$?void 0:$.total)||0,pageSizes:r,setPageSize:b,onPreviousPageClick:w,isPreviousPageDisabled:C||F,onNextPageClick:R,isNextPageDisabled:I||F,startRange:T,endRange:E})]})};var D=()=>{let e=decodeURIComponent((0,i.useRouter)().query.monitorId);return(0,n.jsxs)(o.Z,{title:"Action center - Discovered assets by system",children:[(0,n.jsx)(r.Z,{heading:"Action center",breadcrumbItems:[{title:"All activity",href:a.vi},{title:e}]}),(0,n.jsx)(A,{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,6060,2858,2866,9278,4481,6395,146,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([[7477],{74833:function(e,t,i){var n=i(56127),r=/^\s+/;e.exports=function(e){return e?e.slice(0,n(e)+1).replace(r,""):e}},56127:function(e){var t=/\s/;e.exports=function(e){for(var i=e.length;i--&&t.test(e.charAt(i)););return i}},66726:function(e,t,i){var n=i(11611),r=i(82846),s=i(91936),o=Math.max,a=Math.min;e.exports=function(e,t,i){var l,c,d,u,f,x,h=0,L=!1,g=!1,v=!0;if("function"!=typeof e)throw TypeError("Expected a function");function m(t){var i=l,n=c;return l=c=void 0,h=t,u=e.apply(n,i)}function j(e){var i=e-x,n=e-h;return void 0===x||i>=t||i<0||g&&n>=d}function p(){var e,i,n,s=r();if(j(s))return I(s);f=setTimeout(p,(e=s-x,i=s-h,n=t-e,g?a(n,d-i):n))}function I(e){return(f=void 0,v&&l)?m(e):(l=c=void 0,u)}function _(){var e,i=r(),n=j(i);if(l=arguments,c=this,x=i,n){if(void 0===f)return h=e=x,f=setTimeout(p,t),L?m(e):u;if(g)return clearTimeout(f),f=setTimeout(p,t),m(x)}return void 0===f&&(f=setTimeout(p,t)),u}return t=s(t)||0,n(i)&&(L=!!i.leading,d=(g="maxWait"in i)?o(s(i.maxWait)||0,t):d,v="trailing"in i?!!i.trailing:v),_.cancel=function(){void 0!==f&&clearTimeout(f),h=0,l=x=c=f=void 0},_.flush=function(){return void 0===f?u:I(r())},_}},11611:function(e){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},55193:function(e,t,i){var n=i(99736),r=i(92360);e.exports=function(e){return"symbol"==typeof e||r(e)&&"[object Symbol]"==n(e)}},82846:function(e,t,i){var n=i(77400);e.exports=function(){return n.Date.now()}},91936:function(e,t,i){var n=i(74833),r=i(11611),s=i(55193),o=0/0,a=/^[-+]0x[0-9a-f]+$/i,l=/^0b[01]+$/i,c=/^0o[0-7]+$/i,d=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(s(e))return o;if(r(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=r(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=n(e);var i=l.test(e);return i||c.test(e)?d(e.slice(2),i?2:8):a.test(e)?o:+e}},45550:function(e,t,i){(window.__NEXT_P=window.__NEXT_P||[]).push(["/data-discovery/activity",function(){return i(3680)}])},35287:function(e,t,i){"use strict";var n=i(24246),r=i(77181),s=i(88038),o=i.n(s);i(27378),t.Z=e=>{let{children:t,title:i,mainProps:s}=e;return(0,n.jsxs)(r.kCb,{"data-testid":i,direction:"column",height:"calc(100vh - 48px)",width:"calc(100vw - 240px)",children:[(0,n.jsxs)(o(),{children:[(0,n.jsxs)("title",{children:["Fides Admin UI - ",i]}),(0,n.jsx)("meta",{name:"description",content:"Privacy Engineering Platform"}),(0,n.jsx)("link",{rel:"icon",href:"/favicon.ico"})]}),(0,n.jsx)(r.kCb,{px:10,py:6,as:"main",overflow:"auto",direction:"column",flex:1,minWidth:0,...s,children:t})]})}},58754:function(e,t,i){"use strict";var n=i(24246),r=i(77181),s=i(70788);t.Z=e=>{let{heading:t,breadcrumbItems:i,isSticky:o=!0,children:a,rightContent:l,style:c,...d}=e;return(0,n.jsxs)("div",{...d,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",...c}:{paddingBottom:"24px",...c},children:[(0,n.jsxs)(r.jqI,{justify:"space-between",children:["string"==typeof t?(0,n.jsx)(r.X6q,{className:i||a?"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})]}),!!i&&(0,n.jsx)(s.m,{className:a?"pb-4":void 0,items:i,"data-testid":"page-breadcrumb"}),a]})}},14047:function(e,t,i){"use strict";i.d(t,{H:function(){return s},V:function(){return n.V}});var n=i(84306),r=i(812);let s=()=>{let{errorAlert:e}=(0,n.V)();return{handleError:t=>{let i="An unexpected error occurred. Please try again.";(0,r.Ot)(t)?i=t.data.detail:(0,r.tB)(t)&&(i=t.data.detail[0].msg),e(i)}}}},84306:function(e,t,i){"use strict";i.d(t,{V:function(){return s}});var n=i(24246),r=i(77181);let s=()=>{let e=(0,r.pmc)();return{errorAlert:(t,i,s)=>{let o={...s,position:(null==s?void 0:s.position)||"top",render:e=>{let{onClose:s}=e;return(0,n.jsxs)(r.bZj,{alignItems:"normal",status:"error","data-testid":"error-alert",children:[(0,n.jsx)(r.zMQ,{}),(0,n.jsxs)(r.xuv,{children:[i&&(0,n.jsx)(r.CdC,{children:i}),(0,n.jsx)(r.XaZ,{children:t})]}),(0,n.jsx)(r.PZ7,{onClick:s,position:"relative",right:0,size:"sm",top:-1})]})}};(null==s?void 0:s.id)&&e.isActive(s.id)?e.update(s.id,o):e(o)},successAlert:(t,i,s)=>{let o={...s,position:(null==s?void 0:s.position)||"top",render:e=>{let{onClose:s}=e;return(0,n.jsxs)(r.bZj,{alignItems:"normal",status:"success",variant:"subtle","data-testid":"success-alert",children:[(0,n.jsx)(r.zMQ,{}),(0,n.jsxs)(r.xuv,{children:[i&&(0,n.jsx)(r.CdC,{children:i}),(0,n.jsx)(r.XaZ,{children:t})]}),(0,n.jsx)(r.PZ7,{onClick:s,position:"relative",right:0,size:"sm",top:-1})]})}};(null==s?void 0:s.id)&&e.isActive(s.id)?e.update(s.id,o):e(o)}}}},70788:function(e,t,i){"use strict";i.d(t,{m:function(){return c}});var n=i(24246),r=i(77181),s=i(79894),o=i.n(s),a=i(27378);let{Text:l}=r.AntTypography,c=e=>{let{items:t,...i}=e,s=(0,a.useMemo)(()=>null==t?void 0:t.map((e,i)=>{let s=i===t.length-1,a={...e},c=a.onClick&&!a.href;return("string"==typeof a.title&&(a.title=(0,n.jsx)(l,{style:{color:"inherit",maxWidth:s?void 0:400},ellipsis:!s,children:a.title})),c)?a.title=(0,n.jsx)(r.wpx,{type:"text",size:"small",icon:a.icon,onClick:a.onClick,className:"ant-breadcrumb-link -mt-px px-1 text-inherit",children:a.title}):(a.icon&&(a.title=(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("span",{className:"anticon align-text-bottom",children:a.icon}),a.title]})),a.href&&a.title&&(a.title=(0,n.jsx)(o(),{href:a.href,className:"ant-breadcrumb-link",children:a.title}),delete a.href)),a}),[t]);return(0,n.jsx)(r.zrq,{items:s,...i})}},79494:function(e,t,i){"use strict";var n=i(24246),r=i(77181);t.Z=e=>{let{title:t,icon:i,type:s,...o}=e;return(0,n.jsx)(r.wpx,{size:"small",type:s,"data-testid":"action-".concat(t),icon:i,iconPosition:"start",...o,children:t})}},38347:function(e,t,i){"use strict";var n=i(24246),r=i(77181),s=i(56839);t.Z=()=>(0,n.jsxs)(r.J2e,{isLazy:!0,trigger:"hover",children:[(0,n.jsx)(r.xol,{children:(0,n.jsx)(r.UOT,{color:"gray.400"})}),(0,n.jsxs)(r.yky,{bgColor:"gray.800",color:"white",fontSize:"sm",w:"auto",border:"none",children:[(0,n.jsx)(r.Ytg,{fontWeight:"semibold",border:"none",pb:0,children:"Activity legend:"}),(0,n.jsx)(r.QHN,{bgColor:"gray.800"}),(0,n.jsx)(r.baG,{border:"none",children:(0,n.jsxs)(r.MIq,{columns:2,spacing:2,children:[(0,n.jsxs)(r.xuv,{children:[(0,n.jsx)(s.Rv,{})," Change detected"]}),(0,n.jsxs)(r.xuv,{children:[(0,n.jsx)(s.$P,{})," Data labeled"]}),(0,n.jsxs)(r.xuv,{children:[(0,n.jsx)(s.zj,{})," Monitoring"]}),(0,n.jsxs)(r.xuv,{children:[(0,n.jsx)(s.dK,{})," Addition detected"]}),(0,n.jsxs)(r.xuv,{children:[(0,n.jsx)(s.Kr,{})," Unmonitored"]}),(0,n.jsxs)(r.xuv,{children:[(0,n.jsx)(s.q1,{})," Removal detected"]})]})})]})]})},57454:function(e,t,i){"use strict";i.d(t,{M:function(){return l}});var n=i(24246),r=i(66726),s=i.n(r),o=i(27378),a=i(86780);let l=e=>{let{value:t,onChange:i}=e,[r,l]=(0,o.useState)(t),c=s()(i,500),d=(0,o.useCallback)(e=>{l(e),c(e)},[]);return(0,n.jsx)(a.Z,{search:r,onChange:d,onClear:()=>{l(""),i("")}})}},47182:function(e,t,i){"use strict";var n=i(86677),r=i(77830);t.Z=()=>{let e=(0,n.useRouter)();return{monitorId:e.query.monitorId,resourceUrn:e.query.resourceUrn,navigateToDetectionResults:t=>{let{resourceUrn:i,filterTabIndex:n}=t;e.push({pathname:r.dS,query:{resourceUrn:i,filterTabIndex:n}})},navigateToDiscoveryResults:t=>{let{resourceUrn:i,filterTabIndex:n}=t;e.push({pathname:r.Sj,query:{resourceUrn:i,filterTabIndex:n}})}}}},56839:function(e,t,i){"use strict";i.d(t,{dK:function(){return d},Rv:function(){return x},$P:function(){return f},zj:function(){return h},Kr:function(){return L},q1:function(){return u},QL:function(){return g}});var n=i(24246),r=i(77181);let s=(0,r.IUT)({displayName:"CircleIcon",viewBox:"0 0 200 200",path:(0,n.jsx)("path",{fill:"currentColor",d:"M 100, 100 m -75, 0 a 75,75 0 1,0 150,0 a 75,75 0 1,0 -150,0"})}),o=(0,r.IUT)({displayName:"RightDownArrowIcon",viewBox:"0 0 8 8",path:(0,n.jsx)("path",{fill:"currentColor",d:"M7.23192 8H8V7.23192V1.85539V1.08731H6.46385V1.85539V5.37654L1.62976 0.544855L1.08731 0L0 1.08731L0.542454 1.62976L5.37654 6.46385H1.85539H1.08731V8H1.85539H7.23192Z"})}),a=(0,r.IUT)({displayName:"RightUpArrowIcon",viewBox:"0 0 8 8",path:(0,n.jsx)("path",{fill:"currentColor",d:"M7.23192 0H8V0.768077V6.14461V6.91269H6.46385V6.14461V2.62346L1.62976 7.45515L1.08731 8L0 6.91269L0.542454 6.37024L5.37654 1.53615H1.85539H1.08731V0H1.85539H7.23192Z"})}),l=(0,r.IUT)({displayName:"TagIcon",viewBox:"0 0 9 10",path:(0,n.jsx)("path",{fill:"currentColor",d:"M0 0.5V5L4.5 9.5L9 5L4.5 0.5H0ZM2.25 2.10714C2.4205 2.10714 2.58401 2.17487 2.70457 2.29543C2.82513 2.41599 2.89286 2.5795 2.89286 2.75C2.89286 2.9205 2.82513 3.08401 2.70457 3.20457C2.58401 3.32513 2.4205 3.39286 2.25 3.39286C2.0795 3.39286 1.91599 3.32513 1.79543 3.20457C1.67487 3.08401 1.60714 2.9205 1.60714 2.75C1.60714 2.5795 1.67487 2.41599 1.79543 2.29543C1.91599 2.17487 2.0795 2.10714 2.25 2.10714Z"})});var c=i(28278);let d=()=>(0,n.jsx)(a,{color:"green.400",boxSize:2,mr:2,"data-testid":"add-icon"}),u=()=>(0,n.jsx)(o,{color:"red.400",boxSize:2,mr:2,"data-testid":"remove-icon"}),f=()=>(0,n.jsx)(l,{color:"orange.400",boxSize:3,mr:1,"data-testid":"classify-icon"}),x=()=>(0,n.jsx)(s,{color:"blue.400",boxSize:2,mr:2,"data-testid":"change-icon"}),h=()=>(0,n.jsx)(s,{color:"green.400",boxSize:2,mr:2,"data-testid":"monitored-icon"}),L=()=>(0,n.jsx)(s,{color:"red.400",boxSize:2,mr:2,"data-testid":"muted-icon"}),g={[c.E.ADDITION]:(0,n.jsx)(d,{}),[c.E.REMOVAL]:(0,n.jsx)(u,{}),[c.E.CLASSIFICATION]:(0,n.jsx)(f,{}),[c.E.CHANGE]:(0,n.jsx)(x,{}),[c.E.MONITORED]:(0,n.jsx)(h,{}),[c.E.MUTED]:(0,n.jsx)(L,{}),[c.E.IN_PROGRESS]:(0,n.jsx)(()=>(0,n.jsx)(s,{color:"orange.400",boxSize:2,mr:2,"data-testid":"in-progress-icon"}),{}),[c.E.NONE]:null}},54409:function(e,t,i){"use strict";i.d(t,{Z:function(){return h}});var n=i(24246),r=i(77181),s=i(812),o=i(14047),a=i(28120),l=i(31883);let c=(0,r.IUT)({displayName:"MonitorOffIcon",viewBox:"0 0 12 12",path:(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M5.47125 1H5.85H6.15H6.51188L6.58875 1.36914L7.52062 5.83268L6.42408 4.98635L6.03375 3.11719L5.8038 4.50761L4.99323 3.882L5.40562 1.38867L5.47125 1ZM4.80795 5.0022L4.67675 5.79545L5.48735 6.42109L5.61854 5.62783L4.80795 5.0022ZM6.73856 6.49227L6.96125 7.55866L8.42407 8.6877L8.69498 8.00228L7.94864 7.42624L7.88625 7.58398L7.83501 7.33853L6.73856 6.49227ZM8.33138 6.45844L9.07755 7.03434L9.30188 6.4668H11.55H12V5.5293H11.55H9H8.69812L8.58375 5.82031L8.33138 6.45844ZM7.27551 9.06443L7.35399 9.125H7.28813L7.27551 9.06443ZM4.49147 6.91566L5.30209 7.54131L4.79437 10.6113L4.72875 11H4.35H4.05H3.69563L3.61313 10.6406L2.64563 6.46875H0.45H0V5.53125H0.45H2.69777L3.49646 6.1477L4.15125 8.97266L4.49147 6.91566Z",fill:"currentColor"}),(0,n.jsx)("g",{"clip-path":"url(#clip0_341_3102)",children:(0,n.jsx)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M10.6755 10.4168L0.164222 2.304L0.775218 1.51237L11.2865 9.62517L10.6755 10.4168Z",fill:"currentColor"})}),(0,n.jsx)("defs",{children:(0,n.jsx)("clipPath",{id:"clip0_341_3102",children:(0,n.jsx)("rect",{width:"11.5",height:"9",fill:"white",transform:"translate(0 1.5)"})})})]})}),d=(0,r.IUT)({displayName:"MonitorOnIcon",viewBox:"0 0 12 10",path:(0,n.jsx)("path",{d:"M5.47125 0H5.85H6.15H6.51188L6.58875 0.369141L7.88625 6.58398L8.58375 4.82031L8.69812 4.5293H9H11.55H12V5.4668H11.55H9.30188L8.36625 7.83398L8.25188 8.125H7.95H7.65H7.28813L7.21125 7.75586L6.03375 2.11719L4.79437 9.61133L4.72875 10H4.35H4.05H3.69563L3.61313 9.64062L2.64563 5.46875H0.45H0V4.53125H0.45H3H3.35438L3.43688 4.89062L4.15125 7.97266L5.40562 0.388672L5.47125 0Z",fill:"currentColor"})});var u=i(79494),f=i(70675),x=i(7940),h=e=>{let{resource:t,ignoreChildActions:i=!1}=e,h=(0,x.G)(t),[L,{isLoading:g}]=(0,f.v8)(),[v,{isLoading:m}]=(0,f.vi)(),[j,{isLoading:p}]=(0,f.Tl)(),{successAlert:I,errorAlert:_}=(0,o.V)(),C=async()=>{let e=await L({staged_resource_urn:t.urn,monitor_config_id:t.monitor_config_id});(0,l.D4)(e)?_((0,s.e$)(e.error,"Failed to confirm resource")):I("Data discovery has started. The results may take some time to appear in the “Data discovery“ tab.","".concat(t.name||"The resource"," is now being monitored."))},A=async()=>{let e=await j({staged_resource_urn:t.urn});(0,l.D4)(e)?_((0,s.e$)(e.error),"Failed to un-mute resource"):I("".concat(t.name||"The resource"," has been un-muted and is now being monitored."))},T=async()=>{let e=await L({staged_resource_urn:t.urn,monitor_config_id:t.monitor_config_id,unmute_children:!0,classify_monitored_resources:!0});(0,l.D4)(e)?_((0,s.e$)(e.error),"Failed to un-mute resource"):I("Data discovery has started. The results may take some time to appear in the “Data discovery“ tab.","".concat(t.name||"The resource"," is now being monitored."))},D=async()=>{let e=await L({staged_resource_urn:t.urn,monitor_config_id:t.monitor_config_id});(0,l.D4)(e)?_((0,s.e$)(e.error),"Failed to confirm resource"):I('These changes have been added to a Fides dataset. To view, navigate to "Manage datasets".',"Table changes confirmed")},E=async()=>{let e=await v({staged_resource_urn:t.urn});(0,l.D4)(e)?_((0,s.e$)(e.error),"Failed to mute resource"):I("Ignored data will not be monitored for changes or added to Fides datasets.","".concat(t.name||"Resource"," ignored"))},S=g||m||p,{diff_status:b,child_diff_statuses:y}=t,N=h===a.D$.SCHEMA,O=h===a.D$.FIELD,w=N&&void 0===b||!O&&b===a.LL.ADDITION,M=b!==a.LL.MUTED,Z=b===a.LL.MUTED&&!O,R=b===a.LL.MUTED&&O,H=y&&(y[a.LL.ADDITION]||y[a.LL.REMOVAL]),F=b===a.LL.MONITORED&&!i&&H;return(0,n.jsxs)(r.Ugi,{children:[w&&(0,n.jsx)(u.Z,{title:"Monitor",icon:(0,n.jsx)(d,{}),onClick:C,disabled:S,loading:g}),R&&(0,n.jsx)(u.Z,{title:"Un-Mute",icon:(0,n.jsx)(d,{}),onClick:A,disabled:S,loading:g}),Z&&(0,n.jsx)(u.Z,{title:"Monitor",icon:(0,n.jsx)(d,{}),onClick:T,disabled:S,loading:g}),F&&(0,n.jsx)(u.Z,{title:"Confirm",icon:(0,n.jsx)(r.nQG,{}),onClick:D,disabled:S,loading:g}),M&&(0,n.jsx)(u.Z,{title:"Ignore",icon:(0,n.jsx)(c,{}),onClick:E,disabled:S,loading:m})]})}},91761:function(e,t,i){"use strict";var n=i(24246),r=i(77181),s=i(812),o=i(14047),a=i(7940),l=i(98559),c=i(28120),d=i(79494),u=i(70675);t.Z=e=>{let{resource:t}=e,[i,{isLoading:f}]=(0,u.v8)(),[x,{isLoading:h}]=(0,u.cM)(),[L,{isLoading:g}]=(0,u.vi)(),v=h||g||f,{diff_status:m,child_diff_statuses:j,top_level_field_name:p}=t,{successAlert:I,errorAlert:_}=(0,o.V)(),C=m===c.LL.CLASSIFICATION_ADDITION||m===c.LL.CLASSIFICATION_UPDATE,A=j&&(j[c.LL.CLASSIFICATION_ADDITION]||j[c.LL.CLASSIFICATION_UPDATE]),T=(C||A)&&!p,D=C||A,E=(0,a.G)(t)!==c.D$.FIELD,S=T&&D&&E,b=async()=>{let e=await x({staged_resource_urn:t.urn});(0,s.D4)(e)?_((0,s.e$)(e.error),"Failed to promote resource"):I('These changes have been added to a Fides dataset. To view, navigate to "Manage datasets".',"Table changes confirmed")},y=async()=>{let e=await L({staged_resource_urn:t.urn});(0,s.D4)(e)?_((0,s.e$)(e.error),"Failed to mute resource"):I("Ignored changes will not be added to a Fides dataset.","".concat(t.name||"Changes"," ignored"))},N=async()=>{let e=await i({staged_resource_urn:t.urn,monitor_config_id:t.monitor_config_id,start_classification:!0,classify_monitored_resources:!0});(0,s.D4)(e)?_((0,s.e$)(e.error),"Failed to reclassify resource"):I("Reclassification of ".concat((0,l.Z)(t)||"the resource"," has begun. The results may take some time to appear in the “Data discovery“ tab."),"Reclassification started")};return(0,n.jsxs)(r.Ugi,{gap:2,children:[T&&(0,n.jsx)(d.Z,{title:"Confirm",icon:(0,n.jsx)(r.nQG,{}),onClick:b,disabled:v,loading:h}),D&&(0,n.jsx)(d.Z,{title:"Ignore",icon:(0,n.jsx)(r.tpL,{}),onClick:y,disabled:v,loading:g}),E&&!S&&(0,n.jsx)(d.Z,{title:"Reclassify",icon:(0,n.jsx)(r.nyI,{}),onClick:N,disabled:v,loading:f}),S&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(r.LZC,{}),(0,n.jsxs)(r.v2r,{children:[(0,n.jsx)(r.j2t,{as:r.wpx,size:"small",type:"text",icon:(0,n.jsx)(r.nXP,{transform:"rotate(90deg)"}),className:"w-6 gap-0","data-testid":"actions-overflow-btn"}),(0,n.jsx)(r.qyq,{children:(0,n.jsx)(r.sNh,{onClick:N,icon:(0,n.jsx)(r.nyI,{}),"data-testid":"action-reclassify",children:"Reclassify"})})]})]})]})}},87667:function(e,t,i){"use strict";var n=i(24246),r=i(77181),s=i(56839),o=i(20449),a=i(98559),l=i(80356);t.Z=e=>{let{result:t,changeTypeOverride:i}=e,c=null!=i?i:(0,o.Z)(t);return(0,n.jsxs)(r.kCb,{alignItems:"center",height:"100%",children:[(0,n.jsx)(r.ua7,{label:c,children:(0,n.jsx)("span",{children:s.QL[c]})}),(0,n.jsx)(r.xvT,{fontSize:"xs",lineHeight:4,fontWeight:(0,l.Z)(t)?"semibold":"normal",overflow:"hidden",textOverflow:"ellipsis",children:(0,a.Z)(t)})]})}},50169:function(e,t,i){"use strict";var n=i(24246),r=i(14481),s=i(28278),o=i(20449);let a={[s.E.MUTED]:{color:"marble",label:"Unmonitored"},[s.E.MONITORED]:{color:"success",label:"Monitoring"},[s.E.IN_PROGRESS]:{color:"info",label:"Classifying"}};t.Z=e=>{var t,i,s,l,c;let{result:d,changeTypeOverride:u}=e;if(null===(t=d.user_assigned_data_categories)||void 0===t?void 0:t.length)return(0,n.jsx)(r.A4,{color:"success",value:"Reviewed"});let f=null!=u?u:(0,o.Z)(d);return(0,n.jsx)(r.A4,{color:null!==(l=null===(i=a[f])||void 0===i?void 0:i.color)&&void 0!==l?l:"warning",value:null!==(c=null===(s=a[f])||void 0===s?void 0:s.label)&&void 0!==c?c:"Pending review"})}},28278:function(e,t,i){"use strict";var n,r;i.d(t,{E:function(){return n}}),(r=n||(n={})).ADDITION="Addition",r.CHANGE="Change",r.REMOVAL="Removal",r.CLASSIFICATION="Classification",r.IN_PROGRESS="Classifying",r.MONITORED="Monitoring",r.MUTED="Unmonitored",r.NONE="--"},74241:function(e,t){"use strict";t.Z=e=>{let t=e.split(".");return t.length>1?t[1]:""}},20449:function(e,t,i){"use strict";var n=i(28278),r=i(28120);t.Z=e=>e.diff_status===r.LL.ADDITION?n.E.ADDITION:e.diff_status===r.LL.REMOVAL?n.E.REMOVAL:e.diff_status===r.LL.CLASSIFYING||e.diff_status===r.LL.CLASSIFICATION_QUEUED?n.E.IN_PROGRESS:e.diff_status===r.LL.CLASSIFICATION_ADDITION||e.diff_status===r.LL.CLASSIFICATION_UPDATE?n.E.CLASSIFICATION:e.child_diff_statuses?e.child_diff_statuses[r.LL.CLASSIFYING]||e.child_diff_statuses[r.LL.CLASSIFICATION_QUEUED]?n.E.IN_PROGRESS:e.child_diff_statuses[r.LL.CLASSIFICATION_ADDITION]||e.child_diff_statuses[r.LL.CLASSIFICATION_UPDATE]?n.E.CLASSIFICATION:e.child_diff_statuses[r.LL.ADDITION]||e.child_diff_statuses[r.LL.REMOVAL]?n.E.CHANGE:e.diff_status===r.LL.MONITORED?n.E.MONITORED:e.diff_status===r.LL.MUTED?n.E.MUTED:n.E.NONE:n.E.NONE},7940:function(e,t,i){"use strict";i.d(t,{G:function(){return r}});var n=i(28120);let r=e=>{var t,i,r;return e?e.resource_type?e.resource_type:(null===(t=e.schemas)||void 0===t?void 0:t.length)?n.D$.DATABASE:(null===(i=e.tables)||void 0===i?void 0:i.length)?n.D$.SCHEMA:(null===(r=e.fields)||void 0===r?void 0:r.length)?n.D$.TABLE:n.D$.FIELD:void 0}},98559:function(e,t){"use strict";t.Z=e=>{let{name:t,urn:i,monitor_config_id:n,database_name:r,schema_name:s,table_name:o,top_level_field_name:a,top_level_field_urn:l}=e;if(!a)return t;let c=i.split(".");return l?i.replace("".concat(l).concat("."),""):([n,r,s,o,a].forEach(e=>{if(e){let t=c.indexOf(e);t>-1&&c.splice(t,1)}}),c.join("."))}},80285:function(e,t){"use strict";t.Z=e=>e.urn},36168:function(e,t){"use strict";t.Z=e=>{var t;return!!e.parent_table_urn&&null!==(t=e.sub_field_urns)&&void 0!==t&&!!t.length&&!e.top_level_field_name}},80356:function(e,t,i){"use strict";var n=i(7940),r=i(36168),s=i(28120);t.Z=e=>(0,n.G)(e)!==s.D$.FIELD||(0,r.Z)(e)},3680:function(e,t,i){"use strict";i.r(t),i.d(t,{default:function(){return O}});var n,r,s=i(24246),o=i(27378),a=i(35287),l=i(58754),c=i(47182),d=i(92222),u=i(59003),f=i(77181),x=i(14481),h=i(72625),L=i(70675),g=i(38347),v=i(87667),m=i(50169),j=i(80285),p=i(57454);(n=r||(r={})).DATASET="Dataset",n.CLASSIFICATION="Classification";var I=i(74241),_=i(28278),C=i(20449),A=e=>(0,C.Z)(e)===_.E.CLASSIFICATION?r.CLASSIFICATION:r.DATASET,T=i(54409),D=i(91761);let E={items:[],total:0,page:1,size:50,pages:1},S=()=>(0,s.jsx)(f.gCW,{mt:6,p:10,spacing:4,borderRadius:"base",maxW:"70%","data-testid":"empty-state",alignSelf:"center",margin:"auto",children:(0,s.jsxs)(f.gCW,{children:[(0,s.jsx)(f.xvT,{fontSize:"md",fontWeight:"600",children:"No activity found"}),(0,s.jsx)(f.xvT,{fontSize:"sm",children:"You're up to date!"})]})}),b=(0,d.Cl)();var y=e=>{let{onRowClick:t,statusFilters:i,childsStatusFilters:n}=e,[a,l]=(0,o.useState)(""),{PAGE_SIZES:c,pageSize:_,setPageSize:C,onPreviousPageClick:y,isPreviousPageDisabled:N,onNextPageClick:O,isNextPageDisabled:w,startRange:M,endRange:Z,pageIndex:R,setTotalPages:H}=(0,x.oi)(),{isFetching:F,isLoading:V,data:k}=(0,L.z8)({diff_status:i,child_diff_status:n,page:R,size:_,search:a}),{items:U,total:P,pages:z}=(0,o.useMemo)(()=>null!=k?k:E,[k]);(0,o.useEffect)(()=>{H(z)},[z,H]);let $=(0,o.useMemo)(()=>[b.accessor(e=>e.name,{id:"name",cell:e=>(0,s.jsx)(v.Z,{result:e.row.original}),header:e=>(0,s.jsx)(x.Rr,{value:"Name",...e})}),b.accessor(e=>e.urn,{id:"project",cell:e=>(0,s.jsx)(x.G3,{value:(0,I.Z)(e.getValue())}),header:e=>(0,s.jsx)(x.Rr,{value:"Project",...e})}),b.display({id:"status",cell:e=>(0,s.jsx)(m.Z,{result:e.row.original}),header:e=>(0,s.jsx)(x.Rr,{value:"Status",...e})}),b.accessor(e=>e.system,{id:"system",cell:e=>(0,s.jsx)(x.G3,{value:e.getValue()}),header:e=>(0,s.jsx)(x.Rr,{value:"System",...e})}),b.accessor(e=>e.monitor_config_id,{id:"monitor",cell:e=>(0,s.jsx)(x.G3,{value:e.getValue()}),header:e=>(0,s.jsx)(x.Rr,{value:"Detected by",...e})}),b.accessor(e=>e.updated_at,{id:"time",cell:e=>(0,s.jsx)(h.Cy,{time:e.getValue()}),header:e=>(0,s.jsx)(x.Rr,{value:"When",...e})}),b.accessor(e=>e,{id:"action",cell:e=>A(e.getValue())===r.DATASET?(0,s.jsx)(T.Z,{resource:e.getValue()}):(0,s.jsx)(D.Z,{resource:e.getValue()}),header:e=>(0,s.jsx)(x.Rr,{value:"Action",...e})})],[]),G=(0,u.b7)({getCoreRowModel:(0,d.sC)(),getGroupedRowModel:(0,d.qe)(),getExpandedRowModel:(0,d.rV)(),getRowId:j.Z,columns:$,manualPagination:!0,data:U,columnResizeMode:"onChange"});return V?(0,s.jsx)(x.I4,{rowHeight:36,numRows:36}):(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(x.Q$,{children:(0,s.jsxs)(f.kCb,{gap:6,align:"center",children:[(0,s.jsx)(f.xuv,{flexShrink:0,children:(0,s.jsx)(p.M,{value:a,onChange:l})}),(0,s.jsx)(g.Z,{})]})}),(0,s.jsx)(x.ZK,{tableInstance:G,onRowClick:t,emptyTableNotice:(0,s.jsx)(S,{})}),(0,s.jsx)(x.s8,{totalRows:P||0,pageSizes:c,setPageSize:C,onPreviousPageClick:y,isPreviousPageDisabled:N||F,onNextPageClick:O,isNextPageDisabled:w||F,startRange:M,endRange:Z})]})},N=i(28120),O=()=>{let{navigateToDetectionResults:e,navigateToDiscoveryResults:t}=(0,c.Z)();return(0,s.jsxs)(a.Z,{title:"Data discovery",children:[(0,s.jsx)(l.Z,{heading:"All activity"}),(0,s.jsx)(y,{onRowClick:i=>{if(A(i)===r.DATASET){e({resourceUrn:i.urn});return}t({resourceUrn:i.urn})},statusFilters:[N.LL.ADDITION,N.LL.REMOVAL,N.LL.CLASSIFICATION_ADDITION,N.LL.CLASSIFICATION_UPDATE],childsStatusFilters:[N.LL.ADDITION,N.LL.REMOVAL,N.LL.CLASSIFICATION_ADDITION,N.LL.CLASSIFICATION_UPDATE]})]})}},31883:function(e,t,i){"use strict";i.d(t,{Bw:function(){return n.Bw},D4:function(){return n.D4}});var n=i(19043)}},function(e){e.O(0,[8033,6060,4481,2888,9774,179],function(){return e(e.s=45550)}),_N_E=e.O()}]);
@@ -1 +0,0 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6050],{91747:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/datastore-connection/new",function(){return n(45751)}])},19904:function(e,t,n){"use strict";n.d(t,{Tg:function(){return l}});var r=n(24246),i=n(16134),s=n(31793);let l=e=>(0,i.C)(s.uu).filter(t=>e.includes(t)).length>0;t.ZP=e=>{let{scopes:t,children:n}=e;return l(t)?(0,r.jsx)(r.Fragment,{children:n}):null}},96718:function(e,t,n){"use strict";n.d(t,{z:function(){return s}});var r=n(24246),i=n(77181);let s=e=>{let{...t}=e,n="multiple"===t.mode;return(0,r.jsx)(i.WPr,{defaultActiveFirstOption:!1,maxTagCount:"responsive",allowClear:!0,dropdownStyle:n?void 0:{width:"auto",minWidth:"200px"},className:"w-auto","data-testid":"filter-select",...t})}},46628:function(e,t,n){"use strict";n.d(t,{MA:function(){return a},Vo:function(){return u},t5:function(){return o}});var r=n(24246),i=n(77181);let s=e=>{let{children:t,title:n="Success"}=e;return(0,r.jsxs)(i.xvT,{"data-testid":"toast-success-msg",children:[(0,r.jsxs)("strong",{children:[n,":"]})," ",t]})},l=e=>{let{children:t}=e;return(0,r.jsxs)(i.xvT,{"data-testid":"toast-error-msg",children:[(0,r.jsx)("strong",{children:"Error:"})," ",t]})},a={variant:"subtle",position:"top",description:"",duration:5e3,status:"success",isClosable:!0},o=(e,t)=>{let n=(0,r.jsx)(s,{title:t,children:e});return{...a,description:n}},u=e=>{let t=(0,r.jsx)(l,{children:e});return{...a,description:t,status:"error"}}},44553:function(e,t,n){"use strict";n.d(t,{Z:function(){return m}});var r=n(24246),i=n(77181),s=n(27378),l=n(45277),a=n(16125),o=n(812),u=n(46628),c=n(20682),d=n(54427),p=n(52253),x=n(78780);let{reducer:h}=(0,d.oM)({name:"connectorTemplate",initialState:{},reducers:{}}),{useRegisterConnectorTemplateMutation:f}=x.u.injectEndpoints({endpoints:e=>({registerConnectorTemplate:e.mutation({query:e=>{let t=new FormData;return t.append("file",e),{url:"".concat(p.o4,"/register"),method:"POST",body:t}},invalidatesTags:()=>["Connection Type"]})})});var m=e=>{let{isOpen:t,onClose:n,testId:d="connector-template-modal"}=e,p=(0,a.I0)(),[x,h]=(0,s.useState)(null),m=(0,i.pmc)(),{getRootProps:j,getInputProps:y,isDragActive:g}=(0,l.uI)({onDrop:e=>{var t;if("zip"!==(null===(t=e[0].name.split(".").pop())||void 0===t?void 0:t.toLowerCase())){m((0,u.Vo)("Only zip files are allowed."));return}h(e[0])}}),[v,{isLoading:b}]=f(),{refetch:C}=(0,c.$I)({search:""},{skip:!1}),T=async()=>{if(x)try{var e;await v(x).unwrap(),m((0,u.t5)("Integration template uploaded successfully."));let{data:t}=await C();p((0,c.fP)(null!==(e=null==t?void 0:t.items)&&void 0!==e?e:[])),n()}catch(e){m((0,u.Vo)((0,o.e$)(e)))}finally{h(null)}};return(0,r.jsxs)(i.u_l,{isOpen:t,onClose:n,size:"2xl",children:[(0,r.jsx)(i.ZAr,{}),(0,r.jsxs)(i.hzk,{textAlign:"left",p:2,"data-testid":d,children:[(0,r.jsx)(i.xBx,{children:"Upload integration template"}),(0,r.jsxs)(i.fef,{children:[(0,r.jsx)(i.xvT,{fontSize:"sm",mb:4,children:"Drag and drop your integration template zip file here, or click to browse your files."}),(0,r.jsxs)(i.xuv,{...j(),bg:g?"gray.100":"gray.50",border:"2px dashed",borderColor:g?"gray.300":"gray.200",borderRadius:"md",cursor:"pointer",minHeight:"150px",display:"flex",alignItems:"center",justifyContent:"center",textAlign:"center",children:[(0,r.jsx)("input",{...y()}),x?(0,r.jsx)(i.xvT,{children:x.name}):g?(0,r.jsx)(i.xvT,{children:"Drop the file here..."}):(0,r.jsx)(i.xvT,{children:"Click or drag and drop your file here."})]}),(0,r.jsx)(i.xvT,{fontSize:"sm",mt:4,children:"An integration template zip file must include a SaaS config and dataset, but may also contain an icon (.svg) as an optional file."})]}),(0,r.jsxs)(i.mzw,{className:"flex w-full justify-end gap-2",children:[(0,r.jsx)(i.wpx,{onClick:n,"data-testid":"cancel-btn",disabled:b,children:"Cancel"}),(0,r.jsx)(i.wpx,{type:"primary",htmlType:"submit",disabled:!x||b,onClick:T,"data-testid":"submit-btn",children:"Submit"})]})]})]})}},45751:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return R}});var r=n(24246),i=n(96356),s=n(41337),l=n(77181),a=n(86677),o=n(27378),u=n(16125),c=n(16134),d=n(77830),p=n(58754),x=n(16394),h=n(19904),f=n(44553),m=n(28120),j=n(96718),y=n(26788),g=()=>{let e=(0,u.I0)(),t=(0,o.useRef)(!1);(0,o.useEffect)(()=>(t.current=!0,()=>{e((0,i.zq)(y.gA)),t.current=!1}),[e]);let n=(0,o.useRef)([...y.yI].map(e=>{let[t,n]=e;return{value:null==n?void 0:n.value,label:t}}));return(0,r.jsx)(j.z,{allowClear:!1,options:n.current,onChange:t=>{e((0,i.zq)(t||y.gA))},defaultValue:"","data-testid":"connection-type-filter"})},v=n(79894),b=n.n(v),C=e=>{let{items:t}=e;return(0,r.jsx)(l.MIq,{columns:4,spacingX:"16px",spacingY:"16px",children:t.map(e=>(0,r.jsx)(b(),{href:{pathname:window.location.pathname,query:{step:2,connectorType:JSON.stringify(e)}},children:(0,r.jsx)(l.xuv,{boxShadow:"base",borderRadius:"5px",maxWidth:"331px",overflow:"hidden",_hover:{boxShadow:"lg",cursor:"pointer"},"data-testid":"".concat(e.identifier,"-item"),children:(0,r.jsxs)(l.kCb,{alignItems:"center",justifyContent:"start",pl:"24px",pr:"24px",color:"gray.700",fontSize:"14px",fontStyle:"normal",fontWeight:"600",lineHeight:"20px",h:"80px",children:[(0,r.jsx)(s.Z,{data:e}),(0,r.jsx)(l.xvT,{ml:"12px",children:e.human_readable})]})})},e.identifier))})},T=()=>{let e=(0,u.I0)(),t=(0,o.useRef)(!1),{step:n}=(0,c.C)(i.ZZ),s=(0,c.C)(i.pw),{data:a,isFetching:d,isLoading:p,isSuccess:j}=(0,i.$I)(s),[y,v]=(0,o.useState)(!1),b=(0,o.useCallback)(t=>{(0===t.target.value.length||t.target.value.length>1)&&e((0,i.qP)(t.target.value))},[e]),T=(0,o.useMemo)(()=>(0,x.Ds)(b,250),[b]),S=(0,o.useMemo)(()=>(null==a?void 0:a.items)&&[...a.items].sort((e,t)=>e.human_readable>t.human_readable?1:-1),[a]);return(0,o.useEffect)(()=>(t.current=!0,()=>{e((0,i.qP)("")),t.current=!1}),[e]),(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(l.kCb,{minWidth:"fit-content",children:(0,r.jsx)(l.xuv,{color:"gray.700",fontSize:"14px",maxHeight:"80px",maxWidth:"474px",mb:"24px",children:n.description})}),(0,r.jsxs)(l.kCb,{alignItems:"center",gap:"4",mb:"24px",minWidth:"fit-content",children:[(0,r.jsx)(g,{}),(0,r.jsxs)(l.BZy,{size:"sm",children:[(0,r.jsx)(l.Z8_,{pointerEvents:"none",children:(0,r.jsx)(l.PTu,{color:"gray.300",h:"17px",w:"17px"})}),(0,r.jsx)(l.IIB,{autoComplete:"off",autoFocus:!0,borderRadius:"md",name:"search",onChange:T,placeholder:"Search integrations",size:"sm",type:"search"})]}),(0,r.jsx)(h.ZP,{scopes:[m.Sh.CONNECTOR_TEMPLATE_REGISTER],children:(0,r.jsx)(l.wpx,{onClick:()=>{v(!0)},type:"primary",htmlType:"submit","data-testid":"upload-btn",children:"Upload connector"})})]}),(0,r.jsx)(f.Z,{isOpen:y,onClose:()=>v(!1)}),(d||p)&&(0,r.jsx)(l.M5Y,{children:(0,r.jsx)(l.$jN,{})}),j&&S?(0,r.jsx)(C,{items:S}):null]})},S=n(7617),w=n(11274),I=n(38212),k=n(50881),A=()=>{let e=(0,u.I0)(),t=(0,o.useRef)(!1),[n,s]=(0,o.useState)(!1),{connection:a,connectionOption:d}=(0,c.C)(i.ZZ),p=y.IM.find(e=>e.type===(null==d?void 0:d.type)),[x,h]=(0,o.useState)(null==p?void 0:p.options[0]),f=()=>{s(!0)},j=(0,o.useMemo)(()=>()=>{let e=[];return(null==p?void 0:p.options)&&p.options.forEach(t=>{let n;switch(t){case y.H5.CONNECTOR_PARAMETERS:n={label:t,content:(0,r.jsx)(w.s,{onConnectionCreated:f})};break;case y.H5.DATASET_CONFIGURATION:n=(null==a?void 0:a.key)?{label:t,content:(0,r.jsx)(I.Z,{})}:void 0;break;case y.H5.DSR_CUSTOMIZATION:n=(null==a?void 0:a.key)?{label:t,content:(0,r.jsx)(k.Z,{})}:void 0}n&&e.push(n)}),e},[null==a?void 0:a.key,null==p?void 0:p.options]),g=(0,o.useCallback)(t=>{switch(t){case y.H5.DATASET_CONFIGURATION:case y.H5.DSR_CUSTOMIZATION:e((0,i.nj)(y.Ss[3]));break;case y.H5.CONNECTOR_PARAMETERS:default:e((0,i.nj)(y.Ss[2]))}h(t)},[e]);return(0,o.useEffect)(()=>(t.current=!0,()=>{t.current=!1,e((0,i.mc)())}),[e]),(0,o.useEffect)(()=>{(null==a?void 0:a.key)&&(g((null==d?void 0:d.type)!==m.Zi.MANUAL?y.H5.DATASET_CONFIGURATION:y.H5.DSR_CUSTOMIZATION),n&&s(!1))},[n,null==a?void 0:a.key,null==d?void 0:d.type,null==p?void 0:p.options,g]),(0,r.jsx)(l.gCW,{alignItems:"stretch",gap:"18px",children:(0,r.jsx)(S.Z,{data:j(),flexGrow:1,index:null==p?void 0:p.options.findIndex(e=>e===x),isLazy:!0})})},N=n(3968);let{Title:_}=l.AntTypography;var E=()=>{let e=(0,u.I0)(),t=(0,a.useRouter)(),{connectorType:n,step:x}=t.query,{connection:h,connectionOption:f,step:m}=(0,c.C)(i.ZZ);(0,o.useEffect)(()=>{if(n&&e((0,i.yA)(JSON.parse(n))),t.query.step){let t=y.Ss.find(e=>e.stepId===Number(x));e((0,i.nj)(t||y.Ss[1]))}return!t.query.id&&(null==h?void 0:h.key)&&(0,N.S)(h.key,m.href),()=>{}},[null==h?void 0:h.key,n,x,e,t.query.id,t.query.step,m.href]);let j=(0,o.useCallback)(e=>{let t="";switch(e.stepId){case 2:case 3:t=e.label.replace("{identifier}",f.human_readable);break;default:t=e.label}return t},[f]);return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(p.Z,{heading:"Connections",breadcrumbItems:[{title:"Unlinked connections",href:d.JR},{title:"New connection"}],children:(0,r.jsx)(_,{level:3,style:{marginBottom:0},className:"mt-4",children:f?(0,r.jsxs)(l.vyj,{children:[(0,r.jsx)(s.Z,{data:f}),j(m)]}):j(m)})}),(()=>{switch(m.stepId){case 1:default:return(0,r.jsx)(T,{});case 2:case 3:return(0,r.jsx)(A,{})}})()]})},O=n(1226),R=()=>(0,r.jsx)(O.Z,{children:(0,r.jsx)(E,{})})}},function(e){e.O(0,[6527,5277,9327,9767,2888,9774,179],function(){return e(e.s=91747)}),_N_E=e.O()}]);
@@ -1 +0,0 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1500],{50697:function(e,a,i){(window.__NEXT_P=window.__NEXT_P||[]).push(["/integrations/[id]",function(){return i(20495)}])},67991:function(e,a,i){"use strict";i.d(a,{Od:function(){return l},QZ:function(){return t}});var n=i(27378);let t=e=>{let{items:a,selected:i,onChange:n}=e,t=a.every(e=>i.includes(e.id))&&!!a.length;return{allSelected:t,someSelected:a.some(e=>i.includes(e.id))&&!!a.length,handleToggleAll:()=>{t?n([]):n(a.map(e=>e.id))},handleToggleSelection:e=>{i.includes(e)?n(i.filter(a=>a!==e)):n([...i,e])}}},l=e=>{let{initialSelected:a,initialExcluded:i,initialAllSelected:t,itemCount:l}=e,[o,r]=(0,n.useState)(a),[s,d]=(0,n.useState)(i),[c,u]=(0,n.useState)(t||o.length===l),_=!!o.length||!!s.length;return{selected:o,excluded:s,allSelected:c,someSelected:_,handleToggleAll:()=>{c?(d([]),s.length||u(!1)):(r([]),u(!0))},handleToggleItemSelected:e=>{if(c)d(s.includes(e)?s.filter(a=>a!==e):[...s,e]);else{let a=o.includes(e)?o.filter(a=>a!==e):[...o,e];r(a),a.length===l&&u(!0)}}}}},90111:function(e,a,i){"use strict";var n=i(24246),t=i(77181);a.Z=e=>{let{children:a,...i}=e;return(0,n.jsx)(t.xuv,{p:4,mb:4,border:"1px solid",borderColor:"gray.200",bgColor:"gray.50",borderRadius:"md",...i,children:a})}},8411:function(e,a,i){"use strict";i.d(a,{NA:function(){return l},Z8:function(){return t}});var n=i(28120);let t={[n._F.ER]:"Eritrea",[n._F.DJ]:"Djibouti",[n._F.MR]:"Mauritania",[n._F.NA]:"Namibia",[n._F.GH]:"Ghana",[n._F.SS]:"South Sudan",[n._F.SC]:"Seychelles",[n._F.IO]:"British Indian Ocean Territory",[n._F.GQ]:"Equatorial Guinea",[n._F.AO]:"Angola",[n._F.CG]:"Republic of the Congo",[n._F.BW]:"Botswana",[n._F.BI]:"Burundi",[n._F.DZ]:"Algeria",[n._F.TD]:"Chad",[n._F.NG]:"Nigeria",[n._F.TZ]:"Tanzania",[n._F.EH]:"Western Sahara",[n._F.SN]:"Senegal",[n._F.LR]:"Liberia",[n._F.ZA]:"South Africa",[n._F.CV]:"Cape Verde",[n._F.GM]:"Gambia",[n._F.SD]:"Sudan",[n._F.KM]:"Comoros",[n._F.SZ]:"Eswatini",[n._F.UG]:"Uganda",[n._F.MG]:"Madagascar",[n._F.RW]:"Rwanda",[n._F.CD]:"DR Congo",[n._F.CM]:"Cameroon",[n._F.SH]:"Saint Helena, Ascension and Tristan da Cunha",[n._F.TG]:"Togo",[n._F.MU]:"Mauritius",[n._F.NE]:"Niger",[n._F.BJ]:"Benin",[n._F.EG]:"Egypt",[n._F.LS]:"Lesotho",[n._F.ET]:"Ethiopia",[n._F.MA]:"Morocco",[n._F.YT]:"Mayotte",[n._F.BF]:"Burkina Faso",[n._F.RE]:"R\xe9union",[n._F.ST]:"S\xe3o Tom\xe9 and Pr\xedncipe",[n._F.CF]:"Central African Republic",[n._F.MZ]:"Mozambique",[n._F.MW]:"Malawi",[n._F.ML]:"Mali",[n._F.ZM]:"Zambia",[n._F.LY]:"Libya",[n._F.GW]:"Guinea-Bissau",[n._F.SO]:"Somalia",[n._F.KE]:"Kenya",[n._F.GN]:"Guinea",[n._F.ZW]:"Zimbabwe",[n._F.TN]:"Tunisia",[n._F.SL]:"Sierra Leone",[n._F.GA]:"Gabon",[n._F.CI]:"Ivory Coast",[n._F.JO]:"Jordan",[n._F.PK]:"Pakistan",[n._F.KP]:"North Korea",[n._F.MO]:"Macau",[n._F.AM]:"Armenia",[n._F.SY]:"Syria",[n._F.TJ]:"Tajikistan",[n._F.SA]:"Saudi Arabia",[n._F.KR]:"South Korea",[n._F.NP]:"Nepal",[n._F.PH]:"Philippines",[n._F.IQ]:"Iraq",[n._F.LB]:"Lebanon",[n._F.MN]:"Mongolia",[n._F.PS]:"Palestine",[n._F.YE]:"Yemen",[n._F.JP]:"Japan",[n._F.KZ]:"Kazakhstan",[n._F.LK]:"Sri Lanka",[n._F.MM]:"Myanmar",[n._F.KG]:"Kyrgyzstan",[n._F.CN]:"China",[n._F.AF]:"Afghanistan",[n._F.OM]:"Oman",[n._F.IN]:"India",[n._F.LA]:"Laos",[n._F.UZ]:"Uzbekistan",[n._F.MV]:"Maldives",[n._F.ID]:"Indonesia",[n._F.VN]:"Vietnam",[n._F.MY]:"Malaysia",[n._F.TW]:"Taiwan",[n._F.KH]:"Cambodia",[n._F.AE]:"United Arab Emirates",[n._F.HK]:"Hong Kong",[n._F.GE]:"Georgia",[n._F.BD]:"Bangladesh",[n._F.KW]:"Kuwait",[n._F.TM]:"Turkmenistan",[n._F.QA]:"Qatar",[n._F.BH]:"Bahrain",[n._F.BN]:"Brunei",[n._F.TH]:"Thailand",[n._F.BT]:"Bhutan",[n._F.SG]:"Singapore",[n._F.IL]:"Israel",[n._F.AZ]:"Azerbaijan",[n._F.TL]:"Timor-Leste",[n._F.IR]:"Iran",[n._F.TR]:"Turkey",[n._F.MK]:"North Macedonia",[n._F.IE]:"Ireland",[n._F.DK]:"Denmark",[n._F.SK]:"Slovakia",[n._F.MD]:"Moldova",[n._F.AX]:"\xc5land Islands",[n._F.PL]:"Poland",[n._F.BA]:"Bosnia and Herzegovina",[n._F.SM]:"San Marino",[n._F.CZ]:"Czechia",[n._F.EE]:"Estonia",[n._F.XK]:"Kosovo",[n._F.FO]:"Faroe Islands",[n._F.SJ]:"Svalbard and Jan Mayen",[n._F.GG]:"Guernsey",[n._F.FR]:"France",[n._F.NL]:"Netherlands",[n._F.FI]:"Finland",[n._F.PT]:"Portugal",[n._F.DE]:"Germany",[n._F.MT]:"Malta",[n._F.JE]:"Jersey",[n._F.IS]:"Iceland",[n._F.ES]:"Spain",[n._F.GI]:"Gibraltar",[n._F.NO]:"Norway",[n._F.CY]:"Cyprus",[n._F.RS]:"Serbia",[n._F.LT]:"Lithuania",[n._F.MC]:"Monaco",[n._F.LU]:"Luxembourg",[n._F.UA]:"Ukraine",[n._F.IM]:"Isle of Man",[n._F.RO]:"Romania",[n._F.BE]:"Belgium",[n._F.SE]:"Sweden",[n._F.ME]:"Montenegro",[n._F.LV]:"Latvia",[n._F.VA]:"Vatican City",[n._F.AT]:"Austria",[n._F.AL]:"Albania",[n._F.LI]:"Liechtenstein",[n._F.GR]:"Greece",[n._F.IT]:"Italy",[n._F.AD]:"Andorra",[n._F.GB]:"United Kingdom",[n._F.RU]:"Russia",[n._F.SI]:"Slovenia",[n._F.BY]:"Belarus",[n._F.CH]:"Switzerland",[n._F.HU]:"Hungary",[n._F.BG]:"Bulgaria",[n._F.HR]:"Croatia",[n._F.TC]:"Turks and Caicos Islands",[n._F.CW]:"Cura\xe7ao",[n._F.GP]:"Guadeloupe",[n._F.UM]:"United States Minor Outlying Islands",[n._F.GT]:"Guatemala",[n._F.PM]:"Saint Pierre and Miquelon",[n._F.BQ]:"Caribbean Netherlands",[n._F.GL]:"Greenland",[n._F.SX]:"Sint Maarten",[n._F.PA]:"Panama",[n._F.AW]:"Aruba",[n._F.MQ]:"Martinique",[n._F.AG]:"Antigua and Barbuda",[n._F.BM]:"Bermuda",[n._F.CU]:"Cuba",[n._F.GD]:"Grenada",[n._F.NI]:"Nicaragua",[n._F.LC]:"Saint Lucia",[n._F.KN]:"Saint Kitts and Nevis",[n._F.DO]:"Dominican Republic",[n._F.VC]:"Saint Vincent and the Grenadines",[n._F.BZ]:"Belize",[n._F.HT]:"Haiti",[n._F.JM]:"Jamaica",[n._F.BS]:"Bahamas",[n._F.MX]:"Mexico",[n._F.MF]:"Saint Martin",[n._F.SV]:"El Salvador",[n._F.BL]:"Saint Barth\xe9lemy",[n._F.AI]:"Anguilla",[n._F.MS]:"Montserrat",[n._F.VG]:"British Virgin Islands",[n._F.BB]:"Barbados",[n._F.HN]:"Honduras",[n._F.KY]:"Cayman Islands",[n._F.DM]:"Dominica",[n._F.TT]:"Trinidad and Tobago",[n._F.CR]:"Costa Rica",[n._F.SR]:"Suriname",[n._F.CX]:"Christmas Island",[n._F.WS]:"Samoa",[n._F.PF]:"French Polynesia",[n._F.AS]:"American Samoa",[n._F.NC]:"New Caledonia",[n._F.TK]:"Tokelau",[n._F.PW]:"Palau",[n._F.KI]:"Kiribati",[n._F.VU]:"Vanuatu",[n._F.PN]:"Pitcairn Islands",[n._F.CK]:"Cook Islands",[n._F.FJ]:"Fiji",[n._F.PG]:"Papua New Guinea",[n._F.MP]:"Northern Mariana Islands",[n._F.NU]:"Niue",[n._F.TV]:"Tuvalu",[n._F.NF]:"Norfolk Island",[n._F.TO]:"Tonga",[n._F.FM]:"Micronesia",[n._F.SB]:"Solomon Islands",[n._F.NR]:"Nauru",[n._F.WF]:"Wallis and Futuna",[n._F.GU]:"Guam",[n._F.AU]:"Australia",[n._F.NZ]:"New Zealand",[n._F.MH]:"Marshall Islands",[n._F.CC]:"Cocos (Keeling) Islands",[n._F.VE]:"Venezuela",[n._F.PY]:"Paraguay",[n._F.BR]:"Brazil",[n._F.CO]:"Colombia",[n._F.PE]:"Peru",[n._F.CL]:"Chile",[n._F.UY]:"Uruguay",[n._F.AR]:"Argentina",[n._F.GY]:"Guyana",[n._F.BO]:"Bolivia",[n._F.GF]:"French Guiana",[n._F.EC]:"Ecuador",[n._F.FK]:"Falkland Islands",[n._F.US_AL]:"Alabama",[n._F.US_AK]:"Alaska",[n._F.US_AZ]:"Arizona",[n._F.US_AR]:"Arkansas",[n._F.US_CA]:"California",[n._F.US_CO]:"Colorado",[n._F.US_CT]:"Connecticut",[n._F.US_DE]:"Delaware",[n._F.US_DC]:"District of Columbia (DC)",[n._F.US_FL]:"Florida",[n._F.US_GA]:"Georgia",[n._F.US_HI]:"Hawaii",[n._F.US_ID]:"Idaho",[n._F.US_IL]:"Illinois",[n._F.US_IN]:"Indiana",[n._F.US_IA]:"Iowa",[n._F.US_KS]:"Kansas",[n._F.US_KY]:"Kentucky",[n._F.US_LA]:"Louisiana",[n._F.US_ME]:"Maine",[n._F.US_MD]:"Maryland",[n._F.US_MA]:"Massachusetts",[n._F.US_MI]:"Michigan",[n._F.US_MN]:"Minnesota",[n._F.US_MS]:"Mississippi",[n._F.US_MO]:"Missouri",[n._F.US_MT]:"Montana",[n._F.US_NE]:"Nebraska",[n._F.US_NV]:"Nevada",[n._F.US_NH]:"New Hampshire",[n._F.US_NJ]:"New Jersey",[n._F.US_NM]:"New Mexico",[n._F.US_NY]:"New York",[n._F.US_NC]:"North Carolina",[n._F.US_ND]:"North Dakota",[n._F.US_OH]:"Ohio",[n._F.US_OK]:"Oklahoma",[n._F.US_OR]:"Oregon",[n._F.US_PA]:"Pennsylvania",[n._F.US_PR]:"Puerto Rico",[n._F.US_RI]:"Rhode Island",[n._F.US_SC]:"South Carolina",[n._F.US_SD]:"San Diego",[n._F.US_TN]:"Tennessee",[n._F.US_TX]:"Texas",[n._F.US_UT]:"Utah",[n._F.US_VA]:"Virginia",[n._F.US_VI]:"United States Virgin Islands",[n._F.US_VT]:"Vermon",[n._F.US_WA]:"Washington",[n._F.US_WV]:"West Virginia",[n._F.US_WI]:"Wisconsin",[n._F.US_WY]:"Wyoming",[n._F.CA_AB]:"Alberta",[n._F.CA_BC]:"British Columbia",[n._F.CA_MB]:"Manitoba",[n._F.CA_NB]:"New Brunswick",[n._F.CA_NL]:"Newfoundland and Labrador",[n._F.CA_NS]:"Nova Scotia",[n._F.CA_ON]:"Ontario",[n._F.CA_PE]:"Prince Edward Island",[n._F.CA_QC]:"Quebec",[n._F.CA_SK]:"Saskatchewan",[n._F.CA_NT]:"Northwest Territories",[n._F.CA_NU]:"Nunavut",[n._F.CA_YT]:"Yukon",[n._F.CA]:"Canada",[n._F.US]:"United States",[n._F.MEXICO_CENTRAL_AMERICA]:"Mexico and Central America",[n._F.CARIBBEAN]:"Caribbean",[n._F.EEA]:"European Economic Area (EEA)",[n._F.NON_EEA]:"Non European Economic Area"},l=new Map(Object.entries(t));Object.entries(t).map(e=>({value:e[0],label:e[1]}))},79494:function(e,a,i){"use strict";var n=i(24246),t=i(77181);a.Z=e=>{let{title:a,icon:i,type:l,...o}=e;return(0,n.jsx)(t.wpx,{size:"small",type:l,"data-testid":"action-".concat(a),icon:i,iconPosition:"start",...o,children:a})}},60325:function(e,a,i){"use strict";i.d(a,{DD:function(){return r},Go:function(){return s},TK:function(){return t},Uv:function(){return c},k1:function(){return l},y3:function(){return u}});var n=i(28120);let t=e=>{var a;return null!==(a=null==e?void 0:e.filter(e=>e.selected).map(e=>e.id))&&void 0!==a?a:[]},l=e=>{var a;return null!==(a=null==e?void 0:e.filter(e=>e.selected))&&void 0!==a?a:[]},o=[{language:n.eU.EN,is_default:!0,title:"Title",description:"Description",accept_button_label:"Accept",reject_button_label:"Reject",save_button_label:"Save",acknowledge_button_label:"OK",privacy_preferences_link_label:"Privacy Preferences"}],r={name:"",disabled:!1,dismissable:!0,allow_language_selection:!1,show_layer1_notices:!1,layer1_button_options:n.Of.OPT_IN_OPT_OUT,regions:[],translations:o,auto_detect_language:!0,auto_subdomain_cookie_deletion:!0},s=(e,a)=>{let i=a.find(a=>a.id===e.language);return i?i.name:e.language},d=e=>{var a,i,n,t,l,o,r,s,d;let{language:c,is_default:u,accept_button_label:_,reject_button_label:F}=e;return{language:c,is_default:u,accept_button_label:_,reject_button_label:F,title:e.title,description:e.description,acknowledge_button_label:null!==(a=e.acknowledge_button_label)&&void 0!==a?a:void 0,banner_title:null!==(i=e.banner_title)&&void 0!==i?i:void 0,banner_description:null!==(n=e.banner_description)&&void 0!==n?n:void 0,purpose_header:null!==(t=e.purpose_header)&&void 0!==t?t:void 0,privacy_policy_link_label:null!==(l=e.privacy_policy_link_label)&&void 0!==l?l:void 0,privacy_policy_url:null!==(o=e.privacy_policy_url)&&void 0!==o?o:void 0,privacy_preferences_link_label:null!==(r=e.privacy_preferences_link_label)&&void 0!==r?r:void 0,save_button_label:null!==(s=e.save_button_label)&&void 0!==s?s:void 0,modal_link_label:null!==(d=e.modal_link_label)&&void 0!==d?d:void 0}},c=e=>{let{created_at:a,updated_at:i,privacy_notices:n,origin:t,id:l,...o}=e;return{...o,privacy_notice_ids:n?n.map(e=>e.id):[],translations:e.translations?e.translations.map(e=>d(e)):[]}},u=e=>e===n.re.PRIVACY_CENTER?{title:{included:!0,required:!0},description:{included:!0,required:!0},save_button_label:{included:!0,required:!0},accept_button_label:{included:!0,required:!0},reject_button_label:{included:!0,required:!0},privacy_policy_link_label:{included:!0},privacy_policy_url:{included:!0},modal_link_label:{included:!0}}:e===n.re.MODAL?{title:{included:!0,required:!0},description:{included:!0,required:!0},accept_button_label:{included:!0,required:!0},reject_button_label:{included:!0,required:!0},save_button_label:{included:!0,required:!0},acknowledge_button_label:{included:!0,required:!0},privacy_policy_link_label:{included:!0},privacy_policy_url:{included:!0},privacy_preferences_link_label:{included:!0},modal_link_label:{included:!0}}:e===n.re.BANNER_AND_MODAL?{title:{included:!0,required:!0},banner_title:{included:!0},description:{included:!0,required:!0},banner_description:{included:!0},accept_button_label:{included:!0,required:!0},reject_button_label:{included:!0,required:!0},save_button_label:{included:!0,required:!0},acknowledge_button_label:{included:!0,required:!0},privacy_policy_link_label:{included:!0},privacy_policy_url:{included:!0},privacy_preferences_link_label:{included:!0,required:!0},modal_link_label:{included:!0}}:e===n.re.TCF_OVERLAY?{title:{included:!0,required:!0},banner_title:{included:!0},description:{included:!0,required:!0},banner_description:{included:!0},purpose_header:{included:!0},accept_button_label:{included:!0,required:!0},reject_button_label:{included:!0,required:!0},save_button_label:{included:!0,required:!0},acknowledge_button_label:{included:!0,required:!0},privacy_policy_link_label:{included:!0},privacy_policy_url:{included:!0},privacy_preferences_link_label:{included:!0,required:!0},modal_link_label:{included:!0}}:{title:{included:!0,required:!0},description:{included:!0,required:!0},accept_button_label:{included:!0,required:!0},reject_button_label:{included:!0,required:!0},save_button_label:{included:!0,required:!0},acknowledge_button_label:{included:!0,required:!0},privacy_policy_link_label:{included:!0},privacy_policy_url:{included:!0},privacy_preferences_link_label:{included:!0,required:!0},modal_link_label:{included:!0}}},20495:function(e,a,i){"use strict";i.r(a),i.d(a,{default:function(){return eu}});var n=i(24246),t=i(77181),l=i(86677),o=i(7617),r=i(77213),s=i(77830),d=i(58754),c=i(94725),u=i(45216),_=i(7621),F=i(92222),m=i(59003),g=i(27378),p=i(18225);let b=(0,t.IUT)({displayName:"MonitorIcon",viewBox:"0 0 12 12",path:(0,n.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 h=i(8411),x=i(14481),y=i(72625),v=i(70675),S=i(812),C=e=>{let{defaultSuccessMsg:a,defaultErrorMsg:i}=e,n=(0,t.pmc)();return{toastResult:e=>{(0,S.D4)(e)?n({status:"error",description:(0,S.e$)(e.error,i)}):n({status:"success",description:a})}}},f=i(8133),j=i(46628),k=i(67991),A=i(91613);let M=(0,F.Cl)();var T=e=>{let{items:a,totalItemCount:i,selected:l,excluded:o,allSelected:r,someSelected:s,moreLoading:d,handleToggleSelection:c,handleToggleAll:u,onMoreClick:_}=e,b=a.map(e=>({id:e,isSelected:l.includes(e),isExcluded:o.includes(e)})),h=(0,g.useMemo)(()=>[M.display({id:"select",cell:e=>{let{row:a}=e;return(0,n.jsx)(x.k,{isChecked:a.original.isSelected||r&&!a.original.isExcluded,onChange:()=>c(a.original.id),dataTestId:"".concat(a.original.id,"-checkbox")})},header:()=>(0,n.jsx)(x.k,{isChecked:r,isIndeterminate:s,onChange:u,dataTestId:"select-all-checkbox"}),size:1}),M.accessor(e=>e.id,{id:"id",cell:e=>(0,n.jsx)(x.G3,{value:e.getValue()}),header:e=>(0,n.jsx)(x.Rr,{value:"Scope",...e})})],[c,u,r,s]),y=(0,m.b7)({getCoreRowModel:(0,F.sC)(),getRowId:e=>e.id,manualPagination:!0,data:b,columns:h,columnResizeMode:"onChange"});return(0,n.jsx)(t.kCb,{w:"full",direction:"column",maxH:"lg",children:(0,n.jsx)(x.ZK,{tableInstance:y,onRowClick:e=>c(e.id),footer:!!_&&(0,n.jsx)(x.vr,{totalColumns:2,children:(0,n.jsx)(t.kCb,{justify:"center",children:d?(0,n.jsx)(p.Z,{size:"xs"}):(0,n.jsxs)(t.kCb,{align:"center",children:[(0,n.jsxs)(t.xvT,{fontSize:"xs",mr:4,children:["Showing ",a.length," of ",i]}),(0,n.jsx)(t.wpx,{onClick:_,size:"small","data-testid":"load-more-btn",children:"Load more..."})]})})})})})};let N={items:[],total:1,page:1,size:50,pages:0};var w=(e,a)=>{let[i,n]=(0,g.useState)(2),{data:t,isLoading:l}=(0,v.oN)({page:1,size:25,connection_config_key:e}),o=(0,g.useRef)(l),{items:r,total:s}=null!=t?t:N,d=!!(null==t?void 0:t.pages)&&i>t.pages,[c,u]=(0,g.useState)(r);(0,g.useEffect)(()=>{o.current=l,u(r)},[l,r]),(0,g.useEffect)(()=>{let e=setTimeout(()=>{o.current&&a&&a()},5e3);return()=>clearTimeout(e)},[]);let[_,{isLoading:F,isFetching:m}]=(0,v.j3)(),p=F||m||l,b=async()=>{var a,t;if(d)return;let l=await _({connection_config_key:e,size:25,page:i+1});l.isError||(n(i+1),u([...c,...null!==(t=null===(a=l.data)||void 0===a?void 0:a.items)&&void 0!==t?t:[]]))};return{databases:c,totalDatabases:s,fetchMore:b,initialIsLoading:l,isLoading:p,reachedEnd:d}},E=e=>{var a;let{monitor:i,isEditing:l,isSubmitting:o,integrationKey:r,onSubmit:s,onClose:d}=e,c=(0,t.pmc)(),{databases:u,totalDatabases:_,fetchMore:F,reachedEnd:m,isLoading:g,initialIsLoading:b}=w(r,()=>{s({...i,databases:[]}),c({...j.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"}),d()}),h=null!==(a=null==i?void 0:i.databases)&&void 0!==a?a:[],{selected:x,excluded:y,allSelected:v,someSelected:S,handleToggleItemSelected:C,handleToggleAll:f}=(0,k.Od)({initialSelected:h,initialExcluded:[],initialAllSelected:l&&!h.length,itemCount:_}),M=!v&&0===x.length;return b?(0,n.jsx)(p.Z,{my:12}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(t.kCb,{p:4,direction:"column",children:[(0,n.jsxs)(t.kCb,{direction:"row",mb:4,gap:1,align:"center",children:[(0,n.jsx)(t.xvT,{fontSize:"sm",children:"Select projects to monitor"}),(0,n.jsx)(A.Z,{label:"Selecting a project will monitor all current and future datasets within that project."})]}),(0,n.jsx)(T,{items:u,totalItemCount:_,selected:x,excluded:y,allSelected:v,someSelected:S,moreLoading:g,handleToggleSelection:C,handleToggleAll:f,onMoreClick:m?void 0:F})]}),(0,n.jsxs)("div",{className:"mt-4 flex w-full justify-between",children:[(0,n.jsx)(t.wpx,{onClick:d,children:"Cancel"}),(0,n.jsx)(t.ua7,{label:"Select one or more projects to save",isDisabled:!M,children:(0,n.jsx)(t.wpx,{onClick:()=>{s({...i,excluded_databases:y,databases:v?[]:x})},loading:o,type:"primary","data-testid":"save-btn",disabled:M,children:"Save"})})]})]})},U=i(19508),R=i(96063),I=i(34090),L=i(55484),D=i(97181),q=i(40324),O=i(28120),B=e=>{var a,i;let{monitor:o,integrationOption:r,isSubmitting:s,databasesAvailable:d,onClose:c,onAdvance:u,onSubmit:_}=e,F=!!o,{query:m}=(0,l.useRouter)(),g=Array.isArray(m.id)?m.id[0]:m.id,p=L.Ry().shape({name:L.Z_().required().label("Name"),execution_frequency:L.Z_().nullable().label("Execution frequency"),execution_start_date:L.hT().nullable().label("Execution start date")}),b=(null==o?void 0:o.execution_start_date)?(0,U.D)(o.execution_start_date):Date.now(),h={name:null!==(a=null==o?void 0:o.name)&&void 0!==a?a:"",execution_start_date:(0,R.WU)(b,"yyyy-MM-dd'T'HH:mm"),execution_frequency:null!==(i=null==o?void 0:o.execution_frequency)&&void 0!==i?i:O.hV.MONTHLY},x=(0,S.MM)(O.hV);return(0,n.jsx)(I.J9,{initialValues:h,enableReinitialize:!0,onSubmit:e=>{let a=e.execution_frequency!==O.hV.NOT_SCHEDULED?{execution_frequency:e.execution_frequency,execution_start_date:new Date(e.execution_start_date).toISOString()}:{execution_frequency:O.hV.NOT_SCHEDULED,execution_start_date:void 0},i=F?{...o,...a,name:e.name}:{...a,name:e.name,connection_config_key:g,classify_params:{num_samples:25,num_threads:1}};r.identifier===O.Rj.DYNAMODB&&(i.datasource_params={single_dataset:!1}),d?u(i):_(i)},validationSchema:p,children:e=>{let{values:a,isValid:i,resetForm:l}=e;return(0,n.jsx)(I.l0,{children:(0,n.jsxs)(t.gCW,{alignItems:"start",spacing:6,mt:4,children:[(0,n.jsx)(q.j0,{name:"name",id:"name",label:"Name",isRequired:!0,variant:"stacked"}),(0,n.jsx)(D.d,{name:"execution_frequency",id:"execution_frequency",tooltip:"Interval to run the monitor automatically after the start date",options:x,label:"Automatic execution frequency",layout:"stacked"}),(0,n.jsx)(q.YL,{name:"execution_start_date",label:"Automatic execution start time",disabled:a.execution_frequency===O.hV.NOT_SCHEDULED,id:"execution_start_date"}),(0,n.jsxs)("div",{className:"flex w-full justify-between",children:[(0,n.jsx)(t.wpx,{onClick:()=>{l(),c()},children:"Cancel"}),(0,n.jsx)(t.wpx,{htmlType:"submit",type:"primary",disabled:!i,loading:s,"data-testid":"next-btn",children:d?"Next":"Save"})]})]})})}})},G=i(90111),P=i(3968),V=i(64781),H=i(60325);let Z=L.Ry().shape({name:L.Z_().required().label("Name"),execution_frequency:L.Z_().nullable().label("Execution frequency"),execution_start_date:L.hT().nullable().label("Execution start date"),datasource_params:L.Ry().shape({locations:L.IX().label("Locations"),exclude_domains:L.IX().label("Exclude domains"),sitemap_url:L.Z_().nullable().url().label("Sitemap URL")})});var K=e=>{var a,i,o;let{monitor:r,url:s,onClose:d,onSubmit:c}=e,{query:u}=(0,l.useRouter)(),_=Array.isArray(u.id)?u.id[0]:u.id,F=(null==r?void 0:r.execution_start_date)?(0,U.D)(r.execution_start_date):Date.now(),{data:m,isLoading:g}=(0,V.gT)(),p=[...(0,H.TK)(null!==(a=null==m?void 0:m.locations)&&void 0!==a?a:[]),...(0,H.TK)(null!==(i=null==m?void 0:m.location_groups)&&void 0!==i?i:[])].map(e=>({value:e,label:h.Z8[e]})),b={name:(null==r?void 0:r.name)||"",execution_frequency:(null==r?void 0:r.execution_frequency)||O.hV.NOT_SCHEDULED,execution_start_date:(0,R.WU)(F,"yyyy-MM-dd'T'HH:mm"),url:s,connection_config_key:_,datasource_params:null!==(o=null==r?void 0:r.datasource_params)&&void 0!==o?o:{locations:[]}},x=async e=>{let a=e.execution_frequency!==O.hV.NOT_SCHEDULED?{execution_frequency:e.execution_frequency,execution_start_date:new Date(e.execution_start_date).toISOString()}:{execution_frequency:O.hV.NOT_SCHEDULED,execution_start_date:void 0};c({...r,...e,...a,key:(null==r?void 0:r.key)||(0,P.E)(e.name),classify_params:(null==r?void 0:r.classify_params)||{},datasource_params:e.datasource_params||{},connection_config_key:_})},y=(0,S.MM)(O.hV).filter(e=>[O.hV.MONTHLY,O.hV.QUARTERLY,O.hV.YEARLY,O.hV.NOT_SCHEDULED].includes(e.value));return(0,n.jsxs)(t.jqI,{vertical:!0,className:"pt-4",children:[(0,n.jsx)(G.Z,{children:(0,n.jsx)(t.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,n.jsx)(I.J9,{initialValues:b,enableReinitialize:!0,onSubmit:x,validationSchema:Z,children:e=>{let{values:a,resetForm:i}=e;return(0,n.jsx)(I.l0,{children:(0,n.jsxs)(t.jqI,{vertical:!0,gap:"middle",children:[(0,n.jsx)(q.j0,{name:"name",id:"name",label:"Name",isRequired:!0,variant:"stacked"}),(0,n.jsx)(q.j0,{name:"datasource_params.sitemap_url",id:"sitemap_url",label:"Sitemap URL",variant:"stacked"}),(0,n.jsx)(D.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,n.jsx)(q.j0,{name:"url",id:"url",label:"URL",isRequired:!0,disabled:!0,variant:"stacked"}),(0,n.jsx)(D.d,{mode:"multiple",isRequired:!0,name:"datasource_params.locations",id:"locations",label:"Locations",loading:g,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,n.jsx)(D.d,{name:"execution_frequency",id:"execution_frequency",options:y,label:"Automatic execution frequency",layout:"stacked"}),(0,n.jsx)(q.YL,{name:"execution_start_date",label:"Automatic execution start time",disabled:a.execution_frequency===O.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,n.jsxs)(t.jqI,{className:"mt-2 justify-between",children:[(0,n.jsx)(t.wpx,{onClick:()=>{i(),d()},children:"Cancel"}),(0,n.jsx)(t.wpx,{type:"primary",htmlType:"submit","data-testid":"save-btn",children:"Save"})]})]})})}})]})},z=i(31883),W=e=>{let{isOpen:a,onClose:i,formStep:l,onAdvance:o,monitor:r,isEditing:s,integration:d,integrationOption:c}=e,[u,{isLoading:_}]=(0,v.Fy)(),{data:F}=(0,v.oN)({page:1,size:25,connection_config_key:d.key}),m=!!F&&!!F.total,g=(0,t.pmc)(),{toastResult:b}=C({defaultSuccessMsg:"Monitor ".concat(s?"updated":"created"," successfully"),defaultErrorMsg:"A problem occurred while ".concat(s?"updating":"creating"," this monitor")}),h=async e=>{let a;let n=setTimeout(()=>{a||(g({...j.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."}),i())},5e3);(a=await u(e))&&(clearTimeout(n),b(a),(0,z.D4)(a)||i())};return c.identifier===O.Rj.WEBSITE?(0,n.jsx)(f.Z,{title:(null==r?void 0:r.name)?"Configure ".concat(r.name):"Configure website monitor",isOpen:a,onClose:i,children:(0,n.jsx)(K,{monitor:r,url:d.secrets.url,onClose:i,onSubmit:h})}):(0,n.jsxs)(f.Z,{title:(null==r?void 0:r.name)?"Configure ".concat(r.name):"Configure discovery monitor",isOpen:a,onClose:i,children:[0===l&&(0,n.jsx)(B,{monitor:r,onClose:i,onAdvance:o,onSubmit:h,isSubmitting:_,databasesAvailable:m,integrationOption:c}),1===l&&(r?(0,n.jsx)(E,{monitor:r,isEditing:s,isSubmitting:_,onSubmit:h,onClose:i,integrationKey:d.key}):(0,n.jsx)(p.Z,{}))]})},Y=i(58452),J=i(79494),Q=e=>{let{monitorId:a,onEditClick:i}=e,[l]=(0,v.Sb)(),{toastResult:o}=C({defaultErrorMsg:"A problem occurred deleting this monitor",defaultSuccessMsg:"Monitor deleted successfully"}),[r,{isLoading:s}]=(0,v.V9)(),{toastResult:d}=C({defaultErrorMsg:"A problem occurred initiating monitor execution",defaultSuccessMsg:"Monitor execution successfully started"}),c=async()=>{o(await l({monitor_config_id:a}))},{isOpen:u,onOpen:_,onClose:F}=(0,t.qY0)(),m=async()=>{d(await r({monitor_config_id:a}))};return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(Y.Z,{isOpen:u,onClose:F,onConfirm:c,title:"Delete monitor",message:"Are you sure you want to delete this discovery monitor?",continueButtonText:"Delete",isCentered:!0}),(0,n.jsxs)("div",{className:"flex gap-2",children:[(0,n.jsx)(t.ua7,{label:"Edit",children:(0,n.jsx)(t.wpx,{onClick:i,size:"small",icon:(0,n.jsx)(t.dY8,{}),"data-testid":"edit-monitor-btn","aria-label":"Edit monitor"})}),(0,n.jsx)(t.ua7,{label:"Delete",children:(0,n.jsx)(t.wpx,{onClick:_,size:"small",icon:(0,n.jsx)(t.pJl,{}),"aria-label":"Delete monitor","data-testid":"delete-monitor-btn"})}),(0,n.jsx)(J.Z,{onClick:m,title:"Scan",loading:s})]})]})};let X=e=>{let{row:a,getValue:i}=e,[t]=(0,v.Fy)(),l=async e=>t({...a.original,enabled:e}),o=i();return(0,n.jsx)(y.S1,{enabled:o,onToggle:l,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},ee=(0,F.Cl)(),ea=e=>{let{onAddClick:a}=e;return(0,n.jsx)(t.gCW,{mt:6,p:10,spacing:4,borderRadius:"base",maxW:"70%","data-testid":"no-results-notice",alignSelf:"center",margin:"auto",children:(0,n.jsxs)(t.gCW,{children:[(0,n.jsx)(t.xvT,{fontSize:"md",fontWeight:"600",children:"No monitors"}),(0,n.jsx)(t.xvT,{fontSize:"sm",children:'You have not configured any data discovery monitors. Click "Add monitor" to configure data discovery now.'}),(0,n.jsx)(t.wpx,{onClick:a,type:"primary",children:"Add monitor"})]})})};var ei=e=>{let{integration:a,integrationOption:i}=e,{PAGE_SIZES:l,pageSize:o,setPageSize:r,onPreviousPageClick:s,isPreviousPageDisabled:d,onNextPageClick:c,isNextPageDisabled:u,startRange:_,endRange:S,pageIndex:C,setTotalPages:f}=(0,x.oi)(),{isLoading:j,isFetching:k,data:A}=(0,v.Fu)({page:C,size:o,connection_config_key:a.key}),M=(0,t.qY0)(),[T,N]=(0,g.useState)(void 0),[w,E]=(0,g.useState)(!1),[U,R]=(0,g.useState)(0),I=e=>{N(e),E(!0),M.onOpen()},L=null!=A?A:$,{items:D,total:q,pages:B}=(0,g.useMemo)(()=>L,[L]);(0,g.useEffect)(()=>{f(B)},[B,f]);let G=(0,g.useMemo)(()=>{let e=ee.accessor(e=>e.name,{id:"name",cell:e=>(0,n.jsx)(x.G3,{value:e.getValue()}),header:e=>(0,n.jsx)(x.Rr,{value:"Name",...e})}),t=ee.accessor(e=>e.databases,{id:"projects",cell:e=>{var a;return(null===(a=e.getValue())||void 0===a?void 0:a.length)===0?(0,n.jsx)(x.G3,{value:"All projects"}):(0,n.jsx)(x.WP,{suffix:"Projects",value:e.getValue(),...e,cellState:{isExpanded:!0}})},header:e=>(0,n.jsx)(x.Rr,{value:"Scope",...e})}),l=ee.accessor(()=>{let e=a.secrets;return null==e?void 0:e.url},{id:"source_url",cell:e=>{var a;return(0,n.jsx)(x.G3,{value:null!==(a=e.getValue())&&void 0!==a?a:"Not scheduled"})},header:e=>(0,n.jsx)(x.Rr,{value:"Source URL",...e})}),o=ee.accessor(e=>e.execution_frequency,{id:"frequency",cell:e=>{var a;return(0,n.jsx)(x.G3,{value:null!==(a=e.getValue())&&void 0!==a?a:"Not scheduled"})},header:e=>(0,n.jsx)(x.Rr,{value:"Scan frequency",...e})}),r=ee.accessor(e=>e.last_monitored,{id:"last_monitored",cell:e=>(0,n.jsx)(y.Cy,{time:e.getValue()}),header:e=>(0,n.jsx)(x.Rr,{value:"Last scan",...e})}),s=ee.accessor(e=>{var a;let i=e.datasource_params;return(null==i?void 0:null===(a=i.locations)||void 0===a?void 0:a.map(e=>h.Z8[e]).join(", "))||"No regions selected"},{id:"regions",cell:e=>(0,n.jsx)(x.G3,{value:e.getValue()}),header:e=>(0,n.jsx)(x.Rr,{value:"Regions",...e})}),d=ee.accessor(e=>e.enabled,{id:"status",cell:X,header:e=>(0,n.jsx)(x.Rr,{value:"Status",...e}),size:0,meta:{disableRowClick:!0}}),c=ee.display({id:"action",cell:e=>(0,n.jsx)(Q,{onEditClick:()=>I(e.row.original),monitorId:e.row.original.key}),header:"Actions",meta:{disableRowClick:!0}});return(null==i?void 0:i.identifier)===O.Rj.WEBSITE?[e,l,o,s,r,d,c]:[e,t,o,r,d,c]},[]),P=(0,m.b7)({getCoreRowModel:(0,F.sC)(),getGroupedRowModel:(0,F.qe)(),getExpandedRowModel:(0,F.rV)(),getRowId:e=>e.name,manualPagination:!0,data:D,columns:G,columnResizeMode:"onChange"});return j?(0,n.jsx)(p.Z,{}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(t.xvT,{maxW:"720px",mb:6,fontSize:"sm","data-testid":"monitor-description",children:(null==i?void 0:i.identifier)===O.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,n.jsxs)(x.Q$,{children:[(0,n.jsx)(t.LZC,{}),(0,n.jsx)(t.wpx,{onClick:M.onOpen,icon:(0,n.jsx)(b,{}),iconPosition:"end","data-testid":"add-monitor-btn",children:"Add monitor"}),(0,n.jsx)(W,{isOpen:M.isOpen,onClose:()=>{N(void 0),E(!1),R(0),M.onClose()},formStep:U,onAdvance:e=>{N(e),R(1)},monitor:T,isEditing:w,integration:a,integrationOption:i})]}),(0,n.jsx)(x.ZK,{tableInstance:P,onRowClick:I,emptyTableNotice:(0,n.jsx)(ea,{onAddClick:M.onOpen})}),(0,n.jsx)(x.s8,{totalRows:q||0,pageSizes:l,setPageSize:r,onPreviousPageClick:s,isPreviousPageDisabled:d||k,onNextPageClick:c,isNextPageDisabled:u||k,startRange:_,endRange:S})]})},en=i(41966),et=i(32885),el=e=>{let{integration:a}=e,{data:i}=(0,c.Eg)(a.key),{data:l}=(0,en.LH)({minimal:!0,connection_type:O.Rj.BIGQUERY}),[o,{isLoading:r}]=(0,et.Qd)(),s=(0,t.pmc)(),d=async()=>{try{var e,n,t,r,d;let c=null!==(t=null==i?void 0:null===(e=i.items)||void 0===e?void 0:e.map(e=>e.fides_key))&&void 0!==t?t:[],u=null!==(r=null==l?void 0:l.map(e=>e.fides_key))&&void 0!==r?r:[],_=c.length>0?c:u,F=await o({connectionKey:a.key,datasetIds:_}),m=null!==(d=null===(n=F.data)||void 0===n?void 0:n.succeeded.length)&&void 0!==d?d:0,g="Fides has begun syncing with DataHub. There ".concat(1===m?"is":"are"," ").concat(m," dataset").concat(1===m?"":"s"," queued for syncing.");s((0,j.t5)(g))}catch(e){s({title:"Error syncing datasets",description:"There was an error syncing your datasets with DataHub. Please try again.",status:"error",duration:5e3,isClosable:!0})}};return(0,n.jsxs)(t.gCW,{spacing:6,align:"stretch",children:[(0,n.jsxs)(t.gCW,{spacing:4,align:"stretch",children:[(0,n.jsx)(t.xvT,{maxW:"720px",fontSize:"sm","data-testid":"scan-description-1",children:"If you're using DataHub for metadata management, select sync datasets to push data categories from Fides to your DataHub datasets."}),(0,n.jsxs)(t.xvT,{maxW:"720px",fontSize:"sm","data-testid":"scan-description-2",children:["Fides assigns data categories to datasets based on your privacy taxonomy. With this integration, those categories can be added as glossary terms to matching datasets in DataHub-keeping your labeling consistent across systems. To learn more about our DataHub integration, view our docs ",(0,n.jsx)(t.rUS,{href:"https://ethyca.com/docs/user-guides/integrations/saas-integrations/datahub",isExternal:!0,color:"blue.500",textDecoration:"underline",children:"here"}),"."]})]}),(0,n.jsx)(t.zxk,{colorScheme:"primary",onClick:d,"data-testid":"sync-button",width:"fit-content",isLoading:r,loadingText:"Syncing datasets...",children:"Sync Datasets"})]})},eo=i(15987),er=i(64176),es=e=>{let{isOpen:a,onClose:i,connection:t}=e,l=(0,er.Z)(t.connection_type);return(0,n.jsx)(f.Z,{title:"Manage integration secret",isOpen:a,onClose:i,children:(0,n.jsx)(eo.Z,{connection:t,connectionOption:l,onCancel:i})})},ed=i(41553),ec=i(75595),eu=()=>{var e,a;let{query:i}=(0,l.useRouter)(),F=Array.isArray(i.id)?i.id[0]:i.id,{data:m,isLoading:g}=(0,c.jA)(null!=F?F:""),p=(0,er.Z)(null==m?void 0:m.connection_type),{testConnection:b,isLoading:h,testData:x}=(0,u.Z)(m),{onOpen:y,isOpen:v,onClose:S}=(0,t.qY0)(),{overview:C,instructions:f}=(0,_.ZP)(null==m?void 0:m.connection_type),j=(0,l.useRouter)();m&&!_.jq.includes(m.connection_type)&&j.push(s.KH);let k=[{label:"Connection",content:(0,n.jsxs)(t.xuv,{maxW:"720px",children:[(0,n.jsxs)(t.kCb,{borderRadius:"md",outline:"1px solid",outlineColor:"gray.100",align:"center",p:3,children:[(0,n.jsx)(t.kCb,{flexDirection:"column",children:(0,n.jsx)(ed.Z,{testData:x})}),(0,n.jsx)(t.LZC,{}),(0,n.jsxs)("div",{className:"flex gap-4",children:[(0,n.jsx)(t.wpx,{onClick:b,loading:h,"data-testid":"test-connection-btn",children:"Test connection"}),(0,n.jsx)(t.wpx,{onClick:y,"data-testid":"manage-btn",children:"Manage"})]})]}),(0,n.jsx)(es,{isOpen:v,onClose:S,connection:m}),C,f]})}];return(null==m?void 0:m.connection_type)===O.Rj.DATAHUB?k.push({label:"Data sync",content:(0,n.jsx)(el,{integration:m})}):k.push({label:"Data discovery",content:(0,n.jsx)(ei,{integration:m,integrationOption:p})}),(0,n.jsx)(r.Z,{title:"Integrations",children:(0,n.jsxs)(d.Z,{heading:"Integrations",breadcrumbItems:[{title:"All integrations",href:s.KH},{title:null!==(a=null!==(e=null==m?void 0:m.name)&&void 0!==e?e:null==m?void 0:m.key)&&void 0!==a?a:""}],children:[(0,n.jsx)(ec.Z,{integration:m,showDeleteButton:!0}),g?(0,n.jsx)(t.$jN,{}):!!m&&(0,n.jsx)(o.Z,{data:k,isLazy:!0})]})})}}},function(e){e.O(0,[8033,6060,2858,2866,9278,9255,4481,5973,2888,9774,179],function(){return e(e.s=50697)}),_N_E=e.O()}]);