@churchillliving/se-ui-toolkit 6.53.482 → 6.53.483

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.
@@ -8658,15 +8658,17 @@
8658
8658
  }, 250);
8659
8659
  };
8660
8660
  SidebarComponent.prototype.openComponentInTab = function (menu) {
8661
- var route = this.router.config.find(function (x) {
8662
- var _a;
8663
- if (x.component == menu.component) {
8664
- return x.component == menu.component;
8661
+ var route = {};
8662
+ this.router.config.forEach(function (parentRoute) {
8663
+ var _a, _b, _c;
8664
+ if (((_a = parentRoute.component) === null || _a === void 0 ? void 0 : _a.name) === ((_b = menu.component) === null || _b === void 0 ? void 0 : _b.name)) {
8665
+ route = parentRoute;
8665
8666
  }
8666
- if (x.children) {
8667
- (_a = x === null || x === void 0 ? void 0 : x.children) === null || _a === void 0 ? void 0 : _a.find(function (y) {
8668
- if (y.component == menu.component) {
8669
- return y.component == menu.component;
8667
+ else if (parentRoute.children) {
8668
+ (_c = parentRoute === null || parentRoute === void 0 ? void 0 : parentRoute.children) === null || _c === void 0 ? void 0 : _c.forEach(function (childRoute) {
8669
+ var _a, _b;
8670
+ if (((_a = childRoute.component) === null || _a === void 0 ? void 0 : _a.name) === ((_b = menu.component) === null || _b === void 0 ? void 0 : _b.name)) {
8671
+ route = childRoute;
8670
8672
  }
8671
8673
  });
8672
8674
  }
@@ -8679,7 +8681,7 @@
8679
8681
  params_1 = param;
8680
8682
  }
8681
8683
  });
8682
- var url = this.router.serializeUrl(this.router.createUrlTree([route.path], { queryParams: params_1 }));
8684
+ var url = this.router.serializeUrl(this.router.createUrlTree([route === null || route === void 0 ? void 0 : route.path], { queryParams: params_1 }));
8683
8685
  window.open(url, '_blank');
8684
8686
  }
8685
8687
  };