@contractspec/bundle.marketing 1.12.0 → 1.14.0

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.
Files changed (262) hide show
  1. package/.turbo/turbo-build.log +146 -175
  2. package/.turbo/turbo-prebuild.log +1 -0
  3. package/CHANGELOG.md +57 -0
  4. package/dist/browser/components/marketing/ChangelogPage.js +92 -0
  5. package/dist/browser/components/marketing/CofounderPage.js +581 -0
  6. package/dist/browser/components/marketing/ContactClient.js +1379 -0
  7. package/dist/browser/components/marketing/ContributePage.js +487 -0
  8. package/dist/browser/components/marketing/DesignPartnerPage.js +272 -0
  9. package/dist/browser/components/marketing/LandingPage.js +629 -0
  10. package/dist/browser/components/marketing/PricingClient.js +1972 -0
  11. package/dist/browser/components/marketing/ProductClientPage.js +563 -0
  12. package/dist/browser/components/marketing/index.js +4818 -0
  13. package/dist/browser/components/marketing/pricing-thinking-modal.js +258 -0
  14. package/dist/browser/components/marketing/sections/AudienceSection.js +90 -0
  15. package/dist/browser/components/marketing/sections/CorePositioningSection.js +72 -0
  16. package/dist/browser/components/marketing/sections/CtaSection.js +67 -0
  17. package/dist/browser/components/marketing/sections/DevelopersSection.js +50 -0
  18. package/dist/browser/components/marketing/sections/FearsSection.js +105 -0
  19. package/dist/browser/components/marketing/sections/HeroMarketingSection.js +93 -0
  20. package/dist/browser/components/marketing/sections/IconGridSection.js +63 -0
  21. package/dist/browser/components/marketing/sections/OutputsSection.js +116 -0
  22. package/dist/browser/components/marketing/sections/ProblemSection.js +103 -0
  23. package/dist/browser/components/marketing/sections/SolutionSection.js +103 -0
  24. package/dist/browser/components/marketing/sections/StepsSection.js +109 -0
  25. package/dist/browser/components/marketing/waitlist-section.js +1104 -0
  26. package/dist/browser/components/templates/TemplatesClientPage.js +5662 -0
  27. package/dist/browser/components/templates/TemplatesPage.js +177 -0
  28. package/dist/browser/components/templates/TemplatesPreviewModal.js +124 -0
  29. package/dist/browser/components/templates/index.js +5831 -0
  30. package/dist/browser/index.js +6485 -0
  31. package/dist/browser/libs/email/client.js +122 -0
  32. package/dist/browser/libs/email/contact.js +190 -0
  33. package/dist/browser/libs/email/newsletter.js +215 -0
  34. package/dist/browser/libs/email/types.js +2 -0
  35. package/dist/browser/libs/email/utils.js +16 -0
  36. package/dist/browser/libs/email/waitlist-application.js +295 -0
  37. package/dist/browser/libs/email/waitlist.js +225 -0
  38. package/dist/browser/libs/pricing-examples.js +26 -0
  39. package/dist/browser/registry/engine.js +5293 -0
  40. package/dist/browser/registry/factory.js +52 -0
  41. package/dist/browser/registry/index.js +5358 -0
  42. package/dist/browser/registry/registry-docs.js +343 -0
  43. package/dist/browser/registry/registry-landing.js +4937 -0
  44. package/dist/browser/registry/registry.js +5279 -0
  45. package/dist/browser/registry/types.js +0 -0
  46. package/dist/browser/registry/utils.js +5340 -0
  47. package/dist/components/marketing/ChangelogPage.d.ts +11 -17
  48. package/dist/components/marketing/ChangelogPage.d.ts.map +1 -1
  49. package/dist/components/marketing/ChangelogPage.js +84 -62
  50. package/dist/components/marketing/CofounderPage.d.ts +1 -6
  51. package/dist/components/marketing/CofounderPage.d.ts.map +1 -1
  52. package/dist/components/marketing/CofounderPage.js +544 -436
  53. package/dist/components/marketing/ContactClient.d.ts +1 -6
  54. package/dist/components/marketing/ContactClient.d.ts.map +1 -1
  55. package/dist/components/marketing/ContactClient.js +1371 -155
  56. package/dist/components/marketing/ContributePage.d.ts +3 -8
  57. package/dist/components/marketing/ContributePage.d.ts.map +1 -1
  58. package/dist/components/marketing/ContributePage.js +478 -358
  59. package/dist/components/marketing/DesignPartnerPage.d.ts +3 -8
  60. package/dist/components/marketing/DesignPartnerPage.d.ts.map +1 -1
  61. package/dist/components/marketing/DesignPartnerPage.js +263 -211
  62. package/dist/components/marketing/LandingPage.d.ts +1 -6
  63. package/dist/components/marketing/LandingPage.d.ts.map +1 -1
  64. package/dist/components/marketing/LandingPage.js +623 -37
  65. package/dist/components/marketing/PricingClient.d.ts +1 -6
  66. package/dist/components/marketing/PricingClient.d.ts.map +1 -1
  67. package/dist/components/marketing/PricingClient.js +1962 -516
  68. package/dist/components/marketing/ProductClientPage.d.ts +1 -6
  69. package/dist/components/marketing/ProductClientPage.d.ts.map +1 -1
  70. package/dist/components/marketing/ProductClientPage.js +556 -458
  71. package/dist/components/marketing/index.d.ts +11 -11
  72. package/dist/components/marketing/index.d.ts.map +1 -0
  73. package/dist/components/marketing/index.js +4813 -12
  74. package/dist/components/marketing/pricing-thinking-modal.d.ts +5 -13
  75. package/dist/components/marketing/pricing-thinking-modal.d.ts.map +1 -1
  76. package/dist/components/marketing/pricing-thinking-modal.js +248 -197
  77. package/dist/components/marketing/sections/AudienceSection.d.ts +1 -6
  78. package/dist/components/marketing/sections/AudienceSection.d.ts.map +1 -1
  79. package/dist/components/marketing/sections/AudienceSection.js +80 -63
  80. package/dist/components/marketing/sections/CorePositioningSection.d.ts +1 -6
  81. package/dist/components/marketing/sections/CorePositioningSection.d.ts.map +1 -1
  82. package/dist/components/marketing/sections/CorePositioningSection.js +62 -54
  83. package/dist/components/marketing/sections/CtaSection.d.ts +1 -6
  84. package/dist/components/marketing/sections/CtaSection.d.ts.map +1 -1
  85. package/dist/components/marketing/sections/CtaSection.js +58 -50
  86. package/dist/components/marketing/sections/DevelopersSection.d.ts +1 -6
  87. package/dist/components/marketing/sections/DevelopersSection.d.ts.map +1 -1
  88. package/dist/components/marketing/sections/DevelopersSection.js +40 -40
  89. package/dist/components/marketing/sections/FearsSection.d.ts +1 -6
  90. package/dist/components/marketing/sections/FearsSection.d.ts.map +1 -1
  91. package/dist/components/marketing/sections/FearsSection.js +96 -44
  92. package/dist/components/marketing/sections/HeroMarketingSection.d.ts +1 -6
  93. package/dist/components/marketing/sections/HeroMarketingSection.d.ts.map +1 -1
  94. package/dist/components/marketing/sections/HeroMarketingSection.js +82 -71
  95. package/dist/components/marketing/sections/IconGridSection.d.ts +25 -39
  96. package/dist/components/marketing/sections/IconGridSection.d.ts.map +1 -1
  97. package/dist/components/marketing/sections/IconGridSection.js +55 -41
  98. package/dist/components/marketing/sections/OutputsSection.d.ts +1 -6
  99. package/dist/components/marketing/sections/OutputsSection.d.ts.map +1 -1
  100. package/dist/components/marketing/sections/OutputsSection.js +107 -55
  101. package/dist/components/marketing/sections/ProblemSection.d.ts +1 -6
  102. package/dist/components/marketing/sections/ProblemSection.d.ts.map +1 -1
  103. package/dist/components/marketing/sections/ProblemSection.js +94 -42
  104. package/dist/components/marketing/sections/SolutionSection.d.ts +1 -6
  105. package/dist/components/marketing/sections/SolutionSection.d.ts.map +1 -1
  106. package/dist/components/marketing/sections/SolutionSection.js +94 -42
  107. package/dist/components/marketing/sections/StepsSection.d.ts +1 -6
  108. package/dist/components/marketing/sections/StepsSection.d.ts.map +1 -1
  109. package/dist/components/marketing/sections/StepsSection.js +100 -48
  110. package/dist/components/marketing/waitlist-section.d.ts +5 -12
  111. package/dist/components/marketing/waitlist-section.d.ts.map +1 -1
  112. package/dist/components/marketing/waitlist-section.js +1089 -568
  113. package/dist/components/templates/TemplatesClientPage.d.ts +1 -6
  114. package/dist/components/templates/TemplatesClientPage.d.ts.map +1 -1
  115. package/dist/components/templates/TemplatesClientPage.js +5649 -617
  116. package/dist/components/templates/TemplatesPage.d.ts +1 -6
  117. package/dist/components/templates/TemplatesPage.d.ts.map +1 -1
  118. package/dist/components/templates/TemplatesPage.js +163 -116
  119. package/dist/components/templates/TemplatesPreviewModal.d.ts +5 -12
  120. package/dist/components/templates/TemplatesPreviewModal.d.ts.map +1 -1
  121. package/dist/components/templates/TemplatesPreviewModal.js +113 -131
  122. package/dist/components/templates/index.d.ts +4 -4
  123. package/dist/components/templates/index.d.ts.map +1 -0
  124. package/dist/components/templates/index.js +5825 -4
  125. package/dist/index.d.ts +9 -29
  126. package/dist/index.d.ts.map +1 -0
  127. package/dist/index.js +6480 -28
  128. package/dist/libs/email/client.d.ts +9 -12
  129. package/dist/libs/email/client.d.ts.map +1 -1
  130. package/dist/libs/email/client.js +109 -105
  131. package/dist/libs/email/client.test.d.ts +2 -0
  132. package/dist/libs/email/client.test.d.ts.map +1 -0
  133. package/dist/libs/email/contact.d.ts +2 -6
  134. package/dist/libs/email/contact.d.ts.map +1 -1
  135. package/dist/libs/email/contact.js +155 -41
  136. package/dist/libs/email/newsletter.d.ts +2 -6
  137. package/dist/libs/email/newsletter.d.ts.map +1 -1
  138. package/dist/libs/email/newsletter.js +169 -54
  139. package/dist/libs/email/types.d.ts +48 -52
  140. package/dist/libs/email/types.d.ts.map +1 -1
  141. package/dist/libs/email/types.js +3 -1
  142. package/dist/libs/email/utils.d.ts +2 -5
  143. package/dist/libs/email/utils.d.ts.map +1 -1
  144. package/dist/libs/email/utils.js +10 -6
  145. package/dist/libs/email/waitlist-application.d.ts +2 -6
  146. package/dist/libs/email/waitlist-application.d.ts.map +1 -1
  147. package/dist/libs/email/waitlist-application.js +191 -71
  148. package/dist/libs/email/waitlist.d.ts +2 -6
  149. package/dist/libs/email/waitlist.d.ts.map +1 -1
  150. package/dist/libs/email/waitlist.js +171 -56
  151. package/dist/libs/pricing-examples.d.ts +13 -16
  152. package/dist/libs/pricing-examples.d.ts.map +1 -1
  153. package/dist/libs/pricing-examples.js +20 -20
  154. package/dist/node/components/marketing/ChangelogPage.js +87 -0
  155. package/dist/node/components/marketing/CofounderPage.js +576 -0
  156. package/dist/node/components/marketing/ContactClient.js +1374 -0
  157. package/dist/node/components/marketing/ContributePage.js +482 -0
  158. package/dist/node/components/marketing/DesignPartnerPage.js +267 -0
  159. package/dist/node/components/marketing/LandingPage.js +624 -0
  160. package/dist/node/components/marketing/PricingClient.js +1967 -0
  161. package/dist/node/components/marketing/ProductClientPage.js +558 -0
  162. package/dist/node/components/marketing/index.js +4813 -0
  163. package/dist/node/components/marketing/pricing-thinking-modal.js +253 -0
  164. package/dist/node/components/marketing/sections/AudienceSection.js +85 -0
  165. package/dist/node/components/marketing/sections/CorePositioningSection.js +67 -0
  166. package/dist/node/components/marketing/sections/CtaSection.js +62 -0
  167. package/dist/node/components/marketing/sections/DevelopersSection.js +45 -0
  168. package/dist/node/components/marketing/sections/FearsSection.js +100 -0
  169. package/dist/node/components/marketing/sections/HeroMarketingSection.js +88 -0
  170. package/dist/node/components/marketing/sections/IconGridSection.js +58 -0
  171. package/dist/node/components/marketing/sections/OutputsSection.js +111 -0
  172. package/dist/node/components/marketing/sections/ProblemSection.js +98 -0
  173. package/dist/node/components/marketing/sections/SolutionSection.js +98 -0
  174. package/dist/node/components/marketing/sections/StepsSection.js +104 -0
  175. package/dist/node/components/marketing/waitlist-section.js +1099 -0
  176. package/dist/node/components/templates/TemplatesClientPage.js +5657 -0
  177. package/dist/node/components/templates/TemplatesPage.js +172 -0
  178. package/dist/node/components/templates/TemplatesPreviewModal.js +119 -0
  179. package/dist/node/components/templates/index.js +5826 -0
  180. package/dist/node/index.js +6480 -0
  181. package/dist/node/libs/email/client.js +117 -0
  182. package/dist/node/libs/email/contact.js +185 -0
  183. package/dist/node/libs/email/newsletter.js +210 -0
  184. package/dist/node/libs/email/types.js +2 -0
  185. package/dist/node/libs/email/utils.js +11 -0
  186. package/dist/node/libs/email/waitlist-application.js +290 -0
  187. package/dist/node/libs/email/waitlist.js +220 -0
  188. package/dist/node/libs/pricing-examples.js +21 -0
  189. package/dist/node/registry/engine.js +5288 -0
  190. package/dist/node/registry/factory.js +47 -0
  191. package/dist/node/registry/index.js +5353 -0
  192. package/dist/node/registry/registry-docs.js +338 -0
  193. package/dist/node/registry/registry-landing.js +4932 -0
  194. package/dist/node/registry/registry.js +5274 -0
  195. package/dist/node/registry/types.js +0 -0
  196. package/dist/node/registry/utils.js +5335 -0
  197. package/dist/registry/engine.d.ts +4 -8
  198. package/dist/registry/engine.d.ts.map +1 -1
  199. package/dist/registry/engine.js +5287 -23
  200. package/dist/registry/factory.d.ts +30 -34
  201. package/dist/registry/factory.d.ts.map +1 -1
  202. package/dist/registry/factory.js +42 -56
  203. package/dist/registry/index.d.ts +8 -8
  204. package/dist/registry/index.d.ts.map +1 -0
  205. package/dist/registry/index.js +5353 -8
  206. package/dist/registry/registry-docs.d.ts +4 -8
  207. package/dist/registry/registry-docs.d.ts.map +1 -1
  208. package/dist/registry/registry-docs.js +242 -209
  209. package/dist/registry/registry-landing.d.ts +5 -9
  210. package/dist/registry/registry-landing.d.ts.map +1 -1
  211. package/dist/registry/registry-landing.js +4930 -93
  212. package/dist/registry/registry.d.ts +7 -11
  213. package/dist/registry/registry.d.ts.map +1 -1
  214. package/dist/registry/registry.js +5262 -49
  215. package/dist/registry/types.d.ts +6 -10
  216. package/dist/registry/types.d.ts.map +1 -1
  217. package/dist/registry/types.js +1 -0
  218. package/dist/registry/utils.d.ts +10 -14
  219. package/dist/registry/utils.d.ts.map +1 -1
  220. package/dist/registry/utils.js +5330 -49
  221. package/package.json +355 -73
  222. package/tsdown.config.js +1 -2
  223. package/.turbo/turbo-build$colon$types.log +0 -1
  224. package/.turbo/turbo-lint.log +0 -3
  225. package/dist/components/marketing/ChangelogPage.js.map +0 -1
  226. package/dist/components/marketing/CofounderPage.js.map +0 -1
  227. package/dist/components/marketing/ContactClient.js.map +0 -1
  228. package/dist/components/marketing/ContributePage.js.map +0 -1
  229. package/dist/components/marketing/DesignPartnerPage.js.map +0 -1
  230. package/dist/components/marketing/LandingPage.js.map +0 -1
  231. package/dist/components/marketing/PricingClient.js.map +0 -1
  232. package/dist/components/marketing/ProductClientPage.js.map +0 -1
  233. package/dist/components/marketing/pricing-thinking-modal.js.map +0 -1
  234. package/dist/components/marketing/sections/AudienceSection.js.map +0 -1
  235. package/dist/components/marketing/sections/CorePositioningSection.js.map +0 -1
  236. package/dist/components/marketing/sections/CtaSection.js.map +0 -1
  237. package/dist/components/marketing/sections/DevelopersSection.js.map +0 -1
  238. package/dist/components/marketing/sections/FearsSection.js.map +0 -1
  239. package/dist/components/marketing/sections/HeroMarketingSection.js.map +0 -1
  240. package/dist/components/marketing/sections/IconGridSection.js.map +0 -1
  241. package/dist/components/marketing/sections/OutputsSection.js.map +0 -1
  242. package/dist/components/marketing/sections/ProblemSection.js.map +0 -1
  243. package/dist/components/marketing/sections/SolutionSection.js.map +0 -1
  244. package/dist/components/marketing/sections/StepsSection.js.map +0 -1
  245. package/dist/components/marketing/waitlist-section.js.map +0 -1
  246. package/dist/components/templates/TemplatesClientPage.js.map +0 -1
  247. package/dist/components/templates/TemplatesPage.js.map +0 -1
  248. package/dist/components/templates/TemplatesPreviewModal.js.map +0 -1
  249. package/dist/libs/email/client.js.map +0 -1
  250. package/dist/libs/email/contact.js.map +0 -1
  251. package/dist/libs/email/newsletter.js.map +0 -1
  252. package/dist/libs/email/utils.js.map +0 -1
  253. package/dist/libs/email/waitlist-application.js.map +0 -1
  254. package/dist/libs/email/waitlist.js.map +0 -1
  255. package/dist/libs/pricing-examples.js.map +0 -1
  256. package/dist/registry/engine.js.map +0 -1
  257. package/dist/registry/factory.js.map +0 -1
  258. package/dist/registry/registry-docs.js.map +0 -1
  259. package/dist/registry/registry-landing.js.map +0 -1
  260. package/dist/registry/registry.js.map +0 -1
  261. package/dist/registry/utils.js.map +0 -1
  262. package/tsconfig.tsbuildinfo +0 -1
@@ -0,0 +1,1374 @@
1
+ import { createRequire } from "node:module";
2
+ var __require = /* @__PURE__ */ createRequire(import.meta.url);
3
+
4
+ // src/libs/email/client.ts
5
+ import { createClient, Temv1alpha1 } from "@scaleway/sdk";
6
+ import { Logger } from "@contractspec/lib.logger";
7
+ var DEFAULT_FROM = {
8
+ email: "noreply@transactional.contractspec.io",
9
+ name: "ContractSpec"
10
+ };
11
+ var DEFAULT_TEAM_INBOX = {
12
+ email: "contact@contractspec.io",
13
+ name: "ContractSpec Team"
14
+ };
15
+ var DEFAULT_REGION = "fr-par";
16
+ var cachedConfig = null;
17
+ var cachedClient = null;
18
+ var apiFactory = (client) => new Temv1alpha1.API(client);
19
+ var mapRegion = (value) => {
20
+ const normalized = value?.trim().toLowerCase();
21
+ if (normalized === "par" || normalized === "fr-par")
22
+ return "fr-par";
23
+ if (normalized === "ams" || normalized === "nl-ams")
24
+ return "nl-ams";
25
+ if (normalized === "waw" || normalized === "pl-waw")
26
+ return "pl-waw";
27
+ return DEFAULT_REGION;
28
+ };
29
+ var getEmailConfig = () => {
30
+ if (cachedConfig) {
31
+ return { ok: true, config: cachedConfig };
32
+ }
33
+ const accessKey = process.env.SCALEWAY_ACCESS_KEY || process.env.SCALEWAY_ACCESS_KEY_QUEUE;
34
+ const secretKey = process.env.SCALEWAY_SECRET_KEY || process.env.SCALEWAY_SECRET_KEY_QUEUE;
35
+ const projectId = process.env.SCALEWAY_PROJECT_ID;
36
+ if (!accessKey || !secretKey || !projectId) {
37
+ return {
38
+ ok: false,
39
+ errorMessage: "Email service is not configured. Please contact us directly at contact@contractspec.io."
40
+ };
41
+ }
42
+ const region = mapRegion(process.env.SCALEWAY_REGION);
43
+ cachedConfig = {
44
+ accessKey,
45
+ secretKey,
46
+ projectId,
47
+ region,
48
+ defaultZone: `${region}-1`,
49
+ from: {
50
+ email: process.env.SCALEWAY_EMAIL_FROM_EMAIL ?? DEFAULT_FROM.email,
51
+ name: process.env.SCALEWAY_EMAIL_FROM_NAME ?? DEFAULT_FROM.name
52
+ },
53
+ teamInbox: {
54
+ email: process.env.SCALEWAY_EMAIL_TEAM_EMAIL ?? DEFAULT_TEAM_INBOX.email,
55
+ name: process.env.SCALEWAY_EMAIL_TEAM_NAME ?? DEFAULT_TEAM_INBOX.name
56
+ }
57
+ };
58
+ return { ok: true, config: cachedConfig };
59
+ };
60
+ var getTemClient = (config) => {
61
+ if (cachedClient) {
62
+ return cachedClient;
63
+ }
64
+ const client = createClient({
65
+ accessKey: config.accessKey,
66
+ secretKey: config.secretKey,
67
+ defaultProjectId: config.projectId,
68
+ defaultRegion: config.region,
69
+ defaultZone: config.defaultZone
70
+ });
71
+ cachedClient = apiFactory(client);
72
+ return cachedClient;
73
+ };
74
+ var sendEmail = async (config, request) => {
75
+ try {
76
+ const client = getTemClient(config);
77
+ await client.createEmail({
78
+ region: config.region,
79
+ projectId: config.projectId,
80
+ from: config.from,
81
+ to: request.to,
82
+ subject: request.subject,
83
+ text: request.text,
84
+ html: request.html || request.text,
85
+ additionalHeaders: request.replyTo ? [{ key: "Reply-To", value: request.replyTo }] : undefined
86
+ });
87
+ return { success: true };
88
+ } catch (error) {
89
+ new Logger().error("scaleway_tem_email_send_failed", {
90
+ context: request.context ?? "email",
91
+ error: error instanceof Error ? error.message : error
92
+ });
93
+ return {
94
+ success: false,
95
+ error,
96
+ errorMessage: "Failed to send email via Scaleway."
97
+ };
98
+ }
99
+ };
100
+ var __internal = {
101
+ resetCaches() {
102
+ cachedClient = null;
103
+ cachedConfig = null;
104
+ apiFactory = (client) => new Temv1alpha1.API(client);
105
+ },
106
+ setApiFactory(factory) {
107
+ apiFactory = factory;
108
+ },
109
+ setClient(client) {
110
+ cachedClient = client;
111
+ }
112
+ };
113
+
114
+ // src/libs/email/utils.ts
115
+ var escapeHtml = (value) => value.replaceAll("&", "&amp;").replaceAll("<", "&lt;").replaceAll(">", "&gt;");
116
+ var formatMultilineHtml = (value) => escapeHtml(value).replaceAll(`
117
+ `, "<br />");
118
+
119
+ // src/libs/email/contact.ts
120
+ "use server";
121
+ var CONTACT_MISSING_CONFIG = "Email service is not configured. Please contact us directly at contact@contractspec.io.";
122
+ var CONTACT_SEND_ERROR = "Failed to send message. Please contact us directly at contact@contractspec.io.";
123
+ var submitContactForm = async (formData) => {
124
+ const name = (formData.get("name") ?? "").toString().trim();
125
+ const email = (formData.get("email") ?? "").toString().trim();
126
+ const message = (formData.get("message") ?? "").toString().trim();
127
+ if (!email) {
128
+ return {
129
+ success: false,
130
+ text: "Please fill in all required fields."
131
+ };
132
+ }
133
+ const configResult = getEmailConfig();
134
+ if (!configResult.ok || !configResult.config) {
135
+ return {
136
+ success: false,
137
+ text: configResult.errorMessage ?? CONTACT_MISSING_CONFIG
138
+ };
139
+ }
140
+ const senderName = name || email;
141
+ const emailContentText = `
142
+ New contact form submission from ${senderName}
143
+
144
+ Contact Information:
145
+ - Name: ${name || "Not provided"}
146
+ - Email: ${email}
147
+
148
+ Message:
149
+ ${message || "No message provided"}
150
+
151
+ ---
152
+ Submitted via ContractSpec contact form
153
+ `.trim();
154
+ const emailContentHtml = `
155
+ <div style="font-family: sans-serif; max-width: 640px; margin: 0 auto;">
156
+ <h1 style="color: #8b5cf6; margin-bottom: 12px;">New contact form submission</h1>
157
+ <p style="margin: 0 0 12px;">From ${escapeHtml(senderName)}</p>
158
+ <h2 style="color: #8b5cf6; margin: 16px 0 8px;">Contact Information</h2>
159
+ <ul style="padding-left: 16px; line-height: 1.6; margin: 0 0 16px;">
160
+ <li>Name: ${escapeHtml(name || "Not provided")}</li>
161
+ <li>Email: ${escapeHtml(email)}</li>
162
+ </ul>
163
+ <h2 style="color: #8b5cf6; margin: 16px 0 8px;">Message</h2>
164
+ <div style="border: 1px solid #e5e7eb; border-radius: 8px; padding: 12px; background: #f9fafb; white-space: pre-wrap; line-height: 1.6;">
165
+ ${message ? formatMultilineHtml(message) : "No message provided"}
166
+ </div>
167
+ <p style="color: #6b7280; font-size: 12px; margin-top: 20px;">Submitted via ContractSpec contact form</p>
168
+ </div>
169
+ `;
170
+ const sendResult = await sendEmail(configResult.config, {
171
+ to: [configResult.config.teamInbox],
172
+ subject: `New Contact Form Message from ${senderName}`,
173
+ text: emailContentText,
174
+ html: emailContentHtml,
175
+ replyTo: email,
176
+ context: "contact-form"
177
+ });
178
+ if (!sendResult.success) {
179
+ return { success: false, text: CONTACT_SEND_ERROR };
180
+ }
181
+ return { success: true, text: "Message sent successfully!" };
182
+ };
183
+
184
+ // src/libs/email/waitlist.ts
185
+ "use server";
186
+ var WAITLIST_MISSING_CONFIG = "Waitlist service is not configured. Please try again later.";
187
+ var WAITLIST_SEND_ERROR = "Failed to join waitlist. Please try again later or contact us directly.";
188
+ var joinWaitlist = async (formData) => {
189
+ const email = (formData.get("email") ?? "").toString().trim();
190
+ if (!email || !email.includes("@")) {
191
+ return {
192
+ success: false,
193
+ text: "Please enter a valid email address."
194
+ };
195
+ }
196
+ const configResult = getEmailConfig();
197
+ if (!configResult.ok || !configResult.config) {
198
+ return {
199
+ success: false,
200
+ text: configResult.errorMessage ?? WAITLIST_MISSING_CONFIG
201
+ };
202
+ }
203
+ const waitlistText = `
204
+ You're on the waitlist!
205
+
206
+ Thanks for joining the ContractSpec waitlist. You're now in line for early access to:
207
+
208
+ • Stabilize your AI-generated code with ContractSpec
209
+ • Multi-surface consistency (API, DB, UI, events)
210
+ • Safe regeneration without breaking changes
211
+ • AI governance and contract enforcement
212
+
213
+ We'll notify you as soon as early access is available. In the meantime, you can:
214
+
215
+ • Check out our docs: https://contractspec.io/docs
216
+ • Follow our progress on GitHub
217
+ • Book a demo call to see ContractSpec in action
218
+
219
+ We're excited to have you on board!
220
+
221
+ ---
222
+ ContractSpec Team
223
+ https://contractspec.io
224
+
225
+ To remove yourself from the waitlist, reply to this email with "remove"
226
+ `.trim();
227
+ const waitlistHtml = `
228
+ <div style="font-family: sans-serif; max-width: 640px; margin: 0 auto;">
229
+ <h1 style="color: #8b5cf6;">You're on the waitlist!</h1>
230
+ <p>Thanks for joining the ContractSpec waitlist. You're now in line for early access to:</p>
231
+ <ul style="line-height: 1.8;">
232
+ <li>Stabilize your AI-generated code with ContractSpec</li>
233
+ <li>Multi-surface consistency (API, DB, UI, events)</li>
234
+ <li>Safe regeneration without breaking changes</li>
235
+ <li>AI governance and contract enforcement</li>
236
+ </ul>
237
+ <p>We'll notify you as soon as early access is available. In the meantime, you can:</p>
238
+ <ul style="line-height: 1.8;">
239
+ <li>Check out our <a href="https://contractspec.io/docs" style="color: #8b5cf6;">docs</a></li>
240
+ <li>Follow our progress on GitHub</li>
241
+ <li>Book a demo call to see ContractSpec in action</li>
242
+ </ul>
243
+ <p>We're excited to have you on board!</p>
244
+ <hr style="margin: 30px 0; border: none; border-top: 1px solid #e5e7eb;" />
245
+ <p style="color: #6b7280; font-size: 14px;">
246
+ ContractSpec Team<br />
247
+ <a href="https://contractspec.io" style="color: #8b5cf6;">contractspec.io</a>
248
+ </p>
249
+ <p style="color: #9ca3af; font-size: 12px;">
250
+ To remove yourself from the waitlist, reply to this email with "remove"
251
+ </p>
252
+ </div>
253
+ `;
254
+ const userSend = await sendEmail(configResult.config, {
255
+ to: [{ email }],
256
+ subject: "You're on the ContractSpec waitlist!",
257
+ text: waitlistText,
258
+ html: waitlistHtml,
259
+ context: "waitlist-welcome"
260
+ });
261
+ if (!userSend.success) {
262
+ return { success: false, text: WAITLIST_SEND_ERROR };
263
+ }
264
+ const teamNotificationText = `New waitlist signup from: ${email}`;
265
+ const teamNotificationHtml = `
266
+ <div style="font-family: sans-serif; max-width: 640px; margin: 0 auto;">
267
+ <p style="margin: 0 0 8px;">New waitlist signup</p>
268
+ <p style="margin: 0;"><strong>Email:</strong> ${formatMultilineHtml(email)}</p>
269
+ </div>
270
+ `;
271
+ const teamSend = await sendEmail(configResult.config, {
272
+ to: [configResult.config.teamInbox],
273
+ subject: `New Waitlist Signup: ${email}`,
274
+ text: teamNotificationText,
275
+ html: teamNotificationHtml,
276
+ context: "waitlist-team-notification"
277
+ });
278
+ if (!teamSend.success) {
279
+ return { success: false, text: WAITLIST_SEND_ERROR };
280
+ }
281
+ return { success: true, text: "Successfully joined waitlist!" };
282
+ };
283
+
284
+ // src/libs/email/waitlist-application.ts
285
+ "use server";
286
+ var APPLICATION_MISSING_CONFIG = "Waitlist application service is not configured. Please try again later.";
287
+ var APPLICATION_SEND_ERROR = "Failed to submit application. Please try again later or contact us directly.";
288
+ var submitWaitlistApplication = async (formData) => {
289
+ const email = (formData.get("email") ?? "").toString().trim();
290
+ const name = (formData.get("name") ?? "").toString().trim();
291
+ const company = (formData.get("company") ?? "").toString().trim();
292
+ const role = (formData.get("role") ?? "").toString().trim();
293
+ const useCase = (formData.get("useCase") ?? "").toString().trim();
294
+ const currentStack = (formData.get("currentStack") ?? "").toString().trim();
295
+ const whatBuilding = (formData.get("whatBuilding") ?? "").toString().trim();
296
+ const whatSolving = (formData.get("whatSolving") ?? "").toString().trim();
297
+ const teamSize = (formData.get("teamSize") ?? "").toString().trim();
298
+ const timeline = (formData.get("timeline") ?? "").toString().trim();
299
+ const openToSessions = formData.get("openToSessions") === "on";
300
+ const okayWithCaseStudies = formData.get("okayWithCaseStudies") === "on";
301
+ if (!email || !email.includes("@")) {
302
+ return {
303
+ success: false,
304
+ text: "Please enter a valid email address."
305
+ };
306
+ }
307
+ if (!name || !whatBuilding || !whatSolving) {
308
+ return {
309
+ success: false,
310
+ text: "Please fill in all required fields."
311
+ };
312
+ }
313
+ const configResult = getEmailConfig();
314
+ if (!configResult.ok || !configResult.config) {
315
+ return {
316
+ success: false,
317
+ text: configResult.errorMessage ?? APPLICATION_MISSING_CONFIG
318
+ };
319
+ }
320
+ const applicantText = `
321
+ You're on the list.
322
+
323
+ Thanks for applying to the ContractSpec design partner program. We're slowly onboarding design partners in waves. If your use case is a good fit, we'll reach out personally.
324
+
325
+ What happens next:
326
+ • We review applications weekly
327
+ • If selected, we'll reach out via email to schedule an intro call
328
+ • During early access, you'll get hands-on support and influence over the roadmap
329
+
330
+ In the meantime:
331
+ • Check out our docs: https://contractspec.io/docs
332
+ • Book a demo call: https://contractspec.io/contact
333
+
334
+ We're excited about the possibility of working together!
335
+
336
+ ---
337
+ ContractSpec Team
338
+ https://contractspec.io
339
+ `.trim();
340
+ const applicantHtml = `
341
+ <div style="font-family: sans-serif; max-width: 640px; margin: 0 auto;">
342
+ <h1 style="color: #8b5cf6;">You're on the list.</h1>
343
+ <p>Thanks for applying to the ContractSpec design partner program. We're slowly onboarding design partners in waves. If your use case is a good fit, we'll reach out personally.</p>
344
+ <h2 style="color: #8b5cf6; margin-top: 24px;">What happens next:</h2>
345
+ <ul style="line-height: 1.8;">
346
+ <li>We review applications weekly</li>
347
+ <li>If selected, we'll reach out via email to schedule an intro call</li>
348
+ <li>During early access, you'll get hands-on support and influence over the roadmap</li>
349
+ </ul>
350
+ <h2 style="color: #8b5cf6; margin-top: 24px;">In the meantime:</h2>
351
+ <ul style="line-height: 1.8;">
352
+ <li>Check out our <a href="https://contractspec.io/docs" style="color: #8b5cf6;">docs</a></li>
353
+ <li>Book a demo call: <a href="https://contractspec.io/contact" style="color: #8b5cf6;">contractspec.io/contact</a></li>
354
+ </ul>
355
+ <p>We're excited about the possibility of working together!</p>
356
+ <hr style="margin: 30px 0; border: none; border-top: 1px solid #e5e7eb;" />
357
+ <p style="color: #6b7280; font-size: 14px;">
358
+ ContractSpec Team<br />
359
+ <a href="https://contractspec.io" style="color: #8b5cf6;">contractspec.io</a>
360
+ </p>
361
+ </div>
362
+ `;
363
+ const applicantSend = await sendEmail(configResult.config, {
364
+ to: [{ email }],
365
+ subject: "You're on the ContractSpec design partner waitlist!",
366
+ text: applicantText,
367
+ html: applicantHtml,
368
+ context: "waitlist-application-welcome"
369
+ });
370
+ if (!applicantSend.success) {
371
+ return { success: false, text: APPLICATION_SEND_ERROR };
372
+ }
373
+ const preferencesText = `
374
+ Open to 1:1 product/design sessions: ${openToSessions ? "Yes" : "No"}
375
+ Okay with anonymized case studies: ${okayWithCaseStudies ? "Yes" : "No"}
376
+ `.trim();
377
+ const teamEmailText = `
378
+ New Design Partner Waitlist Application
379
+
380
+ Contact Information:
381
+ - Name: ${name}
382
+ - Email: ${email}
383
+ ${company ? `- Company/Project: ${company}` : ""}
384
+ ${role ? `- Role: ${role}` : ""}
385
+
386
+ Application Details:
387
+ - What are you building with AI today?
388
+ ${whatBuilding}
389
+
390
+ - What do you hope ContractSpec will solve for you?
391
+ ${whatSolving}
392
+
393
+ - Primary use case: ${useCase || "Not specified"}
394
+ - Current stack: ${currentStack || "Not specified"}
395
+ - Team Size: ${teamSize || "Not specified"}
396
+ - Timeline: ${timeline || "Not specified"}
397
+
398
+ Preferences:
399
+ - Open to 1:1 product/design sessions: ${openToSessions ? "Yes" : "No"}
400
+ - Okay with anonymized case studies: ${okayWithCaseStudies ? "Yes" : "No"}
401
+
402
+ ---
403
+ Submitted via ContractSpec waitlist application form
404
+ `.trim();
405
+ const teamEmailHtml = `
406
+ <div style="font-family: sans-serif; max-width: 720px; margin: 0 auto;">
407
+ <h1 style="color: #8b5cf6;">New Design Partner Waitlist Application</h1>
408
+ <h2 style="color: #8b5cf6; margin: 16px 0 8px;">Contact Information</h2>
409
+ <ul style="padding-left: 16px; line-height: 1.6; margin: 0 0 16px;">
410
+ <li>Name: ${escapeHtml(name)}</li>
411
+ <li>Email: ${escapeHtml(email)}</li>
412
+ ${company ? `<li>Company/Project: ${escapeHtml(company)}</li>` : ""}
413
+ ${role ? `<li>Role: ${escapeHtml(role)}</li>` : ""}
414
+ </ul>
415
+ <h2 style="color: #8b5cf6; margin: 16px 0 8px;">Application Details</h2>
416
+ <p style="margin: 0 0 8px; font-weight: 600;">What are you building with AI today?</p>
417
+ <div style="border: 1px solid #e5e7eb; border-radius: 8px; padding: 12px; background: #f9fafb; white-space: pre-wrap; line-height: 1.6;">
418
+ ${formatMultilineHtml(whatBuilding)}
419
+ </div>
420
+ <p style="margin: 16px 0 8px; font-weight: 600;">What do you hope ContractSpec will solve for you?</p>
421
+ <div style="border: 1px solid #e5e7eb; border-radius: 8px; padding: 12px; background: #f9fafb; white-space: pre-wrap; line-height: 1.6;">
422
+ ${formatMultilineHtml(whatSolving)}
423
+ </div>
424
+ <ul style="padding-left: 16px; line-height: 1.6; margin: 16px 0;">
425
+ <li>Primary use case: ${escapeHtml(useCase || "Not specified")}</li>
426
+ <li>Current stack: ${escapeHtml(currentStack || "Not specified")}</li>
427
+ <li>Team Size: ${escapeHtml(teamSize || "Not specified")}</li>
428
+ <li>Timeline: ${escapeHtml(timeline || "Not specified")}</li>
429
+ </ul>
430
+ <h2 style="color: #8b5cf6; margin: 16px 0 8px;">Preferences</h2>
431
+ <div style="border: 1px solid #e5e7eb; border-radius: 8px; padding: 12px; background: #f9fafb; line-height: 1.6;">
432
+ ${formatMultilineHtml(preferencesText)}
433
+ </div>
434
+ <p style="color: #6b7280; font-size: 12px; margin-top: 20px;">Submitted via ContractSpec waitlist application form</p>
435
+ </div>
436
+ `;
437
+ const teamSend = await sendEmail(configResult.config, {
438
+ to: [configResult.config.teamInbox],
439
+ subject: `New Design Partner Application: ${name} (${email})`,
440
+ text: teamEmailText,
441
+ html: teamEmailHtml,
442
+ replyTo: email,
443
+ context: "waitlist-application-team-notification"
444
+ });
445
+ if (!teamSend.success) {
446
+ return { success: false, text: APPLICATION_SEND_ERROR };
447
+ }
448
+ return {
449
+ success: true,
450
+ text: "Application submitted successfully!"
451
+ };
452
+ };
453
+
454
+ // src/components/marketing/waitlist-section.tsx
455
+ import { useEffect, useState } from "react";
456
+ import { useForm } from "react-hook-form";
457
+ import { zodResolver } from "@hookform/resolvers/zod";
458
+ import z from "zod";
459
+ import { AlertCircle, CheckCircle } from "lucide-react";
460
+ import { Button } from "@contractspec/lib.design-system";
461
+ import { Textarea } from "@contractspec/lib.design-system";
462
+ import { Label } from "@contractspec/lib.ui-kit-web/ui/label";
463
+ import {
464
+ Select,
465
+ SelectContent,
466
+ SelectItem,
467
+ SelectTrigger,
468
+ SelectValue
469
+ } from "@contractspec/lib.ui-kit-web/ui/select";
470
+ import { Checkbox } from "@contractspec/lib.ui-kit-web/ui/checkbox";
471
+ import { Switch } from "@contractspec/lib.ui-kit-web/ui/switch";
472
+ import { Input } from "@contractspec/lib.design-system";
473
+ import { jsxDEV, Fragment } from "react/jsx-dev-runtime";
474
+ "use client";
475
+ var simpleWaitlistSchema = z.object({
476
+ email: z.email("Please enter a valid email address")
477
+ });
478
+ var designPartnerSchema = z.object({
479
+ name: z.string().min(1, "Name is required"),
480
+ email: z.email("Please enter a valid email address"),
481
+ company: z.string().optional(),
482
+ role: z.string().optional(),
483
+ useCase: z.string().optional(),
484
+ currentStack: z.string().optional(),
485
+ whatBuilding: z.string().min(1, "Please tell us what you are building"),
486
+ whatSolving: z.string().min(1, "Please tell us what ContractSpec will solve for you"),
487
+ teamSize: z.string().optional(),
488
+ timeline: z.string().optional(),
489
+ openToSessions: z.boolean().default(false),
490
+ okayWithCaseStudies: z.boolean().default(false)
491
+ });
492
+ function WaitlistSection({
493
+ variant = "default",
494
+ context = "pricing"
495
+ }) {
496
+ const [isDesignPartner, setIsDesignPartner] = useState(false);
497
+ const [submitResult, setSubmitResult] = useState(null);
498
+ const [isPending, setIsPending] = useState(false);
499
+ const simpleForm = useForm({
500
+ resolver: zodResolver(simpleWaitlistSchema),
501
+ defaultValues: {
502
+ email: ""
503
+ }
504
+ });
505
+ const designPartnerForm = useForm({
506
+ resolver: zodResolver(designPartnerSchema),
507
+ defaultValues: {
508
+ name: "",
509
+ email: "",
510
+ company: "",
511
+ role: "",
512
+ useCase: "",
513
+ currentStack: "",
514
+ whatBuilding: "",
515
+ whatSolving: "",
516
+ teamSize: "",
517
+ timeline: "",
518
+ openToSessions: false,
519
+ okayWithCaseStudies: false
520
+ }
521
+ });
522
+ const simpleEmail = simpleForm.watch("email");
523
+ const designPartnerEmail = designPartnerForm.watch("email");
524
+ useEffect(() => {
525
+ const currentDesignPartnerEmail = designPartnerForm.getValues("email");
526
+ if (simpleEmail && simpleEmail !== currentDesignPartnerEmail) {
527
+ designPartnerForm.setValue("email", simpleEmail, { shouldDirty: false });
528
+ }
529
+ }, [simpleEmail, designPartnerForm]);
530
+ useEffect(() => {
531
+ const currentSimpleEmail = simpleForm.getValues("email");
532
+ if (designPartnerEmail && designPartnerEmail !== currentSimpleEmail) {
533
+ simpleForm.setValue("email", designPartnerEmail, { shouldDirty: false });
534
+ }
535
+ }, [designPartnerEmail, simpleForm]);
536
+ const handleSimpleSubmit = async (data) => {
537
+ setIsPending(true);
538
+ setSubmitResult(null);
539
+ try {
540
+ const formData = new FormData;
541
+ formData.set("email", data.email);
542
+ const result = await joinWaitlist(formData);
543
+ if (result.success) {
544
+ setSubmitResult({
545
+ success: true,
546
+ text: "Thanks for joining the waitlist! Check your inbox for a confirmation."
547
+ });
548
+ simpleForm.reset();
549
+ } else {
550
+ setSubmitResult({
551
+ success: false,
552
+ text: result.text || "Failed to join waitlist. Please try again."
553
+ });
554
+ }
555
+ } catch (_error) {
556
+ setSubmitResult({
557
+ success: false,
558
+ text: "Failed to join waitlist. Please try again."
559
+ });
560
+ } finally {
561
+ setIsPending(false);
562
+ }
563
+ };
564
+ const handleDesignPartnerSubmit = async (data) => {
565
+ setIsPending(true);
566
+ setSubmitResult(null);
567
+ try {
568
+ const formData = new FormData;
569
+ formData.set("email", data.email);
570
+ formData.set("name", data.name);
571
+ if (data.company)
572
+ formData.set("company", data.company);
573
+ if (data.role)
574
+ formData.set("role", data.role);
575
+ if (data.useCase)
576
+ formData.set("useCase", data.useCase);
577
+ if (data.currentStack)
578
+ formData.set("currentStack", data.currentStack);
579
+ formData.set("whatBuilding", data.whatBuilding);
580
+ formData.set("whatSolving", data.whatSolving);
581
+ if (data.teamSize)
582
+ formData.set("teamSize", data.teamSize);
583
+ if (data.timeline)
584
+ formData.set("timeline", data.timeline);
585
+ if (data.openToSessions)
586
+ formData.set("openToSessions", "on");
587
+ if (data.okayWithCaseStudies)
588
+ formData.set("okayWithCaseStudies", "on");
589
+ const result = await submitWaitlistApplication(formData);
590
+ if (result.success) {
591
+ setSubmitResult({
592
+ success: true,
593
+ text: "You're on the list. Thanks for applying. We're slowly onboarding design partners in waves. If your use case is a good fit, we'll reach out personally."
594
+ });
595
+ designPartnerForm.reset();
596
+ } else {
597
+ setSubmitResult({
598
+ success: false,
599
+ text: result.text || "Failed to submit application. Please try again."
600
+ });
601
+ }
602
+ } catch (_error) {
603
+ setSubmitResult({
604
+ success: false,
605
+ text: "Failed to submit application. Please try again."
606
+ });
607
+ } finally {
608
+ setIsPending(false);
609
+ }
610
+ };
611
+ const onSubmit = isDesignPartner ? designPartnerForm.handleSubmit(handleDesignPartnerSubmit) : simpleForm.handleSubmit(handleSimpleSubmit);
612
+ const isCompact = variant === "compact";
613
+ return /* @__PURE__ */ jsxDEV("div", {
614
+ id: "waitlist",
615
+ className: isCompact ? "space-y-4" : "card-subtle space-y-6 p-8",
616
+ children: [
617
+ !isCompact && /* @__PURE__ */ jsxDEV("div", {
618
+ className: "space-y-4",
619
+ children: [
620
+ /* @__PURE__ */ jsxDEV("div", {
621
+ className: "inline-flex items-center gap-2 rounded-full border border-violet-500/20 bg-violet-500/10 px-3 py-1",
622
+ children: /* @__PURE__ */ jsxDEV("span", {
623
+ className: "text-sm font-medium text-violet-300",
624
+ children: isDesignPartner ? "Design Partner Waitlist" : "Join the Waitlist"
625
+ }, undefined, false, undefined, this)
626
+ }, undefined, false, undefined, this),
627
+ /* @__PURE__ */ jsxDEV("h2", {
628
+ className: "text-2xl font-bold",
629
+ children: isDesignPartner ? "Apply for early access to ContractSpec" : "Get early access to ContractSpec"
630
+ }, undefined, false, undefined, this),
631
+ /* @__PURE__ */ jsxDEV("p", {
632
+ className: "text-muted-foreground text-sm",
633
+ children: isDesignPartner ? "Tell us what you're building. We'll prioritize teams where ContractSpec can have a big impact, and where we can learn the most." : "Join the waitlist to be notified when ContractSpec becomes available."
634
+ }, undefined, false, undefined, this)
635
+ ]
636
+ }, undefined, true, undefined, this),
637
+ !isCompact && /* @__PURE__ */ jsxDEV("div", {
638
+ className: "border-border bg-muted/20 flex items-center justify-between gap-4 rounded-lg border p-4",
639
+ children: [
640
+ /* @__PURE__ */ jsxDEV("div", {
641
+ className: "space-y-1",
642
+ children: [
643
+ /* @__PURE__ */ jsxDEV(Label, {
644
+ htmlFor: "design-partner-toggle",
645
+ className: "text-sm font-medium",
646
+ children: "Apply as a design partner"
647
+ }, undefined, false, undefined, this),
648
+ /* @__PURE__ */ jsxDEV("p", {
649
+ className: "text-muted-foreground text-xs",
650
+ children: isDesignPartner ? "Get hands-on support, influence the roadmap, and founding discount" : "Get priority access, 1:1 onboarding, and help shape ContractSpec"
651
+ }, undefined, false, undefined, this)
652
+ ]
653
+ }, undefined, true, undefined, this),
654
+ /* @__PURE__ */ jsxDEV(Switch, {
655
+ id: "design-partner-toggle",
656
+ checked: isDesignPartner,
657
+ onCheckedChange: setIsDesignPartner,
658
+ disabled: isPending || submitResult?.success
659
+ }, undefined, false, undefined, this)
660
+ ]
661
+ }, undefined, true, undefined, this),
662
+ !isCompact && isDesignPartner && /* @__PURE__ */ jsxDEV("div", {
663
+ className: "space-y-2",
664
+ children: [
665
+ /* @__PURE__ */ jsxDEV("p", {
666
+ className: "text-sm font-medium",
667
+ children: "Benefits:"
668
+ }, undefined, false, undefined, this),
669
+ /* @__PURE__ */ jsxDEV("ul", {
670
+ className: "text-muted-foreground space-y-1 text-sm",
671
+ children: [
672
+ /* @__PURE__ */ jsxDEV("li", {
673
+ children: "• Early access to ContractSpec Studio"
674
+ }, undefined, false, undefined, this),
675
+ /* @__PURE__ */ jsxDEV("li", {
676
+ children: "• 1:1 onboarding and architecture sessions"
677
+ }, undefined, false, undefined, this),
678
+ /* @__PURE__ */ jsxDEV("li", {
679
+ children: "• Priority support via direct channels"
680
+ }, undefined, false, undefined, this),
681
+ /* @__PURE__ */ jsxDEV("li", {
682
+ children: "• Influence over roadmap and features"
683
+ }, undefined, false, undefined, this),
684
+ /* @__PURE__ */ jsxDEV("li", {
685
+ children: "• Founding discount when paid plans launch"
686
+ }, undefined, false, undefined, this)
687
+ ]
688
+ }, undefined, true, undefined, this)
689
+ ]
690
+ }, undefined, true, undefined, this),
691
+ /* @__PURE__ */ jsxDEV("form", {
692
+ onSubmit,
693
+ className: "space-y-4",
694
+ children: [
695
+ isDesignPartner ? /* @__PURE__ */ jsxDEV(Fragment, {
696
+ children: [
697
+ /* @__PURE__ */ jsxDEV("div", {
698
+ className: "grid gap-4 md:grid-cols-2",
699
+ children: [
700
+ /* @__PURE__ */ jsxDEV("div", {
701
+ className: "space-y-2",
702
+ children: [
703
+ /* @__PURE__ */ jsxDEV(Label, {
704
+ htmlFor: "waitlist-name",
705
+ className: "text-sm font-medium",
706
+ children: [
707
+ "Name ",
708
+ /* @__PURE__ */ jsxDEV("span", {
709
+ className: "text-red-400",
710
+ children: "*"
711
+ }, undefined, false, undefined, this)
712
+ ]
713
+ }, undefined, true, undefined, this),
714
+ /* @__PURE__ */ jsxDEV(Input, {
715
+ id: "waitlist-name",
716
+ ...designPartnerForm.register("name"),
717
+ type: "text",
718
+ placeholder: "Your name",
719
+ disabled: isPending || submitResult?.success
720
+ }, undefined, false, undefined, this),
721
+ designPartnerForm.formState.errors.name && /* @__PURE__ */ jsxDEV("p", {
722
+ className: "text-xs text-red-400",
723
+ children: designPartnerForm.formState.errors.name.message
724
+ }, undefined, false, undefined, this)
725
+ ]
726
+ }, undefined, true, undefined, this),
727
+ /* @__PURE__ */ jsxDEV("div", {
728
+ className: "space-y-2",
729
+ children: [
730
+ /* @__PURE__ */ jsxDEV(Label, {
731
+ htmlFor: "waitlist-email",
732
+ className: "text-sm font-medium",
733
+ children: [
734
+ "Email ",
735
+ /* @__PURE__ */ jsxDEV("span", {
736
+ className: "text-red-400",
737
+ children: "*"
738
+ }, undefined, false, undefined, this)
739
+ ]
740
+ }, undefined, true, undefined, this),
741
+ /* @__PURE__ */ jsxDEV(Input, {
742
+ id: "waitlist-email",
743
+ ...designPartnerForm.register("email"),
744
+ type: "email",
745
+ placeholder: "your@email.com",
746
+ disabled: isPending || submitResult?.success
747
+ }, undefined, false, undefined, this),
748
+ designPartnerForm.formState.errors.email && /* @__PURE__ */ jsxDEV("p", {
749
+ className: "text-xs text-red-400",
750
+ children: designPartnerForm.formState.errors.email.message
751
+ }, undefined, false, undefined, this)
752
+ ]
753
+ }, undefined, true, undefined, this)
754
+ ]
755
+ }, undefined, true, undefined, this),
756
+ /* @__PURE__ */ jsxDEV("div", {
757
+ className: "grid gap-4 md:grid-cols-2",
758
+ children: [
759
+ /* @__PURE__ */ jsxDEV("div", {
760
+ className: "space-y-2",
761
+ children: [
762
+ /* @__PURE__ */ jsxDEV(Label, {
763
+ htmlFor: "waitlist-company",
764
+ className: "text-sm font-medium",
765
+ children: "Company / Project Name"
766
+ }, undefined, false, undefined, this),
767
+ /* @__PURE__ */ jsxDEV(Input, {
768
+ id: "waitlist-company",
769
+ ...designPartnerForm.register("company"),
770
+ type: "text",
771
+ placeholder: "Your company or project",
772
+ disabled: isPending || submitResult?.success
773
+ }, undefined, false, undefined, this)
774
+ ]
775
+ }, undefined, true, undefined, this),
776
+ /* @__PURE__ */ jsxDEV("div", {
777
+ className: "space-y-2",
778
+ children: [
779
+ /* @__PURE__ */ jsxDEV(Label, {
780
+ htmlFor: "waitlist-role",
781
+ className: "text-sm font-medium",
782
+ children: "Role"
783
+ }, undefined, false, undefined, this),
784
+ /* @__PURE__ */ jsxDEV(Select, {
785
+ value: designPartnerForm.watch("role") || "",
786
+ onValueChange: (value) => designPartnerForm.setValue("role", value),
787
+ disabled: isPending || submitResult?.success,
788
+ children: [
789
+ /* @__PURE__ */ jsxDEV(SelectTrigger, {
790
+ id: "waitlist-role",
791
+ className: "w-full",
792
+ children: /* @__PURE__ */ jsxDEV(SelectValue, {
793
+ placeholder: "Select your role"
794
+ }, undefined, false, undefined, this)
795
+ }, undefined, false, undefined, this),
796
+ /* @__PURE__ */ jsxDEV(SelectContent, {
797
+ children: [
798
+ /* @__PURE__ */ jsxDEV(SelectItem, {
799
+ value: "founder",
800
+ children: "Founder"
801
+ }, undefined, false, undefined, this),
802
+ /* @__PURE__ */ jsxDEV(SelectItem, {
803
+ value: "cto",
804
+ children: "CTO"
805
+ }, undefined, false, undefined, this),
806
+ /* @__PURE__ */ jsxDEV(SelectItem, {
807
+ value: "lead-engineer",
808
+ children: "Lead Engineer"
809
+ }, undefined, false, undefined, this),
810
+ /* @__PURE__ */ jsxDEV(SelectItem, {
811
+ value: "engineer",
812
+ children: "Engineer"
813
+ }, undefined, false, undefined, this),
814
+ /* @__PURE__ */ jsxDEV(SelectItem, {
815
+ value: "product-manager",
816
+ children: "Product Manager"
817
+ }, undefined, false, undefined, this),
818
+ /* @__PURE__ */ jsxDEV(SelectItem, {
819
+ value: "other",
820
+ children: "Other"
821
+ }, undefined, false, undefined, this)
822
+ ]
823
+ }, undefined, true, undefined, this)
824
+ ]
825
+ }, undefined, true, undefined, this)
826
+ ]
827
+ }, undefined, true, undefined, this)
828
+ ]
829
+ }, undefined, true, undefined, this),
830
+ /* @__PURE__ */ jsxDEV("div", {
831
+ className: "grid gap-4 md:grid-cols-2",
832
+ children: [
833
+ /* @__PURE__ */ jsxDEV("div", {
834
+ className: "space-y-2",
835
+ children: [
836
+ /* @__PURE__ */ jsxDEV(Label, {
837
+ htmlFor: "waitlist-use-case",
838
+ className: "text-sm font-medium",
839
+ children: "Primary use case"
840
+ }, undefined, false, undefined, this),
841
+ /* @__PURE__ */ jsxDEV(Select, {
842
+ value: designPartnerForm.watch("useCase") || "",
843
+ onValueChange: (value) => designPartnerForm.setValue("useCase", value),
844
+ disabled: isPending || submitResult?.success,
845
+ children: [
846
+ /* @__PURE__ */ jsxDEV(SelectTrigger, {
847
+ id: "waitlist-use-case",
848
+ className: "w-full",
849
+ children: /* @__PURE__ */ jsxDEV(SelectValue, {
850
+ placeholder: "Select a use case"
851
+ }, undefined, false, undefined, this)
852
+ }, undefined, false, undefined, this),
853
+ /* @__PURE__ */ jsxDEV(SelectContent, {
854
+ children: [
855
+ /* @__PURE__ */ jsxDEV(SelectItem, {
856
+ value: "api-platform",
857
+ children: "API platform"
858
+ }, undefined, false, undefined, this),
859
+ /* @__PURE__ */ jsxDEV(SelectItem, {
860
+ value: "ai-ops",
861
+ children: "AI operations"
862
+ }, undefined, false, undefined, this),
863
+ /* @__PURE__ */ jsxDEV(SelectItem, {
864
+ value: "integration-hub",
865
+ children: "Integration hub"
866
+ }, undefined, false, undefined, this),
867
+ /* @__PURE__ */ jsxDEV(SelectItem, {
868
+ value: "internal-tools",
869
+ children: "Internal tools"
870
+ }, undefined, false, undefined, this),
871
+ /* @__PURE__ */ jsxDEV(SelectItem, {
872
+ value: "data-pipelines",
873
+ children: "Data pipelines"
874
+ }, undefined, false, undefined, this),
875
+ /* @__PURE__ */ jsxDEV(SelectItem, {
876
+ value: "other",
877
+ children: "Other"
878
+ }, undefined, false, undefined, this)
879
+ ]
880
+ }, undefined, true, undefined, this)
881
+ ]
882
+ }, undefined, true, undefined, this)
883
+ ]
884
+ }, undefined, true, undefined, this),
885
+ /* @__PURE__ */ jsxDEV("div", {
886
+ className: "space-y-2",
887
+ children: [
888
+ /* @__PURE__ */ jsxDEV(Label, {
889
+ htmlFor: "waitlist-current-stack",
890
+ className: "text-sm font-medium",
891
+ children: "Current stack"
892
+ }, undefined, false, undefined, this),
893
+ /* @__PURE__ */ jsxDEV(Input, {
894
+ id: "waitlist-current-stack",
895
+ ...designPartnerForm.register("currentStack"),
896
+ type: "text",
897
+ placeholder: "e.g. Next.js, Postgres, OpenAPI",
898
+ disabled: isPending || submitResult?.success
899
+ }, undefined, false, undefined, this)
900
+ ]
901
+ }, undefined, true, undefined, this)
902
+ ]
903
+ }, undefined, true, undefined, this),
904
+ /* @__PURE__ */ jsxDEV("div", {
905
+ className: "space-y-2",
906
+ children: [
907
+ /* @__PURE__ */ jsxDEV(Label, {
908
+ htmlFor: "waitlist-what-building",
909
+ className: "text-sm font-medium",
910
+ children: [
911
+ "What are you building with AI today?",
912
+ " ",
913
+ /* @__PURE__ */ jsxDEV("span", {
914
+ className: "text-red-400",
915
+ children: "*"
916
+ }, undefined, false, undefined, this)
917
+ ]
918
+ }, undefined, true, undefined, this),
919
+ /* @__PURE__ */ jsxDEV(Textarea, {
920
+ id: "waitlist-what-building",
921
+ ...designPartnerForm.register("whatBuilding"),
922
+ placeholder: "Tell us about your project...",
923
+ disabled: isPending || submitResult?.success,
924
+ rows: 4
925
+ }, undefined, false, undefined, this),
926
+ designPartnerForm.formState.errors.whatBuilding && /* @__PURE__ */ jsxDEV("p", {
927
+ className: "text-xs text-red-400",
928
+ children: designPartnerForm.formState.errors.whatBuilding.message
929
+ }, undefined, false, undefined, this)
930
+ ]
931
+ }, undefined, true, undefined, this),
932
+ /* @__PURE__ */ jsxDEV("div", {
933
+ className: "space-y-2",
934
+ children: [
935
+ /* @__PURE__ */ jsxDEV(Label, {
936
+ htmlFor: "waitlist-what-solving",
937
+ className: "text-sm font-medium",
938
+ children: [
939
+ "What do you hope ContractSpec will solve for you?",
940
+ " ",
941
+ /* @__PURE__ */ jsxDEV("span", {
942
+ className: "text-red-400",
943
+ children: "*"
944
+ }, undefined, false, undefined, this)
945
+ ]
946
+ }, undefined, true, undefined, this),
947
+ /* @__PURE__ */ jsxDEV(Textarea, {
948
+ id: "waitlist-what-solving",
949
+ ...designPartnerForm.register("whatSolving"),
950
+ placeholder: "What problems are you trying to solve?",
951
+ disabled: isPending || submitResult?.success,
952
+ rows: 4
953
+ }, undefined, false, undefined, this),
954
+ designPartnerForm.formState.errors.whatSolving && /* @__PURE__ */ jsxDEV("p", {
955
+ className: "text-xs text-red-400",
956
+ children: designPartnerForm.formState.errors.whatSolving.message
957
+ }, undefined, false, undefined, this)
958
+ ]
959
+ }, undefined, true, undefined, this),
960
+ /* @__PURE__ */ jsxDEV("div", {
961
+ className: "grid gap-4 md:grid-cols-2",
962
+ children: [
963
+ /* @__PURE__ */ jsxDEV("div", {
964
+ className: "space-y-2",
965
+ children: [
966
+ /* @__PURE__ */ jsxDEV(Label, {
967
+ htmlFor: "waitlist-team-size",
968
+ className: "text-sm font-medium",
969
+ children: "Team Size"
970
+ }, undefined, false, undefined, this),
971
+ /* @__PURE__ */ jsxDEV(Select, {
972
+ value: designPartnerForm.watch("teamSize") || "",
973
+ onValueChange: (value) => designPartnerForm.setValue("teamSize", value),
974
+ disabled: isPending || submitResult?.success,
975
+ children: [
976
+ /* @__PURE__ */ jsxDEV(SelectTrigger, {
977
+ id: "waitlist-team-size",
978
+ className: "w-full",
979
+ children: /* @__PURE__ */ jsxDEV(SelectValue, {
980
+ placeholder: "Select team size"
981
+ }, undefined, false, undefined, this)
982
+ }, undefined, false, undefined, this),
983
+ /* @__PURE__ */ jsxDEV(SelectContent, {
984
+ children: [
985
+ /* @__PURE__ */ jsxDEV(SelectItem, {
986
+ value: "solo",
987
+ children: "Solo"
988
+ }, undefined, false, undefined, this),
989
+ /* @__PURE__ */ jsxDEV(SelectItem, {
990
+ value: "2-5",
991
+ children: "2-5"
992
+ }, undefined, false, undefined, this),
993
+ /* @__PURE__ */ jsxDEV(SelectItem, {
994
+ value: "6-20",
995
+ children: "6-20"
996
+ }, undefined, false, undefined, this),
997
+ /* @__PURE__ */ jsxDEV(SelectItem, {
998
+ value: "20+",
999
+ children: "20+"
1000
+ }, undefined, false, undefined, this)
1001
+ ]
1002
+ }, undefined, true, undefined, this)
1003
+ ]
1004
+ }, undefined, true, undefined, this)
1005
+ ]
1006
+ }, undefined, true, undefined, this),
1007
+ /* @__PURE__ */ jsxDEV("div", {
1008
+ className: "space-y-2",
1009
+ children: [
1010
+ /* @__PURE__ */ jsxDEV(Label, {
1011
+ htmlFor: "waitlist-timeline",
1012
+ className: "text-sm font-medium",
1013
+ children: "Timeline"
1014
+ }, undefined, false, undefined, this),
1015
+ /* @__PURE__ */ jsxDEV(Select, {
1016
+ value: designPartnerForm.watch("timeline") || "",
1017
+ onValueChange: (value) => designPartnerForm.setValue("timeline", value),
1018
+ disabled: isPending || submitResult?.success,
1019
+ children: [
1020
+ /* @__PURE__ */ jsxDEV(SelectTrigger, {
1021
+ id: "waitlist-timeline",
1022
+ className: "w-full",
1023
+ children: /* @__PURE__ */ jsxDEV(SelectValue, {
1024
+ placeholder: "Select timeline"
1025
+ }, undefined, false, undefined, this)
1026
+ }, undefined, false, undefined, this),
1027
+ /* @__PURE__ */ jsxDEV(SelectContent, {
1028
+ children: [
1029
+ /* @__PURE__ */ jsxDEV(SelectItem, {
1030
+ value: "now",
1031
+ children: "Now"
1032
+ }, undefined, false, undefined, this),
1033
+ /* @__PURE__ */ jsxDEV(SelectItem, {
1034
+ value: "1-3-months",
1035
+ children: "1-3 months"
1036
+ }, undefined, false, undefined, this),
1037
+ /* @__PURE__ */ jsxDEV(SelectItem, {
1038
+ value: "3-6-months",
1039
+ children: "3-6 months"
1040
+ }, undefined, false, undefined, this),
1041
+ /* @__PURE__ */ jsxDEV(SelectItem, {
1042
+ value: "exploring",
1043
+ children: "Exploring"
1044
+ }, undefined, false, undefined, this)
1045
+ ]
1046
+ }, undefined, true, undefined, this)
1047
+ ]
1048
+ }, undefined, true, undefined, this)
1049
+ ]
1050
+ }, undefined, true, undefined, this)
1051
+ ]
1052
+ }, undefined, true, undefined, this),
1053
+ /* @__PURE__ */ jsxDEV("div", {
1054
+ className: "space-y-3",
1055
+ children: [
1056
+ /* @__PURE__ */ jsxDEV("div", {
1057
+ className: "flex items-start gap-3",
1058
+ children: [
1059
+ /* @__PURE__ */ jsxDEV(Checkbox, {
1060
+ id: "waitlist-open-to-sessions",
1061
+ checked: designPartnerForm.watch("openToSessions"),
1062
+ onCheckedChange: (checked) => designPartnerForm.setValue("openToSessions", checked === true),
1063
+ disabled: isPending || submitResult?.success
1064
+ }, undefined, false, undefined, this),
1065
+ /* @__PURE__ */ jsxDEV(Label, {
1066
+ htmlFor: "waitlist-open-to-sessions",
1067
+ className: "cursor-pointer text-sm leading-relaxed",
1068
+ children: "I'm open to 1:1 product/design sessions"
1069
+ }, undefined, false, undefined, this)
1070
+ ]
1071
+ }, undefined, true, undefined, this),
1072
+ /* @__PURE__ */ jsxDEV("div", {
1073
+ className: "flex items-start gap-3",
1074
+ children: [
1075
+ /* @__PURE__ */ jsxDEV(Checkbox, {
1076
+ id: "waitlist-case-studies",
1077
+ checked: designPartnerForm.watch("okayWithCaseStudies"),
1078
+ onCheckedChange: (checked) => designPartnerForm.setValue("okayWithCaseStudies", checked === true),
1079
+ disabled: isPending || submitResult?.success
1080
+ }, undefined, false, undefined, this),
1081
+ /* @__PURE__ */ jsxDEV(Label, {
1082
+ htmlFor: "waitlist-case-studies",
1083
+ className: "cursor-pointer text-sm leading-relaxed",
1084
+ children: "I'm okay with anonymized case studies about our usage"
1085
+ }, undefined, false, undefined, this)
1086
+ ]
1087
+ }, undefined, true, undefined, this)
1088
+ ]
1089
+ }, undefined, true, undefined, this)
1090
+ ]
1091
+ }, undefined, true, undefined, this) : /* @__PURE__ */ jsxDEV("div", {
1092
+ className: "space-y-2",
1093
+ children: [
1094
+ /* @__PURE__ */ jsxDEV(Label, {
1095
+ htmlFor: "waitlist-email",
1096
+ className: "text-sm font-medium",
1097
+ children: [
1098
+ "Email ",
1099
+ /* @__PURE__ */ jsxDEV("span", {
1100
+ className: "text-red-400",
1101
+ children: "*"
1102
+ }, undefined, false, undefined, this)
1103
+ ]
1104
+ }, undefined, true, undefined, this),
1105
+ /* @__PURE__ */ jsxDEV(Input, {
1106
+ id: "waitlist-email",
1107
+ ...simpleForm.register("email"),
1108
+ type: "email",
1109
+ placeholder: "your@email.com",
1110
+ disabled: isPending || submitResult?.success
1111
+ }, undefined, false, undefined, this),
1112
+ simpleForm.formState.errors.email && /* @__PURE__ */ jsxDEV("p", {
1113
+ className: "text-xs text-red-400",
1114
+ children: simpleForm.formState.errors.email.message
1115
+ }, undefined, false, undefined, this)
1116
+ ]
1117
+ }, undefined, true, undefined, this),
1118
+ submitResult && !isPending && /* @__PURE__ */ jsxDEV("div", {
1119
+ className: `flex items-start gap-2 rounded-lg p-4 text-sm ${submitResult.success ? "border border-green-500/20 bg-green-500/10 text-green-400" : "border border-red-500/20 bg-red-500/10 text-red-400"}`,
1120
+ children: [
1121
+ submitResult.success ? /* @__PURE__ */ jsxDEV(CheckCircle, {
1122
+ size: 20,
1123
+ className: "mt-0.5 shrink-0"
1124
+ }, undefined, false, undefined, this) : /* @__PURE__ */ jsxDEV(AlertCircle, {
1125
+ size: 20,
1126
+ className: "mt-0.5 shrink-0"
1127
+ }, undefined, false, undefined, this),
1128
+ /* @__PURE__ */ jsxDEV("div", {
1129
+ className: "flex-1",
1130
+ children: submitResult.success ? /* @__PURE__ */ jsxDEV(Fragment, {
1131
+ children: [
1132
+ /* @__PURE__ */ jsxDEV("p", {
1133
+ className: "mb-1 font-semibold",
1134
+ children: "You're on the list."
1135
+ }, undefined, false, undefined, this),
1136
+ /* @__PURE__ */ jsxDEV("p", {
1137
+ className: "text-sm",
1138
+ children: submitResult.text
1139
+ }, undefined, false, undefined, this)
1140
+ ]
1141
+ }, undefined, true, undefined, this) : /* @__PURE__ */ jsxDEV("p", {
1142
+ children: submitResult.text
1143
+ }, undefined, false, undefined, this)
1144
+ }, undefined, false, undefined, this)
1145
+ ]
1146
+ }, undefined, true, undefined, this),
1147
+ /* @__PURE__ */ jsxDEV(Button, {
1148
+ type: "submit",
1149
+ disabled: isPending || submitResult?.success,
1150
+ className: "w-full",
1151
+ children: isPending ? "Submitting..." : isDesignPartner ? "Apply to the waitlist" : "Join waitlist"
1152
+ }, undefined, false, undefined, this),
1153
+ /* @__PURE__ */ jsxDEV("p", {
1154
+ className: "text-muted-foreground text-center text-xs",
1155
+ children: "No spam. We'll only email you about ContractSpec and your application."
1156
+ }, undefined, false, undefined, this)
1157
+ ]
1158
+ }, undefined, true, undefined, this)
1159
+ ]
1160
+ }, undefined, true, undefined, this);
1161
+ }
1162
+
1163
+ // src/components/marketing/ContactClient.tsx
1164
+ import { useActionState } from "react";
1165
+ import {
1166
+ Calendar,
1167
+ MessageSquare,
1168
+ CheckCircle as CheckCircle2,
1169
+ AlertCircle as AlertCircle2
1170
+ } from "lucide-react";
1171
+ import {
1172
+ ActionForm,
1173
+ Button as Button2,
1174
+ Input as Input2,
1175
+ Textarea as Textarea2
1176
+ } from "@contractspec/lib.design-system";
1177
+ import { VStack, HStack } from "@contractspec/lib.ui-kit-web/ui/stack";
1178
+ import {
1179
+ H2,
1180
+ H1,
1181
+ Small,
1182
+ Muted
1183
+ } from "@contractspec/lib.ui-kit-web/ui/typography";
1184
+ import { jsxDEV as jsxDEV2 } from "react/jsx-dev-runtime";
1185
+ "use client";
1186
+ function ContactClient() {
1187
+ const handleContactSubmit = async (_prevState, formData) => {
1188
+ const result = await submitContactForm(formData);
1189
+ if (result.success) {
1190
+ return {
1191
+ success: true,
1192
+ text: "Message sent successfully! We'll get back to you soon."
1193
+ };
1194
+ } else {
1195
+ return {
1196
+ success: false,
1197
+ text: result.text || "Failed to send message. Please try again."
1198
+ };
1199
+ }
1200
+ };
1201
+ const [contactResult, contactAction, contactPending] = useActionState(handleContactSubmit, null);
1202
+ return /* @__PURE__ */ jsxDEV2("section", {
1203
+ className: "section-padding hero-gradient w-full",
1204
+ children: /* @__PURE__ */ jsxDEV2(VStack, {
1205
+ className: "mx-auto max-w-4xl gap-16",
1206
+ children: [
1207
+ /* @__PURE__ */ jsxDEV2(VStack, {
1208
+ className: "gap-4 text-center",
1209
+ children: [
1210
+ /* @__PURE__ */ jsxDEV2(H1, {
1211
+ className: "text-5xl font-bold",
1212
+ children: "Get in touch"
1213
+ }, undefined, false, undefined, this),
1214
+ /* @__PURE__ */ jsxDEV2(Muted, {
1215
+ className: "text-lg",
1216
+ children: "Choose how you'd like to connect with us"
1217
+ }, undefined, false, undefined, this)
1218
+ ]
1219
+ }, undefined, true, undefined, this),
1220
+ /* @__PURE__ */ jsxDEV2(WaitlistSection, {
1221
+ context: "contact"
1222
+ }, undefined, false, undefined, this),
1223
+ /* @__PURE__ */ jsxDEV2(VStack, {
1224
+ className: "card-subtle gap-6 p-8",
1225
+ id: "call",
1226
+ children: [
1227
+ /* @__PURE__ */ jsxDEV2(HStack, {
1228
+ className: "items-center gap-3",
1229
+ children: [
1230
+ /* @__PURE__ */ jsxDEV2(Calendar, {
1231
+ className: "text-blue-400",
1232
+ size: 24
1233
+ }, undefined, false, undefined, this),
1234
+ /* @__PURE__ */ jsxDEV2(VStack, {
1235
+ className: "items-start gap-1",
1236
+ children: [
1237
+ /* @__PURE__ */ jsxDEV2(H2, {
1238
+ className: "text-2xl font-bold",
1239
+ children: "Book a 20-min call"
1240
+ }, undefined, false, undefined, this),
1241
+ /* @__PURE__ */ jsxDEV2(Muted, {
1242
+ className: "text-sm",
1243
+ children: "Schedule a walkthrough with our team to see ContractSpec in action"
1244
+ }, undefined, false, undefined, this)
1245
+ ]
1246
+ }, undefined, true, undefined, this)
1247
+ ]
1248
+ }, undefined, true, undefined, this),
1249
+ /* @__PURE__ */ jsxDEV2("div", {
1250
+ className: "border-border overflow-hidden rounded-lg border",
1251
+ children: /* @__PURE__ */ jsxDEV2("object", {
1252
+ data: "https://meet.reclaimai.com/e/f863cb29-caac-44b6-972b-1407dd9545a3",
1253
+ width: "100%",
1254
+ height: "700px",
1255
+ style: { outline: "none" },
1256
+ "aria-label": "Calendar booking widget"
1257
+ }, undefined, false, undefined, this)
1258
+ }, undefined, false, undefined, this)
1259
+ ]
1260
+ }, undefined, true, undefined, this),
1261
+ /* @__PURE__ */ jsxDEV2(VStack, {
1262
+ className: "card-subtle gap-6 p-8",
1263
+ id: "message",
1264
+ children: [
1265
+ /* @__PURE__ */ jsxDEV2(HStack, {
1266
+ className: "items-center gap-3",
1267
+ children: [
1268
+ /* @__PURE__ */ jsxDEV2(MessageSquare, {
1269
+ className: "text-emerald-400",
1270
+ size: 24
1271
+ }, undefined, false, undefined, this),
1272
+ /* @__PURE__ */ jsxDEV2(VStack, {
1273
+ className: "items-start gap-1",
1274
+ children: [
1275
+ /* @__PURE__ */ jsxDEV2(H2, {
1276
+ className: "text-2xl font-bold",
1277
+ children: "Send us a message"
1278
+ }, undefined, false, undefined, this),
1279
+ /* @__PURE__ */ jsxDEV2(Muted, {
1280
+ className: "text-sm",
1281
+ children: "Have questions or feedback? We'd love to hear from you"
1282
+ }, undefined, false, undefined, this)
1283
+ ]
1284
+ }, undefined, true, undefined, this)
1285
+ ]
1286
+ }, undefined, true, undefined, this),
1287
+ /* @__PURE__ */ jsxDEV2(ActionForm, {
1288
+ action: contactAction,
1289
+ children: /* @__PURE__ */ jsxDEV2(VStack, {
1290
+ className: "gap-4",
1291
+ children: [
1292
+ /* @__PURE__ */ jsxDEV2(VStack, {
1293
+ className: "gap-2",
1294
+ children: [
1295
+ /* @__PURE__ */ jsxDEV2(Small, {
1296
+ className: "text-sm font-medium",
1297
+ children: "Name"
1298
+ }, undefined, false, undefined, this),
1299
+ /* @__PURE__ */ jsxDEV2(Input2, {
1300
+ id: "contact-name",
1301
+ name: "name",
1302
+ type: "text",
1303
+ placeholder: "Your name",
1304
+ disabled: contactPending || contactResult?.success,
1305
+ required: true
1306
+ }, undefined, false, undefined, this)
1307
+ ]
1308
+ }, undefined, true, undefined, this),
1309
+ /* @__PURE__ */ jsxDEV2(VStack, {
1310
+ className: "gap-2",
1311
+ children: [
1312
+ /* @__PURE__ */ jsxDEV2(Small, {
1313
+ className: "text-sm font-medium",
1314
+ children: "Email"
1315
+ }, undefined, false, undefined, this),
1316
+ /* @__PURE__ */ jsxDEV2(Input2, {
1317
+ id: "contact-email",
1318
+ name: "email",
1319
+ type: "email",
1320
+ keyboard: { kind: "email" },
1321
+ placeholder: "your@email.com",
1322
+ disabled: contactPending || contactResult?.success,
1323
+ required: true
1324
+ }, undefined, false, undefined, this)
1325
+ ]
1326
+ }, undefined, true, undefined, this),
1327
+ /* @__PURE__ */ jsxDEV2(VStack, {
1328
+ className: "gap-2",
1329
+ children: [
1330
+ /* @__PURE__ */ jsxDEV2(Small, {
1331
+ className: "text-sm font-medium",
1332
+ children: "Message"
1333
+ }, undefined, false, undefined, this),
1334
+ /* @__PURE__ */ jsxDEV2(Textarea2, {
1335
+ id: "contact-message",
1336
+ name: "message",
1337
+ placeholder: "Tell us what's on your mind...",
1338
+ disabled: contactPending || contactResult?.success,
1339
+ rows: 6,
1340
+ required: true
1341
+ }, undefined, false, undefined, this)
1342
+ ]
1343
+ }, undefined, true, undefined, this),
1344
+ contactResult && !contactPending && /* @__PURE__ */ jsxDEV2(HStack, {
1345
+ className: `items-center gap-2 rounded-lg p-3 text-sm ${contactResult.success ? "border border-green-500/20 bg-green-500/10 text-green-400" : "border border-red-500/20 bg-red-500/10 text-red-400"}`,
1346
+ children: [
1347
+ contactResult.success ? /* @__PURE__ */ jsxDEV2(CheckCircle2, {
1348
+ size: 16
1349
+ }, undefined, false, undefined, this) : /* @__PURE__ */ jsxDEV2(AlertCircle2, {
1350
+ size: 16
1351
+ }, undefined, false, undefined, this),
1352
+ /* @__PURE__ */ jsxDEV2(Small, {
1353
+ children: contactResult.text
1354
+ }, undefined, false, undefined, this)
1355
+ ]
1356
+ }, undefined, true, undefined, this),
1357
+ /* @__PURE__ */ jsxDEV2(Button2, {
1358
+ type: "submit",
1359
+ disabled: contactPending || contactResult?.success,
1360
+ className: "w-full",
1361
+ children: contactPending ? "Sending..." : "Send message"
1362
+ }, undefined, false, undefined, this)
1363
+ ]
1364
+ }, undefined, true, undefined, this)
1365
+ }, undefined, false, undefined, this)
1366
+ ]
1367
+ }, undefined, true, undefined, this)
1368
+ ]
1369
+ }, undefined, true, undefined, this)
1370
+ }, undefined, false, undefined, this);
1371
+ }
1372
+ export {
1373
+ ContactClient
1374
+ };