@acorex/core 18.4.3 → 18.5.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (72) hide show
  1. package/date-time/index.d.ts +2 -2
  2. package/esm2022/config/lib/configs.mjs +1 -1
  3. package/esm2022/date-time/index.mjs +3 -3
  4. package/esm2022/date-time/lib/dateTime.config.mjs +1 -1
  5. package/esm2022/date-time/lib/datetime.pipe.mjs +1 -1
  6. package/esm2022/date-time/lib/formatters/datetime-formatter.mjs +1 -1
  7. package/esm2022/date-time/lib/georgian.calendar.mjs +4 -9
  8. package/esm2022/date-time/lib/holidays.loader.mjs +1 -1
  9. package/esm2022/date-time/lib/jalali.calendar.mjs +10 -33
  10. package/esm2022/file/index.mjs +3 -3
  11. package/esm2022/file/lib/file-download-ref.class.mjs +1 -1
  12. package/esm2022/file/lib/file-upload-ref.class.mjs +1 -1
  13. package/esm2022/format/index.mjs +2 -2
  14. package/esm2022/format/lib/format.module.mjs +2 -2
  15. package/esm2022/format/lib/format.pipe.mjs +4 -8
  16. package/esm2022/image/lib/image.service.mjs +1 -1
  17. package/esm2022/pipes/lib/safe/safe.pipe.mjs +2 -2
  18. package/esm2022/platform/lib/platform.service.mjs +11 -3
  19. package/esm2022/storage/cookie-storage.service.mjs +5 -11
  20. package/esm2022/translation/index.mjs +3 -3
  21. package/esm2022/translation/lib/translation-scope.resolver.mjs +2 -2
  22. package/esm2022/translation/lib/translation.config.mjs +1 -1
  23. package/esm2022/translation/lib/translation.loader.mjs +1 -1
  24. package/esm2022/translation/lib/translation.module.mjs +4 -4
  25. package/esm2022/translation/lib/translator.directive.mjs +2 -2
  26. package/esm2022/translation/lib/translator.pipe.mjs +2 -2
  27. package/esm2022/utils/lib/auto-unsubscribe.mjs +1 -1
  28. package/esm2022/utils/lib/color-util.mjs +2 -4
  29. package/esm2022/utils/lib/drawing-util.mjs +4 -10
  30. package/esm2022/utils/lib/html-util.mjs +7 -3
  31. package/esm2022/utils/lib/string-util.mjs +1 -1
  32. package/esm2022/validation/lib/rules/between-rule.mjs +2 -2
  33. package/esm2022/validation/lib/rules/equal-rule.mjs +2 -2
  34. package/esm2022/validation/lib/rules/greater-than.mjs +3 -7
  35. package/esm2022/validation/lib/rules/length-rule.mjs +2 -5
  36. package/esm2022/validation/lib/rules/less-than-rule.mjs +3 -7
  37. package/esm2022/validation/lib/rules/maxlength-rule.mjs +3 -6
  38. package/esm2022/validation/lib/rules/minlength-rule.mjs +3 -6
  39. package/esm2022/validation/lib/rules/regex-rule.mjs +5 -8
  40. package/esm2022/validation/lib/rules/required-rule.mjs +6 -4
  41. package/esm2022/validation/lib/validation.config.mjs +1 -1
  42. package/esm2022/validation/lib/validation.module.mjs +10 -10
  43. package/esm2022/validation/lib/validation.service.mjs +3 -3
  44. package/esm2022/validation/lib/validation.types.mjs +1 -1
  45. package/fesm2022/acorex-core-config.mjs.map +1 -1
  46. package/fesm2022/acorex-core-date-time.mjs +87 -115
  47. package/fesm2022/acorex-core-date-time.mjs.map +1 -1
  48. package/fesm2022/acorex-core-file.mjs +42 -42
  49. package/fesm2022/acorex-core-file.mjs.map +1 -1
  50. package/fesm2022/acorex-core-format.mjs +2 -6
  51. package/fesm2022/acorex-core-format.mjs.map +1 -1
  52. package/fesm2022/acorex-core-image.mjs.map +1 -1
  53. package/fesm2022/acorex-core-pipes.mjs.map +1 -1
  54. package/fesm2022/acorex-core-platform.mjs +10 -2
  55. package/fesm2022/acorex-core-platform.mjs.map +1 -1
  56. package/fesm2022/acorex-core-storage.mjs +4 -10
  57. package/fesm2022/acorex-core-storage.mjs.map +1 -1
  58. package/fesm2022/acorex-core-translation.mjs +27 -27
  59. package/fesm2022/acorex-core-translation.mjs.map +1 -1
  60. package/fesm2022/acorex-core-utils.mjs +10 -14
  61. package/fesm2022/acorex-core-utils.mjs.map +1 -1
  62. package/fesm2022/acorex-core-validation.mjs +11 -29
  63. package/fesm2022/acorex-core-validation.mjs.map +1 -1
  64. package/file/index.d.ts +2 -2
  65. package/format/index.d.ts +1 -1
  66. package/format/lib/format.pipe.d.ts +1 -1
  67. package/package.json +13 -13
  68. package/platform/lib/platform.service.d.ts +5 -1
  69. package/translation/index.d.ts +2 -2
  70. package/translation/lib/translation.loader.d.ts +1 -1
  71. package/translation/lib/translator.pipe.d.ts +1 -1
  72. package/validation/lib/validation.service.d.ts +2 -2
@@ -94,9 +94,7 @@ export class AXColorUtil {
94
94
  X * 0.051713 - Y * 0.121364 + Z * 1.01153,
95
95
  ];
96
96
  // Apply reverse gamma correction.
97
- rgb = rgb.map((x) => x <= 0.0031308
98
- ? 12.92 * x
99
- : (1.0 + 0.055) * Math.pow(x, 1.0 / 2.4) - 0.055);
97
+ rgb = rgb.map((x) => (x <= 0.0031308 ? 12.92 * x : (1.0 + 0.055) * Math.pow(x, 1.0 / 2.4) - 0.055));
100
98
  // Bring all negative components to zero.
101
99
  rgb = rgb.map((x) => Math.max(0, x));
102
100
  // If one component is greater than 1, weight components by that value.
@@ -108,4 +106,4 @@ export class AXColorUtil {
108
106
  return 'rgb(' + rgb.join(',') + ')';
109
107
  }
110
108
  }
111
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29sb3ItdXRpbC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL2xpYnMvY29yZS91dGlscy9zcmMvbGliL2NvbG9yLXV0aWwudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBRUEsT0FBTyxTQUF5QixNQUFNLFlBQVksQ0FBQztBQUNuRCxPQUFPLFlBQTBCLE1BQU0saUJBQWlCLENBQUM7QUFJekQsTUFBTSxPQUFPLFdBQVc7SUFDdEIsTUFBTSxDQUFDLEVBQUUsQ0FBQyxLQUFvQixFQUFFLElBQWlCO1FBQy9DLE1BQU0sTUFBTSxHQUFHLFNBQVMsQ0FBQyxLQUFLLENBQUMsQ0FBQztRQUNoQyxRQUFRLElBQUksRUFBRSxDQUFDO1lBQ2IsS0FBSyxNQUFNO2dC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iKCcgKyByZ2Iuam9pbignLCcpICsgJyknO1xuICB9XG59XG4iXX0=
@@ -3,10 +3,7 @@ export class AXDrawingUtil {
3
3
  static collision(a, b) {
4
4
  const ac = a.getBoundingClientRect();
5
5
  const bc = b.getBoundingClientRect();
6
- if (ac.left < bc.left + bc.width &&
7
- ac.left + ac.width > bc.left &&
8
- ac.top < bc.top + bc.height &&
9
- ac.top + ac.height > bc.top) {
6
+ if (ac.left < bc.left + bc.width && ac.left + ac.width > bc.left && ac.top < bc.top + bc.height && ac.top + ac.height > bc.top) {
10
7
  return true;
11
8
  }
12
9
  else {
@@ -23,13 +20,10 @@ export class AXDrawingUtil {
23
20
  });
24
21
  }
25
22
  static isInRecPoint(pos, rec) {
26
- return (pos.x >= rec.left &&
27
- pos.x <= rec.left + rec.width &&
28
- pos.y >= rec.top &&
29
- pos.y <= rec.top + rec.height);
23
+ return pos.x >= rec.left && pos.x <= rec.left + rec.width && pos.y >= rec.top && pos.y <= rec.top + rec.height;
30
24
  }
31
25
  static convertRemToPixels(rem) {
32
- return (rem * parseFloat(getComputedStyle(document.documentElement).fontSize));
26
+ return rem * parseFloat(getComputedStyle(document.documentElement).fontSize);
33
27
  }
34
28
  }
35
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZHJhd2luZy11dGlsLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vbGlicy9jb3JlL3V0aWxzL3NyYy9saWIvZHJhd2luZy11dGlsLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQWFBLFdBQVc7QUFDWCxNQUFNLE9BQU8sYUFBYTtJQUN4QixNQUFNLENBQUMsU0FBUyxDQUFDLENBQWMsRUFBRSxDQUFjO1FBQzdDLE1BQU0sRUFBRSxHQUFHLENBQUMsQ0FBQyxxQkFBcUIsRUFBRSxDQUFDO1FBQ3JDLE1BQU0sRUFBRSxHQUFHLENBQUMsQ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zLnggPj0gcmVjLmxlZnQgJiYgcG9zLnggPD0gcmVjLmxlZnQgKyByZWMud2lkdGggJiYgcG9zLnkgPj0gcmVjLnRvcCAmJiBwb3MueSA8PSByZWMudG9wICsgcmVjLmhlaWdodDtcbiAgfVxuXG4gIHN0YXRpYyBjb252ZXJ0UmVtVG9QaXhlbHMocmVtOiBudW1iZXIpOiBudW1iZXIge1xuICAgIHJldHVybiByZW0gKiBwYXJzZUZsb2F0KGdldENvbXB1dGVkU3R5bGUoZG9jdW1lbnQuZG9jdW1lbnRFbGVtZW50KS5mb250U2l6ZSk7XG4gIH1cbn1cbiJdfQ==
@@ -1,3 +1,4 @@
1
+ import { isBrowser } from '@acorex/core/platform';
1
2
  // @dynamic
2
3
  export class AXHtmlUtil {
3
4
  static focusElement(element) {
@@ -22,8 +23,11 @@ export class AXHtmlUtil {
22
23
  return element.matches(':focus-within') || element.matches(':focus');
23
24
  }
24
25
  static isRtl(element) {
25
- const rtl = element.classList.contains('ax-rtl') || window.getComputedStyle(element, null).getPropertyValue('direction') === 'rtl';
26
- return rtl;
26
+ if (isBrowser()) {
27
+ const rtl = element.classList.contains('ax-rtl') || window.getComputedStyle(element, null).getPropertyValue('direction') === 'rtl';
28
+ return rtl;
29
+ }
30
+ return false;
27
31
  }
28
32
  }
29
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaHRtbC11dGlsLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vbGlicy9jb3JlL3V0aWxzL3NyYy9saWIvaHRtbC11dGlsLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLFdBQVc7QUFDWCxNQUFNLE9BQU8sVUFBVTtJQUNyQixNQUFNLENBQUMsWUFBWSxDQUFDLE9BQW9CO1FBQ3RDLE1BQU0sSUFBSSxHQUFHLENBQUMsUUFBUSxFQUFFLE9BQU8sRUFBRSxRQUFRLEVBQ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hLXpBLVowLTldKy9pLnRlc3QoYyk7XG4gICAgbGV0IHN0YXJ0ID0gcG9zaXRpb24gLSAxO1xuXG4gICAgd2hpbGUgKHN0YXJ0ID49IDAgJiYgIWlzU3BhY2Uoc3RyW3N0YXJ0XSkpIHtcbiAgICAgIHN0YXJ0IC09IDE7XG4gICAgfVxuICAgIHN0YXJ0ID0gTWF0aC5tYXgoMCwgc3RhcnQgKyAxKTtcbiAgICBjb25zdCBsZWZ0U2lkZVN0cmluZzogYW55ID0gc3RyLnNsaWNlKHN0YXJ0KS5tYXRjaCgvW2EtekEtWjAtOV0rL2kpO1xuICAgIHN0YXJ0ICs9IGxlZnRTaWRlU3RyaW5nLmluZGV4O1xuICAgIGxldCBlbmQgPSBzdGFydCArIGxlZnRTaWRlU3RyaW5nWzBdLmxlbmd0aDtcbiAgICByZXR1cm4ge1xuICAgICAgc3RhcnQsXG4gICAgICBlbmQsXG4gICAgfTtcbiAgfVxufVxuIl19
@@ -1,5 +1,5 @@
1
- import { isEmpty } from 'lodash-es';
2
1
  import { Injectable } from '@angular/core';
2
+ import { isEmpty } from 'lodash-es';
3
3
  import * as i0 from "@angular/core";
4
4
  export class AXBetweenValidationRule {
5
5
  get name() {
@@ -28,4 +28,4 @@ export class AXBetweenValidationRule {
28
28
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.2", ngImport: i0, type: AXBetweenValidationRule, decorators: [{
29
29
  type: Injectable
30
30
  }] });
31
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYmV0d2Vlbi1ydWxlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vbGlicy9jb3JlL3ZhbGlkYXRpb24vc3JjL2xpYi9ydWxlcy9iZXR3ZWVuLXJ1bGUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLE9BQU8sRUFBRSx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1,6 +1,6 @@
1
1
  // ax-equal-validation-rule.ts
2
- import { isEqual } from 'lodash-es';
3
2
  import { Injectable } from '@angular/core';
3
+ import { isEqual } from 'lodash-es';
4
4
  import * as i0 from "@angular/core";
5
5
  export class AXEqualValidationRule {
6
6
  get name() {
@@ -23,4 +23,4 @@ export class AXEqualValidationRule {
23
23
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.2", ngImport: i0, type: AXEqualValidationRule, decorators: [{
24
24
  type: Injectable
25
25
  }] });
26
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZXF1YWwtcnVsZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uL2xpYnMvY29yZS92YWxpZGF0aW9uL3NyYy9saWIvcnVsZXMvZXF1YWwtcnVsZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSw4QkFBOEI7QUFDOUIsT0FBTyxFQUFFLE9BQU8sRUFBRSxNQUFNLFdBQVcsQ0FBQztBQU1wQyxPQUFPLEVBQUUsVUFBVSxFQUFFLE1BQU0sZUFBZSxDQUFDOztBQWEzQyxNQUFNLE9BQU8scUJBQXFCO0lBQ2hDLElBQUksSUFBSTtRQUNOLE9BQU8sT0FBTyxDQUFDO0lBQ2pCLENBQUM7SUFFRCxLQUFLLENBQUMsUUFBUSxDQUNaLEtBQVUsRUFDVixPQUFxQztRQUVyQyxNQUFNLFlBQVksR0FBRyxPQUFPLENBQUMsS0FBSyxFQUFFLE9BQU8sQ0FBQyxLQUFLLENBQUMsQ0FBQztRQUNuRCxNQUFNLE9BQU8sR0FBRyxPQUFPLENBQUMsR0FBRyxDQUFDLENBQUMsQ0FBQyxDQUFDLFlBQVksQ0FBQyxDQUFDLENBQUMsWUFBWSxDQUFDO1FBRTNELE1BQU0sY0FBYyxHQUFHLGtCQUNyQixPQUFPLENBQUMsR0FBRyxDQ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ZUVxdWFsID0gaXNFcXVhbCh2YWx1ZSwgb3B0aW9ucy52YWx1ZSk7XG4gICAgY29uc3QgaXNWYWxpZCA9IG9wdGlvbnMubm90ID8gIWlzVmFsdWVFcXVhbCA6IGlzVmFsdWVFcXVhbDtcblxuICAgIGNvbnN0IGRlZmF1bHRNZXNzYWdlID0gYFRoZSB2YWx1ZSBtdXN0ICR7b3B0aW9ucy5ub3QgPyAnbm90ICcgOiAnJ31iZSBlcXVhbCB0byAke29wdGlvbnMudmFsdWV9LmA7XG4gICAgcmV0dXJuIHtcbiAgICAgIHJ1bGU6IHRoaXMubmFtZSxcbiAgICAgIHJlc3VsdDogaXNWYWxpZCxcbiAgICAgIG1lc3NhZ2U6IGlzVmFsaWQgPyAnJyA6IG9wdGlvbnM/Lm1lc3NhZ2UgPz8gZGVmYXVsdE1lc3NhZ2UsXG4gICAgICB2YWx1ZTogdmFsdWUsXG4gICAgfTtcbiAgfVxufVxuIl19
@@ -1,17 +1,13 @@
1
1
  // ax-greater-than-validation-rule.ts
2
- import { isNull, isUndefined } from 'lodash-es';
3
2
  import { Injectable } from '@angular/core';
3
+ import { isNull, isUndefined } from 'lodash-es';
4
4
  import * as i0 from "@angular/core";
5
5
  export class AXGreaterThanValidationRule {
6
6
  get name() {
7
7
  return 'greaterThan';
8
8
  }
9
9
  async validate(value, options) {
10
- const isValid = isNull(value) || isUndefined(value)
11
- ? true
12
- : options.inclusive
13
- ? value >= options.value
14
- : value > options.value;
10
+ const isValid = isNull(value) || isUndefined(value) ? true : options.inclusive ? value >= options.value : value > options.value;
15
11
  const baseMessage = `The value must be ${options.inclusive ? 'greater than or equal to' : 'greater than'} ${options.value}.`;
16
12
  return {
17
13
  rule: this.name,
@@ -26,4 +22,4 @@ export class AXGreaterThanValidationRule {
26
22
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.2", ngImport: i0, type: AXGreaterThanValidationRule, decorators: [{
27
23
  type: Injectable
28
24
  }] });
29
- //# sourceM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dGVyVGhhbic7XG4gIH1cblxuICBhc3luYyB2YWxpZGF0ZSh2YWx1ZTogbnVtYmVyLCBvcHRpb25zOiBBWEdyZWF0ZXJUaGFuVmFsaWRhdGlvblJ1bGVPcHRpb25zKTogUHJvbWlzZTxBWFZhbGlkYXRpb25SdWxlUmVzdWx0PiB7XG4gICAgY29uc3QgaXNWYWxpZCA9IGlzTnVsbCh2YWx1ZSkgfHwgaXNVbmRlZmluZWQodmFsdWUpID8gdHJ1ZSA6IG9wdGlvbnMuaW5jbHVzaXZlID8gdmFsdWUgPj0gb3B0aW9ucy52YWx1ZSA6IHZhbHVlID4gb3B0aW9ucy52YWx1ZTtcbiAgICBjb25zdCBiYXNlTWVzc2FnZSA9IGBUaGUgdmFsdWUgbXVzdCBiZSAke29wdGlvbnMuaW5jbHVzaXZlID8gJ2dyZWF0ZXIgdGhhbiBvciBlcXVhbCB0bycgOiAnZ3JlYXRlciB0aGFuJ30gJHtvcHRpb25zLnZhbHVlfS5gO1xuXG4gICAgcmV0dXJuIHtcbiAgICAgIHJ1bGU6IHRoaXMubmFtZSxcbiAgICAgIHJlc3VsdDogaXNWYWxpZCxcbiAgICAgIG1lc3NhZ2U6IGlzVmFsaWQgPyAnJyA6IG9wdGlvbnM/Lm1lc3NhZ2UgPz8gYmFzZU1lc3NhZ2UsXG4gICAgICB2YWx1ZTogdmFsdWUsXG4gICAgfTtcbiAgfVxufVxuIl19
@@ -10,10 +10,7 @@ export class AXLengthValidationRule {
10
10
  return {
11
11
  rule: this.name,
12
12
  result: isValid,
13
- message: isValid
14
- ? null
15
- : options?.message ??
16
- `The value must be between ${options.min} and ${options.max} chars`,
13
+ message: isValid ? null : options?.message ?? `The value must be between ${options.min} and ${options.max} chars`,
17
14
  value: value,
18
15
  };
19
16
  }
@@ -23,4 +20,4 @@ export class AXLengthValidationRule {
23
20
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.2", ngImport: i0, type: AXLengthValidationRule, decorators: [{
24
21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iBBWExlbmd0aFZhbGlkYXRpb25SdWxlT3B0aW9ucyk6IFByb21pc2U8QVhWYWxpZGF0aW9uUnVsZVJlc3VsdD4ge1xuICAgIGNvbnN0IGlzVmFsaWQgPSB2YWx1ZT8ubGVuZ3RoID49IG9wdGlvbnMubWluICYmIHZhbHVlPy5sZW5ndGggPD0gb3B0aW9ucy5tYXg7XG4gICAgcmV0dXJuIHtcbiAgICAgIHJ1bGU6IHRoaXMubmFtZSxcbiAgICAgIHJlc3VsdDogaXNWYWxpZCxcbiAgICAgIG1lc3NhZ2U6IGlzVmFsaWQgPyBudWxsIDogb3B0aW9ucz8ubWVzc2FnZSA/PyBgVGhlIHZhbHVlIG11c3QgYmUgYmV0d2VlbiAke29wdGlvbnMubWlufSBhbmQgJHtvcHRpb25zLm1heH0gY2hhcnNgLFxuICAgICAgdmFsdWU6IHZhbHVlLFxuICAgIH07XG4gIH1cbn1cbiJdfQ==
@@ -1,17 +1,13 @@
1
1
  // ax-less-than-validation-rule.ts
2
- import { isNull, isUndefined } from 'lodash-es';
3
2
  import { Injectable } from '@angular/core';
3
+ import { isNull, isUndefined } from 'lodash-es';
4
4
  import * as i0 from "@angular/core";
5
5
  export class AXLessThanValidationRule {
6
6
  get name() {
7
7
  return 'lessThan';
8
8
  }
9
9
  async validate(value, options) {
10
- const isValid = isNull(value) || isUndefined(value)
11
- ? true
12
- : options.inclusive
13
- ? value <= options.value
14
- : value < options.value;
10
+ const isValid = isNull(value) || isUndefined(value) ? true : options.inclusive ? value <= options.value : value < options.value;
15
11
  const baseMessage = `The value must be ${options.inclusive ? 'less than or equal to' : 'less than'} ${options.value}.`;
16
12
  return {
17
13
  rule: this.name,
@@ -26,4 +22,4 @@ export class AXLessThanValidationRule {
26
22
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.2", ngImport: i0, type: AXLessThanValidationRule, decorators: [{
27
23
  type: Injectable
28
24
  }] });
29
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJz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2U8QVhWYWxpZGF0aW9uUnVsZVJlc3VsdD4ge1xuICAgIGNvbnN0IGlzVmFsaWQgPSBpc051bGwodmFsdWUpIHx8IGlzVW5kZWZpbmVkKHZhbHVlKSA/IHRydWUgOiBvcHRpb25zLmluY2x1c2l2ZSA/IHZhbHVlIDw9IG9wdGlvbnMudmFsdWUgOiB2YWx1ZSA8IG9wdGlvbnMudmFsdWU7XG4gICAgY29uc3QgYmFzZU1lc3NhZ2UgPSBgVGhlIHZhbHVlIG11c3QgYmUgJHtvcHRpb25zLmluY2x1c2l2ZSA/ICdsZXNzIHRoYW4gb3IgZXF1YWwgdG8nIDogJ2xlc3MgdGhhbid9ICR7b3B0aW9ucy52YWx1ZX0uYDtcblxuICAgIHJldHVybiB7XG4gICAgICBydWxlOiB0aGlzLm5hbWUsXG4gICAgICByZXN1bHQ6IGlzVmFsaWQsXG4gICAgICBtZXNzYWdlOiBpc1ZhbGlkID8gJycgOiBvcHRpb25zPy5tZXNzYWdlID8/IGJhc2VNZXNzYWdlLFxuICAgICAgdmFsdWU6IHZhbHVlLFxuICAgIH07XG4gIH1cbn1cbiJdfQ==
@@ -1,6 +1,6 @@
1
1
  // ax-max-length-validation-rule.ts
2
- import { isEmpty } from 'lodash-es';
3
2
  import { Injectable } from '@angular/core';
3
+ import { isEmpty } from 'lodash-es';
4
4
  import * as i0 from "@angular/core";
5
5
  export class AXMaxLengthValidationRule {
6
6
  get name() {
@@ -11,10 +11,7 @@ export class AXMaxLengthValidationRule {
11
11
  return {
12
12
  rule: this.name,
13
13
  result: isValid,
14
- message: isValid
15
- ? ''
16
- : options?.message ??
17
- `The value must not exceed ${options.value} characters.`,
14
+ message: isValid ? '' : options?.message ?? `The value must not exceed ${options.value} characters.`,
18
15
  value: value,
19
16
  };
20
17
  }
@@ -24,4 +21,4 @@ export class AXMaxLengthValidationRule {
24
21
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.2", ngImport: i0, type: AXMaxLengthValidationRule, dec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VuZ3RoVmFsaWRhdGlvblJ1bGUgaW1wbGVtZW50cyBBWFZhbGlkYXRpb25SdWxlIHtcbiAgZ2V0IG5hbWUoKTogc3RyaW5nIHtcbiAgICByZXR1cm4gJ21heExlbmd0aCc7XG4gIH1cblxuICBhc3luYyB2YWxpZGF0ZSh2YWx1ZTogc3RyaW5nLCBvcHRpb25zOiBBWE1heExlbmd0aFZhbGlkYXRpb25SdWxlT3B0aW9ucyk6IFByb21pc2U8QVhWYWxpZGF0aW9uUnVsZVJlc3VsdD4ge1xuICAgIGNvbnN0IGlzVmFsaWQgPSBpc0VtcHR5KHZhbHVlKSA/IHRydWUgOiB2YWx1ZT8ubGVuZ3RoIDw9IG9wdGlvbnMudmFsdWU7XG4gICAgcmV0dXJuIHtcbiAgICAgIHJ1bGU6IHRoaXMubmFtZSxcbiAgICAgIHJlc3VsdDogaXNWYWxpZCxcbiAgICAgIG1lc3NhZ2U6IGlzVmFsaWQgPyAnJyA6IG9wdGlvbnM/Lm1lc3NhZ2UgPz8gYFRoZSB2YWx1ZSBtdXN0IG5vdCBleGNlZWQgJHtvcHRpb25zLnZhbHVlfSBjaGFyYWN0ZXJzLmAsXG4gICAgICB2YWx1ZTogdmFsdWUsXG4gICAgfTtcbiAgfVxufVxuIl19
@@ -1,5 +1,5 @@
1
- import { isEmpty } from 'lodash-es';
2
1
  import { Injectable } from '@angular/core';
2
+ import { isEmpty } from 'lodash-es';
3
3
  import * as i0 from "@angular/core";
4
4
  export class AXMinLengthValidationRule {
5
5
  get name() {
@@ -10,10 +10,7 @@ export class AXMinLengthValidationRule {
10
10
  return {
11
11
  rule: this.name,
12
12
  result: isValid,
13
- message: isValid
14
- ? ''
15
- : options?.message ??
16
- `The value must be at least ${options.value} characters long.`,
13
+ message: isValid ? '' : options?.message ?? `The value must be at least ${options.value} characters long.`,
17
14
  value: value,
18
15
  };
19
16
  }
@@ -23,4 +20,4 @@ export class AXMinLengthValidationRule {
23
20
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.2", ngImport: i0, type: AXMinLengthValidationRule, decorators: [{
24
21
  type: Injectable
25
22
  }] });
26
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibWlubGVuZ3RoLXJ1bGUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi9saWJzL2NvcmUvdmFsaWRhdGlvbi9zcmMvbGliL3J1bGVzL21pbmxlbmd0aC1ydWxlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxPQUFPLEVBQUUsTUFBTSxXQUFXLENBQUM7QUFNcEMsT0FBTyxFQUFFLFVBQVUsRUFBRSxNQUFNLGVBQWUsQ0FBQzs7QUFjM0MsTUFBTSxPQUFPLHlCQUF5QjtJQUNwQyxJQUFJLElBQUk7UUFDTixPQUFPLFdBQVcsQ0FBQztJQUNyQixDQUFDO0lBRUQsS0FBSyxDQUFDLFFBQVEsQ0FDWixLQUFhLEVBQ2IsT0FBeUM7UUFFekMsTUFBTSxPQUFPLEdBQUcsT0FBTyxDQUFDLEtBQUssQ0FBQyxDQUFDLENBQUMsQ0FBQyxJQUFJLENBQUMsQ0FBQyxDQUFDLEtBQUssRUFBRSxNQUFNLElBQUksT0FBTyxDQUFDLEtBQUssQ0FBQztRQUN2RSxPQUFPO1lBQ0wsSUFBSSxFQUFFLElBQUksQ0FBQyxJQUFJO1lBQ2YsTUFBTSxFQUFFLE9BQU87WUFDZixPQUFPLEVBQUUsT0FBTztnQkFDZCxDQUFDLENBQUMsRUFBRTtnQkFDSixDQUFDLENBQUMsT0FBTyxFQUFFLE9BQU87b0JBQ2hCLDhCQUE4QixPQUFPLENBQUMsS0FBSyxtQkFBbUI7WUFDbEUsS0FBSyxFQUFFLEtBQUs7U0FDYixDQUFDO0lBQ0osQ0FBQzs4R0FuQlUseUJBQXlCO2tIQUF6Qix5QkFBeUI7O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WUoKTogc3RyaW5nIHtcbiAgICByZXR1cm4gJ21pbkxlbmd0aCc7XG4gIH1cblxuICBhc3luYyB2YWxpZGF0ZSh2YWx1ZTogc3RyaW5nLCBvcHRpb25zOiBBWE1pbkxlbmd0aFZhbGlkYXRpb25SdWxlT3B0aW9ucyk6IFByb21pc2U8QVhWYWxpZGF0aW9uUnVsZVJlc3VsdD4ge1xuICAgIGNvbnN0IGlzVmFsaWQgPSBpc0VtcHR5KHZhbHVlKSA/IHRydWUgOiB2YWx1ZT8ubGVuZ3RoID49IG9wdGlvbnMudmFsdWU7XG4gICAgcmV0dXJuIHtcbiAgICAgIHJ1bGU6IHRoaXMubmFtZSxcbiAgICAgIHJlc3VsdDogaXNWYWxpZCxcbiAgICAgIG1lc3NhZ2U6IGlzVmFsaWQgPyAnJyA6IG9wdGlvbnM/Lm1lc3NhZ2UgPz8gYFRoZSB2YWx1ZSBtdXN0IGJlIGF0IGxlYXN0ICR7b3B0aW9ucy52YWx1ZX0gY2hhcmFjdGVycyBsb25nLmAsXG4gICAgICB2YWx1ZTogdmFsdWUsXG4gICAgfTtcbiAgfVxufVxuIl19
@@ -1,6 +1,6 @@
1
- import { isEmpty, isString } from 'lodash-es';
2
- import { Injectable, inject } from '@angular/core';
3
1
  import { AXTranslationService } from '@acorex/core/translation';
2
+ import { Injectable, inject } from '@angular/core';
3
+ import { isEmpty, isString } from 'lodash-es';
4
4
  import * as i0 from "@angular/core";
5
5
  export class AXRegexValidationRule {
6
6
  constructor() {
@@ -11,9 +11,7 @@ export class AXRegexValidationRule {
11
11
  }
12
12
  async validate(value, options) {
13
13
  // Convert string pattern to RegExp if necessary
14
- const regexPattern = typeof options.pattern === 'string'
15
- ? new RegExp(options.pattern)
16
- : options.pattern;
14
+ const regexPattern = typeof options.pattern === 'string' ? new RegExp(options.pattern) : options.pattern;
17
15
  if (!value || (isString(value) && isEmpty(value.trim()))) {
18
16
  return {
19
17
  rule: this.name,
@@ -31,8 +29,7 @@ export class AXRegexValidationRule {
31
29
  };
32
30
  }
33
31
  const isValid = regexPattern.test(value);
34
- const translatedMessage = await this.traslationService.translateAsync(options?.message ??
35
- `The value does not match the pattern ${regexPattern}.`, { params: { title: options?.['title'] } });
32
+ const translatedMessage = await this.traslationService.translateAsync(options?.message ?? `The value does not match the pattern ${regexPattern}.`, { params: { title: options?.['title'] } });
36
33
  return {
37
34
  rule: this.name,
38
35
  result: isValid,
@@ -46,4 +43,4 @@ export class AXRegexValidationRule {
46
43
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.2", ngImport: i0, type: AXRegexValidationRule, decorators: [{
47
44
  type: Injectable
48
45
  }] });
49
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicmVnZXgtcnVsZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uL2xpYnMvY29yZS92YWxpZGF0aW9uL3NyYy9saWIvcnVsZXMvcmVnZXgtcnVsZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsT0FBTyxFQUFFLFFBQVEsRUFBRSxNQUFNLFdBQVcsQ0FBQztBQU05QyxPQUFPLEVBQUUsVUFBVSxFQUFFLE1BQU0sRUFBRSxNQUFNLGVBQWUsQ0FBQztBQUNuRCxPQUFPLEVBQUUsb0JBQW9CLEVBQUUsTUFBTSwwQkFBMEIsQ0FBQzs7QUFjaEUsTUFBTSxPQUFPLHFCQUFxQjtJQURsQztRQUVVLHNCQUFpQixHQUFHLE1BQU0sQ0FBQyxvQkFBb0IsQ0FBQyxDQUFDO0tBNkMxRDtJQTNDQyxJQUFJLElBQUk7UUFDTixPQUFPLE9BQU8sQ0FBQztJQUNqQixDQUFDO0lBRUQsS0FBSyxDQUFDLFFBQVEsQ0FDWixLQUFhLEVBQ2IsT0FBcUM7UUFFckMsZ0RBQWdEO1FBQ2hELE1BQU0sWUFBW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iB0aGlzLm5hbWUsXG4gICAgICAgIHJlc3VsdDogdHJ1ZSxcbiAgICAgICAgbWVzc2FnZTogbnVsbCxcbiAgICAgICAgdmFsdWU6IHZhbHVlLFxuICAgICAgfTtcbiAgICB9IGVsc2UgaWYgKCFpc1N0cmluZyh2YWx1ZSkpIHtcbiAgICAgIHJldHVybiB7XG4gICAgICAgIHJ1bGU6IHRoaXMubmFtZSxcbiAgICAgICAgcmVzdWx0OiBmYWxzZSxcbiAgICAgICAgbWVzc2FnZTogYCR7dmFsdWV9IGlzIG5vdCBzdHJpbmcgdmFsdWUuYCxcbiAgICAgICAgdmFsdWU6IHZhbHVlLFxuICAgICAgfTtcbiAgICB9XG5cbiAgICBjb25zdCBpc1ZhbGlkID0gcmVnZXhQYXR0ZXJuLnRlc3QodmFsdWUpO1xuICAgIGNvbnN0IHRyYW5zbGF0ZWRNZXNzYWdlID0gYXdhaXQgdGhpcy50cmFzbGF0aW9uU2VydmljZS50cmFuc2xhdGVBc3luYyhcbiAgICAgIG9wdGlvbnM/Lm1lc3NhZ2UgPz8gYFRoZSB2YWx1ZSBkb2VzIG5vdCBtYXRjaCB0aGUgcGF0dGVybiAke3JlZ2V4UGF0dGVybn0uYCxcbiAgICAgIHsgcGFyYW1zOiB7IHRpdGxlOiBvcHRpb25zPy5bJ3RpdGxlJ10gfSB9LFxuICAgICk7XG4gICAgcmV0dXJuIHtcbiAgICAgIHJ1bGU6IHRoaXMubmFtZSxcbiAgICAgIHJlc3VsdDogaXNWYWxpZCxcbiAgICAgIG1lc3NhZ2U6IGlzVmFsaWQgPyBudWxsIDogdHJhbnNsYXRlZE1lc3NhZ2UsXG4gICAgICB2YWx1ZTogdmFsdWUsXG4gICAgfTtcbiAgfVxufVxuIl19
@@ -1,6 +1,6 @@
1
- import { find, isArray, isEmpty, isNull, isNumber, isString, isUndefined, } from 'lodash-es';
2
- import { Injectable, inject } from '@angular/core';
3
1
  import { AXTranslationService } from '@acorex/core/translation';
2
+ import { Injectable, inject } from '@angular/core';
3
+ import { find, isArray, isEmpty, isNull, isNumber, isString, isUndefined } from 'lodash-es';
4
4
  import * as i0 from "@angular/core";
5
5
  export class AXRequiredValidationRule {
6
6
  constructor() {
@@ -18,7 +18,9 @@ export class AXRequiredValidationRule {
18
18
  ];
19
19
  const failedRule = find(rules, (rule) => rule.test(value));
20
20
  const isValid = !failedRule;
21
- const translatedMessage = await this.traslationService.translateAsync('validation.messages.required', { params: { title: options?.['title'] } });
21
+ const translatedMessage = await this.traslationService.translateAsync('validation.messages.required', {
22
+ params: { title: options?.['title'] },
23
+ });
22
24
  const message = failedRule ? options?.message ?? translatedMessage : null;
23
25
  return {
24
26
  rule: this.name,
@@ -33,4 +35,4 @@ export class AXRequiredValidationRule {
33
35
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.2", ngImport: i0, type: AXRequiredValidationRule, decorators: [{
34
36
  type: Injectable
35
37
  }] });
36
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicmVxdWlyZWQtcnVsZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uL2xpYnMvY29yZS92YWxpZGF0aW9uL3NyYy9saWIvcnVsZXMvcmVxdWlyZWQtcnVsZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQ0wsSUFBSSxFQUNKLE9BQU8sRUFDUCxPQUFPLEVBQ1AsTUFBTSxFQUNOLFFBQVEsRUFDUixRQUFRLEVBQ1IsV0FBVyxHQUNaLE1BQU0sV0FBVyxDQUFDO0FBTW5CLE9BQU8sRUFBRSxVQUFVLEVBQUUsTUFBTSxFQUFFLE1BQU0sZUFBZSxDQUFDO0FBQ25ELE9BQU8sRUFBRSxvQkFBb0IsRUFBRSxNQUFNLDBCQUEwQixDQUFDOztBQWNoRSxNQUFNLE9BQU8sd0JBQXdCO0lBRHJDO1FBRV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eyB0ZXN0OiAodmFsKSA9PiBpc0FycmF5KHZhbCkgJiYgaXNFbXB0eSh2YWwpIH0sXG4gICAgXTtcblxuICAgIGNvbnN0IGZhaWxlZFJ1bGUgPSBmaW5kKHJ1bGVzLCAocnVsZSkgPT4gcnVsZS50ZXN0KHZhbHVlKSk7XG4gICAgY29uc3QgaXNWYWxpZCA9ICFmYWlsZWRSdWxlO1xuICAgIGNvbnN0IHRyYW5zbGF0ZWRNZXNzYWdlID0gYXdhaXQgdGhpcy50cmFzbGF0aW9uU2VydmljZS50cmFuc2xhdGVBc3luYygndmFsaWRhdGlvbi5tZXNzYWdlcy5yZXF1aXJlZCcsIHtcbiAgICAgIHBhcmFtczogeyB0aXRsZTogb3B0aW9ucz8uWyd0aXRsZSddIH0sXG4gICAgfSk7XG4gICAgY29uc3QgbWVzc2FnZSA9IGZhaWxlZFJ1bGUgPyBvcHRpb25zPy5tZXNzYWdlID8/IHRyYW5zbGF0ZWRNZXNzYWdlIDogbnVsbDtcblxuICAgIHJldHVybiB7XG4gICAgICBydWxlOiB0aGlzLm5hbWUsXG4gICAgICByZXN1bHQ6IGlzVmFsaWQsXG4gICAgICBtZXNzYWdlOiBtZXNzYWdlLFxuICAgICAgdmFsdWUsXG4gICAgfTtcbiAgfVxufVxuIl19
@@ -30,4 +30,4 @@ export function validationConfig(config = {}) {
30
30
  };
31
31
  return result;
32
32
  }
33
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidmFsaWRhdGlvbi5jb25maWcuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9saWJzL2NvcmUvdmFsaWRhdGlvbi9zcmMvbGliL3ZhbGlkYXRpb24uY29uZmlnLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxjQUFjLEVBQUUsTUFBTSxlQUFlLENBQUM7QUFpQi9DLE1BQU0sQ0FBQyxN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aW9uQ29uZmlnID0gUGFydGlhbDxBWFZhbGlkYXRpb25Db25maWc+O1xuXG5leHBvcnQgZnVuY3Rpb24gdmFsaWRhdGlvbkNvbmZpZyhjb25maWc6IEFYUGFydGlhbFZhbGlkYXRpb25Db25maWcgPSB7fSk6IEFYVmFsaWRhdGlvbkNvbmZpZyB7XG4gIGNvbnN0IHJlc3VsdCA9IHtcbiAgICAuLi5BWFZhbGlkYXRpb25EZWZhdWx0Q29uZmlnLFxuICAgIC4uLmNvbmZpZyxcbiAgfTtcbiAgcmV0dXJuIHJlc3VsdDtcbn1cbiJdfQ==
@@ -1,15 +1,15 @@
1
- import { Inject, NgModule, } from '@angular/core';
2
- import { AXValidationRegistryService } from './validation.service';
3
- import { AXRegexValidationRule } from './rules/regex-rule';
4
- import { AXRequiredValidationRule } from './rules/required-rule';
1
+ import { Inject, NgModule } from '@angular/core';
2
+ import { AXBetweenValidationRule } from './rules/between-rule';
5
3
  import { AXCallbackValidationRule } from './rules/callback-rule';
6
- import { AXMinLengthValidationRule } from './rules/minlength-rule';
7
- import { AXMaxLengthValidationRule } from './rules/maxlength-rule';
8
- import { AXLengthValidationRule } from './rules/length-rule';
9
4
  import { AXEqualValidationRule } from './rules/equal-rule';
10
- import { AXLessThanValidationRule } from './rules/less-than-rule';
11
5
  import { AXGreaterThanValidationRule } from './rules/greater-than';
12
- import { AXBetweenValidationRule } from './rules/between-rule';
6
+ import { AXLengthValidationRule } from './rules/length-rule';
7
+ import { AXLessThanValidationRule } from './rules/less-than-rule';
8
+ import { AXMaxLengthValidationRule } from './rules/maxlength-rule';
9
+ import { AXMinLengthValidationRule } from './rules/minlength-rule';
10
+ import { AXRegexValidationRule } from './rules/regex-rule';
11
+ import { AXRequiredValidationRule } from './rules/required-rule';
12
+ import { AXValidationRegistryService } from './validation.service';
13
13
  import * as i0 from "@angular/core";
14
14
  const BUILT_IN_RULES = [
15
15
  AXRequiredValidationRule,
@@ -81,4 +81,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.2", ngImpor
81
81
  type: Inject,
82
82
  args: ['AXValidationModuleFactory']
83
83
  }] }] });
84
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidmFsaWRhdGlvbi5tb2R1bGUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9saWJzL2NvcmUvdmFsaWRhdGlvbi9zcmMvbGliL3ZhbGlkYXRpb24ubW9kdWxlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFFTCxNQUFNLEVBR04sUUFBUSxHQUNULE1BQU0sZUFBZSxDQUFDO0FBQ3ZCLE9BQU8sRUFBRSwyQkFBMkIsRUFBRSxNQUFNLHNCQUFzQixDQUFDO0FBRW5FLE9BQU8sRUFBRSxxQkFBcUIsRUFBRSxNQUFNLG9CQUFvQixDQUFDO0FBQzNELE9BQU8sRUFBRSx3QkFBd0IsRUFBRSxNQUFNLHVCQUF1QixDQUFDO0FBQ2pFLE9BQU8sRUFBRSx3QkFBd0IsRUFBRSxNQUFNLHVCQUF1QixDQUFDO0FBQ2pFLE9BQU8sRUFBRSx5QkFBeUIsRUFBRSxNQUFNLHdCQUF3QixDQUFDO0FBQ25FLE9BQU8sRUFBRSx5QkFBeUIsRUFBRSxNQUFNLHdCQUF3QixDQUFDO0FBQ25FLE9BQU8sRUFBRSxzQkFBc0IsRUFBRSxNQUFNLHFCQUFxQixDQUFDO0FBQzdELE9BQU8sRUFBRSxxQkFBcUIsRUFBRSxNQUFNLG9CQUFvQixDQUFDO0FBQzNELE9BQU8sRUFBRSx3QkFBd0IsRUFBRSxNQUFNLHdCQUF3QixDQUFDO0FBQ2xFLE9BQU8sRUFBRSwyQkFBMkIsRUFBRSxNQUFNLHNCQUFzQixDQUFDO0FBQ25FLE9BQU8sRUFBRSx1QkFBdUIsRUFBRSxNQUFNLHNCQUFzQixDQUFDO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