import {E,p}from'./chunk-DATbfg1M.js';import {k as ke,d as d$1}from'./chunk-_RTsRpwk.js';import {i,u as u$1}from'./chunk-BXKROHPF.js';import {u,d}from'./chunk-BrIGe1dS.js';import {J,c as tS,bK as G,bJ as F,aa as ye,ad as ce,a6 as pi,bP as he}from'./main-WUGO6e7n.js';var m,h=J(()=>{pi();tS();m=(()=>{class r{constructor(){this.viewSubject=new he,this.viewRequest=this.viewSubject.asObservable();}view(e){this.viewSubject.next(e);}static{this.\u0275fac=function(t){return new(t||r)};}static{this.\u0275prov=ce({token:r,factory:r.\u0275fac,providedIn:"root"});}}return r})();});var A,C=J(()=>{u();i();ke();tS();h();E();A=(()=>{class r extends d{constructor(e,t){super(),this.providerTypeSelectorService=e,this.credentialSetupDialogService=t;}create(e){let t=G(F({},e),{accept:i=>this.offerCredentialSetup(i,e.accept)});t.type?super.create(F({data:t.type,options:{providerTemplate:t.providerTemplate}},t)):this.providerTypeSelectorService.view({acceptProvider:(i,o)=>super.create(F({data:i,options:{providerTemplate:o}},t)),selectorType:u$1.Provider});}offerCredentialSetup(e,t){let i=!1,o=()=>{i||(i=!0,t?.(e));};e&&!e.providerLinkedCredentialID&&this.credentialSetupDialogService.supportsManagedCredential(e)&&this.credentialSetupDialogService.hasHandler?this.credentialSetupDialogService.open({provider:e,origin:d$1.ProviderManagedAccountSetup.SubType1_OnProviderCreated,complete:o}):o();}static{this.\u0275fac=function(t){return new(t||r)(ye(m),ye(p))};}static{this.\u0275prov=ce({token:r,factory:r.\u0275fac,providedIn:"root"});}}return r})();});export{A,C,h,m};