@flamingo-stack/openframe-frontend-core 0.0.596-2034.5686.1 → 0.0.596-2034.5696.1

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 (162) hide show
  1. package/dist/{chunk-QVOGALQE.cjs → chunk-4S5E7NOM.cjs} +5 -5
  2. package/dist/{chunk-QVOGALQE.cjs.map → chunk-4S5E7NOM.cjs.map} +1 -1
  3. package/dist/{chunk-FGHJ3BC7.js → chunk-6EBKO275.js} +3 -3
  4. package/dist/{chunk-Y6JB7X5Y.js → chunk-7L5ROE3Z.js} +3 -3
  5. package/dist/{chunk-A6YERC4N.js → chunk-AVIZUQRW.js} +2 -2
  6. package/dist/{chunk-D3Q3VYRU.cjs → chunk-AYVTVUZT.cjs} +15 -15
  7. package/dist/{chunk-D3Q3VYRU.cjs.map → chunk-AYVTVUZT.cjs.map} +1 -1
  8. package/dist/{chunk-25LZZY6E.cjs → chunk-B3NX4GZS.cjs} +3 -3
  9. package/dist/{chunk-25LZZY6E.cjs.map → chunk-B3NX4GZS.cjs.map} +1 -1
  10. package/dist/{chunk-OI7RNQAS.cjs → chunk-DVSTM6QK.cjs} +33 -33
  11. package/dist/{chunk-OI7RNQAS.cjs.map → chunk-DVSTM6QK.cjs.map} +1 -1
  12. package/dist/{chunk-SLIUM3VO.cjs → chunk-EQ3DAGD7.cjs} +43 -43
  13. package/dist/{chunk-SLIUM3VO.cjs.map → chunk-EQ3DAGD7.cjs.map} +1 -1
  14. package/dist/{chunk-MN4TFBRA.cjs → chunk-FCNICDWP.cjs} +9 -9
  15. package/dist/{chunk-MN4TFBRA.cjs.map → chunk-FCNICDWP.cjs.map} +1 -1
  16. package/dist/{chunk-YP56SX7C.cjs → chunk-FV5VGJE6.cjs} +3 -3
  17. package/dist/{chunk-YP56SX7C.cjs.map → chunk-FV5VGJE6.cjs.map} +1 -1
  18. package/dist/{chunk-QNZM43HU.js → chunk-GOD47MJM.js} +6 -4
  19. package/dist/{chunk-QNZM43HU.js.map → chunk-GOD47MJM.js.map} +1 -1
  20. package/dist/{chunk-AYMBMVOD.js → chunk-HFJSBIXL.js} +3 -3
  21. package/dist/{chunk-ZXEYS2XP.cjs → chunk-IMIR5V6E.cjs} +26 -24
  22. package/dist/chunk-IMIR5V6E.cjs.map +1 -0
  23. package/dist/{chunk-J5EA7PMY.js → chunk-KU3JQWYJ.js} +5 -5
  24. package/dist/{chunk-TYURDSIN.js → chunk-MF324FSD.js} +30 -30
  25. package/dist/chunk-MF324FSD.js.map +1 -0
  26. package/dist/{chunk-FIQIT6HX.js → chunk-MGBWMZEL.js} +2 -2
  27. package/dist/{chunk-YQYOEGAT.cjs → chunk-MIC4HHVZ.cjs} +23 -21
  28. package/dist/chunk-MIC4HHVZ.cjs.map +1 -0
  29. package/dist/{chunk-PO4ATWE4.js → chunk-N7SFQMCH.js} +2 -2
  30. package/dist/{chunk-E4YWJY3A.cjs → chunk-OEDUVTPT.cjs} +10 -10
  31. package/dist/{chunk-E4YWJY3A.cjs.map → chunk-OEDUVTPT.cjs.map} +1 -1
  32. package/dist/{chunk-3IT35YDV.cjs → chunk-OGTXZFFE.cjs} +71 -70
  33. package/dist/chunk-OGTXZFFE.cjs.map +1 -0
  34. package/dist/{chunk-GZ76RASF.js → chunk-P2SECY3U.js} +5 -5
  35. package/dist/{chunk-S7LV66HD.js → chunk-PTXOWFRB.js} +8 -7
  36. package/dist/chunk-PTXOWFRB.js.map +1 -0
  37. package/dist/{chunk-AGKFT4FA.js → chunk-PYWF5JJW.js} +5 -5
  38. package/dist/{chunk-TZK5N6AH.cjs → chunk-R5IWJONE.cjs} +187 -187
  39. package/dist/chunk-R5IWJONE.cjs.map +1 -0
  40. package/dist/{chunk-JVYNMMNE.js → chunk-SSSZ64YG.js} +5 -3
  41. package/dist/chunk-SSSZ64YG.js.map +1 -0
  42. package/dist/{chunk-IDDGXYES.cjs → chunk-SXVGFJ24.cjs} +22 -22
  43. package/dist/{chunk-IDDGXYES.cjs.map → chunk-SXVGFJ24.cjs.map} +1 -1
  44. package/dist/{chunk-ZVBYWM5Z.js → chunk-TRJJMZSQ.js} +2 -2
  45. package/dist/{chunk-BLYQD3PG.js → chunk-VD3ZAA2O.js} +3 -3
  46. package/dist/{chunk-E7MTTLKC.js → chunk-VNSRNVPD.js} +2 -2
  47. package/dist/{chunk-E7MTTLKC.js.map → chunk-VNSRNVPD.js.map} +1 -1
  48. package/dist/{chunk-TDLETTI4.cjs → chunk-WRWXND3X.cjs} +10 -10
  49. package/dist/{chunk-TDLETTI4.cjs.map → chunk-WRWXND3X.cjs.map} +1 -1
  50. package/dist/{chunk-L7GNBUXF.cjs → chunk-YBPFIXV4.cjs} +2 -2
  51. package/dist/{chunk-L7GNBUXF.cjs.map → chunk-YBPFIXV4.cjs.map} +1 -1
  52. package/dist/{chunk-HPUD7X67.cjs → chunk-YNO4DEXK.cjs} +4 -4
  53. package/dist/{chunk-HPUD7X67.cjs.map → chunk-YNO4DEXK.cjs.map} +1 -1
  54. package/dist/components/case-studies/index.cjs +9 -9
  55. package/dist/components/case-studies/index.js +3 -3
  56. package/dist/components/chat/index.cjs +2 -2
  57. package/dist/components/chat/index.js +1 -1
  58. package/dist/components/contact/contact-form.d.ts.map +1 -1
  59. package/dist/components/contact/index.cjs +4 -4
  60. package/dist/components/contact/index.js +3 -3
  61. package/dist/components/docs/index.cjs +7 -7
  62. package/dist/components/docs/index.js +6 -6
  63. package/dist/components/embeds/index.cjs +4 -4
  64. package/dist/components/embeds/index.js +3 -3
  65. package/dist/components/faq/index.cjs +4 -4
  66. package/dist/components/faq/index.js +3 -3
  67. package/dist/components/features/auth/terms-agreement-label.d.ts.map +1 -1
  68. package/dist/components/features/index.cjs +3 -3
  69. package/dist/components/features/index.js +2 -2
  70. package/dist/components/help-center-pages/index.cjs +23 -23
  71. package/dist/components/help-center-pages/index.js +14 -14
  72. package/dist/components/index.cjs +38 -38
  73. package/dist/components/index.js +13 -13
  74. package/dist/components/meeting-scheduler/booking-form.d.ts +9 -3
  75. package/dist/components/meeting-scheduler/booking-form.d.ts.map +1 -1
  76. package/dist/components/meeting-scheduler/index.cjs +75 -50
  77. package/dist/components/meeting-scheduler/index.cjs.map +1 -1
  78. package/dist/components/meeting-scheduler/index.d.ts +12 -1
  79. package/dist/components/meeting-scheduler/index.d.ts.map +1 -1
  80. package/dist/components/meeting-scheduler/index.js +53 -28
  81. package/dist/components/meeting-scheduler/index.js.map +1 -1
  82. package/dist/components/navigation/header-global-search.d.ts.map +1 -1
  83. package/dist/components/navigation/index.cjs +6 -6
  84. package/dist/components/navigation/index.js +5 -5
  85. package/dist/components/onboarding-guides/index.cjs +6 -6
  86. package/dist/components/onboarding-guides/index.js +5 -5
  87. package/dist/components/tickets/index.cjs +7 -7
  88. package/dist/components/tickets/index.js +6 -6
  89. package/dist/components/tickets/ticket-open-form.d.ts.map +1 -1
  90. package/dist/components/ui/admin-form-modal.d.ts.map +1 -1
  91. package/dist/components/ui/benefit-card.d.ts +1 -1
  92. package/dist/components/ui/benefit-card.d.ts.map +1 -1
  93. package/dist/components/ui/checkbox-block.d.ts +2 -1
  94. package/dist/components/ui/checkbox-block.d.ts.map +1 -1
  95. package/dist/components/ui/icon-tile.d.ts +3 -2
  96. package/dist/components/ui/icon-tile.d.ts.map +1 -1
  97. package/dist/components/ui/index.cjs +3 -3
  98. package/dist/components/ui/index.js +2 -2
  99. package/dist/components/ui/policy-link.d.ts +9 -1
  100. package/dist/components/ui/policy-link.d.ts.map +1 -1
  101. package/dist/hooks/use-meeting-booking.d.ts +2 -0
  102. package/dist/hooks/use-meeting-booking.d.ts.map +1 -1
  103. package/dist/index.cjs +9 -7
  104. package/dist/index.cjs.map +1 -1
  105. package/dist/index.js +8 -6
  106. package/dist/index.js.map +1 -1
  107. package/dist/schemas/meeting-booking-schema.cjs +4 -0
  108. package/dist/schemas/meeting-booking-schema.cjs.map +1 -1
  109. package/dist/schemas/meeting-booking-schema.d.ts +2 -0
  110. package/dist/schemas/meeting-booking-schema.d.ts.map +1 -1
  111. package/dist/schemas/meeting-booking-schema.js +4 -1
  112. package/dist/schemas/meeting-booking-schema.js.map +1 -1
  113. package/dist/utils/hubspot-collected-forms.d.ts +22 -0
  114. package/dist/utils/hubspot-collected-forms.d.ts.map +1 -0
  115. package/dist/utils/hubspot-meetings-convention.d.ts +3 -1
  116. package/dist/utils/hubspot-meetings-convention.d.ts.map +1 -1
  117. package/dist/utils/index.cjs +5 -1
  118. package/dist/utils/index.cjs.map +1 -1
  119. package/dist/utils/index.d.ts +1 -0
  120. package/dist/utils/index.d.ts.map +1 -1
  121. package/dist/utils/index.js +5 -2
  122. package/dist/utils/index.js.map +1 -1
  123. package/package.json +1 -1
  124. package/src/__tests__/meeting-scheduler-details-first.test.tsx +25 -3
  125. package/src/components/contact/contact-form.tsx +2 -0
  126. package/src/components/features/auth/terms-agreement-label.tsx +6 -16
  127. package/src/components/features/video-center-badge.tsx +2 -2
  128. package/src/components/meeting-scheduler/booking-form.tsx +37 -13
  129. package/src/components/meeting-scheduler/index.tsx +56 -32
  130. package/src/components/navigation/header-global-search.tsx +2 -0
  131. package/src/components/tickets/ticket-open-form.tsx +2 -1
  132. package/src/components/ui/admin-form-modal.tsx +2 -0
  133. package/src/components/ui/benefit-card.tsx +5 -1
  134. package/src/components/ui/checkbox-block.tsx +4 -1
  135. package/src/components/ui/icon-tile.tsx +3 -2
  136. package/src/components/ui/policy-link.tsx +20 -2
  137. package/src/hooks/use-meeting-booking.ts +4 -1
  138. package/src/schemas/meeting-booking-schema.ts +5 -0
  139. package/src/styles/app-globals.css +1 -1
  140. package/src/styles/index.css +1 -0
  141. package/src/styles/ods-effects.css +53 -0
  142. package/src/utils/hubspot-collected-forms.ts +19 -0
  143. package/src/utils/hubspot-meetings-convention.ts +4 -2
  144. package/src/utils/index.ts +1 -0
  145. package/dist/chunk-3IT35YDV.cjs.map +0 -1
  146. package/dist/chunk-JVYNMMNE.js.map +0 -1
  147. package/dist/chunk-S7LV66HD.js.map +0 -1
  148. package/dist/chunk-TYURDSIN.js.map +0 -1
  149. package/dist/chunk-TZK5N6AH.cjs.map +0 -1
  150. package/dist/chunk-YQYOEGAT.cjs.map +0 -1
  151. package/dist/chunk-ZXEYS2XP.cjs.map +0 -1
  152. /package/dist/{chunk-FGHJ3BC7.js.map → chunk-6EBKO275.js.map} +0 -0
  153. /package/dist/{chunk-Y6JB7X5Y.js.map → chunk-7L5ROE3Z.js.map} +0 -0
  154. /package/dist/{chunk-A6YERC4N.js.map → chunk-AVIZUQRW.js.map} +0 -0
  155. /package/dist/{chunk-AYMBMVOD.js.map → chunk-HFJSBIXL.js.map} +0 -0
  156. /package/dist/{chunk-J5EA7PMY.js.map → chunk-KU3JQWYJ.js.map} +0 -0
  157. /package/dist/{chunk-FIQIT6HX.js.map → chunk-MGBWMZEL.js.map} +0 -0
  158. /package/dist/{chunk-PO4ATWE4.js.map → chunk-N7SFQMCH.js.map} +0 -0
  159. /package/dist/{chunk-GZ76RASF.js.map → chunk-P2SECY3U.js.map} +0 -0
  160. /package/dist/{chunk-AGKFT4FA.js.map → chunk-PYWF5JJW.js.map} +0 -0
  161. /package/dist/{chunk-ZVBYWM5Z.js.map → chunk-TRJJMZSQ.js.map} +0 -0
  162. /package/dist/{chunk-BLYQD3PG.js.map → chunk-VD3ZAA2O.js.map} +0 -0
@@ -128,9 +128,20 @@ export declare const MEETING_SCHEDULER_H = "md:h-[34.375rem] lg:h-[23.75rem]";
128
128
  * tablet and desktop, and the calendar stage fits the same box at both — the
129
129
  * times column scrolls inside it as it always has.
130
130
  *
131
+ * PHONES get a stated height too — the one place this flow departs from
132
+ * slot-first's "the page is the scroller". Slot-first's two stages are the
133
+ * same shape on a phone (calendar + a capped times list either way), so it
134
+ * needs none. Details-first's are not: the form stage, the calendar stage and
135
+ * the two-line confirmation each have their own natural height, and a paid
136
+ * landing page that grows and shrinks by tens of pixels on every step reads as
137
+ * broken. 812px is the calendar stage's natural height at 375px (header strip
138
+ * + six fixed weeks + the 9.75rem chip cap), so that stage fits exactly and the
139
+ * form stage — shorter on the shipped links — sits in it; a link declaring more
140
+ * questions scrolls the form inside the card, as it already does from `md`.
141
+ *
131
142
  * Hosts read it through `SCHEDULER_FLOW_PRESETS[flow].height`, never directly.
132
143
  */
133
- export declare const MEETING_SCHEDULER_DETAILS_FIRST_H = "md:h-[39.875rem]";
144
+ export declare const MEETING_SCHEDULER_DETAILS_FIRST_H = "h-[50.75rem] md:h-[39.875rem]";
134
145
  export type SchedulerFlow = 'slot-first' | 'details-first';
135
146
  /** The flow every existing embed gets — the ONE spelling of the default. */
136
147
  export declare const DEFAULT_SCHEDULER_FLOW: SchedulerFlow;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/meeting-scheduler/index.tsx"],"names":[],"mappings":"AA0CA,OAAO,KAAK,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAKtD,OAAO,EAEL,KAAK,mBAAmB,EACxB,KAAK,mBAAmB,EACxB,KAAK,uBAAuB,EAC5B,KAAK,WAAW,EACjB,MAAM,sCAAsC,CAAC;AAI9C,OAAO,EAA0D,KAAK,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAwB/G,MAAM,WAAW,4BAA4B;IAC3C,kFAAkF;IAClF,SAAS,EAAE,MAAM,CAAC;IAClB,2FAA2F;IAC3F,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,iFAAiF;IACjF,mBAAmB,CAAC,EAAE,mBAAmB,CAAC;IAC1C,wEAAwE;IACxE,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,8DAA8D;IAC9D,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B,mEAAmE;IACnE,KAAK,CAAC,EAAE,WAAW,EAAE,CAAC;IACtB,sFAAsF;IACtF,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,yFAAyF;IACzF,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;;;;;OAMG;IACH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AAC;IACjB,gEAAgE;IAChE,MAAM,CAAC,EAAE,SAAS,CAAC;IACnB,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB,+BAQA;AAkBD,wBAAgB,uBAAuB,CAAC,EACtC,SAAS,EACT,UAAe,EACf,mBAAmB,EACnB,KAAK,EACL,WAAW,EACX,KAAK,EACL,eAAe,EACf,WAAW,EACX,MAAM,EACN,QAAQ,EACR,SAAS,EACT,IAA6B,EAC7B,WAAW,EAAE,WAAyB,EACtC,gBAAgB,GACjB,EAAE,4BAA4B,+BA+gB9B;AAKD,OAAO,EACL,WAAW,EACX,mBAAmB,EACnB,KAAK,gBAAgB,EACrB,KAAK,eAAe,EACpB,KAAK,gBAAgB,EACrB,KAAK,kBAAkB,GACxB,MAAM,gBAAgB,CAAC;AAExB,OAAO,EACL,yBAAyB,EACzB,oCAAoC,EACpC,KAAK,8BAA8B,GACpC,MAAM,aAAa,CAAC;AACrB,YAAY,EAAE,mBAAmB,EAAE,mBAAmB,EAAE,uBAAuB,EAAE,WAAW,EAAE,CAAC;AAC/F,YAAY,EAAE,cAAc,EAAE,sBAAsB,EAAE,MAAM,sCAAsC,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/meeting-scheduler/index.tsx"],"names":[],"mappings":"AA0CA,OAAO,KAAK,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAKtD,OAAO,EAEL,KAAK,mBAAmB,EACxB,KAAK,mBAAmB,EACxB,KAAK,uBAAuB,EAC5B,KAAK,WAAW,EACjB,MAAM,sCAAsC,CAAC;AAI9C,OAAO,EAA0D,KAAK,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAwB/G,MAAM,WAAW,4BAA4B;IAC3C,kFAAkF;IAClF,SAAS,EAAE,MAAM,CAAC;IAClB,2FAA2F;IAC3F,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,iFAAiF;IACjF,mBAAmB,CAAC,EAAE,mBAAmB,CAAC;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,EAAE,MAAM,CAAC;IAAC,UAAU,CAAC,EAAE,MAAM,CAAA;CAAE,CAStG,CAAC;AAqDF;;;;;;GAMG;AACH,wBAAgB,qBAAqB,CAAC,EACpC,IAA6B,EAC7B,SAAS,EACT,OAAO,EACP,MAAM,EACN,QAAQ,GACT,EAAE;IACD,IAAI,CAAC,EAAE,aAAa,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,gHAAgH;IAChH,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,gEAAgE;IAChE,MAAM,CAAC,EAAE,SAAS,CAAC;IACnB,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB,+BAQA;AAkBD,wBAAgB,uBAAuB,CAAC,EACtC,SAAS,EACT,UAAe,EACf,mBAAmB,EACnB,KAAK,EACL,WAAW,EACX,KAAK,EACL,eAAe,EACf,WAAW,EACX,MAAM,EACN,QAAQ,EACR,SAAS,EACT,IAA6B,EAC7B,WAAW,EAAE,WAAyB,EACtC,gBAAgB,GACjB,EAAE,4BAA4B,+BA4hB9B;AAKD,OAAO,EACL,WAAW,EACX,mBAAmB,EACnB,KAAK,gBAAgB,EACrB,KAAK,eAAe,EACpB,KAAK,gBAAgB,EACrB,KAAK,kBAAkB,GACxB,MAAM,gBAAgB,CAAC;AAExB,OAAO,EACL,yBAAyB,EACzB,oCAAoC,EACpC,KAAK,8BAA8B,GACpC,MAAM,aAAa,CAAC;AACrB,YAAY,EAAE,mBAAmB,EAAE,mBAAmB,EAAE,uBAAuB,EAAE,WAAW,EAAE,CAAC;AAC/F,YAAY,EAAE,cAAc,EAAE,sBAAsB,EAAE,MAAM,sCAAsC,CAAC"}
@@ -13,6 +13,7 @@ import {
13
13
  BackButton,
14
14
  CheckboxBlock,
15
15
  DatePickerCalendar,
16
+ HUBSPOT_DO_NOT_COLLECT_FORM_PROPS,
16
17
  HoneypotField,
17
18
  MAX_MONTH_OFFSET,
18
19
  RadioGroup,
@@ -23,7 +24,7 @@ import {
23
24
  SelectTrigger,
24
25
  SelectValue,
25
26
  Textarea
26
- } from "../../chunk-TYURDSIN.js";
27
+ } from "../../chunk-MF324FSD.js";
27
28
  import "../../chunk-L2SLFCXP.js";
28
29
  import "../../chunk-BJXDHKUX.js";
29
30
  import {
@@ -43,7 +44,7 @@ import {
43
44
  } from "../../chunk-KOLVBEW5.js";
44
45
  import {
45
46
  useIsHydrated
46
- } from "../../chunk-E7MTTLKC.js";
47
+ } from "../../chunk-VNSRNVPD.js";
47
48
  import "../../chunk-5LIDR7HL.js";
48
49
  import "../../chunk-XXMHLZ3Y.js";
49
50
  import "../../chunk-LPMDCQLL.js";
@@ -246,6 +247,7 @@ var AVAILABILITY_STALE_MS = 0;
246
247
  function meetingAvailabilityKey(apiBaseUrl, meetingId, monthOffset) {
247
248
  return ["meeting-availability", apiBaseUrl, meetingId, monthOffset];
248
249
  }
250
+ var BOOKING_IN_FLIGHT_MESSAGE = "Already submitting";
249
251
  function useMeetingBooking(options) {
250
252
  const { meetingId, apiBaseUrl = "", initialAvailability } = options;
251
253
  const queryClient = useQueryClient();
@@ -303,7 +305,7 @@ function useMeetingBooking(options) {
303
305
  const { mutateAsync } = bookMutation;
304
306
  const book = useCallback(
305
307
  async (payload) => {
306
- if (submittingRef.current !== null) return { ok: false, code: "VALIDATION", message: "Already submitting" };
308
+ if (submittingRef.current !== null) return { ok: false, code: "VALIDATION", message: BOOKING_IN_FLIGHT_MESSAGE };
307
309
  const submitToken = {};
308
310
  submittingRef.current = submitToken;
309
311
  try {
@@ -588,7 +590,7 @@ function BookingForm({
588
590
  children: submitLabel ?? DEFAULT_SUBMIT_LABEL
589
591
  }
590
592
  );
591
- return /* @__PURE__ */ jsxs("form", { onSubmit: submit, className: FORM_STACK, noValidate: true, children: [
593
+ return /* @__PURE__ */ jsxs("form", { onSubmit: submit, className: FORM_STACK, noValidate: true, ...HUBSPOT_DO_NOT_COLLECT_FORM_PROPS, children: [
592
594
  /* @__PURE__ */ jsx(HoneypotField, { ...honeypotInputProps }),
593
595
  fieldRows ? /* @__PURE__ */ jsxs(Fragment2, { children: [
594
596
  placedRows.map((row) => /* @__PURE__ */ jsx("div", { className: ROW_GRID, children: row.map((slot, slotIndex) => /* @__PURE__ */ jsx("div", { className: slotColumnClass(row, slot, slotIndex), children: slotNode(slot.name) }, slot.name)) }, row.map((s) => s.name).join("|"))),
@@ -663,11 +665,15 @@ function BookingForm({
663
665
  ] }) : /* @__PURE__ */ jsx("div", { className: FOOTER_BARE_CLASS, children: submitButton })
664
666
  ] });
665
667
  }
666
- function BookingFormSkeleton({ fieldRows, footerNote }) {
668
+ function BookingFormSkeleton({
669
+ fieldRows,
670
+ consent,
671
+ footerNote
672
+ }) {
667
673
  return /* @__PURE__ */ jsxs("div", { className: cn("flex-1", FORM_STACK), children: [
668
674
  skeletonRows(fieldRows ?? DEFAULT_FIELD_ROWS).map((row) => /* @__PURE__ */ jsx("div", { className: ROW_GRID, children: row.map((slot, slotIndex) => /* @__PURE__ */ jsx(Skeleton, { className: cn(FIELD_SKELETON_CLASS, slotColumnClass(row, slot, slotIndex)) }, slot.name)) }, row.map((s) => s.name).join("|"))),
669
675
  !fieldRows && /* @__PURE__ */ jsx(Skeleton, { className: "h-[7.75rem] w-full" }),
670
- /* @__PURE__ */ jsx(Skeleton, { className: "h-[4.25rem] w-full" }),
676
+ consent && /* @__PURE__ */ jsx(Skeleton, { className: "h-[4.25rem] w-full" }),
671
677
  footerNote ? /* @__PURE__ */ jsxs("div", { className: FOOTER_ROW_CLASS, children: [
672
678
  /* @__PURE__ */ jsx(Skeleton, { className: "h-5 min-w-40 flex-1" }),
673
679
  /* @__PURE__ */ jsx(Skeleton, { className: cn("h-12 w-full", SUBMIT_WIDE_CLASS) })
@@ -676,10 +682,17 @@ function BookingFormSkeleton({ fieldRows, footerNote }) {
676
682
  }
677
683
  function normalizeFieldRows(fieldRows, resolves = () => true) {
678
684
  const seen = /* @__PURE__ */ new Set();
679
- const rows = fieldRows.map((row) => {
680
- const kept = row.filter((slot) => resolves(slot.name) && !seen.has(slot.name) && Boolean(seen.add(slot.name)));
681
- return kept.length === row.length ? kept : kept.map((slot) => ({ name: slot.name }));
682
- }).filter((row) => row.length > 0);
685
+ const rows = [];
686
+ for (const row of fieldRows) {
687
+ const kept = [];
688
+ for (const slot of row) {
689
+ if (!resolves(slot.name) || seen.has(slot.name)) continue;
690
+ seen.add(slot.name);
691
+ kept.push(slot);
692
+ }
693
+ if (kept.length === 0) continue;
694
+ rows.push(kept.length === row.length ? kept : kept.map((slot) => ({ name: slot.name })));
695
+ }
683
696
  const named = new Set(fieldRows.flat().map((slot) => slot.name));
684
697
  const unplacedBuiltIns = BUILT_IN_BOOKING_FIELDS.filter((f) => !named.has(f.name));
685
698
  return { rows, unplacedBuiltIns, named };
@@ -1260,7 +1273,7 @@ var ACTION_PANEL_CLASS = "flex-1 min-w-0 flex flex-col md:min-h-0 lg:p-[var(--sp
1260
1273
  var PANEL_STEP_CLASS = "p-[var(--spacing-system-l)] md:min-h-0 md:overflow-y-auto lg:p-0";
1261
1274
  var STEP_PANEL_CLASS = cn("flex flex-1 flex-col", PANEL_STEP_CLASS);
1262
1275
  var MEETING_SCHEDULER_H = "md:h-[34.375rem] lg:h-[23.75rem]";
1263
- var MEETING_SCHEDULER_DETAILS_FIRST_H = "md:h-[39.875rem]";
1276
+ var MEETING_SCHEDULER_DETAILS_FIRST_H = "h-[50.75rem] md:h-[39.875rem]";
1264
1277
  var DEFAULT_SCHEDULER_FLOW = "slot-first";
1265
1278
  var SCHEDULER_FLOW_PRESETS = {
1266
1279
  "slot-first": { initialStep: "slot", height: MEETING_SCHEDULER_H, submitLabel: DEFAULT_SUBMIT_LABEL },
@@ -1407,11 +1420,11 @@ function HubSpotMeetingScheduler({
1407
1420
  setBookingError(null);
1408
1421
  }, []);
1409
1422
  const backToDetails = useCallback3(() => {
1410
- if (inFlightRef.current) return;
1423
+ if (postInFlight()) return;
1411
1424
  setSelectedSlot(null);
1412
1425
  setStep("details");
1413
1426
  setBookingError(null);
1414
- }, []);
1427
+ }, [postInFlight]);
1415
1428
  const stashDetails = useCallback3(
1416
1429
  (payload) => {
1417
1430
  setBookingError(null);
@@ -1428,7 +1441,7 @@ function HubSpotMeetingScheduler({
1428
1441
  const priorError = bookingError;
1429
1442
  setBookingError(null);
1430
1443
  const result = await book(payload);
1431
- if (!result.ok && result.message === "Already submitting") {
1444
+ if (!result.ok && result.message === BOOKING_IN_FLIGHT_MESSAGE) {
1432
1445
  setBookingError(priorError);
1433
1446
  return;
1434
1447
  }
@@ -1446,8 +1459,8 @@ function HubSpotMeetingScheduler({
1446
1459
  if (!detailsFirst) resetSignals();
1447
1460
  void refetchAvailability();
1448
1461
  } else {
1462
+ if (detailsFirst) setSelectedSlot(null);
1449
1463
  if (detailsFirst && (code === "VALIDATION" || code === "INVALID_EMAIL")) {
1450
- setSelectedSlot(null);
1451
1464
  setStep("details");
1452
1465
  }
1453
1466
  toast({
@@ -1461,16 +1474,26 @@ function HubSpotMeetingScheduler({
1461
1474
  );
1462
1475
  const escapeHatch = fallbackUrl ? /* @__PURE__ */ jsx6(Button, { variant: "outline", size: "small-legacy", href: fallbackUrl, openInNewTab: true, children: "Open in HubSpot" }) : null;
1463
1476
  const backEdge = detailsFirst ? step === "slot" ? backToDetails : onBack : step === "details" ? backToSlot : onBack;
1464
- const cardClass = cn(CARD_CLASS, preset.height, formOnly && "bg-ods-bg", className);
1477
+ const cardClass = cn(CARD_CLASS, preset.height, detailsFirst && "flex flex-col", formOnly && "bg-ods-bg", className);
1478
+ const innerClass = cn(CARD_INNER_CLASS, detailsFirst && "min-h-0 flex-1");
1479
+ const actionPanelClass = cn(ACTION_PANEL_CLASS, detailsFirst && "min-h-0 overflow-y-auto");
1480
+ const stepPanelClass = cn(STEP_PANEL_CLASS, detailsFirst && "min-h-0 overflow-y-auto");
1465
1481
  const degraded = (message) => /* @__PURE__ */ jsx6(SchedulerDegradedCard, { flow, className, message, action: escapeHatch });
1466
1482
  const degradedCard = degraded("We couldn't load available call times. Please try again shortly.");
1467
1483
  if (isLoadingAvailability && !availability) {
1468
- return /* @__PURE__ */ jsx6("div", { className: cardClass, children: /* @__PURE__ */ jsxs6("div", { className: CARD_INNER_CLASS, children: [
1484
+ return /* @__PURE__ */ jsx6("div", { className: cardClass, children: /* @__PURE__ */ jsxs6("div", { className: innerClass, children: [
1469
1485
  !formOnly && /* @__PURE__ */ jsx6(ContextPanelSkeleton, { onBack: backEdge, className: CONTEXT_PANEL_CLASS }),
1470
- /* @__PURE__ */ jsx6("div", { className: ACTION_PANEL_CLASS, children: detailsFirst && step === "details" ? (
1486
+ /* @__PURE__ */ jsx6("div", { className: actionPanelClass, children: formOnly ? (
1471
1487
  // The SAME wrapper the loaded form gets, so the skeleton never
1472
1488
  // states its own inset.
1473
- /* @__PURE__ */ jsx6("div", { className: STEP_PANEL_CLASS, children: /* @__PURE__ */ jsx6(BookingFormSkeleton, { fieldRows: detailsFormProps?.fieldRows, footerNote: preset.footerNote }) })
1489
+ /* @__PURE__ */ jsx6("div", { className: stepPanelClass, children: /* @__PURE__ */ jsx6(
1490
+ BookingFormSkeleton,
1491
+ {
1492
+ fieldRows: detailsFormProps?.fieldRows,
1493
+ consent: Boolean(detailsFormProps?.consent),
1494
+ footerNote: preset.footerNote
1495
+ }
1496
+ ) })
1474
1497
  ) : /* @__PURE__ */ jsx6(SlotPickerSkeleton, { monthOffset }) })
1475
1498
  ] }) });
1476
1499
  }
@@ -1478,7 +1501,7 @@ function HubSpotMeetingScheduler({
1478
1501
  if (!isNativelyBookable(availability)) {
1479
1502
  return degraded("This meeting type is booked directly on HubSpot.");
1480
1503
  }
1481
- return /* @__PURE__ */ jsx6("div", { className: cardClass, children: /* @__PURE__ */ jsxs6("div", { className: CARD_INNER_CLASS, children: [
1504
+ return /* @__PURE__ */ jsx6("div", { className: cardClass, children: /* @__PURE__ */ jsxs6("div", { className: innerClass, children: [
1482
1505
  !formOnly && /* @__PURE__ */ jsx6(
1483
1506
  SchedulerContextPanel,
1484
1507
  {
@@ -1502,14 +1525,14 @@ function HubSpotMeetingScheduler({
1502
1525
  className: CONTEXT_PANEL_CLASS
1503
1526
  }
1504
1527
  ),
1505
- /* @__PURE__ */ jsx6("div", { className: ACTION_PANEL_CLASS, children: step === "confirmed" && confirmation && timezone ? /* @__PURE__ */ jsx6("div", { className: STEP_PANEL_CLASS, children: /* @__PURE__ */ jsx6(Confirmation, { confirmation, timezone }) }) : step === "details" && (detailsFirst ? (
1528
+ /* @__PURE__ */ jsx6("div", { className: actionPanelClass, children: step === "confirmed" && confirmation && timezone ? /* @__PURE__ */ jsx6("div", { className: stepPanelClass, children: /* @__PURE__ */ jsx6(Confirmation, { confirmation, timezone }) }) : step === "details" && (detailsFirst ? (
1506
1529
  // The form is step ONE here: no slot yet, and `timezone` is null
1507
1530
  // on the server render, so neither may gate the PANEL. A link
1508
- // publishing no durations has no form worth showing — but while a
1509
- // refetch is in flight the form stays (a calendar skeleton is
1510
- // the wrong shape here).
1511
- durations.length > 0 || isFetchingAvailability
1512
- ) : durationMs != null && selectedSlot != null && timezone) ? /* @__PURE__ */ jsxs6("div", { className: cn(STEP_PANEL_CLASS, "gap-[var(--spacing-system-m)]"), children: [
1531
+ // publishing no durations has no form worth showing; it gets the
1532
+ // "nothing published" message below at every moment, refetch or
1533
+ // not — never a calendar skeleton in the form-only layout.
1534
+ durations.length > 0
1535
+ ) : durationMs != null && selectedSlot != null && timezone) ? /* @__PURE__ */ jsxs6("div", { className: cn(stepPanelClass, "gap-[var(--spacing-system-m)]"), children: [
1513
1536
  selectedSlot != null && durationMs != null && timezone != null && /* @__PURE__ */ jsxs6("p", { className: "text-ods-text-primary text-h4", children: [
1514
1537
  new Intl.DateTimeFormat(void 0, {
1515
1538
  timeZone: timezone,
@@ -1603,10 +1626,12 @@ function HubSpotMeetingScheduler({
1603
1626
  isSubmitting: detailsFirst ? isSubmitting : void 0
1604
1627
  }
1605
1628
  )
1606
- ) : durations.length === 0 && !isFetchingAvailability ? (
1629
+ ) : durations.length === 0 && (!isFetchingAvailability || formOnly) ? (
1607
1630
  // The LINK publishes nothing at all — a different thing from a
1608
1631
  // fully-booked month, and the only case the escape hatch is
1609
- // the right answer to.
1632
+ // the right answer to. In the form-only layout it holds through
1633
+ // a refetch too: the alternative frame is a calendar skeleton
1634
+ // where a form belongs.
1610
1635
  /* @__PURE__ */ jsxs6("div", { className: "flex flex-col items-start gap-[var(--spacing-system-m)]", children: [
1611
1636
  /* @__PURE__ */ jsx6("p", { className: "text-ods-text-secondary text-h6", children: "No call times are published right now." }),
1612
1637
  escapeHatch