import {k as ke,d}from'./chunk-_RTsRpwk.js';import {E as E$1,s as st,f,Z as Zt}from'./chunk-BRPXnOPq.js';import {J,a6 as pi,f5 as so,c as tS,f7 as q,bP as he,aa as ye,ad as ce}from'./main-WUGO6e7n.js';var p,E=J(()=>{pi();so();E$1();ke();tS();st();p=class r{static{this.UNSUPPORTED_MANAGED_CREDENTIAL_TYPES=[q.AzureADUser,q.Custom,q.SshKey];}constructor(e){this.telemetryFactory=e,this.viewRequestSource=new he,this.viewRequest=this.viewRequestSource.asObservable();}get hasHandler(){return this.viewRequestSource.observed}supportsManagedCredential(e){return !!e&&!r.UNSUPPORTED_MANAGED_CREDENTIAL_TYPES.includes(e.credentialType)}open(e){this.hasHandler&&this.trackStage(e.origin,null,d.ProviderManagedAccountSetup.SubType3_Opened),this.viewRequestSource.next(e);}trackCompleted(e,t){this.trackStage(e,t,d.ProviderManagedAccountSetup.SubType3_Completed);}trackStage(e,t,m){this.telemetryFactory.createFeatureEvent(f.ProviderManagedAccountSetup,[e,t,m]);}static{this.\u0275fac=function(t){return new(t||r)(ye(Zt))};}static{this.\u0275prov=ce({token:r,factory:r.\u0275fac,providedIn:"root"});}};});export{E,p};