@flamingo-stack/openframe-frontend-core 0.0.596-2034.5687.1 → 0.0.596
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{chunk-SQXNSIGS.cjs → chunk-4S5E7NOM.cjs} +5 -5
- package/dist/{chunk-SQXNSIGS.cjs.map → chunk-4S5E7NOM.cjs.map} +1 -1
- package/dist/{chunk-MRW4QU2L.js → chunk-6EBKO275.js} +3 -3
- package/dist/{chunk-5JMMSSMV.js → chunk-7L5ROE3Z.js} +3 -3
- package/dist/{chunk-PHNFKPWJ.js → chunk-AVIZUQRW.js} +2 -2
- package/dist/{chunk-XW4JIRYE.cjs → chunk-AYVTVUZT.cjs} +15 -15
- package/dist/{chunk-XW4JIRYE.cjs.map → chunk-AYVTVUZT.cjs.map} +1 -1
- package/dist/{chunk-KQ2X5FUP.cjs → chunk-B3NX4GZS.cjs} +3 -3
- package/dist/{chunk-KQ2X5FUP.cjs.map → chunk-B3NX4GZS.cjs.map} +1 -1
- package/dist/{chunk-Y3VGUQIW.cjs → chunk-DVSTM6QK.cjs} +33 -33
- package/dist/{chunk-Y3VGUQIW.cjs.map → chunk-DVSTM6QK.cjs.map} +1 -1
- package/dist/{chunk-WVSUQTPS.cjs → chunk-EQ3DAGD7.cjs} +43 -43
- package/dist/{chunk-WVSUQTPS.cjs.map → chunk-EQ3DAGD7.cjs.map} +1 -1
- package/dist/{chunk-H7NBAAIH.cjs → chunk-FCNICDWP.cjs} +9 -9
- package/dist/{chunk-H7NBAAIH.cjs.map → chunk-FCNICDWP.cjs.map} +1 -1
- package/dist/{chunk-6QBKSVAZ.cjs → chunk-FV5VGJE6.cjs} +3 -3
- package/dist/{chunk-6QBKSVAZ.cjs.map → chunk-FV5VGJE6.cjs.map} +1 -1
- package/dist/{chunk-XIEV46BX.js → chunk-GOD47MJM.js} +6 -4
- package/dist/{chunk-XIEV46BX.js.map → chunk-GOD47MJM.js.map} +1 -1
- package/dist/{chunk-PMIKKJMI.js → chunk-HFJSBIXL.js} +3 -3
- package/dist/{chunk-R6IV75YP.cjs → chunk-IMIR5V6E.cjs} +26 -24
- package/dist/chunk-IMIR5V6E.cjs.map +1 -0
- package/dist/{chunk-MEHPKLH5.js → chunk-KU3JQWYJ.js} +5 -5
- package/dist/{chunk-36PHDSTO.js → chunk-MF324FSD.js} +30 -30
- package/dist/chunk-MF324FSD.js.map +1 -0
- package/dist/{chunk-KJ4O6NSF.js → chunk-MGBWMZEL.js} +2 -2
- package/dist/{chunk-DYTFM2MX.cjs → chunk-MIC4HHVZ.cjs} +23 -21
- package/dist/chunk-MIC4HHVZ.cjs.map +1 -0
- package/dist/{chunk-PWXQBKFP.js → chunk-N7SFQMCH.js} +2 -2
- package/dist/{chunk-VNQ2LF6G.cjs → chunk-OEDUVTPT.cjs} +10 -10
- package/dist/{chunk-VNQ2LF6G.cjs.map → chunk-OEDUVTPT.cjs.map} +1 -1
- package/dist/{chunk-BTRH2YFY.cjs → chunk-OGTXZFFE.cjs} +71 -70
- package/dist/chunk-OGTXZFFE.cjs.map +1 -0
- package/dist/{chunk-EWBOBUCM.js → chunk-P2SECY3U.js} +5 -5
- package/dist/{chunk-NM5Q56PX.js → chunk-PTXOWFRB.js} +8 -7
- package/dist/chunk-PTXOWFRB.js.map +1 -0
- package/dist/{chunk-VZMCNCW5.js → chunk-PYWF5JJW.js} +5 -5
- package/dist/{chunk-JF56KVHW.cjs → chunk-R5IWJONE.cjs} +187 -187
- package/dist/chunk-R5IWJONE.cjs.map +1 -0
- package/dist/{chunk-2VGIM6WY.js → chunk-SSSZ64YG.js} +5 -3
- package/dist/chunk-SSSZ64YG.js.map +1 -0
- package/dist/{chunk-E2ALHISW.cjs → chunk-SXVGFJ24.cjs} +22 -22
- package/dist/{chunk-E2ALHISW.cjs.map → chunk-SXVGFJ24.cjs.map} +1 -1
- package/dist/{chunk-AOANH6ZJ.js → chunk-TRJJMZSQ.js} +2 -2
- package/dist/{chunk-47IZN43H.js → chunk-VD3ZAA2O.js} +3 -3
- package/dist/{chunk-E7MTTLKC.js → chunk-VNSRNVPD.js} +2 -2
- package/dist/{chunk-E7MTTLKC.js.map → chunk-VNSRNVPD.js.map} +1 -1
- package/dist/{chunk-SSUJ4Z62.cjs → chunk-WRWXND3X.cjs} +10 -10
- package/dist/{chunk-SSUJ4Z62.cjs.map → chunk-WRWXND3X.cjs.map} +1 -1
- package/dist/{chunk-L7GNBUXF.cjs → chunk-YBPFIXV4.cjs} +2 -2
- package/dist/{chunk-L7GNBUXF.cjs.map → chunk-YBPFIXV4.cjs.map} +1 -1
- package/dist/{chunk-26GIURMP.cjs → chunk-YNO4DEXK.cjs} +4 -4
- package/dist/{chunk-26GIURMP.cjs.map → chunk-YNO4DEXK.cjs.map} +1 -1
- package/dist/components/case-studies/index.cjs +9 -9
- package/dist/components/case-studies/index.js +3 -3
- package/dist/components/chat/index.cjs +2 -2
- package/dist/components/chat/index.js +1 -1
- package/dist/components/contact/contact-form.d.ts.map +1 -1
- package/dist/components/contact/index.cjs +4 -4
- package/dist/components/contact/index.js +3 -3
- package/dist/components/docs/index.cjs +7 -7
- package/dist/components/docs/index.js +6 -6
- package/dist/components/embeds/index.cjs +4 -4
- package/dist/components/embeds/index.js +3 -3
- package/dist/components/faq/index.cjs +4 -4
- package/dist/components/faq/index.js +3 -3
- package/dist/components/features/auth/terms-agreement-label.d.ts.map +1 -1
- package/dist/components/features/index.cjs +3 -3
- package/dist/components/features/index.js +2 -2
- package/dist/components/help-center-pages/index.cjs +23 -23
- package/dist/components/help-center-pages/index.js +14 -14
- package/dist/components/index.cjs +38 -38
- package/dist/components/index.js +13 -13
- package/dist/components/meeting-scheduler/booking-form.d.ts +8 -4
- package/dist/components/meeting-scheduler/booking-form.d.ts.map +1 -1
- package/dist/components/meeting-scheduler/index.cjs +53 -38
- package/dist/components/meeting-scheduler/index.cjs.map +1 -1
- package/dist/components/meeting-scheduler/index.d.ts +12 -1
- package/dist/components/meeting-scheduler/index.d.ts.map +1 -1
- package/dist/components/meeting-scheduler/index.js +31 -16
- package/dist/components/meeting-scheduler/index.js.map +1 -1
- package/dist/components/navigation/header-global-search.d.ts.map +1 -1
- package/dist/components/navigation/index.cjs +6 -6
- package/dist/components/navigation/index.js +5 -5
- package/dist/components/onboarding-guides/index.cjs +6 -6
- package/dist/components/onboarding-guides/index.js +5 -5
- package/dist/components/tickets/index.cjs +7 -7
- package/dist/components/tickets/index.js +6 -6
- package/dist/components/tickets/ticket-open-form.d.ts.map +1 -1
- package/dist/components/ui/admin-form-modal.d.ts.map +1 -1
- package/dist/components/ui/benefit-card.d.ts +1 -1
- package/dist/components/ui/benefit-card.d.ts.map +1 -1
- package/dist/components/ui/checkbox-block.d.ts +2 -1
- package/dist/components/ui/checkbox-block.d.ts.map +1 -1
- package/dist/components/ui/icon-tile.d.ts +3 -2
- package/dist/components/ui/icon-tile.d.ts.map +1 -1
- package/dist/components/ui/index.cjs +3 -3
- package/dist/components/ui/index.js +2 -2
- package/dist/components/ui/policy-link.d.ts +9 -1
- package/dist/components/ui/policy-link.d.ts.map +1 -1
- package/dist/index.cjs +9 -7
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +8 -6
- package/dist/index.js.map +1 -1
- package/dist/utils/hubspot-collected-forms.d.ts +22 -0
- package/dist/utils/hubspot-collected-forms.d.ts.map +1 -0
- package/dist/utils/hubspot-meetings-convention.d.ts +3 -1
- package/dist/utils/hubspot-meetings-convention.d.ts.map +1 -1
- package/dist/utils/index.cjs +5 -1
- package/dist/utils/index.cjs.map +1 -1
- package/dist/utils/index.d.ts +1 -0
- package/dist/utils/index.d.ts.map +1 -1
- package/dist/utils/index.js +5 -2
- package/dist/utils/index.js.map +1 -1
- package/package.json +1 -1
- package/src/__tests__/meeting-scheduler-details-first.test.tsx +25 -4
- package/src/components/contact/contact-form.tsx +2 -0
- package/src/components/features/auth/terms-agreement-label.tsx +6 -16
- package/src/components/features/video-center-badge.tsx +2 -2
- package/src/components/meeting-scheduler/booking-form.tsx +22 -7
- package/src/components/meeting-scheduler/index.tsx +39 -17
- package/src/components/navigation/header-global-search.tsx +2 -0
- package/src/components/tickets/ticket-open-form.tsx +2 -1
- package/src/components/ui/admin-form-modal.tsx +2 -0
- package/src/components/ui/benefit-card.tsx +5 -1
- package/src/components/ui/checkbox-block.tsx +4 -1
- package/src/components/ui/icon-tile.tsx +3 -2
- package/src/components/ui/policy-link.tsx +18 -2
- package/src/styles/app-globals.css +1 -1
- package/src/styles/index.css +1 -0
- package/src/styles/ods-effects.css +53 -0
- package/src/utils/hubspot-collected-forms.ts +19 -0
- package/src/utils/hubspot-meetings-convention.ts +4 -2
- package/src/utils/index.ts +1 -0
- package/dist/chunk-2VGIM6WY.js.map +0 -1
- package/dist/chunk-36PHDSTO.js.map +0 -1
- package/dist/chunk-BTRH2YFY.cjs.map +0 -1
- package/dist/chunk-DYTFM2MX.cjs.map +0 -1
- package/dist/chunk-JF56KVHW.cjs.map +0 -1
- package/dist/chunk-NM5Q56PX.js.map +0 -1
- package/dist/chunk-R6IV75YP.cjs.map +0 -1
- /package/dist/{chunk-MRW4QU2L.js.map → chunk-6EBKO275.js.map} +0 -0
- /package/dist/{chunk-5JMMSSMV.js.map → chunk-7L5ROE3Z.js.map} +0 -0
- /package/dist/{chunk-PHNFKPWJ.js.map → chunk-AVIZUQRW.js.map} +0 -0
- /package/dist/{chunk-PMIKKJMI.js.map → chunk-HFJSBIXL.js.map} +0 -0
- /package/dist/{chunk-MEHPKLH5.js.map → chunk-KU3JQWYJ.js.map} +0 -0
- /package/dist/{chunk-KJ4O6NSF.js.map → chunk-MGBWMZEL.js.map} +0 -0
- /package/dist/{chunk-PWXQBKFP.js.map → chunk-N7SFQMCH.js.map} +0 -0
- /package/dist/{chunk-EWBOBUCM.js.map → chunk-P2SECY3U.js.map} +0 -0
- /package/dist/{chunk-VZMCNCW5.js.map → chunk-PYWF5JJW.js.map} +0 -0
- /package/dist/{chunk-AOANH6ZJ.js.map → chunk-TRJJMZSQ.js.map} +0 -0
- /package/dist/{chunk-47IZN43H.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,E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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-
|
|
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-
|
|
47
|
+
} from "../../chunk-VNSRNVPD.js";
|
|
47
48
|
import "../../chunk-5LIDR7HL.js";
|
|
48
49
|
import "../../chunk-XXMHLZ3Y.js";
|
|
49
50
|
import "../../chunk-LPMDCQLL.js";
|
|
@@ -589,7 +590,7 @@ function BookingForm({
|
|
|
589
590
|
children: submitLabel ?? DEFAULT_SUBMIT_LABEL
|
|
590
591
|
}
|
|
591
592
|
);
|
|
592
|
-
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: [
|
|
593
594
|
/* @__PURE__ */ jsx(HoneypotField, { ...honeypotInputProps }),
|
|
594
595
|
fieldRows ? /* @__PURE__ */ jsxs(Fragment2, { children: [
|
|
595
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("|"))),
|
|
@@ -664,11 +665,15 @@ function BookingForm({
|
|
|
664
665
|
] }) : /* @__PURE__ */ jsx("div", { className: FOOTER_BARE_CLASS, children: submitButton })
|
|
665
666
|
] });
|
|
666
667
|
}
|
|
667
|
-
function BookingFormSkeleton({
|
|
668
|
+
function BookingFormSkeleton({
|
|
669
|
+
fieldRows,
|
|
670
|
+
consent,
|
|
671
|
+
footerNote
|
|
672
|
+
}) {
|
|
668
673
|
return /* @__PURE__ */ jsxs("div", { className: cn("flex-1", FORM_STACK), children: [
|
|
669
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("|"))),
|
|
670
675
|
!fieldRows && /* @__PURE__ */ jsx(Skeleton, { className: "h-[7.75rem] w-full" }),
|
|
671
|
-
/* @__PURE__ */ jsx(Skeleton, { className: "h-[4.25rem] w-full" }),
|
|
676
|
+
consent && /* @__PURE__ */ jsx(Skeleton, { className: "h-[4.25rem] w-full" }),
|
|
672
677
|
footerNote ? /* @__PURE__ */ jsxs("div", { className: FOOTER_ROW_CLASS, children: [
|
|
673
678
|
/* @__PURE__ */ jsx(Skeleton, { className: "h-5 min-w-40 flex-1" }),
|
|
674
679
|
/* @__PURE__ */ jsx(Skeleton, { className: cn("h-12 w-full", SUBMIT_WIDE_CLASS) })
|
|
@@ -1268,7 +1273,7 @@ var ACTION_PANEL_CLASS = "flex-1 min-w-0 flex flex-col md:min-h-0 lg:p-[var(--sp
|
|
|
1268
1273
|
var PANEL_STEP_CLASS = "p-[var(--spacing-system-l)] md:min-h-0 md:overflow-y-auto lg:p-0";
|
|
1269
1274
|
var STEP_PANEL_CLASS = cn("flex flex-1 flex-col", PANEL_STEP_CLASS);
|
|
1270
1275
|
var MEETING_SCHEDULER_H = "md:h-[34.375rem] lg:h-[23.75rem]";
|
|
1271
|
-
var MEETING_SCHEDULER_DETAILS_FIRST_H = "md:h-[39.875rem]";
|
|
1276
|
+
var MEETING_SCHEDULER_DETAILS_FIRST_H = "h-[50.75rem] md:h-[39.875rem]";
|
|
1272
1277
|
var DEFAULT_SCHEDULER_FLOW = "slot-first";
|
|
1273
1278
|
var SCHEDULER_FLOW_PRESETS = {
|
|
1274
1279
|
"slot-first": { initialStep: "slot", height: MEETING_SCHEDULER_H, submitLabel: DEFAULT_SUBMIT_LABEL },
|
|
@@ -1415,11 +1420,11 @@ function HubSpotMeetingScheduler({
|
|
|
1415
1420
|
setBookingError(null);
|
|
1416
1421
|
}, []);
|
|
1417
1422
|
const backToDetails = useCallback3(() => {
|
|
1418
|
-
if (
|
|
1423
|
+
if (postInFlight()) return;
|
|
1419
1424
|
setSelectedSlot(null);
|
|
1420
1425
|
setStep("details");
|
|
1421
1426
|
setBookingError(null);
|
|
1422
|
-
}, []);
|
|
1427
|
+
}, [postInFlight]);
|
|
1423
1428
|
const stashDetails = useCallback3(
|
|
1424
1429
|
(payload) => {
|
|
1425
1430
|
setBookingError(null);
|
|
@@ -1454,8 +1459,8 @@ function HubSpotMeetingScheduler({
|
|
|
1454
1459
|
if (!detailsFirst) resetSignals();
|
|
1455
1460
|
void refetchAvailability();
|
|
1456
1461
|
} else {
|
|
1462
|
+
if (detailsFirst) setSelectedSlot(null);
|
|
1457
1463
|
if (detailsFirst && (code === "VALIDATION" || code === "INVALID_EMAIL")) {
|
|
1458
|
-
setSelectedSlot(null);
|
|
1459
1464
|
setStep("details");
|
|
1460
1465
|
}
|
|
1461
1466
|
toast({
|
|
@@ -1469,16 +1474,26 @@ function HubSpotMeetingScheduler({
|
|
|
1469
1474
|
);
|
|
1470
1475
|
const escapeHatch = fallbackUrl ? /* @__PURE__ */ jsx6(Button, { variant: "outline", size: "small-legacy", href: fallbackUrl, openInNewTab: true, children: "Open in HubSpot" }) : null;
|
|
1471
1476
|
const backEdge = detailsFirst ? step === "slot" ? backToDetails : onBack : step === "details" ? backToSlot : onBack;
|
|
1472
|
-
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");
|
|
1473
1481
|
const degraded = (message) => /* @__PURE__ */ jsx6(SchedulerDegradedCard, { flow, className, message, action: escapeHatch });
|
|
1474
1482
|
const degradedCard = degraded("We couldn't load available call times. Please try again shortly.");
|
|
1475
1483
|
if (isLoadingAvailability && !availability) {
|
|
1476
|
-
return /* @__PURE__ */ jsx6("div", { className: cardClass, children: /* @__PURE__ */ jsxs6("div", { className:
|
|
1484
|
+
return /* @__PURE__ */ jsx6("div", { className: cardClass, children: /* @__PURE__ */ jsxs6("div", { className: innerClass, children: [
|
|
1477
1485
|
!formOnly && /* @__PURE__ */ jsx6(ContextPanelSkeleton, { onBack: backEdge, className: CONTEXT_PANEL_CLASS }),
|
|
1478
|
-
/* @__PURE__ */ jsx6("div", { className:
|
|
1486
|
+
/* @__PURE__ */ jsx6("div", { className: actionPanelClass, children: formOnly ? (
|
|
1479
1487
|
// The SAME wrapper the loaded form gets, so the skeleton never
|
|
1480
1488
|
// states its own inset.
|
|
1481
|
-
/* @__PURE__ */ jsx6("div", { className:
|
|
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
|
+
) })
|
|
1482
1497
|
) : /* @__PURE__ */ jsx6(SlotPickerSkeleton, { monthOffset }) })
|
|
1483
1498
|
] }) });
|
|
1484
1499
|
}
|
|
@@ -1486,7 +1501,7 @@ function HubSpotMeetingScheduler({
|
|
|
1486
1501
|
if (!isNativelyBookable(availability)) {
|
|
1487
1502
|
return degraded("This meeting type is booked directly on HubSpot.");
|
|
1488
1503
|
}
|
|
1489
|
-
return /* @__PURE__ */ jsx6("div", { className: cardClass, children: /* @__PURE__ */ jsxs6("div", { className:
|
|
1504
|
+
return /* @__PURE__ */ jsx6("div", { className: cardClass, children: /* @__PURE__ */ jsxs6("div", { className: innerClass, children: [
|
|
1490
1505
|
!formOnly && /* @__PURE__ */ jsx6(
|
|
1491
1506
|
SchedulerContextPanel,
|
|
1492
1507
|
{
|
|
@@ -1510,14 +1525,14 @@ function HubSpotMeetingScheduler({
|
|
|
1510
1525
|
className: CONTEXT_PANEL_CLASS
|
|
1511
1526
|
}
|
|
1512
1527
|
),
|
|
1513
|
-
/* @__PURE__ */ jsx6("div", { className:
|
|
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 ? (
|
|
1514
1529
|
// The form is step ONE here: no slot yet, and `timezone` is null
|
|
1515
1530
|
// on the server render, so neither may gate the PANEL. A link
|
|
1516
1531
|
// publishing no durations has no form worth showing; it gets the
|
|
1517
1532
|
// "nothing published" message below at every moment, refetch or
|
|
1518
1533
|
// not — never a calendar skeleton in the form-only layout.
|
|
1519
1534
|
durations.length > 0
|
|
1520
|
-
) : durationMs != null && selectedSlot != null && timezone) ? /* @__PURE__ */ jsxs6("div", { className: cn(
|
|
1535
|
+
) : durationMs != null && selectedSlot != null && timezone) ? /* @__PURE__ */ jsxs6("div", { className: cn(stepPanelClass, "gap-[var(--spacing-system-m)]"), children: [
|
|
1521
1536
|
selectedSlot != null && durationMs != null && timezone != null && /* @__PURE__ */ jsxs6("p", { className: "text-ods-text-primary text-h4", children: [
|
|
1522
1537
|
new Intl.DateTimeFormat(void 0, {
|
|
1523
1538
|
timeZone: timezone,
|