ethyca-fides 2.71.1b0__py2.py3-none-any.whl → 2.71.1rc0__py2.py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of ethyca-fides might be problematic. Click here for more details.
- {ethyca_fides-2.71.1b0.dist-info → ethyca_fides-2.71.1rc0.dist-info}/METADATA +2 -2
- {ethyca_fides-2.71.1b0.dist-info → ethyca_fides-2.71.1rc0.dist-info}/RECORD +165 -151
- fides/_version.py +3 -3
- fides/api/alembic/migrations/versions/3efe14d4469a_adds_new_experience_configs_for_vendor_.py +79 -0
- fides/api/alembic/migrations/versions/4bfbeff34611_add_polling_status.py +35 -0
- fides/api/alembic/migrations/versions/7db29f9cd77b_create_new_sub_request_table.py +95 -0
- fides/api/alembic/migrations/versions/9caf76161e55_make_user_assigned_data_uses_nullable_.py +64 -0
- fides/api/alembic/migrations/versions/b97e92b038d2_add_digest_execution_model.py +117 -0
- fides/api/alembic/migrations/versions/f108fa05c579_adds_optional_duration_field_to_assets.py +28 -0
- fides/api/api/v1/endpoints/generic_overrides.py +3 -9
- fides/api/common_exceptions.py +4 -0
- fides/api/main.py +2 -2
- fides/api/models/asset.py +14 -1
- fides/api/models/attachment.py +1 -0
- fides/api/models/detection_discovery/core.py +57 -3
- fides/api/models/digest/__init__.py +2 -0
- fides/api/models/digest/digest_config.py +10 -1
- fides/api/models/digest/digest_execution.py +132 -0
- fides/api/models/event_audit.py +8 -0
- fides/api/models/privacy_experience.py +10 -0
- fides/api/models/privacy_notice.py +131 -20
- fides/api/models/privacy_request/request_task.py +98 -1
- fides/api/models/worker_task.py +8 -0
- fides/api/schemas/saas/async_polling_configuration.py +81 -0
- fides/api/schemas/saas/saas_config.py +10 -3
- fides/api/schemas/saas/strategy_configuration.py +0 -12
- fides/api/service/async_dsr/handlers/__init__.py +0 -0
- fides/api/service/async_dsr/handlers/polling_attachment_handler.py +155 -0
- fides/api/service/async_dsr/handlers/polling_request_handler.py +88 -0
- fides/api/service/async_dsr/handlers/polling_response_handler.py +261 -0
- fides/api/service/async_dsr/handlers/polling_sub_request_handler.py +123 -0
- fides/api/service/async_dsr/strategies/__init__.py +0 -0
- fides/api/service/async_dsr/strategies/async_dsr_strategy.py +52 -0
- fides/api/service/async_dsr/strategies/async_dsr_strategy_callback.py +199 -0
- fides/api/service/async_dsr/strategies/async_dsr_strategy_factory.py +72 -0
- fides/api/service/async_dsr/strategies/async_dsr_strategy_polling.py +678 -0
- fides/api/service/async_dsr/utils.py +130 -0
- fides/api/service/connectors/fides/fides_client.py +63 -1
- fides/api/service/connectors/query_configs/saas_query_config.py +4 -5
- fides/api/service/connectors/saas_connector.py +77 -69
- fides/api/service/privacy_request/attachment_handling.py +9 -2
- fides/api/service/privacy_request/request_runner_service.py +9 -83
- fides/api/service/privacy_request/request_service.py +47 -74
- fides/api/service/saas_request/saas_request_override_factory.py +66 -1
- fides/api/task/execute_request_tasks.py +5 -2
- fides/api/task/filter_results.py +35 -2
- fides/api/task/graph_task.py +34 -2
- fides/config/execution_settings.py +7 -3
- fides/service/dataset/dataset_service.py +0 -39
- fides/service/privacy_request/privacy_request_service.py +48 -103
- fides/ui-build/static/admin/404.html +1 -1
- fides/ui-build/static/admin/_next/static/chunks/155-c1ae010c664e2245.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/1817-1ad037b7d6d2f6d2.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/{3585-f728d32fda6f1ac1.js → 3585-efd5d41f08e180c4.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/5279-12c9cbdc67ad7b14.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/6277-182efc294d413f64.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/7079-bbc7b856802a4834.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/add-systems/{manual-75e99306393938e8.js → manual-4ec03eed67572861.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/consent/privacy-experience/{[id]-fd41ffaff543e05a.js → [id]-e1e2fd704ac2d71d.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/consent/privacy-experience/{new-e74cb5ea87f15b40.js → new-a5e738a234dadc7e.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/consent/privacy-notices/{[id]-9c23fbe813c997d0.js → [id]-5fc78b78a51c239c.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/consent/privacy-notices/{new-0e5e38bbcfe59fd2.js → new-b79bcb93b5f4c734.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/action-center/[monitorId]/[systemId]-29c1fb777bd464e0.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/integrations/[id]-153eb88ab4e7dc6d.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/integrations-f682b1def859931e.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/privacy-requests/[id]-febf156d2977f3ac.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/settings/consent-4d658222ec800511.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/systems/configure/{[id]-547c6ef0ad52b85d.js → [id]-4d470bbf199a2f9c.js} +1 -1
- fides/ui-build/static/admin/_next/static/css/f38242c11f7fea64.css +1 -0
- fides/ui-build/static/admin/_next/static/vSOB67a-1uIVzRUKBYMSo/_buildManifest.js +1 -0
- fides/ui-build/static/admin/add-systems/manual.html +1 -1
- fides/ui-build/static/admin/add-systems/multiple.html +1 -1
- fides/ui-build/static/admin/add-systems.html +1 -1
- fides/ui-build/static/admin/consent/configure/add-vendors.html +1 -1
- fides/ui-build/static/admin/consent/configure.html +1 -1
- fides/ui-build/static/admin/consent/privacy-experience/[id].html +1 -1
- fides/ui-build/static/admin/consent/privacy-experience/new.html +1 -1
- fides/ui-build/static/admin/consent/privacy-experience.html +1 -1
- fides/ui-build/static/admin/consent/privacy-notices/[id].html +1 -1
- fides/ui-build/static/admin/consent/privacy-notices/new.html +1 -1
- fides/ui-build/static/admin/consent/privacy-notices.html +1 -1
- fides/ui-build/static/admin/consent/properties.html +1 -1
- fides/ui-build/static/admin/consent/reporting.html +1 -1
- fides/ui-build/static/admin/consent.html +1 -1
- fides/ui-build/static/admin/data-catalog/[systemId]/projects/[projectUrn]/[resourceUrn].html +1 -1
- fides/ui-build/static/admin/data-catalog/[systemId]/projects/[projectUrn].html +1 -1
- fides/ui-build/static/admin/data-catalog/[systemId]/projects.html +1 -1
- fides/ui-build/static/admin/data-catalog/[systemId]/resources/[resourceUrn].html +1 -1
- fides/ui-build/static/admin/data-catalog/[systemId]/resources.html +1 -1
- fides/ui-build/static/admin/data-catalog.html +1 -1
- fides/ui-build/static/admin/data-discovery/action-center/[monitorId]/[systemId].html +1 -1
- fides/ui-build/static/admin/data-discovery/action-center/[monitorId].html +1 -1
- fides/ui-build/static/admin/data-discovery/action-center.html +1 -1
- fides/ui-build/static/admin/data-discovery/activity.html +1 -1
- fides/ui-build/static/admin/data-discovery/detection/[resourceUrn].html +1 -1
- fides/ui-build/static/admin/data-discovery/detection.html +1 -1
- fides/ui-build/static/admin/data-discovery/discovery/[resourceUrn].html +1 -1
- fides/ui-build/static/admin/data-discovery/discovery.html +1 -1
- fides/ui-build/static/admin/datamap.html +1 -1
- fides/ui-build/static/admin/dataset/[datasetId]/[collectionName]/[...subfieldNames].html +1 -1
- fides/ui-build/static/admin/dataset/[datasetId]/[collectionName].html +1 -1
- fides/ui-build/static/admin/dataset/[datasetId].html +1 -1
- fides/ui-build/static/admin/dataset/new.html +1 -1
- fides/ui-build/static/admin/dataset.html +1 -1
- fides/ui-build/static/admin/datastore-connection/[id].html +1 -1
- fides/ui-build/static/admin/datastore-connection/new.html +1 -1
- fides/ui-build/static/admin/datastore-connection.html +1 -1
- fides/ui-build/static/admin/index.html +1 -1
- fides/ui-build/static/admin/integrations/[id].html +1 -1
- fides/ui-build/static/admin/integrations.html +1 -1
- fides/ui-build/static/admin/lib/fides-headless.js +1 -1
- fides/ui-build/static/admin/lib/fides-preview.js +1 -1
- fides/ui-build/static/admin/lib/fides-tcf.js +3 -3
- fides/ui-build/static/admin/lib/fides.js +3 -3
- fides/ui-build/static/admin/login/[provider].html +1 -1
- fides/ui-build/static/admin/login.html +1 -1
- fides/ui-build/static/admin/messaging/[id].html +1 -1
- fides/ui-build/static/admin/messaging/add-template.html +1 -1
- fides/ui-build/static/admin/messaging.html +1 -1
- fides/ui-build/static/admin/poc/ant-components.html +1 -1
- fides/ui-build/static/admin/poc/form-experiments/AntForm.html +1 -1
- fides/ui-build/static/admin/poc/form-experiments/FormikAntFormItem.html +1 -1
- fides/ui-build/static/admin/poc/form-experiments/FormikControlled.html +1 -1
- fides/ui-build/static/admin/poc/form-experiments/FormikField.html +1 -1
- fides/ui-build/static/admin/poc/form-experiments/FormikSpreadField.html +1 -1
- fides/ui-build/static/admin/poc/forms.html +1 -1
- fides/ui-build/static/admin/poc/table-migration.html +1 -1
- fides/ui-build/static/admin/privacy-requests/[id].html +1 -1
- fides/ui-build/static/admin/privacy-requests/configure/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/[id].html +1 -1
- fides/ui-build/static/admin/settings/custom-fields/new.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/messaging-providers/[key].html +1 -1
- fides/ui-build/static/admin/settings/messaging-providers/new.html +1 -1
- fides/ui-build/static/admin/settings/messaging-providers.html +1 -1
- fides/ui-build/static/admin/settings/organization.html +1 -1
- fides/ui-build/static/admin/settings/privacy-requests.html +1 -1
- fides/ui-build/static/admin/settings/regulations.html +1 -1
- fides/ui-build/static/admin/systems/configure/[id]/test-datasets.html +1 -1
- fides/ui-build/static/admin/systems/configure/[id].html +1 -1
- fides/ui-build/static/admin/systems.html +1 -1
- fides/ui-build/static/admin/taxonomy.html +1 -1
- fides/ui-build/static/admin/user-management/new.html +1 -1
- fides/ui-build/static/admin/user-management/profile/[id].html +1 -1
- fides/ui-build/static/admin/user-management.html +1 -1
- fides/api/service/async_dsr/async_dsr_service.py +0 -195
- fides/api/service/async_dsr/async_dsr_strategy.py +0 -5
- fides/api/service/async_dsr/async_dsr_strategy_callback.py +0 -16
- fides/api/service/async_dsr/async_dsr_strategy_factory.py +0 -63
- fides/api/service/async_dsr/async_dsr_strategy_polling.py +0 -94
- fides/ui-build/static/admin/_next/static/IPOgh7BMBX7b_r8-scpgv/_buildManifest.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/155-047c3806cc41295e.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/1817-ca6473f31a67a804.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/3700-08e0703b1ef770da.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/6084-d0943ee628bf4388.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/6416-0ccadfefcdad00cc.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/action-center/[monitorId]/[systemId]-2e1e2b7808d3b21f.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/integrations/[id]-01e025f878ba806c.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/integrations-14120a529d7dac27.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/privacy-requests/[id]-7dac2302f573f5ee.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/settings/consent-e5d781b28f8e29c8.js +0 -1
- fides/ui-build/static/admin/_next/static/css/073713cd1eddda79.css +0 -1
- {ethyca_fides-2.71.1b0.dist-info → ethyca_fides-2.71.1rc0.dist-info}/WHEEL +0 -0
- {ethyca_fides-2.71.1b0.dist-info → ethyca_fides-2.71.1rc0.dist-info}/entry_points.txt +0 -0
- {ethyca_fides-2.71.1b0.dist-info → ethyca_fides-2.71.1rc0.dist-info}/licenses/LICENSE +0 -0
- {ethyca_fides-2.71.1b0.dist-info → ethyca_fides-2.71.1rc0.dist-info}/top_level.txt +0 -0
- /fides/ui-build/static/admin/_next/static/chunks/pages/{_app-a77584f9ad3334af.js → _app-a7c02dd2ff07f9e1.js} +0 -0
- /fides/ui-build/static/admin/_next/static/{IPOgh7BMBX7b_r8-scpgv → vSOB67a-1uIVzRUKBYMSo}/_ssgManifest.js +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1500],{50697:function(e,t,a){(window.__NEXT_P=window.__NEXT_P||[]).push(["/integrations/[id]",function(){return a(83465)}])},67991:function(e,t,a){"use strict";a.d(t,{Od:function(){return s},QZ:function(){return i}});var n=a(27378);let i=e=>{let{items:t,selected:a,onChange:n}=e,i=t.every(e=>a.includes(e.id))&&!!t.length;return{allSelected:i,someSelected:t.some(e=>a.includes(e.id))&&!!t.length,handleToggleAll:()=>{i?n([]):n(t.map(e=>e.id))},handleToggleSelection:e=>{a.includes(e)?n(a.filter(t=>t!==e)):n([...a,e])}}},s=e=>{let{initialSelected:t,initialExcluded:a,initialAllSelected:i,itemCount:s}=e,[l,r]=(0,n.useState)(t),[o,d]=(0,n.useState)(a),[c,u]=(0,n.useState)(i||l.length===s),m=!!l.length||!!o.length;return{selected:l,excluded:o,allSelected:c,someSelected:m,handleToggleAll:()=>{c?(d([]),o.length||u(!1)):(r([]),u(!0))},handleToggleItemSelected:e=>{if(c)d(o.includes(e)?o.filter(t=>t!==e):[...o,e]);else{let t=l.includes(e)?l.filter(t=>t!==e):[...l,e];r(t),t.length===s&&u(!0)}}}}},90111:function(e,t,a){"use strict";var n=a(24246),i=a(96306);t.Z=e=>{let{children:t,...a}=e;return(0,n.jsx)(i.xuv,{p:4,mb:4,border:"1px solid",borderColor:"gray.200",bgColor:"gray.50",borderRadius:"md",...a,children:t})}},8411:function(e,t,a){"use strict";a.d(t,{NA:function(){return s},Z8:function(){return i}});var n=a(21910);let i={[n._F.ER]:"Eritrea",[n._F.DJ]:"Djibouti",[n._F.MR]:"Mauritania",[n._F.NA]:"Namibia",[n._F.GH]:"Ghana",[n._F.SS]:"South Sudan",[n._F.SC]:"Seychelles",[n._F.IO]:"British Indian Ocean Territory",[n._F.GQ]:"Equatorial Guinea",[n._F.AO]:"Angola",[n._F.CG]:"Republic of the Congo",[n._F.BW]:"Botswana",[n._F.BI]:"Burundi",[n._F.DZ]:"Algeria",[n._F.TD]:"Chad",[n._F.NG]:"Nigeria",[n._F.TZ]:"Tanzania",[n._F.EH]:"Western Sahara",[n._F.SN]:"Senegal",[n._F.LR]:"Liberia",[n._F.ZA]:"South Africa",[n._F.CV]:"Cape Verde",[n._F.GM]:"Gambia",[n._F.SD]:"Sudan",[n._F.KM]:"Comoros",[n._F.SZ]:"Eswatini",[n._F.UG]:"Uganda",[n._F.MG]:"Madagascar",[n._F.RW]:"Rwanda",[n._F.CD]:"DR Congo",[n._F.CM]:"Cameroon",[n._F.SH]:"Saint Helena, Ascension and Tristan da Cunha",[n._F.TG]:"Togo",[n._F.MU]:"Mauritius",[n._F.NE]:"Niger",[n._F.BJ]:"Benin",[n._F.EG]:"Egypt",[n._F.LS]:"Lesotho",[n._F.ET]:"Ethiopia",[n._F.MA]:"Morocco",[n._F.YT]:"Mayotte",[n._F.BF]:"Burkina Faso",[n._F.RE]:"R\xe9union",[n._F.ST]:"S\xe3o Tom\xe9 and Pr\xedncipe",[n._F.CF]:"Central African Republic",[n._F.MZ]:"Mozambique",[n._F.MW]:"Malawi",[n._F.ML]:"Mali",[n._F.ZM]:"Zambia",[n._F.LY]:"Libya",[n._F.GW]:"Guinea-Bissau",[n._F.SO]:"Somalia",[n._F.KE]:"Kenya",[n._F.GN]:"Guinea",[n._F.ZW]:"Zimbabwe",[n._F.TN]:"Tunisia",[n._F.SL]:"Sierra Leone",[n._F.GA]:"Gabon",[n._F.CI]:"Ivory Coast",[n._F.JO]:"Jordan",[n._F.PK]:"Pakistan",[n._F.KP]:"North Korea",[n._F.MO]:"Macau",[n._F.AM]:"Armenia",[n._F.SY]:"Syria",[n._F.TJ]:"Tajikistan",[n._F.SA]:"Saudi Arabia",[n._F.KR]:"South Korea",[n._F.NP]:"Nepal",[n._F.PH]:"Philippines",[n._F.IQ]:"Iraq",[n._F.LB]:"Lebanon",[n._F.MN]:"Mongolia",[n._F.PS]:"Palestine",[n._F.YE]:"Yemen",[n._F.JP]:"Japan",[n._F.KZ]:"Kazakhstan",[n._F.LK]:"Sri Lanka",[n._F.MM]:"Myanmar",[n._F.KG]:"Kyrgyzstan",[n._F.CN]:"China",[n._F.AF]:"Afghanistan",[n._F.OM]:"Oman",[n._F.IN]:"India",[n._F.LA]:"Laos",[n._F.UZ]:"Uzbekistan",[n._F.MV]:"Maldives",[n._F.ID]:"Indonesia",[n._F.VN]:"Vietnam",[n._F.MY]:"Malaysia",[n._F.TW]:"Taiwan",[n._F.KH]:"Cambodia",[n._F.AE]:"United Arab Emirates",[n._F.HK]:"Hong Kong",[n._F.GE]:"Georgia (Country)",[n._F.BD]:"Bangladesh",[n._F.KW]:"Kuwait",[n._F.TM]:"Turkmenistan",[n._F.QA]:"Qatar",[n._F.BH]:"Bahrain",[n._F.BN]:"Brunei",[n._F.TH]:"Thailand",[n._F.BT]:"Bhutan",[n._F.SG]:"Singapore",[n._F.IL]:"Israel",[n._F.AZ]:"Azerbaijan",[n._F.TL]:"Timor-Leste",[n._F.IR]:"Iran",[n._F.TR]:"Turkey",[n._F.MK]:"North Macedonia",[n._F.IE]:"Ireland",[n._F.DK]:"Denmark",[n._F.SK]:"Slovakia",[n._F.MD]:"Moldova",[n._F.AX]:"\xc5land Islands",[n._F.PL]:"Poland",[n._F.BA]:"Bosnia and Herzegovina",[n._F.SM]:"San Marino",[n._F.CZ]:"Czechia",[n._F.EE]:"Estonia",[n._F.XK]:"Kosovo",[n._F.FO]:"Faroe Islands",[n._F.SJ]:"Svalbard and Jan Mayen",[n._F.GG]:"Guernsey",[n._F.FR]:"France",[n._F.NL]:"Netherlands",[n._F.FI]:"Finland",[n._F.PT]:"Portugal",[n._F.DE]:"Germany",[n._F.MT]:"Malta",[n._F.JE]:"Jersey",[n._F.IS]:"Iceland",[n._F.ES]:"Spain",[n._F.GI]:"Gibraltar",[n._F.NO]:"Norway",[n._F.CY]:"Cyprus",[n._F.RS]:"Serbia",[n._F.LT]:"Lithuania",[n._F.MC]:"Monaco",[n._F.LU]:"Luxembourg",[n._F.UA]:"Ukraine",[n._F.IM]:"Isle of Man",[n._F.RO]:"Romania",[n._F.BE]:"Belgium",[n._F.SE]:"Sweden",[n._F.ME]:"Montenegro",[n._F.LV]:"Latvia",[n._F.VA]:"Vatican City",[n._F.AT]:"Austria",[n._F.AL]:"Albania",[n._F.LI]:"Liechtenstein",[n._F.GR]:"Greece",[n._F.IT]:"Italy",[n._F.AD]:"Andorra",[n._F.GB]:"United Kingdom",[n._F.RU]:"Russia",[n._F.SI]:"Slovenia",[n._F.BY]:"Belarus",[n._F.CH]:"Switzerland",[n._F.HU]:"Hungary",[n._F.BG]:"Bulgaria",[n._F.HR]:"Croatia",[n._F.TC]:"Turks and Caicos Islands",[n._F.CW]:"Cura\xe7ao",[n._F.GP]:"Guadeloupe",[n._F.UM]:"United States Minor Outlying Islands",[n._F.GT]:"Guatemala",[n._F.PM]:"Saint Pierre and Miquelon",[n._F.BQ]:"Caribbean Netherlands",[n._F.GL]:"Greenland",[n._F.SX]:"Sint Maarten",[n._F.PA]:"Panama",[n._F.AW]:"Aruba",[n._F.MQ]:"Martinique",[n._F.AG]:"Antigua and Barbuda",[n._F.BM]:"Bermuda",[n._F.CU]:"Cuba",[n._F.GD]:"Grenada",[n._F.NI]:"Nicaragua",[n._F.LC]:"Saint Lucia",[n._F.KN]:"Saint Kitts and Nevis",[n._F.DO]:"Dominican Republic",[n._F.VC]:"Saint Vincent and the Grenadines",[n._F.BZ]:"Belize",[n._F.HT]:"Haiti",[n._F.JM]:"Jamaica",[n._F.BS]:"Bahamas",[n._F.MX]:"Mexico",[n._F.MF]:"Saint Martin",[n._F.SV]:"El Salvador",[n._F.BL]:"Saint Barth\xe9lemy",[n._F.AI]:"Anguilla",[n._F.MS]:"Montserrat",[n._F.VG]:"British Virgin Islands",[n._F.BB]:"Barbados",[n._F.HN]:"Honduras",[n._F.KY]:"Cayman Islands",[n._F.DM]:"Dominica",[n._F.TT]:"Trinidad and Tobago",[n._F.CR]:"Costa Rica",[n._F.SR]:"Suriname",[n._F.CX]:"Christmas Island",[n._F.WS]:"Samoa",[n._F.PF]:"French Polynesia",[n._F.AS]:"American Samoa",[n._F.NC]:"New Caledonia",[n._F.TK]:"Tokelau",[n._F.PW]:"Palau",[n._F.KI]:"Kiribati",[n._F.VU]:"Vanuatu",[n._F.PN]:"Pitcairn Islands",[n._F.CK]:"Cook Islands",[n._F.FJ]:"Fiji",[n._F.PG]:"Papua New Guinea",[n._F.MP]:"Northern Mariana Islands",[n._F.NU]:"Niue",[n._F.TV]:"Tuvalu",[n._F.NF]:"Norfolk Island",[n._F.TO]:"Tonga",[n._F.FM]:"Micronesia",[n._F.SB]:"Solomon Islands",[n._F.NR]:"Nauru",[n._F.WF]:"Wallis and Futuna",[n._F.GU]:"Guam",[n._F.AU]:"Australia",[n._F.NZ]:"New Zealand",[n._F.MH]:"Marshall Islands",[n._F.CC]:"Cocos (Keeling) Islands",[n._F.VE]:"Venezuela",[n._F.PY]:"Paraguay",[n._F.BR]:"Brazil",[n._F.CO]:"Colombia",[n._F.PE]:"Peru",[n._F.CL]:"Chile",[n._F.UY]:"Uruguay",[n._F.AR]:"Argentina",[n._F.GY]:"Guyana",[n._F.BO]:"Bolivia",[n._F.GF]:"French Guiana",[n._F.EC]:"Ecuador",[n._F.FK]:"Falkland Islands",[n._F.US_AL]:"Alabama",[n._F.US_AK]:"Alaska",[n._F.US_AZ]:"Arizona",[n._F.US_AR]:"Arkansas",[n._F.US_CA]:"California",[n._F.US_CO]:"Colorado",[n._F.US_CT]:"Connecticut",[n._F.US_DE]:"Delaware",[n._F.US_DC]:"District of Columbia (DC)",[n._F.US_FL]:"Florida",[n._F.US_GA]:"Georgia",[n._F.US_HI]:"Hawaii",[n._F.US_ID]:"Idaho",[n._F.US_IL]:"Illinois",[n._F.US_IN]:"Indiana",[n._F.US_IA]:"Iowa",[n._F.US_KS]:"Kansas",[n._F.US_KY]:"Kentucky",[n._F.US_LA]:"Louisiana",[n._F.US_ME]:"Maine",[n._F.US_MD]:"Maryland",[n._F.US_MA]:"Massachusetts",[n._F.US_MI]:"Michigan",[n._F.US_MN]:"Minnesota",[n._F.US_MS]:"Mississippi",[n._F.US_MO]:"Missouri",[n._F.US_MT]:"Montana",[n._F.US_NE]:"Nebraska",[n._F.US_NV]:"Nevada",[n._F.US_NH]:"New Hampshire",[n._F.US_NJ]:"New Jersey",[n._F.US_NM]:"New Mexico",[n._F.US_NY]:"New York",[n._F.US_NC]:"North Carolina",[n._F.US_ND]:"North Dakota",[n._F.US_OH]:"Ohio",[n._F.US_OK]:"Oklahoma",[n._F.US_OR]:"Oregon",[n._F.US_PA]:"Pennsylvania",[n._F.US_PR]:"Puerto Rico",[n._F.US_RI]:"Rhode Island",[n._F.US_SC]:"South Carolina",[n._F.US_SD]:"South Dakota",[n._F.US_TN]:"Tennessee",[n._F.US_TX]:"Texas",[n._F.US_UT]:"Utah",[n._F.US_VA]:"Virginia",[n._F.US_VI]:"United States Virgin Islands",[n._F.US_VT]:"Vermont",[n._F.US_WA]:"Washington",[n._F.US_WV]:"West Virginia",[n._F.US_WI]:"Wisconsin",[n._F.US_WY]:"Wyoming",[n._F.CA_AB]:"Alberta",[n._F.CA_BC]:"British Columbia",[n._F.CA_MB]:"Manitoba",[n._F.CA_NB]:"New Brunswick",[n._F.CA_NL]:"Newfoundland and Labrador",[n._F.CA_NS]:"Nova Scotia",[n._F.CA_ON]:"Ontario",[n._F.CA_PE]:"Prince Edward Island",[n._F.CA_QC]:"Quebec",[n._F.CA_SK]:"Saskatchewan",[n._F.CA_NT]:"Northwest Territories",[n._F.CA_NU]:"Nunavut",[n._F.CA_YT]:"Yukon",[n._F.CA]:"Canada",[n._F.US]:"United States",[n._F.MEXICO_CENTRAL_AMERICA]:"Mexico and Central America",[n._F.CARIBBEAN]:"Caribbean",[n._F.EEA]:"European Economic Area (EEA)",[n._F.NON_EEA]:"Non European Economic Area",[n._F.GLOBAL]:"Global"},s=new Map(Object.entries(i));Object.entries(i).map(e=>({value:e[0],label:e[1]}))},79494:function(e,t,a){"use strict";var n=a(24246),i=a(96306);t.Z=e=>{let{title:t,icon:a,type:s,...l}=e;return(0,n.jsx)(i.wpx,{size:"small",type:s,"data-testid":"action-".concat(t),icon:a,iconPosition:"start",...l,children:t})}},83465:function(e,t,a){"use strict";a.r(t),a.d(t,{default:function(){return tk}});var n=a(24246),i=a(96306),s=a(86677),l=a(77213),r=a(77830),o=a(58754),d=a(14908),c=a(20682),u=a(94725),m=a(45216),h=a(38187),_=a(27378),p=a(92222),x=a(59003),g=a(18225);let y=(0,i.IUT)({displayName:"MonitorIcon",viewBox:"0 0 12 12",path:(0,n.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 F=a(8411),f=a(47935),v=a(70675),j=a(812),S=a(17245),b=a(8133),C=a(46628),T=a(67991),k=a(46238);let N=(0,p.Cl)();var E=e=>{let{items:t,totalItemCount:a,selected:s,excluded:l,allSelected:r,someSelected:o,moreLoading:d,handleToggleSelection:c,handleToggleAll:u,onMoreClick:m}=e,h=t.map(e=>({id:e,isSelected:s.includes(e),isExcluded:l.includes(e)})),y=(0,_.useMemo)(()=>[N.display({id:"select",cell:e=>{let{row:t}=e;return(0,n.jsx)(f.k,{isChecked:t.original.isSelected||r&&!t.original.isExcluded,onChange:()=>c(t.original.id),dataTestId:"".concat(t.original.id,"-checkbox")})},header:()=>(0,n.jsx)(f.k,{isChecked:r,isIndeterminate:o,onChange:u,dataTestId:"select-all-checkbox"}),size:1}),N.accessor(e=>e.id,{id:"id",cell:e=>(0,n.jsx)(f.G3,{value:e.getValue()}),header:e=>(0,n.jsx)(f.Rr,{value:"Scope",...e})})],[c,u,r,o]),F=(0,x.b7)({getCoreRowModel:(0,p.sC)(),getRowId:e=>e.id,manualPagination:!0,data:h,columns:y,columnResizeMode:"onChange"});return(0,n.jsx)(i.kCb,{w:"full",direction:"column",maxH:"lg",children:(0,n.jsx)(f.ZK,{tableInstance:F,onRowClick:e=>c(e.id),footer:!!m&&(0,n.jsx)(f.vr,{totalColumns:2,children:(0,n.jsx)(i.kCb,{justify:"center",children:d?(0,n.jsx)(g.Z,{size:"xs"}):(0,n.jsxs)(i.kCb,{align:"center",children:[(0,n.jsxs)(i.xvT,{fontSize:"xs",mr:4,children:["Showing ",t.length," of ",a]}),(0,n.jsx)(i.wpx,{onClick:m,size:"small","data-testid":"load-more-btn",children:"Load more..."})]})})})})})};let w={items:[],total:1,page:1,size:50,pages:0};var A=(e,t)=>{let[a,n]=(0,_.useState)(2),{data:i,isLoading:s}=(0,v.oN)({page:1,size:25,connection_config_key:e}),l=(0,_.useRef)(s),{items:r,total:o}=null!=i?i:w,d=!!(null==i?void 0:i.pages)&&a>i.pages,[c,u]=(0,_.useState)(r);(0,_.useEffect)(()=>{l.current=s,u(r)},[s,r]),(0,_.useEffect)(()=>{let e=setTimeout(()=>{l.current&&t&&t()},5e3);return()=>clearTimeout(e)},[]);let[m,{isLoading:h,isFetching:p}]=(0,v.j3)(),x=h||p||s,g=async()=>{var t,i;if(d)return;let s=await m({connection_config_key:e,size:25,page:a+1});s.isError||(n(a+1),u([...c,...null!==(i=null===(t=s.data)||void 0===t?void 0:t.items)&&void 0!==i?i:[]]))};return{databases:c,totalDatabases:o,fetchMore:g,initialIsLoading:s,isLoading:x,reachedEnd:d}},I=e=>{var t;let{monitor:a,isEditing:s,isSubmitting:l,integrationKey:r,onSubmit:o,onClose:d}=e,c=(0,i.pmc)(),{databases:u,totalDatabases:m,fetchMore:h,reachedEnd:_,isLoading:p,initialIsLoading:x}=A(r,()=>{o({...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()}),y=null!==(t=null==a?void 0:a.databases)&&void 0!==t?t:[],{selected:F,excluded:f,allSelected:v,someSelected:j,handleToggleItemSelected:S,handleToggleAll:b}=(0,T.Od)({initialSelected:y,initialExcluded:[],initialAllSelected:s&&!y.length,itemCount:m}),N=!v&&0===F.length;return x?(0,n.jsx)(g.Z,{my:12}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(i.kCb,{p:4,direction:"column",children:[(0,n.jsxs)(i.kCb,{direction:"row",mb:4,gap:1,align:"center",children:[(0,n.jsx)(i.xvT,{fontSize:"sm",children:"Select projects to monitor"}),(0,n.jsx)(k.b,{label:"Selecting a project will monitor all current and future datasets within that project."})]}),(0,n.jsx)(E,{items:u,totalItemCount:m,selected:F,excluded:f,allSelected:v,someSelected:j,moreLoading:p,handleToggleSelection:S,handleToggleAll:b,onMoreClick:_?void 0:h})]}),(0,n.jsxs)("div",{className:"mt-4 flex w-full justify-between",children:[(0,n.jsx)(i.wpx,{onClick:d,children:"Cancel"}),(0,n.jsx)(i.esZ,{title:N?"Select one or more projects to save":void 0,children:(0,n.jsx)(i.wpx,{onClick:()=>{o({...a,excluded_databases:f,databases:v?[]:F})},loading:l,type:"primary","data-testid":"save-btn",disabled:N,children:"Save"})})]})]})},M=a(64892),P=a(6680),q=a(54743);function D(e,t){let a,n;let i=()=>(0,P.L)(t?.in,NaN),s=t?.additionalDigits??2,l=function(e){let t;let a={},n=e.split(U.dateTimeDelimiter);if(n.length>2)return a;if(/:/.test(n[0])?t=n[0]:(a.date=n[0],t=n[1],U.timeZoneDelimiter.test(a.date)&&(a.date=e.split(U.timeZoneDelimiter)[0],t=e.substr(a.date.length,e.length))),t){let e=U.timezone.exec(t);e?(a.time=t.replace(e[1],""),a.timezone=e[1]):a.time=t}return a}(e);if(l.date){let e=function(e,t){let a=RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+t)+"})|(\\d{2}|[+-]\\d{"+(2+t)+"})$)"),n=e.match(a);if(!n)return{year:NaN,restDateString:""};let i=n[1]?parseInt(n[1]):null,s=n[2]?parseInt(n[2]):null;return{year:null===s?i:100*s,restDateString:e.slice((n[1]||n[2]).length)}}(l.date,s);a=function(e,t){if(null===t)return new Date(NaN);let a=e.match(L);if(!a)return new Date(NaN);let n=!!a[4],i=B(a[1]),s=B(a[2])-1,l=B(a[3]),r=B(a[4]),o=B(a[5])-1;if(n)return r>=1&&r<=53&&o>=0&&o<=6?function(e,t,a){let n=new Date(0);n.setUTCFullYear(e,0,4);let i=n.getUTCDay()||7;return n.setUTCDate(n.getUTCDate()+((t-1)*7+a+1-i)),n}(t,r,o):new Date(NaN);{let e=new Date(0);return s>=0&&s<=11&&l>=1&&l<=(K[s]||(H(t)?29:28))&&i>=1&&i<=(H(t)?366:365)?(e.setUTCFullYear(t,s,Math.max(i,l)),e):new Date(NaN)}}(e.restDateString,e.year)}if(!a||isNaN(+a))return i();let r=+a,o=0;if(l.time&&isNaN(o=function(e){let t=e.match(R);if(!t)return NaN;let a=V(t[1]),n=V(t[2]),i=V(t[3]);return(24===a?0===n&&0===i:i>=0&&i<60&&n>=0&&n<60&&a>=0&&a<25)?a*M.vh+n*M.yJ+1e3*i:NaN}(l.time)))return i();if(l.timezone){if(isNaN(n=function(e){if("Z"===e)return 0;let t=e.match(O);if(!t)return 0;let a="+"===t[1]?-1:1,n=parseInt(t[2]),i=t[3]&&parseInt(t[3])||0;return i>=0&&i<=59?a*(n*M.vh+i*M.yJ):NaN}(l.timezone)))return i()}else{let e=new Date(r+o),a=(0,q.Q)(0,t?.in);return a.setFullYear(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()),a.setHours(e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds(),e.getUTCMilliseconds()),a}return(0,q.Q)(r+o+n,t?.in)}let U={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},L=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,R=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,O=/^([+-])(\d{2})(?::?(\d{2}))?$/;function B(e){return e?parseInt(e):1}function V(e){return e&&parseFloat(e.replace(",","."))||0}let K=[31,null,31,30,31,30,31,31,30,31,30,31];function H(e){return e%400==0||e%4==0&&e%100!=0}var z=a(96063),G=a(34090),Z=a(55484),W=a(97181),Y=a(40324),X=a(11013);let J=e=>{let{layout:t="stacked",...a}=e,{data:i}=(0,X.eV)({page:1,size:100}),s=null==i?void 0:i.items.map(e=>({label:e.name,value:e.id}));return(0,n.jsx)(W.d,{tooltip:"If a shared monitor config is selected, the monitor will use the shared config to classify resources",options:s,label:"Shared monitor config",layout:t,...a})};var Q=a(21910),$=e=>{var t,a,l;let{monitor:r,integrationOption:o,isSubmitting:d,databasesAvailable:c,onClose:u,onAdvance:m,onSubmit:h}=e,_=!!r,p=(0,s.useRouter)(),x=Array.isArray(p.query.id)?p.query.id[0]:p.query.id,g=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")}),y=(null==r?void 0:r.execution_start_date)?D(r.execution_start_date):Date.now(),F={name:null!==(t=null==r?void 0:r.name)&&void 0!==t?t:"",shared_config_id:null!==(a=null==r?void 0:r.shared_config_id)&&void 0!==a?a:void 0,execution_start_date:(0,z.WU)(y,"yyyy-MM-dd'T'HH:mm"),execution_frequency:null!==(l=null==r?void 0:r.execution_frequency)&&void 0!==l?l:Q.hV.MONTHLY},f=(0,j.MM)(Q.hV);return(0,n.jsx)(G.J9,{initialValues:F,enableReinitialize:!0,onSubmit:e=>{let t=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=_?{...r,...t,name:e.name,shared_config_id:e.shared_config_id}:{...t,name:e.name,shared_config_id:e.shared_config_id,connection_config_key:x,classify_params:{num_samples:25,num_threads:1}};o.identifier===Q.Rj.DYNAMODB&&(a.datasource_params={single_dataset:!1}),c?m(a):h(a)},validationSchema:g,children:e=>{let{values:t,isValid:a,resetForm:s}=e;return(0,n.jsx)(G.l0,{children:(0,n.jsxs)(i.gCW,{alignItems:"start",spacing:6,mt:4,children:[(0,n.jsx)(Y.j0,{name:"name",id:"name",label:"Name",isRequired:!0,variant:"stacked"}),(0,n.jsx)(W.d,{name:"execution_frequency",id:"execution_frequency",tooltip:"Interval to run the monitor automatically after the start date",options:f,label:"Automatic execution frequency",layout:"stacked"}),(0,n.jsx)(J,{name:"shared_config_id",id:"shared_config_id"}),(0,n.jsx)(Y.YL,{name:"execution_start_date",label:"Automatic execution start time",disabled:t.execution_frequency===Q.hV.NOT_SCHEDULED,id:"execution_start_date"}),(0,n.jsxs)("div",{className:"flex w-full justify-between",children:[(0,n.jsx)(i.wpx,{onClick:()=>{s(),u()},children:"Cancel"}),(0,n.jsx)(i.wpx,{htmlType:"submit",type:"primary",disabled:!a,loading:d,"data-testid":"next-btn",children:c?"Next":"Save"})]})]})})}})},ee=a(27693),et=a.n(ee);let ea=e=>{let{error:t,touched:a,required:s,tooltip:l,label:r,extra:o,name:d,id:c,...u}=e;return(0,n.jsx)(i.PPS.Item,{validateStatus:a&&t?"error":void 0,help:a&&t,hasFeedback:a&&!!t,required:s,tooltip:l,label:r,extra:o,htmlFor:null!=c?c:d,children:(0,n.jsx)(i.cv2,{id:null!=c?c:d,name:d,"data-testid":"input-".concat(d),style:{width:"100%",...u.style},...u})})},en=e=>{let{error:t,touched:a,required:s,tooltip:l,label:r,extra:o,name:d,id:c,...u}=e;return(0,n.jsx)(i.PPS.Item,{validateStatus:a&&t?"error":void 0,help:a&&t,hasFeedback:a&&!!t,required:s,tooltip:l,label:r,extra:o,htmlFor:null!=c?c:d,children:(0,n.jsx)(i.AOh,{id:null!=c?c:d,"data-testid":"controlled-select-".concat(d),...u})})},ei=e=>{let{error:t,touched:a,required:s,tooltip:l,label:r,extra:o,name:d,id:c,...u}=e,[m,h]=(0,_.useState)(""),p="tags"===u.mode?(e,t)=>{var a;return e?e.value!==m||(null===(a=u.value)||void 0===a?void 0:a.includes(m))?u.optionRender?u.optionRender(e,t):e.label:'Create "'.concat(m,'"'):void 0}:u.optionRender||void 0;return(0,n.jsx)(i.PPS.Item,{validateStatus:a&&t?"error":void 0,help:a&&t,hasFeedback:a&&!!t,required:s,tooltip:l,label:r,extra:o,htmlFor:null!=c?c:d,children:(0,n.jsx)(i.WPr,{id:null!=c?c:d,"data-testid":"controlled-select-".concat(d),...u,optionRender:p,onSearch:"tags"===u.mode?e=>{h(e),u.onSearch&&u.onSearch(e)}:void 0})})},es=e=>{let{error:t,touched:a,required:s,tooltip:l,label:r,extra:o,name:d,id:c,...u}=e;return(0,n.jsx)(i.PPS.Item,{validateStatus:a&&t?"error":void 0,help:a&&t,hasFeedback:a&&!!t,required:s,tooltip:l,label:r,extra:o,htmlFor:null!=c?c:d,children:(0,n.jsx)(i.uFc,{id:c||d,name:d,"data-testid":"input-".concat(d),allowClear:!0,...u})})};var el=a(90111),er=a(64781),eo=a(60325);let ed=e=>{let{data:t}=(0,X.eV)({page:1,size:100}),a=null==t?void 0:t.items.map(e=>({label:e.name,value:e.id}));return(0,n.jsx)(ei,{tooltip:"If a shared monitor config is selected, the monitor will use the shared config to classify resources",options:a,label:"Shared monitor config",...e})},ec=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 eu=e=>{var t,a,l,r,o,d,c;let{monitor:u,url:m,onClose:h,onSubmit:_}=e,p=(0,s.useRouter)(),x=Array.isArray(p.query.id)?p.query.id[0]:p.query.id,g=(null==u?void 0:u.execution_start_date)?D(u.execution_start_date):Date.now(),{data:y,isLoading:f}=(0,er.gT)(),v=[...(0,eo.TK)(null!==(r=null==y?void 0:y.locations)&&void 0!==r?r:[]),...(0,eo.TK)(null!==(o=null==y?void 0:y.location_groups)&&void 0!==o?o:[])].map(e=>({value:e,label:F.Z8[e]})),S={name:(null==u?void 0:u.name)||"",shared_config_id:null!==(d=null==u?void 0:u.shared_config_id)&&void 0!==d?d:void 0,execution_frequency:(null==u?void 0:u.execution_frequency)||Q.hV.NOT_SCHEDULED,execution_start_date:(0,z.WU)(g,"yyyy-MM-dd'T'HH:mm"),url:m,connection_config_key:x,datasource_params:null!==(c=null==u?void 0:u.datasource_params)&&void 0!==c?c:{locations:[],exclude_domains:[]}},b=async e=>{let t=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,...e,...t,key:null==u?void 0:u.key,classify_params:(null==u?void 0:u.classify_params)||{},datasource_params:e.datasource_params||{},connection_config_key:x})},{values:C,resetForm:T,handleSubmit:k,errors:N,touched:E,...w}=(0,G.TA)({initialValues:S,onSubmit:b,validationSchema:ec}),A=(0,j.MM)(Q.hV).filter(e=>[Q.hV.MONTHLY,Q.hV.QUARTERLY,Q.hV.YEARLY,Q.hV.NOT_SCHEDULED].includes(e.value));return(0,n.jsxs)(i.jqI,{vertical:!0,className:"pt-4",children:[(0,n.jsx)(el.Z,{children:(0,n.jsx)(i.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,n.jsxs)(i.PPS,{onFinish:k,layout:"vertical",children:[(0,n.jsx)(es,{name:"name",id:"name",label:"Name",required:!0,error:N.name,touched:E.name,onChange:w.handleChange,onBlur:w.handleBlur,value:C.name}),(0,n.jsx)(es,{name:"datasource_params.sitemap_url",id:"sitemap_url",label:"Sitemap URL",error:(0,G.u9)(N,"datasource_params.sitemap_url"),touched:(0,G.u9)(E,"datasource_params.sitemap_url"),onChange:w.handleChange,onBlur:w.handleBlur,value:(null===(t=C.datasource_params)||void 0===t?void 0:t.sitemap_url)||""}),(0,n.jsx)(ei,{name:"datasource_params.exclude_domains",placeholder:"Enter domains to exclude",id:"exclude_domains",label:"Exclude domains",mode:"tags",options:[],suffixIcon:null,open:!1,error:(0,G.u9)(N,"datasource_params.exclude_domains"),touched:(0,G.u9)(E,"datasource_params.exclude_domains"),onChange:e=>w.setFieldValue("datasource_params.exclude_domains",e),onBlur:w.handleBlur,value:(null===(a=C.datasource_params)||void 0===a?void 0:a.exclude_domains)||[]}),(0,n.jsx)(es,{name:"url",id:"url",label:"URL",required:!0,disabled:!0,error:N.url,touched:E.url,onChange:w.handleChange,onBlur:w.handleBlur,value:C.url||""}),(0,n.jsx)(en,{id:"locations",name:"datasource_params.locations",label:"Locations",loading:f,options:(0,i.Ky_)(v.map(e=>e.value)),required:!0,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.",mode:"multiple",error:(0,G.u9)(N,"datasource_params.locations"),touched:(0,G.u9)(E,"datasource_params.locations"),onChange:e=>w.setFieldValue("datasource_params.locations",e),onBlur:w.handleBlur,value:null===(l=C.datasource_params)||void 0===l?void 0:l.locations}),(0,n.jsx)(ed,{name:"shared_config_id",id:"shared_config_id",error:N.shared_config_id,touched:E.shared_config_id,onChange:e=>w.setFieldValue("shared_config_id",e),onBlur:w.handleBlur,value:C.shared_config_id}),(0,n.jsx)(ei,{name:"execution_frequency",id:"execution_frequency",options:A,label:"Automatic execution frequency",error:N.execution_frequency,touched:E.execution_frequency,onChange:e=>w.setFieldValue("execution_frequency",e),onBlur:w.handleBlur,value:C.execution_frequency}),(0,n.jsx)(ea,{name:"execution_start_date",label:"Automatic execution start time",disabled:C.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.",error:N.execution_start_date,touched:E.execution_start_date,onChange:e=>e&&w.setFieldValue("execution_start_date",e.toISOString()),onBlur:w.handleBlur,value:et()(C.execution_start_date)}),(0,n.jsxs)(i.jqI,{gap:"small",className:"mt-2",justify:"stretch",children:[(0,n.jsx)(i.wpx,{onClick:()=>{T(),h()},block:!0,children:"Cancel"}),(0,n.jsx)(i.wpx,{type:"primary",htmlType:"submit","data-testid":"save-btn",block:!0,children:"Save"})]})]})]})},em=a(31883),eh=e=>{let{isOpen:t,onClose:a,formStep:s,onAdvance:l,monitor:r,isEditing:o,integration:d,integrationOption:c,isWebsiteMonitor:u}=e,[m,{isLoading:h}]=(0,v.Fy)(),{data:_}=(0,v.oN)({page:1,size:25,connection_config_key:d.key}),p=!!_&&!!_.total,x=(0,i.pmc)(),{successAlert:y,errorAlert:F}=(0,S.VY)(),f=async e=>{let t;let n=setTimeout(()=>{t||(x({...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(t=await m(e)){if(clearTimeout(n),(0,em.D4)(t)){F((0,j.e$)(t.error),"Error creating monitor");return}if(o){y("Monitor updated successfully"),a();return}if(u){y(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}y("Monitor created successfully"),a()}};return u?(0,n.jsx)(b.Z,{title:(null==r?void 0:r.name)?"Configure ".concat(r.name):"Configure website monitor",isOpen:t,onClose:a,children:(0,n.jsx)(eu,{monitor:r,url:d.secrets.url,onClose:a,onSubmit:f})}):(0,n.jsxs)(b.Z,{title:(null==r?void 0:r.name)?"Configure ".concat(r.name):"Configure discovery monitor",isOpen:t,onClose:a,children:[0===s&&(0,n.jsx)($,{monitor:r,onClose:a,onAdvance:l,onSubmit:f,isSubmitting:h,databasesAvailable:p,integrationOption:c}),1===s&&(r?(0,n.jsx)(I,{monitor:r,isEditing:o,isSubmitting:h,onSubmit:f,onClose:a,integrationKey:d.key}):(0,n.jsx)(g.Z,{}))]})},e_=e=>{let{defaultSuccessMsg:t,defaultErrorMsg:a}=e,{successAlert:n,errorAlert:i}=(0,S.VY)();return{toastResult:e=>{(0,j.D4)(e)?i((0,j.e$)(e.error,a)):n(t)}}},ep=a(58452),ex=a(79494),eg=e=>{let{monitorId:t,isWebsiteMonitor:a,onEditClick:s}=e,[l]=(0,v.Sb)(),{toastResult:r}=e_({defaultErrorMsg:"A problem occurred deleting this monitor",defaultSuccessMsg:"Monitor deleted successfully"}),[o,{isLoading:d}]=(0,v.V9)(),{toastResult:c}=e_({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:t}))},{isOpen:m,onOpen:h,onClose:_}=(0,i.qY0)(),p=async()=>{c(await o({monitor_config_id:t}))};return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(ep.Z,{isOpen:m,onClose:_,onConfirm:u,title:"Delete monitor",message:"Are you sure you want to delete this discovery monitor?",continueButtonText:"Delete",isCentered:!0}),(0,n.jsxs)("div",{className:"flex gap-2",children:[(0,n.jsx)(i.esZ,{title:"Edit",children:(0,n.jsx)(i.wpx,{onClick:s,size:"small",icon:(0,n.jsx)(i.dY8,{}),"data-testid":"edit-monitor-btn","aria-label":"Edit monitor"})}),(0,n.jsx)(i.esZ,{title:"Delete",children:(0,n.jsx)(i.wpx,{onClick:h,size:"small",icon:(0,n.jsx)(i.pJl,{}),"aria-label":"Delete monitor","data-testid":"delete-monitor-btn"})}),(0,n.jsx)(ex.Z,{onClick:p,title:"Scan",loading:d})]})]})},ey=a(72625);let eF=e=>{let{row:t,getValue:a}=e,[i]=(0,v.Fy)(),s=async e=>i({...t.original,enabled:e}),l=a();return(0,n.jsx)(ey.S1,{enabled:l,onToggle:s,title:"Disabling monitor",message:"You are about to disable this monitor. If you continue, it will no longer scan automatically."})};var ef=a(51980),ev=a(16394),ej=e=>{var t,a;let{monitor:s}=e,l=null===(t=s.execution_records)||void 0===t?void 0:t[0],{isOpen:r,onOpen:o,onClose:d}=(0,i.qY0)(),c=s.last_monitored?new Date(s.last_monitored):null,u=c?(0,ev.p6)(c):"N/A",m=c?(0,ef.B)(c,new Date,{addSuffix:!0}):"N/A";return l?l.status===Q.L2.IN_PROGRESS?c?(0,n.jsx)(i.esZ,{title:"Last scan: ".concat(m),children:(0,n.jsx)(i.j8w,{color:"info",children:"Scanning"})}):(0,n.jsx)(i.j8w,{color:"info",children:"Scanning"}):l.status===Q.L2.COMPLETED?(0,n.jsx)(i.esZ,{title:u,children:(0,n.jsx)(i.j8w,{color:"success","data-testid":"tag-success",children:m})}):l.status===Q.L2.ERRORED?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(i.j8w,{color:"error",closeIcon:(0,n.jsx)(i.PJP.daM,{}),closeButtonLabel:"View details",onClose:o,"data-testid":"tag-error",children:"Incomplete"}),(0,n.jsxs)(i.dys,{isOpen:r,onClose:d,size:"md",children:[(0,n.jsx)(i.P1B,{}),(0,n.jsxs)(i.scA,{"data-testid":"error-log-drawer",children:[(0,n.jsx)(i.OXI,{children:"Failure log"}),(0,n.jsx)(i.cCv,{}),(0,n.jsxs)(i.Ng0,{children:[l.completed&&(0,n.jsx)(i.AntTypography.Paragraph,{type:"secondary",children:(0,ev.p6)(new Date(l.completed))}),null===(a=l.messages)||void 0===a?void 0:a.map((e,t)=>(0,n.jsxs)(_.Fragment,{children:[(0,n.jsx)(i.AntTypography.Paragraph,{"data-testid":"error-log-message",children:e}),t<l.messages.length-1&&(0,n.jsx)(i.izJ,{className:"mb-3"})]},t))]})]})]})]}):(0,n.jsx)(i.j8w,{children:"N/A"}):(0,n.jsx)(i.j8w,{children:"N/A"})},eS=a(40774);let eb={items:[],total:0,page:1,size:50,pages:0},eC={[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."},eT=(0,p.Cl)();var ek=e=>{var t,a;let{integration:s,integrationOption:l}=e,r=(null==l?void 0:l.identifier)===Q.Rj.WEBSITE,o=(null==l?void 0:l.type)===Q.Zi.SAAS,{PAGE_SIZES:d,pageSize:c,setPageSize:u,onPreviousPageClick:m,isPreviousPageDisabled:h,onNextPageClick:j,isNextPageDisabled:S,startRange:b,endRange:C,pageIndex:T,setTotalPages:k}=(0,f.oi)(),{isLoading:N,isFetching:E,data:w}=(0,v.Fu)({page:T,size:c,connection_config_key:s.key}),A=(0,i.qY0)(),[I,M]=(0,_.useState)(void 0),[P,q]=(0,_.useState)(!1),[D,U]=(0,_.useState)(0),L=e=>{M(e),q(!0),A.onOpen()},R=null!=w?w:eb,{items:O,total:B,pages:V}=(0,_.useMemo)(()=>R,[R]);(0,_.useEffect)(()=>{k(V)},[V,k]);let K=(0,_.useMemo)(()=>{let e=eT.accessor(e=>e.name,{id:"name",cell:e=>(0,n.jsx)(f.G3,{value:e.getValue()}),header:e=>(0,n.jsx)(f.Rr,{value:"Name",...e})}),t=eT.accessor(e=>e.databases,{id:"projects",cell:e=>{var t;return(null===(t=e.getValue())||void 0===t?void 0:t.length)===0?(0,n.jsx)(f.G3,{value:"All projects"}):(0,n.jsx)(f.WP,{suffix:"Projects",value:e.getValue(),...e,cellState:{isExpanded:!0}})},header:e=>(0,n.jsx)(f.Rr,{value:"Scope",...e})}),a=eT.accessor(()=>{let e=s.secrets;return null==e?void 0:e.url},{id:"source_url",cell:e=>{var t;return(0,n.jsx)(f.G3,{value:null!==(t=e.getValue())&&void 0!==t?t:"Not scheduled"})},header:e=>(0,n.jsx)(f.Rr,{value:"Source URL",...e})}),l=eT.accessor(e=>e.execution_frequency,{id:"frequency",cell:e=>{var t;return(0,n.jsx)(f.G3,{value:null!==(t=e.getValue())&&void 0!==t?t:"Not scheduled"})},header:e=>(0,n.jsx)(f.Rr,{value:"Scan frequency",...e})}),o=eT.display({id:"monitor_status",cell:e=>(0,n.jsx)(ej,{monitor:e.row.original}),header:e=>(0,n.jsx)(f.Rr,{value:"Scan status",...e}),meta:{disableRowClick:!0}}),d=eT.accessor(e=>{let t=e.datasource_params&&"locations"in e.datasource_params&&Array.isArray(e.datasource_params.locations)?e.datasource_params.locations:[];return(null==t?void 0:t.map(e=>{let t=(0,i.QCN)(e),a=Object.entries(Q._F).find(t=>{let[,a]=t;return a===e}),n=a&&F.Z8[a[1]];return t?(0,i.c1K)({isoEntry:t}):n}).join(", "))||"No regions selected"},{id:"regions",cell:e=>(0,n.jsx)(f.G3,{value:e.getValue()}),header:e=>(0,n.jsx)(f.Rr,{value:"Regions",...e})}),c=eT.accessor(e=>e.enabled,{id:"status",cell:eF,header:e=>(0,n.jsx)(f.Rr,{value:"Status",...e}),size:0,meta:{disableRowClick:!0}}),u=eT.display({id:"action",cell:e=>(0,n.jsx)(eg,{onEditClick:()=>L(e.row.original),isWebsiteMonitor:r,monitorId:e.row.original.key}),header:"Actions",meta:{disableRowClick:!0}});return r?[e,a,l,d,o,c,u]:[e,t,l,o,c,u]},[]),H=(0,x.b7)({getCoreRowModel:(0,p.sC)(),getGroupedRowModel:(0,p.qe)(),getExpandedRowModel:(0,p.rV)(),getRowId:e=>e.name,manualPagination:!0,data:O,columns:K,columnResizeMode:"onChange"});if(N)return(0,n.jsx)(g.Z,{});let z=null!==(t=eC[null==l?void 0:l.identifier])&&void 0!==t?t:"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.",{isDisabled:G,tooltip:Z}=o&&O.length>0?{isDisabled:!0,tooltip:"API integrations only use a single monitor"}:s.name||(null===(a=s.saas_config)||void 0===a?void 0:a.type)!=="salesforce"?{isDisabled:!1,tooltip:null}:{isDisabled:!0,tooltip:"This is a legacy connection and cannot be used to create a monitor. Create a new Salesforce integration to use this feature."};return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(i.xvT,{maxW:"720px",mb:6,fontSize:"sm","data-testid":"monitor-description",children:z}),(0,n.jsxs)(f.Q$,{children:[(0,n.jsx)(eS.Z,{}),(0,n.jsx)(i.LZC,{}),(0,n.jsx)(i.ua7,{label:Z,children:(0,n.jsx)("span",{children:(0,n.jsx)(i.wpx,{onClick:A.onOpen,icon:(0,n.jsx)(y,{}),iconPosition:"end","data-testid":"add-monitor-btn",disabled:G,children:"Add monitor"})})}),(0,n.jsx)(eh,{isOpen:A.isOpen,onClose:()=>{M(void 0),q(!1),U(0),A.onClose()},formStep:D,onAdvance:e=>{M(e),U(1)},monitor:I,isEditing:P,integration:s,integrationOption:l,isWebsiteMonitor:r})]}),(0,n.jsx)(f.ZK,{tableInstance:H,onRowClick:L,emptyTableNotice:(0,n.jsx)(()=>(0,n.jsx)(i.gCW,{mt:6,p:10,spacing:4,borderRadius:"base",maxW:"70%","data-testid":"no-results-notice",alignSelf:"center",margin:"auto",children:(0,n.jsxs)(i.gCW,{children:[(0,n.jsx)(i.xvT,{fontSize:"md",fontWeight:"600",children:"No monitors"}),(0,n.jsx)(i.xvT,{fontSize:"sm",children:'You have not configured any data discovery monitors. Click "Add monitor" to configure data discovery now.'})]})}),{})}),(0,n.jsx)(f.s8,{totalRows:B||0,pageSizes:d,setPageSize:u,onPreviousPageClick:m,isPreviousPageDisabled:h||E,onNextPageClick:j,isNextPageDisabled:S||E,startRange:b,endRange:C})]})},eN=a(41966),eE=a(32885),ew=e=>{let{integration:t}=e,{data:a}=(0,u.Eg)(t.key),{data:s}=(0,eN.LH)({minimal:!0,connection_type:Q.Rj.BIGQUERY}),[l,{isLoading:r}]=(0,eE.Qd)(),o=(0,i.pmc)(),d=async()=>{try{var e,n,i,r,d;let c=null!==(i=null==a?void 0:null===(e=a.items)||void 0===e?void 0:e.map(e=>e.fides_key))&&void 0!==i?i:[],u=null!==(r=null==s?void 0:s.map(e=>e.fides_key))&&void 0!==r?r:[],m=c.length>0?c:u,h=await l({connectionKey:t.key,datasetIds:m}),_=null!==(d=null===(n=h.data)||void 0===n?void 0:n.succeeded.length)&&void 0!==d?d:0,p="Fides has begun syncing with DataHub. There ".concat(1===_?"is":"are"," ").concat(_," dataset").concat(1===_?"":"s"," queued for syncing.");o((0,C.t5)(p))}catch(e){o({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,n.jsxs)(i.gCW,{spacing:6,align:"stretch",children:[(0,n.jsxs)(i.gCW,{spacing:4,align:"stretch",children:[(0,n.jsx)(i.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,n.jsxs)(i.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,n.jsx)(i.rUS,{href:"https://ethyca.com/docs/user-guides/integrations/saas-integrations/datahub",isExternal:!0,color:"blue.500",textDecoration:"underline",children:"here"}),"."]})]}),(0,n.jsx)(i.zxk,{colorScheme:"primary",onClick:d,"data-testid":"sync-button",width:"fit-content",isLoading:r,loadingText:"Syncing datasets...",children:"Sync Datasets"})]})},eA=a(78780),eI=a(52253);let{useGetManualTaskConfigQuery:eM,useAssignUsersToManualTaskMutation:eP,useUpdateDependencyConditionsMutation:eq}=eA.u.injectEndpoints({endpoints:e=>({getManualTaskConfig:e.query({query:e=>{let{connectionKey:t}=e;return{url:"".concat(eI.Iy,"/").concat(t,"/manual-task"),method:"GET"}},providesTags:()=>["Manual Tasks"]}),assignUsersToManualTask:e.mutation({query:e=>{let{connectionKey:t,userIds:a}=e;return{url:"".concat(eI.Iy,"/").concat(t,"/manual-task/assign-users"),method:"PUT",body:a}},invalidatesTags:()=>["Manual Tasks"]}),updateDependencyConditions:e.mutation({query:e=>{let{connectionKey:t,conditions:a}=e;return{url:"".concat(eI.Iy,"/").concat(t,"/manual-task/dependency-conditions"),method:"PUT",body:a}},invalidatesTags:()=>["Manual Tasks"]})})});var eD=a(20386);let eU=(e,t,a)=>[e,t,a].join(":"),eL=e=>{let[t,a,n]=e.split(":");return{datasetKey:t,collectionName:a,fieldPath:n}},eR=function(e,t,a){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"";return e.map(e=>{let i=n?"".concat(n).concat(".").concat(e.name):e.name,s=eU(t,a,i),l=e.fields&&e.fields.length>0;return{key:s,title:e.name,fullTitle:"".concat(a).concat(":").concat(i),value:s,isLeaf:!l,selectable:!0,children:l?eR(e.fields,t,a,i):void 0}})},eO=e=>{let{value:t,onChange:a,disabled:s=!1,excludeSaasDataset:l=!0}=e,[r,o]=(0,_.useState)(),[d,c]=(0,_.useState)(),[u,m]=(0,_.useState)([]),{data:h,isLoading:p}=(0,eD.LH)({minimal:!0,exclude_saas_datasets:l}),{data:x}=(0,eD.oM)(r,{skip:!r}),g=(0,_.useMemo)(()=>{var e;return x&&r&&(null===(e=x.collections)||void 0===e?void 0:e.map(e=>({key:"".concat(r).concat(":").concat(e.name),title:e.name,fullTitle:e.name,value:"".concat(r).concat(":").concat(e.name),isLeaf:!1,selectable:!1,children:e.fields?eR(e.fields,r,e.name,""):void 0})))||[]},[x,r]);(0,_.useEffect)(()=>{m(g),r||c(void 0)},[g,r]),(0,_.useEffect)(()=>{if(t){let{datasetKey:e,collectionName:a,fieldPath:n}=eL(t);e&&(o(e),a&&n&&c(t))}else o(void 0),c(void 0)},[t]);let y=(0,_.useMemo)(()=>h?h.map(e=>({value:e.fides_key,label:e.name||e.fides_key})):[],[h]),F=(0,_.useCallback)(e=>{o(e),c(void 0),a&&a(void 0)},[a]),f=(0,_.useCallback)(e=>{c(e),a&&a(e)},[a]);return p||(null==h?void 0:h.length)!==0?(0,n.jsxs)(i.jqI,{gap:8,"data-testid":"dataset-reference-picker",children:[(0,n.jsx)(i.WPr,{value:r,onChange:F,options:y,placeholder:"Select a dataset",disabled:s,loading:p,allowClear:!0,showSearch:!0,style:{width:"50%"},"data-testid":"dataset-select"}),(0,n.jsx)(i.wrJ,{value:d,onChange:f,treeData:u,placeholder:"Select a field",disabled:s||!r,allowClear:!0,showSearch:!0,style:{width:"50%"},treeNodeFilterProp:"title",treeNodeLabelProp:"fullTitle","data-testid":"field-tree-select"})]}):(0,n.jsx)("div",{className:"flex flex-col items-center justify-center py-4 ",children:(0,n.jsx)(i.AntTypography.Text,{children:"No datasets available. Create a dataset to start using this feature"})})},{Text:eB,Title:eV,Link:eK}=i.AntTypography,eH=()=>(0,n.jsxs)("div",{className:"px-2 text-white",children:[(0,n.jsx)(eV,{level:5,className:"mb-3",style:{color:"inherit"},children:"Operator Reference"}),(0,n.jsx)(eB,{strong:!0,className:"mb-2 block",style:{color:"inherit"},children:"All data types:"}),(0,n.jsxs)("ul",{className:"ml-2 space-y-1",children:[(0,n.jsx)("li",{children:"Equals: Exact match"}),(0,n.jsx)("li",{children:"Not equals: Does not exactly match"}),(0,n.jsxs)("li",{children:["Exists: Field can be reached"," ",(0,n.jsx)(eK,{href:"https://www.ethyca.com/docs/dev-docs/privacy-requests/execution#graph-building",target:"_blank",style:{color:"inherit",textDecoration:"underline"},children:"by the DAG"})," ","regardless of value"]}),(0,n.jsxs)("li",{children:["Does not exist: Field cannot be reached"," ",(0,n.jsx)(eK,{href:"https://www.ethyca.com/docs/dev-docs/privacy-requests/execution#graph-building",target:"_blank",style:{color:"inherit",textDecoration:"underline"},children:"by the DAG"})]})]}),(0,n.jsx)(eB,{strong:!0,className:"mb-2 mt-4 block",style:{color:"inherit"},children:"Strings/Text:"}),(0,n.jsxs)("ul",{className:"ml-2 space-y-1",children:[(0,n.jsx)("li",{children:"Starts with: Text begins with value"}),(0,n.jsx)("li",{children:"Contains: Text includes value anywhere"})]}),(0,n.jsx)(eB,{strong:!0,className:"mb-2 mt-4 block",style:{color:"inherit"},children:"Numbers:"}),(0,n.jsx)("ul",{className:"ml-2 space-y-1",children:(0,n.jsx)("li",{children:"Equals / Not equals / Greater than / Greater than or equal / Less than / Less than or equal"})}),(0,n.jsx)(eB,{strong:!0,className:"mb-2 mt-4 block",style:{color:"inherit"},children:"Array/List:"}),(0,n.jsxs)("ul",{className:"ml-2 space-y-1",children:[(0,n.jsx)("li",{children:"List contains: Value in list"}),(0,n.jsx)("li",{children:"Not in list: Value not in list"})]})]}),ez=(e,t)=>{if(e===Q.EF.EXISTS||e===Q.EF.NOT_EXISTS||!(null==t?void 0:t.trim()))return null;if("true"===t.toLowerCase())return!0;if("false"===t.toLowerCase())return!1;let a=Number(t);return Number.isNaN(a)?t:a};var eG=e=>{var t;let{onAdd:a,onCancel:s,editingCondition:l,isSubmitting:r=!1}=e,[o]=i.PPS.useForm(),d=[{label:"Equals",value:Q.EF.EQ},{label:"Not equals",value:Q.EF.NEQ},{label:"Greater than",value:Q.EF.GT},{label:"Greater than or equal",value:Q.EF.GTE},{label:"Less than",value:Q.EF.LT},{label:"Less than or equal",value:Q.EF.LTE},{label:"Exists",value:Q.EF.EXISTS},{label:"Does not exist",value:Q.EF.NOT_EXISTS},{label:"List contains",value:Q.EF.LIST_CONTAINS},{label:"Not in list",value:Q.EF.NOT_IN_LIST},{label:"Starts with",value:Q.EF.STARTS_WITH},{label:"Contains",value:Q.EF.CONTAINS}],c=l?{fieldAddress:l.field_address,operator:l.operator,value:(null===(t=l.value)||void 0===t?void 0:t.toString())||""}:{},u=(0,_.useCallback)(e=>{a({field_address:e.fieldAddress.trim(),operator:e.operator,value:ez(e.operator,e.value)})},[a]),m=(0,_.useCallback)(()=>{o.resetFields(),s()},[o,s]),h=i.PPS.useWatch("operator",o),p=h===Q.EF.EXISTS||h===Q.EF.NOT_EXISTS;return(0,_.useEffect)(()=>{p&&o.setFieldValue("value","")},[p,o]),(0,n.jsxs)(i.PPS,{form:o,onFinish:u,layout:"vertical",initialValues:c,children:[(0,n.jsx)(i.PPS.Item,{name:"fieldAddress",label:"Dataset Field",rules:[{required:!0,message:"Dataset field is required"}],tooltip:"Select a field from your datasets to use in the condition",validateTrigger:["onBlur","onSubmit"],children:(0,n.jsx)(eO,{})}),(0,n.jsx)(i.PPS.Item,{name:"operator",label:"Operator",tooltip:{placement:"right",title:(0,n.jsx)(eH,{}),styles:{root:{maxWidth:"500px"}}},rules:[{required:!0,message:"Operator is required"}],children:(0,n.jsx)(i.WPr,{placeholder:"Select operator",options:d,"data-testid":"operator-select"})}),(0,n.jsx)(i.PPS.Item,{name:"value",label:"Value",rules:[{required:!p,message:"Value is required for this operator"}],tooltip:p?"Value is not required for exists/not exists operators":"Enter the value to compare against. Can be text, number, or true/false",children:(0,n.jsx)(i.uFc,{placeholder:p?"Not required":"Enter value (text, number, or true/false)",disabled:p,"data-testid":"value-input"})}),(0,n.jsx)(i.PPS.Item,{children:(0,n.jsxs)(i.kCb,{gap:2,justify:"flex-end",children:[(0,n.jsx)(i.wpx,{onClick:m,disabled:r,"data-testid":"cancel-btn",children:"Cancel"}),(0,n.jsx)(i.wpx,{type:"primary",htmlType:"submit",loading:r,"data-testid":"save-btn",children:l?"Update":"Add"})]})})]})},eZ=e=>{let{isOpen:t,onClose:a,onConditionSaved:s,editingCondition:l}=e,{handleError:r}=(0,S.HK)(),[o,d]=(0,_.useState)(!1),c=!!l,u=async e=>{try{d(!0),await s(e),a()}catch(e){r(e)}finally{d(!1)}};return(0,n.jsxs)(i.u_l,{isCentered:!0,isOpen:t,size:"lg",onClose:a,"data-testid":"add-edit-condition-modal",children:[(0,n.jsx)(i.ZAr,{}),(0,n.jsxs)(i.hzk,{minWidth:"650px",children:[(0,n.jsx)(i.xBx,{children:c?"Edit condition":"Add condition"}),(0,n.jsx)(i.olH,{}),(0,n.jsx)(i.fef,{pb:6,children:(0,n.jsxs)(i.gCW,{align:"stretch",gap:"16px",children:[(0,n.jsx)(i.xuv,{color:"gray.700",fontSize:"14px",children:c?"Update the condition settings for task creation.":"Configure a new condition that must be met before a task is created. Select a field from your datasets to create the condition."}),(0,n.jsx)(eG,{onAdd:u,onCancel:()=>{a()},editingCondition:l,isSubmitting:o})]})})]})]})};let eW={[Q.EF.EQ]:"equals",[Q.EF.NEQ]:"not equals",[Q.EF.LT]:"less than",[Q.EF.LTE]:"less than or equal",[Q.EF.GT]:"greater than",[Q.EF.GTE]:"greater than or equal",[Q.EF.EXISTS]:"exists",[Q.EF.NOT_EXISTS]:"does not exist",[Q.EF.LIST_CONTAINS]:"list contains",[Q.EF.NOT_IN_LIST]:"not in list",[Q.EF.STARTS_WITH]:"starts with",[Q.EF.CONTAINS]:"contains",[Q.EF.LIST_INTERSECTS]:"list intersects",[Q.EF.LIST_SUBSET]:"list subset",[Q.EF.LIST_SUPERSET]:"list superset",[Q.EF.LIST_DISJOINT]:"list disjoint",[Q.EF.ENDS_WITH]:"ends with"},eY={[Q.PF.TEXT]:"Text",[Q.PF.CHECKBOX]:"Checkbox",[Q.PF.ATTACHMENT]:"Attachment"},eX={[Q.k6.ACCESS]:"Access",[Q.k6.ERASURE]:"Erasure"},eJ=(e,t,a)=>(0,_.useCallback)(async n=>{let i=0===n.length?[]:[{logical_operator:Q.RP.AND,conditions:n}];await t({connectionKey:e,conditions:i}).unwrap(),await a()},[e,t,a]),{Paragraph:eQ,Text:e$}=i.AntTypography;var e0=e=>{let{connectionKey:t}=e,[a,s]=(0,_.useState)([]),[l,r]=(0,_.useState)(!1),[o,d]=(0,_.useState)(null),[c,u]=(0,_.useState)(null),[m,h]=(0,_.useState)(null),{isOpen:p,onOpen:x,onClose:g}=(0,i.qY0)(),{data:y,isLoading:F,error:f,refetch:v}=eM({connectionKey:t},{skip:!t}),[j]=eq(),S=eJ(t,j,v);(0,_.useEffect)(()=>{(null==y?void 0:y.dependency_conditions)&&y.dependency_conditions.length>0?s(y.dependency_conditions[0].conditions.filter(e=>"field_address"in e&&"operator"in e)):s([])},[y]);let b=(0,_.useCallback)(()=>{d(null),u(null),r(!0)},[]),C=(0,_.useCallback)((e,t)=>{d(t),u(e),r(!0)},[]),T=(0,_.useCallback)(()=>{r(!1),d(null),u(null)},[]),k=(0,_.useCallback)(async e=>{let t=[];s(t=null!==c?a.map((t,a)=>a===c?e:t):[...a,e]);try{await S(t),i.Pg3.success(null!==c?"Condition updated successfully!":"Condition added successfully!")}catch(e){throw s(a),e}},[c,a,S]),N=(0,_.useCallback)((e,t)=>{h({index:e,condition:t}),x()},[x]),E=(0,_.useCallback)(async()=>{if(m){let e=a.filter((e,t)=>t!==m.index);s(e);try{await S(e),i.Pg3.success("Condition deleted successfully!")}catch(e){i.Pg3.error("Failed to delete condition. Please try again."),s(a)}h(null)}g()},[m,a,S,g]);return F?(0,n.jsx)("div",{className:"py-4",children:(0,n.jsx)(e$,{className:"text-gray-500",children:"Loading conditions..."})}):f?(0,n.jsx)("div",{className:"py-4",children:(0,n.jsx)(e$,{className:"text-red-500",children:"Failed to load conditions. Please refresh the page and try again."})}):(0,n.jsxs)("div",{children:[(0,n.jsxs)("div",{children:[(0,n.jsx)(i.AntTypography.Title,{level:5,children:"Conditional task creation"}),(0,n.jsx)(eQ,{className:"mt-2 w-2/3 text-gray-600",children:"Configure conditions that must be met before a task is created. If no conditions are set, manual tasks will be created for every incoming privacy request of the corresponding type (access or erasure)."}),(0,n.jsx)(eQ,{className:"mt-2 text-gray-600",children:(0,n.jsx)(e$,{strong:!0,children:"All conditions must be met for the task to be created."})})]}),(0,n.jsx)("div",{className:"mb-4 flex items-center justify-end gap-2",children:(0,n.jsx)(i.wpx,{type:"primary",onClick:b,"data-testid":"add-condition-btn",children:"Add condition"})}),(0,n.jsx)(i.krs,{dataSource:a,"data-testid":"conditions-list",locale:{emptyText:(0,n.jsx)("div",{className:"py-8 text-center",children:(0,n.jsx)(e$,{type:"secondary",children:"No conditions configured. Manual tasks will be created for all privacy requests."})})},renderItem:(e,t)=>(0,n.jsx)(i.krs.Item,{actions:[(0,n.jsx)(i.wpx,{type:"link",onClick:()=>C(t,e),"data-testid":"edit-condition-".concat(t,"-btn"),className:"px-1",children:"Edit"},"edit"),(0,n.jsx)(i.wpx,{type:"link",onClick:()=>N(t,e),"data-testid":"delete-condition-".concat(t,"-btn"),className:"px-1",children:"Delete"},"delete")],children:(0,n.jsx)(i.krs.Item.Meta,{title:(0,n.jsxs)(i.jqI,{gap:8,align:"center",className:"font-normal",children:[(0,n.jsx)("div",{className:"max-w-[300px]",children:(0,n.jsx)(i.esZ,{title:e.field_address,children:(0,n.jsx)(e$,{children:e.field_address.split(":").pop()})})}),(0,n.jsx)(i.j8w,{color:"sandstone",children:eW[e.operator]}),(0,n.jsx)("div",{className:"max-w-[300px]",children:null!==e.value&&void 0!==e.value&&(0,n.jsx)(e$,{ellipsis:{tooltip:String(e.value)},children:String(e.value)})})]})})},t),className:"mb-4"}),(0,n.jsx)(eZ,{isOpen:l,onClose:T,onConditionSaved:k,editingCondition:o}),(0,n.jsx)(ep.Z,{isOpen:p,onClose:()=>{h(null),g()},onConfirm:E,title:"Delete condition","data-testid":"delete-condition-modal",message:(0,n.jsxs)(e$,{className:"text-gray-500",children:["Are you sure you want to delete the condition for “",null==m?void 0:m.condition.field_address,"”? This action cannot be undone."]}),continueButtonText:"Delete",isCentered:!0,icon:(0,n.jsx)(i.aNP,{})})]})},e1=e=>{let{selectedUsers:t,userOptions:a,onUserAssignmentChange:s}=e,l=(0,_.useMemo)(()=>[...a.filter(e=>t.includes(e.value)),...a.filter(e=>!t.includes(e.value))],[a,t]);return(0,n.jsx)("div",{children:(0,n.jsxs)(i.jqI,{align:"center",gap:"middle",children:[(0,n.jsx)(i.AntTypography.Text,{strong:!0,children:"Assign manual tasks to users:"}),(0,n.jsx)(i.WPr,{className:"flex-1",placeholder:"Select users to assign manual tasks to",mode:"multiple",maxTagCount:"responsive",value:t,onChange:s,options:l,optionLabelProp:"displayName",tokenSeparators:[","],"data-testid":"assign-users-select",filterOption:(e,t)=>"string"==typeof(null==t?void 0:t.label)&&t.label.toLowerCase().includes(e.toLowerCase())||!1})]})})};let{useGetManualFieldsQuery:e3,useGetManualFieldQuery:e2,useCreateManualFieldMutation:e5,useUpdateManualFieldMutation:e6,useDeleteManualFieldMutation:e4}=eA.u.injectEndpoints({endpoints:e=>({getManualFields:e.query({query:e=>{let{connectionKey:t,requestType:a}=e;return{url:"".concat(eI.Iy,"/").concat(t,"/manual-fields")+(a?"?request_type=".concat(a):""),method:"GET"}},providesTags:()=>["Manual Fields"]}),getManualField:e.query({query:e=>{let{connectionKey:t,manualFieldId:a}=e;return{url:"".concat(eI.Iy,"/").concat(t,"/manual-field/").concat(a),method:"GET"}},providesTags:e=>[{type:"Manual Fields",id:null==e?void 0:e.id}]}),createManualField:e.mutation({query:e=>{let{connectionKey:t,body:a}=e;return{url:"".concat(eI.Iy,"/").concat(t,"/manual-field"),method:"POST",body:a}},invalidatesTags:()=>["Manual Fields"]}),updateManualField:e.mutation({query:e=>{let{connectionKey:t,manualFieldId:a,body:n}=e;return{url:"".concat(eI.Iy,"/").concat(t,"/manual-field/").concat(a),method:"PUT",body:n}},invalidatesTags:()=>["Manual Fields"]}),deleteManualField:e.mutation({query:e=>{let{connectionKey:t,manualFieldId:a}=e;return{url:"".concat(eI.Iy,"/").concat(t,"/manual-field/").concat(a),method:"DELETE"}},invalidatesTags:()=>["Manual Fields"]})})});var e8=a(3124),e7=a.n(e8);let e9=e=>{let{text:t}=e;return(0,n.jsx)(i.esZ,{title:t,children:(0,n.jsx)(i.PJP.daM,{style:{color:e7().FIDESUI_NEUTRAL_500,marginLeft:4,cursor:"help"}})})};var te=e=>{let{isSubmitting:t,onSaveClick:a,onCancel:s,editingTask:l}=e,[r]=i.PPS.useForm(),o=!!l,d=[{label:eX[Q.k6.ACCESS],value:Q.k6.ACCESS},{label:eX[Q.k6.ERASURE],value:Q.k6.ERASURE}],c=i.PPS.useWatch("requestType",r),u=c===Q.k6.ACCESS?[{label:eY[Q.PF.TEXT],value:Q.PF.TEXT},{label:eY[Q.PF.ATTACHMENT],value:Q.PF.ATTACHMENT}]:c===Q.k6.ERASURE?[{label:eY[Q.PF.CHECKBOX],value:Q.PF.CHECKBOX}]:[],m=!c||c===Q.k6.ERASURE;(0,_.useEffect)(()=>{if(o&&l){var e;r.setFieldsValue({key:(null===(e=l.originalField)||void 0===e?void 0:e.key)||"",name:l.name,description:l.description,fieldType:l.fieldType,requestType:l.requestType})}else r.resetFields()},[r,o,l]);let h=async e=>{a(e)};return(0,n.jsxs)(i.PPS,{form:r,layout:"vertical",onFinish:h,onValuesChange:e=>{void 0!==e.requestType&&(e.requestType===Q.k6.ERASURE?r.setFieldsValue({fieldType:Q.PF.CHECKBOX}):e.requestType===Q.k6.ACCESS?r.getFieldValue("fieldType")===Q.PF.CHECKBOX&&r.setFieldsValue({fieldType:void 0}):(null===e.requestType||""===e.requestType)&&r.setFieldsValue({fieldType:void 0}))},disabled:t,children:[(0,n.jsx)(i.PPS.Item,{label:(0,n.jsxs)("div",{style:{display:"flex",alignItems:"center"},children:["Task name",(0,n.jsx)(e9,{text:"A clear, descriptive name for this manual task. Example: Export user profile data"})]}),name:"name",rules:[{required:!0,message:"Please enter a task name"},{max:100,message:"Task name must be less than 100 characters"}],children:(0,n.jsx)(i.uFc,{placeholder:"Enter task name","data-testid":"input-name"})}),(0,n.jsx)(i.PPS.Item,{label:(0,n.jsxs)("div",{style:{display:"flex",alignItems:"center"},children:["Description",(0,n.jsx)(e9,{text:"Detailed instructions for completing this task. Example: Download and attach user's profile data from the customer portal"})]}),name:"description",rules:[{required:!0,message:"Please enter a description"},{max:200,message:"Description must be less than 200 characters"}],children:(0,n.jsx)(i.uFc,{placeholder:"Enter task description","data-testid":"input-description"})}),!o&&(0,n.jsx)(i.PPS.Item,{label:(0,n.jsxs)("div",{style:{display:"flex",alignItems:"center"},children:["Key",(0,n.jsx)(e9,{text:"Recommended: Unique identifier for this task that will appear in the DSR package sent to the data subject. If left empty, will be auto-generated from the task name. Example: user_data_export"})]}),name:"key",rules:[{max:50,message:"Key must be less than 50 characters"},{pattern:/^[a-z0-9_]*$/,message:"Key can only contain lowercase letters, numbers, and underscores"}],children:(0,n.jsx)(i.uFc,{placeholder:"Recommended to specify (auto-generated if empty)","data-testid":"input-key"})}),o&&(0,n.jsx)(i.PPS.Item,{label:(0,n.jsxs)("div",{style:{display:"flex",alignItems:"center"},children:["Key",(0,n.jsx)(e9,{text:"Unique identifier for this task that appears in the DSR package sent to the data subject."})]}),name:"key",children:(0,n.jsx)(i.uFc,{disabled:!0,"data-testid":"input-key-disabled"})}),(0,n.jsx)(i.PPS.Item,{label:(0,n.jsxs)("div",{style:{display:"flex",alignItems:"center"},children:["Request type",(0,n.jsx)(e9,{text:"Whether this task applies to access requests (providing data) or erasure requests (confirming deletion)"})]}),name:"requestType",rules:[{required:!0,message:"Please select a request type"}],children:(0,n.jsx)(i.WPr,{placeholder:"Select request type",options:d,"data-testid":"select-request-type"})}),(0,n.jsx)(i.PPS.Item,{label:(0,n.jsxs)("div",{style:{display:"flex",alignItems:"center"},children:["Field type",(0,n.jsx)(e9,{text:"Type of input required: Text (for written responses), Attachment (for file uploads), or Checkbox (for confirmation)"})]}),name:"fieldType",rules:[{required:!0,message:"Please select a field type"}],children:(0,n.jsx)(i.WPr,{placeholder:"Select field type",options:u,disabled:m,"data-testid":"select-field-type"})}),(0,n.jsxs)(i.kCb,{justify:"flex-end",gap:2,children:[(0,n.jsx)(i.wpx,{onClick:s,disabled:t,"data-testid":"cancel-btn",children:"Cancel"}),(0,n.jsx)(i.wpx,{type:"primary",htmlType:"submit",loading:t,"data-testid":"save-btn",children:o?"Update task":"Add task"})]})]})},tt=e=>{let{isOpen:t,onClose:a,integration:s,onTaskAdded:l,editingTask:r}=e,{successAlert:o}=(0,S.VY)(),{handleError:d}=(0,S.HK)(),[c,u]=(0,_.useState)(!1),[m]=e5(),[h]=e6(),p=!!r,x=async e=>{try{if(u(!0),p&&r){let t={label:e.name,help_text:e.description,field_type:e.fieldType,request_type:e.requestType};await h({connectionKey:s.key,manualFieldId:r.id,body:t}).unwrap(),o("Manual task updated successfully!")}else{let t={key:e.key||void 0,label:e.name,help_text:e.description,field_type:e.fieldType,request_type:e.requestType};await m({connectionKey:s.key,body:t}).unwrap(),o("Manual task added successfully!")}l(),a()}catch(e){d(e)}finally{u(!1)}};return(0,n.jsxs)(i.u_l,{isCentered:!0,isOpen:t,size:"lg",onClose:a,children:[(0,n.jsx)(i.ZAr,{}),(0,n.jsxs)(i.hzk,{minWidth:"775px","data-testid":"add-manual-task-modal",children:[(0,n.jsx)(i.xBx,{children:p?"Edit manual task":"Add manual task"}),(0,n.jsx)(i.olH,{}),(0,n.jsx)(i.fef,{pb:6,children:(0,n.jsxs)(i.gCW,{align:"stretch",gap:"16px",children:[(0,n.jsx)(i.xuv,{color:"gray.700",fontSize:"14px",children:p?"Update the manual task configuration for this integration.":"Configure a new manual task for this integration. Define the task name, description, and any specific parameters needed for execution."}),(0,n.jsx)(te,{isSubmitting:c,onSaveClick:x,onCancel:()=>{a()},editingTask:r})]})})]})]})};let ta=e=>{let{integration:t}=e,[a,n]=(0,_.useState)([]),{data:s,refetch:l}=e3({connectionKey:t?t.key:""},{skip:!t}),[r]=e4();return(0,_.useEffect)(()=>{s&&n(s.map(e=>({id:e.id,name:e.label,description:e.help_text,fieldType:e.field_type,requestType:e.request_type,originalField:e})))},[s]),{manualTasks:a,deleteManualTask:(0,_.useCallback)(async e=>{try{await r({connectionKey:t.key,manualFieldId:e.id}).unwrap(),l()}catch(e){i.Pg3.error("Failed to delete manual task. Please try again.")}},[r,t.key,l]),refreshManualTasks:(0,_.useCallback)(()=>{l()},[l]),isLoading:!s}};var tn=e=>{let{integration:t}=e,{manualTasks:a,deleteManualTask:s,refreshManualTasks:l}=ta({integration:t}),[r,o]=(0,_.useState)(null),[d,c]=(0,_.useState)(null),[u,m]=(0,_.useState)(!1),[h,p]=(0,_.useState)(!1),x=(0,_.useCallback)(async()=>{d&&await s(d),c(null),p(!1)},[d,s]),g=e=>{o(e),m(!0)},y=e=>{c(e),p(!0)};return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(i.jqI,{align:"center",justify:"end",gap:"small",className:"mt-[-25px]",children:(0,n.jsx)(i.wpx,{type:"primary",onClick:()=>{o(null),m(!0)},"data-testid":"add-manual-task-list-btn",children:"Create manual task"})}),(0,n.jsx)(i.krs,{itemLayout:"horizontal",dataSource:a,locale:{emptyText:(0,n.jsx)("div",{className:"px-4 py-2 text-center",children:(0,n.jsxs)(i.AntTypography.Paragraph,{type:"secondary",children:["No manual tasks configured yet. ",(0,n.jsx)("br",{}),'Click "Create manual task" to get started.']})})},renderItem:e=>{let t=eX[e.requestType]||e.requestType;return(0,n.jsx)(i.krs.Item,{actions:[(0,n.jsx)(i.wpx,{type:"link",onClick:()=>g(e),"data-testid":"edit-list-btn",className:"px-1",children:"Edit"},"edit"),(0,n.jsx)(i.wpx,{type:"link",onClick:()=>y(e),"data-testid":"delete-list-btn",className:"px-1",children:"Delete"},"delete")],children:(0,n.jsx)(i.krs.Item.Meta,{title:"".concat(e.name," (").concat(t,")"),description:e.description})},e.id)}}),(0,n.jsx)(tt,{isOpen:u,onClose:()=>{o(null),m(!1)},integration:t,onTaskAdded:l,editingTask:r}),(0,n.jsx)(ep.Z,{isOpen:h,onClose:()=>{c(null),p(!1)},onConfirm:x,title:"Delete manual task",message:(0,n.jsxs)("span",{className:"text-gray-500",children:['Are you sure you want to delete the manual task "',null==d?void 0:d.name,'"? This action cannot be undone.']}),continueButtonText:"Delete",isCentered:!0,icon:(0,n.jsx)(i.aNP,{})})]})},ti=a(79894),ts=a.n(ti);let{useCreateExternalUserMutation:tl}=eA.u.injectEndpoints({endpoints:e=>({createExternalUser:e.mutation({query:e=>({url:"plus/external-user",method:"POST",body:e}),invalidatesTags:["User"]})})}),{Paragraph:tr}=i.AntTypography;var to=e=>{let{isOpen:t,onClose:a,onUserCreated:s}=e,[l]=i.PPS.useForm(),[o,d]=(0,_.useState)(!1),[c]=tl(),u=(0,i.pmc)(),m=e=>e.split("@")[0].replace(/[^a-zA-Z0-9_]/g,"_"),h=async e=>{d(!0);try{let t=m(e.email_address),a=await c({username:t,email_address:e.email_address,first_name:e.first_name,last_name:e.last_name});if((0,j.D4)(a)){u((0,C.Vo)((0,j.e$)(a.error)));return}u((0,C.t5)("External respondent user created successfully. The user will receive a welcome email with access instructions.")),l.resetFields(),s()}catch(e){u((0,C.Vo)("Failed to create external user. Please try again."))}finally{d(!1)}},p=()=>{l.resetFields(),a()};return(0,n.jsxs)(i.$zI,{title:"Create external respondent user",open:t,onCancel:p,footer:null,width:500,"data-testid":"create-external-user-modal",children:[(0,n.jsxs)("div",{style:{marginBottom:16},children:[(0,n.jsx)(tr,{type:"secondary",children:"Create an external respondent user who can be assigned manual DSR tasks. These users access a secure external task portal to complete assigned tasks without logging into the Fides admin interface."}),(0,n.jsxs)(tr,{type:"secondary",children:["If you need to create an internal user that can log in to the Fides admin interface, please use the"," ",(0,n.jsx)(ts(),{href:r.e3,children:"Users page"})," instead."]})]}),(0,n.jsxs)(i.PPS,{form:l,layout:"vertical",onFinish:h,requiredMark:!1,children:[(0,n.jsx)(i.PPS.Item,{name:"email_address",label:"Email Address",rules:[{required:!0,message:"Email address is required"},{type:"email",message:"Please enter a valid email address"}],children:(0,n.jsx)(i.uFc,{placeholder:"user@example.com","data-testid":"input-email_address"})}),(0,n.jsx)(i.PPS.Item,{name:"first_name",label:"First Name",rules:[{required:!0,message:"First name is required"}],children:(0,n.jsx)(i.uFc,{"data-testid":"input-first_name"})}),(0,n.jsx)(i.PPS.Item,{name:"last_name",label:"Last Name",rules:[{required:!0,message:"Last name is required"}],children:(0,n.jsx)(i.uFc,{"data-testid":"input-last_name"})}),(0,n.jsx)(i.PPS.Item,{style:{marginBottom:0,marginTop:24},children:(0,n.jsxs)("div",{style:{display:"flex",justifyContent:"flex-end",gap:8},children:[(0,n.jsx)(i.wpx,{onClick:p,disabled:o,"data-testid":"cancel-btn",children:"Cancel"}),(0,n.jsx)(i.wpx,{type:"primary",htmlType:"submit",loading:o,"data-testid":"save-btn",children:"Create User"})]})})]})]})},td=a(65497);let tc=e=>{var t;let{integration:a}=e,[n,s]=(0,_.useState)([]),[l,r]=(0,_.useState)(!1),{isOpen:o,onOpen:d,onClose:c}=(0,i.qY0)(),{data:u}=eM({connectionKey:a?a.key:""},{skip:!a}),{data:m,refetch:h}=(0,td.wv)({page:1,size:100,username:""}),[p]=eP(),x=(null!==(t=null==m?void 0:m.items)&&void 0!==t?t:[]).map(e=>{let t=e.first_name&&e.last_name?"".concat(e.first_name||""," ").concat(e.last_name||""):null,a=t||e.email_address||e.username||"Unknown User";return{label:"".concat(t," (").concat(e.email_address||e.username,")").trim(),value:e.id,displayName:a}});(0,_.useEffect)(()=>{(null==u?void 0:u.assigned_users)&&s(u.assigned_users.map(e=>e.id).filter(e=>null!=e))},[u]);let g=(0,_.useCallback)(async e=>{r(!0);try{await p({connectionKey:a.key,userIds:null!=e?e:n}).unwrap(),i.Pg3.success("Assigned users have been updated")}catch(e){i.Pg3.error("Failed to assign users to manual task. Please try again.")}finally{r(!1)}},[p,a.key,n]);return{selectedUsers:n,userOptions:x,isSavingUsers:l,handleUserAssignmentChange:(0,_.useCallback)(e=>{s(e),g(e)},[g]),handleUserCreated:(0,_.useCallback)(()=>{h()},[h]),isCreateUserOpen:o,onCreateUserOpen:d,onCreateUserClose:c}};var tu=e=>{let{integration:t}=e,{selectedUsers:a,userOptions:s,handleUserAssignmentChange:l,handleUserCreated:r,isCreateUserOpen:o,onCreateUserOpen:d,onCreateUserClose:c}=tc({integration:t});return(0,n.jsx)("div",{children:(0,n.jsxs)(i.jqI,{vertical:!0,gap:"middle",children:[(0,n.jsx)(i.AntTypography.Paragraph,{className:"mt-2 w-2/3",children:"Configure manual tasks for this integration. Manual tasks allow you to define custom data collection or processing steps that require human intervention."}),(0,n.jsx)(tn,{integration:t}),(0,n.jsx)(i.htM,{className:"my-2"}),(0,n.jsx)(e1,{selectedUsers:a,userOptions:s,onUserAssignmentChange:l}),(0,n.jsx)(i.jqI,{justify:"start",children:(0,n.jsx)(i.wpx,{type:"default",onClick:d,"data-testid":"manage-secure-access-btn",children:"Create external user"})}),(0,n.jsx)(to,{isOpen:o,onClose:c,onUserCreated:()=>{r(),c()}})]})})},tm=a(21365),th=a(64176),t_=e=>{var t;let{isOpen:a,onClose:s,connection:l,description:r}=e,[o,d]=(0,_.useState)(null),c=(0,th.Z)(l.connection_type,null==l?void 0:null===(t=l.saas_config)||void 0===t?void 0:t.type),u=(0,n.jsxs)("div",{className:"flex w-full justify-between",children:[(0,n.jsx)(i.wpx,{onClick:s,"data-testid":"cancel-btn",children:"Cancel"}),(0,n.jsx)(i.wpx,{type:"primary",onClick:()=>{o&&o.submitForm&&o.submitForm()},disabled:!o||!o.isValid||!o.dirty,loading:null==o?void 0:o.loading,"data-testid":"save-btn",children:"Save"})]});return(0,n.jsx)(b.Z,{title:"Manage ".concat(null==l?void 0:l.name," integration"),isOpen:a,onClose:s,footer:u,children:(0,n.jsx)(tm.Z,{connection:l,connectionOption:c,onClose:s,description:r,onFormStateChange:d})})},tp=a(41553);let tx=e=>{let{connection:t,enabledFeatures:a,integrationOption:s,testData:l,needsAuthorization:r,handleAuthorize:o,testConnection:d,testIsLoading:c,description:u,overview:m,instructions:h,supportsConnectionTest:p}=e,{onOpen:x,isOpen:g,onClose:y}=(0,i.qY0)();return(0,_.useMemo)(()=>{if(!a||!a.length)return[];let e=[];return(null==a?void 0:a.includes(Q.qb.WITHOUT_CONNECTION))?e.push({label:"Details",key:"details",children:(0,n.jsxs)(i.xuv,{children:[(0,n.jsx)(i.kCb,{children:(0,n.jsx)(i.wpx,{onClick:x,"data-testid":"manage-btn",children:"Edit integration"})}),(0,n.jsx)(t_,{isOpen:g,onClose:y,connection:t,description:u}),m,h]})}):e.push({label:"Connection",key:"connection",children:(0,n.jsxs)(i.xuv,{children:[p&&(0,n.jsxs)(i.kCb,{borderRadius:"md",outline:"1px solid",outlineColor:"gray.100",align:"center",p:3,children:[(0,n.jsx)(i.kCb,{flexDirection:"column",children:(0,n.jsx)(tp.Z,{testData:l,connectionOption:s})}),(0,n.jsx)(i.LZC,{}),(0,n.jsxs)("div",{className:"flex gap-4",children:[r&&(0,n.jsx)(i.wpx,{onClick:o,"data-testid":"authorize-integration-btn",children:"Authorize integration"}),!r&&(0,n.jsx)(i.wpx,{onClick:d,loading:c,"data-testid":"test-connection-btn",children:"Test connection"}),(0,n.jsx)(i.wpx,{onClick:x,"data-testid":"manage-btn",children:"Manage"})]})]}),(0,n.jsx)(t_,{isOpen:g,onClose:y,connection:t,description:u}),m,h]})}),(null==a?void 0:a.includes(Q.qb.DATA_SYNC))&&e.push({label:"Data sync",key:"data-sync",children:(0,n.jsx)(ew,{integration:t})}),(null==a?void 0:a.includes(Q.qb.DATA_DISCOVERY))&&e.push({label:"Data discovery",key:"data-discovery",children:(0,n.jsx)(ek,{integration:t,integrationOption:s})}),(null==a?void 0:a.includes(Q.qb.TASKS))&&e.push({label:"Manual tasks",key:"manual-tasks",children:(0,n.jsx)(tu,{integration:t})}),(null==a?void 0:a.includes(Q.qb.CONDITIONS))&&e.push({label:"Conditions",key:"conditions",children:(0,n.jsx)(e0,{connectionKey:t.key})}),e},[t,a,s,l,r,o,d,c,x,g,y,u,m,h,p])};var tg=a(93633),ty=a(75595);let tF=e=>{let{connection:t,connectionOption:a}=e,{data:n}=e3({connectionKey:t?t.key:""},{skip:!t});if((null==a?void 0:a.identifier)!==Q.Rj.MANUAL_TASK)return null;let i=n&&n.length>0;return{title:"Add a manual task",description:i?"Manual tasks have been configured":"Configure a manual task for this integration. ",state:i?"finish":"process"}},tf=e=>{let{connection:t,connectionOption:a}=e,{data:n}=eM({connectionKey:t?t.key:""},{skip:!t});if((null==a?void 0:a.identifier)!==Q.Rj.MANUAL_TASK)return null;let i=!!((null==n?void 0:n.assigned_users)&&n.assigned_users.length>0);return{title:"Assign the tasks to users",description:i?"Tasks have been assigned to users":"Assign the configured manual tasks to one or more users.",state:i?"finish":"process"}},tv=e=>{let{testData:t,connectionOption:a}=e;return(null==a?void 0:a.authorization_required)?{title:"Authorize integration",description:(0,n.jsx)("span",{children:(null==t?void 0:t.authorized)?"Integration authorized successfully":"Authorize access to your integration"}),state:(null==t?void 0:t.authorized)?"finish":"process"}:null},tj=()=>({title:"Create integration",description:"Integration created successfully",state:"finish"});var tS=a(87174);let tb=e=>{var t,a,n,i;let{enabledFeatures:s}=(0,h.ZP)(e.connection.connection_type,null===(t=e.connection.saas_config)||void 0===t?void 0:t.type),l=null==s?void 0:s.includes(tS.q.DATA_DISCOVERY),{data:r}=(0,v.Fu)({connection_config_key:null===(a=e.testData)||void 0===a?void 0:a.connectionKey,page:1,size:1},{skip:!(null===(n=e.testData)||void 0===n?void 0:n.connectionKey)||!l});if(!l)return null;let o=!!(null==r?void 0:null===(i=r.items)||void 0===i?void 0:i.length);return{title:"Create monitor",description:o?"Data monitor created successfully":"Use the Data discovery tab in this page to add a new monitor",state:o?"finish":"process"}},tC=e=>{let{connection:t}=e,a=!!(null==t?void 0:t.system_key);if((null==t?void 0:t.connection_type)===Q.Rj.WEBSITE)return null;let s=a?r.Dv.replace("[id]",t.system_key):r.So;return{title:"Link system",description:a?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(ts(),{href:s,passHref:!0,children:(0,n.jsx)(i.FKJ,{children:"System linked"})})," ","successfully"]}):(0,n.jsxs)(n.Fragment,{children:["Link this integration in the"," ",(0,n.jsx)(ts(),{href:s,passHref:!0,children:(0,n.jsx)(i.FKJ,{children:"system inventory"})}),'. Navigate to the appropriate system and within the integration tab select "Link integration".']}),state:a?"finish":"process"}},tT=e=>{let{testData:t,testIsLoading:a,connectionOption:s,connection:l}=e,r=tj(),o=tv({testData:t,testIsLoading:a,connection:l,connectionOption:s}),d=tb({testData:t,testIsLoading:a,connection:l,connectionOption:s}),c=tF({testData:t,testIsLoading:a,connection:l,connectionOption:s}),u=tf({testData:t,testIsLoading:a,connection:l,connectionOption:s}),m=tC({testData:t,testIsLoading:a,connection:l,connectionOption:s}),h=(0,_.useMemo)(()=>[r,o,d,c,u,m].filter(e=>null!==e),[r,o,d,c,u,m]),p=(0,_.useMemo)(()=>h.map(e=>({...e,icon:"finish"===e.state?(0,n.jsx)(i.PJP.WzW,{size:24}):void 0})),[h]);return(0,n.jsx)(i.V4A,{title:"Integration setup","data-testid":"integration-setup-card",children:(0,n.jsx)(i.XX8,{direction:"vertical",current:(()=>{let e=h.findIndex(e=>"finish"!==e.state);return -1===e&&h.length>0?h.length-1:e})(),status:(()=>{let e=h.findIndex(e=>"finish"!==e.state);return -1===e?"finish":h[e].state})(),items:p,size:"small"})})};var tk=()=>{var e,t,a,_;let p=(0,s.useRouter)(),x=p.query.id,{data:g,isLoading:y}=(0,u.jA)(x,{skip:!x}),{data:F}=(0,c.$I)({}),f=(null==F?void 0:F.items)||[],v=(0,th.Z)(null==g?void 0:g.connection_type,null==g?void 0:null===(e=g.saas_config)||void 0===e?void 0:e.type),{testData:j,testConnection:S,isLoading:b}=(0,m.Z)(g),{handleAuthorize:C,needsAuthorization:T}=(0,tg.z)({connection:g,connectionOption:v,testData:j}),k=(0,h.ZP)(null==g?void 0:g.connection_type,null==g?void 0:null===(t=g.saas_config)||void 0===t?void 0:t.type,f),{overview:N,instructions:E,description:w,enabledFeatures:A}=k;g&&!h.jq.includes(g.connection_type)&&p.push(r.KH);let I=(null==g?void 0:g.connection_type)!==Q.Rj.MANUAL_TASK,M=tx({connection:g,enabledFeatures:A,integrationOption:v,testData:j,needsAuthorization:T,handleAuthorize:C,testConnection:S,testIsLoading:b,description:w,overview:N,instructions:E,supportsConnectionTest:I}),{activeTab:P,onTabChange:q}=(0,d.Z)({tabKeys:M.map(e=>e.key)});return(0,n.jsxs)(l.Z,{title:"Integrations",children:[(0,n.jsx)(o.Z,{heading:"Integrations",breadcrumbItems:[{title:"All integrations",href:r.KH},{title:null!==(_=null!==(a=null==g?void 0:g.name)&&void 0!==a?a:null==g?void 0:g.key)&&void 0!==_?_:""}]}),(0,n.jsxs)(i.jqI,{gap:24,children:[(0,n.jsxs)("div",{className:"grow",children:[(0,n.jsx)("div",{className:"mb-6",children:(0,n.jsx)(ty.Z,{integration:g,integrationTypeInfo:k,showDeleteButton:!0})}),y?(0,n.jsx)(i.$jN,{}):!!g&&(0,n.jsx)(i.A5g,{items:M,activeKey:P,onChange:q})]}),(0,n.jsx)("div",{className:"w-[350px] shrink-0",children:y?(0,n.jsx)(i.$jN,{}):!!g&&(0,n.jsx)(tT,{testData:j,testIsLoading:b,connectionOption:v,connection:g})})]})]})}}},function(e){e.O(0,[8765,431,9278,5163,699,3662,1316,7045,5279,155,2888,9774,179],function(){return e(e.s=50697)}),_N_E=e.O()}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[710],{66726:function(e,t,n){var i=n(11611),r=n(82846),a=n(91936),o=Math.max,s=Math.min;e.exports=function(e,t,n){var l,u,c,d,g,p,f=0,m=!1,h=!1,v=!0;if("function"!=typeof e)throw TypeError("Expected a function");function x(t){var n=l,i=u;return l=u=void 0,f=t,d=e.apply(i,n)}function y(e){var n=e-p,i=e-f;return void 0===p||n>=t||n<0||h&&i>=c}function j(){var e,n,i,a=r();if(y(a))return C(a);g=setTimeout(j,(e=a-p,n=a-f,i=t-e,h?s(i,c-n):i))}function C(e){return(g=void 0,v&&l)?x(e):(l=u=void 0,d)}function w(){var e,n=r(),i=y(n);if(l=arguments,u=this,p=n,i){if(void 0===g)return f=e=p,g=setTimeout(j,t),m?x(e):d;if(h)return clearTimeout(g),g=setTimeout(j,t),x(p)}return void 0===g&&(g=setTimeout(j,t)),d}return t=a(t)||0,i(n)&&(m=!!n.leading,c=(h="maxWait"in n)?o(a(n.maxWait)||0,t):c,v="trailing"in n?!!n.trailing:v),w.cancel=function(){void 0!==g&&clearTimeout(g),f=0,l=p=u=g=void 0},w.flush=function(){return void 0===g?d:C(r())},w}},82846:function(e,t,n){var i=n(77400);e.exports=function(){return i.Date.now()}},9387:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/integrations",function(){return n(31912)}])},30952:function(e,t,n){"use strict";n.d(t,{f:function(){return l}});var i=n(24246),r=n(66726),a=n.n(r),o=n(27378),s=n(26917);let l=e=>{let{value:t,onChange:n,placeholder:r,...l}=e,[u,c]=(0,o.useState)(t);(0,o.useEffect)(()=>{c(t||"")},[t]);let d=a()(n,500),g=(0,o.useCallback)(e=>{c(e),d(e)},[]);return(0,i.jsx)(s.Z,{value:u,onChange:g,onClear:()=>{c(""),n("")},placeholder:r,...l})}},77213:function(e,t,n){"use strict";n.d(t,{Z:function(){return p}});var i=n(24246),r=n(96306),a=n(88038),o=n.n(a),s=n(86677);n(27378);var l=n(25980),u=n(90867),c=n(42478),d=n(77830),g=()=>{let e=(0,s.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.AD)},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."," "]})]})})},p=e=>{let{children:t,title:n,padded:a=!0,mainProps:d}=e,p=(0,l.hz)(),f=(0,s.useRouter)(),m="/privacy-requests"===f.pathname||"/datastore-connection"===f.pathname,h=!(p.flags.messagingConfiguration&&m),{data:v}=(0,c.JE)(void 0,{skip:h}),{data:x}=(0,u.PW)(void 0,{skip:h}),y=p.flags.messagingConfiguration&&(!v||!x)&&m;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:a?6:0,px:a?10:0,h:a?"calc(100% - 48px)":"full",flex:1,minWidth:0,overflow:"auto",...d,children:[y?(0,i.jsx)(g,{}):null,t]})]})}},17245:function(e,t,n){"use strict";n.d(t,{HK:function(){return o},VY:function(){return r.V},pI:function(){return c},h0:function(){return i.h},Rx:function(){return p},rK:function(){return m}});var i=n(36866),r=n(84306),a=n(812);let o=()=>{let{errorAlert:e}=(0,r.V)();return{handleError:t=>{let n="An unexpected error occurred. Please try again.";(0,a.Ot)(t)?n=t.data.detail:(0,a.tB)(t)&&(n=t.data.detail[0].msg),e(n)}}};var s=n(27378),l=n(20682),u=n(21910);let c=e=>{let{data:t}=(0,l.$I)({}),n=(0,s.useMemo)(()=>(null==t?void 0:t.items)||[],[t]);return(0,s.useMemo)(()=>{var t;if(!e)return"";if(e.connection_type===u.Rj.SAAS&&(null===(t=e.saas_config)||void 0===t?void 0:t.type)){let t=n.find(t=>{var n;return t.identifier===(null===(n=e.saas_config)||void 0===n?void 0:n.type)});if(t)return t}return e},[e,n])};var d=n(40431);let g=()=>({search:d.Oi.withDefault("")}),p=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{defaultSearchQuery:t,onSearchChange:n}=e,i=(0,s.useMemo)(()=>g(),[]),[r,a]=(0,d.XI)(i,{history:"push"}),o=(0,s.useMemo)(()=>({searchQuery:r.search||t||void 0}),[r,t]),l=(0,s.useCallback)(e=>{a({search:e||null})},[a]),u=(0,s.useCallback)(()=>{a({search:null})},[a]);return(0,s.useEffect)(()=>{n&&n(o)},[o,n]),{...o,updateSearch:l,resetSearch:u,searchProps:{value:o.searchQuery||"",onChange:l,onClear:()=>l("")}}},f=e=>({sortKey:e?(0,d.jx)([...e]):d.Oi.withDefault(""),sortOrder:(0,d.km)(["ascend","descend"])}),m=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{defaultSortKey:t,defaultSortOrder:n,onSortingChange:i,validColumns:r}=e,a=(0,s.useMemo)(()=>f(r),[r]),[o,l]=(0,d.XI)(a,{history:"push"}),u=(0,s.useMemo)(()=>{var e;return{sortKey:o.sortKey||t,sortOrder:null!==(e=o.sortOrder)&&void 0!==e?e:n}},[o,t,n]),c=(0,s.useCallback)((e,t)=>{l({sortKey:e?String(e):null,sortOrder:null!=t?t:null})},[l]),g=(0,s.useCallback)(()=>{l({sortKey:null,sortOrder:null})},[l]);return(0,s.useEffect)(()=>{i&&i(u)},[u,i]),{...u,updateSorting:c,resetSorting:g,sortingProps:{sortDirections:["ascend","descend"],defaultSortOrder:u.sortOrder,sortedInfo:u.sortKey?{field:u.sortKey,order:u.sortOrder}:void 0}}}},84306:function(e,t,n){"use strict";n.d(t,{V:function(){return a}});var i=n(24246),r=n(96306);let a=()=>{let e=(0,r.pmc)();return{errorAlert:(t,n,a)=>{let o={...a,position:(null==a?void 0:a.position)||"top",render:e=>{let{onClose:a}=e;return(0,i.jsxs)(r.bZj,{alignItems:"normal",status:"error","data-testid":"error-alert",children:[(0,i.jsx)(r.zMQ,{}),(0,i.jsxs)(r.xuv,{children:[n&&(0,i.jsx)(r.CdC,{children:n}),(0,i.jsx)(r.XaZ,{children:t})]}),(0,i.jsx)(r.PZ7,{onClick:a,position:"relative",right:0,size:"sm",top:-1})]})}};(null==a?void 0:a.id)&&e.isActive(a.id)?e.update(a.id,o):e(o)},successAlert:(t,n,a)=>{let o={...a,position:(null==a?void 0:a.position)||"top",render:e=>{let{onClose:a}=e;return(0,i.jsxs)(r.bZj,{alignItems:"normal",status:"success",variant:"subtle","data-testid":"success-alert",children:[(0,i.jsx)(r.zMQ,{}),(0,i.jsxs)(r.xuv,{children:[n&&(0,i.jsx)(r.CdC,{children:n}),(0,i.jsx)(r.XaZ,{children:t})]}),(0,i.jsx)(r.PZ7,{onClick:a,position:"relative",right:0,size:"sm",top:-1})]})}};(null==a?void 0:a.id)&&e.isActive(a.id)?e.update(a.id,o):e(o)}}}},36866:function(e,t,n){"use strict";n.d(t,{h:function(){return u}});var i=n(40431),r=n(27378),a=n(55484);let o=(0,i.jo)({parse(e){let t=parseInt(e,10);try{return a.Rx().integer().positive().validateSync(t),t}catch(e){return null}},serialize:e=>e.toString()});var s=n(32735);let l=function(){var e,t;let n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{page:o.withDefault(s.Ej),size:n.pageSizeOptions?(0,i.bJ)(n.pageSizeOptions).withDefault(null!==(e=n.pageSize)&&void 0!==e?e:s.L8):o.withDefault(null!==(t=n.pageSize)&&void 0!==t?t:s.L8)}},u=function(){var e,t;let n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{defaultPageSize:a=s.L8,pageSizeOptions:o,showSizeChanger:u=!0}=n,c=null!=o?o:s.VZ,d=(0,r.useMemo)(()=>l({pageSize:a,pageSizeOptions:o}),[a,o]),[g,p]=(0,i.XI)(d,{history:"push"}),f={pageIndex:null!==(e=g.page)&&void 0!==e?e:s.Ej,pageSize:null!==(t=g.size)&&void 0!==t?t:a};return{...f,updatePageIndex:e=>{p({page:e})},updatePageSize:e=>{p({page:e!==f.pageSize?s.Ej:f.pageIndex,size:e})},resetPagination:()=>{p({page:s.Ej,size:a})},nextPage:()=>{p(e=>{let{page:t,size:n}=e;return{page:t+1,size:n}})},previousPage:()=>{p(e=>{let{page:t,size:n}=e;return{page:t-1,size:n}})},pageSizeOptions:c,showSizeChanger:u}}},42478:function(e,t,n){"use strict";n.d(t,{FU:function(){return u},JE:function(){return r},Ki:function(){return d},SU:function(){return g},W:function(){return p},h9:function(){return a},jc:function(){return i},qt:function(){return l},sn:function(){return c}});let{useGetEmailInviteStatusQuery:i,useGetActiveMessagingProviderQuery:r,useCreateMessagingConfigurationMutation:a,useCreateMessagingConfigurationSecretsMutation:o,useGetMessagingConfigurationDetailsQuery:s,useGetMessagingConfigurationsQuery:l,useGetMessagingConfigurationByKeyQuery:u,useUpdateMessagingConfigurationByKeyMutation:c,useUpdateMessagingConfigurationSecretsByKeyMutation:d,useCreateTestConnectionMessageMutation:g,useDeleteMessagingConfigurationByKeyMutation:p}=n(78780).u.injectEndpoints({endpoints:e=>({getEmailInviteStatus:e.query({query:()=>({url:"/messaging/email-invite/status"}),providesTags:()=>["Email Invite Status"]}),createMessagingConfiguration:e.mutation({query:e=>({url:"messaging/config",method:"POST",body:e}),invalidatesTags:["Messaging Config","Configuration Settings"]}),getActiveMessagingProvider:e.query({queryFn:async(e,t,n,i)=>{let r=await i({url:"messaging/default/active"});return r.error&&404===r.error.status?{data:null}:r},providesTags:["Messaging Config"]}),createMessagingConfigurationSecrets:e.mutation({query:e=>({url:"messaging/default/".concat(e.service_type,"/secret"),method:"PUT",body:e.details}),invalidatesTags:["Messaging Config","Configuration Settings"]}),getMessagingConfigurationDetails:e.query({query:e=>({url:"messaging/default/".concat(e.type)}),providesTags:["Messaging Config"]}),getMessagingConfigurations:e.query({query:()=>({url:"messaging/config"}),providesTags:["Messaging Config"]}),getMessagingConfigurationByKey:e.query({query:e=>({url:"messaging/config/".concat(e.key)}),providesTags:["Messaging Config"]}),createTestConnectionMessage:e.mutation({query:e=>({url:"messaging/test/".concat(e.service_type),method:"POST",body:e.details}),invalidatesTags:["Messaging Config"]}),updateMessagingConfigurationByKey:e.mutation({query:e=>({url:"messaging/config/".concat(e.key),method:"PATCH",body:e.config}),invalidatesTags:["Messaging Config","Configuration Settings"]}),updateMessagingConfigurationSecretsByKey:e.mutation({query:e=>({url:"messaging/config/".concat(e.key,"/secret"),method:"PUT",body:e.secrets}),invalidatesTags:["Messaging Config","Configuration Settings"]}),deleteMessagingConfigurationByKey:e.mutation({query:e=>({url:"messaging/config/".concat(e.key),method:"DELETE"}),invalidatesTags:["Messaging Config","Configuration Settings"]})})})},31912:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return Z}});var i,r,a=n(24246),o=n(96306),s=n(86677),l=n(27378),u=n(30952),c=n(25980),d=n(18225),g=n(17245),p=n(77213),f=n(77830),m=n(58754),h=n(16394),v=n(20682),x=n(41337),y=n(14207),j=n(8133),C=n(38187),w=n(21365),b=n(75595),k=e=>{let{integrationType:t,onConfigure:n}=e;return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(b.Z,{integration:null==t?void 0:t.placeholder,integrationTypeInfo:t,onConfigureClick:n}),null==t?void 0:t.overview]})},S=e=>{let t=(0,l.useRef)(null);return(0,l.useEffect)(()=>{let n=n=>{!t.current||t.current.contains(n.target)||n.target.closest('button, [role="button"], a, input, select, textarea')||e()};return document.addEventListener("mousedown",n),()=>{document.removeEventListener("mousedown",n)}},[e]),t},T=n(35030),_=e=>{var t;let{integration:n,integrationTypeInfo:i,selected:r=!1,onClick:s,onDetailsClick:l,onUnfocus:u}=e,c=(0,g.pI)(n),d=i||(0,C.ZP)(null==n?void 0:n.connection_type,null==n?void 0:null===(t=n.saas_config)||void 0===t?void 0:t.type),p=S(()=>{r&&u&&u()});return(0,a.jsxs)(o.xuv,{ref:p,borderWidth:1,borderColor:r?"black":"gray.200",backgroundColor:r?"gray.50":"transparent",boxShadow:r?"md":"none",borderRadius:"lg",overflow:"hidden",padding:"12px",cursor:"pointer",onClick:s,"data-testid":"integration-info-".concat(null==n?void 0:n.key),children:[(0,a.jsx)(o.kCb,{justifyContent:"space-between",alignItems:"flex-start",width:"100%",children:(0,a.jsxs)(o.kCb,{flexGrow:1,width:"100%",children:[(0,a.jsx)(x.Z,{data:null!=c?c:"",boxSize:"40px",className:"shrink-0"}),(0,a.jsxs)(o.kCb,{direction:"column",flexGrow:1,flexShrink:1,marginLeft:"12px",marginRight:"12px",width:0,children:[(0,a.jsx)(o.AntTypography.Text,{strong:!0,style:{color:"var(--chakra-colors-gray-700)",fontSize:"14px"},ellipsis:{tooltip:(null==n?void 0:n.name)||"(No name)"},children:(null==n?void 0:n.name)||"(No name)"}),(0,a.jsx)(o.xvT,{color:"gray.600",fontSize:"xs",mt:1,children:(0,T.qS)(d.category)})]}),l&&(0,a.jsx)(o.wpx,{size:"small",onClick:e=>{e.stopPropagation(),l()},type:"default",className:"shrink-0 px-2 py-1 text-xs","data-testid":"details-btn-".concat(null==n?void 0:n.key),children:"Details"})]})}),(0,a.jsxs)(o.Eq9,{marginTop:"12px",spacing:1,children:[d.tags.slice(0,3).map(e=>(0,a.jsx)(o.j8w,{children:e},e)),d.tags.length>3&&(0,a.jsxs)(o.j8w,{color:"corinth",children:["+",d.tags.length-3]})]})]})},I=n(21910),M=n(28946),A=e=>{let{selectedIntegration:t,onSelectIntegration:n,onDetailClick:i}=e,[r,s]=(0,l.useState)(""),[u,g]=(0,l.useState)("ALL"),[p,f]=(0,l.useState)(!1),{flags:{oktaMonitor:m,newIntegrationManagement:h}}=(0,c.Vb)(),{data:x}=(0,v.$I)({}),y=(0,l.useMemo)(()=>(null==x?void 0:x.items)||[],[x]),j=(0,l.useMemo)(()=>{let e=C.FO;h||(e=e.filter(e=>e.placeholder.connection_type!==I.Rj.SAAS));let t=new Set(e.filter(e=>e.placeholder.connection_type===I.Rj.SAAS).map(e=>{var t;return null===(t=e.placeholder.saas_config)||void 0===t?void 0:t.type}));return[...e,...h?y.filter(e=>"saas"===e.type&&!t.has(e.identifier)).map(e=>(0,C.ZP)(I.Rj.SAAS,e.identifier,y)):[]]},[y,h]),w=(0,l.useMemo)(()=>{let e=["ALL",...Object.values(M.k).filter(e=>e!==M.k.IDENTITY_PROVIDER||m)];return h?e:e.filter(e=>"ALL"===e?j.length>0:j.some(t=>t.category===e))},[m,h,j]),b=(0,l.useMemo)(()=>{let e=j;if("ALL"!==u&&(e=e.filter(e=>e.category===u)),r.trim()){let t=r.toLowerCase();e=e.filter(e=>(e.placeholder.name||"").toLowerCase().includes(t))}return(e=e.filter(e=>!!m||"okta"!==e.placeholder.connection_type)).sort((e,t)=>{let n=e.placeholder.name||"",i=t.placeholder.name||"";return n.localeCompare(i)})},[r,u,m,j]),k=w.map(e=>"ALL"===e?{label:"All",value:e}:{label:(0,T.qS)(e),value:e}).sort((e,t)=>"All"===e.label?-1:"All"===t.label?1:e.label.localeCompare(t.label));return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("div",{className:"mb-4 mt-3 flex items-center justify-between gap-4",children:[(0,a.jsx)(o.uFc,{placeholder:"Search by name...",value:r,onChange:e=>s(e.target.value),className:"w-64",allowClear:!0}),(0,a.jsx)(o.WPr,{value:u,onChange:e=>{f(!0),g(e),setTimeout(()=>f(!1),100)},options:k,className:"w-48",placeholder:"Select category","data-testid":"category-filter-select"})]}),p?(0,a.jsx)(d.Z,{}):(0,a.jsx)("div",{className:"grid grid-cols-3 gap-6",children:b.map(e=>(0,a.jsx)("div",{children:(0,a.jsx)(_,{integration:e.placeholder,integrationTypeInfo:e,selected:(null==t?void 0:t.placeholder.key)===e.placeholder.key,onClick:()=>{n((null==t?void 0:t.placeholder.key)===e.placeholder.key?void 0:e)},onDetailsClick:()=>i(e),onUnfocus:()=>n(void 0)})},e.placeholder.key))})]})},E=n(64176);(i=r||(r={})).LIST_VIEW="list-view",i.DETAIL="detail",i.FORM="form";var z=e=>{var t,n,i;let{isOpen:r,onClose:s}=e,[u,c]=(0,l.useState)("list-view"),[d,g]=(0,l.useState)(null),[p,f]=(0,l.useState)(),[m,h]=(0,l.useState)(null),v=(0,E.Z)(null==p?void 0:p.placeholder.connection_type,null==p?void 0:null===(n=p.placeholder)||void 0===n?void 0:null===(t=n.saas_config)||void 0===t?void 0:t.type),{description:x}=(0,C.ZP)(null==p?void 0:p.placeholder.connection_type,null==p?void 0:null===(i=p.placeholder.saas_config)||void 0===i?void 0:i.type),y=()=>{c("list-view"),g(null),f(void 0),h(null),s()},b=()=>{g("detail"),c("form")},S=p&&"list-view"!==u?"".concat(p.placeholder.name," Integration"):"Add integration",T="list-view"===u?(0,a.jsxs)("div",{className:"flex w-full justify-between",children:[(0,a.jsx)(o.wpx,{onClick:y,children:"Cancel"}),(0,a.jsx)(o.wpx,{type:"primary",onClick:()=>{"list-view"===u&&p&&(g("list-view"),c("form"))},disabled:!p,children:"Next"})]}):"detail"===u?(0,a.jsxs)("div",{className:"flex w-full justify-between",children:[(0,a.jsx)(o.wpx,{onClick:()=>c("list-view"),children:"Back"}),(0,a.jsx)(o.wpx,{onClick:b,type:"primary","data-testid":"configure-modal-btn",children:"Next"})]}):"form"===u?(0,a.jsxs)("div",{className:"flex w-full justify-between",children:[(0,a.jsx)(o.wpx,{onClick:()=>{d&&(c(d),g(null))},children:"Back"}),(0,a.jsx)(o.wpx,{type:"primary",onClick:()=>{m&&m.submitForm&&m.submitForm()},disabled:!m||!m.isValid||!m.dirty,loading:null==m?void 0:m.loading,"data-testid":"save-btn",children:"Save"})]}):null;return(0,a.jsxs)(j.Z,{isOpen:r,onClose:y,title:S,scrollBehavior:"inside",showCloseButton:!0,modalContentProps:{height:"700px",maxWidth:"1010px"},footer:T,children:["list-view"===u&&(0,a.jsx)(A,{selectedIntegration:p,onSelectIntegration:e=>{f(e)},onDetailClick:e=>{c("detail"),f(e)}}),"detail"===u&&(0,a.jsx)(k,{integrationType:p,onConfigure:b}),"form"===u&&(0,a.jsx)(w.Z,{connectionOption:v,onClose:y,description:x,onFormStateChange:h})]})},P=n(40774);let N=e=>{let{integration:t}=e,n=(0,g.pI)(t);return(0,a.jsx)(x.Z,{data:n,boxSize:"20px"})};var Z=()=>{let[e,t]=(0,l.useState)(1),[n,i]=(0,l.useState)(50),[r,g]=(0,l.useState)(""),x=(0,s.useRouter)(),{flags:{newIntegrationManagement:j}}=(0,c.Vb)(),w=(0,l.useCallback)(r=>{(null==r?void 0:r.current)!==e&&t(r.current),(null==r?void 0:r.pageSize)&&r.pageSize!==n&&i(r.pageSize)},[e,n]),{data:b}=(0,v.$I)({}),k=(0,l.useMemo)(()=>(null==b?void 0:b.items)||[],[b]),S=(0,l.useMemo)(()=>j?C.jq:C.jq.filter(e=>e!==I.Rj.SAAS),[j]),{data:T,isLoading:_}=(0,y.AZ)({connection_type:S,size:n,page:e,search:r.trim()||void 0}),{items:M}=null!=T?T:{},{onOpen:A,isOpen:E,onClose:Z}=(0,o.qY0)(),q=(0,l.useMemo)(()=>{var e;return null!==(e=null==M?void 0:M.map(e=>{var t;return{...e,integrationTypeInfo:(0,C.ZP)(e.connection_type,null===(t=e.saas_config)||void 0===t?void 0:t.type,k)}}))&&void 0!==e?e:[]},[M,k]),O=e=>{x.push("".concat(f.KH,"/").concat(e.key))},L=[{title:"Name",dataIndex:"name",key:"name",width:250,render:(e,t)=>(0,a.jsxs)("div",{className:"flex items-center gap-3",children:[(0,a.jsx)(N,{integration:t}),(0,a.jsx)(o.AntTypography.Text,{ellipsis:{tooltip:e||"(No name)"},className:"font-semibold",children:e||"(No name)"})]})},{title:"Type",dataIndex:"connection_type",key:"connection_type",width:150,render:(e,t)=>{var n;return(0,C.ZP)(e,null===(n=t.saas_config)||void 0===n?void 0:n.type,k).placeholder.name||e}},{title:"Capabilities",dataIndex:["integrationTypeInfo","tags"],key:"capabilities",width:300,render:e=>(0,a.jsx)("div",{className:"flex flex-wrap gap-1",children:e.map(e=>(0,a.jsx)(o.j8w,{children:e},e))})},{title:"Connection Status",key:"connection_status",width:150,render:(e,t)=>{let{status:n,color:i}=null===t.last_test_timestamp||void 0===t.last_test_timestamp?{status:"Untested",color:"default"}:!0===t.last_test_succeeded?{status:"Healthy",color:"success"}:!1===t.last_test_succeeded?{status:"Failed",color:"error"}:{status:"Untested",color:"default"},r=t.last_test_timestamp?"Last connection: ".concat((0,h.p6)(t.last_test_timestamp)):"The connection has not been tested";return(0,a.jsx)(o.esZ,{title:r,children:(0,a.jsx)(o.j8w,{color:i,children:n})})}},{title:"Actions",key:"actions",width:100,render:(e,t)=>(0,a.jsx)(o.wpx,{onClick:()=>O(t),"data-testid":"manage-btn-".concat(t.key),size:"small",children:"Manage"})}],R={current:e,pageSize:n,total:q.length,showQuickJumper:!1,showTotal:(e,t)=>"".concat(t[0],"-").concat(t[1]," of ").concat(e," integrations"),pageSizeOptions:["10","25","50","100"]},K={emptyText:r.trim()?"No integrations match your search":(0,a.jsx)("div",{"data-testid":"empty-state",children:'You have not configured any integrations. Click "Add Integration" to connect and configure systems now.'})};return(0,a.jsxs)(p.Z,{title:"Integrations",children:[(0,a.jsx)(m.Z,{heading:"Integrations",breadcrumbItems:[{title:"All integrations"}],rightContent:(0,a.jsx)(o.wpx,{onClick:A,"data-testid":"add-integration-btn",type:"primary",children:"Add integration"})}),(0,a.jsxs)("div",{className:"mb-4 flex items-center justify-between gap-4",children:[(0,a.jsx)(u.f,{placeholder:"Search by name...",value:r,onChange:e=>{g(e),t(1)},className:"max-w-sm"}),(0,a.jsx)(P.Z,{})]}),_?(0,a.jsx)(d.Z,{}):(0,a.jsx)(o.V5H,{columns:L,dataSource:q,rowKey:"key",pagination:R,loading:_,size:"small",locale:K,bordered:!0,onRow:e=>({onClick:()=>O(e),"data-testid":"integration-info-".concat(e.key)}),rowClassName:"cursor-pointer",onChange:w,"data-testid":"integrations-table"}),(0,a.jsx)(z,{isOpen:E,onClose:Z})]})}}},function(e){e.O(0,[8765,431,9278,5163,699,3662,1316,155,2888,9774,179],function(){return e(e.s=9387)}),_N_E=e.O()}]);
|
fides/ui-build/static/admin/_next/static/chunks/pages/privacy-requests/[id]-febf156d2977f3ac.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9650],{6554:function(e,t,i){(window.__NEXT_P=window.__NEXT_P||[]).push(["/privacy-requests/[id]",function(){return i(50107)}])},77213:function(e,t,i){"use strict";i.d(t,{Z:function(){return p}});var n=i(24246),s=i(96306),l=i(88038),a=i.n(l),r=i(86677);i(27378);var o=i(25980),c=i(90867),d=i(42478),u=i(77830),m=()=>{let e=(0,r.useRouter)();return(0,n.jsx)(s.xuv,{bg:"gray.50",border:"1px solid",borderColor:"blue.400",borderRadius:"md",justifyContent:"space-between",p:5,mb:5,mt:5,children:(0,n.jsxs)(s.xuv,{children:[(0,n.jsxs)(s.Kqy,{direction:{base:"column",sm:"row"},justifyContent:"space-between",children:[(0,n.jsx)(s.xvT,{fontWeight:"semibold",children:"Configure your storage and messaging provider"}),(0,n.jsx)(s.wpx,{onClick:()=>{e.push(u.AD)},children:"Configure"})]}),(0,n.jsxs)(s.xvT,{children:["Before Fides can process your privacy requests we need two simple steps to configure your storage and email client."," "]})]})})},p=e=>{let{children:t,title:i,padded:l=!0,mainProps:u}=e,p=(0,o.hz)(),h=(0,r.useRouter)(),x="/privacy-requests"===h.pathname||"/datastore-connection"===h.pathname,g=!(p.flags.messagingConfiguration&&x),{data:v}=(0,d.JE)(void 0,{skip:g}),{data:j}=(0,c.PW)(void 0,{skip:g}),y=p.flags.messagingConfiguration&&(!v||!j)&&x;return(0,n.jsxs)(s.kCb,{"data-testid":i,direction:"column",h:"100vh",children:[(0,n.jsxs)(a(),{children:[(0,n.jsxs)("title",{children:["Fides Admin UI - ",i]}),(0,n.jsx)("meta",{name:"description",content:"Privacy Engineering Platform"}),(0,n.jsx)("link",{rel:"icon",href:"/favicon.ico"})]}),(0,n.jsxs)(s.kCb,{as:"main",direction:"column",py:l?6:0,px:l?10:0,h:l?"calc(100% - 48px)":"full",flex:1,minWidth:0,overflow:"auto",...u,children:[y?(0,n.jsx)(m,{}):null,t]})]})}},50107:function(e,t,i){"use strict";i.r(t),i.d(t,{default:function(){return eH}});var n,s,l,a,r=i(24246),o=i(96306),c=i(86677),d=i(77213),u=i(77830),m=i(58754),p=i(99716),h=i(27378),x=i(21910),g=i(19904);(n=l||(l={})).IN_PROCESSING="in_processing",n.PENDING="pending",n.COMPLETE="complete",n.ERROR="error",n.PAUSED="paused",n.AWAITING_PROCESSING="awaiting_processing",n.RETRYING="retrying",n.SKIPPED="skipped",n.POLLING="polling";let v={in_processing:"In processing",pending:"Pending",complete:"Complete",error:"Error",paused:"Paused",awaiting_processing:"Awaiting input",retrying:"Retrying",skipped:"Skipped",polling:"Awaiting polling"},j={error:"error",skipped:"warning",awaiting_processing:"minos",in_processing:void 0,pending:void 0,complete:void 0,paused:void 0,retrying:void 0,polling:"warning"};(s=a||(a={})).REQUEST_UPDATE="Request update",s.INTERNAL_COMMENT="Internal comment",s.MANUAL_TASK="Manual task";let y={"Request update":"sandstone","Internal comment":"marble","Manual task":"nectar"};var f=i(90005),_=i.n(f),b=i(16394),T=i(38450),w=i.n(T);let E=e=>{let{attachments:t}=e;if(!t.length)return null;if(1===t.length){let e=t[0];return(0,r.jsx)("div",{className:"flex flex-wrap gap-2 text-sm text-gray-600","data-testid":"activity-timeline-attachments",children:(0,r.jsxs)("div",{className:"flex items-center",children:[(0,r.jsx)(o.PJP.PgN,{className:"mr-1 size-4"}),(0,r.jsx)(o.AntTypography.Text,{ellipsis:{tooltip:!0},className:"!max-w-[200px]",children:e.file_name})]})})}let i=(0,r.jsx)("ul",{className:"list-disc pl-4",children:t.map(e=>(0,r.jsx)("li",{children:e.file_name},e.id))});return(0,r.jsx)("div",{className:"flex flex-wrap gap-2 text-sm text-gray-600","data-testid":"activity-timeline-attachments",children:(0,r.jsxs)("div",{className:"flex items-center",children:[(0,r.jsx)(o.PJP.PgN,{className:"mr-1 size-4"}),(0,r.jsx)(o.esZ,{title:i,children:(0,r.jsxs)(o.AntTypography.Text,{ellipsis:!0,className:"!max-w-[200px]",children:[t.length," attachments"]})})]})})};var A=e=>{let{item:t}=e,{author:i,title:n,date:s,type:l,onClick:c,isError:d,isAwaitingInput:u,isPolling:m,description:p,attachments:h,showViewLog:x}=t,g=(0,b.p6)(s),v=!!c,j=h&&h.length>0,f=(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("div",{className:w().header,children:[(0,r.jsxs)("span",{className:w().author,"data-testid":"activity-timeline-author",children:[i,":"]}),n&&(0,r.jsxs)(o.AntTypography.Text,{className:_()(w().title,{[w()["title--error"]]:d,[w()["title--awaiting-input"]]:u,[w()["title--polling"]]:m}),ellipsis:{tooltip:!0},"data-testid":"activity-timeline-title",children:[n,d&&" failed"]}),(0,r.jsx)("div",{className:"hidden xl:block",children:(0,r.jsx)(o.AntTypography.Text,{className:w().timestamp,"data-testid":"activity-timeline-timestamp",children:g})}),(0,r.jsx)("div",{className:"xl:hidden",children:(0,r.jsx)(o.esZ,{title:g,children:(0,r.jsx)(o.PJP.qpU,{"data-testid":"activity-timeline-timestamp-icon"})})}),(0,r.jsx)(o.j8w,{className:w().type,color:y[l],"data-testid":"activity-timeline-type",children:l}),x&&(0,r.jsx)("span",{className:w().viewLogs,"data-testid":"activity-timeline-view-logs",children:"View Log"})]}),(p||j)&&(0,r.jsxs)("div",{className:"mt-2 flex justify-between pl-2.5 align-top",children:[(0,r.jsx)(o.AntTypography.Paragraph,{className:"!mb-0 whitespace-pre-wrap","data-testid":"activity-timeline-description",children:p||""}),j&&(0,r.jsx)(E,{attachments:h})]})]}),T={className:_()(w().itemButton,{[w()["itemButton--error"]]:d,[w()["itemButton--awaiting-input"]]:u,[w()["itemButton--polling"]]:m,[w()["itemButton--clickable"]]:v,[w()["itemButton--comment"]]:l===a.INTERNAL_COMMENT,[w()["itemButton--manual-task"]]:l===a.MANUAL_TASK}),"data-testid":"activity-timeline-item"};return v?(0,r.jsx)("button",{type:"button",onClick:c,...T,children:f}):(0,r.jsx)("div",{...T,children:f})},R=i(25980),k=i(54427),C=i(78780);let{useGetCommentsQuery:q,useCreateCommentMutation:S,useGetCommentDetailsQuery:N,useLazyGetCommentDetailsQuery:P}=C.u.injectEndpoints({endpoints:e=>({getComments:e.query({query:e=>{let{privacy_request_id:t,page:i=1,size:n}=e;return{url:"plus/privacy-request/".concat(t,"/comment"),method:"GET",params:{page:i,size:n}}},providesTags:["Privacy Request Comments"]}),createComment:e.mutation({query:e=>{let{privacy_request_id:t,comment_text:i,comment_type:n}=e,s=new FormData;return s.append("comment_text",i),s.append("comment_type",n),{url:"plus/privacy-request/".concat(t,"/comment"),method:"POST",body:s,formData:!0}},invalidatesTags:["Privacy Request Comments","Request"]}),getCommentDetails:e.query({query:e=>{let{privacy_request_id:t,comment_id:i}=e;return{url:"plus/privacy-request/".concat(t,"/comment/").concat(i),method:"GET"}}})})}),{reducer:I}=(0,k.oM)({name:"privacyRequestComments",initialState:{},reducers:{}}),O=e=>{let{plus:t}=(0,R.hz)(),{data:i,isLoading:n,error:s}=q({privacy_request_id:e,size:100},{skip:!t});return(0,h.useEffect)(()=>{s&&o.Pg3.error("Failed to fetch the request comments")},[s]),{commentItems:(null==i?void 0:i.items)?i.items.map(e=>({author:e.user_first_name&&e.user_last_name?"".concat(e.user_first_name," ").concat(e.user_last_name):e.username||"Unknown",date:new Date(e.created_at),type:a.INTERNAL_COMMENT,showViewLog:!1,description:e.comment_text,isError:!1,isSkipped:!1,isAwaitingInput:!1,isPolling:!1,id:"comment-".concat(e.id)})):[],isLoading:n}},D=(e,t)=>{if(0===e.length)return!1;let i=Array.from(e).sort((e,t)=>new Date(t.updated_at).getTime()-new Date(e.updated_at).getTime());if(!i[0].collection_name)return i[0].status===t;let n={};return i.forEach(e=>{e.collection_name&&!n[e.collection_name]&&(n[e.collection_name]=e)}),Object.values(n).some(e=>e.status===t)},M=e=>D(e,l.ERROR),U=e=>D(e,l.SKIPPED),L=e=>D(e,l.AWAITING_PROCESSING),z=e=>D(e,l.POLLING),W=e=>{let t=!e;return{eventItems:e?Object.entries(e).map(e=>{let[t,i]=e,n=M(i),s=U(i),l=L(i),r=z(i);return{author:"Fides",title:t,date:new Date(i[0].updated_at),type:a.REQUEST_UPDATE,showViewLog:n||s||l||r,onClick:()=>{},isError:n,isSkipped:s,isAwaitingInput:l,isPolling:r,id:"request-".concat(t)}}):[],isLoading:t}};var B=i(91317),F=i(45116);let G=e=>{let{plus:t}=(0,R.hz)(),{data:i,isLoading:n,error:s}=(0,F.Ym)({page:1,size:100,privacyRequestId:e,status:void 0,includeFullSubmissionDetails:!0},{skip:!t});return(0,h.useEffect)(()=>{s&&o.Pg3.error("Failed to fetch manual tasks")},[s]),{manualTaskItems:i?i.items.filter(e=>e.status===x.OS.COMPLETED||e.status===x.OS.SKIPPED).map(e=>{var t,i;let n=e.submission_user?(0,b.gJ)(e.submission_user):"Unknown User";(0,B.PN)(null===(t=e.submission_user)||void 0===t?void 0:t.id)&&(n=(null===(i=e.submission_user)||void 0===i?void 0:i.id)||"Unknown User");let s=e.status===x.OS.SKIPPED,l="Task ".concat(s?"skipped":"completed"," - ").concat(e.name),r=e.comments&&e.comments.length>0?e.comments[e.comments.length-1].comment_text:void 0,o=e.attachments||[];return{author:n,title:l,date:new Date(e.updated_at),type:a.MANUAL_TASK,showViewLog:!1,description:r,isError:!1,isSkipped:s,isAwaitingInput:!1,isPolling:!1,id:"manual-task-".concat(e.manual_field_id),attachments:o}}):[],taskCommentIds:(0,h.useMemo)(()=>{let e=new Set;return(null==i?void 0:i.items)&&i.items.filter(e=>e.status===x.OS.COMPLETED||e.status===x.OS.SKIPPED).forEach(t=>{var i;null===(i=t.comments)||void 0===i||i.forEach(t=>{e.add(t.id)})}),e},[i]),isLoading:n}};var Z=i(88340),J=e=>{let{errorMessage:t,status:i=l.ERROR}=e;return(0,r.jsxs)(o.xuv,{height:"100%",id:"outer",children:[(0,r.jsxs)(o.kCb,{alignItems:"center",children:[(0,r.jsx)(o.xvT,{size:"sm",color:"gray.700",fontWeight:"medium",marginRight:"8px",lineHeight:"20px",children:"Status"}),(0,r.jsx)(o.j8w,{color:j[i],children:v[i]}),(0,r.jsx)(o.xuv,{padding:"0px",marginBottom:"3px",children:(0,r.jsx)(Z.Z,{copyText:t})})]}),(0,r.jsx)(o.izJ,{marginTop:"4px",marginBottom:"6px"}),(0,r.jsx)(o.xuv,{id:"errorWrapper",overflow:"auto",height:"100%",children:(0,r.jsx)(o.xvT,{children:t})})]})},K=i(3124),H=i.n(K);let Y=e=>{switch(e){case x.Us.ACCESS:return"Data Retrieval";case x.Us.ERASURE:return"Data Deletion";case x.Us.CONSENT:return"Consent";case x.Us.UPDATE:return"Data Update";default:return e}},V=e=>{if(e.status!==l.COMPLETE||!e.collection_name)return"-";let t=(e.message||"").match(/(?:retrieved|masked|processed)\s+(\d+)\s+records?$/i);return t?parseInt(t[1],10).toLocaleString():"-"},Q=(e,t)=>{let i=e.filter(e=>e.action_type===t&&e.status===l.COMPLETE&&e.collection_name).sort((e,t)=>new Date(t.updated_at).getTime()-new Date(e.updated_at).getTime()),n={};i.forEach(e=>{let t=e.collection_name||"unknown";n[t]||(n[t]=e)});let s=0,a=!1,r=/(?:retrieved|masked|processed)\s+(\d+)\s+records?$/i;return Object.values(n).forEach(e=>{if(e.message){let t=e.message.match(r);if(t){a=!0;let e=parseInt(t[1],10);s+=e}}}),a?s:null},$=(e,t,i)=>{if("finished"===e.status&&!e.collection_name&&i){let e=Q(t,i);return null!==e?e.toLocaleString():"-"}return V(e)};var X=e=>{var t,i,n;let{eventLogs:s,allEventLogs:a,onDetailPanel:c,privacyRequest:d}=e,u=(null==s?void 0:s.some(e=>e.collection_name))||(null==s?void 0:s.some(e=>"finished"===e.status&&!e.collection_name))||!1,m=null==s?void 0:s.every(e=>"finished"===e.status&&!e.collection_name),p=null==d?void 0:null===(n=d.policy)||void 0===n?void 0:null===(i=n.rules)||void 0===i?void 0:null===(t=i[0])||void 0===t?void 0:t.action_type,h=e=>e?Y(e):p?Y(p):"-",x=null==s?void 0:s.map(e=>(0,r.jsxs)(o.Tr,{backgroundColor:e.status===l.ERROR||e.status===l.SKIPPED&&e.message||e.status===l.AWAITING_PROCESSING||e.status===l.POLLING?H().FIDESUI_NEUTRAL_50:"unset",onClick:()=>{(e.status===l.ERROR||e.status===l.SKIPPED&&e.message||e.status===l.AWAITING_PROCESSING||e.status===l.POLLING)&&c(e.message,e.status)},style:{cursor:e.message?"pointer":"unset"},_hover:{backgroundColor:H().FIDESUI_NEUTRAL_50},children:[(0,r.jsx)(o.Td,{children:(0,r.jsx)(o.xvT,{color:"gray.600",fontSize:"xs",lineHeight:"4",fontWeight:"medium",children:(0,b.p6)(e.updated_at)})}),(0,r.jsx)(o.Td,{children:(0,r.jsx)(o.xvT,{color:"gray.600",fontSize:"xs",lineHeight:"4",fontWeight:"medium",children:h(e.action_type)})}),(0,r.jsx)(o.Td,{children:v[e.status]?(0,r.jsx)(o.j8w,{color:j[e.status],children:v[e.status]}):(0,r.jsx)(o.xvT,{color:"gray.600",fontSize:"xs",lineHeight:"4",fontWeight:"medium",children:e.status})}),u&&(0,r.jsx)(o.Td,{children:(0,r.jsx)(o.xvT,{color:"gray.600",fontSize:"xs",lineHeight:"4",fontWeight:"medium",children:$(e,a||s,p)})}),u&&!m&&(0,r.jsx)(o.Td,{children:(0,r.jsx)(o.xvT,{color:"gray.600",fontSize:"xs",lineHeight:"4",fontWeight:"medium",children:"finished"===e.status?"Request completed":e.collection_name})})]},e.updated_at));return(0,r.jsx)(o.xuv,{width:"100%",paddingTop:"0px",height:"100%",children:(0,r.jsx)(o.xJi,{id:"tableContainer",height:"100%",style:{overflowY:"auto"},children:(0,r.jsxs)(o.iA_,{size:"sm",id:"table",position:"relative",children:[(0,r.jsx)(o.hrZ,{id:"tableHeader",position:"sticky",top:"0px",backgroundColor:"white",zIndex:10,children:(0,r.jsxs)(o.Tr,{children:[(0,r.jsx)(o.Th,{children:(0,r.jsx)(o.xvT,{color:"black",fontSize:"xs",lineHeight:"4",fontWeight:"medium",children:"Time"})}),(0,r.jsx)(o.Th,{children:(0,r.jsx)(o.xvT,{color:"black",fontSize:"xs",lineHeight:"4",fontWeight:"medium",children:"Action Type"})}),(0,r.jsx)(o.Th,{children:(0,r.jsx)(o.xvT,{color:"black",fontSize:"xs",lineHeight:"4",fontWeight:"medium",children:"Status"})}),u&&(0,r.jsx)(o.Th,{children:(0,r.jsx)(o.xvT,{color:"black",fontSize:"xs",lineHeight:"4",fontWeight:"medium",children:"Records"})}),u&&!m&&(0,r.jsx)(o.Th,{children:(0,r.jsx)(o.xvT,{color:"black",fontSize:"xs",lineHeight:"4",fontWeight:"medium",children:"Collection"})})]})}),(0,r.jsx)(o.p3B,{id:"tableBody",children:x})]})})})},ee=e=>{let{isOpen:t,onClose:i,currentLogs:n,allEventLogs:s,isViewingError:a,errorMessage:c,currentStatus:d=l.ERROR,onCloseErrorPanel:u,onOpenErrorPanel:m,privacyRequest:p}=e;return(0,r.jsxs)(o.dys,{isOpen:t,placement:"right",onClose:i,size:"full",autoFocus:!1,"data-testid":"log-drawer",children:[(0,r.jsx)(o.P1B,{}),(0,r.jsxs)(o.scA,{style:{width:"50%"},"data-testid":"log-drawer",children:[(0,r.jsx)(o.OXI,{style:{paddingBottom:"0px"},children:(0,r.jsxs)(o.kCb,{justifyContent:"space-between",alignItems:"center",height:"40px",children:[(0,r.jsxs)(o.kCb,{alignItems:"center",children:[a&&(0,r.jsx)(o.wpx,{icon:(0,r.jsx)(o.Rpv,{}),"aria-label":"Close error logs",size:"small",onClick:u}),(0,r.jsx)(o.xvT,{color:"gray.900",fontSize:"md",lineHeight:"6",fontWeight:"medium",ml:1,children:a?"Event detail":"Event log"})]}),(0,r.jsx)(o.wpx,{icon:(0,r.jsx)(o.LGN,{width:"17px"}),"aria-label":"Stop viewing error message",size:"small",onClick:i,"data-testid":"log-drawer-close"})]})}),(0,r.jsxs)(o.Ng0,{id:"drawerBody",overflow:"hidden",children:[n&&!a?(0,r.jsx)(X,{eventLogs:n,allEventLogs:s,onDetailPanel:m,privacyRequest:p}):null,a?(0,r.jsx)(J,{errorMessage:c,status:d}):null]})]})]})},et=e=>{let{subjectRequest:t}=e,{isOpen:i,onOpen:n,onClose:s}=(0,o.qY0)(),[c,d]=(0,h.useState)([]),[u,m]=(0,h.useState)(""),[p,x]=(0,h.useState)(!1),[g,v]=(0,h.useState)(""),[j,y]=(0,h.useState)(l.ERROR),{results:f,id:_}=t,{commentItems:b,isLoading:T}=O(_),{eventItems:E,isLoading:R}=W(f),{manualTaskItems:k,taskCommentIds:C,isLoading:q}=G(_);(0,h.useEffect)(()=>{u&&f&&f[u]&&d(f[u])},[f,u]);let S=()=>{x(!1)},N=(0,h.useCallback)((e,t)=>{m(e),d(t),n()},[n]),P=(0,h.useMemo)(()=>f?Object.values(f).flat():[],[f]),I=(0,h.useMemo)(()=>b.filter(e=>{let t=e.id.replace("comment-","");return!C.has(t)}),[b,C]),D=(0,h.useMemo)(()=>{let e=E.map(e=>{if("Request update"===e.type&&e.title&&f){let t=e.title;if(f[t])return{...e,onClick:()=>N(t,f[t])}}return e});return[{author:"Fides",title:"Access request received",date:new Date(t.created_at),type:a.REQUEST_UPDATE,showViewLog:!1,isError:!1,isSkipped:!1,isAwaitingInput:!1,isPolling:!1,id:"initial-request"},...e,...I,...k].sort((e,t)=>new Date(e.date).getTime()-new Date(t.date).getTime())},[E,I,k,f,N,t.created_at]);return(0,r.jsxs)(o.xuv,{width:"100%",children:[(0,r.jsx)(o.krs,{className:"!border-none",bordered:!1,split:!1,"data-testid":"activity-timeline-list",children:(0,r.jsx)("ul",{className:"!list-none",children:T||R||q?(0,r.jsx)("div",{className:w().itemButton,"data-testid":"timeline-skeleton",children:(0,r.jsx)(o.N_L,{paragraph:{rows:2},active:!0})}):D.map(e=>(0,r.jsx)("li",{children:(0,r.jsx)(A,{item:e})},e.id))})}),(0,r.jsx)(ee,{isOpen:i,onClose:()=>{p&&S(),m(""),s()},currentLogs:c,allEventLogs:P,isViewingError:p,errorMessage:g,currentStatus:j,onOpenErrorPanel:(e,t)=>{v(e),t&&y(t),x(!0)},onCloseErrorPanel:S,privacyRequest:t})]})},ei=i(66187);let en=e=>{let{privacyRequestId:t,onCancel:i}=e,[n,s]=(0,h.useState)(""),l=(0,h.useRef)(null),[a,{isLoading:c}]=S();(0,h.useEffect)(()=>{l.current&&l.current.focus()},[]);let d=async()=>{if(n.trim())try{await a({privacy_request_id:t,comment_text:n,comment_type:ei.i.NOTE}).unwrap(),s(""),i()}catch(e){console.error("Failed to add comment:",e),o.Pg3.error({content:"Failed to add comment",duration:5})}},u=[{key:"internal",label:"Internal comment",children:(0,r.jsx)(o.uFc.TextArea,{ref:l,value:n,onChange:e=>s(e.target.value),rows:3,className:"mb-3 h-[150px] w-full !resize-none","data-testid":"comment-input"})}];return(0,r.jsxs)("div",{children:[(0,r.jsx)(o.A5g,{items:u}),(0,r.jsxs)(o.jqI,{justify:"flex-end",className:"gap-2",children:[(0,r.jsx)(o.wpx,{onClick:i,"data-testid":"cancel-comment-button",children:"Cancel"}),(0,r.jsx)(o.wpx,{onClick:d,loading:c,disabled:!n.trim(),type:"primary",htmlType:"button","data-testid":"submit-comment-button",children:"Save"})]})]})};var es=e=>{let{subjectRequest:t}=e,[i,n]=(0,h.useState)(!1);return(0,r.jsxs)("div",{className:"w-full",children:[(0,r.jsx)(et,{subjectRequest:t}),i?(0,r.jsx)(en,{privacyRequestId:t.id,onCancel:()=>n(!1)}):(0,r.jsx)(g.ZP,{scopes:[x.Sh.COMMENT_CREATE],children:(0,r.jsx)(o.jqI,{justify:"flex-start",className:"mt-2",children:(0,r.jsxs)(o.wpx,{type:"default",onClick:()=>n(!0),className:"flex items-center","data-testid":"add-comment-button",children:["Add comment ",(0,r.jsx)("span",{className:"ml-1",children:"+"})]})})})]})},el=i(14207),ea=i(46238),er=i(72281),eo=i(17245),ec=i(90867),ed=i(16134);let eu=e=>Array.from(new Set(e.filter(e=>Object.values(x.Us).includes(e.action_type)).map(e=>e.action_type)));var em=e=>{let{rules:t}=e,i=eu(t).map(e=>(0,b.kC)(e)).map(e=>e);return(0,r.jsx)(o.AntTypography.Text,{children:i.join(" - ")})},ep=i(34090),eh=i(55484),ex=e=>{let{connectorName:t,data:i,isSubmitting:n=!1,onSaveClick:s}=e,{isOpen:l,onOpen:a,onClose:c}=(0,o.qY0)(),d=(0,h.useRef)(null),u=async(e,t)=>{s({connection_key:i.connection_key,privacy_request_id:i.privacy_request_id,body:{...e}}),c()};return(0,r.jsxs)(r.Fragment,{children:[(null==i?void 0:i.checked)&&(0,r.jsx)(o.wpx,{onClick:a,size:"small",children:"Review"}),!(null==i?void 0:i.checked)&&(0,r.jsx)(o.wpx,{onClick:a,size:"small",type:"primary",children:"Begin manual input"}),(0,r.jsx)(ep.J9,{enableReinitialize:!0,initialValues:{...i.fields},onSubmit:u,validateOnBlur:!1,validateOnChange:!1,validationSchema:eh.Ry().shape({}),children:e=>(0,r.jsxs)(o.dys,{isOpen:l,placement:"right",initialFocusRef:d,onClose:c,size:"lg",children:[(0,r.jsx)(o.P1B,{}),(0,r.jsxs)(o.scA,{children:[(0,r.jsx)(o.cCv,{}),(0,r.jsxs)(o.OXI,{color:"gray.900",children:[(0,r.jsx)(o.xvT,{fontSize:"xl",mb:8,children:t}),(0,r.jsx)(o.izJ,{}),(0,r.jsx)(o.xvT,{fontSize:"md",mt:"4",children:"Manual access"}),(0,r.jsx)(o.xuv,{mt:"8px",children:(0,r.jsx)(o.xvT,{color:"gray.700",fontSize:"sm",fontWeight:"normal",children:"Please complete the following PII fields that have been collected for the selected subject."})})]}),(0,r.jsx)(o.Ng0,{children:(0,r.jsx)(ep.l0,{id:"manual-detail-form",noValidate:!0,children:(0,r.jsx)(o.gCW,{align:"stretch",gap:"16px",children:Object.entries(i.fields).map((e,t)=>{let[i]=e;return(0,r.jsx)(o.Ugi,{children:(0,r.jsx)(ep.gN,{id:i,name:i,children:e=>{let{field:n}=e;return(0,r.jsxs)(o.NIc,{alignItems:"baseline",display:"inline-flex",children:[(0,r.jsx)(o.lXp,{color:"gray.900",fontSize:"14px",fontWeight:"semibold",htmlFor:i,w:"50%",children:i}),(0,r.jsx)(o.IIB,{...n,autoComplete:"off",color:"gray.700",placeholder:"Please enter ".concat(i),ref:0===t?d:void 0,size:"sm"})]})}})},i)})})})}),(0,r.jsx)(o.zeN,{justifyContent:"flex-start",children:(0,r.jsxs)("div",{className:"flex gap-2",children:[(0,r.jsx)(o.wpx,{onClick:c,children:"Cancel"}),(0,r.jsx)(o.wpx,{form:"manual-detail-form",loading:n,htmlType:"submit",children:"Save"})]})})]})]})})]})},eg=e=>{let{connectorName:t,data:i,isSubmitting:n=!1,onSaveClick:s}=e,{isOpen:l,onOpen:a,onClose:c}=(0,o.qY0)(),d=(0,h.useRef)(null),u=async(e,t)=>{s({connection_key:i.connection_key,privacy_request_id:i.privacy_request_id,body:{...e}}),c()};return(0,r.jsxs)(r.Fragment,{children:[(null==i?void 0:i.checked)&&(0,r.jsx)(o.wpx,{onClick:a,size:"small",children:"Review"}),!(null==i?void 0:i.checked)&&(0,r.jsx)(o.wpx,{onClick:a,size:"small",type:"primary",children:"Begin manual input"}),(0,r.jsx)(ep.J9,{enableReinitialize:!0,initialValues:{...i.fields},onSubmit:u,validateOnBlur:!1,validateOnChange:!1,validationSchema:eh.Ry().shape({}),children:e=>(0,r.jsxs)(o.dys,{isOpen:l,placement:"right",initialFocusRef:d,onClose:c,size:"lg",children:[(0,r.jsx)(o.P1B,{}),(0,r.jsxs)(o.scA,{children:[(0,r.jsx)(o.cCv,{}),(0,r.jsxs)(o.OXI,{color:"gray.900",children:[(0,r.jsx)(o.xvT,{fontSize:"xl",mb:8,children:t}),(0,r.jsx)(o.izJ,{}),(0,r.jsx)(o.xvT,{fontSize:"md",mt:"4",children:"Manual erasure"}),(0,r.jsx)(o.xuv,{mt:"8px",children:(0,r.jsx)(o.xvT,{color:"gray.700",fontSize:"sm",fontWeight:"normal",children:"Please delete the following PII fields associated with the selected subject if they are available. Once deleted, check the box to confirm the deletion."})})]}),(0,r.jsx)(o.Ng0,{children:(0,r.jsx)(ep.l0,{id:"manual-detail-form",noValidate:!0,children:(0,r.jsx)(o.gCW,{align:"stretch",gap:"16px",children:Object.entries(i.fields).map(e=>{let[t]=e;return(0,r.jsx)(o.Ugi,{children:(0,r.jsx)(ep.gN,{id:t,name:t,children:e=>{let{field:i}=e;return(0,r.jsxs)(o.NIc,{alignItems:"baseline",display:"inline-flex",children:[(0,r.jsx)(o.lXp,{color:"gray.900",fontSize:"14px",fontWeight:"semibold",htmlFor:t,w:"50%",children:t}),(0,r.jsx)(o.XZJ,{...i,isChecked:!!i.value,onChange:i.onChange,name:t,id:t})]})}})},t)})})})}),(0,r.jsx)(o.zeN,{justifyContent:"flex-start",children:(0,r.jsxs)("div",{className:"flex gap-2",children:[(0,r.jsx)(o.wpx,{onClick:c,children:"Cancel"}),(0,r.jsx)(o.wpx,{form:"manual-detail-form",loading:n,htmlType:"submit",children:"Save"})]})})]})]})})]})};let ev=(e,t,i)=>e.includes(x.Us.ACCESS)?{ProcessingDetailComponent:ex,uploadMutation:t,getUploadedWebhookDataEndpoint:ec.$I.endpoints.getUploadedManualAccessWebhookData}:e.includes(x.Us.ERASURE)?{ProcessingDetailComponent:eg,uploadMutation:i,getUploadedWebhookDataEndpoint:ec.$I.endpoints.getUploadedManualErasureWebhookData}:null;var ej=e=>{let{subjectRequest:t,onComplete:i}=e,n=(0,ed.T)(),{errorAlert:s,successAlert:l}=(0,eo.VY)(),{handleError:a}=(0,eo.HK)(),[c,d]=(0,h.useState)([]),[u,m]=(0,h.useState)(!1),[p,g]=(0,h.useState)(!1),{data:v,isFetching:j,isLoading:y,isSuccess:f}=(0,el.W6)(),[_]=(0,ec.w3)(),b=eu(t.policy.rules),[T]=(0,ec.nL)(),[w]=(0,ec.UR)(),{ProcessingDetailComponent:E,uploadMutation:A,getUploadedWebhookDataEndpoint:R}=ev(b,T,w),k=async()=>{try{m(!0),await _(t.id).unwrap(),l("Manual request has been received. Request now processing."),i()}catch(e){a(e)}finally{m(!1)}},C=async e=>{try{g(!0),await A(e).unwrap();let t={connection_key:e.connection_key,fields:{}};Object.entries(e.body).forEach(e=>{let[i,n]=e;t.fields[i]=n||""});let i=c.map(e=>e.connection_key===t.connection_key?{...e,checked:!0,fields:{...t.fields}}:e);d(i),l("Manual input successfully saved!")}catch(e){a(e)}finally{g(!1)}};return((0,h.useEffect)(()=>(f&&v.length>0&&0===c.length&&(()=>{if(c.length>0)return;let e=[],i=null==v?void 0:v.map(e=>e.connection_config.key);null==i||i.every(i=>e.push(n(R.initiate({connection_key:i,privacy_request_id:t.id})))),Promise.allSettled(e).then(e=>{let t=[];e.forEach((e,i)=>{if("fulfilled"===e.status&&e.value.isSuccess&&e.value.data){let i={checked:e.value.data.checked,fields:{},connection_key:e.value.originalArgs.connection_key,privacy_request_id:e.value.originalArgs.privacy_request_id};Object.entries(e.value.data.fields).forEach(e=>{let[t,n]=e;i.fields[t]=n||""}),t.push(i)}else s("An error occurred while loading manual input data for ".concat(v[i].connection_config.name))}),d(t)})})(),()=>{}),[v,c.length,n,s,f,t.id,R]),b.includes(x.Us.ACCESS)||b.includes(x.Us.ERASURE))?(0,r.jsxs)(o.gCW,{align:"stretch",spacing:8,children:[(0,r.jsx)(o.xuv,{children:(0,r.jsx)(o.xvT,{color:"gray.700",fontSize:"sm",children:"The following table details the integrations that require manual input from you."})}),(0,r.jsxs)(o.xuv,{children:[(j||y)&&(0,r.jsx)(o.M5Y,{children:(0,r.jsx)(o.$jN,{})}),f&&v?(0,r.jsx)(o.xJi,{children:(0,r.jsxs)(o.iA_,{size:"sm",variant:"unstyled",children:[(0,r.jsx)(o.hrZ,{children:(0,r.jsxs)(o.Tr,{children:[(0,r.jsx)(o.Th,{fontSize:"sm",fontWeight:"semibold",pl:"0",textTransform:"none",children:"Integration Identifier"}),(0,r.jsx)(o.Th,{})]})}),(0,r.jsxs)(o.p3B,{children:[v.length>0&&v.map(e=>(0,r.jsxs)(o.Tr,{display:"block",children:[(0,r.jsx)(o.Td,{pl:"0",children:e.connection_config.key}),(0,r.jsx)(o.Td,{children:c.length>0?(0,r.jsx)(E,{connectorName:e.connection_config.name,data:c.find(t=>t.connection_key===e.connection_config.key),isSubmitting:p,onSaveClick:C}):null})]},e.id)),0===v.length&&(0,r.jsx)(o.Tr,{children:(0,r.jsx)(o.Td,{colSpan:3,pl:"0",children:(0,r.jsx)(o.M5Y,{children:(0,r.jsx)(o.xvT,{children:"You don‘t have any Manual Process connections set up yet."})})})})]}),c.length>0&&c.every(e=>e.checked)?(0,r.jsx)(o.$RU,{children:(0,r.jsx)(o.Tr,{children:(0,r.jsx)(o.Th,{pl:"0px",children:(0,r.jsx)(o.wpx,{type:"primary",loading:u,onClick:k,className:"mt-2",children:"Complete DSR"})})})}):null]})}):null]})]}):null},ey=e=>{let{subjectRequest:t,onComplete:i}=e,n=(0,c.useRouter)(),{data:s}=(0,el.AZ)({}),l=(0,h.useMemo)(()=>{var e;return(null==s?void 0:null===(e=s.items)||void 0===e?void 0:e.filter(e=>e.connection_type===x.Rj.MANUAL_TASK))||[]},[s]),{data:a}=(0,el.W6)(),d=(a||[]).length>0,{data:m}=(0,F.Ym)({page:1,size:100,privacyRequestId:t.id}),p=(null==m?void 0:m.items)||[],g=p.length,v=p.filter(e=>e.status===x.OS.NEW).length,j=l.length>0,y=p.length>0,f=j||y;return f||d?(0,r.jsxs)(o.Kqy,{spacing:6,children:[f&&(0,r.jsxs)(o.xuv,{children:[(0,r.jsx)(o.AntTypography.Title,{level:4,style:{marginBottom:12},children:"Manual tasks"}),(0,r.jsxs)(o.Kqy,{spacing:2,children:[(0,r.jsxs)(o.AntTypography.Text,{children:[(0,r.jsx)("strong",{children:g})," task",1!==g?"s":""," ","linked to this privacy request"]}),(0,r.jsxs)(o.AntTypography.Text,{children:[(0,r.jsx)("strong",{children:v})," pending task",1!==v?"s":""]}),g>0&&(0,r.jsx)("div",{className:"mt-2",children:(0,r.jsx)(o.wpx,{type:"primary",onClick:()=>{n.push({pathname:u.Jw,query:{privacy_request_id:t.id,tab:er.G.MANUAL_TASK}})},children:"View all tasks for this request →"})})]})]}),d&&(0,r.jsxs)(o.xuv,{children:[(0,r.jsxs)(o.kCb,{alignItems:"center",style:{marginBottom:12},children:[(0,r.jsx)(o.AntTypography.Title,{level:4,style:{margin:0,marginRight:8},children:"Manual steps (legacy)"}),(0,r.jsx)(ea.b,{label:"This is the legacy manual steps feature. The new manual tasks feature provides more advanced capabilities and better user experience."})]}),(0,r.jsx)(ej,{subjectRequest:t,onComplete:i||(()=>{})})]})]}):(0,r.jsx)(o.xuv,{p:4,children:(0,r.jsx)(o.AntTypography.Text,{type:"secondary",children:"No manual tasks or legacy manual steps configured for this request."})})},ef=i(59969);let e_={approved:{color:"success",label:"Approved"},complete:{color:"success",label:"Completed"},awaiting_email_send:{color:"marble",label:"Awaiting Email Send"},denied:{color:"warning",label:"Denied"},canceled:{color:"marble",label:"Canceled"},error:{color:"error",label:"Error"},in_processing:{color:"caution",label:"In Progress"},paused:{color:"marble",label:"Paused"},pending:{color:"info",label:"New"},identity_unverified:{color:"marble",label:"Unverified"},requires_input:{color:"minos",label:"Requires Input"},requires_manual_finalization:{color:"minos",label:"Requires Finalization"}};var eb=e=>{let{status:t}=e;return(0,r.jsx)(o.j8w,{color:e_[t].color,className:"justify-center","data-testid":"request-status-badge",children:e_[t].label})},eT=i(18225),ew=i(812),eE=i(7842);let{useGetAttachmentsQuery:eA,useUploadAttachmentMutation:eR,useGetAttachmentDetailsQuery:ek,useLazyGetAttachmentDetailsQuery:eC}=C.u.injectEndpoints({endpoints:e=>({getAttachments:e.query({query:e=>{let{privacy_request_id:t,page:i=1,size:n}=e;return{url:"plus/privacy-request/".concat(t,"/attachment"),method:"GET",params:{page:i,size:n}}},providesTags:["Privacy Request Attachments"]}),uploadAttachment:e.mutation({query:e=>{let{privacy_request_id:t,attachment_type:i,attachment_file:n}=e,s=new FormData;return s.append("attachment_type",i),s.append("attachment_file",n),{url:"plus/privacy-request/".concat(t,"/attachment"),method:"POST",body:s,params:{}}},invalidatesTags:["Privacy Request Attachments"]}),getAttachmentDetails:e.query({query:e=>{let{privacy_request_id:t,attachment_id:i}=e;return{url:"plus/privacy-request/".concat(t,"/attachment/").concat(i),method:"GET"}}})})}),{reducer:eq}=(0,k.oM)({name:"privacyRequestAttachments",initialState:{},reducers:{}}),eS=e=>{var t;let{file:i}=e,[n,s]=(0,h.useState)(!1),[l]=eC(),a=async()=>{var e,t,n;if((null===(e=i.customData)||void 0===e?void 0:e.attachment_id)&&(null===(t=i.customData)||void 0===t?void 0:t.privacy_request_id)){s(!0);try{let e=await l({privacy_request_id:i.customData.privacy_request_id,attachment_id:i.customData.attachment_id}),t=null===(n=e.data)||void 0===n?void 0:n.retrieved_attachment_url,s=null==t?void 0:t.startsWith("http");t&&s?window.open(t,"_blank"):t&&!s?o.Pg3.info("Download is not available when using local storage methods."):o.Pg3.error("No download URL available for ".concat(i.name))}catch(e){o.Pg3.error("Failed to fetch attachment download URL")}finally{s(!1)}}},c=(null===(t=i.customData)||void 0===t?void 0:t.attachment_type)===x.sf.INCLUDE_WITH_ACCESS_PACKAGE;return(0,r.jsxs)(o.jqI,{align:"center",gap:8,children:[(0,r.jsx)(o.PJP.PgN,{className:"shrink-0"}),(0,r.jsx)(o.lKn,{ellipsis:{tooltip:i.name},className:"grow",children:i.name}),c&&(0,r.jsx)(o.esZ,{title:"This attachment will be included in the access package.",children:(0,r.jsx)(o.PJP.wvC,{className:"shrink-0",title:"User icon"})}),(0,r.jsx)(o.wpx,{type:"text",icon:(0,r.jsx)(o.PJP.UWx,{}),onClick:a,loading:n,className:"shrink-0"})]})},eN=(e,t)=>(0,r.jsx)(eS,{file:t});var eP=e=>{let{subjectRequest:t}=e,[i,n]=(0,h.useState)(!1),s=(0,g.Tg)([x.Sh.ATTACHMENT_READ]),l=(0,g.Tg)([x.Sh.ATTACHMENT_CREATE]),[a]=eR(),{data:c,isLoading:d,error:u}=(0,ec.PW)(),{data:m,isLoading:p}=eA({privacy_request_id:t.id}),{refetch:v}=eA({privacy_request_id:t.id}),j=(null==m?void 0:m.items.map(e=>({uid:e.id,name:e.file_name,status:"done",customData:{attachment_id:e.id,privacy_request_id:t.id,attachment_type:e.attachment_type}})))||[],y=(0,h.useCallback)(()=>(0,r.jsx)(o.PJP.PgN,{}),[]);if(!s)return null;let f=l&&(null==c?void 0:c.key),_=[".pdf",".doc",".docx",".xls",".xlsx",".txt",".csv",".jpg",".jpeg",".png",".zip"];return(0,r.jsx)("div",{children:(0,r.jsxs)("div",{className:"mt-6",children:[(0,r.jsx)("div",{className:"mb-6",children:(0,r.jsx)(o.lQT,{level:3,children:"Attachments"})}),d||p?(0,r.jsx)(eT.Z,{size:"md",alignment:"start"}):(0,r.jsx)(o.pMK,{name:"attachment_file",fileList:j,iconRender:y,showUploadList:{showRemoveIcon:!1,showDownloadIcon:!1},itemRender:eN,accept:_.join(","),customRequest:async e=>{let{file:i,onSuccess:s,onError:l}=e,r=i.name;try{n(!0),await a({privacy_request_id:t.id,attachment_file:i,attachment_type:eE.s.INTERNAL_USE_ONLY}).unwrap(),o.Pg3.success("".concat(r," file uploaded successfully")),v(),null==s||s(i)}catch(e){o.Pg3.error("".concat(r," file upload failed.")),null==l||l(e)}finally{n(!1)}},disabled:!f,children:l&&(0,r.jsx)(o.esZ,{title:u&&"Add attachment not available: ".concat((0,ew.e$)(u)),placement:"top",children:(0,r.jsxs)(o.jqI,{align:"center",gap:12,className:"mb-4",children:[(0,r.jsx)(o.wpx,{icon:(0,r.jsx)(o.PJP.mm_,{}),iconPosition:"end",disabled:!f||i,loading:i,children:i?"Uploading":"Add"}),(0,r.jsx)(ea.b,{label:"Uploaded attachments are for internal use and won't be send as part of the request package.\n Accepted filetypes: ".concat(_.join(", ")),placement:"top"})]})})})]})})},eI=i(15709),eO=i.n(eI),eD=e=>{let{label:t,children:i}=e;return(0,r.jsxs)("div",{className:"flex items-center",children:[(0,r.jsx)("div",{className:"shrink-0 grow-0 basis-1/2 pr-2 ".concat(eO().label),children:(0,r.jsxs)(o.AntTypography.Text,{children:[t,":"]})}),(0,r.jsx)("div",{className:"min-w-0 shrink grow ".concat(eO().value),"data-testid":"request-detail-value-".concat(t),children:i})]})},eM=e=>{let{subjectRequest:t}=e,{custom_privacy_request_fields:i}=t;return(0,r.jsx)("div",{className:"flex flex-col gap-2",children:i&&Object.keys(i).length>0&&Object.entries(i).filter(e=>{let[,t]=e;return t.value}).map(e=>{let[t,i]=e;return(0,r.jsx)(eD,{label:i.label,children:(0,r.jsx)(o.AntTypography.Text,{children:Array.isArray(i.value)?i.value.join(", "):i.value})},t)})})},eU=e=>{var t,i;let{subjectRequest:n}=e,{plus:s}=(0,R.hz)(),{id:l,status:a,policy:c,identity:d,identity_verified_at:u}=n;return(0,r.jsxs)("div",{children:[(0,r.jsx)("div",{className:"mb-6",children:(0,r.jsx)(o.AntTypography.Title,{level:2,children:"Request details"})}),(0,r.jsxs)(o.jqI,{vertical:!0,gap:12,className:"mb-6",children:[(0,r.jsx)(eD,{label:"Status",children:(0,r.jsx)(eb,{status:a})}),(0,r.jsx)(eD,{label:"Time remaining",children:(0,r.jsx)(ef.Z,{daysLeft:n.days_left,includeText:!0,status:n.status})}),(0,r.jsx)(eD,{label:"Request type",children:(0,r.jsx)(em,{rules:c.rules})}),(0,r.jsx)(eD,{label:"Source",children:s&&(0,r.jsx)(o.AntTypography.Text,{children:n.source||"-"})}),n.submitted_by&&(0,r.jsx)(eD,{label:"Created by",children:(0,r.jsx)(o.AntTypography.Text,{children:(null===(t=n.submitter)||void 0===t?void 0:t.username)||"-"})}),(0,r.jsx)(eD,{label:"Reviewed by",children:(0,r.jsx)(o.AntTypography.Text,{children:(null===(i=n.reviewer)||void 0===i?void 0:i.username)||"-"})}),Object.entries(d).filter(e=>{let[,{value:t}]=e;return null!==t}).map(e=>{let[t,{value:i="",label:n}]=e,s="".concat(i).concat(u?"":" (Unverified)");return(0,r.jsx)(eD,{label:"Subject ".concat(n.toLocaleLowerCase()),children:(0,r.jsx)(o.esZ,{title:s,trigger:"click",children:(0,r.jsx)(o.AntTypography.Text,{ellipsis:!0,children:s})})},t)}),(0,r.jsx)(eM,{subjectRequest:n})]}),(0,r.jsxs)(o.PPS,{layout:"vertical",children:[(0,r.jsx)(o.PPS.Item,{label:"Request ID:",className:"mb-4",children:(0,r.jsx)(o.jqI,{gap:1,children:(0,r.jsxs)(o.vyj.Compact,{style:{width:"100%"},children:[(0,r.jsx)(o.uFc,{readOnly:!0,value:l,"data-testid":"request-detail-value-id"}),(0,r.jsx)(o.wpx,{icon:(0,r.jsx)(Z.Z,{copyText:l})})]})})}),(0,r.jsx)(o.PPS.Item,{label:"Policy key:",className:"mb-4",children:(0,r.jsx)(o.uFc,{readOnly:!0,value:n.policy.key,"data-testid":"request-detail-value-policy"})})]}),(0,r.jsx)(eP,{subjectRequest:n})]})};let eL=[x.q2.COMPLETE,x.q2.CANCELED,x.q2.DENIED,x.q2.ERROR];var ez=e=>{var t;let{data:i}=e,n=(0,h.useMemo)(()=>({id:i.id,verbose:!0}),[i.id]),{data:s}=(0,p.QA)(n,{pollingInterval:eL.includes(i.status)?0:2e3,skip:!i.id}),l=null!==(t=null==s?void 0:s.items[0])&&void 0!==t?t:i,a=l.status===x.q2.REQUIRES_INPUT,[c,d]=(0,h.useState)("activity"),u=(0,h.useMemo)(()=>[{key:"activity",label:"Activity",children:(0,r.jsx)(es,{subjectRequest:l})},{key:"manual-tasks",label:"Manual tasks",children:(0,r.jsx)(ey,{subjectRequest:l,onComplete:()=>d("activity")}),disabled:!a}],[a,l]);return(0,r.jsxs)("div",{className:"flex gap-8",children:[(0,r.jsx)("div",{className:"w-0 grow",children:(0,r.jsx)(o.A5g,{items:u,activeKey:c,onChange:d})}),(0,r.jsx)("div",{className:"w-1/3 2xl:w-[432px]","data-testid":"privacy-request-details",children:(0,r.jsx)(eU,{subjectRequest:l})})]})},eW=i(57526),eB=i(66548),eF=i(45489),eG=e=>{let{privacyRequest:t,action:i}=e,{handleApproveRequest:n,handleDenyRequest:s}=(0,eF.Z)({subjectRequest:t}),l=t.status===x.q2.PENDING,a=(0,o.qY0)(),r=async e=>{let{reason:t}=e,l=o.Pg3.loading({content:"approve"===i?"Approving request...":"Denying request..."});"deny"===i&&await s(t),"approve"===i&&await n(),l()};return{showAction:l,closeModal:a.onClose,performAction:r,openConfirmationModal:a.onOpen,isModalOpen:a.isOpen}},eZ=e=>{var t,i,n;let{privacyRequest:s}=e,l=null===(i=(0,R.hz)())||void 0===i?void 0:null===(t=i.flags)||void 0===t?void 0:t.downloadAccessRequestResults,a=s.status===x.q2.COMPLETE,r=eu(s.policy.rules).includes(x.Us.ACCESS),o=(0,g.Tg)([x.Sh.PRIVACY_REQUEST_ACCESS_RESULTS_READ]),{data:c,isLoading:d,isError:u,error:m}=(0,ec.br)({privacy_request_id:s.id},{skip:!a}),p=null!==(n=null==c?void 0:c.access_result_urls[0])&&void 0!==n?n:"",h=!!p&&"your local fides_uploads folder"!==p,v=null;return u?v=(0,ew.e$)(m,"Unable to resolve download URL"):h||(v="Requests stored locally cannot be downloaded"),{showDownloadResults:l&&o&&r&&a,downloadResults:()=>{let e=document.createElement("a");e.href=p,e.target="_blank",e.rel="noopener noreferrer",e.click(),e.remove()},infoTooltip:v,isLoading:d,isDisabled:!h}},eJ=e=>{let{privacyRequest:t}=e,{errorAlert:i,successAlert:n}=(0,eo.VY)(),s=t.status===x.q2.ERROR,[l]=(0,ec.Fq)();return{reprocessPrivacyRequest:async()=>{if(!t)return;let e=o.Pg3.loading("Reprocessing privacy request...",0),s=await l(t);"error"in s?i((0,ew.e$)(s.error),"DSR automation has failed for this privacy request due to the following:",{duration:null}):n("Privacy request is now being reprocessed."),e()},showReprocess:s}},eK=e=>{let{privacyRequest:t}=e,{showDownloadResults:i,downloadResults:n,infoTooltip:s,isDisabled:l}=eZ({privacyRequest:t}),{isModalOpen:a,closeModal:c,performAction:d,openConfirmationModal:u,showAction:m}=eG({privacyRequest:t,action:"approve"}),{isModalOpen:p,closeModal:g,performAction:v,openConfirmationModal:j,showAction:y}=eG({privacyRequest:t,action:"deny"}),{reprocessPrivacyRequest:f,showReprocess:_}=eJ({privacyRequest:t}),{handleFinalizeRequest:b,finalizeRequestResult:T}=(0,eF.Z)({subjectRequest:t}),w=(0,h.useMemo)(()=>{let e=[];return e.push({key:"approve",label:(0,r.jsx)("span",{"data-testid":"privacy-request-approve-btn",children:"Approve"}),onClick:u,disabled:!m}),e.push({key:"deny",label:(0,r.jsx)("span",{"data-testid":"privacy-request-deny-btn",children:"Deny"}),onClick:j,disabled:!y}),e.push({key:"reprocess",label:(0,r.jsx)("span",{"data-testid":"privacy-request-action-reprocess",children:"Reprocess"}),onClick:f,disabled:!_}),t.status===x.q2.REQUIRES_MANUAL_FINALIZATION&&e.push({key:"finalize",label:(0,r.jsx)("span",{"data-testid":"privacy-request-action-finalize",children:"Finalize"}),onClick:b,disabled:T.isLoading}),i&&e.push({key:"download",label:(0,r.jsx)(o.esZ,{title:l?s:null,placement:"bottom",children:(0,r.jsx)("span",{"data-testid":"download-results-btn",children:"Download request results"})}),onClick:n,disabled:l}),e},[i,n,s,l,m,y,u,j,_,f,t.status,b,T.isLoading]);return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(o.S0p,{menu:{items:w},trigger:["click"],overlayStyle:{minWidth:"160px"},children:(0,r.jsx)(o.wpx,{icon:(0,r.jsx)(o.PJP.pO,{}),"data-testid":"privacy-request-actions-dropdown-btn",iconPosition:"end",type:"primary",disabled:!w.length,size:"large",children:"Actions"})}),(0,r.jsx)(eW.Z,{isOpen:a,isLoading:!1,onClose:c,onApproveRequest:()=>d({reason:""}),subjectRequest:t}),(0,r.jsx)(eB.Z,{isOpen:p,onClose:g,onDenyRequest:e=>v({reason:e})})]})},eH=()=>{let e=(0,c.useRouter)().query.id,{data:t,isLoading:i}=(0,p.QA)({id:e,verbose:!0},{skip:!e}),n=(null==t?void 0:t.items[0])||null;return(0,r.jsxs)(d.Z,{title:"Privacy Request - ".concat(e),children:[(0,r.jsx)(m.Z,{heading:"Privacy Requests",breadcrumbItems:[{title:"All requests",href:u.Jw},{title:"Request details"}],rightContent:!!n&&(0,r.jsx)(eK,{privacyRequest:n})}),i&&(0,r.jsx)(o.M5Y,{children:(0,r.jsx)(o.$jN,{})}),!i&&!n&&(0,r.jsx)(o.xvT,{children:"404 no privacy request found"}),!i&&n&&(0,r.jsx)(ez,{data:n})]})}},15709:function(e){e.exports={value:"RequestDetailsRow_value__WMXn3",label:"RequestDetailsRow_label__dn3CQ"}},38450:function(e){e.exports={container:"ActivityTimelineEntry_container__tCva0","container--open":"ActivityTimelineEntry_container--open__1d9mA",itemButton:"ActivityTimelineEntry_itemButton__MlmWS","itemButton--error":"ActivityTimelineEntry_itemButton--error__UizD2","itemButton--comment":"ActivityTimelineEntry_itemButton--comment__g98SH","itemButton--awaiting-input":"ActivityTimelineEntry_itemButton--awaiting-input__6lB5t","itemButton--polling":"ActivityTimelineEntry_itemButton--polling__jzolP",header:"ActivityTimelineEntry_header__GYibj",title:"ActivityTimelineEntry_title__rm_g0","title--error":"ActivityTimelineEntry_title--error__fOi0s","title--awaiting-input":"ActivityTimelineEntry_title--awaiting-input__3sPAo","title--polling":"ActivityTimelineEntry_title--polling__g_Hgn",timestamp:"ActivityTimelineEntry_timestamp__uMEMT",viewLogs:"ActivityTimelineEntry_viewLogs___T4jN",logs:"ActivityTimelineEntry_logs__T7R0J","logs--open":"ActivityTimelineEntry_logs--open__o_9Io"}}},function(e){e.O(0,[431,4558,2888,9774,179],function(){return e(e.s=6554)}),_N_E=e.O()}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[210],{53748:function(e,t,i){(window.__NEXT_P=window.__NEXT_P||[]).push(["/settings/consent",function(){return i(96236)}])},59301:function(e,t,i){"use strict";var s=i(24246);let{Link:n}=i(96306).AntTypography;t.Z=e=>(0,s.jsx)(n,{target:"_blank",rel:"noopener noreferrer",...e})},56358:function(e,t,i){"use strict";i.d(t,{q:function(){return n}});var s=i(24246);let n=(0,i(96306).IUT)({displayName:"TrashCanOutlineIcon",viewBox:"0 0 11 12",path:(0,s.jsx)("path",{d:"M4.5166 1.60859L4.1084 2.21875H7.22363L6.81543 1.60859C6.7832 1.56133 6.72949 1.53125 6.67148 1.53125H4.6584C4.60039 1.53125 4.54668 1.55918 4.51445 1.60859H4.5166ZM7.6748 1.03711L8.46328 2.21875H8.75977H9.79102H9.96289C10.2486 2.21875 10.4785 2.44863 10.4785 2.73438C10.4785 3.02012 10.2486 3.25 9.96289 3.25H9.79102V9.78125C9.79102 10.7309 9.02188 11.5 8.07227 11.5H3.25977C2.31016 11.5 1.54102 10.7309 1.54102 9.78125V3.25H1.36914C1.0834 3.25 0.853516 3.02012 0.853516 2.73438C0.853516 2.44863 1.0834 2.21875 1.36914 2.21875H1.54102H2.57227H2.86875L3.65723 1.03496C3.88066 0.701953 4.25664 0.5 4.6584 0.5H6.67148C7.07324 0.5 7.44922 0.701953 7.67266 1.03496L7.6748 1.03711ZM2.57227 3.25V9.78125C2.57227 10.1615 2.87949 10.4688 3.25977 10.4688H8.07227C8.45254 10.4688 8.75977 10.1615 8.75977 9.78125V3.25H2.57227ZM4.29102 4.625V9.09375C4.29102 9.28281 4.13633 9.4375 3.94727 9.4375C3.7582 9.4375 3.60352 9.28281 3.60352 9.09375V4.625C3.60352 4.43594 3.7582 4.28125 3.94727 4.28125C4.13633 4.28125 4.29102 4.43594 4.29102 4.625ZM6.00977 4.625V9.09375C6.00977 9.28281 5.85508 9.4375 5.66602 9.4375C5.47695 9.4375 5.32227 9.28281 5.32227 9.09375V4.625C5.32227 4.43594 5.47695 4.28125 5.66602 4.28125C5.85508 4.28125 6.00977 4.43594 6.00977 4.625ZM7.72852 4.625V9.09375C7.72852 9.28281 7.57383 9.4375 7.38477 9.4375C7.1957 9.4375 7.04102 9.28281 7.04102 9.09375V4.625C7.04102 4.43594 7.1957 4.28125 7.38477 4.28125C7.57383 4.28125 7.72852 4.43594 7.72852 4.625Z",fill:"currentColor"})})},58754:function(e,t,i){"use strict";var s=i(24246),n=i(96306),r=i(70788);t.Z=e=>{let{heading:t,breadcrumbItems:i,isSticky:o=!0,children:l,rightContent:a,style:d,...c}=e;return(0,s.jsxs)("div",{...c,style:o?{position:"sticky",top:"-24px",paddingTop:"24px",paddingBottom:"24px",paddingLeft:"40px",marginLeft:"-40px",paddingRight:"40px",marginRight:"-40px",marginTop:"-24px",left:0,zIndex:20,backgroundColor:"white",...d}:{paddingBottom:"24px",...d},children:[(0,s.jsxs)(n.jqI,{justify:"space-between",children:["string"==typeof t?(0,s.jsx)(n.lQT,{className:i||l?"pb-4":void 0,level:1,"data-testid":"page-heading",children:t}):t,a&&(0,s.jsx)("div",{"data-testid":"page-header-right-content",children:a})]}),!!i&&(0,s.jsx)(r.m,{className:l?"pb-4":void 0,items:i,"data-testid":"page-breadcrumb"}),l]})}},19904:function(e,t,i){"use strict";i.d(t,{Tg:function(){return o}});var s=i(24246),n=i(16134),r=i(31793);let o=e=>(0,n.C)(r.uu).filter(t=>e.includes(t)).length>0;t.ZP=e=>{let{scopes:t,children:i}=e;return o(t)?(0,s.jsx)(s.Fragment,{children:i}):null}},8133:function(e,t,i){"use strict";var s=i(24246),n=i(96306);t.Z=e=>{let{title:t,children:i,isOpen:r,onClose:o,modalContentProps:l,showCloseButton:a=!1,footer:d,...c}=e;return(0,s.jsxs)(n.u_l,{isOpen:r,onClose:o,isCentered:!0,scrollBehavior:"inside",size:"xl",id:"add-modal",...c,children:[(0,s.jsx)(n.ZAr,{}),(0,s.jsxs)(n.hzk,{textAlign:"left",p:0,"data-testid":"add-modal-content",...l,children:[a&&(0,s.jsx)(n.olH,{}),(0,s.jsx)(n.xBx,{p:0,children:(0,s.jsx)(n.xuv,{backgroundColor:"gray.50",px:6,py:4,border:"1px",borderColor:"gray.200",borderTopRadius:6,display:"flex",justifyContent:"space-between",alignItems:"center",children:(0,s.jsx)(n.X6q,{as:"h3",size:"sm",children:t})})}),(0,s.jsx)(n.fef,{pb:4,overflow:"auto",children:i}),d&&(0,s.jsx)(n.mzw,{children:d})]})]})}},70788:function(e,t,i){"use strict";i.d(t,{m:function(){return d}});var s=i(24246),n=i(96306),r=i(79894),o=i.n(r),l=i(27378);let{Text:a}=n.AntTypography,d=e=>{let{items:t,...i}=e,r=(0,l.useMemo)(()=>null==t?void 0:t.map((e,i)=>{let r=i===t.length-1,l={...e},d=l.onClick&&!l.href;return("string"==typeof l.title&&(l.title=(0,s.jsx)(a,{style:{color:"inherit",maxWidth:r?void 0:400},ellipsis:!r,id:r?"breadcrumb-current-page":void 0,children:l.title})),d)?l.title=(0,s.jsx)(n.wpx,{type:"text",size:"small",icon:l.icon,onClick:l.onClick,className:"ant-breadcrumb-link -mt-px px-1 text-inherit",children:l.title}):(l.icon&&(l.title=(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("span",{className:"anticon align-text-bottom",children:l.icon}),l.title]})),l.href&&l.title&&(l.title=(0,s.jsx)(o(),{href:l.href,className:"ant-breadcrumb-link",children:l.title}),delete l.href)),l}),[t]);return(0,s.jsx)(n.zrq,{items:r,...i})}},6675:function(e,t,i){"use strict";i.d(t,{ZS:function(){return l},a4:function(){return r}});var s=i(3228);let n=i(78780).u.injectEndpoints({endpoints:e=>({getPurposes:e.query({query:()=>"purposes"})})}),{useGetPurposesQuery:r}=n,o={purposes:{},special_purposes:{}},l=(0,s.P1)(n.endpoints.getPurposes.select(),e=>{let{data:t}=e;return t||o})},51263:function(e,t,i){"use strict";var s=i(24246),n=i(96306);t.Z=e=>{let{title:t,children:i,...r}=e;return(0,s.jsxs)(n.xuv,{backgroundColor:"var(--fidesui-bg-corinth)",borderRadius:"4px",padding:"3","data-testid":"setting-".concat(t),...r,children:[(0,s.jsx)(n.xvT,{as:"h3",fontSize:"md",fontWeight:"bold",lineHeight:5,color:"gray.700",mb:3,children:t}),i]})}},59512:function(e,t,i){"use strict";i.d(t,{Cu:function(){return l},Py:function(){return n},fj:function(){return o},uh:function(){return r}});var s=i(21910);let n=[1,3,4,5,6],r="https://ethyca.com/docs/tutorials/consent-management/consent-management-configuration/configure-tcf#vendor-overrides",o={[s.FF.PURPOSE_RESTRICTION]:"Purpose restriction",[s.FF.REQUIRE_CONSENT]:"Require consent",[s.FF.REQUIRE_LEGITIMATE_INTEREST]:"Require legitimate interest"},l={[s.PY.RESTRICT_ALL_VENDORS]:"Restrict all vendors",[s.PY.RESTRICT_SPECIFIC_VENDORS]:"Restrict specific vendors",[s.PY.ALLOW_SPECIFIC_VENDORS]:"Allow specific vendors"}},96236:function(e,t,i){"use strict";i.r(t),i.d(t,{default:function(){return J}});var s=i(24246),n=i(96306),r=i(34090),o=i(27378),l=i(16134),a=i(25980),d=i(812),c=i(77213),u=i(58754),p=i(6675),h=i(46628),x=i(7426),g=i(40324);let m=e=>{let{children:t,purpose:i,endCol:r}=e;return(0,s.jsx)(n.kCb,{flex:"1",justifyContent:"center",alignItems:"center",borderLeft:"solid 1px",borderRight:r?"solid 1px":"unset",borderColor:"gray.200",height:"100%",minWidth:"36px",children:[1,3,4,5,6].includes(i)?null:(0,s.jsx)(n.xuv,{children:t})})};var f=()=>{let{values:e,setFieldValue:t}=(0,r.u6)(),{purposes:i}=(0,l.C)(p.ZS);return(0,s.jsx)(r.F2,{name:"purposeOverrides",render:()=>(0,s.jsxs)(n.kCb,{flexDirection:"column",minWidth:"944px",children:[(0,s.jsxs)(n.kCb,{width:"100%",border:"solid 1px",borderColor:"gray.200",backgroundColor:"gray.50",height:"36px",children:[(0,s.jsx)(n.kCb,{width:"600px",pl:"4",fontSize:"xs",fontWeight:"medium",lineHeight:"4",alignItems:"center",borderRight:"solid 1px",borderColor:"gray.200",children:"TCF purpose"}),(0,s.jsx)(n.kCb,{flex:"1",alignItems:"center",borderRight:"solid 1px",borderColor:"gray.200",minWidth:"36px",children:(0,s.jsx)(n.xvT,{pl:"4",fontSize:"xs",fontWeight:"medium",lineHeight:"4",children:"Allowed"})}),(0,s.jsx)(n.kCb,{flex:"1",alignItems:"center",borderRight:"solid 1px",borderColor:"gray.200",children:(0,s.jsx)(n.xvT,{pl:"4",fontSize:"xs",fontWeight:"medium",lineHeight:"4",children:"Consent"})}),(0,s.jsx)(n.kCb,{flex:"1",alignItems:"center",children:(0,s.jsx)(n.xvT,{pl:"4",fontSize:"xs",fontWeight:"medium",lineHeight:"4",children:"Legitimate interest"})})]}),e.purposeOverrides.map((r,o)=>(0,s.jsxs)(n.kCb,{width:"100%",height:"36px",alignItems:"center",borderBottom:"solid 1px",borderColor:"gray.200",backgroundColor:"#fff",children:[(0,s.jsxs)(n.kCb,{width:"600px",borderLeft:"solid 1px",borderColor:"gray.200",p:0,alignItems:"center",height:"100%",pl:"4",fontSize:"xs",fontWeight:"normal",lineHeight:"4",children:["Purpose ",r.purpose,": ",i[r.purpose].name]}),(0,s.jsx)(n.kCb,{flex:"1",justifyContent:"center",alignItems:"center",borderLeft:"solid 1px",borderColor:"gray.200",height:"100%",children:(0,s.jsx)(n.xuv,{children:(0,s.jsx)(g.w8,{name:"purposeOverrides[".concat(o,"].is_included"),onChange:e=>{e||(t("purposeOverrides[".concat(o,"].is_consent"),!1),t("purposeOverrides[".concat(o,"].is_legitimate_interest"),!1))}})})}),(0,s.jsx)(m,{purpose:r.purpose,children:(0,s.jsx)(g.w8,{isDisabled:!e.purposeOverrides[o].is_included||e.purposeOverrides[o].is_legitimate_interest,name:"purposeOverrides[".concat(o,"].is_consent")})}),(0,s.jsx)(m,{purpose:r.purpose,endCol:!0,children:(0,s.jsx)(g.w8,{isDisabled:!e.purposeOverrides[o].is_included||e.purposeOverrides[o].is_consent,name:"purposeOverrides[".concat(o,"].is_legitimate_interest")})})]},r.purpose))]})})},v=i(59301),j=e=>{let{name:t,enabled:i}=e;return(0,s.jsxs)(n.Kqy,{spacing:2,fontSize:"sm",lineHeight:"5",fontWeight:"medium",color:"gray.700",children:[(0,s.jsxs)(n.xvT,{children:[t," status"," ",i?(0,s.jsx)(n.j8w,{color:"success",children:"Enabled"}):(0,s.jsx)(n.j8w,{color:"error",children:"Disabled"})]}),(0,s.jsxs)(n.xvT,{children:["To ",i?"disable":"enable"," ",t,", please contact your Fides administrator or"," ",(0,s.jsx)(v.Z,{href:"mailto:support@ethyca.com",children:"Ethyca support"}),"."]})]})},b=i(46238),C=e=>{var t,i;let{label:o,options:l,layout:a,defaultFirstSelected:d=!0,...c}=e,[u,p]=(0,r.U$)(c),h={...u,value:null!==(t=u.value)&&void 0!==t?t:""},x=!!(p.touched&&p.error),m=d?l[0]:void 0,f=null!==(i=l.find(e=>e.value===h.value))&&void 0!==i?i:m,v=e=>{h.onChange(c.name)(e.target.value)};return"stacked"===a?(0,s.jsxs)(n.NIc,{isInvalid:x,children:[(0,s.jsxs)(n.jqI,{className:"w-fit",children:[o?(0,s.jsx)(g.__,{children:o}):null,(0,s.jsx)(n.y02.Group,{onChange:v,value:null==f?void 0:f.value,"data-testid":"input-".concat(h.name),children:(0,s.jsx)(n.jqI,{className:"flex-col gap-3",children:l.map(e=>{let{value:t,label:i,tooltip:r}=e;return(0,s.jsx)(n.y02,{value:t,"data-testid":"option-".concat(t),children:(0,s.jsxs)(n.jqI,{className:"items-center gap-2",children:[(0,s.jsx)(n.xvT,{fontSize:"sm",fontWeight:"medium",children:i}),r?(0,s.jsx)(b.b,{label:r}):null]})},t)})})})]}),(0,s.jsx)(g.Bc,{isInvalid:x,message:p.error,fieldName:h.name})]}):(0,s.jsxs)(n.NIc,{isInvalid:x,children:[(0,s.jsxs)(n.rjZ,{templateColumns:"1fr 3fr",children:[(0,s.jsx)(g.__,{children:o}),(0,s.jsx)(n.y02.Group,{onChange:v,value:null==f?void 0:f.value,"data-testid":"input-".concat(h.name),children:(0,s.jsx)(n.jqI,{children:l.map(e=>(0,s.jsx)(n.y02,{value:e.value,"data-testid":"option-".concat(e.value),children:e.label},e.value))})})]}),(0,s.jsx)(g.Bc,{isInvalid:x,message:p.error,fieldName:h.name})]})},y=i(21910),_=i(51263);let w=e=>{let{title:t,children:i}=e;return(0,s.jsxs)(n.Kqy,{spacing:3,mb:3,"data-testid":"section-".concat(t),children:[(0,s.jsx)(n.xvT,{fontSize:"sm",fontWeight:"bold",lineHeight:5,color:"gray.700",children:t}),i]})};var T=()=>{let{tcf:e}=(0,a.hz)(),t=!!(0,l.C)(x.D2).enabled,{values:i,setFieldValue:o}=(0,r.u6)(),d=!!i.gpp.us_approach;return(0,s.jsx)(_.Z,{title:"Global Privacy Platform",children:(0,s.jsxs)(n.Kqy,{spacing:6,children:[(0,s.jsx)(j,{name:"GPP",enabled:t}),t?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(w,{title:"GPP U.S.",children:(0,s.jsx)(C,{name:"gpp.us_approach",layout:"stacked",defaultFirstSelected:!1,options:[{label:"Enable U.S. National",value:y.en.NATIONAL,tooltip:"When US National is selected, Fides will present the same privacy notices to all consumers located anywhere in the United States."},{label:"Enable U.S. State-by-State",value:y.en.STATE,tooltip:"When state-by-state is selected, Fides will only present consent to consumers and save their preferences if they are located in a state that is supported by the GPP. The consent options presented to consumers will vary depending on the regulations in each state."},{label:"Enable US National and State-by-State notices",value:y.en.ALL,tooltip:"When enabled, Fides can be configured to serve the National and U.S. state notices. This mode is intended to provide consent coverage to U.S. states with new privacy laws where GPP support lags behind the effective date of state laws."}]})}),d?(0,s.jsxs)(w,{title:"MSPA",children:[(0,s.jsx)(g.Xl,{name:"gpp.mspa_covered_transactions",label:"All transactions covered by MSPA",tooltip:"When selected, the Fides CMP will communicate to downstream vendors that all preferences are covered under the MSPA.",onChange:e=>{e||(o("gpp.mspa_service_provider_mode",!1),o("gpp.mspa_opt_out_option_mode",!1))}}),(0,s.jsx)(g.w8,{label:"Enable MSPA service provider mode",name:"gpp.mspa_service_provider_mode",variant:"switchFirst",tooltip:"Enable service provider mode if you do not engage in any sales or sharing of personal information.",isDisabled:!!i.gpp.mspa_opt_out_option_mode||!i.gpp.mspa_covered_transactions}),(0,s.jsx)(g.w8,{label:"Enable MSPA opt-out option mode",name:"gpp.mspa_opt_out_option_mode",variant:"switchFirst",tooltip:"Enable opt-out option mode if you engage or may engage in the sales or sharing of personal information, or process any information for the purpose of targeted advertising.",isDisabled:!!i.gpp.mspa_service_provider_mode||!i.gpp.mspa_covered_transactions})]}):null]}):null,e?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(n.izJ,{color:"gray.200"}),(0,s.jsxs)(w,{title:"GPP Europe",children:[(0,s.jsx)(n.xvT,{fontSize:"sm",fontWeight:"medium",children:"Configure TCF string for Global Privacy Platform"}),(0,s.jsx)(g.w8,{label:"Enable TC string",name:"gpp.enable_tcfeu_string",variant:"switchFirst",tooltip:"When enabled, the GPP API will include a TCF EU consent string for users who are in regions where TCF applies."})]})]}):null]})})},S=i(64781),I=i(60325),N=()=>{var e,t,i;let{tcf:o}=(0,a.hz)(),{values:l,setFieldValue:d}=(0,r.u6)(),{data:c,isLoading:u}=(0,S.gT)(),p=[...(0,I.k1)(null!==(t=null==c?void 0:c.locations)&&void 0!==t?t:[]),...(0,I.k1)(null!==(i=null==c?void 0:c.location_groups)&&void 0!==i?i:[])].sort((e,t)=>e.name<t.name?-1:1);return o?(0,s.jsxs)(_.Z,{title:"Publisher settings",children:[(0,s.jsx)(n.AntTypography.Paragraph,{className:"mb-3",children:"Specify the country in which your organization operates for TCF compliance. This setting will determine the 'Publisher Country Code ' transmitted in the Transparency and Consent (TC) Data."}),(0,s.jsx)(n.PPS.Item,{label:"Publisher country",htmlFor:"publisher_country_code",children:(0,s.jsx)(n.AOh,{"data-testid":"input-publisher_settings.publisher_country_code",id:"publisher_country_code",loading:u,allowClear:!0,options:(0,n.Ky_)(null==p?void 0:p.map(e=>e.id)),placeholder:"Select a country",value:null===(e=l.tcfPublisherSettings.publisher_country_code)||void 0===e?void 0:e.replace("_","-").toUpperCase(),onChange:e=>d("tcfPublisherSettings.publisher_country_code",null==e?void 0:e.toLowerCase()),className:"!w-80"})})]}):null},E=i(52955),P=i(71795),k=i(59512),F=i(55484),L=i(8133),O=i(31883);let R=F.Ry().shape({name:F.Z_().required().label("Name")}),z=e=>{let{isOpen:t,onClose:i,onSuccess:o}=e,l=(0,n.pmc)(),[a]=(0,E.LK)(),c=async e=>{let t=await a({name:e.name});(0,O.D4)(t)?l((0,h.Vo)((0,d.e$)(t.error))):(l((0,h.t5)("Successfully created TCF configuration")),null==o||o(t.data.id),i())};return(0,s.jsx)(L.Z,{title:"Create a new TCF configuration",isOpen:t,onClose:i,children:(0,s.jsx)(r.J9,{initialValues:{name:""},onSubmit:c,validationSchema:R,children:e=>{let{isValid:t,dirty:o}=e;return(0,s.jsx)(r.l0,{children:(0,s.jsxs)(n.vyj,{direction:"vertical",size:"small",className:"w-full",children:[(0,s.jsx)(n.xvT,{children:"TCF configurations allow you to define unique sets of publisher restrictions. These configurations can be added to privacy experiences."}),(0,s.jsx)(g.j0,{id:"name",name:"name",label:"Name",isRequired:!0,variant:"stacked"}),(0,s.jsxs)(n.vyj,{className:"w-full justify-end pt-6",children:[(0,s.jsx)(n.wpx,{onClick:i,children:"Cancel"}),(0,s.jsx)(n.wpx,{type:"primary",htmlType:"submit",disabled:!t||!o,"data-testid":"save-config-button",children:"Save"})]})]})})}})})};var A=i(79894),q=i.n(A);let Z=e=>{let{width:t,style:i,borderLeft:r=!1,borderRight:o=!1,...l}=e;return(0,s.jsx)(n.jqI,{align:"center",className:"h-full px-4",...l,style:{borderLeft:r?"solid 1px":"none",borderRight:o?"solid 1px":"none",borderColor:"var(--ant-color-border)",width:t,...i},role:"cell"})},W=e=>{let{width:t,style:i,borderLeft:r=!1,children:o,...l}=e;return(0,s.jsx)(n.jqI,{align:"center",role:"columnheader",className:"px-4",...l,style:{borderLeft:r?"solid 1px":"none",borderColor:"var(--ant-color-border)",fontWeight:500,whiteSpace:"nowrap",width:t,...i},children:o})},H=e=>{let{isHeader:t=!1,isLastRow:i=!1,style:r,...o}=e;return(0,s.jsx)(n.jqI,{role:t?"rowheader":"row",className:"h-9 w-full",...o,style:{backgroundColor:t?"var(--fidesui-bg-default)":void 0,borderBottom:i?"none":"solid 1px",borderColor:"var(--ant-color-border)",...r}})},M=e=>{let{config:t,isLoading:i,style:r,...o}=e,{purposes:a}=(0,l.C)(p.ZS);return(0,s.jsxs)(n.jqI,{vertical:!0,...o,style:{maxWidth:"1200px",border:"solid 1px",borderColor:"var(--ant-color-border)",backgroundColor:"var(--ant-color-bg-base)",fontSize:"12px",...r},"aria-label":"Publisher restrictions table",role:"table","data-testid":"publisher-restrictions-table",children:[(0,s.jsxs)(H,{isHeader:!0,style:{width:"100%"},children:[(0,s.jsx)(W,{width:"600px",children:"TCF purpose"}),(0,s.jsxs)(W,{flex:1,gap:3,borderLeft:!0,children:["Restrictions",(0,s.jsx)(b.b,{label:"Restrictions control how vendors are permitted to process data for specific purposes. Fides supports three restriction types: Purpose Restriction to completely disallow data processing for a purpose, Require Consent to allow processing only with explicit user consent, and Require Legitimate Interest to allow processing based on legitimate business interest unless the user objects."})]}),(0,s.jsxs)(W,{width:"100px",gap:3,borderLeft:!0,children:["Flexible",(0,s.jsx)(b.b,{label:'Indicates whether the legal basis for this purpose can be overridden by publisher restrictions. If marked "No," the purpose has a fixed legal basis defined by the TCF and cannot be changed.'})]}),(0,s.jsx)(W,{width:"100px",borderLeft:!0,children:"Actions"})]}),Object.values(a).map((e,r)=>(0,s.jsxs)(H,{isLastRow:r===Object.values(a).length-1,children:[(0,s.jsxs)(Z,{width:"600px",children:["Purpose ",e.id,": ",e.name]}),(0,s.jsx)(Z,{flex:1,borderLeft:!0,"data-testid":"restriction-type-cell-".concat(e.id),children:i?(0,s.jsx)(n.OdW,{height:"16px",width:"100%"}):(()=>{var i;let r=(null==t?void 0:null===(i=t.restriction_types_per_purpose)||void 0===i?void 0:i[e.id])||[];return 0===r.length?"none":1===r.length?(0,s.jsx)(n.xvT,{size:"sm",whiteSpace:"nowrap",children:k.fj[r[0]]}):(0,s.jsxs)(n.xvT,{children:[r.length," restrictions"]})})()}),(0,s.jsx)(Z,{width:"100px",borderLeft:!0,children:k.Py.includes(e.id)?(0,s.jsx)(n.j8w,{color:"error","data-testid":"flexibility-tag-".concat(e.id),children:"No"}):(0,s.jsx)(n.j8w,{color:"success","data-testid":"flexibility-tag-".concat(e.id),children:"Yes"})}),(0,s.jsx)(Z,{width:"100px",borderLeft:!0,children:(0,s.jsx)(q(),{href:"/settings/consent/".concat(null==t?void 0:t.id,"/").concat(e.id),passHref:!0,legacyBehavior:!0,children:(0,s.jsx)(n.wpx,{size:"small","data-testid":"edit-restriction-btn-".concat(e.id),children:"Edit"})})})]},e.id))]})};var V=i(56358),D=i(19904);let B=()=>(0,s.jsxs)(n.vyj,{direction:"vertical",size:"small",children:[(0,s.jsx)(n.OdW,{width:"100%",className:"h-4"}),(0,s.jsx)(n.OdW,{width:"100%",className:"h-4"}),(0,s.jsx)(n.OdW,{width:"100%",className:"h-4"})]}),G=e=>{let{searchResults:t,selectedConfigId:i,handleSelection:r,userCanDeleteConfigs:o,onDeleteOpen:l,setConfigToDelete:a}=e;return(0,s.jsx)(n.y02.Group,{onChange:e=>r(e.target.value),value:i,className:"flex flex-col gap-2",children:t.map(e=>(0,s.jsxs)(n.jqI,{className:o?"justify-between":"justify-start","data-testid":"tcf-config-item-".concat(e.id),children:[(0,s.jsx)(n.y02,{value:e.id,name:"tcf-config-id","data-testid":"tcf-config-item",children:(0,s.jsx)(n.xvT,{className:"text-sm",children:e.name})}),o&&(0,s.jsx)(n.wpx,{type:"text",size:"small",icon:(0,s.jsx)(V.q,{fontSize:16}),onClick:t=>{t.stopPropagation(),a(e),l()},"data-testid":"delete-config-button"})]},e.id))})},U=e=>{let t,{searchTerm:i,setSearchTerm:r,searchResults:l,selectedConfigId:a,handleSelection:d,userCanCreateConfigs:c,userCanDeleteConfigs:u,modalOnOpen:p,onDeleteOpen:h,setConfigToDelete:x,isLoading:g,setDropdownOpen:m,configurations:f}=e,[v,j]=(0,o.useState)(a);return(0,o.useEffect)(()=>{j(a)},[a]),t=g?(0,s.jsx)(B,{}):0===l.length?(0,s.jsx)(n.xvT,{className:"text-center",children:"No configurations found."}):(0,s.jsx)(G,{searchResults:l,selectedConfigId:v,handleSelection:e=>{j(e)},userCanDeleteConfigs:u,onDeleteOpen:h,setConfigToDelete:x}),(0,s.jsxs)(n.V4A,{title:"TCF configurations",className:"min-w-[300px]",extra:(0,s.jsx)(n.wpx,{type:"text",size:"small",icon:(0,s.jsx)(n.Two,{}),onClick:()=>m(!1),"data-testid":"close-config-dropdown"}),style:{boxShadow:"var(--ant-box-shadow)"},children:[f.length>10&&(0,s.jsx)(n.BZy,{size:"sm",children:(0,s.jsx)(n.uFc,{className:"mb-4",placeholder:"Search...",onChange:e=>r(e.target.value),value:i})}),t,(0,s.jsxs)(n.jqI,{gap:"small",className:"mt-4",children:[c&&(0,s.jsx)(n.wpx,{size:"small",onClick:()=>{p(),m(!1)},className:"flex-1","data-testid":"create-config-button",children:"+ Create"}),(0,s.jsx)(n.wpx,{size:"small",onClick:()=>d(v),className:"flex-1","data-testid":"apply-config-button",disabled:v===a,children:"Apply"})]})]})},$=e=>(0,s.jsx)(U,{...e}),Y=e=>{var t;let{selectedConfigId:i,configurations:r,isLoading:l=!1,onConfigurationSelect:a,onConfigurationDelete:c}=e,u=(0,D.Tg)([y.Sh.PRIVACY_EXPERIENCE_CREATE]),p=(0,D.Tg)([y.Sh.PRIVACY_EXPERIENCE_CREATE]),h=(0,n.pmc)({id:"tcf-config-toast"}),[x]=(0,E.Cm)(),{isOpen:g,onOpen:m,onClose:f}=(0,n.qY0)(),{isOpen:v,onOpen:j,onClose:b}=(0,n.qY0)(),[C,_]=(0,o.useState)(""),[w,T]=(0,o.useState)(),[S,I]=(0,o.useState)(!1),N=(0,o.useMemo)(()=>C?r.filter(e=>e.name.toLowerCase().includes(C.toLowerCase())):r,[r,C]),P=(0,o.useMemo)(()=>r.find(e=>e.id===i),[r,i]),k=null!==(t=null==P?void 0:P.name)&&void 0!==t?t:"Select Configuration",F=e=>{a(e),I(!1)},L=async e=>{try{await x(e).unwrap(),null==c||c(e),T(void 0),b(),h({status:"success",description:'Configuration "'.concat(null==w?void 0:w.name,'" was successfully deleted.')})}catch(e){h({status:"error",description:(0,d.e$)(e,"A problem occurred while deleting the configuration.")})}};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(n.S0p,{open:S,onOpenChange:I,trigger:["click"],overlayStyle:{zIndex:999},dropdownRender:()=>$({searchTerm:C,setSearchTerm:_,searchResults:N,selectedConfigId:i,handleSelection:F,userCanCreateConfigs:u,userCanDeleteConfigs:p,modalOnOpen:m,onDeleteOpen:j,setConfigToDelete:T,isLoading:l,setDropdownOpen:I,configurations:r}),children:(0,s.jsx)(n.wpx,{icon:(0,s.jsx)(n.v4q,{}),iconPosition:"end","data-testid":"tcf-config-dropdown-trigger",children:k})}),(0,s.jsx)(z,{isOpen:g,onClose:f,onSuccess:e=>{a(e)}}),(0,s.jsx)(n.cVQ,{isOpen:v,onClose:()=>{T(void 0),b()},onConfirm:()=>{w&&L(w.id)},title:"Delete configuration",message:"Are you sure you want to delete this configuration? This action cannot be undone."})]})};var K=i(32885);let X=e=>{let{defaultChecked:t,onChange:i,...r}=e,l=(0,n.pmc)(),[a,c]=(0,o.useState)(t),[u,p]=(0,o.useState)(!1),{isLoading:g}=(0,K.x8)(),[m,{isLoading:f}]=(0,x.L)(),[v]=(0,K.M7)(),{data:j}=(0,K.n3)(void 0,{skip:g}),C=async e=>{let t=await m({consent:{override_vendor_purposes:e}});e&&j&&await v(j.map(e=>({...e,is_included:!0,required_legal_basis:void 0}))),(t=>{if(l.closeAll(),null==i||i(e),(0,O.D4)(t)){let e=(0,d.e$)(t.error,"An unexpected error occurred while saving vendor override settings. Please try again.");null==i||i(!1),l((0,h.Vo)(e))}})(t)};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)(n.vyj,{direction:"vertical",size:"small",children:[(0,s.jsx)(n.xvT,{children:"Configure overrides for TCF related purposes."}),(0,s.jsxs)(n.vyj,{size:"small",children:[(0,s.jsx)(n.rAg,{size:"small",disabled:f,loading:f,...r,checked:a,defaultChecked:t,onClick:e=>{e?(c(e),C(e)):p(!0)},"data-testid":"tcf-override-toggle"}),(0,s.jsx)(n.xvT,{children:"Override vendor purposes"}),(0,s.jsx)(b.b,{label:"Toggle on if you want to globally change any flexible legal bases or remove TCF purposes from your CMP"})]})]}),(0,s.jsx)(n.cVQ,{isOpen:u,onClose:()=>p(!1),onConfirm:()=>{c(!1),C(!1),p(!1)},title:"Disable Vendor Overrides",message:"Are you sure you want to disable vendor overrides? Clicking 'Continue' will immediately remove any custom configurations you have set for TCF purposes for all experiences."})]})},Q=e=>{var t;let{isTCFOverrideEnabled:i}=e,[r,l]=(0,o.useState)(i),[a,d]=(0,o.useState)(!1),[c,u]=(0,P._)("selectedTCFConfigId",null),{data:p,isLoading:h}=(0,E.LS)({page:1,size:50},{skip:!i}),{data:x,isFetching:g}=(0,E.NZ)(c||"",{skip:!c});return(0,o.useEffect)(()=>{var e,t;!h&&(null==p?void 0:null===(e=p.items)||void 0===e?void 0:e.length)&&!c&&u(p.items[0].id),h||!c||(null==p?void 0:null===(t=p.items)||void 0===t?void 0:t.length)||u(null)},[h,null==p?void 0:p.items,c,u]),(0,s.jsxs)(_.Z,{title:"Publisher restrictions",fontSize:"sm",children:[(0,s.jsxs)(n.vyj,{direction:"vertical",size:"small",style:{width:"100%"},children:[(0,s.jsx)(X,{defaultChecked:r,onChange:e=>l(e)}),r&&(0,s.jsxs)(s.Fragment,{children:[h&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(n.OdW,{height:"20px"}),(0,s.jsx)(n.OdW,{height:"20px"}),(0,s.jsx)(n.OdW,{height:"32px",width:"200px"})]}),!h&&(null==p?void 0:null===(t=p.items)||void 0===t?void 0:t.length)?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(n.xvT,{children:"The table below allows you to adjust which TCF purposes you allow as part of your user facing notices and business activities."}),(0,s.jsxs)(n.xvT,{children:["To configure this section, select a TCF purpose to edit the restriction type and vendors."," ",(0,s.jsx)(v.Z,{href:k.uh,children:"Learn more about publisher restrictions"})," ","in our docs."]}),(0,s.jsx)(Y,{selectedConfigId:c||"",configurations:(null==p?void 0:p.items)||[],onConfigurationSelect:u})]}):(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)(n.xvT,{children:['To define custom publisher restrictions select "create configuration" below.'," ",(0,s.jsx)(v.Z,{href:k.uh,children:"Learn more about publisher restrictions"})," ","in our docs."]}),(0,s.jsx)(n.wpx,{onClick:()=>d(!0),"data-testid":"create-config-button",children:"Create configuration +"})]})]})]}),(0,s.jsx)(z,{isOpen:a,onClose:()=>d(!1),onSuccess:e=>{u(e)}}),r&&c&&(0,s.jsx)(M,{className:"mt-3",config:x,isLoading:g})]})};var J=()=>{var e,t;let{isLoading:i}=(0,K.x8)(),{tcf:g}=(0,a.hz)(),{data:m,isLoading:v}=(0,K.n3)(void 0,{skip:i||!g}),[b,{isLoading:C}]=(0,K.M7)(),{data:w,isLoading:S}=(0,x.tB)({api_set:!0}),{data:I,isLoading:E}=(0,x.tB)({api_set:!1}),[P]=(0,x.L)(),k=(0,l.C)(x.D2),F=(0,l.C)(x.Yh),L=(0,o.useMemo)(()=>w&&(null==w?void 0:w.consent)&&"override_vendor_purposes"in w.consent?w.consent.override_vendor_purposes:!!I&&null!=I&&!!I.consent&&"override_vendor_purposes"in I.consent&&I.consent.override_vendor_purposes,[w,I]),{isLoading:O}=(0,p.a4)(),R=(0,n.pmc)(),z=async e=>{var t;let i=e=>{if(R.closeAll(),(0,d.D4)(e)){let t=(0,d.e$)(e.error,"An unexpected error occurred while saving. Please try again.");R((0,h.Vo)(t))}else R((0,h.t5)("Settings saved successfully"))},s=[...e.purposeOverrides.map(e=>{let t;return e.is_consent&&(t=y.I$.CONSENT),e.is_legitimate_interest&&(t=y.I$.LEGITIMATE_INTERESTS),{purpose:e.purpose,is_included:e.is_included,required_legal_basis:t}})];if(L){let e=await b(s);if((0,d.D4)(e)){i(e);return}}let{enabled:n,...r}=e.gpp;i(await P({gpp:r,plus_consent_settings:{tcf_publisher_country_code:null!==(t=e.tcfPublisherSettings.publisher_country_code)&&void 0!==t?t:null}}))},A=(0,o.useMemo)(()=>({purposeOverrides:m?m.map(e=>({purpose:e.purpose,is_included:e.is_included,is_consent:e.required_legal_basis===y.I$.CONSENT,is_legitimate_interest:e.required_legal_basis===y.I$.LEGITIMATE_INTERESTS})):[],gpp:k,tcfPublisherSettings:{publisher_country_code:F.tcf_publisher_country_code}}),[m,k,F]),q=(0,o.useMemo)(()=>(null==m?void 0:m.some(e=>!e.is_included||e.required_legal_basis===y.I$.CONSENT||e.required_legal_basis===y.I$.LEGITIMATE_INTERESTS))||!1,[m]),Z=null===(t=(0,a.hz)())||void 0===t?void 0:null===(e=t.flags)||void 0===e?void 0:e.publisherRestrictions;return(0,s.jsx)(c.Z,{title:"Consent Configuration",children:i||O||v||S||E?(0,s.jsx)(n.kCb,{justifyContent:"center",alignItems:"center",height:"100%",children:(0,s.jsx)(n.$jN,{})}):(0,s.jsxs)(n.xuv,{"data-testid":"consent-configuration",children:[(0,s.jsx)(u.Z,{heading:"Consent settings"}),(0,s.jsxs)(n.Kqy,{spacing:3,mb:3,children:[(0,s.jsx)(_.Z,{title:"Transparency & Consent Framework settings",children:(0,s.jsx)(j,{name:"TCF",enabled:g})}),g&&!q&&Z&&(0,s.jsx)(Q,{isTCFOverrideEnabled:L})]}),(0,s.jsx)(r.J9,{initialValues:A,enableReinitialize:!0,onSubmit:z,children:e=>{let{dirty:t,isValid:i,isSubmitting:o}=e;return(0,s.jsx)(r.l0,{children:(0,s.jsxs)(n.Kqy,{spacing:6,children:[g&&(q||!Z)&&(0,s.jsxs)(_.Z,{title:"Vendor overrides",fontSize:"sm",children:[(0,s.jsx)(X,{defaultChecked:L,disabled:C}),L&&(0,s.jsxs)(n.Kqy,{mt:2,spacing:2,children:[(0,s.jsx)(n.xvT,{children:"The table below allows you to adjust which TCF purposes you allow as part of your user facing notices and business activites."}),(0,s.jsx)(n.xvT,{children:"To configure this section, select the purposes you allow and where available, the appropriate legal bases (either Consent or Legitimate Interest)."}),(0,s.jsx)(f,{})]})]}),(0,s.jsx)(N,{}),(0,s.jsx)(T,{}),(0,s.jsx)(n.wpx,{htmlType:"submit",type:"primary",disabled:!t||!i,loading:o,"data-testid":"save-btn",className:"self-start",children:"Save"})]})})}})]})})}},31883:function(e,t,i){"use strict";i.d(t,{Bw:function(){return s.Bw},D4:function(){return s.D4}});var s=i(19043)}},function(e){e.O(0,[5279,2888,9774,179],function(){return e(e.s=53748)}),_N_E=e.O()}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3691],{8828:function(e,t,s){(window.__NEXT_P=window.__NEXT_P||[]).push(["/systems/configure/[id]",function(){return s(82657)}])},18225:function(e,t,s){"use strict";var n=s(24246),i=s(96306);t.Z=e=>{let{alignment:t="center",...s}=e;return(0,n.jsx)(i.kCb,{boxSize:"full",align:"center",justify:t,children:(0,n.jsx)(i.$jN,{color:"primary",...s})})}},82657:function(e,t,s){"use strict";s.r(t);var n=s(24246),i=s(96306),r=s(86677),a=s(27378),l=s(16134),d=s(25980),u=s(18225),c=s(812),o=s(14048),f=s(77213),x=s(77830),h=s(58754),m=s(32885),y=s(1315),j=s(57865),g=s(72774),_=s(21103);t.default=()=>{let e=(0,r.useRouter)(),t=(0,l.T)(),s="";e.query.id&&(s=Array.isArray(e.query.id)?e.query.id[0]:e.query.id);let{data:p,isLoading:v}=(0,y.rn)(s),{error:w,isLoading:b}=(0,m.Rd)(),{tcf:C,plus:N}=(0,d.hz)(),Z=(0,l.C)(j.gU);(0,a.useEffect)(()=>{if(p){let e=C&&!!p.vendor_id&&(0,c.cj)(p.vendor_id)===c.c6.GVL;t((0,j.gQ)(e))}else(0,j.gQ)(!1)},[p,t,C]);let{tabData:E,activeKey:k,onTabChange:S}=(0,_.Z)({isCreate:!1});return(v||b)&&!w?(0,n.jsx)(f.Z,{title:"Systems",children:(0,n.jsx)(u.Z,{})}):p?(0,n.jsxs)(f.Z,{title:"System inventory",mainProps:{w:"calc(100vw - 240px)"},children:[(0,n.jsx)(h.Z,{heading:"System inventory",breadcrumbItems:[{title:"All systems",href:x.So},{title:(null==p?void 0:p.name)||""}]}),(0,n.jsx)(i.A5g,{activeKey:k,onChange:S,items:E,className:"w-full",tabBarExtraContent:N&&(0,n.jsxs)(i.wpx,{size:"small",className:"absolute right-2 top-2","data-testid":"integration-page-btn",onClick:()=>e.push(x.KH),children:[(0,n.jsx)(i.xvT,{children:"Integrations"}),(0,n.jsx)(o.A5,{marginLeft:2})]}),renderTabBar:(e,t)=>(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(t,{...e}),Z&&(0,n.jsx)(g.Z,{})]})})]}):(0,n.jsx)(f.Z,{title:"Systems",children:(0,n.jsxs)(i.xvT,{"data-testid":"system-not-found",children:["Could not find a system with id ",s]})})}}},function(e){e.O(0,[8765,431,9278,5163,699,5277,409,7045,401,7218,
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3691],{8828:function(e,t,s){(window.__NEXT_P=window.__NEXT_P||[]).push(["/systems/configure/[id]",function(){return s(82657)}])},18225:function(e,t,s){"use strict";var n=s(24246),i=s(96306);t.Z=e=>{let{alignment:t="center",...s}=e;return(0,n.jsx)(i.kCb,{boxSize:"full",align:"center",justify:t,children:(0,n.jsx)(i.$jN,{color:"primary",...s})})}},82657:function(e,t,s){"use strict";s.r(t);var n=s(24246),i=s(96306),r=s(86677),a=s(27378),l=s(16134),d=s(25980),u=s(18225),c=s(812),o=s(14048),f=s(77213),x=s(77830),h=s(58754),m=s(32885),y=s(1315),j=s(57865),g=s(72774),_=s(21103);t.default=()=>{let e=(0,r.useRouter)(),t=(0,l.T)(),s="";e.query.id&&(s=Array.isArray(e.query.id)?e.query.id[0]:e.query.id);let{data:p,isLoading:v}=(0,y.rn)(s),{error:w,isLoading:b}=(0,m.Rd)(),{tcf:C,plus:N}=(0,d.hz)(),Z=(0,l.C)(j.gU);(0,a.useEffect)(()=>{if(p){let e=C&&!!p.vendor_id&&(0,c.cj)(p.vendor_id)===c.c6.GVL;t((0,j.gQ)(e))}else(0,j.gQ)(!1)},[p,t,C]);let{tabData:E,activeKey:k,onTabChange:S}=(0,_.Z)({isCreate:!1});return(v||b)&&!w?(0,n.jsx)(f.Z,{title:"Systems",children:(0,n.jsx)(u.Z,{})}):p?(0,n.jsxs)(f.Z,{title:"System inventory",mainProps:{w:"calc(100vw - 240px)"},children:[(0,n.jsx)(h.Z,{heading:"System inventory",breadcrumbItems:[{title:"All systems",href:x.So},{title:(null==p?void 0:p.name)||""}]}),(0,n.jsx)(i.A5g,{activeKey:k,onChange:S,items:E,className:"w-full",tabBarExtraContent:N&&(0,n.jsxs)(i.wpx,{size:"small",className:"absolute right-2 top-2","data-testid":"integration-page-btn",onClick:()=>e.push(x.KH),children:[(0,n.jsx)(i.xvT,{children:"Integrations"}),(0,n.jsx)(o.A5,{marginLeft:2})]}),renderTabBar:(e,t)=>(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(t,{...e}),Z&&(0,n.jsx)(g.Z,{})]})})]}):(0,n.jsx)(f.Z,{title:"Systems",children:(0,n.jsxs)(i.xvT,{"data-testid":"system-not-found",children:["Could not find a system with id ",s]})})}}},function(e){e.O(0,[8765,431,9278,5163,699,5277,409,7045,401,7218,3585,7079,2888,9774,179],function(){return e(e.s=8828)}),_N_E=e.O()}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.ActivityTimelineEntry_container__tCva0{border:1px solid transparent;transition:border-color .2s ease-in-out}.ActivityTimelineEntry_container--open__1d9mA,.ActivityTimelineEntry_container__tCva0:hover{border-color:var(--fidesui-neutral-100);border-radius:6px}.ActivityTimelineEntry_itemButton__MlmWS{display:block;width:100%;border:1px solid transparent;border-radius:6px;transition:border-color .2s ease-in-out;margin-bottom:20px;padding:12px 20px;text-align:left;background:transparent}.ActivityTimelineEntry_itemButton--awaiting-input__6lB5t,.ActivityTimelineEntry_itemButton--comment__g98SH,.ActivityTimelineEntry_itemButton--error__UizD2,.ActivityTimelineEntry_itemButton--polling__jzolP,.ActivityTimelineEntry_itemButton__MlmWS:hover{border-color:var(--fidesui-neutral-100)}.ActivityTimelineEntry_itemButton__MlmWS:focus-visible{border-color:var(--fidesui-neutral-700)}.ActivityTimelineEntry_itemButton--error__UizD2,.ActivityTimelineEntry_itemButton--error__UizD2:focus,.ActivityTimelineEntry_itemButton--error__UizD2:hover{border-left:8px solid var(--fidesui-error)}.ActivityTimelineEntry_itemButton--awaiting-input__6lB5t,.ActivityTimelineEntry_itemButton--awaiting-input__6lB5t:focus,.ActivityTimelineEntry_itemButton--awaiting-input__6lB5t:hover{border-left:8px solid var(--fidesui-minos)}.ActivityTimelineEntry_itemButton--polling__jzolP,.ActivityTimelineEntry_itemButton--polling__jzolP:focus,.ActivityTimelineEntry_itemButton--polling__jzolP:hover{border-left:8px solid var(--fidesui-warning)}.ActivityTimelineEntry_header__GYibj{width:100%;display:flex;gap:8px;align-items:center;justify-content:flex-start;flex-wrap:nowrap}.ActivityTimelineEntry_header__GYibj>*{flex-shrink:0}.ActivityTimelineEntry_title__rm_g0{font-weight:600;flex-shrink:1;width:auto}.ActivityTimelineEntry_title--error__fOi0s{color:var(--fidesui-error)}.ActivityTimelineEntry_title--awaiting-input__3sPAo{color:var(--fidesui-minos)}.ActivityTimelineEntry_title--polling__g_Hgn{color:var(--fidesui-warning)}.ActivityTimelineEntry_timestamp__uMEMT{color:var(--fidesui-neutral-700)}.ActivityTimelineEntry_viewLogs___T4jN{color:var(--fidesui-link)}.ActivityTimelineEntry_logs__T7R0J{height:0;overflow:hidden;transition:height .2s ease-in-out;box-sizing:border-box;padding:0 20px}.ActivityTimelineEntry_logs--open__o_9Io{height:auto;margin-top:20px;margin-bottom:20px}.RequestDetailsRow_value__WMXn3{color:var(--fidesui-minos)}.RequestDetailsRow_label__dn3CQ{color:var(--fidesui-neutral-700)}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
self.__BUILD_MANIFEST=function(s,e,t,a,c,n,i,d,o,r,p,g,u,f,m,b,j,k,h,y,l,v,I,F,x,_,w,U,q,N,A,S,B,C,z,D,E,L,M,T,P,G,H,J,K,O,Q,R,V,W,X,Y,Z,$,ss,se,st,sa){return{__rewrites:{afterFiles:[],beforeFiles:[],fallback:[]},"/":[q,"static/chunks/pages/index-b74d1e8608ae5b5d.js"],"/404":["static/chunks/pages/404-2eb8aed4939f1142.js"],"/_error":["static/chunks/pages/_error-bede3a8288930dcf.js"],"/add-systems":[s,q,"static/chunks/pages/add-systems-58920afe2b67f952.js"],"/add-systems/manual":[e,s,t,a,n,f,c,i,r,m,l,N,A,"static/chunks/pages/add-systems/manual-4ec03eed67572861.js"],"/add-systems/multiple":[r,b,S,"static/chunks/pages/add-systems/multiple-2ca59996860a33c5.js"],"/consent":["static/chunks/pages/consent-d2bf72508c3cad55.js"],"/consent/configure":[r,b,"static/chunks/pages/consent/configure-fb5017ff5fa54fcc.js"],"/consent/configure/add-vendors":[r,b,S,"static/chunks/pages/consent/configure/add-vendors-7a258b7ecd6da4b8.js"],"/consent/privacy-experience":[f,B,"static/chunks/pages/consent/privacy-experience-92182be6603c2842.js"],"/consent/privacy-experience/new":[e,d,j,p,k,C,"static/chunks/pages/consent/privacy-experience/new-a5e738a234dadc7e.js"],"/consent/privacy-experience/[id]":[e,d,j,p,k,C,"static/chunks/pages/consent/privacy-experience/[id]-e1e2fd704ac2d71d.js"],"/consent/privacy-notices":[B,"static/chunks/pages/consent/privacy-notices-ab54b19609bff325.js"],"/consent/privacy-notices/new":[e,d,j,p,k,z,"static/chunks/pages/consent/privacy-notices/new-b79bcb93b5f4c734.js"],"/consent/privacy-notices/[id]":[e,d,j,p,k,z,"static/chunks/pages/consent/privacy-notices/[id]-5fc78b78a51c239c.js"],"/consent/properties":[h,D,"static/chunks/pages/consent/properties-069f4e3ee96ebf77.js"],"/consent/reporting":[s,"static/chunks/2150-930ffaf2c4718edc.js","static/chunks/pages/consent/reporting-ae4909cad9b67822.js"],"/data-catalog":[e,t,a,c,"static/css/95ac327e5d70148d.css","static/chunks/pages/data-catalog-56fd0f3e465e52b6.js"],"/data-catalog/[systemId]/projects":[e,t,a,c,v,o,"static/chunks/pages/data-catalog/[systemId]/projects-99573a1ee3ef8f4c.js"],"/data-catalog/[systemId]/projects/[projectUrn]":[E,"static/chunks/pages/data-catalog/[systemId]/projects/[projectUrn]-4a1af12d2d7cd660.js"],"/data-catalog/[systemId]/projects/[projectUrn]/[resourceUrn]":[e,s,t,a,c,v,L,o,"static/chunks/pages/data-catalog/[systemId]/projects/[projectUrn]/[resourceUrn]-2fa4b3a58f75f81d.js"],"/data-catalog/[systemId]/resources":[E,"static/chunks/pages/data-catalog/[systemId]/resources-6e429b7511028d60.js"],"/data-catalog/[systemId]/resources/[resourceUrn]":[e,s,t,a,c,v,L,o,"static/chunks/pages/data-catalog/[systemId]/resources/[resourceUrn]-5b31e3d7727b917a.js"],"/data-discovery/action-center":[I,"static/chunks/pages/data-discovery/action-center-040813022f0890c9.js"],"/data-discovery/action-center/[monitorId]":[e,s,t,a,i,I,M,F,"static/chunks/pages/data-discovery/action-center/[monitorId]-0d512528b498d75c.js"],"/data-discovery/action-center/[monitorId]/[systemId]":[e,s,t,a,i,r,l,I,M,"static/css/23cf870196941c9a.css","static/chunks/pages/data-discovery/action-center/[monitorId]/[systemId]-29c1fb777bd464e0.js"],"/data-discovery/activity":[s,u,"static/chunks/pages/data-discovery/activity-2635ef588bf06145.js"],"/data-discovery/detection":[s,i,u,T,"static/chunks/pages/data-discovery/detection-11b07cf2d91b17ef.js"],"/data-discovery/detection/[resourceUrn]":[s,i,u,T,"static/chunks/pages/data-discovery/detection/[resourceUrn]-844a8de0d1b506e2.js"],"/data-discovery/discovery":[e,s,t,a,c,i,u,P,o,"static/chunks/pages/data-discovery/discovery-ed4723e1b67d890e.js"],"/data-discovery/discovery/[resourceUrn]":[e,s,t,a,c,i,u,P,o,"static/chunks/pages/data-discovery/discovery/[resourceUrn]-5525cf287d4ab493.js"],"/datamap":[s,a,"static/chunks/255-1bc0cbef7a59cdc6.js",m,G,"static/chunks/pages/datamap-15616bea02397ef4.js"],"/dataset":[g,y,"static/chunks/pages/dataset-0e3a6ac4797ffbbb.js"],"/dataset/new":[s,g,y,"static/chunks/pages/dataset/new-ea198c4a7869f402.js"],"/dataset/[datasetId]":["static/chunks/9729-fcf6ff4e3534e4a8.js",x,"static/chunks/pages/dataset/[datasetId]-60a4a9eb4aab4c11.js"],"/dataset/[datasetId]/[collectionName]":[e,t,a,n,c,x,o,"static/chunks/pages/dataset/[datasetId]/[collectionName]-9463af37079762d0.js"],"/dataset/[datasetId]/[collectionName]/[...subfieldNames]":[e,t,a,n,c,x,o,"static/chunks/pages/dataset/[datasetId]/[collectionName]/[...subfieldNames]-d4031e438c363fff.js"],"/datastore-connection":["static/css/5f393dea1c0d031c.css","static/chunks/pages/datastore-connection-223c2d1ded51bfb1.js"],"/datastore-connection/new":[e,s,n,g,f,H,y,J,"static/chunks/pages/datastore-connection/new-b6838162200141b3.js"],"/datastore-connection/[id]":[e,s,n,g,H,y,J,"static/chunks/pages/datastore-connection/[id]-816e02b6cbe4a684.js"],"/fides-js-docs":["static/chunks/2fbcc6de-a6c61724c327e9fa.js","static/chunks/e3251fe7-5777b5d778e6fffa.js",e,t,a,n,g,"static/chunks/5619-9b50cec521203989.js",K,"static/css/0b4b1b65cc874774.css","static/chunks/5596-29a7c8322530b7cf.js","static/chunks/pages/fides-js-docs-1f4335dca5c09860.js"],"/integrations":[e,s,t,a,n,d,O,Q,o,"static/chunks/pages/integrations-f682b1def859931e.js"],"/integrations/[id]":[e,s,t,a,n,d,O,i,p,Q,o,"static/chunks/pages/integrations/[id]-153eb88ab4e7dc6d.js"],"/login":["static/chunks/pages/login-0cb0eb44bf2dd24c.js"],"/login/[provider]":["static/chunks/pages/login/[provider]-c58beef131c3a82d.js"],"/messaging":[e,t,"static/chunks/346-aa3b88efb85f2e28.js","static/chunks/pages/messaging-b5f7d6afdecd013d.js"],"/messaging/add-template":[R,"static/chunks/pages/messaging/add-template-e3f93462a08251bf.js"],"/messaging/[id]":[R,"static/chunks/pages/messaging/[id]-e8d2140787045acd.js"],"/poc/ant-components":["static/chunks/pages/poc/ant-components-248ad9f65a872442.js"],"/poc/form-experiments/AntForm":["static/chunks/pages/poc/form-experiments/AntForm-aedb66a62042b10a.js"],"/poc/form-experiments/FormikAntFormItem":["static/chunks/pages/poc/form-experiments/FormikAntFormItem-018df38b7cd77fdb.js"],"/poc/form-experiments/FormikControlled":["static/chunks/pages/poc/form-experiments/FormikControlled-6ca9099d03aab817.js"],"/poc/form-experiments/FormikField":["static/chunks/pages/poc/form-experiments/FormikField-0f2c90786ea005a4.js"],"/poc/form-experiments/FormikSpreadField":[V,"static/chunks/pages/poc/form-experiments/FormikSpreadField-af097d661f6abcf4.js"],"/poc/forms":[V,"static/chunks/pages/poc/forms-200b51a725f8b2d1.js"],"/poc/table-migration":[r,b,"static/chunks/pages/poc/table-migration-29fb7b39f8962650.js"],"/privacy-requests":[e,s,"static/chunks/3550-83cb70e80cbe41ba.js",W,"static/chunks/pages/privacy-requests-7af00f72cf694077.js"],"/privacy-requests/configure":["static/chunks/pages/privacy-requests/configure-8f577df28ebca869.js"],"/privacy-requests/configure/storage":[s,"static/chunks/pages/privacy-requests/configure/storage-648d775d0fce49dc.js"],"/privacy-requests/[id]":[s,W,"static/css/f38242c11f7fea64.css","static/chunks/pages/privacy-requests/[id]-febf156d2977f3ac.js"],"/properties":[h,D,"static/chunks/pages/properties-08472b2a6bf1d392.js"],"/properties/add-property":[h,X,"static/chunks/pages/properties/add-property-8964c2300206bc89.js"],"/properties/[id]":[h,X,"static/chunks/pages/properties/[id]-57a75c7e9659271a.js"],"/reporting/datamap":[e,s,t,a,K,m,_,G,"static/chunks/pages/reporting/datamap-f7753e9effae3816.js"],"/settings/about":[Y,"static/chunks/pages/settings/about-6c4904c157477285.js"],"/settings/about/alpha":[Y,"static/chunks/pages/settings/about/alpha-68eaac2d79133679.js"],"/settings/consent":[p,"static/chunks/pages/settings/consent-4d658222ec800511.js"],"/settings/consent/[configuration_id]/[purpose_id]":["static/chunks/pages/settings/consent/[configuration_id]/[purpose_id]-f3e6e74e0efb005c.js"],"/settings/custom-fields":[s,"static/chunks/pages/settings/custom-fields-5edfec10a945ca43.js"],"/settings/custom-fields/new":[e,Z,$,"static/chunks/pages/settings/custom-fields/new-469ad83c8cfa1290.js"],"/settings/custom-fields/[id]":[e,Z,$,"static/chunks/pages/settings/custom-fields/[id]-bd1042a0e9be6aff.js"],"/settings/domain-records":["static/chunks/pages/settings/domain-records-744f669431b84f71.js"],"/settings/domains":["static/chunks/pages/settings/domains-a3275554ffe8e640.js"],"/settings/email-templates":["static/chunks/pages/settings/email-templates-604790638c656fbd.js"],"/settings/locations":[ss,F,"static/chunks/pages/settings/locations-be2a885150adc133.js"],"/settings/messaging-providers":[s,w,"static/chunks/pages/settings/messaging-providers-8d92be437793c96f.js"],"/settings/messaging-providers/new":[e,s,t,d,se,w,st,"static/chunks/pages/settings/messaging-providers/new-8bf1821722b082e9.js"],"/settings/messaging-providers/[key]":[e,s,t,d,se,w,st,"static/chunks/pages/settings/messaging-providers/[key]-77239269acc2d31a.js"],"/settings/organization":["static/chunks/pages/settings/organization-3c86162afe9759df.js"],"/settings/privacy-requests":[s,"static/chunks/pages/settings/privacy-requests-8cbdfd08e0fa88fb.js"],"/settings/regulations":[ss,F,"static/chunks/pages/settings/regulations-4fe3b90747d885e5.js"],"/systems":[e,s,t,a,"static/chunks/1896-49010da5c2705fc5.js",_,"static/chunks/pages/systems-0f1d833282f09684.js"],"/systems/configure/[id]":[e,s,t,a,n,f,c,i,r,m,l,N,A,"static/chunks/pages/systems/configure/[id]-4d470bbf199a2f9c.js"],"/systems/configure/[id]/test-datasets":[g,"static/chunks/pages/systems/configure/[id]/test-datasets-2deb6becece69d46.js"],"/taxonomy":["static/chunks/678d4732-50255cc09048e643.js",e,s,t,a,d,"static/chunks/6148-59a59d5c5925344f.js",_,"static/css/34a7eb08b86ddb57.css","static/chunks/pages/taxonomy-a8cfa7de4948b374.js"],"/user-management":[U,"static/chunks/pages/user-management-562624e5461083ec.js"],"/user-management/new":[U,sa,"static/chunks/pages/user-management/new-629c88e90699369b.js"],"/user-management/profile/[id]":[U,sa,"static/chunks/pages/user-management/profile/[id]-98f737e735eaa0f0.js"],sortedPages:["/","/404","/_app","/_error","/add-systems","/add-systems/manual","/add-systems/multiple","/consent","/consent/configure","/consent/configure/add-vendors","/consent/privacy-experience","/consent/privacy-experience/new","/consent/privacy-experience/[id]","/consent/privacy-notices","/consent/privacy-notices/new","/consent/privacy-notices/[id]","/consent/properties","/consent/reporting","/data-catalog","/data-catalog/[systemId]/projects","/data-catalog/[systemId]/projects/[projectUrn]","/data-catalog/[systemId]/projects/[projectUrn]/[resourceUrn]","/data-catalog/[systemId]/resources","/data-catalog/[systemId]/resources/[resourceUrn]","/data-discovery/action-center","/data-discovery/action-center/[monitorId]","/data-discovery/action-center/[monitorId]/[systemId]","/data-discovery/activity","/data-discovery/detection","/data-discovery/detection/[resourceUrn]","/data-discovery/discovery","/data-discovery/discovery/[resourceUrn]","/datamap","/dataset","/dataset/new","/dataset/[datasetId]","/dataset/[datasetId]/[collectionName]","/dataset/[datasetId]/[collectionName]/[...subfieldNames]","/datastore-connection","/datastore-connection/new","/datastore-connection/[id]","/fides-js-docs","/integrations","/integrations/[id]","/login","/login/[provider]","/messaging","/messaging/add-template","/messaging/[id]","/poc/ant-components","/poc/form-experiments/AntForm","/poc/form-experiments/FormikAntFormItem","/poc/form-experiments/FormikControlled","/poc/form-experiments/FormikField","/poc/form-experiments/FormikSpreadField","/poc/forms","/poc/table-migration","/privacy-requests","/privacy-requests/configure","/privacy-requests/configure/storage","/privacy-requests/[id]","/properties","/properties/add-property","/properties/[id]","/reporting/datamap","/settings/about","/settings/about/alpha","/settings/consent","/settings/consent/[configuration_id]/[purpose_id]","/settings/custom-fields","/settings/custom-fields/new","/settings/custom-fields/[id]","/settings/domain-records","/settings/domains","/settings/email-templates","/settings/locations","/settings/messaging-providers","/settings/messaging-providers/new","/settings/messaging-providers/[key]","/settings/organization","/settings/privacy-requests","/settings/regulations","/systems","/systems/configure/[id]","/systems/configure/[id]/test-datasets","/taxonomy","/user-management","/user-management/new","/user-management/profile/[id]"]}}("static/chunks/431-78bf05f35d7eec4f.js","static/chunks/8765-f622a35b40a7ec63.js","static/chunks/9278-08cc704317fe535e.js","static/chunks/5163-e682273cd76a7d07.js","static/chunks/409-c1256ecda1b15db6.js","static/chunks/699-8ca44b0de9fa20f0.js","static/chunks/7045-f15044a4d4525946.js","static/chunks/3662-f6a1ddca5ee42076.js","static/css/d2d4e9a6923e6730.css","static/chunks/401-ffe4e8436e1eceb9.js","static/chunks/5279-12c9cbdc67ad7b14.js","static/chunks/6527-0eed08abe252a918.js","static/chunks/8002-ed832921ad190832.js","static/chunks/5277-e8a036319456127f.js","static/chunks/7218-e2983b96b95e33b4.js","static/chunks/3923-98bea73b618292aa.js","static/chunks/6419-9b3a86af57c86791.js","static/chunks/6277-182efc294d413f64.js","static/chunks/2040-fdecc41a18e40bdc.js","static/chunks/5574-c31ea831371610d5.js","static/chunks/3585-efd5d41f08e180c4.js","static/chunks/6882-10296485ec326e6b.js","static/chunks/7725-f2a7be705b75dcc3.js","static/css/10994e916bc9a00a.css","static/chunks/9226-4a7027057f55ca2a.js","static/chunks/4718-6585c97c26647e65.js","static/chunks/502-d3ecae97b67befbd.js","static/chunks/7476-d055aa931da47ac0.js","static/css/972dc7eef106ee7c.css","static/chunks/7079-bbc7b856802a4834.js","static/css/304c6f148886a8d4.css","static/chunks/796-02086581996a0548.js","static/chunks/6853-7004a8c420b1ca02.js","static/chunks/1817-1ad037b7d6d2f6d2.js","static/chunks/6954-4b24e1731c1cc3b3.js","static/chunks/5783-d119cb132abd8a91.js","static/chunks/3872-04d3afbfa41a7782.js","static/chunks/3855-12ee1dfbbe47fd28.js","static/chunks/7929-0fd0d4948bc8d70e.js","static/chunks/5309-3b6cf0cc9d0c6a83.js","static/chunks/9046-2a332fe338535c84.js","static/chunks/504-88caa30c03374e9b.js","static/chunks/1467-8808ec8836e033f9.js","static/chunks/4608-a9941d0c236ebca1.js","static/chunks/9187-7438242f0d380bb0.js","static/chunks/1316-2606e19807c08aa5.js","static/chunks/155-c1ae010c664e2245.js","static/chunks/7630-d0d3a0fe3f95e971.js","static/chunks/2921-66f65496c3a09316.js","static/chunks/4558-de5ced790b3380dc.js","static/chunks/5185-51eaa78e3ed6bfb7.js","static/chunks/1115-90baef2a89f361ad.js","static/chunks/2962-e92d525bf570a9a3.js","static/chunks/5643-10a36584c399526c.js","static/chunks/9826-ccedc28e978ca9e1.js","static/chunks/9037-453224ba3ee65b13.js","static/chunks/7158-04745cc8d684b2e7.js","static/chunks/3696-90c8b336bbc46782.js"),self.__BUILD_MANIFEST_CB&&self.__BUILD_MANIFEST_CB();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
<!DOCTYPE html><html lang="en"><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width"/><meta name="next-head-count" content="2"/><link data-next-font="" rel="preconnect" href="/" crossorigin="anonymous"/><link rel="preload" href="/_next/static/css/64fac6fb884435c2.css" as="style"/><link rel="stylesheet" href="/_next/static/css/64fac6fb884435c2.css" data-n-g=""/><link rel="preload" href="/_next/static/css/304c6f148886a8d4.css" as="style"/><link rel="stylesheet" href="/_next/static/css/304c6f148886a8d4.css" data-n-p=""/><noscript data-n-css=""></noscript><script defer="" nomodule="" src="/_next/static/chunks/polyfills-42372ed130431b0a.js"></script><script src="/_next/static/chunks/webpack-2766492c5dbceb0a.js" defer=""></script><script src="/_next/static/chunks/framework-c92fc3344e6fd165.js" defer=""></script><script src="/_next/static/chunks/main-090643377c8254e6.js" defer=""></script><script src="/_next/static/chunks/pages/_app-
|
|
1
|
+
<!DOCTYPE html><html lang="en"><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width"/><meta name="next-head-count" content="2"/><link data-next-font="" rel="preconnect" href="/" crossorigin="anonymous"/><link rel="preload" href="/_next/static/css/64fac6fb884435c2.css" as="style"/><link rel="stylesheet" href="/_next/static/css/64fac6fb884435c2.css" data-n-g=""/><link rel="preload" href="/_next/static/css/304c6f148886a8d4.css" as="style"/><link rel="stylesheet" href="/_next/static/css/304c6f148886a8d4.css" data-n-p=""/><noscript data-n-css=""></noscript><script defer="" nomodule="" src="/_next/static/chunks/polyfills-42372ed130431b0a.js"></script><script src="/_next/static/chunks/webpack-2766492c5dbceb0a.js" defer=""></script><script src="/_next/static/chunks/framework-c92fc3344e6fd165.js" defer=""></script><script src="/_next/static/chunks/main-090643377c8254e6.js" defer=""></script><script src="/_next/static/chunks/pages/_app-a7c02dd2ff07f9e1.js" defer=""></script><script src="/_next/static/chunks/8765-f622a35b40a7ec63.js" defer=""></script><script src="/_next/static/chunks/431-78bf05f35d7eec4f.js" defer=""></script><script src="/_next/static/chunks/9278-08cc704317fe535e.js" defer=""></script><script src="/_next/static/chunks/5163-e682273cd76a7d07.js" defer=""></script><script src="/_next/static/chunks/699-8ca44b0de9fa20f0.js" defer=""></script><script src="/_next/static/chunks/5277-e8a036319456127f.js" defer=""></script><script src="/_next/static/chunks/409-c1256ecda1b15db6.js" defer=""></script><script src="/_next/static/chunks/7045-f15044a4d4525946.js" defer=""></script><script src="/_next/static/chunks/401-ffe4e8436e1eceb9.js" defer=""></script><script src="/_next/static/chunks/7218-e2983b96b95e33b4.js" defer=""></script><script src="/_next/static/chunks/3585-efd5d41f08e180c4.js" defer=""></script><script src="/_next/static/chunks/7079-bbc7b856802a4834.js" defer=""></script><script src="/_next/static/chunks/pages/add-systems/manual-4ec03eed67572861.js" defer=""></script><script src="/_next/static/vSOB67a-1uIVzRUKBYMSo/_buildManifest.js" defer=""></script><script src="/_next/static/vSOB67a-1uIVzRUKBYMSo/_ssgManifest.js" defer=""></script><style>.data-ant-cssinjs-cache-path{content:"";}</style></head><body><div id="__next"><div style="height:100%;display:flex"></div></div><script id="__NEXT_DATA__" type="application/json">{"props":{"pageProps":{}},"page":"/add-systems/manual","query":{},"buildId":"vSOB67a-1uIVzRUKBYMSo","nextExport":true,"autoExport":true,"isFallback":false,"scriptLoader":[]}</script></body></html>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
<!DOCTYPE html><html lang="en"><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width"/><meta name="next-head-count" content="2"/><link data-next-font="" rel="preconnect" href="/" crossorigin="anonymous"/><link rel="preload" href="/_next/static/css/64fac6fb884435c2.css" as="style"/><link rel="stylesheet" href="/_next/static/css/64fac6fb884435c2.css" data-n-g=""/><noscript data-n-css=""></noscript><script defer="" nomodule="" src="/_next/static/chunks/polyfills-42372ed130431b0a.js"></script><script src="/_next/static/chunks/webpack-2766492c5dbceb0a.js" defer=""></script><script src="/_next/static/chunks/framework-c92fc3344e6fd165.js" defer=""></script><script src="/_next/static/chunks/main-090643377c8254e6.js" defer=""></script><script src="/_next/static/chunks/pages/_app-
|
|
1
|
+
<!DOCTYPE html><html lang="en"><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width"/><meta name="next-head-count" content="2"/><link data-next-font="" rel="preconnect" href="/" crossorigin="anonymous"/><link rel="preload" href="/_next/static/css/64fac6fb884435c2.css" as="style"/><link rel="stylesheet" href="/_next/static/css/64fac6fb884435c2.css" data-n-g=""/><noscript data-n-css=""></noscript><script defer="" nomodule="" src="/_next/static/chunks/polyfills-42372ed130431b0a.js"></script><script src="/_next/static/chunks/webpack-2766492c5dbceb0a.js" defer=""></script><script src="/_next/static/chunks/framework-c92fc3344e6fd165.js" defer=""></script><script src="/_next/static/chunks/main-090643377c8254e6.js" defer=""></script><script src="/_next/static/chunks/pages/_app-a7c02dd2ff07f9e1.js" defer=""></script><script src="/_next/static/chunks/401-ffe4e8436e1eceb9.js" defer=""></script><script src="/_next/static/chunks/3923-98bea73b618292aa.js" defer=""></script><script src="/_next/static/chunks/796-02086581996a0548.js" defer=""></script><script src="/_next/static/chunks/pages/add-systems/multiple-2ca59996860a33c5.js" defer=""></script><script src="/_next/static/vSOB67a-1uIVzRUKBYMSo/_buildManifest.js" defer=""></script><script src="/_next/static/vSOB67a-1uIVzRUKBYMSo/_ssgManifest.js" defer=""></script><style>.data-ant-cssinjs-cache-path{content:"";}</style></head><body><div id="__next"><div style="height:100%;display:flex"></div></div><script id="__NEXT_DATA__" type="application/json">{"props":{"pageProps":{}},"page":"/add-systems/multiple","query":{},"buildId":"vSOB67a-1uIVzRUKBYMSo","nextExport":true,"autoExport":true,"isFallback":false,"scriptLoader":[]}</script></body></html>
|