{ "version": 3, "sources": ["apps/partner-center-client/src/app/core/partner/partner.ts"], "sourcesContent": ["import { formatDisplayPrice } from '../utils/pipe-utils';\n\nexport enum SubscriptionLevel {\n LITE = 0,\n BASIC = 1,\n}\n\nexport class Partner {\n name: string;\n partner_id: string;\n partner_is_sso: boolean;\n formatted_ld_wholesale_price: string;\n pb_is_always_enabled_flag: boolean;\n ld_is_enabled: boolean;\n subscription_level: SubscriptionLevel;\n\n constructor(data: any) {\n Object.assign(this, data);\n\n this.partner_id = data.pid;\n this.partner_is_sso = !data.has_vbc_flag;\n\n if (data.ld_wholesale_price) {\n this.formatted_ld_wholesale_price = formatDisplayPrice(data.ld_wholesale_price, null, null, true);\n }\n\n switch (data.subscription_level) {\n case 'LITE':\n this.subscription_level = SubscriptionLevel.LITE;\n break;\n case 'BASIC':\n this.subscription_level = SubscriptionLevel.BASIC;\n break;\n }\n }\n}\n"], "mappings": "wCAEA,IAAYA,EAAZ,SAAYA,EAAiB,CAC3BA,OAAAA,EAAAA,EAAA,KAAA,CAAA,EAAA,OACAA,EAAAA,EAAA,MAAA,CAAA,EAAA,QAFUA,CAGZ,EAHYA,GAAiB,CAAA,CAAA,EAKhBC,EAAP,KAAc,CASlBC,YAAYC,EAAS,CAUnB,OATAC,OAAOC,OAAO,KAAMF,CAAI,EAExB,KAAKG,WAAaH,EAAKI,IACvB,KAAKC,eAAiB,CAACL,EAAKM,aAExBN,EAAKO,qBACP,KAAKC,6BAA+BC,EAAmBT,EAAKO,mBAAoB,KAAM,KAAM,EAAI,GAG1FP,EAAKU,mBAAkB,CAC7B,IAAK,OACH,KAAKA,mBAAqBb,EAAkBc,KAC5C,MACF,IAAK,QACH,KAAKD,mBAAqBb,EAAkBe,MAC5C,KACJ,CACF", "names": ["SubscriptionLevel", "Partner", "constructor", "data", "Object", "assign", "partner_id", "pid", "partner_is_sso", "has_vbc_flag", "ld_wholesale_price", "formatted_ld_wholesale_price", "formatDisplayPrice", "subscription_level", "LITE", "BASIC"] }