@flamingo-stack/openframe-frontend-core 0.0.275 → 0.0.276-snapshot.20260617134807
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-SA4ZTD3G.cjs → chunk-27NKVNWD.cjs} +27 -27
- package/dist/{chunk-SA4ZTD3G.cjs.map → chunk-27NKVNWD.cjs.map} +1 -1
- package/dist/{chunk-5LOLBUZG.cjs → chunk-2GLHJ7ZY.cjs} +12 -12
- package/dist/{chunk-5LOLBUZG.cjs.map → chunk-2GLHJ7ZY.cjs.map} +1 -1
- package/dist/{chunk-NY7OG2OJ.js → chunk-6A5GGUIA.js} +3 -3
- package/dist/{chunk-T4XXYAYY.js → chunk-DMAPXENZ.js} +3 -3
- package/dist/{chunk-CTBL56EC.js → chunk-KBKW4LVO.js} +3 -3
- package/dist/{chunk-OKDCUJOZ.cjs → chunk-L5P4IFPK.cjs} +10 -10
- package/dist/{chunk-OKDCUJOZ.cjs.map → chunk-L5P4IFPK.cjs.map} +1 -1
- package/dist/{chunk-DEAWHNYW.cjs → chunk-LALAS7OH.cjs} +685 -642
- package/dist/chunk-LALAS7OH.cjs.map +1 -0
- package/dist/{chunk-XCPBD2PG.cjs → chunk-LH7R56RR.cjs} +2 -2
- package/dist/chunk-LH7R56RR.cjs.map +1 -0
- package/dist/{chunk-EINXNG5D.js → chunk-MHQPAA3W.js} +3 -3
- package/dist/{chunk-DBJZF2OV.cjs → chunk-NCJENC5G.cjs} +15 -15
- package/dist/{chunk-DBJZF2OV.cjs.map → chunk-NCJENC5G.cjs.map} +1 -1
- package/dist/{chunk-EKWPIEHH.js → chunk-P6Y3S6QK.js} +51 -8
- package/dist/chunk-P6Y3S6QK.js.map +1 -0
- package/dist/{chunk-FDHKJJPK.js → chunk-UCX75VEM.js} +2 -2
- package/dist/{chunk-GHWOQUB4.js → chunk-ZS4XNIZK.js} +2 -2
- package/dist/chunk-ZS4XNIZK.js.map +1 -0
- package/dist/{chunk-E6RCVOQG.cjs → chunk-ZSPPV2SX.cjs} +38 -38
- package/dist/{chunk-E6RCVOQG.cjs.map → chunk-ZSPPV2SX.cjs.map} +1 -1
- package/dist/components/chat/chat-container.d.ts.map +1 -1
- package/dist/components/chat/index.cjs +3 -3
- package/dist/components/chat/index.js +2 -2
- package/dist/components/chat/types/component.types.d.ts +11 -0
- package/dist/components/chat/types/component.types.d.ts.map +1 -1
- package/dist/components/chat/utils/history-merge.d.ts.map +1 -1
- package/dist/components/contact/index.cjs +4 -4
- package/dist/components/contact/index.js +3 -3
- package/dist/components/faq/index.cjs +4 -4
- package/dist/components/faq/index.js +3 -3
- package/dist/components/features/board/board.d.ts.map +1 -1
- package/dist/components/features/board/ticket-card.d.ts +2 -1
- package/dist/components/features/board/ticket-card.d.ts.map +1 -1
- package/dist/components/features/board/types.d.ts +1 -0
- package/dist/components/features/board/types.d.ts.map +1 -1
- package/dist/components/features/index.cjs +3 -3
- package/dist/components/features/index.js +2 -2
- package/dist/components/index.cjs +85 -85
- package/dist/components/index.js +6 -6
- package/dist/components/navigation/index.cjs +3 -3
- package/dist/components/navigation/index.js +2 -2
- package/dist/components/onboarding-guides/index.cjs +22 -22
- package/dist/components/onboarding-guides/index.js +2 -2
- package/dist/components/related-content/index.cjs +4 -4
- package/dist/components/related-content/index.js +3 -3
- package/dist/components/tickets/index.cjs +61 -61
- package/dist/components/tickets/index.js +4 -4
- package/dist/components/ui/actions-menu.d.ts +6 -0
- package/dist/components/ui/actions-menu.d.ts.map +1 -1
- package/dist/components/ui/index.cjs +3 -3
- package/dist/components/ui/index.js +2 -2
- package/dist/index.cjs +3 -3
- package/dist/index.js +2 -2
- package/package.json +1 -1
- package/src/components/chat/chat-container.tsx +40 -25
- package/src/components/chat/types/component.types.ts +11 -0
- package/src/components/chat/utils/history-merge.ts +27 -0
- package/src/components/features/board/board-column.tsx +1 -0
- package/src/components/features/board/board.tsx +6 -1
- package/src/components/features/board/ticket-card.tsx +23 -6
- package/src/components/features/board/types.ts +1 -0
- package/src/components/ui/actions-menu.tsx +11 -1
- package/dist/chunk-DEAWHNYW.cjs.map +0 -1
- package/dist/chunk-EKWPIEHH.js.map +0 -1
- package/dist/chunk-GHWOQUB4.js.map +0 -1
- package/dist/chunk-XCPBD2PG.cjs.map +0 -1
- /package/dist/{chunk-NY7OG2OJ.js.map → chunk-6A5GGUIA.js.map} +0 -0
- /package/dist/{chunk-T4XXYAYY.js.map → chunk-DMAPXENZ.js.map} +0 -0
- /package/dist/{chunk-CTBL56EC.js.map → chunk-KBKW4LVO.js.map} +0 -0
- /package/dist/{chunk-EINXNG5D.js.map → chunk-MHQPAA3W.js.map} +0 -0
- /package/dist/{chunk-FDHKJJPK.js.map → chunk-UCX75VEM.js.map} +0 -0
|
@@ -83,7 +83,7 @@ var _chunkPXXS27EEcjs = require('./chunk-PXXS27EE.cjs');
|
|
|
83
83
|
|
|
84
84
|
|
|
85
85
|
|
|
86
|
-
var
|
|
86
|
+
var _chunkLH7R56RRcjs = require('./chunk-LH7R56RR.cjs');
|
|
87
87
|
|
|
88
88
|
|
|
89
89
|
|
|
@@ -259,6 +259,7 @@ var _chunkFIG2RKZFcjs = require('./chunk-FIG2RKZF.cjs');
|
|
|
259
259
|
|
|
260
260
|
|
|
261
261
|
|
|
262
|
+
|
|
262
263
|
|
|
263
264
|
|
|
264
265
|
var _chunkC6ASEPZLcjs = require('./chunk-C6ASEPZL.cjs');
|
|
@@ -519,7 +520,7 @@ var ApprovalRequestMessage = _react.forwardRef.call(void 0,
|
|
|
519
520
|
}
|
|
520
521
|
)
|
|
521
522
|
] }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
522
|
-
|
|
523
|
+
_chunkLH7R56RRcjs.Tag,
|
|
523
524
|
{
|
|
524
525
|
label: status === "approved" ? "Approved" : "Rejected",
|
|
525
526
|
variant: status === "approved" ? "success" : "error",
|
|
@@ -733,12 +734,12 @@ function ResultBlock({ result, className }) {
|
|
|
733
734
|
var COMMAND_BODY_KEYS = new Set(COMMAND_BODY_ARG_KEYS);
|
|
734
735
|
function renderStatusTag(status) {
|
|
735
736
|
if (status === "approved") {
|
|
736
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
737
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLH7R56RRcjs.Tag, { label: "Approved", variant: "success", icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkC6ASEPZLcjs.CheckCircleIcon, { className: "w-4 h-4" }) });
|
|
737
738
|
}
|
|
738
739
|
if (status === "cancelled") {
|
|
739
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
740
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLH7R56RRcjs.Tag, { label: "Cancelled", variant: "grey", icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkC6ASEPZLcjs.BannedIcon, { className: "w-4 h-4" }) });
|
|
740
741
|
}
|
|
741
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
742
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLH7R56RRcjs.Tag, { label: "Rejected", variant: "error", icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkC6ASEPZLcjs.XmarkCircleIcon, { className: "w-4 h-4" }) });
|
|
742
743
|
}
|
|
743
744
|
function getArgEntries(call) {
|
|
744
745
|
const args = call.toolCallArguments;
|
|
@@ -1007,7 +1008,7 @@ var ThinkingDisplay = _react.forwardRef.call(void 0,
|
|
|
1007
1008
|
{
|
|
1008
1009
|
ref: innerRef,
|
|
1009
1010
|
className: _chunkFIG2RKZFcjs.cn.call(void 0, "text-sm leading-snug text-ods-text-secondary", thoughtMdClasses),
|
|
1010
|
-
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1011
|
+
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLH7R56RRcjs.SimpleMarkdownRenderer, { content: text, textSize: "compact" })
|
|
1011
1012
|
}
|
|
1012
1013
|
) }),
|
|
1013
1014
|
canToggle && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "h-[19px] flex items-center shrink-0", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, ExpandChevron, { expanded }) })
|
|
@@ -1339,7 +1340,7 @@ function TicketStatusTag({
|
|
|
1339
1340
|
} : void 0;
|
|
1340
1341
|
const customColorClasses = color ? "bg-[var(--tag-bg)] hover:bg-[var(--tag-bg-hover)] active:bg-[var(--tag-bg-active)]" : void 0;
|
|
1341
1342
|
const tag = /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1342
|
-
|
|
1343
|
+
_chunkLH7R56RRcjs.Tag,
|
|
1343
1344
|
{
|
|
1344
1345
|
label: _nullishCoalesce(label, () => ( config.label)),
|
|
1345
1346
|
variant: _nullishCoalesce(variant, () => ( config.variant)),
|
|
@@ -1352,7 +1353,7 @@ function TicketStatusTag({
|
|
|
1352
1353
|
return tag;
|
|
1353
1354
|
}
|
|
1354
1355
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1355
|
-
|
|
1356
|
+
_chunkLH7R56RRcjs.ActionsMenuDropdown,
|
|
1356
1357
|
{
|
|
1357
1358
|
align: "start",
|
|
1358
1359
|
groups: [
|
|
@@ -1376,7 +1377,7 @@ function TicketStatusTag({
|
|
|
1376
1377
|
className: _chunkFIG2RKZFcjs.cn.call(void 0,
|
|
1377
1378
|
// Reuse the tag's variant styling, but split into a label section and a
|
|
1378
1379
|
// separated chevron section (the common dropdown-button seam).
|
|
1379
|
-
|
|
1380
|
+
_chunkLH7R56RRcjs.tagVariants.call(void 0, { variant: _nullishCoalesce(variant, () => ( config.variant)) }),
|
|
1380
1381
|
"w-fit shrink-0 items-stretch justify-start gap-0 overflow-hidden p-0",
|
|
1381
1382
|
"disabled:opacity-60 disabled:cursor-not-allowed",
|
|
1382
1383
|
// Custom color: bg/hover/active from the CSS vars set above.
|
|
@@ -1447,7 +1448,7 @@ var ChatContainer = React.forwardRef(
|
|
|
1447
1448
|
);
|
|
1448
1449
|
ChatContainer.displayName = "ChatContainer";
|
|
1449
1450
|
var ChatHeader = React.forwardRef(
|
|
1450
|
-
({ className, userName = 'Grace "Fae" Meadows', userTitle = "Your Personal Assistant", userAvatar, userIcon, onSettingsClick, onNewChat, onClose, onBack, showNewChat = false, connectionStatus = "disconnected", serverUrl = null, headerActions, ticketInfo, fullWidth = false, bare = false, ...props }, ref) => {
|
|
1451
|
+
({ className, userName = 'Grace "Fae" Meadows', userTitle = "Your Personal Assistant", userAvatar, userIcon, onSettingsClick, onNewChat, onClose, onBack, showNewChat = false, connectionStatus = "disconnected", serverUrl = null, headerActions, ticketInfo, fullWidth = false, bare = false, isLoading = false, ...props }, ref) => {
|
|
1451
1452
|
const cardClasses = bare ? "" : "rounded-md bg-ods-card border border-ods-border";
|
|
1452
1453
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
1453
1454
|
"div",
|
|
@@ -1478,9 +1479,15 @@ var ChatHeader = React.forwardRef(
|
|
|
1478
1479
|
),
|
|
1479
1480
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: cardClasses, children: [
|
|
1480
1481
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center justify-between gap-4 px-4 py-3", children: [
|
|
1481
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center gap-3", children: [
|
|
1482
|
+
isLoading ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center gap-3", children: [
|
|
1483
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk6JINAOI7cjs.Skeleton, { className: "w-16 h-16 rounded-full shrink-0" }),
|
|
1484
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col gap-1", children: [
|
|
1485
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk6JINAOI7cjs.Skeleton, { className: "h-6 w-40" }),
|
|
1486
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk6JINAOI7cjs.Skeleton, { className: "h-4 w-28" })
|
|
1487
|
+
] })
|
|
1488
|
+
] }) : /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center gap-3", children: [
|
|
1482
1489
|
userIcon ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex items-center justify-center w-16 h-16 rounded-full bg-ods-accent", children: userIcon }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1483
|
-
|
|
1490
|
+
_chunkLH7R56RRcjs.SquareAvatar,
|
|
1484
1491
|
{
|
|
1485
1492
|
src: userAvatar,
|
|
1486
1493
|
alt: userName,
|
|
@@ -2590,7 +2597,7 @@ var ChatMessageEnhanced = _react.forwardRef.call(void 0,
|
|
|
2590
2597
|
// Host-supplied brand icon (e.g. Mingo): render it directly,
|
|
2591
2598
|
// no filled pill — the icon carries its own brand accent.
|
|
2592
2599
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex items-center justify-center flex-shrink-0", children: assistantIcon })
|
|
2593
|
-
) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2600
|
+
) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLH7R56RRcjs.SquareAvatar, { ...avatarProps })),
|
|
2594
2601
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: _chunkFIG2RKZFcjs.cn.call(void 0,
|
|
2595
2602
|
"text-h3 !font-mono !font-medium flex-1",
|
|
2596
2603
|
authorType === "system" ? "text-ods-open-yellow" : authorType === "admin" ? "text-ods-open-yellow" : authorType === "mingo" ? "text-ods-flamingo-cyan" : authorType === "fae" ? "text-ods-flamingo-pink" : "text-ods-text-secondary"
|
|
@@ -2609,7 +2616,7 @@ var ChatMessageEnhanced = _react.forwardRef.call(void 0,
|
|
|
2609
2616
|
);
|
|
2610
2617
|
if (!parts || parts.length === 0) {
|
|
2611
2618
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: wrapperClass, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2612
|
-
|
|
2619
|
+
_chunkLH7R56RRcjs.SimpleMarkdownRenderer,
|
|
2613
2620
|
{
|
|
2614
2621
|
content: segment.text,
|
|
2615
2622
|
textSize: "compact",
|
|
@@ -2621,7 +2628,7 @@ var ChatMessageEnhanced = _react.forwardRef.call(void 0,
|
|
|
2621
2628
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: wrapperClass, children: parts.map((part, pIdx) => {
|
|
2622
2629
|
if (part.kind === "text") {
|
|
2623
2630
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2624
|
-
|
|
2631
|
+
_chunkLH7R56RRcjs.SimpleMarkdownRenderer,
|
|
2625
2632
|
{
|
|
2626
2633
|
content: part.text,
|
|
2627
2634
|
textSize: "compact",
|
|
@@ -3204,7 +3211,7 @@ ChatMessageList.displayName = "ChatMessageList";
|
|
|
3204
3211
|
// src/components/chat/hooks/use-proxied-image-url.ts
|
|
3205
3212
|
function useProxiedImageUrl(url) {
|
|
3206
3213
|
const r = _chunkPC7YOZ4Icjs.useRequiredChatRuntime.call(void 0, );
|
|
3207
|
-
return _nullishCoalesce(
|
|
3214
|
+
return _nullishCoalesce(_chunkLH7R56RRcjs.getProxiedImageUrl.call(void 0, _nullishCoalesce(url, () => ( "")), {
|
|
3208
3215
|
proxyPrefix: r.endpoints.imageProxyUrlPrefix,
|
|
3209
3216
|
skipDomains: r.endpoints.imageProxySkipDomains,
|
|
3210
3217
|
directHttps: true
|
|
@@ -3237,7 +3244,7 @@ function ChatMessageRow({
|
|
|
3237
3244
|
height: 40,
|
|
3238
3245
|
onError: () => setFailedSrc(_nullishCoalesce(resolvedAvatar, () => ( null)))
|
|
3239
3246
|
}
|
|
3240
|
-
) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "w-8 h-8 md:w-10 md:h-10 rounded-lg flex-shrink-0 flex items-center justify-center bg-ods-bg border border-ods-border text-[12px] font-medium text-ods-text-primary font-body", children:
|
|
3247
|
+
) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "w-8 h-8 md:w-10 md:h-10 rounded-lg flex-shrink-0 flex items-center justify-center bg-ods-bg border border-ods-border text-[12px] font-medium text-ods-text-primary font-body", children: _chunkLH7R56RRcjs.getFirstLastInitials.call(void 0, displayName) || "?" }),
|
|
3241
3248
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex-1 min-w-0 max-w-full", children: [
|
|
3242
3249
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center gap-2 max-w-full mb-1 min-w-0", children: [
|
|
3243
3250
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "text-[14px] md:text-[15px] font-bold leading-[1.33] text-ods-text-primary font-body tracking-[-0.02em] truncate", children: displayName }),
|
|
@@ -3320,7 +3327,7 @@ function ChipButton({ chip }) {
|
|
|
3320
3327
|
type: "button",
|
|
3321
3328
|
onClick: chip.onSelect,
|
|
3322
3329
|
className: "shrink-0 rounded-md focus:outline-none focus-visible:ring-2 focus-visible:ring-ods-accent",
|
|
3323
|
-
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3330
|
+
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLH7R56RRcjs.Tag, { variant: _nullishCoalesce(chip.variant, () => ( "outline")), icon: chip.icon, label: chip.label })
|
|
3324
3331
|
}
|
|
3325
3332
|
);
|
|
3326
3333
|
}
|
|
@@ -3352,7 +3359,7 @@ function ChatQuickActionRow({
|
|
|
3352
3359
|
children: [
|
|
3353
3360
|
visibleChips.map((chip) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, ChipButton, { chip }, chip.id)),
|
|
3354
3361
|
hiddenChips.length > 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3355
|
-
|
|
3362
|
+
_chunkLH7R56RRcjs.ActionsMenuDropdown,
|
|
3356
3363
|
{
|
|
3357
3364
|
triggerAriaLabel: "More quick actions",
|
|
3358
3365
|
onCloseAutoFocus: (e) => e.preventDefault(),
|
|
@@ -3373,7 +3380,7 @@ function ChatQuickActionRow({
|
|
|
3373
3380
|
type: "button",
|
|
3374
3381
|
"aria-label": "More quick actions",
|
|
3375
3382
|
className: "shrink-0 rounded-md focus:outline-none focus-visible:ring-2 focus-visible:ring-ods-accent",
|
|
3376
|
-
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3383
|
+
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLH7R56RRcjs.Tag, { variant: "outline", label: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkC6ASEPZLcjs.Ellipsis01Icon, { size: 16 }) })
|
|
3377
3384
|
}
|
|
3378
3385
|
)
|
|
3379
3386
|
}
|
|
@@ -3388,7 +3395,7 @@ function ChatQuickActionRow({
|
|
|
3388
3395
|
"aria-hidden": true,
|
|
3389
3396
|
className: "pointer-events-none invisible absolute left-0 top-0 -z-10 flex gap-1",
|
|
3390
3397
|
children: chips.map((chip) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3391
|
-
|
|
3398
|
+
_chunkLH7R56RRcjs.Tag,
|
|
3392
3399
|
{
|
|
3393
3400
|
variant: _nullishCoalesce(chip.variant, () => ( "outline")),
|
|
3394
3401
|
icon: chip.icon,
|
|
@@ -3458,7 +3465,7 @@ var ChatTicketItem = React6.forwardRef(
|
|
|
3458
3465
|
subtitle && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-h6 text-ods-text-secondary truncate", title: subtitle, children: subtitle })
|
|
3459
3466
|
] }),
|
|
3460
3467
|
ticket.linkedTaskLabel && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3461
|
-
|
|
3468
|
+
_chunkLH7R56RRcjs.Tag,
|
|
3462
3469
|
{
|
|
3463
3470
|
label: ticket.linkedTaskLabel,
|
|
3464
3471
|
variant: "outline",
|
|
@@ -3719,7 +3726,7 @@ function MingoChatHistoryRow({
|
|
|
3719
3726
|
menuOpen ? "opacity-100" : "opacity-0 group-hover/row:opacity-100 focus-within:opacity-100"
|
|
3720
3727
|
),
|
|
3721
3728
|
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3722
|
-
|
|
3729
|
+
_chunkLH7R56RRcjs.ActionsMenuDropdown,
|
|
3723
3730
|
{
|
|
3724
3731
|
triggerAriaLabel: "Chat actions",
|
|
3725
3732
|
groups: [{ items: menuItems }],
|
|
@@ -4099,7 +4106,7 @@ function MingoWelcome({
|
|
|
4099
4106
|
onClick: onStartGuideChat,
|
|
4100
4107
|
className: "shrink-0 rounded-md focus:outline-none focus-visible:ring-2 focus-visible:ring-ods-accent",
|
|
4101
4108
|
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4102
|
-
|
|
4109
|
+
_chunkLH7R56RRcjs.Tag,
|
|
4103
4110
|
{
|
|
4104
4111
|
variant: hasExistingChats ? "outline" : "primary",
|
|
4105
4112
|
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkC6ASEPZLcjs.CompassIcon, { size: 16 }),
|
|
@@ -4228,12 +4235,12 @@ function GuideWelcome({
|
|
|
4228
4235
|
type: "button",
|
|
4229
4236
|
onClick: () => _optionalChain([onQuickAction, 'optionalCall', _49 => _49(action)]),
|
|
4230
4237
|
className: "rounded-md focus:outline-none focus-visible:ring-2 focus-visible:ring-ods-accent",
|
|
4231
|
-
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4238
|
+
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLH7R56RRcjs.Tag, { variant: "outline", label: action.label })
|
|
4232
4239
|
},
|
|
4233
4240
|
action.id
|
|
4234
4241
|
)),
|
|
4235
4242
|
overflowActions.length > 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4236
|
-
|
|
4243
|
+
_chunkLH7R56RRcjs.ActionsMenuDropdown,
|
|
4237
4244
|
{
|
|
4238
4245
|
triggerAriaLabel: "More quick actions",
|
|
4239
4246
|
onCloseAutoFocus: (e) => e.preventDefault(),
|
|
@@ -4250,7 +4257,7 @@ function GuideWelcome({
|
|
|
4250
4257
|
type: "button",
|
|
4251
4258
|
"aria-label": "More quick actions",
|
|
4252
4259
|
className: "rounded-md focus:outline-none focus-visible:ring-2 focus-visible:ring-ods-accent",
|
|
4253
|
-
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4260
|
+
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLH7R56RRcjs.Tag, { variant: "outline", label: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkC6ASEPZLcjs.Ellipsis01Icon, { size: 16 }) })
|
|
4254
4261
|
}
|
|
4255
4262
|
)
|
|
4256
4263
|
}
|
|
@@ -4661,7 +4668,7 @@ function ChatPanelHeaderMobile({
|
|
|
4661
4668
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-1 min-w-0 items-end gap-[var(--spacing-system-m)] pt-[var(--spacing-system-xl)]", children: [
|
|
4662
4669
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex flex-1 min-w-0 flex-col gap-[var(--spacing-system-xs)]", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "min-w-0 truncate text-h2 text-ods-text-primary", title, children: title }) }),
|
|
4663
4670
|
menuItems.length > 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4664
|
-
|
|
4671
|
+
_chunkLH7R56RRcjs.ActionsMenuDropdown,
|
|
4665
4672
|
{
|
|
4666
4673
|
groups: [{ items: menuItems }],
|
|
4667
4674
|
triggerAriaLabel: "Chat actions",
|
|
@@ -4726,7 +4733,7 @@ function ChatPanelHeader({
|
|
|
4726
4733
|
] }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "truncate text-h3 text-ods-text-primary", children: title }) }),
|
|
4727
4734
|
isArchivedView && onRestore && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, ChatHeaderIconButton, { onClick: onRestore, "aria-label": "Unarchive chat", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkC6ASEPZLcjs.Refresh01LeftIcon, { size: 24 }) }),
|
|
4728
4735
|
showBack && !isArchivedView && menuItems.length > 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4729
|
-
|
|
4736
|
+
_chunkLH7R56RRcjs.ActionsMenuDropdown,
|
|
4730
4737
|
{
|
|
4731
4738
|
triggerAriaLabel: "Chat actions",
|
|
4732
4739
|
onCloseAutoFocus: (e) => e.preventDefault(),
|
|
@@ -5514,15 +5521,15 @@ _chunkG7UE6RKVcjs.init_next_navigation.call(void 0, );
|
|
|
5514
5521
|
|
|
5515
5522
|
// src/components/chat/utils/execute-navigation.ts
|
|
5516
5523
|
function runNavigation(runtime, href, path, targetPlatform, fallbackNavigate) {
|
|
5517
|
-
const isNewTab = runtime ?
|
|
5524
|
+
const isNewTab = runtime ? _chunkLH7R56RRcjs.computeIsNewTab.call(void 0, runtime, href, _nullishCoalesce(targetPlatform, () => ( null))) : false;
|
|
5518
5525
|
if (isNewTab) {
|
|
5519
5526
|
if (_optionalChain([runtime, 'optionalAccess', _59 => _59.navigation, 'access', _60 => _60.openExternal])) runtime.navigation.openExternal(href);
|
|
5520
|
-
else window.open(href, "_blank",
|
|
5527
|
+
else window.open(href, "_blank", _chunkLH7R56RRcjs.NEW_TAB_FEATURES);
|
|
5521
5528
|
return;
|
|
5522
5529
|
}
|
|
5523
5530
|
const handled = _nullishCoalesce(_optionalChain([runtime, 'optionalAccess', _61 => _61.navigation, 'access', _62 => _62.navigate, 'optionalCall', _63 => _63({ href, path, targetPlatform })]), () => ( false));
|
|
5524
5531
|
if (!handled) {
|
|
5525
|
-
const target =
|
|
5532
|
+
const target = _chunkLH7R56RRcjs.stripSameOriginToPath.call(void 0, href);
|
|
5526
5533
|
if (fallbackNavigate) fallbackNavigate(target);
|
|
5527
5534
|
else window.location.assign(target);
|
|
5528
5535
|
}
|
|
@@ -5578,8 +5585,8 @@ function NavLinkAnchorViaRuntime({
|
|
|
5578
5585
|
const runtime = _chunkPC7YOZ4Icjs.useRequiredChatRuntime.call(void 0, );
|
|
5579
5586
|
const router = _chunkG7UE6RKVcjs.useRouter.call(void 0, );
|
|
5580
5587
|
const panel = useChatPanel();
|
|
5581
|
-
const resolvedHref =
|
|
5582
|
-
const isNewTab =
|
|
5588
|
+
const resolvedHref = _chunkLH7R56RRcjs.resolveHrefForRuntime.call(void 0, href, runtime);
|
|
5589
|
+
const isNewTab = _chunkLH7R56RRcjs.computeIsNewTab.call(void 0, runtime, resolvedHref, _nullishCoalesce(targetPlatform, () => ( null)));
|
|
5583
5590
|
const onClick = (e) => {
|
|
5584
5591
|
const handled = handleChatNavClick(e, runtime, {
|
|
5585
5592
|
href: resolvedHref,
|
|
@@ -5592,7 +5599,7 @@ function NavLinkAnchorViaRuntime({
|
|
|
5592
5599
|
"a",
|
|
5593
5600
|
{
|
|
5594
5601
|
href: resolvedHref,
|
|
5595
|
-
...
|
|
5602
|
+
..._chunkLH7R56RRcjs.newTabAnchorAttrs.call(void 0, isNewTab),
|
|
5596
5603
|
onClick,
|
|
5597
5604
|
className,
|
|
5598
5605
|
children
|
|
@@ -5971,7 +5978,7 @@ var STATUS_BADGE_CLASS = {
|
|
|
5971
5978
|
archived: "bg-ods-border text-ods-text-secondary"
|
|
5972
5979
|
};
|
|
5973
5980
|
function WhatIShippedCard({ entry, placeholderUrl, actions, anchorProps, className }) {
|
|
5974
|
-
const month =
|
|
5981
|
+
const month = _chunkLH7R56RRcjs.formatEntryMonthUTC.call(void 0, entry.entry_month, "short");
|
|
5975
5982
|
const card = /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
5976
5983
|
AdminContentCard,
|
|
5977
5984
|
{
|
|
@@ -6029,7 +6036,7 @@ function ChatVideoEntityCard({
|
|
|
6029
6036
|
const highlightUrl = readString(m.highlightVideoUrl);
|
|
6030
6037
|
const highlightPoster = readString(m.highlightVideoPoster);
|
|
6031
6038
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
6032
|
-
|
|
6039
|
+
_chunkLH7R56RRcjs.EntityVideoSection,
|
|
6033
6040
|
{
|
|
6034
6041
|
mainVideoUrl: videoUrl,
|
|
6035
6042
|
youtubeUrl,
|
|
@@ -6246,7 +6253,7 @@ function ProductReleaseCard({
|
|
|
6246
6253
|
className: _chunkFIG2RKZFcjs.cn.call(void 0, "bg-ods-card p-4 flex flex-col gap-3", dividerClass),
|
|
6247
6254
|
children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col gap-0", children: [
|
|
6248
6255
|
cell.colorScheme ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
6249
|
-
|
|
6256
|
+
_chunkLH7R56RRcjs.StatusBadge,
|
|
6250
6257
|
{
|
|
6251
6258
|
text: cell.value,
|
|
6252
6259
|
variant: "card",
|
|
@@ -6273,7 +6280,7 @@ function ProductReleaseCard({
|
|
|
6273
6280
|
)),
|
|
6274
6281
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "bg-ods-card p-4 flex items-center gap-3", children: [
|
|
6275
6282
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
6276
|
-
|
|
6283
|
+
_chunkLH7R56RRcjs.SquareAvatar,
|
|
6277
6284
|
{
|
|
6278
6285
|
src: _nullishCoalesce(effectiveAuthor.avatar_url, () => ( void 0)),
|
|
6279
6286
|
alt: effectiveAuthor.full_name,
|
|
@@ -6597,12 +6604,12 @@ _chunkFIG2RKZFcjs.init_cn.call(void 0, );
|
|
|
6597
6604
|
|
|
6598
6605
|
function BlogCardSkeleton({ size = "default" }) {
|
|
6599
6606
|
if (size === "sm") {
|
|
6600
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className:
|
|
6601
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
6602
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className:
|
|
6603
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
6604
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
6605
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
6607
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: _chunkLH7R56RRcjs.COMPACT_CARD_SKELETON_OUTER, children: [
|
|
6608
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkLH7R56RRcjs.COMPACT_CARD_SKELETON_IMAGE_SLOT }),
|
|
6609
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: _chunkLH7R56RRcjs.COMPACT_CARD_TEXT_COL, children: [
|
|
6610
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkLH7R56RRcjs.COMPACT_CARD_TITLE_ROW, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "h-3.5 w-3/5 rounded bg-ods-bg" }) }),
|
|
6611
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkLH7R56RRcjs.COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "h-3 w-2/5 rounded bg-ods-bg/70" }) }),
|
|
6612
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkLH7R56RRcjs.COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "h-3 w-11/12 rounded bg-ods-bg/40" }) })
|
|
6606
6613
|
] })
|
|
6607
6614
|
] });
|
|
6608
6615
|
}
|
|
@@ -6632,13 +6639,13 @@ function BlogCard({
|
|
|
6632
6639
|
hasEmbeddedVideo = false,
|
|
6633
6640
|
priority = false
|
|
6634
6641
|
}) {
|
|
6635
|
-
const { target, rel } =
|
|
6642
|
+
const { target, rel } = _chunkLH7R56RRcjs.useEntityCardLink.call(void 0, {
|
|
6636
6643
|
href,
|
|
6637
6644
|
targetPlatform,
|
|
6638
6645
|
target: targetProp,
|
|
6639
6646
|
rel: relProp
|
|
6640
6647
|
});
|
|
6641
|
-
const placeholderUrl =
|
|
6648
|
+
const placeholderUrl = _chunkLH7R56RRcjs.useEntityCardPlaceholder.call(void 0, {
|
|
6642
6649
|
title: post.title,
|
|
6643
6650
|
placeholderUrl: placeholderUrlProp,
|
|
6644
6651
|
aspect: size === "sm" ? "square" : "wide"
|
|
@@ -6654,10 +6661,10 @@ function BlogCard({
|
|
|
6654
6661
|
href,
|
|
6655
6662
|
target,
|
|
6656
6663
|
rel,
|
|
6657
|
-
className: _chunkFIG2RKZFcjs.cn.call(void 0,
|
|
6664
|
+
className: _chunkFIG2RKZFcjs.cn.call(void 0, _chunkLH7R56RRcjs.COMPACT_CARD_OUTER, className),
|
|
6658
6665
|
"aria-label": `Read article: ${post.title}`,
|
|
6659
6666
|
children: [
|
|
6660
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
6667
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkLH7R56RRcjs.COMPACT_CARD_IMAGE_SLOT, children: displayImage ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
6661
6668
|
_chunkXL4V2PYGcjs.next_image_default,
|
|
6662
6669
|
{
|
|
6663
6670
|
src: displayImage,
|
|
@@ -6669,17 +6676,17 @@ function BlogCard({
|
|
|
6669
6676
|
onError: () => setImageError(true)
|
|
6670
6677
|
}
|
|
6671
6678
|
) : null }),
|
|
6672
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className:
|
|
6673
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: _chunkFIG2RKZFcjs.cn.call(void 0,
|
|
6674
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkFIG2RKZFcjs.cn.call(void 0,
|
|
6675
|
-
hasEmbeddedVideo ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
6679
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: _chunkLH7R56RRcjs.COMPACT_CARD_TEXT_COL, children: [
|
|
6680
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: _chunkFIG2RKZFcjs.cn.call(void 0, _chunkLH7R56RRcjs.COMPACT_CARD_TITLE_ROW, "gap-1.5"), children: [
|
|
6681
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkFIG2RKZFcjs.cn.call(void 0, _chunkLH7R56RRcjs.COMPACT_CARD_TITLE, "font-['DM_Sans']"), children: post.title }),
|
|
6682
|
+
hasEmbeddedVideo ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLH7R56RRcjs.StatusBadge, { text: "Video", variant: "button", colorScheme: "cyan", className: "shrink-0" }) : null
|
|
6676
6683
|
] }),
|
|
6677
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
6684
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkLH7R56RRcjs.COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: _chunkLH7R56RRcjs.COMPACT_CARD_SUBTITLE, children: [
|
|
6678
6685
|
dateStr2,
|
|
6679
6686
|
dateStr2 && firstCategory ? " \xB7 " : "",
|
|
6680
6687
|
_nullishCoalesce(firstCategory, () => ( "Blog Post"))
|
|
6681
6688
|
] }) }),
|
|
6682
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
6689
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkLH7R56RRcjs.COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkLH7R56RRcjs.COMPACT_CARD_SUMMARY, children: post.summary || _chunkLH7R56RRcjs.COMPACT_CARD_ROW_FILLER }) })
|
|
6683
6690
|
] })
|
|
6684
6691
|
]
|
|
6685
6692
|
}
|
|
@@ -6801,12 +6808,12 @@ var hideOnError = (e) => {
|
|
|
6801
6808
|
};
|
|
6802
6809
|
function CaseStudyCardSkeleton({ size = "default" }) {
|
|
6803
6810
|
if (size === "sm") {
|
|
6804
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className:
|
|
6805
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
6806
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className:
|
|
6807
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
6808
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
6809
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
6811
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: _chunkLH7R56RRcjs.COMPACT_CARD_SKELETON_OUTER, children: [
|
|
6812
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkLH7R56RRcjs.COMPACT_CARD_SKELETON_IMAGE_SLOT }),
|
|
6813
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: _chunkLH7R56RRcjs.COMPACT_CARD_TEXT_COL, children: [
|
|
6814
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkLH7R56RRcjs.COMPACT_CARD_TITLE_ROW, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "h-3.5 w-3/5 rounded bg-ods-bg" }) }),
|
|
6815
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkLH7R56RRcjs.COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "h-3 w-1/2 rounded bg-ods-bg/70" }) }),
|
|
6816
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkLH7R56RRcjs.COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "h-3 w-11/12 rounded bg-ods-bg/40" }) })
|
|
6810
6817
|
] })
|
|
6811
6818
|
] });
|
|
6812
6819
|
}
|
|
@@ -6835,21 +6842,21 @@ function CaseStudyCard({
|
|
|
6835
6842
|
size = "default",
|
|
6836
6843
|
className
|
|
6837
6844
|
}) {
|
|
6838
|
-
const { target, rel } =
|
|
6845
|
+
const { target, rel } = _chunkLH7R56RRcjs.useEntityCardLink.call(void 0, {
|
|
6839
6846
|
href,
|
|
6840
6847
|
targetPlatform,
|
|
6841
6848
|
target: targetProp,
|
|
6842
6849
|
rel: relProp
|
|
6843
6850
|
});
|
|
6844
|
-
const placeholderUrl =
|
|
6851
|
+
const placeholderUrl = _chunkLH7R56RRcjs.useEntityCardPlaceholder.call(void 0, {
|
|
6845
6852
|
title: study.title,
|
|
6846
6853
|
placeholderUrl: placeholderUrlProp,
|
|
6847
6854
|
aspect: size === "sm" ? "square" : "wide"
|
|
6848
6855
|
});
|
|
6849
6856
|
const coverImage = study.featured_image || placeholderUrl || null;
|
|
6850
6857
|
if (size === "sm") {
|
|
6851
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "a", { href, target, rel, className: _chunkFIG2RKZFcjs.cn.call(void 0,
|
|
6852
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
6858
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "a", { href, target, rel, className: _chunkFIG2RKZFcjs.cn.call(void 0, _chunkLH7R56RRcjs.COMPACT_CARD_OUTER, className), children: [
|
|
6859
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkLH7R56RRcjs.COMPACT_CARD_IMAGE_SLOT, children: coverImage ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
6853
6860
|
"img",
|
|
6854
6861
|
{
|
|
6855
6862
|
src: coverImage,
|
|
@@ -6858,14 +6865,14 @@ function CaseStudyCard({
|
|
|
6858
6865
|
onError: hideOnError
|
|
6859
6866
|
}
|
|
6860
6867
|
) : null }),
|
|
6861
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className:
|
|
6862
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
6863
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
6864
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
6868
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: _chunkLH7R56RRcjs.COMPACT_CARD_TEXT_COL, children: [
|
|
6869
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkLH7R56RRcjs.COMPACT_CARD_TITLE_ROW, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkLH7R56RRcjs.COMPACT_CARD_TITLE, children: study.title }) }),
|
|
6870
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkLH7R56RRcjs.COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkLH7R56RRcjs.COMPACT_CARD_SUBTITLE, children: [_optionalChain([study, 'access', _91 => _91.msp, 'optionalAccess', _92 => _92.name]), _optionalChain([study, 'access', _93 => _93.user, 'optionalAccess', _94 => _94.full_name])].filter(Boolean).join(" \xB7 ") || "Case study" }) }),
|
|
6871
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkLH7R56RRcjs.COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkLH7R56RRcjs.COMPACT_CARD_SUMMARY, children: study.summary || _chunkLH7R56RRcjs.COMPACT_CARD_ROW_FILLER }) })
|
|
6865
6872
|
] })
|
|
6866
6873
|
] });
|
|
6867
6874
|
}
|
|
6868
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "a", { href, target, rel, className: _chunkFIG2RKZFcjs.cn.call(void 0, "block h-full", className), children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
6875
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "a", { href, target, rel, className: _chunkFIG2RKZFcjs.cn.call(void 0, "block h-full", className), children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkLH7R56RRcjs.Card, { className: "bg-ods-card border border-ods-border hover:border-ods-accent transition-colors p-6 flex flex-col gap-6 overflow-hidden", children: [
|
|
6869
6876
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "relative w-full aspect-[1200/630] rounded-sm overflow-hidden bg-ods-bg shrink-0", children: coverImage && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
6870
6877
|
_chunkXL4V2PYGcjs.next_image_default,
|
|
6871
6878
|
{
|
|
@@ -6928,12 +6935,12 @@ var hideOnError2 = (e) => {
|
|
|
6928
6935
|
};
|
|
6929
6936
|
function CustomerInterviewCardSkeleton({ size = "default" }) {
|
|
6930
6937
|
if (size === "sm") {
|
|
6931
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className:
|
|
6932
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
6933
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className:
|
|
6934
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
6935
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
6936
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
6938
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: _chunkLH7R56RRcjs.COMPACT_CARD_SKELETON_OUTER, children: [
|
|
6939
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkLH7R56RRcjs.COMPACT_CARD_SKELETON_IMAGE_SLOT }),
|
|
6940
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: _chunkLH7R56RRcjs.COMPACT_CARD_TEXT_COL, children: [
|
|
6941
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkLH7R56RRcjs.COMPACT_CARD_TITLE_ROW, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "h-3.5 w-3/5 rounded bg-ods-bg" }) }),
|
|
6942
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkLH7R56RRcjs.COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "h-3 w-2/5 rounded bg-ods-bg/70" }) }),
|
|
6943
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkLH7R56RRcjs.COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "h-3 w-11/12 rounded bg-ods-bg/40" }) })
|
|
6937
6944
|
] })
|
|
6938
6945
|
] });
|
|
6939
6946
|
}
|
|
@@ -6967,21 +6974,21 @@ function CustomerInterviewCard({
|
|
|
6967
6974
|
size = "default",
|
|
6968
6975
|
className
|
|
6969
6976
|
}) {
|
|
6970
|
-
const { target, rel } =
|
|
6977
|
+
const { target, rel } = _chunkLH7R56RRcjs.useEntityCardLink.call(void 0, {
|
|
6971
6978
|
href,
|
|
6972
6979
|
targetPlatform,
|
|
6973
6980
|
target: targetProp,
|
|
6974
6981
|
rel: relProp
|
|
6975
6982
|
});
|
|
6976
|
-
const placeholderUrl =
|
|
6983
|
+
const placeholderUrl = _chunkLH7R56RRcjs.useEntityCardPlaceholder.call(void 0, {
|
|
6977
6984
|
title: interview.title,
|
|
6978
6985
|
placeholderUrl: placeholderUrlProp,
|
|
6979
6986
|
aspect: size === "sm" ? "square" : "wide"
|
|
6980
6987
|
});
|
|
6981
6988
|
const thumbnailUrl = interview.featured_image || placeholderUrl || null;
|
|
6982
6989
|
if (size === "sm") {
|
|
6983
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "a", { href, target, rel, className: _chunkFIG2RKZFcjs.cn.call(void 0,
|
|
6984
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className:
|
|
6990
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "a", { href, target, rel, className: _chunkFIG2RKZFcjs.cn.call(void 0, _chunkLH7R56RRcjs.COMPACT_CARD_OUTER, className), children: [
|
|
6991
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: _chunkLH7R56RRcjs.COMPACT_CARD_IMAGE_SLOT, children: [
|
|
6985
6992
|
thumbnailUrl ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
6986
6993
|
"img",
|
|
6987
6994
|
{
|
|
@@ -6993,14 +7000,14 @@ function CustomerInterviewCard({
|
|
|
6993
7000
|
) : null,
|
|
6994
7001
|
interview.main_video_url ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "absolute inset-0 flex items-center justify-center bg-black/30", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.Video, { className: "h-4 w-4 text-white" }) }) : null
|
|
6995
7002
|
] }),
|
|
6996
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className:
|
|
6997
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
6998
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
6999
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
7003
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: _chunkLH7R56RRcjs.COMPACT_CARD_TEXT_COL, children: [
|
|
7004
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkLH7R56RRcjs.COMPACT_CARD_TITLE_ROW, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkLH7R56RRcjs.COMPACT_CARD_TITLE, children: interview.title }) }),
|
|
7005
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkLH7R56RRcjs.COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkLH7R56RRcjs.COMPACT_CARD_SUBTITLE, children: [_optionalChain([interview, 'access', _111 => _111.user, 'optionalAccess', _112 => _112.full_name]), _optionalChain([interview, 'access', _113 => _113.msp, 'optionalAccess', _114 => _114.name])].filter(Boolean).join(" \xB7 ") || "Customer interview" }) }),
|
|
7006
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkLH7R56RRcjs.COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkLH7R56RRcjs.COMPACT_CARD_SUMMARY, children: interview.video_summary || _chunkLH7R56RRcjs.COMPACT_CARD_ROW_FILLER }) })
|
|
7000
7007
|
] })
|
|
7001
7008
|
] });
|
|
7002
7009
|
}
|
|
7003
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "a", { href, target, rel, className: _chunkFIG2RKZFcjs.cn.call(void 0, "block h-full", className), children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
7010
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "a", { href, target, rel, className: _chunkFIG2RKZFcjs.cn.call(void 0, "block h-full", className), children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkLH7R56RRcjs.Card, { className: "bg-ods-card border border-ods-border hover:border-ods-accent transition-colors p-6 flex flex-col gap-6 overflow-hidden", children: [
|
|
7004
7011
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "w-full aspect-[1200/630] rounded-sm overflow-hidden bg-ods-bg shrink-0 relative", children: thumbnailUrl ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
7005
7012
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
7006
7013
|
"img",
|
|
@@ -7067,15 +7074,15 @@ function formatInvestorUpdatePeriod(start, end, options) {
|
|
|
7067
7074
|
|
|
7068
7075
|
function InvestorUpdateCardSkeleton({ size = "default" }) {
|
|
7069
7076
|
if (size === "sm") {
|
|
7070
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className:
|
|
7071
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
7072
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className:
|
|
7073
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: `${
|
|
7077
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: _chunkLH7R56RRcjs.COMPACT_CARD_SKELETON_OUTER, children: [
|
|
7078
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkLH7R56RRcjs.COMPACT_CARD_SKELETON_IMAGE_SLOT }),
|
|
7079
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: _chunkLH7R56RRcjs.COMPACT_CARD_TEXT_COL, children: [
|
|
7080
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: `${_chunkLH7R56RRcjs.COMPACT_CARD_TITLE_ROW} flex-nowrap gap-2`, children: [
|
|
7074
7081
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "h-3.5 w-1/2 rounded bg-ods-bg" }),
|
|
7075
7082
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "h-4 w-8 rounded bg-ods-bg/70 shrink-0" })
|
|
7076
7083
|
] }),
|
|
7077
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
7078
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
7084
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkLH7R56RRcjs.COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "h-3 w-1/3 rounded bg-ods-bg/70" }) }),
|
|
7085
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkLH7R56RRcjs.COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "h-3 w-11/12 rounded bg-ods-bg/40" }) })
|
|
7079
7086
|
] })
|
|
7080
7087
|
] });
|
|
7081
7088
|
}
|
|
@@ -7099,13 +7106,13 @@ function InvestorUpdateCard({
|
|
|
7099
7106
|
size = "default",
|
|
7100
7107
|
className
|
|
7101
7108
|
}) {
|
|
7102
|
-
const { target, rel } =
|
|
7109
|
+
const { target, rel } = _chunkLH7R56RRcjs.useEntityCardLink.call(void 0, {
|
|
7103
7110
|
href,
|
|
7104
7111
|
targetPlatform,
|
|
7105
7112
|
target: targetProp,
|
|
7106
7113
|
rel: relProp
|
|
7107
7114
|
});
|
|
7108
|
-
const placeholderUrl =
|
|
7115
|
+
const placeholderUrl = _chunkLH7R56RRcjs.useEntityCardPlaceholder.call(void 0, {
|
|
7109
7116
|
title: _nullishCoalesce(update.title, () => ( `Update #${_nullishCoalesce(update.update_number, () => ( ""))}`)),
|
|
7110
7117
|
placeholderUrl: placeholderUrlProp,
|
|
7111
7118
|
aspect: size === "sm" ? "square" : "wide"
|
|
@@ -7113,8 +7120,8 @@ function InvestorUpdateCard({
|
|
|
7113
7120
|
const coverImage = update.featured_image || placeholderUrl || null;
|
|
7114
7121
|
if (size === "sm") {
|
|
7115
7122
|
const periodText = formatInvestorUpdatePeriod(update.period_start, update.period_end);
|
|
7116
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "a", { href, target, rel, className: `${
|
|
7117
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
7123
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "a", { href, target, rel, className: `${_chunkLH7R56RRcjs.COMPACT_CARD_OUTER} ${_nullishCoalesce(className, () => ( ""))}`, children: [
|
|
7124
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkLH7R56RRcjs.COMPACT_CARD_IMAGE_SLOT, children: coverImage ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
7118
7125
|
"img",
|
|
7119
7126
|
{
|
|
7120
7127
|
src: coverImage,
|
|
@@ -7126,16 +7133,16 @@ function InvestorUpdateCard({
|
|
|
7126
7133
|
}
|
|
7127
7134
|
}
|
|
7128
7135
|
) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "flex h-full w-full items-center justify-center text-ods-accent", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.Calendar, { className: "h-4 w-4" }) }) }),
|
|
7129
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className:
|
|
7130
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: `${
|
|
7131
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: `${
|
|
7136
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: _chunkLH7R56RRcjs.COMPACT_CARD_TEXT_COL, children: [
|
|
7137
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: `${_chunkLH7R56RRcjs.COMPACT_CARD_TITLE_ROW} gap-2`, children: [
|
|
7138
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: `${_chunkLH7R56RRcjs.COMPACT_CARD_TITLE} min-w-0`, children: update.title || `Update #${_nullishCoalesce(update.update_number, () => ( "?"))}` }),
|
|
7132
7139
|
update.update_number ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "shrink-0 rounded bg-ods-accent/10 px-1.5 py-0.5 text-[10px] font-medium text-ods-accent", children: [
|
|
7133
7140
|
"#",
|
|
7134
7141
|
update.update_number
|
|
7135
7142
|
] }) : null
|
|
7136
7143
|
] }),
|
|
7137
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
7138
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
7144
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkLH7R56RRcjs.COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkLH7R56RRcjs.COMPACT_CARD_SUBTITLE, children: periodText || "Investor update" }) }),
|
|
7145
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkLH7R56RRcjs.COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkLH7R56RRcjs.COMPACT_CARD_SUMMARY, children: (update.strategic_update || update.content || "").slice(0, 120) || _chunkLH7R56RRcjs.COMPACT_CARD_ROW_FILLER }) })
|
|
7139
7146
|
] })
|
|
7140
7147
|
] });
|
|
7141
7148
|
}
|
|
@@ -7626,7 +7633,7 @@ function AutocompleteInner(props, ref) {
|
|
|
7626
7633
|
className: "flex-1 flex items-center gap-2 min-w-0 overflow-hidden px-2",
|
|
7627
7634
|
children: [
|
|
7628
7635
|
multiple && visibleTags.map((option) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
7629
|
-
|
|
7636
|
+
_chunkLH7R56RRcjs.Tag,
|
|
7630
7637
|
{
|
|
7631
7638
|
variant: "outline",
|
|
7632
7639
|
labelClassName: "truncate max-w-[90px]",
|
|
@@ -7794,7 +7801,7 @@ function AutocompleteInner(props, ref) {
|
|
|
7794
7801
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk6JINAOI7cjs.FieldWrapper, { label, error, className, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "relative", ref: containerRef, children: [
|
|
7795
7802
|
popover,
|
|
7796
7803
|
multiple && showHiddenTags && hiddenTagsCount > 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
7797
|
-
|
|
7804
|
+
_chunkLH7R56RRcjs.HiddenTagsPopup,
|
|
7798
7805
|
{
|
|
7799
7806
|
ref: hiddenTagsPopupRef,
|
|
7800
7807
|
items: hiddenTags,
|
|
@@ -7826,7 +7833,7 @@ function AutocompleteInner(props, ref) {
|
|
|
7826
7833
|
"aria-hidden": "true",
|
|
7827
7834
|
className: "absolute left-0 top-0 flex gap-2 pointer-events-none invisible -z-10",
|
|
7828
7835
|
children: selectedOptions.map((option) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
7829
|
-
|
|
7836
|
+
_chunkLH7R56RRcjs.Tag,
|
|
7830
7837
|
{
|
|
7831
7838
|
variant: "outline",
|
|
7832
7839
|
labelClassName: "truncate max-w-[90px]",
|
|
@@ -9727,7 +9734,7 @@ function TagsManager({
|
|
|
9727
9734
|
}
|
|
9728
9735
|
),
|
|
9729
9736
|
selectedTags.map((tag) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
9730
|
-
|
|
9737
|
+
_chunkLH7R56RRcjs.Tag,
|
|
9731
9738
|
{
|
|
9732
9739
|
label: tag.name,
|
|
9733
9740
|
variant: "outline",
|
|
@@ -12049,7 +12056,7 @@ function renderAdvancedPageContainer({
|
|
|
12049
12056
|
};
|
|
12050
12057
|
const renderActions = () => {
|
|
12051
12058
|
if (!actions || actions.length === 0) return null;
|
|
12052
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12059
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLH7R56RRcjs.PageActions, { variant: getActionsVariant(), actions, menuActions });
|
|
12053
12060
|
};
|
|
12054
12061
|
const needsBottomPadding = actions && actions.length > 0 && getActionsVariant() === "primary-buttons";
|
|
12055
12062
|
const paddingClasses = {
|
|
@@ -12074,7 +12081,7 @@ function renderAdvancedPageContainer({
|
|
|
12074
12081
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-end justify-between md:flex-col md:items-start md:justify-start lg:flex-row lg:items-end lg:justify-between gap-4", children: [
|
|
12075
12082
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col gap-2 flex-1 min-w-0", children: [
|
|
12076
12083
|
backButton && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12077
|
-
|
|
12084
|
+
_chunkLH7R56RRcjs.BackButton,
|
|
12078
12085
|
{
|
|
12079
12086
|
onClick: backButton.onClick,
|
|
12080
12087
|
label: backButton.label,
|
|
@@ -12094,7 +12101,7 @@ function renderAdvancedPageContainer({
|
|
|
12094
12101
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center justify-between md:flex-col md:items-start md:justify-start lg:flex-row lg:items-center lg:justify-between gap-4", children: [
|
|
12095
12102
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col gap-1 flex-1 min-w-0", children: [
|
|
12096
12103
|
backButton && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12097
|
-
|
|
12104
|
+
_chunkLH7R56RRcjs.BackButton,
|
|
12098
12105
|
{
|
|
12099
12106
|
onClick: backButton.onClick,
|
|
12100
12107
|
label: backButton.label,
|
|
@@ -12114,7 +12121,7 @@ function renderAdvancedPageContainer({
|
|
|
12114
12121
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-end justify-between md:flex-col md:items-start md:justify-start lg:flex-row lg:items-end lg:justify-between gap-4", children: [
|
|
12115
12122
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col gap-2 flex-1 min-w-0", children: [
|
|
12116
12123
|
backButton && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12117
|
-
|
|
12124
|
+
_chunkLH7R56RRcjs.BackButton,
|
|
12118
12125
|
{
|
|
12119
12126
|
onClick: backButton.onClick,
|
|
12120
12127
|
label: backButton.label,
|
|
@@ -12217,7 +12224,7 @@ function ListPageLayout({
|
|
|
12217
12224
|
}, [debouncedSearchValue, onSearch, searchValue]);
|
|
12218
12225
|
const hasMobileFilter = mobileFilterGroups && mobileFilterGroups.length > 0 || mobileSortConfig && mobileSortConfig.columns.length > 0;
|
|
12219
12226
|
if (error) {
|
|
12220
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12227
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLH7R56RRcjs.PageError, { message: error });
|
|
12221
12228
|
}
|
|
12222
12229
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12223
12230
|
ListPageContainer,
|
|
@@ -14241,7 +14248,7 @@ function DashboardInfoCard({
|
|
|
14241
14248
|
_nullishCoalesce(titleSlot, () => ( /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-h5 text-ods-text-secondary", children: title }))),
|
|
14242
14249
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center gap-[var(--spacing-system-xs)]", children: [
|
|
14243
14250
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: _chunkFIG2RKZFcjs.cn.call(void 0, "text-h2 text-ods-text-primary", valueClassName), children: formattedValue }),
|
|
14244
|
-
percentage !== void 0 && (progressVariant === "warning" || progressVariant === "error" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
14251
|
+
percentage !== void 0 && (progressVariant === "warning" || progressVariant === "error" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLH7R56RRcjs.Tag, { variant: progressVariant, label: `${percentage}%` }) : /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "p", { className: "text-h4 text-ods-text-secondary", children: [
|
|
14245
14252
|
"(",
|
|
14246
14253
|
percentage,
|
|
14247
14254
|
"%)"
|
|
@@ -14432,7 +14439,7 @@ function DeviceCard({
|
|
|
14432
14439
|
] }),
|
|
14433
14440
|
(statusTag || device.lastSeen) && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex gap-2 items-center w-full", children: [
|
|
14434
14441
|
statusTag && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
14435
|
-
|
|
14442
|
+
_chunkLH7R56RRcjs.Tag,
|
|
14436
14443
|
{
|
|
14437
14444
|
variant: statusTag.variant,
|
|
14438
14445
|
icon: statusTag.icon,
|
|
@@ -14446,7 +14453,7 @@ function DeviceCard({
|
|
|
14446
14453
|
formatLastSeen(device.lastSeen)
|
|
14447
14454
|
] })
|
|
14448
14455
|
] }),
|
|
14449
|
-
device.tags && device.tags.length > 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex gap-2 items-center w-full flex-wrap", children: device.tags.map((tag, index) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
14456
|
+
device.tags && device.tags.length > 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex gap-2 items-center w-full flex-wrap", children: device.tags.map((tag, index) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLH7R56RRcjs.Tag, { variant: "outline", label: tag }, index)) })
|
|
14450
14457
|
]
|
|
14451
14458
|
}
|
|
14452
14459
|
);
|
|
@@ -14523,7 +14530,7 @@ function FeatureCardGrid({
|
|
|
14523
14530
|
if (allCardsHaveNoBorders) {
|
|
14524
14531
|
finalCardClassName = "bg-transparent p-0 overflow-visible border-0 shadow-none rounded-none";
|
|
14525
14532
|
}
|
|
14526
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
14533
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLH7R56RRcjs.Card, { className: `${finalCardClassName} ${className}`, children: Array.from({ length: rows }, (_, rowIndex) => {
|
|
14527
14534
|
const startIndex = rowIndex * itemsPerRow;
|
|
14528
14535
|
const rowItems = items.slice(startIndex, startIndex + itemsPerRow);
|
|
14529
14536
|
const isLastRow = rowIndex === rows - 1;
|
|
@@ -14553,7 +14560,7 @@ function FeatureCardGrid({
|
|
|
14553
14560
|
item.icon && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-start justify-between", children: [
|
|
14554
14561
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, item.icon, { size: 80, color: item.iconColor }),
|
|
14555
14562
|
item.badge && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
14556
|
-
|
|
14563
|
+
_chunkLH7R56RRcjs.StatusBadge,
|
|
14557
14564
|
{
|
|
14558
14565
|
text: item.badge.text,
|
|
14559
14566
|
variant: item.badge.variant || "card",
|
|
@@ -14562,7 +14569,7 @@ function FeatureCardGrid({
|
|
|
14562
14569
|
)
|
|
14563
14570
|
] }),
|
|
14564
14571
|
!item.icon && item.badge && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex items-start justify-end", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
14565
|
-
|
|
14572
|
+
_chunkLH7R56RRcjs.StatusBadge,
|
|
14566
14573
|
{
|
|
14567
14574
|
text: item.badge.text,
|
|
14568
14575
|
variant: item.badge.variant || "card",
|
|
@@ -14832,7 +14839,7 @@ function DropdownButton({
|
|
|
14832
14839
|
[disabled]
|
|
14833
14840
|
);
|
|
14834
14841
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
14835
|
-
|
|
14842
|
+
_chunkLH7R56RRcjs.ActionsMenuDropdown,
|
|
14836
14843
|
{
|
|
14837
14844
|
groups: [{ items }],
|
|
14838
14845
|
open,
|
|
@@ -15023,7 +15030,7 @@ function OrganizationCard({
|
|
|
15023
15030
|
),
|
|
15024
15031
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-start gap-3 w-full", children: [
|
|
15025
15032
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
15026
|
-
|
|
15033
|
+
_chunkLH7R56RRcjs.EntityImage,
|
|
15027
15034
|
{
|
|
15028
15035
|
src: fetchedImageUrl || organization.imageUrl,
|
|
15029
15036
|
alt: organization.name
|
|
@@ -15774,7 +15781,7 @@ var SectionButton = ({
|
|
|
15774
15781
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center gap-2 flex-wrap", children: [
|
|
15775
15782
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: _chunkFIG2RKZFcjs.cn.call(void 0, titleClasses, "font-medium text-lg leading-[24px] whitespace-normal break-words"), children: section.title }),
|
|
15776
15783
|
section.badge && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
15777
|
-
|
|
15784
|
+
_chunkLH7R56RRcjs.StatusBadge,
|
|
15778
15785
|
{
|
|
15779
15786
|
text: section.badge.text,
|
|
15780
15787
|
variant: section.badge.variant || "button",
|
|
@@ -15793,7 +15800,7 @@ var SectionButton = ({
|
|
|
15793
15800
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-start gap-2 flex-wrap w-full", children: [
|
|
15794
15801
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkFIG2RKZFcjs.cn.call(void 0, titleClasses, "font-bold text-[18px] leading-[24px] tracking-[-0.36px]"), style: { textAlign: "left" }, children: section.title }),
|
|
15795
15802
|
section.badge && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
15796
|
-
|
|
15803
|
+
_chunkLH7R56RRcjs.StatusBadge,
|
|
15797
15804
|
{
|
|
15798
15805
|
text: section.badge.text,
|
|
15799
15806
|
variant: section.badge.variant || "button",
|
|
@@ -16065,7 +16072,7 @@ function renderUnifiedUI(state, handlers, config, iframeRef) {
|
|
|
16065
16072
|
sandbox: "allow-scripts allow-same-origin allow-popups allow-presentation",
|
|
16066
16073
|
title: config.title,
|
|
16067
16074
|
loading: "eager",
|
|
16068
|
-
...
|
|
16075
|
+
..._chunkLH7R56RRcjs.fetchPriorityProp.call(void 0, "high")
|
|
16069
16076
|
},
|
|
16070
16077
|
iframeKey
|
|
16071
16078
|
),
|
|
@@ -16903,7 +16910,7 @@ function MediaGalleryManager({
|
|
|
16903
16910
|
const renderMediaItem = _react.useCallback.call(void 0, (mediaItem, index) => {
|
|
16904
16911
|
const isDeleting = deletingIndex === index;
|
|
16905
16912
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
16906
|
-
|
|
16913
|
+
_chunkLH7R56RRcjs.Card,
|
|
16907
16914
|
{
|
|
16908
16915
|
className: "relative group border-ods-border hover:border-ods-accent/30 transition-colors",
|
|
16909
16916
|
draggable: true,
|
|
@@ -17863,7 +17870,7 @@ var SelectButton = React92.default.forwardRef(
|
|
|
17863
17870
|
}
|
|
17864
17871
|
)
|
|
17865
17872
|
] }),
|
|
17866
|
-
tag && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
17873
|
+
tag && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLH7R56RRcjs.Tag, { variant: tagVariant, className: "shrink-0", label: tag }),
|
|
17867
17874
|
selected && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
17868
17875
|
_chunkC6ASEPZLcjs.CheckCircleIcon,
|
|
17869
17876
|
{
|
|
@@ -18285,7 +18292,7 @@ var StartWithOpenFrameButton = React68.forwardRef(({ children = "Start Free Tria
|
|
|
18285
18292
|
}
|
|
18286
18293
|
) : void 0,
|
|
18287
18294
|
rightIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
18288
|
-
|
|
18295
|
+
_chunkLH7R56RRcjs.StatusBadge,
|
|
18289
18296
|
{
|
|
18290
18297
|
text: "Beta",
|
|
18291
18298
|
variant: "button",
|
|
@@ -21797,6 +21804,7 @@ var MAX_VISIBLE_ASSIGNEES = 3;
|
|
|
21797
21804
|
function TicketCard({
|
|
21798
21805
|
ticket,
|
|
21799
21806
|
columnId,
|
|
21807
|
+
columnColor,
|
|
21800
21808
|
href,
|
|
21801
21809
|
isOverlay = false,
|
|
21802
21810
|
dragDisabled,
|
|
@@ -21811,10 +21819,13 @@ function TicketCard({
|
|
|
21811
21819
|
data: sortableData,
|
|
21812
21820
|
disabled: dragDisabled
|
|
21813
21821
|
});
|
|
21814
|
-
const
|
|
21822
|
+
const showNewMessage = !!ticket.hasNewMessage && !!columnColor;
|
|
21823
|
+
const newMessageTextColor = columnColor ? getReadableTextColor(columnColor) : void 0;
|
|
21824
|
+
const style = isOverlay ? {} : {
|
|
21815
21825
|
transform: _utilities.CSS.Transform.toString(sortable.transform),
|
|
21816
21826
|
transition: sortable.transition
|
|
21817
21827
|
};
|
|
21828
|
+
if (showNewMessage) style.borderColor = columnColor;
|
|
21818
21829
|
const showDeviceRow = !!(_optionalChain([ticket, 'access', _372 => _372.deviceHostnames, 'optionalAccess', _373 => _373.length]) || ticket.organizationName);
|
|
21819
21830
|
const deviceText = [
|
|
21820
21831
|
_optionalChain([ticket, 'access', _374 => _374.deviceHostnames, 'optionalAccess', _375 => _375.join, 'call', _376 => _376(", ")]),
|
|
@@ -21834,7 +21845,7 @@ function TicketCard({
|
|
|
21834
21845
|
),
|
|
21835
21846
|
renderAssignSlot ? renderAssignSlot(ticket) : _optionalChain([ticket, 'access', _379 => _379.assignees, 'optionalAccess', _380 => _380.length]) ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex -space-x-2", children: [
|
|
21836
21847
|
ticket.assignees.slice(0, MAX_VISIBLE_ASSIGNEES).map((a) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
21837
|
-
|
|
21848
|
+
_chunkLH7R56RRcjs.SquareAvatar,
|
|
21838
21849
|
{
|
|
21839
21850
|
src: a.avatarUrl,
|
|
21840
21851
|
alt: _nullishCoalesce(_nullishCoalesce(a.name, () => ( a.initials)), () => ( a.id)),
|
|
@@ -21867,7 +21878,16 @@ function TicketCard({
|
|
|
21867
21878
|
timestampLabel && tooltipLabel && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TooltipProvider, { children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, Tooltip, { children: [
|
|
21868
21879
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, TooltipTrigger, { asChild: true, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "pointer-events-auto text-h6 truncate text-ods-text-secondary", children: timestampLabel }) }),
|
|
21869
21880
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, TooltipContent, { children: tooltipLabel })
|
|
21870
|
-
] }) })
|
|
21881
|
+
] }) }),
|
|
21882
|
+
showNewMessage && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
21883
|
+
_chunkLH7R56RRcjs.Tag,
|
|
21884
|
+
{
|
|
21885
|
+
label: "New Message",
|
|
21886
|
+
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkC6ASEPZLcjs.MessagesIcon, { size: 16, color: newMessageTextColor }),
|
|
21887
|
+
className: "w-fit shrink-0",
|
|
21888
|
+
style: { backgroundColor: columnColor, color: newMessageTextColor }
|
|
21889
|
+
}
|
|
21890
|
+
)
|
|
21871
21891
|
] });
|
|
21872
21892
|
const cardClasses = _chunkFIG2RKZFcjs.cn.call(void 0,
|
|
21873
21893
|
"relative flex flex-col gap-[var(--spacing-system-sf)] rounded-md border border-ods-border bg-ods-bg p-[var(--spacing-system-sf)] select-none text-left",
|
|
@@ -21877,7 +21897,7 @@ function TicketCard({
|
|
|
21877
21897
|
);
|
|
21878
21898
|
const outerProps = {
|
|
21879
21899
|
ref: isOverlay ? void 0 : sortable.setNodeRef,
|
|
21880
|
-
style
|
|
21900
|
+
style,
|
|
21881
21901
|
className: cardClasses,
|
|
21882
21902
|
...isOverlay ? {} : sortable.attributes,
|
|
21883
21903
|
...isOverlay ? {} : sortable.listeners
|
|
@@ -21919,8 +21939,8 @@ function TicketTagRow({ tags }) {
|
|
|
21919
21939
|
const visible = tags.slice(0, MAX_VISIBLE_TAGS);
|
|
21920
21940
|
const hidden = tags.length - visible.length;
|
|
21921
21941
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex h-8 flex-wrap items-start gap-[var(--spacing-system-xxs)] overflow-clip", children: [
|
|
21922
|
-
visible.map((tag) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
21923
|
-
hidden > 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
21942
|
+
visible.map((tag) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLH7R56RRcjs.Tag, { variant: "outline", label: tag }, tag)),
|
|
21943
|
+
hidden > 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLH7R56RRcjs.Tag, { variant: "outline", label: `+${hidden}` })
|
|
21924
21944
|
] });
|
|
21925
21945
|
}
|
|
21926
21946
|
|
|
@@ -22071,6 +22091,7 @@ function ColumnBody({ column, getTicketHref, renderAssignSlot, onLoadMore, loadM
|
|
|
22071
22091
|
{
|
|
22072
22092
|
ticket: t,
|
|
22073
22093
|
columnId: column.id,
|
|
22094
|
+
columnColor: column.color,
|
|
22074
22095
|
href: _optionalChain([getTicketHref, 'optionalCall', _385 => _385(t.id)]),
|
|
22075
22096
|
renderAssignSlot,
|
|
22076
22097
|
dragDisabled: column.dragDisabled
|
|
@@ -22361,7 +22382,15 @@ function Board({
|
|
|
22361
22382
|
}
|
|
22362
22383
|
)
|
|
22363
22384
|
] }),
|
|
22364
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _core.DragOverlay, { dropAnimation: null, children: activeTicket ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
22385
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _core.DragOverlay, { dropAnimation: null, children: activeTicket ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
22386
|
+
TicketCard,
|
|
22387
|
+
{
|
|
22388
|
+
ticket: activeTicket.ticket,
|
|
22389
|
+
columnId: activeTicket.columnId,
|
|
22390
|
+
columnColor: _optionalChain([items, 'access', _421 => _421.find, 'call', _422 => _422((c) => c.id === activeTicket.columnId), 'optionalAccess', _423 => _423.color]),
|
|
22391
|
+
isOverlay: true
|
|
22392
|
+
}
|
|
22393
|
+
) : null })
|
|
22365
22394
|
]
|
|
22366
22395
|
}
|
|
22367
22396
|
);
|
|
@@ -22374,7 +22403,7 @@ function locate(cols, ticketId) {
|
|
|
22374
22403
|
return null;
|
|
22375
22404
|
}
|
|
22376
22405
|
function findIndexInColumn(cols, columnId, ticketId) {
|
|
22377
|
-
return _nullishCoalesce(_optionalChain([cols, 'access',
|
|
22406
|
+
return _nullishCoalesce(_optionalChain([cols, 'access', _424 => _424.find, 'call', _425 => _425((c) => c.id === columnId), 'optionalAccess', _426 => _426.tickets, 'access', _427 => _427.findIndex, 'call', _428 => _428((t) => t.id === ticketId)]), () => ( -1));
|
|
22378
22407
|
}
|
|
22379
22408
|
|
|
22380
22409
|
// src/components/features/board/types.ts
|
|
@@ -22622,7 +22651,7 @@ function Header2({ config, platform }) {
|
|
|
22622
22651
|
className: _chunkFIG2RKZFcjs.cn.call(void 0,
|
|
22623
22652
|
"flex justify-start w-full",
|
|
22624
22653
|
"font-bold text-[16px] leading-none tracking-[-0.32px]",
|
|
22625
|
-
index < (_nullishCoalesce(_optionalChain([item, 'access',
|
|
22654
|
+
index < (_nullishCoalesce(_optionalChain([item, 'access', _429 => _429.children, 'optionalAccess', _430 => _430.length]), () => ( 0))) - 1 && "mb-1",
|
|
22626
22655
|
"text-ods-text-primary",
|
|
22627
22656
|
// All dropdown items use primary text color
|
|
22628
22657
|
child.isActive && "bg-ods-bg-hover"
|
|
@@ -22714,7 +22743,7 @@ function Header2({ config, platform }) {
|
|
|
22714
22743
|
style: config.style,
|
|
22715
22744
|
children: [
|
|
22716
22745
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center justify-start flex-shrink-0", children: [
|
|
22717
|
-
_optionalChain([config, 'access',
|
|
22746
|
+
_optionalChain([config, 'access', _431 => _431.actions, 'optionalAccess', _432 => _432.left]) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex items-center", children: config.actions.left }),
|
|
22718
22747
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkWBR7H6E3cjs.next_link_default, { href: config.logo.href, className: "transition-opacity duration-200 hover:opacity-80", children: config.logo.element })
|
|
22719
22748
|
] }),
|
|
22720
22749
|
config.navigation && config.navigation.items.length > 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -22731,7 +22760,7 @@ function Header2({ config, platform }) {
|
|
|
22731
22760
|
}
|
|
22732
22761
|
),
|
|
22733
22762
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center justify-end gap-4 flex-shrink-0", children: [
|
|
22734
|
-
_optionalChain([config, 'access',
|
|
22763
|
+
_optionalChain([config, 'access', _433 => _433.actions, 'optionalAccess', _434 => _434.right]) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "hidden md:flex items-center gap-4", children: config.actions.right }),
|
|
22735
22764
|
config.mobile && config.mobile.enabled && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
22736
22765
|
_chunkN5UOJC3Vcjs.Button,
|
|
22737
22766
|
{
|
|
@@ -22739,10 +22768,10 @@ function Header2({ config, platform }) {
|
|
|
22739
22768
|
size: "icon",
|
|
22740
22769
|
className: "flex md:hidden",
|
|
22741
22770
|
onClick: () => {
|
|
22742
|
-
_optionalChain([config, 'access',
|
|
22771
|
+
_optionalChain([config, 'access', _435 => _435.mobile, 'optionalAccess', _436 => _436.onToggle, 'optionalCall', _437 => _437()]);
|
|
22743
22772
|
},
|
|
22744
|
-
"aria-label": _optionalChain([config, 'access',
|
|
22745
|
-
leftIcon: _optionalChain([config, 'access',
|
|
22773
|
+
"aria-label": _optionalChain([config, 'access', _438 => _438.mobile, 'optionalAccess', _439 => _439.isOpen]) ? "Close menu" : "Open menu",
|
|
22774
|
+
leftIcon: _optionalChain([config, 'access', _440 => _440.mobile, 'optionalAccess', _441 => _441.menuIcon]) || /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkC6ASEPZLcjs.Menu01Icon, {})
|
|
22746
22775
|
}
|
|
22747
22776
|
)
|
|
22748
22777
|
] })
|
|
@@ -22759,10 +22788,10 @@ function Header2({ config, platform }) {
|
|
|
22759
22788
|
// src/components/navigation/header-skeleton.tsx
|
|
22760
22789
|
|
|
22761
22790
|
function HeaderSkeleton({ config }) {
|
|
22762
|
-
const showNavigation = _optionalChain([config, 'optionalAccess',
|
|
22763
|
-
const showActions = _optionalChain([config, 'optionalAccess',
|
|
22764
|
-
const showMobileMenu = _optionalChain([config, 'optionalAccess',
|
|
22765
|
-
const isAdminHeader = _optionalChain([config, 'optionalAccess',
|
|
22791
|
+
const showNavigation = _optionalChain([config, 'optionalAccess', _442 => _442.navigation]) && config.navigation.items.length > 0;
|
|
22792
|
+
const showActions = _optionalChain([config, 'optionalAccess', _443 => _443.actions, 'optionalAccess', _444 => _444.right]) && config.actions.right.length > 0;
|
|
22793
|
+
const showMobileMenu = _optionalChain([config, 'optionalAccess', _445 => _445.mobile, 'optionalAccess', _446 => _446.enabled]);
|
|
22794
|
+
const isAdminHeader = _optionalChain([config, 'optionalAccess', _447 => _447.className, 'optionalAccess', _448 => _448.includes, 'call', _449 => _449("admin")]);
|
|
22766
22795
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "sticky top-0 z-40 w-full", children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
22767
22796
|
"header",
|
|
22768
22797
|
{
|
|
@@ -22771,11 +22800,11 @@ function HeaderSkeleton({ config }) {
|
|
|
22771
22800
|
"bg-ods-card border-b border-ods-border backdrop-blur-sm",
|
|
22772
22801
|
"px-6 py-3",
|
|
22773
22802
|
"transition-opacity duration-300 ease-in-out",
|
|
22774
|
-
_optionalChain([config, 'optionalAccess',
|
|
22803
|
+
_optionalChain([config, 'optionalAccess', _450 => _450.className])
|
|
22775
22804
|
),
|
|
22776
22805
|
children: [
|
|
22777
22806
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center justify-start flex-shrink-0", children: [
|
|
22778
|
-
isAdminHeader && _optionalChain([config, 'optionalAccess',
|
|
22807
|
+
isAdminHeader && _optionalChain([config, 'optionalAccess', _451 => _451.actions, 'optionalAccess', _452 => _452.left]) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "mr-4", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "h-10 w-10 bg-ods-border rounded animate-pulse" }) }),
|
|
22779
22808
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center gap-2", children: [
|
|
22780
22809
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "h-8 w-8 bg-ods-border rounded animate-pulse" }),
|
|
22781
22810
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "h-6 w-24 bg-ods-border rounded animate-pulse" })
|
|
@@ -22783,8 +22812,8 @@ function HeaderSkeleton({ config }) {
|
|
|
22783
22812
|
] }),
|
|
22784
22813
|
showNavigation && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "nav", { className: _chunkFIG2RKZFcjs.cn.call(void 0,
|
|
22785
22814
|
"hidden md:flex items-center gap-2",
|
|
22786
|
-
_optionalChain([config, 'optionalAccess',
|
|
22787
|
-
_optionalChain([config, 'optionalAccess',
|
|
22815
|
+
_optionalChain([config, 'optionalAccess', _453 => _453.navigation, 'optionalAccess', _454 => _454.position]) === "center" && "absolute left-1/2 transform -translate-x-1/2",
|
|
22816
|
+
_optionalChain([config, 'optionalAccess', _455 => _455.navigation, 'optionalAccess', _456 => _456.position]) === "right" && "ml-auto mr-4"
|
|
22788
22817
|
), children: [
|
|
22789
22818
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "h-10 w-20 bg-ods-border rounded animate-pulse" }),
|
|
22790
22819
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "h-10 w-28 bg-ods-border rounded animate-pulse" }),
|
|
@@ -22832,7 +22861,7 @@ function MobileNavPanel({ isOpen, config }) {
|
|
|
22832
22861
|
_react.useEffect.call(void 0, () => {
|
|
22833
22862
|
const handleKeyDown = (e) => {
|
|
22834
22863
|
if (e.key === "Escape" && isOpen) {
|
|
22835
|
-
_optionalChain([config, 'access',
|
|
22864
|
+
_optionalChain([config, 'access', _457 => _457.onClose, 'optionalCall', _458 => _458()]);
|
|
22836
22865
|
}
|
|
22837
22866
|
};
|
|
22838
22867
|
if (isOpen) {
|
|
@@ -22849,7 +22878,7 @@ function MobileNavPanel({ isOpen, config }) {
|
|
|
22849
22878
|
if (item.onClick) {
|
|
22850
22879
|
item.onClick();
|
|
22851
22880
|
}
|
|
22852
|
-
_optionalChain([config, 'access',
|
|
22881
|
+
_optionalChain([config, 'access', _459 => _459.onClose, 'optionalCall', _460 => _460()]);
|
|
22853
22882
|
};
|
|
22854
22883
|
if (item.href) {
|
|
22855
22884
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -23019,7 +23048,7 @@ function SlidingSidebar({ config }) {
|
|
|
23019
23048
|
variant: "transparent",
|
|
23020
23049
|
size: "default",
|
|
23021
23050
|
onClick: () => {
|
|
23022
|
-
_optionalChain([item, 'access',
|
|
23051
|
+
_optionalChain([item, 'access', _461 => _461.onClick, 'optionalCall', _462 => _462()]);
|
|
23023
23052
|
config.onClose();
|
|
23024
23053
|
},
|
|
23025
23054
|
leftIcon: item.icon,
|
|
@@ -23042,7 +23071,7 @@ function SlidingSidebar({ config }) {
|
|
|
23042
23071
|
variant: "transparent",
|
|
23043
23072
|
size: "default",
|
|
23044
23073
|
onClick: () => {
|
|
23045
|
-
_optionalChain([item, 'access',
|
|
23074
|
+
_optionalChain([item, 'access', _463 => _463.onClick, 'optionalCall', _464 => _464()]);
|
|
23046
23075
|
config.onClose();
|
|
23047
23076
|
},
|
|
23048
23077
|
leftIcon: item.icon,
|
|
@@ -23169,7 +23198,7 @@ function StickySectionNav({
|
|
|
23169
23198
|
] });
|
|
23170
23199
|
}
|
|
23171
23200
|
function useSectionNavigation(sections, options) {
|
|
23172
|
-
const [activeSection, setActiveSection] = _react.useState.call(void 0, _optionalChain([sections, 'access',
|
|
23201
|
+
const [activeSection, setActiveSection] = _react.useState.call(void 0, _optionalChain([sections, 'access', _465 => _465[0], 'optionalAccess', _466 => _466.id]) || "");
|
|
23173
23202
|
const isScrollingFromClick = _react.useRef.call(void 0, false);
|
|
23174
23203
|
const { offset: offset2 = 100 } = options || {};
|
|
23175
23204
|
const handleSectionClick = _react.useCallback.call(void 0, (sectionId) => {
|
|
@@ -23193,7 +23222,7 @@ function useSectionNavigation(sections, options) {
|
|
|
23193
23222
|
const handleScroll = () => {
|
|
23194
23223
|
if (isScrollingFromClick.current) return;
|
|
23195
23224
|
const scrollPosition = window.scrollY + offset2 + 50;
|
|
23196
|
-
let currentSection = _optionalChain([sections, 'access',
|
|
23225
|
+
let currentSection = _optionalChain([sections, 'access', _467 => _467[0], 'optionalAccess', _468 => _468.id]) || "";
|
|
23197
23226
|
for (let i = sections.length - 1; i >= 0; i--) {
|
|
23198
23227
|
const element = document.getElementById(sections[i].id);
|
|
23199
23228
|
if (element && scrollPosition >= element.offsetTop) {
|
|
@@ -23394,7 +23423,7 @@ function NavigationSidebar({ config, disabled = false }) {
|
|
|
23394
23423
|
} else {
|
|
23395
23424
|
setDesktopMinimized((prev) => !prev);
|
|
23396
23425
|
}
|
|
23397
|
-
_optionalChain([config, 'access',
|
|
23426
|
+
_optionalChain([config, 'access', _469 => _469.onToggleMinimized, 'optionalCall', _470 => _470()]);
|
|
23398
23427
|
}, [isTablet, setDesktopMinimized, config]);
|
|
23399
23428
|
const closeOverlay = _react.useCallback.call(void 0, () => {
|
|
23400
23429
|
setTabletMinimized(true);
|
|
@@ -23408,11 +23437,11 @@ function NavigationSidebar({ config, disabled = false }) {
|
|
|
23408
23437
|
return () => document.removeEventListener("keydown", handleKeyDown);
|
|
23409
23438
|
}, [isOverlayOpen, closeOverlay]);
|
|
23410
23439
|
const handleItemClick = _react.useCallback.call(void 0, (item, event) => {
|
|
23411
|
-
_optionalChain([event, 'optionalAccess',
|
|
23440
|
+
_optionalChain([event, 'optionalAccess', _471 => _471.stopPropagation, 'call', _472 => _472()]);
|
|
23412
23441
|
if (item.onClick) {
|
|
23413
23442
|
item.onClick();
|
|
23414
23443
|
} else if (item.path) {
|
|
23415
|
-
_optionalChain([config, 'access',
|
|
23444
|
+
_optionalChain([config, 'access', _473 => _473.onNavigate, 'optionalCall', _474 => _474(item.path)]);
|
|
23416
23445
|
}
|
|
23417
23446
|
if (isTablet) setTabletMinimized(true);
|
|
23418
23447
|
}, [config, isTablet]);
|
|
@@ -23557,11 +23586,11 @@ function HeaderGlobalSearch({
|
|
|
23557
23586
|
};
|
|
23558
23587
|
const handleSubmit = (e) => {
|
|
23559
23588
|
e.preventDefault();
|
|
23560
|
-
_optionalChain([onSubmit, 'optionalCall',
|
|
23589
|
+
_optionalChain([onSubmit, 'optionalCall', _475 => _475(currentValue)]);
|
|
23561
23590
|
};
|
|
23562
23591
|
const handleKeyDown = (e) => {
|
|
23563
23592
|
if (e.key === "Enter") {
|
|
23564
|
-
_optionalChain([onSubmit, 'optionalCall',
|
|
23593
|
+
_optionalChain([onSubmit, 'optionalCall', _476 => _476(currentValue)]);
|
|
23565
23594
|
}
|
|
23566
23595
|
};
|
|
23567
23596
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
@@ -23655,8 +23684,8 @@ function HeaderOrganizationFilter({
|
|
|
23655
23684
|
className
|
|
23656
23685
|
}) {
|
|
23657
23686
|
const selectedOrg = organizations.find((o) => o.id === selectedOrgId);
|
|
23658
|
-
const displayName = _optionalChain([selectedOrg, 'optionalAccess',
|
|
23659
|
-
const deviceCount = _nullishCoalesce(_optionalChain([selectedOrg, 'optionalAccess',
|
|
23687
|
+
const displayName = _optionalChain([selectedOrg, 'optionalAccess', _477 => _477.name]) || "All Organizations";
|
|
23688
|
+
const deviceCount = _nullishCoalesce(_optionalChain([selectedOrg, 'optionalAccess', _478 => _478.deviceCount]), () => ( totalDeviceCount));
|
|
23660
23689
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkN5UOJC3Vcjs.DropdownMenu, { children: [
|
|
23661
23690
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkN5UOJC3Vcjs.DropdownMenuTrigger, { asChild: true, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
23662
23691
|
"button",
|
|
@@ -23681,11 +23710,11 @@ function HeaderOrganizationFilter({
|
|
|
23681
23710
|
}
|
|
23682
23711
|
) }),
|
|
23683
23712
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkN5UOJC3Vcjs.DropdownMenuContent, { align: "end", className: "min-w-[240px]", children: [
|
|
23684
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkN5UOJC3Vcjs.DropdownMenuItem, { onClick: () => _optionalChain([onOrgChange, 'optionalCall',
|
|
23713
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkN5UOJC3Vcjs.DropdownMenuItem, { onClick: () => _optionalChain([onOrgChange, 'optionalCall', _479 => _479("")]), children: "All Organizations" }),
|
|
23685
23714
|
organizations.map((org) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
23686
23715
|
_chunkN5UOJC3Vcjs.DropdownMenuItem,
|
|
23687
23716
|
{
|
|
23688
|
-
onClick: () => _optionalChain([onOrgChange, 'optionalCall',
|
|
23717
|
+
onClick: () => _optionalChain([onOrgChange, 'optionalCall', _480 => _480(org.id)]),
|
|
23689
23718
|
children: org.name
|
|
23690
23719
|
},
|
|
23691
23720
|
org.id
|
|
@@ -23788,7 +23817,7 @@ var AppHeader = React92.default.memo(function AppHeader2({
|
|
|
23788
23817
|
HeaderButton,
|
|
23789
23818
|
{
|
|
23790
23819
|
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
23791
|
-
|
|
23820
|
+
_chunkLH7R56RRcjs.SquareAvatar,
|
|
23792
23821
|
{
|
|
23793
23822
|
src: userAvatarUrl || void 0,
|
|
23794
23823
|
alt: userName || "User",
|
|
@@ -23810,7 +23839,7 @@ var AppHeader = React92.default.memo(function AppHeader2({
|
|
|
23810
23839
|
children: [
|
|
23811
23840
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "bg-ods-card border-b border-ods-border p-3 flex items-center gap-2", children: [
|
|
23812
23841
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
23813
|
-
|
|
23842
|
+
_chunkLH7R56RRcjs.SquareAvatar,
|
|
23814
23843
|
{
|
|
23815
23844
|
src: userAvatarUrl || void 0,
|
|
23816
23845
|
alt: userName || "User",
|
|
@@ -23870,9 +23899,9 @@ function NotificationsHeaderButton({
|
|
|
23870
23899
|
dimmedClass
|
|
23871
23900
|
}) {
|
|
23872
23901
|
const ctx = useOptionalNotifications();
|
|
23873
|
-
const hasUnread = (_nullishCoalesce(_optionalChain([ctx, 'optionalAccess',
|
|
23874
|
-
const isActive = _nullishCoalesce(_optionalChain([ctx, 'optionalAccess',
|
|
23875
|
-
const onClick = _optionalChain([ctx, 'optionalAccess',
|
|
23902
|
+
const hasUnread = (_nullishCoalesce(_optionalChain([ctx, 'optionalAccess', _481 => _481.unreadCount]), () => ( fallbackUnreadCount))) > 0;
|
|
23903
|
+
const isActive = _nullishCoalesce(_optionalChain([ctx, 'optionalAccess', _482 => _482.isOpen]), () => ( false));
|
|
23904
|
+
const onClick = _optionalChain([ctx, 'optionalAccess', _483 => _483.toggle]);
|
|
23876
23905
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
23877
23906
|
HeaderButton,
|
|
23878
23907
|
{
|
|
@@ -23936,7 +23965,7 @@ var MobileBurgerMenu = React92.default.memo(function MobileBurgerMenu2({
|
|
|
23936
23965
|
if (item.onClick) {
|
|
23937
23966
|
item.onClick();
|
|
23938
23967
|
} else if (item.path) {
|
|
23939
|
-
_optionalChain([config, 'access',
|
|
23968
|
+
_optionalChain([config, 'access', _484 => _484.onNavigate, 'optionalCall', _485 => _485(item.path)]);
|
|
23940
23969
|
}
|
|
23941
23970
|
onClose();
|
|
23942
23971
|
}, [config, onClose]);
|
|
@@ -24029,7 +24058,7 @@ var MobileBurgerMenu = React92.default.memo(function MobileBurgerMenu2({
|
|
|
24029
24058
|
"aria-disabled": disabled || void 0,
|
|
24030
24059
|
children: [
|
|
24031
24060
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
24032
|
-
|
|
24061
|
+
_chunkLH7R56RRcjs.SquareAvatar,
|
|
24033
24062
|
{
|
|
24034
24063
|
src: user.userAvatarUrl || void 0,
|
|
24035
24064
|
alt: user.userName || "User",
|
|
@@ -24179,7 +24208,7 @@ var AppLayoutDrawerRoot = ({
|
|
|
24179
24208
|
const handleOpenChange = React85.useCallback(
|
|
24180
24209
|
(next) => {
|
|
24181
24210
|
if (!isControlled) setInternalOpen(next);
|
|
24182
|
-
_optionalChain([onOpenChange, 'optionalCall',
|
|
24211
|
+
_optionalChain([onOpenChange, 'optionalCall', _486 => _486(next)]);
|
|
24183
24212
|
},
|
|
24184
24213
|
[isControlled, onOpenChange]
|
|
24185
24214
|
);
|
|
@@ -24560,10 +24589,10 @@ var AppLayoutDrawerContent = React85.forwardRef(
|
|
|
24560
24589
|
),
|
|
24561
24590
|
style,
|
|
24562
24591
|
onInteractOutside: (event) => {
|
|
24563
|
-
_optionalChain([onInteractOutside, 'optionalCall',
|
|
24592
|
+
_optionalChain([onInteractOutside, 'optionalCall', _487 => _487(event)]);
|
|
24564
24593
|
if (event.defaultPrevented) return;
|
|
24565
24594
|
const target = event.target;
|
|
24566
|
-
const isInsideContainer = !!target && !!_optionalChain([portalContainer, 'optionalAccess',
|
|
24595
|
+
const isInsideContainer = !!target && !!_optionalChain([portalContainer, 'optionalAccess', _488 => _488.contains, 'call', _489 => _489(target)]);
|
|
24567
24596
|
if (!isInsideContainer) {
|
|
24568
24597
|
event.preventDefault();
|
|
24569
24598
|
return;
|
|
@@ -24752,7 +24781,7 @@ var ShellTypeBadge = ({
|
|
|
24752
24781
|
className,
|
|
24753
24782
|
iconClassName
|
|
24754
24783
|
}) => {
|
|
24755
|
-
const normalizedType = _optionalChain([shellType, 'optionalAccess',
|
|
24784
|
+
const normalizedType = _optionalChain([shellType, 'optionalAccess', _490 => _490.toUpperCase, 'call', _491 => _491()]);
|
|
24756
24785
|
const label = getShellLabel(normalizedType);
|
|
24757
24786
|
const { icon: IconComponent, props: iconProps } = _nullishCoalesce(shellIconMap[normalizedType], () => ( defaultIconConfig));
|
|
24758
24787
|
const defaultIconClassName = "className" in iconProps ? iconProps.className : void 0;
|
|
@@ -25006,7 +25035,7 @@ function OnboardingStepCard({
|
|
|
25006
25035
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "h-[32px] w-[120px] bg-ods-border rounded-[6px] animate-pulse" })
|
|
25007
25036
|
] }) : isCompleted ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
25008
25037
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
25009
|
-
|
|
25038
|
+
_chunkLH7R56RRcjs.StatusBadge,
|
|
25010
25039
|
{
|
|
25011
25040
|
text: "COMPLETED",
|
|
25012
25041
|
variant: "card",
|
|
@@ -25024,7 +25053,7 @@ function OnboardingStepCard({
|
|
|
25024
25053
|
}
|
|
25025
25054
|
)
|
|
25026
25055
|
] }) : isSkipped ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _jsxruntime.Fragment, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
25027
|
-
|
|
25056
|
+
_chunkLH7R56RRcjs.StatusBadge,
|
|
25028
25057
|
{
|
|
25029
25058
|
text: "SKIPPED",
|
|
25030
25059
|
variant: "card",
|
|
@@ -25139,12 +25168,12 @@ function OnboardingWalkthrough({
|
|
|
25139
25168
|
}
|
|
25140
25169
|
}, [state.completedSteps, markComplete]);
|
|
25141
25170
|
const handleStepSkip = (step) => {
|
|
25142
|
-
_optionalChain([step, 'access',
|
|
25171
|
+
_optionalChain([step, 'access', _492 => _492.onSkip, 'optionalCall', _493 => _493()]);
|
|
25143
25172
|
markSkipped(step.id);
|
|
25144
25173
|
};
|
|
25145
25174
|
const handleDismiss = () => {
|
|
25146
25175
|
dismissOnboarding();
|
|
25147
|
-
_optionalChain([onDismiss, 'optionalCall',
|
|
25176
|
+
_optionalChain([onDismiss, 'optionalCall', _494 => _494()]);
|
|
25148
25177
|
};
|
|
25149
25178
|
if (state.dismissed) {
|
|
25150
25179
|
return null;
|
|
@@ -25152,7 +25181,7 @@ function OnboardingWalkthrough({
|
|
|
25152
25181
|
const isAllComplete = allStepsComplete(steps);
|
|
25153
25182
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunkFIG2RKZFcjs.cn.call(void 0, "w-full space-y-4", className), children: [
|
|
25154
25183
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col md:flex-row items-start md:items-center justify-between gap-3 md:gap-0", children: [
|
|
25155
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h2", { className:
|
|
25184
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h2", { className: _chunkLH7R56RRcjs.SECTION_HEADING_CLASS, children: "Get Started" }),
|
|
25156
25185
|
isLoadingCompletion ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "h-[48px] w-full md:w-[160px] bg-ods-border rounded-[6px] animate-pulse" }) : isAllComplete ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
25157
25186
|
_chunkN5UOJC3Vcjs.Button,
|
|
25158
25187
|
{
|
|
@@ -25274,7 +25303,7 @@ var LogCard = ({ log, isLast, showConnector, onClick }) => {
|
|
|
25274
25303
|
onKeyDown: (e) => {
|
|
25275
25304
|
if (e.key === "Enter" || e.key === " ") {
|
|
25276
25305
|
e.preventDefault();
|
|
25277
|
-
_optionalChain([onClick, 'optionalCall',
|
|
25306
|
+
_optionalChain([onClick, 'optionalCall', _495 => _495()]);
|
|
25278
25307
|
}
|
|
25279
25308
|
},
|
|
25280
25309
|
children: [
|
|
@@ -25375,7 +25404,7 @@ var LogsList = React89.forwardRef(({
|
|
|
25375
25404
|
log,
|
|
25376
25405
|
isLast: index === logs.length - 1,
|
|
25377
25406
|
showConnector,
|
|
25378
|
-
onClick: () => _optionalChain([onLogClick, 'optionalCall',
|
|
25407
|
+
onClick: () => _optionalChain([onLogClick, 'optionalCall', _496 => _496(log)])
|
|
25379
25408
|
},
|
|
25380
25409
|
log.id
|
|
25381
25410
|
))
|
|
@@ -25476,7 +25505,7 @@ var Slider = React91.forwardRef(
|
|
|
25476
25505
|
({ className, value = [0], onValueChange, min = 0, max = 100, step = 1, ...props }, ref) => {
|
|
25477
25506
|
const handleChange = (e) => {
|
|
25478
25507
|
const newValue = [Number(e.target.value)];
|
|
25479
|
-
_optionalChain([onValueChange, 'optionalCall',
|
|
25508
|
+
_optionalChain([onValueChange, 'optionalCall', _497 => _497(newValue)]);
|
|
25480
25509
|
};
|
|
25481
25510
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
25482
25511
|
"input",
|
|
@@ -25788,7 +25817,7 @@ function CursorPaginationSimple({
|
|
|
25788
25817
|
{
|
|
25789
25818
|
variant: "transparent",
|
|
25790
25819
|
size: "icon",
|
|
25791
|
-
onClick: () => _optionalChain([onPrevious, 'optionalCall',
|
|
25820
|
+
onClick: () => _optionalChain([onPrevious, 'optionalCall', _498 => _498("")]),
|
|
25792
25821
|
disabled: !hasPreviousPage || loading,
|
|
25793
25822
|
className: "h-8 w-8",
|
|
25794
25823
|
leftIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.ChevronLeft, { className: "h-4 w-4" }),
|
|
@@ -25800,7 +25829,7 @@ function CursorPaginationSimple({
|
|
|
25800
25829
|
{
|
|
25801
25830
|
variant: "transparent",
|
|
25802
25831
|
size: "icon",
|
|
25803
|
-
onClick: () => _optionalChain([onNext, 'optionalCall',
|
|
25832
|
+
onClick: () => _optionalChain([onNext, 'optionalCall', _499 => _499("")]),
|
|
25804
25833
|
disabled: !hasNextPage || loading,
|
|
25805
25834
|
className: "h-8 w-8",
|
|
25806
25835
|
rightIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.ChevronRight, { className: "h-4 w-4" }),
|
|
@@ -25820,8 +25849,8 @@ function TableEmptyState({ message: message2, icon, action, className }) {
|
|
|
25820
25849
|
icon: _nullishCoalesce(icon, () => ( /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkWZW7C7TFcjs.SearchIcon, {}))),
|
|
25821
25850
|
title: _nullishCoalesce(message2, () => ( "No results found")),
|
|
25822
25851
|
description: message2 == null ? "Try adjusting your search or filters" : void 0,
|
|
25823
|
-
buttonLabel: _optionalChain([action, 'optionalAccess',
|
|
25824
|
-
onButtonClick: _optionalChain([action, 'optionalAccess',
|
|
25852
|
+
buttonLabel: _optionalChain([action, 'optionalAccess', _500 => _500.label]),
|
|
25853
|
+
onButtonClick: _optionalChain([action, 'optionalAccess', _501 => _501.onClick]),
|
|
25825
25854
|
className: _chunkFIG2RKZFcjs.cn.call(void 0, "py-[var(--spacing-system-xxl)]", className)
|
|
25826
25855
|
}
|
|
25827
25856
|
);
|
|
@@ -25842,7 +25871,7 @@ function TableColumnFilterDropdown({
|
|
|
25842
25871
|
placement = "bottom-start",
|
|
25843
25872
|
dropdownClassName = "min-w-[240px]"
|
|
25844
25873
|
}) {
|
|
25845
|
-
const activeCount = _optionalChain([filters, 'optionalAccess',
|
|
25874
|
+
const activeCount = _optionalChain([filters, 'optionalAccess', _502 => _502[columnKey], 'optionalAccess', _503 => _503.length]) || 0;
|
|
25846
25875
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
25847
25876
|
FiltersDropdown,
|
|
25848
25877
|
{
|
|
@@ -25885,7 +25914,7 @@ function TableColumnFilterDropdown({
|
|
|
25885
25914
|
delete newFilters[columnKey];
|
|
25886
25915
|
onFilterChange(newFilters);
|
|
25887
25916
|
},
|
|
25888
|
-
currentFilters: { [columnKey]: _optionalChain([filters, 'optionalAccess',
|
|
25917
|
+
currentFilters: { [columnKey]: _optionalChain([filters, 'optionalAccess', _504 => _504[columnKey]]) || [] },
|
|
25889
25918
|
placement,
|
|
25890
25919
|
dropdownClassName
|
|
25891
25920
|
}
|
|
@@ -26182,7 +26211,7 @@ function TableRow({
|
|
|
26182
26211
|
const keys = column.key.split(".");
|
|
26183
26212
|
let value = item;
|
|
26184
26213
|
for (const key of keys) {
|
|
26185
|
-
value = _optionalChain([value, 'optionalAccess',
|
|
26214
|
+
value = _optionalChain([value, 'optionalAccess', _505 => _505[key]]);
|
|
26186
26215
|
}
|
|
26187
26216
|
if (value === null || value === void 0) {
|
|
26188
26217
|
return "-";
|
|
@@ -26252,7 +26281,7 @@ function TableRow({
|
|
|
26252
26281
|
// src/components/ui/table/table.tsx
|
|
26253
26282
|
|
|
26254
26283
|
function injectSyntheticColumns(columns, rowActions, renderRowActions, rowHref) {
|
|
26255
|
-
const hasActions = Boolean(_optionalChain([rowActions, 'optionalAccess',
|
|
26284
|
+
const hasActions = Boolean(_optionalChain([rowActions, 'optionalAccess', _506 => _506.length])) || Boolean(renderRowActions);
|
|
26256
26285
|
const result = [...columns];
|
|
26257
26286
|
if (hasActions) {
|
|
26258
26287
|
const actionsColumn = {
|
|
@@ -26346,7 +26375,7 @@ function Table({
|
|
|
26346
26375
|
return rowKey(item);
|
|
26347
26376
|
}
|
|
26348
26377
|
const key = item[rowKey];
|
|
26349
|
-
return _optionalChain([key, 'optionalAccess',
|
|
26378
|
+
return _optionalChain([key, 'optionalAccess', _507 => _507.toString, 'call', _508 => _508()]) || index.toString();
|
|
26350
26379
|
};
|
|
26351
26380
|
const getRowClassName = (item, index) => {
|
|
26352
26381
|
if (typeof rowClassName === "function") {
|
|
@@ -26380,23 +26409,23 @@ function Table({
|
|
|
26380
26409
|
const allSelected = selectedRows.length > 0 && selectedRows.length === data.length;
|
|
26381
26410
|
const someSelected = selectedRows.length > 0 && selectedRows.length < data.length;
|
|
26382
26411
|
const sentinelRef = _react.useRef.call(void 0, null);
|
|
26383
|
-
const onLoadMoreRef = _react.useRef.call(void 0, _optionalChain([infiniteScroll, 'optionalAccess',
|
|
26384
|
-
onLoadMoreRef.current = _optionalChain([infiniteScroll, 'optionalAccess',
|
|
26412
|
+
const onLoadMoreRef = _react.useRef.call(void 0, _optionalChain([infiniteScroll, 'optionalAccess', _509 => _509.onLoadMore]));
|
|
26413
|
+
onLoadMoreRef.current = _optionalChain([infiniteScroll, 'optionalAccess', _510 => _510.onLoadMore]);
|
|
26385
26414
|
_react.useEffect.call(void 0, () => {
|
|
26386
|
-
if (!_optionalChain([infiniteScroll, 'optionalAccess',
|
|
26415
|
+
if (!_optionalChain([infiniteScroll, 'optionalAccess', _511 => _511.hasNextPage]) || infiniteScroll.isFetchingNextPage) return;
|
|
26387
26416
|
const sentinel = sentinelRef.current;
|
|
26388
26417
|
if (!sentinel) return;
|
|
26389
26418
|
const observer = new IntersectionObserver(
|
|
26390
26419
|
(entries) => {
|
|
26391
|
-
if (_optionalChain([entries, 'access',
|
|
26392
|
-
_optionalChain([onLoadMoreRef, 'access',
|
|
26420
|
+
if (_optionalChain([entries, 'access', _512 => _512[0], 'optionalAccess', _513 => _513.isIntersecting])) {
|
|
26421
|
+
_optionalChain([onLoadMoreRef, 'access', _514 => _514.current, 'optionalCall', _515 => _515()]);
|
|
26393
26422
|
}
|
|
26394
26423
|
},
|
|
26395
26424
|
{ rootMargin: "200px" }
|
|
26396
26425
|
);
|
|
26397
26426
|
observer.observe(sentinel);
|
|
26398
26427
|
return () => observer.disconnect();
|
|
26399
|
-
}, [_optionalChain([infiniteScroll, 'optionalAccess',
|
|
26428
|
+
}, [_optionalChain([infiniteScroll, 'optionalAccess', _516 => _516.hasNextPage]), _optionalChain([infiniteScroll, 'optionalAccess', _517 => _517.isFetchingNextPage])]);
|
|
26400
26429
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunkFIG2RKZFcjs.cn.call(void 0, "flex flex-col gap-1 w-full", containerClassName), children: [
|
|
26401
26430
|
showToolbar && bulkActions && selectedRows.length > 0 && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center justify-between bg-ods-card border border-ods-border rounded-[6px] p-3 mb-2", children: [
|
|
26402
26431
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "text-ods-text-secondary text-sm", children: [
|
|
@@ -26467,7 +26496,7 @@ function Table({
|
|
|
26467
26496
|
},
|
|
26468
26497
|
getRowKey(item, index)
|
|
26469
26498
|
)),
|
|
26470
|
-
_optionalChain([infiniteScroll, 'optionalAccess',
|
|
26499
|
+
_optionalChain([infiniteScroll, 'optionalAccess', _518 => _518.isFetchingNextPage]) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
26471
26500
|
TableCardSkeleton,
|
|
26472
26501
|
{
|
|
26473
26502
|
columns,
|
|
@@ -26476,7 +26505,7 @@ function Table({
|
|
|
26476
26505
|
hasChevron: Boolean(rowHref)
|
|
26477
26506
|
}
|
|
26478
26507
|
),
|
|
26479
|
-
_optionalChain([infiniteScroll, 'optionalAccess',
|
|
26508
|
+
_optionalChain([infiniteScroll, 'optionalAccess', _519 => _519.hasNextPage]) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { ref: sentinelRef, className: "h-1", "aria-hidden": "true" }),
|
|
26480
26509
|
!infiniteScroll && Array.from({ length: Math.max(0, skeletonRows - data.length) }).map((_, index) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
26481
26510
|
"div",
|
|
26482
26511
|
{
|
|
@@ -26834,7 +26863,7 @@ function QueryReportTable({
|
|
|
26834
26863
|
);
|
|
26835
26864
|
const handleExport = () => {
|
|
26836
26865
|
exportToCSV(data, columns, exportFilename);
|
|
26837
|
-
_optionalChain([onExport, 'optionalCall',
|
|
26866
|
+
_optionalChain([onExport, 'optionalCall', _520 => _520()]);
|
|
26838
26867
|
};
|
|
26839
26868
|
const tableMinWidth = columns.length * (columnWidth + 16);
|
|
26840
26869
|
const {
|
|
@@ -27007,7 +27036,7 @@ function DataTableColumnFilter({
|
|
|
27007
27036
|
align = "left"
|
|
27008
27037
|
}) {
|
|
27009
27038
|
const currentValue = column.getFilterValue();
|
|
27010
|
-
const activeCount = _nullishCoalesce(_optionalChain([currentValue, 'optionalAccess',
|
|
27039
|
+
const activeCount = _nullishCoalesce(_optionalChain([currentValue, 'optionalAccess', _521 => _521.length]), () => ( 0));
|
|
27011
27040
|
const sections = _react.useMemo.call(void 0,
|
|
27012
27041
|
() => [
|
|
27013
27042
|
{
|
|
@@ -27087,7 +27116,7 @@ function DataTableHeader({
|
|
|
27087
27116
|
const hasVisibleHeaderCell = headerGroup.headers.some((header) => {
|
|
27088
27117
|
if (header.isPlaceholder) return false;
|
|
27089
27118
|
if (isLgUp) return true;
|
|
27090
|
-
return Boolean(_optionalChain([header, 'access',
|
|
27119
|
+
return Boolean(_optionalChain([header, 'access', _522 => _522.column, 'access', _523 => _523.columnDef, 'access', _524 => _524.meta, 'optionalAccess', _525 => _525.filter]));
|
|
27091
27120
|
});
|
|
27092
27121
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
27093
27122
|
"div",
|
|
@@ -27117,20 +27146,20 @@ function HeaderCell({ header, isLgUp, sort, onSortChange }) {
|
|
|
27117
27146
|
if (header.isPlaceholder) return null;
|
|
27118
27147
|
const column = header.column;
|
|
27119
27148
|
const meta = column.columnDef.meta;
|
|
27120
|
-
const hasFilter = Boolean(_optionalChain([meta, 'optionalAccess',
|
|
27121
|
-
const align = _nullishCoalesce(_optionalChain([meta, 'optionalAccess',
|
|
27122
|
-
const canSort = _optionalChain([meta, 'optionalAccess',
|
|
27123
|
-
const sortDir = _optionalChain([sort, 'optionalAccess',
|
|
27149
|
+
const hasFilter = Boolean(_optionalChain([meta, 'optionalAccess', _526 => _526.filter]));
|
|
27150
|
+
const align = _nullishCoalesce(_optionalChain([meta, 'optionalAccess', _527 => _527.align]), () => ( "left"));
|
|
27151
|
+
const canSort = _optionalChain([meta, 'optionalAccess', _528 => _528.sortable]) === true;
|
|
27152
|
+
const sortDir = _optionalChain([sort, 'optionalAccess', _529 => _529.id]) === column.id ? sort.desc ? "desc" : "asc" : false;
|
|
27124
27153
|
if (!isLgUp && !hasFilter) return null;
|
|
27125
27154
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
27126
27155
|
"div",
|
|
27127
27156
|
{
|
|
27128
27157
|
className: _chunkFIG2RKZFcjs.cn.call(void 0,
|
|
27129
27158
|
"flex items-stretch",
|
|
27130
|
-
isLgUp && (_optionalChain([meta, 'optionalAccess',
|
|
27131
|
-
_optionalChain([meta, 'optionalAccess',
|
|
27159
|
+
isLgUp && (_optionalChain([meta, 'optionalAccess', _530 => _530.width]) || "flex-1 min-w-0"),
|
|
27160
|
+
_optionalChain([meta, 'optionalAccess', _531 => _531.headerClassName]),
|
|
27132
27161
|
// Don't apply hide classes if column is filterable on tablet (keep filter accessible)
|
|
27133
|
-
!(hasFilter && !isLgUp) && getHideClasses2(_optionalChain([meta, 'optionalAccess',
|
|
27162
|
+
!(hasFilter && !isLgUp) && getHideClasses2(_optionalChain([meta, 'optionalAccess', _532 => _532.hideAt]))
|
|
27134
27163
|
),
|
|
27135
27164
|
children: hasFilter ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
27136
27165
|
DataTableColumnFilter,
|
|
@@ -27149,7 +27178,7 @@ function HeaderCell({ header, isLgUp, sort, onSortChange }) {
|
|
|
27149
27178
|
isLgUp && alignJustify(align),
|
|
27150
27179
|
canSort && "group cursor-pointer"
|
|
27151
27180
|
),
|
|
27152
|
-
onClick: canSort ? () => _optionalChain([onSortChange, 'optionalCall',
|
|
27181
|
+
onClick: canSort ? () => _optionalChain([onSortChange, 'optionalCall', _533 => _533(column.id)]) : void 0,
|
|
27153
27182
|
children: [
|
|
27154
27183
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, HeaderLabel, { header }),
|
|
27155
27184
|
canSort && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, SortIcon, { sorted: sortDir })
|
|
@@ -27214,7 +27243,7 @@ function DataTableSkeleton({
|
|
|
27214
27243
|
}) {
|
|
27215
27244
|
const table = useDataTableContext();
|
|
27216
27245
|
const columns = table.getVisibleFlatColumns();
|
|
27217
|
-
const firstColumnId = _optionalChain([columns, 'access',
|
|
27246
|
+
const firstColumnId = _optionalChain([columns, 'access', _534 => _534[0], 'optionalAccess', _535 => _535.id]);
|
|
27218
27247
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _jsxruntime.Fragment, { children: Array.from({ length: rows }).map((_, index) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
27219
27248
|
"div",
|
|
27220
27249
|
{
|
|
@@ -27238,7 +27267,7 @@ function DataTableSkeleton({
|
|
|
27238
27267
|
{
|
|
27239
27268
|
className: _chunkFIG2RKZFcjs.cn.call(void 0,
|
|
27240
27269
|
"flex flex-col justify-center shrink-0",
|
|
27241
|
-
_optionalChain([meta, 'optionalAccess',
|
|
27270
|
+
_optionalChain([meta, 'optionalAccess', _536 => _536.width]) || "flex-1"
|
|
27242
27271
|
),
|
|
27243
27272
|
children: [
|
|
27244
27273
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "h-5 bg-ods-bg-surface rounded-sm w-3/4 mb-[var(--spacing-system-xxs)]" }),
|
|
@@ -27287,7 +27316,7 @@ function DataTableRowImpl({
|
|
|
27287
27316
|
const handleClick = _react.useCallback.call(void 0,
|
|
27288
27317
|
(e) => {
|
|
27289
27318
|
const target = e.target;
|
|
27290
|
-
if (!_optionalChain([containerRef, 'access',
|
|
27319
|
+
if (!_optionalChain([containerRef, 'access', _537 => _537.current, 'optionalAccess', _538 => _538.contains, 'call', _539 => _539(target)])) {
|
|
27291
27320
|
if (isLinkMode) e.preventDefault();
|
|
27292
27321
|
return;
|
|
27293
27322
|
}
|
|
@@ -27295,7 +27324,7 @@ function DataTableRowImpl({
|
|
|
27295
27324
|
if (isLinkMode) e.preventDefault();
|
|
27296
27325
|
return;
|
|
27297
27326
|
}
|
|
27298
|
-
_optionalChain([onClick, 'optionalCall',
|
|
27327
|
+
_optionalChain([onClick, 'optionalCall', _540 => _540(row.original)]);
|
|
27299
27328
|
},
|
|
27300
27329
|
[onClick, row.original, isLinkMode]
|
|
27301
27330
|
);
|
|
@@ -27320,10 +27349,10 @@ function DataTableRowImpl({
|
|
|
27320
27349
|
{
|
|
27321
27350
|
className: _chunkFIG2RKZFcjs.cn.call(void 0,
|
|
27322
27351
|
"flex flex-col overflow-hidden",
|
|
27323
|
-
alignJustify(_optionalChain([meta, 'optionalAccess',
|
|
27324
|
-
_optionalChain([meta, 'optionalAccess',
|
|
27325
|
-
_optionalChain([meta, 'optionalAccess',
|
|
27326
|
-
getHideClasses2(_optionalChain([meta, 'optionalAccess',
|
|
27352
|
+
alignJustify(_optionalChain([meta, 'optionalAccess', _541 => _541.align])),
|
|
27353
|
+
_optionalChain([meta, 'optionalAccess', _542 => _542.width]) || "flex-1 min-w-0",
|
|
27354
|
+
_optionalChain([meta, 'optionalAccess', _543 => _543.cellClassName]),
|
|
27355
|
+
getHideClasses2(_optionalChain([meta, 'optionalAccess', _544 => _544.hideAt]))
|
|
27327
27356
|
),
|
|
27328
27357
|
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, CellContent, { children: _reacttable.flexRender.call(void 0, cell.column.columnDef.cell, cell.getContext()) })
|
|
27329
27358
|
},
|
|
@@ -27402,7 +27431,7 @@ function DataTableBody({
|
|
|
27402
27431
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunkFIG2RKZFcjs.cn.call(void 0, "flex flex-col gap-[var(--spacing-system-xsf)] w-full", className), children: [
|
|
27403
27432
|
rows.map((row, index) => {
|
|
27404
27433
|
const item = row.original;
|
|
27405
|
-
const href = _nullishCoalesce(_optionalChain([rowHref, 'optionalCall',
|
|
27434
|
+
const href = _nullishCoalesce(_optionalChain([rowHref, 'optionalCall', _545 => _545(item)]), () => ( void 0));
|
|
27406
27435
|
const cls = typeof rowClassName === "function" ? rowClassName(item, index) : rowClassName;
|
|
27407
27436
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
27408
27437
|
DataTableRow,
|
|
@@ -27412,7 +27441,7 @@ function DataTableBody({
|
|
|
27412
27441
|
href,
|
|
27413
27442
|
compact,
|
|
27414
27443
|
className: cls,
|
|
27415
|
-
subRow: _optionalChain([renderSubRow, 'optionalCall',
|
|
27444
|
+
subRow: _optionalChain([renderSubRow, 'optionalCall', _546 => _546(item)])
|
|
27416
27445
|
},
|
|
27417
27446
|
row.id
|
|
27418
27447
|
);
|
|
@@ -27467,7 +27496,7 @@ function DataTableInfiniteFooter({
|
|
|
27467
27496
|
if (!sentinel) return;
|
|
27468
27497
|
const observer = new IntersectionObserver(
|
|
27469
27498
|
(entries) => {
|
|
27470
|
-
if (_optionalChain([entries, 'access',
|
|
27499
|
+
if (_optionalChain([entries, 'access', _547 => _547[0], 'optionalAccess', _548 => _548.isIntersecting])) onLoadMoreRef.current();
|
|
27471
27500
|
},
|
|
27472
27501
|
{ rootMargin }
|
|
27473
27502
|
);
|
|
@@ -27515,7 +27544,7 @@ function DataTableRowCount({
|
|
|
27515
27544
|
const table = useDataTableContext();
|
|
27516
27545
|
const count = _nullishCoalesce(totalCount, () => ( table.getRowModel().rows.length));
|
|
27517
27546
|
if (hideWhenEmpty && count === 0) return null;
|
|
27518
|
-
const label = _nullishCoalesce(_optionalChain([pluralize, 'optionalCall',
|
|
27547
|
+
const label = _nullishCoalesce(_optionalChain([pluralize, 'optionalCall', _549 => _549(count, itemName)]), () => ( (count === 1 ? itemName : `${itemName}s`)));
|
|
27519
27548
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
27520
27549
|
"span",
|
|
27521
27550
|
{
|
|
@@ -27600,7 +27629,7 @@ function FilterListItem({
|
|
|
27600
27629
|
}) {
|
|
27601
27630
|
const handleToggle = () => {
|
|
27602
27631
|
if (disabled) return;
|
|
27603
|
-
_optionalChain([onToggle, 'optionalCall',
|
|
27632
|
+
_optionalChain([onToggle, 'optionalCall', _550 => _550(!selected)]);
|
|
27604
27633
|
};
|
|
27605
27634
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
27606
27635
|
"div",
|
|
@@ -27647,7 +27676,7 @@ function FilterListItem({
|
|
|
27647
27676
|
CheckboxPrimitive4.Root,
|
|
27648
27677
|
{
|
|
27649
27678
|
checked: selected,
|
|
27650
|
-
onCheckedChange: (c) => _optionalChain([onToggle, 'optionalCall',
|
|
27679
|
+
onCheckedChange: (c) => _optionalChain([onToggle, 'optionalCall', _551 => _551(c === true)]),
|
|
27651
27680
|
onClick: (e) => e.stopPropagation(),
|
|
27652
27681
|
disabled,
|
|
27653
27682
|
"aria-label": title,
|
|
@@ -27746,7 +27775,7 @@ function TagSearchInput({
|
|
|
27746
27775
|
if (!showHiddenTags) return;
|
|
27747
27776
|
const handleClick = (e) => {
|
|
27748
27777
|
const target = e.target;
|
|
27749
|
-
if (!_optionalChain([hiddenTagsRef, 'access',
|
|
27778
|
+
if (!_optionalChain([hiddenTagsRef, 'access', _552 => _552.current, 'optionalAccess', _553 => _553.contains, 'call', _554 => _554(target)]) && !_optionalChain([hiddenTagsPopupRef, 'access', _555 => _555.current, 'optionalAccess', _556 => _556.contains, 'call', _557 => _557(target)])) {
|
|
27750
27779
|
setShowHiddenTags(false);
|
|
27751
27780
|
}
|
|
27752
27781
|
};
|
|
@@ -27762,13 +27791,13 @@ function TagSearchInput({
|
|
|
27762
27791
|
e.preventDefault();
|
|
27763
27792
|
onSubmit(searchValue);
|
|
27764
27793
|
}
|
|
27765
|
-
_optionalChain([onKeyDown, 'optionalCall',
|
|
27794
|
+
_optionalChain([onKeyDown, 'optionalCall', _558 => _558(e)]);
|
|
27766
27795
|
};
|
|
27767
27796
|
const handleClearAll = (e) => {
|
|
27768
27797
|
e.stopPropagation();
|
|
27769
27798
|
e.preventDefault();
|
|
27770
|
-
_optionalChain([onClearAll, 'optionalCall',
|
|
27771
|
-
_optionalChain([inputRef, 'access',
|
|
27799
|
+
_optionalChain([onClearAll, 'optionalCall', _559 => _559()]);
|
|
27800
|
+
_optionalChain([inputRef, 'access', _560 => _560.current, 'optionalAccess', _561 => _561.focus, 'call', _562 => _562()]);
|
|
27772
27801
|
};
|
|
27773
27802
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { ref: wrapperRef, className: "relative", children: [
|
|
27774
27803
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
@@ -27785,13 +27814,13 @@ function TagSearchInput({
|
|
|
27785
27814
|
className
|
|
27786
27815
|
),
|
|
27787
27816
|
onClick: () => {
|
|
27788
|
-
if (!disabled) _optionalChain([inputRef, 'access',
|
|
27817
|
+
if (!disabled) _optionalChain([inputRef, 'access', _563 => _563.current, 'optionalAccess', _564 => _564.focus, 'call', _565 => _565()]);
|
|
27789
27818
|
},
|
|
27790
27819
|
children: [
|
|
27791
27820
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "shrink-0 flex items-center pl-3", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkWZW7C7TFcjs.SearchIcon, { className: "text-ods-text-secondary size-4 md:size-6" }) }),
|
|
27792
27821
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { ref: middleRef, className: "flex-1 flex items-center gap-2 min-w-0 overflow-hidden px-2", children: [
|
|
27793
27822
|
visibleTags.map((tag) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
27794
|
-
|
|
27823
|
+
_chunkLH7R56RRcjs.Tag,
|
|
27795
27824
|
{
|
|
27796
27825
|
variant: "outline",
|
|
27797
27826
|
label: renderTag ? renderTag(tag) : tag.label,
|
|
@@ -27851,13 +27880,13 @@ function TagSearchInput({
|
|
|
27851
27880
|
}
|
|
27852
27881
|
),
|
|
27853
27882
|
showHiddenTags && hiddenCount > 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
27854
|
-
|
|
27883
|
+
_chunkLH7R56RRcjs.HiddenTagsPopup,
|
|
27855
27884
|
{
|
|
27856
27885
|
ref: hiddenTagsPopupRef,
|
|
27857
27886
|
items: hiddenTags,
|
|
27858
27887
|
disabled,
|
|
27859
27888
|
style: {
|
|
27860
|
-
left: badgeRef.current ? badgeRef.current.getBoundingClientRect().left - (_nullishCoalesce(_optionalChain([wrapperRef, 'access',
|
|
27889
|
+
left: badgeRef.current ? badgeRef.current.getBoundingClientRect().left - (_nullishCoalesce(_optionalChain([wrapperRef, 'access', _566 => _566.current, 'optionalAccess', _567 => _567.getBoundingClientRect, 'call', _568 => _568(), 'access', _569 => _569.left]), () => ( 0))) : 0
|
|
27861
27890
|
},
|
|
27862
27891
|
onRemove: (value) => {
|
|
27863
27892
|
onTagRemove(value);
|
|
@@ -27881,7 +27910,7 @@ function TagSearchInput({
|
|
|
27881
27910
|
"aria-hidden": "true",
|
|
27882
27911
|
className: "absolute left-0 top-0 flex gap-2 pointer-events-none invisible -z-10",
|
|
27883
27912
|
children: tags.map((tag) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
27884
|
-
|
|
27913
|
+
_chunkLH7R56RRcjs.Tag,
|
|
27885
27914
|
{
|
|
27886
27915
|
variant: "outline",
|
|
27887
27916
|
label: renderTag ? renderTag(tag) : tag.label,
|
|
@@ -27958,7 +27987,7 @@ function MarkdownEditor({
|
|
|
27958
27987
|
const [defaultExtraCommands, setDefaultExtraCommands] = _react.useState.call(void 0, []);
|
|
27959
27988
|
_react.useEffect.call(void 0, () => {
|
|
27960
27989
|
Promise.resolve().then(() => _interopRequireWildcard(require("@uiw/react-md-editor"))).then((mod) => {
|
|
27961
|
-
if (_optionalChain([mod, 'access',
|
|
27990
|
+
if (_optionalChain([mod, 'access', _570 => _570.commands, 'optionalAccess', _571 => _571.getExtraCommands])) {
|
|
27962
27991
|
setDefaultExtraCommands(mod.commands.getExtraCommands());
|
|
27963
27992
|
}
|
|
27964
27993
|
});
|
|
@@ -27992,7 +28021,7 @@ function MarkdownEditor({
|
|
|
27992
28021
|
const isImage = file.type.startsWith("image/");
|
|
27993
28022
|
const markdown = isImage ? `` : `[${file.name}](${url})`;
|
|
27994
28023
|
insertTextAtCursor(markdown);
|
|
27995
|
-
_optionalChain([onFileUploaded, 'optionalCall',
|
|
28024
|
+
_optionalChain([onFileUploaded, 'optionalCall', _572 => _572(url, file.name)]);
|
|
27996
28025
|
} catch (error) {
|
|
27997
28026
|
console.error("File upload failed:", error);
|
|
27998
28027
|
setUploadProgress("Upload failed. Please try again.");
|
|
@@ -28005,7 +28034,7 @@ function MarkdownEditor({
|
|
|
28005
28034
|
);
|
|
28006
28035
|
const handleFileInputChange = _react.useCallback.call(void 0,
|
|
28007
28036
|
(e) => {
|
|
28008
|
-
const file = _optionalChain([e, 'access',
|
|
28037
|
+
const file = _optionalChain([e, 'access', _573 => _573.target, 'access', _574 => _574.files, 'optionalAccess', _575 => _575[0]]);
|
|
28009
28038
|
if (file) {
|
|
28010
28039
|
handleFileUpload(file);
|
|
28011
28040
|
e.target.value = "";
|
|
@@ -28016,7 +28045,7 @@ function MarkdownEditor({
|
|
|
28016
28045
|
const handlePaste = _react.useCallback.call(void 0,
|
|
28017
28046
|
(e) => {
|
|
28018
28047
|
if (!onUploadFile) return;
|
|
28019
|
-
const items = _optionalChain([e, 'access',
|
|
28048
|
+
const items = _optionalChain([e, 'access', _576 => _576.clipboardData, 'optionalAccess', _577 => _577.items]);
|
|
28020
28049
|
if (!items) return;
|
|
28021
28050
|
for (const item of items) {
|
|
28022
28051
|
if (item.type.startsWith("image/")) {
|
|
@@ -28041,7 +28070,7 @@ function MarkdownEditor({
|
|
|
28041
28070
|
buttonProps: { "aria-label": "Upload file", title: "Upload file" },
|
|
28042
28071
|
icon: isUploading ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.Loader2, { className: "w-3 h-3 animate-spin" }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.Upload, { className: "w-3 h-3" }),
|
|
28043
28072
|
execute: () => {
|
|
28044
|
-
_optionalChain([fileInputRef, 'access',
|
|
28073
|
+
_optionalChain([fileInputRef, 'access', _578 => _578.current, 'optionalAccess', _579 => _579.click, 'call', _580 => _580()]);
|
|
28045
28074
|
}
|
|
28046
28075
|
} : null;
|
|
28047
28076
|
const extraCommands = uploadCommand ? [...defaultExtraCommands, uploadCommand] : defaultExtraCommands;
|
|
@@ -28053,7 +28082,7 @@ function MarkdownEditor({
|
|
|
28053
28082
|
const EDGE_ZONE = 60;
|
|
28054
28083
|
const MAX_SCROLL_SPEED = 15;
|
|
28055
28084
|
const findScrollParent = _react.useCallback.call(void 0, (el) => {
|
|
28056
|
-
let node = _optionalChain([el, 'optionalAccess',
|
|
28085
|
+
let node = _optionalChain([el, 'optionalAccess', _581 => _581.parentElement]);
|
|
28057
28086
|
while (node && node !== document.documentElement) {
|
|
28058
28087
|
const { overflowY } = window.getComputedStyle(node);
|
|
28059
28088
|
if ((overflowY === "auto" || overflowY === "scroll") && node.scrollHeight > node.clientHeight) {
|
|
@@ -28196,7 +28225,7 @@ function matchesAccept(file, accept) {
|
|
|
28196
28225
|
});
|
|
28197
28226
|
}
|
|
28198
28227
|
function dragHasFiles(e) {
|
|
28199
|
-
const types = _optionalChain([e, 'access',
|
|
28228
|
+
const types = _optionalChain([e, 'access', _582 => _582.dataTransfer, 'optionalAccess', _583 => _583.types]);
|
|
28200
28229
|
if (!types) return false;
|
|
28201
28230
|
for (let i = 0; i < types.length; i++) {
|
|
28202
28231
|
if (types[i] === "Files") return true;
|
|
@@ -28291,7 +28320,7 @@ function FileUpload({
|
|
|
28291
28320
|
e.stopPropagation();
|
|
28292
28321
|
setDragActive(false);
|
|
28293
28322
|
if (disabled) return;
|
|
28294
|
-
if (_optionalChain([e, 'access',
|
|
28323
|
+
if (_optionalChain([e, 'access', _584 => _584.dataTransfer, 'access', _585 => _585.files, 'optionalAccess', _586 => _586.length])) {
|
|
28295
28324
|
handleFiles(e.dataTransfer.files);
|
|
28296
28325
|
}
|
|
28297
28326
|
};
|
|
@@ -28319,7 +28348,7 @@ function FileUpload({
|
|
|
28319
28348
|
e.preventDefault();
|
|
28320
28349
|
dragCounter = 0;
|
|
28321
28350
|
setDragActive(false);
|
|
28322
|
-
if (_optionalChain([e, 'access',
|
|
28351
|
+
if (_optionalChain([e, 'access', _587 => _587.dataTransfer, 'optionalAccess', _588 => _588.files, 'optionalAccess', _589 => _589.length])) {
|
|
28323
28352
|
handleFilesRef.current(e.dataTransfer.files);
|
|
28324
28353
|
}
|
|
28325
28354
|
};
|
|
@@ -28341,7 +28370,7 @@ function FileUpload({
|
|
|
28341
28370
|
};
|
|
28342
28371
|
}, [acceptWindowDrops, disabled]);
|
|
28343
28372
|
const handleFileSelect = (e) => {
|
|
28344
|
-
if (_optionalChain([e, 'access',
|
|
28373
|
+
if (_optionalChain([e, 'access', _590 => _590.target, 'access', _591 => _591.files, 'optionalAccess', _592 => _592.length])) {
|
|
28345
28374
|
handleFiles(e.target.files);
|
|
28346
28375
|
}
|
|
28347
28376
|
};
|
|
@@ -28358,7 +28387,7 @@ function FileUpload({
|
|
|
28358
28387
|
};
|
|
28359
28388
|
const openDialog = async () => {
|
|
28360
28389
|
if (disabled) return;
|
|
28361
|
-
_optionalChain([fileInputRef, 'access',
|
|
28390
|
+
_optionalChain([fileInputRef, 'access', _593 => _593.current, 'optionalAccess', _594 => _594.click, 'call', _595 => _595()]);
|
|
28362
28391
|
};
|
|
28363
28392
|
const displayError = error || validationError || void 0;
|
|
28364
28393
|
const hasFiles = isManaged ? managedFiles.length > 0 : files.length > 0;
|
|
@@ -28436,7 +28465,7 @@ function FileUpload({
|
|
|
28436
28465
|
"button",
|
|
28437
28466
|
{
|
|
28438
28467
|
type: "button",
|
|
28439
|
-
onClick: () => _optionalChain([onRemoveManagedFile, 'optionalCall',
|
|
28468
|
+
onClick: () => _optionalChain([onRemoveManagedFile, 'optionalCall', _596 => _596(entry.id)]),
|
|
28440
28469
|
className: "shrink-0 p-1 rounded hover:bg-ods-bg transition-colors",
|
|
28441
28470
|
"aria-label": `Remove ${entry.fileName}`,
|
|
28442
28471
|
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.X, { className: "size-4 text-ods-text-secondary" })
|
|
@@ -28559,7 +28588,7 @@ function ImageUploader({
|
|
|
28559
28588
|
onChange(file);
|
|
28560
28589
|
};
|
|
28561
28590
|
const handleFileSelect = (e) => {
|
|
28562
|
-
validateAndEmit(_optionalChain([e, 'access',
|
|
28591
|
+
validateAndEmit(_optionalChain([e, 'access', _597 => _597.target, 'access', _598 => _598.files, 'optionalAccess', _599 => _599[0]]));
|
|
28563
28592
|
if (inputRef.current) inputRef.current.value = "";
|
|
28564
28593
|
};
|
|
28565
28594
|
const handleDrag = (e) => {
|
|
@@ -28574,11 +28603,11 @@ function ImageUploader({
|
|
|
28574
28603
|
e.stopPropagation();
|
|
28575
28604
|
setDragActive(false);
|
|
28576
28605
|
if (!interactive) return;
|
|
28577
|
-
validateAndEmit(_optionalChain([e, 'access',
|
|
28606
|
+
validateAndEmit(_optionalChain([e, 'access', _600 => _600.dataTransfer, 'access', _601 => _601.files, 'optionalAccess', _602 => _602[0]]));
|
|
28578
28607
|
};
|
|
28579
28608
|
const openDialog = () => {
|
|
28580
28609
|
if (!interactive) return;
|
|
28581
|
-
_optionalChain([inputRef, 'access',
|
|
28610
|
+
_optionalChain([inputRef, 'access', _603 => _603.current, 'optionalAccess', _604 => _604.click, 'call', _605 => _605()]);
|
|
28582
28611
|
};
|
|
28583
28612
|
const handleRootKeyDown = (e) => {
|
|
28584
28613
|
if (hasImage || !interactive) return;
|
|
@@ -28768,8 +28797,8 @@ function ColorPresetSelect({
|
|
|
28768
28797
|
}) {
|
|
28769
28798
|
const selectedPreset = presets.find((p) => p.key === presetKey);
|
|
28770
28799
|
const isCustom = !selectedPreset;
|
|
28771
|
-
const displayLabel = _nullishCoalesce(_optionalChain([selectedPreset, 'optionalAccess',
|
|
28772
|
-
const displayColor = _nullishCoalesce(_optionalChain([selectedPreset, 'optionalAccess',
|
|
28800
|
+
const displayLabel = _nullishCoalesce(_optionalChain([selectedPreset, 'optionalAccess', _606 => _606.label]), () => ( "Custom"));
|
|
28801
|
+
const displayColor = _nullishCoalesce(_optionalChain([selectedPreset, 'optionalAccess', _607 => _607.color]), () => ( value));
|
|
28773
28802
|
const groups = [
|
|
28774
28803
|
{
|
|
28775
28804
|
items: [
|
|
@@ -28789,7 +28818,7 @@ function ColorPresetSelect({
|
|
|
28789
28818
|
}
|
|
28790
28819
|
];
|
|
28791
28820
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
28792
|
-
|
|
28821
|
+
_chunkLH7R56RRcjs.ActionsMenuDropdown,
|
|
28793
28822
|
{
|
|
28794
28823
|
groups,
|
|
28795
28824
|
align: "start",
|
|
@@ -28939,7 +28968,7 @@ function ColorPickerInput({ value, onChange, disabled, className }) {
|
|
|
28939
28968
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reactcolorful.HexColorPicker, { color: value, onChange }),
|
|
28940
28969
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center gap-[var(--spacing-system-xs)]", children: [
|
|
28941
28970
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
28942
|
-
|
|
28971
|
+
_chunkLH7R56RRcjs.ActionsMenuDropdown,
|
|
28943
28972
|
{
|
|
28944
28973
|
groups: formatGroups,
|
|
28945
28974
|
align: "start",
|
|
@@ -29059,7 +29088,7 @@ function TicketStatusConfigRow({
|
|
|
29059
29088
|
_chunk6JINAOI7cjs.Input,
|
|
29060
29089
|
{
|
|
29061
29090
|
value: name,
|
|
29062
|
-
onChange: (e) => _optionalChain([onNameChange, 'optionalCall',
|
|
29091
|
+
onChange: (e) => _optionalChain([onNameChange, 'optionalCall', _608 => _608(e.target.value)]),
|
|
29063
29092
|
disabled: isSystem,
|
|
29064
29093
|
readOnly: isSystem,
|
|
29065
29094
|
"aria-label": "Status name",
|
|
@@ -29142,7 +29171,7 @@ function CompactAssigneeDropdown({
|
|
|
29142
29171
|
return [current, ...filtered.filter((o) => o.value !== currentAssignee.id)];
|
|
29143
29172
|
}, [filtered, currentAssignee]);
|
|
29144
29173
|
const handleSelect = (userId) => {
|
|
29145
|
-
const next = _optionalChain([currentAssignee, 'optionalAccess',
|
|
29174
|
+
const next = _optionalChain([currentAssignee, 'optionalAccess', _609 => _609.id]) === userId ? null : userId;
|
|
29146
29175
|
onAssign(next);
|
|
29147
29176
|
setIsOpen(false);
|
|
29148
29177
|
};
|
|
@@ -29156,7 +29185,7 @@ function CompactAssigneeDropdown({
|
|
|
29156
29185
|
className
|
|
29157
29186
|
),
|
|
29158
29187
|
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
29159
|
-
|
|
29188
|
+
_chunkLH7R56RRcjs.SquareAvatar,
|
|
29160
29189
|
{
|
|
29161
29190
|
src: currentAssignee.avatarSrc,
|
|
29162
29191
|
alt: currentAssignee.name,
|
|
@@ -29207,7 +29236,7 @@ function CompactAssigneeDropdown({
|
|
|
29207
29236
|
}
|
|
29208
29237
|
) }),
|
|
29209
29238
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "max-h-80 overflow-y-auto py-[var(--spacing-system-xs)]", role: "listbox", children: isLoading ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "px-[var(--spacing-system-sf)] py-[var(--spacing-system-s)] text-h5 text-ods-text-secondary", children: "Loading\u2026" }) : orderedOptions.length === 0 ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "px-[var(--spacing-system-sf)] py-[var(--spacing-system-s)] text-h5 text-ods-text-secondary", children: "No users found" }) : orderedOptions.map((opt) => {
|
|
29210
|
-
const isCurrent = _optionalChain([currentAssignee, 'optionalAccess',
|
|
29239
|
+
const isCurrent = _optionalChain([currentAssignee, 'optionalAccess', _610 => _610.id]) === opt.value;
|
|
29211
29240
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
29212
29241
|
"button",
|
|
29213
29242
|
{
|
|
@@ -29222,7 +29251,7 @@ function CompactAssigneeDropdown({
|
|
|
29222
29251
|
),
|
|
29223
29252
|
children: [
|
|
29224
29253
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
29225
|
-
|
|
29254
|
+
_chunkLH7R56RRcjs.SquareAvatar,
|
|
29226
29255
|
{
|
|
29227
29256
|
src: opt.imageUrl,
|
|
29228
29257
|
alt: opt.label,
|
|
@@ -29257,7 +29286,7 @@ function DefaultAssigneeDropdown({
|
|
|
29257
29286
|
const opt = option;
|
|
29258
29287
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center gap-[var(--spacing-system-sf)] w-full min-w-0", children: [
|
|
29259
29288
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
29260
|
-
|
|
29289
|
+
_chunkLH7R56RRcjs.SquareAvatar,
|
|
29261
29290
|
{
|
|
29262
29291
|
src: opt.imageUrl,
|
|
29263
29292
|
alt: opt.label,
|
|
@@ -29276,7 +29305,7 @@ function DefaultAssigneeDropdown({
|
|
|
29276
29305
|
Autocomplete,
|
|
29277
29306
|
{
|
|
29278
29307
|
options,
|
|
29279
|
-
value: _nullishCoalesce(_optionalChain([currentAssignee, 'optionalAccess',
|
|
29308
|
+
value: _nullishCoalesce(_optionalChain([currentAssignee, 'optionalAccess', _611 => _611.id]), () => ( null)),
|
|
29280
29309
|
onChange: (val) => {
|
|
29281
29310
|
onAssign(val);
|
|
29282
29311
|
setIsEditing(false);
|
|
@@ -29285,7 +29314,7 @@ function DefaultAssigneeDropdown({
|
|
|
29285
29314
|
loading: isLoading,
|
|
29286
29315
|
showChevron: false,
|
|
29287
29316
|
startAdornment: hasAssignee ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
29288
|
-
|
|
29317
|
+
_chunkLH7R56RRcjs.SquareAvatar,
|
|
29289
29318
|
{
|
|
29290
29319
|
src: currentAssignee.avatarSrc,
|
|
29291
29320
|
alt: currentAssignee.name,
|
|
@@ -29304,7 +29333,7 @@ function DefaultAssigneeDropdown({
|
|
|
29304
29333
|
if (hasAssignee) {
|
|
29305
29334
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunkFIG2RKZFcjs.cn.call(void 0, "flex items-center gap-[var(--spacing-system-xs)] min-w-0", className), children: [
|
|
29306
29335
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
29307
|
-
|
|
29336
|
+
_chunkLH7R56RRcjs.SquareAvatar,
|
|
29308
29337
|
{
|
|
29309
29338
|
src: currentAssignee.avatarSrc,
|
|
29310
29339
|
alt: currentAssignee.name,
|
|
@@ -29378,7 +29407,7 @@ function TicketAttachmentsList({ attachments, className, size = "default" }) {
|
|
|
29378
29407
|
),
|
|
29379
29408
|
children: [
|
|
29380
29409
|
attachment.thumbnailSrc ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
29381
|
-
|
|
29410
|
+
_chunkLH7R56RRcjs.SquareAvatar,
|
|
29382
29411
|
{
|
|
29383
29412
|
src: attachment.thumbnailSrc,
|
|
29384
29413
|
alt: attachment.fileName,
|
|
@@ -29462,7 +29491,7 @@ function TicketNoteCard({ note, onEdit, onDelete, className }) {
|
|
|
29462
29491
|
),
|
|
29463
29492
|
children: [
|
|
29464
29493
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
29465
|
-
|
|
29494
|
+
_chunkLH7R56RRcjs.SquareAvatar,
|
|
29466
29495
|
{
|
|
29467
29496
|
src: note.authorAvatar,
|
|
29468
29497
|
alt: note.authorName,
|
|
@@ -29663,16 +29692,16 @@ function TicketInfoSection({
|
|
|
29663
29692
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "grid grid-cols-2 lg:grid-cols-[1fr_1fr_1fr_auto] gap-4 px-4 py-3 bg-ods-card border-b border-ods-border items-center", children: [
|
|
29664
29693
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center gap-2 min-w-0", children: [
|
|
29665
29694
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
29666
|
-
|
|
29695
|
+
_chunkLH7R56RRcjs.SquareAvatar,
|
|
29667
29696
|
{
|
|
29668
|
-
src: _optionalChain([organization, 'optionalAccess',
|
|
29669
|
-
alt: _optionalChain([organization, 'optionalAccess',
|
|
29670
|
-
fallback: _optionalChain([organization, 'optionalAccess',
|
|
29697
|
+
src: _optionalChain([organization, 'optionalAccess', _612 => _612.imageSrc]),
|
|
29698
|
+
alt: _optionalChain([organization, 'optionalAccess', _613 => _613.name]),
|
|
29699
|
+
fallback: _optionalChain([organization, 'optionalAccess', _614 => _614.name]) || "Org",
|
|
29671
29700
|
size: "md",
|
|
29672
29701
|
className: "shrink-0"
|
|
29673
29702
|
}
|
|
29674
29703
|
),
|
|
29675
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, InfoCell2, { value: _optionalChain([organization, 'optionalAccess',
|
|
29704
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, InfoCell2, { value: _optionalChain([organization, 'optionalAccess', _615 => _615.name]) || "Unassigned", label: "Organization" })
|
|
29676
29705
|
] }),
|
|
29677
29706
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "min-w-0", children: assigned ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
29678
29707
|
AssigneeDropdown,
|
|
@@ -29693,10 +29722,10 @@ function TicketInfoSection({
|
|
|
29693
29722
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
29694
29723
|
InfoCell2,
|
|
29695
29724
|
{
|
|
29696
|
-
value: _optionalChain([device, 'optionalAccess',
|
|
29725
|
+
value: _optionalChain([device, 'optionalAccess', _616 => _616.name]) || "Unassigned",
|
|
29697
29726
|
label: "Device",
|
|
29698
|
-
icon: _optionalChain([device, 'optionalAccess',
|
|
29699
|
-
onClick: _optionalChain([device, 'optionalAccess',
|
|
29727
|
+
icon: _optionalChain([device, 'optionalAccess', _617 => _617.icon]),
|
|
29728
|
+
onClick: _optionalChain([device, 'optionalAccess', _618 => _618.onClick])
|
|
29700
29729
|
}
|
|
29701
29730
|
),
|
|
29702
29731
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center gap-4 min-w-0", children: [
|
|
@@ -29738,9 +29767,9 @@ function TicketInfoSection({
|
|
|
29738
29767
|
expanded && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
29739
29768
|
createdAt && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "grid grid-cols-2 gap-4 px-4 py-3 bg-ods-bg border-b border-ods-border items-center", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, InfoCell2, { value: createdAt, label: "Created" }) }),
|
|
29740
29769
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col gap-4 p-4 bg-ods-bg border-b border-ods-border", children: [
|
|
29741
|
-
description && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
29770
|
+
description && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLH7R56RRcjs.SimpleMarkdownRenderer, { content: description }),
|
|
29742
29771
|
attachments && attachments.length > 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TicketDetailSection, { label: "Attachments", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TicketAttachmentsList, { attachments }) }),
|
|
29743
|
-
tags && tags.length > 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TicketDetailSection, { label: "Tags", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex flex-wrap gap-2 min-w-0", children: tags.map((tag) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
29772
|
+
tags && tags.length > 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TicketDetailSection, { label: "Tags", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex flex-wrap gap-2 min-w-0", children: tags.map((tag) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLH7R56RRcjs.Tag, { label: tag, variant: "outline", className: "max-w-full" }, tag)) }) }),
|
|
29744
29773
|
(notes || onAddNote) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TicketDetailSection, { label: "Notes", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
29745
29774
|
TicketNotesSection,
|
|
29746
29775
|
{
|
|
@@ -29937,18 +29966,18 @@ function TaskTypeIcon({ customItemId, className = "h-5 w-5" }) {
|
|
|
29937
29966
|
|
|
29938
29967
|
function RoadmapCardSkeleton({ size = "default" }) {
|
|
29939
29968
|
if (size === "sm") {
|
|
29940
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className:
|
|
29969
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: _chunkLH7R56RRcjs.COMPACT_CARD_SKELETON_OUTER, children: [
|
|
29941
29970
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "block h-12 w-12 aspect-square shrink-0 self-start rounded-md bg-ods-bg border border-ods-border p-1.5" }),
|
|
29942
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className:
|
|
29943
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: `${
|
|
29971
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: _chunkLH7R56RRcjs.COMPACT_CARD_TEXT_COL, children: [
|
|
29972
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: `${_chunkLH7R56RRcjs.COMPACT_CARD_TITLE_ROW} flex-nowrap gap-2`, children: [
|
|
29944
29973
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "h-3.5 w-1/2 rounded bg-ods-bg" }),
|
|
29945
29974
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "h-4 w-12 rounded bg-ods-bg/70 shrink-0" })
|
|
29946
29975
|
] }),
|
|
29947
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: `${
|
|
29976
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: `${_chunkLH7R56RRcjs.COMPACT_CARD_META_ROW_BOX} flex-nowrap gap-2`, children: [
|
|
29948
29977
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "h-3 w-2/5 rounded bg-ods-bg/60 flex-1" }),
|
|
29949
29978
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "h-3 w-10 rounded bg-ods-bg/40 shrink-0" })
|
|
29950
29979
|
] }),
|
|
29951
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
29980
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkLH7R56RRcjs.COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "h-3 w-5/6 rounded bg-ods-bg/40" }) })
|
|
29952
29981
|
] })
|
|
29953
29982
|
] });
|
|
29954
29983
|
}
|
|
@@ -29987,12 +30016,12 @@ function RoadmapCard({
|
|
|
29987
30016
|
}) {
|
|
29988
30017
|
const [showScreenshots, setShowScreenshots] = _react.useState.call(void 0, false);
|
|
29989
30018
|
const logoUrl = item.icon && item.icon.startsWith("http") ? item.icon : null;
|
|
29990
|
-
const iconSrc = logoUrl ?
|
|
30019
|
+
const iconSrc = logoUrl ? _chunkLH7R56RRcjs.getProxiedImageUrl.call(void 0, logoUrl, { directHttps: true }) || logoUrl : null;
|
|
29991
30020
|
if (size === "sm") {
|
|
29992
|
-
const compactHref =
|
|
30021
|
+
const compactHref = _chunkLH7R56RRcjs.safeHref.call(void 0, _nullishCoalesce(href, () => ( null)));
|
|
29993
30022
|
const hasVotes = (_nullishCoalesce(item.upvotes, () => ( 0))) > 0 || (_nullishCoalesce(item.downvotes, () => ( 0))) > 0;
|
|
29994
30023
|
const hasFigma = !!item.figmaUrl;
|
|
29995
|
-
const hasScreenshots = (_nullishCoalesce(_optionalChain([item, 'access',
|
|
30024
|
+
const hasScreenshots = (_nullishCoalesce(_optionalChain([item, 'access', _619 => _619.screenshots, 'optionalAccess', _620 => _620.length]), () => ( 0))) > 0;
|
|
29996
30025
|
const typeLabel = getTaskTypeLabel(item.customItemId);
|
|
29997
30026
|
const useTypeIcon = cardType === "internal_task" || !iconSrc && item.customItemId != null;
|
|
29998
30027
|
const body = /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
@@ -30011,14 +30040,14 @@ function RoadmapCard({
|
|
|
30011
30040
|
unoptimized: true,
|
|
30012
30041
|
className: "h-8 w-8 object-contain"
|
|
30013
30042
|
}
|
|
30014
|
-
) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "text-[10px] font-medium uppercase text-ods-text-secondary", children: _optionalChain([item, 'access',
|
|
30043
|
+
) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "text-[10px] font-medium uppercase text-ods-text-secondary", children: _optionalChain([item, 'access', _621 => _621.title, 'optionalAccess', _622 => _622.substring, 'call', _623 => _623(0, 2)]) || "??" })
|
|
30015
30044
|
}
|
|
30016
30045
|
),
|
|
30017
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className:
|
|
30018
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: `${
|
|
30019
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: `${
|
|
30046
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: _chunkLH7R56RRcjs.COMPACT_CARD_TEXT_COL, children: [
|
|
30047
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: `${_chunkLH7R56RRcjs.COMPACT_CARD_TITLE_ROW} gap-2`, children: [
|
|
30048
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: `${_chunkLH7R56RRcjs.COMPACT_CARD_TITLE} min-w-0`, children: item.title }),
|
|
30020
30049
|
item.status && item.status.trim().length > 0 ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
30021
|
-
|
|
30050
|
+
_chunkLH7R56RRcjs.StatusBadge,
|
|
30022
30051
|
{
|
|
30023
30052
|
text: item.status.toUpperCase(),
|
|
30024
30053
|
colorScheme: getStatusColorScheme(item.status),
|
|
@@ -30028,7 +30057,7 @@ function RoadmapCard({
|
|
|
30028
30057
|
}
|
|
30029
30058
|
) : null
|
|
30030
30059
|
] }),
|
|
30031
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: `${
|
|
30060
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: `${_chunkLH7R56RRcjs.COMPACT_CARD_META_ROW_BOX} gap-2 text-ods-text-secondary`, children: [
|
|
30032
30061
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "truncate text-[11px] leading-4 min-w-0 flex-1", children: (() => {
|
|
30033
30062
|
const parts = [
|
|
30034
30063
|
item.quarter,
|
|
@@ -30066,13 +30095,13 @@ function RoadmapCard({
|
|
|
30066
30095
|
}
|
|
30067
30096
|
) : null
|
|
30068
30097
|
] }),
|
|
30069
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
30098
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkLH7R56RRcjs.COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkLH7R56RRcjs.COMPACT_CARD_SUMMARY, children: item.description || _chunkLH7R56RRcjs.COMPACT_CARD_ROW_FILLER }) })
|
|
30070
30099
|
] })
|
|
30071
30100
|
] });
|
|
30072
30101
|
if (!compactHref) {
|
|
30073
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: `${
|
|
30102
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: `${_chunkLH7R56RRcjs.COMPACT_CARD_OUTER_STATIC} ${_nullishCoalesce(className, () => ( ""))}`, "aria-label": "No link available", children: body });
|
|
30074
30103
|
}
|
|
30075
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "a", { href: compactHref, target, rel, className: `${
|
|
30104
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "a", { href: compactHref, target, rel, className: `${_chunkLH7R56RRcjs.COMPACT_CARD_OUTER} ${_nullishCoalesce(className, () => ( ""))}`, children: body });
|
|
30076
30105
|
}
|
|
30077
30106
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: `bg-ods-card border border-ods-border rounded-[6px] p-[24px] flex flex-col gap-[16px] hover:border-ods-accent transition-all h-full ${_nullishCoalesce(className, () => ( ""))}`, children: [
|
|
30078
30107
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex gap-[16px] items-center w-full", children: [
|
|
@@ -30086,7 +30115,7 @@ function RoadmapCard({
|
|
|
30086
30115
|
unoptimized: true,
|
|
30087
30116
|
className: "object-contain p-1"
|
|
30088
30117
|
}
|
|
30089
|
-
) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "text-xs font-medium uppercase text-ods-text-secondary", children: _optionalChain([item, 'access',
|
|
30118
|
+
) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "text-xs font-medium uppercase text-ods-text-secondary", children: _optionalChain([item, 'access', _624 => _624.title, 'optionalAccess', _625 => _625.substring, 'call', _626 => _626(0, 2)]) || "??" }) }),
|
|
30090
30119
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex-1 min-w-0 flex flex-col", children: [
|
|
30091
30120
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "min-h-[48px] flex items-center", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h3", { className: "text-h3 text-ods-text-primary tracking-[-0.36px] flex-1 line-clamp-2", children: item.title }) }),
|
|
30092
30121
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "min-h-[20px] flex items-center", children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "p", { className: "text-h5 text-ods-text-secondary uppercase tracking-[-0.28px] truncate", children: [
|
|
@@ -30096,7 +30125,7 @@ function RoadmapCard({
|
|
|
30096
30125
|
] }) })
|
|
30097
30126
|
] }),
|
|
30098
30127
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "hidden md:block", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
30099
|
-
|
|
30128
|
+
_chunkLH7R56RRcjs.StatusBadge,
|
|
30100
30129
|
{
|
|
30101
30130
|
text: item.status.toUpperCase(),
|
|
30102
30131
|
colorScheme: getStatusColorScheme(item.status),
|
|
@@ -30105,7 +30134,7 @@ function RoadmapCard({
|
|
|
30105
30134
|
) })
|
|
30106
30135
|
] }),
|
|
30107
30136
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "md:hidden", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
30108
|
-
|
|
30137
|
+
_chunkLH7R56RRcjs.StatusBadge,
|
|
30109
30138
|
{
|
|
30110
30139
|
text: item.status.toUpperCase(),
|
|
30111
30140
|
colorScheme: getStatusColorScheme(item.status),
|
|
@@ -30152,7 +30181,7 @@ function RoadmapCard({
|
|
|
30152
30181
|
}
|
|
30153
30182
|
),
|
|
30154
30183
|
(() => {
|
|
30155
|
-
const figmaSafe =
|
|
30184
|
+
const figmaSafe = _chunkLH7R56RRcjs.safeHref.call(void 0, item.figmaUrl);
|
|
30156
30185
|
return figmaSafe ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
30157
30186
|
_chunkN5UOJC3Vcjs.Button,
|
|
30158
30187
|
{
|
|
@@ -30165,7 +30194,7 @@ function RoadmapCard({
|
|
|
30165
30194
|
) : null;
|
|
30166
30195
|
})(),
|
|
30167
30196
|
item.targetVersion && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
30168
|
-
|
|
30197
|
+
_chunkLH7R56RRcjs.StatusBadge,
|
|
30169
30198
|
{
|
|
30170
30199
|
text: `${item.targetVersion} VERSION`,
|
|
30171
30200
|
className: "border border-ods-border"
|
|
@@ -30293,7 +30322,7 @@ function ReviewStateBadge({ state, className = "" }) {
|
|
|
30293
30322
|
function GitHubActivityCard({ item, variant = "compact", className, anchorProps }) {
|
|
30294
30323
|
const kind = _nullishCoalesce(item.kind, () => ( "commit"));
|
|
30295
30324
|
const repo = _nullishCoalesce(_nullishCoalesce(item.repo, () => ( parseRepoFromUrl(item.url))), () => ( ""));
|
|
30296
|
-
const dateText =
|
|
30325
|
+
const dateText = _chunkLH7R56RRcjs.formatDateUTC.call(void 0, item.dateUpdated, { fallback: "", timezone: "local" });
|
|
30297
30326
|
const idLabel = formatActivityId(item.id, kind);
|
|
30298
30327
|
const { display: title, reviewState } = parseGithubTitle(item.title, kind);
|
|
30299
30328
|
const primaryText = kind === "pr_review" ? title.replace(/^by\s+/i, "").trim() || "Reviewer" : title;
|
|
@@ -30318,24 +30347,24 @@ function GitHubActivityCard({ item, variant = "compact", className, anchorProps
|
|
|
30318
30347
|
if (idLabel) metaParts.push(/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "code", { className: "font-mono", children: idLabel }, "id"));
|
|
30319
30348
|
if (repo) metaParts.push(/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "font-mono truncate", children: repo }, "repo"));
|
|
30320
30349
|
if (dateText) metaParts.push(/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "whitespace-nowrap", children: dateText }, "date"));
|
|
30321
|
-
const href =
|
|
30350
|
+
const href = _chunkLH7R56RRcjs.safeHref.call(void 0, item.url);
|
|
30322
30351
|
const body = /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
30323
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
30324
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className:
|
|
30325
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: `${
|
|
30352
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkLH7R56RRcjs.COMPACT_CARD_ICON_SLOT, children: kindIcon(kind, "h-5 w-5") }),
|
|
30353
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: _chunkLH7R56RRcjs.COMPACT_CARD_TEXT_COL, children: [
|
|
30354
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: `${_chunkLH7R56RRcjs.COMPACT_CARD_TITLE_ROW} flex-nowrap gap-1.5`, children: [
|
|
30326
30355
|
reviewState ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, ReviewStateBadge, { state: reviewState }) : null,
|
|
30327
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
30356
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkLH7R56RRcjs.COMPACT_CARD_TITLE, children: primaryText })
|
|
30328
30357
|
] }),
|
|
30329
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
30358
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkLH7R56RRcjs.COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkLH7R56RRcjs.COMPACT_CARD_META_ROW, children: metaParts.map((part, i) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, React92.default.Fragment, { children: [
|
|
30330
30359
|
i > 0 ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "text-ods-text-secondary/40 shrink-0", children: "\xB7" }) : null,
|
|
30331
30360
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "min-w-0 truncate", children: part })
|
|
30332
30361
|
] }, i)) }) }),
|
|
30333
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
30362
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkLH7R56RRcjs.COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkLH7R56RRcjs.COMPACT_CARD_SUMMARY, children: _chunkLH7R56RRcjs.COMPACT_CARD_ROW_FILLER }) })
|
|
30334
30363
|
] }),
|
|
30335
30364
|
href ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "flex shrink-0 items-center self-start h-5 text-ods-text-secondary", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.ExternalLink, { className: "w-3.5 h-3.5" }) }) : null
|
|
30336
30365
|
] });
|
|
30337
30366
|
if (anchorProps) {
|
|
30338
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "a", { ...anchorProps, className: `${
|
|
30367
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "a", { ...anchorProps, className: `${_chunkLH7R56RRcjs.COMPACT_CARD_OUTER} ${_nullishCoalesce(className, () => ( ""))}`, children: body });
|
|
30339
30368
|
}
|
|
30340
30369
|
return href ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
30341
30370
|
"a",
|
|
@@ -30343,10 +30372,10 @@ function GitHubActivityCard({ item, variant = "compact", className, anchorProps
|
|
|
30343
30372
|
href,
|
|
30344
30373
|
target: "_blank",
|
|
30345
30374
|
rel: "noopener noreferrer",
|
|
30346
|
-
className: `${
|
|
30375
|
+
className: `${_chunkLH7R56RRcjs.COMPACT_CARD_OUTER} ${_nullishCoalesce(className, () => ( ""))}`,
|
|
30347
30376
|
children: body
|
|
30348
30377
|
}
|
|
30349
|
-
) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: `${
|
|
30378
|
+
) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: `${_chunkLH7R56RRcjs.COMPACT_CARD_OUTER_STATIC} ${_nullishCoalesce(className, () => ( ""))}`, "aria-label": "No link available", children: body });
|
|
30350
30379
|
}
|
|
30351
30380
|
function GitHubActivityCardSkeleton({ variant = "compact", className }) {
|
|
30352
30381
|
if (variant === "row") {
|
|
@@ -30360,12 +30389,12 @@ function GitHubActivityCardSkeleton({ variant = "compact", className }) {
|
|
|
30360
30389
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "h-3 w-20 bg-ods-bg/60 rounded shrink-0" })
|
|
30361
30390
|
] });
|
|
30362
30391
|
}
|
|
30363
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: `${
|
|
30364
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
30365
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className:
|
|
30366
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
30367
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
30368
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
30392
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: `${_chunkLH7R56RRcjs.COMPACT_CARD_SKELETON_OUTER} ${_nullishCoalesce(className, () => ( ""))}`, children: [
|
|
30393
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkLH7R56RRcjs.COMPACT_CARD_SKELETON_IMAGE_SLOT }),
|
|
30394
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: _chunkLH7R56RRcjs.COMPACT_CARD_TEXT_COL, children: [
|
|
30395
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkLH7R56RRcjs.COMPACT_CARD_TITLE_ROW, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "h-3.5 w-2/3 rounded bg-ods-bg" }) }),
|
|
30396
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkLH7R56RRcjs.COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "h-3 w-1/2 rounded bg-ods-bg/70" }) }),
|
|
30397
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkLH7R56RRcjs.COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkLH7R56RRcjs.COMPACT_CARD_SUMMARY, children: _chunkLH7R56RRcjs.COMPACT_CARD_ROW_FILLER }) })
|
|
30369
30398
|
] }),
|
|
30370
30399
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "flex shrink-0 items-center self-start h-5", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "h-3.5 w-3.5 rounded bg-ods-bg" }) })
|
|
30371
30400
|
] });
|
|
@@ -30389,7 +30418,7 @@ function parseChannelFromUrl(url) {
|
|
|
30389
30418
|
}
|
|
30390
30419
|
function SlackMessageCard({ item, variant = "compact", className, anchorProps }) {
|
|
30391
30420
|
const channel = _nullishCoalesce(_nullishCoalesce(item.channel, () => ( parseChannelFromUrl(item.url))), () => ( null));
|
|
30392
|
-
const dateText =
|
|
30421
|
+
const dateText = _chunkLH7R56RRcjs.formatDateUTC.call(void 0, item.dateUpdated, { fallback: "", timezone: "local" });
|
|
30393
30422
|
if (variant === "row") {
|
|
30394
30423
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: `flex items-center gap-3 min-w-0 ${_nullishCoalesce(className, () => ( ""))}`, children: [
|
|
30395
30424
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLGLPNWS6cjs.SlackIcon, { className: "h-3.5 w-3.5 shrink-0" }),
|
|
@@ -30412,21 +30441,21 @@ function SlackMessageCard({ item, variant = "compact", className, anchorProps })
|
|
|
30412
30441
|
);
|
|
30413
30442
|
}
|
|
30414
30443
|
if (dateText) metaParts.push(/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "whitespace-nowrap", children: dateText }, "date"));
|
|
30415
|
-
const href =
|
|
30444
|
+
const href = _chunkLH7R56RRcjs.safeHref.call(void 0, item.url);
|
|
30416
30445
|
const body = /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
30417
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
30418
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className:
|
|
30419
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
30420
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
30421
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
30446
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkLH7R56RRcjs.COMPACT_CARD_ICON_SLOT, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLGLPNWS6cjs.SlackIcon, { className: "h-5 w-5" }) }),
|
|
30447
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: _chunkLH7R56RRcjs.COMPACT_CARD_TEXT_COL, children: [
|
|
30448
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkLH7R56RRcjs.COMPACT_CARD_TITLE_ROW, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkLH7R56RRcjs.COMPACT_CARD_TITLE, children: item.title }) }),
|
|
30449
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkLH7R56RRcjs.COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkLH7R56RRcjs.COMPACT_CARD_SUMMARY, children: item.preview || _chunkLH7R56RRcjs.COMPACT_CARD_ROW_FILLER }) }),
|
|
30450
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkLH7R56RRcjs.COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkLH7R56RRcjs.COMPACT_CARD_META_ROW, children: metaParts.length > 0 ? metaParts.map((part, i) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, React92.default.Fragment, { children: [
|
|
30422
30451
|
i > 0 ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "text-ods-text-secondary/40 shrink-0", children: "\xB7" }) : null,
|
|
30423
30452
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "min-w-0 truncate", children: part })
|
|
30424
|
-
] }, i)) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
30453
|
+
] }, i)) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkLH7R56RRcjs.COMPACT_CARD_SUMMARY, children: _chunkLH7R56RRcjs.COMPACT_CARD_ROW_FILLER }) }) })
|
|
30425
30454
|
] }),
|
|
30426
30455
|
href ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "flex shrink-0 items-center self-start h-5 text-ods-text-secondary", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.ExternalLink, { className: "w-3.5 h-3.5" }) }) : null
|
|
30427
30456
|
] });
|
|
30428
30457
|
if (anchorProps) {
|
|
30429
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "a", { ...anchorProps, className: `${
|
|
30458
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "a", { ...anchorProps, className: `${_chunkLH7R56RRcjs.COMPACT_CARD_OUTER} ${_nullishCoalesce(className, () => ( ""))}`, children: body });
|
|
30430
30459
|
}
|
|
30431
30460
|
return href ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
30432
30461
|
"a",
|
|
@@ -30434,10 +30463,10 @@ function SlackMessageCard({ item, variant = "compact", className, anchorProps })
|
|
|
30434
30463
|
href,
|
|
30435
30464
|
target: "_blank",
|
|
30436
30465
|
rel: "noopener noreferrer",
|
|
30437
|
-
className: `${
|
|
30466
|
+
className: `${_chunkLH7R56RRcjs.COMPACT_CARD_OUTER} ${_nullishCoalesce(className, () => ( ""))}`,
|
|
30438
30467
|
children: body
|
|
30439
30468
|
}
|
|
30440
|
-
) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: `${
|
|
30469
|
+
) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: `${_chunkLH7R56RRcjs.COMPACT_CARD_OUTER_STATIC} ${_nullishCoalesce(className, () => ( ""))}`, "aria-label": "No link available", children: body });
|
|
30441
30470
|
}
|
|
30442
30471
|
function SlackMessageCardSkeleton({ variant = "compact", className }) {
|
|
30443
30472
|
if (variant === "row") {
|
|
@@ -30449,12 +30478,12 @@ function SlackMessageCardSkeleton({ variant = "compact", className }) {
|
|
|
30449
30478
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "h-3 w-20 bg-ods-bg/60 rounded shrink-0" })
|
|
30450
30479
|
] });
|
|
30451
30480
|
}
|
|
30452
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: `${
|
|
30453
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
30454
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className:
|
|
30455
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
30456
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
30457
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
30481
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: `${_chunkLH7R56RRcjs.COMPACT_CARD_SKELETON_OUTER} ${_nullishCoalesce(className, () => ( ""))}`, children: [
|
|
30482
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkLH7R56RRcjs.COMPACT_CARD_SKELETON_IMAGE_SLOT }),
|
|
30483
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: _chunkLH7R56RRcjs.COMPACT_CARD_TEXT_COL, children: [
|
|
30484
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkLH7R56RRcjs.COMPACT_CARD_TITLE_ROW, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "h-3.5 w-2/3 rounded bg-ods-bg" }) }),
|
|
30485
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkLH7R56RRcjs.COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "h-3 w-5/6 rounded bg-ods-bg/60" }) }),
|
|
30486
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkLH7R56RRcjs.COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "h-3 w-1/3 rounded bg-ods-bg/70" }) })
|
|
30458
30487
|
] }),
|
|
30459
30488
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "flex shrink-0 items-center self-start h-5", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "h-3.5 w-3.5 rounded bg-ods-bg" }) })
|
|
30460
30489
|
] });
|
|
@@ -30485,12 +30514,12 @@ function statusScheme(status) {
|
|
|
30485
30514
|
function HubspotTicketCard({ item, variant = "compact", className, anchorProps }) {
|
|
30486
30515
|
const statusText = _nullishCoalesce(item.statusLabel, () => ( formatToken(item.status)));
|
|
30487
30516
|
const priorityText = formatToken(item.priority);
|
|
30488
|
-
const dateText =
|
|
30517
|
+
const dateText = _chunkLH7R56RRcjs.formatDateUTC.call(void 0, item.dateUpdated, { fallback: "", timezone: "local" });
|
|
30489
30518
|
if (variant === "row") {
|
|
30490
30519
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: `flex items-center gap-3 min-w-0 ${_nullishCoalesce(className, () => ( ""))}`, children: [
|
|
30491
30520
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "text-ods-text-primary text-sm font-medium truncate max-w-[260px] shrink-0", children: item.title }),
|
|
30492
30521
|
item.preview ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "text-ods-text-secondary text-sm flex-1 min-w-0 truncate", children: item.preview }) : null,
|
|
30493
|
-
statusText ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
30522
|
+
statusText ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLH7R56RRcjs.StatusBadge, { text: statusText, variant: "button", colorScheme: statusScheme(item.status) }) : null,
|
|
30494
30523
|
dateText ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "text-ods-text-secondary text-xs w-24 shrink-0 text-right", children: dateText }) : null
|
|
30495
30524
|
] });
|
|
30496
30525
|
}
|
|
@@ -30501,13 +30530,13 @@ function HubspotTicketCard({ item, variant = "compact", className, anchorProps }
|
|
|
30501
30530
|
);
|
|
30502
30531
|
}
|
|
30503
30532
|
if (dateText) metaParts.push(/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "whitespace-nowrap", children: dateText }, "date"));
|
|
30504
|
-
const href =
|
|
30533
|
+
const href = _chunkLH7R56RRcjs.safeHref.call(void 0, item.url);
|
|
30505
30534
|
const body = /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
30506
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className:
|
|
30535
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: _chunkLH7R56RRcjs.COMPACT_CARD_TEXT_COL, children: [
|
|
30507
30536
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "flex flex-wrap items-center gap-1.5 min-w-0", children: [
|
|
30508
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: `${
|
|
30537
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: `${_chunkLH7R56RRcjs.COMPACT_CARD_TITLE} shrink min-w-0`, children: item.title }),
|
|
30509
30538
|
priorityText ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
30510
|
-
|
|
30539
|
+
_chunkLH7R56RRcjs.StatusBadge,
|
|
30511
30540
|
{
|
|
30512
30541
|
text: priorityText,
|
|
30513
30542
|
variant: "button",
|
|
@@ -30516,7 +30545,7 @@ function HubspotTicketCard({ item, variant = "compact", className, anchorProps }
|
|
|
30516
30545
|
}
|
|
30517
30546
|
) : null,
|
|
30518
30547
|
statusText ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
30519
|
-
|
|
30548
|
+
_chunkLH7R56RRcjs.StatusBadge,
|
|
30520
30549
|
{
|
|
30521
30550
|
text: statusText,
|
|
30522
30551
|
variant: "button",
|
|
@@ -30530,7 +30559,7 @@ function HubspotTicketCard({ item, variant = "compact", className, anchorProps }
|
|
|
30530
30559
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "min-w-0 truncate", children: item.customerEmail })
|
|
30531
30560
|
] }) : null,
|
|
30532
30561
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "flex min-w-0", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "line-clamp-4 whitespace-pre-wrap break-words text-[13px] leading-5 text-ods-text-secondary", children: item.preview || /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "italic text-ods-text-secondary/60", children: "No description provided." }) }) }),
|
|
30533
|
-
metaParts.length > 0 ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
30562
|
+
metaParts.length > 0 ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkLH7R56RRcjs.COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkLH7R56RRcjs.COMPACT_CARD_META_ROW, children: metaParts.map((part, i) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, React92.default.Fragment, { children: [
|
|
30534
30563
|
i > 0 ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "text-ods-text-secondary/40 shrink-0", children: "\xB7" }) : null,
|
|
30535
30564
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "min-w-0 truncate", children: part })
|
|
30536
30565
|
] }, i)) }) }) : null
|
|
@@ -30538,7 +30567,7 @@ function HubspotTicketCard({ item, variant = "compact", className, anchorProps }
|
|
|
30538
30567
|
href ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "flex shrink-0 items-center self-start h-5 text-ods-text-secondary", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.ExternalLink, { className: "w-3.5 h-3.5" }) }) : null
|
|
30539
30568
|
] });
|
|
30540
30569
|
if (anchorProps) {
|
|
30541
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "a", { ...anchorProps, className: `${
|
|
30570
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "a", { ...anchorProps, className: `${_chunkLH7R56RRcjs.COMPACT_CARD_OUTER} ${_nullishCoalesce(className, () => ( ""))}`, children: body });
|
|
30542
30571
|
}
|
|
30543
30572
|
return href ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
30544
30573
|
"a",
|
|
@@ -30546,10 +30575,10 @@ function HubspotTicketCard({ item, variant = "compact", className, anchorProps }
|
|
|
30546
30575
|
href,
|
|
30547
30576
|
target: "_blank",
|
|
30548
30577
|
rel: "noopener noreferrer",
|
|
30549
|
-
className: `${
|
|
30578
|
+
className: `${_chunkLH7R56RRcjs.COMPACT_CARD_OUTER} ${_nullishCoalesce(className, () => ( ""))}`,
|
|
30550
30579
|
children: body
|
|
30551
30580
|
}
|
|
30552
|
-
) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: `${
|
|
30581
|
+
) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: `${_chunkLH7R56RRcjs.COMPACT_CARD_OUTER_STATIC} ${_nullishCoalesce(className, () => ( ""))}`, "aria-label": "No link available", children: body });
|
|
30553
30582
|
}
|
|
30554
30583
|
function HubspotTicketCardSkeleton({ variant = "compact", className }) {
|
|
30555
30584
|
if (variant === "row") {
|
|
@@ -30560,8 +30589,8 @@ function HubspotTicketCardSkeleton({ variant = "compact", className }) {
|
|
|
30560
30589
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "h-3 w-20 bg-ods-bg/60 rounded shrink-0" })
|
|
30561
30590
|
] });
|
|
30562
30591
|
}
|
|
30563
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: `${
|
|
30564
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className:
|
|
30592
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: `${_chunkLH7R56RRcjs.COMPACT_CARD_SKELETON_OUTER} ${_nullishCoalesce(className, () => ( ""))}`, children: [
|
|
30593
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: _chunkLH7R56RRcjs.COMPACT_CARD_TEXT_COL, children: [
|
|
30565
30594
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "flex flex-wrap items-center gap-1.5 min-w-0", children: [
|
|
30566
30595
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "h-3.5 w-2/3 rounded bg-ods-bg" }),
|
|
30567
30596
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "h-4 w-12 rounded-full bg-ods-bg/60" }),
|
|
@@ -30574,7 +30603,7 @@ function HubspotTicketCardSkeleton({ variant = "compact", className }) {
|
|
|
30574
30603
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "h-5 w-3/4 rounded bg-ods-bg/60" }),
|
|
30575
30604
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "h-5 w-2/5 rounded bg-ods-bg/60" })
|
|
30576
30605
|
] }),
|
|
30577
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
30606
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkLH7R56RRcjs.COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "h-3 w-1/3 rounded bg-ods-bg/70" }) })
|
|
30578
30607
|
] }),
|
|
30579
30608
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "flex shrink-0 items-center self-start h-5", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "h-3.5 w-3.5 rounded bg-ods-bg" }) })
|
|
30580
30609
|
] });
|
|
@@ -30585,10 +30614,10 @@ function HubspotTicketCardSkeleton({ variant = "compact", className }) {
|
|
|
30585
30614
|
|
|
30586
30615
|
function DataRoomDocCard({ item, className, badgeText, anchorProps }) {
|
|
30587
30616
|
const body = /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
30588
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className:
|
|
30617
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: _chunkLH7R56RRcjs.COMPACT_CARD_TEXT_COL, children: [
|
|
30589
30618
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "flex flex-wrap items-center gap-1.5 min-w-0", children: [
|
|
30590
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: `${
|
|
30591
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
30619
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: `${_chunkLH7R56RRcjs.COMPACT_CARD_TITLE} shrink min-w-0`, children: item.title }),
|
|
30620
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLH7R56RRcjs.StatusBadge, { text: badgeText, variant: "button", colorScheme: "cyan", className: "shrink-0" })
|
|
30592
30621
|
] }),
|
|
30593
30622
|
item.path ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "flex min-w-0 items-center gap-1 text-[11px] leading-4 text-ods-text-secondary", children: [
|
|
30594
30623
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "shrink-0 text-ods-text-secondary/70", children: "Path:" }),
|
|
@@ -30596,16 +30625,16 @@ function DataRoomDocCard({ item, className, badgeText, anchorProps }) {
|
|
|
30596
30625
|
] }) : null,
|
|
30597
30626
|
item.preview ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "flex min-w-0", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "line-clamp-2 whitespace-pre-wrap break-words text-[13px] leading-5 text-ods-text-secondary", children: item.preview }) }) : null
|
|
30598
30627
|
] }),
|
|
30599
|
-
_optionalChain([anchorProps, 'optionalAccess',
|
|
30628
|
+
_optionalChain([anchorProps, 'optionalAccess', _627 => _627.href]) ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "flex shrink-0 items-center self-start h-5 text-ods-text-secondary", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.ExternalLink, { className: "w-3.5 h-3.5" }) }) : null
|
|
30600
30629
|
] });
|
|
30601
30630
|
if (!anchorProps) {
|
|
30602
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: `${
|
|
30631
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: `${_chunkLH7R56RRcjs.COMPACT_CARD_OUTER_STATIC} ${_nullishCoalesce(className, () => ( ""))}`, "aria-label": "No link available", children: body });
|
|
30603
30632
|
}
|
|
30604
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "a", { ...anchorProps, className: `${
|
|
30633
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "a", { ...anchorProps, className: `${_chunkLH7R56RRcjs.COMPACT_CARD_OUTER} ${_nullishCoalesce(className, () => ( ""))}`, children: body });
|
|
30605
30634
|
}
|
|
30606
30635
|
function DataRoomDocCardSkeleton({ className }) {
|
|
30607
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: `${
|
|
30608
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className:
|
|
30636
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: `${_chunkLH7R56RRcjs.COMPACT_CARD_SKELETON_OUTER} ${_nullishCoalesce(className, () => ( ""))}`, children: [
|
|
30637
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: _chunkLH7R56RRcjs.COMPACT_CARD_TEXT_COL, children: [
|
|
30609
30638
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "flex items-center gap-1.5 min-w-0", children: [
|
|
30610
30639
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "h-3.5 w-2/3 rounded bg-ods-bg" }),
|
|
30611
30640
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "h-4 w-16 rounded-full bg-ods-bg/60" })
|
|
@@ -30666,7 +30695,7 @@ function getDefaultOptions() {
|
|
|
30666
30695
|
// node_modules/date-fns/startOfWeek.mjs
|
|
30667
30696
|
function startOfWeek(date, options) {
|
|
30668
30697
|
const defaultOptions2 = getDefaultOptions();
|
|
30669
|
-
const weekStartsOn = _nullishCoalesce(_nullishCoalesce(_nullishCoalesce(_nullishCoalesce(_optionalChain([options, 'optionalAccess',
|
|
30698
|
+
const weekStartsOn = _nullishCoalesce(_nullishCoalesce(_nullishCoalesce(_nullishCoalesce(_optionalChain([options, 'optionalAccess', _628 => _628.weekStartsOn]), () => ( _optionalChain([options, 'optionalAccess', _629 => _629.locale, 'optionalAccess', _630 => _630.options, 'optionalAccess', _631 => _631.weekStartsOn]))), () => ( defaultOptions2.weekStartsOn)), () => ( _optionalChain([defaultOptions2, 'access', _632 => _632.locale, 'optionalAccess', _633 => _633.options, 'optionalAccess', _634 => _634.weekStartsOn]))), () => ( 0));
|
|
30670
30699
|
const _date = toDate(date);
|
|
30671
30700
|
const day = _date.getDay();
|
|
30672
30701
|
const diff = (day < weekStartsOn ? 7 : 0) + day - weekStartsOn;
|
|
@@ -30841,7 +30870,7 @@ var formatDistance = (token, count, options) => {
|
|
|
30841
30870
|
} else {
|
|
30842
30871
|
result = tokenValue.other.replace("{{count}}", count.toString());
|
|
30843
30872
|
}
|
|
30844
|
-
if (_optionalChain([options, 'optionalAccess',
|
|
30873
|
+
if (_optionalChain([options, 'optionalAccess', _635 => _635.addSuffix])) {
|
|
30845
30874
|
if (options.comparison && options.comparison > 0) {
|
|
30846
30875
|
return "in " + result;
|
|
30847
30876
|
} else {
|
|
@@ -30908,15 +30937,15 @@ var formatRelative = (token, _date, _baseDate, _options) => formatRelativeLocale
|
|
|
30908
30937
|
// node_modules/date-fns/locale/_lib/buildLocalizeFn.mjs
|
|
30909
30938
|
function buildLocalizeFn(args) {
|
|
30910
30939
|
return (value, options) => {
|
|
30911
|
-
const context = _optionalChain([options, 'optionalAccess',
|
|
30940
|
+
const context = _optionalChain([options, 'optionalAccess', _636 => _636.context]) ? String(options.context) : "standalone";
|
|
30912
30941
|
let valuesArray;
|
|
30913
30942
|
if (context === "formatting" && args.formattingValues) {
|
|
30914
30943
|
const defaultWidth = args.defaultFormattingWidth || args.defaultWidth;
|
|
30915
|
-
const width = _optionalChain([options, 'optionalAccess',
|
|
30944
|
+
const width = _optionalChain([options, 'optionalAccess', _637 => _637.width]) ? String(options.width) : defaultWidth;
|
|
30916
30945
|
valuesArray = args.formattingValues[width] || args.formattingValues[defaultWidth];
|
|
30917
30946
|
} else {
|
|
30918
30947
|
const defaultWidth = args.defaultWidth;
|
|
30919
|
-
const width = _optionalChain([options, 'optionalAccess',
|
|
30948
|
+
const width = _optionalChain([options, 'optionalAccess', _638 => _638.width]) ? String(options.width) : args.defaultWidth;
|
|
30920
30949
|
valuesArray = args.values[width] || args.values[defaultWidth];
|
|
30921
30950
|
}
|
|
30922
30951
|
const index = args.argumentCallback ? args.argumentCallback(value) : value;
|
|
@@ -31296,7 +31325,7 @@ function getWeekYear(date, options) {
|
|
|
31296
31325
|
const _date = toDate(date);
|
|
31297
31326
|
const year = _date.getFullYear();
|
|
31298
31327
|
const defaultOptions2 = getDefaultOptions();
|
|
31299
|
-
const firstWeekContainsDate = _nullishCoalesce(_nullishCoalesce(_nullishCoalesce(_nullishCoalesce(_optionalChain([options, 'optionalAccess',
|
|
31328
|
+
const firstWeekContainsDate = _nullishCoalesce(_nullishCoalesce(_nullishCoalesce(_nullishCoalesce(_optionalChain([options, 'optionalAccess', _639 => _639.firstWeekContainsDate]), () => ( _optionalChain([options, 'optionalAccess', _640 => _640.locale, 'optionalAccess', _641 => _641.options, 'optionalAccess', _642 => _642.firstWeekContainsDate]))), () => ( defaultOptions2.firstWeekContainsDate)), () => ( _optionalChain([defaultOptions2, 'access', _643 => _643.locale, 'optionalAccess', _644 => _644.options, 'optionalAccess', _645 => _645.firstWeekContainsDate]))), () => ( 1));
|
|
31300
31329
|
const firstWeekOfNextYear = constructFrom(date, 0);
|
|
31301
31330
|
firstWeekOfNextYear.setFullYear(year + 1, 0, firstWeekContainsDate);
|
|
31302
31331
|
firstWeekOfNextYear.setHours(0, 0, 0, 0);
|
|
@@ -31317,7 +31346,7 @@ function getWeekYear(date, options) {
|
|
|
31317
31346
|
// node_modules/date-fns/startOfWeekYear.mjs
|
|
31318
31347
|
function startOfWeekYear(date, options) {
|
|
31319
31348
|
const defaultOptions2 = getDefaultOptions();
|
|
31320
|
-
const firstWeekContainsDate = _nullishCoalesce(_nullishCoalesce(_nullishCoalesce(_nullishCoalesce(_optionalChain([options, 'optionalAccess',
|
|
31349
|
+
const firstWeekContainsDate = _nullishCoalesce(_nullishCoalesce(_nullishCoalesce(_nullishCoalesce(_optionalChain([options, 'optionalAccess', _646 => _646.firstWeekContainsDate]), () => ( _optionalChain([options, 'optionalAccess', _647 => _647.locale, 'optionalAccess', _648 => _648.options, 'optionalAccess', _649 => _649.firstWeekContainsDate]))), () => ( defaultOptions2.firstWeekContainsDate)), () => ( _optionalChain([defaultOptions2, 'access', _650 => _650.locale, 'optionalAccess', _651 => _651.options, 'optionalAccess', _652 => _652.firstWeekContainsDate]))), () => ( 1));
|
|
31321
31350
|
const year = getWeekYear(date, options);
|
|
31322
31351
|
const firstWeek = constructFrom(date, 0);
|
|
31323
31352
|
firstWeek.setFullYear(year, 0, firstWeekContainsDate);
|
|
@@ -32132,9 +32161,9 @@ var doubleQuoteRegExp = /''/g;
|
|
|
32132
32161
|
var unescapedLatinCharacterRegExp = /[a-zA-Z]/;
|
|
32133
32162
|
function format(date, formatStr, options) {
|
|
32134
32163
|
const defaultOptions2 = getDefaultOptions();
|
|
32135
|
-
const locale = _nullishCoalesce(_nullishCoalesce(_optionalChain([options, 'optionalAccess',
|
|
32136
|
-
const firstWeekContainsDate = _nullishCoalesce(_nullishCoalesce(_nullishCoalesce(_nullishCoalesce(_optionalChain([options, 'optionalAccess',
|
|
32137
|
-
const weekStartsOn = _nullishCoalesce(_nullishCoalesce(_nullishCoalesce(_nullishCoalesce(_optionalChain([options, 'optionalAccess',
|
|
32164
|
+
const locale = _nullishCoalesce(_nullishCoalesce(_optionalChain([options, 'optionalAccess', _653 => _653.locale]), () => ( defaultOptions2.locale)), () => ( enUS));
|
|
32165
|
+
const firstWeekContainsDate = _nullishCoalesce(_nullishCoalesce(_nullishCoalesce(_nullishCoalesce(_optionalChain([options, 'optionalAccess', _654 => _654.firstWeekContainsDate]), () => ( _optionalChain([options, 'optionalAccess', _655 => _655.locale, 'optionalAccess', _656 => _656.options, 'optionalAccess', _657 => _657.firstWeekContainsDate]))), () => ( defaultOptions2.firstWeekContainsDate)), () => ( _optionalChain([defaultOptions2, 'access', _658 => _658.locale, 'optionalAccess', _659 => _659.options, 'optionalAccess', _660 => _660.firstWeekContainsDate]))), () => ( 1));
|
|
32166
|
+
const weekStartsOn = _nullishCoalesce(_nullishCoalesce(_nullishCoalesce(_nullishCoalesce(_optionalChain([options, 'optionalAccess', _661 => _661.weekStartsOn]), () => ( _optionalChain([options, 'optionalAccess', _662 => _662.locale, 'optionalAccess', _663 => _663.options, 'optionalAccess', _664 => _664.weekStartsOn]))), () => ( defaultOptions2.weekStartsOn)), () => ( _optionalChain([defaultOptions2, 'access', _665 => _665.locale, 'optionalAccess', _666 => _666.options, 'optionalAccess', _667 => _667.weekStartsOn]))), () => ( 0));
|
|
32138
32167
|
const originalDate = toDate(date);
|
|
32139
32168
|
if (!isValid(originalDate)) {
|
|
32140
32169
|
throw new RangeError("Invalid time value");
|
|
@@ -32175,7 +32204,7 @@ function format(date, formatStr, options) {
|
|
|
32175
32204
|
return parts.map((part) => {
|
|
32176
32205
|
if (!part.isToken) return part.value;
|
|
32177
32206
|
const token = part.value;
|
|
32178
|
-
if (!_optionalChain([options, 'optionalAccess',
|
|
32207
|
+
if (!_optionalChain([options, 'optionalAccess', _668 => _668.useAdditionalWeekYearTokens]) && isProtectedWeekYearToken(token) || !_optionalChain([options, 'optionalAccess', _669 => _669.useAdditionalDayOfYearTokens]) && isProtectedDayOfYearToken(token)) {
|
|
32179
32208
|
warnOrThrowProtectedError(token, formatStr, String(date));
|
|
32180
32209
|
}
|
|
32181
32210
|
const formatter = formatters[token[0]];
|
|
@@ -32197,12 +32226,12 @@ _chunkFIG2RKZFcjs.init_cn.call(void 0, );
|
|
|
32197
32226
|
|
|
32198
32227
|
function ProgramCardSkeleton({ size = "default" }) {
|
|
32199
32228
|
if (size === "sm") {
|
|
32200
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className:
|
|
32201
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
32202
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className:
|
|
32203
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
32204
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
32205
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
32229
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: _chunkLH7R56RRcjs.COMPACT_CARD_SKELETON_OUTER, children: [
|
|
32230
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkLH7R56RRcjs.COMPACT_CARD_SKELETON_IMAGE_SLOT }),
|
|
32231
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: _chunkLH7R56RRcjs.COMPACT_CARD_TEXT_COL, children: [
|
|
32232
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkLH7R56RRcjs.COMPACT_CARD_TITLE_ROW, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "h-3.5 w-3/5 rounded bg-ods-bg" }) }),
|
|
32233
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkLH7R56RRcjs.COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "h-3 w-2/5 rounded bg-ods-bg/70" }) }),
|
|
32234
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkLH7R56RRcjs.COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "h-3 w-11/12 rounded bg-ods-bg/40" }) })
|
|
32206
32235
|
] }),
|
|
32207
32236
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "flex shrink-0 items-center self-start h-5", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "h-3.5 w-3.5 rounded bg-ods-bg" }) })
|
|
32208
32237
|
] });
|
|
@@ -32315,13 +32344,13 @@ function ProgramCard({
|
|
|
32315
32344
|
wholeCardClickable = false,
|
|
32316
32345
|
className
|
|
32317
32346
|
}) {
|
|
32318
|
-
const { target, rel } =
|
|
32347
|
+
const { target, rel } = _chunkLH7R56RRcjs.useEntityCardLink.call(void 0, {
|
|
32319
32348
|
href,
|
|
32320
32349
|
targetPlatform,
|
|
32321
32350
|
target: targetProp,
|
|
32322
32351
|
rel: relProp
|
|
32323
32352
|
});
|
|
32324
|
-
const placeholderUrl =
|
|
32353
|
+
const placeholderUrl = _chunkLH7R56RRcjs.useEntityCardPlaceholder.call(void 0, {
|
|
32325
32354
|
title: item.title,
|
|
32326
32355
|
placeholderUrl: placeholderUrlProp,
|
|
32327
32356
|
aspect: size === "sm" ? "square" : "wide"
|
|
@@ -32343,21 +32372,21 @@ function ProgramCard({
|
|
|
32343
32372
|
let typeMeta = null;
|
|
32344
32373
|
if (config.type === "podcast" && "duration_seconds" in item && !isScheduled) {
|
|
32345
32374
|
const dur = item.duration_seconds;
|
|
32346
|
-
if (typeof dur === "number" && dur > 0) typeMeta =
|
|
32375
|
+
if (typeof dur === "number" && dur > 0) typeMeta = _chunkLH7R56RRcjs.formatDurationCompact.call(void 0, dur);
|
|
32347
32376
|
} else if (config.type === "event" && "location_name" in item) {
|
|
32348
32377
|
const loc = item.location_name;
|
|
32349
32378
|
if (typeof loc === "string" && loc.trim().length > 0) typeMeta = loc;
|
|
32350
32379
|
} else if (config.type === "webinar" && "start_at" in item) {
|
|
32351
32380
|
const w = item;
|
|
32352
|
-
const time =
|
|
32353
|
-
const dur =
|
|
32381
|
+
const time = _chunkLH7R56RRcjs.formatTimeWithTimezone.call(void 0, w.start_at, null);
|
|
32382
|
+
const dur = _chunkLH7R56RRcjs.formatDurationFromRange.call(void 0, w.start_at, w.end_at);
|
|
32354
32383
|
typeMeta = dur ? `${time} \xB7 ${dur}` : time;
|
|
32355
32384
|
}
|
|
32356
|
-
const subtitleParts = [itemDate2, typeMeta, _optionalChain([config, 'access',
|
|
32385
|
+
const subtitleParts = [itemDate2, typeMeta, _optionalChain([config, 'access', _670 => _670.labels, 'optionalAccess', _671 => _671.singular])].filter(
|
|
32357
32386
|
(s) => typeof s === "string" && s.length > 0
|
|
32358
32387
|
);
|
|
32359
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "a", { href, target, rel, className: _chunkFIG2RKZFcjs.cn.call(void 0,
|
|
32360
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className:
|
|
32388
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "a", { href, target, rel, className: _chunkFIG2RKZFcjs.cn.call(void 0, _chunkLH7R56RRcjs.COMPACT_CARD_OUTER, className), children: [
|
|
32389
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: _chunkLH7R56RRcjs.COMPACT_CARD_IMAGE_SLOT, children: [
|
|
32361
32390
|
compactCover ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
32362
32391
|
_chunkXL4V2PYGcjs.next_image_default,
|
|
32363
32392
|
{
|
|
@@ -32371,10 +32400,10 @@ function ProgramCard({
|
|
|
32371
32400
|
) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "flex h-full w-full items-center justify-center text-ods-accent", children: config.type === "podcast" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.Play, { className: "w-4 h-4" }) : config.type === "webinar" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.Video, { className: "w-4 h-4" }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.Clock, { className: "w-4 h-4" }) }),
|
|
32372
32401
|
config.type === "podcast" && !isScheduled && compactCover && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "absolute inset-0 flex items-center justify-center bg-black/30", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.Play, { className: "w-4 h-4 text-white", fill: "white" }) })
|
|
32373
32402
|
] }),
|
|
32374
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className:
|
|
32375
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
32376
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
32377
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
32403
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: _chunkLH7R56RRcjs.COMPACT_CARD_TEXT_COL, children: [
|
|
32404
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkLH7R56RRcjs.COMPACT_CARD_TITLE_ROW, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkFIG2RKZFcjs.cn.call(void 0, _chunkLH7R56RRcjs.COMPACT_CARD_TITLE, "font-['Azeret_Mono']"), children: item.title }) }),
|
|
32405
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkLH7R56RRcjs.COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "truncate text-[11px] leading-4 text-[var(--color-accent-primary)]", children: subtitleParts.join(" \xB7 ") }) }),
|
|
32406
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkLH7R56RRcjs.COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkLH7R56RRcjs.COMPACT_CARD_SUMMARY, children: item.description || _chunkLH7R56RRcjs.COMPACT_CARD_ROW_FILLER }) })
|
|
32378
32407
|
] }),
|
|
32379
32408
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "flex shrink-0 items-center self-start h-5 text-ods-text-secondary", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.ExternalLink, { className: "w-3.5 h-3.5" }) })
|
|
32380
32409
|
] });
|
|
@@ -32385,7 +32414,7 @@ function ProgramCard({
|
|
|
32385
32414
|
if (config.type === "podcast" && "duration_seconds" in item && !isScheduled) {
|
|
32386
32415
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
32387
32416
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.Clock, { className: "w-4 h-4 text-ods-text-secondary" }),
|
|
32388
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "font-['DM_Sans'] text-ods-text-secondary", children:
|
|
32417
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "font-['DM_Sans'] text-ods-text-secondary", children: _chunkLH7R56RRcjs.formatDurationCompact.call(void 0, item.duration_seconds) })
|
|
32389
32418
|
] });
|
|
32390
32419
|
}
|
|
32391
32420
|
if (config.type === "event" && "location_name" in item) {
|
|
@@ -32393,11 +32422,11 @@ function ProgramCard({
|
|
|
32393
32422
|
}
|
|
32394
32423
|
if (config.type === "webinar" && "start_at" in item) {
|
|
32395
32424
|
const webinarItem = item;
|
|
32396
|
-
const duration =
|
|
32425
|
+
const duration = _chunkLH7R56RRcjs.formatDurationFromRange.call(void 0, webinarItem.start_at, webinarItem.end_at);
|
|
32397
32426
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
32398
32427
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.Video, { className: "w-4 h-4 text-ods-text-secondary" }),
|
|
32399
32428
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "font-['DM_Sans'] text-ods-text-secondary", children: [
|
|
32400
|
-
|
|
32429
|
+
_chunkLH7R56RRcjs.formatTimeWithTimezone.call(void 0, webinarItem.start_at, null),
|
|
32401
32430
|
duration && ` \xB7 ${duration}`
|
|
32402
32431
|
] }),
|
|
32403
32432
|
webinarItem.timezone && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "font-['DM_Sans'] text-xs text-ods-text-secondary", children: [
|
|
@@ -32439,7 +32468,7 @@ function ProgramCard({
|
|
|
32439
32468
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex-1", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "font-['DM_Sans'] text-sm md:text-base text-ods-text-secondary leading-relaxed line-clamp-3 min-h-[4.5rem]", children: item.description }) })
|
|
32440
32469
|
] }),
|
|
32441
32470
|
hosts.length > 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "md:text-right", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex flex-wrap md:justify-end gap-2", children: hosts.map((host, index) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
32442
|
-
|
|
32471
|
+
_chunkLH7R56RRcjs.SquareAvatar,
|
|
32443
32472
|
{
|
|
32444
32473
|
variant: "round",
|
|
32445
32474
|
src: host.avatar || void 0,
|
|
@@ -32510,31 +32539,31 @@ function ProgramCard({
|
|
|
32510
32539
|
|
|
32511
32540
|
|
|
32512
32541
|
function CampaignCardAdmin({ campaign, className, anchorProps }) {
|
|
32513
|
-
const goalsCount = _optionalChain([campaign, 'access',
|
|
32542
|
+
const goalsCount = _optionalChain([campaign, 'access', _672 => _672.goals, 'optionalAccess', _673 => _673.length]) || 0;
|
|
32514
32543
|
const innerChildren = /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
32515
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
32516
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className:
|
|
32517
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
32518
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
32544
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkLH7R56RRcjs.COMPACT_CARD_ICON_SLOT, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.Megaphone, { className: "h-5 w-5" }) }),
|
|
32545
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: _chunkLH7R56RRcjs.COMPACT_CARD_TEXT_COL, children: [
|
|
32546
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkLH7R56RRcjs.COMPACT_CARD_TITLE_ROW, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkLH7R56RRcjs.COMPACT_CARD_TITLE, children: campaign.name }) }),
|
|
32547
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkLH7R56RRcjs.COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkLH7R56RRcjs.COMPACT_CARD_SUBTITLE, children: [
|
|
32519
32548
|
campaign.start_date ? formatDateShort(campaign.start_date) : null,
|
|
32520
32549
|
goalsCount > 0 ? `${goalsCount} goal${goalsCount !== 1 ? "s" : ""}` : null,
|
|
32521
32550
|
"Marketing campaign"
|
|
32522
32551
|
].filter(Boolean).join(" \xB7 ") }) }),
|
|
32523
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
32552
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkLH7R56RRcjs.COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkLH7R56RRcjs.COMPACT_CARD_SUMMARY, children: campaign.description || _chunkLH7R56RRcjs.COMPACT_CARD_ROW_FILLER }) })
|
|
32524
32553
|
] })
|
|
32525
32554
|
] });
|
|
32526
32555
|
if (anchorProps) {
|
|
32527
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "a", { ...anchorProps, className: `${
|
|
32556
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "a", { ...anchorProps, className: `${_chunkLH7R56RRcjs.COMPACT_CARD_OUTER} ${_nullishCoalesce(className, () => ( ""))}`, children: innerChildren });
|
|
32528
32557
|
}
|
|
32529
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: `${
|
|
32558
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: `${_chunkLH7R56RRcjs.COMPACT_CARD_OUTER_STATIC} ${_nullishCoalesce(className, () => ( ""))}`, "aria-label": "No link available", children: innerChildren });
|
|
32530
32559
|
}
|
|
32531
32560
|
function CampaignCardAdminSkeleton({ className }) {
|
|
32532
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: `${
|
|
32533
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
32534
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className:
|
|
32535
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
32536
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
32537
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
32561
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: `${_chunkLH7R56RRcjs.COMPACT_CARD_SKELETON_OUTER} ${_nullishCoalesce(className, () => ( ""))}`, children: [
|
|
32562
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkLH7R56RRcjs.COMPACT_CARD_SKELETON_IMAGE_SLOT }),
|
|
32563
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: _chunkLH7R56RRcjs.COMPACT_CARD_TEXT_COL, children: [
|
|
32564
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkLH7R56RRcjs.COMPACT_CARD_TITLE_ROW, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "h-3.5 w-3/5 rounded bg-ods-bg" }) }),
|
|
32565
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkLH7R56RRcjs.COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "h-3 w-1/2 rounded bg-ods-bg/70" }) }),
|
|
32566
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkLH7R56RRcjs.COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "h-3 w-11/12 rounded bg-ods-bg/40" }) })
|
|
32538
32567
|
] })
|
|
32539
32568
|
] });
|
|
32540
32569
|
}
|
|
@@ -32543,14 +32572,14 @@ function CampaignCardAdminSkeleton({ className }) {
|
|
|
32543
32572
|
|
|
32544
32573
|
|
|
32545
32574
|
function GenericEntityCard({ item, className, anchorProps }) {
|
|
32546
|
-
const href =
|
|
32547
|
-
const dateText =
|
|
32575
|
+
const href = _chunkLH7R56RRcjs.safeHref.call(void 0, item.url);
|
|
32576
|
+
const dateText = _chunkLH7R56RRcjs.formatDateUTC.call(void 0, item.dateUpdated, { fallback: "", timezone: "local" });
|
|
32548
32577
|
const body = /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
32549
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className:
|
|
32578
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: _chunkLH7R56RRcjs.COMPACT_CARD_TEXT_COL, children: [
|
|
32550
32579
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "flex flex-wrap items-center gap-1.5 min-w-0", children: [
|
|
32551
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: `${
|
|
32580
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: `${_chunkLH7R56RRcjs.COMPACT_CARD_TITLE} shrink min-w-0`, children: item.title }),
|
|
32552
32581
|
item.badge ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
32553
|
-
|
|
32582
|
+
_chunkLH7R56RRcjs.StatusBadge,
|
|
32554
32583
|
{
|
|
32555
32584
|
text: item.badge.text,
|
|
32556
32585
|
variant: "button",
|
|
@@ -32568,18 +32597,18 @@ function GenericEntityCard({ item, className, anchorProps }) {
|
|
|
32568
32597
|
] }),
|
|
32569
32598
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "text-ods-text-primary font-medium truncate", children: f.value })
|
|
32570
32599
|
] }, i)) }) : null,
|
|
32571
|
-
dateText ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
32600
|
+
dateText ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkLH7R56RRcjs.COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkLH7R56RRcjs.COMPACT_CARD_META_ROW, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "whitespace-nowrap", children: dateText }) }) }) : null
|
|
32572
32601
|
] }),
|
|
32573
32602
|
href ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "flex shrink-0 items-center self-start h-5 text-ods-text-secondary", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.ExternalLink, { className: "w-3.5 h-3.5" }) }) : null
|
|
32574
32603
|
] });
|
|
32575
32604
|
if (anchorProps) {
|
|
32576
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "a", { ...anchorProps, className: `${
|
|
32605
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "a", { ...anchorProps, className: `${_chunkLH7R56RRcjs.COMPACT_CARD_OUTER} ${_nullishCoalesce(className, () => ( ""))}`, children: body });
|
|
32577
32606
|
}
|
|
32578
|
-
return href ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "a", { href, className: `${
|
|
32607
|
+
return href ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "a", { href, className: `${_chunkLH7R56RRcjs.COMPACT_CARD_OUTER} ${_nullishCoalesce(className, () => ( ""))}`, children: body }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: `${_chunkLH7R56RRcjs.COMPACT_CARD_OUTER_STATIC} ${_nullishCoalesce(className, () => ( ""))}`, "aria-label": "No link available", children: body });
|
|
32579
32608
|
}
|
|
32580
32609
|
function GenericEntityCardSkeleton({ className }) {
|
|
32581
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: `${
|
|
32582
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className:
|
|
32610
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: `${_chunkLH7R56RRcjs.COMPACT_CARD_SKELETON_OUTER} ${_nullishCoalesce(className, () => ( ""))}`, children: [
|
|
32611
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: _chunkLH7R56RRcjs.COMPACT_CARD_TEXT_COL, children: [
|
|
32583
32612
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "flex items-center gap-1.5 min-w-0", children: [
|
|
32584
32613
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "h-3.5 w-2/3 rounded bg-ods-bg" }),
|
|
32585
32614
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "h-4 w-16 rounded-full bg-ods-bg/60" })
|
|
@@ -32648,7 +32677,7 @@ function CardMedia({
|
|
|
32648
32677
|
}) {
|
|
32649
32678
|
if (imageSrc) {
|
|
32650
32679
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "relative block size-10 shrink-0", children: [
|
|
32651
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "absolute inset-0 flex items-center justify-center rounded-sm border border-ods-border bg-ods-bg text-xs font-medium text-ods-text-primary", children:
|
|
32680
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "absolute inset-0 flex items-center justify-center rounded-sm border border-ods-border bg-ods-bg text-xs font-medium text-ods-text-primary", children: _chunkLH7R56RRcjs.getFirstLastInitials.call(void 0, imageAlt) || "?" }),
|
|
32652
32681
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
32653
32682
|
"img",
|
|
32654
32683
|
{
|
|
@@ -32693,7 +32722,7 @@ function MingoInfoCard({
|
|
|
32693
32722
|
status ? (
|
|
32694
32723
|
// Reuse the shared Tag palette (single source of truth for colours)
|
|
32695
32724
|
// without rendering Tag's `<div>` — span-only for `<p>` validity.
|
|
32696
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkFIG2RKZFcjs.cn.call(void 0,
|
|
32725
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkFIG2RKZFcjs.cn.call(void 0, _chunkLH7R56RRcjs.tagVariants.call(void 0, { variant: _nullishCoalesce(status.variant, () => ( "success")) }), "shrink-0"), children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "truncate uppercase tracking-[-0.28px]", children: status.label }) })
|
|
32697
32726
|
) : null
|
|
32698
32727
|
] });
|
|
32699
32728
|
const contentClass = _chunkFIG2RKZFcjs.cn.call(void 0,
|
|
@@ -32711,7 +32740,7 @@ function MingoInfoCard({
|
|
|
32711
32740
|
children: [
|
|
32712
32741
|
isAnchor ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "a", { ...anchorProps, className: _chunkFIG2RKZFcjs.cn.call(void 0, contentClass, "no-underline"), children: content }) : onClick ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "button", { type: "button", onClick, className: contentClass, children: content }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: contentClass, children: content }),
|
|
32713
32742
|
hasMenu && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
32714
|
-
|
|
32743
|
+
_chunkLH7R56RRcjs.ActionsMenuDropdown,
|
|
32715
32744
|
{
|
|
32716
32745
|
groups: menuGroups,
|
|
32717
32746
|
triggerAriaLabel: menuAriaLabel,
|
|
@@ -32769,7 +32798,7 @@ function GitHubChatCard({
|
|
|
32769
32798
|
const title = kind === "pr_review" ? display.replace(/^by\s+/i, "").trim() || "Reviewer" : display;
|
|
32770
32799
|
const status = kind === "pr_review" && reviewState ? { label: reviewStateLabel(reviewState), variant: reviewStateToVariant(reviewState) } : { label: kindLabel(kind), variant: "grey" };
|
|
32771
32800
|
const idLabel = formatActivityId(chatRef.id, kind);
|
|
32772
|
-
const dateText =
|
|
32801
|
+
const dateText = _chunkLH7R56RRcjs.formatDateUTC.call(void 0, _nullishCoalesce(chatRef.date, () => ( null)), { fallback: "", timezone: "local" });
|
|
32773
32802
|
const description = [idLabel, dateText].filter(Boolean).join(" \xB7 ") || void 0;
|
|
32774
32803
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
32775
32804
|
MingoInfoCard,
|
|
@@ -32778,7 +32807,7 @@ function GitHubChatCard({
|
|
|
32778
32807
|
description,
|
|
32779
32808
|
icon: githubKindIcon(kind),
|
|
32780
32809
|
status,
|
|
32781
|
-
anchorProps:
|
|
32810
|
+
anchorProps: _chunkLH7R56RRcjs.buildAnchorProps.call(void 0, chatRef.url, isNewTab),
|
|
32782
32811
|
menuGroups: cardMenuGroups(chatRef.url, discuss),
|
|
32783
32812
|
menuAriaLabel: "Activity actions"
|
|
32784
32813
|
}
|
|
@@ -32797,8 +32826,8 @@ function cardMenuGroups(href, discuss, openDetails) {
|
|
|
32797
32826
|
if (href) {
|
|
32798
32827
|
items.push({
|
|
32799
32828
|
id: "open-details",
|
|
32800
|
-
label: _nullishCoalesce(_optionalChain([openDetails, 'optionalAccess',
|
|
32801
|
-
icon: _nullishCoalesce(_optionalChain([openDetails, 'optionalAccess',
|
|
32829
|
+
label: _nullishCoalesce(_optionalChain([openDetails, 'optionalAccess', _674 => _674.label]), () => ( "Open Details")),
|
|
32830
|
+
icon: _nullishCoalesce(_optionalChain([openDetails, 'optionalAccess', _675 => _675.icon]), () => ( /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkC6ASEPZLcjs.EyeIcon, { size: 20 }))),
|
|
32802
32831
|
// Main row → open the entity (same tab, soft Link nav).
|
|
32803
32832
|
href,
|
|
32804
32833
|
// Trailing 40px ↗ side-button → open in a new tab.
|
|
@@ -32828,8 +32857,8 @@ function HubspotTicketChatCard({
|
|
|
32828
32857
|
isNewTab,
|
|
32829
32858
|
discuss
|
|
32830
32859
|
}) {
|
|
32831
|
-
const status = typeof _optionalChain([chatRef, 'access',
|
|
32832
|
-
const statusLabel = typeof _optionalChain([chatRef, 'access',
|
|
32860
|
+
const status = typeof _optionalChain([chatRef, 'access', _676 => _676.metadata, 'optionalAccess', _677 => _677.status]) === "string" ? chatRef.metadata.status : void 0;
|
|
32861
|
+
const statusLabel = typeof _optionalChain([chatRef, 'access', _678 => _678.metadata, 'optionalAccess', _679 => _679.statusLabel]) === "string" ? chatRef.metadata.statusLabel : void 0;
|
|
32833
32862
|
const statusText = _nullishCoalesce(statusLabel, () => ( formatStatusToken(status)));
|
|
32834
32863
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
32835
32864
|
MingoInfoCard,
|
|
@@ -32838,7 +32867,7 @@ function HubspotTicketChatCard({
|
|
|
32838
32867
|
description: _nullishCoalesce(chatRef.preview, () => ( void 0)),
|
|
32839
32868
|
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkC6ASEPZLcjs.TagIcon, { size: 24 }),
|
|
32840
32869
|
status: statusText ? { label: statusText, variant: hubspotStatusToVariant(status) } : void 0,
|
|
32841
|
-
anchorProps:
|
|
32870
|
+
anchorProps: _chunkLH7R56RRcjs.buildAnchorProps.call(void 0, chatRef.url, isNewTab),
|
|
32842
32871
|
menuGroups: cardMenuGroups(chatRef.url, discuss, {
|
|
32843
32872
|
label: "Open Ticket Details",
|
|
32844
32873
|
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkC6ASEPZLcjs.TagIcon, { size: 20 })
|
|
@@ -32852,7 +32881,7 @@ function SlackChatCard({
|
|
|
32852
32881
|
isNewTab,
|
|
32853
32882
|
discuss
|
|
32854
32883
|
}) {
|
|
32855
|
-
const channelName = typeof _optionalChain([chatRef, 'access',
|
|
32884
|
+
const channelName = typeof _optionalChain([chatRef, 'access', _680 => _680.metadata, 'optionalAccess', _681 => _681.channelName]) === "string" ? chatRef.metadata.channelName.trim() : void 0;
|
|
32856
32885
|
const channelPretty = channelName ? channelName.startsWith("#") ? channelName : `#${channelName}` : void 0;
|
|
32857
32886
|
const title = channelPretty ? `${chatRef.title} \xB7 ${channelPretty}` : chatRef.title;
|
|
32858
32887
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -32861,7 +32890,7 @@ function SlackChatCard({
|
|
|
32861
32890
|
title,
|
|
32862
32891
|
description: _nullishCoalesce(chatRef.preview, () => ( void 0)),
|
|
32863
32892
|
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkC6ASEPZLcjs.SlackLogoGreyIcon, { size: 24 }),
|
|
32864
|
-
anchorProps:
|
|
32893
|
+
anchorProps: _chunkLH7R56RRcjs.buildAnchorProps.call(void 0, chatRef.url, isNewTab),
|
|
32865
32894
|
menuGroups: cardMenuGroups(chatRef.url, discuss),
|
|
32866
32895
|
menuAriaLabel: "Message actions"
|
|
32867
32896
|
}
|
|
@@ -32872,7 +32901,7 @@ function DataRoomDocChatCard({
|
|
|
32872
32901
|
isNewTab,
|
|
32873
32902
|
discuss
|
|
32874
32903
|
}) {
|
|
32875
|
-
const badgeText = chatRef.sourceRepo ?
|
|
32904
|
+
const badgeText = chatRef.sourceRepo ? _chunkLH7R56RRcjs.getSourceLabel.call(void 0, chatRef.sourceRepo) : "Document";
|
|
32876
32905
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
32877
32906
|
MingoInfoCard,
|
|
32878
32907
|
{
|
|
@@ -32880,7 +32909,7 @@ function DataRoomDocChatCard({
|
|
|
32880
32909
|
description: _nullishCoalesce(chatRef.preview, () => ( void 0)),
|
|
32881
32910
|
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkC6ASEPZLcjs.FileContentIcon, { size: 24 }),
|
|
32882
32911
|
status: { label: badgeText, variant: "grey" },
|
|
32883
|
-
anchorProps:
|
|
32912
|
+
anchorProps: _chunkLH7R56RRcjs.buildAnchorProps.call(void 0, chatRef.url, isNewTab),
|
|
32884
32913
|
menuGroups: cardMenuGroups(chatRef.url, discuss),
|
|
32885
32914
|
menuAriaLabel: "Document actions"
|
|
32886
32915
|
}
|
|
@@ -32892,14 +32921,14 @@ function GenericFinancialChatCard({
|
|
|
32892
32921
|
isNewTab,
|
|
32893
32922
|
discuss
|
|
32894
32923
|
}) {
|
|
32895
|
-
const subtitle = typeof _optionalChain([chatRef, 'access',
|
|
32924
|
+
const subtitle = typeof _optionalChain([chatRef, 'access', _682 => _682.metadata, 'optionalAccess', _683 => _683.subtitle]) === "string" ? chatRef.metadata.subtitle : void 0;
|
|
32896
32925
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
32897
32926
|
MingoInfoCard,
|
|
32898
32927
|
{
|
|
32899
32928
|
title: chatRef.title,
|
|
32900
32929
|
description: subtitle,
|
|
32901
32930
|
icon,
|
|
32902
|
-
anchorProps:
|
|
32931
|
+
anchorProps: _chunkLH7R56RRcjs.buildAnchorProps.call(void 0, chatRef.url, isNewTab),
|
|
32903
32932
|
menuGroups: cardMenuGroups(chatRef.url, discuss),
|
|
32904
32933
|
menuAriaLabel: "Document actions"
|
|
32905
32934
|
}
|
|
@@ -32919,7 +32948,7 @@ function ChatCardWithDiscuss({
|
|
|
32919
32948
|
displayAction,
|
|
32920
32949
|
children
|
|
32921
32950
|
}) {
|
|
32922
|
-
const { Icon: SourceIcon, label: sourceLabel } =
|
|
32951
|
+
const { Icon: SourceIcon, label: sourceLabel } = _chunkLH7R56RRcjs.resolveSourceIcon.call(void 0, {
|
|
32923
32952
|
sourceRepo: chatRef.sourceRepo,
|
|
32924
32953
|
documentType: chatRef.type
|
|
32925
32954
|
});
|
|
@@ -32961,12 +32990,12 @@ function ProductReleaseChatCard({
|
|
|
32961
32990
|
discuss
|
|
32962
32991
|
}) {
|
|
32963
32992
|
const releaseProps = buildProps(item);
|
|
32964
|
-
const status = _optionalChain([item, 'optionalAccess',
|
|
32993
|
+
const status = _optionalChain([item, 'optionalAccess', _684 => _684.version]) ? { label: String(item.version), variant: "grey" } : { label: "Release", variant: "grey" };
|
|
32965
32994
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
32966
32995
|
EntityMingoCard,
|
|
32967
32996
|
{
|
|
32968
|
-
title: _nullishCoalesce(_optionalChain([item, 'optionalAccess',
|
|
32969
|
-
description: _optionalChain([item, 'optionalAccess',
|
|
32997
|
+
title: _nullishCoalesce(_optionalChain([item, 'optionalAccess', _685 => _685.title]), () => ( "")),
|
|
32998
|
+
description: _optionalChain([item, 'optionalAccess', _686 => _686.summary]) || releaseProps.formattedDate || void 0,
|
|
32970
32999
|
cover: releaseProps.coverImage || void 0,
|
|
32971
33000
|
fallbackIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkC6ASEPZLcjs.Rocket02Icon, { size: 24 }),
|
|
32972
33001
|
status,
|
|
@@ -32983,17 +33012,17 @@ function CampaignChatCard({
|
|
|
32983
33012
|
isNewTab,
|
|
32984
33013
|
discuss
|
|
32985
33014
|
}) {
|
|
32986
|
-
const goalsCount = Array.isArray(_optionalChain([item, 'optionalAccess',
|
|
33015
|
+
const goalsCount = Array.isArray(_optionalChain([item, 'optionalAccess', _687 => _687.goals])) ? item.goals.length : 0;
|
|
32987
33016
|
const meta = [
|
|
32988
|
-
_optionalChain([item, 'optionalAccess',
|
|
33017
|
+
_optionalChain([item, 'optionalAccess', _688 => _688.start_date]) ? formatDateShort(item.start_date) : null,
|
|
32989
33018
|
goalsCount > 0 ? `${goalsCount} goal${goalsCount !== 1 ? "s" : ""}` : null,
|
|
32990
33019
|
"Marketing campaign"
|
|
32991
33020
|
].filter(Boolean).join(" \xB7 ");
|
|
32992
33021
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
32993
33022
|
EntityMingoCard,
|
|
32994
33023
|
{
|
|
32995
|
-
title: _nullishCoalesce(_optionalChain([item, 'optionalAccess',
|
|
32996
|
-
description: meta || _optionalChain([item, 'optionalAccess',
|
|
33024
|
+
title: _nullishCoalesce(_optionalChain([item, 'optionalAccess', _689 => _689.name]), () => ( "")),
|
|
33025
|
+
description: meta || _optionalChain([item, 'optionalAccess', _690 => _690.description]) || void 0,
|
|
32997
33026
|
fallbackIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkC6ASEPZLcjs.Megaphone01Icon, { size: 24 }),
|
|
32998
33027
|
chatRef,
|
|
32999
33028
|
isNewTab,
|
|
@@ -33022,7 +33051,7 @@ function EntityMingoCard({
|
|
|
33022
33051
|
imageAlt: typeof title === "string" ? title : void 0,
|
|
33023
33052
|
icon: fallbackIcon,
|
|
33024
33053
|
status,
|
|
33025
|
-
anchorProps:
|
|
33054
|
+
anchorProps: _chunkLH7R56RRcjs.buildAnchorProps.call(void 0, chatRef.url, isNewTab),
|
|
33026
33055
|
menuGroups: cardMenuGroups(chatRef.url, discuss),
|
|
33027
33056
|
menuAriaLabel
|
|
33028
33057
|
}
|
|
@@ -33046,14 +33075,14 @@ function BlogChatCard({
|
|
|
33046
33075
|
hasEmbeddedVideo,
|
|
33047
33076
|
discuss
|
|
33048
33077
|
}) {
|
|
33049
|
-
const category = Array.isArray(_optionalChain([item, 'optionalAccess',
|
|
33078
|
+
const category = Array.isArray(_optionalChain([item, 'optionalAccess', _691 => _691.categories])) ? _optionalChain([item, 'access', _692 => _692.categories, 'access', _693 => _693.find, 'call', _694 => _694((c) => c && c.name), 'optionalAccess', _695 => _695.name]) : void 0;
|
|
33050
33079
|
const status = hasEmbeddedVideo ? { label: "Video", variant: "primary" } : category ? { label: category, variant: "grey" } : void 0;
|
|
33051
33080
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
33052
33081
|
EntityMingoCard,
|
|
33053
33082
|
{
|
|
33054
|
-
title: _nullishCoalesce(_optionalChain([item, 'optionalAccess',
|
|
33055
|
-
description: _nullishCoalesce(_optionalChain([item, 'optionalAccess',
|
|
33056
|
-
cover: entityCover(_optionalChain([item, 'optionalAccess',
|
|
33083
|
+
title: _nullishCoalesce(_optionalChain([item, 'optionalAccess', _696 => _696.title]), () => ( "")),
|
|
33084
|
+
description: _nullishCoalesce(_optionalChain([item, 'optionalAccess', _697 => _697.summary]), () => ( void 0)),
|
|
33085
|
+
cover: entityCover(_optionalChain([item, 'optionalAccess', _698 => _698.featured_image]), ogPlaceholder),
|
|
33057
33086
|
fallbackIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkC6ASEPZLcjs.NewspaperIcon, { size: 24 }),
|
|
33058
33087
|
status,
|
|
33059
33088
|
chatRef,
|
|
@@ -33070,13 +33099,13 @@ function CaseStudyChatCard({
|
|
|
33070
33099
|
ogPlaceholder,
|
|
33071
33100
|
discuss
|
|
33072
33101
|
}) {
|
|
33073
|
-
const meta = [_optionalChain([item, 'optionalAccess',
|
|
33102
|
+
const meta = [_optionalChain([item, 'optionalAccess', _699 => _699.msp, 'optionalAccess', _700 => _700.name]), _optionalChain([item, 'optionalAccess', _701 => _701.user, 'optionalAccess', _702 => _702.full_name])].filter(Boolean).join(" \xB7 ");
|
|
33074
33103
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
33075
33104
|
EntityMingoCard,
|
|
33076
33105
|
{
|
|
33077
|
-
title: _nullishCoalesce(_optionalChain([item, 'optionalAccess',
|
|
33078
|
-
description: _optionalChain([item, 'optionalAccess',
|
|
33079
|
-
cover: entityCover(_optionalChain([item, 'optionalAccess',
|
|
33106
|
+
title: _nullishCoalesce(_optionalChain([item, 'optionalAccess', _703 => _703.title]), () => ( "")),
|
|
33107
|
+
description: _optionalChain([item, 'optionalAccess', _704 => _704.summary]) || meta || void 0,
|
|
33108
|
+
cover: entityCover(_optionalChain([item, 'optionalAccess', _705 => _705.featured_image]), ogPlaceholder),
|
|
33080
33109
|
fallbackIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkC6ASEPZLcjs.TrophyIcon, { size: 24 }),
|
|
33081
33110
|
status: { label: "Case study", variant: "grey" },
|
|
33082
33111
|
chatRef,
|
|
@@ -33093,13 +33122,13 @@ function CustomerInterviewChatCard({
|
|
|
33093
33122
|
ogPlaceholder,
|
|
33094
33123
|
discuss
|
|
33095
33124
|
}) {
|
|
33096
|
-
const meta = [_optionalChain([item, 'optionalAccess',
|
|
33125
|
+
const meta = [_optionalChain([item, 'optionalAccess', _706 => _706.user, 'optionalAccess', _707 => _707.full_name]), _optionalChain([item, 'optionalAccess', _708 => _708.msp, 'optionalAccess', _709 => _709.name])].filter(Boolean).join(" \xB7 ");
|
|
33097
33126
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
33098
33127
|
EntityMingoCard,
|
|
33099
33128
|
{
|
|
33100
|
-
title: _nullishCoalesce(_optionalChain([item, 'optionalAccess',
|
|
33101
|
-
description: _optionalChain([item, 'optionalAccess',
|
|
33102
|
-
cover: entityCover(_optionalChain([item, 'optionalAccess',
|
|
33129
|
+
title: _nullishCoalesce(_optionalChain([item, 'optionalAccess', _710 => _710.title]), () => ( "")),
|
|
33130
|
+
description: _optionalChain([item, 'optionalAccess', _711 => _711.video_summary]) || meta || void 0,
|
|
33131
|
+
cover: entityCover(_optionalChain([item, 'optionalAccess', _712 => _712.featured_image]), ogPlaceholder),
|
|
33103
33132
|
fallbackIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkC6ASEPZLcjs.MicrophoneIcon, { size: 24 }),
|
|
33104
33133
|
status: { label: "Interview", variant: "grey" },
|
|
33105
33134
|
chatRef,
|
|
@@ -33116,13 +33145,13 @@ function InvestorUpdateChatCard({
|
|
|
33116
33145
|
ogPlaceholder,
|
|
33117
33146
|
discuss
|
|
33118
33147
|
}) {
|
|
33119
|
-
const title = _optionalChain([item, 'optionalAccess',
|
|
33148
|
+
const title = _optionalChain([item, 'optionalAccess', _713 => _713.title]) || `Update #${_nullishCoalesce(_optionalChain([item, 'optionalAccess', _714 => _714.update_number]), () => ( "?"))}`;
|
|
33120
33149
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
33121
33150
|
EntityMingoCard,
|
|
33122
33151
|
{
|
|
33123
33152
|
title,
|
|
33124
|
-
description: _optionalChain([item, 'optionalAccess',
|
|
33125
|
-
cover: entityCover(_optionalChain([item, 'optionalAccess',
|
|
33153
|
+
description: _optionalChain([item, 'optionalAccess', _715 => _715.strategic_update]) || _optionalChain([item, 'optionalAccess', _716 => _716.content]) || formatInvestorUpdatePeriod(_optionalChain([item, 'optionalAccess', _717 => _717.period_start]), _optionalChain([item, 'optionalAccess', _718 => _718.period_end])) || void 0,
|
|
33154
|
+
cover: entityCover(_optionalChain([item, 'optionalAccess', _719 => _719.featured_image]), ogPlaceholder),
|
|
33126
33155
|
fallbackIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkC6ASEPZLcjs.PresentationLineIcon, { size: 24 }),
|
|
33127
33156
|
status: { label: "Investor update", variant: "grey" },
|
|
33128
33157
|
chatRef,
|
|
@@ -33139,12 +33168,12 @@ function OnboardingGuideChatCard({
|
|
|
33139
33168
|
ogPlaceholder,
|
|
33140
33169
|
discuss
|
|
33141
33170
|
}) {
|
|
33142
|
-
const cover = _nullishCoalesce(_nullishCoalesce(entityCover(_optionalChain([item, 'optionalAccess',
|
|
33171
|
+
const cover = _nullishCoalesce(_nullishCoalesce(entityCover(_optionalChain([item, 'optionalAccess', _720 => _720.featured_image])), () => ( entityCover(_optionalChain([item, 'optionalAccess', _721 => _721.main_video_thumbnail])))), () => ( entityCover(_optionalChain([item, 'optionalAccess', _722 => _722.og_image_url]), ogPlaceholder)));
|
|
33143
33172
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
33144
33173
|
EntityMingoCard,
|
|
33145
33174
|
{
|
|
33146
|
-
title: _nullishCoalesce(_optionalChain([item, 'optionalAccess',
|
|
33147
|
-
description: _nullishCoalesce(_nullishCoalesce(_optionalChain([item, 'optionalAccess',
|
|
33175
|
+
title: _nullishCoalesce(_optionalChain([item, 'optionalAccess', _723 => _723.title]), () => ( "")),
|
|
33176
|
+
description: _nullishCoalesce(_nullishCoalesce(_optionalChain([item, 'optionalAccess', _724 => _724.summary]), () => ( _optionalChain([item, 'optionalAccess', _725 => _725.description]))), () => ( void 0)),
|
|
33148
33177
|
cover,
|
|
33149
33178
|
fallbackIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkC6ASEPZLcjs.CompassIcon, { size: 24 }),
|
|
33150
33179
|
status: { label: "Guide", variant: "grey" },
|
|
@@ -33165,25 +33194,25 @@ function ProgramChatCard({
|
|
|
33165
33194
|
discuss
|
|
33166
33195
|
}) {
|
|
33167
33196
|
const icon = configKey === "webinar" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkC6ASEPZLcjs.PresentationBarIcon, { size: 24 }) : configKey === "event" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkC6ASEPZLcjs.CalendarIcon, { size: 24 }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkC6ASEPZLcjs.MicrophoneIcon, { size: 24 });
|
|
33168
|
-
const isScheduled = _optionalChain([item, 'optionalAccess',
|
|
33197
|
+
const isScheduled = _optionalChain([item, 'optionalAccess', _726 => _726.status]) === "scheduled";
|
|
33169
33198
|
let typeMeta;
|
|
33170
|
-
if (configKey === "podcast" && typeof _optionalChain([item, 'optionalAccess',
|
|
33171
|
-
typeMeta =
|
|
33172
|
-
} else if (configKey === "event" && typeof _optionalChain([item, 'optionalAccess',
|
|
33199
|
+
if (configKey === "podcast" && typeof _optionalChain([item, 'optionalAccess', _727 => _727.duration_seconds]) === "number" && item.duration_seconds > 0 && !isScheduled) {
|
|
33200
|
+
typeMeta = _chunkLH7R56RRcjs.formatDurationCompact.call(void 0, item.duration_seconds);
|
|
33201
|
+
} else if (configKey === "event" && typeof _optionalChain([item, 'optionalAccess', _728 => _728.location_name]) === "string" && item.location_name.trim().length > 0) {
|
|
33173
33202
|
typeMeta = item.location_name;
|
|
33174
|
-
} else if (configKey === "webinar" && _optionalChain([item, 'optionalAccess',
|
|
33175
|
-
const time =
|
|
33176
|
-
const dur =
|
|
33203
|
+
} else if (configKey === "webinar" && _optionalChain([item, 'optionalAccess', _729 => _729.start_at])) {
|
|
33204
|
+
const time = _chunkLH7R56RRcjs.formatTimeWithTimezone.call(void 0, item.start_at, null);
|
|
33205
|
+
const dur = _chunkLH7R56RRcjs.formatDurationFromRange.call(void 0, item.start_at, item.end_at);
|
|
33177
33206
|
typeMeta = dur ? `${time} \xB7 ${dur}` : time;
|
|
33178
33207
|
}
|
|
33179
|
-
const itemDate =
|
|
33208
|
+
const itemDate = _chunkLH7R56RRcjs.formatDateUTC.call(void 0, _nullishCoalesce(_optionalChain([item, 'optionalAccess', _730 => _730.date]), () => ( null)), { fallback: "", timezone: "local" });
|
|
33180
33209
|
const meta = [itemDate, typeMeta].filter(Boolean).join(" \xB7 ");
|
|
33181
33210
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
33182
33211
|
EntityMingoCard,
|
|
33183
33212
|
{
|
|
33184
|
-
title: _nullishCoalesce(_optionalChain([item, 'optionalAccess',
|
|
33185
|
-
description: meta || _optionalChain([item, 'optionalAccess',
|
|
33186
|
-
cover: entityCover(_optionalChain([item, 'optionalAccess',
|
|
33213
|
+
title: _nullishCoalesce(_optionalChain([item, 'optionalAccess', _731 => _731.title]), () => ( "")),
|
|
33214
|
+
description: meta || _optionalChain([item, 'optionalAccess', _732 => _732.description]) || void 0,
|
|
33215
|
+
cover: entityCover(_optionalChain([item, 'optionalAccess', _733 => _733.cover_url]), ogPlaceholder),
|
|
33187
33216
|
fallbackIcon: icon,
|
|
33188
33217
|
status: { label, variant: "grey" },
|
|
33189
33218
|
chatRef,
|
|
@@ -33200,10 +33229,10 @@ function RoadmapChatCard({
|
|
|
33200
33229
|
cardType,
|
|
33201
33230
|
discuss
|
|
33202
33231
|
}) {
|
|
33203
|
-
const logoUrl = typeof _optionalChain([item, 'optionalAccess',
|
|
33204
|
-
const useTypeIcon = cardType === "internal_task" || !logoUrl && _optionalChain([item, 'optionalAccess',
|
|
33232
|
+
const logoUrl = typeof _optionalChain([item, 'optionalAccess', _734 => _734.icon]) === "string" && item.icon.startsWith("http") ? item.icon : void 0;
|
|
33233
|
+
const useTypeIcon = cardType === "internal_task" || !logoUrl && _optionalChain([item, 'optionalAccess', _735 => _735.customItemId]) != null;
|
|
33205
33234
|
const defaultIcon = cardType === "delivery_item" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkC6ASEPZLcjs.TruckFastIcon, { size: 24 }) : cardType === "internal_task" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkC6ASEPZLcjs.CheckSquareIcon, { size: 24 }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkC6ASEPZLcjs.MapIcon, { size: 24 });
|
|
33206
|
-
const icon = useTypeIcon ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TaskTypeIcon, { customItemId: _optionalChain([item, 'optionalAccess',
|
|
33235
|
+
const icon = useTypeIcon ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TaskTypeIcon, { customItemId: _optionalChain([item, 'optionalAccess', _736 => _736.customItemId]), className: "size-6" }) : logoUrl ? (
|
|
33207
33236
|
// Contained (not full-bleed) so the integration logo keeps its aspect
|
|
33208
33237
|
// ratio inside the bordered icon box — matches RoadmapCard.
|
|
33209
33238
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "img", { src: logoUrl, alt: "", className: "size-6 object-contain" })
|
|
@@ -33211,10 +33240,10 @@ function RoadmapChatCard({
|
|
|
33211
33240
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
33212
33241
|
EntityMingoCard,
|
|
33213
33242
|
{
|
|
33214
|
-
title: _nullishCoalesce(_optionalChain([item, 'optionalAccess',
|
|
33215
|
-
description: _nullishCoalesce(_optionalChain([item, 'optionalAccess',
|
|
33243
|
+
title: _nullishCoalesce(_optionalChain([item, 'optionalAccess', _737 => _737.title]), () => ( "")),
|
|
33244
|
+
description: _nullishCoalesce(_optionalChain([item, 'optionalAccess', _738 => _738.description]), () => ( void 0)),
|
|
33216
33245
|
fallbackIcon: icon,
|
|
33217
|
-
status: statusPill(_optionalChain([item, 'optionalAccess',
|
|
33246
|
+
status: statusPill(_optionalChain([item, 'optionalAccess', _739 => _739.status])),
|
|
33218
33247
|
chatRef,
|
|
33219
33248
|
isNewTab,
|
|
33220
33249
|
discuss,
|
|
@@ -33300,7 +33329,7 @@ function programRegistryEntries() {
|
|
|
33300
33329
|
discuss: opts.discuss,
|
|
33301
33330
|
configKey: cfg.configKey,
|
|
33302
33331
|
label: cfg.configKey.charAt(0).toUpperCase() + cfg.configKey.slice(1),
|
|
33303
|
-
ogPlaceholder: _nullishCoalesce(_optionalChain([opts, 'optionalAccess',
|
|
33332
|
+
ogPlaceholder: _nullishCoalesce(_optionalChain([opts, 'optionalAccess', _740 => _740.extras, 'optionalAccess', _741 => _741.buildOgPlaceholderUrl, 'optionalCall', _742 => _742(_nullishCoalesce(_optionalChain([item, 'optionalAccess', _743 => _743.title]), () => ( "")))]), () => ( null))
|
|
33304
33333
|
}
|
|
33305
33334
|
)
|
|
33306
33335
|
};
|
|
@@ -33446,8 +33475,8 @@ var CHAT_CARD_REGISTRY = {
|
|
|
33446
33475
|
chatRef,
|
|
33447
33476
|
isNewTab: opts.isNewTab,
|
|
33448
33477
|
discuss: opts.discuss,
|
|
33449
|
-
ogPlaceholder: _nullishCoalesce(_optionalChain([opts, 'optionalAccess',
|
|
33450
|
-
hasEmbeddedVideo: _optionalChain([chatRef, 'access',
|
|
33478
|
+
ogPlaceholder: _nullishCoalesce(_optionalChain([opts, 'optionalAccess', _744 => _744.extras, 'optionalAccess', _745 => _745.buildOgPlaceholderUrl, 'optionalCall', _746 => _746(_nullishCoalesce(_optionalChain([item, 'optionalAccess', _747 => _747.title]), () => ( "")))]), () => ( null)),
|
|
33479
|
+
hasEmbeddedVideo: _optionalChain([chatRef, 'access', _748 => _748.metadata, 'optionalAccess', _749 => _749.hasEmbeddedVideo]) === true
|
|
33451
33480
|
}
|
|
33452
33481
|
)
|
|
33453
33482
|
},
|
|
@@ -33464,7 +33493,7 @@ var CHAT_CARD_REGISTRY = {
|
|
|
33464
33493
|
chatRef,
|
|
33465
33494
|
isNewTab: opts.isNewTab,
|
|
33466
33495
|
discuss: opts.discuss,
|
|
33467
|
-
ogPlaceholder: _nullishCoalesce(_optionalChain([opts, 'optionalAccess',
|
|
33496
|
+
ogPlaceholder: _nullishCoalesce(_optionalChain([opts, 'optionalAccess', _750 => _750.extras, 'optionalAccess', _751 => _751.buildOgPlaceholderUrl, 'optionalCall', _752 => _752(_nullishCoalesce(_optionalChain([item, 'optionalAccess', _753 => _753.title]), () => ( "")))]), () => ( null))
|
|
33468
33497
|
}
|
|
33469
33498
|
)
|
|
33470
33499
|
},
|
|
@@ -33481,7 +33510,7 @@ var CHAT_CARD_REGISTRY = {
|
|
|
33481
33510
|
chatRef,
|
|
33482
33511
|
isNewTab: opts.isNewTab,
|
|
33483
33512
|
discuss: opts.discuss,
|
|
33484
|
-
ogPlaceholder: _nullishCoalesce(_optionalChain([opts, 'optionalAccess',
|
|
33513
|
+
ogPlaceholder: _nullishCoalesce(_optionalChain([opts, 'optionalAccess', _754 => _754.extras, 'optionalAccess', _755 => _755.buildOgPlaceholderUrl, 'optionalCall', _756 => _756(_nullishCoalesce(_optionalChain([item, 'optionalAccess', _757 => _757.title]), () => ( "")))]), () => ( null))
|
|
33485
33514
|
}
|
|
33486
33515
|
)
|
|
33487
33516
|
},
|
|
@@ -33492,7 +33521,7 @@ var CHAT_CARD_REGISTRY = {
|
|
|
33492
33521
|
bareInline: true,
|
|
33493
33522
|
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, ProductReleaseCardSkeleton, { size: "sm" }),
|
|
33494
33523
|
render: (item, chatRef, opts) => {
|
|
33495
|
-
const builder = _nullishCoalesce(_optionalChain([opts, 'optionalAccess',
|
|
33524
|
+
const builder = _nullishCoalesce(_optionalChain([opts, 'optionalAccess', _758 => _758.extras, 'optionalAccess', _759 => _759.buildProductReleaseCardProps]), () => ( defaultBuildProductReleaseCardProps));
|
|
33496
33525
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
33497
33526
|
ProductReleaseChatCard,
|
|
33498
33527
|
{
|
|
@@ -33519,7 +33548,7 @@ var CHAT_CARD_REGISTRY = {
|
|
|
33519
33548
|
chatRef,
|
|
33520
33549
|
isNewTab: opts.isNewTab,
|
|
33521
33550
|
discuss: opts.discuss,
|
|
33522
|
-
ogPlaceholder: _nullishCoalesce(_optionalChain([opts, 'optionalAccess',
|
|
33551
|
+
ogPlaceholder: _nullishCoalesce(_optionalChain([opts, 'optionalAccess', _760 => _760.extras, 'optionalAccess', _761 => _761.buildOgPlaceholderUrl, 'optionalCall', _762 => _762(_nullishCoalesce(_optionalChain([item, 'optionalAccess', _763 => _763.title]), () => ( "")))]), () => ( null))
|
|
33523
33552
|
}
|
|
33524
33553
|
)
|
|
33525
33554
|
},
|
|
@@ -33530,7 +33559,7 @@ var CHAT_CARD_REGISTRY = {
|
|
|
33530
33559
|
bareInline: true,
|
|
33531
33560
|
// "Display" affordance (verbatim guide body) instead of "Ask".
|
|
33532
33561
|
displayAction: true,
|
|
33533
|
-
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
33562
|
+
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLH7R56RRcjs.OnboardingGuideCardSkeleton, { size: "sm" }),
|
|
33534
33563
|
render: (item, chatRef, opts) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
33535
33564
|
OnboardingGuideChatCard,
|
|
33536
33565
|
{
|
|
@@ -33538,7 +33567,7 @@ var CHAT_CARD_REGISTRY = {
|
|
|
33538
33567
|
chatRef,
|
|
33539
33568
|
isNewTab: opts.isNewTab,
|
|
33540
33569
|
discuss: opts.discuss,
|
|
33541
|
-
ogPlaceholder: _nullishCoalesce(_optionalChain([opts, 'optionalAccess',
|
|
33570
|
+
ogPlaceholder: _nullishCoalesce(_optionalChain([opts, 'optionalAccess', _764 => _764.extras, 'optionalAccess', _765 => _765.buildOgPlaceholderUrl, 'optionalCall', _766 => _766(_nullishCoalesce(_optionalChain([item, 'optionalAccess', _767 => _767.title]), () => ( "")))]), () => ( null))
|
|
33542
33571
|
}
|
|
33543
33572
|
)
|
|
33544
33573
|
},
|
|
@@ -33550,7 +33579,7 @@ var CHAT_CARD_REGISTRY = {
|
|
|
33550
33579
|
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, CampaignCardAdminSkeleton, {}),
|
|
33551
33580
|
// No public viewer — synthesize the hub-internal admin URL post-fetch
|
|
33552
33581
|
// so the wrapper + isNewTab computation see the actual destination.
|
|
33553
|
-
fallbackHref: (item) => _optionalChain([item, 'optionalAccess',
|
|
33582
|
+
fallbackHref: (item) => _optionalChain([item, 'optionalAccess', _768 => _768.id]) ? `/admin/campaigns/${encodeURIComponent(item.id)}` : null,
|
|
33554
33583
|
render: (item, chatRef, opts) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
33555
33584
|
CampaignChatCard,
|
|
33556
33585
|
{
|
|
@@ -33576,12 +33605,12 @@ function ChatCardNavWrap({
|
|
|
33576
33605
|
const onClickCapture = (e) => {
|
|
33577
33606
|
if (!href) return;
|
|
33578
33607
|
const targetEl = e.target;
|
|
33579
|
-
if (_optionalChain([targetEl, 'optionalAccess',
|
|
33580
|
-
if (!_optionalChain([targetEl, 'optionalAccess',
|
|
33608
|
+
if (_optionalChain([targetEl, 'optionalAccess', _769 => _769.closest, 'optionalCall', _770 => _770("button")])) return;
|
|
33609
|
+
if (!_optionalChain([targetEl, 'optionalAccess', _771 => _771.closest, 'optionalCall', _772 => _772("a")])) return;
|
|
33581
33610
|
const handled = handleChatNavClick(e, runtime, { href, path, targetPlatform }, router.push);
|
|
33582
33611
|
if (!handled) return;
|
|
33583
33612
|
e.stopPropagation();
|
|
33584
|
-
if (!isNewTab && _optionalChain([panel, 'optionalAccess',
|
|
33613
|
+
if (!isNewTab && _optionalChain([panel, 'optionalAccess', _773 => _773.closeChat])) panel.closeChat();
|
|
33585
33614
|
};
|
|
33586
33615
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "contents", onClickCapture, children });
|
|
33587
33616
|
}
|
|
@@ -33595,7 +33624,7 @@ function ChatCardLoader({
|
|
|
33595
33624
|
}) {
|
|
33596
33625
|
const runtime = _chunkPC7YOZ4Icjs.useRequiredChatRuntime.call(void 0, );
|
|
33597
33626
|
const resolvedChatRef = React92.default.useMemo(() => {
|
|
33598
|
-
const cta =
|
|
33627
|
+
const cta = _chunkLH7R56RRcjs.resolveSourceRowCTA.call(void 0,
|
|
33599
33628
|
{
|
|
33600
33629
|
sourceRepo: chatRef.sourceRepo,
|
|
33601
33630
|
documentType: chatRef.type,
|
|
@@ -33603,11 +33632,11 @@ function ChatCardLoader({
|
|
|
33603
33632
|
title: chatRef.title,
|
|
33604
33633
|
externalUrl: chatRef.url,
|
|
33605
33634
|
targetPlatform: chatRef.targetPlatform,
|
|
33606
|
-
path: typeof _optionalChain([chatRef, 'access',
|
|
33635
|
+
path: typeof _optionalChain([chatRef, 'access', _774 => _774.metadata, 'optionalAccess', _775 => _775.path]) === "string" ? chatRef.metadata.path : null
|
|
33607
33636
|
},
|
|
33608
|
-
|
|
33637
|
+
_chunkLH7R56RRcjs.sourceRowCtxFromRuntime.call(void 0, runtime, { baseRoute, chipBasePlatform })
|
|
33609
33638
|
);
|
|
33610
|
-
const finalHref = cta.href ?
|
|
33639
|
+
const finalHref = cta.href ? _chunkLH7R56RRcjs.resolveHrefForRuntime.call(void 0, cta.href, runtime) : null;
|
|
33611
33640
|
return {
|
|
33612
33641
|
...chatRef,
|
|
33613
33642
|
url: _nullishCoalesce(finalHref, () => ( chatRef.url)),
|
|
@@ -33617,15 +33646,15 @@ function ChatCardLoader({
|
|
|
33617
33646
|
const entry = CHAT_CARD_REGISTRY[resolvedChatRef.type];
|
|
33618
33647
|
const fetchEntry = entry && entry.mode === "fetch" ? entry : null;
|
|
33619
33648
|
const { item, isLoading } = useChatCardItem(
|
|
33620
|
-
_nullishCoalesce(_optionalChain([fetchEntry, 'optionalAccess',
|
|
33649
|
+
_nullishCoalesce(_optionalChain([fetchEntry, 'optionalAccess', _776 => _776.contentRefType]), () => ( "")),
|
|
33621
33650
|
fetchEntry ? resolvedChatRef.id : ""
|
|
33622
33651
|
);
|
|
33623
33652
|
if (!entry) return null;
|
|
33624
33653
|
const finalChatRef = fetchEntry && !resolvedChatRef.url && item && fetchEntry.fallbackHref ? {
|
|
33625
33654
|
...resolvedChatRef,
|
|
33626
|
-
url:
|
|
33655
|
+
url: _chunkLH7R56RRcjs.safeHref.call(void 0, fetchEntry.fallbackHref(item))
|
|
33627
33656
|
} : resolvedChatRef;
|
|
33628
|
-
const isNewTab =
|
|
33657
|
+
const isNewTab = _chunkLH7R56RRcjs.computeIsNewTab.call(void 0, runtime, finalChatRef.url, _nullishCoalesce(finalChatRef.targetPlatform, () => ( null)));
|
|
33629
33658
|
const useDisplay = !!entry.displayAction && !!onDisplay;
|
|
33630
33659
|
const discussFn = useDisplay ? onDisplay : onDiscuss;
|
|
33631
33660
|
const discuss = discussFn ? {
|
|
@@ -33648,7 +33677,7 @@ function ChatCardLoader({
|
|
|
33648
33677
|
isNewTab,
|
|
33649
33678
|
discuss
|
|
33650
33679
|
};
|
|
33651
|
-
const path = typeof _optionalChain([finalChatRef, 'access',
|
|
33680
|
+
const path = typeof _optionalChain([finalChatRef, 'access', _777 => _777.metadata, 'optionalAccess', _778 => _778.path]) === "string" ? finalChatRef.metadata.path : null;
|
|
33652
33681
|
const navWrap = (children) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
33653
33682
|
ChatCardNavWrap,
|
|
33654
33683
|
{
|
|
@@ -34034,7 +34063,7 @@ function useJetStreamDialogSubscription({
|
|
|
34034
34063
|
const lifecycle = _chunkPXXS27EEcjs.startConnectionLifecycle.call(void 0, {
|
|
34035
34064
|
conn: sharedConn,
|
|
34036
34065
|
wsUrl,
|
|
34037
|
-
onBeforeReconnect: () => _optionalChain([onBeforeReconnectRef, 'access',
|
|
34066
|
+
onBeforeReconnect: () => _optionalChain([onBeforeReconnectRef, 'access', _779 => _779.current, 'optionalCall', _780 => _780()]),
|
|
34038
34067
|
backoff: reconnectionBackoffRef.current,
|
|
34039
34068
|
getFreshUrl: () => getNatsWsUrlRef.current(),
|
|
34040
34069
|
// JetStream emits 'error' for protocol-level failures (e.g. -ERR Permissions
|
|
@@ -34049,7 +34078,7 @@ function useJetStreamDialogSubscription({
|
|
|
34049
34078
|
setReconnectionCount((c) => c + 1);
|
|
34050
34079
|
}
|
|
34051
34080
|
hadConnectionBeforeRef.current = true;
|
|
34052
|
-
_optionalChain([onConnectRef, 'access',
|
|
34081
|
+
_optionalChain([onConnectRef, 'access', _781 => _781.current, 'optionalCall', _782 => _782()]);
|
|
34053
34082
|
}
|
|
34054
34083
|
if (status === "error") {
|
|
34055
34084
|
console.warn("[JetStream] NATS protocol error:", evt.data);
|
|
@@ -34059,7 +34088,7 @@ function useJetStreamDialogSubscription({
|
|
|
34059
34088
|
setIsConnected(false);
|
|
34060
34089
|
setIsSubscribed(false);
|
|
34061
34090
|
tearDownSubscription();
|
|
34062
|
-
_optionalChain([onDisconnectRef, 'access',
|
|
34091
|
+
_optionalChain([onDisconnectRef, 'access', _783 => _783.current, 'optionalCall', _784 => _784()]);
|
|
34063
34092
|
}
|
|
34064
34093
|
}
|
|
34065
34094
|
});
|
|
@@ -34138,7 +34167,7 @@ function useJetStreamDialogSubscription({
|
|
|
34138
34167
|
}
|
|
34139
34168
|
subscriptionRef.current = handle;
|
|
34140
34169
|
setIsSubscribed(true);
|
|
34141
|
-
_optionalChain([onSubscribedRef, 'access',
|
|
34170
|
+
_optionalChain([onSubscribedRef, 'access', _785 => _785.current, 'optionalCall', _786 => _786()]);
|
|
34142
34171
|
} catch (e27) {
|
|
34143
34172
|
if (!cancelled) {
|
|
34144
34173
|
setIsSubscribed(false);
|
|
@@ -34251,20 +34280,20 @@ function useNatsDialogSubscription({
|
|
|
34251
34280
|
const tearDownSubscriptions = () => {
|
|
34252
34281
|
subscriptionRefs.current.forEach((sub) => {
|
|
34253
34282
|
try {
|
|
34254
|
-
_optionalChain([sub, 'optionalAccess',
|
|
34283
|
+
_optionalChain([sub, 'optionalAccess', _787 => _787.unsubscribe, 'call', _788 => _788()]);
|
|
34255
34284
|
} catch (e29) {
|
|
34256
34285
|
}
|
|
34257
34286
|
});
|
|
34258
34287
|
subscriptionRefs.current.clear();
|
|
34259
34288
|
lastSubscribedDialogIdRef.current = null;
|
|
34260
|
-
_optionalChain([abortControllerRef, 'access',
|
|
34289
|
+
_optionalChain([abortControllerRef, 'access', _789 => _789.current, 'optionalAccess', _790 => _790.abort, 'call', _791 => _791()]);
|
|
34261
34290
|
abortControllerRef.current = null;
|
|
34262
34291
|
};
|
|
34263
34292
|
const isDisconnectStatus = (status) => status === "closed" || status === "disconnected";
|
|
34264
34293
|
const lifecycle = _chunkPXXS27EEcjs.startConnectionLifecycle.call(void 0, {
|
|
34265
34294
|
conn: sharedConn,
|
|
34266
34295
|
wsUrl,
|
|
34267
|
-
onBeforeReconnect: () => _optionalChain([onBeforeReconnectRef, 'access',
|
|
34296
|
+
onBeforeReconnect: () => _optionalChain([onBeforeReconnectRef, 'access', _792 => _792.current, 'optionalCall', _793 => _793()]),
|
|
34268
34297
|
backoff: reconnectionBackoffRef.current,
|
|
34269
34298
|
getFreshUrl: () => getNatsWsUrlRef.current(),
|
|
34270
34299
|
shouldRetryOn: isDisconnectStatus,
|
|
@@ -34275,7 +34304,7 @@ function useNatsDialogSubscription({
|
|
|
34275
34304
|
setReconnectionCount((c) => c + 1);
|
|
34276
34305
|
}
|
|
34277
34306
|
hadConnectionBeforeRef.current = true;
|
|
34278
|
-
_optionalChain([onConnectRef, 'access',
|
|
34307
|
+
_optionalChain([onConnectRef, 'access', _794 => _794.current, 'optionalCall', _795 => _795()]);
|
|
34279
34308
|
}
|
|
34280
34309
|
if (status === "error") {
|
|
34281
34310
|
console.warn("[NATS] protocol error:", evt.data);
|
|
@@ -34285,7 +34314,7 @@ function useNatsDialogSubscription({
|
|
|
34285
34314
|
setIsConnected(false);
|
|
34286
34315
|
setIsSubscribed(false);
|
|
34287
34316
|
tearDownSubscriptions();
|
|
34288
|
-
_optionalChain([onDisconnectRef, 'access',
|
|
34317
|
+
_optionalChain([onDisconnectRef, 'access', _796 => _796.current, 'optionalCall', _797 => _797()]);
|
|
34289
34318
|
}
|
|
34290
34319
|
}
|
|
34291
34320
|
});
|
|
@@ -34316,13 +34345,13 @@ function useNatsDialogSubscription({
|
|
|
34316
34345
|
setIsSubscribed(false);
|
|
34317
34346
|
subscriptionRefs.current.forEach((sub) => {
|
|
34318
34347
|
try {
|
|
34319
|
-
_optionalChain([sub, 'optionalAccess',
|
|
34348
|
+
_optionalChain([sub, 'optionalAccess', _798 => _798.unsubscribe, 'call', _799 => _799()]);
|
|
34320
34349
|
} catch (e30) {
|
|
34321
34350
|
}
|
|
34322
34351
|
});
|
|
34323
34352
|
subscriptionRefs.current.clear();
|
|
34324
34353
|
lastSubscribedDialogIdRef.current = null;
|
|
34325
|
-
_optionalChain([abortControllerRef, 'access',
|
|
34354
|
+
_optionalChain([abortControllerRef, 'access', _800 => _800.current, 'optionalAccess', _801 => _801.abort, 'call', _802 => _802()]);
|
|
34326
34355
|
abortControllerRef.current = null;
|
|
34327
34356
|
}
|
|
34328
34357
|
return;
|
|
@@ -34334,12 +34363,12 @@ function useNatsDialogSubscription({
|
|
|
34334
34363
|
if (subscriptionRefs.current.size > 0) {
|
|
34335
34364
|
subscriptionRefs.current.forEach((sub) => {
|
|
34336
34365
|
try {
|
|
34337
|
-
_optionalChain([sub, 'optionalAccess',
|
|
34366
|
+
_optionalChain([sub, 'optionalAccess', _803 => _803.unsubscribe, 'call', _804 => _804()]);
|
|
34338
34367
|
} catch (e31) {
|
|
34339
34368
|
}
|
|
34340
34369
|
});
|
|
34341
34370
|
subscriptionRefs.current.clear();
|
|
34342
|
-
_optionalChain([abortControllerRef, 'access',
|
|
34371
|
+
_optionalChain([abortControllerRef, 'access', _805 => _805.current, 'optionalAccess', _806 => _806.abort, 'call', _807 => _807()]);
|
|
34343
34372
|
}
|
|
34344
34373
|
abortControllerRef.current = new AbortController();
|
|
34345
34374
|
const abort = abortControllerRef.current;
|
|
@@ -34371,7 +34400,7 @@ function useNatsDialogSubscription({
|
|
|
34371
34400
|
});
|
|
34372
34401
|
lastSubscribedDialogIdRef.current = dialogId;
|
|
34373
34402
|
setIsSubscribed(true);
|
|
34374
|
-
_optionalChain([onSubscribedRef, 'access',
|
|
34403
|
+
_optionalChain([onSubscribedRef, 'access', _808 => _808.current, 'optionalCall', _809 => _809()]);
|
|
34375
34404
|
};
|
|
34376
34405
|
if (isConnectedRef.current) {
|
|
34377
34406
|
createSubscriptions();
|
|
@@ -34381,7 +34410,7 @@ function useNatsDialogSubscription({
|
|
|
34381
34410
|
abort.abort();
|
|
34382
34411
|
subscriptionRefs.current.forEach((sub) => {
|
|
34383
34412
|
try {
|
|
34384
|
-
_optionalChain([sub, 'optionalAccess',
|
|
34413
|
+
_optionalChain([sub, 'optionalAccess', _810 => _810.unsubscribe, 'call', _811 => _811()]);
|
|
34385
34414
|
} catch (e33) {
|
|
34386
34415
|
}
|
|
34387
34416
|
});
|
|
@@ -34422,7 +34451,7 @@ function useNatsDialogSubscription({
|
|
|
34422
34451
|
});
|
|
34423
34452
|
lastSubscribedDialogIdRef.current = dialogId2;
|
|
34424
34453
|
setIsSubscribed(true);
|
|
34425
|
-
_optionalChain([onSubscribedRef, 'access',
|
|
34454
|
+
_optionalChain([onSubscribedRef, 'access', _812 => _812.current, 'optionalCall', _813 => _813()]);
|
|
34426
34455
|
} else if (subscriptionRefs.current.size > 0) {
|
|
34427
34456
|
setIsSubscribed(true);
|
|
34428
34457
|
}
|
|
@@ -34430,10 +34459,10 @@ function useNatsDialogSubscription({
|
|
|
34430
34459
|
return { isConnected, isSubscribed, reconnectionCount };
|
|
34431
34460
|
}
|
|
34432
34461
|
function buildNatsWsUrl(apiBaseUrl, options) {
|
|
34433
|
-
const path = _optionalChain([options, 'optionalAccess',
|
|
34462
|
+
const path = _optionalChain([options, 'optionalAccess', _814 => _814.source]) === "dashboard" ? "/ws/nats-api" : "/ws/nats";
|
|
34434
34463
|
const u = new URL(path, apiBaseUrl);
|
|
34435
34464
|
u.protocol = u.protocol === "https:" ? "wss:" : "ws:";
|
|
34436
|
-
if (_optionalChain([options, 'optionalAccess',
|
|
34465
|
+
if (_optionalChain([options, 'optionalAccess', _815 => _815.includeAuthParam]) && _optionalChain([options, 'optionalAccess', _816 => _816.token])) {
|
|
34437
34466
|
u.searchParams.set("authorization", options.token);
|
|
34438
34467
|
}
|
|
34439
34468
|
return u.toString();
|
|
@@ -34751,8 +34780,8 @@ var MessageSegmentAccumulator = class {
|
|
|
34751
34780
|
type: "tool_execution",
|
|
34752
34781
|
data: {
|
|
34753
34782
|
...toolData,
|
|
34754
|
-
toolTitle: _nullishCoalesce(_nullishCoalesce(toolData.toolTitle, () => ( _optionalChain([existingExecuting, 'optionalAccess',
|
|
34755
|
-
parameters: toolData.parameters || _optionalChain([executingTool, 'optionalAccess',
|
|
34783
|
+
toolTitle: _nullishCoalesce(_nullishCoalesce(toolData.toolTitle, () => ( _optionalChain([existingExecuting, 'optionalAccess', _817 => _817.data, 'access', _818 => _818.toolTitle]))), () => ( _optionalChain([executingTool, 'optionalAccess', _819 => _819.toolTitle]))),
|
|
34784
|
+
parameters: toolData.parameters || _optionalChain([executingTool, 'optionalAccess', _820 => _820.parameters])
|
|
34756
34785
|
}
|
|
34757
34786
|
};
|
|
34758
34787
|
if (existingIndex !== -1) {
|
|
@@ -34776,8 +34805,8 @@ var MessageSegmentAccumulator = class {
|
|
|
34776
34805
|
if (seg.type !== "approval_batch") return seg;
|
|
34777
34806
|
const hasCall = seg.data.toolCalls.some((c) => c.toolExecutionRequestId === execId);
|
|
34778
34807
|
if (!hasCall) return seg;
|
|
34779
|
-
const prev = _optionalChain([seg, 'access',
|
|
34780
|
-
const next = toolData.type === "EXECUTED_TOOL" ? { status: "done", result: toolData.result, success: toolData.success } : { status: "executing", result: _optionalChain([prev, 'optionalAccess',
|
|
34808
|
+
const prev = _optionalChain([seg, 'access', _821 => _821.data, 'access', _822 => _822.executions, 'optionalAccess', _823 => _823[execId]]);
|
|
34809
|
+
const next = toolData.type === "EXECUTED_TOOL" ? { status: "done", result: toolData.result, success: toolData.success } : { status: "executing", result: _optionalChain([prev, 'optionalAccess', _824 => _824.result]), success: _optionalChain([prev, 'optionalAccess', _825 => _825.success]) };
|
|
34781
34810
|
matched = true;
|
|
34782
34811
|
return {
|
|
34783
34812
|
...seg,
|
|
@@ -34897,10 +34926,10 @@ var MessageSegmentAccumulator = class {
|
|
|
34897
34926
|
const segment = {
|
|
34898
34927
|
type: "approval_request",
|
|
34899
34928
|
data: {
|
|
34900
|
-
command: _optionalChain([pendingApproval, 'optionalAccess',
|
|
34901
|
-
explanation: _optionalChain([pendingApproval, 'optionalAccess',
|
|
34929
|
+
command: _optionalChain([pendingApproval, 'optionalAccess', _826 => _826.command]) || "",
|
|
34930
|
+
explanation: _optionalChain([pendingApproval, 'optionalAccess', _827 => _827.explanation]),
|
|
34902
34931
|
requestId,
|
|
34903
|
-
approvalType: _optionalChain([pendingApproval, 'optionalAccess',
|
|
34932
|
+
approvalType: _optionalChain([pendingApproval, 'optionalAccess', _828 => _828.approvalType]) || approvalType
|
|
34904
34933
|
},
|
|
34905
34934
|
status,
|
|
34906
34935
|
onApprove: this.callbacks.onApprove,
|
|
@@ -35090,7 +35119,7 @@ function useRealtimeChunkProcessor(options) {
|
|
|
35090
35119
|
if (initialState.escalatedApprovals) {
|
|
35091
35120
|
pendingEscalatedRef.current = new Map(initialState.escalatedApprovals);
|
|
35092
35121
|
initialState.escalatedApprovals.forEach((data, requestId) => {
|
|
35093
|
-
_optionalChain([callbacks, 'access',
|
|
35122
|
+
_optionalChain([callbacks, 'access', _829 => _829.onEscalatedApproval, 'optionalCall', _830 => _830(requestId, data)]);
|
|
35094
35123
|
});
|
|
35095
35124
|
}
|
|
35096
35125
|
hasEverStreamedRef.current = true;
|
|
@@ -35117,7 +35146,7 @@ function useRealtimeChunkProcessor(options) {
|
|
|
35117
35146
|
if ((directModeFlagRef.current || sawDirectMessageRef.current) && !DIRECT_MODE_ALLOWED.has(action.action)) {
|
|
35118
35147
|
if (isInStreamRef.current) {
|
|
35119
35148
|
isInStreamRef.current = false;
|
|
35120
|
-
_optionalChain([callbacks, 'access',
|
|
35149
|
+
_optionalChain([callbacks, 'access', _831 => _831.onStreamEnd, 'optionalCall', _832 => _832()]);
|
|
35121
35150
|
accumulator.resetSegments();
|
|
35122
35151
|
}
|
|
35123
35152
|
return;
|
|
@@ -35126,32 +35155,32 @@ function useRealtimeChunkProcessor(options) {
|
|
|
35126
35155
|
case "message_start":
|
|
35127
35156
|
isInStreamRef.current = true;
|
|
35128
35157
|
hasEverStreamedRef.current = true;
|
|
35129
|
-
_optionalChain([callbacks, 'access',
|
|
35158
|
+
_optionalChain([callbacks, 'access', _833 => _833.onStreamStart, 'optionalCall', _834 => _834()]);
|
|
35130
35159
|
accumulator.resetSegments();
|
|
35131
35160
|
break;
|
|
35132
35161
|
case "message_end":
|
|
35133
35162
|
isInStreamRef.current = false;
|
|
35134
|
-
_optionalChain([callbacks, 'access',
|
|
35163
|
+
_optionalChain([callbacks, 'access', _835 => _835.onStreamEnd, 'optionalCall', _836 => _836()]);
|
|
35135
35164
|
accumulator.resetSegments();
|
|
35136
35165
|
break;
|
|
35137
35166
|
case "metadata":
|
|
35138
|
-
_optionalChain([callbacks, 'access',
|
|
35167
|
+
_optionalChain([callbacks, 'access', _837 => _837.onMetadata, 'optionalCall', _838 => _838(action)]);
|
|
35139
35168
|
break;
|
|
35140
35169
|
case "text": {
|
|
35141
35170
|
const segments = accumulator.appendText(action.text);
|
|
35142
35171
|
if (isInStreamRef.current || !hasEverStreamedRef.current) {
|
|
35143
|
-
_optionalChain([callbacks, 'access',
|
|
35172
|
+
_optionalChain([callbacks, 'access', _839 => _839.onSegmentsUpdate, 'optionalCall', _840 => _840(segments)]);
|
|
35144
35173
|
} else {
|
|
35145
|
-
_optionalChain([callbacks, 'access',
|
|
35174
|
+
_optionalChain([callbacks, 'access', _841 => _841.onSegmentsUpdate, 'optionalCall', _842 => _842([{ type: "text", text: action.text }], { append: true })]);
|
|
35146
35175
|
}
|
|
35147
35176
|
break;
|
|
35148
35177
|
}
|
|
35149
35178
|
case "thinking": {
|
|
35150
35179
|
const segments = accumulator.appendThinking(action.text);
|
|
35151
35180
|
if (isInStreamRef.current || !hasEverStreamedRef.current) {
|
|
35152
|
-
_optionalChain([callbacks, 'access',
|
|
35181
|
+
_optionalChain([callbacks, 'access', _843 => _843.onSegmentsUpdate, 'optionalCall', _844 => _844(segments)]);
|
|
35153
35182
|
} else {
|
|
35154
|
-
_optionalChain([callbacks, 'access',
|
|
35183
|
+
_optionalChain([callbacks, 'access', _845 => _845.onSegmentsUpdate, 'optionalCall', _846 => _846([{ type: "thinking", text: action.text }], { append: true })]);
|
|
35155
35184
|
}
|
|
35156
35185
|
break;
|
|
35157
35186
|
}
|
|
@@ -35161,7 +35190,7 @@ function useRealtimeChunkProcessor(options) {
|
|
|
35161
35190
|
break;
|
|
35162
35191
|
}
|
|
35163
35192
|
const segments = accumulator.addToolExecution(action.segment);
|
|
35164
|
-
_optionalChain([callbacks, 'access',
|
|
35193
|
+
_optionalChain([callbacks, 'access', _847 => _847.onSegmentsUpdate, 'optionalCall', _848 => _848(segments)]);
|
|
35165
35194
|
break;
|
|
35166
35195
|
}
|
|
35167
35196
|
case "approval_request": {
|
|
@@ -35175,10 +35204,10 @@ function useRealtimeChunkProcessor(options) {
|
|
|
35175
35204
|
approvalType,
|
|
35176
35205
|
status
|
|
35177
35206
|
);
|
|
35178
|
-
_optionalChain([callbacks, 'access',
|
|
35207
|
+
_optionalChain([callbacks, 'access', _849 => _849.onSegmentsUpdate, 'optionalCall', _850 => _850(segments)]);
|
|
35179
35208
|
} else {
|
|
35180
35209
|
pendingEscalatedRef.current.set(requestId, { command, explanation, approvalType });
|
|
35181
|
-
_optionalChain([callbacks, 'access',
|
|
35210
|
+
_optionalChain([callbacks, 'access', _851 => _851.onEscalatedApproval, 'optionalCall', _852 => _852(requestId, { command, explanation, approvalType })]);
|
|
35182
35211
|
}
|
|
35183
35212
|
break;
|
|
35184
35213
|
}
|
|
@@ -35190,20 +35219,20 @@ function useRealtimeChunkProcessor(options) {
|
|
|
35190
35219
|
const summary = required ? getCommandText(required) : `Batch of ${toolCalls.length} tool calls`;
|
|
35191
35220
|
pendingEscalatedRef.current.set(requestId, {
|
|
35192
35221
|
command: summary,
|
|
35193
|
-
explanation: _optionalChain([required, 'optionalAccess',
|
|
35222
|
+
explanation: _optionalChain([required, 'optionalAccess', _853 => _853.toolExplanation]),
|
|
35194
35223
|
approvalType,
|
|
35195
35224
|
toolCalls
|
|
35196
35225
|
});
|
|
35197
|
-
_optionalChain([callbacks, 'access',
|
|
35226
|
+
_optionalChain([callbacks, 'access', _854 => _854.onEscalatedApproval, 'optionalCall', _855 => _855(requestId, {
|
|
35198
35227
|
command: summary,
|
|
35199
|
-
explanation: _optionalChain([required, 'optionalAccess',
|
|
35228
|
+
explanation: _optionalChain([required, 'optionalAccess', _856 => _856.toolExplanation]),
|
|
35200
35229
|
approvalType
|
|
35201
35230
|
})]);
|
|
35202
35231
|
break;
|
|
35203
35232
|
}
|
|
35204
35233
|
if (batchApprovalsEnabled) {
|
|
35205
35234
|
const segments2 = accumulator.addApprovalBatch(requestId, approvalType, toolCalls, status);
|
|
35206
|
-
_optionalChain([callbacks, 'access',
|
|
35235
|
+
_optionalChain([callbacks, 'access', _857 => _857.onSegmentsUpdate, 'optionalCall', _858 => _858(segments2)]);
|
|
35207
35236
|
break;
|
|
35208
35237
|
}
|
|
35209
35238
|
let segments = accumulator.getSegments();
|
|
@@ -35217,7 +35246,7 @@ function useRealtimeChunkProcessor(options) {
|
|
|
35217
35246
|
status
|
|
35218
35247
|
);
|
|
35219
35248
|
}
|
|
35220
|
-
_optionalChain([callbacks, 'access',
|
|
35249
|
+
_optionalChain([callbacks, 'access', _859 => _859.onSegmentsUpdate, 'optionalCall', _860 => _860(segments)]);
|
|
35221
35250
|
break;
|
|
35222
35251
|
}
|
|
35223
35252
|
case "approval_result": {
|
|
@@ -35226,7 +35255,7 @@ function useRealtimeChunkProcessor(options) {
|
|
|
35226
35255
|
const status = approved ? "approved" : "rejected";
|
|
35227
35256
|
if (escalatedData) {
|
|
35228
35257
|
pendingEscalatedRef.current.delete(requestId);
|
|
35229
|
-
_optionalChain([callbacks, 'access',
|
|
35258
|
+
_optionalChain([callbacks, 'access', _861 => _861.onEscalatedApprovalResult, 'optionalCall', _862 => _862(requestId, approved, {
|
|
35230
35259
|
command: escalatedData.command,
|
|
35231
35260
|
explanation: escalatedData.explanation,
|
|
35232
35261
|
approvalType: escalatedData.approvalType
|
|
@@ -35239,7 +35268,7 @@ function useRealtimeChunkProcessor(options) {
|
|
|
35239
35268
|
escalatedData.toolCalls,
|
|
35240
35269
|
status
|
|
35241
35270
|
);
|
|
35242
|
-
_optionalChain([callbacks, 'access',
|
|
35271
|
+
_optionalChain([callbacks, 'access', _863 => _863.onSegmentsUpdate, 'optionalCall', _864 => _864(segments)]);
|
|
35243
35272
|
} else {
|
|
35244
35273
|
let segments = accumulator.getSegments();
|
|
35245
35274
|
for (const call of escalatedData.toolCalls) {
|
|
@@ -35252,7 +35281,7 @@ function useRealtimeChunkProcessor(options) {
|
|
|
35252
35281
|
status
|
|
35253
35282
|
);
|
|
35254
35283
|
}
|
|
35255
|
-
_optionalChain([callbacks, 'access',
|
|
35284
|
+
_optionalChain([callbacks, 'access', _865 => _865.onSegmentsUpdate, 'optionalCall', _866 => _866(segments)]);
|
|
35256
35285
|
}
|
|
35257
35286
|
} else {
|
|
35258
35287
|
const segments = accumulator.addApprovalRequest(
|
|
@@ -35262,37 +35291,37 @@ function useRealtimeChunkProcessor(options) {
|
|
|
35262
35291
|
escalatedData.approvalType,
|
|
35263
35292
|
status
|
|
35264
35293
|
);
|
|
35265
|
-
_optionalChain([callbacks, 'access',
|
|
35294
|
+
_optionalChain([callbacks, 'access', _867 => _867.onSegmentsUpdate, 'optionalCall', _868 => _868(segments)]);
|
|
35266
35295
|
}
|
|
35267
35296
|
} else {
|
|
35268
35297
|
accumulator.updateApprovalStatus(requestId, status);
|
|
35269
35298
|
if (!callbacks.onApprovalResolved) {
|
|
35270
|
-
_optionalChain([callbacks, 'access',
|
|
35299
|
+
_optionalChain([callbacks, 'access', _869 => _869.onSegmentsUpdate, 'optionalCall', _870 => _870(accumulator.getSegments())]);
|
|
35271
35300
|
}
|
|
35272
35301
|
}
|
|
35273
|
-
_optionalChain([callbacks, 'access',
|
|
35302
|
+
_optionalChain([callbacks, 'access', _871 => _871.onApprovalResolved, 'optionalCall', _872 => _872(requestId, status, approvalType)]);
|
|
35274
35303
|
break;
|
|
35275
35304
|
}
|
|
35276
35305
|
case "error": {
|
|
35277
35306
|
let message2;
|
|
35278
|
-
if ("details" in action && _optionalChain([action, 'optionalAccess',
|
|
35307
|
+
if ("details" in action && _optionalChain([action, 'optionalAccess', _873 => _873.details])) {
|
|
35279
35308
|
try {
|
|
35280
|
-
message2 = _optionalChain([JSON, 'access',
|
|
35309
|
+
message2 = _optionalChain([JSON, 'access', _874 => _874.parse, 'call', _875 => _875(action.details), 'optionalAccess', _876 => _876.error, 'optionalAccess', _877 => _877.message]);
|
|
35281
35310
|
} catch (e35) {
|
|
35282
35311
|
message2 = action.details;
|
|
35283
35312
|
}
|
|
35284
35313
|
}
|
|
35285
35314
|
const segments = accumulator.addError(action.error, message2);
|
|
35286
|
-
_optionalChain([callbacks, 'access',
|
|
35287
|
-
_optionalChain([callbacks, 'access',
|
|
35315
|
+
_optionalChain([callbacks, 'access', _878 => _878.onSegmentsUpdate, 'optionalCall', _879 => _879(segments)]);
|
|
35316
|
+
_optionalChain([callbacks, 'access', _880 => _880.onError, 'optionalCall', _881 => _881(action.error, message2)]);
|
|
35288
35317
|
break;
|
|
35289
35318
|
}
|
|
35290
35319
|
case "system": {
|
|
35291
|
-
_optionalChain([callbacks, 'access',
|
|
35320
|
+
_optionalChain([callbacks, 'access', _882 => _882.onSystemMessage, 'optionalCall', _883 => _883(action.text)]);
|
|
35292
35321
|
break;
|
|
35293
35322
|
}
|
|
35294
35323
|
case "direct_message": {
|
|
35295
|
-
_optionalChain([callbacks, 'access',
|
|
35324
|
+
_optionalChain([callbacks, 'access', _884 => _884.onDirectMessage, 'optionalCall', _885 => _885(action.text, {
|
|
35296
35325
|
ownerType: action.ownerType,
|
|
35297
35326
|
displayName: action.displayName,
|
|
35298
35327
|
userId: action.userId
|
|
@@ -35300,29 +35329,29 @@ function useRealtimeChunkProcessor(options) {
|
|
|
35300
35329
|
break;
|
|
35301
35330
|
}
|
|
35302
35331
|
case "message_request":
|
|
35303
|
-
_optionalChain([callbacks, 'access',
|
|
35332
|
+
_optionalChain([callbacks, 'access', _886 => _886.onUserMessage, 'optionalCall', _887 => _887(action.text, {
|
|
35304
35333
|
ownerType: action.ownerType,
|
|
35305
35334
|
displayName: action.displayName,
|
|
35306
35335
|
userId: action.userId
|
|
35307
35336
|
})]);
|
|
35308
35337
|
break;
|
|
35309
35338
|
case "token_usage":
|
|
35310
|
-
_optionalChain([callbacks, 'access',
|
|
35339
|
+
_optionalChain([callbacks, 'access', _888 => _888.onTokenUsage, 'optionalCall', _889 => _889(action.data)]);
|
|
35311
35340
|
break;
|
|
35312
35341
|
case "context_compaction_start": {
|
|
35313
35342
|
const standalone = !isInStreamRef.current;
|
|
35314
35343
|
const segments = accumulator.addContextCompaction();
|
|
35315
|
-
_optionalChain([callbacks, 'access',
|
|
35344
|
+
_optionalChain([callbacks, 'access', _890 => _890.onSegmentsUpdate, 'optionalCall', _891 => _891(segments, standalone ? { append: true, isCompacting: true } : void 0)]);
|
|
35316
35345
|
break;
|
|
35317
35346
|
}
|
|
35318
35347
|
case "context_compaction_end": {
|
|
35319
35348
|
const standalone = !isInStreamRef.current;
|
|
35320
35349
|
const segments = accumulator.completeContextCompaction(action.summary);
|
|
35321
|
-
_optionalChain([callbacks, 'access',
|
|
35350
|
+
_optionalChain([callbacks, 'access', _892 => _892.onSegmentsUpdate, 'optionalCall', _893 => _893(segments, standalone ? { append: true, isCompacting: true } : void 0)]);
|
|
35322
35351
|
break;
|
|
35323
35352
|
}
|
|
35324
35353
|
case "dialog_closed":
|
|
35325
|
-
_optionalChain([callbacks, 'access',
|
|
35354
|
+
_optionalChain([callbacks, 'access', _894 => _894.onDialogClosed, 'optionalCall', _895 => _895()]);
|
|
35326
35355
|
break;
|
|
35327
35356
|
default:
|
|
35328
35357
|
break;
|
|
@@ -35384,7 +35413,7 @@ function useSlashCommands(prefix, commandsUrl) {
|
|
|
35384
35413
|
const next = await fetchSlashCommands(prefix, ctrl.signal, commandsUrl);
|
|
35385
35414
|
if (!cancelled) setCommands(next);
|
|
35386
35415
|
} catch (err) {
|
|
35387
|
-
if (!cancelled && _optionalChain([err, 'optionalAccess',
|
|
35416
|
+
if (!cancelled && _optionalChain([err, 'optionalAccess', _896 => _896.name]) !== "AbortError") {
|
|
35388
35417
|
console.warn("[use-slash-commands] fetch failed:", err);
|
|
35389
35418
|
}
|
|
35390
35419
|
} finally {
|
|
@@ -35403,7 +35432,7 @@ function useSlashCommandRegistry(commandsUrl, options) {
|
|
|
35403
35432
|
const query = _reactquery.useQuery.call(void 0, {
|
|
35404
35433
|
queryKey: ["chat-slash-commands", commandsUrl],
|
|
35405
35434
|
queryFn: ({ signal }) => fetchSlashCommands("", signal, commandsUrl),
|
|
35406
|
-
enabled: _nullishCoalesce(_optionalChain([options, 'optionalAccess',
|
|
35435
|
+
enabled: _nullishCoalesce(_optionalChain([options, 'optionalAccess', _897 => _897.enabled]), () => ( true)),
|
|
35407
35436
|
staleTime: Infinity,
|
|
35408
35437
|
gcTime: Infinity
|
|
35409
35438
|
});
|
|
@@ -35424,7 +35453,7 @@ var CHAT_ATTACHMENT_MAX_SIZE_BYTES = 25 * 1024 * 1024;
|
|
|
35424
35453
|
var STORAGE_CACHE_CONTROL_IMMUTABLE = "public, max-age=31536000, immutable";
|
|
35425
35454
|
function uploadWithProgress(url, file, token, onProgress, signal) {
|
|
35426
35455
|
return new Promise((resolve, reject) => {
|
|
35427
|
-
if (_optionalChain([signal, 'optionalAccess',
|
|
35456
|
+
if (_optionalChain([signal, 'optionalAccess', _898 => _898.aborted])) {
|
|
35428
35457
|
reject(new Error("Upload cancelled"));
|
|
35429
35458
|
return;
|
|
35430
35459
|
}
|
|
@@ -35438,7 +35467,7 @@ function uploadWithProgress(url, file, token, onProgress, signal) {
|
|
|
35438
35467
|
xhr.removeEventListener("error", handleError);
|
|
35439
35468
|
xhr.removeEventListener("abort", handleAbort);
|
|
35440
35469
|
xhr.removeEventListener("timeout", handleTimeout);
|
|
35441
|
-
_optionalChain([signal, 'optionalAccess',
|
|
35470
|
+
_optionalChain([signal, 'optionalAccess', _899 => _899.removeEventListener, 'call', _900 => _900("abort", handleSignalAbort)]);
|
|
35442
35471
|
if (xhr.readyState !== XMLHttpRequest.DONE) xhr.abort();
|
|
35443
35472
|
};
|
|
35444
35473
|
const handleProgress = (event) => {
|
|
@@ -35474,7 +35503,7 @@ function uploadWithProgress(url, file, token, onProgress, signal) {
|
|
|
35474
35503
|
const handleSignalAbort = () => {
|
|
35475
35504
|
xhr.abort();
|
|
35476
35505
|
};
|
|
35477
|
-
_optionalChain([signal, 'optionalAccess',
|
|
35506
|
+
_optionalChain([signal, 'optionalAccess', _901 => _901.addEventListener, 'call', _902 => _902("abort", handleSignalAbort, { once: true })]);
|
|
35478
35507
|
xhr.upload.addEventListener("progress", handleProgress);
|
|
35479
35508
|
xhr.addEventListener("load", handleLoad);
|
|
35480
35509
|
xhr.addEventListener("error", handleError);
|
|
@@ -35518,12 +35547,12 @@ function useChatAttachments() {
|
|
|
35518
35547
|
try {
|
|
35519
35548
|
sniffed = await _filetype.fileTypeFromBlob.call(void 0, att.file);
|
|
35520
35549
|
} catch (err) {
|
|
35521
|
-
if (_optionalChain([ctrl, 'optionalAccess',
|
|
35550
|
+
if (_optionalChain([ctrl, 'optionalAccess', _903 => _903.signal, 'access', _904 => _904.aborted])) return;
|
|
35522
35551
|
throw new Error(
|
|
35523
35552
|
`Could not read file content: ${err instanceof Error ? err.message : String(err)}`
|
|
35524
35553
|
);
|
|
35525
35554
|
}
|
|
35526
|
-
if (_optionalChain([ctrl, 'optionalAccess',
|
|
35555
|
+
if (_optionalChain([ctrl, 'optionalAccess', _905 => _905.signal, 'access', _906 => _906.aborted])) return;
|
|
35527
35556
|
if (!sniffed) {
|
|
35528
35557
|
throw new Error("Unrecognized file format");
|
|
35529
35558
|
}
|
|
@@ -35537,7 +35566,7 @@ function useChatAttachments() {
|
|
|
35537
35566
|
const urlResp = await _chunkZSUNQJROcjs.embedAuthedFetch.call(void 0, uploadUrlEndpoint, {
|
|
35538
35567
|
method: "POST",
|
|
35539
35568
|
headers: { "Content-Type": "application/json" },
|
|
35540
|
-
signal: _optionalChain([ctrl, 'optionalAccess',
|
|
35569
|
+
signal: _optionalChain([ctrl, 'optionalAccess', _907 => _907.signal]),
|
|
35541
35570
|
body: JSON.stringify({
|
|
35542
35571
|
fileName: att.file.name,
|
|
35543
35572
|
// Pass the SNIFFED MIME (not `file.type`, which can be a
|
|
@@ -35563,9 +35592,9 @@ function useChatAttachments() {
|
|
|
35563
35592
|
(pct) => {
|
|
35564
35593
|
updateOne(att.id, { progress: pct });
|
|
35565
35594
|
},
|
|
35566
|
-
_optionalChain([ctrl, 'optionalAccess',
|
|
35595
|
+
_optionalChain([ctrl, 'optionalAccess', _908 => _908.signal])
|
|
35567
35596
|
);
|
|
35568
|
-
if (_optionalChain([ctrl, 'optionalAccess',
|
|
35597
|
+
if (_optionalChain([ctrl, 'optionalAccess', _909 => _909.signal, 'access', _910 => _910.aborted])) return;
|
|
35569
35598
|
updateOne(att.id, {
|
|
35570
35599
|
status: "ready",
|
|
35571
35600
|
progress: 100,
|
|
@@ -35573,7 +35602,7 @@ function useChatAttachments() {
|
|
|
35573
35602
|
viewToken: mintData.viewToken
|
|
35574
35603
|
});
|
|
35575
35604
|
} catch (err) {
|
|
35576
|
-
if (_optionalChain([ctrl, 'optionalAccess',
|
|
35605
|
+
if (_optionalChain([ctrl, 'optionalAccess', _911 => _911.signal, 'access', _912 => _912.aborted])) return;
|
|
35577
35606
|
const message2 = err instanceof Error ? err.message : String(err);
|
|
35578
35607
|
updateOne(att.id, { status: "error", progress: 0, errorMessage: message2 });
|
|
35579
35608
|
} finally {
|
|
@@ -35724,7 +35753,7 @@ var ANON_DEFAULTS = {
|
|
|
35724
35753
|
function useResolveChatIdentity(enabled) {
|
|
35725
35754
|
const runtime = _chunkPC7YOZ4Icjs.useRequiredChatRuntime.call(void 0, );
|
|
35726
35755
|
const url = runtime.endpoints.identityUrl;
|
|
35727
|
-
const proxyEmail = _nullishCoalesce(_optionalChain([_chunkZSUNQJROcjs.getEmbedProxyAuth.call(void 0, ), 'optionalAccess',
|
|
35756
|
+
const proxyEmail = _nullishCoalesce(_optionalChain([_chunkZSUNQJROcjs.getEmbedProxyAuth.call(void 0, ), 'optionalAccess', _913 => _913.email]), () => ( null));
|
|
35728
35757
|
const [data, setData] = _react.useState.call(void 0, ANON_DEFAULTS);
|
|
35729
35758
|
const [isLoading, setIsLoading] = _react.useState.call(void 0, enabled);
|
|
35730
35759
|
_react.useEffect.call(void 0, () => {
|
|
@@ -35812,7 +35841,7 @@ function useSSE({ useMock = true, debugMode = false, streamFn } = {}) {
|
|
|
35812
35841
|
yield chunk;
|
|
35813
35842
|
}
|
|
35814
35843
|
} catch (err) {
|
|
35815
|
-
if (_optionalChain([err, 'optionalAccess',
|
|
35844
|
+
if (_optionalChain([err, 'optionalAccess', _914 => _914.name]) === "AbortError" || ctrl.signal.aborted) {
|
|
35816
35845
|
return;
|
|
35817
35846
|
}
|
|
35818
35847
|
const errorMessage = err instanceof Error ? err.message : "An error occurred";
|
|
@@ -35863,7 +35892,7 @@ function useChat({
|
|
|
35863
35892
|
const onMessagesChangeRef = _react.useRef.call(void 0, onMessagesChange);
|
|
35864
35893
|
onMessagesChangeRef.current = onMessagesChange;
|
|
35865
35894
|
_react.useEffect.call(void 0, () => {
|
|
35866
|
-
_optionalChain([onMessagesChangeRef, 'access',
|
|
35895
|
+
_optionalChain([onMessagesChangeRef, 'access', _915 => _915.current, 'optionalCall', _916 => _916(messages)]);
|
|
35867
35896
|
}, [messages]);
|
|
35868
35897
|
const {
|
|
35869
35898
|
streamMessage,
|
|
@@ -35900,7 +35929,7 @@ function useChat({
|
|
|
35900
35929
|
name: "You",
|
|
35901
35930
|
content: text,
|
|
35902
35931
|
timestamp: /* @__PURE__ */ new Date(),
|
|
35903
|
-
..._optionalChain([options, 'optionalAccess',
|
|
35932
|
+
..._optionalChain([options, 'optionalAccess', _917 => _917.hidden]) ? { hidden: true } : {}
|
|
35904
35933
|
};
|
|
35905
35934
|
addMessage(userMessage);
|
|
35906
35935
|
setIsTyping(true);
|
|
@@ -35962,7 +35991,7 @@ function useChat({
|
|
|
35962
35991
|
currentTextSegment = "";
|
|
35963
35992
|
}
|
|
35964
35993
|
const seg = segment;
|
|
35965
|
-
const proposalId = _optionalChain([seg, 'access',
|
|
35994
|
+
const proposalId = _optionalChain([seg, 'access', _918 => _918.data, 'optionalAccess', _919 => _919.requestId]);
|
|
35966
35995
|
const updateApprovalMessage = (transform) => {
|
|
35967
35996
|
setMessages((prev) => {
|
|
35968
35997
|
for (let i = prev.length - 1; i >= 0; i--) {
|
|
@@ -35971,7 +36000,7 @@ function useChat({
|
|
|
35971
36000
|
if (!Array.isArray(m.content)) continue;
|
|
35972
36001
|
const segments = m.content;
|
|
35973
36002
|
const hasMatch = segments.some(
|
|
35974
|
-
(s) => s.type === "approval_request" && _optionalChain([s, 'access',
|
|
36003
|
+
(s) => s.type === "approval_request" && _optionalChain([s, 'access', _920 => _920.data, 'optionalAccess', _921 => _921.requestId]) === proposalId
|
|
35975
36004
|
);
|
|
35976
36005
|
if (!hasMatch) continue;
|
|
35977
36006
|
const next = [...prev];
|
|
@@ -36013,11 +36042,11 @@ function useChat({
|
|
|
36013
36042
|
if (!Array.isArray(m.content)) continue;
|
|
36014
36043
|
const segments = m.content;
|
|
36015
36044
|
const hasMatch = segments.some(
|
|
36016
|
-
(s) => s.type === "approval_request" && _optionalChain([s, 'access',
|
|
36045
|
+
(s) => s.type === "approval_request" && _optionalChain([s, 'access', _922 => _922.data, 'optionalAccess', _923 => _923.requestId]) === decision.proposalId
|
|
36017
36046
|
);
|
|
36018
36047
|
if (!hasMatch) continue;
|
|
36019
36048
|
const flipped = segments.map(
|
|
36020
|
-
(s) => s.type === "approval_request" && _optionalChain([s, 'access',
|
|
36049
|
+
(s) => s.type === "approval_request" && _optionalChain([s, 'access', _924 => _924.data, 'optionalAccess', _925 => _925.requestId]) === decision.proposalId ? { ...s, status: decision.action } : s
|
|
36021
36050
|
);
|
|
36022
36051
|
const next = [...prev];
|
|
36023
36052
|
next[i] = { ...m, content: flipped };
|
|
@@ -36179,8 +36208,8 @@ function createDocStreamFn(source, endpoints, messagesRef, sourcesMapRef, refsMa
|
|
|
36179
36208
|
})),
|
|
36180
36209
|
{ role: "user", content: message2 }
|
|
36181
36210
|
];
|
|
36182
|
-
const targetPath = _optionalChain([extra, 'optionalAccess',
|
|
36183
|
-
const requestBody = _optionalChain([extra, 'optionalAccess',
|
|
36211
|
+
const targetPath = _optionalChain([extra, 'optionalAccess', _926 => _926.approvalAction]) ? endpoints.approvalToolUrl : endpoints.chatStreamUrl;
|
|
36212
|
+
const requestBody = _optionalChain([extra, 'optionalAccess', _927 => _927.approvalAction]) ? {
|
|
36184
36213
|
proposal_id: extra.approvalAction.proposalId,
|
|
36185
36214
|
action: extra.approvalAction.action,
|
|
36186
36215
|
messages: currentMessages.filter((m) => (m.role === "user" || m.role === "assistant") && !m.hidden).map((m) => ({
|
|
@@ -36189,8 +36218,8 @@ function createDocStreamFn(source, endpoints, messagesRef, sourcesMapRef, refsMa
|
|
|
36189
36218
|
}))
|
|
36190
36219
|
} : {
|
|
36191
36220
|
messages: apiMessages,
|
|
36192
|
-
..._optionalChain([extra, 'optionalAccess',
|
|
36193
|
-
..._optionalChain([extra, 'optionalAccess',
|
|
36221
|
+
..._optionalChain([extra, 'optionalAccess', _928 => _928.commandOverride]) ? { commandOverride: extra.commandOverride } : {},
|
|
36222
|
+
..._optionalChain([extra, 'optionalAccess', _929 => _929.pendingAttachments]) && extra.pendingAttachments.length > 0 ? { pendingAttachments: extra.pendingAttachments } : {}
|
|
36194
36223
|
};
|
|
36195
36224
|
const response = await _chunkZSUNQJROcjs.embedAuthedFetch.call(void 0, targetPath, {
|
|
36196
36225
|
method: "POST",
|
|
@@ -36200,7 +36229,7 @@ function createDocStreamFn(source, endpoints, messagesRef, sourcesMapRef, refsMa
|
|
|
36200
36229
|
if (!response.ok) {
|
|
36201
36230
|
throw new Error(`Chat request failed: ${response.status}`);
|
|
36202
36231
|
}
|
|
36203
|
-
const reader = _optionalChain([response, 'access',
|
|
36232
|
+
const reader = _optionalChain([response, 'access', _930 => _930.body, 'optionalAccess', _931 => _931.getReader, 'call', _932 => _932()]);
|
|
36204
36233
|
if (!reader) throw new Error("No response body");
|
|
36205
36234
|
const decoder = new TextDecoder();
|
|
36206
36235
|
let buffer = "";
|
|
@@ -36283,7 +36312,7 @@ function createDocStreamFn(source, endpoints, messagesRef, sourcesMapRef, refsMa
|
|
|
36283
36312
|
const toolName = typeof meta.tool_name === "string" ? meta.tool_name : void 0;
|
|
36284
36313
|
const result = _nullishCoalesce(meta.result, () => ( null));
|
|
36285
36314
|
const card = _nullishCoalesce(meta.card, () => ( null));
|
|
36286
|
-
if (_optionalChain([card, 'optionalAccess',
|
|
36315
|
+
if (_optionalChain([card, 'optionalAccess', _933 => _933.ref, 'optionalAccess', _934 => _934.id]) && _optionalChain([card, 'optionalAccess', _935 => _935.type])) {
|
|
36287
36316
|
const existing = _nullishCoalesce(refsMapRef.current.get(sendIdx), () => ( {}));
|
|
36288
36317
|
const key = buildChatRefKey(card.type, card.ref.id);
|
|
36289
36318
|
refsMapRef.current.set(sendIdx, { ...existing, [key]: card.ref });
|
|
@@ -36296,8 +36325,8 @@ function createDocStreamFn(source, endpoints, messagesRef, sourcesMapRef, refsMa
|
|
|
36296
36325
|
willAutoContinue: meta.willAutoContinue === true,
|
|
36297
36326
|
...toolName ? { toolName } : {},
|
|
36298
36327
|
...result ? { result } : {},
|
|
36299
|
-
..._optionalChain([card, 'optionalAccess',
|
|
36300
|
-
..._optionalChain([card, 'optionalAccess',
|
|
36328
|
+
..._optionalChain([card, 'optionalAccess', _936 => _936.marker]) ? { marker: card.marker } : {},
|
|
36329
|
+
..._optionalChain([card, 'optionalAccess', _937 => _937.ref]) ? { cardRef: card.ref } : {},
|
|
36301
36330
|
...typeof meta.receiptText === "string" ? { receiptText: meta.receiptText } : {},
|
|
36302
36331
|
proposalId: typeof meta.proposalId === "string" ? meta.proposalId : void 0
|
|
36303
36332
|
};
|
|
@@ -36416,7 +36445,7 @@ var DEFAULT_CHAT_SOURCE = "embed";
|
|
|
36416
36445
|
var chatStorageKey = (source) => {
|
|
36417
36446
|
const base = `mingo-chat-${source}-v${CHAT_STORAGE_VERSION}`;
|
|
36418
36447
|
const auth = _chunkZSUNQJROcjs.getEmbedProxyAuth.call(void 0, );
|
|
36419
|
-
if (_optionalChain([auth, 'optionalAccess',
|
|
36448
|
+
if (_optionalChain([auth, 'optionalAccess', _938 => _938.email])) {
|
|
36420
36449
|
return `${base}-u-${encodeURIComponent(auth.email.toLowerCase())}`;
|
|
36421
36450
|
}
|
|
36422
36451
|
return base;
|
|
@@ -36471,7 +36500,7 @@ function useSseChatAdapter(options, runtimeOptions = {}) {
|
|
|
36471
36500
|
const { active = true } = runtimeOptions;
|
|
36472
36501
|
const runtime = _chunkPC7YOZ4Icjs.useRequiredChatRuntime.call(void 0, );
|
|
36473
36502
|
const source = runtime.source || DEFAULT_CHAT_SOURCE;
|
|
36474
|
-
const tableIdForDocumentType = _nullishCoalesce(_optionalChain([options, 'optionalAccess',
|
|
36503
|
+
const tableIdForDocumentType = _nullishCoalesce(_optionalChain([options, 'optionalAccess', _939 => _939.tableIdForDocumentType]), () => ( _chunkLH7R56RRcjs.defaultTableIdForDocumentType));
|
|
36475
36504
|
const persistedRef = _react.useRef.call(void 0, null);
|
|
36476
36505
|
if (persistedRef.current === null) {
|
|
36477
36506
|
pruneStaleChatStorage(source);
|
|
@@ -36576,7 +36605,7 @@ function useSseChatAdapter(options, runtimeOptions = {}) {
|
|
|
36576
36605
|
const lookupIdx = sendIdx >= 0 ? sendIdx : 0;
|
|
36577
36606
|
sources = sourcesMapRef.current.get(lookupIdx);
|
|
36578
36607
|
chatRefs = _nullishCoalesce(m.chatRefs, () => ( refsMapRef.current.get(lookupIdx)));
|
|
36579
|
-
scrollAnchor = _nullishCoalesce(_optionalChain([metaMapRef, 'access',
|
|
36608
|
+
scrollAnchor = _nullishCoalesce(_optionalChain([metaMapRef, 'access', _940 => _940.current, 'access', _941 => _941.get, 'call', _942 => _942(lookupIdx), 'optionalAccess', _943 => _943.scrollAnchor]), () => ( void 0));
|
|
36580
36609
|
}
|
|
36581
36610
|
return {
|
|
36582
36611
|
id: m.id,
|
|
@@ -36624,7 +36653,7 @@ function useSseChatAdapter(options, runtimeOptions = {}) {
|
|
|
36624
36653
|
);
|
|
36625
36654
|
return;
|
|
36626
36655
|
}
|
|
36627
|
-
const refSlug = typeof _optionalChain([reference, 'access',
|
|
36656
|
+
const refSlug = typeof _optionalChain([reference, 'access', _944 => _944.metadata, 'optionalAccess', _945 => _945.slug]) === "string" && reference.metadata.slug.length > 0 ? reference.metadata.slug : "";
|
|
36628
36657
|
const queryValue = refSlug || sanitizeTitleForChat(reference.title) || reference.id;
|
|
36629
36658
|
const escaped = queryValue.replace(/\\/g, "\\\\").replace(/"/g, '\\"');
|
|
36630
36659
|
const text = `/${cmdId} display "${escaped}"`;
|
|
@@ -36696,18 +36725,18 @@ function useSseChatAdapter(options, runtimeOptions = {}) {
|
|
|
36696
36725
|
clearMessages,
|
|
36697
36726
|
streamingPhase,
|
|
36698
36727
|
/** Provider key for the lib's `<ModelDisplay>` icon. */
|
|
36699
|
-
currentProvider: _nullishCoalesce(_optionalChain([latestMeta, 'optionalAccess',
|
|
36700
|
-
currentModelLabel: _nullishCoalesce(_optionalChain([latestMeta, 'optionalAccess',
|
|
36701
|
-
currentContextWindowMaxTokens: _nullishCoalesce(_optionalChain([latestMeta, 'optionalAccess',
|
|
36728
|
+
currentProvider: _nullishCoalesce(_optionalChain([latestMeta, 'optionalAccess', _946 => _946.provider]), () => ( null)),
|
|
36729
|
+
currentModelLabel: _nullishCoalesce(_optionalChain([latestMeta, 'optionalAccess', _947 => _947.modelLabel]), () => ( null)),
|
|
36730
|
+
currentContextWindowMaxTokens: _nullishCoalesce(_optionalChain([latestMeta, 'optionalAccess', _948 => _948.contextWindowMaxTokens]), () => ( null)),
|
|
36702
36731
|
/** Input tokens (known after server's message_start frame; null until). */
|
|
36703
|
-
currentInputTokens: _nullishCoalesce(_optionalChain([latestMeta, 'optionalAccess',
|
|
36732
|
+
currentInputTokens: _nullishCoalesce(_optionalChain([latestMeta, 'optionalAccess', _949 => _949.inputTokens]), () => ( null)),
|
|
36704
36733
|
/** Output tokens (known only after server's trailing usage frame). */
|
|
36705
|
-
currentOutputTokens: _nullishCoalesce(_optionalChain([latestMeta, 'optionalAccess',
|
|
36734
|
+
currentOutputTokens: _nullishCoalesce(_optionalChain([latestMeta, 'optionalAccess', _950 => _950.outputTokens]), () => ( null)),
|
|
36706
36735
|
/** Cache hit % (read / total-input × 100). null during streaming. */
|
|
36707
|
-
currentCacheHitRatePct: _nullishCoalesce(_optionalChain([latestMeta, 'optionalAccess',
|
|
36736
|
+
currentCacheHitRatePct: _nullishCoalesce(_optionalChain([latestMeta, 'optionalAccess', _951 => _951.cacheHitRatePct]), () => ( null)),
|
|
36708
36737
|
/** Cross-call usage breakdown (Haiku rewriter/classifier/summarizer
|
|
36709
36738
|
* token counts). null until the trailing usage frame lands. */
|
|
36710
|
-
currentUsageBreakdown: _nullishCoalesce(_optionalChain([latestMeta, 'optionalAccess',
|
|
36739
|
+
currentUsageBreakdown: _nullishCoalesce(_optionalChain([latestMeta, 'optionalAccess', _952 => _952.breakdown]), () => ( null)),
|
|
36711
36740
|
// ─── Dialog management — stubs for v1 ────────────────────────────────
|
|
36712
36741
|
// Guide mode currently keeps its history in `localStorage` opaquely
|
|
36713
36742
|
// under the hood (`runtime.source` namespaced key). Surfacing that
|
|
@@ -36765,15 +36794,15 @@ var noopRejectRequest = async (_id, _reason) => {
|
|
|
36765
36794
|
|
|
36766
36795
|
// src/components/chat/utils/process-historical-messages.ts
|
|
36767
36796
|
function getOwnerDisplayName(owner) {
|
|
36768
|
-
if (_optionalChain([owner, 'optionalAccess',
|
|
36797
|
+
if (_optionalChain([owner, 'optionalAccess', _953 => _953.type]) === OWNER_TYPE.ADMIN && owner.user) {
|
|
36769
36798
|
const { firstName, lastName } = owner.user;
|
|
36770
36799
|
const name = [firstName, lastName].filter(Boolean).join(" ");
|
|
36771
36800
|
if (name) return name;
|
|
36772
36801
|
}
|
|
36773
|
-
return _optionalChain([owner, 'optionalAccess',
|
|
36802
|
+
return _optionalChain([owner, 'optionalAccess', _954 => _954.type]) === OWNER_TYPE.ADMIN ? "Admin" : "You";
|
|
36774
36803
|
}
|
|
36775
36804
|
function getOwnerAvatar(owner) {
|
|
36776
|
-
return _nullishCoalesce(_optionalChain([owner, 'optionalAccess',
|
|
36805
|
+
return _nullishCoalesce(_optionalChain([owner, 'optionalAccess', _955 => _955.user, 'optionalAccess', _956 => _956.image, 'optionalAccess', _957 => _957.imageUrl]), () => ( void 0));
|
|
36777
36806
|
}
|
|
36778
36807
|
function pushStandaloneMessages(processedMessages, msg, messageDataArray) {
|
|
36779
36808
|
messageDataArray.forEach((data) => {
|
|
@@ -36836,10 +36865,10 @@ function processHistoricalMessages(messages, options = {}) {
|
|
|
36836
36865
|
pushStandaloneMessages(processedMessages, msg, messageDataArray);
|
|
36837
36866
|
return;
|
|
36838
36867
|
}
|
|
36839
|
-
const isUserMessage = _optionalChain([msg, 'access',
|
|
36868
|
+
const isUserMessage = _optionalChain([msg, 'access', _958 => _958.owner, 'optionalAccess', _959 => _959.type]) === OWNER_TYPE.CLIENT || _optionalChain([msg, 'access', _960 => _960.owner, 'optionalAccess', _961 => _961.type]) === OWNER_TYPE.ADMIN;
|
|
36840
36869
|
if (isUserMessage) {
|
|
36841
36870
|
flushAssistantMessage();
|
|
36842
|
-
const userAuthorType = _optionalChain([msg, 'access',
|
|
36871
|
+
const userAuthorType = _optionalChain([msg, 'access', _962 => _962.owner, 'optionalAccess', _963 => _963.type]) === OWNER_TYPE.ADMIN ? "admin" : "user";
|
|
36843
36872
|
messageDataArray.forEach((data) => {
|
|
36844
36873
|
if (data.type === MESSAGE_TYPE.TEXT && "text" in data && data.text) {
|
|
36845
36874
|
processedMessages.push({
|
|
@@ -36864,7 +36893,7 @@ function processHistoricalMessages(messages, options = {}) {
|
|
|
36864
36893
|
});
|
|
36865
36894
|
const nextMsg = messages[index + 1];
|
|
36866
36895
|
const isLastMessage = index === messages.length - 1;
|
|
36867
|
-
const nextIsFromUser = nextMsg && (_optionalChain([nextMsg, 'access',
|
|
36896
|
+
const nextIsFromUser = nextMsg && (_optionalChain([nextMsg, 'access', _964 => _964.owner, 'optionalAccess', _965 => _965.type]) === OWNER_TYPE.CLIENT || _optionalChain([nextMsg, 'access', _966 => _966.owner, 'optionalAccess', _967 => _967.type]) === OWNER_TYPE.ADMIN);
|
|
36868
36897
|
if (isLastMessage || nextIsFromUser) {
|
|
36869
36898
|
flushAssistantMessage();
|
|
36870
36899
|
}
|
|
@@ -36974,7 +37003,7 @@ function processMessageData(data, accumulator, approvalStatuses, options = {}, e
|
|
|
36974
37003
|
}
|
|
36975
37004
|
}
|
|
36976
37005
|
} else {
|
|
36977
|
-
_optionalChain([escalatedApprovals, 'optionalAccess',
|
|
37006
|
+
_optionalChain([escalatedApprovals, 'optionalAccess', _968 => _968.set, 'call', _969 => _969(data.approvalRequestId, {
|
|
36978
37007
|
command: data.command || "",
|
|
36979
37008
|
explanation: data.explanation,
|
|
36980
37009
|
approvalType,
|
|
@@ -36987,8 +37016,8 @@ function processMessageData(data, accumulator, approvalStatuses, options = {}, e
|
|
|
36987
37016
|
if ("approvalRequestId" in data && data.approvalRequestId) {
|
|
36988
37017
|
const existingStatus = approvalStatuses[data.approvalRequestId];
|
|
36989
37018
|
const status = existingStatus || (data.approved ? "approved" : "rejected");
|
|
36990
|
-
const escalatedData = _optionalChain([escalatedApprovals, 'optionalAccess',
|
|
36991
|
-
if (_optionalChain([escalatedData, 'optionalAccess',
|
|
37019
|
+
const escalatedData = _optionalChain([escalatedApprovals, 'optionalAccess', _970 => _970.get, 'call', _971 => _971(data.approvalRequestId)]);
|
|
37020
|
+
if (_optionalChain([escalatedData, 'optionalAccess', _972 => _972.toolCalls]) && escalatedData.toolCalls.length > 0) {
|
|
36992
37021
|
if (batchApprovalsEnabled) {
|
|
36993
37022
|
accumulator.addApprovalBatch(
|
|
36994
37023
|
data.approvalRequestId,
|
|
@@ -37008,7 +37037,7 @@ function processMessageData(data, accumulator, approvalStatuses, options = {}, e
|
|
|
37008
37037
|
);
|
|
37009
37038
|
}
|
|
37010
37039
|
}
|
|
37011
|
-
_optionalChain([escalatedApprovals, 'optionalAccess',
|
|
37040
|
+
_optionalChain([escalatedApprovals, 'optionalAccess', _973 => _973.delete, 'call', _974 => _974(data.approvalRequestId)]);
|
|
37012
37041
|
break;
|
|
37013
37042
|
}
|
|
37014
37043
|
if (escalatedData) {
|
|
@@ -37017,7 +37046,7 @@ function processMessageData(data, accumulator, approvalStatuses, options = {}, e
|
|
|
37017
37046
|
explanation: escalatedData.explanation,
|
|
37018
37047
|
approvalType: escalatedData.approvalType
|
|
37019
37048
|
});
|
|
37020
|
-
_optionalChain([escalatedApprovals, 'optionalAccess',
|
|
37049
|
+
_optionalChain([escalatedApprovals, 'optionalAccess', _975 => _975.delete, 'call', _976 => _976(data.approvalRequestId)]);
|
|
37021
37050
|
}
|
|
37022
37051
|
const before = accumulator.getSegments();
|
|
37023
37052
|
const after = accumulator.updateApprovalStatus(data.approvalRequestId, status);
|
|
@@ -37033,9 +37062,9 @@ function processMessageData(data, accumulator, approvalStatuses, options = {}, e
|
|
|
37033
37062
|
case MESSAGE_TYPE.ERROR:
|
|
37034
37063
|
if ("error" in data) {
|
|
37035
37064
|
let message2;
|
|
37036
|
-
if ("details" in data && _optionalChain([data, 'optionalAccess',
|
|
37065
|
+
if ("details" in data && _optionalChain([data, 'optionalAccess', _977 => _977.details])) {
|
|
37037
37066
|
try {
|
|
37038
|
-
message2 = _optionalChain([JSON, 'access',
|
|
37067
|
+
message2 = _optionalChain([JSON, 'access', _978 => _978.parse, 'call', _979 => _979(data.details), 'optionalAccess', _980 => _980.error, 'optionalAccess', _981 => _981.message]);
|
|
37039
37068
|
} catch (e42) {
|
|
37040
37069
|
message2 = data.details;
|
|
37041
37070
|
}
|
|
@@ -37118,10 +37147,10 @@ function processHistoricalMessagesWithErrors(messages, options = {}) {
|
|
|
37118
37147
|
pushStandaloneMessages(processedMessages, msg, messageDataArray);
|
|
37119
37148
|
return;
|
|
37120
37149
|
}
|
|
37121
|
-
const isUserMessage = _optionalChain([msg, 'access',
|
|
37150
|
+
const isUserMessage = _optionalChain([msg, 'access', _982 => _982.owner, 'optionalAccess', _983 => _983.type]) === OWNER_TYPE.CLIENT || _optionalChain([msg, 'access', _984 => _984.owner, 'optionalAccess', _985 => _985.type]) === OWNER_TYPE.ADMIN;
|
|
37122
37151
|
if (isUserMessage) {
|
|
37123
37152
|
flushAssistantMessage();
|
|
37124
|
-
const userAuthorType = _optionalChain([msg, 'access',
|
|
37153
|
+
const userAuthorType = _optionalChain([msg, 'access', _986 => _986.owner, 'optionalAccess', _987 => _987.type]) === OWNER_TYPE.ADMIN ? "admin" : "user";
|
|
37125
37154
|
messageDataArray.forEach((data) => {
|
|
37126
37155
|
if (data.type === MESSAGE_TYPE.TEXT && "text" in data && data.text) {
|
|
37127
37156
|
processedMessages.push({
|
|
@@ -37146,7 +37175,7 @@ function processHistoricalMessagesWithErrors(messages, options = {}) {
|
|
|
37146
37175
|
});
|
|
37147
37176
|
const nextMsg = messages[index + 1];
|
|
37148
37177
|
const isLastMessage = index === messages.length - 1;
|
|
37149
|
-
const nextIsFromUser = nextMsg && (_optionalChain([nextMsg, 'access',
|
|
37178
|
+
const nextIsFromUser = nextMsg && (_optionalChain([nextMsg, 'access', _988 => _988.owner, 'optionalAccess', _989 => _989.type]) === OWNER_TYPE.CLIENT || _optionalChain([nextMsg, 'access', _990 => _990.owner, 'optionalAccess', _991 => _991.type]) === OWNER_TYPE.ADMIN);
|
|
37150
37179
|
if (isLastMessage || nextIsFromUser) {
|
|
37151
37180
|
flushAssistantMessage();
|
|
37152
37181
|
}
|
|
@@ -37484,7 +37513,7 @@ function useNatsChatAdapter(config, options = {}) {
|
|
|
37484
37513
|
}, [active, fetchDialogs, loadDialogsPage]);
|
|
37485
37514
|
const sendMessage = _react.useCallback.call(void 0,
|
|
37486
37515
|
async (text, sendOptions) => {
|
|
37487
|
-
const hidden = _nullishCoalesce(_optionalChain([sendOptions, 'optionalAccess',
|
|
37516
|
+
const hidden = _nullishCoalesce(_optionalChain([sendOptions, 'optionalAccess', _992 => _992.hidden]), () => ( false));
|
|
37488
37517
|
setMessages((prev) => [
|
|
37489
37518
|
...prev,
|
|
37490
37519
|
{
|
|
@@ -37648,11 +37677,11 @@ function useNatsChatAdapter(config, options = {}) {
|
|
|
37648
37677
|
// Tokens: live `token_usage` frame / dialog snapshot (`dialogTokenUsage`).
|
|
37649
37678
|
// contextWindow uses the dialog's `contextSize` (the "X / Y" denominator,
|
|
37650
37679
|
// matching the /mingo page). cacheHitRate/breakdown are SSE-only → null.
|
|
37651
|
-
currentProvider: _nullishCoalesce(_nullishCoalesce(_optionalChain([liveModel, 'optionalAccess',
|
|
37652
|
-
currentModelLabel: _nullishCoalesce(_nullishCoalesce(_optionalChain([liveModel, 'optionalAccess',
|
|
37653
|
-
currentContextWindowMaxTokens: _nullishCoalesce(_nullishCoalesce(_optionalChain([dialogTokenUsage, 'optionalAccess',
|
|
37654
|
-
currentInputTokens: _nullishCoalesce(_optionalChain([dialogTokenUsage, 'optionalAccess',
|
|
37655
|
-
currentOutputTokens: _nullishCoalesce(_optionalChain([dialogTokenUsage, 'optionalAccess',
|
|
37680
|
+
currentProvider: _nullishCoalesce(_nullishCoalesce(_optionalChain([liveModel, 'optionalAccess', _993 => _993.provider]), () => ( modelProvider)), () => ( null)),
|
|
37681
|
+
currentModelLabel: _nullishCoalesce(_nullishCoalesce(_optionalChain([liveModel, 'optionalAccess', _994 => _994.modelLabel]), () => ( modelLabel)), () => ( null)),
|
|
37682
|
+
currentContextWindowMaxTokens: _nullishCoalesce(_nullishCoalesce(_optionalChain([dialogTokenUsage, 'optionalAccess', _995 => _995.contextSize]), () => ( _optionalChain([liveModel, 'optionalAccess', _996 => _996.contextWindowMaxTokens]))), () => ( null)),
|
|
37683
|
+
currentInputTokens: _nullishCoalesce(_optionalChain([dialogTokenUsage, 'optionalAccess', _997 => _997.inputTokensSize]), () => ( null)),
|
|
37684
|
+
currentOutputTokens: _nullishCoalesce(_optionalChain([dialogTokenUsage, 'optionalAccess', _998 => _998.outputTokensSize]), () => ( null)),
|
|
37656
37685
|
currentCacheHitRatePct: null,
|
|
37657
37686
|
currentUsageBreakdown: null,
|
|
37658
37687
|
// Dialog management
|
|
@@ -37900,7 +37929,7 @@ function extractIncompleteMessageState(lastMessage) {
|
|
|
37900
37929
|
break;
|
|
37901
37930
|
case "approval_batch": {
|
|
37902
37931
|
const allDone = !!segment.data.executions && segment.data.toolCalls.every(
|
|
37903
|
-
(c) => _optionalChain([segment, 'access',
|
|
37932
|
+
(c) => _optionalChain([segment, 'access', _999 => _999.data, 'access', _1000 => _1000.executions, 'optionalAccess', _1001 => _1001[c.toolExecutionRequestId], 'optionalAccess', _1002 => _1002.status]) === "done"
|
|
37904
37933
|
);
|
|
37905
37934
|
if (segment.status !== "rejected" && !allDone) {
|
|
37906
37935
|
hasIncompleteState = true;
|
|
@@ -37929,6 +37958,15 @@ var SYNTHETIC_REALTIME_ID_PREFIXES = ["assistant-", "user-", "error-"];
|
|
|
37929
37958
|
function isSyntheticRealtimeId(id) {
|
|
37930
37959
|
return SYNTHETIC_REALTIME_ID_PREFIXES.some((prefix) => id.startsWith(prefix));
|
|
37931
37960
|
}
|
|
37961
|
+
function assistantAnswerText(content) {
|
|
37962
|
+
if (typeof content === "string") return content.trim();
|
|
37963
|
+
if (!Array.isArray(content)) return "";
|
|
37964
|
+
const parts = [];
|
|
37965
|
+
for (const seg of content) {
|
|
37966
|
+
if (seg.type === "text") parts.push(seg.text);
|
|
37967
|
+
}
|
|
37968
|
+
return parts.join("\n").trim();
|
|
37969
|
+
}
|
|
37932
37970
|
function flattenMessagePagesChronological(pages) {
|
|
37933
37971
|
if (!pages) return [];
|
|
37934
37972
|
return [...pages].reverse().flatMap((page) => [...page.messages].reverse());
|
|
@@ -37959,20 +37997,20 @@ function mergeHistoryWithRealtime(input) {
|
|
|
37959
37997
|
const seqCoverageKnown = realtimeSeenStreamSeq > 0 && historyMaxStreamSeq > 0;
|
|
37960
37998
|
const historyCoversRealtime = seqCoverageKnown ? historyMaxStreamSeq >= realtimeSeenStreamSeq : null;
|
|
37961
37999
|
const trailing = processedHistory[processedHistory.length - 1];
|
|
37962
|
-
const historyTrailingAssistant = _optionalChain([trailing, 'optionalAccess',
|
|
37963
|
-
const historyBatchId = historyTrailingAssistant && Array.isArray(historyTrailingAssistant.content) ? _nullishCoalesce(_optionalChain([historyTrailingAssistant, 'access',
|
|
38000
|
+
const historyTrailingAssistant = _optionalChain([trailing, 'optionalAccess', _1003 => _1003.role]) === "assistant" ? trailing : null;
|
|
38001
|
+
const historyBatchId = historyTrailingAssistant && Array.isArray(historyTrailingAssistant.content) ? _nullishCoalesce(_optionalChain([historyTrailingAssistant, 'access', _1004 => _1004.content, 'access', _1005 => _1005.find, 'call', _1006 => _1006((s) => s.type === "approval_batch"), 'optionalAccess', _1007 => _1007.data, 'optionalAccess', _1008 => _1008.approvalRequestId]), () => ( null)) : null;
|
|
37964
38002
|
let processedToUse = processedHistory;
|
|
37965
38003
|
const pinnedSyntheticIds = /* @__PURE__ */ new Set();
|
|
37966
38004
|
const droppedSyntheticIds = /* @__PURE__ */ new Set();
|
|
37967
38005
|
if (historyBatchId) {
|
|
37968
38006
|
const batchTwins = existingMessages.filter(
|
|
37969
38007
|
(m) => m.role === "assistant" && Array.isArray(m.content) && m.content.some(
|
|
37970
|
-
(s) => s.type === "approval_batch" && _optionalChain([s, 'access',
|
|
38008
|
+
(s) => s.type === "approval_batch" && _optionalChain([s, 'access', _1009 => _1009.data, 'optionalAccess', _1010 => _1010.approvalRequestId]) === historyBatchId
|
|
37971
38009
|
)
|
|
37972
38010
|
);
|
|
37973
38011
|
const existingWithSameBatch = _nullishCoalesce(batchTwins.find((m) => m.id === streamingMessageId), () => ( batchTwins[batchTwins.length - 1]));
|
|
37974
38012
|
if (existingWithSameBatch && Array.isArray(existingWithSameBatch.content)) {
|
|
37975
|
-
const histSize = Array.isArray(_optionalChain([historyTrailingAssistant, 'optionalAccess',
|
|
38013
|
+
const histSize = Array.isArray(_optionalChain([historyTrailingAssistant, 'optionalAccess', _1011 => _1011.content])) ? historyTrailingAssistant.content.length : 0;
|
|
37976
38014
|
const realtimeSize = existingWithSameBatch.content.length;
|
|
37977
38015
|
if (existingWithSameBatch.id === streamingMessageId || realtimeSize > histSize) {
|
|
37978
38016
|
processedToUse = processedHistory.slice(0, -1);
|
|
@@ -37982,17 +38020,22 @@ function mergeHistoryWithRealtime(input) {
|
|
|
37982
38020
|
}
|
|
37983
38021
|
}
|
|
37984
38022
|
}
|
|
38023
|
+
const lastProcessed = processedToUse[processedToUse.length - 1];
|
|
38024
|
+
const trailingAssistantText = lastProcessed && lastProcessed.role === "assistant" ? assistantAnswerText(lastProcessed.content) : "";
|
|
37985
38025
|
const realtimeMessages = existingMessages.filter((m) => {
|
|
37986
38026
|
if (pinnedSyntheticIds.has(m.id)) return true;
|
|
37987
38027
|
if (droppedSyntheticIds.has(m.id)) return false;
|
|
37988
38028
|
if (processedIds.has(m.id)) return false;
|
|
37989
|
-
if (_optionalChain([rawHistoryIds, 'optionalAccess',
|
|
38029
|
+
if (_optionalChain([rawHistoryIds, 'optionalAccess', _1012 => _1012.has, 'call', _1013 => _1013(m.id)])) return false;
|
|
37990
38030
|
if (m.role === "user" && m.id.startsWith("optimistic-") && typeof m.content === "string") {
|
|
37991
|
-
const canBeInSnapshot = (_nullishCoalesce(_optionalChain([m, 'access',
|
|
38031
|
+
const canBeInSnapshot = (_nullishCoalesce(_optionalChain([m, 'access', _1014 => _1014.timestamp, 'optionalAccess', _1015 => _1015.getTime, 'call', _1016 => _1016()]), () => ( 0))) <= historyFetchedAt;
|
|
37992
38032
|
return !(canBeInSnapshot && processedToUse.some((pm) => pm.role === "user" && pm.content === m.content));
|
|
37993
38033
|
}
|
|
37994
38034
|
if (isSyntheticRealtimeId(m.id) && m.id !== streamingMessageId) {
|
|
37995
|
-
|
|
38035
|
+
if (m.role === "assistant" && trailingAssistantText && assistantAnswerText(m.content) === trailingAssistantText) {
|
|
38036
|
+
return false;
|
|
38037
|
+
}
|
|
38038
|
+
const covered = historyCoversRealtime !== null ? historyCoversRealtime : (_nullishCoalesce(_optionalChain([m, 'access', _1017 => _1017.timestamp, 'optionalAccess', _1018 => _1018.getTime, 'call', _1019 => _1019()]), () => ( 0))) <= historyFetchedAt;
|
|
37996
38039
|
if (covered) return false;
|
|
37997
38040
|
}
|
|
37998
38041
|
return true;
|
|
@@ -38212,7 +38255,7 @@ function useChatDialogManager({
|
|
|
38212
38255
|
const handleConfirmRestore = _react.useCallback.call(void 0, async () => {
|
|
38213
38256
|
if (restoreTarget) {
|
|
38214
38257
|
try {
|
|
38215
|
-
await _optionalChain([unarchiveDialog, 'optionalCall',
|
|
38258
|
+
await _optionalChain([unarchiveDialog, 'optionalCall', _1020 => _1020(restoreTarget.id)]);
|
|
38216
38259
|
} catch (err) {
|
|
38217
38260
|
console.error("[useChatDialogManager] unarchive failed:", err);
|
|
38218
38261
|
return;
|
|
@@ -38312,7 +38355,7 @@ function SourceChip({
|
|
|
38312
38355
|
}) {
|
|
38313
38356
|
const runtime = _chunkPC7YOZ4Icjs.useRequiredChatRuntime.call(void 0, );
|
|
38314
38357
|
const router = _chunkG7UE6RKVcjs.useRouter.call(void 0, );
|
|
38315
|
-
const cta =
|
|
38358
|
+
const cta = _chunkLH7R56RRcjs.resolveSourceRowCTA.call(void 0,
|
|
38316
38359
|
{
|
|
38317
38360
|
sourceRepo: src.sourceRepo,
|
|
38318
38361
|
documentType: src.documentType,
|
|
@@ -38322,15 +38365,15 @@ function SourceChip({
|
|
|
38322
38365
|
targetPlatform: _nullishCoalesce(src.targetPlatform, () => ( null)),
|
|
38323
38366
|
path: src.path
|
|
38324
38367
|
},
|
|
38325
|
-
|
|
38368
|
+
_chunkLH7R56RRcjs.sourceRowCtxFromRuntime.call(void 0, runtime, { baseRoute, chipBasePlatform })
|
|
38326
38369
|
);
|
|
38327
38370
|
const Icon2 = cta.icon;
|
|
38328
38371
|
const icon = /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Icon2, { className: "h-3.5 w-3.5" });
|
|
38329
38372
|
const chipClass = chatChipClass({ tone: "secondary" });
|
|
38330
|
-
const decideTab = (href, targetPlatform) =>
|
|
38373
|
+
const decideTab = (href, targetPlatform) => _chunkLH7R56RRcjs.computeIsNewTab.call(void 0, runtime, href, targetPlatform);
|
|
38331
38374
|
if (src.items && src.items.length > 0) {
|
|
38332
38375
|
const dropdownItems = src.items.map((item) => {
|
|
38333
|
-
const itemCta =
|
|
38376
|
+
const itemCta = _chunkLH7R56RRcjs.resolveSourceRowCTA.call(void 0,
|
|
38334
38377
|
{
|
|
38335
38378
|
sourceRepo: src.sourceRepo,
|
|
38336
38379
|
documentType: item.documentType,
|
|
@@ -38340,7 +38383,7 @@ function SourceChip({
|
|
|
38340
38383
|
targetPlatform: _nullishCoalesce(item.targetPlatform, () => ( null)),
|
|
38341
38384
|
path: item.path
|
|
38342
38385
|
},
|
|
38343
|
-
|
|
38386
|
+
_chunkLH7R56RRcjs.sourceRowCtxFromRuntime.call(void 0, runtime, { baseRoute, chipBasePlatform })
|
|
38344
38387
|
);
|
|
38345
38388
|
const ItemIcon = itemCta.icon;
|
|
38346
38389
|
return {
|
|
@@ -38409,14 +38452,14 @@ function SourceChip({
|
|
|
38409
38452
|
if (handled && !isNewTab && onClose) onClose();
|
|
38410
38453
|
};
|
|
38411
38454
|
if (cta.href && !!src.externalUrl) {
|
|
38412
|
-
const resolvedHref =
|
|
38455
|
+
const resolvedHref = _chunkLH7R56RRcjs.resolveHrefForRuntime.call(void 0, cta.href, runtime);
|
|
38413
38456
|
const isNewTab = decideTab(resolvedHref, _nullishCoalesce(cta.targetPlatform, () => ( null)));
|
|
38414
38457
|
return wrapChip(
|
|
38415
38458
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
38416
38459
|
"a",
|
|
38417
38460
|
{
|
|
38418
38461
|
href: resolvedHref,
|
|
38419
|
-
...
|
|
38462
|
+
..._chunkLH7R56RRcjs.newTabAnchorAttrs.call(void 0, isNewTab),
|
|
38420
38463
|
onClick: buildClickHandler(resolvedHref, null, _nullishCoalesce(cta.targetPlatform, () => ( null)), isNewTab),
|
|
38421
38464
|
className: chipClass,
|
|
38422
38465
|
children: chipBody(src.name)
|
|
@@ -38425,14 +38468,14 @@ function SourceChip({
|
|
|
38425
38468
|
);
|
|
38426
38469
|
}
|
|
38427
38470
|
if (cta.href) {
|
|
38428
|
-
const resolvedHref =
|
|
38471
|
+
const resolvedHref = _chunkLH7R56RRcjs.resolveHrefForRuntime.call(void 0, cta.href, runtime);
|
|
38429
38472
|
const isNewTab = decideTab(resolvedHref, _nullishCoalesce(cta.targetPlatform, () => ( null)));
|
|
38430
38473
|
return wrapChip(
|
|
38431
38474
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
38432
38475
|
"a",
|
|
38433
38476
|
{
|
|
38434
38477
|
href: resolvedHref,
|
|
38435
|
-
...
|
|
38478
|
+
..._chunkLH7R56RRcjs.newTabAnchorAttrs.call(void 0, isNewTab),
|
|
38436
38479
|
onClick: buildClickHandler(resolvedHref, src.path, _nullishCoalesce(cta.targetPlatform, () => ( null)), isNewTab),
|
|
38437
38480
|
className: chipClass,
|
|
38438
38481
|
title: displayName,
|
|
@@ -38559,7 +38602,7 @@ function EmbeddableChatInner({
|
|
|
38559
38602
|
}
|
|
38560
38603
|
}
|
|
38561
38604
|
}, [open, onOpenChange]);
|
|
38562
|
-
const [isOpen = false, setIsOpen] =
|
|
38605
|
+
const [isOpen = false, setIsOpen] = _chunkLH7R56RRcjs.useControllableState.call(void 0, {
|
|
38563
38606
|
prop: open,
|
|
38564
38607
|
defaultProp: _nullishCoalesce(defaultOpen, () => ( false)),
|
|
38565
38608
|
onChange: onOpenChange
|
|
@@ -38601,9 +38644,9 @@ function EmbeddableChatInner({
|
|
|
38601
38644
|
() => ({
|
|
38602
38645
|
fetchCommands: (prefix, signal) => fetchSlashCommands(prefix, signal, commandsUrl),
|
|
38603
38646
|
resolveSourceIcon: (sourceId) => {
|
|
38604
|
-
const iconName =
|
|
38647
|
+
const iconName = _chunkLH7R56RRcjs.getSourceIconName.call(void 0, sourceId);
|
|
38605
38648
|
if (!iconName) return void 0;
|
|
38606
|
-
return { Icon:
|
|
38649
|
+
return { Icon: _chunkLH7R56RRcjs.getIconComponent.call(void 0, iconName), label: sourceId };
|
|
38607
38650
|
},
|
|
38608
38651
|
onAction: (cmd, actionId) => {
|
|
38609
38652
|
dispatchSlashCommandAction(actionId, cmd.id, chatInputRef);
|
|
@@ -38611,7 +38654,7 @@ function EmbeddableChatInner({
|
|
|
38611
38654
|
}),
|
|
38612
38655
|
[commandsUrl]
|
|
38613
38656
|
);
|
|
38614
|
-
const userName = _optionalChain([identityUser, 'optionalAccess',
|
|
38657
|
+
const userName = _optionalChain([identityUser, 'optionalAccess', _1021 => _1021.firstName, 'optionalAccess', _1022 => _1022.trim, 'call', _1023 => _1023()]) || _optionalChain([identityUser, 'optionalAccess', _1024 => _1024.name, 'optionalAccess', _1025 => _1025.split, 'call', _1026 => _1026(" "), 'access', _1027 => _1027[0], 'optionalAccess', _1028 => _1028.trim, 'call', _1029 => _1029()]) || void 0;
|
|
38615
38658
|
const effectiveModes = _react.useMemo.call(void 0, () => {
|
|
38616
38659
|
if (modes) return modes;
|
|
38617
38660
|
const guideOptions = tableIdForDocumentType ? { tableIdForDocumentType } : {};
|
|
@@ -38620,17 +38663,17 @@ function EmbeddableChatInner({
|
|
|
38620
38663
|
const mingoCaps = _react.useMemo.call(void 0, () => {
|
|
38621
38664
|
if (mingoState) {
|
|
38622
38665
|
return {
|
|
38623
|
-
canRename: _nullishCoalesce(_optionalChain([mingoDialogCapabilities, 'optionalAccess',
|
|
38624
|
-
canArchive: _nullishCoalesce(_optionalChain([mingoDialogCapabilities, 'optionalAccess',
|
|
38625
|
-
fetchArchivedDialogs: _optionalChain([mingoDialogCapabilities, 'optionalAccess',
|
|
38626
|
-
unarchiveDialog: _optionalChain([mingoDialogCapabilities, 'optionalAccess',
|
|
38666
|
+
canRename: _nullishCoalesce(_optionalChain([mingoDialogCapabilities, 'optionalAccess', _1030 => _1030.canRename]), () => ( false)),
|
|
38667
|
+
canArchive: _nullishCoalesce(_optionalChain([mingoDialogCapabilities, 'optionalAccess', _1031 => _1031.canArchive]), () => ( false)),
|
|
38668
|
+
fetchArchivedDialogs: _optionalChain([mingoDialogCapabilities, 'optionalAccess', _1032 => _1032.fetchArchivedDialogs]),
|
|
38669
|
+
unarchiveDialog: _optionalChain([mingoDialogCapabilities, 'optionalAccess', _1033 => _1033.unarchiveDialog])
|
|
38627
38670
|
};
|
|
38628
38671
|
}
|
|
38629
38672
|
return {
|
|
38630
|
-
canRename: !!_optionalChain([effectiveModes, 'access',
|
|
38631
|
-
canArchive: !!_optionalChain([effectiveModes, 'access',
|
|
38632
|
-
fetchArchivedDialogs: _optionalChain([effectiveModes, 'access',
|
|
38633
|
-
unarchiveDialog: _optionalChain([effectiveModes, 'access',
|
|
38673
|
+
canRename: !!_optionalChain([effectiveModes, 'access', _1034 => _1034.mingo, 'optionalAccess', _1035 => _1035.renameDialog]),
|
|
38674
|
+
canArchive: !!_optionalChain([effectiveModes, 'access', _1036 => _1036.mingo, 'optionalAccess', _1037 => _1037.archiveDialog]),
|
|
38675
|
+
fetchArchivedDialogs: _optionalChain([effectiveModes, 'access', _1038 => _1038.mingo, 'optionalAccess', _1039 => _1039.fetchArchivedDialogs]),
|
|
38676
|
+
unarchiveDialog: _optionalChain([effectiveModes, 'access', _1040 => _1040.mingo, 'optionalAccess', _1041 => _1041.unarchiveDialog])
|
|
38634
38677
|
};
|
|
38635
38678
|
}, [mingoState, mingoDialogCapabilities, effectiveModes]);
|
|
38636
38679
|
const hasMingoMode = !!effectiveModes.mingo || !!mingoState;
|
|
@@ -38642,7 +38685,7 @@ function EmbeddableChatInner({
|
|
|
38642
38685
|
if (controlledActiveMode === void 0) {
|
|
38643
38686
|
setUncontrolledActiveMode(next);
|
|
38644
38687
|
}
|
|
38645
|
-
_optionalChain([onActiveModeChange, 'optionalCall',
|
|
38688
|
+
_optionalChain([onActiveModeChange, 'optionalCall', _1042 => _1042(next)]);
|
|
38646
38689
|
},
|
|
38647
38690
|
[controlledActiveMode, onActiveModeChange]
|
|
38648
38691
|
);
|
|
@@ -38849,9 +38892,9 @@ function EmbeddableChatInner({
|
|
|
38849
38892
|
const lastAssistantMsg = [...rawMessages].reverse().find((m) => m.role === "assistant");
|
|
38850
38893
|
const lastSources = _react.useMemo.call(void 0, () => {
|
|
38851
38894
|
if (chatLoading) return void 0;
|
|
38852
|
-
const sources = _optionalChain([lastAssistantMsg, 'optionalAccess',
|
|
38895
|
+
const sources = _optionalChain([lastAssistantMsg, 'optionalAccess', _1043 => _1043.sources]);
|
|
38853
38896
|
if (!sources || sources.length === 0) return void 0;
|
|
38854
|
-
const content = _optionalChain([lastAssistantMsg, 'optionalAccess',
|
|
38897
|
+
const content = _optionalChain([lastAssistantMsg, 'optionalAccess', _1044 => _1044.content]) || "";
|
|
38855
38898
|
const citationOrder = [...content.matchAll(/\[(\d+)\]/g)].map(
|
|
38856
38899
|
(m) => parseInt(m[1], 10)
|
|
38857
38900
|
);
|
|
@@ -38898,7 +38941,7 @@ function EmbeddableChatInner({
|
|
|
38898
38941
|
ChatPanelHeader,
|
|
38899
38942
|
{
|
|
38900
38943
|
showBack: hasConversation || guideCanReturnToMingo,
|
|
38901
|
-
title: hasConversation ? _optionalChain([activeDialog, 'optionalAccess',
|
|
38944
|
+
title: hasConversation ? _optionalChain([activeDialog, 'optionalAccess', _1045 => _1045.title]) || "New Chat" : isGuideEmpty ? "Mingo Guide" : "Current Chats",
|
|
38902
38945
|
backAriaLabel: hasConversation ? isViewingArchived ? "Back to archive" : "Back" : "Back to Mingo",
|
|
38903
38946
|
isArchivedView: isViewingArchived,
|
|
38904
38947
|
onBack: hasConversation ? handleBack : () => handleActiveModeChange("mingo"),
|
|
@@ -39003,10 +39046,10 @@ function EmbeddableChatInner({
|
|
|
39003
39046
|
subtitle: _nullishCoalesce(emptyStateGreeting, () => ( void 0)),
|
|
39004
39047
|
...guideWelcome,
|
|
39005
39048
|
onQuickAction: (action) => {
|
|
39006
|
-
_optionalChain([chatInputRef, 'access',
|
|
39049
|
+
_optionalChain([chatInputRef, 'access', _1046 => _1046.current, 'optionalAccess', _1047 => _1047.setValue, 'call', _1048 => _1048(
|
|
39007
39050
|
_nullishCoalesce(action.prompt, () => ( action.label))
|
|
39008
39051
|
)]);
|
|
39009
|
-
_optionalChain([chatInputRef, 'access',
|
|
39052
|
+
_optionalChain([chatInputRef, 'access', _1049 => _1049.current, 'optionalAccess', _1050 => _1050.focus, 'call', _1051 => _1051()]);
|
|
39010
39053
|
},
|
|
39011
39054
|
children: (chipCommands.length > 0 || !commandsLoaded) && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "shrink-0 overflow-hidden rounded-md border border-ods-border", children: [
|
|
39012
39055
|
!commandsLoaded && chipCommands.length === 0 && SKELETON_ROW_VARIANTS.map((variant, i) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -39840,4 +39883,4 @@ function EmbeddableChatInner({
|
|
|
39840
39883
|
|
|
39841
39884
|
|
|
39842
39885
|
exports.Label = Label; exports.AllowedDomainsInput = AllowedDomainsInput; exports.Autocomplete = Autocomplete; exports.CheckboxBlock = CheckboxBlock; exports.CheckboxWithDescription = CheckboxWithDescription; exports.Select = Select; exports.SelectGroup = SelectGroup; exports.SelectValue = SelectValue; exports.SelectTrigger = SelectTrigger; exports.SelectScrollUpButton = SelectScrollUpButton; exports.SelectScrollDownButton = SelectScrollDownButton; exports.SelectContent = SelectContent; exports.SelectLabel = SelectLabel; exports.SelectItem = SelectItem; exports.SelectSeparator = SelectSeparator; exports.DatePicker = DatePicker; exports.DatePickerInput = DatePickerInput; exports.DatePickerInputSimple = DatePickerInputSimple; exports.HoneypotField = HoneypotField; exports.ProgressBar = ProgressBar; exports.InfoCard = InfoCard; exports.InfoRow = InfoRow; exports.InputTrigger = InputTrigger; exports.InteractiveCard = InteractiveCard; exports.MediaTypeSelector = MediaTypeSelector; exports.noDataIconClasses = noDataIconClasses; exports.noDataActionsVariants = noDataActionsVariants; exports.NoDataMessage = NoDataMessage; exports.NoDataAction = NoDataAction; exports.NoDataActions = NoDataActions; exports.NoData = NoData; exports.PageLoader = PageLoader; exports.CompactPageLoader = CompactPageLoader; exports.RadioGroup = RadioGroup; exports.RadioGroupItem = RadioGroupItem; exports.RadioGroupBlock = RadioGroupBlock; exports.Switch = Switch; exports.badgeVariants = badgeVariants; exports.Badge = Badge; exports.TagsInput = TagsInput; exports.TagsManager = TagsManager; exports.Textarea = Textarea; exports.AlertDialog = AlertDialog; exports.AlertDialogTrigger = AlertDialogTrigger; exports.AlertDialogPortal = AlertDialogPortal; exports.AlertDialogOverlay = AlertDialogOverlay; exports.AlertDialogContent = AlertDialogContent; exports.AlertDialogHeader = AlertDialogHeader; exports.AlertDialogFooter = AlertDialogFooter; exports.AlertDialogTitle = AlertDialogTitle; exports.AlertDialogDescription = AlertDialogDescription; exports.AlertDialogAction = AlertDialogAction; exports.AlertDialogCancel = AlertDialogCancel; exports.AspectRatio = AspectRatio; exports.Dialog = Dialog; exports.DialogTrigger = DialogTrigger; exports.DialogPortal = DialogPortal; exports.DialogClose = DialogClose; exports.DialogOverlay = DialogOverlay; exports.DialogContent = DialogContent; exports.DialogHeader = DialogHeader; exports.DialogFooter = DialogFooter; exports.DialogTitle = DialogTitle; exports.DialogDescription = DialogDescription; exports.ImageGalleryModal = ImageGalleryModal; exports.Modal = Modal2; exports.ModalContent = ModalContent2; exports.ModalHeader = ModalHeader2; exports.ModalTitle = ModalTitle2; exports.ModalFooter = ModalFooter2; exports.Modal2 = Modal; exports.ModalContent2 = ModalContent; exports.ModalHeader2 = ModalHeader; exports.ModalTitle2 = ModalTitle; exports.ModalFooter2 = ModalFooter; exports.Separator = Separator2; exports.Sheet = Sheet; exports.SheetTrigger = SheetTrigger; exports.SheetClose = SheetClose; exports.SheetPortal = SheetPortal; exports.SheetOverlay = SheetOverlay; exports.SheetContent = SheetContent; exports.SheetHeader = SheetHeader; exports.SheetFooter = SheetFooter; exports.SheetTitle = SheetTitle; exports.SheetDescription = SheetDescription; exports.Drawer = Drawer; exports.DrawerTrigger = DrawerTrigger; exports.DrawerClose = DrawerClose; exports.DrawerPortal = DrawerPortal; exports.DrawerOverlay = DrawerOverlay; exports.DrawerContent = DrawerContent; exports.DrawerHeader = DrawerHeader; exports.DrawerTitle = DrawerTitle; exports.DrawerDescription = DrawerDescription; exports.DrawerBody = DrawerBody; exports.DrawerFooter = DrawerFooter; exports.Accordion = Accordion; exports.AccordionItem = AccordionItem; exports.AccordionTrigger = AccordionTrigger; exports.AccordionContent = AccordionContent; exports.Breadcrumb = Breadcrumb; exports.BreadcrumbList = BreadcrumbList; exports.BreadcrumbItem = BreadcrumbItem; exports.BreadcrumbLink = BreadcrumbLink; exports.BreadcrumbPage = BreadcrumbPage; exports.BreadcrumbSeparator = BreadcrumbSeparator; exports.BreadcrumbEllipsis = BreadcrumbEllipsis; exports.MenubarMenu = MenubarMenu; exports.MenubarGroup = MenubarGroup; exports.MenubarPortal = MenubarPortal; exports.MenubarSub = MenubarSub; exports.MenubarRadioGroup = MenubarRadioGroup; exports.Menubar = Menubar; exports.MenubarTrigger = MenubarTrigger; exports.MenubarSubTrigger = MenubarSubTrigger; exports.MenubarSubContent = MenubarSubContent; exports.MenubarContent = MenubarContent; exports.MenubarItem = MenubarItem; exports.MenubarCheckboxItem = MenubarCheckboxItem; exports.MenubarRadioItem = MenubarRadioItem; exports.MenubarLabel = MenubarLabel; exports.MenubarSeparator = MenubarSeparator; exports.MenubarShortcut = MenubarShortcut; exports.NavigationMenu = NavigationMenu; exports.NavigationMenuList = NavigationMenuList; exports.NavigationMenuItem = NavigationMenuItem; exports.navigationMenuTriggerStyle = navigationMenuTriggerStyle; exports.NavigationMenuTrigger = NavigationMenuTrigger; exports.NavigationMenuContent = NavigationMenuContent; exports.NavigationMenuLink = NavigationMenuLink; exports.NavigationMenuViewport = NavigationMenuViewport; exports.NavigationMenuIndicator = NavigationMenuIndicator; exports.TabContent = TabContent; exports.TabNavigation = TabNavigation; exports.getTabById = getTabById; exports.getTabComponent = getTabComponent; exports.Alert = Alert; exports.AlertTitle = AlertTitle; exports.AlertDescription = AlertDescription; exports.Progress = Progress; exports.ReleaseChangelogSection = ReleaseChangelogSection; exports.StatusIndicator = StatusIndicator; exports.HoverDropdown = HoverDropdown; exports.ApprovalRequestMessage = ApprovalRequestMessage; exports.ExpandChevron = ExpandChevron; exports.useCollapsible = useCollapsible; exports.getCommandText = getCommandText; exports.ArgRow = ArgRow; exports.ResultBlock = ResultBlock; exports.ApprovalBatchMessage = ApprovalBatchMessage; exports.ContextCompactionDisplay = ContextCompactionDisplay; exports.ThinkingDisplay = ThinkingDisplay; exports.ErrorMessageDisplay = ErrorMessageDisplay; exports.ColorSwatch = ColorSwatch; exports.getPlatformAccentColor = getPlatformAccentColor; exports.getCurrentPlatform = getCurrentPlatform; exports.HEX_PATTERN = HEX_PATTERN; exports.resolveTicketStatus = resolveTicketStatus; exports.getTicketStatusConfig = getTicketStatusConfig; exports.getTicketStatusTag = getTicketStatusTag; exports.kindToCanonicalStatus = kindToCanonicalStatus; exports.usesCanonicalStatusStyle = usesCanonicalStatusStyle; exports.resolveStatusTagProps = resolveStatusTagProps; exports.TicketStatusTag = TicketStatusTag; exports.ChatContainer = ChatContainer; exports.ChatHeader = ChatHeader; exports.ChatContent = ChatContent; exports.ChatFooter = ChatFooter; exports.ChatTypingIndicator = ChatTypingIndicator; exports.MingoOnboardingCard = MingoOnboardingCard; exports.SlashCommandSuggestions = SlashCommandSuggestions; exports.ChatInput = ChatInput; exports.ToolExecutionDisplay = ToolExecutionDisplay; exports.remarkCardLinks = remarkCardLinks; exports.BlockCard = BlockCard; exports.MemoizedChatMessageEnhanced = MemoizedChatMessageEnhanced; exports.ChatMessageSkeleton = ChatMessageSkeleton; exports.ChatMessageListSkeleton = ChatMessageListSkeleton; exports.MESSAGE_TYPE = MESSAGE_TYPE; exports.SCROLL_ANCHOR = SCROLL_ANCHOR; exports.ChatMessageList = ChatMessageList; exports.useProxiedImageUrl = useProxiedImageUrl; exports.ChatMessageRow = ChatMessageRow; exports.ChatMessageRowSkeleton = ChatMessageRowSkeleton; exports.ChatQuickAction = ChatQuickAction; exports.ChatQuickActionRow = ChatQuickActionRow; exports.ChatTicketItem = ChatTicketItem; exports.ChatTicketList = ChatTicketList; exports.MingoOnboardingCardSkeleton = MingoOnboardingCardSkeleton; exports.MingoOnboardingListSkeleton = MingoOnboardingListSkeleton; exports.MingoChatHistorySkeleton = MingoChatHistorySkeleton; exports.MingoChatHistory = MingoChatHistory; exports.MingoWelcome = MingoWelcome; exports.GuideWelcome = GuideWelcome; exports.TooltipProvider = TooltipProvider; exports.Tooltip = Tooltip; exports.TooltipTrigger = TooltipTrigger; exports.TooltipContent = TooltipContent; exports.GuideModeBanner = GuideModeBanner; exports.RenameChatModal = RenameChatModal; exports.ArchiveChatModal = ArchiveChatModal; exports.UnarchiveChatModal = UnarchiveChatModal; exports.ChatDialogModals = ChatDialogModals; exports.ChatHeaderIconButton = ChatHeaderIconButton; exports.COMPACT_HEADER_BUTTON = COMPACT_HEADER_BUTTON; exports.ChatPanelHeader = ChatPanelHeader; exports.CHAT_ATTACHMENT_VIEW_URL_PREFIX = CHAT_ATTACHMENT_VIEW_URL_PREFIX; exports.CHAT_ATTACHMENT_VIEW_TOKEN_QUERY_PARAM = CHAT_ATTACHMENT_VIEW_TOKEN_QUERY_PARAM; exports.ANTHROPIC_SUPPORTED_IMAGE_MIME = ANTHROPIC_SUPPORTED_IMAGE_MIME; exports.buildChatAttachmentViewUrl = buildChatAttachmentViewUrl; exports.escapeMarkdownInline = escapeMarkdownInline; exports.formatChatAttachmentMarkdownForBubble = formatChatAttachmentMarkdownForBubble; exports.CHAT_ATTACHMENT_VIEW_URL_PREFIX_REGEX_ESCAPED = CHAT_ATTACHMENT_VIEW_URL_PREFIX_REGEX_ESCAPED; exports.CHAT_ATTACHMENT_MARKDOWN_PATTERN = CHAT_ATTACHMENT_MARKDOWN_PATTERN; exports.stripChatAttachmentMarkdown = stripChatAttachmentMarkdown; exports.CHAT_ATTACHMENT_MIME_TYPES = CHAT_ATTACHMENT_MIME_TYPES; exports.CHAT_ATTACHMENT_CONCURRENT_UPLOADS_PER_USER = CHAT_ATTACHMENT_CONCURRENT_UPLOADS_PER_USER; exports.ChatAttachmentAddButton = ChatAttachmentAddButton; exports.ChatAttachmentChipStrip = ChatAttachmentChipStrip; exports.HoverCard = HoverCard; exports.HoverCardTrigger = HoverCardTrigger; exports.HoverCardContent = HoverCardContent; exports.ModelDisplay = ModelDisplay; exports.ChatComposer = ChatComposer; exports.ChatArchivePage = ChatArchivePage; exports.DialogListItem = DialogListItem; exports.ChatSidebar = ChatSidebar; exports.executeNavigation = executeNavigation; exports.executeNavigationImperative = executeNavigationImperative; exports.handleChatNavClick = handleChatNavClick; exports.NavLinkAnchorViaRuntime = NavLinkAnchorViaRuntime; exports.SourceActionButton = SourceActionButton; exports.FlamingoLogo = FlamingoLogo; exports.OpenmspLogo = OpenmspLogo; exports.PlatformBadge = PlatformBadge; exports.AdminContentCard = AdminContentCard; exports.getProxiedImageUrl = getProxiedImageUrl2; exports.WhatIShippedCard = WhatIShippedCard; exports.WhatIShippedCardSkeleton = WhatIShippedCardSkeleton; exports.ChatVideoEntityCard = ChatVideoEntityCard; exports.ProductReleaseCard = ProductReleaseCard; exports.ProductReleaseCardSkeleton = ProductReleaseCardSkeleton; exports.formatReleaseDate = formatReleaseDate; exports.formatDateShort = formatDateShort; exports.formatDateSlashUTC = formatDateSlashUTC; exports.resolveReleaseCover = resolveReleaseCover; exports.releaseTypeToBadgeColor = releaseTypeToBadgeColor; exports.defaultBuildProductReleaseCardProps = defaultBuildProductReleaseCardProps; exports.buildProductReleaseCardProps = buildProductReleaseCardProps; exports.BlogCardSkeleton = BlogCardSkeleton; exports.BlogCard = BlogCard; exports.CaseStudyCardSkeleton = CaseStudyCardSkeleton; exports.CaseStudyCard = CaseStudyCard; exports.CustomerInterviewCardSkeleton = CustomerInterviewCardSkeleton; exports.CustomerInterviewCard = CustomerInterviewCard; exports.formatInvestorUpdatePeriod = formatInvestorUpdatePeriod; exports.InvestorUpdateCardSkeleton = InvestorUpdateCardSkeleton; exports.InvestorUpdateCard = InvestorUpdateCard; exports.RoadmapVoteButton = RoadmapVoteButton; exports.getStatusColorScheme = getStatusColorScheme; exports.CUSTOM_ITEM_ID = CUSTOM_ITEM_ID; exports.getTaskTypeLabel = getTaskTypeLabel; exports.TaskTypeIcon = TaskTypeIcon; exports.RoadmapCardSkeleton = RoadmapCardSkeleton; exports.RoadmapCard = RoadmapCard; exports.GitHubActivityCard = GitHubActivityCard; exports.GitHubActivityCardSkeleton = GitHubActivityCardSkeleton; exports.SlackMessageCard = SlackMessageCard; exports.SlackMessageCardSkeleton = SlackMessageCardSkeleton; exports.HubspotTicketCard = HubspotTicketCard; exports.HubspotTicketCardSkeleton = HubspotTicketCardSkeleton; exports.DataRoomDocCard = DataRoomDocCard; exports.DataRoomDocCardSkeleton = DataRoomDocCardSkeleton; exports.ProgramCardSkeleton = ProgramCardSkeleton; exports.ProgramCard = ProgramCard; exports.CampaignCardAdmin = CampaignCardAdmin; exports.CampaignCardAdminSkeleton = CampaignCardAdminSkeleton; exports.GenericEntityCard = GenericEntityCard; exports.GenericEntityCardSkeleton = GenericEntityCardSkeleton; exports.extractItems = extractItems; exports.extractItemId = extractItemId; exports.useChatCardItem = useChatCardItem; exports.ChatCardLoader = ChatCardLoader; exports.renderChatInlineEntityCard = renderChatInlineEntityCard; exports.CHAT_TYPE = CHAT_TYPE; exports.OWNER_TYPE = OWNER_TYPE; exports.MESSAGE_ROLE = MESSAGE_ROLE; exports.ASSISTANT_TYPE = ASSISTANT_TYPE; exports.AUTHOR_TYPE = AUTHOR_TYPE; exports.APPROVAL_STATUS = APPROVAL_STATUS; exports.CONNECTION_STATUS = CONNECTION_STATUS; exports.buildChatRefKey = buildChatRefKey; exports.isStructuredContent = isStructuredContent; exports.normalizeContent = normalizeContent2; exports.NETWORK_CONFIG = NETWORK_CONFIG; exports.transformEventToProgram = transformEventToProgram; exports.transformPodcastToProgram = transformPodcastToProgram; exports.transformWebinarToProgram = transformWebinarToProgram; exports.useChunkCatchup = useChunkCatchup; exports.useJetStreamDialogSubscription = useJetStreamDialogSubscription; exports.useNatsDialogSubscription = useNatsDialogSubscription; exports.buildNatsWsUrl = buildNatsWsUrl; exports.parseChunkToAction = parseChunkToAction; exports.isControlChunk = isControlChunk; exports.isErrorChunk = isErrorChunk; exports.isMetadataChunk = isMetadataChunk; exports.extractTextFromChunk = extractTextFromChunk; exports.MessageSegmentAccumulator = MessageSegmentAccumulator; exports.createMessageSegmentAccumulator = createMessageSegmentAccumulator; exports.useRealtimeChunkProcessor = useRealtimeChunkProcessor; exports.fetchSlashCommands = fetchSlashCommands; exports.useSlashCommands = useSlashCommands; exports.useSlashCommandRegistry = useSlashCommandRegistry; exports.useChatAttachments = useChatAttachments; exports.useChatAttachmentImageGallery = useChatAttachmentImageGallery; exports.ChatIdentityProvider = ChatIdentityProvider; exports.useChatIdentity = useChatIdentity; exports.useCloseOnNavigation = useCloseOnNavigation; exports.useSSE = useSSE; exports.useChat = useChat; exports.SCROLL_ANCHOR_WIRE_KEY = SCROLL_ANCHOR_WIRE_KEY; exports.parseScrollAnchor = parseScrollAnchor; exports.AUTO_CONTINUATION_DIRECTIVE_PREFIX = AUTO_CONTINUATION_DIRECTIVE_PREFIX; exports.buildAutoContinuationDirective = buildAutoContinuationDirective; exports.flattenAssistantContent = flattenAssistantContent; exports.parseWireCommandOverride = parseWireCommandOverride; exports.sanitizeTitleForChat = sanitizeTitleForChat; exports.formatSingularLookupInvocation = formatSingularLookupInvocation; exports.extractEntityIdFilter = extractEntityIdFilter; exports.buildDiscussAddendum = buildDiscussAddendum; exports.useSseChatAdapter = useSseChatAdapter; exports.processHistoricalMessages = processHistoricalMessages; exports.extractErrorMessages = extractErrorMessages; exports.processHistoricalMessagesWithErrors = processHistoricalMessagesWithErrors; exports.useNatsChatAdapter = useNatsChatAdapter; exports.useUnifiedChat = useUnifiedChat; exports.extractIncompleteMessageState = extractIncompleteMessageState; exports.SYNTHETIC_REALTIME_ID_PREFIXES = SYNTHETIC_REALTIME_ID_PREFIXES; exports.flattenMessagePagesChronological = flattenMessagePagesChronological; exports.maxPersistedStreamSeq = maxPersistedStreamSeq; exports.mergeHistoryWithRealtime = mergeHistoryWithRealtime; exports.computeHistoryPrepend = computeHistoryPrepend; exports.CHIP_ACTION_BUTTON_CLASS = CHIP_ACTION_BUTTON_CLASS; exports.chatChipClass = chatChipClass; exports.clickupTaskUrl = clickupTaskUrl; exports.EmbeddableChat = EmbeddableChat; exports.FilterCheckboxItem = FilterCheckboxItem; exports.TagKeyValueFilter = TagKeyValueFilter; exports.FilterModal = FilterModal; exports.PageContainer = PageContainer; exports.ListPageContainer = ListPageContainer; exports.DetailPageContainer = DetailPageContainer; exports.FormPageContainer = FormPageContainer; exports.ContentPageContainer = ContentPageContainer; exports.ListPageLayout = ListPageLayout; exports.toggleVariants = toggleVariants; exports.Toggle = Toggle; exports.ToggleGroup = ToggleGroup; exports.ToggleGroupItem = ToggleGroupItem; exports.delay = delay; exports.generateRandomString = generateRandomString; exports.truncateString = truncateString; exports.serializeJsonLd = serializeJsonLd; exports.deepClone = deepClone; exports.getSlackCommunityJoinUrl = getSlackCommunityJoinUrl; exports.OS_PLATFORMS = OS_PLATFORMS; exports.DEFAULT_OS_PLATFORM = DEFAULT_OS_PLATFORM; exports.isValidEmailDomain = isValidEmailDomain; exports.validateEmailDomain = validateEmailDomain; exports.validateEmailDomainList = validateEmailDomainList; exports.cleanEmailDomain = cleanEmailDomain; exports.getConfidenceColorClass = getConfidenceColorClass; exports.getConfidenceLevel = getConfidenceLevel; exports.getConfidenceBorderClass = getConfidenceBorderClass; exports.getConfidenceTextClass = getConfidenceTextClass; exports.getConfidenceBgClass = getConfidenceBgClass; exports.getConfidenceLabel = getConfidenceLabel; exports.DEV_SECTION_PARAM_KEYS = DEV_SECTION_PARAM_KEYS; exports.normalizeToolType = normalizeToolType; exports.normalizeToolTypeWithFallback = normalizeToolTypeWithFallback; exports.toToolLabel = toToolLabel; exports.isValidToolType = isValidToolType; exports.getToolTypeAliases = getToolTypeAliases; exports.getToolLabel = getToolLabel; exports.ShellTypeValues = ShellTypeValues; exports.SHELL_TYPES = SHELL_TYPES; exports.shellLabels = shellLabels; exports.getShellLabel = getShellLabel; exports.getShellIcon = getShellIcon; exports.OSTypeValues = OSTypeValues; exports.OS_TYPES = OS_TYPES; exports.osLabels = osLabels; exports.normalizeOSType = normalizeOSType; exports.getOSLabel = getOSLabel; exports.getOSIcon = getOSIcon; exports.getOSTypeDefinition = getOSTypeDefinition; exports.getOSPlatformId = getOSPlatformId; exports.isOSPlatform = isOSPlatform; exports.getCountryPhoneData = getCountryPhoneData; exports.getCountryByCode = getCountryByCode; exports.validatePhoneNumber = validatePhoneNumber; exports.formatPhoneE164 = formatPhoneE164; exports.GENERIC_EMAIL_DOMAINS = GENERIC_EMAIL_DOMAINS; exports.extractDomainFromEmail = extractDomainFromEmail; exports.normalizeDomain = normalizeDomain; exports.isGenericDomain = isGenericDomain; exports.hasGenericEmailDomain = hasGenericEmailDomain; exports.isGenericWebsiteDomain = isGenericWebsiteDomain; exports.DESIGN_PALETTE = DESIGN_PALETTE; exports.hexToRgb = hexToRgb2; exports.getContrastRatio = getContrastRatio; exports.extractDominantColor = extractDominantColor; exports.getBestContrastColor = getBestContrastColor; exports.analyzeImageColor = analyzeImageColor; exports.extractImageEdgeColorAsync = extractImageEdgeColorAsync; exports.formatTicketRelativeTime = formatTicketRelativeTime; exports.formatTicketFullTimestamp = formatTicketFullTimestamp; exports.formatRelativeTime = formatRelativeTime; exports.formatAbsoluteDate = formatAbsoluteDate; exports.formatDateTime = formatDateTime; exports.getDetailedTimeDifference = getDetailedTimeDifference; exports.isToday = isToday; exports.isWithinMinutes = isWithinMinutes; exports.createUTCTimestamp = createUTCTimestamp; exports.readLeadingDecisionFrame = readLeadingDecisionFrame; exports.AVAILABLE_SVG_ICONS = AVAILABLE_SVG_ICONS; exports.releaseTypeOptions = releaseTypeOptions; exports.releaseStatusOptions = releaseStatusOptions; exports.changelogLabels = changelogLabels; exports.SEMVER_REGEX = SEMVER_REGEX; exports.TASK_TYPE_LABELS = TASK_TYPE_LABELS; exports.TASK_TYPE_TEXT_COLORS = TASK_TYPE_TEXT_COLORS; exports.TMCG_ROLES = TMCG_ROLES; exports.TMCG_ROLE_DISPLAY_NAMES = TMCG_ROLE_DISPLAY_NAMES; exports.TMCG_SOCIAL_PLATFORMS = TMCG_SOCIAL_PLATFORMS; exports.ROADMAP_STATUS_OPTIONS = ROADMAP_STATUS_OPTIONS; exports.DELIVERY_TASK_TYPE_OPTIONS = DELIVERY_TASK_TYPE_OPTIONS; exports.TICKET_STATUS_OPTIONS = TICKET_STATUS_OPTIONS; exports.OPENFRAME_DEV_SECTIONS = OPENFRAME_DEV_SECTIONS; exports.scrollElementIntoView = scrollElementIntoView; exports.canonicalContentRefType = canonicalContentRefType; exports.buildListUrl = buildListUrl; exports.CONTENT_REF_GROUPS = CONTENT_REF_GROUPS; exports.getContentRefLabel = getContentRefLabel; exports.getContentRefLabelOrTitleCase = getContentRefLabelOrTitleCase; exports.orderContentRefTypes = orderContentRefTypes; exports.buildSuggestionUrl = buildSuggestionUrl; exports.BenefitCard = BenefitCard; exports.BenefitCardGrid = BenefitCardGrid; exports.BrandAssociationCard = BrandAssociationCard; exports.BrandAssociationGrid = BrandAssociationGrid; exports.BulletList = BulletList; exports.ChevronButton = ChevronButton; exports.CircularProgress = CircularProgress; exports.CheckIcon = CheckIcon2; exports.XIcon = XIcon; exports.MinusIcon = MinusIcon; exports.CheckCircleIcon = CheckCircleIcon2; exports.XCircleIcon = XCircleIcon; exports.FloatingTooltip = FloatingTooltip; exports.DashboardInfoCard = DashboardInfoCard; exports.OSTypeBadge = OSTypeBadge; exports.OSTypeIcon = OSTypeIcon; exports.OSTypeLabel = OSTypeLabel; exports.DeviceCard = DeviceCard; exports.DeviceCardCompact = DeviceCardCompact; exports.FeatureCardGrid = FeatureCardGrid; exports.FeatureList = FeatureList; exports.TruncateText = TruncateText; exports.HighlightCard = HighlightCard; exports.HighlightCardGrid = HighlightCardGrid; exports.IconsBlock = IconsBlock; exports.DropdownButton = DropdownButton; exports.MoreActionsMenu = MoreActionsMenu; exports.OrganizationCard = OrganizationCard; exports.ServiceCard = ServiceCard; exports.Slider = Slider; exports.TabSelector = TabSelector; exports.TitleContentBlock = TitleContentBlock; exports.ContentLoader = ContentLoader; exports.CardLoader = CardLoader; exports.FormLoader = FormLoader; exports.DetailLoader = DetailLoader; exports.ListLoader = ListLoader; exports.Pagination = Pagination; exports.PaginationContent = PaginationContent; exports.PaginationItem = PaginationItem; exports.PaginationLink = PaginationLink; exports.PaginationEllipsis = PaginationEllipsis; exports.PaginationPrevious = PaginationPrevious; exports.PaginationNext = PaginationNext; exports.init_pagination = init_pagination; exports.CursorPagination = CursorPagination; exports.CursorPaginationSimple = CursorPaginationSimple; exports.TableEmptyState = TableEmptyState; exports.DynamicThemeProvider = DynamicThemeProvider; exports.useDynamicTheme = useDynamicTheme; exports.THEME_STORAGE_KEY = THEME_STORAGE_KEY; exports.THEME_ATTRIBUTE = THEME_ATTRIBUTE; exports.DEFAULT_THEME = DEFAULT_THEME; exports.ThemeProvider = ThemeProvider; exports.useTheme = useTheme; exports.useThemeToggle = useThemeToggle; exports.ArrayEntryManager = ArrayEntryManager; exports.ProviderButton = ProviderButton; exports.AuthProvidersList = AuthProvidersList; exports.ChangelogManager = ChangelogManager; exports.ChangelogSectionsManager = ChangelogSectionsManager; exports.ClickUpTasksManager = ClickUpTasksManager; exports.CommandBox = CommandBox; exports.ErrorBoundary = ErrorBoundary; exports.SectionSelector = SectionSelector; exports.FigmaPrototypeViewer = FigmaPrototypeViewer; exports.FiltersDropdown = FiltersDropdown; exports.useFiltersDropdown = useFiltersDropdown; exports.GitHubReleasesManager = GitHubReleasesManager; exports.KnowledgeBaseLinksManager = KnowledgeBaseLinksManager; exports.LoadingProvider = LoadingProvider; exports.useLoading = useLoading; exports.MediaGalleryManager = MediaGalleryManager; exports.MoreAboutButton = MoreAboutButton; exports.OSTypeBadgeGroup = OSTypeBadgeGroup; exports.ParallaxImageShowcase = ParallaxImageShowcase; exports.PathsDisplay = PathsDisplay; exports.OPENFRAME_PATHS = OPENFRAME_PATHS; exports.getOpenFramePaths = getOpenFramePaths; exports.PlatformFilterComponent = PlatformFilterComponent; exports.PushButtonSelector = PushButtonSelector; exports.ReleaseMediaManager = ReleaseMediaManager; exports.SelectButton = SelectButton; exports.SEOEditorPreview = SEOEditorPreview; exports.SocialLinksManager = SocialLinksManager; exports.StartWithOpenFrameButton = StartWithOpenFrameButton; exports.StatusFilterComponent = StatusFilterComponent; exports.TagsSelector = TagsSelector; exports.VideoSourceSelector = VideoSourceSelector; exports.ConfidenceBadge = ConfidenceBadge; exports.TranscriptSummaryEditor = TranscriptSummaryEditor; exports.AIEnrichButton = AIEnrichButton; exports.AIWarningsSection = AIWarningsSection; exports.AIEnrichSection = AIEnrichSection; exports.HighlightVideoSection = HighlightVideoSection; exports.HighlightConfigSection = HighlightConfigSection; exports.EntitySummaryEditor = EntitySummaryEditor; exports.AIStatusIndicator = AIStatusIndicator; exports.AIRequiredBadge = AIRequiredBadge; exports.TranscribeSummarizeSection = TranscribeSummarizeSection; exports.VideoClipsSection = VideoClipsSection; exports.HighlightGenerationSection = HighlightGenerationSection; exports.HighlightVideoPreview = HighlightVideoPreview; exports.TranscribeAndSummarizeCombinedSection = TranscribeAndSummarizeCombinedSection; exports.HighlightVideoCombinedSection = HighlightVideoCombinedSection; exports.ViewToggle = ViewToggle; exports.PolicyConfigurationPanel = PolicyConfigurationPanel; exports.PhoneInput = PhoneInput; exports.WaitlistForm = WaitlistForm; exports.NotificationsProvider = NotificationsProvider; exports.useNotifications = useNotifications; exports.useOptionalNotifications = useOptionalNotifications; exports.NotificationTile = NotificationTile; exports.NotificationDrawer = NotificationDrawer; exports.NotificationPopups = NotificationPopups; exports.ADMIN_APPROVAL_REQUEST_CONTEXT_TYPE = ADMIN_APPROVAL_REQUEST_CONTEXT_TYPE; exports.isApprovalNotification = isApprovalNotification; exports.getApprovalMeta = getApprovalMeta; exports.resolutionToStatus = resolutionToStatus; exports.approvalMetaToBatchData = approvalMetaToBatchData; exports.ApprovalRequestNotificationTile = ApprovalRequestNotificationTile; exports.BoardColumnHeader = BoardColumnHeader; exports.tintOnDark = tintOnDark; exports.TicketCard = TicketCard; exports.TicketCardSkeleton = TicketCardSkeleton; exports.BoardColumn = BoardColumn; exports.useBoardCollapse = useBoardCollapse; exports.Board = Board; exports.columnFromTicketStatus = columnFromTicketStatus; exports.groupTicketsByStatus = groupTicketsByStatus; exports.TicketStatusConfigList = TicketStatusConfigList; exports.TableHeader = TableHeader; exports.TableCell = TableCell; exports.TableCardSkeleton = TableCardSkeleton; exports.TableRow = TableRow; exports.Table = Table; exports.TableDescriptionCell = TableDescriptionCell; exports.TableTimestampCell = TableTimestampCell; exports.QueryReportTableHeader = QueryReportTableHeader; exports.QueryReportTableRow = QueryReportTableRow; exports.QueryReportTableSkeleton = QueryReportTableSkeleton; exports.deriveColumns = deriveColumns; exports.exportToCSV = exportToCSV; exports.QueryReportTable = QueryReportTable; exports.useDataTableContext = useDataTableContext; exports.DataTableRoot = DataTableRoot; exports.getHideClasses = getHideClasses2; exports.alignJustify = alignJustify; exports.multiSelectFilterFn = multiSelectFilterFn; exports.DataTableHeader = DataTableHeader; exports.DataTableEmpty = DataTableEmpty; exports.ROW_HEIGHT_DESKTOP = ROW_HEIGHT_DESKTOP2; exports.ROW_HEIGHT_MOBILE = ROW_HEIGHT_MOBILE2; exports.DataTableSkeleton = DataTableSkeleton; exports.DataTableRow = DataTableRow; exports.DataTableBody = DataTableBody; exports.DataTableInfiniteFooter = DataTableInfiniteFooter; exports.DataTableCursorFooter = DataTableCursorFooter; exports.DataTableRowCount = DataTableRowCount; exports.useDataTable = useDataTable; exports.DataTable = DataTable; exports.flexRender = _reacttable.flexRender; exports.createColumnHelper = _reacttable.createColumnHelper; exports.getCoreRowModel = _reacttable.getCoreRowModel; exports.getExpandedRowModel = _reacttable.getExpandedRowModel; exports.getFacetedRowModel = _reacttable.getFacetedRowModel; exports.getFacetedUniqueValues = _reacttable.getFacetedUniqueValues; exports.getFilteredRowModel = _reacttable.getFilteredRowModel; exports.getGroupedRowModel = _reacttable.getGroupedRowModel; exports.getPaginationRowModel = _reacttable.getPaginationRowModel; exports.getSortedRowModel = _reacttable.getSortedRowModel; exports.FilterListItem = FilterListItem; exports.FilterList = FilterList; exports.TagSearchInput = TagSearchInput; exports.MarkdownEditor = MarkdownEditor; exports.FileUpload = FileUpload; exports.ImageUploader = ImageUploader; exports.TICKET_STATUS_COLOR_PRESETS = TICKET_STATUS_COLOR_PRESETS; exports.CUSTOM_PRESET_KEY = CUSTOM_PRESET_KEY; exports.DEFAULT_CUSTOM_STATUS_COLOR = DEFAULT_CUSTOM_STATUS_COLOR; exports.ColorPresetSelect = ColorPresetSelect; exports.ColorPickerInput = ColorPickerInput; exports.TicketStatusConfigRow = TicketStatusConfigRow; exports.AssigneeDropdown = AssigneeDropdown; exports.TicketDetailSection = TicketDetailSection; exports.TicketAttachmentsList = TicketAttachmentsList; exports.TicketNoteCard = TicketNoteCard; exports.TicketNotesSection = TicketNotesSection; exports.TicketInfoSection = TicketInfoSection; exports.Header = Header2; exports.HeaderSkeleton = HeaderSkeleton; exports.ClientOnlyHeader = ClientOnlyHeader; exports.MobileNavPanel = MobileNavPanel; exports.SlidingSidebar = SlidingSidebar; exports.StickySectionNav = StickySectionNav; exports.useSectionNavigation = useSectionNavigation; exports.NavigationSidebar = NavigationSidebar; exports.HeaderButton = HeaderButton; exports.HeaderGlobalSearch = HeaderGlobalSearch; exports.HeaderMingoButton = HeaderMingoButton; exports.HeaderOrganizationFilter = HeaderOrganizationFilter; exports.AppHeader = AppHeader; exports.MobileBurgerMenu = MobileBurgerMenu; exports.useAppLayoutDrawerContainer = useAppLayoutDrawerContainer; exports.AppLayout = AppLayout; exports.AppLayoutDrawerRoot = AppLayoutDrawerRoot; exports.AppLayoutDrawerTrigger = AppLayoutDrawerTrigger; exports.AppLayoutDrawerClose = AppLayoutDrawerClose; exports.AppLayoutDrawerContent = AppLayoutDrawerContent; exports.AppLayoutDrawerHeader = AppLayoutDrawerHeader; exports.AppLayoutDrawerTitle = AppLayoutDrawerTitle; exports.AppLayoutDrawerDescription = AppLayoutDrawerDescription; exports.AppLayoutDrawerBody = AppLayoutDrawerBody; exports.AppLayoutDrawerFooter = AppLayoutDrawerFooter; exports.SoftwareInfo = SoftwareInfo; exports.SoftwareSourceBadge = SoftwareSourceBadge; exports.CveLink = CveLink; exports.ToolBadge = ToolBadge; exports.ShellTypeBadge = ShellTypeBadge; exports.ScriptInfoSection = ScriptInfoSection; exports.ScriptArguments = ScriptArguments; exports.OnboardingStepCard = OnboardingStepCard; exports.OnboardingWalkthrough = OnboardingWalkthrough; exports.LOG_SEVERITY_COLORS = LOG_SEVERITY_COLORS; exports.LOG_SEVERITY_LABELS = LOG_SEVERITY_LABELS; exports.LogSeverityDot = LogSeverityDot; exports.LogsList = LogsList; exports.assets = assets;
|
|
39843
|
-
//# sourceMappingURL=chunk-
|
|
39886
|
+
//# sourceMappingURL=chunk-LALAS7OH.cjs.map
|