ethyca-fides 2.66.2b1__py2.py3-none-any.whl → 2.66.2b2__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.66.2b1.dist-info → ethyca_fides-2.66.2b2.dist-info}/METADATA +1 -1
- {ethyca_fides-2.66.2b1.dist-info → ethyca_fides-2.66.2b2.dist-info}/RECORD +106 -105
- fides/_version.py +3 -3
- fides/api/graph/traversal.py +1 -1
- fides/api/task/create_request_tasks.py +1 -1
- fides/api/task/execute_request_tasks.py +1 -1
- fides/api/task/filter_results.py +1 -1
- fides/api/task/manual/manual_task_address.py +46 -0
- fides/api/task/manual/manual_task_graph_task.py +118 -127
- fides/api/task/manual/manual_task_utils.py +52 -105
- fides/ui-build/static/admin/404.html +1 -1
- fides/ui-build/static/admin/_next/static/{CQD5hIjm-4lH18YYESYuD → EACyrT3Bb5qN9POVQHTCB}/_buildManifest.js +1 -1
- fides/ui-build/static/admin/_next/static/chunks/5309-1172322bf91b5d57.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/{6780-4b687168dd8daa84.js → 6780-a00c87739acc004d.js} +1 -1
- fides/ui-build/static/admin/_next/static/chunks/9046-c8233981762585b4.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/action-center/[monitorId]-7d3115059503b904.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/integrations/[id]-f9c0eac932188593.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/privacy-requests/[id]-c73497fc333c324d.js +1 -0
- fides/ui-build/static/admin/_next/static/css/79e296c724c1568c.css +1 -0
- fides/ui-build/static/admin/_next/static/css/{94965f224bc991e9.css → 8bc1833f1fa53ff0.css} +1 -1
- fides/ui-build/static/admin/add-systems/manual.html +1 -1
- fides/ui-build/static/admin/add-systems/multiple.html +1 -1
- fides/ui-build/static/admin/add-systems.html +1 -1
- fides/ui-build/static/admin/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/login/[provider].html +1 -1
- fides/ui-build/static/admin/login.html +1 -1
- fides/ui-build/static/admin/messaging/[id].html +1 -1
- fides/ui-build/static/admin/messaging/add-template.html +1 -1
- fides/ui-build/static/admin/messaging.html +1 -1
- fides/ui-build/static/admin/poc/ant-components.html +1 -1
- fides/ui-build/static/admin/poc/form-experiments/AntForm.html +1 -1
- fides/ui-build/static/admin/poc/form-experiments/FormikAntFormItem.html +1 -1
- fides/ui-build/static/admin/poc/form-experiments/FormikControlled.html +1 -1
- fides/ui-build/static/admin/poc/form-experiments/FormikField.html +1 -1
- fides/ui-build/static/admin/poc/form-experiments/FormikSpreadField.html +1 -1
- fides/ui-build/static/admin/poc/forms.html +1 -1
- fides/ui-build/static/admin/poc/table-migration.html +1 -1
- fides/ui-build/static/admin/privacy-requests/[id].html +1 -1
- fides/ui-build/static/admin/privacy-requests/configure/messaging.html +1 -1
- fides/ui-build/static/admin/privacy-requests/configure/storage.html +1 -1
- fides/ui-build/static/admin/privacy-requests/configure.html +1 -1
- fides/ui-build/static/admin/privacy-requests.html +1 -1
- fides/ui-build/static/admin/properties/[id].html +1 -1
- fides/ui-build/static/admin/properties/add-property.html +1 -1
- fides/ui-build/static/admin/properties.html +1 -1
- fides/ui-build/static/admin/reporting/datamap.html +1 -1
- fides/ui-build/static/admin/settings/about/alpha.html +1 -1
- fides/ui-build/static/admin/settings/about.html +1 -1
- fides/ui-build/static/admin/settings/consent/[configuration_id]/[purpose_id].html +1 -1
- fides/ui-build/static/admin/settings/consent.html +1 -1
- fides/ui-build/static/admin/settings/custom-fields.html +1 -1
- fides/ui-build/static/admin/settings/domain-records.html +1 -1
- fides/ui-build/static/admin/settings/domains.html +1 -1
- fides/ui-build/static/admin/settings/email-templates.html +1 -1
- fides/ui-build/static/admin/settings/locations.html +1 -1
- fides/ui-build/static/admin/settings/organization.html +1 -1
- fides/ui-build/static/admin/settings/regulations.html +1 -1
- fides/ui-build/static/admin/systems/configure/[id]/test-datasets.html +1 -1
- fides/ui-build/static/admin/systems/configure/[id].html +1 -1
- fides/ui-build/static/admin/systems.html +1 -1
- fides/ui-build/static/admin/taxonomy.html +1 -1
- fides/ui-build/static/admin/user-management/new.html +1 -1
- fides/ui-build/static/admin/user-management/profile/[id].html +1 -1
- fides/ui-build/static/admin/user-management.html +1 -1
- fides/ui-build/static/admin/_next/static/chunks/5309-67bdf9001531e972.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/9046-54877976a0529de2.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/data-discovery/action-center/[monitorId]-7e63ac744c45f6da.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/integrations/[id]-8d83a5518c00fcfc.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/privacy-requests/[id]-1caa552a8f11f2f2.js +0 -1
- fides/ui-build/static/admin/_next/static/css/b81194f2c3930152.css +0 -1
- {ethyca_fides-2.66.2b1.dist-info → ethyca_fides-2.66.2b2.dist-info}/WHEEL +0 -0
- {ethyca_fides-2.66.2b1.dist-info → ethyca_fides-2.66.2b2.dist-info}/entry_points.txt +0 -0
- {ethyca_fides-2.66.2b1.dist-info → ethyca_fides-2.66.2b2.dist-info}/licenses/LICENSE +0 -0
- {ethyca_fides-2.66.2b1.dist-info → ethyca_fides-2.66.2b2.dist-info}/top_level.txt +0 -0
- /fides/ui-build/static/admin/_next/static/{CQD5hIjm-4lH18YYESYuD → EACyrT3Bb5qN9POVQHTCB}/_ssgManifest.js +0 -0
- /fides/ui-build/static/admin/_next/static/chunks/pages/{_app-be7889cec5a0f5cd.js → _app-f2c3d287bac00395.js} +0 -0
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2423],{66726:function(a,e,n){var t=n(11611),i=n(82846),s=n(91936),o=Math.max,r=Math.min;a.exports=function(a,e,n){var _,l,F,d,u,c,S=0,m=!1,h=!1,C=!0;if("function"!=typeof a)throw TypeError("Expected a function");function v(e){var n=_,t=l;return _=l=void 0,S=e,d=a.apply(t,n)}function y(a){var n=a-c,t=a-S;return void 0===c||n>=e||n<0||h&&t>=F}function f(){var a,n,t,s=i();if(y(s))return A(s);u=setTimeout(f,(a=s-c,n=s-S,t=e-a,h?r(t,F-n):t))}function A(a){return(u=void 0,C&&_)?v(a):(_=l=void 0,d)}function g(){var a,n=i(),t=y(n);if(_=arguments,l=this,c=n,t){if(void 0===u)return S=a=c,u=setTimeout(f,e),m?v(a):d;if(h)return clearTimeout(u),u=setTimeout(f,e),v(c)}return void 0===u&&(u=setTimeout(f,e)),d}return e=s(e)||0,t(n)&&(m=!!n.leading,F=(h="maxWait"in n)?o(s(n.maxWait)||0,e):F,C="trailing"in n?!!n.trailing:C),g.cancel=function(){void 0!==u&&clearTimeout(u),S=0,_=c=l=u=void 0},g.flush=function(){return void 0===u?d:A(i())},g}},82846:function(a,e,n){var t=n(77400);a.exports=function(){return t.Date.now()}},86850:function(a,e,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/data-discovery/action-center/[monitorId]",function(){return n(99948)}])},30952:function(a,e,n){"use strict";n.d(e,{f:function(){return _}});var t=n(24246),i=n(66726),s=n.n(i),o=n(27378),r=n(26917);let _=a=>{let{value:e,onChange:n,placeholder:i,..._}=a,[l,F]=(0,o.useState)(e),d=s()(n,500),u=(0,o.useCallback)(a=>{F(a),d(a)},[]);return(0,t.jsx)(r.Z,{value:l,onChange:u,onClear:()=>{F(""),n("")},placeholder:i,..._})}},26089:function(a,e,n){"use strict";var t=n(24246),i=n(13577),s=n(99830),o=n.n(s);e.Z=a=>{let{onClick:e,children:n}=a;return(0,t.jsx)(i.wpx,{onClick:e,type:"link",role:"link",size:"small",className:o().toastLink,children:n})}},8411:function(a,e,n){"use strict";n.d(e,{NA:function(){return s},Z8:function(){return i}});var t=n(73825);let i={[t._F.ER]:"Eritrea",[t._F.DJ]:"Djibouti",[t._F.MR]:"Mauritania",[t._F.NA]:"Namibia",[t._F.GH]:"Ghana",[t._F.SS]:"South Sudan",[t._F.SC]:"Seychelles",[t._F.IO]:"British Indian Ocean Territory",[t._F.GQ]:"Equatorial Guinea",[t._F.AO]:"Angola",[t._F.CG]:"Republic of the Congo",[t._F.BW]:"Botswana",[t._F.BI]:"Burundi",[t._F.DZ]:"Algeria",[t._F.TD]:"Chad",[t._F.NG]:"Nigeria",[t._F.TZ]:"Tanzania",[t._F.EH]:"Western Sahara",[t._F.SN]:"Senegal",[t._F.LR]:"Liberia",[t._F.ZA]:"South Africa",[t._F.CV]:"Cape Verde",[t._F.GM]:"Gambia",[t._F.SD]:"Sudan",[t._F.KM]:"Comoros",[t._F.SZ]:"Eswatini",[t._F.UG]:"Uganda",[t._F.MG]:"Madagascar",[t._F.RW]:"Rwanda",[t._F.CD]:"DR Congo",[t._F.CM]:"Cameroon",[t._F.SH]:"Saint Helena, Ascension and Tristan da Cunha",[t._F.TG]:"Togo",[t._F.MU]:"Mauritius",[t._F.NE]:"Niger",[t._F.BJ]:"Benin",[t._F.EG]:"Egypt",[t._F.LS]:"Lesotho",[t._F.ET]:"Ethiopia",[t._F.MA]:"Morocco",[t._F.YT]:"Mayotte",[t._F.BF]:"Burkina Faso",[t._F.RE]:"R\xe9union",[t._F.ST]:"S\xe3o Tom\xe9 and Pr\xedncipe",[t._F.CF]:"Central African Republic",[t._F.MZ]:"Mozambique",[t._F.MW]:"Malawi",[t._F.ML]:"Mali",[t._F.ZM]:"Zambia",[t._F.LY]:"Libya",[t._F.GW]:"Guinea-Bissau",[t._F.SO]:"Somalia",[t._F.KE]:"Kenya",[t._F.GN]:"Guinea",[t._F.ZW]:"Zimbabwe",[t._F.TN]:"Tunisia",[t._F.SL]:"Sierra Leone",[t._F.GA]:"Gabon",[t._F.CI]:"Ivory Coast",[t._F.JO]:"Jordan",[t._F.PK]:"Pakistan",[t._F.KP]:"North Korea",[t._F.MO]:"Macau",[t._F.AM]:"Armenia",[t._F.SY]:"Syria",[t._F.TJ]:"Tajikistan",[t._F.SA]:"Saudi Arabia",[t._F.KR]:"South Korea",[t._F.NP]:"Nepal",[t._F.PH]:"Philippines",[t._F.IQ]:"Iraq",[t._F.LB]:"Lebanon",[t._F.MN]:"Mongolia",[t._F.PS]:"Palestine",[t._F.YE]:"Yemen",[t._F.JP]:"Japan",[t._F.KZ]:"Kazakhstan",[t._F.LK]:"Sri Lanka",[t._F.MM]:"Myanmar",[t._F.KG]:"Kyrgyzstan",[t._F.CN]:"China",[t._F.AF]:"Afghanistan",[t._F.OM]:"Oman",[t._F.IN]:"India",[t._F.LA]:"Laos",[t._F.UZ]:"Uzbekistan",[t._F.MV]:"Maldives",[t._F.ID]:"Indonesia",[t._F.VN]:"Vietnam",[t._F.MY]:"Malaysia",[t._F.TW]:"Taiwan",[t._F.KH]:"Cambodia",[t._F.AE]:"United Arab Emirates",[t._F.HK]:"Hong Kong",[t._F.GE]:"Georgia (Country)",[t._F.BD]:"Bangladesh",[t._F.KW]:"Kuwait",[t._F.TM]:"Turkmenistan",[t._F.QA]:"Qatar",[t._F.BH]:"Bahrain",[t._F.BN]:"Brunei",[t._F.TH]:"Thailand",[t._F.BT]:"Bhutan",[t._F.SG]:"Singapore",[t._F.IL]:"Israel",[t._F.AZ]:"Azerbaijan",[t._F.TL]:"Timor-Leste",[t._F.IR]:"Iran",[t._F.TR]:"Turkey",[t._F.MK]:"North Macedonia",[t._F.IE]:"Ireland",[t._F.DK]:"Denmark",[t._F.SK]:"Slovakia",[t._F.MD]:"Moldova",[t._F.AX]:"\xc5land Islands",[t._F.PL]:"Poland",[t._F.BA]:"Bosnia and Herzegovina",[t._F.SM]:"San Marino",[t._F.CZ]:"Czechia",[t._F.EE]:"Estonia",[t._F.XK]:"Kosovo",[t._F.FO]:"Faroe Islands",[t._F.SJ]:"Svalbard and Jan Mayen",[t._F.GG]:"Guernsey",[t._F.FR]:"France",[t._F.NL]:"Netherlands",[t._F.FI]:"Finland",[t._F.PT]:"Portugal",[t._F.DE]:"Germany",[t._F.MT]:"Malta",[t._F.JE]:"Jersey",[t._F.IS]:"Iceland",[t._F.ES]:"Spain",[t._F.GI]:"Gibraltar",[t._F.NO]:"Norway",[t._F.CY]:"Cyprus",[t._F.RS]:"Serbia",[t._F.LT]:"Lithuania",[t._F.MC]:"Monaco",[t._F.LU]:"Luxembourg",[t._F.UA]:"Ukraine",[t._F.IM]:"Isle of Man",[t._F.RO]:"Romania",[t._F.BE]:"Belgium",[t._F.SE]:"Sweden",[t._F.ME]:"Montenegro",[t._F.LV]:"Latvia",[t._F.VA]:"Vatican City",[t._F.AT]:"Austria",[t._F.AL]:"Albania",[t._F.LI]:"Liechtenstein",[t._F.GR]:"Greece",[t._F.IT]:"Italy",[t._F.AD]:"Andorra",[t._F.GB]:"United Kingdom",[t._F.RU]:"Russia",[t._F.SI]:"Slovenia",[t._F.BY]:"Belarus",[t._F.CH]:"Switzerland",[t._F.HU]:"Hungary",[t._F.BG]:"Bulgaria",[t._F.HR]:"Croatia",[t._F.TC]:"Turks and Caicos Islands",[t._F.CW]:"Cura\xe7ao",[t._F.GP]:"Guadeloupe",[t._F.UM]:"United States Minor Outlying Islands",[t._F.GT]:"Guatemala",[t._F.PM]:"Saint Pierre and Miquelon",[t._F.BQ]:"Caribbean Netherlands",[t._F.GL]:"Greenland",[t._F.SX]:"Sint Maarten",[t._F.PA]:"Panama",[t._F.AW]:"Aruba",[t._F.MQ]:"Martinique",[t._F.AG]:"Antigua and Barbuda",[t._F.BM]:"Bermuda",[t._F.CU]:"Cuba",[t._F.GD]:"Grenada",[t._F.NI]:"Nicaragua",[t._F.LC]:"Saint Lucia",[t._F.KN]:"Saint Kitts and Nevis",[t._F.DO]:"Dominican Republic",[t._F.VC]:"Saint Vincent and the Grenadines",[t._F.BZ]:"Belize",[t._F.HT]:"Haiti",[t._F.JM]:"Jamaica",[t._F.BS]:"Bahamas",[t._F.MX]:"Mexico",[t._F.MF]:"Saint Martin",[t._F.SV]:"El Salvador",[t._F.BL]:"Saint Barth\xe9lemy",[t._F.AI]:"Anguilla",[t._F.MS]:"Montserrat",[t._F.VG]:"British Virgin Islands",[t._F.BB]:"Barbados",[t._F.HN]:"Honduras",[t._F.KY]:"Cayman Islands",[t._F.DM]:"Dominica",[t._F.TT]:"Trinidad and Tobago",[t._F.CR]:"Costa Rica",[t._F.SR]:"Suriname",[t._F.CX]:"Christmas Island",[t._F.WS]:"Samoa",[t._F.PF]:"French Polynesia",[t._F.AS]:"American Samoa",[t._F.NC]:"New Caledonia",[t._F.TK]:"Tokelau",[t._F.PW]:"Palau",[t._F.KI]:"Kiribati",[t._F.VU]:"Vanuatu",[t._F.PN]:"Pitcairn Islands",[t._F.CK]:"Cook Islands",[t._F.FJ]:"Fiji",[t._F.PG]:"Papua New Guinea",[t._F.MP]:"Northern Mariana Islands",[t._F.NU]:"Niue",[t._F.TV]:"Tuvalu",[t._F.NF]:"Norfolk Island",[t._F.TO]:"Tonga",[t._F.FM]:"Micronesia",[t._F.SB]:"Solomon Islands",[t._F.NR]:"Nauru",[t._F.WF]:"Wallis and Futuna",[t._F.GU]:"Guam",[t._F.AU]:"Australia",[t._F.NZ]:"New Zealand",[t._F.MH]:"Marshall Islands",[t._F.CC]:"Cocos (Keeling) Islands",[t._F.VE]:"Venezuela",[t._F.PY]:"Paraguay",[t._F.BR]:"Brazil",[t._F.CO]:"Colombia",[t._F.PE]:"Peru",[t._F.CL]:"Chile",[t._F.UY]:"Uruguay",[t._F.AR]:"Argentina",[t._F.GY]:"Guyana",[t._F.BO]:"Bolivia",[t._F.GF]:"French Guiana",[t._F.EC]:"Ecuador",[t._F.FK]:"Falkland Islands",[t._F.US_AL]:"Alabama",[t._F.US_AK]:"Alaska",[t._F.US_AZ]:"Arizona",[t._F.US_AR]:"Arkansas",[t._F.US_CA]:"California",[t._F.US_CO]:"Colorado",[t._F.US_CT]:"Connecticut",[t._F.US_DE]:"Delaware",[t._F.US_DC]:"District of Columbia (DC)",[t._F.US_FL]:"Florida",[t._F.US_GA]:"Georgia",[t._F.US_HI]:"Hawaii",[t._F.US_ID]:"Idaho",[t._F.US_IL]:"Illinois",[t._F.US_IN]:"Indiana",[t._F.US_IA]:"Iowa",[t._F.US_KS]:"Kansas",[t._F.US_KY]:"Kentucky",[t._F.US_LA]:"Louisiana",[t._F.US_ME]:"Maine",[t._F.US_MD]:"Maryland",[t._F.US_MA]:"Massachusetts",[t._F.US_MI]:"Michigan",[t._F.US_MN]:"Minnesota",[t._F.US_MS]:"Mississippi",[t._F.US_MO]:"Missouri",[t._F.US_MT]:"Montana",[t._F.US_NE]:"Nebraska",[t._F.US_NV]:"Nevada",[t._F.US_NH]:"New Hampshire",[t._F.US_NJ]:"New Jersey",[t._F.US_NM]:"New Mexico",[t._F.US_NY]:"New York",[t._F.US_NC]:"North Carolina",[t._F.US_ND]:"North Dakota",[t._F.US_OH]:"Ohio",[t._F.US_OK]:"Oklahoma",[t._F.US_OR]:"Oregon",[t._F.US_PA]:"Pennsylvania",[t._F.US_PR]:"Puerto Rico",[t._F.US_RI]:"Rhode Island",[t._F.US_SC]:"South Carolina",[t._F.US_SD]:"South Dakota",[t._F.US_TN]:"Tennessee",[t._F.US_TX]:"Texas",[t._F.US_UT]:"Utah",[t._F.US_VA]:"Virginia",[t._F.US_VI]:"United States Virgin Islands",[t._F.US_VT]:"Vermont",[t._F.US_WA]:"Washington",[t._F.US_WV]:"West Virginia",[t._F.US_WI]:"Wisconsin",[t._F.US_WY]:"Wyoming",[t._F.CA_AB]:"Alberta",[t._F.CA_BC]:"British Columbia",[t._F.CA_MB]:"Manitoba",[t._F.CA_NB]:"New Brunswick",[t._F.CA_NL]:"Newfoundland and Labrador",[t._F.CA_NS]:"Nova Scotia",[t._F.CA_ON]:"Ontario",[t._F.CA_PE]:"Prince Edward Island",[t._F.CA_QC]:"Quebec",[t._F.CA_SK]:"Saskatchewan",[t._F.CA_NT]:"Northwest Territories",[t._F.CA_NU]:"Nunavut",[t._F.CA_YT]:"Yukon",[t._F.CA]:"Canada",[t._F.US]:"United States",[t._F.MEXICO_CENTRAL_AMERICA]:"Mexico and Central America",[t._F.CARIBBEAN]:"Caribbean",[t._F.EEA]:"European Economic Area (EEA)",[t._F.NON_EEA]:"Non European Economic Area",[t._F.GLOBAL]:"Global"},s=new Map(Object.entries(i));Object.entries(i).map(a=>({value:a[0],label:a[1]}))},14908:function(a,e,n){"use strict";var t=n(86677),i=n(27378);let s=a=>a.startsWith("#")?a.slice(1):a;e.Z=a=>{let{tabKeys:e,initialTab:n}=a,o=(0,t.useRouter)(),r=o.asPath.split("#")[1],[_,l]=(0,i.useState)(r);return(0,i.useEffect)(()=>{n&&e.includes(n)&&l(n)},[n,e,o.isReady]),{activeTab:_,onTabChange:(0,i.useCallback)(async a=>{if(!e.includes(a)){l(e[0]),await o.replace({pathname:o.pathname,query:o.query,hash:void 0});return}l(a),o.isReady&&await o.replace({pathname:o.pathname,query:o.query,hash:s(a)},void 0,{shallow:!0})},[o,e])}}},76904:function(a,e,n){"use strict";n.d(e,{dK:function(){return d},Rv:function(){return m},$P:function(){return c},zj:function(){return h},Kr:function(){return C},q1:function(){return u},QL:function(){return v}});var t=n(24246),i=n(13577),s=n(3124),o=n.n(s);let r=a=>{let{...e}=a;return(0,t.jsx)("svg",{viewBox:"0 0 8 8",focusable:"false",...e,children:(0,t.jsx)("path",{fill:"currentColor",d:"M7.23192 8H8V7.23192V1.85539V1.08731H6.46385V1.85539V5.37654L1.62976 0.544855L1.08731 0L0 1.08731L0.542454 1.62976L5.37654 6.46385H1.85539H1.08731V8H1.85539H7.23192Z"})})},_=a=>{let{...e}=a;return(0,t.jsx)("svg",{viewBox:"0 0 8 8",focusable:"false",...e,children:(0,t.jsx)("path",{fill:"currentColor",d:"M7.23192 0H8V0.768077V6.14461V6.91269H6.46385V6.14461V2.62346L1.62976 7.45515L1.08731 8L0 6.91269L0.542454 6.37024L5.37654 1.53615H1.85539H1.08731V0H1.85539H7.23192Z"})})},l=a=>{let{...e}=a;return(0,t.jsx)("svg",{viewBox:"0 0 9 10",focusable:"false",...e,children:(0,t.jsx)("path",{fill:"currentColor",d:"M0 0.5V5L4.5 9.5L9 5L4.5 0.5H0ZM2.25 2.10714C2.4205 2.10714 2.58401 2.17487 2.70457 2.29543C2.82513 2.41599 2.89286 2.5795 2.89286 2.75C2.89286 2.9205 2.82513 3.08401 2.70457 3.20457C2.58401 3.32513 2.4205 3.39286 2.25 3.39286C2.0795 3.39286 1.91599 3.32513 1.79543 3.20457C1.67487 3.08401 1.60714 2.9205 1.60714 2.75C1.60714 2.5795 1.67487 2.41599 1.79543 2.29543C1.91599 2.17487 2.0795 2.10714 2.25 2.10714Z"})})};var F=n(28278);let d=()=>(0,t.jsx)(_,{style:{color:o().FIDESUI_SUCCESS},className:"size-2","data-testid":"add-icon"}),u=()=>(0,t.jsx)(r,{style:{color:o().FIDESUI_ERROR},className:"size-2","data-testid":"remove-icon"}),c=()=>(0,t.jsx)(l,{style:{color:o().FIDESUI_WARNING},className:"size-3","data-testid":"classify-icon"}),S=a=>{let{color:e,...n}=a;return(0,t.jsx)(i.PJP.fRw,{style:{color:e},className:"size-2",...n})},m=()=>(0,t.jsx)(S,{color:o().FIDESUI_INFO,"data-testid":"change-icon"}),h=()=>(0,t.jsx)(S,{color:o().FIDESUI_SUCCESS,"data-testid":"monitored-icon"}),C=()=>(0,t.jsx)(S,{color:o().FIDESUI_ERROR,"data-testid":"muted-icon"}),v={[F.E.ADDITION]:(0,t.jsx)(d,{}),[F.E.REMOVAL]:(0,t.jsx)(u,{}),[F.E.CLASSIFICATION]:(0,t.jsx)(c,{}),[F.E.CHANGE]:(0,t.jsx)(m,{}),[F.E.MONITORED]:(0,t.jsx)(h,{}),[F.E.MUTED]:(0,t.jsx)(C,{}),[F.E.IN_PROGRESS]:(0,t.jsx)(()=>(0,t.jsx)(S,{color:o().FIDESUI_WARNING,"data-testid":"in-progress-icon"}),{}),[F.E.NONE]:null}},28278:function(a,e,n){"use strict";var t,i;n.d(e,{E:function(){return t}}),(i=t||(t={})).ADDITION="Addition",i.CHANGE="Change",i.REMOVAL="Removal",i.CLASSIFICATION="Classification",i.IN_PROGRESS="Classifying",i.MONITORED="Monitoring",i.MUTED="Unmonitored",i.NONE="--"},99948:function(a,e,n){"use strict";n.r(e),n.d(e,{default:function(){return R}});var t=n(24246),i=n(86677),s=n(35287),o=n(77830),r=n(58754),_=n(13577),l=n(27378),F=n(812),d=n(25415),u=n(46628),c=n(37059),S=n(88708),m=n(9320),h=n(73825),C=n(31883),v=n(30952),y=n(8411),f=n(91982),A=n(54762);let g=a=>{let{monitorId:e,system:n,allowIgnore:s,onTabChange:r}=a,[l,{isLoading:d}]=(0,c.rs)(),[h,{isLoading:C}]=(0,c.nP)(),v=(0,i.useRouter)(),y=(0,_.pmc)(),f=d||C,{id:A,name:g,system_key:I,total_updates:M}=n,N=async()=>{let a=await l({monitor_config_key:e,resolved_system_ids:[A]});if((0,F.D4)(a))y((0,u.Vo)((0,F.e$)(a.error)));else{let a="".concat(o.So,"/configure/").concat(I,"#assets");y((0,u.t5)((0,m._)(I?"".concat(M," assets from ").concat(g," have been added to the system inventory."):"".concat(g," and ").concat(M," assets have been added to the system inventory. ").concat(g," is now configured for consent."),I?()=>v.push(a):void 0)))}},E=async()=>{let a=await h({monitor_config_key:e,resolved_system_ids:[A||o.Kl]});(0,F.D4)(a)?y((0,u.Vo)((0,F.e$)(a.error))):y((0,u.t5)((0,m._)(g?"".concat(M," assets from ").concat(g," have been ignored and will not appear in future scans."):"".concat(M," uncategorized assets have been ignored and will not appear in future scans."),()=>r(S.A.IGNORED))))};return(0,t.jsxs)(_.vyj,{children:[(0,t.jsx)(_.esZ,{title:n.id?void 0:"These assets must be categorized before you can add them to the inventory.",children:(0,t.jsx)(_.wpx,{"data-testid":"add-btn",size:"small",onClick:N,disabled:!n.id||f,loading:d,children:"Add"})}),s&&(0,t.jsx)(_.wpx,{"data-testid":"ignore-btn",size:"small",onClick:E,disabled:f,loading:C,children:"Ignore"})]})};var I=n(79894),M=n.n(I);let{Link:N,Text:E}=_.AntTypography,p=a=>{let{href:e,children:n,...i}=a;return e?(0,t.jsx)(M(),{href:e,passHref:!0,legacyBehavior:!0,children:(0,t.jsx)(N,{strong:!0,ellipsis:!0,onClick:a=>a.stopPropagation(),...i,children:n})}):(0,t.jsx)(E,{strong:!0,ellipsis:!0,...i,children:n})};var U=n(76904);let x=a=>{let{system:e,rowClickUrl:n}=a,i=null==n?void 0:n(e);return(0,t.jsxs)(_.vyj,{className:"max-w-[250px] flex-nowrap",children:[!e.system_key&&(0,t.jsx)(_.esZ,{title:"New system",children:(0,t.jsx)("span",{children:U.QL.Change})}),(0,t.jsx)(p,{href:i,"data-testid":i?"system-name-link":"system-name-text",children:e.name||"Uncategorized assets"}),(0,t.jsx)(A.l,{consentStatus:e.consent_status})]})};var b=n(34929),T=n(2525),L=n(78238),j=a=>{var e,n;let{system:i}=a,{getDataUseDisplayName:s}=(0,b.Z)(),o=(null!==(n=null===(e=i.data_uses)||void 0===e?void 0:e.filter(a=>(0,L.Z)(a)))&&void 0!==n?n:[]).map(a=>({label:s(a),key:a}));return(0,t.jsx)(T.Q,{values:o})};let k=a=>{let{monitorId:e,readonly:n,allowIgnore:i,onTabChange:s,consentStatus:o,rowClickUrl:r}=a,[F,d]=(0,l.useState)(!1),[u,c]=(0,l.useState)(!1);return{columns:(0,l.useMemo)(()=>{let a=[{title:()=>(0,t.jsxs)(_.vyj,{children:[(0,t.jsx)("div",{children:"System"}),(0,t.jsx)(A.l,{consentStatus:o})]}),dataIndex:"name",key:"system_name",fixed:"left",render:(a,e)=>(0,t.jsx)(x,{system:e,rowClickUrl:r})},{title:"Assets",dataIndex:"total_updates",key:"total_updates"},{title:"Categories of consent",key:"data_use",render:(a,e)=>(0,t.jsx)(j,{system:e})},{title:()=>(0,t.jsx)(f.OL,{title:"Locations",menu:{items:f.DI,onClick:a=>{"expand-all"===a.key?d(!0):"collapse-all"===a.key&&d(!1)}}}),dataIndex:"locations",key:"locations",width:250,render:a=>{var e;return(0,t.jsx)(f.Q3,{values:null!==(e=null==a?void 0:a.map(a=>{var e;return{label:null!==(e=y.Z8[a])&&void 0!==e?e:a,key:a}}))&&void 0!==e?e:[],columnState:{isExpanded:F,isWrapped:!0}})}},{title:()=>(0,t.jsx)(f.OL,{title:"Domains",menu:{items:f.DI,onClick:a=>{"expand-all"===a.key?c(!0):"collapse-all"===a.key&&c(!1)}}}),dataIndex:"domains",key:"domains",render:a=>(0,t.jsx)(f.vx,{values:a,valueSuffix:"domains",columnState:{isExpanded:u}})}];return n||a.push({title:"Actions",key:"actions",render:(a,n)=>(0,t.jsx)(g,{system:n,monitorId:e,allowIgnore:i,onTabChange:s})}),a},[n,o,r,F,u,e,i,s])}},w=a=>{let{monitorId:e}=a,n=(0,i.useRouter)(),[s,r]=(0,l.useState)(),[y,f]=(0,l.useState)(1),[A,g]=(0,l.useState)(25),[I,{isLoading:M}]=(0,c.rs)(),[N,{isLoading:E}]=(0,c.nP)(),p=(0,_.pmc)(),[U,x]=(0,l.useState)(""),[b,T]=(0,l.useState)([]),[L,j]=(0,l.useState)(new Map),w=()=>{T([]),j(new Map)},R=a=>{var e,n,t;return null!==(t=null!==(n=null!==(e=a.id)&&void 0!==e?e:a.vendor_id)&&void 0!==n?n:a.name)&&void 0!==t?t:o.Kl},{filterTabs:G,activeTab:B,onTabChange:D,activeParams:O,actionsDisabled:P}=(0,S.Z)();(0,l.useEffect)(()=>{f(1)},[e,U]),(0,l.useEffect)(()=>{w()},[e,U,B]);let{data:K,isLoading:V,isFetching:H}=(0,c.wi)({key:e,page:y,size:A,search:U,...O});(0,l.useEffect)(()=>{if((null==K?void 0:K.items)&&!s){var a;let e=null===(a=K.items.find(a=>{var e;return(null===(e=a.consent_status)||void 0===e?void 0:e.status)===h.pF.ALERT}))||void 0===a?void 0:a.consent_status;r(null!=e?e:void 0)}},[K,s]),(0,l.useEffect)(()=>{(null==K?void 0:K.items)&&T(K.items.filter(a=>{let e=R(a);return L.has(String(e))}).map(a=>R(a)))},[K,L]);let Z=Array.from(L.values()),z=a=>{r(void 0),D(a),w()},W=(0,l.useCallback)(a=>{var n;return"".concat(o.vi,"/").concat(e,"/").concat(null!==(n=a.id)&&void 0!==n?n:o.Kl).concat(B?"#".concat(B):"")},[e,B]),{columns:J}=k({monitorId:e,onTabChange:z,readonly:P,allowIgnore:!O.diff_status.includes(h.LL.MUTED),consentStatus:s,rowClickUrl:W}),Y=async()=>{let a=Z.reduce((a,e)=>a+e.total_updates,0),t=await I({monitor_config_key:e,resolved_system_ids:Z.map(a=>a.id)});(0,C.D4)(t)?p((0,u.Vo)((0,F.e$)(t.error))):(p((0,u.t5)((0,m._)("".concat(a," assets have been added to the system inventory."),()=>n.push(o.So)))),w())},q=async()=>{let a=Z.reduce((a,e)=>a+e.total_updates,0),n=await N({monitor_config_key:e,resolved_system_ids:Z.map(a=>{var e;return null!==(e=a.id)&&void 0!==e?e:o.Kl})});(0,C.D4)(n)?p((0,u.Vo)((0,F.e$)(n.error))):(p((0,u.t5)((0,m._)("".concat(a," assets have been ignored and will not appear in future scans."),()=>D(S.A.IGNORED)))),w())},Q=Z.some(a=>null===a.id);return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(_.A5g,{items:G.map(a=>({key:a.hash,label:a.label})),activeKey:B,onChange:a=>z(a)}),(0,t.jsxs)(_.jqI,{justify:"space-between",align:"center",className:"mb-4",children:[(0,t.jsx)(v.f,{value:U,onChange:x}),(0,t.jsxs)(_.vyj,{size:"large",children:[!!b.length&&(0,t.jsx)(d.a,{count:Z.length}),(0,t.jsx)(_.S0p,{menu:{items:[{key:"add",label:(0,t.jsx)(_.esZ,{title:Q?"Uncategorized assets can't be added to the inventory":null,placement:"left",children:"Add"}),onClick:Y,disabled:Q},O.diff_status.includes(h.LL.MUTED)?null:{key:"ignore",label:"Ignore",onClick:q}]},trigger:["click"],children:(0,t.jsx)(_.wpx,{type:"primary",icon:(0,t.jsx)(_.PJP._ME,{}),iconPosition:"end",loading:M||E,disabled:!b.length,"data-testid":"bulk-actions-menu",children:"Actions"})})]})]}),(0,t.jsx)(_.V5H,{dataSource:(null==K?void 0:K.items)||[],columns:J,loading:V||H,rowKey:a=>{var e,n,t;return null!==(t=null!==(n=null!==(e=a.id)&&void 0!==e?e:a.vendor_id)&&void 0!==n?n:a.name)&&void 0!==t?t:o.Kl},rowSelection:{selectedRowKeys:b,onChange:(a,e)=>{T(a);let n=new Map(L);(null==K?void 0:K.items)&&K.items.forEach(e=>{let t=R(e);a.includes(t)||n.delete(String(t))}),e.forEach(a=>{let e=R(a);n.set(String(e),a)}),j(n)}},pagination:{current:y,pageSize:A,total:(null==K?void 0:K.total)||0},onChange:a=>{f(a.current),g(a.pageSize)},locale:{emptyText:(0,t.jsx)(_.oj8,{image:_.oj8.PRESENTED_IMAGE_SIMPLE,description:"All caught up!"})}})]})};var R=()=>{let a=decodeURIComponent((0,i.useRouter)().query.monitorId);return(0,t.jsxs)(s.Z,{title:"Action center - Discovered assets by system",children:[(0,t.jsx)(r.Z,{heading:"Action center",breadcrumbItems:[{title:"All activity",href:o.vi},{title:a}]}),(0,t.jsx)(w,{monitorId:a})]})}},99830:function(a){a.exports={toastLink:"ToastLink_toastLink__OLSeq"}}},function(a){a.O(0,[2858,2866,9278,8237,2888,9774,179],function(){return a(a.s=86850)}),_N_E=a.O()}]);
|
|
@@ -1 +0,0 @@
|
|
|
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(586)}])},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),_=!!l.length||!!o.length;return{selected:l,excluded:o,allSelected:c,someSelected:_,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(13577);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(73825);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]}))},14908:function(e,t,a){"use strict";var n=a(86677),i=a(27378);let s=e=>e.startsWith("#")?e.slice(1):e;t.Z=e=>{let{tabKeys:t,initialTab:a}=e,l=(0,n.useRouter)(),r=l.asPath.split("#")[1],[o,d]=(0,i.useState)(r);return(0,i.useEffect)(()=>{a&&t.includes(a)&&d(a)},[a,t,l.isReady]),{activeTab:o,onTabChange:(0,i.useCallback)(async e=>{if(!t.includes(e)){d(t[0]),await l.replace({pathname:l.pathname,query:l.query,hash:void 0});return}d(e),l.isReady&&await l.replace({pathname:l.pathname,query:l.query,hash:s(e)},void 0,{shallow:!0})},[l,t])}}},79494:function(e,t,a){"use strict";var n=a(24246),i=a(13577);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})}},60325:function(e,t,a){"use strict";a.d(t,{DD:function(){return r},Go:function(){return o},TK:function(){return i},Uv:function(){return c},k1:function(){return s},y3:function(){return u}});var n=a(73825);let i=e=>{var t;return null!==(t=null==e?void 0:e.filter(e=>e.selected).map(e=>e.id))&&void 0!==t?t:[]},s=e=>{var t;return null!==(t=null==e?void 0:e.filter(e=>e.selected))&&void 0!==t?t:[]},l=[{language:n.eU.EN,is_default:!0,title:"Title",description:"Description",accept_button_label:"Accept",reject_button_label:"Reject",save_button_label:"Save",acknowledge_button_label:"OK",privacy_preferences_link_label:"Privacy Preferences"}],r={name:"",disabled:!1,dismissable:!0,allow_language_selection:!1,show_layer1_notices:!1,layer1_button_options:n.Of.OPT_IN_OPT_OUT,regions:[],translations:l,auto_detect_language:!0,auto_subdomain_cookie_deletion:!0},o=(e,t)=>{let a=t.find(t=>t.id===e.language);return a?a.name:e.language},d=e=>{var t,a,n,i,s,l,r,o,d;let{language:c,is_default:u,accept_button_label:_,reject_button_label:m}=e;return{language:c,is_default:u,accept_button_label:_,reject_button_label:m,title:e.title,description:e.description,acknowledge_button_label:null!==(t=e.acknowledge_button_label)&&void 0!==t?t:void 0,banner_title:null!==(a=e.banner_title)&&void 0!==a?a:void 0,banner_description:null!==(n=e.banner_description)&&void 0!==n?n:void 0,purpose_header:null!==(i=e.purpose_header)&&void 0!==i?i:void 0,privacy_policy_link_label:null!==(s=e.privacy_policy_link_label)&&void 0!==s?s:void 0,privacy_policy_url:null!==(l=e.privacy_policy_url)&&void 0!==l?l:void 0,privacy_preferences_link_label:null!==(r=e.privacy_preferences_link_label)&&void 0!==r?r:void 0,save_button_label:null!==(o=e.save_button_label)&&void 0!==o?o:void 0,modal_link_label:null!==(d=e.modal_link_label)&&void 0!==d?d:void 0}},c=e=>{let{created_at:t,updated_at:a,privacy_notices:n,origin:i,id:s,...l}=e;return{...l,privacy_notice_ids:n?n.map(e=>e.id):[],translations:e.translations?e.translations.map(e=>d(e)):[]}},u=e=>e===n.re.PRIVACY_CENTER?{title:{included:!0,required:!0},description:{included:!0,required:!0},save_button_label:{included:!0,required:!0},accept_button_label:{included:!0,required:!0},reject_button_label:{included:!0,required:!0},privacy_policy_link_label:{included:!0},privacy_policy_url:{included:!0},modal_link_label:{included:!0}}:e===n.re.MODAL?{title:{included:!0,required:!0},description:{included:!0,required:!0},accept_button_label:{included:!0,required:!0},reject_button_label:{included:!0,required:!0},save_button_label:{included:!0,required:!0},acknowledge_button_label:{included:!0,required:!0},privacy_policy_link_label:{included:!0},privacy_policy_url:{included:!0},privacy_preferences_link_label:{included:!0},modal_link_label:{included:!0}}:e===n.re.BANNER_AND_MODAL?{title:{included:!0,required:!0},banner_title:{included:!0},description:{included:!0,required:!0},banner_description:{included:!0},accept_button_label:{included:!0,required:!0},reject_button_label:{included:!0,required:!0},save_button_label:{included:!0,required:!0},acknowledge_button_label:{included:!0,required:!0},privacy_policy_link_label:{included:!0},privacy_policy_url:{included:!0},privacy_preferences_link_label:{included:!0,required:!0},modal_link_label:{included:!0}}:e===n.re.TCF_OVERLAY?{title:{included:!0,required:!0},banner_title:{included:!0},description:{included:!0,required:!0},banner_description:{included:!0},purpose_header:{included:!0},accept_button_label:{included:!0,required:!0},reject_button_label:{included:!0,required:!0},save_button_label:{included:!0,required:!0},acknowledge_button_label:{included:!0,required:!0},privacy_policy_link_label:{included:!0},privacy_policy_url:{included:!0},privacy_preferences_link_label:{included:!0,required:!0},modal_link_label:{included:!0}}:{title:{included:!0,required:!0},description:{included:!0,required:!0},accept_button_label:{included:!0,required:!0},reject_button_label:{included:!0,required:!0},save_button_label:{included:!0,required:!0},acknowledge_button_label:{included:!0,required:!0},privacy_policy_link_label:{included:!0},privacy_policy_url:{included:!0},privacy_preferences_link_label:{included:!0,required:!0},modal_link_label:{included:!0}}},586:function(e,t,a){"use strict";a.r(t),a.d(t,{default:function(){return tc}});var n=a(24246),i=a(13577),s=a(86677),l=a(77213),r=a(77830),o=a(58754),d=a(14908),c=a(94725),u=a(45216),_=a(52352),m=a(92222),p=a(59003),h=a(27378),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 x=a(8411),F=a(47935),f=a(70675),v=a(812),b=a(14047),j=a(8133),C=a(46628),S=a(67991),k=a(46238);let T=(0,m.Cl)();var A=e=>{let{items:t,totalItemCount:a,selected:s,excluded:l,allSelected:r,someSelected:o,moreLoading:d,handleToggleSelection:c,handleToggleAll:u,onMoreClick:_}=e,y=t.map(e=>({id:e,isSelected:s.includes(e),isExcluded:l.includes(e)})),x=(0,h.useMemo)(()=>[T.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}),T.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,p.b7)({getCoreRowModel:(0,m.sC)(),getRowId:e=>e.id,manualPagination:!0,data:y,columns:x,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:!!_&&(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:_,size:"small","data-testid":"load-more-btn",children:"Load more..."})]})})})})})};let w={items:[],total:1,page:1,size:50,pages:0};var N=(e,t)=>{let[a,n]=(0,h.useState)(2),{data:i,isLoading:s}=(0,f.oN)({page:1,size:25,connection_config_key:e}),l=(0,h.useRef)(s),{items:r,total:o}=null!=i?i:w,d=!!(null==i?void 0:i.pages)&&a>i.pages,[c,u]=(0,h.useState)(r);(0,h.useEffect)(()=>{l.current=s,u(r)},[s,r]),(0,h.useEffect)(()=>{let e=setTimeout(()=>{l.current&&t&&t()},5e3);return()=>clearTimeout(e)},[]);let[_,{isLoading:m,isFetching:p}]=(0,f.j3)(),g=m||p||s,y=async()=>{var t,i;if(d)return;let s=await _({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:y,initialIsLoading:s,isLoading:g,reachedEnd:d}},E=e=>{var t;let{monitor:a,isEditing:s,isSubmitting:l,integrationKey:r,onSubmit:o,onClose:d}=e,c=(0,i.pmc)(),{databases:u,totalDatabases:_,fetchMore:m,reachedEnd:p,isLoading:h,initialIsLoading:y}=N(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()}),x=null!==(t=null==a?void 0:a.databases)&&void 0!==t?t:[],{selected:F,excluded:f,allSelected:v,someSelected:b,handleToggleItemSelected:j,handleToggleAll:T}=(0,S.Od)({initialSelected:x,initialExcluded:[],initialAllSelected:s&&!x.length,itemCount:_}),w=!v&&0===F.length;return y?(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)(A,{items:u,totalItemCount:_,selected:F,excluded:f,allSelected:v,someSelected:b,moreLoading:h,handleToggleSelection:j,handleToggleAll:T,onMoreClick:p?void 0:m})]}),(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:w?"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:w,children:"Save"})})]})]})},M=a(64892),q=a(6680),I=a(54743);function R(e,t){let a,n;let i=()=>(0,q.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(D);if(!a)return new Date(NaN);let n=!!a[4],i=O(a[1]),s=O(a[2])-1,l=O(a[3]),r=O(a[4]),o=O(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]||(z(t)?29:28))&&i>=1&&i<=(z(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(P);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(L);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,I.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,I.Q)(r+o+n,t?.in)}let U={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},D=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,P=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,L=/^([+-])(\d{2})(?::?(\d{2}))?$/;function O(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 z(e){return e%400==0||e%4==0&&e%100!=0}var B=a(96063),Z=a(34090),H=a(55484),G=a(97181),W=a(40324),Y=a(11013);let J=e=>{let{layout:t="stacked",...a}=e,{data:i}=(0,Y.eV)({page:1,size:100}),s=null==i?void 0:i.items.map(e=>({label:e.name,value:e.id}));return(0,n.jsx)(G.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 X=a(73825),Q=e=>{var t,a,l;let{monitor:r,integrationOption:o,isSubmitting:d,databasesAvailable:c,onClose:u,onAdvance:_,onSubmit:m}=e,p=!!r,h=(0,s.useRouter)(),g=Array.isArray(h.query.id)?h.query.id[0]:h.query.id,y=H.Ry().shape({name:H.Z_().required().label("Name"),execution_frequency:H.Z_().nullable().label("Execution frequency"),execution_start_date:H.hT().nullable().label("Execution start date")}),x=(null==r?void 0:r.execution_start_date)?R(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,B.WU)(x,"yyyy-MM-dd'T'HH:mm"),execution_frequency:null!==(l=null==r?void 0:r.execution_frequency)&&void 0!==l?l:X.hV.MONTHLY},f=(0,v.MM)(X.hV);return(0,n.jsx)(Z.J9,{initialValues:F,enableReinitialize:!0,onSubmit:e=>{let t=e.execution_frequency!==X.hV.NOT_SCHEDULED?{execution_frequency:e.execution_frequency,execution_start_date:new Date(e.execution_start_date).toISOString()}:{execution_frequency:X.hV.NOT_SCHEDULED,execution_start_date:void 0},a=p?{...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:g,classify_params:{num_samples:25,num_threads:1}};o.identifier===X.Rj.DYNAMODB&&(a.datasource_params={single_dataset:!1}),c?_(a):m(a)},validationSchema:y,children:e=>{let{values:t,isValid:a,resetForm:s}=e;return(0,n.jsx)(Z.l0,{children:(0,n.jsxs)(i.gCW,{alignItems:"start",spacing:6,mt:4,children:[(0,n.jsx)(W.j0,{name:"name",id:"name",label:"Name",isRequired:!0,variant:"stacked"}),(0,n.jsx)(G.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)(W.YL,{name:"execution_start_date",label:"Automatic execution start time",disabled:t.execution_frequency===X.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"})]})]})})}})},$=a(90111),ee=a(64781),et=a(60325);let ea=H.Ry().shape({name:H.Z_().required().label("Name"),execution_frequency:H.Z_().nullable().label("Execution frequency"),execution_start_date:H.hT().nullable().label("Execution start date"),datasource_params:H.Ry().shape({locations:H.IX().label("Locations"),exclude_domains:H.IX().label("Exclude domains"),sitemap_url:H.Z_().nullable().url().label("Sitemap URL")})});var en=e=>{var t,a,l,r;let{monitor:o,url:d,onClose:c,onSubmit:u}=e,_=(0,s.useRouter)(),m=Array.isArray(_.query.id)?_.query.id[0]:_.query.id,p=(null==o?void 0:o.execution_start_date)?R(o.execution_start_date):Date.now(),{data:h,isLoading:g}=(0,ee.gT)(),y=[...(0,et.TK)(null!==(t=null==h?void 0:h.locations)&&void 0!==t?t:[]),...(0,et.TK)(null!==(a=null==h?void 0:h.location_groups)&&void 0!==a?a:[])].map(e=>({value:e,label:x.Z8[e]})),F={name:(null==o?void 0:o.name)||"",shared_config_id:null!==(l=null==o?void 0:o.shared_config_id)&&void 0!==l?l:void 0,execution_frequency:(null==o?void 0:o.execution_frequency)||X.hV.NOT_SCHEDULED,execution_start_date:(0,B.WU)(p,"yyyy-MM-dd'T'HH:mm"),url:d,connection_config_key:m,datasource_params:null!==(r=null==o?void 0:o.datasource_params)&&void 0!==r?r:{locations:[]}},f=async e=>{let t=e.execution_frequency!==X.hV.NOT_SCHEDULED?{execution_frequency:e.execution_frequency,execution_start_date:new Date(e.execution_start_date).toISOString()}:{execution_frequency:X.hV.NOT_SCHEDULED,execution_start_date:void 0};u({...o,...e,...t,key:null==o?void 0:o.key,classify_params:(null==o?void 0:o.classify_params)||{},datasource_params:e.datasource_params||{},connection_config_key:m})},b=(0,v.MM)(X.hV).filter(e=>[X.hV.MONTHLY,X.hV.QUARTERLY,X.hV.YEARLY,X.hV.NOT_SCHEDULED].includes(e.value));return(0,n.jsxs)(i.jqI,{vertical:!0,className:"pt-4",children:[(0,n.jsx)($.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.jsx)(Z.J9,{initialValues:F,enableReinitialize:!0,onSubmit:f,validationSchema:ea,children:e=>{let{values:t,resetForm:a}=e;return(0,n.jsx)(Z.l0,{children:(0,n.jsxs)(i.jqI,{vertical:!0,gap:"middle",children:[(0,n.jsx)(W.j0,{name:"name",id:"name",label:"Name",isRequired:!0,variant:"stacked"}),(0,n.jsx)(W.j0,{name:"datasource_params.sitemap_url",id:"sitemap_url",label:"Sitemap URL",variant:"stacked"}),(0,n.jsx)(G.d,{mode:"tags",name:"datasource_params.exclude_domains",placeholder:"Enter domains to exclude",id:"exclude_domains",label:"Exclude domains",options:[],open:!1,layout:"stacked"}),(0,n.jsx)(W.j0,{name:"url",id:"url",label:"URL",isRequired:!0,disabled:!0,variant:"stacked"}),(0,n.jsx)(G.d,{mode:"multiple",isRequired:!0,name:"datasource_params.locations",id:"locations",label:"Locations",loading:g,options:y,optionFilterProp:"label",tooltip:"Specify the region(s) to include in the scan. The monitor will scan the same URL across these locations to identify tracking technologies, such as cookies served by ad tech vendors.",layout:"stacked"}),(0,n.jsx)(J,{name:"shared_config_id",id:"shared_config_id"}),(0,n.jsx)(G.d,{name:"execution_frequency",id:"execution_frequency",options:b,label:"Automatic execution frequency",layout:"stacked"}),(0,n.jsx)(W.YL,{name:"execution_start_date",label:"Automatic execution start time",disabled:t.execution_frequency===X.hV.NOT_SCHEDULED,id:"execution_start_date",tooltip:"Set the start time for the scan. For optimal performance and minimal disruption, schedule scans during periods of low traffic."}),(0,n.jsxs)(i.jqI,{className:"mt-2 justify-between",children:[(0,n.jsx)(i.wpx,{onClick:()=>{a(),c()},children:"Cancel"}),(0,n.jsx)(i.wpx,{type:"primary",htmlType:"submit","data-testid":"save-btn",children:"Save"})]})]})})}})]})},ei=a(31883),es=e=>{let{isOpen:t,onClose:a,formStep:s,onAdvance:l,monitor:r,isEditing:o,integration:d,integrationOption:c,isWebsiteMonitor:u}=e,[_,{isLoading:m}]=(0,f.Fy)(),{data:p}=(0,f.oN)({page:1,size:25,connection_config_key:d.key}),h=!!p&&!!p.total,y=(0,i.pmc)(),{successAlert:x,errorAlert:F}=(0,b.V)(),S=async e=>{let t;let n=setTimeout(()=>{t||(y({...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 _(e)){if(clearTimeout(n),(0,ei.D4)(t)){F((0,v.e$)(t.error),"Error creating monitor");return}if(o){x("Monitor updated successfully"),a();return}if(u){x(e.execution_frequency===X.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}x("Monitor created successfully"),a()}};return u?(0,n.jsx)(j.Z,{title:(null==r?void 0:r.name)?"Configure ".concat(r.name):"Configure website monitor",isOpen:t,onClose:a,children:(0,n.jsx)(en,{monitor:r,url:d.secrets.url,onClose:a,onSubmit:S})}):(0,n.jsxs)(j.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)(Q,{monitor:r,onClose:a,onAdvance:l,onSubmit:S,isSubmitting:m,databasesAvailable:h,integrationOption:c}),1===s&&(r?(0,n.jsx)(E,{monitor:r,isEditing:o,isSubmitting:m,onSubmit:S,onClose:a,integrationKey:d.key}):(0,n.jsx)(g.Z,{}))]})},el=e=>{let{defaultSuccessMsg:t,defaultErrorMsg:a}=e,{successAlert:n,errorAlert:i}=(0,b.V)();return{toastResult:e=>{(0,v.D4)(e)?i((0,v.e$)(e.error,a)):n(t)}}},er=a(58452),eo=a(79494),ed=e=>{let{monitorId:t,isWebsiteMonitor:a,onEditClick:s}=e,[l]=(0,f.Sb)(),{toastResult:r}=el({defaultErrorMsg:"A problem occurred deleting this monitor",defaultSuccessMsg:"Monitor deleted successfully"}),[o,{isLoading:d}]=(0,f.V9)(),{toastResult:c}=el({defaultErrorMsg:"A problem occurred initiating monitor execution",defaultSuccessMsg:a?"Scanning your website now. Once the monitor is finished, results can be found in the action center.":"Monitor execution successfully started"}),u=async()=>{r(await l({monitor_config_id:t}))},{isOpen:_,onOpen:m,onClose:p}=(0,i.qY0)(),h=async()=>{c(await o({monitor_config_id:t}))};return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(er.Z,{isOpen:_,onClose:p,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:m,size:"small",icon:(0,n.jsx)(i.pJl,{}),"aria-label":"Delete monitor","data-testid":"delete-monitor-btn"})}),(0,n.jsx)(eo.Z,{onClick:h,title:"Scan",loading:d})]})]})},ec=a(72625);let eu=e=>{let{row:t,getValue:a}=e,[i]=(0,f.Fy)(),s=async e=>i({...t.original,enabled:e}),l=a();return(0,n.jsx)(ec.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 e_=a(7195),em=a(16394),ep=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,em.p6)(c):"N/A",_=c?(0,e_.B)(c,new Date,{addSuffix:!0}):"N/A";return l?l.status===X.L2.IN_PROGRESS?c?(0,n.jsx)(i.esZ,{title:"Last scan: ".concat(_),children:(0,n.jsx)(i.j8w,{color:"info",children:"Scanning"})}):(0,n.jsx)(i.j8w,{color:"info",children:"Scanning"}):l.status===X.L2.COMPLETED?(0,n.jsx)(i.esZ,{title:u,children:(0,n.jsx)(i.j8w,{color:"success","data-testid":"tag-success",children:_})}):l.status===X.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,em.p6)(new Date(l.completed))}),null===(a=l.messages)||void 0===a?void 0:a.map((e,t)=>(0,n.jsxs)(h.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"})},eh=a(40774);let eg={items:[],total:0,page:1,size:50,pages:0},ey={[X.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.",[X.Rj.OKTA]:"Configure your SSO provider monitor to detect and map systems within your infrastructure. This monitor will analyze connected systems to identify their activity and ensure accurate representation in your data map. Set your preferences below to customize the monitor's scan frequency and scope. To learn more about monitors, view our docs here."},ex=(0,m.Cl)();var eF=e=>{var t,a;let{integration:s,integrationOption:l}=e,r=(null==l?void 0:l.identifier)===X.Rj.WEBSITE,o=(null==l?void 0:l.type)===X.Zi.SAAS,{PAGE_SIZES:d,pageSize:c,setPageSize:u,onPreviousPageClick:_,isPreviousPageDisabled:v,onNextPageClick:b,isNextPageDisabled:j,startRange:C,endRange:S,pageIndex:k,setTotalPages:T}=(0,F.oi)(),{isLoading:A,isFetching:w,data:N}=(0,f.Fu)({page:k,size:c,connection_config_key:s.key}),E=(0,i.qY0)(),[M,q]=(0,h.useState)(void 0),[I,R]=(0,h.useState)(!1),[U,D]=(0,h.useState)(0),P=e=>{q(e),R(!0),E.onOpen()},L=null!=N?N:eg,{items:O,total:V,pages:K}=(0,h.useMemo)(()=>L,[L]);(0,h.useEffect)(()=>{T(K)},[K,T]);let z=(0,h.useMemo)(()=>{let e=ex.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=ex.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=ex.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})}),i=ex.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})}),l=ex.display({id:"monitor_status",cell:e=>(0,n.jsx)(ep,{monitor:e.row.original}),header:e=>(0,n.jsx)(F.Rr,{value:"Scan status",...e}),meta:{disableRowClick:!0}}),o=ex.accessor(e=>{var t;let a=e.datasource_params;return(null==a?void 0:null===(t=a.locations)||void 0===t?void 0:t.map(e=>x.Z8[e]).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})}),d=ex.accessor(e=>e.enabled,{id:"status",cell:eu,header:e=>(0,n.jsx)(F.Rr,{value:"Status",...e}),size:0,meta:{disableRowClick:!0}}),c=ex.display({id:"action",cell:e=>(0,n.jsx)(ed,{onEditClick:()=>P(e.row.original),isWebsiteMonitor:r,monitorId:e.row.original.key}),header:"Actions",meta:{disableRowClick:!0}});return r?[e,a,i,o,l,d,c]:[e,t,i,l,d,c]},[]),B=(0,p.b7)({getCoreRowModel:(0,m.sC)(),getGroupedRowModel:(0,m.qe)(),getExpandedRowModel:(0,m.rV)(),getRowId:e=>e.name,manualPagination:!0,data:O,columns:z,columnResizeMode:"onChange"});if(A)return(0,n.jsx)(g.Z,{});let Z=null!==(t=ey[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:H,tooltip:G}=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)(eh.Z,{}),(0,n.jsx)(i.LZC,{}),(0,n.jsx)(i.ua7,{label:G,children:(0,n.jsx)("span",{children:(0,n.jsx)(i.wpx,{onClick:E.onOpen,icon:(0,n.jsx)(y,{}),iconPosition:"end","data-testid":"add-monitor-btn",disabled:H,children:"Add monitor"})})}),(0,n.jsx)(es,{isOpen:E.isOpen,onClose:()=>{q(void 0),R(!1),D(0),E.onClose()},formStep:U,onAdvance:e=>{q(e),D(1)},monitor:M,isEditing:I,integration:s,integrationOption:l,isWebsiteMonitor:r})]}),(0,n.jsx)(F.ZK,{tableInstance:B,onRowClick:P,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:V||0,pageSizes:d,setPageSize:u,onPreviousPageClick:_,isPreviousPageDisabled:v||w,onNextPageClick:b,isNextPageDisabled:j||w,startRange:C,endRange:S})]})},ef=a(41966),ev=a(32885),eb=e=>{let{integration:t}=e,{data:a}=(0,c.Eg)(t.key),{data:s}=(0,ef.LH)({minimal:!0,connection_type:X.Rj.BIGQUERY}),[l,{isLoading:r}]=(0,ev.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:[],_=c.length>0?c:u,m=await l({connectionKey:t.key,datasetIds:_}),p=null!==(d=null===(n=m.data)||void 0===n?void 0:n.succeeded.length)&&void 0!==d?d:0,h="Fides has begun syncing with DataHub. There ".concat(1===p?"is":"are"," ").concat(p," dataset").concat(1===p?"":"s"," queued for syncing.");o((0,C.t5)(h))}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"})]})},ej=a(78780),eC=a(52253);let{useGetManualFieldsQuery:eS,useGetManualFieldQuery:ek,useCreateManualFieldMutation:eT,useUpdateManualFieldMutation:eA,useDeleteManualFieldMutation:ew}=ej.u.injectEndpoints({endpoints:e=>({getManualFields:e.query({query:e=>{let{connectionKey:t,requestType:a}=e;return{url:"".concat(eC.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(eC.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(eC.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(eC.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(eC.Iy,"/").concat(t,"/manual-field/").concat(a),method:"DELETE"}},invalidatesTags:()=>["Manual Fields"]})})}),{useGetManualTaskConfigQuery:eN,useAssignUsersToManualTaskMutation:eE}=ej.u.injectEndpoints({endpoints:e=>({getManualTaskConfig:e.query({query:e=>{let{connectionKey:t}=e;return{url:"".concat(eC.Iy,"/").concat(t,"/manual-task"),method:"GET"}},providesTags:()=>["Manual Tasks"]}),assignUsersToManualTask:e.mutation({query:e=>{let{connectionKey:t,userIds:a}=e;return{url:"".concat(eC.Iy,"/").concat(t,"/manual-task/assign-users"),method:"PUT",body:a}},invalidatesTags:()=>["Manual Tasks"]})})});var eM=a(65497),eq=a(3124),eI=a.n(eq);let eR=e=>{let{text:t}=e;return(0,n.jsx)(i.esZ,{title:t,children:(0,n.jsx)(i.PJP.daM,{style:{color:eI().FIDESUI_NEUTRAL_500,marginLeft:4,cursor:"help"}})})};var eU=e=>{let{isSubmitting:t,onSaveClick:a,onCancel:s,editingTask:l}=e,[r]=i.PPS.useForm(),o=!!l,d=[{label:"Access",value:X.k6.ACCESS},{label:"Erasure",value:X.k6.ERASURE}],c=i.PPS.useWatch("requestType",r),u=c===X.k6.ACCESS?[{label:"Text",value:X.PF.TEXT},{label:"Attachment",value:X.PF.ATTACHMENT}]:c===X.k6.ERASURE?[{label:"Checkbox",value:X.PF.CHECKBOX}]:[],_=!c||c===X.k6.ERASURE;(0,h.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 m=async e=>{a(e)};return(0,n.jsxs)(i.PPS,{form:r,layout:"vertical",onFinish:m,onValuesChange:e=>{void 0!==e.requestType&&(e.requestType===X.k6.ERASURE?r.setFieldsValue({fieldType:X.PF.CHECKBOX}):e.requestType===X.k6.ACCESS?r.getFieldValue("fieldType")===X.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)(eR,{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"})}),(0,n.jsx)(i.PPS.Item,{label:(0,n.jsxs)("div",{style:{display:"flex",alignItems:"center"},children:["Description",(0,n.jsx)(eR,{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"})}),!o&&(0,n.jsx)(i.PPS.Item,{label:(0,n.jsxs)("div",{style:{display:"flex",alignItems:"center"},children:["Key",(0,n.jsx)(eR,{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)"})}),o&&(0,n.jsx)(i.PPS.Item,{label:(0,n.jsxs)("div",{style:{display:"flex",alignItems:"center"},children:["Key",(0,n.jsx)(eR,{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})}),(0,n.jsx)(i.PPS.Item,{label:(0,n.jsxs)("div",{style:{display:"flex",alignItems:"center"},children:["Request type",(0,n.jsx)(eR,{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})}),(0,n.jsx)(i.PPS.Item,{label:(0,n.jsxs)("div",{style:{display:"flex",alignItems:"center"},children:["Field type",(0,n.jsx)(eR,{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:_})}),(0,n.jsxs)(i.kCb,{justify:"flex-end",gap:2,children:[(0,n.jsx)(i.wpx,{onClick:s,disabled:t,children:"Cancel"}),(0,n.jsx)(i.wpx,{type:"primary",htmlType:"submit",loading:t,children:o?"Update task":"Add task"})]})]})},eD=e=>{let{isOpen:t,onClose:a,integration:s,onTaskAdded:l,editingTask:r}=e,{successAlert:o}=(0,b.V)(),{handleError:d}=(0,b.H)(),[c,u]=(0,h.useState)(!1),[_]=eT(),[m]=eA(),p=!!r,g=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 m({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 _({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",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)(eU,{isSubmitting:c,onSaveClick:g,onCancel:()=>{a()},editingTask:r})]})})]})]})};let{useCreateExternalUserMutation:eP}=ej.u.injectEndpoints({endpoints:e=>({createExternalUser:e.mutation({query:e=>({url:"plus/external-user",method:"POST",body:e}),invalidatesTags:["User"]})})}),{Paragraph:eL}=i.AntTypography;var eO=e=>{let{isOpen:t,onClose:a,onUserCreated:s}=e,[l]=i.PPS.useForm(),[r,o]=(0,h.useState)(!1),[d]=eP(),c=(0,i.pmc)(),u=e=>e.split("@")[0].replace(/[^a-zA-Z0-9_]/g,"_"),_=async e=>{o(!0);try{let t=u(e.email_address),a=await d({username:t,email_address:e.email_address,first_name:e.first_name,last_name:e.last_name});if((0,v.D4)(a)){c((0,C.Vo)((0,v.e$)(a.error)));return}c((0,C.t5)("External respondent user created successfully. The user will receive a welcome email with access instructions.")),l.resetFields(),s()}catch(e){c((0,C.Vo)("Failed to create external user. Please try again."))}finally{o(!1)}},m=()=>{l.resetFields(),a()};return(0,n.jsxs)(i.$zI,{title:"Create External Respondent User",open:t,onCancel:m,footer:null,width:500,children:[(0,n.jsxs)("div",{style:{marginBottom:16},children:[(0,n.jsx)(eL,{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)(eL,{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)(i.AntTypography.Link,{children:"Users page"})," instead."]})]}),(0,n.jsxs)(i.PPS,{form:l,layout:"vertical",onFinish:_,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"})}),(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,{})}),(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,{})}),(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:m,disabled:r,children:"Cancel"}),(0,n.jsx)(i.wpx,{type:"primary",htmlType:"submit",loading:r,children:"Create User"})]})})]})]})};let eV={[X.PF.TEXT]:"Text",[X.PF.CHECKBOX]:"Checkbox",[X.PF.ATTACHMENT]:"Attachment"},eK={[X.k6.ACCESS]:"Access",[X.k6.ERASURE]:"Erasure"},ez=(0,m.Cl)(),eB=e=>(0,n.jsx)("div",{style:{maxWidth:"200px"},children:(0,n.jsx)(i.AntTypography.Text,{ellipsis:{tooltip:e.getValue()},children:e.getValue()})}),eZ=e=>(0,n.jsx)("div",{style:{maxWidth:"300px"},children:(0,n.jsx)(i.AntTypography.Text,{ellipsis:{tooltip:e.getValue()},children:e.getValue()})}),eH=e=>{let t=e.getValue(),a=eV[t]||t;return(0,n.jsx)(F.G3,{value:a})},eG=e=>{let t=e.getValue(),a=eK[t]||t;return(0,n.jsx)(F.G3,{value:a})},eW=(e,t)=>function(a){let{row:s}=a,l=s.original;return(0,n.jsxs)(i.kCb,{gap:2,children:[(0,n.jsx)(i.wpx,{size:"small",icon:(0,n.jsx)(i.PJP.I8b,{}),onClick:()=>e(l)}),(0,n.jsx)(i.wpx,{size:"small",danger:!0,icon:(0,n.jsx)(i.PJP.ZNm,{}),onClick:()=>t(l)})]})},eY=e=>(0,n.jsx)(F.Rr,{value:"Task Name",...e}),eJ=e=>(0,n.jsx)(F.Rr,{value:"Description",...e}),eX=e=>(0,n.jsx)(F.Rr,{value:"Field Type",...e}),eQ=e=>(0,n.jsx)(F.Rr,{value:"Request Type",...e}),e$=e=>(0,n.jsx)(F.Rr,{value:"Actions",...e}),e0=e=>{let{onEdit:t,onDelete:a}=e;return{columns:(0,h.useMemo)(()=>[ez.accessor(e=>e.name,{id:"name",cell:eB,header:eY}),ez.accessor(e=>e.description,{id:"description",cell:eZ,header:eJ}),ez.accessor(e=>e.fieldType,{id:"fieldType",cell:eH,header:eX}),ez.accessor(e=>e.requestType,{id:"requestType",cell:eG,header:eQ}),ez.display({id:"actions",cell:eW(t,a),header:e$,meta:{disableRowClick:!0}})],[t,a])}},{Paragraph:e1}=i.AntTypography;var e3=e=>{var t;let{integration:a}=e,[s,l]=(0,h.useState)([]),[r,o]=(0,h.useState)([]),[d,c]=(0,h.useState)(!1),[u,_]=(0,h.useState)(null),[g,y]=(0,h.useState)(null),{isOpen:x,onOpen:f,onClose:v}=(0,i.qY0)(),{isOpen:b,onOpen:j,onClose:C}=(0,i.qY0)(),{isOpen:S,onOpen:k,onClose:T}=(0,i.qY0)(),{data:A,refetch:w}=eS({connectionKey:a?a.key:""},{skip:!a}),{data:N}=eN({connectionKey:a?a.key:""},{skip:!a}),[E]=ew(),[M]=eE(),{data:q,refetch:I}=(0,eM.wv)({page:1,size:100,username:""}),R=(null!==(t=null==q?void 0:q.items)&&void 0!==t?t:[]).map(e=>({label:"".concat(e.first_name," ").concat(e.last_name," (").concat(e.email_address,")"),value:e.email_address}));(0,h.useEffect)(()=>{A&&l(A.map(e=>({id:e.id,name:e.label,description:e.help_text,fieldType:e.field_type,requestType:e.request_type,originalField:e})))},[A]),(0,h.useEffect)(()=>{(null==N?void 0:N.assigned_users)&&o(N.assigned_users.map(e=>e.email_address).filter(e=>null!=e))},[N]);let U=(0,h.useCallback)(async e=>{try{await E({connectionKey:a.key,manualFieldId:e.id}).unwrap(),w()}catch(e){i.Pg3.error("Failed to delete task. Please try again.")}},[E,a.key,w]),D=(0,h.useCallback)(e=>{_(e),f()},[f]),P=(0,h.useCallback)(e=>{y(e),k()},[k]),L=(0,h.useCallback)(async()=>{g&&(await U(g),y(null)),T()},[g,U,T]),O=(0,h.useCallback)(()=>{_(null),f()},[f]),V=(0,h.useCallback)(()=>{_(null),v()},[v]),K=(0,h.useCallback)(e=>{o(e)},[]),z=(0,h.useCallback)(async()=>{c(!0);try{await M({connectionKey:a.key,userIds:r}).unwrap(),i.Pg3.success("User assignments saved successfully!")}catch(e){i.Pg3.error("Failed to assign users to task. Please try again.")}finally{c(!1)}},[M,a.key,r]),{columns:B}=e0({onEdit:D,onDelete:P}),Z=(0,p.b7)({data:s,columns:B,getCoreRowModel:(0,m.sC)()});return(0,n.jsx)(i.xuv,{children:(0,n.jsxs)(i.kCb,{direction:"column",gap:4,children:[(0,n.jsx)(i.AntTypography.Paragraph,{className:"mt-2",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)(i.kCb,{justify:"flex-end",children:(0,n.jsx)(i.kCb,{justify:"flex-start",align:"center",gap:2,children:(0,n.jsx)(i.wpx,{type:"primary",onClick:O,children:"Add manual task"})})}),(0,n.jsx)(F.ZK,{tableInstance:Z,onRowClick:()=>{},emptyTableNotice:(0,n.jsx)(i.xuv,{textAlign:"center",p:8,children:(0,n.jsx)(e1,{type:"secondary",children:"No manual tasks configured yet. Click 'Add manual task' to get started."})})}),(0,n.jsx)(i.htM,{className:"my-2"}),(0,n.jsxs)(i.xuv,{children:[(0,n.jsx)(i.AntTypography.Text,{strong:!0,children:"Assign tasks to users:"}),(0,n.jsxs)("div",{className:"mt-4 flex items-center gap-2",children:[(0,n.jsx)("div",{className:"w-1/2",children:(0,n.jsx)(i.WPr,{className:"!mt-0",placeholder:"Select users to assign tasks to",mode:"multiple",maxTagCount:"responsive",value:r,onChange:K,options:R,style:{width:"100%",marginTop:8},tokenSeparators:[","],filterOption:(e,t)=>"string"==typeof(null==t?void 0:t.label)&&t.label.toLowerCase().includes(e.toLowerCase())||!1})}),(0,n.jsx)(i.wpx,{type:"primary",onClick:z,loading:d,children:"Save"})]}),(0,n.jsxs)("div",{className:"mt-4",children:[(0,n.jsx)(i.AntTypography.Text,{strong:!0,children:"Secure access:"}),(0,n.jsx)("div",{className:"mt-2",children:(0,n.jsx)(i.wpx,{type:"default",onClick:j,children:"Manage secure access"})})]})]}),(0,n.jsx)(eD,{isOpen:x,onClose:V,integration:a,onTaskAdded:()=>{w()},editingTask:u}),(0,n.jsx)(eO,{isOpen:b,onClose:C,onUserCreated:()=>{I(),C()}}),(0,n.jsx)(er.Z,{isOpen:S,onClose:()=>{y(null),T()},onConfirm:L,title:"Delete manual task",message:(0,n.jsxs)(i.xvT,{color:"gray.500",children:["Are you sure you want to delete the task “",null==g?void 0:g.name,"”? This action cannot be undone."]}),continueButtonText:"Delete",isCentered:!0,icon:(0,n.jsx)(i.aNP,{})})]})})},e2=a(15987),e5=a(64176),e6=e=>{var t;let{isOpen:a,onClose:s,connection:l,description:r}=e,[o,d]=(0,h.useState)(null),c=(0,e5.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)(j.Z,{title:"Manage ".concat(null==l?void 0:l.name," integration"),isOpen:a,onClose:s,footer:u,children:(0,n.jsx)(e2.Z,{connection:l,connectionOption:c,onCancel:s,description:r,onFormStateChange:d})})},e7=a(41553),e8=a(93633),e4=a(75595),e9=a(29379);let te=e=>{let{connection:t,connectionOption:a}=e,{data:n}=eS({connectionKey:t?t.key:""},{skip:!t});if((null==a?void 0:a.identifier)!==X.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"}},tt=e=>{let{connection:t,connectionOption:a}=e,{data:n}=eN({connectionKey:t?t.key:""},{skip:!t});if((null==a?void 0:a.identifier)!==X.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"}},ta=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},tn=()=>({title:"Create integration",description:"Integration created successfully",state:"finish"}),ti=e=>{var t,a,n,i;let{enabledFeatures:s}=(0,_.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(e9.j.DATA_DISCOVERY),{data:r}=(0,f.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"}};var ts=a(79894),tl=a.n(ts);let tr=e=>{let{connection:t}=e,a=!!(null==t?void 0:t.system_key),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)(tl(),{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)(tl(),{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"}},to=e=>{let{testData:t,testIsLoading:a,connectionOption:s,connection:l}=e,r=tn(),o=ta({testData:t,testIsLoading:a,connection:l,connectionOption:s}),d=ti({testData:t,testIsLoading:a,connection:l,connectionOption:s}),c=te({testData:t,testIsLoading:a,connection:l,connectionOption:s}),u=tt({testData:t,testIsLoading:a,connection:l,connectionOption:s}),_=tr({testData:t,testIsLoading:a,connection:l,connectionOption:s}),m=(0,h.useMemo)(()=>[r,o,d,c,u,_].filter(e=>null!==e),[r,o,d,c,u,_]),p=(0,h.useMemo)(()=>m.map(e=>({...e,icon:"finish"===e.state?(0,n.jsx)(i.PJP.WzW,{size:24}):void 0})),[m]);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=m.findIndex(e=>"finish"!==e.state);return -1===e&&m.length>0?m.length-1:e})(),status:(()=>{let e=m.findIndex(e=>"finish"!==e.state);return -1===e?"finish":m[e].state})(),items:p,size:"small"})})};var td=a(80388),tc=()=>{var e,t,a,m;let p=(0,s.useRouter)(),h=Array.isArray(p.query.id)?p.query.id[0]:p.query.id,{data:g,isLoading:y}=(0,c.jA)(null!=h?h:""),x=null==g?void 0:null===(e=g.saas_config)||void 0===e?void 0:e.type,F=(0,e5.Z)(null==g?void 0:g.connection_type,x&&Object.values(td.m).includes(x)?x:void 0),{testConnection:f,isLoading:v,testData:b}=(0,u.Z)(g),{handleAuthorize:j,needsAuthorization:C}=(0,e8.z)({connection:g,connectionOption:F,testData:b}),{onOpen:S,isOpen:k,onClose:T}=(0,i.qY0)(),{overview:A,instructions:w,description:N,enabledFeatures:E}=(0,_.ZP)(null==g?void 0:g.connection_type,null==g?void 0:null===(t=g.saas_config)||void 0===t?void 0:t.type);g&&!_.jq.includes(g.connection_type)&&p.push(r.KH);let M=(null==g?void 0:g.connection_type)!==X.Rj.MANUAL_TASK,q=[];(null==E?void 0:E.includes(e9.j.WITHOUT_CONNECTION))?q.push({label:"Details",key:"details",children:(0,n.jsxs)(i.xuv,{children:[(0,n.jsx)(i.kCb,{children:(0,n.jsx)(i.wpx,{onClick:S,"data-testid":"manage-btn",children:"Edit integration"})}),(0,n.jsx)(e6,{isOpen:k,onClose:T,connection:g,description:N}),A,w]})}):q.push({label:"Connection",key:"connection",children:(0,n.jsxs)(i.xuv,{children:[M&&(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)(e7.Z,{testData:b,connectionOption:F})}),(0,n.jsx)(i.LZC,{}),(0,n.jsxs)("div",{className:"flex gap-4",children:[C&&(0,n.jsx)(i.wpx,{onClick:j,"data-testid":"authorize-integration-btn",children:"Authorize integration"}),!C&&(0,n.jsx)(i.wpx,{onClick:f,loading:v,"data-testid":"test-connection-btn",children:"Test connection"}),(0,n.jsx)(i.wpx,{onClick:S,"data-testid":"manage-btn",children:"Manage"})]})]}),(0,n.jsx)(e6,{isOpen:k,onClose:T,connection:g,description:N}),A,w]})}),(null==E?void 0:E.includes(e9.j.DATA_SYNC))&&q.push({label:"Data sync",key:"data-sync",children:(0,n.jsx)(eb,{integration:g})}),(null==E?void 0:E.includes(e9.j.DATA_DISCOVERY))&&q.push({label:"Data discovery",key:"data-discovery",children:(0,n.jsx)(eF,{integration:g,integrationOption:F})}),(null==E?void 0:E.includes(e9.j.TASKS))&&q.push({label:"Manual tasks",key:"manual-tasks",children:(0,n.jsx)(e3,{integration:g})});let{activeTab:I,onTabChange:R}=(0,d.Z)({tabKeys:q.map(e=>e.key)});return(0,n.jsx)(l.Z,{title:"Integrations",children:(0,n.jsx)(o.Z,{heading:"Integrations",breadcrumbItems:[{title:"All integrations",href:r.KH},{title:null!==(m=null!==(a=null==g?void 0:g.name)&&void 0!==a?a:null==g?void 0:g.key)&&void 0!==m?m:""}],children:(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)(e4.Z,{integration:g,showDeleteButton:!0})}),y?(0,n.jsx)(i.$jN,{}):!!g&&(0,n.jsx)(i.A5g,{items:q,activeKey:I,onChange:R})]}),(0,n.jsx)("div",{className:"w-[350px] shrink-0",children:y?(0,n.jsx)(i.$jN,{}):!!g&&(0,n.jsx)(to,{testData:b,testIsLoading:v,connectionOption:F,connection:g})})]})})})}}},function(e){e.O(0,[2858,2866,9278,699,3662,1316,6662,2888,9774,179],function(){return e(e.s=50697)}),_N_E=e.O()}]);
|
fides/ui-build/static/admin/_next/static/chunks/pages/privacy-requests/[id]-1caa552a8f11f2f2.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
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(8063)}])},77213:function(e,t,i){"use strict";i.d(t,{Z:function(){return m}});var s=i(24246),n=i(13577),a=i(88038),l=i.n(a),r=i(86677);i(27378);var o=i(25980),c=i(90867),d=i(77830),u=()=>{let e=(0,r.useRouter)();return(0,s.jsx)(n.xuv,{bg:"gray.50",border:"1px solid",borderColor:"blue.400",borderRadius:"md",justifyContent:"space-between",p:5,mb:5,mt:5,children:(0,s.jsxs)(n.xuv,{children:[(0,s.jsxs)(n.Kqy,{direction:{base:"column",sm:"row"},justifyContent:"space-between",children:[(0,s.jsx)(n.xvT,{fontWeight:"semibold",children:"Configure your storage and messaging provider"}),(0,s.jsx)(n.wpx,{onClick:()=>{e.push(d.fz)},children:"Configure"})]}),(0,s.jsxs)(n.xvT,{children:["Before Fides can process your privacy requests we need two simple steps to configure your storage and email client."," "]})]})})},m=e=>{let{children:t,title:i,padded:a=!0,mainProps:d}=e,m=(0,o.hz)(),h=(0,r.useRouter)(),p="/privacy-requests"===h.pathname||"/datastore-connection"===h.pathname,x=!(m.flags.privacyRequestsConfiguration&&p),{data:g}=(0,c.JE)(void 0,{skip:x}),{data:v}=(0,c.PW)(void 0,{skip:x}),j=m.flags.privacyRequestsConfiguration&&(!g||!v)&&p;return(0,s.jsxs)(n.kCb,{"data-testid":i,direction:"column",h:"100vh",children:[(0,s.jsxs)(l(),{children:[(0,s.jsxs)("title",{children:["Fides Admin UI - ",i]}),(0,s.jsx)("meta",{name:"description",content:"Privacy Engineering Platform"}),(0,s.jsx)("link",{rel:"icon",href:"/favicon.ico"})]}),(0,s.jsxs)(n.kCb,{as:"main",direction:"column",py:a?6:0,px:a?10:0,h:a?"calc(100% - 48px)":"full",flex:1,minWidth:0,overflow:"auto",...d,children:[j?(0,s.jsx)(u,{}):null,t]})]})}},8063:function(e,t,i){"use strict";i.r(t),i.d(t,{default:function(){return eB}});var s,n,a,l,r=i(24246),o=i(13577),c=i(86677),d=i(77213),u=i(77830),m=i(58754),h=i(99716),p=i(27378),x=i(73825),g=i(19904);(s=a||(a={})).IN_PROCESSING="in_processing",s.PENDING="pending",s.COMPLETE="complete",s.ERROR="error",s.PAUSED="paused",s.AWAITING_PROCESSING="awaiting_processing",s.RETRYING="retrying",s.SKIPPED="skipped";let v={in_processing:"In processing",pending:"Pending",complete:"Complete",error:"Error",paused:"Paused",awaiting_processing:"Awaiting input",retrying:"Retrying",skipped:"Skipped"},j={error:"error",skipped:"warning",awaiting_processing:"minos",in_processing:void 0,pending:void 0,complete:void 0,paused:void 0,retrying:void 0};(n=l||(l={})).REQUEST_UPDATE="Request update",n.INTERNAL_COMMENT="Internal comment",n.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 R=e=>{let{item:t}=e,{author:i,title:s,date:n,type:a,onClick:c,isError:d,isAwaitingInput:u,description:m,attachments:h,showViewLog:p}=t,x=(0,b.p6)(n),g=!!c,v=h&&h.length>0,j=(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("div",{className:w().header,children:(0,r.jsxs)("div",{className:w().headerLeft,children:[(0,r.jsxs)("span",{className:w().author,"data-testid":"activity-timeline-author",children:[i,":"]}),s&&(0,r.jsxs)(o.AntTypography.Text,{className:_()(w().title,{[w()["title--error"]]:d,[w()["title--awaiting-input"]]:u}),ellipsis:{tooltip:!0},style:{maxWidth:"33%"},"data-testid":"activity-timeline-title",children:[s,d&&" failed"]}),(0,r.jsx)("span",{className:w().timestamp,"data-testid":"activity-timeline-timestamp",children:x}),(0,r.jsx)(o.j8w,{className:w().type,color:y[a],"data-testid":"activity-timeline-type",children:a}),p&&(0,r.jsx)("span",{className:w().viewLogs,"data-testid":"activity-timeline-view-logs",children:"View Log"})]})}),(m||v)&&(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:m||""}),v&&(0,r.jsx)(E,{attachments:h})]})]}),f={className:_()(w().itemButton,{[w()["itemButton--error"]]:d,[w()["itemButton--awaiting-input"]]:u,[w()["itemButton--clickable"]]:g,[w()["itemButton--comment"]]:a===l.INTERNAL_COMMENT,[w()["itemButton--manual-task"]]:a===l.MANUAL_TASK}),"data-testid":"activity-timeline-item"};return g?(0,r.jsx)("button",{type:"button",onClick:c,...f,children:j}):(0,r.jsx)("div",{...f,children:j})},A=i(25980),k=i(54427),C=i(78780);let{useGetCommentsQuery:S,useCreateCommentMutation:q,useGetCommentDetailsQuery:N,useLazyGetCommentDetailsQuery:P}=C.u.injectEndpoints({endpoints:e=>({getComments:e.query({query:e=>{let{privacy_request_id:t,page:i=1,size:s}=e;return{url:"plus/privacy-request/".concat(t,"/comment"),method:"GET",params:{page:i,size:s}}},providesTags:["Privacy Request Comments"]}),createComment:e.mutation({query:e=>{let{privacy_request_id:t,comment_text:i,comment_type:s}=e,n=new FormData;return n.append("comment_text",i),n.append("comment_type",s),{url:"plus/privacy-request/".concat(t,"/comment"),method:"POST",body:n,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,A.hz)(),{data:i,isLoading:s,error:n}=S({privacy_request_id:e,size:100},{skip:!t});return(0,p.useEffect)(()=>{n&&o.Pg3.error("Failed to fetch the request comments")},[n]),{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:l.INTERNAL_COMMENT,showViewLog:!1,description:e.comment_text,isError:!1,isSkipped:!1,isAwaitingInput:!1,id:"comment-".concat(e.id)})):[],isLoading:s}},D=e=>{let t=!e;return{eventItems:e?Object.entries(e).map(e=>{let[t,i]=e,s=i.some(e=>e.status===a.ERROR),n=i.some(e=>e.status===a.SKIPPED),r=i.some(e=>e.status===a.AWAITING_PROCESSING);return{author:"Fides",title:t,date:new Date(i[0].updated_at),type:l.REQUEST_UPDATE,showViewLog:s||n||r,onClick:()=>{},isError:s,isSkipped:n,isAwaitingInput:r,id:"request-".concat(t)}}):[],isLoading:t}};var M=i(91317),U=i(45116);let z=e=>{let{plus:t}=(0,A.hz)(),{data:i,isLoading:s,error:n}=(0,U.Ym)({page:1,size:100,privacyRequestId:e,status:void 0,includeFullSubmissionDetails:!0},{skip:!t});return(0,p.useEffect)(()=>{n&&o.Pg3.error("Failed to fetch manual tasks")},[n]),{manualTaskItems:i?i.items.filter(e=>e.status===x.OS.COMPLETED||e.status===x.OS.SKIPPED).map(e=>{var t,i;let s=e.submission_user?(0,b.gJ)(e.submission_user):"Unknown User";(0,M.PN)(null===(t=e.submission_user)||void 0===t?void 0:t.id)&&(s=(null===(i=e.submission_user)||void 0===i?void 0:i.id)||"Unknown User");let n=e.status===x.OS.SKIPPED,a="Task ".concat(n?"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:s,title:a,date:new Date(e.updated_at),type:l.MANUAL_TASK,showViewLog:!1,description:r,isError:!1,isSkipped:n,isAwaitingInput:!1,id:"manual-task-".concat(e.manual_field_id),attachments:o}}):[],taskCommentIds:(0,p.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:s}};var L=i(88340),W=e=>{let{errorMessage:t,status:i=a.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)(L.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})})]})},B=i(3124),F=i.n(B);let J=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}},Z=e=>{if(e.status!==a.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():"-"},G=(e,t)=>{let i=e.filter(e=>e.action_type===t&&e.status===a.COMPLETE&&e.collection_name).sort((e,t)=>new Date(t.updated_at).getTime()-new Date(e.updated_at).getTime()),s={};i.forEach(e=>{let t=e.collection_name||"unknown";s[t]||(s[t]=e)});let n=0,l=!1,r=/(?:retrieved|masked|processed)\s+(\d+)\s+records?$/i;return Object.values(s).forEach(e=>{if(e.message){let t=e.message.match(r);if(t){l=!0;let e=parseInt(t[1],10);n+=e}}}),l?n:null},K=(e,t,i)=>{if("finished"===e.status&&!e.collection_name&&i){let e=G(t,i);return null!==e?e.toLocaleString():"-"}return Z(e)};var H=e=>{var t,i,s;let{eventLogs:n,allEventLogs:l,onDetailPanel:c,privacyRequest:d}=e,u=(null==n?void 0:n.some(e=>e.collection_name))||(null==n?void 0:n.some(e=>"finished"===e.status&&!e.collection_name))||!1,m=null==n?void 0:n.every(e=>"finished"===e.status&&!e.collection_name),h=null==d?void 0:null===(s=d.policy)||void 0===s?void 0:null===(i=s.rules)||void 0===i?void 0:null===(t=i[0])||void 0===t?void 0:t.action_type,p=e=>e?J(e):h?J(h):"-",x=null==n?void 0:n.map(e=>(0,r.jsxs)(o.Tr,{backgroundColor:e.status===a.ERROR||e.status===a.SKIPPED&&e.message||e.status===a.AWAITING_PROCESSING?F().FIDESUI_NEUTRAL_50:"unset",onClick:()=>{(e.status===a.ERROR||e.status===a.SKIPPED&&e.message||e.status===a.AWAITING_PROCESSING)&&c(e.message,e.status)},style:{cursor:e.message?"pointer":"unset"},_hover:{backgroundColor:F().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:p(e.action_type)})}),u&&!m&&(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:K(e,l||n,h)})}),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"})}),u&&!m&&(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})]})})})},V=e=>{let{isOpen:t,onClose:i,currentLogs:s,allEventLogs:n,isViewingError:l,errorMessage:c,currentStatus:d=a.ERROR,onCloseErrorPanel:u,onOpenErrorPanel:m,privacyRequest:h}=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:[l&&(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:l?"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:[s&&!l?(0,r.jsx)(H,{eventLogs:s,allEventLogs:n,onDetailPanel:m,privacyRequest:h}):null,l?(0,r.jsx)(W,{errorMessage:c,status:d}):null]})]})]})},Y=e=>{let{subjectRequest:t}=e,{isOpen:i,onOpen:s,onClose:n}=(0,o.qY0)(),[c,d]=(0,p.useState)([]),[u,m]=(0,p.useState)(""),[h,x]=(0,p.useState)(!1),[g,v]=(0,p.useState)(""),[j,y]=(0,p.useState)(a.ERROR),{results:f,id:_}=t,{commentItems:b,isLoading:T}=O(_),{eventItems:E,isLoading:A}=D(f),{manualTaskItems:k,taskCommentIds:C,isLoading:S}=z(_);(0,p.useEffect)(()=>{u&&f&&f[u]&&d(f[u])},[f,u]);let q=()=>{x(!1)},N=(0,p.useCallback)((e,t)=>{m(e),d(t),s()},[s]),P=(0,p.useMemo)(()=>f?Object.values(f).flat():[],[f]),I=(0,p.useMemo)(()=>b.filter(e=>{let t=e.id.replace("comment-","");return!C.has(t)}),[b,C]),M=(0,p.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:l.REQUEST_UPDATE,showViewLog:!1,isError:!1,isSkipped:!1,isAwaitingInput:!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||A||S?(0,r.jsx)("div",{className:w().itemButton,"data-testid":"timeline-skeleton",children:(0,r.jsx)(o.N_L,{paragraph:{rows:2},active:!0})}):M.map(e=>(0,r.jsx)("li",{children:(0,r.jsx)(R,{item:e})},e.id))})}),(0,r.jsx)(V,{isOpen:i,onClose:()=>{h&&q(),m(""),n()},currentLogs:c,allEventLogs:P,isViewingError:h,errorMessage:g,currentStatus:j,onOpenErrorPanel:(e,t)=>{v(e),t&&y(t),x(!0)},onCloseErrorPanel:q,privacyRequest:t})]})},Q=i(66187);let $=e=>{let{privacyRequestId:t,onCancel:i}=e,[s,n]=(0,p.useState)(""),a=(0,p.useRef)(null),[l,{isLoading:c}]=q();(0,p.useEffect)(()=>{a.current&&a.current.focus()},[]);let d=async()=>{if(s.trim())try{await l({privacy_request_id:t,comment_text:s,comment_type:Q.i.NOTE}).unwrap(),n(""),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:a,value:s,onChange:e=>n(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:!s.trim(),type:"primary",htmlType:"button","data-testid":"submit-comment-button",children:"Save"})]})]})};var X=e=>{let{subjectRequest:t}=e,[i,s]=(0,p.useState)(!1);return(0,r.jsxs)("div",{className:"w-full",children:[(0,r.jsx)(Y,{subjectRequest:t}),i?(0,r.jsx)($,{privacyRequestId:t.id,onCancel:()=>s(!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:()=>s(!0),className:"flex items-center","data-testid":"add-comment-button",children:["Add comment ",(0,r.jsx)("span",{className:"ml-1",children:"+"})]})})})]})},ee=i(14207),et=i(46238),ei=i(72281),es=i(14047),en=i(90867),ea=i(16134);let el=e=>Array.from(new Set(e.filter(e=>Object.values(x.Us).includes(e.action_type)).map(e=>e.action_type)));var er=e=>{let{rules:t}=e,i=el(t).map(e=>(0,b.kC)(e)).map(e=>e);return(0,r.jsx)(o.AntTypography.Text,{children:i.join(" - ")})},eo=i(34090),ec=i(55484),ed=e=>{let{connectorName:t,data:i,isSubmitting:s=!1,onSaveClick:n}=e,{isOpen:a,onOpen:l,onClose:c}=(0,o.qY0)(),d=(0,p.useRef)(null),u=async(e,t)=>{n({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:l,size:"small",children:"Review"}),!(null==i?void 0:i.checked)&&(0,r.jsx)(o.wpx,{onClick:l,size:"small",type:"primary",children:"Begin manual input"}),(0,r.jsx)(eo.J9,{enableReinitialize:!0,initialValues:{...i.fields},onSubmit:u,validateOnBlur:!1,validateOnChange:!1,validationSchema:ec.Ry().shape({}),children:e=>(0,r.jsxs)(o.dys,{isOpen:a,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)(eo.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)(eo.gN,{id:i,name:i,children:e=>{let{field:s}=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,{...s,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:s,htmlType:"submit",children:"Save"})]})})]})]})})]})},eu=e=>{let{connectorName:t,data:i,isSubmitting:s=!1,onSaveClick:n}=e,{isOpen:a,onOpen:l,onClose:c}=(0,o.qY0)(),d=(0,p.useRef)(null),u=async(e,t)=>{n({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:l,size:"small",children:"Review"}),!(null==i?void 0:i.checked)&&(0,r.jsx)(o.wpx,{onClick:l,size:"small",type:"primary",children:"Begin manual input"}),(0,r.jsx)(eo.J9,{enableReinitialize:!0,initialValues:{...i.fields},onSubmit:u,validateOnBlur:!1,validateOnChange:!1,validationSchema:ec.Ry().shape({}),children:e=>(0,r.jsxs)(o.dys,{isOpen:a,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)(eo.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)(eo.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:s,htmlType:"submit",children:"Save"})]})})]})]})})]})};let em=(e,t,i)=>e.includes(x.Us.ACCESS)?{ProcessingDetailComponent:ed,uploadMutation:t,getUploadedWebhookDataEndpoint:en.$I.endpoints.getUploadedManualAccessWebhookData}:e.includes(x.Us.ERASURE)?{ProcessingDetailComponent:eu,uploadMutation:i,getUploadedWebhookDataEndpoint:en.$I.endpoints.getUploadedManualErasureWebhookData}:null;var eh=e=>{let{subjectRequest:t,onComplete:i}=e,s=(0,ea.T)(),{errorAlert:n,successAlert:a}=(0,es.V)(),{handleError:l}=(0,es.H)(),[c,d]=(0,p.useState)([]),[u,m]=(0,p.useState)(!1),[h,g]=(0,p.useState)(!1),{data:v,isFetching:j,isLoading:y,isSuccess:f}=(0,ee.W6)(),[_]=(0,en.w3)(),b=el(t.policy.rules),[T]=(0,en.nL)(),[w]=(0,en.UR)(),{ProcessingDetailComponent:E,uploadMutation:R,getUploadedWebhookDataEndpoint:A}=em(b,T,w),k=async()=>{try{m(!0),await _(t.id).unwrap(),a("Manual request has been received. Request now processing."),i()}catch(e){l(e)}finally{m(!1)}},C=async e=>{try{g(!0),await R(e).unwrap();let t={connection_key:e.connection_key,fields:{}};Object.entries(e.body).forEach(e=>{let[i,s]=e;t.fields[i]=s||""});let i=c.map(e=>e.connection_key===t.connection_key?{...e,checked:!0,fields:{...t.fields}}:e);d(i),a("Manual input successfully saved!")}catch(e){l(e)}finally{g(!1)}};return((0,p.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(s(A.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,s]=e;i.fields[t]=s||""}),t.push(i)}else n("An error occurred while loading manual input data for ".concat(v[i].connection_config.name))}),d(t)})})(),()=>{}),[v,c.length,s,n,f,t.id,A]),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:h,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},ep=e=>{let{subjectRequest:t,onComplete:i}=e,s=(0,c.useRouter)(),{data:n}=(0,ee.AZ)({}),a=(0,p.useMemo)(()=>{var e;return(null==n?void 0:null===(e=n.items)||void 0===e?void 0:e.filter(e=>e.connection_type===x.Rj.MANUAL_TASK))||[]},[n]),{data:l}=(0,ee.W6)(),d=(l||[]).length>0,{data:m}=(0,U.Ym)({page:1,size:100,privacyRequestId:t.id}),h=(null==m?void 0:m.items)||[],g=h.length,v=h.filter(e=>e.status===x.OS.NEW).length,j=a.length>0;return j||d?(0,r.jsxs)(o.Kqy,{spacing:6,children:[j&&(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:()=>{s.push({pathname:u.Jw,query:{privacy_request_id:t.id,tab:ei.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)(et.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)(eh,{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."})})},ex=i(59969);let eg={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 ev=e=>{let{status:t}=e;return(0,r.jsx)(o.j8w,{color:eg[t].color,className:"justify-center","data-testid":"request-status-badge",children:eg[t].label})},ej=i(18225),ey=i(812),ef=i(7842);let{useGetAttachmentsQuery:e_,useUploadAttachmentMutation:eb,useGetAttachmentDetailsQuery:eT,useLazyGetAttachmentDetailsQuery:ew}=C.u.injectEndpoints({endpoints:e=>({getAttachments:e.query({query:e=>{let{privacy_request_id:t,page:i=1,size:s}=e;return{url:"plus/privacy-request/".concat(t,"/attachment"),method:"GET",params:{page:i,size:s}}},providesTags:["Privacy Request Attachments"]}),uploadAttachment:e.mutation({query:e=>{let{privacy_request_id:t,attachment_type:i,attachment_file:s}=e,n=new FormData;return n.append("attachment_type",i),n.append("attachment_file",s),{url:"plus/privacy-request/".concat(t,"/attachment"),method:"POST",body:n,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:eE}=(0,k.oM)({name:"privacyRequestAttachments",initialState:{},reducers:{}}),eR=e=>{var t;let{file:i}=e,[s,n]=(0,p.useState)(!1),[a]=ew(),l=async()=>{var e,t,s;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)){n(!0);try{let e=await a({privacy_request_id:i.customData.privacy_request_id,attachment_id:i.customData.attachment_id}),t=null===(s=e.data)||void 0===s?void 0:s.retrieved_attachment_url,n=null==t?void 0:t.startsWith("http");t&&n?window.open(t,"_blank"):t&&!n?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{n(!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:l,loading:s,className:"shrink-0"})]})},eA=(e,t)=>(0,r.jsx)(eR,{file:t});var ek=e=>{let{subjectRequest:t}=e,[i,s]=(0,p.useState)(!1),n=(0,g.Tg)([x.Sh.ATTACHMENT_READ]),a=(0,g.Tg)([x.Sh.ATTACHMENT_CREATE]),[l]=eb(),{data:c,isLoading:d,error:u}=(0,en.PW)(),{data:m,isLoading:h}=e_({privacy_request_id:t.id}),{refetch:v}=e_({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,p.useCallback)(()=>(0,r.jsx)(o.PJP.PgN,{}),[]);if(!n)return null;let f=a&&(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||h?(0,r.jsx)(ej.Z,{size:"md",alignment:"start"}):(0,r.jsx)(o.pMK,{name:"attachment_file",fileList:j,iconRender:y,showUploadList:{showRemoveIcon:!1,showDownloadIcon:!1},itemRender:eA,accept:_.join(","),customRequest:async e=>{let{file:i,onSuccess:n,onError:a}=e,r=i.name;try{s(!0),await l({privacy_request_id:t.id,attachment_file:i,attachment_type:ef.s.INTERNAL_USE_ONLY}).unwrap(),o.Pg3.success("".concat(r," file uploaded successfully")),v(),null==n||n(i)}catch(e){o.Pg3.error("".concat(r," file upload failed.")),null==a||a(e)}finally{s(!1)}},disabled:!f,children:a&&(0,r.jsx)(o.esZ,{title:u&&"Add attachment not available: ".concat((0,ey.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)(et.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"})]})})})]})})},eC=i(15709),eS=i.n(eC),eq=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(eS().label),children:(0,r.jsxs)(o.AntTypography.Text,{children:[t,":"]})}),(0,r.jsx)("div",{className:"min-w-0 shrink grow ".concat(eS().value),"data-testid":"request-detail-value-".concat(t),children:i})]})},eN=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)(eq,{label:i.label,children:(0,r.jsx)(o.AntTypography.Text,{children:Array.isArray(i.value)?i.value.join(", "):i.value})},t)})})},eP=e=>{let{subjectRequest:t}=e,{plus:i}=(0,A.hz)(),{id:s,status:n,policy:a,identity:l,identity_verified_at:c}=t;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)(eq,{label:"Status",children:(0,r.jsx)(ev,{status:n})}),(0,r.jsx)(eq,{label:"Time remaining",children:(0,r.jsx)(ex.Z,{daysLeft:t.days_left,includeText:!0,status:t.status})}),(0,r.jsx)(eq,{label:"Request type",children:(0,r.jsx)(er,{rules:a.rules})}),(0,r.jsx)(eq,{label:"Source",children:i&&(0,r.jsx)(o.AntTypography.Text,{children:t.source||"-"})}),Object.entries(l).filter(e=>{let[,{value:t}]=e;return null!==t}).map(e=>{let[t,{value:i="",label:s}]=e,n="".concat(i).concat(c?"":" (Unverified)");return(0,r.jsx)(eq,{label:"Subject ".concat(s.toLocaleLowerCase()),children:(0,r.jsx)(o.esZ,{title:n,trigger:"click",children:(0,r.jsx)(o.AntTypography.Text,{ellipsis:!0,children:n})})},t)}),(0,r.jsx)(eN,{subjectRequest:t})]}),(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:s,"data-testid":"request-detail-value-id"}),(0,r.jsx)(o.wpx,{icon:(0,r.jsx)(L.Z,{copyText:s})})]})})}),(0,r.jsx)(o.PPS.Item,{label:"Policy key:",className:"mb-4",children:(0,r.jsx)(o.uFc,{readOnly:!0,value:t.policy.key,"data-testid":"request-detail-value-policy"})})]}),(0,r.jsx)(ek,{subjectRequest:t})]})},eI=e=>{var t;let{data:i}=e,s=(0,p.useMemo)(()=>({id:i.id,verbose:!0}),[i.id]),{data:n}=(0,h.QA)(s,{pollingInterval:i.status===x.q2.APPROVED||i.status===x.q2.IN_PROCESSING?2e3:0,skip:!i.id}),a=null!==(t=null==n?void 0:n.items[0])&&void 0!==t?t:i,l=a.status===x.q2.REQUIRES_INPUT,[c,d]=(0,p.useState)("activity"),u=(0,p.useMemo)(()=>[{key:"activity",label:"Activity",children:(0,r.jsx)(X,{subjectRequest:a})},{key:"manual-tasks",label:"Manual tasks",children:(0,r.jsx)(ep,{subjectRequest:a,onComplete:()=>d("activity")}),disabled:!l}],[l,a]);return(0,r.jsxs)("div",{className:"flex gap-8",children:[(0,r.jsx)("div",{className:"flex-1",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)(eP,{subjectRequest:a})})]})},eO=i(57526),eD=i(66548),eM=i(45489),eU=e=>{let{privacyRequest:t,action:i}=e,{handleApproveRequest:s,handleDenyRequest:n}=(0,eM.Z)({subjectRequest:t}),a=t.status===x.q2.PENDING,l=(0,o.qY0)(),r=async e=>{let{reason:t}=e,a=o.Pg3.loading({content:"approve"===i?"Approving request...":"Denying request..."});"deny"===i&&await n(t),"approve"===i&&await s(),a()};return{showAction:a,closeModal:l.onClose,performAction:r,openConfirmationModal:l.onOpen,isModalOpen:l.isOpen}},ez=e=>{var t,i,s;let{privacyRequest:n}=e,a=null===(i=(0,A.hz)())||void 0===i?void 0:null===(t=i.flags)||void 0===t?void 0:t.downloadAccessRequestResults,l=n.status===x.q2.COMPLETE,r=el(n.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,en.br)({privacy_request_id:n.id}),h=null!==(s=null==c?void 0:c.access_result_urls[0])&&void 0!==s?s:"",p=!!h&&"your local fides_uploads folder"!==h,v=null;return u?v=(0,ey.e$)(m,"Unable to resolve download URL"):p||(v="Requests stored locally cannot be downloaded"),{showDownloadResults:a&&o&&r&&l,downloadResults:()=>{let e=document.createElement("a");e.href=h,e.target="_blank",e.rel="noopener noreferrer",e.click(),e.remove()},infoTooltip:v,isLoading:d,isDisabled:!p}},eL=e=>{let{privacyRequest:t}=e,{errorAlert:i,successAlert:s}=(0,es.V)(),n=t.status===x.q2.ERROR,[a]=(0,en.Fq)();return{reprocessPrivacyRequest:async()=>{if(!t)return;let e=o.Pg3.loading("Reprocessing privacy request...",0),n=await a(t);"error"in n?i((0,ey.e$)(n.error),"DSR automation has failed for this privacy request due to the following:",{duration:null}):s("Privacy request is now being reprocessed."),e()},showReprocess:n}},eW=e=>{let{privacyRequest:t}=e,{showDownloadResults:i,downloadResults:s,infoTooltip:n,isDisabled:a}=ez({privacyRequest:t}),{isModalOpen:l,closeModal:c,performAction:d,openConfirmationModal:u,showAction:m}=eU({privacyRequest:t,action:"approve"}),{isModalOpen:h,closeModal:g,performAction:v,openConfirmationModal:j,showAction:y}=eU({privacyRequest:t,action:"deny"}),{reprocessPrivacyRequest:f,showReprocess:_}=eL({privacyRequest:t}),{handleFinalizeRequest:b,finalizeRequestResult:T}=(0,eM.Z)({subjectRequest:t}),w=(0,p.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:a?n:null,placement:"bottom",children:(0,r.jsx)("span",{"data-testid":"download-results-btn",children:"Download request results"})}),onClick:s,disabled:a}),e},[i,s,n,a,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)(eO.Z,{isOpen:l,isLoading:!1,onClose:c,onApproveRequest:()=>d({reason:""}),subjectRequest:t}),(0,r.jsx)(eD.Z,{isOpen:h,onClose:g,onDenyRequest:e=>v({reason:e})})]})},eB=()=>{let e=(0,c.useRouter)().query.id,{data:t,isLoading:i}=(0,h.QA)({id:e,verbose:!0},{skip:!e}),s=(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:!!s&&(0,r.jsx)(eW,{privacyRequest:s})}),i&&(0,r.jsx)(o.M5Y,{children:(0,r.jsx)(o.$jN,{})}),!i&&!s&&(0,r.jsx)(o.xvT,{children:"404 no privacy request found"}),!i&&s&&(0,r.jsx)(eI,{data:s})]})}},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",header:"ActivityTimelineEntry_header__GYibj",headerLeft:"ActivityTimelineEntry_headerLeft__0AD8T",headerRight:"ActivityTimelineEntry_headerRight__bJdMo",title:"ActivityTimelineEntry_title__rm_g0","title--error":"ActivityTimelineEntry_title--error__fOi0s","title--awaiting-input":"ActivityTimelineEntry_title--awaiting-input__3sPAo",timestamp:"ActivityTimelineEntry_timestamp__uMEMT",viewLogs:"ActivityTimelineEntry_viewLogs___T4jN",logs:"ActivityTimelineEntry_logs__T7R0J","logs--open":"ActivityTimelineEntry_logs--open__o_9Io"}}},function(e){e.O(0,[203,2888,9774,179],function(){return e(e.s=6554)}),_N_E=e.O()}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
@font-face{font-family:Inter;font-style:normal;font-display:swap;font-weight:400;src:url(/_next/static/media/inter-cyrillic-ext-400-normal.06b6faa3.woff2) format("woff2"),url(/_next/static/media/inter-all-400-normal.2ae8ed37.woff) format("woff");unicode-range:u+0460-052f,u+1c80-1c88,u+20b4,u+2de0-2dff,u+a640-a69f,u+fe2e-fe2f}@font-face{font-family:Inter;font-style:normal;font-display:swap;font-weight:400;src:url(/_next/static/media/inter-cyrillic-400-normal.5122dff0.woff2) format("woff2"),url(/_next/static/media/inter-all-400-normal.2ae8ed37.woff) format("woff");unicode-range:u+0301,u+0400-045f,u+0490-0491,u+04b0-04b1,u+2116}@font-face{font-family:Inter;font-style:normal;font-display:swap;font-weight:400;src:url(/_next/static/media/inter-greek-ext-400-normal.2271c2a1.woff2) format("woff2"),url(/_next/static/media/inter-all-400-normal.2ae8ed37.woff) format("woff");unicode-range:u+1f??}@font-face{font-family:Inter;font-style:normal;font-display:swap;font-weight:400;src:url(/_next/static/media/inter-greek-400-normal.d1deb2fe.woff2) format("woff2"),url(/_next/static/media/inter-all-400-normal.2ae8ed37.woff) format("woff");unicode-range:u+0370-03ff}@font-face{font-family:Inter;font-style:normal;font-display:swap;font-weight:400;src:url(/_next/static/media/inter-vietnamese-400-normal.ebde713a.woff2) format("woff2"),url(/_next/static/media/inter-all-400-normal.2ae8ed37.woff) format("woff");unicode-range:u+0102-0103,u+0110-0111,u+0128-0129,u+0168-0169,u+01a0-01a1,u+01af-01b0,u+1ea0-1ef9,u+20ab}@font-face{font-family:Inter;font-style:normal;font-display:swap;font-weight:400;src:url(/_next/static/media/inter-latin-ext-400-normal.261aa6d4.woff2) format("woff2"),url(/_next/static/media/inter-all-400-normal.2ae8ed37.woff) format("woff");unicode-range:u+0100-024f,u+0259,u+1e??,u+2020,u+20a0-20ab,u+20ad-20cf,u+2113,u+2c60-2c7f,u+a720-a7ff}@font-face{font-family:Inter;font-style:normal;font-display:swap;font-weight:400;src:url(/_next/static/media/inter-latin-400-normal.493934f7.woff2) format("woff2"),url(/_next/static/media/inter-all-400-normal.2ae8ed37.woff) format("woff");unicode-range:u+00??,u+0131,u+0152-0153,u+02bb-02bc,u+02c6,u+02da,u+02dc,u+2000-206f,u+2074,u+20ac,u+2122,u+2191,u+2193,u+2212,u+2215,u+feff,u+fffd}@font-face{font-family:Inter;font-style:normal;font-display:swap;font-weight:500;src:url(/_next/static/media/inter-cyrillic-ext-500-normal.563e11f7.woff2) format("woff2"),url(/_next/static/media/inter-all-500-normal.56c3d87b.woff) format("woff");unicode-range:u+0460-052f,u+1c80-1c88,u+20b4,u+2de0-2dff,u+a640-a69f,u+fe2e-fe2f}@font-face{font-family:Inter;font-style:normal;font-display:swap;font-weight:500;src:url(/_next/static/media/inter-cyrillic-500-normal.017c512f.woff2) format("woff2"),url(/_next/static/media/inter-all-500-normal.56c3d87b.woff) format("woff");unicode-range:u+0301,u+0400-045f,u+0490-0491,u+04b0-04b1,u+2116}@font-face{font-family:Inter;font-style:normal;font-display:swap;font-weight:500;src:url(/_next/static/media/inter-greek-ext-500-normal.9ef8ce0d.woff2) format("woff2"),url(/_next/static/media/inter-all-500-normal.56c3d87b.woff) format("woff");unicode-range:u+1f??}@font-face{font-family:Inter;font-style:normal;font-display:swap;font-weight:500;src:url(/_next/static/media/inter-greek-500-normal.599dd974.woff2) format("woff2"),url(/_next/static/media/inter-all-500-normal.56c3d87b.woff) format("woff");unicode-range:u+0370-03ff}@font-face{font-family:Inter;font-style:normal;font-display:swap;font-weight:500;src:url(/_next/static/media/inter-vietnamese-500-normal.7b524ed3.woff2) format("woff2"),url(/_next/static/media/inter-all-500-normal.56c3d87b.woff) format("woff");unicode-range:u+0102-0103,u+0110-0111,u+0128-0129,u+0168-0169,u+01a0-01a1,u+01af-01b0,u+1ea0-1ef9,u+20ab}@font-face{font-family:Inter;font-style:normal;font-display:swap;font-weight:500;src:url(/_next/static/media/inter-latin-ext-500-normal.47503116.woff2) format("woff2"),url(/_next/static/media/inter-all-500-normal.56c3d87b.woff) format("woff");unicode-range:u+0100-024f,u+0259,u+1e??,u+2020,u+20a0-20ab,u+20ad-20cf,u+2113,u+2c60-2c7f,u+a720-a7ff}@font-face{font-family:Inter;font-style:normal;font-display:swap;font-weight:500;src:url(/_next/static/media/inter-latin-500-normal.b7be75b9.woff2) format("woff2"),url(/_next/static/media/inter-all-500-normal.56c3d87b.woff) format("woff");unicode-range:u+00??,u+0131,u+0152-0153,u+02bb-02bc,u+02c6,u+02da,u+02dc,u+2000-206f,u+2074,u+20ac,u+2122,u+2191,u+2193,u+2212,u+2215,u+feff,u+fffd}@font-face{font-family:Inter;font-style:normal;font-display:swap;font-weight:600;src:url(/_next/static/media/inter-cyrillic-ext-600-normal.4eb7a897.woff2) format("woff2"),url(/_next/static/media/inter-all-600-normal.d9666969.woff) format("woff");unicode-range:u+0460-052f,u+1c80-1c88,u+20b4,u+2de0-2dff,u+a640-a69f,u+fe2e-fe2f}@font-face{font-family:Inter;font-style:normal;font-display:swap;font-weight:600;src:url(/_next/static/media/inter-cyrillic-600-normal.9f2082d5.woff2) format("woff2"),url(/_next/static/media/inter-all-600-normal.d9666969.woff) format("woff");unicode-range:u+0301,u+0400-045f,u+0490-0491,u+04b0-04b1,u+2116}@font-face{font-family:Inter;font-style:normal;font-display:swap;font-weight:600;src:url(/_next/static/media/inter-greek-ext-600-normal.04ef07b9.woff2) format("woff2"),url(/_next/static/media/inter-all-600-normal.d9666969.woff) format("woff");unicode-range:u+1f??}@font-face{font-family:Inter;font-style:normal;font-display:swap;font-weight:600;src:url(/_next/static/media/inter-greek-600-normal.eff3b663.woff2) format("woff2"),url(/_next/static/media/inter-all-600-normal.d9666969.woff) format("woff");unicode-range:u+0370-03ff}@font-face{font-family:Inter;font-style:normal;font-display:swap;font-weight:600;src:url(/_next/static/media/inter-vietnamese-600-normal.eb82de1d.woff2) format("woff2"),url(/_next/static/media/inter-all-600-normal.d9666969.woff) format("woff");unicode-range:u+0102-0103,u+0110-0111,u+0128-0129,u+0168-0169,u+01a0-01a1,u+01af-01b0,u+1ea0-1ef9,u+20ab}@font-face{font-family:Inter;font-style:normal;font-display:swap;font-weight:600;src:url(/_next/static/media/inter-latin-ext-600-normal.0a04c3cd.woff2) format("woff2"),url(/_next/static/media/inter-all-600-normal.d9666969.woff) format("woff");unicode-range:u+0100-024f,u+0259,u+1e??,u+2020,u+20a0-20ab,u+20ad-20cf,u+2113,u+2c60-2c7f,u+a720-a7ff}@font-face{font-family:Inter;font-style:normal;font-display:swap;font-weight:600;src:url(/_next/static/media/inter-latin-600-normal.a3e93aa0.woff2) format("woff2"),url(/_next/static/media/inter-all-600-normal.d9666969.woff) format("woff");unicode-range:u+00??,u+0131,u+0152-0153,u+02bb-02bc,u+02c6,u+02da,u+02dc,u+2000-206f,u+2074,u+20ac,u+2122,u+2191,u+2193,u+2212,u+2215,u+feff,u+fffd}@font-face{font-family:Inter;font-style:normal;font-display:swap;font-weight:700;src:url(/_next/static/media/inter-cyrillic-ext-700-normal.7c668daa.woff2) format("woff2"),url(/_next/static/media/inter-all-700-normal.f3163a49.woff) format("woff");unicode-range:u+0460-052f,u+1c80-1c88,u+20b4,u+2de0-2dff,u+a640-a69f,u+fe2e-fe2f}@font-face{font-family:Inter;font-style:normal;font-display:swap;font-weight:700;src:url(/_next/static/media/inter-cyrillic-700-normal.8b03fbd1.woff2) format("woff2"),url(/_next/static/media/inter-all-700-normal.f3163a49.woff) format("woff");unicode-range:u+0301,u+0400-045f,u+0490-0491,u+04b0-04b1,u+2116}@font-face{font-family:Inter;font-style:normal;font-display:swap;font-weight:700;src:url(/_next/static/media/inter-greek-ext-700-normal.5fb4f9ba.woff2) format("woff2"),url(/_next/static/media/inter-all-700-normal.f3163a49.woff) format("woff");unicode-range:u+1f??}@font-face{font-family:Inter;font-style:normal;font-display:swap;font-weight:700;src:url(/_next/static/media/inter-greek-700-normal.54b722f0.woff2) format("woff2"),url(/_next/static/media/inter-all-700-normal.f3163a49.woff) format("woff");unicode-range:u+0370-03ff}@font-face{font-family:Inter;font-style:normal;font-display:swap;font-weight:700;src:url(/_next/static/media/inter-vietnamese-700-normal.00e401a9.woff2) format("woff2"),url(/_next/static/media/inter-all-700-normal.f3163a49.woff) format("woff");unicode-range:u+0102-0103,u+0110-0111,u+0128-0129,u+0168-0169,u+01a0-01a1,u+01af-01b0,u+1ea0-1ef9,u+20ab}@font-face{font-family:Inter;font-style:normal;font-display:swap;font-weight:700;src:url(/_next/static/media/inter-latin-ext-700-normal.07491ea2.woff2) format("woff2"),url(/_next/static/media/inter-all-700-normal.f3163a49.woff) format("woff");unicode-range:u+0100-024f,u+0259,u+1e??,u+2020,u+20a0-20ab,u+20ad-20cf,u+2113,u+2c60-2c7f,u+a720-a7ff}@font-face{font-family:Inter;font-style:normal;font-display:swap;font-weight:700;src:url(/_next/static/media/inter-latin-700-normal.7ddf3c11.woff2) format("woff2"),url(/_next/static/media/inter-all-700-normal.f3163a49.woff) format("woff");unicode-range:u+00??,u+0131,u+0152-0153,u+02bb-02bc,u+02c6,u+02da,u+02dc,u+2000-206f,u+2074,u+20ac,u+2122,u+2191,u+2193,u+2212,u+2215,u+feff,u+fffd}.visible{visibility:visible}.invisible{visibility:hidden}.collapse{visibility:collapse}.static{position:static}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.sticky{position:sticky}.left-2{left:.5rem}.right-2{right:.5rem}.top-2{top:.5rem}.z-\[1\]{z-index:1}.z-\[2\]{z-index:2}.m-1{margin:.25rem}.my-2{margin-top:.5rem;margin-bottom:.5rem}.my-4{margin-top:1rem;margin-bottom:1rem}.\!mb-0{margin-bottom:0!important}.\!mt-0{margin-top:0!important}.-mt-px{margin-top:-1px}.mb-0{margin-bottom:0}.mb-1{margin-bottom:.25rem}.mb-2{margin-bottom:.5rem}.mb-3{margin-bottom:.75rem}.mb-4{margin-bottom:1rem}.mb-5{margin-bottom:1.25rem}.mb-6{margin-bottom:1.5rem}.mb-px{margin-bottom:1px}.ml-1{margin-left:.25rem}.ml-2{margin-left:.5rem}.ml-3{margin-left:.75rem}.ml-4{margin-left:1rem}.mr-0{margin-right:0}.mr-1{margin-right:.25rem}.mr-2{margin-right:.5rem}.mr-3{margin-right:.75rem}.mr-\[10px\]{margin-right:10px}.mt-0{margin-top:0}.mt-2{margin-top:.5rem}.mt-3{margin-top:.75rem}.mt-4{margin-top:1rem}.mt-5{margin-top:1.25rem}.mt-6{margin-top:1.5rem}.mt-\[7\.25px\]{margin-top:7.25px}.block{display:block}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.table{display:table}.grid{display:grid}.contents{display:contents}.hidden{display:none}.size-2{width:.5rem;height:.5rem}.size-3{width:.75rem;height:.75rem}.size-4{width:1rem;height:1rem}.size-full{width:100%;height:100%}.h-4{height:1rem}.h-80{height:20rem}.h-9{height:2.25rem}.h-\[150px\]{height:150px}.h-auto{height:auto}.h-full{height:100%}.max-h-96{max-height:24rem}.\!w-auto{width:auto!important}.w-1\/2{width:50%}.w-1\/3{width:33.333333%}.w-1\/5{width:20%}.w-32{width:8rem}.w-4\/5{width:80%}.w-48{width:12rem}.w-6{width:1.5rem}.w-60{width:15rem}.w-64{width:16rem}.w-80{width:20rem}.w-96{width:24rem}.w-\[350px\]{width:350px}.w-auto{width:auto}.w-fit{width:-moz-fit-content;width:fit-content}.w-full{width:100%}.min-w-0{min-width:0}.min-w-\[300px\]{min-width:300px}.min-w-\[350px\]{min-width:350px}.\!max-w-\[200px\]{max-width:200px!important}.\!max-w-\[210px\]{max-width:210px!important}.\!max-w-\[300px\]{max-width:300px!important}.max-w-4{max-width:1rem}.max-w-40{max-width:10rem}.max-w-\[250px\]{max-width:250px}.max-w-\[70\%\]{max-width:70%}.max-w-sm{max-width:24rem}.flex-1{flex:1 1 0%}.shrink{flex-shrink:1}.shrink-0{flex-shrink:0}.grow{flex-grow:1}.grow-0{flex-grow:0}.basis-1\/2{flex-basis:50%}.basis-1\/3{flex-basis:33.333333%}.rotate-180{--tw-rotate:180deg}.rotate-180,.rotate-90{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.rotate-90{--tw-rotate:90deg}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.cursor-pointer{cursor:pointer}.select-all{-webkit-user-select:all;-moz-user-select:all;user-select:all}.\!resize-none{resize:none!important}.resize{resize:both}.\!list-none{list-style-type:none!important}.list-disc{list-style-type:disc}.grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.flex-row{flex-direction:row}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.flex-nowrap{flex-wrap:nowrap}.items-center{align-items:center}.justify-start{justify-content:flex-start}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-0{gap:0}.gap-1{gap:.25rem}.gap-1\.5{gap:.375rem}.gap-2{gap:.5rem}.gap-3{gap:.75rem}.gap-4{gap:1rem}.gap-6{gap:1.5rem}.gap-8{gap:2rem}.space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-top:calc(.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.5rem * var(--tw-space-y-reverse))}.space-y-3>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-top:calc(.75rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.75rem * var(--tw-space-y-reverse))}.space-y-4>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-top:calc(1rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1rem * var(--tw-space-y-reverse))}.space-y-6>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-top:calc(1.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1.5rem * var(--tw-space-y-reverse))}.self-start{align-self:flex-start}.self-end{align-self:flex-end}.self-center{align-self:center}.overflow-auto{overflow:auto}.overflow-scroll{overflow:scroll}.overflow-x-auto{overflow-x:auto}.overflow-y-auto{overflow-y:auto}.overflow-y-hidden{overflow-y:hidden}.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.whitespace-normal{white-space:normal}.whitespace-nowrap{white-space:nowrap}.whitespace-pre-wrap{white-space:pre-wrap}.text-wrap{text-wrap:wrap}.break-all{word-break:break-all}.rounded{border-radius:.25rem}.rounded-full{border-radius:9999px}.rounded-md{border-radius:.375rem}.border{border-width:1px}.border-t{border-top-width:1px}.\!border-none{border-style:none!important}.border-none{border-style:none}.border-\[\#DEE5EE\]{--tw-border-opacity:1;border-color:rgb(222 229 238/var(--tw-border-opacity,1))}.\!bg-transparent{background-color:transparent!important}.bg-transparent{background-color:transparent}.bg-white{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity,1))}.p-0{padding:0}.p-2{padding:.5rem}.p-3{padding:.75rem}.p-4{padding:1rem}.p-6{padding:1.5rem}.px-1{padding-left:.25rem;padding-right:.25rem}.px-10{padding-left:2.5rem;padding-right:2.5rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-4{padding-left:1rem;padding-right:1rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.py-10{padding-top:2.5rem;padding-bottom:2.5rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-4{padding-top:1rem;padding-bottom:1rem}.py-6{padding-top:1.5rem;padding-bottom:1.5rem}.py-8{padding-top:2rem;padding-bottom:2rem}.pb-4{padding-bottom:1rem}.pb-5{padding-bottom:1.25rem}.pb-6{padding-bottom:1.5rem}.pl-0\.5{padding-left:.125rem}.pl-2\.5{padding-left:.625rem}.pl-4{padding-left:1rem}.pr-2{padding-right:.5rem}.pt-3{padding-top:.75rem}.pt-4{padding-top:1rem}.pt-6{padding-top:1.5rem}.pt-\[5px\]{padding-top:5px}.text-left{text-align:left}.text-center{text-align:center}.align-top{vertical-align:top}.align-middle{vertical-align:middle}.align-text-bottom{vertical-align:text-bottom}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xs{font-size:.75rem;line-height:1rem}.font-medium{font-weight:500}.font-normal{font-weight:400}.font-semibold{font-weight:600}.uppercase{text-transform:uppercase}.lowercase{text-transform:lowercase}.capitalize{text-transform:capitalize}.italic{font-style:italic}.tabular-nums{--tw-numeric-spacing:tabular-nums;font-variant-numeric:var(--tw-ordinal) var(--tw-slashed-zero) var(--tw-numeric-figure) var(--tw-numeric-spacing) var(--tw-numeric-fraction)}.text-black{--tw-text-opacity:1;color:rgb(0 0 0/var(--tw-text-opacity,1))}.text-gray-500{--tw-text-opacity:1;color:rgb(107 114 128/var(--tw-text-opacity,1))}.text-gray-600{--tw-text-opacity:1;color:rgb(75 85 99/var(--tw-text-opacity,1))}.text-gray-700{--tw-text-opacity:1;color:rgb(55 65 81/var(--tw-text-opacity,1))}.text-inherit{color:inherit}.text-transparent{color:transparent}.underline{text-decoration-line:underline}.shadow{--tw-shadow:0 1px 3px 0 rgba(0,0,0,.1),0 1px 2px -1px rgba(0,0,0,.1);--tw-shadow-colored:0 1px 3px 0 var(--tw-shadow-color),0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.outline{outline-style:solid}.blur{--tw-blur:blur(8px)}.blur,.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.duration-300{transition-duration:.3s}.ease-in{transition-timing-function:cubic-bezier(.4,0,1,1)}.hover\:\!bg-gray-700:hover{--tw-bg-opacity:1!important;background-color:rgb(55 65 81/var(--tw-bg-opacity,1))!important}.hover\:bg-transparent:hover{background-color:transparent}.focus\:\!bg-gray-700:focus{--tw-bg-opacity:1!important;background-color:rgb(55 65 81/var(--tw-bg-opacity,1))!important}.active\:bg-transparent:active{background-color:transparent}.group:hover .group-hover\:visible{visibility:visible}@media (min-width:1536px){.\32xl\:w-\[432px\]{width:432px}}:export{FIDESUI_FULL_BLACK:#000;FIDESUI_FULL_WHITE:#fff;FIDESUI_BG_WHITE:#fff;FIDESUI_NEUTRAL_50:#fafafa;FIDESUI_NEUTRAL_75:#f5f5f5;FIDESUI_NEUTRAL_100:#e6e6e8;FIDESUI_NEUTRAL_200:#d1d2d4;FIDESUI_NEUTRAL_300:#bcbec1;FIDESUI_NEUTRAL_400:#a8aaad;FIDESUI_NEUTRAL_500:#93969a;FIDESUI_NEUTRAL_600:#7e8185;FIDESUI_NEUTRAL_700:#696c71;FIDESUI_NEUTRAL_800:#53575c;FIDESUI_NEUTRAL_900:#2b2e35;FIDESUI_BG_DEFAULT:#f5f5f5;FIDESUI_CORINTH:#fafafa;FIDESUI_BG_CORINTH:#fafafa;FIDESUI_LIMESTONE:#f1efee;FIDESUI_MINOS:#2b2e35;FIDESUI_BG_MINOS:#4f525b;FIDESUI_TERRACOTTA:#b9704b;FIDESUI_BG_TERRACOTTA:#f1b193;FIDESUI_OLIVE:#999b83;FIDESUI_BG_OLIVE:#d4d5c8;FIDESUI_MARBLE:#cdd2d3;FIDESUI_BG_MARBLE:#e1e5e6;FIDESUI_SANDSTONE:#cecac2;FIDESUI_BG_SANDSTONE:#e3e0d9;FIDESUI_NECTAR:#f0ebc1;FIDESUI_BG_NECTAR:#f5f2d7;FIDESUI_ERROR:#d9534f;FIDESUI_BG_ERROR:#f7c2c2;FIDESUI_WARNING:#e59d47;FIDESUI_BG_WARNING:#fbddb5;FIDESUI_BG_CAUTION:#f6e3a4;FIDESUI_SUCCESS:#5a9a68;FIDESUI_BG_SUCCESS:#c3e6b2;FIDESUI_INFO:#4a90e2;FIDESUI_BG_INFO:#a5d6f3;FIDESUI_ALERT:#7b4ea9;FIDESUI_BG_ALERT:#d9b0d7;FIDESUI_ERROR_TEXT:#d32f2f;FIDESUI_SUCCESS_TEXT:#388e3c;FIDESUI_LINK:#2272ce}h1,h2,h3,h4,h5,h6{font-weight:700}:root{--fidesui-full-black:#000;--fidesui-full-white:#fff;--fidesui-bg-white:#fff;--fidesui-neutral-50:#fafafa;--fidesui-neutral-75:#f5f5f5;--fidesui-neutral-100:#e6e6e8;--fidesui-neutral-200:#d1d2d4;--fidesui-neutral-300:#bcbec1;--fidesui-neutral-400:#a8aaad;--fidesui-neutral-500:#93969a;--fidesui-neutral-600:#7e8185;--fidesui-neutral-700:#696c71;--fidesui-neutral-800:#53575c;--fidesui-neutral-900:#2b2e35;--fidesui-bg-default:#f5f5f5;--fidesui-corinth:#fafafa;--fidesui-bg-corinth:#fafafa;--fidesui-limestone:#f1efee;--fidesui-minos:#2b2e35;--fidesui-bg-minos:#4f525b;--fidesui-terracotta:#b9704b;--fidesui-bg-terracotta:#f1b193;--fidesui-olive:#999b83;--fidesui-bg-olive:#d4d5c8;--fidesui-marble:#cdd2d3;--fidesui-bg-marble:#e1e5e6;--fidesui-sandstone:#cecac2;--fidesui-bg-sandstone:#e3e0d9;--fidesui-nectar:#f0ebc1;--fidesui-bg-nectar:#f5f2d7;--fidesui-error:#d9534f;--fidesui-bg-error:#f7c2c2;--fidesui-warning:#e59d47;--fidesui-bg-warning:#fbddb5;--fidesui-bg-caution:#f6e3a4;--fidesui-success:#5a9a68;--fidesui-bg-success:#c3e6b2;--fidesui-info:#4a90e2;--fidesui-bg-info:#a5d6f3;--fidesui-alert:#7b4ea9;--fidesui-bg-alert:#d9b0d7;--fidesui-error-text:#d32f2f;--fidesui-success-text:#388e3c;--fidesui-link:#2272ce}:focus-visible{outline-color:var(--fidesui-minos)}.ant-input-compact-item.ant-input-css-var{--ant-color-border:var(--fidesui-neutral-200);--ant-input-hover-border-color:var(--fidesui-neutral-200)}.ant-btn-compact-item.ant-btn-variant-outlined{--ant-button-default-border-color:var(--fidesui-neutral-200);--ant-button-default-hover-border-color:var(--fidesui-neutral-200);--ant-button-default-hover-bg:var(--fidesui-neutral-200);--ant-button-default-bg:var(--fidesui-neutral-50)}.ant-btn-icon{line-height:1}.ant-form-item-label{font-weight:600}.ant-menu-dark .ant-menu-sub>.ant-menu-item>.ant-menu-title-content a{color:var(--fidesui-neutral-200)}.ant-menu-dark .ant-menu-sub>.ant-menu-item>.ant-menu-title-content a:focus-visible{text-decoration:underline}.ant-menu-dark .ant-menu-sub>.ant-menu-item:focus-within:not(.ant-menu-item-selected){background-color:var(--fidesui-neutral-800)}.ant-menu-dark .ant-menu-sub>.ant-menu-item:hover{--ant-menu-dark-item-hover-bg:var(--fidesui-neutral-800)}.ant-menu-dark .ant-menu-sub>.ant-menu-item.ant-menu-item-selected>.ant-menu-title-content a{color:var(--fidesui-minos)}.ant-menu .ant-menu-submenu-arrow{--ant-border-radius:0px}.ant-menu .ant-menu-submenu-arrow:after,.ant-menu .ant-menu-submenu-arrow:before{width:calc(var(--ant-font-size)/7*5*.65)}.ant-input:-moz-read-only{--ant-color-text:var(--fidesui-neutral-700);--ant-color-bg-container:var(--fidesui-neutral-50);--ant-input-hover-bg:var(--fidesui-neutral-50);--ant-input-active-bg:var(--fidesui-neutral-50);--ant-input-active-border-color:var(--ant-color-border);--ant-input-hover-border-color:var(--ant-color-border);--ant-input-active-shadow:none;--ant-input-hove-shadow:none}.ant-input:read-only{--ant-color-text:var(--fidesui-neutral-700);--ant-color-bg-container:var(--fidesui-neutral-50);--ant-input-hover-bg:var(--fidesui-neutral-50);--ant-input-active-bg:var(--fidesui-neutral-50);--ant-input-active-border-color:var(--ant-color-border);--ant-input-hover-border-color:var(--ant-color-border);--ant-input-active-shadow:none;--ant-input-hove-shadow:none}.ant-steps-item-title{font-weight:500}.ant-table-filter-trigger.active{background-color:var(--fidesui-neutral-100)}.ant-table-cell *{--ant-font-size:var(--ant-table-cell-font-size-sm)}.ant-list :focus-visible{outline:auto}.ant-list .ant-list-item .ant-list-item-meta .ant-list-item-meta-title>a:focus-visible,.ant-list .ant-list-item .ant-list-item-meta .ant-list-item-meta-title>a:hover,.ant-list .ant-list-item-meta-title a:focus-visible,.ant-list .ant-list-item-meta-title a:hover{color:var(--fidesui-neutral-600)}.CustomTypography_paragraph__c2AID.ant-typography{margin-bottom:0}.CustomTypography_paragraph__c2AID.ant-typography:not(:last-child){margin-bottom:1em}.CustomTypography_sm__pWu1p{font-size:var(--ant-font-size-sm)!important}.CustomTypography_default__ZT1tF{font-size:var(--ant-font-size)!important}.CustomTypography_lg__dP6f4{font-size:var(--ant-font-size-lg)!important}.CustomTypography_h1__HnHaB{font-size:var(--ant-font-size-heading-1)!important}.CustomTypography_h2__D50up{font-size:var(--ant-font-size-heading-2)!important}.CustomTypography_h3__gBiAY{font-size:var(--ant-font-size-heading-3)!important}.CustomTypography_h4__r1NNB{font-size:var(--ant-font-size-heading-4)!important}.CustomTypography_h5__TUNTk{font-size:var(--ant-font-size-heading-5)!important}.CustomTag_tag__4q0OL{display:inline-flex;align-items:center;gap:calc(var(--ant-margin-xs)*.75);line-height:calc(var(--ant-line-height-sm)*var(--ant-font-size-sm) - 2px);min-height:calc(var(--ant-line-height-sm)*var(--ant-font-size-sm));--ant-padding-xxs:0}.CustomTag_tag__4q0OL svg:not([data-icon]){width:10px;height:10px}.CustomTag_tag__4q0OL .ant-tag-close-icon svg{width:12px;height:12px}.CustomTag_buttonTag__IYAPu{border-radius:var(--ant-border-radius-sm)}.CustomTag_buttonTag__IYAPu:focus .ant-tag,.CustomTag_buttonTag__IYAPu:hover .ant-tag{background:#fafafa!important}.CustomTag_buttonTag__IYAPu:focus-visible{outline:none}.CustomTag_buttonTag__IYAPu:focus-visible .ant-tag{border:1px solid #2b2e35}.CustomTag_closeButton__Un_6X{border-radius:var(--ant-border-radius-xs)}.CustomTag_closeButton__Un_6X:focus-visible{outline:1px solid #2b2e35;outline-offset:2px}.CustomTooltip_tooltipChild__uzOBp{--custom-tooltip-outline-width:1px}.CustomTooltip_tooltipChild__uzOBp:focus-visible{outline:var(--custom-tooltip-outline-width) dashed #2b2e35;outline-offset:1px;transition:outline-offset 0s,outline 0s}.FloatingMenu_menu__msgMt{--ant-menu-item-height:36px!important;--ant-menu-item-margin-inline:8px!important;--ant-menu-item-width:calc(100% - 16px)!important;padding-top:4px;padding-bottom:4px;border-radius:6px;box-shadow:0 4px 6px -2px rgba(0,0,0,.05),0 10px 15px -3px rgba(0,0,0,.1)!important}.SelectInline_selectInlineRoot__sebHb{--ant-padding-sm:0;--ant-padding-xxs:0;--ant-select-multiple-selector-bg-disabled:transparent!important;--ant-select-option-selected-font-weight:400!important}.SelectInline_selectInlineRoot__sebHb .ant-select-selector{cursor:auto!important}.NavMenu_menu__ecOrj{--ant-menu-item-margin-block:0!important;--ant-menu-item-margin-inline:0!important;--ant-menu-item-width:100%!important;--ant-margin:8px}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|