"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1276],{81276:function(e,t,s){s.d(t,{worker:function(){return m}});var a=s(45698);let i=[{fides_key:"low",name:"Low",description:"Low sensitivity",parent_key:null,active:!0,is_default:!1},{fides_key:"medium",name:"Medium",description:"Medium sensitivity",parent_key:null,active:!0,is_default:!1},{fides_key:"high",name:"High",description:"High sensitivity",parent_key:null,active:!0,is_default:!1}],n=[{fides_key:"sensitivity",name:"Sensitivity"}],o="mock_sensitivity_taxonomy",r=!!window.localStorage,l=()=>{if(r)try{let e=window.localStorage.getItem(o);if(e)return JSON.parse(e)}catch(e){}return[...i]},c=e=>{if(r)try{window.localStorage.setItem(o,JSON.stringify(e))}catch(e){}},_=l(),d={connection_type:s(60240).Rj.OKTA,secrets:null,saas_config:null,name:"Okta Identity Provider",key:"okta_identity_provider",last_monitored:"2025-11-21T15:30:00.000000Z",updates:{unlabeled:0,in_review:15,classifying:0,removals:0,approved:5,classified_low_confidence:null,classified_high_confidence:null},total_updates:20,consent_status:null,connection_name:"Okta Production",has_failed_tasks:!1},u={urn:"urn:okta:app:12345678-1234-1234-1234-123456789012",name:"Salesforce",description:"Customer relationship management platform",resource_type:"okta_app",diff_status:"addition",updated_at:"2024-01-15T10:30:00Z",monitor_config_id:"okta_monitor_001",system:"Okta Identity Provider",metadata:{app_type:"SAML_2_0",status:"ACTIVE",created:"2023-06-15T09:00:00Z",sign_on_url:"https://company.okta.com/app/salesforce/sso/saml",vendor_match_confidence:"medium",vendor_logo_url:"https://logo.clearbit.com/salesforce.com"},vendor_id:"fds.1234",system_id:"okta_system_001"},p=[...function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:i,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"sensitivity";c(_=[...r?l():e]);let s="/api/v1";return[a.rest.get("".concat(s,"/taxonomies"),(e,t,s)=>t(s.status(200),s.json(n))),a.rest.get("".concat(s,"/taxonomies/").concat(t),(e,t,s)=>{let a=(e=>{let t=[],s=[...e],a=s.filter(e=>null===e.parent_key);for(a.sort((e,t)=>e.fides_key.localeCompare(t.fides_key)),t.push(...a),s.splice(0,s.length,...s.filter(e=>null!==e.parent_key));s.length>0;){let e=[];for(let a=s.length-1;a>=0;a-=1){let i=s[a];t.some(e=>e.fides_key===i.parent_key)&&(e.push(i),s.splice(a,1))}if(0===e.length){t.push(...s);break}e.sort((e,t)=>e.fides_key.localeCompare(t.fides_key)),t.push(...e)}return t})(_);return t(s.status(200),s.json(a))}),a.rest.post("".concat(s,"/taxonomies/").concat(t),async(e,t,s)=>{let a=await e.json(),i=a.fides_key||(a.name&&a.name.trim()?a.name.toLowerCase().replace(/&/g,"and").replace(/'/g,"").replace(/[^a-z0-9]/g,"_").replace(/_+/g,"_").replace(/^_|_$/g,""):"new_item_".concat(Date.now())),n=!a.parent_key||_.some(e=>e.fides_key===a.parent_key),o={fides_key:i,name:a.name||null,description:a.description||null,parent_key:n&&a.parent_key||null,active:void 0===a.active||a.active,is_default:void 0!==a.is_default&&a.is_default};return _.push(o),c(_),t(s.status(201),s.json(o))}),a.rest.put("".concat(s,"/taxonomies/").concat(t),async(e,t,s)=>{let a=await e.json(),i=_.findIndex(e=>e.fides_key===a.fides_key);return -1!==i&&(_[i]=a,c(_)),t(s.status(200),s.json(a))}),a.rest.delete("".concat(s,"/taxonomies/").concat(t,"/:fides_key"),(e,t,s)=>{let{fides_key:a}=e.params;return c(_=_.filter(e=>e.fides_key!==a)),t(s.status(204))})]}(),...(()=>{let e="/api/v1";return[a.rest.get("".concat(e,"/plus/discovery-monitor/aggregate-results"),(e,t,s)=>t(s.status(200),s.json({items:[d],total:1,page:1,size:25,pages:1}))),a.rest.get("".concat(e,"/plus/discovery-monitor/system-aggregate-results"),(e,t,s)=>t(s.status(200),s.json({items:[u],total:10,page:1,size:25,pages:1})))]})()],m=(0,a.setupWorker)(...p)}}]);