@flamingo-stack/openframe-frontend-core 0.0.754 → 0.0.756
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-AG4HR6Z6.cjs → chunk-2ANICXS7.cjs} +16 -16
- package/dist/{chunk-U4I3QR2A.cjs → chunk-4YL4Y3BV.cjs} +11 -11
- package/dist/{chunk-YSFOYBYC.cjs → chunk-57JA37HP.cjs} +428 -411
- package/dist/{chunk-TPJTFN7O.cjs → chunk-7KPU7RGS.cjs} +73 -73
- package/dist/{chunk-MGF3FUKD.cjs → chunk-AKK3EO37.cjs} +4 -1
- package/dist/{chunk-3GG3QAPT.cjs → chunk-AXBVN5SW.cjs} +63 -57
- package/dist/{chunk-JXACH52M.cjs → chunk-BTIYXBA2.cjs} +4 -4
- package/dist/{chunk-BLZIUELR.cjs → chunk-CYDWQYIQ.cjs} +22 -22
- package/dist/{chunk-P6F6PHVK.cjs → chunk-EFTUFJS2.cjs} +4 -4
- package/dist/{chunk-LVO7FALW.cjs → chunk-F64VMOIB.cjs} +5 -5
- package/dist/{chunk-MOEILCEX.cjs → chunk-KFUC2XF7.cjs} +7 -7
- package/dist/{chunk-GQYCVZJI.cjs → chunk-KNNJ4WLF.cjs} +4 -4
- package/dist/{chunk-BQQ3JGEO.cjs → chunk-KSU3CXKY.cjs} +3 -3
- package/dist/{chunk-YRULLK7N.cjs → chunk-LOFDIDSD.cjs} +8 -2
- package/dist/{chunk-EDSFLB7J.cjs → chunk-MBQTLZAG.cjs} +11 -11
- package/dist/{chunk-TBDVF4SN.cjs → chunk-MDXZMTCK.cjs} +38 -38
- package/dist/{chunk-FAFFWYEH.cjs → chunk-MR5KMPSE.cjs} +6 -6
- package/dist/{chunk-ZNV5FE4T.cjs → chunk-PUK27ZB6.cjs} +22 -22
- package/dist/{chunk-RTQN35EP.cjs → chunk-QKFJ6ORK.cjs} +21 -21
- package/dist/{chunk-SDF5UUTE.cjs → chunk-QTYSYEHK.cjs} +74 -74
- package/dist/{chunk-OGKV5NOP.cjs → chunk-TAEEGNFL.cjs} +42 -42
- package/dist/{chunk-DW5OKTUP.cjs → chunk-VOXDBCBV.cjs} +36 -36
- package/dist/{chunk-UNRNLSG4.cjs → chunk-VUSXDMCE.cjs} +2 -2
- package/dist/{chunk-IVAAQSOU.cjs → chunk-W5MEHJRQ.cjs} +6 -6
- package/dist/{cloud-tenants-5OTPO7FL.cjs → cloud-tenants-NOZGXQZY.cjs} +10 -10
- package/dist/components/case-studies/index.cjs +20 -20
- package/dist/components/chat/embeddable-chat.js +11 -6
- package/dist/components/chat/index.cjs +7 -7
- package/dist/components/contact/index.cjs +11 -11
- package/dist/components/context-menu.d.ts +2 -2
- package/dist/components/context-menu.d.ts.map +1 -1
- package/dist/components/context-menu.js +19 -12
- package/dist/components/docs/index.cjs +14 -14
- package/dist/components/embeds/index.cjs +11 -11
- package/dist/components/faq/index.cjs +12 -12
- package/dist/components/features/index.cjs +10 -10
- package/dist/components/features/time-tracker/time-tracker-header-button.d.ts.map +1 -1
- package/dist/components/features/time-tracker/time-tracker-header-button.js +3 -1
- package/dist/components/help-center-pages/index.cjs +71 -71
- package/dist/components/index.cjs +44 -44
- package/dist/components/meeting-scheduler/index.cjs +35 -35
- package/dist/components/navigation/index.cjs +13 -13
- package/dist/components/onboarding-guides/index.cjs +13 -13
- package/dist/components/popover.d.ts.map +1 -1
- package/dist/components/popover.js +3 -1
- package/dist/components/product-demo/index.cjs +9 -9
- package/dist/components/tickets/index.cjs +15 -15
- package/dist/components/ui/date-picker.d.ts.map +1 -1
- package/dist/components/ui/date-picker.js +9 -4
- package/dist/components/ui/dropdown-menu.d.ts +2 -2
- package/dist/components/ui/dropdown-menu.d.ts.map +1 -1
- package/dist/components/ui/dropdown-menu.js +4 -1
- package/dist/components/ui/file-manager/index.cjs +6 -6
- package/dist/components/ui/index.cjs +10 -10
- package/dist/components/ui/menubar.d.ts +2 -2
- package/dist/components/ui/menubar.d.ts.map +1 -1
- package/dist/components/ui/menubar.js +22 -15
- package/dist/components/ui/modal-v2.d.ts.map +1 -1
- package/dist/components/ui/modal-v2.js +5 -2
- package/dist/components/ui/searchable-select.d.ts.map +1 -1
- package/dist/components/ui/searchable-select.js +3 -1
- package/dist/components/ui/select.d.ts.map +1 -1
- package/dist/components/ui/select.js +27 -23
- package/dist/components/ui/tag-select-dropdown.d.ts.map +1 -1
- package/dist/components/ui/tag-select-dropdown.js +3 -1
- package/dist/{devices-MBGMD7BO.cjs → devices-M4KBTOTC.cjs} +11 -11
- package/dist/{embeddable-chat-CMEHSDV7.cjs → embeddable-chat-KGJVVG2V.cjs} +88 -83
- package/dist/index.cjs +14 -14
- package/dist/{knowledge-LO5RK6PM.cjs → knowledge-VVF6CJEG.cjs} +11 -11
- package/dist/{logs-QRGJSZ4G.cjs → logs-7E6HBJ55.cjs} +18 -18
- package/dist/{policies-OIQDO6F5.cjs → policies-UMZLJTBD.cjs} +14 -14
- package/dist/{remote-session-57DGC4X3.cjs → remote-session-SKNXYG6K.cjs} +7 -7
- package/dist/{scripts-XULUNPDV.cjs → scripts-XVNAEYCH.cjs} +17 -17
- package/dist/{software-update-SRF55434.cjs → software-update-U43ZFHMC.cjs} +14 -14
- package/dist/{tickets-board-EP6L3BSV.cjs → tickets-board-B2FH7Z4B.cjs} +9 -9
- package/eslint-config/base.js +7 -1
- package/eslint-config/popup-portal.js +68 -0
- package/package.json +1 -1
- package/src/components/chat/embeddable-chat.tsx +13 -6
- package/src/components/context-menu.tsx +20 -13
- package/src/components/features/time-tracker/time-tracker-header-button.tsx +3 -1
- package/src/components/popover.tsx +3 -1
- package/src/components/ui/date-picker.tsx +9 -4
- package/src/components/ui/dropdown-menu.tsx +4 -1
- package/src/components/ui/menubar.tsx +23 -16
- package/src/components/ui/modal-v2.tsx +17 -3
- package/src/components/ui/searchable-select.tsx +3 -1
- package/src/components/ui/select.tsx +28 -24
- package/src/components/ui/tag-select-dropdown.tsx +3 -1
|
@@ -10,14 +10,14 @@ var _chunkA6P6DHEZcjs = require('./chunk-A6P6DHEZ.cjs');
|
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
|
|
13
|
-
var
|
|
13
|
+
var _chunkLOFDIDSDcjs = require('./chunk-LOFDIDSD.cjs');
|
|
14
14
|
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
|
|
18
18
|
|
|
19
19
|
|
|
20
|
-
var
|
|
20
|
+
var _chunkEFTUFJS2cjs = require('./chunk-EFTUFJS2.cjs');
|
|
21
21
|
|
|
22
22
|
|
|
23
23
|
var _chunk2NETL2MScjs = require('./chunk-2NETL2MS.cjs');
|
|
@@ -122,7 +122,7 @@ var _chunkHTRILBJDcjs = require('./chunk-HTRILBJD.cjs');
|
|
|
122
122
|
|
|
123
123
|
|
|
124
124
|
|
|
125
|
-
var
|
|
125
|
+
var _chunkAKK3EO37cjs = require('./chunk-AKK3EO37.cjs');
|
|
126
126
|
|
|
127
127
|
|
|
128
128
|
var _chunkNO5UJLLQcjs = require('./chunk-NO5UJLLQ.cjs');
|
|
@@ -140,6 +140,9 @@ var _chunkV45KLJQPcjs = require('./chunk-V45KLJQP.cjs');
|
|
|
140
140
|
var _chunkOF336YWGcjs = require('./chunk-OF336YWG.cjs');
|
|
141
141
|
|
|
142
142
|
|
|
143
|
+
var _chunkRB6BSE3Ocjs = require('./chunk-RB6BSE3O.cjs');
|
|
144
|
+
|
|
145
|
+
|
|
143
146
|
var _chunkH3RYUTNDcjs = require('./chunk-H3RYUTND.cjs');
|
|
144
147
|
|
|
145
148
|
|
|
@@ -1070,29 +1073,32 @@ var SelectScrollDownButton = _react.forwardRef.call(void 0, ({ className, ...pro
|
|
|
1070
1073
|
}
|
|
1071
1074
|
));
|
|
1072
1075
|
SelectScrollDownButton.displayName = SelectPrimitive.ScrollDownButton.displayName;
|
|
1073
|
-
var SelectContent = _react.forwardRef.call(void 0, ({ className, children, position = "popper", ...props }, ref) =>
|
|
1074
|
-
|
|
1075
|
-
{
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
|
|
1082
|
-
|
|
1083
|
-
|
|
1084
|
-
|
|
1085
|
-
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
|
|
1076
|
+
var SelectContent = _react.forwardRef.call(void 0, ({ className, children, position = "popper", ...props }, ref) => {
|
|
1077
|
+
const container = _chunkRB6BSE3Ocjs.usePortalContainer.call(void 0, );
|
|
1078
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, SelectPrimitive.Portal, { container: _nullishCoalesce(container, () => ( void 0)), children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
1079
|
+
SelectPrimitive.Content,
|
|
1080
|
+
{
|
|
1081
|
+
ref,
|
|
1082
|
+
className: _chunk3ATAYP36cjs.cn.call(void 0,
|
|
1083
|
+
"relative z-[9999] max-h-96 overflow-hidden rounded-[4px] border border-ods-border bg-ods-card text-ods-text-primary",
|
|
1084
|
+
"data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",
|
|
1085
|
+
position === "popper" && "data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",
|
|
1086
|
+
className
|
|
1087
|
+
),
|
|
1088
|
+
position,
|
|
1089
|
+
style: {
|
|
1090
|
+
width: "var(--radix-select-trigger-width)",
|
|
1091
|
+
minWidth: "var(--radix-select-trigger-width)"
|
|
1092
|
+
},
|
|
1093
|
+
...props,
|
|
1094
|
+
children: [
|
|
1095
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, SelectScrollUpButton, {}),
|
|
1096
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, SelectPrimitive.Viewport, { className: "w-full", children }),
|
|
1097
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, SelectScrollDownButton, {})
|
|
1098
|
+
]
|
|
1099
|
+
}
|
|
1100
|
+
) });
|
|
1101
|
+
});
|
|
1096
1102
|
SelectContent.displayName = SelectPrimitive.Content.displayName;
|
|
1097
1103
|
var SelectLabel = _react.forwardRef.call(void 0, ({ className, ...props }, ref) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, SelectPrimitive.Label, { ref, className: _chunk3ATAYP36cjs.cn.call(void 0, "py-1.5 pl-8 pr-2 font-semibold text-h6", className), ...props }));
|
|
1098
1104
|
SelectLabel.displayName = SelectPrimitive.Label.displayName;
|
|
@@ -1199,9 +1205,9 @@ function actionToMenuItems(action, idx) {
|
|
|
1199
1205
|
function renderActionButton(action, opts = {}) {
|
|
1200
1206
|
const button = renderRawActionButton(action, opts);
|
|
1201
1207
|
if (!action.tooltip) return button;
|
|
1202
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1203
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1204
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1208
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEFTUFJS2cjs.TooltipProvider, { delayDuration: 0, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkEFTUFJS2cjs.Tooltip, { children: [
|
|
1209
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEFTUFJS2cjs.TooltipTrigger, { asChild: true, children: button }),
|
|
1210
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEFTUFJS2cjs.TooltipContent, { children: action.tooltip })
|
|
1205
1211
|
] }) });
|
|
1206
1212
|
}
|
|
1207
1213
|
function renderRawActionButton(action, opts = {}) {
|
|
@@ -1225,7 +1231,7 @@ function renderRawActionButton(action, opts = {}) {
|
|
|
1225
1231
|
}
|
|
1226
1232
|
if (action.submenu && action.submenu.length > 0) {
|
|
1227
1233
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1228
|
-
|
|
1234
|
+
_chunkEFTUFJS2cjs.ActionsMenuDropdown,
|
|
1229
1235
|
{
|
|
1230
1236
|
groups: [{ items: action.submenu }],
|
|
1231
1237
|
customTrigger: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -1358,10 +1364,10 @@ function IconButtonsVariant({
|
|
|
1358
1364
|
selector,
|
|
1359
1365
|
loading ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, ActionSkeletons, { actions: desktopActions }) : /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
1360
1366
|
desktopActions.map((action, idx) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _react2.default.Fragment, { children: renderActionButton(action) }, actionKey(action, idx))),
|
|
1361
|
-
hasMenuActions && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1367
|
+
hasMenuActions && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEFTUFJS2cjs.ActionsMenuDropdown, { groups: menuActions })
|
|
1362
1368
|
] })
|
|
1363
1369
|
] }),
|
|
1364
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunk3ATAYP36cjs.cn.call(void 0, "flex content-md:hidden", className), children: loading ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkH3RYUTNDcjs.UnifiedSkeleton, { className: MOBILE_TRIGGER_SKELETON_CLASS }) : useSingleActionMobile && singleAction ? renderActionButton(singleAction, { iconOnly: true }) : hasMobileMenuItems ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1370
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunk3ATAYP36cjs.cn.call(void 0, "flex content-md:hidden", className), children: loading ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkH3RYUTNDcjs.UnifiedSkeleton, { className: MOBILE_TRIGGER_SKELETON_CLASS }) : useSingleActionMobile && singleAction ? renderActionButton(singleAction, { iconOnly: true }) : hasMobileMenuItems ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEFTUFJS2cjs.ActionsMenuDropdown, { groups: mobileMenuGroups }) : null })
|
|
1365
1371
|
] });
|
|
1366
1372
|
}
|
|
1367
1373
|
function PrimaryButtonsVariant({
|
|
@@ -1400,7 +1406,7 @@ function MenuPrimaryVariant({
|
|
|
1400
1406
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk3ATAYP36cjs.cn.call(void 0, "hidden items-center content-md:flex", ACTIONS_GAP, className), children: [
|
|
1401
1407
|
selector,
|
|
1402
1408
|
loading ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, ActionSkeletons, { actions: desktopActions }) : /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
1403
|
-
hasMenuActions && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1409
|
+
hasMenuActions && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEFTUFJS2cjs.ActionsMenuDropdown, { groups: menuActions }),
|
|
1404
1410
|
desktopActions.map((action, idx) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _react2.default.Fragment, { children: renderActionButton({ ...action, variant: action.variant || "accent" }) }, `desktop-${actionKey(action, idx)}`))
|
|
1405
1411
|
] })
|
|
1406
1412
|
] }),
|
|
@@ -1408,7 +1414,7 @@ function MenuPrimaryVariant({
|
|
|
1408
1414
|
// The selector rides into the menu as its header row: on mobile the
|
|
1409
1415
|
// title row has no room for it, and hiding it entirely (what
|
|
1410
1416
|
// `icon-buttons` does) would leave no way to switch views at all.
|
|
1411
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1417
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEFTUFJS2cjs.ActionsMenuDropdown, { groups: mobileMenuGroups, header: selector })
|
|
1412
1418
|
) : null })
|
|
1413
1419
|
] });
|
|
1414
1420
|
}
|
|
@@ -1417,7 +1423,7 @@ function CompactPrimaryActions({ actions }) {
|
|
|
1417
1423
|
const fold = foldable.length > 1;
|
|
1418
1424
|
const inline = fold ? actions.filter((action) => !foldable.includes(action)) : actions;
|
|
1419
1425
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
1420
|
-
fold && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1426
|
+
fold && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEFTUFJS2cjs.ActionsMenuDropdown, { groups: [{ items: foldable.flatMap(actionToMenuItems) }] }),
|
|
1421
1427
|
inline.map((action, idx) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _react2.default.Fragment, { children: renderActionButton(action) }, `compact-${actionKey(action, idx)}`))
|
|
1422
1428
|
] });
|
|
1423
1429
|
}
|
|
@@ -1714,9 +1720,9 @@ function RemoteSessionViewers({ viewers, max = 4, className }) {
|
|
|
1714
1720
|
const faces = ordered.slice(0, max);
|
|
1715
1721
|
const overflow = ordered.length - faces.length;
|
|
1716
1722
|
const Chevron = open ? _chunk3MRRIHC2cjs.Chevron02UpIcon : _chunkSKI6NKOEcjs.Chevron02DownIcon;
|
|
1717
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
1723
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkAKK3EO37cjs.DropdownMenu, { open, onOpenChange: setOpen, children: [
|
|
1718
1724
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
1719
|
-
|
|
1725
|
+
_chunkAKK3EO37cjs.DropdownMenuTrigger,
|
|
1720
1726
|
{
|
|
1721
1727
|
"aria-label": `In this session: ${ordered.map(viewerLabel).join(", ")}`,
|
|
1722
1728
|
className: _chunk3ATAYP36cjs.cn.call(void 0,
|
|
@@ -1752,8 +1758,8 @@ function RemoteSessionViewers({ viewers, max = 4, className }) {
|
|
|
1752
1758
|
]
|
|
1753
1759
|
}
|
|
1754
1760
|
),
|
|
1755
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1756
|
-
|
|
1761
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkAKK3EO37cjs.DropdownMenuContent, { align: "end", className: "w-[280px] p-0", children: ordered.map((viewer) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
1762
|
+
_chunkAKK3EO37cjs.DropdownMenuItem,
|
|
1757
1763
|
{
|
|
1758
1764
|
className: _chunk3ATAYP36cjs.cn.call(void 0,
|
|
1759
1765
|
"gap-[var(--spacing-system-xsf)] rounded-none border-b border-ods-border bg-ods-bg last:border-b-0",
|
|
@@ -2288,7 +2294,7 @@ function RemoteDesktopChatMessageRow({
|
|
|
2288
2294
|
children: authorName
|
|
2289
2295
|
}
|
|
2290
2296
|
),
|
|
2291
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { suppressHydrationWarning: true, className: "shrink-0 text-ods-text-secondary text-h6", children:
|
|
2297
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { suppressHydrationWarning: true, className: "shrink-0 text-ods-text-secondary text-h6", children: _chunkLOFDIDSDcjs.formatTime.call(void 0, sentAt) })
|
|
2292
2298
|
] }),
|
|
2293
2299
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "whitespace-pre-wrap text-ods-text-primary text-h4", children: body })
|
|
2294
2300
|
] });
|
|
@@ -2333,7 +2339,7 @@ function RemoteDesktopChatPanel({
|
|
|
2333
2339
|
message.id
|
|
2334
2340
|
)) }) }),
|
|
2335
2341
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2336
|
-
|
|
2342
|
+
_chunkLOFDIDSDcjs.ChatInput,
|
|
2337
2343
|
{
|
|
2338
2344
|
placeholder: "Enter your Message...",
|
|
2339
2345
|
onSend,
|
|
@@ -2377,7 +2383,7 @@ function RemoteDesktopFullscreenToolbar({
|
|
|
2377
2383
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-1 items-center gap-[var(--spacing-system-xsf)]", children: [
|
|
2378
2384
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "truncate text-ods-text-primary text-h6", children: deviceName }),
|
|
2379
2385
|
displayMenuGroups.length > 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2380
|
-
|
|
2386
|
+
_chunkEFTUFJS2cjs.ActionsMenuDropdown,
|
|
2381
2387
|
{
|
|
2382
2388
|
groups: displayMenuGroups,
|
|
2383
2389
|
customTrigger: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
@@ -2408,7 +2414,7 @@ function RemoteDesktopFullscreenToolbar({
|
|
|
2408
2414
|
}
|
|
2409
2415
|
),
|
|
2410
2416
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2411
|
-
|
|
2417
|
+
_chunkEFTUFJS2cjs.ActionsMenuDropdown,
|
|
2412
2418
|
{
|
|
2413
2419
|
groups: actionsMenuGroups,
|
|
2414
2420
|
customTrigger: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -2497,7 +2503,7 @@ function RemoteDesktopView({
|
|
|
2497
2503
|
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "sr-only content-md:not-sr-only", children: chatOpen ? "Close Chat" : "Open Chat" })
|
|
2498
2504
|
}
|
|
2499
2505
|
),
|
|
2500
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2506
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEFTUFJS2cjs.ActionsMenuDropdown, { groups: actionsMenuGroups, triggerAriaLabel: "Actions" }),
|
|
2501
2507
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2502
2508
|
_chunk2QMBXGMQcjs.Button,
|
|
2503
2509
|
{
|
|
@@ -2521,7 +2527,7 @@ function RemoteDesktopView({
|
|
|
2521
2527
|
] })
|
|
2522
2528
|
] }),
|
|
2523
2529
|
displayMenuGroups.length > 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2524
|
-
|
|
2530
|
+
_chunkEFTUFJS2cjs.ActionsMenuDropdown,
|
|
2525
2531
|
{
|
|
2526
2532
|
groups: displayMenuGroups,
|
|
2527
2533
|
align: "start",
|
|
@@ -2700,9 +2706,9 @@ function KeepRecordingModal({
|
|
|
2700
2706
|
if (!canKeep || isPending) return;
|
|
2701
2707
|
onConfirm({ reason, description: reason === "OTHER" ? trimmed : null });
|
|
2702
2708
|
};
|
|
2703
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
2709
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkLOFDIDSDcjs.Modal, { isOpen, onClose: isPending ? () => {
|
|
2704
2710
|
} : onClose, className: "text-left md:max-w-[600px]", children: [
|
|
2705
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2711
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLOFDIDSDcjs.ModalHeader, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLOFDIDSDcjs.ModalTitle, { children: "Keep this recording" }) }),
|
|
2706
2712
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
2707
2713
|
KeepNotice,
|
|
2708
2714
|
{
|
|
@@ -2740,7 +2746,7 @@ function KeepRecordingModal({
|
|
|
2740
2746
|
}
|
|
2741
2747
|
)
|
|
2742
2748
|
] }),
|
|
2743
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
2749
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkLOFDIDSDcjs.ModalFooter, { children: [
|
|
2744
2750
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2QMBXGMQcjs.Button, { type: "button", variant: "outline", onClick: onClose, disabled: isPending, className: "flex-1 md:hidden", children: "Cancel" }),
|
|
2745
2751
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "hidden flex-1 md:block" }),
|
|
2746
2752
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -2770,9 +2776,9 @@ function ReleaseKeepingModal({
|
|
|
2770
2776
|
isPending = false,
|
|
2771
2777
|
onConfirm
|
|
2772
2778
|
}) {
|
|
2773
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
2779
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkLOFDIDSDcjs.Modal, { isOpen, onClose: isPending ? () => {
|
|
2774
2780
|
} : onClose, className: "text-left md:max-w-[600px]", children: [
|
|
2775
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2781
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLOFDIDSDcjs.ModalHeader, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLOFDIDSDcjs.ModalTitle, { children: "Release Keeping" }) }),
|
|
2776
2782
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full flex-col gap-[var(--spacing-system-xsf)] text-ods-text-primary text-h4", children: [
|
|
2777
2783
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "p", { children: [
|
|
2778
2784
|
"Kept by ",
|
|
@@ -2789,7 +2795,7 @@ function ReleaseKeepingModal({
|
|
|
2789
2795
|
] })
|
|
2790
2796
|
] }),
|
|
2791
2797
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, KeepNotice, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkILWSAV64cjs.HourglassIcon, { size: 24, color: "currentColor" }), title: `It will expire on ${expiresOn}`, children: dueOn ? `It was due to expire on ${dueOn}. Releasing gives it 3 days' grace, and it shows amber until then. Whoever placed the Keep is reminded the day before it goes. Nothing is deleted now.` : "Nothing is deleted now." }),
|
|
2792
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
2798
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkLOFDIDSDcjs.ModalFooter, { children: [
|
|
2793
2799
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2QMBXGMQcjs.Button, { type: "button", variant: "outline", onClick: onClose, disabled: isPending, className: "flex-1 md:hidden", children: "Cancel" }),
|
|
2794
2800
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "hidden flex-1 md:block" }),
|
|
2795
2801
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2QMBXGMQcjs.Button, { type: "button", variant: "accent", onClick: onConfirm, loading: isPending, className: "flex-1", children: "Release Keeping" })
|
|
@@ -2831,9 +2837,9 @@ function AssignTicketModal({
|
|
|
2831
2837
|
if (ticketIds.length === 0 || isPending) return;
|
|
2832
2838
|
onConfirm(ticketIds);
|
|
2833
2839
|
};
|
|
2834
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
2840
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkLOFDIDSDcjs.Modal, { isOpen, onClose: isPending ? () => {
|
|
2835
2841
|
} : onClose, className: "text-left md:max-w-[600px]", children: [
|
|
2836
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2842
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLOFDIDSDcjs.ModalHeader, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLOFDIDSDcjs.ModalTitle, { children: "Assign Ticket" }) }),
|
|
2837
2843
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2838
2844
|
Autocomplete,
|
|
2839
2845
|
{
|
|
@@ -2852,7 +2858,7 @@ function AssignTicketModal({
|
|
|
2852
2858
|
disabled: isPending
|
|
2853
2859
|
}
|
|
2854
2860
|
),
|
|
2855
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
2861
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkLOFDIDSDcjs.ModalFooter, { children: [
|
|
2856
2862
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2QMBXGMQcjs.Button, { type: "button", variant: "outline", onClick: onClose, disabled: isPending, className: "flex-1 md:hidden", children: "Cancel" }),
|
|
2857
2863
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "hidden flex-1 md:block" }),
|
|
2858
2864
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -2871,11 +2877,11 @@ function AssignTicketModal({
|
|
|
2871
2877
|
] });
|
|
2872
2878
|
}
|
|
2873
2879
|
function UnassignTicketModal({ isOpen, onClose, isPending = false, onConfirm }) {
|
|
2874
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
2880
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkLOFDIDSDcjs.Modal, { isOpen, onClose: isPending ? () => {
|
|
2875
2881
|
} : onClose, className: "text-left md:max-w-[600px]", children: [
|
|
2876
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2882
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLOFDIDSDcjs.ModalHeader, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLOFDIDSDcjs.ModalTitle, { children: "Unassign Ticket" }) }),
|
|
2877
2883
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "w-full text-ods-text-primary text-h4", children: "This Ticket will no longer be linked to this remote session. The ticket itself stays as it is, and you can assign it again anytime." }),
|
|
2878
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
2884
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkLOFDIDSDcjs.ModalFooter, { children: [
|
|
2879
2885
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2QMBXGMQcjs.Button, { type: "button", variant: "outline", onClick: onClose, disabled: isPending, className: "flex-1 md:hidden", children: "Cancel" }),
|
|
2880
2886
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "hidden flex-1 md:block" }),
|
|
2881
2887
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2QMBXGMQcjs.Button, { type: "button", variant: "destructive", onClick: onConfirm, loading: isPending, className: "flex-1", children: "Unassign" })
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }"use client";
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunkQKFJ6ORKcjs = require('./chunk-QKFJ6ORK.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkQTYSYEHKcjs = require('./chunk-QTYSYEHK.cjs');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
var _chunkDGFDBPO7cjs = require('./chunk-DGFDBPO7.cjs');
|
|
@@ -44,7 +44,7 @@ function isSummaryData(value) {
|
|
|
44
44
|
}
|
|
45
45
|
function TicketLiveProvider({ children, enabled = true }) {
|
|
46
46
|
const runtime = _chunkUJ7AXHRZcjs.useChatRuntime.call(void 0, );
|
|
47
|
-
const identity =
|
|
47
|
+
const identity = _chunkQTYSYEHKcjs.useChatIdentity.call(void 0, enabled);
|
|
48
48
|
const queryClient = _reactquery.useQueryClient.call(void 0, );
|
|
49
49
|
const streamUrl = _nullishCoalesce(_optionalChain([runtime, 'optionalAccess', _ => _.endpoints, 'access', _2 => _2.ticketStreamUrl]), () => ( TICKET_STREAM_ENDPOINT));
|
|
50
50
|
const readUrl = _nullishCoalesce(_optionalChain([runtime, 'optionalAccess', _3 => _3.endpoints, 'access', _4 => _4.ticketReadUrl]), () => ( TICKET_READ_ENDPOINT));
|
|
@@ -160,7 +160,7 @@ function TicketLiveProvider({ children, enabled = true }) {
|
|
|
160
160
|
_react2.default.useEffect(() => {
|
|
161
161
|
if (!streamEnabled) return void 0;
|
|
162
162
|
if (typeof window === "undefined") return void 0;
|
|
163
|
-
subscriptionRef.current =
|
|
163
|
+
subscriptionRef.current = _chunkQKFJ6ORKcjs.createSseSubscription.call(void 0, {
|
|
164
164
|
url: streamUrl,
|
|
165
165
|
onEvent: (name, data) => handlersRef.current.onEvent(name, data),
|
|
166
166
|
onStatusChange: (status) => handlersRef.current.onStatus(status),
|
|
@@ -2,14 +2,14 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var _chunk57JA37HPcjs = require('./chunk-57JA37HP.cjs');
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
12
|
-
var
|
|
12
|
+
var _chunkAXBVN5SWcjs = require('./chunk-AXBVN5SW.cjs');
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
|
|
@@ -17,12 +17,12 @@ var _chunk3GG3QAPTcjs = require('./chunk-3GG3QAPT.cjs');
|
|
|
17
17
|
var _chunkVUWPLQBYcjs = require('./chunk-VUWPLQBY.cjs');
|
|
18
18
|
|
|
19
19
|
|
|
20
|
-
var
|
|
20
|
+
var _chunkQKFJ6ORKcjs = require('./chunk-QKFJ6ORK.cjs');
|
|
21
21
|
|
|
22
22
|
|
|
23
23
|
|
|
24
24
|
|
|
25
|
-
var
|
|
25
|
+
var _chunkQTYSYEHKcjs = require('./chunk-QTYSYEHK.cjs');
|
|
26
26
|
|
|
27
27
|
|
|
28
28
|
|
|
@@ -119,7 +119,7 @@ function ContactForm({
|
|
|
119
119
|
successToastMessage = "Redirecting you to join our community...",
|
|
120
120
|
rescue: rescueForm = null
|
|
121
121
|
} = {}) {
|
|
122
|
-
const attachments =
|
|
122
|
+
const attachments = _chunkQTYSYEHKcjs.useChatAttachments.call(void 0, );
|
|
123
123
|
const builtInSubmission = _chunkVUWPLQBYcjs.useContactSubmission.call(void 0, {
|
|
124
124
|
userId,
|
|
125
125
|
successRedirectUrl,
|
|
@@ -203,13 +203,13 @@ function ContactForm({
|
|
|
203
203
|
);
|
|
204
204
|
}),
|
|
205
205
|
className: "flex flex-grow flex-col space-y-4 content-md:space-y-6",
|
|
206
|
-
...
|
|
206
|
+
..._chunkQKFJ6ORKcjs.HUBSPOT_DO_NOT_COLLECT_FORM_PROPS,
|
|
207
207
|
children: [
|
|
208
208
|
!showName && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "input", { type: "hidden", ...register("name") }),
|
|
209
209
|
!showEmail && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "input", { type: "hidden", ...register("email") }),
|
|
210
210
|
!showHelpCategory && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "input", { type: "hidden", ...register("helpCategory") }),
|
|
211
211
|
!showMessage && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "input", { type: "hidden", ...register("message") }),
|
|
212
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
212
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk57JA37HPcjs.HoneypotField, { ...honeypotInputProps }),
|
|
213
213
|
extraTopField,
|
|
214
214
|
showNameEmailRow && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "grid grid-cols-1 gap-4 content-md:grid-cols-2 content-md:gap-6", children: [
|
|
215
215
|
showName && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col", children: [
|
|
@@ -261,17 +261,17 @@ function ContactForm({
|
|
|
261
261
|
{
|
|
262
262
|
control,
|
|
263
263
|
name: "companySize",
|
|
264
|
-
render: ({ field }) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
264
|
+
render: ({ field }) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkAXBVN5SWcjs.Select, { onValueChange: field.onChange, value: _nullishCoalesce(field.value, () => ( "")), children: [
|
|
265
265
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
266
|
-
|
|
266
|
+
_chunkAXBVN5SWcjs.SelectTrigger,
|
|
267
267
|
{
|
|
268
268
|
id: "companySize",
|
|
269
269
|
"aria-label": "Company Size",
|
|
270
270
|
className: "h-12 border-ods-border bg-ods-card px-3 text-ods-text-primary",
|
|
271
|
-
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
271
|
+
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkAXBVN5SWcjs.SelectValue, { placeholder: "Select company size" })
|
|
272
272
|
}
|
|
273
273
|
),
|
|
274
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
274
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkAXBVN5SWcjs.SelectContent, { children: companySizeOptions.map((opt) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkAXBVN5SWcjs.SelectItem, { value: opt, children: opt }, opt)) })
|
|
275
275
|
] })
|
|
276
276
|
}
|
|
277
277
|
),
|
|
@@ -284,17 +284,17 @@ function ContactForm({
|
|
|
284
284
|
{
|
|
285
285
|
control,
|
|
286
286
|
name: "referralSource",
|
|
287
|
-
render: ({ field }) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
287
|
+
render: ({ field }) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkAXBVN5SWcjs.Select, { onValueChange: field.onChange, value: _nullishCoalesce(field.value, () => ( "")), children: [
|
|
288
288
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
289
|
-
|
|
289
|
+
_chunkAXBVN5SWcjs.SelectTrigger,
|
|
290
290
|
{
|
|
291
291
|
id: "referralSource",
|
|
292
292
|
"aria-label": "Referral Source",
|
|
293
293
|
className: "h-12 border-ods-border bg-ods-card px-3 text-ods-text-primary",
|
|
294
|
-
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
294
|
+
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkAXBVN5SWcjs.SelectValue, { placeholder: "Select an option" })
|
|
295
295
|
}
|
|
296
296
|
),
|
|
297
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
297
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkAXBVN5SWcjs.SelectContent, { children: referralSourceOptions.map((opt) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkAXBVN5SWcjs.SelectItem, { value: opt, children: opt }, opt)) })
|
|
298
298
|
] })
|
|
299
299
|
}
|
|
300
300
|
),
|
|
@@ -311,18 +311,18 @@ function ContactForm({
|
|
|
311
311
|
{
|
|
312
312
|
control,
|
|
313
313
|
name: "helpCategory",
|
|
314
|
-
render: ({ field }) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
314
|
+
render: ({ field }) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkAXBVN5SWcjs.Select, { onValueChange: field.onChange, value: _nullishCoalesce(field.value, () => ( "")), children: [
|
|
315
315
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
316
|
-
|
|
316
|
+
_chunkAXBVN5SWcjs.SelectTrigger,
|
|
317
317
|
{
|
|
318
318
|
id: "helpCategory",
|
|
319
319
|
"aria-label": "Help Category",
|
|
320
320
|
"aria-required": true,
|
|
321
321
|
className: "h-12 border-ods-border bg-ods-card px-3 text-ods-text-primary",
|
|
322
|
-
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
322
|
+
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkAXBVN5SWcjs.SelectValue, { placeholder: "Choose your main interest" })
|
|
323
323
|
}
|
|
324
324
|
),
|
|
325
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
325
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkAXBVN5SWcjs.SelectContent, { children: helpCategoryOptions.map((opt) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkAXBVN5SWcjs.SelectItem, { value: opt, children: opt }, opt)) })
|
|
326
326
|
] })
|
|
327
327
|
}
|
|
328
328
|
),
|
|
@@ -334,7 +334,7 @@ function ContactForm({
|
|
|
334
334
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHTRILBJDcjs.RequiredMark, {})
|
|
335
335
|
] }),
|
|
336
336
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
337
|
-
|
|
337
|
+
_chunk57JA37HPcjs.Textarea,
|
|
338
338
|
{
|
|
339
339
|
id: "message",
|
|
340
340
|
...register("message"),
|
|
@@ -349,7 +349,7 @@ function ContactForm({
|
|
|
349
349
|
] }),
|
|
350
350
|
attachmentsEnabled && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col gap-2", children: [
|
|
351
351
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
352
|
-
|
|
352
|
+
_chunkQTYSYEHKcjs.ChatAttachmentChipStrip,
|
|
353
353
|
{
|
|
354
354
|
attachments: attachments.attachments,
|
|
355
355
|
onRemove: attachments.removeAttachment,
|
|
@@ -358,7 +358,7 @@ function ContactForm({
|
|
|
358
358
|
),
|
|
359
359
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center gap-2", children: [
|
|
360
360
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
361
|
-
|
|
361
|
+
_chunkQTYSYEHKcjs.ChatAttachmentAddButton,
|
|
362
362
|
{
|
|
363
363
|
attachmentsEnabled: true,
|
|
364
364
|
attachmentsCount: attachments.attachments.length,
|
|
@@ -9,7 +9,7 @@ var _chunk4TUSPDNScjs = require('./chunk-4TUSPDNS.cjs');
|
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
12
|
-
var
|
|
12
|
+
var _chunkAKK3EO37cjs = require('./chunk-AKK3EO37.cjs');
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
var _chunk2QMBXGMQcjs = require('./chunk-2QMBXGMQ.cjs');
|
|
@@ -340,8 +340,8 @@ var ActionsMenuDropdown = ({
|
|
|
340
340
|
},
|
|
341
341
|
[onItemClick, setOpen]
|
|
342
342
|
);
|
|
343
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
344
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
343
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkAKK3EO37cjs.DropdownMenu, { open, onOpenChange: setOpen, modal: false, children: [
|
|
344
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkAKK3EO37cjs.DropdownMenuTrigger, { asChild: true, ref: triggerRef, children: _nullishCoalesce(customTrigger, () => ( /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
345
345
|
_chunk2QMBXGMQcjs.Button,
|
|
346
346
|
{
|
|
347
347
|
variant: "outline",
|
|
@@ -352,7 +352,7 @@ var ActionsMenuDropdown = ({
|
|
|
352
352
|
}
|
|
353
353
|
))) }),
|
|
354
354
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
355
|
-
|
|
355
|
+
_chunkAKK3EO37cjs.DropdownMenuContent,
|
|
356
356
|
{
|
|
357
357
|
align,
|
|
358
358
|
side,
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _chunkEFTUFJS2cjs = require('./chunk-EFTUFJS2.cjs');
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
var _chunkC7GIHB3Vcjs = require('./chunk-C7GIHB3V.cjs');
|
|
@@ -298,15 +298,15 @@ function TicketStatusTag({
|
|
|
298
298
|
);
|
|
299
299
|
if (disabled || !options || options.length === 0 || !onSelect) {
|
|
300
300
|
if (disabled && disabledReason) {
|
|
301
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
302
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
303
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
301
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEFTUFJS2cjs.TooltipProvider, { delayDuration: 0, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkEFTUFJS2cjs.Tooltip, { children: [
|
|
302
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEFTUFJS2cjs.TooltipTrigger, { asChild: true, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "w-fit shrink-0 cursor-not-allowed", children: tag }) }),
|
|
303
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEFTUFJS2cjs.TooltipContent, { children: disabledReason })
|
|
304
304
|
] }) });
|
|
305
305
|
}
|
|
306
306
|
return tag;
|
|
307
307
|
}
|
|
308
308
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
309
|
-
|
|
309
|
+
_chunkEFTUFJS2cjs.ActionsMenuDropdown,
|
|
310
310
|
{
|
|
311
311
|
align: "start",
|
|
312
312
|
groups: [
|
|
@@ -5,12 +5,12 @@ var _chunkVUWPLQBYcjs = require('./chunk-VUWPLQBY.cjs');
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _chunkQKFJ6ORKcjs = require('./chunk-QKFJ6ORK.cjs');
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
|
|
13
|
-
var
|
|
13
|
+
var _chunkQTYSYEHKcjs = require('./chunk-QTYSYEHK.cjs');
|
|
14
14
|
|
|
15
15
|
|
|
16
16
|
|
|
@@ -63,7 +63,7 @@ function FaqAccordion({ items, defaultOpenIds = [] }) {
|
|
|
63
63
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
64
64
|
"div",
|
|
65
65
|
{
|
|
66
|
-
id:
|
|
66
|
+
id: _chunkQTYSYEHKcjs.faqItemAnchor.call(void 0, item.id),
|
|
67
67
|
className: "scroll-mt-24 transition-colors hover:bg-ods-bg-hover",
|
|
68
68
|
children: [
|
|
69
69
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
@@ -116,14 +116,14 @@ function FaqAccordion({ items, defaultOpenIds = [] }) {
|
|
|
116
116
|
|
|
117
117
|
var PICK_ROOT_MARGIN = "600px";
|
|
118
118
|
function faqAskCardShown(assistant) {
|
|
119
|
-
return
|
|
119
|
+
return _chunkQKFJ6ORKcjs.assistantAvailable.call(void 0, assistant) && !!assistant.name;
|
|
120
120
|
}
|
|
121
121
|
function FaqAskCard({ topic, exclude, count, title, description, onOpen }) {
|
|
122
122
|
const { ref, inView } = _chunkCSJO7ZGNcjs.useInView.call(void 0, { rootMargin: PICK_ROOT_MARGIN });
|
|
123
123
|
const [reached, setReached] = _react.useState.call(void 0, false);
|
|
124
124
|
if (inView && !reached) setReached(true);
|
|
125
125
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { ref, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
126
|
-
|
|
126
|
+
_chunkQKFJ6ORKcjs.AssistantAskPrompts,
|
|
127
127
|
{
|
|
128
128
|
variant: "card",
|
|
129
129
|
topic,
|
|
@@ -197,7 +197,7 @@ function groupFaqsBySection(faqs) {
|
|
|
197
197
|
}
|
|
198
198
|
let group = byName.get(name);
|
|
199
199
|
if (!group) {
|
|
200
|
-
group = { section: name, slug:
|
|
200
|
+
group = { section: name, slug: _chunkQTYSYEHKcjs.faqSectionSlug.call(void 0, name), items: [] };
|
|
201
201
|
byName.set(name, group);
|
|
202
202
|
}
|
|
203
203
|
group.items.push(item);
|
|
@@ -252,7 +252,7 @@ function GroupedFaqList({
|
|
|
252
252
|
}, [slugKey]);
|
|
253
253
|
const [hashTarget, setHashTarget] = _react.useState.call(void 0, null);
|
|
254
254
|
_react.useEffect.call(void 0, () => {
|
|
255
|
-
const refresh = () => setHashTarget(
|
|
255
|
+
const refresh = () => setHashTarget(_chunkQTYSYEHKcjs.parseFaqHash.call(void 0, window.location.hash));
|
|
256
256
|
refresh();
|
|
257
257
|
window.addEventListener("hashchange", refresh);
|
|
258
258
|
return () => window.removeEventListener("hashchange", refresh);
|