{"version":3,"sources":["node_modules/@vendasta/address/fesm2020/vendasta-address.mjs"],"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';\nclass CountryConfiguration {\n static fromProto(proto) {\n let m = new CountryConfiguration();\n m = Object.assign(m, proto);\n if (proto.phoneNumberPrefix) {\n m.phoneNumberPrefix = parseInt(proto.phoneNumberPrefix, 10);\n }\n if (proto.formatting) {\n m.formatting = CountryConfigurationFormatting.fromProto(proto.formatting);\n }\n if (proto.labels) {\n m.labels = CountryConfigurationLabels.fromProto(proto.labels);\n }\n if (proto.zones) {\n m.zones = proto.zones.map(CountryConfigurationZone.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.code !== 'undefined') {\n toReturn['code'] = this.code;\n }\n if (typeof this.continent !== 'undefined') {\n toReturn['continent'] = this.continent;\n }\n if (typeof this.name !== 'undefined') {\n toReturn['name'] = this.name;\n }\n if (typeof this.phoneNumberPrefix !== 'undefined') {\n toReturn['phoneNumberPrefix'] = this.phoneNumberPrefix;\n }\n if (typeof this.formatting !== 'undefined' && this.formatting !== null) {\n toReturn['formatting'] = 'toApiJson' in this.formatting ? this.formatting.toApiJson() : this.formatting;\n }\n if (typeof this.labels !== 'undefined' && this.labels !== null) {\n toReturn['labels'] = 'toApiJson' in this.labels ? this.labels.toApiJson() : this.labels;\n }\n if (typeof this.zones !== 'undefined' && this.zones !== null) {\n toReturn['zones'] = 'toApiJson' in this.zones ? this.zones.toApiJson() : this.zones;\n }\n if (typeof this.locale !== 'undefined') {\n toReturn['locale'] = this.locale;\n }\n return toReturn;\n }\n}\nclass CountryOption {\n static fromProto(proto) {\n let m = new CountryOption();\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.code !== 'undefined') {\n toReturn['code'] = this.code;\n }\n if (typeof this.name !== 'undefined') {\n toReturn['name'] = this.name;\n }\n return toReturn;\n }\n}\nclass CountryConfigurationFormatting {\n static fromProto(proto) {\n let m = new CountryConfigurationFormatting();\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.show !== 'undefined') {\n toReturn['show'] = this.show;\n }\n if (typeof this.edit !== 'undefined') {\n toReturn['edit'] = this.edit;\n }\n if (typeof this.required !== 'undefined') {\n toReturn['required'] = this.required;\n }\n return toReturn;\n }\n}\nclass CountryConfigurationLabels {\n static fromProto(proto) {\n let m = new CountryConfigurationLabels();\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.address1 !== 'undefined') {\n toReturn['address1'] = this.address1;\n }\n if (typeof this.address2 !== 'undefined') {\n toReturn['address2'] = this.address2;\n }\n if (typeof this.city !== 'undefined') {\n toReturn['city'] = this.city;\n }\n if (typeof this.company !== 'undefined') {\n toReturn['company'] = this.company;\n }\n if (typeof this.country !== 'undefined') {\n toReturn['country'] = this.country;\n }\n if (typeof this.firstName !== 'undefined') {\n toReturn['firstName'] = this.firstName;\n }\n if (typeof this.lastName !== 'undefined') {\n toReturn['lastName'] = this.lastName;\n }\n if (typeof this.phone !== 'undefined') {\n toReturn['phone'] = this.phone;\n }\n if (typeof this.postalCode !== 'undefined') {\n toReturn['postalCode'] = this.postalCode;\n }\n if (typeof this.zone !== 'undefined') {\n toReturn['zone'] = this.zone;\n }\n return toReturn;\n }\n}\nclass CountryConfigurationZone {\n static fromProto(proto) {\n let m = new CountryConfigurationZone();\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.code !== 'undefined') {\n toReturn['code'] = this.code;\n }\n if (typeof this.name !== 'undefined') {\n toReturn['name'] = this.name;\n }\n return toReturn;\n }\n}\nclass DeleteLocalizedZoneRequest {\n static fromProto(proto) {\n let m = new DeleteLocalizedZoneRequest();\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.locale !== 'undefined') {\n toReturn['locale'] = this.locale;\n }\n if (typeof this.countryCode !== 'undefined') {\n toReturn['countryCode'] = this.countryCode;\n }\n if (typeof this.zoneCode !== 'undefined') {\n toReturn['zoneCode'] = this.zoneCode;\n }\n return toReturn;\n }\n}\nclass GetCountryConfigurationRequest {\n static fromProto(proto) {\n let m = new GetCountryConfigurationRequest();\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.countryCode !== 'undefined') {\n toReturn['countryCode'] = this.countryCode;\n }\n if (typeof this.locale !== 'undefined') {\n toReturn['locale'] = this.locale;\n }\n return toReturn;\n }\n}\nclass GetCountryConfigurationResponse {\n static fromProto(proto) {\n let m = new GetCountryConfigurationResponse();\n m = Object.assign(m, proto);\n if (proto.country) {\n m.country = CountryConfiguration.fromProto(proto.country);\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.country !== 'undefined' && this.country !== null) {\n toReturn['country'] = 'toApiJson' in this.country ? this.country.toApiJson() : this.country;\n }\n return toReturn;\n }\n}\nclass ListAllCountryOptionsRequest {\n static fromProto(proto) {\n let m = new ListAllCountryOptionsRequest();\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.locale !== 'undefined') {\n toReturn['locale'] = this.locale;\n }\n return toReturn;\n }\n}\nclass ListAllCountryOptionsResponse {\n static fromProto(proto) {\n let m = new ListAllCountryOptionsResponse();\n m = Object.assign(m, proto);\n if (proto.countryOptions) {\n m.countryOptions = proto.countryOptions.map(CountryOption.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.countryOptions !== 'undefined' && this.countryOptions !== null) {\n toReturn['countryOptions'] = 'toApiJson' in this.countryOptions ? this.countryOptions.toApiJson() : this.countryOptions;\n }\n return toReturn;\n }\n}\nclass ReplaceCountryFormattingRequest {\n static fromProto(proto) {\n let m = new ReplaceCountryFormattingRequest();\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.countryCode !== 'undefined') {\n toReturn['countryCode'] = this.countryCode;\n }\n if (typeof this.showTemplate !== 'undefined') {\n toReturn['showTemplate'] = this.showTemplate;\n }\n if (typeof this.editTemplate !== 'undefined') {\n toReturn['editTemplate'] = this.editTemplate;\n }\n if (typeof this.requiredTemplate !== 'undefined') {\n toReturn['requiredTemplate'] = this.requiredTemplate;\n }\n return toReturn;\n }\n}\nclass ReplaceLocalizedCountryRequest {\n static fromProto(proto) {\n let m = new ReplaceLocalizedCountryRequest();\n m = Object.assign(m, proto);\n if (proto.phoneNumberPrefix) {\n m.phoneNumberPrefix = parseInt(proto.phoneNumberPrefix, 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.locale !== 'undefined') {\n toReturn['locale'] = this.locale;\n }\n if (typeof this.countryCode !== 'undefined') {\n toReturn['countryCode'] = this.countryCode;\n }\n if (typeof this.name !== 'undefined') {\n toReturn['name'] = this.name;\n }\n if (typeof this.continent !== 'undefined') {\n toReturn['continent'] = this.continent;\n }\n if (typeof this.phoneNumberPrefix !== 'undefined') {\n toReturn['phoneNumberPrefix'] = this.phoneNumberPrefix;\n }\n if (typeof this.address1Label !== 'undefined') {\n toReturn['address1Label'] = this.address1Label;\n }\n if (typeof this.address2Label !== 'undefined') {\n toReturn['address2Label'] = this.address2Label;\n }\n if (typeof this.cityLabel !== 'undefined') {\n toReturn['cityLabel'] = this.cityLabel;\n }\n if (typeof this.countryLabel !== 'undefined') {\n toReturn['countryLabel'] = this.countryLabel;\n }\n if (typeof this.companyLabel !== 'undefined') {\n toReturn['companyLabel'] = this.companyLabel;\n }\n if (typeof this.firstNameLabel !== 'undefined') {\n toReturn['firstNameLabel'] = this.firstNameLabel;\n }\n if (typeof this.lastNameLabel !== 'undefined') {\n toReturn['lastNameLabel'] = this.lastNameLabel;\n }\n if (typeof this.phoneNumberLabel !== 'undefined') {\n toReturn['phoneNumberLabel'] = this.phoneNumberLabel;\n }\n if (typeof this.postalCodeLabel !== 'undefined') {\n toReturn['postalCodeLabel'] = this.postalCodeLabel;\n }\n if (typeof this.zoneLabel !== 'undefined') {\n toReturn['zoneLabel'] = this.zoneLabel;\n }\n return toReturn;\n }\n}\nclass ReplaceLocalizedZoneRequest {\n static fromProto(proto) {\n let m = new ReplaceLocalizedZoneRequest();\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.locale !== 'undefined') {\n toReturn['locale'] = this.locale;\n }\n if (typeof this.countryCode !== 'undefined') {\n toReturn['countryCode'] = this.countryCode;\n }\n if (typeof this.zoneCode !== 'undefined') {\n toReturn['zoneCode'] = this.zoneCode;\n }\n if (typeof this.name !== 'undefined') {\n toReturn['name'] = this.name;\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': 'address-api.vendasta-local.com',\n 'test': '',\n 'demo': 'address-demo.apigateway.co',\n 'prod': 'address-prod.apigateway.co',\n 'production': 'address-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 AddressApiService = /*#__PURE__*/(() => {\n class AddressApiService {\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 getCountryConfiguration(r) {\n const request = r.toApiJson ? r : new GetCountryConfigurationRequest(r);\n return this.http.post(this._host + \"/address.v1.Address/GetCountryConfiguration\", request.toApiJson(), this.apiOptions()).pipe(map(resp => GetCountryConfigurationResponse.fromProto(resp)));\n }\n replaceCountryFormatting(r) {\n const request = r.toApiJson ? r : new ReplaceCountryFormattingRequest(r);\n return this.http.post(this._host + \"/address.v1.Address/ReplaceCountryFormatting\", request.toApiJson(), {\n ...this.apiOptions(),\n observe: 'response'\n });\n }\n replaceLocalizedCountry(r) {\n const request = r.toApiJson ? r : new ReplaceLocalizedCountryRequest(r);\n return this.http.post(this._host + \"/address.v1.Address/ReplaceLocalizedCountry\", request.toApiJson(), {\n ...this.apiOptions(),\n observe: 'response'\n });\n }\n replaceLocalizedZone(r) {\n const request = r.toApiJson ? r : new ReplaceLocalizedZoneRequest(r);\n return this.http.post(this._host + \"/address.v1.Address/ReplaceLocalizedZone\", request.toApiJson(), {\n ...this.apiOptions(),\n observe: 'response'\n });\n }\n deleteLocalizedZone(r) {\n const request = r.toApiJson ? r : new DeleteLocalizedZoneRequest(r);\n return this.http.post(this._host + \"/address.v1.Address/DeleteLocalizedZone\", request.toApiJson(), {\n ...this.apiOptions(),\n observe: 'response'\n });\n }\n listAllCountryOptions(r) {\n const request = r.toApiJson ? r : new ListAllCountryOptionsRequest(r);\n return this.http.post(this._host + \"/address.v1.Address/ListAllCountryOptions\", request.toApiJson(), this.apiOptions()).pipe(map(resp => ListAllCountryOptionsResponse.fromProto(resp)));\n }\n }\n AddressApiService.ɵfac = function AddressApiService_Factory(t) {\n return new (t || AddressApiService)(i0.ɵɵinject(i1.HttpClient), i0.ɵɵinject(HostService));\n };\n AddressApiService.ɵprov = /* @__PURE__ */i0.ɵɵdefineInjectable({\n token: AddressApiService,\n factory: AddressApiService.ɵfac,\n providedIn: 'root'\n });\n return AddressApiService;\n})();\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\nlet AddressAPIService = /*#__PURE__*/(() => {\n class AddressAPIService {\n constructor(addressApiService) {\n this.addressApiService = addressApiService;\n }\n getCountryConfiguration(countryCode, locale) {\n const req = new GetCountryConfigurationRequest({\n countryCode: countryCode,\n locale: locale\n });\n return this.addressApiService.getCountryConfiguration(req).pipe(map(resp => resp.country));\n }\n listAllCountryOptions(locale) {\n const req = new ListAllCountryOptionsRequest({\n locale: locale\n });\n return this.addressApiService.listAllCountryOptions(req).pipe(map(resp => resp.countryOptions));\n }\n }\n AddressAPIService.ɵfac = function AddressAPIService_Factory(t) {\n return new (t || AddressAPIService)(i0.ɵɵinject(AddressApiService));\n };\n AddressAPIService.ɵprov = /* @__PURE__ */i0.ɵɵdefineInjectable({\n token: AddressAPIService,\n factory: AddressAPIService.ɵfac,\n providedIn: 'root'\n });\n return AddressAPIService;\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// *********************************\n\n/**\n * Generated bundle index. Do not edit.\n */\n\nexport { AddressAPIService, CountryConfiguration, CountryOption };\n"],"mappings":"sJAKA,IAAMA,EAAN,MAAMC,CAAqB,CACzB,OAAO,UAAUC,EAAO,CACtB,IAAIC,EAAI,IAAIF,EACZ,OAAAE,EAAI,OAAO,OAAOA,EAAGD,CAAK,EACtBA,EAAM,oBACRC,EAAE,kBAAoB,SAASD,EAAM,kBAAmB,EAAE,GAExDA,EAAM,aACRC,EAAE,WAAaC,EAA+B,UAAUF,EAAM,UAAU,GAEtEA,EAAM,SACRC,EAAE,OAASE,EAA2B,UAAUH,EAAM,MAAM,GAE1DA,EAAM,QACRC,EAAE,MAAQD,EAAM,MAAM,IAAII,EAAyB,SAAS,GAEvDH,CACT,CACA,YAAYI,EAAQ,CACbA,GAGL,OAAO,OAAO,KAAMA,CAAM,CAC5B,CACA,WAAY,CACV,IAAMC,EAAW,CAAC,EAClB,OAAI,OAAO,KAAK,KAAS,MACvBA,EAAS,KAAU,KAAK,MAEtB,OAAO,KAAK,UAAc,MAC5BA,EAAS,UAAe,KAAK,WAE3B,OAAO,KAAK,KAAS,MACvBA,EAAS,KAAU,KAAK,MAEtB,OAAO,KAAK,kBAAsB,MACpCA,EAAS,kBAAuB,KAAK,mBAEnC,OAAO,KAAK,WAAe,KAAe,KAAK,aAAe,OAChEA,EAAS,WAAgB,cAAe,KAAK,WAAa,KAAK,WAAW,UAAU,EAAI,KAAK,YAE3F,OAAO,KAAK,OAAW,KAAe,KAAK,SAAW,OACxDA,EAAS,OAAY,cAAe,KAAK,OAAS,KAAK,OAAO,UAAU,EAAI,KAAK,QAE/E,OAAO,KAAK,MAAU,K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,KAAKV,EAAIC,GAAQA,EAAK,OAAO,CAAC,CAC3F,CACA,sBAAsBQ,EAAQ,CAC5B,IAAMC,EAAM,IAAI9B,EAA6B,CAC3C,OAAQ6B,CACV,CAAC,EACD,OAAO,KAAK,kBAAkB,sBAAsBC,CAAG,EAAE,KAAKV,EAAIC,GAAQA,EAAK,cAAc,CAAC,CAChG,CACF,CACA,OAAAK,EAAkB,UAAO,SAAmC,EAAG,CAC7D,OAAO,IAAK,GAAKA,GAAsBF,EAASV,CAAiB,CAAC,CACpE,EACAY,EAAkB,WAA0Bb,EAAmB,CAC7D,MAAOa,EACP,QAASA,EAAkB,UAC3B,WAAY,MACd,CAAC,EACMA,CACT,GAAG","names":["CountryConfiguration","_CountryConfiguration","proto","m","CountryConfigurationFormatting","CountryConfigurationLabels","CountryConfigurationZone","kwargs","toReturn","CountryOption","_CountryOption","_CountryConfigurationFormatting","_CountryConfigurationLabels","_CountryConfigurationZone","DeleteLocalizedZoneRequest","_DeleteLocalizedZoneRequest","GetCountryConfigurationRequest","_GetCountryConfigurationRequest","GetCountryConfigurationResponse","_GetCountryConfigurationResponse","ListAllCountryOptionsRequest","_ListAllCountryOptionsRequest","ListAllCountryOptionsResponse","_ListAllCountryOptionsResponse","ReplaceCountryFormattingRequest","_ReplaceCountryFormattingRequest","ReplaceLocalizedCountryRequest","_ReplaceLocalizedCountryRequest","ReplaceLocalizedZoneRequest","_ReplaceLocalizedZoneRequest","environment","hostMap","HostService","ɵɵdefineInjectable","AddressApiService","http","hostService","HttpHeaders","r","request","map","resp","__spreadProps","__spreadValues","ɵɵinject","HttpClient","AddressAPIService","addressApiService","countryCode","locale","req"],"x_google_ignoreList":[0]}