ethyca-fides 2.64.1b2__py2.py3-none-any.whl → 2.64.2b0__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.64.1b2.dist-info → ethyca_fides-2.64.2b0.dist-info}/METADATA +1 -1
- {ethyca_fides-2.64.1b2.dist-info → ethyca_fides-2.64.2b0.dist-info}/RECORD +224 -228
- fides/_version.py +3 -3
- fides/api/db/database.py +27 -2
- fides/api/models/attachment.py +15 -3
- fides/api/models/comment.py +22 -5
- fides/api/models/db_cache.py +1 -1
- fides/api/models/detection_discovery/core.py +15 -15
- fides/api/models/fides_user_respondent_email_verification.py +27 -2
- fides/api/models/manual_tasks/manual_task.py +50 -2
- fides/api/models/manual_tasks/manual_task_config.py +83 -5
- fides/api/models/manual_tasks/manual_task_instance.py +116 -9
- fides/api/models/manual_tasks/manual_task_log.py +28 -3
- fides/api/models/tcf_publisher_restrictions.py +16 -4
- fides/ui-build/static/admin/404.html +1 -1
- fides/ui-build/static/admin/_next/static/chunks/{1040-630c7f4284dc6f70.js → 1040-fa06cd3b94d97493.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/1169-f75d7958fbe6e136.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/1807-3beab149351d5ded.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/{1817-b4688ba5042ec687.js → 1817-a3813209d7a6d28d.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/{2921-aabf41bf3d7573f9.js → 2921-81a48418f77bc9a7.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/{3450-bdaeb35442d810b4.js → 3450-2bb9f1b5a23fb520.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/3615-5e2d062d684b8fa1.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/{3855-0dec3e7d9e886550.js → 3855-b85ad4e52433d519.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/{3872-ffa16c2df7ef0ab6.js → 3872-09f81435f7905d76.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/{3923-5d580fbb1dd6ae01.js → 3923-2565d952c662555c.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/{401-fceaae662cfca5a5.js → 401-8ea41700c5437d38.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/{409-037cfc3f096150f0.js → 409-e0d39af1d9ce8ff2.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/4121-55f5b0bcb5ba41fb.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/{4230-1cdb7ea1be370ed3.js → 4230-b3fe52af1035dff5.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/{431-f72599f01b98f07d.js → 431-c74dab231c8ac968.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/{5309-4511df9708d5a63c.js → 5309-0e44dbd914896514.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/{5574-3cd33b3a6c937899.js → 5574-917c5ff63d222308.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/570-c99f07161bd339cd.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/6084-57446e3c99078be8.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/6662-45b8977f48a219f5.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/{6853-a4097260e402980e.js → 6853-8d0a099f61c758d1.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/{6882-3cc73d407a088d7d.js → 6882-13d6f8d95b1e404f.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/{6954-13a25cef3a8fdd76.js → 6954-4e106b3f7097fe6e.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/7476-b5fb1c0cf4ad8f63.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/7630-e3d06546f9dfeb91.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/787-381156db4e81dbe8.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/{79-5670e31eb65d0a53.js → 79-3f742fe4efd9893f.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/{796-9a6b13c838e25538.js → 796-83a8bbdcdb67f2ba.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/827-c6fe34fb336467ae.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/9014-eeae6f581158e645.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/{9046-fdf53cc7e926a8c1.js → 9046-6995482a030e323c.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/{905-742074a074be1055.js → 905-ffdbd0b14167e8bd.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/{9226-ba6587e46ec7659a.js → 9226-2be3a6efb127148f.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/{9392.25024e070026343d.js → 9392.9a948112de74781b.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/{9676.e60a53f1f5890847.js → 9676.cc515c853b8cf578.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/9767-980699a4d0f56acc.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/9826-303b14ef4fc7ab4a.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/{9951-f9ab5cac7e2c05ab.js → 9951-57c0a671463e0ebb.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/{404-ac2f0844e5c4b4cd.js → 404-488f8f03fe0ffbc7.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/{_app-8ec6e466f3373ac0.js → _app-5e6fbbf17a62ac76.js} +68 -65
- fides/ui-build/static/admin/_next/static/chunks/pages/add-systems/{manual-0a5f2310ce6b1059.js → manual-1e88ac28bc7a41b6.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/add-systems/{multiple-00cb904825aad7e3.js → multiple-f2c9451fffaaa529.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/add-systems-40a6b572d49c2b68.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/consent/configure/{add-vendors-fa7305b88c1afd20.js → add-vendors-b17d160147365cf3.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/consent/{configure-f140ec9d8e8a0f7a.js → configure-8e168d78acdf0cfe.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/consent/privacy-experience/{[id]-0edb7c92518e7d21.js → [id]-5ca2467de7986929.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/consent/privacy-experience/{new-a0039f216fb3eb93.js → new-06bb3b0bf097fcdb.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/consent/{privacy-experience-d8d926f0735a2546.js → privacy-experience-3c11fecc2797ab68.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/consent/privacy-notices/{[id]-5c949f2e3cef2398.js → [id]-92bc6c7b82a679b4.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/consent/privacy-notices/{new-130155cfb4a0bcc7.js → new-a3da3243526b7ecb.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/consent/{privacy-notices-1135ad8924d32c36.js → privacy-notices-b7d82386e7521041.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/consent/{properties-776855e370414beb.js → properties-20a2029b7e7fc895.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/consent/{reporting-21c23f75ff1135d9.js → reporting-0ce299131db4c3e5.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/{consent-4d5ea70a77df1bb8.js → consent-9f6a7a231bba17b7.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/data-catalog/[systemId]/projects/[projectUrn]/{[resourceUrn]-c623d6f1a61c8ea9.js → [resourceUrn]-11d52f1570759c4d.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/data-catalog/[systemId]/projects/{[projectUrn]-030ee304cbe5e530.js → [projectUrn]-fd705968b357e99a.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/data-catalog/[systemId]/{projects-cfac259a30641e68.js → projects-45b585deee0b2371.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/data-catalog/[systemId]/resources/{[resourceUrn]-57bd5cdf784f059f.js → [resourceUrn]-b83afa5565d0c84e.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/data-catalog/[systemId]/{resources-51d99174c8006eb5.js → resources-d8db234a44a2ddf4.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/{data-catalog-7b5aec33da578745.js → data-catalog-4fd60a74c0369e3e.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/action-center/[monitorId]/{[systemId]-c948f93c833d4358.js → [systemId]-e861699a8866c64b.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/action-center/{[monitorId]-333f53caab751428.js → [monitorId]-5dd2fbf33e228f9c.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/{action-center-27205f8457a1ecb0.js → action-center-806cae6bc128cd38.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/{activity-20a1043f6a06198f.js → activity-487285bd5eca2595.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/detection/{[resourceUrn]-06edce289876dea1.js → [resourceUrn]-393e20924c83373e.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/{detection-faf326a6200637d0.js → detection-8733807dad4bc96e.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/discovery/{[resourceUrn]-64acf269256ee74f.js → [resourceUrn]-14bd7500362ff224.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/{discovery-8c3e4be6d36da66d.js → discovery-9e7dfd5a6acc2e8f.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/{datamap-fb50de22f83edd4a.js → datamap-c9509d72c538d22b.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/dataset/[datasetId]/[collectionName]/{[...subfieldNames]-41ab27c4195cfa93.js → [...subfieldNames]-4e8a436297a055b2.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/dataset/[datasetId]/{[collectionName]-6e2caba24b3e78c2.js → [collectionName]-6ce02295bb7f5b6d.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/dataset/{[datasetId]-904d43e31157aa55.js → [datasetId]-9eaa907437fde063.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/dataset/new-de5e9ccfecdf31b1.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/{dataset-8f7d16bc5e9229c8.js → dataset-dcdec3644f05188d.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/datastore-connection/{[id]-4a33dd0371dbaebc.js → [id]-81ab412e337d2888.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/datastore-connection/{new-e88509346b2d2851.js → new-34dfc172165dbb1c.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/datastore-connection-cdb77886d7fd4f44.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/{index-1adb6bcb71701ac2.js → index-de954b741cbca022.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/integrations/{[id]-fdc2964fa7d1d8fd.js → [id]-dba625eddca48f69.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/integrations-40a3cd14264796e2.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/messaging/{[id]-9b4d1d61c7c97509.js → [id]-42edcab11e8b5c3c.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/messaging/{add-template-f8fd4795e260887c.js → add-template-333e54ac8c3ad57a.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/{messaging-aa744ae8b61e5ff2.js → messaging-8e1e6f3782983225.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/poc/{ant-components-3407158757fb3627.js → ant-components-25c74d51a49b2403.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/poc/form-experiments/{AntForm-47e947c02ae90fd0.js → AntForm-920338760f5a71b5.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/poc/form-experiments/{FormikAntFormItem-24f9a44512ce8827.js → FormikAntFormItem-7462fb387a9de3f8.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/poc/form-experiments/{FormikControlled-e567a69f8c37fb9a.js → FormikControlled-6148fce7a4e2e9ca.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/poc/form-experiments/{FormikField-35a33f9c7def2220.js → FormikField-30efd8c937bf19e4.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/poc/{forms-780e18dde8e38099.js → forms-c44de83e0952d1e0.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/poc/table-migration-7852aa60090c8c9a.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/privacy-requests/[id]-11dd6152bf6607cc.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/privacy-requests/configure/messaging-83a548813fec4f90.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/privacy-requests/configure/storage-a087847d6cbccc65.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/privacy-requests/{configure-1a1aa83a3f88844c.js → configure-1d981663e1a84166.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/privacy-requests-6a5794999a1cc0b6.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/properties/{[id]-19737d4f21aadbee.js → [id]-b08a69b1c460c7fe.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/properties/{add-property-9ccb295110feee20.js → add-property-a5d1c65ec21df69d.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/{properties-3a1037a2e036212a.js → properties-3a75c6ed8308d126.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/reporting/{datamap-4cdbbb8cd1d8698e.js → datamap-911996819aa16e04.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/settings/about/{alpha-965cc21889b25e44.js → alpha-6773158ba6ccf4b0.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/settings/{about-0e1c381d488a7ada.js → about-2e046d177d52465c.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/settings/consent/[configuration_id]/{[purpose_id]-d0e350d2a2667883.js → [purpose_id]-a5420c3ba02fe6a5.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/settings/consent-2a95eb36aa2b47a6.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/settings/{custom-fields-6f866bc799a5f67f.js → custom-fields-06075fbf122c98d0.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/settings/{domain-records-0b44b2b224077dcd.js → domain-records-2c7ecff0a8a74c42.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/settings/domains-afed8ba5498a9f93.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/settings/email-templates-c1d3f3cb9c6ca463.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/settings/{locations-811dadb489f23d7d.js → locations-8d4383584c72eb5a.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/settings/organization-aae79a344a96a367.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/settings/{regulations-54f142bc3e4c95ba.js → regulations-29892065d99ff113.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/systems/configure/[id]/test-datasets-9669fa6b20545530.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/systems/configure/{[id]-6eb886e7b7e6785b.js → [id]-8fa8a2f238e08791.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/{systems-7b71274334c559a4.js → systems-acdbdd3dfd21162f.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/taxonomy-9b4d28f02df3a238.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/user-management/{new-b124cc24b930c9e1.js → new-a2524414e968f862.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/user-management/profile/{[id]-75d41fde668b9025.js → [id]-87ed17fa1d9f8f72.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/{user-management-dd43755b687c09a7.js → user-management-6b4e0764bb8816b8.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/webpack-da78c536f3d86d06.js +1 -0
- fides/ui-build/static/admin/_next/static/css/{c693338e3bc8dcc6.css → 67ac3d00a5f134a2.css} +1 -1
- fides/ui-build/static/admin/_next/static/jg8bMUMFAG7KlEnEbTRct/_buildManifest.js +1 -0
- 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/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-headless.js +1 -1
- fides/ui-build/static/admin/lib/fides-preview.js +1 -1
- fides/ui-build/static/admin/lib/fides-tcf.js +2 -2
- 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/poc/ant-components.html +1 -1
- fides/ui-build/static/admin/poc/form-experiments/AntForm.html +1 -1
- fides/ui-build/static/admin/poc/form-experiments/FormikAntFormItem.html +1 -1
- fides/ui-build/static/admin/poc/form-experiments/FormikControlled.html +1 -1
- fides/ui-build/static/admin/poc/form-experiments/FormikField.html +1 -1
- fides/ui-build/static/admin/poc/form-experiments/FormikSpreadField.html +1 -1
- fides/ui-build/static/admin/poc/forms.html +1 -1
- fides/ui-build/static/admin/poc/table-migration.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/alpha.html +1 -1
- fides/ui-build/static/admin/settings/about.html +1 -1
- fides/ui-build/static/admin/settings/consent/[configuration_id]/[purpose_id].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/ui-build/static/admin/_next/static/chunks/1100-d43cb04522a6505c.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/2430-b480401d44c55416.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/3505-a79256cd851dfab4.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/3513-8677ee280eaef0da.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/3670-2abd9b2f17770872.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/3983-17ae9c232bddc413.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/4060-71cd041e5a57ca5a.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/4121-78a76e980acbd539.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/4481-f597a7cf03f8c9e1.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/6060-cb1ab5be7067bf7b.js +0 -4
- fides/ui-build/static/admin/_next/static/chunks/6277-3fb4c7fc790a6d20.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/6659-b2088f525bf13c17.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/6662-cb11881dcaabe5e2.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/69-6889d6674c95e7b5.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/7553-a95939c32d54b5b7.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/8433-adb1fcb29d82f1b7.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/9767-e49b065d03ce4e80.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/c78d26b1-88a3e1bacb2a03c2.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/add-systems-587e21d14e0a5196.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/dataset/new-d4e31a1c4a58800e.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/datastore-connection-8f9b8890018e1ea5.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/integrations-adc286ff254e7f41.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/poc/table-migration-7a17dffa515e5560.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/privacy-requests/[id]-91dd0039cc2b70bc.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/privacy-requests/configure/messaging-b01cbbaac34dadbc.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/privacy-requests/configure/storage-a15410de7f1d0f84.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/privacy-requests-c4e1b69fb5bab61a.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/settings/consent-7796fbf458f8f159.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/settings/domains-5d00e1155bd11178.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/settings/email-templates-d2cdbe770683e9df.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/settings/organization-24108f615ff5e1e7.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/systems/configure/[id]/test-datasets-fef247a87baeb080.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/taxonomy-18534d2a79a3850b.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/webpack-0a61b5bd21a41fe6.js +0 -1
- fides/ui-build/static/admin/_next/static/xYqpgK9yFhQK_wL_F_kAF/_buildManifest.js +0 -1
- {ethyca_fides-2.64.1b2.dist-info → ethyca_fides-2.64.2b0.dist-info}/WHEEL +0 -0
- {ethyca_fides-2.64.1b2.dist-info → ethyca_fides-2.64.2b0.dist-info}/entry_points.txt +0 -0
- {ethyca_fides-2.64.1b2.dist-info → ethyca_fides-2.64.2b0.dist-info}/licenses/LICENSE +0 -0
- {ethyca_fides-2.64.1b2.dist-info → ethyca_fides-2.64.2b0.dist-info}/top_level.txt +0 -0
- /fides/ui-build/static/admin/_next/static/{xYqpgK9yFhQK_wL_F_kAF → jg8bMUMFAG7KlEnEbTRct}/_ssgManifest.js +0 -0
@@ -1 +1 @@
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4065],{70378:function(e,t,i){(window.__NEXT_P=window.__NEXT_P||[]).push(["/settings/custom-fields",function(){return i(76513)}])},56358:function(e,t,i){"use strict";i.d(t,{q:function(){return s}});var l=i(24246);let s=(0,i(62051).IUT)({displayName:"TrashCanOutlineIcon",viewBox:"0 0 11 12",path:(0,l.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"})})},95492:function(e,t,i){"use strict";i.d(t,{l:function(){return s}});var l=i(24246);let s=(0,i(62051).IUT)({displayName:"TrashCanSolidIcon",viewBox:"0 0 12 15",path:(0,l.jsx)("path",{d:"M8.37857 1.18083C8.23393 0.892838 7.93661 0.710938 7.6125 0.710938H4.3875C4.06339 0.710938 3.76607 0.892838 3.62143 1.18083L3.42857 1.56094H0.857143C0.383036 1.56094 -1.19209e-07 1.94158 -1.19209e-07 2.41094C-1.19209e-07 2.8803 0.383036 3.26094 0.857143 3.26094H11.1429C11.6162 3.26094 12 2.8803 12 2.41094C12 1.94158 11.6162 1.56094 11.1429 1.56094H8.57143L8.37857 1.18083ZM11.167 4.11094H0.857143V12.6109C0.857143 13.5486 1.62589 14.3109 2.57143 14.3109H9.45268C10.3754 14.3109 11.167 13.5486 11.167 12.6109V4.11094ZM9.02411 6.23594V12.1859C9.02411 12.4197 8.80714 12.6109 8.59554 12.6109C8.33571 12.6109 8.16696 12.4197 8.16696 12.1859V6.23594C8.16696 6.00219 8.33571 5.81094 8.59554 5.81094C8.80714 5.81094 9.02411 6.00219 9.02411 6.23594ZM6.45268 6.23594V12.1859C6.45268 12.4197 6.23571 12.6109 6.02411 12.6109C5.76429 12.6109 5.57143 12.4197 5.57143 12.1859V6.23594C5.57143 6.00219 5.76429 5.81094 6.02411 5.81094C6.23571 5.81094 6.45268 6.00219 6.45268 6.23594ZM3.85714 6.23594V12.1859C3.85714 12.4197 3.66429 12.6109 3.42857 12.6109C3.19286 12.6109 3 12.4197 3 12.1859V6.23594C3 6.00219 3.19286 5.81094 3.42857 5.81094C3.66429 5.81094 3.85714 6.00219 3.85714 6.23594Z",fill:"currentColor"})})},77213:function(e,t,i){"use strict";i.d(t,{Z:function(){return p}});var l=i(24246),s=i(62051),n=i(88038),a=i.n(n),r=i(86677);i(27378);var o=i(25980),d=i(90867),c=i(77830),u=()=>{let e=(0,r.useRouter)();return(0,l.jsx)(s.xuv,{bg:"gray.50",border:"1px solid",borderColor:"blue.400",borderRadius:"md",justifyContent:"space-between",p:5,mb:5,mt:5,children:(0,l.jsxs)(s.xuv,{children:[(0,l.jsxs)(s.Kqy,{direction:{base:"column",sm:"row"},justifyContent:"space-between",children:[(0,l.jsx)(s.xvT,{fontWeight:"semibold",children:"Configure your storage and messaging provider"}),(0,l.jsx)(s.wpx,{onClick:()=>{e.push(c.fz)},children:"Configure"})]}),(0,l.jsxs)(s.xvT,{children:["Before Fides can process your privacy requests we need two simple steps to configure your storage and email client."," "]})]})})},p=e=>{let{children:t,title:i,padded:n=!0,mainProps:c}=e,p=(0,o.hz)(),x=(0,r.useRouter)(),m="/privacy-requests"===x.pathname||"/datastore-connection"===x.pathname,h=!(p.flags.privacyRequestsConfiguration&&m),{data:f}=(0,d.JE)(void 0,{skip:h}),{data:v}=(0,d.PW)(void 0,{skip:h}),g=p.flags.privacyRequestsConfiguration&&(!f||!v)&&m;return(0,l.jsxs)(s.kCb,{"data-testid":i,direction:"column",h:"100vh",children:[(0,l.jsxs)(a(),{children:[(0,l.jsxs)("title",{children:["Fides Admin UI - ",i]}),(0,l.jsx)("meta",{name:"description",content:"Privacy Engineering Platform"}),(0,l.jsx)("link",{rel:"icon",href:"/favicon.ico"})]}),(0,l.jsxs)(s.kCb,{as:"main",direction:"column",py:n?6:0,px:n?10:0,h:n?"calc(100% - 48px)":"full",flex:1,minWidth:0,overflow:"auto",...c,children:[g?(0,l.jsx)(u,{}):null,t]})]})}},58754:function(e,t,i){"use strict";var l=i(24246),s=i(62051),n=i(70788);t.Z=e=>{let{heading:t,breadcrumbItems:i,isSticky:a=!0,children:r,rightContent:o,style:d,...c}=e;return(0,l.jsxs)("div",{...c,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)(s.jqI,{justify:"space-between",children:["string"==typeof t?(0,l.jsx)(s.lQT,{className:i||r?"pb-4":void 0,level:1,"data-testid":"page-heading",children:t}):t,o&&(0,l.jsx)("div",{"data-testid":"page-header-right-content",children:o})]}),!!i&&(0,l.jsx)(n.m,{className:r?"pb-4":void 0,items:i,"data-testid":"page-breadcrumb"}),r]})}},19904:function(e,t,i){"use strict";i.d(t,{Tg:function(){return a}});var l=i(24246),s=i(16134),n=i(31793);let a=e=>(0,s.C)(n.uu).filter(t=>e.includes(t)).length>0;t.ZP=e=>{let{scopes:t,children:i}=e;return a(t)?(0,l.jsx)(l.Fragment,{children:i}):null}},94799:function(e,t,i){"use strict";i.d(t,{k:function(){return n}});var l=i(76649);let s=e=>(0,l.Ln)({id:"string"},e),n=e=>(null!=e?e:[]).filter(s)},30320:function(e,t,i){"use strict";i.d(t,{m:function(){return o}});var l=i(27378),s=i(25980),n=i(14047),a=i(32885),r=i(94799);let o=e=>{let{resourceFidesKey:t,resourceType:i}=e,{errorAlert:o}=(0,n.V)(),{plus:d}=(0,s.hz)(),c=(0,l.useMemo)(()=>null!=t?t:"",[]),u=(0,a.YU)(!0,{skip:!d}),p=(0,a.VN)(i,{skip:!d}),{data:x,isLoading:m,error:h,isError:f}=(0,a.PV)(null!=t?t:"",{skip:""!==c&&!(d&&c)}),[v]=(0,a._D)(),g=u.isLoading||p.isLoading||m,j=(0,l.useMemo)(()=>new Map((0,r.k)(u.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}))}]})),[u.data]),C=(0,l.useMemo)(()=>{var e;return null===(e=p.data)||void 0===e?void 0:e.filter(e=>e.active)},[p.data]),_=(0,l.useMemo)(()=>new Map((0,r.k)(C).map(e=>[e.id,e])),[C]),b=(0,l.useMemo)(()=>f&&(null==h?void 0:h.status)===404?new Map:new Map((0,r.k)(x).map(e=>[e.custom_field_definition_id,e])),[x,f,h]),y=(0,l.useMemo)(()=>{let e=[..._.keys()];return e.sort(),e},[_]),T=(0,l.useMemo)(()=>{let e={};return C&&b&&C.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},[C,b]),w=(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:s}=e;if(!s||0===Object.keys(s).length)return;let n=[],a=[];y.forEach(e=>{let t=b.get(e),i=s[e];void 0===i||""===i||Array.isArray(i)&&0===i.length?(null==t?void 0:t.id)&&a.push(t.id):n.push({custom_field_definition_id:e,resource_id:l,id:null==t?void 0:t.id,value:i})});try{await v({resource_type:i,resource_id:l,upsert:n,delete:a})}catch(e){o("One or more custom fields have failed to save, please try again."),console.error(e)}},[d,b,o,t,y,v,i]);return{customFieldValues:T,definitionIdToCustomField:b,idToAllowListWithOptions:j,idToCustomFieldDefinition:_,isEnabled:d,isLoading:g,sortedCustomFieldDefinitionIds:y,upsertCustomFields:w}}},70416:function(e,t,i){"use strict";i.d(t,{d:function(){return s}});var l=i(24246);let s=(0,i(62051).IUT)({displayName:"AddIcon",viewBox:"0 0 10 10",path:(0,l.jsx)("path",{d:"M4.33331 4.33398V0.333984H5.66665V4.33398H9.66665V5.66732H5.66665V9.66732H4.33331V5.66732H0.333313V4.33398H4.33331Z",fill:"currentColor"})})},95346:function(e,t,i){"use strict";i.d(t,{uc:function(){return v},Hn:function(){return o},Uv:function(){return a},C7:function(){return d},mZ:function(){return f.m}});var l,s,n,a,r=i(46420);(l=n||(n={}))[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",r.AL.STRING,r.AL.STRING_,(s=a||(a={})).SINGLE_SELECT="singleSelect",s.MULTIPLE_SELECT="multipleSelect",s.OPEN_TEXT="openText";let o=[{label:"Single select",value:"singleSelect"},{label:"Multiple select",value:"multipleSelect"},{label:"Open Text",value:"openText"}],d=[{label:"taxonomy:".concat(r.P6.DATA_CATEGORY),value:r.P6.DATA_CATEGORY},{label:"taxonomy:".concat(r.P6.DATA_SUBJECT),value:r.P6.DATA_SUBJECT},{label:"taxonomy:".concat(r.P6.DATA_USE),value:r.P6.DATA_USE},{label:"".concat(r.P6.SYSTEM,":information"),value:r.P6.SYSTEM},{label:"system:data use",value:r.P6.PRIVACY_DECLARATION}];var c=i(24246),u=i(62051),p=i(34090),x=i(30234),m=i(97181),h=i(40324),f=i(30320);let v=e=>{let{resourceFidesKey:t,resourceType:i}=e,{idToAllowListWithOptions:l,idToCustomFieldDefinition:s,isEnabled:n,isLoading:a,sortedCustomFieldDefinitionIds:o}=(0,f.m)({resourceFidesKey:t,resourceType:i});return n&&0!==o.length?(0,c.jsx)(x.Z,{heading:"Custom fields",children:(0,c.jsx)(u.kCb,{flexDir:"column","data-testid":"custom-fields-list",children:(0,c.jsx)(u.kCb,{flexDir:"column",gap:"24px",children:a?(0,c.jsx)(u.M5Y,{children:(0,c.jsx)(u.$jN,{})}):o.length>0&&(0,c.jsx)(u.kCb,{flexDirection:"column",gap:"12px",paddingBottom:"24px",children:o.map(e=>{let t=s.get(e);if(!t)return null;let i="customFieldValues.".concat(t.id);if(!t.allow_list_id&&t.field_type===r.AL.STRING)return(0,c.jsx)(p.gN,{name:i,children:e=>{let{field:i}=e;return(0,c.jsx)(h.j0,{...i,label:t.name,tooltip:t.description,variant:"stacked"})}},e);let n=l.get(t.allow_list_id);if(!n)return null;let{options:a}=n;return(0,c.jsx)(m.d,{name:i,allowClear:!0,mode:t.field_type!==r.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){"use strict";i.d(t,{d:function(){return d}});var l=i(24246),s=i(62051),n=i(34090),a=i(27378),r=i(46238),o=i(40324);let d=e=>{let{name:t,label:i,labelProps:d,tooltip:c,isRequired:u,layout:p="inline",helperText:x,...m}=e,[h,f,{setValue:v}]=(0,n.U$)(t),g=!!(f.touched&&f.error),[j,C]=(0,a.useState)("");h.value||"tags"!==m.mode&&"multiple"!==m.mode||(h.value=[]),"tags"===m.mode&&"string"==typeof h.value&&(h.value=[h.value]);let _="tags"===m.mode?(e,t)=>e?e.value!==j||h.value.includes(j)?m.optionRender?m.optionRender(e,t):e.label:'Create "'.concat(j,'"'):void 0:m.optionRender||void 0,b=e=>{C(e),m.onSearch&&m.onSearch(e)},y=(e,t)=>{v(e),m.onChange&&m.onChange(e,t)};return"inline"===p?(0,l.jsx)(s.NIc,{isInvalid:g,isRequired:u,children:(0,l.jsxs)(s.rjZ,{templateColumns:i?"1fr 3fr":"1fr",children:[i?(0,l.jsx)(o.__,{htmlFor:m.id||t,...d,children:i}):null,(0,l.jsxs)(s.jqI,{align:"center",children:[(0,l.jsxs)(s.jqI,{vertical:!0,flex:1,className:"mr-2",children:[(0,l.jsx)(s.WPr,{...h,id:m.id||t,"data-testid":"controlled-select-".concat(h.name),...m,optionRender:_,onSearch:"tags"===m.mode?b:void 0,onChange:y,value:h.value||void 0,status:g?"error":void 0}),x&&(0,l.jsx)(s.Q6r,{children:x}),(0,l.jsx)(o.Bc,{isInvalid:g,message:f.error,fieldName:h.name})]}),(0,l.jsx)(r.b,{label:c,className:g?"mt-2 self-start":void 0})]})]})}):(0,l.jsx)(s.NIc,{isInvalid:g,isRequired:u,children:(0,l.jsxs)(s.gCW,{alignItems:"start",children:[(0,l.jsxs)(s.jqI,{align:"center",children:[i?(0,l.jsx)(o.__,{htmlFor:m.id||t,fontSize:"xs",my:0,mr:1,...d,children:i}):null,(0,l.jsx)(r.b,{label:c})]}),(0,l.jsx)(s.WPr,{...h,id:m.id||t,"data-testid":"controlled-select-".concat(h.name),...m,optionRender:_,onSearch:"tags"===m.mode?b:void 0,onChange:y,value:h.value||void 0,status:g?"error":void 0}),x&&(0,l.jsx)(s.Q6r,{style:{marginTop:0},children:x}),(0,l.jsx)(o.Bc,{isInvalid:g,message:f.error,fieldName:h.name})]})})}},10342:function(e,t,i){"use strict";var l=i(24246),s=i(62051),n=i(46238);t.Z=e=>{let{title:t,tooltip:i,children:a,...r}=e;return(0,l.jsxs)(s.xuv,{borderRadius:"md",border:"1px solid",borderColor:"gray.200",...r,children:[(0,l.jsxs)(s.X6q,{as:"h3",fontSize:"sm",fontWeight:"semibold",color:"gray.700",py:4,px:6,backgroundColor:"gray.50",borderRadius:"md",textAlign:"left",children:[t,i?(0,l.jsx)(s.xvT,{as:"span",mx:1,children:(0,l.jsx)(n.b,{label:i})}):void 0]}),(0,l.jsx)(s.Kqy,{p:6,spacing:6,children:a})]})}},14047:function(e,t,i){"use strict";i.d(t,{H:function(){return n},V:function(){return l.V}});var l=i(84306),s=i(812);let n=()=>{let{errorAlert:e}=(0,l.V)();return{handleError:t=>{let i="An unexpected error occurred. Please try again.";(0,s.Ot)(t)?i=t.data.detail:(0,s.tB)(t)&&(i=t.data.detail[0].msg),e(i)}}}},84306:function(e,t,i){"use strict";i.d(t,{V:function(){return n}});var l=i(24246),s=i(62051);let n=()=>{let e=(0,s.pmc)();return{errorAlert:(t,i,n)=>{let a={...n,position:(null==n?void 0:n.position)||"top",render:e=>{let{onClose:n}=e;return(0,l.jsxs)(s.bZj,{alignItems:"normal",status:"error","data-testid":"error-alert",children:[(0,l.jsx)(s.zMQ,{}),(0,l.jsxs)(s.xuv,{children:[i&&(0,l.jsx)(s.CdC,{children:i}),(0,l.jsx)(s.XaZ,{children:t})]}),(0,l.jsx)(s.PZ7,{onClick:n,position:"relative",right:0,size:"sm",top:-1})]})}};(null==n?void 0:n.id)&&e.isActive(n.id)?e.update(n.id,a):e(a)},successAlert:(t,i,n)=>{let a={...n,position:(null==n?void 0:n.position)||"top",render:e=>{let{onClose:n}=e;return(0,l.jsxs)(s.bZj,{alignItems:"normal",status:"success",variant:"subtle","data-testid":"success-alert",children:[(0,l.jsx)(s.zMQ,{}),(0,l.jsxs)(s.xuv,{children:[i&&(0,l.jsx)(s.CdC,{children:i}),(0,l.jsx)(s.XaZ,{children:t})]}),(0,l.jsx)(s.PZ7,{onClick:n,position:"relative",right:0,size:"sm",top:-1})]})}};(null==n?void 0:n.id)&&e.isActive(n.id)?e.update(n.id,a):e(a)}}}},70788:function(e,t,i){"use strict";i.d(t,{m:function(){return d}});var l=i(24246),s=i(62051),n=i(79894),a=i.n(n),r=i(27378);let{Text:o}=s.AntTypography,d=e=>{let{items:t,...i}=e,n=(0,r.useMemo)(()=>null==t?void 0:t.map((e,i)=>{let n=i===t.length-1,r={...e},d=r.onClick&&!r.href;return("string"==typeof r.title&&(r.title=(0,l.jsx)(o,{style:{color:"inherit",maxWidth:n?void 0:400},ellipsis:!n,children:r.title})),d)?r.title=(0,l.jsx)(s.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,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("span",{className:"anticon align-text-bottom",children:r.icon}),r.title]})),r.href&&r.title&&(r.title=(0,l.jsx)(a(),{href:r.href,className:"ant-breadcrumb-link",children:r.title}),delete r.href)),r}),[t]);return(0,l.jsx)(s.zrq,{items:n,...i})}},30234:function(e,t,i){"use strict";var l=i(24246),s=i(62051);t.Z=e=>{let{heading:t,HeadingButton:i,children:n}=e;return(0,l.jsx)(s.Kqy,{spacing:4,children:(0,l.jsxs)(s.xuv,{maxWidth:"720px",border:"1px",borderColor:"gray.200",borderRadius:6,overflow:"visible",mt:6,children:[(0,l.jsxs)(s.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)(s.X6q,{as:"h3",size:"xs",children:t}),i?(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(s.LZC,{}),(0,l.jsx)(i,{})]}):null]}),(0,l.jsx)(s.Kqy,{spacing:4,px:6,py:6,children:n})]})})}},76513:function(e,t,i){"use strict";i.r(t),i.d(t,{default:function(){return X}});var l=i(24246),s=i(77213),n=i(62051),a=i(27378),r=i(58754),o=i(92222),d=i(59003),c=i(16134),u=i(812),p=i(19904),x=i(14481),m=i(46628),h=i(72625),f=i(46420);let v=new Map([["string","Single Select"],["string[]","Multi Select"],["open-text","Open Text"]]),g=new Map([[f.P6.SYSTEM,"system:information"],[f.P6.DATA_USE,"taxonomy:data use"],[f.P6.DATA_CATEGORY,"taxonomy:data category"],[f.P6.DATA_SUBJECT,"taxonomy:data subject"],[f.P6.PRIVACY_DECLARATION,"system:data use"]]);var j=i(32885);let C=e=>{var t;let i=null!==(t=g.get(e.getValue()))&&void 0!==t?t:e.getValue();return(0,l.jsx)(h.G3,{...e,value:i})},_=e=>{let{row:t,getValue:i}=e,s=t.original.allow_list_id?i():"open-text",n=v.get(s)||s;return(0,l.jsx)(h.A4,{value:n})},b=e=>{let{row:t,getValue:i,isDisabled:s}=e,n=!!i(),[a]=(0,j.yM)(),r=async e=>a({...t.original,active:e});return(0,l.jsx)(h.S1,{enabled:n,onToggle:r,title:"Disable custom field",message:"Are you sure you want to disable this custom field?",isDisabled:s,"aria-label":n?"Disable custom field":"Enable custom field"})};var y=i(56358),T=i(58452);let w=e=>{let{customField:t,onEdit:i,onDelete:s,...a}=e,r=(0,n.qY0)();return(0,l.jsxs)(n.xuv,{...a,children:[(0,l.jsx)(n.wpx,{"aria-label":"Edit property","data-testid":"edit-property-button",size:"small",className:"mr-[10px]",icon:(0,l.jsx)(n.dY8,{}),onClick:e=>{e.stopPropagation(),i(t,e)}}),(0,l.jsx)(n.wpx,{"aria-label":"Delete property","data-testid":"delete-property-button",size:"small",className:"mr-[10px]",icon:(0,l.jsx)(y.q,{}),onClick:e=>{e.stopPropagation(),r.onOpen()}}),(0,l.jsx)(T.Z,{isOpen:r.isOpen,onClose:r.onClose,onConfirm:()=>{s(t),r.onClose()},title:"Delete custom field",message:(0,l.jsx)(n.xvT,{color:"gray.500",children:"Are you sure you want to delete this custom field? This will remove the custom field and all stored values and this action can't be undone."}),continueButtonText:"Confirm",isCentered:!0,icon:(0,l.jsx)(n.aNP,{})})]})};var S=i(95346),E=i(14047),L=i(34090),R=i(55484);let I={color:"gray.600",fontSize:"14px",fontWeight:"semibold",minWidth:"150px"};var A=e=>{let{customLabelProps:t,disabled:i=!1,isRequired:s=!1,label:a,type:r="text",placeholder:o,...d}=e,[c,u]=(0,L.U$)(d),{id:p,name:x,autoFocus:m}=d,h="custom-input-".concat(c.name);return(0,l.jsxs)(n.NIc,{display:"flex",isRequired:s,isInvalid:!!(u.error&&u.touched),children:[a&&(0,l.jsx)(n.lXp,{htmlFor:p||x,...t||I,children:a}),(0,l.jsxs)(n.gCW,{align:"flex-start",w:"inherit",children:["number"===r&&(0,l.jsxs)(n.Y2U,{allowMouseWheel:!0,color:"gray.700",defaultValue:0,min:0,size:"sm",children:[(0,l.jsx)(n.zuI,{...c,autoComplete:"off",autoFocus:m,"data-testid":h}),(0,l.jsxs)(n.FiK,{children:[(0,l.jsx)(n.WQu,{}),(0,l.jsx)(n.Y_d,{})]})]}),"text"===r&&(0,l.jsx)(n.IIB,{...c,autoComplete:"off",autoFocus:m,color:"gray.700",isDisabled:i,placeholder:o,size:"sm","data-testid":h}),"textarea"===r&&(0,l.jsx)(n.gxH,{...c,autoComplete:"off",autoFocus:m,color:"gray.700",placeholder:o,resize:"none",size:"sm",value:c.value||"","data-testid":h}),(0,l.jsx)(n.J1D,{children:u.error})]})]})},M=i(70416),N=i(10342),k=i(95492),P=i(97181);let O={...I,minWidth:"unset"},V=e=>{let{values:t,validationSchema:i,errors:s,dirty:r,isValid:o,isSubmitting:d,isLoading:c,onClose:u,handleDropdownChange:p,isEditing:x}=e,{validateForm:m}=(0,L.u6)();return(0,a.useEffect)(()=>{m()},[i,m]),(0,l.jsxs)(L.l0,{style:{paddingTop:"12px",paddingBottom:"12px"},children:[(0,l.jsx)(n.xuv,{py:3,children:(0,l.jsxs)(N.Z,{title:"Field Information",children:[(0,l.jsx)(A,{isRequired:!0,label:"Name",name:"name",customLabelProps:O}),(0,l.jsx)(A,{label:"Description",name:"description",customLabelProps:O}),(0,l.jsx)(P.d,{label:"Location",name:"resource_type",options:S.C7,labelProps:O,disabled:x})]})}),(0,l.jsx)(n.xuv,{py:3,children:(0,l.jsxs)(N.Z,{title:"Configuration",children:[(0,l.jsx)(P.d,{label:"Field Type",name:"field_type",labelProps:O,options:S.Hn,onChange:p}),t.field_type!==S.Uv.OPEN_TEXT?(0,l.jsx)(n.kCb,{flexDirection:"column",gap:"12px",paddingTop:"6px",paddingBottom:"24px",children:(0,l.jsx)(L.F2,{name:"allow_list.allowed_values",render:e=>{let{allowed_values:i}=t.allow_list;return(0,l.jsxs)(n.kCb,{flexDirection:"column",gap:"6",pl:"6",children:[(0,l.jsx)(n.kCb,{flexDirection:"column",children:i.map((t,s)=>(0,l.jsxs)(n.kCb,{flexGrow:1,gap:"3",mt:s>0?3:void 0,children:[(0,l.jsx)(A,{customLabelProps:{color:"gray.600",fontSize:"sm",fontWeight:"500",lineHeight:"20px",minW:"126px",pr:"8px"},isRequired:!0,label:"List item ".concat(s+1),name:"allow_list.allowed_values[".concat(s,"]")}),(0,l.jsx)(n.wpx,{"aria-label":"Remove this list value","data-testid":"remove-list-value-btn-".concat(s),icon:(0,l.jsx)(k.l,{}),disabled:i.length<=1,onClick:()=>e.remove(s),type:"text"})]},s))}),(0,l.jsxs)(n.kCb,{alignItems:"center",children:[(0,l.jsx)(n.xvT,{color:"gray.600",fontSize:"xs",fontWeight:"500",lineHeight:"16px",pr:"8px",children:"Add a list value"}),(0,l.jsx)(n.wpx,{"aria-label":"Add a list value","data-testid":"add-list-value-btn",icon:(0,l.jsx)(M.d,{h:"7px",w:"7px"}),onClick:()=>{e.push("")},size:"small"}),0===i.length&&(null==s?void 0:s.allow_list)?(0,l.jsx)(n.xvT,{color:"red.500",pl:"18px",size:"sm",children:s.allow_list.allowed_values}):null]})]})}})}):null]})}),(0,l.jsxs)(n.kCb,{justifyContent:"space-between",width:"100%",children:[(0,l.jsx)(n.wpx,{onClick:u,disabled:c||d,className:"mr-3","data-testid":"cancel-btn",children:"Cancel"}),(0,l.jsx)(n.wpx,{htmlType:"submit",type:"primary","data-testid":"save-btn",loading:c,disabled:!r||!o||d,children:"Save"})]})]})},D={description:"",field_type:S.Uv.OPEN_TEXT,name:"",resource_type:f.P6.SYSTEM,allow_list:{name:"",description:"",allowed_values:[]}},U=R.IX(R.Z_().optional().label("allowed_values")),H=R.IX(R.Z_().required("List item is required")).min(1,"Must add at least one list value").label("allowed_values"),Z=R.Ry().shape({name:R.Z_().required("Name is required").trim(),allow_list:R.Ry().shape({allowed_values:U})}),z=R.Ry().shape({name:R.Z_().required("Name is required").trim(),allow_list:R.Ry().shape({allowed_values:H})}),F=(e,t)=>{var i,l,s;let n;if(!e)return;e.field_type!==f.AL.STRING||e.allow_list_id||(n=S.Uv.OPEN_TEXT),e.field_type===f.AL.STRING&&e.allow_list_id&&(n=S.Uv.SINGLE_SELECT),e.field_type===f.AL.STRING_&&e.allow_list_id&&(n=S.Uv.MULTIPLE_SELECT);let a=t?{name:null!==(i=t.name)&&void 0!==i?i:"",description:null!==(l=t.description)&&void 0!==l?l:"",allowed_values:null!==(s=t.allowed_values)&&void 0!==s?s:[]}:D.allow_list;return{...e,field_type:n||S.Uv.OPEN_TEXT,allow_list:a}},q=e=>{let{isOpen:t,onClose:i,isLoading:s,customField:r}=e,{errorAlert:o,successAlert:d}=(0,E.V)(),[c]=(0,j.Ld)(),[p]=(0,j.yM)(),[x]=(0,j.Nt)(),{data:m,isLoading:h}=(0,j.vA)(null==r?void 0:r.allow_list_id,{skip:!(null==r?void 0:r.allow_list_id)}),[v,g]=(0,a.useState)(Z);if(h||!t)return null;let C=F(r,m),_=!!C,b=e=>{e===S.Uv.OPEN_TEXT?g(Z):g(z)},y=async e=>{if([S.Uv.SINGLE_SELECT,S.Uv.MULTIPLE_SELECT].includes(e.field_type)){var t,l;if(new Set(null===(t=e.allow_list)||void 0===t?void 0:t.allowed_values.map(e=>e.toLowerCase().trim()).map(e=>e)).size<e.allow_list.allowed_values.length){o("List item value must be unique");return}let{allow_list:i}=e;e.allow_list_id&&(i.id=e.allow_list_id),i.name||(i.name=Date.now().toString()+Math.random().toString());let s=await x(i);(0,u.D4)(s)||e.allow_list_id||(e.allow_list_id=null===(l=s.data)||void 0===l?void 0:l.id)}e.field_type===S.Uv.OPEN_TEXT&&(e.allow_list_id=void 0),[S.Uv.SINGLE_SELECT,S.Uv.OPEN_TEXT].includes(e.field_type)&&(e.field_type=f.AL.STRING),e.field_type===S.Uv.MULTIPLE_SELECT&&(e.field_type=f.AL.STRING_);let s={...e};delete s.allow_list;let n=r?await p(s):await c(s);(0,u.D4)(n)?o((0,u.e$)(n.error),"Custom field has failed to save due to the following:"):(i(),d("Custom field successfully saved"))};return(0,l.jsxs)(n.u_l,{id:"custom-field-modal-hello-world",isOpen:t,onClose:i,size:"lg",returnFocusOnClose:!1,isCentered:!0,children:[(0,l.jsx)(n.ZAr,{}),(0,l.jsxs)(n.hzk,{id:"modal-content","data-testid":"custom-field-modal",maxHeight:"80%",overflowY:"auto",children:[(0,l.jsx)(n.xBx,{id:"modal-header",fontWeight:"semibold",lineHeight:5,fontSize:"sm",py:"18px",px:6,height:"56px",backgroundColor:"gray.50",borderColor:"gray.200",borderWidth:"0px 0px 1px 1p",borderTopRightRadius:"8px",borderTopLeftRadius:"8px",boxSizing:"border-box",children:r?"Manage Custom Field":"Add a custom field"}),(0,l.jsx)(n.fef,{px:6,py:0,children:(0,l.jsx)(L.J9,{initialValues:C||D,validationSchema:v,onSubmit:y,enableReinitialize:!0,validateOnChange:!0,children:e=>(0,l.jsx)(V,{isEditing:_,validationSchema:v,isLoading:s,onClose:i,handleDropdownChange:b,...e})})})]})]})},W="Add a custom field",G=()=>(0,l.jsx)(n.gCW,{mt:6,p:10,spacing:4,borderRadius:"base",maxW:"70%","data-testid":"no-results-notice",alignSelf:"center",margin:"auto",textAlign:"center",children:(0,l.jsxs)(n.gCW,{children:[(0,l.jsx)(n.xvT,{fontSize:"md",fontWeight:"600",children:"It looks like it’s your first time here!"}),(0,l.jsxs)(n.xvT,{fontSize:"sm",children:["You haven’t created any custom fields yet.",(0,l.jsx)("br",{}),"To create a custom field, click on the"," ",(0,l.jsxs)("strong",{children:['"',W,'"']})," button"]})]})}),B=(0,o.Cl)(),Y=e=>{let{...t}=e,i=(0,n.pmc)(),{isLoading:s}=(0,j.GH)(),r=(0,c.C)(j.fN),[h]=(0,j.UF)(),{isOpen:v,onClose:g,onOpen:y}=(0,n.qY0)(),[T,S]=(0,a.useState)(),[E,L]=(0,a.useState)(),R=(0,p.Tg)([f.Sh.CUSTOM_FIELD_UPDATE]),I=(0,p.Tg)([f.Sh.CUSTOM_FIELD_DELETE]),A=e=>{R&&(S(e),y())},M=async e=>{if(I&&e.id){let t=await h({id:e.id});if((0,u.D4)(t)){i((0,m.Vo)((0,u.e$)(t.error)));return}i((0,m.t5)("Custom field deleted"))}},N=(0,a.useMemo)(()=>[B.accessor(e=>e.name,{id:"name",cell:e=>(0,l.jsx)(x.G3,{value:e.getValue(),cellProps:e}),header:e=>(0,l.jsx)(x.Rr,{value:"Label",...e})}),B.accessor(e=>e.description,{id:"description",cell:e=>(0,l.jsx)(x.G3,{value:e.getValue(),cellProps:e}),header:e=>(0,l.jsx)(x.Rr,{value:"Description",...e}),meta:{showHeaderMenu:!0}}),B.accessor(e=>e.field_type,{id:"field_type",cell:_,header:e=>(0,l.jsx)(x.Rr,{value:"Field Type",...e})}),B.accessor(e=>e.resource_type,{id:"resource_type",cell:C,header:e=>(0,l.jsx)(x.Rr,{value:"Locations",...e})}),R&&B.accessor(e=>e.active,{id:"enable",cell:b,header:e=>(0,l.jsx)(x.Rr,{value:"Enable",...e}),meta:{disableRowClick:!0}}),(R||I)&&B.display({id:"actions",header:"Actions",cell:e=>{let{row:t}=e;return(0,l.jsx)(w,{customField:t.original,onEdit:A,onDelete:M})},meta:{disableRowClick:!0}})].filter(Boolean),[I,R]),k=(0,d.b7)({getCoreRowModel:(0,o.sC)(),getFilteredRowModel:(0,o.vL)(),getSortedRowModel:(0,o.tj)(),onGlobalFilterChange:L,globalFilterFn:"includesString",columns:N,data:r,state:{globalFilter:E},columnResizeMode:"onChange"});return(0,l.jsxs)(n.xuv,{...t,children:[(0,l.jsx)(n.xuv,{maxWidth:600,children:(0,l.jsx)(n.xvT,{mb:10,fontSize:"sm",children:r.length>0?"Custom fields enable you to capture metrics specific to your organization and have those metrics appear in the data map and in reports.":"Custom fields provide organizations with the capability to capture metrics that are unique to their specific needs, allowing them to create customized reports. These fields can be added to either systems or elements within a taxonomy, and once added, they become reportable fields that are visible on the data map."})}),(0,l.jsxs)(n.xuv,{"data-testid":"custom-fields-page",children:[(0,l.jsxs)(x.Q$,{children:[(0,l.jsx)(x.HO,{globalFilter:E,setGlobalFilter:L,placeholder:"Search for a custom field"}),(0,l.jsx)(n.Ugi,{alignItems:"center",spacing:4,children:(0,l.jsx)(()=>(0,l.jsx)(p.ZP,{scopes:[f.Sh.CUSTOM_FIELD_DEFINITION_CREATE],children:(0,l.jsx)(n.wpx,{type:"primary","data-testid":"add-custom-field-btn",onClick:y,children:W})}),{})})]}),s?(0,l.jsx)(n.xuv,{p:2,borderWidth:1,children:(0,l.jsx)(x.I4,{rowHeight:26,numRows:10})}):(0,l.jsx)(x.ZK,{tableInstance:k,onRowClick:R?A:void 0,emptyTableNotice:(0,l.jsx)(G,{}),enableSorting:!0}),v&&(0,l.jsx)(q,{customField:T,isOpen:v,onClose:()=>{S(void 0),g()},isLoading:!1})]})]})};var X=()=>(0,l.jsx)(s.Z,{title:"Custom fields",children:(0,l.jsxs)(n.xuv,{"data-testid":"custom-fields-management",children:[(0,l.jsx)(r.Z,{heading:"Custom fields"}),(0,l.jsx)(Y,{})]})})}},function(e){e.O(0,[8033,6060,7553,4481,2888,9774,179],function(){return e(e.s=70378)}),_N_E=e.O()}]);
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4065],{70378:function(e,t,i){(window.__NEXT_P=window.__NEXT_P||[]).push(["/settings/custom-fields",function(){return i(76513)}])},56358:function(e,t,i){"use strict";i.d(t,{q:function(){return s}});var l=i(24246);let s=(0,i(38355).IUT)({displayName:"TrashCanOutlineIcon",viewBox:"0 0 11 12",path:(0,l.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"})})},95492:function(e,t,i){"use strict";i.d(t,{l:function(){return s}});var l=i(24246);let s=(0,i(38355).IUT)({displayName:"TrashCanSolidIcon",viewBox:"0 0 12 15",path:(0,l.jsx)("path",{d:"M8.37857 1.18083C8.23393 0.892838 7.93661 0.710938 7.6125 0.710938H4.3875C4.06339 0.710938 3.76607 0.892838 3.62143 1.18083L3.42857 1.56094H0.857143C0.383036 1.56094 -1.19209e-07 1.94158 -1.19209e-07 2.41094C-1.19209e-07 2.8803 0.383036 3.26094 0.857143 3.26094H11.1429C11.6162 3.26094 12 2.8803 12 2.41094C12 1.94158 11.6162 1.56094 11.1429 1.56094H8.57143L8.37857 1.18083ZM11.167 4.11094H0.857143V12.6109C0.857143 13.5486 1.62589 14.3109 2.57143 14.3109H9.45268C10.3754 14.3109 11.167 13.5486 11.167 12.6109V4.11094ZM9.02411 6.23594V12.1859C9.02411 12.4197 8.80714 12.6109 8.59554 12.6109C8.33571 12.6109 8.16696 12.4197 8.16696 12.1859V6.23594C8.16696 6.00219 8.33571 5.81094 8.59554 5.81094C8.80714 5.81094 9.02411 6.00219 9.02411 6.23594ZM6.45268 6.23594V12.1859C6.45268 12.4197 6.23571 12.6109 6.02411 12.6109C5.76429 12.6109 5.57143 12.4197 5.57143 12.1859V6.23594C5.57143 6.00219 5.76429 5.81094 6.02411 5.81094C6.23571 5.81094 6.45268 6.00219 6.45268 6.23594ZM3.85714 6.23594V12.1859C3.85714 12.4197 3.66429 12.6109 3.42857 12.6109C3.19286 12.6109 3 12.4197 3 12.1859V6.23594C3 6.00219 3.19286 5.81094 3.42857 5.81094C3.66429 5.81094 3.85714 6.00219 3.85714 6.23594Z",fill:"currentColor"})})},77213:function(e,t,i){"use strict";i.d(t,{Z:function(){return p}});var l=i(24246),s=i(38355),n=i(88038),a=i.n(n),r=i(86677);i(27378);var o=i(25980),d=i(90867),c=i(77830),u=()=>{let e=(0,r.useRouter)();return(0,l.jsx)(s.xuv,{bg:"gray.50",border:"1px solid",borderColor:"blue.400",borderRadius:"md",justifyContent:"space-between",p:5,mb:5,mt:5,children:(0,l.jsxs)(s.xuv,{children:[(0,l.jsxs)(s.Kqy,{direction:{base:"column",sm:"row"},justifyContent:"space-between",children:[(0,l.jsx)(s.xvT,{fontWeight:"semibold",children:"Configure your storage and messaging provider"}),(0,l.jsx)(s.wpx,{onClick:()=>{e.push(c.fz)},children:"Configure"})]}),(0,l.jsxs)(s.xvT,{children:["Before Fides can process your privacy requests we need two simple steps to configure your storage and email client."," "]})]})})},p=e=>{let{children:t,title:i,padded:n=!0,mainProps:c}=e,p=(0,o.hz)(),x=(0,r.useRouter)(),m="/privacy-requests"===x.pathname||"/datastore-connection"===x.pathname,h=!(p.flags.privacyRequestsConfiguration&&m),{data:f}=(0,d.JE)(void 0,{skip:h}),{data:v}=(0,d.PW)(void 0,{skip:h}),g=p.flags.privacyRequestsConfiguration&&(!f||!v)&&m;return(0,l.jsxs)(s.kCb,{"data-testid":i,direction:"column",h:"100vh",children:[(0,l.jsxs)(a(),{children:[(0,l.jsxs)("title",{children:["Fides Admin UI - ",i]}),(0,l.jsx)("meta",{name:"description",content:"Privacy Engineering Platform"}),(0,l.jsx)("link",{rel:"icon",href:"/favicon.ico"})]}),(0,l.jsxs)(s.kCb,{as:"main",direction:"column",py:n?6:0,px:n?10:0,h:n?"calc(100% - 48px)":"full",flex:1,minWidth:0,overflow:"auto",...c,children:[g?(0,l.jsx)(u,{}):null,t]})]})}},58754:function(e,t,i){"use strict";var l=i(24246),s=i(38355),n=i(70788);t.Z=e=>{let{heading:t,breadcrumbItems:i,isSticky:a=!0,children:r,rightContent:o,style:d,...c}=e;return(0,l.jsxs)("div",{...c,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)(s.jqI,{justify:"space-between",children:["string"==typeof t?(0,l.jsx)(s.lQT,{className:i||r?"pb-4":void 0,level:1,"data-testid":"page-heading",children:t}):t,o&&(0,l.jsx)("div",{"data-testid":"page-header-right-content",children:o})]}),!!i&&(0,l.jsx)(n.m,{className:r?"pb-4":void 0,items:i,"data-testid":"page-breadcrumb"}),r]})}},19904:function(e,t,i){"use strict";i.d(t,{Tg:function(){return a}});var l=i(24246),s=i(16134),n=i(31793);let a=e=>(0,s.C)(n.uu).filter(t=>e.includes(t)).length>0;t.ZP=e=>{let{scopes:t,children:i}=e;return a(t)?(0,l.jsx)(l.Fragment,{children:i}):null}},94799:function(e,t,i){"use strict";i.d(t,{k:function(){return n}});var l=i(76649);let s=e=>(0,l.Ln)({id:"string"},e),n=e=>(null!=e?e:[]).filter(s)},30320:function(e,t,i){"use strict";i.d(t,{m:function(){return o}});var l=i(27378),s=i(25980),n=i(14047),a=i(32885),r=i(94799);let o=e=>{let{resourceFidesKey:t,resourceType:i}=e,{errorAlert:o}=(0,n.V)(),{plus:d}=(0,s.hz)(),c=(0,l.useMemo)(()=>null!=t?t:"",[]),u=(0,a.YU)(!0,{skip:!d}),p=(0,a.VN)(i,{skip:!d}),{data:x,isLoading:m,error:h,isError:f}=(0,a.PV)(null!=t?t:"",{skip:""!==c&&!(d&&c)}),[v]=(0,a._D)(),g=u.isLoading||p.isLoading||m,j=(0,l.useMemo)(()=>new Map((0,r.k)(u.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}))}]})),[u.data]),C=(0,l.useMemo)(()=>{var e;return null===(e=p.data)||void 0===e?void 0:e.filter(e=>e.active)},[p.data]),_=(0,l.useMemo)(()=>new Map((0,r.k)(C).map(e=>[e.id,e])),[C]),b=(0,l.useMemo)(()=>f&&(null==h?void 0:h.status)===404?new Map:new Map((0,r.k)(x).map(e=>[e.custom_field_definition_id,e])),[x,f,h]),y=(0,l.useMemo)(()=>{let e=[..._.keys()];return e.sort(),e},[_]),T=(0,l.useMemo)(()=>{let e={};return C&&b&&C.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},[C,b]),w=(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:s}=e;if(!s||0===Object.keys(s).length)return;let n=[],a=[];y.forEach(e=>{let t=b.get(e),i=s[e];void 0===i||""===i||Array.isArray(i)&&0===i.length?(null==t?void 0:t.id)&&a.push(t.id):n.push({custom_field_definition_id:e,resource_id:l,id:null==t?void 0:t.id,value:i})});try{await v({resource_type:i,resource_id:l,upsert:n,delete:a})}catch(e){o("One or more custom fields have failed to save, please try again."),console.error(e)}},[d,b,o,t,y,v,i]);return{customFieldValues:T,definitionIdToCustomField:b,idToAllowListWithOptions:j,idToCustomFieldDefinition:_,isEnabled:d,isLoading:g,sortedCustomFieldDefinitionIds:y,upsertCustomFields:w}}},70416:function(e,t,i){"use strict";i.d(t,{d:function(){return s}});var l=i(24246);let s=(0,i(38355).IUT)({displayName:"AddIcon",viewBox:"0 0 10 10",path:(0,l.jsx)("path",{d:"M4.33331 4.33398V0.333984H5.66665V4.33398H9.66665V5.66732H5.66665V9.66732H4.33331V5.66732H0.333313V4.33398H4.33331Z",fill:"currentColor"})})},95346:function(e,t,i){"use strict";i.d(t,{uc:function(){return v},Hn:function(){return o},Uv:function(){return a},C7:function(){return d},mZ:function(){return f.m}});var l,s,n,a,r=i(46420);(l=n||(n={}))[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",r.AL.STRING,r.AL.STRING_,(s=a||(a={})).SINGLE_SELECT="singleSelect",s.MULTIPLE_SELECT="multipleSelect",s.OPEN_TEXT="openText";let o=[{label:"Single select",value:"singleSelect"},{label:"Multiple select",value:"multipleSelect"},{label:"Open Text",value:"openText"}],d=[{label:"taxonomy:".concat(r.P6.DATA_CATEGORY),value:r.P6.DATA_CATEGORY},{label:"taxonomy:".concat(r.P6.DATA_SUBJECT),value:r.P6.DATA_SUBJECT},{label:"taxonomy:".concat(r.P6.DATA_USE),value:r.P6.DATA_USE},{label:"".concat(r.P6.SYSTEM,":information"),value:r.P6.SYSTEM},{label:"system:data use",value:r.P6.PRIVACY_DECLARATION}];var c=i(24246),u=i(38355),p=i(34090),x=i(30234),m=i(97181),h=i(40324),f=i(30320);let v=e=>{let{resourceFidesKey:t,resourceType:i}=e,{idToAllowListWithOptions:l,idToCustomFieldDefinition:s,isEnabled:n,isLoading:a,sortedCustomFieldDefinitionIds:o}=(0,f.m)({resourceFidesKey:t,resourceType:i});return n&&0!==o.length?(0,c.jsx)(x.Z,{heading:"Custom fields",children:(0,c.jsx)(u.kCb,{flexDir:"column","data-testid":"custom-fields-list",children:(0,c.jsx)(u.kCb,{flexDir:"column",gap:"24px",children:a?(0,c.jsx)(u.M5Y,{children:(0,c.jsx)(u.$jN,{})}):o.length>0&&(0,c.jsx)(u.kCb,{flexDirection:"column",gap:"12px",paddingBottom:"24px",children:o.map(e=>{let t=s.get(e);if(!t)return null;let i="customFieldValues.".concat(t.id);if(!t.allow_list_id&&t.field_type===r.AL.STRING)return(0,c.jsx)(p.gN,{name:i,children:e=>{let{field:i}=e;return(0,c.jsx)(h.j0,{...i,label:t.name,tooltip:t.description,variant:"stacked"})}},e);let n=l.get(t.allow_list_id);if(!n)return null;let{options:a}=n;return(0,c.jsx)(m.d,{name:i,allowClear:!0,mode:t.field_type!==r.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){"use strict";i.d(t,{d:function(){return d}});var l=i(24246),s=i(38355),n=i(34090),a=i(27378),r=i(46238),o=i(40324);let d=e=>{let{name:t,label:i,labelProps:d,tooltip:c,isRequired:u,layout:p="inline",helperText:x,...m}=e,[h,f,{setValue:v}]=(0,n.U$)(t),g=!!(f.touched&&f.error),[j,C]=(0,a.useState)("");h.value||"tags"!==m.mode&&"multiple"!==m.mode||(h.value=[]),"tags"===m.mode&&"string"==typeof h.value&&(h.value=[h.value]);let _="tags"===m.mode?(e,t)=>e?e.value!==j||h.value.includes(j)?m.optionRender?m.optionRender(e,t):e.label:'Create "'.concat(j,'"'):void 0:m.optionRender||void 0,b=e=>{C(e),m.onSearch&&m.onSearch(e)},y=(e,t)=>{v(e),m.onChange&&m.onChange(e,t)};return"inline"===p?(0,l.jsx)(s.NIc,{isInvalid:g,isRequired:u,children:(0,l.jsxs)(s.rjZ,{templateColumns:i?"1fr 3fr":"1fr",children:[i?(0,l.jsx)(o.__,{htmlFor:m.id||t,...d,children:i}):null,(0,l.jsxs)(s.jqI,{align:"center",children:[(0,l.jsxs)(s.jqI,{vertical:!0,flex:1,className:"mr-2",children:[(0,l.jsx)(s.WPr,{...h,id:m.id||t,"data-testid":"controlled-select-".concat(h.name),...m,optionRender:_,onSearch:"tags"===m.mode?b:void 0,onChange:y,value:h.value||void 0,status:g?"error":void 0}),x&&(0,l.jsx)(s.Q6r,{children:x}),(0,l.jsx)(o.Bc,{isInvalid:g,message:f.error,fieldName:h.name})]}),(0,l.jsx)(r.b,{label:c,className:g?"mt-2 self-start":void 0})]})]})}):(0,l.jsx)(s.NIc,{isInvalid:g,isRequired:u,children:(0,l.jsxs)(s.gCW,{alignItems:"start",children:[(0,l.jsxs)(s.jqI,{align:"center",children:[i?(0,l.jsx)(o.__,{htmlFor:m.id||t,fontSize:"xs",my:0,mr:1,...d,children:i}):null,(0,l.jsx)(r.b,{label:c})]}),(0,l.jsx)(s.WPr,{...h,id:m.id||t,"data-testid":"controlled-select-".concat(h.name),...m,optionRender:_,onSearch:"tags"===m.mode?b:void 0,onChange:y,value:h.value||void 0,status:g?"error":void 0}),x&&(0,l.jsx)(s.Q6r,{style:{marginTop:0},children:x}),(0,l.jsx)(o.Bc,{isInvalid:g,message:f.error,fieldName:h.name})]})})}},10342:function(e,t,i){"use strict";var l=i(24246),s=i(38355),n=i(46238);t.Z=e=>{let{title:t,tooltip:i,children:a,...r}=e;return(0,l.jsxs)(s.xuv,{borderRadius:"md",border:"1px solid",borderColor:"gray.200",...r,children:[(0,l.jsxs)(s.X6q,{as:"h3",fontSize:"sm",fontWeight:"semibold",color:"gray.700",py:4,px:6,backgroundColor:"gray.50",borderRadius:"md",textAlign:"left",children:[t,i?(0,l.jsx)(s.xvT,{as:"span",mx:1,children:(0,l.jsx)(n.b,{label:i})}):void 0]}),(0,l.jsx)(s.Kqy,{p:6,spacing:6,children:a})]})}},14047:function(e,t,i){"use strict";i.d(t,{H:function(){return n},V:function(){return l.V}});var l=i(84306),s=i(812);let n=()=>{let{errorAlert:e}=(0,l.V)();return{handleError:t=>{let i="An unexpected error occurred. Please try again.";(0,s.Ot)(t)?i=t.data.detail:(0,s.tB)(t)&&(i=t.data.detail[0].msg),e(i)}}}},84306:function(e,t,i){"use strict";i.d(t,{V:function(){return n}});var l=i(24246),s=i(38355);let n=()=>{let e=(0,s.pmc)();return{errorAlert:(t,i,n)=>{let a={...n,position:(null==n?void 0:n.position)||"top",render:e=>{let{onClose:n}=e;return(0,l.jsxs)(s.bZj,{alignItems:"normal",status:"error","data-testid":"error-alert",children:[(0,l.jsx)(s.zMQ,{}),(0,l.jsxs)(s.xuv,{children:[i&&(0,l.jsx)(s.CdC,{children:i}),(0,l.jsx)(s.XaZ,{children:t})]}),(0,l.jsx)(s.PZ7,{onClick:n,position:"relative",right:0,size:"sm",top:-1})]})}};(null==n?void 0:n.id)&&e.isActive(n.id)?e.update(n.id,a):e(a)},successAlert:(t,i,n)=>{let a={...n,position:(null==n?void 0:n.position)||"top",render:e=>{let{onClose:n}=e;return(0,l.jsxs)(s.bZj,{alignItems:"normal",status:"success",variant:"subtle","data-testid":"success-alert",children:[(0,l.jsx)(s.zMQ,{}),(0,l.jsxs)(s.xuv,{children:[i&&(0,l.jsx)(s.CdC,{children:i}),(0,l.jsx)(s.XaZ,{children:t})]}),(0,l.jsx)(s.PZ7,{onClick:n,position:"relative",right:0,size:"sm",top:-1})]})}};(null==n?void 0:n.id)&&e.isActive(n.id)?e.update(n.id,a):e(a)}}}},70788:function(e,t,i){"use strict";i.d(t,{m:function(){return d}});var l=i(24246),s=i(38355),n=i(79894),a=i.n(n),r=i(27378);let{Text:o}=s.AntTypography,d=e=>{let{items:t,...i}=e,n=(0,r.useMemo)(()=>null==t?void 0:t.map((e,i)=>{let n=i===t.length-1,r={...e},d=r.onClick&&!r.href;return("string"==typeof r.title&&(r.title=(0,l.jsx)(o,{style:{color:"inherit",maxWidth:n?void 0:400},ellipsis:!n,children:r.title})),d)?r.title=(0,l.jsx)(s.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,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("span",{className:"anticon align-text-bottom",children:r.icon}),r.title]})),r.href&&r.title&&(r.title=(0,l.jsx)(a(),{href:r.href,className:"ant-breadcrumb-link",children:r.title}),delete r.href)),r}),[t]);return(0,l.jsx)(s.zrq,{items:n,...i})}},30234:function(e,t,i){"use strict";var l=i(24246),s=i(38355);t.Z=e=>{let{heading:t,HeadingButton:i,children:n}=e;return(0,l.jsx)(s.Kqy,{spacing:4,children:(0,l.jsxs)(s.xuv,{maxWidth:"720px",border:"1px",borderColor:"gray.200",borderRadius:6,overflow:"visible",mt:6,children:[(0,l.jsxs)(s.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)(s.X6q,{as:"h3",size:"xs",children:t}),i?(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(s.LZC,{}),(0,l.jsx)(i,{})]}):null]}),(0,l.jsx)(s.Kqy,{spacing:4,px:6,py:6,children:n})]})})}},76513:function(e,t,i){"use strict";i.r(t),i.d(t,{default:function(){return X}});var l=i(24246),s=i(77213),n=i(38355),a=i(27378),r=i(58754),o=i(92222),d=i(59003),c=i(16134),u=i(812),p=i(19904),x=i(85422),m=i(46628),h=i(72625),f=i(46420);let v=new Map([["string","Single Select"],["string[]","Multi Select"],["open-text","Open Text"]]),g=new Map([[f.P6.SYSTEM,"system:information"],[f.P6.DATA_USE,"taxonomy:data use"],[f.P6.DATA_CATEGORY,"taxonomy:data category"],[f.P6.DATA_SUBJECT,"taxonomy:data subject"],[f.P6.PRIVACY_DECLARATION,"system:data use"]]);var j=i(32885);let C=e=>{var t;let i=null!==(t=g.get(e.getValue()))&&void 0!==t?t:e.getValue();return(0,l.jsx)(h.G3,{...e,value:i})},_=e=>{let{row:t,getValue:i}=e,s=t.original.allow_list_id?i():"open-text",n=v.get(s)||s;return(0,l.jsx)(h.A4,{value:n})},b=e=>{let{row:t,getValue:i,isDisabled:s}=e,n=!!i(),[a]=(0,j.yM)(),r=async e=>a({...t.original,active:e});return(0,l.jsx)(h.S1,{enabled:n,onToggle:r,title:"Disable custom field",message:"Are you sure you want to disable this custom field?",isDisabled:s,"aria-label":n?"Disable custom field":"Enable custom field"})};var y=i(56358),T=i(58452);let w=e=>{let{customField:t,onEdit:i,onDelete:s,...a}=e,r=(0,n.qY0)();return(0,l.jsxs)(n.xuv,{...a,children:[(0,l.jsx)(n.wpx,{"aria-label":"Edit property","data-testid":"edit-property-button",size:"small",className:"mr-[10px]",icon:(0,l.jsx)(n.dY8,{}),onClick:e=>{e.stopPropagation(),i(t,e)}}),(0,l.jsx)(n.wpx,{"aria-label":"Delete property","data-testid":"delete-property-button",size:"small",className:"mr-[10px]",icon:(0,l.jsx)(y.q,{}),onClick:e=>{e.stopPropagation(),r.onOpen()}}),(0,l.jsx)(T.Z,{isOpen:r.isOpen,onClose:r.onClose,onConfirm:()=>{s(t),r.onClose()},title:"Delete custom field",message:(0,l.jsx)(n.xvT,{color:"gray.500",children:"Are you sure you want to delete this custom field? This will remove the custom field and all stored values and this action can't be undone."}),continueButtonText:"Confirm",isCentered:!0,icon:(0,l.jsx)(n.aNP,{})})]})};var S=i(95346),E=i(14047),L=i(34090),R=i(55484);let I={color:"gray.600",fontSize:"14px",fontWeight:"semibold",minWidth:"150px"};var A=e=>{let{customLabelProps:t,disabled:i=!1,isRequired:s=!1,label:a,type:r="text",placeholder:o,...d}=e,[c,u]=(0,L.U$)(d),{id:p,name:x,autoFocus:m}=d,h="custom-input-".concat(c.name);return(0,l.jsxs)(n.NIc,{display:"flex",isRequired:s,isInvalid:!!(u.error&&u.touched),children:[a&&(0,l.jsx)(n.lXp,{htmlFor:p||x,...t||I,children:a}),(0,l.jsxs)(n.gCW,{align:"flex-start",w:"inherit",children:["number"===r&&(0,l.jsxs)(n.Y2U,{allowMouseWheel:!0,color:"gray.700",defaultValue:0,min:0,size:"sm",children:[(0,l.jsx)(n.zuI,{...c,autoComplete:"off",autoFocus:m,"data-testid":h}),(0,l.jsxs)(n.FiK,{children:[(0,l.jsx)(n.WQu,{}),(0,l.jsx)(n.Y_d,{})]})]}),"text"===r&&(0,l.jsx)(n.IIB,{...c,autoComplete:"off",autoFocus:m,color:"gray.700",isDisabled:i,placeholder:o,size:"sm","data-testid":h}),"textarea"===r&&(0,l.jsx)(n.gxH,{...c,autoComplete:"off",autoFocus:m,color:"gray.700",placeholder:o,resize:"none",size:"sm",value:c.value||"","data-testid":h}),(0,l.jsx)(n.J1D,{children:u.error})]})]})},M=i(70416),N=i(10342),k=i(95492),P=i(97181);let O={...I,minWidth:"unset"},V=e=>{let{values:t,validationSchema:i,errors:s,dirty:r,isValid:o,isSubmitting:d,isLoading:c,onClose:u,handleDropdownChange:p,isEditing:x}=e,{validateForm:m}=(0,L.u6)();return(0,a.useEffect)(()=>{m()},[i,m]),(0,l.jsxs)(L.l0,{style:{paddingTop:"12px",paddingBottom:"12px"},children:[(0,l.jsx)(n.xuv,{py:3,children:(0,l.jsxs)(N.Z,{title:"Field Information",children:[(0,l.jsx)(A,{isRequired:!0,label:"Name",name:"name",customLabelProps:O}),(0,l.jsx)(A,{label:"Description",name:"description",customLabelProps:O}),(0,l.jsx)(P.d,{label:"Location",name:"resource_type",options:S.C7,labelProps:O,disabled:x})]})}),(0,l.jsx)(n.xuv,{py:3,children:(0,l.jsxs)(N.Z,{title:"Configuration",children:[(0,l.jsx)(P.d,{label:"Field Type",name:"field_type",labelProps:O,options:S.Hn,onChange:p}),t.field_type!==S.Uv.OPEN_TEXT?(0,l.jsx)(n.kCb,{flexDirection:"column",gap:"12px",paddingTop:"6px",paddingBottom:"24px",children:(0,l.jsx)(L.F2,{name:"allow_list.allowed_values",render:e=>{let{allowed_values:i}=t.allow_list;return(0,l.jsxs)(n.kCb,{flexDirection:"column",gap:"6",pl:"6",children:[(0,l.jsx)(n.kCb,{flexDirection:"column",children:i.map((t,s)=>(0,l.jsxs)(n.kCb,{flexGrow:1,gap:"3",mt:s>0?3:void 0,children:[(0,l.jsx)(A,{customLabelProps:{color:"gray.600",fontSize:"sm",fontWeight:"500",lineHeight:"20px",minW:"126px",pr:"8px"},isRequired:!0,label:"List item ".concat(s+1),name:"allow_list.allowed_values[".concat(s,"]")}),(0,l.jsx)(n.wpx,{"aria-label":"Remove this list value","data-testid":"remove-list-value-btn-".concat(s),icon:(0,l.jsx)(k.l,{}),disabled:i.length<=1,onClick:()=>e.remove(s),type:"text"})]},s))}),(0,l.jsxs)(n.kCb,{alignItems:"center",children:[(0,l.jsx)(n.xvT,{color:"gray.600",fontSize:"xs",fontWeight:"500",lineHeight:"16px",pr:"8px",children:"Add a list value"}),(0,l.jsx)(n.wpx,{"aria-label":"Add a list value","data-testid":"add-list-value-btn",icon:(0,l.jsx)(M.d,{h:"7px",w:"7px"}),onClick:()=>{e.push("")},size:"small"}),0===i.length&&(null==s?void 0:s.allow_list)?(0,l.jsx)(n.xvT,{color:"red.500",pl:"18px",size:"sm",children:s.allow_list.allowed_values}):null]})]})}})}):null]})}),(0,l.jsxs)(n.kCb,{justifyContent:"space-between",width:"100%",children:[(0,l.jsx)(n.wpx,{onClick:u,disabled:c||d,className:"mr-3","data-testid":"cancel-btn",children:"Cancel"}),(0,l.jsx)(n.wpx,{htmlType:"submit",type:"primary","data-testid":"save-btn",loading:c,disabled:!r||!o||d,children:"Save"})]})]})},D={description:"",field_type:S.Uv.OPEN_TEXT,name:"",resource_type:f.P6.SYSTEM,allow_list:{name:"",description:"",allowed_values:[]}},U=R.IX(R.Z_().optional().label("allowed_values")),H=R.IX(R.Z_().required("List item is required")).min(1,"Must add at least one list value").label("allowed_values"),Z=R.Ry().shape({name:R.Z_().required("Name is required").trim(),allow_list:R.Ry().shape({allowed_values:U})}),z=R.Ry().shape({name:R.Z_().required("Name is required").trim(),allow_list:R.Ry().shape({allowed_values:H})}),F=(e,t)=>{var i,l,s;let n;if(!e)return;e.field_type!==f.AL.STRING||e.allow_list_id||(n=S.Uv.OPEN_TEXT),e.field_type===f.AL.STRING&&e.allow_list_id&&(n=S.Uv.SINGLE_SELECT),e.field_type===f.AL.STRING_&&e.allow_list_id&&(n=S.Uv.MULTIPLE_SELECT);let a=t?{name:null!==(i=t.name)&&void 0!==i?i:"",description:null!==(l=t.description)&&void 0!==l?l:"",allowed_values:null!==(s=t.allowed_values)&&void 0!==s?s:[]}:D.allow_list;return{...e,field_type:n||S.Uv.OPEN_TEXT,allow_list:a}},q=e=>{let{isOpen:t,onClose:i,isLoading:s,customField:r}=e,{errorAlert:o,successAlert:d}=(0,E.V)(),[c]=(0,j.Ld)(),[p]=(0,j.yM)(),[x]=(0,j.Nt)(),{data:m,isLoading:h}=(0,j.vA)(null==r?void 0:r.allow_list_id,{skip:!(null==r?void 0:r.allow_list_id)}),[v,g]=(0,a.useState)(Z);if(h||!t)return null;let C=F(r,m),_=!!C,b=e=>{e===S.Uv.OPEN_TEXT?g(Z):g(z)},y=async e=>{if([S.Uv.SINGLE_SELECT,S.Uv.MULTIPLE_SELECT].includes(e.field_type)){var t,l;if(new Set(null===(t=e.allow_list)||void 0===t?void 0:t.allowed_values.map(e=>e.toLowerCase().trim()).map(e=>e)).size<e.allow_list.allowed_values.length){o("List item value must be unique");return}let{allow_list:i}=e;e.allow_list_id&&(i.id=e.allow_list_id),i.name||(i.name=Date.now().toString()+Math.random().toString());let s=await x(i);(0,u.D4)(s)||e.allow_list_id||(e.allow_list_id=null===(l=s.data)||void 0===l?void 0:l.id)}e.field_type===S.Uv.OPEN_TEXT&&(e.allow_list_id=void 0),[S.Uv.SINGLE_SELECT,S.Uv.OPEN_TEXT].includes(e.field_type)&&(e.field_type=f.AL.STRING),e.field_type===S.Uv.MULTIPLE_SELECT&&(e.field_type=f.AL.STRING_);let s={...e};delete s.allow_list;let n=r?await p(s):await c(s);(0,u.D4)(n)?o((0,u.e$)(n.error),"Custom field has failed to save due to the following:"):(i(),d("Custom field successfully saved"))};return(0,l.jsxs)(n.u_l,{id:"custom-field-modal-hello-world",isOpen:t,onClose:i,size:"lg",returnFocusOnClose:!1,isCentered:!0,children:[(0,l.jsx)(n.ZAr,{}),(0,l.jsxs)(n.hzk,{id:"modal-content","data-testid":"custom-field-modal",maxHeight:"80%",overflowY:"auto",children:[(0,l.jsx)(n.xBx,{id:"modal-header",fontWeight:"semibold",lineHeight:5,fontSize:"sm",py:"18px",px:6,height:"56px",backgroundColor:"gray.50",borderColor:"gray.200",borderWidth:"0px 0px 1px 1p",borderTopRightRadius:"8px",borderTopLeftRadius:"8px",boxSizing:"border-box",children:r?"Manage Custom Field":"Add a custom field"}),(0,l.jsx)(n.fef,{px:6,py:0,children:(0,l.jsx)(L.J9,{initialValues:C||D,validationSchema:v,onSubmit:y,enableReinitialize:!0,validateOnChange:!0,children:e=>(0,l.jsx)(V,{isEditing:_,validationSchema:v,isLoading:s,onClose:i,handleDropdownChange:b,...e})})})]})]})},W="Add a custom field",G=()=>(0,l.jsx)(n.gCW,{mt:6,p:10,spacing:4,borderRadius:"base",maxW:"70%","data-testid":"no-results-notice",alignSelf:"center",margin:"auto",textAlign:"center",children:(0,l.jsxs)(n.gCW,{children:[(0,l.jsx)(n.xvT,{fontSize:"md",fontWeight:"600",children:"It looks like it’s your first time here!"}),(0,l.jsxs)(n.xvT,{fontSize:"sm",children:["You haven’t created any custom fields yet.",(0,l.jsx)("br",{}),"To create a custom field, click on the"," ",(0,l.jsxs)("strong",{children:['"',W,'"']})," button"]})]})}),B=(0,o.Cl)(),Y=e=>{let{...t}=e,i=(0,n.pmc)(),{isLoading:s}=(0,j.GH)(),r=(0,c.C)(j.fN),[h]=(0,j.UF)(),{isOpen:v,onClose:g,onOpen:y}=(0,n.qY0)(),[T,S]=(0,a.useState)(),[E,L]=(0,a.useState)(),R=(0,p.Tg)([f.Sh.CUSTOM_FIELD_UPDATE]),I=(0,p.Tg)([f.Sh.CUSTOM_FIELD_DELETE]),A=e=>{R&&(S(e),y())},M=async e=>{if(I&&e.id){let t=await h({id:e.id});if((0,u.D4)(t)){i((0,m.Vo)((0,u.e$)(t.error)));return}i((0,m.t5)("Custom field deleted"))}},N=(0,a.useMemo)(()=>[B.accessor(e=>e.name,{id:"name",cell:e=>(0,l.jsx)(x.G3,{value:e.getValue(),cellProps:e}),header:e=>(0,l.jsx)(x.Rr,{value:"Label",...e})}),B.accessor(e=>e.description,{id:"description",cell:e=>(0,l.jsx)(x.G3,{value:e.getValue(),cellProps:e}),header:e=>(0,l.jsx)(x.Rr,{value:"Description",...e}),meta:{showHeaderMenu:!0}}),B.accessor(e=>e.field_type,{id:"field_type",cell:_,header:e=>(0,l.jsx)(x.Rr,{value:"Field Type",...e})}),B.accessor(e=>e.resource_type,{id:"resource_type",cell:C,header:e=>(0,l.jsx)(x.Rr,{value:"Locations",...e})}),R&&B.accessor(e=>e.active,{id:"enable",cell:b,header:e=>(0,l.jsx)(x.Rr,{value:"Enable",...e}),meta:{disableRowClick:!0}}),(R||I)&&B.display({id:"actions",header:"Actions",cell:e=>{let{row:t}=e;return(0,l.jsx)(w,{customField:t.original,onEdit:A,onDelete:M})},meta:{disableRowClick:!0}})].filter(Boolean),[I,R]),k=(0,d.b7)({getCoreRowModel:(0,o.sC)(),getFilteredRowModel:(0,o.vL)(),getSortedRowModel:(0,o.tj)(),onGlobalFilterChange:L,globalFilterFn:"includesString",columns:N,data:r,state:{globalFilter:E},columnResizeMode:"onChange"});return(0,l.jsxs)(n.xuv,{...t,children:[(0,l.jsx)(n.xuv,{maxWidth:600,children:(0,l.jsx)(n.xvT,{mb:10,fontSize:"sm",children:r.length>0?"Custom fields enable you to capture metrics specific to your organization and have those metrics appear in the data map and in reports.":"Custom fields provide organizations with the capability to capture metrics that are unique to their specific needs, allowing them to create customized reports. These fields can be added to either systems or elements within a taxonomy, and once added, they become reportable fields that are visible on the data map."})}),(0,l.jsxs)(n.xuv,{"data-testid":"custom-fields-page",children:[(0,l.jsxs)(x.Q$,{children:[(0,l.jsx)(x.HO,{globalFilter:E,setGlobalFilter:L,placeholder:"Search for a custom field"}),(0,l.jsx)(n.Ugi,{alignItems:"center",spacing:4,children:(0,l.jsx)(()=>(0,l.jsx)(p.ZP,{scopes:[f.Sh.CUSTOM_FIELD_DEFINITION_CREATE],children:(0,l.jsx)(n.wpx,{type:"primary","data-testid":"add-custom-field-btn",onClick:y,children:W})}),{})})]}),s?(0,l.jsx)(n.xuv,{p:2,borderWidth:1,children:(0,l.jsx)(x.I4,{rowHeight:26,numRows:10})}):(0,l.jsx)(x.ZK,{tableInstance:k,onRowClick:R?A:void 0,emptyTableNotice:(0,l.jsx)(G,{}),enableSorting:!0}),v&&(0,l.jsx)(q,{customField:T,isOpen:v,onClose:()=>{S(void 0),g()},isLoading:!1})]})]})};var X=()=>(0,l.jsx)(s.Z,{title:"Custom fields",children:(0,l.jsxs)(n.xuv,{"data-testid":"custom-fields-management",children:[(0,l.jsx)(r.Z,{heading:"Custom fields"}),(0,l.jsx)(Y,{})]})})}},function(e){e.O(0,[2888,9774,179],function(){return e(e.s=70378)}),_N_E=e.O()}]);
|
@@ -1 +1 @@
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1051],{55342:function(e,n,o){(window.__NEXT_P=window.__NEXT_P||[]).push(["/settings/domain-records",function(){return o(64872)}])},77213:function(e,n,o){"use strict";o.d(n,{Z:function(){return m}});var r=o(24246),i=o(
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1051],{55342:function(e,n,o){(window.__NEXT_P=window.__NEXT_P||[]).push(["/settings/domain-records",function(){return o(64872)}])},77213:function(e,n,o){"use strict";o.d(n,{Z:function(){return m}});var r=o(24246),i=o(38355),t=o(88038),s=o.n(t),a=o(86677);o(27378);var c=o(25980),d=o(90867),l=o(77830),u=()=>{let e=(0,a.useRouter)();return(0,r.jsx)(i.xuv,{bg:"gray.50",border:"1px solid",borderColor:"blue.400",borderRadius:"md",justifyContent:"space-between",p:5,mb:5,mt:5,children:(0,r.jsxs)(i.xuv,{children:[(0,r.jsxs)(i.Kqy,{direction:{base:"column",sm:"row"},justifyContent:"space-between",children:[(0,r.jsx)(i.xvT,{fontWeight:"semibold",children:"Configure your storage and messaging provider"}),(0,r.jsx)(i.wpx,{onClick:()=>{e.push(l.fz)},children:"Configure"})]}),(0,r.jsxs)(i.xvT,{children:["Before Fides can process your privacy requests we need two simple steps to configure your storage and email client."," "]})]})})},m=e=>{let{children:n,title:o,padded:t=!0,mainProps:l}=e,m=(0,c.hz)(),h=(0,a.useRouter)(),x="/privacy-requests"===h.pathname||"/datastore-connection"===h.pathname,f=!(m.flags.privacyRequestsConfiguration&&x),{data:p}=(0,d.JE)(void 0,{skip:f}),{data:v}=(0,d.PW)(void 0,{skip:f}),g=m.flags.privacyRequestsConfiguration&&(!p||!v)&&x;return(0,r.jsxs)(i.kCb,{"data-testid":o,direction:"column",h:"100vh",children:[(0,r.jsxs)(s(),{children:[(0,r.jsxs)("title",{children:["Fides Admin UI - ",o]}),(0,r.jsx)("meta",{name:"description",content:"Privacy Engineering Platform"}),(0,r.jsx)("link",{rel:"icon",href:"/favicon.ico"})]}),(0,r.jsxs)(i.kCb,{as:"main",direction:"column",py:t?6:0,px:t?10:0,h:t?"calc(100% - 48px)":"full",flex:1,minWidth:0,overflow:"auto",...l,children:[g?(0,r.jsx)(u,{}):null,n]})]})}},64872:function(e,n,o){"use strict";o.r(n);var r=o(24246),i=o(92222),t=o(59003),s=o(38355),a=o(27378),c=o(88340),d=o(77213),l=o(85422),u=o(32885);let m=(0,i.Cl)();n.default=()=>{let e=(0,a.useMemo)(()=>[m.accessor(e=>e.hostName,{header:"Name",cell:e=>(0,r.jsx)(l.G3,{value:e.getValue()})}),m.accessor(e=>e.type,{header:"Type",cell:e=>(0,r.jsx)(l.G3,{value:e.getValue()})}),m.accessor(e=>e.data,{header:"Value",cell:e=>(0,r.jsx)(l.G3,{value:e.getValue()})}),m.display({id:"actions",cell:e=>{let{row:n}=e;return(0,r.jsx)(c.Z,{copyText:n.original.data,type:"default",size:"small"})},header:"Actions",maxSize:65})],[]),{data:n,isLoading:o}=(0,u.Vh)(),h=(0,a.useMemo)(()=>(null==n?void 0:n.domain_verification_records)?n.domain_verification_records.map(e=>({hostName:"www",type:"CNAME",data:e})):[],[n]),x=(0,t.b7)({getCoreRowModel:(0,i.sC)(),columns:e,data:h,columnResizeMode:"onChange"});return(0,r.jsx)(d.Z,{title:"Domain records",children:(0,r.jsxs)(s.xuv,{"data-testid":"domain-records",children:[(0,r.jsx)(s.X6q,{marginBottom:4,fontSize:"2xl",children:"Domain records"}),(0,r.jsxs)(s.xuv,{maxWidth:"600px",children:[(0,r.jsx)(s.xvT,{marginBottom:2,fontSize:"md",children:"Set the following record on your DNS provider to continue."}),(0,r.jsxs)(s.xvT,{mb:10,fontSize:"sm",children:["Please visit"," ",(0,r.jsx)(s.rUS,{color:"complimentary.500",href:"https://fid.es/manage-dns",isExternal:!0,children:"docs.ethyca.com"})," ","for more information on how to configure Domain records."]}),o?(0,r.jsx)(s.xuv,{p:2,borderWidth:1,children:(0,r.jsx)(l.I4,{rowHeight:26,numRows:5})}):(0,r.jsx)(l.ZK,{tableInstance:x})]})]})})}}},function(e){e.O(0,[2888,9774,179],function(){return e(e.s=55342)}),_N_E=e.O()}]);
|
@@ -0,0 +1 @@
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9252],{98648:function(e,i,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/settings/domains",function(){return t(76974)}])},59301:function(e,i,t){"use strict";var n=t(24246);let{Link:s}=t(38355).AntTypography;i.Z=e=>(0,n.jsx)(s,{target:"_blank",rel:"noopener noreferrer",...e})},77213:function(e,i,t){"use strict";t.d(i,{Z:function(){return m}});var n=t(24246),s=t(38355),r=t(88038),a=t.n(r),o=t(86677);t(27378);var d=t(25980),l=t(90867),c=t(77830),u=()=>{let e=(0,o.useRouter)();return(0,n.jsx)(s.xuv,{bg:"gray.50",border:"1px solid",borderColor:"blue.400",borderRadius:"md",justifyContent:"space-between",p:5,mb:5,mt:5,children:(0,n.jsxs)(s.xuv,{children:[(0,n.jsxs)(s.Kqy,{direction:{base:"column",sm:"row"},justifyContent:"space-between",children:[(0,n.jsx)(s.xvT,{fontWeight:"semibold",children:"Configure your storage and messaging provider"}),(0,n.jsx)(s.wpx,{onClick:()=>{e.push(c.fz)},children:"Configure"})]}),(0,n.jsxs)(s.xvT,{children:["Before Fides can process your privacy requests we need two simple steps to configure your storage and email client."," "]})]})})},m=e=>{let{children:i,title:t,padded:r=!0,mainProps:c}=e,m=(0,d.hz)(),x=(0,o.useRouter)(),h="/privacy-requests"===x.pathname||"/datastore-connection"===x.pathname,p=!(m.flags.privacyRequestsConfiguration&&h),{data:g}=(0,l.JE)(void 0,{skip:p}),{data:f}=(0,l.PW)(void 0,{skip:p}),j=m.flags.privacyRequestsConfiguration&&(!g||!f)&&h;return(0,n.jsxs)(s.kCb,{"data-testid":t,direction:"column",h:"100vh",children:[(0,n.jsxs)(a(),{children:[(0,n.jsxs)("title",{children:["Fides Admin UI - ",t]}),(0,n.jsx)("meta",{name:"description",content:"Privacy Engineering Platform"}),(0,n.jsx)("link",{rel:"icon",href:"/favicon.ico"})]}),(0,n.jsxs)(s.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",...c,children:[j?(0,n.jsx)(u,{}):null,i]})]})}},58754:function(e,i,t){"use strict";var n=t(24246),s=t(38355),r=t(70788);i.Z=e=>{let{heading:i,breadcrumbItems:t,isSticky:a=!0,children:o,rightContent:d,style:l,...c}=e;return(0,n.jsxs)("div",{...c,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",...l}:{paddingBottom:"24px",...l},children:[(0,n.jsxs)(s.jqI,{justify:"space-between",children:["string"==typeof i?(0,n.jsx)(s.lQT,{className:t||o?"pb-4":void 0,level:1,"data-testid":"page-heading",children:i}):i,d&&(0,n.jsx)("div",{"data-testid":"page-header-right-content",children:d})]}),!!t&&(0,n.jsx)(r.m,{className:o?"pb-4":void 0,items:t,"data-testid":"page-breadcrumb"}),o]})}},10342:function(e,i,t){"use strict";var n=t(24246),s=t(38355),r=t(46238);i.Z=e=>{let{title:i,tooltip:t,children:a,...o}=e;return(0,n.jsxs)(s.xuv,{borderRadius:"md",border:"1px solid",borderColor:"gray.200",...o,children:[(0,n.jsxs)(s.X6q,{as:"h3",fontSize:"sm",fontWeight:"semibold",color:"gray.700",py:4,px:6,backgroundColor:"gray.50",borderRadius:"md",textAlign:"left",children:[i,t?(0,n.jsx)(s.xvT,{as:"span",mx:1,children:(0,n.jsx)(r.b,{label:t})}):void 0]}),(0,n.jsx)(s.Kqy,{p:6,spacing:6,children:a})]})}},70788:function(e,i,t){"use strict";t.d(i,{m:function(){return l}});var n=t(24246),s=t(38355),r=t(79894),a=t.n(r),o=t(27378);let{Text:d}=s.AntTypography,l=e=>{let{items:i,...t}=e,r=(0,o.useMemo)(()=>null==i?void 0:i.map((e,t)=>{let r=t===i.length-1,o={...e},l=o.onClick&&!o.href;return("string"==typeof o.title&&(o.title=(0,n.jsx)(d,{style:{color:"inherit",maxWidth:r?void 0:400},ellipsis:!r,children:o.title})),l)?o.title=(0,n.jsx)(s.wpx,{type:"text",size:"small",icon:o.icon,onClick:o.onClick,className:"ant-breadcrumb-link -mt-px px-1 text-inherit",children:o.title}):(o.icon&&(o.title=(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("span",{className:"anticon align-text-bottom",children:o.icon}),o.title]})),o.href&&o.title&&(o.title=(0,n.jsx)(a(),{href:o.href,className:"ant-breadcrumb-link",children:o.title}),delete o.href)),o}),[i]);return(0,n.jsx)(s.zrq,{items:r,...t})}},76974:function(e,i,t){"use strict";t.r(i);var n=t(24246),s=t(38355),r=t(34090),a=t(55484),o=t(16134),d=t(59301),l=t(10342),c=t(40324),u=t(812),m=t(77213),x=t(58754),h=t(46628),p=t(7426);i.default=()=>{var e;let{isLoading:i}=(0,p.tB)({api_set:!0}),{isLoading:t}=(0,p.tB)({api_set:!1}),g=(0,o.C)(p.ak),f=g.apiSet,j=g.configSet,b=!!((null===(e=j.cors_origins)||void 0===e?void 0:e.length)||j.cors_origin_regex),v=(0,o.C)((0,p.U7)()),[y,{isLoading:_}]=(0,p.km)(),w=(0,s.pmc)(),C=e=>{if(!e||!(e.startsWith("https://")||e.startsWith("http://")))return!1;try{new URL(e)}catch(e){return!1}return!0},k=e=>!!e&&!e.includes("*"),R=e=>{if(!e)return!1;try{let i=new URL(e);return"/"===i.pathname&&!e.endsWith("/")}catch(e){return!1}},N=a.Ry().shape({cors_origins:a.IX().nullable().of(a.Z_().required().trim().test("is-valid-url",e=>{let{label:i}=e;return"".concat(i," must be a valid URL (e.g. https://example.com)")},e=>C(e)).test("has-no-wildcard",e=>{let{label:i}=e;return"".concat(i," cannot contain a wildcard (e.g. https://*.example.com)")},e=>k(e)).test("has-no-path",e=>{let{label:i}=e;return"".concat(i," cannot contain a path (e.g. https://example.com/path)")},e=>R(e)).label("Domain"))}),T=async(e,i)=>{let t=e.cors_origins&&e.cors_origins.length>0?e.cors_origins:void 0,n={...v,security:{cors_origins:t}};(t=>{if(w.closeAll(),(0,u.D4)(t)){let e=(0,u.e$)(t.error,"An unexpected error occurred while saving domains. Please try again.");w((0,h.Vo)(e))}else w((0,h.t5)("Domains saved successfully")),i.resetForm({values:e})})(await y(n))};return(0,n.jsx)(m.Z,{title:"Domains",children:(0,n.jsxs)(s.xuv,{"data-testid":"management-domains",children:[(0,n.jsx)(x.Z,{heading:"Domains"}),(0,n.jsxs)(s.xuv,{maxW:"600px",children:[(0,n.jsxs)(s.xvT,{fontSize:"sm",pb:6,children:["For Fides to work on your website(s), each of your domains must be listed below. You can add and remove domains at any time up to the quantity included in your license. For more information on managing domains"," ",(0,n.jsx)(d.Z,{href:"https://fid.es/domain-configuration",children:"read here"}),"."]}),(0,n.jsx)(l.Z,{"data-testid":"api-set-domains-form",title:"Organization domains",tooltip:"Fides uses these domains to enforce cross-origin resource sharing (CORS), a browser-based security standard. Each domain must be a valid URL (e.g. https://example.com) without any wildcards '*' or paths '/blog'",children:i||_?(0,n.jsx)(s.kCb,{justifyContent:"center",children:(0,n.jsx)(s.$jN,{})}):(0,n.jsx)(r.J9,{initialValues:f,enableReinitialize:!0,onSubmit:T,validationSchema:N,validateOnChange:!0,children:e=>{let{dirty:i,values:t,isValid:a}=e;return(0,n.jsxs)(r.l0,{children:[(0,n.jsx)(r.F2,{name:"cors_origins",render:e=>(0,n.jsxs)(s.kCb,{flexDir:"column",children:[t.cors_origins.map((i,t)=>(0,n.jsxs)(s.kCb,{flexDir:"row",my:3,children:[(0,n.jsx)(c.j0,{variant:"stacked",name:"cors_origins[".concat(t,"]"),placeholder:"https://subdomain.example.com:9090"}),(0,n.jsx)(s.wpx,{"aria-label":"delete-domain",className:"z-[2] ml-4",icon:(0,n.jsx)(s.pJl,{}),onClick:()=>{e.remove(t)}})]},t)),(0,n.jsx)(s.kCb,{justifyContent:"center",mt:3,children:(0,n.jsx)(s.wpx,{"aria-label":"add-domain",className:"w-full",onClick:()=>{e.push("")},children:"Add domain"})})]})}),(0,n.jsx)(s.xuv,{mt:6,children:(0,n.jsx)(s.wpx,{htmlType:"submit",type:"primary",disabled:_||!i||!a,loading:_,"data-testid":"save-btn",children:"Save"})})]})}})})]}),(0,n.jsx)(s.xuv,{maxW:"600px",marginY:3,children:(0,n.jsx)(l.Z,{"data-testid":"config-set-domains-form",title:"Advanced settings",tooltip:"These domains are configured by an administrator with access to Fides security settings and can support more advanced options such as wildcards and regex.",children:t?(0,n.jsx)(s.kCb,{justifyContent:"center",children:(0,n.jsx)(s.$jN,{})}):(0,n.jsxs)(s.kCb,{flexDir:"column",children:[j.cors_origins.map((e,i)=>(0,n.jsx)(c.oi,{"data-testid":"input-config_cors_origins[".concat(i,"]"),marginY:3,value:e,isDisabled:!0,isPassword:!1},i)),j.cors_origin_regex?(0,n.jsx)(c.oi,{"data-testid":"input-config_cors_origin_regex",marginY:3,value:j.cors_origin_regex,isDisabled:!0,isPassword:!1},"cors_origin_regex"):void 0,b?void 0:(0,n.jsx)(s.xvT,{fontSize:"xs",color:"gray.500",children:"No advanced domain settings configured."})]})})})]})})}}},function(e){e.O(0,[2888,9774,179],function(){return e(e.s=98648)}),_N_E=e.O()}]);
|
fides/ui-build/static/admin/_next/static/chunks/pages/settings/email-templates-c1d3f3cb9c6ca463.js
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4966],{18193:function(e,t,i){(window.__NEXT_P=window.__NEXT_P||[]).push(["/settings/email-templates",function(){return i(43104)}])},77213:function(e,t,i){"use strict";i.d(t,{Z:function(){return p}});var n=i(24246),s=i(38355),a=i(88038),r=i.n(a),l=i(86677);i(27378);var o=i(25980),d=i(90867),c=i(77830),u=()=>{let e=(0,l.useRouter)();return(0,n.jsx)(s.xuv,{bg:"gray.50",border:"1px solid",borderColor:"blue.400",borderRadius:"md",justifyContent:"space-between",p:5,mb:5,mt:5,children:(0,n.jsxs)(s.xuv,{children:[(0,n.jsxs)(s.Kqy,{direction:{base:"column",sm:"row"},justifyContent:"space-between",children:[(0,n.jsx)(s.xvT,{fontWeight:"semibold",children:"Configure your storage and messaging provider"}),(0,n.jsx)(s.wpx,{onClick:()=>{e.push(c.fz)},children:"Configure"})]}),(0,n.jsxs)(s.xvT,{children:["Before Fides can process your privacy requests we need two simple steps to configure your storage and email client."," "]})]})})},p=e=>{let{children:t,title:i,padded:a=!0,mainProps:c}=e,p=(0,o.hz)(),m=(0,l.useRouter)(),g="/privacy-requests"===m.pathname||"/datastore-connection"===m.pathname,h=!(p.flags.privacyRequestsConfiguration&&g),{data:x}=(0,d.JE)(void 0,{skip:h}),{data:f}=(0,d.PW)(void 0,{skip:h}),j=p.flags.privacyRequestsConfiguration&&(!x||!f)&&g;return(0,n.jsxs)(s.kCb,{"data-testid":i,direction:"column",h:"100vh",children:[(0,n.jsxs)(r(),{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)(s.kCb,{as:"main",direction:"column",py:a?6:0,px:a?10:0,h:a?"calc(100% - 48px)":"full",flex:1,minWidth:0,overflow:"auto",...c,children:[j?(0,n.jsx)(u,{}):null,t]})]})}},58754:function(e,t,i){"use strict";var n=i(24246),s=i(38355),a=i(70788);t.Z=e=>{let{heading:t,breadcrumbItems:i,isSticky:r=!0,children:l,rightContent:o,style:d,...c}=e;return(0,n.jsxs)("div",{...c,style:r?{position:"sticky",top:"-24px",paddingTop:"24px",paddingBottom:"24px",paddingLeft:"40px",marginLeft:"-40px",paddingRight:"40px",marginRight:"-40px",marginTop:"-24px",left:0,zIndex:20,backgroundColor:"white",...d}:{paddingBottom:"24px",...d},children:[(0,n.jsxs)(s.jqI,{justify:"space-between",children:["string"==typeof t?(0,n.jsx)(s.lQT,{className:i||l?"pb-4":void 0,level:1,"data-testid":"page-heading",children:t}):t,o&&(0,n.jsx)("div",{"data-testid":"page-header-right-content",children:o})]}),!!i&&(0,n.jsx)(a.m,{className:l?"pb-4":void 0,items:i,"data-testid":"page-breadcrumb"}),l]})}},10342:function(e,t,i){"use strict";var n=i(24246),s=i(38355),a=i(46238);t.Z=e=>{let{title:t,tooltip:i,children:r,...l}=e;return(0,n.jsxs)(s.xuv,{borderRadius:"md",border:"1px solid",borderColor:"gray.200",...l,children:[(0,n.jsxs)(s.X6q,{as:"h3",fontSize:"sm",fontWeight:"semibold",color:"gray.700",py:4,px:6,backgroundColor:"gray.50",borderRadius:"md",textAlign:"left",children:[t,i?(0,n.jsx)(s.xvT,{as:"span",mx:1,children:(0,n.jsx)(a.b,{label:i})}):void 0]}),(0,n.jsx)(s.Kqy,{p:6,spacing:6,children:r})]})}},70788:function(e,t,i){"use strict";i.d(t,{m:function(){return d}});var n=i(24246),s=i(38355),a=i(79894),r=i.n(a),l=i(27378);let{Text:o}=s.AntTypography,d=e=>{let{items:t,...i}=e,a=(0,l.useMemo)(()=>null==t?void 0:t.map((e,i)=>{let a=i===t.length-1,l={...e},d=l.onClick&&!l.href;return("string"==typeof l.title&&(l.title=(0,n.jsx)(o,{style:{color:"inherit",maxWidth:a?void 0:400},ellipsis:!a,children:l.title})),d)?l.title=(0,n.jsx)(s.wpx,{type:"text",size:"small",icon:l.icon,onClick:l.onClick,className:"ant-breadcrumb-link -mt-px px-1 text-inherit",children:l.title}):(l.icon&&(l.title=(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("span",{className:"anticon align-text-bottom",children:l.icon}),l.title]})),l.href&&l.title&&(l.title=(0,n.jsx)(r(),{href:l.href,className:"ant-breadcrumb-link",children:l.title}),delete l.href)),l}),[t]);return(0,n.jsx)(s.zrq,{items:a,...i})}},47466:function(e,t,i){"use strict";i.d(t,{KC:function(){return r},ew:function(){return l},gQ:function(){return a},jM:function(){return n},lE:function(){return s}});let{useGetMessagingTemplatesQuery:n,useUpdateMessagingTemplatesMutation:s,useGetMessagingTemplateByIdQuery:a,useGetMessagingTemplateDefaultQuery:r,useDeleteMessagingTemplateByIdMutation:l}=i(78780).u.injectEndpoints({endpoints:e=>({getMessagingTemplates:e.query({query:()=>({url:"messaging/templates"}),providesTags:()=>["Messaging Templates"]}),updateMessagingTemplates:e.mutation({query:e=>({url:"messaging/templates",method:"PUT",body:e}),invalidatesTags:()=>["Messaging Templates"]}),getMessagingTemplateById:e.query({query:e=>({url:"/messaging/templates/".concat(e)}),providesTags:()=>["Property-Specific Messaging Templates"]}),getMessagingTemplateDefault:e.query({query:e=>({url:"/messaging/templates/default/".concat(e)})}),deleteMessagingTemplateById:e.mutation({query:e=>({url:"/messaging/templates/".concat(e),method:"DELETE"}),invalidatesTags:()=>["Property-Specific Messaging Templates"]})})})},43104:function(e,t,i){"use strict";i.r(t),i.d(t,{default:function(){return g}});var n=i(24246),s=i(38355),a=i(77213),r=i(58754),l=i(34090),o=i(10342),d=i(40324),c=i(812),u=i(46628),p=i(47466),m=e=>{let{emailTemplates:t}=e,[i,{isLoading:a}]=(0,p.lE)(),r=(0,s.pmc)(),m=async(e,t)=>{let n=Object.entries(e).map(e=>{let[t,{content:i}]=e;return{type:t,content:i}});(i=>{if((0,c.D4)(i)){let e=(0,c.e$)(i.error,"An unexpected error occurred while editing the email templates. Please try again.");r((0,u.Vo)(e))}else r((0,u.t5)("Email templates saved.")),t.resetForm({values:e})})(await i(n))},g=t.reduce((e,t)=>({...e,[t.type]:{label:t.label,content:t.content}}),{});return(0,n.jsx)(l.J9,{enableReinitialize:!0,initialValues:g,onSubmit:m,children:()=>(0,n.jsxs)(l.l0,{style:{paddingTop:"12px",paddingBottom:"12px"},children:[Object.entries(g).map(e=>{let[t,i]=e;return(0,n.jsx)(s.xuv,{py:3,children:(0,n.jsxs)(o.Z,{title:i.label,children:[(0,n.jsx)(d.j0,{label:"Message subject",name:"".concat(t,".content.subject"),variant:"stacked"}),(0,n.jsx)(d.Ks,{label:"Message body",name:"".concat(t,".content.body"),variant:"stacked",resize:!0})]})},t)}),(0,n.jsx)(s.kCb,{justifyContent:"right",width:"100%",paddingTop:2,children:(0,n.jsx)(s.wpx,{htmlType:"submit",type:"primary",loading:a,children:"Save"})})]})})},g=()=>{let{data:e,isLoading:t}=(0,p.jM)();return t?(0,n.jsx)(a.Z,{title:"Email templates",children:(0,n.jsx)(s.$jN,{})}):(0,n.jsx)(a.Z,{title:"Email templates",children:(0,n.jsxs)(s.xuv,{"data-testid":"email-templates",children:[(0,n.jsx)(r.Z,{heading:"Email Templates"}),(0,n.jsxs)(s.xuv,{maxWidth:"720px",children:[(0,n.jsx)(s.xvT,{fontSize:"sm",children:"When privacy requests are submitted, Fides emails the data subject to confirm their identity and keep them updated on the status of the request. The templates below allow you to configure the subject and body of the email to suit your business needs. To change the appearance of the email, you may use the editors within your messaging provider (e.g. Mailgun, SendGrid, Twilio)."}),(0,n.jsx)(s.xuv,{padding:2,children:(0,n.jsx)(m,{emailTemplates:e})})]})]})})}}},function(e){e.O(0,[2888,9774,179],function(){return e(e.s=18193)}),_N_E=e.O()}]);
|
@@ -1 +1 @@
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2462],{40135:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/settings/locations",function(){return n(36956)}])},36956:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return Z}});var i=n(24246),l=n(
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2462],{40135:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/settings/locations",function(){return n(36956)}])},36956:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return Z}});var i=n(24246),l=n(38355),s=n(16134),o=n(77213),a=n(58754),r=n(98784),d=n.n(r),c=n(86677),u=n(27378),h=n(812),g=n(58452),m=n(26917),x=n(46628),p=n(46420),j=n(31883),f=n(77830),v=n(26089),C=n(61524),y=n(46238),w=e=>{let{id:t,isChecked:n,onChange:s}=e;return(0,i.jsxs)(l.kCb,{alignItems:"center",gap:"8px",children:[(0,i.jsx)(l.rAg,{checked:n,size:"small",onChange:s,id:t,"data-testid":"regulated-toggle"}),(0,i.jsx)(l.lXp,{fontSize:"sm",m:0,htmlFor:t,children:"Regulated"}),(0,i.jsx)(y.b,{label:"Toggle on to see only locations in this region with privacy regulations supported by Fides"})]})},b=n(67991),k=n(12282),S=n(85759),_=e=>{let{groups:t,locations:n,isOpen:s,onClose:o,selected:a,onChange:r}=e,[d,c]=(0,u.useState)(a),[h,g]=(0,u.useState)(!1),{filteredLocations:m,locationsByGroup:x}=(0,u.useMemo)(()=>{let e=h?n.filter(e=>{var t;return null===(t=e.regulation)||void 0===t?void 0:t.length}):n;return{locationsByGroup:(0,S.VT)(e),filteredLocations:e}},[n,h]),{allSelected:p,handleToggleAll:j,handleToggleSelection:f}=(0,b.QZ)({items:m,selected:d,onChange:c}),v=d.filter(e=>!Object.keys(x).includes(e)).length,C=n[0].continent,y=Object.keys(x),_=!(1===y.length&&"Other"===y[0]);return(0,i.jsxs)(l.u_l,{size:"2xl",isOpen:s,onClose:o,isCentered:!0,children:[(0,i.jsx)(l.ZAr,{}),(0,i.jsxs)(l.hzk,{"data-testid":"subgroup-modal",children:[(0,i.jsx)(k.h4,{title:"Select locations"}),(0,i.jsxs)(l.fef,{p:6,maxHeight:"70vh",overflowY:"auto",children:[(0,i.jsx)(k.x$,{title:C,allSelected:p,onToggleAll:j,numSelected:v,children:(0,i.jsx)(w,{id:"".concat(C,"-modal-regulated"),isChecked:h,onChange:()=>g(!h)})}),_?(0,i.jsx)(l.UQy,{allowToggle:!0,allowMultiple:!0,children:Object.entries(x).map(e=>{let[n,s]=e,o=t.find(e=>n===e.id),a=o?o.name:n;return(0,i.jsxs)(l.Qdk,{"data-testid":"".concat(a,"-accordion"),children:[(0,i.jsx)("h2",{children:(0,i.jsxs)(l.KFZ,{children:[(0,i.jsx)(l.xuv,{as:"span",flex:"1",textAlign:"left",fontWeight:"semibold",fontSize:"sm",children:a}),(0,i.jsx)(l.XEm,{})]})}),(0,i.jsx)(l.Hk3,{pb:4,children:(0,i.jsx)(l.MIq,{columns:3,spacing:6,children:s.map(e=>(0,i.jsx)(l.XZJ,{size:"sm",colorScheme:"complimentary",isChecked:d.includes(e.id),onChange:()=>f(e.id),"data-testid":"".concat(e.name,"-checkbox"),children:e.name},e.id))})})]},n)})}):(0,i.jsx)(l.MIq,{columns:3,spacing:6,paddingInline:4,children:m.map(e=>(0,i.jsx)(l.XZJ,{size:"sm",colorScheme:"complimentary",isChecked:d.includes(e.id),onChange:()=>f(e.id),"data-testid":"".concat(e.name,"-checkbox"),children:e.name},e.id))})]}),(0,i.jsx)(k.$_,{onApply:()=>{let e=new Set(d);Object.entries(x).forEach(t=>{let[n,i]=t;i.every(e=>d.includes(e.id))?e.add(n):e.delete(n)}),r(Array.from(e)),o()},onClose:o})]})]})};let O=(e,t)=>{var n;return null===(n=e.name)||void 0===n?void 0:n.toLocaleLowerCase().includes(t.toLocaleLowerCase())};var E=e=>{let{title:t,groups:n,locations:s,selected:o,onChange:a,search:r}=e,d=(0,l.qY0)(),[c,h]=(0,u.useState)(!1),g=!!(null==r?void 0:r.length),m=n.length>0,x=s;n.length&&(x=n),g&&(x=[...s,...n].sort((e,t)=>e.name.localeCompare(t.name)));let p=c?x.filter(e=>(0,S.$q)(e,s)):x,j=r?p.filter(e=>O(e,r)):p,f=n.filter(e=>"checked"===(0,S.ji)({group:e,selected:o,locations:s})).map(e=>e.id),v=n.filter(e=>"indeterminate"===(0,S.ji)({group:e,selected:o,locations:s})).map(e=>e.id),y=m?[...f,...o]:o,b=o.length,k=e=>{a(s.map(t=>e.includes(t.id)?{...t,selected:!0}:{...t,selected:!1}))};return 0===j.length&&r?null:(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(C.ZP,{title:t,items:j,selected:y,indeterminate:m?v:[],onChange:e=>{let t=new Set(e),i=new Set(y);e.forEach(e=>{!i.has(e)&&n.find(t=>t.id===e)&&s.filter(t=>{var n;return null===(n=t.belongs_to)||void 0===n?void 0:n.includes(e)}).forEach(e=>{t.add(e.id)})}),i.forEach(e=>{!t.has(e)&&n.find(t=>t.id===e)&&s.filter(t=>{var n;return null===(n=t.belongs_to)||void 0===n?void 0:n.includes(e)}).forEach(e=>{t.delete(e.id)})}),k(Array.from(t))},onViewMore:()=>{d.onOpen()},numSelected:b,toggle:(0,i.jsx)(w,{id:"".concat(t,"-regulated"),isChecked:c,onChange:()=>h(!c)})}),(0,i.jsx)(_,{groups:n,locations:s,isOpen:d.isOpen,onClose:d.onClose,selected:o,onChange:k},"subgroup-modal-selected-".concat(y.length))]})},L=n(64781),A=e=>{var t,n;let{data:s}=e,o=(0,l.pmc)(),a=(0,l.qY0)(),[r,C]=(0,u.useState)(null!==(n=null===(t=s.locations)||void 0===t?void 0:t.filter(e=>e.id!==p._F.GLOBAL))&&void 0!==n?n:[]),[y,w]=(0,u.useState)(""),[b,{isLoading:k}]=(0,L.WA)(),_=(0,u.useMemo)(()=>(0,S.Il)((s.locations||[]).filter(e=>e.id!==p._F.GLOBAL),s.location_groups||[]),[s]),O=!d().isEqual(r,s.locations),A=(0,c.useRouter)(),Z=()=>{A.push(f.vY).then(()=>{o.closeAll()})},F=async()=>{let e=await b({locations:r.map(e=>({id:e.id,selected:e.selected})),regulations:[]});(0,j.D4)(e)?o((0,x.Vo)((0,h.e$)(e.error))):o((0,x.t5)((0,i.jsxs)(l.xvT,{display:"inline",children:["Fides has automatically associated the relevant regulations with your location choices."," ",(0,i.jsx)(v.Z,{onClick:Z,children:"View regulations here."})]})))},M=e=>{C(r.map(t=>{let n=e.find(e=>e.id===t.id);return null!=n?n:t}))};return(0,i.jsxs)(l.gCW,{alignItems:"start",spacing:4,children:[(0,i.jsx)(l.xuv,{maxWidth:"510px",width:"100%",children:(0,i.jsx)(m.Z,{onChange:w,placeholder:"Search",value:y,onClear:()=>w("")})}),(0,i.jsx)(l.MIq,{columns:{base:1,md:2,xl:3},spacing:6,width:"100%",children:Object.entries(_).map(e=>{let[t,n]=e;return(0,i.jsx)(E,{title:t,groups:n.locationGroups,locations:n.locations,selected:r.filter(e=>n.locations.find(t=>t.id===e.id)&&e.selected).map(e=>e.id),onChange:M,search:y},t)})}),(0,i.jsx)(g.Z,{isOpen:a.isOpen,onClose:a.onClose,onConfirm:()=>{F(),a.onClose()},title:"Regulation updates",message:"Modifications in your location settings may also affect your regulation settings to simplify management. You can override any Fides-initiated changes directly in the regulation settings.",isCentered:!0,icon:(0,i.jsx)(l.aNP,{color:"orange"})}),O?(0,i.jsx)(l.wpx,{type:"primary",onClick:a.onOpen,loading:k,"data-testid":"save-btn",children:"Save"}):null]})},Z=()=>{let{isLoading:e}=(0,L.QM)(),t=(0,s.C)(L.P8);return(0,i.jsx)(o.Z,{title:"Locations",children:(0,i.jsxs)(l.xuv,{"data-testid":"location-management",children:[(0,i.jsx)(a.Z,{heading:"Locations"}),(0,i.jsx)(l.xvT,{fontSize:"sm",maxWidth:"720px",pb:6,children:"Select the locations that you operate in and Fides will make sure that you are automatically presented with the relevant regulatory guidelines and global frameworks for your locations."}),(0,i.jsx)(l.xuv,{children:e?(0,i.jsx)(l.$jN,{}):(0,i.jsx)(A,{data:t})})]})})}}},function(e){e.O(0,[9826,2888,9774,179],function(){return e(e.s=40135)}),_N_E=e.O()}]);
|
fides/ui-build/static/admin/_next/static/chunks/pages/settings/organization-aae79a344a96a367.js
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2828],{85082:function(e,i,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/settings/organization",function(){return t(5417)}])},77213:function(e,i,t){"use strict";t.d(i,{Z:function(){return p}});var r=t(24246),n=t(38355),a=t(88038),o=t.n(a),s=t(86677);t(27378);var l=t(25980),d=t(90867),c=t(77830),u=()=>{let e=(0,s.useRouter)();return(0,r.jsx)(n.xuv,{bg:"gray.50",border:"1px solid",borderColor:"blue.400",borderRadius:"md",justifyContent:"space-between",p:5,mb:5,mt:5,children:(0,r.jsxs)(n.xuv,{children:[(0,r.jsxs)(n.Kqy,{direction:{base:"column",sm:"row"},justifyContent:"space-between",children:[(0,r.jsx)(n.xvT,{fontWeight:"semibold",children:"Configure your storage and messaging provider"}),(0,r.jsx)(n.wpx,{onClick:()=>{e.push(c.fz)},children:"Configure"})]}),(0,r.jsxs)(n.xvT,{children:["Before Fides can process your privacy requests we need two simple steps to configure your storage and email client."," "]})]})})},p=e=>{let{children:i,title:t,padded:a=!0,mainProps:c}=e,p=(0,l.hz)(),x=(0,s.useRouter)(),m="/privacy-requests"===x.pathname||"/datastore-connection"===x.pathname,h=!(p.flags.privacyRequestsConfiguration&&m),{data:v}=(0,d.JE)(void 0,{skip:h}),{data:j}=(0,d.PW)(void 0,{skip:h}),g=p.flags.privacyRequestsConfiguration&&(!v||!j)&&m;return(0,r.jsxs)(n.kCb,{"data-testid":t,direction:"column",h:"100vh",children:[(0,r.jsxs)(o(),{children:[(0,r.jsxs)("title",{children:["Fides Admin UI - ",t]}),(0,r.jsx)("meta",{name:"description",content:"Privacy Engineering Platform"}),(0,r.jsx)("link",{rel:"icon",href:"/favicon.ico"})]}),(0,r.jsxs)(n.kCb,{as:"main",direction:"column",py:a?6:0,px:a?10:0,h:a?"calc(100% - 48px)":"full",flex:1,minWidth:0,overflow:"auto",...c,children:[g?(0,r.jsx)(u,{}):null,i]})]})}},58754:function(e,i,t){"use strict";var r=t(24246),n=t(38355),a=t(70788);i.Z=e=>{let{heading:i,breadcrumbItems:t,isSticky:o=!0,children:s,rightContent:l,style:d,...c}=e;return(0,r.jsxs)("div",{...c,style:o?{position:"sticky",top:"-24px",paddingTop:"24px",paddingBottom:"24px",paddingLeft:"40px",marginLeft:"-40px",paddingRight:"40px",marginRight:"-40px",marginTop:"-24px",left:0,zIndex:20,backgroundColor:"white",...d}:{paddingBottom:"24px",...d},children:[(0,r.jsxs)(n.jqI,{justify:"space-between",children:["string"==typeof i?(0,r.jsx)(n.lQT,{className:t||s?"pb-4":void 0,level:1,"data-testid":"page-heading",children:i}):i,l&&(0,r.jsx)("div",{"data-testid":"page-header-right-content",children:l})]}),!!t&&(0,r.jsx)(a.m,{className:s?"pb-4":void 0,items:t,"data-testid":"page-breadcrumb"}),s]})}},19904:function(e,i,t){"use strict";t.d(i,{Tg:function(){return o}});var r=t(24246),n=t(16134),a=t(31793);let o=e=>(0,n.C)(a.uu).filter(i=>e.includes(i)).length>0;i.ZP=e=>{let{scopes:i,children:t}=e;return o(i)?(0,r.jsx)(r.Fragment,{children:t}):null}},97181:function(e,i,t){"use strict";t.d(i,{d:function(){return d}});var r=t(24246),n=t(38355),a=t(34090),o=t(27378),s=t(46238),l=t(40324);let d=e=>{let{name:i,label:t,labelProps:d,tooltip:c,isRequired:u,layout:p="inline",helperText:x,...m}=e,[h,v,{setValue:j}]=(0,a.U$)(i),g=!!(v.touched&&v.error),[f,b]=(0,o.useState)("");h.value||"tags"!==m.mode&&"multiple"!==m.mode||(h.value=[]),"tags"===m.mode&&"string"==typeof h.value&&(h.value=[h.value]);let y="tags"===m.mode?(e,i)=>e?e.value!==f||h.value.includes(f)?m.optionRender?m.optionRender(e,i):e.label:'Create "'.concat(f,'"'):void 0:m.optionRender||void 0,k=e=>{b(e),m.onSearch&&m.onSearch(e)},C=(e,i)=>{j(e),m.onChange&&m.onChange(e,i)};return"inline"===p?(0,r.jsx)(n.NIc,{isInvalid:g,isRequired:u,children:(0,r.jsxs)(n.rjZ,{templateColumns:t?"1fr 3fr":"1fr",children:[t?(0,r.jsx)(l.__,{htmlFor:m.id||i,...d,children:t}):null,(0,r.jsxs)(n.jqI,{align:"center",children:[(0,r.jsxs)(n.jqI,{vertical:!0,flex:1,className:"mr-2",children:[(0,r.jsx)(n.WPr,{...h,id:m.id||i,"data-testid":"controlled-select-".concat(h.name),...m,optionRender:y,onSearch:"tags"===m.mode?k:void 0,onChange:C,value:h.value||void 0,status:g?"error":void 0}),x&&(0,r.jsx)(n.Q6r,{children:x}),(0,r.jsx)(l.Bc,{isInvalid:g,message:v.error,fieldName:h.name})]}),(0,r.jsx)(s.b,{label:c,className:g?"mt-2 self-start":void 0})]})]})}):(0,r.jsx)(n.NIc,{isInvalid:g,isRequired:u,children:(0,r.jsxs)(n.gCW,{alignItems:"start",children:[(0,r.jsxs)(n.jqI,{align:"center",children:[t?(0,r.jsx)(l.__,{htmlFor:m.id||i,fontSize:"xs",my:0,mr:1,...d,children:t}):null,(0,r.jsx)(s.b,{label:c})]}),(0,r.jsx)(n.WPr,{...h,id:m.id||i,"data-testid":"controlled-select-".concat(h.name),...m,optionRender:y,onSearch:"tags"===m.mode?k:void 0,onChange:C,value:h.value||void 0,status:g?"error":void 0}),x&&(0,r.jsx)(n.Q6r,{style:{marginTop:0},children:x}),(0,r.jsx)(l.Bc,{isInvalid:g,message:v.error,fieldName:h.name})]})})}},8133:function(e,i,t){"use strict";var r=t(24246),n=t(38355);i.Z=e=>{let{title:i,children:t,isOpen:a,onClose:o,showCloseButton:s=!1,modalContentProps:l,footer:d,...c}=e;return(0,r.jsxs)(n.u_l,{isOpen:a,onClose:o,isCentered:!0,scrollBehavior:"inside",size:"xl",id:"add-modal",...c,children:[(0,r.jsx)(n.ZAr,{}),(0,r.jsxs)(n.hzk,{textAlign:"left",p:0,"data-testid":"add-modal-content",...l,children:[s&&(0,r.jsx)(n.olH,{}),(0,r.jsx)(n.xBx,{p:0,children:(0,r.jsx)(n.xuv,{backgroundColor:"gray.50",px:6,py:4,border:"1px",borderColor:"gray.200",borderTopRadius:6,display:"flex",justifyContent:"space-between",alignItems:"center",children:(0,r.jsx)(n.X6q,{as:"h3",size:"sm",children:i})})}),(0,r.jsx)(n.fef,{pb:4,overflow:"auto",children:t}),d&&(0,r.jsx)(n.mzw,{children:d})]})]})}},70788:function(e,i,t){"use strict";t.d(i,{m:function(){return d}});var r=t(24246),n=t(38355),a=t(79894),o=t.n(a),s=t(27378);let{Text:l}=n.AntTypography,d=e=>{let{items:i,...t}=e,a=(0,s.useMemo)(()=>null==i?void 0:i.map((e,t)=>{let a=t===i.length-1,s={...e},d=s.onClick&&!s.href;return("string"==typeof s.title&&(s.title=(0,r.jsx)(l,{style:{color:"inherit",maxWidth:a?void 0:400},ellipsis:!a,children:s.title})),d)?s.title=(0,r.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,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("span",{className:"anticon align-text-bottom",children:s.icon}),s.title]})),s.href&&s.title&&(s.title=(0,r.jsx)(o(),{href:s.href,className:"ant-breadcrumb-link",children:s.title}),delete s.href)),s}),[i]);return(0,r.jsx)(n.zrq,{items:a,...t})}},5417:function(e,i,t){"use strict";t.r(i),t.d(i,{default:function(){return N}});var r=t(24246),n=t(19904),a=t(38355),o=t(25980),s=t(77213),l=t(58754),d=t(8133),c=t(34090),u=t(27378),p=t(55484),x=t(40324),m=t(812),h=t(46628),v=t(76174),j=t(97181);let g={identifier:"",name:"",client_id:"",client_secret:""},f=e=>({...e}),b=p.Ry().shape({provider:p.Z_().required().label("Provider"),name:p.Z_().required().label("Name"),client_id:p.Z_().required().label("Client ID"),client_secret:p.Z_().required().label("Client Secret")});var y=e=>{let{openIDProvider:i,onSuccess:t,onClose:n}=e,[o]=(0,v.Qc)(),[s]=(0,v.oP)(),l=(0,u.useMemo)(()=>i?f(i):g,[i]),d=(0,a.pmc)(),p=async(e,i)=>{(e=>{if((0,m.D4)(e)){let i=(0,m.e$)(e.error,"An unexpected error occurred while editing the SSO provider. Please try again.");d((0,h.Vo)(i))}else d((0,h.t5)("SSO provider configuration saved.")),n(),i.resetForm({}),t&&t(e.data)})(l.id?await s(e):await o(e))},y=[{label:"Azure",value:"azure"},{label:"Google",value:"google"},{label:"Okta",value:"okta"},{label:"Custom",value:"custom"}],k=()=>(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(x.j0,{id:"authorization_url",name:"authorization_url",label:"Authorization URL",tooltip:"Authorization URL for your provider",variant:"stacked",isRequired:!0}),(0,r.jsx)(x.j0,{id:"token_url",name:"token_url",label:"Token URL",tooltip:"Token URL for your provider",variant:"stacked",isRequired:!0})]}),C=()=>(0,r.jsx)(x.j0,{id:"domain",name:"domain",label:"Domain",tooltip:"Domain for your Okta provider",variant:"stacked",isRequired:!0}),_=()=>(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(x.j0,{id:"authorization_url",name:"authorization_url",label:"Authorization URL",tooltip:"Authorization URL for your provider",variant:"stacked",isRequired:!0}),(0,r.jsx)(x.j0,{id:"token_url",name:"token_url",label:"Token URL",tooltip:"Token URL for your provider",variant:"stacked",isRequired:!0}),(0,r.jsx)(x.j0,{id:"userinfo_url",name:"user_info_url",label:"User Info URL",tooltip:"User Info URL for your provider",variant:"stacked",isRequired:!0})]});return(0,r.jsx)(c.J9,{initialValues:l,enableReinitialize:!0,onSubmit:p,validationSchema:b,children:e=>{let{dirty:i,isValid:t,values:o}=e;return(0,r.jsx)(c.l0,{"data-testid":"openIDProvider-form",children:(0,r.jsxs)(a.Kqy,{spacing:4,children:[(0,r.jsx)(j.d,{name:"provider",label:"Provider",options:y,layout:"stacked",isRequired:!0}),(0,r.jsx)(x.j0,{id:"identifier",name:"identifier",label:"Identifier",tooltip:"Unique identifier for your provider",variant:"stacked",isRequired:!0,disabled:!!l.id}),(0,r.jsx)(x.j0,{id:"name",name:"name",label:"Name",tooltip:"Display name for your provider",variant:"stacked",isRequired:!0}),(0,r.jsx)(x.j0,{id:"client_id",name:"client_id",label:"Client ID",type:"password",tooltip:"Client ID for your provider",variant:"stacked",isRequired:!0}),(0,r.jsx)(x.j0,{id:"client_secret",name:"client_secret",label:"Client secret",type:"password",tooltip:"Client secret for your provider",variant:"stacked",isRequired:!0}),"azure"===o.provider&&k(),"okta"===o.provider&&C(),"custom"===o.provider&&_(),(0,r.jsxs)(a.xuv,{textAlign:"right",children:[(0,r.jsx)(a.wpx,{htmlType:"button","data-testid":"cancel-btn",className:"mr-3",onClick:n,children:"Cancel"}),(0,r.jsx)(a.wpx,{htmlType:"submit",type:"primary",disabled:!i||!t,"data-testid":"save-btn",children:"Save"})]})]})})}})},k=e=>{let{isOpen:i,onClose:t}=e;return(0,r.jsx)(d.Z,{isOpen:i,onClose:t,title:"Add SSO Provider",children:(0,r.jsx)(y,{onClose:t})})},C=e=>{let{isOpen:i,onClose:t,openIDProvider:n}=e;return(0,r.jsx)(d.Z,{isOpen:i,onClose:t,title:"Edit SSO Provider",children:(0,r.jsx)(y,{openIDProvider:n,onClose:t})})},_=e=>{let{openIDProvider:i}=e,{onOpen:t,isOpen:n,onClose:o}=(0,a.qY0)(),{onOpen:s,isOpen:l,onClose:d}=(0,a.qY0)(),c=(0,a.pmc)(),[u]=(0,v.rB)(),p=async()=>{let e=await u(i.identifier);if((0,m.D4)(e)){c((0,h.Vo)((0,m.e$)(e.error))),d();return}c((0,h.t5)("SSO provider deleted successfully")),d()};return(0,r.jsxs)(a.xuv,{alignItems:"center",borderRadius:"lg",borderWidth:"1px",display:"flex",height:"74px",marginBottom:"24px",padding:2,children:[(0,r.jsxs)(a.xuv,{display:"flex",alignItems:"center",children:[(0,r.jsx)(a.Eep,{src:"/images/oauth-login/".concat(i.provider,".svg"),alt:"".concat(i.provider," icon"),width:"40px",height:"40px"}),(0,r.jsxs)(a.xuv,{display:"flex",flexDirection:"column",children:[(0,r.jsx)(a.xvT,{fontSize:"medium",fontWeight:"bold",marginLeft:"16px",children:i.name}),(0,r.jsx)(a.xvT,{fontSize:"medium",marginLeft:"16px",children:i.identifier})]})]}),(0,r.jsxs)(a.xuv,{flexGrow:1,display:"flex",justifyContent:"flex-end",children:[(0,r.jsx)(a.wpx,{className:"mr-3",onClick:s,"data-testid":"remove-sso-provider-btn",children:"Remove"}),(0,r.jsx)(a.wpx,{className:"mr-3",onClick:t,"data-testid":"edit-sso-provider-btn",children:"Edit"})]}),(0,r.jsx)(C,{isOpen:n,onClose:o,openIDProvider:i}),(0,r.jsx)(a.cVQ,{isOpen:l,onClose:d,onConfirm:p,title:"Remove SSO provider",message:(0,r.jsx)(a.xvT,{children:"You are about to permanently remove this SSO provider. Are you sure you would like to continue?"})})]})},R=()=>{let{onOpen:e,isOpen:i,onClose:t}=(0,a.qY0)(),{data:n}=(0,v.qv)();return(0,r.jsxs)(a.xuv,{maxWidth:"600px",marginTop:"40px",children:[(0,r.jsxs)(a.X6q,{marginBottom:4,fontSize:"lg",display:"flex",justifyContent:"space-between",children:["SSO Providers",n&&n.length<5&&(0,r.jsx)(a.wpx,{onClick:e,"data-testid":"add-sso-provider-btn",children:"Add SSO Provider"})]}),(0,r.jsx)(a.xvT,{marginBottom:"30px",fontSize:"sm",children:"Use this area to add and manage SSO providers for you organization. Select “Add SSO provider” to add a new provider."}),null==n?void 0:n.map(e=>(0,r.jsx)(_,{openIDProvider:e},e.identifier)),(0,r.jsx)(k,{isOpen:i,onClose:t})]})},z=t(83265);let S={description:"",fides_key:z.Av,name:""},q=e=>({...e}),w=e=>({description:e.description,fides_key:e.fides_key,name:e.name}),O=p.Ry().shape({description:p.Z_().required().label("Description"),fides_key:p.Z_().required().label("Organization Fides Key"),name:p.Z_().required().label("Name")}),I=e=>{let{organization:i,onSuccess:t}=e,[n,o]=(0,z.$f)(),s=(0,u.useMemo)(()=>i?q(i):S,[i]),l=(0,a.pmc)(),d=async(e,i)=>{let r=w(e);(n=>{if((0,m.D4)(n)){let e=(0,m.e$)(n.error,"An unexpected error occurred while editing the organization. Please try again.");l((0,h.Vo)(e))}else l((0,h.t5)("Organization configuration saved.")),i.resetForm({values:e}),t&&t(r)})(await n(r))},p=!i||o.isLoading;return(0,r.jsx)(c.J9,{initialValues:s,enableReinitialize:!0,onSubmit:d,validationSchema:O,children:e=>{let{dirty:i,isValid:t}=e;return(0,r.jsx)(c.l0,{"data-testid":"organization-form",children:(0,r.jsxs)(a.Kqy,{spacing:4,children:[(0,r.jsx)(x.j0,{id:"fides_key",name:"fides_key",label:"Fides Key",disabled:!0,tooltip:"A unique key that identifies your organization. Not editable via UI.",variant:"stacked"}),(0,r.jsx)(x.j0,{id:"name",name:"name",label:"Name",disabled:p,tooltip:"User-friendly name for your organization, used in messaging to end-users and other public locations.",variant:"stacked"}),(0,r.jsx)(x.j0,{id:"description",name:"description",label:"Description",disabled:p,tooltip:"Short description of your organization, your services, etc.",variant:"stacked"}),(0,r.jsx)(a.xuv,{textAlign:"right",children:(0,r.jsx)(a.wpx,{htmlType:"submit",type:"primary",disabled:p||!i||!t,loading:p,"data-testid":"save-btn",children:"Save"})})]})})}})};var P=t(46420),N=()=>{let{data:e}=(0,z.GQ)(z.Av),{plus:i,flags:{ssoAuthentication:t}}=(0,o.hz)();return(0,r.jsx)(s.Z,{title:"Organization",children:(0,r.jsxs)(a.xuv,{"data-testid":"organization-management",children:[(0,r.jsx)(l.Z,{heading:"Organization Management"}),(0,r.jsxs)(a.xuv,{maxWidth:"600px",children:[(0,r.jsx)(a.xvT,{pb:6,fontSize:"sm",children:"Please use this section to manage your organization‘s details, including key information that will be recorded in the RoPA (Record of Processing Activities)."}),(0,r.jsx)(a.xuv,{background:"gray.50",padding:2,children:(0,r.jsx)(I,{organization:e})}),t&&i&&(0,r.jsx)(n.ZP,{scopes:[P.Sh.OPENID_PROVIDER_CREATE],children:(0,r.jsx)(R,{})})]})]})})}}},function(e){e.O(0,[2888,9774,179],function(){return e(e.s=85082)}),_N_E=e.O()}]);
|
@@ -1 +1 @@
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4650],{68523:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/settings/regulations",function(){return t(66773)}])},66773:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return q}});var i=t(24246),s=t(
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4650],{68523:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/settings/regulations",function(){return t(66773)}])},66773:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return q}});var i=t(24246),s=t(38355),l=t(79894),o=t.n(l),a=t(16134),r=t(77213),c=t(77830),d=t(58754),u=t(64781),h=t(98784),g=t.n(h),m=t(86677),x=t(27378),p=t(812),j=t(58452),C=t(26917),v=t(46628),f=t(26089),y=t(31883),w=t(61524),_=t(67991),S=t(12282),k=e=>{let{regulations:n,isOpen:t,onClose:l,selected:o,onChange:a}=e,[r,c]=(0,x.useState)(o),{allSelected:d,handleToggleAll:u,handleToggleSelection:h}=(0,_.QZ)({items:n,selected:r,onChange:c}),g=r.length,m=n[0].continent;return(0,i.jsxs)(s.u_l,{size:"2xl",isOpen:t,onClose:l,isCentered:!0,children:[(0,i.jsx)(s.ZAr,{}),(0,i.jsxs)(s.hzk,{"data-testid":"regulation-modal",children:[(0,i.jsx)(S.h4,{title:"Select regulations"}),(0,i.jsxs)(s.fef,{p:6,maxHeight:"70vh",overflowY:"auto",children:[(0,i.jsx)(S.x$,{title:m,allSelected:d,onToggleAll:u,numSelected:g}),(0,i.jsx)(s.MIq,{columns:3,spacing:6,paddingInline:4,children:n.map(e=>(0,i.jsx)(s.XZJ,{size:"sm",colorScheme:"complimentary",isChecked:r.includes(e.id),onChange:()=>h(e.id),"data-testid":"".concat(e.name,"-checkbox"),children:e.name},e.id))})]}),(0,i.jsx)(S.$_,{onApply:()=>{a(r),l()},onClose:l})]})]})},O=e=>{let{title:n,items:t,selected:l,onChange:o}=e,a=(0,s.qY0)();return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(w.ZP,{title:n,items:t,selected:l,onChange:o,numSelected:l.length,indeterminate:[],onViewMore:t.length>w.I_?a.onOpen:void 0}),(0,i.jsx)(k,{regulations:t,isOpen:a.isOpen,onClose:a.onClose,selected:l,onChange:o},"regulation-modal-selected-".concat(l.length))]})},Z=t(85759);let b=(e,n)=>{var t;return null===(t=e.name)||void 0===t?void 0:t.toLocaleLowerCase().includes(n.toLocaleLowerCase())};var N=e=>{var n;let{data:t}=e,l=(0,s.pmc)(),o=(0,s.qY0)(),[a,r]=(0,x.useState)(null!==(n=t.regulations)&&void 0!==n?n:[]),[d,h]=(0,x.useState)(""),[w,{isLoading:_}]=(0,u.WA)(),S=(0,x.useMemo)(()=>{var e,n;let i=null!==(n=null===(e=t.regulations)||void 0===e?void 0:e.filter(e=>b(e,d)))&&void 0!==n?n:[];return(0,Z.F7)(i)},[t.regulations,d]),k=!g().isEqual(a,t.regulations),N=(0,m.useRouter)(),q=()=>{N.push(c.r5).then(()=>{l.closeAll()})},E=async()=>{let e=await w({regulations:a.map(e=>({id:e.id,selected:e.selected})),locations:[]});(0,y.D4)(e)?l((0,v.Vo)((0,p.e$)(e.error))):l((0,v.t5)((0,i.jsxs)(s.xvT,{display:"inline",children:["Fides has automatically associated the relevant locations with your regulation choices.",(0,i.jsx)(f.Z,{onClick:q,children:"View locations here."})]})))},L=e=>{r(a.map(n=>{let t=e.find(e=>e.id===n.id);return null!=t?t:n}))};return(0,i.jsxs)(s.gCW,{alignItems:"start",spacing:4,children:[(0,i.jsx)(s.xuv,{maxWidth:"510px",width:"100%",children:(0,i.jsx)(C.Z,{onChange:h,placeholder:"Search",value:d,onClear:()=>h("")})}),(0,i.jsx)(s.MIq,{columns:{base:1,md:2,xl:3},spacing:6,width:"100%",children:Object.entries(S).map(e=>{let[n,t]=e,s=a.filter(e=>t.find(n=>n.id===e.id)&&e.selected).map(e=>e.id);return(0,i.jsx)(O,{title:n,items:t,selected:s,onChange:e=>{L(t.map(n=>e.includes(n.id)?{...n,selected:!0}:{...n,selected:!1}))}},n)})}),(0,i.jsx)(j.Z,{isOpen:o.isOpen,onClose:o.onClose,onConfirm:()=>{E(),o.onClose()},title:"Location updates",message:"Modifications in your regulation settings may also affect your location settings to simplify management. You can override any Fides-initiated changes directly in the location settings.",isCentered:!0,icon:(0,i.jsx)(s.aNP,{color:"orange"})}),k&&(0,i.jsx)(s.wpx,{type:"primary",onClick:o.onOpen,loading:_,"data-testid":"save-btn",children:"Save"})]})},q=()=>{let{isLoading:e}=(0,u.QM)(),n=(0,a.C)(u.P8);return(0,i.jsx)(r.Z,{title:"Regulations",children:(0,i.jsxs)(s.xuv,{"data-testid":"regulation-management",children:[(0,i.jsx)(d.Z,{heading:"Regulations"}),(0,i.jsxs)(s.xvT,{pb:6,fontSize:"sm",maxWidth:"600px",children:["Select the regulations that apply to your organizations compliance requirements. The selections you make here will automatically update your location selections."," ",(0,i.jsx)(s.rUS,{as:o(),href:c.r5,color:"complimentary.500",children:"You can view your location settings here."})]}),(0,i.jsx)(s.xuv,{children:e?(0,i.jsx)(s.$jN,{}):(0,i.jsx)(N,{data:n})})]})})}}},function(e){e.O(0,[9826,2888,9774,179],function(){return e(e.s=68523)}),_N_E=e.O()}]);
|
@@ -0,0 +1 @@
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1617],{54543:function(e,t,i){(window.__NEXT_P=window.__NEXT_P||[]).push(["/systems/configure/[id]/test-datasets",function(){return i(94010)}])},18225:function(e,t,i){"use strict";var s=i(24246),n=i(38355);t.Z=e=>{let{alignment:t="center",...i}=e;return(0,s.jsx)(n.kCb,{boxSize:"full",align:"center",justify:t,children:(0,s.jsx)(n.$jN,{color:"primary",...i})})}},77213:function(e,t,i){"use strict";i.d(t,{Z:function(){return f}});var s=i(24246),n=i(38355),l=i(88038),r=i.n(l),a=i(86677);i(27378);var o=i(25980),d=i(90867),u=i(77830),c=()=>{let e=(0,a.useRouter)();return(0,s.jsx)(n.xuv,{bg:"gray.50",border:"1px solid",borderColor:"blue.400",borderRadius:"md",justifyContent:"space-between",p:5,mb:5,mt:5,children:(0,s.jsxs)(n.xuv,{children:[(0,s.jsxs)(n.Kqy,{direction:{base:"column",sm:"row"},justifyContent:"space-between",children:[(0,s.jsx)(n.xvT,{fontWeight:"semibold",children:"Configure your storage and messaging provider"}),(0,s.jsx)(n.wpx,{onClick:()=>{e.push(u.fz)},children:"Configure"})]}),(0,s.jsxs)(n.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:l=!0,mainProps:u}=e,f=(0,o.hz)(),h=(0,a.useRouter)(),p="/privacy-requests"===h.pathname||"/datastore-connection"===h.pathname,m=!(f.flags.privacyRequestsConfiguration&&p),{data:y}=(0,d.JE)(void 0,{skip:m}),{data:x}=(0,d.PW)(void 0,{skip:m}),v=f.flags.privacyRequestsConfiguration&&(!y||!x)&&p;return(0,s.jsxs)(n.kCb,{"data-testid":i,direction:"column",h:"100vh",children:[(0,s.jsxs)(r(),{children:[(0,s.jsxs)("title",{children:["Fides Admin UI - ",i]}),(0,s.jsx)("meta",{name:"description",content:"Privacy Engineering Platform"}),(0,s.jsx)("link",{rel:"icon",href:"/favicon.ico"})]}),(0,s.jsxs)(n.kCb,{as:"main",direction:"column",py:l?6:0,px:l?10:0,h:l?"calc(100% - 48px)":"full",flex:1,minWidth:0,overflow:"auto",...u,children:[v?(0,s.jsx)(c,{}):null,t]})]})}},58754:function(e,t,i){"use strict";var s=i(24246),n=i(38355),l=i(70788);t.Z=e=>{let{heading:t,breadcrumbItems:i,isSticky:r=!0,children:a,rightContent:o,style:d,...u}=e;return(0,s.jsxs)("div",{...u,style:r?{position:"sticky",top:"-24px",paddingTop:"24px",paddingBottom:"24px",paddingLeft:"40px",marginLeft:"-40px",paddingRight:"40px",marginRight:"-40px",marginTop:"-24px",left:0,zIndex:20,backgroundColor:"white",...d}:{paddingBottom:"24px",...d},children:[(0,s.jsxs)(n.jqI,{justify:"space-between",children:["string"==typeof t?(0,s.jsx)(n.lQT,{className:i||a?"pb-4":void 0,level:1,"data-testid":"page-heading",children:t}):t,o&&(0,s.jsx)("div",{"data-testid":"page-header-right-content",children:o})]}),!!i&&(0,s.jsx)(l.m,{className:a?"pb-4":void 0,items:i,"data-testid":"page-breadcrumb"}),a]})}},70788:function(e,t,i){"use strict";i.d(t,{m:function(){return d}});var s=i(24246),n=i(38355),l=i(79894),r=i.n(l),a=i(27378);let{Text:o}=n.AntTypography,d=e=>{let{items:t,...i}=e,l=(0,a.useMemo)(()=>null==t?void 0:t.map((e,i)=>{let l=i===t.length-1,a={...e},d=a.onClick&&!a.href;return("string"==typeof a.title&&(a.title=(0,s.jsx)(o,{style:{color:"inherit",maxWidth:l?void 0:400},ellipsis:!l,children:a.title})),d)?a.title=(0,s.jsx)(n.wpx,{type:"text",size:"small",icon:a.icon,onClick:a.onClick,className:"ant-breadcrumb-link -mt-px px-1 text-inherit",children:a.title}):(a.icon&&(a.title=(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("span",{className:"anticon align-text-bottom",children:a.icon}),a.title]})),a.href&&a.title&&(a.title=(0,s.jsx)(r(),{href:a.href,className:"ant-breadcrumb-link",children:a.title}),delete a.href)),a}),[t]);return(0,s.jsx)(n.zrq,{items:l,...i})}},41207:function(e,t,i){"use strict";i.d(t,{F:function(){return r},M:function(){return l}});var s=i(76649),n=i(65218);let l=i.n(n)()(()=>i.e(7088).then(i.bind(i,57088)).then(e=>e.default),{loadableGenerated:{webpack:()=>[57088]},ssr:!1}),r=e=>(0,s.Ln)({name:"string"},e)&&"YAMLException"===e.name},94010:function(e,t,i){"use strict";i.r(t),i.d(t,{default:function(){return z}});var s=i(24246),n=i(38355),l=i(86677),r=i(27378),a=i(16134),o=i(18225),d=i(77213),u=i(77830),c=i(58754),f=i(1315),h=i(66527),p=i(88340),m=i(812),y=i(46628),x=i(41207),v=i(41966),g=i(94725),b=i(88124);let _=e=>Array.isArray(e)?e.map(e=>_(e)).filter(e=>null!==e):e&&"object"==typeof e?Object.fromEntries(Object.entries(e).map(e=>{let[t,i]=e;return[t,_(i)]}).filter(e=>{let[,t]=e;return null!==t})):e,j=e=>{if(Array.isArray(e)){let t=e[0];if(!t)return"";let i=t.msg||"",s=t.loc?" (".concat(t.loc,")"):"";return"".concat(i).concat(s)}return e};var k=e=>{let{connectionKey:t}=e,i=(0,n.pmc)(),l=(0,a.T)(),[o]=(0,v.TG)(),[d,u]=(0,r.useState)(""),c=(0,a.C)(b.fD),f=(0,a.C)(b.lR),{data:k,isLoading:w,refetch:T}=(0,g.Eg)(t,{skip:!t}),{data:C,refetch:E}=(0,g.tW)({connectionKey:t,datasetKey:(null==c?void 0:c.fides_key)||"",policyKey:f},{skip:!t||!(null==c?void 0:c.fides_key)||!f});(0,r.useEffect)(()=>{C&&l((0,b.x0)(C.reachable))},[C,l]);let R=(0,r.useMemo)(()=>((null==k?void 0:k.items)||[]).map(e=>({value:e.fides_key,label:e.fides_key})),[null==k?void 0:k.items]);(0,r.useEffect)(()=>{if((null==k?void 0:k.items.length)&&(!c||!k.items.find(e=>e.fides_key===c.fides_key))){let e=k.items[0];l((0,b.w7)(e))}},[k,c,l]),(0,r.useEffect)(()=>{(null==c?void 0:c.ctl_dataset)&&u(h.ZP.dump(_(null==c?void 0:c.ctl_dataset)))},[c]),(0,r.useEffect)(()=>{f&&(null==c?void 0:c.fides_key)&&t&&E()},[f,null==c?void 0:c.fides_key,t,E]),(0,r.useEffect)(()=>{C&&l((0,b.x0)(C.reachable))},[C,l]);let S=async e=>{let t=null==k?void 0:k.items.find(t=>t.fides_key===e);t&&l((0,b.w7)(t))},O=async()=>{let e;if(!c)return;try{e=h.ZP.load(d)}catch(e){i((0,y.Vo)("YAML Parsing Error: ".concat(e instanceof h._L?"".concat(e.reason," ").concat(e.mark?"at line ".concat(e.mark.line):""):"Invalid YAML format")));return}let t=await o(e);if((0,m.D4)(t)){i((0,y.Vo)((0,m.e$)(t.error)));return}l((0,b.w7)({fides_key:c.fides_key,ctl_dataset:t.data})),i((0,y.t5)("Successfully modified dataset")),await T(),await E()},N=async()=>{try{let{data:e}=await T(),t=null==e?void 0:e.items.find(e=>e.fides_key===(null==c?void 0:c.fides_key));(null==t?void 0:t.ctl_dataset)&&u(h.ZP.dump(_(t.ctl_dataset))),i((0,y.t5)("Successfully refreshed datasets"))}catch(e){i((0,y.Vo)((0,m.e$)(e)))}};return(0,s.jsxs)(n.gCW,{alignItems:"stretch",flex:"1",maxWidth:"70vw",maxHeight:"100vh",children:[(0,s.jsxs)(n.X6q,{as:"h3",size:"sm",display:"flex",alignItems:"center",justifyContent:"space-between",children:[(0,s.jsxs)(n.Ugi,{children:[(0,s.jsx)(n.xvT,{children:"Edit dataset: "}),(0,s.jsx)(n.WPr,{id:"format","data-testid":"export-format-select",value:(null==c?void 0:c.fides_key)||"",options:R,onChange:S,className:"w-64"}),(0,s.jsx)(p.Z,{copyText:d})]}),(0,s.jsxs)(n.Ugi,{spacing:2,children:[(0,s.jsx)(n.esZ,{title:"Refresh to load the latest data from the database. This will overwrite any unsaved local changes.",placement:"top",children:(0,s.jsx)(n.wpx,{htmlType:"submit",size:"small","data-testid":"refresh-btn",onClick:N,loading:w,children:"Refresh"})}),(0,s.jsx)(n.esZ,{title:"Save your changes to update the dataset in the database.",placement:"top",children:(0,s.jsx)(n.wpx,{htmlType:"submit",size:"small",onClick:O,children:"Save"})})]})]}),(0,s.jsx)(n.Kqy,{border:"1px solid",borderColor:"gray.200",borderRadius:"md",justifyContent:"space-between",py:4,pr:4,"data-testid":"empty-state",flex:"1 1 auto",minHeight:"200px",children:(0,s.jsx)(x.M,{defaultLanguage:"yaml",value:d,height:"100%",onChange:e=>u(e||""),onMount:()=>{},options:{fontFamily:"Menlo",fontSize:13,minimap:{enabled:!1},readOnly:!1,hideCursorInOverviewRuler:!0,overviewRulerBorder:!1,scrollBeyondLastLine:!1},theme:"light"})}),C&&(0,s.jsx)(n.Kqy,{backgroundColor:(null==C?void 0:C.reachable)?"green.50":"red.50",border:"1px solid",borderColor:(null==C?void 0:C.reachable)?"green.500":"red.500",borderRadius:"md",p:2,flexShrink:0,mt:2,children:(0,s.jsx)(n.Ugi,{alignItems:"center",children:(0,s.jsxs)(n.Ugi,{flex:"1",children:[(null==C?void 0:C.reachable)?(0,s.jsx)(n.StI,{}):(0,s.jsx)(n.f9v,{}),(0,s.jsx)(n.xvT,{fontSize:"sm",whiteSpace:"pre-wrap",children:(null==C?void 0:C.reachable)?"Dataset is reachable":"Dataset is not reachable. ".concat(j(null==C?void 0:C.details))})]})})})]})},w=i(54458),T=i(16125),C=i(99716);let E=e=>{let t=new Date(e);return(0,w.WU)(t,"yyyy-MM-dd HH:mm:ss.SSS")},R=e=>{switch(e){case"ERROR":return"red.500";case"WARNING":return"orange.500";case"INFO":return"blue.500";default:return"gray.500"}},S=(0,r.memo)(e=>{let{log:t}=e;return(0,s.jsxs)(n.xuv,{as:"pre",margin:0,fontSize:"xs",fontFamily:"monospace",whiteSpace:"pre-wrap",wordBreak:"break-word",children:[(0,s.jsx)(n.xvT,{as:"span",color:"green.500",children:E(t.timestamp)}),(0,s.jsx)(n.xvT,{as:"span",children:" | "}),(0,s.jsx)(n.xvT,{as:"span",color:R(t.level),children:t.level.padEnd(8)}),(0,s.jsx)(n.xvT,{as:"span",children:" | "}),(0,s.jsx)(n.xvT,{as:"span",color:"cyan.500",children:t.module_info}),(0,s.jsx)(n.xvT,{as:"span",children:" - "}),(0,s.jsx)(n.xvT,{as:"span",color:"ERROR"===t.level||"WARNING"===t.level?R(t.level):"gray.800",children:t.message})]})});S.displayName="LogLine";var O=(0,r.memo)(()=>{let e=(0,a.T)(),t=(0,r.useRef)(null),i=(0,T.v9)(b.HN),l=(0,T.v9)(b.pz),{data:o}=(0,C.fV)({privacy_request_id:i},{skip:!i,pollingInterval:1e3});(0,r.useEffect)(()=>{o&&e((0,b.Hy)(o))},[o,e]);let d=(0,r.useCallback)(()=>{t.current&&(t.current.scrollTop=t.current.scrollHeight)},[]);(0,r.useEffect)(()=>{d()},[l,d]);let u=(0,r.useMemo)(()=>(null==l?void 0:l.map(e=>"".concat(E(e.timestamp)," | ").concat(e.level," | ").concat(e.module_info," - ").concat(e.message)).join("\n"))||"",[l]);return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(n.X6q,{as:"h3",size:"sm",display:"flex",alignItems:"center",justifyContent:"space-between",children:(0,s.jsxs)(n.Ugi,{children:[(0,s.jsx)(n.xvT,{children:"Test logs"}),(0,s.jsx)(p.Z,{copyText:u})]})}),(0,s.jsx)(n.xuv,{ref:t,height:"200px",overflowY:"auto",borderWidth:1,borderColor:"gray.200",borderRadius:"md",p:2,children:null==l?void 0:l.map(e=>(0,s.jsx)(S,{log:e},"".concat(e.timestamp,"-").concat(e.module_info,"-").concat(e.message)))})]})}),N=i(46238);let{useGetPoliciesQuery:P}=i(78780).u.injectEndpoints({endpoints:e=>({getPolicies:e.query({query:()=>({url:"/dsr/policy"}),providesTags:()=>["Policies"]})})});var q=i(46420),I=i(31883),M=e=>{let{connectionKey:t}=e,i=(0,n.pmc)(),l=(0,a.T)(),[o]=(0,g.s7)(),d=(0,T.v9)(b.fD),u=(0,T.v9)(b.YS),c=(0,T.v9)(b.Af),f=(0,T.v9)(b.zn),h=(0,T.v9)(b.lR),x=(0,T.v9)(b.M_),v=(0,T.v9)(b.HN),[_,j]=(0,r.useState)("{}");(0,r.useEffect)(()=>{d&&j(JSON.stringify(f,null,2))},[d,f]);let{data:k,error:w}=(0,C.Z2)({privacy_request_id:v},{skip:!v||!(null==d?void 0:d.fides_key),pollingInterval:2e3}),{refetch:E}=(0,C.fV)({privacy_request_id:v},{skip:!v}),{refetch:R}=(0,g.I1)({connectionKey:t,datasetKey:(null==d?void 0:d.fides_key)||""},{skip:!t||!(null==d?void 0:d.fides_key),refetchOnMountOrArgChange:!0}),{data:S}=P(),O=(0,r.useMemo)(()=>((null==S?void 0:S.items)||[]).filter(e=>{var t;return null===(t=e.rules)||void 0===t?void 0:t.some(e=>"access"===e.action_type)}).map(e=>({value:e.key,label:e.name})),[null==S?void 0:S.items]);(0,r.useEffect)(()=>{let e=null==d?void 0:d.fides_key;t&&e&&R().then(t=>{t.data&&(null==d?void 0:d.fides_key)===e&&l((0,b.qD)({datasetKey:e,values:t.data}))})},[d,t,l,R]),(0,r.useEffect)(()=>{let e=null==d?void 0:d.fides_key;if(w&&"status"in w&&404===w.status){l((0,b.hT)()),i((0,y.Vo)("Test run failed"));return}if(!k||k.privacy_request_id!==v||!e)return;let t={datasetKey:e,values:JSON.stringify(k,null,2)};k.status===q.q2.COMPLETE?x&&E().then(()=>{l((0,b.EO)(t)),l((0,b.hT)()),i((0,y.t5)("Test run completed successfully"))}):k.status===q.q2.ERROR&&E().then(()=>{l((0,b.EO)(t)),l((0,b.hT)()),i((0,y.Vo)("Test run failed"))})},[k,w,v,d,x,l,i,E]);let M=(0,r.useMemo)(()=>h&&(null==S?void 0:S.items)?h:null,[h,null==S?void 0:S.items]),D=async()=>{if((null==d?void 0:d.fides_key)&&h)try{let e;try{e=JSON.parse(_)}catch(e){i((0,y.Vo)("Invalid JSON in test input"));return}l((0,b.Vh)(d.fides_key)),i((0,y.t5)("Test run started"));let s=await o({connection_key:t,dataset_key:d.fides_key,identities:e,policy_key:h});(0,I.D4)(s)?(i((0,y.Vo)((0,m.e$)(s.error))),l((0,b.hT)())):"data"in s?l((0,b.eY)(s.data.privacy_request_id)):(l((0,b.hT)()),i((0,y.Vo)("No privacy request ID in response")))}catch(e){l((0,b.hT)()),i((0,y.Vo)("Failed to start test run"))}};return(0,s.jsxs)(n.gCW,{alignItems:"stretch",flex:"1",maxWidth:"70vw",minHeight:"0",children:[(0,s.jsxs)(n.X6q,{as:"h3",size:"sm",display:"flex",alignItems:"center",justifyContent:"space-between",children:[(0,s.jsxs)(n.Ugi,{children:[(0,s.jsx)(n.xvT,{children:"Test inputs"}),(0,s.jsx)(p.Z,{copyText:_})]}),(0,s.jsxs)(n.Ugi,{children:[(0,s.jsx)(n.WPr,{id:"policy","aria-label":"Policy selector","data-testid":"policy-select",placeholder:"Select policy",value:M,options:O,onChange:e=>{l((0,b.kF)(e))},className:"w-64"}),(0,s.jsx)(n.wpx,{htmlType:"submit",size:"small",type:"primary","data-testid":"run-btn",onClick:x?()=>{l((0,b.qU)()),i((0,y.t5)("Test manually stopped by user"))}:D,disabled:!h||!u,children:x?"Stop":"Run"}),(0,s.jsx)(N.b,{label:x?"Stop the currently running test":"Run a test access request using the provided test input data and the selected access policy"})]})]}),(0,s.jsx)(n.gxH,{size:"sm",focusBorderColor:"primary.600",color:"gray.800",isDisabled:x,height:"100%",value:_,onChange:e=>{let t=e.target.value;j(t);try{let e=JSON.parse(t);d&&l((0,b.qD)({datasetKey:d.fides_key,values:e}))}catch(e){}}}),(0,s.jsxs)(n.X6q,{as:"h3",size:"sm",children:["Test results ",(0,s.jsx)(p.Z,{copyText:c})]}),(0,s.jsx)(n.gxH,{isReadOnly:!0,size:"sm",focusBorderColor:"primary.600",color:"gray.800",isDisabled:!1,height:"100%",value:c})]})};let D=e=>e.id?Array.isArray(e.id)?e.id[0]:e.id:"";var z=()=>{var e;let t=(0,l.useRouter)(),i=(0,a.T)(),h=D(t.query),{data:p,isLoading:m}=(0,f.rn)(h,{skip:!h}),y=(null==p?void 0:null===(e=p.connection_configs)||void 0===e?void 0:e.key)||"";return((0,r.useEffect)(()=>{i((0,f.db)(p))},[p,i]),m)?(0,s.jsx)(d.Z,{title:"Systems",children:(0,s.jsx)(o.Z,{})}):(0,s.jsxs)(d.Z,{title:"System inventory",mainProps:{height:"100vh",display:"flex",flexDirection:"column"},children:[(0,s.jsx)(c.Z,{heading:"System inventory",breadcrumbItems:[{title:"System inventory",href:u.So},{title:(null==p?void 0:p.name)||"",href:"/systems/configure/".concat(h,"#integrations")},{title:"Test datasets"}]}),(0,s.jsxs)(n.gCW,{alignItems:"stretch",flex:"1",minHeight:"0",spacing:"4",padding:"0",children:[(0,s.jsxs)(n.Ugi,{alignItems:"stretch",flex:"1",minHeight:"0",spacing:"4",maxHeight:"60vh",children:[(0,s.jsx)(k,{connectionKey:y}),(0,s.jsx)(M,{connectionKey:y})]}),(0,s.jsx)(n.xuv,{flex:"0 0 auto",children:(0,s.jsx)(O,{})})]})]})}},31883:function(e,t,i){"use strict";i.d(t,{Bw:function(){return s.Bw},D4:function(){return s.D4}});var s=i(19043)},76737:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var i in t)Object.defineProperty(e,i,{enumerable:!0,get:t[i]})}(t,{default:function(){return a},noSSR:function(){return r}});let s=i(51538);i(24246),i(27378);let n=s._(i(21887));function l(e){return{default:(null==e?void 0:e.default)||e}}function r(e,t){return delete t.webpack,delete t.modules,e(t)}function a(e,t){let i=n.default,s={loading:e=>{let{error:t,isLoading:i,pastDelay:s}=e;return null}};e instanceof Promise?s.loader=()=>e:"function"==typeof e?s.loader=e:"object"==typeof e&&(s={...s,...e});let a=(s={...s,...t}).loader;return(s.loadableGenerated&&(s={...s,...s.loadableGenerated},delete s.loadableGenerated),"boolean"!=typeof s.ssr||s.ssr)?i({...s,loader:()=>null!=a?a().then(l):Promise.resolve(l(()=>null))}):(delete s.webpack,delete s.modules,r(i,s))}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},28438:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"LoadableContext",{enumerable:!0,get:function(){return s}});let s=i(51538)._(i(27378)).default.createContext(null)},21887:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return f}});let s=i(51538)._(i(27378)),n=i(28438),l=[],r=[],a=!1;function o(e){let t=e(),i={loading:!0,loaded:null,error:null};return i.promise=t.then(e=>(i.loading=!1,i.loaded=e,e)).catch(e=>{throw i.loading=!1,i.error=e,e}),i}class d{promise(){return this._res.promise}retry(){this._clearTimeouts(),this._res=this._loadFn(this._opts.loader),this._state={pastDelay:!1,timedOut:!1};let{_res:e,_opts:t}=this;e.loading&&("number"==typeof t.delay&&(0===t.delay?this._state.pastDelay=!0:this._delay=setTimeout(()=>{this._update({pastDelay:!0})},t.delay)),"number"==typeof t.timeout&&(this._timeout=setTimeout(()=>{this._update({timedOut:!0})},t.timeout))),this._res.promise.then(()=>{this._update({}),this._clearTimeouts()}).catch(e=>{this._update({}),this._clearTimeouts()}),this._update({})}_update(e){this._state={...this._state,error:this._res.error,loaded:this._res.loaded,loading:this._res.loading,...e},this._callbacks.forEach(e=>e())}_clearTimeouts(){clearTimeout(this._delay),clearTimeout(this._timeout)}getCurrentValue(){return this._state}subscribe(e){return this._callbacks.add(e),()=>{this._callbacks.delete(e)}}constructor(e,t){this._loadFn=e,this._opts=t,this._callbacks=new Set,this._delay=null,this._timeout=null,this.retry()}}function u(e){return function(e,t){let i=Object.assign({loader:null,loading:null,delay:200,timeout:null,webpack:null,modules:null},t),l=null;function o(){if(!l){let t=new d(e,i);l={getCurrentValue:t.getCurrentValue.bind(t),subscribe:t.subscribe.bind(t),retry:t.retry.bind(t),promise:t.promise.bind(t)}}return l.promise()}if(!a){let e=i.webpack?i.webpack():i.modules;e&&r.push(t=>{for(let i of e)if(t.includes(i))return o()})}function u(e,t){!function(){o();let e=s.default.useContext(n.LoadableContext);e&&Array.isArray(i.modules)&&i.modules.forEach(t=>{e(t)})}();let r=s.default.useSyncExternalStore(l.subscribe,l.getCurrentValue,l.getCurrentValue);return s.default.useImperativeHandle(t,()=>({retry:l.retry}),[]),s.default.useMemo(()=>{var t;return r.loading||r.error?s.default.createElement(i.loading,{isLoading:r.loading,pastDelay:r.pastDelay,timedOut:r.timedOut,error:r.error,retry:l.retry}):r.loaded?s.default.createElement((t=r.loaded)&&t.default?t.default:t,e):null},[e,r])}return u.preload=()=>o(),u.displayName="LoadableComponent",s.default.forwardRef(u)}(o,e)}function c(e,t){let i=[];for(;e.length;){let s=e.pop();i.push(s(t))}return Promise.all(i).then(()=>{if(e.length)return c(e,t)})}u.preloadAll=()=>new Promise((e,t)=>{c(l).then(e,t)}),u.preloadReady=e=>(void 0===e&&(e=[]),new Promise(t=>{let i=()=>(a=!0,t());c(r,e).then(i,i)})),window.__NEXT_PRELOADREADY=u.preloadReady;let f=u},65218:function(e,t,i){e.exports=i(76737)}},function(e){e.O(0,[6527,2888,9774,179],function(){return e(e.s=54543)}),_N_E=e.O()}]);
|
@@ -1 +1 @@
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3691],{8828:function(e,t,i){(window.__NEXT_P=window.__NEXT_P||[]).push(["/systems/configure/[id]",function(){return i(51226)}])},66379:function(e,t,i){"use strict";var n=i(24246),s=i(
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3691],{8828:function(e,t,i){(window.__NEXT_P=window.__NEXT_P||[]).push(["/systems/configure/[id]",function(){return i(51226)}])},66379:function(e,t,i){"use strict";var n=i(24246),s=i(38355),r=i(7617);t.Z=e=>{let{data:t,border:i="partial",borderWidth:l=2,...a}=e;return(0,n.jsx)(s.mQc,{colorScheme:"complimentary",...a,children:(0,n.jsx)(s.tdY,{width:"partial"===i?"max-content":void 0,borderBottomWidth:l,children:t.map(e=>(0,n.jsx)(r.q,{label:e.label,"data-testid":e.label,isDisabled:e.isDisabled,fontSize:a.fontSize},e.label))})})}},18225:function(e,t,i){"use strict";var n=i(24246),s=i(38355);t.Z=e=>{let{alignment:t="center",...i}=e;return(0,n.jsx)(s.kCb,{boxSize:"full",align:"center",justify:t,children:(0,n.jsx)(s.$jN,{color:"primary",...i})})}},51226:function(e,t,i){"use strict";i.r(t),i.d(t,{default:function(){return _}});var n=i(24246),s=i(38355),r=i(86677),l=i(27378),a=i(16134),d=e=>{let{data:t,...i}=e;return(0,n.jsx)(s.mQc,{colorScheme:"complimentary",...i,children:(0,n.jsx)(s.nPR,{children:t.map(e=>(0,n.jsx)(s.x45,{px:0,"data-testid":"tab-panel-".concat(e.label),children:e.content},e.label))})})},c=i(66379),o=i(25980),u=i(18225),h=i(812),x=i(14048),m=i(77213),f=i(77830),j=i(58754),p=i(32885),y=i(1315),b=i(57865),g=i(72774),v=i(72250),_=()=>{let e=(0,r.useRouter)(),t=(0,a.T)(),i="";e.query.id&&(i=Array.isArray(e.query.id)?e.query.id[0]:e.query.id);let{data:_,isLoading:w}=(0,y.rn)(i,{skip:!i}),{error:C,isLoading:S}=(0,p.Rd)(),{tcf:Z,plus:k}=(0,o.hz)(),z=(0,a.C)(b.gU);(0,l.useEffect)(()=>{if(t((0,y.db)(_)),_){let e=Z&&!!_.vendor_id&&(0,h.cj)(_.vendor_id)===h.c6.GVL;t((0,b.gQ)(e))}else(0,b.gQ)(!1)},[_,t,Z]);let{tabData:N,tabIndex:E,onTabChange:q}=(0,v.Z)({isCreate:!1});return(w||S)&&!C?(0,n.jsx)(m.Z,{title:"Systems",children:(0,n.jsx)(u.Z,{})}):(0,n.jsxs)(m.Z,{title:"System inventory",mainProps:{w:"calc(100vw - 240px)"},children:[(0,n.jsx)(j.Z,{heading:"System inventory",breadcrumbItems:[{title:"All systems",href:f.So},{title:(null==_?void 0:_.name)||""}],children:(0,n.jsxs)(s.xuv,{position:"relative",children:[(0,n.jsx)(c.Z,{data:N,"data-testid":"system-tabs",index:E,isLazy:!0,isManual:!0,onChange:q,width:"full",border:"full-width"}),k&&(0,n.jsxs)(s.wpx,{size:"small",className:"absolute right-2 top-2","data-testid":"integration-page-btn",onClick:()=>e.push(f.KH),children:[(0,n.jsx)(s.xvT,{children:"Integrations"}),(0,n.jsx)(x.A5,{marginLeft:2})]})]})}),z?(0,n.jsx)(g.Z,{}):null,_||w||S?(0,n.jsx)(s.gCW,{alignItems:"stretch",children:(0,n.jsx)(d,{data:N,index:E,isLazy:!0,isManual:!0,onChange:q})}):(0,n.jsxs)(s.xvT,{"data-testid":"system-not-found",children:["Could not find a system with id ",i]})]})}}},function(e){e.O(0,[2858,2866,9278,699,5277,409,401,9951,1040,3450,2888,9774,179],function(){return e(e.s=8828)}),_N_E=e.O()}]);
|
@@ -1 +1 @@
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3785],{90988:function(e,t,s){(window.__NEXT_P=window.__NEXT_P||[]).push(["/systems",function(){return s(49465)}])},56358:function(e,t,s){"use strict";s.d(t,{q:function(){return n}});var i=s(24246);let n=(0,s(
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3785],{90988:function(e,t,s){(window.__NEXT_P=window.__NEXT_P||[]).push(["/systems",function(){return s(49465)}])},56358:function(e,t,s){"use strict";s.d(t,{q:function(){return n}});var i=s(24246);let n=(0,s(38355).IUT)({displayName:"TrashCanOutlineIcon",viewBox:"0 0 11 12",path:(0,i.jsx)("path",{d:"M4.5166 1.60859L4.1084 2.21875H7.22363L6.81543 1.60859C6.7832 1.56133 6.72949 1.53125 6.67148 1.53125H4.6584C4.60039 1.53125 4.54668 1.55918 4.51445 1.60859H4.5166ZM7.6748 1.03711L8.46328 2.21875H8.75977H9.79102H9.96289C10.2486 2.21875 10.4785 2.44863 10.4785 2.73438C10.4785 3.02012 10.2486 3.25 9.96289 3.25H9.79102V9.78125C9.79102 10.7309 9.02188 11.5 8.07227 11.5H3.25977C2.31016 11.5 1.54102 10.7309 1.54102 9.78125V3.25H1.36914C1.0834 3.25 0.853516 3.02012 0.853516 2.73438C0.853516 2.44863 1.0834 2.21875 1.36914 2.21875H1.54102H2.57227H2.86875L3.65723 1.03496C3.88066 0.701953 4.25664 0.5 4.6584 0.5H6.67148C7.07324 0.5 7.44922 0.701953 7.67266 1.03496L7.6748 1.03711ZM2.57227 3.25V9.78125C2.57227 10.1615 2.87949 10.4688 3.25977 10.4688H8.07227C8.45254 10.4688 8.75977 10.1615 8.75977 9.78125V3.25H2.57227ZM4.29102 4.625V9.09375C4.29102 9.28281 4.13633 9.4375 3.94727 9.4375C3.7582 9.4375 3.60352 9.28281 3.60352 9.09375V4.625C3.60352 4.43594 3.7582 4.28125 3.94727 4.28125C4.13633 4.28125 4.29102 4.43594 4.29102 4.625ZM6.00977 4.625V9.09375C6.00977 9.28281 5.85508 9.4375 5.66602 9.4375C5.47695 9.4375 5.32227 9.28281 5.32227 9.09375V4.625C5.32227 4.43594 5.47695 4.28125 5.66602 4.28125C5.85508 4.28125 6.00977 4.43594 6.00977 4.625ZM7.72852 4.625V9.09375C7.72852 9.28281 7.57383 9.4375 7.38477 9.4375C7.1957 9.4375 7.04102 9.28281 7.04102 9.09375V4.625C7.04102 4.43594 7.1957 4.28125 7.38477 4.28125C7.57383 4.28125 7.72852 4.43594 7.72852 4.625Z",fill:"currentColor"})})},77213:function(e,t,s){"use strict";s.d(t,{Z:function(){return m}});var i=s(24246),n=s(38355),a=s(88038),r=s.n(a),l=s(86677);s(27378);var o=s(25980),c=s(90867),d=s(77830),u=()=>{let e=(0,l.useRouter)();return(0,i.jsx)(n.xuv,{bg:"gray.50",border:"1px solid",borderColor:"blue.400",borderRadius:"md",justifyContent:"space-between",p:5,mb:5,mt:5,children:(0,i.jsxs)(n.xuv,{children:[(0,i.jsxs)(n.Kqy,{direction:{base:"column",sm:"row"},justifyContent:"space-between",children:[(0,i.jsx)(n.xvT,{fontWeight:"semibold",children:"Configure your storage and messaging provider"}),(0,i.jsx)(n.wpx,{onClick:()=>{e.push(d.fz)},children:"Configure"})]}),(0,i.jsxs)(n.xvT,{children:["Before Fides can process your privacy requests we need two simple steps to configure your storage and email client."," "]})]})})},m=e=>{let{children:t,title:s,padded:a=!0,mainProps:d}=e,m=(0,o.hz)(),p=(0,l.useRouter)(),x="/privacy-requests"===p.pathname||"/datastore-connection"===p.pathname,h=!(m.flags.privacyRequestsConfiguration&&x),{data:g}=(0,c.JE)(void 0,{skip:h}),{data:f}=(0,c.PW)(void 0,{skip:h}),j=m.flags.privacyRequestsConfiguration&&(!g||!f)&&x;return(0,i.jsxs)(n.kCb,{"data-testid":s,direction:"column",h:"100vh",children:[(0,i.jsxs)(r(),{children:[(0,i.jsxs)("title",{children:["Fides Admin UI - ",s]}),(0,i.jsx)("meta",{name:"description",content:"Privacy Engineering Platform"}),(0,i.jsx)("link",{rel:"icon",href:"/favicon.ico"})]}),(0,i.jsxs)(n.kCb,{as:"main",direction:"column",py:a?6:0,px:a?10:0,h:a?"calc(100% - 48px)":"full",flex:1,minWidth:0,overflow:"auto",...d,children:[j?(0,i.jsx)(u,{}):null,t]})]})}},58754:function(e,t,s){"use strict";var i=s(24246),n=s(38355),a=s(70788);t.Z=e=>{let{heading:t,breadcrumbItems:s,isSticky:r=!0,children:l,rightContent:o,style:c,...d}=e;return(0,i.jsxs)("div",{...d,style:r?{position:"sticky",top:"-24px",paddingTop:"24px",paddingBottom:"24px",paddingLeft:"40px",marginLeft:"-40px",paddingRight:"40px",marginRight:"-40px",marginTop:"-24px",left:0,zIndex:20,backgroundColor:"white",...c}:{paddingBottom:"24px",...c},children:[(0,i.jsxs)(n.jqI,{justify:"space-between",children:["string"==typeof t?(0,i.jsx)(n.lQT,{className:s||l?"pb-4":void 0,level:1,"data-testid":"page-heading",children:t}):t,o&&(0,i.jsx)("div",{"data-testid":"page-header-right-content",children:o})]}),!!s&&(0,i.jsx)(a.m,{className:l?"pb-4":void 0,items:s,"data-testid":"page-breadcrumb"}),l]})}},19904:function(e,t,s){"use strict";s.d(t,{Tg:function(){return r}});var i=s(24246),n=s(16134),a=s(31793);let r=e=>(0,n.C)(a.uu).filter(t=>e.includes(t)).length>0;t.ZP=e=>{let{scopes:t,children:s}=e;return r(t)?(0,i.jsx)(i.Fragment,{children:s}):null}},70788:function(e,t,s){"use strict";s.d(t,{m:function(){return c}});var i=s(24246),n=s(38355),a=s(79894),r=s.n(a),l=s(27378);let{Text:o}=n.AntTypography,c=e=>{let{items:t,...s}=e,a=(0,l.useMemo)(()=>null==t?void 0:t.map((e,s)=>{let a=s===t.length-1,l={...e},c=l.onClick&&!l.href;return("string"==typeof l.title&&(l.title=(0,i.jsx)(o,{style:{color:"inherit",maxWidth:a?void 0:400},ellipsis:!a,children:l.title})),c)?l.title=(0,i.jsx)(n.wpx,{type:"text",size:"small",icon:l.icon,onClick:l.onClick,className:"ant-breadcrumb-link -mt-px px-1 text-inherit",children:l.title}):(l.icon&&(l.title=(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("span",{className:"anticon align-text-bottom",children:l.icon}),l.title]})),l.href&&l.title&&(l.title=(0,i.jsx)(r(),{href:l.href,className:"ant-breadcrumb-link",children:l.title}),delete l.href)),l}),[t]);return(0,i.jsx)(n.zrq,{items:a,...s})}},49465:function(e,t,s){"use strict";s.r(t);var i=s(24246),n=s(92222),a=s(59003),r=s(38355),l=s(86677),o=s(27378),c=s(16134),d=s(812),u=s(56358),m=s(77213),p=s(77830),x=s(58754),h=s(19904),g=s(85422),f=s(46628),j=s(1315),C=s(46420),y=s(31883);let v=(0,n.Cl)(),b={items:[],total:0,page:1,size:25,pages:1},w=()=>(0,i.jsxs)(r.gCW,{mt:6,p:10,spacing:4,borderRadius:"base",maxW:"70%","data-testid":"no-results-notice",alignSelf:"center",margin:"auto",textAlign:"center",children:[(0,i.jsxs)(r.gCW,{children:[(0,i.jsx)(r.xvT,{fontSize:"md",fontWeight:"600",children:"No systems found."}),(0,i.jsx)(r.xvT,{fontSize:"sm",children:'Click "Add a system" to add your first system to Fides.'})]}),(0,i.jsx)(r.wpx,{href:p.xo,size:"small",type:"primary","data-testid":"add-privacy-notice-btn",children:"Add a system +"})]});t.default=()=>{let e=(0,l.useRouter)(),t=(0,c.T)(),s=(0,r.pmc)(),{isOpen:k,onOpen:R,onClose:_}=(0,r.qY0)(),[T]=(0,j.DW)(),[z,N]=o.useState(null),{PAGE_SIZES:H,pageSize:P,setPageSize:S,onPreviousPageClick:M,isPreviousPageDisabled:V,onNextPageClick:D,isNextPageDisabled:E,startRange:Z,endRange:q,pageIndex:F,setTotalPages:W,resetPageIndexToDefault:L}=(0,g.oi)(),[A,I]=(0,o.useState)(),O=(0,o.useCallback)(e=>{L(),I(e)},[L,I]),{data:B,isLoading:G,isFetching:Y}=(0,j.xF)({page:F,size:P,search:A}),{items:Q,total:U,pages:K}=(0,o.useMemo)(()=>null!=B?B:b,[B]);(0,o.useEffect)(()=>{W(K)},[K,W]);let X=e=>e.name&&""!==e.name?e.name:e.fides_key,$=(0,o.useCallback)(s=>{t((0,j.db)(s)),e.push({pathname:p.Dv,query:{id:s.fides_key},hash:"#information"})},[t,e]),J=async e=>{let t=await T(e.fides_key);(0,y.D4)(t)?s((0,f.Vo)((0,d.e$)(t.error))):s((0,f.t5)("Successfully deleted system")),_()},ee=(0,o.useMemo)(()=>[v.accessor(e=>e.name,{id:"name",cell:e=>(0,i.jsx)(g.G3,{value:X(e.row.original)}),header:e=>(0,i.jsx)(g.Rr,{value:"System Name",...e}),size:200}),v.accessor(e=>e.description,{id:"description",header:e=>(0,i.jsx)(g.Rr,{value:"Description",...e}),cell:e=>(0,i.jsx)(g.G3,{value:e.getValue(),cellProps:e}),size:300,meta:{showHeaderMenu:!0}}),v.accessor(e=>e.administrating_department,{id:"department",cell:e=>(0,i.jsx)(g.G3,{value:e.getValue()}),header:e=>(0,i.jsx)(g.Rr,{value:"Department",...e}),size:200}),v.accessor(e=>e.processes_personal_data,{id:"processes_personal_data",cell:e=>(0,i.jsx)(g.G3,{value:e.getValue()?"Yes":"No"}),header:e=>(0,i.jsx)(g.Rr,{value:"Processes Personal Data",...e}),size:100}),v.display({id:"actions",header:"Actions",cell:e=>{let{row:t}=e,s=t.original;return(0,i.jsxs)(r.Ugi,{spacing:0,"data-testid":"system-".concat(s.fides_key),children:[(0,i.jsx)(r.wpx,{"aria-label":"Edit property","data-testid":"edit-btn",size:"small",className:"mr-2",icon:(0,i.jsx)(r.dY8,{}),onClick:()=>$(s)}),(0,i.jsx)(h.ZP,{scopes:[C.Sh.SYSTEM_DELETE],children:(0,i.jsx)(r.wpx,{"aria-label":"Delete system","data-testid":"delete-btn",size:"small",className:"mr-2",icon:(0,i.jsx)(u.q,{}),onClick:()=>{N(s),R()}})})]})},meta:{disableRowClick:!0}})],[$,R]),et=(0,a.b7)({getCoreRowModel:(0,n.sC)(),getFilteredRowModel:(0,n.vL)(),getSortedRowModel:(0,n.tj)(),columnResizeMode:"onChange",columns:ee,data:Q});return(0,i.jsx)(m.Z,{title:"System inventory",children:(0,i.jsxs)(r.xuv,{"data-testid":"system-management",children:[(0,i.jsx)(x.Z,{heading:"System inventory",breadcrumbItems:[{title:"All systems"}]}),G?(0,i.jsx)(g.I4,{rowHeight:36,numRows:15}):(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(g.Q$,{children:(0,i.jsx)(g.HO,{globalFilter:A,setGlobalFilter:O,placeholder:"Search",testid:"system-search"})}),(0,i.jsx)(g.ZK,{tableInstance:et,emptyTableNotice:(0,i.jsx)(w,{}),onRowClick:$})]}),(0,i.jsx)(g.s8,{totalRows:U||0,pageSizes:H,setPageSize:S,onPreviousPageClick:M,isPreviousPageDisabled:V||Y,onNextPageClick:D,isNextPageDisabled:E||Y,startRange:Z,endRange:q}),(0,i.jsx)(r.cVQ,{isOpen:k,onClose:_,onConfirm:()=>J(z),title:"Delete ".concat(z&&X(z)),message:(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)(r.xvT,{children:["You are about to permanently delete the system"," ",(0,i.jsx)(r.xvT,{color:"complimentary.500",as:"span",fontWeight:"bold",whiteSpace:"nowrap",children:z&&X(z)}),"."]}),(0,i.jsx)(r.xvT,{children:"Are you sure you would like to continue?"})]})})]})})}},31883:function(e,t,s){"use strict";s.d(t,{Bw:function(){return i.Bw},D4:function(){return i.D4}});var i=s(19043)}},function(e){e.O(0,[2888,9774,179],function(){return e(e.s=90988)}),_N_E=e.O()}]);
|
@@ -0,0 +1 @@
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4202],{71180:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/taxonomy",function(){return n(31537)}])},79806:function(e,t,n){"use strict";n.d(t,{Gn:function(){return a},zR:function(){return r}});var i=n(24246),l=n(38355),s=n(56358);let r=e=>{let{title:t}=e;return(0,i.jsx)(l.OXI,{py:0,display:"flex",alignItems:"flex-start",children:(0,i.jsx)(l.xvT,{mr:"2",color:"gray.700",fontSize:"lg",lineHeight:1.8,children:t})})},a=e=>{let{onDelete:t,onEditYaml:n,formId:r,isSaving:a}=e;return(0,i.jsxs)(l.zeN,{justifyContent:"space-between",children:[t?(0,i.jsx)(l.wpx,{"aria-label":"delete",icon:(0,i.jsx)(s.q,{fontSize:"small"}),onClick:t,"data-testid":"delete-btn"}):null,(0,i.jsxs)("div",{className:"flex gap-2",children:[n&&(0,i.jsx)(l.wpx,{onClick:n,"data-testid":"edit-yaml-btn",children:"Edit YAML"}),(0,i.jsx)(l.wpx,{htmlType:"submit",type:"primary","data-testid":"save-btn",form:r,loading:a,children:"Save"})]})]})};t.ZP=e=>{let{header:t,description:n,isOpen:s,onClose:r,children:a,footer:o}=e;return(0,i.jsxs)(l.dys,{placement:"right",isOpen:s,onClose:r,size:"md",children:[(0,i.jsx)(l.P1B,{}),(0,i.jsxs)(l.scA,{"data-testid":"edit-drawer-content",py:2,children:[(0,i.jsxs)(l.xuv,{display:"flex",justifyContent:"space-between",alignItems:"top",mr:2,py:2,gap:2,children:[(0,i.jsx)(l.xuv,{flex:1,minH:8,children:t}),(0,i.jsx)(l.xuv,{display:"flex",justifyContent:"flex-end",mr:2,children:(0,i.jsx)(l.wpx,{"aria-label":"Close editor",onClick:r,"data-testid":"close-drawer-btn",icon:(0,i.jsx)(l.Two,{fontSize:"smaller"})})})]}),(0,i.jsxs)(l.Ng0,{pt:1,children:[n?(0,i.jsx)(l.xvT,{fontSize:"sm",mb:4,color:"gray.600",children:n}):null,a]}),o]})]})}},18225:function(e,t,n){"use strict";var i=n(24246),l=n(38355);t.Z=e=>{let{alignment:t="center",...n}=e;return(0,i.jsx)(l.kCb,{boxSize:"full",align:"center",justify:t,children:(0,i.jsx)(l.$jN,{color:"primary",...n})})}},56358:function(e,t,n){"use strict";n.d(t,{q:function(){return l}});var i=n(24246);let l=(0,n(38355).IUT)({displayName:"TrashCanOutlineIcon",viewBox:"0 0 11 12",path:(0,i.jsx)("path",{d:"M4.5166 1.60859L4.1084 2.21875H7.22363L6.81543 1.60859C6.7832 1.56133 6.72949 1.53125 6.67148 1.53125H4.6584C4.60039 1.53125 4.54668 1.55918 4.51445 1.60859H4.5166ZM7.6748 1.03711L8.46328 2.21875H8.75977H9.79102H9.96289C10.2486 2.21875 10.4785 2.44863 10.4785 2.73438C10.4785 3.02012 10.2486 3.25 9.96289 3.25H9.79102V9.78125C9.79102 10.7309 9.02188 11.5 8.07227 11.5H3.25977C2.31016 11.5 1.54102 10.7309 1.54102 9.78125V3.25H1.36914C1.0834 3.25 0.853516 3.02012 0.853516 2.73438C0.853516 2.44863 1.0834 2.21875 1.36914 2.21875H1.54102H2.57227H2.86875L3.65723 1.03496C3.88066 0.701953 4.25664 0.5 4.6584 0.5H6.67148C7.07324 0.5 7.44922 0.701953 7.67266 1.03496L7.6748 1.03711ZM2.57227 3.25V9.78125C2.57227 10.1615 2.87949 10.4688 3.25977 10.4688H8.07227C8.45254 10.4688 8.75977 10.1615 8.75977 9.78125V3.25H2.57227ZM4.29102 4.625V9.09375C4.29102 9.28281 4.13633 9.4375 3.94727 9.4375C3.7582 9.4375 3.60352 9.28281 3.60352 9.09375V4.625C3.60352 4.43594 3.7582 4.28125 3.94727 4.28125C4.13633 4.28125 4.29102 4.43594 4.29102 4.625ZM6.00977 4.625V9.09375C6.00977 9.28281 5.85508 9.4375 5.66602 9.4375C5.47695 9.4375 5.32227 9.28281 5.32227 9.09375V4.625C5.32227 4.43594 5.47695 4.28125 5.66602 4.28125C5.85508 4.28125 6.00977 4.43594 6.00977 4.625ZM7.72852 4.625V9.09375C7.72852 9.28281 7.57383 9.4375 7.38477 9.4375C7.1957 9.4375 7.04102 9.28281 7.04102 9.09375V4.625C7.04102 4.43594 7.1957 4.28125 7.38477 4.28125C7.57383 4.28125 7.72852 4.43594 7.72852 4.625Z",fill:"currentColor"})})},77213:function(e,t,n){"use strict";n.d(t,{Z:function(){return m}});var i=n(24246),l=n(38355),s=n(88038),r=n.n(s),a=n(86677);n(27378);var o=n(25980),d=n(90867),u=n(77830),c=()=>{let e=(0,a.useRouter)();return(0,i.jsx)(l.xuv,{bg:"gray.50",border:"1px solid",borderColor:"blue.400",borderRadius:"md",justifyContent:"space-between",p:5,mb:5,mt:5,children:(0,i.jsxs)(l.xuv,{children:[(0,i.jsxs)(l.Kqy,{direction:{base:"column",sm:"row"},justifyContent:"space-between",children:[(0,i.jsx)(l.xvT,{fontWeight:"semibold",children:"Configure your storage and messaging provider"}),(0,i.jsx)(l.wpx,{onClick:()=>{e.push(u.fz)},children:"Configure"})]}),(0,i.jsxs)(l.xvT,{children:["Before Fides can process your privacy requests we need two simple steps to configure your storage and email client."," "]})]})})},m=e=>{let{children:t,title:n,padded:s=!0,mainProps:u}=e,m=(0,o.hz)(),x=(0,a.useRouter)(),p="/privacy-requests"===x.pathname||"/datastore-connection"===x.pathname,h=!(m.flags.privacyRequestsConfiguration&&p),{data:f}=(0,d.JE)(void 0,{skip:h}),{data:v}=(0,d.PW)(void 0,{skip:h}),y=m.flags.privacyRequestsConfiguration&&(!f||!v)&&p;return(0,i.jsxs)(l.kCb,{"data-testid":n,direction:"column",h:"100vh",children:[(0,i.jsxs)(r(),{children:[(0,i.jsxs)("title",{children:["Fides Admin UI - ",n]}),(0,i.jsx)("meta",{name:"description",content:"Privacy Engineering Platform"}),(0,i.jsx)("link",{rel:"icon",href:"/favicon.ico"})]}),(0,i.jsxs)(l.kCb,{as:"main",direction:"column",py:s?6:0,px:s?10:0,h:s?"calc(100% - 48px)":"full",flex:1,minWidth:0,overflow:"auto",...u,children:[y?(0,i.jsx)(c,{}):null,t]})]})}},58754:function(e,t,n){"use strict";var i=n(24246),l=n(38355),s=n(70788);t.Z=e=>{let{heading:t,breadcrumbItems:n,isSticky:r=!0,children:a,rightContent:o,style:d,...u}=e;return(0,i.jsxs)("div",{...u,style:r?{position:"sticky",top:"-24px",paddingTop:"24px",paddingBottom:"24px",paddingLeft:"40px",marginLeft:"-40px",paddingRight:"40px",marginRight:"-40px",marginTop:"-24px",left:0,zIndex:20,backgroundColor:"white",...d}:{paddingBottom:"24px",...d},children:[(0,i.jsxs)(l.jqI,{justify:"space-between",children:["string"==typeof t?(0,i.jsx)(l.lQT,{className:n||a?"pb-4":void 0,level:1,"data-testid":"page-heading",children:t}):t,o&&(0,i.jsx)("div",{"data-testid":"page-header-right-content",children:o})]}),!!n&&(0,i.jsx)(s.m,{className:a?"pb-4":void 0,items:n,"data-testid":"page-breadcrumb"}),a]})}},19904:function(e,t,n){"use strict";n.d(t,{Tg:function(){return r}});var i=n(24246),l=n(16134),s=n(31793);let r=e=>(0,l.C)(s.uu).filter(t=>e.includes(t)).length>0;t.ZP=e=>{let{scopes:t,children:n}=e;return r(t)?(0,i.jsx)(i.Fragment,{children:n}):null}},94799:function(e,t,n){"use strict";n.d(t,{k:function(){return s}});var i=n(76649);let l=e=>(0,i.Ln)({id:"string"},e),s=e=>(null!=e?e:[]).filter(l)},30320:function(e,t,n){"use strict";n.d(t,{m:function(){return o}});var i=n(27378),l=n(25980),s=n(14047),r=n(32885),a=n(94799);let o=e=>{let{resourceFidesKey:t,resourceType:n}=e,{errorAlert:o}=(0,s.V)(),{plus:d}=(0,l.hz)(),u=(0,i.useMemo)(()=>null!=t?t:"",[]),c=(0,r.YU)(!0,{skip:!d}),m=(0,r.VN)(n,{skip:!d}),{data:x,isLoading:p,error:h,isError:f}=(0,r.PV)(null!=t?t:"",{skip:""!==u&&!(d&&u)}),[v]=(0,r._D)(),y=c.isLoading||m.isLoading||p,_=(0,i.useMemo)(()=>new Map((0,a.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]),T=(0,i.useMemo)(()=>{var e;return null===(e=m.data)||void 0===e?void 0:e.filter(e=>e.active)},[m.data]),j=(0,i.useMemo)(()=>new Map((0,a.k)(T).map(e=>[e.id,e])),[T]),g=(0,i.useMemo)(()=>f&&(null==h?void 0:h.status)===404?new Map:new Map((0,a.k)(x).map(e=>[e.custom_field_definition_id,e])),[x,f,h]),C=(0,i.useMemo)(()=>{let e=[...j.keys()];return e.sort(),e},[j]),E=(0,i.useMemo)(()=>{let e={};return T&&g&&T.forEach(t=>{let n=g.get(t.id||"");n&&(t.allow_list_id&&"string[]"===t.field_type?e[n.custom_field_definition_id]=n.value:e[n.custom_field_definition_id]=n.value.toString())}),e},[T,g]),A=(0,i.useCallback)(async e=>{if(!d)return;let i="fides_key"in e&&""!==e.fides_key?e.fides_key:t;if(!i)return;let{customFieldValues:l}=e;if(!l||0===Object.keys(l).length)return;let s=[],r=[];C.forEach(e=>{let t=g.get(e),n=l[e];void 0===n||""===n||Array.isArray(n)&&0===n.length?(null==t?void 0:t.id)&&r.push(t.id):s.push({custom_field_definition_id:e,resource_id:i,id:null==t?void 0:t.id,value:n})});try{await v({resource_type:n,resource_id:i,upsert:s,delete:r})}catch(e){o("One or more custom fields have failed to save, please try again."),console.error(e)}},[d,g,o,t,C,v,n]);return{customFieldValues:E,definitionIdToCustomField:g,idToAllowListWithOptions:_,idToCustomFieldDefinition:j,isEnabled:d,isLoading:y,sortedCustomFieldDefinitionIds:C,upsertCustomFields:A}}},95346:function(e,t,n){"use strict";n.d(t,{uc:function(){return v},Hn:function(){return o},Uv:function(){return r},C7:function(){return d},mZ:function(){return f.m}});var i,l,s,r,a=n(46420);(i=s||(s={}))[i.CREATE_CUSTOM_FIELDS=0]="CREATE_CUSTOM_FIELDS",i[i.CREATE_CUSTOM_LISTS=1]="CREATE_CUSTOM_LISTS",i[i.CHOOSE_FROM_LIBRARY=2]="CHOOSE_FROM_LIBRARY",a.AL.STRING,a.AL.STRING_,(l=r||(r={})).SINGLE_SELECT="singleSelect",l.MULTIPLE_SELECT="multipleSelect",l.OPEN_TEXT="openText";let o=[{label:"Single select",value:"singleSelect"},{label:"Multiple select",value:"multipleSelect"},{label:"Open Text",value:"openText"}],d=[{label:"taxonomy:".concat(a.P6.DATA_CATEGORY),value:a.P6.DATA_CATEGORY},{label:"taxonomy:".concat(a.P6.DATA_SUBJECT),value:a.P6.DATA_SUBJECT},{label:"taxonomy:".concat(a.P6.DATA_USE),value:a.P6.DATA_USE},{label:"".concat(a.P6.SYSTEM,":information"),value:a.P6.SYSTEM},{label:"system:data use",value:a.P6.PRIVACY_DECLARATION}];var u=n(24246),c=n(38355),m=n(34090),x=n(30234),p=n(97181),h=n(40324),f=n(30320);let v=e=>{let{resourceFidesKey:t,resourceType:n}=e,{idToAllowListWithOptions:i,idToCustomFieldDefinition:l,isEnabled:s,isLoading:r,sortedCustomFieldDefinitionIds:o}=(0,f.m)({resourceFidesKey:t,resourceType:n});return s&&0!==o.length?(0,u.jsx)(x.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:r?(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=l.get(e);if(!t)return null;let n="customFieldValues.".concat(t.id);if(!t.allow_list_id&&t.field_type===a.AL.STRING)return(0,u.jsx)(m.gN,{name:n,children:e=>{let{field:n}=e;return(0,u.jsx)(h.j0,{...n,label:t.name,tooltip:t.description,variant:"stacked"})}},e);let s=i.get(t.allow_list_id);if(!s)return null;let{options:r}=s;return(0,u.jsx)(p.d,{name:n,allowClear:!0,mode:t.field_type!==a.AL.STRING?"multiple":void 0,label:t.name,options:r,tooltip:t.description,layout:"stacked",className:"w-full"},e)})})})})}):null};n(94799)},97181:function(e,t,n){"use strict";n.d(t,{d:function(){return d}});var i=n(24246),l=n(38355),s=n(34090),r=n(27378),a=n(46238),o=n(40324);let d=e=>{let{name:t,label:n,labelProps:d,tooltip:u,isRequired:c,layout:m="inline",helperText:x,...p}=e,[h,f,{setValue:v}]=(0,s.U$)(t),y=!!(f.touched&&f.error),[_,T]=(0,r.useState)("");h.value||"tags"!==p.mode&&"multiple"!==p.mode||(h.value=[]),"tags"===p.mode&&"string"==typeof h.value&&(h.value=[h.value]);let j="tags"===p.mode?(e,t)=>e?e.value!==_||h.value.includes(_)?p.optionRender?p.optionRender(e,t):e.label:'Create "'.concat(_,'"'):void 0:p.optionRender||void 0,g=e=>{T(e),p.onSearch&&p.onSearch(e)},C=(e,t)=>{v(e),p.onChange&&p.onChange(e,t)};return"inline"===m?(0,i.jsx)(l.NIc,{isInvalid:y,isRequired:c,children:(0,i.jsxs)(l.rjZ,{templateColumns:n?"1fr 3fr":"1fr",children:[n?(0,i.jsx)(o.__,{htmlFor:p.id||t,...d,children:n}):null,(0,i.jsxs)(l.jqI,{align:"center",children:[(0,i.jsxs)(l.jqI,{vertical:!0,flex:1,className:"mr-2",children:[(0,i.jsx)(l.WPr,{...h,id:p.id||t,"data-testid":"controlled-select-".concat(h.name),...p,optionRender:j,onSearch:"tags"===p.mode?g:void 0,onChange:C,value:h.value||void 0,status:y?"error":void 0}),x&&(0,i.jsx)(l.Q6r,{children:x}),(0,i.jsx)(o.Bc,{isInvalid:y,message:f.error,fieldName:h.name})]}),(0,i.jsx)(a.b,{label:u,className:y?"mt-2 self-start":void 0})]})]})}):(0,i.jsx)(l.NIc,{isInvalid:y,isRequired:c,children:(0,i.jsxs)(l.gCW,{alignItems:"start",children:[(0,i.jsxs)(l.jqI,{align:"center",children:[n?(0,i.jsx)(o.__,{htmlFor:p.id||t,fontSize:"xs",my:0,mr:1,...d,children:n}):null,(0,i.jsx)(a.b,{label:u})]}),(0,i.jsx)(l.WPr,{...h,id:p.id||t,"data-testid":"controlled-select-".concat(h.name),...p,optionRender:j,onSearch:"tags"===p.mode?g:void 0,onChange:C,value:h.value||void 0,status:y?"error":void 0}),x&&(0,i.jsx)(l.Q6r,{style:{marginTop:0},children:x}),(0,i.jsx)(o.Bc,{isInvalid:y,message:f.error,fieldName:h.name})]})})}},14047:function(e,t,n){"use strict";n.d(t,{H:function(){return s},V:function(){return i.V}});var i=n(84306),l=n(812);let s=()=>{let{errorAlert:e}=(0,i.V)();return{handleError:t=>{let n="An unexpected error occurred. Please try again.";(0,l.Ot)(t)?n=t.data.detail:(0,l.tB)(t)&&(n=t.data.detail[0].msg),e(n)}}}},84306:function(e,t,n){"use strict";n.d(t,{V:function(){return s}});var i=n(24246),l=n(38355);let s=()=>{let e=(0,l.pmc)();return{errorAlert:(t,n,s)=>{let r={...s,position:(null==s?void 0:s.position)||"top",render:e=>{let{onClose:s}=e;return(0,i.jsxs)(l.bZj,{alignItems:"normal",status:"error","data-testid":"error-alert",children:[(0,i.jsx)(l.zMQ,{}),(0,i.jsxs)(l.xuv,{children:[n&&(0,i.jsx)(l.CdC,{children:n}),(0,i.jsx)(l.XaZ,{children:t})]}),(0,i.jsx)(l.PZ7,{onClick:s,position:"relative",right:0,size:"sm",top:-1})]})}};(null==s?void 0:s.id)&&e.isActive(s.id)?e.update(s.id,r):e(r)},successAlert:(t,n,s)=>{let r={...s,position:(null==s?void 0:s.position)||"top",render:e=>{let{onClose:s}=e;return(0,i.jsxs)(l.bZj,{alignItems:"normal",status:"success",variant:"subtle","data-testid":"success-alert",children:[(0,i.jsx)(l.zMQ,{}),(0,i.jsxs)(l.xuv,{children:[n&&(0,i.jsx)(l.CdC,{children:n}),(0,i.jsx)(l.XaZ,{children:t})]}),(0,i.jsx)(l.PZ7,{onClick:s,position:"relative",right:0,size:"sm",top:-1})]})}};(null==s?void 0:s.id)&&e.isActive(s.id)?e.update(s.id,r):e(r)}}}},70788:function(e,t,n){"use strict";n.d(t,{m:function(){return d}});var i=n(24246),l=n(38355),s=n(79894),r=n.n(s),a=n(27378);let{Text:o}=l.AntTypography,d=e=>{let{items:t,...n}=e,s=(0,a.useMemo)(()=>null==t?void 0:t.map((e,n)=>{let s=n===t.length-1,a={...e},d=a.onClick&&!a.href;return("string"==typeof a.title&&(a.title=(0,i.jsx)(o,{style:{color:"inherit",maxWidth:s?void 0:400},ellipsis:!s,children:a.title})),d)?a.title=(0,i.jsx)(l.wpx,{type:"text",size:"small",icon:a.icon,onClick:a.onClick,className:"ant-breadcrumb-link -mt-px px-1 text-inherit",children:a.title}):(a.icon&&(a.title=(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("span",{className:"anticon align-text-bottom",children:a.icon}),a.title]})),a.href&&a.title&&(a.title=(0,i.jsx)(r(),{href:a.href,className:"ant-breadcrumb-link",children:a.title}),delete a.href)),a}),[t]);return(0,i.jsx)(l.zrq,{items:s,...n})}},30234:function(e,t,n){"use strict";var i=n(24246),l=n(38355);t.Z=e=>{let{heading:t,HeadingButton:n,children:s}=e;return(0,i.jsx)(l.Kqy,{spacing:4,children:(0,i.jsxs)(l.xuv,{maxWidth:"720px",border:"1px",borderColor:"gray.200",borderRadius:6,overflow:"visible",mt:6,children:[(0,i.jsxs)(l.xuv,{backgroundColor:"gray.50",px:6,py:4,display:"flex",flexDirection:"row",alignItems:"center",borderBottom:"1px",borderColor:"gray.200",borderTopRadius:6,children:[(0,i.jsx)(l.X6q,{as:"h3",size:"xs",children:t}),n?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(l.LZC,{}),(0,i.jsx)(n,{})]}):null]}),(0,i.jsx)(l.Kqy,{spacing:4,px:6,py:6,children:s})]})})}},59001:function(e,t,n){"use strict";n.d(t,{Ch:function(){return r},Hy:function(){return a},Lo:function(){return l}});var i,l,s=n(46420);let r="root";(i=l||(l={})).DATA_CATEGORIES="Data categories",i.DATA_USES="Data uses",i.DATA_SUBJECTS="Data subjects";let a=e=>{switch(e){case"Data categories":return{UPDATE:s.Sh.DATA_CATEGORY_UPDATE,CREATE:s.Sh.DATA_CATEGORY_CREATE,DELETE:s.Sh.DATA_CATEGORY_DELETE,READ:s.Sh.DATA_CATEGORY_READ};case"Data uses":return{UPDATE:s.Sh.DATA_USE_UPDATE,CREATE:s.Sh.DATA_USE_CREATE,DELETE:s.Sh.DATA_USE_DELETE,READ:s.Sh.DATA_USE_READ};case"Data subjects":return{UPDATE:s.Sh.DATA_SUBJECT_UPDATE,CREATE:s.Sh.DATA_SUBJECT_CREATE,DELETE:s.Sh.DATA_SUBJECT_DELETE,READ:s.Sh.DATA_SUBJECT_READ};default:throw Error("Unknown taxonomy type: ".concat(e))}}},90673:function(e,t,n){"use strict";n.d(t,{Cd:function(){return s},Xl:function(){return r}});var i=n(46420),l=n(59001);let s=(e,t)=>{let n;if(null==t&&e.every(e=>void 0===e.parent_key))n=e;else{let i=null!=t?t:null;n=e.filter(e=>e.parent_key===i)}return n.map(t=>{var n,i;let l=t.fides_key;return{value:t.fides_key,label:""===t.name||null==t.name?t.fides_key:t.name,description:t.description,children:s(e,l),is_default:null!==(n=t.is_default)&&void 0!==n&&n,active:null!==(i=t.active)&&void 0!==i&&i}})},r=e=>{switch(e){case l.Lo.DATA_CATEGORIES:return i.P6.DATA_CATEGORY;case l.Lo.DATA_SUBJECTS:return i.P6.DATA_SUBJECT;case l.Lo.DATA_USES:return i.P6.DATA_USE;default:return}}},31537:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return ei}});var i,l,s=n(24246),r=n(38355),a=n(69238),o=n.n(a),d=n(63662),u=n(27378),c=n(812),m=n(77213),x=n(58754),p=n(19904),h=n(46628),f=n(95346),v=n(56358),y=n(31883),_=n(79806),T=n(59001),j=n(90673),g=n(30002),C=n(28079),E=n(39864),A=e=>{let{taxonomyType:t}=e,[n,i]=(0,E.Vj)(),[l,s]=(0,g.nC)(),[r,a]=(0,C.dk)(),[o]=(0,E.Ti)(),[d]=(0,C.Ql)(),[u]=(0,g.wG)(),[c]=(0,E.jU)(),[m]=(0,C.LG)(),[x]=(0,g.h8)(),[p]=(0,E.K9)(),[h]=(0,C.gu)(),[f]=(0,g.Kv)();return t===T.Lo.DATA_SUBJECTS?{getAllTrigger:l,taxonomyItems:s.data||[],updateTrigger:x,deleteTrigger:f,createTrigger:u}:t===T.Lo.DATA_USES?{getAllTrigger:r,taxonomyItems:a.data||[],updateTrigger:m,deleteTrigger:h,createTrigger:d}:{getAllTrigger:n,taxonomyItems:i.data||[],updateTrigger:c,deleteTrigger:p,createTrigger:o}},b=n(90104),S=n.n(b),I=n(18225),k=n(46420),N=e=>{let{customFields:t,formId:n,form:i}=e,{idToAllowListWithOptions:l,idToCustomFieldDefinition:a,isEnabled:o,isLoading:d,sortedCustomFieldDefinitionIds:u}=t;return o&&0!==u.length?(0,s.jsxs)(r.PPS,{form:i,name:n,initialValues:t.customFieldValues,layout:"vertical","data-testid":"custom-fields-form",children:[(0,s.jsx)("div",{className:"mb-2",children:(0,s.jsx)(r.AntTypography.Title,{level:3,children:"Custom fields"})}),d?(0,s.jsx)(I.Z,{}):(0,s.jsx)("div",{children:!S()(u)&&(0,s.jsx)("div",{children:u.map(e=>{let t=a.get(e);if(!t)return null;let{id:n,name:i,description:o,allow_list_id:d,field_type:u}=t;if(!d&&u===k.AL.STRING)return(0,s.jsx)(r.PPS.Item,{name:n,label:i,tooltip:o,children:(0,s.jsx)(r.uFc,{})},e);let c=l.get(t.allow_list_id);if(!c)return null;let{options:m}=c;return(0,s.jsx)(r.PPS.Item,{name:n,label:i,tooltip:o,children:(0,s.jsx)(r.WPr,{mode:"string"!==u?"multiple":void 0,allowClear:!0,options:m})},e)})})})]}):null},D=n(43551),R=n.n(D),P=()=>{let e=r.PPS.useFormInstance(),t=r.PPS.useWatch(["rights","values"],e);return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(r.PPS.Item,{label:"Automated Decisions or Profiling",name:"automated_decisions_or_profiling",layout:"horizontal",valuePropName:"checked",children:(0,s.jsx)(r.E_O,{"data-testid":"edit-taxonomy-form_automated-decisions"})}),(0,s.jsx)(r.PPS.Item,{name:["rights","values"],label:"Rights",children:(0,s.jsx)(r.WPr,{mode:"multiple",options:(0,c.MM)(k.ts),"data-testid":"edit-taxonomy-form_rights"})}),t&&!S()(t)&&(0,s.jsx)(r.PPS.Item,{name:["rights","strategy"],label:"Strategy",required:!0,rules:[{required:!0,message:"Please select a strategy"}],children:(0,s.jsx)(r.WPr,{options:(0,c.MM)(k.jX),"data-testid":"edit-taxonomy-form_strategy"})})]})},w=e=>{let{initialValues:t,onSubmit:n,form:i,formId:l,taxonomyType:a,isDisabled:o}=e,d=a===T.Lo.DATA_SUBJECTS;return(0,s.jsxs)(r.PPS,{name:l,initialValues:t,onFinish:e=>{var i,l;let s={...t,...e};(!(null==s?void 0:null===(i=s.rights)||void 0===i?void 0:i.values)||S()(null==s?void 0:null===(l=s.rights)||void 0===l?void 0:l.values))&&R()(s,"rights"),n(s)},layout:"vertical",form:i,children:[(0,s.jsx)(r.PPS.Item,{label:"Name",name:"name",children:(0,s.jsx)(r.uFc,{"data-testid":"edit-taxonomy-form_name",disabled:o})}),(0,s.jsx)(r.PPS.Item,{label:"Description",name:"description",children:(0,s.jsx)(r.uFc.TextArea,{rows:4,"data-testid":"edit-taxonomy-form_description",disabled:o})}),d&&(0,s.jsx)(P,{})]})},O=e=>{let{taxonomyItem:t,taxonomyType:n,onClose:i}=e,l="edit-taxonomy-form",[a]=r.PPS.useForm(),[o]=r.PPS.useForm(),d=(0,r.pmc)(),{isOpen:u,onOpen:m,onClose:x}=(0,r.qY0)(),{updateTrigger:g}=A({taxonomyType:n}),C=(0,f.mZ)({resourceFidesKey:null==t?void 0:t.fides_key,resourceType:(0,j.Xl)(n)}),E=(0,p.Tg)([(0,T.Hy)(n).UPDATE]),b=(0,p.Tg)([(0,T.Hy)(n).DELETE]),S=async e=>{let n=await g(e);if((0,y.D4)(n)){d((0,h.Vo)((0,c.e$)(n.error)));return}if(C.isEnabled){let e=o.getFieldsValue();await C.upsertCustomFields({fides_key:null==t?void 0:t.fides_key,customFieldValues:e})}d((0,h.t5)("Taxonomy successfully updated")),i()},I=async()=>{await g({...t,active:!1}),x(),i()},k=async()=>{await g({...t,active:!0}),x(),i()};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)(_.ZP,{isOpen:!!t,onClose:i,header:(0,s.jsx)(_.zR,{title:(null==t?void 0:t.name)||""}),footer:(0,s.jsxs)(r.zeN,{justifyContent:"space-between",children:[(null==t?void 0:t.active)&&b&&(0,s.jsx)(r.esZ,{title:"Delete label",children:(0,s.jsx)(r.wpx,{"aria-label":"delete",icon:(0,s.jsx)(v.q,{fontSize:"small"}),onClick:m,"data-testid":"delete-btn"})}),!(null==t?void 0:t.active)&&E&&(0,s.jsx)(r.esZ,{title:"Enable label",children:(0,s.jsx)(r.wpx,{"aria-label":"enable",onClick:k,"data-testid":"enable-btn",icon:(0,s.jsx)(r.tEF,{fontSize:"small"})})}),(0,s.jsx)("div",{className:"flex gap-2",children:E&&(0,s.jsx)(r.wpx,{htmlType:"submit",type:"primary","data-testid":"save-btn",form:l,children:"Save"})})]}),children:[(0,s.jsxs)("div",{className:"mb-4",children:[(0,s.jsx)("div",{className:"mb-2",children:(0,s.jsx)(r.AntTypography.Title,{level:3,children:"Details"})}),(0,s.jsxs)("div",{className:"flex",children:[(0,s.jsx)("span",{className:"w-1/3 shrink-0 text-sm text-gray-500",children:"Fides key:"}),(0,s.jsx)(r.esZ,{title:null==t?void 0:t.fides_key,trigger:"click",children:(0,s.jsx)("span",{className:"flex-1 truncate","data-testid":"edit-drawer-fides-key",children:null==t?void 0:t.fides_key})})]})]}),!!t&&(0,s.jsx)(w,{initialValues:t,onSubmit:S,form:a,formId:l,taxonomyType:n,isDisabled:!E}),C.isEnabled&&!C.isLoading&&(0,s.jsx)(N,{form:o,formId:"custom-fields-form",customFields:C})]}),(0,s.jsx)(r.cVQ,{isOpen:u,onClose:x,onConfirm:I,title:"Delete ".concat(n),message:(0,s.jsx)(r.Kqy,{children:(0,s.jsxs)(r.xvT,{children:["You are about to permanently delete the ",n," ",(0,s.jsx)(r.xvT,{color:"complimentary.500",as:"span",fontWeight:"bold",children:null==t?void 0:t.name})," ","from your taxonomy. Are you sure you would like to continue?"]})})})]})};n(51901);var L=n(86298),V=n(3124),F=n.n(V);(i=l||(l={})).DEFAULT="DEFAULT",i.ACTIVE_HOVER="ACTIVE_HOVER",i.PARENT_OF_HOVER="PARENT_OF_HOVER",i.CHILD_OF_HOVER="CHILD_OF_HOVER",i.SIBLING_OF_HOVER="SIBLING_OF_HOVER",i.INACTIVE="INACTIVE";let U=(0,u.createContext)({activeNodeKey:null,setActiveNodeKey:()=>{},onMouseEnter:()=>{},onMouseLeave:()=>{},getNodeHoverStatus:()=>"DEFAULT"}),H=e=>{let{children:t}=e,[n,i]=(0,u.useState)(null),l=(0,u.useCallback)(e=>{e!==n&&i(e)},[n]),r=(0,u.useCallback)(()=>{i(null)},[]),a=(0,u.useCallback)(e=>n?e===n?"ACTIVE_HOVER":n.startsWith("".concat(e,"."))||e===T.Ch?"PARENT_OF_HOVER":e.startsWith("".concat(n,"."))||n===T.Ch?"CHILD_OF_HOVER":n.split(".").slice(0,-1).join(".")===e.split(".").slice(0,-1).join(".")?"SIBLING_OF_HOVER":"INACTIVE":"DEFAULT",[n]),o=(0,u.useMemo)(()=>({activeNodeKey:n,setActiveNodeKey:i,onMouseEnter:l,onMouseLeave:r,getNodeHoverStatus:a}),[n,i,l,r,a]);return(0,s.jsx)(U.Provider,{value:o,children:t})};var M=n(62266),Z=n(79658);let z=(0,M.Z)();var B=e=>{let{nodes:t,edges:n,options:i}=e;return(0,u.useMemo)(()=>{if(0===t.length)return{nodes:t,edges:n};let e=(0,Z.Z)().id(e=>e.id).parentId(e=>{var t;return null===(t=n.find(t=>t.target===e.id))||void 0===t?void 0:t.source})(t),l="LR"===i.direction?[35,320]:[320,35];return{nodes:z.nodeSize(l).separation((e,t)=>e.parent===t.parent?1:1.5)(e).descendants().map(e=>{let t;return t="LR"===i.direction?{x:e.y,y:e.x}:{x:e.x,y:e.y},{...e.data,position:t}}),edges:n}},[t,n,i])},q=e=>{let{positionAbsoluteX:t,positionAbsoluteY:n,nodeWidth:i}=e,{setCenter:l,getZoom:s}=(0,L._K)();return{centerScreenOnNode:(0,u.useCallback)(()=>l(t+i/2,n,{duration:500,zoom:s()}),[s,t,n,i,l])}},G=n(1945),W=n.n(G),Y=n(8335),K=e=>{let{type:t,inactive:n=!1}=e;return(0,s.jsx)(L.HH,{type:t,position:"source"===t?Y.Ly.Right:Y.Ly.Left,style:{width:8,height:8,backgroundColor:n?F().FIDESUI_NEUTRAL_400:F().FIDESUI_MINOS},className:"transition-colors duration-300 ease-in"})},J=e=>{let{data:t,positionAbsoluteX:n,positionAbsoluteY:i}=e,{onCancel:l,onSubmit:a,parentKey:o}=t,d=(0,u.useRef)(null),[c,m]=(0,u.useState)(""),{centerScreenOnNode:x}=q({positionAbsoluteX:n,positionAbsoluteY:i,nodeWidth:200});return(0,u.useEffect)(()=>{m("");let e=()=>{var e;return null===(e=d.current)||void 0===e?void 0:e.focus({cursor:"start",preventScroll:!0})};(async()=>{await x(),e()})()},[o,x,n,i]),(0,s.jsxs)("div",{style:{width:200},"data-testid":"taxonomy-text-input-node",children:[(0,s.jsx)(r.uFc,{placeholder:"Type label name...",ref:d,onBlur:l,onSubmit:()=>a(c),value:c,onChange:e=>m(e.target.value),onKeyUp:e=>{"Escape"===e.key&&l()},onPressEnter:()=>a(c),className:W().input}),(0,s.jsx)(K,{type:"target"})]})},X=e=>{let{getNodeHoverStatus:t}=(0,u.useContext)(U),{target:n}=e,i=t(n),r=(0,u.useCallback)(()=>{switch(i){case l.ACTIVE_HOVER:case l.PARENT_OF_HOVER:return F().FIDESUI_MINOS;case l.INACTIVE:return F().NEUTRAL_400;default:return F().FIDESUI_SANDSTONE}},[i]),a=(0,u.useCallback)(()=>{switch(i){case l.ACTIVE_HOVER:case l.PARENT_OF_HOVER:return 2;default:return 1}},[i]);return(0,s.jsx)(L.Jd,{...e,style:{stroke:r(),strokeWidth:a(),transition:"stroke 0.3s ease 0s"}})},Q=n(34770),$=n.n(Q),ee=e=>{let{data:t,positionAbsoluteX:n,positionAbsoluteY:i}=e,{onMouseEnter:a,onMouseLeave:o,getNodeHoverStatus:d}=(0,u.useContext)(U),{taxonomyType:c,taxonomyItem:m,onAddButtonClick:x,onTaxonomyItemClick:p,label:h,hasChildren:f,isLastCreatedItem:v,resetLastCreatedItemKey:y,userCanAddLabels:_}=t,{centerScreenOnNode:j}=q({positionAbsoluteX:n,positionAbsoluteY:i,nodeWidth:200});(0,u.useEffect)(()=>{let e=async()=>{await j(),a(null==m?void 0:m.fides_key)};v&&(e(),y())},[v,a,null==m?void 0:m.fides_key,y,j]);let g=d(null==m?void 0:m.fides_key),C=(0,u.useCallback)(()=>{switch(g){case l.ACTIVE_HOVER:return $()["button--hover"];case l.PARENT_OF_HOVER:return $()["button--parent-hover"];case l.INACTIVE:return $()["button--inactive"];case l.DEFAULT:case l.CHILD_OF_HOVER:case l.SIBLING_OF_HOVER:default:return""}},[g]),E=(null==m?void 0:m.fides_key)===T.Ch,A=c===T.Lo.DATA_SUBJECTS;return(0,s.jsxs)("div",{className:$().container,onMouseEnter:()=>a(null==m?void 0:m.fides_key),onMouseLeave:()=>o(null==m?void 0:m.fides_key),"data-testid":"taxonomy-node-".concat(null==m?void 0:m.fides_key),children:[(0,s.jsx)(r.wpx,{className:"".concat($().button," ").concat(C()),onClick:()=>null==p?void 0:p(m),disabled:!p,type:"text",children:(0,s.jsxs)(r.AntTypography.Text,{ellipsis:!0,style:{color:"inherit"},children:[(null==m?void 0:m.active)===!1?"(disabled) ":"",h]})}),!E&&(0,s.jsx)(K,{type:"target",inactive:g===l.INACTIVE}),f&&(0,s.jsx)(K,{type:"source",inactive:g===l.INACTIVE}),_&&(!A||E)&&(0,s.jsx)("div",{className:$()["add-button-container"],children:(0,s.jsx)(r.wpx,{type:"default",className:"".concat($()["add-button"]," ").concat(g===l.ACTIVE_HOVER?$()["add-button--visible"]:""),icon:(0,s.jsx)(r.PJP.mm_,{size:20}),onClick:()=>null==x?void 0:x(m),size:"middle","data-testid":"taxonomy-add-child-label-button","aria-label":"Add child label to ".concat(h)})})]})};let et=e=>{let{taxonomyType:t,taxonomyItems:n,draftNewItem:i,lastCreatedItemKey:l,resetLastCreatedItemKey:r,onTaxonomyItemClick:a,onAddButtonClick:o,onCancelDraftItem:d,onSubmitDraftItem:c,userCanAddLabels:m}=e,{fitView:x}=(0,L._K)();(0,u.useEffect)(()=>{setTimeout(()=>x(),150)},[x,t]);let p=[(0,u.useMemo)(()=>({id:T.Ch,position:{x:0,y:0},data:{label:t,taxonomyItem:{fides_key:T.Ch},taxonomyType:t,onTaxonomyItemClick:null,onAddButtonClick:o,hasChildren:0!==n.length,userCanAddLabels:m},type:"taxonomyTreeNode"}),[t,n.length,o,m])],h=[];if(n.forEach(e=>{let n=e.name||e.fides_key.split(".").pop()||"",i={id:e.fides_key,position:{x:0,y:0},data:{label:n,taxonomyType:t,taxonomyItem:e,onTaxonomyItemClick:a,onAddButtonClick:o,hasChildren:!1,isLastCreatedItem:l===e.fides_key,resetLastCreatedItemKey:r,userCanAddLabels:m},type:"taxonomyTreeNode"};p.push(i);let s=e.parent_key?p.find(t=>t.id===e.parent_key):null,d=s?s.id:T.Ch,u=e.fides_key,c={id:"".concat(d,"-").concat(u),source:d,target:u,type:"taxonomyTreeEdge"};h.push(c),s&&(s.data.hasChildren=!0)}),i){let e=i.parent_key||T.Ch;p.push({id:"draft-node",position:{x:0,y:0},type:"textInputNode",data:{parentKey:e,onCancel:d,onSubmit:c},hidden:!i}),h.push({id:"draft-line",source:e,target:"draft-node",animated:!0});let t=p.find(t=>t.id===e);t&&(t.data.hasChildren=!0)}let{nodes:f,edges:v}=B({nodes:p,edges:h,options:{direction:"LR"}}),y=(0,u.useMemo)(()=>({taxonomyTreeNode:ee,textInputNode:J}),[]),_=(0,u.useMemo)(()=>({taxonomyTreeEdge:X}),[]);return(0,s.jsx)("div",{className:"size-full",style:{backgroundColor:F().FIDESUI_BG_CORINTH},"data-testid":"taxonomy-interactive-tree",children:(0,s.jsx)(H,{children:(0,s.jsxs)(L.x$,{nodes:f,edges:v,nodeTypes:y,edgeTypes:_,maxZoom:2,minZoom:.3,nodesConnectable:!1,edgesFocusable:!1,elementsSelectable:!1,proOptions:{hideAttribution:!0},children:[(0,s.jsx)(L.Aq,{color:F().FIDESUI_NEUTRAL_100,variant:L.T7.Dots,size:3}),(0,s.jsx)(L.a9,{nodeStrokeWidth:3,pannable:!0}),(0,s.jsx)(L.ZX,{showInteractive:!1})]})})})};var en=e=>(0,s.jsx)(L.tV,{children:(0,s.jsx)(et,{...e})}),ei=()=>{let[e,t]=(0,u.useState)(T.Lo.DATA_CATEGORIES),{createTrigger:n,getAllTrigger:i,taxonomyItems:l=[]}=A({taxonomyType:e}),a=(0,d.useSearchParams)(),f=(null==a?void 0:a.get("showDisabledItems"))==="true";(0,u.useEffect)(()=>{i()},[i,e]);let[v,y]=(0,u.useState)(null),[_,j]=(0,u.useState)(null),[g,C]=(0,u.useState)(null);(0,u.useEffect)(()=>{j(null),C(null),y(null)},[e]);let E=(0,r.pmc)(),b=(0,u.useCallback)(async e=>{if(!_)return;let t=(null==_?void 0:_.parent_key)===T.Ch,i={..._,name:e,parent_key:t?null:_.parent_key},l=await n(i);if((0,c.D4)(l)){E((0,h.Vo)((0,c.e$)(l.error)));return}C(l.data.fides_key),E((0,h.t5)("New label successfully created")),j(null)},[n,_,E]),S=o()(l,"active"),I=(0,p.Tg)([(0,T.Hy)(e).CREATE]);return(0,s.jsxs)(m.Z,{title:"Taxonomy",children:[(0,s.jsxs)(r.jqI,{vertical:!0,className:"h-full",children:[(0,s.jsxs)("div",{children:[(0,s.jsx)(x.Z,{heading:"Taxonomy"}),(0,s.jsx)("div",{className:"hidden",children:(0,s.jsx)("div",{className:"mb-5 flex justify-between",children:(0,s.jsxs)(r.vyj.Compact,{children:[(0,s.jsx)(r.uFc,{className:"min-w-[350px]",placeholder:"Search",allowClear:!0}),(0,s.jsx)(r.wpx,{type:"default",children:"Clear"})]})})})]}),(0,s.jsxs)("div",{className:"relative grow",children:[(0,s.jsx)("div",{className:"absolute left-2 top-2 z-[1]",children:(0,s.jsx)(r.AHg,{selectedKeys:[e],onSelect:e=>{let{key:n}=e;return t(n)},items:(0,c.MM)(T.Lo).map(e=>({label:e.label,key:e.value})),"data-testid":"taxonomy-type-selector"})}),!!l.length&&(0,s.jsx)(en,{userCanAddLabels:I,taxonomyItems:f?l:S,draftNewItem:_,lastCreatedItemKey:g,resetLastCreatedItemKey:()=>C(null),onTaxonomyItemClick:e=>{y(e)},onAddButtonClick:e=>{var t;j({parent_key:null!==(t=null==e?void 0:e.fides_key)&&void 0!==t?t:null,is_default:!1,description:""})},taxonomyType:e,onCancelDraftItem:()=>j(null),onSubmitDraftItem:b})]})]}),v&&(0,s.jsx)(O,{taxonomyItem:v,taxonomyType:e,onClose:()=>y(null)})]})}},31883:function(e,t,n){"use strict";n.d(t,{Bw:function(){return i.Bw},D4:function(){return i.D4}});var i=n(19043)},1945:function(e){e.exports={input:"TaxonomyTextInputNode_input__P9czz"}},34770:function(e){e.exports={container:"TaxonomyTreeNode_container__T4KpF",button:"TaxonomyTreeNode_button__mcbOd","button--hover":"TaxonomyTreeNode_button--hover__oycXY","button--parent-hover":"TaxonomyTreeNode_button--parent-hover__pwAPl","button--inactive":"TaxonomyTreeNode_button--inactive__Fjdpe","add-button-container":"TaxonomyTreeNode_add-button-container__eEoRN","add-button":"TaxonomyTreeNode_add-button__oM2vI","add-button--visible":"TaxonomyTreeNode_add-button--visible__Ojqqf"}}},function(e){e.O(0,[1096,2858,2866,9278,3662,570,2888,9774,179],function(){return e(e.s=71180)}),_N_E=e.O()}]);
|
@@ -1 +1 @@
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6355],{52923:function(e,s,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/user-management/new",function(){return n(57292)}])},57292:function(e,s,n){"use strict";n.r(s),n.d(s,{default:function(){return h}});var t=n(24246),r=n(27378),u=n(16394),i=n(86677),a=n(44121),c=n(16134),o=n(812),d=n(77830),l=n(58754),f=n(65497),w=()=>{let e=(0,i.useRouter)(),[s]=(0,f.ny)(),n=(0,c.T)();(0,r.useEffect)(()=>{n((0,f.Vv)(void 0))},[n]);let w=async n=>{let t=n.password?(0,u.JJ)(n.password):void 0,r=await s({...n,password:t});return(0,o.D4)(r)||e.push("".concat(d.e3,"/profile/").concat(r.data.id)),r};return(0,t.jsxs)("div",{children:[(0,t.jsx)(l.Z,{heading:"Users",breadcrumbItems:[{title:"All users",href:d.e3},{title:"New User"}]}),(0,t.jsx)(a.Z,{onSubmit:w})]})},_=n(77213),h=()=>(0,t.jsx)(_.Z,{title:"Users - New User",children:(0,t.jsx)(w,{})})}},function(e){e.O(0,[
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6355],{52923:function(e,s,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/user-management/new",function(){return n(57292)}])},57292:function(e,s,n){"use strict";n.r(s),n.d(s,{default:function(){return h}});var t=n(24246),r=n(27378),u=n(16394),i=n(86677),a=n(44121),c=n(16134),o=n(812),d=n(77830),l=n(58754),f=n(65497),w=()=>{let e=(0,i.useRouter)(),[s]=(0,f.ny)(),n=(0,c.T)();(0,r.useEffect)(()=>{n((0,f.Vv)(void 0))},[n]);let w=async n=>{let t=n.password?(0,u.JJ)(n.password):void 0,r=await s({...n,password:t});return(0,o.D4)(r)||e.push("".concat(d.e3,"/profile/").concat(r.data.id)),r};return(0,t.jsxs)("div",{children:[(0,t.jsx)(l.Z,{heading:"Users",breadcrumbItems:[{title:"All users",href:d.e3},{title:"New User"}]}),(0,t.jsx)(a.Z,{onSubmit:w})]})},_=n(77213),h=()=>(0,t.jsx)(_.Z,{title:"Users - New User",children:(0,t.jsx)(w,{})})}},function(e){e.O(0,[7476,4121,2888,9774,179],function(){return e(e.s=52923)}),_N_E=e.O()}]);
|
@@ -1 +1 @@
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8905],{16967:function(e,s,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/user-management/profile/[id]",function(){return r(69404)}])},69404:function(e,s,r){"use strict";r.r(s),r.d(s,{default:function(){return E}});var i=r(24246),n=r(
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8905],{16967:function(e,s,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/user-management/profile/[id]",function(){return r(69404)}])},69404:function(e,s,r){"use strict";r.r(s),r.d(s,{default:function(){return E}});var i=r(24246),n=r(38355),t=r(86677),a=r(27378),u=r(16125),d=r(44121),l=r(91317),o=r(19904),c=r(46420),_=r(77830),f=r(58754),m=r(65497);let h=e=>{var s,r,i,n;let t=(0,u.v9)(l.dy),[a]=(0,m.Gl)(),d={username:null!==(s=e.username)&&void 0!==s?s:"",email_address:null!==(r=e.email_address)&&void 0!==r?r:"",first_name:null!==(i=e.first_name)&&void 0!==i?i:"",last_name:null!==(n=e.last_name)&&void 0!==n?n:"",password:"",password_login_enabled:!!e.password_login_enabled},_=async s=>a({...s,id:e.id}),f=!!t&&t.id===e.id,h=(0,o.Tg)([c.Sh.USER_UPDATE]);return{handleSubmit:_,isOwnProfile:f,canUpdateUser:!!f||h,initialValues:d}};var j=e=>{let{user:s}=e,{handleSubmit:r,canUpdateUser:n,initialValues:t}=h(s);return(0,i.jsxs)("div",{children:[(0,i.jsx)(f.Z,{heading:"Users",breadcrumbItems:[{title:"All users",href:_.e3},{title:t.username}]}),(0,i.jsx)(d.Z,{onSubmit:r,initialValues:t,canEditNames:n})]})},p=r(16134),y=r(77213),E=()=>{let e=(0,t.useRouter)(),s=(0,p.T)(),r="";r=e.query.id?Array.isArray(e.query.id)?e.query.id[0]:e.query.id:"";let{data:u,isLoading:d}=(0,m.Fk)(r),_=(0,p.C)(l.dy),f=!!_&&!!u&&_.id===u.id,h=(0,o.Tg)([c.Sh.USER_UPDATE])||f;return(0,a.useEffect)(()=>{u&&s((0,m.Vv)(u.id))},[s,u,h]),(0,a.useEffect)(()=>{u&&!h&&e.push("/")},[e,h,u]),(0,i.jsxs)(y.Z,{title:"Users - Edit a user",children:[d&&(0,i.jsx)(n.jqI,{justify:"center",align:"center",className:"h-full",children:(0,i.jsx)(n.$jN,{color:"primary.900"})}),!d&&!u&&(0,i.jsx)(n.jqI,{justify:"center",children:(0,i.jsx)(n.DUx,{message:"Could not find user with this profile ID.",type:"warning",showIcon:!0})}),!!u&&(0,i.jsx)(j,{user:u})]})}}},function(e){e.O(0,[7476,4121,2888,9774,179],function(){return e(e.s=16967)}),_N_E=e.O()}]);
|