import{a as g,b as O}from"./chunk-I533OI5W.js";import{a as b,b as D}from"./chunk-LK2BF24O.js";import{g as h,h as j}from"./chunk-4T2XGZFD.js";import{P as f,Q as k}from"./chunk-FYLDFXYJ.js";import{h as l,o as P}from"./chunk-HO2J6YLX.js";import{Eb as r,Gd as y,Qb as m,Sb as u,T as c,ia as d,ka as p,na as I,x as n}from"./chunk-JSJB5BKT.js";import{e as S}from"./chunk-SZAW6ZBW.js";var z,U=S(()=>{O();I();y();j();k();P();D();z=(()=>{class a extends g{constructor(e,i,s,t){super(i,s,t),this.repositoryService=e}ngOnInit(){super.ngOnInit(),this.paging={pageSize:this.currentUserService.webSettingsSnapshot.defaultPageSize,pageNumber:1,sortOrder:1},this.beforeSubscribeToQueryParams().pipe(c(1)).subscribe(()=>this.subscribeToQueryParams())}beforeSubscribeToQueryParams(){return this.repositoryService.getCurrentUserRepositories().pipe(d(this.destroyed$),p(e=>{let i=e.find(o=>o.id===this.parameters.vaultId),s=this.storageService.get().lastSharedVaultId,t=e.find(o=>o.id===s);if(!t&&e.length>0&&(t=e[0]),!t){this.fallbackVault=null;return}let v=i?{id:i.id,name:i.name}:{id:t.id,name:t.name};this.parameters.vaultId||(this.fallbackVault=v.id)}),n(()=>null))}static{this.\u0275fac=function(i){return new(i||a)(r(h),r(f),r(l),r(b))}}static{this.\u0275dir=m({type:a,features:[u]})}}return a})()});export{z as a,U as b};
