ethyca-fides 2.58.1b5__py2.py3-none-any.whl → 2.58.1rc0__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.1rc0.dist-info}/METADATA +1 -1
- {ethyca_fides-2.58.1b5.dist-info → ethyca_fides-2.58.1rc0.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 → 7Gn2YyMsVjWkBPSaVWEi9}/_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.1rc0.dist-info}/LICENSE +0 -0
- {ethyca_fides-2.58.1b5.dist-info → ethyca_fides-2.58.1rc0.dist-info}/WHEEL +0 -0
- {ethyca_fides-2.58.1b5.dist-info → ethyca_fides-2.58.1rc0.dist-info}/entry_points.txt +0 -0
- {ethyca_fides-2.58.1b5.dist-info → ethyca_fides-2.58.1rc0.dist-info}/top_level.txt +0 -0
- /fides/ui-build/static/admin/_next/static/{ImUuWMsloiAWNWbICVyCj → 7Gn2YyMsVjWkBPSaVWEi9}/_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
|
-
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6853],{35287:function(a,n,_){var e=_(24246),i=_(77181),F=_(88038),t=_.n(F);_(27378),n.Z=a=>{let{children:n,title:_,mainProps:F}=a;return(0,e.jsxs)(i.kCb,{"data-testid":_,direction:"column",height:"calc(100vh - 48px)",width:"calc(100vw - 240px)",children:[(0,e.jsxs)(t(),{children:[(0,e.jsxs)("title",{children:["Fides Admin UI - ",_]}),(0,e.jsx)("meta",{name:"description",content:"Privacy Engineering Platform"}),(0,e.jsx)("link",{rel:"icon",href:"/favicon.ico"})]}),(0,e.jsx)(i.kCb,{px:10,py:6,as:"main",overflow:"auto",direction:"column",flex:1,minWidth:0,...F,children:n})]})}},19904:function(a,n,_){_.d(n,{Tg:function(){return t}});var e=_(24246),i=_(16134),F=_(31793);let t=a=>(0,i.C)(F.uu).filter(n=>a.includes(n)).length>0;n.ZP=a=>{let{scopes:n,children:_}=a;return t(n)?(0,e.jsx)(e.Fragment,{children:_}):null}},8411:function(a,n,_){_.d(n,{NA:function(){return F},Z8:function(){return i}});var e=_(28120);let i={[e._F.ER]:"Eritrea",[e._F.DJ]:"Djibouti",[e._F.MR]:"Mauritania",[e._F.NA]:"Namibia",[e._F.GH]:"Ghana",[e._F.SS]:"South Sudan",[e._F.SC]:"Seychelles",[e._F.IO]:"British Indian Ocean Territory",[e._F.GQ]:"Equatorial Guinea",[e._F.AO]:"Angola",[e._F.CG]:"Republic of the Congo",[e._F.BW]:"Botswana",[e._F.BI]:"Burundi",[e._F.DZ]:"Algeria",[e._F.TD]:"Chad",[e._F.NG]:"Nigeria",[e._F.TZ]:"Tanzania",[e._F.EH]:"Western Sahara",[e._F.SN]:"Senegal",[e._F.LR]:"Liberia",[e._F.ZA]:"South Africa",[e._F.CV]:"Cape Verde",[e._F.GM]:"Gambia",[e._F.SD]:"Sudan",[e._F.KM]:"Comoros",[e._F.SZ]:"Eswatini",[e._F.UG]:"Uganda",[e._F.MG]:"Madagascar",[e._F.RW]:"Rwanda",[e._F.CD]:"DR Congo",[e._F.CM]:"Cameroon",[e._F.SH]:"Saint Helena, Ascension and Tristan da Cunha",[e._F.TG]:"Togo",[e._F.MU]:"Mauritius",[e._F.NE]:"Niger",[e._F.BJ]:"Benin",[e._F.EG]:"Egypt",[e._F.LS]:"Lesotho",[e._F.ET]:"Ethiopia",[e._F.MA]:"Morocco",[e._F.YT]:"Mayotte",[e._F.BF]:"Burkina Faso",[e._F.RE]:"R\xe9union",[e._F.ST]:"S\xe3o Tom\xe9 and Pr\xedncipe",[e._F.CF]:"Central African Republic",[e._F.MZ]:"Mozambique",[e._F.MW]:"Malawi",[e._F.ML]:"Mali",[e._F.ZM]:"Zambia",[e._F.LY]:"Libya",[e._F.GW]:"Guinea-Bissau",[e._F.SO]:"Somalia",[e._F.KE]:"Kenya",[e._F.GN]:"Guinea",[e._F.ZW]:"Zimbabwe",[e._F.TN]:"Tunisia",[e._F.SL]:"Sierra Leone",[e._F.GA]:"Gabon",[e._F.CI]:"Ivory Coast",[e._F.JO]:"Jordan",[e._F.PK]:"Pakistan",[e._F.KP]:"North Korea",[e._F.MO]:"Macau",[e._F.AM]:"Armenia",[e._F.SY]:"Syria",[e._F.TJ]:"Tajikistan",[e._F.SA]:"Saudi Arabia",[e._F.KR]:"South Korea",[e._F.NP]:"Nepal",[e._F.PH]:"Philippines",[e._F.IQ]:"Iraq",[e._F.LB]:"Lebanon",[e._F.MN]:"Mongolia",[e._F.PS]:"Palestine",[e._F.YE]:"Yemen",[e._F.JP]:"Japan",[e._F.KZ]:"Kazakhstan",[e._F.LK]:"Sri Lanka",[e._F.MM]:"Myanmar",[e._F.KG]:"Kyrgyzstan",[e._F.CN]:"China",[e._F.AF]:"Afghanistan",[e._F.OM]:"Oman",[e._F.IN]:"India",[e._F.LA]:"Laos",[e._F.UZ]:"Uzbekistan",[e._F.MV]:"Maldives",[e._F.ID]:"Indonesia",[e._F.VN]:"Vietnam",[e._F.MY]:"Malaysia",[e._F.TW]:"Taiwan",[e._F.KH]:"Cambodia",[e._F.AE]:"United Arab Emirates",[e._F.HK]:"Hong Kong",[e._F.GE]:"Georgia",[e._F.BD]:"Bangladesh",[e._F.KW]:"Kuwait",[e._F.TM]:"Turkmenistan",[e._F.QA]:"Qatar",[e._F.BH]:"Bahrain",[e._F.BN]:"Brunei",[e._F.TH]:"Thailand",[e._F.BT]:"Bhutan",[e._F.SG]:"Singapore",[e._F.IL]:"Israel",[e._F.AZ]:"Azerbaijan",[e._F.TL]:"Timor-Leste",[e._F.IR]:"Iran",[e._F.TR]:"Turkey",[e._F.MK]:"North Macedonia",[e._F.IE]:"Ireland",[e._F.DK]:"Denmark",[e._F.SK]:"Slovakia",[e._F.MD]:"Moldova",[e._F.AX]:"\xc5land Islands",[e._F.PL]:"Poland",[e._F.BA]:"Bosnia and Herzegovina",[e._F.SM]:"San Marino",[e._F.CZ]:"Czechia",[e._F.EE]:"Estonia",[e._F.XK]:"Kosovo",[e._F.FO]:"Faroe Islands",[e._F.SJ]:"Svalbard and Jan Mayen",[e._F.GG]:"Guernsey",[e._F.FR]:"France",[e._F.NL]:"Netherlands",[e._F.FI]:"Finland",[e._F.PT]:"Portugal",[e._F.DE]:"Germany",[e._F.MT]:"Malta",[e._F.JE]:"Jersey",[e._F.IS]:"Iceland",[e._F.ES]:"Spain",[e._F.GI]:"Gibraltar",[e._F.NO]:"Norway",[e._F.CY]:"Cyprus",[e._F.RS]:"Serbia",[e._F.LT]:"Lithuania",[e._F.MC]:"Monaco",[e._F.LU]:"Luxembourg",[e._F.UA]:"Ukraine",[e._F.IM]:"Isle of Man",[e._F.RO]:"Romania",[e._F.BE]:"Belgium",[e._F.SE]:"Sweden",[e._F.ME]:"Montenegro",[e._F.LV]:"Latvia",[e._F.VA]:"Vatican City",[e._F.AT]:"Austria",[e._F.AL]:"Albania",[e._F.LI]:"Liechtenstein",[e._F.GR]:"Greece",[e._F.IT]:"Italy",[e._F.AD]:"Andorra",[e._F.GB]:"United Kingdom",[e._F.RU]:"Russia",[e._F.SI]:"Slovenia",[e._F.BY]:"Belarus",[e._F.CH]:"Switzerland",[e._F.HU]:"Hungary",[e._F.BG]:"Bulgaria",[e._F.HR]:"Croatia",[e._F.TC]:"Turks and Caicos Islands",[e._F.CW]:"Cura\xe7ao",[e._F.GP]:"Guadeloupe",[e._F.UM]:"United States Minor Outlying Islands",[e._F.GT]:"Guatemala",[e._F.PM]:"Saint Pierre and Miquelon",[e._F.BQ]:"Caribbean Netherlands",[e._F.GL]:"Greenland",[e._F.SX]:"Sint Maarten",[e._F.PA]:"Panama",[e._F.AW]:"Aruba",[e._F.MQ]:"Martinique",[e._F.AG]:"Antigua and Barbuda",[e._F.BM]:"Bermuda",[e._F.CU]:"Cuba",[e._F.GD]:"Grenada",[e._F.NI]:"Nicaragua",[e._F.LC]:"Saint Lucia",[e._F.KN]:"Saint Kitts and Nevis",[e._F.DO]:"Dominican Republic",[e._F.VC]:"Saint Vincent and the Grenadines",[e._F.BZ]:"Belize",[e._F.HT]:"Haiti",[e._F.JM]:"Jamaica",[e._F.BS]:"Bahamas",[e._F.MX]:"Mexico",[e._F.MF]:"Saint Martin",[e._F.SV]:"El Salvador",[e._F.BL]:"Saint Barth\xe9lemy",[e._F.AI]:"Anguilla",[e._F.MS]:"Montserrat",[e._F.VG]:"British Virgin Islands",[e._F.BB]:"Barbados",[e._F.HN]:"Honduras",[e._F.KY]:"Cayman Islands",[e._F.DM]:"Dominica",[e._F.TT]:"Trinidad and Tobago",[e._F.CR]:"Costa Rica",[e._F.SR]:"Suriname",[e._F.CX]:"Christmas Island",[e._F.WS]:"Samoa",[e._F.PF]:"French Polynesia",[e._F.AS]:"American Samoa",[e._F.NC]:"New Caledonia",[e._F.TK]:"Tokelau",[e._F.PW]:"Palau",[e._F.KI]:"Kiribati",[e._F.VU]:"Vanuatu",[e._F.PN]:"Pitcairn Islands",[e._F.CK]:"Cook Islands",[e._F.FJ]:"Fiji",[e._F.PG]:"Papua New Guinea",[e._F.MP]:"Northern Mariana Islands",[e._F.NU]:"Niue",[e._F.TV]:"Tuvalu",[e._F.NF]:"Norfolk Island",[e._F.TO]:"Tonga",[e._F.FM]:"Micronesia",[e._F.SB]:"Solomon Islands",[e._F.NR]:"Nauru",[e._F.WF]:"Wallis and Futuna",[e._F.GU]:"Guam",[e._F.AU]:"Australia",[e._F.NZ]:"New Zealand",[e._F.MH]:"Marshall Islands",[e._F.CC]:"Cocos (Keeling) Islands",[e._F.VE]:"Venezuela",[e._F.PY]:"Paraguay",[e._F.BR]:"Brazil",[e._F.CO]:"Colombia",[e._F.PE]:"Peru",[e._F.CL]:"Chile",[e._F.UY]:"Uruguay",[e._F.AR]:"Argentina",[e._F.GY]:"Guyana",[e._F.BO]:"Bolivia",[e._F.GF]:"French Guiana",[e._F.EC]:"Ecuador",[e._F.FK]:"Falkland Islands",[e._F.US_AL]:"Alabama",[e._F.US_AK]:"Alaska",[e._F.US_AZ]:"Arizona",[e._F.US_AR]:"Arkansas",[e._F.US_CA]:"California",[e._F.US_CO]:"Colorado",[e._F.US_CT]:"Connecticut",[e._F.US_DE]:"Delaware",[e._F.US_DC]:"District of Columbia (DC)",[e._F.US_FL]:"Florida",[e._F.US_GA]:"Georgia",[e._F.US_HI]:"Hawaii",[e._F.US_ID]:"Idaho",[e._F.US_IL]:"Illinois",[e._F.US_IN]:"Indiana",[e._F.US_IA]:"Iowa",[e._F.US_KS]:"Kansas",[e._F.US_KY]:"Kentucky",[e._F.US_LA]:"Louisiana",[e._F.US_ME]:"Maine",[e._F.US_MD]:"Maryland",[e._F.US_MA]:"Massachusetts",[e._F.US_MI]:"Michigan",[e._F.US_MN]:"Minnesota",[e._F.US_MS]:"Mississippi",[e._F.US_MO]:"Missouri",[e._F.US_MT]:"Montana",[e._F.US_NE]:"Nebraska",[e._F.US_NV]:"Nevada",[e._F.US_NH]:"New Hampshire",[e._F.US_NJ]:"New Jersey",[e._F.US_NM]:"New Mexico",[e._F.US_NY]:"New York",[e._F.US_NC]:"North Carolina",[e._F.US_ND]:"North Dakota",[e._F.US_OH]:"Ohio",[e._F.US_OK]:"Oklahoma",[e._F.US_OR]:"Oregon",[e._F.US_PA]:"Pennsylvania",[e._F.US_PR]:"Puerto Rico",[e._F.US_RI]:"Rhode Island",[e._F.US_SC]:"South Carolina",[e._F.US_SD]:"San Diego",[e._F.US_TN]:"Tennessee",[e._F.US_TX]:"Texas",[e._F.US_UT]:"Utah",[e._F.US_VA]:"Virginia",[e._F.US_VI]:"United States Virgin Islands",[e._F.US_VT]:"Vermon",[e._F.US_WA]:"Washington",[e._F.US_WV]:"West Virginia",[e._F.US_WI]:"Wisconsin",[e._F.US_WY]:"Wyoming",[e._F.CA_AB]:"Alberta",[e._F.CA_BC]:"British Columbia",[e._F.CA_MB]:"Manitoba",[e._F.CA_NB]:"New Brunswick",[e._F.CA_NL]:"Newfoundland and Labrador",[e._F.CA_NS]:"Nova Scotia",[e._F.CA_ON]:"Ontario",[e._F.CA_PE]:"Prince Edward Island",[e._F.CA_QC]:"Quebec",[e._F.CA_SK]:"Saskatchewan",[e._F.CA_NT]:"Northwest Territories",[e._F.CA_NU]:"Nunavut",[e._F.CA_YT]:"Yukon",[e._F.CA]:"Canada",[e._F.US]:"United States",[e._F.MEXICO_CENTRAL_AMERICA]:"Mexico and Central America",[e._F.CARIBBEAN]:"Caribbean",[e._F.EEA]:"European Economic Area (EEA)",[e._F.NON_EEA]:"Non European Economic Area"},F=new Map(Object.entries(i));Object.entries(i).map(a=>({value:a[0],label:a[1]}))},22286:function(a,n,_){_.d(n,{JA:function(){return l},JL:function(){return u},Mq:function(){return d},PS:function(){return M},jN:function(){return c}});var e=_(24246),i=_(77181),F=_(27378),t=_(8411),r=_(72625),o=_(65063),s=_(71922);let l=a=>{var n;let _=null!==(n=o.ye.get(a))&&void 0!==n?n:a;return(0,e.jsx)(i.j8w,{"data-testid":"status-badge",style:{textTransform:"uppercase"},children:_})},u=a=>{if(!a)return[];let n=[];return a.forEach(a=>{let _=t.NA.get(a);void 0!==_&&n.push(_)}),n},d=a=>{if(!a)return[];let n=[];return a.forEach(a=>{let _=a.name;void 0!==_&&n.push(_)}),n},S={available:{color:"warning",tooltip:"This notice is associated with a system + data use and can be enabled"},enabled:{color:"success",tooltip:"This notice is active and available for consumers"},inactive:{color:"default",tooltip:"This privacy notice cannot be enabled because it either does not have a data use or the linked data use has not been assigned to a system"}},c=a=>{let n;let{row:_}=a,{systems_applicable:F,disabled:t,data_uses:r}=_.original,{tooltip:o,...s}=(n=r&&F?t?"available":"enabled":"inactive")?S[n]:{color:"default"};return(0,e.jsx)(i.esZ,{title:o,children:(0,e.jsx)("span",{children:(0,e.jsx)(i.j8w,{color:s.color,"data-testid":"status-badge",style:{textTransform:"uppercase"},children:n})})})},M=a=>{let{row:n,getValue:_}=a,[i]=(0,s.vK)(),[t,o]=(0,F.useState)(!1),l=_(),u=async a=>{o(!0);let _=await i({id:n.original.id,disabled:!a});return o(!1),_},{systems_applicable:d,disabled:S,data_uses:c}=n.original;return(0,e.jsx)(r.S1,{enabled:!l,isDisabled:S&&!d||!c,onToggle:u,title:"Disable privacy notice",message:"Are you sure you want to disable this privacy notice? Disabling this notice means your users will no longer see this explanation about your data uses which is necessary to ensure compliance.",loading:t})}},65063:function(a,n,_){_.d(n,{B8:function(){return F},Ep:function(){return t},ye:function(){return i}});var e=_(28120);let i=new Map([[e.J7.OPT_IN,"Opt in"],[e.J7.NOTICE_ONLY,"Notice only"],[e.J7.OPT_OUT,"Opt out"]]),F=new Map([[e.QT.SYSTEM_WIDE,"System wide"],[e.QT.FRONTEND,"Front end"],[e.QT.NOT_APPLICABLE,"Not applicable"]]),t=new Map([["gpp_us_national","GPP US National"],["gpp_us_state","GPP US State"]])}}]);
|
1
|
+
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6853],{35287:function(a,n,_){var e=_(24246),i=_(77181),F=_(88038),t=_.n(F);_(27378),n.Z=a=>{let{children:n,title:_,mainProps:F}=a;return(0,e.jsxs)(i.kCb,{"data-testid":_,direction:"column",height:"calc(100vh - 48px)",width:"calc(100vw - 240px)",children:[(0,e.jsxs)(t(),{children:[(0,e.jsxs)("title",{children:["Fides Admin UI - ",_]}),(0,e.jsx)("meta",{name:"description",content:"Privacy Engineering Platform"}),(0,e.jsx)("link",{rel:"icon",href:"/favicon.ico"})]}),(0,e.jsx)(i.kCb,{px:10,py:6,as:"main",overflow:"auto",direction:"column",flex:1,minWidth:0,...F,children:n})]})}},19904:function(a,n,_){_.d(n,{Tg:function(){return t}});var e=_(24246),i=_(16134),F=_(31793);let t=a=>(0,i.C)(F.uu).filter(n=>a.includes(n)).length>0;n.ZP=a=>{let{scopes:n,children:_}=a;return t(n)?(0,e.jsx)(e.Fragment,{children:_}):null}},8411:function(a,n,_){_.d(n,{NA:function(){return F},Z8:function(){return i}});var e=_(21702);let i={[e._F.ER]:"Eritrea",[e._F.DJ]:"Djibouti",[e._F.MR]:"Mauritania",[e._F.NA]:"Namibia",[e._F.GH]:"Ghana",[e._F.SS]:"South Sudan",[e._F.SC]:"Seychelles",[e._F.IO]:"British Indian Ocean Territory",[e._F.GQ]:"Equatorial Guinea",[e._F.AO]:"Angola",[e._F.CG]:"Republic of the Congo",[e._F.BW]:"Botswana",[e._F.BI]:"Burundi",[e._F.DZ]:"Algeria",[e._F.TD]:"Chad",[e._F.NG]:"Nigeria",[e._F.TZ]:"Tanzania",[e._F.EH]:"Western Sahara",[e._F.SN]:"Senegal",[e._F.LR]:"Liberia",[e._F.ZA]:"South Africa",[e._F.CV]:"Cape Verde",[e._F.GM]:"Gambia",[e._F.SD]:"Sudan",[e._F.KM]:"Comoros",[e._F.SZ]:"Eswatini",[e._F.UG]:"Uganda",[e._F.MG]:"Madagascar",[e._F.RW]:"Rwanda",[e._F.CD]:"DR Congo",[e._F.CM]:"Cameroon",[e._F.SH]:"Saint Helena, Ascension and Tristan da Cunha",[e._F.TG]:"Togo",[e._F.MU]:"Mauritius",[e._F.NE]:"Niger",[e._F.BJ]:"Benin",[e._F.EG]:"Egypt",[e._F.LS]:"Lesotho",[e._F.ET]:"Ethiopia",[e._F.MA]:"Morocco",[e._F.YT]:"Mayotte",[e._F.BF]:"Burkina Faso",[e._F.RE]:"R\xe9union",[e._F.ST]:"S\xe3o Tom\xe9 and Pr\xedncipe",[e._F.CF]:"Central African Republic",[e._F.MZ]:"Mozambique",[e._F.MW]:"Malawi",[e._F.ML]:"Mali",[e._F.ZM]:"Zambia",[e._F.LY]:"Libya",[e._F.GW]:"Guinea-Bissau",[e._F.SO]:"Somalia",[e._F.KE]:"Kenya",[e._F.GN]:"Guinea",[e._F.ZW]:"Zimbabwe",[e._F.TN]:"Tunisia",[e._F.SL]:"Sierra Leone",[e._F.GA]:"Gabon",[e._F.CI]:"Ivory Coast",[e._F.JO]:"Jordan",[e._F.PK]:"Pakistan",[e._F.KP]:"North Korea",[e._F.MO]:"Macau",[e._F.AM]:"Armenia",[e._F.SY]:"Syria",[e._F.TJ]:"Tajikistan",[e._F.SA]:"Saudi Arabia",[e._F.KR]:"South Korea",[e._F.NP]:"Nepal",[e._F.PH]:"Philippines",[e._F.IQ]:"Iraq",[e._F.LB]:"Lebanon",[e._F.MN]:"Mongolia",[e._F.PS]:"Palestine",[e._F.YE]:"Yemen",[e._F.JP]:"Japan",[e._F.KZ]:"Kazakhstan",[e._F.LK]:"Sri Lanka",[e._F.MM]:"Myanmar",[e._F.KG]:"Kyrgyzstan",[e._F.CN]:"China",[e._F.AF]:"Afghanistan",[e._F.OM]:"Oman",[e._F.IN]:"India",[e._F.LA]:"Laos",[e._F.UZ]:"Uzbekistan",[e._F.MV]:"Maldives",[e._F.ID]:"Indonesia",[e._F.VN]:"Vietnam",[e._F.MY]:"Malaysia",[e._F.TW]:"Taiwan",[e._F.KH]:"Cambodia",[e._F.AE]:"United Arab Emirates",[e._F.HK]:"Hong Kong",[e._F.GE]:"Georgia",[e._F.BD]:"Bangladesh",[e._F.KW]:"Kuwait",[e._F.TM]:"Turkmenistan",[e._F.QA]:"Qatar",[e._F.BH]:"Bahrain",[e._F.BN]:"Brunei",[e._F.TH]:"Thailand",[e._F.BT]:"Bhutan",[e._F.SG]:"Singapore",[e._F.IL]:"Israel",[e._F.AZ]:"Azerbaijan",[e._F.TL]:"Timor-Leste",[e._F.IR]:"Iran",[e._F.TR]:"Turkey",[e._F.MK]:"North Macedonia",[e._F.IE]:"Ireland",[e._F.DK]:"Denmark",[e._F.SK]:"Slovakia",[e._F.MD]:"Moldova",[e._F.AX]:"\xc5land Islands",[e._F.PL]:"Poland",[e._F.BA]:"Bosnia and Herzegovina",[e._F.SM]:"San Marino",[e._F.CZ]:"Czechia",[e._F.EE]:"Estonia",[e._F.XK]:"Kosovo",[e._F.FO]:"Faroe Islands",[e._F.SJ]:"Svalbard and Jan Mayen",[e._F.GG]:"Guernsey",[e._F.FR]:"France",[e._F.NL]:"Netherlands",[e._F.FI]:"Finland",[e._F.PT]:"Portugal",[e._F.DE]:"Germany",[e._F.MT]:"Malta",[e._F.JE]:"Jersey",[e._F.IS]:"Iceland",[e._F.ES]:"Spain",[e._F.GI]:"Gibraltar",[e._F.NO]:"Norway",[e._F.CY]:"Cyprus",[e._F.RS]:"Serbia",[e._F.LT]:"Lithuania",[e._F.MC]:"Monaco",[e._F.LU]:"Luxembourg",[e._F.UA]:"Ukraine",[e._F.IM]:"Isle of Man",[e._F.RO]:"Romania",[e._F.BE]:"Belgium",[e._F.SE]:"Sweden",[e._F.ME]:"Montenegro",[e._F.LV]:"Latvia",[e._F.VA]:"Vatican City",[e._F.AT]:"Austria",[e._F.AL]:"Albania",[e._F.LI]:"Liechtenstein",[e._F.GR]:"Greece",[e._F.IT]:"Italy",[e._F.AD]:"Andorra",[e._F.GB]:"United Kingdom",[e._F.RU]:"Russia",[e._F.SI]:"Slovenia",[e._F.BY]:"Belarus",[e._F.CH]:"Switzerland",[e._F.HU]:"Hungary",[e._F.BG]:"Bulgaria",[e._F.HR]:"Croatia",[e._F.TC]:"Turks and Caicos Islands",[e._F.CW]:"Cura\xe7ao",[e._F.GP]:"Guadeloupe",[e._F.UM]:"United States Minor Outlying Islands",[e._F.GT]:"Guatemala",[e._F.PM]:"Saint Pierre and Miquelon",[e._F.BQ]:"Caribbean Netherlands",[e._F.GL]:"Greenland",[e._F.SX]:"Sint Maarten",[e._F.PA]:"Panama",[e._F.AW]:"Aruba",[e._F.MQ]:"Martinique",[e._F.AG]:"Antigua and Barbuda",[e._F.BM]:"Bermuda",[e._F.CU]:"Cuba",[e._F.GD]:"Grenada",[e._F.NI]:"Nicaragua",[e._F.LC]:"Saint Lucia",[e._F.KN]:"Saint Kitts and Nevis",[e._F.DO]:"Dominican Republic",[e._F.VC]:"Saint Vincent and the Grenadines",[e._F.BZ]:"Belize",[e._F.HT]:"Haiti",[e._F.JM]:"Jamaica",[e._F.BS]:"Bahamas",[e._F.MX]:"Mexico",[e._F.MF]:"Saint Martin",[e._F.SV]:"El Salvador",[e._F.BL]:"Saint Barth\xe9lemy",[e._F.AI]:"Anguilla",[e._F.MS]:"Montserrat",[e._F.VG]:"British Virgin Islands",[e._F.BB]:"Barbados",[e._F.HN]:"Honduras",[e._F.KY]:"Cayman Islands",[e._F.DM]:"Dominica",[e._F.TT]:"Trinidad and Tobago",[e._F.CR]:"Costa Rica",[e._F.SR]:"Suriname",[e._F.CX]:"Christmas Island",[e._F.WS]:"Samoa",[e._F.PF]:"French Polynesia",[e._F.AS]:"American Samoa",[e._F.NC]:"New Caledonia",[e._F.TK]:"Tokelau",[e._F.PW]:"Palau",[e._F.KI]:"Kiribati",[e._F.VU]:"Vanuatu",[e._F.PN]:"Pitcairn Islands",[e._F.CK]:"Cook Islands",[e._F.FJ]:"Fiji",[e._F.PG]:"Papua New Guinea",[e._F.MP]:"Northern Mariana Islands",[e._F.NU]:"Niue",[e._F.TV]:"Tuvalu",[e._F.NF]:"Norfolk Island",[e._F.TO]:"Tonga",[e._F.FM]:"Micronesia",[e._F.SB]:"Solomon Islands",[e._F.NR]:"Nauru",[e._F.WF]:"Wallis and Futuna",[e._F.GU]:"Guam",[e._F.AU]:"Australia",[e._F.NZ]:"New Zealand",[e._F.MH]:"Marshall Islands",[e._F.CC]:"Cocos (Keeling) Islands",[e._F.VE]:"Venezuela",[e._F.PY]:"Paraguay",[e._F.BR]:"Brazil",[e._F.CO]:"Colombia",[e._F.PE]:"Peru",[e._F.CL]:"Chile",[e._F.UY]:"Uruguay",[e._F.AR]:"Argentina",[e._F.GY]:"Guyana",[e._F.BO]:"Bolivia",[e._F.GF]:"French Guiana",[e._F.EC]:"Ecuador",[e._F.FK]:"Falkland Islands",[e._F.US_AL]:"Alabama",[e._F.US_AK]:"Alaska",[e._F.US_AZ]:"Arizona",[e._F.US_AR]:"Arkansas",[e._F.US_CA]:"California",[e._F.US_CO]:"Colorado",[e._F.US_CT]:"Connecticut",[e._F.US_DE]:"Delaware",[e._F.US_DC]:"District of Columbia (DC)",[e._F.US_FL]:"Florida",[e._F.US_GA]:"Georgia",[e._F.US_HI]:"Hawaii",[e._F.US_ID]:"Idaho",[e._F.US_IL]:"Illinois",[e._F.US_IN]:"Indiana",[e._F.US_IA]:"Iowa",[e._F.US_KS]:"Kansas",[e._F.US_KY]:"Kentucky",[e._F.US_LA]:"Louisiana",[e._F.US_ME]:"Maine",[e._F.US_MD]:"Maryland",[e._F.US_MA]:"Massachusetts",[e._F.US_MI]:"Michigan",[e._F.US_MN]:"Minnesota",[e._F.US_MS]:"Mississippi",[e._F.US_MO]:"Missouri",[e._F.US_MT]:"Montana",[e._F.US_NE]:"Nebraska",[e._F.US_NV]:"Nevada",[e._F.US_NH]:"New Hampshire",[e._F.US_NJ]:"New Jersey",[e._F.US_NM]:"New Mexico",[e._F.US_NY]:"New York",[e._F.US_NC]:"North Carolina",[e._F.US_ND]:"North Dakota",[e._F.US_OH]:"Ohio",[e._F.US_OK]:"Oklahoma",[e._F.US_OR]:"Oregon",[e._F.US_PA]:"Pennsylvania",[e._F.US_PR]:"Puerto Rico",[e._F.US_RI]:"Rhode Island",[e._F.US_SC]:"South Carolina",[e._F.US_SD]:"San Diego",[e._F.US_TN]:"Tennessee",[e._F.US_TX]:"Texas",[e._F.US_UT]:"Utah",[e._F.US_VA]:"Virginia",[e._F.US_VI]:"United States Virgin Islands",[e._F.US_VT]:"Vermon",[e._F.US_WA]:"Washington",[e._F.US_WV]:"West Virginia",[e._F.US_WI]:"Wisconsin",[e._F.US_WY]:"Wyoming",[e._F.CA_AB]:"Alberta",[e._F.CA_BC]:"British Columbia",[e._F.CA_MB]:"Manitoba",[e._F.CA_NB]:"New Brunswick",[e._F.CA_NL]:"Newfoundland and Labrador",[e._F.CA_NS]:"Nova Scotia",[e._F.CA_ON]:"Ontario",[e._F.CA_PE]:"Prince Edward Island",[e._F.CA_QC]:"Quebec",[e._F.CA_SK]:"Saskatchewan",[e._F.CA_NT]:"Northwest Territories",[e._F.CA_NU]:"Nunavut",[e._F.CA_YT]:"Yukon",[e._F.CA]:"Canada",[e._F.US]:"United States",[e._F.MEXICO_CENTRAL_AMERICA]:"Mexico and Central America",[e._F.CARIBBEAN]:"Caribbean",[e._F.EEA]:"European Economic Area (EEA)",[e._F.NON_EEA]:"Non European Economic Area"},F=new Map(Object.entries(i));Object.entries(i).map(a=>({value:a[0],label:a[1]}))},22286:function(a,n,_){_.d(n,{JA:function(){return l},JL:function(){return u},Mq:function(){return d},PS:function(){return M},jN:function(){return c}});var e=_(24246),i=_(77181),F=_(27378),t=_(8411),r=_(72625),o=_(65063),s=_(71922);let l=a=>{var n;let _=null!==(n=o.ye.get(a))&&void 0!==n?n:a;return(0,e.jsx)(i.j8w,{"data-testid":"status-badge",style:{textTransform:"uppercase"},children:_})},u=a=>{if(!a)return[];let n=[];return a.forEach(a=>{let _=t.NA.get(a);void 0!==_&&n.push(_)}),n},d=a=>{if(!a)return[];let n=[];return a.forEach(a=>{let _=a.name;void 0!==_&&n.push(_)}),n},S={available:{color:"warning",tooltip:"This notice is associated with a system + data use and can be enabled"},enabled:{color:"success",tooltip:"This notice is active and available for consumers"},inactive:{color:"default",tooltip:"This privacy notice cannot be enabled because it either does not have a data use or the linked data use has not been assigned to a system"}},c=a=>{let n;let{row:_}=a,{systems_applicable:F,disabled:t,data_uses:r}=_.original,{tooltip:o,...s}=(n=r&&F?t?"available":"enabled":"inactive")?S[n]:{color:"default"};return(0,e.jsx)(i.esZ,{title:o,children:(0,e.jsx)("span",{children:(0,e.jsx)(i.j8w,{color:s.color,"data-testid":"status-badge",style:{textTransform:"uppercase"},children:n})})})},M=a=>{let{row:n,getValue:_}=a,[i]=(0,s.vK)(),[t,o]=(0,F.useState)(!1),l=_(),u=async a=>{o(!0);let _=await i({id:n.original.id,disabled:!a});return o(!1),_},{systems_applicable:d,disabled:S,data_uses:c}=n.original;return(0,e.jsx)(r.S1,{enabled:!l,isDisabled:S&&!d||!c,onToggle:u,title:"Disable privacy notice",message:"Are you sure you want to disable this privacy notice? Disabling this notice means your users will no longer see this explanation about your data uses which is necessary to ensure compliance.",loading:t})}},65063:function(a,n,_){_.d(n,{B8:function(){return F},Ep:function(){return t},ye:function(){return i}});var e=_(21702);let i=new Map([[e.J7.OPT_IN,"Opt in"],[e.J7.NOTICE_ONLY,"Notice only"],[e.J7.OPT_OUT,"Opt out"]]),F=new Map([[e.QT.SYSTEM_WIDE,"System wide"],[e.QT.FRONTEND,"Front end"],[e.QT.NOT_APPLICABLE,"Not applicable"]]),t=new Map([["gpp_us_national","GPP US National"],["gpp_us_state","GPP US State"]])}}]);
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6954],{58754:function(e,n,t){var a=t(24246),i=t(77181),l=t(70788);n.Z=e=>{let{heading:n,breadcrumbItems:t,isSticky:s=!0,children:r,rightContent:o,style:d,...c}=e;return(0,a.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,a.jsxs)(i.jqI,{justify:"space-between",children:["string"==typeof n?(0,a.jsx)(i.X6q,{className:t||r?"pb-4":void 0,fontSize:"2xl","data-testid":"page-heading",children:n}):n,o&&(0,a.jsx)("div",{"data-testid":"page-header-right-content",children:o})]}),!!t&&(0,a.jsx)(l.m,{className:r?"pb-4":void 0,items:t,"data-testid":"page-breadcrumb"}),r]})}},10342:function(e,n,t){var a=t(24246),i=t(77181),l=t(91613);n.Z=e=>{let{title:n,tooltip:t,children:s,...r}=e;return(0,a.jsxs)(i.xuv,{borderRadius:"md",border:"1px solid",borderColor:"gray.200",...r,children:[(0,a.jsxs)(i.X6q,{as:"h3",fontSize:"sm",fontWeight:"semibold",color:"gray.700",py:4,px:6,backgroundColor:"gray.50",borderRadius:"md",textAlign:"left",children:[n,t?(0,a.jsx)(i.xvT,{as:"span",mx:1,children:(0,a.jsx)(l.Z,{label:t})}):void 0]}),(0,a.jsx)(i.Kqy,{p:6,spacing:6,children:s})]})}},70788:function(e,n,t){t.d(n,{m:function(){return d}});var a=t(24246),i=t(77181),l=t(79894),s=t.n(l),r=t(27378);let{Text:o}=i.AntTypography,d=e=>{let{items:n,...t}=e,l=(0,r.useMemo)(()=>null==n?void 0:n.map((e,t)=>{let l=t===n.length-1,r={...e},d=r.onClick&&!r.href;return("string"==typeof r.title&&(r.title=(0,a.jsx)(o,{style:{color:"inherit",maxWidth:l?void 0:400},ellipsis:!l,children:r.title})),d)?r.title=(0,a.jsx)(i.wpx,{type:"text",size:"small",icon:r.icon,onClick:r.onClick,className:"ant-breadcrumb-link -mt-px px-1 text-inherit",children:r.title}):(r.icon&&(r.title=(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("span",{className:"anticon align-text-bottom",children:r.icon}),r.title]})),r.href&&r.title&&(r.title=(0,a.jsx)(s(),{href:r.href,className:"ant-breadcrumb-link",children:r.title}),delete r.href)),r}),[n]);return(0,a.jsx)(i.zrq,{items:l,...t})}},34391:function(e,n,t){t.d(n,{Z:function(){return K}});var a=t(24246),i=t(51472),l=t(77181),s=t(34090),r=t(79894),o=t.n(r),d=t(86677),c=t(27378),u=t(16134),p=t(10342),m=t(40324),g=t(812),h=t(77830),x=t(8411),v=t(91613),j=t(46628),f=t(28079),b=t(7426),y=t(34334),_=t(16277);let w=e=>{let{index:n}=e;return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(m.j0,{autoFocus:0!==n,name:"translations.".concat(n,".title"),label:"Title of privacy notice as displayed to user",variant:"stacked"}),(0,a.jsx)(m.Ks,{name:"translations.".concat(n,".description"),label:"Privacy notice displayed to the user",variant:"stacked"})]})},C=e=>{let{index:n,name:t,isOOB:i}=e;return(0,a.jsxs)(l.kCb,{direction:"column",gap:6,children:[(0,a.jsxs)(l.X6q,{size:"sm",children:["Edit ",t," translation"]}),i?(0,a.jsx)(_.f,{languageName:t}):null,(0,a.jsx)(w,{index:n})]})},k=e=>{let{translation:n,name:t,onLanguageDeleted:i}=e;return(0,a.jsxs)(l.kCb,{gap:2,direction:"row",w:"100%",children:[(0,a.jsx)(l.OK9,{as:l.wpx,fontWeight:"normal",className:"grow overflow-x-hidden border-gray-300",textOverflow:"ellipsis",_selected:{color:"white",bg:"gray.500"},children:t},n.language),i&&(0,a.jsx)(l.wpx,{"aria-label":"Delete translation",onClick:()=>i(n.language),icon:(0,a.jsx)(l.pJl,{boxSize:3}),className:"min-w-4"})]})};var N=e=>{var n;let{availableTranslations:t}=e,{values:i,setFieldValue:r}=(0,s.u6)(),[o,d]=(0,c.useState)(!1),[m,g]=(0,c.useState)(!1),[h,x]=(0,c.useState)(0),{data:v}=(0,b.tB)({api_set:!1}),j=null==v?void 0:null===(n=v.plus_consent_settings)||void 0===n?void 0:n.enable_translations,f=(0,u.C)(y.Zp),_=(0,u.C)(y.G1);(0,y.Ah)({page:f,size:_});let N=(0,u.C)(y.fJ).slice().sort((e,n)=>e.name.localeCompare(n.name)),T=N.filter(e=>{var n;return null===(n=i.translations)||void 0===n?void 0:n.every(n=>n.language!==e.id)}).map(e=>({label:e.name,value:e.id})),S=e=>{let n=i.translations?i.translations.slice().filter(n=>n.language!==e):[],t=h===n.length?n.length-1:h;r("translations",n),x(t)},O=e=>{var n,t;return null!==(t=null===(n=N.find(n=>n.id===e))||void 0===n?void 0:n.name)&&void 0!==t?t:e};return j?(0,a.jsx)(p.Z,{title:"Localizations",children:(0,a.jsxs)(l.mQc,{index:h,onChange:e=>{x(e),g(!1)},as:l.Ugi,spacing:8,align:"start",w:"100%",orientation:"vertical",variant:"unstyled",children:[(0,a.jsxs)(l.gCW,{spacing:4,minW:"30%",p:2,children:[(0,a.jsx)(l.tdY,{w:"100%",children:(0,a.jsx)(l.gCW,{spacing:2,w:"100%",p:4,maxH:60,overflow:"scroll",outline:"1px solid",outlineColor:"gray.200",borderRadius:"md",children:i.translations.map(e=>(0,a.jsx)(k,{translation:e,name:O(e.language),onLanguageDeleted:S},e.language))})}),o&&(0,a.jsx)(l.WPr,{autoFocus:!0,defaultOpen:!0,allowClear:!0,placeholder:"Select a language...",options:T,onChange:e=>{let n=null==t?void 0:t.find(n=>n.language===e);g(!!n),x(i.translations.length),r("translations",[...i.translations,null!=n?n:{language:e,title:"",description:""}]),d(!1)},"data-testid":"select-language",className:"w-full"}),!o&&!!T.length&&(0,a.jsx)(l.wpx,{icon:(0,a.jsx)(l.jBn,{boxSize:6}),onClick:()=>d(!0),"data-testid":"add-language-btn",className:"w-full",children:"Add a language"})]}),(0,a.jsx)(l.xuv,{w:"100%",children:(0,a.jsx)(s.F2,{name:"translations",render:()=>(0,a.jsx)(l.nPR,{w:"100%",children:i.translations.map((e,n)=>(0,a.jsx)(l.x45,{children:(0,a.jsx)(C,{index:n,name:O(e.language),isOOB:m})},e.language))})})})]})}):(0,a.jsx)(p.Z,{title:"Notice text",children:(0,a.jsx)(w,{index:0})})},T=t(97181),S=t(55484),O=t(16394),z=t(65063),P=t(28120);let q=(0,O.Jt)(z.ye),E=(0,O.Jt)(z.B8),R=[{language:P.eU.EN,title:"",description:""}],Z={name:"",consent_mechanism:P.J7.OPT_IN,data_uses:[],enforcement_level:P.QT.FRONTEND,disabled:!0,translations:R,children:[]},F=e=>{var n,t,a,i;return{name:null!==(n=e.name)&&void 0!==n?n:Z.name,consent_mechanism:null!==(t=e.consent_mechanism)&&void 0!==t?t:Z.consent_mechanism,data_uses:null!==(a=e.data_uses)&&void 0!==a?a:Z.data_uses,enforcement_level:null!==(i=e.enforcement_level)&&void 0!==i?i:Z.enforcement_level,notice_key:e.notice_key,disabled:e.disabled,has_gpc_flag:e.has_gpc_flag,id:e.id,internal_description:e.internal_description,translations:e.translations?e.translations.map(e=>{var n;let{privacy_notice_history_id:t,...a}=e;return{...a,title:null!==(n=e.title)&&void 0!==n?n:""}}):R,children:e.children}},I=S.Ry().shape({name:S.Z_().required().label("Title"),consent_mechanism:S.Z_().required().label("Consent mechanism")});var J=t(14441),L=t.n(J),B=e=>{let{isEditing:n}=e,{values:t,setFieldValue:i}=(0,s.u6)();return(0,c.useEffect)(()=>{n||i("notice_key",L()(t.name))},[t.name,n,i]),(0,a.jsx)(m.j0,{name:"notice_key",label:"Key used in Fides cookie",variant:"stacked"})},W=t(71922);let{Text:A}=l.AntTypography,D=e=>{let{regions:n,label:t,tooltip:i}=e;return(0,a.jsxs)(l.gCW,{align:"start",children:[(0,a.jsxs)(l.kCb,{align:"start",children:[t?(0,a.jsx)(l.lXp,{htmlFor:"regions",fontSize:"xs",my:0,mr:1,children:t}):null,i?(0,a.jsx)(v.Z,{label:i}):null]}),(0,a.jsx)(l.xuv,{w:"100%","data-testid":"notice-locations",children:(0,a.jsxs)(l.vyj,{size:[0,2],wrap:!0,children:[null==n?void 0:n.map(e=>(0,a.jsx)(l.j8w,{children:x.Z8[e]},e)),!(null==n?void 0:n.length)&&(0,a.jsxs)(A,{italic:!0,children:["No locations assigned. Navigate to the"," ",(0,a.jsx)(o(),{href:h.w0,children:"experiences view"})," ","configure."]})]})})]})};var K=e=>{let{privacyNotice:n,availableTranslations:t}=e,r=(0,d.useRouter)(),o=(0,l.pmc)(),x=n?F(n):Z;(0,f.fd)();let v=(0,u.C)(f.qv),b=(0,u.C)(W.sX),y=(0,u.C)(W.Zp),_=(0,u.C)(W.G1);(0,W.J6)({page:y,size:_});let w=e=>{var n;let{id:t}=e,a=b.find(e=>e.id===t);return null!==(n=null==a?void 0:a.name)&&void 0!==n?n:t},C=b.some(e=>{var t;return null===(t=e.children)||void 0===t?void 0:t.some(e=>e.id===(null==n?void 0:n.id))}),[k]=(0,W.vL)(),[S]=(0,W.p4)(),O=(0,c.useMemo)(()=>!!n,[n]),z=async e=>{let t;if(O){var a,i;let l={...e,id:n.id,translations:null!==(a=e.translations)&&void 0!==a?a:[],children:null!==(i=e.children)&&void 0!==i?i:[]};t=await k(l)}else t=await S(e);(0,g.D4)(t)?o((0,j.Vo)((0,g.e$)(t.error))):(o((0,j.t5)("Privacy notice ".concat(O?"updated":"created"))),O||r.push(h.IT))};return(0,a.jsx)(s.J9,{initialValues:x,enableReinitialize:!0,onSubmit:z,validationSchema:I,children:e=>{var o,d;let{values:c,setFieldValue:u,dirty:g,isValid:h,isSubmitting:x}=e;return(0,a.jsx)(s.l0,{children:(0,a.jsxs)(l.Kqy,{spacing:10,children:[(0,a.jsxs)(l.Kqy,{spacing:6,children:[(0,a.jsxs)(p.Z,{title:"Privacy notice details",children:[(0,a.jsx)(m.j0,{label:"Notice title",name:"name",isRequired:!0,variant:"stacked"}),(0,a.jsx)(T.d,{name:"consent_mechanism",label:"Consent mechanism",options:q,isRequired:!0,layout:"stacked"}),(0,a.jsx)(B,{isEditing:O}),(0,a.jsx)(m.w8,{name:"has_gpc_flag",label:"Configure whether this notice conforms to the Global Privacy Control",variant:"stacked"}),(0,a.jsx)(D,{regions:null==n?void 0:n.configured_regions,label:"Locations where privacy notice is shown to visitors",tooltip:"To configure locations, change the privacy experiences where this notice is shown"}),(0,a.jsx)(l.izJ,{}),!C&&(0,a.jsx)(i.Z,{label:"Child notices",addButtonLabel:"Add notice children",allItems:b.map(e=>({id:e.id,name:e.name})),values:null!==(d=null===(o=c.children)||void 0===o?void 0:o.map(e=>({id:e.id,name:e.name})))&&void 0!==d?d:[],setValues:e=>u("children",e),idField:"id",getItemLabel:w,draggable:!0,maxHeight:100,baseTestId:"children"}),(0,a.jsx)(T.d,{name:"data_uses",label:"Data use",options:v,mode:"multiple",layout:"stacked"}),(0,a.jsx)(T.d,{name:"enforcement_level",label:"Enforcement level",options:E,isRequired:!0,layout:"stacked"})]}),(0,a.jsx)(N,{availableTranslations:t})]}),(0,a.jsxs)("div",{className:"flex gap-2",children:[(0,a.jsx)(l.wpx,{onClick:()=>{r.back()},children:"Cancel"}),(0,a.jsx)(l.wpx,{htmlType:"submit",type:"primary",disabled:x||!g||!h,loading:x,"data-testid":"save-btn",children:"Save"})]})]})})}})}},65063:function(e,n,t){t.d(n,{B8:function(){return l},Ep:function(){return s},ye:function(){return i}});var a=t(28120);let i=new Map([[a.J7.OPT_IN,"Opt in"],[a.J7.NOTICE_ONLY,"Notice only"],[a.J7.OPT_OUT,"Opt out"]]),l=new Map([[a.QT.SYSTEM_WIDE,"System wide"],[a.QT.FRONTEND,"Front end"],[a.QT.NOT_APPLICABLE,"Not applicable"]]),s=new Map([["gpp_us_national","GPP US National"],["gpp_us_state","GPP US State"]])}}]);
|
1
|
+
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6954],{58754:function(e,n,t){var a=t(24246),i=t(77181),l=t(70788);n.Z=e=>{let{heading:n,breadcrumbItems:t,isSticky:s=!0,children:r,rightContent:o,style:d,...c}=e;return(0,a.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,a.jsxs)(i.jqI,{justify:"space-between",children:["string"==typeof n?(0,a.jsx)(i.X6q,{className:t||r?"pb-4":void 0,fontSize:"2xl","data-testid":"page-heading",children:n}):n,o&&(0,a.jsx)("div",{"data-testid":"page-header-right-content",children:o})]}),!!t&&(0,a.jsx)(l.m,{className:r?"pb-4":void 0,items:t,"data-testid":"page-breadcrumb"}),r]})}},10342:function(e,n,t){var a=t(24246),i=t(77181),l=t(91613);n.Z=e=>{let{title:n,tooltip:t,children:s,...r}=e;return(0,a.jsxs)(i.xuv,{borderRadius:"md",border:"1px solid",borderColor:"gray.200",...r,children:[(0,a.jsxs)(i.X6q,{as:"h3",fontSize:"sm",fontWeight:"semibold",color:"gray.700",py:4,px:6,backgroundColor:"gray.50",borderRadius:"md",textAlign:"left",children:[n,t?(0,a.jsx)(i.xvT,{as:"span",mx:1,children:(0,a.jsx)(l.Z,{label:t})}):void 0]}),(0,a.jsx)(i.Kqy,{p:6,spacing:6,children:s})]})}},70788:function(e,n,t){t.d(n,{m:function(){return d}});var a=t(24246),i=t(77181),l=t(79894),s=t.n(l),r=t(27378);let{Text:o}=i.AntTypography,d=e=>{let{items:n,...t}=e,l=(0,r.useMemo)(()=>null==n?void 0:n.map((e,t)=>{let l=t===n.length-1,r={...e},d=r.onClick&&!r.href;return("string"==typeof r.title&&(r.title=(0,a.jsx)(o,{style:{color:"inherit",maxWidth:l?void 0:400},ellipsis:!l,children:r.title})),d)?r.title=(0,a.jsx)(i.wpx,{type:"text",size:"small",icon:r.icon,onClick:r.onClick,className:"ant-breadcrumb-link -mt-px px-1 text-inherit",children:r.title}):(r.icon&&(r.title=(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("span",{className:"anticon align-text-bottom",children:r.icon}),r.title]})),r.href&&r.title&&(r.title=(0,a.jsx)(s(),{href:r.href,className:"ant-breadcrumb-link",children:r.title}),delete r.href)),r}),[n]);return(0,a.jsx)(i.zrq,{items:l,...t})}},34391:function(e,n,t){t.d(n,{Z:function(){return K}});var a=t(24246),i=t(51472),l=t(77181),s=t(34090),r=t(79894),o=t.n(r),d=t(86677),c=t(27378),u=t(16134),p=t(10342),m=t(40324),g=t(812),h=t(77830),x=t(8411),v=t(91613),j=t(46628),f=t(28079),b=t(7426),y=t(34334),_=t(16277);let w=e=>{let{index:n}=e;return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(m.j0,{autoFocus:0!==n,name:"translations.".concat(n,".title"),label:"Title of privacy notice as displayed to user",variant:"stacked"}),(0,a.jsx)(m.Ks,{name:"translations.".concat(n,".description"),label:"Privacy notice displayed to the user",variant:"stacked"})]})},C=e=>{let{index:n,name:t,isOOB:i}=e;return(0,a.jsxs)(l.kCb,{direction:"column",gap:6,children:[(0,a.jsxs)(l.X6q,{size:"sm",children:["Edit ",t," translation"]}),i?(0,a.jsx)(_.f,{languageName:t}):null,(0,a.jsx)(w,{index:n})]})},k=e=>{let{translation:n,name:t,onLanguageDeleted:i}=e;return(0,a.jsxs)(l.kCb,{gap:2,direction:"row",w:"100%",children:[(0,a.jsx)(l.OK9,{as:l.wpx,fontWeight:"normal",className:"grow overflow-x-hidden border-gray-300",textOverflow:"ellipsis",_selected:{color:"white",bg:"gray.500"},children:t},n.language),i&&(0,a.jsx)(l.wpx,{"aria-label":"Delete translation",onClick:()=>i(n.language),icon:(0,a.jsx)(l.pJl,{boxSize:3}),className:"min-w-4"})]})};var N=e=>{var n;let{availableTranslations:t}=e,{values:i,setFieldValue:r}=(0,s.u6)(),[o,d]=(0,c.useState)(!1),[m,g]=(0,c.useState)(!1),[h,x]=(0,c.useState)(0),{data:v}=(0,b.tB)({api_set:!1}),j=null==v?void 0:null===(n=v.plus_consent_settings)||void 0===n?void 0:n.enable_translations,f=(0,u.C)(y.Zp),_=(0,u.C)(y.G1);(0,y.Ah)({page:f,size:_});let N=(0,u.C)(y.fJ).slice().sort((e,n)=>e.name.localeCompare(n.name)),T=N.filter(e=>{var n;return null===(n=i.translations)||void 0===n?void 0:n.every(n=>n.language!==e.id)}).map(e=>({label:e.name,value:e.id})),S=e=>{let n=i.translations?i.translations.slice().filter(n=>n.language!==e):[],t=h===n.length?n.length-1:h;r("translations",n),x(t)},O=e=>{var n,t;return null!==(t=null===(n=N.find(n=>n.id===e))||void 0===n?void 0:n.name)&&void 0!==t?t:e};return j?(0,a.jsx)(p.Z,{title:"Localizations",children:(0,a.jsxs)(l.mQc,{index:h,onChange:e=>{x(e),g(!1)},as:l.Ugi,spacing:8,align:"start",w:"100%",orientation:"vertical",variant:"unstyled",children:[(0,a.jsxs)(l.gCW,{spacing:4,minW:"30%",p:2,children:[(0,a.jsx)(l.tdY,{w:"100%",children:(0,a.jsx)(l.gCW,{spacing:2,w:"100%",p:4,maxH:60,overflow:"scroll",outline:"1px solid",outlineColor:"gray.200",borderRadius:"md",children:i.translations.map(e=>(0,a.jsx)(k,{translation:e,name:O(e.language),onLanguageDeleted:S},e.language))})}),o&&(0,a.jsx)(l.WPr,{autoFocus:!0,defaultOpen:!0,allowClear:!0,placeholder:"Select a language...",options:T,onChange:e=>{let n=null==t?void 0:t.find(n=>n.language===e);g(!!n),x(i.translations.length),r("translations",[...i.translations,null!=n?n:{language:e,title:"",description:""}]),d(!1)},"data-testid":"select-language",className:"w-full"}),!o&&!!T.length&&(0,a.jsx)(l.wpx,{icon:(0,a.jsx)(l.jBn,{boxSize:6}),onClick:()=>d(!0),"data-testid":"add-language-btn",className:"w-full",children:"Add a language"})]}),(0,a.jsx)(l.xuv,{w:"100%",children:(0,a.jsx)(s.F2,{name:"translations",render:()=>(0,a.jsx)(l.nPR,{w:"100%",children:i.translations.map((e,n)=>(0,a.jsx)(l.x45,{children:(0,a.jsx)(C,{index:n,name:O(e.language),isOOB:m})},e.language))})})})]})}):(0,a.jsx)(p.Z,{title:"Notice text",children:(0,a.jsx)(w,{index:0})})},T=t(97181),S=t(55484),O=t(16394),z=t(65063),P=t(21702);let q=(0,O.Jt)(z.ye),E=(0,O.Jt)(z.B8),R=[{language:P.eU.EN,title:"",description:""}],Z={name:"",consent_mechanism:P.J7.OPT_IN,data_uses:[],enforcement_level:P.QT.FRONTEND,disabled:!0,translations:R,children:[]},F=e=>{var n,t,a,i;return{name:null!==(n=e.name)&&void 0!==n?n:Z.name,consent_mechanism:null!==(t=e.consent_mechanism)&&void 0!==t?t:Z.consent_mechanism,data_uses:null!==(a=e.data_uses)&&void 0!==a?a:Z.data_uses,enforcement_level:null!==(i=e.enforcement_level)&&void 0!==i?i:Z.enforcement_level,notice_key:e.notice_key,disabled:e.disabled,has_gpc_flag:e.has_gpc_flag,id:e.id,internal_description:e.internal_description,translations:e.translations?e.translations.map(e=>{var n;let{privacy_notice_history_id:t,...a}=e;return{...a,title:null!==(n=e.title)&&void 0!==n?n:""}}):R,children:e.children}},I=S.Ry().shape({name:S.Z_().required().label("Title"),consent_mechanism:S.Z_().required().label("Consent mechanism")});var J=t(14441),L=t.n(J),B=e=>{let{isEditing:n}=e,{values:t,setFieldValue:i}=(0,s.u6)();return(0,c.useEffect)(()=>{n||i("notice_key",L()(t.name))},[t.name,n,i]),(0,a.jsx)(m.j0,{name:"notice_key",label:"Key used in Fides cookie",variant:"stacked"})},W=t(71922);let{Text:A}=l.AntTypography,D=e=>{let{regions:n,label:t,tooltip:i}=e;return(0,a.jsxs)(l.gCW,{align:"start",children:[(0,a.jsxs)(l.kCb,{align:"start",children:[t?(0,a.jsx)(l.lXp,{htmlFor:"regions",fontSize:"xs",my:0,mr:1,children:t}):null,i?(0,a.jsx)(v.Z,{label:i}):null]}),(0,a.jsx)(l.xuv,{w:"100%","data-testid":"notice-locations",children:(0,a.jsxs)(l.vyj,{size:[0,2],wrap:!0,children:[null==n?void 0:n.map(e=>(0,a.jsx)(l.j8w,{children:x.Z8[e]},e)),!(null==n?void 0:n.length)&&(0,a.jsxs)(A,{italic:!0,children:["No locations assigned. Navigate to the"," ",(0,a.jsx)(o(),{href:h.w0,children:"experiences view"})," ","configure."]})]})})]})};var K=e=>{let{privacyNotice:n,availableTranslations:t}=e,r=(0,d.useRouter)(),o=(0,l.pmc)(),x=n?F(n):Z;(0,f.fd)();let v=(0,u.C)(f.qv),b=(0,u.C)(W.sX),y=(0,u.C)(W.Zp),_=(0,u.C)(W.G1);(0,W.J6)({page:y,size:_});let w=e=>{var n;let{id:t}=e,a=b.find(e=>e.id===t);return null!==(n=null==a?void 0:a.name)&&void 0!==n?n:t},C=b.some(e=>{var t;return null===(t=e.children)||void 0===t?void 0:t.some(e=>e.id===(null==n?void 0:n.id))}),[k]=(0,W.vL)(),[S]=(0,W.p4)(),O=(0,c.useMemo)(()=>!!n,[n]),z=async e=>{let t;if(O){var a,i;let l={...e,id:n.id,translations:null!==(a=e.translations)&&void 0!==a?a:[],children:null!==(i=e.children)&&void 0!==i?i:[]};t=await k(l)}else t=await S(e);(0,g.D4)(t)?o((0,j.Vo)((0,g.e$)(t.error))):(o((0,j.t5)("Privacy notice ".concat(O?"updated":"created"))),O||r.push(h.IT))};return(0,a.jsx)(s.J9,{initialValues:x,enableReinitialize:!0,onSubmit:z,validationSchema:I,children:e=>{var o,d;let{values:c,setFieldValue:u,dirty:g,isValid:h,isSubmitting:x}=e;return(0,a.jsx)(s.l0,{children:(0,a.jsxs)(l.Kqy,{spacing:10,children:[(0,a.jsxs)(l.Kqy,{spacing:6,children:[(0,a.jsxs)(p.Z,{title:"Privacy notice details",children:[(0,a.jsx)(m.j0,{label:"Notice title",name:"name",isRequired:!0,variant:"stacked"}),(0,a.jsx)(T.d,{name:"consent_mechanism",label:"Consent mechanism",options:q,isRequired:!0,layout:"stacked"}),(0,a.jsx)(B,{isEditing:O}),(0,a.jsx)(m.w8,{name:"has_gpc_flag",label:"Configure whether this notice conforms to the Global Privacy Control",variant:"stacked"}),(0,a.jsx)(D,{regions:null==n?void 0:n.configured_regions,label:"Locations where privacy notice is shown to visitors",tooltip:"To configure locations, change the privacy experiences where this notice is shown"}),(0,a.jsx)(l.izJ,{}),!C&&(0,a.jsx)(i.Z,{label:"Child notices",addButtonLabel:"Add notice children",allItems:b.map(e=>({id:e.id,name:e.name})),values:null!==(d=null===(o=c.children)||void 0===o?void 0:o.map(e=>({id:e.id,name:e.name})))&&void 0!==d?d:[],setValues:e=>u("children",e),idField:"id",getItemLabel:w,draggable:!0,maxHeight:100,baseTestId:"children"}),(0,a.jsx)(T.d,{name:"data_uses",label:"Data use",options:v,mode:"multiple",layout:"stacked"}),(0,a.jsx)(T.d,{name:"enforcement_level",label:"Enforcement level",options:E,isRequired:!0,layout:"stacked"})]}),(0,a.jsx)(N,{availableTranslations:t})]}),(0,a.jsxs)("div",{className:"flex gap-2",children:[(0,a.jsx)(l.wpx,{onClick:()=>{r.back()},children:"Cancel"}),(0,a.jsx)(l.wpx,{htmlType:"submit",type:"primary",disabled:x||!g||!h,loading:x,"data-testid":"save-btn",children:"Save"})]})]})})}})}},65063:function(e,n,t){t.d(n,{B8:function(){return l},Ep:function(){return s},ye:function(){return i}});var a=t(21702);let i=new Map([[a.J7.OPT_IN,"Opt in"],[a.J7.NOTICE_ONLY,"Notice only"],[a.J7.OPT_OUT,"Opt out"]]),l=new Map([[a.QT.SYSTEM_WIDE,"System wide"],[a.QT.FRONTEND,"Front end"],[a.QT.NOT_APPLICABLE,"Not applicable"]]),s=new Map([["gpp_us_national","GPP US National"],["gpp_us_state","GPP US State"]])}}]);
|
@@ -1 +1 @@
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7453],{95372:function(e){e.exports=function(e,a,n,i){for(var t=e.length,r=n+(i?1:-1);i?r--:++r<t;)if(a(e[r],r,e))return r;return -1}},74833:function(e,a,n){var i=n(56127),t=/^\s+/;e.exports=function(e){return e?e.slice(0,i(e)+1).replace(t,""):e}},56632:function(e,a,n){var i=n(89278),t=n(80068),r=n(50098);e.exports=function(e){return function(a,n,s){var o=Object(a);if(!t(a)){var l=i(n,3);a=r(a),n=function(e){return l(o[e],e,o)}}var _=e(a,n,s);return _>-1?o[l?a[_]:_]:void 0}}},56127:function(e){var a=/\s/;e.exports=function(e){for(var n=e.length;n--&&a.test(e.charAt(n)););return n}},66726:function(e,a,n){var i=n(11611),t=n(82846),r=n(91936),s=Math.max,o=Math.min;e.exports=function(e,a,n){var l,_,d,u,c,F,m=0,h=!1,S=!1,f=!0;if("function"!=typeof e)throw TypeError("Expected a function");function p(a){var n=l,i=_;return l=_=void 0,m=a,u=e.apply(i,n)}function g(e){var n=e-F,i=e-m;return void 0===F||n>=a||n<0||S&&i>=d}function v(){var e,n,i,r=t();if(g(r))return y(r);c=setTimeout(v,(e=r-F,n=r-m,i=a-e,S?o(i,d-n):i))}function y(e){return(c=void 0,f&&l)?p(e):(l=_=void 0,u)}function C(){var e,n=t(),i=g(n);if(l=arguments,_=this,F=n,i){if(void 0===c)return m=e=F,c=setTimeout(v,a),h?p(e):u;if(S)return clearTimeout(c),c=setTimeout(v,a),p(F)}return void 0===c&&(c=setTimeout(v,a)),u}return a=r(a)||0,i(n)&&(h=!!n.leading,d=(S="maxWait"in n)?s(r(n.maxWait)||0,a):d,f="trailing"in n?!!n.trailing:f),C.cancel=function(){void 0!==c&&clearTimeout(c),m=0,l=F=_=c=void 0},C.flush=function(){return void 0===c?u:y(t())},C}},64925:function(e,a,n){var i=n(56632)(n(66259));e.exports=i},66259:function(e,a,n){var i=n(95372),t=n(89278),r=n(47991),s=Math.max;e.exports=function(e,a,n){var o=null==e?0:e.length;if(!o)return -1;var l=null==n?0:r(n);return l<0&&(l=s(o+l,0)),i(e,t(a,3),l)}},82846:function(e,a,n){var i=n(77400);e.exports=function(){return i.Date.now()}},94919:function(e,a,n){var i=n(91936),t=1/0;e.exports=function(e){return e?(e=i(e))===t||e===-t?(e<0?-1:1)*17976931348623157e292:e==e?e:0:0===e?e:0}},47991:function(e,a,n){var i=n(94919);e.exports=function(e){var a=i(e),n=a%1;return a==a?n?a-n:a:0}},91936:function(e,a,n){var i=n(74833),t=n(11611),r=n(55193),s=0/0,o=/^[-+]0x[0-9a-f]+$/i,l=/^0b[01]+$/i,_=/^0o[0-7]+$/i,d=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(r(e))return s;if(t(e)){var a="function"==typeof e.valueOf?e.valueOf():e;e=t(a)?a+"":a}if("string"!=typeof e)return 0===e?e:+e;e=i(e);var n=l.test(e);return n||_.test(e)?d(e.slice(2),n?2:8):o.test(e)?s:+e}},7617:function(e,a,n){"use strict";n.d(a,{q:function(){return r}});var i=n(24246),t=n(77181);let r=e=>{let{label:a,isDisabled:n,...r}=e;return(0,i.jsx)(t.OK9,{"data-testid":"tab-".concat(a),_selected:{fontWeight:"600",color:"complimentary.500",borderColor:"complimentary.500"},fontSize:r.fontSize,fontWeight:"500",color:"gray.500",isDisabled:n||!1,children:a})};a.Z=e=>{let{data:a,border:n="partial",...s}=e;return(0,i.jsxs)(t.mQc,{colorScheme:"complimentary",...s,children:[(0,i.jsx)(t.tdY,{width:"partial"===n?"max-content":void 0,children:a.map(e=>(0,i.jsx)(r,{label:e.label,isDisabled:e.isDisabled,fontSize:s.fontSize},e.label))}),(0,i.jsx)(t.nPR,{children:a.map(e=>(0,i.jsx)(t.x45,{px:0,"data-testid":"tab-panel-".concat(e.label),children:e.content},e.label))})]})}},29850:function(e,a,n){"use strict";n.d(a,{R:function(){return d}});var i=n(24246),t=n(77181),r=n(27378),s=n(65450);let o=e=>{let{children:a,className:n,style:r,...s}=e;return(0,i.jsx)(t.wpx,{...s,type:"text",className:"w-full justify-start ".concat(n),style:{fontWeight:600,padding:"var(--ant-select-option-padding)",backgroundColor:"var(--ant-select-option-selected-bg)",...r},children:a})};var l=n(16394);let _=(e,a)=>(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(o,{onClick:a,"data-testid":"add-new-system",id:"add-new-system",children:"Add new system +"}),e]}),d=e=>{var a;let{onAddSystem:n,...o}=e,[d,u]=(0,r.useState)(),{data:c,isFetching:F}=(0,s.xF)({page:1,size:25,search:d||void 0}),m=null==c?void 0:null===(a=c.items)||void 0===a?void 0:a.map(e=>({value:e.fides_key,label:e.name})),h=(0,r.useCallback)(e=>{(null==e?void 0:e.length)>1&&u(e),(null==e?void 0:e.length)===0&&u(void 0)},[u]),S=(0,r.useMemo)(()=>(0,l.Ds)(h,300),[h]);return(0,i.jsx)(t.WPr,{placeholder:"Search...","aria-label":"Search for a system to select",dropdownStyle:{minWidth:"500px"},dropdownRender:n?e=>_(e,n):void 0,"data-testid":"system-select",...o,filterOption:!1,options:m,onSearch:S,loading:o.loading||F})}},79283:function(e,a,n){"use strict";n.d(a,{l:function(){return l}});var i=n(24246),t=n(77181),r=n(72707),s=n.n(r);let o=e=>{let{data:a}=e;return(0,i.jsxs)(t.jqI,{gap:12,title:"".concat(a.primaryName||"").concat(a.primaryName?": ":"").concat(a.name," - ").concat(a.description),children:[(0,i.jsxs)("div",{children:[(0,i.jsx)("strong",{children:a.primaryName||a.name}),a.primaryName&&": ".concat(a.name)]}),(0,i.jsx)("em",{children:a.description})]})},l=e=>{let{options:a,...n}=e,r=null==a?void 0:a.map(e=>({...e,className:s().option}));return(0,i.jsx)(t.WPr,{options:r,autoFocus:!0,variant:"borderless",optionRender:o,dropdownStyle:{minWidth:"500px"},className:"w-full p-0","data-testid":"taxonomy-select",...n})}},34929:function(e,a,n){"use strict";var i=n(24246),t=n(64925),r=n.n(t),s=n(27378),o=n(16134),l=n(30002),_=n(28079),d=n(57072);let u=()=>{let{isLoading:e}=(0,_.fd)(),a=(0,o.C)(_.U3),{isLoading:n}=(0,d.MO)(),i=(0,o.C)(d.qb),{isLoading:t}=(0,l.te)();return{dataUses:a,dataSubjects:(0,o.C)(l.ZL),dataCategories:i,isLoading:e||n||t}};a.Z=()=>{let{dataUses:e,dataCategories:a,dataSubjects:n,isLoading:t}=u(),o=function(e){let a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return e.split(".").slice(0,a).join(".")},l=function(e,a){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,i=a(e);if(!i)return{};let t=a(o(e,n)),r=!!i.parent_key;return{name:i.name||void 0,primaryName:r&&(null==t?void 0:t.name)!==i.name&&(null==t?void 0:t.name)||void 0}},_=function(e,a){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,{name:t,primaryName:r}=l(e,a,n);return t?r?(0,i.jsxs)(s.Fragment,{children:[(0,i.jsxs)("strong",{children:[r,":"]})," ",t]},e):(0,i.jsx)("strong",{children:t},e):e},d=a=>r()(e,{fides_key:a}),c=e=>r()(a,{fides_key:e}),F=e=>r()(n,{fides_key:e});return{getDataUses:()=>e,getDataUseByKey:d,getDataUseDisplayName:e=>_(e,d,1),getDataUseDisplayNameProps:e=>l(e,d,1),getDataCategories:()=>a,getDataCategoryByKey:c,getDataCategoryDisplayName:e=>_(e,c,2),getDataCategoryDisplayNameProps:e=>l(e,c,2),getDataSubjects:()=>n,getDataSubjectByKey:F,getDataSubjectDisplayName:e=>{let a=F(e);return a?a.name:e},getPrimaryKey:o,isLoading:t}}},8411:function(e,a,n){"use strict";n.d(a,{NA:function(){return r},Z8:function(){return t}});var i=n(28120);let t={[i._F.ER]:"Eritrea",[i._F.DJ]:"Djibouti",[i._F.MR]:"Mauritania",[i._F.NA]:"Namibia",[i._F.GH]:"Ghana",[i._F.SS]:"South Sudan",[i._F.SC]:"Seychelles",[i._F.IO]:"British Indian Ocean Territory",[i._F.GQ]:"Equatorial Guinea",[i._F.AO]:"Angola",[i._F.CG]:"Republic of the Congo",[i._F.BW]:"Botswana",[i._F.BI]:"Burundi",[i._F.DZ]:"Algeria",[i._F.TD]:"Chad",[i._F.NG]:"Nigeria",[i._F.TZ]:"Tanzania",[i._F.EH]:"Western Sahara",[i._F.SN]:"Senegal",[i._F.LR]:"Liberia",[i._F.ZA]:"South Africa",[i._F.CV]:"Cape Verde",[i._F.GM]:"Gambia",[i._F.SD]:"Sudan",[i._F.KM]:"Comoros",[i._F.SZ]:"Eswatini",[i._F.UG]:"Uganda",[i._F.MG]:"Madagascar",[i._F.RW]:"Rwanda",[i._F.CD]:"DR Congo",[i._F.CM]:"Cameroon",[i._F.SH]:"Saint Helena, Ascension and Tristan da Cunha",[i._F.TG]:"Togo",[i._F.MU]:"Mauritius",[i._F.NE]:"Niger",[i._F.BJ]:"Benin",[i._F.EG]:"Egypt",[i._F.LS]:"Lesotho",[i._F.ET]:"Ethiopia",[i._F.MA]:"Morocco",[i._F.YT]:"Mayotte",[i._F.BF]:"Burkina Faso",[i._F.RE]:"R\xe9union",[i._F.ST]:"S\xe3o Tom\xe9 and Pr\xedncipe",[i._F.CF]:"Central African Republic",[i._F.MZ]:"Mozambique",[i._F.MW]:"Malawi",[i._F.ML]:"Mali",[i._F.ZM]:"Zambia",[i._F.LY]:"Libya",[i._F.GW]:"Guinea-Bissau",[i._F.SO]:"Somalia",[i._F.KE]:"Kenya",[i._F.GN]:"Guinea",[i._F.ZW]:"Zimbabwe",[i._F.TN]:"Tunisia",[i._F.SL]:"Sierra Leone",[i._F.GA]:"Gabon",[i._F.CI]:"Ivory Coast",[i._F.JO]:"Jordan",[i._F.PK]:"Pakistan",[i._F.KP]:"North Korea",[i._F.MO]:"Macau",[i._F.AM]:"Armenia",[i._F.SY]:"Syria",[i._F.TJ]:"Tajikistan",[i._F.SA]:"Saudi Arabia",[i._F.KR]:"South Korea",[i._F.NP]:"Nepal",[i._F.PH]:"Philippines",[i._F.IQ]:"Iraq",[i._F.LB]:"Lebanon",[i._F.MN]:"Mongolia",[i._F.PS]:"Palestine",[i._F.YE]:"Yemen",[i._F.JP]:"Japan",[i._F.KZ]:"Kazakhstan",[i._F.LK]:"Sri Lanka",[i._F.MM]:"Myanmar",[i._F.KG]:"Kyrgyzstan",[i._F.CN]:"China",[i._F.AF]:"Afghanistan",[i._F.OM]:"Oman",[i._F.IN]:"India",[i._F.LA]:"Laos",[i._F.UZ]:"Uzbekistan",[i._F.MV]:"Maldives",[i._F.ID]:"Indonesia",[i._F.VN]:"Vietnam",[i._F.MY]:"Malaysia",[i._F.TW]:"Taiwan",[i._F.KH]:"Cambodia",[i._F.AE]:"United Arab Emirates",[i._F.HK]:"Hong Kong",[i._F.GE]:"Georgia",[i._F.BD]:"Bangladesh",[i._F.KW]:"Kuwait",[i._F.TM]:"Turkmenistan",[i._F.QA]:"Qatar",[i._F.BH]:"Bahrain",[i._F.BN]:"Brunei",[i._F.TH]:"Thailand",[i._F.BT]:"Bhutan",[i._F.SG]:"Singapore",[i._F.IL]:"Israel",[i._F.AZ]:"Azerbaijan",[i._F.TL]:"Timor-Leste",[i._F.IR]:"Iran",[i._F.TR]:"Turkey",[i._F.MK]:"North Macedonia",[i._F.IE]:"Ireland",[i._F.DK]:"Denmark",[i._F.SK]:"Slovakia",[i._F.MD]:"Moldova",[i._F.AX]:"\xc5land Islands",[i._F.PL]:"Poland",[i._F.BA]:"Bosnia and Herzegovina",[i._F.SM]:"San Marino",[i._F.CZ]:"Czechia",[i._F.EE]:"Estonia",[i._F.XK]:"Kosovo",[i._F.FO]:"Faroe Islands",[i._F.SJ]:"Svalbard and Jan Mayen",[i._F.GG]:"Guernsey",[i._F.FR]:"France",[i._F.NL]:"Netherlands",[i._F.FI]:"Finland",[i._F.PT]:"Portugal",[i._F.DE]:"Germany",[i._F.MT]:"Malta",[i._F.JE]:"Jersey",[i._F.IS]:"Iceland",[i._F.ES]:"Spain",[i._F.GI]:"Gibraltar",[i._F.NO]:"Norway",[i._F.CY]:"Cyprus",[i._F.RS]:"Serbia",[i._F.LT]:"Lithuania",[i._F.MC]:"Monaco",[i._F.LU]:"Luxembourg",[i._F.UA]:"Ukraine",[i._F.IM]:"Isle of Man",[i._F.RO]:"Romania",[i._F.BE]:"Belgium",[i._F.SE]:"Sweden",[i._F.ME]:"Montenegro",[i._F.LV]:"Latvia",[i._F.VA]:"Vatican City",[i._F.AT]:"Austria",[i._F.AL]:"Albania",[i._F.LI]:"Liechtenstein",[i._F.GR]:"Greece",[i._F.IT]:"Italy",[i._F.AD]:"Andorra",[i._F.GB]:"United Kingdom",[i._F.RU]:"Russia",[i._F.SI]:"Slovenia",[i._F.BY]:"Belarus",[i._F.CH]:"Switzerland",[i._F.HU]:"Hungary",[i._F.BG]:"Bulgaria",[i._F.HR]:"Croatia",[i._F.TC]:"Turks and Caicos Islands",[i._F.CW]:"Cura\xe7ao",[i._F.GP]:"Guadeloupe",[i._F.UM]:"United States Minor Outlying Islands",[i._F.GT]:"Guatemala",[i._F.PM]:"Saint Pierre and Miquelon",[i._F.BQ]:"Caribbean Netherlands",[i._F.GL]:"Greenland",[i._F.SX]:"Sint Maarten",[i._F.PA]:"Panama",[i._F.AW]:"Aruba",[i._F.MQ]:"Martinique",[i._F.AG]:"Antigua and Barbuda",[i._F.BM]:"Bermuda",[i._F.CU]:"Cuba",[i._F.GD]:"Grenada",[i._F.NI]:"Nicaragua",[i._F.LC]:"Saint Lucia",[i._F.KN]:"Saint Kitts and Nevis",[i._F.DO]:"Dominican Republic",[i._F.VC]:"Saint Vincent and the Grenadines",[i._F.BZ]:"Belize",[i._F.HT]:"Haiti",[i._F.JM]:"Jamaica",[i._F.BS]:"Bahamas",[i._F.MX]:"Mexico",[i._F.MF]:"Saint Martin",[i._F.SV]:"El Salvador",[i._F.BL]:"Saint Barth\xe9lemy",[i._F.AI]:"Anguilla",[i._F.MS]:"Montserrat",[i._F.VG]:"British Virgin Islands",[i._F.BB]:"Barbados",[i._F.HN]:"Honduras",[i._F.KY]:"Cayman Islands",[i._F.DM]:"Dominica",[i._F.TT]:"Trinidad and Tobago",[i._F.CR]:"Costa Rica",[i._F.SR]:"Suriname",[i._F.CX]:"Christmas Island",[i._F.WS]:"Samoa",[i._F.PF]:"French Polynesia",[i._F.AS]:"American Samoa",[i._F.NC]:"New Caledonia",[i._F.TK]:"Tokelau",[i._F.PW]:"Palau",[i._F.KI]:"Kiribati",[i._F.VU]:"Vanuatu",[i._F.PN]:"Pitcairn Islands",[i._F.CK]:"Cook Islands",[i._F.FJ]:"Fiji",[i._F.PG]:"Papua New Guinea",[i._F.MP]:"Northern Mariana Islands",[i._F.NU]:"Niue",[i._F.TV]:"Tuvalu",[i._F.NF]:"Norfolk Island",[i._F.TO]:"Tonga",[i._F.FM]:"Micronesia",[i._F.SB]:"Solomon Islands",[i._F.NR]:"Nauru",[i._F.WF]:"Wallis and Futuna",[i._F.GU]:"Guam",[i._F.AU]:"Australia",[i._F.NZ]:"New Zealand",[i._F.MH]:"Marshall Islands",[i._F.CC]:"Cocos (Keeling) Islands",[i._F.VE]:"Venezuela",[i._F.PY]:"Paraguay",[i._F.BR]:"Brazil",[i._F.CO]:"Colombia",[i._F.PE]:"Peru",[i._F.CL]:"Chile",[i._F.UY]:"Uruguay",[i._F.AR]:"Argentina",[i._F.GY]:"Guyana",[i._F.BO]:"Bolivia",[i._F.GF]:"French Guiana",[i._F.EC]:"Ecuador",[i._F.FK]:"Falkland Islands",[i._F.US_AL]:"Alabama",[i._F.US_AK]:"Alaska",[i._F.US_AZ]:"Arizona",[i._F.US_AR]:"Arkansas",[i._F.US_CA]:"California",[i._F.US_CO]:"Colorado",[i._F.US_CT]:"Connecticut",[i._F.US_DE]:"Delaware",[i._F.US_DC]:"District of Columbia (DC)",[i._F.US_FL]:"Florida",[i._F.US_GA]:"Georgia",[i._F.US_HI]:"Hawaii",[i._F.US_ID]:"Idaho",[i._F.US_IL]:"Illinois",[i._F.US_IN]:"Indiana",[i._F.US_IA]:"Iowa",[i._F.US_KS]:"Kansas",[i._F.US_KY]:"Kentucky",[i._F.US_LA]:"Louisiana",[i._F.US_ME]:"Maine",[i._F.US_MD]:"Maryland",[i._F.US_MA]:"Massachusetts",[i._F.US_MI]:"Michigan",[i._F.US_MN]:"Minnesota",[i._F.US_MS]:"Mississippi",[i._F.US_MO]:"Missouri",[i._F.US_MT]:"Montana",[i._F.US_NE]:"Nebraska",[i._F.US_NV]:"Nevada",[i._F.US_NH]:"New Hampshire",[i._F.US_NJ]:"New Jersey",[i._F.US_NM]:"New Mexico",[i._F.US_NY]:"New York",[i._F.US_NC]:"North Carolina",[i._F.US_ND]:"North Dakota",[i._F.US_OH]:"Ohio",[i._F.US_OK]:"Oklahoma",[i._F.US_OR]:"Oregon",[i._F.US_PA]:"Pennsylvania",[i._F.US_PR]:"Puerto Rico",[i._F.US_RI]:"Rhode Island",[i._F.US_SC]:"South Carolina",[i._F.US_SD]:"San Diego",[i._F.US_TN]:"Tennessee",[i._F.US_TX]:"Texas",[i._F.US_UT]:"Utah",[i._F.US_VA]:"Virginia",[i._F.US_VI]:"United States Virgin Islands",[i._F.US_VT]:"Vermon",[i._F.US_WA]:"Washington",[i._F.US_WV]:"West Virginia",[i._F.US_WI]:"Wisconsin",[i._F.US_WY]:"Wyoming",[i._F.CA_AB]:"Alberta",[i._F.CA_BC]:"British Columbia",[i._F.CA_MB]:"Manitoba",[i._F.CA_NB]:"New Brunswick",[i._F.CA_NL]:"Newfoundland and Labrador",[i._F.CA_NS]:"Nova Scotia",[i._F.CA_ON]:"Ontario",[i._F.CA_PE]:"Prince Edward Island",[i._F.CA_QC]:"Quebec",[i._F.CA_SK]:"Saskatchewan",[i._F.CA_NT]:"Northwest Territories",[i._F.CA_NU]:"Nunavut",[i._F.CA_YT]:"Yukon",[i._F.CA]:"Canada",[i._F.US]:"United States",[i._F.MEXICO_CENTRAL_AMERICA]:"Mexico and Central America",[i._F.CARIBBEAN]:"Caribbean",[i._F.EEA]:"European Economic Area (EEA)",[i._F.NON_EEA]:"Non European Economic Area"},r=new Map(Object.entries(t));Object.entries(t).map(e=>({value:e[0],label:e[1]}))},57454:function(e,a,n){"use strict";n.d(a,{M:function(){return l}});var i=n(24246),t=n(66726),r=n.n(t),s=n(27378),o=n(86780);let l=e=>{let{value:a,onChange:n}=e,[t,l]=(0,s.useState)(a),_=r()(n,500),d=(0,s.useCallback)(e=>{l(e),_(e)},[]);return(0,i.jsx)(o.Z,{search:t,onChange:d,onClear:()=>{l(""),n("")}})}},70682:function(e,a,n){"use strict";var i=n(24246),t=n(79283),r=n(34929),s=n(78238);a.Z=e=>{let{selectedTaxonomies:a,...n}=e,{getDataUseDisplayNameProps:o,getDataUses:l}=(0,r.Z)(),_=l().filter(e=>e.active&&s.g.includes(e.fides_key)).map(e=>{let{name:a,primaryName:n}=o(e.fides_key);return{value:e.fides_key,name:a,primaryName:n,description:e.description||""}});return(0,i.jsx)(t.l,{options:_,...n})}},78238:function(e,a,n){"use strict";n.d(a,{g:function(){return i}});let i=["essential","functional.service.improve","personalize","analytics","marketing.advertising.first_party.targeted","marketing.advertising.third_party.targeted"];a.Z=e=>i.includes(e)},26183:function(e,a,n){"use strict";var i=n(24246);n(27378),a.Z=e=>{let{children:a,className:n,...t}=e;return(0,i.jsx)("div",{className:"relative flex w-full flex-wrap items-center gap-2 overflow-x-auto py-2 ".concat(n||""),...t,children:a})}},77685:function(e,a,n){"use strict";n.d(a,{i:function(){return b}});var i=n(24246),t=n(77181),r=n(34090),s=n(27378),o=n(55484),l=n(16134),_=n(25980),d=n(97181),u=n(40324),c=n(812),F=n(14047),m=n(45938),h=n(8133),S=n(33335),f=n(32885),p=n(57865),g=n(93237),v=n(65450),y=n(36345);let{Text:C}=t.AntTypography,x={name:"",vendor_id:void 0,description:"",tags:[]},b=e=>{let{onSuccessfulSubmit:a,toastOnSuccess:n,...b}=e,[N,M]=(0,s.useState)(!1),A=(0,l.T)(),{tcf:U,dictionaryService:j}=(0,_.hz)(),{isLoading:I}=(0,f.Rd)(void 0,{skip:!j}),T=(0,l.C)(f.o),w=(0,l.C)(p.gU),[B]=(0,v.in)(),[E]=(0,f.Qk)(),[k]=(0,v.f7)(),{successAlert:G,errorAlert:D}=(0,F.V)(),{setSuggestions:L,setLockedForGVL:R}=p.dictSuggestionsSlice.actions,P=(0,s.useRef)(null),K=(0,s.useMemo)(()=>o.Ry().shape({name:o.Z_().required().label("System name").test("is-unique","",async(e,a)=>{let{data:n}=await B({page:1,size:10,search:e});return!((null==n?void 0:n.items)||[]).filter(a=>a.name===e).some(a=>a.name===e)||a.createError({message:'You already have a system called "'.concat(e,'". Please specify a unique name for this system.')})})}),[B]),O=e=>{if(j){if(!e){A(L("hiding")),A(R(!1));return}A(L("showing")),U&&(0,c.cj)(e)===c.c6.GVL?A(R(!0)):A(R(!1))}},W=()=>{b.onClose(),A(L("initial")),A(R(!1))},Z=async e=>{if(M(!0),e.vendor_id){let i=await E([e.vendor_id]);if((0,c.D4)(i))D((0,c.e$)(i.error));else{let{data:e}=i,t=e.systems[0];null==a||a(t.fides_key,t.name),n&&G("".concat(e.name," has been added to your system inventory."))}}else{let i={...e,fides_key:(0,S.E)(e.name),system_type:"",body:"",privacy_declarations:[]},t=await k(i);if((0,c.D4)(t))D((0,c.e$)(t.error));else{let{fides_key:i,name:r}=t.data;null==a||a(i,r),n&&G("".concat(e.name," has been added to your system inventory."))}W()}M(!1)};return(0,i.jsx)(h.Z,{title:"Add New System",...b,onClose:W,children:(0,i.jsx)(r.J9,{initialValues:x,onSubmit:Z,validationSchema:K,innerRef:P,children:e=>{let{dirty:a,isValid:n}=e;return(0,i.jsxs)(r.l0,{children:[(0,i.jsx)(m.Gt,{id:"new-system-modal",name:"Add New System"}),(0,i.jsxs)(t.jqI,{vertical:!0,gap:20,className:"pb-6 pt-4",children:[(0,i.jsx)(C,{children:"Fides will add this system to your inventory and configure it for consent using the categories of consent listed below. Optionally, you can check if this system is listed within the Fides compass library by selecting the compass icon below."}),j?(0,i.jsx)(y.Z,{label:"System name",options:T,onVendorSelected:O,isCreate:!0,lockedForGVL:w,isLoading:I}):(0,i.jsx)(u.j0,{id:"name",name:"name",label:"System name",tooltip:"Give the system a unique, and relevant name for reporting purposes. e.g. “Email Data Warehouse”",variant:"stacked",isRequired:!0}),(0,i.jsx)(g.Sv,{id:"description",name:"description",label:"Description",tooltip:"What services does this system perform?",disabled:w}),(0,i.jsx)(d.d,{mode:"tags",id:"tags",name:"tags",label:"System Tags",options:[],layout:"stacked",tooltip:"Are there any tags to associate with this system?",disabled:w})]}),(0,i.jsxs)(t.jqI,{justify:"space-between",children:[(0,i.jsx)(t.wpx,{htmlType:"reset",onClick:W,disabled:I||!a||!n,"data-testid":"cancel-btn",children:"Cancel"}),(0,i.jsx)(t.wpx,{htmlType:"submit",type:"primary",disabled:I||!a||!n,loading:N,"data-testid":"save-btn",children:"Save"})]})]})}})})}},93237:function(e,a,n){"use strict";n.d(a,{Sv:function(){return m},Yb:function(){return F},dQ:function(){return h},lm:function(){return S}});var i=n(24246),t=n(77181),r=n(34090),s=n(27378),o=n(16134),l=n(40324),_=n(91613),d=n(32885),u=n(57865);let c=(e,a,n)=>{var i,t;let[l,_,{setValue:c,setTouched:F}]=(0,r.U$)({name:e,type:n||void 0}),m=!!(_.touched&&_.error),{error:h}=_,S={...l,value:null!==(i=l.value)&&void 0!==i?i:""},[f,p]=(0,s.useState)(null!==(t=S.value)&&void 0!==t?t:""),{values:g}=(0,r.u6)(),{vendor_id:v}=g,y=(0,o.C)((0,d.$e)(v||"")),C=(0,o.C)(u.bN),x=(0,s.useRef)();return(0,s.useEffect)(()=>{"showing"===C&&p(S.value)},[C,p]),(0,s.useEffect)(()=>{if("showing"===C&&y){let n=a?a(y):y[e];S.value!==n&&(c(n),setTimeout(()=>{var e;F(!0),null===(e=x.current)||void 0===e||e.blur()},300))}},[C,c,y,x.current]),(0,s.useEffect)(()=>{"hiding"===C&&c(f)},[C,c,f]),{field:S,isInvalid:m,isShowingSuggestions:C,error:h,inputRef:x}},F=e=>{let{label:a,tooltip:n,disabled:r,isRequired:s=!1,dictField:o,name:d,placeholder:u,id:F}=e,{field:m,isInvalid:h,isShowingSuggestions:S,error:f,inputRef:p}=c(d,o);return(0,i.jsx)(t.NIc,{isInvalid:h,isRequired:s,children:(0,i.jsxs)(t.gCW,{alignItems:"start",children:[(0,i.jsxs)(t.kCb,{alignItems:"center",children:[(0,i.jsx)(l.__,{htmlFor:F||d,fontSize:"xs",my:0,mr:1,children:a}),n?(0,i.jsx)(_.Z,{label:n}):null]}),(0,i.jsx)(l.oi,{...m,ref:p,isRequired:s,isDisabled:r,"data-testid":"input-".concat(m.name),placeholder:u,isPassword:!1,color:"showing"===S?"complimentary.500":"gray.800"}),(0,i.jsx)(l.Bc,{isInvalid:h,message:f,fieldName:m.name})]})})},m=e=>{let{label:a,tooltip:n,disabled:r,isRequired:s=!1,dictField:o,name:d,id:u}=e,{field:F,isInvalid:m,isShowingSuggestions:h,error:S}=c(d,o);return(0,i.jsx)(t.NIc,{isInvalid:m,isRequired:s,children:(0,i.jsxs)(t.gCW,{alignItems:"start",children:[(0,i.jsxs)(t.kCb,{alignItems:"center",children:[(0,i.jsx)(l.__,{htmlFor:u||d,fontSize:"xs",my:0,mr:1,children:a}),n?(0,i.jsx)(_.Z,{label:n}):null]}),(0,i.jsx)(t.gxH,{...F,size:"sm","data-testid":"input-".concat(F.name),focusBorderColor:"primary.600",color:"showing"===h?"complimentary.500":"gray.800",isDisabled:r}),(0,i.jsx)(l.Bc,{isInvalid:m,message:S,fieldName:F.name})]})})},h=e=>{let{label:a,tooltip:n,dictField:s,name:o,id:d,disabled:u}=e,{field:F,isInvalid:m,error:h}=c(o,s,"checkbox");return(0,i.jsxs)(t.NIc,{isInvalid:m,width:"full",children:[(0,i.jsxs)(t.xuv,{display:"flex",alignItems:"center",justifyContent:"space-between",children:[(0,i.jsxs)(t.Ugi,{spacing:1,children:[(0,i.jsx)(l.__,{htmlFor:d||o,fontSize:"xs",my:0,mr:0,children:a}),n?(0,i.jsx)(_.Z,{label:n}):null]}),(0,i.jsx)(t.Ugi,{children:(0,i.jsx)(r.gN,{name:F.name,children:e=>{let{form:{setFieldValue:a}}=e;return(0,i.jsx)(t.rAg,{checked:F.checked,onChange:e=>{a(F.name,e)},disabled:u,className:"mr-2","data-testid":"input-".concat(F.name),size:"small"})}})})]}),(0,i.jsx)(l.Bc,{isInvalid:m,message:h,fieldName:F.name})]})},S=e=>{let{label:a,tooltip:n,dictField:s,name:o,id:d,disabled:u}=e,{field:F,isInvalid:m,error:h,isShowingSuggestions:S}=c(o,s,"numeric"),{setFieldValue:f}=(0,r.u6)();return(0,i.jsxs)(t.NIc,{isInvalid:m,width:"full",children:[(0,i.jsxs)(t.xuv,{display:"flex",alignItems:"center",justifyContent:"space-between",children:[(0,i.jsxs)(t.Ugi,{spacing:1,children:[(0,i.jsx)(l.__,{htmlFor:d||o,fontSize:"xs",my:0,mr:0,children:a}),n?(0,i.jsx)(_.Z,{label:n}):null]}),(0,i.jsx)(t.Ugi,{children:(0,i.jsxs)(t.Y2U,{value:F.value,name:F.name,size:"xs",onBlur:F.onBlur,onChange:e=>{f(F.name,e)},w:"100%",colorScheme:"terracotta",inputMode:"numeric","data-testid":"input-".concat(F.name),color:"showing"===S?"complimentary.500":"gray.800",focusBorderColor:"primary.600",isDisabled:u,children:[(0,i.jsx)(t.zuI,{}),(0,i.jsxs)(t.FiK,{children:[(0,i.jsx)(t.WQu,{}),(0,i.jsx)(t.Y_d,{})]})]})})]}),(0,i.jsx)(l.Bc,{isInvalid:m,message:h,fieldName:F.name})]})}},72707:function(e){e.exports={option:"TaxonomySelect_option__vY6v2"}}}]);
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7453],{95372:function(e){e.exports=function(e,a,n,i){for(var t=e.length,r=n+(i?1:-1);i?r--:++r<t;)if(a(e[r],r,e))return r;return -1}},74833:function(e,a,n){var i=n(56127),t=/^\s+/;e.exports=function(e){return e?e.slice(0,i(e)+1).replace(t,""):e}},56632:function(e,a,n){var i=n(89278),t=n(80068),r=n(50098);e.exports=function(e){return function(a,n,s){var o=Object(a);if(!t(a)){var l=i(n,3);a=r(a),n=function(e){return l(o[e],e,o)}}var _=e(a,n,s);return _>-1?o[l?a[_]:_]:void 0}}},56127:function(e){var a=/\s/;e.exports=function(e){for(var n=e.length;n--&&a.test(e.charAt(n)););return n}},66726:function(e,a,n){var i=n(11611),t=n(82846),r=n(91936),s=Math.max,o=Math.min;e.exports=function(e,a,n){var l,_,d,u,c,F,m=0,h=!1,S=!1,f=!0;if("function"!=typeof e)throw TypeError("Expected a function");function p(a){var n=l,i=_;return l=_=void 0,m=a,u=e.apply(i,n)}function g(e){var n=e-F,i=e-m;return void 0===F||n>=a||n<0||S&&i>=d}function v(){var e,n,i,r=t();if(g(r))return y(r);c=setTimeout(v,(e=r-F,n=r-m,i=a-e,S?o(i,d-n):i))}function y(e){return(c=void 0,f&&l)?p(e):(l=_=void 0,u)}function C(){var e,n=t(),i=g(n);if(l=arguments,_=this,F=n,i){if(void 0===c)return m=e=F,c=setTimeout(v,a),h?p(e):u;if(S)return clearTimeout(c),c=setTimeout(v,a),p(F)}return void 0===c&&(c=setTimeout(v,a)),u}return a=r(a)||0,i(n)&&(h=!!n.leading,d=(S="maxWait"in n)?s(r(n.maxWait)||0,a):d,f="trailing"in n?!!n.trailing:f),C.cancel=function(){void 0!==c&&clearTimeout(c),m=0,l=F=_=c=void 0},C.flush=function(){return void 0===c?u:y(t())},C}},64925:function(e,a,n){var i=n(56632)(n(66259));e.exports=i},66259:function(e,a,n){var i=n(95372),t=n(89278),r=n(47991),s=Math.max;e.exports=function(e,a,n){var o=null==e?0:e.length;if(!o)return -1;var l=null==n?0:r(n);return l<0&&(l=s(o+l,0)),i(e,t(a,3),l)}},82846:function(e,a,n){var i=n(77400);e.exports=function(){return i.Date.now()}},94919:function(e,a,n){var i=n(91936),t=1/0;e.exports=function(e){return e?(e=i(e))===t||e===-t?(e<0?-1:1)*17976931348623157e292:e==e?e:0:0===e?e:0}},47991:function(e,a,n){var i=n(94919);e.exports=function(e){var a=i(e),n=a%1;return a==a?n?a-n:a:0}},91936:function(e,a,n){var i=n(74833),t=n(11611),r=n(55193),s=0/0,o=/^[-+]0x[0-9a-f]+$/i,l=/^0b[01]+$/i,_=/^0o[0-7]+$/i,d=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(r(e))return s;if(t(e)){var a="function"==typeof e.valueOf?e.valueOf():e;e=t(a)?a+"":a}if("string"!=typeof e)return 0===e?e:+e;e=i(e);var n=l.test(e);return n||_.test(e)?d(e.slice(2),n?2:8):o.test(e)?s:+e}},7617:function(e,a,n){"use strict";n.d(a,{q:function(){return r}});var i=n(24246),t=n(77181);let r=e=>{let{label:a,isDisabled:n,...r}=e;return(0,i.jsx)(t.OK9,{"data-testid":"tab-".concat(a),_selected:{fontWeight:"600",color:"complimentary.500",borderColor:"complimentary.500"},fontSize:r.fontSize,fontWeight:"500",color:"gray.500",isDisabled:n||!1,children:a})};a.Z=e=>{let{data:a,border:n="partial",...s}=e;return(0,i.jsxs)(t.mQc,{colorScheme:"complimentary",...s,children:[(0,i.jsx)(t.tdY,{width:"partial"===n?"max-content":void 0,children:a.map(e=>(0,i.jsx)(r,{label:e.label,isDisabled:e.isDisabled,fontSize:s.fontSize},e.label))}),(0,i.jsx)(t.nPR,{children:a.map(e=>(0,i.jsx)(t.x45,{px:0,"data-testid":"tab-panel-".concat(e.label),children:e.content},e.label))})]})}},29850:function(e,a,n){"use strict";n.d(a,{R:function(){return d}});var i=n(24246),t=n(77181),r=n(27378),s=n(65450);let o=e=>{let{children:a,className:n,style:r,...s}=e;return(0,i.jsx)(t.wpx,{...s,type:"text",className:"w-full justify-start ".concat(n),style:{fontWeight:600,padding:"var(--ant-select-option-padding)",backgroundColor:"var(--ant-select-option-selected-bg)",...r},children:a})};var l=n(16394);let _=(e,a)=>(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(o,{onClick:a,"data-testid":"add-new-system",id:"add-new-system",children:"Add new system +"}),e]}),d=e=>{var a;let{onAddSystem:n,...o}=e,[d,u]=(0,r.useState)(),{data:c,isFetching:F}=(0,s.xF)({page:1,size:25,search:d||void 0}),m=null==c?void 0:null===(a=c.items)||void 0===a?void 0:a.map(e=>({value:e.fides_key,label:e.name})),h=(0,r.useCallback)(e=>{(null==e?void 0:e.length)>1&&u(e),(null==e?void 0:e.length)===0&&u(void 0)},[u]),S=(0,r.useMemo)(()=>(0,l.Ds)(h,300),[h]);return(0,i.jsx)(t.WPr,{placeholder:"Search...","aria-label":"Search for a system to select",dropdownStyle:{minWidth:"500px"},dropdownRender:n?e=>_(e,n):void 0,"data-testid":"system-select",...o,filterOption:!1,options:m,onSearch:S,loading:o.loading||F})}},79283:function(e,a,n){"use strict";n.d(a,{l:function(){return l}});var i=n(24246),t=n(77181),r=n(72707),s=n.n(r);let o=e=>{let{data:a}=e;return(0,i.jsxs)(t.jqI,{gap:12,title:"".concat(a.primaryName||"").concat(a.primaryName?": ":"").concat(a.name," - ").concat(a.description),children:[(0,i.jsxs)("div",{children:[(0,i.jsx)("strong",{children:a.primaryName||a.name}),a.primaryName&&": ".concat(a.name)]}),(0,i.jsx)("em",{children:a.description})]})},l=e=>{let{options:a,...n}=e,r=null==a?void 0:a.map(e=>({...e,className:s().option}));return(0,i.jsx)(t.WPr,{options:r,autoFocus:!0,variant:"borderless",optionRender:o,dropdownStyle:{minWidth:"500px"},className:"w-full p-0","data-testid":"taxonomy-select",...n})}},34929:function(e,a,n){"use strict";var i=n(24246),t=n(64925),r=n.n(t),s=n(27378),o=n(16134),l=n(30002),_=n(28079),d=n(57072);let u=()=>{let{isLoading:e}=(0,_.fd)(),a=(0,o.C)(_.U3),{isLoading:n}=(0,d.MO)(),i=(0,o.C)(d.qb),{isLoading:t}=(0,l.te)();return{dataUses:a,dataSubjects:(0,o.C)(l.ZL),dataCategories:i,isLoading:e||n||t}};a.Z=()=>{let{dataUses:e,dataCategories:a,dataSubjects:n,isLoading:t}=u(),o=function(e){let a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return e.split(".").slice(0,a).join(".")},l=function(e,a){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,i=a(e);if(!i)return{};let t=a(o(e,n)),r=!!i.parent_key;return{name:i.name||void 0,primaryName:r&&(null==t?void 0:t.name)!==i.name&&(null==t?void 0:t.name)||void 0}},_=function(e,a){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,{name:t,primaryName:r}=l(e,a,n);return t?r?(0,i.jsxs)(s.Fragment,{children:[(0,i.jsxs)("strong",{children:[r,":"]})," ",t]},e):(0,i.jsx)("strong",{children:t},e):e},d=a=>r()(e,{fides_key:a}),c=e=>r()(a,{fides_key:e}),F=e=>r()(n,{fides_key:e});return{getDataUses:()=>e,getDataUseByKey:d,getDataUseDisplayName:e=>_(e,d,1),getDataUseDisplayNameProps:e=>l(e,d,1),getDataCategories:()=>a,getDataCategoryByKey:c,getDataCategoryDisplayName:e=>_(e,c,2),getDataCategoryDisplayNameProps:e=>l(e,c,2),getDataSubjects:()=>n,getDataSubjectByKey:F,getDataSubjectDisplayName:e=>{let a=F(e);return a?a.name:e},getPrimaryKey:o,isLoading:t}}},8411:function(e,a,n){"use strict";n.d(a,{NA:function(){return r},Z8:function(){return t}});var i=n(21702);let t={[i._F.ER]:"Eritrea",[i._F.DJ]:"Djibouti",[i._F.MR]:"Mauritania",[i._F.NA]:"Namibia",[i._F.GH]:"Ghana",[i._F.SS]:"South Sudan",[i._F.SC]:"Seychelles",[i._F.IO]:"British Indian Ocean Territory",[i._F.GQ]:"Equatorial Guinea",[i._F.AO]:"Angola",[i._F.CG]:"Republic of the Congo",[i._F.BW]:"Botswana",[i._F.BI]:"Burundi",[i._F.DZ]:"Algeria",[i._F.TD]:"Chad",[i._F.NG]:"Nigeria",[i._F.TZ]:"Tanzania",[i._F.EH]:"Western Sahara",[i._F.SN]:"Senegal",[i._F.LR]:"Liberia",[i._F.ZA]:"South Africa",[i._F.CV]:"Cape Verde",[i._F.GM]:"Gambia",[i._F.SD]:"Sudan",[i._F.KM]:"Comoros",[i._F.SZ]:"Eswatini",[i._F.UG]:"Uganda",[i._F.MG]:"Madagascar",[i._F.RW]:"Rwanda",[i._F.CD]:"DR Congo",[i._F.CM]:"Cameroon",[i._F.SH]:"Saint Helena, Ascension and Tristan da Cunha",[i._F.TG]:"Togo",[i._F.MU]:"Mauritius",[i._F.NE]:"Niger",[i._F.BJ]:"Benin",[i._F.EG]:"Egypt",[i._F.LS]:"Lesotho",[i._F.ET]:"Ethiopia",[i._F.MA]:"Morocco",[i._F.YT]:"Mayotte",[i._F.BF]:"Burkina Faso",[i._F.RE]:"R\xe9union",[i._F.ST]:"S\xe3o Tom\xe9 and Pr\xedncipe",[i._F.CF]:"Central African Republic",[i._F.MZ]:"Mozambique",[i._F.MW]:"Malawi",[i._F.ML]:"Mali",[i._F.ZM]:"Zambia",[i._F.LY]:"Libya",[i._F.GW]:"Guinea-Bissau",[i._F.SO]:"Somalia",[i._F.KE]:"Kenya",[i._F.GN]:"Guinea",[i._F.ZW]:"Zimbabwe",[i._F.TN]:"Tunisia",[i._F.SL]:"Sierra Leone",[i._F.GA]:"Gabon",[i._F.CI]:"Ivory Coast",[i._F.JO]:"Jordan",[i._F.PK]:"Pakistan",[i._F.KP]:"North Korea",[i._F.MO]:"Macau",[i._F.AM]:"Armenia",[i._F.SY]:"Syria",[i._F.TJ]:"Tajikistan",[i._F.SA]:"Saudi Arabia",[i._F.KR]:"South Korea",[i._F.NP]:"Nepal",[i._F.PH]:"Philippines",[i._F.IQ]:"Iraq",[i._F.LB]:"Lebanon",[i._F.MN]:"Mongolia",[i._F.PS]:"Palestine",[i._F.YE]:"Yemen",[i._F.JP]:"Japan",[i._F.KZ]:"Kazakhstan",[i._F.LK]:"Sri Lanka",[i._F.MM]:"Myanmar",[i._F.KG]:"Kyrgyzstan",[i._F.CN]:"China",[i._F.AF]:"Afghanistan",[i._F.OM]:"Oman",[i._F.IN]:"India",[i._F.LA]:"Laos",[i._F.UZ]:"Uzbekistan",[i._F.MV]:"Maldives",[i._F.ID]:"Indonesia",[i._F.VN]:"Vietnam",[i._F.MY]:"Malaysia",[i._F.TW]:"Taiwan",[i._F.KH]:"Cambodia",[i._F.AE]:"United Arab Emirates",[i._F.HK]:"Hong Kong",[i._F.GE]:"Georgia",[i._F.BD]:"Bangladesh",[i._F.KW]:"Kuwait",[i._F.TM]:"Turkmenistan",[i._F.QA]:"Qatar",[i._F.BH]:"Bahrain",[i._F.BN]:"Brunei",[i._F.TH]:"Thailand",[i._F.BT]:"Bhutan",[i._F.SG]:"Singapore",[i._F.IL]:"Israel",[i._F.AZ]:"Azerbaijan",[i._F.TL]:"Timor-Leste",[i._F.IR]:"Iran",[i._F.TR]:"Turkey",[i._F.MK]:"North Macedonia",[i._F.IE]:"Ireland",[i._F.DK]:"Denmark",[i._F.SK]:"Slovakia",[i._F.MD]:"Moldova",[i._F.AX]:"\xc5land Islands",[i._F.PL]:"Poland",[i._F.BA]:"Bosnia and Herzegovina",[i._F.SM]:"San Marino",[i._F.CZ]:"Czechia",[i._F.EE]:"Estonia",[i._F.XK]:"Kosovo",[i._F.FO]:"Faroe Islands",[i._F.SJ]:"Svalbard and Jan Mayen",[i._F.GG]:"Guernsey",[i._F.FR]:"France",[i._F.NL]:"Netherlands",[i._F.FI]:"Finland",[i._F.PT]:"Portugal",[i._F.DE]:"Germany",[i._F.MT]:"Malta",[i._F.JE]:"Jersey",[i._F.IS]:"Iceland",[i._F.ES]:"Spain",[i._F.GI]:"Gibraltar",[i._F.NO]:"Norway",[i._F.CY]:"Cyprus",[i._F.RS]:"Serbia",[i._F.LT]:"Lithuania",[i._F.MC]:"Monaco",[i._F.LU]:"Luxembourg",[i._F.UA]:"Ukraine",[i._F.IM]:"Isle of Man",[i._F.RO]:"Romania",[i._F.BE]:"Belgium",[i._F.SE]:"Sweden",[i._F.ME]:"Montenegro",[i._F.LV]:"Latvia",[i._F.VA]:"Vatican City",[i._F.AT]:"Austria",[i._F.AL]:"Albania",[i._F.LI]:"Liechtenstein",[i._F.GR]:"Greece",[i._F.IT]:"Italy",[i._F.AD]:"Andorra",[i._F.GB]:"United Kingdom",[i._F.RU]:"Russia",[i._F.SI]:"Slovenia",[i._F.BY]:"Belarus",[i._F.CH]:"Switzerland",[i._F.HU]:"Hungary",[i._F.BG]:"Bulgaria",[i._F.HR]:"Croatia",[i._F.TC]:"Turks and Caicos Islands",[i._F.CW]:"Cura\xe7ao",[i._F.GP]:"Guadeloupe",[i._F.UM]:"United States Minor Outlying Islands",[i._F.GT]:"Guatemala",[i._F.PM]:"Saint Pierre and Miquelon",[i._F.BQ]:"Caribbean Netherlands",[i._F.GL]:"Greenland",[i._F.SX]:"Sint Maarten",[i._F.PA]:"Panama",[i._F.AW]:"Aruba",[i._F.MQ]:"Martinique",[i._F.AG]:"Antigua and Barbuda",[i._F.BM]:"Bermuda",[i._F.CU]:"Cuba",[i._F.GD]:"Grenada",[i._F.NI]:"Nicaragua",[i._F.LC]:"Saint Lucia",[i._F.KN]:"Saint Kitts and Nevis",[i._F.DO]:"Dominican Republic",[i._F.VC]:"Saint Vincent and the Grenadines",[i._F.BZ]:"Belize",[i._F.HT]:"Haiti",[i._F.JM]:"Jamaica",[i._F.BS]:"Bahamas",[i._F.MX]:"Mexico",[i._F.MF]:"Saint Martin",[i._F.SV]:"El Salvador",[i._F.BL]:"Saint Barth\xe9lemy",[i._F.AI]:"Anguilla",[i._F.MS]:"Montserrat",[i._F.VG]:"British Virgin Islands",[i._F.BB]:"Barbados",[i._F.HN]:"Honduras",[i._F.KY]:"Cayman Islands",[i._F.DM]:"Dominica",[i._F.TT]:"Trinidad and Tobago",[i._F.CR]:"Costa Rica",[i._F.SR]:"Suriname",[i._F.CX]:"Christmas Island",[i._F.WS]:"Samoa",[i._F.PF]:"French Polynesia",[i._F.AS]:"American Samoa",[i._F.NC]:"New Caledonia",[i._F.TK]:"Tokelau",[i._F.PW]:"Palau",[i._F.KI]:"Kiribati",[i._F.VU]:"Vanuatu",[i._F.PN]:"Pitcairn Islands",[i._F.CK]:"Cook Islands",[i._F.FJ]:"Fiji",[i._F.PG]:"Papua New Guinea",[i._F.MP]:"Northern Mariana Islands",[i._F.NU]:"Niue",[i._F.TV]:"Tuvalu",[i._F.NF]:"Norfolk Island",[i._F.TO]:"Tonga",[i._F.FM]:"Micronesia",[i._F.SB]:"Solomon Islands",[i._F.NR]:"Nauru",[i._F.WF]:"Wallis and Futuna",[i._F.GU]:"Guam",[i._F.AU]:"Australia",[i._F.NZ]:"New Zealand",[i._F.MH]:"Marshall Islands",[i._F.CC]:"Cocos (Keeling) Islands",[i._F.VE]:"Venezuela",[i._F.PY]:"Paraguay",[i._F.BR]:"Brazil",[i._F.CO]:"Colombia",[i._F.PE]:"Peru",[i._F.CL]:"Chile",[i._F.UY]:"Uruguay",[i._F.AR]:"Argentina",[i._F.GY]:"Guyana",[i._F.BO]:"Bolivia",[i._F.GF]:"French Guiana",[i._F.EC]:"Ecuador",[i._F.FK]:"Falkland Islands",[i._F.US_AL]:"Alabama",[i._F.US_AK]:"Alaska",[i._F.US_AZ]:"Arizona",[i._F.US_AR]:"Arkansas",[i._F.US_CA]:"California",[i._F.US_CO]:"Colorado",[i._F.US_CT]:"Connecticut",[i._F.US_DE]:"Delaware",[i._F.US_DC]:"District of Columbia (DC)",[i._F.US_FL]:"Florida",[i._F.US_GA]:"Georgia",[i._F.US_HI]:"Hawaii",[i._F.US_ID]:"Idaho",[i._F.US_IL]:"Illinois",[i._F.US_IN]:"Indiana",[i._F.US_IA]:"Iowa",[i._F.US_KS]:"Kansas",[i._F.US_KY]:"Kentucky",[i._F.US_LA]:"Louisiana",[i._F.US_ME]:"Maine",[i._F.US_MD]:"Maryland",[i._F.US_MA]:"Massachusetts",[i._F.US_MI]:"Michigan",[i._F.US_MN]:"Minnesota",[i._F.US_MS]:"Mississippi",[i._F.US_MO]:"Missouri",[i._F.US_MT]:"Montana",[i._F.US_NE]:"Nebraska",[i._F.US_NV]:"Nevada",[i._F.US_NH]:"New Hampshire",[i._F.US_NJ]:"New Jersey",[i._F.US_NM]:"New Mexico",[i._F.US_NY]:"New York",[i._F.US_NC]:"North Carolina",[i._F.US_ND]:"North Dakota",[i._F.US_OH]:"Ohio",[i._F.US_OK]:"Oklahoma",[i._F.US_OR]:"Oregon",[i._F.US_PA]:"Pennsylvania",[i._F.US_PR]:"Puerto Rico",[i._F.US_RI]:"Rhode Island",[i._F.US_SC]:"South Carolina",[i._F.US_SD]:"San Diego",[i._F.US_TN]:"Tennessee",[i._F.US_TX]:"Texas",[i._F.US_UT]:"Utah",[i._F.US_VA]:"Virginia",[i._F.US_VI]:"United States Virgin Islands",[i._F.US_VT]:"Vermon",[i._F.US_WA]:"Washington",[i._F.US_WV]:"West Virginia",[i._F.US_WI]:"Wisconsin",[i._F.US_WY]:"Wyoming",[i._F.CA_AB]:"Alberta",[i._F.CA_BC]:"British Columbia",[i._F.CA_MB]:"Manitoba",[i._F.CA_NB]:"New Brunswick",[i._F.CA_NL]:"Newfoundland and Labrador",[i._F.CA_NS]:"Nova Scotia",[i._F.CA_ON]:"Ontario",[i._F.CA_PE]:"Prince Edward Island",[i._F.CA_QC]:"Quebec",[i._F.CA_SK]:"Saskatchewan",[i._F.CA_NT]:"Northwest Territories",[i._F.CA_NU]:"Nunavut",[i._F.CA_YT]:"Yukon",[i._F.CA]:"Canada",[i._F.US]:"United States",[i._F.MEXICO_CENTRAL_AMERICA]:"Mexico and Central America",[i._F.CARIBBEAN]:"Caribbean",[i._F.EEA]:"European Economic Area (EEA)",[i._F.NON_EEA]:"Non European Economic Area"},r=new Map(Object.entries(t));Object.entries(t).map(e=>({value:e[0],label:e[1]}))},57454:function(e,a,n){"use strict";n.d(a,{M:function(){return l}});var i=n(24246),t=n(66726),r=n.n(t),s=n(27378),o=n(86780);let l=e=>{let{value:a,onChange:n}=e,[t,l]=(0,s.useState)(a),_=r()(n,500),d=(0,s.useCallback)(e=>{l(e),_(e)},[]);return(0,i.jsx)(o.Z,{search:t,onChange:d,onClear:()=>{l(""),n("")}})}},70682:function(e,a,n){"use strict";var i=n(24246),t=n(79283),r=n(34929),s=n(78238);a.Z=e=>{let{selectedTaxonomies:a,...n}=e,{getDataUseDisplayNameProps:o,getDataUses:l}=(0,r.Z)(),_=l().filter(e=>e.active&&s.g.includes(e.fides_key)).map(e=>{let{name:a,primaryName:n}=o(e.fides_key);return{value:e.fides_key,name:a,primaryName:n,description:e.description||""}});return(0,i.jsx)(t.l,{options:_,...n})}},78238:function(e,a,n){"use strict";n.d(a,{g:function(){return i}});let i=["essential","functional.service.improve","personalize","analytics","marketing.advertising.first_party.targeted","marketing.advertising.third_party.targeted"];a.Z=e=>i.includes(e)},26183:function(e,a,n){"use strict";var i=n(24246);n(27378),a.Z=e=>{let{children:a,className:n,...t}=e;return(0,i.jsx)("div",{className:"relative flex w-full flex-wrap items-center gap-2 overflow-x-auto py-2 ".concat(n||""),...t,children:a})}},77685:function(e,a,n){"use strict";n.d(a,{i:function(){return b}});var i=n(24246),t=n(77181),r=n(34090),s=n(27378),o=n(55484),l=n(16134),_=n(25980),d=n(97181),u=n(40324),c=n(812),F=n(14047),m=n(45938),h=n(8133),S=n(33335),f=n(32885),p=n(57865),g=n(93237),v=n(65450),y=n(36345);let{Text:C}=t.AntTypography,x={name:"",vendor_id:void 0,description:"",tags:[]},b=e=>{let{onSuccessfulSubmit:a,toastOnSuccess:n,...b}=e,[N,M]=(0,s.useState)(!1),A=(0,l.T)(),{tcf:U,dictionaryService:j}=(0,_.hz)(),{isLoading:I}=(0,f.Rd)(void 0,{skip:!j}),T=(0,l.C)(f.o),w=(0,l.C)(p.gU),[B]=(0,v.in)(),[E]=(0,f.Qk)(),[k]=(0,v.f7)(),{successAlert:G,errorAlert:D}=(0,F.V)(),{setSuggestions:L,setLockedForGVL:R}=p.dictSuggestionsSlice.actions,P=(0,s.useRef)(null),K=(0,s.useMemo)(()=>o.Ry().shape({name:o.Z_().required().label("System name").test("is-unique","",async(e,a)=>{let{data:n}=await B({page:1,size:10,search:e});return!((null==n?void 0:n.items)||[]).filter(a=>a.name===e).some(a=>a.name===e)||a.createError({message:'You already have a system called "'.concat(e,'". Please specify a unique name for this system.')})})}),[B]),O=e=>{if(j){if(!e){A(L("hiding")),A(R(!1));return}A(L("showing")),U&&(0,c.cj)(e)===c.c6.GVL?A(R(!0)):A(R(!1))}},W=()=>{b.onClose(),A(L("initial")),A(R(!1))},Z=async e=>{if(M(!0),e.vendor_id){let i=await E([e.vendor_id]);if((0,c.D4)(i))D((0,c.e$)(i.error));else{let{data:e}=i,t=e.systems[0];null==a||a(t.fides_key,t.name),n&&G("".concat(e.name," has been added to your system inventory."))}}else{let i={...e,fides_key:(0,S.E)(e.name),system_type:"",body:"",privacy_declarations:[]},t=await k(i);if((0,c.D4)(t))D((0,c.e$)(t.error));else{let{fides_key:i,name:r}=t.data;null==a||a(i,r),n&&G("".concat(e.name," has been added to your system inventory."))}W()}M(!1)};return(0,i.jsx)(h.Z,{title:"Add New System",...b,onClose:W,children:(0,i.jsx)(r.J9,{initialValues:x,onSubmit:Z,validationSchema:K,innerRef:P,children:e=>{let{dirty:a,isValid:n}=e;return(0,i.jsxs)(r.l0,{children:[(0,i.jsx)(m.Gt,{id:"new-system-modal",name:"Add New System"}),(0,i.jsxs)(t.jqI,{vertical:!0,gap:20,className:"pb-6 pt-4",children:[(0,i.jsx)(C,{children:"Fides will add this system to your inventory and configure it for consent using the categories of consent listed below. Optionally, you can check if this system is listed within the Fides compass library by selecting the compass icon below."}),j?(0,i.jsx)(y.Z,{label:"System name",options:T,onVendorSelected:O,isCreate:!0,lockedForGVL:w,isLoading:I}):(0,i.jsx)(u.j0,{id:"name",name:"name",label:"System name",tooltip:"Give the system a unique, and relevant name for reporting purposes. e.g. “Email Data Warehouse”",variant:"stacked",isRequired:!0}),(0,i.jsx)(g.Sv,{id:"description",name:"description",label:"Description",tooltip:"What services does this system perform?",disabled:w}),(0,i.jsx)(d.d,{mode:"tags",id:"tags",name:"tags",label:"System Tags",options:[],layout:"stacked",tooltip:"Are there any tags to associate with this system?",disabled:w})]}),(0,i.jsxs)(t.jqI,{justify:"space-between",children:[(0,i.jsx)(t.wpx,{htmlType:"reset",onClick:W,disabled:I||!a||!n,"data-testid":"cancel-btn",children:"Cancel"}),(0,i.jsx)(t.wpx,{htmlType:"submit",type:"primary",disabled:I||!a||!n,loading:N,"data-testid":"save-btn",children:"Save"})]})]})}})})}},93237:function(e,a,n){"use strict";n.d(a,{Sv:function(){return m},Yb:function(){return F},dQ:function(){return h},lm:function(){return S}});var i=n(24246),t=n(77181),r=n(34090),s=n(27378),o=n(16134),l=n(40324),_=n(91613),d=n(32885),u=n(57865);let c=(e,a,n)=>{var i,t;let[l,_,{setValue:c,setTouched:F}]=(0,r.U$)({name:e,type:n||void 0}),m=!!(_.touched&&_.error),{error:h}=_,S={...l,value:null!==(i=l.value)&&void 0!==i?i:""},[f,p]=(0,s.useState)(null!==(t=S.value)&&void 0!==t?t:""),{values:g}=(0,r.u6)(),{vendor_id:v}=g,y=(0,o.C)((0,d.$e)(v||"")),C=(0,o.C)(u.bN),x=(0,s.useRef)();return(0,s.useEffect)(()=>{"showing"===C&&p(S.value)},[C,p]),(0,s.useEffect)(()=>{if("showing"===C&&y){let n=a?a(y):y[e];S.value!==n&&(c(n),setTimeout(()=>{var e;F(!0),null===(e=x.current)||void 0===e||e.blur()},300))}},[C,c,y,x.current]),(0,s.useEffect)(()=>{"hiding"===C&&c(f)},[C,c,f]),{field:S,isInvalid:m,isShowingSuggestions:C,error:h,inputRef:x}},F=e=>{let{label:a,tooltip:n,disabled:r,isRequired:s=!1,dictField:o,name:d,placeholder:u,id:F}=e,{field:m,isInvalid:h,isShowingSuggestions:S,error:f,inputRef:p}=c(d,o);return(0,i.jsx)(t.NIc,{isInvalid:h,isRequired:s,children:(0,i.jsxs)(t.gCW,{alignItems:"start",children:[(0,i.jsxs)(t.kCb,{alignItems:"center",children:[(0,i.jsx)(l.__,{htmlFor:F||d,fontSize:"xs",my:0,mr:1,children:a}),n?(0,i.jsx)(_.Z,{label:n}):null]}),(0,i.jsx)(l.oi,{...m,ref:p,isRequired:s,isDisabled:r,"data-testid":"input-".concat(m.name),placeholder:u,isPassword:!1,color:"showing"===S?"complimentary.500":"gray.800"}),(0,i.jsx)(l.Bc,{isInvalid:h,message:f,fieldName:m.name})]})})},m=e=>{let{label:a,tooltip:n,disabled:r,isRequired:s=!1,dictField:o,name:d,id:u}=e,{field:F,isInvalid:m,isShowingSuggestions:h,error:S}=c(d,o);return(0,i.jsx)(t.NIc,{isInvalid:m,isRequired:s,children:(0,i.jsxs)(t.gCW,{alignItems:"start",children:[(0,i.jsxs)(t.kCb,{alignItems:"center",children:[(0,i.jsx)(l.__,{htmlFor:u||d,fontSize:"xs",my:0,mr:1,children:a}),n?(0,i.jsx)(_.Z,{label:n}):null]}),(0,i.jsx)(t.gxH,{...F,size:"sm","data-testid":"input-".concat(F.name),focusBorderColor:"primary.600",color:"showing"===h?"complimentary.500":"gray.800",isDisabled:r}),(0,i.jsx)(l.Bc,{isInvalid:m,message:S,fieldName:F.name})]})})},h=e=>{let{label:a,tooltip:n,dictField:s,name:o,id:d,disabled:u}=e,{field:F,isInvalid:m,error:h}=c(o,s,"checkbox");return(0,i.jsxs)(t.NIc,{isInvalid:m,width:"full",children:[(0,i.jsxs)(t.xuv,{display:"flex",alignItems:"center",justifyContent:"space-between",children:[(0,i.jsxs)(t.Ugi,{spacing:1,children:[(0,i.jsx)(l.__,{htmlFor:d||o,fontSize:"xs",my:0,mr:0,children:a}),n?(0,i.jsx)(_.Z,{label:n}):null]}),(0,i.jsx)(t.Ugi,{children:(0,i.jsx)(r.gN,{name:F.name,children:e=>{let{form:{setFieldValue:a}}=e;return(0,i.jsx)(t.rAg,{checked:F.checked,onChange:e=>{a(F.name,e)},disabled:u,className:"mr-2","data-testid":"input-".concat(F.name),size:"small"})}})})]}),(0,i.jsx)(l.Bc,{isInvalid:m,message:h,fieldName:F.name})]})},S=e=>{let{label:a,tooltip:n,dictField:s,name:o,id:d,disabled:u}=e,{field:F,isInvalid:m,error:h,isShowingSuggestions:S}=c(o,s,"numeric"),{setFieldValue:f}=(0,r.u6)();return(0,i.jsxs)(t.NIc,{isInvalid:m,width:"full",children:[(0,i.jsxs)(t.xuv,{display:"flex",alignItems:"center",justifyContent:"space-between",children:[(0,i.jsxs)(t.Ugi,{spacing:1,children:[(0,i.jsx)(l.__,{htmlFor:d||o,fontSize:"xs",my:0,mr:0,children:a}),n?(0,i.jsx)(_.Z,{label:n}):null]}),(0,i.jsx)(t.Ugi,{children:(0,i.jsxs)(t.Y2U,{value:F.value,name:F.name,size:"xs",onBlur:F.onBlur,onChange:e=>{f(F.name,e)},w:"100%",colorScheme:"terracotta",inputMode:"numeric","data-testid":"input-".concat(F.name),color:"showing"===S?"complimentary.500":"gray.800",focusBorderColor:"primary.600",isDisabled:u,children:[(0,i.jsx)(t.zuI,{}),(0,i.jsxs)(t.FiK,{children:[(0,i.jsx)(t.WQu,{}),(0,i.jsx)(t.Y_d,{})]})]})})]}),(0,i.jsx)(l.Bc,{isInvalid:m,message:h,fieldName:F.name})]})}},72707:function(e){e.exports={option:"TaxonomySelect_option__vY6v2"}}}]);
|
@@ -1 +1 @@
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7751],{74833:function(e,t,i){var n=i(56127),r=/^\s+/;e.exports=function(e){return e?e.slice(0,n(e)+1).replace(r,""):e}},56127:function(e){var t=/\s/;e.exports=function(e){for(var i=e.length;i--&&t.test(e.charAt(i)););return i}},91936:function(e,t,i){var n=i(74833),r=i(11611),s=i(55193),l=0/0,c=/^[-+]0x[0-9a-f]+$/i,o=/^0b[01]+$/i,d=/^0o[0-7]+$/i,a=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(s(e))return l;if(r(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=r(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=n(e);var i=o.test(e);return i||d.test(e)?a(e.slice(2),i?2:8):c.test(e)?l:+e}},18225:function(e,t,i){"use strict";var n=i(24246),r=i(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})})}},77213:function(e,t,i){"use strict";i.d(t,{Z:function(){return f}});var n=i(24246),r=i(77181),s=i(88038),l=i.n(s),c=i(86677);i(27378);var o=i(25980),d=i(90867),a=i(77830),u=()=>{let e=(0,c.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(a.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."," "]})]})})},f=e=>{let{children:t,title:i,padded:s=!0,mainProps:a}=e,f=(0,o.hz)(),x=(0,c.useRouter)(),h="/privacy-requests"===x.pathname||"/datastore-connection"===x.pathname,p=!(f.flags.privacyRequestsConfiguration&&h),{data:j}=(0,d.JE)(void 0,{skip:p}),{data:m}=(0,d.PW)(void 0,{skip:p}),v=f.flags.privacyRequestsConfiguration&&(!j||!m)&&h;return(0,n.jsxs)(r.kCb,{"data-testid":i,direction:"column",h:"100vh",children:[(0,n.jsxs)(l(),{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:s?6:0,px:s?10:0,h:s?"calc(100% - 48px)":"full",flex:1,minWidth:0,overflow:"auto",...a,children:[v?(0,n.jsx)(u,{}):null,t]})]})}},58754:function(e,t,i){"use strict";var n=i(24246),r=i(77181),s=i(70788);t.Z=e=>{let{heading:t,breadcrumbItems:i,isSticky:l=!0,children:c,rightContent:o,style:d,...a}=e;return(0,n.jsxs)("div",{...a,style:l?{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||c?"pb-4":void 0,fontSize:"2xl","data-testid":"page-heading",children:t}):t,o&&(0,n.jsx)("div",{"data-testid":"page-header-right-content",children:o})]}),!!i&&(0,n.jsx)(s.m,{className:c?"pb-4":void 0,items:i,"data-testid":"page-breadcrumb"}),c]})}},79789:function(e,t,i){"use strict";i.d(t,{Hn:function(){return c},XU:function(){return l},Z5:function(){return o},aG:function(){return u},cB:function(){return s},hX:function(){return a},vQ:function(){return d}});var n=i(24246),r=i(77181);let s=e=>{let{text:t,...i}=e;return(0,n.jsx)(r.X6q,{fontSize:"sm",mt:4,mb:1,...i,children:t})},l=e=>{let{children:t}=e;return(0,n.jsx)(r.xvT,{fontSize:"14px",mb:4,children:t})},c=e=>{let{children:t,href:i}=e;return(0,n.jsx)(r.rUS,{href:i,textDecoration:"underline",isExternal:!0,children:t})},o=e=>{let{children:t}=e;return(0,n.jsx)(r.QI$,{fontSize:"14px",mb:4,children:t})},d=e=>{let{children:t}=e;return(0,n.jsx)(r.GSI,{fontSize:"14px",mb:4,ml:6,children:t})},a=e=>{let{children:t}=e;return(0,n.jsx)(r.EKh,{display:"block",whiteSpace:"pre",p:4,mb:4,overflowX:"scroll",children:t})},u=e=>{let{data:t}=e;return(0,n.jsxs)(r.iA_,{fontSize:"14px",children:[(0,n.jsx)(r.hrZ,{children:(0,n.jsxs)(r.Tr,{children:[(0,n.jsx)(r.Th,{children:"Permission"}),(0,n.jsx)(r.Th,{children:"Description"})]})}),(0,n.jsx)(r.p3B,{children:t.map(e=>(0,n.jsxs)(r.Tr,{children:[(0,n.jsx)(r.Td,{children:(0,n.jsx)(r.Vp9,{children:e.permission})}),(0,n.jsx)(r.Td,{children:e.description})]},e.permission))})]})}},70788:function(e,t,i){"use strict";i.d(t,{m:function(){return d}});var n=i(24246),r=i(77181),s=i(79894),l=i.n(s),c=i(27378);let{Text:o}=r.AntTypography,d=e=>{let{items:t,...i}=e,s=(0,c.useMemo)(()=>null==t?void 0:t.map((e,i)=>{let s=i===t.length-1,c={...e},d=c.onClick&&!c.href;return("string"==typeof c.title&&(c.title=(0,n.jsx)(o,{style:{color:"inherit",maxWidth:s?void 0:400},ellipsis:!s,children:c.title})),d)?c.title=(0,n.jsx)(r.wpx,{type:"text",size:"small",icon:c.icon,onClick:c.onClick,className:"ant-breadcrumb-link -mt-px px-1 text-inherit",children:c.title}):(c.icon&&(c.title=(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("span",{className:"anticon align-text-bottom",children:c.icon}),c.title]})),c.href&&c.title&&(c.title=(0,n.jsx)(l(),{href:c.href,className:"ant-breadcrumb-link",children:c.title}),delete c.href)),c}),[t]);return(0,n.jsx)(r.zrq,{items:s,...i})}},89200:function(e,t,i){"use strict";var n=i(24246),r=i(14481),s=i(98559),l=i(80356);t.Z=e=>{let{resource:t}=e;return(0,n.jsx)(r.G3,{value:(0,s.Z)(t),fontWeight:(0,l.Z)(t)?"semibold":"normal"})}},5945:function(e,t,i){"use strict";var n=i(24246),r=i(14481),s=i(8151);let l={[s.e.ATTENTION_REQUIRED]:"error",[s.e.APPROVED]:"success",[s.e.IN_REVIEW]:"warning",[s.e.CLASSIFYING]:"info",[s.e.NONE]:"marble"};t.Z=e=>{let{status:t}=e;return(0,n.jsx)(r.A4,{color:l[t],value:t})}},99763:function(e,t,i){"use strict";var n=i(24246),r=i(77181),s=i(79789),l=i(8151),c=i(61099),o=i(7940),d=i(
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7751],{74833:function(e,t,i){var n=i(56127),r=/^\s+/;e.exports=function(e){return e?e.slice(0,n(e)+1).replace(r,""):e}},56127:function(e){var t=/\s/;e.exports=function(e){for(var i=e.length;i--&&t.test(e.charAt(i)););return i}},91936:function(e,t,i){var n=i(74833),r=i(11611),s=i(55193),l=0/0,c=/^[-+]0x[0-9a-f]+$/i,o=/^0b[01]+$/i,d=/^0o[0-7]+$/i,a=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(s(e))return l;if(r(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=r(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=n(e);var i=o.test(e);return i||d.test(e)?a(e.slice(2),i?2:8):c.test(e)?l:+e}},18225:function(e,t,i){"use strict";var n=i(24246),r=i(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})})}},77213:function(e,t,i){"use strict";i.d(t,{Z:function(){return f}});var n=i(24246),r=i(77181),s=i(88038),l=i.n(s),c=i(86677);i(27378);var o=i(25980),d=i(90867),a=i(77830),u=()=>{let e=(0,c.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(a.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."," "]})]})})},f=e=>{let{children:t,title:i,padded:s=!0,mainProps:a}=e,f=(0,o.hz)(),x=(0,c.useRouter)(),h="/privacy-requests"===x.pathname||"/datastore-connection"===x.pathname,p=!(f.flags.privacyRequestsConfiguration&&h),{data:j}=(0,d.JE)(void 0,{skip:p}),{data:m}=(0,d.PW)(void 0,{skip:p}),v=f.flags.privacyRequestsConfiguration&&(!j||!m)&&h;return(0,n.jsxs)(r.kCb,{"data-testid":i,direction:"column",h:"100vh",children:[(0,n.jsxs)(l(),{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:s?6:0,px:s?10:0,h:s?"calc(100% - 48px)":"full",flex:1,minWidth:0,overflow:"auto",...a,children:[v?(0,n.jsx)(u,{}):null,t]})]})}},58754:function(e,t,i){"use strict";var n=i(24246),r=i(77181),s=i(70788);t.Z=e=>{let{heading:t,breadcrumbItems:i,isSticky:l=!0,children:c,rightContent:o,style:d,...a}=e;return(0,n.jsxs)("div",{...a,style:l?{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||c?"pb-4":void 0,fontSize:"2xl","data-testid":"page-heading",children:t}):t,o&&(0,n.jsx)("div",{"data-testid":"page-header-right-content",children:o})]}),!!i&&(0,n.jsx)(s.m,{className:c?"pb-4":void 0,items:i,"data-testid":"page-breadcrumb"}),c]})}},79789:function(e,t,i){"use strict";i.d(t,{Hn:function(){return c},XU:function(){return l},Z5:function(){return o},aG:function(){return u},cB:function(){return s},hX:function(){return a},vQ:function(){return d}});var n=i(24246),r=i(77181);let s=e=>{let{text:t,...i}=e;return(0,n.jsx)(r.X6q,{fontSize:"sm",mt:4,mb:1,...i,children:t})},l=e=>{let{children:t}=e;return(0,n.jsx)(r.xvT,{fontSize:"14px",mb:4,children:t})},c=e=>{let{children:t,href:i}=e;return(0,n.jsx)(r.rUS,{href:i,textDecoration:"underline",isExternal:!0,children:t})},o=e=>{let{children:t}=e;return(0,n.jsx)(r.QI$,{fontSize:"14px",mb:4,children:t})},d=e=>{let{children:t}=e;return(0,n.jsx)(r.GSI,{fontSize:"14px",mb:4,ml:6,children:t})},a=e=>{let{children:t}=e;return(0,n.jsx)(r.EKh,{display:"block",whiteSpace:"pre",p:4,mb:4,overflowX:"scroll",children:t})},u=e=>{let{data:t}=e;return(0,n.jsxs)(r.iA_,{fontSize:"14px",children:[(0,n.jsx)(r.hrZ,{children:(0,n.jsxs)(r.Tr,{children:[(0,n.jsx)(r.Th,{children:"Permission"}),(0,n.jsx)(r.Th,{children:"Description"})]})}),(0,n.jsx)(r.p3B,{children:t.map(e=>(0,n.jsxs)(r.Tr,{children:[(0,n.jsx)(r.Td,{children:(0,n.jsx)(r.Vp9,{children:e.permission})}),(0,n.jsx)(r.Td,{children:e.description})]},e.permission))})]})}},70788:function(e,t,i){"use strict";i.d(t,{m:function(){return d}});var n=i(24246),r=i(77181),s=i(79894),l=i.n(s),c=i(27378);let{Text:o}=r.AntTypography,d=e=>{let{items:t,...i}=e,s=(0,c.useMemo)(()=>null==t?void 0:t.map((e,i)=>{let s=i===t.length-1,c={...e},d=c.onClick&&!c.href;return("string"==typeof c.title&&(c.title=(0,n.jsx)(o,{style:{color:"inherit",maxWidth:s?void 0:400},ellipsis:!s,children:c.title})),d)?c.title=(0,n.jsx)(r.wpx,{type:"text",size:"small",icon:c.icon,onClick:c.onClick,className:"ant-breadcrumb-link -mt-px px-1 text-inherit",children:c.title}):(c.icon&&(c.title=(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("span",{className:"anticon align-text-bottom",children:c.icon}),c.title]})),c.href&&c.title&&(c.title=(0,n.jsx)(l(),{href:c.href,className:"ant-breadcrumb-link",children:c.title}),delete c.href)),c}),[t]);return(0,n.jsx)(r.zrq,{items:s,...i})}},89200:function(e,t,i){"use strict";var n=i(24246),r=i(14481),s=i(98559),l=i(80356);t.Z=e=>{let{resource:t}=e;return(0,n.jsx)(r.G3,{value:(0,s.Z)(t),fontWeight:(0,l.Z)(t)?"semibold":"normal"})}},5945:function(e,t,i){"use strict";var n=i(24246),r=i(14481),s=i(8151);let l={[s.e.ATTENTION_REQUIRED]:"error",[s.e.APPROVED]:"success",[s.e.IN_REVIEW]:"warning",[s.e.CLASSIFYING]:"info",[s.e.NONE]:"marble"};t.Z=e=>{let{status:t}=e;return(0,n.jsx)(r.A4,{color:l[t],value:t})}},99763:function(e,t,i){"use strict";var n=i(24246),r=i(77181),s=i(79789),l=i(8151),c=i(61099),o=i(7940),d=i(21702);t.Z=e=>{var t;let{resource:i,onClose:a}=e,u=(0,o.G)(i),f=(0,l.u)(i),x=(u===d.D$.FIELD||u===d.D$.TABLE)&&f===l.e.IN_REVIEW;return(0,n.jsxs)(r.dys,{isOpen:!!i,onClose:a,size:"md",children:[(0,n.jsx)(r.P1B,{}),(0,n.jsxs)(r.scA,{"data-testid":"resource-details",children:[(0,n.jsx)(r.OXI,{children:(null==i?void 0:i.name)||(null==i?void 0:i.urn)}),(0,n.jsx)(r.cCv,{}),(0,n.jsxs)(r.Ng0,{children:[(0,n.jsx)(s.cB,{text:"Title",mt:0}),(0,n.jsx)(s.XU,{children:null!==(t=null==i?void 0:i.name)&&void 0!==t?t:null==i?void 0:i.urn}),(null==i?void 0:i.description)&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(s.cB,{text:"Description"}),(0,n.jsx)(s.XU,{children:null==i?void 0:i.description})]}),x&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(s.cB,{text:"Data categories"}),(0,n.jsx)(c.Z,{resource:i})]})]})]})]})}},28976:function(e,t,i){"use strict";var n=i(24246),r=i(77181);t.Z=e=>{let{onHideClick:t,onDetailClick:i}=e;return(0,n.jsxs)(r.v2r,{children:[(0,n.jsx)(r.j2t,{as:r.wpx,size:"small",type:"text",icon:(0,n.jsx)(r.nXP,{transform:"rotate(90deg)"}),className:"w-6 gap-0","data-testid":"actions-menu"}),(0,n.jsxs)(r.qyq,{children:[i&&(0,n.jsx)(r.sNh,{onClick:i,"data-testid":"view-resource-details",children:"View details"}),t&&(0,n.jsx)(r.sNh,{onClick:t,"data-testid":"hide-resource",children:"Hide"})]})]})}},8151:function(e,t,i){"use strict";i.d(t,{e:function(){return r},u:function(){return l}});var n,r,s=i(21702);(n=r||(r={})).ATTENTION_REQUIRED="Attention required",n.IN_REVIEW="In review",n.APPROVED="Approved",n.CLASSIFYING="Classifying",n.NONE="None";let l=e=>{if(!e)return"Approved";let t=e.diff_status===s.LL.ADDITION||e.diff_status===s.LL.REMOVAL,i=e.child_diff_statuses&&(e.child_diff_statuses[s.LL.ADDITION]||e.child_diff_statuses[s.LL.REMOVAL]);if(t||i)return"Attention required";let n=e.diff_status===s.LL.CLASSIFICATION_QUEUED||e.diff_status===s.LL.CLASSIFYING,r=e.child_diff_statuses&&(e.child_diff_statuses[s.LL.CLASSIFICATION_QUEUED]||e.child_diff_statuses[s.LL.CLASSIFYING]);if(n||r)return"Classifying";let l=e.diff_status===s.LL.CLASSIFICATION_ADDITION||e.diff_status===s.LL.CLASSIFICATION_UPDATE,c=e.child_diff_statuses&&(e.child_diff_statuses[s.LL.CLASSIFICATION_ADDITION]||e.child_diff_statuses[s.LL.CLASSIFICATION_UPDATE]);return l||c?"In review":"Approved"}}}]);
|
fides/ui-build/static/admin/_next/static/chunks/{79-8e060d36d36c752c.js → 79-f9b948ebb186900f.js}
RENAMED
@@ -1 +1 @@
|
|
1
|
-
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[79],{56358:function(e,t,n){n.d(t,{q:function(){return i}});var s=n(24246);let i=(0,n(77181).IUT)({displayName:"TrashCanOutlineIcon",viewBox:"0 0 11 12",path:(0,s.jsx)("path",{d:"M4.5166 1.60859L4.1084 2.21875H7.22363L6.81543 1.60859C6.7832 1.56133 6.72949 1.53125 6.67148 1.53125H4.6584C4.60039 1.53125 4.54668 1.55918 4.51445 1.60859H4.5166ZM7.6748 1.03711L8.46328 2.21875H8.75977H9.79102H9.96289C10.2486 2.21875 10.4785 2.44863 10.4785 2.73438C10.4785 3.02012 10.2486 3.25 9.96289 3.25H9.79102V9.78125C9.79102 10.7309 9.02188 11.5 8.07227 11.5H3.25977C2.31016 11.5 1.54102 10.7309 1.54102 9.78125V3.25H1.36914C1.0834 3.25 0.853516 3.02012 0.853516 2.73438C0.853516 2.44863 1.0834 2.21875 1.36914 2.21875H1.54102H2.57227H2.86875L3.65723 1.03496C3.88066 0.701953 4.25664 0.5 4.6584 0.5H6.67148C7.07324 0.5 7.44922 0.701953 7.67266 1.03496L7.6748 1.03711ZM2.57227 3.25V9.78125C2.57227 10.1615 2.87949 10.4688 3.25977 10.4688H8.07227C8.45254 10.4688 8.75977 10.1615 8.75977 9.78125V3.25H2.57227ZM4.29102 4.625V9.09375C4.29102 9.28281 4.13633 9.4375 3.94727 9.4375C3.7582 9.4375 3.60352 9.28281 3.60352 9.09375V4.625C3.60352 4.43594 3.7582 4.28125 3.94727 4.28125C4.13633 4.28125 4.29102 4.43594 4.29102 4.625ZM6.00977 4.625V9.09375C6.00977 9.28281 5.85508 9.4375 5.66602 9.4375C5.47695 9.4375 5.32227 9.28281 5.32227 9.09375V4.625C5.32227 4.43594 5.47695 4.28125 5.66602 4.28125C5.85508 4.28125 6.00977 4.43594 6.00977 4.625ZM7.72852 4.625V9.09375C7.72852 9.28281 7.57383 9.4375 7.38477 9.4375C7.1957 9.4375 7.04102 9.28281 7.04102 9.09375V4.625C7.04102 4.43594 7.1957 4.28125 7.38477 4.28125C7.57383 4.28125 7.72852 4.43594 7.72852 4.625Z",fill:"currentColor"})})},77213:function(e,t,n){n.d(t,{Z:function(){return u}});var s=n(24246),i=n(77181),r=n(88038),a=n.n(r),o=n(86677);n(27378);var l=n(25980),c=n(90867),d=n(77830),p=()=>{let e=(0,o.useRouter)();return(0,s.jsx)(i.xuv,{bg:"gray.50",border:"1px solid",borderColor:"blue.400",borderRadius:"md",justifyContent:"space-between",p:5,mb:5,mt:5,children:(0,s.jsxs)(i.xuv,{children:[(0,s.jsxs)(i.Kqy,{direction:{base:"column",sm:"row"},justifyContent:"space-between",children:[(0,s.jsx)(i.xvT,{fontWeight:"semibold",children:"Configure your storage and messaging provider"}),(0,s.jsx)(i.wpx,{onClick:()=>{e.push(d.fz)},children:"Configure"})]}),(0,s.jsxs)(i.xvT,{children:["Before Fides can process your privacy requests we need two simple steps to configure your storage and email client."," "]})]})})},u=e=>{let{children:t,title:n,padded:r=!0,mainProps:d}=e,u=(0,l.hz)(),x=(0,o.useRouter)(),h="/privacy-requests"===x.pathname||"/datastore-connection"===x.pathname,g=!(u.flags.privacyRequestsConfiguration&&h),{data:m}=(0,c.JE)(void 0,{skip:g}),{data:j}=(0,c.PW)(void 0,{skip:g}),f=u.flags.privacyRequestsConfiguration&&(!m||!j)&&h;return(0,s.jsxs)(i.kCb,{"data-testid":n,direction:"column",h:"100vh",children:[(0,s.jsxs)(a(),{children:[(0,s.jsxs)("title",{children:["Fides Admin UI - ",n]}),(0,s.jsx)("meta",{name:"description",content:"Privacy Engineering Platform"}),(0,s.jsx)("link",{rel:"icon",href:"/favicon.ico"})]}),(0,s.jsxs)(i.kCb,{as:"main",direction:"column",py:r?6:0,px:r?10:0,h:r?"calc(100% - 48px)":"full",flex:1,minWidth:0,overflow:"auto",...d,children:[f?(0,s.jsx)(p,{}):null,t]})]})}},58754:function(e,t,n){var s=n(24246),i=n(77181),r=n(70788);t.Z=e=>{let{heading:t,breadcrumbItems:n,isSticky:a=!0,children:o,rightContent:l,style:c,...d}=e;return(0,s.jsxs)("div",{...d,style:a?{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,s.jsxs)(i.jqI,{justify:"space-between",children:["string"==typeof t?(0,s.jsx)(i.X6q,{className:n||o?"pb-4":void 0,fontSize:"2xl","data-testid":"page-heading",children:t}):t,l&&(0,s.jsx)("div",{"data-testid":"page-header-right-content",children:l})]}),!!n&&(0,s.jsx)(r.m,{className:o?"pb-4":void 0,items:n,"data-testid":"page-breadcrumb"}),o]})}},19904:function(e,t,n){n.d(t,{Tg:function(){return a}});var s=n(24246),i=n(16134),r=n(31793);let a=e=>(0,i.C)(r.uu).filter(t=>e.includes(t)).length>0;t.ZP=e=>{let{scopes:t,children:n}=e;return a(t)?(0,s.jsx)(s.Fragment,{children:n}):null}},70788:function(e,t,n){n.d(t,{m:function(){return c}});var s=n(24246),i=n(77181),r=n(79894),a=n.n(r),o=n(27378);let{Text:l}=i.AntTypography,c=e=>{let{items:t,...n}=e,r=(0,o.useMemo)(()=>null==t?void 0:t.map((e,n)=>{let r=n===t.length-1,o={...e},c=o.onClick&&!o.href;return("string"==typeof o.title&&(o.title=(0,s.jsx)(l,{style:{color:"inherit",maxWidth:r?void 0:400},ellipsis:!r,children:o.title})),c)?o.title=(0,s.jsx)(i.wpx,{type:"text",size:"small",icon:o.icon,onClick:o.onClick,className:"ant-breadcrumb-link -mt-px px-1 text-inherit",children:o.title}):(o.icon&&(o.title=(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("span",{className:"anticon align-text-bottom",children:o.icon}),o.title]})),o.href&&o.title&&(o.title=(0,s.jsx)(a(),{href:o.href,className:"ant-breadcrumb-link",children:o.title}),delete o.href)),o}),[t]);return(0,s.jsx)(i.zrq,{items:r,...n})}},3642:function(e,t,n){var s=n(24246),i=n(77181),r=n(86677),a=n.n(r),o=n(27378),l=n(812),c=n(58452),d=n(77830),p=n(19904),u=n(46628),x=n(98795),h=n(28120);t.Z=e=>{let{property:t,triggerComponent:n}=e,r=(0,i.pmc)(),g=(0,i.qY0)(),[m]=(0,x.YW)(),j=t.experiences.length>0,f=async()=>{g.onClose();let e=await m(t.id);if((0,l.D4)(e)){r((0,u.Vo)((0,l.e$)(e.error)));return}a().push("".concat(d.ru)),r((0,u.t5)("Property ".concat(t.name," deleted successfully")))};return(0,s.jsxs)(p.ZP,{scopes:[h.Sh.PROPERTY_DELETE],children:[(0,s.jsx)(i.ua7,{label:"All of the experiences on this property must be unlinked before the property can be deleted.",placement:"right",isDisabled:!j,children:(0,s.jsx)("span",{children:o.cloneElement(n,{onClick:e=>{e.stopPropagation(),j||g.onOpen()},disabled:j})})}),(0,s.jsx)(c.Z,{isOpen:g.isOpen,onClose:g.onClose,onConfirm:f,title:"Delete ".concat(t.name),message:(0,s.jsxs)(i.xvT,{color:"gray.500",children:["You are about to delete property ",t.name,". This action is not reversible and will result in ",t.name," no longer being available for your data governance. Are you sure you want to proceed?"]}),continueButtonText:"Ok",isCentered:!0,icon:(0,s.jsx)(i.aNP,{})})]})}},25783:function(e,t,n){n.d(t,{V:function(){return M}});var s=n(24246),i=n(92222),r=n(59003),a=n(14481),o=n(77181),l=n(98784),c=n.n(l),d=n(86677),p=n(27378),u=n(77830),x=n(19904),h=n(32885),g=n(98795),m=n(28120),j=e=>{let{buttonLabel:t,buttonProps:n}=e,i=(0,d.useRouter)();return(0,s.jsx)(o.wpx,{onClick:()=>i.push(u.B9),"data-testid":"add-property-button",...n,children:t})},f=n(56358),y=n(88340),C=n(25980),b=n(14048);let v="{privacy-center-hostname-and-path}",w="{property-unique-id}",P='<script src="https://'.concat(v,"/fides.js?property_id=").concat(w,'"></script>'),R="<script>Fides.gtm()</script>";var T=e=>{let{property:t}=e,n=(0,o.qY0)(),i=(0,p.useRef)(null),{fidesCloud:r}=(0,C.hz)(),{data:a,isSuccess:l}=(0,h.Vh)(void 0,{skip:!r}),c=(0,p.useMemo)(()=>{let e=P.replace(w,t.id.toString());return r&&l&&(null==a?void 0:a.privacy_center_url)&&e.replace(v,a.privacy_center_url),e},[null==a?void 0:a.privacy_center_url,r,l,t]);return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(o.wpx,{"aria-label":"Install property",size:"small",className:"mr-[10px]",icon:(0,s.jsx)(b.A5,{}),onClick:e=>{e.stopPropagation(),n.onOpen()}}),(0,s.jsxs)(o.u_l,{isOpen:n.isOpen,onClose:n.onClose,isCentered:!0,size:"xl",initialFocusRef:i,children:[(0,s.jsx)(o.ZAr,{}),(0,s.jsxs)(o.hzk,{"data-testid":"copy-js-tag-modal",children:[(0,s.jsx)(o.xBx,{tabIndex:-1,ref:i,pb:0,children:"Install Fides Consent Manager"}),(0,s.jsx)(o.fef,{pt:3,pb:6,fontSize:"14px",fontWeight:500,children:(0,s.jsxs)(o.Kqy,{spacing:3,children:[(0,s.jsxs)(o.xvT,{children:["Copy the code below and paste it onto every page of the"," ",t.name," property."]}),(0,s.jsxs)(o.xvT,{children:["1. Paste this code as high in the ",(0,s.jsx)("b",{children:"<head>"})," of the page as possible:"]}),(0,s.jsxs)(o.EKh,{display:"flex",justifyContent:"space-between",alignItems:"top",p:0,children:[(0,s.jsx)(o.xvT,{p:4,children:c}),(0,s.jsx)(y.Z,{copyText:c})]}),(0,s.jsx)(o.xvT,{children:"2. Optionally, you can enable Google Tag Manager for managing tags on your website by including the script tag below along with the Fides.js tag. Place it below the Fides.js script tag."}),(0,s.jsxs)(o.EKh,{display:"flex",justifyContent:"space-between",alignItems:"center",p:0,children:[(0,s.jsx)(o.xvT,{p:4,children:R}),(0,s.jsx)(y.Z,{copyText:R})]}),(0,s.jsxs)(o.xvT,{children:["For more information about adding a JavaScript tag to your website, please visit"," ",(0,s.jsx)(o.rUS,{color:"complimentary.500",href:"https://docs.ethyca.com/tutorials/consent-management-configuration/install-fides#install-fidesjs-script-on-your-website",isExternal:!0,children:"docs.ethyca.com"})]})]})})]})]})]})},k=n(3642),E=e=>{let{property:t}=e,n=(0,d.useRouter)(),i=()=>{n.push("".concat(u.ru,"/").concat(t.id))};return(0,s.jsxs)(o.xuv,{py:2,children:[(0,s.jsx)(T,{property:t}),(0,s.jsx)(x.ZP,{scopes:[m.Sh.PROPERTY_UPDATE],children:(0,s.jsx)(o.wpx,{"aria-label":"Edit property","data-testid":"edit-property-button",size:"small",className:"mr-[10px]",icon:(0,s.jsx)(o.dY8,{}),onClick:e=>{e.stopPropagation(),i()}})}),(0,s.jsx)(k.Z,{property:t,triggerComponent:(0,s.jsx)(o.wpx,{"aria-label":"Delete property","data-testid":"delete-property-button",size:"small",className:"mr-[10px]",icon:(0,s.jsx)(f.q,{})})})]})};let z=(0,i.Cl)(),Z={items:[],total:0,page:1,size:25,pages:1},H=()=>(0,s.jsx)(o.gCW,{mt:6,p:10,spacing:4,borderRadius:"base",maxW:"70%","data-testid":"no-results-notice",alignSelf:"center",margin:"auto",children:(0,s.jsxs)(o.gCW,{children:[(0,s.jsx)(o.xvT,{fontSize:"md",fontWeight:"600",children:"No properties found."}),(0,s.jsxs)(x.ZP,{scopes:[m.Sh.PROPERTY_CREATE],children:[(0,s.jsx)(o.xvT,{fontSize:"sm",children:"Click “Add property” to add your first property to Fides."}),(0,s.jsx)(j,{buttonLabel:"Add property",buttonProps:{type:"primary"}})]})]})}),M=()=>{let{isLoading:e}=(0,h.x8)(),t=(0,x.Tg)([m.Sh.PROPERTY_UPDATE]),{PAGE_SIZES:n,pageSize:l,setPageSize:f,onPreviousPageClick:y,isPreviousPageDisabled:C,onNextPageClick:b,isNextPageDisabled:v,startRange:w,endRange:P,pageIndex:R,setTotalPages:T,resetPageIndexToDefault:k}=(0,a.oi)(),M=(0,d.useRouter)(),[S,V]=(0,p.useState)(),_=(0,p.useCallback)(e=>{k(),V(e)},[k,V]),{isFetching:q,isLoading:N,data:O}=(0,g.gz)({page:R,size:l,search:S}),{items:A,total:F,pages:I}=(0,p.useMemo)(()=>O||Z,[O]);(0,p.useEffect)(()=>{T(I)},[I,T]);let L=(0,p.useMemo)(()=>[z.accessor(e=>e.name,{id:"name",cell:e=>(0,s.jsx)(a.G3,{value:e.getValue()}),header:e=>(0,s.jsx)(a.Rr,{value:"Property",...e})}),z.accessor(e=>e.type,{id:"type",cell:e=>(0,s.jsx)(a.G3,{value:c().capitalize(e.getValue())}),header:e=>(0,s.jsx)(a.Rr,{value:"Type",...e})}),z.accessor(e=>e.experiences.map(e=>e.name),{id:"experiences",cell:e=>(0,s.jsx)(a.WP,{suffix:"experiences",value:e.getValue(),...e}),header:e=>(0,s.jsx)(a.Rr,{value:"Experience",...e}),meta:{showHeaderMenu:!0}}),z.display({id:"actions",header:"Actions",cell:e=>{let{row:t}=e;return(0,s.jsx)(E,{property:t.original})}})],[]),W=(0,r.b7)({getCoreRowModel:(0,i.sC)(),getGroupedRowModel:(0,i.qe)(),getExpandedRowModel:(0,i.rV)(),columns:L,manualPagination:!0,data:A,state:{expanded:!0},columnResizeMode:"onChange"});return N||e?(0,s.jsx)(a.I4,{rowHeight:36,numRows:15}):(0,s.jsx)("div",{children:(0,s.jsxs)(o.kCb,{flex:1,direction:"column",overflow:"auto",children:[(0,s.jsxs)(a.Q$,{children:[(0,s.jsx)(a.HO,{globalFilter:S,setGlobalFilter:_,placeholder:"Search property"}),(0,s.jsx)(o.Ugi,{alignItems:"center",spacing:4,children:(0,s.jsx)(x.ZP,{scopes:[m.Sh.PROPERTY_CREATE],children:(0,s.jsx)(j,{buttonLabel:"Add property"})})})]}),(0,s.jsx)(a.ZK,{tableInstance:W,onRowClick:e=>{t&&M.push({pathname:u.D3,query:{id:e.id}})},emptyTableNotice:(0,s.jsx)(H,{})}),(0,s.jsx)(a.s8,{totalRows:F||0,pageSizes:n,setPageSize:f,onPreviousPageClick:y,isPreviousPageDisabled:C||q,onNextPageClick:b,isNextPageDisabled:v||q,startRange:w,endRange:P})]})})}}}]);
|
1
|
+
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[79],{56358:function(e,t,n){n.d(t,{q:function(){return i}});var s=n(24246);let i=(0,n(77181).IUT)({displayName:"TrashCanOutlineIcon",viewBox:"0 0 11 12",path:(0,s.jsx)("path",{d:"M4.5166 1.60859L4.1084 2.21875H7.22363L6.81543 1.60859C6.7832 1.56133 6.72949 1.53125 6.67148 1.53125H4.6584C4.60039 1.53125 4.54668 1.55918 4.51445 1.60859H4.5166ZM7.6748 1.03711L8.46328 2.21875H8.75977H9.79102H9.96289C10.2486 2.21875 10.4785 2.44863 10.4785 2.73438C10.4785 3.02012 10.2486 3.25 9.96289 3.25H9.79102V9.78125C9.79102 10.7309 9.02188 11.5 8.07227 11.5H3.25977C2.31016 11.5 1.54102 10.7309 1.54102 9.78125V3.25H1.36914C1.0834 3.25 0.853516 3.02012 0.853516 2.73438C0.853516 2.44863 1.0834 2.21875 1.36914 2.21875H1.54102H2.57227H2.86875L3.65723 1.03496C3.88066 0.701953 4.25664 0.5 4.6584 0.5H6.67148C7.07324 0.5 7.44922 0.701953 7.67266 1.03496L7.6748 1.03711ZM2.57227 3.25V9.78125C2.57227 10.1615 2.87949 10.4688 3.25977 10.4688H8.07227C8.45254 10.4688 8.75977 10.1615 8.75977 9.78125V3.25H2.57227ZM4.29102 4.625V9.09375C4.29102 9.28281 4.13633 9.4375 3.94727 9.4375C3.7582 9.4375 3.60352 9.28281 3.60352 9.09375V4.625C3.60352 4.43594 3.7582 4.28125 3.94727 4.28125C4.13633 4.28125 4.29102 4.43594 4.29102 4.625ZM6.00977 4.625V9.09375C6.00977 9.28281 5.85508 9.4375 5.66602 9.4375C5.47695 9.4375 5.32227 9.28281 5.32227 9.09375V4.625C5.32227 4.43594 5.47695 4.28125 5.66602 4.28125C5.85508 4.28125 6.00977 4.43594 6.00977 4.625ZM7.72852 4.625V9.09375C7.72852 9.28281 7.57383 9.4375 7.38477 9.4375C7.1957 9.4375 7.04102 9.28281 7.04102 9.09375V4.625C7.04102 4.43594 7.1957 4.28125 7.38477 4.28125C7.57383 4.28125 7.72852 4.43594 7.72852 4.625Z",fill:"currentColor"})})},77213:function(e,t,n){n.d(t,{Z:function(){return u}});var s=n(24246),i=n(77181),r=n(88038),a=n.n(r),o=n(86677);n(27378);var l=n(25980),c=n(90867),d=n(77830),p=()=>{let e=(0,o.useRouter)();return(0,s.jsx)(i.xuv,{bg:"gray.50",border:"1px solid",borderColor:"blue.400",borderRadius:"md",justifyContent:"space-between",p:5,mb:5,mt:5,children:(0,s.jsxs)(i.xuv,{children:[(0,s.jsxs)(i.Kqy,{direction:{base:"column",sm:"row"},justifyContent:"space-between",children:[(0,s.jsx)(i.xvT,{fontWeight:"semibold",children:"Configure your storage and messaging provider"}),(0,s.jsx)(i.wpx,{onClick:()=>{e.push(d.fz)},children:"Configure"})]}),(0,s.jsxs)(i.xvT,{children:["Before Fides can process your privacy requests we need two simple steps to configure your storage and email client."," "]})]})})},u=e=>{let{children:t,title:n,padded:r=!0,mainProps:d}=e,u=(0,l.hz)(),x=(0,o.useRouter)(),h="/privacy-requests"===x.pathname||"/datastore-connection"===x.pathname,g=!(u.flags.privacyRequestsConfiguration&&h),{data:m}=(0,c.JE)(void 0,{skip:g}),{data:j}=(0,c.PW)(void 0,{skip:g}),f=u.flags.privacyRequestsConfiguration&&(!m||!j)&&h;return(0,s.jsxs)(i.kCb,{"data-testid":n,direction:"column",h:"100vh",children:[(0,s.jsxs)(a(),{children:[(0,s.jsxs)("title",{children:["Fides Admin UI - ",n]}),(0,s.jsx)("meta",{name:"description",content:"Privacy Engineering Platform"}),(0,s.jsx)("link",{rel:"icon",href:"/favicon.ico"})]}),(0,s.jsxs)(i.kCb,{as:"main",direction:"column",py:r?6:0,px:r?10:0,h:r?"calc(100% - 48px)":"full",flex:1,minWidth:0,overflow:"auto",...d,children:[f?(0,s.jsx)(p,{}):null,t]})]})}},58754:function(e,t,n){var s=n(24246),i=n(77181),r=n(70788);t.Z=e=>{let{heading:t,breadcrumbItems:n,isSticky:a=!0,children:o,rightContent:l,style:c,...d}=e;return(0,s.jsxs)("div",{...d,style:a?{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,s.jsxs)(i.jqI,{justify:"space-between",children:["string"==typeof t?(0,s.jsx)(i.X6q,{className:n||o?"pb-4":void 0,fontSize:"2xl","data-testid":"page-heading",children:t}):t,l&&(0,s.jsx)("div",{"data-testid":"page-header-right-content",children:l})]}),!!n&&(0,s.jsx)(r.m,{className:o?"pb-4":void 0,items:n,"data-testid":"page-breadcrumb"}),o]})}},19904:function(e,t,n){n.d(t,{Tg:function(){return a}});var s=n(24246),i=n(16134),r=n(31793);let a=e=>(0,i.C)(r.uu).filter(t=>e.includes(t)).length>0;t.ZP=e=>{let{scopes:t,children:n}=e;return a(t)?(0,s.jsx)(s.Fragment,{children:n}):null}},70788:function(e,t,n){n.d(t,{m:function(){return c}});var s=n(24246),i=n(77181),r=n(79894),a=n.n(r),o=n(27378);let{Text:l}=i.AntTypography,c=e=>{let{items:t,...n}=e,r=(0,o.useMemo)(()=>null==t?void 0:t.map((e,n)=>{let r=n===t.length-1,o={...e},c=o.onClick&&!o.href;return("string"==typeof o.title&&(o.title=(0,s.jsx)(l,{style:{color:"inherit",maxWidth:r?void 0:400},ellipsis:!r,children:o.title})),c)?o.title=(0,s.jsx)(i.wpx,{type:"text",size:"small",icon:o.icon,onClick:o.onClick,className:"ant-breadcrumb-link -mt-px px-1 text-inherit",children:o.title}):(o.icon&&(o.title=(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("span",{className:"anticon align-text-bottom",children:o.icon}),o.title]})),o.href&&o.title&&(o.title=(0,s.jsx)(a(),{href:o.href,className:"ant-breadcrumb-link",children:o.title}),delete o.href)),o}),[t]);return(0,s.jsx)(i.zrq,{items:r,...n})}},3642:function(e,t,n){var s=n(24246),i=n(77181),r=n(86677),a=n.n(r),o=n(27378),l=n(812),c=n(58452),d=n(77830),p=n(19904),u=n(46628),x=n(98795),h=n(21702);t.Z=e=>{let{property:t,triggerComponent:n}=e,r=(0,i.pmc)(),g=(0,i.qY0)(),[m]=(0,x.YW)(),j=t.experiences.length>0,f=async()=>{g.onClose();let e=await m(t.id);if((0,l.D4)(e)){r((0,u.Vo)((0,l.e$)(e.error)));return}a().push("".concat(d.ru)),r((0,u.t5)("Property ".concat(t.name," deleted successfully")))};return(0,s.jsxs)(p.ZP,{scopes:[h.Sh.PROPERTY_DELETE],children:[(0,s.jsx)(i.ua7,{label:"All of the experiences on this property must be unlinked before the property can be deleted.",placement:"right",isDisabled:!j,children:(0,s.jsx)("span",{children:o.cloneElement(n,{onClick:e=>{e.stopPropagation(),j||g.onOpen()},disabled:j})})}),(0,s.jsx)(c.Z,{isOpen:g.isOpen,onClose:g.onClose,onConfirm:f,title:"Delete ".concat(t.name),message:(0,s.jsxs)(i.xvT,{color:"gray.500",children:["You are about to delete property ",t.name,". This action is not reversible and will result in ",t.name," no longer being available for your data governance. Are you sure you want to proceed?"]}),continueButtonText:"Ok",isCentered:!0,icon:(0,s.jsx)(i.aNP,{})})]})}},25783:function(e,t,n){n.d(t,{V:function(){return M}});var s=n(24246),i=n(92222),r=n(59003),a=n(14481),o=n(77181),l=n(98784),c=n.n(l),d=n(86677),p=n(27378),u=n(77830),x=n(19904),h=n(32885),g=n(98795),m=n(21702),j=e=>{let{buttonLabel:t,buttonProps:n}=e,i=(0,d.useRouter)();return(0,s.jsx)(o.wpx,{onClick:()=>i.push(u.B9),"data-testid":"add-property-button",...n,children:t})},f=n(56358),y=n(88340),C=n(25980),b=n(14048);let v="{privacy-center-hostname-and-path}",w="{property-unique-id}",P='<script src="https://'.concat(v,"/fides.js?property_id=").concat(w,'"></script>'),R="<script>Fides.gtm()</script>";var T=e=>{let{property:t}=e,n=(0,o.qY0)(),i=(0,p.useRef)(null),{fidesCloud:r}=(0,C.hz)(),{data:a,isSuccess:l}=(0,h.Vh)(void 0,{skip:!r}),c=(0,p.useMemo)(()=>{let e=P.replace(w,t.id.toString());return r&&l&&(null==a?void 0:a.privacy_center_url)&&e.replace(v,a.privacy_center_url),e},[null==a?void 0:a.privacy_center_url,r,l,t]);return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(o.wpx,{"aria-label":"Install property",size:"small",className:"mr-[10px]",icon:(0,s.jsx)(b.A5,{}),onClick:e=>{e.stopPropagation(),n.onOpen()}}),(0,s.jsxs)(o.u_l,{isOpen:n.isOpen,onClose:n.onClose,isCentered:!0,size:"xl",initialFocusRef:i,children:[(0,s.jsx)(o.ZAr,{}),(0,s.jsxs)(o.hzk,{"data-testid":"copy-js-tag-modal",children:[(0,s.jsx)(o.xBx,{tabIndex:-1,ref:i,pb:0,children:"Install Fides Consent Manager"}),(0,s.jsx)(o.fef,{pt:3,pb:6,fontSize:"14px",fontWeight:500,children:(0,s.jsxs)(o.Kqy,{spacing:3,children:[(0,s.jsxs)(o.xvT,{children:["Copy the code below and paste it onto every page of the"," ",t.name," property."]}),(0,s.jsxs)(o.xvT,{children:["1. Paste this code as high in the ",(0,s.jsx)("b",{children:"<head>"})," of the page as possible:"]}),(0,s.jsxs)(o.EKh,{display:"flex",justifyContent:"space-between",alignItems:"top",p:0,children:[(0,s.jsx)(o.xvT,{p:4,children:c}),(0,s.jsx)(y.Z,{copyText:c})]}),(0,s.jsx)(o.xvT,{children:"2. Optionally, you can enable Google Tag Manager for managing tags on your website by including the script tag below along with the Fides.js tag. Place it below the Fides.js script tag."}),(0,s.jsxs)(o.EKh,{display:"flex",justifyContent:"space-between",alignItems:"center",p:0,children:[(0,s.jsx)(o.xvT,{p:4,children:R}),(0,s.jsx)(y.Z,{copyText:R})]}),(0,s.jsxs)(o.xvT,{children:["For more information about adding a JavaScript tag to your website, please visit"," ",(0,s.jsx)(o.rUS,{color:"complimentary.500",href:"https://docs.ethyca.com/tutorials/consent-management-configuration/install-fides#install-fidesjs-script-on-your-website",isExternal:!0,children:"docs.ethyca.com"})]})]})})]})]})]})},k=n(3642),E=e=>{let{property:t}=e,n=(0,d.useRouter)(),i=()=>{n.push("".concat(u.ru,"/").concat(t.id))};return(0,s.jsxs)(o.xuv,{py:2,children:[(0,s.jsx)(T,{property:t}),(0,s.jsx)(x.ZP,{scopes:[m.Sh.PROPERTY_UPDATE],children:(0,s.jsx)(o.wpx,{"aria-label":"Edit property","data-testid":"edit-property-button",size:"small",className:"mr-[10px]",icon:(0,s.jsx)(o.dY8,{}),onClick:e=>{e.stopPropagation(),i()}})}),(0,s.jsx)(k.Z,{property:t,triggerComponent:(0,s.jsx)(o.wpx,{"aria-label":"Delete property","data-testid":"delete-property-button",size:"small",className:"mr-[10px]",icon:(0,s.jsx)(f.q,{})})})]})};let z=(0,i.Cl)(),Z={items:[],total:0,page:1,size:25,pages:1},H=()=>(0,s.jsx)(o.gCW,{mt:6,p:10,spacing:4,borderRadius:"base",maxW:"70%","data-testid":"no-results-notice",alignSelf:"center",margin:"auto",children:(0,s.jsxs)(o.gCW,{children:[(0,s.jsx)(o.xvT,{fontSize:"md",fontWeight:"600",children:"No properties found."}),(0,s.jsxs)(x.ZP,{scopes:[m.Sh.PROPERTY_CREATE],children:[(0,s.jsx)(o.xvT,{fontSize:"sm",children:"Click “Add property” to add your first property to Fides."}),(0,s.jsx)(j,{buttonLabel:"Add property",buttonProps:{type:"primary"}})]})]})}),M=()=>{let{isLoading:e}=(0,h.x8)(),t=(0,x.Tg)([m.Sh.PROPERTY_UPDATE]),{PAGE_SIZES:n,pageSize:l,setPageSize:f,onPreviousPageClick:y,isPreviousPageDisabled:C,onNextPageClick:b,isNextPageDisabled:v,startRange:w,endRange:P,pageIndex:R,setTotalPages:T,resetPageIndexToDefault:k}=(0,a.oi)(),M=(0,d.useRouter)(),[S,V]=(0,p.useState)(),_=(0,p.useCallback)(e=>{k(),V(e)},[k,V]),{isFetching:q,isLoading:N,data:O}=(0,g.gz)({page:R,size:l,search:S}),{items:A,total:F,pages:I}=(0,p.useMemo)(()=>O||Z,[O]);(0,p.useEffect)(()=>{T(I)},[I,T]);let L=(0,p.useMemo)(()=>[z.accessor(e=>e.name,{id:"name",cell:e=>(0,s.jsx)(a.G3,{value:e.getValue()}),header:e=>(0,s.jsx)(a.Rr,{value:"Property",...e})}),z.accessor(e=>e.type,{id:"type",cell:e=>(0,s.jsx)(a.G3,{value:c().capitalize(e.getValue())}),header:e=>(0,s.jsx)(a.Rr,{value:"Type",...e})}),z.accessor(e=>e.experiences.map(e=>e.name),{id:"experiences",cell:e=>(0,s.jsx)(a.WP,{suffix:"experiences",value:e.getValue(),...e}),header:e=>(0,s.jsx)(a.Rr,{value:"Experience",...e}),meta:{showHeaderMenu:!0}}),z.display({id:"actions",header:"Actions",cell:e=>{let{row:t}=e;return(0,s.jsx)(E,{property:t.original})}})],[]),W=(0,r.b7)({getCoreRowModel:(0,i.sC)(),getGroupedRowModel:(0,i.qe)(),getExpandedRowModel:(0,i.rV)(),columns:L,manualPagination:!0,data:A,state:{expanded:!0},columnResizeMode:"onChange"});return N||e?(0,s.jsx)(a.I4,{rowHeight:36,numRows:15}):(0,s.jsx)("div",{children:(0,s.jsxs)(o.kCb,{flex:1,direction:"column",overflow:"auto",children:[(0,s.jsxs)(a.Q$,{children:[(0,s.jsx)(a.HO,{globalFilter:S,setGlobalFilter:_,placeholder:"Search property"}),(0,s.jsx)(o.Ugi,{alignItems:"center",spacing:4,children:(0,s.jsx)(x.ZP,{scopes:[m.Sh.PROPERTY_CREATE],children:(0,s.jsx)(j,{buttonLabel:"Add property"})})})]}),(0,s.jsx)(a.ZK,{tableInstance:W,onRowClick:e=>{t&&M.push({pathname:u.D3,query:{id:e.id}})},emptyTableNotice:(0,s.jsx)(H,{})}),(0,s.jsx)(a.s8,{totalRows:F||0,pageSizes:n,setPageSize:f,onPreviousPageClick:y,isPreviousPageDisabled:C||q,onNextPageClick:b,isNextPageDisabled:v||q,startRange:w,endRange:P})]})})}}}]);
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7980],{58754:function(e,t,i){var l=i(24246),n=i(77181),r=i(70788);t.Z=e=>{let{heading:t,breadcrumbItems:i,isSticky:a=!0,children:s,rightContent:o,style:d,...u}=e;return(0,l.jsxs)("div",{...u,style:a?{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,l.jsxs)(n.jqI,{justify:"space-between",children:["string"==typeof t?(0,l.jsx)(n.X6q,{className:i||s?"pb-4":void 0,fontSize:"2xl","data-testid":"page-heading",children:t}):t,o&&(0,l.jsx)("div",{"data-testid":"page-header-right-content",children:o})]}),!!i&&(0,l.jsx)(r.m,{className:s?"pb-4":void 0,items:i,"data-testid":"page-breadcrumb"}),s]})}},94799:function(e,t,i){i.d(t,{k:function(){return r}});var l=i(76649);let n=e=>(0,l.Ln)({id:"string"},e),r=e=>(null!=e?e:[]).filter(n)},30320:function(e,t,i){i.d(t,{m:function(){return o}});var l=i(27378),n=i(25980),r=i(14047),a=i(32885),s=i(94799);let o=e=>{let{resourceFidesKey:t,resourceType:i}=e,{errorAlert:o}=(0,r.V)(),{plus:d}=(0,n.hz)(),u=(0,l.useMemo)(()=>null!=t?t:"",[]),c=(0,a.YU)(!0,{skip:!d}),p=(0,a.VN)(i,{skip:!d}),{data:m,isLoading:x,error:h,isError:v}=(0,a.PV)(null!=t?t:"",{skip:""!==u&&!(d&&u)}),[f]=(0,a._D)(),g=c.isLoading||p.isLoading||x,j=(0,l.useMemo)(()=>new Map((0,s.k)(c.data).map(e=>{var t;return[e.id,{...e,options:(null!==(t=e.allowed_values)&&void 0!==t?t:[]).map(e=>({value:e,label:e}))}]})),[c.data]),_=(0,l.useMemo)(()=>{var e;return null===(e=p.data)||void 0===e?void 0:e.filter(e=>e.active)},[p.data]),C=(0,l.useMemo)(()=>new Map((0,s.k)(_).map(e=>[e.id,e])),[_]),b=(0,l.useMemo)(()=>v&&(null==h?void 0:h.status)===404?new Map:new Map((0,s.k)(m).map(e=>[e.custom_field_definition_id,e])),[m,v,h]),S=(0,l.useMemo)(()=>{let e=[...C.keys()];return e.sort(),e},[C]),y=(0,l.useMemo)(()=>{let e={};return _&&b&&_.forEach(t=>{let i=b.get(t.id||"");i&&(t.allow_list_id&&"string[]"===t.field_type?e[i.custom_field_definition_id]=i.value:e[i.custom_field_definition_id]=i.value.toString())}),e},[_,b]),T=(0,l.useCallback)(async e=>{if(!d)return;let l="fides_key"in e&&""!==e.fides_key?e.fides_key:t;if(!l)return;let{customFieldValues:n}=e;if(!n||0===Object.keys(n).length)return;let r=[],a=[];S.forEach(e=>{let t=b.get(e),i=n[e];void 0===i||""===i||Array.isArray(i)&&0===i.length?(null==t?void 0:t.id)&&a.push(t.id):r.push({custom_field_definition_id:e,resource_id:l,id:null==t?void 0:t.id,value:i})});try{await f({resource_type:i,resource_id:l,upsert:r,delete:a})}catch(e){o("One or more custom fields have failed to save, please try again."),console.error(e)}},[d,b,o,t,S,f,i]);return{customFieldValues:y,definitionIdToCustomField:b,idToAllowListWithOptions:j,idToCustomFieldDefinition:C,isEnabled:d,isLoading:g,sortedCustomFieldDefinitionIds:S,upsertCustomFields:T}}},95346:function(e,t,i){i.d(t,{uc:function(){return f},Hn:function(){return o},Uv:function(){return a},C7:function(){return d},mZ:function(){return v.m}});var l,n,r,a,s=i(
|
1
|
+
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7980],{58754:function(e,t,i){var l=i(24246),n=i(77181),r=i(70788);t.Z=e=>{let{heading:t,breadcrumbItems:i,isSticky:a=!0,children:s,rightContent:o,style:d,...u}=e;return(0,l.jsxs)("div",{...u,style:a?{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,l.jsxs)(n.jqI,{justify:"space-between",children:["string"==typeof t?(0,l.jsx)(n.X6q,{className:i||s?"pb-4":void 0,fontSize:"2xl","data-testid":"page-heading",children:t}):t,o&&(0,l.jsx)("div",{"data-testid":"page-header-right-content",children:o})]}),!!i&&(0,l.jsx)(r.m,{className:s?"pb-4":void 0,items:i,"data-testid":"page-breadcrumb"}),s]})}},94799:function(e,t,i){i.d(t,{k:function(){return r}});var l=i(76649);let n=e=>(0,l.Ln)({id:"string"},e),r=e=>(null!=e?e:[]).filter(n)},30320:function(e,t,i){i.d(t,{m:function(){return o}});var l=i(27378),n=i(25980),r=i(14047),a=i(32885),s=i(94799);let o=e=>{let{resourceFidesKey:t,resourceType:i}=e,{errorAlert:o}=(0,r.V)(),{plus:d}=(0,n.hz)(),u=(0,l.useMemo)(()=>null!=t?t:"",[]),c=(0,a.YU)(!0,{skip:!d}),p=(0,a.VN)(i,{skip:!d}),{data:m,isLoading:x,error:h,isError:v}=(0,a.PV)(null!=t?t:"",{skip:""!==u&&!(d&&u)}),[f]=(0,a._D)(),g=c.isLoading||p.isLoading||x,j=(0,l.useMemo)(()=>new Map((0,s.k)(c.data).map(e=>{var t;return[e.id,{...e,options:(null!==(t=e.allowed_values)&&void 0!==t?t:[]).map(e=>({value:e,label:e}))}]})),[c.data]),_=(0,l.useMemo)(()=>{var e;return null===(e=p.data)||void 0===e?void 0:e.filter(e=>e.active)},[p.data]),C=(0,l.useMemo)(()=>new Map((0,s.k)(_).map(e=>[e.id,e])),[_]),b=(0,l.useMemo)(()=>v&&(null==h?void 0:h.status)===404?new Map:new Map((0,s.k)(m).map(e=>[e.custom_field_definition_id,e])),[m,v,h]),S=(0,l.useMemo)(()=>{let e=[...C.keys()];return e.sort(),e},[C]),y=(0,l.useMemo)(()=>{let e={};return _&&b&&_.forEach(t=>{let i=b.get(t.id||"");i&&(t.allow_list_id&&"string[]"===t.field_type?e[i.custom_field_definition_id]=i.value:e[i.custom_field_definition_id]=i.value.toString())}),e},[_,b]),T=(0,l.useCallback)(async e=>{if(!d)return;let l="fides_key"in e&&""!==e.fides_key?e.fides_key:t;if(!l)return;let{customFieldValues:n}=e;if(!n||0===Object.keys(n).length)return;let r=[],a=[];S.forEach(e=>{let t=b.get(e),i=n[e];void 0===i||""===i||Array.isArray(i)&&0===i.length?(null==t?void 0:t.id)&&a.push(t.id):r.push({custom_field_definition_id:e,resource_id:l,id:null==t?void 0:t.id,value:i})});try{await f({resource_type:i,resource_id:l,upsert:r,delete:a})}catch(e){o("One or more custom fields have failed to save, please try again."),console.error(e)}},[d,b,o,t,S,f,i]);return{customFieldValues:y,definitionIdToCustomField:b,idToAllowListWithOptions:j,idToCustomFieldDefinition:C,isEnabled:d,isLoading:g,sortedCustomFieldDefinitionIds:S,upsertCustomFields:T}}},95346:function(e,t,i){i.d(t,{uc:function(){return f},Hn:function(){return o},Uv:function(){return a},C7:function(){return d},mZ:function(){return v.m}});var l,n,r,a,s=i(21702);(l=r||(r={}))[l.CREATE_CUSTOM_FIELDS=0]="CREATE_CUSTOM_FIELDS",l[l.CREATE_CUSTOM_LISTS=1]="CREATE_CUSTOM_LISTS",l[l.CHOOSE_FROM_LIBRARY=2]="CHOOSE_FROM_LIBRARY",s.AL.STRING,s.AL.STRING_,(n=a||(a={})).SINGLE_SELECT="singleSelect",n.MULTIPLE_SELECT="multipleSelect",n.OPEN_TEXT="openText";let o=[{label:"Single select",value:"singleSelect"},{label:"Multiple select",value:"multipleSelect"},{label:"Open Text",value:"openText"}],d=[{label:"taxonomy:".concat(s.P6.DATA_CATEGORY),value:s.P6.DATA_CATEGORY},{label:"taxonomy:".concat(s.P6.DATA_SUBJECT),value:s.P6.DATA_SUBJECT},{label:"taxonomy:".concat(s.P6.DATA_USE),value:s.P6.DATA_USE},{label:"".concat(s.P6.SYSTEM,":information"),value:s.P6.SYSTEM},{label:"system:data use",value:s.P6.PRIVACY_DECLARATION}];var u=i(24246),c=i(77181),p=i(34090),m=i(30234),x=i(97181),h=i(40324),v=i(30320);let f=e=>{let{resourceFidesKey:t,resourceType:i}=e,{idToAllowListWithOptions:l,idToCustomFieldDefinition:n,isEnabled:r,isLoading:a,sortedCustomFieldDefinitionIds:o}=(0,v.m)({resourceFidesKey:t,resourceType:i});return r&&0!==o.length?(0,u.jsx)(m.Z,{heading:"Custom fields",children:(0,u.jsx)(c.kCb,{flexDir:"column","data-testid":"custom-fields-list",children:(0,u.jsx)(c.kCb,{flexDir:"column",gap:"24px",children:a?(0,u.jsx)(c.M5Y,{children:(0,u.jsx)(c.$jN,{})}):o.length>0&&(0,u.jsx)(c.kCb,{flexDirection:"column",gap:"12px",paddingBottom:"24px",children:o.map(e=>{let t=n.get(e);if(!t)return null;let i="customFieldValues.".concat(t.id);if(!t.allow_list_id&&t.field_type===s.AL.STRING)return(0,u.jsx)(p.gN,{name:i,children:e=>{let{field:i}=e;return(0,u.jsx)(h.j0,{...i,label:t.name,tooltip:t.description,variant:"stacked"})}},e);let r=l.get(t.allow_list_id);if(!r)return null;let{options:a}=r;return(0,u.jsx)(x.d,{name:i,allowClear:!0,mode:t.field_type!==s.AL.STRING?"multiple":void 0,label:t.name,options:a,tooltip:t.description,layout:"stacked",className:"w-full"},e)})})})})}):null};i(94799)},97181:function(e,t,i){i.d(t,{d:function(){return d}});var l=i(24246),n=i(77181),r=i(34090),a=i(27378),s=i(91613),o=i(40324);let d=e=>{let{name:t,label:i,labelProps:d,tooltip:u,isRequired:c,layout:p="inline",...m}=e,[x,h,{setValue:v}]=(0,r.U$)(t),f=!!(h.touched&&h.error),[g,j]=(0,a.useState)("");x.value||"tags"!==m.mode&&"multiple"!==m.mode||(x.value=[]),"tags"===m.mode&&"string"==typeof x.value&&(x.value=[x.value]);let _="tags"===m.mode?(e,t)=>e?e.value!==g||x.value.includes(g)?m.optionRender?m.optionRender(e,t):e.label:'Create "'.concat(g,'"'):void 0:m.optionRender||void 0,C=e=>{j(e),m.onSearch&&m.onSearch(e)},b=(e,t)=>{v(e),m.onChange&&m.onChange(e,t)};return"inline"===p?(0,l.jsx)(n.NIc,{isInvalid:f,isRequired:c,children:(0,l.jsxs)(n.rjZ,{templateColumns:i?"1fr 3fr":"1fr",children:[i?(0,l.jsx)(o.__,{htmlFor:m.id||t,...d,children:i}):null,(0,l.jsxs)(n.jqI,{align:"center",children:[(0,l.jsxs)(n.jqI,{vertical:!0,flex:1,className:"mr-2",children:[(0,l.jsx)(n.WPr,{...x,id:m.id||t,"data-testid":"controlled-select-".concat(x.name),...m,optionRender:_,onSearch:"tags"===m.mode?C:void 0,onChange:b,value:x.value||void 0,status:f?"error":void 0}),(0,l.jsx)(o.Bc,{isInvalid:f,message:h.error,fieldName:x.name})]}),u?(0,l.jsx)(s.Z,{label:u}):null]})]})}):(0,l.jsx)(n.NIc,{isInvalid:f,isRequired:c,children:(0,l.jsxs)(n.gCW,{alignItems:"start",children:[(0,l.jsxs)(n.jqI,{align:"center",children:[i?(0,l.jsx)(o.__,{htmlFor:m.id||t,fontSize:"xs",my:0,mr:1,...d,children:i}):null,u?(0,l.jsx)(s.Z,{label:u}):null]}),(0,l.jsx)(n.WPr,{...x,id:m.id||t,"data-testid":"controlled-select-".concat(x.name),...m,optionRender:_,onSearch:"tags"===m.mode?C:void 0,onChange:b,value:x.value||void 0,status:f?"error":void 0}),(0,l.jsx)(o.Bc,{isInvalid:f,message:h.error,fieldName:x.name})]})})}},14047:function(e,t,i){i.d(t,{H:function(){return r},V:function(){return l.V}});var l=i(84306),n=i(812);let r=()=>{let{errorAlert:e}=(0,l.V)();return{handleError:t=>{let i="An unexpected error occurred. Please try again.";(0,n.Ot)(t)?i=t.data.detail:(0,n.tB)(t)&&(i=t.data.detail[0].msg),e(i)}}}},84306:function(e,t,i){i.d(t,{V:function(){return r}});var l=i(24246),n=i(77181);let r=()=>{let e=(0,n.pmc)();return{errorAlert:(t,i,r)=>{let a={...r,position:(null==r?void 0:r.position)||"top",render:e=>{let{onClose:r}=e;return(0,l.jsxs)(n.bZj,{alignItems:"normal",status:"error","data-testid":"error-alert",children:[(0,l.jsx)(n.zMQ,{}),(0,l.jsxs)(n.xuv,{children:[i&&(0,l.jsx)(n.CdC,{children:i}),(0,l.jsx)(n.XaZ,{children:t})]}),(0,l.jsx)(n.PZ7,{onClick:r,position:"relative",right:0,size:"sm",top:-1})]})}};(null==r?void 0:r.id)&&e.isActive(r.id)?e.update(r.id,a):e(a)},successAlert:(t,i,r)=>{let a={...r,position:(null==r?void 0:r.position)||"top",render:e=>{let{onClose:r}=e;return(0,l.jsxs)(n.bZj,{alignItems:"normal",status:"success",variant:"subtle","data-testid":"success-alert",children:[(0,l.jsx)(n.zMQ,{}),(0,l.jsxs)(n.xuv,{children:[i&&(0,l.jsx)(n.CdC,{children:i}),(0,l.jsx)(n.XaZ,{children:t})]}),(0,l.jsx)(n.PZ7,{onClick:r,position:"relative",right:0,size:"sm",top:-1})]})}};(null==r?void 0:r.id)&&e.isActive(r.id)?e.update(r.id,a):e(a)}}}},70788:function(e,t,i){i.d(t,{m:function(){return d}});var l=i(24246),n=i(77181),r=i(79894),a=i.n(r),s=i(27378);let{Text:o}=n.AntTypography,d=e=>{let{items:t,...i}=e,r=(0,s.useMemo)(()=>null==t?void 0:t.map((e,i)=>{let r=i===t.length-1,s={...e},d=s.onClick&&!s.href;return("string"==typeof s.title&&(s.title=(0,l.jsx)(o,{style:{color:"inherit",maxWidth:r?void 0:400},ellipsis:!r,children:s.title})),d)?s.title=(0,l.jsx)(n.wpx,{type:"text",size:"small",icon:s.icon,onClick:s.onClick,className:"ant-breadcrumb-link -mt-px px-1 text-inherit",children:s.title}):(s.icon&&(s.title=(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("span",{className:"anticon align-text-bottom",children:s.icon}),s.title]})),s.href&&s.title&&(s.title=(0,l.jsx)(a(),{href:s.href,className:"ant-breadcrumb-link",children:s.title}),delete s.href)),s}),[t]);return(0,l.jsx)(n.zrq,{items:r,...i})}},30234:function(e,t,i){var l=i(24246),n=i(77181);t.Z=e=>{let{heading:t,HeadingButton:i,children:r}=e;return(0,l.jsx)(n.Kqy,{spacing:4,children:(0,l.jsxs)(n.xuv,{maxWidth:"720px",border:"1px",borderColor:"gray.200",borderRadius:6,overflow:"visible",mt:6,children:[(0,l.jsxs)(n.xuv,{backgroundColor:"gray.50",px:6,py:4,display:"flex",flexDirection:"row",alignItems:"center",borderBottom:"1px",borderColor:"gray.200",borderTopRadius:6,children:[(0,l.jsx)(n.X6q,{as:"h3",size:"xs",children:t}),i?(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(n.LZC,{}),(0,l.jsx)(i,{})]}):null]}),(0,l.jsx)(n.Kqy,{spacing:4,px:6,py:6,children:r})]})})}}}]);
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9046],{7617:function(e,s,t){t.d(s,{q:function(){return l}});var i=t(24246),a=t(77181);let l=e=>{let{label:s,isDisabled:t,...l}=e;return(0,i.jsx)(a.OK9,{"data-testid":"tab-".concat(s),_selected:{fontWeight:"600",color:"complimentary.500",borderColor:"complimentary.500"},fontSize:l.fontSize,fontWeight:"500",color:"gray.500",isDisabled:t||!1,children:s})};s.Z=e=>{let{data:s,border:t="partial",...r}=e;return(0,i.jsxs)(a.mQc,{colorScheme:"complimentary",...r,children:[(0,i.jsx)(a.tdY,{width:"partial"===t?"max-content":void 0,children:s.map(e=>(0,i.jsx)(l,{label:e.label,isDisabled:e.isDisabled,fontSize:r.fontSize},e.label))}),(0,i.jsx)(a.nPR,{children:s.map(e=>(0,i.jsx)(a.x45,{px:0,"data-testid":"tab-panel-".concat(e.label),children:e.content},e.label))})]})}},66379:function(e,s,t){var i=t(24246),a=t(77181),l=t(7617);s.Z=e=>{let{data:s,border:t="partial",borderWidth:r=2,...n}=e;return(0,i.jsx)(a.mQc,{colorScheme:"complimentary",...n,children:(0,i.jsx)(a.tdY,{width:"partial"===t?"max-content":void 0,borderBottomWidth:r,children:s.map(e=>(0,i.jsx)(l.q,{label:e.label,"data-testid":e.label,isDisabled:e.isDisabled,fontSize:n.fontSize},e.label))})})}},79494:function(e,s,t){var i=t(24246),a=t(77181);s.Z=e=>{let{title:s,icon:t,type:l,...r}=e;return(0,i.jsx)(a.wpx,{size:"small",type:l,"data-testid":"action-".concat(s),icon:t,iconPosition:"start",...r,children:s})}},45896:function(e,s,t){var i=t(24246),a=t(66379);s.Z=e=>{let{filterTabs:s,onChange:t,filterTabIndex:l}=e;return(0,i.jsx)(a.Z,{border:"full-width",mb:5,size:"sm",data:s,borderWidth:1,index:l,onChange:t})}},69828:function(e,s,t){t.d(s,{Y:function(){return r}});var i=t(24246),a=t(77181),l=t(70788);let r=[(0,i.jsx)(a.PJP.S9g,{},"layers"),(0,i.jsx)(a.PJP.ehp,{},"dataset"),(0,i.jsx)(a.PJP.iA_,{},"table"),(0,i.jsx)(a.PJP.$4y,{style:{transform:"rotate(-90deg)"}},"field")];s.Z=e=>{let{resourceUrn:s,parentLink:t,onPathClick:a=()=>{}}=e,n=[];if(s||n.push({title:"All activity"}),s){n.push({title:"All activity",href:t});let e=s.split(".");e.forEach((s,t)=>{0!==t&&n.push({title:s,icon:r[t-1],onClick:s=>{s.preventDefault(),a(e.slice(0,t+1).join("."))}})})}return(0,i.jsx)(l.m,{"data-testid":"results-breadcrumb",items:n})}},38347:function(e,s,t){var i=t(24246),a=t(77181),l=t(56839);s.Z=()=>(0,i.jsxs)(a.J2e,{isLazy:!0,trigger:"hover",children:[(0,i.jsx)(a.xol,{children:(0,i.jsx)(a.UOT,{color:"gray.400"})}),(0,i.jsxs)(a.yky,{bgColor:"gray.800",color:"white",fontSize:"sm",w:"auto",border:"none",children:[(0,i.jsx)(a.Ytg,{fontWeight:"semibold",border:"none",pb:0,children:"Activity legend:"}),(0,i.jsx)(a.QHN,{bgColor:"gray.800"}),(0,i.jsx)(a.baG,{border:"none",children:(0,i.jsxs)(a.MIq,{columns:2,spacing:2,children:[(0,i.jsxs)(a.xuv,{children:[(0,i.jsx)(l.Rv,{})," Change detected"]}),(0,i.jsxs)(a.xuv,{children:[(0,i.jsx)(l.$P,{})," Data labeled"]}),(0,i.jsxs)(a.xuv,{children:[(0,i.jsx)(l.zj,{})," Monitoring"]}),(0,i.jsxs)(a.xuv,{children:[(0,i.jsx)(l.dK,{})," Addition detected"]}),(0,i.jsxs)(a.xuv,{children:[(0,i.jsx)(l.Kr,{})," Unmonitored"]}),(0,i.jsxs)(a.xuv,{children:[(0,i.jsx)(l.q1,{})," Removal detected"]})]})})]})]})},47182:function(e,s,t){var i=t(86677),a=t(77830);s.Z=()=>{let e=(0,i.useRouter)();return{monitorId:e.query.monitorId,resourceUrn:e.query.resourceUrn,navigateToDetectionResults:s=>{let{resourceUrn:t,filterTabIndex:i}=s;e.push({pathname:a.dS,query:{resourceUrn:t,filterTabIndex:i}})},navigateToDiscoveryResults:s=>{let{resourceUrn:t,filterTabIndex:i}=s;e.push({pathname:a.Sj,query:{resourceUrn:t,filterTabIndex:i}})}}}},11904:function(e,s,t){t.d(s,{Z:function(){return F}});var i,a,l=t(24246),r=t(59003),n=t(92222),o=t(77181),d=t(86677),c=t(27378),u=t(14481),x=t(45896),g=t(70675),h=t(72625),j=t(79947),f=t(50169),I=t(28278),m=t(74241),v=t(28120),L=t(91761),C=t(61099),p=t(87667),S=e=>{let{resourceType:s}=e,t=(0,n.Cl)();return s===v.D$.SCHEMA?{columns:[t.accessor(e=>e.name,{id:"name",cell:e=>(0,l.jsx)(p.Z,{result:e.row.original,changeTypeOverride:I.E.CLASSIFICATION}),header:e=>(0,l.jsx)(u.Rr,{value:"Name",...e}),size:300}),t.accessor(e=>e.urn,{id:"project",cell:e=>(0,l.jsx)(u.G3,{value:(0,m.Z)(e.getValue())}),header:e=>(0,l.jsx)(u.Rr,{value:"Project",...e})}),t.display({id:"status",cell:e=>(0,l.jsx)(f.Z,{result:e.row.original}),header:e=>(0,l.jsx)(u.Rr,{value:"Status",...e})}),t.accessor(e=>e.system,{id:"system",cell:e=>(0,l.jsx)(u.G3,{value:e.getValue()}),header:e=>(0,l.jsx)(u.Rr,{value:"System",...e})}),t.accessor(e=>e.monitor_config_id,{id:"monitor",cell:e=>(0,l.jsx)(u.G3,{value:e.getValue()}),header:e=>(0,l.jsx)(u.Rr,{value:"Detected by",...e})}),t.accessor(e=>e.updated_at,{id:"time",cell:e=>(0,l.jsx)(h.Cy,{time:e.getValue()}),header:e=>(0,l.jsx)(u.Rr,{value:"When",...e})}),t.display({id:"action",cell:e=>e.row.original.diff_status!==v.LL.MUTED?(0,l.jsx)(L.Z,{resource:e.row.original}):(0,l.jsx)(u.G3,{value:"--"}),header:"Actions",size:235,meta:{disableRowClick:!0}})]}:s===v.D$.TABLE?{columns:[t.display({id:"select",cell:e=>{var s;let{row:t}=e;return(0,l.jsx)(h.k,{isChecked:t.getIsSelected(),onChange:t.getToggleSelectedHandler(),dataTestId:"select-".concat(null!==(s=t.original.name)&&void 0!==s?s:t.id)})},header:e=>{let{table:s}=e;return(0,l.jsx)(h.k,{isChecked:s.getIsAllPageRowsSelected(),isIndeterminate:s.getIsSomeRowsSelected(),onChange:s.getToggleAllRowsSelectedHandler(),dataTestId:"select-all-rows"})},maxSize:40}),t.accessor(e=>e.name,{id:"tables",cell:e=>(0,l.jsx)(p.Z,{result:e.row.original}),header:e=>(0,l.jsx)(u.Rr,{value:"Table name",...e}),size:300}),t.accessor(e=>e.description,{id:"description",cell:e=>(0,l.jsx)(u.G3,{value:e.getValue(),cellProps:e}),header:e=>(0,l.jsx)(u.Rr,{value:"Description",...e}),meta:{showHeaderMenu:!0}}),t.display({id:"status",cell:e=>(0,l.jsx)(f.Z,{result:e.row.original}),header:e=>(0,l.jsx)(u.Rr,{value:"Status",...e})}),t.display({id:"type",cell:()=>(0,l.jsx)(u.G3,{value:"Table"}),header:"Type"}),t.accessor(e=>e.updated_at,{id:"time",cell:e=>(0,l.jsx)(h.Cy,{time:e.getValue()}),header:"Time"}),t.display({id:"actions",cell:e=>(0,l.jsx)(L.Z,{resource:e.row.original}),header:"Actions",size:235,meta:{disableRowClick:!0}})]}:s===v.D$.FIELD?{columns:[t.accessor(e=>e.name,{id:"name",cell:e=>(0,l.jsx)(p.Z,{result:e.row.original}),header:e=>(0,l.jsx)(u.Rr,{value:"Field name",...e}),size:300}),t.accessor(e=>e.source_data_type,{id:"data-type",cell:e=>(0,l.jsx)(j.Z,{type:e.getValue()}),header:e=>(0,l.jsx)(u.Rr,{value:"Data type",...e})}),t.accessor(e=>e.description,{id:"description",cell:e=>(0,l.jsx)(u.G3,{value:e.getValue(),cellProps:e}),header:e=>(0,l.jsx)(u.Rr,{value:"Description",...e}),meta:{showHeaderMenu:!0}}),t.display({id:"status",cell:e=>(0,l.jsx)(f.Z,{result:e.row.original}),header:e=>(0,l.jsx)(u.Rr,{value:"Status",...e})}),t.display({id:"type",cell:()=>(0,l.jsx)(u.G3,{value:"Field"}),header:"Type"}),t.display({id:"classifications",cell:e=>{let{row:s}=e;return(0,l.jsx)(C.Z,{resource:s.original})},meta:{overflow:"visible",disableRowClick:!0},header:"Data category",minSize:280}),t.accessor(e=>e.updated_at,{id:"time",cell:e=>(0,l.jsx)(h.Cy,{time:e.getValue()}),header:e=>(0,l.jsx)(u.Rr,{value:"When",...e})}),t.display({id:"actions",cell:e=>(0,l.jsx)(L.Z,{resource:e.row.original}),header:"Actions",size:235,meta:{disableRowClick:!0}})]}:{columns:[]}};(i=a||(a={}))[i.ACTION_REQUIRED=0]="ACTION_REQUIRED",i[i.UNMONITORED=1]="UNMONITORED";var _=e=>{let{initialFilterTabIndex:s=0}=e,[t,i]=(0,c.useState)(s),a=(0,c.useMemo)(()=>[{label:"Action Required",filters:[v.LL.CLASSIFICATION_ADDITION,v.LL.CLASSIFICATION_UPDATE],childFilters:[v.LL.CLASSIFICATION_ADDITION,v.LL.CLASSIFICATION_UPDATE]},{label:"In progress",filters:[v.LL.CLASSIFYING,v.LL.CLASSIFICATION_QUEUED],childFilters:[v.LL.CLASSIFYING,v.LL.CLASSIFICATION_QUEUED]},{label:"Unmonitored",filters:[v.LL.MUTED],childFilters:[]}],[]);return{filterTabs:a,filterTabIndex:t,setFilterTabIndex:i,activeDiffFilters:a[t].filters,activeChildDiffFilters:a[t].childFilters}},b=t(47182),A=t(38347),y=t(79494),T=e=>{let{resourceUrn:s}=e,[t,{isLoading:i}]=(0,g.Hf)(),[a,{isLoading:r}]=(0,g.zV)(),n=i||r,d=async e=>{await a({staged_resource_urns:e})},c=async e=>{await t({staged_resource_urns:e})};return(0,l.jsx)(o.jqI,{"data-testid":"bulk-actions-menu",children:(0,l.jsxs)("div",{className:"flex gap-2",children:[(0,l.jsx)(y.Z,{title:"Confirm all",icon:(0,l.jsx)(o.nQG,{}),onClick:()=>c([s]),disabled:n,loading:i,type:"primary",size:"middle"}),(0,l.jsx)(y.Z,{title:"Ignore all",icon:(0,l.jsx)(o.tpL,{}),onClick:()=>d([s]),disabled:n,loading:r,size:"middle"})]})})},D=e=>{let{selectedUrns:s}=e,[t,{isLoading:i}]=(0,g.Hf)(),[a,{isLoading:r}]=(0,g.zV)(),n=i||r,d=async e=>{await t({staged_resource_urns:e})},c=async e=>{await a({staged_resource_urns:e})};return s.length?(0,l.jsxs)(o.jqI,{className:"items-center","data-testid":"bulk-actions-menu",children:[(0,l.jsx)(o.xvT,{fontSize:"xs",fontWeight:"semibold",minW:16,mr:4,children:"".concat(s.length," selected")}),(0,l.jsxs)(o.jqI,{className:"gap-2",children:[(0,l.jsx)(y.Z,{title:"Confirm",icon:(0,l.jsx)(o.nQG,{}),onClick:()=>d(s),disabled:n,loading:i,type:"primary",size:"middle"}),(0,l.jsx)(y.Z,{title:"Ignore",icon:(0,l.jsx)(o.tpL,{}),disabled:n,loading:r,onClick:()=>c(s),size:"middle"})]})]}):null},R=t(7940),E=t(80285),N=t(36168),w=t(57454);let O={items:[],total:0,page:1,size:50,pages:1},Z=()=>(0,l.jsx)(o.gCW,{mt:6,p:10,spacing:4,borderRadius:"base",maxW:"70%","data-testid":"empty-state",alignSelf:"center",margin:"auto",children:(0,l.jsxs)(o.gCW,{children:[(0,l.jsx)(o.xvT,{fontSize:"md",fontWeight:"600",children:"No activity found"}),(0,l.jsx)(o.xvT,{fontSize:"sm",children:"You're up to date!"})]})});var F=e=>{var s,t;let{resourceUrn:i}=e,h=(0,d.useRouter)(),[j,f]=(0,c.useState)(""),{filterTabs:I,setFilterTabIndex:m,filterTabIndex:L,activeDiffFilters:C,activeChildDiffFilters:p}=_({initialFilterTabIndex:(null===(s=h.query)||void 0===s?void 0:s.filterTabIndex)?Number(null===(t=h.query)||void 0===t?void 0:t.filterTabIndex):void 0}),[y,F]=(0,c.useState)({}),{PAGE_SIZES:z,pageSize:k,setPageSize:P,onPreviousPageClick:U,isPreviousPageDisabled:M,onNextPageClick:G,isNextPageDisabled:q,startRange:V,endRange:Q,pageIndex:W,setTotalPages:H,resetPageIndexToDefault:Y}=(0,u.oi)();(0,c.useEffect)(()=>{Y()},[i,j,Y,C,p]);let{isFetching:$,isLoading:J,data:K}=(0,g.z8)({staged_resource_urn:i,page:W,size:k,child_diff_status:p,diff_status:C,search:j}),B=(0,R.G)(null==K?void 0:K.items[0]),{items:X,total:ee,pages:es}=(0,c.useMemo)(()=>null!=K?K:O,[K]);(0,c.useEffect)(()=>{H(es)},[es,H]);let{columns:et}=S({resourceType:B}),ei=(0,c.useMemo)(()=>et,[et]),{navigateToDiscoveryResults:ea}=(0,b.Z)(),el=(0,r.b7)({getCoreRowModel:(0,n.sC)(),getGroupedRowModel:(0,n.qe)(),getExpandedRowModel:(0,n.rV)(),columns:ei,manualPagination:!0,onRowSelectionChange:F,state:{rowSelection:y},getRowId:E.Z,data:X,columnResizeMode:"onChange"}),er=Object.keys(y).filter(e=>y[e]);return J?(0,l.jsx)(u.I4,{rowHeight:36,numRows:36}):(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(x.Z,{filterTabs:I,filterTabIndex:L,onChange:m}),(0,l.jsxs)(u.Q$,{children:[(0,l.jsxs)(o.kCb,{gap:6,align:"center",children:[(0,l.jsx)(o.xuv,{flexShrink:0,children:(0,l.jsx)(w.M,{value:j,onChange:f})}),(0,l.jsx)(A.Z,{})]}),B===v.D$.TABLE&&!!er.length&&(0,l.jsx)(D,{selectedUrns:er}),B===v.D$.FIELD&&L!==a.UNMONITORED&&(0,l.jsx)(T,{resourceUrn:i})]}),(0,l.jsx)(u.ZK,{tableInstance:el,onRowClick:e=>ea({resourceUrn:e.urn,filterTabIndex:L}),getRowIsClickable:e=>B!==v.D$.FIELD||(0,N.Z)(e),emptyTableNotice:(0,l.jsx)(Z,{})}),(0,l.jsx)(u.s8,{totalRows:ee||0,pageSizes:z,setPageSize:P,onPreviousPageClick:U,isPreviousPageDisabled:M||$,onNextPageClick:G,isNextPageDisabled:q||$,startRange:V,endRange:Q})]})}},91761:function(e,s,t){var i=t(24246),a=t(77181),l=t(14047),r=t(98559),n=t(28120),o=t(79494),d=t(70675);s.Z=e=>{let{resource:s}=e,[t,{isLoading:c}]=(0,d.v8)(),[u,{isLoading:x}]=(0,d.cM)(),[g,{isLoading:h}]=(0,d.vi)(),j=x||h||c,{diff_status:f,child_diff_statuses:I,top_level_field_name:m}=s,{successAlert:v}=(0,l.V)(),L=f===n.LL.CLASSIFICATION_ADDITION||f===n.LL.CLASSIFICATION_UPDATE,C=I&&(I[n.LL.CLASSIFICATION_ADDITION]||I[n.LL.CLASSIFICATION_UPDATE]),p=(L||C)&&!m,S=L||C,_=p&&S,b=async()=>{await u({staged_resource_urn:s.urn}),v('These changes have been added to a Fides dataset. To view, navigate to "Manage datasets".',"Table changes confirmed")},A=async()=>{await g({staged_resource_urn:s.urn}),v("Ignored changes will not be added to a Fides dataset.","".concat(s.name||"Changes"," ignored"))},y=async()=>{await t({staged_resource_urn:s.urn,monitor_config_id:s.monitor_config_id,start_classification:!0,classify_monitored_resources:!0}),v("Reclassification of ".concat((0,r.Z)(s)||"the resource"," has begun. The results may take some time to appear in the “Data discovery“ tab."),"Reclassification started")};return(0,i.jsxs)(a.Ugi,{gap:2,children:[p&&(0,i.jsx)(o.Z,{title:"Confirm",icon:(0,i.jsx)(a.nQG,{}),onClick:b,disabled:j,loading:x}),S&&(0,i.jsx)(o.Z,{title:"Ignore",icon:(0,i.jsx)(a.tpL,{}),onClick:A,disabled:j,loading:h}),!_&&(0,i.jsx)(o.Z,{title:"Reclassify",icon:(0,i.jsx)(a.nyI,{}),onClick:y,disabled:j,loading:c}),(0,i.jsx)(a.LZC,{}),_&&(0,i.jsxs)(a.v2r,{children:[(0,i.jsx)(a.j2t,{as:a.wpx,size:"small",type:"text",icon:(0,i.jsx)(a.nXP,{transform:"rotate(90deg)"}),className:"w-6 gap-0","data-testid":"actions-overflow-btn"}),(0,i.jsx)(a.qyq,{children:(0,i.jsx)(a.sNh,{onClick:y,icon:(0,i.jsx)(a.nyI,{}),"data-testid":"action-reclassify",children:"Reclassify"})})]})]})}},79947:function(e,s,t){var i=t(24246),a=t(77181);s.Z=e=>{let{type:s}=e;return(0,i.jsx)(a.kCb,{align:"center",h:"full",children:!!s&&(0,i.jsx)(a.j8w,{children:s})})}},87667:function(e,s,t){var i=t(24246),a=t(77181),l=t(56839),r=t(20449),n=t(98559),o=t(80356);s.Z=e=>{let{result:s,changeTypeOverride:t}=e,d=null!=t?t:(0,r.Z)(s);return(0,i.jsxs)(a.kCb,{alignItems:"center",height:"100%",children:[(0,i.jsx)(a.ua7,{label:d,children:(0,i.jsx)("span",{children:l.QL[d]})}),(0,i.jsx)(a.xvT,{fontSize:"xs",lineHeight:4,fontWeight:(0,o.Z)(s)?"semibold":"normal",overflow:"hidden",textOverflow:"ellipsis",children:(0,n.Z)(s)})]})}},50169:function(e,s,t){var i=t(24246),a=t(14481),l=t(28278),r=t(20449);let n={[l.E.MUTED]:{color:"marble",label:"Unmonitored"},[l.E.MONITORED]:{color:"success",label:"Monitoring"},[l.E.IN_PROGRESS]:{color:"info",label:"Classifying"}};s.Z=e=>{var s,t,l,o,d;let{result:c,changeTypeOverride:u}=e;if(null===(s=c.user_assigned_data_categories)||void 0===s?void 0:s.length)return(0,i.jsx)(a.A4,{color:"success",value:"Reviewed"});let x=null!=u?u:(0,r.Z)(c);return(0,i.jsx)(a.A4,{color:null!==(o=null===(t=n[x])||void 0===t?void 0:t.color)&&void 0!==o?o:"warning",value:null!==(d=null===(l=n[x])||void 0===l?void 0:l.label)&&void 0!==d?d:"Pending review"})}},74241:function(e,s){s.Z=e=>{let s=e.split(".");return s.length>1?s[1]:""}},20449:function(e,s,t){var i=t(28278),a=t(28120);s.Z=e=>e.diff_status===a.LL.ADDITION?i.E.ADDITION:e.diff_status===a.LL.REMOVAL?i.E.REMOVAL:e.diff_status===a.LL.CLASSIFYING||e.diff_status===a.LL.CLASSIFICATION_QUEUED?i.E.IN_PROGRESS:e.diff_status===a.LL.CLASSIFICATION_ADDITION||e.diff_status===a.LL.CLASSIFICATION_UPDATE?i.E.CLASSIFICATION:e.child_diff_statuses?e.child_diff_statuses[a.LL.CLASSIFYING]||e.child_diff_statuses[a.LL.CLASSIFICATION_QUEUED]?i.E.IN_PROGRESS:e.child_diff_statuses[a.LL.CLASSIFICATION_ADDITION]||e.child_diff_statuses[a.LL.CLASSIFICATION_UPDATE]?i.E.CLASSIFICATION:e.child_diff_statuses[a.LL.ADDITION]||e.child_diff_statuses[a.LL.REMOVAL]?i.E.CHANGE:e.diff_status===a.LL.MONITORED?i.E.MONITORED:e.diff_status===a.LL.MUTED?i.E.MUTED:i.E.NONE:i.E.NONE},80285:function(e,s){s.Z=e=>e.urn}}]);
|
1
|
+
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9046],{7617:function(e,s,t){t.d(s,{q:function(){return l}});var i=t(24246),a=t(77181);let l=e=>{let{label:s,isDisabled:t,...l}=e;return(0,i.jsx)(a.OK9,{"data-testid":"tab-".concat(s),_selected:{fontWeight:"600",color:"complimentary.500",borderColor:"complimentary.500"},fontSize:l.fontSize,fontWeight:"500",color:"gray.500",isDisabled:t||!1,children:s})};s.Z=e=>{let{data:s,border:t="partial",...r}=e;return(0,i.jsxs)(a.mQc,{colorScheme:"complimentary",...r,children:[(0,i.jsx)(a.tdY,{width:"partial"===t?"max-content":void 0,children:s.map(e=>(0,i.jsx)(l,{label:e.label,isDisabled:e.isDisabled,fontSize:r.fontSize},e.label))}),(0,i.jsx)(a.nPR,{children:s.map(e=>(0,i.jsx)(a.x45,{px:0,"data-testid":"tab-panel-".concat(e.label),children:e.content},e.label))})]})}},66379:function(e,s,t){var i=t(24246),a=t(77181),l=t(7617);s.Z=e=>{let{data:s,border:t="partial",borderWidth:r=2,...n}=e;return(0,i.jsx)(a.mQc,{colorScheme:"complimentary",...n,children:(0,i.jsx)(a.tdY,{width:"partial"===t?"max-content":void 0,borderBottomWidth:r,children:s.map(e=>(0,i.jsx)(l.q,{label:e.label,"data-testid":e.label,isDisabled:e.isDisabled,fontSize:n.fontSize},e.label))})})}},79494:function(e,s,t){var i=t(24246),a=t(77181);s.Z=e=>{let{title:s,icon:t,type:l,...r}=e;return(0,i.jsx)(a.wpx,{size:"small",type:l,"data-testid":"action-".concat(s),icon:t,iconPosition:"start",...r,children:s})}},45896:function(e,s,t){var i=t(24246),a=t(66379);s.Z=e=>{let{filterTabs:s,onChange:t,filterTabIndex:l}=e;return(0,i.jsx)(a.Z,{border:"full-width",mb:5,size:"sm",data:s,borderWidth:1,index:l,onChange:t})}},69828:function(e,s,t){t.d(s,{Y:function(){return r}});var i=t(24246),a=t(77181),l=t(70788);let r=[(0,i.jsx)(a.PJP.S9g,{},"layers"),(0,i.jsx)(a.PJP.ehp,{},"dataset"),(0,i.jsx)(a.PJP.iA_,{},"table"),(0,i.jsx)(a.PJP.$4y,{style:{transform:"rotate(-90deg)"}},"field")];s.Z=e=>{let{resourceUrn:s,parentLink:t,onPathClick:a=()=>{}}=e,n=[];if(s||n.push({title:"All activity"}),s){n.push({title:"All activity",href:t});let e=s.split(".");e.forEach((s,t)=>{0!==t&&n.push({title:s,icon:r[t-1],onClick:s=>{s.preventDefault(),a(e.slice(0,t+1).join("."))}})})}return(0,i.jsx)(l.m,{"data-testid":"results-breadcrumb",items:n})}},38347:function(e,s,t){var i=t(24246),a=t(77181),l=t(56839);s.Z=()=>(0,i.jsxs)(a.J2e,{isLazy:!0,trigger:"hover",children:[(0,i.jsx)(a.xol,{children:(0,i.jsx)(a.UOT,{color:"gray.400"})}),(0,i.jsxs)(a.yky,{bgColor:"gray.800",color:"white",fontSize:"sm",w:"auto",border:"none",children:[(0,i.jsx)(a.Ytg,{fontWeight:"semibold",border:"none",pb:0,children:"Activity legend:"}),(0,i.jsx)(a.QHN,{bgColor:"gray.800"}),(0,i.jsx)(a.baG,{border:"none",children:(0,i.jsxs)(a.MIq,{columns:2,spacing:2,children:[(0,i.jsxs)(a.xuv,{children:[(0,i.jsx)(l.Rv,{})," Change detected"]}),(0,i.jsxs)(a.xuv,{children:[(0,i.jsx)(l.$P,{})," Data labeled"]}),(0,i.jsxs)(a.xuv,{children:[(0,i.jsx)(l.zj,{})," Monitoring"]}),(0,i.jsxs)(a.xuv,{children:[(0,i.jsx)(l.dK,{})," Addition detected"]}),(0,i.jsxs)(a.xuv,{children:[(0,i.jsx)(l.Kr,{})," Unmonitored"]}),(0,i.jsxs)(a.xuv,{children:[(0,i.jsx)(l.q1,{})," Removal detected"]})]})})]})]})},47182:function(e,s,t){var i=t(86677),a=t(77830);s.Z=()=>{let e=(0,i.useRouter)();return{monitorId:e.query.monitorId,resourceUrn:e.query.resourceUrn,navigateToDetectionResults:s=>{let{resourceUrn:t,filterTabIndex:i}=s;e.push({pathname:a.dS,query:{resourceUrn:t,filterTabIndex:i}})},navigateToDiscoveryResults:s=>{let{resourceUrn:t,filterTabIndex:i}=s;e.push({pathname:a.Sj,query:{resourceUrn:t,filterTabIndex:i}})}}}},11904:function(e,s,t){t.d(s,{Z:function(){return F}});var i,a,l=t(24246),r=t(59003),n=t(92222),o=t(77181),d=t(86677),c=t(27378),u=t(14481),x=t(45896),g=t(70675),h=t(72625),j=t(79947),f=t(50169),I=t(28278),m=t(74241),v=t(21702),L=t(91761),C=t(61099),p=t(87667),S=e=>{let{resourceType:s}=e,t=(0,n.Cl)();return s===v.D$.SCHEMA?{columns:[t.accessor(e=>e.name,{id:"name",cell:e=>(0,l.jsx)(p.Z,{result:e.row.original,changeTypeOverride:I.E.CLASSIFICATION}),header:e=>(0,l.jsx)(u.Rr,{value:"Name",...e}),size:300}),t.accessor(e=>e.urn,{id:"project",cell:e=>(0,l.jsx)(u.G3,{value:(0,m.Z)(e.getValue())}),header:e=>(0,l.jsx)(u.Rr,{value:"Project",...e})}),t.display({id:"status",cell:e=>(0,l.jsx)(f.Z,{result:e.row.original}),header:e=>(0,l.jsx)(u.Rr,{value:"Status",...e})}),t.accessor(e=>e.system,{id:"system",cell:e=>(0,l.jsx)(u.G3,{value:e.getValue()}),header:e=>(0,l.jsx)(u.Rr,{value:"System",...e})}),t.accessor(e=>e.monitor_config_id,{id:"monitor",cell:e=>(0,l.jsx)(u.G3,{value:e.getValue()}),header:e=>(0,l.jsx)(u.Rr,{value:"Detected by",...e})}),t.accessor(e=>e.updated_at,{id:"time",cell:e=>(0,l.jsx)(h.Cy,{time:e.getValue()}),header:e=>(0,l.jsx)(u.Rr,{value:"When",...e})}),t.display({id:"action",cell:e=>e.row.original.diff_status!==v.LL.MUTED?(0,l.jsx)(L.Z,{resource:e.row.original}):(0,l.jsx)(u.G3,{value:"--"}),header:"Actions",size:235,meta:{disableRowClick:!0}})]}:s===v.D$.TABLE?{columns:[t.display({id:"select",cell:e=>{var s;let{row:t}=e;return(0,l.jsx)(h.k,{isChecked:t.getIsSelected(),onChange:t.getToggleSelectedHandler(),dataTestId:"select-".concat(null!==(s=t.original.name)&&void 0!==s?s:t.id)})},header:e=>{let{table:s}=e;return(0,l.jsx)(h.k,{isChecked:s.getIsAllPageRowsSelected(),isIndeterminate:s.getIsSomeRowsSelected(),onChange:s.getToggleAllRowsSelectedHandler(),dataTestId:"select-all-rows"})},maxSize:40}),t.accessor(e=>e.name,{id:"tables",cell:e=>(0,l.jsx)(p.Z,{result:e.row.original}),header:e=>(0,l.jsx)(u.Rr,{value:"Table name",...e}),size:300}),t.accessor(e=>e.description,{id:"description",cell:e=>(0,l.jsx)(u.G3,{value:e.getValue(),cellProps:e}),header:e=>(0,l.jsx)(u.Rr,{value:"Description",...e}),meta:{showHeaderMenu:!0}}),t.display({id:"status",cell:e=>(0,l.jsx)(f.Z,{result:e.row.original}),header:e=>(0,l.jsx)(u.Rr,{value:"Status",...e})}),t.display({id:"type",cell:()=>(0,l.jsx)(u.G3,{value:"Table"}),header:"Type"}),t.accessor(e=>e.updated_at,{id:"time",cell:e=>(0,l.jsx)(h.Cy,{time:e.getValue()}),header:"Time"}),t.display({id:"actions",cell:e=>(0,l.jsx)(L.Z,{resource:e.row.original}),header:"Actions",size:235,meta:{disableRowClick:!0}})]}:s===v.D$.FIELD?{columns:[t.accessor(e=>e.name,{id:"name",cell:e=>(0,l.jsx)(p.Z,{result:e.row.original}),header:e=>(0,l.jsx)(u.Rr,{value:"Field name",...e}),size:300}),t.accessor(e=>e.source_data_type,{id:"data-type",cell:e=>(0,l.jsx)(j.Z,{type:e.getValue()}),header:e=>(0,l.jsx)(u.Rr,{value:"Data type",...e})}),t.accessor(e=>e.description,{id:"description",cell:e=>(0,l.jsx)(u.G3,{value:e.getValue(),cellProps:e}),header:e=>(0,l.jsx)(u.Rr,{value:"Description",...e}),meta:{showHeaderMenu:!0}}),t.display({id:"status",cell:e=>(0,l.jsx)(f.Z,{result:e.row.original}),header:e=>(0,l.jsx)(u.Rr,{value:"Status",...e})}),t.display({id:"type",cell:()=>(0,l.jsx)(u.G3,{value:"Field"}),header:"Type"}),t.display({id:"classifications",cell:e=>{let{row:s}=e;return(0,l.jsx)(C.Z,{resource:s.original})},meta:{overflow:"visible",disableRowClick:!0},header:"Data category",minSize:280}),t.accessor(e=>e.updated_at,{id:"time",cell:e=>(0,l.jsx)(h.Cy,{time:e.getValue()}),header:e=>(0,l.jsx)(u.Rr,{value:"When",...e})}),t.display({id:"actions",cell:e=>(0,l.jsx)(L.Z,{resource:e.row.original}),header:"Actions",size:235,meta:{disableRowClick:!0}})]}:{columns:[]}};(i=a||(a={}))[i.ACTION_REQUIRED=0]="ACTION_REQUIRED",i[i.UNMONITORED=1]="UNMONITORED";var _=e=>{let{initialFilterTabIndex:s=0}=e,[t,i]=(0,c.useState)(s),a=(0,c.useMemo)(()=>[{label:"Action Required",filters:[v.LL.CLASSIFICATION_ADDITION,v.LL.CLASSIFICATION_UPDATE],childFilters:[v.LL.CLASSIFICATION_ADDITION,v.LL.CLASSIFICATION_UPDATE]},{label:"In progress",filters:[v.LL.CLASSIFYING,v.LL.CLASSIFICATION_QUEUED],childFilters:[v.LL.CLASSIFYING,v.LL.CLASSIFICATION_QUEUED]},{label:"Unmonitored",filters:[v.LL.MUTED],childFilters:[]}],[]);return{filterTabs:a,filterTabIndex:t,setFilterTabIndex:i,activeDiffFilters:a[t].filters,activeChildDiffFilters:a[t].childFilters}},b=t(47182),A=t(38347),y=t(79494),T=e=>{let{resourceUrn:s}=e,[t,{isLoading:i}]=(0,g.Hf)(),[a,{isLoading:r}]=(0,g.zV)(),n=i||r,d=async e=>{await a({staged_resource_urns:e})},c=async e=>{await t({staged_resource_urns:e})};return(0,l.jsx)(o.jqI,{"data-testid":"bulk-actions-menu",children:(0,l.jsxs)("div",{className:"flex gap-2",children:[(0,l.jsx)(y.Z,{title:"Confirm all",icon:(0,l.jsx)(o.nQG,{}),onClick:()=>c([s]),disabled:n,loading:i,type:"primary",size:"middle"}),(0,l.jsx)(y.Z,{title:"Ignore all",icon:(0,l.jsx)(o.tpL,{}),onClick:()=>d([s]),disabled:n,loading:r,size:"middle"})]})})},D=e=>{let{selectedUrns:s}=e,[t,{isLoading:i}]=(0,g.Hf)(),[a,{isLoading:r}]=(0,g.zV)(),n=i||r,d=async e=>{await t({staged_resource_urns:e})},c=async e=>{await a({staged_resource_urns:e})};return s.length?(0,l.jsxs)(o.jqI,{className:"items-center","data-testid":"bulk-actions-menu",children:[(0,l.jsx)(o.xvT,{fontSize:"xs",fontWeight:"semibold",minW:16,mr:4,children:"".concat(s.length," selected")}),(0,l.jsxs)(o.jqI,{className:"gap-2",children:[(0,l.jsx)(y.Z,{title:"Confirm",icon:(0,l.jsx)(o.nQG,{}),onClick:()=>d(s),disabled:n,loading:i,type:"primary",size:"middle"}),(0,l.jsx)(y.Z,{title:"Ignore",icon:(0,l.jsx)(o.tpL,{}),disabled:n,loading:r,onClick:()=>c(s),size:"middle"})]})]}):null},R=t(7940),E=t(80285),N=t(36168),w=t(57454);let O={items:[],total:0,page:1,size:50,pages:1},Z=()=>(0,l.jsx)(o.gCW,{mt:6,p:10,spacing:4,borderRadius:"base",maxW:"70%","data-testid":"empty-state",alignSelf:"center",margin:"auto",children:(0,l.jsxs)(o.gCW,{children:[(0,l.jsx)(o.xvT,{fontSize:"md",fontWeight:"600",children:"No activity found"}),(0,l.jsx)(o.xvT,{fontSize:"sm",children:"You're up to date!"})]})});var F=e=>{var s,t;let{resourceUrn:i}=e,h=(0,d.useRouter)(),[j,f]=(0,c.useState)(""),{filterTabs:I,setFilterTabIndex:m,filterTabIndex:L,activeDiffFilters:C,activeChildDiffFilters:p}=_({initialFilterTabIndex:(null===(s=h.query)||void 0===s?void 0:s.filterTabIndex)?Number(null===(t=h.query)||void 0===t?void 0:t.filterTabIndex):void 0}),[y,F]=(0,c.useState)({}),{PAGE_SIZES:z,pageSize:k,setPageSize:P,onPreviousPageClick:U,isPreviousPageDisabled:M,onNextPageClick:G,isNextPageDisabled:q,startRange:V,endRange:Q,pageIndex:W,setTotalPages:H,resetPageIndexToDefault:Y}=(0,u.oi)();(0,c.useEffect)(()=>{Y()},[i,j,Y,C,p]);let{isFetching:$,isLoading:J,data:K}=(0,g.z8)({staged_resource_urn:i,page:W,size:k,child_diff_status:p,diff_status:C,search:j}),B=(0,R.G)(null==K?void 0:K.items[0]),{items:X,total:ee,pages:es}=(0,c.useMemo)(()=>null!=K?K:O,[K]);(0,c.useEffect)(()=>{H(es)},[es,H]);let{columns:et}=S({resourceType:B}),ei=(0,c.useMemo)(()=>et,[et]),{navigateToDiscoveryResults:ea}=(0,b.Z)(),el=(0,r.b7)({getCoreRowModel:(0,n.sC)(),getGroupedRowModel:(0,n.qe)(),getExpandedRowModel:(0,n.rV)(),columns:ei,manualPagination:!0,onRowSelectionChange:F,state:{rowSelection:y},getRowId:E.Z,data:X,columnResizeMode:"onChange"}),er=Object.keys(y).filter(e=>y[e]);return J?(0,l.jsx)(u.I4,{rowHeight:36,numRows:36}):(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(x.Z,{filterTabs:I,filterTabIndex:L,onChange:m}),(0,l.jsxs)(u.Q$,{children:[(0,l.jsxs)(o.kCb,{gap:6,align:"center",children:[(0,l.jsx)(o.xuv,{flexShrink:0,children:(0,l.jsx)(w.M,{value:j,onChange:f})}),(0,l.jsx)(A.Z,{})]}),B===v.D$.TABLE&&!!er.length&&(0,l.jsx)(D,{selectedUrns:er}),B===v.D$.FIELD&&L!==a.UNMONITORED&&(0,l.jsx)(T,{resourceUrn:i})]}),(0,l.jsx)(u.ZK,{tableInstance:el,onRowClick:e=>ea({resourceUrn:e.urn,filterTabIndex:L}),getRowIsClickable:e=>B!==v.D$.FIELD||(0,N.Z)(e),emptyTableNotice:(0,l.jsx)(Z,{})}),(0,l.jsx)(u.s8,{totalRows:ee||0,pageSizes:z,setPageSize:P,onPreviousPageClick:U,isPreviousPageDisabled:M||$,onNextPageClick:G,isNextPageDisabled:q||$,startRange:V,endRange:Q})]})}},91761:function(e,s,t){var i=t(24246),a=t(77181),l=t(14047),r=t(98559),n=t(21702),o=t(79494),d=t(70675);s.Z=e=>{let{resource:s}=e,[t,{isLoading:c}]=(0,d.v8)(),[u,{isLoading:x}]=(0,d.cM)(),[g,{isLoading:h}]=(0,d.vi)(),j=x||h||c,{diff_status:f,child_diff_statuses:I,top_level_field_name:m}=s,{successAlert:v}=(0,l.V)(),L=f===n.LL.CLASSIFICATION_ADDITION||f===n.LL.CLASSIFICATION_UPDATE,C=I&&(I[n.LL.CLASSIFICATION_ADDITION]||I[n.LL.CLASSIFICATION_UPDATE]),p=(L||C)&&!m,S=L||C,_=p&&S,b=async()=>{await u({staged_resource_urn:s.urn}),v('These changes have been added to a Fides dataset. To view, navigate to "Manage datasets".',"Table changes confirmed")},A=async()=>{await g({staged_resource_urn:s.urn}),v("Ignored changes will not be added to a Fides dataset.","".concat(s.name||"Changes"," ignored"))},y=async()=>{await t({staged_resource_urn:s.urn,monitor_config_id:s.monitor_config_id,start_classification:!0,classify_monitored_resources:!0}),v("Reclassification of ".concat((0,r.Z)(s)||"the resource"," has begun. The results may take some time to appear in the “Data discovery“ tab."),"Reclassification started")};return(0,i.jsxs)(a.Ugi,{gap:2,children:[p&&(0,i.jsx)(o.Z,{title:"Confirm",icon:(0,i.jsx)(a.nQG,{}),onClick:b,disabled:j,loading:x}),S&&(0,i.jsx)(o.Z,{title:"Ignore",icon:(0,i.jsx)(a.tpL,{}),onClick:A,disabled:j,loading:h}),!_&&(0,i.jsx)(o.Z,{title:"Reclassify",icon:(0,i.jsx)(a.nyI,{}),onClick:y,disabled:j,loading:c}),(0,i.jsx)(a.LZC,{}),_&&(0,i.jsxs)(a.v2r,{children:[(0,i.jsx)(a.j2t,{as:a.wpx,size:"small",type:"text",icon:(0,i.jsx)(a.nXP,{transform:"rotate(90deg)"}),className:"w-6 gap-0","data-testid":"actions-overflow-btn"}),(0,i.jsx)(a.qyq,{children:(0,i.jsx)(a.sNh,{onClick:y,icon:(0,i.jsx)(a.nyI,{}),"data-testid":"action-reclassify",children:"Reclassify"})})]})]})}},79947:function(e,s,t){var i=t(24246),a=t(77181);s.Z=e=>{let{type:s}=e;return(0,i.jsx)(a.kCb,{align:"center",h:"full",children:!!s&&(0,i.jsx)(a.j8w,{children:s})})}},87667:function(e,s,t){var i=t(24246),a=t(77181),l=t(56839),r=t(20449),n=t(98559),o=t(80356);s.Z=e=>{let{result:s,changeTypeOverride:t}=e,d=null!=t?t:(0,r.Z)(s);return(0,i.jsxs)(a.kCb,{alignItems:"center",height:"100%",children:[(0,i.jsx)(a.ua7,{label:d,children:(0,i.jsx)("span",{children:l.QL[d]})}),(0,i.jsx)(a.xvT,{fontSize:"xs",lineHeight:4,fontWeight:(0,o.Z)(s)?"semibold":"normal",overflow:"hidden",textOverflow:"ellipsis",children:(0,n.Z)(s)})]})}},50169:function(e,s,t){var i=t(24246),a=t(14481),l=t(28278),r=t(20449);let n={[l.E.MUTED]:{color:"marble",label:"Unmonitored"},[l.E.MONITORED]:{color:"success",label:"Monitoring"},[l.E.IN_PROGRESS]:{color:"info",label:"Classifying"}};s.Z=e=>{var s,t,l,o,d;let{result:c,changeTypeOverride:u}=e;if(null===(s=c.user_assigned_data_categories)||void 0===s?void 0:s.length)return(0,i.jsx)(a.A4,{color:"success",value:"Reviewed"});let x=null!=u?u:(0,r.Z)(c);return(0,i.jsx)(a.A4,{color:null!==(o=null===(t=n[x])||void 0===t?void 0:t.color)&&void 0!==o?o:"warning",value:null!==(d=null===(l=n[x])||void 0===l?void 0:l.label)&&void 0!==d?d:"Pending review"})}},74241:function(e,s){s.Z=e=>{let s=e.split(".");return s.length>1?s[1]:""}},20449:function(e,s,t){var i=t(28278),a=t(21702);s.Z=e=>e.diff_status===a.LL.ADDITION?i.E.ADDITION:e.diff_status===a.LL.REMOVAL?i.E.REMOVAL:e.diff_status===a.LL.CLASSIFYING||e.diff_status===a.LL.CLASSIFICATION_QUEUED?i.E.IN_PROGRESS:e.diff_status===a.LL.CLASSIFICATION_ADDITION||e.diff_status===a.LL.CLASSIFICATION_UPDATE?i.E.CLASSIFICATION:e.child_diff_statuses?e.child_diff_statuses[a.LL.CLASSIFYING]||e.child_diff_statuses[a.LL.CLASSIFICATION_QUEUED]?i.E.IN_PROGRESS:e.child_diff_statuses[a.LL.CLASSIFICATION_ADDITION]||e.child_diff_statuses[a.LL.CLASSIFICATION_UPDATE]?i.E.CLASSIFICATION:e.child_diff_statuses[a.LL.ADDITION]||e.child_diff_statuses[a.LL.REMOVAL]?i.E.CHANGE:e.diff_status===a.LL.MONITORED?i.E.MONITORED:e.diff_status===a.LL.MUTED?i.E.MUTED:i.E.NONE:i.E.NONE},80285:function(e,s){s.Z=e=>e.urn}}]);
|