@flamingo-stack/openframe-frontend-core 0.0.719 → 0.0.721
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/assets/index.cjs +6 -0
- package/dist/assets/index.d.ts +1 -0
- package/dist/assets/index.d.ts.map +1 -1
- package/dist/assets/index.js +5 -1
- package/dist/assets/mobile-app-qr.d.ts +17 -0
- package/dist/assets/mobile-app-qr.d.ts.map +1 -0
- package/dist/{chunk-2JLP2X2M.js → chunk-2P2M27EW.js} +2396 -2369
- package/dist/{chunk-IWCPXJEE.js → chunk-2TXGR7IK.js} +138 -63
- package/dist/{chunk-FVQJBII6.js → chunk-3LY7V3RF.js} +3 -3
- package/dist/{chunk-HCFNEKO3.cjs → chunk-3R32ZNA2.cjs} +46 -46
- package/dist/{chunk-WSDT7LYL.js → chunk-3UBWDR65.js} +1 -1
- package/dist/{chunk-NZ5BHDFZ.js → chunk-44Q6MV7C.js} +2 -2
- package/dist/{chunk-CMZ3QTFQ.js → chunk-4I3K6LEH.js} +24 -0
- package/dist/{chunk-ZXCZYMN4.cjs → chunk-4LY6R4TN.cjs} +137 -62
- package/dist/{chunk-EAHOB64X.js → chunk-57UTI7ZH.js} +106 -42
- package/dist/{chunk-XGHGGBM3.js → chunk-5QXE5HMV.js} +4 -4
- package/dist/{chunk-NYWESHOQ.cjs → chunk-6AJIOW3S.cjs} +57 -57
- package/dist/{chunk-4QFWGLZO.js → chunk-6YBUQAOH.js} +1 -1
- package/dist/{chunk-JHQ334WS.js → chunk-742BGXNX.js} +2 -0
- package/dist/{chunk-D6PMVWDI.js → chunk-74N742ZG.js} +6 -6
- package/dist/{chunk-AECTRMGQ.cjs → chunk-7GRPR7XA.cjs} +13 -1
- package/dist/{chunk-4HJRHEXD.cjs → chunk-7Z5FMQYR.cjs} +22 -22
- package/dist/chunk-AFTRPEXO.js +13 -0
- package/dist/{chunk-WBNAEYTQ.cjs → chunk-BYUIFT7Q.cjs} +6 -6
- package/dist/{chunk-LCLDFMDF.cjs → chunk-BYVVE7HP.cjs} +58 -58
- package/dist/{chunk-JPD4NXH6.js → chunk-CO3FOZIH.js} +1 -1
- package/dist/{chunk-E7YCPY7K.cjs → chunk-D2DH6VZL.cjs} +3 -3
- package/dist/{chunk-HWVUR735.cjs → chunk-DFM572VH.cjs} +2 -2
- package/dist/{chunk-YDPKUAP4.js → chunk-DJ4IFQNQ.js} +2 -0
- package/dist/{chunk-5U3KWQXP.js → chunk-E6SMMMKV.js} +13 -13
- package/dist/chunk-EWPR7662.cjs +13 -0
- package/dist/{chunk-SWAVO7BB.cjs → chunk-F7ORKKEF.cjs} +108 -108
- package/dist/{chunk-AGVXKD4K.js → chunk-FSQQZFVG.js} +12 -0
- package/dist/{chunk-ETYLOZOB.cjs → chunk-GCK75D7F.cjs} +109 -22
- package/dist/{chunk-ZKNZ2CXW.cjs → chunk-GGBYZKMS.cjs} +11 -11
- package/dist/{chunk-Y4MB25KW.js → chunk-GYAXV3MZ.js} +3 -3
- package/dist/{chunk-UWQWMGJ7.cjs → chunk-HJMSNOBT.cjs} +1040 -696
- package/dist/{chunk-DFQYAYBH.cjs → chunk-HQIOMFJH.cjs} +2 -0
- package/dist/{chunk-JH2SIWPQ.js → chunk-HXB7SEYG.js} +1611 -1267
- package/dist/{chunk-LE5WKGJV.cjs → chunk-I2254QN6.cjs} +16 -16
- package/dist/{chunk-PSVSEN4J.cjs → chunk-IMTY3GRR.cjs} +2 -0
- package/dist/{chunk-ILNN6QRW.js → chunk-JDBZ4ZHU.js} +3 -3
- package/dist/{chunk-GQ7JJUIT.cjs → chunk-K2JUJ37D.cjs} +25 -1
- package/dist/{chunk-6YPTUHM7.js → chunk-K76ACBR3.js} +3 -3
- package/dist/{chunk-2NASBO7O.js → chunk-KFOAV77K.js} +2 -2
- package/dist/{chunk-CU6NWO2M.js → chunk-LAXKEBDD.js} +14 -18
- package/dist/{chunk-5YAGX5DY.js → chunk-LGKMR7NZ.js} +7 -7
- package/dist/{chunk-E2V2EH2G.cjs → chunk-LODMNSQY.cjs} +16 -16
- package/dist/{chunk-4D6NMPOO.js → chunk-NJ5TBTJG.js} +7 -7
- package/dist/{chunk-TDZ76NCB.cjs → chunk-NMPVK53I.cjs} +29 -29
- package/dist/{chunk-TTVOLEUS.js → chunk-NPSJE7J3.js} +90 -3
- package/dist/{chunk-H5VIMBRN.cjs → chunk-O5EHOJZD.cjs} +4 -4
- package/dist/{chunk-KT3U3ZRP.cjs → chunk-OKE5BIQH.cjs} +8 -8
- package/dist/{chunk-DC4RTYWK.cjs → chunk-QLTXT562.cjs} +5 -5
- package/dist/{chunk-H5V7GRN5.js → chunk-QQCFPMAA.js} +5 -7
- package/dist/{chunk-7BREFV7G.cjs → chunk-QYS4YVEP.cjs} +34 -36
- package/dist/{chunk-7BCY77W6.js → chunk-RCI3PALX.js} +8 -10
- package/dist/{chunk-P3JMAMHP.js → chunk-REETLEL5.js} +1 -1
- package/dist/{chunk-4JIGEK7C.cjs → chunk-RJMWJAJO.cjs} +97 -33
- package/dist/{chunk-WS7WRR5Z.cjs → chunk-RQZQHLNS.cjs} +86 -90
- package/dist/{chunk-FFT56TYB.cjs → chunk-RUZIICXT.cjs} +2 -2
- package/dist/{chunk-AJHSQ5XK.js → chunk-S63QBBT7.js} +6 -6
- package/dist/{chunk-TELAANY6.js → chunk-UXU7Y5BH.js} +2 -2
- package/dist/{chunk-NQVS4G7G.cjs → chunk-UZTOI6FJ.cjs} +773 -746
- package/dist/{chunk-DFEPUYTF.cjs → chunk-VFICDEYJ.cjs} +45 -47
- package/dist/{chunk-LOZLHG2U.cjs → chunk-XE2K53GH.cjs} +20 -20
- package/dist/{chunk-QBCDSTLE.cjs → chunk-XXO52RZR.cjs} +26 -26
- package/dist/{chunk-TTEFN6VO.js → chunk-ZLUFEWZZ.js} +10 -10
- package/dist/{chunk-MA4Q5RBP.cjs → chunk-ZSOFLPQN.cjs} +9 -9
- package/dist/{chunk-KBJJQFYU.js → chunk-ZZEKXGFS.js} +2 -2
- package/dist/{cloud-tenants-FBUO66GW.cjs → cloud-tenants-HZHKRUIW.cjs} +16 -16
- package/dist/{cloud-tenants-DNBPNQNP.js → cloud-tenants-Q4TCJS5Y.js} +15 -15
- package/dist/components/calendar.cjs +4 -4
- package/dist/components/calendar.js +1 -1
- package/dist/components/case-studies/index.cjs +30 -30
- package/dist/components/case-studies/index.js +16 -16
- package/dist/components/chat/ask-prompts.d.ts +10 -2
- package/dist/components/chat/ask-prompts.d.ts.map +1 -1
- package/dist/components/chat/assistant-ask-prompts.d.ts +27 -0
- package/dist/components/chat/assistant-ask-prompts.d.ts.map +1 -0
- package/dist/components/chat/entity-cards/dispatch.d.ts.map +1 -1
- 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/use-ask-prompts.d.ts +63 -0
- package/dist/components/chat/hooks/use-ask-prompts.d.ts.map +1 -0
- package/dist/components/chat/index.cjs +27 -10
- 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 +26 -9
- package/dist/components/chat/utils/icon-library.d.ts.map +1 -1
- package/dist/components/contact/index.cjs +17 -17
- package/dist/components/contact/index.js +16 -16
- package/dist/components/docs/index.cjs +20 -20
- package/dist/components/docs/index.js +19 -19
- package/dist/components/embeds/index.cjs +17 -17
- package/dist/components/embeds/index.js +16 -16
- package/dist/components/faq/faq-ask-card.d.ts +44 -0
- package/dist/components/faq/faq-ask-card.d.ts.map +1 -0
- package/dist/components/faq/faq-document-page.d.ts +5 -1
- package/dist/components/faq/faq-document-page.d.ts.map +1 -1
- package/dist/components/faq/faq-section.d.ts +18 -5
- package/dist/components/faq/faq-section.d.ts.map +1 -1
- package/dist/components/faq/index.cjs +19 -18
- package/dist/components/faq/index.d.ts +1 -0
- package/dist/components/faq/index.d.ts.map +1 -1
- package/dist/components/faq/index.js +18 -17
- package/dist/components/features/auth/auth-benefits-panel.d.ts.map +1 -1
- package/dist/components/features/index.cjs +16 -16
- package/dist/components/features/index.js +15 -15
- package/dist/components/help-center-pages/download-apps-page.d.ts +55 -0
- package/dist/components/help-center-pages/download-apps-page.d.ts.map +1 -0
- package/dist/components/help-center-pages/index.cjs +333 -119
- package/dist/components/help-center-pages/index.d.ts +1 -0
- package/dist/components/help-center-pages/index.d.ts.map +1 -1
- package/dist/components/help-center-pages/index.js +251 -37
- package/dist/components/help-center-pages/trust-center-page.d.ts +4 -1
- package/dist/components/help-center-pages/trust-center-page.d.ts.map +1 -1
- package/dist/components/index.cjs +131 -217
- package/dist/components/index.js +236 -322
- package/dist/components/meeting-scheduler/index.cjs +61 -62
- package/dist/components/meeting-scheduler/index.js +18 -19
- package/dist/components/navigation/index.cjs +19 -19
- package/dist/components/navigation/index.js +18 -18
- package/dist/components/navigation/mingo-ai-button.d.ts +1 -1
- package/dist/components/navigation/mingo-ai-button.d.ts.map +1 -1
- package/dist/components/onboarding-guides/index.cjs +19 -20
- package/dist/components/onboarding-guides/index.js +18 -19
- package/dist/components/product-demo/index.cjs +8 -8
- package/dist/components/product-demo/index.js +8 -8
- package/dist/components/related-content/index.cjs +7 -9
- package/dist/components/related-content/index.js +6 -8
- package/dist/components/tickets/index.cjs +21 -21
- package/dist/components/tickets/index.js +20 -20
- package/dist/components/ui/button/button.d.ts.map +1 -1
- package/dist/components/ui/file-manager/index.cjs +11 -11
- package/dist/components/ui/file-manager/index.js +1 -1
- package/dist/components/ui/index.cjs +34 -16
- package/dist/components/ui/index.d.ts +1 -0
- package/dist/components/ui/index.d.ts.map +1 -1
- package/dist/components/ui/index.js +33 -15
- package/dist/components/ui/mobile-app-qr.d.ts +23 -0
- package/dist/components/ui/mobile-app-qr.d.ts.map +1 -0
- package/dist/components/ui/store-badges.d.ts +7 -4
- package/dist/components/ui/store-badges.d.ts.map +1 -1
- package/dist/contexts/assistant-runtime-context.d.ts +74 -0
- package/dist/contexts/assistant-runtime-context.d.ts.map +1 -0
- package/dist/contexts/index.cjs +7 -1
- package/dist/contexts/index.d.ts +1 -0
- package/dist/contexts/index.d.ts.map +1 -1
- package/dist/contexts/index.js +6 -0
- package/dist/{devices-5A5TY4JD.cjs → devices-6XHUFIC6.cjs} +17 -17
- package/dist/{devices-PLDAEUSL.js → devices-NOUGVTES.js} +15 -15
- package/dist/hooks/index.cjs +10 -5
- package/dist/hooks/index.d.ts +1 -0
- package/dist/hooks/index.d.ts.map +1 -1
- package/dist/hooks/index.js +9 -4
- package/dist/hooks/use-downloads.d.ts +41 -0
- package/dist/hooks/use-downloads.d.ts.map +1 -0
- package/dist/index.cjs +80 -20
- package/dist/index.js +79 -19
- package/dist/{knowledge-G6Q5KRWV.js → knowledge-2YTUXQ2Z.js} +15 -15
- package/dist/{knowledge-FKTJ723Z.cjs → knowledge-ANEKPMO2.cjs} +17 -17
- package/dist/{logs-CJCXUBU6.cjs → logs-U3IB3HUM.cjs} +25 -25
- package/dist/{logs-QMV6XIC4.js → logs-WVQIONUT.js} +15 -15
- package/dist/{policies-G6D7AX6F.js → policies-66EGDW2H.js} +15 -15
- package/dist/{policies-QMRTK3CY.cjs → policies-UFRN2EQF.cjs} +20 -20
- package/dist/{remote-session-DBD6OSTX.js → remote-session-6WEUJZDC.js} +5 -5
- package/dist/{remote-session-2JVI7RVA.cjs → remote-session-A75X5NPC.cjs} +7 -7
- package/dist/{software-update-PNZMRDBT.cjs → software-update-2MHKL76D.cjs} +20 -20
- package/dist/{software-update-6BQM6BKH.js → software-update-3ZD3MXF3.js} +15 -15
- package/dist/{tickets-board-BHLPAVNJ.cjs → tickets-board-IFWMIZ35.cjs} +9 -9
- package/dist/{tickets-board-PYDNELSK.js → tickets-board-MYXG3V72.js} +4 -4
- package/dist/types/downloads.d.ts +67 -0
- package/dist/types/downloads.d.ts.map +1 -0
- package/dist/types/index.cjs +24 -0
- package/dist/types/index.d.ts +1 -0
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/index.js +16 -1
- package/dist/utils/index.cjs +46 -2
- package/dist/utils/index.d.ts +2 -0
- package/dist/utils/index.d.ts.map +1 -1
- package/dist/utils/index.js +40 -3
- package/dist/utils/list-url.d.ts.map +1 -1
- package/dist/utils/mobile-app.cjs +46 -0
- package/dist/utils/mobile-app.d.ts +40 -0
- package/dist/utils/mobile-app.d.ts.map +1 -0
- package/dist/utils/mobile-app.js +40 -0
- package/dist/utils/source-icons.d.ts.map +1 -1
- package/dist/utils/trial.d.ts +18 -0
- package/dist/utils/trial.d.ts.map +1 -0
- package/package.json +7 -1
- package/src/assets/index.ts +1 -0
- package/src/assets/mobile-app-qr.ts +19 -0
- package/src/components/chat/ask-prompts.tsx +25 -3
- package/src/components/chat/assistant-ask-prompts.tsx +78 -0
- package/src/components/chat/entity-cards/dispatch.tsx +38 -4
- package/src/components/chat/hooks/index.ts +12 -0
- package/src/components/chat/hooks/use-ask-prompts.ts +188 -0
- package/src/components/chat/index.ts +1 -0
- package/src/components/chat/utils/icon-library.tsx +6 -0
- package/src/components/faq/faq-ask-card.tsx +115 -0
- package/src/components/faq/faq-document-page.tsx +6 -1
- package/src/components/faq/faq-section.tsx +27 -5
- package/src/components/faq/index.ts +1 -0
- package/src/components/features/auth/auth-benefits-panel.tsx +5 -4
- package/src/components/help-center-pages/download-apps-page.tsx +364 -0
- package/src/components/help-center-pages/index.ts +1 -0
- package/src/components/help-center-pages/trust-center-page.tsx +5 -2
- package/src/components/navigation/mingo-ai-button.tsx +27 -6
- package/src/components/ui/button/button.tsx +3 -0
- package/src/components/ui/index.ts +1 -0
- package/src/components/ui/mobile-app-qr.tsx +40 -0
- package/src/components/ui/store-badges.tsx +17 -9
- package/src/contexts/assistant-runtime-context.tsx +84 -0
- package/src/contexts/index.ts +9 -0
- package/src/hooks/index.ts +1 -0
- package/src/hooks/use-downloads.ts +138 -0
- package/src/types/downloads.ts +82 -0
- package/src/types/index.ts +1 -0
- package/src/utils/index.ts +3 -0
- package/src/utils/list-url.ts +4 -0
- package/src/utils/mobile-app.ts +57 -0
- package/src/utils/source-icons.ts +10 -2
- package/src/utils/trial.ts +19 -0
- package/dist/chunk-6X3O67OL.cjs +0 -89
- package/dist/chunk-AUMKE74M.cjs +0 -16
- package/dist/chunk-G3GRYDMS.js +0 -16
- package/dist/chunk-RR6PY34K.js +0 -89
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
"use client";
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var _chunkDFM572VHcjs = require('../../chunk-DFM572VH.cjs');
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _chunkZSOFLPQNcjs = require('../../chunk-ZSOFLPQN.cjs');
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
@@ -16,8 +16,8 @@ var _chunkMA4Q5RBPcjs = require('../../chunk-MA4Q5RBP.cjs');
|
|
|
16
16
|
|
|
17
17
|
|
|
18
18
|
|
|
19
|
-
var
|
|
20
|
-
require('../../chunk-
|
|
19
|
+
var _chunkUZTOI6FJcjs = require('../../chunk-UZTOI6FJ.cjs');
|
|
20
|
+
require('../../chunk-7Z5FMQYR.cjs');
|
|
21
21
|
require('../../chunk-HQQE74RO.cjs');
|
|
22
22
|
require('../../chunk-DEY6XXGO.cjs');
|
|
23
23
|
|
|
@@ -27,20 +27,17 @@ require('../../chunk-DEY6XXGO.cjs');
|
|
|
27
27
|
|
|
28
28
|
|
|
29
29
|
|
|
30
|
-
var
|
|
30
|
+
var _chunkBYVVE7HPcjs = require('../../chunk-BYVVE7HP.cjs');
|
|
31
31
|
|
|
32
32
|
|
|
33
33
|
|
|
34
34
|
|
|
35
35
|
|
|
36
|
-
var
|
|
36
|
+
var _chunk4LY6R4TNcjs = require('../../chunk-4LY6R4TN.cjs');
|
|
37
37
|
require('../../chunk-B4NCVYEQ.cjs');
|
|
38
38
|
require('../../chunk-MZ4KBSH7.cjs');
|
|
39
39
|
require('../../chunk-A6P6DHEZ.cjs');
|
|
40
|
-
require('../../chunk-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
var _chunkAUMKE74Mcjs = require('../../chunk-AUMKE74M.cjs');
|
|
40
|
+
require('../../chunk-BYUIFT7Q.cjs');
|
|
44
41
|
|
|
45
42
|
|
|
46
43
|
var _chunkLX22Y43Bcjs = require('../../chunk-LX22Y43B.cjs');
|
|
@@ -48,22 +45,23 @@ var _chunkLX22Y43Bcjs = require('../../chunk-LX22Y43B.cjs');
|
|
|
48
45
|
|
|
49
46
|
|
|
50
47
|
|
|
51
|
-
var
|
|
52
|
-
require('../../chunk-
|
|
53
|
-
require('../../chunk-
|
|
54
|
-
require('../../chunk-
|
|
48
|
+
var _chunkHJMSNOBTcjs = require('../../chunk-HJMSNOBT.cjs');
|
|
49
|
+
require('../../chunk-OKE5BIQH.cjs');
|
|
50
|
+
require('../../chunk-EWPR7662.cjs');
|
|
51
|
+
require('../../chunk-QLTXT562.cjs');
|
|
52
|
+
require('../../chunk-RUZIICXT.cjs');
|
|
55
53
|
|
|
56
54
|
|
|
57
|
-
var
|
|
55
|
+
var _chunkK2JUJ37Dcjs = require('../../chunk-K2JUJ37D.cjs');
|
|
58
56
|
require('../../chunk-WVOTC7HW.cjs');
|
|
59
57
|
require('../../chunk-7DNL734S.cjs');
|
|
60
58
|
|
|
61
59
|
|
|
62
|
-
var
|
|
60
|
+
var _chunkGCK75D7Fcjs = require('../../chunk-GCK75D7F.cjs');
|
|
63
61
|
require('../../chunk-AL2GUHAJ.cjs');
|
|
64
62
|
|
|
65
63
|
|
|
66
|
-
var
|
|
64
|
+
var _chunkIMTY3GRRcjs = require('../../chunk-IMTY3GRR.cjs');
|
|
67
65
|
|
|
68
66
|
|
|
69
67
|
|
|
@@ -74,7 +72,8 @@ var _chunkF5BPGWGTcjs = require('../../chunk-F5BPGWGT.cjs');
|
|
|
74
72
|
require('../../chunk-MGHIV4L6.cjs');
|
|
75
73
|
|
|
76
74
|
|
|
77
|
-
|
|
75
|
+
|
|
76
|
+
var _chunk7GRPR7XAcjs = require('../../chunk-7GRPR7XA.cjs');
|
|
78
77
|
require('../../chunk-UJ7AXHRZ.cjs');
|
|
79
78
|
require('../../chunk-AAYNCJMW.cjs');
|
|
80
79
|
require('../../chunk-ULWVKHSI.cjs');
|
|
@@ -90,7 +89,7 @@ require('../../chunk-2Y7QZAB2.cjs');
|
|
|
90
89
|
require('../../chunk-4GFNWALL.cjs');
|
|
91
90
|
|
|
92
91
|
|
|
93
|
-
var
|
|
92
|
+
var _chunkHQIOMFJHcjs = require('../../chunk-HQIOMFJH.cjs');
|
|
94
93
|
|
|
95
94
|
|
|
96
95
|
var _chunkLLRGR4I5cjs = require('../../chunk-LLRGR4I5.cjs');
|
|
@@ -380,7 +379,7 @@ function useMeetingBooking(options) {
|
|
|
380
379
|
const seededOffset = _optionalChain([initialAvailability, 'optionalAccess', _12 => _12.meetingId]) === meetingId ? initialAvailability.monthOffset : void 0;
|
|
381
380
|
const [monthOffset, setMonthOffsetState] = _react.useState.call(void 0, _nullishCoalesce(seededOffset, () => ( 0)));
|
|
382
381
|
const setMonthOffset = _react.useCallback.call(void 0, (offset) => {
|
|
383
|
-
setMonthOffsetState(Math.max(0, Math.min(
|
|
382
|
+
setMonthOffsetState(Math.max(0, Math.min(_chunkHJMSNOBTcjs.MAX_MONTH_OFFSET, offset)));
|
|
384
383
|
}, []);
|
|
385
384
|
const prevMeetingIdRef = _react.useRef.call(void 0, meetingId);
|
|
386
385
|
_react.useLayoutEffect.call(void 0, () => {
|
|
@@ -393,7 +392,7 @@ function useMeetingBooking(options) {
|
|
|
393
392
|
queryKey: meetingAvailabilityKey(apiBaseUrl, meetingId, monthOffset),
|
|
394
393
|
queryFn: async ({ signal }) => {
|
|
395
394
|
const params = new URLSearchParams({ meeting: meetingId, monthOffset: String(monthOffset) });
|
|
396
|
-
const res = await
|
|
395
|
+
const res = await _chunk7GRPR7XAcjs.contentFetch.call(void 0, `${apiBaseUrl}/api/meetings/availability?${params}`, { signal });
|
|
397
396
|
if (!res.ok) throw new Error(`availability ${res.status}`);
|
|
398
397
|
return await res.json();
|
|
399
398
|
},
|
|
@@ -410,7 +409,7 @@ function useMeetingBooking(options) {
|
|
|
410
409
|
const bookMutation = _reactquery.useMutation.call(void 0, {
|
|
411
410
|
mutationFn: async (payload) => {
|
|
412
411
|
try {
|
|
413
|
-
const res = await
|
|
412
|
+
const res = await _chunk7GRPR7XAcjs.contentFetch.call(void 0, `${apiBaseUrl}/api/meetings/book`, {
|
|
414
413
|
method: "POST",
|
|
415
414
|
headers: { "Content-Type": "application/json" },
|
|
416
415
|
body: JSON.stringify(payload)
|
|
@@ -510,7 +509,7 @@ var FIELD_CONTROLS = {
|
|
|
510
509
|
}
|
|
511
510
|
),
|
|
512
511
|
textarea: ({ field, id, registerName, error, register }) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
513
|
-
|
|
512
|
+
_chunkUZTOI6FJcjs.Textarea,
|
|
514
513
|
{
|
|
515
514
|
id,
|
|
516
515
|
required: field.required,
|
|
@@ -566,18 +565,18 @@ var FIELD_CONTROLS = {
|
|
|
566
565
|
{
|
|
567
566
|
control,
|
|
568
567
|
name: registerName,
|
|
569
|
-
render: ({ field: rhf }) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
568
|
+
render: ({ field: rhf }) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkBYVVE7HPcjs.Select, { value: _nullishCoalesce(rhf.value, () => ( "")), onValueChange: rhf.onChange, children: [
|
|
570
569
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
571
|
-
|
|
570
|
+
_chunkBYVVE7HPcjs.SelectTrigger,
|
|
572
571
|
{
|
|
573
572
|
id,
|
|
574
573
|
"aria-required": field.required || void 0,
|
|
575
574
|
"aria-invalid": Boolean(error),
|
|
576
575
|
invalid: Boolean(error),
|
|
577
|
-
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
576
|
+
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBYVVE7HPcjs.SelectValue, { placeholder: "Select\u2026" })
|
|
578
577
|
}
|
|
579
578
|
),
|
|
580
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
579
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBYVVE7HPcjs.SelectContent, { children: (_nullishCoalesce(field.options, () => ( []))).map((opt) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBYVVE7HPcjs.SelectItem, { value: opt, children: optionLabel(field, opt) }, opt)) })
|
|
581
580
|
] })
|
|
582
581
|
}
|
|
583
582
|
),
|
|
@@ -587,14 +586,14 @@ var FIELD_CONTROLS = {
|
|
|
587
586
|
control,
|
|
588
587
|
name: registerName,
|
|
589
588
|
render: ({ field: rhf }) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
590
|
-
|
|
589
|
+
_chunkUZTOI6FJcjs.RadioGroup,
|
|
591
590
|
{
|
|
592
591
|
value: _nullishCoalesce(rhf.value, () => ( "")),
|
|
593
592
|
onValueChange: rhf.onChange,
|
|
594
593
|
"aria-required": field.required || void 0,
|
|
595
594
|
"aria-invalid": Boolean(error),
|
|
596
595
|
children: (_nullishCoalesce(field.options, () => ( []))).map((opt) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center gap-[var(--spacing-system-xs)]", children: [
|
|
597
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
596
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUZTOI6FJcjs.RadioGroupItem, { id: `${id}-${opt}`, value: opt }),
|
|
598
597
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXXBLN4BPcjs.Label, { htmlFor: `${id}-${opt}`, children: optionLabel(field, opt) })
|
|
599
598
|
] }, opt))
|
|
600
599
|
}
|
|
@@ -733,7 +732,7 @@ function BookingForm({
|
|
|
733
732
|
() => [...BUILT_IN_BOOKING_FIELDS.map((field) => field.name), ...supportedFields.map((field) => field.name)],
|
|
734
733
|
[supportedFields]
|
|
735
734
|
);
|
|
736
|
-
const formRescue =
|
|
735
|
+
const formRescue = _chunk4LY6R4TNcjs.useRescuedForm.call(void 0,
|
|
737
736
|
{ watch, getValues, setValue },
|
|
738
737
|
{
|
|
739
738
|
rescue,
|
|
@@ -742,7 +741,7 @@ function BookingForm({
|
|
|
742
741
|
fieldPath: (name) => BUILT_IN_BOOKING_FIELDS.some((field) => field.name === name) ? name : `formFields.${name}`
|
|
743
742
|
}
|
|
744
743
|
);
|
|
745
|
-
const { toast } =
|
|
744
|
+
const { toast } = _chunk4LY6R4TNcjs.useToast.call(void 0, );
|
|
746
745
|
const onInvalid = () => {
|
|
747
746
|
if (deniedEmailDomains && emailDomainDenied(getValues("email"), deniedEmailDomains)) {
|
|
748
747
|
toast({
|
|
@@ -821,7 +820,7 @@ function BookingForm({
|
|
|
821
820
|
const { rows: placedRows, unplacedBuiltIns, named: placedNames } = normalizeFieldRows(_nullishCoalesce(fieldRows, () => ( [])), slotResolves);
|
|
822
821
|
const unplacedFields = fieldRows ? supportedFields.filter((f) => !placedNames.has(f.name)) : [];
|
|
823
822
|
const submitButton = /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
824
|
-
|
|
823
|
+
_chunkHQIOMFJHcjs.Button,
|
|
825
824
|
{
|
|
826
825
|
type: "submit",
|
|
827
826
|
loading: isSubmitting,
|
|
@@ -830,8 +829,8 @@ function BookingForm({
|
|
|
830
829
|
children: _nullishCoalesce(submitLabel, () => ( DEFAULT_SUBMIT_LABEL))
|
|
831
830
|
}
|
|
832
831
|
);
|
|
833
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "form", { onSubmit: submit, className: FORM_STACK, noValidate: true, ...
|
|
834
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
832
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "form", { onSubmit: submit, className: FORM_STACK, noValidate: true, ..._chunkHJMSNOBTcjs.HUBSPOT_DO_NOT_COLLECT_FORM_PROPS, children: [
|
|
833
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUZTOI6FJcjs.HoneypotField, { ...honeypotInputProps }),
|
|
835
834
|
fieldRows ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
836
835
|
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("|"))),
|
|
837
836
|
[...unplacedBuiltIns, ...unplacedFields].map((field) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _react.Fragment, { children: slotNode(field.name) }, field.name))
|
|
@@ -844,7 +843,7 @@ function BookingForm({
|
|
|
844
843
|
supportedFields.map((field) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _react.Fragment, { children: renderDeclaredField(field) }, field.name))
|
|
845
844
|
] }),
|
|
846
845
|
consent && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
847
|
-
|
|
846
|
+
_chunkUZTOI6FJcjs.CheckboxBlock,
|
|
848
847
|
{
|
|
849
848
|
id: "ms-host-consent",
|
|
850
849
|
checked: consented,
|
|
@@ -879,7 +878,7 @@ function BookingForm({
|
|
|
879
878
|
// same block the waitlist form uses): box + label in one
|
|
880
879
|
// bordered row.
|
|
881
880
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
882
|
-
|
|
881
|
+
_chunkUZTOI6FJcjs.CheckboxBlock,
|
|
883
882
|
{
|
|
884
883
|
id: `ms-consent-${box.communicationTypeId}`,
|
|
885
884
|
checked: _nullishCoalesce(_optionalChain([current, 'optionalAccess', _34 => _34.consented]), () => ( false)),
|
|
@@ -976,7 +975,7 @@ function ContextPanelSkeleton({
|
|
|
976
975
|
backLabel = "Back"
|
|
977
976
|
}) {
|
|
978
977
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk3ATAYP36cjs.cn.call(void 0, PANEL_STACK, className), children: [
|
|
979
|
-
onBack && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
978
|
+
onBack && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBYVVE7HPcjs.BackButton, { label: backLabel, onClick: onBack, className: BACK_BUTTON_CLASS }),
|
|
980
979
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: STRIP_BODY, children: [
|
|
981
980
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: STRIP_MAIN, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: IDENTITY_ROW, children: [
|
|
982
981
|
/* @__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: [
|
|
@@ -1012,7 +1011,7 @@ function SchedulerContextPanel({
|
|
|
1012
1011
|
className
|
|
1013
1012
|
}) {
|
|
1014
1013
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk3ATAYP36cjs.cn.call(void 0, PANEL_STACK, className), children: [
|
|
1015
|
-
onBack && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1014
|
+
onBack && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBYVVE7HPcjs.BackButton, { label: backLabel, onClick: onBack, className: BACK_BUTTON_CLASS }),
|
|
1016
1015
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: STRIP_BODY, children: [
|
|
1017
1016
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: STRIP_MAIN, children: [
|
|
1018
1017
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: IDENTITY_ROW, children: [
|
|
@@ -1033,7 +1032,7 @@ function SchedulerContextPanel({
|
|
|
1033
1032
|
] })
|
|
1034
1033
|
] }, host.name)) }),
|
|
1035
1034
|
hosts.length > 3 && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col gap-[var(--spacing-system-xs)]", children: [
|
|
1036
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1035
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIMTY3GRRcjs.AvatarStack, { people: hosts, max: 4, size: "lg", label: "Hosts" }),
|
|
1037
1036
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "p", { className: "text-ods-text-secondary text-h6", children: [
|
|
1038
1037
|
hosts.length,
|
|
1039
1038
|
" hosts on this calendar"
|
|
@@ -1053,7 +1052,7 @@ function SchedulerContextPanel({
|
|
|
1053
1052
|
!locked && durationsMs.length > 1 && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col gap-[var(--spacing-system-xxs)]", children: [
|
|
1054
1053
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: FIELD_LABEL_CLASS, children: "Duration" }),
|
|
1055
1054
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex flex-wrap gap-[var(--spacing-system-xs)]", children: durationsMs.map((ms) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1056
|
-
|
|
1055
|
+
_chunkHQIOMFJHcjs.Button,
|
|
1057
1056
|
{
|
|
1058
1057
|
variant: selectedDurationMs === ms ? void 0 : "outline",
|
|
1059
1058
|
size: "small-legacy",
|
|
@@ -1074,7 +1073,7 @@ function SchedulerContextPanel({
|
|
|
1074
1073
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk3ATAYP36cjs.cn.call(void 0, STRIP_ASIDE, locked && "content-max-lg:hidden"), children: [
|
|
1075
1074
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: FIELD_LABEL_CLASS, children: "Timezone" }),
|
|
1076
1075
|
timezone ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1077
|
-
|
|
1076
|
+
_chunkUZTOI6FJcjs.TimezoneSelect,
|
|
1078
1077
|
{
|
|
1079
1078
|
value: timezone,
|
|
1080
1079
|
disabled,
|
|
@@ -1157,18 +1156,18 @@ var NOOP = () => void 0;
|
|
|
1157
1156
|
function DayCalendar({ monthOffset, onMonthOffsetChange, selectedDay, onSelectDay, slotsByDay }) {
|
|
1158
1157
|
const now = /* @__PURE__ */ new Date();
|
|
1159
1158
|
const startMonth = new Date(now.getFullYear(), now.getMonth(), 1);
|
|
1160
|
-
const endMonth = new Date(now.getFullYear(), now.getMonth() +
|
|
1159
|
+
const endMonth = new Date(now.getFullYear(), now.getMonth() + _chunkHJMSNOBTcjs.MAX_MONTH_OFFSET + 1, 0);
|
|
1161
1160
|
const visibleMonth = new Date(now.getFullYear(), now.getMonth() + monthOffset, 1);
|
|
1162
1161
|
const dayHasNoSlots = _react.useCallback.call(void 0, (day) => !_optionalChain([slotsByDay, 'optionalAccess', _36 => _36.has, 'call', _37 => _37(calendarDayKey(day))]), [slotsByDay]);
|
|
1163
1162
|
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,
|
|
1164
|
-
|
|
1163
|
+
_chunkUZTOI6FJcjs.DatePickerCalendar,
|
|
1165
1164
|
{
|
|
1166
1165
|
mode: "single",
|
|
1167
1166
|
bare: true,
|
|
1168
1167
|
month: visibleMonth,
|
|
1169
1168
|
onMonthChange: (month) => {
|
|
1170
1169
|
const offset = (month.getFullYear() - now.getFullYear()) * 12 + (month.getMonth() - now.getMonth());
|
|
1171
|
-
onMonthOffsetChange(Math.max(0, Math.min(
|
|
1170
|
+
onMonthOffsetChange(Math.max(0, Math.min(_chunkHJMSNOBTcjs.MAX_MONTH_OFFSET, offset)));
|
|
1172
1171
|
},
|
|
1173
1172
|
fromDate: startMonth,
|
|
1174
1173
|
toDate: endMonth,
|
|
@@ -1259,7 +1258,7 @@ function SlotPicker({
|
|
|
1259
1258
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: CHIP_GRID_CLASS, children: daySlots.map((ms) => {
|
|
1260
1259
|
const isSelected = selectedSlot === ms;
|
|
1261
1260
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1262
|
-
|
|
1261
|
+
_chunkHQIOMFJHcjs.Button,
|
|
1263
1262
|
{
|
|
1264
1263
|
variant: isSelected ? void 0 : "outline",
|
|
1265
1264
|
disabled: isSubmitting,
|
|
@@ -1284,8 +1283,8 @@ function SlotPicker({
|
|
|
1284
1283
|
monthLabelFor(monthOffset),
|
|
1285
1284
|
"."
|
|
1286
1285
|
] }),
|
|
1287
|
-
monthOffset <
|
|
1288
|
-
|
|
1286
|
+
monthOffset < _chunkHJMSNOBTcjs.MAX_MONTH_OFFSET && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
1287
|
+
_chunkHQIOMFJHcjs.Button,
|
|
1289
1288
|
{
|
|
1290
1289
|
variant: "outline",
|
|
1291
1290
|
onClick: () => onMonthOffsetChange(monthOffset + 1),
|
|
@@ -1306,7 +1305,7 @@ function SlotPicker({
|
|
|
1306
1305
|
|
|
1307
1306
|
|
|
1308
1307
|
function useNextAvailableLabel(ms) {
|
|
1309
|
-
const hydrated =
|
|
1308
|
+
const hydrated = _chunkHJMSNOBTcjs.useIsHydrated.call(void 0, );
|
|
1310
1309
|
return _react.useMemo.call(void 0, () => {
|
|
1311
1310
|
if (!hydrated || ms == null) return null;
|
|
1312
1311
|
return _chunkF5BPGWGTcjs.formatDateWithTimezone.call(void 0, ms, _chunkF5BPGWGTcjs.VIEWER_TIMEZONE, "shortWeekdayDateTime", { viewerLocale: true }) || null;
|
|
@@ -1334,8 +1333,8 @@ function DirectoryRow({
|
|
|
1334
1333
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "truncate text-ods-text-primary text-h3", children: link.title }),
|
|
1335
1334
|
subtitle && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "truncate text-ods-text-secondary text-h6", children: subtitle })
|
|
1336
1335
|
] }),
|
|
1337
|
-
audienceLabel && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1338
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1336
|
+
audienceLabel && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGCK75D7Fcjs.StatusBadge, { text: `For ${audienceLabel}`, singleLine: true, className: "hidden shrink-0 content-sm:inline-flex" }),
|
|
1337
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIMTY3GRRcjs.AvatarStack, { people: link.hosts, max: 3, size: "md", label: "Hosts", className: "flex shrink-0" }),
|
|
1339
1338
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "hidden w-44 shrink-0 flex-col items-end justify-center content-md:flex", children: [
|
|
1340
1339
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-ods-text-secondary text-h6", children: "Next available" }),
|
|
1341
1340
|
/* @__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, () => ( " ")) })
|
|
@@ -1383,7 +1382,7 @@ function MeetingSchedulerDirectory({
|
|
|
1383
1382
|
setError(null);
|
|
1384
1383
|
try {
|
|
1385
1384
|
const qs = includeAll ? "?scope=all" : "";
|
|
1386
|
-
const res = await
|
|
1385
|
+
const res = await _chunk7GRPR7XAcjs.contentFetch.call(void 0, `${apiBaseUrl}/api/meetings${qs}`, { signal: controller.signal });
|
|
1387
1386
|
if (!res.ok) throw new Error(`meetings ${res.status}`);
|
|
1388
1387
|
const payload = await res.json();
|
|
1389
1388
|
if (active) setData(payload);
|
|
@@ -1404,7 +1403,7 @@ function MeetingSchedulerDirectory({
|
|
|
1404
1403
|
const purposes = _nullishCoalesce(_optionalChain([data, 'optionalAccess', _40 => _40.purposes]), () => ( []));
|
|
1405
1404
|
return purposes.flatMap((p) => p.links.map((link) => ({ link, audienceLabel: p.label })));
|
|
1406
1405
|
}, [data]);
|
|
1407
|
-
const totalPages =
|
|
1406
|
+
const totalPages = _chunk7GRPR7XAcjs.pageCount.call(void 0, rows.length, pageSize);
|
|
1408
1407
|
const pageRows = rows.slice((page - 1) * pageSize, page * pageSize);
|
|
1409
1408
|
const rowsMinHeight = pageSize * 80 + (pageSize - 1) * 16;
|
|
1410
1409
|
if (isLoading && !data) {
|
|
@@ -1415,7 +1414,7 @@ function MeetingSchedulerDirectory({
|
|
|
1415
1414
|
}
|
|
1416
1415
|
if (error) {
|
|
1417
1416
|
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,
|
|
1418
|
-
|
|
1417
|
+
_chunkZSOFLPQNcjs.EmptyState,
|
|
1419
1418
|
{
|
|
1420
1419
|
type: "generic",
|
|
1421
1420
|
title: "We couldn't load available call times",
|
|
@@ -1426,7 +1425,7 @@ function MeetingSchedulerDirectory({
|
|
|
1426
1425
|
}
|
|
1427
1426
|
if (rows.length === 0) {
|
|
1428
1427
|
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,
|
|
1429
|
-
|
|
1428
|
+
_chunkZSOFLPQNcjs.EmptyState,
|
|
1430
1429
|
{
|
|
1431
1430
|
type: "generic",
|
|
1432
1431
|
title: "No call times are published right now",
|
|
@@ -1438,7 +1437,7 @@ function MeetingSchedulerDirectory({
|
|
|
1438
1437
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk3ATAYP36cjs.cn.call(void 0, "flex flex-col", className), children: [
|
|
1439
1438
|
/* @__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)) }),
|
|
1440
1439
|
/* @__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,
|
|
1441
|
-
|
|
1440
|
+
_chunkDFM572VHcjs.PersistentPaginationWrapper,
|
|
1442
1441
|
{
|
|
1443
1442
|
isLoading,
|
|
1444
1443
|
currentPage: page,
|
|
@@ -1539,7 +1538,7 @@ function HubSpotMeetingScheduler({
|
|
|
1539
1538
|
isSubmitting
|
|
1540
1539
|
} = useMeetingBooking({ meetingId, apiBaseUrl, initialAvailability });
|
|
1541
1540
|
const detailsFirst = flow === "details-first";
|
|
1542
|
-
const hydrated =
|
|
1541
|
+
const hydrated = _chunkHJMSNOBTcjs.useIsHydrated.call(void 0, );
|
|
1543
1542
|
const [pickedTimezone, setTimezone] = _react.useState.call(void 0, null);
|
|
1544
1543
|
const resolvedLocalTimezone = _react.useMemo.call(void 0, () => {
|
|
1545
1544
|
if (!hydrated) return null;
|
|
@@ -1572,8 +1571,8 @@ function HubSpotMeetingScheduler({
|
|
|
1572
1571
|
const [selectedSlot, setSelectedSlot] = _react.useState.call(void 0, null);
|
|
1573
1572
|
const [confirmation, setConfirmation] = _react.useState.call(void 0, null);
|
|
1574
1573
|
const [bookingError, setBookingError] = _react.useState.call(void 0, null);
|
|
1575
|
-
const { honeypotInputProps, getSignals, resetSignals } =
|
|
1576
|
-
const { toast } =
|
|
1574
|
+
const { honeypotInputProps, getSignals, resetSignals } = _chunk4LY6R4TNcjs.useHumanitySignals.call(void 0, );
|
|
1575
|
+
const { toast } = _chunk4LY6R4TNcjs.useToast.call(void 0, );
|
|
1577
1576
|
const autoAdvanceCount = _react.useRef.call(void 0, 0);
|
|
1578
1577
|
const [machineFor, setMachineFor] = _react.useState.call(void 0, meetingId);
|
|
1579
1578
|
if (machineFor !== meetingId) {
|
|
@@ -1647,7 +1646,7 @@ function HubSpotMeetingScheduler({
|
|
|
1647
1646
|
return;
|
|
1648
1647
|
}
|
|
1649
1648
|
if (result.ok && result.confirmation) {
|
|
1650
|
-
|
|
1649
|
+
_chunk4LY6R4TNcjs.completeFormRescue.call(void 0, rescue, payload[_chunkK2JUJ37Dcjs.FORM_RESCUE_ATTEMPT_FIELD]);
|
|
1651
1650
|
setConfirmation(result.confirmation);
|
|
1652
1651
|
setStep("confirmed");
|
|
1653
1652
|
_optionalChain([onBooked, 'optionalCall', _46 => _46(result.confirmation)]);
|
|
@@ -1674,7 +1673,7 @@ function HubSpotMeetingScheduler({
|
|
|
1674
1673
|
},
|
|
1675
1674
|
[book, bookingError, detailsFirst, onBooked, refetchAvailability, rescue, resetSignals, toast]
|
|
1676
1675
|
);
|
|
1677
|
-
const escapeHatch = fallbackUrl ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1676
|
+
const escapeHatch = fallbackUrl ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHQIOMFJHcjs.Button, { variant: "outline", size: "small-legacy", href: fallbackUrl, openInNewTab: true, children: "Open in HubSpot" }) : null;
|
|
1678
1677
|
const backEdge = detailsFirst ? step === "slot" ? backToDetails : onBack : step === "details" ? backToSlot : onBack;
|
|
1679
1678
|
const boxed = !formOnly;
|
|
1680
1679
|
const cardClass = _chunk3ATAYP36cjs.cn.call(void 0,
|
|
@@ -1770,11 +1769,11 @@ function HubSpotMeetingScheduler({
|
|
|
1770
1769
|
)
|
|
1771
1770
|
] }) : /* @__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: [
|
|
1772
1771
|
bookingError === "SLOT_TAKEN" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1773
|
-
|
|
1772
|
+
_chunkUZTOI6FJcjs.Alert,
|
|
1774
1773
|
{
|
|
1775
1774
|
variant: "warning",
|
|
1776
1775
|
className: "mx-[var(--spacing-system-l)] mt-[var(--spacing-system-l)] w-auto content-lg:m-0 content-lg:w-full",
|
|
1777
|
-
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1776
|
+
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUZTOI6FJcjs.AlertDescription, { children: "That time was just taken \u2014 pick another slot below. (If you already submitted, check your email for a confirmation before rebooking.)" })
|
|
1778
1777
|
}
|
|
1779
1778
|
),
|
|
1780
1779
|
timezone && durationMs != null ? (
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
"use client";
|
|
3
3
|
import {
|
|
4
4
|
PersistentPaginationWrapper
|
|
5
|
-
} from "../../chunk-
|
|
5
|
+
} from "../../chunk-6YBUQAOH.js";
|
|
6
6
|
import {
|
|
7
7
|
EmptyState
|
|
8
|
-
} from "../../chunk-
|
|
8
|
+
} from "../../chunk-K76ACBR3.js";
|
|
9
9
|
import {
|
|
10
10
|
Alert,
|
|
11
11
|
AlertDescription,
|
|
@@ -16,8 +16,8 @@ import {
|
|
|
16
16
|
RadioGroupItem,
|
|
17
17
|
Textarea,
|
|
18
18
|
TimezoneSelect
|
|
19
|
-
} from "../../chunk-
|
|
20
|
-
import "../../chunk-
|
|
19
|
+
} from "../../chunk-2P2M27EW.js";
|
|
20
|
+
import "../../chunk-JDBZ4ZHU.js";
|
|
21
21
|
import "../../chunk-LQYXMEYF.js";
|
|
22
22
|
import "../../chunk-4JPLYOS6.js";
|
|
23
23
|
import {
|
|
@@ -27,20 +27,17 @@ import {
|
|
|
27
27
|
SelectItem,
|
|
28
28
|
SelectTrigger,
|
|
29
29
|
SelectValue
|
|
30
|
-
} from "../../chunk-
|
|
30
|
+
} from "../../chunk-GYAXV3MZ.js";
|
|
31
31
|
import {
|
|
32
32
|
completeFormRescue,
|
|
33
33
|
useHumanitySignals,
|
|
34
34
|
useRescuedForm,
|
|
35
35
|
useToast
|
|
36
|
-
} from "../../chunk-
|
|
36
|
+
} from "../../chunk-2TXGR7IK.js";
|
|
37
37
|
import "../../chunk-3K5ZLZE7.js";
|
|
38
38
|
import "../../chunk-HFL2F4RM.js";
|
|
39
39
|
import "../../chunk-YYYVS7CX.js";
|
|
40
|
-
import "../../chunk-
|
|
41
|
-
import {
|
|
42
|
-
contentFetch
|
|
43
|
-
} from "../../chunk-G3GRYDMS.js";
|
|
40
|
+
import "../../chunk-3UBWDR65.js";
|
|
44
41
|
import {
|
|
45
42
|
Checkbox
|
|
46
43
|
} from "../../chunk-PLWMIU72.js";
|
|
@@ -48,22 +45,23 @@ import {
|
|
|
48
45
|
HUBSPOT_DO_NOT_COLLECT_FORM_PROPS,
|
|
49
46
|
MAX_MONTH_OFFSET,
|
|
50
47
|
useIsHydrated
|
|
51
|
-
} from "../../chunk-
|
|
52
|
-
import "../../chunk-
|
|
53
|
-
import "../../chunk-
|
|
54
|
-
import "../../chunk-
|
|
48
|
+
} from "../../chunk-HXB7SEYG.js";
|
|
49
|
+
import "../../chunk-KFOAV77K.js";
|
|
50
|
+
import "../../chunk-AFTRPEXO.js";
|
|
51
|
+
import "../../chunk-ZZEKXGFS.js";
|
|
52
|
+
import "../../chunk-REETLEL5.js";
|
|
55
53
|
import {
|
|
56
54
|
FORM_RESCUE_ATTEMPT_FIELD
|
|
57
|
-
} from "../../chunk-
|
|
55
|
+
} from "../../chunk-4I3K6LEH.js";
|
|
58
56
|
import "../../chunk-34I6XI3N.js";
|
|
59
57
|
import "../../chunk-GY4IZG22.js";
|
|
60
58
|
import {
|
|
61
59
|
StatusBadge
|
|
62
|
-
} from "../../chunk-
|
|
60
|
+
} from "../../chunk-NPSJE7J3.js";
|
|
63
61
|
import "../../chunk-H3PKYE4N.js";
|
|
64
62
|
import {
|
|
65
63
|
AvatarStack
|
|
66
|
-
} from "../../chunk-
|
|
64
|
+
} from "../../chunk-742BGXNX.js";
|
|
67
65
|
import {
|
|
68
66
|
SquareAvatar,
|
|
69
67
|
VIEWER_TIMEZONE,
|
|
@@ -73,8 +71,9 @@ import {
|
|
|
73
71
|
} from "../../chunk-IYVFSLWJ.js";
|
|
74
72
|
import "../../chunk-FBZMAPWO.js";
|
|
75
73
|
import {
|
|
74
|
+
contentFetch,
|
|
76
75
|
pageCount
|
|
77
|
-
} from "../../chunk-
|
|
76
|
+
} from "../../chunk-FSQQZFVG.js";
|
|
78
77
|
import "../../chunk-E4ABZWTJ.js";
|
|
79
78
|
import "../../chunk-KEKCQENI.js";
|
|
80
79
|
import "../../chunk-ADBE7QF3.js";
|
|
@@ -90,7 +89,7 @@ import "../../chunk-WI6FHKD7.js";
|
|
|
90
89
|
import "../../chunk-INS7KZJB.js";
|
|
91
90
|
import {
|
|
92
91
|
Button
|
|
93
|
-
} from "../../chunk-
|
|
92
|
+
} from "../../chunk-DJ4IFQNQ.js";
|
|
94
93
|
import {
|
|
95
94
|
next_link_default
|
|
96
95
|
} from "../../chunk-DAAVMYUT.js";
|
|
@@ -24,15 +24,15 @@
|
|
|
24
24
|
|
|
25
25
|
|
|
26
26
|
|
|
27
|
-
var
|
|
27
|
+
var _chunk6AJIOW3Scjs = require('../../chunk-6AJIOW3S.cjs');
|
|
28
28
|
|
|
29
29
|
|
|
30
30
|
|
|
31
31
|
|
|
32
32
|
|
|
33
33
|
|
|
34
|
-
var
|
|
35
|
-
require('../../chunk-
|
|
34
|
+
var _chunkI2254QN6cjs = require('../../chunk-I2254QN6.cjs');
|
|
35
|
+
require('../../chunk-D2DH6VZL.cjs');
|
|
36
36
|
|
|
37
37
|
|
|
38
38
|
|
|
@@ -47,35 +47,35 @@ require('../../chunk-E7YCPY7K.cjs');
|
|
|
47
47
|
|
|
48
48
|
|
|
49
49
|
|
|
50
|
-
var
|
|
51
|
-
require('../../chunk-
|
|
50
|
+
var _chunkUZTOI6FJcjs = require('../../chunk-UZTOI6FJ.cjs');
|
|
51
|
+
require('../../chunk-7Z5FMQYR.cjs');
|
|
52
52
|
require('../../chunk-HQQE74RO.cjs');
|
|
53
53
|
require('../../chunk-DEY6XXGO.cjs');
|
|
54
|
-
require('../../chunk-
|
|
55
|
-
require('../../chunk-
|
|
54
|
+
require('../../chunk-BYVVE7HP.cjs');
|
|
55
|
+
require('../../chunk-4LY6R4TN.cjs');
|
|
56
56
|
require('../../chunk-B4NCVYEQ.cjs');
|
|
57
57
|
require('../../chunk-MZ4KBSH7.cjs');
|
|
58
58
|
require('../../chunk-A6P6DHEZ.cjs');
|
|
59
|
-
require('../../chunk-
|
|
60
|
-
require('../../chunk-AUMKE74M.cjs');
|
|
59
|
+
require('../../chunk-BYUIFT7Q.cjs');
|
|
61
60
|
require('../../chunk-LX22Y43B.cjs');
|
|
62
61
|
|
|
63
62
|
|
|
64
63
|
|
|
65
64
|
|
|
66
|
-
var
|
|
67
|
-
require('../../chunk-
|
|
68
|
-
require('../../chunk-
|
|
69
|
-
require('../../chunk-
|
|
70
|
-
require('../../chunk-
|
|
65
|
+
var _chunkHJMSNOBTcjs = require('../../chunk-HJMSNOBT.cjs');
|
|
66
|
+
require('../../chunk-OKE5BIQH.cjs');
|
|
67
|
+
require('../../chunk-EWPR7662.cjs');
|
|
68
|
+
require('../../chunk-QLTXT562.cjs');
|
|
69
|
+
require('../../chunk-RUZIICXT.cjs');
|
|
70
|
+
require('../../chunk-K2JUJ37D.cjs');
|
|
71
71
|
require('../../chunk-WVOTC7HW.cjs');
|
|
72
72
|
require('../../chunk-7DNL734S.cjs');
|
|
73
|
-
require('../../chunk-
|
|
73
|
+
require('../../chunk-GCK75D7F.cjs');
|
|
74
74
|
require('../../chunk-AL2GUHAJ.cjs');
|
|
75
|
-
require('../../chunk-
|
|
75
|
+
require('../../chunk-IMTY3GRR.cjs');
|
|
76
76
|
require('../../chunk-F5BPGWGT.cjs');
|
|
77
77
|
require('../../chunk-MGHIV4L6.cjs');
|
|
78
|
-
require('../../chunk-
|
|
78
|
+
require('../../chunk-7GRPR7XA.cjs');
|
|
79
79
|
require('../../chunk-UJ7AXHRZ.cjs');
|
|
80
80
|
require('../../chunk-AAYNCJMW.cjs');
|
|
81
81
|
require('../../chunk-ULWVKHSI.cjs');
|
|
@@ -85,7 +85,7 @@ require('../../chunk-RDW5JAME.cjs');
|
|
|
85
85
|
require('../../chunk-XXBLN4BP.cjs');
|
|
86
86
|
require('../../chunk-2Y7QZAB2.cjs');
|
|
87
87
|
require('../../chunk-4GFNWALL.cjs');
|
|
88
|
-
require('../../chunk-
|
|
88
|
+
require('../../chunk-HQIOMFJH.cjs');
|
|
89
89
|
require('../../chunk-LLRGR4I5.cjs');
|
|
90
90
|
require('../../chunk-G7SBHMRR.cjs');
|
|
91
91
|
require('../../chunk-G6OHIX5C.cjs');
|
|
@@ -138,4 +138,4 @@ require('../../chunk-QBJ4SE23.cjs');
|
|
|
138
138
|
|
|
139
139
|
|
|
140
140
|
|
|
141
|
-
exports.ASK_AI_OPEN_EVENT =
|
|
141
|
+
exports.ASK_AI_OPEN_EVENT = _chunkHJMSNOBTcjs.ASK_AI_OPEN_EVENT; exports.AppHeader = _chunk6AJIOW3Scjs.AppHeader; exports.AppLayout = _chunk6AJIOW3Scjs.AppLayout; exports.AppLayoutDrawer = _chunkUZTOI6FJcjs.AppLayoutDrawerRoot; exports.AppLayoutDrawerBody = _chunkUZTOI6FJcjs.AppLayoutDrawerBody; exports.AppLayoutDrawerClose = _chunkUZTOI6FJcjs.AppLayoutDrawerClose; exports.AppLayoutDrawerContent = _chunkUZTOI6FJcjs.AppLayoutDrawerContent; exports.AppLayoutDrawerDescription = _chunkUZTOI6FJcjs.AppLayoutDrawerDescription; exports.AppLayoutDrawerFooter = _chunkUZTOI6FJcjs.AppLayoutDrawerFooter; exports.AppLayoutDrawerHeader = _chunkUZTOI6FJcjs.AppLayoutDrawerHeader; exports.AppLayoutDrawerTitle = _chunkUZTOI6FJcjs.AppLayoutDrawerTitle; exports.AppLayoutDrawerTrigger = _chunkUZTOI6FJcjs.AppLayoutDrawerTrigger; exports.HeaderButton = _chunkUZTOI6FJcjs.HeaderButton; exports.HeaderGlobalSearch = _chunk6AJIOW3Scjs.HeaderGlobalSearch; exports.HeaderMingoButton = _chunk6AJIOW3Scjs.HeaderMingoButton; exports.HeaderOrganizationFilter = _chunk6AJIOW3Scjs.HeaderOrganizationFilter; exports.MOBILE_NAV_SHEET_ID = _chunk6AJIOW3Scjs.MOBILE_NAV_SHEET_ID; exports.MingoAiButton = _chunkHJMSNOBTcjs.MingoAiButton; exports.MobileBurgerMenu = _chunk6AJIOW3Scjs.MobileBurgerMenu; exports.MobileNavSheet = _chunk6AJIOW3Scjs.MobileNavSheet; exports.MobileNavigationDropdown = _chunkI2254QN6cjs.MobileNavigationDropdown; exports.MultiLevelNavigation = _chunkI2254QN6cjs.MultiLevelNavigation; exports.NAVIGATION_SIDEBAR_WIDTH_VAR = _chunk6AJIOW3Scjs.NAVIGATION_SIDEBAR_WIDTH_VAR; exports.NavItemRow = _chunk6AJIOW3Scjs.NavItemRow; exports.NavPanel = _chunk6AJIOW3Scjs.NavPanel; exports.NavigationItemBadge = _chunk6AJIOW3Scjs.NavigationItemBadge; exports.NavigationSidebar = _chunk6AJIOW3Scjs.NavigationSidebar; exports.SIDE_PANEL_FRAME_WIDTH = _chunk6AJIOW3Scjs.SIDE_PANEL_FRAME_WIDTH; exports.SiteFooter = _chunk6AJIOW3Scjs.SiteFooter; exports.SiteHeader = _chunk6AJIOW3Scjs.SiteHeader; exports.SlidingSidebar = _chunk6AJIOW3Scjs.SlidingSidebar; exports.StickySectionNav = _chunkI2254QN6cjs.StickySectionNav; exports.TicketAlertsButton = _chunk6AJIOW3Scjs.TicketAlertsButton; exports.TopNavigation = _chunk6AJIOW3Scjs.TopNavigation; exports.UnreadCountBadge = _chunkUZTOI6FJcjs.UnreadCountBadge; exports.UnreadDot = _chunkUZTOI6FJcjs.UnreadDot; exports.defaultRenderSiteNavLink = _chunk6AJIOW3Scjs.defaultRenderSiteNavLink; exports.isMegaMenu = _chunk6AJIOW3Scjs.isMegaMenu; exports.navLinkLabel = _chunk6AJIOW3Scjs.navLinkLabel; exports.openAskAi = _chunkHJMSNOBTcjs.openAskAi; exports.siteNavHasMobileMenus = _chunk6AJIOW3Scjs.siteNavHasMobileMenus; exports.useAppLayoutDrawerContainer = _chunkUZTOI6FJcjs.useAppLayoutDrawerContainer; exports.useScrollSpy = _chunkI2254QN6cjs.useScrollSpy; exports.useSectionNavigation = _chunkI2254QN6cjs.useSectionNavigation;
|