@infrab4a/connect-angular 5.0.0-alpha.12 → 5.0.0-alpha.14

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.
@@ -2434,7 +2434,6 @@ class WishlistService {
2434
2434
  if (!this.catalogService) {
2435
2435
  throw new Error('CatalogService not initialized. Call initializeServices first.');
2436
2436
  }
2437
- // Acessar o ProductRepository através do CatalogHelpersService
2438
2437
  const helpersService = this.catalogService['helpersService'];
2439
2438
  const productServices = helpersService.getProductServices();
2440
2439
  return productServices.productRepository
@@ -2842,17 +2841,17 @@ class UtilHelper {
2842
2841
  static createSlug(name) {
2843
2842
  return name
2844
2843
  .toLowerCase()
2845
- .replace(/\s+/g, '-') // Replace spaces with -
2846
- .replace(/[ãàáäâ]/g, 'a') // Replace spaces with -
2847
- .replace(/[ẽèéëê]/g, 'e') // Replace spaces with -
2848
- .replace(/[ìíïî]/g, 'i') // Replace spaces with -
2849
- .replace(/[õòóöô]/g, 'o') // Replace spaces with -
2850
- .replace(/[ùúüû]/g, 'u') // Replace spaces with -
2851
- .replace(/[ñ]/g, 'n') // Replace spaces with -
2852
- .replace(/[ç]/g, 'c') // Replace spaces with -
2853
- .replace(/[&]/g, 'and') // Replace spaces with -
2854
- .replace(/[^\w-]+/g, '') // Remove all non-word chars
2855
- .replace(/--+/g, '-'); // Replace multiple - with single -
2844
+ .replace(/\s+/g, '-')
2845
+ .replace(/[ãàáäâ]/g, 'a')
2846
+ .replace(/[ẽèéëê]/g, 'e')
2847
+ .replace(/[ìíïî]/g, 'i')
2848
+ .replace(/[õòóöô]/g, 'o')
2849
+ .replace(/[ùúüû]/g, 'u')
2850
+ .replace(/[ñ]/g, 'n')
2851
+ .replace(/[ç]/g, 'c')
2852
+ .replace(/[&]/g, 'and')
2853
+ .replace(/[^\w-]+/g, '')
2854
+ .replace(/--+/g, '-');
2856
2855
  }
2857
2856
  }
2858
2857