{ "version": 3, "sources": ["src/app/shared/enums/CustomFieldsType.enum.ts", "src/app/shared/enums/InvestmentType.enum.ts", "src/app/shared/enums/InvestmentSecurityType.enum.ts"], "sourcesContent": ["// Must match the server enum\nexport enum CustomFieldsGroupNameType {\n None = 'none',\n AssetOptionalDetail = 'assetOptionalDetail',\n AssetInvestmentOptionalDetails = 'assetInvestmentOptionalDetails',\n ContactOptionalDetails = 'contactOptionalDetails',\n}\n\n", "export enum InvestmentType {\n Core = 1,\n CorePlus = 2,\n ValueAdd = 3,\n Opportunistic = 4,\n Other = 5,\n Development = 6\n // if changing or adding values, update all other methods (toString, toList)\n // and backend enums\n}\n\n// tslint:disable-next-line:no-namespace\nexport namespace InvestmentType {\n export function toString(investmentType: InvestmentType): string {\n switch (investmentType) {\n case InvestmentType.Core:\n return 'Core';\n case InvestmentType.CorePlus:\n return 'Core plus';\n case InvestmentType.ValueAdd:\n return 'Value-add';\n case InvestmentType.Opportunistic:\n return 'Opportunistic';\n case InvestmentType.Other:\n return 'Other';\n case InvestmentType.Development:\n return 'Development';\n\n default:\n return null;\n }\n }\n\n export function listAll() {\n return [InvestmentType.Core, InvestmentType.CorePlus, InvestmentType.ValueAdd, InvestmentType.Opportunistic, InvestmentType.Development, InvestmentType.Other];\n }\n\n export function parse(investmentTypeStr: string): InvestmentType {\n return InvestmentType[investmentTypeStr];\n }\n\n export function OpportunisticLikeType(investmentType: InvestmentType) : boolean {\n return [InvestmentType.Opportunistic, InvestmentType.Development].includes(investmentType);\n }\n\n export function OpportunisticLikeOrValueAddType(investmentType: InvestmentType) : boolean {\n return [InvestmentType.Opportunistic, InvestmentType.Development, InvestmentType.ValueAdd].includes(investmentType);\n }\n}\n\nexport default InvestmentType;\n", "export enum InvestmentSecurityType {\n Equity = 1,\n Debt = 2,\n DirectOwnership = 3\n\n /* Old values:\n\n CommonEquity = 1,\n Debt = 2,\n Mezzanine = 3,\n SeniorDebt = 4,\n PreferredEquity = 5\n\n */\n\n // if changing or adding values, updadte all other methods (toString, toList).\n}\n\n// tslint:disable-next-line:no-namespace\nexport namespace InvestmentSecurityType {\n export function toString(investmentSecurityType: InvestmentSecurityType): string {\n switch (investmentSecurityType) {\n case InvestmentSecurityType.Equity:\n return 'Equity Investment';\n case InvestmentSecurityType.Debt:\n return 'Debt Investment';\n case InvestmentSecurityType.DirectOwnership:\n return 'Direct Ownership';\n default:\n return null;\n }\n }\n\n export function optionsForAssetFundraising() {\n return [InvestmentSecurityType.Equity, InvestmentSecurityType.Debt, InvestmentSecurityType.DirectOwnership];\n }\n\n export function optionsForFundFundraising() {\n return [InvestmentSecurityType.Equity];\n }\n\n\n export function parse(investmentSecurityTypeStr: string): InvestmentSecurityType {\n return InvestmentSecurityType[investmentSecurityTypeStr];\n }\n}\n\nexport default InvestmentSecurityType;\n"], "mappings": "AACA,IAAYA,EAAZ,SAAYA,EAAyB,CACnCA,OAAAA,EAAA,KAAA,OACAA,EAAA,oBAAA,sBACAA,EAAA,+BAAA,iCACAA,EAAA,uBAAA,yBAJUA,CAKZ,EALYA,GAAyB,CAAA,CAAA,ECDrC,IAAYC,EAAZ,SAAYA,EAAc,CACxBA,OAAAA,EAAAA,EAAA,KAAA,CAAA,EAAA,OACAA,EAAAA,EAAA,SAAA,CAAA,EAAA,WACAA,EAAAA,EAAA,SAAA,CAAA,EAAA,WACAA,EAAAA,EAAA,cAAA,CAAA,EAAA,gBACAA,EAAAA,EAAA,MAAA,CAAA,EAAA,QACAA,EAAAA,EAAA,YAAA,CAAA,EAAA,cANUA,CASZ,EATYA,GAAc,CAAA,CAAA,GAY1B,SAAiBA,EAAc,CAC7B,SAAgBC,EAASC,EAA8B,CACrD,OAAQA,EAAc,CACpB,KAAKF,EAAeG,KAClB,MAAO,OACT,KAAKH,EAAeI,SAClB,MAAO,YACT,KAAKJ,EAAeK,SAClB,MAAO,YACT,KAAKL,EAAeM,cAClB,MAAO,gBACT,KAAKN,EAAeO,MAClB,MAAO,QACT,KAAKP,EAAeQ,YAClB,MAAO,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AAuBG,MAAM,CACvC,CAFgBH,EAAAO,0BAAyBA,EAKzC,SAAgBC,EAAMC,EAAiC,CACrD,OAAOT,EAAuBS,CAAyB,CACzD,CAFgBT,EAAAQ,MAAKA,CAGvB,GA1BiBR,IAAAA,EAAsB,CAAA,EAAA,EA4BvC,IAAAU,EAAeV", "names": ["CustomFieldsGroupNameType", "InvestmentType", "toString", "investmentType", "Core", "CorePlus", "ValueAdd", "Opportunistic", "Other", "Development", "listAll", "parse", "investmentTypeStr", "OpportunisticLikeType", "includes", "OpportunisticLikeOrValueAddType", "InvestmentType_enum_default", "InvestmentSecurityType", "toString", "investmentSecurityType", "Equity", "Debt", "DirectOwnership", "optionsForAssetFundraising", "optionsForFundFundraising", "parse", "investmentSecurityTypeStr", "InvestmentSecurityType_enum_default"] }