"use strict";(self.webpackChunkegret_angular_latest_test=self.webpackChunkegret_angular_latest_test||[]).push([[2076],{27885:(o,c,s)=>{s.d(c,{A:()=>u});var r=s(84412),n=s(54438),l=s(46159);let u=(()=>{class t{constructor(e){this.baseService=e,this.leftpanetoggle=new r.t(!1),this.leftpane$=this.leftpanetoggle.asObservable(),this.membersSource=new r.t([]),this.currentMembers=this.membersSource.asObservable(),this.memberInfoSource=new r.t({id:null,member:null}),this.currentMemberInfo=this.memberInfoSource.asObservable(),this.SelectedLeadSubject=new r.t([]),this.selectedBusiness$=this.SelectedLeadSubject.asObservable()}setMemberInfo(e,a){this.memberInfoSource.next({id:e,member:a})}setSelectedBusiness(e){const i=this.SelectedLeadSubject.getValue().concat(e);console.log(i),this.SelectedLeadSubject.next(i)}getAllBusinessFromDB(){return this.baseService.getData("business")}getBusiness(){return this.members||[]}setMembers(e){this.membersSource.next(this.getBusiness())}deleteBusiness(e){return this.baseService.deleteData(`business/${e}`)}setLeftToggle(e){this.leftpanetoggle.next(e)}static#e=this.\u0275fac=function(a){return new(a||t)(n.KVO(l.d))};static#t=this.\u0275prov=n.jDH({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})()}}]);