{"version":3,"sources":["node_modules/@vendasta/accounts/fesm2020/vendasta-accounts.mjs"],"sourcesContent":["import * as i0 from '@angular/core';\nimport { Injectable } from '@angular/core';\nimport { map } from 'rxjs/operators';\nimport * as i1 from '@angular/common/http';\nimport { HttpHeaders } from '@angular/common/http';\n\n// *********************************\n// Code generated by sdkgen\n// DO NOT EDIT!.\n//\n// Enums.\n// *********************************\nvar BlameSource = /*#__PURE__*/function (BlameSource) {\n  BlameSource[BlameSource[\"BLAME_SOURCE_SYSTEM\"] = 0] = \"BLAME_SOURCE_SYSTEM\";\n  BlameSource[BlameSource[\"BLAME_SOURCE_USER\"] = 1] = \"BLAME_SOURCE_USER\";\n  return BlameSource;\n}(BlameSource || {});\n// *********************************\n// Code generated by sdkgen\n// DO NOT EDIT!.\n//\n// Enums.\n// *********************************\nvar ActivationStatus = /*#__PURE__*/function (ActivationStatus) {\n  ActivationStatus[ActivationStatus[\"ACTIVATION_STATUS_NOT_SPECIFIED\"] = 0] = \"ACTIVATION_STATUS_NOT_SPECIFIED\";\n  ActivationStatus[ActivationStatus[\"ACTIVATION_STATUS_ACTIVATED\"] = 1] = \"ACTIVATION_STATUS_ACTIVATED\";\n  ActivationStatus[ActivationStatus[\"ACTIVATION_STATUS_PENDING\"] = 2] = \"ACTIVATION_STATUS_PENDING\";\n  ActivationStatus[ActivationStatus[\"ACTIVATION_STATUS_CANCELED\"] = 3] = \"ACTIVATION_STATUS_CANCELED\";\n  ActivationStatus[ActivationStatus[\"ACTIVATION_STATUS_DEACTIVATED\"] = 4] = \"ACTIVATION_STATUS_DEACTIVATED\";\n  return ActivationStatus;\n}(ActivationStatus || {});\n// *********************************\n\nfunction enumStringToValue$1(enumRef, value) {\n  if (typeof value === 'number') {\n    return value;\n  }\n  return enumRef[value];\n}\nclass Blame {\n  static fromProto(proto) {\n    let m = new Blame();\n    m = Object.assign(m, proto);\n    if (proto.source) {\n      m.source = enumStringToValue$1(BlameSource, proto.source);\n    }\n    if (proto.reasons) {\n      m.reasons = BlameDeactivationReasons.fromProto(proto.reasons);\n    }\n    return m;\n  }\n  constructor(kwargs) {\n    if (!kwargs) {\n      return;\n    }\n    Object.assign(this, kwargs);\n  }\n  toApiJson() {\n    const toReturn = {};\n    if (typeof this.source !== 'undefined') {\n      toReturn['source'] = this.source;\n    }\n    if (typeof this.sourceIdentifier !== 'undefined') {\n      toReturn['sourceIdentifier'] = this.sourceIdentifier;\n    }\n    if (typeof this.orderId !== 'undefined') {\n      toReturn['orderId'] = this.orderId;\n    }\n    if (typeof this.reasons !== 'undefined' && this.reasons !== null) {\n      toReturn['reasons'] = 'toApiJson' in this.reasons ? this.reasons.toApiJson() : this.reasons;\n    }\n    return toReturn;\n  }\n}\nclass BlameDeactivationReasons {\n  static fromProto(proto) {\n    let m = new BlameDeactivationReasons();\n    m = Object.assign(m, proto);\n    return m;\n  }\n  constructor(kwargs) {\n    if (!kwargs) {\n      return;\n    }\n    Object.assign(this, kwargs);\n  }\n  toApiJson() {\n    const toReturn = {};\n    if (typeof this.choices !== 'undefined') {\n      toReturn['choices'] = this.choices;\n    }\n    if (typeof this.comments !== 'undefined') {\n      toReturn['comments'] = this.comments;\n    }\n    return toReturn;\n  }\n}\nfunction enumStringToValue(enumRef, value) {\n  if (typeof value === 'number') {\n    return value;\n  }\n  return enumRef[value];\n}\nclass ActivateProductRequest {\n  static fromProto(proto) {\n    let m = new ActivateProductRequest();\n    m = Object.assign(m, proto);\n    if (proto.activationInfo) {\n      m.activationInfo = Blame.fromProto(proto.activationInfo);\n    }\n    return m;\n  }\n  constructor(kwargs) {\n    if (!kwargs) {\n      return;\n    }\n    Object.assign(this, kwargs);\n  }\n  toApiJson() {\n    const toReturn = {};\n    if (typeof this.businessId !== 'undefined') {\n      toReturn['businessId'] = this.businessId;\n    }\n    if (typeof this.productId !== 'undefined') {\n      toReturn['productId'] = this.productId;\n    }\n    if (typeof this.editionId !== 'undefined') {\n      toReturn['editionId'] = this.editionId;\n    }\n    if (typeof this.orderFormSubmissionId !== 'undefined') {\n      toReturn['orderFormSubmissionId'] = this.orderFormSubmissionId;\n    }\n    if (typeof this.activationInfo !== 'undefined' && this.activationInfo !== null) {\n      toReturn['activationInfo'] = 'toApiJson' in this.activationInfo ? this.activationInfo.toApiJson() : this.activationInfo;\n    }\n    if (typeof this.billingOrderId !== 'undefined') {\n      toReturn['billingOrderId'] = this.billingOrderId;\n    }\n    if (typeof this.backdateToParentActivation !== 'undefined') {\n      toReturn['backdateToParentActivation'] = this.backdateToParentActivation;\n    }\n    if (typeof this.isTrial !== 'undefined') {\n      toReturn['isTrial'] = this.isTrial;\n    }\n    if (typeof this.trialDuration !== 'undefined') {\n      toReturn['trialDuration'] = this.trialDuration;\n    }\n    if (typeof this.vendorOrderId !== 'undefined') {\n      toReturn['vendorOrderId'] = this.vendorOrderId;\n    }\n    return toReturn;\n  }\n}\nclass ActivateProductResponse {\n  static fromProto(proto) {\n    let m = new ActivateProductResponse();\n    m = Object.assign(m, proto);\n    return m;\n  }\n  constructor(kwargs) {\n    if (!kwargs) {\n      return;\n    }\n    Object.assign(this, kwargs);\n  }\n  toApiJson() {\n    const toReturn = {};\n    if (typeof this.activationId !== 'undefined') {\n      toReturn['activationId'] = this.activationId;\n    }\n    return toReturn;\n  }\n}\nclass ListActiveAccountsForProductResponseActiveProducts {\n  static fromProto(proto) {\n    let m = new ListActiveAccountsForProductResponseActiveProducts();\n    m = Object.assign(m, proto);\n    return m;\n  }\n  constructor(kwargs) {\n    if (!kwargs) {\n      return;\n    }\n    Object.assign(this, kwargs);\n  }\n  toApiJson() {\n    const toReturn = {};\n    if (typeof this.businessId !== 'undefined') {\n      toReturn['businessId'] = this.businessId;\n    }\n    if (typeof this.activationId !== 'undefined') {\n      toReturn['activationId'] = this.activationId;\n    }\n    return toReturn;\n  }\n}\nclass GetMultiActivationStatusesResponseAppsAndAddonsActivationStatuses {\n  static fromProto(proto) {\n    let m = new GetMultiActivationStatusesResponseAppsAndAddonsActivationStatuses();\n    m = Object.assign(m, proto);\n    if (proto.status) {\n      m.status = enumStringToValue(ActivationStatus, proto.status);\n    }\n    if (proto.count) {\n      m.count = parseInt(proto.count, 10);\n    }\n    return m;\n  }\n  constructor(kwargs) {\n    if (!kwargs) {\n      return;\n    }\n    Object.assign(this, kwargs);\n  }\n  toApiJson() {\n    const toReturn = {};\n    if (typeof this.businessId !== 'undefined') {\n      toReturn['businessId'] = this.businessId;\n    }\n    if (typeof this.productId !== 'undefined') {\n      toReturn['productId'] = this.productId;\n    }\n    if (typeof this.status !== 'undefined') {\n      toReturn['status'] = this.status;\n    }\n    if (typeof this.count !== 'undefined') {\n      toReturn['count'] = this.count;\n    }\n    if (typeof this.isTrial !== 'undefined') {\n      toReturn['isTrial'] = this.isTrial;\n    }\n    if (typeof this.editionId !== 'undefined') {\n      toReturn['editionId'] = this.editionId;\n    }\n    return toReturn;\n  }\n}\nclass ChangeEditionRequest {\n  static fromProto(proto) {\n    let m = new ChangeEditionRequest();\n    m = Object.assign(m, proto);\n    if (proto.changeDate) {\n      m.changeDate = new Date(proto.changeDate);\n    }\n    if (proto.changeEditionInfo) {\n      m.changeEditionInfo = Blame.fromProto(proto.changeEditionInfo);\n    }\n    return m;\n  }\n  constructor(kwargs) {\n    if (!kwargs) {\n      return;\n    }\n    Object.assign(this, kwargs);\n  }\n  toApiJson() {\n    const toReturn = {};\n    if (typeof this.businessId !== 'undefined') {\n      toReturn['businessId'] = this.businessId;\n    }\n    if (typeof this.productId !== 'undefined') {\n      toReturn['productId'] = this.productId;\n    }\n    if (typeof this.activationId !== 'undefined') {\n      toReturn['activationId'] = this.activationId;\n    }\n    if (typeof this.editionId !== 'undefined') {\n      toReturn['editionId'] = this.editionId;\n    }\n    if (typeof this.billingOrderId !== 'undefined') {\n      toReturn['billingOrderId'] = this.billingOrderId;\n    }\n    if (typeof this.changeDate !== 'undefined' && this.changeDate !== null) {\n      toReturn['changeDate'] = 'toApiJson' in this.changeDate ? this.changeDate.toApiJson() : this.changeDate;\n    }\n    if (typeof this.changeEditionInfo !== 'undefined' && this.changeEditionInfo !== null) {\n      toReturn['changeEditionInfo'] = 'toApiJson' in this.changeEditionInfo ? this.changeEditionInfo.toApiJson() : this.changeEditionInfo;\n    }\n    if (typeof this.vendorOrderId !== 'undefined') {\n      toReturn['vendorOrderId'] = this.vendorOrderId;\n    }\n    return toReturn;\n  }\n}\nclass ChangeEditionResponse {\n  static fromProto(proto) {\n    let m = new ChangeEditionResponse();\n    m = Object.assign(m, proto);\n    return m;\n  }\n  constructor(kwargs) {\n    if (!kwargs) {\n      return;\n    }\n    Object.assign(this, kwargs);\n  }\n  toApiJson() {\n    const toReturn = {};\n    if (typeof this.activationId !== 'undefined') {\n      toReturn['activationId'] = this.activationId;\n    }\n    return toReturn;\n  }\n}\nclass GetMultiActivationStatusesRequest {\n  static fromProto(proto) {\n    let m = new GetMultiActivationStatusesRequest();\n    m = Object.assign(m, proto);\n    return m;\n  }\n  constructor(kwargs) {\n    if (!kwargs) {\n      return;\n    }\n    Object.assign(this, kwargs);\n  }\n  toApiJson() {\n    const toReturn = {};\n    if (typeof this.businessIds !== 'undefined') {\n      toReturn['businessIds'] = this.businessIds;\n    }\n    return toReturn;\n  }\n}\nclass GetMultiActivationStatusesResponse {\n  static fromProto(proto) {\n    let m = new GetMultiActivationStatusesResponse();\n    m = Object.assign(m, proto);\n    if (proto.activationStatuses) {\n      m.activationStatuses = proto.activationStatuses.map(GetMultiActivationStatusesResponseAppsAndAddonsActivationStatuses.fromProto);\n    }\n    return m;\n  }\n  constructor(kwargs) {\n    if (!kwargs) {\n      return;\n    }\n    Object.assign(this, kwargs);\n  }\n  toApiJson() {\n    const toReturn = {};\n    if (typeof this.activationStatuses !== 'undefined' && this.activationStatuses !== null) {\n      toReturn['activationStatuses'] = 'toApiJson' in this.activationStatuses ? this.activationStatuses.toApiJson() : this.activationStatuses;\n    }\n    return toReturn;\n  }\n}\nclass ListActiveAccountsForProductRequest {\n  static fromProto(proto) {\n    let m = new ListActiveAccountsForProductRequest();\n    m = Object.assign(m, proto);\n    if (proto.pageSize) {\n      m.pageSize = parseInt(proto.pageSize, 10);\n    }\n    return m;\n  }\n  constructor(kwargs) {\n    if (!kwargs) {\n      return;\n    }\n    Object.assign(this, kwargs);\n  }\n  toApiJson() {\n    const toReturn = {};\n    if (typeof this.productId !== 'undefined') {\n      toReturn['productId'] = this.productId;\n    }\n    if (typeof this.cursor !== 'undefined') {\n      toReturn['cursor'] = this.cursor;\n    }\n    if (typeof this.pageSize !== 'undefined') {\n      toReturn['pageSize'] = this.pageSize;\n    }\n    return toReturn;\n  }\n}\nclass ListActiveAccountsForProductResponse {\n  static fromProto(proto) {\n    let m = new ListActiveAccountsForProductResponse();\n    m = Object.assign(m, proto);\n    if (proto.activeProducts) {\n      m.activeProducts = proto.activeProducts.map(ListActiveAccountsForProductResponseActiveProducts.fromProto);\n    }\n    return m;\n  }\n  constructor(kwargs) {\n    if (!kwargs) {\n      return;\n    }\n    Object.assign(this, kwargs);\n  }\n  toApiJson() {\n    const toReturn = {};\n    if (typeof this.activeProducts !== 'undefined' && this.activeProducts !== null) {\n      toReturn['activeProducts'] = 'toApiJson' in this.activeProducts ? this.activeProducts.toApiJson() : this.activeProducts;\n    }\n    if (typeof this.nextCursor !== 'undefined') {\n      toReturn['nextCursor'] = this.nextCursor;\n    }\n    if (typeof this.hasMore !== 'undefined') {\n      toReturn['hasMore'] = this.hasMore;\n    }\n    return toReturn;\n  }\n}\n\n// *********************************\n\nconst environment = (window ? window['environment'] : 'prod') ?? 'prod';\nconst hostMap = {\n  'local': 'accounts.vendasta-local.com',\n  'test': '',\n  'demo': 'accounts-demo.apigateway.co',\n  'prod': 'accounts-prod.apigateway.co',\n  'production': 'accounts-prod.apigateway.co'\n};\nlet HostService = /*#__PURE__*/(() => {\n  class HostService {\n    get host() {\n      return hostMap[environment.toLowerCase()];\n    }\n    get hostWithScheme() {\n      return 'https://' + this.host;\n    }\n  }\n  HostService.ɵfac = function HostService_Factory(__ngFactoryType__) {\n    return new (__ngFactoryType__ || HostService)();\n  };\n  HostService.ɵprov = /* @__PURE__ */i0.ɵɵdefineInjectable({\n    token: HostService,\n    factory: HostService.ɵfac,\n    providedIn: 'root'\n  });\n  return HostService;\n})();\n(() => {\n  (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\n\n// *********************************\nlet AccountsApiService = /*#__PURE__*/(() => {\n  class AccountsApiService {\n    constructor(http, hostService) {\n      this.http = http;\n      this.hostService = hostService;\n      this._host = this.hostService.hostWithScheme;\n    }\n    apiOptions() {\n      return {\n        headers: new HttpHeaders({\n          'Content-Type': 'application/json'\n        }),\n        withCredentials: true\n      };\n    }\n    activateProduct(r) {\n      const request = r.toApiJson ? r : new ActivateProductRequest(r);\n      return this.http.post(this._host + \"/accounts.v2.AccountsService/ActivateProduct\", request.toApiJson(), this.apiOptions()).pipe(map(resp => ActivateProductResponse.fromProto(resp)));\n    }\n    getMultiActivationStatuses(r) {\n      const request = r.toApiJson ? r : new GetMultiActivationStatusesRequest(r);\n      return this.http.post(this._host + \"/accounts.v2.AccountsService/GetMultiActivationStatuses\", request.toApiJson(), this.apiOptions()).pipe(map(resp => GetMultiActivationStatusesResponse.fromProto(resp)));\n    }\n    changeEdition(r) {\n      const request = r.toApiJson ? r : new ChangeEditionRequest(r);\n      return this.http.post(this._host + \"/accounts.v2.AccountsService/ChangeEdition\", request.toApiJson(), this.apiOptions()).pipe(map(resp => ChangeEditionResponse.fromProto(resp)));\n    }\n    listActiveAccountsForProduct(r) {\n      const request = r.toApiJson ? r : new ListActiveAccountsForProductRequest(r);\n      return this.http.post(this._host + \"/accounts.v2.AccountsService/ListActiveAccountsForProduct\", request.toApiJson(), this.apiOptions()).pipe(map(resp => ListActiveAccountsForProductResponse.fromProto(resp)));\n    }\n  }\n  AccountsApiService.ɵfac = function AccountsApiService_Factory(__ngFactoryType__) {\n    return new (__ngFactoryType__ || AccountsApiService)(i0.ɵɵinject(i1.HttpClient), i0.ɵɵinject(HostService));\n  };\n  AccountsApiService.ɵprov = /* @__PURE__ */i0.ɵɵdefineInjectable({\n    token: AccountsApiService,\n    factory: AccountsApiService.ɵfac,\n    providedIn: 'root'\n  });\n  return AccountsApiService;\n})();\n(() => {\n  (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\n\n/* eslint-disable @typescript-eslint/no-unsafe-call */\nlet AccountsService = /*#__PURE__*/(() => {\n  class AccountsService {\n    constructor(api) {\n      this.api = api;\n    }\n    getMultiActivationStatuses(businessIds) {\n      return this.api.getMultiActivationStatuses({\n        businessIds: businessIds\n      }).pipe(map(resp => resp.activationStatuses || []));\n    }\n    listActiveAccountsForProduct(req) {\n      return this.api.listActiveAccountsForProduct(req);\n    }\n  }\n  AccountsService.ɵfac = function AccountsService_Factory(__ngFactoryType__) {\n    return new (__ngFactoryType__ || AccountsService)(i0.ɵɵinject(AccountsApiService));\n  };\n  AccountsService.ɵprov = /* @__PURE__ */i0.ɵɵdefineInjectable({\n    token: AccountsService,\n    factory: AccountsService.ɵfac,\n    providedIn: 'root'\n  });\n  return AccountsService;\n})();\n(() => {\n  (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\n\n// *********************************\n\n/**\n * Generated bundle index. Do not edit.\n */\n\nexport { AccountsApiService, AccountsService, ActivateProductRequest, ActivateProductResponse, ActivationStatus, Blame, BlameDeactivationReasons, BlameSource, ChangeEditionRequest, ChangeEditionResponse, GetMultiActivationStatusesRequest, GetMultiActivationStatusesResponse, GetMultiActivationStatusesResponseAppsAndAddonsActivationStatuses, ListActiveAccountsForProductRequest, ListActiveAccountsForProductResponse, ListActiveAccountsForProductResponseActiveProducts };\n"],"mappings":"sKAiCA,SAASA,EAAoBC,EAASC,EAAO,CAC3C,OAAI,OAAOA,GAAU,SACZA,EAEFD,EAAQC,CAAK,CACtB,CA2DA,SAASC,EAAkBF,EAASC,EAAO,CACzC,OAAI,OAAOA,GAAU,SACZA,EAEFD,EAAQC,CAAK,CACtB,CAtGA,IAYIE,EAWAC,E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AIC,GAAQnC,EAAqC,UAAUmC,CAAI,CAAC,CAAC,CAChN,CACF,CACA,OAAA/B,EAAmB,UAAO,SAAoCuB,EAAmB,CAC/E,OAAO,IAAKA,GAAqBvB,GAAuBgC,EAAYC,CAAU,EAAMD,EAASjC,CAAW,CAAC,CAC3G,EACAC,EAAmB,WAA0BwB,EAAmB,CAC9D,MAAOxB,EACP,QAASA,EAAmB,UAC5B,WAAY,MACd,CAAC,EACMA,CACT,GAAG,EAMCC,GAAgC,IAAM,CACxC,MAAMA,CAAgB,CACpB,YAAYiC,EAAK,CACf,KAAK,IAAMA,CACb,CACA,2BAA2BC,EAAa,CACtC,OAAO,KAAK,IAAI,2BAA2B,CACzC,YAAaA,CACf,CAAC,EAAE,KAAKL,EAAIC,GAAQA,EAAK,oBAAsB,CAAC,CAAC,CAAC,CACpD,CACA,6BAA6BK,EAAK,CAChC,OAAO,KAAK,IAAI,6BAA6BA,CAAG,CAClD,CACF,CACA,OAAAnC,EAAgB,UAAO,SAAiCsB,EAAmB,CACzE,OAAO,IAAKA,GAAqBtB,GAAoB+B,EAAShC,CAAkB,CAAC,CACnF,EACAC,EAAgB,WAA0BuB,EAAmB,CAC3D,MAAOvB,EACP,QAASA,EAAgB,UACzB,WAAY,MACd,CAAC,EACMA,CACT,GAAG","names":["enumStringToValue$1","enumRef","value","enumStringToValue","BlameSource","ActivationStatus","Blame","BlameDeactivationReasons","ActivateProductRequest","ActivateProductResponse","ListActiveAccountsForProductResponseActiveProducts","GetMultiActivationStatusesResponseAppsAndAddonsActivationStatuses","ChangeEditionRequest","ChangeEditionResponse","GetMultiActivationStatusesRequest","GetMultiActivationStatusesResponse","ListActiveAccountsForProductRequest","ListActiveAccountsForProductResponse","environment","hostMap","HostService","AccountsApiService","AccountsService","init_vendasta_accounts","__esmMin","init_core","init_operators","init_http","_Blame","proto","m","kwargs","toReturn","_BlameDeactivationReasons","_ActivateProductRequest","_ActivateProductResponse","_ListActiveAccountsForProductResponseActiveProducts","_GetMultiActivationStatusesResponseAppsAndAddonsActivationStatuses","_ChangeEditionRequest","_ChangeEditionResponse","_GetMultiActivationStatusesRequest","_GetMultiActivationStatusesResponse","_ListActiveAccountsForProductRequest","_ListActiveAccountsForProductResponse","__ngFactoryType__","ɵɵdefineInjectable","http","hostService","HttpHeaders","r","request","map","resp","ɵɵinject","HttpClient","api","businessIds","req"],"x_google_ignoreList":[0]}