@eclass/ui-kit 1.8.0 → 1.8.1

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.
@@ -27581,7 +27581,7 @@ function Footer({
27581
27581
  borderTop: "1px solid",
27582
27582
  borderTopColor: vars("colors-neutral-platinum"),
27583
27583
  children: [isCourseActive(action.enabled, Profile2 == null ? void 0 : Profile2.id) ? /* @__PURE__ */ jsxs(Fragment, {
27584
- children: [hasFinanzeFreezed ? /* @__PURE__ */ jsx(Button, {
27584
+ children: [hasFinanzeFreezed ? /* @__PURE__ */ jsx(Box, {
27585
27585
  color: vars("colors-main-deepSkyBlue"),
27586
27586
  backgroundColor: "transparent",
27587
27587
  fontWeight: "500",
@@ -27595,13 +27595,11 @@ function Footer({
27595
27595
  _active: cssButton,
27596
27596
  onClick: () => handleClick(),
27597
27597
  children: action.text
27598
- }) : /* @__PURE__ */ jsx(LinkOverlay, {
27599
- href: action.href,
27598
+ }) : /* @__PURE__ */ jsx(Text, {
27600
27599
  color: vars("colors-main-deepSkyBlue"),
27601
27600
  fontWeight: "500",
27602
27601
  mr: action.hasIcon ? "1.5rem" : "0",
27603
27602
  lineHeight: "1.172rem",
27604
- isExternal: action.targetBlank,
27605
27603
  children: action.text
27606
27604
  }), action.hasIcon && /* @__PURE__ */ jsx(ArrowRight, {
27607
27605
  color: vars("colors-main-deepSkyBlue")
@@ -27637,7 +27635,7 @@ function CourseBox({
27637
27635
  data,
27638
27636
  modalPaymentText
27639
27637
  }) {
27640
- var _a, _b, _c;
27638
+ var _a, _b, _c, _d, _e, _f, _g, _h;
27641
27639
  const cssActive = {
27642
27640
  boxShadow: `0 2px 7px 0 ${vars("colors-neutral-silverSand")}`
27643
27641
  };
@@ -27660,7 +27658,10 @@ function CourseBox({
27660
27658
  justify: "space-between",
27661
27659
  h: "100%",
27662
27660
  children: [/* @__PURE__ */ jsxs(Box, {
27663
- children: [/* @__PURE__ */ jsx(Header, {}), /* @__PURE__ */ jsx(Section, {})]
27661
+ children: [!data.hasFinanzeFreezed && isCourseActive((_e = (_d = data.action) == null ? void 0 : _d.enabled) != null ? _e : false, (_f = data.Profile) == null ? void 0 : _f.id) && /* @__PURE__ */ jsx(LinkOverlay, {
27662
+ href: (_g = data.action) == null ? void 0 : _g.href,
27663
+ isExternal: (_h = data.action) == null ? void 0 : _h.targetBlank
27664
+ }), /* @__PURE__ */ jsx(Header, {}), /* @__PURE__ */ jsx(Section, {})]
27664
27665
  }), /* @__PURE__ */ jsx(Footer, {
27665
27666
  modalPaymentText
27666
27667
  })]