@flamingo-stack/openframe-frontend-core 0.0.846 → 0.0.848
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/{case-study-card-DJOHIHYU.cjs → case-study-card-X2HKPKT7.cjs} +5 -5
- package/dist/{chunk-N2A24FDF.cjs → chunk-2V6FCVUL.cjs} +955 -932
- package/dist/{chunk-CNMXP77I.cjs → chunk-36DUCHI7.cjs} +4 -4
- package/dist/{chunk-J2IXYCEH.cjs → chunk-3W4ASAXN.cjs} +15 -15
- package/dist/{chunk-6LDL3UZE.cjs → chunk-4YBS4HIO.cjs} +20 -20
- package/dist/{chunk-QK2A334V.cjs → chunk-5HOWR4TG.cjs} +12 -12
- package/dist/{chunk-2FUTZKLB.cjs → chunk-74Z34I2C.cjs} +6 -6
- package/dist/{chunk-PV3NKXWS.cjs → chunk-7DW3LZ52.cjs} +57 -57
- package/dist/{chunk-ZTO7KNYV.cjs → chunk-7LE4HWHA.cjs} +35 -35
- package/dist/{chunk-URP6GYTD.cjs → chunk-7YJQTQPV.cjs} +56 -56
- package/dist/{chunk-4R4HAFXI.cjs → chunk-ALRYVZ3E.cjs} +6 -6
- package/dist/{chunk-57JYB3E2.cjs → chunk-C3WZXOZJ.cjs} +3 -3
- package/dist/{chunk-SSSI2RBV.cjs → chunk-FNQWL4W4.cjs} +14 -14
- package/dist/{chunk-J2ZSGOUC.cjs → chunk-GASFYPGH.cjs} +27 -27
- package/dist/{chunk-3V5JWG27.cjs → chunk-GG466XFQ.cjs} +2 -2
- package/dist/{chunk-XCVH5BCZ.cjs → chunk-GRCOEICK.cjs} +6 -6
- package/dist/{chunk-5GBLXY5F.cjs → chunk-HTYJUMFB.cjs} +7 -7
- package/dist/{chunk-HBDLJUI3.cjs → chunk-I3YRYS23.cjs} +5 -5
- package/dist/{chunk-HPXET3LH.cjs → chunk-IIUZE73M.cjs} +27 -27
- package/dist/{chunk-WCK5T3UD.cjs → chunk-IKOL6NJY.cjs} +101 -69
- package/dist/{chunk-DGQDGCQH.cjs → chunk-INA2FX2N.cjs} +2 -2
- package/dist/{chunk-PQDCSZ3W.cjs → chunk-IUZVOQXP.cjs} +85 -85
- package/dist/{chunk-BIOSHDXQ.cjs → chunk-MDLT6D46.cjs} +61 -61
- package/dist/{chunk-DEEQSVLX.cjs → chunk-MWYEROAP.cjs} +90 -90
- package/dist/{chunk-D5DMWXF2.cjs → chunk-NYT6IBIX.cjs} +4 -4
- package/dist/{chunk-TBOWFTEN.cjs → chunk-O4BXHCMK.cjs} +22 -22
- package/dist/{chunk-YC52LSPP.cjs → chunk-OCJXOSIH.cjs} +40 -40
- package/dist/{chunk-3TOWCFIK.cjs → chunk-PMUCEUFQ.cjs} +13 -1
- package/dist/{chunk-BZZE4KIV.cjs → chunk-QUSCSYHJ.cjs} +135 -135
- package/dist/{chunk-744JXTDP.cjs → chunk-SA2NNWIJ.cjs} +23 -23
- package/dist/{chunk-BHOVF4KP.cjs → chunk-SOSIXRQ3.cjs} +2 -2
- package/dist/{chunk-PZNWIJRZ.cjs → chunk-TIVPOVIM.cjs} +2 -2
- package/dist/{chunk-FLW4WULE.cjs → chunk-U7UBYJEZ.cjs} +17 -61
- package/dist/{chunk-Y2OEC7UW.cjs → chunk-VW4446JR.cjs} +40 -40
- package/dist/{chunk-NFNSPLGC.cjs → chunk-W7OFAROY.cjs} +14 -9
- package/dist/{chunk-RAJ5FYFL.cjs → chunk-Y2ZWWIUA.cjs} +14 -14
- package/dist/{chunk-MPVOPSU6.cjs → chunk-Y4BG7SPX.cjs} +96 -96
- package/dist/{chunk-SIFRIUPW.cjs → chunk-YAW7CHLV.cjs} +340 -354
- package/dist/{chunk-ABL5OBSF.cjs → chunk-YXKAHQYS.cjs} +294 -249
- package/dist/{chunk-SWF6TNZ3.cjs → chunk-ZGEWT3SF.cjs} +2 -2
- package/dist/{chunk-5SZ4ILU3.cjs → chunk-ZZDFMUEU.cjs} +3 -3
- package/dist/{cloud-tenants-XEUUMABT.cjs → cloud-tenants-YAZHLPOQ.cjs} +21 -21
- package/dist/components/case-studies/index.cjs +36 -36
- package/dist/components/chat/chat-composer.d.ts.map +1 -1
- package/dist/components/chat/chat-composer.js +4 -3
- package/dist/components/chat/chat-container.d.ts.map +1 -1
- package/dist/components/chat/chat-container.js +2 -2
- package/dist/components/chat/entity-cards/design-doc-card.d.ts.map +1 -1
- package/dist/components/chat/entity-cards/design-doc-card.js +5 -17
- package/dist/components/chat/entity-cards/dispatch.d.ts.map +1 -1
- package/dist/components/chat/entity-cards/dispatch.js +4 -7
- package/dist/components/chat/index.cjs +15 -15
- package/dist/components/contact/index.cjs +22 -22
- package/dist/components/docs/index.cjs +25 -25
- package/dist/components/embeds/index.cjs +22 -22
- package/dist/components/faq/index.cjs +23 -23
- package/dist/components/features/index.cjs +21 -21
- package/dist/components/features/status-filter-component.d.ts +7 -1
- package/dist/components/features/status-filter-component.d.ts.map +1 -1
- package/dist/components/features/status-filter-component.js +9 -3
- package/dist/components/help-center-pages/index.cjs +140 -140
- package/dist/components/index.cjs +137 -135
- package/dist/components/layout/back-button.d.ts +7 -1
- package/dist/components/layout/back-button.d.ts.map +1 -1
- package/dist/components/layout/back-button.js +34 -2
- package/dist/components/loading/unified-skeleton.d.ts +6 -1
- package/dist/components/loading/unified-skeleton.d.ts.map +1 -1
- package/dist/components/loading/unified-skeleton.js +13 -1
- package/dist/components/meeting-scheduler/index.cjs +119 -119
- package/dist/components/navigation/index.cjs +24 -24
- package/dist/components/onboarding-guides/index.cjs +24 -24
- package/dist/components/product-demo/index.cjs +33 -33
- package/dist/components/related-content/index.cjs +11 -11
- package/dist/components/tickets/index.cjs +28 -28
- package/dist/components/ui/file-manager/file-manager-table.d.ts.map +1 -1
- package/dist/components/ui/file-manager/file-manager-table.js +63 -85
- package/dist/components/ui/file-manager/index.cjs +87 -109
- package/dist/components/ui/index.cjs +23 -21
- package/dist/components/ui/markdown/engine.d.ts +5 -4
- package/dist/components/ui/markdown/engine.d.ts.map +1 -1
- package/dist/components/ui/markdown/engine.js +15 -15
- package/dist/components/ui/people-cell.d.ts +9 -2
- package/dist/components/ui/people-cell.d.ts.map +1 -1
- package/dist/components/ui/people-cell.js +39 -23
- package/dist/components/ui/progress-bar.d.ts +6 -0
- package/dist/components/ui/progress-bar.d.ts.map +1 -1
- package/dist/components/ui/progress-bar.js +2 -0
- package/dist/components/ui/tag.d.ts +8 -0
- package/dist/components/ui/tag.d.ts.map +1 -1
- package/dist/components/ui/tag.js +5 -0
- package/dist/{devices-7YDIHVVP.cjs → devices-IZROCLFK.cjs} +22 -22
- package/dist/embed-shims/index.cjs +3 -3
- package/dist/embed-shims/next-image.cjs +3 -3
- package/dist/{embeddable-chat-Z3S37SSM.cjs → embeddable-chat-ETW6S22E.cjs} +94 -94
- package/dist/hooks/index.cjs +6 -6
- package/dist/index.cjs +30 -32
- package/dist/{knowledge-SQVPQSKM.cjs → knowledge-4IRWLTNW.cjs} +22 -22
- package/dist/{logs-M5DFGUBC.cjs → logs-EFDGY5IO.cjs} +28 -28
- package/dist/{policies-T3VQEJUD.cjs → policies-3KEXZ5BP.cjs} +25 -25
- package/dist/{remote-session-EE6477O3.cjs → remote-session-NT4NG7EF.cjs} +10 -10
- package/dist/{scripts-JFRFJKPH.cjs → scripts-PCGTZLZL.cjs} +28 -28
- package/dist/{software-update-E7W3AAIY.cjs → software-update-YCDNVFJE.cjs} +25 -25
- package/dist/{tickets-board-44HO3LR4.cjs → tickets-board-7FLGQEHF.cjs} +10 -10
- package/dist/types/design-doc.d.ts +45 -8
- package/dist/types/design-doc.d.ts.map +1 -1
- package/dist/utils/design-doc-readiness.d.ts +17 -15
- package/dist/utils/design-doc-readiness.d.ts.map +1 -1
- package/dist/utils/design-doc-readiness.js +5 -11
- package/dist/utils/index.cjs +5 -11
- package/package.json +1 -1
- package/src/components/chat/chat-composer.tsx +10 -3
- package/src/components/chat/chat-container.tsx +6 -4
- package/src/components/chat/entity-cards/design-doc-card.tsx +12 -17
- package/src/components/chat/entity-cards/dispatch.tsx +7 -10
- package/src/components/features/status-filter-component.tsx +15 -0
- package/src/components/layout/back-button.tsx +54 -2
- package/src/components/loading/unified-skeleton.tsx +18 -2
- package/src/components/ui/file-manager/file-manager-table.tsx +10 -45
- package/src/components/ui/markdown/engine.tsx +21 -30
- package/src/components/ui/people-cell.tsx +53 -17
- package/src/components/ui/progress-bar.tsx +8 -0
- package/src/components/ui/tag.tsx +14 -0
- package/src/types/design-doc.ts +59 -10
- package/src/utils/design-doc-readiness.ts +22 -23
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
"use client";
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var _chunkSOSIXRQ3cjs = require('../../chunk-SOSIXRQ3.cjs');
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _chunk36DUCHI7cjs = require('../../chunk-36DUCHI7.cjs');
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
var
|
|
11
|
+
var _chunkALRYVZ3Ecjs = require('../../chunk-ALRYVZ3E.cjs');
|
|
12
12
|
|
|
13
13
|
|
|
14
14
|
|
|
@@ -22,7 +22,7 @@ var _chunk4R4HAFXIcjs = require('../../chunk-4R4HAFXI.cjs');
|
|
|
22
22
|
|
|
23
23
|
|
|
24
24
|
|
|
25
|
-
var
|
|
25
|
+
var _chunk2V6FCVULcjs = require('../../chunk-2V6FCVUL.cjs');
|
|
26
26
|
|
|
27
27
|
|
|
28
28
|
|
|
@@ -30,9 +30,9 @@ var _chunkN2A24FDFcjs = require('../../chunk-N2A24FDF.cjs');
|
|
|
30
30
|
|
|
31
31
|
|
|
32
32
|
|
|
33
|
-
var
|
|
34
|
-
require('../../chunk-
|
|
35
|
-
require('../../chunk-
|
|
33
|
+
var _chunkIKOL6NJYcjs = require('../../chunk-IKOL6NJY.cjs');
|
|
34
|
+
require('../../chunk-SA2NNWIJ.cjs');
|
|
35
|
+
require('../../chunk-INA2FX2N.cjs');
|
|
36
36
|
require('../../chunk-HQQE74RO.cjs');
|
|
37
37
|
require('../../chunk-DEY6XXGO.cjs');
|
|
38
38
|
|
|
@@ -40,28 +40,28 @@ require('../../chunk-DEY6XXGO.cjs');
|
|
|
40
40
|
|
|
41
41
|
|
|
42
42
|
|
|
43
|
-
var
|
|
43
|
+
var _chunkFNQWL4W4cjs = require('../../chunk-FNQWL4W4.cjs');
|
|
44
44
|
require('../../chunk-IUDBG3HJ.cjs');
|
|
45
45
|
require('../../chunk-24I6RFVU.cjs');
|
|
46
46
|
require('../../chunk-MZ4KBSH7.cjs');
|
|
47
47
|
|
|
48
48
|
|
|
49
|
-
var
|
|
49
|
+
var _chunkZZDFMUEUcjs = require('../../chunk-ZZDFMUEU.cjs');
|
|
50
50
|
|
|
51
51
|
|
|
52
52
|
|
|
53
|
-
var
|
|
53
|
+
var _chunkQUSCSYHJcjs = require('../../chunk-QUSCSYHJ.cjs');
|
|
54
54
|
require('../../chunk-OT6P57ZS.cjs');
|
|
55
55
|
|
|
56
56
|
|
|
57
|
-
var
|
|
57
|
+
var _chunkYAW7CHLVcjs = require('../../chunk-YAW7CHLV.cjs');
|
|
58
58
|
|
|
59
59
|
|
|
60
60
|
|
|
61
61
|
|
|
62
62
|
|
|
63
|
-
var
|
|
64
|
-
require('../../chunk-
|
|
63
|
+
var _chunk3W4ASAXNcjs = require('../../chunk-3W4ASAXN.cjs');
|
|
64
|
+
require('../../chunk-4YBS4HIO.cjs');
|
|
65
65
|
require('../../chunk-YJZ7R3W5.cjs');
|
|
66
66
|
require('../../chunk-PGAMWM6C.cjs');
|
|
67
67
|
require('../../chunk-46547WQW.cjs');
|
|
@@ -1856,7 +1856,7 @@ require('../../chunk-XIBCMGBW.cjs');
|
|
|
1856
1856
|
|
|
1857
1857
|
|
|
1858
1858
|
var _chunkHLJXCOMAcjs = require('../../chunk-HLJXCOMA.cjs');
|
|
1859
|
-
require('../../chunk-
|
|
1859
|
+
require('../../chunk-GRCOEICK.cjs');
|
|
1860
1860
|
require('../../chunk-FW7RKWPY.cjs');
|
|
1861
1861
|
require('../../chunk-BUEEQD3G.cjs');
|
|
1862
1862
|
require('../../chunk-JKX2C3I2.cjs');
|
|
@@ -1865,11 +1865,11 @@ require('../../chunk-SKI6NKOE.cjs');
|
|
|
1865
1865
|
require('../../chunk-EWPR7662.cjs');
|
|
1866
1866
|
require('../../chunk-IX2E3AN7.cjs');
|
|
1867
1867
|
require('../../chunk-7DNL734S.cjs');
|
|
1868
|
-
require('../../chunk-
|
|
1869
|
-
require('../../chunk-
|
|
1868
|
+
require('../../chunk-U7UBYJEZ.cjs');
|
|
1869
|
+
require('../../chunk-YXKAHQYS.cjs');
|
|
1870
1870
|
|
|
1871
1871
|
|
|
1872
|
-
var
|
|
1872
|
+
var _chunkHTYJUMFBcjs = require('../../chunk-HTYJUMFB.cjs');
|
|
1873
1873
|
|
|
1874
1874
|
|
|
1875
1875
|
|
|
@@ -1877,10 +1877,10 @@ var _chunk5GBLXY5Fcjs = require('../../chunk-5GBLXY5F.cjs');
|
|
|
1877
1877
|
|
|
1878
1878
|
|
|
1879
1879
|
|
|
1880
|
-
var
|
|
1880
|
+
var _chunkW7OFAROYcjs = require('../../chunk-W7OFAROY.cjs');
|
|
1881
1881
|
|
|
1882
1882
|
|
|
1883
|
-
var
|
|
1883
|
+
var _chunkMDLT6D46cjs = require('../../chunk-MDLT6D46.cjs');
|
|
1884
1884
|
require('../../chunk-JBTH3O2C.cjs');
|
|
1885
1885
|
require('../../chunk-X432Y6RM.cjs');
|
|
1886
1886
|
require('../../chunk-S5C3OZCO.cjs');
|
|
@@ -1896,20 +1896,20 @@ var _chunkBLH2SFOOcjs = require('../../chunk-BLH2SFOO.cjs');
|
|
|
1896
1896
|
require('../../chunk-UAI4VMEF.cjs');
|
|
1897
1897
|
require('../../chunk-COWMXUHN.cjs');
|
|
1898
1898
|
require('../../chunk-YSDB6HGQ.cjs');
|
|
1899
|
-
require('../../chunk-
|
|
1899
|
+
require('../../chunk-TIVPOVIM.cjs');
|
|
1900
1900
|
|
|
1901
1901
|
|
|
1902
1902
|
var _chunkFX35L4Y6cjs = require('../../chunk-FX35L4Y6.cjs');
|
|
1903
1903
|
require('../../chunk-JQCQCE6U.cjs');
|
|
1904
1904
|
require('../../chunk-NTPX5GXI.cjs');
|
|
1905
1905
|
require('../../chunk-GI3MMBP3.cjs');
|
|
1906
|
-
require('../../chunk-
|
|
1906
|
+
require('../../chunk-GG466XFQ.cjs');
|
|
1907
1907
|
require('../../chunk-UJ7AXHRZ.cjs');
|
|
1908
1908
|
|
|
1909
1909
|
|
|
1910
1910
|
|
|
1911
1911
|
|
|
1912
|
-
var
|
|
1912
|
+
var _chunkZGEWT3SFcjs = require('../../chunk-ZGEWT3SF.cjs');
|
|
1913
1913
|
|
|
1914
1914
|
|
|
1915
1915
|
var _chunkN3MBQRCQcjs = require('../../chunk-N3MBQRCQ.cjs');
|
|
@@ -1923,7 +1923,7 @@ var _chunk2XCORRJVcjs = require('../../chunk-2XCORRJV.cjs');
|
|
|
1923
1923
|
|
|
1924
1924
|
|
|
1925
1925
|
|
|
1926
|
-
var
|
|
1926
|
+
var _chunkPMUCEUFQcjs = require('../../chunk-PMUCEUFQ.cjs');
|
|
1927
1927
|
|
|
1928
1928
|
|
|
1929
1929
|
var _chunkFCZAUK4Dcjs = require('../../chunk-FCZAUK4D.cjs');
|
|
@@ -2230,7 +2230,7 @@ function useMeetingBooking(options) {
|
|
|
2230
2230
|
const seededOffset = _optionalChain([initialAvailability, 'optionalAccess', _12 => _12.meetingId]) === meetingId ? initialAvailability.monthOffset : void 0;
|
|
2231
2231
|
const [monthOffset, setMonthOffsetState] = _react.useState.call(void 0, _nullishCoalesce(seededOffset, () => ( 0)));
|
|
2232
2232
|
const setMonthOffset = _react.useCallback.call(void 0, (offset) => {
|
|
2233
|
-
setMonthOffsetState(Math.max(0, Math.min(
|
|
2233
|
+
setMonthOffsetState(Math.max(0, Math.min(_chunkQUSCSYHJcjs.MAX_MONTH_OFFSET, offset)));
|
|
2234
2234
|
}, []);
|
|
2235
2235
|
const prevMeetingIdRef = _react.useRef.call(void 0, meetingId);
|
|
2236
2236
|
_react.useLayoutEffect.call(void 0, () => {
|
|
@@ -2332,7 +2332,7 @@ function BookingContextSummary({
|
|
|
2332
2332
|
const label = _nullishCoalesce(_optionalChain([slot, 'optionalAccess', _14 => _14.label]), () => ( _optionalChain([context, 'optionalAccess', _15 => _15.label])));
|
|
2333
2333
|
if (!label || !slot && items.length === 0) return null;
|
|
2334
2334
|
if (!slot) {
|
|
2335
|
-
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,
|
|
2335
|
+
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, _chunkW7OFAROYcjs.Tag, { label: item, ...LINE_TAG_PROPS }) }, item)) }) });
|
|
2336
2336
|
}
|
|
2337
2337
|
const cells = Array.from({ length: Math.max(slot.slots, items.length) }, (_, index) => items[index]);
|
|
2338
2338
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, SummaryFrame, { label, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "relative", children: [
|
|
@@ -2344,7 +2344,7 @@ function BookingContextSummary({
|
|
|
2344
2344
|
className: SLOT_CELL_CLASS,
|
|
2345
2345
|
"aria-hidden": empty || void 0,
|
|
2346
2346
|
"data-loading-item": "",
|
|
2347
|
-
children: loading ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2347
|
+
children: loading ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkW7OFAROYcjs.Tag, { label: "", loading: true, ...LINE_TAG_PROPS, className: LOADING_LINE_CLASS }) : item ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkW7OFAROYcjs.Tag, { label: item, ...LINE_TAG_PROPS }) : (
|
|
2348
2348
|
// With no line at all the empty state covers every slot; with some, the rest stay as slots.
|
|
2349
2349
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunk63A4GZMBcjs.cn.call(void 0, EMPTY_CELL_CLASS, items.length === 0 && "invisible") })
|
|
2350
2350
|
)
|
|
@@ -2398,7 +2398,7 @@ var canonicalNumber = (v) => {
|
|
|
2398
2398
|
};
|
|
2399
2399
|
var FIELD_CONTROLS = {
|
|
2400
2400
|
text: ({ field, id, registerName, error, register }) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2401
|
-
|
|
2401
|
+
_chunkZGEWT3SFcjs.Input,
|
|
2402
2402
|
{
|
|
2403
2403
|
id,
|
|
2404
2404
|
type: _nullishCoalesce(field.inputType, () => ( "text")),
|
|
@@ -2411,7 +2411,7 @@ var FIELD_CONTROLS = {
|
|
|
2411
2411
|
}
|
|
2412
2412
|
),
|
|
2413
2413
|
textarea: ({ field, id, registerName, error, register }) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2414
|
-
|
|
2414
|
+
_chunk2V6FCVULcjs.Textarea,
|
|
2415
2415
|
{
|
|
2416
2416
|
id,
|
|
2417
2417
|
required: field.required,
|
|
@@ -2422,7 +2422,7 @@ var FIELD_CONTROLS = {
|
|
|
2422
2422
|
}
|
|
2423
2423
|
),
|
|
2424
2424
|
number: ({ field, id, registerName, error, register }) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2425
|
-
|
|
2425
|
+
_chunkZGEWT3SFcjs.Input,
|
|
2426
2426
|
{
|
|
2427
2427
|
id,
|
|
2428
2428
|
type: "number",
|
|
@@ -2435,7 +2435,7 @@ var FIELD_CONTROLS = {
|
|
|
2435
2435
|
}
|
|
2436
2436
|
),
|
|
2437
2437
|
phone: ({ field, id, registerName, error, register }) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2438
|
-
|
|
2438
|
+
_chunkZGEWT3SFcjs.Input,
|
|
2439
2439
|
{
|
|
2440
2440
|
id,
|
|
2441
2441
|
type: "tel",
|
|
@@ -2451,7 +2451,7 @@ var FIELD_CONTROLS = {
|
|
|
2451
2451
|
date: ({ field, id, registerName, error, register }) => (
|
|
2452
2452
|
// The native picker emits exactly the wire shape (`YYYY-MM-DD`).
|
|
2453
2453
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2454
|
-
|
|
2454
|
+
_chunkZGEWT3SFcjs.Input,
|
|
2455
2455
|
{
|
|
2456
2456
|
id,
|
|
2457
2457
|
type: "date",
|
|
@@ -2467,18 +2467,18 @@ var FIELD_CONTROLS = {
|
|
|
2467
2467
|
{
|
|
2468
2468
|
control,
|
|
2469
2469
|
name: registerName,
|
|
2470
|
-
render: ({ field: rhf }) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
2470
|
+
render: ({ field: rhf }) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkIKOL6NJYcjs.Select, { value: _nullishCoalesce(rhf.value, () => ( "")), onValueChange: rhf.onChange, children: [
|
|
2471
2471
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2472
|
-
|
|
2472
|
+
_chunkIKOL6NJYcjs.SelectTrigger,
|
|
2473
2473
|
{
|
|
2474
2474
|
id,
|
|
2475
2475
|
"aria-required": field.required || void 0,
|
|
2476
2476
|
"aria-invalid": Boolean(error),
|
|
2477
2477
|
invalid: Boolean(error),
|
|
2478
|
-
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2478
|
+
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIKOL6NJYcjs.SelectValue, { placeholder: "Select\u2026" })
|
|
2479
2479
|
}
|
|
2480
2480
|
),
|
|
2481
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2481
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIKOL6NJYcjs.SelectContent, { children: (_nullishCoalesce(field.options, () => ( []))).map((opt) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIKOL6NJYcjs.SelectItem, { value: opt, children: formFieldOptionLabel(field, opt) }, opt)) })
|
|
2482
2482
|
] })
|
|
2483
2483
|
}
|
|
2484
2484
|
),
|
|
@@ -2488,14 +2488,14 @@ var FIELD_CONTROLS = {
|
|
|
2488
2488
|
control,
|
|
2489
2489
|
name: registerName,
|
|
2490
2490
|
render: ({ field: rhf }) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2491
|
-
|
|
2491
|
+
_chunk2V6FCVULcjs.RadioGroup,
|
|
2492
2492
|
{
|
|
2493
2493
|
value: _nullishCoalesce(rhf.value, () => ( "")),
|
|
2494
2494
|
onValueChange: rhf.onChange,
|
|
2495
2495
|
"aria-required": field.required || void 0,
|
|
2496
2496
|
"aria-invalid": Boolean(error),
|
|
2497
2497
|
children: (_nullishCoalesce(field.options, () => ( []))).map((opt) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center gap-[var(--spacing-system-xs)]", children: [
|
|
2498
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2498
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2V6FCVULcjs.RadioGroupItem, { id: `${id}-${opt}`, value: opt }),
|
|
2499
2499
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkN3MBQRCQcjs.Label, { htmlFor: `${id}-${opt}`, children: formFieldOptionLabel(field, opt) })
|
|
2500
2500
|
] }, opt))
|
|
2501
2501
|
}
|
|
@@ -2518,7 +2518,7 @@ var FIELD_CONTROLS = {
|
|
|
2518
2518
|
};
|
|
2519
2519
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { id, role: "group", className: "flex flex-col gap-[var(--spacing-system-xs)]", children: (_nullishCoalesce(field.options, () => ( []))).map((opt) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center gap-[var(--spacing-system-xs)]", children: [
|
|
2520
2520
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2521
|
-
|
|
2521
|
+
_chunkZZDFMUEUcjs.Checkbox,
|
|
2522
2522
|
{
|
|
2523
2523
|
id: `${id}-${opt}`,
|
|
2524
2524
|
checked: selected.includes(opt),
|
|
@@ -2542,7 +2542,7 @@ var FIELD_CONTROLS = {
|
|
|
2542
2542
|
// this id — a second inline label would double the visible text AND
|
|
2543
2543
|
// the accessible name.
|
|
2544
2544
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex items-center gap-[var(--spacing-system-xs)]", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2545
|
-
|
|
2545
|
+
_chunkZZDFMUEUcjs.Checkbox,
|
|
2546
2546
|
{
|
|
2547
2547
|
id,
|
|
2548
2548
|
checked: Boolean(rhf.value),
|
|
@@ -2569,7 +2569,7 @@ var chipsControl = ({ field, id, registerName, error, control }) => /* @__PURE__
|
|
|
2569
2569
|
control,
|
|
2570
2570
|
name: registerName,
|
|
2571
2571
|
render: ({ field: rhf }) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2572
|
-
|
|
2572
|
+
_chunk2V6FCVULcjs.ToggleGroup,
|
|
2573
2573
|
{
|
|
2574
2574
|
id,
|
|
2575
2575
|
type: "single",
|
|
@@ -2580,11 +2580,11 @@ var chipsControl = ({ field, id, registerName, error, control }) => /* @__PURE__
|
|
|
2580
2580
|
},
|
|
2581
2581
|
ref: (group) => rhf.ref(group && { focus: () => _optionalChain([group, 'access', _23 => _23.querySelector, 'call', _24 => _24("button"), 'optionalAccess', _25 => _25.focus, 'call', _26 => _26()]) }),
|
|
2582
2582
|
onBlur: rhf.onBlur,
|
|
2583
|
-
"aria-labelledby":
|
|
2583
|
+
"aria-labelledby": _chunkZGEWT3SFcjs.fieldLabelId.call(void 0, id),
|
|
2584
2584
|
"aria-required": field.required || void 0,
|
|
2585
2585
|
"aria-invalid": Boolean(error),
|
|
2586
2586
|
className: CHIP_ROW_CLASS,
|
|
2587
|
-
children: (_nullishCoalesce(field.options, () => ( []))).map((opt) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2587
|
+
children: (_nullishCoalesce(field.options, () => ( []))).map((opt) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2V6FCVULcjs.ToggleGroupItem, { value: opt, className: _chunk63A4GZMBcjs.cn.call(void 0, error && "data-[state=off]:border-ods-error"), children: formFieldOptionLabel(field, opt) }, opt))
|
|
2588
2588
|
}
|
|
2589
2589
|
)
|
|
2590
2590
|
}
|
|
@@ -2720,7 +2720,7 @@ function BookingFormBody({
|
|
|
2720
2720
|
() => [...BUILT_IN_BOOKING_FIELDS.map((field) => field.name), ...supportedFields.map((field) => field.name)],
|
|
2721
2721
|
[supportedFields]
|
|
2722
2722
|
);
|
|
2723
|
-
const formRescue =
|
|
2723
|
+
const formRescue = _chunkFNQWL4W4cjs.useRescuedForm.call(void 0,
|
|
2724
2724
|
{ watch, getValues, setValue },
|
|
2725
2725
|
{
|
|
2726
2726
|
rescue,
|
|
@@ -2729,7 +2729,7 @@ function BookingFormBody({
|
|
|
2729
2729
|
fieldPath: (name) => BUILT_IN_BOOKING_FIELDS.some((field) => field.name === name) ? name : `formFields.${name}`
|
|
2730
2730
|
}
|
|
2731
2731
|
);
|
|
2732
|
-
const { toast } =
|
|
2732
|
+
const { toast } = _chunkFNQWL4W4cjs.useToast.call(void 0, );
|
|
2733
2733
|
const onInvalid = () => {
|
|
2734
2734
|
if (deniedEmailDomains && emailDomainDenied(getValues("email"), deniedEmailDomains)) {
|
|
2735
2735
|
toast({
|
|
@@ -2770,7 +2770,7 @@ function BookingFormBody({
|
|
|
2770
2770
|
const copy = _optionalChain([fieldCopy, 'optionalAccess', _40 => _40[field.name]]);
|
|
2771
2771
|
const shown = copy ? { ...field, label: _nullishCoalesce(copy.label, () => ( field.label)), placeholder: _nullishCoalesce(copy.placeholder, () => ( field.placeholder)) } : field;
|
|
2772
2772
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2773
|
-
|
|
2773
|
+
_chunkZGEWT3SFcjs.FieldWrapper,
|
|
2774
2774
|
{
|
|
2775
2775
|
label: shown.label,
|
|
2776
2776
|
htmlFor: where.id,
|
|
@@ -2819,8 +2819,8 @@ function BookingFormBody({
|
|
|
2819
2819
|
children: _nullishCoalesce(submitLabel, () => ( DEFAULT_SUBMIT_LABEL))
|
|
2820
2820
|
}
|
|
2821
2821
|
);
|
|
2822
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "form", { id: formId, onSubmit: submit, className: FORM_STACK, noValidate: true, ...
|
|
2823
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2822
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "form", { id: formId, onSubmit: submit, className: FORM_STACK, noValidate: true, ..._chunkQUSCSYHJcjs.HUBSPOT_DO_NOT_COLLECT_FORM_PROPS, children: [
|
|
2823
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2V6FCVULcjs.HoneypotField, { ...honeypotInputProps }),
|
|
2824
2824
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, BookingContextSummary, { context, slot: contextSlot }),
|
|
2825
2825
|
fieldRows ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
2826
2826
|
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("|"))),
|
|
@@ -2834,7 +2834,7 @@ function BookingFormBody({
|
|
|
2834
2834
|
supportedFields.map((field) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _react.Fragment, { children: renderDeclaredField(field) }, field.name))
|
|
2835
2835
|
] }),
|
|
2836
2836
|
consent && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2837
|
-
|
|
2837
|
+
_chunk2V6FCVULcjs.CheckboxBlock,
|
|
2838
2838
|
{
|
|
2839
2839
|
id: "ms-host-consent",
|
|
2840
2840
|
checked: consented,
|
|
@@ -2853,7 +2853,7 @@ function BookingFormBody({
|
|
|
2853
2853
|
// box doesn't shove the submit button down the card. With no error the
|
|
2854
2854
|
// wrapper is `display:contents` and the panel below is the flex item,
|
|
2855
2855
|
// exactly as it was.
|
|
2856
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2856
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkZGEWT3SFcjs.FieldWrapper, { error: _optionalChain([errors, 'access', _44 => _44.legalConsentResponses, 'optionalAccess', _45 => _45.message]), children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col gap-[var(--spacing-system-xs)]", children: [
|
|
2857
2857
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-ods-text-secondary text-h6", children: legalConsent.processingConsentText }),
|
|
2858
2858
|
legalConsent.communicationConsentText && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-ods-text-secondary text-h6", children: legalConsent.communicationConsentText }),
|
|
2859
2859
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -2869,7 +2869,7 @@ function BookingFormBody({
|
|
|
2869
2869
|
// same block the waitlist form uses): box + label in one
|
|
2870
2870
|
// bordered row.
|
|
2871
2871
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2872
|
-
|
|
2872
|
+
_chunk2V6FCVULcjs.CheckboxBlock,
|
|
2873
2873
|
{
|
|
2874
2874
|
id: `ms-consent-${box.communicationTypeId}`,
|
|
2875
2875
|
checked: _nullishCoalesce(_optionalChain([current, 'optionalAccess', _46 => _46.consented]), () => ( false)),
|
|
@@ -2920,18 +2920,18 @@ function BookingFormPending({
|
|
|
2920
2920
|
slot.name
|
|
2921
2921
|
)) }, row.map((s) => s.name).join("|"))),
|
|
2922
2922
|
!fieldRows && // An empty label keeps the field's own frame (`FieldWrapper` draws no label for it); the bar stands for it.
|
|
2923
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
2924
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2925
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2923
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkZGEWT3SFcjs.FieldWrapper, { label: "", children: [
|
|
2924
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPMUCEUFQcjs.TextLineSkeleton, { type: "h6", className: "mb-1 w-40" }),
|
|
2925
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2V6FCVULcjs.Textarea, { tabIndex: -1 })
|
|
2926
2926
|
] }),
|
|
2927
2927
|
consent && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2928
|
-
|
|
2928
|
+
_chunk2V6FCVULcjs.CheckboxBlock,
|
|
2929
2929
|
{
|
|
2930
2930
|
id: consentId,
|
|
2931
2931
|
checked: false,
|
|
2932
2932
|
onCheckedChange: _chunk63A4GZMBcjs.LOADING_NOOP,
|
|
2933
2933
|
required: true,
|
|
2934
|
-
label: consent === true ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2934
|
+
label: consent === true ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPMUCEUFQcjs.TextLineSkeleton, { type: "inherit", as: "span", className: "w-64 max-w-full" }) : consent.label,
|
|
2935
2935
|
description: consent === true ? void 0 : consent.description
|
|
2936
2936
|
}
|
|
2937
2937
|
),
|
|
@@ -2974,9 +2974,9 @@ function FieldSkeleton({
|
|
|
2974
2974
|
const label = builtIn ? _nullishCoalesce(_optionalChain([copy, 'optionalAccess', _48 => _48.label]), () => ( builtIn.label)) : _optionalChain([copy, 'optionalAccess', _49 => _49.label]);
|
|
2975
2975
|
return (
|
|
2976
2976
|
// An empty label keeps the field's own frame; a read label is the bar under it.
|
|
2977
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
2978
|
-
label === void 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2979
|
-
!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,
|
|
2977
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkZGEWT3SFcjs.FieldWrapper, { label: _nullishCoalesce(label, () => ( "")), required: _optionalChain([builtIn, 'optionalAccess', _50 => _50.required]), className, children: [
|
|
2978
|
+
label === void 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPMUCEUFQcjs.TextLineSkeleton, { type: "h6", className: "mb-1 w-32" }),
|
|
2979
|
+
!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, _chunkPMUCEUFQcjs.UnifiedSkeleton, { variant: "default", className: _chunk63A4GZMBcjs.cn.call(void 0, _chunk2V6FCVULcjs.TOGGLE_SIZE_CLASS.default, "w-24 rounded-md") }) }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkZGEWT3SFcjs.Input, { tabIndex: -1 })
|
|
2980
2980
|
] })
|
|
2981
2981
|
);
|
|
2982
2982
|
}
|
|
@@ -2984,7 +2984,7 @@ function FieldSkeleton({
|
|
|
2984
2984
|
// src/components/meeting-scheduler/confirmation.tsx
|
|
2985
2985
|
|
|
2986
2986
|
function Confirmation({ confirmation, timezone }) {
|
|
2987
|
-
const when =
|
|
2987
|
+
const when = _chunkW7OFAROYcjs.formatDateWithTimezone.call(void 0, confirmation.startTimeMs, timezone, "weekdayDateTimeZoned", {
|
|
2988
2988
|
viewerLocale: true
|
|
2989
2989
|
});
|
|
2990
2990
|
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: [
|
|
@@ -2994,7 +2994,7 @@ function Confirmation({ confirmation, timezone }) {
|
|
|
2994
2994
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "p", { className: "text-ods-text-secondary text-h6", children: [
|
|
2995
2995
|
when,
|
|
2996
2996
|
" \xB7 ",
|
|
2997
|
-
|
|
2997
|
+
_chunkW7OFAROYcjs.formatDurationCompact.call(void 0, confirmation.durationMs / 1e3)
|
|
2998
2998
|
] }),
|
|
2999
2999
|
/* @__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." })
|
|
3000
3000
|
] });
|
|
@@ -3012,7 +3012,7 @@ function HostIdentity({ hosts, loading = false }) {
|
|
|
3012
3012
|
if (hosts.length === 0) return null;
|
|
3013
3013
|
if (hosts.length > MAX_HOST_ROWS) {
|
|
3014
3014
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: HOST_TEAM_CLASS, children: [
|
|
3015
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3015
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHTYJUMFBcjs.AvatarStack, { people: hosts, max: 4, size: "lg", label: "Hosts" }),
|
|
3016
3016
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "p", { className: "text-ods-text-secondary text-h6", children: [
|
|
3017
3017
|
hosts.length,
|
|
3018
3018
|
" hosts on this calendar"
|
|
@@ -3021,7 +3021,7 @@ function HostIdentity({ hosts, loading = false }) {
|
|
|
3021
3021
|
}
|
|
3022
3022
|
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: [
|
|
3023
3023
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3024
|
-
|
|
3024
|
+
_chunkW7OFAROYcjs.SquareAvatar,
|
|
3025
3025
|
{
|
|
3026
3026
|
variant: "round",
|
|
3027
3027
|
size: "sm",
|
|
@@ -3038,10 +3038,10 @@ function HostIdentity({ hosts, loading = false }) {
|
|
|
3038
3038
|
}
|
|
3039
3039
|
function HostIdentitySkeleton() {
|
|
3040
3040
|
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: [
|
|
3041
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3041
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkW7OFAROYcjs.SquareAvatar, { loading: true, variant: "round", size: "sm" }),
|
|
3042
3042
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: HOST_TEXT_CLASS, children: [
|
|
3043
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3044
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3043
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPMUCEUFQcjs.TextLineSkeleton, { type: "h4", className: "w-32" }),
|
|
3044
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPMUCEUFQcjs.TextLineSkeleton, { type: "h6", className: "w-24" })
|
|
3045
3045
|
] })
|
|
3046
3046
|
] }) });
|
|
3047
3047
|
}
|
|
@@ -3069,23 +3069,23 @@ function ContextPanelSkeleton({
|
|
|
3069
3069
|
timezone = "shown"
|
|
3070
3070
|
}) {
|
|
3071
3071
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk63A4GZMBcjs.cn.call(void 0, PANEL_STACK, className), children: [
|
|
3072
|
-
onBack && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3072
|
+
onBack && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIKOL6NJYcjs.BackButton, { label: backLabel, onClick: onBack, className: BACK_BUTTON_CLASS }),
|
|
3073
3073
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: STRIP_BODY, children: [
|
|
3074
3074
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: STRIP_MAIN, children: [
|
|
3075
3075
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: IDENTITY_ROW, children: [
|
|
3076
3076
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, HostIdentity, { hosts: [], loading: true }),
|
|
3077
|
-
durations <= 1 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3077
|
+
durations <= 1 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPMUCEUFQcjs.TextLineSkeleton, { type: "h6", className: "w-20 shrink-0" })
|
|
3078
3078
|
] }),
|
|
3079
|
-
title && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3080
|
-
description && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3079
|
+
title && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPMUCEUFQcjs.TextLineSkeleton, { type: "h3", className: "w-3/5" }),
|
|
3080
|
+
description && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPMUCEUFQcjs.TextLineSkeleton, { type: "h6", className: "w-4/5" }),
|
|
3081
3081
|
durations > 1 && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: DURATION_FIELD_CLASS, children: [
|
|
3082
3082
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: FIELD_LABEL_CLASS, children: "Duration" }),
|
|
3083
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: DURATION_CHIPS_CLASS, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk63A4GZMBcjs.LoadingItems, { count: durations, children: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3083
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: DURATION_CHIPS_CLASS, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk63A4GZMBcjs.LoadingItems, { count: durations, children: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPMUCEUFQcjs.InteractiveSkeleton.Button, { "data-loading-item": true, size: "small-legacy", className: "w-16" }) }) })
|
|
3084
3084
|
] })
|
|
3085
3085
|
] }),
|
|
3086
3086
|
timezone !== "hidden" && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk63A4GZMBcjs.cn.call(void 0, STRIP_ASIDE, timezone === "wide" && TIMEZONE_WIDE_ONLY_CLASS), children: [
|
|
3087
3087
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: FIELD_LABEL_CLASS, children: "Timezone" }),
|
|
3088
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3088
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2V6FCVULcjs.TimezoneSelect, { value: null, loading: true, onChange: _chunk63A4GZMBcjs.LOADING_NOOP })
|
|
3089
3089
|
] })
|
|
3090
3090
|
] })
|
|
3091
3091
|
] });
|
|
@@ -3123,7 +3123,7 @@ function SchedulerContextPanel({
|
|
|
3123
3123
|
);
|
|
3124
3124
|
}
|
|
3125
3125
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk63A4GZMBcjs.cn.call(void 0, PANEL_STACK, className), children: [
|
|
3126
|
-
onBack && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3126
|
+
onBack && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIKOL6NJYcjs.BackButton, { label: backLabel, onClick: onBack, className: BACK_BUTTON_CLASS }),
|
|
3127
3127
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: STRIP_BODY, children: [
|
|
3128
3128
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: STRIP_MAIN, children: [
|
|
3129
3129
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: IDENTITY_ROW, children: [
|
|
@@ -3132,7 +3132,7 @@ function SchedulerContextPanel({
|
|
|
3132
3132
|
// Post-selection, or a link that offers one length: a static line,
|
|
3133
3133
|
// which is what sits beside the host on the header-strip layouts.
|
|
3134
3134
|
selectedDurationMs != null && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "p", { className: DURATION_LINE_CLASS, children: [
|
|
3135
|
-
|
|
3135
|
+
_chunkW7OFAROYcjs.formatDurationCompact.call(void 0, selectedDurationMs / 1e3),
|
|
3136
3136
|
" call"
|
|
3137
3137
|
] })
|
|
3138
3138
|
) : null
|
|
@@ -3149,7 +3149,7 @@ function SchedulerContextPanel({
|
|
|
3149
3149
|
size: "small-legacy",
|
|
3150
3150
|
disabled,
|
|
3151
3151
|
onClick: () => onSelectDuration(ms),
|
|
3152
|
-
children:
|
|
3152
|
+
children: _chunkW7OFAROYcjs.formatDurationCompact.call(void 0, ms / 1e3)
|
|
3153
3153
|
},
|
|
3154
3154
|
ms
|
|
3155
3155
|
)) })
|
|
@@ -3164,7 +3164,7 @@ function SchedulerContextPanel({
|
|
|
3164
3164
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk63A4GZMBcjs.cn.call(void 0, STRIP_ASIDE, locked && TIMEZONE_WIDE_ONLY_CLASS), children: [
|
|
3165
3165
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: FIELD_LABEL_CLASS, children: "Timezone" }),
|
|
3166
3166
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3167
|
-
|
|
3167
|
+
_chunk2V6FCVULcjs.TimezoneSelect,
|
|
3168
3168
|
{
|
|
3169
3169
|
value: _nullishCoalesce(timezone, () => ( null)),
|
|
3170
3170
|
loading: !timezone,
|
|
@@ -3210,18 +3210,18 @@ function SchedulerModalHeader({
|
|
|
3210
3210
|
size: "small-legacy",
|
|
3211
3211
|
disabled,
|
|
3212
3212
|
onClick: () => onSelectDuration(ms),
|
|
3213
|
-
children:
|
|
3213
|
+
children: _chunkW7OFAROYcjs.formatDurationCompact.call(void 0, ms / 1e3)
|
|
3214
3214
|
},
|
|
3215
3215
|
ms
|
|
3216
3216
|
)) }) : selectedDurationMs != null && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "p", { className: DURATION_LINE_CLASS2, children: [
|
|
3217
|
-
|
|
3217
|
+
_chunkW7OFAROYcjs.formatDurationCompact.call(void 0, selectedDurationMs / 1e3),
|
|
3218
3218
|
" call"
|
|
3219
3219
|
] })
|
|
3220
3220
|
] }),
|
|
3221
3221
|
showTimezone && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: TIMEZONE_ROW_CLASS, children: [
|
|
3222
3222
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: FIELD_LABEL_CLASS2, children: "Timezone" }),
|
|
3223
3223
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3224
|
-
|
|
3224
|
+
_chunk2V6FCVULcjs.TimezoneSelect,
|
|
3225
3225
|
{
|
|
3226
3226
|
value: timezone,
|
|
3227
3227
|
loading: !timezone,
|
|
@@ -3238,11 +3238,11 @@ function SchedulerModalHeaderSkeleton({ showTimezone = true } = {}) {
|
|
|
3238
3238
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
3239
3239
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: STRIP_CLASS, children: [
|
|
3240
3240
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, HostIdentity, { hosts: [], loading: true }),
|
|
3241
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3241
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPMUCEUFQcjs.TextLineSkeleton, { type: "h6", className: _chunk63A4GZMBcjs.cn.call(void 0, DURATION_LINE_CLASS2, "w-20") })
|
|
3242
3242
|
] }),
|
|
3243
3243
|
showTimezone && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: TIMEZONE_ROW_CLASS, children: [
|
|
3244
3244
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: FIELD_LABEL_CLASS2, children: "Timezone" }),
|
|
3245
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3245
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2V6FCVULcjs.TimezoneSelect, { value: null, loading: true, onChange: _chunk63A4GZMBcjs.LOADING_NOOP })
|
|
3246
3246
|
] })
|
|
3247
3247
|
] });
|
|
3248
3248
|
}
|
|
@@ -3265,7 +3265,7 @@ function dateFromDayKey(key) {
|
|
|
3265
3265
|
return new Date(y, m - 1, d, 12);
|
|
3266
3266
|
}
|
|
3267
3267
|
function timeLabelInZone(ms, timeZone) {
|
|
3268
|
-
return
|
|
3268
|
+
return _chunkW7OFAROYcjs.formatTimeWithTimezone.call(void 0, ms, timeZone, { viewerLocale: true });
|
|
3269
3269
|
}
|
|
3270
3270
|
var CALENDAR_W = "content-md:w-[19rem] content-md:shrink-0 content-lg:w-[16rem]";
|
|
3271
3271
|
var COLUMN_HEADING_CLASS = "shrink-0 text-h4 text-ods-text-primary";
|
|
@@ -3318,24 +3318,24 @@ var MODAL_CHIP_GRID_CLASS = _chunk63A4GZMBcjs.cn.call(void 0,
|
|
|
3318
3318
|
function monthLabelFor(offset) {
|
|
3319
3319
|
const now = /* @__PURE__ */ new Date();
|
|
3320
3320
|
const month = new Date(now.getFullYear(), now.getMonth() + offset, 1);
|
|
3321
|
-
return
|
|
3321
|
+
return _chunkW7OFAROYcjs.formatDateWithTimezone.call(void 0, month, _chunkW7OFAROYcjs.VIEWER_TIMEZONE, "monthYear");
|
|
3322
3322
|
}
|
|
3323
3323
|
var DISABLE_EVERY_DAY = () => true;
|
|
3324
3324
|
function DayCalendar({ monthOffset, onMonthOffsetChange, selectedDay, onSelectDay, slotsByDay }) {
|
|
3325
3325
|
const now = /* @__PURE__ */ new Date();
|
|
3326
3326
|
const startMonth = new Date(now.getFullYear(), now.getMonth(), 1);
|
|
3327
|
-
const endMonth = new Date(now.getFullYear(), now.getMonth() +
|
|
3327
|
+
const endMonth = new Date(now.getFullYear(), now.getMonth() + _chunkQUSCSYHJcjs.MAX_MONTH_OFFSET + 1, 0);
|
|
3328
3328
|
const visibleMonth = new Date(now.getFullYear(), now.getMonth() + monthOffset, 1);
|
|
3329
3329
|
const dayHasNoSlots = _react.useCallback.call(void 0, (day) => !_optionalChain([slotsByDay, 'optionalAccess', _54 => _54.has, 'call', _55 => _55(calendarDayKey(day))]), [slotsByDay]);
|
|
3330
3330
|
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,
|
|
3331
|
-
|
|
3331
|
+
_chunk2V6FCVULcjs.DatePickerCalendar,
|
|
3332
3332
|
{
|
|
3333
3333
|
mode: "single",
|
|
3334
3334
|
bare: true,
|
|
3335
3335
|
month: visibleMonth,
|
|
3336
3336
|
onMonthChange: (month) => {
|
|
3337
3337
|
const offset = (month.getFullYear() - now.getFullYear()) * 12 + (month.getMonth() - now.getMonth());
|
|
3338
|
-
onMonthOffsetChange(Math.max(0, Math.min(
|
|
3338
|
+
onMonthOffsetChange(Math.max(0, Math.min(_chunkQUSCSYHJcjs.MAX_MONTH_OFFSET, offset)));
|
|
3339
3339
|
},
|
|
3340
3340
|
fromDate: startMonth,
|
|
3341
3341
|
toDate: endMonth,
|
|
@@ -3384,8 +3384,8 @@ function SlotPickerSkeleton({ monthOffset = 0, layout = "card" }) {
|
|
|
3384
3384
|
var SLOT_PICKER_SKELETON_CHIPS = 16;
|
|
3385
3385
|
function TimeChipsSkeleton({ layout = "card" } = {}) {
|
|
3386
3386
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
3387
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: COLUMN_HEADING_CLASS, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3388
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: layout === "modal" ? MODAL_CHIP_GRID_CLASS : CHIP_GRID_CLASS, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk63A4GZMBcjs.LoadingItems, { count: SLOT_PICKER_SKELETON_CHIPS, children: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3387
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: COLUMN_HEADING_CLASS, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPMUCEUFQcjs.TextLineSkeleton, { type: "h4", className: "w-40" }) }),
|
|
3388
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: layout === "modal" ? MODAL_CHIP_GRID_CLASS : CHIP_GRID_CLASS, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk63A4GZMBcjs.LoadingItems, { count: SLOT_PICKER_SKELETON_CHIPS, children: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPMUCEUFQcjs.UnifiedSkeleton, { "data-loading-item": true, className: _chunk63A4GZMBcjs.cn.call(void 0, CHIP_CLASS, "h-11 content-md:h-12") }) }) })
|
|
3389
3389
|
] });
|
|
3390
3390
|
}
|
|
3391
3391
|
function SlotPicker({
|
|
@@ -3449,7 +3449,7 @@ function SlotPicker({
|
|
|
3449
3449
|
{
|
|
3450
3450
|
className: modal ? _chunk63A4GZMBcjs.cn.call(void 0, COLUMN_STACK, MODAL_COLUMN_BOX, MODAL_TIMES_H, "min-w-0 content-md:flex-1") : _chunk63A4GZMBcjs.cn.call(void 0, COLUMN_STACK, COLUMN_BOX, "min-w-0 content-md:flex-1"),
|
|
3451
3451
|
children: isLoading ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TimeChipsSkeleton, { layout }) : selectedDay ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
3452
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: COLUMN_HEADING_CLASS, children:
|
|
3452
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: COLUMN_HEADING_CLASS, children: _chunkW7OFAROYcjs.formatDateWithTimezone.call(void 0, dateFromDayKey(selectedDay), _chunkW7OFAROYcjs.VIEWER_TIMEZONE, "weekday", { viewerLocale: true }) }),
|
|
3453
3453
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: modal ? MODAL_CHIP_GRID_CLASS : CHIP_GRID_CLASS, children: daySlots.map((ms) => {
|
|
3454
3454
|
const isSelected = selectedSlot === ms;
|
|
3455
3455
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -3479,7 +3479,7 @@ function SlotPicker({
|
|
|
3479
3479
|
monthLabelFor(monthOffset),
|
|
3480
3480
|
"."
|
|
3481
3481
|
] }),
|
|
3482
|
-
monthOffset <
|
|
3482
|
+
monthOffset < _chunkQUSCSYHJcjs.MAX_MONTH_OFFSET && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
3483
3483
|
_chunkFCZAUK4Dcjs.Button,
|
|
3484
3484
|
{
|
|
3485
3485
|
variant: "outline",
|
|
@@ -3503,10 +3503,10 @@ function SlotPicker({
|
|
|
3503
3503
|
|
|
3504
3504
|
|
|
3505
3505
|
function useNextAvailableLabel(ms) {
|
|
3506
|
-
const hydrated =
|
|
3506
|
+
const hydrated = _chunkYAW7CHLVcjs.useIsHydrated.call(void 0, );
|
|
3507
3507
|
return _react.useMemo.call(void 0, () => {
|
|
3508
3508
|
if (!hydrated || ms == null) return null;
|
|
3509
|
-
return
|
|
3509
|
+
return _chunkW7OFAROYcjs.formatDateWithTimezone.call(void 0, ms, _chunkW7OFAROYcjs.VIEWER_TIMEZONE, "shortWeekdayDateTime", { viewerLocale: true }) || null;
|
|
3510
3510
|
}, [hydrated, ms]);
|
|
3511
3511
|
}
|
|
3512
3512
|
var PAGINATION_SLOT_H = "h-[4.5rem]";
|
|
@@ -3527,7 +3527,7 @@ function DirectoryRow({
|
|
|
3527
3527
|
const nextLabel = useNextAvailableLabel(link.nextAvailableMs);
|
|
3528
3528
|
const subtitle = [
|
|
3529
3529
|
link.description,
|
|
3530
|
-
link.durationsMinutes.length > 0 ? link.durationsMinutes.map((m) =>
|
|
3530
|
+
link.durationsMinutes.length > 0 ? link.durationsMinutes.map((m) => _chunkW7OFAROYcjs.formatDurationCompact.call(void 0, m * 60)).join(" / ") : null,
|
|
3531
3531
|
link.kind === "team" ? "Team" : null
|
|
3532
3532
|
].filter(Boolean).join(" \u2022 ");
|
|
3533
3533
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -3542,8 +3542,8 @@ function DirectoryRow({
|
|
|
3542
3542
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "truncate text-ods-text-primary text-h3", children: link.title }),
|
|
3543
3543
|
subtitle && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "truncate text-ods-text-secondary text-h6", children: subtitle })
|
|
3544
3544
|
] }),
|
|
3545
|
-
audienceLabel && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3546
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3545
|
+
audienceLabel && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMDLT6D46cjs.StatusBadge, { text: `For ${audienceLabel}`, singleLine: true, className: "hidden shrink-0 content-sm:inline-flex" }),
|
|
3546
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHTYJUMFBcjs.AvatarStack, { people: link.hosts, max: 3, size: "md", label: "Hosts", className: "flex shrink-0" }),
|
|
3547
3547
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: ROW_NEXT_COLUMN_CLASS, children: [
|
|
3548
3548
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: ROW_NEXT_LABEL_CLASS, children: "Next available" }),
|
|
3549
3549
|
/* @__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, () => ( " ")) })
|
|
@@ -3558,14 +3558,14 @@ var TYPICAL_HOSTS = 1;
|
|
|
3558
3558
|
function MeetingSchedulerDirectoryRowSkeleton(props = {}) {
|
|
3559
3559
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: ROW_FRAME_CLASS, "aria-hidden": true, ..._chunk63A4GZMBcjs.loadingItemProps.call(void 0, props), children: [
|
|
3560
3560
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: ROW_TITLE_COLUMN_CLASS, children: [
|
|
3561
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3562
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3561
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPMUCEUFQcjs.TextLineSkeleton, { type: "h3", className: "w-1/2" }),
|
|
3562
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPMUCEUFQcjs.TextLineSkeleton, { type: "h6", className: "w-1/3" })
|
|
3563
3563
|
] }),
|
|
3564
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3565
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3564
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPMUCEUFQcjs.UnifiedSkeleton, { className: "hidden h-6 w-28 shrink-0 content-sm:block" }),
|
|
3565
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHTYJUMFBcjs.AvatarStack, { people: NO_HOSTS, loading: true, max: TYPICAL_HOSTS, size: "md", label: "Hosts", className: "flex shrink-0" }),
|
|
3566
3566
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: ROW_NEXT_COLUMN_CLASS, children: [
|
|
3567
3567
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: ROW_NEXT_LABEL_CLASS, children: "Next available" }),
|
|
3568
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3568
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPMUCEUFQcjs.TextLineSkeleton, { type: "h6", className: "w-32" })
|
|
3569
3569
|
] }),
|
|
3570
3570
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: ROW_CHEVRON_CLASS, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.ChevronRight, { className: "size-6 text-ods-text-secondary" }) })
|
|
3571
3571
|
] });
|
|
@@ -3576,7 +3576,7 @@ function MeetingSchedulerDirectorySkeleton({
|
|
|
3576
3576
|
}) {
|
|
3577
3577
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk63A4GZMBcjs.cn.call(void 0, "flex flex-col", className), "aria-hidden": true, children: [
|
|
3578
3578
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: ROWS_CLASS, style: { minHeight: directoryRowsMinHeight(pageSize) }, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk63A4GZMBcjs.LoadingItems, { count: pageSize, children: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, MeetingSchedulerDirectoryRowSkeleton, { "data-loading-item": true }) }) }),
|
|
3579
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunk63A4GZMBcjs.cn.call(void 0, PAGINATION_SLOT_CLASS, PAGINATION_SLOT_H), children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3579
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunk63A4GZMBcjs.cn.call(void 0, PAGINATION_SLOT_CLASS, PAGINATION_SLOT_H), children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkALRYVZ3Ecjs.PaginationSkeleton, {}) })
|
|
3580
3580
|
] });
|
|
3581
3581
|
}
|
|
3582
3582
|
function MeetingSchedulerDirectory({
|
|
@@ -3631,7 +3631,7 @@ function MeetingSchedulerDirectory({
|
|
|
3631
3631
|
}
|
|
3632
3632
|
if (error) {
|
|
3633
3633
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunk63A4GZMBcjs.cn.call(void 0, "flex flex-col justify-center", className), style: { minHeight: rowsMinHeight + 104 }, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3634
|
-
|
|
3634
|
+
_chunk36DUCHI7cjs.EmptyState,
|
|
3635
3635
|
{
|
|
3636
3636
|
type: "generic",
|
|
3637
3637
|
title: "We couldn't load available call times",
|
|
@@ -3642,7 +3642,7 @@ function MeetingSchedulerDirectory({
|
|
|
3642
3642
|
}
|
|
3643
3643
|
if (rows.length === 0) {
|
|
3644
3644
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunk63A4GZMBcjs.cn.call(void 0, "flex flex-col justify-center", className), style: { minHeight: rowsMinHeight + 104 }, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3645
|
-
|
|
3645
|
+
_chunk36DUCHI7cjs.EmptyState,
|
|
3646
3646
|
{
|
|
3647
3647
|
type: "generic",
|
|
3648
3648
|
title: "No call times are published right now",
|
|
@@ -3654,7 +3654,7 @@ function MeetingSchedulerDirectory({
|
|
|
3654
3654
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk63A4GZMBcjs.cn.call(void 0, "flex flex-col", className), children: [
|
|
3655
3655
|
/* @__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)) }),
|
|
3656
3656
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunk63A4GZMBcjs.cn.call(void 0, PAGINATION_SLOT_CLASS, PAGINATION_SLOT_H), children: totalPages > 1 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3657
|
-
|
|
3657
|
+
_chunkSOSIXRQ3cjs.PersistentPaginationWrapper,
|
|
3658
3658
|
{
|
|
3659
3659
|
isLoading,
|
|
3660
3660
|
currentPage: page,
|
|
@@ -3793,7 +3793,7 @@ function HubSpotMeetingScheduler({
|
|
|
3793
3793
|
const modal = layout === "modal" && !detailsFirst;
|
|
3794
3794
|
const modalFormId = _react.useId.call(void 0, );
|
|
3795
3795
|
const [modalFormValid, setModalFormValid] = _react.useState.call(void 0, false);
|
|
3796
|
-
const hydrated =
|
|
3796
|
+
const hydrated = _chunkYAW7CHLVcjs.useIsHydrated.call(void 0, );
|
|
3797
3797
|
const [pickedTimezone, setTimezone] = _react.useState.call(void 0, null);
|
|
3798
3798
|
const resolvedLocalTimezone = _react.useMemo.call(void 0, () => {
|
|
3799
3799
|
if (!hydrated) return null;
|
|
@@ -3827,8 +3827,8 @@ function HubSpotMeetingScheduler({
|
|
|
3827
3827
|
const [selectedSlot, setSelectedSlot] = _react.useState.call(void 0, null);
|
|
3828
3828
|
const [confirmation, setConfirmation] = _react.useState.call(void 0, null);
|
|
3829
3829
|
const [bookingError, setBookingError] = _react.useState.call(void 0, null);
|
|
3830
|
-
const { honeypotInputProps, getSignals, resetSignals } =
|
|
3831
|
-
const { toast } =
|
|
3830
|
+
const { honeypotInputProps, getSignals, resetSignals } = _chunkFNQWL4W4cjs.useHumanitySignals.call(void 0, );
|
|
3831
|
+
const { toast } = _chunkFNQWL4W4cjs.useToast.call(void 0, );
|
|
3832
3832
|
const autoAdvanceCount = _react.useRef.call(void 0, 0);
|
|
3833
3833
|
const [machineFor, setMachineFor] = _react.useState.call(void 0, meetingId);
|
|
3834
3834
|
if (machineFor !== meetingId) {
|
|
@@ -3902,7 +3902,7 @@ function HubSpotMeetingScheduler({
|
|
|
3902
3902
|
return;
|
|
3903
3903
|
}
|
|
3904
3904
|
if (result.ok && result.confirmation) {
|
|
3905
|
-
|
|
3905
|
+
_chunkFNQWL4W4cjs.completeFormRescue.call(void 0, rescue, payload[_chunkHLJXCOMAcjs.FORM_RESCUE_ATTEMPT_FIELD]);
|
|
3906
3906
|
setConfirmation(result.confirmation);
|
|
3907
3907
|
setStep("confirmed");
|
|
3908
3908
|
_optionalChain([onBooked, 'optionalCall', _64 => _64(result.confirmation)]);
|
|
@@ -3947,11 +3947,11 @@ function HubSpotMeetingScheduler({
|
|
|
3947
3947
|
setSelectedDay(null);
|
|
3948
3948
|
setSelectedSlot(null);
|
|
3949
3949
|
};
|
|
3950
|
-
const summary = selectedSlot != null && durationMs != null && timezone != null ? `${
|
|
3950
|
+
const summary = selectedSlot != null && durationMs != null && timezone != null ? `${_chunkW7OFAROYcjs.formatDateWithTimezone.call(void 0, selectedSlot, timezone, "weekdayDateTimeZoned", { viewerLocale: true })} \xB7 ${_chunkW7OFAROYcjs.formatDurationCompact.call(void 0, durationMs / 1e3)}` : null;
|
|
3951
3951
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk63A4GZMBcjs.cn.call(void 0, MODAL_STACK_CLASS, className), children: [
|
|
3952
3952
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk2XCORRJVcjs.LoadingRegion, { label: "Loading available times", announce: coldStart, className: MODAL_CARD_CLASS, children: [
|
|
3953
3953
|
modalBack && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3954
|
-
|
|
3954
|
+
_chunkIKOL6NJYcjs.BackButton,
|
|
3955
3955
|
{
|
|
3956
3956
|
onClick: modalBack,
|
|
3957
3957
|
className: _chunk63A4GZMBcjs.cn.call(void 0,
|
|
@@ -3997,7 +3997,7 @@ function HubSpotMeetingScheduler({
|
|
|
3997
3997
|
}
|
|
3998
3998
|
)
|
|
3999
3999
|
] }) : /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
4000
|
-
bookingError === "SLOT_TAKEN" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4000
|
+
bookingError === "SLOT_TAKEN" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2V6FCVULcjs.Alert, { variant: "warning", className: "mx-[var(--spacing-system-m)] mt-[var(--spacing-system-m)] w-auto", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2V6FCVULcjs.AlertDescription, { children: "That time was just taken \u2014 pick another slot below. (If you already submitted, check your email for a confirmation before rebooking.)" }) }),
|
|
4001
4001
|
!coldStart && (!timezone || durationMs == null) && durations.length === 0 && !isFetchingAvailability ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk63A4GZMBcjs.cn.call(void 0, MODAL_STEP_CLASS, "items-start gap-[var(--spacing-system-m)]"), children: [
|
|
4002
4002
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-ods-text-secondary text-h6", children: "No call times are published right now." }),
|
|
4003
4003
|
escapeHatch
|
|
@@ -4128,10 +4128,10 @@ function HubSpotMeetingScheduler({
|
|
|
4128
4128
|
durations.length > 0
|
|
4129
4129
|
) : durationMs != null && selectedSlot != null && timezone) ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk63A4GZMBcjs.cn.call(void 0, stepPanelClass, "gap-[var(--spacing-system-m)]"), children: [
|
|
4130
4130
|
selectedSlot != null && durationMs != null && timezone != null && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "p", { className: "text-ods-text-primary text-h4", children: [
|
|
4131
|
-
|
|
4131
|
+
_chunkW7OFAROYcjs.formatDateWithTimezone.call(void 0, selectedSlot, timezone, "weekdayDateTimeZoned", { viewerLocale: true }),
|
|
4132
4132
|
" \xB7",
|
|
4133
4133
|
" ",
|
|
4134
|
-
|
|
4134
|
+
_chunkW7OFAROYcjs.formatDurationCompact.call(void 0, durationMs / 1e3)
|
|
4135
4135
|
] }),
|
|
4136
4136
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4137
4137
|
DetailsForm,
|
|
@@ -4155,11 +4155,11 @@ function HubSpotMeetingScheduler({
|
|
|
4155
4155
|
)
|
|
4156
4156
|
] }) : /* @__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: [
|
|
4157
4157
|
bookingError === "SLOT_TAKEN" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4158
|
-
|
|
4158
|
+
_chunk2V6FCVULcjs.Alert,
|
|
4159
4159
|
{
|
|
4160
4160
|
variant: "warning",
|
|
4161
4161
|
className: "mx-[var(--spacing-system-l)] mt-[var(--spacing-system-l)] w-auto content-lg:m-0 content-lg:w-full",
|
|
4162
|
-
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4162
|
+
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2V6FCVULcjs.AlertDescription, { children: "That time was just taken \u2014 pick another slot below. (If you already submitted, check your email for a confirmation before rebooking.)" })
|
|
4163
4163
|
}
|
|
4164
4164
|
),
|
|
4165
4165
|
(!timezone || durationMs == null) && durations.length === 0 && (!isFetchingAvailability || formOnly) ? (
|
|
@@ -4243,10 +4243,10 @@ function MeetingSchedulerModal({
|
|
|
4243
4243
|
emptyMessage = "No calls can be booked right now.",
|
|
4244
4244
|
className
|
|
4245
4245
|
}) {
|
|
4246
|
-
const { toast } =
|
|
4247
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
4248
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4249
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4246
|
+
const { toast } = _chunkFNQWL4W4cjs.useToast.call(void 0, );
|
|
4247
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk3W4ASAXNcjs.Modal, { isOpen, onClose, className: _chunk63A4GZMBcjs.cn.call(void 0, "md:max-w-[600px]", className), children: [
|
|
4248
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3W4ASAXNcjs.ModalHeader, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3W4ASAXNcjs.ModalTitle, { children: title }) }),
|
|
4249
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3W4ASAXNcjs.ModalContent, { className: "flex flex-col", children: link || loading ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk63A4GZMBcjs.LoadingWhen, { loading: !link, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4250
4250
|
HubSpotMeetingScheduler,
|
|
4251
4251
|
{
|
|
4252
4252
|
layout: "modal",
|
|
@@ -4256,7 +4256,7 @@ function MeetingSchedulerModal({
|
|
|
4256
4256
|
fallbackUrl: _optionalChain([link, 'optionalAccess', _69 => _69.link]),
|
|
4257
4257
|
onBack: onClose,
|
|
4258
4258
|
onBooked: (booking) => {
|
|
4259
|
-
const when =
|
|
4259
|
+
const when = _chunkW7OFAROYcjs.formatDateWithTimezone.call(void 0, booking.startTimeMs, _chunkW7OFAROYcjs.VIEWER_TIMEZONE, "weekdayDateTimeZoned", {
|
|
4260
4260
|
viewerLocale: true
|
|
4261
4261
|
});
|
|
4262
4262
|
toast({
|