{ "version": 3, "sources": ["apps/partner-center-client/src/app/core/country-state.service.ts"], "sourcesContent": ["import { Injectable } from '@angular/core';\nimport { Country, CountryStateServiceInterface, State } from '@vendasta/country-state';\nimport { Observable } from 'rxjs';\nimport { ApiService } from '../api-service/api.service';\n\n@Injectable({ providedIn: 'root' })\nexport class CountryStateService implements CountryStateServiceInterface {\n constructor(private apiService: ApiService) {}\n\n getCountriesOptions(): Observable {\n const url = '/_ajax/v1/list-countries/';\n return this.apiService.get(url);\n }\n\n getStatesOptions(countryCode: string): Observable {\n const url = '/_ajax/v1/list-states/';\n return this.apiService.get(url, {\n params: { countryCode: countryCode },\n });\n }\n}\n"], "mappings": "oFAMA,IAAaA,GAAmB,IAAA,CAA1B,IAAOA,EAAP,MAAOA,CAAmB,CAC9BC,YAAoBC,EAAsB,CAAtB,KAAAA,WAAAA,CAAyB,CAE7CC,qBAAmB,CAEjB,OAAO,KAAKD,WAAWE,IADX,2BACkB,CAChC,CAEAC,iBAAiBC,EAAmB,CAElC,OAAO,KAAKJ,WAAWE,IADX,yBACoB,CAC9BG,OAAQ,CAAED,YAAaA,CAAW,EACnC,CACH,yCAbWN,GAAmBQ,EAAAC,CAAA,CAAA,CAAA,wBAAnBT,EAAmBU,QAAnBV,EAAmBW,UAAAC,WADN,MAAM,CAAA,EAC1B,IAAOZ,EAAPa,SAAOb,CAAmB,GAAA", "names": ["CountryStateService", "constructor", "apiService", "getCountriesOptions", "get", "getStatesOptions", "countryCode", "params", "\u0275\u0275inject", "ApiService", "factory", "\u0275fac", "providedIn", "_CountryStateService"] }