{"version":3,"sources":["node_modules/@vendasta/category/fesm2020/vendasta-category.mjs","libs/business-category/src/lib/constants.ts","libs/business-category/src/lib/category-overview/category-overview.component.ts","libs/business-category/src/lib/category-overview/category-overview.component.html","libs/business-category/src/lib/business-category.service.ts","libs/business-category/src/lib/pipes/highlight-search.pipe.ts","libs/business-category/src/lib/category-select/category-select.service.ts","libs/business-category/src/lib/pipes/exclude-categories.pipe.ts","libs/business-category/src/lib/pipes/chip-color.pipe.ts","libs/business-category/src/lib/category-select/category-select.component.ts","libs/business-category/src/lib/category-select/category-select.component.html","libs/business-category/src/lib/business-category.module.ts","libs/business-category/src/lib/utils.ts","libs/business-category/src/index.ts","libs/businesses/src/lib/custom-validators.ts","libs/businesses/src/lib/feature-flag.service.ts","libs/businesses/src/lib/format-phone-number.pipe.ts","libs/businesses/src/lib/business-profile.interface.ts","libs/businesses/src/lib/address/address/interface.ts","libs/businesses/src/lib/address/address/address.service.ts","libs/businesses/src/lib/assets/i18n/en_devel.json","libs/businesses/src/lib/address/inputs/country-input.component.ts","libs/businesses/src/lib/address/inputs/country-input.component.html","libs/businesses/src/lib/address/v2/place-autocomplete/place-autocomplete.component.ts","libs/businesses/src/lib/address/v2/place-autocomplete/place-autocomplete.component.html","libs/businesses/src/lib/address/v2/address-form-v2.component.ts","libs/businesses/src/lib/address/v2/address-form-v2.component.html","libs/businesses/src/lib/address/v2/address-form-v2.module.ts","libs/businesses/src/lib/address/index.ts","libs/businesses/src/lib/media-tab/media-tab.interface.ts","node_modules/@vendasta/account-group-media/fesm2020/vendasta-account-group-media.mjs","node_modules/@vendasta/media/fesm2020/vendasta-media.mjs","libs/businesses/src/lib/media-tab/upload-image-dialog/upload-image-dialog.component.ts","libs/businesses/src/lib/media-tab/upload-image-dialog/upload-image-dialog.component.html","libs/businesses/src/lib/media-tab/media-tab.service.ts","libs/businesses/src/lib/media-tab/media-tab-gallery/media-tab-gallery.component.ts","libs/businesses/src/lib/media-tab/media-tab-gallery/media-tab-gallery.component.html","libs/businesses/src/lib/media-tab/media-tab.component.ts","libs/businesses/src/lib/media-tab/media-tab.component.html","libs/businesses/src/lib/more-hours/more-hours.component.ts","libs/businesses/src/lib/more-hours/more-hours.component.html","libs/businesses/src/lib/business-profile.component.ts","libs/businesses/src/lib/business-profile.component.html","libs/taxonomy-i18n/src/lib/assets/i18n/en_devel.json","libs/taxonomy-i18n/src/lib/constants.ts","libs/taxonomy-i18n/src/lib/taxonomy-i18n.module.ts","libs/taxonomy-i18n/src/lib/index.ts","libs/taxonomy-i18n/src/index.ts","libs/salesperson/src/lib/salesperson.objects.ts","libs/salesperson/src/lib/salesperson.api.service.ts","libs/salesperson/src/lib/salesperson.service.ts","libs/salesperson/src/lib/salesperson.module.ts","libs/salesperson/src/lib/index.ts","libs/salesperson/src/index.ts","libs/businesses/src/lib/competitors-tab/competitors-tab.service.ts","libs/businesses/src/lib/competitors-tab/competitors-tab.module.ts","libs/businesses/src/lib/media-tab/media-tab-gallery/media-tab-gallery.module.ts","libs/businesses/src/lib/media-tab/upload-image-dialog/upload-image-dialog.module.ts","libs/businesses/src/lib/media-tab/media-tab.module.ts","node_modules/fast-deep-equal/index.js","libs/businesses/src/lib/product-activation-prereq-form/validators.ts","libs/businesses/src/lib/product-activation-prereq-form/product-activation-prereq-form.component.ts","libs/businesses/src/lib/product-activation-prereq-form/product-activation-prereq-form.component.html","libs/businesses/src/lib/product-activation-prereq-form/product-activation-prereq-form.module.ts","libs/businesses/src/lib/business-profile.module.ts","libs/businesses/src/lib/business-selector-dialog/format-address.pipe.ts","libs/businesses/src/lib/business-selector-dialog/business-selector-dialog.component.ts","libs/businesses/src/lib/business-selector-dialog/business-selector-dialog.component.html","libs/businesses/src/lib/business-selector-dialog/business-selector-dialog.module.ts","libs/businesses/src/lib/index.ts","libs/businesses/src/index.ts"],"sourcesContent":["import * as i0 from '@angular/core';\nimport { Injectable } from '@angular/core';\nimport * as i1 from '@angular/common/http';\nimport { 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 CategoryClass = /*#__PURE__*/function (CategoryClass) {\n CategoryClass[CategoryClass[\"CATEGORY_CLASS_CONCRETE\"] = 0] = \"CATEGORY_CLASS_CONCRETE\";\n CategoryClass[CategoryClass[\"CATEGORY_CLASS_ABSTRACT\"] = 1] = \"CATEGORY_CLASS_ABSTRACT\";\n return CategoryClass;\n}(CategoryClass || {});\nvar CategoryType = /*#__PURE__*/function (CategoryType) {\n CategoryType[CategoryType[\"CATEGORY_TYPE_V_CATEGORY\"] = 0] = \"CATEGORY_TYPE_V_CATEGORY\";\n CategoryType[CategoryType[\"CATEGORY_TYPE_V_TAX\"] = 1] = \"CATEGORY_TYPE_V_TAX\";\n CategoryType[CategoryType[\"CATEGORY_TYPE_GOOGLE_PLACES\"] = 2] = \"CATEGORY_TYPE_GOOGLE_PLACES\";\n CategoryType[CategoryType[\"CATEGORY_TYPE_GMB\"] = 3] = \"CATEGORY_TYPE_GMB\";\n CategoryType[CategoryType[\"CATEGORY_TYPE_UBERALL\"] = 4] = \"CATEGORY_TYPE_UBERALL\";\n CategoryType[CategoryType[\"CATEGORY_TYPE_YEXT\"] = 5] = \"CATEGORY_TYPE_YEXT\";\n CategoryType[CategoryType[\"CATEGORY_TYPE_BING\"] = 6] = \"CATEGORY_TYPE_BING\";\n CategoryType[CategoryType[\"CATEGORY_TYPE_DATA_AXLE\"] = 7] = \"CATEGORY_TYPE_DATA_AXLE\";\n CategoryType[CategoryType[\"CATEGORY_TYPE_FOURSQUARE\"] = 9] = \"CATEGORY_TYPE_FOURSQUARE\";\n CategoryType[CategoryType[\"CATEGORY_TYPE_LOCALEZE\"] = 10] = \"CATEGORY_TYPE_LOCALEZE\";\n CategoryType[CategoryType[\"CATEGORY_TYPE_NEUSTAR\"] = 11] = \"CATEGORY_TYPE_NEUSTAR\";\n CategoryType[CategoryType[\"CATEGORY_TYPE_APPLE\"] = 12] = \"CATEGORY_TYPE_APPLE\";\n return CategoryType;\n}(CategoryType || {});\nvar Locale = /*#__PURE__*/function (Locale) {\n Locale[Locale[\"LOCALE_UNSET\"] = 0] = \"LOCALE_UNSET\";\n Locale[Locale[\"LOCALE_AFRIKAANS\"] = 1] = \"LOCALE_AFRIKAANS\";\n Locale[Locale[\"LOCALE_CZECH\"] = 2] = \"LOCALE_CZECH\";\n Locale[Locale[\"LOCALE_DUTCH\"] = 3] = \"LOCALE_DUTCH\";\n Locale[Locale[\"LOCALE_ENGLISH\"] = 4] = \"LOCALE_ENGLISH\";\n Locale[Locale[\"LOCALE_FRENCH\"] = 5] = \"LOCALE_FRENCH\";\n Locale[Locale[\"LOCALE_FRENCH_CANADA\"] = 6] = \"LOCALE_FRENCH_CANADA\";\n Locale[Locale[\"LOCALE_GERMAN\"] = 7] = \"LOCALE_GERMAN\";\n Locale[Locale[\"LOCALE_ITALIAN\"] = 8] = \"LOCALE_ITALIAN\";\n Locale[Locale[\"LOCALE_JAPANESE\"] = 9] = \"LOCALE_JAPANESE\";\n Locale[Locale[\"LOCALE_PORTUGUESE_BRAZIL\"] = 10] = \"LOCALE_PORTUGUESE_BRAZIL\";\n Locale[Locale[\"LOCALE_RUSSIAN\"] = 11] = \"LOCALE_RUSSIAN\";\n Locale[Locale[\"LOCALE_SPANISH_LATIN_AMERICA\"] = 12] = \"LOCALE_SPANISH_LATIN_AMERICA\";\n return Locale;\n}(Locale || {});\nvar SortDirection = /*#__PURE__*/function (SortDirection) {\n SortDirection[SortDirection[\"SORT_DIRECTION_UNSET\"] = 0] = \"SORT_DIRECTION_UNSET\";\n SortDirection[SortDirection[\"SORT_DIRECTION_ASCENDING\"] = 1] = \"SORT_DIRECTION_ASCENDING\";\n SortDirection[SortDirection[\"SORT_DIRECTION_DESCENDING\"] = 2] = \"SORT_DIRECTION_DESCENDING\";\n return SortDirection;\n}(SortDirection || {});\nvar SortField = /*#__PURE__*/function (SortField) {\n SortField[SortField[\"SORT_FIELD_UNSET\"] = 0] = \"SORT_FIELD_UNSET\";\n SortField[SortField[\"SORT_FIELD_NAME\"] = 1] = \"SORT_FIELD_NAME\";\n SortField[SortField[\"SORT_FIELD_FULL_NAME\"] = 2] = \"SORT_FIELD_FULL_NAME\";\n SortField[SortField[\"SORT_FIELD_SCORE\"] = 3] = \"SORT_FIELD_SCORE\";\n SortField[SortField[\"SORT_FIELD_EXTERNAL_ID\"] = 4] = \"SORT_FIELD_EXTERNAL_ID\";\n SortField[SortField[\"SORT_FIELD_CREATED\"] = 5] = \"SORT_FIELD_CREATED\";\n SortField[SortField[\"SORT_FIELD_UPDATED\"] = 6] = \"SORT_FIELD_UPDATED\";\n return SortField;\n}(SortField || {});\nvar TypeCategoryRelationship = /*#__PURE__*/function (TypeCategoryRelationship) {\n TypeCategoryRelationship[TypeCategoryRelationship[\"TYPE_CATEGORY_RELATIONSHIP_EXACT_MATCH\"] = 0] = \"TYPE_CATEGORY_RELATIONSHIP_EXACT_MATCH\";\n return TypeCategoryRelationship;\n}(TypeCategoryRelationship || {});\n// *********************************\n// Code generated by sdkgen\n// DO NOT EDIT!.\n//\n// Enums Index.\n// *********************************\n\nfunction enumStringToValue$3(enumRef, value) {\n if (typeof value === 'number') {\n return value;\n }\n return enumRef[value];\n}\nclass FieldMask {\n static fromProto(proto) {\n let m = new FieldMask();\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.paths !== 'undefined') {\n toReturn['paths'] = this.paths;\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 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$1(enumRef, value) {\n if (typeof value === 'number') {\n return value;\n }\n return enumRef[value];\n}\nclass PagedRequestOptions {\n static fromProto(proto) {\n let m = new PagedRequestOptions();\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.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 PagedResponseMetadata {\n static fromProto(proto) {\n let m = new PagedResponseMetadata();\n m = Object.assign(m, proto);\n if (proto.totalResults) {\n m.totalResults = parseInt(proto.totalResults, 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.nextCursor !== 'undefined') {\n toReturn['nextCursor'] = this.nextCursor;\n }\n if (typeof this.hasMore !== 'undefined') {\n toReturn['hasMore'] = this.hasMore;\n }\n if (typeof this.totalResults !== 'undefined') {\n toReturn['totalResults'] = this.totalResults;\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 BulkCreateCategoriesRequest {\n static fromProto(proto) {\n let m = new BulkCreateCategoriesRequest();\n m = Object.assign(m, proto);\n if (proto.categories) {\n m.categories = proto.categories.map(Category.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.categories !== 'undefined' && this.categories !== null) {\n toReturn['categories'] = 'toApiJson' in this.categories ? this.categories.toApiJson() : this.categories;\n }\n return toReturn;\n }\n}\nclass BulkCreateCategoryRelationshipsRequest {\n static fromProto(proto) {\n let m = new BulkCreateCategoryRelationshipsRequest();\n m = Object.assign(m, proto);\n if (proto.categoryRelationships) {\n m.categoryRelationships = proto.categoryRelationships.map(CategoryRelationships.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.categoryRelationships !== 'undefined' && this.categoryRelationships !== null) {\n toReturn['categoryRelationships'] = 'toApiJson' in this.categoryRelationships ? this.categoryRelationships.toApiJson() : this.categoryRelationships;\n }\n return toReturn;\n }\n}\nclass BulkDeleteCategoryRelationshipsRequest {\n static fromProto(proto) {\n let m = new BulkDeleteCategoryRelationshipsRequest();\n m = Object.assign(m, proto);\n if (proto.type) {\n m.type = enumStringToValue(CategoryType, 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.type !== 'undefined') {\n toReturn['type'] = this.type;\n }\n return toReturn;\n }\n}\nclass Category {\n static fromProto(proto) {\n let m = new Category();\n m = Object.assign(m, proto);\n if (proto.type) {\n m.type = enumStringToValue(CategoryType, proto.type);\n }\n if (proto.class) {\n m.class = enumStringToValue(CategoryClass, proto.class);\n }\n if (proto.locale) {\n m.locale = CategoryLocale.fromProto(proto.locale);\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.translations) {\n m.translations = proto.translations.map(CategoryTranslation.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.categoryId !== 'undefined') {\n toReturn['categoryId'] = this.categoryId;\n }\n if (typeof this.externalId !== 'undefined') {\n toReturn['externalId'] = this.externalId;\n }\n if (typeof this.name !== 'undefined') {\n toReturn['name'] = this.name;\n }\n if (typeof this.type !== 'undefined') {\n toReturn['type'] = this.type;\n }\n if (typeof this.class !== 'undefined') {\n toReturn['class'] = this.class;\n }\n if (typeof this.locale !== 'undefined' && this.locale !== null) {\n toReturn['locale'] = 'toApiJson' in this.locale ? this.locale.toApiJson() : this.locale;\n }\n if (typeof this.isHidden !== 'undefined') {\n toReturn['isHidden'] = this.isHidden;\n }\n if (typeof this.isActive !== 'undefined') {\n toReturn['isActive'] = this.isActive;\n }\n if (typeof this.fullName !== 'undefined') {\n toReturn['fullName'] = this.fullName;\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.translations !== 'undefined' && this.translations !== null) {\n toReturn['translations'] = 'toApiJson' in this.translations ? this.translations.toApiJson() : this.translations;\n }\n return toReturn;\n }\n}\nclass CategoryLocale {\n static fromProto(proto) {\n let m = new CategoryLocale();\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.country !== 'undefined') {\n toReturn['country'] = this.country;\n }\n if (typeof this.language !== 'undefined') {\n toReturn['language'] = this.language;\n }\n return toReturn;\n }\n}\nclass CategoryPagedRequestOptions {\n static fromProto(proto) {\n let m = new CategoryPagedRequestOptions();\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.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 CategoryPagedResponseMetadata {\n static fromProto(proto) {\n let m = new CategoryPagedResponseMetadata();\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.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}\nclass CategoryRelationships {\n static fromProto(proto) {\n let m = new CategoryRelationships();\n m = Object.assign(m, proto);\n if (proto.originCategory) {\n m.originCategory = enumStringToValue(CategoryType, proto.originCategory);\n }\n if (proto.targetCategory) {\n m.targetCategory = enumStringToValue(CategoryType, proto.targetCategory);\n }\n if (proto.typeCategoryRelationship) {\n m.typeCategoryRelationship = enumStringToValue(TypeCategoryRelationship, proto.typeCategoryRelationship);\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.originId !== 'undefined') {\n toReturn['originId'] = this.originId;\n }\n if (typeof this.targetId !== 'undefined') {\n toReturn['targetId'] = this.targetId;\n }\n if (typeof this.originCategory !== 'undefined') {\n toReturn['originCategory'] = this.originCategory;\n }\n if (typeof this.targetCategory !== 'undefined') {\n toReturn['targetCategory'] = this.targetCategory;\n }\n if (typeof this.typeCategoryRelationship !== 'undefined') {\n toReturn['typeCategoryRelationship'] = this.typeCategoryRelationship;\n }\n return toReturn;\n }\n}\nclass CategoryRequest {\n static fromProto(proto) {\n let m = new CategoryRequest();\n m = Object.assign(m, proto);\n if (proto.categoryType) {\n m.categoryType = enumStringToValue(CategoryType, proto.categoryType);\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.externalId !== 'undefined') {\n toReturn['externalId'] = this.externalId;\n }\n if (typeof this.categoryType !== 'undefined') {\n toReturn['categoryType'] = this.categoryType;\n }\n return toReturn;\n }\n}\nclass CategorySearchRequest {\n static fromProto(proto) {\n let m = new CategorySearchRequest();\n m = Object.assign(m, proto);\n if (proto.type) {\n m.type = enumStringToValue(CategoryType, proto.type);\n }\n if (proto.pagingOptions) {\n m.pagingOptions = PagedRequestOptions.fromProto(proto.pagingOptions);\n }\n if (proto.sortOptions) {\n m.sortOptions = proto.sortOptions.map(SortOptions.fromProto);\n }\n if (proto.languageAndLocale) {\n m.languageAndLocale = enumStringToValue(Locale, proto.languageAndLocale);\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.searchTerm !== 'undefined') {\n toReturn['searchTerm'] = this.searchTerm;\n }\n if (typeof this.locale !== 'undefined') {\n toReturn['locale'] = this.locale;\n }\n if (typeof this.type !== 'undefined') {\n toReturn['type'] = this.type;\n }\n if (typeof this.pagingOptions !== 'undefined' && this.pagingOptions !== null) {\n toReturn['pagingOptions'] = 'toApiJson' in this.pagingOptions ? this.pagingOptions.toApiJson() : this.pagingOptions;\n }\n if (typeof this.sortOptions !== 'undefined' && this.sortOptions !== null) {\n toReturn['sortOptions'] = 'toApiJson' in this.sortOptions ? this.sortOptions.toApiJson() : this.sortOptions;\n }\n if (typeof this.onlyVisible !== 'undefined') {\n toReturn['onlyVisible'] = this.onlyVisible;\n }\n if (typeof this.languageAndLocale !== 'undefined') {\n toReturn['languageAndLocale'] = this.languageAndLocale;\n }\n return toReturn;\n }\n}\nclass CategorySearchResponse {\n static fromProto(proto) {\n let m = new CategorySearchResponse();\n m = Object.assign(m, proto);\n if (proto.category) {\n m.category = proto.category.map(Category.fromProto);\n }\n if (proto.pagingMetadata) {\n m.pagingMetadata = PagedResponseMetadata.fromProto(proto.pagingMetadata);\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.category !== 'undefined' && this.category !== null) {\n toReturn['category'] = 'toApiJson' in this.category ? this.category.toApiJson() : this.category;\n }\n if (typeof this.pagingMetadata !== 'undefined' && this.pagingMetadata !== null) {\n toReturn['pagingMetadata'] = 'toApiJson' in this.pagingMetadata ? this.pagingMetadata.toApiJson() : this.pagingMetadata;\n }\n return toReturn;\n }\n}\nclass CategoryTranslation {\n static fromProto(proto) {\n let m = new CategoryTranslation();\n m = Object.assign(m, proto);\n if (proto.locale) {\n m.locale = enumStringToValue(Locale, proto.locale);\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.locale !== 'undefined') {\n toReturn['locale'] = this.locale;\n }\n if (typeof this.name !== 'undefined') {\n toReturn['name'] = this.name;\n }\n if (typeof this.fullName !== 'undefined') {\n toReturn['fullName'] = this.fullName;\n }\n return toReturn;\n }\n}\nclass CreateCategoryRequest {\n static fromProto(proto) {\n let m = new CreateCategoryRequest();\n m = Object.assign(m, proto);\n if (proto.type) {\n m.type = enumStringToValue(CategoryType, proto.type);\n }\n if (proto.translations) {\n m.translations = proto.translations.map(CategoryTranslation.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.name !== 'undefined') {\n toReturn['name'] = this.name;\n }\n if (typeof this.fullName !== 'undefined') {\n toReturn['fullName'] = this.fullName;\n }\n if (typeof this.externalId !== 'undefined') {\n toReturn['externalId'] = this.externalId;\n }\n if (typeof this.type !== 'undefined') {\n toReturn['type'] = this.type;\n }\n if (typeof this.isHidden !== 'undefined') {\n toReturn['isHidden'] = this.isHidden;\n }\n if (typeof this.isActive !== 'undefined') {\n toReturn['isActive'] = this.isActive;\n }\n if (typeof this.translations !== 'undefined' && this.translations !== null) {\n toReturn['translations'] = 'toApiJson' in this.translations ? this.translations.toApiJson() : this.translations;\n }\n return toReturn;\n }\n}\nclass CreateCategoryResponse {\n static fromProto(proto) {\n let m = new CreateCategoryResponse();\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.categoryId !== 'undefined') {\n toReturn['categoryId'] = this.categoryId;\n }\n return toReturn;\n }\n}\nclass DeleteCategoryByExternalIDAndTypeRequest {\n static fromProto(proto) {\n let m = new DeleteCategoryByExternalIDAndTypeRequest();\n m = Object.assign(m, proto);\n if (proto.categoryType) {\n m.categoryType = enumStringToValue(CategoryType, proto.categoryType);\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.externalId !== 'undefined') {\n toReturn['externalId'] = this.externalId;\n }\n if (typeof this.categoryType !== 'undefined') {\n toReturn['categoryType'] = this.categoryType;\n }\n return toReturn;\n }\n}\nclass DeleteCategoryRelationshipByExternalIDAndTypeRequest {\n static fromProto(proto) {\n let m = new DeleteCategoryRelationshipByExternalIDAndTypeRequest();\n m = Object.assign(m, proto);\n if (proto.categoryType) {\n m.categoryType = enumStringToValue(CategoryType, proto.categoryType);\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.externalId !== 'undefined') {\n toReturn['externalId'] = this.externalId;\n }\n if (typeof this.categoryType !== 'undefined') {\n toReturn['categoryType'] = this.categoryType;\n }\n return toReturn;\n }\n}\nclass DeleteCategoryRelationshipByOriginAndTargetRequest {\n static fromProto(proto) {\n let m = new DeleteCategoryRelationshipByOriginAndTargetRequest();\n m = Object.assign(m, proto);\n if (proto.origin) {\n m.origin = DeleteCategoryRelationshipByOriginAndTargetRequestIdentifier.fromProto(proto.origin);\n }\n if (proto.target) {\n m.target = DeleteCategoryRelationshipByOriginAndTargetRequestIdentifier.fromProto(proto.target);\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.origin !== 'undefined' && this.origin !== null) {\n toReturn['origin'] = 'toApiJson' in this.origin ? this.origin.toApiJson() : this.origin;\n }\n if (typeof this.target !== 'undefined' && this.target !== null) {\n toReturn['target'] = 'toApiJson' in this.target ? this.target.toApiJson() : this.target;\n }\n return toReturn;\n }\n}\nclass ValidateVCategoriesResponseErrorsEntry {\n static fromProto(proto) {\n let m = new ValidateVCategoriesResponseErrorsEntry();\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}\nclass GetAllCategoryMappingsRequest {\n static fromProto(proto) {\n let m = new GetAllCategoryMappingsRequest();\n m = Object.assign(m, proto);\n if (proto.categoryType) {\n m.categoryType = enumStringToValue(CategoryType, proto.categoryType);\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.externalId !== 'undefined') {\n toReturn['externalId'] = this.externalId;\n }\n if (typeof this.categoryType !== 'undefined') {\n toReturn['categoryType'] = this.categoryType;\n }\n return toReturn;\n }\n}\nclass GetAllCategoryMappingsResponse {\n static fromProto(proto) {\n let m = new GetAllCategoryMappingsResponse();\n m = Object.assign(m, proto);\n if (proto.origins) {\n m.origins = proto.origins.map(Category.fromProto);\n }\n if (proto.targets) {\n m.targets = proto.targets.map(Category.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.origins !== 'undefined' && this.origins !== null) {\n toReturn['origins'] = 'toApiJson' in this.origins ? this.origins.toApiJson() : this.origins;\n }\n if (typeof this.targets !== 'undefined' && this.targets !== null) {\n toReturn['targets'] = 'toApiJson' in this.targets ? this.targets.toApiJson() : this.targets;\n }\n return toReturn;\n }\n}\nclass GetCategoryByExternalIDsAndTypeRequest {\n static fromProto(proto) {\n let m = new GetCategoryByExternalIDsAndTypeRequest();\n m = Object.assign(m, proto);\n if (proto.categories) {\n m.categories = proto.categories.map(CategoryRequest.fromProto);\n }\n if (proto.languageAndLocale) {\n m.languageAndLocale = enumStringToValue(Locale, proto.languageAndLocale);\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.categories !== 'undefined' && this.categories !== null) {\n toReturn['categories'] = 'toApiJson' in this.categories ? this.categories.toApiJson() : this.categories;\n }\n if (typeof this.locale !== 'undefined') {\n toReturn['locale'] = this.locale;\n }\n if (typeof this.languageAndLocale !== 'undefined') {\n toReturn['languageAndLocale'] = this.languageAndLocale;\n }\n return toReturn;\n }\n}\nclass GetCategoryByExternalIDsAndTypeResponse {\n static fromProto(proto) {\n let m = new GetCategoryByExternalIDsAndTypeResponse();\n m = Object.assign(m, proto);\n if (proto.category) {\n m.category = proto.category.map(Category.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.category !== 'undefined' && this.category !== null) {\n toReturn['category'] = 'toApiJson' in this.category ? this.category.toApiJson() : this.category;\n }\n return toReturn;\n }\n}\nclass GetCategoryByNameAndTypeRequest {\n static fromProto(proto) {\n let m = new GetCategoryByNameAndTypeRequest();\n m = Object.assign(m, proto);\n if (proto.categoryType) {\n m.categoryType = enumStringToValue(CategoryType, proto.categoryType);\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.categoryName !== 'undefined') {\n toReturn['categoryName'] = this.categoryName;\n }\n if (typeof this.categoryType !== 'undefined') {\n toReturn['categoryType'] = this.categoryType;\n }\n if (typeof this.locale !== 'undefined') {\n toReturn['locale'] = this.locale;\n }\n return toReturn;\n }\n}\nclass GetCategoryByNameAndTypeResponse {\n static fromProto(proto) {\n let m = new GetCategoryByNameAndTypeResponse();\n m = Object.assign(m, proto);\n if (proto.category) {\n m.category = Category.fromProto(proto.category);\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.category !== 'undefined' && this.category !== null) {\n toReturn['category'] = 'toApiJson' in this.category ? this.category.toApiJson() : this.category;\n }\n return toReturn;\n }\n}\nclass GetCategoryListRequest {\n static fromProto(proto) {\n let m = new GetCategoryListRequest();\n m = Object.assign(m, proto);\n if (proto.type) {\n m.type = enumStringToValue(CategoryType, proto.type);\n }\n if (proto.pagingOptions) {\n m.pagingOptions = CategoryPagedRequestOptions.fromProto(proto.pagingOptions);\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.type !== 'undefined') {\n toReturn['type'] = this.type;\n }\n if (typeof this.pagingOptions !== 'undefined' && this.pagingOptions !== null) {\n toReturn['pagingOptions'] = 'toApiJson' in this.pagingOptions ? this.pagingOptions.toApiJson() : this.pagingOptions;\n }\n if (typeof this.locale !== 'undefined') {\n toReturn['locale'] = this.locale;\n }\n return toReturn;\n }\n}\nclass GetCategoryListResponse {\n static fromProto(proto) {\n let m = new GetCategoryListResponse();\n m = Object.assign(m, proto);\n if (proto.category) {\n m.category = proto.category.map(Category.fromProto);\n }\n if (proto.pagingMetadata) {\n m.pagingMetadata = CategoryPagedResponseMetadata.fromProto(proto.pagingMetadata);\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.category !== 'undefined' && this.category !== null) {\n toReturn['category'] = 'toApiJson' in this.category ? this.category.toApiJson() : this.category;\n }\n if (typeof this.pagingMetadata !== 'undefined' && this.pagingMetadata !== null) {\n toReturn['pagingMetadata'] = 'toApiJson' in this.pagingMetadata ? this.pagingMetadata.toApiJson() : this.pagingMetadata;\n }\n return toReturn;\n }\n}\nclass GetCategoryMappingRequest {\n static fromProto(proto) {\n let m = new GetCategoryMappingRequest();\n m = Object.assign(m, proto);\n if (proto.inputType) {\n m.inputType = enumStringToValue(CategoryType, proto.inputType);\n }\n if (proto.outputType) {\n m.outputType = enumStringToValue(CategoryType, proto.outputType);\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.externalId !== 'undefined') {\n toReturn['externalId'] = this.externalId;\n }\n if (typeof this.inputType !== 'undefined') {\n toReturn['inputType'] = this.inputType;\n }\n if (typeof this.outputType !== 'undefined') {\n toReturn['outputType'] = this.outputType;\n }\n if (typeof this.locale !== 'undefined') {\n toReturn['locale'] = this.locale;\n }\n return toReturn;\n }\n}\nclass GetCategoryMappingResponse {\n static fromProto(proto) {\n let m = new GetCategoryMappingResponse();\n m = Object.assign(m, proto);\n if (proto.category) {\n m.category = Category.fromProto(proto.category);\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.category !== 'undefined' && this.category !== null) {\n toReturn['category'] = 'toApiJson' in this.category ? this.category.toApiJson() : this.category;\n }\n return toReturn;\n }\n}\nclass GetCategoryRequest {\n static fromProto(proto) {\n let m = new GetCategoryRequest();\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.categoryId !== 'undefined') {\n toReturn['categoryId'] = this.categoryId;\n }\n if (typeof this.locale !== 'undefined') {\n toReturn['locale'] = this.locale;\n }\n return toReturn;\n }\n}\nclass GetCategoryResponse {\n static fromProto(proto) {\n let m = new GetCategoryResponse();\n m = Object.assign(m, proto);\n if (proto.category) {\n m.category = Category.fromProto(proto.category);\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.category !== 'undefined' && this.category !== null) {\n toReturn['category'] = 'toApiJson' in this.category ? this.category.toApiJson() : this.category;\n }\n return toReturn;\n }\n}\nclass GetMultiCategoryMappingRequest {\n static fromProto(proto) {\n let m = new GetMultiCategoryMappingRequest();\n m = Object.assign(m, proto);\n if (proto.inputType) {\n m.inputType = enumStringToValue(CategoryType, proto.inputType);\n }\n if (proto.outputType) {\n m.outputType = enumStringToValue(CategoryType, proto.outputType);\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.externalIds !== 'undefined') {\n toReturn['externalIds'] = this.externalIds;\n }\n if (typeof this.inputType !== 'undefined') {\n toReturn['inputType'] = this.inputType;\n }\n if (typeof this.outputType !== 'undefined') {\n toReturn['outputType'] = this.outputType;\n }\n if (typeof this.locale !== 'undefined') {\n toReturn['locale'] = this.locale;\n }\n return toReturn;\n }\n}\nclass GetMultiCategoryMappingResponse {\n static fromProto(proto) {\n let m = new GetMultiCategoryMappingResponse();\n m = Object.assign(m, proto);\n if (proto.category) {\n m.category = proto.category.map(Category.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.category !== 'undefined' && this.category !== null) {\n toReturn['category'] = 'toApiJson' in this.category ? this.category.toApiJson() : this.category;\n }\n return toReturn;\n }\n}\nclass DeleteCategoryRelationshipByOriginAndTargetRequestIdentifier {\n static fromProto(proto) {\n let m = new DeleteCategoryRelationshipByOriginAndTargetRequestIdentifier();\n m = Object.assign(m, proto);\n if (proto.categoryType) {\n m.categoryType = enumStringToValue(CategoryType, proto.categoryType);\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.externalId !== 'undefined') {\n toReturn['externalId'] = this.externalId;\n }\n if (typeof this.categoryType !== 'undefined') {\n toReturn['categoryType'] = this.categoryType;\n }\n return toReturn;\n }\n}\nclass UpdateCategoryMappingsRequestMappings {\n static fromProto(proto) {\n let m = new UpdateCategoryMappingsRequestMappings();\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.referencesId !== 'undefined') {\n toReturn['referencesId'] = this.referencesId;\n }\n if (typeof this.referencedById !== 'undefined') {\n toReturn['referencedById'] = this.referencedById;\n }\n return toReturn;\n }\n}\nclass SortOptions {\n static fromProto(proto) {\n let m = new SortOptions();\n m = Object.assign(m, proto);\n if (proto.field) {\n m.field = enumStringToValue(SortField, proto.field);\n }\n if (proto.direction) {\n m.direction = enumStringToValue(SortDirection, proto.direction);\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.field !== 'undefined') {\n toReturn['field'] = this.field;\n }\n if (typeof this.direction !== 'undefined') {\n toReturn['direction'] = this.direction;\n }\n return toReturn;\n }\n}\nclass UpdateCategoryMappingsRequest {\n static fromProto(proto) {\n let m = new UpdateCategoryMappingsRequest();\n m = Object.assign(m, proto);\n if (proto.create) {\n m.create = UpdateCategoryMappingsRequestMappings.fromProto(proto.create);\n }\n if (proto.delete) {\n m.delete = UpdateCategoryMappingsRequestMappings.fromProto(proto.delete);\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.categoryId !== 'undefined') {\n toReturn['categoryId'] = this.categoryId;\n }\n if (typeof this.create !== 'undefined' && this.create !== null) {\n toReturn['create'] = 'toApiJson' in this.create ? this.create.toApiJson() : this.create;\n }\n if (typeof this.delete !== 'undefined' && this.delete !== null) {\n toReturn['delete'] = 'toApiJson' in this.delete ? this.delete.toApiJson() : this.delete;\n }\n return toReturn;\n }\n}\nclass UpdateCategoryRequest {\n static fromProto(proto) {\n let m = new UpdateCategoryRequest();\n m = Object.assign(m, proto);\n if (proto.updateFields) {\n m.updateFields = UpdateCategoryRequestUpdateFields.fromProto(proto.updateFields);\n }\n if (proto.fieldMask) {\n m.fieldMask = FieldMask.fromProto(proto.fieldMask);\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.categoryId !== 'undefined') {\n toReturn['categoryId'] = this.categoryId;\n }\n if (typeof this.updateFields !== 'undefined' && this.updateFields !== null) {\n toReturn['updateFields'] = 'toApiJson' in this.updateFields ? this.updateFields.toApiJson() : this.updateFields;\n }\n if (typeof this.fieldMask !== 'undefined' && this.fieldMask !== null) {\n toReturn['fieldMask'] = 'toApiJson' in this.fieldMask ? this.fieldMask.toApiJson() : this.fieldMask;\n }\n return toReturn;\n }\n}\nclass UpdateCategoryRequestUpdateFields {\n static fromProto(proto) {\n let m = new UpdateCategoryRequestUpdateFields();\n m = Object.assign(m, proto);\n if (proto.translations) {\n m.translations = proto.translations.map(CategoryTranslation.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.name !== 'undefined') {\n toReturn['name'] = this.name;\n }\n if (typeof this.fullName !== 'undefined') {\n toReturn['fullName'] = this.fullName;\n }\n if (typeof this.isActive !== 'undefined') {\n toReturn['isActive'] = this.isActive;\n }\n if (typeof this.isHidden !== 'undefined') {\n toReturn['isHidden'] = this.isHidden;\n }\n if (typeof this.translations !== 'undefined' && this.translations !== null) {\n toReturn['translations'] = 'toApiJson' in this.translations ? this.translations.toApiJson() : this.translations;\n }\n return toReturn;\n }\n}\nclass ValidateCategoryRequest {\n static fromProto(proto) {\n let m = new ValidateCategoryRequest();\n m = Object.assign(m, proto);\n if (proto.category) {\n m.category = Category.fromProto(proto.category);\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.category !== 'undefined' && this.category !== null) {\n toReturn['category'] = 'toApiJson' in this.category ? this.category.toApiJson() : this.category;\n }\n return toReturn;\n }\n}\nclass ValidateCategoryResponse {\n static fromProto(proto) {\n let m = new ValidateCategoryResponse();\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.isValid !== 'undefined') {\n toReturn['isValid'] = this.isValid;\n }\n return toReturn;\n }\n}\nclass ValidateVCategoriesRequest {\n static fromProto(proto) {\n let m = new ValidateVCategoriesRequest();\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.externalIds !== 'undefined') {\n toReturn['externalIds'] = this.externalIds;\n }\n return toReturn;\n }\n}\nclass ValidateVCategoriesResponse {\n static fromProto(proto) {\n let m = new ValidateVCategoriesResponse();\n m = Object.assign(m, proto);\n if (proto.errors) {\n m.errors = Object.keys(proto.errors).reduce((obj, k) => {\n obj[k] = proto.errors[k];\n return obj;\n }, {});\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.errors !== 'undefined' && this.errors !== null) {\n toReturn['errors'] = 'toApiJson' in this.errors ? this.errors.toApiJson() : this.errors;\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': 'category-api.vendasta-local.com',\n 'test': '',\n 'demo': 'category-demo.apigateway.co',\n 'prod': 'category-prod.apigateway.co',\n 'production': 'category-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(t) {\n return new (t || 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 CategoriesApiService = /*#__PURE__*/(() => {\n class CategoriesApiService {\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 getCategory(r) {\n const request = r.toApiJson ? r : new GetCategoryRequest(r);\n return this.http.post(this._host + \"/category.v1.Categories/GetCategory\", request.toApiJson(), this.apiOptions()).pipe(map(resp => GetCategoryResponse.fromProto(resp)));\n }\n getCategoryList(r) {\n const request = r.toApiJson ? r : new GetCategoryListRequest(r);\n return this.http.post(this._host + \"/category.v1.Categories/GetCategoryList\", request.toApiJson(), this.apiOptions()).pipe(map(resp => GetCategoryListResponse.fromProto(resp)));\n }\n getCategoryMapping(r) {\n const request = r.toApiJson ? r : new GetCategoryMappingRequest(r);\n return this.http.post(this._host + \"/category.v1.Categories/GetCategoryMapping\", request.toApiJson(), this.apiOptions()).pipe(map(resp => GetCategoryMappingResponse.fromProto(resp)));\n }\n bulkCreateCategories(r) {\n const request = r.toApiJson ? r : new BulkCreateCategoriesRequest(r);\n return this.http.post(this._host + \"/category.v1.Categories/BulkCreateCategories\", request.toApiJson(), {\n ...this.apiOptions(),\n observe: 'response'\n });\n }\n bulkCreateCategoryRelationships(r) {\n const request = r.toApiJson ? r : new BulkCreateCategoryRelationshipsRequest(r);\n return this.http.post(this._host + \"/category.v1.Categories/BulkCreateCategoryRelationships\", request.toApiJson(), {\n ...this.apiOptions(),\n observe: 'response'\n });\n }\n bulkDeleteCategoryRelationships(r) {\n const request = r.toApiJson ? r : new BulkDeleteCategoryRelationshipsRequest(r);\n return this.http.post(this._host + \"/category.v1.Categories/BulkDeleteCategoryRelationships\", request.toApiJson(), {\n ...this.apiOptions(),\n observe: 'response'\n });\n }\n validateCategory(r) {\n const request = r.toApiJson ? r : new ValidateCategoryRequest(r);\n return this.http.post(this._host + \"/category.v1.Categories/ValidateCategory\", request.toApiJson(), this.apiOptions()).pipe(map(resp => ValidateCategoryResponse.fromProto(resp)));\n }\n getCategoryByNameAndType(r) {\n const request = r.toApiJson ? r : new GetCategoryByNameAndTypeRequest(r);\n return this.http.post(this._host + \"/category.v1.Categories/GetCategoryByNameAndType\", request.toApiJson(), this.apiOptions()).pipe(map(resp => GetCategoryByNameAndTypeResponse.fromProto(resp)));\n }\n deleteCategoryByExternalIdAndType(r) {\n const request = r.toApiJson ? r : new DeleteCategoryByExternalIDAndTypeRequest(r);\n return this.http.post(this._host + \"/category.v1.Categories/DeleteCategoryByExternalIDAndType\", request.toApiJson(), {\n ...this.apiOptions(),\n observe: 'response'\n });\n }\n deleteCategoryRelationshipByExternalIdAndType(r) {\n const request = r.toApiJson ? r : new DeleteCategoryRelationshipByExternalIDAndTypeRequest(r);\n return this.http.post(this._host + \"/category.v1.Categories/DeleteCategoryRelationshipByExternalIDAndType\", request.toApiJson(), {\n ...this.apiOptions(),\n observe: 'response'\n });\n }\n getCategoryByExternalIDsAndType(r) {\n const request = r.toApiJson ? r : new GetCategoryByExternalIDsAndTypeRequest(r);\n return this.http.post(this._host + \"/category.v1.Categories/GetCategoryByExternalIDsAndType\", request.toApiJson(), this.apiOptions()).pipe(map(resp => GetCategoryByExternalIDsAndTypeResponse.fromProto(resp)));\n }\n getMultiCategoryMapping(r) {\n const request = r.toApiJson ? r : new GetMultiCategoryMappingRequest(r);\n return this.http.post(this._host + \"/category.v1.Categories/GetMultiCategoryMapping\", request.toApiJson(), this.apiOptions()).pipe(map(resp => GetMultiCategoryMappingResponse.fromProto(resp)));\n }\n getCategoryBySearchTerm(r) {\n const request = r.toApiJson ? r : new CategorySearchRequest(r);\n return this.http.post(this._host + \"/category.v1.Categories/GetCategoryBySearchTerm\", request.toApiJson(), this.apiOptions()).pipe(map(resp => CategorySearchResponse.fromProto(resp)));\n }\n deleteCategoryRelationshipByOriginAndTarget(r) {\n const request = r.toApiJson ? r : new DeleteCategoryRelationshipByOriginAndTargetRequest(r);\n return this.http.post(this._host + \"/category.v1.Categories/DeleteCategoryRelationshipByOriginAndTarget\", request.toApiJson(), {\n ...this.apiOptions(),\n observe: 'response'\n });\n }\n updateCategory(r) {\n const request = r.toApiJson ? r : new UpdateCategoryRequest(r);\n return this.http.post(this._host + \"/category.v1.Categories/UpdateCategory\", request.toApiJson(), {\n ...this.apiOptions(),\n observe: 'response'\n });\n }\n createCategory(r) {\n const request = r.toApiJson ? r : new CreateCategoryRequest(r);\n return this.http.post(this._host + \"/category.v1.Categories/CreateCategory\", request.toApiJson(), this.apiOptions()).pipe(map(resp => CreateCategoryResponse.fromProto(resp)));\n }\n getAllCategoryMappings(r) {\n const request = r.toApiJson ? r : new GetAllCategoryMappingsRequest(r);\n return this.http.post(this._host + \"/category.v1.Categories/GetAllCategoryMappings\", request.toApiJson(), this.apiOptions()).pipe(map(resp => GetAllCategoryMappingsResponse.fromProto(resp)));\n }\n updateCategoryMappings(r) {\n const request = r.toApiJson ? r : new UpdateCategoryMappingsRequest(r);\n return this.http.post(this._host + \"/category.v1.Categories/UpdateCategoryMappings\", request.toApiJson(), {\n ...this.apiOptions(),\n observe: 'response'\n });\n }\n }\n CategoriesApiService.ɵfac = function CategoriesApiService_Factory(t) {\n return new (t || CategoriesApiService)(i0.ɵɵinject(i1.HttpClient), i0.ɵɵinject(HostService));\n };\n CategoriesApiService.ɵprov = /* @__PURE__ */i0.ɵɵdefineInjectable({\n token: CategoriesApiService,\n factory: CategoriesApiService.ɵfac,\n providedIn: 'root'\n });\n return CategoriesApiService;\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 VCategoryValidationApiService = /*#__PURE__*/(() => {\n class VCategoryValidationApiService {\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 validateVCategories(r) {\n const request = r.toApiJson ? r : new ValidateVCategoriesRequest(r);\n return this.http.post(this._host + \"/category.v1.VCategoryValidation/ValidateVCategories\", request.toApiJson(), this.apiOptions()).pipe(map(resp => ValidateVCategoriesResponse.fromProto(resp)));\n }\n }\n VCategoryValidationApiService.ɵfac = function VCategoryValidationApiService_Factory(t) {\n return new (t || VCategoryValidationApiService)(i0.ɵɵinject(i1.HttpClient), i0.ɵɵinject(HostService));\n };\n VCategoryValidationApiService.ɵprov = /* @__PURE__ */i0.ɵɵdefineInjectable({\n token: VCategoryValidationApiService,\n factory: VCategoryValidationApiService.ɵfac,\n providedIn: 'root'\n });\n return VCategoryValidationApiService;\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 CategoryService = /*#__PURE__*/(() => {\n class CategoryService {\n constructor(_api) {\n this._api = _api;\n }\n getCategory(categoryId) {\n return this._api.getCategory({\n categoryId: categoryId\n }).pipe(map(res => res.category));\n }\n getCategoryByExternalIDsAndType(categories, locale) {\n return this._api.getCategoryByExternalIDsAndType({\n categories: categories,\n locale: locale\n }).pipe(map(res => res.category));\n }\n getCategoryList(type, pagingOptions) {\n return this._api.getCategoryList({\n type: type,\n pagingOptions: pagingOptions\n }).pipe(map(res => res.category));\n }\n getCategoryMapping(externalId, inputType, outputType) {\n return this._api.getCategoryMapping({\n externalId: externalId,\n inputType: inputType,\n outputType: outputType\n }).pipe(map(res => res.category));\n }\n validateCategory(category) {\n return this._api.validateCategory({\n category: category\n }).pipe(map(res => res.isValid));\n }\n getCategoryBySearchTerm(searchTerm, type, pagingOptions, sortOptions) {\n return this._api.getCategoryBySearchTerm({\n searchTerm,\n type,\n pagingOptions,\n sortOptions\n }).pipe(map(res => res.category));\n }\n }\n CategoryService.ɵfac = function CategoryService_Factory(t) {\n return new (t || CategoryService)(i0.ɵɵinject(CategoriesApiService));\n };\n CategoryService.ɵprov = /* @__PURE__ */i0.ɵɵdefineInjectable({\n token: CategoryService,\n factory: CategoryService.ɵfac,\n providedIn: 'root'\n });\n return CategoryService;\n})();\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\nconst localeMap = new Map([['af', Locale.LOCALE_AFRIKAANS], ['cs', Locale.LOCALE_CZECH], ['nl', Locale.LOCALE_DUTCH], ['en', Locale.LOCALE_ENGLISH], ['fr', Locale.LOCALE_FRENCH], ['fr-ca', Locale.LOCALE_FRENCH_CANADA], ['de', Locale.LOCALE_GERMAN], ['it', Locale.LOCALE_ITALIAN], ['ja', Locale.LOCALE_JAPANESE], ['pt-br', Locale.LOCALE_PORTUGUESE_BRAZIL], ['ru', Locale.LOCALE_RUSSIAN], ['es-419', Locale.LOCALE_SPANISH_LATIN_AMERICA],\n// fallback options to handle regional language codes that are not supported by the API\n['es', Locale.LOCALE_SPANISH_LATIN_AMERICA], ['pt', Locale.LOCALE_PORTUGUESE_BRAZIL]]);\nclass CategoryUtils {\n /**\n * Convert user's language to Locale enum value\n * @param language user's language\n * @returns `Locale` enum value\n * @example CategoryUtils.localeFromLanguage('en') => Locale.LOCALE_ENGLISH\n */\n static localeFromLanguage(language) {\n const selectedLanguage = language?.toLowerCase() ?? '';\n const locale = localeMap.get(selectedLanguage);\n if (locale) {\n return locale;\n }\n // search for a fallback option based on the first slice of the language code\n const baseLanguage = selectedLanguage.split('-')[0];\n return localeMap.get(baseLanguage);\n }\n}\n\n/**\n * Generated bundle index. Do not edit.\n */\n\nexport { Access, BulkCreateCategoriesRequest, BulkCreateCategoryRelationshipsRequest, BulkDeleteCategoryRelationshipsRequest, CategoriesApiService, Category, CategoryClass, CategoryLocale, CategoryPagedRequestOptions, CategoryPagedResponseMetadata, CategoryRelationships, CategoryRequest, CategorySearchRequest, CategorySearchResponse, CategoryService, CategoryTranslation, CategoryType, CategoryUtils, CreateCategoryRequest, CreateCategoryResponse, DeleteCategoryByExternalIDAndTypeRequest, DeleteCategoryRelationshipByExternalIDAndTypeRequest, DeleteCategoryRelationshipByOriginAndTargetRequest, DeleteCategoryRelationshipByOriginAndTargetRequestIdentifier, FieldMask, GetAllCategoryMappingsRequest, GetAllCategoryMappingsResponse, GetCategoryByExternalIDsAndTypeRequest, GetCategoryByExternalIDsAndTypeResponse, GetCategoryByNameAndTypeRequest, GetCategoryByNameAndTypeResponse, GetCategoryListRequest, GetCategoryListResponse, GetCategoryMappingRequest, GetCategoryMappingResponse, GetCategoryRequest, GetCategoryResponse, GetMultiCategoryMappingRequest, GetMultiCategoryMappingResponse, Locale, PagedRequestOptions, PagedResponseMetadata, SortDirection, SortField, SortOptions, TypeCategoryRelationship, UpdateCategoryMappingsRequest, UpdateCategoryMappingsRequestMappings, UpdateCategoryRequest, UpdateCategoryRequestUpdateFields, VCategoryValidationApiService, ValidateCategoryRequest, ValidateCategoryResponse, ValidateVCategoriesRequest, ValidateVCategoriesResponse, ValidateVCategoriesResponseErrorsEntry };\n","import { InjectionToken } from '@angular/core';\nimport { Observable } from 'rxjs';\n\nexport const CATEGORY_SEARCH_PAGE_SIZE = 10;\n\n/**\n * Provide the language to be used in Category Service (i.e. 'en')\n */\nexport const LANGUAGE_TOKEN = new InjectionToken>('Language Token to be used in Category Service');\n","import { Component, OnInit, Input, ChangeDetectionStrategy, Inject, Optional } from '@angular/core';\nimport { catchError, distinctUntilChanged, map, startWith, switchMap } from 'rxjs/operators';\nimport { EMPTY, iif, Observable, of, ReplaySubject } from 'rxjs';\nimport { CategoriesApiService, Category, CategoryRequest, CategoryType, CategoryUtils } from '@vendasta/category';\nimport { LANGUAGE_TOKEN } from '../constants';\nimport { AtlasLanguageService } from '@galaxy/atlas/core';\n\n@Component({\n selector: 'category-overview',\n templateUrl: './category-overview.component.html',\n styleUrls: ['./category-overview.component.scss'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class CategoryOverviewComponent implements OnInit {\n //#region Input/Output parameters\n @Input() placeholder: string;\n\n @Input()\n get categoryType(): CategoryType {\n return this._categoryType;\n }\n set categoryType(value: CategoryType) {\n this._categoryType = value;\n this.refreshCategories();\n }\n private _categoryType: CategoryType = CategoryType.CATEGORY_TYPE_V_CATEGORY;\n\n @Input()\n get categoryIds(): string[] {\n return this._categoryIds;\n }\n set categoryIds(value: string[]) {\n this._categoryIds = value;\n this.refreshCategories();\n }\n private _categoryIds: string[] = [];\n //#endregion\n\n categories$: Observable;\n private readonly request$$: ReplaySubject = new ReplaySubject(1);\n private language$: Observable;\n\n constructor(\n private readonly categoryService: CategoriesApiService,\n @Optional() @Inject(LANGUAGE_TOKEN) private readonly languageToken$: Observable,\n @Optional() private readonly atlasLanguageService: AtlasLanguageService,\n ) {\n this.language$ = this.languageToken$ ?? this.atlasLanguageService?.language$ ?? EMPTY;\n }\n\n ngOnInit(): void {\n this.initObservables();\n }\n\n private refreshCategories(): void {\n const categoryType = this.categoryType ?? CategoryType.CATEGORY_TYPE_V_CATEGORY;\n const ids = this.categoryIds ?? [];\n const req = ids.map((externalId) => { externalId, categoryType });\n this.request$$.next(req);\n }\n\n private compareRequests(a?: CategoryRequest[], b?: CategoryRequest[]): boolean {\n if (a?.length !== b?.length) {\n return false;\n }\n return !a?.find((elA) => !b?.find((elB) => elA.externalId === elB.externalId));\n }\n\n private initObservables(): void {\n // since the language is not required, we need to start with null to make sure that a value is emitted\n const language$ = this.language$.pipe(startWith(null), distinctUntilChanged());\n\n this.categories$ = this.request$$.pipe(\n distinctUntilChanged(this.compareRequests),\n switchMap((categories) =>\n iif(\n // only send the request if there are at least one category\n () => categories?.length > 0,\n language$.pipe(switchMap((language) => this.getCategories(categories, language))),\n of([]),\n ),\n ),\n catchError(() => []),\n );\n }\n\n private getCategories(categories: CategoryRequest[], language?: string): Observable {\n return this.categoryService\n .getCategoryByExternalIDsAndType({\n categories,\n languageAndLocale: CategoryUtils.localeFromLanguage(language),\n })\n .pipe(map((res) => res?.category));\n }\n}\n","\n 0; else noCategories\">\n {{ category.name }}{{ isLast ? '' : ', ' }}\n \n \n {{ placeholder }}\n \n\n","import { Injectable } from '@angular/core';\nimport {\n CategoriesApiService,\n Category,\n CategorySearchResponse,\n CategoryType,\n PagedRequestOptionsInterface,\n SortOptionsInterface,\n} from '@vendasta/category';\nimport { Observable } from 'rxjs';\nimport { CategoryRequest } from '@vendasta/category';\nimport { map } from 'rxjs/operators';\n\n@Injectable({ providedIn: 'root' })\nexport class BusinessCategoryService {\n constructor(private readonly categoryService: CategoriesApiService) {}\n\n getCategoryMapping(externalId: string, inputType: CategoryType, outputType: CategoryType): Observable {\n return this.categoryService\n .getCategoryMapping({ externalId, inputType, outputType })\n .pipe(map((res) => res?.category));\n }\n\n getCategoryByExternalIDsAndType(categories: CategoryRequest[], locale?: string): Observable {\n return this.categoryService\n .getCategoryByExternalIDsAndType({ categories, locale })\n .pipe(map((res) => res?.category));\n }\n\n getCategorySearchByTerm(\n searchTerm: string,\n type: CategoryType,\n pagingOptions?: PagedRequestOptionsInterface,\n sortOptions?: SortOptionsInterface[],\n ): Observable {\n return this.categoryService.getCategoryBySearchTerm({ searchTerm, type, pagingOptions, sortOptions });\n }\n}\n","import { Pipe, PipeTransform } from '@angular/core';\nimport { DomSanitizer } from '@angular/platform-browser';\n\n@Pipe({ name: 'highlight' })\nexport class HighlightSearchPipe implements PipeTransform {\n constructor(private sanitizer: DomSanitizer) {}\n\n transform(value: string, searchTerm?: string): any {\n if (!searchTerm) {\n return value;\n }\n const options = searchTerm.split(' ').filter(Boolean).join('|');\n const re = new RegExp(`(${options})`, 'gi');\n const replacedValue = value.replace(re, '$1');\n return this.sanitizer.bypassSecurityTrustHtml(replacedValue);\n }\n}\n","import { EventEmitter, Injectable } from '@angular/core';\nimport {\n CategoriesApiService,\n Category,\n CategoryInterface,\n CategoryRequestInterface,\n CategoryType,\n CategoryUtils,\n PagedRequestOptionsInterface,\n SortDirection,\n SortField,\n SortOptionsInterface,\n} from '@vendasta/category';\nimport { BehaviorSubject, Observable, ReplaySubject, combineLatest } from 'rxjs';\nimport { debounceTime, distinctUntilChanged, map, startWith, switchMap, tap, withLatestFrom } from 'rxjs/operators';\nimport { CATEGORY_SEARCH_PAGE_SIZE } from '../constants';\nimport { SearchResult } from '../interfaces';\n\n@Injectable()\nexport class CategorySelectService {\n private readonly defaultPagingOptions: PagedRequestOptionsInterface = { pageSize: CATEGORY_SEARCH_PAGE_SIZE };\n private readonly defaultSortOptions: SortOptionsInterface[] = [\n { field: SortField.SORT_FIELD_SCORE, direction: SortDirection.SORT_DIRECTION_DESCENDING },\n { field: SortField.SORT_FIELD_FULL_NAME, direction: SortDirection.SORT_DIRECTION_ASCENDING },\n ];\n\n private readonly categorySearchTerm$$ = new ReplaySubject(1);\n private readonly categorySearchTerm$ = this.categorySearchTerm$$.pipe(\n startWith(''),\n map((term) => term?.trim()),\n distinctUntilChanged(),\n debounceTime(200),\n tap(() => {\n this.aggregatedResult$$.next(null);\n this.categorySearchPage$$.next(this.defaultPagingOptions);\n this.isInitialFetch = true;\n }),\n );\n\n readonly language$$ = new BehaviorSubject(null);\n\n private readonly categorySearchPage$$ = new ReplaySubject(1);\n private readonly categorySearchPage$ = this.categorySearchPage$$.pipe(\n startWith(this.defaultPagingOptions),\n distinctUntilChanged(),\n );\n\n private readonly categoryType$$ = new BehaviorSubject(CategoryType.CATEGORY_TYPE_V_CATEGORY);\n private readonly categoryType$ = this.categoryType$$.pipe(\n distinctUntilChanged(),\n tap(() => this.aggregatedResult$$.next(null)),\n );\n private readonly aggregatedResult$$ = new ReplaySubject(1);\n\n private nextCategoriesPage: PagedRequestOptionsInterface;\n private isInitialFetch = false;\n\n readonly afterInitialFetch: EventEmitter = new EventEmitter();\n\n readonly categories$: Observable = combineLatest([\n this.categorySearchTerm$,\n this.categorySearchPage$,\n this.categoryType$,\n this.language$$,\n ]).pipe(\n tap(() => (this.nextCategoriesPage = null)),\n switchMap(([searchTerm, pagingOptions, type, language]) =>\n this.categoriesApiService\n .getCategoryBySearchTerm({\n searchTerm,\n type,\n pagingOptions,\n sortOptions: this.defaultSortOptions,\n onlyVisible: true,\n languageAndLocale: CategoryUtils.localeFromLanguage(language),\n })\n .pipe(\n tap((response) => {\n // set the paging for autocomplete infinite scroll\n if (response?.pagingMetadata?.hasMore) {\n this.nextCategoriesPage = {\n cursor: response.pagingMetadata.nextCursor,\n pageSize: CATEGORY_SEARCH_PAGE_SIZE,\n };\n }\n }),\n map((response) => {\n const categories = response?.category || [];\n // enforce the category type because the API will return null for vCategory\n categories.forEach((category) => (category.type = type));\n return { categories, searchTerm };\n }),\n ),\n ),\n withLatestFrom(this.aggregatedResult$$),\n map(([result, newCategories]) => {\n result.categories = (newCategories ?? []).concat(result.categories);\n this.aggregatedResult$$.next(result.categories);\n if (this.isInitialFetch) {\n this.afterInitialFetch.emit();\n }\n this.isInitialFetch = false;\n return result;\n }),\n );\n\n constructor(private readonly categoriesApiService: CategoriesApiService) {}\n\n get categoryType(): CategoryType {\n return this.categoryType$$.value;\n }\n\n set categoryType(value: CategoryType) {\n this.categoryType$$.next(value);\n }\n\n fetch(searchTerm: string): void {\n this.categorySearchTerm$$.next(searchTerm);\n }\n\n fetchNext(): void {\n if (this.nextCategoriesPage) {\n this.categorySearchPage$$.next(this.nextCategoriesPage);\n }\n }\n\n getCategoryByExternalIDsAndType(categories: CategoryRequestInterface[]): Observable {\n return this.language$$.pipe(\n switchMap((language) =>\n this.categoriesApiService.getCategoryByExternalIDsAndType({\n categories,\n languageAndLocale: CategoryUtils.localeFromLanguage(language),\n }),\n ),\n map((response) => response?.category || []),\n );\n }\n}\n","import { Pipe, PipeTransform } from '@angular/core';\nimport { CategoryInterface } from '@vendasta/category';\n\n@Pipe({ name: 'excludeCategories' })\nexport class ExcludeCategoriesPipe implements PipeTransform {\n transform(value: CategoryInterface[], excludeIds?: string[]): CategoryInterface[] {\n if (excludeIds?.length > 0) {\n return value.filter((category) => !excludeIds.includes(category.externalId));\n }\n return value;\n }\n}\n","import { Pipe, PipeTransform } from '@angular/core';\nimport { CategoryInterface } from '@vendasta/category';\n\n@Pipe({ name: 'chipColor' })\nexport class ChipColorPipe implements PipeTransform {\n transform(category: CategoryInterface): string {\n return this.getColor(category);\n }\n\n private isInvalid(category: CategoryInterface): boolean {\n return category.isHidden || !category.isActive;\n }\n\n private getColor(category: CategoryInterface): string {\n if (this.isInvalid(category)) {\n return 'red';\n }\n return '';\n }\n}\n","import { BooleanInput, NumberInput, coerceBooleanProperty, coerceNumberProperty } from '@angular/cdk/coercion';\nimport {\n AfterViewInit,\n Component,\n ElementRef,\n EventEmitter,\n HostBinding,\n Inject,\n Input,\n OnDestroy,\n Optional,\n Output,\n Self,\n ViewChild,\n} from '@angular/core';\nimport { ControlValueAccessor, FormControl, NgControl } from '@angular/forms';\nimport { MatAutocompleteSelectedEvent } from '@angular/material/autocomplete';\nimport { MatFormFieldControl } from '@angular/material/form-field';\nimport { AtlasLanguageService } from '@galaxy/atlas/core';\nimport { Category, CategoryInterface, CategoryRequest, CategoryType } from '@vendasta/category';\nimport { SubscriptionList } from '@vendasta/rx-utils';\nimport { BehaviorSubject, EMPTY, Observable, Subject, of } from 'rxjs';\nimport { debounceTime, distinctUntilChanged, filter, map, switchMap, tap } from 'rxjs/operators';\nimport { LANGUAGE_TOKEN } from '../constants';\nimport { SearchResult } from '../interfaces';\nimport { CategorySelectService } from './category-select.service';\n\ninterface SetCategoriesRequest {\n type: CategoryType;\n externalIds: string[];\n}\n\ntype OnChangeFn = (value: string[]) => void;\ntype OnTouchedFn = () => void;\n\n@Component({\n selector: 'category-select',\n templateUrl: './category-select.component.html',\n styleUrls: ['./category-select.component.scss'],\n providers: [CategorySelectService, { provide: MatFormFieldControl, useExisting: CategorySelectComponent }],\n})\nexport class CategorySelectComponent\n implements ControlValueAccessor, MatFormFieldControl, OnDestroy, AfterViewInit\n{\n private static nextId = 0;\n //#region Input/Output parameters\n @Input()\n get maxCategories(): number {\n return this._maxCategories;\n }\n set maxCategories(value: NumberInput) {\n this.setMaxCategories(coerceNumberProperty(value, 0));\n }\n private _maxCategories = 0;\n\n @Input()\n get categoryType(): CategoryType {\n return this.categorySelectService.categoryType;\n }\n set categoryType(value: CategoryType) {\n this.setCategoryType(value);\n }\n\n @Input()\n get disabled(): boolean {\n return this._disabled;\n }\n set disabled(value: BooleanInput) {\n this._disabled = coerceBooleanProperty(value);\n this.stateChanges$$.next();\n }\n private _disabled = false;\n\n @Input()\n get required(): boolean {\n return this._required;\n }\n set required(value: BooleanInput) {\n this._required = coerceBooleanProperty(value);\n this.stateChanges$$.next();\n }\n private _required = false;\n\n @Input()\n get value(): string[] {\n return this._value;\n }\n set value(externalIds: string[]) {\n this._value = externalIds;\n this.stateChanges$$.next();\n this.refreshCategoryChipList();\n }\n private _value: string[] = [];\n\n @Input()\n get placeholder(): string {\n return this._placeholder;\n }\n set placeholder(plh: string) {\n this._placeholder = plh;\n this.stateChanges$$.next();\n }\n private _placeholder = 'Add category...';\n\n // eslint-disable-next-line @angular-eslint/no-output-on-prefix\n @Output() readonly onCategoriesChange = new EventEmitter();\n //#endregion\n\n //#region Template bindings\n @ViewChild('addCategoryCtrl') private readonly addCategoryCtrl: ElementRef;\n @ViewChild('categoryOptionsContainer') private readonly categoryOptionsContainer: ElementRef;\n\n @HostBinding('[id]') id = `category-select-${CategorySelectComponent.nextId++}`;\n @HostBinding('[class.floating]') get shouldLabelFloat(): boolean {\n return this.focused || !this.empty;\n }\n //#endregion\n\n private readonly subscriptions = SubscriptionList.new();\n private readonly stateChanges$$ = new Subject();\n private _categories: CategoryInterface[] = [];\n\n onChange: OnChangeFn;\n onTouched: OnTouchedFn;\n focused = false;\n\n readonly addCategoryControl = new FormControl({ value: '', disabled: true });\n readonly refreshCategories$$ = new Subject();\n readonly searchResult$: Observable = this.categorySelectService.categories$;\n readonly loading$$ = new BehaviorSubject(false);\n readonly stateChanges = this.stateChanges$$;\n readonly controlType = 'category-select';\n\n constructor(\n @Optional() @Self() public ngControl: NgControl,\n private readonly categorySelectService: CategorySelectService,\n @Optional() @Inject(LANGUAGE_TOKEN) private readonly languageToken$: Observable,\n @Optional() private readonly atlasLanguageService: AtlasLanguageService,\n ) {\n if (this.ngControl) {\n // required by MatFormFieldControl\n this.ngControl.valueAccessor = this;\n }\n this.setupSubscriptions();\n }\n\n //#region Angular lifecycle event\n ngOnDestroy(): void {\n this.subscriptions.destroy();\n }\n\n ngAfterViewInit(): void {\n this.addCategoryCtrl.nativeElement.addEventListener('focusin', () => this.onFocusIn());\n this.addCategoryCtrl.nativeElement.addEventListener('focusout', () => this.onFocusOut());\n }\n //#endregion\n\n get empty(): boolean {\n return !(this._value?.length > 0);\n }\n\n get errorState(): boolean {\n return !this.isNull(this.ngControl.errors) && !!this.ngControl.touched;\n }\n\n get categories(): CategoryInterface[] {\n return this._categories;\n }\n set categories(value: CategoryInterface[]) {\n this._categories = value;\n this.onCategoriesChange.emit(value);\n }\n\n get addDisabled(): boolean {\n return (\n this.disabled ||\n (this._maxCategories > 0 && this.value?.length >= this._maxCategories) ||\n this.isNull(this.categorySelectService.categoryType)\n );\n }\n\n private setMaxCategories(value: number): void {\n if (value !== this._maxCategories) {\n this._maxCategories = value;\n }\n }\n\n private setCategoryType(value: CategoryType): void {\n if (value !== this.categorySelectService.categoryType) {\n this.categorySelectService.categoryType = value;\n this.refreshCategoryChipList();\n }\n }\n\n private isNull(value?: unknown): boolean {\n return value === null || value === undefined;\n }\n\n private setupSubscriptions(): void {\n this.subscriptions.add(this.categorySelectService.afterInitialFetch, () =>\n this.categoryOptionsContainer?.nativeElement?.scrollIntoView?.(),\n );\n\n const language$ = this.languageToken$ ?? this.atlasLanguageService?.language$ ?? EMPTY;\n this.subscriptions.add(language$, (value) => this.categorySelectService.language$$.next(value));\n\n const refreshCategories$ = this.refreshCategories$$.pipe(\n debounceTime(100),\n filter((r) => this.validCategoryRequest(r)),\n distinctUntilChanged((prev, curr: SetCategoriesRequest) => this.sameCategoryRequest(prev, curr)),\n tap(() => this.loading$$.next(true)),\n map((r) => r.externalIds?.map((externalId) => { externalId, categoryType: r.type }) ?? []),\n switchMap((r) => (r.length > 0 ? this.categorySelectService.getCategoryByExternalIDsAndType(r) : of([]))),\n map((categories) => this.validateCategories(categories)),\n tap(() => this.loading$$.next(false)),\n );\n this.subscriptions.add(refreshCategories$, (categories) => (this.categories = categories));\n }\n\n private validateCategories(categories: CategoryInterface[]): CategoryInterface[] {\n // accepts only the specified quantity of categories\n if (this._maxCategories > 0 && categories?.length > this._maxCategories) {\n categories = categories.slice(0, this._maxCategories);\n this.value = categories.map((c) => c.externalId);\n this.onChange?.(this.value);\n this.markAsTouched();\n }\n return categories;\n }\n\n private refreshCategoryChipList(): void {\n this.refreshCategories$$.next({\n type: this.categorySelectService.categoryType,\n externalIds: this._value,\n });\n }\n\n private validCategoryRequest(req: SetCategoriesRequest): boolean {\n return !this.isNull(req.type) && req.externalIds?.join() !== this.categories.map((c) => c.externalId).join();\n }\n\n private sameCategoryRequest(prev: SetCategoriesRequest, curr: SetCategoriesRequest): boolean {\n return prev.externalIds?.join() === curr.externalIds?.join() && prev.type === curr.type;\n }\n\n addCategory(event: MatAutocompleteSelectedEvent): void {\n this.markAsTouched();\n this.categories = [...this.categories, event.option.value];\n this.value = this.categories.map((c) => c.externalId);\n this.onChange?.(this.value);\n event.option.deselect();\n this.addCategoryCtrl.nativeElement.value = '';\n this.addCategoryCtrl.nativeElement.focus();\n this.categorySelectService.fetch('');\n }\n\n removeCategory(category: Category): void {\n this.markAsTouched();\n this.categories = this.categories.filter((c) => c.externalId !== category.externalId);\n this.value = this.categories.map((c) => c.externalId);\n this.onChange?.(this.value);\n }\n\n updateCategorySearchTerm(value: string): void {\n this.categorySelectService.fetch(value);\n }\n\n fetchMoreCategories(): void {\n this.categorySelectService.fetchNext();\n }\n\n setDescribedByIds(ids: string[]): void {\n this.addCategoryCtrl?.nativeElement?.setAttribute('aria-describedby', ids.join(' '));\n }\n\n onContainerClick(event?: MouseEvent): void {\n if (event) {\n // no-op\n }\n this.addCategoryCtrl?.nativeElement?.focus();\n }\n\n onFocusIn(): void {\n this.focused = true;\n this.stateChanges$$.next();\n }\n\n onFocusOut(): void {\n this.focused = false;\n this.onTouched?.();\n this.stateChanges$$.next();\n }\n\n //#region ControlValueAccessor implementation\n writeValue(externalIds: string[]) {\n this.value = externalIds;\n }\n\n registerOnChange(onChange: OnChangeFn) {\n this.onChange = onChange;\n }\n\n registerOnTouched(onTouched: OnTouchedFn) {\n this.onTouched = onTouched;\n }\n\n markAsTouched() {\n if (!this.ngControl.touched) {\n this.ngControl.control?.markAsTouched();\n }\n this.onTouched?.();\n }\n\n setDisabledState(disabled: boolean) {\n this.disabled = disabled;\n }\n //#endregion\n}\n","\n\n\n\n \n \n {{ category.fullName }}\n cancel\n \n \n \n \n \n
\n 0; else noResults\">\n \n \n \n \n \n \n \n \n No results found\n \n
\n
\n \n
\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { FormsModule, ReactiveFormsModule } from '@angular/forms';\nimport { MatIconModule } from '@angular/material/icon';\nimport { MatFormFieldModule } from '@angular/material/form-field';\nimport { MatAutocompleteModule } from '@angular/material/autocomplete';\nimport { VaBadgeModule } from '@vendasta/uikit';\nimport { MatTooltipModule } from '@angular/material/tooltip';\nimport { MatInputModule } from '@angular/material/input';\nimport { MatButtonModule } from '@angular/material/button';\nimport { CategoryOverviewComponent } from './category-overview/category-overview.component';\nimport { MatProgressSpinnerModule } from '@angular/material/progress-spinner';\nimport { BusinessCategoryService } from './business-category.service';\nimport { GalaxyInfiniteScrollTriggerModule } from '@vendasta/galaxy/infinite-scroll-trigger';\nimport { HighlightSearchPipe } from './pipes/highlight-search.pipe';\nimport { CategorySelectComponent } from './category-select/category-select.component';\nimport { MatChipsModule } from '@angular/material/chips';\nimport { ExcludeCategoriesPipe } from './pipes/exclude-categories.pipe';\nimport { ChipColorPipe } from './pipes/chip-color.pipe';\nimport { GalaxyLoadingSpinnerModule } from '@vendasta/galaxy/loading-spinner';\nimport { GalaxyFormFieldModule } from '@vendasta/galaxy/form-field';\n\n@NgModule({\n declarations: [\n CategoryOverviewComponent,\n HighlightSearchPipe,\n CategorySelectComponent,\n ExcludeCategoriesPipe,\n ChipColorPipe,\n ],\n imports: [\n CommonModule,\n MatIconModule,\n MatButtonModule,\n MatInputModule,\n MatFormFieldModule,\n MatAutocompleteModule,\n MatTooltipModule,\n FormsModule,\n ReactiveFormsModule,\n VaBadgeModule,\n MatProgressSpinnerModule,\n GalaxyInfiniteScrollTriggerModule,\n MatChipsModule,\n GalaxyLoadingSpinnerModule,\n GalaxyFormFieldModule,\n ],\n providers: [BusinessCategoryService],\n exports: [CategoryOverviewComponent, CategorySelectComponent],\n})\nexport class BusinessCategoryModule {}\n","import { CategoryInterface, CategoryType, Locale } from '@vendasta/category';\n\n/** External IDs included in Health category which are not covered by the root name */\nconst healthCategoryExceptions = ['addiction_treatment_center'];\nconst healthCategoryRootName = 'health';\n\n/**\n * Health category determined by:\n * vTax externalId starting with `health`\n * vCategory under the `Health & Medical` root category\n * vCategory externalId equal to `addiction_treatment_center` (mapped from vTax health:physicians:addiction_specialist)\n */\nexport function isHealthCategory(category: CategoryInterface): boolean {\n const type = category?.type ?? CategoryType.CATEGORY_TYPE_V_CATEGORY;\n const englishTranslation = category?.translations?.find((t) => t.locale === Locale.LOCALE_ENGLISH);\n const fullName = (englishTranslation?.fullName || category?.fullName)?.toLowerCase();\n const externalId = category?.externalId?.toLocaleLowerCase();\n return (\n (type === CategoryType.CATEGORY_TYPE_V_TAX && externalId.startsWith(healthCategoryRootName)) ||\n (type === CategoryType.CATEGORY_TYPE_V_CATEGORY && fullName.startsWith(healthCategoryRootName)) ||\n healthCategoryExceptions.includes[externalId]\n );\n}\n\nexport function isInvalidForSelection(category: CategoryInterface): boolean {\n // when category is not active or hidden, it is invalid for selection\n return !category.isActive || category.isHidden;\n}\n","export { BusinessCategoryModule } from './lib/business-category.module';\nexport { BusinessCategoryService } from './lib/business-category.service';\nexport { CategoryOverviewComponent } from './lib/category-overview/category-overview.component';\nexport { CategorySelectComponent } from './lib/category-select/category-select.component';\nexport * from './lib/constants';\nexport * from './lib/utils';\n","import { AbstractControl, FormControl, UntypedFormGroup, ValidationErrors, ValidatorFn } from '@angular/forms';\n\nexport function NotOnlyWhitespaceValidator(control: FormControl) {\n const inputVal = typeof control?.value === 'string' ? control.value : 'notstring';\n return inputVal.trim().length ? null : { whitespace: true };\n}\nexport function totalLengthOfRepeatedFieldValidator(maxLength: number, friendlyName: string): ValidatorFn {\n return (control: AbstractControl): { [key: string]: any } => {\n if (!control.value) {\n return null;\n }\n if (control.value.length === 0) {\n return null;\n }\n\n const value = control.value.filter((val: string) => !!val).join(',');\n return value.length > maxLength\n ? {\n lengthOfRepeatedField: {\n maxLength: maxLength,\n friendlyName: friendlyName,\n },\n }\n : null;\n };\n}\n\nexport function primaryIsNotInAdditionalSalespeople(salespersonNameFromValue: (value: string) => string): ValidatorFn {\n return (fg: UntypedFormGroup): ValidationErrors => {\n const primaryId = fg.controls['salespersonId'];\n const additionalIds = fg.controls['additionalSalespersonIds'];\n if (!additionalIds.value || additionalIds.value.indexOf(primaryId.value) === -1) {\n additionalIds.setErrors(null);\n return null;\n }\n\n const error: ValidationErrors = { primaryName: salespersonNameFromValue(primaryId.value) };\n additionalIds.markAsTouched();\n additionalIds.setErrors(error);\n return error;\n };\n}\n\nexport function primaryIsSelectedWhenHavingAdditionalSalespeople(): ValidatorFn {\n return (fg: UntypedFormGroup): ValidationErrors => {\n const primaryId = fg.controls['salespersonId'];\n const additionalIds = fg.controls['additionalSalespersonIds'];\n if (additionalIds.value && additionalIds.value.length > 0 && !primaryId.value) {\n const error: ValidationErrors = {\n primaryNotSelected: true,\n };\n primaryId.markAsTouched();\n primaryId.setErrors(error);\n return error;\n }\n\n primaryId.setErrors(null);\n return null;\n };\n}\n","import { Injectable } from '@angular/core';\nimport { Observable } from 'rxjs';\nimport { map } from 'rxjs/operators';\nimport { FeatureFlagService as PartnerSDKFeatureFlagService } from '@galaxy/partner';\n\nexport class FeatureFlagMultiResponse {\n [key: string]: boolean;\n}\n\n@Injectable({ providedIn: 'root' })\nexport class FeatureFlagService {\n constructor(private featureFlagService: PartnerSDKFeatureFlagService) {}\n\n checkFeatureFlagsMulti(partnerId: string, marketId = '', featureIds: string[]): Observable {\n return this.featureFlagService.batchGetStatus(partnerId, marketId, featureIds);\n }\n\n checkFeatureFlag(partnerId: string, marketId = '', featureId: string): Observable {\n return this.checkFeatureFlagsMulti(partnerId, marketId, [featureId]).pipe(\n map((val: FeatureFlagMultiResponse): boolean => {\n return featureId in val && val[featureId];\n }),\n );\n }\n}\n","import { Pipe, PipeTransform } from '@angular/core';\nimport { format, CountryCode, parsePhoneNumber } from 'libphonenumber-js';\n\n/** @deprecated Use FormatPhoneNumberPipe from uikit */\n@Pipe({ name: 'formatPhoneNumber' })\nexport class FormatPhoneNumberPipe implements PipeTransform {\n transform(phoneNumber: string, countryCode: string): string {\n if (countryCode as CountryCode) {\n const newCountryCode = countryCode;\n try {\n return format(phoneNumber, newCountryCode, 'NATIONAL');\n } catch {\n return phoneNumber;\n }\n } else {\n return phoneNumber;\n }\n }\n\n transformForBusinessProfile(phoneNumber: string, countryCode: string): string {\n if (countryCode as CountryCode) {\n const newCountryCode = countryCode;\n try {\n const parsedNumber = parsePhoneNumber(phoneNumber, newCountryCode);\n if (!parsedNumber || !parsedNumber.isValid()) {\n return phoneNumber;\n }\n return parsedNumber.formatInternational();\n } catch {\n return phoneNumber;\n }\n } else {\n return phoneNumber;\n }\n }\n}\n","export interface Market {\n value: string;\n name: string;\n}\n\nexport enum BusinessProfileTab {\n Primary,\n Hours,\n Social,\n Descriptions,\n Images,\n Professional,\n Attributes,\n CustomFields,\n Administration,\n}\n\nexport enum HiddenField {\n Markets,\n Sales,\n SocialFourSquare,\n CustomerIdentifier,\n Map,\n}\n\nexport interface LightboxData {\n index: number;\n imageUrls: string[];\n}\n","import { Geo } from '@vendasta/listing-products';\n\nexport enum FieldName {\n FirstName = 'firstName',\n LastName = 'lastName',\n Country = 'country',\n City = 'city',\n PostalCode = 'zip',\n Province = 'province',\n Address1 = 'address1',\n Address2 = 'address2',\n Phone = 'phone',\n Company = 'company',\n}\n\nexport interface Address {\n company?: string;\n firstName?: string;\n lastName?: string;\n address1: string;\n address2: string;\n city: string;\n province?: string;\n zip: string;\n // Country code ISO 3166-1 alpha-2\n country: string;\n phone?: string;\n location?: Geo;\n}\n\nexport interface Province {\n code: string;\n name: string;\n}\nexport interface LoadCountriesResponse {\n data: { countries: Country[] };\n}\n\nexport interface LoadCountryResponse {\n data: { country: Country };\n}\nexport interface Country {\n name: string;\n code: string;\n continent: string;\n phoneNumberPrefix: number;\n autocompletionField: string;\n labels: {\n address1: string;\n address2: string;\n city: string;\n company: string;\n country: string;\n firstName: string;\n lastName: string;\n phone: string;\n postalCode: string;\n zone: string;\n };\n formatting: {\n edit: string;\n show: string;\n };\n zones: Province[];\n}\n\nexport interface ResponseError {\n errors: {\n locations: {\n column: number;\n line: number;\n }[];\n message: string;\n problems: {\n explanation: string;\n }[];\n value: any;\n }[];\n}\n","import { Injectable } from '@angular/core';\nimport { LangChangeEvent, TranslateService } from '@ngx-translate/core';\nimport { AddressAPIService, CountryConfiguration, CountryOption } from '@vendasta/address';\nimport { EMPTY, Observable, of } from 'rxjs';\nimport { catchError, map, shareReplay, startWith, switchMap, tap } from 'rxjs/operators';\nimport { Address, FieldName, Province } from './interface';\n\nconst FIELD_REGEXP = /({\\w+})/g;\nconst FIELDS_MAPPING: {\n [key: string]: FieldName;\n} = {\n '{firstName}': FieldName.FirstName,\n '{lastName}': FieldName.LastName,\n '{country}': FieldName.Country,\n '{city}': FieldName.City,\n '{zip}': FieldName.PostalCode,\n '{province}': FieldName.Province,\n '{address1}': FieldName.Address1,\n '{address2}': FieldName.Address2,\n '{phone}': FieldName.Phone,\n '{company}': FieldName.Company,\n};\nconst LINE_DELIMITER = '_';\nconst DEFAULT_FORM_LAYOUT =\n '{firstName}{lastName}_{company}_{address1}_{address2}_{city}_{country}{province}{zip}_{phone}';\nconst DEFAULT_SHOW_LAYOUT =\n '{lastName} {firstName}_{company}_{address1} {address2}_{city} {province} {zip}_{country}_{phone}';\n\n@Injectable()\nexport class AddressService {\n private countryConfigCache: Map = new Map([]);\n private countryOptionCache: Map = new Map([]);\n private countryConfig$: Observable;\n private countryOptions$: Observable;\n\n constructor(\n private addressApiService: AddressAPIService,\n private translateService: TranslateService,\n ) {}\n\n public mailingAddress$(address: Address): Observable {\n return this.getCountry(address.country).pipe(\n map((country: CountryConfiguration) => this.format(country, address)),\n map((addressLines: string[]) => {\n return addressLines.filter((line) => !!line).join('\\n');\n }),\n );\n }\n\n public shortAddress$(address: Address): Observable {\n return this.getCountry(address.country).pipe(\n map((country: CountryConfiguration) =>\n this.format(country, {\n address1: address.address1,\n address2: address.address2,\n city: address.city,\n province: address.province,\n zip: '',\n country: '',\n } as Address),\n ),\n map((addressLines: string[]) => {\n return addressLines.filter((line) => !!line).join(', ');\n }),\n );\n }\n\n // Fetch information for rendering a country's input or output\n public getCountry(countryCode: string): Observable {\n if (!countryCode) {\n return of(null);\n }\n return this.translateService.onLangChange.pipe(\n map((langChangeEvent: LangChangeEvent) => langChangeEvent.lang),\n startWith(this.translateService.currentLang || this.translateService.defaultLang),\n switchMap((locale: string) => {\n const cacheKey = `${locale}:${countryCode}`;\n if (this.countryConfigCache.has(cacheKey)) {\n return of(this.countryConfigCache.get(cacheKey));\n }\n if (this.countryConfig$) {\n return this.countryConfig$;\n }\n this.countryConfig$ = this.addressApiService.getCountryConfiguration(countryCode, locale).pipe(\n tap((countryConfig: CountryConfiguration) => {\n this.countryConfigCache.set(cacheKey, countryConfig);\n this.countryConfig$ = null;\n }),\n catchError(() => {\n this.countryConfig$ = null;\n return EMPTY;\n }),\n shareReplay(),\n );\n return this.countryConfig$;\n }),\n );\n }\n\n // Fetch information for rendering country options for a form\n public listAllCountryOptions(): Observable {\n return this.translateService.onLangChange.pipe(\n map((langChangeEvent: LangChangeEvent) => langChangeEvent.lang),\n startWith(this.translateService.currentLang),\n switchMap((locale: string) => {\n const cacheKey = locale;\n if (this.countryOptionCache.has(locale)) {\n return of(this.countryOptionCache.get(locale));\n }\n if (this.countryOptions$) {\n return this.countryOptions$;\n }\n this.countryOptions$ = this.addressApiService.listAllCountryOptions(locale).pipe(\n tap((countryOptions: CountryOption[]) => {\n this.countryOptionCache.set(cacheKey, countryOptions);\n this.countryOptions$ = null;\n }),\n shareReplay(),\n );\n return this.countryOptions$;\n }),\n );\n }\n\n // Fetch an ordered list of fields to use for building address form data\n public getOrderedFields(countryCode: string): Observable {\n return this.getCountry(countryCode).pipe(\n map((country: CountryConfiguration) => {\n const format = country ? country.formatting.edit : DEFAULT_FORM_LAYOUT;\n return format.split(LINE_DELIMITER).map((fields) => {\n const result = fields.match(FIELD_REGEXP);\n if (!result) {\n return [];\n }\n return result.map((field) => {\n return FIELDS_MAPPING[field].toString();\n });\n });\n }),\n );\n }\n\n public getProvince(provinces: Province[], provinceCode: string): Province {\n return (\n provinces?.find((province) => province.code === provinceCode) || {\n name: '',\n code: '',\n }\n );\n }\n\n /* PRIVATE UTILITY FUNCTIONS */\n private format(country: CountryConfiguration, address: Address): string[] {\n const layout = country ? country.formatting.show || DEFAULT_SHOW_LAYOUT : DEFAULT_SHOW_LAYOUT;\n return layout.split(LINE_DELIMITER).map((fields) => this.renderLineTemplate(country, fields, address).trim());\n }\n\n private renderLineTemplate(country: CountryConfiguration, template: string, address: Address): string {\n const result = template.match(FIELD_REGEXP);\n if (!result) {\n return '';\n }\n\n let line = template;\n let lineIsEmpty = true;\n result.forEach((key) => {\n const addressKey: string = key.replace('{', '').replace('}', '');\n if (address[addressKey]) {\n lineIsEmpty = false;\n }\n\n switch (addressKey) {\n case FieldName.Country.toString():\n line = line.replace(`{${FieldName.Country}}`, address.country ? country.name : '');\n break;\n case FieldName.Province.toString(): {\n let province = address.province || '';\n if (province && country) {\n province = this.getProvince(country.zones, province).name;\n }\n line = line.replace(`{${FieldName.Province}}`, province);\n break;\n }\n default:\n line = line.replace(key, address[addressKey] || '');\n break;\n }\n });\n if (lineIsEmpty) {\n return '';\n } else {\n return line.trim().replace(' ', ' ');\n }\n }\n}\n","{\n \"LOGO\": \"Logo\",\n \"PRIMARY\": \"Primary\",\n \"FRONTEND\": {\n \"BUSINESSES\": {\n \"ADDRESS_FORM\": {\n \"PREVIEW\": \"Preview\",\n \"ADDRESS_2\": \"Additional address line\",\n \"COUNTRY_REGION\": \"Country/Region\",\n \"INVALID_COUNTRY_NAME\": \"Please select a valid country name\",\n \"REQUIRED_FIELD\": \"This field is required\",\n \"INVALID_SELECTION\": \"Invalid selection\"\n },\n \"YES\": \"Yes\",\n \"NO\": \"No\",\n \"CANCEL\": \"Cancel\",\n \"SAVE\": \"Save\",\n \"DELETE\": \"Delete\",\n \"PRIMARY_INFO\": \"Primary info\",\n \"LOCATION\": \"Location\",\n \"BASIC_INFORMATION\": \"Basic information\",\n \"BASICS\": \"Basics\",\n \"BUSINESS_NAME\": \"Business name\",\n \"COMPETITORS\": \"Competitors\",\n \"COMPETITOR_NAME\": \"Competitor name\",\n \"COMPETITOR_URL\": \"Competitor URL\",\n \"COMPETITOR_DELETE_MESSAGE\": \"This competitor will be removed from business competitors.\",\n \"COMPETITOR_SAVE_SUCCESS\": \"Competitor saved successfully\",\n \"COMPETITOR_SAVE_ERROR\": \"Error saving Competitor\",\n \"COMPETITOR_DELETE_SUCCESS\": \"Competitor deleted successfully\",\n \"COMPETITOR_DELETE_ERROR\": \"Error deleting Competitor\",\n \"COMPETITOR_NAME_REQUIRED\": \"Name is required\",\n \"COMPETITOR_DELETE\": \"Delete {{name}}?\",\n \"CONTACT\": \"Contact\",\n \"ADD_COMMON_BUSINESS_NAME\": \"+ Add common business name\",\n \"COMMON_BUSINESS_NAME\": \"Common business name\",\n \"SERVICE_AREA_BUSINESS\": \"Service area business\",\n \"SERVICE_AREA_BUSINESS_HINT\": \"A business that visits or delivers to customers directly\",\n \"CUSTOMER_LOCATION_ONLY\": \"Hide my address and only show service areas\",\n \"CUSTOMER_AND_BUSINESS_LOCATION\": \"Show my address in addition to service areas\",\n \"SERVICE_AREAS\": \"Service areas\",\n \"SERVICE_AREAS_ERROR\": \"At least 1 service area is required\",\n \"WEBSITE\": \"Website\",\n \"BUSINESS_EMAIL\": \"Business email\",\n \"PRIMARY_CATEGORY\": \"Primary category\",\n \"ADDITIONAL_CATEGORIES\": \"Additional categories\",\n \"BUSINESS_CATEGORIES_WHATS_THIS\": \"What's this?\",\n \"BUSINESS_CATEGORIES_HINT\": \"Start typing to search business categories\",\n \"BUSINESS_CATEGORIES_ERROR\": \"At least 1 category is required\",\n \"BUSINESS_CATEGORIES_INVALID\": \"Some of your categories are no longer supported. Please consider choosing new categories.\",\n \"OPERATIONAL_INFORMATION\": \"Operational information\",\n \"REOPENING_DATE\": \"Reopening date\",\n \"COVID_INFORMATION\": \"COVID information\",\n \"COMMERCE_ONLY\": \"Commerce only\",\n \"BUSINESS_OPEN_CLOSE\": \"Business open/closed\",\n \"SELLING_METHODS\": \"Selling methods\",\n \"ADD_SERVICE\": \"+ Add service\",\n \"SERVICES_OFFERED\": \"Services offered\",\n \"ADD_BRAND\": \"+ Add brand\",\n \"BRANDS_CARRIED\": \"Brands carried\",\n \"LANDMARK\": \"Landmark\",\n \"BOOKING_URL\": \"Booking Link\",\n \"CONDITIONAL_FIELDS\": {\n \"ICO\": \"ICO\"\n },\n \"MAP_GEOLOCATION\": \"Map (GeoLocation)\",\n \"GEOCONTROL_TOOLTIP_NO_VALUE\": \"Click the map to place your marker\",\n \"GEOCONTROL_TOOLTIP_HAS_VALUE\": \"Drag the marker to edit your location\",\n \"PHONE\": \"Phone\",\n \"PHONE_NUMBERS\": \"Phone numbers\",\n \"ADD_PHONE_NUMBER\": \"+ Add phone number\",\n \"PHONE_NUMBERS_ALLOWED_FORMATS\": \"Phone numbers must be formatted as +246123456789\",\n \"FAX_NUMBER\": \"Fax number\",\n \"CELL_NUMBER\": \"Cell number\",\n \"ADD_CALL_TRACKING_NUMBER\": \"+ Add call tracking number\",\n \"CALL_TRACKING_NUMBERS\": \"Call tracking numbers\",\n \"TOLL_FREE_NUMBER\": \"Toll-free number\",\n \"HOURS\": \"Hours\",\n \"MORE_HOURS\": \"More hours\",\n \"MORE_HOURS_EMPTY\": \"More hours aren't applicable to your business category\",\n \"ACTIVE\": \"Active\",\n \"ADD\": \"Add\",\n \"SOCIAL\": \"Social\",\n \"BUSINESS_PAGES\": \"Business pages\",\n \"FACEBOOK_URL\": \"Facebook URL\",\n \"FOURSQUARE_URL\": \"Foursquare URL\",\n \"LINKEDIN_URL\": \"LinkedIn URL\",\n \"TWITTER_URL\": \"Twitter URL\",\n \"PINTEREST_URL\": \"Pinterest URL\",\n \"INSTAGRAM_URL\": \"Instagram URL\",\n \"YOUTUBE_URL\": \"YouTube URL\",\n \"BLOG\": \"Blog\",\n \"BLOG_URL\": \"Blog / RSS Feed URL\",\n \"PROFESSIONAL_RECORDS\": \"Professional records\",\n \"PERSONAL_INFORMATION\": \"Personal information\",\n \"FIRST_NAME\": \"First name\",\n \"MIDDLE_INITIAL\": \"Middle initial(s)\",\n \"LAST_NAME\": \"Last name\",\n \"PROFESSIONAL_CREDENTIALS\": \"Professional credentials\",\n \"GENDER\": \"Gender\",\n \"GENDERS\": {\n \"SELECT_OPTION\": \"Select option\",\n \"MALE\": \"Male\",\n \"FEMALE\": \"Female\",\n \"OTHER\": \"Other\"\n },\n \"IS_PROVIDER\": \"Provider Type\",\n \"IS_PROVIDER_ENUM\": {\n \"NOT_SPECIFIED\": \"Select Option\",\n \"PRACTITIONER\": \"Practitioner\",\n \"CLINIC\": \"Clinic\"\n },\n \"PRACTICE_NAME\": \"Practice Name\",\n \"EMAIL_ADDRESS\": \"Email address\",\n \"ACCEPTING_PATIENTS\": \"Accepting patients\",\n \"INSURANCES_ACCEPTED\": \"Insurances accepted\",\n \"ADD_INSURANCE\": \"'+ Add insurance\",\n \"HOSPITAL_AFFILIATIONS\": \"Hospital affiliations\",\n \"ADD_AFFILIATIONS\": \"+ Add affiliations\",\n \"QUALIFICATIONS_EXPERIENCE\": {\n \"DOCTORDOTCOM_CATEGORIES\": \"Doctor.com Categories\",\n \"QUALIFICATIONS_EXPERIENCE\": \"Qualifications & experience\",\n \"EDUCATION\": \"Education\",\n \"SPECIALTIES\": \"Specialties\",\n \"RESIDENCIES\": \"Residencies\",\n \"FELLOWSHIPS\": \"Fellowships\",\n \"ADD_EDUCATION\": \"+ Add education\",\n \"ADD_SPECIALTY\": \"+ Add specialty\",\n \"ADD_RESIDENCY\": \"+ Add residency\",\n \"ADD_FELLOWSHIP\": \"+ Add fellowship\",\n \"NPI\": \"NPI (National Provider Identifier)\",\n \"MEDICAL_LICENSE_NUMBER\": \"Medical license number\",\n \"STATE_LICENSE\": \"State license\"\n },\n \"PRACTICE_INFORMATION\": \"Practice information\",\n \"OFFICE_NAME\": \"Firm/Clinic/Office name\",\n \"MARKETING\": \"Marketing\",\n \"SEARCH_ENGINE_INFORMATION\": \"Search engine information\",\n \"SEO_KEYWORDS\": \"SEO keywords\",\n \"ADD_SEO_KEYWORD\": \"+ Add SEO keyword\",\n \"SHARE_OF_VOICE_KEYWORDS\": \"Share of voice keywords\",\n \"ADD_SHARE_OF_VOICE_KEYWORD\": \"+ Add share of voice keyword\",\n \"COMPETITOR_NAMES\": \"Competitor names\",\n \"ADD_COMPETITOR\": \"+ Add competitor\",\n \"BUSINESS_DESCRIPTIONS\": \"Business descriptions\",\n \"TAGLINE\": \"Tagline\",\n \"SHORT_DESCRIPTION\": \"Short description\",\n \"DESCRIPTION\": \"Description\",\n \"LONG_DESCRIPTION\": \"Long description\",\n \"MEDIA\": \"Media\",\n \"ATTRIBUTES\": \"Custom fields\",\n \"IMAGES\": \"Images\",\n \"DESCRIPTIONS\": \"Descriptions\",\n \"ATTRIBUTES_TAB\": \"Attributes\",\n \"CUSTOM_FIELDS\": \"Custom fields\",\n \"ADMINISTRATION\": \"Administration\",\n \"SALES\": \"Sales\",\n \"MARKET\": \"Market\",\n \"PRIMARY_SALESPERSON\": \"Primary salesperson\",\n \"ADD_ADDITIONAL_SALESPEOPLE\": \"+ Add additional salespeople\",\n \"PRIMARY_SALESPERSON_MUST_BE_SELECTED\": \"Primary salesperson must be selected\",\n \"ADDITIONAL_SALESPEOPLE\": \"Additional salespeople\",\n \"CUSTOMER_IDENTIFIER\": \"Customer identifier\",\n \"TAGS\": \"Tags\",\n \"NOTES\": \"Notes\",\n \"PHOTO\": \"Photo\",\n \"MEDIA_TAB\": {\n \"PHOTO_IMAGE_NOUN\": \"Photo\",\n \"PHOTOS\": \"Photos\",\n \"ADD_PHOTOS\": \"Add photos\",\n \"UPLOAD_PHOTO\": \"Upload photo\",\n \"UNABLE_TO_LOAD_IMAGES\": \"Unable to load images.\",\n \"LOAD_MORE\": \"Load more\",\n \"SHOWING_X_OF_Y\": \"Showing {{count}} of {{total}}\",\n \"ADDING_IMAGES_BOLSTERS\": \"Adding images bolsters your profile.\",\n \"IMAGE_MENU\": {\n \"SET_LOGO_QUESTION\": \"Set logo?\",\n \"SET_LOGO\": \"Set logo\",\n \"SET_LOGO_BODY\": \"Would you like to set this photo as your logo? The photo will automatically be cropped to a square format and replace any existing logo.\",\n \"SET_PRIMARY\": \"Set primary\",\n \"SET_PRIMARY_PHOTO\": \"Set primary photo?\",\n \"SET_PRIMARY_BODY\": \"Would you like to set this photo as your primary photo? This will replace any existing primary photo.\",\n \"DELETE_PHOTO_QUESTION\": \"Delete photo?\",\n \"DELETE_PHOTO\": \"Delete photo\",\n \"DELETE_PHOTO_BODY\": \"Would you like to remove this photo from your business profile?\"\n },\n \"LOGO\": \"Logo\",\n \"PRIMARY\": \"Primary\",\n \"PHOTO_UPLOADED_SUCCESSFULLY\": \"Photo uploaded successfully!\",\n \"LOGO_SET_SUCCESSFULLY\": \"Logo set successfully\",\n \"ERROR_SETTING_PHOTO_AS_LOGO\": \"Error setting photo as logo\",\n \"PRIMARY_PHOTO_SET_SUCCESSFULLY\": \"Primary photo set successfully\",\n \"ERROR_SETTING_PHOTO_AS_PRIMARY\": \"Error setting photo as primary\",\n \"PHOTO_DELETED\": \"Photo deleted\",\n \"ERROR_DELETING_PHOTO\": \"Error deleting photo\"\n },\n \"TOOLTIPS\": {\n \"SELLING_METHOD_TOOLTIP\": \"The primary method that your business selling stuff.\",\n \"LANDMARK_TOOLTIP\": \"The general area in which your business is physically located. Typical landmark addresses include mall and office names (for example, Oakview Mall or Clocktower Plaza). Only enter a landmark if your street address does not accurately pinpoint your business's location.\",\n \"SERVICES_OFFERED_TOOLTIP\": \"The primary services that your business offers (for example, personal tax filing or root canals).\",\n \"BRANDS_CARRIED_TOOLTIP\": \"The primary brands that your business carries (for example, Ford, Apple, Firestone, or Allstate).\",\n \"SHARE_OF_VOICE_TOOLTIP\": \"Enter products, services or other keywords to compare the business' search engine share of voice to their competition.\",\n \"COMPETITORS_TOOLTIP\": \"Enter competitor names to benchmark the search engine prominence of those competitors against the business.\",\n \"ADDITIONAL_SALESPERSON_TOOLTIP\": \"The primary salesperson's information will be displayed in the store and in campaign emails for this account. However, you can assign up to 5 additional salespeople to this account.\",\n \"CUSTOMER_ID_TOOLTIP\": \"Changing this ID may result in unintended consequences, particularly if your company uses an SSO integration. If you are unsure if you use SSO, please reach out to your administrator before proceeding.\",\n \"VTAX_TOOLTIP\": \"Business categories help to ensure that relevant listing sources are turned on within {{rmProductName}} (Ex. Selecting 'Restaurants' will turn Urbanspoon to ON and turn Cars.com to OFF). Business categories will also help retrieve the appropriate RSS Feeds in {{smProductName}} and industry averages throughout the product suite.\",\n \"CALL_TRACKING_TOOLTIP\": \"A call tracking number is a phone number that gathers analytics for inbound calls. Call tracking is commonly used as a method of performance assessment for marketing campaigns. This number will be used to find business listings and assess their accuracy in the Listings tab of {{rmProductName}}.\",\n \"TAGLINE_TOOLTIP\": \"Your company slogan or a brief description of the business. The tagline will appear directly below the company name at the top of the {{msProductName}} My Listing.\",\n \"COMMON_BUSINESS_NAME_TOOLTIP\": \"Other names that your business is commonly called (Ex. Patty's Irish Pub referred to as Patty's or Patty's Pub). Common business names will become mention searches within {{rmProductName}}.\",\n \"SEO_CATEGORY_TOOLTIP\": \"SEO (Search Engine Optimization) keywords are key words or phrases that help customers find your business via search engines. These keywords will be displayed on the {{msProductName}} My Listing to enhance SEO.\"\n },\n \"LENGTH_OF_REPEATED_FIELD_ERROR\": \"Must be less than {{maxLength}} characters across all {{fieldName}}, when joined with commas.\",\n \"PAYMENT_METHODS\": {\n \"PAYMENT_METHODS\": \"Payment methods\",\n \"AMERICAN_EXPRESS\": \"American Express\",\n \"ANDROID_PAY\": \"Google Pay\",\n \"APPLE_PAY\": \"Apple Pay\",\n \"CASH\": \"Cash\",\n \"CHECK\": \"Check\",\n \"DEBIT\": \"Debit\",\n \"DINERS_CLUB\": \"Diners Club\",\n \"DISCOVER\": \"Discover\",\n \"MASTERCARD\": \"MasterCard\",\n \"PAYPAL\": \"PayPal\",\n \"SAMSUNG_PAY\": \"Samsung Pay\",\n \"STORE_CARD\": \"Store card\",\n \"TRAVELERS_CHECK\": \"Travelers check\",\n \"VISA\": \"Visa\",\n \"CCS\": \"CCS\",\n \"SODEXO\": \"Sodexo\",\n \"GOPAY\": \"GoPay\",\n \"V_PAY\": \"V PAY\",\n \"FINANCING\": \"Financing\",\n \"INVOICE\": \"Invoice\",\n \"PAYSEC\": \"PaySec\",\n \"BITCOIN\": \"Bitcoin\",\n \"INVALID_PAYMENT_METHODS\": \"Selected payment methods are not valid for the selected country: {{paymentMethods}}\"\n },\n \"STANDARDIZED_TITLES\": {\n \"ACCOUNTING\": \"ACCOUNTING\",\n \"ADMINISTRATOR\": \"ADMINISTRATOR\",\n \"BOARD_MEMBER\": \"BOARD MEMBER\",\n \"CHAIRMAN\": \"CHAIRMAN\",\n \"CEO\": \"CEO\",\n \"CIO_CTO\": \"CIO / CTO\",\n \"CONTROLLER\": \"CONTROLLER\",\n \"CORPORATE_TAX\": \"CORPORATE TAX\",\n \"DIRECTOR\": \"DIRECTOR\",\n \"DIVISION_HEAD\": \"DIVISION HEAD\",\n \"E_COMMERCE\": \"E COMMERCE\",\n \"EDUCATOR\": \"EDUCATOR\",\n \"ENGINEERING\": \"ENGINEERING\",\n \"ENVIRONMENT\": \"ENVIRONMENT\",\n \"EVP\": \"EVP\",\n \"EXECUTIVE\": \"EXECUTIVE\",\n \"FACILITIES\": \"FACILITIES\",\n \"FINANCE\": \"FINANCE\",\n \"INSURANCE\": \"INSURANCE\",\n \"INTERNAL_AUDIT\": \"INTERNAL AUDIT\",\n \"INTERNATIONAL\": \"INTERNATIONAL\",\n \"IT_EXECUTIVE\": \"IT EXECUTIVE\",\n \"LEGAL\": \"LEGAL\",\n \"LEGAL_COUNSEL\": \"LEGAL COUNSEL\",\n \"MANAGER\": \"MANAGER\",\n \"MANUFACTURING\": \"MANUFACTURING\",\n \"MARKETING\": \"MARKETING\",\n \"MINISTER\": \"MINISTER\",\n \"OFFICE_MANAGER\": \"OFFICE MANAGER\",\n \"OPERATIONS\": \"OPERATIONS\",\n \"OWNER\": \"OWNER\",\n \"PARTNER\": \"PARTNER\",\n \"PRESIDENT\": \"PRESIDENT\",\n \"PRINCIPAL\": \"PRINCIPAL\",\n \"PUBLISHER\": \"PUBLISHER\",\n \"PURCHASING\": \"PURCHASING\",\n \"QUALITY\": \"QUALITY\",\n \"REAL_ESTATE\": \"REAL ESTATE\",\n \"REGION_MANAGER\": \"REGION MANAGER\",\n \"SALES\": \"SALES\",\n \"SITE_MANAGER\": \"SITE MANAGER\",\n \"SVP\": \"SVP\",\n \"TRAINING\": \"TRAINING\",\n \"TREASURER\": \"TREASURER\",\n \"VICE_CHAIRMAN\": \"VICE CHAIRMAN\",\n \"VICE_PRESIDENT\": \"VICE PRESIDENT\",\n \"VP\": \"VP\",\n \"WEBMASTER\": \"WEBMASTER\"\n },\n \"NO_CHANGES_TO_SAVE\": \"No changes to save\",\n \"INVALID_SUBMISSION\": \"Invalid submission\",\n \"INVALID_SESSION\": \"Invalid Session. Please try again.\",\n \"FAILED_TO_UPDATE\": \"Failed to update\",\n \"HOURS_OF_OPERATION_SAVED\": \"Hours of operation saved\",\n \"CUSTOM_FIELDS_SAVED\": \"New custom field values have been saved\",\n \"ACCOUNT_WAS_SAVED\": \"Account was saved\",\n \"BUSINESS_HOURS_SAVED\": \"Business hours saved\",\n \"ACCOUNT_ATTRIBUTES_SAVED\": \"Custom fields saved\",\n \"ACCOUNT_ATTRIBUTES_ERROR\": \"Error saving custom fields\",\n \"ACCOUNT_ATTRIBUTES_DISMISS\": \"Dismiss\",\n \"ALREADY_THE_PRIMARY_SALESPERSON\": \"{{name}} is already the primary salesperson.\",\n \"BUSINESS_OPERATION_METHODS\": {\n \"SELECT_OPTION\": \"Select option\",\n \"UNSPECIFIED\": \"Unspecified\",\n \"OPEN\": \"Open\",\n \"LIMITED\": \"Limited\",\n \"TEMPORARY\": \"Temporarily closed\",\n \"PERMANENT\": \"Permanent closed\"\n },\n \"SELLING_METHODS_AVAILABILITY\": {\n \"UNSET\": \"-\",\n \"YES\": \"Yes\",\n \"NO\": \"No\"\n },\n \"SERVICE_AVAILABILITY\": {\n \"ECOMMERCE_ONLY\": \"Online store only\"\n },\n \"PRODUCT_ACTIVATION_FORM\": {\n \"FULL_BUSINESS_PROFILE\": \"Business profile\",\n \"FULL_BUSINESS_PROFILE_OPTIONAL\": \"Optional\",\n \"FULL_BUSINESS_PROFILE_REQUIRED\": \"Required\",\n \"FULL_BUSINESS_PROFILE_DESCRIPTION\": \"Review your business profile to submit this order\",\n \"FULL_BUSINESS_PROFILE_READ_ONLY_DESCRIPTION\": \"Account information was previously updated\",\n \"SUCCESS_MESSAGE\": \"The business profile was updated\",\n \"ERROR_MESSAGE\": \"Something went wrong. Refresh the page and try again.\",\n \"ACCOUNT_INFORMATION\": \"Account information\",\n \"ACCOUNT_INFORMATION_SUBTITLE\": \"This order requires certain fields to be saved to the account\",\n \"ACCOUNT_INFORMATION_PANEL\": \"Update the account before continuing, products require accurate business information\",\n \"HOURS_OF_OPERATION_REQUIRED\": \"Hours of operation are required\",\n \"INVALID_SUBMISSION_MESSAGE\": \"Some required fields haven’t been filled out or are incorrect\",\n \"INVALID_SERVICES_OFFERED_FIELD\": \"Services offered can only be 256 characters in length total\",\n \"INVALID_BRANDS_CARRIED_FIELD\": \"Brands carried can only be 256 characters in length total\"\n },\n \"WRONG_MARKET\": \"Wrong market\",\n \"UNSAVED_CHANGES\": \"There are unsaved changes\",\n \"TIMEZONE\": \"Timezone\",\n \"SELECTOR_DIALOG\": {\n \"ACCOUNT\": \"Account\",\n \"CHOOSE_ACCOUNT\": \"Choose account\",\n \"CREATE_ACCOUNT\": \"Create account\",\n \"NOT_FOUND\": \"No accounts found\",\n \"SEARCH_ACCOUNT\": \"Search account\"\n },\n \"ADD_ACCOUNTS_TO_LISTS\": {\n \"TITLE\": \"Add to list\",\n \"SELECT_ACCOUNTS\": {\n \"LABEL\": \"Which accounts would you like to add to a list?\",\n \"OPTIONS\": {\n \"VISIBLE_ACCOUNTS\": \"Visible\",\n \"SELECTED_ACCOUNTS\": \"Selected\",\n \"ALL_ACCOUNTS\": \"All\"\n },\n \"ACCOUNTS\": \"accounts\",\n \"SUCCESS\": \"Added {{accounts}} accounts to list {{list}}\"\n },\n \"SELECT_LIST\": \"Add to list\",\n \"NAME_NEW_LIST\": \"Name of new list\",\n \"CREATE_AND_ADD\": \"Create and add to list\",\n \"SUCCESS\": \"Added {{accounts}} accounts to list {{list}}\",\n \"DESCRIPTION\": \"Export results to an Account List\"\n },\n \"MORE_TAB_LABEL\": \"More\"\n }\n }\n}\n","import { AsyncPipe, NgForOf, NgIf } from '@angular/common';\nimport {\n Component,\n ElementRef,\n EventEmitter,\n HostListener,\n InjectionToken,\n Output,\n Provider,\n inject,\n} from '@angular/core';\nimport {\n AsyncValidatorFn,\n FormControl,\n FormsModule,\n ReactiveFormsModule,\n ValidationErrors,\n Validators,\n} from '@angular/forms';\nimport { MatAutocompleteModule } from '@angular/material/autocomplete';\nimport { MatFormFieldModule } from '@angular/material/form-field';\nimport { MatIconModule } from '@angular/material/icon';\nimport { MatInputModule } from '@angular/material/input';\nimport { TranslateModule } from '@ngx-translate/core';\nimport { CountryOption } from '@vendasta/address';\nimport { GalaxyFormFieldModule } from '@vendasta/galaxy/form-field';\nimport { Observable, firstValueFrom, map, shareReplay, switchMap } from 'rxjs';\n\nexport const COUNTRY_OPTIONS_TOKEN = new InjectionToken>('COUNTRY_OPTIONS');\nexport const COUNTRY_CONTROL_TOKEN = new InjectionToken>('COUNTRY_CONTROL_TOKEN');\nexport const defaultCountryControlProvider: Provider = {\n provide: COUNTRY_CONTROL_TOKEN,\n useFactory: () => new FormControl('', [Validators.required], [countryValidator()]),\n};\n\nexport function countryValidator(): AsyncValidatorFn {\n const countryOptions = firstValueFrom(inject(COUNTRY_OPTIONS_TOKEN));\n\n return async (countryControl: FormControl): Promise => {\n const country = countryControl.value;\n const countries = await countryOptions;\n if (!country) return null;\n if (typeof country === 'string') return { invalidCountry: true };\n if (countries.find((c) => c.code.toLowerCase() === country.code.toLowerCase())) return null;\n\n return { invalidCountry: true };\n };\n}\n\n@Component({\n selector: 'business-address-country-input',\n standalone: true,\n templateUrl: './country-input.component.html',\n styleUrls: ['./country-input.component.scss'],\n imports: [\n AsyncPipe,\n FormsModule,\n GalaxyFormFieldModule,\n MatAutocompleteModule,\n MatFormFieldModule,\n MatIconModule,\n MatInputModule,\n NgForOf,\n NgIf,\n ReactiveFormsModule,\n TranslateModule,\n ],\n})\nexport class CountryInputComponent {\n @Output() readonly countrySelected = new EventEmitter();\n private readonly countries$ = inject(COUNTRY_OPTIONS_TOKEN);\n readonly filteredCountries$ = this.countries$.pipe(\n switchMap((countries) =>\n this.control.valueChanges.pipe(\n map((country) => this._filter(countries, country)),\n shareReplay({ bufferSize: 1, refCount: true }),\n ),\n ),\n );\n private _preferredCountry: CountryOption = null;\n\n readonly control = inject(COUNTRY_CONTROL_TOKEN) as FormControl;\n\n private readonly _elementRef = inject(ElementRef);\n @HostListener('focusout', ['$event.relatedTarget']) async onFocusOut(target: HTMLElement): Promise {\n // if target part of the component, do nothing\n if (this._elementRef.nativeElement.contains(target)) return;\n\n const countries = await firstValueFrom(this.filteredCountries$);\n const { value } = this.control;\n if (\n typeof value === 'string' &&\n countries.length > 0 &&\n countries?.[0].name.toLowerCase() === value.toLowerCase()\n ) {\n return this.selectCountryOption(countries[0]);\n }\n }\n\n countryName = (option: CountryOption): string => {\n return option?.name || '';\n };\n\n private _filter(countries: CountryOption[], country: string | CountryOption): CountryOption[] {\n return countries.filter((option) => {\n if (typeof country === 'string') {\n return option.name.toLowerCase().includes(country.toLowerCase());\n }\n return country;\n });\n }\n\n selectCountryOption(option: CountryOption): void {\n this.control.setValue(option);\n this.countrySelected.emit(option);\n }\n\n activatedOption(option: CountryOption): void {\n this._preferredCountry = option;\n }\n\n tabHandler(): void {\n if (this._preferredCountry) {\n this.selectCountryOption(this._preferredCountry);\n }\n }\n}\n","\n \n {{ 'FRONTEND.BUSINESSES.ADDRESS_FORM.COUNTRY_REGION' | translate }}\n \n \n \n \n {{ option.name }}\n \n \n \n {{ 'FRONTEND.BUSINESSES.ADDRESS_FORM.REQUIRED_FIELD' | translate }}\n \n\n","import { Component, EventEmitter, Input, Output, ViewChild } from '@angular/core';\nimport { Geo, GooglePlace } from '@vendasta/account-group';\n\n@Component({\n selector: 'business-place-autocomplete',\n templateUrl: './place-autocomplete.component.html',\n styleUrls: ['./place-autocomplete.component.scss'],\n})\nexport class PlaceAutocompleteComponent {\n maxBounds: google.maps.LatLngBounds;\n autocompleteInput: string;\n @ViewChild('addresstext') addresstext: any;\n @Input() set geoLocation(b: Geo) {\n if (!!b && b?.latitude !== undefined && b?.longitude !== undefined) {\n const center = new google.maps.LatLng(b.latitude, b.longitude);\n // Set location bias for Google place search to a radius of 300 km from the business location because Google says\n // service areas should not extend farther than about a 2-hour drive away from the business location\n // https://support.google.com/business/answer/3038177#zippy=%2Caddress\n this.maxBounds = new google.maps.Circle({ radius: 300000, center: center }).getBounds();\n }\n }\n @Input() editDisabled = false;\n @Output() selected: EventEmitter = new EventEmitter();\n ngAfterViewInit() {\n this.getPlaceAutocomplete();\n }\n\n private getPlaceAutocomplete(): void {\n const options: google.maps.places.AutocompleteOptions = {\n types: ['(regions)'],\n };\n options.bounds = this.maxBounds ? this.maxBounds : undefined;\n options.strictBounds = false;\n options.fields = ['place_id', 'address_components', 'name', 'types'];\n const autocomplete = new google.maps.places.Autocomplete(this.addresstext?.nativeElement, options);\n\n google.maps.event.addListener(autocomplete, 'place_changed', () => {\n const place = autocomplete.getPlace();\n this.invokeEvent(place);\n this.autocompleteInput = '';\n this.addresstext?.nativeElement.blur();\n this.addresstext?.nativeElement.focus();\n });\n }\n\n invokeEvent(place: google.maps.places.PlaceResult): void {\n this.selected.emit(\n new GooglePlace({\n placeId: place.place_id,\n placeName: this.formatName(place),\n city: place.address_components.find((component) => component.types.indexOf('locality') !== -1)?.long_name || '',\n }),\n );\n }\n\n formatName(place: google.maps.places.PlaceResult): string {\n const city =\n place.address_components.find((component) => component.types.indexOf('locality') !== -1)?.long_name || '';\n const province =\n place.address_components.find((component) => component.types.indexOf('administrative_area_level_1') !== -1)\n ?.short_name || '';\n const country =\n place.address_components.find((component) => component.types.indexOf('country') !== -1)?.short_name || '';\n switch (place.types[0]) {\n case 'administrative_area_level_2':\n case 'locality': {\n return joinFirstItems([place.name, province, country], ', ', 2);\n }\n case 'sublocality':\n case 'postal_code': {\n return joinFirstItems([place.name, city, province, country], ', ', 3);\n }\n case 'country': {\n return place.name;\n }\n case 'administrative_area_level_1': {\n return joinFirstItems([place.name, country], ', ', 2);\n }\n }\n return place.name;\n }\n}\n\nfunction joinFirstItems(items: string[], delimiter: string, max: number): string {\n return items.filter(Boolean).slice(0, max).join(delimiter);\n}\n","\n \n\n","import { Component, Input, Pipe, PipeTransform, inject } from '@angular/core';\nimport {\n AbstractControl,\n FormGroup,\n FormControl,\n ValidationErrors,\n ValidatorFn,\n Validators,\n UntypedFormGroup,\n UntypedFormBuilder,\n UntypedFormControl,\n} from '@angular/forms';\nimport { CountryConfiguration } from '@vendasta/address';\nimport { Country, State } from '@vendasta/country-state';\nimport { Observable, catchError, firstValueFrom, of } from 'rxjs';\nimport { AddressService } from '../address/address.service';\nimport { Address } from '../address/interface';\nimport { COUNTRY_CONTROL_TOKEN, COUNTRY_OPTIONS_TOKEN } from '../inputs/country-input.component';\nimport { NotOnlyWhitespaceValidator } from '../../custom-validators';\nimport { Geo, GooglePlace } from '@vendasta/listing-products';\n\ninterface FormField {\n country: Country | string;\n province: State | string;\n address1: string;\n address2: string;\n city: string;\n zip: string;\n location?: Geo;\n serviceAreaBusiness?: boolean;\n}\n\nconst labelOverrides: Record = {\n zip: 'postalCode',\n province: 'zone',\n};\ntype TemplateFormField = { key: string; label: string; required: boolean };\n\n@Component({\n selector: 'business-address-form-v2',\n templateUrl: './address-form-v2.component.html',\n styleUrls: ['./address-form-v2.component.scss'],\n})\nexport class AddressFormV2Component {\n @Input() showAddressPreview = false;\n @Input() set addressData(a: Address) {\n if (a) {\n this.__addressData = a;\n this.setInitialValues(a);\n }\n }\n @Input({ required: true }) set parentForm(form: FormGroup) {\n this.disabled = form.disabled;\n if (this.disabled) {\n this.editDisabled = true;\n this.formGroup.disable();\n }\n form.addControl('addressForm', this.formGroup);\n }\n\n @Input() requiredFields = true;\n @Input() serviceAreaForm: UntypedFormGroup;\n @Input() serviceAreaToggle: UntypedFormControl;\n\n protected autoCompleteControls = ['country', 'province'];\n protected dynamicControls = ['address1', 'address2', 'city', 'zip'];\n protected __addressData: Address;\n protected editDisabled: boolean;\n\n // COUNTRY\n private readonly countryOptions$ = inject(COUNTRY_OPTIONS_TOKEN);\n private readonly addressService = inject(AddressService);\n private currentConfig: CountryConfiguration;\n\n // PROVINCE\n protected selectFirstProvince = false;\n protected provinces = [];\n\n protected readonly formGroup: FormGroup = new FormGroup({\n country: inject(COUNTRY_CONTROL_TOKEN),\n });\n\n protected formFields: TemplateFormField[] = [];\n private disabled: boolean;\n\n constructor(private fb: UntypedFormBuilder) {}\n\n private async updateForm(a: FormField, config = this.currentConfig) {\n await this.updateFormFields(config);\n removeOrphanedControls(this.formGroup, this.formFields);\n this.formGroup.patchValue(a);\n }\n\n private async setInitialValues(a: Address | null) {\n const countryOption = (await firstValueFrom(this.countryOptions$)).find((o) => o.code === a.country);\n if (!countryOption) {\n this.formGroup.controls.country.setValue(null, { emitEvent: false });\n }\n const config = await this.getUpdatedCountryConfig(countryOption);\n if (config) {\n const prov = this.addressService.getProvince(config.zones, a.province);\n const province: State | null = prov.code ? { code: prov.code, name: prov.name } : null;\n const formValues = { ...a, province, country: countryOption };\n return this.updateForm(formValues);\n }\n }\n\n protected async countryChanged(country: Country): Promise {\n const config = await this.getUpdatedCountryConfig(country);\n\n const value = { ...this.formGroup.value, province: null };\n return this.updateForm(value, config);\n }\n\n protected async getUpdatedCountryConfig(country: Country): Promise {\n if (this.currentConfig?.code === country.code) return this.currentConfig;\n this.currentConfig = await firstValueFrom(\n this.addressService.getCountry(country.code).pipe(catchError(() => of(null))),\n );\n\n this.provinces = this.currentConfig?.zones || [];\n return this.currentConfig;\n }\n\n private async updateFormFields(c: CountryConfiguration): Promise {\n if (!c) return;\n\n const templates = await firstValueFrom(this.addressService.getOrderedFields(c.code));\n\n const requiredFields = c.formatting.required || [];\n this.formFields = templates.flat().reduce(\n (acc, field) => [\n ...acc,\n {\n key: field,\n label: c.labels[labelOverrides[field]] || c.labels[field],\n required: !!requiredFields.find((f) => f === field),\n },\n ],\n [],\n );\n\n this.formFields.forEach((field) => {\n const validators = this.getFieldValidators(field);\n const control = this.formGroup.get(field.key);\n if (control) {\n control.setValidators(validators);\n control.updateValueAndValidity();\n } else {\n this.formGroup.setControl(field.key, new FormControl('', validators));\n }\n });\n if (this.disabled) {\n this.formGroup.disable();\n }\n }\n\n private getFieldValidators(field: TemplateFormField): ValidatorFn[] {\n const validators = [];\n if (field.required) {\n validators.push(Validators.required);\n validators.push(NotOnlyWhitespaceValidator);\n }\n if (this.autoCompleteControls.indexOf(field.key) >= 0) validators.push(autoCompleteValidator);\n return validators;\n }\n\n provinceName(province: State): string {\n return province ? province.name : '';\n }\n\n removePlace(placeId: string): void {\n const places: GooglePlace[] = this.serviceAreaForm.get('places')?.value || [];\n this.serviceAreaForm.get('places').setValue(places.filter((p) => p.placeId !== placeId));\n this.markServiceAreaDirty();\n }\n\n addPlace(place: GooglePlace): void {\n const places: GooglePlace[] = this.serviceAreaForm.get('places').value || [];\n\n console.log(places);\n if (places.filter((p) => p.placeId === place.placeId)?.length > 0) {\n return;\n }\n places.push(place);\n this.serviceAreaForm.get('places').setValue(places);\n this.markServiceAreaDirty();\n }\n\n markServiceAreaDirty(): void {\n this.serviceAreaForm.markAsDirty();\n this.serviceAreaForm.get('places').markAsDirty();\n this.serviceAreaForm.get('businessType').markAsDirty();\n }\n\n updateServiceArea(checked: boolean): void {\n if (checked) {\n this.serviceAreaForm.enable();\n this.serviceAreaForm.setValue({ businessType: 1, places: [] });\n this.markServiceAreaDirty();\n } else {\n this.serviceAreaForm.disable();\n }\n }\n}\n\nfunction formatAddress(formValues: FormField): Address {\n const { country } = formValues;\n\n const address: Address = {\n country: (country as Country)?.code || null,\n province: (formValues.province as State)?.code || null,\n address1: formValues.address1 || null,\n address2: formValues.address2 || null,\n city: formValues.city || null,\n zip: formValues.zip || null,\n };\n\n return address;\n}\n\nfunction autoCompleteValidator(control: AbstractControl): ValidationErrors | null {\n return !control.value || control.value?.code ? null : { invalidSelection: true };\n}\n\nfunction removeOrphanedControls(formGroup: FormGroup, fields: TemplateFormField[]) {\n const formFields = fields.map((field) => field.key);\n Object.keys(formGroup.controls).forEach((key) => {\n if (formFields.indexOf(key) < 0) {\n formGroup.removeControl(key);\n }\n });\n}\n\n@Pipe({\n name: 'businessAddressPipe',\n standalone: true,\n})\nexport class businessAddressPipe implements PipeTransform {\n private readonly addressService = inject(AddressService);\n\n transform(formValues: FormField): Observable {\n const { country } = formValues;\n if (!country) return of('');\n\n const address = formatAddress(formValues);\n return this.addressService.mailingAddress$(address);\n }\n}\n\n@Pipe({\n name: 'filterProvinces',\n standalone: true,\n})\nexport class FilterProvincesPipe implements PipeTransform {\n transform(provinces: State[], searchTerm: string): State[] {\n if (!searchTerm) return provinces;\n return provinces.filter((province) => {\n const { name = '' } = province;\n return name.toLocaleLowerCase().indexOf(searchTerm.toLocaleLowerCase()) >= 0;\n });\n }\n}\n","
\n \n \n \n {{ 'FRONTEND.BUSINESSES.SERVICE_AREA_BUSINESS' | translate }}\n \n \n \n \n \n \n \n {{ 'FRONTEND.BUSINESSES.CUSTOMER_LOCATION_ONLY' | translate }}\n \n \n {{ 'FRONTEND.BUSINESSES.CUSTOMER_AND_BUSINESS_LOCATION' | translate }}\n \n \n \n\n \n {{ 'FRONTEND.BUSINESSES.SERVICE_AREAS' | translate }}\n \n 0 ? 'rgba(0, 0, 0, 0.6)' : '#c62828'\"\n >\n {{ serviceAreaForm.get('places')?.value?.length }}/20\n \n \n {{ 'FRONTEND.BUSINESSES.SERVICE_AREAS_ERROR' | translate }}\n \n \n \n \n {{ place.placeName }}\n cancel\n \n \n \n \n
\n
\n \n -1\"\n bottomSpacing=\"small\"\n class=\"address-form-field-{{ field.key }}\"\n >\n \n {{ (field.key === 'address2' ? 'FRONTEND.BUSINESSES.ADDRESS_FORM.ADDRESS_2' : field.label) | translate }}\n \n \n \n {{ 'FRONTEND.BUSINESSES.ADDRESS_FORM.REQUIRED_FIELD' | translate }}\n \n \n\n \n \n {{ field.label }}\n \n \n \n {{ option.name }}\n \n \n \n {{ 'FRONTEND.BUSINESSES.ADDRESS_FORM.REQUIRED_FIELD' | translate }}\n \n\n \n {{ 'FRONTEND.BUSINESSES.ADDRESS_FORM.INVALID_SELECTION' | translate }}\n \n \n
\n
\n
\n\n
\n \n {{ 'FRONTEND.BUSINESSES.ADDRESS_FORM.PREVIEW' | translate }}\n \n {{ address }}\n
\n","import { CommonModule } from '@angular/common';\nimport { NgModule } from '@angular/core';\nimport { FormsModule, ReactiveFormsModule } from '@angular/forms';\nimport { MatAutocompleteModule } from '@angular/material/autocomplete';\nimport { MatFormFieldModule } from '@angular/material/form-field';\nimport { MatIconModule } from '@angular/material/icon';\nimport { MatInputModule } from '@angular/material/input';\nimport { MatProgressSpinnerModule } from '@angular/material/progress-spinner';\nimport { TranslateModule } from '@ngx-translate/core';\nimport { GalaxyFormFieldModule } from '@vendasta/galaxy/form-field';\nimport { GalaxyCheckboxModule } from '@vendasta/galaxy/checkbox';\nimport { MatTooltipModule } from '@angular/material/tooltip';\nimport { MatRadioModule } from '@angular/material/radio';\nimport { MatExpansionModule } from '@angular/material/expansion';\nimport { MatChipsModule } from '@angular/material/chips';\n\nimport { PlaceAutocompleteComponent } from './place-autocomplete/place-autocomplete.component';\nimport { LexiconModule } from '@galaxy/lexicon';\nimport { AddressService } from '../address/address.service';\nimport baseTranslation from '../../assets/i18n/en_devel.json';\nimport {\n COUNTRY_OPTIONS_TOKEN,\n CountryInputComponent,\n defaultCountryControlProvider,\n} from '../inputs/country-input.component';\nimport { AddressFormV2Component, FilterProvincesPipe, businessAddressPipe } from './address-form-v2.component';\n\nconst MaterialModules = [\n MatAutocompleteModule,\n MatFormFieldModule,\n MatInputModule,\n MatIconModule,\n MatProgressSpinnerModule,\n MatTooltipModule,\n MatRadioModule,\n MatExpansionModule,\n MatChipsModule,\n];\n\n@NgModule({\n declarations: [AddressFormV2Component, PlaceAutocompleteComponent],\n imports: [\n CommonModule,\n FormsModule,\n ReactiveFormsModule,\n TranslateModule,\n LexiconModule.forChild({\n componentName: 'common/address',\n baseTranslation: baseTranslation,\n }),\n ...MaterialModules,\n CountryInputComponent,\n GalaxyFormFieldModule,\n businessAddressPipe,\n FilterProvincesPipe,\n GalaxyCheckboxModule,\n ],\n exports: [AddressFormV2Component],\n providers: [\n AddressService,\n {\n provide: COUNTRY_OPTIONS_TOKEN,\n useFactory: (a: AddressService) => a.listAllCountryOptions(),\n deps: [AddressService],\n },\n defaultCountryControlProvider,\n ],\n})\nexport class AddressFormV2Module {}\n","export { AddressFormModule } from './address-form.module';\nexport { AddressService } from './address/address.service';\nexport { Address } from './address/interface';\nexport * from './inputs/country-input.component';\nexport { AddressFormV2Module } from './v2/address-form-v2.module';\nexport { PlaceAutocompleteComponent } from './v2/place-autocomplete/place-autocomplete.component';\n","export interface ClientImage {\n url: string;\n date: Date;\n type?: string;\n}\n\nexport enum MenuOption {\n Logo = 'Make Logo',\n Primary = 'Make Primary',\n Delete = 'Delete',\n}\n","import * as i0 from '@angular/core';\nimport { Injectable } from '@angular/core';\nimport * as i1 from '@angular/common/http';\nimport { 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 ImageType = /*#__PURE__*/function (ImageType) {\n ImageType[ImageType[\"NOT_SPECIFIED\"] = 0] = \"NOT_SPECIFIED\";\n ImageType[ImageType[\"PRIMARY\"] = 1] = \"PRIMARY\";\n ImageType[ImageType[\"LOGO\"] = 2] = \"LOGO\";\n return ImageType;\n}(ImageType || {});\n// *********************************\n\nfunction enumStringToValue(enumRef, value) {\n if (typeof value === 'number') {\n return value;\n }\n return enumRef[value];\n}\nclass AssociateImageRequest {\n static fromProto(proto) {\n let m = new AssociateImageRequest();\n m = Object.assign(m, proto);\n if (proto.imageType) {\n m.imageType = enumStringToValue(ImageType, proto.imageType);\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.imageId !== 'undefined') {\n toReturn['imageId'] = this.imageId;\n }\n if (typeof this.imageType !== 'undefined') {\n toReturn['imageType'] = this.imageType;\n }\n return toReturn;\n }\n}\nclass DeleteImageRequest {\n static fromProto(proto) {\n let m = new DeleteImageRequest();\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.accountGroupId !== 'undefined') {\n toReturn['accountGroupId'] = this.accountGroupId;\n }\n if (typeof this.imageId !== 'undefined') {\n toReturn['imageId'] = this.imageId;\n }\n return toReturn;\n }\n}\nclass ListImagesRequestFilters {\n static fromProto(proto) {\n let m = new ListImagesRequestFilters();\n m = Object.assign(m, proto);\n if (proto.imageType) {\n m.imageType = proto.imageType.map(v => enumStringToValue(ImageType, 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.imageType !== 'undefined') {\n toReturn['imageType'] = this.imageType;\n }\n if (typeof this.includeDeleted !== 'undefined') {\n toReturn['includeDeleted'] = this.includeDeleted;\n }\n return toReturn;\n }\n}\nclass ImageAssociation {\n static fromProto(proto) {\n let m = new ImageAssociation();\n m = Object.assign(m, proto);\n if (proto.created) {\n m.created = new Date(proto.created);\n }\n if (proto.imageType) {\n m.imageType = enumStringToValue(ImageType, proto.imageType);\n }\n if (proto.deleted) {\n m.deleted = new Date(proto.deleted);\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.imageId !== 'undefined') {\n toReturn['imageId'] = this.imageId;\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.imageType !== 'undefined') {\n toReturn['imageType'] = this.imageType;\n }\n if (typeof this.deleted !== 'undefined' && this.deleted !== null) {\n toReturn['deleted'] = 'toApiJson' in this.deleted ? this.deleted.toApiJson() : this.deleted;\n }\n return toReturn;\n }\n}\nclass ListImagesPagedResponse {\n static fromProto(proto) {\n let m = new ListImagesPagedResponse();\n m = Object.assign(m, proto);\n if (proto.images) {\n m.images = proto.images.map(ImageAssociation.fromProto);\n }\n if (proto.totalResults) {\n m.totalResults = parseInt(proto.totalResults, 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.images !== 'undefined' && this.images !== null) {\n toReturn['images'] = 'toApiJson' in this.images ? this.images.toApiJson() : this.images;\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 if (typeof this.totalResults !== 'undefined') {\n toReturn['totalResults'] = this.totalResults;\n }\n return toReturn;\n }\n}\nclass ListImagesRequest {\n static fromProto(proto) {\n let m = new ListImagesRequest();\n m = Object.assign(m, proto);\n if (proto.pageSize) {\n m.pageSize = parseInt(proto.pageSize, 10);\n }\n if (proto.filters) {\n m.filters = ListImagesRequestFilters.fromProto(proto.filters);\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.cursor !== 'undefined') {\n toReturn['cursor'] = this.cursor;\n }\n if (typeof this.pageSize !== 'undefined') {\n toReturn['pageSize'] = this.pageSize;\n }\n if (typeof this.filters !== 'undefined' && this.filters !== null) {\n toReturn['filters'] = 'toApiJson' in this.filters ? this.filters.toApiJson() : this.filters;\n }\n return toReturn;\n }\n}\n\n// *********************************\n\nconst environment = (window ? window['environment'] : 'prod') ?? 'prod';\nconst hostMap = {\n 'local': 'account-group-media-api.vendasta-local.com',\n 'test': '',\n 'demo': 'account-group-media-api-demo.apigateway.co',\n 'prod': 'account-group-media-api-prod.apigateway.co',\n 'production': 'account-group-media-api-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(t) {\n return new (t || 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 MediaApiService = /*#__PURE__*/(() => {\n class MediaApiService {\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 associateImage(r) {\n const request = r.toApiJson ? r : new AssociateImageRequest(r);\n return this.http.post(this._host + \"/accountgroupmedia.v1.MediaService/AssociateImage\", request.toApiJson(), {\n ...this.apiOptions(),\n observe: 'response'\n });\n }\n listImages(r) {\n const request = r.toApiJson ? r : new ListImagesRequest(r);\n return this.http.post(this._host + \"/accountgroupmedia.v1.MediaService/ListImages\", request.toApiJson(), this.apiOptions()).pipe(map(resp => ListImagesPagedResponse.fromProto(resp)));\n }\n deleteImage(r) {\n const request = r.toApiJson ? r : new DeleteImageRequest(r);\n return this.http.post(this._host + \"/accountgroupmedia.v1.MediaService/DeleteImage\", request.toApiJson(), {\n ...this.apiOptions(),\n observe: 'response'\n });\n }\n }\n MediaApiService.ɵfac = function MediaApiService_Factory(t) {\n return new (t || MediaApiService)(i0.ɵɵinject(i1.HttpClient), i0.ɵɵinject(HostService));\n };\n MediaApiService.ɵprov = /* @__PURE__ */i0.ɵɵdefineInjectable({\n token: MediaApiService,\n factory: MediaApiService.ɵfac,\n providedIn: 'root'\n });\n return MediaApiService;\n})();\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\n\n/**\n * Generated bundle index. Do not edit.\n */\n\nexport { AssociateImageRequest, DeleteImageRequest, ImageAssociation, ImageType, ListImagesPagedResponse, ListImagesRequest, ListImagesRequestFilters, MediaApiService };\n","import * as i0 from '@angular/core';\nimport { Injectable } from '@angular/core';\nimport * as i1 from '@angular/common/http';\nimport { HttpHeaders } from '@angular/common/http';\nimport { map, catchError } from 'rxjs/operators';\nimport { throwError } from 'rxjs';\nconst environment = (window ? window['environment'] : 'prod') ?? 'prod';\nconst hostMap = {\n 'local': 'media-api.vendasta-local.com',\n 'test': '',\n 'demo': 'media-api-demo.apigateway.co',\n 'prod': 'media-api-prod.apigateway.co',\n 'production': 'media-api-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(t) {\n return new (t || 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})();\nclass Tag {\n static fromProto(proto) {\n let m = new Tag();\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}\nclass Video {\n static fromProto(proto) {\n let m = new Video();\n m = Object.assign(m, proto);\n if (proto.tags) {\n m.tags = proto.tags.map(Tag.fromProto);\n }\n if (proto.created) {\n m.created = new Date(proto.created);\n }\n if (proto.modified) {\n m.modified = new Date(proto.modified);\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.url !== 'undefined') {\n toReturn['url'] = this.url;\n }\n if (typeof this.tags !== 'undefined' && this.tags !== null) {\n toReturn['tags'] = 'toApiJson' in this.tags ? this.tags.toApiJson() : this.tags;\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.modified !== 'undefined' && this.modified !== null) {\n toReturn['modified'] = 'toApiJson' in this.modified ? this.modified.toApiJson() : this.modified;\n }\n return toReturn;\n }\n}\nclass Image {\n static fromProto(proto) {\n let m = new Image();\n m = Object.assign(m, proto);\n if (proto.tags) {\n m.tags = proto.tags.map(Tag.fromProto);\n }\n if (proto.created) {\n m.created = new Date(proto.created);\n }\n if (proto.modified) {\n m.modified = new Date(proto.modified);\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.url !== 'undefined') {\n toReturn['url'] = this.url;\n }\n if (typeof this.tags !== 'undefined' && this.tags !== null) {\n toReturn['tags'] = 'toApiJson' in this.tags ? this.tags.toApiJson() : this.tags;\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.modified !== 'undefined' && this.modified !== null) {\n toReturn['modified'] = 'toApiJson' in this.modified ? this.modified.toApiJson() : this.modified;\n }\n return toReturn;\n }\n}\nclass CreateImageRequest {\n static fromProto(proto) {\n let m = new CreateImageRequest();\n m = Object.assign(m, proto);\n if (proto.tags) {\n m.tags = proto.tags.map(Tag.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.servingUrl !== 'undefined') {\n toReturn['servingUrl'] = this.servingUrl;\n }\n if (typeof this.tags !== 'undefined' && this.tags !== null) {\n toReturn['tags'] = 'toApiJson' in this.tags ? this.tags.toApiJson() : this.tags;\n }\n return toReturn;\n }\n}\nclass CreateImageResponse {\n static fromProto(proto) {\n let m = new CreateImageResponse();\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.imageId !== 'undefined') {\n toReturn['imageId'] = this.imageId;\n }\n return toReturn;\n }\n}\nclass CreateVideoRequest {\n static fromProto(proto) {\n let m = new CreateVideoRequest();\n m = Object.assign(m, proto);\n if (proto.tags) {\n m.tags = proto.tags.map(Tag.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.videoUrl !== 'undefined') {\n toReturn['videoUrl'] = this.videoUrl;\n }\n if (typeof this.tags !== 'undefined' && this.tags !== null) {\n toReturn['tags'] = 'toApiJson' in this.tags ? this.tags.toApiJson() : this.tags;\n }\n return toReturn;\n }\n}\nclass CreateVideoResponse {\n static fromProto(proto) {\n let m = new CreateVideoResponse();\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.videoId !== 'undefined') {\n toReturn['videoId'] = this.videoId;\n }\n return toReturn;\n }\n}\nclass GenerateUploadUrlRequest {\n static fromProto(proto) {\n let m = new GenerateUploadUrlRequest();\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.accountGroupId !== 'undefined') {\n toReturn['accountGroupId'] = this.accountGroupId;\n }\n if (typeof this.fileName !== 'undefined') {\n toReturn['fileName'] = this.fileName;\n }\n if (typeof this.contentType !== 'undefined') {\n toReturn['contentType'] = this.contentType;\n }\n return toReturn;\n }\n}\nclass GenerateUploadUrlResponse {\n static fromProto(proto) {\n let m = new GenerateUploadUrlResponse();\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.signedUrl !== 'undefined') {\n toReturn['signedUrl'] = this.signedUrl;\n }\n return toReturn;\n }\n}\nclass GetImageRequest {\n static fromProto(proto) {\n let m = new GetImageRequest();\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.imageId !== 'undefined') {\n toReturn['imageId'] = this.imageId;\n }\n return toReturn;\n }\n}\nclass GetImageResponse {\n static fromProto(proto) {\n let m = new GetImageResponse();\n m = Object.assign(m, proto);\n if (proto.image) {\n m.image = Image.fromProto(proto.image);\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.image !== 'undefined' && this.image !== null) {\n toReturn['image'] = 'toApiJson' in this.image ? this.image.toApiJson() : this.image;\n }\n return toReturn;\n }\n}\nclass GetResumableUploadSessionRequest {\n static fromProto(proto) {\n let m = new GetResumableUploadSessionRequest();\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.mediaType !== 'undefined') {\n toReturn['mediaType'] = this.mediaType;\n }\n if (typeof this.origin !== 'undefined') {\n toReturn['origin'] = this.origin;\n }\n return toReturn;\n }\n}\nclass GetResumableUploadSessionResponse {\n static fromProto(proto) {\n let m = new GetResumableUploadSessionResponse();\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.sessionUri !== 'undefined') {\n toReturn['sessionUri'] = this.sessionUri;\n }\n return toReturn;\n }\n}\nclass GetVideoRequest {\n static fromProto(proto) {\n let m = new GetVideoRequest();\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.videoId !== 'undefined') {\n toReturn['videoId'] = this.videoId;\n }\n return toReturn;\n }\n}\nclass GetVideoResponse {\n static fromProto(proto) {\n let m = new GetVideoResponse();\n m = Object.assign(m, proto);\n if (proto.video) {\n m.video = Video.fromProto(proto.video);\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.video !== 'undefined' && this.video !== null) {\n toReturn['video'] = 'toApiJson' in this.video ? this.video.toApiJson() : this.video;\n }\n return toReturn;\n }\n}\n\n// *********************************\n\n// *********************************\nlet MediaApiService$1 = class MediaApiService {\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 createImage(r) {\n const request = r.toApiJson ? r : new CreateImageRequest(r);\n return this.http.post(this._host + \"/media.v2.MediaService/CreateImage\", request.toApiJson(), this.apiOptions()).pipe(map(resp => CreateImageResponse.fromProto(resp)));\n }\n getImage(r) {\n const request = r.toApiJson ? r : new GetImageRequest(r);\n return this.http.post(this._host + \"/media.v2.MediaService/GetImage\", request.toApiJson(), this.apiOptions()).pipe(map(resp => GetImageResponse.fromProto(resp)));\n }\n createVideo(r) {\n const request = r.toApiJson ? r : new CreateVideoRequest(r);\n return this.http.post(this._host + \"/media.v2.MediaService/CreateVideo\", request.toApiJson(), this.apiOptions()).pipe(map(resp => CreateVideoResponse.fromProto(resp)));\n }\n getVideo(r) {\n const request = r.toApiJson ? r : new GetVideoRequest(r);\n return this.http.post(this._host + \"/media.v2.MediaService/GetVideo\", request.toApiJson(), this.apiOptions()).pipe(map(resp => GetVideoResponse.fromProto(resp)));\n }\n generateUploadUrl(r) {\n const request = r.toApiJson ? r : new GenerateUploadUrlRequest(r);\n return this.http.post(this._host + \"/media.v2.MediaService/GenerateUploadUrl\", request.toApiJson(), this.apiOptions()).pipe(map(resp => GenerateUploadUrlResponse.fromProto(resp)));\n }\n getResumableUploadSession(r) {\n const request = r.toApiJson ? r : new GetResumableUploadSessionRequest(r);\n return this.http.post(this._host + \"/media.v2.MediaService/GetResumableUploadSession\", request.toApiJson(), this.apiOptions()).pipe(map(resp => GetResumableUploadSessionResponse.fromProto(resp)));\n }\n};\nMediaApiService$1.ɵfac = function MediaApiService$1_Factory(t) {\n return new (t || MediaApiService$1)(i0.ɵɵinject(i1.HttpClient), i0.ɵɵinject(HostService));\n};\nMediaApiService$1.ɵprov = /* @__PURE__ */i0.ɵɵdefineInjectable({\n token: MediaApiService$1,\n factory: MediaApiService$1.ɵfac,\n providedIn: 'root'\n});\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\n\n// *********************************\n\nclass UploadImageResponse {\n static fromProto(proto) {\n if (!proto) {\n return null;\n }\n const m = new UploadImageResponse();\n if (Object.prototype.hasOwnProperty.call(proto, 'data')) {\n // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment\n m.data = proto.data;\n }\n return m;\n }\n constructor(kwargs) {\n if (!kwargs) {\n return;\n }\n if (kwargs.hasOwnProperty('data')) {\n this.data = kwargs.data;\n }\n }\n toApiJson() {\n if (typeof this.data === 'undefined') {\n return null;\n }\n return {\n 'url': typeof this.data !== 'undefined' ? this.data : null\n };\n }\n}\n\n/**\n * This file is for the HTTP requests, since MSCLI only auto-generates lib/helper code for GRPC endpoints.\n */\nlet MediaUploadApi = /*#__PURE__*/(() => {\n class MediaUploadApi {\n constructor(hostService, http) {\n this.hostService = hostService;\n this.http = http;\n }\n upload(r) {\n return this.http.post(this.hostService.hostWithScheme + \"/image/upload\", r.form, this.apiOptions()).pipe(map(resp => UploadImageResponse.fromProto(resp)), catchError(err => this.handleError(err)));\n }\n get(imageId) {\n return this.hostService.hostWithScheme + \"/image/get/\" + imageId;\n }\n apiOptions() {\n return {\n withCredentials: true\n };\n }\n handleError(error) {\n if (error.error instanceof ErrorEvent) {\n console.error(`An error occurred:`, error.error.message);\n } else {\n console.error(error);\n }\n return throwError(() => \"Unable to upload photo. Please try again.\");\n }\n }\n MediaUploadApi.ɵfac = function MediaUploadApi_Factory(t) {\n return new (t || MediaUploadApi)(i0.ɵɵinject(HostService), i0.ɵɵinject(i1.HttpClient));\n };\n MediaUploadApi.ɵprov = /* @__PURE__ */i0.ɵɵdefineInjectable({\n token: MediaUploadApi,\n factory: MediaUploadApi.ɵfac,\n providedIn: \"root\"\n });\n return MediaUploadApi;\n})();\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\nlet MediaApiService = /*#__PURE__*/(() => {\n class MediaApiService {\n constructor(grpcApi, mediaUploadApi) {\n this.grpcApi = grpcApi;\n this.mediaUploadApi = mediaUploadApi;\n }\n upload(file) {\n const formData = new FormData();\n formData.append('image', file, file.name);\n return this.mediaUploadApi.upload({\n form: formData\n }).pipe(map(resp => resp?.data || null));\n }\n create(servingUrl) {\n return this.grpcApi.createImage(new CreateImageRequest({\n servingUrl: servingUrl\n }));\n }\n get(imageId) {\n return this.mediaUploadApi.get(imageId);\n }\n getResumableUpload(mediaType, origin) {\n const request = new GetResumableUploadSessionRequest({\n mediaType: mediaType,\n origin: origin\n });\n return this.grpcApi.getResumableUploadSession(request);\n }\n }\n MediaApiService.ɵfac = function MediaApiService_Factory(t) {\n return new (t || MediaApiService)(i0.ɵɵinject(MediaApiService$1), i0.ɵɵinject(MediaUploadApi));\n };\n MediaApiService.ɵprov = /* @__PURE__ */i0.ɵɵdefineInjectable({\n token: MediaApiService,\n factory: MediaApiService.ɵfac,\n providedIn: 'root'\n });\n return MediaApiService;\n})();\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\n\n/**\n * Generated bundle index. Do not edit.\n */\n\nexport { CreateImageRequest, CreateImageResponse, CreateVideoRequest, CreateVideoResponse, GenerateUploadUrlRequest, GenerateUploadUrlResponse, GetImageRequest, GetImageResponse, GetResumableUploadSessionRequest, GetResumableUploadSessionResponse, GetVideoRequest, GetVideoResponse, HostService, Image, MediaApiService, Tag, Video };\n","import { Component, OnDestroy } from '@angular/core';\nimport { UntypedFormControl } from '@angular/forms';\nimport { MatDialogRef } from '@angular/material/dialog';\nimport { SnackbarService } from '@vendasta/galaxy/snackbar-service';\nimport { Subscription } from 'rxjs';\nimport { ClientImage } from '../media-tab.interface';\nimport { MediaTabService } from '../media-tab.service';\n\n@Component({\n selector: 'business-upload-image-dialog',\n templateUrl: './upload-image-dialog.component.html',\n styleUrls: ['./upload-image-dialog.component.scss'],\n})\nexport class UploadImageDialogComponent implements OnDestroy {\n imageUrlControl = new UntypedFormControl();\n private subscriptions: Subscription[] = [];\n maxFileSizeBytes = 5242880; // MiB\n imageService: MediaTabService;\n uploading = false;\n\n constructor(public dialogRef: MatDialogRef, private alertService: SnackbarService) {}\n\n ngOnDestroy(): void {\n this.subscriptions.forEach((sub) => {\n sub.unsubscribe();\n });\n }\n\n uploadPhotos(): void {\n this.uploading = true;\n const imageUrl = this.imageUrlControl.value.url;\n this.subscriptions.push(\n this.imageService.createAndAssociate(imageUrl).subscribe(\n (imageId) => {\n this.onSuccess(imageId);\n },\n (err) => {\n this.uploadError(err);\n },\n ),\n );\n }\n\n private onSuccess(imageId: string): void {\n this.alertService.openSuccessSnack('FRONTEND.BUSINESSES.MEDIA_TAB.PHOTO_UPLOADED_SUCCESSFULLY');\n const image: ClientImage = { url: this.imageService.mediaApiService.get(imageId), date: new Date() };\n this.dialogRef.close(image);\n }\n\n uploadError(error: Error): void {\n console.error(error.message);\n this.alertService.openErrorSnack(error.message);\n this.dialogRef.close();\n }\n\n onCancel(): void {\n this.dialogRef.close();\n }\n}\n","

\n {{ 'FRONTEND.BUSINESSES.MEDIA_TAB.UPLOAD_PHOTO' | translate }}\n

\n\n\n\n\n \n\n\n \n \n {{ 'FRONTEND.BUSINESSES.SAVE' | translate }}\n \n\n","import { Injectable, OnDestroy } from '@angular/core';\nimport { MatDialog, MatDialogRef } from '@angular/material/dialog';\nimport {\n MediaApiService as AccountGroupMediaApiService,\n AssociateImageRequest,\n DeleteImageRequest,\n ImageType,\n ListImagesRequest,\n} from '@vendasta/account-group-media';\nimport { SnackbarService } from '@vendasta/galaxy/snackbar-service';\nimport { MediaApiService } from '@vendasta/media';\nimport { BehaviorSubject, Observable, Subscription, EMPTY as empty } from 'rxjs';\nimport { map, switchMap, tap } from 'rxjs/operators';\nimport { ClientImage } from './media-tab.interface';\nimport { UploadImageDialogComponent } from './upload-image-dialog/upload-image-dialog.component';\n\n@Injectable()\nexport class MediaTabService implements OnDestroy {\n accountGroupId: string;\n hasMore = new BehaviorSubject(false);\n totalImages = new BehaviorSubject(0);\n loading = new BehaviorSubject(false);\n pageFetchError = new BehaviorSubject(false);\n imagesSubject = new BehaviorSubject([]);\n private imageCursor: string;\n private subscriptions: Subscription[] = [];\n\n constructor(\n private accountGroupMediaApiService: AccountGroupMediaApiService,\n public mediaApiService: MediaApiService,\n private snackbarService: SnackbarService,\n ) {}\n\n ngOnDestroy(): void {\n this.subscriptions.forEach((sub) => {\n sub.unsubscribe();\n });\n this.clearConfig();\n }\n\n clearConfig(): void {\n this.accountGroupId = null;\n this.hasMore.next(false);\n this.totalImages.next(0);\n this.loading.next(false);\n this.pageFetchError.next(false);\n this.imageCursor = null;\n this.imagesSubject.next([]);\n }\n\n private addImageToSubject(image: ClientImage): void {\n const curImages = this.imagesSubject.getValue();\n\n if (!curImages.find((x) => x.url === image.url)) {\n if (image.type) {\n curImages.unshift(image);\n this.imagesSubject.next(curImages);\n } else {\n const index = curImages.findIndex((x) => x.date < image.date && x.type === image.type);\n if (index !== -1) {\n curImages.splice(index, 0, image);\n this.imagesSubject.next(curImages);\n } else {\n this.imagesSubject.next(curImages.concat(image));\n }\n }\n }\n }\n\n private removeImageUrlFromSubject(imageUrl: string): void {\n const curImages = this.imagesSubject.getValue();\n const index = curImages.findIndex((x) => x.url === imageUrl);\n\n if (index > -1) {\n curImages.splice(index, 1);\n this.imagesSubject.next(curImages);\n let total: number = this.totalImages.getValue();\n total--;\n this.totalImages.next(total);\n }\n }\n\n private removeImageTypeFromSubject(imageType: ImageType): boolean {\n const curImages = this.imagesSubject.getValue();\n const index = curImages.findIndex((x) => x.type === this.imageTypeToString(imageType));\n\n if (index > -1) {\n curImages.splice(index, 1);\n this.imagesSubject.next(curImages);\n return true;\n }\n return false;\n }\n\n openImageUploadDialog(dialog: MatDialog): void {\n const dialogRef = dialog.open(UploadImageDialogComponent, {\n width: '900px',\n minWidth: '80%',\n maxWidth: '100%',\n minHeight: '500px',\n });\n (dialogRef.componentInstance.imageService as MediaTabService) = this;\n this.subscriptions.push(\n dialogRef.beforeClosed().subscribe((result) => {\n if (result) {\n let total: number = this.totalImages.getValue();\n total++;\n this.totalImages.next(total);\n this.addImageToSubject(result);\n }\n }),\n );\n }\n\n createAndAssociate(servingUrl: string, imageType?: ImageType): Observable {\n return this.mediaApiService.create(servingUrl).pipe(\n switchMap((createResponse) => {\n const associateRequest = new AssociateImageRequest({\n accountGroupId: this.accountGroupId,\n imageId: createResponse.imageId,\n imageType: imageType,\n });\n return this.accountGroupMediaApiService\n .associateImage(associateRequest)\n .pipe(map(() => createResponse.imageId));\n }),\n );\n }\n\n addClientImages(): void {\n this.loading.next(true);\n const request = new ListImagesRequest({\n accountGroupId: this.accountGroupId,\n cursor: this.imageCursor,\n pageSize: 8,\n });\n this.subscriptions.push(\n this.accountGroupMediaApiService.listImages(request).subscribe(\n (result) => {\n const imageAssociations = result.images;\n if (result.images) {\n this.imageCursor = result.nextCursor;\n if (this.totalImages.getValue() < result.totalResults) {\n this.totalImages.next(result.totalResults);\n }\n this.hasMore.next(result.hasMore);\n imageAssociations.forEach((element) => {\n const url = this.mediaApiService.get(element.imageId);\n const type = this.imageTypeToString(element.imageType);\n this.addImageToSubject({ url: url, date: element.created, type: type });\n });\n this.pageFetchError.next(false);\n }\n this.loading.next(false);\n },\n (err) => {\n console.error(err);\n this.pageFetchError.next(true);\n this.loading.next(false);\n },\n () => {\n this.loading.next(false);\n },\n ),\n );\n }\n\n markImageAsLogo(imageUrl: string, dialogRef: MatDialogRef): void {\n this.subscriptions.push(\n dialogRef\n .afterClosed()\n .pipe(\n switchMap((result) => {\n if (result) {\n const logoUrl = imageUrl + '=c-rp'; // Make the image a square if it is a logo, png\n return this.createAndAssociate(logoUrl, ImageType.LOGO).pipe(\n tap(\n (imageId) => {\n const clientLogo = {\n url: this.mediaApiService.get(imageId),\n date: new Date(),\n type: this.imageTypeToString(ImageType.LOGO),\n };\n if (this.removeImageTypeFromSubject(ImageType.LOGO) === false) {\n let total: number = this.totalImages.getValue();\n total++;\n this.totalImages.next(total);\n }\n this.addImageToSubject(clientLogo);\n this.snackbarService.openSuccessSnack('FRONTEND.BUSINESSES.MEDIA_TAB.LOGO_SET_SUCCESSFULLY');\n },\n () => {\n this.snackbarService.openErrorSnack('FRONTEND.BUSINESSES.MEDIA_TAB.ERROR_SETTING_PHOTO_AS_LOGO');\n },\n ),\n );\n }\n return empty;\n }),\n )\n .subscribe(),\n );\n }\n\n markImageAsPrimary(imageUrl: string, dialogRef: MatDialogRef): void {\n this.subscriptions.push(\n dialogRef\n .afterClosed()\n .pipe(\n switchMap((result) => {\n if (result) {\n const primaryUrl = imageUrl + '=rp'; // Make the image a png\n return this.createAndAssociate(primaryUrl, ImageType.PRIMARY).pipe(\n tap(\n (imageId) => {\n const clientPrimary = {\n url: this.mediaApiService.get(imageId),\n date: new Date(),\n type: this.imageTypeToString(ImageType.PRIMARY),\n };\n if (this.removeImageTypeFromSubject(ImageType.PRIMARY) === false) {\n let total: number = this.totalImages.getValue();\n total++;\n this.totalImages.next(total);\n }\n this.addImageToSubject(clientPrimary);\n this.snackbarService.openSuccessSnack(\n 'FRONTEND.BUSINESSES.MEDIA_TAB.PRIMARY_PHOTO_SET_SUCCESSFULLY',\n );\n },\n () => {\n this.snackbarService.openErrorSnack('FRONTEND.BUSINESSES.MEDIA_TAB.ERROR_SETTING_PHOTO_AS_PRIMARY');\n },\n ),\n );\n }\n return empty;\n }),\n )\n .subscribe(),\n );\n }\n\n deleteImage(imageUrl: string, dialogRef: MatDialogRef): void {\n this.subscriptions.push(\n dialogRef\n .afterClosed()\n .pipe(\n switchMap((result) => {\n if (result) {\n const imageId = imageUrl.split('/').pop();\n const deleteImageRequest = new DeleteImageRequest({\n accountGroupId: this.accountGroupId,\n imageId: imageId,\n });\n return this.accountGroupMediaApiService.deleteImage(deleteImageRequest).pipe(\n tap(\n () => {\n this.removeImageUrlFromSubject(imageUrl);\n this.snackbarService.openSuccessSnack('FRONTEND.BUSINESSES.MEDIA_TAB.PHOTO_DELETED');\n },\n () => {\n this.snackbarService.openErrorSnack('FRONTEND.BUSINESSES.MEDIA_TAB.ERROR_DELETING_PHOTO');\n },\n ),\n );\n }\n return empty;\n }),\n )\n .subscribe(),\n );\n }\n\n private imageTypeToString(type: number): string {\n if (type === ImageType.LOGO) {\n return 'Logo';\n }\n if (type === ImageType.PRIMARY) {\n return 'Primary';\n }\n if (type === ImageType.NOT_SPECIFIED) {\n return undefined;\n }\n }\n}\n","import { Component, EventEmitter, Input, OnDestroy, OnInit, Output } from '@angular/core';\nimport { ImageTransformation, ImageTransformationService } from '@vendasta/image-transformation';\nimport { Subscription, fromEvent as observableFromEvent } from 'rxjs';\n\nimport { ClientImage, MenuOption } from '../media-tab.interface';\nimport { ImageMenuClick } from './image-menu-click';\n\n@Component({\n styleUrls: ['./media-tab-gallery.component.scss'],\n selector: 'business-media-tab-gallery',\n templateUrl: './media-tab-gallery.component.html',\n})\nexport class MediaTabGalleryComponent implements OnInit, OnDestroy {\n @Input() images: ClientImage[];\n @Output() imageClicked = new EventEmitter();\n @Input() menuOptions: string[];\n @Output() menuOptionSelected = new EventEmitter();\n mobileColumns = 2;\n desktopColumns = 4;\n gridColumns = 4;\n private subscriptions: Subscription[] = [];\n\n constructor(private imageTransformationService: ImageTransformationService) {}\n\n ngOnInit(): void {\n this.updateColumnTotal();\n this.subscriptions.push(\n observableFromEvent(window, 'resize').subscribe(() => {\n this.updateColumnTotal();\n }),\n );\n }\n\n ngOnDestroy(): void {\n this.subscriptions.forEach((sub) => {\n sub.unsubscribe();\n });\n }\n\n onClick(image: ClientImage): void {\n this.imageClicked.emit(image);\n }\n\n menuOptionClicked(image: ClientImage, option: MenuOption): void {\n const menuClick: ImageMenuClick = {\n image: image,\n option: option,\n };\n this.menuOptionSelected.emit(menuClick);\n }\n\n getSrcsetImageUrls(imageUrl: string): string {\n const transformation = new ImageTransformation().crop().renderAsJpeg().setJpegQuality(80);\n return this.imageTransformationService.getSrcSetForImage(imageUrl, [256, 320, 512], transformation);\n }\n\n updateColumnTotal(): void {\n this.gridColumns = window.innerWidth < 800 ? this.mobileColumns : this.desktopColumns;\n }\n\n getMenuOptions(image: ClientImage): MenuOption[] {\n if (image.type) {\n return [MenuOption.Delete];\n }\n return [MenuOption.Logo, MenuOption.Primary, MenuOption.Delete];\n }\n}\n","\n \n \n \n \n \n {{ image.type | uppercase | translate }}\n \n \n \n \n \n {{ image.date | date }}\n \n \n \n
\n
\n
\n","import { Component, EventEmitter, Input, OnDestroy, OnInit, Output } from '@angular/core';\nimport { MatDialog, MatDialogRef } from '@angular/material/dialog';\nimport { Observable, Subject, Subscription, combineLatest } from 'rxjs';\nimport { map, withLatestFrom } from 'rxjs/operators';\nimport { LightboxData } from '../business-profile.interface';\nimport { ImageMenuClick } from './media-tab-gallery/image-menu-click';\nimport { ClientImage, MenuOption } from './media-tab.interface';\nimport { MediaTabService } from './media-tab.service';\n\n@Component({\n selector: 'business-media-tab',\n templateUrl: './media-tab.component.html',\n styleUrls: ['./media-tab.component.scss'],\n})\nexport class MediaTabComponent implements OnInit, OnDestroy {\n @Input() accountGroupId: string;\n @Input() editDisabled = false;\n @Output() imageClicked: EventEmitter = new EventEmitter();\n private lightboxSubject = new Subject();\n private subscriptions: Subscription[] = [];\n\n constructor(public dialog: MatDialog, public tabService: MediaTabService) {}\n\n ngOnInit(): void {\n this.tabService.clearConfig();\n this.tabService.accountGroupId = this.accountGroupId;\n this.tabService.addClientImages();\n\n this.subscriptions.push(\n this.lightboxSubject\n .pipe(\n withLatestFrom(this.images$, (clickedImage, images) => {\n const imageUrls: string[] = images.map((image) => image.url);\n return { imageUrls: imageUrls, index: imageUrls.indexOf(clickedImage.url) };\n }),\n )\n .subscribe((lightboxData) => {\n this.imageClicked.emit(lightboxData);\n }),\n );\n }\n\n ngOnDestroy(): void {\n this.subscriptions.forEach((sub) => {\n sub.unsubscribe();\n });\n }\n\n public get images$(): Observable {\n return this.tabService.imagesSubject.pipe(map((arr) => (arr.length > 0 ? arr : null)));\n }\n\n public get galleryInfo$(): Observable {\n return combineLatest([\n this.tabService.totalImages,\n this.tabService.hasMore,\n this.tabService.loading,\n this.tabService.pageFetchError,\n ]).pipe(\n map(([totalImages, hasMore, loading, pageFetchError]) => ({ totalImages, hasMore, loading, pageFetchError })),\n );\n }\n\n loadMore(): void {\n this.tabService.addClientImages();\n }\n\n openImageUploadDialog(): void {\n this.tabService.openImageUploadDialog(this.dialog);\n }\n\n openLightbox(clickedImage: ClientImage): void {\n this.lightboxSubject.next(clickedImage);\n }\n\n async imageMenuClicked(clickedOption: ImageMenuClick): Promise {\n const getMenuKey = (key) => `FRONTEND.BUSINESSES.MEDIA_TAB.IMAGE_MENU.${key}`;\n if (clickedOption.option === MenuOption.Logo) {\n const dialogRef = this.dialog.open(ConfirmationModalComponent);\n dialogRef.componentInstance.title = getMenuKey('SET_LOGO_QUESTION');\n dialogRef.componentInstance.body = getMenuKey('SET_LOGO_BODY');\n dialogRef.componentInstance.confirmButton = getMenuKey('SET_LOGO');\n this.tabService.markImageAsLogo(clickedOption.image.url, dialogRef);\n } else if (clickedOption.option === MenuOption.Primary) {\n const dialogRef = this.dialog.open(ConfirmationModalComponent);\n dialogRef.componentInstance.title = getMenuKey('SET_PRIMARY_PHOTO');\n dialogRef.componentInstance.body = getMenuKey('SET_PRIMARY_BODY');\n dialogRef.componentInstance.confirmButton = getMenuKey('SET_PRIMARY');\n this.tabService.markImageAsPrimary(clickedOption.image.url, dialogRef);\n } else if (clickedOption.option === MenuOption.Delete) {\n const dialogRef = this.dialog.open(ConfirmationModalComponent);\n dialogRef.componentInstance.title = getMenuKey('DELETE_PHOTO_QUESTION');\n dialogRef.componentInstance.body = getMenuKey('DELETE_PHOTO_BODY');\n dialogRef.componentInstance.confirmButton = getMenuKey('DELETE_PHOTO');\n this.tabService.deleteImage(clickedOption.image.url, dialogRef);\n }\n }\n}\n\n@Component({\n selector: 'business-confirmation-modal',\n template: `\n \n

{{ title | translate }}

\n

{{ body | translate }}

\n
\n \n \n \n \n `,\n})\nexport class ConfirmationModalComponent {\n // Translation key for modal title\n public title: string;\n // Translation key for modal body\n public body: string;\n // Translation key for modal confirm button\n public confirmButton: string;\n constructor(private dialogRef: MatDialogRef) {}\n\n onConfirm(): void {\n this.dialogRef.close(true);\n }\n\n onCancel(): void {\n this.dialogRef.close(false);\n }\n}\n","\n \n \n {{ 'FRONTEND.BUSINESSES.MEDIA_TAB.PHOTOS' | translate }}\n \n \n \n \n
\n \n \n \n \n
\n \n {{ 'FRONTEND.BUSINESSES.MEDIA_TAB.UNABLE_TO_LOAD_IMAGES' | translate }}\n \n
\n
\n \n
\n
\n \n {{\n 'FRONTEND.BUSINESSES.MEDIA_TAB.SHOWING_X_OF_Y'\n | translate : { count: clientImages.length, total: info.totalImages }\n }}\n \n
\n
\n
\n \n \n collections\n
\n \n
\n
\n {{ 'FRONTEND.BUSINESSES.MEDIA_TAB.ADDING_IMAGES_BOLSTERS' | translate }}\n
\n
\n
\n
\n
\n","import { Component, Input, Output, EventEmitter, OnInit, OnDestroy } from '@angular/core';\nimport { UntypedFormBuilder, UntypedFormControl, UntypedFormGroup } from '@angular/forms';\nimport { MatDialog, MatDialogRef } from '@angular/material/dialog';\nimport { TranslateService } from '@ngx-translate/core';\nimport { RegularHoursPeriod } from '@vendasta/listing-products';\nimport { EditRegularHoursDialogComponent } from '@vendasta/forms';\nimport { filter, Observable, Subscription } from 'rxjs';\n\nexport interface MoreHoursType {\n hoursTypeId: string;\n displayName: string;\n localizedDisplayName: string;\n}\n\n@Component({\n selector: 'business-profile-more-hours',\n templateUrl: './more-hours.component.html',\n styleUrls: ['./more-hours.component.scss'],\n})\nexport class MoreHoursComponent implements OnInit, OnDestroy {\n @Input() parentFormGroup: UntypedFormGroup;\n @Input() appearance: 'outline' | 'standard' = 'standard';\n @Input() markedAsRequired = false;\n @Input() moreHoursTypes: MoreHoursType[] = [];\n @Input() loading$: Observable;\n @Input() editDisabled = false;\n @Output() changed = new EventEmitter();\n\n subscriptions: Subscription[] = [];\n\n private editDialogRef: MatDialogRef;\n\n public setTypes: Map = new Map();\n public unsetTypes: Map = new Map();\n\n constructor(\n private dialog: MatDialog,\n private fb: UntypedFormBuilder,\n private translateService: TranslateService,\n ) {}\n\n ngOnInit(): void {\n this.subscriptions.push(\n this.loading$.pipe(filter((loading) => !loading)).subscribe(() => {\n this.moreHoursTypes.forEach((moreHoursType) => {\n const existingHours: RegularHoursPeriod[] = this.parentFormGroup.get(moreHoursType.hoursTypeId)?.value;\n if (existingHours?.length > 0) {\n this.setTypes.set(moreHoursType.hoursTypeId, moreHoursType);\n } else {\n const control = this.fb.control({ value: [] });\n this.unsetTypes.set(moreHoursType.hoursTypeId, moreHoursType);\n this.parentFormGroup.addControl(moreHoursType.hoursTypeId, control);\n const hoursTypeId = this.parentFormGroup.get(moreHoursType.hoursTypeId);\n if (hoursTypeId) {\n hoursTypeId.markAsPristine();\n }\n }\n });\n }),\n );\n }\n\n ngOnDestroy(): void {\n this.subscriptions.forEach((subscription) => subscription.unsubscribe());\n }\n\n openEditDialog(moreHoursType: MoreHoursType): void {\n const control = this.parentFormGroup.get(moreHoursType.hoursTypeId);\n if (control.disabled || this.editDisabled) {\n return;\n }\n\n control.markAsTouched();\n this.dialog.closeAll();\n this.editDialogRef = this.dialog.open(EditRegularHoursDialogComponent, {\n disableClose: true,\n width: '660px',\n maxWidth: '100vw',\n data: { hideHolidayHours: true },\n });\n this.editDialogRef.componentInstance.control = control as UntypedFormControl;\n this.editDialogRef.componentInstance.showRemoveButton = true;\n this.editDialogRef.componentInstance.customTitle = `${\n moreHoursType.localizedDisplayName\n } ${this.translateService.instant('FRONTEND.BUSINESSES.HOURS')}`;\n this.editDialogRef.afterClosed().subscribe((result) => {\n if (result) {\n control.markAsDirty();\n control.setValue(result);\n if (result.length) {\n this.unsetTypes.delete(moreHoursType.hoursTypeId);\n this.setTypes.set(moreHoursType.hoursTypeId, moreHoursType);\n } else {\n this.setTypes.delete(moreHoursType.hoursTypeId);\n this.unsetTypes.set(moreHoursType.hoursTypeId, moreHoursType);\n }\n this.changed.emit();\n }\n this.editDialogRef = null;\n });\n }\n}\n","\n \n \n {{ 'FRONTEND.FORMS.MORE_HOURS.TITLE' | translate }}\n \n \n \n \n 0; else empty\">\n 0\">\n

{{ 'FRONTEND.BUSINESSES.ACTIVE' | translate }}

\n \n \n \n {{ moreHourType.value.localizedDisplayName }}\n \n \n \n
\n\n 0\">\n

{{ 'FRONTEND.FORMS.INPUT.ADD' | translate }}

\n \n \n \n add\n {{ moreHourType.value.localizedDisplayName }}\n \n \n \n
\n
\n
\n
\n
\n\n\n \n\n\n\n
\n \n
\n {{ 'FRONTEND.FORMS.MORE_HOURS.EMPTY' | translate }}\n
\n
\n
\n","import { HttpClient, HttpErrorResponse } from '@angular/common/http';\nimport {\n Component,\n DestroyRef,\n EventEmitter,\n Inject,\n inject,\n Input,\n NgZone,\n OnChanges,\n OnDestroy,\n OnInit,\n Output,\n SimpleChanges,\n ViewChild,\n} from '@angular/core';\nimport {\n AbstractControl,\n UntypedFormArray,\n UntypedFormBuilder,\n UntypedFormControl,\n UntypedFormGroup,\n ValidatorFn,\n Validators,\n} from '@angular/forms';\nimport { MapGeocoder, MapGeocoderResponse } from '@angular/google-maps';\nimport { MatSnackBar } from '@angular/material/snack-bar';\nimport { MatTabChangeEvent } from '@angular/material/tabs';\nimport { isHealthCategory } from '@galaxy/business-category';\nimport { TranslateService } from '@ngx-translate/core';\nimport { RichDataPaymentMethods } from '@vendasta/account-group';\nimport { CountryOption } from '@vendasta/address';\nimport { CategoryInterface } from '@vendasta/category';\nimport {\n emailValidator,\n fixControlsForFormArray,\n getChangedValues,\n ItemFactory,\n nameCharacterValidator,\n Option,\n phoneValidator,\n urlValidator,\n whitespaceValidator,\n} from '@vendasta/forms';\nimport { buildTimezoneDisplay } from '@vendasta/galaxy/utility/timezone';\nimport {\n BingAttribute,\n BingAttributeMetaDataInterface,\n BusinessHours,\n ClosedStatus,\n DoctorDotComCategory,\n Geo,\n GetAttributeMetadataRequest,\n GetDoctorDotComCategoriesRequest,\n GetMoreHoursTypesRequest,\n GetSuggestionRequest,\n GetSuggestionResponse,\n GoogleAttribute,\n GoogleAttributeMetaDataInterface,\n HealthCareProfessionalInformation,\n HealthCareProfessionalInformationGender,\n HealthCareProfessionalInformationIsProvider,\n IsAvailable,\n LegacyProductDetails,\n ListingProductsApiService,\n ListingProfile,\n ListingProfileApiService,\n ProjectionFilter,\n ServiceArea,\n ServiceAvailability,\n SuggestFieldUpdateRequest,\n SuggestionApiService,\n UpdateOption,\n ValueType as AttributesValueType,\n RichData,\n} from '@vendasta/listing-products';\nimport {\n BingAttributesUpdateOperation,\n BusinessHoursUpdateOperation,\n ExternalIdentifiersUpdateOperation,\n GoogleAttributesUpdateOperation,\n LegacyProductDetailsUpdateOperation,\n ListingProfileService,\n MergeHours,\n NapUpdateOperation,\n RichDataUpdateOperation,\n SocialURLsUpdateOperation,\n SplitHours,\n UpdateOperations,\n} from '@vendasta/listing-profile-common';\nimport { ProductAnalyticsService } from '@vendasta/product-analytics';\nimport { VaFullscreenLightboxService } from '@vendasta/uikit';\nimport {\n BehaviorSubject,\n catchError,\n combineLatest,\n distinctUntilChanged,\n EMPTY,\n filter,\n firstValueFrom,\n map,\n Observable,\n of,\n ReplaySubject,\n shareReplay,\n skipWhile,\n startWith,\n Subscription,\n switchMap,\n tap,\n} from 'rxjs';\nimport {\n primaryIsNotInAdditionalSalespeople,\n primaryIsSelectedWhenHavingAdditionalSalespeople,\n totalLengthOfRepeatedFieldValidator,\n} from './custom-validators';\nimport { FeatureFlagService } from './feature-flag.service';\nimport { FormatPhoneNumberPipe } from './format-phone-number.pipe';\nimport { LightboxData, BusinessProfileTab, Market } from './business-profile.interface';\nimport { AuxiliaryDataTableComponent, ObjectType } from '@vendasta/auxiliary-data-components';\nimport { Salesperson } from '@vendasta/salesperson';\nimport { ListSalespersonsRequestListSalespersonsFiltersInterface, SalespersonService, SalesSdk } from '@vendasta/sales';\nimport { takeUntilDestroyed } from '@angular/core/rxjs-interop';\nimport { Salesperson as SalesSalesperson } from '@vendasta/sales/lib/_internal/objects/salesperson';\nimport { retry } from 'rxjs/operators';\nimport { Address, COUNTRY_CONTROL_TOKEN } from './address';\nimport { HiddenField } from './business-profile.interface';\n\ndeclare let google: any;\n\ninterface FormUpdateParameters {\n operations: UpdateOperations;\n onlyHoursSave?: boolean;\n onlyBusinessHoursSave?: boolean;\n}\n\ninterface AvailabilityOption {\n code: number;\n name: string;\n}\n\ninterface GenderOption {\n code: number;\n name: string;\n}\n\ninterface IsProviderOption {\n code: number;\n name: string;\n}\n\nexport enum GenderKeys {\n SELECT_OPTION = 0,\n FEMALE = 1,\n MALE = 2,\n OTHER = 3,\n}\n\nconst GenderSelection = [GenderKeys.SELECT_OPTION, GenderKeys.FEMALE, GenderKeys.MALE, GenderKeys.OTHER];\n\nconst CountryPaymentMethods = {\n DEFAULT: [\n RichDataPaymentMethods.AMERICAN_EXPRESS,\n RichDataPaymentMethods.ANDROID_PAY,\n RichDataPaymentMethods.APPLE_PAY,\n RichDataPaymentMethods.CASH,\n RichDataPaymentMethods.CHECK,\n RichDataPaymentMethods.DEBIT,\n RichDataPaymentMethods.DINERS_CLUB,\n RichDataPaymentMethods.DISCOVER,\n RichDataPaymentMethods.MASTERCARD,\n RichDataPaymentMethods.PAYPAL,\n RichDataPaymentMethods.SAMSUNG_PAY,\n RichDataPaymentMethods.STORE_CARD,\n RichDataPaymentMethods.TRAVELERS_CHECK,\n RichDataPaymentMethods.VISA,\n ],\n CZ: [\n RichDataPaymentMethods.AMERICAN_EXPRESS,\n RichDataPaymentMethods.ANDROID_PAY,\n RichDataPaymentMethods.CASH,\n RichDataPaymentMethods.CHECK,\n RichDataPaymentMethods.DINERS_CLUB,\n RichDataPaymentMethods.DISCOVER,\n RichDataPaymentMethods.MASTERCARD,\n RichDataPaymentMethods.PAYPAL,\n RichDataPaymentMethods.TRAVELERS_CHECK,\n RichDataPaymentMethods.VISA,\n RichDataPaymentMethods.CCS,\n RichDataPaymentMethods.SODEXO,\n RichDataPaymentMethods.GOPAY,\n RichDataPaymentMethods.V_PAY,\n RichDataPaymentMethods.FINANCING,\n RichDataPaymentMethods.INVOICE,\n RichDataPaymentMethods.PAYSEC,\n RichDataPaymentMethods.BITCOIN,\n ],\n};\n\nconst BusinessOperationMethods = [\n ClosedStatus.UNSPECIFIED,\n ClosedStatus.OPEN,\n ClosedStatus.LIMITED,\n ClosedStatus.TEMPORARY,\n ClosedStatus.PERMANENT,\n];\n\nconst SellingMethodsAvailability = [IsAvailable.UNSET, IsAvailable.YES, IsAvailable.NO];\n\nexport interface TimezoneOption {\n timezone: string;\n display: string;\n}\n\nconst formTabs: Record = {\n basicInfoForm: BusinessProfileTab.Primary,\n serviceAreaForm: BusinessProfileTab.Primary,\n phoneForm: BusinessProfileTab.Primary,\n serviceAvailabilityForm: BusinessProfileTab.Primary,\n geoControl: BusinessProfileTab.Primary,\n additionalInfoForm: BusinessProfileTab.Primary,\n hoursForm: BusinessProfileTab.Hours,\n businessHoursForm: BusinessProfileTab.Hours,\n businessPagesForm: BusinessProfileTab.Social,\n blogForm: BusinessProfileTab.Social,\n businessDescriptionsForm: BusinessProfileTab.Descriptions,\n personalInformationForm: BusinessProfileTab.Professional,\n practiceInformationForm: BusinessProfileTab.Professional,\n qualificationsAndExperienceForm: BusinessProfileTab.Professional,\n additionalProfessionalInfoForm: BusinessProfileTab.Professional,\n timeZoneControl: BusinessProfileTab.Primary,\n googleAttributesForm: BusinessProfileTab.Attributes,\n bingAttributesForm: BusinessProfileTab.Attributes,\n};\n\nconst isProviderOptions = {\n [HealthCareProfessionalInformationIsProvider.IsProviderTrue]: 'PRACTITIONER',\n [HealthCareProfessionalInformationIsProvider.IsProviderFalse]: 'CLINIC',\n};\n\n@Component({\n selector: 'business-profile',\n templateUrl: './business-profile.component.html',\n styleUrls: ['./business-profile.component.scss'],\n providers: [FormatPhoneNumberPipe],\n})\nexport class BusinessProfileComponent implements OnInit, OnChanges, OnDestroy {\n @Input() accountGroupId: string;\n @Input() productNames: any;\n @Input() editDisabled = false;\n @Input() maxShareOfVoiceKeywords = 3;\n @Input() maxCompetitors = 3;\n @Input() enabledTabs: BusinessProfileTab[] = [\n BusinessProfileTab.Primary,\n BusinessProfileTab.Hours,\n BusinessProfileTab.Social,\n BusinessProfileTab.Professional,\n BusinessProfileTab.Descriptions,\n BusinessProfileTab.Images,\n BusinessProfileTab.Attributes,\n ];\n @Input() markets: Market[];\n @Input() tags: Option[];\n @Input() hiddenFields?: HiddenField[];\n @Input() auxiliaryDataAdminURL = '';\n @Input() tabBackground: 'default' | 'lighter-grey' = 'default';\n\n @Output() saved = new EventEmitter();\n\n @ViewChild('auxiliarydatatable')\n private auxiliaryDataTable: AuxiliaryDataTableComponent;\n auxiliaryDataObjectType: ObjectType = 'business';\n subscriptions: Subscription[] = [];\n visibleConditionalFields: string[] = [];\n\n CUSTOM_ERROR_MESSAGES = {\n lengthOfRepeatedField: function (error: any): string {\n return this.translateService.instant('FRONTEND.BUSINESSES.LENGTH_OF_REPEATED_FIELD_ERROR', {\n maxLength: error.maxLength,\n fieldName: this.translateService.instant(error.friendlyName),\n });\n }.bind(this),\n };\n\n accountGroupId$$ = new BehaviorSubject(null);\n profileLoading$$ = new ReplaySubject();\n loading$ = this.profileLoading$$.asObservable();\n\n listingProfile: ListingProfile;\n\n mapZoomLevel: number;\n inferredMapBounds: google.maps.LatLngBoundsLiteral;\n\n businessProfileTab = BusinessProfileTab;\n activeTab: BusinessProfileTab;\n AISuggestionFeature$: Observable;\n\n public salespeople: Salesperson[];\n public additionalSalespeople: Option[];\n public addressData: Address;\n public addressFormDirty = false;\n\n // TODO set up those method once backend update\n // !-- Service Availability\n public businessOperationMethods$: Observable;\n public ecommerceOnly$: Observable;\n\n // TODO: The following choices will result in eventual duplication of list between here and microservice\n // TODO: Perhaps these could be requested from the microservice, or be accessed from SDK?\n public genders$: Observable;\n public paymentMethods$: Observable;\n public standardizedTitles$: Observable;\n public professionalCredentials = [\n 'ACSW',\n 'AGNP-C',\n 'ANP',\n 'ANP-C',\n 'AP',\n 'APN',\n 'APR',\n 'APRN',\n 'ARNP',\n 'AUD',\n 'BCBA',\n 'CCC/SLP',\n 'CCSW',\n 'CERT MDT',\n 'CFNP',\n 'CLTC',\n 'CMP',\n 'CNA',\n 'CNM',\n 'CNP',\n 'CNS',\n 'CPNP',\n 'CRNA',\n 'CRNP',\n 'CSW',\n 'DC',\n 'DCSW',\n 'DDS',\n 'DMD',\n 'DNP',\n 'DO',\n 'DOT',\n 'DOM',\n 'DPM',\n 'DPT',\n 'FAAP',\n 'FACC',\n 'FACOG',\n 'FACOS',\n 'FACP',\n 'FACS',\n 'FCCP',\n 'FCOG',\n 'FCOS',\n 'FICS',\n 'FNP',\n 'FNPC',\n 'FNP-MC',\n 'FPN',\n 'FPNP',\n 'IBCLC',\n 'ITDS',\n 'LAC',\n 'LADC',\n 'LCS',\n 'LCSW',\n 'LGSW',\n 'LICSW',\n 'LISW',\n 'LMBT',\n 'LMFT',\n 'LMH',\n 'LMHC',\n 'LMHP',\n 'LMSW',\n 'LMT',\n 'LP',\n 'LPC',\n 'LPCC',\n 'LPN',\n 'LPT',\n 'LSW',\n 'LVN',\n 'MBBS',\n 'MBCHB',\n 'MD',\n 'MDT',\n 'MFT',\n 'MHP',\n 'MHS',\n 'MHSP',\n 'MMFT',\n 'MPH',\n 'MSN',\n 'MSW',\n 'MT',\n 'NCC',\n 'NCTM',\n 'NCTMB',\n 'ND',\n 'NNP',\n 'NP',\n 'NP-C',\n 'OD',\n 'OT',\n 'OTA',\n 'OTR',\n 'PA',\n 'PAC',\n 'PFNP',\n 'PHARMD',\n 'PHD',\n 'PMHN',\n 'PMHNP',\n 'PNP',\n 'PRN',\n 'PSY',\n 'PSYD',\n 'PT',\n 'RD',\n 'RDH',\n 'RDH/DH',\n 'RN',\n 'RNC',\n 'RNP',\n 'RPH',\n 'RPT',\n 'SLP',\n 'SPTH',\n 'SW',\n 'WHNP',\n ];\n public moreHoursTypes$ = this.accountGroupId$.pipe(\n switchMap((accountGroupId: string) =>\n this.listingProfileApiService\n .getMoreHoursTypes(\n new GetMoreHoursTypesRequest({\n businessId: accountGroupId,\n languageCode: this.translateService.currentLang || this.translateService.defaultLang,\n }),\n )\n .pipe(\n map((response) => response.moreHoursTypes),\n shareReplay(1),\n ),\n ),\n );\n\n public isProviderOptions$: Observable;\n\n public isAdditionalSalespeopleInputVisible = false;\n\n public attributesMetadata$ = this.accountGroupId$.pipe(\n switchMap((accountGroupId: string) =>\n this.listingProfileApiService\n .getAttributeMetadata(\n new GetAttributeMetadataRequest({\n businessId: accountGroupId,\n languageCode: this.translateService.currentLang || this.translateService.defaultLang,\n }),\n )\n .pipe(\n map((response) => response.attributeMedata),\n shareReplay(1),\n ),\n ),\n );\n\n listingProfile$: Observable = this.accountGroupId$.pipe(\n tap(() => this.profileLoading$$.next(true)),\n switchMap((accountGroupId: string) =>\n this.listingProfileService.get(\n accountGroupId,\n new ProjectionFilter({\n externalIdentifiers: true,\n socialUrls: true,\n hoursOfOperation: true,\n richData: true,\n napData: true,\n businessHours: true,\n googleAttributes: true,\n googleAttributesMetadata: true,\n bingAttributes: true,\n bingAttributesMetadata: true,\n legacyProductDetails: true,\n }),\n ),\n ),\n shareReplay(1),\n );\n\n googleAttributesMetadata$ = this.attributesMetadata$.pipe(\n map((am) => {\n if (am) {\n const gAttributeMetadata = am.find((a) => a.vendorId === 'google');\n return gAttributeMetadata?.googleAttributeMetadata?.googleAttributeMetadata;\n }\n }),\n );\n\n googleAttributes$ = this.listingProfile$.pipe(map((ag) => ag.googleAttributes));\n\n bingAttributesMetadata$ = this.attributesMetadata$.pipe(\n map((am) => {\n if (am) {\n const bAttributeMetadata = am.find((a) => a.vendorId === 'bing');\n return bAttributeMetadata?.bingAttributeMetadata?.bingAttributeMetadata;\n }\n }),\n );\n\n bingAttributes$ = this.listingProfile$.pipe(map((ag) => ag.bingAttributes));\n\n partnerId$: Observable = this.listingProfile$.pipe(\n map((accountGroup) => accountGroup?.externalIdentifiers?.partnerId),\n shareReplay(1),\n );\n\n // the subset of operational statuses implying a closure or limitation of services\n public closedStatuses = [ClosedStatus.LIMITED, ClosedStatus.TEMPORARY, ClosedStatus.PERMANENT];\n\n public partnersLongDescriptionLength = {\n MTCZ: 5000,\n BLS: 1000,\n };\n public longDescriptionLength = 750;\n\n public basicInfoForm: UntypedFormGroup;\n public serviceAreaForm: UntypedFormGroup;\n public serviceAreaToggle: UntypedFormControl;\n public phoneForm: UntypedFormGroup;\n public additionalInfoForm: UntypedFormGroup;\n public hoursForm: UntypedFormControl;\n public businessHoursForm: UntypedFormControl;\n public specialHoursForm: UntypedFormControl;\n public moreHoursForm: UntypedFormGroup;\n public businessPagesForm: UntypedFormGroup;\n public blogForm: UntypedFormGroup;\n public businessDescriptionsForm: UntypedFormGroup;\n public personalInformationForm: UntypedFormGroup;\n public serviceAvailabilityForm: UntypedFormGroup;\n public qualificationsAndExperienceForm: UntypedFormGroup;\n public additionalProfessionalInfoForm: UntypedFormGroup;\n public practiceInformationForm: UntypedFormGroup;\n public geoControl: UntypedFormControl;\n public adminForm: UntypedFormGroup;\n public salesForm: UntypedFormGroup;\n public timezoneControl: UntypedFormControl;\n public googleAttributesForm: UntypedFormGroup;\n public bingAttributesForm: UntypedFormGroup;\n public accountGroupForm: UntypedFormGroup;\n public availableDoctorDotComCategories: Observable;\n public currentDoctorDotComCategories: DoctorDotComCategory[];\n\n public hasProfessionalCategory = false;\n public phoneNumberItemFactory: ItemFactory = (): UntypedFormControl =>\n this.fb.control(this.formStateWithDisabled(''), phoneValidator(this.getCountryCode.bind(this), false));\n\n private readonly countryChanges = inject(COUNTRY_CONTROL_TOKEN).valueChanges.pipe(\n filter((country): country is CountryOption => typeof country === 'object'),\n map((country) => country.code),\n );\n private mapsLoaded$: Observable;\n\n constructor(\n private listingProfileService: ListingProfileService,\n private listingProfileApiService: ListingProfileApiService,\n private fb: UntypedFormBuilder,\n private snackbar: MatSnackBar,\n @Inject(SalespersonService) private readonly salespersonService: SalesSdk,\n private zone: NgZone,\n private formatPhoneNumber: FormatPhoneNumberPipe,\n private featureFlagService: FeatureFlagService,\n private translateService: TranslateService,\n private geocoder: MapGeocoder,\n private productAnalyticsService: ProductAnalyticsService,\n private lightbox: VaFullscreenLightboxService,\n private suggestionService: SuggestionApiService,\n private listingProductsApiService: ListingProductsApiService,\n private readonly destroyRef: DestroyRef,\n private httpClient: HttpClient,\n ) {\n this.mapsLoaded$ = this.httpClient\n ?.jsonp(\n 'https://maps.googleapis.com/maps/api/js?key=AIzaSyDxrR1bk6d2TRa4orIDF05H3UlhvIXRRC0&libraries=places',\n 'callback',\n )\n .pipe(\n map(() => true),\n retry(1),\n shareReplay({ refCount: true, bufferSize: 1 }),\n catchError(() => of(false)),\n );\n }\n\n get accountGroupId$(): Observable {\n return this.accountGroupId$$.pipe(skipWhile((val) => val === null));\n }\n\n get rmProductName(): string {\n return (this.productNames || {}).RM || 'Reputation Management';\n }\n\n ngOnChanges(changes: SimpleChanges): void {\n if (\n changes['accountGroupId'] &&\n changes['accountGroupId'].currentValue !== changes['accountGroupId'].previousValue\n ) {\n this.accountGroupId$$.next(this.accountGroupId);\n }\n }\n\n private createForm(): void {\n this.geoControl = this.fb.control(this.formStateWithDisabled());\n this.serviceAreaForm = this.fb.group(\n {\n businessType: [this.formStateWithDisabled(0), Validators.min(1)],\n places: [this.formStateWithDisabled([]), Validators.required],\n },\n this.formStateWithDisabled(undefined),\n );\n this.serviceAreaToggle = this.fb.control(this.formStateWithDisabled());\n this.basicInfoForm = this.fb.group({\n businessName: [\n this.formStateWithDisabled(''),\n [Validators.required, whitespaceValidator(), nameCharacterValidator()],\n ],\n commonBusinessNames: this.fb.array([[this.formStateWithDisabled('')]], Validators.maxLength(3)),\n country: [this.formStateWithDisabled('')],\n website: [this.formStateWithDisabled(''), urlValidator],\n email: [this.formStateWithDisabled(''), emailValidator],\n primaryBusinessCategory: [this.formStateWithDisabled([]), Validators.required],\n businessCategories: [this.formStateWithDisabled([])],\n });\n\n this.phoneForm = this.fb.group({\n workNumbers: this.fb.array(\n [this.phoneNumberItemFactory()],\n // We don't require phone number on the apis so requiring a phone number on edit forces them to add\n // one after the fact which they can't do\n Validators.maxLength(6),\n ),\n faxNumber: [this.formStateWithDisabled('')],\n cellNumber: [this.formStateWithDisabled(''), phoneValidator(this.getCountryCode.bind(this), false)],\n callTrackingNumbers: this.fb.array([this.phoneNumberItemFactory()], Validators.maxLength(3)),\n tollFreeNumber: [this.formStateWithDisabled(''), phoneValidator(this.getCountryCode.bind(this), false)],\n });\n\n this.additionalInfoForm = this.fb.group({\n paymentMethods: [\n this.formStateWithDisabled([]),\n paymentMethodValidator(this.getCountryCode.bind(this), this.translateService),\n ],\n servicesOffered: this.fb.array(\n [[this.formStateWithDisabled('')]],\n Validators.compose([\n Validators.maxLength(15),\n totalLengthOfRepeatedFieldValidator(256, 'FRONTEND.BUSINESSES.SERVICES_OFFERED'),\n ]),\n ),\n brandsCarried: this.fb.array(\n [[this.formStateWithDisabled('')]],\n Validators.compose([\n Validators.maxLength(15),\n totalLengthOfRepeatedFieldValidator(256, 'FRONTEND.BUSINESSES.BRANDS_CARRIED'),\n ]),\n ),\n landmark: [this.formStateWithDisabled('')],\n bookingUrl: [this.formStateWithDisabled('')],\n ico: [this.formStateWithDisabled('')],\n });\n\n this.hoursForm = this.fb.control(this.formStateWithDisabled([]));\n this.businessHoursForm = this.fb.control(this.formStateWithDisabled([]));\n this.moreHoursForm = this.fb.group([]);\n this.specialHoursForm = this.fb.control(this.formStateWithDisabled());\n\n this.businessPagesForm = this.fb.group({\n facebookUrl: [this.formStateWithDisabled(''), urlValidator],\n foursquareUrl: [this.formStateWithDisabled(''), urlValidator],\n linkedInUrl: [this.formStateWithDisabled(''), urlValidator],\n twitterUrl: [this.formStateWithDisabled(''), urlValidator],\n pinterestUrl: [this.formStateWithDisabled(''), urlValidator],\n instagramUrl: [this.formStateWithDisabled(''), urlValidator],\n youTubeUrl: [this.formStateWithDisabled(''), urlValidator],\n });\n this.blogForm = this.fb.group({\n blogOrRssFeedUrl: [this.formStateWithDisabled('')],\n });\n\n this.businessDescriptionsForm = this.fb.group({\n shortDescription: [this.formStateWithDisabled(''), Validators.maxLength(200)],\n longDescription: [this.formStateWithDisabled(''), Validators.maxLength(this.longDescriptionLength)],\n });\n\n this.personalInformationForm = this.fb.group({\n standardizedTitle: [this.formStateWithDisabled()],\n firstName: [this.formStateWithDisabled('')],\n middleInitials: [this.formStateWithDisabled('')],\n lastName: [this.formStateWithDisabled('')],\n professionalCredentials: [this.formStateWithDisabled([])],\n gender: [this.formStateWithDisabled()],\n emailAddress: [this.formStateWithDisabled(''), emailValidator],\n });\n\n this.serviceAvailabilityForm = this.fb.group({\n ecommerceOnly: [this.formStateWithDisabled()],\n closedStatus: [this.formStateWithDisabled()],\n reopeningDate: [this.formStateWithDisabled()],\n });\n\n this.qualificationsAndExperienceForm = this.fb.group({\n doctorDotComCategories: [this.formStateWithDisabled([])],\n educations: this.fb.array(\n [[this.formStateWithDisabled('')]],\n Validators.compose([\n Validators.maxLength(15),\n totalLengthOfRepeatedFieldValidator(256, 'FRONTEND.BUSINESSES.QUALIFICATIONS_EXPERIENCE.EDUCATION'),\n ]),\n ),\n specialties: this.fb.array(\n [[this.formStateWithDisabled('')]],\n Validators.compose([\n Validators.maxLength(15),\n totalLengthOfRepeatedFieldValidator(256, 'FRONTEND.BUSINESSES.QUALIFICATIONS_EXPERIENCE.SPECIALTIES'),\n ]),\n ),\n residencies: this.fb.array(\n [[this.formStateWithDisabled('')]],\n Validators.compose([\n Validators.maxLength(15),\n totalLengthOfRepeatedFieldValidator(256, 'FRONTEND.BUSINESSES.QUALIFICATIONS_EXPERIENCE.RESIDENCIES'),\n ]),\n ),\n fellowships: this.fb.array(\n [[this.formStateWithDisabled('')]],\n Validators.compose([\n Validators.maxLength(15),\n totalLengthOfRepeatedFieldValidator(256, 'FRONTEND.BUSINESSES.QUALIFICATIONS_EXPERIENCE.FELLOWSHIPS'),\n ]),\n ),\n nationalProviderIdentifier: [this.formStateWithDisabled('')],\n medicalLicenseNumber: [this.formStateWithDisabled('')],\n stateLicense: [this.formStateWithDisabled('')],\n });\n\n this.additionalProfessionalInfoForm = this.fb.group({\n acceptingPatients: [this.formStateWithDisabled(null)],\n insurancesAccepted: this.fb.array(\n [[this.formStateWithDisabled('')]],\n Validators.compose([\n Validators.maxLength(15),\n totalLengthOfRepeatedFieldValidator(256, 'FRONTEND.BUSINESSES.INSURANCES_ACCEPTED'),\n ]),\n ),\n });\n this.practiceInformationForm = this.fb.group({\n firmClinicOfficeName: [this.formStateWithDisabled('')],\n isProvider: [this.formStateWithDisabled()],\n hospitalAffiliations: this.fb.array(\n [[this.formStateWithDisabled('')]],\n Validators.compose([\n Validators.maxLength(15),\n totalLengthOfRepeatedFieldValidator(256, 'FRONTEND.BUSINESSES.HOSPITAL_AFFILIATIONS'),\n ]),\n ),\n });\n\n this.googleAttributesForm = this.fb.group({});\n\n this.bingAttributesForm = this.fb.group({});\n\n this.salesForm = this.fb.group({});\n this.adminForm = this.fb.group({});\n\n if (this.isTabEnabled(BusinessProfileTab.Administration)) {\n this.salesForm = this.fb.group(\n {\n market: [this.formStateWithDisabled(''), Validators.required],\n salespersonId: [this.formStateWithDisabled('')],\n additionalSalespersonIds: [this.formStateWithDisabled([])],\n },\n {\n validators: Validators.compose([\n primaryIsNotInAdditionalSalespeople(\n (value) => this.salespeople.find((salesperson) => salesperson.salespersonId === value).fullName,\n ),\n primaryIsSelectedWhenHavingAdditionalSalespeople(),\n ]),\n },\n );\n this.adminForm = this.fb.group({\n customerIdentifier: [{ value: '' }],\n tags: [this.formStateWithDisabled([])],\n notes: [this.formStateWithDisabled('')],\n });\n }\n\n this.timezoneControl = this.fb.control(this.formStateWithDisabled({}));\n\n this.accountGroupForm = this.fb.group({\n basicInfoForm: this.basicInfoForm,\n serviceAreaForm: this.serviceAreaForm,\n serviceAreaToggle: this.serviceAreaToggle,\n phoneForm: this.phoneForm,\n additionalInfoForm: this.additionalInfoForm,\n hoursForm: this.hoursForm,\n businessHoursForm: this.businessHoursForm,\n businessPagesForm: this.businessPagesForm,\n blogForm: this.blogForm,\n businessDescriptionsForm: this.businessDescriptionsForm,\n personalInformationForm: this.personalInformationForm,\n serviceAvailabilityForm: this.serviceAvailabilityForm,\n qualificationsAndExperienceForm: this.qualificationsAndExperienceForm,\n additionalProfessionalInfoForm: this.additionalProfessionalInfoForm,\n practiceInformationForm: this.practiceInformationForm,\n geoControl: this.geoControl,\n adminForm: this.adminForm,\n timeZoneControl: this.timezoneControl,\n googleAttributesForm: this.googleAttributesForm,\n bingAttributesForm: this.bingAttributesForm,\n salesForm: this.salesForm,\n });\n\n this.countryChanges.subscribe(() => {\n const paymentMethodsField = this.additionalInfoForm.get('paymentMethods');\n paymentMethodsField.updateValueAndValidity();\n });\n }\n\n private loadFormValues(listingProfile: ListingProfile): void {\n if (!listingProfile.legacyProductDetails) {\n listingProfile.legacyProductDetails = createDefaultLegacyProductDetails();\n }\n\n const commonBusinessNames = listingProfile.legacyProductDetails.commonName || [''];\n this.setControlsForFormArray(\n this.basicInfoForm.get('commonBusinessNames') as UntypedFormArray,\n commonBusinessNames.length,\n );\n const ids = listingProfile.externalIdentifiers?.vCategoryIds || [];\n const primaryCategory = ids.length > 0 ? [ids[0]] : [];\n const businessCategories = ids.length > 0 ? ids.slice(1) : [];\n\n this.basicInfoForm.patchValue({\n businessName: listingProfile.napData.companyName,\n commonBusinessNames: commonBusinessNames,\n country: listingProfile.napData.country,\n website: listingProfile.napData.website,\n email: listingProfile.richData.email,\n businessCategories: businessCategories,\n primaryBusinessCategory: primaryCategory,\n });\n\n this.setControlsForFormArray(\n this.serviceAreaForm.get('places') as UntypedFormArray,\n listingProfile.napData.serviceArea?.places?.length || 0,\n );\n\n this.serviceAreaToggle.patchValue(listingProfile.napData.serviceAreaBusiness);\n this.serviceAreaToggle.markAsPristine();\n\n this.serviceAreaForm.setValue({\n businessType: listingProfile.napData.serviceArea?.businessType || 0,\n places: listingProfile.napData.serviceArea?.places || [],\n });\n if (!listingProfile.napData.serviceArea) {\n this.serviceAreaForm.disable();\n }\n\n this.addressData = {\n company: listingProfile.napData.companyName,\n address1: listingProfile.napData.address,\n address2: listingProfile.napData.address2,\n city: listingProfile.napData.city,\n country: listingProfile.napData.country,\n province: listingProfile.napData.state,\n zip: listingProfile.napData.zip,\n };\n this.geoControl.setValue(listingProfile.napData.location);\n let workNumbers: string[] = listingProfile.napData.workNumber || [''];\n workNumbers = workNumbers.map((number) =>\n this.formatPhoneNumber.transformForBusinessProfile(number, listingProfile.napData.country),\n );\n const callTrackingNumbers = listingProfile.napData.callTrackingNumber || [''];\n\n this.setControlsForFormArray(\n this.phoneForm.get('workNumbers') as UntypedFormArray,\n workNumbers.length,\n this.phoneNumberItemFactory.bind(this),\n );\n this.setControlsForFormArray(\n this.phoneForm.get('callTrackingNumbers') as UntypedFormArray,\n callTrackingNumbers.length,\n );\n this.phoneForm.patchValue({\n workNumbers: workNumbers,\n faxNumber: listingProfile.richData.faxNumber,\n cellNumber: this.formatPhoneNumber.transformForBusinessProfile(\n listingProfile.richData.cellNumber || '',\n listingProfile.napData.country,\n ),\n callTrackingNumbers: callTrackingNumbers,\n tollFreeNumber: listingProfile.richData.tollFreeNumber,\n });\n\n const servicesOffered = listingProfile.richData.servicesOffered || [''];\n const brandsCarried = listingProfile.richData.brandsCarried || [''];\n\n this.setControlsForFormArray(\n this.additionalInfoForm.get('servicesOffered') as UntypedFormArray,\n servicesOffered.length,\n );\n this.setControlsForFormArray(\n this.additionalInfoForm.get('brandsCarried') as UntypedFormArray,\n brandsCarried.length,\n );\n this.additionalInfoForm.patchValue({\n paymentMethods: listingProfile.richData.paymentMethods,\n servicesOffered: servicesOffered,\n brandsCarried: brandsCarried,\n landmark: listingProfile.richData.landmark,\n bookingUrl: listingProfile.richData.bookingUrl,\n });\n\n if (!!listingProfile.richData.conditionalFields && listingProfile.richData.conditionalFields?.length > 0) {\n const richDataCf = listingProfile.richData.conditionalFields;\n const valuesToPatch = {};\n richDataCf.forEach((cf) => {\n valuesToPatch[cf.id] = cf.value;\n this.visibleConditionalFields.push(cf.id);\n });\n\n this.additionalInfoForm.patchValue(valuesToPatch);\n }\n\n this.hoursForm.setValue(listingProfile.hoursOfOperation.hoursOfOperation || []);\n\n const generalHours = listingProfile.businessHours?.find((hours) => hours.hoursTypeId === 'GENERAL');\n const mergedHours = MergeHours(generalHours?.regularHours || []);\n\n this.businessHoursForm.setValue(mergedHours);\n this.specialHoursForm.setValue(generalHours?.specialHours || []);\n\n listingProfile.businessHours\n ?.filter((hours) => hours.hoursTypeId !== 'GENERAL')\n .forEach((hours) => {\n this.moreHoursForm.addControl(\n hours.hoursTypeId,\n this.fb.control(this.formStateWithDisabled(hours.regularHours || [])),\n );\n });\n\n if (listingProfile.socialUrls) {\n this.businessPagesForm.patchValue({\n facebookUrl: listingProfile.socialUrls.facebookUrl,\n foursquareUrl: listingProfile.socialUrls.foursquareUrl,\n linkedInUrl: listingProfile.socialUrls.linkedinUrl,\n twitterUrl: listingProfile.socialUrls.twitterUrl,\n pinterestUrl: listingProfile.socialUrls.pinterestUrl,\n instagramUrl: listingProfile.socialUrls.instagramUrl,\n youTubeUrl: listingProfile.socialUrls.youtubeUrl,\n });\n this.blogForm.patchValue({\n blogOrRssFeedUrl: listingProfile.socialUrls.rssUrl,\n });\n }\n\n const partnerId = listingProfile.externalIdentifiers.partnerId;\n if (partnerId in this.partnersLongDescriptionLength) {\n this.longDescriptionLength = this.partnersLongDescriptionLength[partnerId];\n }\n this.businessDescriptionsForm.controls.longDescription.setValidators(\n Validators.maxLength(this.longDescriptionLength),\n );\n\n this.businessDescriptionsForm.patchValue({\n shortDescription: listingProfile.richData.shortDescription,\n longDescription: listingProfile.richData.description,\n });\n\n if (listingProfile.richData?.serviceAvailability) {\n this.serviceAvailabilityForm.patchValue({\n ecommerceOnly: listingProfile.richData?.serviceAvailability?.ecommerceOnly || null,\n closedStatus: listingProfile.richData?.serviceAvailability?.closedStatus || null,\n reopeningDate: listingProfile.richData?.serviceAvailability?.reopeningDate || null,\n });\n }\n\n if (listingProfile.richData.healthCareProfessionalInformation) {\n this.personalInformationForm.patchValue({\n standardizedTitle: listingProfile.richData?.healthCareProfessionalInformation?.standardizedTitle || '',\n firstName: listingProfile.richData?.healthCareProfessionalInformation?.firstName || '',\n middleInitials: listingProfile.richData?.healthCareProfessionalInformation?.initials || '',\n lastName: listingProfile.richData?.healthCareProfessionalInformation?.lastName || '',\n professionalCredentials: listingProfile.richData?.healthCareProfessionalInformation?.professionalCredential || [\n '',\n ],\n gender:\n listingProfile.richData?.healthCareProfessionalInformation?.gender ||\n HealthCareProfessionalInformationGender.NotSpecified,\n emailAddress: listingProfile.richData?.healthCareProfessionalInformation?.email || '',\n });\n\n const educations = listingProfile.richData?.healthCareProfessionalInformation?.school || [''];\n const specialties = listingProfile.richData?.healthCareProfessionalInformation?.specialty || [''];\n const residencies = listingProfile.richData?.healthCareProfessionalInformation?.residency || [''];\n const fellowships = listingProfile.richData?.healthCareProfessionalInformation?.fellowship || [''];\n\n this.setControlsForFormArray(\n this.qualificationsAndExperienceForm.get('educations') as UntypedFormArray,\n educations.length,\n );\n this.setControlsForFormArray(\n this.qualificationsAndExperienceForm.get('specialties') as UntypedFormArray,\n specialties.length,\n );\n this.setControlsForFormArray(\n this.qualificationsAndExperienceForm.get('residencies') as UntypedFormArray,\n residencies.length,\n );\n this.setControlsForFormArray(\n this.qualificationsAndExperienceForm.get('fellowships') as UntypedFormArray,\n fellowships.length,\n );\n this.setControlsForFormArray(\n this.practiceInformationForm.get('hospitalAffiliations') as UntypedFormArray,\n listingProfile.richData?.healthCareProfessionalInformation?.hospitalAffiliations?.length,\n );\n this.setControlsForFormArray(\n this.qualificationsAndExperienceForm.get('doctorDotComCategories') as UntypedFormArray,\n listingProfile.richData?.healthCareProfessionalInformation?.doctorDotComCategories?.length,\n );\n\n this.qualificationsAndExperienceForm.patchValue({\n educations: educations,\n specialties: specialties,\n residencies: residencies,\n fellowships: fellowships,\n nationalProviderIdentifier:\n listingProfile.richData?.healthCareProfessionalInformation?.nationalProviderIdentifier || '',\n medicalLicenseNumber: listingProfile.richData?.healthCareProfessionalInformation?.medicalLicenseNumber || '',\n stateLicense: listingProfile.richData?.healthCareProfessionalInformation?.stateLicense || '',\n doctorDotComCategories:\n listingProfile.richData?.healthCareProfessionalInformation?.doctorDotComCategories || [],\n });\n const insurancesAccepted = listingProfile.richData?.healthCareProfessionalInformation?.insurancesAccepted || [''];\n this.setControlsForFormArray(\n this.additionalProfessionalInfoForm.get('insurancesAccepted') as UntypedFormArray,\n insurancesAccepted.length,\n );\n this.additionalProfessionalInfoForm.patchValue({\n acceptingPatients: listingProfile.richData?.healthCareProfessionalInformation?.isTakingPatients,\n insurancesAccepted: insurancesAccepted,\n });\n this.practiceInformationForm.patchValue({\n firmClinicOfficeName: listingProfile.richData?.healthCareProfessionalInformation?.office || '',\n isProvider:\n listingProfile.richData?.healthCareProfessionalInformation?.isProvider ||\n HealthCareProfessionalInformationIsProvider.IsProviderNotSpecified,\n hospitalAffiliations: listingProfile.richData?.healthCareProfessionalInformation?.hospitalAffiliations || [''],\n });\n }\n if (this.isTabEnabled(BusinessProfileTab.Administration)) {\n this.salesForm.patchValue({\n market: listingProfile.externalIdentifiers.marketId,\n salespersonId: listingProfile.externalIdentifiers.salesPersonId,\n additionalSalespersonIds: listingProfile.externalIdentifiers.additionalSalesPersonIds,\n });\n if (\n listingProfile.externalIdentifiers.additionalSalesPersonIds &&\n listingProfile.externalIdentifiers.additionalSalesPersonIds.length > 0\n ) {\n this.isAdditionalSalespeopleInputVisible = true;\n }\n this.adminForm.patchValue({\n customerIdentifier: listingProfile.externalIdentifiers.customerIdentifier,\n tags: listingProfile.externalIdentifiers.tags,\n notes: listingProfile.legacyProductDetails.adminNotes,\n });\n }\n\n this.profileLoading$$.next(false);\n }\n\n getGoogleCheckboxValues(formGroup: UntypedFormGroup, metaAttribute: GoogleAttributeMetaDataInterface): string[] {\n const values: string[] = [];\n\n Object.keys(formGroup.controls).forEach((key) => {\n if (formGroup.controls[key].getRawValue() === true) {\n const indexOfKeyInValueDisplayName = metaAttribute?.valueDisplayNames.findIndex((d) => d === key);\n values.push(metaAttribute?.values[indexOfKeyInValueDisplayName]);\n }\n });\n\n return values;\n }\n\n getBingCheckboxValues(formGroup: UntypedFormGroup, metaAttribute: BingAttributeMetaDataInterface): string[] {\n const values: string[] = [];\n\n Object.keys(formGroup.controls).forEach((key) => {\n if (formGroup.controls[key].getRawValue() === true) {\n const indexOfKeyInValueDisplayName = metaAttribute?.valueDisplayNames.findIndex((d) => d === key);\n values.push(metaAttribute?.values[indexOfKeyInValueDisplayName]);\n }\n });\n\n return values;\n }\n\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n getDoctorDotComCategories(accountGroup: ListingProfile) {\n return this.listingProductsApiService.getDoctorDotComCategories(new GetDoctorDotComCategoriesRequest({}));\n }\n\n getValidCategoryLength(): number {\n return (\n this.accountGroupForm?.get('basicInfoForm.primaryBusinessCategory')?.value?.filter((c) => c !== 'not_found')\n ?.length || 0\n );\n }\n\n getBingAttributesToSubmit(\n duHastMe: UntypedFormGroup,\n bingAttributeMetaData: BingAttributeMetaDataInterface[],\n ): BingAttribute[] {\n if (!bingAttributeMetaData) {\n bingAttributeMetaData = [];\n }\n const attribs: BingAttribute[] = [];\n\n bingAttributeMetaData.sort((a, b) => a.displayName.localeCompare(b.displayName));\n const sortOrder = bingAttributeMetaData.map((md) => md.parent);\n\n Object.keys(duHastMe.controls).forEach((key) => {\n let value = duHastMe.controls[key].value;\n const metaAttribute = bingAttributeMetaData[bingAttributeMetaData.findIndex((d) => d.parent === key)];\n\n switch (metaAttribute.valueType) {\n case AttributesValueType.REPEATED_ENUM: {\n const form = duHastMe.controls[key] as UntypedFormGroup;\n value = this.getGoogleCheckboxValues(form, metaAttribute);\n break;\n }\n case AttributesValueType.ENUM: {\n const ctrl = duHastMe.controls[key] as UntypedFormControl;\n value = metaAttribute?.values[metaAttribute.valueDisplayNames.findIndex((v) => v === ctrl.value)];\n break;\n }\n }\n\n const ba: BingAttribute = {\n name: key,\n value: value,\n toApiJson: () => ({}) as object,\n };\n attribs.push(ba);\n });\n\n const sortedAttribs = sortOrder.map((i) => attribs.find((j) => j.name === i)).filter(Boolean);\n\n return sortedAttribs;\n }\n\n isConditionalFieldVisible(cfId: string): boolean {\n return this.visibleConditionalFields.includes(cfId);\n }\n\n getGoogleAttributesToSubmit(\n duHastMe: UntypedFormGroup,\n googleAttributeMetaData: GoogleAttributeMetaDataInterface[],\n ): GoogleAttribute[] {\n if (!googleAttributeMetaData) {\n googleAttributeMetaData = [];\n }\n const attribs: GoogleAttribute[] = [];\n\n googleAttributeMetaData.sort((a, b) => a.displayName.localeCompare(b.displayName));\n const sortOrder = googleAttributeMetaData.map((md) => md.parent);\n\n Object.keys(duHastMe.controls).forEach((key) => {\n let value = duHastMe.controls[key].value;\n const metaAttribute = googleAttributeMetaData[googleAttributeMetaData.findIndex((d) => d.parent === key)];\n\n switch (metaAttribute.valueType) {\n case AttributesValueType.REPEATED_ENUM: {\n const form = duHastMe.controls[key] as UntypedFormGroup;\n value = this.getGoogleCheckboxValues(form, metaAttribute);\n break;\n }\n case AttributesValueType.ENUM: {\n const ctrl = duHastMe.controls[key] as UntypedFormControl;\n value = metaAttribute?.values[metaAttribute.valueDisplayNames.findIndex((v) => v === ctrl.value)];\n break;\n }\n default:\n }\n\n const ga: GoogleAttribute = {\n name: key,\n value: value,\n toApiJson: () => ({}) as object,\n };\n attribs.push(ga);\n });\n\n const sortedAttribs = sortOrder.map((i) => attribs.find((j) => j.name === i)).filter(Boolean);\n\n return sortedAttribs;\n }\n\n compareDoctorDotComCategories(category1: DoctorDotComCategory, category2: DoctorDotComCategory): boolean {\n return category1 && category2 ? category1.id === category2.id : category1 === category2;\n }\n\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n async onSubmit(arg): Promise {\n if (this.accountGroupForm.pristine && !this.addressFormDirty && this.auxiliaryDataTable?.formGroup.pristine) {\n this.snackbar.open(this.translateService.instant('FRONTEND.BUSINESSES.NO_CHANGES_TO_SAVE'), null, {\n duration: 3000,\n });\n return;\n }\n\n if (!this.accountGroupForm.valid || this.editDisabled) {\n this.activeTab = this.getFirstInvalidTab();\n this.snackbar.open(this.translateService.instant('FRONTEND.BUSINESSES.INVALID_SUBMISSION'), null, {\n duration: 3000,\n });\n return;\n }\n const accountGroup: any = {};\n Object.keys(this.accountGroupForm.controls).forEach((controlKey) => {\n const c = this.accountGroupForm.controls[controlKey];\n accountGroup[controlKey] = getChangedValues(c);\n });\n this.trackChangedForms(accountGroup);\n\n const operations = new UpdateOperations();\n\n const googleAttributeMetaData = await firstValueFrom(this.googleAttributesMetadata$);\n operations.addUpdateOperation(\n new GoogleAttributesUpdateOperation({\n googleAttribute: this.getGoogleAttributesToSubmit(this.googleAttributesForm, googleAttributeMetaData),\n }),\n );\n\n const bingAttributeMetaData = await firstValueFrom(this.bingAttributesMetadata$);\n operations.addUpdateOperation(\n new BingAttributesUpdateOperation({\n bingAttribute: this.getBingAttributesToSubmit(this.bingAttributesForm, bingAttributeMetaData),\n }),\n );\n\n const phones = accountGroup.phoneForm || {};\n const basicInfo = accountGroup.basicInfoForm || {};\n const address = accountGroup.basicInfoForm?.addressForm;\n\n if (\n basicInfo ||\n address ||\n accountGroup.serviceAreaToggle !== undefined ||\n accountGroup.serviceAreaForm ||\n accountGroup.timeZoneControl ||\n phones\n ) {\n operations.addUpdateOperation(\n new NapUpdateOperation({\n companyName: basicInfo.businessName,\n address: address?.address1,\n address2: address?.address2,\n city: address?.city,\n state: address?.province?.code || undefined,\n zip: address?.zip,\n country: address?.country?.code,\n serviceAreaBusiness: accountGroup.serviceAreaToggle,\n serviceArea: accountGroup.serviceAreaForm ? new ServiceArea(accountGroup.serviceAreaForm) : undefined,\n website: basicInfo.website,\n workNumber: phones.workNumbers,\n callTrackingNumber: phones.callTrackingNumbers,\n location: accountGroup.geoControl ? new Geo(accountGroup.geoControl) : undefined,\n timezone: accountGroup.timeZoneControl ? this.listingProfile.napData.timezone : undefined,\n }),\n );\n }\n\n const businessDescriptions = accountGroup.businessDescriptionsForm || {};\n\n const businessPages = accountGroup.businessPagesForm || {};\n const blog = accountGroup.blogForm || {};\n operations.addUpdateOperation(\n new SocialURLsUpdateOperation({\n linkedinUrl: businessPages.linkedInUrl,\n foursquareUrl: businessPages.foursquareUrl,\n twitterUrl: businessPages.twitterUrl,\n facebookUrl: businessPages.facebookUrl,\n rssUrl: blog.blogOrRssFeedUrl,\n youtubeUrl: businessPages.youTubeUrl,\n instagramUrl: businessPages.instagramUrl,\n pinterestUrl: businessPages.pinterestUrl,\n }),\n );\n\n // Healthcare data is a bit different -- if any of the fields changed we need to send everything due to\n // current field mask limitations\n let healthCareProfessionalInfo;\n const healthCareHasChanges =\n accountGroup.practiceInformationForm ||\n accountGroup.additionalProfessionalInfoForm ||\n accountGroup.qualificationsAndExperienceForm ||\n accountGroup.personalInformationForm;\n if (this.hasProfessionalCategory && healthCareHasChanges) {\n const practiceInformation = this.practiceInformationForm.value;\n const additionalProfessionalInfo = this.additionalProfessionalInfoForm.value;\n const qualificationsAndExperience = this.qualificationsAndExperienceForm.value;\n const personalInformation = this.personalInformationForm.value;\n healthCareProfessionalInfo = new HealthCareProfessionalInformation({\n email: personalInformation.emailAddress,\n fellowship: qualificationsAndExperience.fellowships.filter((v: any) => !!v),\n firstName: personalInformation.firstName,\n gender: personalInformation.gender,\n initials: personalInformation.middleInitials,\n insurancesAccepted: additionalProfessionalInfo.insurancesAccepted,\n isTakingPatients: additionalProfessionalInfo.acceptingPatients,\n lastName: personalInformation.lastName,\n medicalLicenseNumber: qualificationsAndExperience.medicalLicenseNumber,\n nationalProviderIdentifier: qualificationsAndExperience.nationalProviderIdentifier,\n office: practiceInformation.firmClinicOfficeName,\n professionalCredential: personalInformation.professionalCredentials,\n residency: qualificationsAndExperience.residencies.filter((v: any) => !!v),\n school: qualificationsAndExperience.educations.filter((v: any) => !!v),\n specialty: qualificationsAndExperience.specialties.filter((v: any) => !!v),\n standardizedTitle: personalInformation.standardizedTitle,\n stateLicense: qualificationsAndExperience.stateLicense,\n doctorDotComCategories: qualificationsAndExperience.doctorDotComCategories.filter((v: any) => !!v),\n hospitalAffiliations: practiceInformation.hospitalAffiliations.filter((v: string | null | undefined) => !!v),\n isProvider: practiceInformation.isProvider,\n });\n } else if (!this.hasProfessionalCategory && (basicInfo.businessCategories || basicInfo.primaryBusinessCategory)) {\n // Categories changed and doesnt have professional category\n healthCareProfessionalInfo = new HealthCareProfessionalInformation({});\n }\n\n const serviceAvailabilityChanges = this.serviceAvailabilityForm.value || {};\n\n const serviceAvailabilityInfo = new ServiceAvailability({\n ecommerceOnly: serviceAvailabilityChanges.ecommerceOnly,\n closedStatus: serviceAvailabilityChanges.closedStatus,\n reopeningDate: serviceAvailabilityChanges.reopeningDate,\n });\n\n if (\n serviceAvailabilityChanges.closedStatus !== undefined &&\n this.closedStatuses.includes(serviceAvailabilityChanges.closedStatus)\n ) {\n serviceAvailabilityInfo.closedStatusDate = new Date();\n } else {\n serviceAvailabilityInfo.closedStatusDate = null;\n serviceAvailabilityInfo.reopeningDate = null;\n }\n\n const additionalInfo = accountGroup.additionalInfoForm || {};\n\n const richDataUpdateOperations = new RichData({\n tollFreeNumber: phones.tollFreeNumber,\n cellNumber: phones.cellNumber,\n faxNumber: phones.faxNumber,\n email: basicInfo.email,\n description: businessDescriptions.longDescription,\n shortDescription: businessDescriptions.shortDescription,\n servicesOffered: additionalInfo.servicesOffered,\n brandsCarried: additionalInfo.brandsCarried,\n landmark: additionalInfo.landmark,\n paymentMethods: additionalInfo.paymentMethods,\n serviceAvailability: serviceAvailabilityInfo,\n healthCareProfessionalInformation: healthCareProfessionalInfo,\n bookingUrl: additionalInfo.bookingUrl,\n });\n\n // only fetch values from visible conditional Fields\n if (this.visibleConditionalFields.length > 0) {\n const cfValues = [];\n this.visibleConditionalFields.forEach((field) => {\n const value = additionalInfo[field];\n if (value != undefined) {\n cfValues.push({\n id: field,\n value: value,\n });\n }\n });\n if (cfValues.length > 0) {\n richDataUpdateOperations.conditionalFields = cfValues;\n }\n }\n\n operations.addUpdateOperation(new RichDataUpdateOperation(richDataUpdateOperations));\n\n const externalIdentifiersUpdateOperation = new ExternalIdentifiersUpdateOperation({\n partnerId: this.listingProfile?.externalIdentifiers.partnerId,\n updateOrigin: 'business-profile',\n });\n\n if (\n typeof basicInfo.businessCategories !== 'undefined' ||\n typeof basicInfo.primaryBusinessCategory !== 'undefined'\n ) {\n const primary = this.accountGroupForm.get('basicInfoForm.primaryBusinessCategory').value;\n const additional = this.accountGroupForm.get('basicInfoForm.businessCategories').value;\n externalIdentifiersUpdateOperation.vCategoryIds = Array.from(new Set([...primary, ...additional])).filter(\n (id) => !!id,\n );\n }\n\n if (this.isTabEnabled(BusinessProfileTab.Administration)) {\n if (accountGroup.adminForm) {\n externalIdentifiersUpdateOperation.tags = accountGroup.adminForm.tags;\n externalIdentifiersUpdateOperation.customerIdentifier = accountGroup.adminForm.customerIdentifier;\n }\n if (accountGroup.salesForm) {\n externalIdentifiersUpdateOperation.marketId = accountGroup.salesForm.market;\n externalIdentifiersUpdateOperation.salesPersonId = accountGroup.salesForm.salespersonId;\n externalIdentifiersUpdateOperation.additionalSalesPersonIds = accountGroup.salesForm.additionalSalespersonIds;\n }\n }\n operations.addUpdateOperation(externalIdentifiersUpdateOperation);\n\n if (\n (this.isTabEnabled(BusinessProfileTab.Administration) && accountGroup?.adminForm?.notes !== undefined) ||\n basicInfo.commonBusinessNames !== undefined\n ) {\n operations.addUpdateOperation(\n new LegacyProductDetailsUpdateOperation({\n adminNotes: accountGroup?.adminForm?.notes,\n commonName: basicInfo?.commonBusinessNames,\n }),\n );\n }\n\n this.doUpdate({ operations: operations }).subscribe();\n return;\n }\n\n getFirstInvalidTab(): BusinessProfileTab {\n const tabKeys = Object.keys(BusinessProfileTab);\n for (let i = 0; i < tabKeys.length; i++) {\n if (this.tabInvalid(BusinessProfileTab[tabKeys[i]])) {\n return BusinessProfileTab[tabKeys[i]];\n }\n }\n }\n\n onBusinessHoursChange(): void {\n if (this.businessHoursForm.pristine && this.specialHoursForm.pristine) {\n this.snackbar.open(this.translateService.instant('FRONTEND.BUSINESSES.NO_CHANGES_TO_SAVE'), null, {\n duration: 3000,\n });\n return;\n }\n if (!this.businessHoursForm.valid || !this.specialHoursForm.valid || this.editDisabled) {\n this.snackbar.open(this.translateService.instant('FRONTEND.BUSINESSES.INVALID_SUBMISSION'), null, {\n duration: 3000,\n });\n return;\n }\n\n const operations: UpdateOperations = new UpdateOperations();\n\n const sh = SplitHours(this.businessHoursForm.value || []);\n\n const businessHours = new BusinessHours({\n hoursTypeId: 'GENERAL',\n regularHours: sh,\n specialHours: this.specialHoursForm.value || [],\n });\n\n operations.addUpdateOperation(new BusinessHoursUpdateOperation(businessHours));\n this.subscriptions.push(this.doUpdate({ operations: operations, onlyBusinessHoursSave: true }).subscribe());\n }\n\n onMoreHoursChange(): void {\n if (this.moreHoursForm.pristine) {\n this.snackbar.open(this.translateService.instant('FRONTEND.BUSINESSES.NO_CHANGES_TO_SAVE'), null, {\n duration: 3000,\n });\n return;\n }\n if (!this.moreHoursForm.valid || this.editDisabled) {\n this.snackbar.open(this.translateService.instant('FRONTEND.BUSINESSES.INVALID_SUBMISSION'), null, {\n duration: 3000,\n });\n return;\n }\n\n const operations: UpdateOperations = new UpdateOperations();\n Object.keys(this.moreHoursForm.controls).forEach((key) => {\n const values = getChangedValues(this.moreHoursForm.controls[key]);\n if (values) {\n operations.addUpdateOperation(\n new BusinessHoursUpdateOperation(\n new BusinessHours({\n hoursTypeId: key,\n regularHours: values || [],\n }),\n ),\n );\n }\n });\n\n this.subscriptions.push(this.doUpdate({ operations: operations, onlyBusinessHoursSave: true }).subscribe());\n }\n\n private doUpdate(updateParams: FormUpdateParameters): Observable {\n return this.listingProfileService.bulkUpdate(this.accountGroupId, updateParams.operations).pipe(\n // TODO: Use injectable alert service?\n catchError((err) => {\n const snackBarRef = this.snackbar.open(err.message, err.retryable ? 'retry' : null, { duration: 3000 });\n this.subscriptions.push(snackBarRef.onAction().subscribe(() => this.doUpdate(updateParams)));\n return EMPTY;\n }),\n switchMap(() => this.auxiliaryDataTable?.saveChanges() || of(false)),\n catchError(() => {\n const snackBarRef = this.snackbar.open(\n this.translateService.instant('FRONTEND.BUSINESSES.ACCOUNT_ATTRIBUTES_ERROR'),\n this.translateService.instant('FRONTEND.BUSINESSES.ACCOUNT_ATTRIBUTES_DISMISS'),\n { duration: 3000 },\n );\n this.productAnalyticsService.trackEvent(\n 'CustomFields:edit-custom-field-data-fail',\n 'CustomFields',\n 'edit-custom-field-data-fail',\n );\n snackBarRef.onAction().subscribe(() => snackBarRef.dismiss());\n return snackBarRef.afterDismissed().pipe(map(() => null));\n }),\n tap((auxiliaryDataSaved) => {\n if (updateParams.onlyBusinessHoursSave) {\n this.snackbar.open(this.translateService.instant('FRONTEND.BUSINESSES.BUSINESS_HOURS_SAVED'), null, {\n duration: 3000,\n });\n } else if (updateParams.onlyHoursSave) {\n this.snackbar.open(this.translateService.instant('FRONTEND.BUSINESSES.HOURS_OF_OPERATION_SAVED'), null, {\n duration: 3000,\n });\n } else {\n this.markFormsPristine();\n if (auxiliaryDataSaved) {\n const accountSaved = this.translateService.instant('FRONTEND.BUSINESSES.ACCOUNT_WAS_SAVED');\n const customFieldsSaved = this.translateService.instant('FRONTEND.BUSINESSES.CUSTOM_FIELDS_SAVED');\n this.snackbar.open(`${accountSaved}. ${customFieldsSaved}.`, null, {\n duration: 3000,\n });\n this.productAnalyticsService.trackEvent(\n 'CustomFields:edit-custom-field-data-success',\n 'CustomFields',\n 'edit-custom-field-data-success',\n );\n } else {\n this.snackbar.open(this.translateService.instant('FRONTEND.BUSINESSES.ACCOUNT_WAS_SAVED'), null, {\n duration: 3000,\n });\n }\n }\n }),\n tap(() => {\n this.saved.emit();\n }),\n );\n }\n\n ngOnInit(): void {\n this.activeTab = BusinessProfileTab.Primary;\n this.createForm();\n if (this.isTabEnabled(BusinessProfileTab.Administration)) {\n this.watchMarketForSalespeople();\n }\n\n this.availableDoctorDotComCategories = this.listingProfile$.pipe(\n switchMap((accountGroup) =>\n this.getDoctorDotComCategories(accountGroup).pipe(\n map((categories) => {\n const allCategories = categories.categories;\n if (accountGroup.richData?.healthCareProfessionalInformation?.doctorDotComCategories?.length > 0) {\n this.currentDoctorDotComCategories =\n accountGroup.richData.healthCareProfessionalInformation.doctorDotComCategories;\n }\n return allCategories;\n }),\n catchError((error) => {\n console.error('Error fetching doctor.com categories:', error);\n return of(null);\n }),\n ),\n ),\n );\n\n this.AISuggestionFeature$ = this.listingProfile$.pipe(\n map((accountGroup) => accountGroup?.externalIdentifiers?.partnerId),\n distinctUntilChanged(),\n switchMap((partnerId) => this.featureFlagService.checkFeatureFlag(partnerId, '', 'lb_ai_suggestions')),\n shareReplay(1),\n );\n\n this.subscriptions.push(\n this.listingProfile$.subscribe((listingProfile) => {\n this.listingProfile = listingProfile;\n this.loadFormValues(this.listingProfile);\n this.mapZoomLevel = this.getMapZoomLevel();\n if (!this.listingProfile.napData.location) {\n this.inferMapBounds();\n }\n this.timezoneControl.setValue(buildTimezoneDisplay(listingProfile?.napData?.timezone));\n return listingProfile;\n }),\n );\n\n const bomTranslateString = 'FRONTEND.BUSINESSES.BUSINESS_OPERATION_METHODS.';\n const bomTranslateKeys = Object.keys(ClosedStatus).filter((k) => isNaN(Number(k)));\n this.businessOperationMethods$ = combineLatest([\n this.translateService.stream(bomTranslateKeys.map((key) => bomTranslateString + key)),\n this.serviceAvailabilityForm.get('closedStatus').valueChanges.pipe(startWith(0)),\n ]).pipe(\n map(([translations]) => {\n const businessOperationMethods = BusinessOperationMethods.slice();\n return businessOperationMethods.map((method) => {\n return {\n code: method,\n name: translations[bomTranslateString + ClosedStatus[method]],\n };\n });\n }),\n );\n\n const ecommerceValueChanges$ = this.serviceAvailabilityForm.get('ecommerceOnly').valueChanges.pipe(startWith(0));\n this.ecommerceOnly$ = ecommerceValueChanges$.pipe(switchMap(() => this.availabilityOptions()));\n\n const paymentMethodKeys = Object.keys(RichDataPaymentMethods).filter((k) => isNaN(Number(k)));\n const paymentMethodsString = 'FRONTEND.BUSINESSES.PAYMENT_METHODS';\n this.paymentMethods$ = combineLatest([\n this.countryChanges,\n this.translateService.stream(paymentMethodKeys.map((key) => `${paymentMethodsString}.${key}`)),\n this.additionalInfoForm.get('paymentMethods').valueChanges.pipe(startWith([])),\n ]).pipe(\n map(([countryCode, paymentMethodsTranslations, valueChanges]) =>\n this.setPaymentMethods(countryCode, paymentMethodsTranslations, valueChanges),\n ),\n );\n\n const genderTranslateString = 'FRONTEND.BUSINESSES.GENDERS.';\n const genderTranslateKeys = Object.keys(GenderKeys).filter((k) => isNaN(Number(k)));\n this.genders$ = this.translateService.stream(genderTranslateKeys.map((key) => genderTranslateString + key)).pipe(\n map((genders) => {\n const selections = GenderSelection.slice();\n return selections.map((selection) => {\n return {\n code: selection,\n name: genders[`${genderTranslateString}${GenderKeys[selection]}`],\n };\n });\n }),\n );\n\n const isProviderTranslateString = 'FRONTEND.BUSINESSES.IS_PROVIDER_ENUM.';\n const isProviderTranslateKeys = Object.keys(HealthCareProfessionalInformationIsProvider).filter((k) =>\n isNaN(Number(k)),\n );\n this.isProviderOptions$ = this.translateService\n .stream(isProviderTranslateKeys.map((key) => isProviderTranslateString + key))\n .pipe(\n map((options) => {\n const selections = Object.keys(isProviderOptions).slice();\n return selections.map((selection) => {\n return {\n code: parseInt(selection),\n name: options[`${isProviderTranslateString}${isProviderOptions[selection]}`],\n };\n });\n }),\n );\n\n this.standardizedTitles$ = this.translateService.stream(getAllStandardizedTitles()).pipe(\n map((standardizedTitles) => {\n return [\n { code: null, name: null },\n ...Object.keys(standardizedTitles).map((key) => {\n return { code: key, name: standardizedTitles[key] };\n }),\n ];\n }),\n );\n }\n\n private async availabilityOptions(): Promise {\n const availabilities = SellingMethodsAvailability.slice();\n const availabilityTranslateKeys = Object.keys(IsAvailable).filter((k) => isNaN(Number(k)));\n const availabilityTranslateStrings = 'FRONTEND.BUSINESSES.SELLING_METHODS_AVAILABILITY';\n const availabilityStrings = availabilityTranslateKeys.map((key) => `${availabilityTranslateStrings}.${key}`);\n\n const translation = this.translateService.instant(availabilityStrings);\n\n return availabilities.map((method) => {\n return {\n code: method,\n name: translation[`${availabilityTranslateStrings}.${IsAvailable[method]}`],\n };\n });\n }\n\n isTabEnabled(tab: BusinessProfileTab): boolean {\n return this.enabledTabs.includes(tab);\n }\n\n isValidArray(array: any): any {\n return array === null || array === undefined || array.length === 0 ? false : array;\n }\n\n handleCategoriesChange(categories: CategoryInterface[]): void {\n this.hasProfessionalCategory = categories?.some((category) => isHealthCategory(category));\n }\n\n showAdditionalSalespeopleInput(): void {\n this.isAdditionalSalespeopleInputVisible = true;\n }\n\n getPrimarySalespersonInAdditionalSalespeopleErrorMsg(): string {\n const errors: { [key: string]: any } = this.salesForm.get('additionalSalespersonIds').errors;\n return this.translateService.instant('FRONTEND.BUSINESSES.ALREADY_THE_PRIMARY_SALESPERSON', {\n name: errors.primaryName,\n });\n }\n\n private watchMarketForSalespeople(): void {\n this.salesForm.get('market').valueChanges.forEach((marketId) => {\n if (this.listingProfile) {\n const partnerId = this.listingProfile.externalIdentifiers.partnerId;\n const req: ListSalespersonsRequestListSalespersonsFiltersInterface = {\n partnerId: partnerId,\n marketId: marketId,\n };\n this.salespersonService\n .listSalespersons(req, '', 500)\n .pipe(takeUntilDestroyed(this.destroyRef))\n .subscribe((result) => {\n this.salespeople = result.results.map((sp) => convertFromSales(partnerId, marketId, sp));\n this.additionalSalespeople = this.salespeople.map((sp) => ({ name: sp.fullName, value: sp.salespersonId }));\n }),\n this.salesForm.patchValue({ salespersonId: '' });\n this.salesForm.patchValue({ additionalSalespersonIds: [] });\n }\n });\n }\n\n private formStateWithDisabled(value?: any): object {\n return { value: value, disabled: this.editDisabled };\n }\n\n private setControlsForFormArray(formArray: UntypedFormArray, length: number, controlFactory?: ItemFactory): void {\n // Wrapping helper to provided default control to reduce duplication\n const defaultControlFactory = () => this.fb.control(this.formStateWithDisabled(''));\n fixControlsForFormArray(formArray, controlFactory || defaultControlFactory, length);\n }\n\n getCountryCode(): string {\n return this.basicInfoForm.get('country').value || 'US';\n }\n\n private getMapZoomLevel(): number {\n let zoom = 6;\n if (this.listingProfile.napData.state) {\n zoom = 7;\n }\n if (this.listingProfile.napData.city) {\n zoom = 13;\n }\n if (this.listingProfile.napData.address || this.listingProfile.napData.zip || this.geoControl.value) {\n zoom = 15;\n }\n return zoom;\n }\n\n get maxCompetitorsFields(): number {\n return this.maxCompetitors || 3;\n }\n\n get maxShareOfVoiceKeywordsFields(): number {\n return this.maxShareOfVoiceKeywords || 3;\n }\n\n // inferMapBounds uses the NAP data to infer the boundaries to use for the geolocation control\n private inferMapBounds(): void {\n this.mapsLoaded$.pipe(\n map((didLoad) => {\n if (didLoad) {\n const fullAddress = [\n this.listingProfile.napData.address || '',\n this.listingProfile.napData.city || '',\n this.listingProfile.napData.state || '',\n this.listingProfile.napData.zip || '',\n this.listingProfile.napData.country || '',\n ].join(',');\n\n this.geocoder.geocode({ address: fullAddress }).pipe(\n map((result: MapGeocoderResponse) => {\n if (result.status === google.maps.GeocoderStatus.OK && result.results.length > 0) {\n const viewport = result.results[0].geometry.viewport;\n this.zone.run(() => {\n this.inferredMapBounds = {\n east: viewport.getNorthEast().lng(),\n north: viewport.getNorthEast().lat(),\n west: viewport.getSouthWest().lng(),\n south: viewport.getSouthWest().lat(),\n };\n });\n }\n }),\n );\n }\n }),\n );\n }\n\n private log(a: any) {\n console.log(a);\n }\n\n openLightbox(data: LightboxData): void {\n this.lightbox.open({ imageUrls: data.imageUrls, index: data.index });\n }\n\n onTabSwitch(event: MatTabChangeEvent): void {\n this.activeTab = event.index;\n }\n\n tabInvalid(tab: BusinessProfileTab): boolean {\n switch (tab) {\n case BusinessProfileTab.Primary:\n return (\n this.basicInfoForm.invalid ||\n this.additionalInfoForm.invalid ||\n this.phoneForm.invalid ||\n this.serviceAvailabilityForm.invalid ||\n this.serviceAreaToggle.invalid ||\n this.serviceAreaForm.invalid\n );\n case BusinessProfileTab.Social:\n return this.businessPagesForm.invalid || this.blogForm.invalid;\n case BusinessProfileTab.Professional:\n return (\n this.personalInformationForm.invalid ||\n this.practiceInformationForm.invalid ||\n this.qualificationsAndExperienceForm.invalid ||\n this.additionalProfessionalInfoForm.invalid\n );\n case BusinessProfileTab.Descriptions:\n return this.businessDescriptionsForm.invalid;\n case BusinessProfileTab.Administration:\n return this.salesForm.invalid || this.adminForm.invalid;\n }\n }\n\n tabChanged(tab: BusinessProfileTab): boolean {\n switch (tab) {\n case BusinessProfileTab.Primary:\n return (\n this.basicInfoForm.dirty ||\n this.additionalInfoForm.dirty ||\n this.phoneForm.dirty ||\n this.addressFormDirty ||\n this.serviceAvailabilityForm.dirty ||\n this.serviceAreaToggle.dirty ||\n this.serviceAreaForm.dirty\n );\n case BusinessProfileTab.Social:\n return this.businessPagesForm.dirty || this.blogForm.dirty;\n case BusinessProfileTab.Professional:\n return (\n this.personalInformationForm.dirty ||\n this.practiceInformationForm.dirty ||\n this.qualificationsAndExperienceForm.dirty ||\n this.additionalProfessionalInfoForm.dirty\n );\n case BusinessProfileTab.Descriptions:\n return this.businessDescriptionsForm.dirty;\n case BusinessProfileTab.Administration:\n return this.salesForm.dirty || this.adminForm.dirty;\n }\n }\n\n hideSaveButton(): boolean {\n const tabsToHideSaveButton = [];\n return tabsToHideSaveButton.indexOf(this.activeTab) > -1;\n }\n\n markFormsPristine(): void {\n this.serviceAreaToggle.markAsPristine();\n this.basicInfoForm.markAsPristine();\n this.additionalInfoForm.markAsPristine();\n this.serviceAvailabilityForm.markAsPristine();\n this.phoneForm.markAsPristine();\n this.businessPagesForm.markAsPristine();\n this.blogForm.markAsPristine();\n this.personalInformationForm.markAsPristine();\n this.practiceInformationForm.markAsPristine();\n this.qualificationsAndExperienceForm.markAsPristine();\n this.additionalProfessionalInfoForm.markAsPristine();\n this.businessDescriptionsForm.markAsPristine();\n this.googleAttributesForm.markAsPristine();\n this.bingAttributesForm.markAsPristine();\n this.serviceAreaForm.markAsPristine();\n this.auxiliaryDataTable?.formGroup.markAsPristine();\n this.salesForm.markAsPristine();\n this.adminForm.markAsPristine();\n }\n\n showFourSquare(): boolean {\n if (this.hiddenFields) {\n return this.hiddenFields.indexOf(HiddenField.SocialFourSquare) < 0;\n }\n return true;\n }\n\n showMap(): boolean {\n if (this.hiddenFields) {\n return this.hiddenFields.indexOf(HiddenField.Map) < 0;\n }\n return true;\n }\n\n hasAccessToMarkets(): boolean {\n if (this.hiddenFields) {\n return this.hiddenFields.indexOf(HiddenField.Markets) < 0;\n }\n return true;\n }\n\n hasAccessToSales(): boolean {\n if (this.hiddenFields) {\n return this.hiddenFields.indexOf(HiddenField.Sales) < 0;\n }\n return true;\n }\n\n showCustomerIdentifier(): boolean {\n if (this.hiddenFields) {\n return this.hiddenFields.indexOf(HiddenField.CustomerIdentifier) < 0;\n }\n return true;\n }\n\n ngOnDestroy(): void {\n this.subscriptions.forEach((sub) => sub.unsubscribe());\n }\n\n get showDateTemporaryClose(): boolean {\n const closedValue = this.serviceAvailabilityForm.get('closedStatus').value;\n return (\n closedValue === ClosedStatus.TEMPORARY ||\n closedValue === ClosedStatus.LIMITED ||\n closedValue === ClosedStatus.PERMANENT\n );\n }\n\n handleTimeZoneChange(timeZone: string): void {\n this.listingProfile.napData.timezone = timeZone;\n }\n\n trackChangedForms(accountGroup: any): void {\n const changedForms = Object.keys(accountGroup)?.filter((key) => {\n return !!accountGroup[key];\n });\n const changedTabs = new Set(changedForms.map((form) => formTabs[form]));\n changedTabs.forEach((tab) => {\n this.productAnalyticsService.trackEvent(`listing-profile-tab-update`, 'listing-profile', 'change', 1, {\n tab: BusinessProfileTab[tab],\n });\n });\n changedForms.forEach((form) => {\n this.productAnalyticsService.trackEvent(`listing-profile-form-update`, 'listing-profile', 'change', 1, {\n form: form,\n });\n });\n }\n\n getSuggestion = (fieldType: string): Observable => {\n return this.suggestionService\n .getSuggestion(\n new GetSuggestionRequest({\n businessId: this.accountGroupId,\n fieldType: fieldType,\n languageCode: this.translateService.currentLang || this.translateService.defaultLang,\n }),\n )\n .pipe(\n catchError((err: HttpErrorResponse) => {\n const message = err.error?.message ? err.error.message : 'Unknown error';\n this.snackbar.open(message, '', { politeness: 'assertive', duration: 5000 });\n return EMPTY;\n }),\n map((resp: GetSuggestionResponse) => resp?.suggestion),\n );\n };\n\n suggestFieldUpdate = (\n fieldType: string,\n existing: string,\n option: UpdateOption,\n tone?: string,\n ): Observable => {\n return this.suggestionService\n .suggestFieldUpdate(\n new SuggestFieldUpdateRequest({\n businessId: this.accountGroupId,\n fieldType: fieldType,\n existingValue: existing,\n option: option,\n tone: tone,\n languageCode: this.translateService.currentLang || this.translateService.defaultLang,\n }),\n )\n .pipe(\n catchError((err: HttpErrorResponse) => {\n const message = err.error?.message ? err.error.message : 'Unknown error';\n this.snackbar.open(message, '', { politeness: 'assertive', duration: 5000 });\n return EMPTY;\n }),\n map((resp: GetSuggestionResponse) => resp?.suggestion),\n );\n };\n\n private setPaymentMethods(countryCode: string, paymentMethodsTranslations, valueChanges) {\n const paymentMethodsString = 'FRONTEND.BUSINESSES.PAYMENT_METHODS';\n let paymentMethods = CountryPaymentMethods['DEFAULT'].slice();\n if (countryCode && CountryPaymentMethods[countryCode]) {\n paymentMethods = CountryPaymentMethods[countryCode].slice();\n }\n if (valueChanges) {\n (valueChanges as number[]).forEach((selectedMethod) => {\n if (paymentMethods.indexOf(selectedMethod) < 0) {\n paymentMethods.push(selectedMethod);\n }\n });\n }\n return paymentMethods.map((method) => ({\n code: method,\n name: paymentMethodsTranslations[`${paymentMethodsString}.${RichDataPaymentMethods[method]}`],\n }));\n }\n}\n\nfunction convertFromSales(partnerId: string, marketId: string, sp: SalesSalesperson): Salesperson {\n return {\n partnerId: partnerId,\n marketId: marketId,\n salespersonId: sp.salespersonId,\n fullName: `${sp.firstName} ${sp.lastName}`,\n firstName: sp.firstName,\n lastName: sp.lastName,\n email: sp.email,\n };\n}\n\nfunction createDefaultLegacyProductDetails(): LegacyProductDetails {\n return new LegacyProductDetails({\n commonName: [],\n adminNotes: '',\n });\n}\n\nfunction paymentMethodValidator(getCountryCode: () => string | string, translateService: any): ValidatorFn {\n return (control: AbstractControl): { [key: string]: any } => {\n if (!control.value) {\n return null;\n }\n const countryCode = getCountryCode();\n let paymentMethods = CountryPaymentMethods['DEFAULT'].slice();\n if (countryCode && CountryPaymentMethods[countryCode]) {\n paymentMethods = CountryPaymentMethods[countryCode].slice();\n }\n const invalidPaymentMethods = (control.value as number[]).filter((selectedPaymentMethod) => {\n return paymentMethods.indexOf(selectedPaymentMethod) < 0;\n });\n if (invalidPaymentMethods.length) {\n const paymentMethodsTranslations = translateService.instant('FRONTEND.BUSINESSES.PAYMENT_METHODS');\n const paymentMethodsString = invalidPaymentMethods\n .map((method) => {\n return paymentMethodsTranslations[RichDataPaymentMethods[method]];\n })\n .join(', ');\n const message = translateService.instant('FRONTEND.BUSINESSES.PAYMENT_METHODS.INVALID_PAYMENT_METHODS', {\n paymentMethods: paymentMethodsString,\n });\n return { paymentMethods: message };\n }\n return null;\n };\n}\n\nfunction getAllStandardizedTitles(): string[] {\n return [\n 'FRONTEND.BUSINESSES.STANDARDIZED_TITLES.ACCOUNTING',\n 'FRONTEND.BUSINESSES.STANDARDIZED_TITLES.ADMINISTRATOR',\n 'FRONTEND.BUSINESSES.STANDARDIZED_TITLES.BOARD_MEMBER',\n 'FRONTEND.BUSINESSES.STANDARDIZED_TITLES.CHAIRMAN',\n 'FRONTEND.BUSINESSES.STANDARDIZED_TITLES.CEO',\n 'FRONTEND.BUSINESSES.STANDARDIZED_TITLES.CIO_CTO',\n 'FRONTEND.BUSINESSES.STANDARDIZED_TITLES.CONTROLLER',\n 'FRONTEND.BUSINESSES.STANDARDIZED_TITLES.CORPORATE_TAX',\n 'FRONTEND.BUSINESSES.STANDARDIZED_TITLES.DIRECTOR',\n 'FRONTEND.BUSINESSES.STANDARDIZED_TITLES.DIVISION_HEAD',\n 'FRONTEND.BUSINESSES.STANDARDIZED_TITLES.E_COMMERCE',\n 'FRONTEND.BUSINESSES.STANDARDIZED_TITLES.EDUCATOR',\n 'FRONTEND.BUSINESSES.STANDARDIZED_TITLES.ENGINEERING',\n 'FRONTEND.BUSINESSES.STANDARDIZED_TITLES.ENVIRONMENT',\n 'FRONTEND.BUSINESSES.STANDARDIZED_TITLES.EVP',\n 'FRONTEND.BUSINESSES.STANDARDIZED_TITLES.EXECUTIVE',\n 'FRONTEND.BUSINESSES.STANDARDIZED_TITLES.FACILITIES',\n 'FRONTEND.BUSINESSES.STANDARDIZED_TITLES.FINANCE',\n 'FRONTEND.BUSINESSES.STANDARDIZED_TITLES.INSURANCE',\n 'FRONTEND.BUSINESSES.STANDARDIZED_TITLES.INTERNAL_AUDIT',\n 'FRONTEND.BUSINESSES.STANDARDIZED_TITLES.INTERNATIONAL',\n 'FRONTEND.BUSINESSES.STANDARDIZED_TITLES.IT_EXECUTIVE',\n 'FRONTEND.BUSINESSES.STANDARDIZED_TITLES.LEGAL',\n 'FRONTEND.BUSINESSES.STANDARDIZED_TITLES.LEGAL_COUNSEL',\n 'FRONTEND.BUSINESSES.STANDARDIZED_TITLES.MANAGER',\n 'FRONTEND.BUSINESSES.STANDARDIZED_TITLES.MANUFACTURING',\n 'FRONTEND.BUSINESSES.STANDARDIZED_TITLES.MARKETING',\n 'FRONTEND.BUSINESSES.STANDARDIZED_TITLES.MINISTER',\n 'FRONTEND.BUSINESSES.STANDARDIZED_TITLES.OFFICE_MANAGER',\n 'FRONTEND.BUSINESSES.STANDARDIZED_TITLES.OPERATIONS',\n 'FRONTEND.BUSINESSES.STANDARDIZED_TITLES.OWNER',\n 'FRONTEND.BUSINESSES.STANDARDIZED_TITLES.PARTNER',\n 'FRONTEND.BUSINESSES.STANDARDIZED_TITLES.PRESIDENT',\n 'FRONTEND.BUSINESSES.STANDARDIZED_TITLES.PRINCIPAL',\n 'FRONTEND.BUSINESSES.STANDARDIZED_TITLES.PUBLISHER',\n 'FRONTEND.BUSINESSES.STANDARDIZED_TITLES.PURCHASING',\n 'FRONTEND.BUSINESSES.STANDARDIZED_TITLES.QUALITY',\n 'FRONTEND.BUSINESSES.STANDARDIZED_TITLES.REAL_ESTATE',\n 'FRONTEND.BUSINESSES.STANDARDIZED_TITLES.REGION_MANAGER',\n 'FRONTEND.BUSINESSES.STANDARDIZED_TITLES.SALES',\n 'FRONTEND.BUSINESSES.STANDARDIZED_TITLES.SITE_MANAGER',\n 'FRONTEND.BUSINESSES.STANDARDIZED_TITLES.SVP',\n 'FRONTEND.BUSINESSES.STANDARDIZED_TITLES.TRAINING',\n 'FRONTEND.BUSINESSES.STANDARDIZED_TITLES.VICE_CHAIRMAN',\n 'FRONTEND.BUSINESSES.STANDARDIZED_TITLES.VICE_PRESIDENT',\n 'FRONTEND.BUSINESSES.STANDARDIZED_TITLES.VP',\n 'FRONTEND.BUSINESSES.STANDARDIZED_TITLES.WEBMASTER',\n ];\n}\n","\n \n \n \n \n {{ 'FRONTEND.BUSINESSES.PRIMARY_INFO' | translate }}\n \n \n
\n
\n \n \n \n {{ 'FRONTEND.BUSINESSES.BASICS' | translate }}\n \n \n \n
\n \n\n \n\n \n\n \n {{ 'FRONTEND.BUSINESSES.PRIMARY_CATEGORY' | translate }}\n \n \n {{ 'FRONTEND.BUSINESSES.BUSINESS_CATEGORIES_HINT' | translate }}\n \n {{ primaryBusinessCategoryCtrl.value.length }}/1\n \n {{ 'FRONTEND.BUSINESSES.BUSINESS_CATEGORIES_ERROR' | translate }}\n \n \n\n \n {{ 'FRONTEND.BUSINESSES.ADDITIONAL_CATEGORIES' | translate }}\n \n {{ businessCategoriesCtrl.value.length }}/9\n \n
\n
\n \n \n \n \n {{ 'FRONTEND.BUSINESSES.PHONE' | translate }}\n \n \n {{ 'FRONTEND.BUSINESSES.PHONE_NUMBERS_ALLOWED_FORMATS' | translate }}\n \n \n \n \n \n \n \n \n \n \n \n
\n
\n \n \n \n {{ 'FRONTEND.BUSINESSES.LOCATION' | translate }}\n \n \n \n \n \n\n \n \n \n \n \n \n {{ 'FRONTEND.BUSINESSES.OPERATIONAL_INFORMATION' | translate }}\n \n \n \n \n \n \n {{ 'FRONTEND.BUSINESSES.BUSINESS_OPEN_CLOSE' | translate }}\n \n \n \n {{ businessOperation.name }}\n \n \n \n {{ businessOperationError }}\n \n \n\n \n \n {{ 'FRONTEND.BUSINESSES.REOPENING_DATE' | translate }}\n \n \n \n \n {{ reopeningDateError }}\n \n \n \n\n \n\n \n\n \n \n {{ 'FRONTEND.BUSINESSES.SERVICE_AVAILABILITY.ECOMMERCE_ONLY' | translate }}\n \n \n \n {{ ecommerce.name }}\n \n \n \n \n \n {{ 'FRONTEND.BUSINESSES.PAYMENT_METHODS.PAYMENT_METHODS' | translate }}\n \n \n \n {{ paymentMethod.name }}\n \n \n \n {{ paymentMethodError }}\n \n \n \n \n \n \n \n
\n
\n \n \n \n \n {{ 'FRONTEND.BUSINESSES.HOURS' | translate }}\n \n \n
\n
\n
\n \n
\n
\n \n
\n
\n
\n
\n \n
\n
\n
\n \n\n \n \n \n {{ 'FRONTEND.BUSINESSES.DESCRIPTIONS' | translate }}\n \n \n
\n
\n \n \n \n {{ 'FRONTEND.BUSINESSES.BUSINESS_DESCRIPTIONS' | translate }}\n \n \n \n \n \n \n \n \n \n \n \n \n \n
\n
\n \n \n \n \n {{ 'FRONTEND.BUSINESSES.IMAGES' | translate }}\n \n \n
\n
\n \n
\n
\n \n\n \n \n \n {{ 'FRONTEND.BUSINESSES.SOCIAL' | translate }}\n \n \n
\n
\n \n \n \n {{ 'FRONTEND.BUSINESSES.BUSINESS_PAGES' | translate }}\n \n \n \n \n \n \n \n \n \n \n \n \n
\n
\n \n \n \n {{ 'FRONTEND.BUSINESSES.BLOG' | translate }}\n \n \n \n \n \n \n
\n
\n \n\n \n \n \n {{ 'FRONTEND.BUSINESSES.PROFESSIONAL_RECORDS' | translate }}\n \n \n
\n
\n \n \n \n {{ 'FRONTEND.BUSINESSES.PERSONAL_INFORMATION' | translate }}\n \n \n \n \n Standardized Title\n \n \n {{ standardizedTitle.name }}\n \n \n \n \n \n \n \n {{ 'FRONTEND.BUSINESSES.PROFESSIONAL_CREDENTIALS' | translate }}\n \n \n {{ professionalCredential }}\n \n \n \n \n {{ 'FRONTEND.BUSINESSES.GENDER' | translate }}\n \n \n {{ gender.name }}\n \n \n \n \n \n \n \n \n \n {{ 'FRONTEND.BUSINESSES.OPERATIONAL_INFORMATION' | translate }}\n \n \n \n \n {{ 'FRONTEND.BUSINESSES.ACCEPTING_PATIENTS' | translate }}\n \n \n {{ 'FRONTEND.BUSINESSES.YES' | translate }}\n \n \n {{ 'FRONTEND.BUSINESSES.NO' | translate }}\n \n \n \n \n \n \n
\n
\n \n \n \n {{ 'FRONTEND.BUSINESSES.QUALIFICATIONS_EXPERIENCE.QUALIFICATIONS_EXPERIENCE' | translate }}\n \n \n \n
\n \n \n {{ 'FRONTEND.BUSINESSES.QUALIFICATIONS_EXPERIENCE.DOCTORDOTCOM_CATEGORIES' | translate }}\n \n \n \n {{ doctordotcomCategory.fullName }}\n \n \n \n
\n \n \n \n \n \n \n \n
\n \n \n \n \n {{ 'FRONTEND.BUSINESSES.PRACTICE_INFORMATION' | translate }}\n \n \n \n \n \n {{ 'FRONTEND.BUSINESSES.IS_PROVIDER' | translate }}\n \n \n {{ enumVal.name }}\n \n \n \n \n \n \n
\n
\n \n \n \n \n {{ 'FRONTEND.BUSINESSES.ATTRIBUTES_TAB' | translate }}\n \n \n
\n
\n \n
\n
\n \n
\n
\n \n \n \n \n {{ 'FRONTEND.BUSINESSES.CUSTOM_FIELDS' | translate }}\n \n \n
\n
\n \n \n \n \n \n
\n
\n \n \n \n \n {{ 'FRONTEND.BUSINESSES.ADMINISTRATION' | translate }}\n \n \n
\n
\n \n \n \n {{ 'FRONTEND.BUSINESSES.SALES' | translate }}\n \n \n \n \n {{ 'FRONTEND.BUSINESSES.MARKET' | translate }}\n \n \n {{ market.name }}\n \n \n \n \n {{ 'FRONTEND.BUSINESSES.PRIMARY_SALESPERSON' | translate }}\n \n \n \n {{ salesperson.fullName }}\n \n \n \n \n \n {{ 'FRONTEND.BUSINESSES.PRIMARY_SALESPERSON_MUST_BE_SELECTED' | translate }}\n \n 0\"\n [formControl]=\"accountGroupForm.get('salesForm.additionalSalespersonIds')\"\n [tooltip]=\"'FRONTEND.BUSINESSES.TOOLTIPS.ADDITIONAL_SALESPERSON_TOOLTIP' | translate\"\n [placeholder]=\"'FRONTEND.BUSINESSES.ADDITIONAL_SALESPEOPLE' | translate\"\n [options]=\"additionalSalespeople\"\n [allowCustomTags]=\"false\"\n [allowDuplicates]=\"false\"\n [maxFields]=\"5\"\n >\n \n {{ getPrimarySalespersonInAdditionalSalespeopleErrorMsg() }}\n \n \n \n
\n
\n \n \n \n {{ 'FRONTEND.BUSINESSES.ADMINISTRATION' | translate }}\n \n \n \n \n \n \n \n {{ 'FRONTEND.BUSINESSES.NOTES' | translate }}\n \n \n \n \n \n
\n
\n \n \n \n \n \n \n \n\n\n\n \n\n","{\n \"FRONTEND\": {\n \"TAXONOMY\": {\n \"active\": \"Active Life\",\n \"amateursportsteams\": \"Amateur Sports Teams\",\n \"amusementparks\": \"Amusement Parks\",\n \"aquariums\": \"Aquariums\",\n \"archery\": \"Archery\",\n \"badminton\": \"Badminton\",\n \"basketballcourts\": \"Basketball Courts\",\n \"beaches\": \"Beaches\",\n \"bikerentals\": \"Bike Rentals\",\n \"boating\": \"Boating\",\n \"bowling\": \"Bowling\",\n \"climbing\": \"Climbing\",\n \"discgolf\": \"Disc Golf\",\n \"diving\": \"Diving\",\n \"freediving\": \"Free Diving\",\n \"scuba\": \"Scuba Diving\",\n \"fishing\": \"Fishing\",\n \"fitness\": \"Fitness & Instruction\",\n \"barreclasses\": \"Barre Classes\",\n \"bootcamps\": \"Boot Camps\",\n \"boxing\": \"Boxing\",\n \"dancestudio\": \"Dance Studios\",\n \"gyms\": \"Gyms\",\n \"healthtrainers\": \"Trainers\",\n \"martialarts\": \"Martial Arts\",\n \"pilates\": \"Pilates\",\n \"taichi\": \"Tai Chi\",\n \"yoga\": \"Yoga\",\n \"football\": \"Soccer\",\n \"gokarts\": \"Go Karts\",\n \"golf\": \"Golf\",\n \"gun_ranges\": \"Gun/Rifle Ranges\",\n \"gymnastics\": \"Gymnastics\",\n \"hanggliding\": \"Hang Gliding\",\n \"hiking\": \"Hiking\",\n \"horsebackriding\": \"Horseback Riding\",\n \"horseracing\": \"Horse Racing\",\n \"hot_air_balloons\": \"Hot Air Balloons\",\n \"kiteboarding\": \"Kiteboarding\",\n \"lakes\": \"Lakes\",\n \"lasertag\": \"Laser Tag\",\n \"leisure_centers\": \"Leisure Centers\",\n \"mini_golf\": \"Mini Golf\",\n \"mountainbiking\": \"Mountain Biking\",\n \"paddleboarding\": \"Paddleboarding\",\n \"paintball\": \"Paintball\",\n \"parks\": \"Parks\",\n \"dog_parks\": \"Dog Parks\",\n \"skate_parks\": \"Skate Parks\",\n \"playgrounds\": \"Playgrounds\",\n \"rafting\": \"Rafting/Kayaking\",\n \"recreation\": \"Recreation Centers\",\n \"rock_climbing\": \"Rock Climbing\",\n \"skatingrinks\": \"Skating Rinks\",\n \"skydiving\": \"Skydiving\",\n \"spinclasses\": \"Spin Classes\",\n \"sports_clubs\": \"Sports Clubs\",\n \"squash\": \"Squash\",\n \"summer_camps\": \"Summer Camps\",\n \"surfing\": \"Surfing\",\n \"swimmingpools\": \"Swimming Pools\",\n \"tennis\": \"Tennis\",\n \"trampoline\": \"Trampoline Parks\",\n \"tubing\": \"Tubing\",\n \"zoos\": \"Zoos\",\n \"arts\": \"Arts & Entertainment\",\n \"arcades\": \"Arcades\",\n \"casinos\": \"Casinos\",\n \"culturalcenter\": \"Cultural Center\",\n \"festivals\": \"Festivals\",\n \"galleries\": \"Art Galleries\",\n \"gardens\": \"Botanical Gardens\",\n \"jazzandblues\": \"Jazz & Blues\",\n \"movietheaters\": \"Cinema\",\n \"museums\": \"Museums\",\n \"musicvenues\": \"Music Venues\",\n \"opera\": \"Opera & Ballet\",\n \"psychic_astrology\": \"Psychics & Astrologers\",\n \"racetracks\": \"Race Tracks\",\n \"social_clubs\": \"Social Clubs\",\n \"sportsteams\": \"Professional Sports Teams\",\n \"stadiumsarenas\": \"Stadiums & Arenas\",\n \"theater\": \"Performing Arts\",\n \"ticketsales\": \"Ticket Sales\",\n \"wineries\": \"Wineries\",\n \"auto\": \"Automotive\",\n \"auto_detailing\": \"Auto Detailing\",\n \"autoglass\": \"Auto Glass Services\",\n \"autoloanproviders\": \"Auto Loan Providers\",\n \"autopartssupplies\": \"Auto Parts & Supplies\",\n \"autorepair\": \"Auto Repair\",\n \"boatdealers\": \"Boat Dealers\",\n \"bodyshops\": \"Body Shops\",\n \"car_dealers\": \"Car Dealers\",\n \"carwash\": \"Car Wash\",\n \"motorcycledealers\": \"Motorcycle Dealers\",\n \"motorcyclerepair\": \"Motorcycle Repair\",\n \"oilchange\": \"Oil Change Stations\",\n \"parking\": \"Parking\",\n \"rv_dealers\": \"RV Dealers\",\n \"servicestations\": \"Gas & Service Stations\",\n \"smog_check_stations\": \"Smog Check Stations\",\n \"stereo_installation\": \"Car Stereo Installation\",\n \"tires\": \"Tires\",\n \"towing\": \"Towing\",\n \"truck_rental\": \"Truck Rental\",\n \"windshieldinstallrepair\": \"Windshield Installation & Repair\",\n \"beautysvc\": \"Beauty & Spas\",\n \"barbers\": \"Barbers\",\n \"cosmetics\": \"Cosmetics & Beauty Supply\",\n \"eyelashservice\": \"Eyelash Service\",\n \"hair\": \"Hair Salons\",\n \"blowoutservices\": \"Blow Dry/Out Services\",\n \"hair_extensions\": \"Hair Extensions\",\n \"hairstylists\": \"Hair Stylists\",\n \"menshair\": \"Men's Hair Salons\",\n \"hairremoval\": \"Hair Removal\",\n \"laser_hair_removal\": \"Laser Hair Removal\",\n \"makeupartists\": \"Makeup Artists\",\n \"massage\": \"Massage\",\n \"othersalons\": \"Nail Salons\",\n \"permanentmakeup\": \"Permanent Makeup\",\n \"piercing\": \"Piercing\",\n \"rolfing\": \"Rolfing\",\n \"skincare\": \"Skin Care\",\n \"spas\": \"Day Spas\",\n \"tanning\": \"Tanning\",\n \"spraytanning\": \"Spray Tanning\",\n \"tanningbeds\": \"Tanning Beds\",\n \"tattoo\": \"Tattoo\",\n \"education\": \"Education\",\n \"adultedu\": \"Adult Education\",\n \"collegecounseling\": \"College Counseling\",\n \"collegeuniv\": \"Colleges & Universities\",\n \"educationservices\": \"Educational Services\",\n \"elementaryschools\": \"Elementary Schools\",\n \"highschools\": \"High Schools\",\n \"kindergarten\": \"Kindergarten\",\n \"middleschools\": \"Middle Schools\",\n \"preschools\": \"Preschools\",\n \"privateschools\": \"Private Schools\",\n \"privatetutors\": \"Private Tutors\",\n \"religiousschools\": \"Religious Schools\",\n \"specialed\": \"Special Education\",\n \"specialtyschools\": \"Specialty Schools\",\n \"artschools\": \"Art Schools\",\n \"cookingschools\": \"Cooking Schools\",\n \"cosmetology_schools\": \"Cosmetology Schools\",\n \"cprclasses\": \"CPR Classes\",\n \"dance_schools\": \"Dance Schools\",\n \"driving_schools\": \"Driving Schools\",\n \"firstaidclasses\": \"First Aid Classes\",\n \"flightinstruction\": \"Flight Instruction\",\n \"language_schools\": \"Language Schools\",\n \"massage_schools\": \"Massage Schools\",\n \"swimminglessons\": \"Swimming Lessons/Schools\",\n \"vocation\": \"Vocational & Technical School\",\n \"testprep\": \"Test Preparation\",\n \"tutoring\": \"Tutoring Centers\",\n \"eventservices\": \"Event Planning & Services\",\n \"bartenders\": \"Bartenders\",\n \"boatcharters\": \"Boat Charters\",\n \"catering\": \"Caterers\",\n \"clowns\": \"Clowns\",\n \"djs\": \"DJs\",\n \"eventplanning\": \"Party & Event Planning\",\n \"magicians\": \"Magicians\",\n \"musicians\": \"Musicians\",\n \"officiants\": \"Officiants\",\n \"partybusrentals\": \"Party Bus Rentals\",\n \"partyequipmentrentals\": \"Party Equipment Rentals\",\n \"partysupplies\": \"Party Supplies\",\n \"personalchefs\": \"Personal Chefs\",\n \"photographers\": \"Photographers\",\n \"eventphotography\": \"Event Photography\",\n \"sessionphotography\": \"Session Photography\",\n \"venues\": \"Venues & Event Spaces\",\n \"videographers\": \"Videographers\",\n \"wedding_planning\": \"Wedding Planning\",\n \"financialservices\": \"Financial Services\",\n \"banks\": \"Banks & Credit Unions\",\n \"financialadvising\": \"Financial Advising\",\n \"insurance\": \"Insurance\",\n \"investing\": \"Investing\",\n \"paydayloans\": \"Check Cashing/Pay-day Loans\",\n \"taxservices\": \"Tax Services\",\n \"food\": \"Food\",\n \"bagels\": \"Bagels\",\n \"bakeries\": \"Bakeries\",\n \"beer_and_wine\": \"Beer, Wine & Spirits\",\n \"breweries\": \"Breweries\",\n \"bubbletea\": \"Bubble Tea\",\n \"butcher\": \"Butcher\",\n \"coffee\": \"Coffee & Tea\",\n \"convenience\": \"Convenience Stores\",\n \"csa\": \"CSA\",\n \"desserts\": \"Desserts\",\n \"diyfood\": \"Do-It-Yourself Food\",\n \"donuts\": \"Donuts\",\n \"farmersmarket\": \"Farmers Market\",\n \"fooddeliveryservices\": \"Food Delivery Services\",\n \"foodtrucks\": \"Food Trucks\",\n \"gelato\": \"Gelato\",\n \"gourmet\": \"Specialty Food\",\n \"candy\": \"Candy Stores\",\n \"cheese\": \"Cheese Shops\",\n \"chocolate\": \"Chocolatiers & Shops\",\n \"ethnicmarkets\": \"Ethnic Food\",\n \"healthmarkets\": \"Health Markets\",\n \"herbsandspices\": \"Herbs & Spices\",\n \"markets\": \"Fruits & Veggies\",\n \"meats\": \"Meat Shops\",\n \"seafoodmarkets\": \"Seafood Markets\",\n \"grocery\": \"Grocery\",\n \"icecream\": \"Ice Cream & Frozen Yogurt\",\n \"internetcafe\": \"Internet Cafes\",\n \"juicebars\": \"Juice Bars & Smoothies\",\n \"pretzels\": \"Pretzels\",\n \"shavedice\": \"Shaved Ice\",\n \"streetvendors\": \"Street Vendors\",\n \"tea\": \"Tea Rooms\",\n \"health\": \"Health & Medical\",\n \"acupuncture\": \"Acupuncture\",\n \"assistance\": \"Assistance\",\n \"c_and_mh\": \"Counseling & Mental Health\",\n \"cannabis_clinics\": \"Cannabis Clinics\",\n \"chiropractors\": \"Chiropractors\",\n \"dentists\": \"Dentists\",\n \"cosmeticdentists\": \"Cosmetic Dentists\",\n \"endodontists\": \"Endodontists\",\n \"generaldentistry\": \"General Dentistry\",\n \"oralsurgeons\": \"Oral Surgeons\",\n \"orthodontists\": \"Orthodontists\",\n \"pediatric_dentists\": \"Pediatric Dentists\",\n \"periodontists\": \"Periodontists\",\n \"diagnosticservices\": \"Diagnostic Services\",\n \"diagnosticimaging\": \"Diagnostic Imaging\",\n \"laboratorytesting\": \"Laboratory Testing\",\n \"hearingaidproviders\": \"Hearing Aid Providers\",\n \"homehealthcare\": \"Home Health Care\",\n \"hospice\": \"Hospice\",\n \"hospitals\": \"Hospitals\",\n \"lactationservices\": \"Lactation Services\",\n \"laserlasikeyes\": \"Laser Eye Surgery/Lasik\",\n \"massage_therapy\": \"Massage Therapy\",\n \"medcenters\": \"Medical Centers\",\n \"medicalspa\": \"Medical Spas\",\n \"medicaltransportation\": \"Medical Transportation\",\n \"midwives\": \"Midwives\",\n \"nutritionists\": \"Nutritionists\",\n \"occupationaltherapy\": \"Occupational Therapy\",\n \"optometrists\": \"Optometrists\",\n \"pharmaceuticalsupplier\": \"Pharmaceutical Supplier\",\n \"pharmacy\": \"Pharmacy\",\n \"physicaltherapy\": \"Physical Therapy\",\n \"physicians\": \"Doctors\",\n \"addiction_specialist\": \"Addiction Specialist\",\n \"adolescent_medicine\": \"Adolescent Medicine Specialist\",\n \"allergist\": \"Allergists\",\n \"allergist_immunologist\": \"Allergist / Immunologist\",\n \"anesthesiologists\": \"Anesthesiologists\",\n \"audiologist\": \"Audiologist\",\n \"bariatric_surgeon\": \"Bariatric Surgeon\",\n \"behavioral_medicine\": \"Behavioral Medicine Specialist\",\n \"breast_surgeon\": \"Breast Surgeon\",\n \"cardiac_surgeon\": \"Cardiac Surgeon\",\n \"cardiology\": \"Cardiologists\",\n \"cardiothoracic_surgeon\": \"Cardiothoracic Surgeon\",\n \"colorectal_surgeon\": \"Colorectal Surgeon\",\n \"cosmeticsurgeons\": \"Cosmetic Surgeons\",\n \"dermatology\": \"Dermatologists\",\n \"earnosethroat\": \"Ear Nose & Throat\",\n \"familydr\": \"Family Practice\",\n \"fertility\": \"Fertility\",\n \"flight_surgeon\": \"Flight Surgeon\",\n \"gastroenterologist\": \"Gastroenterologist\",\n \"general_practioner\": \"General Practitioner\",\n \"general_surgeon\": \"General Surgeon\",\n \"geriatrics\": \"Geriatrics\",\n \"gerontologist\": \"Gerontologists\",\n \"hematologist\": \"Hematologist\",\n \"hepatologist\": \"Hepatologist\",\n \"immunologist\": \"Immunologist\",\n \"infectious_disease_specialist\": \"Infectious Disease Specialist\",\n \"internalmed\": \"Internal Medicine\",\n \"naturopathic\": \"Naturopathic/Holistic\",\n \"nephrologist\": \"Nephrologist\",\n \"neurologist\": \"Neurologist\",\n \"neurosurgeon\": \"Neurosurgeon\",\n \"nuclear_medicine_specialist\": \"Nuclear Medicine Specialist\",\n \"obgyn\": \"Obstetricians & Gynecologists\",\n \"oncologist\": \"Oncologist\",\n \"opthamalogists\": \"Ophthalmologists\",\n \"orthopedists\": \"Orthopedists\",\n \"osteopathicphysicians\": \"Osteopathic Physicians\",\n \"pain_management_specialist\": \"Pain Management Specialist\",\n \"pediatricians\": \"Pediatricians\",\n \"plastic_surgeon\": \"Plastic Surgeon\",\n \"podiatrists\": \"Podiatrists\",\n \"proctologist\": \"Proctologists\",\n \"psychiatrists\": \"Psychiatrists\",\n \"pulmonologist\": \"Pulmonologist\",\n \"sleep_medicine\": \"Sleep Medicine Doctor\",\n \"sportsmed\": \"Sports Medicine\",\n \"tattooremoval\": \"Tattoo Removal\",\n \"thoracic_surgeon\": \"Thoracic Surgeon\",\n \"transplan_surgeon\": \"Transplant Surgeon\",\n \"trauma_surgeon\": \"Trauma Surgeon\",\n \"urologists\": \"Urologists\",\n \"vascular_surgeon\": \"Vascular Surgeon\",\n \"reflexology\": \"Reflexology\",\n \"rehabilitation_center\": \"Rehabilitation Center\",\n \"retirement_homes\": \"Retirement Homes\",\n \"speech_therapists\": \"Speech Therapists\",\n \"tcm\": \"Traditional Chinese Medicine\",\n \"urgent_care\": \"Urgent Care\",\n \"weightlosscenters\": \"Weight Loss Centers\",\n \"homeservices\": \"Home Services\",\n \"blinds\": \"Shades & Blinds\",\n \"buildingsupplies\": \"Building Supplies\",\n \"carpeting\": \"Carpeting\",\n \"carpetinstallation\": \"Carpet Installation\",\n \"chimneyandfireplacecleaning\": \"Chimney & Fireplace Cleaning\",\n \"constructioncompany\": \"Construction Company\",\n \"contractors\": \"Contractors\",\n \"damagerestoration\": \"Damage Restoration\",\n \"electricians\": \"Electricians\",\n \"flooring\": \"Flooring\",\n \"garage_door_services\": \"Garage Door Services\",\n \"gardeners\": \"Gardeners\",\n \"handyman\": \"Handyman\",\n \"home_inspectors\": \"Home Inspectors\",\n \"home_organization\": \"Home Organization\",\n \"homecleaning\": \"Home Cleaning\",\n \"hometheatreinstallation\": \"Home Theatre Installation\",\n \"homewindowtinting\": \"Home Window Tinting\",\n \"hvac\": \"Heating & Air Conditioning/HVAC\",\n \"interiordesign\": \"Interior Design\",\n \"irrigation\": \"Irrigation\",\n \"isps\": \"Internet Service Providers\",\n \"landscapearchitects\": \"Landscape Architects\",\n \"landscaping\": \"Landscaping\",\n \"lighting\": \"Lighting Fixtures & Equipment\",\n \"locksmiths\": \"Keys & Locksmiths\",\n \"masonry_concrete\": \"Masonry/Concrete\",\n \"movers\": \"Movers\",\n \"painters\": \"Painters\",\n \"plumbing\": \"Plumbing\",\n \"poolcleaners\": \"Pool Cleaners\",\n \"realestate\": \"Real Estate\",\n \"commercialrealestate\": \"Commercial Real Estate\",\n \"mortgagebrokers\": \"Mortgage Brokers\",\n \"prefabricated\": \"Prefabricated\",\n \"propertymgmt\": \"Property Management\",\n \"realestateagents\": \"Real Estate Agents\",\n \"realestatesvcs\": \"Real Estate Services\",\n \"sharedofficespaces\": \"Shared Office Spaces\",\n \"roofing\": \"Roofing\",\n \"securitysystems\": \"Security Systems\",\n \"solarinstallation\": \"Solar Installation\",\n \"televisionserviceproviders\": \"Television Service Providers\",\n \"treeservices\": \"Tree Services\",\n \"utilities\": \"Utilities\",\n \"windowwashing\": \"Window Washing\",\n \"hotelstravel\": \"Hotels & Travel\",\n \"airports\": \"Airports\",\n \"bedbreakfast\": \"Bed & Breakfast\",\n \"campgrounds\": \"Campgrounds\",\n \"carrental\": \"Car Rental\",\n \"guesthouses\": \"Guest Houses\",\n \"hostels\": \"Hostels\",\n \"hotels\": \"Hotels\",\n \"motorcycle_rental\": \"Motorcycle Rental\",\n \"resorts\": \"Resorts\",\n \"rvparks\": \"RV Parks\",\n \"rvrental\": \"RV Rental\",\n \"skiresorts\": \"Ski Resorts\",\n \"tours\": \"Tours\",\n \"trainstations\": \"Train Stations\",\n \"transport\": \"Transportation\",\n \"airlines\": \"Airlines\",\n \"airport_shuttles\": \"Airport Shuttles\",\n \"limos\": \"Limos\",\n \"publictransport\": \"Public Transportation\",\n \"taxis\": \"Taxis\",\n \"travelservices\": \"Travel Services\",\n \"vacation_rentals\": \"Vacation Rentals\",\n \"vacationrentalagents\": \"Vacation Rental Agents\",\n \"industgoodsmanu\": \"Industrial Goods and Manufacturing\",\n \"manufacturer\": \"Manufacturer\",\n \"localservices\": \"Local Services\",\n \"bailbondsmen\": \"Bail Bondsmen\",\n \"bike_repair_maintenance\": \"Bike Repair/Maintenance\",\n \"carpet_cleaning\": \"Carpet Cleaning\",\n \"childcare\": \"Child Care & Day Care\",\n \"copyshops\": \"Printing Services\",\n \"couriers\": \"Couriers & Delivery Services\",\n \"drycleaninglaundry\": \"Dry Cleaning & Laundry\",\n \"electronicsrepair\": \"Electronics Repair\",\n \"equipmentrental\": \"Equipment Rental\",\n \"fireprotectionequipmentsupplier\": \"Fire Protection Equipment Supplier\",\n \"fireprotectionservice\": \"Fire Protection Service\",\n \"fireprotectionsystemsupplier\": \"Fire Protection System Supplier\",\n \"funeralservices\": \"Funeral Services & Cemeteries\",\n \"homeappliancerepair\": \"Appliances & Repair\",\n \"itservices\": \"IT Services & Computer Repair\",\n \"datarecovery\": \"Data Recovery\",\n \"mobilephonerepair\": \"Mobile Phone Repair\",\n \"jewelryrepair\": \"Jewelry Repair\",\n \"junkremovalandhauling\": \"Junk Removal & Hauling\",\n \"nannys\": \"Nanny Services\",\n \"nonprofit\": \"Community Service/Non-Profit\",\n \"notaries\": \"Notaries\",\n \"pest_control\": \"Pest Control\",\n \"recording_studios\": \"Recording & Rehearsal Studios\",\n \"recyclingcenter\": \"Recycling Center\",\n \"reupholstery\": \"Furniture Reupholstery\",\n \"screen_printing_tshirt_printing\": \"Screen Printing/T-Shirt Printing\",\n \"screenprinting\": \"Screen Printing\",\n \"selfstorage\": \"Self Storage\",\n \"sewingalterations\": \"Sewing & Alterations\",\n \"shipping_centers\": \"Shipping Centers\",\n \"shoerepair\": \"Shoe Repair\",\n \"shredding_service\": \"Shredding Service\",\n \"snowremoval\": \"Snow Removal\",\n \"software_development\": \"Software Development\",\n \"watch_repair\": \"Watch Repair\",\n \"massmedia\": \"Mass Media\",\n \"printmedia\": \"Print Media\",\n \"radiostations\": \"Radio Stations\",\n \"televisionstations\": \"Television Stations\",\n \"mineag\": \"Mining & Agriculture\",\n \"ag\": \"Agriculture\",\n \"farmequipmentseller\": \"Farm Equipment Seller\",\n \"horticulture\": \"Horticulture\",\n \"livestock\": \"Livestock\",\n \"mining\": \"Mining\",\n \"nightlife\": \"Nightlife\",\n \"adultentertainment\": \"Adult Entertainment\",\n \"bars\": \"Bars\",\n \"champagne_bars\": \"Champagne Bars\",\n \"cocktailbars\": \"Cocktail Bars\",\n \"divebars\": \"Dive Bars\",\n \"gaybars\": \"Gay Bars\",\n \"hookah_bars\": \"Hookah Bars\",\n \"lounges\": \"Lounges\",\n \"pubs\": \"Pubs\",\n \"sportsbars\": \"Sports Bars\",\n \"wine_bars\": \"Wine Bars\",\n \"comedyclubs\": \"Comedy Clubs\",\n \"countrydancehalls\": \"Country Dance Halls\",\n \"danceclubs\": \"Dance Clubs\",\n \"karaoke\": \"Karaoke\",\n \"pianobars\": \"Piano Bars\",\n \"poolhalls\": \"Pool Halls\",\n \"other\": \"Other\",\n \"pets\": \"Pets\",\n \"animalshelters\": \"Animal Shelters\",\n \"horse_boarding\": \"Horse Boarding\",\n \"petservices\": \"Pet Services\",\n \"dogwalkers\": \"Dog Walkers\",\n \"groomer\": \"Pet Groomers\",\n \"pet_sitting\": \"Pet Boarding/Pet Sitting\",\n \"pet_training\": \"Pet Training\",\n \"petstore\": \"Pet Stores\",\n \"vet\": \"Veterinarians\",\n \"professional\": \"Professional Services\",\n \"accountants\": \"Accountants\",\n \"advertising\": \"Advertising\",\n \"architects\": \"Architects\",\n \"audio_video_consulting\": \"Audio Visual Consultant\",\n \"boatrepair\": \"Boat Repair\",\n \"careercounseling\": \"Career Counseling\",\n \"editorialservices\": \"Editorial Services\",\n \"employmentagencies\": \"Employment Agencies\",\n \"graphicdesign\": \"Graphic Design\",\n \"lawyers\": \"Lawyers\",\n \"bankruptcy\": \"Bankruptcy Law\",\n \"businesslawyers\": \"Business Law\",\n \"criminaldefense\": \"Criminal Defense Law\",\n \"divorce\": \"Divorce & Family Law\",\n \"duilawyers\": \"DUI Law\",\n \"employmentlawyers\": \"Employment Law\",\n \"estateplanning\": \"Estate Planning Law\",\n \"general_litigation\": \"General Litigation\",\n \"immigrationlawyers\": \"Immigration Law\",\n \"personal_injury\": \"Personal Injury Law\",\n \"realestatelawyers\": \"Real Estate Law\",\n \"legalservices\": \"Legal Services\",\n \"lifecoach\": \"Life Coach\",\n \"marketing\": \"Marketing\",\n \"matchmakers\": \"Matchmakers\",\n \"officecleaning\": \"Office Cleaning\",\n \"payroll\": \"Payroll Services\",\n \"personalassistants\": \"Personal Assistants\",\n \"privateinvestigation\": \"Private Investigation\",\n \"publicrelations\": \"Public Relations\",\n \"talentagencies\": \"Talent Agencies\",\n \"taxidermy\": \"Taxidermy\",\n \"translationservices\": \"Translation Services\",\n \"videofilmproductions\": \"Video/Film Production\",\n \"web_design\": \"Web Design\",\n \"publicservicesgovt\": \"Public Services & Government\",\n \"courthouses\": \"Courthouses\",\n \"departmentsofmotorvehicles\": \"Departments of Motor Vehicles\",\n \"embassy\": \"Embassy\",\n \"firedepartments\": \"Fire Departments\",\n \"landmarks\": \"Landmarks & Historical Buildings\",\n \"libraries\": \"Libraries\",\n \"policedepartments\": \"Police Departments\",\n \"postoffices\": \"Post Offices\",\n \"apartments\": \"Apartments\",\n \"homestaging\": \"Home Staging\",\n \"university_housing\": \"University Housing\",\n \"religiousorgs\": \"Religious Organizations\",\n \"buddhist_temples\": \"Buddhist Temples\",\n \"churches\": \"Churches\",\n \"hindu_temples\": \"Hindu Temples\",\n \"mosques\": \"Mosques\",\n \"synagogues\": \"Synagogues\",\n \"restaurants\": \"Restaurants\",\n \"afghani\": \"Afghan\",\n \"african\": \"African\",\n \"senegalese\": \"Senegalese\",\n \"southafrican\": \"South African\",\n \"arabian\": \"Arabian\",\n \"argentine\": \"Argentine\",\n \"armenian\": \"Armenian\",\n \"asianfusion\": \"Asian Fusion\",\n \"australian\": \"Australian\",\n \"austrian\": \"Austrian\",\n \"bangladeshi\": \"Bangladeshi\",\n \"basque\": \"Basque\",\n \"bbq\": \"Barbeque\",\n \"belgian\": \"Belgian\",\n \"brasseries\": \"Brasseries\",\n \"brazilian\": \"Brazilian\",\n \"breakfast_brunch\": \"Breakfast & Brunch\",\n \"british\": \"British\",\n \"buffets\": \"Buffets\",\n \"burgers\": \"Burgers\",\n \"burmese\": \"Burmese\",\n \"cafes\": \"Cafes\",\n \"cafeteria\": \"Cafeteria\",\n \"cajun\": \"Cajun/Creole\",\n \"cambodian\": \"Cambodian\",\n \"caribbean\": \"Caribbean\",\n \"dominican\": \"Dominican\",\n \"haitian\": \"Haitian\",\n \"puertorican\": \"Puerto Rican\",\n \"trinidadian\": \"Trinidadian\",\n \"catalan\": \"Catalan\",\n \"cheesesteaks\": \"Cheesesteaks\",\n \"chicken_wings\": \"Chicken Wings\",\n \"chinese\": \"Chinese\",\n \"cantonese\": \"Cantonese\",\n \"dimsum\": \"Dim Sum\",\n \"shanghainese\": \"Shanghainese\",\n \"szechuan\": \"Szechuan\",\n \"comfortfood\": \"Comfort Food\",\n \"creperies\": \"Creperies\",\n \"cuban\": \"Cuban\",\n \"czech\": \"Czech\",\n \"delis\": \"Delis\",\n \"diners\": \"Diners\",\n \"ethiopian\": \"Ethiopian\",\n \"filipino\": \"Filipino\",\n \"fishnchips\": \"Fish & Chips\",\n \"fondue\": \"Fondue\",\n \"food_court\": \"Food Court\",\n \"foodstands\": \"Food Stands\",\n \"french\": \"French\",\n \"gastropubs\": \"Gastropubs\",\n \"german\": \"German\",\n \"gluten_free\": \"Gluten-Free\",\n \"greek\": \"Greek\",\n \"halal\": \"Halal\",\n \"hawaiian\": \"Hawaiian\",\n \"himalayan\": \"Himalayan/Nepalese\",\n \"hotdog\": \"Hot Dogs\",\n \"hotdogs\": \"Fast Food\",\n \"hotpot\": \"Hot Pot\",\n \"hungarian\": \"Hungarian\",\n \"iberian\": \"Iberian\",\n \"indonesian\": \"Indonesian\",\n \"indpak\": \"Indian\",\n \"irish\": \"Irish\",\n \"italian\": \"Italian\",\n \"japanese\": \"Japanese\",\n \"korean\": \"Korean\",\n \"kosher\": \"Kosher\",\n \"laotian\": \"Laotian\",\n \"latin\": \"Latin American\",\n \"colombian\": \"Colombian\",\n \"salvadoran\": \"Salvadoran\",\n \"venezuelan\": \"Venezuelan\",\n \"malaysian\": \"Malaysian\",\n \"mediterranean\": \"Mediterranean\",\n \"mexican\": \"Mexican\",\n \"mideastern\": \"Middle Eastern\",\n \"egyptian\": \"Egyptian\",\n \"lebanese\": \"Lebanese\",\n \"modern_european\": \"Modern European\",\n \"mongolian\": \"Mongolian\",\n \"moroccan\": \"Moroccan\",\n \"newamerican\": \"American (New)\",\n \"pakistani\": \"Pakistani\",\n \"persian\": \"Persian/Iranian\",\n \"peruvian\": \"Peruvian\",\n \"pizza\": \"Pizza\",\n \"polish\": \"Polish\",\n \"portuguese\": \"Portuguese\",\n \"raw_food\": \"Live/Raw Food\",\n \"russian\": \"Russian\",\n \"salad\": \"Salad\",\n \"sandwiches\": \"Sandwiches\",\n \"scandinavian\": \"Scandinavian\",\n \"scottish\": \"Scottish\",\n \"seafood\": \"Seafood\",\n \"singaporean\": \"Singaporean\",\n \"slovakian\": \"Slovakian\",\n \"soulfood\": \"Soul Food\",\n \"soup\": \"Soup\",\n \"southern\": \"Southern\",\n \"spanish\": \"Spanish\",\n \"steak\": \"Steakhouses\",\n \"sushi\": \"Sushi Bars\",\n \"taiwanese\": \"Taiwanese\",\n \"tapas\": \"Tapas Bars\",\n \"tapasmallplates\": \"Tapas/Small Plates\",\n \"tex_mex\": \"Tex-Mex\",\n \"thai\": \"Thai\",\n \"tradamerican\": \"American (Traditional)\",\n \"turkish\": \"Turkish\",\n \"ukrainian\": \"Ukrainian\",\n \"vegan\": \"Vegan\",\n \"vegetarian\": \"Vegetarian\",\n \"vietnamese\": \"Vietnamese\",\n \"shopping\": \"Shopping\",\n \"adult\": \"Adult\",\n \"antiques\": \"Antiques\",\n \"artsandcrafts\": \"Arts & Crafts\",\n \"artsupplies\": \"Art Supplies\",\n \"costumes\": \"Costumes\",\n \"fabricstores\": \"Fabric Stores\",\n \"framing\": \"Framing\",\n \"stationery\": \"Cards & Stationery\",\n \"auctionhouses\": \"Auction Houses\",\n \"baby_gear\": \"Baby Gear & Furniture\",\n \"bespoke\": \"Bespoke Clothing\",\n \"bridal\": \"Bridal\",\n \"cannabis_store\": \"Cannabis Store\",\n \"computers\": \"Computers\",\n \"deptstores\": \"Department Stores\",\n \"discountstore\": \"Discount Store\",\n \"drugstores\": \"Drugstores\",\n \"electronics\": \"Electronics\",\n \"fashion\": \"Fashion\",\n \"accessories\": \"Accessories\",\n \"childcloth\": \"Children's Clothing\",\n \"formalwear\": \"Formal Wear\",\n \"hats\": \"Hats\",\n \"leather\": \"Leather Goods\",\n \"lingerie\": \"Lingerie\",\n \"maternity\": \"Maternity Wear\",\n \"menscloth\": \"Men's Clothing\",\n \"plus_size_fashion\": \"Plus Size Fashion\",\n \"shoes\": \"Shoe Stores\",\n \"sportswear\": \"Sports Wear\",\n \"surfshop\": \"Surf Shop\",\n \"swimwear\": \"Swimwear\",\n \"vintage\": \"Used, Vintage & Consignment\",\n \"womenscloth\": \"Women's Clothing\",\n \"fireworks\": \"Fireworks\",\n \"fleamarkets\": \"Flea Markets\",\n \"flowers\": \"Flowers & Gifts\",\n \"florists\": \"Florists\",\n \"giftshops\": \"Gift Shops\",\n \"golfshops\": \"Golf Equipment Shops\",\n \"guns_and_ammo\": \"Guns & Ammo\",\n \"hobbyshops\": \"Hobby Shops\",\n \"homeandgarden\": \"Home & Garden\",\n \"appliances\": \"Appliances\",\n \"furniture\": \"Furniture Stores\",\n \"gardening\": \"Nurseries & Gardening\",\n \"hardware\": \"Hardware Stores\",\n \"homedecor\": \"Home Decor\",\n \"hottubandpool\": \"Hot Tub & Pool\",\n \"kitchenandbath\": \"Kitchen & Bath\",\n \"mattresses\": \"Mattresses\",\n \"jewelry\": \"Jewelry\",\n \"knittingsupplies\": \"Knitting Supplies\",\n \"luggage\": \"Luggage\",\n \"media\": \"Books, Mags, Music & Video\",\n \"bookstores\": \"Bookstores\",\n \"comicbooks\": \"Comic Books\",\n \"mags\": \"Newspapers & Magazines\",\n \"musicvideo\": \"Music & DVDs\",\n \"videoandgames\": \"Videos & Video Game Rental\",\n \"vinyl_records\": \"Vinyl Records\",\n \"medicalsupplies\": \"Medical Supplies\",\n \"mobilephones\": \"Mobile Phones\",\n \"motorcyclinggear\": \"Motorcycle Gear\",\n \"musicalinstrumentsandteachers\": \"Musical Instruments & Teachers\",\n \"officeequipment\": \"Office Equipment\",\n \"opticians\": \"Eyewear & Opticians\",\n \"outlet_stores\": \"Outlet Stores\",\n \"pawn\": \"Pawn Shops\",\n \"personal_shopping\": \"Personal Shopping\",\n \"photographystores\": \"Photography Stores & Services\",\n \"poolbilliards\": \"Pool & Billiards\",\n \"popupshops\": \"Pop-up Shops\",\n \"shoppingcenters\": \"Shopping Centers\",\n \"sportgoods\": \"Sporting Goods\",\n \"bikes\": \"Bikes\",\n \"golfequipment\": \"Golf Equipment\",\n \"outdoorgear\": \"Outdoor Gear\",\n \"thrift_stores\": \"Thrift Stores\",\n \"tobaccoshops\": \"Tobacco Shops\",\n \"toys\": \"Toy Stores\",\n \"trophyshops\": \"Trophy Shops\",\n \"uniforms\": \"Uniforms\",\n \"watches\": \"Watches\",\n \"wholesale_stores\": \"Wholesale Stores\",\n \"wigs\": \"Wigs\",\n \"transportation\": \"Transportation\",\n \"air\": \"Air\",\n \"railway\": \"Railway\",\n \"road\": \"Road\",\n \"water\": \"Water\",\n \"doormanufacturer\": \"Door Manufacturer\",\n \"doorsupplier\": \"Door Supplier\",\n \"excavatingcontractor\": \"Excavating Contractor\",\n \"railingcontractor\": \"Railing Contractor\",\n \"windowsinstallation\": \"Windows Installation\",\n \"doorshop\": \"Door Shop\",\n \"showerdoorshop\": \"Shower Door Shop\",\n \"linens_store\": \"Linens Store\",\n \"laundry_service\": \"Laundry Services\",\n \"janitorial_service\": \"Janitorial Services\",\n \"restaurant_supply_store\": \"Restaurant Supply Store\",\n \"ict\": \"Information and Communication Technology\",\n \"telecommunicationserviceprovider\": \"Telecommunications Service Provider\",\n \"managedserviceprovider\": \"Managed Service Provider\",\n \"valueaddedreseller\": \"Value Added Reseller\",\n \"cablecompany\": \"Cable Company\",\n \"internetserviceprovider\": \"Internet Service Provider\",\n \"signshop\": \"Sign Shop\"\n }\n }\n}\n","export const WEBLATE_COMPONENT_NAME = 'common/taxonomy-i18n';\n","import { TranslateModule } from '@ngx-translate/core';\nimport { NgModule } from '@angular/core';\nimport { LexiconModule } from '@galaxy/lexicon';\nimport { TaxonomyComponent } from './taxonomy.component';\nimport baseTranslation from './assets/i18n/en_devel.json';\nimport { WEBLATE_COMPONENT_NAME } from './constants';\n\n@NgModule({\n imports: [\n TranslateModule,\n LexiconModule.forChild({\n componentName: WEBLATE_COMPONENT_NAME,\n baseTranslation: baseTranslation,\n }),\n ],\n exports: [TaxonomyComponent],\n declarations: [TaxonomyComponent],\n providers: [],\n})\nexport class TaxonomyI18nModule {}\n","export { TaxonomyI18nModule } from './taxonomy-i18n.module';\nexport { TaxonomyComponent } from './taxonomy.component';\n","export * from './lib/index';\n","import { Salesperson, SalespersonRequestInterface } from './interfaces/salesperson.interface';\n\nexport class SalespersonResponse implements Salesperson {\n partnerId: string;\n marketId: string;\n salespersonId: string;\n firstName: string;\n lastName: string;\n email: string;\n fullName: string;\n\n static fromProto(proto: any): SalespersonResponse {\n if (!proto) {\n return null;\n }\n const m = new SalespersonResponse();\n for (const key in proto) {\n if (Object.prototype.hasOwnProperty.call(proto, key)) {\n m[key] = proto[key];\n }\n }\n\n return m;\n }\n\n constructor(kwargs?: Salesperson) {\n if (!kwargs) {\n return;\n }\n for (const key in kwargs) {\n if (Object.prototype.hasOwnProperty.call(kwargs, key)) {\n this[key] = kwargs[key];\n }\n }\n }\n\n toApiJson(): object {\n if (\n typeof this.partnerId === 'undefined' &&\n typeof this.marketId === 'undefined' &&\n typeof this.salespersonId === 'undefined' &&\n typeof this.firstName === 'undefined' &&\n typeof this.lastName === 'undefined'\n ) {\n return null;\n }\n\n return {\n partnerId: typeof this.partnerId !== 'undefined' ? this.partnerId : null,\n marketId: typeof this.marketId !== 'undefined' ? this.marketId : null,\n salespersonId: typeof this.salespersonId !== 'undefined' ? this.salespersonId : null,\n firstName: typeof this.firstName !== 'undefined' ? this.firstName : null,\n lastName: typeof this.lastName !== 'undefined' ? this.lastName : null,\n email: typeof this.email !== 'undefined' ? this.email : null,\n fullName: typeof this.fullName !== 'undefined' ? this.fullName : null,\n };\n }\n}\n\nexport class SalespersonRequest implements SalespersonRequestInterface {\n partnerId: string;\n marketIds: string[];\n includeNullMarket: boolean;\n\n static fromProto(proto: any): SalespersonRequest {\n if (!proto) {\n return null;\n }\n const m = new SalespersonRequest();\n for (const key in proto) {\n if (Object.prototype.hasOwnProperty.call(proto, key)) {\n m[key] = proto[key];\n }\n }\n return m;\n }\n\n constructor(kwargs?: SalespersonRequestInterface) {\n if (!kwargs) {\n return;\n }\n for (const key in kwargs) {\n if (Object.prototype.hasOwnProperty.call(kwargs, key)) {\n this[key] = kwargs[key];\n }\n }\n }\n\n toApiJson(): object {\n if (\n typeof this.partnerId === 'undefined' &&\n typeof this.marketIds === 'undefined' &&\n typeof this.includeNullMarket === 'undefined'\n ) {\n return null;\n }\n\n return {\n pid: typeof this.partnerId !== 'undefined' ? this.partnerId : null,\n marketId: typeof this.marketIds !== 'undefined' ? this.marketIds : null,\n includeNullMarketFlag: typeof this.includeNullMarket !== 'undefined' ? this.includeNullMarket : null,\n };\n }\n}\n","import { Injectable } from '@angular/core';\nimport { Observable } from 'rxjs';\nimport { Environment, EnvironmentService } from '@galaxy/core';\nimport { HttpClient, HttpHeaders, HttpParams } from '@angular/common/http';\nimport { SalespersonRequest, SalespersonResponse } from './salesperson.objects';\nimport { Salesperson } from './interfaces/salesperson.interface';\nimport { SalespersonRequestInterface } from './interfaces/salesperson.interface';\nimport { map, share } from 'rxjs/operators';\n\n/**\n * @deprecated Use SalespersonService from sales: https://github.com/vendasta/sales/blob/master/sdks/typescript/src/sales_sdk/src/lib/salesperson/salesperson.service.ts\n */\n@Injectable()\nexport class SalespersonApiService {\n private _host: string;\n private lookupUrl = `${this.host}/internalApi/v1/salesperson/lookup/`;\n\n constructor(private http: HttpClient, private environmentService: EnvironmentService) {}\n\n private apiOptions(): { headers: HttpHeaders; withCredentials: boolean } {\n return {\n headers: new HttpHeaders({\n 'Content-Type': 'application/x-www-form-urlencoded',\n }),\n withCredentials: true,\n };\n }\n\n private get host(): string {\n if (this._host) {\n return this._host;\n }\n\n switch (this.environmentService.getEnvironment()) {\n case Environment.LOCAL:\n this._host = 'http://localhost:8086';\n break;\n case Environment.TEST:\n this._host = 'https://salestool-test.appspot.com';\n break;\n case Environment.DEMO:\n this._host = 'https://salestool-demo.appspot.com';\n break;\n case Environment.PROD:\n this._host = 'https://salestool-prod.appspot.com';\n break;\n }\n return this._host;\n }\n\n /**\n * @deprecated Use SalespersonService from sales: https://github.com/vendasta/sales/blob/master/sdks/typescript/src/sales_sdk/src/lib/salesperson/salesperson.service.ts\n */\n lookup(r: SalespersonRequest | SalespersonRequestInterface): Observable {\n const request = (r).toApiJson ? r : new SalespersonRequest(r);\n return this.http\n .post(this.lookupUrl, null, { ...this.apiOptions(), params: request.toApiJson() as HttpParams })\n .pipe(\n map((resp) => resp.data),\n map((resp) => resp.map((salespersonData: Salesperson) => SalespersonResponse.fromProto(salespersonData))),\n share(),\n );\n }\n}\n","import { Injectable } from '@angular/core';\nimport { Observable } from 'rxjs';\nimport { map } from 'rxjs/operators';\n\nimport { Salesperson } from './interfaces/salesperson.interface';\nimport { SalespersonApiService } from './salesperson.api.service';\n\n@Injectable()\n/**\n * @deprecated Use SalespersonService from sales: https://github.com/vendasta/sales/blob/master/sdks/typescript/src/sales_sdk/src/lib/salesperson/salesperson.service.ts\n */\nexport class SalespersonService {\n constructor(private salespersonApiService: SalespersonApiService) {}\n\n /**\n * @deprecated Use SalespersonService from sales: https://github.com/vendasta/sales/blob/master/sdks/typescript/src/sales_sdk/src/lib/salesperson/salesperson.service.ts\n */\n lookup(partnerId: string, marketIds?: string[], includeNullMarket?: boolean): Observable {\n return this.salespersonApiService\n .lookup({ partnerId, marketIds, includeNullMarket })\n .pipe(map((response) => this.handleResponse(response)));\n }\n\n /**\n * @deprecated Use SalespersonService from sales: https://github.com/vendasta/sales/blob/master/sdks/typescript/src/sales_sdk/src/lib/salesperson/salesperson.service.ts\n */\n private handleResponse(data: any): Salesperson[] {\n return data.map((sp: any) => {\n return {\n partnerId: sp.pid,\n marketId: sp.marketId,\n salespersonId: sp.salesPersonId,\n firstName: sp.firstName,\n lastName: sp.lastName,\n fullName: this.getFullName(sp.firstName, sp.lastName),\n email: sp.email,\n };\n });\n }\n\n private getFullName(firstName: string, lastName: string): string {\n return `${firstName || ''} ${lastName || ''}`.trim();\n }\n}\n","import { NgModule } from '@angular/core';\nimport { SalespersonApiService } from './salesperson.api.service';\nimport { SalespersonService } from './salesperson.service';\n\n@NgModule({\n imports: [],\n providers: [SalespersonService, SalespersonApiService],\n declarations: [],\n exports: [],\n})\nexport class SalespersonServiceModule {}\n","export { Salesperson } from './interfaces/salesperson.interface';\nexport { SalespersonService } from './salesperson.service';\nexport { SalespersonServiceModule } from './salesperson.module';\n","export * from './lib/index';\n","import { HttpResponse } from '@angular/common/http';\nimport { Injectable } from '@angular/core';\nimport { Competitor, CompetitorApiService, CreateCompetitorResponse } from '@vendasta/account-group';\nimport { Observable, of } from 'rxjs';\nimport { catchError, map } from 'rxjs/operators';\n\n@Injectable()\nexport class CompetitorsTabService {\n constructor(private api: CompetitorApiService) {}\n\n public getCompetitors(businessId: string, cursor: string, pageSize: number): Observable {\n const req = { businessId: businessId, pagingOptions: { cursor: cursor, pageSize: pageSize } };\n return this.api.getCompetitors(req).pipe(\n map((res) => res.competitors),\n catchError(() => of([])),\n );\n }\n\n public create(businessId: string, competitor: any): Observable {\n const req = {\n businessId: businessId,\n location: {\n name: competitor.name,\n url: competitor.url,\n },\n };\n return this.api.create(req);\n }\n\n public update(businessId: string, competitor: any): Observable> {\n const req = {\n competitor: {\n businessId: businessId,\n competitorId: competitor.competitorId,\n location: {\n name: competitor.name,\n url: competitor.url,\n },\n },\n fieldMask: {\n paths: ['name', 'url'],\n },\n };\n return this.api.update(req);\n }\n\n public delete(businessId: string, competitorId: string): Observable> {\n const req = {\n businessId: businessId,\n competitorId: competitorId,\n };\n return this.api.delete(req);\n }\n}\n","import { CommonModule } from '@angular/common';\nimport { NgModule } from '@angular/core';\nimport { ReactiveFormsModule } from '@angular/forms';\nimport { MatButtonModule } from '@angular/material/button';\nimport { MatCardModule } from '@angular/material/card';\nimport { MatDialogModule } from '@angular/material/dialog';\nimport { MatIconModule } from '@angular/material/icon';\nimport { MatInputModule } from '@angular/material/input';\nimport { MatProgressSpinnerModule } from '@angular/material/progress-spinner';\nimport { TranslateModule } from '@ngx-translate/core';\nimport { GalaxyFormFieldModule } from '@vendasta/galaxy/form-field';\nimport { CompetitorsTabComponent } from './competitors-tab.component';\nimport { CompetitorsTabService } from './competitors-tab.service';\n\n@NgModule({\n declarations: [CompetitorsTabComponent],\n imports: [\n CommonModule,\n MatCardModule,\n MatButtonModule,\n MatIconModule,\n MatDialogModule,\n MatInputModule,\n MatProgressSpinnerModule,\n TranslateModule,\n ReactiveFormsModule,\n GalaxyFormFieldModule,\n ],\n providers: [CompetitorsTabService],\n exports: [CompetitorsTabComponent],\n})\nexport class CompetitorsTabModule {}\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { MatChipsModule } from '@angular/material/chips';\nimport { MatGridListModule } from '@angular/material/grid-list';\nimport { MediaTabGalleryComponent } from './media-tab-gallery.component';\nimport { VaActionMenuModule } from '@vendasta/uikit';\nimport { TranslateModule } from '@ngx-translate/core';\n@NgModule({\n declarations: [MediaTabGalleryComponent],\n imports: [CommonModule, MatGridListModule, MatChipsModule, VaActionMenuModule, TranslateModule],\n exports: [MediaTabGalleryComponent],\n})\nexport class MediaTabGalleryModule {}\n","import { CommonModule } from '@angular/common';\nimport { NgModule } from '@angular/core';\nimport { ReactiveFormsModule } from '@angular/forms';\nimport { MatButtonModule } from '@angular/material/button';\nimport { MatDialogModule } from '@angular/material/dialog';\nimport { MatIconModule } from '@angular/material/icon';\nimport { MatProgressBarModule } from '@angular/material/progress-bar';\nimport { TranslateModule } from '@ngx-translate/core';\nimport { VaFormsModule } from '@vendasta/forms';\nimport { UploadImageDialogComponent } from './upload-image-dialog.component';\n\n@NgModule({\n imports: [\n CommonModule,\n VaFormsModule,\n MatIconModule,\n MatButtonModule,\n MatProgressBarModule,\n ReactiveFormsModule,\n MatDialogModule,\n TranslateModule,\n ],\n declarations: [UploadImageDialogComponent],\n providers: [],\n exports: [UploadImageDialogComponent],\n})\nexport class UploadImageDialogModule {}\n","import { CommonModule } from '@angular/common';\nimport { NgModule } from '@angular/core';\nimport { MatButtonModule } from '@angular/material/button';\nimport { MatCardModule } from '@angular/material/card';\nimport { MatDialogModule } from '@angular/material/dialog';\nimport { MatIconModule } from '@angular/material/icon';\nimport { MatProgressBarModule } from '@angular/material/progress-bar';\nimport { TranslateModule } from '@ngx-translate/core';\nimport { SnackbarService } from '@vendasta/galaxy/snackbar-service';\nimport { MediaTabGalleryModule } from './media-tab-gallery/media-tab-gallery.module';\nimport { ConfirmationModalComponent, MediaTabComponent } from './media-tab.component';\nimport { MediaTabService } from './media-tab.service';\nimport { UploadImageDialogModule } from './upload-image-dialog/upload-image-dialog.module';\n\n@NgModule({\n declarations: [MediaTabComponent, ConfirmationModalComponent],\n imports: [\n CommonModule,\n MatCardModule,\n MatButtonModule,\n MediaTabGalleryModule,\n MatProgressBarModule,\n UploadImageDialogModule,\n MediaTabGalleryModule,\n MatIconModule,\n MatDialogModule,\n TranslateModule,\n ],\n providers: [MediaTabService, SnackbarService],\n exports: [MediaTabComponent],\n})\nexport class MediaTabModule {}\n","'use strict';\n\n// do not edit .js files directly - edit src/index.jst\nmodule.exports = function equal(a, b) {\n if (a === b) return true;\n if (a && b && typeof a == 'object' && typeof b == 'object') {\n if (a.constructor !== b.constructor) return false;\n var length, i, keys;\n if (Array.isArray(a)) {\n length = a.length;\n if (length != b.length) return false;\n for (i = length; i-- !== 0;) if (!equal(a[i], b[i])) return false;\n return true;\n }\n if (a.constructor === RegExp) return a.source === b.source && a.flags === b.flags;\n if (a.valueOf !== Object.prototype.valueOf) return a.valueOf() === b.valueOf();\n if (a.toString !== Object.prototype.toString) return a.toString() === b.toString();\n keys = Object.keys(a);\n length = keys.length;\n if (length !== Object.keys(b).length) return false;\n for (i = length; i-- !== 0;) if (!Object.prototype.hasOwnProperty.call(b, keys[i])) return false;\n for (i = length; i-- !== 0;) {\n var key = keys[i];\n if (!equal(a[key], b[key])) return false;\n }\n return true;\n }\n\n // true if both NaN, false otherwise\n return a !== a && b !== b;\n};","import { AbstractControl, ValidatorFn } from '@angular/forms';\n\nexport function totalLengthOfRepeatedFieldValidator(maxLength: number, friendlyName: string): ValidatorFn {\n return (control: AbstractControl): { [key: string]: any } => {\n if (!control.value) {\n return null;\n }\n if (control.value.length === 0) {\n return null;\n }\n\n const value = control.value.filter((val: string) => !!val).join(',');\n return value.length > maxLength\n ? {\n lengthOfRepeatedField: {\n maxLength: maxLength,\n friendlyName: friendlyName,\n },\n }\n : null;\n };\n}\n\n// Validation to ensure that all items in an array control have truthy values\nexport function arrayAllTruthyItemsRequired(): ValidatorFn {\n return (control: AbstractControl): { [key: string]: any } => {\n const values = (control.value || []).filter((v: any) => !!v);\n return values.length !== control.value.length ? { required: '' } : null;\n };\n}\n","import { HttpResponse } from '@angular/common/http';\nimport { Component, EventEmitter, Input, OnDestroy, OnInit, Output } from '@angular/core';\nimport {\n UntypedFormArray,\n UntypedFormBuilder,\n UntypedFormControl,\n UntypedFormGroup,\n ValidatorFn,\n Validators,\n} from '@angular/forms';\nimport {\n AccountGroup,\n AccountGroupService,\n ProjectionFilter,\n RichDataUpdateOperation,\n UpdateOperations,\n} from '@galaxy/account-group';\nimport {\n BusinessHoursUpdateOperation,\n UpdateOperations as LPUpdateOperations,\n ListingProfileService,\n MergeHours,\n SplitHours,\n} from '@galaxy/listing-profile-common';\nimport { PartnerApiService } from '@galaxy/marketplace-apps';\nimport { TranslateService } from '@ngx-translate/core';\nimport { SnackbarService } from '@vendasta/galaxy/snackbar-service';\nimport {\n BusinessHours,\n ListingProfile,\n RegularHoursPeriod,\n ProjectionFilter as LPProjectionFilter,\n} from '@vendasta/listing-products';\nimport { OrderFormOptionsInterface } from '@vendasta/store';\nimport equal from 'fast-deep-equal';\nimport { BehaviorSubject, EMPTY, Observable, Subscription, combineLatest, of } from 'rxjs';\nimport { catchError, debounceTime, filter, map, startWith, switchMap, tap } from 'rxjs/operators';\nimport { arrayAllTruthyItemsRequired, totalLengthOfRepeatedFieldValidator } from './validators';\n\ninterface BusinessSectionConfig {\n showHoO: boolean;\n showServices: boolean;\n showBrands: boolean;\n showDescription: boolean;\n showLongDescription: boolean;\n}\n\n@Component({\n selector: 'business-product-activation-prereq-form',\n templateUrl: './product-activation-prereq-form.component.html',\n styleUrls: ['./product-activation-prereq-form.component.scss'],\n})\nexport class ProductActivationPrereqFormComponent implements OnInit, OnDestroy {\n @Input() businessId: string;\n @Input() expanded = false;\n @Input() orderFormOptions: OrderFormOptionsInterface = {};\n\n @Input()\n set productIds(productIds: string[]) {\n this.productIds$$.next(productIds);\n }\n\n @Output() hasBusinessProductActivationPrereqFormEvent: EventEmitter = new EventEmitter();\n\n private productIds$$: BehaviorSubject = new BehaviorSubject([]);\n private sectionConfig$$: BehaviorSubject = new BehaviorSubject(null);\n private submitting$$: BehaviorSubject = new BehaviorSubject(false);\n private loading$$: BehaviorSubject = new BehaviorSubject(true);\n private business$: Observable;\n private listingProfile$: Observable;\n readonly productIds$: Observable = this.productIds$$.asObservable();\n readonly sectionConfig$: Observable = this.sectionConfig$$.asObservable();\n readonly submitting$: Observable = this.submitting$$.asObservable();\n readonly loading$: Observable = this.loading$$.asObservable();\n hasRestrictions$: Observable;\n\n private subscriptions: Subscription[] = [];\n\n businessActivationForm: UntypedFormGroup;\n servicesPlaceholder: string;\n brandsPlaceholder: string;\n\n currentSubmittedFormValues: any;\n public hasUnsavedChanges$$: BehaviorSubject = new BehaviorSubject(false);\n public hasUnsavedChanges$ = this.hasUnsavedChanges$$.asObservable();\n public isValid$: Observable = of(true);\n\n public static checkChipFieldValidity(chipField: any): boolean {\n if (!chipField) {\n return false;\n }\n\n // the chips component's empty state is a list with one empty string\n if (chipField instanceof Array) {\n if (chipField.length === 1 && chipField[0] === '') {\n return false;\n }\n }\n return true;\n }\n\n constructor(\n private fb: UntypedFormBuilder,\n private accountGroupService: AccountGroupService,\n private listingProfileService: ListingProfileService,\n private partnerApiService: PartnerApiService,\n private translateService: TranslateService,\n private alertService: SnackbarService,\n ) {}\n\n ngOnInit(): void {\n this.servicesPlaceholder = this.orderFormOptions?.bypassRequiredQuestions\n ? this.translateService.instant('FRONTEND.BUSINESSES.SERVICES_OFFERED')\n : this.translateService.instant('FRONTEND.BUSINESSES.SERVICES_OFFERED') + ' *';\n this.brandsPlaceholder = this.orderFormOptions?.bypassRequiredQuestions\n ? this.translateService.instant('FRONTEND.BUSINESSES.BRANDS_CARRIED')\n : this.translateService.instant('FRONTEND.BUSINESSES.BRANDS_CARRIED') + ' *';\n\n this.business$ = this.accountGroupService\n .get(\n this.businessId,\n new ProjectionFilter({\n richData: true,\n accountGroupExternalIdentifiers: true,\n }),\n )\n .pipe(catchError(() => of(new AccountGroup())));\n\n this.listingProfile$ = this.listingProfileService\n .get(\n this.businessId,\n new LPProjectionFilter({\n businessHours: true,\n }),\n )\n .pipe(catchError(() => of(new ListingProfile())));\n\n this.getSectionConfig$();\n\n this.hasRestrictions$ = this.sectionConfig$.pipe(\n map((resp) => {\n if (\n resp &&\n (resp.showDescription || resp.showLongDescription || resp.showHoO || resp.showServices || resp.showBrands)\n ) {\n return true;\n } else {\n this.hasBusinessProductActivationPrereqFormEvent.emit(false);\n return false;\n }\n }),\n );\n\n this.subscriptions.push(\n combineLatest([this.business$, this.listingProfile$, this.sectionConfig$])\n .pipe(\n map(([business, listingProfile, sectionConfig]) => {\n const shortDescription = sectionConfig?.showDescription\n ? (business && business.richData && business.richData.shortDescription) || ''\n : null;\n const longDescription = sectionConfig?.showLongDescription\n ? (business && business.richData && business.richData.description) || ''\n : null;\n\n let businessHours: RegularHoursPeriod[] = null;\n if (sectionConfig?.showHoO) {\n const generalHours = listingProfile.businessHours?.find((hours) => hours.hoursTypeId === 'GENERAL');\n businessHours = MergeHours(generalHours?.regularHours || []);\n }\n\n let servicesOffered = null;\n if (sectionConfig?.showServices) {\n servicesOffered = [''];\n if (business?.richData?.servicesOffered && business.richData.servicesOffered.length) {\n servicesOffered = business.richData.servicesOffered;\n }\n }\n\n let brandsCarried = null;\n if (sectionConfig?.showBrands) {\n brandsCarried = [''];\n if (business?.richData?.brandsCarried && business.richData.brandsCarried.length) {\n brandsCarried = business.richData.brandsCarried;\n }\n }\n\n const validators: ValidatorFn[] = [];\n const arrayValidators: ValidatorFn[] = [];\n if (!this.orderFormOptions?.bypassRequiredQuestions) {\n validators.push(Validators.required);\n arrayValidators.push(arrayAllTruthyItemsRequired());\n }\n\n const businessProfileForm = new UntypedFormGroup({});\n if (shortDescription !== null) {\n businessProfileForm.addControl('shortDescription', this.fb.control(shortDescription, validators));\n }\n if (longDescription !== null) {\n businessProfileForm.addControl('description', this.fb.control(longDescription, validators));\n }\n if (businessHours !== null) {\n businessProfileForm.addControl('businessHours', this.fb.control(businessHours, []));\n }\n if (servicesOffered !== null) {\n businessProfileForm.addControl(\n 'servicesOffered',\n this.fb.array(servicesOffered, [\n Validators.compose([\n Validators.minLength(1),\n Validators.maxLength(15),\n ...arrayValidators,\n totalLengthOfRepeatedFieldValidator(\n 256,\n this.translateService.instant('FRONTEND.BUSINESSES.SERVICES_OFFERED'),\n ),\n ]),\n ]),\n );\n }\n if (brandsCarried !== null) {\n businessProfileForm.addControl(\n 'brandsCarried',\n this.fb.array(\n brandsCarried,\n Validators.compose([\n Validators.minLength(1),\n Validators.maxLength(15),\n ...arrayValidators,\n totalLengthOfRepeatedFieldValidator(\n 256,\n this.translateService.instant('FRONTEND.BUSINESSES.BRANDS_CARRIED'),\n ),\n ]),\n ),\n );\n }\n this.currentSubmittedFormValues = JSON.parse(JSON.stringify(businessProfileForm.value));\n return businessProfileForm;\n }),\n )\n .subscribe((form) => {\n this.businessActivationForm = form;\n if (this.orderFormOptions?.readOnly && this.businessActivationForm.controls.businessHours) {\n this.businessActivationForm.controls.businessHours.disable();\n }\n\n // Track changes\n Object.keys(this.businessActivationForm.controls).map((controlName) => {\n return this.subscriptions.push(\n this.businessActivationForm.controls[controlName].valueChanges\n .pipe(\n debounceTime(500),\n tap((changes) =>\n this.hasUnsavedChanges$$.next(!equal(this.currentSubmittedFormValues[controlName], changes)),\n ),\n )\n .subscribe(),\n );\n });\n\n this.isValid$ = this.businessActivationForm.valueChanges.pipe(\n startWith([null]),\n map(() => {\n let hasSubmittedRequiredValues = true;\n for (const key of Object.keys(this.currentSubmittedFormValues)) {\n const formValue = this.currentSubmittedFormValues[key];\n if (!ProductActivationPrereqFormComponent.checkChipFieldValidity(formValue)) {\n hasSubmittedRequiredValues = false;\n break;\n }\n }\n const isValid = this.businessActivationForm.valid && hasSubmittedRequiredValues;\n if (!isValid) {\n this.setAsTouched(this.businessActivationForm);\n }\n return isValid;\n }),\n );\n }),\n );\n }\n\n getSectionConfig$(): void {\n this.loading$$.next(true);\n combineLatest([this.productIds$, this.business$])\n .pipe(\n switchMap(([productIds, business]) => {\n if (!productIds || productIds.length === 0 || business?.deleted || !business.externalIdentifiers) {\n this.loading$$.next(false);\n return of(EMPTY);\n }\n return this.partnerApiService.getMultiApp({\n partnerId: business.externalIdentifiers.partnerId,\n marketId: business.externalIdentifiers.marketId,\n appKeys: productIds.map((appId) => {\n return { appId: appId };\n }),\n includeNotEnabled: true,\n });\n }),\n filter((resp: any) => Boolean(resp?.apps)),\n map((resp) => resp.apps.map((app) => app?.activationInformation?.requiredBusinessData)),\n map((configs) => configs.filter((config) => config)),\n map((configs) =>\n configs.reduce(\n (acc, appConfig) => {\n acc.showHoO = acc.showHoO || appConfig.hours;\n acc.showDescription = acc.showDescription || appConfig.descriptionShort;\n acc.showLongDescription = acc.showLongDescription || appConfig.descriptionLong;\n acc.showBrands = acc.showBrands || appConfig.brands;\n acc.showServices = acc.showServices || appConfig.services;\n return acc;\n },\n {\n showHoO: false,\n showServices: false,\n showBrands: false,\n showDescription: false,\n showLongDescription: false,\n } as BusinessSectionConfig,\n ),\n ),\n catchError((err) => {\n console.error('Error caught: ', err);\n this.loading$$.next(false);\n return EMPTY;\n }),\n )\n .subscribe((config) => {\n this.sectionConfig$$.next(config);\n this.loading$$.next(false);\n });\n }\n\n private setAsTouched(form: UntypedFormGroup): void {\n form.markAsTouched();\n const controls = form.controls;\n for (const i of Object.keys(controls)) {\n if (controls[i] instanceof UntypedFormControl) {\n controls[i].markAsTouched();\n } else if (controls[i] instanceof UntypedFormGroup) {\n this.setAsTouched(controls[i] as UntypedFormGroup);\n } else if (controls[i] instanceof UntypedFormArray) {\n (controls[i] as UntypedFormArray).controls.forEach((c) => c.markAsTouched());\n }\n controls[i].updateValueAndValidity({ emitEvent: false });\n }\n form.updateValueAndValidity({ emitEvent: false });\n }\n\n onSubmit(): void {\n if (this.businessActivationForm.pristine) {\n this.alertService.openErrorSnack('FRONTEND.BUSINESSES.NO_CHANGES_TO_SAVE');\n return;\n }\n\n if (!this.businessActivationForm.valid) {\n let errorMsg = this.translateService.instant('FRONTEND.BUSINESSES.INVALID_SUBMISSION') + ': ';\n if (this.businessActivationForm.get('servicesOffered')?.invalid) {\n errorMsg +=\n this.translateService.instant('FRONTEND.BUSINESSES.PRODUCT_ACTIVATION_FORM.INVALID_SERVICES_OFFERED_FIELD') +\n ' ';\n }\n if (this.businessActivationForm.get('brandsCarried')?.invalid) {\n if (this.businessActivationForm.get('servicesOffered')?.invalid) {\n errorMsg += '| ';\n }\n errorMsg += this.translateService.instant(\n 'FRONTEND.BUSINESSES.PRODUCT_ACTIVATION_FORM.INVALID_BRANDS_CARRIED_FIELD',\n );\n }\n this.alertService.openErrorSnack(errorMsg);\n return;\n }\n\n const data = this.businessActivationForm.value;\n const updateOperations = new UpdateOperations();\n let listingProfileUpdate$: Observable> = of(null);\n\n if (this.businessActivationForm.controls.businessHours?.dirty) {\n const lpUpdateOperations = new LPUpdateOperations();\n lpUpdateOperations.addUpdateOperation(\n new BusinessHoursUpdateOperation(\n new BusinessHours({\n regularHours: SplitHours(data.businessHours),\n hoursTypeId: 'GENERAL',\n }),\n ),\n );\n listingProfileUpdate$ = this.listingProfileService.bulkUpdate(this.businessId, lpUpdateOperations);\n }\n\n const richDataUpdateOperation: RichDataUpdateOperation = new RichDataUpdateOperation();\n if (this.businessActivationForm.controls.brandsCarried?.dirty) {\n richDataUpdateOperation.brandsCarried = data.brandsCarried;\n }\n if (this.businessActivationForm.controls.servicesOffered?.dirty) {\n richDataUpdateOperation.servicesOffered = data.servicesOffered;\n }\n if (this.businessActivationForm.controls.shortDescription?.dirty) {\n richDataUpdateOperation.shortDescription = data.shortDescription;\n }\n if (this.businessActivationForm.controls.description?.dirty) {\n richDataUpdateOperation.description = data.description;\n }\n\n updateOperations.addUpdateOperation(richDataUpdateOperation);\n\n this.submitting$$.next(true);\n const agUpdate$ = this.accountGroupService.bulkUpdate(this.businessId, updateOperations);\n this.subscriptions.push(\n combineLatest([agUpdate$, listingProfileUpdate$]).subscribe({\n next: () => {\n this.alertService.openSuccessSnack('FRONTEND.BUSINESSES.PRODUCT_ACTIVATION_FORM.SUCCESS_MESSAGE');\n this.currentSubmittedFormValues = JSON.parse(JSON.stringify(data));\n this.businessActivationForm.updateValueAndValidity();\n this.hasUnsavedChanges$$.next(false);\n },\n error: (err) => {\n console.error('Error saving to account group %s; error %s', this.businessId, err);\n this.alertService.openErrorSnack('FRONTEND.BUSINESSES.PRODUCT_ACTIVATION_FORM.ERROR_MESSAGE');\n this.submitting$$.next(false);\n },\n complete: () => {\n this.submitting$$.next(false);\n },\n }),\n );\n }\n\n ngOnDestroy(): void {\n this.subscriptions.forEach((subscription) => subscription.unsubscribe());\n }\n}\n","\n
\n
\n
\n\n \n \n \n \n \n {{ 'FRONTEND.BUSINESSES.PRODUCT_ACTIVATION_FORM.ACCOUNT_INFORMATION' | translate }}\n \n \n {{ 'FRONTEND.BUSINESSES.PRODUCT_ACTIVATION_FORM.ACCOUNT_INFORMATION_SUBTITLE' | translate }}\n \n \n \n \n \n \n\n\n\n
\n \n \n \n \n \n warning\n \n \n info_outline\n \n \n {{ 'FRONTEND.BUSINESSES.PRODUCT_ACTIVATION_FORM.FULL_BUSINESS_PROFILE' | translate }}\n \n \n \n \n \n \n {{ 'FRONTEND.BUSINESSES.PRODUCT_ACTIVATION_FORM.FULL_BUSINESS_PROFILE_DESCRIPTION' | translate }}\n \n \n \n \n {{\n 'FRONTEND.BUSINESSES.PRODUCT_ACTIVATION_FORM.FULL_BUSINESS_PROFILE_READ_ONLY_DESCRIPTION' | translate\n }}\n \n \n \n \n \n \n \n {{ 'FRONTEND.BUSINESSES.LONG_DESCRIPTION' | translate }}\n *\n \n \n {{ longDescription.value.length }} / 750\n \n
\n
\n {{ 'FRONTEND.BUSINESSES.LONG_DESCRIPTION' | translate }}\n
\n
\n {{ businessActivationForm.controls.description?.value }}\n
\n
\n \n \n {{ 'FRONTEND.BUSINESSES.SHORT_DESCRIPTION' | translate }}\n *\n \n \n {{ shortDescription.value.length }} / 200\n \n
\n
\n {{ 'FRONTEND.BUSINESSES.SHORT_DESCRIPTION' | translate }}\n
\n
\n {{ businessActivationForm.controls.shortDescription?.value }}\n
\n
\n \n \n
\n \n {{ 'FRONTEND.BUSINESSES.SAVE' | translate }}\n \n \n {{ 'FRONTEND.BUSINESSES.UNSAVED_CHANGES' | translate }}\n \n
\n
\n
\n
\n","import { MatExpansionModule } from '@angular/material/expansion';\nimport { MatFormFieldModule } from '@angular/material/form-field';\nimport { MatCardModule } from '@angular/material/card';\nimport { MatIconModule } from '@angular/material/icon';\nimport { VaFormsModule } from '@vendasta/forms';\nimport { ProductActivationPrereqFormComponent } from './product-activation-prereq-form.component';\nimport { FormsModule, ReactiveFormsModule } from '@angular/forms';\nimport { CommonModule } from '@angular/common';\nimport { NgModule } from '@angular/core';\nimport { TranslateModule } from '@ngx-translate/core';\nimport { MatInputModule } from '@angular/material/input';\nimport { MatButtonModule } from '@angular/material/button';\nimport { LexiconModule } from '@galaxy/lexicon';\nimport baseTranslation from '../assets/i18n/en_devel.json';\nimport { GalaxyFormFieldModule } from '@vendasta/galaxy/form-field';\n\n@NgModule({\n declarations: [ProductActivationPrereqFormComponent],\n imports: [\n CommonModule,\n FormsModule,\n ReactiveFormsModule,\n TranslateModule,\n LexiconModule.forChild({\n componentName: 'common/businesses',\n baseTranslation: baseTranslation,\n }),\n MatExpansionModule,\n MatFormFieldModule,\n MatIconModule,\n VaFormsModule,\n MatInputModule,\n MatButtonModule,\n MatCardModule,\n GalaxyFormFieldModule,\n ],\n exports: [ProductActivationPrereqFormComponent],\n providers: [],\n})\nexport class ProductActivationPrereqFormModule {}\n","import { CommonModule } from '@angular/common';\nimport { NgModule } from '@angular/core';\nimport { FormsModule, ReactiveFormsModule } from '@angular/forms';\nimport { GoogleMapsModule } from '@angular/google-maps';\nimport { MatDatepickerModule } from '@angular/material/datepicker';\nimport { MatExpansionModule } from '@angular/material/expansion';\nimport { MatIconModule } from '@angular/material/icon';\nimport { MatAutocompleteModule } from '@angular/material/autocomplete';\nimport { MatButtonModule } from '@angular/material/button';\nimport { MatCardModule } from '@angular/material/card';\nimport { MatCheckboxModule } from '@angular/material/checkbox';\nimport { MatChipsModule } from '@angular/material/chips';\nimport { MatDialogModule } from '@angular/material/dialog';\nimport { MatFormFieldModule } from '@angular/material/form-field';\nimport { MatInputModule } from '@angular/material/input';\nimport { MatRadioModule } from '@angular/material/radio';\nimport { MatSelectModule } from '@angular/material/select';\nimport { MatSnackBarModule } from '@angular/material/snack-bar';\nimport { MatTabsModule } from '@angular/material/tabs';\nimport { MatTooltipModule } from '@angular/material/tooltip';\nimport { BusinessCategoryModule } from '@galaxy/business-category';\nimport { LexiconModule } from '@galaxy/lexicon';\nimport { TranslateModule } from '@ngx-translate/core';\nimport { AuxiliaryDataModule } from '@vendasta/auxiliary-data-components';\nimport { VaFormsModule } from '@vendasta/forms';\nimport { GalaxyAlertModule } from '@vendasta/galaxy/alert';\nimport { GalaxyCheckboxModule } from '@vendasta/galaxy/checkbox';\nimport { GalaxyFormFieldModule } from '@vendasta/galaxy/form-field';\nimport { GalaxyTimezoneSelectorModule } from '@vendasta/galaxy/timezone-selector';\nimport { ImageTransformationModule } from '@vendasta/image-transformation';\nimport { SalespersonServiceModule } from '@vendasta/salesperson';\nimport { TaxonomyServiceModule } from '@vendasta/taxonomy';\nimport { TaxonomyI18nModule } from '@vendasta/taxonomy-i18n';\nimport { VaFullscreenLightboxService } from '@vendasta/uikit';\nimport { AddressFormV2Module } from './address/v2/address-form-v2.module';\nimport baseTranslation from './assets/i18n/en_devel.json';\nimport { BusinessProfileComponent } from './business-profile.component';\nimport { CompetitorsTabModule } from './competitors-tab/competitors-tab.module';\nimport { FormatPhoneNumberPipe } from './format-phone-number.pipe';\nimport { MediaTabModule } from './media-tab/media-tab.module';\nimport { PlaceAutocompleteComponent } from './place-autocomplete/place-autocomplete.component';\nimport { ProductActivationPrereqFormModule } from './product-activation-prereq-form/product-activation-prereq-form.module';\nimport { GalaxyLoadingSpinnerModule } from '@vendasta/galaxy/loading-spinner';\nimport { MoreHoursComponent } from './more-hours/more-hours.component';\n\n@NgModule({\n imports: [\n CommonModule,\n ReactiveFormsModule,\n ImageTransformationModule,\n VaFormsModule,\n TaxonomyServiceModule,\n MatInputModule,\n MatCardModule,\n MatTabsModule,\n MatTooltipModule,\n MatSelectModule,\n MatButtonModule,\n MatIconModule,\n MatDialogModule,\n MatSnackBarModule,\n SalespersonServiceModule,\n MediaTabModule,\n MatCheckboxModule,\n MatDatepickerModule,\n AddressFormV2Module,\n TaxonomyI18nModule,\n GoogleMapsModule,\n TranslateModule,\n LexiconModule.forChild({\n componentName: 'common/businesses',\n baseTranslation: baseTranslation,\n }),\n ProductActivationPrereqFormModule,\n CompetitorsTabModule,\n GalaxyCheckboxModule,\n MatAutocompleteModule,\n GalaxyTimezoneSelectorModule,\n AuxiliaryDataModule,\n BusinessCategoryModule,\n GalaxyFormFieldModule,\n FormsModule,\n MatRadioModule,\n MatChipsModule,\n MatExpansionModule,\n MatFormFieldModule,\n GalaxyAlertModule,\n GalaxyLoadingSpinnerModule,\n ],\n declarations: [BusinessProfileComponent, FormatPhoneNumberPipe, PlaceAutocompleteComponent, MoreHoursComponent],\n exports: [BusinessProfileComponent, PlaceAutocompleteComponent],\n providers: [VaFullscreenLightboxService],\n})\nexport class BusinessProfileModule {}\n","import { Pipe, PipeTransform } from '@angular/core';\n\ninterface Address {\n address: string;\n city: string;\n state: string;\n}\n// formatNAPDataToString formats address, city, and state into a comma separate string\n@Pipe({ name: 'formatAddressToString' })\nexport class FormatAddressToStringPipe implements PipeTransform {\n transform(address: Address): string {\n return [address.address?.trim(), address.city?.trim(), address.state?.trim()].filter((v) => !!v).join(', ');\n }\n}\n","import { Component, Inject, OnDestroy, OnInit } from '@angular/core';\nimport { UntypedFormControl } from '@angular/forms';\nimport { MAT_DIALOG_DATA, MatDialogRef } from '@angular/material/dialog';\nimport { Router } from '@angular/router';\nimport {\n AccountGroup,\n AccountGroupApiService,\n Constraint,\n LookupRequestInterface,\n ProjectionFilter,\n} from '@vendasta/account-group';\nimport { BehaviorSubject, Subscription, combineLatest } from 'rxjs';\nimport { debounceTime, distinctUntilChanged, map, shareReplay, startWith, switchMap } from 'rxjs/operators';\n\nconst PAGE_SIZE = 20;\n\nexport interface DialogData {\n partnerId: string;\n marketId: string;\n projectionFilterOverride?: ProjectionFilter;\n}\n@Component({\n templateUrl: './business-selector-dialog.component.html',\n styleUrls: ['./business-selector-dialog.component.scss'],\n})\nexport class BusinessSelectorDialogComponent implements OnInit, OnDestroy {\n private readonly loadMore$$ = new BehaviorSubject(false);\n private readonly loadMoreTrigger$ = this.loadMore$$.asObservable().pipe(map(() => null));\n private readonly business$$ = new BehaviorSubject([]);\n protected readonly business$ = this.business$$.asObservable();\n private readonly nextCursor$$ = new BehaviorSubject('');\n private readonly hasMore$$ = new BehaviorSubject(false);\n protected readonly hasMore$ = this.hasMore$$.asObservable();\n private readonly loading$$ = new BehaviorSubject(true);\n protected readonly loading$ = this.loading$$.asObservable();\n private readonly subscriptions: Subscription[] = [];\n\n protected readonly searchFormField = new UntypedFormControl('');\n private previousSearchTerm = '';\n protected loadingFirstPage = true;\n\n constructor(\n private readonly dialogRef: MatDialogRef,\n private readonly router: Router,\n private readonly accountGroupService: AccountGroupApiService,\n @Inject(MAT_DIALOG_DATA) private readonly data: DialogData,\n ) {}\n\n ngOnInit(): void {\n this.initBusinesses();\n }\n\n ngOnDestroy(): void {\n this.subscriptions.forEach((s) => s.unsubscribe());\n }\n\n loadMoreAccounts(inViewportEvent: any): void {\n if (inViewportEvent.visible) {\n this.loadMore$$.next(true);\n }\n }\n\n // initBusinesses sets up the subscription to load in account groups, responding to changes in search, scroll, and partner ID\n private initBusinesses(): void {\n this.subscriptions.push(\n combineLatest([this.searchFormField.valueChanges.pipe(startWith('')), this.loadMoreTrigger$])\n .pipe(\n debounceTime(500),\n distinctUntilChanged(),\n shareReplay(1),\n switchMap(([searchTerm]) => {\n this.loading$$.next(true);\n let cursor = this.nextCursor$$.value;\n if (this.previousSearchTerm !== searchTerm) {\n // reset cursor and current results when new search terms entered\n cursor = '';\n this.loadingFirstPage = true;\n this.business$$.next([]);\n }\n this.previousSearchTerm = searchTerm;\n const projectionFilter =\n this.data.projectionFilterOverride ||\n new ProjectionFilter({\n napData: true,\n accountGroupExternalIdentifiers: true,\n constraints: this.data.partnerId === 'VMF',\n });\n const lookupRequest: LookupRequestInterface = {\n projectionFilter: projectionFilter,\n filters: {\n partnerId: this.data.partnerId,\n includeDeleted: false,\n },\n pageSize: PAGE_SIZE,\n searchTerm: searchTerm ? searchTerm : this.searchFormField.value,\n cursor: cursor,\n sortOptions: {\n direction: 1,\n field: 1,\n },\n };\n if (this.data.marketId) {\n lookupRequest.filters.marketIds = [this.data.marketId];\n }\n return this.accountGroupService.lookup(lookupRequest);\n }),\n )\n .subscribe({\n next: (pagedAccountGroupResponse) => {\n // append the results to the current list\n const businesses = pagedAccountGroupResponse.accountGroups ?? [];\n this.business$$.next(this.business$$.value.concat(businesses));\n this.hasMore$$.next(pagedAccountGroupResponse.hasMore);\n this.nextCursor$$.next(pagedAccountGroupResponse.nextCursor);\n this.loading$$.next(false);\n this.loadingFirstPage = false;\n },\n error: () => {\n this.loading$$.next(false);\n this.loadingFirstPage = false;\n },\n }),\n );\n }\n\n selectBusiness(accountGroup: AccountGroup): void {\n this.dialogRef.close(accountGroup);\n }\n\n createBusiness(): void {\n this.dialogRef.close();\n this.router.navigateByUrl(`/business/search`);\n }\n\n getPartnerIdfromConstraints(constraints: Constraint[]): string {\n return constraints.find((element) => element?.foreignKey?.kind === 'PartnerAccountGroup')?.foreignKey?.key;\n }\n\n close(): void {\n this.dialogRef.close();\n }\n}\n","

{{ 'FRONTEND.BUSINESSES.SELECTOR_DIALOG.CHOOSE_ACCOUNT' | translate }}

\n
\n \n \n \n
\n\n\n\n \n
0; else emptyState\" class=\"options-list\">\n
\n
\n \n {{ ag?.napData?.companyName }}\n \n \n {{ ag.napData | formatAddressToString }}\n \n

0\">\n PID: {{ getPartnerIdfromConstraints(ag.constraints) }}\n

\n
\n \n
\n
\n \n
\n
\n \n \n
\n \n
\n\n\n \n\n\n\n
\n {{ 'FRONTEND.BUSINESSES.SELECTOR_DIALOG.NOT_FOUND' | translate }}\n
\n \n
\n
\n
\n\n\n
\n
\n
\n
\n","import { NgModule } from '@angular/core';\nimport { BusinessSelectorDialogComponent } from './business-selector-dialog.component';\nimport { CommonModule } from '@angular/common';\nimport { MatListModule as MatListModule } from '@angular/material/list';\nimport { MatButtonModule as MatButtonModule } from '@angular/material/button';\nimport { MatFormFieldModule as MatFormFieldModule } from '@angular/material/form-field';\nimport { MatInputModule as MatInputModule } from '@angular/material/input';\nimport { MatProgressSpinnerModule as MatProgressSpinnerModule } from '@angular/material/progress-spinner';\nimport { MatDialogModule as MatDialogModule } from '@angular/material/dialog';\nimport { ReactiveFormsModule } from '@angular/forms';\nimport { InViewportModule } from 'ng-in-viewport';\nimport { FormatAddressToStringPipe } from './format-address.pipe';\nimport { LexiconModule } from '@galaxy/lexicon';\nimport baseTranslation from '../assets/i18n/en_devel.json';\nimport { MatLineModule } from '@angular/material/core';\nimport { GalaxyFormFieldModule } from '@vendasta/galaxy/form-field';\n\n@NgModule({\n declarations: [BusinessSelectorDialogComponent, FormatAddressToStringPipe],\n imports: [\n CommonModule,\n MatListModule,\n MatButtonModule,\n MatFormFieldModule,\n MatInputModule,\n MatProgressSpinnerModule,\n MatDialogModule,\n ReactiveFormsModule,\n InViewportModule,\n LexiconModule.forChild({\n componentName: 'common/businesses',\n baseTranslation: baseTranslation,\n }),\n MatLineModule,\n GalaxyFormFieldModule,\n ],\n exports: [BusinessSelectorDialogComponent],\n providers: [],\n})\nexport class BusinessSelectorDialogModule {}\n","export { MediaTabGalleryComponent } from './media-tab/media-tab-gallery/media-tab-gallery.component';\nexport { BusinessProfileComponent } from './business-profile.component';\nexport { Market, BusinessProfileTab, HiddenField, LightboxData } from './business-profile.interface';\nexport { BusinessProfileModule } from './business-profile.module';\nexport { MediaTabModule } from './media-tab/media-tab.module';\nexport { MediaTabGalleryModule } from './media-tab/media-tab-gallery/media-tab-gallery.module';\nexport { UploadImageDialogModule } from './media-tab/upload-image-dialog/upload-image-dialog.module';\nexport { UploadImageDialogComponent } from './media-tab/upload-image-dialog/upload-image-dialog.component';\nexport { MenuOption, ClientImage } from './media-tab/media-tab.interface';\nexport { FeatureFlagService, FeatureFlagMultiResponse } from './feature-flag.service';\nexport { ProductActivationPrereqFormComponent } from './product-activation-prereq-form/product-activation-prereq-form.component';\nexport { ProductActivationPrereqFormModule } from './product-activation-prereq-form/product-activation-prereq-form.module';\nexport {\n BusinessSelectorDialogComponent,\n DialogData,\n} from './business-selector-dialog/business-selector-dialog.component';\nexport { BusinessSelectorDialogModule } from './business-selector-dialog/business-selector-dialog.module';\nexport {\n AccountListsDialogData,\n AccountListsModalComponent,\n AccountListsModalModule,\n} from './account-lists-modal/account-lists-modal.component';\nexport { ActionListsServiceModule } from './account-lists-modal/account-lists-service.module';\nexport { ActionListsDependencies, ActionLists } from './account-lists-modal/interface';\nexport { PlaceAutocompleteComponent } from './place-autocomplete/place-autocomplete.component';\nexport { CompetitorsTabModule } from './competitors-tab/competitors-tab.module';\n\nexport * from './address/index';\nexport * from './';\nexport { NotOnlyWhitespaceValidator } from './custom-validators';\n","/*\n * Public API Surface of businesses\n */\n\nexport * from './lib/index';\n"],"mappings":"wnJA+LA,SAASA,EAAkBC,EAASC,EAAO,CACzC,OAAI,OAAOA,GAAU,SACZA,EAEFD,EAAQC,CAAK,CACtB,CApMA,IAYIC,GAKAC,EAeAC,GAgBAC,GAMAC,GAUAC,GAiBEC,GAuDAC,GA0BAC,GAmCAC,GAuBAC,GAuBAC,GAuBAC,GAuEAC,GAuBAC,GA0BAC,GAuBAC,GAyCAC,GA0BAC,GAkDAC,GA6BAC,GA6BAC,GA4CAC,GAoBAC,GA0BAC,GA0BAC,GAoDAC,GA0BAC,GA6BAC,GAgCAC,GAuBAC,GA6BAC,GAuBAC,GAgCAC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AAAC,MAAQ,IAAIC,GAItB,KAAA5J,wBAAsC,WACtC,KAAA6J,cAAgC,CAAA,EAChC,KAAAC,yBAAqC,CAAA,EAErC,KAAApO,sBAAwB,CACtBqO,uBAAuB,SAAUC,EAAU,CACzC,OAAO,KAAK/G,iBAAiBW,QAAQ,qDAAsD,CACzFqG,UAAWD,EAAMC,UACjBC,UAAW,KAAKjH,iBAAiBW,QAAQoG,EAAMG,YAAY,EAC5D,CACH,GAAEtP,KAAK,IAAI,GAGb,KAAAuP,iBAAmB,IAAIC,EAAwB,IAAI,EACnD,KAAAC,iBAAmB,IAAIC,GACvB,KAAAvQ,SAAW,KAAKsQ,iBAAiBE,aAAY,EAO7C,KAAAjU,mBAAqByR,EAOd,KAAAyC,iBAAmB,GAYnB,KAAA9L,wBAA0B,CAC/B,OACA,SACA,MACA,QACA,KACA,MACA,MACA,OACA,OACA,MACA,OACA,UACA,OACA,WACA,OACA,OACA,MACA,MACA,MACA,MACA,MACA,OACA,OACA,OACA,MACA,KACA,OACA,MACA,MACA,MACA,KACA,MACA,MACA,MACA,MACA,OACA,OACA,QACA,QACA,OACA,OACA,OACA,OACA,OACA,OACA,MACA,OACA,SACA,MACA,OACA,QACA,OACA,MACA,OACA,MACA,OACA,OACA,QACA,OACA,OACA,OACA,MACA,OACA,OACA,OACA,MACA,KACA,MACA,OACA,MACA,MACA,MACA,MACA,OACA,QACA,KACA,MACA,MACA,MACA,MACA,OACA,OACA,MACA,MACA,MACA,KACA,MACA,OACA,QACA,KACA,MACA,KACA,OACA,KACA,KACA,MACA,MACA,KACA,MACA,OACA,SACA,MACA,OACA,QACA,MACA,MACA,MACA,OACA,KACA,KACA,MACA,SACA,KACA,MACA,MACA,MACA,MACA,MACA,OACA,KACA,MAAM,EAED,KAAArC,gBAAkB,KAAK8D,gBAAgBsK,KAC5CC,EAAWtN,GACT,KAAKoL,yBACFmC,kBACC,IAAIC,GAAyB,CAC3BC,WAAYzN,EACZ0N,aAAc,KAAK9H,iBAAiB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A+B,GAAAC,EAAA,KAGAC,KAMAC,KAEAC,KACAC,KAIAC,KAWAC,KACAP,OC5BA,IAAAQ,GAAAC,EAAA,KAIAC","names":["enumStringToValue","enumRef","value","CategoryClass","CategoryType","Locale","SortDirection","SortField","TypeCategoryRelationship","FieldMask","PagedRequestOptions","PagedResponseMetadata","BulkCreateCategoriesRequest","BulkCreateCategoryRelationshipsRequest","BulkDeleteCategoryRelationshipsRequest","Category","CategoryLocale","CategoryPagedRequestOptions","CategoryPagedResponseMetadata","CategoryRelationships","CategoryRequest","CategorySearchRequest","CategorySearchResponse","CategoryTranslation","CreateCategoryRequest","CreateCategoryResponse","DeleteCategoryByExternalIDAndTypeRequest","DeleteCategoryRelationshipByExternalIDAndTypeRequest","DeleteCategoryRelationshipByOriginAndTargetRequest","GetAllCategoryMappingsRequest","GetAllCategoryMappingsResponse","GetCategoryByExternalIDsAndTypeRequest","GetCategoryByExternalIDsAndTypeResponse","GetCategoryByNameAndTypeRequest","GetCategoryByNameAndTypeResponse","GetCategoryListRequest","GetCategoryListResponse","GetCategoryMappingRequest","GetCategoryMappingResponse","GetCategoryRequest","GetCategoryResponse","GetMultiCategoryMappingRequest","GetMultiCategoryMappingResponse","DeleteCategoryRelationshipByOriginAndTargetRequestIdentifier","UpdateCategoryMappingsRequestMappings","SortOptions","UpdateCategoryMappingsRequest","UpdateCategoryRequest","UpdateCategoryRequestUpdateFields","ValidateCategoryRequest","ValidateCategoryResponse","environment","hostMap","HostService","CategoriesApiService","localeMap","CategoryUtils","init_vendasta_category","__esmMin","init_core","init_http","init_operators","_FieldMask","proto","m","kwargs","toReturn","_PagedRequestOptions","_PagedResponseMetadata","_BulkCreateCategoriesRequest","_BulkCreateCategoryRelationshipsRequest","_BulkDeleteCategoryRelationshipsRequest","_Category","_CategoryLocale","_CategoryPagedRequestOptions","_CategoryPagedResponseMetadata","_CategoryRelationships","_CategoryRequest","_CategorySearchRequest","_CategorySearchResponse","_CategoryTranslation","_CreateCategoryRequest","_CreateCategoryResponse","_DeleteCategoryByExternalIDAndTypeRequest","_DeleteCategoryRelationshipByExternalIDAndTypeRequest","_DeleteCategoryRelationshipByOriginAndTargetRequest","_GetAllCategoryMappingsRequest","_GetAllCategoryMappingsResponse","_GetCategoryByExternalIDsAndTypeRequest","_GetCategoryByExternalIDsAndTypeResponse","_GetCategoryByNameAndTypeRequest","_GetCategoryByNameAndTypeResponse","_GetCategoryListRequest","_GetCategoryListResponse","_GetCategoryMappingRequest","_GetCategoryMappingResponse","_GetCategoryRequest","_GetCategoryResponse","_GetMultiCategoryMappingRequest","_GetMultiCategoryMappingResponse","_DeleteCategoryRelationshipByOriginAndTargetRequestIdentifier","_UpdateCategoryMappingsRequestMappings","_SortOptions","_UpdateCategoryMappingsRequest","_UpdateCategoryRequest","_UpdateCategoryRequestUpdateFields","_ValidateCategoryRequest","_ValidateCategoryResponse","ɵɵdefineInjectable","http","hostService","HttpHeaders","r","request","map","resp","__spreadProps","__spreadValues","ɵɵinject","HttpClient","language","selectedLanguage","locale","baseLanguage","CATEGORY_SEARCH_PAGE_SIZE","LANGUAGE_TOKEN","init_constants","__esmMin","init_core","InjectionToken","ɵɵelementStart","ɵɵtext","ɵɵelementEnd","ɵɵadvance","ɵɵtextInterpolate2","category_r1","name","isLast_r2","ɵɵelementContainerStart","ɵɵtemplate","CategoryOverviewComponent_ng_container_0_ng_container_1_span_1_Template","ɵɵproperty","categories_r3","ɵɵtextInterpolate","ctx_r3","placeholder","CategoryOverviewComponent_ng_container_0_ng_template_2_span_0_Template","CategoryOverviewComponent_ng_container_0_ng_container_1_Template","CategoryOverviewComponent_ng_container_0_ng_template_2_Template","ɵɵtemplateRefExtractor","length","noCategories_r5","CategoryOverviewComponent","init_category_overview_component","__esmMin","init_operators","init_esm","init_vendasta_category","init_constants","categoryType","_categoryType","value","refreshCategories","categoryIds","_categoryIds","constructor","categoryService","languageToken$","atlasLanguageService","CategoryType","CATEGORY_TYPE_V_CATEGORY","request$$","ReplaySubject","language$","EMPTY","ngOnInit","initObservables","req","map","externalId","next","compareRequests","a","b","find","elA","elB","pipe","startWith","distinctUntilChanged","categories$","switchMap","categories","iif","language","getCategories","of","catchError","getCategoryByExternalIDsAndType","languageAndLocale","CategoryUtils","localeFromLanguage","res","category","ɵɵdirectiveInject","CategoriesApiService","LANGUAGE_TOKEN","AtlasLanguageService","selectors","inputs","decls","vars","consts","template","rf","ctx","CategoryOverviewComponent_ng_container_0_Template","ɵɵpipeBind1","_CategoryOverviewComponent","BusinessCategoryService","init_business_category_service","__esmMin","init_operators","constructor","categoryService","getCategoryMapping","externalId","inputType","outputType","pipe","map","res","category","getCategoryByExternalIDsAndType","categories","locale","getCategorySearchByTerm","searchTerm","type","pagingOptions","sortOptions","getCategoryBySearchTerm","ɵɵinject","CategoriesApiService","factory","ɵfac","providedIn","_BusinessCategoryService","HighlightSearchPipe","init_highlight_search_pipe","__esmMin","constructor","sanitizer","transform","value","searchTerm","options","split","filter","Boolean","join","re","RegExp","replacedValue","replace","bypassSecurityTrustHtml","ɵɵdirectiveInject","DomSanitizer","pure","_HighlightSearchPipe","CategorySelectService","init_category_select_service","__esmMin","init_core","init_vendasta_category","init_esm","init_operators","init_constants","constructor","categoriesApiService","defaultPagingOptions","pageSize","CATEGORY_SEARCH_PAGE_SIZE","defaultSortOptions","field","SortField","SORT_FIELD_SCORE","direction","SortDirection","SORT_DIRECTION_DESCENDING","SORT_FIELD_FULL_NAME","SORT_DIRECTION_ASCENDING","categorySearchTerm$$","ReplaySubject","categorySearchTerm$","pipe","startWith","map","term","trim","distinctUntilChanged","debounceTime","tap","aggregatedResult$$","next","categorySearchPage$$","isInitialFetch","language$$","BehaviorSubject","categorySearchPage$","categoryType$$","CategoryType","CATEGORY_TYPE_V_CATEGORY","categoryType$","afterInitialFetch","EventEmitter","categories$","combineLatest","nextCategoriesPage","switchMap","searchTerm","pagingOptions","type","language","getCategoryBySearchTerm","sortOptions","onlyVisible","languageAndLocale","CategoryUtils","localeFromLanguage","response","pagingMetadata","hasMore","cursor","nextCursor","categories","category","forEach","withLatestFrom","result","newCategories","concat","emit","categoryType","value","fetch","fetchNext","getCategoryByExternalIDsAndType","ɵɵinject","CategoriesApiService","factory","ɵfac","_CategorySelectService","ExcludeCategoriesPipe","init_exclude_categories_pipe","__esmMin","transform","value","excludeIds","length","filter","category","includes","externalId","pure","_ExcludeCategoriesPipe","ChipColorPipe","init_chip_color_pipe","__esmMin","transform","category","getColor","isInvalid","isHidden","isActive","pure","_ChipColorPipe","ɵɵelement","ɵɵproperty","ɵɵelementStart","ɵɵtext","ɵɵelementEnd","ɵɵclassMap","ɵɵpipeBind1","category_r3","ɵɵlistener","ɵɵrestoreView","_r2","$implicit","ctx_r3","ɵɵnextContext","ɵɵresetView","removeCategory","ɵɵtemplate","CategorySelectComponent_ng_template_2_mat_chip_row_2_mat_icon_3_Template","disabled","ɵɵadvance","ɵɵtextInterpolate1","fullName","_r5","fetchMoreCategories","ɵɵelementContainerStart","CategorySelectComponent_ng_template_2_ng_container_7_section_1_ng_container_2_ng_container_1_glxy_infinite_scroll_trigger_2_Template","option_r6","isLast_r7","ɵɵpipeBind2","searchResult_r8","searchTerm","ɵɵsanitizeHtml","CategorySelectComponent_ng_template_2_ng_container_7_section_1_ng_container_2_ng_container_1_Template","filteredResult_r9","CategorySelectComponent_ng_template_2_ng_container_7_section_1_ng_container_2_Template","CategorySelectComponent_ng_template_2_ng_container_7_section_1_ng_template_3_Template","ɵɵtemplateRefExtractor","length","noResults_r10","CategorySelectComponent_ng_template_2_ng_container_7_section_1_Template","categories","value","CategorySelectComponent_ng_template_2_mat_chip_row_2_Template","$event","_r1","updateCategorySearchTerm","target","addCategory","CategorySelectComponent_ng_template_2_ng_container_7_Template","addDisabled","placeholder","addCategoryControl","categoryAutocomplete_r12","chipList_r11","required","searchResult$","CategorySelectComponent","init_category_select_component","__esmMin","init_coercion","init_core","init_forms","init_form_field","init_src","init_esm","init_operators","init_constants","init_category_select_service","maxCategories","_maxCategories","setMaxCategories","coerceNumberProperty","categoryType","categorySelectService","setCategoryType","_disabled","coerceBooleanProperty","stateChanges$$","next","_required","_value","externalIds","refreshCategoryChipList","_placeholder","plh","shouldLabelFloat","focused","empty","constructor","ngControl","languageToken$","atlasLanguageService","onCategoriesChange","EventEmitter","id","nextId","subscriptions","SubscriptionList","new","Subject","_categories","FormControl","refreshCategories$$","categories$","loading$$","BehaviorSubject","stateChanges","controlType","valueAccessor","setupSubscriptions","ngOnDestroy","destroy","ngAfterViewInit","addCategoryCtrl","nativeElement","addEventListener","onFocusIn","onFocusOut","errorState","isNull","errors","touched","emit","add","afterInitialFetch","categoryOptionsContainer","scrollIntoView","language$","EMPTY","language$$","refreshCategories$","pipe","debounceTime","filter","r","validCategoryRequest","distinctUntilChanged","prev","curr","sameCategoryRequest","tap","map","externalId","type","switchMap","getCategoryByExternalIDsAndType","of","validateCategories","slice","c","onChange","markAsTouched","req","join","event","option","deselect","focus","fetch","category","fetchNext","setDescribedByIds","ids","setAttribute","onContainerClick","onTouched","writeValue","registerOnChange","registerOnTouched","control","setDisabledState","_CategorySelectComponent","ɵɵdirectiveInject","NgControl","CategorySelectService","LANGUAGE_TOKEN","AtlasLanguageService","selectors","viewQuery","rf","ctx","ɵɵhostProperty","provide","MatFormFieldControl","useExisting","decls","vars","consts","template","CategorySelectComponent_glxy_loading_spinner_0_Template","CategorySelectComponent_ng_template_2_Template","component_r13","BusinessCategoryModule","init_business_category_module","__esmMin","init_common","init_forms","init_icon","init_form_field","init_autocomplete","init_src","init_tooltip","init_input","init_button","init_progress_spinner","init_business_category_service","init_infinite_scroll_trigger","init_chips","init_loading_spinner","BusinessCategoryService","imports","CommonModule","MatIconModule","MatButtonModule","MatInputModule","MatFormFieldModule","MatAutocompleteModule","MatTooltipModule","FormsModule","ReactiveFormsModule","VaBadgeModule","MatProgressSpinnerModule","GalaxyInfiniteScrollTriggerModule","MatChipsModule","GalaxyLoadingSpinnerModule","GalaxyFormFieldModule","_BusinessCategoryModule","isHealthCategory","category","type","CategoryType","CATEGORY_TYPE_V_CATEGORY","fullName","translations","find","t","locale","Locale","LOCALE_ENGLISH","toLowerCase","externalId","toLocaleLowerCase","CATEGORY_TYPE_V_TAX","startsWith","healthCategoryRootName","healthCategoryExceptions","includes","init_utils","__esmMin","init_vendasta_category","init_src","__esmMin","init_business_category_module","init_constants","init_utils","NotOnlyWhitespaceValidator","control","value","trim","length","whitespace","totalLengthOfRepeatedFieldValidator","maxLength","friendlyName","filter","val","join","lengthOfRepeatedField","primaryIsNotInAdditionalSalespeople","salespersonNameFromValue","fg","primaryId","controls","additionalIds","indexOf","setErrors","error","primaryName","markAsTouched","primaryIsSelectedWhenHavingAdditionalSalespeople","primaryNotSelected","init_custom_validators","__esmMin","FeatureFlagService","init_feature_flag_service","__esmMin","init_operators","constructor","featureFlagService","checkFeatureFlagsMulti","partnerId","marketId","featureIds","batchGetStatus","checkFeatureFlag","featureId","pipe","map","val","ɵɵinject","factory","ɵfac","providedIn","_FeatureFlagService","FormatPhoneNumberPipe","init_format_phone_number_pipe","__esmMin","init_libphonenumber_js","transform","phoneNumber","countryCode","newCountryCode","format","transformForBusinessProfile","parsedNumber","parsePhoneNumber","isValid","formatInternational","pure","_FormatPhoneNumberPipe","BusinessProfileTab","HiddenField","init_business_profile_interface","__esmMin","FieldName","init_interface","__esmMin","FIELD_REGEXP","FIELDS_MAPPING","LINE_DELIMITER","DEFAULT_FORM_LAYOUT","DEFAULT_SHOW_LAYOUT","AddressService","init_address_service","__esmMin","init_esm","init_operators","init_interface","FieldName","FirstName","LastName","Country","City","PostalCode","Province","Address1","Address2","Phone","Company","constructor","addressApiService","translateService","countryConfigCache","Map","countryOptionCache","mailingAddress$","address","getCountry","country","pipe","map","format","addressLines","filter","line","join","shortAddress$","address1","address2","city","province","zip","countryCode","onLangChange","langChangeEvent","lang","startWith","currentLang","defaultLang","switchMap","locale","cacheKey","has","of","get","countryConfig$","getCountryConfiguration","tap","countryConfig","set","catchError","EMPTY","shareReplay","listAllCountryOptions","countryOptions$","countryOptions","getOrderedFields","formatting","edit","split","fields","result","match","field","toString","getProvince","provinces","provinceCode","find","code","name","show","renderLineTemplate","trim","template","lineIsEmpty","forEach","key","addressKey","replace","zones","ɵɵinject","AddressAPIService","TranslateService","factory","ɵfac","_AddressService","en_devel_default","init_en_devel","__esmMin","ɵɵelementStart","ɵɵtext","ɵɵelementEnd","ɵɵproperty","option_r2","ɵɵadvance","ɵɵtextInterpolate1","name","ɵɵpipeBind1","countryValidator","countryOptions","firstValueFrom","inject","COUNTRY_OPTIONS_TOKEN","countryControl","__async","country","value","countries","invalidCountry","find","c","code","toLowerCase","COUNTRY_CONTROL_TOKEN","defaultCountryControlProvider","CountryInputComponent","init_country_input_component","__esmMin","init_common","init_core","init_forms","init_autocomplete","init_form_field","init_icon","init_input","init_ngx_translate_core","init_esm","InjectionToken","provide","useFactory","FormControl","Validators","required","constructor","countrySelected","EventEmitter","countries$","filteredCountries$","pipe","switchMap","control","valueChanges","map","_filter","shareReplay","bufferSize","refCount","_preferredCountry","_elementRef","ElementRef","countryName","option","onFocusOut","target","nativeElement","contains","length","selectCountryOption","filter","includes","setValue","emit","activatedOption","tabHandler","selectors","hostBindings","rf","ctx","ɵɵlistener","$event","relatedTarget","i0","ɵɵrestoreView","_r1","ɵɵresetView","ɵɵtemplate","CountryInputComponent_mat_option_7_Template","CountryInputComponent_glxy_error_9_Template","auto_r3","errors","AsyncPipe","FormsModule","DefaultValueAccessor","NgControlStatus","GalaxyFormFieldModule","FormFieldComponent","LabelDirective","ErrorDirective","MatAutocompleteModule","MatAutocomplete","MatOption","MatAutocompleteTrigger","MatFormFieldModule","MatIconModule","MatInputModule","MatInput","NgForOf","NgIf","ReactiveFormsModule","FormControlDirective","TranslateModule","TranslatePipe","styles","_CountryInputComponent","joinFirstItems","items","delimiter","max","filter","Boolean","slice","join","PlaceAutocompleteComponent","init_place_autocomplete_component","__esmMin","init_core","init_vendasta_account_group","constructor","editDisabled","selected","EventEmitter","geoLocation","b","latitude","undefined","longitude","center","google","maps","LatLng","maxBounds","Circle","radius","getBounds","ngAfterViewInit","getPlaceAutocomplete","options","types","bounds","strictBounds","fields","autocomplete","places","Autocomplete","addresstext","nativeElement","event","addListener","place","getPlace","invokeEvent","autocompleteInput","blur","focus","emit","GooglePlace","placeId","place_id","placeName","formatName","city","address_components","find","component","indexOf","long_name","province","short_name","country","name","selectors","viewQuery","rf","ctx","ɵɵelementStart","ɵɵtwoWayListener","$event","i0","ɵɵrestoreView","_r1","ɵɵtwoWayBindingSet","ɵɵresetView","ɵɵelementEnd","ɵɵproperty","ɵɵadvance","ɵɵtwoWayProperty","_PlaceAutocompleteComponent","ɵɵelementStart","ɵɵlistener","$event","ɵɵrestoreView","_r3","ctx_r1","ɵɵnextContext","ɵɵresetView","addPlace","ɵɵelementEnd","ɵɵproperty","editDisabled","__addressData","location","ɵɵtext","ɵɵadvance","ɵɵtextInterpolate1","ɵɵpipeBind1","place_r5","_r4","$implicit","removePlace","placeId","placeName","ɵɵelementContainerStart","_r1","updateServiceArea","target","checked","i0","markServiceAreaDirty","ɵɵtemplate","AddressFormV2Component_ng_container_2_business_place_autocomplete_24_Template","AddressFormV2Component_ng_container_2_glxy_error_27_Template","AddressFormV2Component_ng_container_2_mat_chip_option_29_Template","serviceAreaToggle","serviceAreaForm","enabled","get","value","ɵɵtextInterpolate","ɵɵstyleProp","tmp_16_0","length","tmp_17_0","tmp_18_0","tmp_19_0","ɵɵelement","AddressFormV2Component_form_3_div_2_glxy_form_field_1_glxy_error_5_Template","ɵɵclassMapInterpolate1","field_r6","key","label","required","formGroup","controls","hasError","option_r7","name","AddressFormV2Component_form_3_div_2_glxy_form_field_2_mat_option_7_Template","AddressFormV2Component_form_3_div_2_glxy_form_field_2_glxy_error_9_Template","AddressFormV2Component_form_3_div_2_glxy_form_field_2_glxy_error_10_Template","provinceAutocomplete_r9","provinceInput_r8","provinceName","ɵɵpipeBind2","provinces","AddressFormV2Component_form_3_div_2_glxy_form_field_1_Template","AddressFormV2Component_form_3_div_2_glxy_form_field_2_Template","dynamicControls","indexOf","AddressFormV2Component_form_3_div_2_Template","formFields","address_r10","formatAddress","formValues","country","code","province","address1","address2","city","zip","autoCompleteValidator","control","invalidSelection","removeOrphanedControls","fields","map","field","Object","keys","forEach","removeControl","labelOverrides","AddressFormV2Component","businessAddressPipe","FilterProvincesPipe","init_address_form_v2_component","__esmMin","init_core","init_forms","init_esm","init_address_service","init_country_input_component","init_custom_validators","addressData","a","setInitialValues","parentForm","form","disabled","disable","addControl","constructor","fb","showAddressPreview","requiredFields","autoCompleteControls","countryOptions$","inject","COUNTRY_OPTIONS_TOKEN","addressService","AddressService","selectFirstProvince","FormGroup","COUNTRY_CONTROL_TOKEN","updateForm","__async","config","currentConfig","updateFormFields","patchValue","countryOption","firstValueFrom","find","o","setValue","emitEvent","getUpdatedCountryConfig","prov","getProvince","zones","__spreadProps","__spreadValues","countryChanged","getCountry","pipe","catchError","of","c","templates","getOrderedFields","formatting","flat","reduce","acc","labels","f","validators","getFieldValidators","setValidators","updateValueAndValidity","setControl","FormControl","push","Validators","NotOnlyWhitespaceValidator","places","filter","p","place","console","log","markAsDirty","enable","businessType","ɵɵdirectiveInject","UntypedFormBuilder","selectors","inputs","decls","vars","consts","template","rf","ctx","AddressFormV2Component_ng_container_2_Template","AddressFormV2Component_form_3_Template","AddressFormV2Component_div_4_Template","styles","_AddressFormV2Component","transform","address","mailingAddress$","pure","standalone","_businessAddressPipe","searchTerm","toLocaleLowerCase","_FilterProvincesPipe","MaterialModules","AddressFormV2Module","init_address_form_v2_module","__esmMin","init_common","init_forms","init_autocomplete","init_form_field","init_icon","init_input","init_progress_spinner","init_ngx_translate_core","init_checkbox","init_tooltip","init_radio","init_expansion","init_chips","init_src","init_address_service","init_en_devel","init_country_input_component","MatAutocompleteModule","MatFormFieldModule","MatInputModule","MatIconModule","MatProgressSpinnerModule","MatTooltipModule","MatRadioModule","MatExpansionModule","MatChipsModule","AddressService","provide","COUNTRY_OPTIONS_TOKEN","useFactory","a","listAllCountryOptions","deps","defaultCountryControlProvider","imports","CommonModule","FormsModule","ReactiveFormsModule","TranslateModule","LexiconModule","forChild","componentName","baseTranslation","CountryInputComponent","GalaxyFormFieldModule","GalaxyCheckboxModule","_AddressFormV2Module","init_address","__esmMin","init_address_service","init_country_input_component","MenuOption","init_media_tab_interface","__esmMin","enumStringToValue","enumRef","value","ImageType","AssociateImageRequest","DeleteImageRequest","ListImagesRequestFilters","ImageAssociation","ListImagesPagedResponse","ListImagesRequest","environment","hostMap","HostService","MediaApiService","init_vendasta_account_group_media","__esmMin","init_core","init_http","init_operators","_AssociateImageRequest","proto","m","kwargs","toReturn","_DeleteImageRequest","_ListImagesRequestFilters","v","_ImageAssociation","_ListImagesPagedResponse","_ListImagesRequest","ɵɵdefineInjectable","http","hostService","HttpHeaders","r","request","__spreadProps","__spreadValues","map","resp","ɵɵinject","HttpClient","environment","hostMap","HostService","Tag","Video","Image","CreateImageRequest","CreateImageResponse","CreateVideoRequest","CreateVideoResponse","GenerateUploadUrlRequest","GenerateUploadUrlResponse","GetImageRequest","GetImageResponse","GetResumableUploadSessionRequest","GetResumableUploadSessionResponse","GetVideoRequest","GetVideoResponse","MediaApiService$1","UploadImageResponse","MediaUploadApi","MediaApiService","init_vendasta_media","__esmMin","init_core","init_http","init_operators","init_esm","ɵɵdefineInjectable","_Tag","proto","m","kwargs","toReturn","_Video","_Image","_CreateImageRequest","_CreateImageResponse","_CreateVideoRequest","_CreateVideoResponse","_GenerateUploadUrlRequest","_GenerateUploadUrlResponse","_GetImageRequest","_GetImageResponse","_GetResumableUploadSessionRequest","_GetResumableUploadSessionResponse","_GetVideoRequest","_GetVideoResponse","http","hostService","HttpHeaders","r","request","map","resp","t","ɵɵinject","HttpClient","_UploadImageResponse","catchError","err","imageId","error","throwError","grpcApi","mediaUploadApi","file","formData","servingUrl","mediaType","origin","ɵɵelementContainerStart","ɵɵelement","ɵɵelementStart","ɵɵlistener","ɵɵrestoreView","_r1","ctx_r1","ɵɵnextContext","ɵɵresetView","uploadPhotos","ɵɵtext","ɵɵelementEnd","ɵɵproperty","uploading","ɵɵadvance","ɵɵtextInterpolate1","ɵɵpipeBind1","UploadImageDialogComponent","init_upload_image_dialog_component","__esmMin","init_forms","constructor","dialogRef","alertService","imageUrlControl","UntypedFormControl","subscriptions","maxFileSizeBytes","ngOnDestroy","forEach","sub","unsubscribe","imageUrl","value","url","push","imageService","createAndAssociate","subscribe","imageId","onSuccess","err","uploadError","openSuccessSnack","image","mediaApiService","get","date","Date","close","error","console","message","openErrorSnack","onCancel","ɵɵdirectiveInject","MatDialogRef","SnackbarService","selectors","decls","vars","consts","template","rf","ctx","$event","ɵɵtemplate","UploadImageDialogComponent_ng_container_5_Template","UploadImageDialogComponent_button_10_Template","_UploadImageDialogComponent","MediaTabService","init_media_tab_service","__esmMin","init_vendasta_account_group_media","init_esm","init_operators","init_upload_image_dialog_component","constructor","accountGroupMediaApiService","mediaApiService","snackbarService","hasMore","BehaviorSubject","totalImages","loading","pageFetchError","imagesSubject","subscriptions","ngOnDestroy","forEach","sub","unsubscribe","clearConfig","accountGroupId","next","imageCursor","addImageToSubject","image","curImages","getValue","find","x","url","type","unshift","index","findIndex","date","splice","concat","removeImageUrlFromSubject","imageUrl","total","removeImageTypeFromSubject","imageType","imageTypeToString","openImageUploadDialog","dialog","dialogRef","open","UploadImageDialogComponent","width","minWidth","maxWidth","minHeight","componentInstance","imageService","push","beforeClosed","subscribe","result","createAndAssociate","servingUrl","create","pipe","switchMap","createResponse","associateRequest","AssociateImageRequest","imageId","associateImage","map","addClientImages","request","ListImagesRequest","cursor","pageSize","listImages","imageAssociations","images","nextCursor","totalResults","element","get","created","err","console","error","markImageAsLogo","afterClosed","logoUrl","ImageType","LOGO","tap","clientLogo","Date","openSuccessSnack","openErrorSnack","empty","markImageAsPrimary","primaryUrl","PRIMARY","clientPrimary","deleteImage","split","pop","deleteImageRequest","DeleteImageRequest","NOT_SPECIFIED","ɵɵinject","MediaApiService","SnackbarService","factory","ɵfac","_MediaTabService","ɵɵelementContainerStart","ɵɵelementStart","ɵɵtext","ɵɵelementEnd","ɵɵadvance","ɵɵtextInterpolate1","ɵɵpipeBind1","image_r2","type","ɵɵtemplate","MediaTabGalleryComponent_mat_grid_tile_1_ng_container_1_Template","ɵɵlistener","$event","ɵɵrestoreView","_r1","$implicit","ctx_r2","ɵɵnextContext","ɵɵresetView","menuOptionClicked","onClick","ɵɵelement","ɵɵproperty","ɵɵtextInterpolate","date","getMenuOptions","url","ɵɵsanitizeUrl","getSrcsetImageUrls","MediaTabGalleryComponent","init_media_tab_gallery_component","__esmMin","init_core","init_src","init_esm","init_media_tab_interface","constructor","imageTransformationService","imageClicked","EventEmitter","menuOptionSelected","mobileColumns","desktopColumns","gridColumns","subscriptions","ngOnInit","updateColumnTotal","push","observableFromEvent","window","subscribe","ngOnDestroy","forEach","sub","unsubscribe","image","emit","option","menuClick","imageUrl","transformation","ImageTransformation","crop","renderAsJpeg","setJpegQuality","getSrcSetForImage","innerWidth","MenuOption","Delete","Logo","Primary","ɵɵdirectiveInject","ImageTransformationService","selectors","inputs","images","menuOptions","outputs","decls","vars","consts","template","rf","ctx","MediaTabGalleryComponent_mat_grid_tile_1_Template","ɵɵpropertyInterpolate","_MediaTabGalleryComponent","ɵɵelementStart","ɵɵlistener","ɵɵrestoreView","_r1","ctx_r1","ɵɵnextContext","ɵɵresetView","openImageUploadDialog","ɵɵtext","ɵɵelementEnd","ɵɵadvance","ɵɵtextInterpolate1","ɵɵpipeBind1","ɵɵelement","_r4","loadMore","ɵɵproperty","info_r5","loading","ɵɵelementContainerStart","$event","_r3","openLightbox","imageMenuClicked","ɵɵtemplate","MediaTabComponent_ng_container_8_ng_container_1_mat_progress_bar_2_Template","MediaTabComponent_ng_container_8_ng_container_1_div_3_Template","MediaTabComponent_ng_container_8_ng_container_1_div_4_Template","clientImages_r6","pageFetchError","hasMore","ɵɵpipeBind2","ɵɵpureFunction2","_c0","length","totalImages","MediaTabComponent_ng_container_8_ng_container_1_Template","galleryInfo$","MediaTabComponent","ConfirmationModalComponent","init_media_tab_component","__esmMin","init_core","init_esm","init_operators","init_media_tab_interface","constructor","dialog","tabService","editDisabled","imageClicked","EventEmitter","lightboxSubject","Subject","subscriptions","ngOnInit","clearConfig","accountGroupId","addClientImages","push","pipe","withLatestFrom","images$","clickedImage","images","imageUrls","map","image","url","index","indexOf","subscribe","lightboxData","emit","ngOnDestroy","forEach","sub","unsubscribe","imagesSubject","arr","combineLatest","next","clickedOption","__async","getMenuKey","key","option","MenuOption","Logo","dialogRef","open","componentInstance","title","body","confirmButton","markImageAsLogo","Primary","markImageAsPrimary","Delete","deleteImage","ɵɵdirectiveInject","MatDialog","MediaTabService","selectors","inputs","outputs","decls","vars","consts","template","rf","ctx","MediaTabComponent_button_5_Template","MediaTabComponent_ng_container_8_Template","MediaTabComponent_ng_template_10_Template","ɵɵtemplateRefExtractor","noImg_r7","_MediaTabComponent","onConfirm","close","onCancel","MatDialogRef","ɵɵtextInterpolate","_ConfirmationModalComponent","ɵɵelementContainerStart","ɵɵelementStart","ɵɵlistener","moreHourType_r2","ɵɵrestoreView","_r1","$implicit","ctx_r2","ɵɵnextContext","ɵɵresetView","openEditDialog","value","ɵɵtext","ɵɵelementEnd","ɵɵadvance","ɵɵproperty","editDisabled","ɵɵpureFunction1","_c1","ɵɵtextInterpolate1","localizedDisplayName","ɵɵtemplate","MoreHoursComponent_ng_container_6_ng_container_1_ng_container_1_ng_container_5_Template","ɵɵtextInterpolate","ɵɵpipeBind1","setTypes","moreHourType_r5","_r4","_c2","MoreHoursComponent_ng_container_6_ng_container_1_ng_container_2_ng_container_5_Template","unsetTypes","MoreHoursComponent_ng_container_6_ng_container_1_ng_container_1_Template","MoreHoursComponent_ng_container_6_ng_container_1_ng_container_2_Template","size","MoreHoursComponent_ng_container_6_ng_container_1_Template","moreHoursTypes","length","empty_r6","ɵɵelement","MoreHoursComponent","init_more_hours_component","__esmMin","init_core","init_src","init_esm","constructor","dialog","fb","translateService","appearance","markedAsRequired","changed","EventEmitter","subscriptions","Map","ngOnInit","push","loading$","pipe","filter","loading","subscribe","forEach","moreHoursType","parentFormGroup","get","hoursTypeId","set","control","addControl","markAsPristine","ngOnDestroy","subscription","unsubscribe","disabled","markAsTouched","closeAll","editDialogRef","open","EditRegularHoursDialogComponent","disableClose","width","maxWidth","data","hideHolidayHours","componentInstance","showRemoveButton","customTitle","instant","afterClosed","result","markAsDirty","setValue","delete","emit","ɵɵdirectiveInject","MatDialog","UntypedFormBuilder","TranslateService","selectors","inputs","outputs","decls","vars","consts","template","rf","ctx","MoreHoursComponent_ng_container_6_Template","MoreHoursComponent_ng_template_8_Template","ɵɵtemplateRefExtractor","MoreHoursComponent_ng_template_10_Template","_c0","loading_r7","_MoreHoursComponent","ɵɵelementStart","ɵɵtext","ɵɵelementEnd","ɵɵproperty","ɵɵpureFunction2","_c4","ctx_r2","tabInvalid","businessProfileTab","Primary","tabChanged","ɵɵadvance","ɵɵtextInterpolate1","ɵɵpipeBind1","ɵɵlistener","$event","ɵɵrestoreView","_r4","ɵɵnextContext","ɵɵresetView","handleCategoriesChange","ɵɵtemplate","BusinessProfileComponent_mat_tab_4_glxy_form_field_21_glxy_error_10_Template","ɵɵtextInterpolate","primaryBusinessCategoryCtrl_r5","value","length","ɵɵelement","businessCategoriesCtrl_r6","geoControl","mapZoomLevel","inferredMapBounds","businessOperation_r7","code","name","businessOperationError_r8","reopeningDateError_r9","BusinessProfileComponent_mat_tab_4_ng_container_74_glxy_form_field_1_glxy_error_9_Template","ɵɵpropertyInterpolate","reopeningDate_r10","accountGroupForm","get","getError","ɵɵelementContainerStart","BusinessProfileComponent_mat_tab_4_ng_container_74_glxy_form_field_1_Template","closedStatus_r11","undefined","closedStatuses","includes","ecommerce_r12","paymentMethod_r13","paymentMethodError_r14","BusinessProfileComponent_mat_tab_4_ng_template_2_Template","BusinessProfileComponent_mat_tab_4_glxy_form_field_21_Template","BusinessProfileComponent_mat_tab_4_glxy_form_field_22_Template","BusinessProfileComponent_mat_tab_4_forms_geo_input_56_Template","_r2","handleTimeZoneChange","BusinessProfileComponent_mat_tab_4_mat_option_71_Template","BusinessProfileComponent_mat_tab_4_glxy_error_73_Template","BusinessProfileComponent_mat_tab_4_ng_container_74_Template","BusinessProfileComponent_mat_tab_4_forms_input_77_Template","BusinessProfileComponent_mat_tab_4_mat_option_84_Template","BusinessProfileComponent_mat_tab_4_mat_option_92_Template","BusinessProfileComponent_mat_tab_4_glxy_error_94_Template","loading$","ɵɵpureFunction1","_c2","accountGroupNgForm_r15","submitted","basicInfoForm","invalid","ɵɵpipeBind2","_c3","rmProductName","editDisabled","phoneForm","phoneNumberItemFactory","bind","showMap","addressData","serviceAreaForm","serviceAreaToggle","listingProfile","napData","timezone","additionalInfoForm","businessOperationMethods$","isConditionalFieldVisible","ecommerceOnly$","paymentMethods$","CUSTOM_ERROR_MESSAGES","Hours","_r17","onMoreHoursChange","moreHoursTypes_r18","moreHoursForm","BusinessProfileComponent_mat_tab_5_ng_template_2_Template","_r16","onBusinessHoursChange","BusinessProfileComponent_mat_tab_5_business_profile_more_hours_11_Template","businessHoursForm","specialHoursForm","moreHoursTypes$","Descriptions","longDescriptionLength","getSuggestion","suggestFieldUpdate","BusinessProfileComponent_mat_tab_6_ng_template_2_Template","BusinessProfileComponent_mat_tab_6_ng_container_11_Template","BusinessProfileComponent_mat_tab_6_ng_container_13_Template","businessDescriptionsForm","AISuggestionFeature$","_c5","Images","BusinessProfileComponent_mat_tab_7_ng_template_2_Template","_r19","openLightbox","accountGroupId","Social","BusinessProfileComponent_mat_tab_8_ng_template_2_Template","BusinessProfileComponent_mat_tab_8_forms_input_13_Template","businessPagesForm","showFourSquare","blogForm","Professional","standardizedTitle_r20","professionalCredential_r21","gender_r22","doctordotcomCategory_r23","fullName","enumVal_r24","BusinessProfileComponent_mat_tab_9_ng_template_2_Template","BusinessProfileComponent_mat_tab_9_mat_option_15_Template","BusinessProfileComponent_mat_tab_9_mat_option_29_Template","BusinessProfileComponent_mat_tab_9_mat_option_36_Template","BusinessProfileComponent_mat_tab_9_mat_option_76_Template","BusinessProfileComponent_mat_tab_9_mat_option_114_Template","personalInformationForm","standardizedTitles$","professionalCredentials","genders$","additionalProfessionalInfoForm","qualificationsAndExperienceForm","compareDoctorDotComCategories","availableDoctorDotComCategories","practiceInformationForm","isProviderOptions$","Attributes","BusinessProfileComponent_mat_tab_10_ng_template_2_Template","_r25","activeTab","googleAttributesForm","googleAttributesMetadata$","googleAttributes$","getValidCategoryLength","bingAttributesForm","bingAttributesMetadata$","bingAttributes$","CustomFields","pid_r27","auxiliaryDataObjectType","agid_r26","auxiliaryDataAdminURL","BusinessProfileComponent_mat_tab_11_ng_container_5_ng_container_1_Template","accountGroupId$","BusinessProfileComponent_mat_tab_11_ng_template_2_Template","BusinessProfileComponent_mat_tab_11_ng_container_5_Template","partnerId$","Administration","market_r28","BusinessProfileComponent_mat_tab_12_div_4_glxy_form_field_7_mat_option_6_Template","markets","salesperson_r29","salespersonId","BusinessProfileComponent_mat_tab_12_div_4_glxy_form_field_8_mat_option_7_Template","salespeople","_r30","showAdditionalSalespeopleInput","additionalSalespeople","getPrimarySalespersonInAdditionalSalespeopleErrorMsg","BusinessProfileComponent_mat_tab_12_div_4_glxy_form_field_7_Template","BusinessProfileComponent_mat_tab_12_div_4_glxy_form_field_8_Template","BusinessProfileComponent_mat_tab_12_div_4_div_9_Template","BusinessProfileComponent_mat_tab_12_div_4_glxy_error_10_Template","BusinessProfileComponent_mat_tab_12_div_4_forms_va_input_tags_11_Template","BusinessProfileComponent_mat_tab_12_div_4_glxy_error_12_Template","salesForm","hasAccessToMarkets","hasAccessToSales","isAdditionalSalespeopleInputVisible","BusinessProfileComponent_mat_tab_12_ng_template_2_Template","BusinessProfileComponent_mat_tab_12_div_4_Template","BusinessProfileComponent_mat_tab_12_forms_input_12_Template","adminForm","showCustomerIdentifier","tags","convertFromSales","partnerId","marketId","sp","firstName","lastName","email","createDefaultLegacyProductDetails","LegacyProductDetails","commonName","adminNotes","paymentMethodValidator","getCountryCode","translateService","control","countryCode","paymentMethods","CountryPaymentMethods","slice","invalidPaymentMethods","filter","selectedPaymentMethod","indexOf","paymentMethodsTranslations","instant","paymentMethodsString","map","method","RichDataPaymentMethods","join","getAllStandardizedTitles","GenderKeys","GenderSelection","BusinessOperationMethods","SellingMethodsAvailability","formTabs","isProviderOptions","BusinessProfileComponent","init_business_profile_component","__esmMin","init_core","init_forms","init_src","init_vendasta_account_group","init_timezone","init_vendasta_listing_products","init_esm","init_custom_validators","init_format_phone_number_pipe","init_business_profile_interface","init_vendasta_sales","init_rxjs_interop","init_operators","init_address","SELECT_OPTION","FEMALE","MALE","OTHER","DEFAULT","AMERICAN_EXPRESS","ANDROID_PAY","APPLE_PAY","CASH","CHECK","DEBIT","DINERS_CLUB","DISCOVER","MASTERCARD","PAYPAL","SAMSUNG_PAY","STORE_CARD","TRAVELERS_CHECK","VISA","CZ","CCS","SODEXO","GOPAY","V_PAY","FINANCING","INVOICE","PAYSEC","BITCOIN","ClosedStatus","UNSPECIFIED","OPEN","LIMITED","TEMPORARY","PERMANENT","IsAvailable","UNSET","YES","NO","BusinessProfileTab","serviceAvailabilityForm","hoursForm","timeZoneControl","HealthCareProfessionalInformationIsProvider","IsProviderTrue","IsProviderFalse","constructor","listingProfileService","listingProfileApiService","fb","snackbar","salespersonService","zone","formatPhoneNumber","featureFlagService","geocoder","productAnalyticsService","lightbox","suggestionService","listingProductsApiService","destroyRef","httpClient","maxShareOfVoiceKeywords","maxCompetitors","enabledTabs","tabBackground","saved","EventEmitter","subscriptions","visibleConditionalFields","lengthOfRepeatedField","error","maxLength","fieldName","friendlyName","accountGroupId$$","BehaviorSubject","profileLoading$$","ReplaySubject","asObservable","addressFormDirty","pipe","switchMap","getMoreHoursTypes","GetMoreHoursTypesRequest","businessId","languageCode","currentLang","defaultLang","response","moreHoursTypes","shareReplay","attributesMetadata$","getAttributeMetadata","GetAttributeMetadataRequest","attributeMedata","listingProfile$","tap","next","ProjectionFilter","externalIdentifiers","socialUrls","hoursOfOperation","richData","businessHours","googleAttributes","googleAttributesMetadata","bingAttributes","bingAttributesMetadata","legacyProductDetails","am","find","a","vendorId","googleAttributeMetadata","ag","bingAttributeMetadata","accountGroup","partnersLongDescriptionLength","MTCZ","BLS","hasProfessionalCategory","formStateWithDisabled","phoneValidator","countryChanges","inject","COUNTRY_CONTROL_TOKEN","valueChanges","country","fieldType","GetSuggestionRequest","catchError","err","message","open","politeness","duration","EMPTY","resp","suggestion","existing","option","tone","SuggestFieldUpdateRequest","existingValue","mapsLoaded$","jsonp","retry","refCount","bufferSize","of","skipWhile","val","productNames","RM","ngOnChanges","changes","currentValue","previousValue","createForm","group","businessType","Validators","min","places","required","businessName","whitespaceValidator","nameCharacterValidator","commonBusinessNames","array","website","urlValidator","emailValidator","primaryBusinessCategory","businessCategories","workNumbers","faxNumber","cellNumber","callTrackingNumbers","tollFreeNumber","servicesOffered","compose","totalLengthOfRepeatedFieldValidator","brandsCarried","landmark","bookingUrl","ico","facebookUrl","foursquareUrl","linkedInUrl","twitterUrl","pinterestUrl","instagramUrl","youTubeUrl","blogOrRssFeedUrl","shortDescription","longDescription","standardizedTitle","middleInitials","gender","emailAddress","ecommerceOnly","closedStatus","reopeningDate","doctorDotComCategories","educations","specialties","residencies","fellowships","nationalProviderIdentifier","medicalLicenseNumber","stateLicense","acceptingPatients","insurancesAccepted","firmClinicOfficeName","isProvider","hospitalAffiliations","isTabEnabled","market","additionalSalespersonIds","validators","primaryIsNotInAdditionalSalespeople","salesperson","primaryIsSelectedWhenHavingAdditionalSalespeople","customerIdentifier","notes","timezoneControl","subscribe","updateValueAndValidity","loadFormValues","setControlsForFormArray","ids","vCategoryIds","primaryCategory","patchValue","companyName","serviceArea","serviceAreaBusiness","markAsPristine","setValue","disable","company","address1","address","address2","city","province","state","zip","location","workNumber","number","transformForBusinessProfile","callTrackingNumber","conditionalFields","richDataCf","valuesToPatch","forEach","cf","id","push","generalHours","hours","hoursTypeId","mergedHours","MergeHours","regularHours","specialHours","addControl","linkedinUrl","youtubeUrl","rssUrl","controls","setValidators","description","serviceAvailability","healthCareProfessionalInformation","initials","professionalCredential","HealthCareProfessionalInformationGender","NotSpecified","school","specialty","residency","fellowship","isTakingPatients","office","IsProviderNotSpecified","salesPersonId","additionalSalesPersonIds","getGoogleCheckboxValues","formGroup","metaAttribute","values","Object","keys","key","getRawValue","indexOfKeyInValueDisplayName","valueDisplayNames","findIndex","d","getBingCheckboxValues","getDoctorDotComCategories","GetDoctorDotComCategoriesRequest","c","getBingAttributesToSubmit","duHastMe","bingAttributeMetaData","attribs","sort","b","displayName","localeCompare","sortOrder","md","parent","valueType","AttributesValueType","REPEATED_ENUM","form","ENUM","ctrl","v","ba","toApiJson","i","j","Boolean","cfId","getGoogleAttributesToSubmit","googleAttributeMetaData","ga","category1","category2","onSubmit","arg","__async","pristine","auxiliaryDataTable","valid","getFirstInvalidTab","controlKey","getChangedValues","trackChangedForms","operations","UpdateOperations","firstValueFrom","addUpdateOperation","GoogleAttributesUpdateOperation","googleAttribute","BingAttributesUpdateOperation","bingAttribute","phones","basicInfo","addressForm","NapUpdateOperation","ServiceArea","Geo","businessDescriptions","businessPages","blog","SocialURLsUpdateOperation","healthCareProfessionalInfo","healthCareHasChanges","practiceInformation","additionalProfessionalInfo","qualificationsAndExperience","personalInformation","HealthCareProfessionalInformation","serviceAvailabilityChanges","serviceAvailabilityInfo","ServiceAvailability","closedStatusDate","Date","additionalInfo","richDataUpdateOperations","RichData","cfValues","field","RichDataUpdateOperation","externalIdentifiersUpdateOperation","ExternalIdentifiersUpdateOperation","updateOrigin","primary","additional","Array","from","Set","LegacyProductDetailsUpdateOperation","doUpdate","tabKeys","sh","SplitHours","BusinessHours","BusinessHoursUpdateOperation","onlyBusinessHoursSave","updateParams","bulkUpdate","snackBarRef","retryable","onAction","saveChanges","trackEvent","dismiss","afterDismissed","auxiliaryDataSaved","onlyHoursSave","markFormsPristine","accountSaved","customFieldsSaved","emit","ngOnInit","watchMarketForSalespeople","categories","allCategories","currentDoctorDotComCategories","console","distinctUntilChanged","checkFeatureFlag","getMapZoomLevel","inferMapBounds","buildTimezoneDisplay","bomTranslateString","bomTranslateKeys","k","isNaN","Number","combineLatest","stream","startWith","translations","ecommerceValueChanges$","availabilityOptions","paymentMethodKeys","setPaymentMethods","genderTranslateString","genderTranslateKeys","genders","selection","isProviderTranslateString","isProviderTranslateKeys","options","parseInt","standardizedTitles","availabilities","availabilityTranslateKeys","availabilityTranslateStrings","availabilityStrings","translation","tab","isValidArray","some","category","isHealthCategory","errors","primaryName","req","listSalespersons","takeUntilDestroyed","result","results","disabled","formArray","controlFactory","fixControlsForFormArray","defaultControlFactory","zoom","maxCompetitorsFields","maxShareOfVoiceKeywordsFields","didLoad","fullAddress","geocode","status","google","maps","GeocoderStatus","OK","viewport","geometry","run","east","getNorthEast","lng","north","lat","west","getSouthWest","south","log","data","imageUrls","index","onTabSwitch","event","dirty","hideSaveButton","hiddenFields","HiddenField","SocialFourSquare","Map","Markets","Sales","CustomerIdentifier","ngOnDestroy","sub","unsubscribe","showDateTemporaryClose","closedValue","timeZone","changedForms","selectedMethod","ɵɵdirectiveInject","ListingProfileService","ListingProfileApiService","UntypedFormBuilder","MatSnackBar","SalespersonService","NgZone","FormatPhoneNumberPipe","FeatureFlagService","TranslateService","MapGeocoder","ProductAnalyticsService","VaFullscreenLightboxService","SuggestionApiService","ListingProductsApiService","DestroyRef","HttpClient","selectors","viewQuery","rf","ctx","ɵɵNgOnChangesFeature","decls","vars","consts","template","i0","_r1","preventDefault","BusinessProfileComponent_mat_tab_4_Template","BusinessProfileComponent_mat_tab_5_Template","BusinessProfileComponent_mat_tab_6_Template","BusinessProfileComponent_mat_tab_7_Template","BusinessProfileComponent_mat_tab_8_Template","BusinessProfileComponent_mat_tab_9_Template","BusinessProfileComponent_mat_tab_10_Template","BusinessProfileComponent_mat_tab_11_Template","BusinessProfileComponent_mat_tab_12_Template","BusinessProfileComponent_mat_card_13_Template","BusinessProfileComponent_ng_template_14_Template","ɵɵtemplateRefExtractor","ɵɵclassMap","_c1","_BusinessProfileComponent","en_devel_default","init_en_devel","__esmMin","WEBLATE_COMPONENT_NAME","init_constants","__esmMin","TaxonomyI18nModule","init_taxonomy_i18n_module","__esmMin","init_ngx_translate_core","init_src","init_en_devel","init_constants","TranslateModule","LexiconModule","forChild","componentName","WEBLATE_COMPONENT_NAME","baseTranslation","_TaxonomyI18nModule","init_lib","__esmMin","init_taxonomy_i18n_module","init_src","__esmMin","init_lib","SalespersonResponse","SalespersonRequest","init_salesperson_objects","__esmMin","fromProto","proto","m","key","Object","prototype","hasOwnProperty","call","constructor","kwargs","toApiJson","partnerId","marketId","salespersonId","firstName","lastName","email","fullName","marketIds","includeNullMarket","pid","includeNullMarketFlag","SalespersonApiService","init_salesperson_api_service","__esmMin","init_src","init_http","init_salesperson_objects","init_operators","constructor","http","environmentService","lookupUrl","host","apiOptions","headers","HttpHeaders","withCredentials","_host","getEnvironment","Environment","LOCAL","TEST","DEMO","PROD","lookup","r","request","toApiJson","SalespersonRequest","post","__spreadProps","__spreadValues","params","pipe","map","resp","data","salespersonData","SalespersonResponse","fromProto","share","ɵɵinject","HttpClient","EnvironmentService","factory","ɵfac","_SalespersonApiService","SalespersonService","init_salesperson_service","__esmMin","init_operators","constructor","salespersonApiService","lookup","partnerId","marketIds","includeNullMarket","pipe","map","response","handleResponse","data","sp","pid","marketId","salespersonId","salesPersonId","firstName","lastName","fullName","getFullName","email","trim","ɵɵinject","SalespersonApiService","factory","ɵfac","_SalespersonService","SalespersonServiceModule","init_salesperson_module","__esmMin","init_salesperson_api_service","init_salesperson_service","SalespersonService","SalespersonApiService","_SalespersonServiceModule","init_lib","__esmMin","init_salesperson_module","init_src","__esmMin","init_lib","CompetitorsTabService","init_competitors_tab_service","__esmMin","init_esm","init_operators","constructor","api","getCompetitors","businessId","cursor","pageSize","req","pagingOptions","pipe","map","res","competitors","catchError","of","create","competitor","location","name","url","update","competitorId","fieldMask","paths","delete","ɵɵinject","CompetitorApiService","factory","ɵfac","_CompetitorsTabService","CompetitorsTabModule","init_competitors_tab_module","__esmMin","init_common","init_forms","init_button","init_card","init_dialog","init_icon","init_input","init_progress_spinner","init_ngx_translate_core","init_form_field","init_competitors_tab_service","CompetitorsTabService","imports","CommonModule","MatCardModule","MatButtonModule","MatIconModule","MatDialogModule","MatInputModule","MatProgressSpinnerModule","TranslateModule","ReactiveFormsModule","GalaxyFormFieldModule","_CompetitorsTabModule","MediaTabGalleryModule","init_media_tab_gallery_module","__esmMin","init_common","init_chips","init_grid_list","init_src","init_ngx_translate_core","CommonModule","MatGridListModule","MatChipsModule","VaActionMenuModule","TranslateModule","_MediaTabGalleryModule","UploadImageDialogModule","init_upload_image_dialog_module","__esmMin","init_common","init_forms","init_button","init_dialog","init_icon","init_progress_bar","init_ngx_translate_core","init_src","CommonModule","VaFormsModule","MatIconModule","MatButtonModule","MatProgressBarModule","ReactiveFormsModule","MatDialogModule","TranslateModule","_UploadImageDialogModule","MediaTabModule","init_media_tab_module","__esmMin","init_common","init_button","init_card","init_dialog","init_icon","init_progress_bar","init_ngx_translate_core","init_snackbar_service","init_media_tab_gallery_module","init_media_tab_service","init_upload_image_dialog_module","MediaTabService","SnackbarService","imports","CommonModule","MatCardModule","MatButtonModule","MediaTabGalleryModule","MatProgressBarModule","UploadImageDialogModule","MatIconModule","MatDialogModule","TranslateModule","_MediaTabModule","require_fast_deep_equal","__commonJSMin","exports","module","equal","a","b","length","i","keys","key","totalLengthOfRepeatedFieldValidator","maxLength","friendlyName","control","value","length","filter","val","join","lengthOfRepeatedField","arrayAllTruthyItemsRequired","v","required","init_validators","__esmMin","ɵɵelementContainerStart","ɵɵelement","ɵɵelementStart","ɵɵtext","ɵɵelementEnd","ɵɵtemplate","ProductActivationPrereqFormComponent_ng_template_2_ng_container_0_ng_container_1_ng_template_9_Template","ɵɵadvance","ɵɵtextInterpolate1","ɵɵpipeBind1","ɵɵproperty","content_r2","ɵɵpureFunction1","_c0","sectionConfig_r1","ProductActivationPrereqFormComponent_ng_template_2_ng_container_0_ng_container_1_Template","ctx_r2","sectionConfig$","ProductActivationPrereqFormComponent_ng_template_2_ng_container_0_Template","hasRestrictions$","businessActivationForm","loading$","get","ProductActivationPrereqFormComponent_ng_template_4_glxy_form_field_16_span_4_Template","orderFormOptions","bypassRequiredQuestions","longDescription_r5","value","length","controls","description","ProductActivationPrereqFormComponent_ng_template_4_glxy_form_field_18_span_4_Template","shortDescription_r6","shortDescription","servicesPlaceholder","readOnly","brandsPlaceholder","submitting$","ɵɵlistener","ɵɵrestoreView","_r4","ɵɵnextContext","ɵɵresetView","onSubmit","$event","i0","preventDefault","ProductActivationPrereqFormComponent_ng_template_4_ng_container_5_Template","ProductActivationPrereqFormComponent_ng_template_4_ng_template_6_Template","ɵɵtemplateRefExtractor","ProductActivationPrereqFormComponent_ng_template_4_ng_container_12_Template","ProductActivationPrereqFormComponent_ng_template_4_ng_template_13_Template","ProductActivationPrereqFormComponent_ng_template_4_forms_business_hours_15_Template","ProductActivationPrereqFormComponent_ng_template_4_glxy_form_field_16_Template","ProductActivationPrereqFormComponent_ng_template_4_div_17_Template","ProductActivationPrereqFormComponent_ng_template_4_glxy_form_field_18_Template","ProductActivationPrereqFormComponent_ng_template_4_div_19_Template","ProductActivationPrereqFormComponent_ng_template_4_forms_va_input_repeated_20_Template","ProductActivationPrereqFormComponent_ng_template_4_forms_va_input_repeated_21_Template","ProductActivationPrereqFormComponent_ng_template_4_button_23_Template","ProductActivationPrereqFormComponent_ng_template_4_span_24_Template","expanded","infoIcon_r8","readOnlyPanelMessage_r9","sectionConfig_r7","showHoO","showLongDescription","showDescription","showServices","showBrands","hasUnsavedChanges$","import_fast_deep_equal","ProductActivationPrereqFormComponent","init_product_activation_prereq_form_component","__esmMin","init_core","init_forms","init_src","init_vendasta_listing_products","init_esm","init_operators","init_validators","productIds","productIds$$","next","checkChipFieldValidity","chipField","Array","constructor","fb","accountGroupService","listingProfileService","partnerApiService","translateService","alertService","hasBusinessProductActivationPrereqFormEvent","EventEmitter","BehaviorSubject","sectionConfig$$","submitting$$","loading$$","productIds$","asObservable","subscriptions","hasUnsavedChanges$$","isValid$","of","ngOnInit","instant","business$","businessId","ProjectionFilter","richData","accountGroupExternalIdentifiers","pipe","catchError","AccountGroup","listingProfile$","LPProjectionFilter","businessHours","ListingProfile","getSectionConfig$","map","resp","emit","push","combineLatest","business","listingProfile","sectionConfig","longDescription","generalHours","find","hours","hoursTypeId","MergeHours","regularHours","servicesOffered","brandsCarried","validators","arrayValidators","Validators","required","arrayAllTruthyItemsRequired","businessProfileForm","UntypedFormGroup","addControl","control","array","compose","minLength","maxLength","totalLengthOfRepeatedFieldValidator","currentSubmittedFormValues","JSON","parse","stringify","subscribe","form","disable","Object","keys","controlName","valueChanges","debounceTime","tap","changes","equal","startWith","hasSubmittedRequiredValues","key","formValue","isValid","valid","setAsTouched","switchMap","deleted","externalIdentifiers","EMPTY","getMultiApp","partnerId","marketId","appKeys","appId","includeNotEnabled","filter","Boolean","apps","app","activationInformation","requiredBusinessData","configs","config","reduce","acc","appConfig","descriptionShort","descriptionLong","brands","services","err","console","error","markAsTouched","i","UntypedFormControl","UntypedFormArray","forEach","c","updateValueAndValidity","emitEvent","pristine","openErrorSnack","errorMsg","invalid","data","updateOperations","UpdateOperations","listingProfileUpdate$","dirty","lpUpdateOperations","LPUpdateOperations","addUpdateOperation","BusinessHoursUpdateOperation","BusinessHours","SplitHours","bulkUpdate","richDataUpdateOperation","RichDataUpdateOperation","agUpdate$","openSuccessSnack","complete","ngOnDestroy","subscription","unsubscribe","ɵɵdirectiveInject","UntypedFormBuilder","AccountGroupService","ListingProfileService","PartnerApiService","TranslateService","SnackbarService","selectors","inputs","outputs","decls","vars","consts","template","rf","ctx","ProductActivationPrereqFormComponent_ng_container_0_Template","ProductActivationPrereqFormComponent_ng_template_2_Template","ProductActivationPrereqFormComponent_ng_template_4_Template","loaded_r10","_ProductActivationPrereqFormComponent","ProductActivationPrereqFormModule","init_product_activation_prereq_form_module","__esmMin","init_expansion","init_form_field","init_card","init_icon","init_src","init_forms","init_common","init_ngx_translate_core","init_input","init_button","init_en_devel","CommonModule","FormsModule","ReactiveFormsModule","TranslateModule","LexiconModule","forChild","componentName","baseTranslation","MatExpansionModule","MatFormFieldModule","MatIconModule","VaFormsModule","MatInputModule","MatButtonModule","MatCardModule","GalaxyFormFieldModule","_ProductActivationPrereqFormModule","BusinessProfileModule","init_business_profile_module","__esmMin","init_common","init_forms","init_google_maps","init_datepicker","init_expansion","init_icon","init_autocomplete","init_button","init_card","init_checkbox","init_chips","init_dialog","init_form_field","init_input","init_radio","init_select","init_snack_bar","init_tabs","init_tooltip","init_src","init_ngx_translate_core","init_alert","init_timezone_selector","init_address_form_v2_module","init_en_devel","init_competitors_tab_module","init_media_tab_module","init_product_activation_prereq_form_module","init_loading_spinner","VaFullscreenLightboxService","imports","CommonModule","ReactiveFormsModule","ImageTransformationModule","VaFormsModule","TaxonomyServiceModule","MatInputModule","MatCardModule","MatTabsModule","MatTooltipModule","MatSelectModule","MatButtonModule","MatIconModule","MatDialogModule","MatSnackBarModule","SalespersonServiceModule","MediaTabModule","MatCheckboxModule","MatDatepickerModule","AddressFormV2Module","TaxonomyI18nModule","GoogleMapsModule","TranslateModule","LexiconModule","forChild","componentName","baseTranslation","ProductActivationPrereqFormModule","CompetitorsTabModule","GalaxyCheckboxModule","MatAutocompleteModule","GalaxyTimezoneSelectorModule","AuxiliaryDataModule","BusinessCategoryModule","GalaxyFormFieldModule","FormsModule","MatRadioModule","MatChipsModule","MatExpansionModule","MatFormFieldModule","GalaxyAlertModule","GalaxyLoadingSpinnerModule","_BusinessProfileModule","FormatAddressToStringPipe","init_format_address_pipe","__esmMin","transform","address","trim","city","state","filter","v","join","pure","_FormatAddressToStringPipe","ɵɵelementStart","ɵɵtext","ɵɵelementEnd","ɵɵadvance","ɵɵtextInterpolate1","ctx_r3","getPartnerIdfromConstraints","ag_r3","constraints","ɵɵelement","ɵɵlistener","ɵɵrestoreView","_r2","$implicit","ɵɵnextContext","ɵɵresetView","selectBusiness","ɵɵtemplate","BusinessSelectorDialogComponent_ng_container_9_div_1_div_1_p_7_Template","BusinessSelectorDialogComponent_ng_container_9_div_1_div_1_mat_divider_8_Template","napData","companyName","ɵɵpipeBind1","ɵɵproperty","length","last_r5","BusinessSelectorDialogComponent_ng_container_9_div_1_div_1_Template","businesses_r6","$event","_r7","loadMoreAccounts","ɵɵpureFunction0","_c1","ɵɵelementContainerStart","BusinessSelectorDialogComponent_ng_container_9_ng_container_2_div_2_Template","BusinessSelectorDialogComponent_ng_container_9_ng_container_2_mat_spinner_3_Template","details_r8","loading","hasMore","BusinessSelectorDialogComponent_ng_container_9_div_1_Template","BusinessSelectorDialogComponent_ng_container_9_ng_container_2_Template","emptyState_r9","ɵɵpureFunction2","_c0","hasMore$","loading$","_r10","createBusiness","BusinessSelectorDialogComponent_ng_template_17_div_1_Template","_c2","PAGE_SIZE","BusinessSelectorDialogComponent","init_business_selector_dialog_component","__esmMin","init_forms","init_dialog","init_vendasta_account_group","init_esm","init_operators","constructor","dialogRef","router","accountGroupService","data","loadMore$$","BehaviorSubject","loadMoreTrigger$","asObservable","pipe","map","business$$","business$","nextCursor$$","hasMore$$","loading$$","subscriptions","searchFormField","UntypedFormControl","previousSearchTerm","loadingFirstPage","ngOnInit","initBusinesses","ngOnDestroy","forEach","s","unsubscribe","inViewportEvent","visible","next","push","combineLatest","valueChanges","startWith","debounceTime","distinctUntilChanged","shareReplay","switchMap","searchTerm","cursor","value","lookupRequest","projectionFilter","projectionFilterOverride","ProjectionFilter","accountGroupExternalIdentifiers","partnerId","filters","includeDeleted","pageSize","sortOptions","direction","field","marketId","marketIds","lookup","subscribe","pagedAccountGroupResponse","businesses","accountGroups","concat","nextCursor","error","accountGroup","close","navigateByUrl","find","element","foreignKey","kind","key","ɵɵdirectiveInject","MatDialogRef","Router","AccountGroupApiService","MAT_DIALOG_DATA","selectors","decls","vars","consts","template","rf","ctx","BusinessSelectorDialogComponent_ng_container_9_Template","i0","_r1","BusinessSelectorDialogComponent_ng_template_15_Template","ɵɵtemplateRefExtractor","BusinessSelectorDialogComponent_ng_template_17_Template","ɵɵtextInterpolate","ɵɵpropertyInterpolate","loading_r11","_BusinessSelectorDialogComponent","BusinessSelectorDialogModule","init_business_selector_dialog_module","__esmMin","init_common","init_list","init_button","init_form_field","init_input","init_progress_spinner","init_dialog","init_forms","init_ng_in_viewport","init_src","init_en_devel","init_core","CommonModule","MatListModule","MatButtonModule","MatFormFieldModule","MatInputModule","MatProgressSpinnerModule","MatDialogModule","ReactiveFormsModule","InViewportModule","LexiconModule","forChild","componentName","baseTranslation","MatLineModule","GalaxyFormFieldModule","_BusinessSelectorDialogModule","init_lib","__esmMin","init_business_profile_module","init_feature_flag_service","init_product_activation_prereq_form_module","init_business_selector_dialog_component","init_business_selector_dialog_module","init_address","init_src","__esmMin","init_lib"],"x_google_ignoreList":[0,30,31,59]}