@xsolla/payment-client-core 0.0.10-2 → 0.0.10-3

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.
@@ -2932,6 +2932,9 @@ class CoreLibraryService {
2932
2932
  getLegalComponentConfig() {
2933
2933
  return this.legalService.getLegalComponentConfig();
2934
2934
  }
2935
+ getControlMask(field) {
2936
+ return this.paymentService.getFieldConfig(field);
2937
+ }
2935
2938
  }
2936
2939
  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 });
2937
2940
  CoreLibraryService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.7", ngImport: i0, type: CoreLibraryService, providedIn: 'root' });
@@ -3085,6 +3088,27 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.7", ngImpor
3085
3088
  }]
3086
3089
  }] });
3087
3090
 
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
+
3088
3112
  /*
3089
3113
  * Public API Surface of core-library
3090
3114
  */
@@ -3093,5 +3117,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.7", ngImpor
3093
3117
  * Generated bundle index. Do not edit.
3094
3118
  */
3095
3119
 
3096
- export { CoreLibraryModule, CoreLibraryService };
3120
+ export { CoreLibraryModule, CoreLibraryService, MaskConfigService };
3097
3121
  //# sourceMappingURL=xsolla-payment-client-core.mjs.map