@flamingo-stack/openframe-frontend-core 0.0.761 → 0.0.762
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/{chunk-7Z4EQOIX.cjs → chunk-22XAPV6N.cjs} +35 -35
- package/dist/{chunk-AXBVN5SW.cjs → chunk-2IFCRPNP.cjs} +38 -38
- package/dist/{chunk-CSJO7ZGN.cjs → chunk-3RYIF4OW.cjs} +3 -3
- package/dist/{chunk-G6IK3HC5.cjs → chunk-3WPWUUFU.cjs} +32 -32
- package/dist/{chunk-35BJY5RR.cjs → chunk-47GZ33ND.cjs} +44 -44
- package/dist/{chunk-HQYWVNQL.cjs → chunk-4NGXJA3V.cjs} +4 -4
- package/dist/{chunk-GLQBCQOF.cjs → chunk-4VAMNI27.cjs} +59 -59
- package/dist/{chunk-4EM7HIIM.cjs → chunk-72XMAKDA.cjs} +566 -566
- package/dist/{chunk-B7AOUPBV.cjs → chunk-AXGTRPF6.cjs} +20 -20
- package/dist/{chunk-6T6O36LT.cjs → chunk-CEJDHCFZ.cjs} +89 -89
- package/dist/{chunk-NOFJH7MA.cjs → chunk-CZ3OVWUL.cjs} +14 -14
- package/dist/{chunk-GKRHGVB4.cjs → chunk-DYJWZIPU.cjs} +100 -100
- package/dist/{chunk-6M54EVOA.cjs → chunk-DZ6BYXQF.cjs} +28 -28
- package/dist/{chunk-2ANICXS7.cjs → chunk-E4LA4BEH.cjs} +21 -21
- package/dist/{chunk-JHQNUWFM.cjs → chunk-EQZXJUYV.cjs} +3 -3
- package/dist/{chunk-LU7TD6QS.cjs → chunk-FQSXZC2K.cjs} +3 -3
- package/dist/{chunk-QU5K52OP.cjs → chunk-GY2JESOC.cjs} +2 -2
- package/dist/{chunk-LOFDIDSD.cjs → chunk-GZKWF6NH.cjs} +9 -9
- package/dist/{chunk-VAZTFCVY.cjs → chunk-J4P47JHM.cjs} +20 -20
- package/dist/{chunk-WBOHLXFC.cjs → chunk-LVKUMVUJ.cjs} +2 -2
- package/dist/{chunk-L2IQESTQ.cjs → chunk-M7YZGRAV.cjs} +2 -2
- package/dist/{chunk-R34JD6NP.cjs → chunk-MWLD6NXV.cjs} +3 -3
- package/dist/{chunk-TIV74DVS.cjs → chunk-N52HFJTK.cjs} +43 -43
- package/dist/{chunk-W2RM764D.cjs → chunk-NET74KSQ.cjs} +5 -4
- package/dist/{chunk-B27XV2TC.cjs → chunk-NS64LMVE.cjs} +10 -10
- package/dist/{chunk-OBXZDUC3.cjs → chunk-NSR7K57R.cjs} +83 -83
- package/dist/{chunk-QYLIHZKZ.cjs → chunk-OJJ4RL2T.cjs} +4 -4
- package/dist/{chunk-F64VMOIB.cjs → chunk-PE26VSWT.cjs} +19 -19
- package/dist/{chunk-EMSOBT6R.cjs → chunk-PFXR3RF3.cjs} +6 -6
- package/dist/{chunk-D252ICCO.cjs → chunk-QCO32MEE.cjs} +17 -17
- package/dist/{chunk-KTPR66EE.cjs → chunk-R3TWQ3ZJ.cjs} +10 -0
- package/dist/{chunk-VUSXDMCE.cjs → chunk-RM6AHNM4.cjs} +7 -7
- package/dist/{chunk-T4BBZ5ST.cjs → chunk-RO72PRQI.cjs} +2 -2
- package/dist/{chunk-WI2OTGKC.cjs → chunk-SVP6DJFL.cjs} +2 -2
- package/dist/{chunk-H45OTVYI.cjs → chunk-TGVV7STM.cjs} +22 -22
- package/dist/{chunk-SUHPBFNU.cjs → chunk-TQPQKBBL.cjs} +242 -240
- package/dist/{chunk-5E6JHOGX.cjs → chunk-TSJUL6IH.cjs} +3 -3
- package/dist/{chunk-LOM3S64Z.cjs → chunk-TWAHPTWW.cjs} +8 -8
- package/dist/{chunk-VUWPLQBY.cjs → chunk-XCH7SPGI.cjs} +44 -44
- package/dist/{cloud-tenants-BDGV4N2T.cjs → cloud-tenants-M5SIL6QZ.cjs} +22 -22
- package/dist/components/case-studies/index.cjs +36 -36
- package/dist/components/chat/index.cjs +15 -15
- package/dist/components/contact/index.cjs +23 -23
- package/dist/components/docs/index.cjs +26 -26
- package/dist/components/embeds/index.cjs +23 -23
- package/dist/components/faq/index.cjs +24 -24
- package/dist/components/features/index.cjs +22 -22
- package/dist/components/help-center-pages/index.cjs +125 -125
- package/dist/components/index.cjs +83 -83
- package/dist/components/meeting-scheduler/index.cjs +77 -77
- package/dist/components/navigation/index.cjs +25 -25
- package/dist/components/onboarding-guides/index.cjs +25 -25
- package/dist/components/product-demo/index.cjs +9 -9
- package/dist/components/related-content/index.cjs +10 -10
- package/dist/components/tickets/index.cjs +28 -28
- package/dist/components/ui/index.cjs +22 -22
- package/dist/{devices-Q5YHMXGV.cjs → devices-TZY7RF7M.cjs} +23 -23
- package/dist/{embeddable-chat-ST5IR6VN.cjs → embeddable-chat-HWQSP3DY.cjs} +93 -93
- package/dist/hooks/index.cjs +8 -8
- package/dist/index.cjs +28 -28
- package/dist/{knowledge-UJTJT36J.cjs → knowledge-UKC2BLQP.cjs} +23 -23
- package/dist/{logs-WMNITBLM.cjs → logs-MFVTQ5NN.cjs} +30 -30
- package/dist/platform-domains.cjs +2 -0
- package/dist/platform-domains.d.ts.map +1 -1
- package/dist/platform-domains.js +2 -0
- package/dist/{policies-TRXVBOH7.cjs → policies-BETELENB.cjs} +26 -26
- package/dist/{remote-session-SKNXYG6K.cjs → remote-session-F72S6I7J.cjs} +9 -9
- package/dist/{scripts-HECY7XDL.cjs → scripts-XDT3ZAXU.cjs} +29 -29
- package/dist/{software-update-NNFLEMYD.cjs → software-update-EW5X7R2X.cjs} +26 -26
- package/dist/{tickets-board-B2FH7Z4B.cjs → tickets-board-4PBXPSGJ.cjs} +12 -12
- package/dist/types/platform.d.ts +1 -1
- package/dist/types/platform.d.ts.map +1 -1
- package/dist/utils/index.cjs +13 -0
- package/dist/utils/platform-config.d.ts.map +1 -1
- package/dist/utils/platform-config.js +1 -0
- package/dist/utils/platform-identity.cjs +10 -0
- package/dist/utils/platform-identity.d.ts +3 -2
- package/dist/utils/platform-identity.d.ts.map +1 -1
- package/dist/utils/platform-identity.js +10 -0
- package/package.json +1 -1
- package/src/platform-domains.ts +2 -0
- package/src/styles/README.md +1 -0
- package/src/styles/ods-colors.css +16 -0
- package/src/types/platform.ts +1 -0
- package/src/utils/platform-config.tsx +1 -0
- package/src/utils/platform-identity.ts +19 -2
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
"use client";
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var _chunkLVKUMVUJcjs = require('../../chunk-LVKUMVUJ.cjs');
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _chunkTSJUL6IHcjs = require('../../chunk-TSJUL6IH.cjs');
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
@@ -16,9 +16,9 @@ var _chunk5E6JHOGXcjs = require('../../chunk-5E6JHOGX.cjs');
|
|
|
16
16
|
|
|
17
17
|
|
|
18
18
|
|
|
19
|
-
var
|
|
20
|
-
require('../../chunk-
|
|
21
|
-
require('../../chunk-
|
|
19
|
+
var _chunk72XMAKDAcjs = require('../../chunk-72XMAKDA.cjs');
|
|
20
|
+
require('../../chunk-E4LA4BEH.cjs');
|
|
21
|
+
require('../../chunk-GY2JESOC.cjs');
|
|
22
22
|
|
|
23
23
|
|
|
24
24
|
|
|
@@ -26,7 +26,7 @@ require('../../chunk-QU5K52OP.cjs');
|
|
|
26
26
|
|
|
27
27
|
|
|
28
28
|
|
|
29
|
-
var
|
|
29
|
+
var _chunk2IFCRPNPcjs = require('../../chunk-2IFCRPNP.cjs');
|
|
30
30
|
require('../../chunk-HQQE74RO.cjs');
|
|
31
31
|
require('../../chunk-DEY6XXGO.cjs');
|
|
32
32
|
|
|
@@ -34,25 +34,25 @@ require('../../chunk-DEY6XXGO.cjs');
|
|
|
34
34
|
|
|
35
35
|
|
|
36
36
|
|
|
37
|
-
var
|
|
38
|
-
require('../../chunk-
|
|
37
|
+
var _chunkXCH7SPGIcjs = require('../../chunk-XCH7SPGI.cjs');
|
|
38
|
+
require('../../chunk-FQSXZC2K.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-RO72PRQI.cjs');
|
|
43
43
|
|
|
44
44
|
|
|
45
45
|
var _chunkYUMFVQINcjs = require('../../chunk-YUMFVQIN.cjs');
|
|
46
46
|
|
|
47
47
|
|
|
48
48
|
|
|
49
|
-
var
|
|
49
|
+
var _chunkCEJDHCFZcjs = require('../../chunk-CEJDHCFZ.cjs');
|
|
50
50
|
|
|
51
51
|
|
|
52
|
-
var
|
|
53
|
-
require('../../chunk-
|
|
52
|
+
var _chunkTQPQKBBLcjs = require('../../chunk-TQPQKBBL.cjs');
|
|
53
|
+
require('../../chunk-PE26VSWT.cjs');
|
|
54
54
|
require('../../chunk-3RFQPQ7Z.cjs');
|
|
55
|
-
require('../../chunk-
|
|
55
|
+
require('../../chunk-GZKWF6NH.cjs');
|
|
56
56
|
require('../../chunk-EFTUFJS2.cjs');
|
|
57
57
|
require('../../chunk-ZOZR3QI2.cjs');
|
|
58
58
|
require('../../chunk-OMV5S5PI.cjs');
|
|
@@ -1844,30 +1844,30 @@ require('../../chunk-IYHH5EIO.cjs');
|
|
|
1844
1844
|
require('../../chunk-XIBCMGBW.cjs');
|
|
1845
1845
|
|
|
1846
1846
|
|
|
1847
|
-
var
|
|
1848
|
-
require('../../chunk-
|
|
1849
|
-
require('../../chunk-
|
|
1847
|
+
var _chunkNET74KSQcjs = require('../../chunk-NET74KSQ.cjs');
|
|
1848
|
+
require('../../chunk-3RYIF4OW.cjs');
|
|
1849
|
+
require('../../chunk-SVP6DJFL.cjs');
|
|
1850
1850
|
require('../../chunk-JKX2C3I2.cjs');
|
|
1851
1851
|
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-NS64LMVE.cjs');
|
|
1856
1856
|
|
|
1857
1857
|
|
|
1858
|
-
var
|
|
1859
|
-
require('../../chunk-
|
|
1858
|
+
var _chunk22XAPV6Ncjs = require('../../chunk-22XAPV6N.cjs');
|
|
1859
|
+
require('../../chunk-OJJ4RL2T.cjs');
|
|
1860
1860
|
require('../../chunk-63N4FN5V.cjs');
|
|
1861
1861
|
|
|
1862
1862
|
|
|
1863
|
-
var
|
|
1863
|
+
var _chunkM7YZGRAVcjs = require('../../chunk-M7YZGRAV.cjs');
|
|
1864
1864
|
|
|
1865
1865
|
|
|
1866
1866
|
|
|
1867
1867
|
|
|
1868
1868
|
|
|
1869
1869
|
|
|
1870
|
-
var
|
|
1870
|
+
var _chunkEQZXJUYVcjs = require('../../chunk-EQZXJUYV.cjs');
|
|
1871
1871
|
require('../../chunk-S5C3OZCO.cjs');
|
|
1872
1872
|
require('../../chunk-32ASZMTV.cjs');
|
|
1873
1873
|
require('../../chunk-OOYBIS7D.cjs');
|
|
@@ -1883,8 +1883,8 @@ require('../../chunk-I5MSCD57.cjs');
|
|
|
1883
1883
|
|
|
1884
1884
|
var _chunkASMNNSUQcjs = require('../../chunk-ASMNNSUQ.cjs');
|
|
1885
1885
|
require('../../chunk-CW3ML76U.cjs');
|
|
1886
|
-
require('../../chunk-
|
|
1887
|
-
require('../../chunk-
|
|
1886
|
+
require('../../chunk-MWLD6NXV.cjs');
|
|
1887
|
+
require('../../chunk-R3TWQ3ZJ.cjs');
|
|
1888
1888
|
require('../../chunk-DGFDBPO7.cjs');
|
|
1889
1889
|
require('../../chunk-HOTM4UM6.cjs');
|
|
1890
1890
|
require('../../chunk-UJ7AXHRZ.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(_chunkCEJDHCFZcjs.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
|
+
_chunk72XMAKDAcjs.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, _chunk2IFCRPNPcjs.Select, { value: _nullishCoalesce(rhf.value, () => ( "")), onValueChange: rhf.onChange, children: [
|
|
2384
2384
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2385
|
-
|
|
2385
|
+
_chunk2IFCRPNPcjs.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, _chunk2IFCRPNPcjs.SelectValue, { placeholder: "Select\u2026" })
|
|
2392
2392
|
}
|
|
2393
2393
|
),
|
|
2394
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2394
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2IFCRPNPcjs.SelectContent, { children: (_nullishCoalesce(field.options, () => ( []))).map((opt) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2IFCRPNPcjs.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
|
+
_chunk72XMAKDAcjs.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, _chunk72XMAKDAcjs.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
|
}
|
|
@@ -2559,7 +2559,7 @@ function BookingForm({
|
|
|
2559
2559
|
() => [...BUILT_IN_BOOKING_FIELDS.map((field) => field.name), ...supportedFields.map((field) => field.name)],
|
|
2560
2560
|
[supportedFields]
|
|
2561
2561
|
);
|
|
2562
|
-
const formRescue =
|
|
2562
|
+
const formRescue = _chunkXCH7SPGIcjs.useRescuedForm.call(void 0,
|
|
2563
2563
|
{ watch, getValues, setValue },
|
|
2564
2564
|
{
|
|
2565
2565
|
rescue,
|
|
@@ -2568,7 +2568,7 @@ function BookingForm({
|
|
|
2568
2568
|
fieldPath: (name) => BUILT_IN_BOOKING_FIELDS.some((field) => field.name === name) ? name : `formFields.${name}`
|
|
2569
2569
|
}
|
|
2570
2570
|
);
|
|
2571
|
-
const { toast } =
|
|
2571
|
+
const { toast } = _chunkXCH7SPGIcjs.useToast.call(void 0, );
|
|
2572
2572
|
const onInvalid = () => {
|
|
2573
2573
|
if (deniedEmailDomains && emailDomainDenied(getValues("email"), deniedEmailDomains)) {
|
|
2574
2574
|
toast({
|
|
@@ -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, ..._chunkCEJDHCFZcjs.HUBSPOT_DO_NOT_COLLECT_FORM_PROPS, children: [
|
|
2660
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk72XMAKDAcjs.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
|
+
_chunk72XMAKDAcjs.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
|
+
_chunk72XMAKDAcjs.CheckboxBlock,
|
|
2709
2709
|
{
|
|
2710
2710
|
id: `ms-consent-${box.communicationTypeId}`,
|
|
2711
2711
|
checked: _nullishCoalesce(_optionalChain([current, 'optionalAccess', _34 => _34.consented]), () => ( false)),
|
|
@@ -2777,7 +2777,7 @@ function skeletonRows(fieldRows) {
|
|
|
2777
2777
|
// src/components/meeting-scheduler/confirmation.tsx
|
|
2778
2778
|
|
|
2779
2779
|
function Confirmation({ confirmation, timezone }) {
|
|
2780
|
-
const when =
|
|
2780
|
+
const when = _chunkEQZXJUYVcjs.formatDateWithTimezone.call(void 0, confirmation.startTimeMs, timezone, "weekdayDateTimeZoned", {
|
|
2781
2781
|
viewerLocale: true
|
|
2782
2782
|
});
|
|
2783
2783
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-1 flex-col items-center justify-center gap-[var(--spacing-system-m)] text-center", children: [
|
|
@@ -2787,7 +2787,7 @@ function Confirmation({ confirmation, timezone }) {
|
|
|
2787
2787
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "p", { className: "text-ods-text-secondary text-h6", children: [
|
|
2788
2788
|
when,
|
|
2789
2789
|
" \xB7 ",
|
|
2790
|
-
|
|
2790
|
+
_chunkEQZXJUYVcjs.formatDurationCompact.call(void 0, confirmation.durationMs / 1e3)
|
|
2791
2791
|
] }),
|
|
2792
2792
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-ods-text-secondary text-h6", children: "A calendar invite is on its way to your email." })
|
|
2793
2793
|
] });
|
|
@@ -2808,7 +2808,7 @@ 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, _chunk2IFCRPNPcjs.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: [
|
|
@@ -2844,13 +2844,13 @@ 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, _chunk2IFCRPNPcjs.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: [
|
|
2851
2851
|
hosts.length > 0 && hosts.length <= 3 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex flex-col gap-[var(--spacing-system-s)]", children: hosts.map((host) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center gap-[var(--spacing-system-xs)]", children: [
|
|
2852
2852
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2853
|
-
|
|
2853
|
+
_chunkEQZXJUYVcjs.SquareAvatar,
|
|
2854
2854
|
{
|
|
2855
2855
|
variant: "round",
|
|
2856
2856
|
size: "sm",
|
|
@@ -2865,7 +2865,7 @@ function SchedulerContextPanel({
|
|
|
2865
2865
|
] })
|
|
2866
2866
|
] }, host.name)) }),
|
|
2867
2867
|
hosts.length > 3 && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col gap-[var(--spacing-system-xs)]", children: [
|
|
2868
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2868
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkM7YZGRAVcjs.AvatarStack, { people: hosts, max: 4, size: "lg", label: "Hosts" }),
|
|
2869
2869
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "p", { className: "text-ods-text-secondary text-h6", children: [
|
|
2870
2870
|
hosts.length,
|
|
2871
2871
|
" hosts on this calendar"
|
|
@@ -2875,7 +2875,7 @@ function SchedulerContextPanel({
|
|
|
2875
2875
|
// Post-selection, or a link that offers one length: a static line,
|
|
2876
2876
|
// which is what sits beside the host on the header-strip layouts.
|
|
2877
2877
|
selectedDurationMs != null && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "p", { className: "shrink-0 text-ods-text-secondary text-h6", children: [
|
|
2878
|
-
|
|
2878
|
+
_chunkEQZXJUYVcjs.formatDurationCompact.call(void 0, selectedDurationMs / 1e3),
|
|
2879
2879
|
" call"
|
|
2880
2880
|
] })
|
|
2881
2881
|
) : null
|
|
@@ -2891,7 +2891,7 @@ function SchedulerContextPanel({
|
|
|
2891
2891
|
size: "small-legacy",
|
|
2892
2892
|
disabled,
|
|
2893
2893
|
onClick: () => onSelectDuration(ms),
|
|
2894
|
-
children:
|
|
2894
|
+
children: _chunkEQZXJUYVcjs.formatDurationCompact.call(void 0, ms / 1e3)
|
|
2895
2895
|
},
|
|
2896
2896
|
ms
|
|
2897
2897
|
)) })
|
|
@@ -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
|
+
_chunk72XMAKDAcjs.TimezoneSelect,
|
|
2910
2910
|
{
|
|
2911
2911
|
value: timezone,
|
|
2912
2912
|
disabled,
|
|
@@ -2929,7 +2929,7 @@ function HostIdentity({ hosts }) {
|
|
|
2929
2929
|
if (hosts.length === 0) return null;
|
|
2930
2930
|
if (hosts.length > 3) {
|
|
2931
2931
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-col gap-[var(--spacing-system-xxs)]", children: [
|
|
2932
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2932
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkM7YZGRAVcjs.AvatarStack, { people: hosts, max: 4, size: "lg", label: "Hosts" }),
|
|
2933
2933
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "p", { className: "text-ods-text-secondary text-h6", children: [
|
|
2934
2934
|
hosts.length,
|
|
2935
2935
|
" hosts on this calendar"
|
|
@@ -2938,7 +2938,7 @@ function HostIdentity({ hosts }) {
|
|
|
2938
2938
|
}
|
|
2939
2939
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex min-w-0 flex-col gap-[var(--spacing-system-s)]", children: hosts.map((host) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center gap-[var(--spacing-system-xs)]", children: [
|
|
2940
2940
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2941
|
-
|
|
2941
|
+
_chunkEQZXJUYVcjs.SquareAvatar,
|
|
2942
2942
|
{
|
|
2943
2943
|
variant: "round",
|
|
2944
2944
|
size: "sm",
|
|
@@ -2975,18 +2975,18 @@ function SchedulerModalHeader({
|
|
|
2975
2975
|
size: "small-legacy",
|
|
2976
2976
|
disabled,
|
|
2977
2977
|
onClick: () => onSelectDuration(ms),
|
|
2978
|
-
children:
|
|
2978
|
+
children: _chunkEQZXJUYVcjs.formatDurationCompact.call(void 0, ms / 1e3)
|
|
2979
2979
|
},
|
|
2980
2980
|
ms
|
|
2981
2981
|
)) }) : selectedDurationMs != null && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "p", { className: "shrink-0 text-ods-text-secondary text-h6", children: [
|
|
2982
|
-
|
|
2982
|
+
_chunkEQZXJUYVcjs.formatDurationCompact.call(void 0, selectedDurationMs / 1e3),
|
|
2983
2983
|
" call"
|
|
2984
2984
|
] })
|
|
2985
2985
|
] }),
|
|
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
|
+
_chunk72XMAKDAcjs.TimezoneSelect,
|
|
2990
2990
|
{
|
|
2991
2991
|
value: timezone,
|
|
2992
2992
|
disabled,
|
|
@@ -3035,7 +3035,7 @@ function dateFromDayKey(key) {
|
|
|
3035
3035
|
return new Date(y, m - 1, d, 12);
|
|
3036
3036
|
}
|
|
3037
3037
|
function timeLabelInZone(ms, timeZone) {
|
|
3038
|
-
return
|
|
3038
|
+
return _chunkEQZXJUYVcjs.formatTimeWithTimezone.call(void 0, ms, timeZone, { viewerLocale: true });
|
|
3039
3039
|
}
|
|
3040
3040
|
var CALENDAR_W = "content-md:w-[19rem] content-md:shrink-0 content-lg:w-[16rem]";
|
|
3041
3041
|
var COLUMN_HEADING_CLASS = "shrink-0 text-h4 text-ods-text-primary";
|
|
@@ -3088,25 +3088,25 @@ var MODAL_CHIP_GRID_CLASS = _chunk3ATAYP36cjs.cn.call(void 0,
|
|
|
3088
3088
|
function monthLabelFor(offset) {
|
|
3089
3089
|
const now = /* @__PURE__ */ new Date();
|
|
3090
3090
|
const month = new Date(now.getFullYear(), now.getMonth() + offset, 1);
|
|
3091
|
-
return
|
|
3091
|
+
return _chunkEQZXJUYVcjs.formatDateWithTimezone.call(void 0, month, _chunkEQZXJUYVcjs.VIEWER_TIMEZONE, "monthYear");
|
|
3092
3092
|
}
|
|
3093
3093
|
var DISABLE_EVERY_DAY = () => true;
|
|
3094
3094
|
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() + _chunkCEJDHCFZcjs.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
|
+
_chunk72XMAKDAcjs.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(_chunkCEJDHCFZcjs.MAX_MONTH_OFFSET, offset)));
|
|
3110
3110
|
},
|
|
3111
3111
|
fromDate: startMonth,
|
|
3112
3112
|
toDate: endMonth,
|
|
@@ -3221,7 +3221,7 @@ function SlotPicker({
|
|
|
3221
3221
|
{
|
|
3222
3222
|
className: modal ? _chunk3ATAYP36cjs.cn.call(void 0, COLUMN_STACK, MODAL_COLUMN_BOX, MODAL_TIMES_H, "min-w-0 content-md:flex-1") : _chunk3ATAYP36cjs.cn.call(void 0, COLUMN_STACK, COLUMN_BOX, "min-w-0 content-md:flex-1"),
|
|
3223
3223
|
children: isLoading ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TimeChipsSkeleton, {}) : selectedDay ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
3224
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: COLUMN_HEADING_CLASS, children:
|
|
3224
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: COLUMN_HEADING_CLASS, children: _chunkEQZXJUYVcjs.formatDateWithTimezone.call(void 0, dateFromDayKey(selectedDay), _chunkEQZXJUYVcjs.VIEWER_TIMEZONE, "weekday", { viewerLocale: true }) }),
|
|
3225
3225
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: modal ? MODAL_CHIP_GRID_CLASS : CHIP_GRID_CLASS, children: daySlots.map((ms) => {
|
|
3226
3226
|
const isSelected = selectedSlot === ms;
|
|
3227
3227
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -3250,7 +3250,7 @@ function SlotPicker({
|
|
|
3250
3250
|
monthLabelFor(monthOffset),
|
|
3251
3251
|
"."
|
|
3252
3252
|
] }),
|
|
3253
|
-
monthOffset <
|
|
3253
|
+
monthOffset < _chunkCEJDHCFZcjs.MAX_MONTH_OFFSET && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
3254
3254
|
_chunk2QMBXGMQcjs.Button,
|
|
3255
3255
|
{
|
|
3256
3256
|
variant: "outline",
|
|
@@ -3274,10 +3274,10 @@ function SlotPicker({
|
|
|
3274
3274
|
|
|
3275
3275
|
|
|
3276
3276
|
function useNextAvailableLabel(ms) {
|
|
3277
|
-
const hydrated =
|
|
3277
|
+
const hydrated = _chunkTQPQKBBLcjs.useIsHydrated.call(void 0, );
|
|
3278
3278
|
return _react.useMemo.call(void 0, () => {
|
|
3279
3279
|
if (!hydrated || ms == null) return null;
|
|
3280
|
-
return
|
|
3280
|
+
return _chunkEQZXJUYVcjs.formatDateWithTimezone.call(void 0, ms, _chunkEQZXJUYVcjs.VIEWER_TIMEZONE, "shortWeekdayDateTime", { viewerLocale: true }) || null;
|
|
3281
3281
|
}, [hydrated, ms]);
|
|
3282
3282
|
}
|
|
3283
3283
|
function DirectoryRow({
|
|
@@ -3288,7 +3288,7 @@ function DirectoryRow({
|
|
|
3288
3288
|
const nextLabel = useNextAvailableLabel(link.nextAvailableMs);
|
|
3289
3289
|
const subtitle = [
|
|
3290
3290
|
link.description,
|
|
3291
|
-
link.durationsMinutes.length > 0 ? link.durationsMinutes.map((m) =>
|
|
3291
|
+
link.durationsMinutes.length > 0 ? link.durationsMinutes.map((m) => _chunkEQZXJUYVcjs.formatDurationCompact.call(void 0, m * 60)).join(" / ") : null,
|
|
3292
3292
|
link.kind === "team" ? "Team" : null
|
|
3293
3293
|
].filter(Boolean).join(" \u2022 ");
|
|
3294
3294
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -3302,8 +3302,8 @@ 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,
|
|
3306
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3305
|
+
audienceLabel && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk22XAPV6Ncjs.StatusBadge, { text: `For ${audienceLabel}`, singleLine: true, className: "hidden shrink-0 content-sm:inline-flex" }),
|
|
3306
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkM7YZGRAVcjs.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" }),
|
|
3309
3309
|
/* @__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, () => ( " ")) })
|
|
@@ -3383,7 +3383,7 @@ function MeetingSchedulerDirectory({
|
|
|
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
|
+
_chunkTSJUL6IHcjs.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
|
+
_chunkTSJUL6IHcjs.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
|
+
_chunkLVKUMVUJcjs.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 = _chunkTQPQKBBLcjs.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;
|
|
@@ -3556,8 +3556,8 @@ function HubSpotMeetingScheduler({
|
|
|
3556
3556
|
const [selectedSlot, setSelectedSlot] = _react.useState.call(void 0, null);
|
|
3557
3557
|
const [confirmation, setConfirmation] = _react.useState.call(void 0, null);
|
|
3558
3558
|
const [bookingError, setBookingError] = _react.useState.call(void 0, null);
|
|
3559
|
-
const { honeypotInputProps, getSignals, resetSignals } =
|
|
3560
|
-
const { toast } =
|
|
3559
|
+
const { honeypotInputProps, getSignals, resetSignals } = _chunkXCH7SPGIcjs.useHumanitySignals.call(void 0, );
|
|
3560
|
+
const { toast } = _chunkXCH7SPGIcjs.useToast.call(void 0, );
|
|
3561
3561
|
const autoAdvanceCount = _react.useRef.call(void 0, 0);
|
|
3562
3562
|
const [machineFor, setMachineFor] = _react.useState.call(void 0, meetingId);
|
|
3563
3563
|
if (machineFor !== meetingId) {
|
|
@@ -3631,7 +3631,7 @@ function HubSpotMeetingScheduler({
|
|
|
3631
3631
|
return;
|
|
3632
3632
|
}
|
|
3633
3633
|
if (result.ok && result.confirmation) {
|
|
3634
|
-
|
|
3634
|
+
_chunkXCH7SPGIcjs.completeFormRescue.call(void 0, rescue, payload[_chunkNET74KSQcjs.FORM_RESCUE_ATTEMPT_FIELD]);
|
|
3635
3635
|
setConfirmation(result.confirmation);
|
|
3636
3636
|
setStep("confirmed");
|
|
3637
3637
|
_optionalChain([onBooked, 'optionalCall', _47 => _47(result.confirmation)]);
|
|
@@ -3716,11 +3716,11 @@ function HubSpotMeetingScheduler({
|
|
|
3716
3716
|
setSelectedDay(null);
|
|
3717
3717
|
setSelectedSlot(null);
|
|
3718
3718
|
};
|
|
3719
|
-
const summary = selectedSlot != null && durationMs != null && timezone != null ? `${
|
|
3719
|
+
const summary = selectedSlot != null && durationMs != null && timezone != null ? `${_chunkEQZXJUYVcjs.formatDateWithTimezone.call(void 0, selectedSlot, timezone, "weekdayDateTimeZoned", { viewerLocale: true })} \xB7 ${_chunkEQZXJUYVcjs.formatDurationCompact.call(void 0, durationMs / 1e3)}` : null;
|
|
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
|
+
_chunk2IFCRPNPcjs.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, _chunk72XMAKDAcjs.Alert, { variant: "warning", className: "mx-[var(--spacing-system-m)] mt-[var(--spacing-system-m)] w-auto", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk72XMAKDAcjs.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
|
{
|
|
@@ -3857,10 +3857,10 @@ function HubSpotMeetingScheduler({
|
|
|
3857
3857
|
durations.length > 0
|
|
3858
3858
|
) : durationMs != null && selectedSlot != null && timezone) ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk3ATAYP36cjs.cn.call(void 0, stepPanelClass, "gap-[var(--spacing-system-m)]"), children: [
|
|
3859
3859
|
selectedSlot != null && durationMs != null && timezone != null && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "p", { className: "text-ods-text-primary text-h4", children: [
|
|
3860
|
-
|
|
3860
|
+
_chunkEQZXJUYVcjs.formatDateWithTimezone.call(void 0, selectedSlot, timezone, "weekdayDateTimeZoned", { viewerLocale: true }),
|
|
3861
3861
|
" \xB7",
|
|
3862
3862
|
" ",
|
|
3863
|
-
|
|
3863
|
+
_chunkEQZXJUYVcjs.formatDurationCompact.call(void 0, durationMs / 1e3)
|
|
3864
3864
|
] }),
|
|
3865
3865
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3866
3866
|
DetailsForm,
|
|
@@ -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
|
+
_chunk72XMAKDAcjs.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, _chunk72XMAKDAcjs.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 ? (
|