intelica-library-ui 0.1.62 → 0.1.63

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.
@@ -2971,6 +2971,17 @@ function EmailInputValidation(event) {
2971
2971
  }
2972
2972
  }
2973
2973
 
2974
+ function decryptData(encryptedData, privateKey) {
2975
+ const decryptor = new JSEncrypt();
2976
+ decryptor.setPrivateKey(privateKey);
2977
+ const decryptedText = decryptor.decrypt(encryptedData);
2978
+ if (!decryptedText) {
2979
+ console.error("Error al descifrar los datos con RSA");
2980
+ return null;
2981
+ }
2982
+ return decryptedText;
2983
+ }
2984
+
2974
2985
  const IntelicaTheme = definePreset(Aura, {
2975
2986
  primitive: {
2976
2987
  blue: {
@@ -5260,5 +5271,5 @@ const IntelicaTheme = definePreset(Aura, {
5260
5271
  * Generated bundle index. Do not edit.
5261
5272
  */
5262
5273
 
5263
- export { ActionDirective, ActionsMenuComponent, ButtonSplitComponent, ColumnComponent, ColumnGroupComponent, CompareByField, ConfigService, CookieAttributesGeneral, DynamicInputValidation, EchartComponent, EchartService, EmailInputValidation, ErrorInterceptor, FeatureFlagService, GlobalFeatureFlagService, GlobalTermService, HtmlToExcelService, InitializeConfigService, InputValidation, IntelicaTheme, ItemSplitDirective, LanguageService, ModalDialogComponent, OrderConstants, PaginatorComponent, Patterns, PopoverComponent, RecordPerPageComponent, RefreshTokenInterceptor, RowResumenComponent, SearchComponent, SharedService, SortingComponent, SpinnerComponent, SpinnerService, SweetAlertService, TableComponent, TermGuard, TermPipe, TermService, encryptData };
5274
+ export { ActionDirective, ActionsMenuComponent, ButtonSplitComponent, ColumnComponent, ColumnGroupComponent, CompareByField, ConfigService, CookieAttributesGeneral, DynamicInputValidation, EchartComponent, EchartService, EmailInputValidation, ErrorInterceptor, FeatureFlagService, GlobalFeatureFlagService, GlobalTermService, HtmlToExcelService, InitializeConfigService, InputValidation, IntelicaTheme, ItemSplitDirective, LanguageService, ModalDialogComponent, OrderConstants, PaginatorComponent, Patterns, PopoverComponent, RecordPerPageComponent, RefreshTokenInterceptor, RowResumenComponent, SearchComponent, SharedService, SortingComponent, SpinnerComponent, SpinnerService, SweetAlertService, TableComponent, TermGuard, TermPipe, TermService, decryptData, encryptData };
5264
5275
  //# sourceMappingURL=intelica-library-ui.mjs.map