{ "version": 3, "sources": ["src/app/views/profile/profile.service.ts"], "sourcesContent": ["import { Injectable } from '@angular/core';\nimport { BehaviorSubject } from 'rxjs';\nimport { LocalStorageService } from 'src/app/core/services/local-storage.service';\n\n@Injectable({\n\tprovidedIn: 'root',\n})\nexport class ProfileService {\n\tprivate readonly key: string = 'PROFILE_NAME';\n\tprofileName: BehaviorSubject = new BehaviorSubject(undefined);\n\n\tconstructor(private localStorage: LocalStorageService) {}\n\n\tloadProfileName = () => {\n\t\tthis.profileName.next(this.localStorage.getData(this.key));\n\t};\n\n\tsetProfileName = (name: string) => {\n\t\tthis.localStorage.setItem(this.key, name);\n\t\tthis.profileName.next(name);\n\t};\n}\n"], "mappings": "gGAOA,IAAaA,GAAc,IAAA,CAArB,MAAOA,CAAc,CAI1BC,YAAoBC,EAAiC,CAAjC,KAAAA,aAAAA,EAHH,KAAAC,IAAc,eAC/B,KAAAC,YAAuC,IAAIC,EAAgBC,MAAS,EAIpE,KAAAC,gBAAkB,IAAK,CACtB,KAAKH,YAAYI,KAAK,KAAKN,aAAaO,QAAQ,KAAKN,GAAG,CAAC,CAC1D,EAEA,KAAAO,eAAkBC,GAAgB,CACjC,KAAKT,aAAaU,QAAQ,KAAKT,IAAKQ,CAAI,EACxC,KAAKP,YAAYI,KAAKG,CAAI,CAC3B,CATwD,iDAJ5CX,GAAca,EAAAC,CAAA,CAAA,CAAA,CAAA,iCAAdd,EAAce,QAAdf,EAAcgB,UAAAC,WAFd,MAAM,CAAA,CAAA,SAENjB,CAAc,GAAA", "names": ["ProfileService", "constructor", "localStorage", "key", "profileName", "BehaviorSubject", "undefined", "loadProfileName", "next", "getData", "setProfileName", "name", "setItem", "\u0275\u0275inject", "LocalStorageService", "factory", "\u0275fac", "providedIn"] }