nvis-fe-cms-libs 1.1.18 → 1.1.20

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.
@@ -4525,13 +4525,13 @@ var __async = (__this, __arguments, generator) => {
4525
4525
  ` })
4526
4526
  ] });
4527
4527
  };
4528
- const PageHighlightSection = ({ data, t, isDarkMode }) => {
4528
+ const PageHighlightSection = ({ data, t, isDarkMode, imageBaseUrl = "" }) => {
4529
4529
  var _a;
4530
4530
  const [activeTab, setActiveTab] = require$$0.useState(0);
4531
4531
  const rawData = ((_a = data == null ? void 0 : data.sectionDataBindingItems) == null ? void 0 : _a.filter((item) => item == null ? void 0 : item.data).map((item) => item.data)) || [];
4532
4532
  const getImageUrl = (imagePath) => {
4533
4533
  if (imagePath) {
4534
- return `${void 0}${imagePath}`;
4534
+ return `${imageBaseUrl}${imagePath}`;
4535
4535
  }
4536
4536
  return null;
4537
4537
  };
@@ -4560,7 +4560,7 @@ var __async = (__this, __arguments, generator) => {
4560
4560
  }, [highlightData.length]);
4561
4561
  const handleNavigate = (slug) => {
4562
4562
  if (slug) {
4563
- window.open(slug, "_blank");
4563
+ window.location.href = slug;
4564
4564
  }
4565
4565
  };
4566
4566
  const gradientColors = [
@@ -4606,7 +4606,7 @@ var __async = (__this, __arguments, generator) => {
4606
4606
  /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "absolute top-8 left-8", children: /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: `inline-block bg-gradient-to-r ${color} text-white px-6 py-3 rounded-full text-sm font-bold shadow-xl`, children: item.tag }) })
4607
4607
  ] }),
4608
4608
  /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "p-5 lg:p-8 flex flex-col justify-center", children: [
4609
- /* @__PURE__ */ jsxRuntimeExports.jsx("h2", { className: `text-3xl lg:text-4xl font-black mb-3 bg-gradient-to-r ${color} bg-clip-text text-transparent`, children: item.title }),
4609
+ /* @__PURE__ */ jsxRuntimeExports.jsx("h1", { className: `text-3xl lg:text-4xl font-black mb-3 bg-gradient-to-r ${color} bg-clip-text text-transparent`, children: item.title }),
4610
4610
  /* @__PURE__ */ jsxRuntimeExports.jsx("p", { className: `${isDarkMode ? "text-gray-300" : "text-gray-600"} text-sm leading-relaxed mb-5`, children: item.description }),
4611
4611
  item.features && item.features.length > 0 && /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "grid grid-cols-1 sm:grid-cols-2 gap-2 mb-6", children: item.features.map((feature, idx) => /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex items-start gap-2 group", children: [
4612
4612
  /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: `mt-0.5 w-4 h-4 rounded-full bg-gradient-to-r ${color} flex items-center justify-center flex-shrink-0`, children: /* @__PURE__ */ jsxRuntimeExports.jsx("svg", { className: "w-2.5 h-2.5 text-white", fill: "none", viewBox: "0 0 24 24", stroke: "currentColor", children: /* @__PURE__ */ jsxRuntimeExports.jsx("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 3, d: "M5 13l4 4L19 7" }) }) }),