{"version":3,"sources":["node_modules/@vendasta/smsv2/fesm2020/vendasta-smsv2.mjs","libs/galaxy/chat/src/chat-bubble/chat-bubble.component.ts","libs/galaxy/chat/src/chat-bubble/chat-bubble.component.html","libs/galaxy/chat/src/chat-divider-text/chat-divider-text.component.ts","libs/galaxy/chat/src/chat-divider-text/chat-divider-text.component.html","libs/galaxy/chat/src/chat-event/chat-event.component.ts","libs/galaxy/chat/src/chat-event/chat-event.component.html","libs/galaxy/chat/src/chat-container/chat-container.component.ts","libs/galaxy/chat/src/chat-container/chat-container.component.html","libs/galaxy/chat/src/chat-message/chat-message.component.ts","libs/galaxy/chat/src/chat-message/chat-message.component.html","libs/galaxy/chat/src/chat-message-group/chat-message-group.component.ts","libs/galaxy/chat/src/chat-message-group/chat-message-group.component.html","libs/galaxy/chat/src/directives/additional-metadata.ts","libs/galaxy/chat/src/chat.module.ts","libs/galaxy/chat/public_api.ts","libs/galaxy/chat/index.ts"],"sourcesContent":["import * as i0 from '@angular/core';\nimport { Injectable, inject } from '@angular/core';\nimport { HttpClient, HttpHeaders } from '@angular/common/http';\nimport { map } from 'rxjs/operators';\n\n// *********************************\n// Code generated by sdkgen\n// DO NOT EDIT!.\n//\n// Enums.\n// *********************************\nvar ParticipantType = /*#__PURE__*/function (ParticipantType) {\n ParticipantType[ParticipantType[\"PARTICIPANT_TYPE_UNKNOWN\"] = 0] = \"PARTICIPANT_TYPE_UNKNOWN\";\n ParticipantType[ParticipantType[\"PARTICIPANT_TYPE_ACCOUNT_GROUP\"] = 1] = \"PARTICIPANT_TYPE_ACCOUNT_GROUP\";\n ParticipantType[ParticipantType[\"PARTICIPANT_TYPE_CUSTOMER\"] = 2] = \"PARTICIPANT_TYPE_CUSTOMER\";\n ParticipantType[ParticipantType[\"PARTICIPANT_TYPE_PARTNER\"] = 3] = \"PARTICIPANT_TYPE_PARTNER\";\n return ParticipantType;\n}(ParticipantType || {});\n// *********************************\n// Code generated by sdkgen\n// DO NOT EDIT!.\n//\n// Enums.\n// *********************************\nvar OwnerType = /*#__PURE__*/function (OwnerType) {\n OwnerType[OwnerType[\"OWNER_TYPE_UNSPECIFIED\"] = 0] = \"OWNER_TYPE_UNSPECIFIED\";\n OwnerType[OwnerType[\"OWNER_TYPE_PARTNER\"] = 1] = \"OWNER_TYPE_PARTNER\";\n OwnerType[OwnerType[\"OWNER_TYPE_ACCOUNT_GROUP\"] = 2] = \"OWNER_TYPE_ACCOUNT_GROUP\";\n return OwnerType;\n}(OwnerType || {});\n// *********************************\n// Code generated by sdkgen\n// DO NOT EDIT!.\n//\n// Enums.\n// *********************************\nvar DataField = /*#__PURE__*/function (DataField) {\n DataField[DataField[\"DATA_FIELD_UNSPECIFIED\"] = 0] = \"DATA_FIELD_UNSPECIFIED\";\n DataField[DataField[\"DATA_FIELD_LEGAL_BUSINESS_NAME\"] = 1] = \"DATA_FIELD_LEGAL_BUSINESS_NAME\";\n DataField[DataField[\"DATA_FIELD_BUSINESS_CATEGORY\"] = 2] = \"DATA_FIELD_BUSINESS_CATEGORY\";\n DataField[DataField[\"DATA_FIELD_BUSINESS_TYPE\"] = 3] = \"DATA_FIELD_BUSINESS_TYPE\";\n DataField[DataField[\"DATA_FIELD_REGION_OF_OPERATION\"] = 4] = \"DATA_FIELD_REGION_OF_OPERATION\";\n DataField[DataField[\"DATA_FIELD_REGISTRATION_IDENTIFIER\"] = 5] = \"DATA_FIELD_REGISTRATION_IDENTIFIER\";\n DataField[DataField[\"DATA_FIELD_STREET_ADDRESS\"] = 6] = \"DATA_FIELD_STREET_ADDRESS\";\n DataField[DataField[\"DATA_FIELD_STREET_ADDRESS_SECONDARY\"] = 7] = \"DATA_FIELD_STREET_ADDRESS_SECONDARY\";\n DataField[DataField[\"DATA_FIELD_CITY\"] = 8] = \"DATA_FIELD_CITY\";\n DataField[DataField[\"DATA_FIELD_STATE\"] = 9] = \"DATA_FIELD_STATE\";\n DataField[DataField[\"DATA_FIELD_POSTAL_CODE\"] = 10] = \"DATA_FIELD_POSTAL_CODE\";\n DataField[DataField[\"DATA_FIELD_WEBSITE_URL\"] = 11] = \"DATA_FIELD_WEBSITE_URL\";\n DataField[DataField[\"DATA_FIELD_COUNTRY\"] = 12] = \"DATA_FIELD_COUNTRY\";\n DataField[DataField[\"DATA_FIELD_FIRST_NAME\"] = 13] = \"DATA_FIELD_FIRST_NAME\";\n DataField[DataField[\"DATA_FIELD_LAST_NAME\"] = 14] = \"DATA_FIELD_LAST_NAME\";\n DataField[DataField[\"DATA_FIELD_JOB_POSITION\"] = 15] = \"DATA_FIELD_JOB_POSITION\";\n DataField[DataField[\"DATA_FIELD_BUSINESS_TITLE\"] = 16] = \"DATA_FIELD_BUSINESS_TITLE\";\n DataField[DataField[\"DATA_FIELD_EMAIL\"] = 17] = \"DATA_FIELD_EMAIL\";\n DataField[DataField[\"DATA_FIELD_PHONE_NUMBER\"] = 18] = \"DATA_FIELD_PHONE_NUMBER\";\n DataField[DataField[\"DATA_FIELD_BUSINESS_REGISTRATION_NUMBER\"] = 19] = \"DATA_FIELD_BUSINESS_REGISTRATION_NUMBER\";\n return DataField;\n}(DataField || {});\nvar BrandStatus = /*#__PURE__*/function (BrandStatus) {\n BrandStatus[BrandStatus[\"BRAND_STATUS_UNSPECIFIED\"] = 0] = \"BRAND_STATUS_UNSPECIFIED\";\n BrandStatus[BrandStatus[\"BRAND_STATUS_PENDING\"] = 1] = \"BRAND_STATUS_PENDING\";\n BrandStatus[BrandStatus[\"BRAND_STATUS_IN_REVIEW\"] = 2] = \"BRAND_STATUS_IN_REVIEW\";\n BrandStatus[BrandStatus[\"BRAND_STATUS_FAILED\"] = 3] = \"BRAND_STATUS_FAILED\";\n BrandStatus[BrandStatus[\"BRAND_STATUS_APPROVED\"] = 4] = \"BRAND_STATUS_APPROVED\";\n return BrandStatus;\n}(BrandStatus || {});\nvar MessagingCampaignStatus = /*#__PURE__*/function (MessagingCampaignStatus) {\n MessagingCampaignStatus[MessagingCampaignStatus[\"MESSAGING_CAMPAIGN_STATUS_UNSPECIFIED\"] = 0] = \"MESSAGING_CAMPAIGN_STATUS_UNSPECIFIED\";\n MessagingCampaignStatus[MessagingCampaignStatus[\"MESSAGING_CAMPAIGN_STATUS_PENDING\"] = 1] = \"MESSAGING_CAMPAIGN_STATUS_PENDING\";\n MessagingCampaignStatus[MessagingCampaignStatus[\"MESSAGING_CAMPAIGN_STATUS_FAILED\"] = 2] = \"MESSAGING_CAMPAIGN_STATUS_FAILED\";\n MessagingCampaignStatus[MessagingCampaignStatus[\"MESSAGING_CAMPAIGN_STATUS_VERIFIED\"] = 3] = \"MESSAGING_CAMPAIGN_STATUS_VERIFIED\";\n return MessagingCampaignStatus;\n}(MessagingCampaignStatus || {});\nvar ValidationStatus = /*#__PURE__*/function (ValidationStatus) {\n ValidationStatus[ValidationStatus[\"VALIDATION_STATUS_UNSPECIFIED\"] = 0] = \"VALIDATION_STATUS_UNSPECIFIED\";\n ValidationStatus[ValidationStatus[\"VALIDATION_STATUS_COMPLIANT\"] = 1] = \"VALIDATION_STATUS_COMPLIANT\";\n ValidationStatus[ValidationStatus[\"VALIDATION_STATUS_NON_COMPLIANT\"] = 2] = \"VALIDATION_STATUS_NON_COMPLIANT\";\n return ValidationStatus;\n}(ValidationStatus || {});\n// *********************************\n// Code generated by sdkgen\n// DO NOT EDIT!.\n//\n// Enums.\n// *********************************\nvar StatusType = /*#__PURE__*/function (StatusType) {\n StatusType[StatusType[\"STATUS_TYPE_UNSPECIFIED\"] = 0] = \"STATUS_TYPE_UNSPECIFIED\";\n StatusType[StatusType[\"STATUS_TYPE_QUEUED\"] = 1] = \"STATUS_TYPE_QUEUED\";\n StatusType[StatusType[\"STATUS_TYPE_SENDING\"] = 2] = \"STATUS_TYPE_SENDING\";\n StatusType[StatusType[\"STATUS_TYPE_SENT\"] = 3] = \"STATUS_TYPE_SENT\";\n StatusType[StatusType[\"STATUS_TYPE_FAILED\"] = 4] = \"STATUS_TYPE_FAILED\";\n StatusType[StatusType[\"STATUS_TYPE_DELIVERED\"] = 5] = \"STATUS_TYPE_DELIVERED\";\n StatusType[StatusType[\"STATUS_TYPE_UNDELIVERED\"] = 6] = \"STATUS_TYPE_UNDELIVERED\";\n StatusType[StatusType[\"STATUS_TYPE_RECEIVING\"] = 7] = \"STATUS_TYPE_RECEIVING\";\n StatusType[StatusType[\"STATUS_TYPE_RECEIVED\"] = 8] = \"STATUS_TYPE_RECEIVED\";\n StatusType[StatusType[\"STATUS_TYPE_ACCEPTED\"] = 9] = \"STATUS_TYPE_ACCEPTED\";\n StatusType[StatusType[\"STATUS_TYPE_SCHEDULED\"] = 10] = \"STATUS_TYPE_SCHEDULED\";\n StatusType[StatusType[\"STATUS_TYPE_CANCELED\"] = 11] = \"STATUS_TYPE_CANCELED\";\n return StatusType;\n}(StatusType || {});\n// *********************************\n// Code generated by sdkgen\n// DO NOT EDIT!.\n//\n// Enums.\n// *********************************\nvar MissedCallTrigger = /*#__PURE__*/function (MissedCallTrigger) {\n MissedCallTrigger[MissedCallTrigger[\"MISSED_CALL_TRIGGER_UNSPECIFIED\"] = 0] = \"MISSED_CALL_TRIGGER_UNSPECIFIED\";\n MissedCallTrigger[MissedCallTrigger[\"MISSED_CALL_TRIGGER_CALL_RECEIVED\"] = 1] = \"MISSED_CALL_TRIGGER_CALL_RECEIVED\";\n MissedCallTrigger[MissedCallTrigger[\"MISSED_CALL_TRIGGER_FORWARDED_CALL_MISSED\"] = 2] = \"MISSED_CALL_TRIGGER_FORWARDED_CALL_MISSED\";\n return MissedCallTrigger;\n}(MissedCallTrigger || {});\n// *********************************\n// Code generated by sdkgen\n// DO NOT EDIT!.\n//\n// Enums.\n// *********************************\nvar CanSendReason = /*#__PURE__*/function (CanSendReason) {\n CanSendReason[CanSendReason[\"CAN_SEND_REASON_UNSPECIFIED\"] = 0] = \"CAN_SEND_REASON_UNSPECIFIED\";\n CanSendReason[CanSendReason[\"CAN_SEND_REASON_MISSING_PHONE_NUMBER\"] = 1] = \"CAN_SEND_REASON_MISSING_PHONE_NUMBER\";\n CanSendReason[CanSendReason[\"CAN_SEND_REASON_MISSING_SUBACCOUNT\"] = 2] = \"CAN_SEND_REASON_MISSING_SUBACCOUNT\";\n CanSendReason[CanSendReason[\"CAN_SEND_REASON_A2P_REGISTRATION_REQUIRED\"] = 3] = \"CAN_SEND_REASON_A2P_REGISTRATION_REQUIRED\";\n CanSendReason[CanSendReason[\"CAN_SEND_REASON_A2P_REGISTRATION_IN_PROGRESS\"] = 4] = \"CAN_SEND_REASON_A2P_REGISTRATION_IN_PROGRESS\";\n CanSendReason[CanSendReason[\"CAN_SEND_REASON_A2P_REGISTRATION_REJECTED\"] = 5] = \"CAN_SEND_REASON_A2P_REGISTRATION_REJECTED\";\n CanSendReason[CanSendReason[\"CAN_SEND_REASON_UNSUPPORTED_COUNTRY\"] = 6] = \"CAN_SEND_REASON_UNSUPPORTED_COUNTRY\";\n CanSendReason[CanSendReason[\"CAN_SEND_REASON_UNSUPPORTED_SENDER\"] = 7] = \"CAN_SEND_REASON_UNSUPPORTED_SENDER\";\n return CanSendReason;\n}(CanSendReason || {});\nvar LimitType = /*#__PURE__*/function (LimitType) {\n LimitType[LimitType[\"LIMIT_TYPE_UNSPECIFIED\"] = 0] = \"LIMIT_TYPE_UNSPECIFIED\";\n LimitType[LimitType[\"LIMIT_TYPE_DAILY\"] = 1] = \"LIMIT_TYPE_DAILY\";\n return LimitType;\n}(LimitType || {});\n// *********************************\n// Code generated by sdkgen\n// DO NOT EDIT!.\n//\n// Enums Index.\n// *********************************\n\nfunction enumStringToValue$6(enumRef, value) {\n if (typeof value === 'number') {\n return value;\n }\n return enumRef[value];\n}\nclass Participant {\n static fromProto(proto) {\n let m = new Participant();\n m = Object.assign(m, proto);\n if (proto.type) {\n m.type = enumStringToValue$6(ParticipantType, proto.type);\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.internalId !== 'undefined') {\n toReturn['internalId'] = this.internalId;\n }\n if (typeof this.type !== 'undefined') {\n toReturn['type'] = this.type;\n }\n return toReturn;\n }\n}\nfunction enumStringToValue$5(enumRef, value) {\n if (typeof value === 'number') {\n return value;\n }\n return enumRef[value];\n}\nclass A2PRegistrationInfo {\n static fromProto(proto) {\n let m = new A2PRegistrationInfo();\n m = Object.assign(m, proto);\n if (proto.ownerType) {\n m.ownerType = enumStringToValue$5(OwnerType, proto.ownerType);\n }\n if (proto.business) {\n m.business = Business.fromProto(proto.business);\n }\n if (proto.authorizedRepresentative) {\n m.authorizedRepresentative = AuthorizedRepresentative.fromProto(proto.authorizedRepresentative);\n }\n if (proto.created) {\n m.created = new Date(proto.created);\n }\n if (proto.updated) {\n m.updated = new Date(proto.updated);\n }\n if (proto.submitted) {\n m.submitted = new Date(proto.submitted);\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.ownerId !== 'undefined') {\n toReturn['ownerId'] = this.ownerId;\n }\n if (typeof this.ownerType !== 'undefined') {\n toReturn['ownerType'] = this.ownerType;\n }\n if (typeof this.friendlyName !== 'undefined') {\n toReturn['friendlyName'] = this.friendlyName;\n }\n if (typeof this.business !== 'undefined' && this.business !== null) {\n toReturn['business'] = 'toApiJson' in this.business ? this.business.toApiJson() : this.business;\n }\n if (typeof this.authorizedRepresentative !== 'undefined' && this.authorizedRepresentative !== null) {\n toReturn['authorizedRepresentative'] = 'toApiJson' in this.authorizedRepresentative ? this.authorizedRepresentative.toApiJson() : this.authorizedRepresentative;\n }\n if (typeof this.created !== 'undefined' && this.created !== null) {\n toReturn['created'] = 'toApiJson' in this.created ? this.created.toApiJson() : this.created;\n }\n if (typeof this.updated !== 'undefined' && this.updated !== null) {\n toReturn['updated'] = 'toApiJson' in this.updated ? this.updated.toApiJson() : this.updated;\n }\n if (typeof this.submitted !== 'undefined' && this.submitted !== null) {\n toReturn['submitted'] = 'toApiJson' in this.submitted ? this.submitted.toApiJson() : this.submitted;\n }\n return toReturn;\n }\n}\nclass A2PRegistrationStatus {\n static fromProto(proto) {\n let m = new A2PRegistrationStatus();\n m = Object.assign(m, proto);\n if (proto.ownerType) {\n m.ownerType = enumStringToValue$5(OwnerType, proto.ownerType);\n }\n if (proto.secondaryBusinessProfile) {\n m.secondaryBusinessProfile = SecondaryBusinessProfile.fromProto(proto.secondaryBusinessProfile);\n }\n if (proto.trustBundle) {\n m.trustBundle = TrustBundle.fromProto(proto.trustBundle);\n }\n if (proto.brand) {\n m.brand = Brand.fromProto(proto.brand);\n }\n if (proto.messagingCampaign) {\n m.messagingCampaign = MessagingCampaign.fromProto(proto.messagingCampaign);\n }\n if (proto.created) {\n m.created = new Date(proto.created);\n }\n if (proto.updated) {\n m.updated = new Date(proto.updated);\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.id !== 'undefined') {\n toReturn['id'] = this.id;\n }\n if (typeof this.ownerId !== 'undefined') {\n toReturn['ownerId'] = this.ownerId;\n }\n if (typeof this.ownerType !== 'undefined') {\n toReturn['ownerType'] = this.ownerType;\n }\n if (typeof this.subaccountId !== 'undefined') {\n toReturn['subaccountId'] = this.subaccountId;\n }\n if (typeof this.messagingServiceId !== 'undefined') {\n toReturn['messagingServiceId'] = this.messagingServiceId;\n }\n if (typeof this.secondaryBusinessProfile !== 'undefined' && this.secondaryBusinessProfile !== null) {\n toReturn['secondaryBusinessProfile'] = 'toApiJson' in this.secondaryBusinessProfile ? this.secondaryBusinessProfile.toApiJson() : this.secondaryBusinessProfile;\n }\n if (typeof this.trustBundle !== 'undefined' && this.trustBundle !== null) {\n toReturn['trustBundle'] = 'toApiJson' in this.trustBundle ? this.trustBundle.toApiJson() : this.trustBundle;\n }\n if (typeof this.brand !== 'undefined' && this.brand !== null) {\n toReturn['brand'] = 'toApiJson' in this.brand ? this.brand.toApiJson() : this.brand;\n }\n if (typeof this.messagingCampaign !== 'undefined' && this.messagingCampaign !== null) {\n toReturn['messagingCampaign'] = 'toApiJson' in this.messagingCampaign ? this.messagingCampaign.toApiJson() : this.messagingCampaign;\n }\n if (typeof this.created !== 'undefined' && this.created !== null) {\n toReturn['created'] = 'toApiJson' in this.created ? this.created.toApiJson() : this.created;\n }\n if (typeof this.updated !== 'undefined' && this.updated !== null) {\n toReturn['updated'] = 'toApiJson' in this.updated ? this.updated.toApiJson() : this.updated;\n }\n return toReturn;\n }\n}\nclass AuthorizedRepresentative {\n static fromProto(proto) {\n let m = new AuthorizedRepresentative();\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.firstName !== 'undefined') {\n toReturn['firstName'] = this.firstName;\n }\n if (typeof this.lastName !== 'undefined') {\n toReturn['lastName'] = this.lastName;\n }\n if (typeof this.email !== 'undefined') {\n toReturn['email'] = this.email;\n }\n if (typeof this.phoneNumber !== 'undefined') {\n toReturn['phoneNumber'] = this.phoneNumber;\n }\n if (typeof this.businessTitle !== 'undefined') {\n toReturn['businessTitle'] = this.businessTitle;\n }\n if (typeof this.jobPosition !== 'undefined') {\n toReturn['jobPosition'] = this.jobPosition;\n }\n return toReturn;\n }\n}\nclass Brand {\n static fromProto(proto) {\n let m = new Brand();\n m = Object.assign(m, proto);\n if (proto.status) {\n m.status = enumStringToValue$5(BrandStatus, proto.status);\n }\n if (proto.updated) {\n m.updated = new Date(proto.updated);\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.id !== 'undefined') {\n toReturn['id'] = this.id;\n }\n if (typeof this.status !== 'undefined') {\n toReturn['status'] = this.status;\n }\n if (typeof this.updated !== 'undefined' && this.updated !== null) {\n toReturn['updated'] = 'toApiJson' in this.updated ? this.updated.toApiJson() : this.updated;\n }\n return toReturn;\n }\n}\nclass Business {\n static fromProto(proto) {\n let m = new Business();\n m = Object.assign(m, proto);\n if (proto.registrationIdentifier) {\n m.registrationIdentifier = RegistrationIdentifier.fromProto(proto.registrationIdentifier);\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.legalName !== 'undefined') {\n toReturn['legalName'] = this.legalName;\n }\n if (typeof this.businessType !== 'undefined') {\n toReturn['businessType'] = this.businessType;\n }\n if (typeof this.industry !== 'undefined') {\n toReturn['industry'] = this.industry;\n }\n if (typeof this.registrationIdentifier !== 'undefined' && this.registrationIdentifier !== null) {\n toReturn['registrationIdentifier'] = 'toApiJson' in this.registrationIdentifier ? this.registrationIdentifier.toApiJson() : this.registrationIdentifier;\n }\n if (typeof this.regionOfOperation !== 'undefined') {\n toReturn['regionOfOperation'] = this.regionOfOperation;\n }\n if (typeof this.websiteUrl !== 'undefined') {\n toReturn['websiteUrl'] = this.websiteUrl;\n }\n if (typeof this.socialMediaProfileUrls !== 'undefined') {\n toReturn['socialMediaProfileUrls'] = this.socialMediaProfileUrls;\n }\n if (typeof this.streetAddress !== 'undefined') {\n toReturn['streetAddress'] = this.streetAddress;\n }\n if (typeof this.streetAddressSecondary !== 'undefined') {\n toReturn['streetAddressSecondary'] = this.streetAddressSecondary;\n }\n if (typeof this.city !== 'undefined') {\n toReturn['city'] = this.city;\n }\n if (typeof this.state !== 'undefined') {\n toReturn['state'] = this.state;\n }\n if (typeof this.postalCode !== 'undefined') {\n toReturn['postalCode'] = this.postalCode;\n }\n if (typeof this.country !== 'undefined') {\n toReturn['country'] = this.country;\n }\n return toReturn;\n }\n}\nclass MessagingCampaign {\n static fromProto(proto) {\n let m = new MessagingCampaign();\n m = Object.assign(m, proto);\n if (proto.status) {\n m.status = enumStringToValue$5(MessagingCampaignStatus, proto.status);\n }\n if (proto.updated) {\n m.updated = new Date(proto.updated);\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.id !== 'undefined') {\n toReturn['id'] = this.id;\n }\n if (typeof this.status !== 'undefined') {\n toReturn['status'] = this.status;\n }\n if (typeof this.updated !== 'undefined' && this.updated !== null) {\n toReturn['updated'] = 'toApiJson' in this.updated ? this.updated.toApiJson() : this.updated;\n }\n return toReturn;\n }\n}\nclass RegistrationIdentifier {\n static fromProto(proto) {\n let m = new RegistrationIdentifier();\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.identifierType !== 'undefined') {\n toReturn['identifierType'] = this.identifierType;\n }\n if (typeof this.identifier !== 'undefined') {\n toReturn['identifier'] = this.identifier;\n }\n return toReturn;\n }\n}\nclass SecondaryBusinessProfile {\n static fromProto(proto) {\n let m = new SecondaryBusinessProfile();\n m = Object.assign(m, proto);\n if (proto.status) {\n m.status = enumStringToValue$5(ValidationStatus, proto.status);\n }\n if (proto.fieldsWithIssues) {\n m.fieldsWithIssues = proto.fieldsWithIssues.map(v => enumStringToValue$5(DataField, v));\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.id !== 'undefined') {\n toReturn['id'] = this.id;\n }\n if (typeof this.status !== 'undefined') {\n toReturn['status'] = this.status;\n }\n if (typeof this.authorizedRepresentativeId !== 'undefined') {\n toReturn['authorizedRepresentativeId'] = this.authorizedRepresentativeId;\n }\n if (typeof this.addressResourceId !== 'undefined') {\n toReturn['addressResourceId'] = this.addressResourceId;\n }\n if (typeof this.addressSupportingDocumentId !== 'undefined') {\n toReturn['addressSupportingDocumentId'] = this.addressSupportingDocumentId;\n }\n if (typeof this.secondaryBusinessInformationId !== 'undefined') {\n toReturn['secondaryBusinessInformationId'] = this.secondaryBusinessInformationId;\n }\n if (typeof this.fieldsWithIssues !== 'undefined') {\n toReturn['fieldsWithIssues'] = this.fieldsWithIssues;\n }\n return toReturn;\n }\n}\nclass TrustBundle {\n static fromProto(proto) {\n let m = new TrustBundle();\n m = Object.assign(m, proto);\n if (proto.status) {\n m.status = enumStringToValue$5(ValidationStatus, proto.status);\n }\n if (proto.fieldsWithIssues) {\n m.fieldsWithIssues = proto.fieldsWithIssues.map(v => enumStringToValue$5(DataField, v));\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.id !== 'undefined') {\n toReturn['id'] = this.id;\n }\n if (typeof this.status !== 'undefined') {\n toReturn['status'] = this.status;\n }\n if (typeof this.companyId !== 'undefined') {\n toReturn['companyId'] = this.companyId;\n }\n if (typeof this.fieldsWithIssues !== 'undefined') {\n toReturn['fieldsWithIssues'] = this.fieldsWithIssues;\n }\n return toReturn;\n }\n}\nfunction enumStringToValue$4(enumRef, value) {\n if (typeof value === 'number') {\n return value;\n }\n return enumRef[value];\n}\nclass Attribute {\n static fromProto(proto) {\n let m = new Attribute();\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.key !== 'undefined') {\n toReturn['key'] = this.key;\n }\n if (typeof this.value !== 'undefined') {\n toReturn['value'] = this.value;\n }\n return toReturn;\n }\n}\nfunction enumStringToValue$3(enumRef, value) {\n if (typeof value === 'number') {\n return value;\n }\n return enumRef[value];\n}\nclass SupportingDocumentInfo {\n static fromProto(proto) {\n let m = new SupportingDocumentInfo();\n m = Object.assign(m, proto);\n if (proto.attributes) {\n m.attributes = proto.attributes.map(Attribute.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.documentType !== 'undefined') {\n toReturn['documentType'] = this.documentType;\n }\n if (typeof this.attributes !== 'undefined' && this.attributes !== null) {\n toReturn['attributes'] = 'toApiJson' in this.attributes ? this.attributes.toApiJson() : this.attributes;\n }\n if (typeof this.fileId !== 'undefined') {\n toReturn['fileId'] = this.fileId;\n }\n if (typeof this.processAddress !== 'undefined') {\n toReturn['processAddress'] = this.processAddress;\n }\n return toReturn;\n }\n}\nfunction enumStringToValue$2(enumRef, value) {\n if (typeof value === 'number') {\n return value;\n }\n return enumRef[value];\n}\nclass CallForwardingConfig {\n static fromProto(proto) {\n let m = new CallForwardingConfig();\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.phoneNumber !== 'undefined') {\n toReturn['phoneNumber'] = this.phoneNumber;\n }\n if (typeof this.enabled !== 'undefined') {\n toReturn['enabled'] = this.enabled;\n }\n return toReturn;\n }\n}\nclass MissedCallMessagingConfig {\n static fromProto(proto) {\n let m = new MissedCallMessagingConfig();\n m = Object.assign(m, proto);\n if (proto.trigger) {\n m.trigger = enumStringToValue$2(MissedCallTrigger, proto.trigger);\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.enabled !== 'undefined') {\n toReturn['enabled'] = this.enabled;\n }\n if (typeof this.trigger !== 'undefined') {\n toReturn['trigger'] = this.trigger;\n }\n if (typeof this.messageContent !== 'undefined') {\n toReturn['messageContent'] = this.messageContent;\n }\n return toReturn;\n }\n}\nclass PhoneNumberConfig {\n static fromProto(proto) {\n let m = new PhoneNumberConfig();\n m = Object.assign(m, proto);\n if (proto.callForwarding) {\n m.callForwarding = CallForwardingConfig.fromProto(proto.callForwarding);\n }\n if (proto.missedCallMessaging) {\n m.missedCallMessaging = MissedCallMessagingConfig.fromProto(proto.missedCallMessaging);\n }\n if (proto.voiceAi) {\n m.voiceAi = VoiceAIConfig.fromProto(proto.voiceAi);\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.callForwarding !== 'undefined' && this.callForwarding !== null) {\n toReturn['callForwarding'] = 'toApiJson' in this.callForwarding ? this.callForwarding.toApiJson() : this.callForwarding;\n }\n if (typeof this.missedCallMessaging !== 'undefined' && this.missedCallMessaging !== null) {\n toReturn['missedCallMessaging'] = 'toApiJson' in this.missedCallMessaging ? this.missedCallMessaging.toApiJson() : this.missedCallMessaging;\n }\n if (typeof this.voiceAi !== 'undefined' && this.voiceAi !== null) {\n toReturn['voiceAi'] = 'toApiJson' in this.voiceAi ? this.voiceAi.toApiJson() : this.voiceAi;\n }\n return toReturn;\n }\n}\nclass VoiceAIConfig {\n static fromProto(proto) {\n let m = new VoiceAIConfig();\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.enabled !== 'undefined') {\n toReturn['enabled'] = this.enabled;\n }\n return toReturn;\n }\n}\nfunction enumStringToValue$1(enumRef, value) {\n if (typeof value === 'number') {\n return value;\n }\n return enumRef[value];\n}\nclass Access {\n static fromProto(proto) {\n let m = new Access();\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.scope !== 'undefined') {\n toReturn['scope'] = this.scope;\n }\n if (typeof this.public !== 'undefined') {\n toReturn['public'] = this.public;\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 CanSendSmsRequest {\n static fromProto(proto) {\n let m = new CanSendSmsRequest();\n m = Object.assign(m, proto);\n if (proto.sender) {\n m.sender = Sender.fromProto(proto.sender);\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.sender !== 'undefined' && this.sender !== null) {\n toReturn['sender'] = 'toApiJson' in this.sender ? this.sender.toApiJson() : this.sender;\n }\n return toReturn;\n }\n}\nclass CanSendSmsResponse {\n static fromProto(proto) {\n let m = new CanSendSmsResponse();\n m = Object.assign(m, proto);\n if (proto.reason) {\n m.reason = enumStringToValue(CanSendReason, proto.reason);\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.canSendSms !== 'undefined') {\n toReturn['canSendSms'] = this.canSendSms;\n }\n if (typeof this.reason !== 'undefined') {\n toReturn['reason'] = this.reason;\n }\n return toReturn;\n }\n}\nclass ClaimPhoneNumberRequest {\n static fromProto(proto) {\n let m = new ClaimPhoneNumberRequest();\n m = Object.assign(m, proto);\n if (proto.ownerType) {\n m.ownerType = enumStringToValue(OwnerType, proto.ownerType);\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.ownerId !== 'undefined') {\n toReturn['ownerId'] = this.ownerId;\n }\n if (typeof this.ownerType !== 'undefined') {\n toReturn['ownerType'] = this.ownerType;\n }\n return toReturn;\n }\n}\nclass CreateA2PRegistrationInfoRequest {\n static fromProto(proto) {\n let m = new CreateA2PRegistrationInfoRequest();\n m = Object.assign(m, proto);\n if (proto.ownerType) {\n m.ownerType = enumStringToValue(OwnerType, proto.ownerType);\n }\n if (proto.business) {\n m.business = Business.fromProto(proto.business);\n }\n if (proto.authorizedRepresentative) {\n m.authorizedRepresentative = AuthorizedRepresentative.fromProto(proto.authorizedRepresentative);\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.ownerId !== 'undefined') {\n toReturn['ownerId'] = this.ownerId;\n }\n if (typeof this.ownerType !== 'undefined') {\n toReturn['ownerType'] = this.ownerType;\n }\n if (typeof this.business !== 'undefined' && this.business !== null) {\n toReturn['business'] = 'toApiJson' in this.business ? this.business.toApiJson() : this.business;\n }\n if (typeof this.authorizedRepresentative !== 'undefined' && this.authorizedRepresentative !== null) {\n toReturn['authorizedRepresentative'] = 'toApiJson' in this.authorizedRepresentative ? this.authorizedRepresentative.toApiJson() : this.authorizedRepresentative;\n }\n if (typeof this.submitted !== 'undefined') {\n toReturn['submitted'] = this.submitted;\n }\n return toReturn;\n }\n}\nclass CreateRegulationInfoRequest {\n static fromProto(proto) {\n let m = new CreateRegulationInfoRequest();\n m = Object.assign(m, proto);\n if (proto.ownerType) {\n m.ownerType = enumStringToValue(OwnerType, proto.ownerType);\n }\n if (proto.businessAttributes) {\n m.businessAttributes = proto.businessAttributes.map(Attribute.fromProto);\n }\n if (proto.supportingDocuments) {\n m.supportingDocuments = proto.supportingDocuments.map(SupportingDocumentInfo.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.namespace !== 'undefined') {\n toReturn['namespace'] = this.namespace;\n }\n if (typeof this.ownerId !== 'undefined') {\n toReturn['ownerId'] = this.ownerId;\n }\n if (typeof this.ownerType !== 'undefined') {\n toReturn['ownerType'] = this.ownerType;\n }\n if (typeof this.countryCode !== 'undefined') {\n toReturn['countryCode'] = this.countryCode;\n }\n if (typeof this.businessAttributes !== 'undefined' && this.businessAttributes !== null) {\n toReturn['businessAttributes'] = 'toApiJson' in this.businessAttributes ? this.businessAttributes.toApiJson() : this.businessAttributes;\n }\n if (typeof this.supportingDocuments !== 'undefined' && this.supportingDocuments !== null) {\n toReturn['supportingDocuments'] = 'toApiJson' in this.supportingDocuments ? this.supportingDocuments.toApiJson() : this.supportingDocuments;\n }\n return toReturn;\n }\n}\nclass CreateRegulationInfoResponse {\n static fromProto(proto) {\n let m = new CreateRegulationInfoResponse();\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.regulationInfoId !== 'undefined') {\n toReturn['regulationInfoId'] = this.regulationInfoId;\n }\n return toReturn;\n }\n}\nclass CreateSmsClickedEventRequest {\n static fromProto(proto) {\n let m = new CreateSmsClickedEventRequest();\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.messageUuid !== 'undefined') {\n toReturn['messageUuid'] = this.messageUuid;\n }\n return toReturn;\n }\n}\nclass DeleteA2PRegistrationInfoRequest {\n static fromProto(proto) {\n let m = new DeleteA2PRegistrationInfoRequest();\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.ownerId !== 'undefined') {\n toReturn['ownerId'] = this.ownerId;\n }\n return toReturn;\n }\n}\nclass GetA2PRegistrationInfoRequest {\n static fromProto(proto) {\n let m = new GetA2PRegistrationInfoRequest();\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.ownerId !== 'undefined') {\n toReturn['ownerId'] = this.ownerId;\n }\n return toReturn;\n }\n}\nclass GetA2PRegistrationInfoResponse {\n static fromProto(proto) {\n let m = new GetA2PRegistrationInfoResponse();\n m = Object.assign(m, proto);\n if (proto.a2pRegistrationInfo) {\n m.a2pRegistrationInfo = A2PRegistrationInfo.fromProto(proto.a2pRegistrationInfo);\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.a2pRegistrationInfo !== 'undefined' && this.a2pRegistrationInfo !== null) {\n toReturn['a2pRegistrationInfo'] = 'toApiJson' in this.a2pRegistrationInfo ? this.a2pRegistrationInfo.toApiJson() : this.a2pRegistrationInfo;\n }\n return toReturn;\n }\n}\nclass GetAccountInfoRequest {\n static fromProto(proto) {\n let m = new GetAccountInfoRequest();\n m = Object.assign(m, proto);\n if (proto.sender) {\n m.sender = Participant.fromProto(proto.sender);\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.sender !== 'undefined' && this.sender !== null) {\n toReturn['sender'] = 'toApiJson' in this.sender ? this.sender.toApiJson() : this.sender;\n }\n if (typeof this.namespace !== 'undefined') {\n toReturn['namespace'] = this.namespace;\n }\n return toReturn;\n }\n}\nclass GetAccountInfoResponse {\n static fromProto(proto) {\n let m = new GetAccountInfoResponse();\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.phoneNumber !== 'undefined') {\n toReturn['phoneNumber'] = this.phoneNumber;\n }\n if (typeof this.subaccountId !== 'undefined') {\n toReturn['subaccountId'] = this.subaccountId;\n }\n return toReturn;\n }\n}\nclass GetAttributeEventStatsRequest {\n static fromProto(proto) {\n let m = new GetAttributeEventStatsRequest();\n m = Object.assign(m, proto);\n if (proto.sender) {\n m.sender = Sender.fromProto(proto.sender);\n }\n if (proto.attribute) {\n m.attribute = Attribute.fromProto(proto.attribute);\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.sender !== 'undefined' && this.sender !== null) {\n toReturn['sender'] = 'toApiJson' in this.sender ? this.sender.toApiJson() : this.sender;\n }\n if (typeof this.attribute !== 'undefined' && this.attribute !== null) {\n toReturn['attribute'] = 'toApiJson' in this.attribute ? this.attribute.toApiJson() : this.attribute;\n }\n return toReturn;\n }\n}\nclass GetAttributeEventStatsResponse {\n static fromProto(proto) {\n let m = new GetAttributeEventStatsResponse();\n m = Object.assign(m, proto);\n if (proto.stats) {\n m.stats = proto.stats.map(StatusStat.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.stats !== 'undefined' && this.stats !== null) {\n toReturn['stats'] = 'toApiJson' in this.stats ? this.stats.toApiJson() : this.stats;\n }\n return toReturn;\n }\n}\nclass GetLatestA2PRegistrationStatusRequest {\n static fromProto(proto) {\n let m = new GetLatestA2PRegistrationStatusRequest();\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.ownerId !== 'undefined') {\n toReturn['ownerId'] = this.ownerId;\n }\n if (typeof this.subaccountId !== 'undefined') {\n toReturn['subaccountId'] = this.subaccountId;\n }\n return toReturn;\n }\n}\nclass GetLatestA2PRegistrationStatusResponse {\n static fromProto(proto) {\n let m = new GetLatestA2PRegistrationStatusResponse();\n m = Object.assign(m, proto);\n if (proto.status) {\n m.status = A2PRegistrationStatus.fromProto(proto.status);\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.status !== 'undefined' && this.status !== null) {\n toReturn['status'] = 'toApiJson' in this.status ? this.status.toApiJson() : this.status;\n }\n return toReturn;\n }\n}\nclass GetLimitRequest {\n static fromProto(proto) {\n let m = new GetLimitRequest();\n m = Object.assign(m, proto);\n if (proto.limitType) {\n m.limitType = enumStringToValue(LimitType, proto.limitType);\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.namespace !== 'undefined') {\n toReturn['namespace'] = this.namespace;\n }\n if (typeof this.ownerId !== 'undefined') {\n toReturn['ownerId'] = this.ownerId;\n }\n if (typeof this.limitType !== 'undefined') {\n toReturn['limitType'] = this.limitType;\n }\n return toReturn;\n }\n}\nclass GetLimitResponse {\n static fromProto(proto) {\n let m = new GetLimitResponse();\n m = Object.assign(m, proto);\n if (proto.limitType) {\n m.limitType = enumStringToValue(LimitType, proto.limitType);\n }\n if (proto.usage) {\n m.usage = parseInt(proto.usage, 10);\n }\n if (proto.limit) {\n m.limit = parseInt(proto.limit, 10);\n }\n if (proto.created) {\n m.created = new Date(proto.created);\n }\n if (proto.updated) {\n m.updated = new Date(proto.updated);\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.namespace !== 'undefined') {\n toReturn['namespace'] = this.namespace;\n }\n if (typeof this.ownerId !== 'undefined') {\n toReturn['ownerId'] = this.ownerId;\n }\n if (typeof this.limitType !== 'undefined') {\n toReturn['limitType'] = this.limitType;\n }\n if (typeof this.usage !== 'undefined') {\n toReturn['usage'] = this.usage;\n }\n if (typeof this.limit !== 'undefined') {\n toReturn['limit'] = this.limit;\n }\n if (typeof this.created !== 'undefined' && this.created !== null) {\n toReturn['created'] = 'toApiJson' in this.created ? this.created.toApiJson() : this.created;\n }\n if (typeof this.updated !== 'undefined' && this.updated !== null) {\n toReturn['updated'] = 'toApiJson' in this.updated ? this.updated.toApiJson() : this.updated;\n }\n return toReturn;\n }\n}\nclass GetPhoneNumberConfigRequest {\n static fromProto(proto) {\n let m = new GetPhoneNumberConfigRequest();\n m = Object.assign(m, proto);\n if (proto.ownerType) {\n m.ownerType = enumStringToValue(OwnerType, proto.ownerType);\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.ownerId !== 'undefined') {\n toReturn['ownerId'] = this.ownerId;\n }\n if (typeof this.ownerType !== 'undefined') {\n toReturn['ownerType'] = this.ownerType;\n }\n return toReturn;\n }\n}\nclass GetPhoneNumberConfigResponse {\n static fromProto(proto) {\n let m = new GetPhoneNumberConfigResponse();\n m = Object.assign(m, proto);\n if (proto.phoneNumberConfig) {\n m.phoneNumberConfig = PhoneNumberConfig.fromProto(proto.phoneNumberConfig);\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.phoneNumberConfig !== 'undefined' && this.phoneNumberConfig !== null) {\n toReturn['phoneNumberConfig'] = 'toApiJson' in this.phoneNumberConfig ? this.phoneNumberConfig.toApiJson() : this.phoneNumberConfig;\n }\n return toReturn;\n }\n}\nclass Media {\n static fromProto(proto) {\n let m = new Media();\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.contentType !== 'undefined') {\n toReturn['contentType'] = this.contentType;\n }\n if (typeof this.locationPath !== 'undefined') {\n toReturn['locationPath'] = this.locationPath;\n }\n if (typeof this.fileName !== 'undefined') {\n toReturn['fileName'] = this.fileName;\n }\n return toReturn;\n }\n}\nclass Recipient {\n static fromProto(proto) {\n let m = new Recipient();\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.phoneNumber !== 'undefined') {\n toReturn['phoneNumber'] = this.phoneNumber;\n }\n return toReturn;\n }\n}\nclass SendMessageRequest {\n static fromProto(proto) {\n let m = new SendMessageRequest();\n m = Object.assign(m, proto);\n if (proto.media) {\n m.media = proto.media.map(Media.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.accountGroupId !== 'undefined') {\n toReturn['accountGroupId'] = this.accountGroupId;\n }\n if (typeof this.conversationId !== 'undefined') {\n toReturn['conversationId'] = this.conversationId;\n }\n if (typeof this.recipientPhoneNumber !== 'undefined') {\n toReturn['recipientPhoneNumber'] = this.recipientPhoneNumber;\n }\n if (typeof this.messageBody !== 'undefined') {\n toReturn['messageBody'] = this.messageBody;\n }\n if (typeof this.media !== 'undefined' && this.media !== null) {\n toReturn['media'] = 'toApiJson' in this.media ? this.media.toApiJson() : this.media;\n }\n return toReturn;\n }\n}\nclass SendMessageResponse {\n static fromProto(proto) {\n let m = new SendMessageResponse();\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.messageId !== 'undefined') {\n toReturn['messageId'] = this.messageId;\n }\n if (typeof this.conversationId !== 'undefined') {\n toReturn['conversationId'] = this.conversationId;\n }\n return toReturn;\n }\n}\nclass SendMessageV2Request {\n static fromProto(proto) {\n let m = new SendMessageV2Request();\n m = Object.assign(m, proto);\n if (proto.sender) {\n m.sender = Sender.fromProto(proto.sender);\n }\n if (proto.recipient) {\n m.recipient = Recipient.fromProto(proto.recipient);\n }\n if (proto.attributes) {\n m.attributes = proto.attributes.map(Attribute.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.sender !== 'undefined' && this.sender !== null) {\n toReturn['sender'] = 'toApiJson' in this.sender ? this.sender.toApiJson() : this.sender;\n }\n if (typeof this.recipient !== 'undefined' && this.recipient !== null) {\n toReturn['recipient'] = 'toApiJson' in this.recipient ? this.recipient.toApiJson() : this.recipient;\n }\n if (typeof this.messageBody !== 'undefined') {\n toReturn['messageBody'] = this.messageBody;\n }\n if (typeof this.attributes !== 'undefined' && this.attributes !== null) {\n toReturn['attributes'] = 'toApiJson' in this.attributes ? this.attributes.toApiJson() : this.attributes;\n }\n if (typeof this.idempotencyKey !== 'undefined') {\n toReturn['idempotencyKey'] = this.idempotencyKey;\n }\n if (typeof this.mediaUrls !== 'undefined') {\n toReturn['mediaUrls'] = this.mediaUrls;\n }\n return toReturn;\n }\n}\nclass SendMessageV2Response {\n static fromProto(proto) {\n let m = new SendMessageV2Response();\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.messageId !== 'undefined') {\n toReturn['messageId'] = this.messageId;\n }\n return toReturn;\n }\n}\nclass Sender {\n static fromProto(proto) {\n let m = new Sender();\n m = Object.assign(m, proto);\n if (proto.ownerType) {\n m.ownerType = enumStringToValue(OwnerType, proto.ownerType);\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.ownerId !== 'undefined') {\n toReturn['ownerId'] = this.ownerId;\n }\n if (typeof this.ownerType !== 'undefined') {\n toReturn['ownerType'] = this.ownerType;\n }\n if (typeof this.namespace !== 'undefined') {\n toReturn['namespace'] = this.namespace;\n }\n return toReturn;\n }\n}\nclass StatusStat {\n static fromProto(proto) {\n let m = new StatusStat();\n m = Object.assign(m, proto);\n if (proto.status) {\n m.status = enumStringToValue(StatusType, proto.status);\n }\n if (proto.value) {\n m.value = parseInt(proto.value, 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.status !== 'undefined') {\n toReturn['status'] = this.status;\n }\n if (typeof this.value !== 'undefined') {\n toReturn['value'] = this.value;\n }\n return toReturn;\n }\n}\nclass TriggerA2PRegistrationRequest {\n static fromProto(proto) {\n let m = new TriggerA2PRegistrationRequest();\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.ownerId !== 'undefined') {\n toReturn['ownerId'] = this.ownerId;\n }\n return toReturn;\n }\n}\nclass UpsertA2PRegistrationInfoRequest {\n static fromProto(proto) {\n let m = new UpsertA2PRegistrationInfoRequest();\n m = Object.assign(m, proto);\n if (proto.ownerType) {\n m.ownerType = enumStringToValue(OwnerType, proto.ownerType);\n }\n if (proto.business) {\n m.business = Business.fromProto(proto.business);\n }\n if (proto.authorizedRepresentative) {\n m.authorizedRepresentative = AuthorizedRepresentative.fromProto(proto.authorizedRepresentative);\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.ownerId !== 'undefined') {\n toReturn['ownerId'] = this.ownerId;\n }\n if (typeof this.ownerType !== 'undefined') {\n toReturn['ownerType'] = this.ownerType;\n }\n if (typeof this.business !== 'undefined' && this.business !== null) {\n toReturn['business'] = 'toApiJson' in this.business ? this.business.toApiJson() : this.business;\n }\n if (typeof this.authorizedRepresentative !== 'undefined' && this.authorizedRepresentative !== null) {\n toReturn['authorizedRepresentative'] = 'toApiJson' in this.authorizedRepresentative ? this.authorizedRepresentative.toApiJson() : this.authorizedRepresentative;\n }\n if (typeof this.submitted !== 'undefined') {\n toReturn['submitted'] = this.submitted;\n }\n return toReturn;\n }\n}\nclass UpsertPhoneNumberConfigRequest {\n static fromProto(proto) {\n let m = new UpsertPhoneNumberConfigRequest();\n m = Object.assign(m, proto);\n if (proto.ownerType) {\n m.ownerType = enumStringToValue(OwnerType, proto.ownerType);\n }\n if (proto.phoneNumberConfig) {\n m.phoneNumberConfig = PhoneNumberConfig.fromProto(proto.phoneNumberConfig);\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.ownerId !== 'undefined') {\n toReturn['ownerId'] = this.ownerId;\n }\n if (typeof this.ownerType !== 'undefined') {\n toReturn['ownerType'] = this.ownerType;\n }\n if (typeof this.phoneNumberConfig !== 'undefined' && this.phoneNumberConfig !== null) {\n toReturn['phoneNumberConfig'] = 'toApiJson' in this.phoneNumberConfig ? this.phoneNumberConfig.toApiJson() : this.phoneNumberConfig;\n }\n return toReturn;\n }\n}\n\n// *********************************\n// Code generated by sdkgen\n// DO NOT EDIT!.\n//\n// Objects Index.\n// *********************************\n\nconst environment = (window ? window['environment'] : 'prod') ?? 'prod';\nconst hostMap = {\n 'local': 'sms-api.vendasta-local.com',\n 'test': '',\n 'demo': 'sms-demo.apigateway.co',\n 'prod': 'sms-prod.apigateway.co',\n 'production': 'sms-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// *********************************\n// Code generated by sdkgen\n// DO NOT EDIT!.\n//\n// API Service.\n// *********************************\nlet A2PRegistrationApiService = /*#__PURE__*/(() => {\n class A2PRegistrationApiService {\n constructor() {\n this.hostService = inject(HostService);\n this.http = inject(HttpClient);\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 createA2pRegistrationInfo(r) {\n const request = r.toApiJson ? r : new CreateA2PRegistrationInfoRequest(r);\n return this.http.post(this._host + \"/sms.v2.A2PRegistration/CreateA2PRegistrationInfo\", request.toApiJson(), {\n ...this.apiOptions(),\n observe: 'response'\n });\n }\n getA2pRegistrationInfo(r) {\n const request = r.toApiJson ? r : new GetA2PRegistrationInfoRequest(r);\n return this.http.post(this._host + \"/sms.v2.A2PRegistration/GetA2PRegistrationInfo\", request.toApiJson(), this.apiOptions()).pipe(map(resp => GetA2PRegistrationInfoResponse.fromProto(resp)));\n }\n deleteA2pRegistrationInfo(r) {\n const request = r.toApiJson ? r : new DeleteA2PRegistrationInfoRequest(r);\n return this.http.post(this._host + \"/sms.v2.A2PRegistration/DeleteA2PRegistrationInfo\", request.toApiJson(), {\n ...this.apiOptions(),\n observe: 'response'\n });\n }\n upsertA2pRegistrationInfo(r) {\n const request = r.toApiJson ? r : new UpsertA2PRegistrationInfoRequest(r);\n return this.http.post(this._host + \"/sms.v2.A2PRegistration/UpsertA2PRegistrationInfo\", request.toApiJson(), {\n ...this.apiOptions(),\n observe: 'response'\n });\n }\n getLatestA2pRegistrationStatus(r) {\n const request = r.toApiJson ? r : new GetLatestA2PRegistrationStatusRequest(r);\n return this.http.post(this._host + \"/sms.v2.A2PRegistration/GetLatestA2PRegistrationStatus\", request.toApiJson(), this.apiOptions()).pipe(map(resp => GetLatestA2PRegistrationStatusResponse.fromProto(resp)));\n }\n triggerA2pRegistration(r) {\n const request = r.toApiJson ? r : new TriggerA2PRegistrationRequest(r);\n return this.http.post(this._host + \"/sms.v2.A2PRegistration/TriggerA2PRegistration\", request.toApiJson(), {\n ...this.apiOptions(),\n observe: 'response'\n });\n }\n }\n A2PRegistrationApiService.ɵfac = function A2PRegistrationApiService_Factory(__ngFactoryType__) {\n return new (__ngFactoryType__ || A2PRegistrationApiService)();\n };\n A2PRegistrationApiService.ɵprov = /* @__PURE__ */i0.ɵɵdefineInjectable({\n token: A2PRegistrationApiService,\n factory: A2PRegistrationApiService.ɵfac,\n providedIn: 'root'\n });\n return A2PRegistrationApiService;\n})();\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\n\n// *********************************\n// Code generated by sdkgen\n// DO NOT EDIT!.\n//\n// API Service.\n// *********************************\nlet ConfigApiService = /*#__PURE__*/(() => {\n class ConfigApiService {\n constructor() {\n this.hostService = inject(HostService);\n this.http = inject(HttpClient);\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 getPhoneNumberConfig(r) {\n const request = r.toApiJson ? r : new GetPhoneNumberConfigRequest(r);\n return this.http.post(this._host + \"/sms.v2.ConfigService/GetPhoneNumberConfig\", request.toApiJson(), this.apiOptions()).pipe(map(resp => GetPhoneNumberConfigResponse.fromProto(resp)));\n }\n upsertPhoneNumberConfig(r) {\n const request = r.toApiJson ? r : new UpsertPhoneNumberConfigRequest(r);\n return this.http.post(this._host + \"/sms.v2.ConfigService/UpsertPhoneNumberConfig\", request.toApiJson(), {\n ...this.apiOptions(),\n observe: 'response'\n });\n }\n }\n ConfigApiService.ɵfac = function ConfigApiService_Factory(__ngFactoryType__) {\n return new (__ngFactoryType__ || ConfigApiService)();\n };\n ConfigApiService.ɵprov = /* @__PURE__ */i0.ɵɵdefineInjectable({\n token: ConfigApiService,\n factory: ConfigApiService.ɵfac,\n providedIn: 'root'\n });\n return ConfigApiService;\n})();\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\n\n// *********************************\n// Code generated by sdkgen\n// DO NOT EDIT!.\n//\n// API Service.\n// *********************************\nlet ConversationApiService = /*#__PURE__*/(() => {\n class ConversationApiService {\n constructor() {\n this.hostService = inject(HostService);\n this.http = inject(HttpClient);\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 sendMessage(r) {\n const request = r.toApiJson ? r : new SendMessageRequest(r);\n return this.http.post(this._host + \"/sms.v2.ConversationService/SendMessage\", request.toApiJson(), this.apiOptions()).pipe(map(resp => SendMessageResponse.fromProto(resp)));\n }\n claimPhoneNumber(r) {\n const request = r.toApiJson ? r : new ClaimPhoneNumberRequest(r);\n return this.http.post(this._host + \"/sms.v2.ConversationService/ClaimPhoneNumber\", request.toApiJson(), {\n ...this.apiOptions(),\n observe: 'response'\n });\n }\n }\n ConversationApiService.ɵfac = function ConversationApiService_Factory(__ngFactoryType__) {\n return new (__ngFactoryType__ || ConversationApiService)();\n };\n ConversationApiService.ɵprov = /* @__PURE__ */i0.ɵɵdefineInjectable({\n token: ConversationApiService,\n factory: ConversationApiService.ɵfac,\n providedIn: 'root'\n });\n return ConversationApiService;\n})();\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\n\n// *********************************\n// Code generated by sdkgen\n// DO NOT EDIT!.\n//\n// API Service.\n// *********************************\nlet EventApiService = /*#__PURE__*/(() => {\n class EventApiService {\n constructor() {\n this.hostService = inject(HostService);\n this.http = inject(HttpClient);\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 getAttributeEventStats(r) {\n const request = r.toApiJson ? r : new GetAttributeEventStatsRequest(r);\n return this.http.post(this._host + \"/sms.v2.EventService/GetAttributeEventStats\", request.toApiJson(), this.apiOptions()).pipe(map(resp => GetAttributeEventStatsResponse.fromProto(resp)));\n }\n }\n EventApiService.ɵfac = function EventApiService_Factory(__ngFactoryType__) {\n return new (__ngFactoryType__ || EventApiService)();\n };\n EventApiService.ɵprov = /* @__PURE__ */i0.ɵɵdefineInjectable({\n token: EventApiService,\n factory: EventApiService.ɵfac,\n providedIn: 'root'\n });\n return EventApiService;\n})();\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\n\n// *********************************\n// Code generated by sdkgen\n// DO NOT EDIT!.\n//\n// API Service.\n// *********************************\nlet RegulationApiService = /*#__PURE__*/(() => {\n class RegulationApiService {\n constructor() {\n this.hostService = inject(HostService);\n this.http = inject(HttpClient);\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 createRegulationInfo(r) {\n const request = r.toApiJson ? r : new CreateRegulationInfoRequest(r);\n return this.http.post(this._host + \"/sms.v2.RegulationService/CreateRegulationInfo\", request.toApiJson(), this.apiOptions()).pipe(map(resp => CreateRegulationInfoResponse.fromProto(resp)));\n }\n }\n RegulationApiService.ɵfac = function RegulationApiService_Factory(__ngFactoryType__) {\n return new (__ngFactoryType__ || RegulationApiService)();\n };\n RegulationApiService.ɵprov = /* @__PURE__ */i0.ɵɵdefineInjectable({\n token: RegulationApiService,\n factory: RegulationApiService.ɵfac,\n providedIn: 'root'\n });\n return RegulationApiService;\n})();\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\n\n// *********************************\n// Code generated by sdkgen\n// DO NOT EDIT!.\n//\n// API Service.\n// *********************************\nlet SmsApiService = /*#__PURE__*/(() => {\n class SmsApiService {\n constructor() {\n this.hostService = inject(HostService);\n this.http = inject(HttpClient);\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 createSmsClickedEvent(r) {\n const request = r.toApiJson ? r : new CreateSmsClickedEventRequest(r);\n return this.http.post(this._host + \"/sms.v2.SmsService/CreateSmsClickedEvent\", request.toApiJson(), {\n ...this.apiOptions(),\n observe: 'response'\n });\n }\n getAccountInfo(r) {\n const request = r.toApiJson ? r : new GetAccountInfoRequest(r);\n return this.http.post(this._host + \"/sms.v2.SmsService/GetAccountInfo\", request.toApiJson(), this.apiOptions()).pipe(map(resp => GetAccountInfoResponse.fromProto(resp)));\n }\n sendMessageV2(r) {\n const request = r.toApiJson ? r : new SendMessageV2Request(r);\n return this.http.post(this._host + \"/sms.v2.SmsService/SendMessageV2\", request.toApiJson(), this.apiOptions()).pipe(map(resp => SendMessageV2Response.fromProto(resp)));\n }\n getLimit(r) {\n const request = r.toApiJson ? r : new GetLimitRequest(r);\n return this.http.post(this._host + \"/sms.v2.SmsService/GetLimit\", request.toApiJson(), this.apiOptions()).pipe(map(resp => GetLimitResponse.fromProto(resp)));\n }\n canSendSms(r) {\n const request = r.toApiJson ? r : new CanSendSmsRequest(r);\n return this.http.post(this._host + \"/sms.v2.SmsService/CanSendSms\", request.toApiJson(), this.apiOptions()).pipe(map(resp => CanSendSmsResponse.fromProto(resp)));\n }\n }\n SmsApiService.ɵfac = function SmsApiService_Factory(__ngFactoryType__) {\n return new (__ngFactoryType__ || SmsApiService)();\n };\n SmsApiService.ɵprov = /* @__PURE__ */i0.ɵɵdefineInjectable({\n token: SmsApiService,\n factory: SmsApiService.ɵfac,\n providedIn: 'root'\n });\n return SmsApiService;\n})();\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\n\n// *********************************\n// Code generated by sdkgen\n// DO NOT EDIT!.\n//\n// Index.\n// *********************************\nlet SmsService = /*#__PURE__*/(() => {\n class SmsService {\n constructor(smsApiService) {\n this.smsApiService = smsApiService;\n }\n getAccountInfo(sender) {\n return this.smsApiService.getAccountInfo({\n sender: sender\n });\n }\n }\n SmsService.ɵfac = function SmsService_Factory(__ngFactoryType__) {\n return new (__ngFactoryType__ || SmsService)(i0.ɵɵinject(SmsApiService));\n };\n SmsService.ɵprov = /* @__PURE__ */i0.ɵɵdefineInjectable({\n token: SmsService,\n factory: SmsService.ɵfac,\n providedIn: 'root'\n });\n return SmsService;\n})();\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\nlet EventService = /*#__PURE__*/(() => {\n class EventService {\n constructor(eventService) {\n this.eventService = eventService;\n }\n getAttributeEventStats(sender, attribute) {\n return this.eventService.getAttributeEventStats({\n sender: sender,\n attribute: attribute\n });\n }\n }\n EventService.ɵfac = function EventService_Factory(__ngFactoryType__) {\n return new (__ngFactoryType__ || EventService)(i0.ɵɵinject(EventApiService));\n };\n EventService.ɵprov = /* @__PURE__ */i0.ɵɵdefineInjectable({\n token: EventService,\n factory: EventService.ɵfac,\n providedIn: 'root'\n });\n return EventService;\n})();\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\n\n/**\n * Generated bundle index. Do not edit.\n */\n\nexport { A2PRegistrationApiService, A2PRegistrationInfo, A2PRegistrationStatus, Access, Attribute, AuthorizedRepresentative, Brand, BrandStatus, Business, CallForwardingConfig, CanSendReason, CanSendSmsRequest, CanSendSmsResponse, ClaimPhoneNumberRequest, ConfigApiService, ConversationApiService, CreateA2PRegistrationInfoRequest, CreateRegulationInfoRequest, CreateRegulationInfoResponse, CreateSmsClickedEventRequest, DataField, DeleteA2PRegistrationInfoRequest, EventApiService, EventService, GetA2PRegistrationInfoRequest, GetA2PRegistrationInfoResponse, GetAccountInfoRequest, GetAccountInfoResponse, GetAttributeEventStatsRequest, GetAttributeEventStatsResponse, GetLatestA2PRegistrationStatusRequest, GetLatestA2PRegistrationStatusResponse, GetLimitRequest, GetLimitResponse, GetPhoneNumberConfigRequest, GetPhoneNumberConfigResponse, LimitType, Media, MessagingCampaign, MessagingCampaignStatus, MissedCallMessagingConfig, MissedCallTrigger, OwnerType, Participant, ParticipantType, PhoneNumberConfig, Recipient, RegistrationIdentifier, RegulationApiService, SecondaryBusinessProfile, SendMessageRequest, SendMessageResponse, SendMessageV2Request, SendMessageV2Response, Sender, SmsApiService, SmsService, StatusStat, StatusType, SupportingDocumentInfo, TriggerA2PRegistrationRequest, TrustBundle, UpsertA2PRegistrationInfoRequest, UpsertPhoneNumberConfigRequest, ValidationStatus, VoiceAIConfig };\n","import { booleanAttribute, Component, HostBinding, Input } from '@angular/core';\n\n/**\n * @deprecated Use the new `glxy-chat-message-group` component instead\n */\n@Component({\n selector: 'glxy-chat-bubble',\n templateUrl: './chat-bubble.component.html',\n styleUrls: ['./chat-bubble.component.scss'],\n standalone: false,\n})\nexport class ChatBubbleComponent {\n @HostBinding('class') class = 'glxy-chat-bubble';\n\n @Input() type: 'sent' | 'received' = 'received';\n\n @Input() messageText?: string;\n\n @Input() messageFrom?: string;\n\n @Input() messageMetadata?: string;\n\n @Input() profilePicUrl?: string;\n\n @Input() profileSVGIcon?: string;\n\n @Input() profileBackgroundColor?: string;\n\n @Input() profileSourceIconUrl?: string;\n\n @Input() showProfilePic?: boolean | 'auto' = `auto`;\n\n @Input({ transform: booleanAttribute }) sentFromYou = true;\n\n @Input({ transform: booleanAttribute }) isTyping = false;\n\n get shouldShowProfilePic(): boolean {\n return (\n this.showProfilePic === true ||\n (this.type === 'received' && this.showProfilePic !== false) ||\n (this.type === 'sent' && !this.sentFromYou && this.showProfilePic !== false)\n );\n }\n\n get profilePicCSS(): string {\n return this.profilePicUrl ? 'url(' + this.profilePicUrl + ')' : '';\n }\n\n get profileSourceIconCSS(): string {\n return this.profileSourceIconUrl ? 'url(' + this.profileSourceIconUrl + ')' : '';\n }\n}\n","