ethyca-fides 2.63.1b4__py2.py3-none-any.whl → 2.63.3b0__py2.py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {ethyca_fides-2.63.1b4.dist-info → ethyca_fides-2.63.3b0.dist-info}/METADATA +1 -1
- {ethyca_fides-2.63.1b4.dist-info → ethyca_fides-2.63.3b0.dist-info}/RECORD +211 -210
- fides/_version.py +3 -3
- fides/api/api/v1/endpoints/connection_endpoints.py +16 -3
- fides/api/api/v1/endpoints/oauth_endpoints.py +8 -2
- fides/api/models/detection_discovery/monitor_task.py +1 -0
- fides/api/schemas/connection_configuration/connection_config.py +19 -4
- fides/api/service/connectors/query_configs/saas_query_config.py +15 -0
- fides/api/util/saas_util.py +1 -0
- fides/ui-build/static/admin/404.html +1 -1
- fides/ui-build/static/admin/_next/static/0S8UTwc7FKVdi3Eb4LgFK/_buildManifest.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/1099-f2199d5b88dd98b4.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/1100-d617215143d70d3d.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/155-8ad794121fef6281.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/1817-ddfdd6ed9529bba6.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/1904-e33cb75edb93d3d3.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/2310-efaa2a52fc487db4.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/2921-19664dd93e2bf1ea.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/3119-9be74ade1504a7e7.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/3505-f6d55694ca5c9816.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/3513-656df06b45fedba3.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/3872-09df90521f7db611.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/3923-3d80020d02819c33.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/401-710009c2a7408818.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/4060-4e196835f56cc326.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/4121-80ac9bcd08f9cd7a.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/4132-76ca1bcf79bf1d77.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/4481-be144b50994f5135.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/5258-8a1f7feddee7a960.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/5404-a8a82985736363f4.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/5487-483a111405f678e0.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/5683-7144f557d701406c.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/6202-86a62d94744e2c18.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/6277-0b1e3d23e97f5e19.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/6853-d9c6c55d8562bc9b.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/69-a4d64cabe750b286.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/6954-8ed05ffdbf2ec086.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/7553-77c9715868d6ad13.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/79-6c977013b6bedc23.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/796-1d77aa88b776ee4e.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/7980-3da0fe6938b0b758.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/8032-4b8bda7166eff954.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/8433-88fd946149dd1f27.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/8499-a65187ae77b7307b.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/{905-8ab919e7b274ed50.js → 905-5fe5124abfb5c542.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/9327-eb3b84680abcc660.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/{9392.81edc11e3a175275.js → 9392.25024e070026343d.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/9494-04a0483ed0ddad7c.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/9676.e60a53f1f5890847.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/9767-a3ed98edff04e6ed.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/404-c50dccc133b332a9.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/{_app-33bc23b79bffe07c.js → _app-0e0fdbcc0ec1c76b.js} +10 -10
- fides/ui-build/static/admin/_next/static/chunks/pages/add-systems/manual-3065022f370ec055.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/add-systems/multiple-357ef3b269c576bb.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/add-systems-e8ae218a9d124ba7.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/consent/configure/add-vendors-488507bb244cce9d.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/consent/configure-6f0b46ac2b112bfe.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/consent/privacy-experience/[id]-5024b4ab40ba024c.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/consent/privacy-experience-2b62e5facfc51808.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/consent/privacy-notices/[id]-71791459da78e35d.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/consent/privacy-notices/new-26a7d52615b1ebb8.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/consent/privacy-notices-25836dd5142f37e8.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/consent/properties-3a9021850242c78f.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/consent/reporting-9a5d3cc5cbb4ef27.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/consent-9e21184279f8e126.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/data-catalog/[systemId]/projects/[projectUrn]-64cea013d41e348a.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/data-catalog/[systemId]/projects-b02050eb3b7113d4.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/data-catalog-ff211c7a968bda47.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/action-center/[monitorId]/[systemId]-7f7435f28861ee78.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/action-center/[monitorId]-ec4b981fd9cff542.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/action-center-18c144223277bc2e.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/activity-e18f14b8d598e942.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/datamap-9af01b6cf4cbe8af.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/dataset/[datasetId]/[collectionName]/[...subfieldNames]-1987ef0d3c687aaa.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/dataset/[datasetId]/[collectionName]-979828f48148b37c.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/dataset/[datasetId]-e85c3537d3aade4a.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/dataset/new-6d44abbe7d454435.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/dataset-42f276660c107e1c.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/datastore-connection/[id]-18ff06fc09c22c33.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/datastore-connection/new-979eff6888e42b6b.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/datastore-connection-343a3830b2d4cf22.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/index-737b0c430bf2f7a0.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/integrations/[id]-63361d914d70d647.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/integrations-fd73f276dad7a06c.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/messaging/[id]-91e865a65a88d1a4.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/messaging/add-template-529c7e09b073edd2.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/messaging-6226faba9595da71.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/poc/ant-components-0f7d4390e01f4ffb.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/poc/form-experiments/AntForm-a4e470f75a5553f8.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/poc/form-experiments/FormikAntFormItem-d814c1c56b4b04d8.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/poc/form-experiments/FormikControlled-0f68f2be09df2c76.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/poc/form-experiments/FormikField-6b63d5c992466891.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/poc/forms-88eb9b98e8e4b426.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/poc/table-migration-a3da91fd04eec8f5.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/privacy-requests/[id]-b2ea863afce1d7f0.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/privacy-requests/configure/messaging-0831dfaa65ce0d50.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/privacy-requests/configure/storage-709676f00a491bca.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/privacy-requests/configure-0eac9951504b46a7.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/privacy-requests-88e20023c30113df.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/properties/[id]-3acc3107e9a21260.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/properties/add-property-2bf13ee02d8d5ab9.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/properties-822eac07220f55f8.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/reporting/datamap-f85f92726a61a668.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/settings/about/alpha-88999260f855b448.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/settings/about-928b0b69e05fd430.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/settings/consent/[configuration_id]/[purpose_id]-e090903a572cba68.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/settings/consent-f0c8e4eced9f5cc5.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/settings/custom-fields-f7a271ee53cb4e51.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/settings/domain-records-611980eee1ce9c8a.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/settings/domains-382cb6df12684bf8.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/settings/email-templates-5d664f2a0f11b626.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/settings/locations-ba569d22e1e3f6df.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/settings/organization-dd903f6e03c4ee4e.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/settings/regulations-fae8ecf7878bad2d.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/systems/configure/[id]/test-datasets-493dc9b4595c9fb4.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/systems/configure/[id]-2b540203a2d7b59d.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/systems-a278608ba0ddc66c.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/taxonomy-6d790458dd21dde7.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/user-management/profile/[id]-eb30c9230a9ce9cc.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/user-management-381146aa81e3ffea.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/{webpack-8457bad7859c44f0.js → webpack-abfd03ce7f1e55ac.js} +1 -1
- fides/ui-build/static/admin/_next/static/css/c3377f99bf988d68.css +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/images/connector-logos/salesforce.svg +41 -0
- 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 +2 -2
- fides/ui-build/static/admin/login/[provider].html +1 -1
- fides/ui-build/static/admin/login.html +1 -1
- fides/ui-build/static/admin/messaging/[id].html +1 -1
- fides/ui-build/static/admin/messaging/add-template.html +1 -1
- fides/ui-build/static/admin/messaging.html +1 -1
- fides/ui-build/static/admin/poc/ant-components.html +1 -1
- fides/ui-build/static/admin/poc/form-experiments/AntForm.html +1 -1
- fides/ui-build/static/admin/poc/form-experiments/FormikAntFormItem.html +1 -1
- fides/ui-build/static/admin/poc/form-experiments/FormikControlled.html +1 -1
- fides/ui-build/static/admin/poc/form-experiments/FormikField.html +1 -1
- fides/ui-build/static/admin/poc/form-experiments/FormikSpreadField.html +1 -1
- fides/ui-build/static/admin/poc/forms.html +1 -1
- fides/ui-build/static/admin/poc/table-migration.html +1 -1
- fides/ui-build/static/admin/privacy-requests/[id].html +1 -1
- fides/ui-build/static/admin/privacy-requests/configure/messaging.html +1 -1
- fides/ui-build/static/admin/privacy-requests/configure/storage.html +1 -1
- fides/ui-build/static/admin/privacy-requests/configure.html +1 -1
- fides/ui-build/static/admin/privacy-requests.html +1 -1
- fides/ui-build/static/admin/properties/[id].html +1 -1
- fides/ui-build/static/admin/properties/add-property.html +1 -1
- fides/ui-build/static/admin/properties.html +1 -1
- fides/ui-build/static/admin/reporting/datamap.html +1 -1
- fides/ui-build/static/admin/settings/about/alpha.html +1 -1
- fides/ui-build/static/admin/settings/about.html +1 -1
- fides/ui-build/static/admin/settings/consent/[configuration_id]/[purpose_id].html +1 -1
- fides/ui-build/static/admin/settings/consent.html +1 -1
- fides/ui-build/static/admin/settings/custom-fields.html +1 -1
- fides/ui-build/static/admin/settings/domain-records.html +1 -1
- fides/ui-build/static/admin/settings/domains.html +1 -1
- fides/ui-build/static/admin/settings/email-templates.html +1 -1
- fides/ui-build/static/admin/settings/locations.html +1 -1
- fides/ui-build/static/admin/settings/organization.html +1 -1
- fides/ui-build/static/admin/settings/regulations.html +1 -1
- fides/ui-build/static/admin/systems/configure/[id]/test-datasets.html +1 -1
- fides/ui-build/static/admin/systems/configure/[id].html +1 -1
- fides/ui-build/static/admin/systems.html +1 -1
- fides/ui-build/static/admin/taxonomy.html +1 -1
- fides/ui-build/static/admin/user-management/new.html +1 -1
- fides/ui-build/static/admin/user-management/profile/[id].html +1 -1
- fides/ui-build/static/admin/user-management.html +1 -1
- fides/ui-build/static/admin/_next/static/X2nvWLg2_-vsCTkhSWpzw/_buildManifest.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/1099-667e84655846e78c.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/1100-0b01f500b1eaf60d.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/1817-951f58ddd5d46081.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/1904-361e37a5811ed7fc.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/2310-744354001d01f366.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/2921-49af55ad7c631c93.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/3119-e36ae5071c8f27a5.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/3505-113f9c95d34b7aae.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/3513-5c2d412a84a78971.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/3872-45cc725e241211f0.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/3923-b4f701ada3ef0ee0.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/401-7e800aed05537126.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/4060-90a52a9afc655bfc.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/4121-66b0e00d5e7ae817.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/4132-9b1731bfec6ee537.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/4481-7f6710c928bb0cb0.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/5258-2079138c8cc34f6c.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/5404-2694509cf5fa96da.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/5487-2cbd8d2169eb2a65.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/5683-37137111b3e769fb.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/6202-081545c7822d09af.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/6277-459e054b2702c60e.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/6853-688df0b88fe65fd5.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/69-00cba94689b9e740.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/6954-4e313b4599b8763d.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/7553-08bc3d9f66695111.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/79-fc548561beed136f.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/796-d6586308ed44334b.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/7980-736f9fd1e749ddd2.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/8032-74d94f7bd5b81c89.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/8433-51870336908fb253.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/8499-1fd392d0be9e8ee4.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/9033-fdd87182c15b91e2.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/9327-6a53461c9764b16f.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/9494-1ffb888b95289891.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/9676.61cf5f6d6a083175.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/9767-afd674014a1d1152.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/404-ec04f826f3dd79ea.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/add-systems/manual-1bec086d567aacff.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/add-systems/multiple-f68bf100e4e60e88.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/add-systems-effde5cfe49de55f.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/consent/configure/add-vendors-ec95ed8cb0712828.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/consent/configure-4cc195e15e0c3cc8.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/consent/privacy-experience/[id]-be8972c79fb39705.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/consent/privacy-experience-ccf96207de3b74ea.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/consent/privacy-notices/[id]-b9823cc008372cee.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/consent/privacy-notices/new-373f5772ab41bc93.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/consent/privacy-notices-b9beeee1bde5ca79.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/consent/properties-6ab3a5baafebd199.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/consent/reporting-8562790ae07f17c9.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/consent-42d4d2d6e0253671.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/data-catalog/[systemId]/projects/[projectUrn]-9d1df6d890671b0c.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/data-catalog/[systemId]/projects-7eb08af333baaa8e.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/data-catalog-bb57eed84f59a932.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/action-center/[monitorId]/[systemId]-47eb34aef3e31ac6.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/action-center/[monitorId]-76cefefc53e84c7f.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/action-center-9d8e84a8b4bf568d.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/activity-c3eaadd88a2e6caa.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/datamap-db45aa864e9dda8a.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/dataset/[datasetId]/[collectionName]/[...subfieldNames]-d5cfdebc74654337.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/dataset/[datasetId]/[collectionName]-618b89228f83435e.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/dataset/[datasetId]-12fc86f15a4c764e.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/dataset/new-c23d18a9b56c2e3c.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/dataset-e3b2d8e3980ab093.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/datastore-connection/[id]-6e27257eccf65f01.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/datastore-connection/new-bbac1f624424282d.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/datastore-connection-84eb56f5a07bdf4f.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/index-773182b5e35d0045.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/integrations/[id]-eb28c927da5bd653.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/integrations-781808bca01f8048.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/messaging/[id]-b51bee8680d66b20.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/messaging/add-template-1de479533f733fbd.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/messaging-7dc295b3ed3d2224.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/poc/ant-components-f64dac3392f5ded7.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/poc/form-experiments/AntForm-eb020bfac4bee532.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/poc/form-experiments/FormikAntFormItem-0bd62e28b539e114.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/poc/form-experiments/FormikControlled-936877004113c2a6.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/poc/form-experiments/FormikField-6416f01524482af9.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/poc/forms-3f4e1313d1f2969b.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/poc/table-migration-1db7a54437db7db0.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/privacy-requests/[id]-64236fd0141414fd.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/privacy-requests/configure/messaging-c583a61302f02add.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/privacy-requests/configure/storage-20d20a8d1736f7c4.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/privacy-requests/configure-b6c876dceb16ad1b.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/privacy-requests-0e557d79e1e43c2b.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/properties/[id]-54bcc875592d1fb9.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/properties/add-property-644dc669b508a79a.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/properties-9a88220d03e7e02f.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/reporting/datamap-70dc1081df37ea69.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/settings/about/alpha-3c71b4dbcb6fd6c9.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/settings/about-7cb16e0000dd16c9.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/settings/consent/[configuration_id]/[purpose_id]-a18d8f12ee8dcf5d.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/settings/consent-dc220e116ad5c09e.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/settings/custom-fields-55ddc5f25b86f28e.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/settings/domain-records-5ca7decded228bc8.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/settings/domains-a6fafa1be2834c40.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/settings/email-templates-e633750d2b45ddd6.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/settings/locations-3948686cbd372969.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/settings/organization-04ece499c22d23f4.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/settings/regulations-7752305084280cca.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/systems/configure/[id]/test-datasets-9e5f9066be6f218d.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/systems/configure/[id]-86de9e6d72098e45.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/systems-cac52e6c3abf6a15.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/taxonomy-60d5930b6855679b.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/user-management/profile/[id]-b0f4c34752d32c73.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/user-management-7dee83dd6d9292aa.js +0 -1
- fides/ui-build/static/admin/_next/static/css/1fdf5c593349dbc6.css +0 -1
- {ethyca_fides-2.63.1b4.dist-info → ethyca_fides-2.63.3b0.dist-info}/WHEEL +0 -0
- {ethyca_fides-2.63.1b4.dist-info → ethyca_fides-2.63.3b0.dist-info}/entry_points.txt +0 -0
- {ethyca_fides-2.63.1b4.dist-info → ethyca_fides-2.63.3b0.dist-info}/licenses/LICENSE +0 -0
- {ethyca_fides-2.63.1b4.dist-info → ethyca_fides-2.63.3b0.dist-info}/top_level.txt +0 -0
- /fides/ui-build/static/admin/_next/static/{X2nvWLg2_-vsCTkhSWpzw → 0S8UTwc7FKVdi3Eb4LgFK}/_ssgManifest.js +0 -0
@@ -1 +0,0 @@
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8473],{64902:function(e,t,s){(window.__NEXT_P=window.__NEXT_P||[]).push(["/dataset",function(){return s(91949)}])},79806:function(e,t,s){"use strict";s.d(t,{Gn:function(){return r},zR:function(){return l}});var i=s(24246),a=s(4454),n=s(56358);let l=e=>{let{title:t}=e;return(0,i.jsx)(a.OXI,{py:0,display:"flex",alignItems:"flex-start",children:(0,i.jsx)(a.xvT,{mr:"2",color:"gray.700",fontSize:"lg",lineHeight:1.8,children:t})})},r=e=>{let{onDelete:t,onEditYaml:s,formId:l,isSaving:r}=e;return(0,i.jsxs)(a.zeN,{justifyContent:"space-between",children:[t?(0,i.jsx)(a.wpx,{"aria-label":"delete",icon:(0,i.jsx)(n.q,{fontSize:"small"}),onClick:t,"data-testid":"delete-btn"}):null,(0,i.jsxs)("div",{className:"flex gap-2",children:[s&&(0,i.jsx)(a.wpx,{onClick:s,"data-testid":"edit-yaml-btn",children:"Edit YAML"}),(0,i.jsx)(a.wpx,{htmlType:"submit",type:"primary","data-testid":"save-btn",form:l,loading:r,children:"Save"})]})]})};t.ZP=e=>{let{header:t,description:s,isOpen:n,onClose:l,children:r,footer:o}=e;return(0,i.jsxs)(a.dys,{placement:"right",isOpen:n,onClose:l,size:"md",children:[(0,i.jsx)(a.P1B,{}),(0,i.jsxs)(a.scA,{"data-testid":"edit-drawer-content",py:2,children:[(0,i.jsxs)(a.xuv,{display:"flex",justifyContent:"space-between",alignItems:"top",mr:2,py:2,gap:2,children:[(0,i.jsx)(a.xuv,{flex:1,minH:8,children:t}),(0,i.jsx)(a.xuv,{display:"flex",justifyContent:"flex-end",mr:2,children:(0,i.jsx)(a.wpx,{"aria-label":"Close editor",onClick:l,"data-testid":"close-drawer-btn",icon:(0,i.jsx)(a.Two,{fontSize:"smaller"})})})]}),(0,i.jsxs)(a.Ng0,{pt:1,children:[s?(0,i.jsx)(a.xvT,{fontSize:"sm",mb:4,color:"gray.600",children:s}):null,r]}),o]})]})}},56358:function(e,t,s){"use strict";s.d(t,{q:function(){return a}});var i=s(24246);let a=(0,s(4454).IUT)({displayName:"TrashCanOutlineIcon",viewBox:"0 0 11 12",path:(0,i.jsx)("path",{d:"M4.5166 1.60859L4.1084 2.21875H7.22363L6.81543 1.60859C6.7832 1.56133 6.72949 1.53125 6.67148 1.53125H4.6584C4.60039 1.53125 4.54668 1.55918 4.51445 1.60859H4.5166ZM7.6748 1.03711L8.46328 2.21875H8.75977H9.79102H9.96289C10.2486 2.21875 10.4785 2.44863 10.4785 2.73438C10.4785 3.02012 10.2486 3.25 9.96289 3.25H9.79102V9.78125C9.79102 10.7309 9.02188 11.5 8.07227 11.5H3.25977C2.31016 11.5 1.54102 10.7309 1.54102 9.78125V3.25H1.36914C1.0834 3.25 0.853516 3.02012 0.853516 2.73438C0.853516 2.44863 1.0834 2.21875 1.36914 2.21875H1.54102H2.57227H2.86875L3.65723 1.03496C3.88066 0.701953 4.25664 0.5 4.6584 0.5H6.67148C7.07324 0.5 7.44922 0.701953 7.67266 1.03496L7.6748 1.03711ZM2.57227 3.25V9.78125C2.57227 10.1615 2.87949 10.4688 3.25977 10.4688H8.07227C8.45254 10.4688 8.75977 10.1615 8.75977 9.78125V3.25H2.57227ZM4.29102 4.625V9.09375C4.29102 9.28281 4.13633 9.4375 3.94727 9.4375C3.7582 9.4375 3.60352 9.28281 3.60352 9.09375V4.625C3.60352 4.43594 3.7582 4.28125 3.94727 4.28125C4.13633 4.28125 4.29102 4.43594 4.29102 4.625ZM6.00977 4.625V9.09375C6.00977 9.28281 5.85508 9.4375 5.66602 9.4375C5.47695 9.4375 5.32227 9.28281 5.32227 9.09375V4.625C5.32227 4.43594 5.47695 4.28125 5.66602 4.28125C5.85508 4.28125 6.00977 4.43594 6.00977 4.625ZM7.72852 4.625V9.09375C7.72852 9.28281 7.57383 9.4375 7.38477 9.4375C7.1957 9.4375 7.04102 9.28281 7.04102 9.09375V4.625C7.04102 4.43594 7.1957 4.28125 7.38477 4.28125C7.57383 4.28125 7.72852 4.43594 7.72852 4.625Z",fill:"currentColor"})})},84306:function(e,t,s){"use strict";s.d(t,{V:function(){return n}});var i=s(24246),a=s(4454);let n=()=>{let e=(0,a.pmc)();return{errorAlert:(t,s,n)=>{let l={...n,position:(null==n?void 0:n.position)||"top",render:e=>{let{onClose:n}=e;return(0,i.jsxs)(a.bZj,{alignItems:"normal",status:"error","data-testid":"error-alert",children:[(0,i.jsx)(a.zMQ,{}),(0,i.jsxs)(a.xuv,{children:[s&&(0,i.jsx)(a.CdC,{children:s}),(0,i.jsx)(a.XaZ,{children:t})]}),(0,i.jsx)(a.PZ7,{onClick:n,position:"relative",right:0,size:"sm",top:-1})]})}};(null==n?void 0:n.id)&&e.isActive(n.id)?e.update(n.id,l):e(l)},successAlert:(t,s,n)=>{let l={...n,position:(null==n?void 0:n.position)||"top",render:e=>{let{onClose:n}=e;return(0,i.jsxs)(a.bZj,{alignItems:"normal",status:"success",variant:"subtle","data-testid":"success-alert",children:[(0,i.jsx)(a.zMQ,{}),(0,i.jsxs)(a.xuv,{children:[s&&(0,i.jsx)(a.CdC,{children:s}),(0,i.jsx)(a.XaZ,{children:t})]}),(0,i.jsx)(a.PZ7,{onClick:n,position:"relative",right:0,size:"sm",top:-1})]})}};(null==n?void 0:n.id)&&e.isActive(n.id)?e.update(n.id,l):e(l)}}}},8133:function(e,t,s){"use strict";var i=s(24246),a=s(4454);t.Z=e=>{let{title:t,children:s,isOpen:n,onClose:l,...r}=e;return(0,i.jsxs)(a.u_l,{isOpen:n,onClose:l,isCentered:!0,scrollBehavior:"inside",size:"xl",id:"add-modal",...r,children:[(0,i.jsx)(a.ZAr,{}),(0,i.jsxs)(a.hzk,{textAlign:"left",p:0,"data-testid":"add-modal-content",children:[(0,i.jsx)(a.xBx,{p:0,children:(0,i.jsx)(a.xuv,{backgroundColor:"gray.50",px:6,py:4,border:"1px",borderColor:"gray.200",borderTopRadius:6,display:"flex",justifyContent:"space-between",alignItems:"center",children:(0,i.jsx)(a.X6q,{as:"h3",size:"sm",children:t})})}),(0,i.jsx)(a.fef,{pb:4,overflow:"auto",children:s})]})]})}},39715:function(e,t,s){"use strict";var i=s(24246),a=s(4454);s(27378),t.Z=e=>{let{isEmptyState:t,yamlError:s}=e;return(0,i.jsx)(a.Rg9,{in:!0,children:(0,i.jsxs)(a.xuv,{w:"fit-content",bg:"white",p:3,borderRadius:3,children:[(0,i.jsxs)(a.Ugi,{children:[(0,i.jsx)(a.X6q,{as:"h5",color:"gray.700",size:"xs",children:"YAML"}),(0,i.jsx)(a.Vp9,{colorScheme:"red",size:"sm",variant:"solid",children:"Error"})]}),(0,i.jsx)(a.xuv,{bg:"red.50",border:"1px solid",borderColor:"red.300",color:"red.300",mt:"16px",borderRadius:"6px",children:(0,i.jsxs)(a.Ugi,{alignItems:"flex-start",margin:["14px","17px","14px","17px"],children:[(0,i.jsx)(a.f9v,{}),t&&(0,i.jsxs)(a.xuv,{children:[(0,i.jsx)(a.X6q,{as:"h5",color:"red.500",fontWeight:"semibold",size:"xs",children:"Error message:"}),(0,i.jsx)(a.xvT,{color:"gray.700",fontSize:"sm",fontWeight:"400",children:"Yaml system is required"})]}),s&&(0,i.jsxs)(a.xuv,{children:[(0,i.jsx)(a.X6q,{as:"h5",color:"red.500",fontWeight:"semibold",size:"xs",children:"Error message:"}),(0,i.jsx)(a.xvT,{color:"gray.700",fontSize:"sm",fontWeight:"400",children:s.message}),(0,i.jsx)(a.xvT,{color:"gray.700",fontSize:"sm",fontWeight:"400",children:s.reason}),(0,i.jsxs)(a.xvT,{color:"gray.700",fontSize:"sm",fontWeight:"400",children:["Ln ",(0,i.jsx)("b",{children:s.mark.line}),", Col"," ",(0,i.jsx)("b",{children:s.mark.column}),", Pos"," ",(0,i.jsx)("b",{children:s.mark.position})]})]})]})})]})})}},56026:function(e,t,s){"use strict";s.d(t,{QL:function(){return n},du:function(){return a},tz:function(){return i}});let i={name:{tooltip:"A UI-friendly label for the Dataset."},description:{tooltip:"A human-readable description of the Dataset."},data_categories:{tooltip:"Arrays of Data Category resources, identified by fides_key, that apply to all collections in the Dataset."}},a={description:{tooltip:"A human-readable description of the collection."},data_categories:{tooltip:"Arrays of Data Category resources, identified by fides_key, that apply to all fields in the collection."}},n={description:{tooltip:"A human-readable description of the field."},data_categories:{tooltip:"Arrays of Data Category resources, identified by fides_key, that apply to this field."}}},91949:function(e,t,s){"use strict";s.r(t),s.d(t,{default:function(){return L}});var i=s(24246),a=s(92222),n=s(59003),l=s(4454),r=s(79894),o=s.n(r),d=s(86677),c=s(27378),u=s(16125),x=s(32885),h=s(61317);let p=e=>{let{resourceType:t,fidesKeys:s,skip:i}=e,[a,n]=(0,c.useState)(!0),l=(0,x.Wm)({resource_type:t,fides_keys:s},{skip:i,pollingInterval:a?3e3:void 0}),r=!!l.data&&l.data.every(e=>e.status===h.Wg.COMPLETE||e.status===h.Wg.FAILED||e.status===h.Wg.REVIEWED);return(0,c.useEffect)(()=>{r&&n(!1)},[r]),{...l,isClassificationFinished:r}};var m=s(25980),j=s(77213),f=s(77830),g=s(58754),C=s(14481),y=s(20386),v=s(79806),b=s(812),w=s(46628),k=s(8133),z=s(84306),S=s(66527),_=s(41207),A=s(39715),Z=s(41966),R=e=>{let{data:t=[],isSubmitting:s=!1,onCancel:a,onSubmit:n,disabled:r,isLoading:o,onChange:d}=e,u=(0,c.useRef)(null),{errorAlert:x}=(0,z.V)(),h=t.length>0?S.ZP.dump(t):void 0,[p,m]=(0,c.useState)(void 0),[j,f]=(0,c.useState)(!1),[g,C]=(0,c.useState)(!h),{data:y}=(0,Z.NR)(),[v,b]=(0,c.useState)([]),w=e=>{S.ZP.load(e,{json:!0}),m(void 0)},k=()=>{if(y&&y.length){let e=u.current.getValue();b(y.filter(t=>e.includes("fides_key: ".concat(t.fides_key,"\n"))).map(e=>e.fides_key))}},R=r||g||!j||!!p||s;return(0,i.jsxs)(l.kCb,{gap:"97px",children:[(0,i.jsxs)(l.gCW,{align:"stretch",w:"800px",children:[(0,i.jsx)(_.M,{defaultLanguage:"yaml",defaultValue:h,height:"calc(100vh - 526px)",onChange:e=>{try{f(!0),w(e),C(!e||""===e.trim());let t=S.ZP.load(e||"",{json:!0});Array.isArray(t)?d(t[0]):d(t),k()}catch(e){(0,_.F)(e)?m(e):x("Could not parse the supplied YAML")}},onMount:(e,t)=>{u.current=e,u.current.focus()},options:{fontFamily:"Menlo",fontSize:13,minimap:{enabled:!1},readOnly:r},theme:"light"}),v.length>0?(0,i.jsxs)(l.xvT,{children:["You are about to overwrite the dataset",v.length>1?"s":""," ",v.map((e,t)=>{let s=t===v.length-1;return(0,i.jsxs)(c.Fragment,{children:[(0,i.jsx)(l.xvT,{color:"complimentary.500",as:"span",fontWeight:"bold",children:e}),s?".":", "]},e)})]}):null,(0,i.jsx)(l.mzw,{children:(0,i.jsxs)("div",{className:"flex w-full justify-end gap-4",children:[a&&(0,i.jsx)(l.wpx,{onClick:a,"data-testid":"cancel-btn",disabled:o,children:"Cancel"}),(0,i.jsx)(l.wpx,{type:"primary",onClick:()=>{null==n||n(),null==a||a()},"data-testid":"continue-btn",disabled:R,loading:s||o,children:"Confirm"})]})})]}),j&&(g||p)&&(0,i.jsx)(A.Z,{isEmptyState:g,yamlError:p})]})},E=e=>{let{isOpen:t,onClose:s,title:a,isLoading:n,returnFocusOnClose:r,isDatasetSelected:o,dataset:d,onChange:c,onSubmit:u}=e;return(0,i.jsx)(k.Z,{isOpen:t,onClose:s,size:"3xl",returnFocusOnClose:null==r||r,isCentered:!0,title:null!=a?a:"Edit Dataset",children:(0,i.jsx)(l.xuv,{"data-testid":"yaml-editor-section",children:(0,i.jsx)(R,{data:d?[d]:[],onSubmit:u,isSubmitting:!1,disabled:o,onChange:c,isLoading:n,onCancel:s})})})},T=s(34090),D=s(40324),V=s(56026);let M="edit-field-drawer";var H=e=>{var t,s;let{values:a,onSubmit:n}=e,r={name:null!==(t=a.name)&&void 0!==t?t:"",description:null!==(s=a.description)&&void 0!==s?s:"",data_categories:a.data_categories};return(0,i.jsx)(T.J9,{initialValues:r,onSubmit:e=>{n({...e,data_categories:a.data_categories||[]})},children:(0,i.jsx)(T.l0,{id:M,children:(0,i.jsxs)(l.Kqy,{spacing:"3",children:[(0,i.jsx)(D.j0,{name:"name",label:"Name",tooltip:V.tz.name.tooltip,"data-testid":"name-input",variant:"block"}),(0,i.jsx)(D.j0,{name:"description",label:"Description",tooltip:V.tz.description.tooltip,"data-testid":"description-input",variant:"block"})]})})})},P=e=>{let{dataset:t,isOpen:s,onClose:a}=e,[n,{isLoading:r}]=(0,y.TG)(),[o]=(0,y.QY)(),u=(0,d.useRouter)(),x=(0,l.pmc)(),{isOpen:h,onOpen:p,onClose:m}=(0,l.qY0)(),{isOpen:j,onOpen:f,onClose:g}=(0,l.qY0)(),[C,k]=(0,c.useState)(void 0),z=async e=>{let s={...t,...e};try{let e=await n(s);(0,b.D4)(e)?x((0,w.Vo)((0,b.e$)(e.error))):x((0,w.t5)("Successfully modified dataset"))}catch(e){x((0,w.Vo)(e))}a()},S=async()=>{let{fides_key:e}=t,s=await o(e);(0,b.D4)(s)?x((0,w.Vo)((0,b.e$)(s.error))):x((0,w.t5)("Successfully deleted dataset")),(0,y.Zl)(void 0),u.push("/dataset"),a(),m()};return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)(v.ZP,{isOpen:s,onClose:a,description:"A Dataset takes a database schema (tables and columns) and adds Fides privacy categorizations. Provide additional context to this dataset by filling out the fields below.",header:(0,i.jsx)(v.zR,{title:"Edit: ".concat(null==t?void 0:t.name)}),footer:(0,i.jsx)(v.Gn,{onClose:a,onDelete:p,onEditYaml:()=>f(),formId:M}),children:[(0,i.jsx)(E,{isOpen:j,onClose:g,onChange:k,onSubmit:()=>z(C),title:"Edit dataset YAML",isLoading:r,isDatasetSelected:!1,dataset:t}),(0,i.jsx)(H,{values:t,onSubmit:z})]}),(0,i.jsx)(l.cVQ,{isOpen:h,onClose:m,onConfirm:S,title:"Delete Dataset",message:(0,i.jsxs)(l.xvT,{children:["You are about to permanently delete the dataset named"," ",(0,i.jsx)(l.xvT,{color:"complimentary.500",as:"span",fontWeight:"bold",children:null==t?void 0:t.name}),". Are you sure you would like to continue?"]})})]})};let I=(0,a.Cl)(),O={items:[],total:0,page:1,size:25,pages:1},W=()=>(0,i.jsx)(l.gCW,{mt:6,p:10,spacing:4,borderRadius:"base",maxW:"70%","data-testid":"no-results-notice",alignSelf:"center",margin:"auto",textAlign:"center",children:(0,i.jsxs)(l.gCW,{children:[(0,i.jsx)(l.xvT,{fontSize:"md",fontWeight:"600",children:"No datasets found."}),(0,i.jsx)(l.xvT,{fontSize:"sm",children:'Click "Create new dataset" to add your first dataset to Fides.'})]})});var L=()=>{let e=(0,u.I0)(),t=(0,d.useRouter)(),[s,r]=(0,c.useState)(!1),[x,v]=(0,c.useState)(),{PAGE_SIZES:b,pageSize:w,setPageSize:k,onPreviousPageClick:z,isPreviousPageDisabled:S,onNextPageClick:_,isNextPageDisabled:A,startRange:Z,endRange:R,pageIndex:E,setTotalPages:T,resetPageIndexToDefault:D}=(0,C.oi)(),[V,M]=(0,c.useState)(),H=(0,c.useCallback)(e=>{D(),M(e)},[D,M]),{data:L,isLoading:N,isFetching:F}=(0,y.rt)({page:E,size:w,search:V,exclude_saas_datasets:!0}),{items:Y,total:q,pages:X}=(0,c.useMemo)(()=>null!=L?L:O,[L]);(0,c.useEffect)(()=>{T(X)},[X,T]);let G=(0,c.useCallback)(s=>{e((0,y.Zl)(s.fides_key)),t.push({pathname:f.o5,query:{datasetId:encodeURIComponent(s.fides_key)}})},[e,t]),B=(0,m.hz)();p({resourceType:h.j.DATASETS,skip:!B.plus});let Q=(0,c.useMemo)(()=>[I.accessor(e=>e.name,{id:"name",cell:e=>(0,i.jsx)(C.G3,{value:e.getValue(),fontWeight:"semibold"}),header:e=>(0,i.jsx)(C.Rr,{value:"Dataset Name",...e}),size:180}),I.accessor(e=>e.fides_key,{id:"fides_key",cell:e=>(0,i.jsx)(C.G3,{value:e.getValue()}),header:e=>(0,i.jsx)(C.Rr,{value:"Fides Key",...e}),size:150}),I.accessor(e=>e.description,{id:"description",cell:e=>(0,i.jsx)(C.G3,{value:e.getValue(),cellProps:e}),header:e=>(0,i.jsx)(C.Rr,{value:"Description",...e}),size:300,meta:{showHeaderMenu:!0}}),I.display({id:"actions",header:"Actions",cell:e=>{let{row:t}=e,s=t.original;return(0,i.jsx)(l.Ugi,{spacing:0,"data-testid":"dataset-".concat(s.fides_key),children:(0,i.jsx)(l.wpx,{size:"small",icon:(0,i.jsx)(l.dY8,{}),onClick:()=>{v(s),r(!0)},children:"Edit"})})},meta:{disableRowClick:!0}})].filter(Boolean),[]),U=(0,n.b7)({getCoreRowModel:(0,a.sC)(),getFilteredRowModel:(0,a.vL)(),getSortedRowModel:(0,a.tj)(),columns:Q,data:Y,columnResizeMode:"onChange"});return(0,i.jsx)(j.Z,{title:"Datasets",children:(0,i.jsxs)(l.xuv,{"data-testid":"system-management",children:[(0,i.jsx)(g.Z,{heading:"Datasets",breadcrumbItems:[{title:"All datasets"}],rightContent:(0,i.jsx)(o(),{href:"/dataset/new",passHref:!0,legacyBehavior:!0,children:(0,i.jsx)(l.wpx,{"data-testid":"create-dataset-btn",children:"+ Add dataset"})})}),N?(0,i.jsx)(C.I4,{rowHeight:36,numRows:15}):(0,i.jsxs)(l.xuv,{"data-testid":"dataset-table",children:[(0,i.jsx)(C.Q$,{children:(0,i.jsx)(C.HO,{globalFilter:V,setGlobalFilter:H,placeholder:"Search",testid:"dataset-search"})}),(0,i.jsx)(C.ZK,{tableInstance:U,emptyTableNotice:(0,i.jsx)(W,{}),onRowClick:G})]}),(0,i.jsx)(C.s8,{totalRows:q||0,pageSizes:b,setPageSize:k,onPreviousPageClick:z,isPreviousPageDisabled:S||F,onNextPageClick:_,isNextPageDisabled:A||F,startRange:Z,endRange:R}),(0,i.jsx)(P,{dataset:x,isOpen:s,onClose:()=>{v(void 0),r(!1)}})]})})}}},function(e){e.O(0,[8033,6060,6527,7553,4481,9327,2888,9774,179],function(){return e(e.s=64902)}),_N_E=e.O()}]);
|
fides/ui-build/static/admin/_next/static/chunks/pages/datastore-connection/[id]-6e27257eccf65f01.js
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6446],{10463:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/datastore-connection/[id]",function(){return n(88228)}])},88228:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return w}});var i=n(24246),l=n(1226),s=n(4454),a=n(86677),r=n(27378),o=n(16134),c=n(14047),u=n(77830),d=n(20682),f=n(94725),h=n(7617),x=n(58754),p=n(11274),v=n(26788),j=n(38212),y=n(50881),m=n(41337),_=()=>{let e=(0,o.T)(),{connection:t,connectionOption:n}=(0,o.C)(d.ZZ),[l,a]=(0,r.useState)(void 0),c=(0,r.useMemo)(()=>()=>{let e=[];return(null==l?void 0:l.options)&&l.options.forEach(n=>{let l;switch(n){case v.H5.CONNECTOR_PARAMETERS:l={label:n,content:(0,i.jsx)(p.s,{})};break;case v.H5.DATASET_CONFIGURATION:l=(null==t?void 0:t.key)?{label:n,content:(0,i.jsx)(j.Z,{})}:void 0;break;case v.H5.DSR_CUSTOMIZATION:l=(null==t?void 0:t.key)?{label:n,content:(0,i.jsx)(y.Z,{})}:void 0}l&&e.push(l)}),e},[null==t?void 0:t.key,null==l?void 0:l.options]);return(0,r.useEffect)(()=>{if(n){let t=v.IM.find(e=>e.type===(null==n?void 0:n.type));t&&(a(t),e((0,d.nj)(v.Ss[2])))}return()=>{e((0,d.mc)())}},[n,e]),t&&n?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(x.Z,{heading:"Connection manager",breadcrumbItems:[{title:"All connections",href:u.JR},{title:t.name}]}),(0,i.jsx)(s.X6q,{fontSize:"md",fontWeight:"semibold",maxHeight:"40px",mb:"4px",whiteSpace:"nowrap",children:(0,i.jsxs)(s.xuv,{alignItems:"center",display:"flex",children:[(0,i.jsx)(m.Z,{data:n}),(0,i.jsx)(s.xvT,{ml:"8px",children:t.name})]})}),(0,i.jsx)(s.gCW,{alignItems:"stretch",flex:"1",gap:"18px",children:(0,i.jsx)(h.Z,{data:c(),flexGrow:1,isLazy:!0})})]}):null},g=n(61317),w=()=>{let e=(0,o.T)(),t=(0,a.useRouter)(),{id:n}=t.query,{errorAlert:h}=(0,c.V)(),x=(0,o.C)(d.y_),[p,v]=(0,r.useState)(!0),j=(e,t)=>t.find(t=>{var n;return t.identifier===e.connection_type&&t.identifier!==g.Rj.SAAS||t.identifier===(null===(n=e.saas_config)||void 0===n?void 0:n.type)});return(0,r.useEffect)(()=>{let i=()=>{h("An error occurred while loading ".concat(t.query.id)),t.push(u.JR,void 0,{shallow:!0})},l=async t=>{try{let n=[];n.push(e(f.DM.endpoints.getDatastoreConnectionByKey.initiate(t))),0===x.length&&n.push(e(d.d8.endpoints.getAllConnectionTypes.initiate({search:""})));let l=await Promise.allSettled(n);if(l.every(e=>"fulfilled"===e.status)){e((0,d.lm)(l[0].value.data));let t=[...l[1]?l[1].value.data.items:x],n=j(l[0].value.data,t);e((0,d.yA)(n)),v(!1)}else i()}catch(e){i()}};return n&&l(n),()=>{}},[n]),(0,i.jsxs)(i.Fragment,{children:[p&&(0,i.jsx)(s.xuv,{display:"flex",h:"100vh",justifyContent:"center",children:(0,i.jsx)(s.M5Y,{children:(0,i.jsx)(s.$jN,{})})}),!p&&(0,i.jsx)(l.Z,{children:(0,i.jsx)(_,{})})]})}}},function(e){e.O(0,[6527,9327,9767,2888,9774,179],function(){return e(e.s=10463)}),_N_E=e.O()}]);
|
fides/ui-build/static/admin/_next/static/chunks/pages/datastore-connection/new-bbac1f624424282d.js
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6050],{91747:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/datastore-connection/new",function(){return n(7936)}])},19904:function(e,t,n){"use strict";n.d(t,{Tg:function(){return a}});var i=n(24246),l=n(16134),r=n(31793);let a=e=>(0,l.C)(r.uu).filter(t=>e.includes(t)).length>0;t.ZP=e=>{let{scopes:t,children:n}=e;return a(t)?(0,i.jsx)(i.Fragment,{children:n}):null}},96718:function(e,t,n){"use strict";n.d(t,{z:function(){return r}});var i=n(24246),l=n(4454);let r=e=>{let{...t}=e,n="multiple"===t.mode;return(0,i.jsx)(l.WPr,{defaultActiveFirstOption:!1,maxTagCount:"responsive",allowClear:!0,dropdownStyle:n?void 0:{width:"auto",minWidth:"200px"},className:"w-auto","data-testid":"filter-select",...t})}},44553:function(e,t,n){"use strict";n.d(t,{Z:function(){return m}});var i=n(24246),l=n(4454),r=n(27378),a=n(45277),s=n(16125),o=n(812),c=n(46628),d=n(20682),u=n(54427),p=n(52253),x=n(78780);let{reducer:h}=(0,u.oM)({name:"connectorTemplate",initialState:{},reducers:{}}),{useRegisterConnectorTemplateMutation:f}=x.u.injectEndpoints({endpoints:e=>({registerConnectorTemplate:e.mutation({query:e=>{let t=new FormData;return t.append("file",e),{url:"".concat(p.o4,"/register"),method:"POST",body:t}},invalidatesTags:()=>["Connection Type"]})})});var m=e=>{let{isOpen:t,onClose:n,testId:u="connector-template-modal"}=e,p=(0,s.I0)(),[x,h]=(0,r.useState)(null),m=(0,l.pmc)(),{getRootProps:y,getInputProps:j,isDragActive:g}=(0,a.uI)({onDrop:e=>{var t;if("zip"!==(null===(t=e[0].name.split(".").pop())||void 0===t?void 0:t.toLowerCase())){m((0,c.Vo)("Only zip files are allowed."));return}h(e[0])}}),[v,{isLoading:C}]=f(),{refetch:b}=(0,d.$I)({search:""},{skip:!1}),w=async()=>{if(x)try{var e;await v(x).unwrap(),m((0,c.t5)("Integration template uploaded successfully."));let{data:t}=await b();p((0,d.fP)(null!==(e=null==t?void 0:t.items)&&void 0!==e?e:[])),n()}catch(e){m((0,c.Vo)((0,o.e$)(e)))}finally{h(null)}};return(0,i.jsxs)(l.u_l,{isOpen:t,onClose:n,size:"2xl",children:[(0,i.jsx)(l.ZAr,{}),(0,i.jsxs)(l.hzk,{textAlign:"left",p:2,"data-testid":u,children:[(0,i.jsx)(l.xBx,{children:"Upload integration template"}),(0,i.jsxs)(l.fef,{children:[(0,i.jsx)(l.xvT,{fontSize:"sm",mb:4,children:"Drag and drop your integration template zip file here, or click to browse your files."}),(0,i.jsxs)(l.xuv,{...y(),bg:g?"gray.100":"gray.50",border:"2px dashed",borderColor:g?"gray.300":"gray.200",borderRadius:"md",cursor:"pointer",minHeight:"150px",display:"flex",alignItems:"center",justifyContent:"center",textAlign:"center",children:[(0,i.jsx)("input",{...j()}),x?(0,i.jsx)(l.xvT,{children:x.name}):g?(0,i.jsx)(l.xvT,{children:"Drop the file here..."}):(0,i.jsx)(l.xvT,{children:"Click or drag and drop your file here."})]}),(0,i.jsx)(l.xvT,{fontSize:"sm",mt:4,children:"An integration template zip file must include a SaaS config and dataset, but may also contain an icon (.svg) as an optional file."})]}),(0,i.jsxs)(l.mzw,{className:"flex w-full justify-end gap-2",children:[(0,i.jsx)(l.wpx,{onClick:n,"data-testid":"cancel-btn",disabled:C,children:"Cancel"}),(0,i.jsx)(l.wpx,{type:"primary",htmlType:"submit",disabled:!x||C,onClick:w,"data-testid":"submit-btn",children:"Submit"})]})]})]})}},7936:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return R}});var i=n(24246),l=n(96356),r=n(41337),a=n(4454),s=n(86677),o=n(27378),c=n(16125),d=n(16134),u=n(77830),p=n(58754),x=n(16394),h=n(19904),f=n(44553),m=n(61317),y=n(96718),j=n(26788),g=()=>{let e=(0,c.I0)(),t=(0,o.useRef)(!1);(0,o.useEffect)(()=>(t.current=!0,()=>{e((0,l.zq)(j.gA)),t.current=!1}),[e]);let n=(0,o.useRef)([...j.yI].map(e=>{let[t,n]=e;return{value:null==n?void 0:n.value,label:t}}));return(0,i.jsx)(y.z,{allowClear:!1,options:n.current,onChange:t=>{e((0,l.zq)(t||j.gA))},defaultValue:"","data-testid":"connection-type-filter"})},v=n(79894),C=n.n(v),b=e=>{let{items:t}=e;return(0,i.jsx)(a.MIq,{columns:4,spacingX:"16px",spacingY:"16px",children:t.map(e=>(0,i.jsx)(C(),{href:{pathname:window.location.pathname,query:{step:2,connectorType:JSON.stringify(e)}},children:(0,i.jsx)(a.xuv,{boxShadow:"base",borderRadius:"5px",maxWidth:"331px",overflow:"hidden",_hover:{boxShadow:"lg",cursor:"pointer"},"data-testid":"".concat(e.identifier,"-item"),children:(0,i.jsxs)(a.kCb,{alignItems:"center",justifyContent:"start",pl:"24px",pr:"24px",color:"gray.700",fontSize:"14px",fontStyle:"normal",fontWeight:"600",lineHeight:"20px",h:"80px",children:[(0,i.jsx)(r.Z,{data:e}),(0,i.jsx)(a.xvT,{ml:"12px",children:e.human_readable})]})})},e.identifier))})},w=()=>{let e=(0,c.I0)(),t=(0,o.useRef)(!1),{step:n}=(0,d.C)(l.ZZ),r=(0,d.C)(l.pw),{data:s,isFetching:u,isLoading:p,isSuccess:y}=(0,l.$I)(r),[j,v]=(0,o.useState)(!1),C=(0,o.useCallback)(t=>{(0===t.target.value.length||t.target.value.length>1)&&e((0,l.qP)(t.target.value))},[e]),w=(0,o.useMemo)(()=>(0,x.Ds)(C,250),[C]),T=(0,o.useMemo)(()=>(null==s?void 0:s.items)&&[...s.items].sort((e,t)=>e.human_readable>t.human_readable?1:-1),[s]);return(0,o.useEffect)(()=>(t.current=!0,()=>{e((0,l.qP)("")),t.current=!1}),[e]),(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(a.kCb,{minWidth:"fit-content",children:(0,i.jsx)(a.xuv,{color:"gray.700",fontSize:"14px",maxHeight:"80px",maxWidth:"474px",mb:"24px",children:n.description})}),(0,i.jsxs)(a.kCb,{alignItems:"center",gap:"4",mb:"24px",minWidth:"fit-content",children:[(0,i.jsx)(g,{}),(0,i.jsxs)(a.BZy,{size:"sm",children:[(0,i.jsx)(a.Z8_,{pointerEvents:"none",children:(0,i.jsx)(a.PTu,{color:"gray.300",h:"17px",w:"17px"})}),(0,i.jsx)(a.IIB,{autoComplete:"off",autoFocus:!0,borderRadius:"md",name:"search",onChange:w,placeholder:"Search integrations",size:"sm",type:"search"})]}),(0,i.jsx)(h.ZP,{scopes:[m.Sh.CONNECTOR_TEMPLATE_REGISTER],children:(0,i.jsx)(a.wpx,{onClick:()=>{v(!0)},type:"primary",htmlType:"submit","data-testid":"upload-btn",children:"Upload connector"})})]}),(0,i.jsx)(f.Z,{isOpen:j,onClose:()=>v(!1)}),(u||p)&&(0,i.jsx)(a.M5Y,{children:(0,i.jsx)(a.$jN,{})}),y&&T?(0,i.jsx)(b,{items:T}):null]})},T=n(7617),S=n(11274),I=n(38212),k=n(50881),N=()=>{let e=(0,c.I0)(),t=(0,o.useRef)(!1),[n,r]=(0,o.useState)(!1),{connection:s,connectionOption:u}=(0,d.C)(l.ZZ),p=j.IM.find(e=>e.type===(null==u?void 0:u.type)),[x,h]=(0,o.useState)(null==p?void 0:p.options[0]),f=()=>{r(!0)},y=(0,o.useMemo)(()=>()=>{let e=[];return(null==p?void 0:p.options)&&p.options.forEach(t=>{let n;switch(t){case j.H5.CONNECTOR_PARAMETERS:n={label:t,content:(0,i.jsx)(S.s,{onConnectionCreated:f})};break;case j.H5.DATASET_CONFIGURATION:n=(null==s?void 0:s.key)?{label:t,content:(0,i.jsx)(I.Z,{})}:void 0;break;case j.H5.DSR_CUSTOMIZATION:n=(null==s?void 0:s.key)?{label:t,content:(0,i.jsx)(k.Z,{})}:void 0}n&&e.push(n)}),e},[null==s?void 0:s.key,null==p?void 0:p.options]),g=(0,o.useCallback)(t=>{switch(t){case j.H5.DATASET_CONFIGURATION:case j.H5.DSR_CUSTOMIZATION:e((0,l.nj)(j.Ss[3]));break;case j.H5.CONNECTOR_PARAMETERS:default:e((0,l.nj)(j.Ss[2]))}h(t)},[e]);return(0,o.useEffect)(()=>(t.current=!0,()=>{t.current=!1,e((0,l.mc)())}),[e]),(0,o.useEffect)(()=>{(null==s?void 0:s.key)&&(g((null==u?void 0:u.type)!==m.Zi.MANUAL?j.H5.DATASET_CONFIGURATION:j.H5.DSR_CUSTOMIZATION),n&&r(!1))},[n,null==s?void 0:s.key,null==u?void 0:u.type,null==p?void 0:p.options,g]),(0,i.jsx)(a.gCW,{alignItems:"stretch",gap:"18px",children:(0,i.jsx)(T.Z,{data:y(),flexGrow:1,index:null==p?void 0:p.options.findIndex(e=>e===x),isLazy:!0})})};let _=(e,t)=>{let n="".concat(window.location.origin+t,"&key=").concat(e);window.location.href.toLowerCase()!==n.toLowerCase()&&window.history.replaceState(null,"",n)},{Title:A}=a.AntTypography;var E=()=>{let e=(0,c.I0)(),t=(0,s.useRouter)(),{connectorType:n,step:x}=t.query,{connection:h,connectionOption:f,step:m}=(0,d.C)(l.ZZ);(0,o.useEffect)(()=>{if(n&&e((0,l.yA)(JSON.parse(n))),t.query.step){let t=j.Ss.find(e=>e.stepId===Number(x));e((0,l.nj)(t||j.Ss[1]))}return!t.query.id&&(null==h?void 0:h.key)&&_(h.key,m.href),()=>{}},[null==h?void 0:h.key,n,x,e,t.query.id,t.query.step,m.href]);let y=(0,o.useCallback)(e=>{let t="";switch(e.stepId){case 2:case 3:t=e.label.replace("{identifier}",f.human_readable);break;default:t=e.label}return t},[f]);return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(p.Z,{heading:"Connections",breadcrumbItems:[{title:"Unlinked connections",href:u.JR},{title:"New connection"}],children:(0,i.jsx)(A,{level:3,style:{marginBottom:0},className:"mt-4",children:f?(0,i.jsxs)(a.vyj,{children:[(0,i.jsx)(r.Z,{data:f}),y(m)]}):y(m)})}),(()=>{switch(m.stepId){case 1:default:return(0,i.jsx)(w,{});case 2:case 3:return(0,i.jsx)(N,{})}})()]})},O=n(1226),R=()=>(0,i.jsx)(O.Z,{children:(0,i.jsx)(E,{})})}},function(e){e.O(0,[6527,5277,9327,9767,2888,9774,179],function(){return e(e.s=91747)}),_N_E=e.O()}]);
|
fides/ui-build/static/admin/_next/static/chunks/pages/datastore-connection-84eb56f5a07bdf4f.js
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1850],{96539:function(e,t,n){var i=n(77400).Symbol;e.exports=i},99736:function(e,t,n){var i=n(96539),r=n(34840),s=n(21258),o=i?i.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":o&&o in Object(e)?r(e):s(e)}},75733:function(e){e.exports=function(e,t,n){var i=-1,r=e.length;t<0&&(t=-t>r?0:r+t),(n=n>r?r:n)<0&&(n+=r),r=t>n?0:n-t>>>0,t>>>=0;for(var s=Array(r);++i<r;)s[i]=e[i+t];return s}},74833:function(e,t,n){var i=n(56127),r=/^\s+/;e.exports=function(e){return e?e.slice(0,i(e)+1).replace(r,""):e}},39120:function(e,t,n){var i="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g;e.exports=i},34840:function(e,t,n){var i=n(96539),r=Object.prototype,s=r.hasOwnProperty,o=r.toString,l=i?i.toStringTag:void 0;e.exports=function(e){var t=s.call(e,l),n=e[l];try{e[l]=void 0;var i=!0}catch(e){}var r=o.call(e);return i&&(t?e[l]=n:delete e[l]),r}},42383:function(e){var t=/^(?:0|[1-9]\d*)$/;e.exports=function(e,n){var i=typeof e;return!!(n=null==n?9007199254740991:n)&&("number"==i||"symbol"!=i&&t.test(e))&&e>-1&&e%1==0&&e<n}},57535:function(e,t,n){var i=n(85638),r=n(80068),s=n(42383),o=n(11611);e.exports=function(e,t,n){if(!o(n))return!1;var l=typeof t;return("number"==l?!!(r(n)&&s(t,n.length)):"string"==l&&t in n)&&i(n[t],e)}},21258:function(e){var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},77400:function(e,t,n){var i=n(39120),r="object"==typeof self&&self&&self.Object===Object&&self,s=i||r||Function("return this")();e.exports=s},56127:function(e){var t=/\s/;e.exports=function(e){for(var n=e.length;n--&&t.test(e.charAt(n)););return n}},92875:function(e,t,n){var i=n(75733),r=n(57535),s=n(47991),o=Math.ceil,l=Math.max;e.exports=function(e,t,n){t=(n?r(e,t,n):void 0===t)?1:l(s(t),0);var a=null==e?0:e.length;if(!a||t<1)return[];for(var c=0,d=0,u=Array(o(a/t));c<a;)u[d++]=i(e,c,c+=t);return u}},85638:function(e){e.exports=function(e,t){return e===t||e!=e&&t!=t}},80068:function(e,t,n){var i=n(28338),r=n(84194);e.exports=function(e){return null!=e&&r(e.length)&&!i(e)}},28338:function(e,t,n){var i=n(99736),r=n(11611);e.exports=function(e){if(!r(e))return!1;var t=i(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},84194:function(e){e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},11611:function(e){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},92360:function(e){e.exports=function(e){return null!=e&&"object"==typeof e}},55193:function(e,t,n){var i=n(99736),r=n(92360);e.exports=function(e){return"symbol"==typeof e||r(e)&&"[object Symbol]"==i(e)}},94919:function(e,t,n){var i=n(91936),r=1/0;e.exports=function(e){return e?(e=i(e))===r||e===-r?(e<0?-1:1)*17976931348623157e292:e==e?e:0:0===e?e:0}},47991:function(e,t,n){var i=n(94919);e.exports=function(e){var t=i(e),n=t%1;return t==t?n?t-n:t:0}},91936:function(e,t,n){var i=n(74833),r=n(11611),s=n(55193),o=0/0,l=/^[-+]0x[0-9a-f]+$/i,a=/^0b[01]+$/i,c=/^0o[0-7]+$/i,d=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(s(e))return o;if(r(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=r(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=i(e);var n=a.test(e);return n||c.test(e)?d(e.slice(2),n?2:8):l.test(e)?o:+e}},98720:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/datastore-connection",function(){return n(22285)}])},77867:function(e,t,n){"use strict";var i=n(24246),r=n(4454);t.Z=e=>{let{connected:t,...n}=e,s="red.500";return null==t?s="gray.300":t&&(s="green.500"),(0,i.jsx)(r.xuv,{width:"12px",height:"12px",borderRadius:"6px",backgroundColor:s,...n})}},77213:function(e,t,n){"use strict";n.d(t,{Z:function(){return x}});var i=n(24246),r=n(4454),s=n(88038),o=n.n(s),l=n(86677);n(27378);var a=n(25980),c=n(90867),d=n(77830),u=()=>{let e=(0,l.useRouter)();return(0,i.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,i.jsxs)(r.xuv,{children:[(0,i.jsxs)(r.Kqy,{direction:{base:"column",sm:"row"},justifyContent:"space-between",children:[(0,i.jsx)(r.xvT,{fontWeight:"semibold",children:"Configure your storage and messaging provider"}),(0,i.jsx)(r.wpx,{onClick:()=>{e.push(d.fz)},children:"Configure"})]}),(0,i.jsxs)(r.xvT,{children:["Before Fides can process your privacy requests we need two simple steps to configure your storage and email client."," "]})]})})},x=e=>{let{children:t,title:n,padded:s=!0,mainProps:d}=e,x=(0,a.hz)(),p=(0,l.useRouter)(),h="/privacy-requests"===p.pathname||"/datastore-connection"===p.pathname,f=!(x.flags.privacyRequestsConfiguration&&h),{data:m}=(0,c.JE)(void 0,{skip:f}),{data:g}=(0,c.PW)(void 0,{skip:f}),j=x.flags.privacyRequestsConfiguration&&(!m||!g)&&h;return(0,i.jsxs)(r.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)(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",...d,children:[j?(0,i.jsx)(u,{}):null,t]})]})}},58754:function(e,t,n){"use strict";var i=n(24246),r=n(4454),s=n(70788);t.Z=e=>{let{heading:t,breadcrumbItems:n,isSticky:o=!0,children:l,rightContent:a,style:c,...d}=e;return(0,i.jsxs)("div",{...d,style:o?{position:"sticky",top:"-24px",paddingTop:"24px",paddingBottom:"24px",paddingLeft:"40px",marginLeft:"-40px",paddingRight:"40px",marginRight:"-40px",marginTop:"-24px",left:0,zIndex:20,backgroundColor:"white",...c}:{paddingBottom:"24px",...c},children:[(0,i.jsxs)(r.jqI,{justify:"space-between",children:["string"==typeof t?(0,i.jsx)(r.lQT,{className:n||l?"pb-4":void 0,level:1,"data-testid":"page-heading",children:t}):t,a&&(0,i.jsx)("div",{"data-testid":"page-header-right-content",children:a})]}),!!n&&(0,i.jsx)(s.m,{className:l?"pb-4":void 0,items:n,"data-testid":"page-breadcrumb"}),l]})}},96718:function(e,t,n){"use strict";n.d(t,{z:function(){return s}});var i=n(24246),r=n(4454);let s=e=>{let{...t}=e,n="multiple"===t.mode;return(0,i.jsx)(r.WPr,{defaultActiveFirstOption:!1,maxTagCount:"responsive",allowClear:!0,dropdownStyle:n?void 0:{width:"auto",minWidth:"200px"},className:"w-auto","data-testid":"filter-select",...t})}},70788:function(e,t,n){"use strict";n.d(t,{m:function(){return c}});var i=n(24246),r=n(4454),s=n(79894),o=n.n(s),l=n(27378);let{Text:a}=r.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,i.jsx)(a,{style:{color:"inherit",maxWidth:s?void 0:400},ellipsis:!s,children:l.title})),c)?l.title=(0,i.jsx)(r.wpx,{type:"text",size:"small",icon:l.icon,onClick:l.onClick,className:"ant-breadcrumb-link -mt-px px-1 text-inherit",children:l.title}):(l.icon&&(l.title=(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("span",{className:"anticon align-text-bottom",children:l.icon}),l.title]})),l.href&&l.title&&(l.title=(0,i.jsx)(o(),{href:l.href,className:"ant-breadcrumb-link",children:l.title}),delete l.href)),l}),[t]);return(0,i.jsx)(r.zrq,{items:s,...n})}},41337:function(e,t,n){"use strict";var i=n(24246),r=n(4454);n(27378);var s=n(61317),o=n(16394),l=n(14746);let a=l.Ny+l.iW.get(s.Rj.WEBSITE),c=e=>void 0!==e.connection_type,d=e=>void 0!==e.encoded_icon,u=e=>(null==e?void 0:e.connection_type)===s.Rj.WEBSITE;t.Z=e=>{let{data:t,...n}=e;return(0,i.jsx)(r.Eep,{boxSize:"32px",objectFit:"cover",src:(()=>{let e;if(d(t)&&t.encoded_icon)return"data:image/svg+xml;base64,".concat(t.encoded_icon);if(u(t)){var n;let e=null===(n=t.secrets)||void 0===n?void 0:n.url;if(!e)return a;let i=(0,o.ge)(e);return(0,o.tl)(i,100)}if(c(t))e=[...l.iW].find(e=>{var n,i;let[r]=e;return t.connection_type.toString()!==s.Rj.SAAS&&t.connection_type.toString()===r||t.connection_type.toString()===s.Rj.SAAS&&(null===(i=t.saas_config)||void 0===i?void 0:null===(n=i.type)||void 0===n?void 0:n.toString())===r.toString()});else if(d(t)){let{identifier:n}=t;e=[...l.iW].find(e=>{let[t]=e;return t.toLowerCase()===n.toLowerCase()})}return e?l.Ny+e[1]:l.VD})(),fallbackSrc:u(t)?a:l.VD,alt:(()=>{if(c(t)){var e;return null!==(e=t.name)&&void 0!==e?e:t.key}return d(t)?t.human_readable:t})(),...n})}},1226:function(e,t,n){"use strict";var i=n(24246);n(27378);var r=n(77213);t.Z=e=>{let{children:t}=e;return(0,i.jsx)(r.Z,{title:"Connections",children:t})}},15872:function(e,t,n){"use strict";var i=n(24246),r=n(4454),s=n(86677);n(27378);var o=n(77830),l=n(14207);t.Z=e=>{let{connection_key:t,showMenu:n}=e,{isOpen:a,onOpen:c,onClose:d}=(0,r.qY0)(),[u,x]=(0,l.R5)(),p=(0,s.useRouter)(),h=()=>{x.isLoading||d()};return(0,i.jsxs)(i.Fragment,{children:[n&&(0,i.jsx)(r.sNh,{_focus:{color:"complimentary.500",bg:"gray.100"},onClick:c,children:(0,i.jsx)(r.xvT,{fontSize:"sm",children:"Delete"})}),!n&&(0,i.jsx)(r.wpx,{onClick:c,children:"Delete integration"}),(0,i.jsxs)(r.u_l,{isCentered:!0,isOpen:a,onClose:h,children:[(0,i.jsx)(r.ZAr,{}),(0,i.jsxs)(r.hzk,{children:[(0,i.jsx)(r.xBx,{children:"Delete integration"}),(0,i.jsx)(r.olH,{}),(0,i.jsx)(r.fef,{pb:6,children:(0,i.jsx)(r.Kqy,{direction:"column",spacing:"15px",children:(0,i.jsx)(r.xvT,{color:"gray.600",fontSize:"sm",fontWeight:"sm",lineHeight:"20px",children:"Deleting an integration may impact any privacy request that is currently in progress. Do you wish to proceed?"})})}),(0,i.jsxs)(r.mzw,{className:"flex gap-4",children:[(0,i.jsx)(r.wpx,{onClick:h,className:"w-1/2",children:"Cancel"}),(0,i.jsx)(r.wpx,{onClick:()=>{t&&(u(t),n||p.push(o.KH))},loading:x.isLoading,type:"primary",className:"w-1/2",children:"Delete integration"})]})]})]})]})}},73183:function(e,t,n){"use strict";var i=n(24246),r=n(4454);n(27378);var s=n(14207);t.Z=e=>{let{connection_key:t,disabled:n,name:o,access_type:l,connection_type:a,isSwitch:c}=e,{isOpen:d,onOpen:u,onClose:x}=(0,r.qY0)(),[p,h]=(0,s.XX)(),f=async()=>{await p({key:t,name:o,disabled:!n,access:l,connection_type:a}),x()},m=()=>{h.isLoading||x()};return(0,i.jsxs)(i.Fragment,{children:[c?(0,i.jsxs)(r.kCb,{justifyContent:"space-between",alignItems:"center",children:[(0,i.jsx)(r.xvT,{fontSize:"sm",children:"Enable integration"}),(0,i.jsx)(r.rAg,{className:"ml-2",checked:!n,onChange:()=>u()})]}):(0,i.jsx)(r.sNh,{_focus:{color:"complimentary.500",bg:"gray.100"},onClick:u,children:(0,i.jsx)(r.xvT,{fontSize:"sm",children:n?"Enable":"Disable"})}),(0,i.jsxs)(r.u_l,{isCentered:!0,isOpen:d,onClose:m,children:[(0,i.jsx)(r.ZAr,{}),(0,i.jsxs)(r.hzk,{children:[(0,i.jsxs)(r.xBx,{children:[n?"Enable":"Disable"," Connection"]}),(0,i.jsx)(r.olH,{}),(0,i.jsx)(r.fef,{pb:6,children:(0,i.jsx)(r.Kqy,{direction:"column",spacing:"15px",children:(0,i.jsxs)(r.xvT,{color:"gray.600",fontSize:"sm",fontWeight:"sm",lineHeight:"20px",children:[n?"Enabling":"Disabling"," a connection may impact any privacy request that is currently in progress. Do you wish to proceed?"]})})}),(0,i.jsxs)(r.mzw,{className:"flex gap-4",children:[(0,i.jsx)(r.wpx,{onClick:m,className:"w-1/2",children:"Cancel"}),(0,i.jsxs)(r.wpx,{onClick:f,loading:h.isLoading,className:"w-1/2",children:[n?"Enable":"Disable"," Connection"]})]})]})]})]})}},8627:function(e,t,n){"use strict";n.d(t,{s:function(){return l}});var i=n(24246),r=n(4454),s=n(77867),o=n(16394);let l=e=>{let{succeeded:t,timestamp:n}=e,l=n?(0,o.p6)(n):"";return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(s.Z,{connected:t}),(0,i.jsx)(r.xvT,{color:"gray.500",fontSize:"xs",fontWeight:"semibold",lineHeight:"16px",ml:"10px",children:n?"Last tested on ".concat(l):"This connection has not been tested yet"})]})}},22285:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return V}});var i=n(24246),r=n(16394),s=n(4454),o=n(27378),l=n(16134),a=n(20682),c=n(16125),d=n(14207),u=n(96718),x=()=>{let{connectionOptions:e}=(0,l.C)(a.ZZ),{connection_type:t}=(0,l.C)(d.dR),n=(0,o.useCallback)(()=>{let n=new Map;return e.forEach(e=>{let i=!1;(null==t?void 0:t.includes(e.identifier))&&(i=!0),n.set(e.human_readable,i)}),n},[e,t]),r=[...(0,o.useMemo)(()=>n(),[n])].map(e=>{let[t]=e;return{value:t,label:t}}),s=(0,l.T)();return(0,i.jsx)(u.z,{mode:"multiple",placeholder:"Connection Type",options:r,onChange:t=>{let n=e.filter(e=>t.includes(e.human_readable));s((0,d.Iw)(n.map(e=>e.identifier)))},defaultValue:(null==t?void 0:t.length)?t:[],className:"w-60","data-testid":"connection-type-filter"})},p=n(14746),h=()=>{let{disabled_status:e}=(0,c.v9)(d.dR),t=()=>{let e=new Map;return Object.values(p.QI).sort().forEach(t=>{e.set((0,r.kC)(t),{value:t})}),e},n=[...(0,o.useMemo)(()=>t(),[])].map(e=>{let[t,n]=e;return{value:n.value,label:t}}),s=(0,c.I0)();return(0,i.jsx)(u.z,{placeholder:"Status",options:n,onChange:e=>{s((0,d.Ru)(e||""))},defaultValue:(null==e?void 0:e.toString())||void 0,"data-testid":"disabled-status-filter"})},f=n(26788),m=()=>{let{system_type:e}=(0,c.v9)(d.dR),t=new Map(f.yI);t.delete("Show all");let n=[...t].map(e=>{let[t,n]=e;return{value:n.value,label:t}}),r=(0,l.T)();return(0,i.jsx)(u.z,{placeholder:"System Type",options:n,onChange:e=>{r((0,d.zq)(e||""))},defaultValue:(null==e?void 0:e.toString())||void 0,"data-testid":"system-type-filter"})},g=()=>{let{test_status:e}=(0,c.v9)(d.dR),t=()=>{let e=new Map;return Object.values(p.i0).sort().forEach(t=>{e.set((0,r.kC)(t),{value:t})}),e},n=[...(0,o.useMemo)(()=>t(),[])].map(e=>{let[t,n]=e;return{value:n.value,label:t}}),s=(0,c.I0)();return(0,i.jsx)(u.z,{placeholder:"Testing Status",options:n,onChange:e=>{s((0,d.Ri)(e||""))},defaultValue:(null==e?void 0:e.toString())||void 0,"data-testid":"testing-status-filter"})};let j=()=>{let e=(0,c.v9)(d.dR),t=(0,c.I0)();return{handleSearchChange:e=>t((0,d.qP)(e.target.value)),...e}};var v=()=>{let{handleSearchChange:e,search:t}=j();return(0,i.jsxs)(s.kCb,{minWidth:"fit-content",alignItems:"center",gap:"4",mb:6,flexWrap:"wrap",children:[(0,i.jsxs)(s.BZy,{size:"sm",minWidth:"308px",children:[(0,i.jsx)(s.Z8_,{pointerEvents:"none",children:(0,i.jsx)(s.PTu,{color:"gray.300",w:"17px",h:"17px"})}),(0,i.jsx)(s.IIB,{autoComplete:"off",autoFocus:!0,type:"search",minWidth:200,placeholder:"Search connection name or description",size:"sm",borderRadius:"md",value:t,name:"search",onChange:e})]}),(0,i.jsx)(x,{}),(0,i.jsx)(m,{}),(0,i.jsx)(g,{}),(0,i.jsx)(h,{})]})},y=e=>{let{page:t,size:n,total:r,handleNextPage:o,handlePreviousPage:l}=e,a=(t-1)*n+1,c=Math.min(r,t*n);return(0,i.jsxs)(s.kCb,{justifyContent:"space-between",mt:6,children:[(0,i.jsx)(s.xvT,{fontSize:"xs",color:"gray.600",children:r>0?(0,i.jsxs)(i.Fragment,{children:["Showing ",Number.isNaN(a)?0:a," to"," ",Number.isNaN(c)?0:c," of"," ",Number.isNaN(r)?0:r," results"]}):"0 results"}),(0,i.jsxs)("div",{children:[(0,i.jsx)(s.wpx,{disabled:t<=1,onClick:l,className:"mr-2",children:"Previous"}),(0,i.jsx)(s.wpx,{disabled:t*n>=r,onClick:o,children:"Next"})]})]})},b=n(92875),C=n.n(b),w=n(40542),_=n.n(w),k=n(79894),S=n.n(k),N=n(77830),z=n(15872),T=n(73183),R=e=>{let{connection_key:t,disabled:n,connection_type:r,access_type:o,name:l}=e;return(0,i.jsxs)(s.v2r,{children:[(0,i.jsx)(s.j2t,{as:s.zxk,size:"xs",bg:"white","data-testid":"connection-menu-btn",children:(0,i.jsx)(s.nXP,{color:"gray.700",w:18,h:18})}),(0,i.jsx)(s.h_i,{children:(0,i.jsxs)(s.qyq,{fontSize:"sm",shadow:"xl","data-testid":"connection-menu-".concat(l),children:[(0,i.jsx)(s.sNh,{as:S(),href:"".concat(N.JR,"/").concat(encodeURIComponent(t)),_focus:{color:"complimentary.500",bg:"gray.100"},"data-testid":"configure-btn",children:"Configure"}),(0,i.jsx)(T.Z,{connection_key:t,disabled:n,connection_type:r,access_type:o,name:l,isSwitch:!1}),(0,i.jsx)(z.Z,{showMenu:!0,connection_key:t})]})})]})},Z=e=>{let{disabled:t}=e;return(0,i.jsx)(s.j8w,{color:t?"marble":"success",className:"mr-1 text-center",children:t?"DISABLED":"ACTIVE"})},E=n(41337),I=n(8627),W=e=>{var t;let{connectionData:n}=e,[c,u]=(0,d.h2)(),{connectionOptions:x}=(0,l.C)(a.ZZ),p=(0,o.useMemo)(()=>x.find(e=>e.identifier===n.connection_type||n.saas_config&&e.identifier===n.saas_config.type)||"ethyca",[n,x]);return(0,i.jsxs)(s.xuv,{width:"100%",height:136,p:"18px 16px 16px 16px","data-testid":"connection-grid-item-".concat(n.name),children:[(0,i.jsxs)(s.kCb,{justifyContent:"center",alignItems:"center",children:[(0,i.jsx)(E.Z,{data:p}),(0,i.jsx)(s.xvT,{color:"gray.900",fontSize:"md",fontWeight:"medium",m:"8px",textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap",children:n.name}),(0,i.jsx)(s.LZC,{}),(0,i.jsx)(Z,{disabled:!!n.disabled}),(0,i.jsx)(R,{connection_key:n.key,disabled:!!n.disabled,name:null!==(t=n.name)&&void 0!==t?t:n.key,connection_type:n.connection_type,access_type:n.access})]}),(0,i.jsx)(s.xvT,{color:"gray.600",fontSize:"sm",fontWeight:"sm",lineHeight:"20px",children:n.description?n.description:(0,i.jsx)("br",{})}),(0,i.jsxs)(s.xvT,{color:"gray.600",fontSize:"sm",fontWeight:"sm",lineHeight:"20px",children:["Edited on ",(0,r.p6)(n.updated_at)]}),(0,i.jsxs)(s.kCb,{mt:"0px",justifyContent:"center",alignItems:"center",children:[(0,i.jsx)(I.s,{succeeded:n.last_test_succeeded,timestamp:n.last_test_timestamp||""}),(0,i.jsx)(s.LZC,{}),(0,i.jsx)(s.wpx,{size:"small",onClick:()=>{c(n.key)},loading:u.isLoading||u.isFetching,children:"Test"})]})]})};let A=()=>{let e=(0,c.I0)(),t=(0,l.C)(d.dR);return{...t,handleNextPage:()=>{e((0,d.YA)(t.page+1))},handlePreviousPage:()=>{e((0,d.YA)(t.page-1))}}};var P=e=>{let{items:t=[],total:n=0}=e,{page:r,size:o,handleNextPage:l,handlePreviousPage:a}=A(),c=C()(t,3);return(0,i.jsxs)(i.Fragment,{children:[c.map((e,t,n)=>{let{length:r}=n;return(0,i.jsx)(s.xuv,{className:_()["grid-row"],borderBottomWidth:r>1&&t===r-1&&3===e.length?"0.5px":void 0,"data-testid":"connection-grid",children:(0,i.jsx)(s.MIq,{columns:3,children:e.map(e=>(0,i.jsx)(s.xuv,{className:_()["grid-item"],children:(0,i.jsx)(W,{connectionData:e})},e.key))})},JSON.stringify(e))}),(0,i.jsx)(y,{page:r,size:o,total:n,handleNextPage:l,handlePreviousPage:a})]})},F=e=>{let{hasFilters:t}=e;return(0,i.jsxs)(s.kCb,{bg:"gray.50",width:"100%",height:"340px",justifyContent:"center",alignItems:"center",flexDirection:"column","data-testid":"connections-empty-state",children:[(0,i.jsx)(s.xvT,{color:"black",fontSize:"x-large",lineHeight:"32px",fontWeight:"600",mb:"7px",children:t?"No connections found":"All of your connections have been linked!"}),(0,i.jsx)(s.xvT,{color:"gray.600",fontSize:"sm",lineHeight:"20px",mb:"11px",children:t?"Modify your search parameters":"You are ready to upgrade Fides"})]})},O=n(25980),q=n(58754),D=n(86677),M=()=>{let e=(0,D.useRouter)();return(0,i.jsx)(s.wpx,{onClick:()=>e.push(f.Ss[1].href),type:"primary",children:"Create new connection"})},L=()=>{let e=(0,O.hz)();return(0,i.jsx)(q.Z,{heading:"Unlinked Connections",rightContent:e.flags.standaloneConnections&&(0,i.jsx)(M,{}),children:(0,i.jsx)(s.xuv,{maxWidth:"450px",children:(0,i.jsxs)(s.xvT,{fontSize:"sm",children:["Connections are now created in the"," ",(0,i.jsx)(s.rUS,{color:"complimentary.500",href:N.xo,children:"system configuration"})," ","section. You can link existing connections to a new or existing system."]})})})},B=()=>{var e;let t=(0,o.useRef)(!1),n=(0,l.T)(),{connectionOptions:c}=(0,l.C)(a.ZZ),u=(0,l.C)(d.dR),[x,p]=(0,o.useState)(u),h=(0,o.useRef)((0,r.Ds)(e=>p(e),250)),{data:f}=(0,a.$I)({search:""},{skip:c.length>0}),{data:m,isFetching:g,isLoading:j,isSuccess:y}=(0,d.AZ)(x),b=(null==m?void 0:null===(e=m.items)||void 0===e?void 0:e.length)>0,C=!!u.search||!!u.connection_type||!!u.system_type||!!u.disabled_status||!!u.test_status;return(0,o.useEffect)(()=>{n((0,d.um)(!0))},[n]),(0,o.useEffect)(()=>(t.current=!0,0===c.length&&(null==f?void 0:f.items)&&n((0,a.fP)(f.items)),h.current(u),()=>{t.current=!1}),[c.length,null==f?void 0:f.items,n,u]),(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(L,{}),t.current&&(0,i.jsx)(v,{}),(g||j)&&(0,i.jsx)(s.M5Y,{children:(0,i.jsx)(s.$jN,{})}),t.current&&y&&(b?(0,i.jsx)(P,{items:null==m?void 0:m.items,total:null==m?void 0:m.total}):(0,i.jsx)(F,{hasFilters:C}))]})},H=n(1226),V=()=>(0,i.jsx)(H.Z,{children:(0,i.jsx)(B,{})})},40542:function(e){e.exports={"grid-row":"ConnectionGrid_grid-row__Cv_Zf","grid-item":"ConnectionGrid_grid-item__xP7eK"}}},function(e){e.O(0,[2888,9774,179],function(){return e(e.s=98720)}),_N_E=e.O()}]);
|
@@ -1 +0,0 @@
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5405],{49536:function(e,r,s){(window.__NEXT_P=window.__NEXT_P||[]).push(["/",function(){return s(39461)}])},69e3:function(e,r,s){"use strict";var n=s(24246),t=s(4454),i=s(91507),o=s.n(i);r.Z=e=>{let{color:r,description:s,title:i,icon:a}=e;return(0,n.jsx)(t.xuv,{borderLeft:"9px solid ".concat(r),borderRadius:"6px",className:o().container,children:(0,n.jsxs)(t.V4A,{className:o().card,"data-testid":"tile-".concat(i),children:[(0,n.jsxs)("div",{className:"mb-1 flex items-center gap-1.5",children:[a,(0,n.jsx)(t.AntTypography.Title,{level:3,children:i})]}),(0,n.jsx)(t.AntTypography.Text,{children:s})]})})}},77213:function(e,r,s){"use strict";s.d(r,{Z:function(){return p}});var n=s(24246),t=s(4454),i=s(88038),o=s.n(i),a=s(86677);s(27378);var c=s(25980),d=s(90867),l=s(77830),u=()=>{let e=(0,a.useRouter)();return(0,n.jsx)(t.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)(t.xuv,{children:[(0,n.jsxs)(t.Kqy,{direction:{base:"column",sm:"row"},justifyContent:"space-between",children:[(0,n.jsx)(t.xvT,{fontWeight:"semibold",children:"Configure your storage and messaging provider"}),(0,n.jsx)(t.wpx,{onClick:()=>{e.push(l.fz)},children:"Configure"})]}),(0,n.jsxs)(t.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:r,title:s,padded:i=!0,mainProps:l}=e,p=(0,c.hz)(),m=(0,a.useRouter)(),h="/privacy-requests"===m.pathname||"/datastore-connection"===m.pathname,f=!(p.flags.privacyRequestsConfiguration&&h),{data:x}=(0,d.JE)(void 0,{skip:f}),{data:g}=(0,d.PW)(void 0,{skip:f}),y=p.flags.privacyRequestsConfiguration&&(!x||!g)&&h;return(0,n.jsxs)(t.kCb,{"data-testid":s,direction:"column",h:"100vh",children:[(0,n.jsxs)(o(),{children:[(0,n.jsxs)("title",{children:["Fides Admin UI - ",s]}),(0,n.jsx)("meta",{name:"description",content:"Privacy Engineering Platform"}),(0,n.jsx)("link",{rel:"icon",href:"/favicon.ico"})]}),(0,n.jsxs)(t.kCb,{as:"main",direction:"column",py:i?6:0,px:i?10:0,h:i?"calc(100% - 48px)":"full",flex:1,minWidth:0,overflow:"auto",...l,children:[y?(0,n.jsx)(u,{}):null,r]})]})}},39461:function(e,r,s){"use strict";s.r(r),s.d(r,{default:function(){return T}});var n,t,i=s(24246),o=s(4454),a=s(27378),c=s(77213),d=s(3124),l=s.n(d),u=s(25980),p=()=>{let{systemsCount:e}=(0,u.hz)(),r=e>0;return(0,i.jsx)(o.kCb,{background:l().FIDESUI_CORINTH,children:(0,i.jsxs)(o.kCb,{flexDir:"column",maxWidth:"600px",padding:"10",paddingBottom:"16",children:[r&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(o.xvT,{fontSize:"3xl",fontWeight:"semibold",children:"Welcome back!"}),(0,i.jsx)(o.xvT,{marginTop:"1",fontSize:"lg",fontWeight:"semibold",children:"".concat(e," system").concat(e>1?"s":""," currently under management")}),(0,i.jsx)(o.xvT,{marginTop:"1",fontSize:"sm",children:"Fides is currently managing privacy for ".concat(e," system").concat(e>1?"s":"",". From here you can continue adding and managing systems, process privacy requests or generate reports for your privacy compliance requirements.")})]}),!r&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(o.xvT,{fontSize:"3xl",fontWeight:"semibold",children:"Welcome to Fides!"}),(0,i.jsx)(o.xvT,{marginTop:"1",fontSize:"lg",fontWeight:"semibold",children:"Start your privacy engineering journey today"}),(0,i.jsx)(o.xvT,{marginTop:"1",fontSize:"sm",children:"Step one in setting up your privacy engineering platform is adding the systems you need to manage. Use the links below to add and configure systems within Fides for data mapping and privacy request automation."})]})]})})},m=s(79894),h=s.n(m),f=s(16134),x=s(69e3),g=s(31793),y=s(77830),E=s(61317);(n=t||(t={}))[n.ADD_SYSTEMS=1]="ADD_SYSTEMS",n[n.VIEW_SYSTEMS=2]="VIEW_SYSTEMS",n[n.REVIEW_PRIVACY_REQUESTS=3]="REVIEW_PRIVACY_REQUESTS",n[n.VIEW_MAP=4]="VIEW_MAP",n[n.CONFIGURE_CONSENT=5]="CONFIGURE_CONSENT";let S=[{color:l().FIDESUI_SANDSTONE,description:"Explore the systems and data flow across your organization and create custom reports.",href:"".concat(y.oG),key:4,name:"View data map",sortOrder:0,title:"VM",requiresPlus:!0,requiresSystems:!0,scopes:[E.Sh.DATAMAP_READ]},{color:l().FIDESUI_OLIVE,description:"Add third party applications and databases to your data map.",href:"".concat(y.xo),key:1,name:"Add systems",sortOrder:1,title:"AS",scopes:[E.Sh.SYSTEM_CREATE]},{color:l().FIDESUI_TERRACOTTA,description:"Review system information for all systems in your organization.",href:"".concat(y.So),key:2,name:"View systems",sortOrder:2,title:"VS",scopes:[E.Sh.SYSTEM_READ],requiresSystems:!0},{color:l().FIDESUI_MINOS,description:"Review, approve and process privacy requests across your systems on behalf of your users.",href:"".concat(y.Jw),key:3,name:"Review privacy requests",sortOrder:4,title:"RP",scopes:[E.Sh.PRIVACY_REQUEST_REVIEW],requiresConnections:!0},{color:l().FIDESUI_NECTAR,description:"Manage privacy notices and experiences for all domains in your organization.",href:"".concat(y.zo),key:5,name:"Manage consent",sortOrder:5,title:"MC",scopes:[E.Sh.PRIVACY_NOTICE_READ],requiresPlus:!0}],v=e=>{let{config:r,userScopes:s,hasPlus:n=!1,flags:t}=e,i=r;i=n?i.filter(e=>!e.requiresOss):i.filter(e=>!e.requiresPlus);let o=[];i.forEach(e=>{0===e.scopes.length?o.push(e):e.scopes.filter(e=>s.includes(e)).length>0&&o.push(e)});let a=[];return o.forEach(e=>{e.requiresFlag?t[e.requiresFlag]&&a.push(e):a.push(e)}),a};var _=()=>{let{plus:e,flags:r}=(0,u.hz)(),s=(0,f.C)(g.uu),n=(0,a.useMemo)(()=>v({config:S,hasPlus:e,userScopes:s,flags:r}),[e,s,r]);return(0,i.jsx)(o.kCb,{paddingX:10,"data-testid":"home-content",children:(0,i.jsx)(o.MIq,{columns:{md:2,xl:3},spacing:"24px",children:n.sort((e,r)=>e.sortOrder>r.sortOrder?1:-1).map(e=>(0,i.jsx)(h(),{href:e.href,className:"flex",children:(0,i.jsx)(x.Z,{title:e.name,description:e.description,color:e.color})},e.key))})})},j=()=>(0,i.jsx)(c.Z,{title:"Home",padded:!1,children:(0,i.jsxs)(o.kCb,{direction:"column",gap:10,pb:6,children:[(0,i.jsx)(p,{}),(0,i.jsx)(_,{})]})}),T=()=>(0,i.jsx)(j,{})},91507:function(e){e.exports={container:"CalloutNavCard_container__DXPJb",card:"CalloutNavCard_card__q_XX6"}}},function(e){e.O(0,[2888,9774,179],function(){return e(e.s=49536)}),_N_E=e.O()}]);
|
@@ -1 +0,0 @@
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1500],{50697:function(e,n,a){(window.__NEXT_P=window.__NEXT_P||[]).push(["/integrations/[id]",function(){return a(86760)}])},67991:function(e,n,a){"use strict";a.d(n,{Od:function(){return o},QZ:function(){return t}});var i=a(27378);let t=e=>{let{items:n,selected:a,onChange:i}=e,t=n.every(e=>a.includes(e.id))&&!!n.length;return{allSelected:t,someSelected:n.some(e=>a.includes(e.id))&&!!n.length,handleToggleAll:()=>{t?i([]):i(n.map(e=>e.id))},handleToggleSelection:e=>{a.includes(e)?i(a.filter(n=>n!==e)):i([...a,e])}}},o=e=>{let{initialSelected:n,initialExcluded:a,initialAllSelected:t,itemCount:o}=e,[l,r]=(0,i.useState)(n),[s,d]=(0,i.useState)(a),[c,u]=(0,i.useState)(t||l.length===o),_=!!l.length||!!s.length;return{selected:l,excluded:s,allSelected:c,someSelected:_,handleToggleAll:()=>{c?(d([]),s.length||u(!1)):(r([]),u(!0))},handleToggleItemSelected:e=>{if(c)d(s.includes(e)?s.filter(n=>n!==e):[...s,e]);else{let n=l.includes(e)?l.filter(n=>n!==e):[...l,e];r(n),n.length===o&&u(!0)}}}}},90111:function(e,n,a){"use strict";var i=a(24246),t=a(4454);n.Z=e=>{let{children:n,...a}=e;return(0,i.jsx)(t.xuv,{p:4,mb:4,border:"1px solid",borderColor:"gray.200",bgColor:"gray.50",borderRadius:"md",...a,children:n})}},8411:function(e,n,a){"use strict";a.d(n,{NA:function(){return o},Z8:function(){return t}});var i=a(61317);let t={[i._F.ER]:"Eritrea",[i._F.DJ]:"Djibouti",[i._F.MR]:"Mauritania",[i._F.NA]:"Namibia",[i._F.GH]:"Ghana",[i._F.SS]:"South Sudan",[i._F.SC]:"Seychelles",[i._F.IO]:"British Indian Ocean Territory",[i._F.GQ]:"Equatorial Guinea",[i._F.AO]:"Angola",[i._F.CG]:"Republic of the Congo",[i._F.BW]:"Botswana",[i._F.BI]:"Burundi",[i._F.DZ]:"Algeria",[i._F.TD]:"Chad",[i._F.NG]:"Nigeria",[i._F.TZ]:"Tanzania",[i._F.EH]:"Western Sahara",[i._F.SN]:"Senegal",[i._F.LR]:"Liberia",[i._F.ZA]:"South Africa",[i._F.CV]:"Cape Verde",[i._F.GM]:"Gambia",[i._F.SD]:"Sudan",[i._F.KM]:"Comoros",[i._F.SZ]:"Eswatini",[i._F.UG]:"Uganda",[i._F.MG]:"Madagascar",[i._F.RW]:"Rwanda",[i._F.CD]:"DR Congo",[i._F.CM]:"Cameroon",[i._F.SH]:"Saint Helena, Ascension and Tristan da Cunha",[i._F.TG]:"Togo",[i._F.MU]:"Mauritius",[i._F.NE]:"Niger",[i._F.BJ]:"Benin",[i._F.EG]:"Egypt",[i._F.LS]:"Lesotho",[i._F.ET]:"Ethiopia",[i._F.MA]:"Morocco",[i._F.YT]:"Mayotte",[i._F.BF]:"Burkina Faso",[i._F.RE]:"R\xe9union",[i._F.ST]:"S\xe3o Tom\xe9 and Pr\xedncipe",[i._F.CF]:"Central African Republic",[i._F.MZ]:"Mozambique",[i._F.MW]:"Malawi",[i._F.ML]:"Mali",[i._F.ZM]:"Zambia",[i._F.LY]:"Libya",[i._F.GW]:"Guinea-Bissau",[i._F.SO]:"Somalia",[i._F.KE]:"Kenya",[i._F.GN]:"Guinea",[i._F.ZW]:"Zimbabwe",[i._F.TN]:"Tunisia",[i._F.SL]:"Sierra Leone",[i._F.GA]:"Gabon",[i._F.CI]:"Ivory Coast",[i._F.JO]:"Jordan",[i._F.PK]:"Pakistan",[i._F.KP]:"North Korea",[i._F.MO]:"Macau",[i._F.AM]:"Armenia",[i._F.SY]:"Syria",[i._F.TJ]:"Tajikistan",[i._F.SA]:"Saudi Arabia",[i._F.KR]:"South Korea",[i._F.NP]:"Nepal",[i._F.PH]:"Philippines",[i._F.IQ]:"Iraq",[i._F.LB]:"Lebanon",[i._F.MN]:"Mongolia",[i._F.PS]:"Palestine",[i._F.YE]:"Yemen",[i._F.JP]:"Japan",[i._F.KZ]:"Kazakhstan",[i._F.LK]:"Sri Lanka",[i._F.MM]:"Myanmar",[i._F.KG]:"Kyrgyzstan",[i._F.CN]:"China",[i._F.AF]:"Afghanistan",[i._F.OM]:"Oman",[i._F.IN]:"India",[i._F.LA]:"Laos",[i._F.UZ]:"Uzbekistan",[i._F.MV]:"Maldives",[i._F.ID]:"Indonesia",[i._F.VN]:"Vietnam",[i._F.MY]:"Malaysia",[i._F.TW]:"Taiwan",[i._F.KH]:"Cambodia",[i._F.AE]:"United Arab Emirates",[i._F.HK]:"Hong Kong",[i._F.GE]:"Georgia (Country)",[i._F.BD]:"Bangladesh",[i._F.KW]:"Kuwait",[i._F.TM]:"Turkmenistan",[i._F.QA]:"Qatar",[i._F.BH]:"Bahrain",[i._F.BN]:"Brunei",[i._F.TH]:"Thailand",[i._F.BT]:"Bhutan",[i._F.SG]:"Singapore",[i._F.IL]:"Israel",[i._F.AZ]:"Azerbaijan",[i._F.TL]:"Timor-Leste",[i._F.IR]:"Iran",[i._F.TR]:"Turkey",[i._F.MK]:"North Macedonia",[i._F.IE]:"Ireland",[i._F.DK]:"Denmark",[i._F.SK]:"Slovakia",[i._F.MD]:"Moldova",[i._F.AX]:"\xc5land Islands",[i._F.PL]:"Poland",[i._F.BA]:"Bosnia and Herzegovina",[i._F.SM]:"San Marino",[i._F.CZ]:"Czechia",[i._F.EE]:"Estonia",[i._F.XK]:"Kosovo",[i._F.FO]:"Faroe Islands",[i._F.SJ]:"Svalbard and Jan Mayen",[i._F.GG]:"Guernsey",[i._F.FR]:"France",[i._F.NL]:"Netherlands",[i._F.FI]:"Finland",[i._F.PT]:"Portugal",[i._F.DE]:"Germany",[i._F.MT]:"Malta",[i._F.JE]:"Jersey",[i._F.IS]:"Iceland",[i._F.ES]:"Spain",[i._F.GI]:"Gibraltar",[i._F.NO]:"Norway",[i._F.CY]:"Cyprus",[i._F.RS]:"Serbia",[i._F.LT]:"Lithuania",[i._F.MC]:"Monaco",[i._F.LU]:"Luxembourg",[i._F.UA]:"Ukraine",[i._F.IM]:"Isle of Man",[i._F.RO]:"Romania",[i._F.BE]:"Belgium",[i._F.SE]:"Sweden",[i._F.ME]:"Montenegro",[i._F.LV]:"Latvia",[i._F.VA]:"Vatican City",[i._F.AT]:"Austria",[i._F.AL]:"Albania",[i._F.LI]:"Liechtenstein",[i._F.GR]:"Greece",[i._F.IT]:"Italy",[i._F.AD]:"Andorra",[i._F.GB]:"United Kingdom",[i._F.RU]:"Russia",[i._F.SI]:"Slovenia",[i._F.BY]:"Belarus",[i._F.CH]:"Switzerland",[i._F.HU]:"Hungary",[i._F.BG]:"Bulgaria",[i._F.HR]:"Croatia",[i._F.TC]:"Turks and Caicos Islands",[i._F.CW]:"Cura\xe7ao",[i._F.GP]:"Guadeloupe",[i._F.UM]:"United States Minor Outlying Islands",[i._F.GT]:"Guatemala",[i._F.PM]:"Saint Pierre and Miquelon",[i._F.BQ]:"Caribbean Netherlands",[i._F.GL]:"Greenland",[i._F.SX]:"Sint Maarten",[i._F.PA]:"Panama",[i._F.AW]:"Aruba",[i._F.MQ]:"Martinique",[i._F.AG]:"Antigua and Barbuda",[i._F.BM]:"Bermuda",[i._F.CU]:"Cuba",[i._F.GD]:"Grenada",[i._F.NI]:"Nicaragua",[i._F.LC]:"Saint Lucia",[i._F.KN]:"Saint Kitts and Nevis",[i._F.DO]:"Dominican Republic",[i._F.VC]:"Saint Vincent and the Grenadines",[i._F.BZ]:"Belize",[i._F.HT]:"Haiti",[i._F.JM]:"Jamaica",[i._F.BS]:"Bahamas",[i._F.MX]:"Mexico",[i._F.MF]:"Saint Martin",[i._F.SV]:"El Salvador",[i._F.BL]:"Saint Barth\xe9lemy",[i._F.AI]:"Anguilla",[i._F.MS]:"Montserrat",[i._F.VG]:"British Virgin Islands",[i._F.BB]:"Barbados",[i._F.HN]:"Honduras",[i._F.KY]:"Cayman Islands",[i._F.DM]:"Dominica",[i._F.TT]:"Trinidad and Tobago",[i._F.CR]:"Costa Rica",[i._F.SR]:"Suriname",[i._F.CX]:"Christmas Island",[i._F.WS]:"Samoa",[i._F.PF]:"French Polynesia",[i._F.AS]:"American Samoa",[i._F.NC]:"New Caledonia",[i._F.TK]:"Tokelau",[i._F.PW]:"Palau",[i._F.KI]:"Kiribati",[i._F.VU]:"Vanuatu",[i._F.PN]:"Pitcairn Islands",[i._F.CK]:"Cook Islands",[i._F.FJ]:"Fiji",[i._F.PG]:"Papua New Guinea",[i._F.MP]:"Northern Mariana Islands",[i._F.NU]:"Niue",[i._F.TV]:"Tuvalu",[i._F.NF]:"Norfolk Island",[i._F.TO]:"Tonga",[i._F.FM]:"Micronesia",[i._F.SB]:"Solomon Islands",[i._F.NR]:"Nauru",[i._F.WF]:"Wallis and Futuna",[i._F.GU]:"Guam",[i._F.AU]:"Australia",[i._F.NZ]:"New Zealand",[i._F.MH]:"Marshall Islands",[i._F.CC]:"Cocos (Keeling) Islands",[i._F.VE]:"Venezuela",[i._F.PY]:"Paraguay",[i._F.BR]:"Brazil",[i._F.CO]:"Colombia",[i._F.PE]:"Peru",[i._F.CL]:"Chile",[i._F.UY]:"Uruguay",[i._F.AR]:"Argentina",[i._F.GY]:"Guyana",[i._F.BO]:"Bolivia",[i._F.GF]:"French Guiana",[i._F.EC]:"Ecuador",[i._F.FK]:"Falkland Islands",[i._F.US_AL]:"Alabama",[i._F.US_AK]:"Alaska",[i._F.US_AZ]:"Arizona",[i._F.US_AR]:"Arkansas",[i._F.US_CA]:"California",[i._F.US_CO]:"Colorado",[i._F.US_CT]:"Connecticut",[i._F.US_DE]:"Delaware",[i._F.US_DC]:"District of Columbia (DC)",[i._F.US_FL]:"Florida",[i._F.US_GA]:"Georgia",[i._F.US_HI]:"Hawaii",[i._F.US_ID]:"Idaho",[i._F.US_IL]:"Illinois",[i._F.US_IN]:"Indiana",[i._F.US_IA]:"Iowa",[i._F.US_KS]:"Kansas",[i._F.US_KY]:"Kentucky",[i._F.US_LA]:"Louisiana",[i._F.US_ME]:"Maine",[i._F.US_MD]:"Maryland",[i._F.US_MA]:"Massachusetts",[i._F.US_MI]:"Michigan",[i._F.US_MN]:"Minnesota",[i._F.US_MS]:"Mississippi",[i._F.US_MO]:"Missouri",[i._F.US_MT]:"Montana",[i._F.US_NE]:"Nebraska",[i._F.US_NV]:"Nevada",[i._F.US_NH]:"New Hampshire",[i._F.US_NJ]:"New Jersey",[i._F.US_NM]:"New Mexico",[i._F.US_NY]:"New York",[i._F.US_NC]:"North Carolina",[i._F.US_ND]:"North Dakota",[i._F.US_OH]:"Ohio",[i._F.US_OK]:"Oklahoma",[i._F.US_OR]:"Oregon",[i._F.US_PA]:"Pennsylvania",[i._F.US_PR]:"Puerto Rico",[i._F.US_RI]:"Rhode Island",[i._F.US_SC]:"South Carolina",[i._F.US_SD]:"South Dakota",[i._F.US_TN]:"Tennessee",[i._F.US_TX]:"Texas",[i._F.US_UT]:"Utah",[i._F.US_VA]:"Virginia",[i._F.US_VI]:"United States Virgin Islands",[i._F.US_VT]:"Vermont",[i._F.US_WA]:"Washington",[i._F.US_WV]:"West Virginia",[i._F.US_WI]:"Wisconsin",[i._F.US_WY]:"Wyoming",[i._F.CA_AB]:"Alberta",[i._F.CA_BC]:"British Columbia",[i._F.CA_MB]:"Manitoba",[i._F.CA_NB]:"New Brunswick",[i._F.CA_NL]:"Newfoundland and Labrador",[i._F.CA_NS]:"Nova Scotia",[i._F.CA_ON]:"Ontario",[i._F.CA_PE]:"Prince Edward Island",[i._F.CA_QC]:"Quebec",[i._F.CA_SK]:"Saskatchewan",[i._F.CA_NT]:"Northwest Territories",[i._F.CA_NU]:"Nunavut",[i._F.CA_YT]:"Yukon",[i._F.CA]:"Canada",[i._F.US]:"United States",[i._F.MEXICO_CENTRAL_AMERICA]:"Mexico and Central America",[i._F.CARIBBEAN]:"Caribbean",[i._F.EEA]:"European Economic Area (EEA)",[i._F.NON_EEA]:"Non European Economic Area",[i._F.GLOBAL]:"Global"},o=new Map(Object.entries(t));Object.entries(t).map(e=>({value:e[0],label:e[1]}))},79494:function(e,n,a){"use strict";var i=a(24246),t=a(4454);n.Z=e=>{let{title:n,icon:a,type:o,...l}=e;return(0,i.jsx)(t.wpx,{size:"small",type:o,"data-testid":"action-".concat(n),icon:a,iconPosition:"start",...l,children:n})}},60325:function(e,n,a){"use strict";a.d(n,{DD:function(){return r},Go:function(){return s},TK:function(){return t},Uv:function(){return c},k1:function(){return o},y3:function(){return u}});var i=a(61317);let t=e=>{var n;return null!==(n=null==e?void 0:e.filter(e=>e.selected).map(e=>e.id))&&void 0!==n?n:[]},o=e=>{var n;return null!==(n=null==e?void 0:e.filter(e=>e.selected))&&void 0!==n?n:[]},l=[{language:i.eU.EN,is_default:!0,title:"Title",description:"Description",accept_button_label:"Accept",reject_button_label:"Reject",save_button_label:"Save",acknowledge_button_label:"OK",privacy_preferences_link_label:"Privacy Preferences"}],r={name:"",disabled:!1,dismissable:!0,allow_language_selection:!1,show_layer1_notices:!1,layer1_button_options:i.Of.OPT_IN_OPT_OUT,regions:[],translations:l,auto_detect_language:!0,auto_subdomain_cookie_deletion:!0},s=(e,n)=>{let a=n.find(n=>n.id===e.language);return a?a.name:e.language},d=e=>{var n,a,i,t,o,l,r,s,d;let{language:c,is_default:u,accept_button_label:_,reject_button_label:m}=e;return{language:c,is_default:u,accept_button_label:_,reject_button_label:m,title:e.title,description:e.description,acknowledge_button_label:null!==(n=e.acknowledge_button_label)&&void 0!==n?n:void 0,banner_title:null!==(a=e.banner_title)&&void 0!==a?a:void 0,banner_description:null!==(i=e.banner_description)&&void 0!==i?i:void 0,purpose_header:null!==(t=e.purpose_header)&&void 0!==t?t:void 0,privacy_policy_link_label:null!==(o=e.privacy_policy_link_label)&&void 0!==o?o:void 0,privacy_policy_url:null!==(l=e.privacy_policy_url)&&void 0!==l?l:void 0,privacy_preferences_link_label:null!==(r=e.privacy_preferences_link_label)&&void 0!==r?r:void 0,save_button_label:null!==(s=e.save_button_label)&&void 0!==s?s:void 0,modal_link_label:null!==(d=e.modal_link_label)&&void 0!==d?d:void 0}},c=e=>{let{created_at:n,updated_at:a,privacy_notices:i,origin:t,id:o,...l}=e;return{...l,privacy_notice_ids:i?i.map(e=>e.id):[],translations:e.translations?e.translations.map(e=>d(e)):[]}},u=e=>e===i.re.PRIVACY_CENTER?{title:{included:!0,required:!0},description:{included:!0,required:!0},save_button_label:{included:!0,required:!0},accept_button_label:{included:!0,required:!0},reject_button_label:{included:!0,required:!0},privacy_policy_link_label:{included:!0},privacy_policy_url:{included:!0},modal_link_label:{included:!0}}:e===i.re.MODAL?{title:{included:!0,required:!0},description:{included:!0,required:!0},accept_button_label:{included:!0,required:!0},reject_button_label:{included:!0,required:!0},save_button_label:{included:!0,required:!0},acknowledge_button_label:{included:!0,required:!0},privacy_policy_link_label:{included:!0},privacy_policy_url:{included:!0},privacy_preferences_link_label:{included:!0},modal_link_label:{included:!0}}:e===i.re.BANNER_AND_MODAL?{title:{included:!0,required:!0},banner_title:{included:!0},description:{included:!0,required:!0},banner_description:{included:!0},accept_button_label:{included:!0,required:!0},reject_button_label:{included:!0,required:!0},save_button_label:{included:!0,required:!0},acknowledge_button_label:{included:!0,required:!0},privacy_policy_link_label:{included:!0},privacy_policy_url:{included:!0},privacy_preferences_link_label:{included:!0,required:!0},modal_link_label:{included:!0}}:e===i.re.TCF_OVERLAY?{title:{included:!0,required:!0},banner_title:{included:!0},description:{included:!0,required:!0},banner_description:{included:!0},purpose_header:{included:!0},accept_button_label:{included:!0,required:!0},reject_button_label:{included:!0,required:!0},save_button_label:{included:!0,required:!0},acknowledge_button_label:{included:!0,required:!0},privacy_policy_link_label:{included:!0},privacy_policy_url:{included:!0},privacy_preferences_link_label:{included:!0,required:!0},modal_link_label:{included:!0}}:{title:{included:!0,required:!0},description:{included:!0,required:!0},accept_button_label:{included:!0,required:!0},reject_button_label:{included:!0,required:!0},save_button_label:{included:!0,required:!0},acknowledge_button_label:{included:!0,required:!0},privacy_policy_link_label:{included:!0},privacy_policy_url:{included:!0},privacy_preferences_link_label:{included:!0,required:!0},modal_link_label:{included:!0}}},86760:function(e,n,a){"use strict";a.r(n),a.d(n,{default:function(){return eE}});var i=a(24246),t=a(4454),o=a(86677),l=a(7617),r=a(77213),s=a(77830),d=a(58754),c=a(94725),u=a(45216),_=a(66250),m=a(92222),F=a(59003),g=a(27378),h=a(18225);let p=(0,t.IUT)({displayName:"MonitorIcon",viewBox:"0 0 12 12",path:(0,i.jsx)("path",{d:"M1.33333 2.21875C1.15 2.21875 1 2.37344 1 2.5625V5.65625H3.66667C3.84167 5.65625 4.00417 5.75078 4.09583 5.90762L4.62708 6.8207L5.88542 4.22324C5.96667 4.05566 6.13125 3.94609 6.3125 3.93965C6.49375 3.9332 6.66667 4.02773 6.76042 4.18887L7.61458 5.65625H8.83333C9.11042 5.65625 9.33333 5.88613 9.33333 6.17188C9.33333 6.45762 9.11042 6.6875 8.83333 6.6875H7.33333C7.15833 6.6875 6.99583 6.59297 6.90417 6.43613L6.37292 5.52305L5.11458 8.12051C5.03333 8.28809 4.86875 8.39766 4.6875 8.4041C4.50625 8.41055 4.33333 8.31602 4.23958 8.15488L3.38542 6.6875H1V9.4375C1 9.62656 1.15 9.78125 1.33333 9.78125H10.6667C10.85 9.78125 11 9.62656 11 9.4375V2.5625C11 2.37344 10.85 2.21875 10.6667 2.21875H1.33333ZM0 2.5625C0 1.8041 0.597917 1.1875 1.33333 1.1875H10.6667C11.4021 1.1875 12 1.8041 12 2.5625V9.4375C12 10.1959 11.4021 10.8125 10.6667 10.8125H1.33333C0.597917 10.8125 0 10.1959 0 9.4375V2.5625Z",fill:"currentColor"})});var b=a(8411),x=a(14481),y=a(70675),v=a(812),f=a(14047),S=a(8133),C=a(46628),j=a(67991),N=a(46238);let T=(0,m.Cl)();var A=e=>{let{items:n,totalItemCount:a,selected:o,excluded:l,allSelected:r,someSelected:s,moreLoading:d,handleToggleSelection:c,handleToggleAll:u,onMoreClick:_}=e,p=n.map(e=>({id:e,isSelected:o.includes(e),isExcluded:l.includes(e)})),b=(0,g.useMemo)(()=>[T.display({id:"select",cell:e=>{let{row:n}=e;return(0,i.jsx)(x.k,{isChecked:n.original.isSelected||r&&!n.original.isExcluded,onChange:()=>c(n.original.id),dataTestId:"".concat(n.original.id,"-checkbox")})},header:()=>(0,i.jsx)(x.k,{isChecked:r,isIndeterminate:s,onChange:u,dataTestId:"select-all-checkbox"}),size:1}),T.accessor(e=>e.id,{id:"id",cell:e=>(0,i.jsx)(x.G3,{value:e.getValue()}),header:e=>(0,i.jsx)(x.Rr,{value:"Scope",...e})})],[c,u,r,s]),y=(0,F.b7)({getCoreRowModel:(0,m.sC)(),getRowId:e=>e.id,manualPagination:!0,data:p,columns:b,columnResizeMode:"onChange"});return(0,i.jsx)(t.kCb,{w:"full",direction:"column",maxH:"lg",children:(0,i.jsx)(x.ZK,{tableInstance:y,onRowClick:e=>c(e.id),footer:!!_&&(0,i.jsx)(x.vr,{totalColumns:2,children:(0,i.jsx)(t.kCb,{justify:"center",children:d?(0,i.jsx)(h.Z,{size:"xs"}):(0,i.jsxs)(t.kCb,{align:"center",children:[(0,i.jsxs)(t.xvT,{fontSize:"xs",mr:4,children:["Showing ",n.length," of ",a]}),(0,i.jsx)(t.wpx,{onClick:_,size:"small","data-testid":"load-more-btn",children:"Load more..."})]})})})})})};let w={items:[],total:1,page:1,size:50,pages:0};var M=(e,n)=>{let[a,i]=(0,g.useState)(2),{data:t,isLoading:o}=(0,y.oN)({page:1,size:25,connection_config_key:e}),l=(0,g.useRef)(o),{items:r,total:s}=null!=t?t:w,d=!!(null==t?void 0:t.pages)&&a>t.pages,[c,u]=(0,g.useState)(r);(0,g.useEffect)(()=>{l.current=o,u(r)},[o,r]),(0,g.useEffect)(()=>{let e=setTimeout(()=>{l.current&&n&&n()},5e3);return()=>clearTimeout(e)},[]);let[_,{isLoading:m,isFetching:F}]=(0,y.j3)(),h=m||F||o,p=async()=>{var n,t;if(d)return;let o=await _({connection_config_key:e,size:25,page:a+1});o.isError||(i(a+1),u([...c,...null!==(t=null===(n=o.data)||void 0===n?void 0:n.items)&&void 0!==t?t:[]]))};return{databases:c,totalDatabases:s,fetchMore:p,initialIsLoading:o,isLoading:h,reachedEnd:d}},k=e=>{var n;let{monitor:a,isEditing:o,isSubmitting:l,integrationKey:r,onSubmit:s,onClose:d}=e,c=(0,t.pmc)(),{databases:u,totalDatabases:_,fetchMore:m,reachedEnd:F,isLoading:g,initialIsLoading:p}=M(r,()=>{s({...a,databases:[]}),c({...C.MA,status:"info",description:"Loading resources is taking longer than expected. The monitor has been saved and is tracking all available resources. You can return later to limit its scope if needed"}),d()}),b=null!==(n=null==a?void 0:a.databases)&&void 0!==n?n:[],{selected:x,excluded:y,allSelected:v,someSelected:f,handleToggleItemSelected:S,handleToggleAll:T}=(0,j.Od)({initialSelected:b,initialExcluded:[],initialAllSelected:o&&!b.length,itemCount:_}),w=!v&&0===x.length;return p?(0,i.jsx)(h.Z,{my:12}):(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)(t.kCb,{p:4,direction:"column",children:[(0,i.jsxs)(t.kCb,{direction:"row",mb:4,gap:1,align:"center",children:[(0,i.jsx)(t.xvT,{fontSize:"sm",children:"Select projects to monitor"}),(0,i.jsx)(N.b,{label:"Selecting a project will monitor all current and future datasets within that project."})]}),(0,i.jsx)(A,{items:u,totalItemCount:_,selected:x,excluded:y,allSelected:v,someSelected:f,moreLoading:g,handleToggleSelection:S,handleToggleAll:T,onMoreClick:F?void 0:m})]}),(0,i.jsxs)("div",{className:"mt-4 flex w-full justify-between",children:[(0,i.jsx)(t.wpx,{onClick:d,children:"Cancel"}),(0,i.jsx)(t.esZ,{title:w?"Select one or more projects to save":void 0,children:(0,i.jsx)(t.wpx,{onClick:()=>{s({...a,excluded_databases:y,databases:v?[]:x})},loading:l,type:"primary","data-testid":"save-btn",disabled:w,children:"Save"})})]})]})},E=a(64892),U=a(6680),D=a(54743);function R(e,n){let a,i;let t=()=>(0,U.L)(n?.in,NaN),o=n?.additionalDigits??2,l=function(e){let n;let a={},i=e.split(I.dateTimeDelimiter);if(i.length>2)return a;if(/:/.test(i[0])?n=i[0]:(a.date=i[0],n=i[1],I.timeZoneDelimiter.test(a.date)&&(a.date=e.split(I.timeZoneDelimiter)[0],n=e.substr(a.date.length,e.length))),n){let e=I.timezone.exec(n);e?(a.time=n.replace(e[1],""),a.timezone=e[1]):a.time=n}return a}(e);if(l.date){let e=function(e,n){let a=RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+n)+"})|(\\d{2}|[+-]\\d{"+(2+n)+"})$)"),i=e.match(a);if(!i)return{year:NaN,restDateString:""};let t=i[1]?parseInt(i[1]):null,o=i[2]?parseInt(i[2]):null;return{year:null===o?t:100*o,restDateString:e.slice((i[1]||i[2]).length)}}(l.date,o);a=function(e,n){if(null===n)return new Date(NaN);let a=e.match(L);if(!a)return new Date(NaN);let i=!!a[4],t=B(a[1]),o=B(a[2])-1,l=B(a[3]),r=B(a[4]),s=B(a[5])-1;if(i)return r>=1&&r<=53&&s>=0&&s<=6?function(e,n,a){let i=new Date(0);i.setUTCFullYear(e,0,4);let t=i.getUTCDay()||7;return i.setUTCDate(i.getUTCDate()+((n-1)*7+a+1-t)),i}(n,r,s):new Date(NaN);{let e=new Date(0);return o>=0&&o<=11&&l>=1&&l<=(Z[o]||(G(n)?29:28))&&t>=1&&t<=(G(n)?366:365)?(e.setUTCFullYear(n,o,Math.max(t,l)),e):new Date(NaN)}}(e.restDateString,e.year)}if(!a||isNaN(+a))return t();let r=+a,s=0;if(l.time&&isNaN(s=function(e){let n=e.match(q);if(!n)return NaN;let a=P(n[1]),i=P(n[2]),t=P(n[3]);return(24===a?0===i&&0===t:t>=0&&t<60&&i>=0&&i<60&&a>=0&&a<25)?a*E.vh+i*E.yJ+1e3*t:NaN}(l.time)))return t();if(l.timezone){if(isNaN(i=function(e){if("Z"===e)return 0;let n=e.match(O);if(!n)return 0;let a="+"===n[1]?-1:1,i=parseInt(n[2]),t=n[3]&&parseInt(n[3])||0;return t>=0&&t<=59?a*(i*E.vh+t*E.yJ):NaN}(l.timezone)))return t()}else{let e=new Date(r+s),a=(0,D.Q)(0,n?.in);return a.setFullYear(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()),a.setHours(e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds(),e.getUTCMilliseconds()),a}return(0,D.Q)(r+s+i,n?.in)}let I={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},L=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,q=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,O=/^([+-])(\d{2})(?::?(\d{2}))?$/;function B(e){return e?parseInt(e):1}function P(e){return e&&parseFloat(e.replace(",","."))||0}let Z=[31,null,31,30,31,30,31,31,30,31,30,31];function G(e){return e%400==0||e%4==0&&e%100!=0}var V=a(96063),H=a(34090),z=a(55484),K=a(97181),W=a(40324),Y=a(11013);let J=e=>{let{layout:n="stacked",...a}=e,{data:t}=(0,Y.eV)({page:1,size:100}),o=null==t?void 0:t.items.map(e=>({label:e.name,value:e.id}));return(0,i.jsx)(K.d,{tooltip:"If a shared monitor config is selected, the monitor will use the shared config to classify resources",options:o,label:"Shared monitor config",layout:n,...a})};var Q=a(61317),X=e=>{var n,a,l;let{monitor:r,integrationOption:s,isSubmitting:d,databasesAvailable:c,onClose:u,onAdvance:_,onSubmit:m}=e,F=!!r,g=(0,o.useRouter)(),h=Array.isArray(g.query.id)?g.query.id[0]:g.query.id,p=z.Ry().shape({name:z.Z_().required().label("Name"),execution_frequency:z.Z_().nullable().label("Execution frequency"),execution_start_date:z.hT().nullable().label("Execution start date")}),b=(null==r?void 0:r.execution_start_date)?R(r.execution_start_date):Date.now(),x={name:null!==(n=null==r?void 0:r.name)&&void 0!==n?n:"",shared_config_id:null!==(a=null==r?void 0:r.shared_config_id)&&void 0!==a?a:void 0,execution_start_date:(0,V.WU)(b,"yyyy-MM-dd'T'HH:mm"),execution_frequency:null!==(l=null==r?void 0:r.execution_frequency)&&void 0!==l?l:Q.hV.MONTHLY},y=(0,v.MM)(Q.hV);return(0,i.jsx)(H.J9,{initialValues:x,enableReinitialize:!0,onSubmit:e=>{let n=e.execution_frequency!==Q.hV.NOT_SCHEDULED?{execution_frequency:e.execution_frequency,execution_start_date:new Date(e.execution_start_date).toISOString()}:{execution_frequency:Q.hV.NOT_SCHEDULED,execution_start_date:void 0},a=F?{...r,...n,name:e.name,shared_config_id:e.shared_config_id}:{...n,name:e.name,shared_config_id:e.shared_config_id,connection_config_key:h,classify_params:{num_samples:25,num_threads:1}};s.identifier===Q.Rj.DYNAMODB&&(a.datasource_params={single_dataset:!1}),c?_(a):m(a)},validationSchema:p,children:e=>{let{values:n,isValid:a,resetForm:o}=e;return(0,i.jsx)(H.l0,{children:(0,i.jsxs)(t.gCW,{alignItems:"start",spacing:6,mt:4,children:[(0,i.jsx)(W.j0,{name:"name",id:"name",label:"Name",isRequired:!0,variant:"stacked"}),(0,i.jsx)(K.d,{name:"execution_frequency",id:"execution_frequency",tooltip:"Interval to run the monitor automatically after the start date",options:y,label:"Automatic execution frequency",layout:"stacked"}),(0,i.jsx)(J,{name:"shared_config_id",id:"shared_config_id"}),(0,i.jsx)(W.YL,{name:"execution_start_date",label:"Automatic execution start time",disabled:n.execution_frequency===Q.hV.NOT_SCHEDULED,id:"execution_start_date"}),(0,i.jsxs)("div",{className:"flex w-full justify-between",children:[(0,i.jsx)(t.wpx,{onClick:()=>{o(),u()},children:"Cancel"}),(0,i.jsx)(t.wpx,{htmlType:"submit",type:"primary",disabled:!a,loading:d,"data-testid":"next-btn",children:c?"Next":"Save"})]})]})})}})},$=a(90111),ee=a(64781),en=a(60325);let ea=z.Ry().shape({name:z.Z_().required().label("Name"),execution_frequency:z.Z_().nullable().label("Execution frequency"),execution_start_date:z.hT().nullable().label("Execution start date"),datasource_params:z.Ry().shape({locations:z.IX().label("Locations"),exclude_domains:z.IX().label("Exclude domains"),sitemap_url:z.Z_().nullable().url().label("Sitemap URL")})});var ei=e=>{var n,a,l,r;let{monitor:s,url:d,onClose:c,onSubmit:u}=e,_=(0,o.useRouter)(),m=Array.isArray(_.query.id)?_.query.id[0]:_.query.id,F=(null==s?void 0:s.execution_start_date)?R(s.execution_start_date):Date.now(),{data:g,isLoading:h}=(0,ee.gT)(),p=[...(0,en.TK)(null!==(n=null==g?void 0:g.locations)&&void 0!==n?n:[]),...(0,en.TK)(null!==(a=null==g?void 0:g.location_groups)&&void 0!==a?a:[])].map(e=>({value:e,label:b.Z8[e]})),x={name:(null==s?void 0:s.name)||"",shared_config_id:null!==(l=null==s?void 0:s.shared_config_id)&&void 0!==l?l:void 0,execution_frequency:(null==s?void 0:s.execution_frequency)||Q.hV.NOT_SCHEDULED,execution_start_date:(0,V.WU)(F,"yyyy-MM-dd'T'HH:mm"),url:d,connection_config_key:m,datasource_params:null!==(r=null==s?void 0:s.datasource_params)&&void 0!==r?r:{locations:[]}},y=async e=>{let n=e.execution_frequency!==Q.hV.NOT_SCHEDULED?{execution_frequency:e.execution_frequency,execution_start_date:new Date(e.execution_start_date).toISOString()}:{execution_frequency:Q.hV.NOT_SCHEDULED,execution_start_date:void 0};u({...s,...e,...n,key:null==s?void 0:s.key,classify_params:(null==s?void 0:s.classify_params)||{},datasource_params:e.datasource_params||{},connection_config_key:m})},f=(0,v.MM)(Q.hV).filter(e=>[Q.hV.MONTHLY,Q.hV.QUARTERLY,Q.hV.YEARLY,Q.hV.NOT_SCHEDULED].includes(e.value));return(0,i.jsxs)(t.jqI,{vertical:!0,className:"pt-4",children:[(0,i.jsx)($.Z,{children:(0,i.jsx)(t.xvT,{fontSize:"sm",children:"This monitor allows you to simulate and verify user consent actions, such as 'accept,' 'reject,' or 'opt-out,' on consent experiences. For each detected activity, the monitor will record whether it occurred before or after the configured user actions, ensuring compliance with user consent choices."})}),(0,i.jsx)(H.J9,{initialValues:x,enableReinitialize:!0,onSubmit:y,validationSchema:ea,children:e=>{let{values:n,resetForm:a}=e;return(0,i.jsx)(H.l0,{children:(0,i.jsxs)(t.jqI,{vertical:!0,gap:"middle",children:[(0,i.jsx)(W.j0,{name:"name",id:"name",label:"Name",isRequired:!0,variant:"stacked"}),(0,i.jsx)(W.j0,{name:"datasource_params.sitemap_url",id:"sitemap_url",label:"Sitemap URL",variant:"stacked"}),(0,i.jsx)(K.d,{mode:"tags",name:"datasource_params.exclude_domains",placeholder:"Enter domains to exclude",id:"exclude_domains",label:"Exclude domains",options:[],open:!1,layout:"stacked"}),(0,i.jsx)(W.j0,{name:"url",id:"url",label:"URL",isRequired:!0,disabled:!0,variant:"stacked"}),(0,i.jsx)(K.d,{mode:"multiple",isRequired:!0,name:"datasource_params.locations",id:"locations",label:"Locations",loading:h,options:p,optionFilterProp:"label",tooltip:"Specify the region(s) to include in the scan. The monitor will scan the same URL across these locations to identify tracking technologies, such as cookies served by ad tech vendors.",layout:"stacked"}),(0,i.jsx)(J,{name:"shared_config_id",id:"shared_config_id"}),(0,i.jsx)(K.d,{name:"execution_frequency",id:"execution_frequency",options:f,label:"Automatic execution frequency",layout:"stacked"}),(0,i.jsx)(W.YL,{name:"execution_start_date",label:"Automatic execution start time",disabled:n.execution_frequency===Q.hV.NOT_SCHEDULED,id:"execution_start_date",tooltip:"Set the start time for the scan. For optimal performance and minimal disruption, schedule scans during periods of low traffic."}),(0,i.jsxs)(t.jqI,{className:"mt-2 justify-between",children:[(0,i.jsx)(t.wpx,{onClick:()=>{a(),c()},children:"Cancel"}),(0,i.jsx)(t.wpx,{type:"primary",htmlType:"submit","data-testid":"save-btn",children:"Save"})]})]})})}})]})},et=a(31883),eo=e=>{let{isOpen:n,onClose:a,formStep:o,onAdvance:l,monitor:r,isEditing:s,integration:d,integrationOption:c,isWebsiteMonitor:u}=e,[_,{isLoading:m}]=(0,y.Fy)(),{data:F}=(0,y.oN)({page:1,size:25,connection_config_key:d.key}),g=!!F&&!!F.total,p=(0,t.pmc)(),{successAlert:b,errorAlert:x}=(0,f.V)(),j=async e=>{let n;let i=setTimeout(()=>{n||(p({...C.MA,status:"info",description:"Saving this monitor is taking longer than expected. Fides will continue processing it in the background, and you can check back later to view the updates."}),a())},5e3);if(n=await _(e)){if(clearTimeout(i),(0,et.D4)(n)){x((0,v.e$)(n.error),"Error creating monitor");return}if(s){b("Monitor updated successfully"),a();return}if(u){b(e.execution_frequency===Q.hV.NOT_SCHEDULED?'Your monitor has been created with no schedule. Select "Scan" in the table below to begin scanning your website.':"Your monitor has been created and is now scanning your website. Once the monitor is finished scanning, results can be found in the action center."),a();return}b("Monitor created successfully"),a()}};return u?(0,i.jsx)(S.Z,{title:(null==r?void 0:r.name)?"Configure ".concat(r.name):"Configure website monitor",isOpen:n,onClose:a,children:(0,i.jsx)(ei,{monitor:r,url:d.secrets.url,onClose:a,onSubmit:j})}):(0,i.jsxs)(S.Z,{title:(null==r?void 0:r.name)?"Configure ".concat(r.name):"Configure discovery monitor",isOpen:n,onClose:a,children:[0===o&&(0,i.jsx)(X,{monitor:r,onClose:a,onAdvance:l,onSubmit:j,isSubmitting:m,databasesAvailable:g,integrationOption:c}),1===o&&(r?(0,i.jsx)(k,{monitor:r,isEditing:s,isSubmitting:m,onSubmit:j,onClose:a,integrationKey:d.key}):(0,i.jsx)(h.Z,{}))]})},el=e=>{let{defaultSuccessMsg:n,defaultErrorMsg:a}=e,{successAlert:i,errorAlert:t}=(0,f.V)();return{toastResult:e=>{(0,v.D4)(e)?t((0,v.e$)(e.error,a)):i(n)}}},er=a(58452),es=a(79494),ed=e=>{let{monitorId:n,isWebsiteMonitor:a,onEditClick:o}=e,[l]=(0,y.Sb)(),{toastResult:r}=el({defaultErrorMsg:"A problem occurred deleting this monitor",defaultSuccessMsg:"Monitor deleted successfully"}),[s,{isLoading:d}]=(0,y.V9)(),{toastResult:c}=el({defaultErrorMsg:"A problem occurred initiating monitor execution",defaultSuccessMsg:a?"Scanning your website now. Once the monitor is finished, results can be found in the action center.":"Monitor execution successfully started"}),u=async()=>{r(await l({monitor_config_id:n}))},{isOpen:_,onOpen:m,onClose:F}=(0,t.qY0)(),g=async()=>{c(await s({monitor_config_id:n}))};return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(er.Z,{isOpen:_,onClose:F,onConfirm:u,title:"Delete monitor",message:"Are you sure you want to delete this discovery monitor?",continueButtonText:"Delete",isCentered:!0}),(0,i.jsxs)("div",{className:"flex gap-2",children:[(0,i.jsx)(t.esZ,{title:"Edit",children:(0,i.jsx)(t.wpx,{onClick:o,size:"small",icon:(0,i.jsx)(t.dY8,{}),"data-testid":"edit-monitor-btn","aria-label":"Edit monitor"})}),(0,i.jsx)(t.esZ,{title:"Delete",children:(0,i.jsx)(t.wpx,{onClick:m,size:"small",icon:(0,i.jsx)(t.pJl,{}),"aria-label":"Delete monitor","data-testid":"delete-monitor-btn"})}),(0,i.jsx)(es.Z,{onClick:g,title:"Scan",loading:d})]})]})},ec=a(72625);let eu=e=>{let{row:n,getValue:a}=e,[t]=(0,y.Fy)(),o=async e=>t({...n.original,enabled:e}),l=a();return(0,i.jsx)(ec.S1,{enabled:l,onToggle:o,title:"Disabling monitor",message:"You are about to disable this monitor. If you continue, it will no longer scan automatically."})};var e_=a(7195),em=a(16394),eF=a(16964),eg=a.n(eF),eh=e=>{var n,a;let{monitor:o}=e,l=null===(n=o.execution_records)||void 0===n?void 0:n[0],{isOpen:r,onOpen:s,onClose:d}=(0,t.qY0)(),c=o.last_monitored?new Date(o.last_monitored):null,u=c?(0,em.p6)(c):"N/A",_=c?(0,e_.B)(c,new Date,{addSuffix:!0}):"N/A";return l?l.status===Q.L2.IN_PROGRESS?c?(0,i.jsx)(t.esZ,{title:"Last scan: ".concat(_),children:(0,i.jsx)(t.j8w,{color:"info",children:"Scanning"})}):(0,i.jsx)(t.j8w,{color:"info",children:"Scanning"}):l.status===Q.L2.COMPLETED?(0,i.jsx)(t.esZ,{title:u,children:(0,i.jsx)(t.j8w,{color:"success","data-testid":"tag-success",children:_})}):l.status===Q.L2.ERRORED?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(t.j8w,{color:"error",className:eg().monitorStatusTag,"data-testid":"tag-error",children:(0,i.jsx)("button",{onClick:s,className:eg().errorTagText,type:"button",children:"Incomplete"})}),(0,i.jsxs)(t.dys,{isOpen:r,onClose:d,size:"md",children:[(0,i.jsx)(t.P1B,{}),(0,i.jsxs)(t.scA,{"data-testid":"error-log-drawer",children:[(0,i.jsx)(t.OXI,{children:"Failure log"}),(0,i.jsx)(t.cCv,{}),(0,i.jsxs)(t.Ng0,{children:[l.completed&&(0,i.jsx)(t.AntTypography.Paragraph,{className:eg().errorResultTimestamp,children:(0,em.p6)(new Date(l.completed))}),null===(a=l.messages)||void 0===a?void 0:a.map((e,n)=>(0,i.jsxs)(g.Fragment,{children:[(0,i.jsx)(t.AntTypography.Paragraph,{"data-testid":"error-log-message",children:e}),n<l.messages.length-1&&(0,i.jsx)(t.izJ,{className:"mb-3"})]},n))]})]})]})]}):(0,i.jsx)(t.j8w,{children:"N/A"}):(0,i.jsx)(t.j8w,{children:"N/A"})};let ep={items:[],total:0,page:1,size:50,pages:0},eb={[Q.Rj.WEBSITE]:"Configure your website monitor to identify active ad tech vendors and tracking technologies across your site. This monitor will analyze selected pages for vendor activity, compliance with privacy requirements, and data collection practices. Set your preferences below to customize the monitor frequency and scan locations.",[Q.Rj.OKTA]:"Configure your SSO provider monitor to detect and map systems within your infrastructure. This monitor will analyze connected systems to identify their activity and ensure accurate representation in your data map. Set your preferences below to customize the monitor's scan frequency and scope. To learn more about monitors, view our docs here."},ex=(0,m.Cl)(),ey=e=>{let{onAddClick:n}=e;return(0,i.jsx)(t.gCW,{mt:6,p:10,spacing:4,borderRadius:"base",maxW:"70%","data-testid":"no-results-notice",alignSelf:"center",margin:"auto",children:(0,i.jsxs)(t.gCW,{children:[(0,i.jsx)(t.xvT,{fontSize:"md",fontWeight:"600",children:"No monitors"}),(0,i.jsx)(t.xvT,{fontSize:"sm",children:'You have not configured any data discovery monitors. Click "Add monitor" to configure data discovery now.'}),(0,i.jsx)(t.wpx,{onClick:n,type:"primary",children:"Add monitor"})]})})};var ev=e=>{var n;let{integration:a,integrationOption:o}=e,l=(null==o?void 0:o.identifier)===Q.Rj.WEBSITE,{PAGE_SIZES:r,pageSize:s,setPageSize:d,onPreviousPageClick:c,isPreviousPageDisabled:u,onNextPageClick:_,isNextPageDisabled:v,startRange:f,endRange:S,pageIndex:C,setTotalPages:j}=(0,x.oi)(),{isLoading:N,isFetching:T,data:A}=(0,y.Fu)({page:C,size:s,connection_config_key:a.key}),w=(0,t.qY0)(),[M,k]=(0,g.useState)(void 0),[E,U]=(0,g.useState)(!1),[D,R]=(0,g.useState)(0),I=e=>{k(e),U(!0),w.onOpen()},L=null!=A?A:ep,{items:q,total:O,pages:B}=(0,g.useMemo)(()=>L,[L]);(0,g.useEffect)(()=>{j(B)},[B,j]);let P=(0,g.useMemo)(()=>{let e=ex.accessor(e=>e.name,{id:"name",cell:e=>(0,i.jsx)(x.G3,{value:e.getValue()}),header:e=>(0,i.jsx)(x.Rr,{value:"Name",...e})}),n=ex.accessor(e=>e.databases,{id:"projects",cell:e=>{var n;return(null===(n=e.getValue())||void 0===n?void 0:n.length)===0?(0,i.jsx)(x.G3,{value:"All projects"}):(0,i.jsx)(x.WP,{suffix:"Projects",value:e.getValue(),...e,cellState:{isExpanded:!0}})},header:e=>(0,i.jsx)(x.Rr,{value:"Scope",...e})}),t=ex.accessor(()=>{let e=a.secrets;return null==e?void 0:e.url},{id:"source_url",cell:e=>{var n;return(0,i.jsx)(x.G3,{value:null!==(n=e.getValue())&&void 0!==n?n:"Not scheduled"})},header:e=>(0,i.jsx)(x.Rr,{value:"Source URL",...e})}),o=ex.accessor(e=>e.execution_frequency,{id:"frequency",cell:e=>{var n;return(0,i.jsx)(x.G3,{value:null!==(n=e.getValue())&&void 0!==n?n:"Not scheduled"})},header:e=>(0,i.jsx)(x.Rr,{value:"Scan frequency",...e})}),r=ex.display({id:"monitor_status",cell:e=>(0,i.jsx)(eh,{monitor:e.row.original}),header:e=>(0,i.jsx)(x.Rr,{value:"Scan status",...e}),meta:{disableRowClick:!0}}),s=ex.accessor(e=>{var n;let a=e.datasource_params;return(null==a?void 0:null===(n=a.locations)||void 0===n?void 0:n.map(e=>b.Z8[e]).join(", "))||"No regions selected"},{id:"regions",cell:e=>(0,i.jsx)(x.G3,{value:e.getValue()}),header:e=>(0,i.jsx)(x.Rr,{value:"Regions",...e})}),d=ex.accessor(e=>e.enabled,{id:"status",cell:eu,header:e=>(0,i.jsx)(x.Rr,{value:"Status",...e}),size:0,meta:{disableRowClick:!0}}),c=ex.display({id:"action",cell:e=>(0,i.jsx)(ed,{onEditClick:()=>I(e.row.original),isWebsiteMonitor:l,monitorId:e.row.original.key}),header:"Actions",meta:{disableRowClick:!0}});return l?[e,t,o,s,r,d,c]:[e,n,o,r,d,c]},[]),Z=(0,F.b7)({getCoreRowModel:(0,m.sC)(),getGroupedRowModel:(0,m.qe)(),getExpandedRowModel:(0,m.rV)(),getRowId:e=>e.name,manualPagination:!0,data:q,columns:P,columnResizeMode:"onChange"});if(N)return(0,i.jsx)(h.Z,{});let G=null!==(n=eb[null==o?void 0:o.identifier])&&void 0!==n?n:"A data discovery monitor observes configured systems for data model changes to proactively discover and classify data risks. Monitors can observe part or all of a project, dataset, table, or API for changes and each can be assigned to a different data steward.";return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(t.xvT,{maxW:"720px",mb:6,fontSize:"sm","data-testid":"monitor-description",children:G}),(0,i.jsxs)(x.Q$,{children:[(0,i.jsx)(t.LZC,{}),(0,i.jsx)(t.wpx,{onClick:w.onOpen,icon:(0,i.jsx)(p,{}),iconPosition:"end","data-testid":"add-monitor-btn",children:"Add monitor"}),(0,i.jsx)(eo,{isOpen:w.isOpen,onClose:()=>{k(void 0),U(!1),R(0),w.onClose()},formStep:D,onAdvance:e=>{k(e),R(1)},monitor:M,isEditing:E,integration:a,integrationOption:o,isWebsiteMonitor:l})]}),(0,i.jsx)(x.ZK,{tableInstance:Z,onRowClick:I,emptyTableNotice:(0,i.jsx)(ey,{onAddClick:w.onOpen})}),(0,i.jsx)(x.s8,{totalRows:O||0,pageSizes:r,setPageSize:d,onPreviousPageClick:c,isPreviousPageDisabled:u||T,onNextPageClick:_,isNextPageDisabled:v||T,startRange:f,endRange:S})]})},ef=a(41966),eS=a(32885),eC=e=>{let{integration:n}=e,{data:a}=(0,c.Eg)(n.key),{data:o}=(0,ef.LH)({minimal:!0,connection_type:Q.Rj.BIGQUERY}),[l,{isLoading:r}]=(0,eS.Qd)(),s=(0,t.pmc)(),d=async()=>{try{var e,i,t,r,d;let c=null!==(t=null==a?void 0:null===(e=a.items)||void 0===e?void 0:e.map(e=>e.fides_key))&&void 0!==t?t:[],u=null!==(r=null==o?void 0:o.map(e=>e.fides_key))&&void 0!==r?r:[],_=c.length>0?c:u,m=await l({connectionKey:n.key,datasetIds:_}),F=null!==(d=null===(i=m.data)||void 0===i?void 0:i.succeeded.length)&&void 0!==d?d:0,g="Fides has begun syncing with DataHub. There ".concat(1===F?"is":"are"," ").concat(F," dataset").concat(1===F?"":"s"," queued for syncing.");s((0,C.t5)(g))}catch(e){s({title:"Error syncing datasets",description:"There was an error syncing your datasets with DataHub. Please try again.",status:"error",duration:5e3,isClosable:!0})}};return(0,i.jsxs)(t.gCW,{spacing:6,align:"stretch",children:[(0,i.jsxs)(t.gCW,{spacing:4,align:"stretch",children:[(0,i.jsx)(t.xvT,{maxW:"720px",fontSize:"sm","data-testid":"scan-description-1",children:"If you're using DataHub for metadata management, select sync datasets to push data categories from Fides to your DataHub datasets."}),(0,i.jsxs)(t.xvT,{maxW:"720px",fontSize:"sm","data-testid":"scan-description-2",children:["Fides assigns data categories to datasets based on your privacy taxonomy. With this integration, those categories can be added as glossary terms to matching datasets in DataHub-keeping your labeling consistent across systems. To learn more about our DataHub integration, view our docs ",(0,i.jsx)(t.rUS,{href:"https://ethyca.com/docs/user-guides/integrations/saas-integrations/datahub",isExternal:!0,color:"blue.500",textDecoration:"underline",children:"here"}),"."]})]}),(0,i.jsx)(t.zxk,{colorScheme:"primary",onClick:d,"data-testid":"sync-button",width:"fit-content",isLoading:r,loadingText:"Syncing datasets...",children:"Sync Datasets"})]})},ej=a(15987),eN=a(64176),eT=e=>{let{isOpen:n,onClose:a,connection:t,description:o}=e,l=(0,eN.Z)(t.connection_type);return(0,i.jsx)(S.Z,{title:"Manage ".concat(null==t?void 0:t.name," integration"),isOpen:n,onClose:a,children:(0,i.jsx)(ej.Z,{connection:t,connectionOption:l,onCancel:a,description:o})})},eA=a(41553),ew=a(75595),eM=a(29379),ek=a(40774),eE=()=>{var e,n;let{query:a}=(0,o.useRouter)(),m=Array.isArray(a.id)?a.id[0]:a.id,{data:F,isLoading:g}=(0,c.jA)(null!=m?m:""),h=(0,eN.Z)(null==F?void 0:F.connection_type),{testConnection:p,isLoading:b,testData:x}=(0,u.Z)(F),{onOpen:y,isOpen:v,onClose:f}=(0,t.qY0)(),{overview:S,instructions:C,description:j,enabledFeatures:N}=(0,_.ZP)(null==F?void 0:F.connection_type),T=(0,o.useRouter)();F&&!_.jq.includes(F.connection_type)&&T.push(s.KH);let A=(null==F?void 0:F.connection_type)!==Q.Rj.MANUAL_WEBHOOK,w=[];return(null==N?void 0:N.includes(eM.j.WITHOUT_CONNECTION))?w.push({label:"Details",content:(0,i.jsxs)(t.xuv,{maxW:"720px",children:[(0,i.jsx)(t.kCb,{children:(0,i.jsx)(t.wpx,{onClick:y,"data-testid":"manage-btn",children:"Edit integration"})}),(0,i.jsx)(eT,{isOpen:v,onClose:f,connection:F,description:j}),S,C]})}):w.push({label:"Connection",content:(0,i.jsxs)(t.xuv,{maxW:"720px",children:[A&&(0,i.jsxs)(t.kCb,{borderRadius:"md",outline:"1px solid",outlineColor:"gray.100",align:"center",p:3,children:[(0,i.jsx)(t.kCb,{flexDirection:"column",children:(0,i.jsx)(eA.Z,{testData:x})}),(0,i.jsx)(t.LZC,{}),(0,i.jsxs)("div",{className:"flex gap-4",children:[(0,i.jsx)(t.wpx,{onClick:p,loading:b,"data-testid":"test-connection-btn",children:"Test connection"}),(0,i.jsx)(t.wpx,{onClick:y,"data-testid":"manage-btn",children:"Manage"})]})]}),!A&&(0,i.jsx)(t.kCb,{children:(0,i.jsx)(t.wpx,{onClick:y,"data-testid":"manage-btn",children:"Edit integration"})}),(0,i.jsx)(eT,{isOpen:v,onClose:f,connection:F,description:j}),S,C]})}),(null==N?void 0:N.includes(eM.j.DATA_SYNC))&&w.push({label:"Data sync",content:(0,i.jsx)(eC,{integration:F})}),(null==N?void 0:N.includes(eM.j.DATA_DISCOVERY))&&w.push({label:"Data discovery",content:(0,i.jsx)(ev,{integration:F,integrationOption:h})}),(0,i.jsx)(r.Z,{title:"Integrations",children:(0,i.jsxs)(d.Z,{heading:"Integrations",breadcrumbItems:[{title:"All integrations",href:s.KH},{title:null!==(n=null!==(e=null==F?void 0:F.name)&&void 0!==e?e:null==F?void 0:F.key)&&void 0!==n?n:""}],children:[(0,i.jsx)(ek.Z,{}),(0,i.jsx)(ew.Z,{integration:F,showDeleteButton:!0}),g?(0,i.jsx)(t.$jN,{}):!!F&&(0,i.jsx)(l.Z,{data:w,isLazy:!0})]})})}},16964:function(e){e.exports={errorResultTimestamp:"MonitorStatusCell_errorResultTimestamp__DQQWt",errorTagText:"MonitorStatusCell_errorTagText___MiU0"}}},function(e){e.O(0,[8033,6060,2858,2866,9278,3662,641,7553,4481,6202,9033,2888,9774,179],function(){return e(e.s=50697)}),_N_E=e.O()}]);
|
@@ -1 +0,0 @@
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[710],{9387:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/integrations",function(){return t(22406)}])},22406:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return S}});var i,o,l,r,a=t(24246),s=t(4454),c=t(27378),d=t(7617),u=t(62165),x=t(18225),h=t(77213),p=t(58754),g=t(14207),j=t(8133),C=t(66250),m=t(15987),f=t(75595),v=e=>{let{integrationType:n,onConfigure:t,onCancel:i}=e;return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(f.Z,{integration:null==n?void 0:n.placeholder,onConfigureClick:t}),null==n?void 0:n.overview,(0,a.jsxs)(s.kCb,{children:[(0,a.jsx)(s.LZC,{}),(0,a.jsx)(s.wpx,{onClick:i,children:"Cancel"})]})]})},_=t(25980);(i=l||(l={})).ALL="All",i.DATABASE="Database",i.DATA_CATALOG="Data Catalog",i.DATA_WAREHOUSE="Data Warehouse",i.IDENTITY_PROVIDER="Identity Provider",i.WEBSITE="Website",i.MANUAL="Manual";var y=e=>{var n;let{flags:t}=(0,u.Vb)(),i=Object.values(l).filter(e=>("Identity Provider"!==e||t.oktaMonitor)&&("Manual"!==e||t.alphaNewManualIntegration)),[o,r]=(0,c.useState)(0),a=i[o],[s,d]=(0,c.useState)(!1),x="All"!==a,h=null!==(n=null==e?void 0:e.filter(e=>!x||e.category===a))&&void 0!==n?n:[];return{tabs:i,tabIndex:o,anyFiltersApplied:x,isFiltering:s,onChangeFilter:e=>{d(!0),r(e),setTimeout(()=>d(!1),100)},filteredTypes:h}},b=e=>{let{onCancel:n,onDetailClick:t,onConfigureClick:i}=e,{tabIndex:o,onChangeFilter:l,isFiltering:r,filteredTypes:c,tabs:u}=y(C.FO),{flags:{oktaMonitor:h,alphaNewManualIntegration:p}}=(0,_.Vb)();return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(s.mQc,{index:o,onChange:l,mb:4,children:(0,a.jsx)(s.tdY,{children:u.map(e=>(0,a.jsx)(d.q,{label:e},e))})}),r?(0,a.jsx)(x.Z,{}):(0,a.jsx)(s.kCb,{direction:"column",children:c.map(e=>(h||"okta"!==e.placeholder.connection_type)&&(p||"manual_webhook"!==e.placeholder.connection_type)?(0,a.jsx)(f.Z,{integration:e.placeholder,onConfigureClick:()=>i(e),otherButtons:(0,a.jsx)(s.wpx,{onClick:()=>t(e),children:"Details"})},e.placeholder.key):null)}),(0,a.jsxs)(s.kCb,{children:[(0,a.jsx)(s.LZC,{}),(0,a.jsx)(s.wpx,{onClick:n,children:"Cancel"})]})]})},A=t(64176);(o=r||(r={})).LIST_VIEW="list-view",o.DETAIL="detail",o.FORM="form";var k=e=>{let{isOpen:n,onClose:t}=e,[i,o]=(0,c.useState)("list-view"),[l,r]=(0,c.useState)(),s=(0,A.Z)(null==l?void 0:l.placeholder.connection_type),{description:d}=(0,C.ZP)(null==l?void 0:l.placeholder.connection_type),u=()=>{o("list-view"),r(void 0),t()},x=l?"".concat(l.placeholder.name," Integration"):"Add integration";return(0,a.jsxs)(j.Z,{size:"2xl",isOpen:n,onClose:u,title:x,children:["list-view"===i&&(0,a.jsx)(b,{onCancel:u,onDetailClick:e=>{o("detail"),r(e)},onConfigureClick:e=>{o("form"),r(e)}}),"detail"===i&&(0,a.jsx)(v,{integrationType:l,onConfigure:()=>o("form"),onCancel:u}),"form"===i&&(0,a.jsx)(m.Z,{connectionOption:s,onCancel:u,description:d})]})},w=t(86677),T=t(77830),I=t(29379),N=e=>{let{isFiltered:n,onOpenAddModal:t}=e;return(0,a.jsxs)(s.kCb,{direction:"column",alignItems:"center","data-testid":"empty-state",children:[(0,a.jsx)(s.xvT,{color:"gray.700",fontWeight:"semibold",fontSize:"md",children:"No integrations"}),(0,a.jsx)(s.xvT,{color:"gray.700",fontSize:"sm",marginTop:"8px",children:n?"No integrations match your filters":"You have not configured any integrations"}),(0,a.jsx)(s.xvT,{color:"gray.700",fontSize:"sm",children:'Click "Add integration" to connect and configure systems now.'}),(0,a.jsx)(s.wpx,{type:"primary",onClick:t,className:"mt-4",children:"Add integration"})]})},O=e=>{let{integrations:n,isFiltered:t,onOpenAddModal:i}=e,o=(0,w.useRouter)();return(0,a.jsx)(s.xuv,{marginTop:"24px",children:n.length?n.map(e=>{var n;let t=!(null===(n=(0,C.ZP)(e.connection_type).enabledFeatures)||void 0===n?void 0:n.includes(I.j.WITHOUT_CONNECTION));return(0,a.jsx)(f.Z,{integration:e,showTestNotice:t,configureButtonLabel:"Manage",onConfigureClick:()=>o.push("".concat(T.KH,"/").concat(e.key))},e.key)}):(0,a.jsx)(N,{onOpenAddModal:i,isFiltered:t})})},Z=t(40774),E=t(61317),S=()=>{let[e,n]=(0,c.useState)(1),[t,i]=(0,c.useState)(50),{flags:o}=(0,u.Vb)(),l=(0,c.useMemo)(()=>C.jq.filter(e=>e!==E.Rj.MANUAL_WEBHOOK||o.alphaNewManualIntegration),[o.alphaNewManualIntegration]),{data:r,isLoading:j}=(0,g.AZ)({connection_type:l,size:t,page:e}),{items:m,total:f}=null!=r?r:{},{onOpen:v,isOpen:_,onClose:b}=(0,s.qY0)(),{tabIndex:A,onChangeFilter:w,anyFiltersApplied:T,isFiltering:I,filteredTypes:N,tabs:S}=y(null==m?void 0:m.map(e=>(0,C.ZP)(e.connection_type))),M=(0,c.useMemo)(()=>{var e;return null!==(e=null==m?void 0:m.filter(e=>N.some(n=>n.placeholder.connection_type===e.connection_type)))&&void 0!==e?e:[]},[m,N]);return(0,a.jsxs)(h.Z,{title:"Integrations",children:[(0,a.jsx)(p.Z,{heading:"Integrations",breadcrumbItems:[{title:"All integrations"}],children:(0,a.jsx)(Z.Z,{})}),(0,a.jsxs)(s.xuv,{"data-testid":"integration-tabs",display:"flex",children:[(0,a.jsx)(s.mQc,{index:A,onChange:e=>{n(1),w(e)},w:"full",children:(0,a.jsx)(s.tdY,{children:S.map(e=>(0,a.jsx)(d.q,{label:e},e))})}),(0,a.jsx)(s.xuv,{borderBottom:"2px solid",borderColor:"gray.200",height:"fit-content",pr:"2",pb:"2",children:(0,a.jsx)(s.wpx,{onClick:v,"data-testid":"add-integration-btn",icon:(0,a.jsx)(s.xPt,{}),iconPosition:"end",children:"Add Integration"})})]}),j||I?(0,a.jsx)(x.Z,{}):(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(O,{integrations:M,onOpenAddModal:v,isFiltered:T}),!!f&&f>10&&(0,a.jsx)(s.B7X,{"data-testid":"pagination-controls",size:"small",total:f,pageSize:t,current:e,onChange:(e,t)=>{n(e),i(t)},showSizeChanger:!0})]}),(0,a.jsx)(k,{isOpen:_,onClose:b})]})}}},function(e){e.O(0,[8033,6060,2858,2866,9278,3662,641,7553,4481,6202,9033,2888,9774,179],function(){return e(e.s=9387)}),_N_E=e.O()}]);
|
@@ -1 +0,0 @@
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3663],{87439:function(e,t,s){(window.__NEXT_P=window.__NEXT_P||[]).push(["/messaging/[id]",function(){return s(79545)}])},79545:function(e,t,s){"use strict";s.r(t);var n=s(24246),a=s(812),i=s(4454),l=s(86677),r=s(77213),u=s(77830),o=s(58754),d=s(46628),c=s(67810),p=s(47466),m=s(5058),g=s(20149),f=s(31883);t.default=()=>{let e=(0,i.pmc)(),t=(0,l.useRouter)(),s=t.query.id,{data:h,isLoading:_}=(0,p.gQ)(s),[b]=(0,m.pS)(),[x]=(0,p.ew)(),y=async t=>{var n;let i={is_enabled:t.is_enabled,content:{subject:t.content.subject,body:t.content.body},properties:[]};null===(n=t.properties)||void 0===n||n.forEach(e=>{var t;return null===(t=i.properties)||void 0===t?void 0:t.push(e.id)});let l=await b({templateId:s,template:i});if((0,f.D4)(l)){e((0,d.Vo)((0,a.e$)(l.error)));return}e((0,d.t5)("Messaging template updated successfully"))},{isOpen:j,onOpen:w,onClose:v}=(0,i.qY0)(),C=async()=>{let n=await x(s);if((0,f.D4)(n)){e((0,d.Vo)((0,a.e$)(n.error)));return}e((0,d.t5)("Messaging template deleted successfully")),t.push(u.q)};return h?_?(0,n.jsx)(i.$jN,{}):(0,n.jsxs)(r.Z,{title:"Configure Message",children:[(0,n.jsx)(o.Z,{heading:"Messaging",breadcrumbItems:[{title:"Messaging",href:u.q},{title:"".concat(c.Z[h.type])}]}),(0,n.jsx)(i.xuv,{"data-testid":"add-messaging-template",maxWidth:"720px",children:(0,n.jsx)(g.Z,{template:h,handleSubmit:y,handleDelete:w})}),(0,n.jsx)(i.cVQ,{isOpen:j,onClose:v,onConfirm:C,title:"Delete message template",message:(0,n.jsx)(i.xvT,{children:"You are about to permanently delete this template message. Are you sure you would like to continue?"})})]}):null}}},function(e){e.O(0,[69,1100,2888,9774,179],function(){return e(e.s=87439)}),_N_E=e.O()}]);
|
fides/ui-build/static/admin/_next/static/chunks/pages/messaging/add-template-1de479533f733fbd.js
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7364],{3497:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/messaging/add-template",function(){return n(8334)}])},8334:function(e,t,n){"use strict";n.r(t);var s=n(24246),r=n(812),i=n(77830),u=n(4454),a=n(86677),l=n(77213),c=n(58754),d=n(46628),o=n(67810),p=n(47466),h=n(5058),_=n(20149),f=n(31883);t.default=()=>{let e=(0,u.pmc)(),t=(0,a.useRouter)(),{templateType:n}=t.query,[g]=(0,h.Vw)(),{data:b,isLoading:m}=(0,p.KC)(n),x=async s=>{var u;let a={is_enabled:s.is_enabled,content:{subject:s.content.subject,body:s.content.body},properties:[]};null===(u=s.properties)||void 0===u||u.forEach(e=>{var t;return null===(t=a.properties)||void 0===t?void 0:t.push(e.id)});let l=await g({templateType:n,template:a});if((0,f.D4)(l)){e((0,d.Vo)((0,r.e$)(l.error)));return}e((0,d.t5)("Messaging template created successfully")),t.push(i.q)};return b?m?(0,s.jsx)(u.$jN,{}):(0,s.jsx)(l.Z,{title:"Configure Message",children:(0,s.jsx)(c.Z,{heading:"Messaging",breadcrumbItems:[{title:"Messaging",href:i.q},{title:"".concat(o.Z[b.type])}],children:(0,s.jsx)(u.xuv,{maxWidth:"720px",children:(0,s.jsx)(u.xuv,{padding:2,children:(0,s.jsx)(_.Z,{template:b,handleSubmit:x})})})})}):null}}},function(e){e.O(0,[69,1100,2888,9774,179],function(){return e(e.s=3497)}),_N_E=e.O()}]);
|
@@ -1 +0,0 @@
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2815],{79349:function(e){e.exports=function(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}},52033:function(e,t,n){var i=n(26194),r=n(26789)(i);e.exports=r},23545:function(e,t,n){var i=n(97141),r=n(72889);e.exports=function e(t,n,s,a,o){var l=-1,c=t.length;for(s||(s=r),o||(o=[]);++l<c;){var u=t[l];n>0&&s(u)?n>1?e(u,n-1,s,a,o):i(o,u):a||(o[o.length]=u)}return o}},49819:function(e,t,n){var i=n(18911)();e.exports=i},26194:function(e,t,n){var i=n(49819),r=n(50098);e.exports=function(e,t){return e&&i(e,t,r)}},67375:function(e,t,n){var i=n(52033),r=n(80068);e.exports=function(e,t){var n=-1,s=r(e)?Array(e.length):[];return i(e,function(e,i,r){s[++n]=t(e,i,r)}),s}},98497:function(e,t,n){var i=n(66070),r=n(79867),s=n(89278),a=n(67375),o=n(73303),l=n(39334),c=n(96348),u=n(31137),d=n(19785);e.exports=function(e,t,n){t=t.length?i(t,function(e){return d(e)?function(t){return r(t,1===e.length?e[0]:e)}:e}):[u];var p=-1;return t=i(t,l(s)),o(a(e,function(e,n,r){return{criteria:i(t,function(t){return t(e)}),index:++p,value:e}}),function(e,t){return c(e,t,n)})}},1197:function(e,t,n){var i=n(31137),r=n(11871),s=n(63132);e.exports=function(e,t){return s(r(e,t,i),e+"")}},54459:function(e,t,n){var i=n(551),r=n(42630),s=n(31137),a=r?function(e,t){return r(e,"toString",{configurable:!0,enumerable:!1,value:i(t),writable:!0})}:s;e.exports=a},73303:function(e){e.exports=function(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}},17845:function(e,t,n){var i=n(55193);e.exports=function(e,t){if(e!==t){var n=void 0!==e,r=null===e,s=e==e,a=i(e),o=void 0!==t,l=null===t,c=t==t,u=i(t);if(!l&&!u&&!a&&e>t||a&&o&&c&&!l&&!u||r&&o&&c||!n&&c||!s)return 1;if(!r&&!a&&!u&&e<t||u&&n&&s&&!r&&!a||l&&n&&s||!o&&s||!c)return -1}return 0}},96348:function(e,t,n){var i=n(17845);e.exports=function(e,t,n){for(var r=-1,s=e.criteria,a=t.criteria,o=s.length,l=n.length;++r<o;){var c=i(s[r],a[r]);if(c){if(r>=l)return c;return c*("desc"==n[r]?-1:1)}}return e.index-t.index}},26789:function(e,t,n){var i=n(80068);e.exports=function(e,t){return function(n,r){if(null==n)return n;if(!i(n))return e(n,r);for(var s=n.length,a=t?s:-1,o=Object(n);(t?a--:++a<s)&&!1!==r(o[a],a,o););return n}}},18911:function(e){e.exports=function(e){return function(t,n,i){for(var r=-1,s=Object(t),a=i(t),o=a.length;o--;){var l=a[e?o:++r];if(!1===n(s[l],l,s))break}return t}}},42630:function(e,t,n){var i=n(81822),r=function(){try{var e=i(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();e.exports=r},72889:function(e,t,n){var i=n(96539),r=n(2900),s=n(19785),a=i?i.isConcatSpreadable:void 0;e.exports=function(e){return s(e)||r(e)||!!(a&&e&&e[a])}},57535:function(e,t,n){var i=n(85638),r=n(80068),s=n(42383),a=n(11611);e.exports=function(e,t,n){if(!a(n))return!1;var o=typeof t;return("number"==o?!!(r(n)&&s(t,n.length)):"string"==o&&t in n)&&i(n[t],e)}},11871:function(e,t,n){var i=n(79349),r=Math.max;e.exports=function(e,t,n){return t=r(void 0===t?e.length-1:t,0),function(){for(var s=arguments,a=-1,o=r(s.length-t,0),l=Array(o);++a<o;)l[a]=s[t+a];a=-1;for(var c=Array(t+1);++a<t;)c[a]=s[a];return c[t]=n(l),i(e,this,c)}}},63132:function(e,t,n){var i=n(54459),r=n(49591)(i);e.exports=r},49591:function(e){var t=Date.now;e.exports=function(e){var n=0,i=0;return function(){var r=t(),s=16-(r-i);if(i=r,s>0){if(++n>=800)return arguments[0]}else n=0;return e.apply(void 0,arguments)}}},551:function(e){e.exports=function(e){return function(){return e}}},95099:function(e,t,n){var i=n(23545),r=n(98497),s=n(1197),a=n(57535),o=s(function(e,t){if(null==e)return[];var n=t.length;return n>1&&a(e,t[0],t[1])?t=[]:n>2&&a(t[0],t[1],t[2])&&(t=[t[0]]),r(e,i(t,1),[])});e.exports=o},24081:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/messaging",function(){return n(18504)}])},35287:function(e,t,n){"use strict";var i=n(24246),r=n(4454),s=n(88038),a=n.n(s);n(27378),t.Z=e=>{let{children:t,title:n,mainProps:s}=e;return(0,i.jsxs)(r.kCb,{"data-testid":n,direction:"column",height:"calc(100vh - 48px)",width:"calc(100vw - 240px)",children:[(0,i.jsxs)(a(),{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.jsx)(r.kCb,{px:10,py:6,as:"main",overflow:"auto",direction:"column",flex:1,minWidth:0,...s,children:t})]})}},87361:function(e,t,n){"use strict";var i=n(24246),r=n(4454);t.Z=e=>{let{title:t,text:n,onClose:s}=e;return(0,i.jsxs)(r.Ugi,{backgroundColor:"gray.50",border:"1px solid",borderRadius:"md",justifyContent:"space-between",py:4,pr:6,pl:3,"data-testid":"empty-state",gap:2,position:"relative",children:[s&&(0,i.jsx)(r.Two,{boxSize:5,position:"absolute",right:3,top:3,zIndex:1,cursor:"pointer",p:1,onClick:s}),(0,i.jsx)(r.iid,{alignSelf:"start",color:"minos",mt:.5,flexGrow:0}),(0,i.jsxs)(r.kCb,{direction:"column",gap:2,flexGrow:1,children:[(0,i.jsx)(r.X6q,{fontSize:"md",children:t}),(0,i.jsx)(r.xvT,{fontSize:"sm",color:"gray.600",lineHeight:"5",children:n})]})]})}},58754:function(e,t,n){"use strict";var i=n(24246),r=n(4454),s=n(70788);t.Z=e=>{let{heading:t,breadcrumbItems:n,isSticky:a=!0,children:o,rightContent:l,style:c,...u}=e;return(0,i.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,i.jsxs)(r.jqI,{justify:"space-between",children:["string"==typeof t?(0,i.jsx)(r.lQT,{className:n||o?"pb-4":void 0,level:1,"data-testid":"page-heading",children:t}):t,l&&(0,i.jsx)("div",{"data-testid":"page-header-right-content",children:l})]}),!!n&&(0,i.jsx)(s.m,{className:o?"pb-4":void 0,items:n,"data-testid":"page-breadcrumb"}),o]})}},70788:function(e,t,n){"use strict";n.d(t,{m:function(){return c}});var i=n(24246),r=n(4454),s=n(79894),a=n.n(s),o=n(27378);let{Text:l}=r.AntTypography,c=e=>{let{items:t,...n}=e,s=(0,o.useMemo)(()=>null==t?void 0:t.map((e,n)=>{let s=n===t.length-1,o={...e},c=o.onClick&&!o.href;return("string"==typeof o.title&&(o.title=(0,i.jsx)(l,{style:{color:"inherit",maxWidth:s?void 0:400},ellipsis:!s,children:o.title})),c)?o.title=(0,i.jsx)(r.wpx,{type:"text",size:"small",icon:o.icon,onClick:o.onClick,className:"ant-breadcrumb-link -mt-px px-1 text-inherit",children:o.title}):(o.icon&&(o.title=(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("span",{className:"anticon align-text-bottom",children:o.icon}),o.title]})),o.href&&o.title&&(o.title=(0,i.jsx)(a(),{href:o.href,className:"ant-breadcrumb-link",children:o.title}),delete o.href)),o}),[t]);return(0,i.jsx)(r.zrq,{items:s,...n})}},67810:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}}),(i=r||(r={})).PRIVACY_REQUEST_REVIEW_APPROVE="privacy_request_review_approve",i.PRIVACY_REQUEST_REVIEW_DENY="privacy_request_review_deny",i.PRIVACY_REQUEST_RECEIPT="privacy_request_receipt",i.PRIVACY_REQUEST_COMPLETE_ACCESS="privacy_request_complete_access",i.PRIVACY_REQUEST_COMPLETE_DELETION="privacy_request_complete_deletion",i.SUBJECT_IDENTITY_VERIFICATION="subject_identity_verification";var i,r,s={[r.PRIVACY_REQUEST_COMPLETE_ACCESS]:"Access request completed",[r.PRIVACY_REQUEST_COMPLETE_DELETION]:"Erasure request completed",[r.PRIVACY_REQUEST_RECEIPT]:"Privacy request received",[r.PRIVACY_REQUEST_REVIEW_APPROVE]:"Privacy request approved",[r.PRIVACY_REQUEST_REVIEW_DENY]:"Privacy request denied",[r.SUBJECT_IDENTITY_VERIFICATION]:"Subject identity verification"}},5058:function(e,t,n){"use strict";n.d(t,{Vw:function(){return s},ms:function(){return i},pS:function(){return r},vm:function(){return a}});let{useGetSummaryMessagingTemplatesQuery:i,usePutMessagingTemplateByIdMutation:r,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"]})})})},18504:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return M}});var i=n(24246),r=n(92222),s=n(59003),a=n(4454),o=n(95099),l=n.n(o),c=n(86677),u=n(27378),d=n(35287),p=n(71795),g=n(87361),m=n(46238),f=n(77830),x=n(58754),h=n(14481),v=n(42904),j=n(7426),y=n(67810),b=e=>{let{isOpen:t,onClose:n,onAccept:r}=e,[s,o]=(0,u.useState)(void 0),l=Object.keys(y.Z).map(e=>({value:e,label:y.Z[e]}));return(0,i.jsxs)(a.u_l,{isOpen:t,onClose:n,size:"2xl",isCentered:!0,children:[(0,i.jsx)(a.ZAr,{}),(0,i.jsxs)(a.hzk,{"data-testid":"add-messaging-template-modal",children:[(0,i.jsx)(a.xBx,{borderBottomWidth:1,fontWeight:"bold",children:"Select message template"}),(0,i.jsxs)(a.fef,{children:[(0,i.jsx)(a.xvT,{color:"gray.700",fontWeight:"medium",fontSize:"sm",marginBottom:3,marginTop:1,children:"Add a new email message by selecting a template below and clicking accept."}),(0,i.jsx)(a.xvT,{color:"gray.700",fontSize:"sm",fontWeight:"medium",marginBottom:2,children:"Choose template:"}),(0,i.jsx)(a.xuv,{"data-testid":"template-type-selector",children:(0,i.jsx)(a.WPr,{options:l,onChange:e=>{o(e)},className:"w-full"})})]}),(0,i.jsx)(a.mzw,{justifyContent:"flex-start",children:(0,i.jsxs)("div",{className:"flex w-full gap-4",children:[(0,i.jsx)(a.wpx,{onClick:n,"data-testid":"cancel-btn",className:"grow",children:"Cancel"}),(0,i.jsx)(a.wpx,{onClick:()=>r(s),type:"primary","data-testid":"confirm-btn",disabled:!s,className:"grow",children:"Next"})]})})]})]})},_=n(5058),E=n(812),C=n(46628),T=n(31883),w=()=>{let e=(0,a.pmc)(),[t]=(0,_.vm)();return{toggleIsTemplateEnabled:(0,u.useCallback)(async n=>{let{isEnabled:i,templateId:r}=n,s=await t({templateId:r,template:{is_enabled:i}});if((0,T.D4)(s)){e((0,C.Vo)((0,E.e$)(s.error)));return}e((0,C.t5)("Messaging template ".concat(i?"enabled":"disabled")))},[t,e])}},R=n(64826);let P=(0,r.Cl)(),S={items:[],total:0,page:1,size:50,pages:1},I=()=>(0,i.jsx)(a.gCW,{mt:6,p:10,spacing:4,borderRadius:"base",maxW:"70%","data-testid":"no-results-notice",alignSelf:"center",margin:"auto",textAlign:"center",children:(0,i.jsxs)(a.gCW,{children:[(0,i.jsx)(a.xvT,{fontSize:"md",fontWeight:"600",children:"It looks like it’s your first time here!"}),(0,i.jsxs)(a.xvT,{fontSize:"sm",children:["Add new email templates with the ",'"Add message +"'," button.",(0,i.jsx)("br",{})]})]})}),k=()=>{let{isLoading:e,data:t}=(0,R.gz)({page:1,size:100}),n=null==t?void 0:t.items.filter(e=>!e.messaging_templates||0===e.messaging_templates.length),r=!!(!e&&(null==n?void 0:n.length)),s="missing-messages-notice-".concat(null==n?void 0:n.map(e=>e.id).join("-")),[o,l]=(0,p._)("notices.dismissedMessageNoticeId",""),c=s===o;return r&&!c?(0,i.jsx)(a.xuv,{mb:6,"data-testid":"notice-properties-without-messaging-templates",children:(0,i.jsx)(g.Z,{title:"Not all properties have messages configured.",text:(0,i.jsxs)(a.xvT,{as:"span",children:["You have properties that do not have messages configured. Users who submit privacy requests for these properties may not receive the necessary emails regarding their requests."," ",(0,i.jsx)(a.xuv,{as:"span",children:(0,i.jsx)(m.b,{label:null==n?void 0:n.map(e=>e.name).join(", ")})})]}),onClose:()=>{l(s)}})}):null},A=()=>{let{data:e}=(0,j.tB)({api_set:!1});return(null==e?void 0:e.notifications.enable_property_specific_messaging)?null:(0,i.jsx)(a.xuv,{mb:6,"data-testid":"notice-properties-without-messaging-templates",children:(0,i.jsx)(g.Z,{title:"Basic messaging enabled",text:(0,i.jsxs)(a.xvT,{as:"span",children:["In basic messaging mode, you can edit the content of your messages from this screen. Please note that in basic messaging, the “Enable” toggle does not apply. Fides also supports property specific messaging mode. Read our"," ",(0,i.jsx)(a.rUS,{href:"https://fid.es/property-specific-messaging",target:"_blank",rel:"nofollow",textDecoration:"underline",children:"docs"})," ","for more information about property specific mode or contact"," ",(0,i.jsx)(a.rUS,{href:"mailto:support@ethyca.com",textDecoration:"underline",children:"Ethyca support"})," ","to enable this mode on your Fides instance."]})})})};var M=()=>{let e=(0,c.useRouter)(),{toggleIsTemplateEnabled:t}=w(),{PAGE_SIZES:n,pageSize:o,setPageSize:p,onPreviousPageClick:g,isPreviousPageDisabled:m,onNextPageClick:j,isNextPageDisabled:E,startRange:C,endRange:T,pageIndex:R,setTotalPages:M}=(0,h.oi)(),{data:N,isLoading:z,isFetching:V}=(0,_.ms)({page:R,size:o}),{items:q,total:O,pages:U}=(0,u.useMemo)(()=>null!=N?N:S,[N]);(0,u.useEffect)(()=>{M(U)},[U,M]);let[W,B]=(0,u.useState)(!1),Y=(0,u.useMemo)(()=>[P.accessor(e=>e.type,{id:"message",cell:e=>(0,i.jsx)(h.G3,{value:y.Z[e.getValue()]}),header:e=>(0,i.jsx)(h.Rr,{value:"Message",...e}),size:150}),P.accessor(e=>(e.properties||[]).map(e=>e.name),{id:"properties",cell:e=>(0,i.jsx)(h.WP,{suffix:"properties",value:e.getValue(),...e}),header:e=>(0,i.jsx)(h.Rr,{value:"Properties",...e}),meta:{showHeaderMenu:!0},size:250}),P.accessor(e=>e.is_enabled,{id:"is_enabled",cell:e=>(0,i.jsx)(a.kCb,{align:"center",justifyContent:"flex-start",w:"full",h:"full",children:(0,i.jsx)(a.rAg,{checked:e.getValue(),onChange:n=>{t({isEnabled:n,templateId:e.row.original.id})}})}),header:e=>(0,i.jsx)(h.Rr,{value:"Enable",...e}),size:200,meta:{disableRowClick:!0}})],[t]),D=(0,u.useMemo)(()=>l()(q,"id"),[q]),Z=(0,s.b7)({getCoreRowModel:(0,r.sC)(),getFilteredRowModel:(0,r.vL)(),getSortedRowModel:(0,r.tj)(),columns:Y,data:D,columnResizeMode:"onChange"});return(0,i.jsxs)(d.Z,{title:"Messaging",children:[(0,i.jsx)(x.Z,{heading:"Messaging"}),(0,i.jsx)(A,{}),(0,i.jsx)(k,{}),(0,i.jsx)(h.Q$,{children:(0,i.jsx)(a.Ugi,{alignItems:"center",spacing:4,marginLeft:"auto",children:(0,i.jsx)(a.wpx,{type:"primary","data-testid":"add-message-btn",onClick:()=>B(!0),children:"Add message +"})})}),z?(0,i.jsx)(h.I4,{rowHeight:36,numRows:15}):(0,i.jsx)(h.ZK,{tableInstance:Z,onRowClick:t=>{e.push({pathname:f.ax,query:{id:t.id}})},emptyTableNotice:(0,i.jsx)(I,{})}),(0,i.jsx)(v.s8,{totalRows:O||0,pageSizes:n,setPageSize:p,onPreviousPageClick:g,isPreviousPageDisabled:m||V,onNextPageClick:j,isNextPageDisabled:E||V,startRange:C,endRange:T}),(0,i.jsx)(b,{isOpen:W,onClose:()=>B(!1),onAccept:t=>{e.push({pathname:f.sM,query:{templateType:t}})}})]})}},31883:function(e,t,n){"use strict";n.d(t,{Bw:function(){return i.Bw},D4:function(){return i.D4}});var i=n(19043)}},function(e){e.O(0,[8033,6060,2858,2866,9278,7553,4481,2888,9774,179],function(){return e(e.s=24081)}),_N_E=e.O()}]);
|
fides/ui-build/static/admin/_next/static/chunks/pages/poc/ant-components-f64dac3392f5ded7.js
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1921],{76985:function(e,l,s){(window.__NEXT_P=window.__NEXT_P||[]).push(["/poc/ant-components",function(){return s(47002)}])},58754:function(e,l,s){"use strict";var i=s(24246),a=s(4454),n=s(70788);l.Z=e=>{let{heading:l,breadcrumbItems:s,isSticky:r=!0,children:t,rightContent:c,style:d,...o}=e;return(0,i.jsxs)("div",{...o,style:r?{position:"sticky",top:"-24px",paddingTop:"24px",paddingBottom:"24px",paddingLeft:"40px",marginLeft:"-40px",paddingRight:"40px",marginRight:"-40px",marginTop:"-24px",left:0,zIndex:20,backgroundColor:"white",...d}:{paddingBottom:"24px",...d},children:[(0,i.jsxs)(a.jqI,{justify:"space-between",children:["string"==typeof l?(0,i.jsx)(a.lQT,{className:s||t?"pb-4":void 0,level:1,"data-testid":"page-heading",children:l}):l,c&&(0,i.jsx)("div",{"data-testid":"page-header-right-content",children:c})]}),!!s&&(0,i.jsx)(n.m,{className:t?"pb-4":void 0,items:s,"data-testid":"page-breadcrumb"}),t]})}},70788:function(e,l,s){"use strict";s.d(l,{m:function(){return d}});var i=s(24246),a=s(4454),n=s(79894),r=s.n(n),t=s(27378);let{Text:c}=a.AntTypography,d=e=>{let{items:l,...s}=e,n=(0,t.useMemo)(()=>null==l?void 0:l.map((e,s)=>{let n=s===l.length-1,t={...e},d=t.onClick&&!t.href;return("string"==typeof t.title&&(t.title=(0,i.jsx)(c,{style:{color:"inherit",maxWidth:n?void 0:400},ellipsis:!n,children:t.title})),d)?t.title=(0,i.jsx)(a.wpx,{type:"text",size:"small",icon:t.icon,onClick:t.onClick,className:"ant-breadcrumb-link -mt-px px-1 text-inherit",children:t.title}):(t.icon&&(t.title=(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("span",{className:"anticon align-text-bottom",children:t.icon}),t.title]})),t.href&&t.title&&(t.title=(0,i.jsx)(r(),{href:t.href,className:"ant-breadcrumb-link",children:t.title}),delete t.href)),t}),[l]);return(0,i.jsx)(a.zrq,{items:n,...s})}},47002:function(e,l,s){"use strict";s.r(l);var i=s(24246),a=s(4454),n=s(46238),r=s(58754);let{Content:t}=a.AntLayout,{Link:c,Paragraph:d,Text:o,Title:h}=a.AntTypography,u=[];for(let e=10;e<36;e+=1)u.push({label:e.toString(36)+e,value:e.toString(36)+e});l.default=()=>(0,i.jsx)(a.AntLayout,{children:(0,i.jsxs)(t,{className:"overflow-auto px-10 py-6",children:[(0,i.jsx)(r.Z,{heading:"Ant Design Proof of Concept"}),(0,i.jsxs)(a.bue,{gutter:16,className:"mt-6",children:[(0,i.jsx)(a.JGx,{span:8,children:(0,i.jsx)(a.V4A,{title:"Button",variant:"borderless",className:"h-full",children:(0,i.jsxs)(a.vyj,{direction:"vertical",children:[(0,i.jsx)(a.wpx,{type:"primary",children:"Primary Button"}),(0,i.jsx)(a.wpx,{children:"Default Button"}),(0,i.jsx)(a.wpx,{type:"dashed",children:"Dashed Button"}),(0,i.jsx)(a.wpx,{type:"text",children:"Text Button"}),(0,i.jsx)(a.wpx,{type:"link",children:"Link Button"}),(0,i.jsx)(a.wpx,{type:"primary",loading:!0,children:"Loading Button"}),(0,i.jsx)(a.wpx,{type:"primary",disabled:!0,children:"Disabled Button"})]})})}),(0,i.jsx)(a.JGx,{span:8,children:(0,i.jsx)(a.V4A,{title:"Switch",variant:"borderless",className:"h-full",children:(0,i.jsxs)(a.vyj,{direction:"vertical",children:[(0,i.jsx)(a.rAg,{defaultChecked:!0}),(0,i.jsx)(a.rAg,{size:"small",defaultChecked:!0}),(0,i.jsx)(a.rAg,{loading:!0,defaultChecked:!0})]})})}),(0,i.jsx)(a.JGx,{span:8,children:(0,i.jsx)(a.V4A,{title:"Select",variant:"borderless",className:"h-full",children:(0,i.jsxs)(a.vyj,{direction:"vertical",children:[(0,i.jsx)(a.WPr,{defaultValue:"lucy",className:"w-32",options:[{value:"jack",label:"Jack"},{value:"lucy",label:"Lucy"},{value:"Yiminghe",label:"yiminghe"},{value:"disabled",label:"Disabled",disabled:!0}]}),(0,i.jsx)(a.WPr,{defaultValue:"lucy",className:"w-32",disabled:!0,options:[{value:"lucy",label:"Lucy"}]}),(0,i.jsx)(a.WPr,{defaultValue:"lucy",className:"w-32",loading:!0,options:[{value:"lucy",label:"Lucy"}]}),(0,i.jsx)(a.WPr,{defaultValue:"lucy",className:"w-32",allowClear:!0,options:[{value:"lucy",label:"Lucy"}]}),(0,i.jsx)(a.WPr,{mode:"multiple",allowClear:!0,className:"w-full",placeholder:"Please select",defaultValue:["a10","c12"],options:u}),(0,i.jsx)(a.WPr,{mode:"multiple",disabled:!0,className:"w-full",placeholder:"Please select",defaultValue:["a10","c12"],options:u})]})})})]}),(0,i.jsx)("br",{}),(0,i.jsxs)(a.bue,{gutter:16,children:[(0,i.jsx)(a.JGx,{span:8,children:(0,i.jsx)(a.V4A,{title:"Checkbox",variant:"borderless",className:"h-full",children:(0,i.jsxs)(a.vyj,{direction:"vertical",children:[(0,i.jsx)(a.E_O,{children:"Checkbox"}),(0,i.jsx)(a.E_O,{defaultChecked:!0,children:"Checkbox"}),(0,i.jsx)(a.E_O,{disabled:!0,children:"Disabled"}),(0,i.jsx)(a.E_O,{indeterminate:!0,children:"Indeterminate"}),(0,i.jsx)(a.E_O.Group,{options:[{label:"Apple",value:"Apple"},{label:"Pear",value:"Pear"},{label:"Orange",value:"Orange",disabled:!0}],defaultValue:["Apple"]})]})})}),(0,i.jsx)(a.JGx,{span:8,children:(0,i.jsx)(a.V4A,{title:"Radio",variant:"borderless",className:"h-full",children:(0,i.jsxs)(a.vyj,{direction:"vertical",children:[(0,i.jsx)(a.y02,{children:"Radio"}),(0,i.jsx)(a.y02,{defaultChecked:!0,children:"Radio"}),(0,i.jsx)(a.y02,{disabled:!0,children:"Disabled"}),(0,i.jsx)(a.y02.Group,{options:[{label:"Apple",value:"Apple"},{label:"Pear",value:"Pear"},{label:"Orange",value:"Orange",disabled:!0}],defaultValue:"Apple"}),(0,i.jsx)(a.y02.Group,{options:[{label:"Apple",value:"Apple"},{label:"Pear",value:"Pear"},{label:"Orange",value:"Orange"}],defaultValue:"Apple",optionType:"button"}),(0,i.jsx)(a.y02.Group,{options:[{label:"Apple",value:"Apple"},{label:"Pear",value:"Pear"},{label:"Orange",value:"Orange"}],defaultValue:"Apple",optionType:"button",buttonStyle:"solid"})]})})}),(0,i.jsx)(a.JGx,{span:8,children:(0,i.jsx)(a.V4A,{title:"Input",variant:"borderless",className:"h-full",children:(0,i.jsxs)(a.vyj,{direction:"vertical",size:"middle",children:[(0,i.jsx)(a.vyj.Compact,{children:(0,i.jsx)(a.uFc,{defaultValue:"26888888"})}),(0,i.jsxs)(a.vyj.Compact,{children:[(0,i.jsx)(a.uFc,{className:"w-1/5",defaultValue:"0571"}),(0,i.jsx)(a.uFc,{className:"w-4/5",defaultValue:"26888888"})]}),(0,i.jsx)(a.vyj.Compact,{children:(0,i.jsx)(a.uFc.Search,{addonBefore:"https://",placeholder:"input search text",allowClear:!0})}),(0,i.jsxs)(a.vyj.Compact,{className:"w-full",children:[(0,i.jsx)(a.uFc,{defaultValue:"Combine input and button"}),(0,i.jsx)(a.wpx,{type:"primary",children:"Submit"})]}),(0,i.jsxs)(a.vyj.Compact,{children:[(0,i.jsx)(a.WPr,{defaultValue:"Zhejiang",options:u}),(0,i.jsx)(a.uFc,{defaultValue:"Xihu District, Hangzhou"})]})]})})})]}),(0,i.jsx)("br",{}),(0,i.jsxs)(a.bue,{gutter:16,children:[(0,i.jsx)(a.JGx,{span:8,children:(0,i.jsx)(a.V4A,{title:"Tooltip",variant:"borderless",className:"h-full",children:(0,i.jsxs)(a.vyj,{direction:"vertical",children:[(0,i.jsx)(a.esZ,{title:"I'm a tooltip",children:(0,i.jsx)("span",{children:"Hover this text"})}),(0,i.jsx)(n.b,{label:"Tooltip will show on mouse enter."})]})})}),(0,i.jsx)(a.JGx,{span:8,children:(0,i.jsx)(a.V4A,{title:"Alert",variant:"borderless",className:"h-full",children:(0,i.jsxs)(a.vyj,{direction:"vertical",children:[(0,i.jsx)(a.DUx,{message:"Success Tips",type:"success",showIcon:!0}),(0,i.jsx)(a.DUx,{message:"Informational Notes",type:"info",showIcon:!0}),(0,i.jsx)(a.DUx,{message:"Warning",type:"warning",showIcon:!0,closable:!0}),(0,i.jsx)(a.DUx,{message:"Error",type:"error",showIcon:!0})]})})}),(0,i.jsx)(a.JGx,{span:8,children:(0,i.jsx)(a.V4A,{title:"Tag",variant:"borderless",className:"h-full",children:(0,i.jsxs)(a.jqI,{wrap:!0,gap:"small",children:[(0,i.jsx)(a.j8w,{color:"default",children:"default"}),(0,i.jsx)(a.j8w,{color:"corinth",children:"corinth"}),(0,i.jsx)(a.j8w,{color:"minos",children:"minos"}),(0,i.jsx)(a.j8w,{color:"terracotta",children:"terracotta"}),(0,i.jsx)(a.j8w,{color:"olive",children:"olive"}),(0,i.jsx)(a.j8w,{color:"marble",children:"marble"}),(0,i.jsx)(a.j8w,{color:"sandstone",children:"sandstone"}),(0,i.jsx)(a.j8w,{color:"nectar",children:"nectar"}),(0,i.jsx)(a.j8w,{color:"error",children:"error"}),(0,i.jsx)(a.j8w,{color:"warning",children:"warning"}),(0,i.jsx)(a.j8w,{color:"caution",children:"caution"}),(0,i.jsx)(a.j8w,{color:"success",children:"success"}),(0,i.jsx)(a.j8w,{color:"info",children:"info"}),(0,i.jsx)(a.j8w,{color:"alert",children:"alert"}),(0,i.jsx)(a.j8w,{color:"white",children:"white"}),(0,i.jsx)(a.j8w,{closable:!0,onClose:()=>console.log("closed"),children:"Closable Tag"}),(0,i.jsx)(a.j8w,{onClick:()=>console.log("clicked"),addable:!0}),(0,i.jsx)(a.j8w,{onClick:()=>console.log("clicked"),addable:!0,children:"Add More"}),(0,i.jsxs)(a.j8w,{hasSparkle:!0,onClick:()=>console.log("clicked"),children:["Data Use",(0,i.jsx)(a.PJP.I8b,{})]}),(0,i.jsx)(a.j8w,{hasSparkle:!0,onClick:()=>console.log("clicked"),closable:!0,onClose:()=>console.log("closed"),children:"Data Category"})]})})})]}),(0,i.jsx)("br",{}),(0,i.jsxs)(a.bue,{gutter:16,children:[(0,i.jsx)(a.JGx,{span:8,children:(0,i.jsx)(a.V4A,{title:"Typography Headings",variant:"borderless",className:"h-full",children:(0,i.jsxs)(a.vyj,{direction:"vertical",children:[(0,i.jsx)(h,{level:1,children:"H1 default"}),(0,i.jsx)(h,{level:1,headingSize:2,children:"H1 sized as H2"}),(0,i.jsx)(h,{level:1,headingSize:3,children:"H1 sized as H3"}),(0,i.jsx)(a.htM,{style:{margin:0}}),(0,i.jsx)(h,{level:2,children:"H2 default"}),(0,i.jsx)(h,{level:2,headingSize:1,children:"H2 sized as H1"}),(0,i.jsx)(h,{level:2,headingSize:3,children:"H2 sized as H3"}),(0,i.jsx)(a.htM,{style:{margin:0}}),(0,i.jsx)(h,{level:3,children:"H3 default"}),(0,i.jsx)(h,{level:3,headingSize:1,children:"H3 sized as H1"}),(0,i.jsx)(h,{level:3,headingSize:2,children:"H3 sized as H2"})]})})}),(0,i.jsx)(a.JGx,{span:8,children:(0,i.jsx)(a.V4A,{title:"Typography Paragraphs",variant:"borderless",className:"h-full",children:(0,i.jsxs)(a.AntTypography,{children:[(0,i.jsx)(d,{children:"This paragraph has a bottom margin. Imperdiet ex curae laoreet turpis adipiscing pulvinar erat conubia rhoncus, faucibus dictum porta integer tincidunt iaculis pharetra. Dis praesent egestas curae tortor primis volutpat metus ridiculus sit rutrum vitae ac aenean, nisi dolor a per molestie etiam ad tristique magnis fames laoreet."}),(0,i.jsx)(d,{children:"This paragraph has no bottom margin. Imperdiet ex curae laoreet turpis adipiscing pulvinar erat conubia rhoncus, faucibus dictum porta integer tincidunt iaculis pharetra. Dis praesent egestas curae tortor primis volutpat metus ridiculus sit rutrum vitae ac aenean, nisi dolor a per molestie etiam ad tristique magnis fames laoreet."})]})})}),(0,i.jsx)(a.JGx,{span:8,children:(0,i.jsx)(a.V4A,{title:"Typography Text & Link",variant:"borderless",className:"h-full",children:(0,i.jsxs)(a.vyj,{direction:"vertical",children:[(0,i.jsx)(o,{children:"Ant Design (default)"}),(0,i.jsx)(o,{size:"sm",children:"Ant Design (small)"}),(0,i.jsx)(o,{size:"lg",children:"Ant Design (large)"}),(0,i.jsx)(o,{type:"secondary",children:"Ant Design (secondary)"}),(0,i.jsx)(o,{type:"success",children:"Ant Design (success)"}),(0,i.jsx)(o,{type:"warning",children:"Ant Design (warning)"}),(0,i.jsx)(o,{type:"danger",children:"Ant Design (danger)"}),(0,i.jsx)(o,{disabled:!0,children:"Ant Design (disabled)"}),(0,i.jsx)(o,{mark:!0,children:"Ant Design (mark)"}),(0,i.jsx)(o,{code:!0,children:"Ant Design (code)"}),(0,i.jsx)(o,{keyboard:!0,children:"Ant Design (keyboard)"}),(0,i.jsx)(o,{underline:!0,children:"Ant Design (underline)"}),(0,i.jsx)(o,{delete:!0,children:"Ant Design (delete)"}),(0,i.jsx)(o,{strong:!0,children:"Ant Design (strong)"}),(0,i.jsx)(o,{italic:!0,children:"Ant Design (italic)"}),(0,i.jsx)(c,{href:"https://ant.design",target:"_blank",children:"Ant Design (Link)"})]})})})]})]})})}},function(e){e.O(0,[2888,9774,179],function(){return e(e.s=76985)}),_N_E=e.O()}]);
|
@@ -1 +0,0 @@
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5970],{6920:function(e,l,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/poc/form-experiments/AntForm",function(){return n(33396)}])},95813:function(e,l,n){"use strict";n.d(l,{S:function(){return t}});let t={input:"default text",radio:"2",checkbox:!0,switch:!0,select:"2",multiselect:["2"],tags:["1"],date:"",number:12}},33396:function(e,l,n){"use strict";n.r(l),n.d(l,{AntFormPOC:function(){return u}});var t=n(24246),a=n(4454),s=n(3124),r=n.n(s),c=n(27378),i=n(95813);let{Title:o}=a.AntTypography,u=()=>{let[e]=a.PPS.useForm(),[l,n]=(0,c.useState)(i.S);return(0,t.jsxs)(a.bue,{children:[(0,t.jsxs)(a.JGx,{span:12,children:[(0,t.jsx)(o,{level:2,children:"Pure Ant"}),(0,t.jsxs)("div",{className:"mb-4",children:[(0,t.jsx)(a.j8w,{color:"green",children:"funcitonal"}),(0,t.jsx)(a.j8w,{color:"green",children:"low effort"})]}),(0,t.jsxs)(a.PPS,{initialValues:{...i.S},form:e,layout:"vertical",onValuesChange:(e,l)=>{n(l)},children:[(0,t.jsx)(a.PPS.Item,{label:"Input",name:"input",children:(0,t.jsx)(a.uFc,{})}),(0,t.jsx)(a.PPS.Item,{name:"radio",children:(0,t.jsxs)(a.y02.Group,{name:"radio",children:[(0,t.jsx)(a.y02,{value:"1",children:"Radio 1"}),(0,t.jsx)(a.y02,{value:"2",children:"Radio 2"})]})}),(0,t.jsx)(a.PPS.Item,{name:"checkbox",valuePropName:"checked",children:(0,t.jsx)(a.E_O,{children:"Checkbox"})}),(0,t.jsx)(a.PPS.Item,{label:"Switch",name:"switch",valuePropName:"checked",children:(0,t.jsx)(a.rAg,{})}),(0,t.jsx)(a.PPS.Item,{label:"Select",name:"select",children:(0,t.jsx)(a.WPr,{allowClear:!0,className:"w-full",options:[{value:"1",label:"Option 1"},{value:"2",label:"Option 2"}]})}),(0,t.jsx)(a.PPS.Item,{label:"Multiselect",name:"multiselect",children:(0,t.jsx)(a.WPr,{mode:"multiple",allowClear:!0,className:"w-full",options:[{value:"1",label:"Option 1"},{value:"2",label:"Option 2"}]})}),(0,t.jsx)(a.PPS.Item,{label:"Tags",name:"tags",children:(0,t.jsx)(a.WPr,{mode:"tags",allowClear:!0,className:"w-full",options:[{value:"1",label:"Option 1"},{value:"2",label:"Option 2"}]})}),(0,t.jsx)(a.PPS.Item,{label:"Date",name:"date",children:(0,t.jsx)(a.cv2,{})}),(0,t.jsx)(a.PPS.Item,{label:"Number",name:"number",children:(0,t.jsx)(a.W7D,{})})]})]}),(0,t.jsxs)(a.JGx,{span:8,offset:4,children:[(0,t.jsx)(o,{level:4,children:"Controlled Values"}),(0,t.jsx)(a.V4A,{style:{backgroundColor:r().FIDESUI_MINOS,color:r().FIDESUI_CORINTH},children:(0,t.jsx)("pre",{children:(0,t.jsxs)("code",{children:["{\n",Object.keys(l).map(e=>" ".concat(e.toString(),": ").concat(l[e],"\n")),"}"]})})})]})]})};l.default=u}},function(e){e.O(0,[2888,9774,179],function(){return e(e.s=6920)}),_N_E=e.O()}]);
|
@@ -1 +0,0 @@
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[840],{71850:function(e,l,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/poc/form-experiments/FormikAntFormItem",function(){return t(35716)}])},95813:function(e,l,t){"use strict";t.d(l,{S:function(){return a}});let a={input:"default text",radio:"2",checkbox:!0,switch:!0,select:"2",multiselect:["2"],tags:["1"],date:"",number:12}},35716:function(e,l,t){"use strict";t.r(l),t.d(l,{FormikAntFormItemPOC:function(){return u}});var a=t(24246),n=t(4454),c=t(3124),o=t.n(c),r=t(34090),s=t(95813);let{Title:i}=n.AntTypography,u=()=>(0,a.jsx)(r.J9,{initialValues:{...s.S},onSubmit:console.log,children:e=>{let{values:l,setFieldValue:t}=e;return(0,a.jsxs)(n.bue,{children:[(0,a.jsxs)(n.JGx,{span:12,children:[(0,a.jsx)(i,{level:2,children:"<Formik> + Controlled + Ant's <Form.Item>"}),(0,a.jsxs)("div",{className:"mb-4",children:[(0,a.jsx)(n.j8w,{color:"green",children:"funcitonal"}),(0,a.jsx)(n.j8w,{color:"orange",children:"mid effort"})]}),(0,a.jsx)(r.l0,{children:(0,a.jsxs)(n.jqI,{vertical:!0,children:[(0,a.jsx)(n.PPS.Item,{label:"Input",name:"input",layout:"vertical",children:(0,a.jsx)(n.uFc,{onChange:e=>t("input",e.target.value),defaultValue:l.input})}),(0,a.jsxs)(n.y02.Group,{name:"radio",onChange:e=>t("radio",e.target.value),defaultValue:l.radio,children:[(0,a.jsx)(n.y02,{value:"1",children:"Radio 1"}),(0,a.jsx)(n.y02,{value:"2",children:"Radio 2"})]}),(0,a.jsx)(n.PPS.Item,{name:"checkbox",children:(0,a.jsx)(n.E_O,{onChange:e=>t("checkbox",e.target.checked),defaultChecked:l.checkbox,children:"Checkbox"})}),(0,a.jsx)(n.PPS.Item,{label:"Switch",name:"switch",layout:"vertical",children:(0,a.jsx)(n.rAg,{onChange:e=>t("switch",e),defaultChecked:l.switch})}),(0,a.jsx)(n.PPS.Item,{label:"Select",name:"select",layout:"vertical",children:(0,a.jsx)(n.WPr,{allowClear:!0,className:"w-full",defaultValue:l.select,onChange:e=>t("select",e),options:[{value:"1",label:"Option 1"},{value:"2",label:"Option 2"}]})}),(0,a.jsx)(n.PPS.Item,{label:"Multiselect",name:"multiselect",layout:"vertical",children:(0,a.jsx)(n.WPr,{mode:"multiple",allowClear:!0,className:"w-full",defaultValue:l.multiselect,onChange:e=>t("multiselect",e),options:[{value:"1",label:"Option 1"},{value:"2",label:"Option 2"}]})}),(0,a.jsx)(n.PPS.Item,{label:"Tags",name:"tags",layout:"vertical",children:(0,a.jsx)(n.WPr,{mode:"tags",allowClear:!0,className:"w-full",defaultValue:l.tags,onChange:e=>t("tags",e),options:[{value:"1",label:"Option 1"},{value:"2",label:"Option 2"}]})}),(0,a.jsx)(n.PPS.Item,{label:"Date",name:"date",layout:"vertical",children:(0,a.jsx)(n.cv2,{onChange:e=>t("date",e.toISOString())})}),(0,a.jsx)(n.PPS.Item,{label:"Number",name:"number",layout:"vertical",children:(0,a.jsx)(n.W7D,{defaultValue:l.number,onChange:e=>t("number",e)})})]})})]}),(0,a.jsxs)(n.JGx,{span:8,offset:4,children:[(0,a.jsx)(i,{level:4,children:"Controlled Values"}),(0,a.jsx)(n.V4A,{style:{backgroundColor:o().FIDESUI_MINOS,color:o().FIDESUI_CORINTH},children:(0,a.jsx)("pre",{children:(0,a.jsxs)("code",{children:["{\n",Object.keys(l).map(e=>" ".concat(e,": ").concat(l[e],"\n")),"}"]})})})]})]})}});l.default=u}},function(e){e.O(0,[2888,9774,179],function(){return e(e.s=71850)}),_N_E=e.O()}]);
|
@@ -1 +0,0 @@
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[611],{84093:function(e,l,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/poc/form-experiments/FormikControlled",function(){return n(15957)}])},95813:function(e,l,n){"use strict";n.d(l,{S:function(){return i}});let i={input:"default text",radio:"2",checkbox:!0,switch:!0,select:"2",multiselect:["2"],tags:["1"],date:"",number:12}},15957:function(e,l,n){"use strict";n.r(l),n.d(l,{FormikControlledPOC:function(){return o}});var i=n(24246),s=n(4454),t=n(3124),r=n.n(t),c=n(34090),d=n(95813);let{Title:a}=s.AntTypography,o=()=>(0,i.jsx)(c.J9,{initialValues:{...d.S},onSubmit:console.log,children:e=>{let{values:l,setFieldValue:n}=e;return(0,i.jsxs)(s.bue,{children:[(0,i.jsxs)(s.JGx,{span:12,children:[(0,i.jsx)(a,{level:2,children:"<Formik> + Controlled"}),(0,i.jsxs)("div",{className:"mb-4",children:[(0,i.jsx)(s.j8w,{color:"green",children:"funcitonal"}),(0,i.jsx)(s.j8w,{color:"red",children:"high effort"})]}),(0,i.jsx)(c.l0,{children:(0,i.jsxs)(s.jqI,{vertical:!0,gap:16,children:[(0,i.jsxs)("div",{children:[(0,i.jsx)("label",{htmlFor:"input",children:"Input"}),(0,i.jsx)("div",{children:(0,i.jsx)(s.uFc,{id:"input",onChange:e=>n("input",e.target.value),defaultValue:l.input})})]}),(0,i.jsx)("div",{children:(0,i.jsxs)(s.y02.Group,{name:"radio",onChange:e=>n("radio",e.target.value),defaultValue:l.radio,children:[(0,i.jsx)(s.y02,{value:"1",children:"Radio 1"}),(0,i.jsx)(s.y02,{value:"2",children:"Radio 2"})]})}),(0,i.jsx)("div",{children:(0,i.jsx)(s.E_O,{onChange:e=>n("checkbox",e.target.checked),defaultChecked:l.checkbox,children:"Checkbox"})}),(0,i.jsxs)("div",{children:[(0,i.jsx)("label",{htmlFor:"switch",children:"Switch"}),(0,i.jsx)("div",{children:(0,i.jsx)(s.rAg,{id:"switch",onChange:e=>n("switch",e),defaultChecked:l.switch})})]}),(0,i.jsxs)("div",{children:[(0,i.jsx)("label",{htmlFor:"select",children:"Select"}),(0,i.jsx)("div",{children:(0,i.jsx)(s.WPr,{allowClear:!0,id:"select",defaultValue:l.select,onChange:e=>n("select",e),className:"w-full",options:[{value:"1",label:"Option 1"},{value:"2",label:"Option 2"}]})})]}),(0,i.jsxs)("div",{children:[(0,i.jsx)("label",{htmlFor:"multiselect",children:"Multiselect"}),(0,i.jsx)("div",{children:(0,i.jsx)(s.WPr,{mode:"multiple",allowClear:!0,id:"multiselect",defaultValue:l.multiselect,onChange:e=>n("multiselect",e),className:"w-full",options:[{value:"1",label:"Option 1"},{value:"2",label:"Option 2"}]})})]}),(0,i.jsxs)("div",{children:[(0,i.jsx)("label",{htmlFor:"tags",children:"Tags"}),(0,i.jsx)("div",{children:(0,i.jsx)(s.WPr,{mode:"tags",allowClear:!0,id:"tags",defaultValue:l.tags,onChange:e=>n("tags",e),className:"w-full",options:[{value:"1",label:"Option 1"},{value:"2",label:"Option 2"}]})})]}),(0,i.jsxs)("div",{children:[(0,i.jsx)("label",{htmlFor:"date",children:"Date"}),(0,i.jsx)("div",{children:(0,i.jsx)(s.cv2,{id:"date",onChange:e=>n("date",e.toISOString())})})]}),(0,i.jsxs)("div",{children:[(0,i.jsx)("label",{htmlFor:"number",children:"Number"}),(0,i.jsx)("div",{children:(0,i.jsx)(s.W7D,{id:"number",defaultValue:l.number,onChange:e=>n("number",e)})})]})]})})]}),(0,i.jsxs)(s.JGx,{span:8,offset:4,children:[(0,i.jsx)(a,{level:4,children:"Controlled Values"}),(0,i.jsx)(s.V4A,{style:{backgroundColor:r().FIDESUI_MINOS,color:r().FIDESUI_CORINTH},children:(0,i.jsx)("pre",{children:(0,i.jsxs)("code",{children:["{\n",Object.keys(l).map(e=>" ".concat(e,": ").concat(l[e],"\n")),"}"]})})})]})]})}});l.default=o}},function(e){e.O(0,[2888,9774,179],function(){return e(e.s=84093)}),_N_E=e.O()}]);
|
@@ -1 +0,0 @@
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4266],{93102:function(e,l,i){(window.__NEXT_P=window.__NEXT_P||[]).push(["/poc/form-experiments/FormikField",function(){return i(82252)}])},95813:function(e,l,i){"use strict";i.d(l,{S:function(){return n}});let n={input:"default text",radio:"2",checkbox:!0,switch:!0,select:"2",multiselect:["2"],tags:["1"],date:"",number:12}},82252:function(e,l,i){"use strict";i.r(l),i.d(l,{FormikFieldPOC:function(){return h}});var n=i(24246),s=i(4454),r=i(3124),t=i.n(r),o=i(34090),d=i(95813);let{Text:a,Title:c}=s.AntTypography,h=()=>(0,n.jsx)(o.J9,{initialValues:{...d.S},onSubmit:console.log,children:e=>{let{values:l}=e;return(0,n.jsxs)(s.bue,{children:[(0,n.jsxs)(s.JGx,{span:12,children:[(0,n.jsx)(c,{level:2,children:"<Formik> + <Field>"}),(0,n.jsxs)("div",{className:"mb-4",children:[(0,n.jsx)(s.j8w,{color:"red",children:"non functional"}),(0,n.jsx)(s.j8w,{color:"red",children:"high effort"})]}),(0,n.jsx)(o.l0,{children:(0,n.jsxs)(s.jqI,{vertical:!0,gap:16,children:[(0,n.jsxs)("div",{children:[(0,n.jsx)("label",{htmlFor:"input",children:"Input"}),(0,n.jsx)("div",{children:(0,n.jsx)(o.gN,{as:s.uFc,id:"input",name:"input",type:"text"})})]}),(0,n.jsx)("div",{children:(0,n.jsxs)(o.gN,{as:s.y02.Group,name:"radio",children:[(0,n.jsx)(s.y02,{value:"1",children:"Radio 1"}),(0,n.jsx)(s.y02,{value:"2",children:"Radio 2"})]})}),(0,n.jsxs)("div",{children:[(0,n.jsx)(o.gN,{as:s.E_O,defaultChecked:l.checkbox,name:"checkbox",children:"Checkbox"}),(0,n.jsx)(a,{type:"warning",children:"Requires additional logic to handle default state"})]}),(0,n.jsxs)("div",{children:[(0,n.jsx)("label",{htmlFor:"switch",children:"Switch"}),(0,n.jsx)("div",{children:(0,n.jsx)(o.gN,{as:s.rAg,id:"switch",name:"switch"})}),(0,n.jsxs)(a,{type:"danger",children:["Ant Switch's onChange is too different from Formik, requires to be fully controlled. This will not work with"," ","<Field>"," alone"]})]}),(0,n.jsxs)("div",{children:[(0,n.jsx)("label",{htmlFor:"select",children:"Select"}),(0,n.jsx)("div",{children:(0,n.jsx)(o.gN,{as:s.WPr,allowClear:!0,id:"select",name:"select",className:"w-full",status:"error",options:[{value:"1",label:"Option 1"},{value:"2",label:"Option 2"}]})}),(0,n.jsxs)(a,{type:"danger",children:["Ant Select's onChange is too different from Formik, requires to be fully controlled. This will not work with"," ","<Field>"," alone"]})]}),(0,n.jsxs)("div",{children:[(0,n.jsx)("label",{htmlFor:"multiselect",children:"Multiselect"}),(0,n.jsx)("div",{children:(0,n.jsx)(o.gN,{as:s.WPr,mode:"multiple",allowClear:!0,id:"multiselect",name:"multiselect",className:"w-full",status:"error",options:[{value:"1",label:"Option 1"},{value:"2",label:"Option 2"}]})}),(0,n.jsxs)(a,{type:"danger",children:["Ant Select's onChange is too different from Formik, requires to be fully controlled. This will not work with"," ","<Field>"," alone"]})]}),(0,n.jsxs)("div",{children:[(0,n.jsx)("label",{htmlFor:"multiselect",children:"Tags"}),(0,n.jsx)("div",{children:(0,n.jsx)(o.gN,{as:s.WPr,mode:"tags",allowClear:!0,id:"tags",name:"tags",className:"w-full",status:"error",options:[{value:"1",label:"Option 1"},{value:"2",label:"Option 2"}]})}),(0,n.jsxs)(a,{type:"danger",children:["Ant Select's onChange is too different from Formik, requires to be fully controlled. This will not work with"," ","<Field>"," alone"]})]}),(0,n.jsxs)("div",{children:[(0,n.jsx)("label",{htmlFor:"date",children:"Date"}),(0,n.jsx)("div",{children:(0,n.jsx)(o.gN,{as:s.cv2,id:"date",name:"date",status:"error"})}),(0,n.jsxs)(a,{type:"danger",children:["Ant DatePicker's onChange is different from Formik, requires to be fully controlled. This will not work with"," ","<Field>"," alone"]})]}),(0,n.jsxs)("div",{children:[(0,n.jsx)("label",{htmlFor:"number",children:"Number"}),(0,n.jsx)("div",{children:(0,n.jsx)(o.gN,{as:s.W7D,id:"number",name:"number",status:"error"})}),(0,n.jsxs)(a,{type:"danger",children:["Ant InputNumber's onChange is different from Formik, requires to be fully controlled. This will not work with"," ","<Field>"," alone"]})]})]})})]}),(0,n.jsxs)(s.JGx,{span:8,offset:4,children:[(0,n.jsx)(c,{level:4,children:"Controlled Values"}),(0,n.jsx)(s.V4A,{style:{backgroundColor:t().FIDESUI_MINOS,color:t().FIDESUI_CORINTH},children:(0,n.jsx)("pre",{children:(0,n.jsxs)("code",{children:["{\n",Object.keys(l).map(e=>" ".concat(e,": ").concat(l[e],"\n")),"}"]})})})]})]})}});l.default=h}},function(e){e.O(0,[2888,9774,179],function(){return e(e.s=93102)}),_N_E=e.O()}]);
|
@@ -1 +0,0 @@
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3316],{36136:function(e,l,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/poc/forms",function(){return n(71252)}])},33396:function(e,l,n){"use strict";n.r(l),n.d(l,{AntFormPOC:function(){return d}});var i=n(24246),s=n(4454),r=n(3124),t=n.n(r),a=n(27378),o=n(95813);let{Title:c}=s.AntTypography,d=()=>{let[e]=s.PPS.useForm(),[l,n]=(0,a.useState)(o.S);return(0,i.jsxs)(s.bue,{children:[(0,i.jsxs)(s.JGx,{span:12,children:[(0,i.jsx)(c,{level:2,children:"Pure Ant"}),(0,i.jsxs)("div",{className:"mb-4",children:[(0,i.jsx)(s.j8w,{color:"green",children:"funcitonal"}),(0,i.jsx)(s.j8w,{color:"green",children:"low effort"})]}),(0,i.jsxs)(s.PPS,{initialValues:{...o.S},form:e,layout:"vertical",onValuesChange:(e,l)=>{n(l)},children:[(0,i.jsx)(s.PPS.Item,{label:"Input",name:"input",children:(0,i.jsx)(s.uFc,{})}),(0,i.jsx)(s.PPS.Item,{name:"radio",children:(0,i.jsxs)(s.y02.Group,{name:"radio",children:[(0,i.jsx)(s.y02,{value:"1",children:"Radio 1"}),(0,i.jsx)(s.y02,{value:"2",children:"Radio 2"})]})}),(0,i.jsx)(s.PPS.Item,{name:"checkbox",valuePropName:"checked",children:(0,i.jsx)(s.E_O,{children:"Checkbox"})}),(0,i.jsx)(s.PPS.Item,{label:"Switch",name:"switch",valuePropName:"checked",children:(0,i.jsx)(s.rAg,{})}),(0,i.jsx)(s.PPS.Item,{label:"Select",name:"select",children:(0,i.jsx)(s.WPr,{allowClear:!0,className:"w-full",options:[{value:"1",label:"Option 1"},{value:"2",label:"Option 2"}]})}),(0,i.jsx)(s.PPS.Item,{label:"Multiselect",name:"multiselect",children:(0,i.jsx)(s.WPr,{mode:"multiple",allowClear:!0,className:"w-full",options:[{value:"1",label:"Option 1"},{value:"2",label:"Option 2"}]})}),(0,i.jsx)(s.PPS.Item,{label:"Tags",name:"tags",children:(0,i.jsx)(s.WPr,{mode:"tags",allowClear:!0,className:"w-full",options:[{value:"1",label:"Option 1"},{value:"2",label:"Option 2"}]})}),(0,i.jsx)(s.PPS.Item,{label:"Date",name:"date",children:(0,i.jsx)(s.cv2,{})}),(0,i.jsx)(s.PPS.Item,{label:"Number",name:"number",children:(0,i.jsx)(s.W7D,{})})]})]}),(0,i.jsxs)(s.JGx,{span:8,offset:4,children:[(0,i.jsx)(c,{level:4,children:"Controlled Values"}),(0,i.jsx)(s.V4A,{style:{backgroundColor:t().FIDESUI_MINOS,color:t().FIDESUI_CORINTH},children:(0,i.jsx)("pre",{children:(0,i.jsxs)("code",{children:["{\n",Object.keys(l).map(e=>" ".concat(e.toString(),": ").concat(l[e],"\n")),"}"]})})})]})]})};l.default=d},35716:function(e,l,n){"use strict";n.r(l),n.d(l,{FormikAntFormItemPOC:function(){return d}});var i=n(24246),s=n(4454),r=n(3124),t=n.n(r),a=n(34090),o=n(95813);let{Title:c}=s.AntTypography,d=()=>(0,i.jsx)(a.J9,{initialValues:{...o.S},onSubmit:console.log,children:e=>{let{values:l,setFieldValue:n}=e;return(0,i.jsxs)(s.bue,{children:[(0,i.jsxs)(s.JGx,{span:12,children:[(0,i.jsx)(c,{level:2,children:"<Formik> + Controlled + Ant's <Form.Item>"}),(0,i.jsxs)("div",{className:"mb-4",children:[(0,i.jsx)(s.j8w,{color:"green",children:"funcitonal"}),(0,i.jsx)(s.j8w,{color:"orange",children:"mid effort"})]}),(0,i.jsx)(a.l0,{children:(0,i.jsxs)(s.jqI,{vertical:!0,children:[(0,i.jsx)(s.PPS.Item,{label:"Input",name:"input",layout:"vertical",children:(0,i.jsx)(s.uFc,{onChange:e=>n("input",e.target.value),defaultValue:l.input})}),(0,i.jsxs)(s.y02.Group,{name:"radio",onChange:e=>n("radio",e.target.value),defaultValue:l.radio,children:[(0,i.jsx)(s.y02,{value:"1",children:"Radio 1"}),(0,i.jsx)(s.y02,{value:"2",children:"Radio 2"})]}),(0,i.jsx)(s.PPS.Item,{name:"checkbox",children:(0,i.jsx)(s.E_O,{onChange:e=>n("checkbox",e.target.checked),defaultChecked:l.checkbox,children:"Checkbox"})}),(0,i.jsx)(s.PPS.Item,{label:"Switch",name:"switch",layout:"vertical",children:(0,i.jsx)(s.rAg,{onChange:e=>n("switch",e),defaultChecked:l.switch})}),(0,i.jsx)(s.PPS.Item,{label:"Select",name:"select",layout:"vertical",children:(0,i.jsx)(s.WPr,{allowClear:!0,className:"w-full",defaultValue:l.select,onChange:e=>n("select",e),options:[{value:"1",label:"Option 1"},{value:"2",label:"Option 2"}]})}),(0,i.jsx)(s.PPS.Item,{label:"Multiselect",name:"multiselect",layout:"vertical",children:(0,i.jsx)(s.WPr,{mode:"multiple",allowClear:!0,className:"w-full",defaultValue:l.multiselect,onChange:e=>n("multiselect",e),options:[{value:"1",label:"Option 1"},{value:"2",label:"Option 2"}]})}),(0,i.jsx)(s.PPS.Item,{label:"Tags",name:"tags",layout:"vertical",children:(0,i.jsx)(s.WPr,{mode:"tags",allowClear:!0,className:"w-full",defaultValue:l.tags,onChange:e=>n("tags",e),options:[{value:"1",label:"Option 1"},{value:"2",label:"Option 2"}]})}),(0,i.jsx)(s.PPS.Item,{label:"Date",name:"date",layout:"vertical",children:(0,i.jsx)(s.cv2,{onChange:e=>n("date",e.toISOString())})}),(0,i.jsx)(s.PPS.Item,{label:"Number",name:"number",layout:"vertical",children:(0,i.jsx)(s.W7D,{defaultValue:l.number,onChange:e=>n("number",e)})})]})})]}),(0,i.jsxs)(s.JGx,{span:8,offset:4,children:[(0,i.jsx)(c,{level:4,children:"Controlled Values"}),(0,i.jsx)(s.V4A,{style:{backgroundColor:t().FIDESUI_MINOS,color:t().FIDESUI_CORINTH},children:(0,i.jsx)("pre",{children:(0,i.jsxs)("code",{children:["{\n",Object.keys(l).map(e=>" ".concat(e,": ").concat(l[e],"\n")),"}"]})})})]})]})}});l.default=d},15957:function(e,l,n){"use strict";n.r(l),n.d(l,{FormikControlledPOC:function(){return d}});var i=n(24246),s=n(4454),r=n(3124),t=n.n(r),a=n(34090),o=n(95813);let{Title:c}=s.AntTypography,d=()=>(0,i.jsx)(a.J9,{initialValues:{...o.S},onSubmit:console.log,children:e=>{let{values:l,setFieldValue:n}=e;return(0,i.jsxs)(s.bue,{children:[(0,i.jsxs)(s.JGx,{span:12,children:[(0,i.jsx)(c,{level:2,children:"<Formik> + Controlled"}),(0,i.jsxs)("div",{className:"mb-4",children:[(0,i.jsx)(s.j8w,{color:"green",children:"funcitonal"}),(0,i.jsx)(s.j8w,{color:"red",children:"high effort"})]}),(0,i.jsx)(a.l0,{children:(0,i.jsxs)(s.jqI,{vertical:!0,gap:16,children:[(0,i.jsxs)("div",{children:[(0,i.jsx)("label",{htmlFor:"input",children:"Input"}),(0,i.jsx)("div",{children:(0,i.jsx)(s.uFc,{id:"input",onChange:e=>n("input",e.target.value),defaultValue:l.input})})]}),(0,i.jsx)("div",{children:(0,i.jsxs)(s.y02.Group,{name:"radio",onChange:e=>n("radio",e.target.value),defaultValue:l.radio,children:[(0,i.jsx)(s.y02,{value:"1",children:"Radio 1"}),(0,i.jsx)(s.y02,{value:"2",children:"Radio 2"})]})}),(0,i.jsx)("div",{children:(0,i.jsx)(s.E_O,{onChange:e=>n("checkbox",e.target.checked),defaultChecked:l.checkbox,children:"Checkbox"})}),(0,i.jsxs)("div",{children:[(0,i.jsx)("label",{htmlFor:"switch",children:"Switch"}),(0,i.jsx)("div",{children:(0,i.jsx)(s.rAg,{id:"switch",onChange:e=>n("switch",e),defaultChecked:l.switch})})]}),(0,i.jsxs)("div",{children:[(0,i.jsx)("label",{htmlFor:"select",children:"Select"}),(0,i.jsx)("div",{children:(0,i.jsx)(s.WPr,{allowClear:!0,id:"select",defaultValue:l.select,onChange:e=>n("select",e),className:"w-full",options:[{value:"1",label:"Option 1"},{value:"2",label:"Option 2"}]})})]}),(0,i.jsxs)("div",{children:[(0,i.jsx)("label",{htmlFor:"multiselect",children:"Multiselect"}),(0,i.jsx)("div",{children:(0,i.jsx)(s.WPr,{mode:"multiple",allowClear:!0,id:"multiselect",defaultValue:l.multiselect,onChange:e=>n("multiselect",e),className:"w-full",options:[{value:"1",label:"Option 1"},{value:"2",label:"Option 2"}]})})]}),(0,i.jsxs)("div",{children:[(0,i.jsx)("label",{htmlFor:"tags",children:"Tags"}),(0,i.jsx)("div",{children:(0,i.jsx)(s.WPr,{mode:"tags",allowClear:!0,id:"tags",defaultValue:l.tags,onChange:e=>n("tags",e),className:"w-full",options:[{value:"1",label:"Option 1"},{value:"2",label:"Option 2"}]})})]}),(0,i.jsxs)("div",{children:[(0,i.jsx)("label",{htmlFor:"date",children:"Date"}),(0,i.jsx)("div",{children:(0,i.jsx)(s.cv2,{id:"date",onChange:e=>n("date",e.toISOString())})})]}),(0,i.jsxs)("div",{children:[(0,i.jsx)("label",{htmlFor:"number",children:"Number"}),(0,i.jsx)("div",{children:(0,i.jsx)(s.W7D,{id:"number",defaultValue:l.number,onChange:e=>n("number",e)})})]})]})})]}),(0,i.jsxs)(s.JGx,{span:8,offset:4,children:[(0,i.jsx)(c,{level:4,children:"Controlled Values"}),(0,i.jsx)(s.V4A,{style:{backgroundColor:t().FIDESUI_MINOS,color:t().FIDESUI_CORINTH},children:(0,i.jsx)("pre",{children:(0,i.jsxs)("code",{children:["{\n",Object.keys(l).map(e=>" ".concat(e,": ").concat(l[e],"\n")),"}"]})})})]})]})}});l.default=d},82252:function(e,l,n){"use strict";n.r(l),n.d(l,{FormikFieldPOC:function(){return h}});var i=n(24246),s=n(4454),r=n(3124),t=n.n(r),a=n(34090),o=n(95813);let{Text:c,Title:d}=s.AntTypography,h=()=>(0,i.jsx)(a.J9,{initialValues:{...o.S},onSubmit:console.log,children:e=>{let{values:l}=e;return(0,i.jsxs)(s.bue,{children:[(0,i.jsxs)(s.JGx,{span:12,children:[(0,i.jsx)(d,{level:2,children:"<Formik> + <Field>"}),(0,i.jsxs)("div",{className:"mb-4",children:[(0,i.jsx)(s.j8w,{color:"red",children:"non functional"}),(0,i.jsx)(s.j8w,{color:"red",children:"high effort"})]}),(0,i.jsx)(a.l0,{children:(0,i.jsxs)(s.jqI,{vertical:!0,gap:16,children:[(0,i.jsxs)("div",{children:[(0,i.jsx)("label",{htmlFor:"input",children:"Input"}),(0,i.jsx)("div",{children:(0,i.jsx)(a.gN,{as:s.uFc,id:"input",name:"input",type:"text"})})]}),(0,i.jsx)("div",{children:(0,i.jsxs)(a.gN,{as:s.y02.Group,name:"radio",children:[(0,i.jsx)(s.y02,{value:"1",children:"Radio 1"}),(0,i.jsx)(s.y02,{value:"2",children:"Radio 2"})]})}),(0,i.jsxs)("div",{children:[(0,i.jsx)(a.gN,{as:s.E_O,defaultChecked:l.checkbox,name:"checkbox",children:"Checkbox"}),(0,i.jsx)(c,{type:"warning",children:"Requires additional logic to handle default state"})]}),(0,i.jsxs)("div",{children:[(0,i.jsx)("label",{htmlFor:"switch",children:"Switch"}),(0,i.jsx)("div",{children:(0,i.jsx)(a.gN,{as:s.rAg,id:"switch",name:"switch"})}),(0,i.jsxs)(c,{type:"danger",children:["Ant Switch's onChange is too different from Formik, requires to be fully controlled. This will not work with"," ","<Field>"," alone"]})]}),(0,i.jsxs)("div",{children:[(0,i.jsx)("label",{htmlFor:"select",children:"Select"}),(0,i.jsx)("div",{children:(0,i.jsx)(a.gN,{as:s.WPr,allowClear:!0,id:"select",name:"select",className:"w-full",status:"error",options:[{value:"1",label:"Option 1"},{value:"2",label:"Option 2"}]})}),(0,i.jsxs)(c,{type:"danger",children:["Ant Select's onChange is too different from Formik, requires to be fully controlled. This will not work with"," ","<Field>"," alone"]})]}),(0,i.jsxs)("div",{children:[(0,i.jsx)("label",{htmlFor:"multiselect",children:"Multiselect"}),(0,i.jsx)("div",{children:(0,i.jsx)(a.gN,{as:s.WPr,mode:"multiple",allowClear:!0,id:"multiselect",name:"multiselect",className:"w-full",status:"error",options:[{value:"1",label:"Option 1"},{value:"2",label:"Option 2"}]})}),(0,i.jsxs)(c,{type:"danger",children:["Ant Select's onChange is too different from Formik, requires to be fully controlled. This will not work with"," ","<Field>"," alone"]})]}),(0,i.jsxs)("div",{children:[(0,i.jsx)("label",{htmlFor:"multiselect",children:"Tags"}),(0,i.jsx)("div",{children:(0,i.jsx)(a.gN,{as:s.WPr,mode:"tags",allowClear:!0,id:"tags",name:"tags",className:"w-full",status:"error",options:[{value:"1",label:"Option 1"},{value:"2",label:"Option 2"}]})}),(0,i.jsxs)(c,{type:"danger",children:["Ant Select's onChange is too different from Formik, requires to be fully controlled. This will not work with"," ","<Field>"," alone"]})]}),(0,i.jsxs)("div",{children:[(0,i.jsx)("label",{htmlFor:"date",children:"Date"}),(0,i.jsx)("div",{children:(0,i.jsx)(a.gN,{as:s.cv2,id:"date",name:"date",status:"error"})}),(0,i.jsxs)(c,{type:"danger",children:["Ant DatePicker's onChange is different from Formik, requires to be fully controlled. This will not work with"," ","<Field>"," alone"]})]}),(0,i.jsxs)("div",{children:[(0,i.jsx)("label",{htmlFor:"number",children:"Number"}),(0,i.jsx)("div",{children:(0,i.jsx)(a.gN,{as:s.W7D,id:"number",name:"number",status:"error"})}),(0,i.jsxs)(c,{type:"danger",children:["Ant InputNumber's onChange is different from Formik, requires to be fully controlled. This will not work with"," ","<Field>"," alone"]})]})]})})]}),(0,i.jsxs)(s.JGx,{span:8,offset:4,children:[(0,i.jsx)(d,{level:4,children:"Controlled Values"}),(0,i.jsx)(s.V4A,{style:{backgroundColor:t().FIDESUI_MINOS,color:t().FIDESUI_CORINTH},children:(0,i.jsx)("pre",{children:(0,i.jsxs)("code",{children:["{\n",Object.keys(l).map(e=>" ".concat(e,": ").concat(l[e],"\n")),"}"]})})})]})]})}});l.default=h},71252:function(e,l,n){"use strict";n.r(l),n.d(l,{FormsPOC:function(){return x}});var i=n(24246),s=n(4454),r=n(33396),t=n(35716),a=n(15957),o=n(82252),c=n(12921);let{Content:d}=s.AntLayout,{Title:h}=s.AntTypography,u=[{key:"1",label:"Formik + Controlled",children:(0,i.jsx)(a.FormikControlledPOC,{})},{key:"2",label:"Formik + Field",children:(0,i.jsx)(o.FormikFieldPOC,{})},{key:"3",label:"Formik + {...field}",children:(0,i.jsx)(c.FormikSpreadFieldPOC,{})},{key:"4",label:"Formik + Ant's Form.Item",children:(0,i.jsx)(t.FormikAntFormItemPOC,{})},{key:"5",label:"Ant Form",children:(0,i.jsx)(r.AntFormPOC,{})}],x=()=>(0,i.jsxs)(d,{className:"overflow-auto px-10 py-6",children:[(0,i.jsx)(s.bue,{children:(0,i.jsx)(h,{children:"Forms POC"})}),(0,i.jsx)(s.A5g,{defaultActiveKey:"1",items:u})]});l.default=x}},function(e){e.O(0,[2921,2888,9774,179],function(){return e(e.s=36136)}),_N_E=e.O()}]);
|
fides/ui-build/static/admin/_next/static/chunks/pages/poc/table-migration-1db7a54437db7db0.js
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3564],{22657:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/poc/table-migration",function(){return n(26161)}])},812:function(e,t,n){"use strict";n.d(t,{D4:function(){return a.D4},MM:function(){return p},Ot:function(){return u},c6:function(){return r},cj:function(){return g},e$:function(){return l},fn:function(){return o},iC:function(){return f},nU:function(){return d},tB:function(){return c}});var s,r,a=n(19043);let i="An unexpected error occurred. Please try again.",l=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i;if((0,a.Bw)(e)){if((0,a.hE)(e.data))return e.data.detail;if((0,a.cz)(e.data)){var n;let t=null===(n=e.data.detail)||void 0===n?void 0:n[0];return"".concat(null==t?void 0:t.msg,": ").concat(null==t?void 0:t.loc)}if(409===e.status&&(0,a.Dy)(e.data)||404===e.status&&(0,a.XD)(e.data))return"".concat(e.data.detail.error," (").concat(e.data.detail.fides_key,")")}return t};function o(e){return"object"==typeof e&&null!=e&&"status"in e}function u(e){return"object"==typeof e&&null!=e&&"data"in e&&"string"==typeof e.data.detail}function c(e){return"object"==typeof e&&null!=e&&"data"in e&&Array.isArray(e.data.detail)}let d=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{status:500,message:i};if((0,a.oK)(e))return{status:e.originalStatus,message:e.data};if((0,a.Bw)(e)){let{status:n}=e;return{status:n,message:l(e,t.message)}}return t},p=e=>Object.entries(e).map(e=>({value:e[1],label:e[1]}));(s=r||(r={})).GVL="gvl",s.AC="gacp",s.COMPASS="compass";let f={gvl:{label:"GVL",fullName:"Global Vendor List"},gacp:{label:"AC",fullName:"Google Additional Consent List"},compass:{label:"",fullName:""}},g=e=>{let t=e.split(".")[0];return"gacp"===t?"gacp":"gvl"===t?"gvl":"compass"}},6675:function(e,t,n){"use strict";n.d(t,{ZS:function(){return l},a4:function(){return a}});var s=n(3228);let r=n(78780).u.injectEndpoints({endpoints:e=>({getPurposes:e.query({query:()=>"purposes"})})}),{useGetPurposesQuery:a}=r,i={purposes:{},special_purposes:{}},l=(0,s.P1)(r.endpoints.getPurposes.select(),e=>{let{data:t}=e;return t||i})},48347:function(e,t,n){"use strict";n.d(t,{W:function(){return o},m:function(){return u}});var s=n(24246),r=n(4454),a=n(32885);let{Text:i,Title:l}=r.AntTypography,o=()=>{let{isOpen:e,onOpen:t,onClose:n}=(0,r.qY0)();return{isOpen:e,onOpen:t,onClose:n}},u=e=>{let{isOpen:t,onClose:n,fidesKey:o}=e,{data:u,isLoading:c}=(0,a.ho)(o),d=(e,t)=>(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(l,{level:5,children:e}),(null==t?void 0:t.length)?(0,s.jsx)("div",{children:(0,s.jsx)(r.vyj,{size:[0,2],wrap:!0,children:null==t?void 0:t.map(e=>(0,s.jsx)(r.j8w,{children:e},e))})}):(0,s.jsxs)(i,{italic:!0,children:["no known ",e.toLowerCase()]})]});return(0,s.jsxs)(r.u_l,{isOpen:t,onClose:n,size:"xxl",returnFocusOnClose:!1,isCentered:!0,children:[(0,s.jsx)(r.ZAr,{}),(0,s.jsxs)(r.hzk,{maxWidth:"800px",children:[(0,s.jsx)(r.xBx,{children:u?null==u?void 0:u.name:"Vendor"}),(0,s.jsx)(r.fef,{children:c?(0,s.jsx)(r.jqI,{className:"h-80 w-full",align:"center",justify:"center",children:(0,s.jsx)(r.$jN,{})}):!!u&&(0,s.jsxs)(r.AntTypography,{children:[(0,s.jsx)(l,{level:5,children:"Purposes"}),Object.entries(u.purposes||{}).length>0?(0,s.jsx)(r.UQy,{allowMultiple:!0,children:Object.entries(u.purposes).map((e,t)=>{let[n]=e;return(0,s.jsx)(r.Qdk,{children:e=>{let{isExpanded:t}=e;return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)(r.KFZ,{backgroundColor:t?"gray.50":"unset",children:[(0,s.jsx)(r.xuv,{flex:"1",textAlign:"left",children:n}),(0,s.jsx)(r.XEm,{})]}),(0,s.jsxs)(r.Hk3,{backgroundColor:"gray.50",children:[(0,s.jsx)(r.jqI,{className:"my-4",vertical:!0,children:d("Data uses",u.purposes[n].data_uses)}),(0,s.jsx)(r.jqI,{className:"my-4",vertical:!0,children:d("Legal basis",u.purposes[n].legal_bases)})]})]})}},t)})}):(0,s.jsx)(i,{italic:!0,children:"no known purposes"}),(0,s.jsx)("div",{className:"my-4",children:d("Features",u.features)}),(0,s.jsx)("div",{className:"my-4",children:d("Data categories",u.data_categories)})]})}),(0,s.jsxs)(r.mzw,{children:[(0,s.jsx)(r.wpx,{size:"small",onClick:n,children:"Close"}),(0,s.jsx)(r.LZC,{})]})]})]})}},26161:function(e,t,n){"use strict";n.r(t),n.d(t,{TableMigrationPOC:function(){return v}});var s=n(24246),r=n(25980),a=n(4454),i=n(86677),l=n(27378),o=n(16134),u=n(77830),c=n(6675),d=n(23923),p=n(48347),f=n(28079),g=n(32885);let{Content:j}=a.AntLayout,{Title:h,Paragraph:m}=a.AntTypography,x=[{text:"Advertising",value:"advertising"},{text:"Analytics",value:"analytics"},{text:"Functional",value:"functional"},{text:"Essential",value:"essential"}],y=[{text:"Consent",value:"Consent"},{text:"Legitimate Interest",value:"Legitimate interests"}],v=()=>{let{tcf:e,dictionaryService:t}=(0,r.hz)(),n=(0,i.useRouter)(),[v,b]=(0,l.useState)(""),[_,C]=(0,l.useState)(""),[w,k]=(0,l.useState)(25),[N,A]=(0,l.useState)(1),[S,O]=(0,l.useState)(),[L,I]=(0,l.useState)({});(0,f.fd)();let T=(0,o.C)(f.U3);(0,c.a4)();let F=(0,o.C)(c.ZS),z=(0,l.useMemo)(()=>[...Object.entries(F.purposes).map(e=>{let[t,n]=e;return{text:n.name,value:t}}),...Object.entries(F.special_purposes).map(e=>{let[t,n]=e;return{text:n.name,value:t}})],[F]),E=(0,l.useMemo)(()=>T.map(e=>({text:e.name||e.fides_key,value:e.fides_key})),[T]),{isOpen:P,onOpen:D,onClose:V}=(0,p.W)(),M=(()=>{let e=(L.data_uses||[]).map(e=>"data_uses=".concat(encodeURIComponent(e))).join("&");return{dataUses:e,legalBasis:(L.legal_bases||[]).map(e=>"legal_bases=".concat(encodeURIComponent(e))).join("&"),purposes:(L.tcf_purpose||[]).map(e=>"purposes=".concat(encodeURIComponent(e))).join("&"),specialPurposes:"",consentCategories:(L.consent_categories||[]).map(e=>"consent_category=".concat(encodeURIComponent(e))).join("&")}})(),{data:R,isLoading:U}=(0,g.de)({pageIndex:N,pageSize:w,search:_,...M}),q=(null==R?void 0:R.total)||0,B=(null==R?void 0:R.items)||[];(0,l.useEffect)(()=>{let e=setTimeout(()=>{C(v),1!==N&&A(1)},300);return()=>clearTimeout(e)},[v]);let G=(0,l.useCallback)(e=>{b(e.target.value)},[]),Z=e=>{O(e.fides_key),D()},K=[{title:"Vendor",dataIndex:"name",key:"name",filteredValue:L.name||null},...e?[{title:"TCF purpose",dataIndex:"data_uses",key:"tcf_purpose",render:e=>(0,s.jsxs)(a.j8w,{children:[e," ",1===e?"purpose":"purposes"]}),filters:z,filteredValue:L.tcf_purpose||null},{title:"Data use",dataIndex:"data_uses",key:"data_uses",render:e=>(0,s.jsxs)(a.j8w,{children:[e," ",1===e?"data use":"data uses"]}),filters:E,filteredValue:L.data_uses||null},{title:"Legal basis",dataIndex:"legal_bases",key:"legal_bases",render:e=>(0,s.jsxs)(a.j8w,{children:[e," ",1===e?"basis":"bases"]}),filters:y,filteredValue:L.legal_bases||null}]:[{title:"Categories",dataIndex:"consent_categories",key:"consent_categories",render:e=>(0,s.jsxs)(a.j8w,{children:[e," ",1===e?"category":"categories"]}),filters:x,filteredValue:L.consent_categories||null},{title:"Cookies",dataIndex:"cookies",key:"cookies",render:e=>(0,s.jsxs)(a.j8w,{children:[e," ",1===e?"cookie":"cookies"]})}]];return(0,s.jsxs)(j,{className:"overflow-auto px-10 py-6",children:[(0,s.jsx)(a.bue,{children:(0,s.jsx)(h,{children:"Table Migration POC"})}),(0,s.jsx)(m,{className:"mb-6",children:"This is a demonstration of migrating the ConsentManagementTable from TanStack Table to Ant Design Table with built-in filtering."}),P&&S?(0,s.jsx)(p.m,{isOpen:P,fidesKey:S,onClose:V}):null,(0,s.jsxs)(a.jqI,{justify:"space-between",align:"center",className:"mb-4",children:[(0,s.jsx)(a.uFc.Search,{placeholder:"Search",onSearch:e=>{b(e)},style:{width:300},value:v,onChange:G}),(0,s.jsxs)(a.vyj,{size:8,children:[(0,s.jsx)(d.Z,{buttonLabel:"Add vendors",onButtonClick:t?()=>{n.push(u.Gg)}:void 0}),(0,s.jsx)(a.wpx,{onClick:()=>{I({})},children:"Clear filters"})]})]}),(0,s.jsx)(a.V5H,{dataSource:B,columns:K,loading:U,rowKey:"id",pagination:{current:N,pageSize:w,total:q,showSizeChanger:!0,pageSizeOptions:[25,50,100]},onChange:(e,t)=>{A(e.current),k(e.pageSize),I(t)},onRow:e=>({onClick:()=>Z(e),style:{cursor:"pointer"}}),size:"small"})]})};t.default=v},19043:function(e,t,n){"use strict";n.d(t,{Bw:function(){return i},D4:function(){return r},Dy:function(){return o},XD:function(){return u},cz:function(){return c},hE:function(){return l},oK:function(){return a}});var s=n(76649);let r=e=>"error"in e,a=e=>(0,s.Ln)({status:"string"},e)&&"PARSING_ERROR"===e.status,i=e=>(0,s.Ln)({status:"number",data:{}},e),l=e=>(0,s.Ln)({detail:"string"},e),o=e=>(0,s.Ln)({detail:{error:"string",resource_type:"string",fides_key:"string"}},e),u=e=>(0,s.Ln)({detail:{error:"string",resource_type:"string",fides_key:"string"}},e),c=e=>(0,s.Ln)({detail:[{loc:["string","number"],msg:"string",type:"string"}]},e)},76649:function(e,t,n){"use strict";n.d(t,{Ln:function(){return s}});let s=(e,t)=>a(e,t),r=Symbol("SOME"),a=(e,t)=>"string"==typeof e?e===typeof t:Array.isArray(e)?r in e?e.some(e=>a(e,t)):!!Array.isArray(t)&&(0===e.length||t.every(t=>e.some(e=>a(e,t)))):"object"==typeof t&&null!==t&&Object.entries(e).every(([e,n])=>a(n,t[e]));class i{static narrow(e){return new i(t=>s(e,t))}constructor(e){this.NF=void 0,this.NF=e}satisfied(e){return this.NF(e)}build(e){return e}and(e){let t=this.NF,n=e instanceof i?e.NF:e instanceof Function?e:t=>s(e,t);return new i(e=>t(e)&&n(e))}}new i(e=>!0)}},function(e){e.O(0,[401,3923,2888,9774,179],function(){return e(e.s=22657)}),_N_E=e.O()}]);
|