@xsolla/payment-client-core 0.0.10-3 → 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.
@@ -959,7 +959,6 @@ class SyncService extends EmitDataService {
959
959
  if (!this.isReadyField(field)) {
960
960
  return Promise.resolve(null);
961
961
  }
962
- debugger;
963
962
  const control = this.form.get(field.name);
964
963
  const value = control?.value;
965
964
  const prevFieldState = this.getPrevFieldSyncState(field);
@@ -975,7 +974,6 @@ class SyncService extends EmitDataService {
975
974
  const requestPromise = this.request(field);
976
975
  this.setPrevFieldSyncState(field, value, requestPromise);
977
976
  return requestPromise.then((response) => {
978
- debugger;
979
977
  return response.rewritableError ?? null;
980
978
  });
981
979
  }
@@ -1201,7 +1199,15 @@ class ZipConverter extends Converter {
1201
1199
  config.icon = 'location';
1202
1200
  if (this.isUsCountry) {
1203
1201
  config.maskConfig = {
1204
- 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
+ // },
1205
1211
  guide: false,
1206
1212
  unmaskModelValue: true,
1207
1213
  showMask: true,
@@ -2932,9 +2938,6 @@ class CoreLibraryService {
2932
2938
  getLegalComponentConfig() {
2933
2939
  return this.legalService.getLegalComponentConfig();
2934
2940
  }
2935
- getControlMask(field) {
2936
- return this.paymentService.getFieldConfig(field);
2937
- }
2938
2941
  }
2939
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 });
2940
2943
  CoreLibraryService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.7", ngImport: i0, type: CoreLibraryService, providedIn: 'root' });
@@ -3088,27 +3091,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.7", ngImpor
3088
3091
  }]
3089
3092
  }] });
3090
3093
 
3091
- class MaskConfigService {
3092
- constructor(controlConfigService) {
3093
- this.controlConfigService = controlConfigService;
3094
- }
3095
- getFieldMask(field) {
3096
- const config = this.controlConfigService.getConfig(field);
3097
- if (config?.maskConfig?.mask) {
3098
- return config?.maskConfig?.mask;
3099
- }
3100
- return;
3101
- }
3102
- }
3103
- MaskConfigService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.7", ngImport: i0, type: MaskConfigService, deps: [{ token: ControlConfigService }], target: i0.ɵɵFactoryTarget.Injectable });
3104
- MaskConfigService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.7", ngImport: i0, type: MaskConfigService, providedIn: 'root' });
3105
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.7", ngImport: i0, type: MaskConfigService, decorators: [{
3106
- type: Injectable,
3107
- args: [{
3108
- providedIn: 'root'
3109
- }]
3110
- }], ctorParameters: function () { return [{ type: ControlConfigService }]; } });
3111
-
3112
3094
  /*
3113
3095
  * Public API Surface of core-library
3114
3096
  */
@@ -3117,5 +3099,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.7", ngImpor
3117
3099
  * Generated bundle index. Do not edit.
3118
3100
  */
3119
3101
 
3120
- export { CoreLibraryModule, CoreLibraryService, MaskConfigService };
3102
+ export { CoreLibraryModule, CoreLibraryService };
3121
3103
  //# sourceMappingURL=xsolla-payment-client-core.mjs.map