- License
- limit exceeded",level:"warning"},TXt={message:"User license limit exceeded",level:"warning"},RXt={message:"Swimlane installation process incomplete",level:"warning",ignore:!0},wXt={message:"Cannot connect to Active Directory server",level:"danger"},IXt={message:"Unable to retrieve value",level:"danger"},PXt={message:"Unable to connect to MongoDB",level:"warning"},_Xt={message:"Unable to connect to SMTP server",level:"warning"},SXt={message:"Swimlane has already been configured",level:"danger"},CXt={message:"Invalid data sent to server",level:"danger"},DXt={message:"Update currently in process",level:"danger"},kXt={message:"Value not provided for required field",level:"danger"},EXt={message:"Unable to retrieve encryption key",level:"danger"},jXt={message:"Path not found",level:"danger"},WXt={message:"Wrong type",level:"danger"},NXt={message:"Invalid data sent to the server",level:"danger"},$Xt={message:"Database error",level:"danger"},LXt={message:"Network error",level:"danger"},BXt={message:"Invalid operation on server operating system",level:"danger"},FXt={message:"Deserialization error",level:"danger"},HXt={message:"Missing parameter",level:"danger"},UXt={message:"Invalid data sent to the server",level:"danger"},VXt={message:"Invalid auto refresh milliseconds value",level:"danger"},GXt={message:"Invalid session timeout value",level:"danger"},XXt={message:"Connection must be configured before fetching mappings",level:"warning"},JXt={message:"A regex expression must be defined for Regex Parser types",level:"warning"},YXt={message:"Asset was not found",level:"warning"},KXt={message:"Unable to query threat intel. Please check your configuration",level:"danger"},QXt={message:"Task name must be unique",level:"danger"},ZXt={message:"Task not found",level:"danger"},eJt={message:"Task has plugin with deprecated Python version",level:"danger"},tJt={message:"Complete the Python migration to update this task",level:"danger"},nJt={message:"Package has already been installed",level:"danger"},rJt={message:"Package not found",level:"danger"},iJt={message:"Package install error",level:"danger"},oJt={message:"User token already exists",level:"warning"},sJt={message:"User token not found",level:"warning",ignore:!0},aJt={message:"User has already enrolled in 2FA",level:"danger",ignore:!0},pJt={message:"User is not enrolled in 2FA",level:"danger"},cJt={message:"The 2FA code you entered could not be verified",level:"danger"},lJt={message:"You have entered a duplicate 2FA code",level:"danger"},dJt={message:"2FA must be enforced in order to exempt a user",level:"danger"},uJt={message:"SAML is not enabled",level:"danger"},fJt={message:"You are not recognized as a Swimlane user",level:"danger"},hJt={message:"An internal error occurred related to SAML. See logs for additional details",level:"danger"},mJt={message:"You are not validated to log in with SAML",level:"danger"},bJt={message:"SAML authentication failed due to validation issues",level:"danger"},gJt={message:"Another user is editing this workflow. It is not accessible to you",level:"danger"},yJt={message:"Once a feature has been enabled it cannot be disabled",level:"danger"},MJt={message:"Duplicate asset name",level:"danger"},OJt={message:"Invalid ingestion rule",level:"danger"},AJt={message:"Duplicate ingestion rule name",level:"danger"},zJt={message:"Orchestration task is disabled",level:"danger"},vJt={message:"Playbook not found",level:"danger"},xJt={message:"Swimlane is unable to schedule the trigger(s). Consult Swimlane System Settings, Logging for details.",level:"danger"},qJt={message:"Swimlane is unable to process the report. Consult Swimlane System Settings, Logging for details.",level:"danger"},TJt={message:"The playbook name already exists.",level:"error"},RJt={message:"The component name already exists.",level:"error"},wJt={message:"Comment message Image can have only JPG, PNG and GIF.",level:"danger"},IJt={message:"Unable to find an account associated with your SSO login. Please ensure you are using the correct information or contact your system administrator for assistance.",level:"danger"},rhe={"1000":XGt,"1001":JGt,"1002":YGt,"1003":KGt,"1004":QGt,"1005":ZGt,"1006":eXt,"1007":tXt,"1008":nXt,"1051":rXt,"1052":iXt,"1061":oXt,"2000":sXt,"2001":aXt,"2002":pXt,"2003":cXt,"2004":lXt,"2005":dXt,"2006":uXt,"2007":fXt,"2008":hXt,"2011":mXt,"3000":bXt,"3001":gXt,"3002":yXt,"3003":MXt,"3006":OXt,"3009":AXt,"3017":zXt,"4000":vXt,"4001":xXt,"5000":qXt,"5001":TXt,"5002":RXt,"5003":wXt,"5004":IXt,"5005":PXt,"5006":_Xt,"5007":SXt,"5008":CXt,"5009":DXt,"5010":kXt,"5011":EXt,"5012":jXt,"5013":WXt,"5014":NXt,"5015":$Xt,"5016":LXt,"5017":BXt,"5018":FXt,"5019":HXt,"5020":UXt,"5021":VXt,"5022":GXt,"6000":XXt,"7000":JXt,"7001":YXt,"9000":KXt,"10000":QXt,"10001":ZXt,"10002":eJt,"10003":tJt,"11000":nJt,"11001":rJt,"11002":iJt,"12000":oJt,"12001":sJt,"13000":aJt,"13001":pJt,"13002":cJt,"13003":lJt,"13004":dJt,"14000":uJt,"14001":fJt,"14402":hJt,"14403":mJt,"14404":bJt,"15000":gJt,"16001":yJt,"17001":MJt,"18001":OJt,"18002":AJt,"18004":zJt,"18007":vJt,"19001":xJt,"20002":qJt,"25006":TJt,"25007":RJt,"3011":wJt,notFound:IJt};function PJt(e,n=0,r=!1){let t,i,o,s,a;return function(){o=this,i=arguments,s=+new Date;let c=function(){let b=+new Date-s;b<n?t=setTimeout(c,n-b):(t=null,r||(a=e.apply(o,i)))},d=r&&!t;return t||(t=setTimeout(c,n)),d&&(a=e.apply(o,i)),a}}function fFe(e,n=!1){return function(t,i,o){return{configurable:!0,enumerable:o.enumerable,get:function(){return Object.defineProperty(this,i,{configurable:!0,enumerable:o.enumerable,value:PJt(o.value,e,n)}),this[i]}}}}function ihe(e,n,r={}){let t,i,o,s=null,a=0;r||(r={});let c=function(){a=r.leading===!1?0:new Date,s=null,o=e.apply(t,i)};return function(){let d=new Date;!a&&r.leading===!1&&(a=d);let b=+n-(+d-+a);return t=this,i=arguments,b<=0?(clearTimeout(s),s=null,a=d,o=e.apply(t,i)):!s&&r.trailing!==!1&&(s=setTimeout(c,b)),o}}function XMi(e,n){return function(t,i,o){return{configurable:!0,enumerable:o.enumerable,get:function(){return Object.defineProperty(this,i,{configurable:!0,enumerable:o.enumerable,value:ihe(o.value,e,n)}),this[i]}}}}ve();var y0=new H1(()=>!1),fy=class fy{constructor(n,r,t){this.notificationService=n,this.location=r,this.injector=t,this.TIMEOUT=5e3}intercept(n,r){return r.handle(n).pipe(lo(t=>{},t=>{if(t instanceof z2){if((this.location.path()===""||this.location.path()==="/install-status"||this.location.path()==="/login"||this.location.path()==="/logout"||this.location.path().includes("/set-password"))&&t.url.includes("authorize")&&t.status===401||t.url.includes("authorization")||t.status===404||t.url.includes("login")&&t.status===401||n.headers.has(uFe)||n.context.get(y0))return;if(t.error){let i=t.error;if(typeof i=="string")try{i=JSON.parse(i)}catch{}if(n.responseType==="arraybuffer")try{let o=String.fromCharCode.apply(null,new Uint8Array(i));i=JSON.parse(o)}catch{}if(i.InvalidUserName)return;if(i.ErrorCode){let o=rhe[i.ErrorCode];if(o){if(o.ignore)return;let s=db(o.argument)?i.Argument:o.argument,a=s||o.message||void 0,c=s?o.message:void 0;this.notificationService.create({title:c,body:a,styleType:o.level==="danger"?L0.error:L0.warning,timeout:this.TIMEOUT});return}}if(i.errorMesssage){this.notificationService.create({body:i.errorMesssage,styleType:L0.error,timeout:this.TIMEOUT});return}}if(t.status===401){this.verifySession();return}t.status===401&&t.headers.has(vG)||this.notificationService.create({body:"System error occurred",styleType:L0.error,timeout:this.TIMEOUT})}}))}verifySession(){this.securityService||(this.securityService=this.injector.get(Sc)),this.securityService.authorizeUser(null,!0)}};fy.\u0275fac=function(r){return new(r||fy)(L(Kf),L(zc),L(nr))},fy.\u0275prov=Q({token:fy,factory:fy.\u0275fac});var ohe=fy;rv([fFe(500),m1("design:type",Function),m1("design:paramtypes",[]),m1("design:returntype",void 0)],ohe.prototype,"verifySession",null);mr();ve();var hFe=(()=>{let n=class n{constructor(t,i,o,s){this.multiTenantService=t,this.featureFlagService=i,this.genTenantFeatureFlagService=o,this.genSettingsService=s}isOrchestrationAlertsEnabled(t){return this.getOrchestrationAlertsConfiguredFlag(t).pipe(an(i=>typeof i=="boolean"?Qe(i):mi(this.featureFlagService.getFlags(t).then(o=>o.find(s=>s.id===Jr.OperationalHealthDashboard)?.disabled===!1))))}getAlertRecipients(t){return this.isOrchestrationAlertsEnabled(t).pipe(an(i=>i?this.genSettingsService.apiSettingsTenantsTenantIdNotificationRecipientsGet({tenantId:t}).pipe(p(({isNotificationEnabled:o,recipients:s})=>({tenantId:t,isNotificationEnabled:o,recipients:s?.map(a=>Object.fromEntries(Object.entries(a).map(([c,d])=>[c.charAt(0).toLowerCase()+c.slice(1),d])))||[]}))):Qe({recipients:[],isNotificationEnabled:!1})))}saveAlertRecipients(t){return this.genSettingsService.apiSettingsTenantsTenantIdNotificationRecipientsPut({tenantId:t.tenantId,body:t})}getOrchestrationAlertsConfiguredFlag(t){let i=this.multiTenantService.getCurrentAccountId();return(i?this.genTenantFeatureFlagService.apiFeatureFlagAccountIdGet({accountId:i}):this.genTenantFeatureFlagService.apiFeatureFlagGet()).pipe(p(s=>JSON.parse(s)),p(s=>s.filter(a=>a.accountId===i&&a.name===Jr.OperationalHealthDashboard)),p(s=>{let a=s.find(d=>d.tenantId===t)?.enabled;if(a!==void 0)return a;let c=s.find(d=>d.tenantId===null)?.enabled;if(c!==void 0)return c}))}};n.\u0275fac=function(i){return new(i||n)(L(H0),L(Xa),L(ny),L(qw))},n.\u0275prov=Q({token:n,factory:n.\u0275fac,providedIn:"root"});let e=n;return e})();var SJt=function(e){return e.accounts="Accounts",e.applications="Applications",e.applicationRecords="Application Records",e.applets="Applets",e.assets="Assets",e.components="Components",e.connectors="Connectors",e.dashboards="Dashboards",e.groups="Groups",e.playbooksCanvas="Playbooks - New",e.playbooksClassic="Playbooks - Classic",e.reports="Reports",e.roles="Roles",e.tenants="Tenants",e.users="Users",e.webhooks="Webhooks",e.workspaces="Workspaces",e}(SJt||{}),lu=function(e){return e.accountAuditLog="AuditLog",e.accountFeatureFlag="AccountFeatureFlag",e.account="Account",e.accountSetting="AccountSetting",e.adminPanel="AdminPanel",e.alert="Alert",e.applet="Applet",e.applicationRecord="ApplicationRecord",e.application="Application",e.asset="Asset",e.component="Component",e.configurationManager="ConfigurationManager",e.connector="Connector",e.content="ContentLibrary",e.dashboard="Dashboard",e.distributionPortal="DistributionPortal",e.event="Event",e.globalFeatureFlag="GlobalFeatureFlag",e.group="Group",e.homePage="HomePage",e.operationalHealth="OperationalHealth",e.playbookClassic="ClassicPlaybook",e.playbookCanvas="CanvasPlaybook",e.playbookRuns="PlaybookRun",e.product="Product",e.report="Report",e.role="Role",e.tenantAuditLog="AuditLog",e.tenantFeatureFlag="TenantFeatureFlag",e.tenant="Tenant",e.tenantSetting="TenantSetting",e.usage="AccountMetric",e.user="User",e.webhook="Webhook",e.workspace="Workspace",e}(lu||{});ve();var iv=(()=>{let n=class n{constructor(t,i,o,s,a,c,d,b){this.multiTenantService=t,this.featureFlagService=i,this.genSettingsService=o,this.genAccountSettingsService=s,this.genTenantSettingsService=a,this.genFeatureFlagService=c,this.orchestrationAlertsService=d,this.injector=b}get securityService(){return this.injector.get(Sc)}settings(){let t=this.multiTenantService.getCurrentAccountId();return this.featureFlagService.featureOn(Jr.MultiTenant)?t4(this.getSecuritySettings(t),this.getLicenseSettings()).pipe(p(([i,o])=>({securityParameters:i,license:o}))):t4(this.getMailSettings(),this.getSecuritySettings(t),this.getLicenseSettings()).pipe(p(([i,o,s])=>({mailSettings:i,securityParameters:o,license:s})))}getMarketplaceSettings(t){return this.genSettingsService.apiSettingsMarketplaceSettingsGet({attemptFromEnv:t}).pipe(p(i=>JSON.parse(i)))}minPasswordComplexity(t){return this.genAccountSettingsService.apiAccountsAccountIdSettingsPasswordComplexityGet({accountId:t}).pipe(p(i=>JSON.parse(i)))}getMailSettings(){return this.genSettingsService.apiSettingsMailSettingsGet().pipe(p(t=>JSON.parse(t)))}updateMailSettings(t){return this.genSettingsService.apiSettingsMailSettingsPut({body:t}).pipe(p(i=>JSON.parse(i)))}testMailSettings(t){return this.genSettingsService.apiSettingsMailSettingsTestPost({body:t}).pipe(p(i=>JSON.parse(i)))}hasValidMailSettings(){return this.genSettingsService.apiSettingsMailSettingsValidateGet().pipe(p(t=>JSON.parse(t)))}mailTemplateTenantSettings(t){return this.genTenantSettingsService.apiSettingsTenantsTenantIdMailTemplateGet({tenantId:t}).pipe(p(i=>JSON.parse(i)))}getSecuritySettings(t){return this.genAccountSettingsService.apiAccountsAccountIdSettingsSecurityParametersGet({accountId:t}).pipe(p(i=>JSON.parse(i)))}updateSecuritySettings({accountId:t,securitySettings:i}){return this.genAccountSettingsService.apiAccountsAccountIdSettingsSecurityParametersPut({accountId:t,body:i}).pipe(p(o=>JSON.parse(o)))}getLicenseSettings(){let t=new Er().set(y0,!0);return this.genSettingsService.apiSettingsLicenseGet({},t).pipe(p(i=>JSON.parse(i)))}updateLicenseSettings(t){let i=new Er().set(y0,!0);return this.genSettingsService.apiSettingsLicensePut({body:t},i).pipe(p(o=>JSON.parse(o)))}updateMailTemplateTenantSettings(t){return this.genTenantSettingsService.apiSettingsTenantsTenantIdMailTemplatePut({tenantId:t.tenantId,body:t}).pipe(p(i=>JSON.parse(i)))}systemTenantSettings(t){return this.genTenantSettingsService.apiSettingsTenantsTenantIdSystemSettingsGet({tenantId:t}).pipe(p(i=>JSON.parse(i)))}updateSystemTenantSettings(t){return this.genTenantSettingsService.apiSettingsTenantsTenantIdSystemSettingsPut({tenantId:t.tenantId,body:t}).pipe(p(i=>JSON.parse(i)))}getTenantSettings(t){return ma({system:this.systemTenantSettings(t),emailAndPdf:this.mailTemplateTenantSettings(t),editableFeatureList:this.featureFlagService.getFlags(t),configuredFeatureList:this.configuredTenantFeatureFlags(t),systemFeatureList:Promise.resolve(this.featureFlagService.enabledFlags),orchestrationAlerts:this.orchestrationAlertsService.getAlertRecipients(t)})}getSamlSettings(t){return this.genAccountSettingsService.apiAccountsAccountIdSettingsSamlSettingsGet({accountId:t}).pipe(p(i=>JSON.parse(i)))}getAccountSystemSettings(){return ma({swimlaneUrl:this.getSwimlaneUrl()})}getAccountFeatureFlags(t){return ma({editableFeatureList:this.featureFlagService.getFlags(),configuredFeatureList:this.configuredAccountFeatureFlags(t),systemFeatureList:Promise.resolve(this.featureFlagService.enabledFlags)})}adminfeatureflag(){let t=this.multiTenantService.getCurrentAccountId();return(t?this.genFeatureFlagService.apiFeatureFlagAccountIdGet({accountId:t}):this.genFeatureFlagService.apiFeatureFlagGet()).pipe(p(o=>JSON.parse(o)),p(o=>o.filter(s=>s.enabled===!0)))}featureflags(){let t=this.multiTenantService.getCurrentAccountId();return(t?this.genFeatureFlagService.apiFeatureFlagAccountIdGet({accountId:t}):this.genFeatureFlagService.apiFeatureFlagGet()).pipe(p(o=>JSON.parse(o)))}updateSamlSettings({accountId:t,samlSettings:i}){return this.genAccountSettingsService.apiAccountsAccountIdSettingsSamlSettingsPut({accountId:t,body:i}).pipe(p(o=>JSON.parse(o)))}getDirectorySettings(t){return this.genAccountSettingsService.apiAccountsAccountIdSettingsDirectoryServicesSettingsGet({accountId:t}).pipe(p(i=>JSON.parse(i)))}getGitIntegrationSettings(t){return this.genAccountSettingsService.apiAccountsAccountIdSettingsGitIntegrationGet({accountId:t}).pipe(p(i=>JSON.parse(i)))}updateDirectorySettings({accountId:t,directorySettings:i}){return this.genAccountSettingsService.apiAccountsAccountIdSettingsDirectoryServicesSettingsPut({accountId:t,body:i}).pipe(p(o=>JSON.parse(o)))}updateGitIntegrationSettings({accountId:t,gitIntegrationSettings:i}){let o=se({},i);return typeof o.githubPat=="string"&&/^[, null,isValid:null};var xbe=jn(GA());ve();var UGe=(()=>{let n=class n{get licenseStatusObservable(){return this.licenseStatus$}constructor(t,i){this.featureFlagService=t,this.tenantSettingsService=i,this.isOnPremInstall=!1,this.licenseStatusSubject=new ln(HGe),this.licenseStatus$=this.licenseStatusSubject.asObservable().pipe(C1()),this.isOnPremInstall=this.featureFlagService.featureOn(Jr.OnPremInstall)}initialize(){this.isOnPremInstall&&this.tenantSettingsService.getLicenseSettings().pipe(Br(1)).subscribe(t=>this.verifyLicense(t))}verifyLicense(t){let i=FGe((0,xbe.default)(),(0,xbe.default)(t.expiration),U0.lessThan,"day");this.licenseStatusSubject.next({isValid:i,license:t})}setLicenseStatus(t){this.licenseStatusSubject.next(t)}};n.\u0275fac=function(i){return new(i||n)(L(Xa),L(iv))},n.\u0275prov=Q({token:n,factory:n.\u0275fac,providedIn:"root"});let e=n;return e})();x();ve();var VGe=(e,n)=>BGe(e.name,n.name),Do=class Do{get workspaces$(){return Do.workspaces$}get currentWorkspace$(){return Do.currentWorkspace$}get currentDashboard$(){return Do.currentDashboard$}get reportSchedulesStatus$(){return Do.reportSchedulesStatus$}get dashboardSchedulesStatus$(){return Do.dashboardSchedulesStatus$}get initialized(){return Do.initialized}set initialized(n){Do.initialized=n}get isMultiTenantDeployment(){return Do.isMultiTenantDeployment}set isMultiTenantDeployment(n){Do.isMultiTenantDeployment=n}get updateNavigation(){return Do.updateNavigation$}get config(){return this.navigationConfig}set config(n){this.navigationConfig=n}constructor(n,r,t,i,o,s,a,c,d,b){this.workspaceService=n,this.reportService=r,this.dashboardService=t,this.securityService=i,this.multiTenantService=o,this.eventBus=s,this.featureFlagService=a,this.licenseService=c,this.router=d,this.tenantPathService=b,this.isMultiTenantDeployment=this.featureFlagService.featureOn(Jr.MultiTenant),this.addLicenseListener(),this.router.events.pipe(h(y=>y instanceof F0)).subscribe(()=>{let y=this.tenantPathService.getCurrentRoutePath();y in jY?this.config=y in jY?jY[y]:vbe:this.config=vbe,this.securityService.isAuthenticated()&&!this.isInAccountAdminRoutes()&&this.config.showSidebar?(this.eventBus.emit({type:"isInAccountAdmin",payload:!1}),this.initialized?this.emitWorkspaceAndDashboard():(this.fetchNavigation().then(()=>{this.emitWorkspaceAndDashboard()}),this.initialized=!0,this.addChangeListeners())):this.isInAccountAdminRoutes()&&(this.eventBus.emit({type:"isInAccountAdmin",payload:!0}),this.updateNavigation.next(!0))})}emitWorkspaceAndDashboard(){this.currentWorkspace$.next(this.getCurrentWorkspace()),this.currentDashboard$.next(this.getCurrentDashboard())}addLicenseListener(){this.eventBus.emitter.pipe(h(n=>n.type==="userLogin")).subscribe(n=>{this.licenseService.initialize()})}addChangeListeners(){let n=["app","report","workspaces","dashboard"],r=["updated","created","destroyed"],t=[];for(let i of n)for(let o of r)t.push(`${i}-${o}`);this.eventBus.emitter.subscribe(i=>{switch(i.type){case"userLogin":this.fetchNavigation();break;case"tenant-selected":i.payload?.tenantId&&this.fetchNavigation();break;case"report-updated":this.fetchNavigation(),this.fetchReportSchedulesStatus(this.currentWorkspace$.value.id);break;case"dashboard-updated":this.fetchNavigation(),this.fetchDashboardSchedulesStatus(this.currentWorkspace$.value.id);break;default:t.find(o=>o===i.type)&&this.fetchNavigation()}})}fetchNavigation(){return this.isMultiTenantDeployment&&this.multiTenantService.getCurrentTenantId()===null?Promise.resolve([]):this.workspaceService.getNavigation().then(n=>(this.workspaces$.next(this.sortWorkspaces(n)),this.currentWorkspace$.next(this.getCurrentWorkspace()),this.currentDashboard$.next(this.getCurrentDashboard()),this.workspaces$.value))}fetchDashboardSchedulesStatus(n){return this.dashboardService.getReportsWithScheduleStatus(n).then(r=>(this.dashboardSchedulesStatus$.next(r),this.dashboardSchedulesStatus$.value))}fetchReportSchedulesStatus(n){return this.reportService.getReportsWithScheduleStatus(n).then(r=>(this.reportSchedulesStatus$.next(r),this.reportSchedulesStatus$.value))}getCurrentWorkspace(){if(!this.workspaces$.value)return null;let n=this.tenantPathService.getCurrentRouteParams();if(n&&n.workspaceId){let r=this.workspaces$.value.find(t=>t.id===n.workspaceId);if(r)return this.fetchReportSchedulesStatus(r.id),this.fetchDashboardSchedulesStatus(r.id),r}if(n&&n.appId){let r=n.appId;if(this.currentWorkspace$.value){let t=this.workspaces$.value.find(i=>i.id===this.currentWorkspace$.value.id);if(t&&t.applications.find(i=>i.id===r))return t}return this.workspaces$.value.find(t=>{for(let i of t.applications)if(i.id===r)return this.fetchReportSchedulesStatus(t.id),this.fetchDashboardSchedulesStatus(t.id),!0;return!1})}if(this.currentWorkspace$.value){let r=this.workspaces$.value.find(t=>t.id===this.currentWorkspace$.value.id);if(r)return r}if(this.securityService.currentUser&&this.securityService.currentUser.defaultWorkspaceId&&this.securityService.currentUser.defaultWorkspaceId!=="undefined"){let r=this.workspaces$.value.find(t=>t.id===this.securityService.currentUser.defaultWorkspaceId);if(r)return this.fetchReportSchedulesStatus(r.id),this.fetchDashboardSchedulesStatus(r.id),r}if(this.securityService.currentUser&&this.securityService.currentUser.defaultDashboardId&&this.securityService.currentUser.defaultDashboardId!=="undefined"){let r=this.securityService.currentUser.defaultDashboardId;if(this.currentWorkspace$.value){let t=this.workspaces$.value.find(i=>i.id===this.currentWorkspace$.value.id);if(t&&t.dashboards.find(i=>i.id===r))return this.fetchReportSchedulesStatus(t.id),this.fetchDashboardSchedulesStatus(t.id),t}for(let t of this.workspaces$.value)for(let i of t.dashboards)if(i.id===r&&t)return t}return this.workspaces$?.value[0]?.id&&(this.fetchReportSchedulesStatus(this.workspaces$.value[0].id),this.fetchDashboardSchedulesStatus(this.workspaces$.value[0].id)),this.workspaces$.value[0]}getCurrentDashboard(){if(!this.workspaces$.value||!this.currentWorkspace$.value)return null;let n=this.tenantPathService.getCurrentRouteParams();if(n&&n.dashboardId&&n.workspaceId===this.currentWorkspace$.value.id){let r=this.currentWorkspace$.value.dashboards.find(t=>t.id===n.dashboardId);if(r)return r}return this.currentDashboard$.value&&this.currentWorkspace$.value.dashboards.find(t=>t.id===this.currentDashboard$.value.id)?this.currentDashboard$.value:this.currentWorkspace$.value.dashboards[0]}sortWorkspaces(n){n=n.sort(VGe);for(let r of n)r.dashboards=r.dashboards.sort(VGe);return n}isInAccountAdminRoutes(){return this.tenantPathService.getCurrentRoutePath()?.startsWith("account-admin")}};Do.workspaces$=new ln([]),Do.currentWorkspace$=new ln(null),Do.currentDashboard$=new ln(null),Do.reportSchedulesStatus$=new ln({}),Do.dashboardSchedulesStatus$=new ln({}),Do.updateNavigation$=new ln(!1),Do.isMultiTenantDeployment=!1,Do.initialized=!1,Do.\u0275fac=function(r){return new(r||Do)(L(lFe),L(aFe),L(AG),L(Sc),L(H0),L(ys),L(Xa),L(UGe),L(Ga),L(cu))},Do.\u0275prov=Q({token:Do,factory:Do.\u0275fac,providedIn:"root"});var CI=Do;rv([SI,m1("design:type",Function),m1("design:paramtypes",[]),m1("design:returntype",void 0)],CI.prototype,"fetchNavigation",null);rv([SI,m1("design:type",Function),m1("design:paramtypes",[String]),m1("design:returntype",void 0)],CI.prototype,"fetchDashboardSchedulesStatus",null);rv([SI,m1("design:type",Function),m1("design:paramtypes",[String]),m1("design:returntype",void 0)],CI.prototype,"fetchReportSchedulesStatus",null);ve();var SVi=(()=>{let n=class n{constructor(t){this.genOrchestrationTasksService=t}getTasksByAppId(t){return this.genOrchestrationTasksService.orchestrationtaskAppApplicationIdGet({applicationId:t}).toPromise()}getTaskById(t){return this.genOrchestrationTasksService.orchestrationtaskIdGet({id:t}).toPromise()}update(t,i){let o=new Er().set(y0,!0);return this.genOrchestrationTasksService.orchestrationtaskIdPut({id:t,body:i},o).toPromise()}delete(t){let i=new Er().set(y0,!0);return this.genOrchestrationTasksService.orchestrationtaskIdDelete({id:t},i).toPromise()}deleteOrchestrationTasksByPlaybook(t){return this.genOrchestrationTasksService.orchestrationtaskPlaybookPlaybookIdDelete({playbookId:t}).toPromise()}executeRecord$(t,i){return this.genOrchestrationTasksService.orchestrationtaskIdExecutePost({id:t,body:i})}getAll(){return this.genOrchestrationTasksService.orchestrationtaskGet().toPromise()}getByPlaybookId(t){return this.genOrchestrationTasksService.orchestrationtaskPlaybookPlaybookIdGet({playbookId:t}).toPromise()}insert(t){let i=new Er().set(y0,!0);return this.genOrchestrationTasksService.orchestrationtaskPost({body:t},i).toPromise()}crudOrchestrationTasks({newOrchestrationTasksQueue:t,deletedOrchestrationTasksQueue:i,updateOrchestrationTasksQueue:o}){let s=[],a=[],c=[];return t.length&&t.forEach(d=>{s.push(this.insert(d))}),i.length&&i.forEach(d=>{a.push(this.delete(d))}),o.length&&o.forEach(d=>{c.push(this.update(d.id,d))}),Promise.allSettled([...s,...a,...c])}};n.\u0275fac=function(i){return new(i||n)(L(que))},n.\u0275prov=Q({token:n,factory:n.\u0275fac,providedIn:"root"});let e=n;return e})();var YGe=jn(XGe()),KGe=jn(JGe());window.DIFF_DELETE=-1;window.DIFF_INSERT=1;window.DIFF_EQUAL=0;var NY={deep(e,n,r){return(0,YGe.diff)(e,n,r||function(t,i){return i[0]==="$"})},levenshtein(e="",n="",r=!1){let t=new KGe.default,i;return r?i=t.diff_main(e.toLowerCase(),n.toLowerCase()):i=t.diff_main(e,n),t.diff_levenshtein(i)}};ve();var LVi=(()=>{let n=class n{constructor(t){this.genDataImportService=t}run(t){return this.genDataImportService.dataImportRunPost({body:t})}testFieldMapping(t){return this.genDataImportService.dataImportTestAppIdFileIdPost({appId:t.appId,fileId:t.fileId,body:t})}mappable(t){return t.fields.filter(i=>ZF(i)&&i.formula?!1:i.fieldType===Et.DATE?!(i.inputType===Ua.FIRST_CREATED||i.inputType===Ua.LAST_UPDATED):i.fieldType===Et.TEXT||i.fieldType===Et.NUMERIC||i.fieldType===Et.USER_GROUP||i.fieldType===Et.VALUES_LIST||i.fieldType===Et.TRACKING||i.fieldType===Et.LIST||i.fieldType===Et.REFERENCE)}keyFields(t){return this.mappable(t).filter(i=>i.fieldType===Et.TEXT||i.fieldType===Et.NUMERIC||i.fieldType===Et.TRACKING)}preProcess(t,i){if(!t)return[];let o={},s=this.mappable(i);return t.forEach(a=>{if(!a.fieldId){let c=[];s.forEach(function(b){let y=NY.levenshtein(a.header,b.name);y<4&&!o[b.id]&&c.push({field:b,distance:y})});let d=c.sort(function(b,y){return b.distance-y.distance});d.length&&d[0].field&&(a.fieldId=d[0].field.id,o[d[0].field.id]=!0,d[0].field.fieldType===Et.DATE&&(a.dataFormat="Standard"))}}),t}};n.\u0275fac=function(i){return new(i||n)(L(yue))},n.\u0275prov=Q({token:n,factory:n.\u0275fac,providedIn:"root"});let e=n;return e})();x();ve();var QVi=(()=>{let n=class n{constructor(t,i,o){this.securityService=t,this.notificationService=i,this.eventBus=o,this.options={idleDuration:20