@neowhale/storefront 0.2.56 → 0.2.57

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.
@@ -2940,7 +2940,7 @@ function LeadCaptureSection({ section, data, theme, onEvent }) {
2940
2940
  fontFamily: "inherit",
2941
2941
  transition: "border-color 0.2s"
2942
2942
  };
2943
- if (status === "success") return /* @__PURE__ */ jsx(SuccessState, { theme, heading: serverMessage?.heading || successHeading, message: serverMessage?.message || successMessage, couponCode: c.coupon_code });
2943
+ if (status === "success") return /* @__PURE__ */ jsx(SuccessState, { theme, heading: serverMessage?.heading || successHeading, message: serverMessage?.message || successMessage, couponCode: c.coupon_code, ctaText: c.success_cta_text, ctaUrl: c.success_cta_url });
2944
2944
  return /* @__PURE__ */ jsxs("div", { style: { padding: "3.5rem 1.5rem", maxWidth: 560, margin: "0 auto" }, children: [
2945
2945
  /* @__PURE__ */ jsx("style", { children: `@keyframes lc-spin { to { transform: rotate(360deg) } }` }),
2946
2946
  /* @__PURE__ */ jsxs("div", { style: { background: theme.surface, border: `1px solid ${theme.fg}12`, padding: "clamp(2rem, 6vw, 3rem)" }, children: [
@@ -3024,7 +3024,7 @@ function LeadCaptureSection({ section, data, theme, onEvent }) {
3024
3024
  ] })
3025
3025
  ] });
3026
3026
  }
3027
- function SuccessState({ theme, heading, message, couponCode }) {
3027
+ function SuccessState({ theme, heading, message, couponCode, ctaText, ctaUrl }) {
3028
3028
  return /* @__PURE__ */ jsx("div", { style: { padding: "3.5rem 1.5rem", maxWidth: 560, margin: "0 auto" }, children: /* @__PURE__ */ jsxs("div", { style: { background: theme.surface, border: `1px solid ${theme.fg}12`, padding: "clamp(2rem, 6vw, 3rem)", textAlign: "center" }, children: [
3029
3029
  /* @__PURE__ */ jsx("h2", { style: {
3030
3030
  fontSize: "clamp(1.5rem, 5vw, 2rem)",
@@ -3046,7 +3046,30 @@ function SuccessState({ theme, heading, message, couponCode }) {
3046
3046
  fontFamily: "monospace",
3047
3047
  letterSpacing: "0.12em",
3048
3048
  color: theme.accent
3049
- }, children: couponCode })
3049
+ }, children: couponCode }),
3050
+ /* @__PURE__ */ jsx(
3051
+ "button",
3052
+ {
3053
+ onClick: () => {
3054
+ window.location.href = ctaUrl || "/shop";
3055
+ },
3056
+ style: {
3057
+ marginTop: "1.5rem",
3058
+ width: "100%",
3059
+ padding: "0.875rem",
3060
+ background: theme.accent,
3061
+ color: "#fff",
3062
+ border: "none",
3063
+ fontSize: "0.85rem",
3064
+ fontWeight: 500,
3065
+ cursor: "pointer",
3066
+ letterSpacing: "0.08em",
3067
+ textTransform: "uppercase",
3068
+ fontFamily: "inherit"
3069
+ },
3070
+ children: ctaText || "shop now"
3071
+ }
3072
+ )
3050
3073
  ] }) });
3051
3074
  }
3052
3075
  var GOOGLE_G_LG = '<svg width="28" height="28" viewBox="0 0 48 48"><path fill="#EA4335" d="M24 9.5c3.54 0 6.71 1.22 9.21 3.6l6.85-6.85C35.9 2.38 30.47 0 24 0 14.62 0 6.51 5.38 2.56 13.22l7.98 6.19C12.43 13.72 17.74 9.5 24 9.5z"/><path fill="#4285F4" d="M46.98 24.55c0-1.57-.15-3.09-.38-4.55H24v9.02h12.94c-.58 2.96-2.26 5.48-4.78 7.18l7.73 6c4.51-4.18 7.09-10.36 7.09-17.65z"/><path fill="#FBBC05" d="M10.53 28.59a14.5 14.5 0 010-9.18l-7.98-6.19a24.03 24.03 0 000 21.56l7.98-6.19z"/><path fill="#34A853" d="M24 48c6.48 0 11.93-2.13 15.89-5.81l-7.73-6c-2.15 1.45-4.92 2.3-8.16 2.3-6.26 0-11.57-4.22-13.47-9.91l-7.98 6.19C6.51 42.62 14.62 48 24 48z"/></svg>';