@flamingo-stack/openframe-frontend-core 0.0.838 → 0.0.840
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-JFR3OFE6.cjs → chunk-275AQ6LC.cjs} +6 -6
- package/dist/{chunk-5BM7X4GA.cjs → chunk-5GBLXY5F.cjs} +2 -2
- package/dist/{chunk-5L3UKDC6.cjs → chunk-6LDL3UZE.cjs} +9 -9
- package/dist/{chunk-SWMUW3RR.cjs → chunk-744JXTDP.cjs} +19 -19
- package/dist/{chunk-46LATWQR.cjs → chunk-7WKRMJI6.cjs} +5 -5
- package/dist/{chunk-2X5LYDNA.cjs → chunk-AT6D7BAZ.cjs} +5 -5
- package/dist/{chunk-C4OQIYGW.cjs → chunk-CCRXBFNL.cjs} +8 -8
- package/dist/{chunk-LC65AC6M.cjs → chunk-COWMXUHN.cjs} +2 -0
- package/dist/{chunk-5E4YEHHO.cjs → chunk-DGY5KEPY.cjs} +55 -55
- package/dist/{chunk-B4THEQOW.cjs → chunk-DYDQLS2R.cjs} +744 -561
- package/dist/{chunk-LWMWY3JO.cjs → chunk-E7M54JWW.cjs} +14 -14
- package/dist/{chunk-Z7A7IZWL.cjs → chunk-EV6BPF47.cjs} +236 -210
- package/dist/{chunk-7XRFAHJF.cjs → chunk-FHI4I3TQ.cjs} +9 -9
- package/dist/{chunk-ZABZIM2Y.cjs → chunk-FRL2ZN4O.cjs} +3 -3
- package/dist/{chunk-7Z536SPR.cjs → chunk-FW7RKWPY.cjs} +15 -1
- package/dist/{chunk-U4MJ2Z4V.cjs → chunk-GMK4JGC2.cjs} +46 -46
- package/dist/{chunk-NV5AHL4G.cjs → chunk-GUKFMMDZ.cjs} +3 -3
- package/dist/{chunk-JI34QKPJ.cjs → chunk-HXTZZE3R.cjs} +253 -131
- package/dist/{chunk-MMPMQUQM.cjs → chunk-IELPVUPR.cjs} +18 -18
- package/dist/{chunk-64PF3UC7.cjs → chunk-INBFKUZA.cjs} +17 -17
- package/dist/{chunk-APOMNC7H.cjs → chunk-IUDBG3HJ.cjs} +3 -3
- package/dist/{chunk-4JHO2NVI.cjs → chunk-J2IXYCEH.cjs} +26 -10
- package/dist/{chunk-V322TUBY.cjs → chunk-JM2XA7VY.cjs} +28 -28
- package/dist/{chunk-GPXKG34G.cjs → chunk-JUEAZCD6.cjs} +46 -46
- package/dist/{chunk-2QAUQPGC.cjs → chunk-MYAPG3FQ.cjs} +21 -21
- package/dist/{chunk-GRHF5SWL.cjs → chunk-NFNSPLGC.cjs} +3 -3
- package/dist/{chunk-4TUHHKLR.cjs → chunk-Q6WUHYOG.cjs} +72 -72
- package/dist/{chunk-H3WTYAVR.cjs → chunk-RSJYTQEA.cjs} +30 -30
- package/dist/{chunk-MG3HJIGG.cjs → chunk-UAI4VMEF.cjs} +4 -4
- package/dist/{chunk-S5RMRQKT.cjs → chunk-UZPYYHF5.cjs} +18 -18
- package/dist/{chunk-TMD55O5U.cjs → chunk-VBH2RCFM.cjs} +73 -73
- package/dist/{chunk-FNNDGOR3.cjs → chunk-WCK5T3UD.cjs} +43 -43
- package/dist/{chunk-TRZEFT2N.cjs → chunk-WI7EXAZT.cjs} +9 -5
- package/dist/{chunk-7QNGILIY.cjs → chunk-Z35PL3UR.cjs} +32 -32
- package/dist/{chunk-ENK75WN4.cjs → chunk-ZAO5SYBJ.cjs} +4 -4
- package/dist/{cloud-tenants-GLPDB2F5.cjs → cloud-tenants-PV63RZ73.cjs} +19 -19
- package/dist/components/case-studies/index.cjs +33 -33
- package/dist/components/chat/chat-nav-sidebar.d.ts.map +1 -1
- package/dist/components/chat/chat-nav-sidebar.js +17 -3
- package/dist/components/chat/index.cjs +13 -13
- package/dist/components/contact/index.cjs +20 -20
- package/dist/components/docs/index.cjs +23 -23
- package/dist/components/embeds/index.cjs +20 -20
- package/dist/components/faq/index.cjs +21 -21
- package/dist/components/features/command-box.d.ts.map +1 -1
- package/dist/components/features/command-box.js +4 -23
- package/dist/components/features/index.cjs +29 -19
- package/dist/components/features/software/index.d.ts +1 -0
- package/dist/components/features/software/index.d.ts.map +1 -1
- package/dist/components/features/software/index.js +12 -0
- package/dist/components/features/software/software-action-form.d.ts +9 -1
- package/dist/components/features/software/software-action-form.d.ts.map +1 -1
- package/dist/components/features/software/software-action-form.js +18 -1
- package/dist/components/features/software/update-settings-fields.d.ts +43 -0
- package/dist/components/features/software/update-settings-fields.d.ts.map +1 -0
- package/dist/components/features/software/update-settings-fields.js +202 -0
- package/dist/components/help-center-pages/download-apps-page.d.ts +1 -1
- package/dist/components/help-center-pages/download-apps-page.d.ts.map +1 -1
- package/dist/components/help-center-pages/download-apps-page.js +2 -3
- package/dist/components/help-center-pages/index.cjs +122 -123
- package/dist/components/index.cjs +86 -76
- package/dist/components/meeting-scheduler/index.cjs +82 -82
- package/dist/components/navigation/account-popover.d.ts.map +1 -1
- package/dist/components/navigation/account-popover.js +26 -2
- package/dist/components/navigation/app-layout-side-panel.d.ts.map +1 -1
- package/dist/components/navigation/app-layout-side-panel.js +2 -9
- package/dist/components/navigation/index.cjs +22 -22
- package/dist/components/navigation/navigation-sidebar-grouped.d.ts.map +1 -1
- package/dist/components/navigation/navigation-sidebar-grouped.js +30 -6
- package/dist/components/navigation/navigation-sidebar-item.d.ts.map +1 -1
- package/dist/components/navigation/navigation-sidebar-item.js +14 -1
- package/dist/components/navigation/navigation-sidebar.d.ts.map +1 -1
- package/dist/components/navigation/navigation-sidebar.js +72 -3
- package/dist/components/onboarding-guides/index.cjs +22 -22
- package/dist/components/product-demo/fixtures/software-update.d.ts +2 -0
- package/dist/components/product-demo/fixtures/software-update.d.ts.map +1 -1
- package/dist/components/product-demo/fixtures/software-update.js +3 -2
- package/dist/components/product-demo/index.cjs +30 -30
- package/dist/components/related-content/index.cjs +8 -8
- package/dist/components/tickets/index.cjs +24 -24
- package/dist/components/ui/index.cjs +19 -19
- package/dist/components/ui/panel-resize-handle.d.ts +27 -6
- package/dist/components/ui/panel-resize-handle.d.ts.map +1 -1
- package/dist/components/ui/panel-resize-handle.js +27 -3
- package/dist/{devices-GHPW5WCO.cjs → devices-VECG5JNC.cjs} +20 -20
- package/dist/{embeddable-chat-RBC7F4TL.cjs → embeddable-chat-VRYAQQF6.cjs} +90 -90
- package/dist/hooks/index.cjs +11 -7
- package/dist/hooks/ui/index.d.ts +1 -0
- package/dist/hooks/ui/index.d.ts.map +1 -1
- package/dist/hooks/ui/index.js +1 -0
- package/dist/hooks/ui/use-clipped-label-tooltip.d.ts +14 -0
- package/dist/hooks/ui/use-clipped-label-tooltip.d.ts.map +1 -0
- package/dist/hooks/ui/use-clipped-label-tooltip.js +13 -0
- package/dist/hooks/ui/use-is-truncated.d.ts.map +1 -1
- package/dist/hooks/ui/use-is-truncated.js +1 -0
- package/dist/hooks/ui/use-media-query.d.ts.map +1 -1
- package/dist/hooks/ui/use-media-query.js +1 -0
- package/dist/hooks/ui/use-resizable-panel-size.d.ts +1 -0
- package/dist/hooks/ui/use-resizable-panel-size.d.ts.map +1 -1
- package/dist/hooks/ui/use-resizable-panel-size.js +5 -1
- package/dist/index.cjs +38 -24
- package/dist/{knowledge-4TOSY2S5.cjs → knowledge-YJSDJIXT.cjs} +20 -20
- package/dist/{logs-MUODFY6N.cjs → logs-42JG3NZ5.cjs} +26 -26
- package/dist/{policies-TJHO3VLE.cjs → policies-D4QNVJ26.cjs} +23 -23
- package/dist/{remote-session-CN3G7JNR.cjs → remote-session-EE6477O3.cjs} +10 -10
- package/dist/{scripts-X5CMYE2V.cjs → scripts-4VFYBXBE.cjs} +26 -26
- package/dist/{software-update-2UZKHTYM.cjs → software-update-OSDZQ5CP.cjs} +25 -25
- package/dist/{tickets-board-PLYD2NSY.cjs → tickets-board-44HO3LR4.cjs} +10 -10
- package/dist/types/navigation.d.ts +36 -0
- package/dist/types/navigation.d.ts.map +1 -1
- package/dist/utils/notifications.cjs +2 -0
- package/dist/utils/notifications.d.ts +1 -1
- package/dist/utils/notifications.d.ts.map +1 -1
- package/dist/utils/notifications.js +2 -0
- package/package.json +1 -1
- package/src/components/chat/chat-nav-sidebar.tsx +17 -4
- package/src/components/features/command-box.tsx +17 -19
- package/src/components/features/notifications/notification-category-icon.tsx +1 -1
- package/src/components/features/software/index.ts +11 -0
- package/src/components/features/software/software-action-form.tsx +28 -1
- package/src/components/features/software/update-settings-fields.tsx +265 -0
- package/src/components/help-center-pages/download-apps-page.tsx +4 -5
- package/src/components/navigation/account-popover.tsx +31 -2
- package/src/components/navigation/app-layout-side-panel.tsx +2 -7
- package/src/components/navigation/navigation-sidebar-grouped.tsx +37 -6
- package/src/components/navigation/navigation-sidebar-item.tsx +18 -1
- package/src/components/navigation/navigation-sidebar.tsx +116 -7
- package/src/components/product-demo/fixtures/software-update.ts +2 -2
- package/src/components/ui/panel-resize-handle.tsx +50 -8
- package/src/hooks/ui/index.ts +1 -0
- package/src/hooks/ui/use-clipped-label-tooltip.ts +20 -0
- package/src/hooks/ui/use-is-truncated.ts +2 -0
- package/src/hooks/ui/use-media-query.ts +2 -0
- package/src/hooks/ui/use-resizable-panel-size.ts +7 -1
- package/src/types/navigation.ts +37 -0
- package/src/utils/notifications.ts +2 -0
|
@@ -22,7 +22,7 @@ var _chunkWCOSGDGAcjs = require('../../chunk-WCOSGDGA.cjs');
|
|
|
22
22
|
|
|
23
23
|
|
|
24
24
|
|
|
25
|
-
var
|
|
25
|
+
var _chunkDYDQLS2Rcjs = require('../../chunk-DYDQLS2R.cjs');
|
|
26
26
|
|
|
27
27
|
|
|
28
28
|
|
|
@@ -30,9 +30,9 @@ var _chunkB4THEQOWcjs = require('../../chunk-B4THEQOW.cjs');
|
|
|
30
30
|
|
|
31
31
|
|
|
32
32
|
|
|
33
|
-
var
|
|
34
|
-
require('../../chunk-
|
|
35
|
-
require('../../chunk-
|
|
33
|
+
var _chunkWCK5T3UDcjs = require('../../chunk-WCK5T3UD.cjs');
|
|
34
|
+
require('../../chunk-744JXTDP.cjs');
|
|
35
|
+
require('../../chunk-WI7EXAZT.cjs');
|
|
36
36
|
require('../../chunk-HQQE74RO.cjs');
|
|
37
37
|
require('../../chunk-DEY6XXGO.cjs');
|
|
38
38
|
|
|
@@ -40,8 +40,8 @@ require('../../chunk-DEY6XXGO.cjs');
|
|
|
40
40
|
|
|
41
41
|
|
|
42
42
|
|
|
43
|
-
var
|
|
44
|
-
require('../../chunk-
|
|
43
|
+
var _chunkE7M54JWWcjs = require('../../chunk-E7M54JWW.cjs');
|
|
44
|
+
require('../../chunk-IUDBG3HJ.cjs');
|
|
45
45
|
require('../../chunk-24I6RFVU.cjs');
|
|
46
46
|
require('../../chunk-MZ4KBSH7.cjs');
|
|
47
47
|
|
|
@@ -50,18 +50,18 @@ var _chunk5SZ4ILU3cjs = require('../../chunk-5SZ4ILU3.cjs');
|
|
|
50
50
|
|
|
51
51
|
|
|
52
52
|
|
|
53
|
-
var
|
|
53
|
+
var _chunkDGY5KEPYcjs = require('../../chunk-DGY5KEPY.cjs');
|
|
54
54
|
require('../../chunk-OT6P57ZS.cjs');
|
|
55
55
|
|
|
56
56
|
|
|
57
|
-
var
|
|
57
|
+
var _chunkEV6BPF47cjs = require('../../chunk-EV6BPF47.cjs');
|
|
58
58
|
|
|
59
59
|
|
|
60
60
|
|
|
61
61
|
|
|
62
62
|
|
|
63
|
-
var
|
|
64
|
-
require('../../chunk-
|
|
63
|
+
var _chunkJ2IXYCEHcjs = require('../../chunk-J2IXYCEH.cjs');
|
|
64
|
+
require('../../chunk-6LDL3UZE.cjs');
|
|
65
65
|
require('../../chunk-YJZ7R3W5.cjs');
|
|
66
66
|
require('../../chunk-6CZVQ72C.cjs');
|
|
67
67
|
require('../../chunk-46547WQW.cjs');
|
|
@@ -1856,8 +1856,8 @@ require('../../chunk-XIBCMGBW.cjs');
|
|
|
1856
1856
|
|
|
1857
1857
|
|
|
1858
1858
|
var _chunkHLJXCOMAcjs = require('../../chunk-HLJXCOMA.cjs');
|
|
1859
|
-
require('../../chunk-
|
|
1860
|
-
require('../../chunk-
|
|
1859
|
+
require('../../chunk-FRL2ZN4O.cjs');
|
|
1860
|
+
require('../../chunk-FW7RKWPY.cjs');
|
|
1861
1861
|
require('../../chunk-BUEEQD3G.cjs');
|
|
1862
1862
|
require('../../chunk-JKX2C3I2.cjs');
|
|
1863
1863
|
require('../../chunk-WWUSFOJ7.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-CCRXBFNL.cjs');
|
|
1869
|
+
require('../../chunk-RSJYTQEA.cjs');
|
|
1870
1870
|
|
|
1871
1871
|
|
|
1872
|
-
var
|
|
1872
|
+
var _chunk5GBLXY5Fcjs = require('../../chunk-5GBLXY5F.cjs');
|
|
1873
1873
|
|
|
1874
1874
|
|
|
1875
1875
|
|
|
@@ -1877,7 +1877,7 @@ var _chunk5BM7X4GAcjs = require('../../chunk-5BM7X4GA.cjs');
|
|
|
1877
1877
|
|
|
1878
1878
|
|
|
1879
1879
|
|
|
1880
|
-
var
|
|
1880
|
+
var _chunkNFNSPLGCcjs = require('../../chunk-NFNSPLGC.cjs');
|
|
1881
1881
|
|
|
1882
1882
|
|
|
1883
1883
|
var _chunkTD4CC4KVcjs = require('../../chunk-TD4CC4KV.cjs');
|
|
@@ -1893,8 +1893,8 @@ require('../../chunk-RUHKTWGB.cjs');
|
|
|
1893
1893
|
|
|
1894
1894
|
|
|
1895
1895
|
var _chunkBLH2SFOOcjs = require('../../chunk-BLH2SFOO.cjs');
|
|
1896
|
-
require('../../chunk-
|
|
1897
|
-
require('../../chunk-
|
|
1896
|
+
require('../../chunk-UAI4VMEF.cjs');
|
|
1897
|
+
require('../../chunk-COWMXUHN.cjs');
|
|
1898
1898
|
require('../../chunk-YSDB6HGQ.cjs');
|
|
1899
1899
|
require('../../chunk-APNONOHY.cjs');
|
|
1900
1900
|
|
|
@@ -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(_chunkDGY5KEPYcjs.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, _chunkNFNSPLGCcjs.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, _chunkNFNSPLGCcjs.Tag, { label: "", loading: true, ...LINE_TAG_PROPS, className: LOADING_LINE_CLASS }) : item ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkNFNSPLGCcjs.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
|
)
|
|
@@ -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
|
+
_chunkDYDQLS2Rcjs.Textarea,
|
|
2415
2415
|
{
|
|
2416
2416
|
id,
|
|
2417
2417
|
required: field.required,
|
|
@@ -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, _chunkWCK5T3UDcjs.Select, { value: _nullishCoalesce(rhf.value, () => ( "")), onValueChange: rhf.onChange, children: [
|
|
2471
2471
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2472
|
-
|
|
2472
|
+
_chunkWCK5T3UDcjs.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, _chunkWCK5T3UDcjs.SelectValue, { placeholder: "Select\u2026" })
|
|
2479
2479
|
}
|
|
2480
2480
|
),
|
|
2481
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2481
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkWCK5T3UDcjs.SelectContent, { children: (_nullishCoalesce(field.options, () => ( []))).map((opt) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkWCK5T3UDcjs.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
|
+
_chunkDYDQLS2Rcjs.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, _chunkDYDQLS2Rcjs.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
|
}
|
|
@@ -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
|
+
_chunkDYDQLS2Rcjs.ToggleGroup,
|
|
2573
2573
|
{
|
|
2574
2574
|
id,
|
|
2575
2575
|
type: "single",
|
|
@@ -2584,7 +2584,7 @@ var chipsControl = ({ field, id, registerName, error, control }) => /* @__PURE__
|
|
|
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, _chunkDYDQLS2Rcjs.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 = _chunkE7M54JWWcjs.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 } = _chunkE7M54JWWcjs.useToast.call(void 0, );
|
|
2733
2733
|
const onInvalid = () => {
|
|
2734
2734
|
if (deniedEmailDomains && emailDomainDenied(getValues("email"), deniedEmailDomains)) {
|
|
2735
2735
|
toast({
|
|
@@ -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, ..._chunkDGY5KEPYcjs.HUBSPOT_DO_NOT_COLLECT_FORM_PROPS, children: [
|
|
2823
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDYDQLS2Rcjs.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
|
+
_chunkDYDQLS2Rcjs.CheckboxBlock,
|
|
2838
2838
|
{
|
|
2839
2839
|
id: "ms-host-consent",
|
|
2840
2840
|
checked: consented,
|
|
@@ -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
|
+
_chunkDYDQLS2Rcjs.CheckboxBlock,
|
|
2873
2873
|
{
|
|
2874
2874
|
id: `ms-consent-${box.communicationTypeId}`,
|
|
2875
2875
|
checked: _nullishCoalesce(_optionalChain([current, 'optionalAccess', _46 => _46.consented]), () => ( false)),
|
|
@@ -2922,10 +2922,10 @@ function BookingFormPending({
|
|
|
2922
2922
|
!fieldRows && // An empty label keeps the field's own frame (`FieldWrapper` draws no label for it); the bar stands for it.
|
|
2923
2923
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkSWF6TNZ3cjs.FieldWrapper, { label: "", children: [
|
|
2924
2924
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3TOWCFIKcjs.TextLineSkeleton, { type: "h6", className: "mb-1 w-40" }),
|
|
2925
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2925
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDYDQLS2Rcjs.Textarea, { tabIndex: -1 })
|
|
2926
2926
|
] }),
|
|
2927
2927
|
consent && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2928
|
-
|
|
2928
|
+
_chunkDYDQLS2Rcjs.CheckboxBlock,
|
|
2929
2929
|
{
|
|
2930
2930
|
id: consentId,
|
|
2931
2931
|
checked: false,
|
|
@@ -2976,7 +2976,7 @@ function FieldSkeleton({
|
|
|
2976
2976
|
// An empty label keeps the field's own frame; a read label is the bar under it.
|
|
2977
2977
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkSWF6TNZ3cjs.FieldWrapper, { label: _nullishCoalesce(label, () => ( "")), required: _optionalChain([builtIn, 'optionalAccess', _50 => _50.required]), className, children: [
|
|
2978
2978
|
label === void 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3TOWCFIKcjs.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, _chunk3TOWCFIKcjs.UnifiedSkeleton, { variant: "default", className: _chunk63A4GZMBcjs.cn.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, _chunk3TOWCFIKcjs.UnifiedSkeleton, { variant: "default", className: _chunk63A4GZMBcjs.cn.call(void 0, _chunkDYDQLS2Rcjs.TOGGLE_SIZE_CLASS.default, "w-24 rounded-md") }) }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkSWF6TNZ3cjs.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 = _chunkNFNSPLGCcjs.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
|
+
_chunkNFNSPLGCcjs.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, _chunk5GBLXY5Fcjs.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
|
+
_chunkNFNSPLGCcjs.SquareAvatar,
|
|
3025
3025
|
{
|
|
3026
3026
|
variant: "round",
|
|
3027
3027
|
size: "sm",
|
|
@@ -3038,7 +3038,7 @@ 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, _chunkNFNSPLGCcjs.SquareAvatar, { loading: true, variant: "round", size: "sm" }),
|
|
3042
3042
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: HOST_TEXT_CLASS, children: [
|
|
3043
3043
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3TOWCFIKcjs.TextLineSkeleton, { type: "h4", className: "w-32" }),
|
|
3044
3044
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3TOWCFIKcjs.TextLineSkeleton, { type: "h6", className: "w-24" })
|
|
@@ -3069,7 +3069,7 @@ 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, _chunkWCK5T3UDcjs.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: [
|
|
@@ -3085,7 +3085,7 @@ function ContextPanelSkeleton({
|
|
|
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, _chunkDYDQLS2Rcjs.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, _chunkWCK5T3UDcjs.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
|
+
_chunkNFNSPLGCcjs.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: _chunkNFNSPLGCcjs.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
|
+
_chunkDYDQLS2Rcjs.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: _chunkNFNSPLGCcjs.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
|
+
_chunkNFNSPLGCcjs.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
|
+
_chunkDYDQLS2Rcjs.TimezoneSelect,
|
|
3225
3225
|
{
|
|
3226
3226
|
value: timezone,
|
|
3227
3227
|
loading: !timezone,
|
|
@@ -3242,7 +3242,7 @@ function SchedulerModalHeaderSkeleton({ showTimezone = true } = {}) {
|
|
|
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, _chunkDYDQLS2Rcjs.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 _chunkNFNSPLGCcjs.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 _chunkNFNSPLGCcjs.formatDateWithTimezone.call(void 0, month, _chunkNFNSPLGCcjs.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() + _chunkDGY5KEPYcjs.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
|
+
_chunkDYDQLS2Rcjs.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(_chunkDGY5KEPYcjs.MAX_MONTH_OFFSET, offset)));
|
|
3339
3339
|
},
|
|
3340
3340
|
fromDate: startMonth,
|
|
3341
3341
|
toDate: endMonth,
|
|
@@ -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: _chunkNFNSPLGCcjs.formatDateWithTimezone.call(void 0, dateFromDayKey(selectedDay), _chunkNFNSPLGCcjs.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 < _chunkDGY5KEPYcjs.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 = _chunkEV6BPF47cjs.useIsHydrated.call(void 0, );
|
|
3507
3507
|
return _react.useMemo.call(void 0, () => {
|
|
3508
3508
|
if (!hydrated || ms == null) return null;
|
|
3509
|
-
return
|
|
3509
|
+
return _chunkNFNSPLGCcjs.formatDateWithTimezone.call(void 0, ms, _chunkNFNSPLGCcjs.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) => _chunkNFNSPLGCcjs.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,
|
|
@@ -3543,7 +3543,7 @@ function DirectoryRow({
|
|
|
3543
3543
|
subtitle && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "truncate text-ods-text-secondary text-h6", children: subtitle })
|
|
3544
3544
|
] }),
|
|
3545
3545
|
audienceLabel && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkTD4CC4KVcjs.StatusBadge, { text: `For ${audienceLabel}`, singleLine: true, className: "hidden shrink-0 content-sm:inline-flex" }),
|
|
3546
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3546
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5GBLXY5Fcjs.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, () => ( " ")) })
|
|
@@ -3562,7 +3562,7 @@ function MeetingSchedulerDirectoryRowSkeleton(props = {}) {
|
|
|
3562
3562
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3TOWCFIKcjs.TextLineSkeleton, { type: "h6", className: "w-1/3" })
|
|
3563
3563
|
] }),
|
|
3564
3564
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3TOWCFIKcjs.UnifiedSkeleton, { className: "hidden h-6 w-28 shrink-0 content-sm:block" }),
|
|
3565
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3565
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5GBLXY5Fcjs.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
3568
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3TOWCFIKcjs.TextLineSkeleton, { type: "h6", className: "w-32" })
|
|
@@ -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 = _chunkEV6BPF47cjs.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 } = _chunkE7M54JWWcjs.useHumanitySignals.call(void 0, );
|
|
3831
|
+
const { toast } = _chunkE7M54JWWcjs.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
|
+
_chunkE7M54JWWcjs.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 ? `${_chunkNFNSPLGCcjs.formatDateWithTimezone.call(void 0, selectedSlot, timezone, "weekdayDateTimeZoned", { viewerLocale: true })} \xB7 ${_chunkNFNSPLGCcjs.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
|
+
_chunkWCK5T3UDcjs.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, _chunkDYDQLS2Rcjs.Alert, { variant: "warning", className: "mx-[var(--spacing-system-m)] mt-[var(--spacing-system-m)] w-auto", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDYDQLS2Rcjs.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
|
+
_chunkNFNSPLGCcjs.formatDateWithTimezone.call(void 0, selectedSlot, timezone, "weekdayDateTimeZoned", { viewerLocale: true }),
|
|
4132
4132
|
" \xB7",
|
|
4133
4133
|
" ",
|
|
4134
|
-
|
|
4134
|
+
_chunkNFNSPLGCcjs.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
|
+
_chunkDYDQLS2Rcjs.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, _chunkDYDQLS2Rcjs.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 } = _chunkE7M54JWWcjs.useToast.call(void 0, );
|
|
4247
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkJ2IXYCEHcjs.Modal, { isOpen, onClose, className: _chunk63A4GZMBcjs.cn.call(void 0, "md:max-w-[600px]", className), children: [
|
|
4248
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkJ2IXYCEHcjs.ModalHeader, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkJ2IXYCEHcjs.ModalTitle, { children: title }) }),
|
|
4249
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkJ2IXYCEHcjs.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 = _chunkNFNSPLGCcjs.formatDateWithTimezone.call(void 0, booking.startTimeMs, _chunkNFNSPLGCcjs.VIEWER_TIMEZONE, "weekdayDateTimeZoned", {
|
|
4260
4260
|
viewerLocale: true
|
|
4261
4261
|
});
|
|
4262
4262
|
toast({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"account-popover.d.ts","sourceRoot":"","sources":["../../../src/components/navigation/account-popover.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"account-popover.d.ts","sourceRoot":"","sources":["../../../src/components/navigation/account-popover.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AASvC,kFAAkF;AAClF,MAAM,WAAW,kBAAkB;IACjC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,iFAAiF;IACjF,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,+FAA+F;IAC/F,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;IACtB,mFAAmF;IACnF,IAAI,CAAC,EAAE,SAAS,GAAG,QAAQ,CAAC;IAC5B,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,wCAAwC;AACxC,MAAM,WAAW,qBAAqB;IACpC,IAAI,EAAE,SAAS,CAAC;IAChB,EAAE,EAAE,MAAM,CAAC;CACZ;AAED,MAAM,MAAM,mBAAmB,GAAG,kBAAkB,GAAG,qBAAqB,CAAC;AAE7E,MAAM,WAAW,mBAAmB;IAClC,qEAAqE;IACrE,IAAI,EAAE,MAAM,CAAC;IACb,+CAA+C;IAC/C,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,iEAAiE;IACjE,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,2EAA2E;IAC3E,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,KAAK,EAAE,mBAAmB,EAAE,CAAC;IAC7B;;;;;;OAMG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,gFAAgF;IAChF,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;IACvC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,mCAAmC;IACnC,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AA0CD;;;;;;;;GAQG;AACH,wBAAgB,cAAc,CAAC,EAC7B,IAAI,EACJ,KAAK,EACL,QAAQ,EACR,SAAS,EACT,KAAK,EACL,SAAiB,EACjB,IAAI,EAAE,QAAQ,EACd,YAAY,EACZ,QAAgB,EAChB,SAAS,GACV,EAAE,mBAAmB,+BAoGrB"}
|