@flamingo-stack/openframe-frontend-core 0.0.751 → 0.0.753
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-FHT7SMA7.cjs → chunk-35BJY5RR.cjs} +47 -47
- package/dist/{chunk-ALPRQ3ZX.cjs → chunk-3GG3QAPT.cjs} +15 -15
- package/dist/{chunk-34TWK3JE.cjs → chunk-5E6JHOGX.cjs} +3 -3
- package/dist/{chunk-OFO75R2O.cjs → chunk-7Z4EQOIX.cjs} +174 -174
- package/dist/{chunk-C6LPOYDM.cjs → chunk-AG4HR6Z6.cjs} +8 -8
- package/dist/{chunk-XJ3J4UIS.cjs → chunk-B27XV2TC.cjs} +19 -19
- package/dist/{chunk-MJFTWHV6.cjs → chunk-C6JHDRK3.cjs} +6 -6
- package/dist/{chunk-2YXOD2KL.cjs → chunk-H3RYUTND.cjs} +5 -0
- package/dist/{chunk-53I4YHRT.cjs → chunk-ITQZK3UT.cjs} +3 -3
- package/dist/{chunk-H52GKJ36.cjs → chunk-J3E5UN2O.cjs} +19 -19
- package/dist/{chunk-5WC535NJ.cjs → chunk-JLAYELWS.cjs} +40 -40
- package/dist/{chunk-UGCRLRCT.cjs → chunk-NO5UJLLQ.cjs} +2 -5
- package/dist/{chunk-5P7WBA2U.cjs → chunk-QXQHCX2R.cjs} +4 -4
- package/dist/{chunk-ESRA7NUI.cjs → chunk-R45NJ5ZA.cjs} +90 -90
- package/dist/{chunk-CVBHB4OZ.cjs → chunk-RGYLC3US.cjs} +7 -7
- package/dist/{chunk-TPH4SRR2.cjs → chunk-SDF5UUTE.cjs} +800 -659
- package/dist/{chunk-3TELPOVH.cjs → chunk-T4BBZ5ST.cjs} +2 -2
- package/dist/{chunk-CLAJIQ7E.cjs → chunk-UNRNLSG4.cjs} +19 -19
- package/dist/{chunk-NOUROZYH.cjs → chunk-UVTJT5BK.cjs} +24 -24
- package/dist/{chunk-77IKUBSH.cjs → chunk-W77VPNBJ.cjs} +12 -12
- package/dist/{chunk-DGEB5GUZ.cjs → chunk-WBOHLXFC.cjs} +2 -2
- package/dist/{chunk-X4LAMJHD.cjs → chunk-WIT36ZTN.cjs} +113 -113
- package/dist/{chunk-QOONZMSQ.cjs → chunk-XSOGT6DF.cjs} +28 -28
- package/dist/{chunk-LIGDPFDM.cjs → chunk-XW6WSW36.cjs} +771 -771
- package/dist/{chunk-4WNBVNGP.cjs → chunk-Y7AZCDLZ.cjs} +20 -20
- package/dist/{chunk-SDOCZTST.cjs → chunk-Z6TUOE6L.cjs} +41 -41
- package/dist/{chunk-RVLQHSID.cjs → chunk-ZGADZHLD.cjs} +101 -101
- package/dist/{chunk-MU7FFN6M.cjs → chunk-ZJ77IOMY.cjs} +83 -83
- package/dist/{cloud-tenants-JDPC2DYF.cjs → cloud-tenants-7LTS4DAP.cjs} +11 -11
- package/dist/components/case-studies/index.cjs +24 -24
- package/dist/components/chat/chat-dialog-menu-items.js +6 -6
- package/dist/components/chat/chat-message-enhanced.d.ts.map +1 -1
- package/dist/components/chat/chat-message-enhanced.js +3 -0
- package/dist/components/chat/chat-panel-context.d.ts +3 -0
- package/dist/components/chat/chat-panel-context.d.ts.map +1 -1
- package/dist/components/chat/embeddable-chat.d.ts +20 -0
- package/dist/components/chat/embeddable-chat.d.ts.map +1 -1
- package/dist/components/chat/embeddable-chat.js +78 -8
- package/dist/components/chat/hooks/index.d.ts +1 -0
- package/dist/components/chat/hooks/index.d.ts.map +1 -1
- package/dist/components/chat/hooks/index.js +1 -0
- package/dist/components/chat/hooks/use-what-to-ask.d.ts +69 -0
- package/dist/components/chat/hooks/use-what-to-ask.d.ts.map +1 -0
- package/dist/components/chat/hooks/use-what-to-ask.js +106 -0
- package/dist/components/chat/index.cjs +15 -7
- package/dist/components/chat/index.d.ts +1 -0
- package/dist/components/chat/index.d.ts.map +1 -1
- package/dist/components/chat/index.js +1 -0
- package/dist/components/chat/mingo-chat-header.d.ts +4 -2
- package/dist/components/chat/mingo-chat-header.d.ts.map +1 -1
- package/dist/components/chat/mingo-chat-header.js +7 -2
- package/dist/components/chat/suggestions-display.d.ts +11 -0
- package/dist/components/chat/suggestions-display.d.ts.map +1 -0
- package/dist/components/chat/suggestions-display.js +27 -0
- package/dist/components/chat/types/message.types.d.ts +27 -1
- package/dist/components/chat/types/message.types.d.ts.map +1 -1
- package/dist/components/chat/utils/extract-incomplete-message-state.d.ts.map +1 -1
- package/dist/components/chat/utils/extract-incomplete-message-state.js +2 -0
- package/dist/components/chat/utils/message-segment-accumulator.d.ts.map +1 -1
- package/dist/components/chat/utils/message-segment-accumulator.js +3 -0
- package/dist/components/contact/index.cjs +12 -12
- package/dist/components/docs/index.cjs +15 -15
- package/dist/components/embeds/index.cjs +12 -12
- package/dist/components/faq/index.cjs +13 -13
- package/dist/components/features/index.cjs +11 -11
- package/dist/components/help-center-pages/index.cjs +112 -112
- package/dist/components/index.cjs +69 -61
- package/dist/components/loading/loading-region.d.ts.map +1 -1
- package/dist/components/loading/loading-region.js +2 -5
- package/dist/components/loading/unified-skeleton.d.ts +2 -0
- package/dist/components/loading/unified-skeleton.d.ts.map +1 -1
- package/dist/components/loading/unified-skeleton.js +5 -0
- package/dist/components/meeting-scheduler/index.cjs +72 -72
- package/dist/components/navigation/index.cjs +14 -14
- package/dist/components/onboarding-guides/index.cjs +14 -14
- package/dist/components/product-demo/index.cjs +12 -12
- package/dist/components/related-content/index.cjs +7 -7
- package/dist/components/tickets/index.cjs +17 -17
- package/dist/components/ui/file-manager/index.cjs +30 -30
- package/dist/components/ui/index.cjs +19 -11
- package/dist/{devices-ADQWD37J.cjs → devices-CGDJAYRB.cjs} +12 -12
- package/dist/{embeddable-chat-7YF2JMPS.cjs → embeddable-chat-CMEHSDV7.cjs} +165 -93
- package/dist/index.cjs +23 -15
- package/dist/{knowledge-TNS64EGK.cjs → knowledge-X5I4QJKV.cjs} +12 -12
- package/dist/{logs-754MDDE4.cjs → logs-GDGIRJFI.cjs} +19 -19
- package/dist/{policies-Q23DPIH6.cjs → policies-2UOCENDX.cjs} +15 -15
- package/dist/{remote-session-ZKP2W3IS.cjs → remote-session-57DGC4X3.cjs} +6 -6
- package/dist/{scripts-DCYLK2RZ.cjs → scripts-AS4GEG6L.cjs} +18 -18
- package/dist/{software-update-XCMGUIER.cjs → software-update-ADPUFMFY.cjs} +15 -15
- package/dist/{tickets-board-BNW4AYFL.cjs → tickets-board-EP6L3BSV.cjs} +7 -7
- package/package.json +1 -1
- package/src/components/chat/chat-dialog-menu-items.tsx +6 -6
- package/src/components/chat/chat-message-enhanced.tsx +3 -0
- package/src/components/chat/chat-panel-context.tsx +3 -0
- package/src/components/chat/embeddable-chat.tsx +132 -9
- package/src/components/chat/hooks/index.ts +1 -0
- package/src/components/chat/hooks/use-what-to-ask.ts +203 -0
- package/src/components/chat/index.ts +1 -0
- package/src/components/chat/mingo-chat-header.tsx +11 -4
- package/src/components/chat/suggestions-display.tsx +41 -0
- package/src/components/chat/types/message.types.ts +31 -1
- package/src/components/chat/utils/extract-incomplete-message-state.ts +2 -0
- package/src/components/chat/utils/message-segment-accumulator.ts +4 -0
- package/src/components/loading/loading-region.tsx +4 -9
- package/src/components/loading/unified-skeleton.tsx +13 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"loading-region.d.ts","sourceRoot":"","sources":["../../../src/components/loading/loading-region.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEpE;;;;;;;;;;;GAWG;AACH,MAAM,WAAW,kBAAmB,SAAQ,cAAc,CAAC,WAAW,CAAC;IACrE,qDAAqD;IACrD,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,yHAAyH;IACzH,EAAE,CAAC,EAAE,WAAW,CAAC;IACjB;;;;OAIG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;;OAGG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB;AAED,wBAAgB,aAAa,CAAC,EAC5B,KAAiB,EACjB,EAAE,EAAE,GAAW,EACf,QAAe,EACf,MAAa,EACb,SAAS,EACT,QAAQ,EACR,GAAG,KAAK,EACT,EAAE,kBAAkB,+
|
|
1
|
+
{"version":3,"file":"loading-region.d.ts","sourceRoot":"","sources":["../../../src/components/loading/loading-region.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEpE;;;;;;;;;;;GAWG;AACH,MAAM,WAAW,kBAAmB,SAAQ,cAAc,CAAC,WAAW,CAAC;IACrE,qDAAqD;IACrD,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,yHAAyH;IACzH,EAAE,CAAC,EAAE,WAAW,CAAC;IACjB;;;;OAIG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;;OAGG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB;AAED,wBAAgB,aAAa,CAAC,EAC5B,KAAiB,EACjB,EAAE,EAAE,GAAW,EACf,QAAe,EACf,MAAa,EACb,SAAS,EACT,QAAQ,EACR,GAAG,KAAK,EACT,EAAE,kBAAkB,+BAapB"}
|
|
@@ -9,11 +9,8 @@ function LoadingRegion({
|
|
|
9
9
|
children,
|
|
10
10
|
...props
|
|
11
11
|
}) {
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
}
|
|
15
|
-
return /* @__PURE__ */ jsxs(Tag, { "aria-busy": "true", className, ...props, children: [
|
|
16
|
-
status && /* @__PURE__ */ jsx("span", { role: "status", "aria-live": "polite", className: "sr-only", children: label }),
|
|
12
|
+
return /* @__PURE__ */ jsxs(Tag, { "aria-busy": announce ? "true" : void 0, className, ...props, children: [
|
|
13
|
+
announce && status && /* @__PURE__ */ jsx("span", { role: "status", "aria-live": "polite", className: "sr-only", children: label }),
|
|
17
14
|
children
|
|
18
15
|
] });
|
|
19
16
|
}
|
|
@@ -16,6 +16,8 @@ interface UnifiedSkeletonProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
|
16
16
|
/**
|
|
17
17
|
* The element drawn. `span` keeps the placeholder valid phrasing content where
|
|
18
18
|
* a `div` may not stand (inside a `p`, a heading, a label or an inline card).
|
|
19
|
+
* A span bar whose classes set no base display gets one of its own, capped to
|
|
20
|
+
* its line and centred on it; a caller that sets one gets none of the three.
|
|
19
21
|
*/
|
|
20
22
|
as?: 'div' | 'span';
|
|
21
23
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"unified-skeleton.d.ts","sourceRoot":"","sources":["../../../src/components/loading/unified-skeleton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B,UAAU,oBAAqB,SAAQ,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC;IACzE,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,OAAO,CAAC,EAAE,SAAS,GAAG,MAAM,GAAG,UAAU,GAAG,aAAa,CAAC;IAC1D,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACxB,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACzB;;OAEG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB;;;OAGG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB
|
|
1
|
+
{"version":3,"file":"unified-skeleton.d.ts","sourceRoot":"","sources":["../../../src/components/loading/unified-skeleton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B,UAAU,oBAAqB,SAAQ,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC;IACzE,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,OAAO,CAAC,EAAE,SAAS,GAAG,MAAM,GAAG,UAAU,GAAG,aAAa,CAAC;IAC1D,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACxB,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACzB;;OAEG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB;;;OAGG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB;;;;;OAKG;IACH,EAAE,CAAC,EAAE,KAAK,GAAG,MAAM,CAAC;CACrB;AAED;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAgB,eAAe,CAAC,EAC9B,SAAS,EACT,OAAmB,EACnB,KAAK,EACL,MAAM,EACN,OAAc,EACd,YAAY,EAAE,SAAS,EACvB,EAAE,EAAE,GAAW,EACf,GAAG,KAAK,EACT,EAAE,oBAAoB,qBAmDtB;AAED;;GAEG;AACH,eAAO,MAAM,YAAY;IACvB;;OAEG;uCACgC,IAAI,CAAC,oBAAoB,EAAE,SAAS,CAAC;IAIxE;;OAEG;0CACmC,IAAI,CAAC,oBAAoB,EAAE,SAAS,CAAC;IAI3E;;OAEG;oCAC6B,IAAI,CAAC,oBAAoB,EAAE,SAAS,CAAC;IAIrE;;OAEG;uCACgC,IAAI,CAAC,oBAAoB,EAAE,SAAS,CAAC;CAGzE,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,mBAAmB;IAC9B;;OAEG;sCAC+B,IAAI,CAAC,oBAAoB,EAAE,SAAS,CAAC;IAQvE;;OAEG;qCAC8B,IAAI,CAAC,oBAAoB,EAAE,SAAS,CAAC;IAItE;;OAEG;oCAC6B,IAAI,CAAC,oBAAoB,EAAE,SAAS,CAAC;CAGtE,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,aAAa;IACxB;;OAEG;4CAKA,IAAI,CAAC,oBAAoB,EAAE,SAAS,CAAC,GAAG;QAAE,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,CAAA;KAAE;IAUxE;;;OAGG;yCACkC,IAAI,CAAC,oBAAoB,EAAE,SAAS,CAAC;IAI1E;;OAEG;0CAKA,IAAI,CAAC,oBAAoB,EAAE,SAAS,CAAC,GAAG;QAAE,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,CAAA;KAAE;CASzE,CAAC"}
|
|
@@ -25,6 +25,9 @@ function UnifiedSkeleton({
|
|
|
25
25
|
rectangular: "h-4"
|
|
26
26
|
};
|
|
27
27
|
const sizedByAspect = /(?:^|\s)aspect-/.test(className ?? "");
|
|
28
|
+
const setsDisplay = /(?:^|\s)(?:inline-block|inline-flex|inline-grid|inline|block|flex|grid|contents|hidden)(?=\s|$)/.test(
|
|
29
|
+
className ?? ""
|
|
30
|
+
);
|
|
28
31
|
const style = {
|
|
29
32
|
width,
|
|
30
33
|
height
|
|
@@ -33,6 +36,8 @@ function UnifiedSkeleton({
|
|
|
33
36
|
Tag,
|
|
34
37
|
{
|
|
35
38
|
className: cn(
|
|
39
|
+
// An inline span ignores width and height: without a display of its own the bar draws at 0×0.
|
|
40
|
+
Tag === "span" && !setsDisplay && "inline-block max-w-full align-middle",
|
|
36
41
|
animate ? SKELETON_SURFACE_CLASS : "bg-ods-skeleton",
|
|
37
42
|
variantClasses[variant],
|
|
38
43
|
!height && !style.height && !sizedByAspect && defaultHeights[variant],
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
"use client";
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var _chunkWBOHLXFCcjs = require('../../chunk-WBOHLXFC.cjs');
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _chunk5E6JHOGXcjs = require('../../chunk-5E6JHOGX.cjs');
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
@@ -16,8 +16,8 @@ var _chunk34TWK3JEcjs = require('../../chunk-34TWK3JE.cjs');
|
|
|
16
16
|
|
|
17
17
|
|
|
18
18
|
|
|
19
|
-
var
|
|
20
|
-
require('../../chunk-
|
|
19
|
+
var _chunkXW6WSW36cjs = require('../../chunk-XW6WSW36.cjs');
|
|
20
|
+
require('../../chunk-AG4HR6Z6.cjs');
|
|
21
21
|
require('../../chunk-NTGIQP7O.cjs');
|
|
22
22
|
|
|
23
23
|
|
|
@@ -26,7 +26,7 @@ require('../../chunk-NTGIQP7O.cjs');
|
|
|
26
26
|
|
|
27
27
|
|
|
28
28
|
|
|
29
|
-
var
|
|
29
|
+
var _chunk3GG3QAPTcjs = require('../../chunk-3GG3QAPT.cjs');
|
|
30
30
|
require('../../chunk-HQQE74RO.cjs');
|
|
31
31
|
require('../../chunk-DEY6XXGO.cjs');
|
|
32
32
|
|
|
@@ -39,17 +39,17 @@ require('../../chunk-LU7TD6QS.cjs');
|
|
|
39
39
|
require('../../chunk-24I6RFVU.cjs');
|
|
40
40
|
require('../../chunk-A6P6DHEZ.cjs');
|
|
41
41
|
require('../../chunk-MZ4KBSH7.cjs');
|
|
42
|
-
require('../../chunk-
|
|
42
|
+
require('../../chunk-T4BBZ5ST.cjs');
|
|
43
43
|
|
|
44
44
|
|
|
45
45
|
var _chunkYUMFVQINcjs = require('../../chunk-YUMFVQIN.cjs');
|
|
46
46
|
|
|
47
47
|
|
|
48
48
|
|
|
49
|
-
var
|
|
49
|
+
var _chunkWIT36ZTNcjs = require('../../chunk-WIT36ZTN.cjs');
|
|
50
50
|
|
|
51
51
|
|
|
52
|
-
var
|
|
52
|
+
var _chunkSDF5UUTEcjs = require('../../chunk-SDF5UUTE.cjs');
|
|
53
53
|
require('../../chunk-LVO7FALW.cjs');
|
|
54
54
|
require('../../chunk-3RFQPQ7Z.cjs');
|
|
55
55
|
require('../../chunk-YRULLK7N.cjs');
|
|
@@ -1852,10 +1852,10 @@ require('../../chunk-7DNL734S.cjs');
|
|
|
1852
1852
|
require('../../chunk-WWUSFOJ7.cjs');
|
|
1853
1853
|
require('../../chunk-SKI6NKOE.cjs');
|
|
1854
1854
|
require('../../chunk-EWPR7662.cjs');
|
|
1855
|
-
require('../../chunk-
|
|
1855
|
+
require('../../chunk-B27XV2TC.cjs');
|
|
1856
1856
|
|
|
1857
1857
|
|
|
1858
|
-
var
|
|
1858
|
+
var _chunk7Z4EQOIXcjs = require('../../chunk-7Z4EQOIX.cjs');
|
|
1859
1859
|
require('../../chunk-QYLIHZKZ.cjs');
|
|
1860
1860
|
require('../../chunk-63N4FN5V.cjs');
|
|
1861
1861
|
|
|
@@ -1900,7 +1900,7 @@ require('../../chunk-Z74QE57T.cjs');
|
|
|
1900
1900
|
require('../../chunk-XZJCBIYR.cjs');
|
|
1901
1901
|
|
|
1902
1902
|
|
|
1903
|
-
var
|
|
1903
|
+
var _chunkNO5UJLLQcjs = require('../../chunk-NO5UJLLQ.cjs');
|
|
1904
1904
|
|
|
1905
1905
|
|
|
1906
1906
|
var _chunk2QMBXGMQcjs = require('../../chunk-2QMBXGMQ.cjs');
|
|
@@ -1914,7 +1914,7 @@ require('../../chunk-3LU4UFPS.cjs');
|
|
|
1914
1914
|
require('../../chunk-RB6BSE3O.cjs');
|
|
1915
1915
|
|
|
1916
1916
|
|
|
1917
|
-
var
|
|
1917
|
+
var _chunkH3RYUTNDcjs = require('../../chunk-H3RYUTND.cjs');
|
|
1918
1918
|
|
|
1919
1919
|
|
|
1920
1920
|
var _chunk3ATAYP36cjs = require('../../chunk-3ATAYP36.cjs');
|
|
@@ -2194,7 +2194,7 @@ function useMeetingBooking(options) {
|
|
|
2194
2194
|
const seededOffset = _optionalChain([initialAvailability, 'optionalAccess', _12 => _12.meetingId]) === meetingId ? initialAvailability.monthOffset : void 0;
|
|
2195
2195
|
const [monthOffset, setMonthOffsetState] = _react.useState.call(void 0, _nullishCoalesce(seededOffset, () => ( 0)));
|
|
2196
2196
|
const setMonthOffset = _react.useCallback.call(void 0, (offset) => {
|
|
2197
|
-
setMonthOffsetState(Math.max(0, Math.min(
|
|
2197
|
+
setMonthOffsetState(Math.max(0, Math.min(_chunkWIT36ZTNcjs.MAX_MONTH_OFFSET, offset)));
|
|
2198
2198
|
}, []);
|
|
2199
2199
|
const prevMeetingIdRef = _react.useRef.call(void 0, meetingId);
|
|
2200
2200
|
_react.useLayoutEffect.call(void 0, () => {
|
|
@@ -2324,7 +2324,7 @@ var FIELD_CONTROLS = {
|
|
|
2324
2324
|
}
|
|
2325
2325
|
),
|
|
2326
2326
|
textarea: ({ field, id, registerName, error, register }) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2327
|
-
|
|
2327
|
+
_chunkXW6WSW36cjs.Textarea,
|
|
2328
2328
|
{
|
|
2329
2329
|
id,
|
|
2330
2330
|
required: field.required,
|
|
@@ -2380,18 +2380,18 @@ var FIELD_CONTROLS = {
|
|
|
2380
2380
|
{
|
|
2381
2381
|
control,
|
|
2382
2382
|
name: registerName,
|
|
2383
|
-
render: ({ field: rhf }) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
2383
|
+
render: ({ field: rhf }) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk3GG3QAPTcjs.Select, { value: _nullishCoalesce(rhf.value, () => ( "")), onValueChange: rhf.onChange, children: [
|
|
2384
2384
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2385
|
-
|
|
2385
|
+
_chunk3GG3QAPTcjs.SelectTrigger,
|
|
2386
2386
|
{
|
|
2387
2387
|
id,
|
|
2388
2388
|
"aria-required": field.required || void 0,
|
|
2389
2389
|
"aria-invalid": Boolean(error),
|
|
2390
2390
|
invalid: Boolean(error),
|
|
2391
|
-
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2391
|
+
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3GG3QAPTcjs.SelectValue, { placeholder: "Select\u2026" })
|
|
2392
2392
|
}
|
|
2393
2393
|
),
|
|
2394
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2394
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3GG3QAPTcjs.SelectContent, { children: (_nullishCoalesce(field.options, () => ( []))).map((opt) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3GG3QAPTcjs.SelectItem, { value: opt, children: optionLabel(field, opt) }, opt)) })
|
|
2395
2395
|
] })
|
|
2396
2396
|
}
|
|
2397
2397
|
),
|
|
@@ -2401,14 +2401,14 @@ var FIELD_CONTROLS = {
|
|
|
2401
2401
|
control,
|
|
2402
2402
|
name: registerName,
|
|
2403
2403
|
render: ({ field: rhf }) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2404
|
-
|
|
2404
|
+
_chunkXW6WSW36cjs.RadioGroup,
|
|
2405
2405
|
{
|
|
2406
2406
|
value: _nullishCoalesce(rhf.value, () => ( "")),
|
|
2407
2407
|
onValueChange: rhf.onChange,
|
|
2408
2408
|
"aria-required": field.required || void 0,
|
|
2409
2409
|
"aria-invalid": Boolean(error),
|
|
2410
2410
|
children: (_nullishCoalesce(field.options, () => ( []))).map((opt) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center gap-[var(--spacing-system-xs)]", children: [
|
|
2411
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2411
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXW6WSW36cjs.RadioGroupItem, { id: `${id}-${opt}`, value: opt }),
|
|
2412
2412
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkK6VWTUCHcjs.Label, { htmlFor: `${id}-${opt}`, children: optionLabel(field, opt) })
|
|
2413
2413
|
] }, opt))
|
|
2414
2414
|
}
|
|
@@ -2656,8 +2656,8 @@ function BookingForm({
|
|
|
2656
2656
|
children: _nullishCoalesce(submitLabel, () => ( DEFAULT_SUBMIT_LABEL))
|
|
2657
2657
|
}
|
|
2658
2658
|
);
|
|
2659
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "form", { id: formId, onSubmit: submit, className: FORM_STACK, noValidate: true, ...
|
|
2660
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2659
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "form", { id: formId, onSubmit: submit, className: FORM_STACK, noValidate: true, ..._chunkWIT36ZTNcjs.HUBSPOT_DO_NOT_COLLECT_FORM_PROPS, children: [
|
|
2660
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXW6WSW36cjs.HoneypotField, { ...honeypotInputProps }),
|
|
2661
2661
|
fieldRows ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
2662
2662
|
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("|"))),
|
|
2663
2663
|
[...unplacedBuiltIns, ...unplacedFields].map((field) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _react.Fragment, { children: slotNode(field.name) }, field.name))
|
|
@@ -2670,7 +2670,7 @@ function BookingForm({
|
|
|
2670
2670
|
supportedFields.map((field) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _react.Fragment, { children: renderDeclaredField(field) }, field.name))
|
|
2671
2671
|
] }),
|
|
2672
2672
|
consent && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2673
|
-
|
|
2673
|
+
_chunkXW6WSW36cjs.CheckboxBlock,
|
|
2674
2674
|
{
|
|
2675
2675
|
id: "ms-host-consent",
|
|
2676
2676
|
checked: consented,
|
|
@@ -2705,7 +2705,7 @@ function BookingForm({
|
|
|
2705
2705
|
// same block the waitlist form uses): box + label in one
|
|
2706
2706
|
// bordered row.
|
|
2707
2707
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2708
|
-
|
|
2708
|
+
_chunkXW6WSW36cjs.CheckboxBlock,
|
|
2709
2709
|
{
|
|
2710
2710
|
id: `ms-consent-${box.communicationTypeId}`,
|
|
2711
2711
|
checked: _nullishCoalesce(_optionalChain([current, 'optionalAccess', _34 => _34.consented]), () => ( false)),
|
|
@@ -2738,18 +2738,18 @@ function BookingFormSkeleton({
|
|
|
2738
2738
|
}) {
|
|
2739
2739
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk3ATAYP36cjs.cn.call(void 0, "flex-1", FORM_STACK), children: [
|
|
2740
2740
|
skeletonRows(_nullishCoalesce(fieldRows, () => ( DEFAULT_FIELD_ROWS))).map((row) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: ROW_GRID, children: row.map((slot, slotIndex) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2741
|
-
|
|
2741
|
+
_chunkH3RYUTNDcjs.UnifiedSkeleton,
|
|
2742
2742
|
{
|
|
2743
2743
|
className: _chunk3ATAYP36cjs.cn.call(void 0, FIELD_SKELETON_CLASS, slotColumnClass(row, slot, slotIndex))
|
|
2744
2744
|
},
|
|
2745
2745
|
slot.name
|
|
2746
2746
|
)) }, row.map((s) => s.name).join("|"))),
|
|
2747
|
-
!fieldRows && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2748
|
-
consent && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2747
|
+
!fieldRows && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkH3RYUTNDcjs.UnifiedSkeleton, { className: "h-[7.75rem] w-full" }),
|
|
2748
|
+
consent && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkH3RYUTNDcjs.UnifiedSkeleton, { className: "h-[4.25rem] w-full" }),
|
|
2749
2749
|
footerNote ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: FOOTER_ROW_CLASS, children: [
|
|
2750
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2751
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2752
|
-
] }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: FOOTER_BARE_CLASS, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2750
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkH3RYUTNDcjs.UnifiedSkeleton, { className: "h-5 min-w-40 flex-1" }),
|
|
2751
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkH3RYUTNDcjs.UnifiedSkeleton, { className: _chunk3ATAYP36cjs.cn.call(void 0, "h-12 w-full", SUBMIT_WIDE_CLASS) })
|
|
2752
|
+
] }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: FOOTER_BARE_CLASS, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkH3RYUTNDcjs.UnifiedSkeleton, { className: "h-12 w-40" }) })
|
|
2753
2753
|
] });
|
|
2754
2754
|
}
|
|
2755
2755
|
function normalizeFieldRows(fieldRows, resolves = () => true) {
|
|
@@ -2808,21 +2808,21 @@ function ContextPanelSkeleton({
|
|
|
2808
2808
|
backLabel = "Back"
|
|
2809
2809
|
}) {
|
|
2810
2810
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk3ATAYP36cjs.cn.call(void 0, PANEL_STACK, className), children: [
|
|
2811
|
-
onBack && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2811
|
+
onBack && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3GG3QAPTcjs.BackButton, { label: backLabel, onClick: onBack, className: BACK_BUTTON_CLASS }),
|
|
2812
2812
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: STRIP_BODY, children: [
|
|
2813
2813
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: STRIP_MAIN, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: IDENTITY_ROW, children: [
|
|
2814
2814
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-1 items-center gap-[var(--spacing-system-xs)] content-lg:flex-none", children: [
|
|
2815
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2815
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkH3RYUTNDcjs.UnifiedSkeleton, { className: "h-8 w-8 shrink-0 rounded-full" }),
|
|
2816
2816
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-1 flex-col gap-[var(--spacing-system-xxs)]", children: [
|
|
2817
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2818
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2817
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkH3RYUTNDcjs.UnifiedSkeleton, { className: "h-5 w-32" }),
|
|
2818
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkH3RYUTNDcjs.UnifiedSkeleton, { className: "h-4 w-24" })
|
|
2819
2819
|
] })
|
|
2820
2820
|
] }),
|
|
2821
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2821
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkH3RYUTNDcjs.UnifiedSkeleton, { className: "h-4 w-20 shrink-0" })
|
|
2822
2822
|
] }) }),
|
|
2823
2823
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: STRIP_ASIDE, children: [
|
|
2824
2824
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: FIELD_LABEL_CLASS, children: "Timezone" }),
|
|
2825
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2825
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkH3RYUTNDcjs.UnifiedSkeleton, { className: "h-12 w-full" })
|
|
2826
2826
|
] })
|
|
2827
2827
|
] })
|
|
2828
2828
|
] });
|
|
@@ -2844,7 +2844,7 @@ function SchedulerContextPanel({
|
|
|
2844
2844
|
className
|
|
2845
2845
|
}) {
|
|
2846
2846
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk3ATAYP36cjs.cn.call(void 0, PANEL_STACK, className), children: [
|
|
2847
|
-
onBack && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2847
|
+
onBack && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3GG3QAPTcjs.BackButton, { label: backLabel, onClick: onBack, className: BACK_BUTTON_CLASS }),
|
|
2848
2848
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: STRIP_BODY, children: [
|
|
2849
2849
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: STRIP_MAIN, children: [
|
|
2850
2850
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: IDENTITY_ROW, children: [
|
|
@@ -2906,7 +2906,7 @@ function SchedulerContextPanel({
|
|
|
2906
2906
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk3ATAYP36cjs.cn.call(void 0, STRIP_ASIDE, locked && "content-max-lg:hidden"), children: [
|
|
2907
2907
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: FIELD_LABEL_CLASS, children: "Timezone" }),
|
|
2908
2908
|
timezone ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2909
|
-
|
|
2909
|
+
_chunkXW6WSW36cjs.TimezoneSelect,
|
|
2910
2910
|
{
|
|
2911
2911
|
value: timezone,
|
|
2912
2912
|
disabled,
|
|
@@ -2914,7 +2914,7 @@ function SchedulerContextPanel({
|
|
|
2914
2914
|
if (tz) _optionalChain([onTimezoneChange, 'optionalCall', _35 => _35(tz)]);
|
|
2915
2915
|
}
|
|
2916
2916
|
}
|
|
2917
|
-
) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2917
|
+
) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkH3RYUTNDcjs.UnifiedSkeleton, { className: "h-12 w-full" })
|
|
2918
2918
|
] })
|
|
2919
2919
|
] })
|
|
2920
2920
|
] });
|
|
@@ -2986,7 +2986,7 @@ function SchedulerModalHeader({
|
|
|
2986
2986
|
showTimezone && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk3ATAYP36cjs.cn.call(void 0, ROW_CLASS, "flex flex-col gap-[var(--spacing-system-xxs)]"), children: [
|
|
2987
2987
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: FIELD_LABEL_CLASS2, children: "Timezone" }),
|
|
2988
2988
|
timezone ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2989
|
-
|
|
2989
|
+
_chunkXW6WSW36cjs.TimezoneSelect,
|
|
2990
2990
|
{
|
|
2991
2991
|
value: timezone,
|
|
2992
2992
|
disabled,
|
|
@@ -2994,7 +2994,7 @@ function SchedulerModalHeader({
|
|
|
2994
2994
|
if (tz) _optionalChain([onTimezoneChange, 'optionalCall', _36 => _36(tz)]);
|
|
2995
2995
|
}
|
|
2996
2996
|
}
|
|
2997
|
-
) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2997
|
+
) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkH3RYUTNDcjs.UnifiedSkeleton, { className: "h-12 w-full" })
|
|
2998
2998
|
] })
|
|
2999
2999
|
] });
|
|
3000
3000
|
}
|
|
@@ -3002,17 +3002,17 @@ function SchedulerModalHeaderSkeleton() {
|
|
|
3002
3002
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
3003
3003
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: STRIP_CLASS, children: [
|
|
3004
3004
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center gap-[var(--spacing-system-xs)]", children: [
|
|
3005
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3005
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkH3RYUTNDcjs.UnifiedSkeleton, { className: "h-8 w-8 shrink-0 rounded-full" }),
|
|
3006
3006
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col gap-[var(--spacing-system-xxs)]", children: [
|
|
3007
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3008
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3007
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkH3RYUTNDcjs.UnifiedSkeleton, { className: "h-5 w-32" }),
|
|
3008
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkH3RYUTNDcjs.UnifiedSkeleton, { className: "h-4 w-24" })
|
|
3009
3009
|
] })
|
|
3010
3010
|
] }),
|
|
3011
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3011
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkH3RYUTNDcjs.UnifiedSkeleton, { className: "h-4 w-20 shrink-0" })
|
|
3012
3012
|
] }),
|
|
3013
3013
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk3ATAYP36cjs.cn.call(void 0, ROW_CLASS, "flex flex-col gap-[var(--spacing-system-xxs)]"), children: [
|
|
3014
3014
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: FIELD_LABEL_CLASS2, children: "Timezone" }),
|
|
3015
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3015
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkH3RYUTNDcjs.UnifiedSkeleton, { className: "h-12 w-full" })
|
|
3016
3016
|
] })
|
|
3017
3017
|
] });
|
|
3018
3018
|
}
|
|
@@ -3095,18 +3095,18 @@ var NOOP = () => void 0;
|
|
|
3095
3095
|
function DayCalendar({ monthOffset, onMonthOffsetChange, selectedDay, onSelectDay, slotsByDay }) {
|
|
3096
3096
|
const now = /* @__PURE__ */ new Date();
|
|
3097
3097
|
const startMonth = new Date(now.getFullYear(), now.getMonth(), 1);
|
|
3098
|
-
const endMonth = new Date(now.getFullYear(), now.getMonth() +
|
|
3098
|
+
const endMonth = new Date(now.getFullYear(), now.getMonth() + _chunkWIT36ZTNcjs.MAX_MONTH_OFFSET + 1, 0);
|
|
3099
3099
|
const visibleMonth = new Date(now.getFullYear(), now.getMonth() + monthOffset, 1);
|
|
3100
3100
|
const dayHasNoSlots = _react.useCallback.call(void 0, (day) => !_optionalChain([slotsByDay, 'optionalAccess', _37 => _37.has, 'call', _38 => _38(calendarDayKey(day))]), [slotsByDay]);
|
|
3101
3101
|
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,
|
|
3102
|
-
|
|
3102
|
+
_chunkXW6WSW36cjs.DatePickerCalendar,
|
|
3103
3103
|
{
|
|
3104
3104
|
mode: "single",
|
|
3105
3105
|
bare: true,
|
|
3106
3106
|
month: visibleMonth,
|
|
3107
3107
|
onMonthChange: (month) => {
|
|
3108
3108
|
const offset = (month.getFullYear() - now.getFullYear()) * 12 + (month.getMonth() - now.getMonth());
|
|
3109
|
-
onMonthOffsetChange(Math.max(0, Math.min(
|
|
3109
|
+
onMonthOffsetChange(Math.max(0, Math.min(_chunkWIT36ZTNcjs.MAX_MONTH_OFFSET, offset)));
|
|
3110
3110
|
},
|
|
3111
3111
|
fromDate: startMonth,
|
|
3112
3112
|
toDate: endMonth,
|
|
@@ -3157,10 +3157,10 @@ function SlotPickerSkeleton({
|
|
|
3157
3157
|
}
|
|
3158
3158
|
function TimeChipsSkeleton() {
|
|
3159
3159
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
3160
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: COLUMN_HEADING_CLASS, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3160
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: COLUMN_HEADING_CLASS, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkH3RYUTNDcjs.UnifiedSkeleton, { className: "inline-block h-4 w-40 align-middle" }) }),
|
|
3161
3161
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: CHIP_GRID_CLASS, children: Array.from({ length: 16 }, (_, i) => (
|
|
3162
3162
|
// h-11 content-md:h-12 — the loaded chip's own default-size height.
|
|
3163
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3163
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkH3RYUTNDcjs.UnifiedSkeleton, { className: _chunk3ATAYP36cjs.cn.call(void 0, CHIP_CLASS, "h-11 content-md:h-12") }, i)
|
|
3164
3164
|
)) })
|
|
3165
3165
|
] });
|
|
3166
3166
|
}
|
|
@@ -3250,7 +3250,7 @@ function SlotPicker({
|
|
|
3250
3250
|
monthLabelFor(monthOffset),
|
|
3251
3251
|
"."
|
|
3252
3252
|
] }),
|
|
3253
|
-
monthOffset <
|
|
3253
|
+
monthOffset < _chunkWIT36ZTNcjs.MAX_MONTH_OFFSET && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
3254
3254
|
_chunk2QMBXGMQcjs.Button,
|
|
3255
3255
|
{
|
|
3256
3256
|
variant: "outline",
|
|
@@ -3274,7 +3274,7 @@ function SlotPicker({
|
|
|
3274
3274
|
|
|
3275
3275
|
|
|
3276
3276
|
function useNextAvailableLabel(ms) {
|
|
3277
|
-
const hydrated =
|
|
3277
|
+
const hydrated = _chunkSDF5UUTEcjs.useIsHydrated.call(void 0, );
|
|
3278
3278
|
return _react.useMemo.call(void 0, () => {
|
|
3279
3279
|
if (!hydrated || ms == null) return null;
|
|
3280
3280
|
return _chunkJHQNUWFMcjs.formatDateWithTimezone.call(void 0, ms, _chunkJHQNUWFMcjs.VIEWER_TIMEZONE, "shortWeekdayDateTime", { viewerLocale: true }) || null;
|
|
@@ -3302,7 +3302,7 @@ function DirectoryRow({
|
|
|
3302
3302
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "truncate text-ods-text-primary text-h3", children: link.title }),
|
|
3303
3303
|
subtitle && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "truncate text-ods-text-secondary text-h6", children: subtitle })
|
|
3304
3304
|
] }),
|
|
3305
|
-
audienceLabel && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3305
|
+
audienceLabel && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7Z4EQOIXcjs.StatusBadge, { text: `For ${audienceLabel}`, singleLine: true, className: "hidden shrink-0 content-sm:inline-flex" }),
|
|
3306
3306
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkL2IQESTQcjs.AvatarStack, { people: link.hosts, max: 3, size: "md", label: "Hosts", className: "flex shrink-0" }),
|
|
3307
3307
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "hidden w-44 shrink-0 flex-col items-end justify-center content-md:flex", children: [
|
|
3308
3308
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-ods-text-secondary text-h6", children: "Next available" }),
|
|
@@ -3316,16 +3316,16 @@ function DirectoryRow({
|
|
|
3316
3316
|
function MeetingSchedulerDirectoryRowSkeleton() {
|
|
3317
3317
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-h-20 w-full items-center gap-4 rounded-lg border border-ods-border bg-ods-card px-4 py-3", children: [
|
|
3318
3318
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-1 flex-col justify-center gap-1", children: [
|
|
3319
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3320
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3319
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkH3RYUTNDcjs.UnifiedSkeleton, { className: "h-5 w-1/2" }),
|
|
3320
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkH3RYUTNDcjs.UnifiedSkeleton, { className: "h-4 w-1/3" })
|
|
3321
3321
|
] }),
|
|
3322
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3323
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3322
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkH3RYUTNDcjs.UnifiedSkeleton, { className: "hidden h-6 w-28 shrink-0 content-sm:block" }),
|
|
3323
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkH3RYUTNDcjs.UnifiedSkeleton, { className: "h-10 w-10 shrink-0 rounded-full" }),
|
|
3324
3324
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "hidden w-44 shrink-0 flex-col items-end gap-1 content-md:flex", children: [
|
|
3325
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3326
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3325
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkH3RYUTNDcjs.UnifiedSkeleton, { className: "h-4 w-24" }),
|
|
3326
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkH3RYUTNDcjs.UnifiedSkeleton, { className: "h-5 w-32" })
|
|
3327
3327
|
] }),
|
|
3328
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3328
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkH3RYUTNDcjs.UnifiedSkeleton, { className: "size-12 shrink-0 rounded-md" })
|
|
3329
3329
|
] });
|
|
3330
3330
|
}
|
|
3331
3331
|
var PAGINATION_SLOT_H = "h-[4.5rem]";
|
|
@@ -3378,12 +3378,12 @@ function MeetingSchedulerDirectory({
|
|
|
3378
3378
|
if (isLoading && !data) {
|
|
3379
3379
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk3ATAYP36cjs.cn.call(void 0, "flex flex-col", className), children: [
|
|
3380
3380
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex w-full flex-col gap-4", style: { minHeight: rowsMinHeight }, children: Array.from({ length: pageSize }, (_, i) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, MeetingSchedulerDirectoryRowSkeleton, {}, i)) }),
|
|
3381
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunk3ATAYP36cjs.cn.call(void 0, "mt-8 flex w-full items-center justify-center", PAGINATION_SLOT_H), children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3381
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunk3ATAYP36cjs.cn.call(void 0, "mt-8 flex w-full items-center justify-center", PAGINATION_SLOT_H), children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkH3RYUTNDcjs.UnifiedSkeleton, { className: "h-10 w-64" }) })
|
|
3382
3382
|
] });
|
|
3383
3383
|
}
|
|
3384
3384
|
if (error) {
|
|
3385
3385
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunk3ATAYP36cjs.cn.call(void 0, "flex flex-col justify-center", className), style: { minHeight: rowsMinHeight + 104 }, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3386
|
-
|
|
3386
|
+
_chunk5E6JHOGXcjs.EmptyState,
|
|
3387
3387
|
{
|
|
3388
3388
|
type: "generic",
|
|
3389
3389
|
title: "We couldn't load available call times",
|
|
@@ -3394,7 +3394,7 @@ function MeetingSchedulerDirectory({
|
|
|
3394
3394
|
}
|
|
3395
3395
|
if (rows.length === 0) {
|
|
3396
3396
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunk3ATAYP36cjs.cn.call(void 0, "flex flex-col justify-center", className), style: { minHeight: rowsMinHeight + 104 }, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3397
|
-
|
|
3397
|
+
_chunk5E6JHOGXcjs.EmptyState,
|
|
3398
3398
|
{
|
|
3399
3399
|
type: "generic",
|
|
3400
3400
|
title: "No call times are published right now",
|
|
@@ -3406,7 +3406,7 @@ function MeetingSchedulerDirectory({
|
|
|
3406
3406
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk3ATAYP36cjs.cn.call(void 0, "flex flex-col", className), children: [
|
|
3407
3407
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex w-full flex-col gap-4", style: { minHeight: rowsMinHeight }, children: pageRows.map(({ link, audienceLabel }) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, DirectoryRow, { link, audienceLabel, bookingBasePath }, link.id)) }),
|
|
3408
3408
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunk3ATAYP36cjs.cn.call(void 0, "mt-8 flex w-full items-center justify-center", PAGINATION_SLOT_H), children: totalPages > 1 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3409
|
-
|
|
3409
|
+
_chunkWBOHLXFCcjs.PersistentPaginationWrapper,
|
|
3410
3410
|
{
|
|
3411
3411
|
isLoading,
|
|
3412
3412
|
currentPage: page,
|
|
@@ -3523,7 +3523,7 @@ function HubSpotMeetingScheduler({
|
|
|
3523
3523
|
const modal = layout === "modal" && !detailsFirst;
|
|
3524
3524
|
const modalFormId = _react.useId.call(void 0, );
|
|
3525
3525
|
const [modalFormValid, setModalFormValid] = _react.useState.call(void 0, false);
|
|
3526
|
-
const hydrated =
|
|
3526
|
+
const hydrated = _chunkSDF5UUTEcjs.useIsHydrated.call(void 0, );
|
|
3527
3527
|
const [pickedTimezone, setTimezone] = _react.useState.call(void 0, null);
|
|
3528
3528
|
const resolvedLocalTimezone = _react.useMemo.call(void 0, () => {
|
|
3529
3529
|
if (!hydrated) return null;
|
|
@@ -3675,7 +3675,7 @@ function HubSpotMeetingScheduler({
|
|
|
3675
3675
|
const degradedCard = degraded("We couldn't load available call times. Please try again shortly.");
|
|
3676
3676
|
if (modal && isLoadingAvailability && !availability) {
|
|
3677
3677
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk3ATAYP36cjs.cn.call(void 0, MODAL_STACK_CLASS, className), children: [
|
|
3678
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
3678
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkNO5UJLLQcjs.LoadingRegion, { label: "Loading available times", className: MODAL_CARD_CLASS, children: [
|
|
3679
3679
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, SchedulerModalHeaderSkeleton, {}),
|
|
3680
3680
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, SlotPickerSkeleton, { monthOffset, layout: "modal" })
|
|
3681
3681
|
] }),
|
|
@@ -3689,7 +3689,7 @@ function HubSpotMeetingScheduler({
|
|
|
3689
3689
|
] });
|
|
3690
3690
|
}
|
|
3691
3691
|
if (isLoadingAvailability && !availability) {
|
|
3692
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: cardClass, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
3692
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: cardClass, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkNO5UJLLQcjs.LoadingRegion, { label: "Loading available times", className: innerClass, children: [
|
|
3693
3693
|
!formOnly && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, ContextPanelSkeleton, { onBack: backEdge, className: CONTEXT_PANEL_CLASS }),
|
|
3694
3694
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: actionPanelClass, children: formOnly ? (
|
|
3695
3695
|
// The SAME wrapper the loaded form gets, so the skeleton never
|
|
@@ -3720,7 +3720,7 @@ function HubSpotMeetingScheduler({
|
|
|
3720
3720
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk3ATAYP36cjs.cn.call(void 0, MODAL_STACK_CLASS, className), children: [
|
|
3721
3721
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: MODAL_CARD_CLASS, children: [
|
|
3722
3722
|
modalBack && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3723
|
-
|
|
3723
|
+
_chunk3GG3QAPTcjs.BackButton,
|
|
3724
3724
|
{
|
|
3725
3725
|
onClick: modalBack,
|
|
3726
3726
|
className: _chunk3ATAYP36cjs.cn.call(void 0,
|
|
@@ -3765,7 +3765,7 @@ function HubSpotMeetingScheduler({
|
|
|
3765
3765
|
}
|
|
3766
3766
|
)
|
|
3767
3767
|
] }) : /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
3768
|
-
bookingError === "SLOT_TAKEN" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3768
|
+
bookingError === "SLOT_TAKEN" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXW6WSW36cjs.Alert, { variant: "warning", className: "mx-[var(--spacing-system-m)] mt-[var(--spacing-system-m)] w-auto", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXW6WSW36cjs.AlertDescription, { children: "That time was just taken \u2014 pick another slot below. (If you already submitted, check your email for a confirmation before rebooking.)" }) }),
|
|
3769
3769
|
timezone && durationMs != null ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3770
3770
|
SlotPicker,
|
|
3771
3771
|
{
|
|
@@ -3884,11 +3884,11 @@ function HubSpotMeetingScheduler({
|
|
|
3884
3884
|
)
|
|
3885
3885
|
] }) : /* @__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: [
|
|
3886
3886
|
bookingError === "SLOT_TAKEN" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3887
|
-
|
|
3887
|
+
_chunkXW6WSW36cjs.Alert,
|
|
3888
3888
|
{
|
|
3889
3889
|
variant: "warning",
|
|
3890
3890
|
className: "mx-[var(--spacing-system-l)] mt-[var(--spacing-system-l)] w-auto content-lg:m-0 content-lg:w-full",
|
|
3891
|
-
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3891
|
+
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXW6WSW36cjs.AlertDescription, { children: "That time was just taken \u2014 pick another slot below. (If you already submitted, check your email for a confirmation before rebooking.)" })
|
|
3892
3892
|
}
|
|
3893
3893
|
),
|
|
3894
3894
|
timezone && durationMs != null ? (
|