@flamingo-stack/openframe-frontend-core 0.0.695-2522.7745.1 → 0.0.695
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-PTP7UFUJ.js → chunk-2ACUTFHC.js} +5 -5
- package/dist/{chunk-3S56I5MX.js → chunk-2NLZ4CB4.js} +2 -2
- package/dist/{chunk-Y2MDXJB4.js → chunk-2WTBDVR3.js} +1 -12
- package/dist/chunk-2WTBDVR3.js.map +1 -0
- package/dist/{chunk-4DNNKZ5H.cjs → chunk-3DOGI3XP.cjs} +7 -7
- package/dist/{chunk-4DNNKZ5H.cjs.map → chunk-3DOGI3XP.cjs.map} +1 -1
- package/dist/{chunk-XVHJM7Z7.js → chunk-43YWCHYX.js} +5 -5
- package/dist/{chunk-RPX7QWH4.js → chunk-4XR3D6BN.js} +6 -6
- package/dist/{chunk-WLUBSBEK.js → chunk-7LYRB7DE.js} +3086 -3140
- package/dist/chunk-7LYRB7DE.js.map +1 -0
- package/dist/{chunk-I25SF2PZ.cjs → chunk-BU77ENDT.cjs} +860 -914
- package/dist/chunk-BU77ENDT.cjs.map +1 -0
- package/dist/{chunk-64XEIDGD.js → chunk-CI7HVQAK.js} +3 -3
- package/dist/{chunk-Y7O3QLPF.cjs → chunk-DELTA7VU.cjs} +23 -23
- package/dist/{chunk-Y7O3QLPF.cjs.map → chunk-DELTA7VU.cjs.map} +1 -1
- package/dist/{chunk-C6CTV7ML.cjs → chunk-DHQXA6FM.cjs} +81 -81
- package/dist/{chunk-C6CTV7ML.cjs.map → chunk-DHQXA6FM.cjs.map} +1 -1
- package/dist/{chunk-VGEOFST2.cjs → chunk-DT6DOSXV.cjs} +15 -15
- package/dist/{chunk-VGEOFST2.cjs.map → chunk-DT6DOSXV.cjs.map} +1 -1
- package/dist/{chunk-26JWVMDE.cjs → chunk-E4QJXPJP.cjs} +28 -28
- package/dist/{chunk-26JWVMDE.cjs.map → chunk-E4QJXPJP.cjs.map} +1 -1
- package/dist/{chunk-L6LXA3ES.cjs → chunk-ETFVFDJG.cjs} +19 -19
- package/dist/{chunk-L6LXA3ES.cjs.map → chunk-ETFVFDJG.cjs.map} +1 -1
- package/dist/{chunk-DBLNKQCC.cjs → chunk-H66LCO6R.cjs} +5 -5
- package/dist/{chunk-DBLNKQCC.cjs.map → chunk-H66LCO6R.cjs.map} +1 -1
- package/dist/{chunk-CCH36FJC.js → chunk-H74TCWVN.js} +7 -7
- package/dist/{chunk-NQMRRJGW.cjs → chunk-HDBKLVB6.cjs} +62 -62
- package/dist/{chunk-NQMRRJGW.cjs.map → chunk-HDBKLVB6.cjs.map} +1 -1
- package/dist/{chunk-2RW76FXD.cjs → chunk-HKM3DTSS.cjs} +3 -3
- package/dist/{chunk-2RW76FXD.cjs.map → chunk-HKM3DTSS.cjs.map} +1 -1
- package/dist/{chunk-NNVTNUKO.cjs → chunk-IE2H2P4K.cjs} +30 -30
- package/dist/{chunk-NNVTNUKO.cjs.map → chunk-IE2H2P4K.cjs.map} +1 -1
- package/dist/{chunk-BLI6T332.js → chunk-IHIEAC2G.js} +2 -2
- package/dist/{chunk-VCR3TW2H.cjs → chunk-IPKFWZDD.cjs} +5 -16
- package/dist/chunk-IPKFWZDD.cjs.map +1 -0
- package/dist/{chunk-O7OCRQJ5.js → chunk-JUO6CFGZ.js} +6 -6
- package/dist/{chunk-MFU3ALKM.cjs → chunk-LAGFAZ2H.cjs} +192 -192
- package/dist/{chunk-MFU3ALKM.cjs.map → chunk-LAGFAZ2H.cjs.map} +1 -1
- package/dist/{chunk-NE4H4JJG.cjs → chunk-N22KLGTR.cjs} +35 -35
- package/dist/{chunk-NE4H4JJG.cjs.map → chunk-N22KLGTR.cjs.map} +1 -1
- package/dist/{chunk-FO7LH32X.cjs → chunk-OQBJQJ6E.cjs} +6 -6
- package/dist/{chunk-FO7LH32X.cjs.map → chunk-OQBJQJ6E.cjs.map} +1 -1
- package/dist/{chunk-MGAQ7JG2.cjs → chunk-RWAHGA2H.cjs} +33 -33
- package/dist/{chunk-MGAQ7JG2.cjs.map → chunk-RWAHGA2H.cjs.map} +1 -1
- package/dist/{chunk-LM34RORU.js → chunk-SFIVEDZA.js} +3 -3
- package/dist/{chunk-H37T7MJI.js → chunk-SSBK7TBW.js} +4 -4
- package/dist/{chunk-ZAY6MSGJ.js → chunk-TGIBJHM6.js} +4 -4
- package/dist/{chunk-4PP5HQP3.cjs → chunk-UPLNZA6P.cjs} +11 -11
- package/dist/{chunk-4PP5HQP3.cjs.map → chunk-UPLNZA6P.cjs.map} +1 -1
- package/dist/{chunk-XOM5UJL3.js → chunk-VDROT42I.js} +3 -3
- package/dist/{chunk-NJ7NQK7C.js → chunk-WGKTGAP3.js} +3 -3
- package/dist/{chunk-ILONGHVW.cjs → chunk-WQ4BZDLO.cjs} +12 -12
- package/dist/{chunk-ILONGHVW.cjs.map → chunk-WQ4BZDLO.cjs.map} +1 -1
- package/dist/{chunk-5IAQM45M.js → chunk-YHE4PSYQ.js} +3 -3
- package/dist/{chunk-WWLTP7EJ.js → chunk-ZF2KSQER.js} +4 -4
- package/dist/{chunk-OB3ZJ7GQ.js → chunk-ZOVS6HJW.js} +2 -2
- 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 +56 -64
- package/dist/components/index.cjs.map +1 -1
- package/dist/components/index.js +15 -23
- package/dist/components/index.js.map +1 -1
- package/dist/components/layout/back-button.d.ts +1 -13
- 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 +83 -54
- package/dist/components/meeting-scheduler/index.cjs.map +1 -1
- package/dist/components/meeting-scheduler/index.js +47 -18
- 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 +4 -12
- package/dist/components/ui/index.cjs.map +1 -1
- package/dist/components/ui/index.d.ts +0 -1
- package/dist/components/ui/index.d.ts.map +1 -1
- package/dist/components/ui/index.js +3 -11
- package/dist/index.cjs +9 -19
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +7 -17
- package/dist/index.js.map +1 -1
- package/dist/utils/image-proxy.d.ts +0 -7
- package/dist/utils/image-proxy.d.ts.map +1 -1
- package/dist/utils/index.cjs +0 -11
- 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 +1 -11
- package/dist/utils/index.js.map +1 -1
- package/package.json +1 -1
- package/src/components/layout/back-button.tsx +14 -37
- package/src/components/meeting-scheduler/context-panel.tsx +36 -3
- package/src/components/ui/index.ts +0 -1
- package/src/utils/image-proxy.ts +0 -17
- package/src/utils/index.ts +0 -1
- package/dist/chunk-I25SF2PZ.cjs.map +0 -1
- package/dist/chunk-VCR3TW2H.cjs.map +0 -1
- package/dist/chunk-WLUBSBEK.js.map +0 -1
- package/dist/chunk-Y2MDXJB4.js.map +0 -1
- package/dist/components/ui/timezone-select.d.ts +0 -25
- package/dist/components/ui/timezone-select.d.ts.map +0 -1
- package/src/components/ui/timezone-select.test.tsx +0 -27
- package/src/components/ui/timezone-select.tsx +0 -75
- package/src/utils/skips-image-optimizer.test.ts +0 -14
- /package/dist/{chunk-PTP7UFUJ.js.map → chunk-2ACUTFHC.js.map} +0 -0
- /package/dist/{chunk-3S56I5MX.js.map → chunk-2NLZ4CB4.js.map} +0 -0
- /package/dist/{chunk-XVHJM7Z7.js.map → chunk-43YWCHYX.js.map} +0 -0
- /package/dist/{chunk-RPX7QWH4.js.map → chunk-4XR3D6BN.js.map} +0 -0
- /package/dist/{chunk-64XEIDGD.js.map → chunk-CI7HVQAK.js.map} +0 -0
- /package/dist/{chunk-CCH36FJC.js.map → chunk-H74TCWVN.js.map} +0 -0
- /package/dist/{chunk-BLI6T332.js.map → chunk-IHIEAC2G.js.map} +0 -0
- /package/dist/{chunk-O7OCRQJ5.js.map → chunk-JUO6CFGZ.js.map} +0 -0
- /package/dist/{chunk-LM34RORU.js.map → chunk-SFIVEDZA.js.map} +0 -0
- /package/dist/{chunk-H37T7MJI.js.map → chunk-SSBK7TBW.js.map} +0 -0
- /package/dist/{chunk-ZAY6MSGJ.js.map → chunk-TGIBJHM6.js.map} +0 -0
- /package/dist/{chunk-XOM5UJL3.js.map → chunk-VDROT42I.js.map} +0 -0
- /package/dist/{chunk-NJ7NQK7C.js.map → chunk-WGKTGAP3.js.map} +0 -0
- /package/dist/{chunk-5IAQM45M.js.map → chunk-YHE4PSYQ.js.map} +0 -0
- /package/dist/{chunk-WWLTP7EJ.js.map → chunk-ZF2KSQER.js.map} +0 -0
- /package/dist/{chunk-OB3ZJ7GQ.js.map → chunk-ZOVS6HJW.js.map} +0 -0
|
@@ -2,19 +2,7 @@ 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;
|
|
10
5
|
}
|
|
11
|
-
|
|
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;
|
|
6
|
+
export declare function BackButton({ label, className, type, ...props }: BackButtonProps): React.JSX.Element;
|
|
19
7
|
export default BackButton;
|
|
20
8
|
//# 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;AAI/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;CACtD;AAED,wBAAgB,UAAU,CAAC,EAAE,KAAc,EAAE,SAAS,EAAE,IAAe,EAAE,GAAG,KAAK,EAAE,EAAE,eAAe,qBAkBnG;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":"AAGA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,sCAAsC,CAAC;AAMxE;;;;;;;;;;;;;;;;;;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;AA0DD;;;;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,+BAyH5B"}
|
|
@@ -24,7 +24,7 @@ var _chunkRQ3HFUKVcjs = require('../../chunk-RQ3HFUKV.cjs');
|
|
|
24
24
|
|
|
25
25
|
|
|
26
26
|
|
|
27
|
-
var
|
|
27
|
+
var _chunkBU77ENDTcjs = require('../../chunk-BU77ENDT.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 _chunkLAGFAZ2Hcjs = require('../../chunk-LAGFAZ2H.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 _chunkIPKFWZDDcjs = require('../../chunk-IPKFWZDD.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(_chunkBU77ENDTcjs.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
|
+
_chunkBU77ENDTcjs.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, _chunkBU77ENDTcjs.Select, { value: _nullishCoalesce(rhf.value, () => ( "")), onValueChange: rhf.onChange, children: [
|
|
549
549
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
550
|
-
|
|
550
|
+
_chunkBU77ENDTcjs.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, _chunkBU77ENDTcjs.SelectValue, { placeholder: "Select\u2026" })
|
|
557
557
|
}
|
|
558
558
|
),
|
|
559
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
559
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBU77ENDTcjs.SelectContent, { children: (_nullishCoalesce(field.options, () => ( []))).map((opt) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBU77ENDTcjs.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
|
+
_chunkBU77ENDTcjs.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, _chunkBU77ENDTcjs.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, ..._chunkBU77ENDTcjs.HUBSPOT_DO_NOT_COLLECT_FORM_PROPS, children: [
|
|
813
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBU77ENDTcjs.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
|
+
_chunkBU77ENDTcjs.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
|
+
_chunkBU77ENDTcjs.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 = _chunkIPKFWZDDcjs.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
|
+
_chunkIPKFWZDDcjs.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,6 +942,7 @@ function Confirmation({ confirmation, timezone }) {
|
|
|
942
942
|
|
|
943
943
|
// src/components/meeting-scheduler/context-panel.tsx
|
|
944
944
|
|
|
945
|
+
|
|
945
946
|
var PANEL_STACK = "flex flex-col gap-[var(--spacing-system-l)]";
|
|
946
947
|
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)]";
|
|
947
948
|
var STRIP_BODY = "flex flex-col gap-[var(--spacing-system-l)] md:flex-row md:items-start lg:flex-col";
|
|
@@ -949,13 +950,25 @@ var STRIP_MAIN = "flex min-w-0 flex-col gap-[var(--spacing-system-l)] md:flex-1"
|
|
|
949
950
|
var STRIP_ASIDE = "flex flex-col gap-[var(--spacing-system-xxs)] md:w-[280px] md:shrink-0 lg:w-full";
|
|
950
951
|
var BACK_BUTTON_CLASS = "py-0";
|
|
951
952
|
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
|
+
}
|
|
952
965
|
function ContextPanelSkeleton({
|
|
953
966
|
className,
|
|
954
967
|
onBack,
|
|
955
968
|
backLabel = "Back"
|
|
956
969
|
}) {
|
|
957
970
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunkX7CEWD6Vcjs.cn.call(void 0, PANEL_STACK, className), children: [
|
|
958
|
-
onBack && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
971
|
+
onBack && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBU77ENDTcjs.BackButton, { label: backLabel, onClick: onBack, className: BACK_BUTTON_CLASS }),
|
|
959
972
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: STRIP_BODY, children: [
|
|
960
973
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: STRIP_MAIN, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: IDENTITY_ROW, children: [
|
|
961
974
|
/* @__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: [
|
|
@@ -990,14 +1003,26 @@ function SchedulerContextPanel({
|
|
|
990
1003
|
showTimezone = true,
|
|
991
1004
|
className
|
|
992
1005
|
}) {
|
|
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]);
|
|
993
1018
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunkX7CEWD6Vcjs.cn.call(void 0, PANEL_STACK, className), children: [
|
|
994
|
-
onBack && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1019
|
+
onBack && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBU77ENDTcjs.BackButton, { label: backLabel, onClick: onBack, className: BACK_BUTTON_CLASS }),
|
|
995
1020
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: STRIP_BODY, children: [
|
|
996
1021
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: STRIP_MAIN, children: [
|
|
997
1022
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: IDENTITY_ROW, children: [
|
|
998
1023
|
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: [
|
|
999
1024
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1000
|
-
|
|
1025
|
+
_chunkIPKFWZDDcjs.SquareAvatar,
|
|
1001
1026
|
{
|
|
1002
1027
|
variant: "round",
|
|
1003
1028
|
size: "sm",
|
|
@@ -1012,7 +1037,7 @@ function SchedulerContextPanel({
|
|
|
1012
1037
|
] })
|
|
1013
1038
|
] }, host.name)) }),
|
|
1014
1039
|
hosts.length > 3 && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col gap-[var(--spacing-system-xs)]", children: [
|
|
1015
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1040
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIPKFWZDDcjs.AvatarStack, { people: hosts, max: 4, size: "lg", label: "Hosts" }),
|
|
1016
1041
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "p", { className: "text-ods-text-secondary text-h6", children: [
|
|
1017
1042
|
hosts.length,
|
|
1018
1043
|
" hosts on this calendar"
|
|
@@ -1022,7 +1047,7 @@ function SchedulerContextPanel({
|
|
|
1022
1047
|
// Post-selection, or a link that offers one length: a static line,
|
|
1023
1048
|
// which is what sits beside the host on the header-strip layouts.
|
|
1024
1049
|
selectedDurationMs != null && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "p", { className: "shrink-0 text-ods-text-secondary text-h6", children: [
|
|
1025
|
-
|
|
1050
|
+
_chunkIPKFWZDDcjs.formatDurationCompact.call(void 0, selectedDurationMs / 1e3),
|
|
1026
1051
|
" call"
|
|
1027
1052
|
] })
|
|
1028
1053
|
) : null
|
|
@@ -1038,7 +1063,7 @@ function SchedulerContextPanel({
|
|
|
1038
1063
|
size: "small-legacy",
|
|
1039
1064
|
disabled,
|
|
1040
1065
|
onClick: () => onSelectDuration(ms),
|
|
1041
|
-
children:
|
|
1066
|
+
children: _chunkIPKFWZDDcjs.formatDurationCompact.call(void 0, ms / 1e3)
|
|
1042
1067
|
},
|
|
1043
1068
|
ms
|
|
1044
1069
|
)) })
|
|
@@ -1053,13 +1078,17 @@ function SchedulerContextPanel({
|
|
|
1053
1078
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunkX7CEWD6Vcjs.cn.call(void 0, STRIP_ASIDE, locked && "max-lg:hidden"), children: [
|
|
1054
1079
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: FIELD_LABEL_CLASS, children: "Timezone" }),
|
|
1055
1080
|
timezone ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1056
|
-
|
|
1081
|
+
_chunkBU77ENDTcjs.Autocomplete,
|
|
1057
1082
|
{
|
|
1058
1083
|
value: timezone,
|
|
1059
1084
|
disabled,
|
|
1060
1085
|
onChange: (tz) => {
|
|
1061
|
-
if (tz) _optionalChain([onTimezoneChange, 'optionalCall',
|
|
1062
|
-
}
|
|
1086
|
+
if (tz) _optionalChain([onTimezoneChange, 'optionalCall', _38 => _38(tz)]);
|
|
1087
|
+
},
|
|
1088
|
+
options: zoneOptions,
|
|
1089
|
+
placeholder: "Search timezone\u2026",
|
|
1090
|
+
noOptionsText: "No matching timezone",
|
|
1091
|
+
showClearAll: false
|
|
1063
1092
|
}
|
|
1064
1093
|
) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkKWX65373cjs.Skeleton, { className: "h-12 w-full" })
|
|
1065
1094
|
] })
|
|
@@ -1085,7 +1114,7 @@ function dateFromDayKey(key) {
|
|
|
1085
1114
|
return new Date(y, m - 1, d, 12);
|
|
1086
1115
|
}
|
|
1087
1116
|
function timeLabelInZone(ms, timeZone) {
|
|
1088
|
-
return
|
|
1117
|
+
return _chunkIPKFWZDDcjs.formatTimeWithTimezone.call(void 0, ms, timeZone, { viewerLocale: true });
|
|
1089
1118
|
}
|
|
1090
1119
|
var CALENDAR_W = "md:w-[19rem] md:shrink-0 lg:w-[16rem]";
|
|
1091
1120
|
var COLUMN_HEADING_CLASS = "shrink-0 text-h4 text-ods-text-primary";
|
|
@@ -1129,25 +1158,25 @@ var COLUMN_DIVIDER = "border-b border-ods-border md:border-b-0 md:border-r lg:bo
|
|
|
1129
1158
|
function monthLabelFor(offset) {
|
|
1130
1159
|
const now = /* @__PURE__ */ new Date();
|
|
1131
1160
|
const month = new Date(now.getFullYear(), now.getMonth() + offset, 1);
|
|
1132
|
-
return
|
|
1161
|
+
return _chunkIPKFWZDDcjs.formatDateWithTimezone.call(void 0, month, _chunkIPKFWZDDcjs.VIEWER_TIMEZONE, "monthYear");
|
|
1133
1162
|
}
|
|
1134
1163
|
var DISABLE_EVERY_DAY = () => true;
|
|
1135
1164
|
var NOOP = () => void 0;
|
|
1136
1165
|
function DayCalendar({ monthOffset, onMonthOffsetChange, selectedDay, onSelectDay, slotsByDay }) {
|
|
1137
1166
|
const now = /* @__PURE__ */ new Date();
|
|
1138
1167
|
const startMonth = new Date(now.getFullYear(), now.getMonth(), 1);
|
|
1139
|
-
const endMonth = new Date(now.getFullYear(), now.getMonth() +
|
|
1168
|
+
const endMonth = new Date(now.getFullYear(), now.getMonth() + _chunkBU77ENDTcjs.MAX_MONTH_OFFSET + 1, 0);
|
|
1140
1169
|
const visibleMonth = new Date(now.getFullYear(), now.getMonth() + monthOffset, 1);
|
|
1141
|
-
const dayHasNoSlots = _react.useCallback.call(void 0, (day) => !_optionalChain([slotsByDay, 'optionalAccess',
|
|
1170
|
+
const dayHasNoSlots = _react.useCallback.call(void 0, (day) => !_optionalChain([slotsByDay, 'optionalAccess', _39 => _39.has, 'call', _40 => _40(calendarDayKey(day))]), [slotsByDay]);
|
|
1142
1171
|
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,
|
|
1143
|
-
|
|
1172
|
+
_chunkBU77ENDTcjs.DatePickerCalendar,
|
|
1144
1173
|
{
|
|
1145
1174
|
mode: "single",
|
|
1146
1175
|
bare: true,
|
|
1147
1176
|
month: visibleMonth,
|
|
1148
1177
|
onMonthChange: (month) => {
|
|
1149
1178
|
const offset = (month.getFullYear() - now.getFullYear()) * 12 + (month.getMonth() - now.getMonth());
|
|
1150
|
-
onMonthOffsetChange(Math.max(0, Math.min(
|
|
1179
|
+
onMonthOffsetChange(Math.max(0, Math.min(_chunkBU77ENDTcjs.MAX_MONTH_OFFSET, offset)));
|
|
1151
1180
|
},
|
|
1152
1181
|
fromDate: startMonth,
|
|
1153
1182
|
toDate: endMonth,
|
|
@@ -1156,7 +1185,7 @@ function DayCalendar({ monthOffset, onMonthOffsetChange, selectedDay, onSelectDa
|
|
|
1156
1185
|
const day = value;
|
|
1157
1186
|
if (!day) return;
|
|
1158
1187
|
const key = calendarDayKey(day);
|
|
1159
|
-
if (_optionalChain([slotsByDay, 'optionalAccess',
|
|
1188
|
+
if (_optionalChain([slotsByDay, 'optionalAccess', _41 => _41.has, 'call', _42 => _42(key)])) onSelectDay(key);
|
|
1160
1189
|
},
|
|
1161
1190
|
disabledDays: slotsByDay === null ? DISABLE_EVERY_DAY : dayHasNoSlots
|
|
1162
1191
|
}
|
|
@@ -1234,7 +1263,7 @@ function SlotPicker({
|
|
|
1234
1263
|
)
|
|
1235
1264
|
] }),
|
|
1236
1265
|
/* @__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: [
|
|
1237
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: COLUMN_HEADING_CLASS, children:
|
|
1266
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: COLUMN_HEADING_CLASS, children: _chunkIPKFWZDDcjs.formatDateWithTimezone.call(void 0, dateFromDayKey(selectedDay), _chunkIPKFWZDDcjs.VIEWER_TIMEZONE, "weekday", { viewerLocale: true }) }),
|
|
1238
1267
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: CHIP_GRID_CLASS, children: daySlots.map((ms) => {
|
|
1239
1268
|
const isSelected = selectedSlot === ms;
|
|
1240
1269
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -1263,7 +1292,7 @@ function SlotPicker({
|
|
|
1263
1292
|
monthLabelFor(monthOffset),
|
|
1264
1293
|
"."
|
|
1265
1294
|
] }),
|
|
1266
|
-
monthOffset <
|
|
1295
|
+
monthOffset < _chunkBU77ENDTcjs.MAX_MONTH_OFFSET && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
1267
1296
|
_chunkF6U2H42Lcjs.Button,
|
|
1268
1297
|
{
|
|
1269
1298
|
variant: "outline",
|
|
@@ -1285,10 +1314,10 @@ function SlotPicker({
|
|
|
1285
1314
|
|
|
1286
1315
|
|
|
1287
1316
|
function useNextAvailableLabel(ms) {
|
|
1288
|
-
const hydrated =
|
|
1317
|
+
const hydrated = _chunkLAGFAZ2Hcjs.useIsHydrated.call(void 0, );
|
|
1289
1318
|
return _react.useMemo.call(void 0, () => {
|
|
1290
1319
|
if (!hydrated || ms == null) return null;
|
|
1291
|
-
return
|
|
1320
|
+
return _chunkIPKFWZDDcjs.formatDateWithTimezone.call(void 0, ms, _chunkIPKFWZDDcjs.VIEWER_TIMEZONE, "shortWeekdayDateTime", { viewerLocale: true }) || null;
|
|
1292
1321
|
}, [hydrated, ms]);
|
|
1293
1322
|
}
|
|
1294
1323
|
function DirectoryRow({
|
|
@@ -1299,7 +1328,7 @@ function DirectoryRow({
|
|
|
1299
1328
|
const nextLabel = useNextAvailableLabel(link.nextAvailableMs);
|
|
1300
1329
|
const subtitle = [
|
|
1301
1330
|
link.description,
|
|
1302
|
-
link.durationsMinutes.length > 0 ? link.durationsMinutes.map((m) =>
|
|
1331
|
+
link.durationsMinutes.length > 0 ? link.durationsMinutes.map((m) => _chunkIPKFWZDDcjs.formatDurationCompact.call(void 0, m * 60)).join(" / ") : null,
|
|
1303
1332
|
link.kind === "team" ? "Team" : null
|
|
1304
1333
|
].filter(Boolean).join(" \u2022 ");
|
|
1305
1334
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -1313,8 +1342,8 @@ function DirectoryRow({
|
|
|
1313
1342
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "truncate text-ods-text-primary text-h3", children: link.title }),
|
|
1314
1343
|
subtitle && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "truncate text-ods-text-secondary text-h6", children: subtitle })
|
|
1315
1344
|
] }),
|
|
1316
|
-
audienceLabel && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1317
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1345
|
+
audienceLabel && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIPKFWZDDcjs.StatusBadge, { text: `For ${audienceLabel}`, singleLine: true, className: "hidden shrink-0 sm:inline-flex" }),
|
|
1346
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIPKFWZDDcjs.AvatarStack, { people: link.hosts, max: 3, size: "md", label: "Hosts", className: "flex shrink-0" }),
|
|
1318
1347
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "hidden w-44 shrink-0 flex-col items-end justify-center md:flex", children: [
|
|
1319
1348
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-ods-text-secondary text-h6", children: "Next available" }),
|
|
1320
1349
|
/* @__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, () => ( " ")) })
|
|
@@ -1380,7 +1409,7 @@ function MeetingSchedulerDirectory({
|
|
|
1380
1409
|
};
|
|
1381
1410
|
}, [initialData, includeAll, apiBaseUrl]);
|
|
1382
1411
|
const rows = _react.useMemo.call(void 0, () => {
|
|
1383
|
-
const purposes = _nullishCoalesce(_optionalChain([data, 'optionalAccess',
|
|
1412
|
+
const purposes = _nullishCoalesce(_optionalChain([data, 'optionalAccess', _43 => _43.purposes]), () => ( []));
|
|
1384
1413
|
return purposes.flatMap((p) => p.links.map((link) => ({ link, audienceLabel: p.label })));
|
|
1385
1414
|
}, [data]);
|
|
1386
1415
|
const totalPages = _chunkNPPI32SOcjs.pageCount.call(void 0, rows.length, pageSize);
|
|
@@ -1518,13 +1547,13 @@ function HubSpotMeetingScheduler({
|
|
|
1518
1547
|
isSubmitting
|
|
1519
1548
|
} = useMeetingBooking({ meetingId, apiBaseUrl, initialAvailability });
|
|
1520
1549
|
const detailsFirst = flow === "details-first";
|
|
1521
|
-
const hydrated =
|
|
1550
|
+
const hydrated = _chunkLAGFAZ2Hcjs.useIsHydrated.call(void 0, );
|
|
1522
1551
|
const [pickedTimezone, setTimezone] = _react.useState.call(void 0, null);
|
|
1523
1552
|
const resolvedLocalTimezone = _react.useMemo.call(void 0, () => {
|
|
1524
1553
|
if (!hydrated) return null;
|
|
1525
1554
|
try {
|
|
1526
1555
|
return Intl.DateTimeFormat().resolvedOptions().timeZone || "UTC";
|
|
1527
|
-
} catch (
|
|
1556
|
+
} catch (e6) {
|
|
1528
1557
|
return "UTC";
|
|
1529
1558
|
}
|
|
1530
1559
|
}, [hydrated]);
|
|
@@ -1537,7 +1566,7 @@ function HubSpotMeetingScheduler({
|
|
|
1537
1566
|
onStageChangeRef.current = onStageChange;
|
|
1538
1567
|
});
|
|
1539
1568
|
_react.useEffect.call(void 0, () => {
|
|
1540
|
-
_optionalChain([onStageChangeRef, 'access',
|
|
1569
|
+
_optionalChain([onStageChangeRef, 'access', _44 => _44.current, 'optionalCall', _45 => _45(stage)]);
|
|
1541
1570
|
}, [stage]);
|
|
1542
1571
|
const [stash, setStash] = _react.useState.call(void 0, null);
|
|
1543
1572
|
const inFlightRef = _react.useRef.call(void 0, false);
|
|
@@ -1568,8 +1597,8 @@ function HubSpotMeetingScheduler({
|
|
|
1568
1597
|
_react.useEffect.call(void 0, () => {
|
|
1569
1598
|
autoAdvanceCount.current = 0;
|
|
1570
1599
|
}, [meetingId]);
|
|
1571
|
-
const durations = _react.useMemo.call(void 0, () => _nullishCoalesce(_optionalChain([availability, 'optionalAccess',
|
|
1572
|
-
const shownHosts = _nullishCoalesce(_nullishCoalesce(hosts, () => ( _optionalChain([availability, 'optionalAccess',
|
|
1600
|
+
const durations = _react.useMemo.call(void 0, () => _nullishCoalesce(_optionalChain([availability, 'optionalAccess', _46 => _46.durationsMs]), () => ( [])), [_optionalChain([availability, 'optionalAccess', _47 => _47.durationsMs])]);
|
|
1601
|
+
const shownHosts = _nullishCoalesce(_nullishCoalesce(hosts, () => ( _optionalChain([availability, 'optionalAccess', _48 => _48.hosts]))), () => ( []));
|
|
1573
1602
|
const durationMs = _nullishCoalesce(_nullishCoalesce(pickedDurationMs, () => ( durations[0])), () => ( null));
|
|
1574
1603
|
const slots = _react.useMemo.call(void 0, () => {
|
|
1575
1604
|
if (!availability || durationMs == null) return [];
|
|
@@ -1629,7 +1658,7 @@ function HubSpotMeetingScheduler({
|
|
|
1629
1658
|
_chunk6CDP6TGHcjs.completeFormRescue.call(void 0, rescue, payload[_chunk6CDP6TGHcjs.FORM_RESCUE_ATTEMPT_FIELD]);
|
|
1630
1659
|
setConfirmation(result.confirmation);
|
|
1631
1660
|
setStep("confirmed");
|
|
1632
|
-
_optionalChain([onBooked, 'optionalCall',
|
|
1661
|
+
_optionalChain([onBooked, 'optionalCall', _49 => _49(result.confirmation)]);
|
|
1633
1662
|
return;
|
|
1634
1663
|
}
|
|
1635
1664
|
const code = _nullishCoalesce(result.code, () => ( "TEMPORARILY_UNAVAILABLE"));
|
|
@@ -1677,8 +1706,8 @@ function HubSpotMeetingScheduler({
|
|
|
1677
1706
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: stepPanelClass, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1678
1707
|
BookingFormSkeleton,
|
|
1679
1708
|
{
|
|
1680
|
-
fieldRows: _optionalChain([detailsFormProps, 'optionalAccess',
|
|
1681
|
-
consent: Boolean(_optionalChain([detailsFormProps, 'optionalAccess',
|
|
1709
|
+
fieldRows: _optionalChain([detailsFormProps, 'optionalAccess', _50 => _50.fieldRows]),
|
|
1710
|
+
consent: Boolean(_optionalChain([detailsFormProps, 'optionalAccess', _51 => _51.consent])),
|
|
1682
1711
|
footerNote: preset.footerNote
|
|
1683
1712
|
}
|
|
1684
1713
|
) })
|
|
@@ -1722,10 +1751,10 @@ function HubSpotMeetingScheduler({
|
|
|
1722
1751
|
durations.length > 0
|
|
1723
1752
|
) : 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: [
|
|
1724
1753
|
selectedSlot != null && durationMs != null && timezone != null && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "p", { className: "text-ods-text-primary text-h4", children: [
|
|
1725
|
-
|
|
1754
|
+
_chunkIPKFWZDDcjs.formatDateWithTimezone.call(void 0, selectedSlot, timezone, "weekdayDateTimeZoned", { viewerLocale: true }),
|
|
1726
1755
|
" \xB7",
|
|
1727
1756
|
" ",
|
|
1728
|
-
|
|
1757
|
+
_chunkIPKFWZDDcjs.formatDurationCompact.call(void 0, durationMs / 1e3)
|
|
1729
1758
|
] }),
|
|
1730
1759
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1731
1760
|
DetailsForm,
|
|
@@ -1739,7 +1768,7 @@ function HubSpotMeetingScheduler({
|
|
|
1739
1768
|
deferSlot: detailsFirst,
|
|
1740
1769
|
submitLabel: preset.submitLabel,
|
|
1741
1770
|
footerNote: preset.footerNote,
|
|
1742
|
-
initialValues: detailsFirst ? _optionalChain([stash, 'optionalAccess',
|
|
1771
|
+
initialValues: detailsFirst ? _optionalChain([stash, 'optionalAccess', _52 => _52.payload]) : void 0,
|
|
1743
1772
|
isSubmitting,
|
|
1744
1773
|
onSubmit: detailsFirst ? stashDetails : handleSubmit,
|
|
1745
1774
|
honeypotInputProps,
|
|
@@ -1749,11 +1778,11 @@ function HubSpotMeetingScheduler({
|
|
|
1749
1778
|
)
|
|
1750
1779
|
] }) : /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col gap-[var(--spacing-system-m)] md:min-h-0 md:flex-1", children: [
|
|
1751
1780
|
bookingError === "SLOT_TAKEN" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1752
|
-
|
|
1781
|
+
_chunkBU77ENDTcjs.Alert,
|
|
1753
1782
|
{
|
|
1754
1783
|
variant: "warning",
|
|
1755
1784
|
className: "mx-[var(--spacing-system-l)] mt-[var(--spacing-system-l)] w-auto lg:m-0 lg:w-full",
|
|
1756
|
-
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1785
|
+
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBU77ENDTcjs.AlertDescription, { children: "That time was just taken \u2014 pick another slot below. (If you already submitted, check your email for a confirmation before rebooking.)" })
|
|
1757
1786
|
}
|
|
1758
1787
|
),
|
|
1759
1788
|
timezone && durationMs != null ? (
|