@flamingo-stack/openframe-frontend-core 0.0.695 → 0.0.696
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-DT6DOSXV.cjs → chunk-2FK7BZIM.cjs} +15 -15
- package/dist/{chunk-DT6DOSXV.cjs.map → chunk-2FK7BZIM.cjs.map} +1 -1
- package/dist/{chunk-2NLZ4CB4.js → chunk-3S56I5MX.js} +2 -2
- package/dist/{chunk-E4QJXPJP.cjs → chunk-3V7O7J4S.cjs} +28 -28
- package/dist/{chunk-E4QJXPJP.cjs.map → chunk-3V7O7J4S.cjs.map} +1 -1
- package/dist/{chunk-BU77ENDT.cjs → chunk-5DBWXJBG.cjs} +934 -860
- package/dist/chunk-5DBWXJBG.cjs.map +1 -0
- package/dist/{chunk-RWAHGA2H.cjs → chunk-75CG72QX.cjs} +33 -33
- package/dist/{chunk-RWAHGA2H.cjs.map → chunk-75CG72QX.cjs.map} +1 -1
- package/dist/{chunk-H74TCWVN.js → chunk-77XUG4Z4.js} +7 -7
- package/dist/{chunk-ETFVFDJG.cjs → chunk-7MM6EDNA.cjs} +19 -19
- package/dist/{chunk-ETFVFDJG.cjs.map → chunk-7MM6EDNA.cjs.map} +1 -1
- package/dist/{chunk-IE2H2P4K.cjs → chunk-CVMWOUAX.cjs} +30 -30
- package/dist/{chunk-IE2H2P4K.cjs.map → chunk-CVMWOUAX.cjs.map} +1 -1
- package/dist/{chunk-3DOGI3XP.cjs → chunk-EWQZ4BXD.cjs} +7 -7
- package/dist/{chunk-3DOGI3XP.cjs.map → chunk-EWQZ4BXD.cjs.map} +1 -1
- package/dist/{chunk-DHQXA6FM.cjs → chunk-FZFEIXGB.cjs} +81 -81
- package/dist/{chunk-DHQXA6FM.cjs.map → chunk-FZFEIXGB.cjs.map} +1 -1
- package/dist/{chunk-TGIBJHM6.js → chunk-H6SSHFMD.js} +4 -4
- package/dist/{chunk-CI7HVQAK.js → chunk-J4VGVLQI.js} +3 -3
- package/dist/{chunk-7LYRB7DE.js → chunk-JBMFCHNT.js} +3160 -3086
- package/dist/chunk-JBMFCHNT.js.map +1 -0
- package/dist/{chunk-HKM3DTSS.cjs → chunk-KLDCI3KF.cjs} +3 -3
- package/dist/{chunk-HKM3DTSS.cjs.map → chunk-KLDCI3KF.cjs.map} +1 -1
- package/dist/{chunk-H66LCO6R.cjs → chunk-LEGNIETR.cjs} +5 -5
- package/dist/{chunk-H66LCO6R.cjs.map → chunk-LEGNIETR.cjs.map} +1 -1
- package/dist/{chunk-43YWCHYX.js → chunk-LF4S37VU.js} +5 -5
- package/dist/{chunk-SSBK7TBW.js → chunk-LNOXNCEC.js} +4 -4
- package/dist/{chunk-WGKTGAP3.js → chunk-LZXZ3C6M.js} +3 -3
- package/dist/{chunk-LAGFAZ2H.cjs → chunk-MFU3ALKM.cjs} +192 -192
- package/dist/{chunk-LAGFAZ2H.cjs.map → chunk-MFU3ALKM.cjs.map} +1 -1
- package/dist/{chunk-WQ4BZDLO.cjs → chunk-N4G3C4B4.cjs} +12 -12
- package/dist/{chunk-WQ4BZDLO.cjs.map → chunk-N4G3C4B4.cjs.map} +1 -1
- package/dist/{chunk-N22KLGTR.cjs → chunk-NE4H4JJG.cjs} +35 -35
- package/dist/{chunk-N22KLGTR.cjs.map → chunk-NE4H4JJG.cjs.map} +1 -1
- package/dist/{chunk-ZOVS6HJW.js → chunk-OB3ZJ7GQ.js} +2 -2
- package/dist/{chunk-VDROT42I.js → chunk-PYNHPMDB.js} +3 -3
- package/dist/{chunk-ZF2KSQER.js → chunk-QD4BVKAU.js} +4 -4
- package/dist/{chunk-JUO6CFGZ.js → chunk-QYFXRVH3.js} +6 -6
- package/dist/{chunk-UPLNZA6P.cjs → chunk-RIDRAKQ5.cjs} +11 -11
- package/dist/{chunk-UPLNZA6P.cjs.map → chunk-RIDRAKQ5.cjs.map} +1 -1
- package/dist/{chunk-4XR3D6BN.js → chunk-SG53SIJX.js} +6 -6
- package/dist/{chunk-DELTA7VU.cjs → chunk-T33ICOHD.cjs} +23 -23
- package/dist/{chunk-DELTA7VU.cjs.map → chunk-T33ICOHD.cjs.map} +1 -1
- package/dist/{chunk-IPKFWZDD.cjs → chunk-VCR3TW2H.cjs} +16 -5
- package/dist/chunk-VCR3TW2H.cjs.map +1 -0
- package/dist/{chunk-IHIEAC2G.js → chunk-VE7HLTVQ.js} +2 -2
- package/dist/{chunk-HDBKLVB6.cjs → chunk-WADR7VIA.cjs} +62 -62
- package/dist/{chunk-HDBKLVB6.cjs.map → chunk-WADR7VIA.cjs.map} +1 -1
- package/dist/{chunk-2ACUTFHC.js → chunk-WVDBRL2S.js} +5 -5
- package/dist/{chunk-OQBJQJ6E.cjs → chunk-XRW5VZKH.cjs} +6 -6
- package/dist/{chunk-OQBJQJ6E.cjs.map → chunk-XRW5VZKH.cjs.map} +1 -1
- package/dist/{chunk-2WTBDVR3.js → chunk-Y2MDXJB4.js} +12 -1
- package/dist/chunk-Y2MDXJB4.js.map +1 -0
- package/dist/{chunk-SFIVEDZA.js → chunk-YCVDJX7Z.js} +3 -3
- package/dist/{chunk-YHE4PSYQ.js → chunk-Z7A7FUWY.js} +3 -3
- package/dist/components/case-studies/index.cjs +17 -17
- package/dist/components/case-studies/index.js +4 -4
- package/dist/components/chat/index.cjs +3 -3
- package/dist/components/chat/index.js +2 -2
- package/dist/components/contact/index.cjs +5 -5
- package/dist/components/contact/index.js +4 -4
- package/dist/components/docs/index.cjs +8 -8
- package/dist/components/docs/index.js +7 -7
- package/dist/components/embeds/index.cjs +5 -5
- package/dist/components/embeds/index.js +4 -4
- package/dist/components/faq/index.cjs +5 -5
- package/dist/components/faq/index.js +4 -4
- package/dist/components/features/index.cjs +4 -4
- package/dist/components/features/index.js +3 -3
- package/dist/components/help-center-pages/index.cjs +91 -91
- package/dist/components/help-center-pages/index.js +15 -15
- package/dist/components/index.cjs +64 -56
- package/dist/components/index.cjs.map +1 -1
- package/dist/components/index.js +23 -15
- package/dist/components/index.js.map +1 -1
- package/dist/components/layout/back-button.d.ts +13 -1
- package/dist/components/layout/back-button.d.ts.map +1 -1
- package/dist/components/meeting-scheduler/context-panel.d.ts.map +1 -1
- package/dist/components/meeting-scheduler/index.cjs +54 -83
- package/dist/components/meeting-scheduler/index.cjs.map +1 -1
- package/dist/components/meeting-scheduler/index.js +18 -47
- package/dist/components/meeting-scheduler/index.js.map +1 -1
- package/dist/components/navigation/index.cjs +7 -7
- package/dist/components/navigation/index.js +6 -6
- package/dist/components/onboarding-guides/index.cjs +7 -7
- package/dist/components/onboarding-guides/index.js +6 -6
- package/dist/components/related-content/index.cjs +3 -3
- package/dist/components/related-content/index.js +2 -2
- package/dist/components/tickets/index.cjs +8 -8
- package/dist/components/tickets/index.js +7 -7
- package/dist/components/ui/index.cjs +12 -4
- package/dist/components/ui/index.cjs.map +1 -1
- package/dist/components/ui/index.d.ts +1 -0
- package/dist/components/ui/index.d.ts.map +1 -1
- package/dist/components/ui/index.js +11 -3
- package/dist/components/ui/timezone-select.d.ts +25 -0
- package/dist/components/ui/timezone-select.d.ts.map +1 -0
- package/dist/index.cjs +19 -9
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +17 -7
- package/dist/index.js.map +1 -1
- package/dist/utils/image-proxy.d.ts +7 -0
- package/dist/utils/image-proxy.d.ts.map +1 -1
- package/dist/utils/index.cjs +11 -0
- package/dist/utils/index.cjs.map +1 -1
- package/dist/utils/index.d.ts +1 -1
- package/dist/utils/index.d.ts.map +1 -1
- package/dist/utils/index.js +11 -1
- package/dist/utils/index.js.map +1 -1
- package/package.json +1 -1
- package/src/components/layout/back-button.tsx +55 -14
- package/src/components/meeting-scheduler/context-panel.tsx +3 -36
- package/src/components/ui/index.ts +1 -0
- package/src/components/ui/timezone-select.test.tsx +48 -0
- package/src/components/ui/timezone-select.tsx +75 -0
- package/src/utils/image-proxy.ts +17 -0
- package/src/utils/index.ts +1 -0
- package/src/utils/skips-image-optimizer.test.ts +14 -0
- package/dist/chunk-2WTBDVR3.js.map +0 -1
- package/dist/chunk-7LYRB7DE.js.map +0 -1
- package/dist/chunk-BU77ENDT.cjs.map +0 -1
- package/dist/chunk-IPKFWZDD.cjs.map +0 -1
- /package/dist/{chunk-2NLZ4CB4.js.map → chunk-3S56I5MX.js.map} +0 -0
- /package/dist/{chunk-H74TCWVN.js.map → chunk-77XUG4Z4.js.map} +0 -0
- /package/dist/{chunk-TGIBJHM6.js.map → chunk-H6SSHFMD.js.map} +0 -0
- /package/dist/{chunk-CI7HVQAK.js.map → chunk-J4VGVLQI.js.map} +0 -0
- /package/dist/{chunk-43YWCHYX.js.map → chunk-LF4S37VU.js.map} +0 -0
- /package/dist/{chunk-SSBK7TBW.js.map → chunk-LNOXNCEC.js.map} +0 -0
- /package/dist/{chunk-WGKTGAP3.js.map → chunk-LZXZ3C6M.js.map} +0 -0
- /package/dist/{chunk-ZOVS6HJW.js.map → chunk-OB3ZJ7GQ.js.map} +0 -0
- /package/dist/{chunk-VDROT42I.js.map → chunk-PYNHPMDB.js.map} +0 -0
- /package/dist/{chunk-ZF2KSQER.js.map → chunk-QD4BVKAU.js.map} +0 -0
- /package/dist/{chunk-JUO6CFGZ.js.map → chunk-QYFXRVH3.js.map} +0 -0
- /package/dist/{chunk-4XR3D6BN.js.map → chunk-SG53SIJX.js.map} +0 -0
- /package/dist/{chunk-IHIEAC2G.js.map → chunk-VE7HLTVQ.js.map} +0 -0
- /package/dist/{chunk-2ACUTFHC.js.map → chunk-WVDBRL2S.js.map} +0 -0
- /package/dist/{chunk-SFIVEDZA.js.map → chunk-YCVDJX7Z.js.map} +0 -0
- /package/dist/{chunk-YHE4PSYQ.js.map → chunk-Z7A7FUWY.js.map} +0 -0
|
@@ -2,7 +2,19 @@ import type React from 'react';
|
|
|
2
2
|
export interface BackButtonProps extends Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, 'children'> {
|
|
3
3
|
label?: string;
|
|
4
4
|
onClick?: React.MouseEventHandler<HTMLButtonElement>;
|
|
5
|
+
/**
|
|
6
|
+
* Where "back" goes. With it the control is a real link (open in a new tab,
|
|
7
|
+
* prefetch, right-click); without it, a button that runs `onClick`.
|
|
8
|
+
*/
|
|
9
|
+
href?: string;
|
|
5
10
|
}
|
|
6
|
-
|
|
11
|
+
/** The footprint of a `BackButton`, for a loading skeleton that must not move the page. */
|
|
12
|
+
export declare const BACK_BUTTON_SKELETON_CLASS = "h-12 w-40 rounded-md";
|
|
13
|
+
/**
|
|
14
|
+
* THE back navigation of a page: the chevron and its label, above the title.
|
|
15
|
+
* Every detail page renders this one (through `PageLayout`'s `backButton` or
|
|
16
|
+
* directly), never a hand-built link.
|
|
17
|
+
*/
|
|
18
|
+
export declare function BackButton({ label, className, type, href, ...props }: BackButtonProps): React.JSX.Element;
|
|
7
19
|
export default BackButton;
|
|
8
20
|
//# sourceMappingURL=back-button.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"back-button.d.ts","sourceRoot":"","sources":["../../../src/components/layout/back-button.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"back-button.d.ts","sourceRoot":"","sources":["../../../src/components/layout/back-button.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAK/B,MAAM,WAAW,eAAgB,SAAQ,IAAI,CAAC,KAAK,CAAC,oBAAoB,CAAC,iBAAiB,CAAC,EAAE,UAAU,CAAC;IACtG,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,KAAK,CAAC,iBAAiB,CAAC,iBAAiB,CAAC,CAAC;IACrD;;;OAGG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAUD,2FAA2F;AAC3F,eAAO,MAAM,0BAA0B,yBAAyB,CAAC;AAEjE;;;;GAIG;AACH,wBAAgB,UAAU,CAAC,EAAE,KAAc,EAAE,SAAS,EAAE,IAAe,EAAE,IAAI,EAAE,GAAG,KAAK,EAAE,EAAE,eAAe,qBAqCzG;AAED,eAAe,UAAU,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"context-panel.d.ts","sourceRoot":"","sources":["../../../src/components/meeting-scheduler/context-panel.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"context-panel.d.ts","sourceRoot":"","sources":["../../../src/components/meeting-scheduler/context-panel.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,sCAAsC,CAAC;AAOxE;;;;;;;;;;;;;;;;;;GAkBG;AAEH,MAAM,WAAW,0BAA0B;IACzC,KAAK,EAAE,WAAW,EAAE,CAAC;IACrB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B,WAAW,EAAE,MAAM,EAAE,CAAC;IACtB,kBAAkB,EAAE,MAAM,GAAG,IAAI,CAAC;IAClC,gBAAgB,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;IACvC,8DAA8D;IAC9D,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,gBAAgB,CAAC,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;IACxC;gFAC4E;IAC5E,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;IACpB,gCAAgC;IAChC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;2EAGuE;IACvE,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB;2EACuE;IACvE,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;iFAE6E;IAC7E,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AA6CD;;;;GAIG;AACH,wBAAgB,oBAAoB,CAAC,EACnC,SAAS,EACT,MAAM,EACN,SAAkB,GACnB,EAAE;IACD,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,+BA4BA;AAED,wBAAgB,qBAAqB,CAAC,EACpC,KAAK,EACL,KAAK,EACL,WAAW,EACX,WAAW,EACX,kBAAkB,EAClB,gBAAgB,EAChB,QAAQ,EACR,gBAAgB,EAChB,MAAM,EACN,SAAkB,EAClB,MAAc,EACd,QAAgB,EAChB,YAAmB,EACnB,SAAS,GACV,EAAE,0BAA0B,+BAqG5B"}
|
|
@@ -24,7 +24,7 @@ var _chunkRQ3HFUKVcjs = require('../../chunk-RQ3HFUKV.cjs');
|
|
|
24
24
|
|
|
25
25
|
|
|
26
26
|
|
|
27
|
-
var
|
|
27
|
+
var _chunk5DBWXJBGcjs = require('../../chunk-5DBWXJBG.cjs');
|
|
28
28
|
require('../../chunk-GQWM3ECA.cjs');
|
|
29
29
|
require('../../chunk-TON3YCCW.cjs');
|
|
30
30
|
|
|
@@ -45,7 +45,7 @@ var _chunkNPPI32SOcjs = require('../../chunk-NPPI32SO.cjs');
|
|
|
45
45
|
var _chunkPTFE5WKPcjs = require('../../chunk-PTFE5WKP.cjs');
|
|
46
46
|
|
|
47
47
|
|
|
48
|
-
var
|
|
48
|
+
var _chunkMFU3ALKMcjs = require('../../chunk-MFU3ALKM.cjs');
|
|
49
49
|
require('../../chunk-DMUUWHII.cjs');
|
|
50
50
|
require('../../chunk-SADRZ4YI.cjs');
|
|
51
51
|
require('../../chunk-NNDFVMFS.cjs');
|
|
@@ -59,7 +59,7 @@ require('../../chunk-XQFFGR6U.cjs');
|
|
|
59
59
|
|
|
60
60
|
|
|
61
61
|
|
|
62
|
-
var
|
|
62
|
+
var _chunkVCR3TW2Hcjs = require('../../chunk-VCR3TW2H.cjs');
|
|
63
63
|
require('../../chunk-WLSFBRT5.cjs');
|
|
64
64
|
require('../../chunk-MNFV4YLK.cjs');
|
|
65
65
|
require('../../chunk-W7RN5TGT.cjs');
|
|
@@ -359,7 +359,7 @@ function useMeetingBooking(options) {
|
|
|
359
359
|
const seededOffset = _optionalChain([initialAvailability, 'optionalAccess', _12 => _12.meetingId]) === meetingId ? initialAvailability.monthOffset : void 0;
|
|
360
360
|
const [monthOffset, setMonthOffsetState] = _react.useState.call(void 0, _nullishCoalesce(seededOffset, () => ( 0)));
|
|
361
361
|
const setMonthOffset = _react.useCallback.call(void 0, (offset) => {
|
|
362
|
-
setMonthOffsetState(Math.max(0, Math.min(
|
|
362
|
+
setMonthOffsetState(Math.max(0, Math.min(_chunk5DBWXJBGcjs.MAX_MONTH_OFFSET, offset)));
|
|
363
363
|
}, []);
|
|
364
364
|
const prevMeetingIdRef = _react.useRef.call(void 0, meetingId);
|
|
365
365
|
_react.useLayoutEffect.call(void 0, () => {
|
|
@@ -489,7 +489,7 @@ var FIELD_CONTROLS = {
|
|
|
489
489
|
}
|
|
490
490
|
),
|
|
491
491
|
textarea: ({ field, id, registerName, error, register }) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
492
|
-
|
|
492
|
+
_chunk5DBWXJBGcjs.Textarea,
|
|
493
493
|
{
|
|
494
494
|
id,
|
|
495
495
|
required: field.required,
|
|
@@ -545,18 +545,18 @@ var FIELD_CONTROLS = {
|
|
|
545
545
|
{
|
|
546
546
|
control,
|
|
547
547
|
name: registerName,
|
|
548
|
-
render: ({ field: rhf }) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
548
|
+
render: ({ field: rhf }) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk5DBWXJBGcjs.Select, { value: _nullishCoalesce(rhf.value, () => ( "")), onValueChange: rhf.onChange, children: [
|
|
549
549
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
550
|
-
|
|
550
|
+
_chunk5DBWXJBGcjs.SelectTrigger,
|
|
551
551
|
{
|
|
552
552
|
id,
|
|
553
553
|
"aria-required": field.required || void 0,
|
|
554
554
|
"aria-invalid": Boolean(error),
|
|
555
555
|
invalid: Boolean(error),
|
|
556
|
-
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
556
|
+
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5DBWXJBGcjs.SelectValue, { placeholder: "Select\u2026" })
|
|
557
557
|
}
|
|
558
558
|
),
|
|
559
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
559
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5DBWXJBGcjs.SelectContent, { children: (_nullishCoalesce(field.options, () => ( []))).map((opt) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5DBWXJBGcjs.SelectItem, { value: opt, children: optionLabel(field, opt) }, opt)) })
|
|
560
560
|
] })
|
|
561
561
|
}
|
|
562
562
|
),
|
|
@@ -566,14 +566,14 @@ var FIELD_CONTROLS = {
|
|
|
566
566
|
control,
|
|
567
567
|
name: registerName,
|
|
568
568
|
render: ({ field: rhf }) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
569
|
-
|
|
569
|
+
_chunk5DBWXJBGcjs.RadioGroup,
|
|
570
570
|
{
|
|
571
571
|
value: _nullishCoalesce(rhf.value, () => ( "")),
|
|
572
572
|
onValueChange: rhf.onChange,
|
|
573
573
|
"aria-required": field.required || void 0,
|
|
574
574
|
"aria-invalid": Boolean(error),
|
|
575
575
|
children: (_nullishCoalesce(field.options, () => ( []))).map((opt) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center gap-[var(--spacing-system-xs)]", children: [
|
|
576
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
576
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5DBWXJBGcjs.RadioGroupItem, { id: `${id}-${opt}`, value: opt }),
|
|
577
577
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkKWX65373cjs.Label, { htmlFor: `${id}-${opt}`, children: optionLabel(field, opt) })
|
|
578
578
|
] }, opt))
|
|
579
579
|
}
|
|
@@ -809,8 +809,8 @@ function BookingForm({
|
|
|
809
809
|
children: _nullishCoalesce(submitLabel, () => ( DEFAULT_SUBMIT_LABEL))
|
|
810
810
|
}
|
|
811
811
|
);
|
|
812
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "form", { onSubmit: submit, className: FORM_STACK, noValidate: true, ...
|
|
813
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
812
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "form", { onSubmit: submit, className: FORM_STACK, noValidate: true, ..._chunk5DBWXJBGcjs.HUBSPOT_DO_NOT_COLLECT_FORM_PROPS, children: [
|
|
813
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5DBWXJBGcjs.HoneypotField, { ...honeypotInputProps }),
|
|
814
814
|
fieldRows ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
815
815
|
placedRows.map((row) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: ROW_GRID, children: row.map((slot, slotIndex) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: slotColumnClass(row, slot, slotIndex), children: slotNode(slot.name) }, slot.name)) }, row.map((s) => s.name).join("|"))),
|
|
816
816
|
[...unplacedBuiltIns, ...unplacedFields].map((field) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _react.Fragment, { children: slotNode(field.name) }, field.name))
|
|
@@ -823,7 +823,7 @@ function BookingForm({
|
|
|
823
823
|
supportedFields.map((field) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _react.Fragment, { children: renderDeclaredField(field) }, field.name))
|
|
824
824
|
] }),
|
|
825
825
|
consent && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
826
|
-
|
|
826
|
+
_chunk5DBWXJBGcjs.CheckboxBlock,
|
|
827
827
|
{
|
|
828
828
|
id: "ms-host-consent",
|
|
829
829
|
checked: consented,
|
|
@@ -858,7 +858,7 @@ function BookingForm({
|
|
|
858
858
|
// same block the waitlist form uses): box + label in one
|
|
859
859
|
// bordered row.
|
|
860
860
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
861
|
-
|
|
861
|
+
_chunk5DBWXJBGcjs.CheckboxBlock,
|
|
862
862
|
{
|
|
863
863
|
id: `ms-consent-${box.communicationTypeId}`,
|
|
864
864
|
checked: _nullishCoalesce(_optionalChain([current, 'optionalAccess', _34 => _34.consented]), () => ( false)),
|
|
@@ -924,7 +924,7 @@ function skeletonRows(fieldRows) {
|
|
|
924
924
|
// src/components/meeting-scheduler/confirmation.tsx
|
|
925
925
|
|
|
926
926
|
function Confirmation({ confirmation, timezone }) {
|
|
927
|
-
const when =
|
|
927
|
+
const when = _chunkVCR3TW2Hcjs.formatDateWithTimezone.call(void 0, confirmation.startTimeMs, timezone, "weekdayDateTimeZoned", {
|
|
928
928
|
viewerLocale: true
|
|
929
929
|
});
|
|
930
930
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-1 flex-col items-center justify-center gap-[var(--spacing-system-m)] text-center", children: [
|
|
@@ -934,7 +934,7 @@ function Confirmation({ confirmation, timezone }) {
|
|
|
934
934
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "p", { className: "text-ods-text-secondary text-h6", children: [
|
|
935
935
|
when,
|
|
936
936
|
" \xB7 ",
|
|
937
|
-
|
|
937
|
+
_chunkVCR3TW2Hcjs.formatDurationCompact.call(void 0, confirmation.durationMs / 1e3)
|
|
938
938
|
] }),
|
|
939
939
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-ods-text-secondary text-h6", children: "A calendar invite is on its way to your email." })
|
|
940
940
|
] });
|
|
@@ -942,7 +942,6 @@ function Confirmation({ confirmation, timezone }) {
|
|
|
942
942
|
|
|
943
943
|
// src/components/meeting-scheduler/context-panel.tsx
|
|
944
944
|
|
|
945
|
-
|
|
946
945
|
var PANEL_STACK = "flex flex-col gap-[var(--spacing-system-l)]";
|
|
947
946
|
var IDENTITY_ROW = "flex items-center justify-between gap-[var(--spacing-system-m)] lg:flex-col lg:items-stretch lg:gap-[var(--spacing-system-l)]";
|
|
948
947
|
var STRIP_BODY = "flex flex-col gap-[var(--spacing-system-l)] md:flex-row md:items-start lg:flex-col";
|
|
@@ -950,25 +949,13 @@ var STRIP_MAIN = "flex min-w-0 flex-col gap-[var(--spacing-system-l)] md:flex-1"
|
|
|
950
949
|
var STRIP_ASIDE = "flex flex-col gap-[var(--spacing-system-xxs)] md:w-[280px] md:shrink-0 lg:w-full";
|
|
951
950
|
var BACK_BUTTON_CLASS = "py-0";
|
|
952
951
|
var FIELD_LABEL_CLASS = "text-h4 text-ods-text-primary";
|
|
953
|
-
function zoneLabel(tz) {
|
|
954
|
-
try {
|
|
955
|
-
const parts = new Intl.DateTimeFormat("en-US", {
|
|
956
|
-
timeZone: tz,
|
|
957
|
-
timeZoneName: "shortOffset"
|
|
958
|
-
}).formatToParts(/* @__PURE__ */ new Date());
|
|
959
|
-
const offset = _nullishCoalesce(_optionalChain([parts, 'access', _35 => _35.find, 'call', _36 => _36((p) => p.type === "timeZoneName"), 'optionalAccess', _37 => _37.value]), () => ( ""));
|
|
960
|
-
return offset ? `${tz.replace(/_/g, " ")} (${offset})` : tz.replace(/_/g, " ");
|
|
961
|
-
} catch (e4) {
|
|
962
|
-
return tz.replace(/_/g, " ");
|
|
963
|
-
}
|
|
964
|
-
}
|
|
965
952
|
function ContextPanelSkeleton({
|
|
966
953
|
className,
|
|
967
954
|
onBack,
|
|
968
955
|
backLabel = "Back"
|
|
969
956
|
}) {
|
|
970
957
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunkX7CEWD6Vcjs.cn.call(void 0, PANEL_STACK, className), children: [
|
|
971
|
-
onBack && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
958
|
+
onBack && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5DBWXJBGcjs.BackButton, { label: backLabel, onClick: onBack, className: BACK_BUTTON_CLASS }),
|
|
972
959
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: STRIP_BODY, children: [
|
|
973
960
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: STRIP_MAIN, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: IDENTITY_ROW, children: [
|
|
974
961
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-1 items-center gap-[var(--spacing-system-xs)] lg:flex-none", children: [
|
|
@@ -1003,26 +990,14 @@ function SchedulerContextPanel({
|
|
|
1003
990
|
showTimezone = true,
|
|
1004
991
|
className
|
|
1005
992
|
}) {
|
|
1006
|
-
const zoneOptions = _react.useMemo.call(void 0, () => {
|
|
1007
|
-
if (!timezone) return [];
|
|
1008
|
-
let zones;
|
|
1009
|
-
try {
|
|
1010
|
-
const intl = Intl;
|
|
1011
|
-
zones = intl.supportedValuesOf ? intl.supportedValuesOf("timeZone") : [timezone];
|
|
1012
|
-
} catch (e5) {
|
|
1013
|
-
zones = [timezone];
|
|
1014
|
-
}
|
|
1015
|
-
if (!zones.includes(timezone)) zones = [timezone, ...zones];
|
|
1016
|
-
return zones.map((tz) => ({ value: tz, label: zoneLabel(tz) }));
|
|
1017
|
-
}, [timezone]);
|
|
1018
993
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunkX7CEWD6Vcjs.cn.call(void 0, PANEL_STACK, className), children: [
|
|
1019
|
-
onBack && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
994
|
+
onBack && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5DBWXJBGcjs.BackButton, { label: backLabel, onClick: onBack, className: BACK_BUTTON_CLASS }),
|
|
1020
995
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: STRIP_BODY, children: [
|
|
1021
996
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: STRIP_MAIN, children: [
|
|
1022
997
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: IDENTITY_ROW, children: [
|
|
1023
998
|
hosts.length > 0 && hosts.length <= 3 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex flex-col gap-[var(--spacing-system-s)]", children: hosts.map((host) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center gap-[var(--spacing-system-xs)]", children: [
|
|
1024
999
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1025
|
-
|
|
1000
|
+
_chunkVCR3TW2Hcjs.SquareAvatar,
|
|
1026
1001
|
{
|
|
1027
1002
|
variant: "round",
|
|
1028
1003
|
size: "sm",
|
|
@@ -1037,7 +1012,7 @@ function SchedulerContextPanel({
|
|
|
1037
1012
|
] })
|
|
1038
1013
|
] }, host.name)) }),
|
|
1039
1014
|
hosts.length > 3 && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col gap-[var(--spacing-system-xs)]", children: [
|
|
1040
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1015
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVCR3TW2Hcjs.AvatarStack, { people: hosts, max: 4, size: "lg", label: "Hosts" }),
|
|
1041
1016
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "p", { className: "text-ods-text-secondary text-h6", children: [
|
|
1042
1017
|
hosts.length,
|
|
1043
1018
|
" hosts on this calendar"
|
|
@@ -1047,7 +1022,7 @@ function SchedulerContextPanel({
|
|
|
1047
1022
|
// Post-selection, or a link that offers one length: a static line,
|
|
1048
1023
|
// which is what sits beside the host on the header-strip layouts.
|
|
1049
1024
|
selectedDurationMs != null && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "p", { className: "shrink-0 text-ods-text-secondary text-h6", children: [
|
|
1050
|
-
|
|
1025
|
+
_chunkVCR3TW2Hcjs.formatDurationCompact.call(void 0, selectedDurationMs / 1e3),
|
|
1051
1026
|
" call"
|
|
1052
1027
|
] })
|
|
1053
1028
|
) : null
|
|
@@ -1063,7 +1038,7 @@ function SchedulerContextPanel({
|
|
|
1063
1038
|
size: "small-legacy",
|
|
1064
1039
|
disabled,
|
|
1065
1040
|
onClick: () => onSelectDuration(ms),
|
|
1066
|
-
children:
|
|
1041
|
+
children: _chunkVCR3TW2Hcjs.formatDurationCompact.call(void 0, ms / 1e3)
|
|
1067
1042
|
},
|
|
1068
1043
|
ms
|
|
1069
1044
|
)) })
|
|
@@ -1078,17 +1053,13 @@ function SchedulerContextPanel({
|
|
|
1078
1053
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunkX7CEWD6Vcjs.cn.call(void 0, STRIP_ASIDE, locked && "max-lg:hidden"), children: [
|
|
1079
1054
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: FIELD_LABEL_CLASS, children: "Timezone" }),
|
|
1080
1055
|
timezone ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1081
|
-
|
|
1056
|
+
_chunk5DBWXJBGcjs.TimezoneSelect,
|
|
1082
1057
|
{
|
|
1083
1058
|
value: timezone,
|
|
1084
1059
|
disabled,
|
|
1085
1060
|
onChange: (tz) => {
|
|
1086
|
-
if (tz) _optionalChain([onTimezoneChange, 'optionalCall',
|
|
1087
|
-
}
|
|
1088
|
-
options: zoneOptions,
|
|
1089
|
-
placeholder: "Search timezone\u2026",
|
|
1090
|
-
noOptionsText: "No matching timezone",
|
|
1091
|
-
showClearAll: false
|
|
1061
|
+
if (tz) _optionalChain([onTimezoneChange, 'optionalCall', _35 => _35(tz)]);
|
|
1062
|
+
}
|
|
1092
1063
|
}
|
|
1093
1064
|
) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkKWX65373cjs.Skeleton, { className: "h-12 w-full" })
|
|
1094
1065
|
] })
|
|
@@ -1114,7 +1085,7 @@ function dateFromDayKey(key) {
|
|
|
1114
1085
|
return new Date(y, m - 1, d, 12);
|
|
1115
1086
|
}
|
|
1116
1087
|
function timeLabelInZone(ms, timeZone) {
|
|
1117
|
-
return
|
|
1088
|
+
return _chunkVCR3TW2Hcjs.formatTimeWithTimezone.call(void 0, ms, timeZone, { viewerLocale: true });
|
|
1118
1089
|
}
|
|
1119
1090
|
var CALENDAR_W = "md:w-[19rem] md:shrink-0 lg:w-[16rem]";
|
|
1120
1091
|
var COLUMN_HEADING_CLASS = "shrink-0 text-h4 text-ods-text-primary";
|
|
@@ -1158,25 +1129,25 @@ var COLUMN_DIVIDER = "border-b border-ods-border md:border-b-0 md:border-r lg:bo
|
|
|
1158
1129
|
function monthLabelFor(offset) {
|
|
1159
1130
|
const now = /* @__PURE__ */ new Date();
|
|
1160
1131
|
const month = new Date(now.getFullYear(), now.getMonth() + offset, 1);
|
|
1161
|
-
return
|
|
1132
|
+
return _chunkVCR3TW2Hcjs.formatDateWithTimezone.call(void 0, month, _chunkVCR3TW2Hcjs.VIEWER_TIMEZONE, "monthYear");
|
|
1162
1133
|
}
|
|
1163
1134
|
var DISABLE_EVERY_DAY = () => true;
|
|
1164
1135
|
var NOOP = () => void 0;
|
|
1165
1136
|
function DayCalendar({ monthOffset, onMonthOffsetChange, selectedDay, onSelectDay, slotsByDay }) {
|
|
1166
1137
|
const now = /* @__PURE__ */ new Date();
|
|
1167
1138
|
const startMonth = new Date(now.getFullYear(), now.getMonth(), 1);
|
|
1168
|
-
const endMonth = new Date(now.getFullYear(), now.getMonth() +
|
|
1139
|
+
const endMonth = new Date(now.getFullYear(), now.getMonth() + _chunk5DBWXJBGcjs.MAX_MONTH_OFFSET + 1, 0);
|
|
1169
1140
|
const visibleMonth = new Date(now.getFullYear(), now.getMonth() + monthOffset, 1);
|
|
1170
|
-
const dayHasNoSlots = _react.useCallback.call(void 0, (day) => !_optionalChain([slotsByDay, 'optionalAccess',
|
|
1141
|
+
const dayHasNoSlots = _react.useCallback.call(void 0, (day) => !_optionalChain([slotsByDay, 'optionalAccess', _36 => _36.has, 'call', _37 => _37(calendarDayKey(day))]), [slotsByDay]);
|
|
1171
1142
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex min-h-0 flex-1 flex-col", "aria-busy": slotsByDay === null, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1172
|
-
|
|
1143
|
+
_chunk5DBWXJBGcjs.DatePickerCalendar,
|
|
1173
1144
|
{
|
|
1174
1145
|
mode: "single",
|
|
1175
1146
|
bare: true,
|
|
1176
1147
|
month: visibleMonth,
|
|
1177
1148
|
onMonthChange: (month) => {
|
|
1178
1149
|
const offset = (month.getFullYear() - now.getFullYear()) * 12 + (month.getMonth() - now.getMonth());
|
|
1179
|
-
onMonthOffsetChange(Math.max(0, Math.min(
|
|
1150
|
+
onMonthOffsetChange(Math.max(0, Math.min(_chunk5DBWXJBGcjs.MAX_MONTH_OFFSET, offset)));
|
|
1180
1151
|
},
|
|
1181
1152
|
fromDate: startMonth,
|
|
1182
1153
|
toDate: endMonth,
|
|
@@ -1185,7 +1156,7 @@ function DayCalendar({ monthOffset, onMonthOffsetChange, selectedDay, onSelectDa
|
|
|
1185
1156
|
const day = value;
|
|
1186
1157
|
if (!day) return;
|
|
1187
1158
|
const key = calendarDayKey(day);
|
|
1188
|
-
if (_optionalChain([slotsByDay, 'optionalAccess',
|
|
1159
|
+
if (_optionalChain([slotsByDay, 'optionalAccess', _38 => _38.has, 'call', _39 => _39(key)])) onSelectDay(key);
|
|
1189
1160
|
},
|
|
1190
1161
|
disabledDays: slotsByDay === null ? DISABLE_EVERY_DAY : dayHasNoSlots
|
|
1191
1162
|
}
|
|
@@ -1263,7 +1234,7 @@ function SlotPicker({
|
|
|
1263
1234
|
)
|
|
1264
1235
|
] }),
|
|
1265
1236
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunkX7CEWD6Vcjs.cn.call(void 0, COLUMN_STACK, COLUMN_BOX, "min-w-0 md:flex-1"), children: isLoading ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TimeChipsSkeleton, {}) : selectedDay ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
1266
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: COLUMN_HEADING_CLASS, children:
|
|
1237
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: COLUMN_HEADING_CLASS, children: _chunkVCR3TW2Hcjs.formatDateWithTimezone.call(void 0, dateFromDayKey(selectedDay), _chunkVCR3TW2Hcjs.VIEWER_TIMEZONE, "weekday", { viewerLocale: true }) }),
|
|
1267
1238
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: CHIP_GRID_CLASS, children: daySlots.map((ms) => {
|
|
1268
1239
|
const isSelected = selectedSlot === ms;
|
|
1269
1240
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -1292,7 +1263,7 @@ function SlotPicker({
|
|
|
1292
1263
|
monthLabelFor(monthOffset),
|
|
1293
1264
|
"."
|
|
1294
1265
|
] }),
|
|
1295
|
-
monthOffset <
|
|
1266
|
+
monthOffset < _chunk5DBWXJBGcjs.MAX_MONTH_OFFSET && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
1296
1267
|
_chunkF6U2H42Lcjs.Button,
|
|
1297
1268
|
{
|
|
1298
1269
|
variant: "outline",
|
|
@@ -1314,10 +1285,10 @@ function SlotPicker({
|
|
|
1314
1285
|
|
|
1315
1286
|
|
|
1316
1287
|
function useNextAvailableLabel(ms) {
|
|
1317
|
-
const hydrated =
|
|
1288
|
+
const hydrated = _chunkMFU3ALKMcjs.useIsHydrated.call(void 0, );
|
|
1318
1289
|
return _react.useMemo.call(void 0, () => {
|
|
1319
1290
|
if (!hydrated || ms == null) return null;
|
|
1320
|
-
return
|
|
1291
|
+
return _chunkVCR3TW2Hcjs.formatDateWithTimezone.call(void 0, ms, _chunkVCR3TW2Hcjs.VIEWER_TIMEZONE, "shortWeekdayDateTime", { viewerLocale: true }) || null;
|
|
1321
1292
|
}, [hydrated, ms]);
|
|
1322
1293
|
}
|
|
1323
1294
|
function DirectoryRow({
|
|
@@ -1328,7 +1299,7 @@ function DirectoryRow({
|
|
|
1328
1299
|
const nextLabel = useNextAvailableLabel(link.nextAvailableMs);
|
|
1329
1300
|
const subtitle = [
|
|
1330
1301
|
link.description,
|
|
1331
|
-
link.durationsMinutes.length > 0 ? link.durationsMinutes.map((m) =>
|
|
1302
|
+
link.durationsMinutes.length > 0 ? link.durationsMinutes.map((m) => _chunkVCR3TW2Hcjs.formatDurationCompact.call(void 0, m * 60)).join(" / ") : null,
|
|
1332
1303
|
link.kind === "team" ? "Team" : null
|
|
1333
1304
|
].filter(Boolean).join(" \u2022 ");
|
|
1334
1305
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -1342,8 +1313,8 @@ function DirectoryRow({
|
|
|
1342
1313
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "truncate text-ods-text-primary text-h3", children: link.title }),
|
|
1343
1314
|
subtitle && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "truncate text-ods-text-secondary text-h6", children: subtitle })
|
|
1344
1315
|
] }),
|
|
1345
|
-
audienceLabel && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1346
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1316
|
+
audienceLabel && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVCR3TW2Hcjs.StatusBadge, { text: `For ${audienceLabel}`, singleLine: true, className: "hidden shrink-0 sm:inline-flex" }),
|
|
1317
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVCR3TW2Hcjs.AvatarStack, { people: link.hosts, max: 3, size: "md", label: "Hosts", className: "flex shrink-0" }),
|
|
1347
1318
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "hidden w-44 shrink-0 flex-col items-end justify-center md:flex", children: [
|
|
1348
1319
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-ods-text-secondary text-h6", children: "Next available" }),
|
|
1349
1320
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "min-h-5 text-ods-text-primary text-h6", children: link.nextAvailableMs == null ? "No times published" : _nullishCoalesce(nextLabel, () => ( " ")) })
|
|
@@ -1409,7 +1380,7 @@ function MeetingSchedulerDirectory({
|
|
|
1409
1380
|
};
|
|
1410
1381
|
}, [initialData, includeAll, apiBaseUrl]);
|
|
1411
1382
|
const rows = _react.useMemo.call(void 0, () => {
|
|
1412
|
-
const purposes = _nullishCoalesce(_optionalChain([data, 'optionalAccess',
|
|
1383
|
+
const purposes = _nullishCoalesce(_optionalChain([data, 'optionalAccess', _40 => _40.purposes]), () => ( []));
|
|
1413
1384
|
return purposes.flatMap((p) => p.links.map((link) => ({ link, audienceLabel: p.label })));
|
|
1414
1385
|
}, [data]);
|
|
1415
1386
|
const totalPages = _chunkNPPI32SOcjs.pageCount.call(void 0, rows.length, pageSize);
|
|
@@ -1547,13 +1518,13 @@ function HubSpotMeetingScheduler({
|
|
|
1547
1518
|
isSubmitting
|
|
1548
1519
|
} = useMeetingBooking({ meetingId, apiBaseUrl, initialAvailability });
|
|
1549
1520
|
const detailsFirst = flow === "details-first";
|
|
1550
|
-
const hydrated =
|
|
1521
|
+
const hydrated = _chunkMFU3ALKMcjs.useIsHydrated.call(void 0, );
|
|
1551
1522
|
const [pickedTimezone, setTimezone] = _react.useState.call(void 0, null);
|
|
1552
1523
|
const resolvedLocalTimezone = _react.useMemo.call(void 0, () => {
|
|
1553
1524
|
if (!hydrated) return null;
|
|
1554
1525
|
try {
|
|
1555
1526
|
return Intl.DateTimeFormat().resolvedOptions().timeZone || "UTC";
|
|
1556
|
-
} catch (
|
|
1527
|
+
} catch (e4) {
|
|
1557
1528
|
return "UTC";
|
|
1558
1529
|
}
|
|
1559
1530
|
}, [hydrated]);
|
|
@@ -1566,7 +1537,7 @@ function HubSpotMeetingScheduler({
|
|
|
1566
1537
|
onStageChangeRef.current = onStageChange;
|
|
1567
1538
|
});
|
|
1568
1539
|
_react.useEffect.call(void 0, () => {
|
|
1569
|
-
_optionalChain([onStageChangeRef, 'access',
|
|
1540
|
+
_optionalChain([onStageChangeRef, 'access', _41 => _41.current, 'optionalCall', _42 => _42(stage)]);
|
|
1570
1541
|
}, [stage]);
|
|
1571
1542
|
const [stash, setStash] = _react.useState.call(void 0, null);
|
|
1572
1543
|
const inFlightRef = _react.useRef.call(void 0, false);
|
|
@@ -1597,8 +1568,8 @@ function HubSpotMeetingScheduler({
|
|
|
1597
1568
|
_react.useEffect.call(void 0, () => {
|
|
1598
1569
|
autoAdvanceCount.current = 0;
|
|
1599
1570
|
}, [meetingId]);
|
|
1600
|
-
const durations = _react.useMemo.call(void 0, () => _nullishCoalesce(_optionalChain([availability, 'optionalAccess',
|
|
1601
|
-
const shownHosts = _nullishCoalesce(_nullishCoalesce(hosts, () => ( _optionalChain([availability, 'optionalAccess',
|
|
1571
|
+
const durations = _react.useMemo.call(void 0, () => _nullishCoalesce(_optionalChain([availability, 'optionalAccess', _43 => _43.durationsMs]), () => ( [])), [_optionalChain([availability, 'optionalAccess', _44 => _44.durationsMs])]);
|
|
1572
|
+
const shownHosts = _nullishCoalesce(_nullishCoalesce(hosts, () => ( _optionalChain([availability, 'optionalAccess', _45 => _45.hosts]))), () => ( []));
|
|
1602
1573
|
const durationMs = _nullishCoalesce(_nullishCoalesce(pickedDurationMs, () => ( durations[0])), () => ( null));
|
|
1603
1574
|
const slots = _react.useMemo.call(void 0, () => {
|
|
1604
1575
|
if (!availability || durationMs == null) return [];
|
|
@@ -1658,7 +1629,7 @@ function HubSpotMeetingScheduler({
|
|
|
1658
1629
|
_chunk6CDP6TGHcjs.completeFormRescue.call(void 0, rescue, payload[_chunk6CDP6TGHcjs.FORM_RESCUE_ATTEMPT_FIELD]);
|
|
1659
1630
|
setConfirmation(result.confirmation);
|
|
1660
1631
|
setStep("confirmed");
|
|
1661
|
-
_optionalChain([onBooked, 'optionalCall',
|
|
1632
|
+
_optionalChain([onBooked, 'optionalCall', _46 => _46(result.confirmation)]);
|
|
1662
1633
|
return;
|
|
1663
1634
|
}
|
|
1664
1635
|
const code = _nullishCoalesce(result.code, () => ( "TEMPORARILY_UNAVAILABLE"));
|
|
@@ -1706,8 +1677,8 @@ function HubSpotMeetingScheduler({
|
|
|
1706
1677
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: stepPanelClass, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1707
1678
|
BookingFormSkeleton,
|
|
1708
1679
|
{
|
|
1709
|
-
fieldRows: _optionalChain([detailsFormProps, 'optionalAccess',
|
|
1710
|
-
consent: Boolean(_optionalChain([detailsFormProps, 'optionalAccess',
|
|
1680
|
+
fieldRows: _optionalChain([detailsFormProps, 'optionalAccess', _47 => _47.fieldRows]),
|
|
1681
|
+
consent: Boolean(_optionalChain([detailsFormProps, 'optionalAccess', _48 => _48.consent])),
|
|
1711
1682
|
footerNote: preset.footerNote
|
|
1712
1683
|
}
|
|
1713
1684
|
) })
|
|
@@ -1751,10 +1722,10 @@ function HubSpotMeetingScheduler({
|
|
|
1751
1722
|
durations.length > 0
|
|
1752
1723
|
) : durationMs != null && selectedSlot != null && timezone) ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunkX7CEWD6Vcjs.cn.call(void 0, stepPanelClass, "gap-[var(--spacing-system-m)]"), children: [
|
|
1753
1724
|
selectedSlot != null && durationMs != null && timezone != null && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "p", { className: "text-ods-text-primary text-h4", children: [
|
|
1754
|
-
|
|
1725
|
+
_chunkVCR3TW2Hcjs.formatDateWithTimezone.call(void 0, selectedSlot, timezone, "weekdayDateTimeZoned", { viewerLocale: true }),
|
|
1755
1726
|
" \xB7",
|
|
1756
1727
|
" ",
|
|
1757
|
-
|
|
1728
|
+
_chunkVCR3TW2Hcjs.formatDurationCompact.call(void 0, durationMs / 1e3)
|
|
1758
1729
|
] }),
|
|
1759
1730
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1760
1731
|
DetailsForm,
|
|
@@ -1768,7 +1739,7 @@ function HubSpotMeetingScheduler({
|
|
|
1768
1739
|
deferSlot: detailsFirst,
|
|
1769
1740
|
submitLabel: preset.submitLabel,
|
|
1770
1741
|
footerNote: preset.footerNote,
|
|
1771
|
-
initialValues: detailsFirst ? _optionalChain([stash, 'optionalAccess',
|
|
1742
|
+
initialValues: detailsFirst ? _optionalChain([stash, 'optionalAccess', _49 => _49.payload]) : void 0,
|
|
1772
1743
|
isSubmitting,
|
|
1773
1744
|
onSubmit: detailsFirst ? stashDetails : handleSubmit,
|
|
1774
1745
|
honeypotInputProps,
|
|
@@ -1778,11 +1749,11 @@ function HubSpotMeetingScheduler({
|
|
|
1778
1749
|
)
|
|
1779
1750
|
] }) : /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col gap-[var(--spacing-system-m)] md:min-h-0 md:flex-1", children: [
|
|
1780
1751
|
bookingError === "SLOT_TAKEN" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1781
|
-
|
|
1752
|
+
_chunk5DBWXJBGcjs.Alert,
|
|
1782
1753
|
{
|
|
1783
1754
|
variant: "warning",
|
|
1784
1755
|
className: "mx-[var(--spacing-system-l)] mt-[var(--spacing-system-l)] w-auto lg:m-0 lg:w-full",
|
|
1785
|
-
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1756
|
+
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5DBWXJBGcjs.AlertDescription, { children: "That time was just taken \u2014 pick another slot below. (If you already submitted, check your email for a confirmation before rebooking.)" })
|
|
1786
1757
|
}
|
|
1787
1758
|
),
|
|
1788
1759
|
timezone && durationMs != null ? (
|