@flamingo-stack/openframe-frontend-core 0.0.794 → 0.0.796
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/build/export-map.json +1 -1
- package/dist/{chunk-FYHXMHY6.cjs → chunk-6JCTKXHX.cjs} +13 -13
- package/dist/{chunk-HXL7AUPG.cjs → chunk-6WXP5IKR.cjs} +16 -16
- package/dist/{chunk-6VP5UWZG.cjs → chunk-7SEY3FDF.cjs} +2 -2
- package/dist/{chunk-BFCGOHQG.cjs → chunk-7VU4HHUR.cjs} +32 -32
- package/dist/{chunk-43ZVXQJK.cjs → chunk-CC7NRWRF.cjs} +48 -48
- package/dist/{chunk-72NE4G63.cjs → chunk-CFXCCQ6T.cjs} +2 -2
- package/dist/{chunk-RPC4P7GY.cjs → chunk-F64GLU75.cjs} +33 -33
- package/dist/{chunk-PQIWR4Q2.cjs → chunk-G24OX7AC.cjs} +16 -16
- package/dist/{chunk-7VXMO4XJ.cjs → chunk-GP7NV6BK.cjs} +3 -1
- package/dist/{chunk-6TUI5KQS.cjs → chunk-II4A2RUG.cjs} +41 -41
- package/dist/{chunk-ZCMXBX4Z.cjs → chunk-IONS6HDF.cjs} +5 -5
- package/dist/{chunk-UAZTXYPC.cjs → chunk-JC43ULIC.cjs} +107 -78
- package/dist/{chunk-FYPVCCCV.cjs → chunk-JGURZROB.cjs} +27 -27
- package/dist/{chunk-FOWQ4XTB.cjs → chunk-N3J4U7ML.cjs} +2 -2
- package/dist/{chunk-IJ23KNYI.cjs → chunk-NAJ24ODA.cjs} +4 -4
- package/dist/{chunk-F73DM65J.cjs → chunk-NRAH3M66.cjs} +46 -46
- package/dist/{chunk-3XAFK4WH.cjs → chunk-OKAHKZP2.cjs} +8 -8
- package/dist/{chunk-2KLYMAHF.cjs → chunk-PALMLL5T.cjs} +4 -4
- package/dist/{chunk-CLEZ6TWZ.cjs → chunk-QCN46LDL.cjs} +69 -69
- package/dist/{chunk-YPKAMHYA.cjs → chunk-QMDXG3VF.cjs} +574 -457
- package/dist/{chunk-BIYLAAFI.cjs → chunk-TUD7BV6O.cjs} +9 -9
- package/dist/{chunk-OK467OQJ.cjs → chunk-UYOGZJPE.cjs} +4 -4
- package/dist/{chunk-IQTVKPRG.cjs → chunk-VUP7ZGZS.cjs} +20 -20
- package/dist/{chunk-YYKXX5NA.cjs → chunk-VYXNGADV.cjs} +24 -24
- package/dist/{chunk-A6E5ZNQR.cjs → chunk-W4QITOT7.cjs} +5 -5
- package/dist/{chunk-NGGEYE5R.cjs → chunk-XFJ7BZDJ.cjs} +5 -5
- package/dist/{chunk-U4D4ABXK.cjs → chunk-XVVQJXOA.cjs} +39 -39
- package/dist/{chunk-QDW64E6T.cjs → chunk-Y3IMXLLL.cjs} +143 -143
- package/dist/{chunk-NIW4ETGC.cjs → chunk-YFHKBIZT.cjs} +6 -6
- package/dist/{chunk-KQPU5N7T.cjs → chunk-ZMWSN2BD.cjs} +11 -11
- package/dist/{chunk-ZIMPE7D5.cjs → chunk-ZRME3A2D.cjs} +3 -3
- package/dist/{cloud-tenants-Z3AYAXF5.cjs → cloud-tenants-BQUWLMYY.cjs} +12 -12
- package/dist/components/case-studies/index.cjs +26 -26
- package/dist/components/chat/index.cjs +9 -9
- package/dist/components/contact/index.cjs +13 -13
- package/dist/components/docs/index.cjs +16 -16
- package/dist/components/embeds/index.cjs +13 -13
- package/dist/components/faq/index.cjs +14 -14
- package/dist/components/features/index.cjs +12 -12
- package/dist/components/help-center-pages/index.cjs +98 -98
- package/dist/components/index.cjs +82 -68
- package/dist/components/meeting-scheduler/index.cjs +72 -72
- package/dist/components/navigation/index.cjs +15 -15
- package/dist/components/onboarding-guides/index.cjs +15 -15
- package/dist/components/product-demo/index.cjs +23 -23
- package/dist/components/related-content/index.cjs +7 -7
- package/dist/components/shared/roadmap/roadmap-grid.d.ts +6 -1
- package/dist/components/shared/roadmap/roadmap-grid.d.ts.map +1 -1
- package/dist/components/shared/roadmap/roadmap-grid.js +37 -8
- package/dist/components/tickets/index.cjs +19 -19
- package/dist/components/ui/floating-tooltip.d.ts.map +1 -1
- package/dist/components/ui/floating-tooltip.js +3 -1
- package/dist/components/ui/index.cjs +26 -12
- 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 +9 -1
- package/dist/components/ui/trendline.d.ts +60 -0
- package/dist/components/ui/trendline.d.ts.map +1 -0
- package/dist/components/ui/trendline.js +121 -0
- package/dist/{devices-P6XQL23S.cjs → devices-BFQOLI3D.cjs} +13 -13
- package/dist/{embeddable-chat-6BNLOSBB.cjs → embeddable-chat-INYF23ST.cjs} +74 -74
- package/dist/index.cjs +31 -17
- package/dist/{knowledge-IU5ORU7U.cjs → knowledge-GGYWTYTP.cjs} +13 -13
- package/dist/{logs-DCFTQVKA.cjs → logs-NO55PTIO.cjs} +20 -20
- package/dist/{policies-ESC6XCVH.cjs → policies-AAFYTVOJ.cjs} +16 -16
- package/dist/{remote-session-4ZNTOLOQ.cjs → remote-session-2CNWLF3P.cjs} +7 -7
- package/dist/{scripts-24PIP2VO.cjs → scripts-H4ECJ65X.cjs} +19 -19
- package/dist/{software-update-47GDTKMI.cjs → software-update-NEEGQBK3.cjs} +16 -16
- package/dist/{tickets-board-X4GHEKPB.cjs → tickets-board-CXYRAMDL.cjs} +8 -8
- package/package.json +1 -1
- package/src/components/shared/roadmap/roadmap-grid.tsx +38 -9
- package/src/components/ui/floating-tooltip.tsx +4 -1
- package/src/components/ui/index.ts +1 -0
- package/src/components/ui/trendline.tsx +221 -0
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
"use client";
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var _chunkN3J4U7MLcjs = require('../../chunk-N3J4U7ML.cjs');
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _chunkPALMLL5Tcjs = require('../../chunk-PALMLL5T.cjs');
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
var
|
|
11
|
+
var _chunk7SEY3FDFcjs = require('../../chunk-7SEY3FDF.cjs');
|
|
12
12
|
|
|
13
13
|
|
|
14
14
|
|
|
@@ -22,8 +22,8 @@ var _chunk6VP5UWZGcjs = require('../../chunk-6VP5UWZG.cjs');
|
|
|
22
22
|
|
|
23
23
|
|
|
24
24
|
|
|
25
|
-
var
|
|
26
|
-
require('../../chunk-
|
|
25
|
+
var _chunkQMDXG3VFcjs = require('../../chunk-QMDXG3VF.cjs');
|
|
26
|
+
require('../../chunk-G24OX7AC.cjs');
|
|
27
27
|
require('../../chunk-HJBJHQKE.cjs');
|
|
28
28
|
|
|
29
29
|
|
|
@@ -32,7 +32,7 @@ require('../../chunk-HJBJHQKE.cjs');
|
|
|
32
32
|
|
|
33
33
|
|
|
34
34
|
|
|
35
|
-
var
|
|
35
|
+
var _chunkF64GLU75cjs = require('../../chunk-F64GLU75.cjs');
|
|
36
36
|
require('../../chunk-HQQE74RO.cjs');
|
|
37
37
|
require('../../chunk-DEY6XXGO.cjs');
|
|
38
38
|
|
|
@@ -51,13 +51,13 @@ var _chunkRFIBRGXGcjs = require('../../chunk-RFIBRGXG.cjs');
|
|
|
51
51
|
|
|
52
52
|
|
|
53
53
|
|
|
54
|
-
var
|
|
54
|
+
var _chunkNRAH3M66cjs = require('../../chunk-NRAH3M66.cjs');
|
|
55
55
|
|
|
56
56
|
|
|
57
|
-
var
|
|
58
|
-
require('../../chunk-
|
|
57
|
+
var _chunkY3IMXLLLcjs = require('../../chunk-Y3IMXLLL.cjs');
|
|
58
|
+
require('../../chunk-TUD7BV6O.cjs');
|
|
59
59
|
require('../../chunk-RKWEFZ6P.cjs');
|
|
60
|
-
require('../../chunk-
|
|
60
|
+
require('../../chunk-IONS6HDF.cjs');
|
|
61
61
|
require('../../chunk-QVKWKY4O.cjs');
|
|
62
62
|
require('../../chunk-ZOZR3QI2.cjs');
|
|
63
63
|
require('../../chunk-OMV5S5PI.cjs');
|
|
@@ -1857,8 +1857,8 @@ require('../../chunk-7DNL734S.cjs');
|
|
|
1857
1857
|
require('../../chunk-WWUSFOJ7.cjs');
|
|
1858
1858
|
require('../../chunk-SKI6NKOE.cjs');
|
|
1859
1859
|
require('../../chunk-EWPR7662.cjs');
|
|
1860
|
-
require('../../chunk-
|
|
1861
|
-
require('../../chunk-
|
|
1860
|
+
require('../../chunk-OKAHKZP2.cjs');
|
|
1861
|
+
require('../../chunk-JGURZROB.cjs');
|
|
1862
1862
|
|
|
1863
1863
|
|
|
1864
1864
|
var _chunkUN6LC5PKcjs = require('../../chunk-UN6LC5PK.cjs');
|
|
@@ -1866,7 +1866,7 @@ require('../../chunk-QVC5CMC5.cjs');
|
|
|
1866
1866
|
require('../../chunk-JXQNECXM.cjs');
|
|
1867
1867
|
|
|
1868
1868
|
|
|
1869
|
-
var
|
|
1869
|
+
var _chunkCFXCCQ6Tcjs = require('../../chunk-CFXCCQ6T.cjs');
|
|
1870
1870
|
|
|
1871
1871
|
|
|
1872
1872
|
|
|
@@ -1874,7 +1874,7 @@ var _chunk72NE4G63cjs = require('../../chunk-72NE4G63.cjs');
|
|
|
1874
1874
|
|
|
1875
1875
|
|
|
1876
1876
|
|
|
1877
|
-
var
|
|
1877
|
+
var _chunkGP7NV6BKcjs = require('../../chunk-GP7NV6BK.cjs');
|
|
1878
1878
|
require('../../chunk-S5C3OZCO.cjs');
|
|
1879
1879
|
require('../../chunk-32ASZMTV.cjs');
|
|
1880
1880
|
require('../../chunk-OOYBIS7D.cjs');
|
|
@@ -2221,7 +2221,7 @@ function useMeetingBooking(options) {
|
|
|
2221
2221
|
const seededOffset = _optionalChain([initialAvailability, 'optionalAccess', _12 => _12.meetingId]) === meetingId ? initialAvailability.monthOffset : void 0;
|
|
2222
2222
|
const [monthOffset, setMonthOffsetState] = _react.useState.call(void 0, _nullishCoalesce(seededOffset, () => ( 0)));
|
|
2223
2223
|
const setMonthOffset = _react.useCallback.call(void 0, (offset) => {
|
|
2224
|
-
setMonthOffsetState(Math.max(0, Math.min(
|
|
2224
|
+
setMonthOffsetState(Math.max(0, Math.min(_chunkNRAH3M66cjs.MAX_MONTH_OFFSET, offset)));
|
|
2225
2225
|
}, []);
|
|
2226
2226
|
const prevMeetingIdRef = _react.useRef.call(void 0, meetingId);
|
|
2227
2227
|
_react.useLayoutEffect.call(void 0, () => {
|
|
@@ -2323,7 +2323,7 @@ function BookingContextSummary({
|
|
|
2323
2323
|
const label = _nullishCoalesce(_optionalChain([slot, 'optionalAccess', _14 => _14.label]), () => ( _optionalChain([context, 'optionalAccess', _15 => _15.label])));
|
|
2324
2324
|
if (!label || !slot && items.length === 0) return null;
|
|
2325
2325
|
if (!slot) {
|
|
2326
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, SummaryFrame, { label, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "ul", { className: "flex flex-wrap gap-[var(--spacing-system-xs)]", "aria-label": label, children: items.map((item) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "li", { className: "min-w-0 max-w-full", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2326
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, SummaryFrame, { label, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "ul", { className: "flex flex-wrap gap-[var(--spacing-system-xs)]", "aria-label": label, children: items.map((item) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "li", { className: "min-w-0 max-w-full", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGP7NV6BKcjs.Tag, { label: item, ...LINE_TAG_PROPS }) }, item)) }) });
|
|
2327
2327
|
}
|
|
2328
2328
|
const cells = Array.from({ length: Math.max(slot.slots, items.length) }, (_, index) => items[index]);
|
|
2329
2329
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, SummaryFrame, { label, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "relative", children: [
|
|
@@ -2335,7 +2335,7 @@ function BookingContextSummary({
|
|
|
2335
2335
|
className: SLOT_CELL_CLASS,
|
|
2336
2336
|
"aria-hidden": empty || void 0,
|
|
2337
2337
|
"data-loading-item": "",
|
|
2338
|
-
children: loading ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2338
|
+
children: loading ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGP7NV6BKcjs.Tag, { label: "", loading: true, ...LINE_TAG_PROPS, className: LOADING_LINE_CLASS }) : item ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGP7NV6BKcjs.Tag, { label: item, ...LINE_TAG_PROPS }) : (
|
|
2339
2339
|
// With no line at all the empty state covers every slot; with some, the rest stay as slots.
|
|
2340
2340
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunk6YZNUHXTcjs.cn.call(void 0, EMPTY_CELL_CLASS, items.length === 0 && "invisible") })
|
|
2341
2341
|
)
|
|
@@ -2402,7 +2402,7 @@ var FIELD_CONTROLS = {
|
|
|
2402
2402
|
}
|
|
2403
2403
|
),
|
|
2404
2404
|
textarea: ({ field, id, registerName, error, register }) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2405
|
-
|
|
2405
|
+
_chunkQMDXG3VFcjs.Textarea,
|
|
2406
2406
|
{
|
|
2407
2407
|
id,
|
|
2408
2408
|
required: field.required,
|
|
@@ -2458,18 +2458,18 @@ var FIELD_CONTROLS = {
|
|
|
2458
2458
|
{
|
|
2459
2459
|
control,
|
|
2460
2460
|
name: registerName,
|
|
2461
|
-
render: ({ field: rhf }) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
2461
|
+
render: ({ field: rhf }) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkF64GLU75cjs.Select, { value: _nullishCoalesce(rhf.value, () => ( "")), onValueChange: rhf.onChange, children: [
|
|
2462
2462
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2463
|
-
|
|
2463
|
+
_chunkF64GLU75cjs.SelectTrigger,
|
|
2464
2464
|
{
|
|
2465
2465
|
id,
|
|
2466
2466
|
"aria-required": field.required || void 0,
|
|
2467
2467
|
"aria-invalid": Boolean(error),
|
|
2468
2468
|
invalid: Boolean(error),
|
|
2469
|
-
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2469
|
+
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkF64GLU75cjs.SelectValue, { placeholder: "Select\u2026" })
|
|
2470
2470
|
}
|
|
2471
2471
|
),
|
|
2472
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2472
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkF64GLU75cjs.SelectContent, { children: (_nullishCoalesce(field.options, () => ( []))).map((opt) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkF64GLU75cjs.SelectItem, { value: opt, children: formFieldOptionLabel(field, opt) }, opt)) })
|
|
2473
2473
|
] })
|
|
2474
2474
|
}
|
|
2475
2475
|
),
|
|
@@ -2479,14 +2479,14 @@ var FIELD_CONTROLS = {
|
|
|
2479
2479
|
control,
|
|
2480
2480
|
name: registerName,
|
|
2481
2481
|
render: ({ field: rhf }) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2482
|
-
|
|
2482
|
+
_chunkQMDXG3VFcjs.RadioGroup,
|
|
2483
2483
|
{
|
|
2484
2484
|
value: _nullishCoalesce(rhf.value, () => ( "")),
|
|
2485
2485
|
onValueChange: rhf.onChange,
|
|
2486
2486
|
"aria-required": field.required || void 0,
|
|
2487
2487
|
"aria-invalid": Boolean(error),
|
|
2488
2488
|
children: (_nullishCoalesce(field.options, () => ( []))).map((opt) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center gap-[var(--spacing-system-xs)]", children: [
|
|
2489
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2489
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQMDXG3VFcjs.RadioGroupItem, { id: `${id}-${opt}`, value: opt }),
|
|
2490
2490
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkJRTDBPJTcjs.Label, { htmlFor: `${id}-${opt}`, children: formFieldOptionLabel(field, opt) })
|
|
2491
2491
|
] }, opt))
|
|
2492
2492
|
}
|
|
@@ -2560,7 +2560,7 @@ var chipsControl = ({ field, id, registerName, error, control }) => /* @__PURE__
|
|
|
2560
2560
|
control,
|
|
2561
2561
|
name: registerName,
|
|
2562
2562
|
render: ({ field: rhf }) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2563
|
-
|
|
2563
|
+
_chunkQMDXG3VFcjs.ToggleGroup,
|
|
2564
2564
|
{
|
|
2565
2565
|
id,
|
|
2566
2566
|
type: "single",
|
|
@@ -2575,7 +2575,7 @@ var chipsControl = ({ field, id, registerName, error, control }) => /* @__PURE__
|
|
|
2575
2575
|
"aria-required": field.required || void 0,
|
|
2576
2576
|
"aria-invalid": Boolean(error),
|
|
2577
2577
|
className: CHIP_ROW_CLASS,
|
|
2578
|
-
children: (_nullishCoalesce(field.options, () => ( []))).map((opt) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2578
|
+
children: (_nullishCoalesce(field.options, () => ( []))).map((opt) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQMDXG3VFcjs.ToggleGroupItem, { value: opt, className: _chunk6YZNUHXTcjs.cn.call(void 0, error && "data-[state=off]:border-ods-error"), children: formFieldOptionLabel(field, opt) }, opt))
|
|
2579
2579
|
}
|
|
2580
2580
|
)
|
|
2581
2581
|
}
|
|
@@ -2810,8 +2810,8 @@ function BookingFormBody({
|
|
|
2810
2810
|
children: _nullishCoalesce(submitLabel, () => ( DEFAULT_SUBMIT_LABEL))
|
|
2811
2811
|
}
|
|
2812
2812
|
);
|
|
2813
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "form", { id: formId, onSubmit: submit, className: FORM_STACK, noValidate: true, ...
|
|
2814
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2813
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "form", { id: formId, onSubmit: submit, className: FORM_STACK, noValidate: true, ..._chunkNRAH3M66cjs.HUBSPOT_DO_NOT_COLLECT_FORM_PROPS, children: [
|
|
2814
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQMDXG3VFcjs.HoneypotField, { ...honeypotInputProps }),
|
|
2815
2815
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, BookingContextSummary, { context, slot: contextSlot }),
|
|
2816
2816
|
fieldRows ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
2817
2817
|
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("|"))),
|
|
@@ -2825,7 +2825,7 @@ function BookingFormBody({
|
|
|
2825
2825
|
supportedFields.map((field) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _react.Fragment, { children: renderDeclaredField(field) }, field.name))
|
|
2826
2826
|
] }),
|
|
2827
2827
|
consent && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2828
|
-
|
|
2828
|
+
_chunkQMDXG3VFcjs.CheckboxBlock,
|
|
2829
2829
|
{
|
|
2830
2830
|
id: "ms-host-consent",
|
|
2831
2831
|
checked: consented,
|
|
@@ -2860,7 +2860,7 @@ function BookingFormBody({
|
|
|
2860
2860
|
// same block the waitlist form uses): box + label in one
|
|
2861
2861
|
// bordered row.
|
|
2862
2862
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2863
|
-
|
|
2863
|
+
_chunkQMDXG3VFcjs.CheckboxBlock,
|
|
2864
2864
|
{
|
|
2865
2865
|
id: `ms-consent-${box.communicationTypeId}`,
|
|
2866
2866
|
checked: _nullishCoalesce(_optionalChain([current, 'optionalAccess', _46 => _46.consented]), () => ( false)),
|
|
@@ -2913,10 +2913,10 @@ function BookingFormPending({
|
|
|
2913
2913
|
!fieldRows && // An empty label keeps the field's own frame (`FieldWrapper` draws no label for it); the bar stands for it.
|
|
2914
2914
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkHCXNFMLOcjs.FieldWrapper, { label: "", children: [
|
|
2915
2915
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkAT4C2YMAcjs.TextLineSkeleton, { type: "h6", className: "mb-1 w-40" }),
|
|
2916
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2916
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQMDXG3VFcjs.Textarea, { tabIndex: -1 })
|
|
2917
2917
|
] }),
|
|
2918
2918
|
consent && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2919
|
-
|
|
2919
|
+
_chunkQMDXG3VFcjs.CheckboxBlock,
|
|
2920
2920
|
{
|
|
2921
2921
|
id: consentId,
|
|
2922
2922
|
checked: false,
|
|
@@ -2967,7 +2967,7 @@ function FieldSkeleton({
|
|
|
2967
2967
|
// An empty label keeps the field's own frame; a read label is the bar under it.
|
|
2968
2968
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkHCXNFMLOcjs.FieldWrapper, { label: _nullishCoalesce(label, () => ( "")), required: _optionalChain([builtIn, 'optionalAccess', _50 => _50.required]), className, children: [
|
|
2969
2969
|
label === void 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkAT4C2YMAcjs.TextLineSkeleton, { type: "h6", className: "mb-1 w-32" }),
|
|
2970
|
-
!builtIn && _optionalChain([copy, 'optionalAccess', _51 => _51.display]) === "chips" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: CHIP_ROW_CLASS, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkAT4C2YMAcjs.UnifiedSkeleton, { variant: "default", className: _chunk6YZNUHXTcjs.cn.call(void 0,
|
|
2970
|
+
!builtIn && _optionalChain([copy, 'optionalAccess', _51 => _51.display]) === "chips" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: CHIP_ROW_CLASS, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkAT4C2YMAcjs.UnifiedSkeleton, { variant: "default", className: _chunk6YZNUHXTcjs.cn.call(void 0, _chunkQMDXG3VFcjs.TOGGLE_SIZE_CLASS.default, "w-24 rounded-md") }) }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHCXNFMLOcjs.Input, { tabIndex: -1 })
|
|
2971
2971
|
] })
|
|
2972
2972
|
);
|
|
2973
2973
|
}
|
|
@@ -2975,7 +2975,7 @@ function FieldSkeleton({
|
|
|
2975
2975
|
// src/components/meeting-scheduler/confirmation.tsx
|
|
2976
2976
|
|
|
2977
2977
|
function Confirmation({ confirmation, timezone }) {
|
|
2978
|
-
const when =
|
|
2978
|
+
const when = _chunkGP7NV6BKcjs.formatDateWithTimezone.call(void 0, confirmation.startTimeMs, timezone, "weekdayDateTimeZoned", {
|
|
2979
2979
|
viewerLocale: true
|
|
2980
2980
|
});
|
|
2981
2981
|
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: [
|
|
@@ -2985,7 +2985,7 @@ function Confirmation({ confirmation, timezone }) {
|
|
|
2985
2985
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "p", { className: "text-ods-text-secondary text-h6", children: [
|
|
2986
2986
|
when,
|
|
2987
2987
|
" \xB7 ",
|
|
2988
|
-
|
|
2988
|
+
_chunkGP7NV6BKcjs.formatDurationCompact.call(void 0, confirmation.durationMs / 1e3)
|
|
2989
2989
|
] }),
|
|
2990
2990
|
/* @__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." })
|
|
2991
2991
|
] });
|
|
@@ -3003,7 +3003,7 @@ function HostIdentity({ hosts, loading = false }) {
|
|
|
3003
3003
|
if (hosts.length === 0) return null;
|
|
3004
3004
|
if (hosts.length > MAX_HOST_ROWS) {
|
|
3005
3005
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: HOST_TEAM_CLASS, children: [
|
|
3006
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3006
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkCFXCCQ6Tcjs.AvatarStack, { people: hosts, max: 4, size: "lg", label: "Hosts" }),
|
|
3007
3007
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "p", { className: "text-ods-text-secondary text-h6", children: [
|
|
3008
3008
|
hosts.length,
|
|
3009
3009
|
" hosts on this calendar"
|
|
@@ -3012,7 +3012,7 @@ function HostIdentity({ hosts, loading = false }) {
|
|
|
3012
3012
|
}
|
|
3013
3013
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: HOST_LIST_CLASS, children: hosts.map((host) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: HOST_ROW_CLASS, "data-loading-item": true, children: [
|
|
3014
3014
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3015
|
-
|
|
3015
|
+
_chunkGP7NV6BKcjs.SquareAvatar,
|
|
3016
3016
|
{
|
|
3017
3017
|
variant: "round",
|
|
3018
3018
|
size: "sm",
|
|
@@ -3029,7 +3029,7 @@ function HostIdentity({ hosts, loading = false }) {
|
|
|
3029
3029
|
}
|
|
3030
3030
|
function HostIdentitySkeleton() {
|
|
3031
3031
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: HOST_LIST_CLASS, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: HOST_ROW_CLASS, "data-loading-item": true, children: [
|
|
3032
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3032
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGP7NV6BKcjs.SquareAvatar, { loading: true, variant: "round", size: "sm" }),
|
|
3033
3033
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: HOST_TEXT_CLASS, children: [
|
|
3034
3034
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkAT4C2YMAcjs.TextLineSkeleton, { type: "h4", className: "w-32" }),
|
|
3035
3035
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkAT4C2YMAcjs.TextLineSkeleton, { type: "h6", className: "w-24" })
|
|
@@ -3060,7 +3060,7 @@ function ContextPanelSkeleton({
|
|
|
3060
3060
|
timezone = "shown"
|
|
3061
3061
|
}) {
|
|
3062
3062
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk6YZNUHXTcjs.cn.call(void 0, PANEL_STACK, className), children: [
|
|
3063
|
-
onBack && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3063
|
+
onBack && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkF64GLU75cjs.BackButton, { label: backLabel, onClick: onBack, className: BACK_BUTTON_CLASS }),
|
|
3064
3064
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: STRIP_BODY, children: [
|
|
3065
3065
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: STRIP_MAIN, children: [
|
|
3066
3066
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: IDENTITY_ROW, children: [
|
|
@@ -3076,7 +3076,7 @@ function ContextPanelSkeleton({
|
|
|
3076
3076
|
] }),
|
|
3077
3077
|
timezone !== "hidden" && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk6YZNUHXTcjs.cn.call(void 0, STRIP_ASIDE, timezone === "wide" && TIMEZONE_WIDE_ONLY_CLASS), children: [
|
|
3078
3078
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: FIELD_LABEL_CLASS, children: "Timezone" }),
|
|
3079
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3079
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQMDXG3VFcjs.TimezoneSelect, { value: null, loading: true, onChange: _chunk6YZNUHXTcjs.LOADING_NOOP })
|
|
3080
3080
|
] })
|
|
3081
3081
|
] })
|
|
3082
3082
|
] });
|
|
@@ -3114,7 +3114,7 @@ function SchedulerContextPanel({
|
|
|
3114
3114
|
);
|
|
3115
3115
|
}
|
|
3116
3116
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk6YZNUHXTcjs.cn.call(void 0, PANEL_STACK, className), children: [
|
|
3117
|
-
onBack && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3117
|
+
onBack && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkF64GLU75cjs.BackButton, { label: backLabel, onClick: onBack, className: BACK_BUTTON_CLASS }),
|
|
3118
3118
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: STRIP_BODY, children: [
|
|
3119
3119
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: STRIP_MAIN, children: [
|
|
3120
3120
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: IDENTITY_ROW, children: [
|
|
@@ -3123,7 +3123,7 @@ function SchedulerContextPanel({
|
|
|
3123
3123
|
// Post-selection, or a link that offers one length: a static line,
|
|
3124
3124
|
// which is what sits beside the host on the header-strip layouts.
|
|
3125
3125
|
selectedDurationMs != null && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "p", { className: DURATION_LINE_CLASS, children: [
|
|
3126
|
-
|
|
3126
|
+
_chunkGP7NV6BKcjs.formatDurationCompact.call(void 0, selectedDurationMs / 1e3),
|
|
3127
3127
|
" call"
|
|
3128
3128
|
] })
|
|
3129
3129
|
) : null
|
|
@@ -3140,7 +3140,7 @@ function SchedulerContextPanel({
|
|
|
3140
3140
|
size: "small-legacy",
|
|
3141
3141
|
disabled,
|
|
3142
3142
|
onClick: () => onSelectDuration(ms),
|
|
3143
|
-
children:
|
|
3143
|
+
children: _chunkGP7NV6BKcjs.formatDurationCompact.call(void 0, ms / 1e3)
|
|
3144
3144
|
},
|
|
3145
3145
|
ms
|
|
3146
3146
|
)) })
|
|
@@ -3155,7 +3155,7 @@ function SchedulerContextPanel({
|
|
|
3155
3155
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk6YZNUHXTcjs.cn.call(void 0, STRIP_ASIDE, locked && TIMEZONE_WIDE_ONLY_CLASS), children: [
|
|
3156
3156
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: FIELD_LABEL_CLASS, children: "Timezone" }),
|
|
3157
3157
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3158
|
-
|
|
3158
|
+
_chunkQMDXG3VFcjs.TimezoneSelect,
|
|
3159
3159
|
{
|
|
3160
3160
|
value: _nullishCoalesce(timezone, () => ( null)),
|
|
3161
3161
|
loading: !timezone,
|
|
@@ -3201,18 +3201,18 @@ function SchedulerModalHeader({
|
|
|
3201
3201
|
size: "small-legacy",
|
|
3202
3202
|
disabled,
|
|
3203
3203
|
onClick: () => onSelectDuration(ms),
|
|
3204
|
-
children:
|
|
3204
|
+
children: _chunkGP7NV6BKcjs.formatDurationCompact.call(void 0, ms / 1e3)
|
|
3205
3205
|
},
|
|
3206
3206
|
ms
|
|
3207
3207
|
)) }) : selectedDurationMs != null && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "p", { className: DURATION_LINE_CLASS2, children: [
|
|
3208
|
-
|
|
3208
|
+
_chunkGP7NV6BKcjs.formatDurationCompact.call(void 0, selectedDurationMs / 1e3),
|
|
3209
3209
|
" call"
|
|
3210
3210
|
] })
|
|
3211
3211
|
] }),
|
|
3212
3212
|
showTimezone && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: TIMEZONE_ROW_CLASS, children: [
|
|
3213
3213
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: FIELD_LABEL_CLASS2, children: "Timezone" }),
|
|
3214
3214
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3215
|
-
|
|
3215
|
+
_chunkQMDXG3VFcjs.TimezoneSelect,
|
|
3216
3216
|
{
|
|
3217
3217
|
value: timezone,
|
|
3218
3218
|
loading: !timezone,
|
|
@@ -3233,7 +3233,7 @@ function SchedulerModalHeaderSkeleton({ showTimezone = true } = {}) {
|
|
|
3233
3233
|
] }),
|
|
3234
3234
|
showTimezone && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: TIMEZONE_ROW_CLASS, children: [
|
|
3235
3235
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: FIELD_LABEL_CLASS2, children: "Timezone" }),
|
|
3236
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3236
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQMDXG3VFcjs.TimezoneSelect, { value: null, loading: true, onChange: _chunk6YZNUHXTcjs.LOADING_NOOP })
|
|
3237
3237
|
] })
|
|
3238
3238
|
] });
|
|
3239
3239
|
}
|
|
@@ -3256,7 +3256,7 @@ function dateFromDayKey(key) {
|
|
|
3256
3256
|
return new Date(y, m - 1, d, 12);
|
|
3257
3257
|
}
|
|
3258
3258
|
function timeLabelInZone(ms, timeZone) {
|
|
3259
|
-
return
|
|
3259
|
+
return _chunkGP7NV6BKcjs.formatTimeWithTimezone.call(void 0, ms, timeZone, { viewerLocale: true });
|
|
3260
3260
|
}
|
|
3261
3261
|
var CALENDAR_W = "content-md:w-[19rem] content-md:shrink-0 content-lg:w-[16rem]";
|
|
3262
3262
|
var COLUMN_HEADING_CLASS = "shrink-0 text-h4 text-ods-text-primary";
|
|
@@ -3309,24 +3309,24 @@ var MODAL_CHIP_GRID_CLASS = _chunk6YZNUHXTcjs.cn.call(void 0,
|
|
|
3309
3309
|
function monthLabelFor(offset) {
|
|
3310
3310
|
const now = /* @__PURE__ */ new Date();
|
|
3311
3311
|
const month = new Date(now.getFullYear(), now.getMonth() + offset, 1);
|
|
3312
|
-
return
|
|
3312
|
+
return _chunkGP7NV6BKcjs.formatDateWithTimezone.call(void 0, month, _chunkGP7NV6BKcjs.VIEWER_TIMEZONE, "monthYear");
|
|
3313
3313
|
}
|
|
3314
3314
|
var DISABLE_EVERY_DAY = () => true;
|
|
3315
3315
|
function DayCalendar({ monthOffset, onMonthOffsetChange, selectedDay, onSelectDay, slotsByDay }) {
|
|
3316
3316
|
const now = /* @__PURE__ */ new Date();
|
|
3317
3317
|
const startMonth = new Date(now.getFullYear(), now.getMonth(), 1);
|
|
3318
|
-
const endMonth = new Date(now.getFullYear(), now.getMonth() +
|
|
3318
|
+
const endMonth = new Date(now.getFullYear(), now.getMonth() + _chunkNRAH3M66cjs.MAX_MONTH_OFFSET + 1, 0);
|
|
3319
3319
|
const visibleMonth = new Date(now.getFullYear(), now.getMonth() + monthOffset, 1);
|
|
3320
3320
|
const dayHasNoSlots = _react.useCallback.call(void 0, (day) => !_optionalChain([slotsByDay, 'optionalAccess', _54 => _54.has, 'call', _55 => _55(calendarDayKey(day))]), [slotsByDay]);
|
|
3321
3321
|
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,
|
|
3322
|
-
|
|
3322
|
+
_chunkQMDXG3VFcjs.DatePickerCalendar,
|
|
3323
3323
|
{
|
|
3324
3324
|
mode: "single",
|
|
3325
3325
|
bare: true,
|
|
3326
3326
|
month: visibleMonth,
|
|
3327
3327
|
onMonthChange: (month) => {
|
|
3328
3328
|
const offset = (month.getFullYear() - now.getFullYear()) * 12 + (month.getMonth() - now.getMonth());
|
|
3329
|
-
onMonthOffsetChange(Math.max(0, Math.min(
|
|
3329
|
+
onMonthOffsetChange(Math.max(0, Math.min(_chunkNRAH3M66cjs.MAX_MONTH_OFFSET, offset)));
|
|
3330
3330
|
},
|
|
3331
3331
|
fromDate: startMonth,
|
|
3332
3332
|
toDate: endMonth,
|
|
@@ -3440,7 +3440,7 @@ function SlotPicker({
|
|
|
3440
3440
|
{
|
|
3441
3441
|
className: modal ? _chunk6YZNUHXTcjs.cn.call(void 0, COLUMN_STACK, MODAL_COLUMN_BOX, MODAL_TIMES_H, "min-w-0 content-md:flex-1") : _chunk6YZNUHXTcjs.cn.call(void 0, COLUMN_STACK, COLUMN_BOX, "min-w-0 content-md:flex-1"),
|
|
3442
3442
|
children: isLoading ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TimeChipsSkeleton, { layout }) : selectedDay ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
3443
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: COLUMN_HEADING_CLASS, children:
|
|
3443
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: COLUMN_HEADING_CLASS, children: _chunkGP7NV6BKcjs.formatDateWithTimezone.call(void 0, dateFromDayKey(selectedDay), _chunkGP7NV6BKcjs.VIEWER_TIMEZONE, "weekday", { viewerLocale: true }) }),
|
|
3444
3444
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: modal ? MODAL_CHIP_GRID_CLASS : CHIP_GRID_CLASS, children: daySlots.map((ms) => {
|
|
3445
3445
|
const isSelected = selectedSlot === ms;
|
|
3446
3446
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -3470,7 +3470,7 @@ function SlotPicker({
|
|
|
3470
3470
|
monthLabelFor(monthOffset),
|
|
3471
3471
|
"."
|
|
3472
3472
|
] }),
|
|
3473
|
-
monthOffset <
|
|
3473
|
+
monthOffset < _chunkNRAH3M66cjs.MAX_MONTH_OFFSET && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
3474
3474
|
_chunkK7I3YYYUcjs.Button,
|
|
3475
3475
|
{
|
|
3476
3476
|
variant: "outline",
|
|
@@ -3494,10 +3494,10 @@ function SlotPicker({
|
|
|
3494
3494
|
|
|
3495
3495
|
|
|
3496
3496
|
function useNextAvailableLabel(ms) {
|
|
3497
|
-
const hydrated =
|
|
3497
|
+
const hydrated = _chunkY3IMXLLLcjs.useIsHydrated.call(void 0, );
|
|
3498
3498
|
return _react.useMemo.call(void 0, () => {
|
|
3499
3499
|
if (!hydrated || ms == null) return null;
|
|
3500
|
-
return
|
|
3500
|
+
return _chunkGP7NV6BKcjs.formatDateWithTimezone.call(void 0, ms, _chunkGP7NV6BKcjs.VIEWER_TIMEZONE, "shortWeekdayDateTime", { viewerLocale: true }) || null;
|
|
3501
3501
|
}, [hydrated, ms]);
|
|
3502
3502
|
}
|
|
3503
3503
|
var PAGINATION_SLOT_H = "h-[4.5rem]";
|
|
@@ -3518,7 +3518,7 @@ function DirectoryRow({
|
|
|
3518
3518
|
const nextLabel = useNextAvailableLabel(link.nextAvailableMs);
|
|
3519
3519
|
const subtitle = [
|
|
3520
3520
|
link.description,
|
|
3521
|
-
link.durationsMinutes.length > 0 ? link.durationsMinutes.map((m) =>
|
|
3521
|
+
link.durationsMinutes.length > 0 ? link.durationsMinutes.map((m) => _chunkGP7NV6BKcjs.formatDurationCompact.call(void 0, m * 60)).join(" / ") : null,
|
|
3522
3522
|
link.kind === "team" ? "Team" : null
|
|
3523
3523
|
].filter(Boolean).join(" \u2022 ");
|
|
3524
3524
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -3534,7 +3534,7 @@ function DirectoryRow({
|
|
|
3534
3534
|
subtitle && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "truncate text-ods-text-secondary text-h6", children: subtitle })
|
|
3535
3535
|
] }),
|
|
3536
3536
|
audienceLabel && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUN6LC5PKcjs.StatusBadge, { text: `For ${audienceLabel}`, singleLine: true, className: "hidden shrink-0 content-sm:inline-flex" }),
|
|
3537
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3537
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkCFXCCQ6Tcjs.AvatarStack, { people: link.hosts, max: 3, size: "md", label: "Hosts", className: "flex shrink-0" }),
|
|
3538
3538
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: ROW_NEXT_COLUMN_CLASS, children: [
|
|
3539
3539
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: ROW_NEXT_LABEL_CLASS, children: "Next available" }),
|
|
3540
3540
|
/* @__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, () => ( " ")) })
|
|
@@ -3553,7 +3553,7 @@ function MeetingSchedulerDirectoryRowSkeleton(props = {}) {
|
|
|
3553
3553
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkAT4C2YMAcjs.TextLineSkeleton, { type: "h6", className: "w-1/3" })
|
|
3554
3554
|
] }),
|
|
3555
3555
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkAT4C2YMAcjs.UnifiedSkeleton, { className: "hidden h-6 w-28 shrink-0 content-sm:block" }),
|
|
3556
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3556
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkCFXCCQ6Tcjs.AvatarStack, { people: NO_HOSTS, loading: true, max: TYPICAL_HOSTS, size: "md", label: "Hosts", className: "flex shrink-0" }),
|
|
3557
3557
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: ROW_NEXT_COLUMN_CLASS, children: [
|
|
3558
3558
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: ROW_NEXT_LABEL_CLASS, children: "Next available" }),
|
|
3559
3559
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkAT4C2YMAcjs.TextLineSkeleton, { type: "h6", className: "w-32" })
|
|
@@ -3567,7 +3567,7 @@ function MeetingSchedulerDirectorySkeleton({
|
|
|
3567
3567
|
}) {
|
|
3568
3568
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk6YZNUHXTcjs.cn.call(void 0, "flex flex-col", className), "aria-hidden": true, children: [
|
|
3569
3569
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: ROWS_CLASS, style: { minHeight: directoryRowsMinHeight(pageSize) }, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk6YZNUHXTcjs.LoadingItems, { count: pageSize, children: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, MeetingSchedulerDirectoryRowSkeleton, { "data-loading-item": true }) }) }),
|
|
3570
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunk6YZNUHXTcjs.cn.call(void 0, PAGINATION_SLOT_CLASS, PAGINATION_SLOT_H), children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3570
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunk6YZNUHXTcjs.cn.call(void 0, PAGINATION_SLOT_CLASS, PAGINATION_SLOT_H), children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7SEY3FDFcjs.PaginationSkeleton, {}) })
|
|
3571
3571
|
] });
|
|
3572
3572
|
}
|
|
3573
3573
|
function MeetingSchedulerDirectory({
|
|
@@ -3622,7 +3622,7 @@ function MeetingSchedulerDirectory({
|
|
|
3622
3622
|
}
|
|
3623
3623
|
if (error) {
|
|
3624
3624
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunk6YZNUHXTcjs.cn.call(void 0, "flex flex-col justify-center", className), style: { minHeight: rowsMinHeight + 104 }, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3625
|
-
|
|
3625
|
+
_chunkPALMLL5Tcjs.EmptyState,
|
|
3626
3626
|
{
|
|
3627
3627
|
type: "generic",
|
|
3628
3628
|
title: "We couldn't load available call times",
|
|
@@ -3633,7 +3633,7 @@ function MeetingSchedulerDirectory({
|
|
|
3633
3633
|
}
|
|
3634
3634
|
if (rows.length === 0) {
|
|
3635
3635
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunk6YZNUHXTcjs.cn.call(void 0, "flex flex-col justify-center", className), style: { minHeight: rowsMinHeight + 104 }, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3636
|
-
|
|
3636
|
+
_chunkPALMLL5Tcjs.EmptyState,
|
|
3637
3637
|
{
|
|
3638
3638
|
type: "generic",
|
|
3639
3639
|
title: "No call times are published right now",
|
|
@@ -3645,7 +3645,7 @@ function MeetingSchedulerDirectory({
|
|
|
3645
3645
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk6YZNUHXTcjs.cn.call(void 0, "flex flex-col", className), children: [
|
|
3646
3646
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: ROWS_CLASS, style: { minHeight: rowsMinHeight }, children: pageRows.map(({ link, audienceLabel }) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, DirectoryRow, { link, audienceLabel, bookingBasePath }, link.id)) }),
|
|
3647
3647
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunk6YZNUHXTcjs.cn.call(void 0, PAGINATION_SLOT_CLASS, PAGINATION_SLOT_H), children: totalPages > 1 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3648
|
-
|
|
3648
|
+
_chunkN3J4U7MLcjs.PersistentPaginationWrapper,
|
|
3649
3649
|
{
|
|
3650
3650
|
isLoading,
|
|
3651
3651
|
currentPage: page,
|
|
@@ -3784,7 +3784,7 @@ function HubSpotMeetingScheduler({
|
|
|
3784
3784
|
const modal = layout === "modal" && !detailsFirst;
|
|
3785
3785
|
const modalFormId = _react.useId.call(void 0, );
|
|
3786
3786
|
const [modalFormValid, setModalFormValid] = _react.useState.call(void 0, false);
|
|
3787
|
-
const hydrated =
|
|
3787
|
+
const hydrated = _chunkY3IMXLLLcjs.useIsHydrated.call(void 0, );
|
|
3788
3788
|
const [pickedTimezone, setTimezone] = _react.useState.call(void 0, null);
|
|
3789
3789
|
const resolvedLocalTimezone = _react.useMemo.call(void 0, () => {
|
|
3790
3790
|
if (!hydrated) return null;
|
|
@@ -3938,11 +3938,11 @@ function HubSpotMeetingScheduler({
|
|
|
3938
3938
|
setSelectedDay(null);
|
|
3939
3939
|
setSelectedSlot(null);
|
|
3940
3940
|
};
|
|
3941
|
-
const summary = selectedSlot != null && durationMs != null && timezone != null ? `${
|
|
3941
|
+
const summary = selectedSlot != null && durationMs != null && timezone != null ? `${_chunkGP7NV6BKcjs.formatDateWithTimezone.call(void 0, selectedSlot, timezone, "weekdayDateTimeZoned", { viewerLocale: true })} \xB7 ${_chunkGP7NV6BKcjs.formatDurationCompact.call(void 0, durationMs / 1e3)}` : null;
|
|
3942
3942
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk6YZNUHXTcjs.cn.call(void 0, MODAL_STACK_CLASS, className), children: [
|
|
3943
3943
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkGD6RPLHXcjs.LoadingRegion, { label: "Loading available times", announce: coldStart, className: MODAL_CARD_CLASS, children: [
|
|
3944
3944
|
modalBack && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3945
|
-
|
|
3945
|
+
_chunkF64GLU75cjs.BackButton,
|
|
3946
3946
|
{
|
|
3947
3947
|
onClick: modalBack,
|
|
3948
3948
|
className: _chunk6YZNUHXTcjs.cn.call(void 0,
|
|
@@ -3988,7 +3988,7 @@ function HubSpotMeetingScheduler({
|
|
|
3988
3988
|
}
|
|
3989
3989
|
)
|
|
3990
3990
|
] }) : /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
3991
|
-
bookingError === "SLOT_TAKEN" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3991
|
+
bookingError === "SLOT_TAKEN" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQMDXG3VFcjs.Alert, { variant: "warning", className: "mx-[var(--spacing-system-m)] mt-[var(--spacing-system-m)] w-auto", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQMDXG3VFcjs.AlertDescription, { children: "That time was just taken \u2014 pick another slot below. (If you already submitted, check your email for a confirmation before rebooking.)" }) }),
|
|
3992
3992
|
!coldStart && (!timezone || durationMs == null) && durations.length === 0 && !isFetchingAvailability ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk6YZNUHXTcjs.cn.call(void 0, MODAL_STEP_CLASS, "items-start gap-[var(--spacing-system-m)]"), children: [
|
|
3993
3993
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-ods-text-secondary text-h6", children: "No call times are published right now." }),
|
|
3994
3994
|
escapeHatch
|
|
@@ -4119,10 +4119,10 @@ function HubSpotMeetingScheduler({
|
|
|
4119
4119
|
durations.length > 0
|
|
4120
4120
|
) : durationMs != null && selectedSlot != null && timezone) ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk6YZNUHXTcjs.cn.call(void 0, stepPanelClass, "gap-[var(--spacing-system-m)]"), children: [
|
|
4121
4121
|
selectedSlot != null && durationMs != null && timezone != null && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "p", { className: "text-ods-text-primary text-h4", children: [
|
|
4122
|
-
|
|
4122
|
+
_chunkGP7NV6BKcjs.formatDateWithTimezone.call(void 0, selectedSlot, timezone, "weekdayDateTimeZoned", { viewerLocale: true }),
|
|
4123
4123
|
" \xB7",
|
|
4124
4124
|
" ",
|
|
4125
|
-
|
|
4125
|
+
_chunkGP7NV6BKcjs.formatDurationCompact.call(void 0, durationMs / 1e3)
|
|
4126
4126
|
] }),
|
|
4127
4127
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4128
4128
|
DetailsForm,
|
|
@@ -4146,11 +4146,11 @@ function HubSpotMeetingScheduler({
|
|
|
4146
4146
|
)
|
|
4147
4147
|
] }) : /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col gap-[var(--spacing-system-m)] content-md:min-h-0 content-md:flex-1", children: [
|
|
4148
4148
|
bookingError === "SLOT_TAKEN" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4149
|
-
|
|
4149
|
+
_chunkQMDXG3VFcjs.Alert,
|
|
4150
4150
|
{
|
|
4151
4151
|
variant: "warning",
|
|
4152
4152
|
className: "mx-[var(--spacing-system-l)] mt-[var(--spacing-system-l)] w-auto content-lg:m-0 content-lg:w-full",
|
|
4153
|
-
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4153
|
+
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQMDXG3VFcjs.AlertDescription, { children: "That time was just taken \u2014 pick another slot below. (If you already submitted, check your email for a confirmation before rebooking.)" })
|
|
4154
4154
|
}
|
|
4155
4155
|
),
|
|
4156
4156
|
(!timezone || durationMs == null) && durations.length === 0 && (!isFetchingAvailability || formOnly) ? (
|