@flamingo-stack/openframe-frontend-core 0.0.431 → 0.0.432

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 (82) hide show
  1. package/dist/{chunk-ZSHMCFTI.cjs → chunk-2UNB76AB.cjs} +37 -37
  2. package/dist/{chunk-ZSHMCFTI.cjs.map → chunk-2UNB76AB.cjs.map} +1 -1
  3. package/dist/{chunk-NN5PACBO.js → chunk-3A4SO4I7.js} +4 -4
  4. package/dist/{chunk-BKIBU5AJ.cjs → chunk-422FPRTI.cjs} +15 -15
  5. package/dist/{chunk-BKIBU5AJ.cjs.map → chunk-422FPRTI.cjs.map} +1 -1
  6. package/dist/{chunk-4MYZKPVF.cjs → chunk-5WU5D7CQ.cjs} +11 -11
  7. package/dist/{chunk-4MYZKPVF.cjs.map → chunk-5WU5D7CQ.cjs.map} +1 -1
  8. package/dist/{chunk-QJX3BF3K.cjs → chunk-7XI7JB5F.cjs} +26 -26
  9. package/dist/{chunk-QJX3BF3K.cjs.map → chunk-7XI7JB5F.cjs.map} +1 -1
  10. package/dist/{chunk-E3TNEXSD.js → chunk-B3FAVS2N.js} +2 -2
  11. package/dist/{chunk-MKQ3M6KW.cjs → chunk-BGEPK3JE.cjs} +3 -3
  12. package/dist/chunk-BGEPK3JE.cjs.map +1 -0
  13. package/dist/{chunk-2CMR3GZI.js → chunk-EDGXPNWX.js} +4 -4
  14. package/dist/{chunk-EIGAJ5RW.js → chunk-ELBMEK47.js} +2 -2
  15. package/dist/{chunk-RAYN22CP.cjs → chunk-EWZRKT7O.cjs} +9 -9
  16. package/dist/{chunk-RAYN22CP.cjs.map → chunk-EWZRKT7O.cjs.map} +1 -1
  17. package/dist/{chunk-W724RQMP.cjs → chunk-GW3O6C35.cjs} +7 -7
  18. package/dist/{chunk-W724RQMP.cjs.map → chunk-GW3O6C35.cjs.map} +1 -1
  19. package/dist/{chunk-XSFMDCB6.cjs → chunk-H7N363J7.cjs} +62 -62
  20. package/dist/{chunk-XSFMDCB6.cjs.map → chunk-H7N363J7.cjs.map} +1 -1
  21. package/dist/{chunk-7IDETI3Q.js → chunk-IXVG25DT.js} +2 -2
  22. package/dist/{chunk-DCVREFCV.js → chunk-J5XGEO7C.js} +2 -2
  23. package/dist/{chunk-TDB5RDEU.cjs → chunk-KBDXDMDU.cjs} +5 -5
  24. package/dist/{chunk-TDB5RDEU.cjs.map → chunk-KBDXDMDU.cjs.map} +1 -1
  25. package/dist/{chunk-EHOMVEUE.js → chunk-LWBKQPCZ.js} +3 -3
  26. package/dist/{chunk-EHOMVEUE.js.map → chunk-LWBKQPCZ.js.map} +1 -1
  27. package/dist/{chunk-J7WOVSD3.cjs → chunk-MNXLD7I4.cjs} +59 -59
  28. package/dist/{chunk-J7WOVSD3.cjs.map → chunk-MNXLD7I4.cjs.map} +1 -1
  29. package/dist/{chunk-363MFN2A.cjs → chunk-OJF3B5CQ.cjs} +26 -26
  30. package/dist/{chunk-363MFN2A.cjs.map → chunk-OJF3B5CQ.cjs.map} +1 -1
  31. package/dist/{chunk-V7U6GMOJ.js → chunk-SGRFBOVY.js} +2 -2
  32. package/dist/{chunk-HKBKABAN.cjs → chunk-WTNIY243.cjs} +31 -31
  33. package/dist/{chunk-HKBKABAN.cjs.map → chunk-WTNIY243.cjs.map} +1 -1
  34. package/dist/{chunk-GNJ3AJW5.js → chunk-XIAXJRFZ.js} +4 -4
  35. package/dist/{chunk-QESOR5AJ.js → chunk-Y6XNASVJ.js} +2 -2
  36. package/dist/{chunk-SKLGUMGJ.js → chunk-YMKCE26D.js} +2 -2
  37. package/dist/{chunk-QVDO5M43.js → chunk-YPOBLYCM.js} +4 -4
  38. package/dist/components/case-studies/index.cjs +8 -8
  39. package/dist/components/case-studies/index.js +2 -2
  40. package/dist/components/chat/embeddable-chat.d.ts.map +1 -1
  41. package/dist/components/chat/index.cjs +2 -2
  42. package/dist/components/chat/index.js +1 -1
  43. package/dist/components/contact/index.cjs +3 -3
  44. package/dist/components/contact/index.js +2 -2
  45. package/dist/components/docs/index.cjs +5 -5
  46. package/dist/components/docs/index.js +4 -4
  47. package/dist/components/embeds/index.cjs +3 -3
  48. package/dist/components/embeds/index.js +2 -2
  49. package/dist/components/faq/index.cjs +3 -3
  50. package/dist/components/faq/index.js +2 -2
  51. package/dist/components/features/index.cjs +2 -2
  52. package/dist/components/features/index.js +1 -1
  53. package/dist/components/help-center-pages/index.cjs +20 -20
  54. package/dist/components/help-center-pages/index.js +11 -11
  55. package/dist/components/index.cjs +128 -128
  56. package/dist/components/index.js +9 -9
  57. package/dist/components/navigation/index.cjs +2 -2
  58. package/dist/components/navigation/index.js +1 -1
  59. package/dist/components/onboarding-guides/index.cjs +5 -5
  60. package/dist/components/onboarding-guides/index.js +4 -4
  61. package/dist/components/related-content/index.cjs +3 -3
  62. package/dist/components/related-content/index.js +2 -2
  63. package/dist/components/tickets/index.cjs +5 -5
  64. package/dist/components/tickets/index.js +4 -4
  65. package/dist/components/ui/index.cjs +2 -2
  66. package/dist/components/ui/index.js +1 -1
  67. package/dist/index.cjs +2 -2
  68. package/dist/index.js +1 -1
  69. package/package.json +1 -1
  70. package/src/components/chat/embeddable-chat.tsx +12 -2
  71. package/dist/chunk-MKQ3M6KW.cjs.map +0 -1
  72. /package/dist/{chunk-NN5PACBO.js.map → chunk-3A4SO4I7.js.map} +0 -0
  73. /package/dist/{chunk-E3TNEXSD.js.map → chunk-B3FAVS2N.js.map} +0 -0
  74. /package/dist/{chunk-2CMR3GZI.js.map → chunk-EDGXPNWX.js.map} +0 -0
  75. /package/dist/{chunk-EIGAJ5RW.js.map → chunk-ELBMEK47.js.map} +0 -0
  76. /package/dist/{chunk-7IDETI3Q.js.map → chunk-IXVG25DT.js.map} +0 -0
  77. /package/dist/{chunk-DCVREFCV.js.map → chunk-J5XGEO7C.js.map} +0 -0
  78. /package/dist/{chunk-V7U6GMOJ.js.map → chunk-SGRFBOVY.js.map} +0 -0
  79. /package/dist/{chunk-GNJ3AJW5.js.map → chunk-XIAXJRFZ.js.map} +0 -0
  80. /package/dist/{chunk-QESOR5AJ.js.map → chunk-Y6XNASVJ.js.map} +0 -0
  81. /package/dist/{chunk-SKLGUMGJ.js.map → chunk-YMKCE26D.js.map} +0 -0
  82. /package/dist/{chunk-QVDO5M43.js.map → chunk-YPOBLYCM.js.map} +0 -0
@@ -12,7 +12,7 @@
12
12
 
13
13
 
14
14
 
15
- var _chunkMKQ3M6KWcjs = require('./chunk-MKQ3M6KW.cjs');
15
+ var _chunkBGEPK3JEcjs = require('./chunk-BGEPK3JE.cjs');
16
16
 
17
17
 
18
18
 
@@ -109,7 +109,7 @@ function ContactForm({
109
109
  successRedirectUrl = "/blog#community",
110
110
  successToastMessage = "Redirecting you to join our community..."
111
111
  } = {}) {
112
- const attachments = _chunkMKQ3M6KWcjs.useChatAttachments.call(void 0, );
112
+ const attachments = _chunkBGEPK3JEcjs.useChatAttachments.call(void 0, );
113
113
  const builtInSubmission = _chunkN2TJ3HAMcjs.useContactSubmission.call(void 0, {
114
114
  userId,
115
115
  successRedirectUrl,
@@ -171,7 +171,7 @@ function ContactForm({
171
171
  className: `h-full flex flex-col ${!noBorder ? "border border-ods-border rounded-2xl md:rounded-3xl" : ""} ${!noPadding ? "p-6 md:p-8 lg:p-10" : ""}`,
172
172
  children: [
173
173
  (title || subtitle) && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "mb-6 md:mb-8", children: [
174
- title && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h2", { className: `${_chunkMKQ3M6KWcjs.SECTION_HEADING_CLASS} mb-3 md:mb-4`, children: title }),
174
+ title && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h2", { className: `${_chunkBGEPK3JEcjs.SECTION_HEADING_CLASS} mb-3 md:mb-4`, children: title }),
175
175
  subtitle && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "font-['DM_Sans'] font-medium text-[16px] md:text-[18px] leading-[24px] text-ods-text-primary", children: subtitle })
176
176
  ] }),
177
177
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
@@ -191,11 +191,11 @@ function ContactForm({
191
191
  !showEmail && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "input", { type: "hidden", ...register("email") }),
192
192
  !showHelpCategory && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "input", { type: "hidden", ...register("helpCategory") }),
193
193
  !showMessage && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "input", { type: "hidden", ...register("message") }),
194
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMKQ3M6KWcjs.HoneypotField, { ...honeypotInputProps }),
194
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBGEPK3JEcjs.HoneypotField, { ...honeypotInputProps }),
195
195
  extraTopField,
196
196
  showNameEmailRow && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "grid grid-cols-1 md:grid-cols-2 gap-4 md:gap-6", children: [
197
197
  showName && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col", children: [
198
- /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkMKQ3M6KWcjs.Label, { htmlFor: "name", children: [
198
+ /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkBGEPK3JEcjs.Label, { htmlFor: "name", children: [
199
199
  "Your Name",
200
200
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "text-ods-accent", children: "*" })
201
201
  ] }),
@@ -214,7 +214,7 @@ function ContactForm({
214
214
  errors.name && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { id: "name-error", className: "text-ods-error text-xs font-['DM_Sans'] mt-1", children: errors.name.message })
215
215
  ] }),
216
216
  showEmail && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col", children: [
217
- /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkMKQ3M6KWcjs.Label, { htmlFor: "email", children: [
217
+ /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkBGEPK3JEcjs.Label, { htmlFor: "email", children: [
218
218
  "Email",
219
219
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "text-ods-accent", children: "*" })
220
220
  ] }),
@@ -235,46 +235,46 @@ function ContactForm({
235
235
  ] }),
236
236
  (showCompanySize || showReferralSource) && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "grid grid-cols-1 md:grid-cols-2 gap-4 md:gap-6", children: [
237
237
  showCompanySize && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col", children: [
238
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMKQ3M6KWcjs.Label, { htmlFor: "companySize", children: "Company Size" }),
238
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBGEPK3JEcjs.Label, { htmlFor: "companySize", children: "Company Size" }),
239
239
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
240
240
  _reacthookform.Controller,
241
241
  {
242
242
  control,
243
243
  name: "companySize",
244
- render: ({ field }) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkMKQ3M6KWcjs.Select, { onValueChange: field.onChange, defaultValue: field.value, children: [
244
+ render: ({ field }) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkBGEPK3JEcjs.Select, { onValueChange: field.onChange, defaultValue: field.value, children: [
245
245
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
246
- _chunkMKQ3M6KWcjs.SelectTrigger,
246
+ _chunkBGEPK3JEcjs.SelectTrigger,
247
247
  {
248
248
  id: "companySize",
249
249
  "aria-label": "Company Size",
250
250
  className: "bg-ods-card border-ods-border text-ods-text-primary h-12 px-3",
251
- children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMKQ3M6KWcjs.SelectValue, { placeholder: "Select company size" })
251
+ children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBGEPK3JEcjs.SelectValue, { placeholder: "Select company size" })
252
252
  }
253
253
  ),
254
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMKQ3M6KWcjs.SelectContent, { children: companySizeOptions.map((opt) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMKQ3M6KWcjs.SelectItem, { value: opt, children: opt }, opt)) })
254
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBGEPK3JEcjs.SelectContent, { children: companySizeOptions.map((opt) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBGEPK3JEcjs.SelectItem, { value: opt, children: opt }, opt)) })
255
255
  ] })
256
256
  }
257
257
  ),
258
258
  errors.companySize && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { id: "companySize-error", className: "text-ods-error text-xs font-['DM_Sans'] mt-1", children: errors.companySize.message })
259
259
  ] }),
260
260
  showReferralSource && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col", children: [
261
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMKQ3M6KWcjs.Label, { htmlFor: "referralSource", children: "How did you hear about us?" }),
261
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBGEPK3JEcjs.Label, { htmlFor: "referralSource", children: "How did you hear about us?" }),
262
262
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
263
263
  _reacthookform.Controller,
264
264
  {
265
265
  control,
266
266
  name: "referralSource",
267
- render: ({ field }) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkMKQ3M6KWcjs.Select, { onValueChange: field.onChange, defaultValue: field.value, children: [
267
+ render: ({ field }) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkBGEPK3JEcjs.Select, { onValueChange: field.onChange, defaultValue: field.value, children: [
268
268
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
269
- _chunkMKQ3M6KWcjs.SelectTrigger,
269
+ _chunkBGEPK3JEcjs.SelectTrigger,
270
270
  {
271
271
  id: "referralSource",
272
272
  "aria-label": "Referral Source",
273
273
  className: "bg-ods-card border-ods-border text-ods-text-primary h-12 px-3",
274
- children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMKQ3M6KWcjs.SelectValue, { placeholder: "Select an option" })
274
+ children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBGEPK3JEcjs.SelectValue, { placeholder: "Select an option" })
275
275
  }
276
276
  ),
277
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMKQ3M6KWcjs.SelectContent, { children: referralSourceOptions.map((opt) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMKQ3M6KWcjs.SelectItem, { value: opt, children: opt }, opt)) })
277
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBGEPK3JEcjs.SelectContent, { children: referralSourceOptions.map((opt) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBGEPK3JEcjs.SelectItem, { value: opt, children: opt }, opt)) })
278
278
  ] })
279
279
  }
280
280
  ),
@@ -282,7 +282,7 @@ function ContactForm({
282
282
  ] })
283
283
  ] }),
284
284
  showHelpCategory && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col", children: [
285
- /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkMKQ3M6KWcjs.Label, { htmlFor: "helpCategory", children: [
285
+ /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkBGEPK3JEcjs.Label, { htmlFor: "helpCategory", children: [
286
286
  "Choose your main interest",
287
287
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "text-ods-accent", children: "*" })
288
288
  ] }),
@@ -291,29 +291,29 @@ function ContactForm({
291
291
  {
292
292
  control,
293
293
  name: "helpCategory",
294
- render: ({ field }) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkMKQ3M6KWcjs.Select, { onValueChange: field.onChange, defaultValue: field.value, children: [
294
+ render: ({ field }) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkBGEPK3JEcjs.Select, { onValueChange: field.onChange, defaultValue: field.value, children: [
295
295
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
296
- _chunkMKQ3M6KWcjs.SelectTrigger,
296
+ _chunkBGEPK3JEcjs.SelectTrigger,
297
297
  {
298
298
  id: "helpCategory",
299
299
  "aria-label": "Help Category",
300
300
  className: "bg-ods-card border-ods-border text-ods-text-primary h-12 px-3",
301
- children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMKQ3M6KWcjs.SelectValue, { placeholder: "Choose your main interest" })
301
+ children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBGEPK3JEcjs.SelectValue, { placeholder: "Choose your main interest" })
302
302
  }
303
303
  ),
304
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMKQ3M6KWcjs.SelectContent, { children: helpCategoryOptions.map((opt) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMKQ3M6KWcjs.SelectItem, { value: opt, children: opt }, opt)) })
304
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBGEPK3JEcjs.SelectContent, { children: helpCategoryOptions.map((opt) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBGEPK3JEcjs.SelectItem, { value: opt, children: opt }, opt)) })
305
305
  ] })
306
306
  }
307
307
  ),
308
308
  errors.helpCategory && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { id: "helpCategory-error", className: "text-ods-error text-xs font-['DM_Sans'] mt-1", children: errors.helpCategory.message })
309
309
  ] }),
310
310
  showMessage && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col flex-grow", children: [
311
- /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkMKQ3M6KWcjs.Label, { htmlFor: "message", children: [
311
+ /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkBGEPK3JEcjs.Label, { htmlFor: "message", children: [
312
312
  "Your Message",
313
313
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "text-ods-accent", children: "*" })
314
314
  ] }),
315
315
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
316
- _chunkMKQ3M6KWcjs.Textarea,
316
+ _chunkBGEPK3JEcjs.Textarea,
317
317
  {
318
318
  id: "message",
319
319
  ...register("message"),
@@ -327,7 +327,7 @@ function ContactForm({
327
327
  ] }),
328
328
  attachmentsEnabled && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col gap-2", children: [
329
329
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
330
- _chunkMKQ3M6KWcjs.ChatAttachmentChipStrip,
330
+ _chunkBGEPK3JEcjs.ChatAttachmentChipStrip,
331
331
  {
332
332
  attachments: attachments.attachments,
333
333
  onRemove: attachments.removeAttachment,
@@ -336,7 +336,7 @@ function ContactForm({
336
336
  ),
337
337
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center gap-2", children: [
338
338
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
339
- _chunkMKQ3M6KWcjs.ChatAttachmentAddButton,
339
+ _chunkBGEPK3JEcjs.ChatAttachmentAddButton,
340
340
  {
341
341
  attachmentsEnabled: true,
342
342
  attachmentsCount: attachments.attachments.length,
@@ -372,4 +372,4 @@ function ContactForm({
372
372
 
373
373
 
374
374
  exports.ContactForm = ContactForm;
375
- //# sourceMappingURL=chunk-363MFN2A.cjs.map
375
+ //# sourceMappingURL=chunk-OJF3B5CQ.cjs.map
@@ -1 +1 @@
1
- {"version":3,"sources":["/home/runner/work/openframe-oss-lib/openframe-oss-lib/openframe-frontend-core/dist/chunk-363MFN2A.cjs","../src/components/contact/contact-form.tsx","../src/schemas/contact-schema.ts"],"names":[],"mappings":"AAAA,6rBAAY;AACZ;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,wDAA6B;AAC7B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AAE2C,0BAAA;AAAA,wBAAA;AACvD,sBAAA;AAIO,sCAAA;AAIT,oBAAA;AAAA,kBAAA;AAEJ,gBAAA;AAGK,gBAAA;AAGP,cAAA;AAKE,cAAA;AAAyB,gCAAA;AAAA,kBAAA;AACwB,kCAAA;AACjD,gBAAA;AACA,gCAAA;AAAC,kBAAA;AAAA,kBAAA;AACI,oBAAA;AACmB,oBAAA;AACV,oBAAA;AACW,oBAAA;AACN,oBAAA;AACP,oBAAA;AAAA,kBAAA;AACZ,gBAAA;AAGK,gBAAA;AAGP,cAAA;AAUE,cAAA;AAAA,gCAAA;AAAC,kBAAA;AAAA,kBAAA;AAC0B,oBAAA;AACH,oBAAA;AACZ,oBAAA;AAAA,kBAAA;AACZ,gBAAA;AAEE,gCAAA;AAAA,kCAAA;AAAC,oBAAA;AAAA,oBAAA;AACmB,sBAAA;AACwB,sBAAA;AAClB,sBAAA;AACd,sBAAA;AAAA,oBAAA;AACZ,kBAAA;AAGA,kCAAA;AACF,gBAAA;AACF,cAAA;AAIC,8BAAA;AACc,gBAAA;AAIf,gCAAA;AAAC,kBAAA;AAAA,kBAAA;AACM,oBAAA;AACI,oBAAA;AAI4B,oBAAA;AAE5B,oBAAA;AACqC,oBAAA;AAEZ,oBAAA;AAAA,kBAAA;AACpC,gBAAA;AACF,cAAA;AAAA,YAAA;AAAA,UAAA;AACF,QAAA;AAAA,MAAA;AAAA,IAAA;AACF,EAAA;AAEJ;AD5J0J;AACA;AACA;AACA","file":"/home/runner/work/openframe-oss-lib/openframe-oss-lib/openframe-frontend-core/dist/chunk-363MFN2A.cjs","sourcesContent":[null,"'use client'\n\n/**\n * `<ContactForm />` — the canonical contact form used by every public\n * surface (TMCG join, case-study pitch, generic /contact, Help Center\n * ticket creation, etc.).\n *\n * Self-contained inside the lib — host-specific values (user id for\n * tracking, platform-specific contact reasons, reddit-click attribution\n * id) flow IN via props. The hub passes them via a thin\n * `<ContactForm>` wrapper that resolves them from `useAuth` /\n * `getAppConfig` / `getStoredRedditClickId`. Other embedders pass\n * whatever they have (or omit).\n *\n * Field-hide + custom-submit + extra-top-field knobs let one form\n * serve both contact and ticket-creation flows without forking:\n * - Contact page: rendered with all fields visible, built-in submit\n * flow to `/api/contact` via `useContactSubmission`.\n * - Ticket page: hides name/email/companySize/referralSource/\n * helpCategory; supplies `extraTopField` (a Subject input) +\n * `onCustomSubmit` wired to `useTicketActions.submitTicket`.\n */\n\nimport { useState, type ReactNode } from 'react'\nimport { useForm, Controller } from 'react-hook-form'\nimport { zodResolver } from '@hookform/resolvers/zod'\nimport {\n ContactSchema,\n type ContactFormData,\n companySizeOptions,\n referralSourceOptions,\n defaultHelpCategoryOptions,\n} from '../../schemas/contact-schema'\nimport { SECTION_HEADING_CLASS } from '../layout/page-heading'\nimport {\n Button,\n type ButtonProps,\n Input,\n Textarea,\n Select,\n SelectTrigger,\n SelectValue,\n SelectContent,\n SelectItem,\n Label,\n} from '../ui'\nimport { useContactSubmission } from '../../hooks/use-contact-submission'\nimport { useHumanitySignals } from '../../hooks/use-humanity-signals'\nimport { HoneypotField } from '../ui/honeypot-field'\nimport {\n ChatAttachmentAddButton,\n ChatAttachmentChipStrip,\n} from '../chat/chat-attachment-bar'\nimport { useChatAttachments } from '../chat/hooks/use-chat-attachments'\nimport type { ChatAttachment } from '../chat/utils/chat-attachment-markdown'\n\n/**\n * Fields the caller can suppress. Six values — every primary form\n * field plus `name` and `email` (newly hideable so ticket-creation\n * surfaces can hide them; they still need to validate, so the caller\n * MUST supply pre-filled values via `defaultValues` when hiding them).\n */\nexport type ContactFormHideableField =\n | 'name'\n | 'email'\n | 'companySize'\n | 'referralSource'\n | 'helpCategory'\n | 'message'\n\nexport interface ContactFormProps {\n /** Host-side user id passed to `useContactSubmission` for attribution.\n * Hub wrapper passes `useAuth().user?.id`; lib's Help Center surface\n * passes `useChatIdentity().user?.id`. Omit for anon flows. */\n userId?: string\n /** Platform-specific help-category dropdown options. Hub wrapper\n * passes `getAppConfig().contact.contactReasons`. Defaults to the\n * lib's `defaultHelpCategoryOptions`. */\n helpCategoryOptions?: readonly string[]\n /** Reddit click attribution id. Caller resolves from wherever they\n * stash it (hub: sessionStorage via `getStoredRedditClickId`). When\n * set, it's spread into the submission payload. */\n rdtCid?: string\n /** Called after a successful submit so the caller can clear their\n * attribution storage (hub wrapper calls `clearStoredRedditClickId`).\n * Fires for BOTH the built-in and custom submit paths. */\n onSubmitSuccess?: () => void\n\n prefilledReason?: string\n prefilledMessage?: string\n hideFields?: ContactFormHideableField[]\n /** Authoritative pre-fill for any field the caller hides. Merged\n * into react-hook-form's `defaultValues` AFTER the legacy\n * `prefilledReason` / `prefilledMessage` props (caller-supplied\n * wins). REQUIRED when hiding `name` / `email` / `helpCategory` —\n * those fields are still validated by Zod even when not rendered. */\n defaultValues?: Partial<ContactFormData>\n /** Optional custom submit handler. When provided, the form bypasses\n * the built-in `useContactSubmission` flow (no /api/contact call,\n * no success-redirect, no built-in toast) — the caller owns the\n * entire side-effect chain. Reset + `onSubmitSuccess` still fire\n * on a successful await.\n *\n * Receives the schema-validated form payload PLUS the ready\n * attachments array (empty when `attachmentsEnabled === false` or\n * the user hasn't picked any). Caller forwards `attachments` to\n * whichever sink owns the upload (e.g. `actions.submitTicket`'s\n * `attachments` field for HubSpot Note engagements). */\n onCustomSubmit?: (data: ContactFormData, attachments: ChatAttachment[]) => Promise<void>\n /** Turn on the attachments bar (file `+` button + chip strip) using\n * the same lib primitives the chat composer uses\n * (`<ChatAttachmentAddButton>` + `<ChatAttachmentChipStrip>` +\n * `useChatAttachments`). When `false` (the default), the form\n * doesn't render the bar AND the attachments array passed to\n * `onCustomSubmit` is always empty. */\n attachmentsEnabled?: boolean\n /** Render slot for an EXTRA field at the very top of the form,\n * ABOVE the name/email row. Use this for ticket surfaces that need\n * a Subject input — the field is NOT part of `ContactSchema`, so\n * the caller manages its own state + validation and reads the\n * value back inside `onCustomSubmit`. */\n extraTopField?: ReactNode\n\n title?: string\n subtitle?: string\n footerText?: string\n noBorder?: boolean\n noPadding?: boolean\n buttonVariant?: ButtonProps['variant']\n buttonClassName?: string\n /** Submit-button label. Defaults to \"Send Message\". Override for\n * ticket surfaces (e.g. \"Open ticket\"). */\n submitLabel?: string\n /** Success-state submit-button label (shown briefly after submit on\n * the built-in flow). Defaults to \"Message Sent!\". Has no effect\n * when `onCustomSubmit` is provided — the caller owns success UX. */\n submitSuccessLabel?: string\n successRedirectUrl?: string\n successToastMessage?: string\n}\n\nexport function ContactForm({\n userId,\n helpCategoryOptions = defaultHelpCategoryOptions,\n rdtCid,\n onSubmitSuccess,\n prefilledReason,\n prefilledMessage,\n hideFields = [],\n defaultValues: defaultValuesProp,\n onCustomSubmit,\n extraTopField,\n attachmentsEnabled = false,\n title = 'Hit Us Up',\n subtitle,\n footerText = 'We typically respond within 24 hours. We respect your privacy – no spam, ever.',\n noBorder = false,\n noPadding = false,\n buttonVariant = 'accent',\n buttonClassName = '',\n submitLabel = 'Send Message',\n submitSuccessLabel = 'Message Sent!',\n successRedirectUrl = '/blog#community',\n successToastMessage = 'Redirecting you to join our community...',\n}: ContactFormProps = {}) {\n // Attachments staging — same hook the chat composer + ticket\n // detail-drawer composer use. Files upload to Supabase as soon as\n // the user picks them; `readyAttachments` is the wire-shape array\n // ready for the next submit. `hasInflightUploads` disables Send\n // until every upload settles.\n const attachments = useChatAttachments()\n // Built-in contact-API flow. Hook is called unconditionally (rules\n // of hooks); we just don't dispatch its `submit` when the caller\n // passes `onCustomSubmit`. The hook owns its own toast + redirect\n // chain so bypassing it cleanly hands all side-effects to the caller.\n const builtInSubmission = useContactSubmission({\n userId,\n successRedirectUrl,\n successToastMessage,\n })\n // Independent in-flight tracker for the custom path — we can't reuse\n // `builtInSubmission.isSubmitting` because that hook never sees a\n // request when `onCustomSubmit` is active.\n const [customSubmitting, setCustomSubmitting] = useState(false)\n\n // Invisible bot-protection signals (honeypot + timing). Spread into the\n // submit payload for BOTH the built-in and custom paths; reset on success.\n const { honeypotInputProps, getSignals, resetSignals } = useHumanitySignals()\n\n const isSubmitting = onCustomSubmit ? customSubmitting : builtInSubmission.isSubmitting\n // `isSuccess` only ever fires on the built-in path; custom callers\n // own their own UX (no \"Message Sent!\" button-label flicker).\n const isSuccess = onCustomSubmit ? false : builtInSubmission.isSuccess\n\n const {\n register,\n handleSubmit,\n control,\n formState: { errors },\n reset,\n } = useForm<ContactFormData>({\n resolver: zodResolver(ContactSchema),\n defaultValues: {\n ...(prefilledReason && { helpCategory: prefilledReason }),\n ...(prefilledMessage && { message: prefilledMessage }),\n // Caller-supplied defaults win over the legacy `prefilled*` props\n // (they're the authoritative seed for hidden fields).\n ...defaultValuesProp,\n },\n })\n\n const handleFormSubmit = async (data: ContactFormData) => {\n if (isSubmitting) return\n if (attachmentsEnabled && attachments.hasInflightUploads) return\n try {\n const payload = { ...data, ...(rdtCid && { rdt_cid: rdtCid }), ...getSignals() }\n const readyAttachments = attachmentsEnabled ? attachments.readyAttachments : []\n if (onCustomSubmit) {\n setCustomSubmitting(true)\n try {\n await onCustomSubmit(payload, readyAttachments)\n } finally {\n setCustomSubmitting(false)\n }\n } else {\n await builtInSubmission.submit(payload)\n }\n onSubmitSuccess?.()\n reset()\n resetSignals()\n if (attachmentsEnabled) attachments.clear()\n } catch {\n // Error toast is owned by the active flow:\n // - built-in: `useContactSubmission` toasts inside `submit()`.\n // - custom: the caller toasts inside `onCustomSubmit`.\n // Either way we swallow here so a thrown error doesn't crash the\n // form tree (react-hook-form's onSubmit handler rejects upward).\n }\n }\n\n const showName = !hideFields.includes('name')\n const showEmail = !hideFields.includes('email')\n const showNameEmailRow = showName || showEmail\n const showCompanySize = !hideFields.includes('companySize')\n const showReferralSource = !hideFields.includes('referralSource')\n const showHelpCategory = !hideFields.includes('helpCategory')\n const showMessage = !hideFields.includes('message')\n\n return (\n <div\n className={`h-full flex flex-col ${!noBorder ? 'border border-ods-border rounded-2xl md:rounded-3xl' : ''} ${!noPadding ? 'p-6 md:p-8 lg:p-10' : ''}`}\n >\n {(title || subtitle) && (\n <div className=\"mb-6 md:mb-8\">\n {title && (\n <h2 className={`${SECTION_HEADING_CLASS} mb-3 md:mb-4`}>\n {title}\n </h2>\n )}\n {subtitle && (\n <p className=\"font-['DM_Sans'] font-medium text-[16px] md:text-[18px] leading-[24px] text-ods-text-primary\">\n {subtitle}\n </p>\n )}\n </div>\n )}\n\n <form\n onSubmit={handleSubmit(handleFormSubmit, (validationErrors) => {\n // When validation fails on a HIDDEN field (e.g. ticket form\n // hides name/email/helpCategory and seeds them via\n // `defaultValues`), there's no visible error UI for the user\n // — the submit button just appears dead. Log so the broken\n // defaultValues wiring is at least discoverable in DevTools.\n // eslint-disable-next-line no-console\n console.warn(\n '[ContactForm] submit blocked by validation:',\n Object.fromEntries(\n Object.entries(validationErrors).map(([k, v]) => [k, v?.message ?? v]),\n ),\n )\n })}\n className=\"flex flex-col flex-grow space-y-4 md:space-y-6\"\n >\n {/* Hidden inputs for fields that are required by `ContactSchema`\n but suppressed from the visible UI via `hideFields`. Without\n these, `register('name')` never runs, react-hook-form skips\n the field at submit time, and Zod's required-string check\n fails silently — the user clicks Submit and NOTHING visible\n happens (no error, no network call). The caller-supplied\n `defaultValues` seed the values; the hidden inputs just tell\n RHF to include them in the submit payload. */}\n {!showName && <input type=\"hidden\" {...register('name')} />}\n {!showEmail && <input type=\"hidden\" {...register('email')} />}\n {!showHelpCategory && <input type=\"hidden\" {...register('helpCategory')} />}\n {!showMessage && <input type=\"hidden\" {...register('message')} />}\n\n {/* Invisible honeypot — real users never fill it; bots that fill every field trip it. */}\n <HoneypotField {...honeypotInputProps} />\n\n {/* Extra top field (e.g. Subject for ticket forms). Rendered\n outside the schema-driven layout so the caller fully owns\n label / placeholder / state. */}\n {extraTopField}\n\n {showNameEmailRow && (\n <div className=\"grid grid-cols-1 md:grid-cols-2 gap-4 md:gap-6\">\n {showName && (\n <div className=\"flex flex-col\">\n <Label htmlFor=\"name\">\n Your Name<span className=\"text-ods-accent\">*</span>\n </Label>\n <Input\n id=\"name\"\n type=\"text\"\n {...register('name')}\n placeholder=\"Jane Doe\"\n aria-invalid={!!errors.name}\n aria-describedby=\"name-error\"\n className=\"bg-ods-card border-ods-border text-ods-text-primary placeholder-ods-text-secondary px-3 h-12\"\n />\n {errors.name && (\n <span id=\"name-error\" className=\"text-ods-error text-xs font-['DM_Sans'] mt-1\">\n {errors.name.message}\n </span>\n )}\n </div>\n )}\n {showEmail && (\n <div className=\"flex flex-col\">\n <Label htmlFor=\"email\">\n Email<span className=\"text-ods-accent\">*</span>\n </Label>\n <Input\n id=\"email\"\n type=\"email\"\n {...register('email')}\n placeholder=\"jane@company.com\"\n aria-invalid={!!errors.email}\n aria-describedby=\"email-error\"\n className=\"bg-ods-card border-ods-border text-ods-text-primary placeholder-ods-text-secondary px-3 h-12\"\n />\n {errors.email && (\n <span id=\"email-error\" className=\"text-ods-error text-xs font-['DM_Sans'] mt-1\">\n {errors.email.message}\n </span>\n )}\n </div>\n )}\n </div>\n )}\n\n {(showCompanySize || showReferralSource) && (\n <div className=\"grid grid-cols-1 md:grid-cols-2 gap-4 md:gap-6\">\n {showCompanySize && (\n <div className=\"flex flex-col\">\n <Label htmlFor=\"companySize\">Company Size</Label>\n <Controller\n control={control}\n name=\"companySize\"\n render={({ field }) => (\n <Select onValueChange={field.onChange} defaultValue={field.value}>\n <SelectTrigger\n id=\"companySize\"\n aria-label=\"Company Size\"\n className=\"bg-ods-card border-ods-border text-ods-text-primary h-12 px-3\"\n >\n <SelectValue placeholder=\"Select company size\" />\n </SelectTrigger>\n <SelectContent>\n {companySizeOptions.map((opt) => (\n <SelectItem key={opt} value={opt}>\n {opt}\n </SelectItem>\n ))}\n </SelectContent>\n </Select>\n )}\n />\n {errors.companySize && (\n <span id=\"companySize-error\" className=\"text-ods-error text-xs font-['DM_Sans'] mt-1\">\n {errors.companySize.message}\n </span>\n )}\n </div>\n )}\n {showReferralSource && (\n <div className=\"flex flex-col\">\n <Label htmlFor=\"referralSource\">How did you hear about us?</Label>\n <Controller\n control={control}\n name=\"referralSource\"\n render={({ field }) => (\n <Select onValueChange={field.onChange} defaultValue={field.value}>\n <SelectTrigger\n id=\"referralSource\"\n aria-label=\"Referral Source\"\n className=\"bg-ods-card border-ods-border text-ods-text-primary h-12 px-3\"\n >\n <SelectValue placeholder=\"Select an option\" />\n </SelectTrigger>\n <SelectContent>\n {referralSourceOptions.map((opt) => (\n <SelectItem key={opt} value={opt}>\n {opt}\n </SelectItem>\n ))}\n </SelectContent>\n </Select>\n )}\n />\n {errors.referralSource && (\n <span id=\"referralSource-error\" className=\"text-ods-error text-xs font-['DM_Sans'] mt-1\">\n {errors.referralSource.message}\n </span>\n )}\n </div>\n )}\n </div>\n )}\n\n {showHelpCategory && (\n <div className=\"flex flex-col\">\n <Label htmlFor=\"helpCategory\">\n Choose your main interest<span className=\"text-ods-accent\">*</span>\n </Label>\n <Controller\n control={control}\n name=\"helpCategory\"\n render={({ field }) => (\n <Select onValueChange={field.onChange} defaultValue={field.value}>\n <SelectTrigger\n id=\"helpCategory\"\n aria-label=\"Help Category\"\n className=\"bg-ods-card border-ods-border text-ods-text-primary h-12 px-3\"\n >\n <SelectValue placeholder=\"Choose your main interest\" />\n </SelectTrigger>\n <SelectContent>\n {helpCategoryOptions.map((opt) => (\n <SelectItem key={opt} value={opt}>\n {opt}\n </SelectItem>\n ))}\n </SelectContent>\n </Select>\n )}\n />\n {errors.helpCategory && (\n <span id=\"helpCategory-error\" className=\"text-ods-error text-xs font-['DM_Sans'] mt-1\">\n {errors.helpCategory.message}\n </span>\n )}\n </div>\n )}\n\n {showMessage && (\n <div className=\"flex flex-col flex-grow\">\n <Label htmlFor=\"message\">\n Your Message<span className=\"text-ods-accent\">*</span>\n </Label>\n <Textarea\n id=\"message\"\n {...register('message')}\n placeholder=\"Share your current challenges or questions about open-source alternatives...\"\n aria-invalid={!!errors.message}\n aria-describedby=\"message-error\"\n className=\"bg-ods-card border-ods-border text-ods-text-primary placeholder-ods-text-secondary h-full flex-grow\"\n />\n {errors.message && (\n <span id=\"message-error\" className=\"text-ods-error text-xs font-['DM_Sans'] mt-1\">\n {errors.message.message}\n </span>\n )}\n </div>\n )}\n\n {/* Attachments — only renders when `attachmentsEnabled` is on.\n Uses the SAME chip strip + add button + staging hook the\n chat composer and ticket-drawer composer use, so the visual\n chip styling + upload-progress UX are identical everywhere\n attachments appear. */}\n {attachmentsEnabled && (\n <div className=\"flex flex-col gap-2\">\n <ChatAttachmentChipStrip\n attachments={attachments.attachments}\n onRemove={attachments.removeAttachment}\n disabled={isSubmitting}\n />\n <div className=\"flex items-center gap-2\">\n <ChatAttachmentAddButton\n attachmentsEnabled\n attachmentsCount={attachments.attachments.length}\n onAddFiles={attachments.addFiles}\n disabled={isSubmitting}\n />\n <span className=\"text-xs text-ods-text-secondary\">\n Attach files (optional)\n </span>\n </div>\n </div>\n )}\n\n <div className=\"flex flex-col md:flex-row gap-4 md:gap-6 items-center justify-end w-full pt-2 mt-auto\">\n {footerText && (\n <p className=\"font-['DM_Sans'] text-ods-text-secondary text-xs md:text-sm leading-relaxed text-center md:text-left\">\n {footerText}\n </p>\n )}\n <Button\n type=\"submit\"\n loading={isSubmitting}\n disabled={\n isSubmitting ||\n isSuccess ||\n (attachmentsEnabled && attachments.hasInflightUploads)\n }\n variant={buttonVariant}\n className={`w-full md:w-auto ${buttonClassName}`}\n >\n {isSuccess ? submitSuccessLabel : submitLabel}\n </Button>\n </div>\n </form>\n </div>\n )\n}\n","import { z } from 'zod';\n\n// Dropdown option constants — re-exported by `<ContactForm>` consumers\n// that want to surface their own custom Select widgets keyed on the\n// same allowed-value set.\nexport const companySizeOptions = [\n '1-10',\n '11-50',\n '51-200',\n '201-500',\n '501-1000',\n '1001+',\n] as const;\n\nexport const referralSourceOptions = [\n 'Google',\n 'LinkedIn',\n 'Twitter/X',\n 'Reddit',\n 'Friend / Colleague',\n 'Other',\n] as const;\n\n// Default fallback options — used when the embedder doesn't supply\n// platform-specific help-category options via the `helpCategoryOptions`\n// prop on `<ContactForm>`.\nexport const defaultHelpCategoryOptions = [\n 'Open-Source Alternatives',\n 'Vendor Cost Reduction',\n 'MSP Best Practices',\n 'Partnerships',\n 'Press',\n 'Other',\n] as const;\n\n// Reusable LinkedIn URL validator — the single source of truth. Every\n// public form schema, every admin update schema, every HubSpot push\n// validator MUST reference this so validation rules cannot drift\n// across boundaries.\n//\n// Host validation parses the URL and checks the hostname suffix so an\n// adversarial input like `https://evil.com/linkedin.com/x` is rejected\n// (substring match would have accepted it — CodeQL alert\n// \"Incomplete URL substring sanitization\").\nexport const LinkedInUrlSchema = z\n .string()\n .url({ message: 'Please enter a valid LinkedIn URL' })\n .refine(\n (url) => {\n try {\n const host = new URL(url).hostname.toLowerCase()\n return host === 'linkedin.com' || host.endsWith('.linkedin.com')\n } catch {\n return false\n }\n },\n {\n message: 'Please enter a valid LinkedIn profile URL',\n },\n )\n .optional()\n .or(z.literal(''));\n\n/**\n * Base schema — fields shared by every contact-style form (main contact\n * form, TMCG join, data-room request, case-study pitch, etc.). Any\n * field that exists on a form but NOT on this schema is silently\n * stripped by `safeParse` — that's exactly the bug the LinkedIn field\n * hit historically.\n */\nexport const ContactBaseSchema = z.object({\n name: z\n .string()\n .min(2, { message: 'Name must be at least 2 characters' })\n .max(255, { message: 'Name is too long' }),\n email: z\n .string()\n .email({ message: 'Please enter a valid email address' })\n .max(255),\n linkedin_url: LinkedInUrlSchema,\n helpCategory: z\n .string()\n .min(1, { message: 'Please select what we can help you with' })\n .max(255, { message: 'Help category is too long' }),\n message: z\n .string()\n .min(10, { message: 'Message must be at least 10 characters' })\n .max(5000, { message: 'Message is too long (5,000 character limit)' }),\n rdt_cid: z.string().optional(),\n});\n\n// Public POST /api/contact validator — base + dropdown fields used by\n// the generic contact form. Other form-specific schemas extend\n// `ContactBaseSchema`.\nexport const ContactSchema = ContactBaseSchema.extend({\n companySize: z\n .string()\n .optional()\n .refine((val) => !val || companySizeOptions.includes(val as (typeof companySizeOptions)[number]), {\n message: 'Please select a valid company size',\n }),\n referralSource: z\n .string()\n .optional()\n .refine((val) => !val || referralSourceOptions.includes(val as (typeof referralSourceOptions)[number]), {\n message: 'Please select a valid referral source',\n }),\n});\n\nexport type ContactFormData = z.infer<typeof ContactSchema>;\n\nexport interface ContactApiResponse {\n success: boolean;\n error?: string;\n}\n"]}
1
+ {"version":3,"sources":["/home/runner/work/openframe-oss-lib/openframe-oss-lib/openframe-frontend-core/dist/chunk-OJF3B5CQ.cjs","../src/components/contact/contact-form.tsx","../src/schemas/contact-schema.ts"],"names":[],"mappings":"AAAA,6rBAAY;AACZ;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,wDAA6B;AAC7B;AACE;AACA;AACF,wDAA6B;AAC7B;AACE;AACA;AACF,wDAA6B;AAC7B;AACA;ACDA,8BAAyC;AACzC,gDAAoC;AACpC,8CAA4B;ADG5B;AACA;AE7BA,2BAAkB;AAKX,IAAM,mBAAA,EAAqB;AAAA,EAChC,MAAA;AAAA,EACA,OAAA;AAAA,EACA,QAAA;AAAA,EACA,SAAA;AAAA,EACA,UAAA;AAAA,EACA;AACF,CAAA;AAEO,IAAM,sBAAA,EAAwB;AAAA,EACnC,QAAA;AAAA,EACA,UAAA;AAAA,EACA,WAAA;AAAA,EACA,QAAA;AAAA,EACA,oBAAA;AAAA,EACA;AACF,CAAA;AAKO,IAAM,2BAAA,EAA6B;AAAA,EACxC,0BAAA;AAAA,EACA,uBAAA;AAAA,EACA,oBAAA;AAAA,EACA,cAAA;AAAA,EACA,OAAA;AAAA,EACA;AACF,CAAA;AAWO,IAAM,kBAAA,EAAoB,OAAA,CAC9B,MAAA,CAAO,CAAA,CACP,GAAA,CAAI,EAAE,OAAA,EAAS,oCAAoC,CAAC,CAAA,CACpD,MAAA;AAAA,EACC,CAAC,GAAA,EAAA,GAAQ;AACP,IAAA,IAAI;AACF,MAAA,MAAM,KAAA,EAAO,IAAI,GAAA,CAAI,GAAG,CAAA,CAAE,QAAA,C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;AACpC,gBAAA;AACF,cAAA;AAAA,YAAA;AAAA,UAAA;AACF,QAAA;AAAA,MAAA;AAAA,IAAA;AACF,EAAA;AAEJ;AD5J0J;AACA;AACA;AACA","file":"/home/runner/work/openframe-oss-lib/openframe-oss-lib/openframe-frontend-core/dist/chunk-OJF3B5CQ.cjs","sourcesContent":[null,"'use client'\n\n/**\n * `<ContactForm />` — the canonical contact form used by every public\n * surface (TMCG join, case-study pitch, generic /contact, Help Center\n * ticket creation, etc.).\n *\n * Self-contained inside the lib — host-specific values (user id for\n * tracking, platform-specific contact reasons, reddit-click attribution\n * id) flow IN via props. The hub passes them via a thin\n * `<ContactForm>` wrapper that resolves them from `useAuth` /\n * `getAppConfig` / `getStoredRedditClickId`. Other embedders pass\n * whatever they have (or omit).\n *\n * Field-hide + custom-submit + extra-top-field knobs let one form\n * serve both contact and ticket-creation flows without forking:\n * - Contact page: rendered with all fields visible, built-in submit\n * flow to `/api/contact` via `useContactSubmission`.\n * - Ticket page: hides name/email/companySize/referralSource/\n * helpCategory; supplies `extraTopField` (a Subject input) +\n * `onCustomSubmit` wired to `useTicketActions.submitTicket`.\n */\n\nimport { useState, type ReactNode } from 'react'\nimport { useForm, Controller } from 'react-hook-form'\nimport { zodResolver } from '@hookform/resolvers/zod'\nimport {\n ContactSchema,\n type ContactFormData,\n companySizeOptions,\n referralSourceOptions,\n defaultHelpCategoryOptions,\n} from '../../schemas/contact-schema'\nimport { SECTION_HEADING_CLASS } from '../layout/page-heading'\nimport {\n Button,\n type ButtonProps,\n Input,\n Textarea,\n Select,\n SelectTrigger,\n SelectValue,\n SelectContent,\n SelectItem,\n Label,\n} from '../ui'\nimport { useContactSubmission } from '../../hooks/use-contact-submission'\nimport { useHumanitySignals } from '../../hooks/use-humanity-signals'\nimport { HoneypotField } from '../ui/honeypot-field'\nimport {\n ChatAttachmentAddButton,\n ChatAttachmentChipStrip,\n} from '../chat/chat-attachment-bar'\nimport { useChatAttachments } from '../chat/hooks/use-chat-attachments'\nimport type { ChatAttachment } from '../chat/utils/chat-attachment-markdown'\n\n/**\n * Fields the caller can suppress. Six values — every primary form\n * field plus `name` and `email` (newly hideable so ticket-creation\n * surfaces can hide them; they still need to validate, so the caller\n * MUST supply pre-filled values via `defaultValues` when hiding them).\n */\nexport type ContactFormHideableField =\n | 'name'\n | 'email'\n | 'companySize'\n | 'referralSource'\n | 'helpCategory'\n | 'message'\n\nexport interface ContactFormProps {\n /** Host-side user id passed to `useContactSubmission` for attribution.\n * Hub wrapper passes `useAuth().user?.id`; lib's Help Center surface\n * passes `useChatIdentity().user?.id`. Omit for anon flows. */\n userId?: string\n /** Platform-specific help-category dropdown options. Hub wrapper\n * passes `getAppConfig().contact.contactReasons`. Defaults to the\n * lib's `defaultHelpCategoryOptions`. */\n helpCategoryOptions?: readonly string[]\n /** Reddit click attribution id. Caller resolves from wherever they\n * stash it (hub: sessionStorage via `getStoredRedditClickId`). When\n * set, it's spread into the submission payload. */\n rdtCid?: string\n /** Called after a successful submit so the caller can clear their\n * attribution storage (hub wrapper calls `clearStoredRedditClickId`).\n * Fires for BOTH the built-in and custom submit paths. */\n onSubmitSuccess?: () => void\n\n prefilledReason?: string\n prefilledMessage?: string\n hideFields?: ContactFormHideableField[]\n /** Authoritative pre-fill for any field the caller hides. Merged\n * into react-hook-form's `defaultValues` AFTER the legacy\n * `prefilledReason` / `prefilledMessage` props (caller-supplied\n * wins). REQUIRED when hiding `name` / `email` / `helpCategory` —\n * those fields are still validated by Zod even when not rendered. */\n defaultValues?: Partial<ContactFormData>\n /** Optional custom submit handler. When provided, the form bypasses\n * the built-in `useContactSubmission` flow (no /api/contact call,\n * no success-redirect, no built-in toast) — the caller owns the\n * entire side-effect chain. Reset + `onSubmitSuccess` still fire\n * on a successful await.\n *\n * Receives the schema-validated form payload PLUS the ready\n * attachments array (empty when `attachmentsEnabled === false` or\n * the user hasn't picked any). Caller forwards `attachments` to\n * whichever sink owns the upload (e.g. `actions.submitTicket`'s\n * `attachments` field for HubSpot Note engagements). */\n onCustomSubmit?: (data: ContactFormData, attachments: ChatAttachment[]) => Promise<void>\n /** Turn on the attachments bar (file `+` button + chip strip) using\n * the same lib primitives the chat composer uses\n * (`<ChatAttachmentAddButton>` + `<ChatAttachmentChipStrip>` +\n * `useChatAttachments`). When `false` (the default), the form\n * doesn't render the bar AND the attachments array passed to\n * `onCustomSubmit` is always empty. */\n attachmentsEnabled?: boolean\n /** Render slot for an EXTRA field at the very top of the form,\n * ABOVE the name/email row. Use this for ticket surfaces that need\n * a Subject input — the field is NOT part of `ContactSchema`, so\n * the caller manages its own state + validation and reads the\n * value back inside `onCustomSubmit`. */\n extraTopField?: ReactNode\n\n title?: string\n subtitle?: string\n footerText?: string\n noBorder?: boolean\n noPadding?: boolean\n buttonVariant?: ButtonProps['variant']\n buttonClassName?: string\n /** Submit-button label. Defaults to \"Send Message\". Override for\n * ticket surfaces (e.g. \"Open ticket\"). */\n submitLabel?: string\n /** Success-state submit-button label (shown briefly after submit on\n * the built-in flow). Defaults to \"Message Sent!\". Has no effect\n * when `onCustomSubmit` is provided — the caller owns success UX. */\n submitSuccessLabel?: string\n successRedirectUrl?: string\n successToastMessage?: string\n}\n\nexport function ContactForm({\n userId,\n helpCategoryOptions = defaultHelpCategoryOptions,\n rdtCid,\n onSubmitSuccess,\n prefilledReason,\n prefilledMessage,\n hideFields = [],\n defaultValues: defaultValuesProp,\n onCustomSubmit,\n extraTopField,\n attachmentsEnabled = false,\n title = 'Hit Us Up',\n subtitle,\n footerText = 'We typically respond within 24 hours. We respect your privacy – no spam, ever.',\n noBorder = false,\n noPadding = false,\n buttonVariant = 'accent',\n buttonClassName = '',\n submitLabel = 'Send Message',\n submitSuccessLabel = 'Message Sent!',\n successRedirectUrl = '/blog#community',\n successToastMessage = 'Redirecting you to join our community...',\n}: ContactFormProps = {}) {\n // Attachments staging — same hook the chat composer + ticket\n // detail-drawer composer use. Files upload to Supabase as soon as\n // the user picks them; `readyAttachments` is the wire-shape array\n // ready for the next submit. `hasInflightUploads` disables Send\n // until every upload settles.\n const attachments = useChatAttachments()\n // Built-in contact-API flow. Hook is called unconditionally (rules\n // of hooks); we just don't dispatch its `submit` when the caller\n // passes `onCustomSubmit`. The hook owns its own toast + redirect\n // chain so bypassing it cleanly hands all side-effects to the caller.\n const builtInSubmission = useContactSubmission({\n userId,\n successRedirectUrl,\n successToastMessage,\n })\n // Independent in-flight tracker for the custom path — we can't reuse\n // `builtInSubmission.isSubmitting` because that hook never sees a\n // request when `onCustomSubmit` is active.\n const [customSubmitting, setCustomSubmitting] = useState(false)\n\n // Invisible bot-protection signals (honeypot + timing). Spread into the\n // submit payload for BOTH the built-in and custom paths; reset on success.\n const { honeypotInputProps, getSignals, resetSignals } = useHumanitySignals()\n\n const isSubmitting = onCustomSubmit ? customSubmitting : builtInSubmission.isSubmitting\n // `isSuccess` only ever fires on the built-in path; custom callers\n // own their own UX (no \"Message Sent!\" button-label flicker).\n const isSuccess = onCustomSubmit ? false : builtInSubmission.isSuccess\n\n const {\n register,\n handleSubmit,\n control,\n formState: { errors },\n reset,\n } = useForm<ContactFormData>({\n resolver: zodResolver(ContactSchema),\n defaultValues: {\n ...(prefilledReason && { helpCategory: prefilledReason }),\n ...(prefilledMessage && { message: prefilledMessage }),\n // Caller-supplied defaults win over the legacy `prefilled*` props\n // (they're the authoritative seed for hidden fields).\n ...defaultValuesProp,\n },\n })\n\n const handleFormSubmit = async (data: ContactFormData) => {\n if (isSubmitting) return\n if (attachmentsEnabled && attachments.hasInflightUploads) return\n try {\n const payload = { ...data, ...(rdtCid && { rdt_cid: rdtCid }), ...getSignals() }\n const readyAttachments = attachmentsEnabled ? attachments.readyAttachments : []\n if (onCustomSubmit) {\n setCustomSubmitting(true)\n try {\n await onCustomSubmit(payload, readyAttachments)\n } finally {\n setCustomSubmitting(false)\n }\n } else {\n await builtInSubmission.submit(payload)\n }\n onSubmitSuccess?.()\n reset()\n resetSignals()\n if (attachmentsEnabled) attachments.clear()\n } catch {\n // Error toast is owned by the active flow:\n // - built-in: `useContactSubmission` toasts inside `submit()`.\n // - custom: the caller toasts inside `onCustomSubmit`.\n // Either way we swallow here so a thrown error doesn't crash the\n // form tree (react-hook-form's onSubmit handler rejects upward).\n }\n }\n\n const showName = !hideFields.includes('name')\n const showEmail = !hideFields.includes('email')\n const showNameEmailRow = showName || showEmail\n const showCompanySize = !hideFields.includes('companySize')\n const showReferralSource = !hideFields.includes('referralSource')\n const showHelpCategory = !hideFields.includes('helpCategory')\n const showMessage = !hideFields.includes('message')\n\n return (\n <div\n className={`h-full flex flex-col ${!noBorder ? 'border border-ods-border rounded-2xl md:rounded-3xl' : ''} ${!noPadding ? 'p-6 md:p-8 lg:p-10' : ''}`}\n >\n {(title || subtitle) && (\n <div className=\"mb-6 md:mb-8\">\n {title && (\n <h2 className={`${SECTION_HEADING_CLASS} mb-3 md:mb-4`}>\n {title}\n </h2>\n )}\n {subtitle && (\n <p className=\"font-['DM_Sans'] font-medium text-[16px] md:text-[18px] leading-[24px] text-ods-text-primary\">\n {subtitle}\n </p>\n )}\n </div>\n )}\n\n <form\n onSubmit={handleSubmit(handleFormSubmit, (validationErrors) => {\n // When validation fails on a HIDDEN field (e.g. ticket form\n // hides name/email/helpCategory and seeds them via\n // `defaultValues`), there's no visible error UI for the user\n // — the submit button just appears dead. Log so the broken\n // defaultValues wiring is at least discoverable in DevTools.\n // eslint-disable-next-line no-console\n console.warn(\n '[ContactForm] submit blocked by validation:',\n Object.fromEntries(\n Object.entries(validationErrors).map(([k, v]) => [k, v?.message ?? v]),\n ),\n )\n })}\n className=\"flex flex-col flex-grow space-y-4 md:space-y-6\"\n >\n {/* Hidden inputs for fields that are required by `ContactSchema`\n but suppressed from the visible UI via `hideFields`. Without\n these, `register('name')` never runs, react-hook-form skips\n the field at submit time, and Zod's required-string check\n fails silently — the user clicks Submit and NOTHING visible\n happens (no error, no network call). The caller-supplied\n `defaultValues` seed the values; the hidden inputs just tell\n RHF to include them in the submit payload. */}\n {!showName && <input type=\"hidden\" {...register('name')} />}\n {!showEmail && <input type=\"hidden\" {...register('email')} />}\n {!showHelpCategory && <input type=\"hidden\" {...register('helpCategory')} />}\n {!showMessage && <input type=\"hidden\" {...register('message')} />}\n\n {/* Invisible honeypot — real users never fill it; bots that fill every field trip it. */}\n <HoneypotField {...honeypotInputProps} />\n\n {/* Extra top field (e.g. Subject for ticket forms). Rendered\n outside the schema-driven layout so the caller fully owns\n label / placeholder / state. */}\n {extraTopField}\n\n {showNameEmailRow && (\n <div className=\"grid grid-cols-1 md:grid-cols-2 gap-4 md:gap-6\">\n {showName && (\n <div className=\"flex flex-col\">\n <Label htmlFor=\"name\">\n Your Name<span className=\"text-ods-accent\">*</span>\n </Label>\n <Input\n id=\"name\"\n type=\"text\"\n {...register('name')}\n placeholder=\"Jane Doe\"\n aria-invalid={!!errors.name}\n aria-describedby=\"name-error\"\n className=\"bg-ods-card border-ods-border text-ods-text-primary placeholder-ods-text-secondary px-3 h-12\"\n />\n {errors.name && (\n <span id=\"name-error\" className=\"text-ods-error text-xs font-['DM_Sans'] mt-1\">\n {errors.name.message}\n </span>\n )}\n </div>\n )}\n {showEmail && (\n <div className=\"flex flex-col\">\n <Label htmlFor=\"email\">\n Email<span className=\"text-ods-accent\">*</span>\n </Label>\n <Input\n id=\"email\"\n type=\"email\"\n {...register('email')}\n placeholder=\"jane@company.com\"\n aria-invalid={!!errors.email}\n aria-describedby=\"email-error\"\n className=\"bg-ods-card border-ods-border text-ods-text-primary placeholder-ods-text-secondary px-3 h-12\"\n />\n {errors.email && (\n <span id=\"email-error\" className=\"text-ods-error text-xs font-['DM_Sans'] mt-1\">\n {errors.email.message}\n </span>\n )}\n </div>\n )}\n </div>\n )}\n\n {(showCompanySize || showReferralSource) && (\n <div className=\"grid grid-cols-1 md:grid-cols-2 gap-4 md:gap-6\">\n {showCompanySize && (\n <div className=\"flex flex-col\">\n <Label htmlFor=\"companySize\">Company Size</Label>\n <Controller\n control={control}\n name=\"companySize\"\n render={({ field }) => (\n <Select onValueChange={field.onChange} defaultValue={field.value}>\n <SelectTrigger\n id=\"companySize\"\n aria-label=\"Company Size\"\n className=\"bg-ods-card border-ods-border text-ods-text-primary h-12 px-3\"\n >\n <SelectValue placeholder=\"Select company size\" />\n </SelectTrigger>\n <SelectContent>\n {companySizeOptions.map((opt) => (\n <SelectItem key={opt} value={opt}>\n {opt}\n </SelectItem>\n ))}\n </SelectContent>\n </Select>\n )}\n />\n {errors.companySize && (\n <span id=\"companySize-error\" className=\"text-ods-error text-xs font-['DM_Sans'] mt-1\">\n {errors.companySize.message}\n </span>\n )}\n </div>\n )}\n {showReferralSource && (\n <div className=\"flex flex-col\">\n <Label htmlFor=\"referralSource\">How did you hear about us?</Label>\n <Controller\n control={control}\n name=\"referralSource\"\n render={({ field }) => (\n <Select onValueChange={field.onChange} defaultValue={field.value}>\n <SelectTrigger\n id=\"referralSource\"\n aria-label=\"Referral Source\"\n className=\"bg-ods-card border-ods-border text-ods-text-primary h-12 px-3\"\n >\n <SelectValue placeholder=\"Select an option\" />\n </SelectTrigger>\n <SelectContent>\n {referralSourceOptions.map((opt) => (\n <SelectItem key={opt} value={opt}>\n {opt}\n </SelectItem>\n ))}\n </SelectContent>\n </Select>\n )}\n />\n {errors.referralSource && (\n <span id=\"referralSource-error\" className=\"text-ods-error text-xs font-['DM_Sans'] mt-1\">\n {errors.referralSource.message}\n </span>\n )}\n </div>\n )}\n </div>\n )}\n\n {showHelpCategory && (\n <div className=\"flex flex-col\">\n <Label htmlFor=\"helpCategory\">\n Choose your main interest<span className=\"text-ods-accent\">*</span>\n </Label>\n <Controller\n control={control}\n name=\"helpCategory\"\n render={({ field }) => (\n <Select onValueChange={field.onChange} defaultValue={field.value}>\n <SelectTrigger\n id=\"helpCategory\"\n aria-label=\"Help Category\"\n className=\"bg-ods-card border-ods-border text-ods-text-primary h-12 px-3\"\n >\n <SelectValue placeholder=\"Choose your main interest\" />\n </SelectTrigger>\n <SelectContent>\n {helpCategoryOptions.map((opt) => (\n <SelectItem key={opt} value={opt}>\n {opt}\n </SelectItem>\n ))}\n </SelectContent>\n </Select>\n )}\n />\n {errors.helpCategory && (\n <span id=\"helpCategory-error\" className=\"text-ods-error text-xs font-['DM_Sans'] mt-1\">\n {errors.helpCategory.message}\n </span>\n )}\n </div>\n )}\n\n {showMessage && (\n <div className=\"flex flex-col flex-grow\">\n <Label htmlFor=\"message\">\n Your Message<span className=\"text-ods-accent\">*</span>\n </Label>\n <Textarea\n id=\"message\"\n {...register('message')}\n placeholder=\"Share your current challenges or questions about open-source alternatives...\"\n aria-invalid={!!errors.message}\n aria-describedby=\"message-error\"\n className=\"bg-ods-card border-ods-border text-ods-text-primary placeholder-ods-text-secondary h-full flex-grow\"\n />\n {errors.message && (\n <span id=\"message-error\" className=\"text-ods-error text-xs font-['DM_Sans'] mt-1\">\n {errors.message.message}\n </span>\n )}\n </div>\n )}\n\n {/* Attachments — only renders when `attachmentsEnabled` is on.\n Uses the SAME chip strip + add button + staging hook the\n chat composer and ticket-drawer composer use, so the visual\n chip styling + upload-progress UX are identical everywhere\n attachments appear. */}\n {attachmentsEnabled && (\n <div className=\"flex flex-col gap-2\">\n <ChatAttachmentChipStrip\n attachments={attachments.attachments}\n onRemove={attachments.removeAttachment}\n disabled={isSubmitting}\n />\n <div className=\"flex items-center gap-2\">\n <ChatAttachmentAddButton\n attachmentsEnabled\n attachmentsCount={attachments.attachments.length}\n onAddFiles={attachments.addFiles}\n disabled={isSubmitting}\n />\n <span className=\"text-xs text-ods-text-secondary\">\n Attach files (optional)\n </span>\n </div>\n </div>\n )}\n\n <div className=\"flex flex-col md:flex-row gap-4 md:gap-6 items-center justify-end w-full pt-2 mt-auto\">\n {footerText && (\n <p className=\"font-['DM_Sans'] text-ods-text-secondary text-xs md:text-sm leading-relaxed text-center md:text-left\">\n {footerText}\n </p>\n )}\n <Button\n type=\"submit\"\n loading={isSubmitting}\n disabled={\n isSubmitting ||\n isSuccess ||\n (attachmentsEnabled && attachments.hasInflightUploads)\n }\n variant={buttonVariant}\n className={`w-full md:w-auto ${buttonClassName}`}\n >\n {isSuccess ? submitSuccessLabel : submitLabel}\n </Button>\n </div>\n </form>\n </div>\n )\n}\n","import { z } from 'zod';\n\n// Dropdown option constants — re-exported by `<ContactForm>` consumers\n// that want to surface their own custom Select widgets keyed on the\n// same allowed-value set.\nexport const companySizeOptions = [\n '1-10',\n '11-50',\n '51-200',\n '201-500',\n '501-1000',\n '1001+',\n] as const;\n\nexport const referralSourceOptions = [\n 'Google',\n 'LinkedIn',\n 'Twitter/X',\n 'Reddit',\n 'Friend / Colleague',\n 'Other',\n] as const;\n\n// Default fallback options — used when the embedder doesn't supply\n// platform-specific help-category options via the `helpCategoryOptions`\n// prop on `<ContactForm>`.\nexport const defaultHelpCategoryOptions = [\n 'Open-Source Alternatives',\n 'Vendor Cost Reduction',\n 'MSP Best Practices',\n 'Partnerships',\n 'Press',\n 'Other',\n] as const;\n\n// Reusable LinkedIn URL validator — the single source of truth. Every\n// public form schema, every admin update schema, every HubSpot push\n// validator MUST reference this so validation rules cannot drift\n// across boundaries.\n//\n// Host validation parses the URL and checks the hostname suffix so an\n// adversarial input like `https://evil.com/linkedin.com/x` is rejected\n// (substring match would have accepted it — CodeQL alert\n// \"Incomplete URL substring sanitization\").\nexport const LinkedInUrlSchema = z\n .string()\n .url({ message: 'Please enter a valid LinkedIn URL' })\n .refine(\n (url) => {\n try {\n const host = new URL(url).hostname.toLowerCase()\n return host === 'linkedin.com' || host.endsWith('.linkedin.com')\n } catch {\n return false\n }\n },\n {\n message: 'Please enter a valid LinkedIn profile URL',\n },\n )\n .optional()\n .or(z.literal(''));\n\n/**\n * Base schema — fields shared by every contact-style form (main contact\n * form, TMCG join, data-room request, case-study pitch, etc.). Any\n * field that exists on a form but NOT on this schema is silently\n * stripped by `safeParse` — that's exactly the bug the LinkedIn field\n * hit historically.\n */\nexport const ContactBaseSchema = z.object({\n name: z\n .string()\n .min(2, { message: 'Name must be at least 2 characters' })\n .max(255, { message: 'Name is too long' }),\n email: z\n .string()\n .email({ message: 'Please enter a valid email address' })\n .max(255),\n linkedin_url: LinkedInUrlSchema,\n helpCategory: z\n .string()\n .min(1, { message: 'Please select what we can help you with' })\n .max(255, { message: 'Help category is too long' }),\n message: z\n .string()\n .min(10, { message: 'Message must be at least 10 characters' })\n .max(5000, { message: 'Message is too long (5,000 character limit)' }),\n rdt_cid: z.string().optional(),\n});\n\n// Public POST /api/contact validator — base + dropdown fields used by\n// the generic contact form. Other form-specific schemas extend\n// `ContactBaseSchema`.\nexport const ContactSchema = ContactBaseSchema.extend({\n companySize: z\n .string()\n .optional()\n .refine((val) => !val || companySizeOptions.includes(val as (typeof companySizeOptions)[number]), {\n message: 'Please select a valid company size',\n }),\n referralSource: z\n .string()\n .optional()\n .refine((val) => !val || referralSourceOptions.includes(val as (typeof referralSourceOptions)[number]), {\n message: 'Please select a valid referral source',\n }),\n});\n\nexport type ContactFormData = z.infer<typeof ContactSchema>;\n\nexport interface ContactApiResponse {\n success: boolean;\n error?: string;\n}\n"]}
@@ -6,7 +6,7 @@ import {
6
6
  resolveExternalNavigation,
7
7
  resolveSourceIcon,
8
8
  stripSameOriginToPath
9
- } from "./chunk-EHOMVEUE.js";
9
+ } from "./chunk-LWBKQPCZ.js";
10
10
  import {
11
11
  contentFetch,
12
12
  useDebounce
@@ -347,4 +347,4 @@ export {
347
347
  resolveSearchResultAction,
348
348
  useDocSearch
349
349
  };
350
- //# sourceMappingURL=chunk-V7U6GMOJ.js.map
350
+ //# sourceMappingURL=chunk-SGRFBOVY.js.map
@@ -3,11 +3,11 @@
3
3
 
4
4
 
5
5
 
6
- var _chunkW724RQMPcjs = require('./chunk-W724RQMP.cjs');
6
+ var _chunkGW3O6C35cjs = require('./chunk-GW3O6C35.cjs');
7
7
 
8
8
 
9
9
 
10
- var _chunkRAYN22CPcjs = require('./chunk-RAYN22CP.cjs');
10
+ var _chunkEWZRKT7Ocjs = require('./chunk-EWZRKT7O.cjs');
11
11
 
12
12
 
13
13
 
@@ -19,7 +19,7 @@ var _chunkRAYN22CPcjs = require('./chunk-RAYN22CP.cjs');
19
19
 
20
20
 
21
21
 
22
- var _chunkMKQ3M6KWcjs = require('./chunk-MKQ3M6KW.cjs');
22
+ var _chunkBGEPK3JEcjs = require('./chunk-BGEPK3JE.cjs');
23
23
 
24
24
 
25
25
 
@@ -1065,8 +1065,8 @@ function findFirstDocPath(folder) {
1065
1065
  }
1066
1066
  function useDocumentTree(config, initialPath) {
1067
1067
  const { structureEndpoint, contentEndpoint, baseRoute } = config;
1068
- const folderIndexFile = _nullishCoalesce(config.folderIndexFile, () => ( _chunkMKQ3M6KWcjs.DEFAULT_FOLDER_INDEX_FILE));
1069
- const cleanInitialPath = _chunkMKQ3M6KWcjs.stripFolderIndexFromPath.call(void 0,
1068
+ const folderIndexFile = _nullishCoalesce(config.folderIndexFile, () => ( _chunkBGEPK3JEcjs.DEFAULT_FOLDER_INDEX_FILE));
1069
+ const cleanInitialPath = _chunkBGEPK3JEcjs.stripFolderIndexFromPath.call(void 0,
1070
1070
  _optionalChain([initialPath, 'optionalAccess', _2 => _2.replace, 'call', _3 => _3(/\/$/, "")]) || "",
1071
1071
  folderIndexFile
1072
1072
  );
@@ -1092,12 +1092,12 @@ function useDocumentTree(config, initialPath) {
1092
1092
  } else if (pathname.startsWith(`${normalizedBaseRoute}/`)) {
1093
1093
  pathFromUrl = pathname.substring(`${normalizedBaseRoute}/`.length);
1094
1094
  }
1095
- pathFromUrl = _chunkMKQ3M6KWcjs.stripFolderIndexFromPath.call(void 0, pathFromUrl, folderIndexFile);
1095
+ pathFromUrl = _chunkBGEPK3JEcjs.stripFolderIndexFromPath.call(void 0, pathFromUrl, folderIndexFile);
1096
1096
  if (pathFromUrl !== selectedPathRef.current) {
1097
1097
  setSelectedPath(pathFromUrl);
1098
1098
  if (pathFromUrl) {
1099
1099
  const parentPath = pathFromUrl.includes("/") ? pathFromUrl.substring(0, pathFromUrl.lastIndexOf("/")) : pathFromUrl;
1100
- setExpandedNodes(new Set(_chunkMKQ3M6KWcjs.getDocAncestorNodeIds.call(void 0, parentPath)));
1100
+ setExpandedNodes(new Set(_chunkBGEPK3JEcjs.getDocAncestorNodeIds.call(void 0, parentPath)));
1101
1101
  }
1102
1102
  setTimeout(() => {
1103
1103
  scrollToContent();
@@ -1112,7 +1112,7 @@ function useDocumentTree(config, initialPath) {
1112
1112
  setSelectedPath(cleanInitialPath);
1113
1113
  if (cleanInitialPath) {
1114
1114
  const parentPath = cleanInitialPath.includes("/") ? cleanInitialPath.substring(0, cleanInitialPath.lastIndexOf("/")) : cleanInitialPath;
1115
- setExpandedNodes(new Set(_chunkMKQ3M6KWcjs.getDocAncestorNodeIds.call(void 0, parentPath)));
1115
+ setExpandedNodes(new Set(_chunkBGEPK3JEcjs.getDocAncestorNodeIds.call(void 0, parentPath)));
1116
1116
  }
1117
1117
  setTimeout(scrollToContent, 150);
1118
1118
  }, [cleanInitialPath]);
@@ -1132,7 +1132,7 @@ function useDocumentTree(config, initialPath) {
1132
1132
  if (selectedPath === "") {
1133
1133
  pathToFetch = folderIndexFile;
1134
1134
  } else {
1135
- const node = _chunkMKQ3M6KWcjs.findDocNodeByPath.call(void 0, selectedPath, structure);
1135
+ const node = _chunkBGEPK3JEcjs.findDocNodeByPath.call(void 0, selectedPath, structure);
1136
1136
  if (node && node.type === "folder" && !node.hasReadme) {
1137
1137
  const firstDocPath = findFirstDocPath(node);
1138
1138
  if (!firstDocPath) {
@@ -1174,7 +1174,7 @@ function useDocumentTree(config, initialPath) {
1174
1174
  if (cleanInitialPath) {
1175
1175
  const pathForExpansion = cleanInitialPath.includes(".") ? cleanInitialPath.substring(0, cleanInitialPath.lastIndexOf("/")) : cleanInitialPath;
1176
1176
  if (pathForExpansion) {
1177
- setExpandedNodes(new Set(_chunkMKQ3M6KWcjs.getDocAncestorNodeIds.call(void 0, pathForExpansion)));
1177
+ setExpandedNodes(new Set(_chunkBGEPK3JEcjs.getDocAncestorNodeIds.call(void 0, pathForExpansion)));
1178
1178
  }
1179
1179
  } else if (result.data.length > 0) {
1180
1180
  const hasRootReadme = result.data.some(
@@ -1216,8 +1216,8 @@ function useDocumentTree(config, initialPath) {
1216
1216
  setContent(null);
1217
1217
  return;
1218
1218
  }
1219
- const probe = _chunkMKQ3M6KWcjs.findDocNodeByPath.call(void 0,
1220
- _chunkMKQ3M6KWcjs.stripFolderIndexFromPath.call(void 0, path, folderIndexFile),
1219
+ const probe = _chunkBGEPK3JEcjs.findDocNodeByPath.call(void 0,
1220
+ _chunkBGEPK3JEcjs.stripFolderIndexFromPath.call(void 0, path, folderIndexFile),
1221
1221
  structure
1222
1222
  );
1223
1223
  const probeIsNoReadmeFolder = !!probe && probe.type === "folder" && !probe.hasReadme;
@@ -1274,16 +1274,16 @@ function useDocumentTree(config, initialPath) {
1274
1274
  if (node.type === "folder") {
1275
1275
  setExpandedNodes((prev) => {
1276
1276
  if (prev.has(node.id)) {
1277
- const ancestorIds = _chunkMKQ3M6KWcjs.getDocAncestorNodeIds.call(void 0, node.path);
1277
+ const ancestorIds = _chunkBGEPK3JEcjs.getDocAncestorNodeIds.call(void 0, node.path);
1278
1278
  ancestorIds.pop();
1279
1279
  return new Set(ancestorIds);
1280
1280
  }
1281
- return new Set(_chunkMKQ3M6KWcjs.getDocAncestorNodeIds.call(void 0, node.path));
1281
+ return new Set(_chunkBGEPK3JEcjs.getDocAncestorNodeIds.call(void 0, node.path));
1282
1282
  });
1283
1283
  } else {
1284
1284
  const lastSlash = node.path.lastIndexOf("/");
1285
1285
  if (lastSlash > 0) {
1286
- setExpandedNodes(new Set(_chunkMKQ3M6KWcjs.getDocAncestorNodeIds.call(void 0, node.path.substring(0, lastSlash))));
1286
+ setExpandedNodes(new Set(_chunkBGEPK3JEcjs.getDocAncestorNodeIds.call(void 0, node.path.substring(0, lastSlash))));
1287
1287
  }
1288
1288
  }
1289
1289
  lastFetchedPath.current = null;
@@ -1295,7 +1295,7 @@ function useDocumentTree(config, initialPath) {
1295
1295
  const hashIndex = path.indexOf("#");
1296
1296
  const anchor = hashIndex !== -1 ? path.substring(hashIndex) : "";
1297
1297
  const cleanPath = path.replace(/\/$/, "").split("#")[0];
1298
- const pathForSelection = anchor && _optionalChain([options, 'optionalAccess', _4 => _4.fromInternalLink]) && cleanPath === "" ? selectedPathRef.current : _chunkMKQ3M6KWcjs.stripFolderIndexFromPath.call(void 0, cleanPath, folderIndexFile);
1298
+ const pathForSelection = anchor && _optionalChain([options, 'optionalAccess', _4 => _4.fromInternalLink]) && cleanPath === "" ? selectedPathRef.current : _chunkBGEPK3JEcjs.stripFolderIndexFromPath.call(void 0, cleanPath, folderIndexFile);
1299
1299
  if (anchor && _optionalChain([options, 'optionalAccess', _5 => _5.fromInternalLink]) && pathForSelection === selectedPathRef.current) {
1300
1300
  _chunkN2TJ3HAMcjs.navigateSamePageHash.call(void 0, anchor, { headerOffset: _chunkN2TJ3HAMcjs.HUB_HEADER_OFFSET_PX });
1301
1301
  return;
@@ -1357,8 +1357,8 @@ function useDocumentTree(config, initialPath) {
1357
1357
  return docNavigation.register({
1358
1358
  baseRoute: normalizedBaseRoute,
1359
1359
  findNodeByPath: (path) => {
1360
- const clean = _chunkMKQ3M6KWcjs.stripFolderIndexFromPath.call(void 0, path.replace(/\/$/, "").split("#")[0], folderIndexFile);
1361
- return _nullishCoalesce(_chunkMKQ3M6KWcjs.findDocNodeByPath.call(void 0, clean, structure), () => ( null));
1360
+ const clean = _chunkBGEPK3JEcjs.stripFolderIndexFromPath.call(void 0, path.replace(/\/$/, "").split("#")[0], folderIndexFile);
1361
+ return _nullishCoalesce(_chunkBGEPK3JEcjs.findDocNodeByPath.call(void 0, clean, structure), () => ( null));
1362
1362
  },
1363
1363
  selectNode
1364
1364
  });
@@ -1531,7 +1531,7 @@ function DocViewerContent({
1531
1531
  label: _nullishCoalesce(_optionalChain([backButton, 'optionalAccess', _23 => _23.label]), () => ( "Back to home")),
1532
1532
  onClick: () => router.push(_nullishCoalesce(_optionalChain([backButton, 'optionalAccess', _24 => _24.href]), () => ( "/")))
1533
1533
  };
1534
- const docSearch = _chunkRAYN22CPcjs.useDocSearch.call(void 0, {
1534
+ const docSearch = _chunkEWZRKT7Ocjs.useDocSearch.call(void 0, {
1535
1535
  source: chatSource,
1536
1536
  baseRoute,
1537
1537
  searchEndpoint,
@@ -1555,7 +1555,7 @@ function DocViewerContent({
1555
1555
  onResolveLink: resolveLink
1556
1556
  });
1557
1557
  }, [content, renderContent, navigateToDoc, sourceId, resolveLink]);
1558
- const selectedNodeDocType = selectedPath && structure.length > 0 ? _optionalChain([_chunkMKQ3M6KWcjs.findDocNodeByPath.call(void 0, selectedPath, structure), 'optionalAccess', _25 => _25.documentType]) : void 0;
1558
+ const selectedNodeDocType = selectedPath && structure.length > 0 ? _optionalChain([_chunkBGEPK3JEcjs.findDocNodeByPath.call(void 0, selectedPath, structure), 'optionalAccess', _25 => _25.documentType]) : void 0;
1559
1559
  const activeDocType = _nullishCoalesce(_optionalChain([content, 'optionalAccess', _26 => _26.documentType]), () => ( selectedNodeDocType));
1560
1560
  const isMarkdownContent = !activeDocType || activeDocType === "markdown";
1561
1561
  const showStickyNav = isMarkdownContent;
@@ -1566,9 +1566,9 @@ function DocViewerContent({
1566
1566
  const containerBgStyle = colorPalette.containerBackground !== "transparent" ? { backgroundColor: colorPalette.containerBackground } : {};
1567
1567
  const defaultEmptyText = structure.length > 0 ? "Select a document from the sidebar to view" : "No documents yet. Add content from the admin panel.";
1568
1568
  const resolvedEmptyText = emptyStateText || defaultEmptyText;
1569
- const inner = /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { style: { ...bgStyle, ...containerBgStyle }, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMKQ3M6KWcjs.PageLayout, { title, subtitle, titleSize: "h1", titleWrap: true, backButton: _nullishCoalesce(backCfg, () => ( void 0)), children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "w-full flex flex-col gap-10", children: [
1569
+ const inner = /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { style: { ...bgStyle, ...containerBgStyle }, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBGEPK3JEcjs.PageLayout, { title, subtitle, titleSize: "h1", titleWrap: true, backButton: _nullishCoalesce(backCfg, () => ( void 0)), children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "w-full flex flex-col gap-10", children: [
1570
1570
  showAIChat && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1571
- _chunkRAYN22CPcjs.DocSearchBar,
1571
+ _chunkEWZRKT7Ocjs.DocSearchBar,
1572
1572
  {
1573
1573
  placeholder: `Search ${_optionalChain([sidebarLabel, 'optionalAccess', _30 => _30.toLowerCase, 'call', _31 => _31()]) || "documents"}...`,
1574
1574
  query: docSearch.query,
@@ -1589,7 +1589,7 @@ function DocViewerContent({
1589
1589
  !error && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col lg:flex-row gap-6 lg:gap-10 items-start flex-1", children: [
1590
1590
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "w-full lg:w-[320px] lg:shrink-0", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "lg:sticky lg:top-20", children: isLoadingStructure ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, CategorySidebarSkeleton, {}) : /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
1591
1591
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, PersistentMobileDropdown, { isLoading: false, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1592
- _chunkMKQ3M6KWcjs.MobileNavigationDropdown,
1592
+ _chunkBGEPK3JEcjs.MobileNavigationDropdown,
1593
1593
  {
1594
1594
  nodes: structure,
1595
1595
  selectedPath,
@@ -1603,7 +1603,7 @@ function DocViewerContent({
1603
1603
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, PersistentSidebar, { isLoading: false, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "hidden lg:block", children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "space-y-4", children: [
1604
1604
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h3", { className: "text-[14px] font-['Azeret_Mono'] font-semibold uppercase text-ods-text-secondary tracking-[-0.02em] leading-[1.43em]", children: sidebarLabel }),
1605
1605
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1606
- _chunkMKQ3M6KWcjs.MultiLevelNavigation,
1606
+ _chunkBGEPK3JEcjs.MultiLevelNavigation,
1607
1607
  {
1608
1608
  nodes: structure,
1609
1609
  selectedPath,
@@ -1648,7 +1648,7 @@ function DocViewerContent({
1648
1648
  showStickyNav && content && stickyNavSections.length > 0 && !isLoadingContent && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "hidden lg:block", children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "sticky top-24", children: [
1649
1649
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h3", { className: "text-[14px] font-['Azeret_Mono'] font-semibold uppercase text-ods-text-secondary tracking-[-0.02em] leading-[1.43em] mb-4", children: "ON THIS PAGE" }),
1650
1650
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1651
- _chunkMKQ3M6KWcjs.StickySectionNav,
1651
+ _chunkBGEPK3JEcjs.StickySectionNav,
1652
1652
  {
1653
1653
  sections: stickyNavSections,
1654
1654
  activeSection,
@@ -1663,7 +1663,7 @@ function DocViewerContent({
1663
1663
  ) })
1664
1664
  ] })
1665
1665
  ] }) }) });
1666
- return shell ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMKQ3M6KWcjs.PageShell, { contentClassName: `${bgClass} ${className}`, children: inner }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: `page-shell-content ${bgClass} ${className}`.trim(), children: inner });
1666
+ return shell ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBGEPK3JEcjs.PageShell, { contentClassName: `${bgClass} ${className}`, children: inner }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: `page-shell-content ${bgClass} ${className}`.trim(), children: inner });
1667
1667
  }
1668
1668
 
1669
1669
  // src/components/docs/skeletons.tsx
@@ -1759,11 +1759,11 @@ function EmbedSkeleton({ documentType } = {}) {
1759
1759
 
1760
1760
  var DEFAULT_TITLE = "Documents";
1761
1761
  var defaultFallbackRenderer = () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "text-center py-16", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-ods-text-secondary", children: "Unsupported document type" }) });
1762
- var defaultPdfRenderer = (content, handlers) => content.fileUrl ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkW724RQMPcjs.PdfViewer, { src: content.fileUrl, fileName: content.fileName }) : defaultFallbackRenderer(content, handlers);
1763
- var defaultGoogleSheetRenderer = (content, handlers) => content.externalUrl ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkW724RQMPcjs.GoogleSheetsViewer, { externalUrl: content.externalUrl, fileName: content.fileName }) : defaultFallbackRenderer(content, handlers);
1764
- var defaultFigmaRenderer = (content, handlers) => content.externalUrl ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMKQ3M6KWcjs.FigmaEmbed, { url: content.externalUrl, title: content.fileName, loading: "eager" }) : defaultFallbackRenderer(content, handlers);
1762
+ var defaultPdfRenderer = (content, handlers) => content.fileUrl ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGW3O6C35cjs.PdfViewer, { src: content.fileUrl, fileName: content.fileName }) : defaultFallbackRenderer(content, handlers);
1763
+ var defaultGoogleSheetRenderer = (content, handlers) => content.externalUrl ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGW3O6C35cjs.GoogleSheetsViewer, { externalUrl: content.externalUrl, fileName: content.fileName }) : defaultFallbackRenderer(content, handlers);
1764
+ var defaultFigmaRenderer = (content, handlers) => content.externalUrl ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBGEPK3JEcjs.FigmaEmbed, { url: content.externalUrl, title: content.fileName, loading: "eager" }) : defaultFallbackRenderer(content, handlers);
1765
1765
  var defaultFileRenderer = (content) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1766
- _chunkW724RQMPcjs.FileDownloadCard,
1766
+ _chunkGW3O6C35cjs.FileDownloadCard,
1767
1767
  {
1768
1768
  fileName: content.fileName,
1769
1769
  mimeType: content.mimeType,
@@ -1845,4 +1845,4 @@ function DocsHubPage({
1845
1845
 
1846
1846
 
1847
1847
  exports.PersistentFilterControls = PersistentFilterControls; exports.PersistentSearchContainer = PersistentSearchContainer; exports.PersistentSidebar = PersistentSidebar; exports.PersistentMobileDropdown = PersistentMobileDropdown; exports.UnifiedSkeleton = UnifiedSkeleton; exports.TextSkeleton = TextSkeleton; exports.InteractiveSkeleton = InteractiveSkeleton; exports.MediaSkeleton = MediaSkeleton; exports.CardSkeleton = CardSkeleton; exports.CardSkeletonGrid = CardSkeletonGrid; exports.AnnouncementBarSkeleton = AnnouncementBarSkeleton; exports.HeroSkeleton = HeroSkeleton; exports.SearchContainerSkeleton = SearchContainerSkeleton; exports.CategorySidebarSkeleton = CategorySidebarSkeleton; exports.BreadcrumbSkeleton = BreadcrumbSkeleton; exports.ResultsHeaderSkeleton = ResultsHeaderSkeleton; exports.TwoColumnLayoutSkeleton = TwoColumnLayoutSkeleton; exports.ArticleLayoutSkeleton = ArticleLayoutSkeleton; exports.VendorDetailLayoutSkeleton = VendorDetailLayoutSkeleton; exports.StatsSectionSkeleton = StatsSectionSkeleton; exports.BlogCardGridSkeleton = BlogCardGridSkeleton; exports.VendorGridSkeleton = VendorGridSkeleton; exports.SlackCommunitySkeleton = SlackCommunitySkeleton; exports.DocNavigationProvider = DocNavigationProvider; exports.useDocNavigation = useDocNavigation; exports.useDocumentTree = useDocumentTree; exports.useScrollSpy = useScrollSpy; exports.DocViewer = DocViewer; exports.MarkdownSkeleton = MarkdownSkeleton; exports.EmbedSkeleton = EmbedSkeleton; exports.DocsHubPage = DocsHubPage;
1848
- //# sourceMappingURL=chunk-HKBKABAN.cjs.map
1848
+ //# sourceMappingURL=chunk-WTNIY243.cjs.map