@burdenoff/website-sdk 2026.726.2 → 2026.726.4

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.
package/dist/index.mjs CHANGED
@@ -2532,6 +2532,17 @@ function splitPlansByAudience(plans, showAudienceTabs) {
2532
2532
  enterprisePlans: plans.filter((p) => isEnterprisePlan(p.name))
2533
2533
  };
2534
2534
  }
2535
+ function resolveEnterprisePlans(apiEnterprisePlans, staticEnterprisePlans, defaultEnterpriseCard) {
2536
+ const staticPlans = staticEnterprisePlans || [];
2537
+ if (apiEnterprisePlans.length === 0 && staticPlans.length === 0) {
2538
+ return [defaultEnterpriseCard];
2539
+ }
2540
+ const apiNames = new Set(apiEnterprisePlans.map((p) => p.name.toLowerCase()));
2541
+ const dedupedStaticPlans = staticPlans.filter(
2542
+ (p) => !apiNames.has(p.name.toLowerCase())
2543
+ );
2544
+ return [...apiEnterprisePlans, ...dedupedStaticPlans];
2545
+ }
2535
2546
  function detectPlanTier(planName) {
2536
2547
  const name = planName.toLowerCase();
2537
2548
  if (name.includes("free") || name.includes("basic") || name.includes("starter") || name.includes("hobby")) {
@@ -2731,7 +2742,6 @@ function PricingSection(props) {
2731
2742
  }
2732
2743
  return p;
2733
2744
  });
2734
- const hasApiEnterprisePlans = enterpriseCards.length > 0;
2735
2745
  const defaultEnterpriseCard = {
2736
2746
  name: "Enterprise",
2737
2747
  subtitle: "For organizations that need more",
@@ -2752,7 +2762,11 @@ function PricingSection(props) {
2752
2762
  "Self-hosted option"
2753
2763
  ]
2754
2764
  };
2755
- const resolvedEnterprisePlans = hasApiEnterprisePlans ? enterpriseCards : props.enterprisePlans ? props.enterprisePlans : [defaultEnterpriseCard];
2765
+ const resolvedEnterprisePlans = resolveEnterprisePlans(
2766
+ enterpriseCards,
2767
+ props.enterprisePlans,
2768
+ defaultEnterpriseCard
2769
+ );
2756
2770
  const plans = props.showAudienceTabs && audience === "enterprise" ? [] : individualPlans;
2757
2771
  if (loading) {
2758
2772
  return /* @__PURE__ */ jsx("section", { id, className: `py-12 sm:py-16 md:py-20 ${className}`, children: /* @__PURE__ */ jsxs("div", { className: "container mx-auto px-4 sm:px-6", children: [