ethyca-fides 2.58.1b5__py2.py3-none-any.whl → 2.58.2__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.
- {ethyca_fides-2.58.1b5.dist-info → ethyca_fides-2.58.2.dist-info}/METADATA +1 -1
- {ethyca_fides-2.58.1b5.dist-info → ethyca_fides-2.58.2.dist-info}/RECORD +154 -157
- fides/_version.py +3 -3
- fides/api/api/deps.py +2 -8
- fides/api/cryptography/identity_salt.py +13 -12
- fides/api/custom_types.py +1 -6
- fides/api/db/base.py +0 -1
- fides/api/migrations/hash_migration_job.py +2 -2
- fides/api/models/attachment.py +11 -80
- fides/api/models/comment.py +15 -45
- fides/api/models/privacy_experience.py +0 -42
- fides/api/models/privacy_request/privacy_request.py +6 -23
- fides/api/schemas/connection_configuration/connection_config.py +16 -30
- fides/api/service/storage/s3.py +1 -14
- fides/api/task/graph_task.py +1 -1
- fides/ui-build/static/admin/404.html +1 -1
- fides/ui-build/static/admin/_next/static/{ImUuWMsloiAWNWbICVyCj → 7ef43wSyz6KNgQTInQ9Ih}/_buildManifest.js +1 -1
- fides/ui-build/static/admin/_next/static/chunks/{1150-2642cd9cdc8a52f6.js → 1150-035a721a04f4451e.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/1376-5cea5ef9362215e8.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/{2397-0d1c289b788fcc11.js → 2397-ee53235fb21b5e97.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/3412-7ec8751b8182e1bf.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/{3855-63495367531cb776.js → 3855-b6b7865dedd7bc2a.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/{3872-472bb47eb34d8fdb.js → 3872-4e053c20d546f027.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/{4060-53a5c6347690a8fa.js → 4060-8d165e1236ea521a.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/{4450-f5e6eb9270f03bf0.js → 4450-36234280bee624ff.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/{5258-cf7b27ef51f38392.js → 5258-0658dc2274df6832.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/{5480-52dc446be40725f5.js → 5480-f49696df5e8ae500.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/{5487-8678d75ee1d1ef09.js → 5487-3ad50d21cdbc9209.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/{5973-88141f9b92f20e0a.js → 5973-52aee296edc44f7e.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/{6315-1adb10a8b98b4a13.js → 6315-fa1519cdf080f42d.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/{6372-e0bb9f8d07cc3b04.js → 6372-ca9c12ac8902365b.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/{6853-8700d87c9e1f6940.js → 6853-8941824350c3c1a8.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/{6954-85a998d74391caaf.js → 6954-3b887fb444f9228c.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/{7453-ef1887105c062d37.js → 7453-39761c38da31257e.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/{7751-a70fe0e5f67f5538.js → 7751-a8f31c062d4cb09d.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/{79-8e060d36d36c752c.js → 79-f9b948ebb186900f.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/{7980-72f745bff9fabcc9.js → 7980-4bd08957448dea32.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/{9046-742ad2bb5108d4c5.js → 9046-04bd7becea207cb1.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/{9767-06d9d54a452ec9f4.js → 9767-1a23925d2cb27b51.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/{main-090643377c8254e6.js → main-24f422f93845a596.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/{main-app-59156a9331ac7bce.js → main-app-94a0711202e08b15.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/{_app-d4f59c13cb550ff4.js → _app-fc89ce7bed454c84.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/{add-systems-fac606150b65d494.js → add-systems-d258f0c25fa020bf.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/consent/{privacy-experience-d6909fbd52309a89.js → privacy-experience-c946b33b0322b8ad.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/consent/{privacy-notices-e7acf6d9d30b1fd9.js → privacy-notices-ea57f9d6ad17e957.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/consent/{reporting-100234c23a85d235.js → reporting-788cf0e34829af46.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/{data-catalog-fffd4942be7760dd.js → data-catalog-900004e402c31797.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/action-center/[monitorId]/{[systemId]-df8512ccd0ea9829.js → [systemId]-b66831fdafcdf67c.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/{activity-8aeded3289d61405.js → activity-11b3ce9f61d9bfe9.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/dataset/{new-4d4a31d0186a4a5b.js → new-803c1b577ab17ae3.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/{dataset-29317d18ce34adfe.js → dataset-fa743ddc7f89d76b.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/datastore-connection/{[id]-14c57e5069e9cccd.js → [id]-bbe1ca2793798e6b.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/datastore-connection/{new-4e0057c72fac3a9e.js → new-abc17fef69cd951b.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/{datastore-connection-60a01ede4d8b56fd.js → datastore-connection-a78a73b65929853a.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/{index-b70def65e264270e.js → index-bfaacdb55a5a6c9f.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/integrations/[id]-d4329043219fed9b.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/privacy-requests/{[id]-1bdec4c3e51f5199.js → [id]-fe765154315782cf.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/privacy-requests/configure/{messaging-5e2687ab5ab10275.js → messaging-f5f7a8069909ef24.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/privacy-requests/configure/{storage-2914aade73dcaecc.js → storage-9f7eaad05e5b9292.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/{privacy-requests-dea4dd41db4d382b.js → privacy-requests-d85c0d16ba09ba35.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/reporting/{datamap-0da40a92590792af.js → datamap-afedc48ef4e7f858.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/settings/consent-89524101b7279f6e.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/settings/{custom-fields-dfcd7a4b6aa773bd.js → custom-fields-52d030b1db2ca1b9.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/settings/{organization-0e0aa552f520f913.js → organization-a08693d0d1e10bc8.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/systems/configure/[id]/{test-datasets-1d83d5178b3eb216.js → test-datasets-151571cff4e85894.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/{systems-8490aaaee9d76a4a.js → systems-abd68fc5ddde5482.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/{taxonomy-be1ffe267b1602e1.js → taxonomy-16b4d75c49276add.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/user-management/profile/{[id]-c0378fd1a26a71da.js → [id]-78eaf933f755bfe8.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/{user-management-3ca3c687e72d1364.js → user-management-6c9ad62479a7d03e.js} +1 -1
- fides/ui-build/static/admin/add-systems/manual.html +1 -1
- fides/ui-build/static/admin/add-systems/multiple.html +1 -1
- fides/ui-build/static/admin/add-systems.html +1 -1
- fides/ui-build/static/admin/ant-poc.html +1 -1
- fides/ui-build/static/admin/consent/configure/add-vendors.html +1 -1
- fides/ui-build/static/admin/consent/configure.html +1 -1
- fides/ui-build/static/admin/consent/privacy-experience/[id].html +1 -1
- fides/ui-build/static/admin/consent/privacy-experience/new.html +1 -1
- fides/ui-build/static/admin/consent/privacy-experience.html +1 -1
- fides/ui-build/static/admin/consent/privacy-notices/[id].html +1 -1
- fides/ui-build/static/admin/consent/privacy-notices/new.html +1 -1
- fides/ui-build/static/admin/consent/privacy-notices.html +1 -1
- fides/ui-build/static/admin/consent/properties.html +1 -1
- fides/ui-build/static/admin/consent/reporting.html +1 -1
- fides/ui-build/static/admin/consent.html +1 -1
- fides/ui-build/static/admin/data-catalog/[systemId]/projects/[projectUrn]/[resourceUrn].html +1 -1
- fides/ui-build/static/admin/data-catalog/[systemId]/projects/[projectUrn].html +1 -1
- fides/ui-build/static/admin/data-catalog/[systemId]/projects.html +1 -1
- fides/ui-build/static/admin/data-catalog/[systemId]/resources/[resourceUrn].html +1 -1
- fides/ui-build/static/admin/data-catalog/[systemId]/resources.html +1 -1
- fides/ui-build/static/admin/data-catalog.html +1 -1
- fides/ui-build/static/admin/data-discovery/action-center/[monitorId]/[systemId].html +1 -1
- fides/ui-build/static/admin/data-discovery/action-center/[monitorId].html +1 -1
- fides/ui-build/static/admin/data-discovery/action-center.html +1 -1
- fides/ui-build/static/admin/data-discovery/activity.html +1 -1
- fides/ui-build/static/admin/data-discovery/detection/[resourceUrn].html +1 -1
- fides/ui-build/static/admin/data-discovery/detection.html +1 -1
- fides/ui-build/static/admin/data-discovery/discovery/[resourceUrn].html +1 -1
- fides/ui-build/static/admin/data-discovery/discovery.html +1 -1
- fides/ui-build/static/admin/datamap.html +1 -1
- fides/ui-build/static/admin/dataset/[datasetId]/[collectionName]/[...subfieldNames].html +1 -1
- fides/ui-build/static/admin/dataset/[datasetId]/[collectionName].html +1 -1
- fides/ui-build/static/admin/dataset/[datasetId].html +1 -1
- fides/ui-build/static/admin/dataset/new.html +1 -1
- fides/ui-build/static/admin/dataset.html +1 -1
- fides/ui-build/static/admin/datastore-connection/[id].html +1 -1
- fides/ui-build/static/admin/datastore-connection/new.html +1 -1
- fides/ui-build/static/admin/datastore-connection.html +1 -1
- fides/ui-build/static/admin/index.html +1 -1
- fides/ui-build/static/admin/integrations/[id].html +1 -1
- fides/ui-build/static/admin/integrations.html +1 -1
- fides/ui-build/static/admin/lib/fides-ext-gpp.js +1 -1
- fides/ui-build/static/admin/lib/fides-headless.js +1 -1
- fides/ui-build/static/admin/lib/fides-tcf.js +3 -3
- fides/ui-build/static/admin/lib/fides.js +2 -2
- fides/ui-build/static/admin/login/[provider].html +1 -1
- fides/ui-build/static/admin/login.html +1 -1
- fides/ui-build/static/admin/messaging/[id].html +1 -1
- fides/ui-build/static/admin/messaging/add-template.html +1 -1
- fides/ui-build/static/admin/messaging.html +1 -1
- fides/ui-build/static/admin/privacy-requests/[id].html +1 -1
- fides/ui-build/static/admin/privacy-requests/configure/messaging.html +1 -1
- fides/ui-build/static/admin/privacy-requests/configure/storage.html +1 -1
- fides/ui-build/static/admin/privacy-requests/configure.html +1 -1
- fides/ui-build/static/admin/privacy-requests.html +1 -1
- fides/ui-build/static/admin/properties/[id].html +1 -1
- fides/ui-build/static/admin/properties/add-property.html +1 -1
- fides/ui-build/static/admin/properties.html +1 -1
- fides/ui-build/static/admin/reporting/datamap.html +1 -1
- fides/ui-build/static/admin/settings/about.html +1 -1
- fides/ui-build/static/admin/settings/consent.html +1 -1
- fides/ui-build/static/admin/settings/custom-fields.html +1 -1
- fides/ui-build/static/admin/settings/domain-records.html +1 -1
- fides/ui-build/static/admin/settings/domains.html +1 -1
- fides/ui-build/static/admin/settings/email-templates.html +1 -1
- fides/ui-build/static/admin/settings/locations.html +1 -1
- fides/ui-build/static/admin/settings/organization.html +1 -1
- fides/ui-build/static/admin/settings/regulations.html +1 -1
- fides/ui-build/static/admin/systems/configure/[id]/test-datasets.html +1 -1
- fides/ui-build/static/admin/systems/configure/[id].html +1 -1
- fides/ui-build/static/admin/systems.html +1 -1
- fides/ui-build/static/admin/taxonomy.html +1 -1
- fides/ui-build/static/admin/user-management/new.html +1 -1
- fides/ui-build/static/admin/user-management/profile/[id].html +1 -1
- fides/ui-build/static/admin/user-management.html +1 -1
- fides/api/alembic/migrations/versions/67d01c4e124e_add_reject_all_mechanism_to_privacy_.py +0 -56
- fides/service/error_handling/__init__.py +0 -0
- fides/service/error_handling/error_handler.py +0 -202
- fides/ui-build/static/admin/_next/static/chunks/1376-98cbf3789b9145c3.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/3412-da7ad82093c5b879.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/integrations/[id]-528c98747299d138.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/settings/consent-3ac1e5d3de5dd4a7.js +0 -1
- {ethyca_fides-2.58.1b5.dist-info → ethyca_fides-2.58.2.dist-info}/LICENSE +0 -0
- {ethyca_fides-2.58.1b5.dist-info → ethyca_fides-2.58.2.dist-info}/WHEEL +0 -0
- {ethyca_fides-2.58.1b5.dist-info → ethyca_fides-2.58.2.dist-info}/entry_points.txt +0 -0
- {ethyca_fides-2.58.1b5.dist-info → ethyca_fides-2.58.2.dist-info}/top_level.txt +0 -0
- /fides/ui-build/static/admin/_next/static/{ImUuWMsloiAWNWbICVyCj → 7ef43wSyz6KNgQTInQ9Ih}/_ssgManifest.js +0 -0
- /fides/ui-build/static/admin/_next/static/chunks/{4723-1dd1d16f404d56a2.js → 4723-0a3c5e2ce143a7d0.js} +0 -0
- /fides/ui-build/static/admin/_next/static/chunks/{5826-ef0aa43ffad83acc.js → 5826-e5dcb4e68cfe6289.js} +0 -0
- /fides/ui-build/static/admin/_next/static/chunks/pages/consent/{configure-a4e636eecaba5324.js → configure-723cc3d4f5740ea6.js} +0 -0
- /fides/ui-build/static/admin/_next/static/chunks/pages/settings/{domain-records-72ec54ee8755a503.js → domain-records-fa42d8f18df44927.js} +0 -0
- /fides/ui-build/static/admin/_next/static/chunks/pages/systems/configure/{[id]-8aae66669bdc0883.js → [id]-4f5a28226575c976.js} +0 -0
@@ -1 +1 @@
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2828],{85082:function(e,t,i){(window.__NEXT_P=window.__NEXT_P||[]).push(["/settings/organization",function(){return i(5417)}])},77213:function(e,t,i){"use strict";i.d(t,{Z:function(){return p}});var n=i(24246),r=i(77181),a=i(88038),s=i.n(a),o=i(86677);i(27378);var l=i(25980),d=i(90867),c=i(77830),u=()=>{let e=(0,o.useRouter)();return(0,n.jsx)(r.xuv,{bg:"gray.50",border:"1px solid",borderColor:"blue.400",borderRadius:"md",justifyContent:"space-between",p:5,mb:5,mt:5,children:(0,n.jsxs)(r.xuv,{children:[(0,n.jsxs)(r.Kqy,{direction:{base:"column",sm:"row"},justifyContent:"space-between",children:[(0,n.jsx)(r.xvT,{fontWeight:"semibold",children:"Configure your storage and messaging provider"}),(0,n.jsx)(r.wpx,{onClick:()=>{e.push(c.fz)},children:"Configure"})]}),(0,n.jsxs)(r.xvT,{children:["Before Fides can process your privacy requests we need two simple steps to configure your storage and email client."," "]})]})})},p=e=>{let{children:t,title:i,padded:a=!0,mainProps:c}=e,p=(0,l.hz)(),x=(0,o.useRouter)(),m="/privacy-requests"===x.pathname||"/datastore-connection"===x.pathname,f=!(p.flags.privacyRequestsConfiguration&&m),{data:h}=(0,d.JE)(void 0,{skip:f}),{data:v}=(0,d.PW)(void 0,{skip:f}),g=p.flags.privacyRequestsConfiguration&&(!h||!v)&&m;return(0,n.jsxs)(r.kCb,{"data-testid":i,direction:"column",h:"100vh",children:[(0,n.jsxs)(s(),{children:[(0,n.jsxs)("title",{children:["Fides Admin UI - ",i]}),(0,n.jsx)("meta",{name:"description",content:"Privacy Engineering Platform"}),(0,n.jsx)("link",{rel:"icon",href:"/favicon.ico"})]}),(0,n.jsxs)(r.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",...c,children:[g?(0,n.jsx)(u,{}):null,t]})]})}},58754:function(e,t,i){"use strict";var n=i(24246),r=i(77181),a=i(70788);t.Z=e=>{let{heading:t,breadcrumbItems:i,isSticky:s=!0,children:o,rightContent:l,style:d,...c}=e;return(0,n.jsxs)("div",{...c,style:s?{position:"sticky",top:"-24px",paddingTop:"24px",paddingBottom:"24px",paddingLeft:"40px",marginLeft:"-40px",paddingRight:"40px",marginRight:"-40px",marginTop:"-24px",left:0,zIndex:20,backgroundColor:"white",...d}:{paddingBottom:"24px",...d},children:[(0,n.jsxs)(r.jqI,{justify:"space-between",children:["string"==typeof t?(0,n.jsx)(r.X6q,{className:i||o?"pb-4":void 0,fontSize:"2xl","data-testid":"page-heading",children:t}):t,l&&(0,n.jsx)("div",{"data-testid":"page-header-right-content",children:l})]}),!!i&&(0,n.jsx)(a.m,{className:o?"pb-4":void 0,items:i,"data-testid":"page-breadcrumb"}),o]})}},19904:function(e,t,i){"use strict";i.d(t,{Tg:function(){return s}});var n=i(24246),r=i(16134),a=i(31793);let s=e=>(0,r.C)(a.uu).filter(t=>e.includes(t)).length>0;t.ZP=e=>{let{scopes:t,children:i}=e;return s(t)?(0,n.jsx)(n.Fragment,{children:i}):null}},97181:function(e,t,i){"use strict";i.d(t,{d:function(){return d}});var n=i(24246),r=i(77181),a=i(34090),s=i(27378),o=i(91613),l=i(40324);let d=e=>{let{name:t,label:i,labelProps:d,tooltip:c,isRequired:u,layout:p="inline",...x}=e,[m,f,{setValue:h}]=(0,a.U$)(t),v=!!(f.touched&&f.error),[g,j]=(0,s.useState)("");m.value||"tags"!==x.mode&&"multiple"!==x.mode||(m.value=[]),"tags"===x.mode&&"string"==typeof m.value&&(m.value=[m.value]);let y="tags"===x.mode?(e,t)=>e?e.value!==g||m.value.includes(g)?x.optionRender?x.optionRender(e,t):e.label:'Create "'.concat(g,'"'):void 0:x.optionRender||void 0,b=e=>{j(e),x.onSearch&&x.onSearch(e)},k=(e,t)=>{h(e),x.onChange&&x.onChange(e,t)};return"inline"===p?(0,n.jsx)(r.NIc,{isInvalid:v,isRequired:u,children:(0,n.jsxs)(r.rjZ,{templateColumns:i?"1fr 3fr":"1fr",children:[i?(0,n.jsx)(l.__,{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,{...m,id:x.id||t,"data-testid":"controlled-select-".concat(m.name),...x,optionRender:y,onSearch:"tags"===x.mode?b:void 0,onChange:k,value:m.value||void 0,status:v?"error":void 0}),(0,n.jsx)(l.Bc,{isInvalid:v,message:f.error,fieldName:m.name})]}),c?(0,n.jsx)(o.Z,{label:c}):null]})]})}):(0,n.jsx)(r.NIc,{isInvalid:v,isRequired:u,children:(0,n.jsxs)(r.gCW,{alignItems:"start",children:[(0,n.jsxs)(r.jqI,{align:"center",children:[i?(0,n.jsx)(l.__,{htmlFor:x.id||t,fontSize:"xs",my:0,mr:1,...d,children:i}):null,c?(0,n.jsx)(o.Z,{label:c}):null]}),(0,n.jsx)(r.WPr,{...m,id:x.id||t,"data-testid":"controlled-select-".concat(m.name),...x,optionRender:y,onSearch:"tags"===x.mode?b:void 0,onChange:k,value:m.value||void 0,status:v?"error":void 0}),(0,n.jsx)(l.Bc,{isInvalid:v,message:f.error,fieldName:m.name})]})})}},812:function(e,t,i){"use strict";i.d(t,{D4:function(){return a.D4},MM:function(){return p},Ot:function(){return d},c6:function(){return r},cj:function(){return m},e$:function(){return o},fn:function(){return l},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.",o=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 l(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:o(e,t.message)}}return t},p=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:""}},m=e=>{let t=e.split(".")[0];return"gacp"===t?"gacp":"gvl"===t?"gvl":"compass"}},8133:function(e,t,i){"use strict";var n=i(24246),r=i(77181);t.Z=e=>{let{title:t,children:i,isOpen:a,onClose:s,...o}=e;return(0,n.jsxs)(r.u_l,{isOpen:a,onClose:s,isCentered:!0,scrollBehavior:"inside",size:"xl",id:"add-modal",...o,children:[(0,n.jsx)(r.ZAr,{}),(0,n.jsxs)(r.hzk,{textAlign:"left",p:0,"data-testid":"add-modal-content",children:[(0,n.jsx)(r.xBx,{p:0,children:(0,n.jsx)(r.xuv,{backgroundColor:"gray.50",px:6,py:4,border:"1px",borderColor:"gray.200",borderTopRadius:6,display:"flex",justifyContent:"space-between",alignItems:"center",children:(0,n.jsx)(r.X6q,{as:"h3",size:"sm",children:t})})}),(0,n.jsx)(r.fef,{pb:4,overflow:"auto",children:i})]})]})}},70788:function(e,t,i){"use strict";i.d(t,{m:function(){return d}});var n=i(24246),r=i(77181),a=i(79894),s=i.n(a),o=i(27378);let{Text:l}=r.AntTypography,d=e=>{let{items:t,...i}=e,a=(0,o.useMemo)(()=>null==t?void 0:t.map((e,i)=>{let a=i===t.length-1,o={...e},d=o.onClick&&!o.href;return("string"==typeof o.title&&(o.title=(0,n.jsx)(l,{style:{color:"inherit",maxWidth:a?void 0:400},ellipsis:!a,children:o.title})),d)?o.title=(0,n.jsx)(r.wpx,{type:"text",size:"small",icon:o.icon,onClick:o.onClick,className:"ant-breadcrumb-link -mt-px px-1 text-inherit",children:o.title}):(o.icon&&(o.title=(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("span",{className:"anticon align-text-bottom",children:o.icon}),o.title]})),o.href&&o.title&&(o.title=(0,n.jsx)(s(),{href:o.href,className:"ant-breadcrumb-link",children:o.title}),delete o.href)),o}),[t]);return(0,n.jsx)(r.zrq,{items:a,...i})}},46628:function(e,t,i){"use strict";i.d(t,{MA:function(){return o},Vo:function(){return d},t5:function(){return l}});var n=i(24246),r=i(77181);let a=e=>{let{children:t,title:i="Success"}=e;return(0,n.jsxs)(r.xvT,{"data-testid":"toast-success-msg",children:[(0,n.jsxs)("strong",{children:[i,":"]})," ",t]})},s=e=>{let{children:t}=e;return(0,n.jsxs)(r.xvT,{"data-testid":"toast-error-msg",children:[(0,n.jsx)("strong",{children:"Error:"})," ",t]})},o={variant:"subtle",position:"top",description:"",duration:5e3,status:"success",isClosable:!0},l=(e,t)=>{let i=(0,n.jsx)(a,{title:t,children:e});return{...o,description:i}},d=e=>{let t=(0,n.jsx)(s,{children:e});return{...o,description:t,status:"error"}}},5417:function(e,t,i){"use strict";i.r(t),i.d(t,{default:function(){return I}});var n=i(24246),r=i(19904),a=i(77181),s=i(25980),o=i(77213),l=i(58754),d=i(8133),c=i(34090),u=i(27378),p=i(55484),x=i(40324),m=i(812),f=i(46628),h=i(76174),v=i(97181);let g={identifier:"",name:"",client_id:"",client_secret:""},j=e=>({...e}),y=p.Ry().shape({provider:p.Z_().required().label("Provider"),name:p.Z_().required().label("Name"),client_id:p.Z_().required().label("Client ID"),client_secret:p.Z_().required().label("Client Secret")});var b=e=>{let{openIDProvider:t,onSuccess:i,onClose:r}=e,[s]=(0,h.Qc)(),[o]=(0,h.oP)(),l=(0,u.useMemo)(()=>t?j(t):g,[t]),d=(0,a.pmc)(),p=async(e,t)=>{(e=>{if((0,m.D4)(e)){let t=(0,m.e$)(e.error,"An unexpected error occurred while editing the SSO provider. Please try again.");d((0,f.Vo)(t))}else d((0,f.t5)("SSO provider configuration saved.")),r(),t.resetForm({}),i&&i(e.data)})(l.id?await o(e):await s(e))},b=[{label:"Azure",value:"azure"},{label:"Google",value:"google"},{label:"Okta",value:"okta"},{label:"Custom",value:"custom"}],k=()=>(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(x.j0,{id:"authorization_url",name:"authorization_url",label:"Authorization URL",tooltip:"Authorization URL for your provider",variant:"stacked",isRequired:!0}),(0,n.jsx)(x.j0,{id:"token_url",name:"token_url",label:"Token URL",tooltip:"Token URL for your provider",variant:"stacked",isRequired:!0})]}),C=()=>(0,n.jsx)(x.j0,{id:"domain",name:"domain",label:"Domain",tooltip:"Domain for your Okta provider",variant:"stacked",isRequired:!0}),_=()=>(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(x.j0,{id:"authorization_url",name:"authorization_url",label:"Authorization URL",tooltip:"Authorization URL for your provider",variant:"stacked",isRequired:!0}),(0,n.jsx)(x.j0,{id:"token_url",name:"token_url",label:"Token URL",tooltip:"Token URL for your provider",variant:"stacked",isRequired:!0}),(0,n.jsx)(x.j0,{id:"userinfo_url",name:"user_info_url",label:"User Info URL",tooltip:"User Info URL for your provider",variant:"stacked",isRequired:!0})]});return(0,n.jsx)(c.J9,{initialValues:l,enableReinitialize:!0,onSubmit:p,validationSchema:y,children:e=>{let{dirty:t,isValid:i,values:s}=e;return(0,n.jsx)(c.l0,{"data-testid":"openIDProvider-form",children:(0,n.jsxs)(a.Kqy,{spacing:4,children:[(0,n.jsx)(v.d,{name:"provider",label:"Provider",options:b,layout:"stacked",isRequired:!0}),(0,n.jsx)(x.j0,{id:"identifier",name:"identifier",label:"Identifier",tooltip:"Unique identifier for your provider",variant:"stacked",isRequired:!0,disabled:!!l.id}),(0,n.jsx)(x.j0,{id:"name",name:"name",label:"Name",tooltip:"Display name for your provider",variant:"stacked",isRequired:!0}),(0,n.jsx)(x.j0,{id:"client_id",name:"client_id",label:"Client ID",type:"password",tooltip:"Client ID for your provider",variant:"stacked",isRequired:!0}),(0,n.jsx)(x.j0,{id:"client_secret",name:"client_secret",label:"Client secret",type:"password",tooltip:"Client secret for your provider",variant:"stacked",isRequired:!0}),"azure"===s.provider&&k(),"okta"===s.provider&&C(),"custom"===s.provider&&_(),(0,n.jsxs)(a.xuv,{textAlign:"right",children:[(0,n.jsx)(a.wpx,{htmlType:"button","data-testid":"cancel-btn",className:"mr-3",onClick:r,children:"Cancel"}),(0,n.jsx)(a.wpx,{htmlType:"submit",type:"primary",disabled:!t||!i,"data-testid":"save-btn",children:"Save"})]})]})})}})},k=e=>{let{isOpen:t,onClose:i}=e;return(0,n.jsx)(d.Z,{isOpen:t,onClose:i,title:"Add SSO Provider",children:(0,n.jsx)(b,{onClose:i})})},C=e=>{let{isOpen:t,onClose:i,openIDProvider:r}=e;return(0,n.jsx)(d.Z,{isOpen:t,onClose:i,title:"Edit SSO Provider",children:(0,n.jsx)(b,{openIDProvider:r,onClose:i})})},_=e=>{let{openIDProvider:t}=e,{onOpen:i,isOpen:r,onClose:s}=(0,a.qY0)(),{onOpen:o,isOpen:l,onClose:d}=(0,a.qY0)(),c=(0,a.pmc)(),[u]=(0,h.rB)(),p=async()=>{let e=await u(t.identifier);if((0,m.D4)(e)){c((0,f.Vo)((0,m.e$)(e.error))),d();return}c((0,f.t5)("SSO provider deleted successfully")),d()};return(0,n.jsxs)(a.xuv,{alignItems:"center",borderRadius:"lg",borderWidth:"1px",display:"flex",height:"74px",marginBottom:"24px",padding:2,children:[(0,n.jsxs)(a.xuv,{display:"flex",alignItems:"center",children:[(0,n.jsx)(a.Eep,{src:"/images/oauth-login/".concat(t.provider,".svg"),alt:"".concat(t.provider," icon"),width:"40px",height:"40px"}),(0,n.jsxs)(a.xuv,{display:"flex",flexDirection:"column",children:[(0,n.jsx)(a.xvT,{fontSize:"medium",fontWeight:"bold",marginLeft:"16px",children:t.name}),(0,n.jsx)(a.xvT,{fontSize:"medium",marginLeft:"16px",children:t.identifier})]})]}),(0,n.jsxs)(a.xuv,{flexGrow:1,display:"flex",justifyContent:"flex-end",children:[(0,n.jsx)(a.wpx,{className:"mr-3",onClick:o,"data-testid":"remove-sso-provider-btn",children:"Remove"}),(0,n.jsx)(a.wpx,{className:"mr-3",onClick:i,"data-testid":"edit-sso-provider-btn",children:"Edit"})]}),(0,n.jsx)(C,{isOpen:r,onClose:s,openIDProvider:t}),(0,n.jsx)(a.cVQ,{isOpen:l,onClose:d,onConfirm:p,title:"Remove SSO provider",message:(0,n.jsx)(a.xvT,{children:"You are about to permanently remove this SSO provider. Are you sure you would like to continue?"})})]})},R=()=>{let{onOpen:e,isOpen:t,onClose:i}=(0,a.qY0)(),{data:r}=(0,h.qv)();return(0,n.jsxs)(a.xuv,{maxWidth:"600px",marginTop:"40px",children:[(0,n.jsxs)(a.X6q,{marginBottom:4,fontSize:"lg",display:"flex",justifyContent:"space-between",children:["SSO Providers",r&&r.length<5&&(0,n.jsx)(a.wpx,{onClick:e,"data-testid":"add-sso-provider-btn",children:"Add SSO Provider"})]}),(0,n.jsx)(a.xvT,{marginBottom:"30px",fontSize:"sm",children:"Use this area to add and manage SSO providers for you organization. Select “Add SSO provider” to add a new provider."}),null==r?void 0:r.map(e=>(0,n.jsx)(_,{openIDProvider:e},e.identifier)),(0,n.jsx)(k,{isOpen:t,onClose:i})]})},S=i(83265);let w={description:"",fides_key:S.Av,name:""},z=e=>({...e}),q=e=>({description:e.description,fides_key:e.fides_key,name:e.name}),O=p.Ry().shape({description:p.Z_().required().label("Description"),fides_key:p.Z_().required().label("Organization Fides Key"),name:p.Z_().required().label("Name")}),A=e=>{let{organization:t,onSuccess:i}=e,[r,s]=(0,S.$f)(),o=(0,u.useMemo)(()=>t?z(t):w,[t]),l=(0,a.pmc)(),d=async(e,t)=>{let n=q(e);(r=>{if((0,m.D4)(r)){let e=(0,m.e$)(r.error,"An unexpected error occurred while editing the organization. Please try again.");l((0,f.Vo)(e))}else l((0,f.t5)("Organization configuration saved.")),t.resetForm({values:e}),i&&i(n)})(await r(n))},p=!t||s.isLoading;return(0,n.jsx)(c.J9,{initialValues:o,enableReinitialize:!0,onSubmit:d,validationSchema:O,children:e=>{let{dirty:t,isValid:i}=e;return(0,n.jsx)(c.l0,{"data-testid":"organization-form",children:(0,n.jsxs)(a.Kqy,{spacing:4,children:[(0,n.jsx)(x.j0,{id:"fides_key",name:"fides_key",label:"Fides Key",disabled:!0,tooltip:"A unique key that identifies your organization. Not editable via UI.",variant:"stacked"}),(0,n.jsx)(x.j0,{id:"name",name:"name",label:"Name",disabled:p,tooltip:"User-friendly name for your organization, used in messaging to end-users and other public locations.",variant:"stacked"}),(0,n.jsx)(x.j0,{id:"description",name:"description",label:"Description",disabled:p,tooltip:"Short description of your organization, your services, etc.",variant:"stacked"}),(0,n.jsx)(a.xuv,{textAlign:"right",children:(0,n.jsx)(a.wpx,{htmlType:"submit",type:"primary",disabled:p||!t||!i,loading:p,"data-testid":"save-btn",children:"Save"})})]})})}})};var N=i(28120),I=()=>{let{data:e}=(0,S.GQ)(S.Av),{plus:t,flags:{ssoAuthentication:i}}=(0,s.hz)();return(0,n.jsx)(o.Z,{title:"Organization",children:(0,n.jsxs)(a.xuv,{"data-testid":"organization-management",children:[(0,n.jsx)(l.Z,{heading:"Organization Management"}),(0,n.jsxs)(a.xuv,{maxWidth:"600px",children:[(0,n.jsx)(a.xvT,{pb:6,fontSize:"sm",children:"Please use this section to manage your organization‘s details, including key information that will be recorded in the RoPA (Record of Processing Activities)."}),(0,n.jsx)(a.xuv,{background:"gray.50",padding:2,children:(0,n.jsx)(A,{organization:e})}),i&&t&&(0,n.jsx)(r.ZP,{scopes:[N.Sh.OPENID_PROVIDER_CREATE],children:(0,n.jsx)(R,{})})]})]})})}},19043:function(e,t,i){"use strict";i.d(t,{Bw:function(){return s},D4:function(){return r},Dy:function(){return l},XD:function(){return d},cz:function(){return c},hE:function(){return o},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),o=e=>(0,n.Ln)({detail:"string"},e),l=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){"use strict";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)}},function(e){e.O(0,[2888,9774,179],function(){return e(e.s=85082)}),_N_E=e.O()}]);
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2828],{85082:function(e,t,i){(window.__NEXT_P=window.__NEXT_P||[]).push(["/settings/organization",function(){return i(5417)}])},77213:function(e,t,i){"use strict";i.d(t,{Z:function(){return p}});var n=i(24246),r=i(77181),a=i(88038),s=i.n(a),o=i(86677);i(27378);var l=i(25980),d=i(90867),c=i(77830),u=()=>{let e=(0,o.useRouter)();return(0,n.jsx)(r.xuv,{bg:"gray.50",border:"1px solid",borderColor:"blue.400",borderRadius:"md",justifyContent:"space-between",p:5,mb:5,mt:5,children:(0,n.jsxs)(r.xuv,{children:[(0,n.jsxs)(r.Kqy,{direction:{base:"column",sm:"row"},justifyContent:"space-between",children:[(0,n.jsx)(r.xvT,{fontWeight:"semibold",children:"Configure your storage and messaging provider"}),(0,n.jsx)(r.wpx,{onClick:()=>{e.push(c.fz)},children:"Configure"})]}),(0,n.jsxs)(r.xvT,{children:["Before Fides can process your privacy requests we need two simple steps to configure your storage and email client."," "]})]})})},p=e=>{let{children:t,title:i,padded:a=!0,mainProps:c}=e,p=(0,l.hz)(),x=(0,o.useRouter)(),m="/privacy-requests"===x.pathname||"/datastore-connection"===x.pathname,f=!(p.flags.privacyRequestsConfiguration&&m),{data:h}=(0,d.JE)(void 0,{skip:f}),{data:v}=(0,d.PW)(void 0,{skip:f}),g=p.flags.privacyRequestsConfiguration&&(!h||!v)&&m;return(0,n.jsxs)(r.kCb,{"data-testid":i,direction:"column",h:"100vh",children:[(0,n.jsxs)(s(),{children:[(0,n.jsxs)("title",{children:["Fides Admin UI - ",i]}),(0,n.jsx)("meta",{name:"description",content:"Privacy Engineering Platform"}),(0,n.jsx)("link",{rel:"icon",href:"/favicon.ico"})]}),(0,n.jsxs)(r.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",...c,children:[g?(0,n.jsx)(u,{}):null,t]})]})}},58754:function(e,t,i){"use strict";var n=i(24246),r=i(77181),a=i(70788);t.Z=e=>{let{heading:t,breadcrumbItems:i,isSticky:s=!0,children:o,rightContent:l,style:d,...c}=e;return(0,n.jsxs)("div",{...c,style:s?{position:"sticky",top:"-24px",paddingTop:"24px",paddingBottom:"24px",paddingLeft:"40px",marginLeft:"-40px",paddingRight:"40px",marginRight:"-40px",marginTop:"-24px",left:0,zIndex:20,backgroundColor:"white",...d}:{paddingBottom:"24px",...d},children:[(0,n.jsxs)(r.jqI,{justify:"space-between",children:["string"==typeof t?(0,n.jsx)(r.X6q,{className:i||o?"pb-4":void 0,fontSize:"2xl","data-testid":"page-heading",children:t}):t,l&&(0,n.jsx)("div",{"data-testid":"page-header-right-content",children:l})]}),!!i&&(0,n.jsx)(a.m,{className:o?"pb-4":void 0,items:i,"data-testid":"page-breadcrumb"}),o]})}},19904:function(e,t,i){"use strict";i.d(t,{Tg:function(){return s}});var n=i(24246),r=i(16134),a=i(31793);let s=e=>(0,r.C)(a.uu).filter(t=>e.includes(t)).length>0;t.ZP=e=>{let{scopes:t,children:i}=e;return s(t)?(0,n.jsx)(n.Fragment,{children:i}):null}},97181:function(e,t,i){"use strict";i.d(t,{d:function(){return d}});var n=i(24246),r=i(77181),a=i(34090),s=i(27378),o=i(91613),l=i(40324);let d=e=>{let{name:t,label:i,labelProps:d,tooltip:c,isRequired:u,layout:p="inline",...x}=e,[m,f,{setValue:h}]=(0,a.U$)(t),v=!!(f.touched&&f.error),[g,j]=(0,s.useState)("");m.value||"tags"!==x.mode&&"multiple"!==x.mode||(m.value=[]),"tags"===x.mode&&"string"==typeof m.value&&(m.value=[m.value]);let y="tags"===x.mode?(e,t)=>e?e.value!==g||m.value.includes(g)?x.optionRender?x.optionRender(e,t):e.label:'Create "'.concat(g,'"'):void 0:x.optionRender||void 0,b=e=>{j(e),x.onSearch&&x.onSearch(e)},k=(e,t)=>{h(e),x.onChange&&x.onChange(e,t)};return"inline"===p?(0,n.jsx)(r.NIc,{isInvalid:v,isRequired:u,children:(0,n.jsxs)(r.rjZ,{templateColumns:i?"1fr 3fr":"1fr",children:[i?(0,n.jsx)(l.__,{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,{...m,id:x.id||t,"data-testid":"controlled-select-".concat(m.name),...x,optionRender:y,onSearch:"tags"===x.mode?b:void 0,onChange:k,value:m.value||void 0,status:v?"error":void 0}),(0,n.jsx)(l.Bc,{isInvalid:v,message:f.error,fieldName:m.name})]}),c?(0,n.jsx)(o.Z,{label:c}):null]})]})}):(0,n.jsx)(r.NIc,{isInvalid:v,isRequired:u,children:(0,n.jsxs)(r.gCW,{alignItems:"start",children:[(0,n.jsxs)(r.jqI,{align:"center",children:[i?(0,n.jsx)(l.__,{htmlFor:x.id||t,fontSize:"xs",my:0,mr:1,...d,children:i}):null,c?(0,n.jsx)(o.Z,{label:c}):null]}),(0,n.jsx)(r.WPr,{...m,id:x.id||t,"data-testid":"controlled-select-".concat(m.name),...x,optionRender:y,onSearch:"tags"===x.mode?b:void 0,onChange:k,value:m.value||void 0,status:v?"error":void 0}),(0,n.jsx)(l.Bc,{isInvalid:v,message:f.error,fieldName:m.name})]})})}},812:function(e,t,i){"use strict";i.d(t,{D4:function(){return a.D4},MM:function(){return p},Ot:function(){return d},c6:function(){return r},cj:function(){return m},e$:function(){return o},fn:function(){return l},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.",o=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 l(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:o(e,t.message)}}return t},p=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:""}},m=e=>{let t=e.split(".")[0];return"gacp"===t?"gacp":"gvl"===t?"gvl":"compass"}},8133:function(e,t,i){"use strict";var n=i(24246),r=i(77181);t.Z=e=>{let{title:t,children:i,isOpen:a,onClose:s,...o}=e;return(0,n.jsxs)(r.u_l,{isOpen:a,onClose:s,isCentered:!0,scrollBehavior:"inside",size:"xl",id:"add-modal",...o,children:[(0,n.jsx)(r.ZAr,{}),(0,n.jsxs)(r.hzk,{textAlign:"left",p:0,"data-testid":"add-modal-content",children:[(0,n.jsx)(r.xBx,{p:0,children:(0,n.jsx)(r.xuv,{backgroundColor:"gray.50",px:6,py:4,border:"1px",borderColor:"gray.200",borderTopRadius:6,display:"flex",justifyContent:"space-between",alignItems:"center",children:(0,n.jsx)(r.X6q,{as:"h3",size:"sm",children:t})})}),(0,n.jsx)(r.fef,{pb:4,overflow:"auto",children:i})]})]})}},70788:function(e,t,i){"use strict";i.d(t,{m:function(){return d}});var n=i(24246),r=i(77181),a=i(79894),s=i.n(a),o=i(27378);let{Text:l}=r.AntTypography,d=e=>{let{items:t,...i}=e,a=(0,o.useMemo)(()=>null==t?void 0:t.map((e,i)=>{let a=i===t.length-1,o={...e},d=o.onClick&&!o.href;return("string"==typeof o.title&&(o.title=(0,n.jsx)(l,{style:{color:"inherit",maxWidth:a?void 0:400},ellipsis:!a,children:o.title})),d)?o.title=(0,n.jsx)(r.wpx,{type:"text",size:"small",icon:o.icon,onClick:o.onClick,className:"ant-breadcrumb-link -mt-px px-1 text-inherit",children:o.title}):(o.icon&&(o.title=(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("span",{className:"anticon align-text-bottom",children:o.icon}),o.title]})),o.href&&o.title&&(o.title=(0,n.jsx)(s(),{href:o.href,className:"ant-breadcrumb-link",children:o.title}),delete o.href)),o}),[t]);return(0,n.jsx)(r.zrq,{items:a,...i})}},46628:function(e,t,i){"use strict";i.d(t,{MA:function(){return o},Vo:function(){return d},t5:function(){return l}});var n=i(24246),r=i(77181);let a=e=>{let{children:t,title:i="Success"}=e;return(0,n.jsxs)(r.xvT,{"data-testid":"toast-success-msg",children:[(0,n.jsxs)("strong",{children:[i,":"]})," ",t]})},s=e=>{let{children:t}=e;return(0,n.jsxs)(r.xvT,{"data-testid":"toast-error-msg",children:[(0,n.jsx)("strong",{children:"Error:"})," ",t]})},o={variant:"subtle",position:"top",description:"",duration:5e3,status:"success",isClosable:!0},l=(e,t)=>{let i=(0,n.jsx)(a,{title:t,children:e});return{...o,description:i}},d=e=>{let t=(0,n.jsx)(s,{children:e});return{...o,description:t,status:"error"}}},5417:function(e,t,i){"use strict";i.r(t),i.d(t,{default:function(){return I}});var n=i(24246),r=i(19904),a=i(77181),s=i(25980),o=i(77213),l=i(58754),d=i(8133),c=i(34090),u=i(27378),p=i(55484),x=i(40324),m=i(812),f=i(46628),h=i(76174),v=i(97181);let g={identifier:"",name:"",client_id:"",client_secret:""},j=e=>({...e}),y=p.Ry().shape({provider:p.Z_().required().label("Provider"),name:p.Z_().required().label("Name"),client_id:p.Z_().required().label("Client ID"),client_secret:p.Z_().required().label("Client Secret")});var b=e=>{let{openIDProvider:t,onSuccess:i,onClose:r}=e,[s]=(0,h.Qc)(),[o]=(0,h.oP)(),l=(0,u.useMemo)(()=>t?j(t):g,[t]),d=(0,a.pmc)(),p=async(e,t)=>{(e=>{if((0,m.D4)(e)){let t=(0,m.e$)(e.error,"An unexpected error occurred while editing the SSO provider. Please try again.");d((0,f.Vo)(t))}else d((0,f.t5)("SSO provider configuration saved.")),r(),t.resetForm({}),i&&i(e.data)})(l.id?await o(e):await s(e))},b=[{label:"Azure",value:"azure"},{label:"Google",value:"google"},{label:"Okta",value:"okta"},{label:"Custom",value:"custom"}],k=()=>(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(x.j0,{id:"authorization_url",name:"authorization_url",label:"Authorization URL",tooltip:"Authorization URL for your provider",variant:"stacked",isRequired:!0}),(0,n.jsx)(x.j0,{id:"token_url",name:"token_url",label:"Token URL",tooltip:"Token URL for your provider",variant:"stacked",isRequired:!0})]}),C=()=>(0,n.jsx)(x.j0,{id:"domain",name:"domain",label:"Domain",tooltip:"Domain for your Okta provider",variant:"stacked",isRequired:!0}),_=()=>(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(x.j0,{id:"authorization_url",name:"authorization_url",label:"Authorization URL",tooltip:"Authorization URL for your provider",variant:"stacked",isRequired:!0}),(0,n.jsx)(x.j0,{id:"token_url",name:"token_url",label:"Token URL",tooltip:"Token URL for your provider",variant:"stacked",isRequired:!0}),(0,n.jsx)(x.j0,{id:"userinfo_url",name:"user_info_url",label:"User Info URL",tooltip:"User Info URL for your provider",variant:"stacked",isRequired:!0})]});return(0,n.jsx)(c.J9,{initialValues:l,enableReinitialize:!0,onSubmit:p,validationSchema:y,children:e=>{let{dirty:t,isValid:i,values:s}=e;return(0,n.jsx)(c.l0,{"data-testid":"openIDProvider-form",children:(0,n.jsxs)(a.Kqy,{spacing:4,children:[(0,n.jsx)(v.d,{name:"provider",label:"Provider",options:b,layout:"stacked",isRequired:!0}),(0,n.jsx)(x.j0,{id:"identifier",name:"identifier",label:"Identifier",tooltip:"Unique identifier for your provider",variant:"stacked",isRequired:!0,disabled:!!l.id}),(0,n.jsx)(x.j0,{id:"name",name:"name",label:"Name",tooltip:"Display name for your provider",variant:"stacked",isRequired:!0}),(0,n.jsx)(x.j0,{id:"client_id",name:"client_id",label:"Client ID",type:"password",tooltip:"Client ID for your provider",variant:"stacked",isRequired:!0}),(0,n.jsx)(x.j0,{id:"client_secret",name:"client_secret",label:"Client secret",type:"password",tooltip:"Client secret for your provider",variant:"stacked",isRequired:!0}),"azure"===s.provider&&k(),"okta"===s.provider&&C(),"custom"===s.provider&&_(),(0,n.jsxs)(a.xuv,{textAlign:"right",children:[(0,n.jsx)(a.wpx,{htmlType:"button","data-testid":"cancel-btn",className:"mr-3",onClick:r,children:"Cancel"}),(0,n.jsx)(a.wpx,{htmlType:"submit",type:"primary",disabled:!t||!i,"data-testid":"save-btn",children:"Save"})]})]})})}})},k=e=>{let{isOpen:t,onClose:i}=e;return(0,n.jsx)(d.Z,{isOpen:t,onClose:i,title:"Add SSO Provider",children:(0,n.jsx)(b,{onClose:i})})},C=e=>{let{isOpen:t,onClose:i,openIDProvider:r}=e;return(0,n.jsx)(d.Z,{isOpen:t,onClose:i,title:"Edit SSO Provider",children:(0,n.jsx)(b,{openIDProvider:r,onClose:i})})},_=e=>{let{openIDProvider:t}=e,{onOpen:i,isOpen:r,onClose:s}=(0,a.qY0)(),{onOpen:o,isOpen:l,onClose:d}=(0,a.qY0)(),c=(0,a.pmc)(),[u]=(0,h.rB)(),p=async()=>{let e=await u(t.identifier);if((0,m.D4)(e)){c((0,f.Vo)((0,m.e$)(e.error))),d();return}c((0,f.t5)("SSO provider deleted successfully")),d()};return(0,n.jsxs)(a.xuv,{alignItems:"center",borderRadius:"lg",borderWidth:"1px",display:"flex",height:"74px",marginBottom:"24px",padding:2,children:[(0,n.jsxs)(a.xuv,{display:"flex",alignItems:"center",children:[(0,n.jsx)(a.Eep,{src:"/images/oauth-login/".concat(t.provider,".svg"),alt:"".concat(t.provider," icon"),width:"40px",height:"40px"}),(0,n.jsxs)(a.xuv,{display:"flex",flexDirection:"column",children:[(0,n.jsx)(a.xvT,{fontSize:"medium",fontWeight:"bold",marginLeft:"16px",children:t.name}),(0,n.jsx)(a.xvT,{fontSize:"medium",marginLeft:"16px",children:t.identifier})]})]}),(0,n.jsxs)(a.xuv,{flexGrow:1,display:"flex",justifyContent:"flex-end",children:[(0,n.jsx)(a.wpx,{className:"mr-3",onClick:o,"data-testid":"remove-sso-provider-btn",children:"Remove"}),(0,n.jsx)(a.wpx,{className:"mr-3",onClick:i,"data-testid":"edit-sso-provider-btn",children:"Edit"})]}),(0,n.jsx)(C,{isOpen:r,onClose:s,openIDProvider:t}),(0,n.jsx)(a.cVQ,{isOpen:l,onClose:d,onConfirm:p,title:"Remove SSO provider",message:(0,n.jsx)(a.xvT,{children:"You are about to permanently remove this SSO provider. Are you sure you would like to continue?"})})]})},R=()=>{let{onOpen:e,isOpen:t,onClose:i}=(0,a.qY0)(),{data:r}=(0,h.qv)();return(0,n.jsxs)(a.xuv,{maxWidth:"600px",marginTop:"40px",children:[(0,n.jsxs)(a.X6q,{marginBottom:4,fontSize:"lg",display:"flex",justifyContent:"space-between",children:["SSO Providers",r&&r.length<5&&(0,n.jsx)(a.wpx,{onClick:e,"data-testid":"add-sso-provider-btn",children:"Add SSO Provider"})]}),(0,n.jsx)(a.xvT,{marginBottom:"30px",fontSize:"sm",children:"Use this area to add and manage SSO providers for you organization. Select “Add SSO provider” to add a new provider."}),null==r?void 0:r.map(e=>(0,n.jsx)(_,{openIDProvider:e},e.identifier)),(0,n.jsx)(k,{isOpen:t,onClose:i})]})},S=i(83265);let w={description:"",fides_key:S.Av,name:""},z=e=>({...e}),q=e=>({description:e.description,fides_key:e.fides_key,name:e.name}),O=p.Ry().shape({description:p.Z_().required().label("Description"),fides_key:p.Z_().required().label("Organization Fides Key"),name:p.Z_().required().label("Name")}),A=e=>{let{organization:t,onSuccess:i}=e,[r,s]=(0,S.$f)(),o=(0,u.useMemo)(()=>t?z(t):w,[t]),l=(0,a.pmc)(),d=async(e,t)=>{let n=q(e);(r=>{if((0,m.D4)(r)){let e=(0,m.e$)(r.error,"An unexpected error occurred while editing the organization. Please try again.");l((0,f.Vo)(e))}else l((0,f.t5)("Organization configuration saved.")),t.resetForm({values:e}),i&&i(n)})(await r(n))},p=!t||s.isLoading;return(0,n.jsx)(c.J9,{initialValues:o,enableReinitialize:!0,onSubmit:d,validationSchema:O,children:e=>{let{dirty:t,isValid:i}=e;return(0,n.jsx)(c.l0,{"data-testid":"organization-form",children:(0,n.jsxs)(a.Kqy,{spacing:4,children:[(0,n.jsx)(x.j0,{id:"fides_key",name:"fides_key",label:"Fides Key",disabled:!0,tooltip:"A unique key that identifies your organization. Not editable via UI.",variant:"stacked"}),(0,n.jsx)(x.j0,{id:"name",name:"name",label:"Name",disabled:p,tooltip:"User-friendly name for your organization, used in messaging to end-users and other public locations.",variant:"stacked"}),(0,n.jsx)(x.j0,{id:"description",name:"description",label:"Description",disabled:p,tooltip:"Short description of your organization, your services, etc.",variant:"stacked"}),(0,n.jsx)(a.xuv,{textAlign:"right",children:(0,n.jsx)(a.wpx,{htmlType:"submit",type:"primary",disabled:p||!t||!i,loading:p,"data-testid":"save-btn",children:"Save"})})]})})}})};var N=i(21702),I=()=>{let{data:e}=(0,S.GQ)(S.Av),{plus:t,flags:{ssoAuthentication:i}}=(0,s.hz)();return(0,n.jsx)(o.Z,{title:"Organization",children:(0,n.jsxs)(a.xuv,{"data-testid":"organization-management",children:[(0,n.jsx)(l.Z,{heading:"Organization Management"}),(0,n.jsxs)(a.xuv,{maxWidth:"600px",children:[(0,n.jsx)(a.xvT,{pb:6,fontSize:"sm",children:"Please use this section to manage your organization‘s details, including key information that will be recorded in the RoPA (Record of Processing Activities)."}),(0,n.jsx)(a.xuv,{background:"gray.50",padding:2,children:(0,n.jsx)(A,{organization:e})}),i&&t&&(0,n.jsx)(r.ZP,{scopes:[N.Sh.OPENID_PROVIDER_CREATE],children:(0,n.jsx)(R,{})})]})]})})}},19043:function(e,t,i){"use strict";i.d(t,{Bw:function(){return s},D4:function(){return r},Dy:function(){return l},XD:function(){return d},cz:function(){return c},hE:function(){return o},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),o=e=>(0,n.Ln)({detail:"string"},e),l=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){"use strict";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)}},function(e){e.O(0,[2888,9774,179],function(){return e(e.s=85082)}),_N_E=e.O()}]);
|
@@ -1 +1 @@
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1617],{54543:function(e,t,s){(window.__NEXT_P=window.__NEXT_P||[]).push(["/systems/configure/[id]/test-datasets",function(){return s(94010)}])},18225:function(e,t,s){"use strict";var n=s(24246),r=s(77181);t.Z=e=>{let{...t}=e;return(0,n.jsx)(r.kCb,{boxSize:"full",align:"center",justify:"center",children:(0,n.jsx)(r.$jN,{color:"primary",...t})})}},812:function(e,t,s){"use strict";s.d(t,{D4:function(){return i.D4},MM:function(){return f},Ot:function(){return c},c6:function(){return r},cj:function(){return h},e$:function(){return l},fn:function(){return o},iC:function(){return y},nU:function(){return d},tB:function(){return u}});var n,r,i=s(19043);let a="An unexpected error occurred. Please try again.",l=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:a;if((0,i.Bw)(e)){if((0,i.hE)(e.data))return e.data.detail;if((0,i.cz)(e.data)){var s;let t=null===(s=e.data.detail)||void 0===s?void 0:s[0];return"".concat(null==t?void 0:t.msg,": ").concat(null==t?void 0:t.loc)}if(409===e.status&&(0,i.Dy)(e.data)||404===e.status&&(0,i.XD)(e.data))return"".concat(e.data.detail.error," (").concat(e.data.detail.fides_key,")")}return t};function o(e){return"object"==typeof e&&null!=e&&"status"in e}function c(e){return"object"==typeof e&&null!=e&&"data"in e&&"string"==typeof e.data.detail}function u(e){return"object"==typeof e&&null!=e&&"data"in e&&Array.isArray(e.data.detail)}let d=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{status:500,message:a};if((0,i.oK)(e))return{status:e.originalStatus,message:e.data};if((0,i.Bw)(e)){let{status:s}=e;return{status:s,message:l(e,t.message)}}return t},f=e=>Object.entries(e).map(e=>({value:e[1],label:e[1]}));(n=r||(r={})).GVL="gvl",n.AC="gacp",n.COMPASS="compass";let y={gvl:{label:"GVL",fullName:"Global Vendor List"},gacp:{label:"AC",fullName:"Google Additional Consent List"},compass:{label:"",fullName:""}},h=e=>{let t=e.split(".")[0];return"gacp"===t?"gacp":"gvl"===t?"gvl":"compass"}},46628:function(e,t,s){"use strict";s.d(t,{MA:function(){return l},Vo:function(){return c},t5:function(){return o}});var n=s(24246),r=s(77181);let i=e=>{let{children:t,title:s="Success"}=e;return(0,n.jsxs)(r.xvT,{"data-testid":"toast-success-msg",children:[(0,n.jsxs)("strong",{children:[s,":"]})," ",t]})},a=e=>{let{children:t}=e;return(0,n.jsxs)(r.xvT,{"data-testid":"toast-error-msg",children:[(0,n.jsx)("strong",{children:"Error:"})," ",t]})},l={variant:"subtle",position:"top",description:"",duration:5e3,status:"success",isClosable:!0},o=(e,t)=>{let s=(0,n.jsx)(i,{title:t,children:e});return{...l,description:s}},c=e=>{let t=(0,n.jsx)(a,{children:e});return{...l,description:t,status:"error"}}},94010:function(e,t,s){"use strict";s.r(t),s.d(t,{default:function(){return M}});var n=s(24246),r=s(77181),i=s(86677),a=s(27378),l=s(16134),o=s(18225),c=s(77213),u=s(77830),d=s(58754),f=s(1315),y=s(66527),h=s(88340),p=s(812),m=s(46628),v=s(41207),g=s(41966),x=s(94725),j=s(88124);let b=e=>Array.isArray(e)?e.map(e=>b(e)).filter(e=>null!==e):e&&"object"==typeof e?Object.fromEntries(Object.entries(e).map(e=>{let[t,s]=e;return[t,b(s)]}).filter(e=>{let[,t]=e;return null!==t})):e,_=e=>{if(Array.isArray(e)){let t=e[0];if(!t)return"";let s=t.msg||"",n=t.loc?" (".concat(t.loc,")"):"";return"".concat(s).concat(n)}return e};var k=e=>{let{connectionKey:t}=e,s=(0,r.pmc)(),i=(0,l.T)(),[o]=(0,g.TG)(),[c,u]=(0,a.useState)(""),d=(0,l.C)(j.fD),f=(0,l.C)(j.lR),{data:k,isLoading:w,refetch:T}=(0,x.Eg)(t,{skip:!t}),{data:S,refetch:C}=(0,x.tW)({connectionKey:t,datasetKey:(null==d?void 0:d.fides_key)||"",policyKey:f},{skip:!t||!(null==d?void 0:d.fides_key)||!f});(0,a.useEffect)(()=>{S&&i((0,j.x0)(S.reachable))},[S,i]);let E=(0,a.useMemo)(()=>((null==k?void 0:k.items)||[]).map(e=>({value:e.fides_key,label:e.fides_key})),[null==k?void 0:k.items]);(0,a.useEffect)(()=>{if((null==k?void 0:k.items.length)&&(!d||!k.items.find(e=>e.fides_key===d.fides_key))){let e=k.items[0];i((0,j.w7)(e))}},[k,d,i]),(0,a.useEffect)(()=>{(null==d?void 0:d.ctl_dataset)&&u(y.ZP.dump(b(null==d?void 0:d.ctl_dataset)))},[d]),(0,a.useEffect)(()=>{f&&(null==d?void 0:d.fides_key)&&t&&C()},[f,null==d?void 0:d.fides_key,t,C]),(0,a.useEffect)(()=>{S&&i((0,j.x0)(S.reachable))},[S,i]);let N=async e=>{let t=null==k?void 0:k.items.find(t=>t.fides_key===e);t&&i((0,j.w7)(t))},R=async()=>{let e;if(!d)return;try{e=y.ZP.load(c)}catch(e){s((0,m.Vo)("YAML Parsing Error: ".concat(e instanceof y._L?"".concat(e.reason," ").concat(e.mark?"at line ".concat(e.mark.line):""):"Invalid YAML format")));return}let t=await o(e);if((0,p.D4)(t)){s((0,m.Vo)((0,p.e$)(t.error)));return}i((0,j.w7)({fides_key:d.fides_key,ctl_dataset:t.data})),s((0,m.t5)("Successfully modified dataset")),await T(),await C()},A=async()=>{try{let{data:e}=await T(),t=null==e?void 0:e.items.find(e=>e.fides_key===(null==d?void 0:d.fides_key));(null==t?void 0:t.ctl_dataset)&&u(y.ZP.dump(b(t.ctl_dataset))),s((0,m.t5)("Successfully refreshed datasets"))}catch(e){s((0,m.Vo)((0,p.e$)(e)))}};return(0,n.jsxs)(r.gCW,{alignItems:"stretch",flex:"1",maxWidth:"70vw",maxHeight:"100vh",children:[(0,n.jsxs)(r.X6q,{as:"h3",size:"sm",display:"flex",alignItems:"center",justifyContent:"space-between",children:[(0,n.jsxs)(r.Ugi,{children:[(0,n.jsx)(r.xvT,{children:"Edit dataset: "}),(0,n.jsx)(r.WPr,{id:"format","data-testid":"export-format-select",value:(null==d?void 0:d.fides_key)||"",options:E,onChange:N,className:"w-64"}),(0,n.jsx)(h.Z,{copyText:c})]}),(0,n.jsxs)(r.Ugi,{spacing:2,children:[(0,n.jsx)(r.ua7,{label:"Refresh to load the latest data from the database. This will overwrite any unsaved local changes.",hasArrow:!0,placement:"top",children:(0,n.jsx)(r.wpx,{htmlType:"submit",size:"small","data-testid":"refresh-btn",onClick:A,loading:w,children:"Refresh"})}),(0,n.jsx)(r.ua7,{label:"Save your changes to update the dataset in the database.",hasArrow:!0,placement:"top",children:(0,n.jsx)(r.wpx,{htmlType:"submit",size:"small",onClick:R,children:"Save"})})]})]}),(0,n.jsx)(r.Kqy,{border:"1px solid",borderColor:"gray.200",borderRadius:"md",justifyContent:"space-between",py:4,pr:4,"data-testid":"empty-state",flex:"1 1 auto",minHeight:"200px",children:(0,n.jsx)(v.M,{defaultLanguage:"yaml",value:c,height:"100%",onChange:e=>u(e||""),onMount:()=>{},options:{fontFamily:"Menlo",fontSize:13,minimap:{enabled:!1},readOnly:!1,hideCursorInOverviewRuler:!0,overviewRulerBorder:!1,scrollBeyondLastLine:!1},theme:"light"})}),S&&(0,n.jsx)(r.Kqy,{backgroundColor:(null==S?void 0:S.reachable)?"green.50":"red.50",border:"1px solid",borderColor:(null==S?void 0:S.reachable)?"green.500":"red.500",borderRadius:"md",p:2,flexShrink:0,mt:2,children:(0,n.jsx)(r.Ugi,{alignItems:"center",children:(0,n.jsxs)(r.Ugi,{flex:"1",children:[(null==S?void 0:S.reachable)?(0,n.jsx)(r.StI,{}):(0,n.jsx)(r.f9v,{}),(0,n.jsx)(r.xvT,{fontSize:"sm",whiteSpace:"pre-wrap",children:(null==S?void 0:S.reachable)?"Dataset is reachable":"Dataset is not reachable. ".concat(_(null==S?void 0:S.details))})]})})})]})},w=s(54458),T=s(16125),S=s(99716);let C=e=>{let t=new Date(e);return(0,w.WU)(t,"yyyy-MM-dd HH:mm:ss.SSS")},E=e=>{switch(e){case"ERROR":return"red.500";case"WARNING":return"orange.500";case"INFO":return"blue.500";default:return"gray.500"}},N=(0,a.memo)(e=>{let{log:t}=e;return(0,n.jsxs)(r.xuv,{as:"pre",margin:0,fontSize:"xs",fontFamily:"monospace",whiteSpace:"pre-wrap",wordBreak:"break-word",children:[(0,n.jsx)(r.xvT,{as:"span",color:"green.500",children:C(t.timestamp)}),(0,n.jsx)(r.xvT,{as:"span",children:" | "}),(0,n.jsx)(r.xvT,{as:"span",color:E(t.level),children:t.level.padEnd(8)}),(0,n.jsx)(r.xvT,{as:"span",children:" | "}),(0,n.jsx)(r.xvT,{as:"span",color:"cyan.500",children:t.module_info}),(0,n.jsx)(r.xvT,{as:"span",children:" - "}),(0,n.jsx)(r.xvT,{as:"span",color:"ERROR"===t.level||"WARNING"===t.level?E(t.level):"gray.800",children:t.message})]})});N.displayName="LogLine";var R=(0,a.memo)(()=>{let e=(0,l.T)(),t=(0,a.useRef)(null),s=(0,T.v9)(j.HN),i=(0,T.v9)(j.pz),{data:o}=(0,S.fV)({privacy_request_id:s},{skip:!s,pollingInterval:1e3});(0,a.useEffect)(()=>{o&&e((0,j.Hy)(o))},[o,e]);let c=(0,a.useCallback)(()=>{t.current&&(t.current.scrollTop=t.current.scrollHeight)},[]);(0,a.useEffect)(()=>{c()},[i,c]);let u=(0,a.useMemo)(()=>(null==i?void 0:i.map(e=>"".concat(C(e.timestamp)," | ").concat(e.level," | ").concat(e.module_info," - ").concat(e.message)).join("\n"))||"",[i]);return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(r.X6q,{as:"h3",size:"sm",display:"flex",alignItems:"center",justifyContent:"space-between",children:(0,n.jsxs)(r.Ugi,{children:[(0,n.jsx)(r.xvT,{children:"Test logs"}),(0,n.jsx)(h.Z,{copyText:u})]})}),(0,n.jsx)(r.xuv,{ref:t,height:"200px",overflowY:"auto",borderWidth:1,borderColor:"gray.200",borderRadius:"md",p:2,children:null==i?void 0:i.map(e=>(0,n.jsx)(N,{log:e},"".concat(e.timestamp,"-").concat(e.module_info,"-").concat(e.message)))})]})}),A=s(91613);let{useGetPoliciesQuery:O}=s(78780).u.injectEndpoints({endpoints:e=>({getPolicies:e.query({query:()=>({url:"/dsr/policy"}),providesTags:()=>["Policies"]})})});var D=s(28120),q=s(31883),I=e=>{let{connectionKey:t}=e,s=(0,r.pmc)(),i=(0,l.T)(),[o]=(0,x.s7)(),c=(0,T.v9)(j.fD),u=(0,T.v9)(j.YS),d=(0,T.v9)(j.Af),f=(0,T.v9)(j.zn),y=(0,T.v9)(j.lR),v=(0,T.v9)(j.M_),g=(0,T.v9)(j.HN),[b,_]=(0,a.useState)("{}");(0,a.useEffect)(()=>{c&&_(JSON.stringify(f,null,2))},[c,f]);let{data:k,error:w}=(0,S.Z2)({privacy_request_id:g},{skip:!g||!(null==c?void 0:c.fides_key),pollingInterval:2e3}),{refetch:C}=(0,S.fV)({privacy_request_id:g},{skip:!g}),{refetch:E}=(0,x.I1)({connectionKey:t,datasetKey:(null==c?void 0:c.fides_key)||""},{skip:!t||!(null==c?void 0:c.fides_key),refetchOnMountOrArgChange:!0}),{data:N}=O(),R=(0,a.useMemo)(()=>((null==N?void 0:N.items)||[]).filter(e=>{var t;return null===(t=e.rules)||void 0===t?void 0:t.some(e=>"access"===e.action_type)}).map(e=>({value:e.key,label:e.name})),[null==N?void 0:N.items]);(0,a.useEffect)(()=>{let e=null==c?void 0:c.fides_key;t&&e&&E().then(t=>{t.data&&(null==c?void 0:c.fides_key)===e&&i((0,j.qD)({datasetKey:e,values:t.data}))})},[c,t,i,E]),(0,a.useEffect)(()=>{let e=null==c?void 0:c.fides_key;if(w&&"status"in w&&404===w.status){i((0,j.hT)()),s((0,m.Vo)("Test run failed"));return}if(!k||k.privacy_request_id!==g||!e)return;let t={datasetKey:e,values:JSON.stringify(k,null,2)};k.status===D.q2.COMPLETE?v&&C().then(()=>{i((0,j.EO)(t)),i((0,j.hT)()),s((0,m.t5)("Test run completed successfully"))}):k.status===D.q2.ERROR&&C().then(()=>{i((0,j.EO)(t)),i((0,j.hT)()),s((0,m.Vo)("Test run failed"))})},[k,w,g,c,v,i,s,C]);let I=(0,a.useMemo)(()=>y&&(null==N?void 0:N.items)?y:null,[y,null==N?void 0:N.items]),L=async()=>{if((null==c?void 0:c.fides_key)&&y)try{let e;try{e=JSON.parse(b)}catch(e){s((0,m.Vo)("Invalid JSON in test input"));return}i((0,j.Vh)(c.fides_key)),s((0,m.t5)("Test run started"));let n=await o({connection_key:t,dataset_key:c.fides_key,identities:e,policy_key:y});(0,q.D4)(n)?(s((0,m.Vo)((0,p.e$)(n.error))),i((0,j.hT)())):"data"in n?i((0,j.eY)(n.data.privacy_request_id)):(i((0,j.hT)()),s((0,m.Vo)("No privacy request ID in response")))}catch(e){i((0,j.hT)()),s((0,m.Vo)("Failed to start test run"))}};return(0,n.jsxs)(r.gCW,{alignItems:"stretch",flex:"1",maxWidth:"70vw",minHeight:"0",children:[(0,n.jsxs)(r.X6q,{as:"h3",size:"sm",display:"flex",alignItems:"center",justifyContent:"space-between",children:[(0,n.jsxs)(r.Ugi,{children:[(0,n.jsx)(r.xvT,{children:"Test inputs"}),(0,n.jsx)(h.Z,{copyText:b})]}),(0,n.jsxs)(r.Ugi,{children:[(0,n.jsx)(r.WPr,{id:"policy","aria-label":"Policy selector","data-testid":"policy-select",placeholder:"Select policy",value:I,options:R,onChange:e=>{i((0,j.kF)(e))},className:"w-64"}),(0,n.jsx)(r.wpx,{htmlType:"submit",size:"small",type:"primary","data-testid":"run-btn",onClick:v?()=>{i((0,j.qU)()),s((0,m.t5)("Test manually stopped by user"))}:L,disabled:!y||!u,children:v?"Stop":"Run"}),(0,n.jsx)(A.Z,{label:v?"Stop the currently running test":"Run a test access request using the provided test input data and the selected access policy"})]})]}),(0,n.jsx)(r.gxH,{size:"sm",focusBorderColor:"primary.600",color:"gray.800",isDisabled:v,height:"100%",value:b,onChange:e=>{let t=e.target.value;_(t);try{let e=JSON.parse(t);c&&i((0,j.qD)({datasetKey:c.fides_key,values:e}))}catch(e){}}}),(0,n.jsxs)(r.X6q,{as:"h3",size:"sm",children:["Test results ",(0,n.jsx)(h.Z,{copyText:d})]}),(0,n.jsx)(r.gxH,{isReadOnly:!0,size:"sm",focusBorderColor:"primary.600",color:"gray.800",isDisabled:!1,height:"100%",value:d})]})};let L=e=>e.id?Array.isArray(e.id)?e.id[0]:e.id:"";var M=()=>{var e;let t=(0,i.useRouter)(),s=(0,l.T)(),y=L(t.query),{data:h,isLoading:p}=(0,f.rn)(y,{skip:!y}),m=(null==h?void 0:null===(e=h.connection_configs)||void 0===e?void 0:e.key)||"";return((0,a.useEffect)(()=>{s((0,f.db)(h))},[h,s]),p)?(0,n.jsx)(c.Z,{title:"Systems",children:(0,n.jsx)(o.Z,{})}):(0,n.jsxs)(c.Z,{title:"System inventory",mainProps:{height:"100vh",display:"flex",flexDirection:"column"},children:[(0,n.jsx)(d.Z,{heading:"System inventory",breadcrumbItems:[{title:"System inventory",href:u.So},{title:(null==h?void 0:h.name)||"",href:"/systems/configure/".concat(y,"#integrations")},{title:"Test datasets"}]}),(0,n.jsxs)(r.gCW,{alignItems:"stretch",flex:"1",minHeight:"0",spacing:"4",padding:"0",children:[(0,n.jsxs)(r.Ugi,{alignItems:"stretch",flex:"1",minHeight:"0",spacing:"4",maxHeight:"60vh",children:[(0,n.jsx)(k,{connectionKey:m}),(0,n.jsx)(I,{connectionKey:m})]}),(0,n.jsx)(r.xuv,{flex:"0 0 auto",children:(0,n.jsx)(R,{})})]})]})}},19043:function(e,t,s){"use strict";s.d(t,{Bw:function(){return a},D4:function(){return r},Dy:function(){return o},XD:function(){return c},cz:function(){return u},hE:function(){return l},oK:function(){return i}});var n=s(76649);let r=e=>"error"in e,i=e=>(0,n.Ln)({status:"string"},e)&&"PARSING_ERROR"===e.status,a=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),c=e=>(0,n.Ln)({detail:{error:"string",resource_type:"string",fides_key:"string"}},e),u=e=>(0,n.Ln)({detail:[{loc:["string","number"],msg:"string",type:"string"}]},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)},76649:function(e,t,s){"use strict";s.d(t,{Ln:function(){return n}});let n=(e,t)=>i(e,t),r=Symbol("SOME"),i=(e,t)=>"string"==typeof e?e===typeof t:Array.isArray(e)?r in e?e.some(e=>i(e,t)):!!Array.isArray(t)&&(0===e.length||t.every(t=>e.some(e=>i(e,t)))):"object"==typeof t&&null!==t&&Object.entries(e).every(([e,s])=>i(s,t[e]));class a{static narrow(e){return new a(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,s=e instanceof a?e.NF:e instanceof Function?e:t=>n(e,t);return new a(e=>t(e)&&s(e))}}new a(e=>!0)}},function(e){e.O(0,[6527,9327,2888,9774,179],function(){return e(e.s=54543)}),_N_E=e.O()}]);
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1617],{54543:function(e,t,s){(window.__NEXT_P=window.__NEXT_P||[]).push(["/systems/configure/[id]/test-datasets",function(){return s(94010)}])},18225:function(e,t,s){"use strict";var n=s(24246),r=s(77181);t.Z=e=>{let{...t}=e;return(0,n.jsx)(r.kCb,{boxSize:"full",align:"center",justify:"center",children:(0,n.jsx)(r.$jN,{color:"primary",...t})})}},812:function(e,t,s){"use strict";s.d(t,{D4:function(){return i.D4},MM:function(){return f},Ot:function(){return c},c6:function(){return r},cj:function(){return h},e$:function(){return l},fn:function(){return o},iC:function(){return y},nU:function(){return d},tB:function(){return u}});var n,r,i=s(19043);let a="An unexpected error occurred. Please try again.",l=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:a;if((0,i.Bw)(e)){if((0,i.hE)(e.data))return e.data.detail;if((0,i.cz)(e.data)){var s;let t=null===(s=e.data.detail)||void 0===s?void 0:s[0];return"".concat(null==t?void 0:t.msg,": ").concat(null==t?void 0:t.loc)}if(409===e.status&&(0,i.Dy)(e.data)||404===e.status&&(0,i.XD)(e.data))return"".concat(e.data.detail.error," (").concat(e.data.detail.fides_key,")")}return t};function o(e){return"object"==typeof e&&null!=e&&"status"in e}function c(e){return"object"==typeof e&&null!=e&&"data"in e&&"string"==typeof e.data.detail}function u(e){return"object"==typeof e&&null!=e&&"data"in e&&Array.isArray(e.data.detail)}let d=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{status:500,message:a};if((0,i.oK)(e))return{status:e.originalStatus,message:e.data};if((0,i.Bw)(e)){let{status:s}=e;return{status:s,message:l(e,t.message)}}return t},f=e=>Object.entries(e).map(e=>({value:e[1],label:e[1]}));(n=r||(r={})).GVL="gvl",n.AC="gacp",n.COMPASS="compass";let y={gvl:{label:"GVL",fullName:"Global Vendor List"},gacp:{label:"AC",fullName:"Google Additional Consent List"},compass:{label:"",fullName:""}},h=e=>{let t=e.split(".")[0];return"gacp"===t?"gacp":"gvl"===t?"gvl":"compass"}},46628:function(e,t,s){"use strict";s.d(t,{MA:function(){return l},Vo:function(){return c},t5:function(){return o}});var n=s(24246),r=s(77181);let i=e=>{let{children:t,title:s="Success"}=e;return(0,n.jsxs)(r.xvT,{"data-testid":"toast-success-msg",children:[(0,n.jsxs)("strong",{children:[s,":"]})," ",t]})},a=e=>{let{children:t}=e;return(0,n.jsxs)(r.xvT,{"data-testid":"toast-error-msg",children:[(0,n.jsx)("strong",{children:"Error:"})," ",t]})},l={variant:"subtle",position:"top",description:"",duration:5e3,status:"success",isClosable:!0},o=(e,t)=>{let s=(0,n.jsx)(i,{title:t,children:e});return{...l,description:s}},c=e=>{let t=(0,n.jsx)(a,{children:e});return{...l,description:t,status:"error"}}},94010:function(e,t,s){"use strict";s.r(t),s.d(t,{default:function(){return M}});var n=s(24246),r=s(77181),i=s(86677),a=s(27378),l=s(16134),o=s(18225),c=s(77213),u=s(77830),d=s(58754),f=s(1315),y=s(66527),h=s(88340),p=s(812),m=s(46628),v=s(41207),g=s(41966),x=s(94725),j=s(88124);let b=e=>Array.isArray(e)?e.map(e=>b(e)).filter(e=>null!==e):e&&"object"==typeof e?Object.fromEntries(Object.entries(e).map(e=>{let[t,s]=e;return[t,b(s)]}).filter(e=>{let[,t]=e;return null!==t})):e,_=e=>{if(Array.isArray(e)){let t=e[0];if(!t)return"";let s=t.msg||"",n=t.loc?" (".concat(t.loc,")"):"";return"".concat(s).concat(n)}return e};var k=e=>{let{connectionKey:t}=e,s=(0,r.pmc)(),i=(0,l.T)(),[o]=(0,g.TG)(),[c,u]=(0,a.useState)(""),d=(0,l.C)(j.fD),f=(0,l.C)(j.lR),{data:k,isLoading:w,refetch:T}=(0,x.Eg)(t,{skip:!t}),{data:S,refetch:C}=(0,x.tW)({connectionKey:t,datasetKey:(null==d?void 0:d.fides_key)||"",policyKey:f},{skip:!t||!(null==d?void 0:d.fides_key)||!f});(0,a.useEffect)(()=>{S&&i((0,j.x0)(S.reachable))},[S,i]);let E=(0,a.useMemo)(()=>((null==k?void 0:k.items)||[]).map(e=>({value:e.fides_key,label:e.fides_key})),[null==k?void 0:k.items]);(0,a.useEffect)(()=>{if((null==k?void 0:k.items.length)&&(!d||!k.items.find(e=>e.fides_key===d.fides_key))){let e=k.items[0];i((0,j.w7)(e))}},[k,d,i]),(0,a.useEffect)(()=>{(null==d?void 0:d.ctl_dataset)&&u(y.ZP.dump(b(null==d?void 0:d.ctl_dataset)))},[d]),(0,a.useEffect)(()=>{f&&(null==d?void 0:d.fides_key)&&t&&C()},[f,null==d?void 0:d.fides_key,t,C]),(0,a.useEffect)(()=>{S&&i((0,j.x0)(S.reachable))},[S,i]);let N=async e=>{let t=null==k?void 0:k.items.find(t=>t.fides_key===e);t&&i((0,j.w7)(t))},R=async()=>{let e;if(!d)return;try{e=y.ZP.load(c)}catch(e){s((0,m.Vo)("YAML Parsing Error: ".concat(e instanceof y._L?"".concat(e.reason," ").concat(e.mark?"at line ".concat(e.mark.line):""):"Invalid YAML format")));return}let t=await o(e);if((0,p.D4)(t)){s((0,m.Vo)((0,p.e$)(t.error)));return}i((0,j.w7)({fides_key:d.fides_key,ctl_dataset:t.data})),s((0,m.t5)("Successfully modified dataset")),await T(),await C()},A=async()=>{try{let{data:e}=await T(),t=null==e?void 0:e.items.find(e=>e.fides_key===(null==d?void 0:d.fides_key));(null==t?void 0:t.ctl_dataset)&&u(y.ZP.dump(b(t.ctl_dataset))),s((0,m.t5)("Successfully refreshed datasets"))}catch(e){s((0,m.Vo)((0,p.e$)(e)))}};return(0,n.jsxs)(r.gCW,{alignItems:"stretch",flex:"1",maxWidth:"70vw",maxHeight:"100vh",children:[(0,n.jsxs)(r.X6q,{as:"h3",size:"sm",display:"flex",alignItems:"center",justifyContent:"space-between",children:[(0,n.jsxs)(r.Ugi,{children:[(0,n.jsx)(r.xvT,{children:"Edit dataset: "}),(0,n.jsx)(r.WPr,{id:"format","data-testid":"export-format-select",value:(null==d?void 0:d.fides_key)||"",options:E,onChange:N,className:"w-64"}),(0,n.jsx)(h.Z,{copyText:c})]}),(0,n.jsxs)(r.Ugi,{spacing:2,children:[(0,n.jsx)(r.ua7,{label:"Refresh to load the latest data from the database. This will overwrite any unsaved local changes.",hasArrow:!0,placement:"top",children:(0,n.jsx)(r.wpx,{htmlType:"submit",size:"small","data-testid":"refresh-btn",onClick:A,loading:w,children:"Refresh"})}),(0,n.jsx)(r.ua7,{label:"Save your changes to update the dataset in the database.",hasArrow:!0,placement:"top",children:(0,n.jsx)(r.wpx,{htmlType:"submit",size:"small",onClick:R,children:"Save"})})]})]}),(0,n.jsx)(r.Kqy,{border:"1px solid",borderColor:"gray.200",borderRadius:"md",justifyContent:"space-between",py:4,pr:4,"data-testid":"empty-state",flex:"1 1 auto",minHeight:"200px",children:(0,n.jsx)(v.M,{defaultLanguage:"yaml",value:c,height:"100%",onChange:e=>u(e||""),onMount:()=>{},options:{fontFamily:"Menlo",fontSize:13,minimap:{enabled:!1},readOnly:!1,hideCursorInOverviewRuler:!0,overviewRulerBorder:!1,scrollBeyondLastLine:!1},theme:"light"})}),S&&(0,n.jsx)(r.Kqy,{backgroundColor:(null==S?void 0:S.reachable)?"green.50":"red.50",border:"1px solid",borderColor:(null==S?void 0:S.reachable)?"green.500":"red.500",borderRadius:"md",p:2,flexShrink:0,mt:2,children:(0,n.jsx)(r.Ugi,{alignItems:"center",children:(0,n.jsxs)(r.Ugi,{flex:"1",children:[(null==S?void 0:S.reachable)?(0,n.jsx)(r.StI,{}):(0,n.jsx)(r.f9v,{}),(0,n.jsx)(r.xvT,{fontSize:"sm",whiteSpace:"pre-wrap",children:(null==S?void 0:S.reachable)?"Dataset is reachable":"Dataset is not reachable. ".concat(_(null==S?void 0:S.details))})]})})})]})},w=s(54458),T=s(16125),S=s(99716);let C=e=>{let t=new Date(e);return(0,w.WU)(t,"yyyy-MM-dd HH:mm:ss.SSS")},E=e=>{switch(e){case"ERROR":return"red.500";case"WARNING":return"orange.500";case"INFO":return"blue.500";default:return"gray.500"}},N=(0,a.memo)(e=>{let{log:t}=e;return(0,n.jsxs)(r.xuv,{as:"pre",margin:0,fontSize:"xs",fontFamily:"monospace",whiteSpace:"pre-wrap",wordBreak:"break-word",children:[(0,n.jsx)(r.xvT,{as:"span",color:"green.500",children:C(t.timestamp)}),(0,n.jsx)(r.xvT,{as:"span",children:" | "}),(0,n.jsx)(r.xvT,{as:"span",color:E(t.level),children:t.level.padEnd(8)}),(0,n.jsx)(r.xvT,{as:"span",children:" | "}),(0,n.jsx)(r.xvT,{as:"span",color:"cyan.500",children:t.module_info}),(0,n.jsx)(r.xvT,{as:"span",children:" - "}),(0,n.jsx)(r.xvT,{as:"span",color:"ERROR"===t.level||"WARNING"===t.level?E(t.level):"gray.800",children:t.message})]})});N.displayName="LogLine";var R=(0,a.memo)(()=>{let e=(0,l.T)(),t=(0,a.useRef)(null),s=(0,T.v9)(j.HN),i=(0,T.v9)(j.pz),{data:o}=(0,S.fV)({privacy_request_id:s},{skip:!s,pollingInterval:1e3});(0,a.useEffect)(()=>{o&&e((0,j.Hy)(o))},[o,e]);let c=(0,a.useCallback)(()=>{t.current&&(t.current.scrollTop=t.current.scrollHeight)},[]);(0,a.useEffect)(()=>{c()},[i,c]);let u=(0,a.useMemo)(()=>(null==i?void 0:i.map(e=>"".concat(C(e.timestamp)," | ").concat(e.level," | ").concat(e.module_info," - ").concat(e.message)).join("\n"))||"",[i]);return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(r.X6q,{as:"h3",size:"sm",display:"flex",alignItems:"center",justifyContent:"space-between",children:(0,n.jsxs)(r.Ugi,{children:[(0,n.jsx)(r.xvT,{children:"Test logs"}),(0,n.jsx)(h.Z,{copyText:u})]})}),(0,n.jsx)(r.xuv,{ref:t,height:"200px",overflowY:"auto",borderWidth:1,borderColor:"gray.200",borderRadius:"md",p:2,children:null==i?void 0:i.map(e=>(0,n.jsx)(N,{log:e},"".concat(e.timestamp,"-").concat(e.module_info,"-").concat(e.message)))})]})}),A=s(91613);let{useGetPoliciesQuery:O}=s(78780).u.injectEndpoints({endpoints:e=>({getPolicies:e.query({query:()=>({url:"/dsr/policy"}),providesTags:()=>["Policies"]})})});var D=s(21702),q=s(31883),I=e=>{let{connectionKey:t}=e,s=(0,r.pmc)(),i=(0,l.T)(),[o]=(0,x.s7)(),c=(0,T.v9)(j.fD),u=(0,T.v9)(j.YS),d=(0,T.v9)(j.Af),f=(0,T.v9)(j.zn),y=(0,T.v9)(j.lR),v=(0,T.v9)(j.M_),g=(0,T.v9)(j.HN),[b,_]=(0,a.useState)("{}");(0,a.useEffect)(()=>{c&&_(JSON.stringify(f,null,2))},[c,f]);let{data:k,error:w}=(0,S.Z2)({privacy_request_id:g},{skip:!g||!(null==c?void 0:c.fides_key),pollingInterval:2e3}),{refetch:C}=(0,S.fV)({privacy_request_id:g},{skip:!g}),{refetch:E}=(0,x.I1)({connectionKey:t,datasetKey:(null==c?void 0:c.fides_key)||""},{skip:!t||!(null==c?void 0:c.fides_key),refetchOnMountOrArgChange:!0}),{data:N}=O(),R=(0,a.useMemo)(()=>((null==N?void 0:N.items)||[]).filter(e=>{var t;return null===(t=e.rules)||void 0===t?void 0:t.some(e=>"access"===e.action_type)}).map(e=>({value:e.key,label:e.name})),[null==N?void 0:N.items]);(0,a.useEffect)(()=>{let e=null==c?void 0:c.fides_key;t&&e&&E().then(t=>{t.data&&(null==c?void 0:c.fides_key)===e&&i((0,j.qD)({datasetKey:e,values:t.data}))})},[c,t,i,E]),(0,a.useEffect)(()=>{let e=null==c?void 0:c.fides_key;if(w&&"status"in w&&404===w.status){i((0,j.hT)()),s((0,m.Vo)("Test run failed"));return}if(!k||k.privacy_request_id!==g||!e)return;let t={datasetKey:e,values:JSON.stringify(k,null,2)};k.status===D.q2.COMPLETE?v&&C().then(()=>{i((0,j.EO)(t)),i((0,j.hT)()),s((0,m.t5)("Test run completed successfully"))}):k.status===D.q2.ERROR&&C().then(()=>{i((0,j.EO)(t)),i((0,j.hT)()),s((0,m.Vo)("Test run failed"))})},[k,w,g,c,v,i,s,C]);let I=(0,a.useMemo)(()=>y&&(null==N?void 0:N.items)?y:null,[y,null==N?void 0:N.items]),L=async()=>{if((null==c?void 0:c.fides_key)&&y)try{let e;try{e=JSON.parse(b)}catch(e){s((0,m.Vo)("Invalid JSON in test input"));return}i((0,j.Vh)(c.fides_key)),s((0,m.t5)("Test run started"));let n=await o({connection_key:t,dataset_key:c.fides_key,identities:e,policy_key:y});(0,q.D4)(n)?(s((0,m.Vo)((0,p.e$)(n.error))),i((0,j.hT)())):"data"in n?i((0,j.eY)(n.data.privacy_request_id)):(i((0,j.hT)()),s((0,m.Vo)("No privacy request ID in response")))}catch(e){i((0,j.hT)()),s((0,m.Vo)("Failed to start test run"))}};return(0,n.jsxs)(r.gCW,{alignItems:"stretch",flex:"1",maxWidth:"70vw",minHeight:"0",children:[(0,n.jsxs)(r.X6q,{as:"h3",size:"sm",display:"flex",alignItems:"center",justifyContent:"space-between",children:[(0,n.jsxs)(r.Ugi,{children:[(0,n.jsx)(r.xvT,{children:"Test inputs"}),(0,n.jsx)(h.Z,{copyText:b})]}),(0,n.jsxs)(r.Ugi,{children:[(0,n.jsx)(r.WPr,{id:"policy","aria-label":"Policy selector","data-testid":"policy-select",placeholder:"Select policy",value:I,options:R,onChange:e=>{i((0,j.kF)(e))},className:"w-64"}),(0,n.jsx)(r.wpx,{htmlType:"submit",size:"small",type:"primary","data-testid":"run-btn",onClick:v?()=>{i((0,j.qU)()),s((0,m.t5)("Test manually stopped by user"))}:L,disabled:!y||!u,children:v?"Stop":"Run"}),(0,n.jsx)(A.Z,{label:v?"Stop the currently running test":"Run a test access request using the provided test input data and the selected access policy"})]})]}),(0,n.jsx)(r.gxH,{size:"sm",focusBorderColor:"primary.600",color:"gray.800",isDisabled:v,height:"100%",value:b,onChange:e=>{let t=e.target.value;_(t);try{let e=JSON.parse(t);c&&i((0,j.qD)({datasetKey:c.fides_key,values:e}))}catch(e){}}}),(0,n.jsxs)(r.X6q,{as:"h3",size:"sm",children:["Test results ",(0,n.jsx)(h.Z,{copyText:d})]}),(0,n.jsx)(r.gxH,{isReadOnly:!0,size:"sm",focusBorderColor:"primary.600",color:"gray.800",isDisabled:!1,height:"100%",value:d})]})};let L=e=>e.id?Array.isArray(e.id)?e.id[0]:e.id:"";var M=()=>{var e;let t=(0,i.useRouter)(),s=(0,l.T)(),y=L(t.query),{data:h,isLoading:p}=(0,f.rn)(y,{skip:!y}),m=(null==h?void 0:null===(e=h.connection_configs)||void 0===e?void 0:e.key)||"";return((0,a.useEffect)(()=>{s((0,f.db)(h))},[h,s]),p)?(0,n.jsx)(c.Z,{title:"Systems",children:(0,n.jsx)(o.Z,{})}):(0,n.jsxs)(c.Z,{title:"System inventory",mainProps:{height:"100vh",display:"flex",flexDirection:"column"},children:[(0,n.jsx)(d.Z,{heading:"System inventory",breadcrumbItems:[{title:"System inventory",href:u.So},{title:(null==h?void 0:h.name)||"",href:"/systems/configure/".concat(y,"#integrations")},{title:"Test datasets"}]}),(0,n.jsxs)(r.gCW,{alignItems:"stretch",flex:"1",minHeight:"0",spacing:"4",padding:"0",children:[(0,n.jsxs)(r.Ugi,{alignItems:"stretch",flex:"1",minHeight:"0",spacing:"4",maxHeight:"60vh",children:[(0,n.jsx)(k,{connectionKey:m}),(0,n.jsx)(I,{connectionKey:m})]}),(0,n.jsx)(r.xuv,{flex:"0 0 auto",children:(0,n.jsx)(R,{})})]})]})}},19043:function(e,t,s){"use strict";s.d(t,{Bw:function(){return a},D4:function(){return r},Dy:function(){return o},XD:function(){return c},cz:function(){return u},hE:function(){return l},oK:function(){return i}});var n=s(76649);let r=e=>"error"in e,i=e=>(0,n.Ln)({status:"string"},e)&&"PARSING_ERROR"===e.status,a=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),c=e=>(0,n.Ln)({detail:{error:"string",resource_type:"string",fides_key:"string"}},e),u=e=>(0,n.Ln)({detail:[{loc:["string","number"],msg:"string",type:"string"}]},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)},76649:function(e,t,s){"use strict";s.d(t,{Ln:function(){return n}});let n=(e,t)=>i(e,t),r=Symbol("SOME"),i=(e,t)=>"string"==typeof e?e===typeof t:Array.isArray(e)?r in e?e.some(e=>i(e,t)):!!Array.isArray(t)&&(0===e.length||t.every(t=>e.some(e=>i(e,t)))):"object"==typeof t&&null!==t&&Object.entries(e).every(([e,s])=>i(s,t[e]));class a{static narrow(e){return new a(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,s=e instanceof a?e.NF:e instanceof Function?e:t=>n(e,t);return new a(e=>t(e)&&s(e))}}new a(e=>!0)}},function(e){e.O(0,[6527,9327,2888,9774,179],function(){return e(e.s=54543)}),_N_E=e.O()}]);
|
@@ -1 +1 @@
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3785],{90988:function(e,t,s){(window.__NEXT_P=window.__NEXT_P||[]).push(["/systems",function(){return s(49465)}])},56358:function(e,t,s){"use strict";s.d(t,{q:function(){return n}});var i=s(24246);let n=(0,s(77181).IUT)({displayName:"TrashCanOutlineIcon",viewBox:"0 0 11 12",path:(0,i.jsx)("path",{d:"M4.5166 1.60859L4.1084 2.21875H7.22363L6.81543 1.60859C6.7832 1.56133 6.72949 1.53125 6.67148 1.53125H4.6584C4.60039 1.53125 4.54668 1.55918 4.51445 1.60859H4.5166ZM7.6748 1.03711L8.46328 2.21875H8.75977H9.79102H9.96289C10.2486 2.21875 10.4785 2.44863 10.4785 2.73438C10.4785 3.02012 10.2486 3.25 9.96289 3.25H9.79102V9.78125C9.79102 10.7309 9.02188 11.5 8.07227 11.5H3.25977C2.31016 11.5 1.54102 10.7309 1.54102 9.78125V3.25H1.36914C1.0834 3.25 0.853516 3.02012 0.853516 2.73438C0.853516 2.44863 1.0834 2.21875 1.36914 2.21875H1.54102H2.57227H2.86875L3.65723 1.03496C3.88066 0.701953 4.25664 0.5 4.6584 0.5H6.67148C7.07324 0.5 7.44922 0.701953 7.67266 1.03496L7.6748 1.03711ZM2.57227 3.25V9.78125C2.57227 10.1615 2.87949 10.4688 3.25977 10.4688H8.07227C8.45254 10.4688 8.75977 10.1615 8.75977 9.78125V3.25H2.57227ZM4.29102 4.625V9.09375C4.29102 9.28281 4.13633 9.4375 3.94727 9.4375C3.7582 9.4375 3.60352 9.28281 3.60352 9.09375V4.625C3.60352 4.43594 3.7582 4.28125 3.94727 4.28125C4.13633 4.28125 4.29102 4.43594 4.29102 4.625ZM6.00977 4.625V9.09375C6.00977 9.28281 5.85508 9.4375 5.66602 9.4375C5.47695 9.4375 5.32227 9.28281 5.32227 9.09375V4.625C5.32227 4.43594 5.47695 4.28125 5.66602 4.28125C5.85508 4.28125 6.00977 4.43594 6.00977 4.625ZM7.72852 4.625V9.09375C7.72852 9.28281 7.57383 9.4375 7.38477 9.4375C7.1957 9.4375 7.04102 9.28281 7.04102 9.09375V4.625C7.04102 4.43594 7.1957 4.28125 7.38477 4.28125C7.57383 4.28125 7.72852 4.43594 7.72852 4.625Z",fill:"currentColor"})})},77213:function(e,t,s){"use strict";s.d(t,{Z:function(){return m}});var i=s(24246),n=s(77181),a=s(88038),r=s.n(a),l=s(86677);s(27378);var o=s(25980),c=s(90867),d=s(77830),u=()=>{let e=(0,l.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(d.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."," "]})]})})},m=e=>{let{children:t,title:s,padded:a=!0,mainProps:d}=e,m=(0,o.hz)(),p=(0,l.useRouter)(),x="/privacy-requests"===p.pathname||"/datastore-connection"===p.pathname,h=!(m.flags.privacyRequestsConfiguration&&x),{data:g}=(0,c.JE)(void 0,{skip:h}),{data:f}=(0,c.PW)(void 0,{skip:h}),j=m.flags.privacyRequestsConfiguration&&(!g||!f)&&x;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",...d,children:[j?(0,i.jsx)(u,{}):null,t]})]})}},58754:function(e,t,s){"use strict";var i=s(24246),n=s(77181),a=s(70788);t.Z=e=>{let{heading:t,breadcrumbItems:s,isSticky:r=!0,children:l,rightContent:o,style:c,...d}=e;return(0,i.jsxs)("div",{...d,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",...c}:{paddingBottom:"24px",...c},children:[(0,i.jsxs)(n.jqI,{justify:"space-between",children:["string"==typeof t?(0,i.jsx)(n.X6q,{className:s||l?"pb-4":void 0,fontSize:"2xl","data-testid":"page-heading",children:t}):t,o&&(0,i.jsx)("div",{"data-testid":"page-header-right-content",children:o})]}),!!s&&(0,i.jsx)(a.m,{className:l?"pb-4":void 0,items:s,"data-testid":"page-breadcrumb"}),l]})}},19904:function(e,t,s){"use strict";s.d(t,{Tg:function(){return r}});var i=s(24246),n=s(16134),a=s(31793);let r=e=>(0,n.C)(a.uu).filter(t=>e.includes(t)).length>0;t.ZP=e=>{let{scopes:t,children:s}=e;return r(t)?(0,i.jsx)(i.Fragment,{children:s}):null}},70788:function(e,t,s){"use strict";s.d(t,{m:function(){return c}});var i=s(24246),n=s(77181),a=s(79894),r=s.n(a),l=s(27378);let{Text:o}=n.AntTypography,c=e=>{let{items:t,...s}=e,a=(0,l.useMemo)(()=>null==t?void 0:t.map((e,s)=>{let a=s===t.length-1,l={...e},c=l.onClick&&!l.href;return("string"==typeof l.title&&(l.title=(0,i.jsx)(o,{style:{color:"inherit",maxWidth:a?void 0:400},ellipsis:!a,children:l.title})),c)?l.title=(0,i.jsx)(n.wpx,{type:"text",size:"small",icon:l.icon,onClick:l.onClick,className:"ant-breadcrumb-link -mt-px px-1 text-inherit",children:l.title}):(l.icon&&(l.title=(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("span",{className:"anticon align-text-bottom",children:l.icon}),l.title]})),l.href&&l.title&&(l.title=(0,i.jsx)(r(),{href:l.href,className:"ant-breadcrumb-link",children:l.title}),delete l.href)),l}),[t]);return(0,i.jsx)(n.zrq,{items:a,...s})}},49465:function(e,t,s){"use strict";s.r(t);var i=s(24246),n=s(92222),a=s(59003),r=s(77181),l=s(86677),o=s(27378),c=s(16134),d=s(812),u=s(56358),m=s(77213),p=s(77830),x=s(58754),h=s(19904),g=s(14481),f=s(46628),j=s(1315),C=s(
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3785],{90988:function(e,t,s){(window.__NEXT_P=window.__NEXT_P||[]).push(["/systems",function(){return s(49465)}])},56358:function(e,t,s){"use strict";s.d(t,{q:function(){return n}});var i=s(24246);let n=(0,s(77181).IUT)({displayName:"TrashCanOutlineIcon",viewBox:"0 0 11 12",path:(0,i.jsx)("path",{d:"M4.5166 1.60859L4.1084 2.21875H7.22363L6.81543 1.60859C6.7832 1.56133 6.72949 1.53125 6.67148 1.53125H4.6584C4.60039 1.53125 4.54668 1.55918 4.51445 1.60859H4.5166ZM7.6748 1.03711L8.46328 2.21875H8.75977H9.79102H9.96289C10.2486 2.21875 10.4785 2.44863 10.4785 2.73438C10.4785 3.02012 10.2486 3.25 9.96289 3.25H9.79102V9.78125C9.79102 10.7309 9.02188 11.5 8.07227 11.5H3.25977C2.31016 11.5 1.54102 10.7309 1.54102 9.78125V3.25H1.36914C1.0834 3.25 0.853516 3.02012 0.853516 2.73438C0.853516 2.44863 1.0834 2.21875 1.36914 2.21875H1.54102H2.57227H2.86875L3.65723 1.03496C3.88066 0.701953 4.25664 0.5 4.6584 0.5H6.67148C7.07324 0.5 7.44922 0.701953 7.67266 1.03496L7.6748 1.03711ZM2.57227 3.25V9.78125C2.57227 10.1615 2.87949 10.4688 3.25977 10.4688H8.07227C8.45254 10.4688 8.75977 10.1615 8.75977 9.78125V3.25H2.57227ZM4.29102 4.625V9.09375C4.29102 9.28281 4.13633 9.4375 3.94727 9.4375C3.7582 9.4375 3.60352 9.28281 3.60352 9.09375V4.625C3.60352 4.43594 3.7582 4.28125 3.94727 4.28125C4.13633 4.28125 4.29102 4.43594 4.29102 4.625ZM6.00977 4.625V9.09375C6.00977 9.28281 5.85508 9.4375 5.66602 9.4375C5.47695 9.4375 5.32227 9.28281 5.32227 9.09375V4.625C5.32227 4.43594 5.47695 4.28125 5.66602 4.28125C5.85508 4.28125 6.00977 4.43594 6.00977 4.625ZM7.72852 4.625V9.09375C7.72852 9.28281 7.57383 9.4375 7.38477 9.4375C7.1957 9.4375 7.04102 9.28281 7.04102 9.09375V4.625C7.04102 4.43594 7.1957 4.28125 7.38477 4.28125C7.57383 4.28125 7.72852 4.43594 7.72852 4.625Z",fill:"currentColor"})})},77213:function(e,t,s){"use strict";s.d(t,{Z:function(){return m}});var i=s(24246),n=s(77181),a=s(88038),r=s.n(a),l=s(86677);s(27378);var o=s(25980),c=s(90867),d=s(77830),u=()=>{let e=(0,l.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(d.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."," "]})]})})},m=e=>{let{children:t,title:s,padded:a=!0,mainProps:d}=e,m=(0,o.hz)(),p=(0,l.useRouter)(),x="/privacy-requests"===p.pathname||"/datastore-connection"===p.pathname,h=!(m.flags.privacyRequestsConfiguration&&x),{data:g}=(0,c.JE)(void 0,{skip:h}),{data:f}=(0,c.PW)(void 0,{skip:h}),j=m.flags.privacyRequestsConfiguration&&(!g||!f)&&x;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",...d,children:[j?(0,i.jsx)(u,{}):null,t]})]})}},58754:function(e,t,s){"use strict";var i=s(24246),n=s(77181),a=s(70788);t.Z=e=>{let{heading:t,breadcrumbItems:s,isSticky:r=!0,children:l,rightContent:o,style:c,...d}=e;return(0,i.jsxs)("div",{...d,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",...c}:{paddingBottom:"24px",...c},children:[(0,i.jsxs)(n.jqI,{justify:"space-between",children:["string"==typeof t?(0,i.jsx)(n.X6q,{className:s||l?"pb-4":void 0,fontSize:"2xl","data-testid":"page-heading",children:t}):t,o&&(0,i.jsx)("div",{"data-testid":"page-header-right-content",children:o})]}),!!s&&(0,i.jsx)(a.m,{className:l?"pb-4":void 0,items:s,"data-testid":"page-breadcrumb"}),l]})}},19904:function(e,t,s){"use strict";s.d(t,{Tg:function(){return r}});var i=s(24246),n=s(16134),a=s(31793);let r=e=>(0,n.C)(a.uu).filter(t=>e.includes(t)).length>0;t.ZP=e=>{let{scopes:t,children:s}=e;return r(t)?(0,i.jsx)(i.Fragment,{children:s}):null}},70788:function(e,t,s){"use strict";s.d(t,{m:function(){return c}});var i=s(24246),n=s(77181),a=s(79894),r=s.n(a),l=s(27378);let{Text:o}=n.AntTypography,c=e=>{let{items:t,...s}=e,a=(0,l.useMemo)(()=>null==t?void 0:t.map((e,s)=>{let a=s===t.length-1,l={...e},c=l.onClick&&!l.href;return("string"==typeof l.title&&(l.title=(0,i.jsx)(o,{style:{color:"inherit",maxWidth:a?void 0:400},ellipsis:!a,children:l.title})),c)?l.title=(0,i.jsx)(n.wpx,{type:"text",size:"small",icon:l.icon,onClick:l.onClick,className:"ant-breadcrumb-link -mt-px px-1 text-inherit",children:l.title}):(l.icon&&(l.title=(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("span",{className:"anticon align-text-bottom",children:l.icon}),l.title]})),l.href&&l.title&&(l.title=(0,i.jsx)(r(),{href:l.href,className:"ant-breadcrumb-link",children:l.title}),delete l.href)),l}),[t]);return(0,i.jsx)(n.zrq,{items:a,...s})}},49465:function(e,t,s){"use strict";s.r(t);var i=s(24246),n=s(92222),a=s(59003),r=s(77181),l=s(86677),o=s(27378),c=s(16134),d=s(812),u=s(56358),m=s(77213),p=s(77830),x=s(58754),h=s(19904),g=s(14481),f=s(46628),j=s(1315),C=s(21702),y=s(31883);let v=(0,n.Cl)(),b={items:[],total:0,page:1,size:25,pages:1},w=()=>(0,i.jsxs)(r.gCW,{mt:6,p:10,spacing:4,borderRadius:"base",maxW:"70%","data-testid":"no-results-notice",alignSelf:"center",margin:"auto",textAlign:"center",children:[(0,i.jsxs)(r.gCW,{children:[(0,i.jsx)(r.xvT,{fontSize:"md",fontWeight:"600",children:"No systems found."}),(0,i.jsx)(r.xvT,{fontSize:"sm",children:'Click "Add a system" to add your first system to Fides.'})]}),(0,i.jsx)(r.wpx,{href:p.xo,size:"small",type:"primary","data-testid":"add-privacy-notice-btn",children:"Add a system +"})]});t.default=()=>{let e=(0,l.useRouter)(),t=(0,c.T)(),s=(0,r.pmc)(),{isOpen:k,onOpen:R,onClose:_}=(0,r.qY0)(),[z]=(0,j.DW)(),[N,T]=o.useState(null),{PAGE_SIZES:H,pageSize:S,setPageSize:P,onPreviousPageClick:M,isPreviousPageDisabled:V,onNextPageClick:D,isNextPageDisabled:E,startRange:Z,endRange:q,pageIndex:F,setTotalPages:W,resetPageIndexToDefault:L}=(0,g.oi)(),[A,I]=(0,o.useState)(),O=(0,o.useCallback)(e=>{L(),I(e)},[L,I]),{data:B,isLoading:G,isFetching:Y}=(0,j.xF)({page:F,size:S,search:A}),{items:U,total:X,pages:K}=(0,o.useMemo)(()=>null!=B?B:b,[B]);(0,o.useEffect)(()=>{W(K)},[K,W]);let Q=e=>e.name&&""!==e.name?e.name:e.fides_key,$=(0,o.useCallback)(s=>{t((0,j.db)(s)),e.push({pathname:p.Dv,query:{id:s.fides_key},hash:"#information"})},[t,e]),J=async e=>{let t=await z(e.fides_key);(0,y.D4)(t)?s((0,f.Vo)((0,d.e$)(t.error))):s((0,f.t5)("Successfully deleted system")),_()},ee=(0,o.useMemo)(()=>[v.accessor(e=>e.name,{id:"name",cell:e=>(0,i.jsx)(g.G3,{value:Q(e.row.original)}),header:e=>(0,i.jsx)(g.Rr,{value:"System Name",...e}),size:200}),v.accessor(e=>e.description,{id:"description",header:e=>(0,i.jsx)(g.Rr,{value:"Description",...e}),cell:e=>(0,i.jsx)(g.G3,{value:e.getValue(),cellProps:e}),size:300,meta:{showHeaderMenu:!0}}),v.accessor(e=>e.administrating_department,{id:"department",cell:e=>(0,i.jsx)(g.G3,{value:e.getValue()}),header:e=>(0,i.jsx)(g.Rr,{value:"Department",...e}),size:200}),v.accessor(e=>e.processes_personal_data,{id:"processes_personal_data",cell:e=>(0,i.jsx)(g.G3,{value:e.getValue()?"Yes":"No"}),header:e=>(0,i.jsx)(g.Rr,{value:"Processes Personal Data",...e}),size:100}),v.display({id:"actions",header:"Actions",cell:e=>{let{row:t}=e,s=t.original;return(0,i.jsxs)(r.Ugi,{spacing:0,"data-testid":"system-".concat(s.fides_key),children:[(0,i.jsx)(r.wpx,{"aria-label":"Edit property","data-testid":"edit-btn",size:"small",className:"mr-2",icon:(0,i.jsx)(r.dY8,{}),onClick:()=>$(s)}),(0,i.jsx)(h.ZP,{scopes:[C.Sh.SYSTEM_DELETE],children:(0,i.jsx)(r.wpx,{"aria-label":"Delete system","data-testid":"delete-btn",size:"small",className:"mr-2",icon:(0,i.jsx)(u.q,{}),onClick:()=>{T(s),R()}})})]})},meta:{disableRowClick:!0}})],[$,R]),et=(0,a.b7)({getCoreRowModel:(0,n.sC)(),getFilteredRowModel:(0,n.vL)(),getSortedRowModel:(0,n.tj)(),columnResizeMode:"onChange",columns:ee,data:U});return(0,i.jsx)(m.Z,{title:"System inventory",children:(0,i.jsxs)(r.xuv,{"data-testid":"system-management",children:[(0,i.jsx)(x.Z,{heading:"System inventory",breadcrumbItems:[{title:"All systems"}]}),G?(0,i.jsx)(g.I4,{rowHeight:36,numRows:15}):(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(g.Q$,{children:(0,i.jsx)(g.HO,{globalFilter:A,setGlobalFilter:O,placeholder:"Search",testid:"system-search"})}),(0,i.jsx)(g.ZK,{tableInstance:et,emptyTableNotice:(0,i.jsx)(w,{}),onRowClick:$})]}),(0,i.jsx)(g.s8,{totalRows:X||0,pageSizes:H,setPageSize:P,onPreviousPageClick:M,isPreviousPageDisabled:V||Y,onNextPageClick:D,isNextPageDisabled:E||Y,startRange:Z,endRange:q}),(0,i.jsx)(r.cVQ,{isOpen:k,onClose:_,onConfirm:()=>J(N),title:"Delete ".concat(N&&Q(N)),message:(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)(r.xvT,{children:["You are about to permanently delete the system"," ",(0,i.jsx)(r.xvT,{color:"complimentary.500",as:"span",fontWeight:"bold",whiteSpace:"nowrap",children:N&&Q(N)}),"."]}),(0,i.jsx)(r.xvT,{children:"Are you sure you would like to continue?"})]})})]})})}},31883:function(e,t,s){"use strict";s.d(t,{Bw:function(){return i.Bw},D4:function(){return i.D4}});var i=s(19043)}},function(e){e.O(0,[8033,6060,4481,2888,9774,179],function(){return e(e.s=90988)}),_N_E=e.O()}]);
|
@@ -1 +1 @@
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4202],{71180:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/taxonomy",function(){return n(31537)}])},79806:function(e,t,n){"use strict";n.d(t,{Gn:function(){return l},zR:function(){return a}});var r=n(24246),s=n(77181),i=n(56358);let a=e=>{let{title:t}=e;return(0,r.jsx)(s.OXI,{py:0,display:"flex",alignItems:"flex-start",children:(0,r.jsx)(s.xvT,{mr:"2",color:"gray.700",fontSize:"lg",lineHeight:1.8,children:t})})},l=e=>{let{onDelete:t,onEditYaml:n,formId:a,isSaving:l}=e;return(0,r.jsxs)(s.zeN,{justifyContent:"space-between",children:[t?(0,r.jsx)(s.wpx,{"aria-label":"delete",icon:(0,r.jsx)(i.q,{fontSize:"small"}),onClick:t,"data-testid":"delete-btn"}):null,(0,r.jsxs)("div",{className:"flex gap-2",children:[n&&(0,r.jsx)(s.wpx,{onClick:n,"data-testid":"edit-yaml-btn",children:"Edit YAML"}),(0,r.jsx)(s.wpx,{htmlType:"submit",type:"primary","data-testid":"save-btn",form:a,loading:l,children:"Save"})]})]})};t.ZP=e=>{let{header:t,description:n,isOpen:i,onClose:a,children:l,footer:o}=e;return(0,r.jsxs)(s.dys,{placement:"right",isOpen:i,onClose:a,size:"md",children:[(0,r.jsx)(s.P1B,{}),(0,r.jsxs)(s.scA,{"data-testid":"edit-drawer-content",py:2,children:[(0,r.jsxs)(s.xuv,{display:"flex",justifyContent:"space-between",alignItems:"top",mr:2,py:2,gap:2,children:[(0,r.jsx)(s.xuv,{flex:1,minH:8,children:t}),(0,r.jsx)(s.xuv,{display:"flex",justifyContent:"flex-end",mr:2,children:(0,r.jsx)(s.wpx,{"aria-label":"Close editor",onClick:a,"data-testid":"close-drawer-btn",icon:(0,r.jsx)(s.Two,{fontSize:"smaller"})})})]}),(0,r.jsxs)(s.Ng0,{pt:1,children:[n?(0,r.jsx)(s.xvT,{fontSize:"sm",mb:4,color:"gray.600",children:n}):null,l]}),o]})]})}},18225:function(e,t,n){"use strict";var r=n(24246),s=n(77181);t.Z=e=>{let{...t}=e;return(0,r.jsx)(s.kCb,{boxSize:"full",align:"center",justify:"center",children:(0,r.jsx)(s.$jN,{color:"primary",...t})})}},56358:function(e,t,n){"use strict";n.d(t,{q:function(){return s}});var r=n(24246);let s=(0,n(77181).IUT)({displayName:"TrashCanOutlineIcon",viewBox:"0 0 11 12",path:(0,r.jsx)("path",{d:"M4.5166 1.60859L4.1084 2.21875H7.22363L6.81543 1.60859C6.7832 1.56133 6.72949 1.53125 6.67148 1.53125H4.6584C4.60039 1.53125 4.54668 1.55918 4.51445 1.60859H4.5166ZM7.6748 1.03711L8.46328 2.21875H8.75977H9.79102H9.96289C10.2486 2.21875 10.4785 2.44863 10.4785 2.73438C10.4785 3.02012 10.2486 3.25 9.96289 3.25H9.79102V9.78125C9.79102 10.7309 9.02188 11.5 8.07227 11.5H3.25977C2.31016 11.5 1.54102 10.7309 1.54102 9.78125V3.25H1.36914C1.0834 3.25 0.853516 3.02012 0.853516 2.73438C0.853516 2.44863 1.0834 2.21875 1.36914 2.21875H1.54102H2.57227H2.86875L3.65723 1.03496C3.88066 0.701953 4.25664 0.5 4.6584 0.5H6.67148C7.07324 0.5 7.44922 0.701953 7.67266 1.03496L7.6748 1.03711ZM2.57227 3.25V9.78125C2.57227 10.1615 2.87949 10.4688 3.25977 10.4688H8.07227C8.45254 10.4688 8.75977 10.1615 8.75977 9.78125V3.25H2.57227ZM4.29102 4.625V9.09375C4.29102 9.28281 4.13633 9.4375 3.94727 9.4375C3.7582 9.4375 3.60352 9.28281 3.60352 9.09375V4.625C3.60352 4.43594 3.7582 4.28125 3.94727 4.28125C4.13633 4.28125 4.29102 4.43594 4.29102 4.625ZM6.00977 4.625V9.09375C6.00977 9.28281 5.85508 9.4375 5.66602 9.4375C5.47695 9.4375 5.32227 9.28281 5.32227 9.09375V4.625C5.32227 4.43594 5.47695 4.28125 5.66602 4.28125C5.85508 4.28125 6.00977 4.43594 6.00977 4.625ZM7.72852 4.625V9.09375C7.72852 9.28281 7.57383 9.4375 7.38477 9.4375C7.1957 9.4375 7.04102 9.28281 7.04102 9.09375V4.625C7.04102 4.43594 7.1957 4.28125 7.38477 4.28125C7.57383 4.28125 7.72852 4.43594 7.72852 4.625Z",fill:"currentColor"})})},77213:function(e,t,n){"use strict";n.d(t,{Z:function(){return m}});var r=n(24246),s=n(77181),i=n(88038),a=n.n(i),l=n(86677);n(27378);var o=n(25980),d=n(90867),u=n(77830),c=()=>{let e=(0,l.useRouter)();return(0,r.jsx)(s.xuv,{bg:"gray.50",border:"1px solid",borderColor:"blue.400",borderRadius:"md",justifyContent:"space-between",p:5,mb:5,mt:5,children:(0,r.jsxs)(s.xuv,{children:[(0,r.jsxs)(s.Kqy,{direction:{base:"column",sm:"row"},justifyContent:"space-between",children:[(0,r.jsx)(s.xvT,{fontWeight:"semibold",children:"Configure your storage and messaging provider"}),(0,r.jsx)(s.wpx,{onClick:()=>{e.push(u.fz)},children:"Configure"})]}),(0,r.jsxs)(s.xvT,{children:["Before Fides can process your privacy requests we need two simple steps to configure your storage and email client."," "]})]})})},m=e=>{let{children:t,title:n,padded:i=!0,mainProps:u}=e,m=(0,o.hz)(),x=(0,l.useRouter)(),f="/privacy-requests"===x.pathname||"/datastore-connection"===x.pathname,y=!(m.flags.privacyRequestsConfiguration&&f),{data:h}=(0,d.JE)(void 0,{skip:y}),{data:p}=(0,d.PW)(void 0,{skip:y}),_=m.flags.privacyRequestsConfiguration&&(!h||!p)&&f;return(0,r.jsxs)(s.kCb,{"data-testid":n,direction:"column",h:"100vh",children:[(0,r.jsxs)(a(),{children:[(0,r.jsxs)("title",{children:["Fides Admin UI - ",n]}),(0,r.jsx)("meta",{name:"description",content:"Privacy Engineering Platform"}),(0,r.jsx)("link",{rel:"icon",href:"/favicon.ico"})]}),(0,r.jsxs)(s.kCb,{as:"main",direction:"column",py:i?6:0,px:i?10:0,h:i?"calc(100% - 48px)":"full",flex:1,minWidth:0,overflow:"auto",...u,children:[_?(0,r.jsx)(c,{}):null,t]})]})}},19904:function(e,t,n){"use strict";n.d(t,{Tg:function(){return a}});var r=n(24246),s=n(16134),i=n(31793);let a=e=>(0,s.C)(i.uu).filter(t=>e.includes(t)).length>0;t.ZP=e=>{let{scopes:t,children:n}=e;return a(t)?(0,r.jsx)(r.Fragment,{children:n}):null}},812:function(e,t,n){"use strict";n.d(t,{D4:function(){return i.D4},MM:function(){return m},Ot:function(){return d},c6:function(){return s},cj:function(){return f},e$:function(){return l},fn:function(){return o},iC:function(){return x},nU:function(){return c},tB:function(){return u}});var r,s,i=n(19043);let a="An unexpected error occurred. Please try again.",l=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:a;if((0,i.Bw)(e)){if((0,i.hE)(e.data))return e.data.detail;if((0,i.cz)(e.data)){var n;let t=null===(n=e.data.detail)||void 0===n?void 0:n[0];return"".concat(null==t?void 0:t.msg,": ").concat(null==t?void 0:t.loc)}if(409===e.status&&(0,i.Dy)(e.data)||404===e.status&&(0,i.XD)(e.data))return"".concat(e.data.detail.error," (").concat(e.data.detail.fides_key,")")}return t};function 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 u(e){return"object"==typeof e&&null!=e&&"data"in e&&Array.isArray(e.data.detail)}let c=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{status:500,message:a};if((0,i.oK)(e))return{status:e.originalStatus,message:e.data};if((0,i.Bw)(e)){let{status:n}=e;return{status:n,message:l(e,t.message)}}return t},m=e=>Object.entries(e).map(e=>({value:e[1],label:e[1]}));(r=s||(s={})).GVL="gvl",r.AC="gacp",r.COMPASS="compass";let x={gvl:{label:"GVL",fullName:"Global Vendor List"},gacp:{label:"AC",fullName:"Google Additional Consent List"},compass:{label:"",fullName:""}},f=e=>{let t=e.split(".")[0];return"gacp"===t?"gacp":"gvl"===t?"gvl":"compass"}},46628:function(e,t,n){"use strict";n.d(t,{MA:function(){return l},Vo:function(){return d},t5:function(){return o}});var r=n(24246),s=n(77181);let i=e=>{let{children:t,title:n="Success"}=e;return(0,r.jsxs)(s.xvT,{"data-testid":"toast-success-msg",children:[(0,r.jsxs)("strong",{children:[n,":"]})," ",t]})},a=e=>{let{children:t}=e;return(0,r.jsxs)(s.xvT,{"data-testid":"toast-error-msg",children:[(0,r.jsx)("strong",{children:"Error:"})," ",t]})},l={variant:"subtle",position:"top",description:"",duration:5e3,status:"success",isClosable:!0},o=(e,t)=>{let n=(0,r.jsx)(i,{title:t,children:e});return{...l,description:n}},d=e=>{let t=(0,r.jsx)(a,{children:e});return{...l,description:t,status:"error"}}},59001:function(e,t,n){"use strict";n.d(t,{Ch:function(){return a},Hy:function(){return l},Lo:function(){return s}});var r,s,i=n(28120);let a="root";(r=s||(s={})).DATA_CATEGORIES="Data categories",r.DATA_USES="Data uses",r.DATA_SUBJECTS="Data subjects";let l=e=>{switch(e){case"Data categories":return{UPDATE:i.Sh.DATA_CATEGORY_UPDATE,CREATE:i.Sh.DATA_CATEGORY_CREATE,DELETE:i.Sh.DATA_CATEGORY_DELETE,READ:i.Sh.DATA_CATEGORY_READ};case"Data uses":return{UPDATE:i.Sh.DATA_USE_UPDATE,CREATE:i.Sh.DATA_USE_CREATE,DELETE:i.Sh.DATA_USE_DELETE,READ:i.Sh.DATA_USE_READ};case"Data subjects":return{UPDATE:i.Sh.DATA_SUBJECT_UPDATE,CREATE:i.Sh.DATA_SUBJECT_CREATE,DELETE:i.Sh.DATA_SUBJECT_DELETE,READ:i.Sh.DATA_SUBJECT_READ};default:throw Error("Unknown taxonomy type: ".concat(e))}}},90673:function(e,t,n){"use strict";n.d(t,{Cd:function(){return i},Xl:function(){return a}});var r=n(28120),s=n(59001);let i=(e,t)=>{let n;if(null==t&&e.every(e=>void 0===e.parent_key))n=e;else{let r=null!=t?t:null;n=e.filter(e=>e.parent_key===r)}return n.map(t=>{var n,r;let s=t.fides_key;return{value:t.fides_key,label:""===t.name||null==t.name?t.fides_key:t.name,description:t.description,children:i(e,s),is_default:null!==(n=t.is_default)&&void 0!==n&&n,active:null!==(r=t.active)&&void 0!==r&&r}})},a=e=>{switch(e){case s.Lo.DATA_CATEGORIES:return r.P6.DATA_CATEGORY;case s.Lo.DATA_SUBJECTS:return r.P6.DATA_SUBJECT;case s.Lo.DATA_USES:return r.P6.DATA_USE;default:return}}},31537:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return er}});var r,s,i=n(24246),a=n(77181),l=n(69238),o=n.n(l),d=n(63662),u=n(27378),c=n(812),m=n(77213),x=n(58754),f=n(19904),y=n(46628),h=n(95346),p=n(56358),_=n(31883),T=n(79806),v=n(59001),E=n(90673),g=n(30002),C=n(28079),j=n(39864),A=e=>{let{taxonomyType:t}=e,[n,r]=(0,j.Vj)(),[s,i]=(0,g.nC)(),[a,l]=(0,C.dk)(),[o]=(0,j.Ti)(),[d]=(0,C.Ql)(),[u]=(0,g.wG)(),[c]=(0,j.jU)(),[m]=(0,C.LG)(),[x]=(0,g.h8)(),[f]=(0,j.K9)(),[y]=(0,C.gu)(),[h]=(0,g.Kv)();return t===v.Lo.DATA_SUBJECTS?{getAllTrigger:s,taxonomyItems:i.data||[],updateTrigger:x,deleteTrigger:h,createTrigger:u}:t===v.Lo.DATA_USES?{getAllTrigger:a,taxonomyItems:l.data||[],updateTrigger:m,deleteTrigger:y,createTrigger:d}:{getAllTrigger:n,taxonomyItems:r.data||[],updateTrigger:c,deleteTrigger:f,createTrigger:o}},b=n(90104),S=n.n(b),I=n(18225),D=n(28120),N=e=>{let{customFields:t,formId:n,form:r}=e,{idToAllowListWithOptions:s,idToCustomFieldDefinition:l,isEnabled:o,isLoading:d,sortedCustomFieldDefinitionIds:u}=t;return o&&0!==u.length?(0,i.jsxs)(a.PPS,{form:r,name:n,initialValues:t.customFieldValues,layout:"vertical","data-testid":"custom-fields-form",children:[(0,i.jsx)(a.AntTypography.Title,{level:5,children:"Custom fields"}),d?(0,i.jsx)(I.Z,{}):(0,i.jsx)("div",{children:!S()(u)&&(0,i.jsx)("div",{children:u.map(e=>{let t=l.get(e);if(!t)return null;let{id:n,name:r,description:o,allow_list_id:d,field_type:u}=t;if(!d&&u===D.AL.STRING)return(0,i.jsx)(a.PPS.Item,{name:n,label:r,tooltip:o,children:(0,i.jsx)(a.uFc,{})},e);let c=s.get(t.allow_list_id);if(!c)return null;let{options:m}=c;return(0,i.jsx)(a.PPS.Item,{name:n,label:r,tooltip:o,children:(0,i.jsx)(a.WPr,{mode:"string"!==u?"multiple":void 0,allowClear:!0,options:m})},e)})})})]}):null},k=n(43551),R=n.n(k),w=()=>{let e=a.PPS.useFormInstance(),t=a.PPS.useWatch(["rights","values"],e);return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(a.PPS.Item,{label:"Automated Decisions or Profiling",name:"automated_decisions_or_profiling",layout:"horizontal",valuePropName:"checked",children:(0,i.jsx)(a.E_O,{"data-testid":"edit-taxonomy-form_automated-decisions"})}),(0,i.jsx)(a.PPS.Item,{name:["rights","values"],label:"Rights",children:(0,i.jsx)(a.WPr,{mode:"multiple",options:(0,c.MM)(D.ts),"data-testid":"edit-taxonomy-form_rights"})}),t&&!S()(t)&&(0,i.jsx)(a.PPS.Item,{name:["rights","strategy"],label:"Strategy",required:!0,rules:[{required:!0,message:"Please select a strategy"}],children:(0,i.jsx)(a.WPr,{options:(0,c.MM)(D.jX),"data-testid":"edit-taxonomy-form_strategy"})})]})},P=e=>{let{initialValues:t,onSubmit:n,form:r,formId:s,taxonomyType:l,isDisabled:o}=e,d=l===v.Lo.DATA_SUBJECTS;return(0,i.jsxs)(a.PPS,{name:s,initialValues:t,onFinish:e=>{var r,s;let i={...t,...e};(!(null==i?void 0:null===(r=i.rights)||void 0===r?void 0:r.values)||S()(null==i?void 0:null===(s=i.rights)||void 0===s?void 0:s.values))&&R()(i,"rights"),n(i)},layout:"vertical",form:r,children:[(0,i.jsx)(a.PPS.Item,{label:"Name",name:"name",children:(0,i.jsx)(a.uFc,{"data-testid":"edit-taxonomy-form_name",disabled:o})}),(0,i.jsx)(a.PPS.Item,{label:"Description",name:"description",children:(0,i.jsx)(a.uFc.TextArea,{rows:4,"data-testid":"edit-taxonomy-form_description",disabled:o})}),d&&(0,i.jsx)(w,{})]})},O=e=>{let{taxonomyItem:t,taxonomyType:n,onClose:r}=e,s="edit-taxonomy-form",[l]=a.PPS.useForm(),[o]=a.PPS.useForm(),d=(0,a.pmc)(),{isOpen:u,onOpen:m,onClose:x}=(0,a.qY0)(),{updateTrigger:g}=A({taxonomyType:n}),C=(0,h.mZ)({resourceFidesKey:null==t?void 0:t.fides_key,resourceType:(0,E.Xl)(n)}),j=(0,f.Tg)([(0,v.Hy)(n).UPDATE]),b=(0,f.Tg)([(0,v.Hy)(n).DELETE]),S=async e=>{let n=await g(e);if((0,_.D4)(n)){d((0,y.Vo)((0,c.e$)(n.error)));return}if(C.isEnabled){let e=o.getFieldsValue();await C.upsertCustomFields({fides_key:null==t?void 0:t.fides_key,customFieldValues:e})}d((0,y.t5)("Taxonomy successfully updated")),r()},I=async()=>{await g({...t,active:!1}),x(),r()},D=async()=>{await g({...t,active:!0}),x(),r()};return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)(T.ZP,{isOpen:!!t,onClose:r,header:(0,i.jsx)(T.zR,{title:(null==t?void 0:t.name)||""}),footer:(0,i.jsxs)(a.zeN,{justifyContent:"space-between",children:[(null==t?void 0:t.active)&&b&&(0,i.jsx)(a.esZ,{title:"Delete label",children:(0,i.jsx)(a.wpx,{"aria-label":"delete",icon:(0,i.jsx)(p.q,{fontSize:"small"}),onClick:m,"data-testid":"delete-btn"})}),!(null==t?void 0:t.active)&&j&&(0,i.jsx)(a.esZ,{title:"Enable label",children:(0,i.jsx)(a.wpx,{"aria-label":"enable",onClick:D,"data-testid":"enable-btn",icon:(0,i.jsx)(a.tEF,{fontSize:"small"})})}),(0,i.jsx)("div",{className:"flex gap-2",children:j&&(0,i.jsx)(a.wpx,{htmlType:"submit",type:"primary","data-testid":"save-btn",form:s,children:"Save"})})]}),children:[(0,i.jsxs)("div",{className:"mb-4",children:[(0,i.jsx)(a.AntTypography.Title,{level:5,children:"Details"}),(0,i.jsxs)("div",{className:"flex",children:[(0,i.jsx)("span",{className:"w-1/3 shrink-0 text-sm text-gray-500",children:"Fides key:"}),(0,i.jsx)(a.esZ,{title:null==t?void 0:t.fides_key,trigger:"click",children:(0,i.jsx)("span",{className:"flex-1 truncate","data-testid":"edit-drawer-fides-key",children:null==t?void 0:t.fides_key})})]})]}),!!t&&(0,i.jsx)(P,{initialValues:t,onSubmit:S,form:l,formId:s,taxonomyType:n,isDisabled:!j}),C.isEnabled&&!C.isLoading&&(0,i.jsx)(N,{form:o,formId:"custom-fields-form",customFields:C})]}),(0,i.jsx)(a.cVQ,{isOpen:u,onClose:x,onConfirm:I,title:"Delete ".concat(n),message:(0,i.jsx)(a.Kqy,{children:(0,i.jsxs)(a.xvT,{children:["You are about to permanently delete the ",n," ",(0,i.jsx)(a.xvT,{color:"complimentary.500",as:"span",fontWeight:"bold",children:null==t?void 0:t.name})," ","from your taxonomy. Are you sure you would like to continue?"]})})})]})};n(51901);var L=n(86298),V=n(3124),H=n.n(V);(r=s||(s={})).DEFAULT="DEFAULT",r.ACTIVE_HOVER="ACTIVE_HOVER",r.PARENT_OF_HOVER="PARENT_OF_HOVER",r.CHILD_OF_HOVER="CHILD_OF_HOVER",r.SIBLING_OF_HOVER="SIBLING_OF_HOVER",r.INACTIVE="INACTIVE";let F=(0,u.createContext)({activeNodeKey:null,setActiveNodeKey:()=>{},onMouseEnter:()=>{},onMouseLeave:()=>{},getNodeHoverStatus:()=>"DEFAULT"}),U=e=>{let{children:t}=e,[n,r]=(0,u.useState)(null),s=(0,u.useCallback)(e=>{e!==n&&r(e)},[n]),a=(0,u.useCallback)(()=>{r(null)},[]),l=(0,u.useCallback)(e=>n?e===n?"ACTIVE_HOVER":n.startsWith("".concat(e,"."))||e===v.Ch?"PARENT_OF_HOVER":e.startsWith("".concat(n,"."))||n===v.Ch?"CHILD_OF_HOVER":n.split(".").slice(0,-1).join(".")===e.split(".").slice(0,-1).join(".")?"SIBLING_OF_HOVER":"INACTIVE":"DEFAULT",[n]),o=(0,u.useMemo)(()=>({activeNodeKey:n,setActiveNodeKey:r,onMouseEnter:s,onMouseLeave:a,getNodeHoverStatus:l}),[n,r,s,a,l]);return(0,i.jsx)(F.Provider,{value:o,children:t})};var M=n(62266),z=n(79658);let B=(0,M.Z)();var Z=e=>{let{nodes:t,edges:n,options:r}=e;return(0,u.useMemo)(()=>{if(0===t.length)return{nodes:t,edges:n};let e=(0,z.Z)().id(e=>e.id).parentId(e=>{var t;return null===(t=n.find(t=>t.target===e.id))||void 0===t?void 0:t.source})(t),s="LR"===r.direction?[35,320]:[320,35];return{nodes:B.nodeSize(s).separation((e,t)=>e.parent===t.parent?1:1.5)(e).descendants().map(e=>{let t;return t="LR"===r.direction?{x:e.y,y:e.x}:{x:e.x,y:e.y},{...e.data,position:t}}),edges:n}},[t,n,r])},G=e=>{let{positionAbsoluteX:t,positionAbsoluteY:n,nodeWidth:r}=e,{setCenter:s,getZoom:i}=(0,L._K)();return{centerScreenOnNode:(0,u.useCallback)(()=>s(t+r/2,n,{duration:500,zoom:i()}),[i,t,n,r,s])}},q=n(1945),K=n.n(q),W=n(8335),J=e=>{let{type:t,inactive:n=!1}=e;return(0,i.jsx)(L.HH,{type:t,position:"source"===t?W.Ly.Right:W.Ly.Left,style:{width:8,height:8,backgroundColor:n?H().FIDESUI_NEUTRAL_400:H().FIDESUI_MINOS},className:"transition-colors duration-300 ease-in"})},X=e=>{let{data:t,positionAbsoluteX:n,positionAbsoluteY:r}=e,{onCancel:s,onSubmit:l,parentKey:o}=t,d=(0,u.useRef)(null),[c,m]=(0,u.useState)(""),{centerScreenOnNode:x}=G({positionAbsoluteX:n,positionAbsoluteY:r,nodeWidth:200});return(0,u.useEffect)(()=>{m("");let e=()=>{var e;return null===(e=d.current)||void 0===e?void 0:e.focus({cursor:"start",preventScroll:!0})};(async()=>{await x(),e()})()},[o,x,n,r]),(0,i.jsxs)("div",{style:{width:200},"data-testid":"taxonomy-text-input-node",children:[(0,i.jsx)(a.uFc,{placeholder:"Type label name...",ref:d,onBlur:s,onSubmit:()=>l(c),value:c,onChange:e=>m(e.target.value),onKeyUp:e=>{"Escape"===e.key&&s()},onPressEnter:()=>l(c),className:K().input}),(0,i.jsx)(J,{type:"target"})]})},Y=e=>{let{getNodeHoverStatus:t}=(0,u.useContext)(F),{target:n}=e,r=t(n),a=(0,u.useCallback)(()=>{switch(r){case s.ACTIVE_HOVER:case s.PARENT_OF_HOVER:return H().FIDESUI_MINOS;case s.INACTIVE:return H().NEUTRAL_400;default:return H().FIDESUI_SANDSTONE}},[r]),l=(0,u.useCallback)(()=>{switch(r){case s.ACTIVE_HOVER:case s.PARENT_OF_HOVER:return 2;default:return 1}},[r]);return(0,i.jsx)(L.Jd,{...e,style:{stroke:a(),strokeWidth:l(),transition:"stroke 0.3s ease 0s"}})},$=n(34770),Q=n.n($),ee=e=>{let{data:t,positionAbsoluteX:n,positionAbsoluteY:r}=e,{onMouseEnter:l,onMouseLeave:o,getNodeHoverStatus:d}=(0,u.useContext)(F),{taxonomyType:c,taxonomyItem:m,onAddButtonClick:x,onTaxonomyItemClick:f,label:y,hasChildren:h,isLastCreatedItem:p,resetLastCreatedItemKey:_,userCanAddLabels:T}=t,{centerScreenOnNode:E}=G({positionAbsoluteX:n,positionAbsoluteY:r,nodeWidth:200});(0,u.useEffect)(()=>{let e=async()=>{await E(),l(null==m?void 0:m.fides_key)};p&&(e(),_())},[p,l,null==m?void 0:m.fides_key,_,E]);let g=d(null==m?void 0:m.fides_key),C=(0,u.useCallback)(()=>{switch(g){case s.ACTIVE_HOVER:return Q()["button--hover"];case s.PARENT_OF_HOVER:return Q()["button--parent-hover"];case s.INACTIVE:return Q()["button--inactive"];case s.DEFAULT:case s.CHILD_OF_HOVER:case s.SIBLING_OF_HOVER:default:return""}},[g]),j=(null==m?void 0:m.fides_key)===v.Ch,A=c===v.Lo.DATA_SUBJECTS;return(0,i.jsxs)("div",{className:Q().container,onMouseEnter:()=>l(null==m?void 0:m.fides_key),onMouseLeave:()=>o(null==m?void 0:m.fides_key),"data-testid":"taxonomy-node-".concat(null==m?void 0:m.fides_key),children:[(0,i.jsx)(a.wpx,{className:"".concat(Q().button," ").concat(C()),onClick:()=>null==f?void 0:f(m),disabled:!f,type:"text",children:(0,i.jsxs)(a.AntTypography.Text,{ellipsis:!0,style:{color:"inherit"},children:[(null==m?void 0:m.active)===!1?"(disabled) ":"",y]})}),!j&&(0,i.jsx)(J,{type:"target",inactive:g===s.INACTIVE}),h&&(0,i.jsx)(J,{type:"source",inactive:g===s.INACTIVE}),T&&(!A||j)&&(0,i.jsx)("div",{className:Q()["add-button-container"],children:(0,i.jsx)(a.wpx,{type:"default",className:"".concat(Q()["add-button"]," ").concat(g===s.ACTIVE_HOVER?Q()["add-button--visible"]:""),icon:(0,i.jsx)(a.PJP.mm_,{size:20}),onClick:()=>null==x?void 0:x(m),size:"middle","data-testid":"taxonomy-add-child-label-button","aria-label":"Add child label to ".concat(y)})})]})};let et=e=>{let{taxonomyType:t,taxonomyItems:n,draftNewItem:r,lastCreatedItemKey:s,resetLastCreatedItemKey:a,onTaxonomyItemClick:l,onAddButtonClick:o,onCancelDraftItem:d,onSubmitDraftItem:c,userCanAddLabels:m}=e,{fitView:x}=(0,L._K)();(0,u.useEffect)(()=>{setTimeout(()=>x(),150)},[x,t]);let f=[(0,u.useMemo)(()=>({id:v.Ch,position:{x:0,y:0},data:{label:t,taxonomyItem:{fides_key:v.Ch},taxonomyType:t,onTaxonomyItemClick:null,onAddButtonClick:o,hasChildren:0!==n.length,userCanAddLabels:m},type:"taxonomyTreeNode"}),[t,n.length,o,m])],y=[];if(n.forEach(e=>{let n=e.name||e.fides_key.split(".").pop()||"",r={id:e.fides_key,position:{x:0,y:0},data:{label:n,taxonomyType:t,taxonomyItem:e,onTaxonomyItemClick:l,onAddButtonClick:o,hasChildren:!1,isLastCreatedItem:s===e.fides_key,resetLastCreatedItemKey:a,userCanAddLabels:m},type:"taxonomyTreeNode"};f.push(r);let i=e.parent_key?f.find(t=>t.id===e.parent_key):null,d=i?i.id:v.Ch,u=e.fides_key,c={id:"".concat(d,"-").concat(u),source:d,target:u,type:"taxonomyTreeEdge"};y.push(c),i&&(i.data.hasChildren=!0)}),r){let e=r.parent_key||v.Ch;f.push({id:"draft-node",position:{x:0,y:0},type:"textInputNode",data:{parentKey:e,onCancel:d,onSubmit:c},hidden:!r}),y.push({id:"draft-line",source:e,target:"draft-node",animated:!0});let t=f.find(t=>t.id===e);t&&(t.data.hasChildren=!0)}let{nodes:h,edges:p}=Z({nodes:f,edges:y,options:{direction:"LR"}}),_=(0,u.useMemo)(()=>({taxonomyTreeNode:ee,textInputNode:X}),[]),T=(0,u.useMemo)(()=>({taxonomyTreeEdge:Y}),[]);return(0,i.jsx)("div",{className:"size-full",style:{backgroundColor:H().FIDESUI_BG_CORINTH},"data-testid":"taxonomy-interactive-tree",children:(0,i.jsx)(U,{children:(0,i.jsxs)(L.x$,{nodes:h,edges:p,nodeTypes:_,edgeTypes:T,maxZoom:2,minZoom:.3,nodesConnectable:!1,edgesFocusable:!1,elementsSelectable:!1,proOptions:{hideAttribution:!0},children:[(0,i.jsx)(L.Aq,{color:H().FIDESUI_NEUTRAL_100,variant:L.T7.Dots,size:3}),(0,i.jsx)(L.a9,{nodeStrokeWidth:3,pannable:!0}),(0,i.jsx)(L.ZX,{showInteractive:!1})]})})})};var en=e=>(0,i.jsx)(L.tV,{children:(0,i.jsx)(et,{...e})}),er=()=>{let[e,t]=(0,u.useState)(v.Lo.DATA_CATEGORIES),{createTrigger:n,getAllTrigger:r,taxonomyItems:s=[]}=A({taxonomyType:e}),l=(0,d.useSearchParams)(),h=(null==l?void 0:l.get("showDisabledItems"))==="true";(0,u.useEffect)(()=>{r()},[r,e]);let[p,_]=(0,u.useState)(null),[T,E]=(0,u.useState)(null),[g,C]=(0,u.useState)(null);(0,u.useEffect)(()=>{E(null),C(null),_(null)},[e]);let j=(0,a.pmc)(),b=(0,u.useCallback)(async e=>{if(!T)return;let t=(null==T?void 0:T.parent_key)===v.Ch,r={...T,name:e,parent_key:t?null:T.parent_key},s=await n(r);if((0,c.D4)(s)){j((0,y.Vo)((0,c.e$)(s.error)));return}C(s.data.fides_key),j((0,y.t5)("New label successfully created")),E(null)},[n,T,j]),S=o()(s,"active"),I=(0,f.Tg)([(0,v.Hy)(e).CREATE]);return(0,i.jsxs)(m.Z,{title:"Taxonomy",children:[(0,i.jsxs)(a.jqI,{vertical:!0,className:"h-full",children:[(0,i.jsxs)("div",{children:[(0,i.jsx)(x.Z,{heading:"Taxonomy"}),(0,i.jsx)("div",{className:"hidden",children:(0,i.jsx)("div",{className:"mb-5 flex justify-between",children:(0,i.jsxs)(a.vyj.Compact,{children:[(0,i.jsx)(a.uFc,{className:"min-w-[350px]",placeholder:"Search",allowClear:!0}),(0,i.jsx)(a.wpx,{type:"default",children:"Clear"})]})})})]}),(0,i.jsxs)("div",{className:"relative grow",children:[(0,i.jsx)("div",{className:"absolute left-2 top-2 z-[1]",children:(0,i.jsx)(a.AHg,{selectedKeys:[e],onSelect:e=>{let{key:n}=e;return t(n)},items:(0,c.MM)(v.Lo).map(e=>({label:e.label,key:e.value})),"data-testid":"taxonomy-type-selector"})}),!!s.length&&(0,i.jsx)(en,{userCanAddLabels:I,taxonomyItems:h?s:S,draftNewItem:T,lastCreatedItemKey:g,resetLastCreatedItemKey:()=>C(null),onTaxonomyItemClick:e=>{_(e)},onAddButtonClick:e=>{var t;E({parent_key:null!==(t=null==e?void 0:e.fides_key)&&void 0!==t?t:null,is_default:!1,description:""})},taxonomyType:e,onCancelDraftItem:()=>E(null),onSubmitDraftItem:b})]})]}),p&&(0,i.jsx)(O,{taxonomyItem:p,taxonomyType:e,onClose:()=>_(null)})]})}},19043:function(e,t,n){"use strict";n.d(t,{Bw:function(){return a},D4:function(){return s},Dy:function(){return o},XD:function(){return d},cz:function(){return u},hE:function(){return l},oK:function(){return i}});var r=n(76649);let s=e=>"error"in e,i=e=>(0,r.Ln)({status:"string"},e)&&"PARSING_ERROR"===e.status,a=e=>(0,r.Ln)({status:"number",data:{}},e),l=e=>(0,r.Ln)({detail:"string"},e),o=e=>(0,r.Ln)({detail:{error:"string",resource_type:"string",fides_key:"string"}},e),d=e=>(0,r.Ln)({detail:{error:"string",resource_type:"string",fides_key:"string"}},e),u=e=>(0,r.Ln)({detail:[{loc:["string","number"],msg:"string",type:"string"}]},e)},31883:function(e,t,n){"use strict";n.d(t,{Bw:function(){return r.Bw},D4:function(){return r.D4}});var r=n(19043)},1945:function(e){e.exports={input:"TaxonomyTextInputNode_input__P9czz"}},34770:function(e){e.exports={container:"TaxonomyTreeNode_container__T4KpF",button:"TaxonomyTreeNode_button__mcbOd","button--hover":"TaxonomyTreeNode_button--hover__oycXY","button--parent-hover":"TaxonomyTreeNode_button--parent-hover__pwAPl","button--inactive":"TaxonomyTreeNode_button--inactive__Fjdpe","add-button-container":"TaxonomyTreeNode_add-button-container__eEoRN","add-button":"TaxonomyTreeNode_add-button__oM2vI","add-button--visible":"TaxonomyTreeNode_add-button--visible__Ojqqf"}}},function(e){e.O(0,[1096,2858,2866,9278,4294,570,7980,2888,9774,179],function(){return e(e.s=71180)}),_N_E=e.O()}]);
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4202],{71180:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/taxonomy",function(){return n(31537)}])},79806:function(e,t,n){"use strict";n.d(t,{Gn:function(){return l},zR:function(){return a}});var r=n(24246),s=n(77181),i=n(56358);let a=e=>{let{title:t}=e;return(0,r.jsx)(s.OXI,{py:0,display:"flex",alignItems:"flex-start",children:(0,r.jsx)(s.xvT,{mr:"2",color:"gray.700",fontSize:"lg",lineHeight:1.8,children:t})})},l=e=>{let{onDelete:t,onEditYaml:n,formId:a,isSaving:l}=e;return(0,r.jsxs)(s.zeN,{justifyContent:"space-between",children:[t?(0,r.jsx)(s.wpx,{"aria-label":"delete",icon:(0,r.jsx)(i.q,{fontSize:"small"}),onClick:t,"data-testid":"delete-btn"}):null,(0,r.jsxs)("div",{className:"flex gap-2",children:[n&&(0,r.jsx)(s.wpx,{onClick:n,"data-testid":"edit-yaml-btn",children:"Edit YAML"}),(0,r.jsx)(s.wpx,{htmlType:"submit",type:"primary","data-testid":"save-btn",form:a,loading:l,children:"Save"})]})]})};t.ZP=e=>{let{header:t,description:n,isOpen:i,onClose:a,children:l,footer:o}=e;return(0,r.jsxs)(s.dys,{placement:"right",isOpen:i,onClose:a,size:"md",children:[(0,r.jsx)(s.P1B,{}),(0,r.jsxs)(s.scA,{"data-testid":"edit-drawer-content",py:2,children:[(0,r.jsxs)(s.xuv,{display:"flex",justifyContent:"space-between",alignItems:"top",mr:2,py:2,gap:2,children:[(0,r.jsx)(s.xuv,{flex:1,minH:8,children:t}),(0,r.jsx)(s.xuv,{display:"flex",justifyContent:"flex-end",mr:2,children:(0,r.jsx)(s.wpx,{"aria-label":"Close editor",onClick:a,"data-testid":"close-drawer-btn",icon:(0,r.jsx)(s.Two,{fontSize:"smaller"})})})]}),(0,r.jsxs)(s.Ng0,{pt:1,children:[n?(0,r.jsx)(s.xvT,{fontSize:"sm",mb:4,color:"gray.600",children:n}):null,l]}),o]})]})}},18225:function(e,t,n){"use strict";var r=n(24246),s=n(77181);t.Z=e=>{let{...t}=e;return(0,r.jsx)(s.kCb,{boxSize:"full",align:"center",justify:"center",children:(0,r.jsx)(s.$jN,{color:"primary",...t})})}},56358:function(e,t,n){"use strict";n.d(t,{q:function(){return s}});var r=n(24246);let s=(0,n(77181).IUT)({displayName:"TrashCanOutlineIcon",viewBox:"0 0 11 12",path:(0,r.jsx)("path",{d:"M4.5166 1.60859L4.1084 2.21875H7.22363L6.81543 1.60859C6.7832 1.56133 6.72949 1.53125 6.67148 1.53125H4.6584C4.60039 1.53125 4.54668 1.55918 4.51445 1.60859H4.5166ZM7.6748 1.03711L8.46328 2.21875H8.75977H9.79102H9.96289C10.2486 2.21875 10.4785 2.44863 10.4785 2.73438C10.4785 3.02012 10.2486 3.25 9.96289 3.25H9.79102V9.78125C9.79102 10.7309 9.02188 11.5 8.07227 11.5H3.25977C2.31016 11.5 1.54102 10.7309 1.54102 9.78125V3.25H1.36914C1.0834 3.25 0.853516 3.02012 0.853516 2.73438C0.853516 2.44863 1.0834 2.21875 1.36914 2.21875H1.54102H2.57227H2.86875L3.65723 1.03496C3.88066 0.701953 4.25664 0.5 4.6584 0.5H6.67148C7.07324 0.5 7.44922 0.701953 7.67266 1.03496L7.6748 1.03711ZM2.57227 3.25V9.78125C2.57227 10.1615 2.87949 10.4688 3.25977 10.4688H8.07227C8.45254 10.4688 8.75977 10.1615 8.75977 9.78125V3.25H2.57227ZM4.29102 4.625V9.09375C4.29102 9.28281 4.13633 9.4375 3.94727 9.4375C3.7582 9.4375 3.60352 9.28281 3.60352 9.09375V4.625C3.60352 4.43594 3.7582 4.28125 3.94727 4.28125C4.13633 4.28125 4.29102 4.43594 4.29102 4.625ZM6.00977 4.625V9.09375C6.00977 9.28281 5.85508 9.4375 5.66602 9.4375C5.47695 9.4375 5.32227 9.28281 5.32227 9.09375V4.625C5.32227 4.43594 5.47695 4.28125 5.66602 4.28125C5.85508 4.28125 6.00977 4.43594 6.00977 4.625ZM7.72852 4.625V9.09375C7.72852 9.28281 7.57383 9.4375 7.38477 9.4375C7.1957 9.4375 7.04102 9.28281 7.04102 9.09375V4.625C7.04102 4.43594 7.1957 4.28125 7.38477 4.28125C7.57383 4.28125 7.72852 4.43594 7.72852 4.625Z",fill:"currentColor"})})},77213:function(e,t,n){"use strict";n.d(t,{Z:function(){return m}});var r=n(24246),s=n(77181),i=n(88038),a=n.n(i),l=n(86677);n(27378);var o=n(25980),d=n(90867),u=n(77830),c=()=>{let e=(0,l.useRouter)();return(0,r.jsx)(s.xuv,{bg:"gray.50",border:"1px solid",borderColor:"blue.400",borderRadius:"md",justifyContent:"space-between",p:5,mb:5,mt:5,children:(0,r.jsxs)(s.xuv,{children:[(0,r.jsxs)(s.Kqy,{direction:{base:"column",sm:"row"},justifyContent:"space-between",children:[(0,r.jsx)(s.xvT,{fontWeight:"semibold",children:"Configure your storage and messaging provider"}),(0,r.jsx)(s.wpx,{onClick:()=>{e.push(u.fz)},children:"Configure"})]}),(0,r.jsxs)(s.xvT,{children:["Before Fides can process your privacy requests we need two simple steps to configure your storage and email client."," "]})]})})},m=e=>{let{children:t,title:n,padded:i=!0,mainProps:u}=e,m=(0,o.hz)(),x=(0,l.useRouter)(),f="/privacy-requests"===x.pathname||"/datastore-connection"===x.pathname,y=!(m.flags.privacyRequestsConfiguration&&f),{data:h}=(0,d.JE)(void 0,{skip:y}),{data:p}=(0,d.PW)(void 0,{skip:y}),_=m.flags.privacyRequestsConfiguration&&(!h||!p)&&f;return(0,r.jsxs)(s.kCb,{"data-testid":n,direction:"column",h:"100vh",children:[(0,r.jsxs)(a(),{children:[(0,r.jsxs)("title",{children:["Fides Admin UI - ",n]}),(0,r.jsx)("meta",{name:"description",content:"Privacy Engineering Platform"}),(0,r.jsx)("link",{rel:"icon",href:"/favicon.ico"})]}),(0,r.jsxs)(s.kCb,{as:"main",direction:"column",py:i?6:0,px:i?10:0,h:i?"calc(100% - 48px)":"full",flex:1,minWidth:0,overflow:"auto",...u,children:[_?(0,r.jsx)(c,{}):null,t]})]})}},19904:function(e,t,n){"use strict";n.d(t,{Tg:function(){return a}});var r=n(24246),s=n(16134),i=n(31793);let a=e=>(0,s.C)(i.uu).filter(t=>e.includes(t)).length>0;t.ZP=e=>{let{scopes:t,children:n}=e;return a(t)?(0,r.jsx)(r.Fragment,{children:n}):null}},812:function(e,t,n){"use strict";n.d(t,{D4:function(){return i.D4},MM:function(){return m},Ot:function(){return d},c6:function(){return s},cj:function(){return f},e$:function(){return l},fn:function(){return o},iC:function(){return x},nU:function(){return c},tB:function(){return u}});var r,s,i=n(19043);let a="An unexpected error occurred. Please try again.",l=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:a;if((0,i.Bw)(e)){if((0,i.hE)(e.data))return e.data.detail;if((0,i.cz)(e.data)){var n;let t=null===(n=e.data.detail)||void 0===n?void 0:n[0];return"".concat(null==t?void 0:t.msg,": ").concat(null==t?void 0:t.loc)}if(409===e.status&&(0,i.Dy)(e.data)||404===e.status&&(0,i.XD)(e.data))return"".concat(e.data.detail.error," (").concat(e.data.detail.fides_key,")")}return t};function 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 u(e){return"object"==typeof e&&null!=e&&"data"in e&&Array.isArray(e.data.detail)}let c=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{status:500,message:a};if((0,i.oK)(e))return{status:e.originalStatus,message:e.data};if((0,i.Bw)(e)){let{status:n}=e;return{status:n,message:l(e,t.message)}}return t},m=e=>Object.entries(e).map(e=>({value:e[1],label:e[1]}));(r=s||(s={})).GVL="gvl",r.AC="gacp",r.COMPASS="compass";let x={gvl:{label:"GVL",fullName:"Global Vendor List"},gacp:{label:"AC",fullName:"Google Additional Consent List"},compass:{label:"",fullName:""}},f=e=>{let t=e.split(".")[0];return"gacp"===t?"gacp":"gvl"===t?"gvl":"compass"}},46628:function(e,t,n){"use strict";n.d(t,{MA:function(){return l},Vo:function(){return d},t5:function(){return o}});var r=n(24246),s=n(77181);let i=e=>{let{children:t,title:n="Success"}=e;return(0,r.jsxs)(s.xvT,{"data-testid":"toast-success-msg",children:[(0,r.jsxs)("strong",{children:[n,":"]})," ",t]})},a=e=>{let{children:t}=e;return(0,r.jsxs)(s.xvT,{"data-testid":"toast-error-msg",children:[(0,r.jsx)("strong",{children:"Error:"})," ",t]})},l={variant:"subtle",position:"top",description:"",duration:5e3,status:"success",isClosable:!0},o=(e,t)=>{let n=(0,r.jsx)(i,{title:t,children:e});return{...l,description:n}},d=e=>{let t=(0,r.jsx)(a,{children:e});return{...l,description:t,status:"error"}}},59001:function(e,t,n){"use strict";n.d(t,{Ch:function(){return a},Hy:function(){return l},Lo:function(){return s}});var r,s,i=n(21702);let a="root";(r=s||(s={})).DATA_CATEGORIES="Data categories",r.DATA_USES="Data uses",r.DATA_SUBJECTS="Data subjects";let l=e=>{switch(e){case"Data categories":return{UPDATE:i.Sh.DATA_CATEGORY_UPDATE,CREATE:i.Sh.DATA_CATEGORY_CREATE,DELETE:i.Sh.DATA_CATEGORY_DELETE,READ:i.Sh.DATA_CATEGORY_READ};case"Data uses":return{UPDATE:i.Sh.DATA_USE_UPDATE,CREATE:i.Sh.DATA_USE_CREATE,DELETE:i.Sh.DATA_USE_DELETE,READ:i.Sh.DATA_USE_READ};case"Data subjects":return{UPDATE:i.Sh.DATA_SUBJECT_UPDATE,CREATE:i.Sh.DATA_SUBJECT_CREATE,DELETE:i.Sh.DATA_SUBJECT_DELETE,READ:i.Sh.DATA_SUBJECT_READ};default:throw Error("Unknown taxonomy type: ".concat(e))}}},90673:function(e,t,n){"use strict";n.d(t,{Cd:function(){return i},Xl:function(){return a}});var r=n(21702),s=n(59001);let i=(e,t)=>{let n;if(null==t&&e.every(e=>void 0===e.parent_key))n=e;else{let r=null!=t?t:null;n=e.filter(e=>e.parent_key===r)}return n.map(t=>{var n,r;let s=t.fides_key;return{value:t.fides_key,label:""===t.name||null==t.name?t.fides_key:t.name,description:t.description,children:i(e,s),is_default:null!==(n=t.is_default)&&void 0!==n&&n,active:null!==(r=t.active)&&void 0!==r&&r}})},a=e=>{switch(e){case s.Lo.DATA_CATEGORIES:return r.P6.DATA_CATEGORY;case s.Lo.DATA_SUBJECTS:return r.P6.DATA_SUBJECT;case s.Lo.DATA_USES:return r.P6.DATA_USE;default:return}}},31537:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return er}});var r,s,i=n(24246),a=n(77181),l=n(69238),o=n.n(l),d=n(63662),u=n(27378),c=n(812),m=n(77213),x=n(58754),f=n(19904),y=n(46628),h=n(95346),p=n(56358),_=n(31883),T=n(79806),v=n(59001),E=n(90673),g=n(30002),C=n(28079),j=n(39864),A=e=>{let{taxonomyType:t}=e,[n,r]=(0,j.Vj)(),[s,i]=(0,g.nC)(),[a,l]=(0,C.dk)(),[o]=(0,j.Ti)(),[d]=(0,C.Ql)(),[u]=(0,g.wG)(),[c]=(0,j.jU)(),[m]=(0,C.LG)(),[x]=(0,g.h8)(),[f]=(0,j.K9)(),[y]=(0,C.gu)(),[h]=(0,g.Kv)();return t===v.Lo.DATA_SUBJECTS?{getAllTrigger:s,taxonomyItems:i.data||[],updateTrigger:x,deleteTrigger:h,createTrigger:u}:t===v.Lo.DATA_USES?{getAllTrigger:a,taxonomyItems:l.data||[],updateTrigger:m,deleteTrigger:y,createTrigger:d}:{getAllTrigger:n,taxonomyItems:r.data||[],updateTrigger:c,deleteTrigger:f,createTrigger:o}},b=n(90104),S=n.n(b),I=n(18225),D=n(21702),N=e=>{let{customFields:t,formId:n,form:r}=e,{idToAllowListWithOptions:s,idToCustomFieldDefinition:l,isEnabled:o,isLoading:d,sortedCustomFieldDefinitionIds:u}=t;return o&&0!==u.length?(0,i.jsxs)(a.PPS,{form:r,name:n,initialValues:t.customFieldValues,layout:"vertical","data-testid":"custom-fields-form",children:[(0,i.jsx)(a.AntTypography.Title,{level:5,children:"Custom fields"}),d?(0,i.jsx)(I.Z,{}):(0,i.jsx)("div",{children:!S()(u)&&(0,i.jsx)("div",{children:u.map(e=>{let t=l.get(e);if(!t)return null;let{id:n,name:r,description:o,allow_list_id:d,field_type:u}=t;if(!d&&u===D.AL.STRING)return(0,i.jsx)(a.PPS.Item,{name:n,label:r,tooltip:o,children:(0,i.jsx)(a.uFc,{})},e);let c=s.get(t.allow_list_id);if(!c)return null;let{options:m}=c;return(0,i.jsx)(a.PPS.Item,{name:n,label:r,tooltip:o,children:(0,i.jsx)(a.WPr,{mode:"string"!==u?"multiple":void 0,allowClear:!0,options:m})},e)})})})]}):null},k=n(43551),R=n.n(k),w=()=>{let e=a.PPS.useFormInstance(),t=a.PPS.useWatch(["rights","values"],e);return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(a.PPS.Item,{label:"Automated Decisions or Profiling",name:"automated_decisions_or_profiling",layout:"horizontal",valuePropName:"checked",children:(0,i.jsx)(a.E_O,{"data-testid":"edit-taxonomy-form_automated-decisions"})}),(0,i.jsx)(a.PPS.Item,{name:["rights","values"],label:"Rights",children:(0,i.jsx)(a.WPr,{mode:"multiple",options:(0,c.MM)(D.ts),"data-testid":"edit-taxonomy-form_rights"})}),t&&!S()(t)&&(0,i.jsx)(a.PPS.Item,{name:["rights","strategy"],label:"Strategy",required:!0,rules:[{required:!0,message:"Please select a strategy"}],children:(0,i.jsx)(a.WPr,{options:(0,c.MM)(D.jX),"data-testid":"edit-taxonomy-form_strategy"})})]})},P=e=>{let{initialValues:t,onSubmit:n,form:r,formId:s,taxonomyType:l,isDisabled:o}=e,d=l===v.Lo.DATA_SUBJECTS;return(0,i.jsxs)(a.PPS,{name:s,initialValues:t,onFinish:e=>{var r,s;let i={...t,...e};(!(null==i?void 0:null===(r=i.rights)||void 0===r?void 0:r.values)||S()(null==i?void 0:null===(s=i.rights)||void 0===s?void 0:s.values))&&R()(i,"rights"),n(i)},layout:"vertical",form:r,children:[(0,i.jsx)(a.PPS.Item,{label:"Name",name:"name",children:(0,i.jsx)(a.uFc,{"data-testid":"edit-taxonomy-form_name",disabled:o})}),(0,i.jsx)(a.PPS.Item,{label:"Description",name:"description",children:(0,i.jsx)(a.uFc.TextArea,{rows:4,"data-testid":"edit-taxonomy-form_description",disabled:o})}),d&&(0,i.jsx)(w,{})]})},O=e=>{let{taxonomyItem:t,taxonomyType:n,onClose:r}=e,s="edit-taxonomy-form",[l]=a.PPS.useForm(),[o]=a.PPS.useForm(),d=(0,a.pmc)(),{isOpen:u,onOpen:m,onClose:x}=(0,a.qY0)(),{updateTrigger:g}=A({taxonomyType:n}),C=(0,h.mZ)({resourceFidesKey:null==t?void 0:t.fides_key,resourceType:(0,E.Xl)(n)}),j=(0,f.Tg)([(0,v.Hy)(n).UPDATE]),b=(0,f.Tg)([(0,v.Hy)(n).DELETE]),S=async e=>{let n=await g(e);if((0,_.D4)(n)){d((0,y.Vo)((0,c.e$)(n.error)));return}if(C.isEnabled){let e=o.getFieldsValue();await C.upsertCustomFields({fides_key:null==t?void 0:t.fides_key,customFieldValues:e})}d((0,y.t5)("Taxonomy successfully updated")),r()},I=async()=>{await g({...t,active:!1}),x(),r()},D=async()=>{await g({...t,active:!0}),x(),r()};return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)(T.ZP,{isOpen:!!t,onClose:r,header:(0,i.jsx)(T.zR,{title:(null==t?void 0:t.name)||""}),footer:(0,i.jsxs)(a.zeN,{justifyContent:"space-between",children:[(null==t?void 0:t.active)&&b&&(0,i.jsx)(a.esZ,{title:"Delete label",children:(0,i.jsx)(a.wpx,{"aria-label":"delete",icon:(0,i.jsx)(p.q,{fontSize:"small"}),onClick:m,"data-testid":"delete-btn"})}),!(null==t?void 0:t.active)&&j&&(0,i.jsx)(a.esZ,{title:"Enable label",children:(0,i.jsx)(a.wpx,{"aria-label":"enable",onClick:D,"data-testid":"enable-btn",icon:(0,i.jsx)(a.tEF,{fontSize:"small"})})}),(0,i.jsx)("div",{className:"flex gap-2",children:j&&(0,i.jsx)(a.wpx,{htmlType:"submit",type:"primary","data-testid":"save-btn",form:s,children:"Save"})})]}),children:[(0,i.jsxs)("div",{className:"mb-4",children:[(0,i.jsx)(a.AntTypography.Title,{level:5,children:"Details"}),(0,i.jsxs)("div",{className:"flex",children:[(0,i.jsx)("span",{className:"w-1/3 shrink-0 text-sm text-gray-500",children:"Fides key:"}),(0,i.jsx)(a.esZ,{title:null==t?void 0:t.fides_key,trigger:"click",children:(0,i.jsx)("span",{className:"flex-1 truncate","data-testid":"edit-drawer-fides-key",children:null==t?void 0:t.fides_key})})]})]}),!!t&&(0,i.jsx)(P,{initialValues:t,onSubmit:S,form:l,formId:s,taxonomyType:n,isDisabled:!j}),C.isEnabled&&!C.isLoading&&(0,i.jsx)(N,{form:o,formId:"custom-fields-form",customFields:C})]}),(0,i.jsx)(a.cVQ,{isOpen:u,onClose:x,onConfirm:I,title:"Delete ".concat(n),message:(0,i.jsx)(a.Kqy,{children:(0,i.jsxs)(a.xvT,{children:["You are about to permanently delete the ",n," ",(0,i.jsx)(a.xvT,{color:"complimentary.500",as:"span",fontWeight:"bold",children:null==t?void 0:t.name})," ","from your taxonomy. Are you sure you would like to continue?"]})})})]})};n(51901);var L=n(86298),V=n(3124),H=n.n(V);(r=s||(s={})).DEFAULT="DEFAULT",r.ACTIVE_HOVER="ACTIVE_HOVER",r.PARENT_OF_HOVER="PARENT_OF_HOVER",r.CHILD_OF_HOVER="CHILD_OF_HOVER",r.SIBLING_OF_HOVER="SIBLING_OF_HOVER",r.INACTIVE="INACTIVE";let F=(0,u.createContext)({activeNodeKey:null,setActiveNodeKey:()=>{},onMouseEnter:()=>{},onMouseLeave:()=>{},getNodeHoverStatus:()=>"DEFAULT"}),U=e=>{let{children:t}=e,[n,r]=(0,u.useState)(null),s=(0,u.useCallback)(e=>{e!==n&&r(e)},[n]),a=(0,u.useCallback)(()=>{r(null)},[]),l=(0,u.useCallback)(e=>n?e===n?"ACTIVE_HOVER":n.startsWith("".concat(e,"."))||e===v.Ch?"PARENT_OF_HOVER":e.startsWith("".concat(n,"."))||n===v.Ch?"CHILD_OF_HOVER":n.split(".").slice(0,-1).join(".")===e.split(".").slice(0,-1).join(".")?"SIBLING_OF_HOVER":"INACTIVE":"DEFAULT",[n]),o=(0,u.useMemo)(()=>({activeNodeKey:n,setActiveNodeKey:r,onMouseEnter:s,onMouseLeave:a,getNodeHoverStatus:l}),[n,r,s,a,l]);return(0,i.jsx)(F.Provider,{value:o,children:t})};var M=n(62266),z=n(79658);let B=(0,M.Z)();var Z=e=>{let{nodes:t,edges:n,options:r}=e;return(0,u.useMemo)(()=>{if(0===t.length)return{nodes:t,edges:n};let e=(0,z.Z)().id(e=>e.id).parentId(e=>{var t;return null===(t=n.find(t=>t.target===e.id))||void 0===t?void 0:t.source})(t),s="LR"===r.direction?[35,320]:[320,35];return{nodes:B.nodeSize(s).separation((e,t)=>e.parent===t.parent?1:1.5)(e).descendants().map(e=>{let t;return t="LR"===r.direction?{x:e.y,y:e.x}:{x:e.x,y:e.y},{...e.data,position:t}}),edges:n}},[t,n,r])},G=e=>{let{positionAbsoluteX:t,positionAbsoluteY:n,nodeWidth:r}=e,{setCenter:s,getZoom:i}=(0,L._K)();return{centerScreenOnNode:(0,u.useCallback)(()=>s(t+r/2,n,{duration:500,zoom:i()}),[i,t,n,r,s])}},q=n(1945),K=n.n(q),W=n(8335),J=e=>{let{type:t,inactive:n=!1}=e;return(0,i.jsx)(L.HH,{type:t,position:"source"===t?W.Ly.Right:W.Ly.Left,style:{width:8,height:8,backgroundColor:n?H().FIDESUI_NEUTRAL_400:H().FIDESUI_MINOS},className:"transition-colors duration-300 ease-in"})},X=e=>{let{data:t,positionAbsoluteX:n,positionAbsoluteY:r}=e,{onCancel:s,onSubmit:l,parentKey:o}=t,d=(0,u.useRef)(null),[c,m]=(0,u.useState)(""),{centerScreenOnNode:x}=G({positionAbsoluteX:n,positionAbsoluteY:r,nodeWidth:200});return(0,u.useEffect)(()=>{m("");let e=()=>{var e;return null===(e=d.current)||void 0===e?void 0:e.focus({cursor:"start",preventScroll:!0})};(async()=>{await x(),e()})()},[o,x,n,r]),(0,i.jsxs)("div",{style:{width:200},"data-testid":"taxonomy-text-input-node",children:[(0,i.jsx)(a.uFc,{placeholder:"Type label name...",ref:d,onBlur:s,onSubmit:()=>l(c),value:c,onChange:e=>m(e.target.value),onKeyUp:e=>{"Escape"===e.key&&s()},onPressEnter:()=>l(c),className:K().input}),(0,i.jsx)(J,{type:"target"})]})},Y=e=>{let{getNodeHoverStatus:t}=(0,u.useContext)(F),{target:n}=e,r=t(n),a=(0,u.useCallback)(()=>{switch(r){case s.ACTIVE_HOVER:case s.PARENT_OF_HOVER:return H().FIDESUI_MINOS;case s.INACTIVE:return H().NEUTRAL_400;default:return H().FIDESUI_SANDSTONE}},[r]),l=(0,u.useCallback)(()=>{switch(r){case s.ACTIVE_HOVER:case s.PARENT_OF_HOVER:return 2;default:return 1}},[r]);return(0,i.jsx)(L.Jd,{...e,style:{stroke:a(),strokeWidth:l(),transition:"stroke 0.3s ease 0s"}})},$=n(34770),Q=n.n($),ee=e=>{let{data:t,positionAbsoluteX:n,positionAbsoluteY:r}=e,{onMouseEnter:l,onMouseLeave:o,getNodeHoverStatus:d}=(0,u.useContext)(F),{taxonomyType:c,taxonomyItem:m,onAddButtonClick:x,onTaxonomyItemClick:f,label:y,hasChildren:h,isLastCreatedItem:p,resetLastCreatedItemKey:_,userCanAddLabels:T}=t,{centerScreenOnNode:E}=G({positionAbsoluteX:n,positionAbsoluteY:r,nodeWidth:200});(0,u.useEffect)(()=>{let e=async()=>{await E(),l(null==m?void 0:m.fides_key)};p&&(e(),_())},[p,l,null==m?void 0:m.fides_key,_,E]);let g=d(null==m?void 0:m.fides_key),C=(0,u.useCallback)(()=>{switch(g){case s.ACTIVE_HOVER:return Q()["button--hover"];case s.PARENT_OF_HOVER:return Q()["button--parent-hover"];case s.INACTIVE:return Q()["button--inactive"];case s.DEFAULT:case s.CHILD_OF_HOVER:case s.SIBLING_OF_HOVER:default:return""}},[g]),j=(null==m?void 0:m.fides_key)===v.Ch,A=c===v.Lo.DATA_SUBJECTS;return(0,i.jsxs)("div",{className:Q().container,onMouseEnter:()=>l(null==m?void 0:m.fides_key),onMouseLeave:()=>o(null==m?void 0:m.fides_key),"data-testid":"taxonomy-node-".concat(null==m?void 0:m.fides_key),children:[(0,i.jsx)(a.wpx,{className:"".concat(Q().button," ").concat(C()),onClick:()=>null==f?void 0:f(m),disabled:!f,type:"text",children:(0,i.jsxs)(a.AntTypography.Text,{ellipsis:!0,style:{color:"inherit"},children:[(null==m?void 0:m.active)===!1?"(disabled) ":"",y]})}),!j&&(0,i.jsx)(J,{type:"target",inactive:g===s.INACTIVE}),h&&(0,i.jsx)(J,{type:"source",inactive:g===s.INACTIVE}),T&&(!A||j)&&(0,i.jsx)("div",{className:Q()["add-button-container"],children:(0,i.jsx)(a.wpx,{type:"default",className:"".concat(Q()["add-button"]," ").concat(g===s.ACTIVE_HOVER?Q()["add-button--visible"]:""),icon:(0,i.jsx)(a.PJP.mm_,{size:20}),onClick:()=>null==x?void 0:x(m),size:"middle","data-testid":"taxonomy-add-child-label-button","aria-label":"Add child label to ".concat(y)})})]})};let et=e=>{let{taxonomyType:t,taxonomyItems:n,draftNewItem:r,lastCreatedItemKey:s,resetLastCreatedItemKey:a,onTaxonomyItemClick:l,onAddButtonClick:o,onCancelDraftItem:d,onSubmitDraftItem:c,userCanAddLabels:m}=e,{fitView:x}=(0,L._K)();(0,u.useEffect)(()=>{setTimeout(()=>x(),150)},[x,t]);let f=[(0,u.useMemo)(()=>({id:v.Ch,position:{x:0,y:0},data:{label:t,taxonomyItem:{fides_key:v.Ch},taxonomyType:t,onTaxonomyItemClick:null,onAddButtonClick:o,hasChildren:0!==n.length,userCanAddLabels:m},type:"taxonomyTreeNode"}),[t,n.length,o,m])],y=[];if(n.forEach(e=>{let n=e.name||e.fides_key.split(".").pop()||"",r={id:e.fides_key,position:{x:0,y:0},data:{label:n,taxonomyType:t,taxonomyItem:e,onTaxonomyItemClick:l,onAddButtonClick:o,hasChildren:!1,isLastCreatedItem:s===e.fides_key,resetLastCreatedItemKey:a,userCanAddLabels:m},type:"taxonomyTreeNode"};f.push(r);let i=e.parent_key?f.find(t=>t.id===e.parent_key):null,d=i?i.id:v.Ch,u=e.fides_key,c={id:"".concat(d,"-").concat(u),source:d,target:u,type:"taxonomyTreeEdge"};y.push(c),i&&(i.data.hasChildren=!0)}),r){let e=r.parent_key||v.Ch;f.push({id:"draft-node",position:{x:0,y:0},type:"textInputNode",data:{parentKey:e,onCancel:d,onSubmit:c},hidden:!r}),y.push({id:"draft-line",source:e,target:"draft-node",animated:!0});let t=f.find(t=>t.id===e);t&&(t.data.hasChildren=!0)}let{nodes:h,edges:p}=Z({nodes:f,edges:y,options:{direction:"LR"}}),_=(0,u.useMemo)(()=>({taxonomyTreeNode:ee,textInputNode:X}),[]),T=(0,u.useMemo)(()=>({taxonomyTreeEdge:Y}),[]);return(0,i.jsx)("div",{className:"size-full",style:{backgroundColor:H().FIDESUI_BG_CORINTH},"data-testid":"taxonomy-interactive-tree",children:(0,i.jsx)(U,{children:(0,i.jsxs)(L.x$,{nodes:h,edges:p,nodeTypes:_,edgeTypes:T,maxZoom:2,minZoom:.3,nodesConnectable:!1,edgesFocusable:!1,elementsSelectable:!1,proOptions:{hideAttribution:!0},children:[(0,i.jsx)(L.Aq,{color:H().FIDESUI_NEUTRAL_100,variant:L.T7.Dots,size:3}),(0,i.jsx)(L.a9,{nodeStrokeWidth:3,pannable:!0}),(0,i.jsx)(L.ZX,{showInteractive:!1})]})})})};var en=e=>(0,i.jsx)(L.tV,{children:(0,i.jsx)(et,{...e})}),er=()=>{let[e,t]=(0,u.useState)(v.Lo.DATA_CATEGORIES),{createTrigger:n,getAllTrigger:r,taxonomyItems:s=[]}=A({taxonomyType:e}),l=(0,d.useSearchParams)(),h=(null==l?void 0:l.get("showDisabledItems"))==="true";(0,u.useEffect)(()=>{r()},[r,e]);let[p,_]=(0,u.useState)(null),[T,E]=(0,u.useState)(null),[g,C]=(0,u.useState)(null);(0,u.useEffect)(()=>{E(null),C(null),_(null)},[e]);let j=(0,a.pmc)(),b=(0,u.useCallback)(async e=>{if(!T)return;let t=(null==T?void 0:T.parent_key)===v.Ch,r={...T,name:e,parent_key:t?null:T.parent_key},s=await n(r);if((0,c.D4)(s)){j((0,y.Vo)((0,c.e$)(s.error)));return}C(s.data.fides_key),j((0,y.t5)("New label successfully created")),E(null)},[n,T,j]),S=o()(s,"active"),I=(0,f.Tg)([(0,v.Hy)(e).CREATE]);return(0,i.jsxs)(m.Z,{title:"Taxonomy",children:[(0,i.jsxs)(a.jqI,{vertical:!0,className:"h-full",children:[(0,i.jsxs)("div",{children:[(0,i.jsx)(x.Z,{heading:"Taxonomy"}),(0,i.jsx)("div",{className:"hidden",children:(0,i.jsx)("div",{className:"mb-5 flex justify-between",children:(0,i.jsxs)(a.vyj.Compact,{children:[(0,i.jsx)(a.uFc,{className:"min-w-[350px]",placeholder:"Search",allowClear:!0}),(0,i.jsx)(a.wpx,{type:"default",children:"Clear"})]})})})]}),(0,i.jsxs)("div",{className:"relative grow",children:[(0,i.jsx)("div",{className:"absolute left-2 top-2 z-[1]",children:(0,i.jsx)(a.AHg,{selectedKeys:[e],onSelect:e=>{let{key:n}=e;return t(n)},items:(0,c.MM)(v.Lo).map(e=>({label:e.label,key:e.value})),"data-testid":"taxonomy-type-selector"})}),!!s.length&&(0,i.jsx)(en,{userCanAddLabels:I,taxonomyItems:h?s:S,draftNewItem:T,lastCreatedItemKey:g,resetLastCreatedItemKey:()=>C(null),onTaxonomyItemClick:e=>{_(e)},onAddButtonClick:e=>{var t;E({parent_key:null!==(t=null==e?void 0:e.fides_key)&&void 0!==t?t:null,is_default:!1,description:""})},taxonomyType:e,onCancelDraftItem:()=>E(null),onSubmitDraftItem:b})]})]}),p&&(0,i.jsx)(O,{taxonomyItem:p,taxonomyType:e,onClose:()=>_(null)})]})}},19043:function(e,t,n){"use strict";n.d(t,{Bw:function(){return a},D4:function(){return s},Dy:function(){return o},XD:function(){return d},cz:function(){return u},hE:function(){return l},oK:function(){return i}});var r=n(76649);let s=e=>"error"in e,i=e=>(0,r.Ln)({status:"string"},e)&&"PARSING_ERROR"===e.status,a=e=>(0,r.Ln)({status:"number",data:{}},e),l=e=>(0,r.Ln)({detail:"string"},e),o=e=>(0,r.Ln)({detail:{error:"string",resource_type:"string",fides_key:"string"}},e),d=e=>(0,r.Ln)({detail:{error:"string",resource_type:"string",fides_key:"string"}},e),u=e=>(0,r.Ln)({detail:[{loc:["string","number"],msg:"string",type:"string"}]},e)},31883:function(e,t,n){"use strict";n.d(t,{Bw:function(){return r.Bw},D4:function(){return r.D4}});var r=n(19043)},1945:function(e){e.exports={input:"TaxonomyTextInputNode_input__P9czz"}},34770:function(e){e.exports={container:"TaxonomyTreeNode_container__T4KpF",button:"TaxonomyTreeNode_button__mcbOd","button--hover":"TaxonomyTreeNode_button--hover__oycXY","button--parent-hover":"TaxonomyTreeNode_button--parent-hover__pwAPl","button--inactive":"TaxonomyTreeNode_button--inactive__Fjdpe","add-button-container":"TaxonomyTreeNode_add-button-container__eEoRN","add-button":"TaxonomyTreeNode_add-button__oM2vI","add-button--visible":"TaxonomyTreeNode_add-button--visible__Ojqqf"}}},function(e){e.O(0,[1096,2858,2866,9278,4294,570,7980,2888,9774,179],function(){return e(e.s=71180)}),_N_E=e.O()}]);
|
@@ -1 +1 @@
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8905],{16967:function(e,s,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/user-management/profile/[id]",function(){return r(69404)}])},69404:function(e,s,r){"use strict";r.r(s),r.d(s,{default:function(){return p}});var i=r(24246),n=r(77181),t=r(86677),u=r(27378),a=r(16125),d=r(41150),l=r(91317),c=r(19904),o=r(
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8905],{16967:function(e,s,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/user-management/profile/[id]",function(){return r(69404)}])},69404:function(e,s,r){"use strict";r.r(s),r.d(s,{default:function(){return p}});var i=r(24246),n=r(77181),t=r(86677),u=r(27378),a=r(16125),d=r(41150),l=r(91317),c=r(19904),o=r(21702),f=r(77830),_=r(58754),m=r(65497);let h=e=>{var s,r,i,n;let t=(0,a.v9)(l.dy),[u]=(0,m.Gl)(),d={username:null!==(s=e.username)&&void 0!==s?s:"",email_address:null!==(r=e.email_address)&&void 0!==r?r:"",first_name:null!==(i=e.first_name)&&void 0!==i?i:"",last_name:null!==(n=e.last_name)&&void 0!==n?n:"",password:"",id:e.id},f=async s=>u({...e,...s}),_=!!t&&t.id===e.id,h=(0,c.Tg)([o.Sh.USER_UPDATE]);return{handleSubmit:f,isOwnProfile:_,canUpdateUser:!!_||h,initialValues:d}};var j=e=>{let{user:s}=e,{handleSubmit:r,canUpdateUser:n,initialValues:t}=h(s);return(0,i.jsxs)("div",{children:[(0,i.jsx)(_.Z,{heading:"Users",breadcrumbItems:[{title:"All users",href:f.e3},{title:t.username}]}),(0,i.jsx)(d.Z,{onSubmit:r,initialValues:t,canEditNames:n})]})},y=r(16134),E=r(77213),p=()=>{let e=(0,t.useRouter)(),s=(0,y.T)(),r="";r=e.query.id?Array.isArray(e.query.id)?e.query.id[0]:e.query.id:"";let{data:a,isLoading:d}=(0,m.Fk)(r),f=(0,y.C)(l.dy),_=!!f&&!!a&&f.id===a.id,h=(0,c.Tg)([o.Sh.USER_UPDATE])||_;return(0,u.useEffect)(()=>{a&&s((0,m.Vv)(a.id))},[s,a,h]),(0,u.useEffect)(()=>{a&&!h&&e.push("/")},[e,h,a]),(0,i.jsxs)(E.Z,{title:"Users - Edit a user",children:[d&&(0,i.jsx)(n.jqI,{justify:"center",align:"center",className:"h-full",children:(0,i.jsx)(n.$jN,{color:"primary.900"})}),!d&&!a&&(0,i.jsx)(n.jqI,{justify:"center",children:(0,i.jsx)(n.DUx,{message:"Could not find user with this profile ID.",type:"warning",showIcon:!0})}),!!a&&(0,i.jsx)(j,{user:a})]})}}},function(e){e.O(0,[5480,1150,2888,9774,179],function(){return e(e.s=16967)}),_N_E=e.O()}]);
|
@@ -1 +1 @@
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[693],{7873:function(e,s,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/user-management",function(){return n(923)}])},923:function(e,s,n){"use strict";n.r(s),n.d(s,{default:function(){return f}});var i=n(24246),r=n(27378),l=n(77181),t=n(16125),d=n(16134),a=n(65497),c=n(95492),h=n(86677),o=n(91317),u=n(77830),p=n(19904),x=n(91437),j=n(
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[693],{7873:function(e,s,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/user-management",function(){return n(923)}])},923:function(e,s,n){"use strict";n.r(s),n.d(s,{default:function(){return f}});var i=n(24246),r=n(27378),l=n(77181),t=n(16125),d=n(16134),a=n(65497),c=n(95492),h=n(86677),o=n(91317),u=n(77830),p=n(19904),x=n(91437),j=n(21702),m=n(61038),g=e=>{var s,n;let{user:r}=e,t=(0,h.useRouter)(),g=(0,l.qY0)(),v=(0,d.C)(o.dy),T=!!v&&v.id===r.id,b=(0,p.Tg)([j.Sh.USER_UPDATE])||T,_=()=>{b&&t.push("".concat(u.e3,"/profile/").concat(r.id))},{data:w}=(0,a.gU)(null!==(s=r.id)&&void 0!==s?s:"",{skip:!r.id}),{data:C}=(0,a.d6)(null!==(n=r.id)&&void 0!==n?n:"",{skip:!r.id}),N=[];return w&&w.roles&&w.roles.forEach(e=>{let s=x.K.find(s=>s.roleKey===e);s&&N.push(s.permissions_label)}),(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)(l.Tr,{_hover:{bg:"gray.50",cursor:b?"pointer":void 0},height:"36px","data-testid":"row-".concat(r.id),children:[(0,i.jsxs)(l.Td,{pl:0,py:1,onClick:_,children:[r.username," ",r.disabled&&(0,i.jsx)(l.j8w,{color:"success","data-testid":"invite-sent-badge",children:"Invite sent"})]}),(0,i.jsx)(l.Td,{pl:0,py:1,onClick:_,children:r.email_address}),(0,i.jsx)(l.Td,{pl:0,py:1,onClick:_,children:r.first_name}),(0,i.jsx)(l.Td,{pl:0,py:1,onClick:_,children:r.last_name}),(0,i.jsx)(l.Td,{pl:0,py:1,onClick:_,children:N.map(e=>(0,i.jsx)(l.j8w,{"data-testid":"user-permissions-badge",children:e},e))}),(0,i.jsx)(l.Td,{pl:0,py:1,onClick:_,children:(0,i.jsx)(l.j8w,{className:"text-center","data-testid":"user-systems-badge",children:C?C.length:0})}),(0,i.jsx)(l.Td,{pl:0,py:1,onClick:_,children:r.created_at?new Date(r.created_at).toUTCString():null}),(0,i.jsx)(p.ZP,{scopes:[j.Sh.USER_DELETE],children:(0,i.jsx)(l.Td,{pr:0,py:1,textAlign:"end",position:"relative",children:(0,i.jsx)(l.wpx,{"aria-label":"delete",icon:(0,i.jsx)(c.l,{}),onClick:g.onOpen,"data-testid":"delete-user-btn"})})})]},r.id),(0,i.jsx)(m.Z,{user:r,...g})]})};let v=()=>{var e,s;let n=(0,t.I0)(),i=(0,t.v9)(a.lq),{data:r,isLoading:l}=(0,a.wv)(i),d=null!==(e=null==r?void 0:r.items)&&void 0!==e?e:[],c=null!==(s=null==r?void 0:r.total)&&void 0!==s?s:0;return{...i,isLoading:l,users:d,total:c,handleNextPage:()=>{n((0,a.YA)(i.page+1))},handlePreviousPage:()=>{n((0,a.YA)(i.page-1))}}},T=()=>{let{users:e,total:s,page:n,size:t,handleNextPage:c,handlePreviousPage:h}=v(),o=(n-1)*t+1,u=Math.min(s,n*t),p=(0,d.T)();return(0,r.useEffect)(()=>{p((0,a.Vv)(void 0))},[p]),(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)(l.iA_,{size:"sm","data-testid":"user-management-table",children:[(0,i.jsx)(l.hrZ,{children:(0,i.jsxs)(l.Tr,{children:[(0,i.jsx)(l.Th,{pl:0,children:"Username"}),(0,i.jsx)(l.Th,{pl:0,children:"Email"}),(0,i.jsx)(l.Th,{pl:0,children:"First Name"}),(0,i.jsx)(l.Th,{pl:0,children:"Last Name"}),(0,i.jsx)(l.Th,{pl:0,children:"Permissions"}),(0,i.jsx)(l.Th,{pl:0,children:"Assigned Systems"}),(0,i.jsx)(l.Th,{pl:0,children:"Created At"})]})}),(0,i.jsx)(l.p3B,{children:null==e?void 0:e.map(e=>(0,i.jsx)(g,{user:e},e.id))})]}),(0,i.jsxs)(l.kCb,{justifyContent:"space-between",mt:6,children:[(0,i.jsx)(l.xvT,{fontSize:"xs",color:"gray.600",children:s>0?(0,i.jsxs)(i.Fragment,{children:["Showing ",Number.isNaN(o)?0:o," to"," ",Number.isNaN(u)?0:u," of"," ",Number.isNaN(s)?0:s," results"]}):"0 results"}),(0,i.jsxs)("div",{children:[(0,i.jsx)(l.wpx,{disabled:n<=1,onClick:h,className:"mr-2",children:"Previous"}),(0,i.jsx)(l.wpx,{disabled:n*t>=s,onClick:c,children:"Next"})]})]})]})};T.defaultProps={users:[]};var b=n(86780);let _=()=>{let e=(0,t.v9)(a.lq),s=(0,t.I0)();return{handleSearchChange:e=>{s((0,a.SY)(e))},...e}};var w=()=>{let{handleSearchChange:e,username:s}=_(),n=(0,h.useRouter)();return(0,i.jsxs)(l.Kqy,{direction:"row",spacing:4,mb:6,children:[(0,i.jsx)(b.Z,{search:s,onChange:e,placeholder:"Search by Username"}),(0,i.jsx)(p.ZP,{scopes:[j.Sh.USER_CREATE],children:(0,i.jsx)(l.wpx,{onClick:()=>n.push("".concat(u.e3,"/new")),type:"primary",className:"shrink-0","data-testid":"add-new-user-btn",children:"Add new user"})})]})},C=n(77213),N=n(58754),f=()=>(0,i.jsxs)(C.Z,{title:"User Management",children:[(0,i.jsx)(N.Z,{heading:"Users",breadcrumbItems:[{title:"All users"}]}),(0,i.jsx)(w,{}),(0,i.jsx)(T,{})]})}},function(e){e.O(0,[5480,2888,9774,179],function(){return e(e.s=7873)}),_N_E=e.O()}]);
|
@@ -1 +1 @@
|
|
1
|
-
<!DOCTYPE html><html lang="en"><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width"/><meta name="next-head-count" content="2"/><link data-next-font="" rel="preconnect" href="/" crossorigin="anonymous"/><link rel="preload" href="/_next/static/css/113d823fe71f6af0.css" as="style"/><link rel="stylesheet" href="/_next/static/css/113d823fe71f6af0.css" data-n-g=""/><link rel="preload" href="/_next/static/css/d2d4e9a6923e6730.css" as="style"/><link rel="stylesheet" href="/_next/static/css/d2d4e9a6923e6730.css" data-n-p=""/><noscript data-n-css=""></noscript><script defer="" nomodule="" src="/_next/static/chunks/polyfills-42372ed130431b0a.js"></script><script src="/_next/static/chunks/webpack-2c7ccac5843c4d8e.js" defer=""></script><script src="/_next/static/chunks/framework-c92fc3344e6fd165.js" defer=""></script><script src="/_next/static/chunks/main-
|
1
|
+
<!DOCTYPE html><html lang="en"><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width"/><meta name="next-head-count" content="2"/><link data-next-font="" rel="preconnect" href="/" crossorigin="anonymous"/><link rel="preload" href="/_next/static/css/113d823fe71f6af0.css" as="style"/><link rel="stylesheet" href="/_next/static/css/113d823fe71f6af0.css" data-n-g=""/><link rel="preload" href="/_next/static/css/d2d4e9a6923e6730.css" as="style"/><link rel="stylesheet" href="/_next/static/css/d2d4e9a6923e6730.css" data-n-p=""/><noscript data-n-css=""></noscript><script defer="" nomodule="" src="/_next/static/chunks/polyfills-42372ed130431b0a.js"></script><script src="/_next/static/chunks/webpack-2c7ccac5843c4d8e.js" defer=""></script><script src="/_next/static/chunks/framework-c92fc3344e6fd165.js" defer=""></script><script src="/_next/static/chunks/main-24f422f93845a596.js" defer=""></script><script src="/_next/static/chunks/pages/_app-fc89ce7bed454c84.js" defer=""></script><script src="/_next/static/chunks/c78d26b1-88a3e1bacb2a03c2.js" defer=""></script><script src="/_next/static/chunks/6060-cb1ab5be7067bf7b.js" defer=""></script><script src="/_next/static/chunks/2858-0b44609b6be7850b.js" defer=""></script><script src="/_next/static/chunks/2866-a73888c17a195cbe.js" defer=""></script><script src="/_next/static/chunks/9278-9b1b5970f0702668.js" defer=""></script><script src="/_next/static/chunks/5277-e8a036319456127f.js" defer=""></script><script src="/_next/static/chunks/4481-aab99ff80f707473.js" defer=""></script><script src="/_next/static/chunks/7980-4bd08957448dea32.js" defer=""></script><script src="/_next/static/chunks/355-8a77c9a1cd027f2e.js" defer=""></script><script src="/_next/static/chunks/8499-43606100edf42fdf.js" defer=""></script><script src="/_next/static/chunks/7453-39761c38da31257e.js" defer=""></script><script src="/_next/static/chunks/4450-36234280bee624ff.js" defer=""></script><script src="/_next/static/chunks/pages/add-systems/manual-9acaab973dfe86e2.js" defer=""></script><script src="/_next/static/7ef43wSyz6KNgQTInQ9Ih/_buildManifest.js" defer=""></script><script src="/_next/static/7ef43wSyz6KNgQTInQ9Ih/_ssgManifest.js" defer=""></script><style>.data-ant-cssinjs-cache-path{content:"";}</style></head><body><div id="__next"><div style="height:100%;display:flex"></div></div><script id="__NEXT_DATA__" type="application/json">{"props":{"pageProps":{}},"page":"/add-systems/manual","query":{},"buildId":"7ef43wSyz6KNgQTInQ9Ih","nextExport":true,"autoExport":true,"isFallback":false,"scriptLoader":[]}</script></body></html>
|
@@ -1 +1 @@
|
|
1
|
-
<!DOCTYPE html><html lang="en"><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width"/><meta name="next-head-count" content="2"/><link data-next-font="" rel="preconnect" href="/" crossorigin="anonymous"/><link rel="preload" href="/_next/static/css/113d823fe71f6af0.css" as="style"/><link rel="stylesheet" href="/_next/static/css/113d823fe71f6af0.css" data-n-g=""/><noscript data-n-css=""></noscript><script defer="" nomodule="" src="/_next/static/chunks/polyfills-42372ed130431b0a.js"></script><script src="/_next/static/chunks/webpack-2c7ccac5843c4d8e.js" defer=""></script><script src="/_next/static/chunks/framework-c92fc3344e6fd165.js" defer=""></script><script src="/_next/static/chunks/main-
|
1
|
+
<!DOCTYPE html><html lang="en"><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width"/><meta name="next-head-count" content="2"/><link data-next-font="" rel="preconnect" href="/" crossorigin="anonymous"/><link rel="preload" href="/_next/static/css/113d823fe71f6af0.css" as="style"/><link rel="stylesheet" href="/_next/static/css/113d823fe71f6af0.css" data-n-g=""/><noscript data-n-css=""></noscript><script defer="" nomodule="" src="/_next/static/chunks/polyfills-42372ed130431b0a.js"></script><script src="/_next/static/chunks/webpack-2c7ccac5843c4d8e.js" defer=""></script><script src="/_next/static/chunks/framework-c92fc3344e6fd165.js" defer=""></script><script src="/_next/static/chunks/main-24f422f93845a596.js" defer=""></script><script src="/_next/static/chunks/pages/_app-fc89ce7bed454c84.js" defer=""></script><script src="/_next/static/chunks/c78d26b1-88a3e1bacb2a03c2.js" defer=""></script><script src="/_next/static/chunks/6060-cb1ab5be7067bf7b.js" defer=""></script><script src="/_next/static/chunks/4481-aab99ff80f707473.js" defer=""></script><script src="/_next/static/chunks/355-8a77c9a1cd027f2e.js" defer=""></script><script src="/_next/static/chunks/4723-0a3c5e2ce143a7d0.js" defer=""></script><script src="/_next/static/chunks/5826-e5dcb4e68cfe6289.js" defer=""></script><script src="/_next/static/chunks/pages/add-systems/multiple-ba975134a85588f8.js" defer=""></script><script src="/_next/static/7ef43wSyz6KNgQTInQ9Ih/_buildManifest.js" defer=""></script><script src="/_next/static/7ef43wSyz6KNgQTInQ9Ih/_ssgManifest.js" defer=""></script><style>.data-ant-cssinjs-cache-path{content:"";}</style></head><body><div id="__next"><div style="height:100%;display:flex"></div></div><script id="__NEXT_DATA__" type="application/json">{"props":{"pageProps":{}},"page":"/add-systems/multiple","query":{},"buildId":"7ef43wSyz6KNgQTInQ9Ih","nextExport":true,"autoExport":true,"isFallback":false,"scriptLoader":[]}</script></body></html>
|
@@ -1 +1 @@
|
|
1
|
-
<!DOCTYPE html><html lang="en"><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width"/><meta name="next-head-count" content="2"/><link data-next-font="" rel="preconnect" href="/" crossorigin="anonymous"/><link rel="preload" href="/_next/static/css/113d823fe71f6af0.css" as="style"/><link rel="stylesheet" href="/_next/static/css/113d823fe71f6af0.css" data-n-g=""/><link rel="preload" href="/_next/static/css/972dc7eef106ee7c.css" as="style"/><link rel="stylesheet" href="/_next/static/css/972dc7eef106ee7c.css" data-n-p=""/><noscript data-n-css=""></noscript><script defer="" nomodule="" src="/_next/static/chunks/polyfills-42372ed130431b0a.js"></script><script src="/_next/static/chunks/webpack-2c7ccac5843c4d8e.js" defer=""></script><script src="/_next/static/chunks/framework-c92fc3344e6fd165.js" defer=""></script><script src="/_next/static/chunks/main-
|
1
|
+
<!DOCTYPE html><html lang="en"><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width"/><meta name="next-head-count" content="2"/><link data-next-font="" rel="preconnect" href="/" crossorigin="anonymous"/><link rel="preload" href="/_next/static/css/113d823fe71f6af0.css" as="style"/><link rel="stylesheet" href="/_next/static/css/113d823fe71f6af0.css" data-n-g=""/><link rel="preload" href="/_next/static/css/972dc7eef106ee7c.css" as="style"/><link rel="stylesheet" href="/_next/static/css/972dc7eef106ee7c.css" data-n-p=""/><noscript data-n-css=""></noscript><script defer="" nomodule="" src="/_next/static/chunks/polyfills-42372ed130431b0a.js"></script><script src="/_next/static/chunks/webpack-2c7ccac5843c4d8e.js" defer=""></script><script src="/_next/static/chunks/framework-c92fc3344e6fd165.js" defer=""></script><script src="/_next/static/chunks/main-24f422f93845a596.js" defer=""></script><script src="/_next/static/chunks/pages/_app-fc89ce7bed454c84.js" defer=""></script><script src="/_next/static/chunks/pages/add-systems-d258f0c25fa020bf.js" defer=""></script><script src="/_next/static/7ef43wSyz6KNgQTInQ9Ih/_buildManifest.js" defer=""></script><script src="/_next/static/7ef43wSyz6KNgQTInQ9Ih/_ssgManifest.js" defer=""></script><style>.data-ant-cssinjs-cache-path{content:"";}</style></head><body><div id="__next"><div style="height:100%;display:flex"></div></div><script id="__NEXT_DATA__" type="application/json">{"props":{"pageProps":{}},"page":"/add-systems","query":{},"buildId":"7ef43wSyz6KNgQTInQ9Ih","nextExport":true,"autoExport":true,"isFallback":false,"scriptLoader":[]}</script></body></html>
|
@@ -1 +1 @@
|
|
1
|
-
<!DOCTYPE html><html lang="en"><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width"/><meta name="next-head-count" content="2"/><link data-next-font="" rel="preconnect" href="/" crossorigin="anonymous"/><link rel="preload" href="/_next/static/css/113d823fe71f6af0.css" as="style"/><link rel="stylesheet" href="/_next/static/css/113d823fe71f6af0.css" data-n-g=""/><noscript data-n-css=""></noscript><script defer="" nomodule="" src="/_next/static/chunks/polyfills-42372ed130431b0a.js"></script><script src="/_next/static/chunks/webpack-2c7ccac5843c4d8e.js" defer=""></script><script src="/_next/static/chunks/framework-c92fc3344e6fd165.js" defer=""></script><script src="/_next/static/chunks/main-
|
1
|
+
<!DOCTYPE html><html lang="en"><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width"/><meta name="next-head-count" content="2"/><link data-next-font="" rel="preconnect" href="/" crossorigin="anonymous"/><link rel="preload" href="/_next/static/css/113d823fe71f6af0.css" as="style"/><link rel="stylesheet" href="/_next/static/css/113d823fe71f6af0.css" data-n-g=""/><noscript data-n-css=""></noscript><script defer="" nomodule="" src="/_next/static/chunks/polyfills-42372ed130431b0a.js"></script><script src="/_next/static/chunks/webpack-2c7ccac5843c4d8e.js" defer=""></script><script src="/_next/static/chunks/framework-c92fc3344e6fd165.js" defer=""></script><script src="/_next/static/chunks/main-24f422f93845a596.js" defer=""></script><script src="/_next/static/chunks/pages/_app-fc89ce7bed454c84.js" defer=""></script><script src="/_next/static/chunks/pages/ant-poc-b9932971a479f3a7.js" defer=""></script><script src="/_next/static/7ef43wSyz6KNgQTInQ9Ih/_buildManifest.js" defer=""></script><script src="/_next/static/7ef43wSyz6KNgQTInQ9Ih/_ssgManifest.js" defer=""></script><style>.data-ant-cssinjs-cache-path{content:"";}</style></head><body><div id="__next"><div style="height:100%;display:flex"></div></div><script id="__NEXT_DATA__" type="application/json">{"props":{"pageProps":{}},"page":"/ant-poc","query":{},"buildId":"7ef43wSyz6KNgQTInQ9Ih","nextExport":true,"autoExport":true,"isFallback":false,"scriptLoader":[]}</script></body></html>
|
@@ -1 +1 @@
|
|
1
|
-
<!DOCTYPE html><html lang="en"><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width"/><meta name="next-head-count" content="2"/><link data-next-font="" rel="preconnect" href="/" crossorigin="anonymous"/><link rel="preload" href="/_next/static/css/113d823fe71f6af0.css" as="style"/><link rel="stylesheet" href="/_next/static/css/113d823fe71f6af0.css" data-n-g=""/><noscript data-n-css=""></noscript><script defer="" nomodule="" src="/_next/static/chunks/polyfills-42372ed130431b0a.js"></script><script src="/_next/static/chunks/webpack-2c7ccac5843c4d8e.js" defer=""></script><script src="/_next/static/chunks/framework-c92fc3344e6fd165.js" defer=""></script><script src="/_next/static/chunks/main-
|
1
|
+
<!DOCTYPE html><html lang="en"><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width"/><meta name="next-head-count" content="2"/><link data-next-font="" rel="preconnect" href="/" crossorigin="anonymous"/><link rel="preload" href="/_next/static/css/113d823fe71f6af0.css" as="style"/><link rel="stylesheet" href="/_next/static/css/113d823fe71f6af0.css" data-n-g=""/><noscript data-n-css=""></noscript><script defer="" nomodule="" src="/_next/static/chunks/polyfills-42372ed130431b0a.js"></script><script src="/_next/static/chunks/webpack-2c7ccac5843c4d8e.js" defer=""></script><script src="/_next/static/chunks/framework-c92fc3344e6fd165.js" defer=""></script><script src="/_next/static/chunks/main-24f422f93845a596.js" defer=""></script><script src="/_next/static/chunks/pages/_app-fc89ce7bed454c84.js" defer=""></script><script src="/_next/static/chunks/c78d26b1-88a3e1bacb2a03c2.js" defer=""></script><script src="/_next/static/chunks/6060-cb1ab5be7067bf7b.js" defer=""></script><script src="/_next/static/chunks/4481-aab99ff80f707473.js" defer=""></script><script src="/_next/static/chunks/355-8a77c9a1cd027f2e.js" defer=""></script><script src="/_next/static/chunks/4723-0a3c5e2ce143a7d0.js" defer=""></script><script src="/_next/static/chunks/5826-e5dcb4e68cfe6289.js" defer=""></script><script src="/_next/static/chunks/pages/consent/configure/add-vendors-b34e5324461d0c87.js" defer=""></script><script src="/_next/static/7ef43wSyz6KNgQTInQ9Ih/_buildManifest.js" defer=""></script><script src="/_next/static/7ef43wSyz6KNgQTInQ9Ih/_ssgManifest.js" defer=""></script><style>.data-ant-cssinjs-cache-path{content:"";}</style></head><body><div id="__next"><div style="height:100%;display:flex"></div></div><script id="__NEXT_DATA__" type="application/json">{"props":{"pageProps":{}},"page":"/consent/configure/add-vendors","query":{},"buildId":"7ef43wSyz6KNgQTInQ9Ih","nextExport":true,"autoExport":true,"isFallback":false,"scriptLoader":[]}</script></body></html>
|
@@ -1 +1 @@
|
|
1
|
-
<!DOCTYPE html><html lang="en"><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width"/><meta name="next-head-count" content="2"/><link data-next-font="" rel="preconnect" href="/" crossorigin="anonymous"/><link rel="preload" href="/_next/static/css/113d823fe71f6af0.css" as="style"/><link rel="stylesheet" href="/_next/static/css/113d823fe71f6af0.css" data-n-g=""/><noscript data-n-css=""></noscript><script defer="" nomodule="" src="/_next/static/chunks/polyfills-42372ed130431b0a.js"></script><script src="/_next/static/chunks/webpack-2c7ccac5843c4d8e.js" defer=""></script><script src="/_next/static/chunks/framework-c92fc3344e6fd165.js" defer=""></script><script src="/_next/static/chunks/main-
|
1
|
+
<!DOCTYPE html><html lang="en"><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width"/><meta name="next-head-count" content="2"/><link data-next-font="" rel="preconnect" href="/" crossorigin="anonymous"/><link rel="preload" href="/_next/static/css/113d823fe71f6af0.css" as="style"/><link rel="stylesheet" href="/_next/static/css/113d823fe71f6af0.css" data-n-g=""/><noscript data-n-css=""></noscript><script defer="" nomodule="" src="/_next/static/chunks/polyfills-42372ed130431b0a.js"></script><script src="/_next/static/chunks/webpack-2c7ccac5843c4d8e.js" defer=""></script><script src="/_next/static/chunks/framework-c92fc3344e6fd165.js" defer=""></script><script src="/_next/static/chunks/main-24f422f93845a596.js" defer=""></script><script src="/_next/static/chunks/pages/_app-fc89ce7bed454c84.js" defer=""></script><script src="/_next/static/chunks/c78d26b1-88a3e1bacb2a03c2.js" defer=""></script><script src="/_next/static/chunks/6060-cb1ab5be7067bf7b.js" defer=""></script><script src="/_next/static/chunks/4481-aab99ff80f707473.js" defer=""></script><script src="/_next/static/chunks/355-8a77c9a1cd027f2e.js" defer=""></script><script src="/_next/static/chunks/4723-0a3c5e2ce143a7d0.js" defer=""></script><script src="/_next/static/chunks/pages/consent/configure-723cc3d4f5740ea6.js" defer=""></script><script src="/_next/static/7ef43wSyz6KNgQTInQ9Ih/_buildManifest.js" defer=""></script><script src="/_next/static/7ef43wSyz6KNgQTInQ9Ih/_ssgManifest.js" defer=""></script><style>.data-ant-cssinjs-cache-path{content:"";}</style></head><body><div id="__next"><div style="height:100%;display:flex"></div></div><script id="__NEXT_DATA__" type="application/json">{"props":{"pageProps":{}},"page":"/consent/configure","query":{},"buildId":"7ef43wSyz6KNgQTInQ9Ih","nextExport":true,"autoExport":true,"isFallback":false,"scriptLoader":[]}</script></body></html>
|
@@ -1 +1 @@
|
|
1
|
-
<!DOCTYPE html><html lang="en"><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width"/><meta name="next-head-count" content="2"/><link data-next-font="" rel="preconnect" href="/" crossorigin="anonymous"/><link rel="preload" href="/_next/static/css/113d823fe71f6af0.css" as="style"/><link rel="stylesheet" href="/_next/static/css/113d823fe71f6af0.css" data-n-g=""/><noscript data-n-css=""></noscript><script defer="" nomodule="" src="/_next/static/chunks/polyfills-42372ed130431b0a.js"></script><script src="/_next/static/chunks/webpack-2c7ccac5843c4d8e.js" defer=""></script><script src="/_next/static/chunks/framework-c92fc3344e6fd165.js" defer=""></script><script src="/_next/static/chunks/main-
|
1
|
+
<!DOCTYPE html><html lang="en"><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width"/><meta name="next-head-count" content="2"/><link data-next-font="" rel="preconnect" href="/" crossorigin="anonymous"/><link rel="preload" href="/_next/static/css/113d823fe71f6af0.css" as="style"/><link rel="stylesheet" href="/_next/static/css/113d823fe71f6af0.css" data-n-g=""/><noscript data-n-css=""></noscript><script defer="" nomodule="" src="/_next/static/chunks/polyfills-42372ed130431b0a.js"></script><script src="/_next/static/chunks/webpack-2c7ccac5843c4d8e.js" defer=""></script><script src="/_next/static/chunks/framework-c92fc3344e6fd165.js" defer=""></script><script src="/_next/static/chunks/main-24f422f93845a596.js" defer=""></script><script src="/_next/static/chunks/pages/_app-fc89ce7bed454c84.js" defer=""></script><script src="/_next/static/chunks/2858-0b44609b6be7850b.js" defer=""></script><script src="/_next/static/chunks/2866-a73888c17a195cbe.js" defer=""></script><script src="/_next/static/chunks/4294-5b3aa9d605217915.js" defer=""></script><script src="/_next/static/chunks/9014-eeae6f581158e645.js" defer=""></script><script src="/_next/static/chunks/9282-2bfbdca45e84e810.js" defer=""></script><script src="/_next/static/chunks/1376-5cea5ef9362215e8.js" defer=""></script><script src="/_next/static/chunks/3412-7ec8751b8182e1bf.js" defer=""></script><script src="/_next/static/chunks/pages/consent/privacy-experience/%5Bid%5D-fb75fa0aea77678d.js" defer=""></script><script src="/_next/static/7ef43wSyz6KNgQTInQ9Ih/_buildManifest.js" defer=""></script><script src="/_next/static/7ef43wSyz6KNgQTInQ9Ih/_ssgManifest.js" defer=""></script><style>.data-ant-cssinjs-cache-path{content:"";}</style></head><body><div id="__next"><div style="height:100%;display:flex"></div></div><script id="__NEXT_DATA__" type="application/json">{"props":{"pageProps":{}},"page":"/consent/privacy-experience/[id]","query":{},"buildId":"7ef43wSyz6KNgQTInQ9Ih","nextExport":true,"autoExport":true,"isFallback":false,"scriptLoader":[]}</script></body></html>
|
@@ -1 +1 @@
|
|
1
|
-
<!DOCTYPE html><html lang="en"><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width"/><meta name="next-head-count" content="2"/><link data-next-font="" rel="preconnect" href="/" crossorigin="anonymous"/><link rel="preload" href="/_next/static/css/113d823fe71f6af0.css" as="style"/><link rel="stylesheet" href="/_next/static/css/113d823fe71f6af0.css" data-n-g=""/><noscript data-n-css=""></noscript><script defer="" nomodule="" src="/_next/static/chunks/polyfills-42372ed130431b0a.js"></script><script src="/_next/static/chunks/webpack-2c7ccac5843c4d8e.js" defer=""></script><script src="/_next/static/chunks/framework-c92fc3344e6fd165.js" defer=""></script><script src="/_next/static/chunks/main-
|
1
|
+
<!DOCTYPE html><html lang="en"><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width"/><meta name="next-head-count" content="2"/><link data-next-font="" rel="preconnect" href="/" crossorigin="anonymous"/><link rel="preload" href="/_next/static/css/113d823fe71f6af0.css" as="style"/><link rel="stylesheet" href="/_next/static/css/113d823fe71f6af0.css" data-n-g=""/><noscript data-n-css=""></noscript><script defer="" nomodule="" src="/_next/static/chunks/polyfills-42372ed130431b0a.js"></script><script src="/_next/static/chunks/webpack-2c7ccac5843c4d8e.js" defer=""></script><script src="/_next/static/chunks/framework-c92fc3344e6fd165.js" defer=""></script><script src="/_next/static/chunks/main-24f422f93845a596.js" defer=""></script><script src="/_next/static/chunks/pages/_app-fc89ce7bed454c84.js" defer=""></script><script src="/_next/static/chunks/2858-0b44609b6be7850b.js" defer=""></script><script src="/_next/static/chunks/2866-a73888c17a195cbe.js" defer=""></script><script src="/_next/static/chunks/4294-5b3aa9d605217915.js" defer=""></script><script src="/_next/static/chunks/9014-eeae6f581158e645.js" defer=""></script><script src="/_next/static/chunks/9282-2bfbdca45e84e810.js" defer=""></script><script src="/_next/static/chunks/1376-5cea5ef9362215e8.js" defer=""></script><script src="/_next/static/chunks/3412-7ec8751b8182e1bf.js" defer=""></script><script src="/_next/static/chunks/pages/consent/privacy-experience/new-a9d9402c219d13e5.js" defer=""></script><script src="/_next/static/7ef43wSyz6KNgQTInQ9Ih/_buildManifest.js" defer=""></script><script src="/_next/static/7ef43wSyz6KNgQTInQ9Ih/_ssgManifest.js" defer=""></script><style>.data-ant-cssinjs-cache-path{content:"";}</style></head><body><div id="__next"><div style="height:100%;display:flex"></div></div><script id="__NEXT_DATA__" type="application/json">{"props":{"pageProps":{}},"page":"/consent/privacy-experience/new","query":{},"buildId":"7ef43wSyz6KNgQTInQ9Ih","nextExport":true,"autoExport":true,"isFallback":false,"scriptLoader":[]}</script></body></html>
|