@xsolla/payment-client-core 0.0.10-4 → 0.0.10-5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1199,7 +1199,15 @@ class ZipConverter extends Converter {
1199
1199
  config.icon = 'location';
1200
1200
  if (this.isUsCountry) {
1201
1201
  config.maskConfig = {
1202
- mask: () => new Array(this.usCountryLength).fill('9').join(''),
1202
+ // mask: () => new Array(this.usCountryLength).fill('9').join(''),
1203
+ mask: () => new Array(5).fill('9').join(''),
1204
+ // mask: function() { return new Array(5).fill('9').join('') },
1205
+ // mask: function mask() {
1206
+ // const length = this.usCountryLength;
1207
+ // return function() {
1208
+ // return new Array(length).fill('9').join('');
1209
+ // }
1210
+ // },
1203
1211
  guide: false,
1204
1212
  unmaskModelValue: true,
1205
1213
  showMask: true,
@@ -2884,26 +2892,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.7", ngImpor
2884
2892
  }]
2885
2893
  }], ctorParameters: function () { return [{ type: SettingsService }, { type: RefundPolicyService }, { type: SecureConnectionService }, { type: DisclaimerService }]; } });
2886
2894
 
2887
- class MaskConfigService {
2888
- constructor(controlConfigService) {
2889
- this.controlConfigService = controlConfigService;
2890
- }
2891
- getFieldMask(field) {
2892
- const config = this.controlConfigService.getConfig(field);
2893
- if (config?.maskConfig?.mask) {
2894
- return config?.maskConfig?.mask;
2895
- }
2896
- return;
2897
- }
2898
- }
2899
- MaskConfigService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.7", ngImport: i0, type: MaskConfigService, deps: [{ token: ControlConfigService }], target: i0.ɵɵFactoryTarget.Injectable });
2900
- MaskConfigService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.7", ngImport: i0, type: MaskConfigService });
2901
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.7", ngImport: i0, type: MaskConfigService, decorators: [{
2902
- type: Injectable
2903
- }], ctorParameters: function () { return [{ type: ControlConfigService }]; } });
2904
-
2905
2895
  class CoreLibraryService {
2906
- constructor(settingsService, countryService, paymentMethodsService, savedMethodsService, userBalanceService, paymentService, deviceFingerPrintService, financeDetailsService, legalService, nextActionService, maskConfigService) {
2896
+ constructor(settingsService, countryService, paymentMethodsService, savedMethodsService, userBalanceService, paymentService, deviceFingerPrintService, financeDetailsService, legalService, nextActionService) {
2907
2897
  this.settingsService = settingsService;
2908
2898
  this.countryService = countryService;
2909
2899
  this.paymentMethodsService = paymentMethodsService;
@@ -2914,7 +2904,6 @@ class CoreLibraryService {
2914
2904
  this.financeDetailsService = financeDetailsService;
2915
2905
  this.legalService = legalService;
2916
2906
  this.nextActionService = nextActionService;
2917
- this.maskConfigService = maskConfigService;
2918
2907
  this.paymentMethods = {
2919
2908
  getList: async () => this.paymentMethodsService.getList(),
2920
2909
  getQuickMethods: async () => this.paymentMethodsService.getQuickMethods(),
@@ -2949,18 +2938,15 @@ class CoreLibraryService {
2949
2938
  getLegalComponentConfig() {
2950
2939
  return this.legalService.getLegalComponentConfig();
2951
2940
  }
2952
- getControlMask(field) {
2953
- return this.maskConfigService.getFieldMask(field);
2954
- }
2955
2941
  }
2956
- CoreLibraryService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.7", ngImport: i0, type: CoreLibraryService, deps: [{ token: SettingsService }, { token: CountryService }, { token: PaymentMethodsService }, { token: SavedMethodsService }, { token: UserBalanceService }, { token: PaymentService }, { token: DeviceFingerPrintService }, { token: FinanceDetailsService }, { token: LegalService }, { token: NextActionService }, { token: MaskConfigService }], target: i0.ɵɵFactoryTarget.Injectable });
2942
+ CoreLibraryService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.7", ngImport: i0, type: CoreLibraryService, deps: [{ token: SettingsService }, { token: CountryService }, { token: PaymentMethodsService }, { token: SavedMethodsService }, { token: UserBalanceService }, { token: PaymentService }, { token: DeviceFingerPrintService }, { token: FinanceDetailsService }, { token: LegalService }, { token: NextActionService }], target: i0.ɵɵFactoryTarget.Injectable });
2957
2943
  CoreLibraryService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.7", ngImport: i0, type: CoreLibraryService, providedIn: 'root' });
2958
2944
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.7", ngImport: i0, type: CoreLibraryService, decorators: [{
2959
2945
  type: Injectable,
2960
2946
  args: [{
2961
2947
  providedIn: 'root',
2962
2948
  }]
2963
- }], ctorParameters: function () { return [{ type: SettingsService }, { type: CountryService }, { type: PaymentMethodsService }, { type: SavedMethodsService }, { type: UserBalanceService }, { type: PaymentService }, { type: DeviceFingerPrintService }, { type: FinanceDetailsService }, { type: LegalService }, { type: NextActionService }, { type: MaskConfigService }]; } });
2949
+ }], ctorParameters: function () { return [{ type: SettingsService }, { type: CountryService }, { type: PaymentMethodsService }, { type: SavedMethodsService }, { type: UserBalanceService }, { type: PaymentService }, { type: DeviceFingerPrintService }, { type: FinanceDetailsService }, { type: LegalService }, { type: NextActionService }]; } });
2964
2950
 
2965
2951
  class HttpError extends AppError {
2966
2952
  constructor(error, req) {
@@ -3071,7 +3057,6 @@ CoreLibraryModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", versi
3071
3057
  useValue: nextActions,
3072
3058
  },
3073
3059
  ...nextActions,
3074
- MaskConfigService
3075
3060
  ], imports: [HttpClientModule, FormModule] });
3076
3061
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.7", ngImport: i0, type: CoreLibraryModule, decorators: [{
3077
3062
  type: NgModule,
@@ -3102,7 +3087,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.7", ngImpor
3102
3087
  useValue: nextActions,
3103
3088
  },
3104
3089
  ...nextActions,
3105
- MaskConfigService
3106
3090
  ],
3107
3091
  }]
3108
3092
  }] });