ethyca-fides 2.67.3b1__py2.py3-none-any.whl → 2.68.0rc1__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.
Potentially problematic release.
This version of ethyca-fides might be problematic. Click here for more details.
- {ethyca_fides-2.67.3b1.dist-info → ethyca_fides-2.68.0rc1.dist-info}/METADATA +1 -1
- {ethyca_fides-2.67.3b1.dist-info → ethyca_fides-2.68.0rc1.dist-info}/RECORD +207 -206
- fides/_version.py +3 -3
- fides/api/alembic/migrations/versions/2f3c1a2d6b10_disallow_dot_in_monitor_key_and_update_refs.py +439 -0
- fides/api/db/base_class.py +19 -1
- fides/api/models/db_cache.py +8 -0
- fides/api/models/detection_discovery/core.py +14 -1
- fides/ui-build/static/admin/404.html +1 -1
- fides/ui-build/static/admin/_next/static/chunks/{1817-b78b58ae3b75d75a.js → 1817-c90365325f8a3d75.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/{1975.7d4634a0e823a02b.js → 1975.e5cc7a1ccd477671.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/{203-cd78ea279cecba60.js → 203-0c6cadcda98bdd33.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/{2921-86f1547ac40a5cdf.js → 2921-46f9465c2852a46b.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/{3450-69f4e16978971bb8.js → 3450-9314e1b15df8a8da.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/{3855-509ca7ac99b5eada.js → 3855-4267fd8193e7f525.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/{3872-0a0f0032ca39a93f.js → 3872-ac5feefd40b61ae3.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/{3923-13a6b4da2d51bf8f.js → 3923-a33633feba5e655e.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/{401-3cc1fee61494e3bd.js → 401-741bb31b586b7c96.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/{409-ea70638a59296659.js → 409-5bc4369b80a8c11d.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/{4121-877e19d3fa078c7b.js → 4121-94354b50a41f8497.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/{4230-114e31621c19ea69.js → 4230-1ebc8c0ab293a077.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/{431-1db919f6569a4021.js → 431-a34d7ceff17c2169.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/{4608-f16f281f2d05d963.js → 4608-557fb24665b2e4bf.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/{5309-d9a488457898263b.js → 5309-ffdec884eec79d29.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/{5574-9312f97b637d9ee2.js → 5574-831167a8da90e2e6.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/{6084-ddbad3149364725d.js → 6084-02abe12327fc3dbc.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/{6662-ef0edd3598b1d431.js → 6662-499c189f932a35aa.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/{6780-b42a27e72707936d.js → 6780-7d28e030f6516e5d.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/{6853-d0190d2cca9dbde2.js → 6853-270261ef5537a106.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/{6882-59ea739e3616ce83.js → 6882-7cc1d14e27a80c10.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/{6954-ba98e778a5b45ebf.js → 6954-7784e8d5ad6b8110.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/{7476-cc0d9a94ed7aad53.js → 7476-4de465016d3433b4.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/{7630-b1c93688013ef013.js → 7630-2a5c57787632693d.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/{7725-539d3a906f627531.js → 7725-c79513b04113112b.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/{787-c57185ad89c4e288.js → 787-5ba991cad1f7664a.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/{79-2aab56be75e16187.js → 79-98cfab20bb831137.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/{796-3bdda2a7868464af.js → 796-0b768155bf20505f.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/{8735-40caf91800a3610c.js → 8735-f84afcc50885883c.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/{9046-7085a401297c5520.js → 9046-97a972cc8a8ed24d.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/{9226-2dcac54ab3fb94be.js → 9226-318dadf1c050ecda.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/{9676.7fbcb6b554cda098.js → 9676.9e6828b42ef05e06.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/{9826-3c578665c6d3b21d.js → 9826-8c81c97a72510fcf.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/{9951-7c6639e5d062779e.js → 9951-4df2b67e0def5500.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/{404-2d803dab6a00f353.js → 404-9174cdb70126c2c5.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/{_app-750d6bd16c971bb9.js → _app-65723cd4b8fc36ac.js} +18 -18
- fides/ui-build/static/admin/_next/static/chunks/pages/add-systems/{manual-2a655ff3a97f2492.js → manual-621416493c89ef01.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/add-systems/{multiple-8ff7f37913ad736a.js → multiple-0b9908c3e1dfe49e.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/{add-systems-0902f0bb4080643e.js → add-systems-18e96ce81dab51a4.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/consent/configure/{add-vendors-d00c9034cdeb0236.js → add-vendors-5bb1b31ae8752250.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/consent/{configure-0e1ca0f4c8e7f4da.js → configure-54d7c7310763c66d.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/consent/privacy-experience/{[id]-f22ddd9b48a5c418.js → [id]-4e4d9426743b5cb4.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/consent/{privacy-experience-21f997c69fc3b4c2.js → privacy-experience-d72460348fadcab8.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/consent/privacy-notices/{[id]-da4124b7600a2a1d.js → [id]-3e7ddc252da00c98.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/consent/privacy-notices/{new-a57d251c88ce68ae.js → new-35a7c305beee9428.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/consent/{privacy-notices-ad105181bc91209b.js → privacy-notices-6bc3b73a21576869.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/consent/{properties-057cad65e7414a44.js → properties-ab96939421639153.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/consent/{reporting-b0c4235fe6d0b0c8.js → reporting-fe3d6887fecf0f86.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/{consent-e17c56eec8d91371.js → consent-13240e3ca77acfeb.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/data-catalog/[systemId]/projects/{[projectUrn]-80a6cc8e8573514a.js → [projectUrn]-bd37b407c80c6986.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/data-catalog/[systemId]/{projects-29784a11fe0fbd0a.js → projects-e4770acf7044e2f5.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/{data-catalog-7770a8dc34bd0fc0.js → data-catalog-0db635c3483c9da8.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/action-center/[monitorId]/{[systemId]-3e5725cd06d7fe6c.js → [systemId]-0c0e0a7798345541.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/action-center/{[monitorId]-92b0bd97d8e79340.js → [monitorId]-3c56e5fe072a44c6.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/{action-center-ee3c0a103346fc06.js → action-center-53a763e49ce34a74.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/{activity-ad6a84a6276f914c.js → activity-6a90131dcecd694c.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/{datamap-d23b3ae139f0428b.js → datamap-8f88dc31c5144ea8.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/dataset/[datasetId]/[collectionName]/{[...subfieldNames]-15301bd6bf7cf718.js → [...subfieldNames]-145fe9e4cfcb231d.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/dataset/[datasetId]/{[collectionName]-0fa72873e464f581.js → [collectionName]-8a1e5d140785c1e9.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/dataset/{[datasetId]-a8e8b5f4ee7af86c.js → [datasetId]-227b5db4b472a6a7.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/dataset/{new-0d50084fbdf9b84c.js → new-8401f17fe5d9a1dc.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/{dataset-f3348d0a92543bab.js → dataset-7d77b3ad069be268.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/datastore-connection/{[id]-7d6027570d05c57f.js → [id]-67a7fe58b96ea739.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/datastore-connection/{new-c6614583b14dc9f2.js → new-90a8df230cb89877.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/{datastore-connection-3bd77864da523d41.js → datastore-connection-cfb25b02abb8da71.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/{index-fbf9b845bb901238.js → index-876bfd7210040cec.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/integrations/{[id]-330475705adbd36f.js → [id]-766e57bcf38b5b1e.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/{integrations-7f15cd8538cdc24d.js → integrations-3fdc55d4c129e618.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/messaging/{[id]-5627d0d0668077f9.js → [id]-6e796c3fe632280b.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/messaging/{add-template-feca66ad5c5fe54a.js → add-template-fa0f3841c5bdfdeb.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/{messaging-1bae386d8c190348.js → messaging-8f9c006b6166f002.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/poc/{ant-components-64a322d01aae5ca7.js → ant-components-6ba7ae4f26c06cb0.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/poc/form-experiments/{AntForm-8bca16a7726e7eb2.js → AntForm-11503454a62d8d7b.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/poc/form-experiments/{FormikAntFormItem-b0f246fc3b67ebf7.js → FormikAntFormItem-a504941807bdb7f1.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/poc/form-experiments/{FormikControlled-1a0852b090bfc392.js → FormikControlled-0119403c8ff97f83.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/poc/form-experiments/{FormikField-11f3de1b45e36583.js → FormikField-94f6d57d6c94ddf7.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/poc/{forms-1b73a1c2b6c6285f.js → forms-ed1a3ae09d72df89.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/poc/{table-migration-05616e2ae20ff4f8.js → table-migration-e8db3ad525e7ddbd.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/privacy-requests/[id]-c14dd24592369467.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/privacy-requests/configure/{messaging-f1d818242d8550f8.js → messaging-100d7d03930629a8.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/privacy-requests/configure/{storage-d40a26bddb126c5c.js → storage-6f8d1b3ec83cfcf0.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/privacy-requests/{configure-e551a860ec727802.js → configure-3ce15577435d47cb.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/{privacy-requests-96a08c4431b5462c.js → privacy-requests-f43a988542813110.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/properties/{[id]-dd99183f93763ae4.js → [id]-41976b28503623cd.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/properties/{add-property-0bdbc1fcbf553b8f.js → add-property-cb438d8f5ec6007a.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/{properties-e959378bb32b6b73.js → properties-b6db7036993709b3.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/reporting/{datamap-9d1840f8309b706e.js → datamap-4bc3e281409265cc.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/settings/about/{alpha-1066f0c202ef744c.js → alpha-1ea40fcd6b4268bf.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/settings/{about-37ba24a72a06862e.js → about-65c7600fadc6e55a.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/settings/consent/[configuration_id]/{[purpose_id]-e891d01ece59669e.js → [purpose_id]-33dab986141b3663.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/settings/{consent-f61b87e79367865b.js → consent-1195042727c399ed.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/settings/{custom-fields-f8eea5d508c60c64.js → custom-fields-71b98858ecb4e097.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/settings/{domain-records-51333dbd21cb37c8.js → domain-records-386368bf7cb31771.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/settings/{domains-bde86e5f6c09da5a.js → domains-cf427e04f862b5d2.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/settings/{email-templates-4f9a5cc8bea7725b.js → email-templates-eabeeec5bf2773c6.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/settings/{locations-ed6a140b362c5baa.js → locations-b41fb5ad277088ab.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/settings/{organization-ff9a34264d48c35f.js → organization-ee56698ae3a6a78b.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/settings/{regulations-102efd9199e87124.js → regulations-a94dfeea43fbca7d.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/systems/configure/[id]/{test-datasets-a4b6d41ca679298b.js → test-datasets-0e2e98cc38ee5499.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/systems/configure/{[id]-c8f5fbaa83dd9945.js → [id]-18b316e2dad73731.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/{systems-c05b49ddec1a1b4f.js → systems-c32589c86081b750.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/{taxonomy-df0d88716578e295.js → taxonomy-a8f09bf8f3204ca7.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/user-management/profile/{[id]-da68efc31998dc66.js → [id]-3237881945acc0ee.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/{user-management-e98dfc7d4f2a4e16.js → user-management-a3a50d9d79066935.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/{webpack-90e8ec1fc5c6455b.js → webpack-69658aeaf6155d89.js} +1 -1
- fides/ui-build/static/admin/_next/static/css/{8bc1833f1fa53ff0.css → 073713cd1eddda79.css} +1 -1
- fides/ui-build/static/admin/_next/static/css/{ab65b8cc3144bfc8.css → 0b4b1b65cc874774.css} +1 -1
- fides/ui-build/static/admin/_next/static/css/{d9924caa849931b3.css → e1628f15dd5f019b.css} +1 -1
- fides/ui-build/static/admin/_next/static/nd386tKRkuP7h0W5NiKwd/_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-ext-gpp.js +1 -1
- fides/ui-build/static/admin/lib/fides-preview.js +1 -1
- fides/ui-build/static/admin/lib/fides-tcf.js +3 -3
- fides/ui-build/static/admin/lib/fides.js +3 -3
- 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/KAV7vwBbSuOInfCyClBs2/_buildManifest.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/privacy-requests/[id]-79f1576b1126975c.js +0 -1
- {ethyca_fides-2.67.3b1.dist-info → ethyca_fides-2.68.0rc1.dist-info}/WHEEL +0 -0
- {ethyca_fides-2.67.3b1.dist-info → ethyca_fides-2.68.0rc1.dist-info}/entry_points.txt +0 -0
- {ethyca_fides-2.67.3b1.dist-info → ethyca_fides-2.68.0rc1.dist-info}/licenses/LICENSE +0 -0
- {ethyca_fides-2.67.3b1.dist-info → ethyca_fides-2.68.0rc1.dist-info}/top_level.txt +0 -0
- /fides/ui-build/static/admin/_next/static/chunks/{5596-4378b2927dae65b2.js → 5596-bb601cbf40e47a0f.js} +0 -0
- /fides/ui-build/static/admin/_next/static/{KAV7vwBbSuOInfCyClBs2 → nd386tKRkuP7h0W5NiKwd}/_ssgManifest.js +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6882],{18225:function(e,t,i){var n=i(24246),r=i(
|
|
1
|
+
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6882],{18225:function(e,t,i){var n=i(24246),r=i(27824);t.Z=e=>{let{alignment:t="center",...i}=e;return(0,n.jsx)(r.kCb,{boxSize:"full",align:"center",justify:t,children:(0,n.jsx)(r.$jN,{color:"primary",...i})})}},77213:function(e,t,i){i.d(t,{Z:function(){return f}});var n=i(24246),r=i(27824),s=i(88038),l=i.n(s),o=i(86677);i(27378);var d=i(25980),a=i(90867),c=i(77830),u=()=>{let e=(0,o.useRouter)();return(0,n.jsx)(r.xuv,{bg:"gray.50",border:"1px solid",borderColor:"blue.400",borderRadius:"md",justifyContent:"space-between",p:5,mb:5,mt:5,children:(0,n.jsxs)(r.xuv,{children:[(0,n.jsxs)(r.Kqy,{direction:{base:"column",sm:"row"},justifyContent:"space-between",children:[(0,n.jsx)(r.xvT,{fontWeight:"semibold",children:"Configure your storage and messaging provider"}),(0,n.jsx)(r.wpx,{onClick:()=>{e.push(c.fz)},children:"Configure"})]}),(0,n.jsxs)(r.xvT,{children:["Before Fides can process your privacy requests we need two simple steps to configure your storage and email client."," "]})]})})},f=e=>{let{children:t,title:i,padded:s=!0,mainProps:c}=e,f=(0,d.hz)(),h=(0,o.useRouter)(),x="/privacy-requests"===h.pathname||"/datastore-connection"===h.pathname,j=!(f.flags.privacyRequestsConfiguration&&x),{data:_}=(0,a.JE)(void 0,{skip:j}),{data:v}=(0,a.PW)(void 0,{skip:j}),p=f.flags.privacyRequestsConfiguration&&(!_||!v)&&x;return(0,n.jsxs)(r.kCb,{"data-testid":i,direction:"column",h:"100vh",children:[(0,n.jsxs)(l(),{children:[(0,n.jsxs)("title",{children:["Fides Admin UI - ",i]}),(0,n.jsx)("meta",{name:"description",content:"Privacy Engineering Platform"}),(0,n.jsx)("link",{rel:"icon",href:"/favicon.ico"})]}),(0,n.jsxs)(r.kCb,{as:"main",direction:"column",py:s?6:0,px:s?10:0,h:s?"calc(100% - 48px)":"full",flex:1,minWidth:0,overflow:"auto",...c,children:[p?(0,n.jsx)(u,{}):null,t]})]})}},79789:function(e,t,i){i.d(t,{Hn:function(){return o},XU:function(){return l},Z5:function(){return d},aG:function(){return u},cB:function(){return s},hX:function(){return c},vQ:function(){return a}});var n=i(24246),r=i(27824);let s=e=>{let{text:t,...i}=e;return(0,n.jsx)(r.X6q,{fontSize:"sm",mt:4,mb:1,...i,children:t})},l=e=>{let{children:t}=e;return(0,n.jsx)(r.xvT,{fontSize:"14px",mb:4,children:t})},o=e=>{let{children:t,href:i}=e;return(0,n.jsx)(r.rUS,{href:i,textDecoration:"underline",isExternal:!0,children:t})},d=e=>{let{children:t}=e;return(0,n.jsx)(r.QI$,{fontSize:"14px",mb:4,children:t})},a=e=>{let{children:t}=e;return(0,n.jsx)(r.GSI,{fontSize:"14px",mb:4,ml:6,children:t})},c=e=>{let{children:t}=e;return(0,n.jsx)(r.EKh,{display:"block",whiteSpace:"pre",p:4,mb:4,overflowX:"scroll",children:t})},u=e=>{let{data:t}=e;return(0,n.jsxs)(r.iA_,{fontSize:"14px",children:[(0,n.jsx)(r.hrZ,{children:(0,n.jsxs)(r.Tr,{children:[(0,n.jsx)(r.Th,{children:"Permission"}),(0,n.jsx)(r.Th,{children:"Description"})]})}),(0,n.jsx)(r.p3B,{children:t.map(e=>(0,n.jsxs)(r.Tr,{children:[(0,n.jsx)(r.Td,{children:(0,n.jsx)(r.Vp9,{children:e.permission})}),(0,n.jsx)(r.Td,{children:e.description})]},e.permission))})]})}},12627:function(e,t,i){var n=i(24246),r=i(79283),s=i(34929);t.Z=e=>{let{selectedTaxonomies:t,showDisabled:i=!1,...l}=e,{getDataCategoryDisplayNameProps:o,getDataCategories:d}=(0,s.Z)(),a=(i?d():d().filter(e=>e.active)).filter(e=>!t.includes(e.fides_key)).map(e=>{let{name:t,primaryName:i}=o(e.fides_key);return{value:e.fides_key,name:t,primaryName:i,description:e.description||""}});return(0,n.jsx)(r.l,{options:a,...l})}},89200:function(e,t,i){var n=i(24246),r=i(47935),s=i(98559),l=i(80356);t.Z=e=>{let{resource:t}=e;return(0,n.jsx)(r.G3,{value:(0,s.Z)(t),fontWeight:(0,l.Z)(t)?"semibold":"normal"})}},5945:function(e,t,i){var n=i(24246),r=i(47935),s=i(8151);let l={[s.e.ATTENTION_REQUIRED]:"error",[s.e.APPROVED]:"success",[s.e.IN_REVIEW]:"warning",[s.e.CLASSIFYING]:"info",[s.e.NONE]:"marble"};t.Z=e=>{let{status:t}=e;return(0,n.jsx)(r.A4,{color:l[t],value:t})}},99763:function(e,t,i){var n=i(24246),r=i(27824),s=i(79789),l=i(8151),o=i(61099),d=i(7940),a=i(54682);t.Z=e=>{var t;let{resource:i,onClose:c}=e,u=(0,d.G)(i),f=(0,l.u)(i),h=(u===a.D$.FIELD||u===a.D$.TABLE)&&f===l.e.IN_REVIEW;return(0,n.jsxs)(r.dys,{isOpen:!!i,onClose:c,size:"md",children:[(0,n.jsx)(r.P1B,{}),(0,n.jsxs)(r.scA,{"data-testid":"resource-details",children:[(0,n.jsx)(r.OXI,{children:(null==i?void 0:i.name)||(null==i?void 0:i.urn)}),(0,n.jsx)(r.cCv,{}),(0,n.jsxs)(r.Ng0,{children:[(0,n.jsx)(s.cB,{text:"Title",mt:0}),(0,n.jsx)(s.XU,{children:null!==(t=null==i?void 0:i.name)&&void 0!==t?t:null==i?void 0:i.urn}),(null==i?void 0:i.description)&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(s.cB,{text:"Description"}),(0,n.jsx)(s.XU,{children:null==i?void 0:i.description})]}),h&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(s.cB,{text:"Data categories"}),(0,n.jsx)(o.Z,{resource:i})]})]})]})]})}},28976:function(e,t,i){var n=i(24246),r=i(27824);t.Z=e=>{let{onHideClick:t,onDetailClick:i}=e;return(0,n.jsxs)(r.v2r,{children:[(0,n.jsx)(r.j2t,{as:r.wpx,size:"small",type:"text",icon:(0,n.jsx)(r.nXP,{transform:"rotate(90deg)"}),className:"w-6 gap-0","data-testid":"actions-menu"}),(0,n.jsxs)(r.qyq,{children:[i&&(0,n.jsx)(r.sNh,{onClick:i,"data-testid":"view-resource-details",children:"View details"}),t&&(0,n.jsx)(r.sNh,{onClick:t,"data-testid":"hide-resource",children:"Hide"})]})]})}},8151:function(e,t,i){i.d(t,{e:function(){return r},u:function(){return l}});var n,r,s=i(54682);(n=r||(r={})).ATTENTION_REQUIRED="Attention required",n.IN_REVIEW="In review",n.APPROVED="Approved",n.CLASSIFYING="Classifying",n.NONE="None";let l=e=>{if(!e)return"Approved";let t=e.diff_status===s.LL.ADDITION||e.diff_status===s.LL.REMOVAL,i=e.child_diff_statuses&&(e.child_diff_statuses[s.LL.ADDITION]||e.child_diff_statuses[s.LL.REMOVAL]);if(t||i)return"Attention required";let n=e.diff_status===s.LL.CLASSIFICATION_QUEUED||e.diff_status===s.LL.CLASSIFYING,r=e.child_diff_statuses&&(e.child_diff_statuses[s.LL.CLASSIFICATION_QUEUED]||e.child_diff_statuses[s.LL.CLASSIFYING]);if(n||r)return"Classifying";let l=e.diff_status===s.LL.CLASSIFICATION_ADDITION||e.diff_status===s.LL.CLASSIFICATION_UPDATE,o=e.child_diff_statuses&&(e.child_diff_statuses[s.LL.CLASSIFICATION_ADDITION]||e.child_diff_statuses[s.LL.CLASSIFICATION_UPDATE]);return l||o?"In review":"Approved"}},61099:function(e,t,i){var n=i(24246),r=i(27824),s=i(27378),l=i(12627),o=i(34929),d=i(26183),a=i(70675);t.Z=e=>{var t,i,c;let{resource:u}=e,[f,h]=(0,s.useState)(!1),{getDataCategoryDisplayName:x}=(0,o.Z)(),[j]=(0,a.NA)(),_=(null===(t=u.classifications)||void 0===t?void 0:t.length)?u.classifications[0].label:null,v=null!==(c=u.user_assigned_data_categories)&&void 0!==c?c:[],p=!_&&!(null==v?void 0:v.length),m=null===(i=u.sub_field_urns)||void 0===i?void 0:i.length,g=e=>{j({staged_resource_urn:u.urn,monitor_config_id:u.monitor_config_id,user_assigned_data_categories:[...v,e]})},I=e=>{var t;j({staged_resource_urn:u.urn,monitor_config_id:u.monitor_config_id,user_assigned_data_categories:null!==(t=null==v?void 0:v.filter(t=>t!==e))&&void 0!==t?t:[]})},A=!f&&!!v.length,C=!f&&!!_&&!v.length;return(0,n.jsxs)(d.Z,{"data-testid":"edit-category-cell",children:[p&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(r.j8w,{"data-testid":"no-classifications",color:"white",children:"None"}),!m&&(0,n.jsx)(r.j8w,{onClick:()=>h(!0),addable:!0,"data-testid":"taxonomy-add-btn","aria-label":"Add category"})]}),A&&(0,n.jsxs)(n.Fragment,{children:[v.map(e=>(0,n.jsx)(r.j8w,{"data-testid":"user-classification-".concat(e),color:"white",closable:!0,onClose:()=>I(e),closeButtonLabel:"Remove category",children:x(e)},e)),(0,n.jsx)(r.j8w,{onClick:()=>h(!0),addable:!0,"data-testid":"taxonomy-add-btn","aria-label":"Add category"})]}),C&&(0,n.jsxs)(r.j8w,{onClick:()=>h(!0),color:"white","data-testid":"classification-".concat(_),hasSparkle:!0,children:[x(_),(0,n.jsx)(r.PJP.I8b,{size:10})]}),f&&(0,n.jsx)(r.xuv,{className:"select-wrapper",position:"absolute",zIndex:10,top:"0",left:"0",width:"100%",height:"max",bgColor:"#fff",children:(0,n.jsx)(l.Z,{selectedTaxonomies:v,onChange:e=>{h(!1),g(e)},onBlur:()=>h(!1),open:!0})})]})}},7940:function(e,t,i){i.d(t,{G:function(){return r}});var n=i(54682);let r=e=>{var t,i,r;return e?e.resource_type?e.resource_type:(null===(t=e.schemas)||void 0===t?void 0:t.length)?n.D$.DATABASE:(null===(i=e.tables)||void 0===i?void 0:i.length)?n.D$.SCHEMA:(null===(r=e.fields)||void 0===r?void 0:r.length)?n.D$.TABLE:n.D$.FIELD:void 0}},98559:function(e,t){t.Z=e=>{let{name:t,urn:i,monitor_config_id:n,database_name:r,schema_name:s,table_name:l,top_level_field_name:o,top_level_field_urn:d}=e;if(!o)return t;let a=i.split(".");return d?i.replace("".concat(d).concat("."),""):([n,r,s,l,o].forEach(e=>{if(e){let t=a.indexOf(e);t>-1&&a.splice(t,1)}}),a.join("."))}},36168:function(e,t){t.Z=e=>{var t;return!!e.parent_table_urn&&null!==(t=e.sub_field_urns)&&void 0!==t&&!!t.length&&!e.top_level_field_name}},80356:function(e,t,i){var n=i(7940),r=i(36168),s=i(54682);t.Z=e=>(0,n.G)(e)!==s.D$.FIELD||(0,r.Z)(e)}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6954],{14441:function(e,t,n){var a,i,l=1/0,s=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,r=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,o="\ud800-\udfff",d="\\u2700-\\u27bf",c="a-z\\xdf-\\xf6\\xf8-\\xff",u="A-Z\\xc0-\\xd6\\xd8-\\xde",x="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",p="['’]",g="["+x+"]",f="[\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0]",m="["+c+"]",h="[^"+o+x+"\\d+"+d+c+u+"]",v="(?:\ud83c[\udde6-\uddff]){2}",b="[\ud800-\udbff][\udc00-\udfff]",j="["+u+"]",y="(?:"+m+"|"+h+")",_="(?:"+p+"(?:d|ll|m|re|s|t|ve))?",C="(?:"+p+"(?:D|LL|M|RE|S|T|VE))?",k="(?:"+f+"|\ud83c[\udffb-\udfff])?",N="[\\ufe0e\\ufe0f]?",T="(?:\\u200d(?:"+["[^"+o+"]",v,b].join("|")+")"+N+k+")*",E="(?:"+["["+d+"]",v,b].join("|")+")"+(N+k+T),O=RegExp(p,"g"),w=RegExp(f,"g"),A=RegExp([j+"?"+m+"+"+_+"(?="+[g,j,"$"].join("|")+")","(?:"+j+"|"+h+")+"+C+"(?="+[g,j+y,"$"].join("|")+")",j+"?"+y+"+"+_,j+"+"+C,"\\d+",E].join("|"),"g"),S=/[a-z][A-Z]|[A-Z]{2,}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,I="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,z="object"==typeof self&&self&&self.Object===Object&&self,Z=I||z||Function("return this")(),L=(a={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"ss"},function(e){return null==a?void 0:a[e]}),R=Object.prototype.toString,P=Z.Symbol,U=P?P.prototype:void 0,q=U?U.toString:void 0;function J(e){return null==e?"":function(e){if("string"==typeof e)return e;if("symbol"==typeof(t=e)||t&&"object"==typeof t&&"[object Symbol]"==R.call(t))return q?q.call(e):"";var t,n=e+"";return"0"==n&&1/e==-l?"-0":n}(e)}var F=(i=function(e,t,n){return e+(n?"_":"")+t.toLowerCase()},function(e){var t;return function(e,t,n,a){for(var i=-1,l=e?e.length:0;++i<l;)n=t(n,e[i],i,e);return n}(function(e,t,n){if(e=J(e),void 0===t){var a;return(a=e,S.test(a))?e.match(A)||[]:e.match(s)||[]}return e.match(t)||[]}(((t=J(t=e))&&t.replace(r,L).replace(w,"")).replace(O,"")),i,"")});e.exports=F},58754:function(e,t,n){"use strict";var a=n(24246),i=n(13577),l=n(70788);t.Z=e=>{let{heading:t,breadcrumbItems:n,isSticky:s=!0,children:r,rightContent:o,style:d,...c}=e;return(0,a.jsxs)("div",{...c,style:s?{position:"sticky",top:"-24px",paddingTop:"24px",paddingBottom:"24px",paddingLeft:"40px",marginLeft:"-40px",paddingRight:"40px",marginRight:"-40px",marginTop:"-24px",left:0,zIndex:20,backgroundColor:"white",...d}:{paddingBottom:"24px",...d},children:[(0,a.jsxs)(i.jqI,{justify:"space-between",children:["string"==typeof t?(0,a.jsx)(i.lQT,{className:n||r?"pb-4":void 0,level:1,"data-testid":"page-heading",children:t}):t,o&&(0,a.jsx)("div",{"data-testid":"page-header-right-content",children:o})]}),!!n&&(0,a.jsx)(l.m,{className:r?"pb-4":void 0,items:n,"data-testid":"page-breadcrumb"}),r]})}},10342:function(e,t,n){"use strict";var a=n(24246),i=n(13577),l=n(46238);t.Z=e=>{let{title:t,tooltip:n,children:s,...r}=e;return(0,a.jsxs)(i.xuv,{borderRadius:"md",border:"1px solid",borderColor:"gray.200",...r,children:[(0,a.jsxs)(i.X6q,{as:"h3",fontSize:"sm",fontWeight:"semibold",color:"gray.700",py:4,px:6,backgroundColor:"gray.50",borderRadius:"md",textAlign:"left",children:[t,n?(0,a.jsx)(i.xvT,{as:"span",mx:1,children:(0,a.jsx)(l.b,{label:n})}):void 0]}),(0,a.jsx)(i.Kqy,{p:6,spacing:6,children:s})]})}},70788:function(e,t,n){"use strict";n.d(t,{m:function(){return d}});var a=n(24246),i=n(13577),l=n(79894),s=n.n(l),r=n(27378);let{Text:o}=i.AntTypography,d=e=>{let{items:t,...n}=e,l=(0,r.useMemo)(()=>null==t?void 0:t.map((e,n)=>{let l=n===t.length-1,r={...e},d=r.onClick&&!r.href;return("string"==typeof r.title&&(r.title=(0,a.jsx)(o,{style:{color:"inherit",maxWidth:l?void 0:400},ellipsis:!l,children:r.title})),d)?r.title=(0,a.jsx)(i.wpx,{type:"text",size:"small",icon:r.icon,onClick:r.onClick,className:"ant-breadcrumb-link -mt-px px-1 text-inherit",children:r.title}):(r.icon&&(r.title=(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("span",{className:"anticon align-text-bottom",children:r.icon}),r.title]})),r.href&&r.title&&(r.title=(0,a.jsx)(s(),{href:r.href,className:"ant-breadcrumb-link",children:r.title}),delete r.href)),r}),[t]);return(0,a.jsx)(i.zrq,{items:l,...n})}},34391:function(e,t,n){"use strict";n.d(t,{Z:function(){return G}});var a=n(24246),i=n(51472),l=n(13577),s=n(34090),r=n(79894),o=n.n(r),d=n(86677),c=n(27378),u=n(16134),x=n(10342),p=n(40324),g=n(812),f=n(46238),m=n(77830),h=n(8411),v=n(46628),b=n(28079),j=n(7426),y=n(34334),_=n(16277);let C=e=>{let{index:t}=e;return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(p.j0,{autoFocus:0!==t,name:"translations.".concat(t,".title"),label:"Title of privacy notice as displayed to user",variant:"stacked"}),(0,a.jsx)(p.Ks,{name:"translations.".concat(t,".description"),label:"Privacy notice displayed to the user",variant:"stacked"})]})},k=e=>{let{languageOptions:t,handleCreateLanguage:n}=e,[i,s]=(0,c.useState)(!1);return i?(0,a.jsx)(l.WPr,{autoFocus:!0,defaultOpen:!0,allowClear:!0,placeholder:"Select a language...",options:t,onChange:e=>{n(e),s(!1)},"data-testid":"select-language",className:"w-full"}):(0,a.jsx)(l.wpx,{block:!0,icon:(0,a.jsx)(l.PJP.mm_,{}),iconPosition:"end",onClick:()=>s(!0),"data-testid":"add-language-btn",className:"mb-1",children:"Add"})},N=e=>{let{index:t,name:n,isOOB:i}=e;return(0,a.jsxs)(l.kCb,{direction:"column",gap:6,children:[(0,a.jsxs)(l.X6q,{size:"sm",children:["Edit ",n," translation"]}),i?(0,a.jsx)(_.f,{languageName:n}):null,(0,a.jsx)(C,{index:t})]})};var T=e=>{var t,n,i,r;let{availableTranslations:o}=e,{values:d,setFieldValue:p}=(0,s.u6)(),[g,f]=(0,c.useState)(!1),[m,h]=(0,c.useState)(null!==(r=null===(n=d.translations)||void 0===n?void 0:null===(t=n[0])||void 0===t?void 0:t.language)&&void 0!==r?r:""),{data:v}=(0,j.tB)({api_set:!1}),b=null==v?void 0:null===(i=v.plus_consent_settings)||void 0===i?void 0:i.enable_translations,_=(0,u.C)(y.Zp),T=(0,u.C)(y.G1);(0,y.Ah)({page:_,size:T});let E=(0,u.C)(y.fJ).slice().sort((e,t)=>e.name.localeCompare(t.name)),O=E.filter(e=>{var t;return null===(t=d.translations)||void 0===t?void 0:t.every(t=>t.language!==e.id)}).map(e=>({label:e.name,value:e.id})),w=e=>{h(e),f(!1)},A=e=>{let t=null==o?void 0:o.find(t=>t.language===e);f(!!t);let n=null!=t?t:{language:e,title:"",description:""};h(e),p("translations",[...d.translations,n])},S=e=>{var t,n;let a=d.translations?d.translations.slice().filter(t=>t.language!==e):[],i=m===e?null!==(n=null===(t=a[a.length-1])||void 0===t?void 0:t.language)&&void 0!==n?n:"":m;p("translations",a),h(i)},I=e=>{var t,n;return null!==(n=null===(t=E.find(t=>t.id===e))||void 0===t?void 0:t.name)&&void 0!==n?n:e};return b?(0,a.jsx)(x.Z,{title:"Localizations",children:(0,a.jsx)(s.F2,{name:"translations",render:()=>(0,a.jsx)(l.A5g,{activeKey:m,onChange:w,type:"editable-card",tabBarExtraContent:!!O.length&&(0,a.jsx)(k,{languageOptions:O,handleCreateLanguage:A}),hideAdd:!0,onEdit:(e,t)=>{"remove"===t&&S(e)},items:d.translations.map(e=>({key:e.language,label:I(e.language),children:(0,a.jsx)(N,{index:d.translations.findIndex(t=>t.language===e.language),name:I(e.language),isOOB:g}),closable:d.translations.length>1}))})})}):(0,a.jsx)(x.Z,{title:"Notice text",children:(0,a.jsx)(C,{index:0})})},E=n(97181),O=n(55484),w=n(16394),A=n(65063),S=n(54682);let I=(0,w.Jt)(A.ye),z=(0,w.Jt)(A.B8),Z=[{language:S.eU.EN,title:"",description:""}],L={name:"",consent_mechanism:S.J7.OPT_IN,data_uses:[],enforcement_level:S.QT.FRONTEND,disabled:!0,translations:Z,children:[]},R=e=>{var t,n,a,i;return{name:null!==(t=e.name)&&void 0!==t?t:L.name,consent_mechanism:null!==(n=e.consent_mechanism)&&void 0!==n?n:L.consent_mechanism,data_uses:null!==(a=e.data_uses)&&void 0!==a?a:L.data_uses,enforcement_level:null!==(i=e.enforcement_level)&&void 0!==i?i:L.enforcement_level,notice_key:e.notice_key,disabled:e.disabled,has_gpc_flag:e.has_gpc_flag,id:e.id,internal_description:e.internal_description,translations:e.translations?e.translations.map(e=>{var t;let{privacy_notice_history_id:n,...a}=e;return{...a,title:null!==(t=e.title)&&void 0!==t?t:""}}):Z,children:e.children}},P=O.Ry().shape({name:O.Z_().required().label("Title"),consent_mechanism:O.Z_().required().label("Consent mechanism")});var U=n(14441),q=n.n(U),J=e=>{let{isEditing:t}=e,{values:n,setFieldValue:i}=(0,s.u6)();return(0,c.useEffect)(()=>{t||i("notice_key",q()(n.name))},[n.name,t,i]),(0,a.jsx)(p.j0,{name:"notice_key",label:"Key used in Fides cookie",variant:"stacked"})},F=n(71922);let{Text:B}=l.AntTypography,D=e=>{let{regions:t,label:n,tooltip:i}=e;return(0,a.jsxs)(l.gCW,{align:"start",children:[(0,a.jsxs)(l.kCb,{align:"start",children:[n?(0,a.jsx)(l.lXp,{htmlFor:"regions",fontSize:"xs",my:0,mr:1,children:n}):null,(0,a.jsx)(f.b,{label:i})]}),(0,a.jsx)(l.xuv,{w:"100%","data-testid":"notice-locations",children:(0,a.jsxs)(l.vyj,{size:[0,2],wrap:!0,children:[null==t?void 0:t.map(e=>(0,a.jsx)(l.j8w,{children:h.Z8[e]},e)),!(null==t?void 0:t.length)&&(0,a.jsxs)(B,{italic:!0,children:["No locations assigned. Navigate to the"," ",(0,a.jsx)(o(),{href:m.w0,children:"experiences view"})," ","configure."]})]})})]})};var G=e=>{let{privacyNotice:t,availableTranslations:n}=e,r=(0,d.useRouter)(),o=(0,l.pmc)(),f=t?R(t):L;(0,b.fd)();let h=(0,u.C)(b.qv),j=(0,u.C)(F.sX),y=(0,u.C)(F.Zp),_=(0,u.C)(F.G1);(0,F.J6)({page:y,size:_});let C=e=>{var t;let{id:n}=e,a=j.find(e=>e.id===n);return null!==(t=null==a?void 0:a.name)&&void 0!==t?t:n},k=j.some(e=>{var n;return null===(n=e.children)||void 0===n?void 0:n.some(e=>e.id===(null==t?void 0:t.id))}),[N]=(0,F.vL)(),[O]=(0,F.p4)(),w=(0,c.useMemo)(()=>!!t,[t]),A=async e=>{let n;if(w){var a,i;let l={...e,id:t.id,translations:null!==(a=e.translations)&&void 0!==a?a:[],children:null!==(i=e.children)&&void 0!==i?i:[]};n=await N(l)}else n=await O(e);(0,g.D4)(n)?o((0,v.Vo)((0,g.e$)(n.error))):(o((0,v.t5)("Privacy notice ".concat(w?"updated":"created"))),w||r.push(m.IT))};return(0,a.jsx)(s.J9,{initialValues:f,enableReinitialize:!0,onSubmit:A,validationSchema:P,children:e=>{var o,d;let{values:c,setFieldValue:u,dirty:g,isValid:f,isSubmitting:m}=e;return(0,a.jsx)(s.l0,{children:(0,a.jsxs)(l.Kqy,{spacing:10,children:[(0,a.jsxs)(l.Kqy,{spacing:6,children:[(0,a.jsxs)(x.Z,{title:"Privacy notice details",children:[(0,a.jsx)(p.j0,{label:"Notice title",name:"name",isRequired:!0,variant:"stacked"}),(0,a.jsx)(E.d,{name:"consent_mechanism",label:"Consent mechanism",options:I,isRequired:!0,layout:"stacked"}),(0,a.jsx)(J,{isEditing:w}),(0,a.jsx)(p.w8,{name:"has_gpc_flag",label:"Configure whether this notice conforms to the Global Privacy Control",variant:"stacked"}),(0,a.jsx)(D,{regions:null==t?void 0:t.configured_regions,label:"Locations where privacy notice is shown to visitors",tooltip:"To configure locations, change the privacy experiences where this notice is shown"}),(0,a.jsx)(l.izJ,{}),!k&&(0,a.jsx)(i.Z,{label:"Child notices",addButtonLabel:"Add notice children",allItems:j.map(e=>({id:e.id,name:e.name})),values:null!==(d=null===(o=c.children)||void 0===o?void 0:o.map(e=>({id:e.id,name:e.name})))&&void 0!==d?d:[],setValues:e=>u("children",e),idField:"id",getItemLabel:C,draggable:!0,maxHeight:100,baseTestId:"children"}),(0,a.jsx)(E.d,{name:"data_uses",label:"Data use",options:h,mode:"multiple",layout:"stacked"}),(0,a.jsx)(E.d,{name:"enforcement_level",label:"Enforcement level",options:z,isRequired:!0,layout:"stacked"})]}),(0,a.jsx)(T,{availableTranslations:n})]}),(0,a.jsxs)("div",{className:"flex gap-2",children:[(0,a.jsx)(l.wpx,{onClick:()=>{r.back()},children:"Cancel"}),(0,a.jsx)(l.wpx,{htmlType:"submit",type:"primary",disabled:m||!g||!f,loading:m,"data-testid":"save-btn",children:"Save"})]})]})})}})}},65063:function(e,t,n){"use strict";n.d(t,{B8:function(){return l},Ep:function(){return s},ye:function(){return i}});var a=n(54682);let i=new Map([[a.J7.OPT_IN,"Opt in"],[a.J7.NOTICE_ONLY,"Notice only"],[a.J7.OPT_OUT,"Opt out"]]),l=new Map([[a.QT.SYSTEM_WIDE,"System wide"],[a.QT.FRONTEND,"Front end"],[a.QT.NOT_APPLICABLE,"Not applicable"]]),s=new Map([["gpp_us_national","GPP US National"],["gpp_us_state","GPP US State"]])}}]);
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6954],{14441:function(e,t,n){var a,i,l=1/0,s=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,r=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,o="\ud800-\udfff",d="\\u2700-\\u27bf",c="a-z\\xdf-\\xf6\\xf8-\\xff",u="A-Z\\xc0-\\xd6\\xd8-\\xde",x="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",p="['’]",g="["+x+"]",f="[\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0]",m="["+c+"]",h="[^"+o+x+"\\d+"+d+c+u+"]",v="(?:\ud83c[\udde6-\uddff]){2}",b="[\ud800-\udbff][\udc00-\udfff]",j="["+u+"]",y="(?:"+m+"|"+h+")",_="(?:"+p+"(?:d|ll|m|re|s|t|ve))?",C="(?:"+p+"(?:D|LL|M|RE|S|T|VE))?",k="(?:"+f+"|\ud83c[\udffb-\udfff])?",N="[\\ufe0e\\ufe0f]?",T="(?:\\u200d(?:"+["[^"+o+"]",v,b].join("|")+")"+N+k+")*",E="(?:"+["["+d+"]",v,b].join("|")+")"+(N+k+T),O=RegExp(p,"g"),w=RegExp(f,"g"),A=RegExp([j+"?"+m+"+"+_+"(?="+[g,j,"$"].join("|")+")","(?:"+j+"|"+h+")+"+C+"(?="+[g,j+y,"$"].join("|")+")",j+"?"+y+"+"+_,j+"+"+C,"\\d+",E].join("|"),"g"),S=/[a-z][A-Z]|[A-Z]{2,}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,I="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,z="object"==typeof self&&self&&self.Object===Object&&self,Z=I||z||Function("return this")(),L=(a={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"ss"},function(e){return null==a?void 0:a[e]}),R=Object.prototype.toString,P=Z.Symbol,U=P?P.prototype:void 0,q=U?U.toString:void 0;function J(e){return null==e?"":function(e){if("string"==typeof e)return e;if("symbol"==typeof(t=e)||t&&"object"==typeof t&&"[object Symbol]"==R.call(t))return q?q.call(e):"";var t,n=e+"";return"0"==n&&1/e==-l?"-0":n}(e)}var F=(i=function(e,t,n){return e+(n?"_":"")+t.toLowerCase()},function(e){var t;return function(e,t,n,a){for(var i=-1,l=e?e.length:0;++i<l;)n=t(n,e[i],i,e);return n}(function(e,t,n){if(e=J(e),void 0===t){var a;return(a=e,S.test(a))?e.match(A)||[]:e.match(s)||[]}return e.match(t)||[]}(((t=J(t=e))&&t.replace(r,L).replace(w,"")).replace(O,"")),i,"")});e.exports=F},58754:function(e,t,n){"use strict";var a=n(24246),i=n(27824),l=n(70788);t.Z=e=>{let{heading:t,breadcrumbItems:n,isSticky:s=!0,children:r,rightContent:o,style:d,...c}=e;return(0,a.jsxs)("div",{...c,style:s?{position:"sticky",top:"-24px",paddingTop:"24px",paddingBottom:"24px",paddingLeft:"40px",marginLeft:"-40px",paddingRight:"40px",marginRight:"-40px",marginTop:"-24px",left:0,zIndex:20,backgroundColor:"white",...d}:{paddingBottom:"24px",...d},children:[(0,a.jsxs)(i.jqI,{justify:"space-between",children:["string"==typeof t?(0,a.jsx)(i.lQT,{className:n||r?"pb-4":void 0,level:1,"data-testid":"page-heading",children:t}):t,o&&(0,a.jsx)("div",{"data-testid":"page-header-right-content",children:o})]}),!!n&&(0,a.jsx)(l.m,{className:r?"pb-4":void 0,items:n,"data-testid":"page-breadcrumb"}),r]})}},10342:function(e,t,n){"use strict";var a=n(24246),i=n(27824),l=n(46238);t.Z=e=>{let{title:t,tooltip:n,children:s,...r}=e;return(0,a.jsxs)(i.xuv,{borderRadius:"md",border:"1px solid",borderColor:"gray.200",...r,children:[(0,a.jsxs)(i.X6q,{as:"h3",fontSize:"sm",fontWeight:"semibold",color:"gray.700",py:4,px:6,backgroundColor:"gray.50",borderRadius:"md",textAlign:"left",children:[t,n?(0,a.jsx)(i.xvT,{as:"span",mx:1,children:(0,a.jsx)(l.b,{label:n})}):void 0]}),(0,a.jsx)(i.Kqy,{p:6,spacing:6,children:s})]})}},70788:function(e,t,n){"use strict";n.d(t,{m:function(){return d}});var a=n(24246),i=n(27824),l=n(79894),s=n.n(l),r=n(27378);let{Text:o}=i.AntTypography,d=e=>{let{items:t,...n}=e,l=(0,r.useMemo)(()=>null==t?void 0:t.map((e,n)=>{let l=n===t.length-1,r={...e},d=r.onClick&&!r.href;return("string"==typeof r.title&&(r.title=(0,a.jsx)(o,{style:{color:"inherit",maxWidth:l?void 0:400},ellipsis:!l,children:r.title})),d)?r.title=(0,a.jsx)(i.wpx,{type:"text",size:"small",icon:r.icon,onClick:r.onClick,className:"ant-breadcrumb-link -mt-px px-1 text-inherit",children:r.title}):(r.icon&&(r.title=(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("span",{className:"anticon align-text-bottom",children:r.icon}),r.title]})),r.href&&r.title&&(r.title=(0,a.jsx)(s(),{href:r.href,className:"ant-breadcrumb-link",children:r.title}),delete r.href)),r}),[t]);return(0,a.jsx)(i.zrq,{items:l,...n})}},34391:function(e,t,n){"use strict";n.d(t,{Z:function(){return G}});var a=n(24246),i=n(51472),l=n(27824),s=n(34090),r=n(79894),o=n.n(r),d=n(86677),c=n(27378),u=n(16134),x=n(10342),p=n(40324),g=n(812),f=n(46238),m=n(77830),h=n(8411),v=n(46628),b=n(28079),j=n(7426),y=n(34334),_=n(16277);let C=e=>{let{index:t}=e;return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(p.j0,{autoFocus:0!==t,name:"translations.".concat(t,".title"),label:"Title of privacy notice as displayed to user",variant:"stacked"}),(0,a.jsx)(p.Ks,{name:"translations.".concat(t,".description"),label:"Privacy notice displayed to the user",variant:"stacked"})]})},k=e=>{let{languageOptions:t,handleCreateLanguage:n}=e,[i,s]=(0,c.useState)(!1);return i?(0,a.jsx)(l.WPr,{autoFocus:!0,defaultOpen:!0,allowClear:!0,placeholder:"Select a language...",options:t,onChange:e=>{n(e),s(!1)},"data-testid":"select-language",className:"w-full"}):(0,a.jsx)(l.wpx,{block:!0,icon:(0,a.jsx)(l.PJP.mm_,{}),iconPosition:"end",onClick:()=>s(!0),"data-testid":"add-language-btn",className:"mb-1",children:"Add"})},N=e=>{let{index:t,name:n,isOOB:i}=e;return(0,a.jsxs)(l.kCb,{direction:"column",gap:6,children:[(0,a.jsxs)(l.X6q,{size:"sm",children:["Edit ",n," translation"]}),i?(0,a.jsx)(_.f,{languageName:n}):null,(0,a.jsx)(C,{index:t})]})};var T=e=>{var t,n,i,r;let{availableTranslations:o}=e,{values:d,setFieldValue:p}=(0,s.u6)(),[g,f]=(0,c.useState)(!1),[m,h]=(0,c.useState)(null!==(r=null===(n=d.translations)||void 0===n?void 0:null===(t=n[0])||void 0===t?void 0:t.language)&&void 0!==r?r:""),{data:v}=(0,j.tB)({api_set:!1}),b=null==v?void 0:null===(i=v.plus_consent_settings)||void 0===i?void 0:i.enable_translations,_=(0,u.C)(y.Zp),T=(0,u.C)(y.G1);(0,y.Ah)({page:_,size:T});let E=(0,u.C)(y.fJ).slice().sort((e,t)=>e.name.localeCompare(t.name)),O=E.filter(e=>{var t;return null===(t=d.translations)||void 0===t?void 0:t.every(t=>t.language!==e.id)}).map(e=>({label:e.name,value:e.id})),w=e=>{h(e),f(!1)},A=e=>{let t=null==o?void 0:o.find(t=>t.language===e);f(!!t);let n=null!=t?t:{language:e,title:"",description:""};h(e),p("translations",[...d.translations,n])},S=e=>{var t,n;let a=d.translations?d.translations.slice().filter(t=>t.language!==e):[],i=m===e?null!==(n=null===(t=a[a.length-1])||void 0===t?void 0:t.language)&&void 0!==n?n:"":m;p("translations",a),h(i)},I=e=>{var t,n;return null!==(n=null===(t=E.find(t=>t.id===e))||void 0===t?void 0:t.name)&&void 0!==n?n:e};return b?(0,a.jsx)(x.Z,{title:"Localizations",children:(0,a.jsx)(s.F2,{name:"translations",render:()=>(0,a.jsx)(l.A5g,{activeKey:m,onChange:w,type:"editable-card",tabBarExtraContent:!!O.length&&(0,a.jsx)(k,{languageOptions:O,handleCreateLanguage:A}),hideAdd:!0,onEdit:(e,t)=>{"remove"===t&&S(e)},items:d.translations.map(e=>({key:e.language,label:I(e.language),children:(0,a.jsx)(N,{index:d.translations.findIndex(t=>t.language===e.language),name:I(e.language),isOOB:g}),closable:d.translations.length>1}))})})}):(0,a.jsx)(x.Z,{title:"Notice text",children:(0,a.jsx)(C,{index:0})})},E=n(97181),O=n(55484),w=n(16394),A=n(65063),S=n(54682);let I=(0,w.Jt)(A.ye),z=(0,w.Jt)(A.B8),Z=[{language:S.eU.EN,title:"",description:""}],L={name:"",consent_mechanism:S.J7.OPT_IN,data_uses:[],enforcement_level:S.QT.FRONTEND,disabled:!0,translations:Z,children:[]},R=e=>{var t,n,a,i;return{name:null!==(t=e.name)&&void 0!==t?t:L.name,consent_mechanism:null!==(n=e.consent_mechanism)&&void 0!==n?n:L.consent_mechanism,data_uses:null!==(a=e.data_uses)&&void 0!==a?a:L.data_uses,enforcement_level:null!==(i=e.enforcement_level)&&void 0!==i?i:L.enforcement_level,notice_key:e.notice_key,disabled:e.disabled,has_gpc_flag:e.has_gpc_flag,id:e.id,internal_description:e.internal_description,translations:e.translations?e.translations.map(e=>{var t;let{privacy_notice_history_id:n,...a}=e;return{...a,title:null!==(t=e.title)&&void 0!==t?t:""}}):Z,children:e.children}},P=O.Ry().shape({name:O.Z_().required().label("Title"),consent_mechanism:O.Z_().required().label("Consent mechanism")});var U=n(14441),q=n.n(U),J=e=>{let{isEditing:t}=e,{values:n,setFieldValue:i}=(0,s.u6)();return(0,c.useEffect)(()=>{t||i("notice_key",q()(n.name))},[n.name,t,i]),(0,a.jsx)(p.j0,{name:"notice_key",label:"Key used in Fides cookie",variant:"stacked"})},F=n(71922);let{Text:B}=l.AntTypography,D=e=>{let{regions:t,label:n,tooltip:i}=e;return(0,a.jsxs)(l.gCW,{align:"start",children:[(0,a.jsxs)(l.kCb,{align:"start",children:[n?(0,a.jsx)(l.lXp,{htmlFor:"regions",fontSize:"xs",my:0,mr:1,children:n}):null,(0,a.jsx)(f.b,{label:i})]}),(0,a.jsx)(l.xuv,{w:"100%","data-testid":"notice-locations",children:(0,a.jsxs)(l.vyj,{size:[0,2],wrap:!0,children:[null==t?void 0:t.map(e=>(0,a.jsx)(l.j8w,{children:h.Z8[e]},e)),!(null==t?void 0:t.length)&&(0,a.jsxs)(B,{italic:!0,children:["No locations assigned. Navigate to the"," ",(0,a.jsx)(o(),{href:m.w0,children:"experiences view"})," ","configure."]})]})})]})};var G=e=>{let{privacyNotice:t,availableTranslations:n}=e,r=(0,d.useRouter)(),o=(0,l.pmc)(),f=t?R(t):L;(0,b.fd)();let h=(0,u.C)(b.qv),j=(0,u.C)(F.sX),y=(0,u.C)(F.Zp),_=(0,u.C)(F.G1);(0,F.J6)({page:y,size:_});let C=e=>{var t;let{id:n}=e,a=j.find(e=>e.id===n);return null!==(t=null==a?void 0:a.name)&&void 0!==t?t:n},k=j.some(e=>{var n;return null===(n=e.children)||void 0===n?void 0:n.some(e=>e.id===(null==t?void 0:t.id))}),[N]=(0,F.vL)(),[O]=(0,F.p4)(),w=(0,c.useMemo)(()=>!!t,[t]),A=async e=>{let n;if(w){var a,i;let l={...e,id:t.id,translations:null!==(a=e.translations)&&void 0!==a?a:[],children:null!==(i=e.children)&&void 0!==i?i:[]};n=await N(l)}else n=await O(e);(0,g.D4)(n)?o((0,v.Vo)((0,g.e$)(n.error))):(o((0,v.t5)("Privacy notice ".concat(w?"updated":"created"))),w||r.push(m.IT))};return(0,a.jsx)(s.J9,{initialValues:f,enableReinitialize:!0,onSubmit:A,validationSchema:P,children:e=>{var o,d;let{values:c,setFieldValue:u,dirty:g,isValid:f,isSubmitting:m}=e;return(0,a.jsx)(s.l0,{children:(0,a.jsxs)(l.Kqy,{spacing:10,children:[(0,a.jsxs)(l.Kqy,{spacing:6,children:[(0,a.jsxs)(x.Z,{title:"Privacy notice details",children:[(0,a.jsx)(p.j0,{label:"Notice title",name:"name",isRequired:!0,variant:"stacked"}),(0,a.jsx)(E.d,{name:"consent_mechanism",label:"Consent mechanism",options:I,isRequired:!0,layout:"stacked"}),(0,a.jsx)(J,{isEditing:w}),(0,a.jsx)(p.w8,{name:"has_gpc_flag",label:"Configure whether this notice conforms to the Global Privacy Control",variant:"stacked"}),(0,a.jsx)(D,{regions:null==t?void 0:t.configured_regions,label:"Locations where privacy notice is shown to visitors",tooltip:"To configure locations, change the privacy experiences where this notice is shown"}),(0,a.jsx)(l.izJ,{}),!k&&(0,a.jsx)(i.Z,{label:"Child notices",addButtonLabel:"Add notice children",allItems:j.map(e=>({id:e.id,name:e.name})),values:null!==(d=null===(o=c.children)||void 0===o?void 0:o.map(e=>({id:e.id,name:e.name})))&&void 0!==d?d:[],setValues:e=>u("children",e),idField:"id",getItemLabel:C,draggable:!0,maxHeight:100,baseTestId:"children"}),(0,a.jsx)(E.d,{name:"data_uses",label:"Data use",options:h,mode:"multiple",layout:"stacked"}),(0,a.jsx)(E.d,{name:"enforcement_level",label:"Enforcement level",options:z,isRequired:!0,layout:"stacked"})]}),(0,a.jsx)(T,{availableTranslations:n})]}),(0,a.jsxs)("div",{className:"flex gap-2",children:[(0,a.jsx)(l.wpx,{onClick:()=>{r.back()},children:"Cancel"}),(0,a.jsx)(l.wpx,{htmlType:"submit",type:"primary",disabled:m||!g||!f,loading:m,"data-testid":"save-btn",children:"Save"})]})]})})}})}},65063:function(e,t,n){"use strict";n.d(t,{B8:function(){return l},Ep:function(){return s},ye:function(){return i}});var a=n(54682);let i=new Map([[a.J7.OPT_IN,"Opt in"],[a.J7.NOTICE_ONLY,"Notice only"],[a.J7.OPT_OUT,"Opt out"]]),l=new Map([[a.QT.SYSTEM_WIDE,"System wide"],[a.QT.FRONTEND,"Front end"],[a.QT.NOT_APPLICABLE,"Not applicable"]]),s=new Map([["gpp_us_national","GPP US National"],["gpp_us_state","GPP US State"]])}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7476],{95492:function(e,n,t){t.d(n,{l:function(){return i}});var s=t(24246);let i=(0,t(
|
|
1
|
+
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7476],{95492:function(e,n,t){t.d(n,{l:function(){return i}});var s=t(24246);let i=(0,t(27824).IUT)({displayName:"TrashCanSolidIcon",viewBox:"0 0 12 15",path:(0,s.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,n,t){t.d(n,{Z:function(){return p}});var s=t(24246),i=t(27824),r=t(88038),a=t.n(r),l=t(86677);t(27378);var o=t(25980),c=t(90867),d=t(77830),u=()=>{let e=(0,l.useRouter)();return(0,s.jsx)(i.xuv,{bg:"gray.50",border:"1px solid",borderColor:"blue.400",borderRadius:"md",justifyContent:"space-between",p:5,mb:5,mt:5,children:(0,s.jsxs)(i.xuv,{children:[(0,s.jsxs)(i.Kqy,{direction:{base:"column",sm:"row"},justifyContent:"space-between",children:[(0,s.jsx)(i.xvT,{fontWeight:"semibold",children:"Configure your storage and messaging provider"}),(0,s.jsx)(i.wpx,{onClick:()=>{e.push(d.fz)},children:"Configure"})]}),(0,s.jsxs)(i.xvT,{children:["Before Fides can process your privacy requests we need two simple steps to configure your storage and email client."," "]})]})})},p=e=>{let{children:n,title:t,padded:r=!0,mainProps:d}=e,p=(0,o.hz)(),m=(0,l.useRouter)(),h="/privacy-requests"===m.pathname||"/datastore-connection"===m.pathname,x=!(p.flags.privacyRequestsConfiguration&&h),{data:f}=(0,c.JE)(void 0,{skip:x}),{data:v}=(0,c.PW)(void 0,{skip:x}),b=p.flags.privacyRequestsConfiguration&&(!f||!v)&&h;return(0,s.jsxs)(i.kCb,{"data-testid":t,direction:"column",h:"100vh",children:[(0,s.jsxs)(a(),{children:[(0,s.jsxs)("title",{children:["Fides Admin UI - ",t]}),(0,s.jsx)("meta",{name:"description",content:"Privacy Engineering Platform"}),(0,s.jsx)("link",{rel:"icon",href:"/favicon.ico"})]}),(0,s.jsxs)(i.kCb,{as:"main",direction:"column",py:r?6:0,px:r?10:0,h:r?"calc(100% - 48px)":"full",flex:1,minWidth:0,overflow:"auto",...d,children:[b?(0,s.jsx)(u,{}):null,n]})]})}},58754:function(e,n,t){var s=t(24246),i=t(27824),r=t(70788);n.Z=e=>{let{heading:n,breadcrumbItems:t,isSticky:a=!0,children:l,rightContent:o,style:c,...d}=e;return(0,s.jsxs)("div",{...d,style:a?{position:"sticky",top:"-24px",paddingTop:"24px",paddingBottom:"24px",paddingLeft:"40px",marginLeft:"-40px",paddingRight:"40px",marginRight:"-40px",marginTop:"-24px",left:0,zIndex:20,backgroundColor:"white",...c}:{paddingBottom:"24px",...c},children:[(0,s.jsxs)(i.jqI,{justify:"space-between",children:["string"==typeof n?(0,s.jsx)(i.lQT,{className:t||l?"pb-4":void 0,level:1,"data-testid":"page-heading",children:n}):n,o&&(0,s.jsx)("div",{"data-testid":"page-header-right-content",children:o})]}),!!t&&(0,s.jsx)(r.m,{className:l?"pb-4":void 0,items:t,"data-testid":"page-breadcrumb"}),l]})}},19904:function(e,n,t){t.d(n,{Tg:function(){return a}});var s=t(24246),i=t(16134),r=t(31793);let a=e=>(0,i.C)(r.uu).filter(n=>e.includes(n)).length>0;n.ZP=e=>{let{scopes:n,children:t}=e;return a(n)?(0,s.jsx)(s.Fragment,{children:t}):null}},70788:function(e,n,t){t.d(n,{m:function(){return c}});var s=t(24246),i=t(27824),r=t(79894),a=t.n(r),l=t(27378);let{Text:o}=i.AntTypography,c=e=>{let{items:n,...t}=e,r=(0,l.useMemo)(()=>null==n?void 0:n.map((e,t)=>{let r=t===n.length-1,l={...e},c=l.onClick&&!l.href;return("string"==typeof l.title&&(l.title=(0,s.jsx)(o,{style:{color:"inherit",maxWidth:r?void 0:400},ellipsis:!r,children:l.title})),c)?l.title=(0,s.jsx)(i.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,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("span",{className:"anticon align-text-bottom",children:l.icon}),l.title]})),l.href&&l.title&&(l.title=(0,s.jsx)(a(),{href:l.href,className:"ant-breadcrumb-link",children:l.title}),delete l.href)),l}),[n]);return(0,s.jsx)(i.zrq,{items:r,...t})}},61038:function(e,n,t){var s=t(24246),i=t(27824),r=t(34090),a=t(86677);t(27378);var l=t(55484),o=t(16134),c=t(40324),d=t(812),u=t(77830),p=t(46628),m=t(65497);let h={username:"",usernameConfirmation:""},x=e=>{let{id:n,username:t,onClose:s}=e,r=(0,i.pmc)(),c=(0,a.useRouter)(),h=(0,o.T)(),[x]=(0,m.I1)();return{handleDeleteUser:async()=>{let e=await x(n);(0,d.D4)(e)?r((0,p.Vo)((0,d.e$)(e.error))):(r((0,p.t5)("Successfully deleted user")),s()),h((0,m.Vv)(void 0)),c.push(u.e3)},validationSchema:l.Ry().shape({usernameConfirmation:l.Z_().required().oneOf([t],"Confirmation input must match the username").label("Username confirmation")})}};n.Z=e=>{let{user:n,...t}=e,{isOpen:a,onClose:l}=t,{handleDeleteUser:o,validationSchema:d}=x({id:n.id,username:n.username,onClose:l});return(0,s.jsxs)(i.u_l,{isCentered:!0,isOpen:a,onClose:l,children:[(0,s.jsx)(i.ZAr,{}),(0,s.jsx)(i.hzk,{"data-testid":"delete-user-modal",children:(0,s.jsx)(r.J9,{initialValues:h,validationSchema:d,onSubmit:o,children:e=>{let{isSubmitting:t,dirty:a,isValid:o}=e;return(0,s.jsxs)(r.l0,{children:[(0,s.jsx)(i.xBx,{children:"Delete User"}),(0,s.jsx)(i.olH,{}),(0,s.jsxs)(i.fef,{children:[(0,s.jsxs)(i.bZj,{status:"warning",overflow:"visible",colorScheme:"warn",marginBottom:4,children:[(0,s.jsx)(i.zMQ,{}),(0,s.jsxs)(i.XaZ,{children:[(0,s.jsx)(i.xvT,{as:"span",mb:2,children:"You are about to delete the user\xa0"}),(0,s.jsxs)(i.xvT,{as:"span",mb:2,fontStyle:"italic",fontWeight:"semibold",children:[n.username,"."]}),(0,s.jsx)(i.xvT,{mb:2,children:"This action cannot be undone. To confirm, please enter the user’s username below."})]})]}),(0,s.jsx)(i.Kqy,{direction:"column",spacing:4,children:(0,s.jsx)(c.j0,{name:"usernameConfirmation",label:"Confirm username",placeholder:"Type the username to delete"})})]}),(0,s.jsx)(i.mzw,{children:(0,s.jsxs)("div",{className:"flex w-full gap-2",children:[(0,s.jsx)(i.wpx,{onClick:l,className:"w-1/2",children:"Cancel"}),(0,s.jsx)(i.wpx,{type:"primary",disabled:!a||!o,loading:t,htmlType:"submit",className:"w-1/2","data-testid":"submit-btn",children:"Delete User"})]})})]})}})})]})}},91437:function(e,n,t){t.d(n,{K:function(){return i}});var s=t(54682);let i=[{label:"Owner",permissions_label:"Owner",roleKey:s.A7.OWNER,description:"Owners have view and edit access to the whole organization and can create new users"},{label:"Contributor",permissions_label:"Contributor",roleKey:s.A7.CONTRIBUTOR,description:"Contributors can create new users and have view and edit access to the whole organization. Contributors cannot configure storage and messaging services"},{label:"Viewer",permissions_label:"Viewer",roleKey:s.A7.VIEWER,description:"Viewers have view access to the Data Map and all systems"},{label:"Viewer & Approver",permissions_label:"Viewer & Approver",roleKey:s.A7.VIEWER_AND_APPROVER,description:"Viewer & Approvers have view access to the Data Map but can also manage Privacy Requests"},{label:"Approver",permissions_label:"Approver",roleKey:s.A7.APPROVER,description:"Approvers can only access the Privacy Requests portal to manage requests"},{label:"Internal respondent",permissions_label:"Internal respondent",roleKey:s.A7.RESPONDENT,description:"Internal respondents have limited access and can only view and complete manual DSR tasks assigned to them"},{label:"External respondent",permissions_label:"External respondent",roleKey:s.A7.EXTERNAL_RESPONDENT,description:"External respondents can only access the external task portal to complete manual DSR tasks assigned to them"}]}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7630],{77213:function(e,t,n){n.d(t,{Z:function(){return p}});var r=n(24246),i=n(13577),s=n(88038),a=n.n(s),l=n(86677);n(27378);var o=n(25980),c=n(90867),u=n(77830),d=()=>{let e=(0,l.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(u.fz)},children:"Configure"})]}),(0,r.jsxs)(i.xvT,{children:["Before Fides can process your privacy requests we need two simple steps to configure your storage and email client."," "]})]})})},p=e=>{let{children:t,title:n,padded:s=!0,mainProps:u}=e,p=(0,o.hz)(),m=(0,l.useRouter)(),g="/privacy-requests"===m.pathname||"/datastore-connection"===m.pathname,x=!(p.flags.privacyRequestsConfiguration&&g),{data:f}=(0,c.JE)(void 0,{skip:x}),{data:h}=(0,c.PW)(void 0,{skip:x}),v=p.flags.privacyRequestsConfiguration&&(!f||!h)&&g;return(0,r.jsxs)(i.kCb,{"data-testid":n,direction:"column",h:"100vh",children:[(0,r.jsxs)(a(),{children:[(0,r.jsxs)("title",{children:["Fides Admin UI - ",n]}),(0,r.jsx)("meta",{name:"description",content:"Privacy Engineering Platform"}),(0,r.jsx)("link",{rel:"icon",href:"/favicon.ico"})]}),(0,r.jsxs)(i.kCb,{as:"main",direction:"column",py:s?6:0,px:s?10:0,h:s?"calc(100% - 48px)":"full",flex:1,minWidth:0,overflow:"auto",...u,children:[v?(0,r.jsx)(d,{}):null,t]})]})}},58754:function(e,t,n){var r=n(24246),i=n(13577),s=n(70788);t.Z=e=>{let{heading:t,breadcrumbItems:n,isSticky:a=!0,children:l,rightContent:o,style:c,...u}=e;return(0,r.jsxs)("div",{...u,style:a?{position:"sticky",top:"-24px",paddingTop:"24px",paddingBottom:"24px",paddingLeft:"40px",marginLeft:"-40px",paddingRight:"40px",marginRight:"-40px",marginTop:"-24px",left:0,zIndex:20,backgroundColor:"white",...c}:{paddingBottom:"24px",...c},children:[(0,r.jsxs)(i.jqI,{justify:"space-between",children:["string"==typeof t?(0,r.jsx)(i.lQT,{className:n||l?"pb-4":void 0,level:1,"data-testid":"page-heading",children:t}):t,o&&(0,r.jsx)("div",{"data-testid":"page-header-right-content",children:o})]}),!!n&&(0,r.jsx)(s.m,{className:l?"pb-4":void 0,items:n,"data-testid":"page-breadcrumb"}),l]})}},51472:function(e,t,n){var r=n(24246),i=n(13577),s=n(47397),a=n(7078),l=n(18397),o=n(11055),c=n(27378),u=n(40324),d=n(46238);let p=e=>{let{item:t,label:n,draggable:l,onDeleteItem:o,onEditItem:c,tooltip:u,onRowClick:p,maxH:m=10,rowTestId:g}=e,x=(0,s.o)(),f=(0,r.jsxs)(i.kCb,{direction:"row",gap:2,maxH:m,w:"full",px:2,align:"center",role:"group",className:"group",borderY:"1px",my:"-1px",borderColor:"gray.200",_hover:p?{bgColor:"gray.100"}:void 0,bgColor:"white",position:"relative",children:[l&&(0,r.jsx)(i.VVU,{onPointerDown:e=>x.start(e),cursor:"grab"}),(0,r.jsxs)(i.kCb,{direction:"row",gap:2,p:2,align:"center",w:"full",cursor:p?"pointer":"auto",onClick:()=>{p&&p(t)},overflow:"clip","data-testid":g,children:[(0,r.jsx)(i.xvT,{fontSize:"sm",userSelect:"none",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden",children:n}),(0,r.jsx)(d.b,{label:u})]}),(0,r.jsxs)(i.vyj,{className:"invisible absolute right-2 bg-white group-hover:visible",children:[c&&(0,r.jsx)(i.wpx,{"aria-label":"Edit",onClick:()=>c(t),icon:(0,r.jsx)(i.PJP.I8b,{}),size:"small","data-testid":"edit-".concat(g)}),o&&(0,r.jsx)(i.wpx,{"aria-label":"Delete",onClick:()=>o(t),icon:(0,r.jsx)(i.PJP.ZNm,{}),size:"small","data-testid":"delete-".concat(g)})]})]});return l?(0,r.jsx)(a.e,{value:t,dragListener:!1,dragControls:x,children:f}):f},m=e=>{let{label:t,options:n,onOptionSelected:s,baseTestId:a}=e,[l,o]=(0,c.useState)(!1),[u,d]=(0,c.useState)(void 0);return l?(0,r.jsx)(i.xuv,{w:"full",children:(0,r.jsx)(i.WPr,{labelInValue:!0,placeholder:"Select...",filterOption:(e,t)=>{var n;return(null!==(n=null==t?void 0:t.label)&&void 0!==n?n:"").toLowerCase().includes(e.toLowerCase())},value:u,options:n,onChange:e=>{s(e),o(!1),d(void 0)},className:"w-full","data-testid":"select-".concat(a)})}):(0,r.jsx)(i.wpx,{onClick:()=>o(!0),"data-testid":"add-".concat(a),block:!0,icon:(0,r.jsx)(i.jBn,{boxSize:4}),iconPosition:"end",children:t})};t.Z=e=>{let{label:t,tooltip:n,draggable:s,addButtonLabel:a,allItems:c,idField:g,nameField:x=g,values:f,setValues:h,canDeleteItem:v,getTooltip:y,onRowClick:b,onEditItem:j,selectOnAdd:E,getItemLabel:C,createNewValue:T,maxHeight:w=36,baseTestId:_}=e,R=e=>e instanceof Object&&g&&g in e?e[g]:e,I=c.every(e=>"string"==typeof e)?c.filter(e=>f.every(t=>t!==e)):c.filter(e=>f.every(t=>R(t)!==R(e))),S=e=>{h(f.filter(t=>t!==e).slice())},P=null!=C?C:e=>e instanceof Object&&g&&g in e?x&&x in e?e[x]:e[g]:e,q=e=>{let t=e instanceof Object&&g&&g in e?e[g]:e;return{label:P(e),value:t}},k=e=>c.every(e=>"string"==typeof e)?e.value:c.find(t=>t[g]===e.value),A=e=>{let t=T?T(e):k(e);h([t,...f.slice()]),E&&b&&b(t),E&&j&&j(t)},M={border:"1px",borderColor:"gray.200",borderRadius:"md",w:"full",maxH:"8.5rem",overflowY:"auto"},V=s?(0,r.jsx)(i.xuv,{as:l.E.div,layoutScroll:!0,...M,children:(0,r.jsx)(o.M,{values:f,onReorder:e=>h(e.slice()),children:f.map(e=>{let t=R(e);return(0,r.jsx)(p,{item:e,label:P(e),onDeleteItem:!v||v&&v(e)?S:void 0,onEditItem:j,onRowClick:b,draggable:!0,maxH:w,rowTestId:"".concat(_,"-row-").concat(t),tooltip:y&&y(e)?y(e):void 0},t)})})}):(0,r.jsx)(i.xuv,{...M,children:(0,r.jsx)(i.aVo,{children:f.map(e=>{let t=R(e);return(0,r.jsx)(p,{item:e,label:P(e),onRowClick:b,onDeleteItem:S,tooltip:y&&y(e)?y(e):void 0,maxH:w,rowTestId:"".concat(_,"-row-").concat(t)},t)})})});return f.length?(0,r.jsxs)(i.kCb,{align:"start",direction:"column",w:"full",gap:4,children:[t?(0,r.jsx)(u.__,{htmlFor:"test",fontSize:"xs",my:0,mr:1,children:t}):null,(0,r.jsx)(d.b,{label:n}),V,I.length?(0,r.jsx)(m,{label:null!=a?a:"Add new",options:I.map(e=>q(e)),onOptionSelected:A,baseTestId:_}):null]}):(0,r.jsx)(m,{label:null!=a?a:"Add new",options:I.map(e=>q(e)),onOptionSelected:A,baseTestId:_})}},10342:function(e,t,n){var r=n(24246),i=n(13577),s=n(46238);t.Z=e=>{let{title:t,tooltip:n,children:a,...l}=e;return(0,r.jsxs)(i.xuv,{borderRadius:"md",border:"1px solid",borderColor:"gray.200",...l,children:[(0,r.jsxs)(i.X6q,{as:"h3",fontSize:"sm",fontWeight:"semibold",color:"gray.700",py:4,px:6,backgroundColor:"gray.50",borderRadius:"md",textAlign:"left",children:[t,n?(0,r.jsx)(i.xvT,{as:"span",mx:1,children:(0,r.jsx)(s.b,{label:n})}):void 0]}),(0,r.jsx)(i.Kqy,{p:6,spacing:6,children:a})]})}},70788:function(e,t,n){n.d(t,{m:function(){return c}});var r=n(24246),i=n(13577),s=n(79894),a=n.n(s),l=n(27378);let{Text:o}=i.AntTypography,c=e=>{let{items:t,...n}=e,s=(0,l.useMemo)(()=>null==t?void 0:t.map((e,n)=>{let s=n===t.length-1,l={...e},c=l.onClick&&!l.href;return("string"==typeof l.title&&(l.title=(0,r.jsx)(o,{style:{color:"inherit",maxWidth:s?void 0:400},ellipsis:!s,children:l.title})),c)?l.title=(0,r.jsx)(i.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,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("span",{className:"anticon align-text-bottom",children:l.icon}),l.title]})),l.href&&l.title&&(l.title=(0,r.jsx)(a(),{href:l.href,className:"ant-breadcrumb-link",children:l.title}),delete l.href)),l}),[t]);return(0,r.jsx)(i.zrq,{items:s,...n})}},67810:function(e,t,n){n.d(t,{Z:function(){return s}}),(r=i||(i={})).PRIVACY_REQUEST_REVIEW_APPROVE="privacy_request_review_approve",r.PRIVACY_REQUEST_REVIEW_DENY="privacy_request_review_deny",r.PRIVACY_REQUEST_RECEIPT="privacy_request_receipt",r.PRIVACY_REQUEST_COMPLETE_ACCESS="privacy_request_complete_access",r.PRIVACY_REQUEST_COMPLETE_DELETION="privacy_request_complete_deletion",r.SUBJECT_IDENTITY_VERIFICATION="subject_identity_verification";var r,i,s={[i.PRIVACY_REQUEST_COMPLETE_ACCESS]:"Access request completed",[i.PRIVACY_REQUEST_COMPLETE_DELETION]:"Erasure request completed",[i.PRIVACY_REQUEST_RECEIPT]:"Privacy request received",[i.PRIVACY_REQUEST_REVIEW_APPROVE]:"Privacy request approved",[i.PRIVACY_REQUEST_REVIEW_DENY]:"Privacy request denied",[i.SUBJECT_IDENTITY_VERIFICATION]:"Subject identity verification"}},20149:function(e,t,n){var r=n(24246),i=n(77830),s=n(13577),a=n(34090),l=n(86677),o=n(16134),c=n(10342),u=n(40324),d=n(51472),p=n(67810),m=n(64826);let g=()=>{var e;let t=(0,o.C)(m.Zp),n=(0,o.C)(m.G1);(0,m.gz)({page:t,size:n});let i=(0,o.C)(m.YO),{values:s,setFieldValue:l}=(0,a.u6)();return(0,r.jsx)(d.Z,{label:"Associated properties",addButtonLabel:"Add property",idField:"id",nameField:"name",allItems:i.map(e=>({id:e.id,name:e.name})),values:null!==(e=s.properties)&&void 0!==e?e:[],setValues:e=>l("properties",e),draggable:!0,maxHeight:100,baseTestId:"property"})};t.Z=e=>{let{template:t,handleSubmit:n,handleDelete:o}=e,d=(0,l.useRouter)(),m=()=>{d.push(i.q)},x={type:t.type,content:t.content,properties:t.properties||[],is_enabled:t.is_enabled,id:t.id||""};return(0,r.jsx)(a.J9,{enableReinitialize:!0,initialValues:x,onSubmit:n,children:e=>{let{dirty:t,isValid:n,isSubmitting:i}=e;return(0,r.jsxs)(a.l0,{style:{paddingTop:"12px",paddingBottom:"12px"},children:[(0,r.jsx)(s.xuv,{py:3,children:(0,r.jsxs)(c.Z,{title:"".concat(p.Z[x.type]),children:[(0,r.jsx)(u.j0,{isRequired:!0,label:"Email subject",name:"content.subject",variant:"stacked"}),(0,r.jsx)(u.Ks,{isRequired:!0,label:"Message body",name:"content.body",value:"test",variant:"stacked",resize:!0}),(0,r.jsx)(s.xuv,{py:3,children:(0,r.jsx)(g,{})}),(0,r.jsx)(u.w8,{name:"is_enabled",label:"Enable message",variant:"switchFirst"})]})}),(0,r.jsxs)(s.kCb,{justifyContent:"space-between",width:"100%",paddingTop:2,children:[x.id&&o&&(0,r.jsx)(s.wpx,{"data-testid":"delete-template-button",loading:!1,className:"mr-3",onClick:o,children:"Delete"}),(0,r.jsxs)(s.kCb,{justifyContent:"right",width:"100%",paddingTop:2,children:[(0,r.jsx)(s.wpx,{loading:!1,className:"mr-3",onClick:m,children:"Cancel"}),(0,r.jsx)(s.wpx,{htmlType:"submit",type:"primary",disabled:i||!t||!n,loading:i,"data-testid":"submit-btn",children:"Save"})]})]})]})}})}},5058:function(e,t,n){n.d(t,{Vw:function(){return s},ms:function(){return r},pS:function(){return i},vm:function(){return a}});let{useGetSummaryMessagingTemplatesQuery:r,usePutMessagingTemplateByIdMutation:i,useCreateMessagingTemplateByTypeMutation:s,usePatchMessagingTemplateByIdMutation:a}=n(78780).u.injectEndpoints({endpoints:e=>({getSummaryMessagingTemplates:e.query({query:e=>({method:"GET",url:"plus/messaging/templates/summary",params:e}),providesTags:()=>["Property-Specific Messaging Templates"]}),putMessagingTemplateById:e.mutation({query:e=>{let{templateId:t,template:n}=e;return{url:"plus/messaging/templates/".concat(t),method:"PUT",body:n}},invalidatesTags:()=>["Property-Specific Messaging Templates"]}),patchMessagingTemplateById:e.mutation({query:e=>{let{templateId:t,template:n}=e;return{url:"plus/messaging/templates/".concat(t),method:"PATCH",body:n}},invalidatesTags:()=>["Property-Specific Messaging Templates"]}),createMessagingTemplateByType:e.mutation({query:e=>{let{templateType:t,template:n}=e;return{url:"plus/messaging/templates/".concat(t),method:"POST",body:n}},invalidatesTags:()=>["Property-Specific Messaging Templates"]})})})},47466:function(e,t,n){n.d(t,{KC:function(){return a},ew:function(){return l},gQ:function(){return s},jM:function(){return r},lE:function(){return i}});let{useGetMessagingTemplatesQuery:r,useUpdateMessagingTemplatesMutation:i,useGetMessagingTemplateByIdQuery:s,useGetMessagingTemplateDefaultQuery:a,useDeleteMessagingTemplateByIdMutation:l}=n(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"]})})})},31883:function(e,t,n){n.d(t,{Bw:function(){return r.Bw},D4:function(){return r.D4}});var r=n(19043)},11055:function(e,t,n){n.d(t,{M:function(){return d}});var r=n(24246),i=n(29427),s=n(27378),a=n(40976),l=n(18397),o=n(42308),c=n(25431),u=n(39556);let d=(0,s.forwardRef)(function({children:e,as:t="ul",axis:n="y",onReorder:d,values:g,...x},f){let h=(0,o.h)(()=>l.E[t]),v=[],y=(0,s.useRef)(!1);return(0,i.k)(!!g,"Reorder.Group must be provided a values prop"),(0,s.useEffect)(()=>{y.current=!1}),(0,r.jsx)(h,{...x,ref:f,ignoreStrict:!0,children:(0,r.jsx)(a.Y.Provider,{value:{axis:n,registerItem:(e,t)=>{let r=v.findIndex(t=>e===t.value);-1!==r?v[r].layout=t[n]:v.push({value:e,layout:t[n]}),v.sort(m)},updateOrder:(e,t,n)=>{if(y.current)return;let r=function(e,t,n,r){if(!r)return e;let i=e.findIndex(e=>e.value===t);if(-1===i)return e;let s=r>0?1:-1,a=e[i+s];if(!a)return e;let l=e[i],o=a.layout,d=(0,u.t)(o.min,o.max,.5);return 1===s&&l.layout.max+n>d||-1===s&&l.layout.min+n<d?(0,c.uo)(e,i,i+s):e}(v,e,t,n);v!==r&&(y.current=!0,d(r.map(p).filter(e=>-1!==g.indexOf(e))))}},children:e})})});function p(e){return e.value}function m(e,t){return e.layout.min-t.layout.min}},7078:function(e,t,n){n.d(t,{e:function(){return j}});var r=n(24246),i=n(29427),s=n(27378),a=n(40976),l=n(18397),o=n(42308),c=n(69222),u=n(67412);function d(e){let t=(0,o.h)(()=>(0,c.BX)(e)),{isStatic:n}=(0,s.useContext)(u._);if(n){let[,n]=(0,s.useState)(e);(0,s.useEffect)(()=>t.on("change",n),[])}return t}var p=n(13998);let m=e=>e&&"object"==typeof e&&e.mix,g=e=>m(e)?e.mix:void 0;var x=n(64306),f=n(95984);function h(e,t){let n=d(t()),r=()=>n.set(t());return r(),(0,x.L)(()=>{let t=()=>f.Wi.preRender(r,!1,!0),n=e.map(e=>e.on("change",t));return()=>{n.forEach(e=>e()),(0,f.Pn)(r)}}),n}function v(e,t){let n=(0,o.h)(()=>[]);return h(e,()=>{n.length=0;let r=e.length;for(let t=0;t<r;t++)n[t]=e[t].get();return t(n)})}var y=n(3522);function b(e,t=0){return(0,y.i)(e)?e:d(t)}let j=(0,s.forwardRef)(function({children:e,style:t={},value:n,as:u="li",onDrag:d,layout:m=!0,...x},f){let y=(0,o.h)(()=>l.E[u]),j=(0,s.useContext)(a.Y),E={x:b(t.x),y:b(t.y)},C=function(e,t,n,r){if("function"==typeof e)return function(e){c.S1.current=[],e();let t=h(c.S1.current,e);return c.S1.current=void 0,t}(e);let i="function"==typeof t?t:function(...e){let t=!Array.isArray(e[0]),n=t?0:-1,r=e[0+n],i=e[1+n],s=e[2+n],a=e[3+n],l=(0,p.s)(i,s,{mixer:g(s[0]),...a});return t?l(r):l}(t,void 0,void 0);return Array.isArray(e)?v(e,i):v([e],([e])=>i(e))}([E.x,E.y],([e,t])=>e||t?1:"unset");(0,i.k)(!!j,"Reorder.Item must be a child of Reorder.Group");let{axis:T,registerItem:w,updateOrder:_}=j;return(0,r.jsx)(y,{drag:T,...x,dragSnapToOrigin:!0,style:{...t,x:E.x,y:E.y,zIndex:C},layout:m,onDrag:(e,t)=>{let{velocity:r}=t;r[T]&&_(n,E[T].get(),r[T]),d&&d(e,t)},onLayoutMeasure:e=>w(n,e),ref:f,ignoreStrict:!0,children:e})})},40976:function(e,t,n){n.d(t,{Y:function(){return r}});let r=(0,n(27378).createContext)(null)},47397:function(e,t,n){n.d(t,{o:function(){return a}});var r=n(42308);class i{constructor(){this.componentControls=new Set}subscribe(e){return this.componentControls.add(e),()=>this.componentControls.delete(e)}start(e,t){this.componentControls.forEach(n=>{n.start(e.nativeEvent||e,t)})}}let s=()=>new i;function a(){return(0,r.h)(s)}}}]);
|
|
1
|
+
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7630],{77213:function(e,t,n){n.d(t,{Z:function(){return p}});var r=n(24246),i=n(27824),s=n(88038),a=n.n(s),l=n(86677);n(27378);var o=n(25980),c=n(90867),u=n(77830),d=()=>{let e=(0,l.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(u.fz)},children:"Configure"})]}),(0,r.jsxs)(i.xvT,{children:["Before Fides can process your privacy requests we need two simple steps to configure your storage and email client."," "]})]})})},p=e=>{let{children:t,title:n,padded:s=!0,mainProps:u}=e,p=(0,o.hz)(),m=(0,l.useRouter)(),g="/privacy-requests"===m.pathname||"/datastore-connection"===m.pathname,x=!(p.flags.privacyRequestsConfiguration&&g),{data:f}=(0,c.JE)(void 0,{skip:x}),{data:h}=(0,c.PW)(void 0,{skip:x}),v=p.flags.privacyRequestsConfiguration&&(!f||!h)&&g;return(0,r.jsxs)(i.kCb,{"data-testid":n,direction:"column",h:"100vh",children:[(0,r.jsxs)(a(),{children:[(0,r.jsxs)("title",{children:["Fides Admin UI - ",n]}),(0,r.jsx)("meta",{name:"description",content:"Privacy Engineering Platform"}),(0,r.jsx)("link",{rel:"icon",href:"/favicon.ico"})]}),(0,r.jsxs)(i.kCb,{as:"main",direction:"column",py:s?6:0,px:s?10:0,h:s?"calc(100% - 48px)":"full",flex:1,minWidth:0,overflow:"auto",...u,children:[v?(0,r.jsx)(d,{}):null,t]})]})}},58754:function(e,t,n){var r=n(24246),i=n(27824),s=n(70788);t.Z=e=>{let{heading:t,breadcrumbItems:n,isSticky:a=!0,children:l,rightContent:o,style:c,...u}=e;return(0,r.jsxs)("div",{...u,style:a?{position:"sticky",top:"-24px",paddingTop:"24px",paddingBottom:"24px",paddingLeft:"40px",marginLeft:"-40px",paddingRight:"40px",marginRight:"-40px",marginTop:"-24px",left:0,zIndex:20,backgroundColor:"white",...c}:{paddingBottom:"24px",...c},children:[(0,r.jsxs)(i.jqI,{justify:"space-between",children:["string"==typeof t?(0,r.jsx)(i.lQT,{className:n||l?"pb-4":void 0,level:1,"data-testid":"page-heading",children:t}):t,o&&(0,r.jsx)("div",{"data-testid":"page-header-right-content",children:o})]}),!!n&&(0,r.jsx)(s.m,{className:l?"pb-4":void 0,items:n,"data-testid":"page-breadcrumb"}),l]})}},51472:function(e,t,n){var r=n(24246),i=n(27824),s=n(47397),a=n(7078),l=n(18397),o=n(11055),c=n(27378),u=n(40324),d=n(46238);let p=e=>{let{item:t,label:n,draggable:l,onDeleteItem:o,onEditItem:c,tooltip:u,onRowClick:p,maxH:m=10,rowTestId:g}=e,x=(0,s.o)(),f=(0,r.jsxs)(i.kCb,{direction:"row",gap:2,maxH:m,w:"full",px:2,align:"center",role:"group",className:"group",borderY:"1px",my:"-1px",borderColor:"gray.200",_hover:p?{bgColor:"gray.100"}:void 0,bgColor:"white",position:"relative",children:[l&&(0,r.jsx)(i.VVU,{onPointerDown:e=>x.start(e),cursor:"grab"}),(0,r.jsxs)(i.kCb,{direction:"row",gap:2,p:2,align:"center",w:"full",cursor:p?"pointer":"auto",onClick:()=>{p&&p(t)},overflow:"clip","data-testid":g,children:[(0,r.jsx)(i.xvT,{fontSize:"sm",userSelect:"none",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden",children:n}),(0,r.jsx)(d.b,{label:u})]}),(0,r.jsxs)(i.vyj,{className:"invisible absolute right-2 bg-white group-hover:visible",children:[c&&(0,r.jsx)(i.wpx,{"aria-label":"Edit",onClick:()=>c(t),icon:(0,r.jsx)(i.PJP.I8b,{}),size:"small","data-testid":"edit-".concat(g)}),o&&(0,r.jsx)(i.wpx,{"aria-label":"Delete",onClick:()=>o(t),icon:(0,r.jsx)(i.PJP.ZNm,{}),size:"small","data-testid":"delete-".concat(g)})]})]});return l?(0,r.jsx)(a.e,{value:t,dragListener:!1,dragControls:x,children:f}):f},m=e=>{let{label:t,options:n,onOptionSelected:s,baseTestId:a}=e,[l,o]=(0,c.useState)(!1),[u,d]=(0,c.useState)(void 0);return l?(0,r.jsx)(i.xuv,{w:"full",children:(0,r.jsx)(i.WPr,{labelInValue:!0,placeholder:"Select...",filterOption:(e,t)=>{var n;return(null!==(n=null==t?void 0:t.label)&&void 0!==n?n:"").toLowerCase().includes(e.toLowerCase())},value:u,options:n,onChange:e=>{s(e),o(!1),d(void 0)},className:"w-full","data-testid":"select-".concat(a)})}):(0,r.jsx)(i.wpx,{onClick:()=>o(!0),"data-testid":"add-".concat(a),block:!0,icon:(0,r.jsx)(i.jBn,{boxSize:4}),iconPosition:"end",children:t})};t.Z=e=>{let{label:t,tooltip:n,draggable:s,addButtonLabel:a,allItems:c,idField:g,nameField:x=g,values:f,setValues:h,canDeleteItem:v,getTooltip:y,onRowClick:b,onEditItem:j,selectOnAdd:E,getItemLabel:C,createNewValue:T,maxHeight:w=36,baseTestId:_}=e,R=e=>e instanceof Object&&g&&g in e?e[g]:e,I=c.every(e=>"string"==typeof e)?c.filter(e=>f.every(t=>t!==e)):c.filter(e=>f.every(t=>R(t)!==R(e))),S=e=>{h(f.filter(t=>t!==e).slice())},P=null!=C?C:e=>e instanceof Object&&g&&g in e?x&&x in e?e[x]:e[g]:e,q=e=>{let t=e instanceof Object&&g&&g in e?e[g]:e;return{label:P(e),value:t}},k=e=>c.every(e=>"string"==typeof e)?e.value:c.find(t=>t[g]===e.value),A=e=>{let t=T?T(e):k(e);h([t,...f.slice()]),E&&b&&b(t),E&&j&&j(t)},M={border:"1px",borderColor:"gray.200",borderRadius:"md",w:"full",maxH:"8.5rem",overflowY:"auto"},V=s?(0,r.jsx)(i.xuv,{as:l.E.div,layoutScroll:!0,...M,children:(0,r.jsx)(o.M,{values:f,onReorder:e=>h(e.slice()),children:f.map(e=>{let t=R(e);return(0,r.jsx)(p,{item:e,label:P(e),onDeleteItem:!v||v&&v(e)?S:void 0,onEditItem:j,onRowClick:b,draggable:!0,maxH:w,rowTestId:"".concat(_,"-row-").concat(t),tooltip:y&&y(e)?y(e):void 0},t)})})}):(0,r.jsx)(i.xuv,{...M,children:(0,r.jsx)(i.aVo,{children:f.map(e=>{let t=R(e);return(0,r.jsx)(p,{item:e,label:P(e),onRowClick:b,onDeleteItem:S,tooltip:y&&y(e)?y(e):void 0,maxH:w,rowTestId:"".concat(_,"-row-").concat(t)},t)})})});return f.length?(0,r.jsxs)(i.kCb,{align:"start",direction:"column",w:"full",gap:4,children:[t?(0,r.jsx)(u.__,{htmlFor:"test",fontSize:"xs",my:0,mr:1,children:t}):null,(0,r.jsx)(d.b,{label:n}),V,I.length?(0,r.jsx)(m,{label:null!=a?a:"Add new",options:I.map(e=>q(e)),onOptionSelected:A,baseTestId:_}):null]}):(0,r.jsx)(m,{label:null!=a?a:"Add new",options:I.map(e=>q(e)),onOptionSelected:A,baseTestId:_})}},10342:function(e,t,n){var r=n(24246),i=n(27824),s=n(46238);t.Z=e=>{let{title:t,tooltip:n,children:a,...l}=e;return(0,r.jsxs)(i.xuv,{borderRadius:"md",border:"1px solid",borderColor:"gray.200",...l,children:[(0,r.jsxs)(i.X6q,{as:"h3",fontSize:"sm",fontWeight:"semibold",color:"gray.700",py:4,px:6,backgroundColor:"gray.50",borderRadius:"md",textAlign:"left",children:[t,n?(0,r.jsx)(i.xvT,{as:"span",mx:1,children:(0,r.jsx)(s.b,{label:n})}):void 0]}),(0,r.jsx)(i.Kqy,{p:6,spacing:6,children:a})]})}},70788:function(e,t,n){n.d(t,{m:function(){return c}});var r=n(24246),i=n(27824),s=n(79894),a=n.n(s),l=n(27378);let{Text:o}=i.AntTypography,c=e=>{let{items:t,...n}=e,s=(0,l.useMemo)(()=>null==t?void 0:t.map((e,n)=>{let s=n===t.length-1,l={...e},c=l.onClick&&!l.href;return("string"==typeof l.title&&(l.title=(0,r.jsx)(o,{style:{color:"inherit",maxWidth:s?void 0:400},ellipsis:!s,children:l.title})),c)?l.title=(0,r.jsx)(i.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,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("span",{className:"anticon align-text-bottom",children:l.icon}),l.title]})),l.href&&l.title&&(l.title=(0,r.jsx)(a(),{href:l.href,className:"ant-breadcrumb-link",children:l.title}),delete l.href)),l}),[t]);return(0,r.jsx)(i.zrq,{items:s,...n})}},67810:function(e,t,n){n.d(t,{Z:function(){return s}}),(r=i||(i={})).PRIVACY_REQUEST_REVIEW_APPROVE="privacy_request_review_approve",r.PRIVACY_REQUEST_REVIEW_DENY="privacy_request_review_deny",r.PRIVACY_REQUEST_RECEIPT="privacy_request_receipt",r.PRIVACY_REQUEST_COMPLETE_ACCESS="privacy_request_complete_access",r.PRIVACY_REQUEST_COMPLETE_DELETION="privacy_request_complete_deletion",r.SUBJECT_IDENTITY_VERIFICATION="subject_identity_verification";var r,i,s={[i.PRIVACY_REQUEST_COMPLETE_ACCESS]:"Access request completed",[i.PRIVACY_REQUEST_COMPLETE_DELETION]:"Erasure request completed",[i.PRIVACY_REQUEST_RECEIPT]:"Privacy request received",[i.PRIVACY_REQUEST_REVIEW_APPROVE]:"Privacy request approved",[i.PRIVACY_REQUEST_REVIEW_DENY]:"Privacy request denied",[i.SUBJECT_IDENTITY_VERIFICATION]:"Subject identity verification"}},20149:function(e,t,n){var r=n(24246),i=n(77830),s=n(27824),a=n(34090),l=n(86677),o=n(16134),c=n(10342),u=n(40324),d=n(51472),p=n(67810),m=n(64826);let g=()=>{var e;let t=(0,o.C)(m.Zp),n=(0,o.C)(m.G1);(0,m.gz)({page:t,size:n});let i=(0,o.C)(m.YO),{values:s,setFieldValue:l}=(0,a.u6)();return(0,r.jsx)(d.Z,{label:"Associated properties",addButtonLabel:"Add property",idField:"id",nameField:"name",allItems:i.map(e=>({id:e.id,name:e.name})),values:null!==(e=s.properties)&&void 0!==e?e:[],setValues:e=>l("properties",e),draggable:!0,maxHeight:100,baseTestId:"property"})};t.Z=e=>{let{template:t,handleSubmit:n,handleDelete:o}=e,d=(0,l.useRouter)(),m=()=>{d.push(i.q)},x={type:t.type,content:t.content,properties:t.properties||[],is_enabled:t.is_enabled,id:t.id||""};return(0,r.jsx)(a.J9,{enableReinitialize:!0,initialValues:x,onSubmit:n,children:e=>{let{dirty:t,isValid:n,isSubmitting:i}=e;return(0,r.jsxs)(a.l0,{style:{paddingTop:"12px",paddingBottom:"12px"},children:[(0,r.jsx)(s.xuv,{py:3,children:(0,r.jsxs)(c.Z,{title:"".concat(p.Z[x.type]),children:[(0,r.jsx)(u.j0,{isRequired:!0,label:"Email subject",name:"content.subject",variant:"stacked"}),(0,r.jsx)(u.Ks,{isRequired:!0,label:"Message body",name:"content.body",value:"test",variant:"stacked",resize:!0}),(0,r.jsx)(s.xuv,{py:3,children:(0,r.jsx)(g,{})}),(0,r.jsx)(u.w8,{name:"is_enabled",label:"Enable message",variant:"switchFirst"})]})}),(0,r.jsxs)(s.kCb,{justifyContent:"space-between",width:"100%",paddingTop:2,children:[x.id&&o&&(0,r.jsx)(s.wpx,{"data-testid":"delete-template-button",loading:!1,className:"mr-3",onClick:o,children:"Delete"}),(0,r.jsxs)(s.kCb,{justifyContent:"right",width:"100%",paddingTop:2,children:[(0,r.jsx)(s.wpx,{loading:!1,className:"mr-3",onClick:m,children:"Cancel"}),(0,r.jsx)(s.wpx,{htmlType:"submit",type:"primary",disabled:i||!t||!n,loading:i,"data-testid":"submit-btn",children:"Save"})]})]})]})}})}},5058:function(e,t,n){n.d(t,{Vw:function(){return s},ms:function(){return r},pS:function(){return i},vm:function(){return a}});let{useGetSummaryMessagingTemplatesQuery:r,usePutMessagingTemplateByIdMutation:i,useCreateMessagingTemplateByTypeMutation:s,usePatchMessagingTemplateByIdMutation:a}=n(78780).u.injectEndpoints({endpoints:e=>({getSummaryMessagingTemplates:e.query({query:e=>({method:"GET",url:"plus/messaging/templates/summary",params:e}),providesTags:()=>["Property-Specific Messaging Templates"]}),putMessagingTemplateById:e.mutation({query:e=>{let{templateId:t,template:n}=e;return{url:"plus/messaging/templates/".concat(t),method:"PUT",body:n}},invalidatesTags:()=>["Property-Specific Messaging Templates"]}),patchMessagingTemplateById:e.mutation({query:e=>{let{templateId:t,template:n}=e;return{url:"plus/messaging/templates/".concat(t),method:"PATCH",body:n}},invalidatesTags:()=>["Property-Specific Messaging Templates"]}),createMessagingTemplateByType:e.mutation({query:e=>{let{templateType:t,template:n}=e;return{url:"plus/messaging/templates/".concat(t),method:"POST",body:n}},invalidatesTags:()=>["Property-Specific Messaging Templates"]})})})},47466:function(e,t,n){n.d(t,{KC:function(){return a},ew:function(){return l},gQ:function(){return s},jM:function(){return r},lE:function(){return i}});let{useGetMessagingTemplatesQuery:r,useUpdateMessagingTemplatesMutation:i,useGetMessagingTemplateByIdQuery:s,useGetMessagingTemplateDefaultQuery:a,useDeleteMessagingTemplateByIdMutation:l}=n(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"]})})})},31883:function(e,t,n){n.d(t,{Bw:function(){return r.Bw},D4:function(){return r.D4}});var r=n(19043)},11055:function(e,t,n){n.d(t,{M:function(){return d}});var r=n(24246),i=n(29427),s=n(27378),a=n(40976),l=n(18397),o=n(42308),c=n(25431),u=n(39556);let d=(0,s.forwardRef)(function({children:e,as:t="ul",axis:n="y",onReorder:d,values:g,...x},f){let h=(0,o.h)(()=>l.E[t]),v=[],y=(0,s.useRef)(!1);return(0,i.k)(!!g,"Reorder.Group must be provided a values prop"),(0,s.useEffect)(()=>{y.current=!1}),(0,r.jsx)(h,{...x,ref:f,ignoreStrict:!0,children:(0,r.jsx)(a.Y.Provider,{value:{axis:n,registerItem:(e,t)=>{let r=v.findIndex(t=>e===t.value);-1!==r?v[r].layout=t[n]:v.push({value:e,layout:t[n]}),v.sort(m)},updateOrder:(e,t,n)=>{if(y.current)return;let r=function(e,t,n,r){if(!r)return e;let i=e.findIndex(e=>e.value===t);if(-1===i)return e;let s=r>0?1:-1,a=e[i+s];if(!a)return e;let l=e[i],o=a.layout,d=(0,u.t)(o.min,o.max,.5);return 1===s&&l.layout.max+n>d||-1===s&&l.layout.min+n<d?(0,c.uo)(e,i,i+s):e}(v,e,t,n);v!==r&&(y.current=!0,d(r.map(p).filter(e=>-1!==g.indexOf(e))))}},children:e})})});function p(e){return e.value}function m(e,t){return e.layout.min-t.layout.min}},7078:function(e,t,n){n.d(t,{e:function(){return j}});var r=n(24246),i=n(29427),s=n(27378),a=n(40976),l=n(18397),o=n(42308),c=n(69222),u=n(67412);function d(e){let t=(0,o.h)(()=>(0,c.BX)(e)),{isStatic:n}=(0,s.useContext)(u._);if(n){let[,n]=(0,s.useState)(e);(0,s.useEffect)(()=>t.on("change",n),[])}return t}var p=n(13998);let m=e=>e&&"object"==typeof e&&e.mix,g=e=>m(e)?e.mix:void 0;var x=n(64306),f=n(95984);function h(e,t){let n=d(t()),r=()=>n.set(t());return r(),(0,x.L)(()=>{let t=()=>f.Wi.preRender(r,!1,!0),n=e.map(e=>e.on("change",t));return()=>{n.forEach(e=>e()),(0,f.Pn)(r)}}),n}function v(e,t){let n=(0,o.h)(()=>[]);return h(e,()=>{n.length=0;let r=e.length;for(let t=0;t<r;t++)n[t]=e[t].get();return t(n)})}var y=n(3522);function b(e,t=0){return(0,y.i)(e)?e:d(t)}let j=(0,s.forwardRef)(function({children:e,style:t={},value:n,as:u="li",onDrag:d,layout:m=!0,...x},f){let y=(0,o.h)(()=>l.E[u]),j=(0,s.useContext)(a.Y),E={x:b(t.x),y:b(t.y)},C=function(e,t,n,r){if("function"==typeof e)return function(e){c.S1.current=[],e();let t=h(c.S1.current,e);return c.S1.current=void 0,t}(e);let i="function"==typeof t?t:function(...e){let t=!Array.isArray(e[0]),n=t?0:-1,r=e[0+n],i=e[1+n],s=e[2+n],a=e[3+n],l=(0,p.s)(i,s,{mixer:g(s[0]),...a});return t?l(r):l}(t,void 0,void 0);return Array.isArray(e)?v(e,i):v([e],([e])=>i(e))}([E.x,E.y],([e,t])=>e||t?1:"unset");(0,i.k)(!!j,"Reorder.Item must be a child of Reorder.Group");let{axis:T,registerItem:w,updateOrder:_}=j;return(0,r.jsx)(y,{drag:T,...x,dragSnapToOrigin:!0,style:{...t,x:E.x,y:E.y,zIndex:C},layout:m,onDrag:(e,t)=>{let{velocity:r}=t;r[T]&&_(n,E[T].get(),r[T]),d&&d(e,t)},onLayoutMeasure:e=>w(n,e),ref:f,ignoreStrict:!0,children:e})})},40976:function(e,t,n){n.d(t,{Y:function(){return r}});let r=(0,n(27378).createContext)(null)},47397:function(e,t,n){n.d(t,{o:function(){return a}});var r=n(42308);class i{constructor(){this.componentControls=new Set}subscribe(e){return this.componentControls.add(e),()=>this.componentControls.delete(e)}start(e,t){this.componentControls.forEach(n=>{n.start(e.nativeEvent||e,t)})}}let s=()=>new i;function a(){return(0,r.h)(s)}}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7725],{74833:function(t,e,r){var s=r(56127),n=/^\s+/;t.exports=function(t){return t?t.slice(0,s(t)+1).replace(n,""):t}},56127:function(t){var e=/\s/;t.exports=function(t){for(var r=t.length;r--&&e.test(t.charAt(r)););return r}},91936:function(t,e,r){var s=r(74833),n=r(11611),o=r(55193),i=0/0,u=/^[-+]0x[0-9a-f]+$/i,a=/^0b[01]+$/i,l=/^0o[0-7]+$/i,c=parseInt;t.exports=function(t){if("number"==typeof t)return t;if(o(t))return i;if(n(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=n(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=s(t);var r=a.test(t);return r||l.test(t)?c(t.slice(2),r?2:8):u.test(t)?i:+t}},58754:function(t,e,r){"use strict";var s=r(24246),n=r(
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7725],{74833:function(t,e,r){var s=r(56127),n=/^\s+/;t.exports=function(t){return t?t.slice(0,s(t)+1).replace(n,""):t}},56127:function(t){var e=/\s/;t.exports=function(t){for(var r=t.length;r--&&e.test(t.charAt(r)););return r}},91936:function(t,e,r){var s=r(74833),n=r(11611),o=r(55193),i=0/0,u=/^[-+]0x[0-9a-f]+$/i,a=/^0b[01]+$/i,l=/^0o[0-7]+$/i,c=parseInt;t.exports=function(t){if("number"==typeof t)return t;if(o(t))return i;if(n(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=n(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=s(t);var r=a.test(t);return r||l.test(t)?c(t.slice(2),r?2:8):u.test(t)?i:+t}},58754:function(t,e,r){"use strict";var s=r(24246),n=r(27824),o=r(70788);e.Z=t=>{let{heading:e,breadcrumbItems:r,isSticky:i=!0,children:u,rightContent:a,style:l,...c}=t;return(0,s.jsxs)("div",{...c,style:i?{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,s.jsxs)(n.jqI,{justify:"space-between",children:["string"==typeof e?(0,s.jsx)(n.lQT,{className:r||u?"pb-4":void 0,level:1,"data-testid":"page-heading",children:e}):e,a&&(0,s.jsx)("div",{"data-testid":"page-header-right-content",children:a})]}),!!r&&(0,s.jsx)(o.m,{className:u?"pb-4":void 0,items:r,"data-testid":"page-breadcrumb"}),u]})}},70788:function(t,e,r){"use strict";r.d(e,{m:function(){return l}});var s=r(24246),n=r(27824),o=r(79894),i=r.n(o),u=r(27378);let{Text:a}=n.AntTypography,l=t=>{let{items:e,...r}=t,o=(0,u.useMemo)(()=>null==e?void 0:e.map((t,r)=>{let o=r===e.length-1,u={...t},l=u.onClick&&!u.href;return("string"==typeof u.title&&(u.title=(0,s.jsx)(a,{style:{color:"inherit",maxWidth:o?void 0:400},ellipsis:!o,children:u.title})),l)?u.title=(0,s.jsx)(n.wpx,{type:"text",size:"small",icon:u.icon,onClick:u.onClick,className:"ant-breadcrumb-link -mt-px px-1 text-inherit",children:u.title}):(u.icon&&(u.title=(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("span",{className:"anticon align-text-bottom",children:u.icon}),u.title]})),u.href&&u.title&&(u.title=(0,s.jsx)(i(),{href:u.href,className:"ant-breadcrumb-link",children:u.title}),delete u.href)),u}),[e]);return(0,s.jsx)(n.zrq,{items:o,...r})}},54762:function(t,e,r){"use strict";r.d(e,{l:function(){return u}});var s=r(24246),n=r(27824),o=r(62165),i=r(54682);let u=t=>{let{consentStatus:e}=t,{flags:r}=(0,o.hz)(),{assetConsentStatusLabels:u}=r;return u&&(null==e?void 0:e.status)===i.pF.ALERT?(0,s.jsx)(n.esZ,{title:null==e?void 0:e.message,"data-testid":"discovery-status-icon-alert-tooltip",children:(0,s.jsx)("div",{className:"mb-px","data-testid":"discovery-status-icon-alert",children:(0,s.jsx)(n.PJP.OdJ,{style:{color:"var(--fidesui-error)"}})})}):null}},37059:function(t,e,r){"use strict";r.d(e,{Ak:function(){return g},EY:function(){return m},Tj:function(){return y},Ud:function(){return u},Vr:function(){return f},WJ:function(){return l},mi:function(){return h},nP:function(){return d},nS:function(){return p},rs:function(){return c},sX:function(){return v},ut:function(){return T},wi:function(){return a}});var s=r(78780),n=r(16394),o=r(54682),i=r(98145);let{useGetAggregateMonitorResultsQuery:u,useGetDiscoveredSystemAggregateQuery:a,useGetDiscoveredAssetsQuery:l,useAddMonitorResultSystemsMutation:c,useIgnoreMonitorResultSystemsMutation:d,useAddMonitorResultAssetsMutation:m,useIgnoreMonitorResultAssetsMutation:p,useRestoreMonitorResultAssetsMutation:y,useUpdateAssetsSystemMutation:v,useUpdateAssetsDataUseMutation:g,useUpdateAssetsMutation:f,useGetConsentBreakdownQuery:h,useGetWebsiteMonitorResourceFiltersQuery:T}=s.u.injectEndpoints({endpoints:t=>({getAggregateMonitorResults:t.query({query:t=>{let{page:e=1,size:r=20,search:s}=t;return{url:"/plus/discovery-monitor/aggregate-results",params:{page:e,size:r,search:s,diff_status:"addition"}}},providesTags:["Discovery Monitor Results"]}),getDiscoveredSystemAggregate:t.query({query:t=>{let{key:e,page:r=1,size:s=20,search:n,diff_status:o}=t;return{url:"/plus/discovery-monitor/system-aggregate-results",params:{monitor_config_id:e,page:r,size:s,search:n,diff_status:o}}},providesTags:["Discovery Monitor Results"]}),getDiscoveredAssets:t.query({query:t=>{let{key:e,system:r,page:s=1,size:u=20,search:a,diff_status:l=[o.LL.ADDITION],sort_by:c=[i.r.CONSENT_AGGREGATED,"urn"],sort_asc:d=!0,resource_type:m,data_uses:p,locations:y,consent_aggregated:v}=t,g=Array.isArray(c)?c:[c],f=(0,n.$J)({sort_by:g,resource_type:m,data_uses:p,locations:y,consent_aggregated:v});return{url:"/plus/discovery-monitor/".concat(e,"/results?").concat(f.toString()),params:{resolved_system_id:r,page:s,size:u,search:a,diff_status:l,sort_asc:d}}},providesTags:()=>["Discovery Monitor Results"]}),addMonitorResultSystems:t.mutation({query:t=>{let{monitor_config_key:e,resolved_system_ids:r}=t,s=(0,n.du)(r,"resolved_system_ids");return{url:"/plus/discovery-monitor/".concat(e,"/promote"),method:"POST",params:s?new URLSearchParams(s):new URLSearchParams}},invalidatesTags:["Discovery Monitor Results"]}),ignoreMonitorResultSystems:t.mutation({query:t=>{let{monitor_config_key:e,resolved_system_ids:r}=t,s=(0,n.du)(r,"resolved_system_ids");return{method:"POST",url:"/plus/discovery-monitor/".concat(e,"/mute?").concat(s)}},invalidatesTags:["Discovery Monitor Results"]}),addMonitorResultAssets:t.mutation({query:t=>{var e;let r=new URLSearchParams;return null===(e=t.urnList)||void 0===e||e.forEach(t=>r.append("staged_resource_urns",t)),{method:"POST",url:"/plus/discovery-monitor/promote?".concat(r)}},invalidatesTags:["Discovery Monitor Results"]}),ignoreMonitorResultAssets:t.mutation({query:t=>{var e;let r=new URLSearchParams;return null===(e=t.urnList)||void 0===e||e.forEach(t=>r.append("staged_resource_urns",t)),{method:"POST",url:"/plus/discovery-monitor/mute?".concat(r)}},invalidatesTags:["Discovery Monitor Results"]}),restoreMonitorResultAssets:t.mutation({query:t=>{var e;let r=new URLSearchParams({status_to_set:o.LL.ADDITION});return null===(e=t.urnList)||void 0===e||e.forEach(t=>r.append("staged_resource_urns",t)),{method:"POST",url:"/plus/discovery-monitor/un-mute?".concat(r)}},invalidatesTags:["Discovery Monitor Results"]}),updateAssetsSystem:t.mutation({query:t=>({method:"PATCH",url:"/plus/discovery-monitor/".concat(t.monitorId,"/results"),body:t.urnList.map(e=>({urn:e,user_assigned_system_key:t.systemKey}))}),invalidatesTags:["Discovery Monitor Results","System Assets"]}),updateAssetsDataUse:t.mutation({query:t=>({method:"PATCH",url:"/plus/discovery-monitor/".concat(t.monitorId,"/results"),body:t.urnList.map(e=>({urn:e,user_assigned_data_uses:t.dataUses}))}),invalidatesTags:["Discovery Monitor Results"]}),updateAssets:t.mutation({query:t=>({method:"PATCH",url:"/plus/discovery-monitor/".concat(t.monitorId,"/results"),body:t.assets}),invalidatesTags:["Discovery Monitor Results"]}),getConsentBreakdown:t.query({query:t=>{let{stagedResourceUrn:e,status:r,page:s=1,size:n=20}=t;return{url:"/plus/discovery-monitor/staged_resource/".concat(encodeURIComponent(e),"/consent"),params:{status:r,page:s,size:n}}}}),getWebsiteMonitorResourceFilters:t.query({query:t=>{let{monitor_config_id:e,resolved_system_id:r,diff_status:s=[o.LL.ADDITION],search:i,resource_type:u,data_uses:a,locations:l,consent_aggregated:c}=t,d={monitor_config_id:e,resolved_system_id:r,diff_status:s};i&&(d.search=i);let m=(0,n.$J)({resource_type:u,data_uses:a,locations:l,consent_aggregated:c}).toString();return{url:m?"/plus/filters/website_monitor_resources?".concat(m):"/plus/filters/website_monitor_resources",params:d}},providesTags:["Discovery Monitor Results"]})})})},98145:function(t,e,r){"use strict";var s,n,o,i;r.d(e,{X:function(){return s},r:function(){return n}}),(o=s||(s={})).WITH_CONSENT="With consent",o.WITHOUT_CONSENT="Without consent",o.EXEMPT="Exempt",o.UNKNOWN="Unknown",(i=n||(n={})).NAME="name",i.RESOURCE_TYPE="resource_type",i.SYSTEM="system",i.DATA_USES="data_uses",i.LOCATIONS="locations",i.DOMAIN="domain",i.PAGE="page",i.CONSENT_AGGREGATED="consent_aggregated",i.ACTIONS="actions"}}]);
|
fides/ui-build/static/admin/_next/static/chunks/{787-c57185ad89c4e288.js → 787-5ba991cad1f7664a.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[787],{77213:function(e,t,n){n.d(t,{Z:function(){return p}});var r=n(24246),i=n(13577),l=n(88038),o=n.n(l),a=n(86677);n(27378);var s=n(25980),d=n(90867),c=n(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(c.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."," "]})]})})},p=e=>{let{children:t,title:n,padded:l=!0,mainProps:c}=e,p=(0,s.hz)(),x=(0,a.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,r.jsxs)(i.kCb,{"data-testid":n,direction:"column",h:"100vh",children:[(0,r.jsxs)(o(),{children:[(0,r.jsxs)("title",{children:["Fides Admin UI - ",n]}),(0,r.jsx)("meta",{name:"description",content:"Privacy Engineering Platform"}),(0,r.jsx)("link",{rel:"icon",href:"/favicon.ico"})]}),(0,r.jsxs)(i.kCb,{as:"main",direction:"column",py:l?6:0,px:l?10:0,h:l?"calc(100% - 48px)":"full",flex:1,minWidth:0,overflow:"auto",...c,children:[g?(0,r.jsx)(u,{}):null,t]})]})}},58754:function(e,t,n){var r=n(24246),i=n(13577),l=n(70788);t.Z=e=>{let{heading:t,breadcrumbItems:n,isSticky:o=!0,children:a,rightContent:s,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)(i.jqI,{justify:"space-between",children:["string"==typeof t?(0,r.jsx)(i.lQT,{className:n||a?"pb-4":void 0,level:1,"data-testid":"page-heading",children:t}):t,s&&(0,r.jsx)("div",{"data-testid":"page-header-right-content",children:s})]}),!!n&&(0,r.jsx)(l.m,{className:a?"pb-4":void 0,items:n,"data-testid":"page-breadcrumb"}),a]})}},19904:function(e,t,n){n.d(t,{Tg:function(){return o}});var r=n(24246),i=n(16134),l=n(31793);let o=e=>(0,i.C)(l.uu).filter(t=>e.includes(t)).length>0;t.ZP=e=>{let{scopes:t,children:n}=e;return o(t)?(0,r.jsx)(r.Fragment,{children:n}):null}},51472:function(e,t,n){var r=n(24246),i=n(13577),l=n(47397),o=n(7078),a=n(18397),s=n(11055),d=n(27378),c=n(40324),u=n(46238);let p=e=>{let{item:t,label:n,draggable:a,onDeleteItem:s,onEditItem:d,tooltip:c,onRowClick:p,maxH:x=10,rowTestId:m}=e,h=(0,l.o)(),f=(0,r.jsxs)(i.kCb,{direction:"row",gap:2,maxH:x,w:"full",px:2,align:"center",role:"group",className:"group",borderY:"1px",my:"-1px",borderColor:"gray.200",_hover:p?{bgColor:"gray.100"}:void 0,bgColor:"white",position:"relative",children:[a&&(0,r.jsx)(i.VVU,{onPointerDown:e=>h.start(e),cursor:"grab"}),(0,r.jsxs)(i.kCb,{direction:"row",gap:2,p:2,align:"center",w:"full",cursor:p?"pointer":"auto",onClick:()=>{p&&p(t)},overflow:"clip","data-testid":m,children:[(0,r.jsx)(i.xvT,{fontSize:"sm",userSelect:"none",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden",children:n}),(0,r.jsx)(u.b,{label:c})]}),(0,r.jsxs)(i.vyj,{className:"invisible absolute right-2 bg-white group-hover:visible",children:[d&&(0,r.jsx)(i.wpx,{"aria-label":"Edit",onClick:()=>d(t),icon:(0,r.jsx)(i.PJP.I8b,{}),size:"small","data-testid":"edit-".concat(m)}),s&&(0,r.jsx)(i.wpx,{"aria-label":"Delete",onClick:()=>s(t),icon:(0,r.jsx)(i.PJP.ZNm,{}),size:"small","data-testid":"delete-".concat(m)})]})]});return a?(0,r.jsx)(o.e,{value:t,dragListener:!1,dragControls:h,children:f}):f},x=e=>{let{label:t,options:n,onOptionSelected:l,baseTestId:o}=e,[a,s]=(0,d.useState)(!1),[c,u]=(0,d.useState)(void 0);return a?(0,r.jsx)(i.xuv,{w:"full",children:(0,r.jsx)(i.WPr,{labelInValue:!0,placeholder:"Select...",filterOption:(e,t)=>{var n;return(null!==(n=null==t?void 0:t.label)&&void 0!==n?n:"").toLowerCase().includes(e.toLowerCase())},value:c,options:n,onChange:e=>{l(e),s(!1),u(void 0)},className:"w-full","data-testid":"select-".concat(o)})}):(0,r.jsx)(i.wpx,{onClick:()=>s(!0),"data-testid":"add-".concat(o),block:!0,icon:(0,r.jsx)(i.jBn,{boxSize:4}),iconPosition:"end",children:t})};t.Z=e=>{let{label:t,tooltip:n,draggable:l,addButtonLabel:o,allItems:d,idField:m,nameField:h=m,values:f,setValues:v,canDeleteItem:g,getTooltip:j,onRowClick:b,onEditItem:y,selectOnAdd:C,getItemLabel:w,createNewValue:k,maxHeight:R=36,baseTestId:I}=e,S=e=>e instanceof Object&&m&&m in e?e[m]:e,T=d.every(e=>"string"==typeof e)?d.filter(e=>f.every(t=>t!==e)):d.filter(e=>f.every(t=>S(t)!==S(e))),P=e=>{v(f.filter(t=>t!==e).slice())},E=null!=w?w:e=>e instanceof Object&&m&&m in e?h&&h in e?e[h]:e[m]:e,q=e=>{let t=e instanceof Object&&m&&m in e?e[m]:e;return{label:E(e),value:t}},N=e=>d.every(e=>"string"==typeof e)?e.value:d.find(t=>t[m]===e.value),Z=e=>{let t=k?k(e):N(e);v([t,...f.slice()]),C&&b&&b(t),C&&y&&y(t)},O={border:"1px",borderColor:"gray.200",borderRadius:"md",w:"full",maxH:"8.5rem",overflowY:"auto"},z=l?(0,r.jsx)(i.xuv,{as:a.E.div,layoutScroll:!0,...O,children:(0,r.jsx)(s.M,{values:f,onReorder:e=>v(e.slice()),children:f.map(e=>{let t=S(e);return(0,r.jsx)(p,{item:e,label:E(e),onDeleteItem:!g||g&&g(e)?P:void 0,onEditItem:y,onRowClick:b,draggable:!0,maxH:R,rowTestId:"".concat(I,"-row-").concat(t),tooltip:j&&j(e)?j(e):void 0},t)})})}):(0,r.jsx)(i.xuv,{...O,children:(0,r.jsx)(i.aVo,{children:f.map(e=>{let t=S(e);return(0,r.jsx)(p,{item:e,label:E(e),onRowClick:b,onDeleteItem:P,tooltip:j&&j(e)?j(e):void 0,maxH:R,rowTestId:"".concat(I,"-row-").concat(t)},t)})})});return f.length?(0,r.jsxs)(i.kCb,{align:"start",direction:"column",w:"full",gap:4,children:[t?(0,r.jsx)(c.__,{htmlFor:"test",fontSize:"xs",my:0,mr:1,children:t}):null,(0,r.jsx)(u.b,{label:n}),z,T.length?(0,r.jsx)(x,{label:null!=o?o:"Add new",options:T.map(e=>q(e)),onOptionSelected:Z,baseTestId:I}):null]}):(0,r.jsx)(x,{label:null!=o?o:"Add new",options:T.map(e=>q(e)),onOptionSelected:Z,baseTestId:I})}},97181:function(e,t,n){n.d(t,{d:function(){return d}});var r=n(24246),i=n(13577),l=n(34090),o=n(27378),a=n(46238),s=n(40324);let d=e=>{let{name:t,label:n,labelProps:d,tooltip:c,isRequired:u,layout:p="inline",helperText:x,...m}=e,[h,f,{setValue:v}]=(0,l.U$)(t),g=!!(f.touched&&f.error),[j,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,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,C=e=>{b(e),m.onSearch&&m.onSearch(e)},w=(e,t)=>{v(e),m.onChange&&m.onChange(e,t)};return"inline"===p?(0,r.jsx)(i.NIc,{isInvalid:g,isRequired:u,children:(0,r.jsxs)(i.rjZ,{templateColumns:n?"1fr 3fr":"1fr",children:[n?(0,r.jsx)(s.__,{htmlFor:m.id||t,...d,children:n}):null,(0,r.jsxs)(i.jqI,{align:"center",children:[(0,r.jsxs)(i.jqI,{vertical:!0,flex:1,className:"mr-2",children:[(0,r.jsx)(i.WPr,{...h,id:m.id||t,"data-testid":"controlled-select-".concat(h.name),...m,optionRender:y,onSearch:"tags"===m.mode?C:void 0,onChange:w,value:h.value||void 0,status:g?"error":void 0}),x&&(0,r.jsx)(i.Q6r,{children:x}),(0,r.jsx)(s.Bc,{isInvalid:g,message:f.error,fieldName:h.name})]}),(0,r.jsx)(a.b,{label:c,className:g?"mt-2 self-start":void 0})]})]})}):(0,r.jsx)(i.NIc,{isInvalid:g,isRequired:u,children:(0,r.jsxs)(i.gCW,{alignItems:"start",children:[(0,r.jsxs)(i.jqI,{align:"center",children:[n?(0,r.jsx)(s.__,{htmlFor:m.id||t,fontSize:"xs",my:0,mr:1,...d,children:n}):null,(0,r.jsx)(a.b,{label:c})]}),(0,r.jsx)(i.WPr,{...h,id:m.id||t,"data-testid":"controlled-select-".concat(h.name),...m,optionRender:y,onSearch:"tags"===m.mode?C:void 0,onChange:w,value:h.value||void 0,status:g?"error":void 0}),x&&(0,r.jsx)(i.Q6r,{style:{marginTop:0},children:x}),(0,r.jsx)(s.Bc,{isInvalid:g,message:f.error,fieldName:h.name})]})})}},10342:function(e,t,n){var r=n(24246),i=n(13577),l=n(46238);t.Z=e=>{let{title:t,tooltip:n,children:o,...a}=e;return(0,r.jsxs)(i.xuv,{borderRadius:"md",border:"1px solid",borderColor:"gray.200",...a,children:[(0,r.jsxs)(i.X6q,{as:"h3",fontSize:"sm",fontWeight:"semibold",color:"gray.700",py:4,px:6,backgroundColor:"gray.50",borderRadius:"md",textAlign:"left",children:[t,n?(0,r.jsx)(i.xvT,{as:"span",mx:1,children:(0,r.jsx)(l.b,{label:n})}):void 0]}),(0,r.jsx)(i.Kqy,{p:6,spacing:6,children:o})]})}},70788:function(e,t,n){n.d(t,{m:function(){return d}});var r=n(24246),i=n(13577),l=n(79894),o=n.n(l),a=n(27378);let{Text:s}=i.AntTypography,d=e=>{let{items:t,...n}=e,l=(0,a.useMemo)(()=>null==t?void 0:t.map((e,n)=>{let l=n===t.length-1,a={...e},d=a.onClick&&!a.href;return("string"==typeof a.title&&(a.title=(0,r.jsx)(s,{style:{color:"inherit",maxWidth:l?void 0:400},ellipsis:!l,children:a.title})),d)?a.title=(0,r.jsx)(i.wpx,{type:"text",size:"small",icon:a.icon,onClick:a.onClick,className:"ant-breadcrumb-link -mt-px px-1 text-inherit",children:a.title}):(a.icon&&(a.title=(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("span",{className:"anticon align-text-bottom",children:a.icon}),a.title]})),a.href&&a.title&&(a.title=(0,r.jsx)(o(),{href:a.href,className:"ant-breadcrumb-link",children:a.title}),delete a.href)),a}),[t]);return(0,r.jsx)(i.zrq,{items:l,...n})}},3642:function(e,t,n){var r=n(24246),i=n(13577),l=n(86677),o=n.n(l),a=n(27378),s=n(812),d=n(58452),c=n(77830),u=n(19904),p=n(46628),x=n(98795),m=n(54682);t.Z=e=>{let{property:t,triggerComponent:n}=e,l=(0,i.pmc)(),h=(0,i.qY0)(),[f]=(0,x.YW)(),v=t.experiences.length>0,g=async()=>{h.onClose();let e=await f(t.id);if((0,s.D4)(e)){l((0,p.Vo)((0,s.e$)(e.error)));return}o().push("".concat(c.ru)),l((0,p.t5)("Property ".concat(t.name," deleted successfully")))};return(0,r.jsxs)(u.ZP,{scopes:[m.Sh.PROPERTY_DELETE],children:[(0,r.jsx)(i.esZ,{title:v?"All of the experiences on this property must be unlinked before the property can be deleted.":void 0,placement:"right",children:(0,r.jsx)("span",{children:a.cloneElement(n,{onClick:e=>{e.stopPropagation(),v||h.onOpen()},disabled:v})})}),(0,r.jsx)(d.Z,{isOpen:h.isOpen,onClose:h.onClose,onConfirm:g,title:"Delete ".concat(t.name),message:(0,r.jsxs)(i.xvT,{color:"gray.500",children:["You are about to delete property ",t.name,". This action is not reversible and will result in ",t.name," no longer being available for your data governance. Are you sure you want to proceed?"]}),continueButtonText:"Ok",isCentered:!0,icon:(0,r.jsx)(i.aNP,{})})]})}},18880:function(e,t,n){var r=n(24246),i=n(13577),l=n(34090),o=n(86677),a=n(27378),s=n(16134),d=n(10342),c=n(40324),u=n(812),p=n(77830),x=n(51472),m=n(94315),h=n(54682),f=n(97181),v=n(3642);let g=()=>{var e;let t=(0,s.C)(m.Zp),n=(0,s.C)(m.G1);(0,m.cq)({page:t,size:n});let i=(0,s.C)(m.w4),{values:o,setFieldValue:a}=(0,l.u6)();return(0,r.jsx)(d.Z,{title:"Experiences",children:(0,r.jsx)(x.Z,{addButtonLabel:"Add experience",idField:"id",nameField:"name",allItems:i.map(e=>({id:e.id,name:e.name})),values:null!==(e=o.experiences)&&void 0!==e?e:[],setValues:e=>a("experiences",e),draggable:!0,baseTestId:"experience"})})};t.Z=e=>{let{property:t,handleSubmit:n}=e,s=(0,o.useRouter)(),x=()=>{s.push(p.ru)},m=(0,a.useMemo)(()=>t||{name:"",type:h.uS.WEBSITE,experiences:[],messaging_templates:[],paths:[]},[t]);return(0,r.jsx)(l.J9,{enableReinitialize:!0,initialValues:m,onSubmit:n,children:e=>{let{dirty:n,isValid:o,isSubmitting:a}=e;return(0,r.jsxs)(l.l0,{style:{paddingTop:"12px",paddingBottom:"12px"},children:[(0,r.jsx)(i.xuv,{py:3,children:(0,r.jsxs)(d.Z,{title:"Property details",children:[(0,r.jsx)(c.j0,{isRequired:!0,label:"Property name",name:"name",tooltip:"Unique name to identify this property",variant:"stacked"}),(0,r.jsx)(f.d,{isRequired:!0,label:"Type",name:"type",options:(0,u.MM)(h.uS),layout:"stacked"})]})}),(0,r.jsx)(i.xuv,{py:3,children:(0,r.jsx)(g,{})}),t&&(0,r.jsx)(i.xuv,{py:3,children:(0,r.jsx)(d.Z,{title:"Advanced settings",children:(0,r.jsx)(c.Io,{label:"Property ID",name:"id",tooltip:"Automatically generated unique ID for this property, used for developer configurations",variant:"stacked",readOnly:!0})})}),(0,r.jsxs)(i.kCb,{justifyContent:"space-between",width:"100%",paddingTop:2,children:[t&&(0,r.jsx)(v.Z,{property:t,triggerComponent:(0,r.jsx)(i.wpx,{"data-testid":"delete-property-button",loading:!1,className:"mr-3",children:"Delete"})}),(0,r.jsxs)(i.kCb,{justifyContent:"right",width:"100%",paddingTop:2,children:[(0,r.jsx)(i.wpx,{onClick:x,loading:!1,className:"mr-3",children:"Cancel"}),(0,r.jsx)(i.wpx,{htmlType:"submit",type:"primary",disabled:a||!n||!o,loading:a,children:"Save"})]})]})]})}})}},31883:function(e,t,n){n.d(t,{Bw:function(){return r.Bw},D4:function(){return r.D4}});var r=n(19043)},11055:function(e,t,n){n.d(t,{M:function(){return u}});var r=n(24246),i=n(29427),l=n(27378),o=n(40976),a=n(18397),s=n(42308),d=n(25431),c=n(39556);let u=(0,l.forwardRef)(function({children:e,as:t="ul",axis:n="y",onReorder:u,values:m,...h},f){let v=(0,s.h)(()=>a.E[t]),g=[],j=(0,l.useRef)(!1);return(0,i.k)(!!m,"Reorder.Group must be provided a values prop"),(0,l.useEffect)(()=>{j.current=!1}),(0,r.jsx)(v,{...h,ref:f,ignoreStrict:!0,children:(0,r.jsx)(o.Y.Provider,{value:{axis:n,registerItem:(e,t)=>{let r=g.findIndex(t=>e===t.value);-1!==r?g[r].layout=t[n]:g.push({value:e,layout:t[n]}),g.sort(x)},updateOrder:(e,t,n)=>{if(j.current)return;let r=function(e,t,n,r){if(!r)return e;let i=e.findIndex(e=>e.value===t);if(-1===i)return e;let l=r>0?1:-1,o=e[i+l];if(!o)return e;let a=e[i],s=o.layout,u=(0,c.t)(s.min,s.max,.5);return 1===l&&a.layout.max+n>u||-1===l&&a.layout.min+n<u?(0,d.uo)(e,i,i+l):e}(g,e,t,n);g!==r&&(j.current=!0,u(r.map(p).filter(e=>-1!==m.indexOf(e))))}},children:e})})});function p(e){return e.value}function x(e,t){return e.layout.min-t.layout.min}},7078:function(e,t,n){n.d(t,{e:function(){return y}});var r=n(24246),i=n(29427),l=n(27378),o=n(40976),a=n(18397),s=n(42308),d=n(69222),c=n(67412);function u(e){let t=(0,s.h)(()=>(0,d.BX)(e)),{isStatic:n}=(0,l.useContext)(c._);if(n){let[,n]=(0,l.useState)(e);(0,l.useEffect)(()=>t.on("change",n),[])}return t}var p=n(13998);let x=e=>e&&"object"==typeof e&&e.mix,m=e=>x(e)?e.mix:void 0;var h=n(64306),f=n(95984);function v(e,t){let n=u(t()),r=()=>n.set(t());return r(),(0,h.L)(()=>{let t=()=>f.Wi.preRender(r,!1,!0),n=e.map(e=>e.on("change",t));return()=>{n.forEach(e=>e()),(0,f.Pn)(r)}}),n}function g(e,t){let n=(0,s.h)(()=>[]);return v(e,()=>{n.length=0;let r=e.length;for(let t=0;t<r;t++)n[t]=e[t].get();return t(n)})}var j=n(3522);function b(e,t=0){return(0,j.i)(e)?e:u(t)}let y=(0,l.forwardRef)(function({children:e,style:t={},value:n,as:c="li",onDrag:u,layout:x=!0,...h},f){let j=(0,s.h)(()=>a.E[c]),y=(0,l.useContext)(o.Y),C={x:b(t.x),y:b(t.y)},w=function(e,t,n,r){if("function"==typeof e)return function(e){d.S1.current=[],e();let t=v(d.S1.current,e);return d.S1.current=void 0,t}(e);let i="function"==typeof t?t:function(...e){let t=!Array.isArray(e[0]),n=t?0:-1,r=e[0+n],i=e[1+n],l=e[2+n],o=e[3+n],a=(0,p.s)(i,l,{mixer:m(l[0]),...o});return t?a(r):a}(t,void 0,void 0);return Array.isArray(e)?g(e,i):g([e],([e])=>i(e))}([C.x,C.y],([e,t])=>e||t?1:"unset");(0,i.k)(!!y,"Reorder.Item must be a child of Reorder.Group");let{axis:k,registerItem:R,updateOrder:I}=y;return(0,r.jsx)(j,{drag:k,...h,dragSnapToOrigin:!0,style:{...t,x:C.x,y:C.y,zIndex:w},layout:x,onDrag:(e,t)=>{let{velocity:r}=t;r[k]&&I(n,C[k].get(),r[k]),u&&u(e,t)},onLayoutMeasure:e=>R(n,e),ref:f,ignoreStrict:!0,children:e})})},40976:function(e,t,n){n.d(t,{Y:function(){return r}});let r=(0,n(27378).createContext)(null)},47397:function(e,t,n){n.d(t,{o:function(){return o}});var r=n(42308);class i{constructor(){this.componentControls=new Set}subscribe(e){return this.componentControls.add(e),()=>this.componentControls.delete(e)}start(e,t){this.componentControls.forEach(n=>{n.start(e.nativeEvent||e,t)})}}let l=()=>new i;function o(){return(0,r.h)(l)}}}]);
|
|
1
|
+
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[787],{77213:function(e,t,n){n.d(t,{Z:function(){return p}});var r=n(24246),i=n(27824),l=n(88038),o=n.n(l),a=n(86677);n(27378);var s=n(25980),d=n(90867),c=n(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(c.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."," "]})]})})},p=e=>{let{children:t,title:n,padded:l=!0,mainProps:c}=e,p=(0,s.hz)(),x=(0,a.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,r.jsxs)(i.kCb,{"data-testid":n,direction:"column",h:"100vh",children:[(0,r.jsxs)(o(),{children:[(0,r.jsxs)("title",{children:["Fides Admin UI - ",n]}),(0,r.jsx)("meta",{name:"description",content:"Privacy Engineering Platform"}),(0,r.jsx)("link",{rel:"icon",href:"/favicon.ico"})]}),(0,r.jsxs)(i.kCb,{as:"main",direction:"column",py:l?6:0,px:l?10:0,h:l?"calc(100% - 48px)":"full",flex:1,minWidth:0,overflow:"auto",...c,children:[g?(0,r.jsx)(u,{}):null,t]})]})}},58754:function(e,t,n){var r=n(24246),i=n(27824),l=n(70788);t.Z=e=>{let{heading:t,breadcrumbItems:n,isSticky:o=!0,children:a,rightContent:s,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)(i.jqI,{justify:"space-between",children:["string"==typeof t?(0,r.jsx)(i.lQT,{className:n||a?"pb-4":void 0,level:1,"data-testid":"page-heading",children:t}):t,s&&(0,r.jsx)("div",{"data-testid":"page-header-right-content",children:s})]}),!!n&&(0,r.jsx)(l.m,{className:a?"pb-4":void 0,items:n,"data-testid":"page-breadcrumb"}),a]})}},19904:function(e,t,n){n.d(t,{Tg:function(){return o}});var r=n(24246),i=n(16134),l=n(31793);let o=e=>(0,i.C)(l.uu).filter(t=>e.includes(t)).length>0;t.ZP=e=>{let{scopes:t,children:n}=e;return o(t)?(0,r.jsx)(r.Fragment,{children:n}):null}},51472:function(e,t,n){var r=n(24246),i=n(27824),l=n(47397),o=n(7078),a=n(18397),s=n(11055),d=n(27378),c=n(40324),u=n(46238);let p=e=>{let{item:t,label:n,draggable:a,onDeleteItem:s,onEditItem:d,tooltip:c,onRowClick:p,maxH:x=10,rowTestId:m}=e,h=(0,l.o)(),f=(0,r.jsxs)(i.kCb,{direction:"row",gap:2,maxH:x,w:"full",px:2,align:"center",role:"group",className:"group",borderY:"1px",my:"-1px",borderColor:"gray.200",_hover:p?{bgColor:"gray.100"}:void 0,bgColor:"white",position:"relative",children:[a&&(0,r.jsx)(i.VVU,{onPointerDown:e=>h.start(e),cursor:"grab"}),(0,r.jsxs)(i.kCb,{direction:"row",gap:2,p:2,align:"center",w:"full",cursor:p?"pointer":"auto",onClick:()=>{p&&p(t)},overflow:"clip","data-testid":m,children:[(0,r.jsx)(i.xvT,{fontSize:"sm",userSelect:"none",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden",children:n}),(0,r.jsx)(u.b,{label:c})]}),(0,r.jsxs)(i.vyj,{className:"invisible absolute right-2 bg-white group-hover:visible",children:[d&&(0,r.jsx)(i.wpx,{"aria-label":"Edit",onClick:()=>d(t),icon:(0,r.jsx)(i.PJP.I8b,{}),size:"small","data-testid":"edit-".concat(m)}),s&&(0,r.jsx)(i.wpx,{"aria-label":"Delete",onClick:()=>s(t),icon:(0,r.jsx)(i.PJP.ZNm,{}),size:"small","data-testid":"delete-".concat(m)})]})]});return a?(0,r.jsx)(o.e,{value:t,dragListener:!1,dragControls:h,children:f}):f},x=e=>{let{label:t,options:n,onOptionSelected:l,baseTestId:o}=e,[a,s]=(0,d.useState)(!1),[c,u]=(0,d.useState)(void 0);return a?(0,r.jsx)(i.xuv,{w:"full",children:(0,r.jsx)(i.WPr,{labelInValue:!0,placeholder:"Select...",filterOption:(e,t)=>{var n;return(null!==(n=null==t?void 0:t.label)&&void 0!==n?n:"").toLowerCase().includes(e.toLowerCase())},value:c,options:n,onChange:e=>{l(e),s(!1),u(void 0)},className:"w-full","data-testid":"select-".concat(o)})}):(0,r.jsx)(i.wpx,{onClick:()=>s(!0),"data-testid":"add-".concat(o),block:!0,icon:(0,r.jsx)(i.jBn,{boxSize:4}),iconPosition:"end",children:t})};t.Z=e=>{let{label:t,tooltip:n,draggable:l,addButtonLabel:o,allItems:d,idField:m,nameField:h=m,values:f,setValues:v,canDeleteItem:g,getTooltip:j,onRowClick:b,onEditItem:y,selectOnAdd:C,getItemLabel:w,createNewValue:k,maxHeight:R=36,baseTestId:I}=e,S=e=>e instanceof Object&&m&&m in e?e[m]:e,T=d.every(e=>"string"==typeof e)?d.filter(e=>f.every(t=>t!==e)):d.filter(e=>f.every(t=>S(t)!==S(e))),P=e=>{v(f.filter(t=>t!==e).slice())},E=null!=w?w:e=>e instanceof Object&&m&&m in e?h&&h in e?e[h]:e[m]:e,q=e=>{let t=e instanceof Object&&m&&m in e?e[m]:e;return{label:E(e),value:t}},N=e=>d.every(e=>"string"==typeof e)?e.value:d.find(t=>t[m]===e.value),Z=e=>{let t=k?k(e):N(e);v([t,...f.slice()]),C&&b&&b(t),C&&y&&y(t)},O={border:"1px",borderColor:"gray.200",borderRadius:"md",w:"full",maxH:"8.5rem",overflowY:"auto"},z=l?(0,r.jsx)(i.xuv,{as:a.E.div,layoutScroll:!0,...O,children:(0,r.jsx)(s.M,{values:f,onReorder:e=>v(e.slice()),children:f.map(e=>{let t=S(e);return(0,r.jsx)(p,{item:e,label:E(e),onDeleteItem:!g||g&&g(e)?P:void 0,onEditItem:y,onRowClick:b,draggable:!0,maxH:R,rowTestId:"".concat(I,"-row-").concat(t),tooltip:j&&j(e)?j(e):void 0},t)})})}):(0,r.jsx)(i.xuv,{...O,children:(0,r.jsx)(i.aVo,{children:f.map(e=>{let t=S(e);return(0,r.jsx)(p,{item:e,label:E(e),onRowClick:b,onDeleteItem:P,tooltip:j&&j(e)?j(e):void 0,maxH:R,rowTestId:"".concat(I,"-row-").concat(t)},t)})})});return f.length?(0,r.jsxs)(i.kCb,{align:"start",direction:"column",w:"full",gap:4,children:[t?(0,r.jsx)(c.__,{htmlFor:"test",fontSize:"xs",my:0,mr:1,children:t}):null,(0,r.jsx)(u.b,{label:n}),z,T.length?(0,r.jsx)(x,{label:null!=o?o:"Add new",options:T.map(e=>q(e)),onOptionSelected:Z,baseTestId:I}):null]}):(0,r.jsx)(x,{label:null!=o?o:"Add new",options:T.map(e=>q(e)),onOptionSelected:Z,baseTestId:I})}},97181:function(e,t,n){n.d(t,{d:function(){return d}});var r=n(24246),i=n(27824),l=n(34090),o=n(27378),a=n(46238),s=n(40324);let d=e=>{let{name:t,label:n,labelProps:d,tooltip:c,isRequired:u,layout:p="inline",helperText:x,...m}=e,[h,f,{setValue:v}]=(0,l.U$)(t),g=!!(f.touched&&f.error),[j,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,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,C=e=>{b(e),m.onSearch&&m.onSearch(e)},w=(e,t)=>{v(e),m.onChange&&m.onChange(e,t)};return"inline"===p?(0,r.jsx)(i.NIc,{isInvalid:g,isRequired:u,children:(0,r.jsxs)(i.rjZ,{templateColumns:n?"1fr 3fr":"1fr",children:[n?(0,r.jsx)(s.__,{htmlFor:m.id||t,...d,children:n}):null,(0,r.jsxs)(i.jqI,{align:"center",children:[(0,r.jsxs)(i.jqI,{vertical:!0,flex:1,className:"mr-2",children:[(0,r.jsx)(i.WPr,{...h,id:m.id||t,"data-testid":"controlled-select-".concat(h.name),...m,optionRender:y,onSearch:"tags"===m.mode?C:void 0,onChange:w,value:h.value||void 0,status:g?"error":void 0}),x&&(0,r.jsx)(i.Q6r,{children:x}),(0,r.jsx)(s.Bc,{isInvalid:g,message:f.error,fieldName:h.name})]}),(0,r.jsx)(a.b,{label:c,className:g?"mt-2 self-start":void 0})]})]})}):(0,r.jsx)(i.NIc,{isInvalid:g,isRequired:u,children:(0,r.jsxs)(i.gCW,{alignItems:"start",children:[(0,r.jsxs)(i.jqI,{align:"center",children:[n?(0,r.jsx)(s.__,{htmlFor:m.id||t,fontSize:"xs",my:0,mr:1,...d,children:n}):null,(0,r.jsx)(a.b,{label:c})]}),(0,r.jsx)(i.WPr,{...h,id:m.id||t,"data-testid":"controlled-select-".concat(h.name),...m,optionRender:y,onSearch:"tags"===m.mode?C:void 0,onChange:w,value:h.value||void 0,status:g?"error":void 0}),x&&(0,r.jsx)(i.Q6r,{style:{marginTop:0},children:x}),(0,r.jsx)(s.Bc,{isInvalid:g,message:f.error,fieldName:h.name})]})})}},10342:function(e,t,n){var r=n(24246),i=n(27824),l=n(46238);t.Z=e=>{let{title:t,tooltip:n,children:o,...a}=e;return(0,r.jsxs)(i.xuv,{borderRadius:"md",border:"1px solid",borderColor:"gray.200",...a,children:[(0,r.jsxs)(i.X6q,{as:"h3",fontSize:"sm",fontWeight:"semibold",color:"gray.700",py:4,px:6,backgroundColor:"gray.50",borderRadius:"md",textAlign:"left",children:[t,n?(0,r.jsx)(i.xvT,{as:"span",mx:1,children:(0,r.jsx)(l.b,{label:n})}):void 0]}),(0,r.jsx)(i.Kqy,{p:6,spacing:6,children:o})]})}},70788:function(e,t,n){n.d(t,{m:function(){return d}});var r=n(24246),i=n(27824),l=n(79894),o=n.n(l),a=n(27378);let{Text:s}=i.AntTypography,d=e=>{let{items:t,...n}=e,l=(0,a.useMemo)(()=>null==t?void 0:t.map((e,n)=>{let l=n===t.length-1,a={...e},d=a.onClick&&!a.href;return("string"==typeof a.title&&(a.title=(0,r.jsx)(s,{style:{color:"inherit",maxWidth:l?void 0:400},ellipsis:!l,children:a.title})),d)?a.title=(0,r.jsx)(i.wpx,{type:"text",size:"small",icon:a.icon,onClick:a.onClick,className:"ant-breadcrumb-link -mt-px px-1 text-inherit",children:a.title}):(a.icon&&(a.title=(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("span",{className:"anticon align-text-bottom",children:a.icon}),a.title]})),a.href&&a.title&&(a.title=(0,r.jsx)(o(),{href:a.href,className:"ant-breadcrumb-link",children:a.title}),delete a.href)),a}),[t]);return(0,r.jsx)(i.zrq,{items:l,...n})}},3642:function(e,t,n){var r=n(24246),i=n(27824),l=n(86677),o=n.n(l),a=n(27378),s=n(812),d=n(58452),c=n(77830),u=n(19904),p=n(46628),x=n(98795),m=n(54682);t.Z=e=>{let{property:t,triggerComponent:n}=e,l=(0,i.pmc)(),h=(0,i.qY0)(),[f]=(0,x.YW)(),v=t.experiences.length>0,g=async()=>{h.onClose();let e=await f(t.id);if((0,s.D4)(e)){l((0,p.Vo)((0,s.e$)(e.error)));return}o().push("".concat(c.ru)),l((0,p.t5)("Property ".concat(t.name," deleted successfully")))};return(0,r.jsxs)(u.ZP,{scopes:[m.Sh.PROPERTY_DELETE],children:[(0,r.jsx)(i.esZ,{title:v?"All of the experiences on this property must be unlinked before the property can be deleted.":void 0,placement:"right",children:(0,r.jsx)("span",{children:a.cloneElement(n,{onClick:e=>{e.stopPropagation(),v||h.onOpen()},disabled:v})})}),(0,r.jsx)(d.Z,{isOpen:h.isOpen,onClose:h.onClose,onConfirm:g,title:"Delete ".concat(t.name),message:(0,r.jsxs)(i.xvT,{color:"gray.500",children:["You are about to delete property ",t.name,". This action is not reversible and will result in ",t.name," no longer being available for your data governance. Are you sure you want to proceed?"]}),continueButtonText:"Ok",isCentered:!0,icon:(0,r.jsx)(i.aNP,{})})]})}},18880:function(e,t,n){var r=n(24246),i=n(27824),l=n(34090),o=n(86677),a=n(27378),s=n(16134),d=n(10342),c=n(40324),u=n(812),p=n(77830),x=n(51472),m=n(94315),h=n(54682),f=n(97181),v=n(3642);let g=()=>{var e;let t=(0,s.C)(m.Zp),n=(0,s.C)(m.G1);(0,m.cq)({page:t,size:n});let i=(0,s.C)(m.w4),{values:o,setFieldValue:a}=(0,l.u6)();return(0,r.jsx)(d.Z,{title:"Experiences",children:(0,r.jsx)(x.Z,{addButtonLabel:"Add experience",idField:"id",nameField:"name",allItems:i.map(e=>({id:e.id,name:e.name})),values:null!==(e=o.experiences)&&void 0!==e?e:[],setValues:e=>a("experiences",e),draggable:!0,baseTestId:"experience"})})};t.Z=e=>{let{property:t,handleSubmit:n}=e,s=(0,o.useRouter)(),x=()=>{s.push(p.ru)},m=(0,a.useMemo)(()=>t||{name:"",type:h.uS.WEBSITE,experiences:[],messaging_templates:[],paths:[]},[t]);return(0,r.jsx)(l.J9,{enableReinitialize:!0,initialValues:m,onSubmit:n,children:e=>{let{dirty:n,isValid:o,isSubmitting:a}=e;return(0,r.jsxs)(l.l0,{style:{paddingTop:"12px",paddingBottom:"12px"},children:[(0,r.jsx)(i.xuv,{py:3,children:(0,r.jsxs)(d.Z,{title:"Property details",children:[(0,r.jsx)(c.j0,{isRequired:!0,label:"Property name",name:"name",tooltip:"Unique name to identify this property",variant:"stacked"}),(0,r.jsx)(f.d,{isRequired:!0,label:"Type",name:"type",options:(0,u.MM)(h.uS),layout:"stacked"})]})}),(0,r.jsx)(i.xuv,{py:3,children:(0,r.jsx)(g,{})}),t&&(0,r.jsx)(i.xuv,{py:3,children:(0,r.jsx)(d.Z,{title:"Advanced settings",children:(0,r.jsx)(c.Io,{label:"Property ID",name:"id",tooltip:"Automatically generated unique ID for this property, used for developer configurations",variant:"stacked",readOnly:!0})})}),(0,r.jsxs)(i.kCb,{justifyContent:"space-between",width:"100%",paddingTop:2,children:[t&&(0,r.jsx)(v.Z,{property:t,triggerComponent:(0,r.jsx)(i.wpx,{"data-testid":"delete-property-button",loading:!1,className:"mr-3",children:"Delete"})}),(0,r.jsxs)(i.kCb,{justifyContent:"right",width:"100%",paddingTop:2,children:[(0,r.jsx)(i.wpx,{onClick:x,loading:!1,className:"mr-3",children:"Cancel"}),(0,r.jsx)(i.wpx,{htmlType:"submit",type:"primary",disabled:a||!n||!o,loading:a,children:"Save"})]})]})]})}})}},31883:function(e,t,n){n.d(t,{Bw:function(){return r.Bw},D4:function(){return r.D4}});var r=n(19043)},11055:function(e,t,n){n.d(t,{M:function(){return u}});var r=n(24246),i=n(29427),l=n(27378),o=n(40976),a=n(18397),s=n(42308),d=n(25431),c=n(39556);let u=(0,l.forwardRef)(function({children:e,as:t="ul",axis:n="y",onReorder:u,values:m,...h},f){let v=(0,s.h)(()=>a.E[t]),g=[],j=(0,l.useRef)(!1);return(0,i.k)(!!m,"Reorder.Group must be provided a values prop"),(0,l.useEffect)(()=>{j.current=!1}),(0,r.jsx)(v,{...h,ref:f,ignoreStrict:!0,children:(0,r.jsx)(o.Y.Provider,{value:{axis:n,registerItem:(e,t)=>{let r=g.findIndex(t=>e===t.value);-1!==r?g[r].layout=t[n]:g.push({value:e,layout:t[n]}),g.sort(x)},updateOrder:(e,t,n)=>{if(j.current)return;let r=function(e,t,n,r){if(!r)return e;let i=e.findIndex(e=>e.value===t);if(-1===i)return e;let l=r>0?1:-1,o=e[i+l];if(!o)return e;let a=e[i],s=o.layout,u=(0,c.t)(s.min,s.max,.5);return 1===l&&a.layout.max+n>u||-1===l&&a.layout.min+n<u?(0,d.uo)(e,i,i+l):e}(g,e,t,n);g!==r&&(j.current=!0,u(r.map(p).filter(e=>-1!==m.indexOf(e))))}},children:e})})});function p(e){return e.value}function x(e,t){return e.layout.min-t.layout.min}},7078:function(e,t,n){n.d(t,{e:function(){return y}});var r=n(24246),i=n(29427),l=n(27378),o=n(40976),a=n(18397),s=n(42308),d=n(69222),c=n(67412);function u(e){let t=(0,s.h)(()=>(0,d.BX)(e)),{isStatic:n}=(0,l.useContext)(c._);if(n){let[,n]=(0,l.useState)(e);(0,l.useEffect)(()=>t.on("change",n),[])}return t}var p=n(13998);let x=e=>e&&"object"==typeof e&&e.mix,m=e=>x(e)?e.mix:void 0;var h=n(64306),f=n(95984);function v(e,t){let n=u(t()),r=()=>n.set(t());return r(),(0,h.L)(()=>{let t=()=>f.Wi.preRender(r,!1,!0),n=e.map(e=>e.on("change",t));return()=>{n.forEach(e=>e()),(0,f.Pn)(r)}}),n}function g(e,t){let n=(0,s.h)(()=>[]);return v(e,()=>{n.length=0;let r=e.length;for(let t=0;t<r;t++)n[t]=e[t].get();return t(n)})}var j=n(3522);function b(e,t=0){return(0,j.i)(e)?e:u(t)}let y=(0,l.forwardRef)(function({children:e,style:t={},value:n,as:c="li",onDrag:u,layout:x=!0,...h},f){let j=(0,s.h)(()=>a.E[c]),y=(0,l.useContext)(o.Y),C={x:b(t.x),y:b(t.y)},w=function(e,t,n,r){if("function"==typeof e)return function(e){d.S1.current=[],e();let t=v(d.S1.current,e);return d.S1.current=void 0,t}(e);let i="function"==typeof t?t:function(...e){let t=!Array.isArray(e[0]),n=t?0:-1,r=e[0+n],i=e[1+n],l=e[2+n],o=e[3+n],a=(0,p.s)(i,l,{mixer:m(l[0]),...o});return t?a(r):a}(t,void 0,void 0);return Array.isArray(e)?g(e,i):g([e],([e])=>i(e))}([C.x,C.y],([e,t])=>e||t?1:"unset");(0,i.k)(!!y,"Reorder.Item must be a child of Reorder.Group");let{axis:k,registerItem:R,updateOrder:I}=y;return(0,r.jsx)(j,{drag:k,...h,dragSnapToOrigin:!0,style:{...t,x:C.x,y:C.y,zIndex:w},layout:x,onDrag:(e,t)=>{let{velocity:r}=t;r[k]&&I(n,C[k].get(),r[k]),u&&u(e,t)},onLayoutMeasure:e=>R(n,e),ref:f,ignoreStrict:!0,children:e})})},40976:function(e,t,n){n.d(t,{Y:function(){return r}});let r=(0,n(27378).createContext)(null)},47397:function(e,t,n){n.d(t,{o:function(){return o}});var r=n(42308);class i{constructor(){this.componentControls=new Set}subscribe(e){return this.componentControls.add(e),()=>this.componentControls.delete(e)}start(e,t){this.componentControls.forEach(n=>{n.start(e.nativeEvent||e,t)})}}let l=()=>new i;function o(){return(0,r.h)(l)}}}]);
|
fides/ui-build/static/admin/_next/static/chunks/{79-2aab56be75e16187.js → 79-98cfab20bb831137.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[79],{56358:function(e,t,n){n.d(t,{q:function(){return i}});var s=n(24246);let i=(0,n(13577).IUT)({displayName:"TrashCanOutlineIcon",viewBox:"0 0 11 12",path:(0,s.jsx)("path",{d:"M4.5166 1.60859L4.1084 2.21875H7.22363L6.81543 1.60859C6.7832 1.56133 6.72949 1.53125 6.67148 1.53125H4.6584C4.60039 1.53125 4.54668 1.55918 4.51445 1.60859H4.5166ZM7.6748 1.03711L8.46328 2.21875H8.75977H9.79102H9.96289C10.2486 2.21875 10.4785 2.44863 10.4785 2.73438C10.4785 3.02012 10.2486 3.25 9.96289 3.25H9.79102V9.78125C9.79102 10.7309 9.02188 11.5 8.07227 11.5H3.25977C2.31016 11.5 1.54102 10.7309 1.54102 9.78125V3.25H1.36914C1.0834 3.25 0.853516 3.02012 0.853516 2.73438C0.853516 2.44863 1.0834 2.21875 1.36914 2.21875H1.54102H2.57227H2.86875L3.65723 1.03496C3.88066 0.701953 4.25664 0.5 4.6584 0.5H6.67148C7.07324 0.5 7.44922 0.701953 7.67266 1.03496L7.6748 1.03711ZM2.57227 3.25V9.78125C2.57227 10.1615 2.87949 10.4688 3.25977 10.4688H8.07227C8.45254 10.4688 8.75977 10.1615 8.75977 9.78125V3.25H2.57227ZM4.29102 4.625V9.09375C4.29102 9.28281 4.13633 9.4375 3.94727 9.4375C3.7582 9.4375 3.60352 9.28281 3.60352 9.09375V4.625C3.60352 4.43594 3.7582 4.28125 3.94727 4.28125C4.13633 4.28125 4.29102 4.43594 4.29102 4.625ZM6.00977 4.625V9.09375C6.00977 9.28281 5.85508 9.4375 5.66602 9.4375C5.47695 9.4375 5.32227 9.28281 5.32227 9.09375V4.625C5.32227 4.43594 5.47695 4.28125 5.66602 4.28125C5.85508 4.28125 6.00977 4.43594 6.00977 4.625ZM7.72852 4.625V9.09375C7.72852 9.28281 7.57383 9.4375 7.38477 9.4375C7.1957 9.4375 7.04102 9.28281 7.04102 9.09375V4.625C7.04102 4.43594 7.1957 4.28125 7.38477 4.28125C7.57383 4.28125 7.72852 4.43594 7.72852 4.625Z",fill:"currentColor"})})},77213:function(e,t,n){n.d(t,{Z:function(){return u}});var s=n(24246),i=n(13577),r=n(88038),a=n.n(r),o=n(86677);n(27378);var l=n(25980),c=n(90867),d=n(77830),p=()=>{let e=(0,o.useRouter)();return(0,s.jsx)(i.xuv,{bg:"gray.50",border:"1px solid",borderColor:"blue.400",borderRadius:"md",justifyContent:"space-between",p:5,mb:5,mt:5,children:(0,s.jsxs)(i.xuv,{children:[(0,s.jsxs)(i.Kqy,{direction:{base:"column",sm:"row"},justifyContent:"space-between",children:[(0,s.jsx)(i.xvT,{fontWeight:"semibold",children:"Configure your storage and messaging provider"}),(0,s.jsx)(i.wpx,{onClick:()=>{e.push(d.fz)},children:"Configure"})]}),(0,s.jsxs)(i.xvT,{children:["Before Fides can process your privacy requests we need two simple steps to configure your storage and email client."," "]})]})})},u=e=>{let{children:t,title:n,padded:r=!0,mainProps:d}=e,u=(0,l.hz)(),x=(0,o.useRouter)(),h="/privacy-requests"===x.pathname||"/datastore-connection"===x.pathname,g=!(u.flags.privacyRequestsConfiguration&&h),{data:m}=(0,c.JE)(void 0,{skip:g}),{data:j}=(0,c.PW)(void 0,{skip:g}),f=u.flags.privacyRequestsConfiguration&&(!m||!j)&&h;return(0,s.jsxs)(i.kCb,{"data-testid":n,direction:"column",h:"100vh",children:[(0,s.jsxs)(a(),{children:[(0,s.jsxs)("title",{children:["Fides Admin UI - ",n]}),(0,s.jsx)("meta",{name:"description",content:"Privacy Engineering Platform"}),(0,s.jsx)("link",{rel:"icon",href:"/favicon.ico"})]}),(0,s.jsxs)(i.kCb,{as:"main",direction:"column",py:r?6:0,px:r?10:0,h:r?"calc(100% - 48px)":"full",flex:1,minWidth:0,overflow:"auto",...d,children:[f?(0,s.jsx)(p,{}):null,t]})]})}},58754:function(e,t,n){var s=n(24246),i=n(13577),r=n(70788);t.Z=e=>{let{heading:t,breadcrumbItems:n,isSticky:a=!0,children:o,rightContent:l,style:c,...d}=e;return(0,s.jsxs)("div",{...d,style:a?{position:"sticky",top:"-24px",paddingTop:"24px",paddingBottom:"24px",paddingLeft:"40px",marginLeft:"-40px",paddingRight:"40px",marginRight:"-40px",marginTop:"-24px",left:0,zIndex:20,backgroundColor:"white",...c}:{paddingBottom:"24px",...c},children:[(0,s.jsxs)(i.jqI,{justify:"space-between",children:["string"==typeof t?(0,s.jsx)(i.lQT,{className:n||o?"pb-4":void 0,level:1,"data-testid":"page-heading",children:t}):t,l&&(0,s.jsx)("div",{"data-testid":"page-header-right-content",children:l})]}),!!n&&(0,s.jsx)(r.m,{className:o?"pb-4":void 0,items:n,"data-testid":"page-breadcrumb"}),o]})}},19904:function(e,t,n){n.d(t,{Tg:function(){return a}});var s=n(24246),i=n(16134),r=n(31793);let a=e=>(0,i.C)(r.uu).filter(t=>e.includes(t)).length>0;t.ZP=e=>{let{scopes:t,children:n}=e;return a(t)?(0,s.jsx)(s.Fragment,{children:n}):null}},70788:function(e,t,n){n.d(t,{m:function(){return c}});var s=n(24246),i=n(13577),r=n(79894),a=n.n(r),o=n(27378);let{Text:l}=i.AntTypography,c=e=>{let{items:t,...n}=e,r=(0,o.useMemo)(()=>null==t?void 0:t.map((e,n)=>{let r=n===t.length-1,o={...e},c=o.onClick&&!o.href;return("string"==typeof o.title&&(o.title=(0,s.jsx)(l,{style:{color:"inherit",maxWidth:r?void 0:400},ellipsis:!r,children:o.title})),c)?o.title=(0,s.jsx)(i.wpx,{type:"text",size:"small",icon:o.icon,onClick:o.onClick,className:"ant-breadcrumb-link -mt-px px-1 text-inherit",children:o.title}):(o.icon&&(o.title=(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("span",{className:"anticon align-text-bottom",children:o.icon}),o.title]})),o.href&&o.title&&(o.title=(0,s.jsx)(a(),{href:o.href,className:"ant-breadcrumb-link",children:o.title}),delete o.href)),o}),[t]);return(0,s.jsx)(i.zrq,{items:r,...n})}},3642:function(e,t,n){var s=n(24246),i=n(13577),r=n(86677),a=n.n(r),o=n(27378),l=n(812),c=n(58452),d=n(77830),p=n(19904),u=n(46628),x=n(98795),h=n(54682);t.Z=e=>{let{property:t,triggerComponent:n}=e,r=(0,i.pmc)(),g=(0,i.qY0)(),[m]=(0,x.YW)(),j=t.experiences.length>0,f=async()=>{g.onClose();let e=await m(t.id);if((0,l.D4)(e)){r((0,u.Vo)((0,l.e$)(e.error)));return}a().push("".concat(d.ru)),r((0,u.t5)("Property ".concat(t.name," deleted successfully")))};return(0,s.jsxs)(p.ZP,{scopes:[h.Sh.PROPERTY_DELETE],children:[(0,s.jsx)(i.esZ,{title:j?"All of the experiences on this property must be unlinked before the property can be deleted.":void 0,placement:"right",children:(0,s.jsx)("span",{children:o.cloneElement(n,{onClick:e=>{e.stopPropagation(),j||g.onOpen()},disabled:j})})}),(0,s.jsx)(c.Z,{isOpen:g.isOpen,onClose:g.onClose,onConfirm:f,title:"Delete ".concat(t.name),message:(0,s.jsxs)(i.xvT,{color:"gray.500",children:["You are about to delete property ",t.name,". This action is not reversible and will result in ",t.name," no longer being available for your data governance. Are you sure you want to proceed?"]}),continueButtonText:"Ok",isCentered:!0,icon:(0,s.jsx)(i.aNP,{})})]})}},25783:function(e,t,n){n.d(t,{V:function(){return M}});var s=n(24246),i=n(92222),r=n(59003),a=n(47935),o=n(13577),l=n(98784),c=n.n(l),d=n(86677),p=n(27378),u=n(77830),x=n(19904),h=n(32885),g=n(98795),m=n(54682),j=e=>{let{buttonLabel:t,buttonProps:n}=e,i=(0,d.useRouter)();return(0,s.jsx)(o.wpx,{onClick:()=>i.push(u.B9),"data-testid":"add-property-button",...n,children:t})},f=n(56358),y=n(88340),C=n(25980),b=n(14048);let v="{privacy-center-hostname-and-path}",w="{property-unique-id}",P='<script src="https://'.concat(v,"/fides.js?property_id=").concat(w,'"></script>'),R="<script>Fides.gtm()</script>";var T=e=>{let{property:t}=e,n=(0,o.qY0)(),i=(0,p.useRef)(null),{fidesCloud:r}=(0,C.hz)(),{data:a,isSuccess:l}=(0,h.Vh)(void 0,{skip:!r}),c=(0,p.useMemo)(()=>{let e=P.replace(w,t.id.toString());return r&&l&&(null==a?void 0:a.privacy_center_url)&&e.replace(v,a.privacy_center_url),e},[null==a?void 0:a.privacy_center_url,r,l,t]);return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(o.wpx,{"aria-label":"Install property",size:"small",className:"mr-[10px]",icon:(0,s.jsx)(b.A5,{}),onClick:e=>{e.stopPropagation(),n.onOpen()}}),(0,s.jsxs)(o.u_l,{isOpen:n.isOpen,onClose:n.onClose,isCentered:!0,size:"xl",initialFocusRef:i,children:[(0,s.jsx)(o.ZAr,{}),(0,s.jsxs)(o.hzk,{"data-testid":"copy-js-tag-modal",children:[(0,s.jsx)(o.xBx,{tabIndex:-1,ref:i,pb:0,children:"Install Fides Consent Manager"}),(0,s.jsx)(o.fef,{pt:3,pb:6,fontSize:"14px",fontWeight:500,children:(0,s.jsxs)(o.Kqy,{spacing:3,children:[(0,s.jsxs)(o.xvT,{children:["Copy the code below and paste it onto every page of the"," ",t.name," property."]}),(0,s.jsxs)(o.xvT,{children:["1. Paste this code as high in the ",(0,s.jsx)("b",{children:"<head>"})," of the page as possible:"]}),(0,s.jsxs)(o.EKh,{display:"flex",justifyContent:"space-between",alignItems:"top",p:0,children:[(0,s.jsx)(o.xvT,{p:4,children:c}),(0,s.jsx)(y.Z,{copyText:c})]}),(0,s.jsx)(o.xvT,{children:"2. Optionally, you can enable Google Tag Manager for managing tags on your website by including the script tag below along with the Fides.js tag. Place it below the Fides.js script tag."}),(0,s.jsxs)(o.EKh,{display:"flex",justifyContent:"space-between",alignItems:"center",p:0,children:[(0,s.jsx)(o.xvT,{p:4,children:R}),(0,s.jsx)(y.Z,{copyText:R})]}),(0,s.jsxs)(o.xvT,{children:["For more information about adding a JavaScript tag to your website, please visit"," ",(0,s.jsx)(o.rUS,{color:"complimentary.500",href:"https://docs.ethyca.com/tutorials/consent-management-configuration/install-fides#install-fidesjs-script-on-your-website",isExternal:!0,children:"docs.ethyca.com"})]})]})})]})]})]})},k=n(3642),E=e=>{let{property:t}=e,n=(0,d.useRouter)(),i=()=>{n.push("".concat(u.ru,"/").concat(t.id))};return(0,s.jsxs)(o.xuv,{py:2,children:[(0,s.jsx)(T,{property:t}),(0,s.jsx)(x.ZP,{scopes:[m.Sh.PROPERTY_UPDATE],children:(0,s.jsx)(o.wpx,{"aria-label":"Edit property","data-testid":"edit-property-button",size:"small",className:"mr-[10px]",icon:(0,s.jsx)(o.dY8,{}),onClick:e=>{e.stopPropagation(),i()}})}),(0,s.jsx)(k.Z,{property:t,triggerComponent:(0,s.jsx)(o.wpx,{"aria-label":"Delete property","data-testid":"delete-property-button",size:"small",className:"mr-[10px]",icon:(0,s.jsx)(f.q,{})})})]})};let z=(0,i.Cl)(),Z={items:[],total:0,page:1,size:25,pages:1},H=()=>(0,s.jsx)(o.gCW,{mt:6,p:10,spacing:4,borderRadius:"base",maxW:"70%","data-testid":"no-results-notice",alignSelf:"center",margin:"auto",children:(0,s.jsxs)(o.gCW,{children:[(0,s.jsx)(o.xvT,{fontSize:"md",fontWeight:"600",children:"No properties found."}),(0,s.jsxs)(x.ZP,{scopes:[m.Sh.PROPERTY_CREATE],children:[(0,s.jsx)(o.xvT,{fontSize:"sm",children:"Click “Add property” to add your first property to Fides."}),(0,s.jsx)(j,{buttonLabel:"Add property",buttonProps:{type:"primary"}})]})]})}),M=()=>{let{isLoading:e}=(0,h.x8)(),t=(0,x.Tg)([m.Sh.PROPERTY_UPDATE]),{PAGE_SIZES:n,pageSize:l,setPageSize:f,onPreviousPageClick:y,isPreviousPageDisabled:C,onNextPageClick:b,isNextPageDisabled:v,startRange:w,endRange:P,pageIndex:R,setTotalPages:T,resetPageIndexToDefault:k}=(0,a.oi)(),M=(0,d.useRouter)(),[V,_]=(0,p.useState)(),N=(0,p.useCallback)(e=>{k(),_(e)},[k,_]),{isFetching:S,isLoading:q,data:O}=(0,g.gz)({page:R,size:l,search:V}),{items:A,total:F,pages:I}=(0,p.useMemo)(()=>O||Z,[O]);(0,p.useEffect)(()=>{T(I)},[I,T]);let L=(0,p.useMemo)(()=>[z.accessor(e=>e.name,{id:"name",cell:e=>(0,s.jsx)(a.G3,{value:e.getValue()}),header:e=>(0,s.jsx)(a.Rr,{value:"Property",...e})}),z.accessor(e=>e.type,{id:"type",cell:e=>(0,s.jsx)(a.G3,{value:c().capitalize(e.getValue())}),header:e=>(0,s.jsx)(a.Rr,{value:"Type",...e})}),z.accessor(e=>e.experiences.map(e=>e.name),{id:"experiences",cell:e=>(0,s.jsx)(a.WP,{suffix:"experiences",value:e.getValue(),...e}),header:e=>(0,s.jsx)(a.Rr,{value:"Experience",...e}),meta:{showHeaderMenu:!0}}),z.display({id:"actions",header:"Actions",cell:e=>{let{row:t}=e;return(0,s.jsx)(E,{property:t.original})}})],[]),W=(0,r.b7)({getCoreRowModel:(0,i.sC)(),getGroupedRowModel:(0,i.qe)(),getExpandedRowModel:(0,i.rV)(),columns:L,manualPagination:!0,data:A,state:{expanded:!0},columnResizeMode:"onChange"});return q||e?(0,s.jsx)(a.I4,{rowHeight:36,numRows:15}):(0,s.jsx)("div",{children:(0,s.jsxs)(o.kCb,{flex:1,direction:"column",overflow:"auto",children:[(0,s.jsxs)(a.Q$,{children:[(0,s.jsx)(a.HO,{globalFilter:V,setGlobalFilter:N,placeholder:"Search property"}),(0,s.jsx)(o.Ugi,{alignItems:"center",spacing:4,children:(0,s.jsx)(x.ZP,{scopes:[m.Sh.PROPERTY_CREATE],children:(0,s.jsx)(j,{buttonLabel:"Add property"})})})]}),(0,s.jsx)(a.ZK,{tableInstance:W,onRowClick:e=>{t&&M.push({pathname:u.D3,query:{id:e.id}})},emptyTableNotice:(0,s.jsx)(H,{})}),(0,s.jsx)(a.s8,{totalRows:F||0,pageSizes:n,setPageSize:f,onPreviousPageClick:y,isPreviousPageDisabled:C||S,onNextPageClick:b,isNextPageDisabled:v||S,startRange:w,endRange:P})]})})}}}]);
|
|
1
|
+
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[79],{56358:function(e,t,n){n.d(t,{q:function(){return i}});var s=n(24246);let i=(0,n(27824).IUT)({displayName:"TrashCanOutlineIcon",viewBox:"0 0 11 12",path:(0,s.jsx)("path",{d:"M4.5166 1.60859L4.1084 2.21875H7.22363L6.81543 1.60859C6.7832 1.56133 6.72949 1.53125 6.67148 1.53125H4.6584C4.60039 1.53125 4.54668 1.55918 4.51445 1.60859H4.5166ZM7.6748 1.03711L8.46328 2.21875H8.75977H9.79102H9.96289C10.2486 2.21875 10.4785 2.44863 10.4785 2.73438C10.4785 3.02012 10.2486 3.25 9.96289 3.25H9.79102V9.78125C9.79102 10.7309 9.02188 11.5 8.07227 11.5H3.25977C2.31016 11.5 1.54102 10.7309 1.54102 9.78125V3.25H1.36914C1.0834 3.25 0.853516 3.02012 0.853516 2.73438C0.853516 2.44863 1.0834 2.21875 1.36914 2.21875H1.54102H2.57227H2.86875L3.65723 1.03496C3.88066 0.701953 4.25664 0.5 4.6584 0.5H6.67148C7.07324 0.5 7.44922 0.701953 7.67266 1.03496L7.6748 1.03711ZM2.57227 3.25V9.78125C2.57227 10.1615 2.87949 10.4688 3.25977 10.4688H8.07227C8.45254 10.4688 8.75977 10.1615 8.75977 9.78125V3.25H2.57227ZM4.29102 4.625V9.09375C4.29102 9.28281 4.13633 9.4375 3.94727 9.4375C3.7582 9.4375 3.60352 9.28281 3.60352 9.09375V4.625C3.60352 4.43594 3.7582 4.28125 3.94727 4.28125C4.13633 4.28125 4.29102 4.43594 4.29102 4.625ZM6.00977 4.625V9.09375C6.00977 9.28281 5.85508 9.4375 5.66602 9.4375C5.47695 9.4375 5.32227 9.28281 5.32227 9.09375V4.625C5.32227 4.43594 5.47695 4.28125 5.66602 4.28125C5.85508 4.28125 6.00977 4.43594 6.00977 4.625ZM7.72852 4.625V9.09375C7.72852 9.28281 7.57383 9.4375 7.38477 9.4375C7.1957 9.4375 7.04102 9.28281 7.04102 9.09375V4.625C7.04102 4.43594 7.1957 4.28125 7.38477 4.28125C7.57383 4.28125 7.72852 4.43594 7.72852 4.625Z",fill:"currentColor"})})},77213:function(e,t,n){n.d(t,{Z:function(){return u}});var s=n(24246),i=n(27824),r=n(88038),a=n.n(r),o=n(86677);n(27378);var l=n(25980),c=n(90867),d=n(77830),p=()=>{let e=(0,o.useRouter)();return(0,s.jsx)(i.xuv,{bg:"gray.50",border:"1px solid",borderColor:"blue.400",borderRadius:"md",justifyContent:"space-between",p:5,mb:5,mt:5,children:(0,s.jsxs)(i.xuv,{children:[(0,s.jsxs)(i.Kqy,{direction:{base:"column",sm:"row"},justifyContent:"space-between",children:[(0,s.jsx)(i.xvT,{fontWeight:"semibold",children:"Configure your storage and messaging provider"}),(0,s.jsx)(i.wpx,{onClick:()=>{e.push(d.fz)},children:"Configure"})]}),(0,s.jsxs)(i.xvT,{children:["Before Fides can process your privacy requests we need two simple steps to configure your storage and email client."," "]})]})})},u=e=>{let{children:t,title:n,padded:r=!0,mainProps:d}=e,u=(0,l.hz)(),x=(0,o.useRouter)(),h="/privacy-requests"===x.pathname||"/datastore-connection"===x.pathname,g=!(u.flags.privacyRequestsConfiguration&&h),{data:m}=(0,c.JE)(void 0,{skip:g}),{data:j}=(0,c.PW)(void 0,{skip:g}),f=u.flags.privacyRequestsConfiguration&&(!m||!j)&&h;return(0,s.jsxs)(i.kCb,{"data-testid":n,direction:"column",h:"100vh",children:[(0,s.jsxs)(a(),{children:[(0,s.jsxs)("title",{children:["Fides Admin UI - ",n]}),(0,s.jsx)("meta",{name:"description",content:"Privacy Engineering Platform"}),(0,s.jsx)("link",{rel:"icon",href:"/favicon.ico"})]}),(0,s.jsxs)(i.kCb,{as:"main",direction:"column",py:r?6:0,px:r?10:0,h:r?"calc(100% - 48px)":"full",flex:1,minWidth:0,overflow:"auto",...d,children:[f?(0,s.jsx)(p,{}):null,t]})]})}},58754:function(e,t,n){var s=n(24246),i=n(27824),r=n(70788);t.Z=e=>{let{heading:t,breadcrumbItems:n,isSticky:a=!0,children:o,rightContent:l,style:c,...d}=e;return(0,s.jsxs)("div",{...d,style:a?{position:"sticky",top:"-24px",paddingTop:"24px",paddingBottom:"24px",paddingLeft:"40px",marginLeft:"-40px",paddingRight:"40px",marginRight:"-40px",marginTop:"-24px",left:0,zIndex:20,backgroundColor:"white",...c}:{paddingBottom:"24px",...c},children:[(0,s.jsxs)(i.jqI,{justify:"space-between",children:["string"==typeof t?(0,s.jsx)(i.lQT,{className:n||o?"pb-4":void 0,level:1,"data-testid":"page-heading",children:t}):t,l&&(0,s.jsx)("div",{"data-testid":"page-header-right-content",children:l})]}),!!n&&(0,s.jsx)(r.m,{className:o?"pb-4":void 0,items:n,"data-testid":"page-breadcrumb"}),o]})}},19904:function(e,t,n){n.d(t,{Tg:function(){return a}});var s=n(24246),i=n(16134),r=n(31793);let a=e=>(0,i.C)(r.uu).filter(t=>e.includes(t)).length>0;t.ZP=e=>{let{scopes:t,children:n}=e;return a(t)?(0,s.jsx)(s.Fragment,{children:n}):null}},70788:function(e,t,n){n.d(t,{m:function(){return c}});var s=n(24246),i=n(27824),r=n(79894),a=n.n(r),o=n(27378);let{Text:l}=i.AntTypography,c=e=>{let{items:t,...n}=e,r=(0,o.useMemo)(()=>null==t?void 0:t.map((e,n)=>{let r=n===t.length-1,o={...e},c=o.onClick&&!o.href;return("string"==typeof o.title&&(o.title=(0,s.jsx)(l,{style:{color:"inherit",maxWidth:r?void 0:400},ellipsis:!r,children:o.title})),c)?o.title=(0,s.jsx)(i.wpx,{type:"text",size:"small",icon:o.icon,onClick:o.onClick,className:"ant-breadcrumb-link -mt-px px-1 text-inherit",children:o.title}):(o.icon&&(o.title=(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("span",{className:"anticon align-text-bottom",children:o.icon}),o.title]})),o.href&&o.title&&(o.title=(0,s.jsx)(a(),{href:o.href,className:"ant-breadcrumb-link",children:o.title}),delete o.href)),o}),[t]);return(0,s.jsx)(i.zrq,{items:r,...n})}},3642:function(e,t,n){var s=n(24246),i=n(27824),r=n(86677),a=n.n(r),o=n(27378),l=n(812),c=n(58452),d=n(77830),p=n(19904),u=n(46628),x=n(98795),h=n(54682);t.Z=e=>{let{property:t,triggerComponent:n}=e,r=(0,i.pmc)(),g=(0,i.qY0)(),[m]=(0,x.YW)(),j=t.experiences.length>0,f=async()=>{g.onClose();let e=await m(t.id);if((0,l.D4)(e)){r((0,u.Vo)((0,l.e$)(e.error)));return}a().push("".concat(d.ru)),r((0,u.t5)("Property ".concat(t.name," deleted successfully")))};return(0,s.jsxs)(p.ZP,{scopes:[h.Sh.PROPERTY_DELETE],children:[(0,s.jsx)(i.esZ,{title:j?"All of the experiences on this property must be unlinked before the property can be deleted.":void 0,placement:"right",children:(0,s.jsx)("span",{children:o.cloneElement(n,{onClick:e=>{e.stopPropagation(),j||g.onOpen()},disabled:j})})}),(0,s.jsx)(c.Z,{isOpen:g.isOpen,onClose:g.onClose,onConfirm:f,title:"Delete ".concat(t.name),message:(0,s.jsxs)(i.xvT,{color:"gray.500",children:["You are about to delete property ",t.name,". This action is not reversible and will result in ",t.name," no longer being available for your data governance. Are you sure you want to proceed?"]}),continueButtonText:"Ok",isCentered:!0,icon:(0,s.jsx)(i.aNP,{})})]})}},25783:function(e,t,n){n.d(t,{V:function(){return M}});var s=n(24246),i=n(92222),r=n(59003),a=n(47935),o=n(27824),l=n(98784),c=n.n(l),d=n(86677),p=n(27378),u=n(77830),x=n(19904),h=n(32885),g=n(98795),m=n(54682),j=e=>{let{buttonLabel:t,buttonProps:n}=e,i=(0,d.useRouter)();return(0,s.jsx)(o.wpx,{onClick:()=>i.push(u.B9),"data-testid":"add-property-button",...n,children:t})},f=n(56358),y=n(88340),C=n(25980),b=n(14048);let v="{privacy-center-hostname-and-path}",w="{property-unique-id}",P='<script src="https://'.concat(v,"/fides.js?property_id=").concat(w,'"></script>'),R="<script>Fides.gtm()</script>";var T=e=>{let{property:t}=e,n=(0,o.qY0)(),i=(0,p.useRef)(null),{fidesCloud:r}=(0,C.hz)(),{data:a,isSuccess:l}=(0,h.Vh)(void 0,{skip:!r}),c=(0,p.useMemo)(()=>{let e=P.replace(w,t.id.toString());return r&&l&&(null==a?void 0:a.privacy_center_url)&&e.replace(v,a.privacy_center_url),e},[null==a?void 0:a.privacy_center_url,r,l,t]);return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(o.wpx,{"aria-label":"Install property",size:"small",className:"mr-[10px]",icon:(0,s.jsx)(b.A5,{}),onClick:e=>{e.stopPropagation(),n.onOpen()}}),(0,s.jsxs)(o.u_l,{isOpen:n.isOpen,onClose:n.onClose,isCentered:!0,size:"xl",initialFocusRef:i,children:[(0,s.jsx)(o.ZAr,{}),(0,s.jsxs)(o.hzk,{"data-testid":"copy-js-tag-modal",children:[(0,s.jsx)(o.xBx,{tabIndex:-1,ref:i,pb:0,children:"Install Fides Consent Manager"}),(0,s.jsx)(o.fef,{pt:3,pb:6,fontSize:"14px",fontWeight:500,children:(0,s.jsxs)(o.Kqy,{spacing:3,children:[(0,s.jsxs)(o.xvT,{children:["Copy the code below and paste it onto every page of the"," ",t.name," property."]}),(0,s.jsxs)(o.xvT,{children:["1. Paste this code as high in the ",(0,s.jsx)("b",{children:"<head>"})," of the page as possible:"]}),(0,s.jsxs)(o.EKh,{display:"flex",justifyContent:"space-between",alignItems:"top",p:0,children:[(0,s.jsx)(o.xvT,{p:4,children:c}),(0,s.jsx)(y.Z,{copyText:c})]}),(0,s.jsx)(o.xvT,{children:"2. Optionally, you can enable Google Tag Manager for managing tags on your website by including the script tag below along with the Fides.js tag. Place it below the Fides.js script tag."}),(0,s.jsxs)(o.EKh,{display:"flex",justifyContent:"space-between",alignItems:"center",p:0,children:[(0,s.jsx)(o.xvT,{p:4,children:R}),(0,s.jsx)(y.Z,{copyText:R})]}),(0,s.jsxs)(o.xvT,{children:["For more information about adding a JavaScript tag to your website, please visit"," ",(0,s.jsx)(o.rUS,{color:"complimentary.500",href:"https://docs.ethyca.com/tutorials/consent-management-configuration/install-fides#install-fidesjs-script-on-your-website",isExternal:!0,children:"docs.ethyca.com"})]})]})})]})]})]})},k=n(3642),E=e=>{let{property:t}=e,n=(0,d.useRouter)(),i=()=>{n.push("".concat(u.ru,"/").concat(t.id))};return(0,s.jsxs)(o.xuv,{py:2,children:[(0,s.jsx)(T,{property:t}),(0,s.jsx)(x.ZP,{scopes:[m.Sh.PROPERTY_UPDATE],children:(0,s.jsx)(o.wpx,{"aria-label":"Edit property","data-testid":"edit-property-button",size:"small",className:"mr-[10px]",icon:(0,s.jsx)(o.dY8,{}),onClick:e=>{e.stopPropagation(),i()}})}),(0,s.jsx)(k.Z,{property:t,triggerComponent:(0,s.jsx)(o.wpx,{"aria-label":"Delete property","data-testid":"delete-property-button",size:"small",className:"mr-[10px]",icon:(0,s.jsx)(f.q,{})})})]})};let z=(0,i.Cl)(),Z={items:[],total:0,page:1,size:25,pages:1},H=()=>(0,s.jsx)(o.gCW,{mt:6,p:10,spacing:4,borderRadius:"base",maxW:"70%","data-testid":"no-results-notice",alignSelf:"center",margin:"auto",children:(0,s.jsxs)(o.gCW,{children:[(0,s.jsx)(o.xvT,{fontSize:"md",fontWeight:"600",children:"No properties found."}),(0,s.jsxs)(x.ZP,{scopes:[m.Sh.PROPERTY_CREATE],children:[(0,s.jsx)(o.xvT,{fontSize:"sm",children:"Click “Add property” to add your first property to Fides."}),(0,s.jsx)(j,{buttonLabel:"Add property",buttonProps:{type:"primary"}})]})]})}),M=()=>{let{isLoading:e}=(0,h.x8)(),t=(0,x.Tg)([m.Sh.PROPERTY_UPDATE]),{PAGE_SIZES:n,pageSize:l,setPageSize:f,onPreviousPageClick:y,isPreviousPageDisabled:C,onNextPageClick:b,isNextPageDisabled:v,startRange:w,endRange:P,pageIndex:R,setTotalPages:T,resetPageIndexToDefault:k}=(0,a.oi)(),M=(0,d.useRouter)(),[V,_]=(0,p.useState)(),N=(0,p.useCallback)(e=>{k(),_(e)},[k,_]),{isFetching:S,isLoading:q,data:O}=(0,g.gz)({page:R,size:l,search:V}),{items:A,total:F,pages:I}=(0,p.useMemo)(()=>O||Z,[O]);(0,p.useEffect)(()=>{T(I)},[I,T]);let L=(0,p.useMemo)(()=>[z.accessor(e=>e.name,{id:"name",cell:e=>(0,s.jsx)(a.G3,{value:e.getValue()}),header:e=>(0,s.jsx)(a.Rr,{value:"Property",...e})}),z.accessor(e=>e.type,{id:"type",cell:e=>(0,s.jsx)(a.G3,{value:c().capitalize(e.getValue())}),header:e=>(0,s.jsx)(a.Rr,{value:"Type",...e})}),z.accessor(e=>e.experiences.map(e=>e.name),{id:"experiences",cell:e=>(0,s.jsx)(a.WP,{suffix:"experiences",value:e.getValue(),...e}),header:e=>(0,s.jsx)(a.Rr,{value:"Experience",...e}),meta:{showHeaderMenu:!0}}),z.display({id:"actions",header:"Actions",cell:e=>{let{row:t}=e;return(0,s.jsx)(E,{property:t.original})}})],[]),W=(0,r.b7)({getCoreRowModel:(0,i.sC)(),getGroupedRowModel:(0,i.qe)(),getExpandedRowModel:(0,i.rV)(),columns:L,manualPagination:!0,data:A,state:{expanded:!0},columnResizeMode:"onChange"});return q||e?(0,s.jsx)(a.I4,{rowHeight:36,numRows:15}):(0,s.jsx)("div",{children:(0,s.jsxs)(o.kCb,{flex:1,direction:"column",overflow:"auto",children:[(0,s.jsxs)(a.Q$,{children:[(0,s.jsx)(a.HO,{globalFilter:V,setGlobalFilter:N,placeholder:"Search property"}),(0,s.jsx)(o.Ugi,{alignItems:"center",spacing:4,children:(0,s.jsx)(x.ZP,{scopes:[m.Sh.PROPERTY_CREATE],children:(0,s.jsx)(j,{buttonLabel:"Add property"})})})]}),(0,s.jsx)(a.ZK,{tableInstance:W,onRowClick:e=>{t&&M.push({pathname:u.D3,query:{id:e.id}})},emptyTableNotice:(0,s.jsx)(H,{})}),(0,s.jsx)(a.s8,{totalRows:F||0,pageSizes:n,setPageSize:f,onPreviousPageClick:y,isPreviousPageDisabled:C||S,onNextPageClick:b,isNextPageDisabled:v||S,startRange:w,endRange:P})]})})}}}]);
|
fides/ui-build/static/admin/_next/static/chunks/{796-3bdda2a7868464af.js → 796-0b768155bf20505f.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[796],{77213:function(e,t,n){n.d(t,{Z:function(){return g}});var i=n(24246),l=n(13577),s=n(88038),o=n.n(s),a=n(86677);n(27378);var r=n(25980),d=n(90867),c=n(77830),u=()=>{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(c.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."," "]})]})})},g=e=>{let{children:t,title:n,padded:s=!0,mainProps:c}=e,g=(0,r.hz)(),h=(0,a.useRouter)(),x="/privacy-requests"===h.pathname||"/datastore-connection"===h.pathname,m=!(g.flags.privacyRequestsConfiguration&&x),{data:p}=(0,d.JE)(void 0,{skip:m}),{data:j}=(0,d.PW)(void 0,{skip:m}),f=g.flags.privacyRequestsConfiguration&&(!p||!j)&&x;return(0,i.jsxs)(l.kCb,{"data-testid":n,direction:"column",h:"100vh",children:[(0,i.jsxs)(o(),{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",...c,children:[f?(0,i.jsx)(u,{}):null,t]})]})}},58754:function(e,t,n){var i=n(24246),l=n(13577),s=n(70788);t.Z=e=>{let{heading:t,breadcrumbItems:n,isSticky:o=!0,children:a,rightContent:r,style:d,...c}=e;return(0,i.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,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,r&&(0,i.jsx)("div",{"data-testid":"page-header-right-content",children:r})]}),!!n&&(0,i.jsx)(s.m,{className:a?"pb-4":void 0,items:n,"data-testid":"page-breadcrumb"}),a]})}},70788:function(e,t,n){n.d(t,{m:function(){return d}});var i=n(24246),l=n(13577),s=n(79894),o=n.n(s),a=n(27378);let{Text:r}=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)(r,{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)(o(),{href:a.href,className:"ant-breadcrumb-link",children:a.title}),delete a.href)),a}),[t]);return(0,i.jsx)(l.zrq,{items:s,...n})}},15826:function(e,t,n){n.d(t,{$:function(){return k}});var i=n(24246),l=n(92222),s=n(59003),o=n(25980),a=n(812),r=n(47935),d=n(46628),c=n(13577),u=n(86677),g=n(27378),h=n(16134),x=n(58452),m=n(77830),p=n(23923),j=n(32885);let f=e=>{let{onChange:t,displayText:n,isChecked:l,value:s}=e;return(0,i.jsx)(c.XZJ,{id:"checkbox-".concat(s),value:s,height:"20px",mb:3,isChecked:l,onChange:t,colorScheme:"complimentary",mr:5,children:(0,i.jsx)(c.xvT,{fontSize:"sm",lineHeight:5,height:"20px",textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap",children:n})},s)},b={GVL:!1,AC:!1,COMPASS:!1};var C=e=>{let{isOpen:t,onClose:n,tableInstance:l}=e,[s,o]=(0,g.useState)(b);return(0,g.useMemo)(()=>{let e={id:"vendor_id",value:[]};s.GVL&&e.value.push("gvl"),s.AC&&e.value.push("gacp"),l.setColumnFilters([e])},[s,l]),(0,i.jsxs)(c.u_l,{isOpen:t,onClose:n,isCentered:!0,size:"2xl",children:[(0,i.jsx)(c.ZAr,{}),(0,i.jsxs)(c.hzk,{children:[(0,i.jsx)(c.xBx,{children:"Filters"}),(0,i.jsx)(c.olH,{}),(0,i.jsx)(c.izJ,{}),(0,i.jsxs)(c.fef,{maxH:"85vh",px:6,py:4,overflowX:"auto",children:[(0,i.jsx)(c.xvT,{fontSize:"md",fontWeight:"bold",mb:2,children:"Sources"}),(0,i.jsx)(f,{onChange:()=>{o(e=>({...e,GVL:!e.GVL}))},displayText:a.iC.gvl.fullName,isChecked:s.GVL,value:"gvl"}),(0,i.jsx)(f,{onChange:()=>{o(e=>({...e,AC:!e.AC}))},displayText:a.iC.gacp.fullName,isChecked:s.AC,value:"gacp"})]}),(0,i.jsx)(c.mzw,{children:(0,i.jsxs)(c.xuv,{display:"flex",justifyContent:"space-between",width:"100%",children:[(0,i.jsx)(c.wpx,{onClick:()=>{l.setColumnFilters([]),o(b)},className:"mr-3 grow",children:"Reset Filters"}),(0,i.jsx)(c.wpx,{"data-testid":"filter-done-btn",type:"primary",onClick:n,className:"grow",children:"Done"})]})})]})]})};let v=e=>{var t;let{value:n}=e,l=(0,a.cj)(n),s=null!==(t=a.iC[l])&&void 0!==t?t:{label:"",fullName:""};return(0,i.jsx)(c.kCb,{alignItems:"center",justifyContent:"center",height:"100%",mr:"2",children:(0,i.jsx)(c.esZ,{title:s.fullName,children:(0,i.jsx)(c.j8w,{children:s.label})})})},w=(0,l.Cl)(),y=()=>(0,i.jsxs)(c.gCW,{mt:6,p:10,spacing:4,borderRadius:"base",maxW:"70%","data-testid":"no-results-notice",alignSelf:"center",margin:"auto",children:[(0,i.jsxs)(c.gCW,{children:[(0,i.jsx)(c.xvT,{fontSize:"md",fontWeight:"600",children:"No results found."}),(0,i.jsx)(c.xvT,{fontSize:"sm",children:'Can\'t find the vendor you are looking for? Add custom systems or unlisted\n vendors by selecting the "Add custom vendor" button below.'})]}),(0,i.jsx)(p.Z,{buttonLabel:"Add custom vendor",buttonProps:{type:"primary"}})]}),S="Vendor",k=e=>{let{redirectRoute:t}=e,n=(0,c.pmc)(),{dictionaryService:f,tcf:b}=(0,o.hz)(),{isLoading:k}=(0,j.x8)(),R=(0,u.useRouter)(),{isLoading:L}=(0,j.iN)(void 0,{skip:!f}),[z,{isLoading:N,isSuccess:I}]=(0,j.Qk)(),A=(0,h.C)(j.gG),[F,T]=(0,g.useState)(),{isOpen:_,onOpen:P,onClose:M}=(0,c.qY0)(),{isOpen:W,onClose:G,onOpen:V}=(0,c.qY0)(),[O,Z]=(0,g.useState)(!1),q=A.every(e=>e.linked_system),D=(0,g.useMemo)(()=>[w.display({id:"select",header:e=>{let{table:t}=e;return(0,i.jsx)(r.k,{dataTestId:"select-page-checkbox",isChecked:t.getIsAllPageRowsSelected(),isDisabled:q||t.getPaginationRowModel().rows.filter(e=>e.original.linked_system).length===t.getState().pagination.pageSize,isIndeterminate:t.getPaginationRowModel().rows.filter(e=>e.getCanSelect()).some(e=>!e.getIsSelected()),onChange:()=>{t.setRowSelection(e=>{let n={...e};return t.getRowModel().rows.forEach(e=>{e.getCanSelect()&&(n[e.id]=!n[e.id])}),n}),Z(e=>!e)}})},cell:e=>{let{row:t}=e;return(0,i.jsx)(r.k,{isChecked:t.getIsSelected(),isDisabled:!t.getCanSelect(),isIndeterminate:t.getIsSomeSelected(),onChange:t.getToggleSelectedHandler()})}}),w.accessor(e=>e.vendor_id,{id:"id",cell:e=>(0,i.jsx)(r.G3,{value:e.getValue()}),header:e=>(0,i.jsx)(r.Rr,{value:"ID",...e}),enableColumnFilter:b}),w.accessor(e=>e.name,{id:"name",cell:e=>(0,i.jsx)(r.G3,{value:e.getValue()}),header:e=>(0,i.jsx)(r.Rr,{value:"Name",...e})}),w.accessor(e=>e.vendor_id,{id:"source",cell:e=>(0,i.jsx)(v,{value:e.getValue()}),header:e=>(0,i.jsx)(r.Rr,{value:"Source",...e}),enableColumnFilter:b,filterFn:"arrIncludesSome"})],[q,b]),E=(0,s.b7)({columns:D,data:A,getCoreRowModel:(0,l.sC)(),getSortedRowModel:(0,l.tj)(),getFilteredRowModel:(0,l.vL)(),getPaginationRowModel:(0,l.G_)(),onGlobalFilterChange:T,enableRowSelection:e=>!e.original.linked_system,enableSorting:!0,enableGlobalFilter:!0,state:{globalFilter:F,columnVisibility:{id:b,source:b}},initialState:{pagination:{pageSize:r.W3[0]},columnSizing:{select:0,id:0,source:0,name:0}},enableColumnResizing:!0,columnResizeMode:"onChange"});(0,g.useEffect)(()=>{let e={};A.forEach((t,n)=>{t.linked_system&&(e[n]=!0)}),Object.keys(e).length&&E.setRowSelection(e)},[A,E]);let{totalRows:H,onPreviousPageClick:B,isPreviousPageDisabled:Y,onNextPageClick:$,isNextPageDisabled:J,setPageSize:Q,startRange:X,endRange:K}=(0,r.bX)(E),U=async()=>{let e=E.getSelectedRowModel().rows.filter(e=>!e.original.linked_system).map(e=>e.original.vendor_id);if(e.length>0){let i=await z(e);R.push(t),(0,a.D4)(i)?n((0,d.Vo)((0,a.e$)(i.error))):n((0,d.t5)("Successfully added ".concat(e.length," ").concat(S.toLocaleLowerCase()).concat(e.length>1?"s":"")))}},ee=E.getSelectedRowModel().rows.some(e=>!e.original.linked_system);if(!f&&!k)return R.push(m.gp),null;if(N||I)return(0,i.jsx)(c.kCb,{height:"100%",justifyContent:"center",alignItems:"center",children:(0,i.jsx)(c.$jN,{})});if(L)return(0,i.jsx)(r.I4,{rowHeight:36,numRows:15});let et=q?"All ".concat(S.toLocaleLowerCase(),"s have already been added"):"Select a ".concat(S.toLocaleLowerCase()," "),en=E.getSelectedRowModel().rows.filter(e=>!e.original.linked_system).length,ei=E.getState().columnFilters.length>0?E.getState().columnFilters.filter(e=>"vendor_id"===e.id)[0].value.length:0;return(0,i.jsxs)(c.kCb,{flex:1,direction:"column",overflow:"auto","data-testid":"add-multiple-systems-tbl",children:[(0,i.jsx)(x.Z,{isOpen:W,isCentered:!0,onCancel:G,onClose:G,onConfirm:U,title:"Confirmation",message:"You are about to add ".concat(en.toLocaleString("en")," ").concat(S.toLocaleLowerCase()).concat(en>1?"s":"")}),(0,i.jsx)(C,{isOpen:_,onClose:M,tableInstance:E}),(0,i.jsxs)(r.Q$,{children:[(0,i.jsxs)(c.kCb,{alignItems:"center",grow:1,children:[(0,i.jsx)(c.xuv,{maxW:"420px",width:"100%",children:(0,i.jsx)(r.HO,{globalFilter:F,setGlobalFilter:T,placeholder:"Search"})}),en>0?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)(c.xvT,{fontWeight:"700",fontSize:"sm",lineHeight:"2",ml:4,children:[en.toLocaleString("en")," selected"]}),(0,i.jsx)(c.esZ,{title:et,children:(0,i.jsx)(c.wpx,{onClick:V,"data-testid":"add-multiple-systems-btn",disabled:!ee,className:"ml-4",children:"Add"})})]}):null]}),(0,i.jsxs)(c.Ugi,{spacing:4,alignItems:"center",children:[(0,i.jsx)(p.Z,{buttonLabel:"Add custom vendor"}),b?(0,i.jsx)("span",{children:(0,i.jsxs)(c.wpx,{onClick:P,"data-testid":"filter-multiple-systems-btn",children:["Filter",ei>0?(0,i.jsx)(c.j8w,{className:"mr-0",children:ei}):null]})}):null]})]}),(0,i.jsx)(r.ZK,{tableInstance:E,rowActionBar:(0,i.jsx)(r.AA,{tableInstance:E,selectedRows:en,isOpen:O}),renderRowTooltipLabel:e=>{if(!e.getCanSelect())return"This vendor has already been added. You can view the properties of this vendor by going to the System Inventory."},emptyTableNotice:(0,i.jsx)(y,{})}),(0,i.jsx)(r.s8,{pageSizes:r.W3,totalRows:H||0,onPreviousPageClick:B,isPreviousPageDisabled:Y,onNextPageClick:$,isNextPageDisabled:J,setPageSize:Q,startRange:X,endRange:K})]})}}}]);
|
|
1
|
+
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[796],{77213:function(e,t,n){n.d(t,{Z:function(){return g}});var i=n(24246),l=n(27824),s=n(88038),o=n.n(s),a=n(86677);n(27378);var r=n(25980),d=n(90867),c=n(77830),u=()=>{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(c.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."," "]})]})})},g=e=>{let{children:t,title:n,padded:s=!0,mainProps:c}=e,g=(0,r.hz)(),h=(0,a.useRouter)(),x="/privacy-requests"===h.pathname||"/datastore-connection"===h.pathname,m=!(g.flags.privacyRequestsConfiguration&&x),{data:p}=(0,d.JE)(void 0,{skip:m}),{data:j}=(0,d.PW)(void 0,{skip:m}),f=g.flags.privacyRequestsConfiguration&&(!p||!j)&&x;return(0,i.jsxs)(l.kCb,{"data-testid":n,direction:"column",h:"100vh",children:[(0,i.jsxs)(o(),{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",...c,children:[f?(0,i.jsx)(u,{}):null,t]})]})}},58754:function(e,t,n){var i=n(24246),l=n(27824),s=n(70788);t.Z=e=>{let{heading:t,breadcrumbItems:n,isSticky:o=!0,children:a,rightContent:r,style:d,...c}=e;return(0,i.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,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,r&&(0,i.jsx)("div",{"data-testid":"page-header-right-content",children:r})]}),!!n&&(0,i.jsx)(s.m,{className:a?"pb-4":void 0,items:n,"data-testid":"page-breadcrumb"}),a]})}},70788:function(e,t,n){n.d(t,{m:function(){return d}});var i=n(24246),l=n(27824),s=n(79894),o=n.n(s),a=n(27378);let{Text:r}=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)(r,{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)(o(),{href:a.href,className:"ant-breadcrumb-link",children:a.title}),delete a.href)),a}),[t]);return(0,i.jsx)(l.zrq,{items:s,...n})}},15826:function(e,t,n){n.d(t,{$:function(){return k}});var i=n(24246),l=n(92222),s=n(59003),o=n(25980),a=n(812),r=n(47935),d=n(46628),c=n(27824),u=n(86677),g=n(27378),h=n(16134),x=n(58452),m=n(77830),p=n(23923),j=n(32885);let f=e=>{let{onChange:t,displayText:n,isChecked:l,value:s}=e;return(0,i.jsx)(c.XZJ,{id:"checkbox-".concat(s),value:s,height:"20px",mb:3,isChecked:l,onChange:t,colorScheme:"complimentary",mr:5,children:(0,i.jsx)(c.xvT,{fontSize:"sm",lineHeight:5,height:"20px",textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap",children:n})},s)},b={GVL:!1,AC:!1,COMPASS:!1};var C=e=>{let{isOpen:t,onClose:n,tableInstance:l}=e,[s,o]=(0,g.useState)(b);return(0,g.useMemo)(()=>{let e={id:"vendor_id",value:[]};s.GVL&&e.value.push("gvl"),s.AC&&e.value.push("gacp"),l.setColumnFilters([e])},[s,l]),(0,i.jsxs)(c.u_l,{isOpen:t,onClose:n,isCentered:!0,size:"2xl",children:[(0,i.jsx)(c.ZAr,{}),(0,i.jsxs)(c.hzk,{children:[(0,i.jsx)(c.xBx,{children:"Filters"}),(0,i.jsx)(c.olH,{}),(0,i.jsx)(c.izJ,{}),(0,i.jsxs)(c.fef,{maxH:"85vh",px:6,py:4,overflowX:"auto",children:[(0,i.jsx)(c.xvT,{fontSize:"md",fontWeight:"bold",mb:2,children:"Sources"}),(0,i.jsx)(f,{onChange:()=>{o(e=>({...e,GVL:!e.GVL}))},displayText:a.iC.gvl.fullName,isChecked:s.GVL,value:"gvl"}),(0,i.jsx)(f,{onChange:()=>{o(e=>({...e,AC:!e.AC}))},displayText:a.iC.gacp.fullName,isChecked:s.AC,value:"gacp"})]}),(0,i.jsx)(c.mzw,{children:(0,i.jsxs)(c.xuv,{display:"flex",justifyContent:"space-between",width:"100%",children:[(0,i.jsx)(c.wpx,{onClick:()=>{l.setColumnFilters([]),o(b)},className:"mr-3 grow",children:"Reset Filters"}),(0,i.jsx)(c.wpx,{"data-testid":"filter-done-btn",type:"primary",onClick:n,className:"grow",children:"Done"})]})})]})]})};let v=e=>{var t;let{value:n}=e,l=(0,a.cj)(n),s=null!==(t=a.iC[l])&&void 0!==t?t:{label:"",fullName:""};return(0,i.jsx)(c.kCb,{alignItems:"center",justifyContent:"center",height:"100%",mr:"2",children:(0,i.jsx)(c.esZ,{title:s.fullName,children:(0,i.jsx)(c.j8w,{children:s.label})})})},w=(0,l.Cl)(),y=()=>(0,i.jsxs)(c.gCW,{mt:6,p:10,spacing:4,borderRadius:"base",maxW:"70%","data-testid":"no-results-notice",alignSelf:"center",margin:"auto",children:[(0,i.jsxs)(c.gCW,{children:[(0,i.jsx)(c.xvT,{fontSize:"md",fontWeight:"600",children:"No results found."}),(0,i.jsx)(c.xvT,{fontSize:"sm",children:'Can\'t find the vendor you are looking for? Add custom systems or unlisted\n vendors by selecting the "Add custom vendor" button below.'})]}),(0,i.jsx)(p.Z,{buttonLabel:"Add custom vendor",buttonProps:{type:"primary"}})]}),S="Vendor",k=e=>{let{redirectRoute:t}=e,n=(0,c.pmc)(),{dictionaryService:f,tcf:b}=(0,o.hz)(),{isLoading:k}=(0,j.x8)(),R=(0,u.useRouter)(),{isLoading:L}=(0,j.iN)(void 0,{skip:!f}),[z,{isLoading:N,isSuccess:I}]=(0,j.Qk)(),A=(0,h.C)(j.gG),[F,T]=(0,g.useState)(),{isOpen:_,onOpen:P,onClose:M}=(0,c.qY0)(),{isOpen:W,onClose:G,onOpen:V}=(0,c.qY0)(),[O,Z]=(0,g.useState)(!1),q=A.every(e=>e.linked_system),D=(0,g.useMemo)(()=>[w.display({id:"select",header:e=>{let{table:t}=e;return(0,i.jsx)(r.k,{dataTestId:"select-page-checkbox",isChecked:t.getIsAllPageRowsSelected(),isDisabled:q||t.getPaginationRowModel().rows.filter(e=>e.original.linked_system).length===t.getState().pagination.pageSize,isIndeterminate:t.getPaginationRowModel().rows.filter(e=>e.getCanSelect()).some(e=>!e.getIsSelected()),onChange:()=>{t.setRowSelection(e=>{let n={...e};return t.getRowModel().rows.forEach(e=>{e.getCanSelect()&&(n[e.id]=!n[e.id])}),n}),Z(e=>!e)}})},cell:e=>{let{row:t}=e;return(0,i.jsx)(r.k,{isChecked:t.getIsSelected(),isDisabled:!t.getCanSelect(),isIndeterminate:t.getIsSomeSelected(),onChange:t.getToggleSelectedHandler()})}}),w.accessor(e=>e.vendor_id,{id:"id",cell:e=>(0,i.jsx)(r.G3,{value:e.getValue()}),header:e=>(0,i.jsx)(r.Rr,{value:"ID",...e}),enableColumnFilter:b}),w.accessor(e=>e.name,{id:"name",cell:e=>(0,i.jsx)(r.G3,{value:e.getValue()}),header:e=>(0,i.jsx)(r.Rr,{value:"Name",...e})}),w.accessor(e=>e.vendor_id,{id:"source",cell:e=>(0,i.jsx)(v,{value:e.getValue()}),header:e=>(0,i.jsx)(r.Rr,{value:"Source",...e}),enableColumnFilter:b,filterFn:"arrIncludesSome"})],[q,b]),E=(0,s.b7)({columns:D,data:A,getCoreRowModel:(0,l.sC)(),getSortedRowModel:(0,l.tj)(),getFilteredRowModel:(0,l.vL)(),getPaginationRowModel:(0,l.G_)(),onGlobalFilterChange:T,enableRowSelection:e=>!e.original.linked_system,enableSorting:!0,enableGlobalFilter:!0,state:{globalFilter:F,columnVisibility:{id:b,source:b}},initialState:{pagination:{pageSize:r.W3[0]},columnSizing:{select:0,id:0,source:0,name:0}},enableColumnResizing:!0,columnResizeMode:"onChange"});(0,g.useEffect)(()=>{let e={};A.forEach((t,n)=>{t.linked_system&&(e[n]=!0)}),Object.keys(e).length&&E.setRowSelection(e)},[A,E]);let{totalRows:H,onPreviousPageClick:B,isPreviousPageDisabled:Y,onNextPageClick:$,isNextPageDisabled:J,setPageSize:Q,startRange:X,endRange:K}=(0,r.bX)(E),U=async()=>{let e=E.getSelectedRowModel().rows.filter(e=>!e.original.linked_system).map(e=>e.original.vendor_id);if(e.length>0){let i=await z(e);R.push(t),(0,a.D4)(i)?n((0,d.Vo)((0,a.e$)(i.error))):n((0,d.t5)("Successfully added ".concat(e.length," ").concat(S.toLocaleLowerCase()).concat(e.length>1?"s":"")))}},ee=E.getSelectedRowModel().rows.some(e=>!e.original.linked_system);if(!f&&!k)return R.push(m.gp),null;if(N||I)return(0,i.jsx)(c.kCb,{height:"100%",justifyContent:"center",alignItems:"center",children:(0,i.jsx)(c.$jN,{})});if(L)return(0,i.jsx)(r.I4,{rowHeight:36,numRows:15});let et=q?"All ".concat(S.toLocaleLowerCase(),"s have already been added"):"Select a ".concat(S.toLocaleLowerCase()," "),en=E.getSelectedRowModel().rows.filter(e=>!e.original.linked_system).length,ei=E.getState().columnFilters.length>0?E.getState().columnFilters.filter(e=>"vendor_id"===e.id)[0].value.length:0;return(0,i.jsxs)(c.kCb,{flex:1,direction:"column",overflow:"auto","data-testid":"add-multiple-systems-tbl",children:[(0,i.jsx)(x.Z,{isOpen:W,isCentered:!0,onCancel:G,onClose:G,onConfirm:U,title:"Confirmation",message:"You are about to add ".concat(en.toLocaleString("en")," ").concat(S.toLocaleLowerCase()).concat(en>1?"s":"")}),(0,i.jsx)(C,{isOpen:_,onClose:M,tableInstance:E}),(0,i.jsxs)(r.Q$,{children:[(0,i.jsxs)(c.kCb,{alignItems:"center",grow:1,children:[(0,i.jsx)(c.xuv,{maxW:"420px",width:"100%",children:(0,i.jsx)(r.HO,{globalFilter:F,setGlobalFilter:T,placeholder:"Search"})}),en>0?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)(c.xvT,{fontWeight:"700",fontSize:"sm",lineHeight:"2",ml:4,children:[en.toLocaleString("en")," selected"]}),(0,i.jsx)(c.esZ,{title:et,children:(0,i.jsx)(c.wpx,{onClick:V,"data-testid":"add-multiple-systems-btn",disabled:!ee,className:"ml-4",children:"Add"})})]}):null]}),(0,i.jsxs)(c.Ugi,{spacing:4,alignItems:"center",children:[(0,i.jsx)(p.Z,{buttonLabel:"Add custom vendor"}),b?(0,i.jsx)("span",{children:(0,i.jsxs)(c.wpx,{onClick:P,"data-testid":"filter-multiple-systems-btn",children:["Filter",ei>0?(0,i.jsx)(c.j8w,{className:"mr-0",children:ei}):null]})}):null]})]}),(0,i.jsx)(r.ZK,{tableInstance:E,rowActionBar:(0,i.jsx)(r.AA,{tableInstance:E,selectedRows:en,isOpen:O}),renderRowTooltipLabel:e=>{if(!e.getCanSelect())return"This vendor has already been added. You can view the properties of this vendor by going to the System Inventory."},emptyTableNotice:(0,i.jsx)(y,{})}),(0,i.jsx)(r.s8,{pageSizes:r.W3,totalRows:H||0,onPreviousPageClick:B,isPreviousPageDisabled:Y,onNextPageClick:$,isNextPageDisabled:J,setPageSize:Q,startRange:X,endRange:K})]})}}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8735],{56632:function(e,t,n){var a=n(89278),i=n(80068),r=n(50098);e.exports=function(e){return function(t,n,s){var l=Object(t);if(!i(t)){var c=a(n,3);t=r(t),n=function(e){return c(l[e],e,l)}}var u=e(t,n,s);return u>-1?l[c?t[u]:u]:void 0}}},64925:function(e,t,n){var a=n(56632)(n(66259));e.exports=a},66259:function(e,t,n){var a=n(95372),i=n(89278),r=n(47991),s=Math.max;e.exports=function(e,t,n){var l=null==e?0:e.length;if(!l)return -1;var c=null==n?0:r(n);return c<0&&(c=s(l+c,0)),a(e,i(t,3),c)}},94919:function(e,t,n){var a=n(91936),i=1/0;e.exports=function(e){return e?(e=a(e))===i||e===-i?(e<0?-1:1)*17976931348623157e292:e==e?e:0:0===e?e:0}},47991:function(e,t,n){var a=n(94919);e.exports=function(e){var t=a(e),n=t%1;return t==t?n?t-n:t:0}},35287:function(e,t,n){"use strict";var a=n(24246),i=n(
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8735],{56632:function(e,t,n){var a=n(89278),i=n(80068),r=n(50098);e.exports=function(e){return function(t,n,s){var l=Object(t);if(!i(t)){var c=a(n,3);t=r(t),n=function(e){return c(l[e],e,l)}}var u=e(t,n,s);return u>-1?l[c?t[u]:u]:void 0}}},64925:function(e,t,n){var a=n(56632)(n(66259));e.exports=a},66259:function(e,t,n){var a=n(95372),i=n(89278),r=n(47991),s=Math.max;e.exports=function(e,t,n){var l=null==e?0:e.length;if(!l)return -1;var c=null==n?0:r(n);return c<0&&(c=s(l+c,0)),a(e,i(t,3),c)}},94919:function(e,t,n){var a=n(91936),i=1/0;e.exports=function(e){return e?(e=a(e))===i||e===-i?(e<0?-1:1)*17976931348623157e292:e==e?e:0:0===e?e:0}},47991:function(e,t,n){var a=n(94919);e.exports=function(e){var t=a(e),n=t%1;return t==t?n?t-n:t:0}},35287:function(e,t,n){"use strict";var a=n(24246),i=n(27824),r=n(88038),s=n.n(r);n(27378),t.Z=e=>{let{children:t,title:n,mainProps:r}=e;return(0,a.jsxs)(i.kCb,{"data-testid":n,direction:"column",height:"calc(100vh - 48px)",width:"calc(100vw - 240px)",children:[(0,a.jsxs)(s(),{children:[(0,a.jsxs)("title",{children:["Fides Admin UI - ",n]}),(0,a.jsx)("meta",{name:"description",content:"Privacy Engineering Platform"}),(0,a.jsx)("link",{rel:"icon",href:"/favicon.ico"})]}),(0,a.jsx)(i.kCb,{px:10,py:6,as:"main",overflow:"auto",direction:"column",flex:1,minWidth:0,...r,children:t})]})}},34929:function(e,t,n){"use strict";var a=n(24246),i=n(64925),r=n.n(i),s=n(27378),l=n(16134),c=n(30002),u=n(28079),o=n(57072);let d=()=>{let{isLoading:e}=(0,u.fd)(),t=(0,l.C)(u.U3),{isLoading:n}=(0,o.MO)(),a=(0,l.C)(o.qb),{isLoading:i}=(0,c.te)();return{dataUses:t,dataSubjects:(0,l.C)(c.ZL),dataCategories:a,isLoading:e||n||i}};t.Z=()=>{let{dataUses:e,dataCategories:t,dataSubjects:n,isLoading:i}=d(),l=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return e.split(".").slice(0,t).join(".")},c=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,a=t(e);if(!a)return{};let i=t(l(e,n)),r=!!a.parent_key;return{name:a.name||void 0,primaryName:r&&(null==i?void 0:i.name)!==a.name&&(null==i?void 0:i.name)||void 0}},u=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,{name:i,primaryName:r}=c(e,t,n);return i?r?(0,a.jsxs)(s.Fragment,{children:[(0,a.jsxs)("strong",{children:[r,":"]})," ",i]},e):(0,a.jsx)("strong",{children:i},e):e},o=t=>r()(e,{fides_key:t}),f=e=>r()(t,{fides_key:e}),p=e=>r()(n,{fides_key:e});return{getDataUses:()=>e,getDataUseByKey:o,getDataUseDisplayName:e=>u(e,o,1),getDataUseDisplayNameProps:e=>c(e,o,1),getDataCategories:()=>t,getDataCategoryByKey:f,getDataCategoryDisplayName:e=>u(e,f,2),getDataCategoryDisplayNameProps:e=>c(e,f,2),getDataSubjects:()=>n,getDataSubjectByKey:p,getDataSubjectDisplayName:e=>{let t=p(e);return t?t.name:e},getPrimaryKey:l,isLoading:i}}},25415:function(e,t,n){"use strict";n.d(t,{a:function(){return r}});var a=n(24246);let{Text:i}=n(27824).AntTypography,r=e=>{let{count:t}=e;return(0,a.jsx)(i,{size:"sm",strong:!0,"data-testid":"selected-count",children:"".concat(t," selected")})}},2525:function(e,t,n){"use strict";n.d(t,{Q:function(){return l}});var a=n(24246),i=n(27824),r=n(27378),s=n(97327);let l=e=>{let{values:t,columnState:n,...l}=e,{isExpanded:c,isWrapped:u,version:o}=n||{},[d,f]=(0,r.useState)(!c),[p,g]=(0,r.useState)(!!u),[h,m]=(0,r.useState)(c?t:null==t?void 0:t.slice(0,2));(0,r.useEffect)(()=>{f(!c)},[c,o]),(0,r.useEffect)(()=>{g(!!u)},[u]),(0,r.useEffect)(()=>{(null==t?void 0:t.length)&&m(d?t.slice(0,2):t)},[d,t]);let v=(0,r.useCallback)(()=>{m(null==t?void 0:t.slice(0,2)),f(!0)},[t]),x=(0,r.useCallback)(()=>{f(!1)},[]),j=(0,r.useCallback)(()=>{d?x():v()},[d,x,v]);return(0,r.useMemo)(()=>(null==h?void 0:h.length)?(0,a.jsxs)(i.jqI,{align:"center",wrap:p?"wrap":"nowrap",gap:"small","data-testid":"tag-expandable-cell",children:[h.map(e=>(0,a.jsx)(i.j8w,{color:"white","data-testid":e.key,...l,children:e.label},e.key)),t&&t.length>2&&(0,a.jsx)(i.wpx,{type:"link",size:"small",onClick:e=>{e.stopPropagation(),j()},className:"h-auto p-0",style:{fontSize:"var(--ant-font-size)"},children:d?"+".concat(t.length-2," more"):s.T})]}):(0,a.jsx)("span",{"data-testid":"tag-expandable-cell-empty"}),[h,d,p,t,j,l])}},97327:function(e,t,n){"use strict";n.d(t,{T:function(){return a}});let a="show less"},91982:function(e,t,n){"use strict";n.d(t,{vx:function(){return c},OL:function(){return o},Q3:function(){return d.Q},DI:function(){return u}});var a=n(24246),i=n(27824),r=n(27378),s=n(97327);let{Text:l}=i.AntTypography,c=e=>{let{values:t,valueSuffix:n,columnState:c}=e,{isExpanded:u,version:o}=c||{},[d,f]=(0,r.useState)(!u);(0,r.useEffect)(()=>{f(!u)},[u,o]);let p=(0,r.useCallback)(()=>{f(!0)},[]),g=(0,r.useCallback)(()=>{f(!1)},[]),h=(0,r.useCallback)(()=>{d?g():p()},[d,g,p]);return(0,r.useMemo)(()=>(null==t?void 0:t.length)?1===t.length?(0,a.jsx)(l,{ellipsis:!0,"data-testid":"list-expandable-cell-single",children:t[0]}):(0,a.jsxs)(i.jqI,{align:d?"center":"flex-start",vertical:!d,gap:d?"small":"none","data-testid":"list-expandable-cell",children:[d?(0,a.jsxs)(l,{ellipsis:!0,children:[t.length," ",n]}):(0,a.jsx)(i.krs,{dataSource:t,renderItem:e=>(0,a.jsx)("li",{children:e})}),(0,a.jsx)(i.wpx,{type:"link",size:"small",onClick:e=>{e.stopPropagation(),h()},className:"h-auto p-0",style:{fontSize:"var(--ant-font-size)"},children:d?"view":s.T})]}):null,[d,t,n,h])},u=[{key:"expand-all",label:"Expand all",icon:(0,a.jsx)(i.PJP.jbG,{})},{key:"collapse-all",label:"Collapse all",icon:(0,a.jsx)(i.PJP.MVB,{})}],o=e=>{let{title:t,menuIcon:n,menuIconLabel:r="Menu",menu:s,...l}=e;return(0,a.jsxs)(i.jqI,{align:"center",justify:"space-between",children:[t,(0,a.jsx)(i.S0p,{trigger:["click"],menu:s,placement:"bottomRight",...l,children:(0,a.jsx)(i.wpx,{icon:n||(0,a.jsx)(i.PJP.r43,{title:r}),size:"small",type:"text",className:"ant-table-filter-trigger",onClick:e=>{e.stopPropagation()}})})]})};var d=n(2525)},9320:function(e,t,n){"use strict";n.d(t,{_:function(){return r}});var a=n(24246),i=n(26089);let r=(e,t)=>(0,a.jsxs)(a.Fragment,{children:[e," ",t&&(0,a.jsx)(i.Z,{onClick:t,children:"View"})]})},88708:function(e,t,n){"use strict";n.d(t,{A:function(){return i}});var a,i,r=n(27378),s=n(14908),l=n(54682);(a=i||(i={})).ATTENTION_REQUIRED="attention-required",a.RECENT_ACTIVITY="recent-activity",a.IGNORED="ignored",t.Z=e=>{let{activeTab:t,onTabChange:n}=(0,s.Z)({tabKeys:Object.values(i)}),a=(0,r.useMemo)(()=>[{label:"Attention required",params:{diff_status:[l.LL.ADDITION],system:e},hash:"attention-required"},{label:"Recent activity",params:{diff_status:[l.LL.MONITORED]},hash:"recent-activity"},{label:"Ignored",params:{diff_status:[l.LL.MUTED],system:e},hash:"ignored"}],[e]),{diff_status:c,system:u}=(0,r.useMemo)(()=>{var e;return null!==(e=a.find(e=>e.hash===t))&&void 0!==e?e:a[0]},[a,t]).params,o=(0,r.useMemo)(()=>c.includes(l.LL.MONITORED),[c]);return{filterTabs:a,activeTab:t,onTabChange:n,activeParams:(0,r.useMemo)(()=>e?{diff_status:c,system:u}:{diff_status:c},[e,c,u]),actionsDisabled:o}}},78238:function(e,t,n){"use strict";n.d(t,{g:function(){return a}});let a=["essential","functional.service.improve","personalize","analytics","marketing.advertising.first_party.targeted","marketing.advertising.third_party.targeted"];t.Z=e=>a.includes(e)},31883:function(e,t,n){"use strict";n.d(t,{Bw:function(){return a.Bw},D4:function(){return a.D4}});var a=n(19043)}}]);
|