@sumaris-net/ngx-components 2.0.0-rc25 → 2.0.0-rc27

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.
@@ -2533,6 +2533,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.8", ngImpor
2533
2533
  const DATE_UNIX_TIMESTAMP = 'X';
2534
2534
  const DATE_UNIX_MS_TIMESTAMP = 'x';
2535
2535
  const MOMENT_NO_TIME_PROPERTY = '_hasNoTime';
2536
+ const momentOrModule = momentNamespace;
2536
2537
  class DateUtils {
2537
2538
  static isEsModule(value) {
2538
2539
  return value && value['__esModule'] === true;
@@ -2543,11 +2544,12 @@ class DateUtils {
2543
2544
  static get moment() {
2544
2545
  // Resolve moment, if was wrapped into a ES module
2545
2546
  if (!this.__moment) {
2546
- if (this.isEsModule(momentNamespace)) {
2547
- this.__moment = momentNamespace.default;
2547
+ console.log('Resolving moment...');
2548
+ if (this.isEsModule(momentOrModule)) {
2549
+ this.__moment = momentOrModule.default;
2548
2550
  }
2549
- if (typeof moment$1['isMoment'] === 'function') {
2550
- this.__moment = momentNamespace;
2551
+ if (typeof momentOrModule['isMoment'] === 'function') {
2552
+ this.__moment = momentOrModule;
2551
2553
  }
2552
2554
  }
2553
2555
  return this.__moment;