@flamingo-stack/openframe-frontend-core 0.0.275 → 0.0.276
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-5LOLBUZG.cjs → chunk-2GLHJ7ZY.cjs} +12 -12
- package/dist/{chunk-5LOLBUZG.cjs.map → chunk-2GLHJ7ZY.cjs.map} +1 -1
- package/dist/{chunk-EINXNG5D.js → chunk-62U6DFIT.js} +3 -3
- package/dist/{chunk-OKDCUJOZ.cjs → chunk-6IJWWLC3.cjs} +10 -10
- package/dist/{chunk-OKDCUJOZ.cjs.map → chunk-6IJWWLC3.cjs.map} +1 -1
- package/dist/{chunk-DBJZF2OV.cjs → chunk-DPMW5E6Q.cjs} +15 -15
- package/dist/{chunk-DBJZF2OV.cjs.map → chunk-DPMW5E6Q.cjs.map} +1 -1
- package/dist/{chunk-DEAWHNYW.cjs → chunk-IAB7QACX.cjs} +677 -640
- package/dist/chunk-IAB7QACX.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-E6RCVOQG.cjs → chunk-MYJKC56A.cjs} +38 -38
- package/dist/{chunk-E6RCVOQG.cjs.map → chunk-MYJKC56A.cjs.map} +1 -1
- package/dist/{chunk-T4XXYAYY.js → chunk-NITJSVUM.js} +3 -3
- package/dist/{chunk-CTBL56EC.js → chunk-NPKMH446.js} +3 -3
- package/dist/{chunk-NY7OG2OJ.js → chunk-QNWFTSAG.js} +3 -3
- package/dist/{chunk-SA4ZTD3G.cjs → chunk-SITWWJWS.cjs} +27 -27
- package/dist/{chunk-SA4ZTD3G.cjs.map → chunk-SITWWJWS.cjs.map} +1 -1
- package/dist/{chunk-FDHKJJPK.js → chunk-UCX75VEM.js} +2 -2
- package/dist/{chunk-EKWPIEHH.js → chunk-VAIPAZPJ.js} +43 -6
- package/dist/{chunk-EKWPIEHH.js.map → chunk-VAIPAZPJ.js.map} +1 -1
- package/dist/{chunk-GHWOQUB4.js → chunk-ZS4XNIZK.js} +2 -2
- package/dist/chunk-ZS4XNIZK.js.map +1 -0
- package/dist/components/chat/index.cjs +3 -3
- package/dist/components/chat/index.js +2 -2
- 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/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-GHWOQUB4.js.map +0 -1
- package/dist/chunk-XCPBD2PG.cjs.map +0 -1
- /package/dist/{chunk-EINXNG5D.js.map → chunk-62U6DFIT.js.map} +0 -0
- /package/dist/{chunk-T4XXYAYY.js.map → chunk-NITJSVUM.js.map} +0 -0
- /package/dist/{chunk-CTBL56EC.js.map → chunk-NPKMH446.js.map} +0 -0
- /package/dist/{chunk-NY7OG2OJ.js.map → chunk-QNWFTSAG.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.
|
|
@@ -1480,7 +1481,7 @@ var ChatHeader = React.forwardRef(
|
|
|
1480
1481
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center justify-between gap-4 px-4 py-3", children: [
|
|
1481
1482
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center gap-3", children: [
|
|
1482
1483
|
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
|
-
|
|
1484
|
+
_chunkLH7R56RRcjs.SquareAvatar,
|
|
1484
1485
|
{
|
|
1485
1486
|
src: userAvatar,
|
|
1486
1487
|
alt: userName,
|
|
@@ -2590,7 +2591,7 @@ var ChatMessageEnhanced = _react.forwardRef.call(void 0,
|
|
|
2590
2591
|
// Host-supplied brand icon (e.g. Mingo): render it directly,
|
|
2591
2592
|
// no filled pill — the icon carries its own brand accent.
|
|
2592
2593
|
/* @__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,
|
|
2594
|
+
) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLH7R56RRcjs.SquareAvatar, { ...avatarProps })),
|
|
2594
2595
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: _chunkFIG2RKZFcjs.cn.call(void 0,
|
|
2595
2596
|
"text-h3 !font-mono !font-medium flex-1",
|
|
2596
2597
|
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 +2610,7 @@ var ChatMessageEnhanced = _react.forwardRef.call(void 0,
|
|
|
2609
2610
|
);
|
|
2610
2611
|
if (!parts || parts.length === 0) {
|
|
2611
2612
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: wrapperClass, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2612
|
-
|
|
2613
|
+
_chunkLH7R56RRcjs.SimpleMarkdownRenderer,
|
|
2613
2614
|
{
|
|
2614
2615
|
content: segment.text,
|
|
2615
2616
|
textSize: "compact",
|
|
@@ -2621,7 +2622,7 @@ var ChatMessageEnhanced = _react.forwardRef.call(void 0,
|
|
|
2621
2622
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: wrapperClass, children: parts.map((part, pIdx) => {
|
|
2622
2623
|
if (part.kind === "text") {
|
|
2623
2624
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2624
|
-
|
|
2625
|
+
_chunkLH7R56RRcjs.SimpleMarkdownRenderer,
|
|
2625
2626
|
{
|
|
2626
2627
|
content: part.text,
|
|
2627
2628
|
textSize: "compact",
|
|
@@ -3204,7 +3205,7 @@ ChatMessageList.displayName = "ChatMessageList";
|
|
|
3204
3205
|
// src/components/chat/hooks/use-proxied-image-url.ts
|
|
3205
3206
|
function useProxiedImageUrl(url) {
|
|
3206
3207
|
const r = _chunkPC7YOZ4Icjs.useRequiredChatRuntime.call(void 0, );
|
|
3207
|
-
return _nullishCoalesce(
|
|
3208
|
+
return _nullishCoalesce(_chunkLH7R56RRcjs.getProxiedImageUrl.call(void 0, _nullishCoalesce(url, () => ( "")), {
|
|
3208
3209
|
proxyPrefix: r.endpoints.imageProxyUrlPrefix,
|
|
3209
3210
|
skipDomains: r.endpoints.imageProxySkipDomains,
|
|
3210
3211
|
directHttps: true
|
|
@@ -3237,7 +3238,7 @@ function ChatMessageRow({
|
|
|
3237
3238
|
height: 40,
|
|
3238
3239
|
onError: () => setFailedSrc(_nullishCoalesce(resolvedAvatar, () => ( null)))
|
|
3239
3240
|
}
|
|
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:
|
|
3241
|
+
) : /* @__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
3242
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex-1 min-w-0 max-w-full", children: [
|
|
3242
3243
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center gap-2 max-w-full mb-1 min-w-0", children: [
|
|
3243
3244
|
/* @__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 +3321,7 @@ function ChipButton({ chip }) {
|
|
|
3320
3321
|
type: "button",
|
|
3321
3322
|
onClick: chip.onSelect,
|
|
3322
3323
|
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,
|
|
3324
|
+
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLH7R56RRcjs.Tag, { variant: _nullishCoalesce(chip.variant, () => ( "outline")), icon: chip.icon, label: chip.label })
|
|
3324
3325
|
}
|
|
3325
3326
|
);
|
|
3326
3327
|
}
|
|
@@ -3352,7 +3353,7 @@ function ChatQuickActionRow({
|
|
|
3352
3353
|
children: [
|
|
3353
3354
|
visibleChips.map((chip) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, ChipButton, { chip }, chip.id)),
|
|
3354
3355
|
hiddenChips.length > 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3355
|
-
|
|
3356
|
+
_chunkLH7R56RRcjs.ActionsMenuDropdown,
|
|
3356
3357
|
{
|
|
3357
3358
|
triggerAriaLabel: "More quick actions",
|
|
3358
3359
|
onCloseAutoFocus: (e) => e.preventDefault(),
|
|
@@ -3373,7 +3374,7 @@ function ChatQuickActionRow({
|
|
|
3373
3374
|
type: "button",
|
|
3374
3375
|
"aria-label": "More quick actions",
|
|
3375
3376
|
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,
|
|
3377
|
+
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLH7R56RRcjs.Tag, { variant: "outline", label: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkC6ASEPZLcjs.Ellipsis01Icon, { size: 16 }) })
|
|
3377
3378
|
}
|
|
3378
3379
|
)
|
|
3379
3380
|
}
|
|
@@ -3388,7 +3389,7 @@ function ChatQuickActionRow({
|
|
|
3388
3389
|
"aria-hidden": true,
|
|
3389
3390
|
className: "pointer-events-none invisible absolute left-0 top-0 -z-10 flex gap-1",
|
|
3390
3391
|
children: chips.map((chip) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3391
|
-
|
|
3392
|
+
_chunkLH7R56RRcjs.Tag,
|
|
3392
3393
|
{
|
|
3393
3394
|
variant: _nullishCoalesce(chip.variant, () => ( "outline")),
|
|
3394
3395
|
icon: chip.icon,
|
|
@@ -3458,7 +3459,7 @@ var ChatTicketItem = React6.forwardRef(
|
|
|
3458
3459
|
subtitle && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-h6 text-ods-text-secondary truncate", title: subtitle, children: subtitle })
|
|
3459
3460
|
] }),
|
|
3460
3461
|
ticket.linkedTaskLabel && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3461
|
-
|
|
3462
|
+
_chunkLH7R56RRcjs.Tag,
|
|
3462
3463
|
{
|
|
3463
3464
|
label: ticket.linkedTaskLabel,
|
|
3464
3465
|
variant: "outline",
|
|
@@ -3719,7 +3720,7 @@ function MingoChatHistoryRow({
|
|
|
3719
3720
|
menuOpen ? "opacity-100" : "opacity-0 group-hover/row:opacity-100 focus-within:opacity-100"
|
|
3720
3721
|
),
|
|
3721
3722
|
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3722
|
-
|
|
3723
|
+
_chunkLH7R56RRcjs.ActionsMenuDropdown,
|
|
3723
3724
|
{
|
|
3724
3725
|
triggerAriaLabel: "Chat actions",
|
|
3725
3726
|
groups: [{ items: menuItems }],
|
|
@@ -4099,7 +4100,7 @@ function MingoWelcome({
|
|
|
4099
4100
|
onClick: onStartGuideChat,
|
|
4100
4101
|
className: "shrink-0 rounded-md focus:outline-none focus-visible:ring-2 focus-visible:ring-ods-accent",
|
|
4101
4102
|
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4102
|
-
|
|
4103
|
+
_chunkLH7R56RRcjs.Tag,
|
|
4103
4104
|
{
|
|
4104
4105
|
variant: hasExistingChats ? "outline" : "primary",
|
|
4105
4106
|
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkC6ASEPZLcjs.CompassIcon, { size: 16 }),
|
|
@@ -4228,12 +4229,12 @@ function GuideWelcome({
|
|
|
4228
4229
|
type: "button",
|
|
4229
4230
|
onClick: () => _optionalChain([onQuickAction, 'optionalCall', _49 => _49(action)]),
|
|
4230
4231
|
className: "rounded-md focus:outline-none focus-visible:ring-2 focus-visible:ring-ods-accent",
|
|
4231
|
-
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4232
|
+
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLH7R56RRcjs.Tag, { variant: "outline", label: action.label })
|
|
4232
4233
|
},
|
|
4233
4234
|
action.id
|
|
4234
4235
|
)),
|
|
4235
4236
|
overflowActions.length > 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4236
|
-
|
|
4237
|
+
_chunkLH7R56RRcjs.ActionsMenuDropdown,
|
|
4237
4238
|
{
|
|
4238
4239
|
triggerAriaLabel: "More quick actions",
|
|
4239
4240
|
onCloseAutoFocus: (e) => e.preventDefault(),
|
|
@@ -4250,7 +4251,7 @@ function GuideWelcome({
|
|
|
4250
4251
|
type: "button",
|
|
4251
4252
|
"aria-label": "More quick actions",
|
|
4252
4253
|
className: "rounded-md focus:outline-none focus-visible:ring-2 focus-visible:ring-ods-accent",
|
|
4253
|
-
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4254
|
+
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLH7R56RRcjs.Tag, { variant: "outline", label: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkC6ASEPZLcjs.Ellipsis01Icon, { size: 16 }) })
|
|
4254
4255
|
}
|
|
4255
4256
|
)
|
|
4256
4257
|
}
|
|
@@ -4661,7 +4662,7 @@ function ChatPanelHeaderMobile({
|
|
|
4661
4662
|
/* @__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
4663
|
/* @__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
4664
|
menuItems.length > 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4664
|
-
|
|
4665
|
+
_chunkLH7R56RRcjs.ActionsMenuDropdown,
|
|
4665
4666
|
{
|
|
4666
4667
|
groups: [{ items: menuItems }],
|
|
4667
4668
|
triggerAriaLabel: "Chat actions",
|
|
@@ -4726,7 +4727,7 @@ function ChatPanelHeader({
|
|
|
4726
4727
|
] }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "truncate text-h3 text-ods-text-primary", children: title }) }),
|
|
4727
4728
|
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
4729
|
showBack && !isArchivedView && menuItems.length > 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4729
|
-
|
|
4730
|
+
_chunkLH7R56RRcjs.ActionsMenuDropdown,
|
|
4730
4731
|
{
|
|
4731
4732
|
triggerAriaLabel: "Chat actions",
|
|
4732
4733
|
onCloseAutoFocus: (e) => e.preventDefault(),
|
|
@@ -5514,15 +5515,15 @@ _chunkG7UE6RKVcjs.init_next_navigation.call(void 0, );
|
|
|
5514
5515
|
|
|
5515
5516
|
// src/components/chat/utils/execute-navigation.ts
|
|
5516
5517
|
function runNavigation(runtime, href, path, targetPlatform, fallbackNavigate) {
|
|
5517
|
-
const isNewTab = runtime ?
|
|
5518
|
+
const isNewTab = runtime ? _chunkLH7R56RRcjs.computeIsNewTab.call(void 0, runtime, href, _nullishCoalesce(targetPlatform, () => ( null))) : false;
|
|
5518
5519
|
if (isNewTab) {
|
|
5519
5520
|
if (_optionalChain([runtime, 'optionalAccess', _59 => _59.navigation, 'access', _60 => _60.openExternal])) runtime.navigation.openExternal(href);
|
|
5520
|
-
else window.open(href, "_blank",
|
|
5521
|
+
else window.open(href, "_blank", _chunkLH7R56RRcjs.NEW_TAB_FEATURES);
|
|
5521
5522
|
return;
|
|
5522
5523
|
}
|
|
5523
5524
|
const handled = _nullishCoalesce(_optionalChain([runtime, 'optionalAccess', _61 => _61.navigation, 'access', _62 => _62.navigate, 'optionalCall', _63 => _63({ href, path, targetPlatform })]), () => ( false));
|
|
5524
5525
|
if (!handled) {
|
|
5525
|
-
const target =
|
|
5526
|
+
const target = _chunkLH7R56RRcjs.stripSameOriginToPath.call(void 0, href);
|
|
5526
5527
|
if (fallbackNavigate) fallbackNavigate(target);
|
|
5527
5528
|
else window.location.assign(target);
|
|
5528
5529
|
}
|
|
@@ -5578,8 +5579,8 @@ function NavLinkAnchorViaRuntime({
|
|
|
5578
5579
|
const runtime = _chunkPC7YOZ4Icjs.useRequiredChatRuntime.call(void 0, );
|
|
5579
5580
|
const router = _chunkG7UE6RKVcjs.useRouter.call(void 0, );
|
|
5580
5581
|
const panel = useChatPanel();
|
|
5581
|
-
const resolvedHref =
|
|
5582
|
-
const isNewTab =
|
|
5582
|
+
const resolvedHref = _chunkLH7R56RRcjs.resolveHrefForRuntime.call(void 0, href, runtime);
|
|
5583
|
+
const isNewTab = _chunkLH7R56RRcjs.computeIsNewTab.call(void 0, runtime, resolvedHref, _nullishCoalesce(targetPlatform, () => ( null)));
|
|
5583
5584
|
const onClick = (e) => {
|
|
5584
5585
|
const handled = handleChatNavClick(e, runtime, {
|
|
5585
5586
|
href: resolvedHref,
|
|
@@ -5592,7 +5593,7 @@ function NavLinkAnchorViaRuntime({
|
|
|
5592
5593
|
"a",
|
|
5593
5594
|
{
|
|
5594
5595
|
href: resolvedHref,
|
|
5595
|
-
...
|
|
5596
|
+
..._chunkLH7R56RRcjs.newTabAnchorAttrs.call(void 0, isNewTab),
|
|
5596
5597
|
onClick,
|
|
5597
5598
|
className,
|
|
5598
5599
|
children
|
|
@@ -5971,7 +5972,7 @@ var STATUS_BADGE_CLASS = {
|
|
|
5971
5972
|
archived: "bg-ods-border text-ods-text-secondary"
|
|
5972
5973
|
};
|
|
5973
5974
|
function WhatIShippedCard({ entry, placeholderUrl, actions, anchorProps, className }) {
|
|
5974
|
-
const month =
|
|
5975
|
+
const month = _chunkLH7R56RRcjs.formatEntryMonthUTC.call(void 0, entry.entry_month, "short");
|
|
5975
5976
|
const card = /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
5976
5977
|
AdminContentCard,
|
|
5977
5978
|
{
|
|
@@ -6029,7 +6030,7 @@ function ChatVideoEntityCard({
|
|
|
6029
6030
|
const highlightUrl = readString(m.highlightVideoUrl);
|
|
6030
6031
|
const highlightPoster = readString(m.highlightVideoPoster);
|
|
6031
6032
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
6032
|
-
|
|
6033
|
+
_chunkLH7R56RRcjs.EntityVideoSection,
|
|
6033
6034
|
{
|
|
6034
6035
|
mainVideoUrl: videoUrl,
|
|
6035
6036
|
youtubeUrl,
|
|
@@ -6246,7 +6247,7 @@ function ProductReleaseCard({
|
|
|
6246
6247
|
className: _chunkFIG2RKZFcjs.cn.call(void 0, "bg-ods-card p-4 flex flex-col gap-3", dividerClass),
|
|
6247
6248
|
children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col gap-0", children: [
|
|
6248
6249
|
cell.colorScheme ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
6249
|
-
|
|
6250
|
+
_chunkLH7R56RRcjs.StatusBadge,
|
|
6250
6251
|
{
|
|
6251
6252
|
text: cell.value,
|
|
6252
6253
|
variant: "card",
|
|
@@ -6273,7 +6274,7 @@ function ProductReleaseCard({
|
|
|
6273
6274
|
)),
|
|
6274
6275
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "bg-ods-card p-4 flex items-center gap-3", children: [
|
|
6275
6276
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
6276
|
-
|
|
6277
|
+
_chunkLH7R56RRcjs.SquareAvatar,
|
|
6277
6278
|
{
|
|
6278
6279
|
src: _nullishCoalesce(effectiveAuthor.avatar_url, () => ( void 0)),
|
|
6279
6280
|
alt: effectiveAuthor.full_name,
|
|
@@ -6597,12 +6598,12 @@ _chunkFIG2RKZFcjs.init_cn.call(void 0, );
|
|
|
6597
6598
|
|
|
6598
6599
|
function BlogCardSkeleton({ size = "default" }) {
|
|
6599
6600
|
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:
|
|
6601
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: _chunkLH7R56RRcjs.COMPACT_CARD_SKELETON_OUTER, children: [
|
|
6602
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkLH7R56RRcjs.COMPACT_CARD_SKELETON_IMAGE_SLOT }),
|
|
6603
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: _chunkLH7R56RRcjs.COMPACT_CARD_TEXT_COL, children: [
|
|
6604
|
+
/* @__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" }) }),
|
|
6605
|
+
/* @__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" }) }),
|
|
6606
|
+
/* @__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
6607
|
] })
|
|
6607
6608
|
] });
|
|
6608
6609
|
}
|
|
@@ -6632,13 +6633,13 @@ function BlogCard({
|
|
|
6632
6633
|
hasEmbeddedVideo = false,
|
|
6633
6634
|
priority = false
|
|
6634
6635
|
}) {
|
|
6635
|
-
const { target, rel } =
|
|
6636
|
+
const { target, rel } = _chunkLH7R56RRcjs.useEntityCardLink.call(void 0, {
|
|
6636
6637
|
href,
|
|
6637
6638
|
targetPlatform,
|
|
6638
6639
|
target: targetProp,
|
|
6639
6640
|
rel: relProp
|
|
6640
6641
|
});
|
|
6641
|
-
const placeholderUrl =
|
|
6642
|
+
const placeholderUrl = _chunkLH7R56RRcjs.useEntityCardPlaceholder.call(void 0, {
|
|
6642
6643
|
title: post.title,
|
|
6643
6644
|
placeholderUrl: placeholderUrlProp,
|
|
6644
6645
|
aspect: size === "sm" ? "square" : "wide"
|
|
@@ -6654,10 +6655,10 @@ function BlogCard({
|
|
|
6654
6655
|
href,
|
|
6655
6656
|
target,
|
|
6656
6657
|
rel,
|
|
6657
|
-
className: _chunkFIG2RKZFcjs.cn.call(void 0,
|
|
6658
|
+
className: _chunkFIG2RKZFcjs.cn.call(void 0, _chunkLH7R56RRcjs.COMPACT_CARD_OUTER, className),
|
|
6658
6659
|
"aria-label": `Read article: ${post.title}`,
|
|
6659
6660
|
children: [
|
|
6660
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
6661
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkLH7R56RRcjs.COMPACT_CARD_IMAGE_SLOT, children: displayImage ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
6661
6662
|
_chunkXL4V2PYGcjs.next_image_default,
|
|
6662
6663
|
{
|
|
6663
6664
|
src: displayImage,
|
|
@@ -6669,17 +6670,17 @@ function BlogCard({
|
|
|
6669
6670
|
onError: () => setImageError(true)
|
|
6670
6671
|
}
|
|
6671
6672
|
) : 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,
|
|
6673
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: _chunkLH7R56RRcjs.COMPACT_CARD_TEXT_COL, children: [
|
|
6674
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: _chunkFIG2RKZFcjs.cn.call(void 0, _chunkLH7R56RRcjs.COMPACT_CARD_TITLE_ROW, "gap-1.5"), children: [
|
|
6675
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkFIG2RKZFcjs.cn.call(void 0, _chunkLH7R56RRcjs.COMPACT_CARD_TITLE, "font-['DM_Sans']"), children: post.title }),
|
|
6676
|
+
hasEmbeddedVideo ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLH7R56RRcjs.StatusBadge, { text: "Video", variant: "button", colorScheme: "cyan", className: "shrink-0" }) : null
|
|
6676
6677
|
] }),
|
|
6677
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
6678
|
+
/* @__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
6679
|
dateStr2,
|
|
6679
6680
|
dateStr2 && firstCategory ? " \xB7 " : "",
|
|
6680
6681
|
_nullishCoalesce(firstCategory, () => ( "Blog Post"))
|
|
6681
6682
|
] }) }),
|
|
6682
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
6683
|
+
/* @__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
6684
|
] })
|
|
6684
6685
|
]
|
|
6685
6686
|
}
|
|
@@ -6801,12 +6802,12 @@ var hideOnError = (e) => {
|
|
|
6801
6802
|
};
|
|
6802
6803
|
function CaseStudyCardSkeleton({ size = "default" }) {
|
|
6803
6804
|
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:
|
|
6805
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: _chunkLH7R56RRcjs.COMPACT_CARD_SKELETON_OUTER, children: [
|
|
6806
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkLH7R56RRcjs.COMPACT_CARD_SKELETON_IMAGE_SLOT }),
|
|
6807
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: _chunkLH7R56RRcjs.COMPACT_CARD_TEXT_COL, children: [
|
|
6808
|
+
/* @__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" }) }),
|
|
6809
|
+
/* @__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" }) }),
|
|
6810
|
+
/* @__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
6811
|
] })
|
|
6811
6812
|
] });
|
|
6812
6813
|
}
|
|
@@ -6835,21 +6836,21 @@ function CaseStudyCard({
|
|
|
6835
6836
|
size = "default",
|
|
6836
6837
|
className
|
|
6837
6838
|
}) {
|
|
6838
|
-
const { target, rel } =
|
|
6839
|
+
const { target, rel } = _chunkLH7R56RRcjs.useEntityCardLink.call(void 0, {
|
|
6839
6840
|
href,
|
|
6840
6841
|
targetPlatform,
|
|
6841
6842
|
target: targetProp,
|
|
6842
6843
|
rel: relProp
|
|
6843
6844
|
});
|
|
6844
|
-
const placeholderUrl =
|
|
6845
|
+
const placeholderUrl = _chunkLH7R56RRcjs.useEntityCardPlaceholder.call(void 0, {
|
|
6845
6846
|
title: study.title,
|
|
6846
6847
|
placeholderUrl: placeholderUrlProp,
|
|
6847
6848
|
aspect: size === "sm" ? "square" : "wide"
|
|
6848
6849
|
});
|
|
6849
6850
|
const coverImage = study.featured_image || placeholderUrl || null;
|
|
6850
6851
|
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:
|
|
6852
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "a", { href, target, rel, className: _chunkFIG2RKZFcjs.cn.call(void 0, _chunkLH7R56RRcjs.COMPACT_CARD_OUTER, className), children: [
|
|
6853
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkLH7R56RRcjs.COMPACT_CARD_IMAGE_SLOT, children: coverImage ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
6853
6854
|
"img",
|
|
6854
6855
|
{
|
|
6855
6856
|
src: coverImage,
|
|
@@ -6858,14 +6859,14 @@ function CaseStudyCard({
|
|
|
6858
6859
|
onError: hideOnError
|
|
6859
6860
|
}
|
|
6860
6861
|
) : 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:
|
|
6862
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: _chunkLH7R56RRcjs.COMPACT_CARD_TEXT_COL, children: [
|
|
6863
|
+
/* @__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 }) }),
|
|
6864
|
+
/* @__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" }) }),
|
|
6865
|
+
/* @__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
6866
|
] })
|
|
6866
6867
|
] });
|
|
6867
6868
|
}
|
|
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,
|
|
6869
|
+
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
6870
|
/* @__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
6871
|
_chunkXL4V2PYGcjs.next_image_default,
|
|
6871
6872
|
{
|
|
@@ -6928,12 +6929,12 @@ var hideOnError2 = (e) => {
|
|
|
6928
6929
|
};
|
|
6929
6930
|
function CustomerInterviewCardSkeleton({ size = "default" }) {
|
|
6930
6931
|
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:
|
|
6932
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: _chunkLH7R56RRcjs.COMPACT_CARD_SKELETON_OUTER, children: [
|
|
6933
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkLH7R56RRcjs.COMPACT_CARD_SKELETON_IMAGE_SLOT }),
|
|
6934
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: _chunkLH7R56RRcjs.COMPACT_CARD_TEXT_COL, children: [
|
|
6935
|
+
/* @__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" }) }),
|
|
6936
|
+
/* @__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" }) }),
|
|
6937
|
+
/* @__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
6938
|
] })
|
|
6938
6939
|
] });
|
|
6939
6940
|
}
|
|
@@ -6967,21 +6968,21 @@ function CustomerInterviewCard({
|
|
|
6967
6968
|
size = "default",
|
|
6968
6969
|
className
|
|
6969
6970
|
}) {
|
|
6970
|
-
const { target, rel } =
|
|
6971
|
+
const { target, rel } = _chunkLH7R56RRcjs.useEntityCardLink.call(void 0, {
|
|
6971
6972
|
href,
|
|
6972
6973
|
targetPlatform,
|
|
6973
6974
|
target: targetProp,
|
|
6974
6975
|
rel: relProp
|
|
6975
6976
|
});
|
|
6976
|
-
const placeholderUrl =
|
|
6977
|
+
const placeholderUrl = _chunkLH7R56RRcjs.useEntityCardPlaceholder.call(void 0, {
|
|
6977
6978
|
title: interview.title,
|
|
6978
6979
|
placeholderUrl: placeholderUrlProp,
|
|
6979
6980
|
aspect: size === "sm" ? "square" : "wide"
|
|
6980
6981
|
});
|
|
6981
6982
|
const thumbnailUrl = interview.featured_image || placeholderUrl || null;
|
|
6982
6983
|
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:
|
|
6984
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "a", { href, target, rel, className: _chunkFIG2RKZFcjs.cn.call(void 0, _chunkLH7R56RRcjs.COMPACT_CARD_OUTER, className), children: [
|
|
6985
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: _chunkLH7R56RRcjs.COMPACT_CARD_IMAGE_SLOT, children: [
|
|
6985
6986
|
thumbnailUrl ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
6986
6987
|
"img",
|
|
6987
6988
|
{
|
|
@@ -6993,14 +6994,14 @@ function CustomerInterviewCard({
|
|
|
6993
6994
|
) : null,
|
|
6994
6995
|
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
6996
|
] }),
|
|
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:
|
|
6997
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: _chunkLH7R56RRcjs.COMPACT_CARD_TEXT_COL, children: [
|
|
6998
|
+
/* @__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 }) }),
|
|
6999
|
+
/* @__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" }) }),
|
|
7000
|
+
/* @__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
7001
|
] })
|
|
7001
7002
|
] });
|
|
7002
7003
|
}
|
|
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,
|
|
7004
|
+
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
7005
|
/* @__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
7006
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
7006
7007
|
"img",
|
|
@@ -7067,15 +7068,15 @@ function formatInvestorUpdatePeriod(start, end, options) {
|
|
|
7067
7068
|
|
|
7068
7069
|
function InvestorUpdateCardSkeleton({ size = "default" }) {
|
|
7069
7070
|
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: `${
|
|
7071
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: _chunkLH7R56RRcjs.COMPACT_CARD_SKELETON_OUTER, children: [
|
|
7072
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkLH7R56RRcjs.COMPACT_CARD_SKELETON_IMAGE_SLOT }),
|
|
7073
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: _chunkLH7R56RRcjs.COMPACT_CARD_TEXT_COL, children: [
|
|
7074
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: `${_chunkLH7R56RRcjs.COMPACT_CARD_TITLE_ROW} flex-nowrap gap-2`, children: [
|
|
7074
7075
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "h-3.5 w-1/2 rounded bg-ods-bg" }),
|
|
7075
7076
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "h-4 w-8 rounded bg-ods-bg/70 shrink-0" })
|
|
7076
7077
|
] }),
|
|
7077
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
7078
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
7078
|
+
/* @__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" }) }),
|
|
7079
|
+
/* @__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
7080
|
] })
|
|
7080
7081
|
] });
|
|
7081
7082
|
}
|
|
@@ -7099,13 +7100,13 @@ function InvestorUpdateCard({
|
|
|
7099
7100
|
size = "default",
|
|
7100
7101
|
className
|
|
7101
7102
|
}) {
|
|
7102
|
-
const { target, rel } =
|
|
7103
|
+
const { target, rel } = _chunkLH7R56RRcjs.useEntityCardLink.call(void 0, {
|
|
7103
7104
|
href,
|
|
7104
7105
|
targetPlatform,
|
|
7105
7106
|
target: targetProp,
|
|
7106
7107
|
rel: relProp
|
|
7107
7108
|
});
|
|
7108
|
-
const placeholderUrl =
|
|
7109
|
+
const placeholderUrl = _chunkLH7R56RRcjs.useEntityCardPlaceholder.call(void 0, {
|
|
7109
7110
|
title: _nullishCoalesce(update.title, () => ( `Update #${_nullishCoalesce(update.update_number, () => ( ""))}`)),
|
|
7110
7111
|
placeholderUrl: placeholderUrlProp,
|
|
7111
7112
|
aspect: size === "sm" ? "square" : "wide"
|
|
@@ -7113,8 +7114,8 @@ function InvestorUpdateCard({
|
|
|
7113
7114
|
const coverImage = update.featured_image || placeholderUrl || null;
|
|
7114
7115
|
if (size === "sm") {
|
|
7115
7116
|
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:
|
|
7117
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "a", { href, target, rel, className: `${_chunkLH7R56RRcjs.COMPACT_CARD_OUTER} ${_nullishCoalesce(className, () => ( ""))}`, children: [
|
|
7118
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkLH7R56RRcjs.COMPACT_CARD_IMAGE_SLOT, children: coverImage ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
7118
7119
|
"img",
|
|
7119
7120
|
{
|
|
7120
7121
|
src: coverImage,
|
|
@@ -7126,16 +7127,16 @@ function InvestorUpdateCard({
|
|
|
7126
7127
|
}
|
|
7127
7128
|
}
|
|
7128
7129
|
) : /* @__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: `${
|
|
7130
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: _chunkLH7R56RRcjs.COMPACT_CARD_TEXT_COL, children: [
|
|
7131
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: `${_chunkLH7R56RRcjs.COMPACT_CARD_TITLE_ROW} gap-2`, children: [
|
|
7132
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: `${_chunkLH7R56RRcjs.COMPACT_CARD_TITLE} min-w-0`, children: update.title || `Update #${_nullishCoalesce(update.update_number, () => ( "?"))}` }),
|
|
7132
7133
|
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
7134
|
"#",
|
|
7134
7135
|
update.update_number
|
|
7135
7136
|
] }) : null
|
|
7136
7137
|
] }),
|
|
7137
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
7138
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
7138
|
+
/* @__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" }) }),
|
|
7139
|
+
/* @__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
7140
|
] })
|
|
7140
7141
|
] });
|
|
7141
7142
|
}
|
|
@@ -7626,7 +7627,7 @@ function AutocompleteInner(props, ref) {
|
|
|
7626
7627
|
className: "flex-1 flex items-center gap-2 min-w-0 overflow-hidden px-2",
|
|
7627
7628
|
children: [
|
|
7628
7629
|
multiple && visibleTags.map((option) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
7629
|
-
|
|
7630
|
+
_chunkLH7R56RRcjs.Tag,
|
|
7630
7631
|
{
|
|
7631
7632
|
variant: "outline",
|
|
7632
7633
|
labelClassName: "truncate max-w-[90px]",
|
|
@@ -7794,7 +7795,7 @@ function AutocompleteInner(props, ref) {
|
|
|
7794
7795
|
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
7796
|
popover,
|
|
7796
7797
|
multiple && showHiddenTags && hiddenTagsCount > 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
7797
|
-
|
|
7798
|
+
_chunkLH7R56RRcjs.HiddenTagsPopup,
|
|
7798
7799
|
{
|
|
7799
7800
|
ref: hiddenTagsPopupRef,
|
|
7800
7801
|
items: hiddenTags,
|
|
@@ -7826,7 +7827,7 @@ function AutocompleteInner(props, ref) {
|
|
|
7826
7827
|
"aria-hidden": "true",
|
|
7827
7828
|
className: "absolute left-0 top-0 flex gap-2 pointer-events-none invisible -z-10",
|
|
7828
7829
|
children: selectedOptions.map((option) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
7829
|
-
|
|
7830
|
+
_chunkLH7R56RRcjs.Tag,
|
|
7830
7831
|
{
|
|
7831
7832
|
variant: "outline",
|
|
7832
7833
|
labelClassName: "truncate max-w-[90px]",
|
|
@@ -9727,7 +9728,7 @@ function TagsManager({
|
|
|
9727
9728
|
}
|
|
9728
9729
|
),
|
|
9729
9730
|
selectedTags.map((tag) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
9730
|
-
|
|
9731
|
+
_chunkLH7R56RRcjs.Tag,
|
|
9731
9732
|
{
|
|
9732
9733
|
label: tag.name,
|
|
9733
9734
|
variant: "outline",
|
|
@@ -12049,7 +12050,7 @@ function renderAdvancedPageContainer({
|
|
|
12049
12050
|
};
|
|
12050
12051
|
const renderActions = () => {
|
|
12051
12052
|
if (!actions || actions.length === 0) return null;
|
|
12052
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12053
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLH7R56RRcjs.PageActions, { variant: getActionsVariant(), actions, menuActions });
|
|
12053
12054
|
};
|
|
12054
12055
|
const needsBottomPadding = actions && actions.length > 0 && getActionsVariant() === "primary-buttons";
|
|
12055
12056
|
const paddingClasses = {
|
|
@@ -12074,7 +12075,7 @@ function renderAdvancedPageContainer({
|
|
|
12074
12075
|
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
12076
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col gap-2 flex-1 min-w-0", children: [
|
|
12076
12077
|
backButton && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12077
|
-
|
|
12078
|
+
_chunkLH7R56RRcjs.BackButton,
|
|
12078
12079
|
{
|
|
12079
12080
|
onClick: backButton.onClick,
|
|
12080
12081
|
label: backButton.label,
|
|
@@ -12094,7 +12095,7 @@ function renderAdvancedPageContainer({
|
|
|
12094
12095
|
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
12096
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col gap-1 flex-1 min-w-0", children: [
|
|
12096
12097
|
backButton && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12097
|
-
|
|
12098
|
+
_chunkLH7R56RRcjs.BackButton,
|
|
12098
12099
|
{
|
|
12099
12100
|
onClick: backButton.onClick,
|
|
12100
12101
|
label: backButton.label,
|
|
@@ -12114,7 +12115,7 @@ function renderAdvancedPageContainer({
|
|
|
12114
12115
|
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
12116
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col gap-2 flex-1 min-w-0", children: [
|
|
12116
12117
|
backButton && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12117
|
-
|
|
12118
|
+
_chunkLH7R56RRcjs.BackButton,
|
|
12118
12119
|
{
|
|
12119
12120
|
onClick: backButton.onClick,
|
|
12120
12121
|
label: backButton.label,
|
|
@@ -12217,7 +12218,7 @@ function ListPageLayout({
|
|
|
12217
12218
|
}, [debouncedSearchValue, onSearch, searchValue]);
|
|
12218
12219
|
const hasMobileFilter = mobileFilterGroups && mobileFilterGroups.length > 0 || mobileSortConfig && mobileSortConfig.columns.length > 0;
|
|
12219
12220
|
if (error) {
|
|
12220
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12221
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLH7R56RRcjs.PageError, { message: error });
|
|
12221
12222
|
}
|
|
12222
12223
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12223
12224
|
ListPageContainer,
|
|
@@ -14241,7 +14242,7 @@ function DashboardInfoCard({
|
|
|
14241
14242
|
_nullishCoalesce(titleSlot, () => ( /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-h5 text-ods-text-secondary", children: title }))),
|
|
14242
14243
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center gap-[var(--spacing-system-xs)]", children: [
|
|
14243
14244
|
/* @__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,
|
|
14245
|
+
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
14246
|
"(",
|
|
14246
14247
|
percentage,
|
|
14247
14248
|
"%)"
|
|
@@ -14432,7 +14433,7 @@ function DeviceCard({
|
|
|
14432
14433
|
] }),
|
|
14433
14434
|
(statusTag || device.lastSeen) && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex gap-2 items-center w-full", children: [
|
|
14434
14435
|
statusTag && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
14435
|
-
|
|
14436
|
+
_chunkLH7R56RRcjs.Tag,
|
|
14436
14437
|
{
|
|
14437
14438
|
variant: statusTag.variant,
|
|
14438
14439
|
icon: statusTag.icon,
|
|
@@ -14446,7 +14447,7 @@ function DeviceCard({
|
|
|
14446
14447
|
formatLastSeen(device.lastSeen)
|
|
14447
14448
|
] })
|
|
14448
14449
|
] }),
|
|
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,
|
|
14450
|
+
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
14451
|
]
|
|
14451
14452
|
}
|
|
14452
14453
|
);
|
|
@@ -14523,7 +14524,7 @@ function FeatureCardGrid({
|
|
|
14523
14524
|
if (allCardsHaveNoBorders) {
|
|
14524
14525
|
finalCardClassName = "bg-transparent p-0 overflow-visible border-0 shadow-none rounded-none";
|
|
14525
14526
|
}
|
|
14526
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
14527
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLH7R56RRcjs.Card, { className: `${finalCardClassName} ${className}`, children: Array.from({ length: rows }, (_, rowIndex) => {
|
|
14527
14528
|
const startIndex = rowIndex * itemsPerRow;
|
|
14528
14529
|
const rowItems = items.slice(startIndex, startIndex + itemsPerRow);
|
|
14529
14530
|
const isLastRow = rowIndex === rows - 1;
|
|
@@ -14553,7 +14554,7 @@ function FeatureCardGrid({
|
|
|
14553
14554
|
item.icon && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-start justify-between", children: [
|
|
14554
14555
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, item.icon, { size: 80, color: item.iconColor }),
|
|
14555
14556
|
item.badge && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
14556
|
-
|
|
14557
|
+
_chunkLH7R56RRcjs.StatusBadge,
|
|
14557
14558
|
{
|
|
14558
14559
|
text: item.badge.text,
|
|
14559
14560
|
variant: item.badge.variant || "card",
|
|
@@ -14562,7 +14563,7 @@ function FeatureCardGrid({
|
|
|
14562
14563
|
)
|
|
14563
14564
|
] }),
|
|
14564
14565
|
!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
|
-
|
|
14566
|
+
_chunkLH7R56RRcjs.StatusBadge,
|
|
14566
14567
|
{
|
|
14567
14568
|
text: item.badge.text,
|
|
14568
14569
|
variant: item.badge.variant || "card",
|
|
@@ -14832,7 +14833,7 @@ function DropdownButton({
|
|
|
14832
14833
|
[disabled]
|
|
14833
14834
|
);
|
|
14834
14835
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
14835
|
-
|
|
14836
|
+
_chunkLH7R56RRcjs.ActionsMenuDropdown,
|
|
14836
14837
|
{
|
|
14837
14838
|
groups: [{ items }],
|
|
14838
14839
|
open,
|
|
@@ -15023,7 +15024,7 @@ function OrganizationCard({
|
|
|
15023
15024
|
),
|
|
15024
15025
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-start gap-3 w-full", children: [
|
|
15025
15026
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
15026
|
-
|
|
15027
|
+
_chunkLH7R56RRcjs.EntityImage,
|
|
15027
15028
|
{
|
|
15028
15029
|
src: fetchedImageUrl || organization.imageUrl,
|
|
15029
15030
|
alt: organization.name
|
|
@@ -15774,7 +15775,7 @@ var SectionButton = ({
|
|
|
15774
15775
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center gap-2 flex-wrap", children: [
|
|
15775
15776
|
/* @__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
15777
|
section.badge && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
15777
|
-
|
|
15778
|
+
_chunkLH7R56RRcjs.StatusBadge,
|
|
15778
15779
|
{
|
|
15779
15780
|
text: section.badge.text,
|
|
15780
15781
|
variant: section.badge.variant || "button",
|
|
@@ -15793,7 +15794,7 @@ var SectionButton = ({
|
|
|
15793
15794
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-start gap-2 flex-wrap w-full", children: [
|
|
15794
15795
|
/* @__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
15796
|
section.badge && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
15796
|
-
|
|
15797
|
+
_chunkLH7R56RRcjs.StatusBadge,
|
|
15797
15798
|
{
|
|
15798
15799
|
text: section.badge.text,
|
|
15799
15800
|
variant: section.badge.variant || "button",
|
|
@@ -16065,7 +16066,7 @@ function renderUnifiedUI(state, handlers, config, iframeRef) {
|
|
|
16065
16066
|
sandbox: "allow-scripts allow-same-origin allow-popups allow-presentation",
|
|
16066
16067
|
title: config.title,
|
|
16067
16068
|
loading: "eager",
|
|
16068
|
-
...
|
|
16069
|
+
..._chunkLH7R56RRcjs.fetchPriorityProp.call(void 0, "high")
|
|
16069
16070
|
},
|
|
16070
16071
|
iframeKey
|
|
16071
16072
|
),
|
|
@@ -16903,7 +16904,7 @@ function MediaGalleryManager({
|
|
|
16903
16904
|
const renderMediaItem = _react.useCallback.call(void 0, (mediaItem, index) => {
|
|
16904
16905
|
const isDeleting = deletingIndex === index;
|
|
16905
16906
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
16906
|
-
|
|
16907
|
+
_chunkLH7R56RRcjs.Card,
|
|
16907
16908
|
{
|
|
16908
16909
|
className: "relative group border-ods-border hover:border-ods-accent/30 transition-colors",
|
|
16909
16910
|
draggable: true,
|
|
@@ -17863,7 +17864,7 @@ var SelectButton = React92.default.forwardRef(
|
|
|
17863
17864
|
}
|
|
17864
17865
|
)
|
|
17865
17866
|
] }),
|
|
17866
|
-
tag && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
17867
|
+
tag && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLH7R56RRcjs.Tag, { variant: tagVariant, className: "shrink-0", label: tag }),
|
|
17867
17868
|
selected && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
17868
17869
|
_chunkC6ASEPZLcjs.CheckCircleIcon,
|
|
17869
17870
|
{
|
|
@@ -18285,7 +18286,7 @@ var StartWithOpenFrameButton = React68.forwardRef(({ children = "Start Free Tria
|
|
|
18285
18286
|
}
|
|
18286
18287
|
) : void 0,
|
|
18287
18288
|
rightIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
18288
|
-
|
|
18289
|
+
_chunkLH7R56RRcjs.StatusBadge,
|
|
18289
18290
|
{
|
|
18290
18291
|
text: "Beta",
|
|
18291
18292
|
variant: "button",
|
|
@@ -21797,6 +21798,7 @@ var MAX_VISIBLE_ASSIGNEES = 3;
|
|
|
21797
21798
|
function TicketCard({
|
|
21798
21799
|
ticket,
|
|
21799
21800
|
columnId,
|
|
21801
|
+
columnColor,
|
|
21800
21802
|
href,
|
|
21801
21803
|
isOverlay = false,
|
|
21802
21804
|
dragDisabled,
|
|
@@ -21811,10 +21813,13 @@ function TicketCard({
|
|
|
21811
21813
|
data: sortableData,
|
|
21812
21814
|
disabled: dragDisabled
|
|
21813
21815
|
});
|
|
21814
|
-
const
|
|
21816
|
+
const showNewMessage = !!ticket.hasNewMessage && !!columnColor;
|
|
21817
|
+
const newMessageTextColor = columnColor ? getReadableTextColor(columnColor) : void 0;
|
|
21818
|
+
const style = isOverlay ? {} : {
|
|
21815
21819
|
transform: _utilities.CSS.Transform.toString(sortable.transform),
|
|
21816
21820
|
transition: sortable.transition
|
|
21817
21821
|
};
|
|
21822
|
+
if (showNewMessage) style.borderColor = columnColor;
|
|
21818
21823
|
const showDeviceRow = !!(_optionalChain([ticket, 'access', _372 => _372.deviceHostnames, 'optionalAccess', _373 => _373.length]) || ticket.organizationName);
|
|
21819
21824
|
const deviceText = [
|
|
21820
21825
|
_optionalChain([ticket, 'access', _374 => _374.deviceHostnames, 'optionalAccess', _375 => _375.join, 'call', _376 => _376(", ")]),
|
|
@@ -21834,7 +21839,7 @@ function TicketCard({
|
|
|
21834
21839
|
),
|
|
21835
21840
|
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
21841
|
ticket.assignees.slice(0, MAX_VISIBLE_ASSIGNEES).map((a) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
21837
|
-
|
|
21842
|
+
_chunkLH7R56RRcjs.SquareAvatar,
|
|
21838
21843
|
{
|
|
21839
21844
|
src: a.avatarUrl,
|
|
21840
21845
|
alt: _nullishCoalesce(_nullishCoalesce(a.name, () => ( a.initials)), () => ( a.id)),
|
|
@@ -21867,7 +21872,16 @@ function TicketCard({
|
|
|
21867
21872
|
timestampLabel && tooltipLabel && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TooltipProvider, { children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, Tooltip, { children: [
|
|
21868
21873
|
/* @__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
21874
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, TooltipContent, { children: tooltipLabel })
|
|
21870
|
-
] }) })
|
|
21875
|
+
] }) }),
|
|
21876
|
+
showNewMessage && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
21877
|
+
_chunkLH7R56RRcjs.Tag,
|
|
21878
|
+
{
|
|
21879
|
+
label: "New Message",
|
|
21880
|
+
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkC6ASEPZLcjs.MessagesIcon, { size: 16, color: newMessageTextColor }),
|
|
21881
|
+
className: "w-fit shrink-0",
|
|
21882
|
+
style: { backgroundColor: columnColor, color: newMessageTextColor }
|
|
21883
|
+
}
|
|
21884
|
+
)
|
|
21871
21885
|
] });
|
|
21872
21886
|
const cardClasses = _chunkFIG2RKZFcjs.cn.call(void 0,
|
|
21873
21887
|
"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 +21891,7 @@ function TicketCard({
|
|
|
21877
21891
|
);
|
|
21878
21892
|
const outerProps = {
|
|
21879
21893
|
ref: isOverlay ? void 0 : sortable.setNodeRef,
|
|
21880
|
-
style
|
|
21894
|
+
style,
|
|
21881
21895
|
className: cardClasses,
|
|
21882
21896
|
...isOverlay ? {} : sortable.attributes,
|
|
21883
21897
|
...isOverlay ? {} : sortable.listeners
|
|
@@ -21919,8 +21933,8 @@ function TicketTagRow({ tags }) {
|
|
|
21919
21933
|
const visible = tags.slice(0, MAX_VISIBLE_TAGS);
|
|
21920
21934
|
const hidden = tags.length - visible.length;
|
|
21921
21935
|
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,
|
|
21936
|
+
visible.map((tag) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLH7R56RRcjs.Tag, { variant: "outline", label: tag }, tag)),
|
|
21937
|
+
hidden > 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLH7R56RRcjs.Tag, { variant: "outline", label: `+${hidden}` })
|
|
21924
21938
|
] });
|
|
21925
21939
|
}
|
|
21926
21940
|
|
|
@@ -22071,6 +22085,7 @@ function ColumnBody({ column, getTicketHref, renderAssignSlot, onLoadMore, loadM
|
|
|
22071
22085
|
{
|
|
22072
22086
|
ticket: t,
|
|
22073
22087
|
columnId: column.id,
|
|
22088
|
+
columnColor: column.color,
|
|
22074
22089
|
href: _optionalChain([getTicketHref, 'optionalCall', _385 => _385(t.id)]),
|
|
22075
22090
|
renderAssignSlot,
|
|
22076
22091
|
dragDisabled: column.dragDisabled
|
|
@@ -22361,7 +22376,15 @@ function Board({
|
|
|
22361
22376
|
}
|
|
22362
22377
|
)
|
|
22363
22378
|
] }),
|
|
22364
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _core.DragOverlay, { dropAnimation: null, children: activeTicket ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
22379
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _core.DragOverlay, { dropAnimation: null, children: activeTicket ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
22380
|
+
TicketCard,
|
|
22381
|
+
{
|
|
22382
|
+
ticket: activeTicket.ticket,
|
|
22383
|
+
columnId: activeTicket.columnId,
|
|
22384
|
+
columnColor: _optionalChain([items, 'access', _421 => _421.find, 'call', _422 => _422((c) => c.id === activeTicket.columnId), 'optionalAccess', _423 => _423.color]),
|
|
22385
|
+
isOverlay: true
|
|
22386
|
+
}
|
|
22387
|
+
) : null })
|
|
22365
22388
|
]
|
|
22366
22389
|
}
|
|
22367
22390
|
);
|
|
@@ -22374,7 +22397,7 @@ function locate(cols, ticketId) {
|
|
|
22374
22397
|
return null;
|
|
22375
22398
|
}
|
|
22376
22399
|
function findIndexInColumn(cols, columnId, ticketId) {
|
|
22377
|
-
return _nullishCoalesce(_optionalChain([cols, 'access',
|
|
22400
|
+
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
22401
|
}
|
|
22379
22402
|
|
|
22380
22403
|
// src/components/features/board/types.ts
|
|
@@ -22622,7 +22645,7 @@ function Header2({ config, platform }) {
|
|
|
22622
22645
|
className: _chunkFIG2RKZFcjs.cn.call(void 0,
|
|
22623
22646
|
"flex justify-start w-full",
|
|
22624
22647
|
"font-bold text-[16px] leading-none tracking-[-0.32px]",
|
|
22625
|
-
index < (_nullishCoalesce(_optionalChain([item, 'access',
|
|
22648
|
+
index < (_nullishCoalesce(_optionalChain([item, 'access', _429 => _429.children, 'optionalAccess', _430 => _430.length]), () => ( 0))) - 1 && "mb-1",
|
|
22626
22649
|
"text-ods-text-primary",
|
|
22627
22650
|
// All dropdown items use primary text color
|
|
22628
22651
|
child.isActive && "bg-ods-bg-hover"
|
|
@@ -22714,7 +22737,7 @@ function Header2({ config, platform }) {
|
|
|
22714
22737
|
style: config.style,
|
|
22715
22738
|
children: [
|
|
22716
22739
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center justify-start flex-shrink-0", children: [
|
|
22717
|
-
_optionalChain([config, 'access',
|
|
22740
|
+
_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
22741
|
/* @__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
22742
|
] }),
|
|
22720
22743
|
config.navigation && config.navigation.items.length > 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -22731,7 +22754,7 @@ function Header2({ config, platform }) {
|
|
|
22731
22754
|
}
|
|
22732
22755
|
),
|
|
22733
22756
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center justify-end gap-4 flex-shrink-0", children: [
|
|
22734
|
-
_optionalChain([config, 'access',
|
|
22757
|
+
_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
22758
|
config.mobile && config.mobile.enabled && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
22736
22759
|
_chunkN5UOJC3Vcjs.Button,
|
|
22737
22760
|
{
|
|
@@ -22739,10 +22762,10 @@ function Header2({ config, platform }) {
|
|
|
22739
22762
|
size: "icon",
|
|
22740
22763
|
className: "flex md:hidden",
|
|
22741
22764
|
onClick: () => {
|
|
22742
|
-
_optionalChain([config, 'access',
|
|
22765
|
+
_optionalChain([config, 'access', _435 => _435.mobile, 'optionalAccess', _436 => _436.onToggle, 'optionalCall', _437 => _437()]);
|
|
22743
22766
|
},
|
|
22744
|
-
"aria-label": _optionalChain([config, 'access',
|
|
22745
|
-
leftIcon: _optionalChain([config, 'access',
|
|
22767
|
+
"aria-label": _optionalChain([config, 'access', _438 => _438.mobile, 'optionalAccess', _439 => _439.isOpen]) ? "Close menu" : "Open menu",
|
|
22768
|
+
leftIcon: _optionalChain([config, 'access', _440 => _440.mobile, 'optionalAccess', _441 => _441.menuIcon]) || /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkC6ASEPZLcjs.Menu01Icon, {})
|
|
22746
22769
|
}
|
|
22747
22770
|
)
|
|
22748
22771
|
] })
|
|
@@ -22759,10 +22782,10 @@ function Header2({ config, platform }) {
|
|
|
22759
22782
|
// src/components/navigation/header-skeleton.tsx
|
|
22760
22783
|
|
|
22761
22784
|
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',
|
|
22785
|
+
const showNavigation = _optionalChain([config, 'optionalAccess', _442 => _442.navigation]) && config.navigation.items.length > 0;
|
|
22786
|
+
const showActions = _optionalChain([config, 'optionalAccess', _443 => _443.actions, 'optionalAccess', _444 => _444.right]) && config.actions.right.length > 0;
|
|
22787
|
+
const showMobileMenu = _optionalChain([config, 'optionalAccess', _445 => _445.mobile, 'optionalAccess', _446 => _446.enabled]);
|
|
22788
|
+
const isAdminHeader = _optionalChain([config, 'optionalAccess', _447 => _447.className, 'optionalAccess', _448 => _448.includes, 'call', _449 => _449("admin")]);
|
|
22766
22789
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "sticky top-0 z-40 w-full", children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
22767
22790
|
"header",
|
|
22768
22791
|
{
|
|
@@ -22771,11 +22794,11 @@ function HeaderSkeleton({ config }) {
|
|
|
22771
22794
|
"bg-ods-card border-b border-ods-border backdrop-blur-sm",
|
|
22772
22795
|
"px-6 py-3",
|
|
22773
22796
|
"transition-opacity duration-300 ease-in-out",
|
|
22774
|
-
_optionalChain([config, 'optionalAccess',
|
|
22797
|
+
_optionalChain([config, 'optionalAccess', _450 => _450.className])
|
|
22775
22798
|
),
|
|
22776
22799
|
children: [
|
|
22777
22800
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center justify-start flex-shrink-0", children: [
|
|
22778
|
-
isAdminHeader && _optionalChain([config, 'optionalAccess',
|
|
22801
|
+
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
22802
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center gap-2", children: [
|
|
22780
22803
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "h-8 w-8 bg-ods-border rounded animate-pulse" }),
|
|
22781
22804
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "h-6 w-24 bg-ods-border rounded animate-pulse" })
|
|
@@ -22783,8 +22806,8 @@ function HeaderSkeleton({ config }) {
|
|
|
22783
22806
|
] }),
|
|
22784
22807
|
showNavigation && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "nav", { className: _chunkFIG2RKZFcjs.cn.call(void 0,
|
|
22785
22808
|
"hidden md:flex items-center gap-2",
|
|
22786
|
-
_optionalChain([config, 'optionalAccess',
|
|
22787
|
-
_optionalChain([config, 'optionalAccess',
|
|
22809
|
+
_optionalChain([config, 'optionalAccess', _453 => _453.navigation, 'optionalAccess', _454 => _454.position]) === "center" && "absolute left-1/2 transform -translate-x-1/2",
|
|
22810
|
+
_optionalChain([config, 'optionalAccess', _455 => _455.navigation, 'optionalAccess', _456 => _456.position]) === "right" && "ml-auto mr-4"
|
|
22788
22811
|
), children: [
|
|
22789
22812
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "h-10 w-20 bg-ods-border rounded animate-pulse" }),
|
|
22790
22813
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "h-10 w-28 bg-ods-border rounded animate-pulse" }),
|
|
@@ -22832,7 +22855,7 @@ function MobileNavPanel({ isOpen, config }) {
|
|
|
22832
22855
|
_react.useEffect.call(void 0, () => {
|
|
22833
22856
|
const handleKeyDown = (e) => {
|
|
22834
22857
|
if (e.key === "Escape" && isOpen) {
|
|
22835
|
-
_optionalChain([config, 'access',
|
|
22858
|
+
_optionalChain([config, 'access', _457 => _457.onClose, 'optionalCall', _458 => _458()]);
|
|
22836
22859
|
}
|
|
22837
22860
|
};
|
|
22838
22861
|
if (isOpen) {
|
|
@@ -22849,7 +22872,7 @@ function MobileNavPanel({ isOpen, config }) {
|
|
|
22849
22872
|
if (item.onClick) {
|
|
22850
22873
|
item.onClick();
|
|
22851
22874
|
}
|
|
22852
|
-
_optionalChain([config, 'access',
|
|
22875
|
+
_optionalChain([config, 'access', _459 => _459.onClose, 'optionalCall', _460 => _460()]);
|
|
22853
22876
|
};
|
|
22854
22877
|
if (item.href) {
|
|
22855
22878
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -23019,7 +23042,7 @@ function SlidingSidebar({ config }) {
|
|
|
23019
23042
|
variant: "transparent",
|
|
23020
23043
|
size: "default",
|
|
23021
23044
|
onClick: () => {
|
|
23022
|
-
_optionalChain([item, 'access',
|
|
23045
|
+
_optionalChain([item, 'access', _461 => _461.onClick, 'optionalCall', _462 => _462()]);
|
|
23023
23046
|
config.onClose();
|
|
23024
23047
|
},
|
|
23025
23048
|
leftIcon: item.icon,
|
|
@@ -23042,7 +23065,7 @@ function SlidingSidebar({ config }) {
|
|
|
23042
23065
|
variant: "transparent",
|
|
23043
23066
|
size: "default",
|
|
23044
23067
|
onClick: () => {
|
|
23045
|
-
_optionalChain([item, 'access',
|
|
23068
|
+
_optionalChain([item, 'access', _463 => _463.onClick, 'optionalCall', _464 => _464()]);
|
|
23046
23069
|
config.onClose();
|
|
23047
23070
|
},
|
|
23048
23071
|
leftIcon: item.icon,
|
|
@@ -23169,7 +23192,7 @@ function StickySectionNav({
|
|
|
23169
23192
|
] });
|
|
23170
23193
|
}
|
|
23171
23194
|
function useSectionNavigation(sections, options) {
|
|
23172
|
-
const [activeSection, setActiveSection] = _react.useState.call(void 0, _optionalChain([sections, 'access',
|
|
23195
|
+
const [activeSection, setActiveSection] = _react.useState.call(void 0, _optionalChain([sections, 'access', _465 => _465[0], 'optionalAccess', _466 => _466.id]) || "");
|
|
23173
23196
|
const isScrollingFromClick = _react.useRef.call(void 0, false);
|
|
23174
23197
|
const { offset: offset2 = 100 } = options || {};
|
|
23175
23198
|
const handleSectionClick = _react.useCallback.call(void 0, (sectionId) => {
|
|
@@ -23193,7 +23216,7 @@ function useSectionNavigation(sections, options) {
|
|
|
23193
23216
|
const handleScroll = () => {
|
|
23194
23217
|
if (isScrollingFromClick.current) return;
|
|
23195
23218
|
const scrollPosition = window.scrollY + offset2 + 50;
|
|
23196
|
-
let currentSection = _optionalChain([sections, 'access',
|
|
23219
|
+
let currentSection = _optionalChain([sections, 'access', _467 => _467[0], 'optionalAccess', _468 => _468.id]) || "";
|
|
23197
23220
|
for (let i = sections.length - 1; i >= 0; i--) {
|
|
23198
23221
|
const element = document.getElementById(sections[i].id);
|
|
23199
23222
|
if (element && scrollPosition >= element.offsetTop) {
|
|
@@ -23394,7 +23417,7 @@ function NavigationSidebar({ config, disabled = false }) {
|
|
|
23394
23417
|
} else {
|
|
23395
23418
|
setDesktopMinimized((prev) => !prev);
|
|
23396
23419
|
}
|
|
23397
|
-
_optionalChain([config, 'access',
|
|
23420
|
+
_optionalChain([config, 'access', _469 => _469.onToggleMinimized, 'optionalCall', _470 => _470()]);
|
|
23398
23421
|
}, [isTablet, setDesktopMinimized, config]);
|
|
23399
23422
|
const closeOverlay = _react.useCallback.call(void 0, () => {
|
|
23400
23423
|
setTabletMinimized(true);
|
|
@@ -23408,11 +23431,11 @@ function NavigationSidebar({ config, disabled = false }) {
|
|
|
23408
23431
|
return () => document.removeEventListener("keydown", handleKeyDown);
|
|
23409
23432
|
}, [isOverlayOpen, closeOverlay]);
|
|
23410
23433
|
const handleItemClick = _react.useCallback.call(void 0, (item, event) => {
|
|
23411
|
-
_optionalChain([event, 'optionalAccess',
|
|
23434
|
+
_optionalChain([event, 'optionalAccess', _471 => _471.stopPropagation, 'call', _472 => _472()]);
|
|
23412
23435
|
if (item.onClick) {
|
|
23413
23436
|
item.onClick();
|
|
23414
23437
|
} else if (item.path) {
|
|
23415
|
-
_optionalChain([config, 'access',
|
|
23438
|
+
_optionalChain([config, 'access', _473 => _473.onNavigate, 'optionalCall', _474 => _474(item.path)]);
|
|
23416
23439
|
}
|
|
23417
23440
|
if (isTablet) setTabletMinimized(true);
|
|
23418
23441
|
}, [config, isTablet]);
|
|
@@ -23557,11 +23580,11 @@ function HeaderGlobalSearch({
|
|
|
23557
23580
|
};
|
|
23558
23581
|
const handleSubmit = (e) => {
|
|
23559
23582
|
e.preventDefault();
|
|
23560
|
-
_optionalChain([onSubmit, 'optionalCall',
|
|
23583
|
+
_optionalChain([onSubmit, 'optionalCall', _475 => _475(currentValue)]);
|
|
23561
23584
|
};
|
|
23562
23585
|
const handleKeyDown = (e) => {
|
|
23563
23586
|
if (e.key === "Enter") {
|
|
23564
|
-
_optionalChain([onSubmit, 'optionalCall',
|
|
23587
|
+
_optionalChain([onSubmit, 'optionalCall', _476 => _476(currentValue)]);
|
|
23565
23588
|
}
|
|
23566
23589
|
};
|
|
23567
23590
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
@@ -23655,8 +23678,8 @@ function HeaderOrganizationFilter({
|
|
|
23655
23678
|
className
|
|
23656
23679
|
}) {
|
|
23657
23680
|
const selectedOrg = organizations.find((o) => o.id === selectedOrgId);
|
|
23658
|
-
const displayName = _optionalChain([selectedOrg, 'optionalAccess',
|
|
23659
|
-
const deviceCount = _nullishCoalesce(_optionalChain([selectedOrg, 'optionalAccess',
|
|
23681
|
+
const displayName = _optionalChain([selectedOrg, 'optionalAccess', _477 => _477.name]) || "All Organizations";
|
|
23682
|
+
const deviceCount = _nullishCoalesce(_optionalChain([selectedOrg, 'optionalAccess', _478 => _478.deviceCount]), () => ( totalDeviceCount));
|
|
23660
23683
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkN5UOJC3Vcjs.DropdownMenu, { children: [
|
|
23661
23684
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkN5UOJC3Vcjs.DropdownMenuTrigger, { asChild: true, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
23662
23685
|
"button",
|
|
@@ -23681,11 +23704,11 @@ function HeaderOrganizationFilter({
|
|
|
23681
23704
|
}
|
|
23682
23705
|
) }),
|
|
23683
23706
|
/* @__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',
|
|
23707
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkN5UOJC3Vcjs.DropdownMenuItem, { onClick: () => _optionalChain([onOrgChange, 'optionalCall', _479 => _479("")]), children: "All Organizations" }),
|
|
23685
23708
|
organizations.map((org) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
23686
23709
|
_chunkN5UOJC3Vcjs.DropdownMenuItem,
|
|
23687
23710
|
{
|
|
23688
|
-
onClick: () => _optionalChain([onOrgChange, 'optionalCall',
|
|
23711
|
+
onClick: () => _optionalChain([onOrgChange, 'optionalCall', _480 => _480(org.id)]),
|
|
23689
23712
|
children: org.name
|
|
23690
23713
|
},
|
|
23691
23714
|
org.id
|
|
@@ -23788,7 +23811,7 @@ var AppHeader = React92.default.memo(function AppHeader2({
|
|
|
23788
23811
|
HeaderButton,
|
|
23789
23812
|
{
|
|
23790
23813
|
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
23791
|
-
|
|
23814
|
+
_chunkLH7R56RRcjs.SquareAvatar,
|
|
23792
23815
|
{
|
|
23793
23816
|
src: userAvatarUrl || void 0,
|
|
23794
23817
|
alt: userName || "User",
|
|
@@ -23810,7 +23833,7 @@ var AppHeader = React92.default.memo(function AppHeader2({
|
|
|
23810
23833
|
children: [
|
|
23811
23834
|
/* @__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
23835
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
23813
|
-
|
|
23836
|
+
_chunkLH7R56RRcjs.SquareAvatar,
|
|
23814
23837
|
{
|
|
23815
23838
|
src: userAvatarUrl || void 0,
|
|
23816
23839
|
alt: userName || "User",
|
|
@@ -23870,9 +23893,9 @@ function NotificationsHeaderButton({
|
|
|
23870
23893
|
dimmedClass
|
|
23871
23894
|
}) {
|
|
23872
23895
|
const ctx = useOptionalNotifications();
|
|
23873
|
-
const hasUnread = (_nullishCoalesce(_optionalChain([ctx, 'optionalAccess',
|
|
23874
|
-
const isActive = _nullishCoalesce(_optionalChain([ctx, 'optionalAccess',
|
|
23875
|
-
const onClick = _optionalChain([ctx, 'optionalAccess',
|
|
23896
|
+
const hasUnread = (_nullishCoalesce(_optionalChain([ctx, 'optionalAccess', _481 => _481.unreadCount]), () => ( fallbackUnreadCount))) > 0;
|
|
23897
|
+
const isActive = _nullishCoalesce(_optionalChain([ctx, 'optionalAccess', _482 => _482.isOpen]), () => ( false));
|
|
23898
|
+
const onClick = _optionalChain([ctx, 'optionalAccess', _483 => _483.toggle]);
|
|
23876
23899
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
23877
23900
|
HeaderButton,
|
|
23878
23901
|
{
|
|
@@ -23936,7 +23959,7 @@ var MobileBurgerMenu = React92.default.memo(function MobileBurgerMenu2({
|
|
|
23936
23959
|
if (item.onClick) {
|
|
23937
23960
|
item.onClick();
|
|
23938
23961
|
} else if (item.path) {
|
|
23939
|
-
_optionalChain([config, 'access',
|
|
23962
|
+
_optionalChain([config, 'access', _484 => _484.onNavigate, 'optionalCall', _485 => _485(item.path)]);
|
|
23940
23963
|
}
|
|
23941
23964
|
onClose();
|
|
23942
23965
|
}, [config, onClose]);
|
|
@@ -24029,7 +24052,7 @@ var MobileBurgerMenu = React92.default.memo(function MobileBurgerMenu2({
|
|
|
24029
24052
|
"aria-disabled": disabled || void 0,
|
|
24030
24053
|
children: [
|
|
24031
24054
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
24032
|
-
|
|
24055
|
+
_chunkLH7R56RRcjs.SquareAvatar,
|
|
24033
24056
|
{
|
|
24034
24057
|
src: user.userAvatarUrl || void 0,
|
|
24035
24058
|
alt: user.userName || "User",
|
|
@@ -24179,7 +24202,7 @@ var AppLayoutDrawerRoot = ({
|
|
|
24179
24202
|
const handleOpenChange = React85.useCallback(
|
|
24180
24203
|
(next) => {
|
|
24181
24204
|
if (!isControlled) setInternalOpen(next);
|
|
24182
|
-
_optionalChain([onOpenChange, 'optionalCall',
|
|
24205
|
+
_optionalChain([onOpenChange, 'optionalCall', _486 => _486(next)]);
|
|
24183
24206
|
},
|
|
24184
24207
|
[isControlled, onOpenChange]
|
|
24185
24208
|
);
|
|
@@ -24560,10 +24583,10 @@ var AppLayoutDrawerContent = React85.forwardRef(
|
|
|
24560
24583
|
),
|
|
24561
24584
|
style,
|
|
24562
24585
|
onInteractOutside: (event) => {
|
|
24563
|
-
_optionalChain([onInteractOutside, 'optionalCall',
|
|
24586
|
+
_optionalChain([onInteractOutside, 'optionalCall', _487 => _487(event)]);
|
|
24564
24587
|
if (event.defaultPrevented) return;
|
|
24565
24588
|
const target = event.target;
|
|
24566
|
-
const isInsideContainer = !!target && !!_optionalChain([portalContainer, 'optionalAccess',
|
|
24589
|
+
const isInsideContainer = !!target && !!_optionalChain([portalContainer, 'optionalAccess', _488 => _488.contains, 'call', _489 => _489(target)]);
|
|
24567
24590
|
if (!isInsideContainer) {
|
|
24568
24591
|
event.preventDefault();
|
|
24569
24592
|
return;
|
|
@@ -24752,7 +24775,7 @@ var ShellTypeBadge = ({
|
|
|
24752
24775
|
className,
|
|
24753
24776
|
iconClassName
|
|
24754
24777
|
}) => {
|
|
24755
|
-
const normalizedType = _optionalChain([shellType, 'optionalAccess',
|
|
24778
|
+
const normalizedType = _optionalChain([shellType, 'optionalAccess', _490 => _490.toUpperCase, 'call', _491 => _491()]);
|
|
24756
24779
|
const label = getShellLabel(normalizedType);
|
|
24757
24780
|
const { icon: IconComponent, props: iconProps } = _nullishCoalesce(shellIconMap[normalizedType], () => ( defaultIconConfig));
|
|
24758
24781
|
const defaultIconClassName = "className" in iconProps ? iconProps.className : void 0;
|
|
@@ -25006,7 +25029,7 @@ function OnboardingStepCard({
|
|
|
25006
25029
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "h-[32px] w-[120px] bg-ods-border rounded-[6px] animate-pulse" })
|
|
25007
25030
|
] }) : isCompleted ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
25008
25031
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
25009
|
-
|
|
25032
|
+
_chunkLH7R56RRcjs.StatusBadge,
|
|
25010
25033
|
{
|
|
25011
25034
|
text: "COMPLETED",
|
|
25012
25035
|
variant: "card",
|
|
@@ -25024,7 +25047,7 @@ function OnboardingStepCard({
|
|
|
25024
25047
|
}
|
|
25025
25048
|
)
|
|
25026
25049
|
] }) : isSkipped ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _jsxruntime.Fragment, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
25027
|
-
|
|
25050
|
+
_chunkLH7R56RRcjs.StatusBadge,
|
|
25028
25051
|
{
|
|
25029
25052
|
text: "SKIPPED",
|
|
25030
25053
|
variant: "card",
|
|
@@ -25139,12 +25162,12 @@ function OnboardingWalkthrough({
|
|
|
25139
25162
|
}
|
|
25140
25163
|
}, [state.completedSteps, markComplete]);
|
|
25141
25164
|
const handleStepSkip = (step) => {
|
|
25142
|
-
_optionalChain([step, 'access',
|
|
25165
|
+
_optionalChain([step, 'access', _492 => _492.onSkip, 'optionalCall', _493 => _493()]);
|
|
25143
25166
|
markSkipped(step.id);
|
|
25144
25167
|
};
|
|
25145
25168
|
const handleDismiss = () => {
|
|
25146
25169
|
dismissOnboarding();
|
|
25147
|
-
_optionalChain([onDismiss, 'optionalCall',
|
|
25170
|
+
_optionalChain([onDismiss, 'optionalCall', _494 => _494()]);
|
|
25148
25171
|
};
|
|
25149
25172
|
if (state.dismissed) {
|
|
25150
25173
|
return null;
|
|
@@ -25152,7 +25175,7 @@ function OnboardingWalkthrough({
|
|
|
25152
25175
|
const isAllComplete = allStepsComplete(steps);
|
|
25153
25176
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunkFIG2RKZFcjs.cn.call(void 0, "w-full space-y-4", className), children: [
|
|
25154
25177
|
/* @__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:
|
|
25178
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h2", { className: _chunkLH7R56RRcjs.SECTION_HEADING_CLASS, children: "Get Started" }),
|
|
25156
25179
|
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
25180
|
_chunkN5UOJC3Vcjs.Button,
|
|
25158
25181
|
{
|
|
@@ -25274,7 +25297,7 @@ var LogCard = ({ log, isLast, showConnector, onClick }) => {
|
|
|
25274
25297
|
onKeyDown: (e) => {
|
|
25275
25298
|
if (e.key === "Enter" || e.key === " ") {
|
|
25276
25299
|
e.preventDefault();
|
|
25277
|
-
_optionalChain([onClick, 'optionalCall',
|
|
25300
|
+
_optionalChain([onClick, 'optionalCall', _495 => _495()]);
|
|
25278
25301
|
}
|
|
25279
25302
|
},
|
|
25280
25303
|
children: [
|
|
@@ -25375,7 +25398,7 @@ var LogsList = React89.forwardRef(({
|
|
|
25375
25398
|
log,
|
|
25376
25399
|
isLast: index === logs.length - 1,
|
|
25377
25400
|
showConnector,
|
|
25378
|
-
onClick: () => _optionalChain([onLogClick, 'optionalCall',
|
|
25401
|
+
onClick: () => _optionalChain([onLogClick, 'optionalCall', _496 => _496(log)])
|
|
25379
25402
|
},
|
|
25380
25403
|
log.id
|
|
25381
25404
|
))
|
|
@@ -25476,7 +25499,7 @@ var Slider = React91.forwardRef(
|
|
|
25476
25499
|
({ className, value = [0], onValueChange, min = 0, max = 100, step = 1, ...props }, ref) => {
|
|
25477
25500
|
const handleChange = (e) => {
|
|
25478
25501
|
const newValue = [Number(e.target.value)];
|
|
25479
|
-
_optionalChain([onValueChange, 'optionalCall',
|
|
25502
|
+
_optionalChain([onValueChange, 'optionalCall', _497 => _497(newValue)]);
|
|
25480
25503
|
};
|
|
25481
25504
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
25482
25505
|
"input",
|
|
@@ -25788,7 +25811,7 @@ function CursorPaginationSimple({
|
|
|
25788
25811
|
{
|
|
25789
25812
|
variant: "transparent",
|
|
25790
25813
|
size: "icon",
|
|
25791
|
-
onClick: () => _optionalChain([onPrevious, 'optionalCall',
|
|
25814
|
+
onClick: () => _optionalChain([onPrevious, 'optionalCall', _498 => _498("")]),
|
|
25792
25815
|
disabled: !hasPreviousPage || loading,
|
|
25793
25816
|
className: "h-8 w-8",
|
|
25794
25817
|
leftIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.ChevronLeft, { className: "h-4 w-4" }),
|
|
@@ -25800,7 +25823,7 @@ function CursorPaginationSimple({
|
|
|
25800
25823
|
{
|
|
25801
25824
|
variant: "transparent",
|
|
25802
25825
|
size: "icon",
|
|
25803
|
-
onClick: () => _optionalChain([onNext, 'optionalCall',
|
|
25826
|
+
onClick: () => _optionalChain([onNext, 'optionalCall', _499 => _499("")]),
|
|
25804
25827
|
disabled: !hasNextPage || loading,
|
|
25805
25828
|
className: "h-8 w-8",
|
|
25806
25829
|
rightIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.ChevronRight, { className: "h-4 w-4" }),
|
|
@@ -25820,8 +25843,8 @@ function TableEmptyState({ message: message2, icon, action, className }) {
|
|
|
25820
25843
|
icon: _nullishCoalesce(icon, () => ( /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkWZW7C7TFcjs.SearchIcon, {}))),
|
|
25821
25844
|
title: _nullishCoalesce(message2, () => ( "No results found")),
|
|
25822
25845
|
description: message2 == null ? "Try adjusting your search or filters" : void 0,
|
|
25823
|
-
buttonLabel: _optionalChain([action, 'optionalAccess',
|
|
25824
|
-
onButtonClick: _optionalChain([action, 'optionalAccess',
|
|
25846
|
+
buttonLabel: _optionalChain([action, 'optionalAccess', _500 => _500.label]),
|
|
25847
|
+
onButtonClick: _optionalChain([action, 'optionalAccess', _501 => _501.onClick]),
|
|
25825
25848
|
className: _chunkFIG2RKZFcjs.cn.call(void 0, "py-[var(--spacing-system-xxl)]", className)
|
|
25826
25849
|
}
|
|
25827
25850
|
);
|
|
@@ -25842,7 +25865,7 @@ function TableColumnFilterDropdown({
|
|
|
25842
25865
|
placement = "bottom-start",
|
|
25843
25866
|
dropdownClassName = "min-w-[240px]"
|
|
25844
25867
|
}) {
|
|
25845
|
-
const activeCount = _optionalChain([filters, 'optionalAccess',
|
|
25868
|
+
const activeCount = _optionalChain([filters, 'optionalAccess', _502 => _502[columnKey], 'optionalAccess', _503 => _503.length]) || 0;
|
|
25846
25869
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
25847
25870
|
FiltersDropdown,
|
|
25848
25871
|
{
|
|
@@ -25885,7 +25908,7 @@ function TableColumnFilterDropdown({
|
|
|
25885
25908
|
delete newFilters[columnKey];
|
|
25886
25909
|
onFilterChange(newFilters);
|
|
25887
25910
|
},
|
|
25888
|
-
currentFilters: { [columnKey]: _optionalChain([filters, 'optionalAccess',
|
|
25911
|
+
currentFilters: { [columnKey]: _optionalChain([filters, 'optionalAccess', _504 => _504[columnKey]]) || [] },
|
|
25889
25912
|
placement,
|
|
25890
25913
|
dropdownClassName
|
|
25891
25914
|
}
|
|
@@ -26182,7 +26205,7 @@ function TableRow({
|
|
|
26182
26205
|
const keys = column.key.split(".");
|
|
26183
26206
|
let value = item;
|
|
26184
26207
|
for (const key of keys) {
|
|
26185
|
-
value = _optionalChain([value, 'optionalAccess',
|
|
26208
|
+
value = _optionalChain([value, 'optionalAccess', _505 => _505[key]]);
|
|
26186
26209
|
}
|
|
26187
26210
|
if (value === null || value === void 0) {
|
|
26188
26211
|
return "-";
|
|
@@ -26252,7 +26275,7 @@ function TableRow({
|
|
|
26252
26275
|
// src/components/ui/table/table.tsx
|
|
26253
26276
|
|
|
26254
26277
|
function injectSyntheticColumns(columns, rowActions, renderRowActions, rowHref) {
|
|
26255
|
-
const hasActions = Boolean(_optionalChain([rowActions, 'optionalAccess',
|
|
26278
|
+
const hasActions = Boolean(_optionalChain([rowActions, 'optionalAccess', _506 => _506.length])) || Boolean(renderRowActions);
|
|
26256
26279
|
const result = [...columns];
|
|
26257
26280
|
if (hasActions) {
|
|
26258
26281
|
const actionsColumn = {
|
|
@@ -26346,7 +26369,7 @@ function Table({
|
|
|
26346
26369
|
return rowKey(item);
|
|
26347
26370
|
}
|
|
26348
26371
|
const key = item[rowKey];
|
|
26349
|
-
return _optionalChain([key, 'optionalAccess',
|
|
26372
|
+
return _optionalChain([key, 'optionalAccess', _507 => _507.toString, 'call', _508 => _508()]) || index.toString();
|
|
26350
26373
|
};
|
|
26351
26374
|
const getRowClassName = (item, index) => {
|
|
26352
26375
|
if (typeof rowClassName === "function") {
|
|
@@ -26380,23 +26403,23 @@ function Table({
|
|
|
26380
26403
|
const allSelected = selectedRows.length > 0 && selectedRows.length === data.length;
|
|
26381
26404
|
const someSelected = selectedRows.length > 0 && selectedRows.length < data.length;
|
|
26382
26405
|
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',
|
|
26406
|
+
const onLoadMoreRef = _react.useRef.call(void 0, _optionalChain([infiniteScroll, 'optionalAccess', _509 => _509.onLoadMore]));
|
|
26407
|
+
onLoadMoreRef.current = _optionalChain([infiniteScroll, 'optionalAccess', _510 => _510.onLoadMore]);
|
|
26385
26408
|
_react.useEffect.call(void 0, () => {
|
|
26386
|
-
if (!_optionalChain([infiniteScroll, 'optionalAccess',
|
|
26409
|
+
if (!_optionalChain([infiniteScroll, 'optionalAccess', _511 => _511.hasNextPage]) || infiniteScroll.isFetchingNextPage) return;
|
|
26387
26410
|
const sentinel = sentinelRef.current;
|
|
26388
26411
|
if (!sentinel) return;
|
|
26389
26412
|
const observer = new IntersectionObserver(
|
|
26390
26413
|
(entries) => {
|
|
26391
|
-
if (_optionalChain([entries, 'access',
|
|
26392
|
-
_optionalChain([onLoadMoreRef, 'access',
|
|
26414
|
+
if (_optionalChain([entries, 'access', _512 => _512[0], 'optionalAccess', _513 => _513.isIntersecting])) {
|
|
26415
|
+
_optionalChain([onLoadMoreRef, 'access', _514 => _514.current, 'optionalCall', _515 => _515()]);
|
|
26393
26416
|
}
|
|
26394
26417
|
},
|
|
26395
26418
|
{ rootMargin: "200px" }
|
|
26396
26419
|
);
|
|
26397
26420
|
observer.observe(sentinel);
|
|
26398
26421
|
return () => observer.disconnect();
|
|
26399
|
-
}, [_optionalChain([infiniteScroll, 'optionalAccess',
|
|
26422
|
+
}, [_optionalChain([infiniteScroll, 'optionalAccess', _516 => _516.hasNextPage]), _optionalChain([infiniteScroll, 'optionalAccess', _517 => _517.isFetchingNextPage])]);
|
|
26400
26423
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunkFIG2RKZFcjs.cn.call(void 0, "flex flex-col gap-1 w-full", containerClassName), children: [
|
|
26401
26424
|
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
26425
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "text-ods-text-secondary text-sm", children: [
|
|
@@ -26467,7 +26490,7 @@ function Table({
|
|
|
26467
26490
|
},
|
|
26468
26491
|
getRowKey(item, index)
|
|
26469
26492
|
)),
|
|
26470
|
-
_optionalChain([infiniteScroll, 'optionalAccess',
|
|
26493
|
+
_optionalChain([infiniteScroll, 'optionalAccess', _518 => _518.isFetchingNextPage]) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
26471
26494
|
TableCardSkeleton,
|
|
26472
26495
|
{
|
|
26473
26496
|
columns,
|
|
@@ -26476,7 +26499,7 @@ function Table({
|
|
|
26476
26499
|
hasChevron: Boolean(rowHref)
|
|
26477
26500
|
}
|
|
26478
26501
|
),
|
|
26479
|
-
_optionalChain([infiniteScroll, 'optionalAccess',
|
|
26502
|
+
_optionalChain([infiniteScroll, 'optionalAccess', _519 => _519.hasNextPage]) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { ref: sentinelRef, className: "h-1", "aria-hidden": "true" }),
|
|
26480
26503
|
!infiniteScroll && Array.from({ length: Math.max(0, skeletonRows - data.length) }).map((_, index) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
26481
26504
|
"div",
|
|
26482
26505
|
{
|
|
@@ -26834,7 +26857,7 @@ function QueryReportTable({
|
|
|
26834
26857
|
);
|
|
26835
26858
|
const handleExport = () => {
|
|
26836
26859
|
exportToCSV(data, columns, exportFilename);
|
|
26837
|
-
_optionalChain([onExport, 'optionalCall',
|
|
26860
|
+
_optionalChain([onExport, 'optionalCall', _520 => _520()]);
|
|
26838
26861
|
};
|
|
26839
26862
|
const tableMinWidth = columns.length * (columnWidth + 16);
|
|
26840
26863
|
const {
|
|
@@ -27007,7 +27030,7 @@ function DataTableColumnFilter({
|
|
|
27007
27030
|
align = "left"
|
|
27008
27031
|
}) {
|
|
27009
27032
|
const currentValue = column.getFilterValue();
|
|
27010
|
-
const activeCount = _nullishCoalesce(_optionalChain([currentValue, 'optionalAccess',
|
|
27033
|
+
const activeCount = _nullishCoalesce(_optionalChain([currentValue, 'optionalAccess', _521 => _521.length]), () => ( 0));
|
|
27011
27034
|
const sections = _react.useMemo.call(void 0,
|
|
27012
27035
|
() => [
|
|
27013
27036
|
{
|
|
@@ -27087,7 +27110,7 @@ function DataTableHeader({
|
|
|
27087
27110
|
const hasVisibleHeaderCell = headerGroup.headers.some((header) => {
|
|
27088
27111
|
if (header.isPlaceholder) return false;
|
|
27089
27112
|
if (isLgUp) return true;
|
|
27090
|
-
return Boolean(_optionalChain([header, 'access',
|
|
27113
|
+
return Boolean(_optionalChain([header, 'access', _522 => _522.column, 'access', _523 => _523.columnDef, 'access', _524 => _524.meta, 'optionalAccess', _525 => _525.filter]));
|
|
27091
27114
|
});
|
|
27092
27115
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
27093
27116
|
"div",
|
|
@@ -27117,20 +27140,20 @@ function HeaderCell({ header, isLgUp, sort, onSortChange }) {
|
|
|
27117
27140
|
if (header.isPlaceholder) return null;
|
|
27118
27141
|
const column = header.column;
|
|
27119
27142
|
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',
|
|
27143
|
+
const hasFilter = Boolean(_optionalChain([meta, 'optionalAccess', _526 => _526.filter]));
|
|
27144
|
+
const align = _nullishCoalesce(_optionalChain([meta, 'optionalAccess', _527 => _527.align]), () => ( "left"));
|
|
27145
|
+
const canSort = _optionalChain([meta, 'optionalAccess', _528 => _528.sortable]) === true;
|
|
27146
|
+
const sortDir = _optionalChain([sort, 'optionalAccess', _529 => _529.id]) === column.id ? sort.desc ? "desc" : "asc" : false;
|
|
27124
27147
|
if (!isLgUp && !hasFilter) return null;
|
|
27125
27148
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
27126
27149
|
"div",
|
|
27127
27150
|
{
|
|
27128
27151
|
className: _chunkFIG2RKZFcjs.cn.call(void 0,
|
|
27129
27152
|
"flex items-stretch",
|
|
27130
|
-
isLgUp && (_optionalChain([meta, 'optionalAccess',
|
|
27131
|
-
_optionalChain([meta, 'optionalAccess',
|
|
27153
|
+
isLgUp && (_optionalChain([meta, 'optionalAccess', _530 => _530.width]) || "flex-1 min-w-0"),
|
|
27154
|
+
_optionalChain([meta, 'optionalAccess', _531 => _531.headerClassName]),
|
|
27132
27155
|
// Don't apply hide classes if column is filterable on tablet (keep filter accessible)
|
|
27133
|
-
!(hasFilter && !isLgUp) && getHideClasses2(_optionalChain([meta, 'optionalAccess',
|
|
27156
|
+
!(hasFilter && !isLgUp) && getHideClasses2(_optionalChain([meta, 'optionalAccess', _532 => _532.hideAt]))
|
|
27134
27157
|
),
|
|
27135
27158
|
children: hasFilter ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
27136
27159
|
DataTableColumnFilter,
|
|
@@ -27149,7 +27172,7 @@ function HeaderCell({ header, isLgUp, sort, onSortChange }) {
|
|
|
27149
27172
|
isLgUp && alignJustify(align),
|
|
27150
27173
|
canSort && "group cursor-pointer"
|
|
27151
27174
|
),
|
|
27152
|
-
onClick: canSort ? () => _optionalChain([onSortChange, 'optionalCall',
|
|
27175
|
+
onClick: canSort ? () => _optionalChain([onSortChange, 'optionalCall', _533 => _533(column.id)]) : void 0,
|
|
27153
27176
|
children: [
|
|
27154
27177
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, HeaderLabel, { header }),
|
|
27155
27178
|
canSort && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, SortIcon, { sorted: sortDir })
|
|
@@ -27214,7 +27237,7 @@ function DataTableSkeleton({
|
|
|
27214
27237
|
}) {
|
|
27215
27238
|
const table = useDataTableContext();
|
|
27216
27239
|
const columns = table.getVisibleFlatColumns();
|
|
27217
|
-
const firstColumnId = _optionalChain([columns, 'access',
|
|
27240
|
+
const firstColumnId = _optionalChain([columns, 'access', _534 => _534[0], 'optionalAccess', _535 => _535.id]);
|
|
27218
27241
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _jsxruntime.Fragment, { children: Array.from({ length: rows }).map((_, index) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
27219
27242
|
"div",
|
|
27220
27243
|
{
|
|
@@ -27238,7 +27261,7 @@ function DataTableSkeleton({
|
|
|
27238
27261
|
{
|
|
27239
27262
|
className: _chunkFIG2RKZFcjs.cn.call(void 0,
|
|
27240
27263
|
"flex flex-col justify-center shrink-0",
|
|
27241
|
-
_optionalChain([meta, 'optionalAccess',
|
|
27264
|
+
_optionalChain([meta, 'optionalAccess', _536 => _536.width]) || "flex-1"
|
|
27242
27265
|
),
|
|
27243
27266
|
children: [
|
|
27244
27267
|
/* @__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 +27310,7 @@ function DataTableRowImpl({
|
|
|
27287
27310
|
const handleClick = _react.useCallback.call(void 0,
|
|
27288
27311
|
(e) => {
|
|
27289
27312
|
const target = e.target;
|
|
27290
|
-
if (!_optionalChain([containerRef, 'access',
|
|
27313
|
+
if (!_optionalChain([containerRef, 'access', _537 => _537.current, 'optionalAccess', _538 => _538.contains, 'call', _539 => _539(target)])) {
|
|
27291
27314
|
if (isLinkMode) e.preventDefault();
|
|
27292
27315
|
return;
|
|
27293
27316
|
}
|
|
@@ -27295,7 +27318,7 @@ function DataTableRowImpl({
|
|
|
27295
27318
|
if (isLinkMode) e.preventDefault();
|
|
27296
27319
|
return;
|
|
27297
27320
|
}
|
|
27298
|
-
_optionalChain([onClick, 'optionalCall',
|
|
27321
|
+
_optionalChain([onClick, 'optionalCall', _540 => _540(row.original)]);
|
|
27299
27322
|
},
|
|
27300
27323
|
[onClick, row.original, isLinkMode]
|
|
27301
27324
|
);
|
|
@@ -27320,10 +27343,10 @@ function DataTableRowImpl({
|
|
|
27320
27343
|
{
|
|
27321
27344
|
className: _chunkFIG2RKZFcjs.cn.call(void 0,
|
|
27322
27345
|
"flex flex-col overflow-hidden",
|
|
27323
|
-
alignJustify(_optionalChain([meta, 'optionalAccess',
|
|
27324
|
-
_optionalChain([meta, 'optionalAccess',
|
|
27325
|
-
_optionalChain([meta, 'optionalAccess',
|
|
27326
|
-
getHideClasses2(_optionalChain([meta, 'optionalAccess',
|
|
27346
|
+
alignJustify(_optionalChain([meta, 'optionalAccess', _541 => _541.align])),
|
|
27347
|
+
_optionalChain([meta, 'optionalAccess', _542 => _542.width]) || "flex-1 min-w-0",
|
|
27348
|
+
_optionalChain([meta, 'optionalAccess', _543 => _543.cellClassName]),
|
|
27349
|
+
getHideClasses2(_optionalChain([meta, 'optionalAccess', _544 => _544.hideAt]))
|
|
27327
27350
|
),
|
|
27328
27351
|
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, CellContent, { children: _reacttable.flexRender.call(void 0, cell.column.columnDef.cell, cell.getContext()) })
|
|
27329
27352
|
},
|
|
@@ -27402,7 +27425,7 @@ function DataTableBody({
|
|
|
27402
27425
|
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
27426
|
rows.map((row, index) => {
|
|
27404
27427
|
const item = row.original;
|
|
27405
|
-
const href = _nullishCoalesce(_optionalChain([rowHref, 'optionalCall',
|
|
27428
|
+
const href = _nullishCoalesce(_optionalChain([rowHref, 'optionalCall', _545 => _545(item)]), () => ( void 0));
|
|
27406
27429
|
const cls = typeof rowClassName === "function" ? rowClassName(item, index) : rowClassName;
|
|
27407
27430
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
27408
27431
|
DataTableRow,
|
|
@@ -27412,7 +27435,7 @@ function DataTableBody({
|
|
|
27412
27435
|
href,
|
|
27413
27436
|
compact,
|
|
27414
27437
|
className: cls,
|
|
27415
|
-
subRow: _optionalChain([renderSubRow, 'optionalCall',
|
|
27438
|
+
subRow: _optionalChain([renderSubRow, 'optionalCall', _546 => _546(item)])
|
|
27416
27439
|
},
|
|
27417
27440
|
row.id
|
|
27418
27441
|
);
|
|
@@ -27467,7 +27490,7 @@ function DataTableInfiniteFooter({
|
|
|
27467
27490
|
if (!sentinel) return;
|
|
27468
27491
|
const observer = new IntersectionObserver(
|
|
27469
27492
|
(entries) => {
|
|
27470
|
-
if (_optionalChain([entries, 'access',
|
|
27493
|
+
if (_optionalChain([entries, 'access', _547 => _547[0], 'optionalAccess', _548 => _548.isIntersecting])) onLoadMoreRef.current();
|
|
27471
27494
|
},
|
|
27472
27495
|
{ rootMargin }
|
|
27473
27496
|
);
|
|
@@ -27515,7 +27538,7 @@ function DataTableRowCount({
|
|
|
27515
27538
|
const table = useDataTableContext();
|
|
27516
27539
|
const count = _nullishCoalesce(totalCount, () => ( table.getRowModel().rows.length));
|
|
27517
27540
|
if (hideWhenEmpty && count === 0) return null;
|
|
27518
|
-
const label = _nullishCoalesce(_optionalChain([pluralize, 'optionalCall',
|
|
27541
|
+
const label = _nullishCoalesce(_optionalChain([pluralize, 'optionalCall', _549 => _549(count, itemName)]), () => ( (count === 1 ? itemName : `${itemName}s`)));
|
|
27519
27542
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
27520
27543
|
"span",
|
|
27521
27544
|
{
|
|
@@ -27600,7 +27623,7 @@ function FilterListItem({
|
|
|
27600
27623
|
}) {
|
|
27601
27624
|
const handleToggle = () => {
|
|
27602
27625
|
if (disabled) return;
|
|
27603
|
-
_optionalChain([onToggle, 'optionalCall',
|
|
27626
|
+
_optionalChain([onToggle, 'optionalCall', _550 => _550(!selected)]);
|
|
27604
27627
|
};
|
|
27605
27628
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
27606
27629
|
"div",
|
|
@@ -27647,7 +27670,7 @@ function FilterListItem({
|
|
|
27647
27670
|
CheckboxPrimitive4.Root,
|
|
27648
27671
|
{
|
|
27649
27672
|
checked: selected,
|
|
27650
|
-
onCheckedChange: (c) => _optionalChain([onToggle, 'optionalCall',
|
|
27673
|
+
onCheckedChange: (c) => _optionalChain([onToggle, 'optionalCall', _551 => _551(c === true)]),
|
|
27651
27674
|
onClick: (e) => e.stopPropagation(),
|
|
27652
27675
|
disabled,
|
|
27653
27676
|
"aria-label": title,
|
|
@@ -27746,7 +27769,7 @@ function TagSearchInput({
|
|
|
27746
27769
|
if (!showHiddenTags) return;
|
|
27747
27770
|
const handleClick = (e) => {
|
|
27748
27771
|
const target = e.target;
|
|
27749
|
-
if (!_optionalChain([hiddenTagsRef, 'access',
|
|
27772
|
+
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
27773
|
setShowHiddenTags(false);
|
|
27751
27774
|
}
|
|
27752
27775
|
};
|
|
@@ -27762,13 +27785,13 @@ function TagSearchInput({
|
|
|
27762
27785
|
e.preventDefault();
|
|
27763
27786
|
onSubmit(searchValue);
|
|
27764
27787
|
}
|
|
27765
|
-
_optionalChain([onKeyDown, 'optionalCall',
|
|
27788
|
+
_optionalChain([onKeyDown, 'optionalCall', _558 => _558(e)]);
|
|
27766
27789
|
};
|
|
27767
27790
|
const handleClearAll = (e) => {
|
|
27768
27791
|
e.stopPropagation();
|
|
27769
27792
|
e.preventDefault();
|
|
27770
|
-
_optionalChain([onClearAll, 'optionalCall',
|
|
27771
|
-
_optionalChain([inputRef, 'access',
|
|
27793
|
+
_optionalChain([onClearAll, 'optionalCall', _559 => _559()]);
|
|
27794
|
+
_optionalChain([inputRef, 'access', _560 => _560.current, 'optionalAccess', _561 => _561.focus, 'call', _562 => _562()]);
|
|
27772
27795
|
};
|
|
27773
27796
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { ref: wrapperRef, className: "relative", children: [
|
|
27774
27797
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
@@ -27785,13 +27808,13 @@ function TagSearchInput({
|
|
|
27785
27808
|
className
|
|
27786
27809
|
),
|
|
27787
27810
|
onClick: () => {
|
|
27788
|
-
if (!disabled) _optionalChain([inputRef, 'access',
|
|
27811
|
+
if (!disabled) _optionalChain([inputRef, 'access', _563 => _563.current, 'optionalAccess', _564 => _564.focus, 'call', _565 => _565()]);
|
|
27789
27812
|
},
|
|
27790
27813
|
children: [
|
|
27791
27814
|
/* @__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
27815
|
/* @__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
27816
|
visibleTags.map((tag) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
27794
|
-
|
|
27817
|
+
_chunkLH7R56RRcjs.Tag,
|
|
27795
27818
|
{
|
|
27796
27819
|
variant: "outline",
|
|
27797
27820
|
label: renderTag ? renderTag(tag) : tag.label,
|
|
@@ -27851,13 +27874,13 @@ function TagSearchInput({
|
|
|
27851
27874
|
}
|
|
27852
27875
|
),
|
|
27853
27876
|
showHiddenTags && hiddenCount > 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
27854
|
-
|
|
27877
|
+
_chunkLH7R56RRcjs.HiddenTagsPopup,
|
|
27855
27878
|
{
|
|
27856
27879
|
ref: hiddenTagsPopupRef,
|
|
27857
27880
|
items: hiddenTags,
|
|
27858
27881
|
disabled,
|
|
27859
27882
|
style: {
|
|
27860
|
-
left: badgeRef.current ? badgeRef.current.getBoundingClientRect().left - (_nullishCoalesce(_optionalChain([wrapperRef, 'access',
|
|
27883
|
+
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
27884
|
},
|
|
27862
27885
|
onRemove: (value) => {
|
|
27863
27886
|
onTagRemove(value);
|
|
@@ -27881,7 +27904,7 @@ function TagSearchInput({
|
|
|
27881
27904
|
"aria-hidden": "true",
|
|
27882
27905
|
className: "absolute left-0 top-0 flex gap-2 pointer-events-none invisible -z-10",
|
|
27883
27906
|
children: tags.map((tag) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
27884
|
-
|
|
27907
|
+
_chunkLH7R56RRcjs.Tag,
|
|
27885
27908
|
{
|
|
27886
27909
|
variant: "outline",
|
|
27887
27910
|
label: renderTag ? renderTag(tag) : tag.label,
|
|
@@ -27958,7 +27981,7 @@ function MarkdownEditor({
|
|
|
27958
27981
|
const [defaultExtraCommands, setDefaultExtraCommands] = _react.useState.call(void 0, []);
|
|
27959
27982
|
_react.useEffect.call(void 0, () => {
|
|
27960
27983
|
Promise.resolve().then(() => _interopRequireWildcard(require("@uiw/react-md-editor"))).then((mod) => {
|
|
27961
|
-
if (_optionalChain([mod, 'access',
|
|
27984
|
+
if (_optionalChain([mod, 'access', _570 => _570.commands, 'optionalAccess', _571 => _571.getExtraCommands])) {
|
|
27962
27985
|
setDefaultExtraCommands(mod.commands.getExtraCommands());
|
|
27963
27986
|
}
|
|
27964
27987
|
});
|
|
@@ -27992,7 +28015,7 @@ function MarkdownEditor({
|
|
|
27992
28015
|
const isImage = file.type.startsWith("image/");
|
|
27993
28016
|
const markdown = isImage ? `` : `[${file.name}](${url})`;
|
|
27994
28017
|
insertTextAtCursor(markdown);
|
|
27995
|
-
_optionalChain([onFileUploaded, 'optionalCall',
|
|
28018
|
+
_optionalChain([onFileUploaded, 'optionalCall', _572 => _572(url, file.name)]);
|
|
27996
28019
|
} catch (error) {
|
|
27997
28020
|
console.error("File upload failed:", error);
|
|
27998
28021
|
setUploadProgress("Upload failed. Please try again.");
|
|
@@ -28005,7 +28028,7 @@ function MarkdownEditor({
|
|
|
28005
28028
|
);
|
|
28006
28029
|
const handleFileInputChange = _react.useCallback.call(void 0,
|
|
28007
28030
|
(e) => {
|
|
28008
|
-
const file = _optionalChain([e, 'access',
|
|
28031
|
+
const file = _optionalChain([e, 'access', _573 => _573.target, 'access', _574 => _574.files, 'optionalAccess', _575 => _575[0]]);
|
|
28009
28032
|
if (file) {
|
|
28010
28033
|
handleFileUpload(file);
|
|
28011
28034
|
e.target.value = "";
|
|
@@ -28016,7 +28039,7 @@ function MarkdownEditor({
|
|
|
28016
28039
|
const handlePaste = _react.useCallback.call(void 0,
|
|
28017
28040
|
(e) => {
|
|
28018
28041
|
if (!onUploadFile) return;
|
|
28019
|
-
const items = _optionalChain([e, 'access',
|
|
28042
|
+
const items = _optionalChain([e, 'access', _576 => _576.clipboardData, 'optionalAccess', _577 => _577.items]);
|
|
28020
28043
|
if (!items) return;
|
|
28021
28044
|
for (const item of items) {
|
|
28022
28045
|
if (item.type.startsWith("image/")) {
|
|
@@ -28041,7 +28064,7 @@ function MarkdownEditor({
|
|
|
28041
28064
|
buttonProps: { "aria-label": "Upload file", title: "Upload file" },
|
|
28042
28065
|
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
28066
|
execute: () => {
|
|
28044
|
-
_optionalChain([fileInputRef, 'access',
|
|
28067
|
+
_optionalChain([fileInputRef, 'access', _578 => _578.current, 'optionalAccess', _579 => _579.click, 'call', _580 => _580()]);
|
|
28045
28068
|
}
|
|
28046
28069
|
} : null;
|
|
28047
28070
|
const extraCommands = uploadCommand ? [...defaultExtraCommands, uploadCommand] : defaultExtraCommands;
|
|
@@ -28053,7 +28076,7 @@ function MarkdownEditor({
|
|
|
28053
28076
|
const EDGE_ZONE = 60;
|
|
28054
28077
|
const MAX_SCROLL_SPEED = 15;
|
|
28055
28078
|
const findScrollParent = _react.useCallback.call(void 0, (el) => {
|
|
28056
|
-
let node = _optionalChain([el, 'optionalAccess',
|
|
28079
|
+
let node = _optionalChain([el, 'optionalAccess', _581 => _581.parentElement]);
|
|
28057
28080
|
while (node && node !== document.documentElement) {
|
|
28058
28081
|
const { overflowY } = window.getComputedStyle(node);
|
|
28059
28082
|
if ((overflowY === "auto" || overflowY === "scroll") && node.scrollHeight > node.clientHeight) {
|
|
@@ -28196,7 +28219,7 @@ function matchesAccept(file, accept) {
|
|
|
28196
28219
|
});
|
|
28197
28220
|
}
|
|
28198
28221
|
function dragHasFiles(e) {
|
|
28199
|
-
const types = _optionalChain([e, 'access',
|
|
28222
|
+
const types = _optionalChain([e, 'access', _582 => _582.dataTransfer, 'optionalAccess', _583 => _583.types]);
|
|
28200
28223
|
if (!types) return false;
|
|
28201
28224
|
for (let i = 0; i < types.length; i++) {
|
|
28202
28225
|
if (types[i] === "Files") return true;
|
|
@@ -28291,7 +28314,7 @@ function FileUpload({
|
|
|
28291
28314
|
e.stopPropagation();
|
|
28292
28315
|
setDragActive(false);
|
|
28293
28316
|
if (disabled) return;
|
|
28294
|
-
if (_optionalChain([e, 'access',
|
|
28317
|
+
if (_optionalChain([e, 'access', _584 => _584.dataTransfer, 'access', _585 => _585.files, 'optionalAccess', _586 => _586.length])) {
|
|
28295
28318
|
handleFiles(e.dataTransfer.files);
|
|
28296
28319
|
}
|
|
28297
28320
|
};
|
|
@@ -28319,7 +28342,7 @@ function FileUpload({
|
|
|
28319
28342
|
e.preventDefault();
|
|
28320
28343
|
dragCounter = 0;
|
|
28321
28344
|
setDragActive(false);
|
|
28322
|
-
if (_optionalChain([e, 'access',
|
|
28345
|
+
if (_optionalChain([e, 'access', _587 => _587.dataTransfer, 'optionalAccess', _588 => _588.files, 'optionalAccess', _589 => _589.length])) {
|
|
28323
28346
|
handleFilesRef.current(e.dataTransfer.files);
|
|
28324
28347
|
}
|
|
28325
28348
|
};
|
|
@@ -28341,7 +28364,7 @@ function FileUpload({
|
|
|
28341
28364
|
};
|
|
28342
28365
|
}, [acceptWindowDrops, disabled]);
|
|
28343
28366
|
const handleFileSelect = (e) => {
|
|
28344
|
-
if (_optionalChain([e, 'access',
|
|
28367
|
+
if (_optionalChain([e, 'access', _590 => _590.target, 'access', _591 => _591.files, 'optionalAccess', _592 => _592.length])) {
|
|
28345
28368
|
handleFiles(e.target.files);
|
|
28346
28369
|
}
|
|
28347
28370
|
};
|
|
@@ -28358,7 +28381,7 @@ function FileUpload({
|
|
|
28358
28381
|
};
|
|
28359
28382
|
const openDialog = async () => {
|
|
28360
28383
|
if (disabled) return;
|
|
28361
|
-
_optionalChain([fileInputRef, 'access',
|
|
28384
|
+
_optionalChain([fileInputRef, 'access', _593 => _593.current, 'optionalAccess', _594 => _594.click, 'call', _595 => _595()]);
|
|
28362
28385
|
};
|
|
28363
28386
|
const displayError = error || validationError || void 0;
|
|
28364
28387
|
const hasFiles = isManaged ? managedFiles.length > 0 : files.length > 0;
|
|
@@ -28436,7 +28459,7 @@ function FileUpload({
|
|
|
28436
28459
|
"button",
|
|
28437
28460
|
{
|
|
28438
28461
|
type: "button",
|
|
28439
|
-
onClick: () => _optionalChain([onRemoveManagedFile, 'optionalCall',
|
|
28462
|
+
onClick: () => _optionalChain([onRemoveManagedFile, 'optionalCall', _596 => _596(entry.id)]),
|
|
28440
28463
|
className: "shrink-0 p-1 rounded hover:bg-ods-bg transition-colors",
|
|
28441
28464
|
"aria-label": `Remove ${entry.fileName}`,
|
|
28442
28465
|
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.X, { className: "size-4 text-ods-text-secondary" })
|
|
@@ -28559,7 +28582,7 @@ function ImageUploader({
|
|
|
28559
28582
|
onChange(file);
|
|
28560
28583
|
};
|
|
28561
28584
|
const handleFileSelect = (e) => {
|
|
28562
|
-
validateAndEmit(_optionalChain([e, 'access',
|
|
28585
|
+
validateAndEmit(_optionalChain([e, 'access', _597 => _597.target, 'access', _598 => _598.files, 'optionalAccess', _599 => _599[0]]));
|
|
28563
28586
|
if (inputRef.current) inputRef.current.value = "";
|
|
28564
28587
|
};
|
|
28565
28588
|
const handleDrag = (e) => {
|
|
@@ -28574,11 +28597,11 @@ function ImageUploader({
|
|
|
28574
28597
|
e.stopPropagation();
|
|
28575
28598
|
setDragActive(false);
|
|
28576
28599
|
if (!interactive) return;
|
|
28577
|
-
validateAndEmit(_optionalChain([e, 'access',
|
|
28600
|
+
validateAndEmit(_optionalChain([e, 'access', _600 => _600.dataTransfer, 'access', _601 => _601.files, 'optionalAccess', _602 => _602[0]]));
|
|
28578
28601
|
};
|
|
28579
28602
|
const openDialog = () => {
|
|
28580
28603
|
if (!interactive) return;
|
|
28581
|
-
_optionalChain([inputRef, 'access',
|
|
28604
|
+
_optionalChain([inputRef, 'access', _603 => _603.current, 'optionalAccess', _604 => _604.click, 'call', _605 => _605()]);
|
|
28582
28605
|
};
|
|
28583
28606
|
const handleRootKeyDown = (e) => {
|
|
28584
28607
|
if (hasImage || !interactive) return;
|
|
@@ -28768,8 +28791,8 @@ function ColorPresetSelect({
|
|
|
28768
28791
|
}) {
|
|
28769
28792
|
const selectedPreset = presets.find((p) => p.key === presetKey);
|
|
28770
28793
|
const isCustom = !selectedPreset;
|
|
28771
|
-
const displayLabel = _nullishCoalesce(_optionalChain([selectedPreset, 'optionalAccess',
|
|
28772
|
-
const displayColor = _nullishCoalesce(_optionalChain([selectedPreset, 'optionalAccess',
|
|
28794
|
+
const displayLabel = _nullishCoalesce(_optionalChain([selectedPreset, 'optionalAccess', _606 => _606.label]), () => ( "Custom"));
|
|
28795
|
+
const displayColor = _nullishCoalesce(_optionalChain([selectedPreset, 'optionalAccess', _607 => _607.color]), () => ( value));
|
|
28773
28796
|
const groups = [
|
|
28774
28797
|
{
|
|
28775
28798
|
items: [
|
|
@@ -28789,7 +28812,7 @@ function ColorPresetSelect({
|
|
|
28789
28812
|
}
|
|
28790
28813
|
];
|
|
28791
28814
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
28792
|
-
|
|
28815
|
+
_chunkLH7R56RRcjs.ActionsMenuDropdown,
|
|
28793
28816
|
{
|
|
28794
28817
|
groups,
|
|
28795
28818
|
align: "start",
|
|
@@ -28939,7 +28962,7 @@ function ColorPickerInput({ value, onChange, disabled, className }) {
|
|
|
28939
28962
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reactcolorful.HexColorPicker, { color: value, onChange }),
|
|
28940
28963
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center gap-[var(--spacing-system-xs)]", children: [
|
|
28941
28964
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
28942
|
-
|
|
28965
|
+
_chunkLH7R56RRcjs.ActionsMenuDropdown,
|
|
28943
28966
|
{
|
|
28944
28967
|
groups: formatGroups,
|
|
28945
28968
|
align: "start",
|
|
@@ -29059,7 +29082,7 @@ function TicketStatusConfigRow({
|
|
|
29059
29082
|
_chunk6JINAOI7cjs.Input,
|
|
29060
29083
|
{
|
|
29061
29084
|
value: name,
|
|
29062
|
-
onChange: (e) => _optionalChain([onNameChange, 'optionalCall',
|
|
29085
|
+
onChange: (e) => _optionalChain([onNameChange, 'optionalCall', _608 => _608(e.target.value)]),
|
|
29063
29086
|
disabled: isSystem,
|
|
29064
29087
|
readOnly: isSystem,
|
|
29065
29088
|
"aria-label": "Status name",
|
|
@@ -29142,7 +29165,7 @@ function CompactAssigneeDropdown({
|
|
|
29142
29165
|
return [current, ...filtered.filter((o) => o.value !== currentAssignee.id)];
|
|
29143
29166
|
}, [filtered, currentAssignee]);
|
|
29144
29167
|
const handleSelect = (userId) => {
|
|
29145
|
-
const next = _optionalChain([currentAssignee, 'optionalAccess',
|
|
29168
|
+
const next = _optionalChain([currentAssignee, 'optionalAccess', _609 => _609.id]) === userId ? null : userId;
|
|
29146
29169
|
onAssign(next);
|
|
29147
29170
|
setIsOpen(false);
|
|
29148
29171
|
};
|
|
@@ -29156,7 +29179,7 @@ function CompactAssigneeDropdown({
|
|
|
29156
29179
|
className
|
|
29157
29180
|
),
|
|
29158
29181
|
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
29159
|
-
|
|
29182
|
+
_chunkLH7R56RRcjs.SquareAvatar,
|
|
29160
29183
|
{
|
|
29161
29184
|
src: currentAssignee.avatarSrc,
|
|
29162
29185
|
alt: currentAssignee.name,
|
|
@@ -29207,7 +29230,7 @@ function CompactAssigneeDropdown({
|
|
|
29207
29230
|
}
|
|
29208
29231
|
) }),
|
|
29209
29232
|
/* @__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',
|
|
29233
|
+
const isCurrent = _optionalChain([currentAssignee, 'optionalAccess', _610 => _610.id]) === opt.value;
|
|
29211
29234
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
29212
29235
|
"button",
|
|
29213
29236
|
{
|
|
@@ -29222,7 +29245,7 @@ function CompactAssigneeDropdown({
|
|
|
29222
29245
|
),
|
|
29223
29246
|
children: [
|
|
29224
29247
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
29225
|
-
|
|
29248
|
+
_chunkLH7R56RRcjs.SquareAvatar,
|
|
29226
29249
|
{
|
|
29227
29250
|
src: opt.imageUrl,
|
|
29228
29251
|
alt: opt.label,
|
|
@@ -29257,7 +29280,7 @@ function DefaultAssigneeDropdown({
|
|
|
29257
29280
|
const opt = option;
|
|
29258
29281
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center gap-[var(--spacing-system-sf)] w-full min-w-0", children: [
|
|
29259
29282
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
29260
|
-
|
|
29283
|
+
_chunkLH7R56RRcjs.SquareAvatar,
|
|
29261
29284
|
{
|
|
29262
29285
|
src: opt.imageUrl,
|
|
29263
29286
|
alt: opt.label,
|
|
@@ -29276,7 +29299,7 @@ function DefaultAssigneeDropdown({
|
|
|
29276
29299
|
Autocomplete,
|
|
29277
29300
|
{
|
|
29278
29301
|
options,
|
|
29279
|
-
value: _nullishCoalesce(_optionalChain([currentAssignee, 'optionalAccess',
|
|
29302
|
+
value: _nullishCoalesce(_optionalChain([currentAssignee, 'optionalAccess', _611 => _611.id]), () => ( null)),
|
|
29280
29303
|
onChange: (val) => {
|
|
29281
29304
|
onAssign(val);
|
|
29282
29305
|
setIsEditing(false);
|
|
@@ -29285,7 +29308,7 @@ function DefaultAssigneeDropdown({
|
|
|
29285
29308
|
loading: isLoading,
|
|
29286
29309
|
showChevron: false,
|
|
29287
29310
|
startAdornment: hasAssignee ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
29288
|
-
|
|
29311
|
+
_chunkLH7R56RRcjs.SquareAvatar,
|
|
29289
29312
|
{
|
|
29290
29313
|
src: currentAssignee.avatarSrc,
|
|
29291
29314
|
alt: currentAssignee.name,
|
|
@@ -29304,7 +29327,7 @@ function DefaultAssigneeDropdown({
|
|
|
29304
29327
|
if (hasAssignee) {
|
|
29305
29328
|
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
29329
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
29307
|
-
|
|
29330
|
+
_chunkLH7R56RRcjs.SquareAvatar,
|
|
29308
29331
|
{
|
|
29309
29332
|
src: currentAssignee.avatarSrc,
|
|
29310
29333
|
alt: currentAssignee.name,
|
|
@@ -29378,7 +29401,7 @@ function TicketAttachmentsList({ attachments, className, size = "default" }) {
|
|
|
29378
29401
|
),
|
|
29379
29402
|
children: [
|
|
29380
29403
|
attachment.thumbnailSrc ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
29381
|
-
|
|
29404
|
+
_chunkLH7R56RRcjs.SquareAvatar,
|
|
29382
29405
|
{
|
|
29383
29406
|
src: attachment.thumbnailSrc,
|
|
29384
29407
|
alt: attachment.fileName,
|
|
@@ -29462,7 +29485,7 @@ function TicketNoteCard({ note, onEdit, onDelete, className }) {
|
|
|
29462
29485
|
),
|
|
29463
29486
|
children: [
|
|
29464
29487
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
29465
|
-
|
|
29488
|
+
_chunkLH7R56RRcjs.SquareAvatar,
|
|
29466
29489
|
{
|
|
29467
29490
|
src: note.authorAvatar,
|
|
29468
29491
|
alt: note.authorName,
|
|
@@ -29663,16 +29686,16 @@ function TicketInfoSection({
|
|
|
29663
29686
|
/* @__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
29687
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center gap-2 min-w-0", children: [
|
|
29665
29688
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
29666
|
-
|
|
29689
|
+
_chunkLH7R56RRcjs.SquareAvatar,
|
|
29667
29690
|
{
|
|
29668
|
-
src: _optionalChain([organization, 'optionalAccess',
|
|
29669
|
-
alt: _optionalChain([organization, 'optionalAccess',
|
|
29670
|
-
fallback: _optionalChain([organization, 'optionalAccess',
|
|
29691
|
+
src: _optionalChain([organization, 'optionalAccess', _612 => _612.imageSrc]),
|
|
29692
|
+
alt: _optionalChain([organization, 'optionalAccess', _613 => _613.name]),
|
|
29693
|
+
fallback: _optionalChain([organization, 'optionalAccess', _614 => _614.name]) || "Org",
|
|
29671
29694
|
size: "md",
|
|
29672
29695
|
className: "shrink-0"
|
|
29673
29696
|
}
|
|
29674
29697
|
),
|
|
29675
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, InfoCell2, { value: _optionalChain([organization, 'optionalAccess',
|
|
29698
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, InfoCell2, { value: _optionalChain([organization, 'optionalAccess', _615 => _615.name]) || "Unassigned", label: "Organization" })
|
|
29676
29699
|
] }),
|
|
29677
29700
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "min-w-0", children: assigned ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
29678
29701
|
AssigneeDropdown,
|
|
@@ -29693,10 +29716,10 @@ function TicketInfoSection({
|
|
|
29693
29716
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
29694
29717
|
InfoCell2,
|
|
29695
29718
|
{
|
|
29696
|
-
value: _optionalChain([device, 'optionalAccess',
|
|
29719
|
+
value: _optionalChain([device, 'optionalAccess', _616 => _616.name]) || "Unassigned",
|
|
29697
29720
|
label: "Device",
|
|
29698
|
-
icon: _optionalChain([device, 'optionalAccess',
|
|
29699
|
-
onClick: _optionalChain([device, 'optionalAccess',
|
|
29721
|
+
icon: _optionalChain([device, 'optionalAccess', _617 => _617.icon]),
|
|
29722
|
+
onClick: _optionalChain([device, 'optionalAccess', _618 => _618.onClick])
|
|
29700
29723
|
}
|
|
29701
29724
|
),
|
|
29702
29725
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center gap-4 min-w-0", children: [
|
|
@@ -29738,9 +29761,9 @@ function TicketInfoSection({
|
|
|
29738
29761
|
expanded && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
29739
29762
|
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
29763
|
/* @__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,
|
|
29764
|
+
description && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLH7R56RRcjs.SimpleMarkdownRenderer, { content: description }),
|
|
29742
29765
|
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,
|
|
29766
|
+
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
29767
|
(notes || onAddNote) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TicketDetailSection, { label: "Notes", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
29745
29768
|
TicketNotesSection,
|
|
29746
29769
|
{
|
|
@@ -29937,18 +29960,18 @@ function TaskTypeIcon({ customItemId, className = "h-5 w-5" }) {
|
|
|
29937
29960
|
|
|
29938
29961
|
function RoadmapCardSkeleton({ size = "default" }) {
|
|
29939
29962
|
if (size === "sm") {
|
|
29940
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className:
|
|
29963
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: _chunkLH7R56RRcjs.COMPACT_CARD_SKELETON_OUTER, children: [
|
|
29941
29964
|
/* @__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: `${
|
|
29965
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: _chunkLH7R56RRcjs.COMPACT_CARD_TEXT_COL, children: [
|
|
29966
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: `${_chunkLH7R56RRcjs.COMPACT_CARD_TITLE_ROW} flex-nowrap gap-2`, children: [
|
|
29944
29967
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "h-3.5 w-1/2 rounded bg-ods-bg" }),
|
|
29945
29968
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "h-4 w-12 rounded bg-ods-bg/70 shrink-0" })
|
|
29946
29969
|
] }),
|
|
29947
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: `${
|
|
29970
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: `${_chunkLH7R56RRcjs.COMPACT_CARD_META_ROW_BOX} flex-nowrap gap-2`, children: [
|
|
29948
29971
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "h-3 w-2/5 rounded bg-ods-bg/60 flex-1" }),
|
|
29949
29972
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "h-3 w-10 rounded bg-ods-bg/40 shrink-0" })
|
|
29950
29973
|
] }),
|
|
29951
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
29974
|
+
/* @__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
29975
|
] })
|
|
29953
29976
|
] });
|
|
29954
29977
|
}
|
|
@@ -29987,12 +30010,12 @@ function RoadmapCard({
|
|
|
29987
30010
|
}) {
|
|
29988
30011
|
const [showScreenshots, setShowScreenshots] = _react.useState.call(void 0, false);
|
|
29989
30012
|
const logoUrl = item.icon && item.icon.startsWith("http") ? item.icon : null;
|
|
29990
|
-
const iconSrc = logoUrl ?
|
|
30013
|
+
const iconSrc = logoUrl ? _chunkLH7R56RRcjs.getProxiedImageUrl.call(void 0, logoUrl, { directHttps: true }) || logoUrl : null;
|
|
29991
30014
|
if (size === "sm") {
|
|
29992
|
-
const compactHref =
|
|
30015
|
+
const compactHref = _chunkLH7R56RRcjs.safeHref.call(void 0, _nullishCoalesce(href, () => ( null)));
|
|
29993
30016
|
const hasVotes = (_nullishCoalesce(item.upvotes, () => ( 0))) > 0 || (_nullishCoalesce(item.downvotes, () => ( 0))) > 0;
|
|
29994
30017
|
const hasFigma = !!item.figmaUrl;
|
|
29995
|
-
const hasScreenshots = (_nullishCoalesce(_optionalChain([item, 'access',
|
|
30018
|
+
const hasScreenshots = (_nullishCoalesce(_optionalChain([item, 'access', _619 => _619.screenshots, 'optionalAccess', _620 => _620.length]), () => ( 0))) > 0;
|
|
29996
30019
|
const typeLabel = getTaskTypeLabel(item.customItemId);
|
|
29997
30020
|
const useTypeIcon = cardType === "internal_task" || !iconSrc && item.customItemId != null;
|
|
29998
30021
|
const body = /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
@@ -30011,14 +30034,14 @@ function RoadmapCard({
|
|
|
30011
30034
|
unoptimized: true,
|
|
30012
30035
|
className: "h-8 w-8 object-contain"
|
|
30013
30036
|
}
|
|
30014
|
-
) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "text-[10px] font-medium uppercase text-ods-text-secondary", children: _optionalChain([item, 'access',
|
|
30037
|
+
) : /* @__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
30038
|
}
|
|
30016
30039
|
),
|
|
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: `${
|
|
30040
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: _chunkLH7R56RRcjs.COMPACT_CARD_TEXT_COL, children: [
|
|
30041
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: `${_chunkLH7R56RRcjs.COMPACT_CARD_TITLE_ROW} gap-2`, children: [
|
|
30042
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: `${_chunkLH7R56RRcjs.COMPACT_CARD_TITLE} min-w-0`, children: item.title }),
|
|
30020
30043
|
item.status && item.status.trim().length > 0 ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
30021
|
-
|
|
30044
|
+
_chunkLH7R56RRcjs.StatusBadge,
|
|
30022
30045
|
{
|
|
30023
30046
|
text: item.status.toUpperCase(),
|
|
30024
30047
|
colorScheme: getStatusColorScheme(item.status),
|
|
@@ -30028,7 +30051,7 @@ function RoadmapCard({
|
|
|
30028
30051
|
}
|
|
30029
30052
|
) : null
|
|
30030
30053
|
] }),
|
|
30031
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: `${
|
|
30054
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: `${_chunkLH7R56RRcjs.COMPACT_CARD_META_ROW_BOX} gap-2 text-ods-text-secondary`, children: [
|
|
30032
30055
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "truncate text-[11px] leading-4 min-w-0 flex-1", children: (() => {
|
|
30033
30056
|
const parts = [
|
|
30034
30057
|
item.quarter,
|
|
@@ -30066,13 +30089,13 @@ function RoadmapCard({
|
|
|
30066
30089
|
}
|
|
30067
30090
|
) : null
|
|
30068
30091
|
] }),
|
|
30069
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
30092
|
+
/* @__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
30093
|
] })
|
|
30071
30094
|
] });
|
|
30072
30095
|
if (!compactHref) {
|
|
30073
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: `${
|
|
30096
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: `${_chunkLH7R56RRcjs.COMPACT_CARD_OUTER_STATIC} ${_nullishCoalesce(className, () => ( ""))}`, "aria-label": "No link available", children: body });
|
|
30074
30097
|
}
|
|
30075
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "a", { href: compactHref, target, rel, className: `${
|
|
30098
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "a", { href: compactHref, target, rel, className: `${_chunkLH7R56RRcjs.COMPACT_CARD_OUTER} ${_nullishCoalesce(className, () => ( ""))}`, children: body });
|
|
30076
30099
|
}
|
|
30077
30100
|
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
30101
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex gap-[16px] items-center w-full", children: [
|
|
@@ -30086,7 +30109,7 @@ function RoadmapCard({
|
|
|
30086
30109
|
unoptimized: true,
|
|
30087
30110
|
className: "object-contain p-1"
|
|
30088
30111
|
}
|
|
30089
|
-
) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "text-xs font-medium uppercase text-ods-text-secondary", children: _optionalChain([item, 'access',
|
|
30112
|
+
) : /* @__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
30113
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex-1 min-w-0 flex flex-col", children: [
|
|
30091
30114
|
/* @__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
30115
|
/* @__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 +30119,7 @@ function RoadmapCard({
|
|
|
30096
30119
|
] }) })
|
|
30097
30120
|
] }),
|
|
30098
30121
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "hidden md:block", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
30099
|
-
|
|
30122
|
+
_chunkLH7R56RRcjs.StatusBadge,
|
|
30100
30123
|
{
|
|
30101
30124
|
text: item.status.toUpperCase(),
|
|
30102
30125
|
colorScheme: getStatusColorScheme(item.status),
|
|
@@ -30105,7 +30128,7 @@ function RoadmapCard({
|
|
|
30105
30128
|
) })
|
|
30106
30129
|
] }),
|
|
30107
30130
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "md:hidden", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
30108
|
-
|
|
30131
|
+
_chunkLH7R56RRcjs.StatusBadge,
|
|
30109
30132
|
{
|
|
30110
30133
|
text: item.status.toUpperCase(),
|
|
30111
30134
|
colorScheme: getStatusColorScheme(item.status),
|
|
@@ -30152,7 +30175,7 @@ function RoadmapCard({
|
|
|
30152
30175
|
}
|
|
30153
30176
|
),
|
|
30154
30177
|
(() => {
|
|
30155
|
-
const figmaSafe =
|
|
30178
|
+
const figmaSafe = _chunkLH7R56RRcjs.safeHref.call(void 0, item.figmaUrl);
|
|
30156
30179
|
return figmaSafe ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
30157
30180
|
_chunkN5UOJC3Vcjs.Button,
|
|
30158
30181
|
{
|
|
@@ -30165,7 +30188,7 @@ function RoadmapCard({
|
|
|
30165
30188
|
) : null;
|
|
30166
30189
|
})(),
|
|
30167
30190
|
item.targetVersion && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
30168
|
-
|
|
30191
|
+
_chunkLH7R56RRcjs.StatusBadge,
|
|
30169
30192
|
{
|
|
30170
30193
|
text: `${item.targetVersion} VERSION`,
|
|
30171
30194
|
className: "border border-ods-border"
|
|
@@ -30293,7 +30316,7 @@ function ReviewStateBadge({ state, className = "" }) {
|
|
|
30293
30316
|
function GitHubActivityCard({ item, variant = "compact", className, anchorProps }) {
|
|
30294
30317
|
const kind = _nullishCoalesce(item.kind, () => ( "commit"));
|
|
30295
30318
|
const repo = _nullishCoalesce(_nullishCoalesce(item.repo, () => ( parseRepoFromUrl(item.url))), () => ( ""));
|
|
30296
|
-
const dateText =
|
|
30319
|
+
const dateText = _chunkLH7R56RRcjs.formatDateUTC.call(void 0, item.dateUpdated, { fallback: "", timezone: "local" });
|
|
30297
30320
|
const idLabel = formatActivityId(item.id, kind);
|
|
30298
30321
|
const { display: title, reviewState } = parseGithubTitle(item.title, kind);
|
|
30299
30322
|
const primaryText = kind === "pr_review" ? title.replace(/^by\s+/i, "").trim() || "Reviewer" : title;
|
|
@@ -30318,24 +30341,24 @@ function GitHubActivityCard({ item, variant = "compact", className, anchorProps
|
|
|
30318
30341
|
if (idLabel) metaParts.push(/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "code", { className: "font-mono", children: idLabel }, "id"));
|
|
30319
30342
|
if (repo) metaParts.push(/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "font-mono truncate", children: repo }, "repo"));
|
|
30320
30343
|
if (dateText) metaParts.push(/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "whitespace-nowrap", children: dateText }, "date"));
|
|
30321
|
-
const href =
|
|
30344
|
+
const href = _chunkLH7R56RRcjs.safeHref.call(void 0, item.url);
|
|
30322
30345
|
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: `${
|
|
30346
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkLH7R56RRcjs.COMPACT_CARD_ICON_SLOT, children: kindIcon(kind, "h-5 w-5") }),
|
|
30347
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: _chunkLH7R56RRcjs.COMPACT_CARD_TEXT_COL, children: [
|
|
30348
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: `${_chunkLH7R56RRcjs.COMPACT_CARD_TITLE_ROW} flex-nowrap gap-1.5`, children: [
|
|
30326
30349
|
reviewState ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, ReviewStateBadge, { state: reviewState }) : null,
|
|
30327
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
30350
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkLH7R56RRcjs.COMPACT_CARD_TITLE, children: primaryText })
|
|
30328
30351
|
] }),
|
|
30329
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
30352
|
+
/* @__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
30353
|
i > 0 ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "text-ods-text-secondary/40 shrink-0", children: "\xB7" }) : null,
|
|
30331
30354
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "min-w-0 truncate", children: part })
|
|
30332
30355
|
] }, i)) }) }),
|
|
30333
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
30356
|
+
/* @__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
30357
|
] }),
|
|
30335
30358
|
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
30359
|
] });
|
|
30337
30360
|
if (anchorProps) {
|
|
30338
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "a", { ...anchorProps, className: `${
|
|
30361
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "a", { ...anchorProps, className: `${_chunkLH7R56RRcjs.COMPACT_CARD_OUTER} ${_nullishCoalesce(className, () => ( ""))}`, children: body });
|
|
30339
30362
|
}
|
|
30340
30363
|
return href ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
30341
30364
|
"a",
|
|
@@ -30343,10 +30366,10 @@ function GitHubActivityCard({ item, variant = "compact", className, anchorProps
|
|
|
30343
30366
|
href,
|
|
30344
30367
|
target: "_blank",
|
|
30345
30368
|
rel: "noopener noreferrer",
|
|
30346
|
-
className: `${
|
|
30369
|
+
className: `${_chunkLH7R56RRcjs.COMPACT_CARD_OUTER} ${_nullishCoalesce(className, () => ( ""))}`,
|
|
30347
30370
|
children: body
|
|
30348
30371
|
}
|
|
30349
|
-
) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: `${
|
|
30372
|
+
) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: `${_chunkLH7R56RRcjs.COMPACT_CARD_OUTER_STATIC} ${_nullishCoalesce(className, () => ( ""))}`, "aria-label": "No link available", children: body });
|
|
30350
30373
|
}
|
|
30351
30374
|
function GitHubActivityCardSkeleton({ variant = "compact", className }) {
|
|
30352
30375
|
if (variant === "row") {
|
|
@@ -30360,12 +30383,12 @@ function GitHubActivityCardSkeleton({ variant = "compact", className }) {
|
|
|
30360
30383
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "h-3 w-20 bg-ods-bg/60 rounded shrink-0" })
|
|
30361
30384
|
] });
|
|
30362
30385
|
}
|
|
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:
|
|
30386
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: `${_chunkLH7R56RRcjs.COMPACT_CARD_SKELETON_OUTER} ${_nullishCoalesce(className, () => ( ""))}`, children: [
|
|
30387
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkLH7R56RRcjs.COMPACT_CARD_SKELETON_IMAGE_SLOT }),
|
|
30388
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: _chunkLH7R56RRcjs.COMPACT_CARD_TEXT_COL, children: [
|
|
30389
|
+
/* @__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" }) }),
|
|
30390
|
+
/* @__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" }) }),
|
|
30391
|
+
/* @__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
30392
|
] }),
|
|
30370
30393
|
/* @__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
30394
|
] });
|
|
@@ -30389,7 +30412,7 @@ function parseChannelFromUrl(url) {
|
|
|
30389
30412
|
}
|
|
30390
30413
|
function SlackMessageCard({ item, variant = "compact", className, anchorProps }) {
|
|
30391
30414
|
const channel = _nullishCoalesce(_nullishCoalesce(item.channel, () => ( parseChannelFromUrl(item.url))), () => ( null));
|
|
30392
|
-
const dateText =
|
|
30415
|
+
const dateText = _chunkLH7R56RRcjs.formatDateUTC.call(void 0, item.dateUpdated, { fallback: "", timezone: "local" });
|
|
30393
30416
|
if (variant === "row") {
|
|
30394
30417
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: `flex items-center gap-3 min-w-0 ${_nullishCoalesce(className, () => ( ""))}`, children: [
|
|
30395
30418
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLGLPNWS6cjs.SlackIcon, { className: "h-3.5 w-3.5 shrink-0" }),
|
|
@@ -30412,21 +30435,21 @@ function SlackMessageCard({ item, variant = "compact", className, anchorProps })
|
|
|
30412
30435
|
);
|
|
30413
30436
|
}
|
|
30414
30437
|
if (dateText) metaParts.push(/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "whitespace-nowrap", children: dateText }, "date"));
|
|
30415
|
-
const href =
|
|
30438
|
+
const href = _chunkLH7R56RRcjs.safeHref.call(void 0, item.url);
|
|
30416
30439
|
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:
|
|
30440
|
+
/* @__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" }) }),
|
|
30441
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: _chunkLH7R56RRcjs.COMPACT_CARD_TEXT_COL, children: [
|
|
30442
|
+
/* @__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 }) }),
|
|
30443
|
+
/* @__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 }) }),
|
|
30444
|
+
/* @__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
30445
|
i > 0 ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "text-ods-text-secondary/40 shrink-0", children: "\xB7" }) : null,
|
|
30423
30446
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "min-w-0 truncate", children: part })
|
|
30424
|
-
] }, i)) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
30447
|
+
] }, i)) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkLH7R56RRcjs.COMPACT_CARD_SUMMARY, children: _chunkLH7R56RRcjs.COMPACT_CARD_ROW_FILLER }) }) })
|
|
30425
30448
|
] }),
|
|
30426
30449
|
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
30450
|
] });
|
|
30428
30451
|
if (anchorProps) {
|
|
30429
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "a", { ...anchorProps, className: `${
|
|
30452
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "a", { ...anchorProps, className: `${_chunkLH7R56RRcjs.COMPACT_CARD_OUTER} ${_nullishCoalesce(className, () => ( ""))}`, children: body });
|
|
30430
30453
|
}
|
|
30431
30454
|
return href ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
30432
30455
|
"a",
|
|
@@ -30434,10 +30457,10 @@ function SlackMessageCard({ item, variant = "compact", className, anchorProps })
|
|
|
30434
30457
|
href,
|
|
30435
30458
|
target: "_blank",
|
|
30436
30459
|
rel: "noopener noreferrer",
|
|
30437
|
-
className: `${
|
|
30460
|
+
className: `${_chunkLH7R56RRcjs.COMPACT_CARD_OUTER} ${_nullishCoalesce(className, () => ( ""))}`,
|
|
30438
30461
|
children: body
|
|
30439
30462
|
}
|
|
30440
|
-
) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: `${
|
|
30463
|
+
) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: `${_chunkLH7R56RRcjs.COMPACT_CARD_OUTER_STATIC} ${_nullishCoalesce(className, () => ( ""))}`, "aria-label": "No link available", children: body });
|
|
30441
30464
|
}
|
|
30442
30465
|
function SlackMessageCardSkeleton({ variant = "compact", className }) {
|
|
30443
30466
|
if (variant === "row") {
|
|
@@ -30449,12 +30472,12 @@ function SlackMessageCardSkeleton({ variant = "compact", className }) {
|
|
|
30449
30472
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "h-3 w-20 bg-ods-bg/60 rounded shrink-0" })
|
|
30450
30473
|
] });
|
|
30451
30474
|
}
|
|
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:
|
|
30475
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: `${_chunkLH7R56RRcjs.COMPACT_CARD_SKELETON_OUTER} ${_nullishCoalesce(className, () => ( ""))}`, children: [
|
|
30476
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkLH7R56RRcjs.COMPACT_CARD_SKELETON_IMAGE_SLOT }),
|
|
30477
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: _chunkLH7R56RRcjs.COMPACT_CARD_TEXT_COL, children: [
|
|
30478
|
+
/* @__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" }) }),
|
|
30479
|
+
/* @__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" }) }),
|
|
30480
|
+
/* @__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
30481
|
] }),
|
|
30459
30482
|
/* @__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
30483
|
] });
|
|
@@ -30485,12 +30508,12 @@ function statusScheme(status) {
|
|
|
30485
30508
|
function HubspotTicketCard({ item, variant = "compact", className, anchorProps }) {
|
|
30486
30509
|
const statusText = _nullishCoalesce(item.statusLabel, () => ( formatToken(item.status)));
|
|
30487
30510
|
const priorityText = formatToken(item.priority);
|
|
30488
|
-
const dateText =
|
|
30511
|
+
const dateText = _chunkLH7R56RRcjs.formatDateUTC.call(void 0, item.dateUpdated, { fallback: "", timezone: "local" });
|
|
30489
30512
|
if (variant === "row") {
|
|
30490
30513
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: `flex items-center gap-3 min-w-0 ${_nullishCoalesce(className, () => ( ""))}`, children: [
|
|
30491
30514
|
/* @__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
30515
|
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,
|
|
30516
|
+
statusText ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLH7R56RRcjs.StatusBadge, { text: statusText, variant: "button", colorScheme: statusScheme(item.status) }) : null,
|
|
30494
30517
|
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
30518
|
] });
|
|
30496
30519
|
}
|
|
@@ -30501,13 +30524,13 @@ function HubspotTicketCard({ item, variant = "compact", className, anchorProps }
|
|
|
30501
30524
|
);
|
|
30502
30525
|
}
|
|
30503
30526
|
if (dateText) metaParts.push(/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "whitespace-nowrap", children: dateText }, "date"));
|
|
30504
|
-
const href =
|
|
30527
|
+
const href = _chunkLH7R56RRcjs.safeHref.call(void 0, item.url);
|
|
30505
30528
|
const body = /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
30506
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className:
|
|
30529
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: _chunkLH7R56RRcjs.COMPACT_CARD_TEXT_COL, children: [
|
|
30507
30530
|
/* @__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: `${
|
|
30531
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: `${_chunkLH7R56RRcjs.COMPACT_CARD_TITLE} shrink min-w-0`, children: item.title }),
|
|
30509
30532
|
priorityText ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
30510
|
-
|
|
30533
|
+
_chunkLH7R56RRcjs.StatusBadge,
|
|
30511
30534
|
{
|
|
30512
30535
|
text: priorityText,
|
|
30513
30536
|
variant: "button",
|
|
@@ -30516,7 +30539,7 @@ function HubspotTicketCard({ item, variant = "compact", className, anchorProps }
|
|
|
30516
30539
|
}
|
|
30517
30540
|
) : null,
|
|
30518
30541
|
statusText ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
30519
|
-
|
|
30542
|
+
_chunkLH7R56RRcjs.StatusBadge,
|
|
30520
30543
|
{
|
|
30521
30544
|
text: statusText,
|
|
30522
30545
|
variant: "button",
|
|
@@ -30530,7 +30553,7 @@ function HubspotTicketCard({ item, variant = "compact", className, anchorProps }
|
|
|
30530
30553
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "min-w-0 truncate", children: item.customerEmail })
|
|
30531
30554
|
] }) : null,
|
|
30532
30555
|
/* @__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:
|
|
30556
|
+
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
30557
|
i > 0 ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "text-ods-text-secondary/40 shrink-0", children: "\xB7" }) : null,
|
|
30535
30558
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "min-w-0 truncate", children: part })
|
|
30536
30559
|
] }, i)) }) }) : null
|
|
@@ -30538,7 +30561,7 @@ function HubspotTicketCard({ item, variant = "compact", className, anchorProps }
|
|
|
30538
30561
|
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
30562
|
] });
|
|
30540
30563
|
if (anchorProps) {
|
|
30541
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "a", { ...anchorProps, className: `${
|
|
30564
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "a", { ...anchorProps, className: `${_chunkLH7R56RRcjs.COMPACT_CARD_OUTER} ${_nullishCoalesce(className, () => ( ""))}`, children: body });
|
|
30542
30565
|
}
|
|
30543
30566
|
return href ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
30544
30567
|
"a",
|
|
@@ -30546,10 +30569,10 @@ function HubspotTicketCard({ item, variant = "compact", className, anchorProps }
|
|
|
30546
30569
|
href,
|
|
30547
30570
|
target: "_blank",
|
|
30548
30571
|
rel: "noopener noreferrer",
|
|
30549
|
-
className: `${
|
|
30572
|
+
className: `${_chunkLH7R56RRcjs.COMPACT_CARD_OUTER} ${_nullishCoalesce(className, () => ( ""))}`,
|
|
30550
30573
|
children: body
|
|
30551
30574
|
}
|
|
30552
|
-
) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: `${
|
|
30575
|
+
) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: `${_chunkLH7R56RRcjs.COMPACT_CARD_OUTER_STATIC} ${_nullishCoalesce(className, () => ( ""))}`, "aria-label": "No link available", children: body });
|
|
30553
30576
|
}
|
|
30554
30577
|
function HubspotTicketCardSkeleton({ variant = "compact", className }) {
|
|
30555
30578
|
if (variant === "row") {
|
|
@@ -30560,8 +30583,8 @@ function HubspotTicketCardSkeleton({ variant = "compact", className }) {
|
|
|
30560
30583
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "h-3 w-20 bg-ods-bg/60 rounded shrink-0" })
|
|
30561
30584
|
] });
|
|
30562
30585
|
}
|
|
30563
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: `${
|
|
30564
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className:
|
|
30586
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: `${_chunkLH7R56RRcjs.COMPACT_CARD_SKELETON_OUTER} ${_nullishCoalesce(className, () => ( ""))}`, children: [
|
|
30587
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: _chunkLH7R56RRcjs.COMPACT_CARD_TEXT_COL, children: [
|
|
30565
30588
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "flex flex-wrap items-center gap-1.5 min-w-0", children: [
|
|
30566
30589
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "h-3.5 w-2/3 rounded bg-ods-bg" }),
|
|
30567
30590
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "h-4 w-12 rounded-full bg-ods-bg/60" }),
|
|
@@ -30574,7 +30597,7 @@ function HubspotTicketCardSkeleton({ variant = "compact", className }) {
|
|
|
30574
30597
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "h-5 w-3/4 rounded bg-ods-bg/60" }),
|
|
30575
30598
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "h-5 w-2/5 rounded bg-ods-bg/60" })
|
|
30576
30599
|
] }),
|
|
30577
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
30600
|
+
/* @__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
30601
|
] }),
|
|
30579
30602
|
/* @__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
30603
|
] });
|
|
@@ -30585,10 +30608,10 @@ function HubspotTicketCardSkeleton({ variant = "compact", className }) {
|
|
|
30585
30608
|
|
|
30586
30609
|
function DataRoomDocCard({ item, className, badgeText, anchorProps }) {
|
|
30587
30610
|
const body = /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
30588
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className:
|
|
30611
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: _chunkLH7R56RRcjs.COMPACT_CARD_TEXT_COL, children: [
|
|
30589
30612
|
/* @__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,
|
|
30613
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: `${_chunkLH7R56RRcjs.COMPACT_CARD_TITLE} shrink min-w-0`, children: item.title }),
|
|
30614
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLH7R56RRcjs.StatusBadge, { text: badgeText, variant: "button", colorScheme: "cyan", className: "shrink-0" })
|
|
30592
30615
|
] }),
|
|
30593
30616
|
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
30617
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "shrink-0 text-ods-text-secondary/70", children: "Path:" }),
|
|
@@ -30596,16 +30619,16 @@ function DataRoomDocCard({ item, className, badgeText, anchorProps }) {
|
|
|
30596
30619
|
] }) : null,
|
|
30597
30620
|
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
30621
|
] }),
|
|
30599
|
-
_optionalChain([anchorProps, 'optionalAccess',
|
|
30622
|
+
_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
30623
|
] });
|
|
30601
30624
|
if (!anchorProps) {
|
|
30602
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: `${
|
|
30625
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: `${_chunkLH7R56RRcjs.COMPACT_CARD_OUTER_STATIC} ${_nullishCoalesce(className, () => ( ""))}`, "aria-label": "No link available", children: body });
|
|
30603
30626
|
}
|
|
30604
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "a", { ...anchorProps, className: `${
|
|
30627
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "a", { ...anchorProps, className: `${_chunkLH7R56RRcjs.COMPACT_CARD_OUTER} ${_nullishCoalesce(className, () => ( ""))}`, children: body });
|
|
30605
30628
|
}
|
|
30606
30629
|
function DataRoomDocCardSkeleton({ className }) {
|
|
30607
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: `${
|
|
30608
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className:
|
|
30630
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: `${_chunkLH7R56RRcjs.COMPACT_CARD_SKELETON_OUTER} ${_nullishCoalesce(className, () => ( ""))}`, children: [
|
|
30631
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: _chunkLH7R56RRcjs.COMPACT_CARD_TEXT_COL, children: [
|
|
30609
30632
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "flex items-center gap-1.5 min-w-0", children: [
|
|
30610
30633
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "h-3.5 w-2/3 rounded bg-ods-bg" }),
|
|
30611
30634
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "h-4 w-16 rounded-full bg-ods-bg/60" })
|
|
@@ -30666,7 +30689,7 @@ function getDefaultOptions() {
|
|
|
30666
30689
|
// node_modules/date-fns/startOfWeek.mjs
|
|
30667
30690
|
function startOfWeek(date, options) {
|
|
30668
30691
|
const defaultOptions2 = getDefaultOptions();
|
|
30669
|
-
const weekStartsOn = _nullishCoalesce(_nullishCoalesce(_nullishCoalesce(_nullishCoalesce(_optionalChain([options, 'optionalAccess',
|
|
30692
|
+
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
30693
|
const _date = toDate(date);
|
|
30671
30694
|
const day = _date.getDay();
|
|
30672
30695
|
const diff = (day < weekStartsOn ? 7 : 0) + day - weekStartsOn;
|
|
@@ -30841,7 +30864,7 @@ var formatDistance = (token, count, options) => {
|
|
|
30841
30864
|
} else {
|
|
30842
30865
|
result = tokenValue.other.replace("{{count}}", count.toString());
|
|
30843
30866
|
}
|
|
30844
|
-
if (_optionalChain([options, 'optionalAccess',
|
|
30867
|
+
if (_optionalChain([options, 'optionalAccess', _635 => _635.addSuffix])) {
|
|
30845
30868
|
if (options.comparison && options.comparison > 0) {
|
|
30846
30869
|
return "in " + result;
|
|
30847
30870
|
} else {
|
|
@@ -30908,15 +30931,15 @@ var formatRelative = (token, _date, _baseDate, _options) => formatRelativeLocale
|
|
|
30908
30931
|
// node_modules/date-fns/locale/_lib/buildLocalizeFn.mjs
|
|
30909
30932
|
function buildLocalizeFn(args) {
|
|
30910
30933
|
return (value, options) => {
|
|
30911
|
-
const context = _optionalChain([options, 'optionalAccess',
|
|
30934
|
+
const context = _optionalChain([options, 'optionalAccess', _636 => _636.context]) ? String(options.context) : "standalone";
|
|
30912
30935
|
let valuesArray;
|
|
30913
30936
|
if (context === "formatting" && args.formattingValues) {
|
|
30914
30937
|
const defaultWidth = args.defaultFormattingWidth || args.defaultWidth;
|
|
30915
|
-
const width = _optionalChain([options, 'optionalAccess',
|
|
30938
|
+
const width = _optionalChain([options, 'optionalAccess', _637 => _637.width]) ? String(options.width) : defaultWidth;
|
|
30916
30939
|
valuesArray = args.formattingValues[width] || args.formattingValues[defaultWidth];
|
|
30917
30940
|
} else {
|
|
30918
30941
|
const defaultWidth = args.defaultWidth;
|
|
30919
|
-
const width = _optionalChain([options, 'optionalAccess',
|
|
30942
|
+
const width = _optionalChain([options, 'optionalAccess', _638 => _638.width]) ? String(options.width) : args.defaultWidth;
|
|
30920
30943
|
valuesArray = args.values[width] || args.values[defaultWidth];
|
|
30921
30944
|
}
|
|
30922
30945
|
const index = args.argumentCallback ? args.argumentCallback(value) : value;
|
|
@@ -31296,7 +31319,7 @@ function getWeekYear(date, options) {
|
|
|
31296
31319
|
const _date = toDate(date);
|
|
31297
31320
|
const year = _date.getFullYear();
|
|
31298
31321
|
const defaultOptions2 = getDefaultOptions();
|
|
31299
|
-
const firstWeekContainsDate = _nullishCoalesce(_nullishCoalesce(_nullishCoalesce(_nullishCoalesce(_optionalChain([options, 'optionalAccess',
|
|
31322
|
+
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
31323
|
const firstWeekOfNextYear = constructFrom(date, 0);
|
|
31301
31324
|
firstWeekOfNextYear.setFullYear(year + 1, 0, firstWeekContainsDate);
|
|
31302
31325
|
firstWeekOfNextYear.setHours(0, 0, 0, 0);
|
|
@@ -31317,7 +31340,7 @@ function getWeekYear(date, options) {
|
|
|
31317
31340
|
// node_modules/date-fns/startOfWeekYear.mjs
|
|
31318
31341
|
function startOfWeekYear(date, options) {
|
|
31319
31342
|
const defaultOptions2 = getDefaultOptions();
|
|
31320
|
-
const firstWeekContainsDate = _nullishCoalesce(_nullishCoalesce(_nullishCoalesce(_nullishCoalesce(_optionalChain([options, 'optionalAccess',
|
|
31343
|
+
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
31344
|
const year = getWeekYear(date, options);
|
|
31322
31345
|
const firstWeek = constructFrom(date, 0);
|
|
31323
31346
|
firstWeek.setFullYear(year, 0, firstWeekContainsDate);
|
|
@@ -32132,9 +32155,9 @@ var doubleQuoteRegExp = /''/g;
|
|
|
32132
32155
|
var unescapedLatinCharacterRegExp = /[a-zA-Z]/;
|
|
32133
32156
|
function format(date, formatStr, options) {
|
|
32134
32157
|
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',
|
|
32158
|
+
const locale = _nullishCoalesce(_nullishCoalesce(_optionalChain([options, 'optionalAccess', _653 => _653.locale]), () => ( defaultOptions2.locale)), () => ( enUS));
|
|
32159
|
+
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));
|
|
32160
|
+
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
32161
|
const originalDate = toDate(date);
|
|
32139
32162
|
if (!isValid(originalDate)) {
|
|
32140
32163
|
throw new RangeError("Invalid time value");
|
|
@@ -32175,7 +32198,7 @@ function format(date, formatStr, options) {
|
|
|
32175
32198
|
return parts.map((part) => {
|
|
32176
32199
|
if (!part.isToken) return part.value;
|
|
32177
32200
|
const token = part.value;
|
|
32178
|
-
if (!_optionalChain([options, 'optionalAccess',
|
|
32201
|
+
if (!_optionalChain([options, 'optionalAccess', _668 => _668.useAdditionalWeekYearTokens]) && isProtectedWeekYearToken(token) || !_optionalChain([options, 'optionalAccess', _669 => _669.useAdditionalDayOfYearTokens]) && isProtectedDayOfYearToken(token)) {
|
|
32179
32202
|
warnOrThrowProtectedError(token, formatStr, String(date));
|
|
32180
32203
|
}
|
|
32181
32204
|
const formatter = formatters[token[0]];
|
|
@@ -32197,12 +32220,12 @@ _chunkFIG2RKZFcjs.init_cn.call(void 0, );
|
|
|
32197
32220
|
|
|
32198
32221
|
function ProgramCardSkeleton({ size = "default" }) {
|
|
32199
32222
|
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:
|
|
32223
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: _chunkLH7R56RRcjs.COMPACT_CARD_SKELETON_OUTER, children: [
|
|
32224
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkLH7R56RRcjs.COMPACT_CARD_SKELETON_IMAGE_SLOT }),
|
|
32225
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: _chunkLH7R56RRcjs.COMPACT_CARD_TEXT_COL, children: [
|
|
32226
|
+
/* @__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" }) }),
|
|
32227
|
+
/* @__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" }) }),
|
|
32228
|
+
/* @__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
32229
|
] }),
|
|
32207
32230
|
/* @__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
32231
|
] });
|
|
@@ -32315,13 +32338,13 @@ function ProgramCard({
|
|
|
32315
32338
|
wholeCardClickable = false,
|
|
32316
32339
|
className
|
|
32317
32340
|
}) {
|
|
32318
|
-
const { target, rel } =
|
|
32341
|
+
const { target, rel } = _chunkLH7R56RRcjs.useEntityCardLink.call(void 0, {
|
|
32319
32342
|
href,
|
|
32320
32343
|
targetPlatform,
|
|
32321
32344
|
target: targetProp,
|
|
32322
32345
|
rel: relProp
|
|
32323
32346
|
});
|
|
32324
|
-
const placeholderUrl =
|
|
32347
|
+
const placeholderUrl = _chunkLH7R56RRcjs.useEntityCardPlaceholder.call(void 0, {
|
|
32325
32348
|
title: item.title,
|
|
32326
32349
|
placeholderUrl: placeholderUrlProp,
|
|
32327
32350
|
aspect: size === "sm" ? "square" : "wide"
|
|
@@ -32343,21 +32366,21 @@ function ProgramCard({
|
|
|
32343
32366
|
let typeMeta = null;
|
|
32344
32367
|
if (config.type === "podcast" && "duration_seconds" in item && !isScheduled) {
|
|
32345
32368
|
const dur = item.duration_seconds;
|
|
32346
|
-
if (typeof dur === "number" && dur > 0) typeMeta =
|
|
32369
|
+
if (typeof dur === "number" && dur > 0) typeMeta = _chunkLH7R56RRcjs.formatDurationCompact.call(void 0, dur);
|
|
32347
32370
|
} else if (config.type === "event" && "location_name" in item) {
|
|
32348
32371
|
const loc = item.location_name;
|
|
32349
32372
|
if (typeof loc === "string" && loc.trim().length > 0) typeMeta = loc;
|
|
32350
32373
|
} else if (config.type === "webinar" && "start_at" in item) {
|
|
32351
32374
|
const w = item;
|
|
32352
|
-
const time =
|
|
32353
|
-
const dur =
|
|
32375
|
+
const time = _chunkLH7R56RRcjs.formatTimeWithTimezone.call(void 0, w.start_at, null);
|
|
32376
|
+
const dur = _chunkLH7R56RRcjs.formatDurationFromRange.call(void 0, w.start_at, w.end_at);
|
|
32354
32377
|
typeMeta = dur ? `${time} \xB7 ${dur}` : time;
|
|
32355
32378
|
}
|
|
32356
|
-
const subtitleParts = [itemDate2, typeMeta, _optionalChain([config, 'access',
|
|
32379
|
+
const subtitleParts = [itemDate2, typeMeta, _optionalChain([config, 'access', _670 => _670.labels, 'optionalAccess', _671 => _671.singular])].filter(
|
|
32357
32380
|
(s) => typeof s === "string" && s.length > 0
|
|
32358
32381
|
);
|
|
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:
|
|
32382
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "a", { href, target, rel, className: _chunkFIG2RKZFcjs.cn.call(void 0, _chunkLH7R56RRcjs.COMPACT_CARD_OUTER, className), children: [
|
|
32383
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: _chunkLH7R56RRcjs.COMPACT_CARD_IMAGE_SLOT, children: [
|
|
32361
32384
|
compactCover ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
32362
32385
|
_chunkXL4V2PYGcjs.next_image_default,
|
|
32363
32386
|
{
|
|
@@ -32371,10 +32394,10 @@ function ProgramCard({
|
|
|
32371
32394
|
) : /* @__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
32395
|
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
32396
|
] }),
|
|
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:
|
|
32397
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: _chunkLH7R56RRcjs.COMPACT_CARD_TEXT_COL, children: [
|
|
32398
|
+
/* @__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 }) }),
|
|
32399
|
+
/* @__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 ") }) }),
|
|
32400
|
+
/* @__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
32401
|
] }),
|
|
32379
32402
|
/* @__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
32403
|
] });
|
|
@@ -32385,7 +32408,7 @@ function ProgramCard({
|
|
|
32385
32408
|
if (config.type === "podcast" && "duration_seconds" in item && !isScheduled) {
|
|
32386
32409
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
32387
32410
|
/* @__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:
|
|
32411
|
+
/* @__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
32412
|
] });
|
|
32390
32413
|
}
|
|
32391
32414
|
if (config.type === "event" && "location_name" in item) {
|
|
@@ -32393,11 +32416,11 @@ function ProgramCard({
|
|
|
32393
32416
|
}
|
|
32394
32417
|
if (config.type === "webinar" && "start_at" in item) {
|
|
32395
32418
|
const webinarItem = item;
|
|
32396
|
-
const duration =
|
|
32419
|
+
const duration = _chunkLH7R56RRcjs.formatDurationFromRange.call(void 0, webinarItem.start_at, webinarItem.end_at);
|
|
32397
32420
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
32398
32421
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.Video, { className: "w-4 h-4 text-ods-text-secondary" }),
|
|
32399
32422
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "font-['DM_Sans'] text-ods-text-secondary", children: [
|
|
32400
|
-
|
|
32423
|
+
_chunkLH7R56RRcjs.formatTimeWithTimezone.call(void 0, webinarItem.start_at, null),
|
|
32401
32424
|
duration && ` \xB7 ${duration}`
|
|
32402
32425
|
] }),
|
|
32403
32426
|
webinarItem.timezone && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "font-['DM_Sans'] text-xs text-ods-text-secondary", children: [
|
|
@@ -32439,7 +32462,7 @@ function ProgramCard({
|
|
|
32439
32462
|
/* @__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
32463
|
] }),
|
|
32441
32464
|
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
|
-
|
|
32465
|
+
_chunkLH7R56RRcjs.SquareAvatar,
|
|
32443
32466
|
{
|
|
32444
32467
|
variant: "round",
|
|
32445
32468
|
src: host.avatar || void 0,
|
|
@@ -32510,31 +32533,31 @@ function ProgramCard({
|
|
|
32510
32533
|
|
|
32511
32534
|
|
|
32512
32535
|
function CampaignCardAdmin({ campaign, className, anchorProps }) {
|
|
32513
|
-
const goalsCount = _optionalChain([campaign, 'access',
|
|
32536
|
+
const goalsCount = _optionalChain([campaign, 'access', _672 => _672.goals, 'optionalAccess', _673 => _673.length]) || 0;
|
|
32514
32537
|
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:
|
|
32538
|
+
/* @__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" }) }),
|
|
32539
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: _chunkLH7R56RRcjs.COMPACT_CARD_TEXT_COL, children: [
|
|
32540
|
+
/* @__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 }) }),
|
|
32541
|
+
/* @__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
32542
|
campaign.start_date ? formatDateShort(campaign.start_date) : null,
|
|
32520
32543
|
goalsCount > 0 ? `${goalsCount} goal${goalsCount !== 1 ? "s" : ""}` : null,
|
|
32521
32544
|
"Marketing campaign"
|
|
32522
32545
|
].filter(Boolean).join(" \xB7 ") }) }),
|
|
32523
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
32546
|
+
/* @__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
32547
|
] })
|
|
32525
32548
|
] });
|
|
32526
32549
|
if (anchorProps) {
|
|
32527
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "a", { ...anchorProps, className: `${
|
|
32550
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "a", { ...anchorProps, className: `${_chunkLH7R56RRcjs.COMPACT_CARD_OUTER} ${_nullishCoalesce(className, () => ( ""))}`, children: innerChildren });
|
|
32528
32551
|
}
|
|
32529
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: `${
|
|
32552
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: `${_chunkLH7R56RRcjs.COMPACT_CARD_OUTER_STATIC} ${_nullishCoalesce(className, () => ( ""))}`, "aria-label": "No link available", children: innerChildren });
|
|
32530
32553
|
}
|
|
32531
32554
|
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:
|
|
32555
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: `${_chunkLH7R56RRcjs.COMPACT_CARD_SKELETON_OUTER} ${_nullishCoalesce(className, () => ( ""))}`, children: [
|
|
32556
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkLH7R56RRcjs.COMPACT_CARD_SKELETON_IMAGE_SLOT }),
|
|
32557
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: _chunkLH7R56RRcjs.COMPACT_CARD_TEXT_COL, children: [
|
|
32558
|
+
/* @__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" }) }),
|
|
32559
|
+
/* @__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" }) }),
|
|
32560
|
+
/* @__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
32561
|
] })
|
|
32539
32562
|
] });
|
|
32540
32563
|
}
|
|
@@ -32543,14 +32566,14 @@ function CampaignCardAdminSkeleton({ className }) {
|
|
|
32543
32566
|
|
|
32544
32567
|
|
|
32545
32568
|
function GenericEntityCard({ item, className, anchorProps }) {
|
|
32546
|
-
const href =
|
|
32547
|
-
const dateText =
|
|
32569
|
+
const href = _chunkLH7R56RRcjs.safeHref.call(void 0, item.url);
|
|
32570
|
+
const dateText = _chunkLH7R56RRcjs.formatDateUTC.call(void 0, item.dateUpdated, { fallback: "", timezone: "local" });
|
|
32548
32571
|
const body = /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
32549
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className:
|
|
32572
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: _chunkLH7R56RRcjs.COMPACT_CARD_TEXT_COL, children: [
|
|
32550
32573
|
/* @__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: `${
|
|
32574
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: `${_chunkLH7R56RRcjs.COMPACT_CARD_TITLE} shrink min-w-0`, children: item.title }),
|
|
32552
32575
|
item.badge ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
32553
|
-
|
|
32576
|
+
_chunkLH7R56RRcjs.StatusBadge,
|
|
32554
32577
|
{
|
|
32555
32578
|
text: item.badge.text,
|
|
32556
32579
|
variant: "button",
|
|
@@ -32568,18 +32591,18 @@ function GenericEntityCard({ item, className, anchorProps }) {
|
|
|
32568
32591
|
] }),
|
|
32569
32592
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "text-ods-text-primary font-medium truncate", children: f.value })
|
|
32570
32593
|
] }, i)) }) : null,
|
|
32571
|
-
dateText ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
32594
|
+
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
32595
|
] }),
|
|
32573
32596
|
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
32597
|
] });
|
|
32575
32598
|
if (anchorProps) {
|
|
32576
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "a", { ...anchorProps, className: `${
|
|
32599
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "a", { ...anchorProps, className: `${_chunkLH7R56RRcjs.COMPACT_CARD_OUTER} ${_nullishCoalesce(className, () => ( ""))}`, children: body });
|
|
32577
32600
|
}
|
|
32578
|
-
return href ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "a", { href, className: `${
|
|
32601
|
+
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
32602
|
}
|
|
32580
32603
|
function GenericEntityCardSkeleton({ className }) {
|
|
32581
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: `${
|
|
32582
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className:
|
|
32604
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: `${_chunkLH7R56RRcjs.COMPACT_CARD_SKELETON_OUTER} ${_nullishCoalesce(className, () => ( ""))}`, children: [
|
|
32605
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: _chunkLH7R56RRcjs.COMPACT_CARD_TEXT_COL, children: [
|
|
32583
32606
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "flex items-center gap-1.5 min-w-0", children: [
|
|
32584
32607
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "h-3.5 w-2/3 rounded bg-ods-bg" }),
|
|
32585
32608
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "h-4 w-16 rounded-full bg-ods-bg/60" })
|
|
@@ -32648,7 +32671,7 @@ function CardMedia({
|
|
|
32648
32671
|
}) {
|
|
32649
32672
|
if (imageSrc) {
|
|
32650
32673
|
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:
|
|
32674
|
+
/* @__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
32675
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
32653
32676
|
"img",
|
|
32654
32677
|
{
|
|
@@ -32693,7 +32716,7 @@ function MingoInfoCard({
|
|
|
32693
32716
|
status ? (
|
|
32694
32717
|
// Reuse the shared Tag palette (single source of truth for colours)
|
|
32695
32718
|
// without rendering Tag's `<div>` — span-only for `<p>` validity.
|
|
32696
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkFIG2RKZFcjs.cn.call(void 0,
|
|
32719
|
+
/* @__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
32720
|
) : null
|
|
32698
32721
|
] });
|
|
32699
32722
|
const contentClass = _chunkFIG2RKZFcjs.cn.call(void 0,
|
|
@@ -32711,7 +32734,7 @@ function MingoInfoCard({
|
|
|
32711
32734
|
children: [
|
|
32712
32735
|
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
32736
|
hasMenu && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
32714
|
-
|
|
32737
|
+
_chunkLH7R56RRcjs.ActionsMenuDropdown,
|
|
32715
32738
|
{
|
|
32716
32739
|
groups: menuGroups,
|
|
32717
32740
|
triggerAriaLabel: menuAriaLabel,
|
|
@@ -32769,7 +32792,7 @@ function GitHubChatCard({
|
|
|
32769
32792
|
const title = kind === "pr_review" ? display.replace(/^by\s+/i, "").trim() || "Reviewer" : display;
|
|
32770
32793
|
const status = kind === "pr_review" && reviewState ? { label: reviewStateLabel(reviewState), variant: reviewStateToVariant(reviewState) } : { label: kindLabel(kind), variant: "grey" };
|
|
32771
32794
|
const idLabel = formatActivityId(chatRef.id, kind);
|
|
32772
|
-
const dateText =
|
|
32795
|
+
const dateText = _chunkLH7R56RRcjs.formatDateUTC.call(void 0, _nullishCoalesce(chatRef.date, () => ( null)), { fallback: "", timezone: "local" });
|
|
32773
32796
|
const description = [idLabel, dateText].filter(Boolean).join(" \xB7 ") || void 0;
|
|
32774
32797
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
32775
32798
|
MingoInfoCard,
|
|
@@ -32778,7 +32801,7 @@ function GitHubChatCard({
|
|
|
32778
32801
|
description,
|
|
32779
32802
|
icon: githubKindIcon(kind),
|
|
32780
32803
|
status,
|
|
32781
|
-
anchorProps:
|
|
32804
|
+
anchorProps: _chunkLH7R56RRcjs.buildAnchorProps.call(void 0, chatRef.url, isNewTab),
|
|
32782
32805
|
menuGroups: cardMenuGroups(chatRef.url, discuss),
|
|
32783
32806
|
menuAriaLabel: "Activity actions"
|
|
32784
32807
|
}
|
|
@@ -32797,8 +32820,8 @@ function cardMenuGroups(href, discuss, openDetails) {
|
|
|
32797
32820
|
if (href) {
|
|
32798
32821
|
items.push({
|
|
32799
32822
|
id: "open-details",
|
|
32800
|
-
label: _nullishCoalesce(_optionalChain([openDetails, 'optionalAccess',
|
|
32801
|
-
icon: _nullishCoalesce(_optionalChain([openDetails, 'optionalAccess',
|
|
32823
|
+
label: _nullishCoalesce(_optionalChain([openDetails, 'optionalAccess', _674 => _674.label]), () => ( "Open Details")),
|
|
32824
|
+
icon: _nullishCoalesce(_optionalChain([openDetails, 'optionalAccess', _675 => _675.icon]), () => ( /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkC6ASEPZLcjs.EyeIcon, { size: 20 }))),
|
|
32802
32825
|
// Main row → open the entity (same tab, soft Link nav).
|
|
32803
32826
|
href,
|
|
32804
32827
|
// Trailing 40px ↗ side-button → open in a new tab.
|
|
@@ -32828,8 +32851,8 @@ function HubspotTicketChatCard({
|
|
|
32828
32851
|
isNewTab,
|
|
32829
32852
|
discuss
|
|
32830
32853
|
}) {
|
|
32831
|
-
const status = typeof _optionalChain([chatRef, 'access',
|
|
32832
|
-
const statusLabel = typeof _optionalChain([chatRef, 'access',
|
|
32854
|
+
const status = typeof _optionalChain([chatRef, 'access', _676 => _676.metadata, 'optionalAccess', _677 => _677.status]) === "string" ? chatRef.metadata.status : void 0;
|
|
32855
|
+
const statusLabel = typeof _optionalChain([chatRef, 'access', _678 => _678.metadata, 'optionalAccess', _679 => _679.statusLabel]) === "string" ? chatRef.metadata.statusLabel : void 0;
|
|
32833
32856
|
const statusText = _nullishCoalesce(statusLabel, () => ( formatStatusToken(status)));
|
|
32834
32857
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
32835
32858
|
MingoInfoCard,
|
|
@@ -32838,7 +32861,7 @@ function HubspotTicketChatCard({
|
|
|
32838
32861
|
description: _nullishCoalesce(chatRef.preview, () => ( void 0)),
|
|
32839
32862
|
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkC6ASEPZLcjs.TagIcon, { size: 24 }),
|
|
32840
32863
|
status: statusText ? { label: statusText, variant: hubspotStatusToVariant(status) } : void 0,
|
|
32841
|
-
anchorProps:
|
|
32864
|
+
anchorProps: _chunkLH7R56RRcjs.buildAnchorProps.call(void 0, chatRef.url, isNewTab),
|
|
32842
32865
|
menuGroups: cardMenuGroups(chatRef.url, discuss, {
|
|
32843
32866
|
label: "Open Ticket Details",
|
|
32844
32867
|
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkC6ASEPZLcjs.TagIcon, { size: 20 })
|
|
@@ -32852,7 +32875,7 @@ function SlackChatCard({
|
|
|
32852
32875
|
isNewTab,
|
|
32853
32876
|
discuss
|
|
32854
32877
|
}) {
|
|
32855
|
-
const channelName = typeof _optionalChain([chatRef, 'access',
|
|
32878
|
+
const channelName = typeof _optionalChain([chatRef, 'access', _680 => _680.metadata, 'optionalAccess', _681 => _681.channelName]) === "string" ? chatRef.metadata.channelName.trim() : void 0;
|
|
32856
32879
|
const channelPretty = channelName ? channelName.startsWith("#") ? channelName : `#${channelName}` : void 0;
|
|
32857
32880
|
const title = channelPretty ? `${chatRef.title} \xB7 ${channelPretty}` : chatRef.title;
|
|
32858
32881
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -32861,7 +32884,7 @@ function SlackChatCard({
|
|
|
32861
32884
|
title,
|
|
32862
32885
|
description: _nullishCoalesce(chatRef.preview, () => ( void 0)),
|
|
32863
32886
|
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkC6ASEPZLcjs.SlackLogoGreyIcon, { size: 24 }),
|
|
32864
|
-
anchorProps:
|
|
32887
|
+
anchorProps: _chunkLH7R56RRcjs.buildAnchorProps.call(void 0, chatRef.url, isNewTab),
|
|
32865
32888
|
menuGroups: cardMenuGroups(chatRef.url, discuss),
|
|
32866
32889
|
menuAriaLabel: "Message actions"
|
|
32867
32890
|
}
|
|
@@ -32872,7 +32895,7 @@ function DataRoomDocChatCard({
|
|
|
32872
32895
|
isNewTab,
|
|
32873
32896
|
discuss
|
|
32874
32897
|
}) {
|
|
32875
|
-
const badgeText = chatRef.sourceRepo ?
|
|
32898
|
+
const badgeText = chatRef.sourceRepo ? _chunkLH7R56RRcjs.getSourceLabel.call(void 0, chatRef.sourceRepo) : "Document";
|
|
32876
32899
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
32877
32900
|
MingoInfoCard,
|
|
32878
32901
|
{
|
|
@@ -32880,7 +32903,7 @@ function DataRoomDocChatCard({
|
|
|
32880
32903
|
description: _nullishCoalesce(chatRef.preview, () => ( void 0)),
|
|
32881
32904
|
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkC6ASEPZLcjs.FileContentIcon, { size: 24 }),
|
|
32882
32905
|
status: { label: badgeText, variant: "grey" },
|
|
32883
|
-
anchorProps:
|
|
32906
|
+
anchorProps: _chunkLH7R56RRcjs.buildAnchorProps.call(void 0, chatRef.url, isNewTab),
|
|
32884
32907
|
menuGroups: cardMenuGroups(chatRef.url, discuss),
|
|
32885
32908
|
menuAriaLabel: "Document actions"
|
|
32886
32909
|
}
|
|
@@ -32892,14 +32915,14 @@ function GenericFinancialChatCard({
|
|
|
32892
32915
|
isNewTab,
|
|
32893
32916
|
discuss
|
|
32894
32917
|
}) {
|
|
32895
|
-
const subtitle = typeof _optionalChain([chatRef, 'access',
|
|
32918
|
+
const subtitle = typeof _optionalChain([chatRef, 'access', _682 => _682.metadata, 'optionalAccess', _683 => _683.subtitle]) === "string" ? chatRef.metadata.subtitle : void 0;
|
|
32896
32919
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
32897
32920
|
MingoInfoCard,
|
|
32898
32921
|
{
|
|
32899
32922
|
title: chatRef.title,
|
|
32900
32923
|
description: subtitle,
|
|
32901
32924
|
icon,
|
|
32902
|
-
anchorProps:
|
|
32925
|
+
anchorProps: _chunkLH7R56RRcjs.buildAnchorProps.call(void 0, chatRef.url, isNewTab),
|
|
32903
32926
|
menuGroups: cardMenuGroups(chatRef.url, discuss),
|
|
32904
32927
|
menuAriaLabel: "Document actions"
|
|
32905
32928
|
}
|
|
@@ -32919,7 +32942,7 @@ function ChatCardWithDiscuss({
|
|
|
32919
32942
|
displayAction,
|
|
32920
32943
|
children
|
|
32921
32944
|
}) {
|
|
32922
|
-
const { Icon: SourceIcon, label: sourceLabel } =
|
|
32945
|
+
const { Icon: SourceIcon, label: sourceLabel } = _chunkLH7R56RRcjs.resolveSourceIcon.call(void 0, {
|
|
32923
32946
|
sourceRepo: chatRef.sourceRepo,
|
|
32924
32947
|
documentType: chatRef.type
|
|
32925
32948
|
});
|
|
@@ -32961,12 +32984,12 @@ function ProductReleaseChatCard({
|
|
|
32961
32984
|
discuss
|
|
32962
32985
|
}) {
|
|
32963
32986
|
const releaseProps = buildProps(item);
|
|
32964
|
-
const status = _optionalChain([item, 'optionalAccess',
|
|
32987
|
+
const status = _optionalChain([item, 'optionalAccess', _684 => _684.version]) ? { label: String(item.version), variant: "grey" } : { label: "Release", variant: "grey" };
|
|
32965
32988
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
32966
32989
|
EntityMingoCard,
|
|
32967
32990
|
{
|
|
32968
|
-
title: _nullishCoalesce(_optionalChain([item, 'optionalAccess',
|
|
32969
|
-
description: _optionalChain([item, 'optionalAccess',
|
|
32991
|
+
title: _nullishCoalesce(_optionalChain([item, 'optionalAccess', _685 => _685.title]), () => ( "")),
|
|
32992
|
+
description: _optionalChain([item, 'optionalAccess', _686 => _686.summary]) || releaseProps.formattedDate || void 0,
|
|
32970
32993
|
cover: releaseProps.coverImage || void 0,
|
|
32971
32994
|
fallbackIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkC6ASEPZLcjs.Rocket02Icon, { size: 24 }),
|
|
32972
32995
|
status,
|
|
@@ -32983,17 +33006,17 @@ function CampaignChatCard({
|
|
|
32983
33006
|
isNewTab,
|
|
32984
33007
|
discuss
|
|
32985
33008
|
}) {
|
|
32986
|
-
const goalsCount = Array.isArray(_optionalChain([item, 'optionalAccess',
|
|
33009
|
+
const goalsCount = Array.isArray(_optionalChain([item, 'optionalAccess', _687 => _687.goals])) ? item.goals.length : 0;
|
|
32987
33010
|
const meta = [
|
|
32988
|
-
_optionalChain([item, 'optionalAccess',
|
|
33011
|
+
_optionalChain([item, 'optionalAccess', _688 => _688.start_date]) ? formatDateShort(item.start_date) : null,
|
|
32989
33012
|
goalsCount > 0 ? `${goalsCount} goal${goalsCount !== 1 ? "s" : ""}` : null,
|
|
32990
33013
|
"Marketing campaign"
|
|
32991
33014
|
].filter(Boolean).join(" \xB7 ");
|
|
32992
33015
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
32993
33016
|
EntityMingoCard,
|
|
32994
33017
|
{
|
|
32995
|
-
title: _nullishCoalesce(_optionalChain([item, 'optionalAccess',
|
|
32996
|
-
description: meta || _optionalChain([item, 'optionalAccess',
|
|
33018
|
+
title: _nullishCoalesce(_optionalChain([item, 'optionalAccess', _689 => _689.name]), () => ( "")),
|
|
33019
|
+
description: meta || _optionalChain([item, 'optionalAccess', _690 => _690.description]) || void 0,
|
|
32997
33020
|
fallbackIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkC6ASEPZLcjs.Megaphone01Icon, { size: 24 }),
|
|
32998
33021
|
chatRef,
|
|
32999
33022
|
isNewTab,
|
|
@@ -33022,7 +33045,7 @@ function EntityMingoCard({
|
|
|
33022
33045
|
imageAlt: typeof title === "string" ? title : void 0,
|
|
33023
33046
|
icon: fallbackIcon,
|
|
33024
33047
|
status,
|
|
33025
|
-
anchorProps:
|
|
33048
|
+
anchorProps: _chunkLH7R56RRcjs.buildAnchorProps.call(void 0, chatRef.url, isNewTab),
|
|
33026
33049
|
menuGroups: cardMenuGroups(chatRef.url, discuss),
|
|
33027
33050
|
menuAriaLabel
|
|
33028
33051
|
}
|
|
@@ -33046,14 +33069,14 @@ function BlogChatCard({
|
|
|
33046
33069
|
hasEmbeddedVideo,
|
|
33047
33070
|
discuss
|
|
33048
33071
|
}) {
|
|
33049
|
-
const category = Array.isArray(_optionalChain([item, 'optionalAccess',
|
|
33072
|
+
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
33073
|
const status = hasEmbeddedVideo ? { label: "Video", variant: "primary" } : category ? { label: category, variant: "grey" } : void 0;
|
|
33051
33074
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
33052
33075
|
EntityMingoCard,
|
|
33053
33076
|
{
|
|
33054
|
-
title: _nullishCoalesce(_optionalChain([item, 'optionalAccess',
|
|
33055
|
-
description: _nullishCoalesce(_optionalChain([item, 'optionalAccess',
|
|
33056
|
-
cover: entityCover(_optionalChain([item, 'optionalAccess',
|
|
33077
|
+
title: _nullishCoalesce(_optionalChain([item, 'optionalAccess', _696 => _696.title]), () => ( "")),
|
|
33078
|
+
description: _nullishCoalesce(_optionalChain([item, 'optionalAccess', _697 => _697.summary]), () => ( void 0)),
|
|
33079
|
+
cover: entityCover(_optionalChain([item, 'optionalAccess', _698 => _698.featured_image]), ogPlaceholder),
|
|
33057
33080
|
fallbackIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkC6ASEPZLcjs.NewspaperIcon, { size: 24 }),
|
|
33058
33081
|
status,
|
|
33059
33082
|
chatRef,
|
|
@@ -33070,13 +33093,13 @@ function CaseStudyChatCard({
|
|
|
33070
33093
|
ogPlaceholder,
|
|
33071
33094
|
discuss
|
|
33072
33095
|
}) {
|
|
33073
|
-
const meta = [_optionalChain([item, 'optionalAccess',
|
|
33096
|
+
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
33097
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
33075
33098
|
EntityMingoCard,
|
|
33076
33099
|
{
|
|
33077
|
-
title: _nullishCoalesce(_optionalChain([item, 'optionalAccess',
|
|
33078
|
-
description: _optionalChain([item, 'optionalAccess',
|
|
33079
|
-
cover: entityCover(_optionalChain([item, 'optionalAccess',
|
|
33100
|
+
title: _nullishCoalesce(_optionalChain([item, 'optionalAccess', _703 => _703.title]), () => ( "")),
|
|
33101
|
+
description: _optionalChain([item, 'optionalAccess', _704 => _704.summary]) || meta || void 0,
|
|
33102
|
+
cover: entityCover(_optionalChain([item, 'optionalAccess', _705 => _705.featured_image]), ogPlaceholder),
|
|
33080
33103
|
fallbackIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkC6ASEPZLcjs.TrophyIcon, { size: 24 }),
|
|
33081
33104
|
status: { label: "Case study", variant: "grey" },
|
|
33082
33105
|
chatRef,
|
|
@@ -33093,13 +33116,13 @@ function CustomerInterviewChatCard({
|
|
|
33093
33116
|
ogPlaceholder,
|
|
33094
33117
|
discuss
|
|
33095
33118
|
}) {
|
|
33096
|
-
const meta = [_optionalChain([item, 'optionalAccess',
|
|
33119
|
+
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
33120
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
33098
33121
|
EntityMingoCard,
|
|
33099
33122
|
{
|
|
33100
|
-
title: _nullishCoalesce(_optionalChain([item, 'optionalAccess',
|
|
33101
|
-
description: _optionalChain([item, 'optionalAccess',
|
|
33102
|
-
cover: entityCover(_optionalChain([item, 'optionalAccess',
|
|
33123
|
+
title: _nullishCoalesce(_optionalChain([item, 'optionalAccess', _710 => _710.title]), () => ( "")),
|
|
33124
|
+
description: _optionalChain([item, 'optionalAccess', _711 => _711.video_summary]) || meta || void 0,
|
|
33125
|
+
cover: entityCover(_optionalChain([item, 'optionalAccess', _712 => _712.featured_image]), ogPlaceholder),
|
|
33103
33126
|
fallbackIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkC6ASEPZLcjs.MicrophoneIcon, { size: 24 }),
|
|
33104
33127
|
status: { label: "Interview", variant: "grey" },
|
|
33105
33128
|
chatRef,
|
|
@@ -33116,13 +33139,13 @@ function InvestorUpdateChatCard({
|
|
|
33116
33139
|
ogPlaceholder,
|
|
33117
33140
|
discuss
|
|
33118
33141
|
}) {
|
|
33119
|
-
const title = _optionalChain([item, 'optionalAccess',
|
|
33142
|
+
const title = _optionalChain([item, 'optionalAccess', _713 => _713.title]) || `Update #${_nullishCoalesce(_optionalChain([item, 'optionalAccess', _714 => _714.update_number]), () => ( "?"))}`;
|
|
33120
33143
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
33121
33144
|
EntityMingoCard,
|
|
33122
33145
|
{
|
|
33123
33146
|
title,
|
|
33124
|
-
description: _optionalChain([item, 'optionalAccess',
|
|
33125
|
-
cover: entityCover(_optionalChain([item, 'optionalAccess',
|
|
33147
|
+
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,
|
|
33148
|
+
cover: entityCover(_optionalChain([item, 'optionalAccess', _719 => _719.featured_image]), ogPlaceholder),
|
|
33126
33149
|
fallbackIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkC6ASEPZLcjs.PresentationLineIcon, { size: 24 }),
|
|
33127
33150
|
status: { label: "Investor update", variant: "grey" },
|
|
33128
33151
|
chatRef,
|
|
@@ -33139,12 +33162,12 @@ function OnboardingGuideChatCard({
|
|
|
33139
33162
|
ogPlaceholder,
|
|
33140
33163
|
discuss
|
|
33141
33164
|
}) {
|
|
33142
|
-
const cover = _nullishCoalesce(_nullishCoalesce(entityCover(_optionalChain([item, 'optionalAccess',
|
|
33165
|
+
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
33166
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
33144
33167
|
EntityMingoCard,
|
|
33145
33168
|
{
|
|
33146
|
-
title: _nullishCoalesce(_optionalChain([item, 'optionalAccess',
|
|
33147
|
-
description: _nullishCoalesce(_nullishCoalesce(_optionalChain([item, 'optionalAccess',
|
|
33169
|
+
title: _nullishCoalesce(_optionalChain([item, 'optionalAccess', _723 => _723.title]), () => ( "")),
|
|
33170
|
+
description: _nullishCoalesce(_nullishCoalesce(_optionalChain([item, 'optionalAccess', _724 => _724.summary]), () => ( _optionalChain([item, 'optionalAccess', _725 => _725.description]))), () => ( void 0)),
|
|
33148
33171
|
cover,
|
|
33149
33172
|
fallbackIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkC6ASEPZLcjs.CompassIcon, { size: 24 }),
|
|
33150
33173
|
status: { label: "Guide", variant: "grey" },
|
|
@@ -33165,25 +33188,25 @@ function ProgramChatCard({
|
|
|
33165
33188
|
discuss
|
|
33166
33189
|
}) {
|
|
33167
33190
|
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',
|
|
33191
|
+
const isScheduled = _optionalChain([item, 'optionalAccess', _726 => _726.status]) === "scheduled";
|
|
33169
33192
|
let typeMeta;
|
|
33170
|
-
if (configKey === "podcast" && typeof _optionalChain([item, 'optionalAccess',
|
|
33171
|
-
typeMeta =
|
|
33172
|
-
} else if (configKey === "event" && typeof _optionalChain([item, 'optionalAccess',
|
|
33193
|
+
if (configKey === "podcast" && typeof _optionalChain([item, 'optionalAccess', _727 => _727.duration_seconds]) === "number" && item.duration_seconds > 0 && !isScheduled) {
|
|
33194
|
+
typeMeta = _chunkLH7R56RRcjs.formatDurationCompact.call(void 0, item.duration_seconds);
|
|
33195
|
+
} else if (configKey === "event" && typeof _optionalChain([item, 'optionalAccess', _728 => _728.location_name]) === "string" && item.location_name.trim().length > 0) {
|
|
33173
33196
|
typeMeta = item.location_name;
|
|
33174
|
-
} else if (configKey === "webinar" && _optionalChain([item, 'optionalAccess',
|
|
33175
|
-
const time =
|
|
33176
|
-
const dur =
|
|
33197
|
+
} else if (configKey === "webinar" && _optionalChain([item, 'optionalAccess', _729 => _729.start_at])) {
|
|
33198
|
+
const time = _chunkLH7R56RRcjs.formatTimeWithTimezone.call(void 0, item.start_at, null);
|
|
33199
|
+
const dur = _chunkLH7R56RRcjs.formatDurationFromRange.call(void 0, item.start_at, item.end_at);
|
|
33177
33200
|
typeMeta = dur ? `${time} \xB7 ${dur}` : time;
|
|
33178
33201
|
}
|
|
33179
|
-
const itemDate =
|
|
33202
|
+
const itemDate = _chunkLH7R56RRcjs.formatDateUTC.call(void 0, _nullishCoalesce(_optionalChain([item, 'optionalAccess', _730 => _730.date]), () => ( null)), { fallback: "", timezone: "local" });
|
|
33180
33203
|
const meta = [itemDate, typeMeta].filter(Boolean).join(" \xB7 ");
|
|
33181
33204
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
33182
33205
|
EntityMingoCard,
|
|
33183
33206
|
{
|
|
33184
|
-
title: _nullishCoalesce(_optionalChain([item, 'optionalAccess',
|
|
33185
|
-
description: meta || _optionalChain([item, 'optionalAccess',
|
|
33186
|
-
cover: entityCover(_optionalChain([item, 'optionalAccess',
|
|
33207
|
+
title: _nullishCoalesce(_optionalChain([item, 'optionalAccess', _731 => _731.title]), () => ( "")),
|
|
33208
|
+
description: meta || _optionalChain([item, 'optionalAccess', _732 => _732.description]) || void 0,
|
|
33209
|
+
cover: entityCover(_optionalChain([item, 'optionalAccess', _733 => _733.cover_url]), ogPlaceholder),
|
|
33187
33210
|
fallbackIcon: icon,
|
|
33188
33211
|
status: { label, variant: "grey" },
|
|
33189
33212
|
chatRef,
|
|
@@ -33200,10 +33223,10 @@ function RoadmapChatCard({
|
|
|
33200
33223
|
cardType,
|
|
33201
33224
|
discuss
|
|
33202
33225
|
}) {
|
|
33203
|
-
const logoUrl = typeof _optionalChain([item, 'optionalAccess',
|
|
33204
|
-
const useTypeIcon = cardType === "internal_task" || !logoUrl && _optionalChain([item, 'optionalAccess',
|
|
33226
|
+
const logoUrl = typeof _optionalChain([item, 'optionalAccess', _734 => _734.icon]) === "string" && item.icon.startsWith("http") ? item.icon : void 0;
|
|
33227
|
+
const useTypeIcon = cardType === "internal_task" || !logoUrl && _optionalChain([item, 'optionalAccess', _735 => _735.customItemId]) != null;
|
|
33205
33228
|
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',
|
|
33229
|
+
const icon = useTypeIcon ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TaskTypeIcon, { customItemId: _optionalChain([item, 'optionalAccess', _736 => _736.customItemId]), className: "size-6" }) : logoUrl ? (
|
|
33207
33230
|
// Contained (not full-bleed) so the integration logo keeps its aspect
|
|
33208
33231
|
// ratio inside the bordered icon box — matches RoadmapCard.
|
|
33209
33232
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "img", { src: logoUrl, alt: "", className: "size-6 object-contain" })
|
|
@@ -33211,10 +33234,10 @@ function RoadmapChatCard({
|
|
|
33211
33234
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
33212
33235
|
EntityMingoCard,
|
|
33213
33236
|
{
|
|
33214
|
-
title: _nullishCoalesce(_optionalChain([item, 'optionalAccess',
|
|
33215
|
-
description: _nullishCoalesce(_optionalChain([item, 'optionalAccess',
|
|
33237
|
+
title: _nullishCoalesce(_optionalChain([item, 'optionalAccess', _737 => _737.title]), () => ( "")),
|
|
33238
|
+
description: _nullishCoalesce(_optionalChain([item, 'optionalAccess', _738 => _738.description]), () => ( void 0)),
|
|
33216
33239
|
fallbackIcon: icon,
|
|
33217
|
-
status: statusPill(_optionalChain([item, 'optionalAccess',
|
|
33240
|
+
status: statusPill(_optionalChain([item, 'optionalAccess', _739 => _739.status])),
|
|
33218
33241
|
chatRef,
|
|
33219
33242
|
isNewTab,
|
|
33220
33243
|
discuss,
|
|
@@ -33300,7 +33323,7 @@ function programRegistryEntries() {
|
|
|
33300
33323
|
discuss: opts.discuss,
|
|
33301
33324
|
configKey: cfg.configKey,
|
|
33302
33325
|
label: cfg.configKey.charAt(0).toUpperCase() + cfg.configKey.slice(1),
|
|
33303
|
-
ogPlaceholder: _nullishCoalesce(_optionalChain([opts, 'optionalAccess',
|
|
33326
|
+
ogPlaceholder: _nullishCoalesce(_optionalChain([opts, 'optionalAccess', _740 => _740.extras, 'optionalAccess', _741 => _741.buildOgPlaceholderUrl, 'optionalCall', _742 => _742(_nullishCoalesce(_optionalChain([item, 'optionalAccess', _743 => _743.title]), () => ( "")))]), () => ( null))
|
|
33304
33327
|
}
|
|
33305
33328
|
)
|
|
33306
33329
|
};
|
|
@@ -33446,8 +33469,8 @@ var CHAT_CARD_REGISTRY = {
|
|
|
33446
33469
|
chatRef,
|
|
33447
33470
|
isNewTab: opts.isNewTab,
|
|
33448
33471
|
discuss: opts.discuss,
|
|
33449
|
-
ogPlaceholder: _nullishCoalesce(_optionalChain([opts, 'optionalAccess',
|
|
33450
|
-
hasEmbeddedVideo: _optionalChain([chatRef, 'access',
|
|
33472
|
+
ogPlaceholder: _nullishCoalesce(_optionalChain([opts, 'optionalAccess', _744 => _744.extras, 'optionalAccess', _745 => _745.buildOgPlaceholderUrl, 'optionalCall', _746 => _746(_nullishCoalesce(_optionalChain([item, 'optionalAccess', _747 => _747.title]), () => ( "")))]), () => ( null)),
|
|
33473
|
+
hasEmbeddedVideo: _optionalChain([chatRef, 'access', _748 => _748.metadata, 'optionalAccess', _749 => _749.hasEmbeddedVideo]) === true
|
|
33451
33474
|
}
|
|
33452
33475
|
)
|
|
33453
33476
|
},
|
|
@@ -33464,7 +33487,7 @@ var CHAT_CARD_REGISTRY = {
|
|
|
33464
33487
|
chatRef,
|
|
33465
33488
|
isNewTab: opts.isNewTab,
|
|
33466
33489
|
discuss: opts.discuss,
|
|
33467
|
-
ogPlaceholder: _nullishCoalesce(_optionalChain([opts, 'optionalAccess',
|
|
33490
|
+
ogPlaceholder: _nullishCoalesce(_optionalChain([opts, 'optionalAccess', _750 => _750.extras, 'optionalAccess', _751 => _751.buildOgPlaceholderUrl, 'optionalCall', _752 => _752(_nullishCoalesce(_optionalChain([item, 'optionalAccess', _753 => _753.title]), () => ( "")))]), () => ( null))
|
|
33468
33491
|
}
|
|
33469
33492
|
)
|
|
33470
33493
|
},
|
|
@@ -33481,7 +33504,7 @@ var CHAT_CARD_REGISTRY = {
|
|
|
33481
33504
|
chatRef,
|
|
33482
33505
|
isNewTab: opts.isNewTab,
|
|
33483
33506
|
discuss: opts.discuss,
|
|
33484
|
-
ogPlaceholder: _nullishCoalesce(_optionalChain([opts, 'optionalAccess',
|
|
33507
|
+
ogPlaceholder: _nullishCoalesce(_optionalChain([opts, 'optionalAccess', _754 => _754.extras, 'optionalAccess', _755 => _755.buildOgPlaceholderUrl, 'optionalCall', _756 => _756(_nullishCoalesce(_optionalChain([item, 'optionalAccess', _757 => _757.title]), () => ( "")))]), () => ( null))
|
|
33485
33508
|
}
|
|
33486
33509
|
)
|
|
33487
33510
|
},
|
|
@@ -33492,7 +33515,7 @@ var CHAT_CARD_REGISTRY = {
|
|
|
33492
33515
|
bareInline: true,
|
|
33493
33516
|
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, ProductReleaseCardSkeleton, { size: "sm" }),
|
|
33494
33517
|
render: (item, chatRef, opts) => {
|
|
33495
|
-
const builder = _nullishCoalesce(_optionalChain([opts, 'optionalAccess',
|
|
33518
|
+
const builder = _nullishCoalesce(_optionalChain([opts, 'optionalAccess', _758 => _758.extras, 'optionalAccess', _759 => _759.buildProductReleaseCardProps]), () => ( defaultBuildProductReleaseCardProps));
|
|
33496
33519
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
33497
33520
|
ProductReleaseChatCard,
|
|
33498
33521
|
{
|
|
@@ -33519,7 +33542,7 @@ var CHAT_CARD_REGISTRY = {
|
|
|
33519
33542
|
chatRef,
|
|
33520
33543
|
isNewTab: opts.isNewTab,
|
|
33521
33544
|
discuss: opts.discuss,
|
|
33522
|
-
ogPlaceholder: _nullishCoalesce(_optionalChain([opts, 'optionalAccess',
|
|
33545
|
+
ogPlaceholder: _nullishCoalesce(_optionalChain([opts, 'optionalAccess', _760 => _760.extras, 'optionalAccess', _761 => _761.buildOgPlaceholderUrl, 'optionalCall', _762 => _762(_nullishCoalesce(_optionalChain([item, 'optionalAccess', _763 => _763.title]), () => ( "")))]), () => ( null))
|
|
33523
33546
|
}
|
|
33524
33547
|
)
|
|
33525
33548
|
},
|
|
@@ -33530,7 +33553,7 @@ var CHAT_CARD_REGISTRY = {
|
|
|
33530
33553
|
bareInline: true,
|
|
33531
33554
|
// "Display" affordance (verbatim guide body) instead of "Ask".
|
|
33532
33555
|
displayAction: true,
|
|
33533
|
-
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
33556
|
+
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLH7R56RRcjs.OnboardingGuideCardSkeleton, { size: "sm" }),
|
|
33534
33557
|
render: (item, chatRef, opts) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
33535
33558
|
OnboardingGuideChatCard,
|
|
33536
33559
|
{
|
|
@@ -33538,7 +33561,7 @@ var CHAT_CARD_REGISTRY = {
|
|
|
33538
33561
|
chatRef,
|
|
33539
33562
|
isNewTab: opts.isNewTab,
|
|
33540
33563
|
discuss: opts.discuss,
|
|
33541
|
-
ogPlaceholder: _nullishCoalesce(_optionalChain([opts, 'optionalAccess',
|
|
33564
|
+
ogPlaceholder: _nullishCoalesce(_optionalChain([opts, 'optionalAccess', _764 => _764.extras, 'optionalAccess', _765 => _765.buildOgPlaceholderUrl, 'optionalCall', _766 => _766(_nullishCoalesce(_optionalChain([item, 'optionalAccess', _767 => _767.title]), () => ( "")))]), () => ( null))
|
|
33542
33565
|
}
|
|
33543
33566
|
)
|
|
33544
33567
|
},
|
|
@@ -33550,7 +33573,7 @@ var CHAT_CARD_REGISTRY = {
|
|
|
33550
33573
|
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, CampaignCardAdminSkeleton, {}),
|
|
33551
33574
|
// No public viewer — synthesize the hub-internal admin URL post-fetch
|
|
33552
33575
|
// so the wrapper + isNewTab computation see the actual destination.
|
|
33553
|
-
fallbackHref: (item) => _optionalChain([item, 'optionalAccess',
|
|
33576
|
+
fallbackHref: (item) => _optionalChain([item, 'optionalAccess', _768 => _768.id]) ? `/admin/campaigns/${encodeURIComponent(item.id)}` : null,
|
|
33554
33577
|
render: (item, chatRef, opts) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
33555
33578
|
CampaignChatCard,
|
|
33556
33579
|
{
|
|
@@ -33576,12 +33599,12 @@ function ChatCardNavWrap({
|
|
|
33576
33599
|
const onClickCapture = (e) => {
|
|
33577
33600
|
if (!href) return;
|
|
33578
33601
|
const targetEl = e.target;
|
|
33579
|
-
if (_optionalChain([targetEl, 'optionalAccess',
|
|
33580
|
-
if (!_optionalChain([targetEl, 'optionalAccess',
|
|
33602
|
+
if (_optionalChain([targetEl, 'optionalAccess', _769 => _769.closest, 'optionalCall', _770 => _770("button")])) return;
|
|
33603
|
+
if (!_optionalChain([targetEl, 'optionalAccess', _771 => _771.closest, 'optionalCall', _772 => _772("a")])) return;
|
|
33581
33604
|
const handled = handleChatNavClick(e, runtime, { href, path, targetPlatform }, router.push);
|
|
33582
33605
|
if (!handled) return;
|
|
33583
33606
|
e.stopPropagation();
|
|
33584
|
-
if (!isNewTab && _optionalChain([panel, 'optionalAccess',
|
|
33607
|
+
if (!isNewTab && _optionalChain([panel, 'optionalAccess', _773 => _773.closeChat])) panel.closeChat();
|
|
33585
33608
|
};
|
|
33586
33609
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "contents", onClickCapture, children });
|
|
33587
33610
|
}
|
|
@@ -33595,7 +33618,7 @@ function ChatCardLoader({
|
|
|
33595
33618
|
}) {
|
|
33596
33619
|
const runtime = _chunkPC7YOZ4Icjs.useRequiredChatRuntime.call(void 0, );
|
|
33597
33620
|
const resolvedChatRef = React92.default.useMemo(() => {
|
|
33598
|
-
const cta =
|
|
33621
|
+
const cta = _chunkLH7R56RRcjs.resolveSourceRowCTA.call(void 0,
|
|
33599
33622
|
{
|
|
33600
33623
|
sourceRepo: chatRef.sourceRepo,
|
|
33601
33624
|
documentType: chatRef.type,
|
|
@@ -33603,11 +33626,11 @@ function ChatCardLoader({
|
|
|
33603
33626
|
title: chatRef.title,
|
|
33604
33627
|
externalUrl: chatRef.url,
|
|
33605
33628
|
targetPlatform: chatRef.targetPlatform,
|
|
33606
|
-
path: typeof _optionalChain([chatRef, 'access',
|
|
33629
|
+
path: typeof _optionalChain([chatRef, 'access', _774 => _774.metadata, 'optionalAccess', _775 => _775.path]) === "string" ? chatRef.metadata.path : null
|
|
33607
33630
|
},
|
|
33608
|
-
|
|
33631
|
+
_chunkLH7R56RRcjs.sourceRowCtxFromRuntime.call(void 0, runtime, { baseRoute, chipBasePlatform })
|
|
33609
33632
|
);
|
|
33610
|
-
const finalHref = cta.href ?
|
|
33633
|
+
const finalHref = cta.href ? _chunkLH7R56RRcjs.resolveHrefForRuntime.call(void 0, cta.href, runtime) : null;
|
|
33611
33634
|
return {
|
|
33612
33635
|
...chatRef,
|
|
33613
33636
|
url: _nullishCoalesce(finalHref, () => ( chatRef.url)),
|
|
@@ -33617,15 +33640,15 @@ function ChatCardLoader({
|
|
|
33617
33640
|
const entry = CHAT_CARD_REGISTRY[resolvedChatRef.type];
|
|
33618
33641
|
const fetchEntry = entry && entry.mode === "fetch" ? entry : null;
|
|
33619
33642
|
const { item, isLoading } = useChatCardItem(
|
|
33620
|
-
_nullishCoalesce(_optionalChain([fetchEntry, 'optionalAccess',
|
|
33643
|
+
_nullishCoalesce(_optionalChain([fetchEntry, 'optionalAccess', _776 => _776.contentRefType]), () => ( "")),
|
|
33621
33644
|
fetchEntry ? resolvedChatRef.id : ""
|
|
33622
33645
|
);
|
|
33623
33646
|
if (!entry) return null;
|
|
33624
33647
|
const finalChatRef = fetchEntry && !resolvedChatRef.url && item && fetchEntry.fallbackHref ? {
|
|
33625
33648
|
...resolvedChatRef,
|
|
33626
|
-
url:
|
|
33649
|
+
url: _chunkLH7R56RRcjs.safeHref.call(void 0, fetchEntry.fallbackHref(item))
|
|
33627
33650
|
} : resolvedChatRef;
|
|
33628
|
-
const isNewTab =
|
|
33651
|
+
const isNewTab = _chunkLH7R56RRcjs.computeIsNewTab.call(void 0, runtime, finalChatRef.url, _nullishCoalesce(finalChatRef.targetPlatform, () => ( null)));
|
|
33629
33652
|
const useDisplay = !!entry.displayAction && !!onDisplay;
|
|
33630
33653
|
const discussFn = useDisplay ? onDisplay : onDiscuss;
|
|
33631
33654
|
const discuss = discussFn ? {
|
|
@@ -33648,7 +33671,7 @@ function ChatCardLoader({
|
|
|
33648
33671
|
isNewTab,
|
|
33649
33672
|
discuss
|
|
33650
33673
|
};
|
|
33651
|
-
const path = typeof _optionalChain([finalChatRef, 'access',
|
|
33674
|
+
const path = typeof _optionalChain([finalChatRef, 'access', _777 => _777.metadata, 'optionalAccess', _778 => _778.path]) === "string" ? finalChatRef.metadata.path : null;
|
|
33652
33675
|
const navWrap = (children) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
33653
33676
|
ChatCardNavWrap,
|
|
33654
33677
|
{
|
|
@@ -34034,7 +34057,7 @@ function useJetStreamDialogSubscription({
|
|
|
34034
34057
|
const lifecycle = _chunkPXXS27EEcjs.startConnectionLifecycle.call(void 0, {
|
|
34035
34058
|
conn: sharedConn,
|
|
34036
34059
|
wsUrl,
|
|
34037
|
-
onBeforeReconnect: () => _optionalChain([onBeforeReconnectRef, 'access',
|
|
34060
|
+
onBeforeReconnect: () => _optionalChain([onBeforeReconnectRef, 'access', _779 => _779.current, 'optionalCall', _780 => _780()]),
|
|
34038
34061
|
backoff: reconnectionBackoffRef.current,
|
|
34039
34062
|
getFreshUrl: () => getNatsWsUrlRef.current(),
|
|
34040
34063
|
// JetStream emits 'error' for protocol-level failures (e.g. -ERR Permissions
|
|
@@ -34049,7 +34072,7 @@ function useJetStreamDialogSubscription({
|
|
|
34049
34072
|
setReconnectionCount((c) => c + 1);
|
|
34050
34073
|
}
|
|
34051
34074
|
hadConnectionBeforeRef.current = true;
|
|
34052
|
-
_optionalChain([onConnectRef, 'access',
|
|
34075
|
+
_optionalChain([onConnectRef, 'access', _781 => _781.current, 'optionalCall', _782 => _782()]);
|
|
34053
34076
|
}
|
|
34054
34077
|
if (status === "error") {
|
|
34055
34078
|
console.warn("[JetStream] NATS protocol error:", evt.data);
|
|
@@ -34059,7 +34082,7 @@ function useJetStreamDialogSubscription({
|
|
|
34059
34082
|
setIsConnected(false);
|
|
34060
34083
|
setIsSubscribed(false);
|
|
34061
34084
|
tearDownSubscription();
|
|
34062
|
-
_optionalChain([onDisconnectRef, 'access',
|
|
34085
|
+
_optionalChain([onDisconnectRef, 'access', _783 => _783.current, 'optionalCall', _784 => _784()]);
|
|
34063
34086
|
}
|
|
34064
34087
|
}
|
|
34065
34088
|
});
|
|
@@ -34138,7 +34161,7 @@ function useJetStreamDialogSubscription({
|
|
|
34138
34161
|
}
|
|
34139
34162
|
subscriptionRef.current = handle;
|
|
34140
34163
|
setIsSubscribed(true);
|
|
34141
|
-
_optionalChain([onSubscribedRef, 'access',
|
|
34164
|
+
_optionalChain([onSubscribedRef, 'access', _785 => _785.current, 'optionalCall', _786 => _786()]);
|
|
34142
34165
|
} catch (e27) {
|
|
34143
34166
|
if (!cancelled) {
|
|
34144
34167
|
setIsSubscribed(false);
|
|
@@ -34251,20 +34274,20 @@ function useNatsDialogSubscription({
|
|
|
34251
34274
|
const tearDownSubscriptions = () => {
|
|
34252
34275
|
subscriptionRefs.current.forEach((sub) => {
|
|
34253
34276
|
try {
|
|
34254
|
-
_optionalChain([sub, 'optionalAccess',
|
|
34277
|
+
_optionalChain([sub, 'optionalAccess', _787 => _787.unsubscribe, 'call', _788 => _788()]);
|
|
34255
34278
|
} catch (e29) {
|
|
34256
34279
|
}
|
|
34257
34280
|
});
|
|
34258
34281
|
subscriptionRefs.current.clear();
|
|
34259
34282
|
lastSubscribedDialogIdRef.current = null;
|
|
34260
|
-
_optionalChain([abortControllerRef, 'access',
|
|
34283
|
+
_optionalChain([abortControllerRef, 'access', _789 => _789.current, 'optionalAccess', _790 => _790.abort, 'call', _791 => _791()]);
|
|
34261
34284
|
abortControllerRef.current = null;
|
|
34262
34285
|
};
|
|
34263
34286
|
const isDisconnectStatus = (status) => status === "closed" || status === "disconnected";
|
|
34264
34287
|
const lifecycle = _chunkPXXS27EEcjs.startConnectionLifecycle.call(void 0, {
|
|
34265
34288
|
conn: sharedConn,
|
|
34266
34289
|
wsUrl,
|
|
34267
|
-
onBeforeReconnect: () => _optionalChain([onBeforeReconnectRef, 'access',
|
|
34290
|
+
onBeforeReconnect: () => _optionalChain([onBeforeReconnectRef, 'access', _792 => _792.current, 'optionalCall', _793 => _793()]),
|
|
34268
34291
|
backoff: reconnectionBackoffRef.current,
|
|
34269
34292
|
getFreshUrl: () => getNatsWsUrlRef.current(),
|
|
34270
34293
|
shouldRetryOn: isDisconnectStatus,
|
|
@@ -34275,7 +34298,7 @@ function useNatsDialogSubscription({
|
|
|
34275
34298
|
setReconnectionCount((c) => c + 1);
|
|
34276
34299
|
}
|
|
34277
34300
|
hadConnectionBeforeRef.current = true;
|
|
34278
|
-
_optionalChain([onConnectRef, 'access',
|
|
34301
|
+
_optionalChain([onConnectRef, 'access', _794 => _794.current, 'optionalCall', _795 => _795()]);
|
|
34279
34302
|
}
|
|
34280
34303
|
if (status === "error") {
|
|
34281
34304
|
console.warn("[NATS] protocol error:", evt.data);
|
|
@@ -34285,7 +34308,7 @@ function useNatsDialogSubscription({
|
|
|
34285
34308
|
setIsConnected(false);
|
|
34286
34309
|
setIsSubscribed(false);
|
|
34287
34310
|
tearDownSubscriptions();
|
|
34288
|
-
_optionalChain([onDisconnectRef, 'access',
|
|
34311
|
+
_optionalChain([onDisconnectRef, 'access', _796 => _796.current, 'optionalCall', _797 => _797()]);
|
|
34289
34312
|
}
|
|
34290
34313
|
}
|
|
34291
34314
|
});
|
|
@@ -34316,13 +34339,13 @@ function useNatsDialogSubscription({
|
|
|
34316
34339
|
setIsSubscribed(false);
|
|
34317
34340
|
subscriptionRefs.current.forEach((sub) => {
|
|
34318
34341
|
try {
|
|
34319
|
-
_optionalChain([sub, 'optionalAccess',
|
|
34342
|
+
_optionalChain([sub, 'optionalAccess', _798 => _798.unsubscribe, 'call', _799 => _799()]);
|
|
34320
34343
|
} catch (e30) {
|
|
34321
34344
|
}
|
|
34322
34345
|
});
|
|
34323
34346
|
subscriptionRefs.current.clear();
|
|
34324
34347
|
lastSubscribedDialogIdRef.current = null;
|
|
34325
|
-
_optionalChain([abortControllerRef, 'access',
|
|
34348
|
+
_optionalChain([abortControllerRef, 'access', _800 => _800.current, 'optionalAccess', _801 => _801.abort, 'call', _802 => _802()]);
|
|
34326
34349
|
abortControllerRef.current = null;
|
|
34327
34350
|
}
|
|
34328
34351
|
return;
|
|
@@ -34334,12 +34357,12 @@ function useNatsDialogSubscription({
|
|
|
34334
34357
|
if (subscriptionRefs.current.size > 0) {
|
|
34335
34358
|
subscriptionRefs.current.forEach((sub) => {
|
|
34336
34359
|
try {
|
|
34337
|
-
_optionalChain([sub, 'optionalAccess',
|
|
34360
|
+
_optionalChain([sub, 'optionalAccess', _803 => _803.unsubscribe, 'call', _804 => _804()]);
|
|
34338
34361
|
} catch (e31) {
|
|
34339
34362
|
}
|
|
34340
34363
|
});
|
|
34341
34364
|
subscriptionRefs.current.clear();
|
|
34342
|
-
_optionalChain([abortControllerRef, 'access',
|
|
34365
|
+
_optionalChain([abortControllerRef, 'access', _805 => _805.current, 'optionalAccess', _806 => _806.abort, 'call', _807 => _807()]);
|
|
34343
34366
|
}
|
|
34344
34367
|
abortControllerRef.current = new AbortController();
|
|
34345
34368
|
const abort = abortControllerRef.current;
|
|
@@ -34371,7 +34394,7 @@ function useNatsDialogSubscription({
|
|
|
34371
34394
|
});
|
|
34372
34395
|
lastSubscribedDialogIdRef.current = dialogId;
|
|
34373
34396
|
setIsSubscribed(true);
|
|
34374
|
-
_optionalChain([onSubscribedRef, 'access',
|
|
34397
|
+
_optionalChain([onSubscribedRef, 'access', _808 => _808.current, 'optionalCall', _809 => _809()]);
|
|
34375
34398
|
};
|
|
34376
34399
|
if (isConnectedRef.current) {
|
|
34377
34400
|
createSubscriptions();
|
|
@@ -34381,7 +34404,7 @@ function useNatsDialogSubscription({
|
|
|
34381
34404
|
abort.abort();
|
|
34382
34405
|
subscriptionRefs.current.forEach((sub) => {
|
|
34383
34406
|
try {
|
|
34384
|
-
_optionalChain([sub, 'optionalAccess',
|
|
34407
|
+
_optionalChain([sub, 'optionalAccess', _810 => _810.unsubscribe, 'call', _811 => _811()]);
|
|
34385
34408
|
} catch (e33) {
|
|
34386
34409
|
}
|
|
34387
34410
|
});
|
|
@@ -34422,7 +34445,7 @@ function useNatsDialogSubscription({
|
|
|
34422
34445
|
});
|
|
34423
34446
|
lastSubscribedDialogIdRef.current = dialogId2;
|
|
34424
34447
|
setIsSubscribed(true);
|
|
34425
|
-
_optionalChain([onSubscribedRef, 'access',
|
|
34448
|
+
_optionalChain([onSubscribedRef, 'access', _812 => _812.current, 'optionalCall', _813 => _813()]);
|
|
34426
34449
|
} else if (subscriptionRefs.current.size > 0) {
|
|
34427
34450
|
setIsSubscribed(true);
|
|
34428
34451
|
}
|
|
@@ -34430,10 +34453,10 @@ function useNatsDialogSubscription({
|
|
|
34430
34453
|
return { isConnected, isSubscribed, reconnectionCount };
|
|
34431
34454
|
}
|
|
34432
34455
|
function buildNatsWsUrl(apiBaseUrl, options) {
|
|
34433
|
-
const path = _optionalChain([options, 'optionalAccess',
|
|
34456
|
+
const path = _optionalChain([options, 'optionalAccess', _814 => _814.source]) === "dashboard" ? "/ws/nats-api" : "/ws/nats";
|
|
34434
34457
|
const u = new URL(path, apiBaseUrl);
|
|
34435
34458
|
u.protocol = u.protocol === "https:" ? "wss:" : "ws:";
|
|
34436
|
-
if (_optionalChain([options, 'optionalAccess',
|
|
34459
|
+
if (_optionalChain([options, 'optionalAccess', _815 => _815.includeAuthParam]) && _optionalChain([options, 'optionalAccess', _816 => _816.token])) {
|
|
34437
34460
|
u.searchParams.set("authorization", options.token);
|
|
34438
34461
|
}
|
|
34439
34462
|
return u.toString();
|
|
@@ -34751,8 +34774,8 @@ var MessageSegmentAccumulator = class {
|
|
|
34751
34774
|
type: "tool_execution",
|
|
34752
34775
|
data: {
|
|
34753
34776
|
...toolData,
|
|
34754
|
-
toolTitle: _nullishCoalesce(_nullishCoalesce(toolData.toolTitle, () => ( _optionalChain([existingExecuting, 'optionalAccess',
|
|
34755
|
-
parameters: toolData.parameters || _optionalChain([executingTool, 'optionalAccess',
|
|
34777
|
+
toolTitle: _nullishCoalesce(_nullishCoalesce(toolData.toolTitle, () => ( _optionalChain([existingExecuting, 'optionalAccess', _817 => _817.data, 'access', _818 => _818.toolTitle]))), () => ( _optionalChain([executingTool, 'optionalAccess', _819 => _819.toolTitle]))),
|
|
34778
|
+
parameters: toolData.parameters || _optionalChain([executingTool, 'optionalAccess', _820 => _820.parameters])
|
|
34756
34779
|
}
|
|
34757
34780
|
};
|
|
34758
34781
|
if (existingIndex !== -1) {
|
|
@@ -34776,8 +34799,8 @@ var MessageSegmentAccumulator = class {
|
|
|
34776
34799
|
if (seg.type !== "approval_batch") return seg;
|
|
34777
34800
|
const hasCall = seg.data.toolCalls.some((c) => c.toolExecutionRequestId === execId);
|
|
34778
34801
|
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',
|
|
34802
|
+
const prev = _optionalChain([seg, 'access', _821 => _821.data, 'access', _822 => _822.executions, 'optionalAccess', _823 => _823[execId]]);
|
|
34803
|
+
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
34804
|
matched = true;
|
|
34782
34805
|
return {
|
|
34783
34806
|
...seg,
|
|
@@ -34897,10 +34920,10 @@ var MessageSegmentAccumulator = class {
|
|
|
34897
34920
|
const segment = {
|
|
34898
34921
|
type: "approval_request",
|
|
34899
34922
|
data: {
|
|
34900
|
-
command: _optionalChain([pendingApproval, 'optionalAccess',
|
|
34901
|
-
explanation: _optionalChain([pendingApproval, 'optionalAccess',
|
|
34923
|
+
command: _optionalChain([pendingApproval, 'optionalAccess', _826 => _826.command]) || "",
|
|
34924
|
+
explanation: _optionalChain([pendingApproval, 'optionalAccess', _827 => _827.explanation]),
|
|
34902
34925
|
requestId,
|
|
34903
|
-
approvalType: _optionalChain([pendingApproval, 'optionalAccess',
|
|
34926
|
+
approvalType: _optionalChain([pendingApproval, 'optionalAccess', _828 => _828.approvalType]) || approvalType
|
|
34904
34927
|
},
|
|
34905
34928
|
status,
|
|
34906
34929
|
onApprove: this.callbacks.onApprove,
|
|
@@ -35090,7 +35113,7 @@ function useRealtimeChunkProcessor(options) {
|
|
|
35090
35113
|
if (initialState.escalatedApprovals) {
|
|
35091
35114
|
pendingEscalatedRef.current = new Map(initialState.escalatedApprovals);
|
|
35092
35115
|
initialState.escalatedApprovals.forEach((data, requestId) => {
|
|
35093
|
-
_optionalChain([callbacks, 'access',
|
|
35116
|
+
_optionalChain([callbacks, 'access', _829 => _829.onEscalatedApproval, 'optionalCall', _830 => _830(requestId, data)]);
|
|
35094
35117
|
});
|
|
35095
35118
|
}
|
|
35096
35119
|
hasEverStreamedRef.current = true;
|
|
@@ -35117,7 +35140,7 @@ function useRealtimeChunkProcessor(options) {
|
|
|
35117
35140
|
if ((directModeFlagRef.current || sawDirectMessageRef.current) && !DIRECT_MODE_ALLOWED.has(action.action)) {
|
|
35118
35141
|
if (isInStreamRef.current) {
|
|
35119
35142
|
isInStreamRef.current = false;
|
|
35120
|
-
_optionalChain([callbacks, 'access',
|
|
35143
|
+
_optionalChain([callbacks, 'access', _831 => _831.onStreamEnd, 'optionalCall', _832 => _832()]);
|
|
35121
35144
|
accumulator.resetSegments();
|
|
35122
35145
|
}
|
|
35123
35146
|
return;
|
|
@@ -35126,32 +35149,32 @@ function useRealtimeChunkProcessor(options) {
|
|
|
35126
35149
|
case "message_start":
|
|
35127
35150
|
isInStreamRef.current = true;
|
|
35128
35151
|
hasEverStreamedRef.current = true;
|
|
35129
|
-
_optionalChain([callbacks, 'access',
|
|
35152
|
+
_optionalChain([callbacks, 'access', _833 => _833.onStreamStart, 'optionalCall', _834 => _834()]);
|
|
35130
35153
|
accumulator.resetSegments();
|
|
35131
35154
|
break;
|
|
35132
35155
|
case "message_end":
|
|
35133
35156
|
isInStreamRef.current = false;
|
|
35134
|
-
_optionalChain([callbacks, 'access',
|
|
35157
|
+
_optionalChain([callbacks, 'access', _835 => _835.onStreamEnd, 'optionalCall', _836 => _836()]);
|
|
35135
35158
|
accumulator.resetSegments();
|
|
35136
35159
|
break;
|
|
35137
35160
|
case "metadata":
|
|
35138
|
-
_optionalChain([callbacks, 'access',
|
|
35161
|
+
_optionalChain([callbacks, 'access', _837 => _837.onMetadata, 'optionalCall', _838 => _838(action)]);
|
|
35139
35162
|
break;
|
|
35140
35163
|
case "text": {
|
|
35141
35164
|
const segments = accumulator.appendText(action.text);
|
|
35142
35165
|
if (isInStreamRef.current || !hasEverStreamedRef.current) {
|
|
35143
|
-
_optionalChain([callbacks, 'access',
|
|
35166
|
+
_optionalChain([callbacks, 'access', _839 => _839.onSegmentsUpdate, 'optionalCall', _840 => _840(segments)]);
|
|
35144
35167
|
} else {
|
|
35145
|
-
_optionalChain([callbacks, 'access',
|
|
35168
|
+
_optionalChain([callbacks, 'access', _841 => _841.onSegmentsUpdate, 'optionalCall', _842 => _842([{ type: "text", text: action.text }], { append: true })]);
|
|
35146
35169
|
}
|
|
35147
35170
|
break;
|
|
35148
35171
|
}
|
|
35149
35172
|
case "thinking": {
|
|
35150
35173
|
const segments = accumulator.appendThinking(action.text);
|
|
35151
35174
|
if (isInStreamRef.current || !hasEverStreamedRef.current) {
|
|
35152
|
-
_optionalChain([callbacks, 'access',
|
|
35175
|
+
_optionalChain([callbacks, 'access', _843 => _843.onSegmentsUpdate, 'optionalCall', _844 => _844(segments)]);
|
|
35153
35176
|
} else {
|
|
35154
|
-
_optionalChain([callbacks, 'access',
|
|
35177
|
+
_optionalChain([callbacks, 'access', _845 => _845.onSegmentsUpdate, 'optionalCall', _846 => _846([{ type: "thinking", text: action.text }], { append: true })]);
|
|
35155
35178
|
}
|
|
35156
35179
|
break;
|
|
35157
35180
|
}
|
|
@@ -35161,7 +35184,7 @@ function useRealtimeChunkProcessor(options) {
|
|
|
35161
35184
|
break;
|
|
35162
35185
|
}
|
|
35163
35186
|
const segments = accumulator.addToolExecution(action.segment);
|
|
35164
|
-
_optionalChain([callbacks, 'access',
|
|
35187
|
+
_optionalChain([callbacks, 'access', _847 => _847.onSegmentsUpdate, 'optionalCall', _848 => _848(segments)]);
|
|
35165
35188
|
break;
|
|
35166
35189
|
}
|
|
35167
35190
|
case "approval_request": {
|
|
@@ -35175,10 +35198,10 @@ function useRealtimeChunkProcessor(options) {
|
|
|
35175
35198
|
approvalType,
|
|
35176
35199
|
status
|
|
35177
35200
|
);
|
|
35178
|
-
_optionalChain([callbacks, 'access',
|
|
35201
|
+
_optionalChain([callbacks, 'access', _849 => _849.onSegmentsUpdate, 'optionalCall', _850 => _850(segments)]);
|
|
35179
35202
|
} else {
|
|
35180
35203
|
pendingEscalatedRef.current.set(requestId, { command, explanation, approvalType });
|
|
35181
|
-
_optionalChain([callbacks, 'access',
|
|
35204
|
+
_optionalChain([callbacks, 'access', _851 => _851.onEscalatedApproval, 'optionalCall', _852 => _852(requestId, { command, explanation, approvalType })]);
|
|
35182
35205
|
}
|
|
35183
35206
|
break;
|
|
35184
35207
|
}
|
|
@@ -35190,20 +35213,20 @@ function useRealtimeChunkProcessor(options) {
|
|
|
35190
35213
|
const summary = required ? getCommandText(required) : `Batch of ${toolCalls.length} tool calls`;
|
|
35191
35214
|
pendingEscalatedRef.current.set(requestId, {
|
|
35192
35215
|
command: summary,
|
|
35193
|
-
explanation: _optionalChain([required, 'optionalAccess',
|
|
35216
|
+
explanation: _optionalChain([required, 'optionalAccess', _853 => _853.toolExplanation]),
|
|
35194
35217
|
approvalType,
|
|
35195
35218
|
toolCalls
|
|
35196
35219
|
});
|
|
35197
|
-
_optionalChain([callbacks, 'access',
|
|
35220
|
+
_optionalChain([callbacks, 'access', _854 => _854.onEscalatedApproval, 'optionalCall', _855 => _855(requestId, {
|
|
35198
35221
|
command: summary,
|
|
35199
|
-
explanation: _optionalChain([required, 'optionalAccess',
|
|
35222
|
+
explanation: _optionalChain([required, 'optionalAccess', _856 => _856.toolExplanation]),
|
|
35200
35223
|
approvalType
|
|
35201
35224
|
})]);
|
|
35202
35225
|
break;
|
|
35203
35226
|
}
|
|
35204
35227
|
if (batchApprovalsEnabled) {
|
|
35205
35228
|
const segments2 = accumulator.addApprovalBatch(requestId, approvalType, toolCalls, status);
|
|
35206
|
-
_optionalChain([callbacks, 'access',
|
|
35229
|
+
_optionalChain([callbacks, 'access', _857 => _857.onSegmentsUpdate, 'optionalCall', _858 => _858(segments2)]);
|
|
35207
35230
|
break;
|
|
35208
35231
|
}
|
|
35209
35232
|
let segments = accumulator.getSegments();
|
|
@@ -35217,7 +35240,7 @@ function useRealtimeChunkProcessor(options) {
|
|
|
35217
35240
|
status
|
|
35218
35241
|
);
|
|
35219
35242
|
}
|
|
35220
|
-
_optionalChain([callbacks, 'access',
|
|
35243
|
+
_optionalChain([callbacks, 'access', _859 => _859.onSegmentsUpdate, 'optionalCall', _860 => _860(segments)]);
|
|
35221
35244
|
break;
|
|
35222
35245
|
}
|
|
35223
35246
|
case "approval_result": {
|
|
@@ -35226,7 +35249,7 @@ function useRealtimeChunkProcessor(options) {
|
|
|
35226
35249
|
const status = approved ? "approved" : "rejected";
|
|
35227
35250
|
if (escalatedData) {
|
|
35228
35251
|
pendingEscalatedRef.current.delete(requestId);
|
|
35229
|
-
_optionalChain([callbacks, 'access',
|
|
35252
|
+
_optionalChain([callbacks, 'access', _861 => _861.onEscalatedApprovalResult, 'optionalCall', _862 => _862(requestId, approved, {
|
|
35230
35253
|
command: escalatedData.command,
|
|
35231
35254
|
explanation: escalatedData.explanation,
|
|
35232
35255
|
approvalType: escalatedData.approvalType
|
|
@@ -35239,7 +35262,7 @@ function useRealtimeChunkProcessor(options) {
|
|
|
35239
35262
|
escalatedData.toolCalls,
|
|
35240
35263
|
status
|
|
35241
35264
|
);
|
|
35242
|
-
_optionalChain([callbacks, 'access',
|
|
35265
|
+
_optionalChain([callbacks, 'access', _863 => _863.onSegmentsUpdate, 'optionalCall', _864 => _864(segments)]);
|
|
35243
35266
|
} else {
|
|
35244
35267
|
let segments = accumulator.getSegments();
|
|
35245
35268
|
for (const call of escalatedData.toolCalls) {
|
|
@@ -35252,7 +35275,7 @@ function useRealtimeChunkProcessor(options) {
|
|
|
35252
35275
|
status
|
|
35253
35276
|
);
|
|
35254
35277
|
}
|
|
35255
|
-
_optionalChain([callbacks, 'access',
|
|
35278
|
+
_optionalChain([callbacks, 'access', _865 => _865.onSegmentsUpdate, 'optionalCall', _866 => _866(segments)]);
|
|
35256
35279
|
}
|
|
35257
35280
|
} else {
|
|
35258
35281
|
const segments = accumulator.addApprovalRequest(
|
|
@@ -35262,37 +35285,37 @@ function useRealtimeChunkProcessor(options) {
|
|
|
35262
35285
|
escalatedData.approvalType,
|
|
35263
35286
|
status
|
|
35264
35287
|
);
|
|
35265
|
-
_optionalChain([callbacks, 'access',
|
|
35288
|
+
_optionalChain([callbacks, 'access', _867 => _867.onSegmentsUpdate, 'optionalCall', _868 => _868(segments)]);
|
|
35266
35289
|
}
|
|
35267
35290
|
} else {
|
|
35268
35291
|
accumulator.updateApprovalStatus(requestId, status);
|
|
35269
35292
|
if (!callbacks.onApprovalResolved) {
|
|
35270
|
-
_optionalChain([callbacks, 'access',
|
|
35293
|
+
_optionalChain([callbacks, 'access', _869 => _869.onSegmentsUpdate, 'optionalCall', _870 => _870(accumulator.getSegments())]);
|
|
35271
35294
|
}
|
|
35272
35295
|
}
|
|
35273
|
-
_optionalChain([callbacks, 'access',
|
|
35296
|
+
_optionalChain([callbacks, 'access', _871 => _871.onApprovalResolved, 'optionalCall', _872 => _872(requestId, status, approvalType)]);
|
|
35274
35297
|
break;
|
|
35275
35298
|
}
|
|
35276
35299
|
case "error": {
|
|
35277
35300
|
let message2;
|
|
35278
|
-
if ("details" in action && _optionalChain([action, 'optionalAccess',
|
|
35301
|
+
if ("details" in action && _optionalChain([action, 'optionalAccess', _873 => _873.details])) {
|
|
35279
35302
|
try {
|
|
35280
|
-
message2 = _optionalChain([JSON, 'access',
|
|
35303
|
+
message2 = _optionalChain([JSON, 'access', _874 => _874.parse, 'call', _875 => _875(action.details), 'optionalAccess', _876 => _876.error, 'optionalAccess', _877 => _877.message]);
|
|
35281
35304
|
} catch (e35) {
|
|
35282
35305
|
message2 = action.details;
|
|
35283
35306
|
}
|
|
35284
35307
|
}
|
|
35285
35308
|
const segments = accumulator.addError(action.error, message2);
|
|
35286
|
-
_optionalChain([callbacks, 'access',
|
|
35287
|
-
_optionalChain([callbacks, 'access',
|
|
35309
|
+
_optionalChain([callbacks, 'access', _878 => _878.onSegmentsUpdate, 'optionalCall', _879 => _879(segments)]);
|
|
35310
|
+
_optionalChain([callbacks, 'access', _880 => _880.onError, 'optionalCall', _881 => _881(action.error, message2)]);
|
|
35288
35311
|
break;
|
|
35289
35312
|
}
|
|
35290
35313
|
case "system": {
|
|
35291
|
-
_optionalChain([callbacks, 'access',
|
|
35314
|
+
_optionalChain([callbacks, 'access', _882 => _882.onSystemMessage, 'optionalCall', _883 => _883(action.text)]);
|
|
35292
35315
|
break;
|
|
35293
35316
|
}
|
|
35294
35317
|
case "direct_message": {
|
|
35295
|
-
_optionalChain([callbacks, 'access',
|
|
35318
|
+
_optionalChain([callbacks, 'access', _884 => _884.onDirectMessage, 'optionalCall', _885 => _885(action.text, {
|
|
35296
35319
|
ownerType: action.ownerType,
|
|
35297
35320
|
displayName: action.displayName,
|
|
35298
35321
|
userId: action.userId
|
|
@@ -35300,29 +35323,29 @@ function useRealtimeChunkProcessor(options) {
|
|
|
35300
35323
|
break;
|
|
35301
35324
|
}
|
|
35302
35325
|
case "message_request":
|
|
35303
|
-
_optionalChain([callbacks, 'access',
|
|
35326
|
+
_optionalChain([callbacks, 'access', _886 => _886.onUserMessage, 'optionalCall', _887 => _887(action.text, {
|
|
35304
35327
|
ownerType: action.ownerType,
|
|
35305
35328
|
displayName: action.displayName,
|
|
35306
35329
|
userId: action.userId
|
|
35307
35330
|
})]);
|
|
35308
35331
|
break;
|
|
35309
35332
|
case "token_usage":
|
|
35310
|
-
_optionalChain([callbacks, 'access',
|
|
35333
|
+
_optionalChain([callbacks, 'access', _888 => _888.onTokenUsage, 'optionalCall', _889 => _889(action.data)]);
|
|
35311
35334
|
break;
|
|
35312
35335
|
case "context_compaction_start": {
|
|
35313
35336
|
const standalone = !isInStreamRef.current;
|
|
35314
35337
|
const segments = accumulator.addContextCompaction();
|
|
35315
|
-
_optionalChain([callbacks, 'access',
|
|
35338
|
+
_optionalChain([callbacks, 'access', _890 => _890.onSegmentsUpdate, 'optionalCall', _891 => _891(segments, standalone ? { append: true, isCompacting: true } : void 0)]);
|
|
35316
35339
|
break;
|
|
35317
35340
|
}
|
|
35318
35341
|
case "context_compaction_end": {
|
|
35319
35342
|
const standalone = !isInStreamRef.current;
|
|
35320
35343
|
const segments = accumulator.completeContextCompaction(action.summary);
|
|
35321
|
-
_optionalChain([callbacks, 'access',
|
|
35344
|
+
_optionalChain([callbacks, 'access', _892 => _892.onSegmentsUpdate, 'optionalCall', _893 => _893(segments, standalone ? { append: true, isCompacting: true } : void 0)]);
|
|
35322
35345
|
break;
|
|
35323
35346
|
}
|
|
35324
35347
|
case "dialog_closed":
|
|
35325
|
-
_optionalChain([callbacks, 'access',
|
|
35348
|
+
_optionalChain([callbacks, 'access', _894 => _894.onDialogClosed, 'optionalCall', _895 => _895()]);
|
|
35326
35349
|
break;
|
|
35327
35350
|
default:
|
|
35328
35351
|
break;
|
|
@@ -35384,7 +35407,7 @@ function useSlashCommands(prefix, commandsUrl) {
|
|
|
35384
35407
|
const next = await fetchSlashCommands(prefix, ctrl.signal, commandsUrl);
|
|
35385
35408
|
if (!cancelled) setCommands(next);
|
|
35386
35409
|
} catch (err) {
|
|
35387
|
-
if (!cancelled && _optionalChain([err, 'optionalAccess',
|
|
35410
|
+
if (!cancelled && _optionalChain([err, 'optionalAccess', _896 => _896.name]) !== "AbortError") {
|
|
35388
35411
|
console.warn("[use-slash-commands] fetch failed:", err);
|
|
35389
35412
|
}
|
|
35390
35413
|
} finally {
|
|
@@ -35403,7 +35426,7 @@ function useSlashCommandRegistry(commandsUrl, options) {
|
|
|
35403
35426
|
const query = _reactquery.useQuery.call(void 0, {
|
|
35404
35427
|
queryKey: ["chat-slash-commands", commandsUrl],
|
|
35405
35428
|
queryFn: ({ signal }) => fetchSlashCommands("", signal, commandsUrl),
|
|
35406
|
-
enabled: _nullishCoalesce(_optionalChain([options, 'optionalAccess',
|
|
35429
|
+
enabled: _nullishCoalesce(_optionalChain([options, 'optionalAccess', _897 => _897.enabled]), () => ( true)),
|
|
35407
35430
|
staleTime: Infinity,
|
|
35408
35431
|
gcTime: Infinity
|
|
35409
35432
|
});
|
|
@@ -35424,7 +35447,7 @@ var CHAT_ATTACHMENT_MAX_SIZE_BYTES = 25 * 1024 * 1024;
|
|
|
35424
35447
|
var STORAGE_CACHE_CONTROL_IMMUTABLE = "public, max-age=31536000, immutable";
|
|
35425
35448
|
function uploadWithProgress(url, file, token, onProgress, signal) {
|
|
35426
35449
|
return new Promise((resolve, reject) => {
|
|
35427
|
-
if (_optionalChain([signal, 'optionalAccess',
|
|
35450
|
+
if (_optionalChain([signal, 'optionalAccess', _898 => _898.aborted])) {
|
|
35428
35451
|
reject(new Error("Upload cancelled"));
|
|
35429
35452
|
return;
|
|
35430
35453
|
}
|
|
@@ -35438,7 +35461,7 @@ function uploadWithProgress(url, file, token, onProgress, signal) {
|
|
|
35438
35461
|
xhr.removeEventListener("error", handleError);
|
|
35439
35462
|
xhr.removeEventListener("abort", handleAbort);
|
|
35440
35463
|
xhr.removeEventListener("timeout", handleTimeout);
|
|
35441
|
-
_optionalChain([signal, 'optionalAccess',
|
|
35464
|
+
_optionalChain([signal, 'optionalAccess', _899 => _899.removeEventListener, 'call', _900 => _900("abort", handleSignalAbort)]);
|
|
35442
35465
|
if (xhr.readyState !== XMLHttpRequest.DONE) xhr.abort();
|
|
35443
35466
|
};
|
|
35444
35467
|
const handleProgress = (event) => {
|
|
@@ -35474,7 +35497,7 @@ function uploadWithProgress(url, file, token, onProgress, signal) {
|
|
|
35474
35497
|
const handleSignalAbort = () => {
|
|
35475
35498
|
xhr.abort();
|
|
35476
35499
|
};
|
|
35477
|
-
_optionalChain([signal, 'optionalAccess',
|
|
35500
|
+
_optionalChain([signal, 'optionalAccess', _901 => _901.addEventListener, 'call', _902 => _902("abort", handleSignalAbort, { once: true })]);
|
|
35478
35501
|
xhr.upload.addEventListener("progress", handleProgress);
|
|
35479
35502
|
xhr.addEventListener("load", handleLoad);
|
|
35480
35503
|
xhr.addEventListener("error", handleError);
|
|
@@ -35518,12 +35541,12 @@ function useChatAttachments() {
|
|
|
35518
35541
|
try {
|
|
35519
35542
|
sniffed = await _filetype.fileTypeFromBlob.call(void 0, att.file);
|
|
35520
35543
|
} catch (err) {
|
|
35521
|
-
if (_optionalChain([ctrl, 'optionalAccess',
|
|
35544
|
+
if (_optionalChain([ctrl, 'optionalAccess', _903 => _903.signal, 'access', _904 => _904.aborted])) return;
|
|
35522
35545
|
throw new Error(
|
|
35523
35546
|
`Could not read file content: ${err instanceof Error ? err.message : String(err)}`
|
|
35524
35547
|
);
|
|
35525
35548
|
}
|
|
35526
|
-
if (_optionalChain([ctrl, 'optionalAccess',
|
|
35549
|
+
if (_optionalChain([ctrl, 'optionalAccess', _905 => _905.signal, 'access', _906 => _906.aborted])) return;
|
|
35527
35550
|
if (!sniffed) {
|
|
35528
35551
|
throw new Error("Unrecognized file format");
|
|
35529
35552
|
}
|
|
@@ -35537,7 +35560,7 @@ function useChatAttachments() {
|
|
|
35537
35560
|
const urlResp = await _chunkZSUNQJROcjs.embedAuthedFetch.call(void 0, uploadUrlEndpoint, {
|
|
35538
35561
|
method: "POST",
|
|
35539
35562
|
headers: { "Content-Type": "application/json" },
|
|
35540
|
-
signal: _optionalChain([ctrl, 'optionalAccess',
|
|
35563
|
+
signal: _optionalChain([ctrl, 'optionalAccess', _907 => _907.signal]),
|
|
35541
35564
|
body: JSON.stringify({
|
|
35542
35565
|
fileName: att.file.name,
|
|
35543
35566
|
// Pass the SNIFFED MIME (not `file.type`, which can be a
|
|
@@ -35563,9 +35586,9 @@ function useChatAttachments() {
|
|
|
35563
35586
|
(pct) => {
|
|
35564
35587
|
updateOne(att.id, { progress: pct });
|
|
35565
35588
|
},
|
|
35566
|
-
_optionalChain([ctrl, 'optionalAccess',
|
|
35589
|
+
_optionalChain([ctrl, 'optionalAccess', _908 => _908.signal])
|
|
35567
35590
|
);
|
|
35568
|
-
if (_optionalChain([ctrl, 'optionalAccess',
|
|
35591
|
+
if (_optionalChain([ctrl, 'optionalAccess', _909 => _909.signal, 'access', _910 => _910.aborted])) return;
|
|
35569
35592
|
updateOne(att.id, {
|
|
35570
35593
|
status: "ready",
|
|
35571
35594
|
progress: 100,
|
|
@@ -35573,7 +35596,7 @@ function useChatAttachments() {
|
|
|
35573
35596
|
viewToken: mintData.viewToken
|
|
35574
35597
|
});
|
|
35575
35598
|
} catch (err) {
|
|
35576
|
-
if (_optionalChain([ctrl, 'optionalAccess',
|
|
35599
|
+
if (_optionalChain([ctrl, 'optionalAccess', _911 => _911.signal, 'access', _912 => _912.aborted])) return;
|
|
35577
35600
|
const message2 = err instanceof Error ? err.message : String(err);
|
|
35578
35601
|
updateOne(att.id, { status: "error", progress: 0, errorMessage: message2 });
|
|
35579
35602
|
} finally {
|
|
@@ -35724,7 +35747,7 @@ var ANON_DEFAULTS = {
|
|
|
35724
35747
|
function useResolveChatIdentity(enabled) {
|
|
35725
35748
|
const runtime = _chunkPC7YOZ4Icjs.useRequiredChatRuntime.call(void 0, );
|
|
35726
35749
|
const url = runtime.endpoints.identityUrl;
|
|
35727
|
-
const proxyEmail = _nullishCoalesce(_optionalChain([_chunkZSUNQJROcjs.getEmbedProxyAuth.call(void 0, ), 'optionalAccess',
|
|
35750
|
+
const proxyEmail = _nullishCoalesce(_optionalChain([_chunkZSUNQJROcjs.getEmbedProxyAuth.call(void 0, ), 'optionalAccess', _913 => _913.email]), () => ( null));
|
|
35728
35751
|
const [data, setData] = _react.useState.call(void 0, ANON_DEFAULTS);
|
|
35729
35752
|
const [isLoading, setIsLoading] = _react.useState.call(void 0, enabled);
|
|
35730
35753
|
_react.useEffect.call(void 0, () => {
|
|
@@ -35812,7 +35835,7 @@ function useSSE({ useMock = true, debugMode = false, streamFn } = {}) {
|
|
|
35812
35835
|
yield chunk;
|
|
35813
35836
|
}
|
|
35814
35837
|
} catch (err) {
|
|
35815
|
-
if (_optionalChain([err, 'optionalAccess',
|
|
35838
|
+
if (_optionalChain([err, 'optionalAccess', _914 => _914.name]) === "AbortError" || ctrl.signal.aborted) {
|
|
35816
35839
|
return;
|
|
35817
35840
|
}
|
|
35818
35841
|
const errorMessage = err instanceof Error ? err.message : "An error occurred";
|
|
@@ -35863,7 +35886,7 @@ function useChat({
|
|
|
35863
35886
|
const onMessagesChangeRef = _react.useRef.call(void 0, onMessagesChange);
|
|
35864
35887
|
onMessagesChangeRef.current = onMessagesChange;
|
|
35865
35888
|
_react.useEffect.call(void 0, () => {
|
|
35866
|
-
_optionalChain([onMessagesChangeRef, 'access',
|
|
35889
|
+
_optionalChain([onMessagesChangeRef, 'access', _915 => _915.current, 'optionalCall', _916 => _916(messages)]);
|
|
35867
35890
|
}, [messages]);
|
|
35868
35891
|
const {
|
|
35869
35892
|
streamMessage,
|
|
@@ -35900,7 +35923,7 @@ function useChat({
|
|
|
35900
35923
|
name: "You",
|
|
35901
35924
|
content: text,
|
|
35902
35925
|
timestamp: /* @__PURE__ */ new Date(),
|
|
35903
|
-
..._optionalChain([options, 'optionalAccess',
|
|
35926
|
+
..._optionalChain([options, 'optionalAccess', _917 => _917.hidden]) ? { hidden: true } : {}
|
|
35904
35927
|
};
|
|
35905
35928
|
addMessage(userMessage);
|
|
35906
35929
|
setIsTyping(true);
|
|
@@ -35962,7 +35985,7 @@ function useChat({
|
|
|
35962
35985
|
currentTextSegment = "";
|
|
35963
35986
|
}
|
|
35964
35987
|
const seg = segment;
|
|
35965
|
-
const proposalId = _optionalChain([seg, 'access',
|
|
35988
|
+
const proposalId = _optionalChain([seg, 'access', _918 => _918.data, 'optionalAccess', _919 => _919.requestId]);
|
|
35966
35989
|
const updateApprovalMessage = (transform) => {
|
|
35967
35990
|
setMessages((prev) => {
|
|
35968
35991
|
for (let i = prev.length - 1; i >= 0; i--) {
|
|
@@ -35971,7 +35994,7 @@ function useChat({
|
|
|
35971
35994
|
if (!Array.isArray(m.content)) continue;
|
|
35972
35995
|
const segments = m.content;
|
|
35973
35996
|
const hasMatch = segments.some(
|
|
35974
|
-
(s) => s.type === "approval_request" && _optionalChain([s, 'access',
|
|
35997
|
+
(s) => s.type === "approval_request" && _optionalChain([s, 'access', _920 => _920.data, 'optionalAccess', _921 => _921.requestId]) === proposalId
|
|
35975
35998
|
);
|
|
35976
35999
|
if (!hasMatch) continue;
|
|
35977
36000
|
const next = [...prev];
|
|
@@ -36013,11 +36036,11 @@ function useChat({
|
|
|
36013
36036
|
if (!Array.isArray(m.content)) continue;
|
|
36014
36037
|
const segments = m.content;
|
|
36015
36038
|
const hasMatch = segments.some(
|
|
36016
|
-
(s) => s.type === "approval_request" && _optionalChain([s, 'access',
|
|
36039
|
+
(s) => s.type === "approval_request" && _optionalChain([s, 'access', _922 => _922.data, 'optionalAccess', _923 => _923.requestId]) === decision.proposalId
|
|
36017
36040
|
);
|
|
36018
36041
|
if (!hasMatch) continue;
|
|
36019
36042
|
const flipped = segments.map(
|
|
36020
|
-
(s) => s.type === "approval_request" && _optionalChain([s, 'access',
|
|
36043
|
+
(s) => s.type === "approval_request" && _optionalChain([s, 'access', _924 => _924.data, 'optionalAccess', _925 => _925.requestId]) === decision.proposalId ? { ...s, status: decision.action } : s
|
|
36021
36044
|
);
|
|
36022
36045
|
const next = [...prev];
|
|
36023
36046
|
next[i] = { ...m, content: flipped };
|
|
@@ -36179,8 +36202,8 @@ function createDocStreamFn(source, endpoints, messagesRef, sourcesMapRef, refsMa
|
|
|
36179
36202
|
})),
|
|
36180
36203
|
{ role: "user", content: message2 }
|
|
36181
36204
|
];
|
|
36182
|
-
const targetPath = _optionalChain([extra, 'optionalAccess',
|
|
36183
|
-
const requestBody = _optionalChain([extra, 'optionalAccess',
|
|
36205
|
+
const targetPath = _optionalChain([extra, 'optionalAccess', _926 => _926.approvalAction]) ? endpoints.approvalToolUrl : endpoints.chatStreamUrl;
|
|
36206
|
+
const requestBody = _optionalChain([extra, 'optionalAccess', _927 => _927.approvalAction]) ? {
|
|
36184
36207
|
proposal_id: extra.approvalAction.proposalId,
|
|
36185
36208
|
action: extra.approvalAction.action,
|
|
36186
36209
|
messages: currentMessages.filter((m) => (m.role === "user" || m.role === "assistant") && !m.hidden).map((m) => ({
|
|
@@ -36189,8 +36212,8 @@ function createDocStreamFn(source, endpoints, messagesRef, sourcesMapRef, refsMa
|
|
|
36189
36212
|
}))
|
|
36190
36213
|
} : {
|
|
36191
36214
|
messages: apiMessages,
|
|
36192
|
-
..._optionalChain([extra, 'optionalAccess',
|
|
36193
|
-
..._optionalChain([extra, 'optionalAccess',
|
|
36215
|
+
..._optionalChain([extra, 'optionalAccess', _928 => _928.commandOverride]) ? { commandOverride: extra.commandOverride } : {},
|
|
36216
|
+
..._optionalChain([extra, 'optionalAccess', _929 => _929.pendingAttachments]) && extra.pendingAttachments.length > 0 ? { pendingAttachments: extra.pendingAttachments } : {}
|
|
36194
36217
|
};
|
|
36195
36218
|
const response = await _chunkZSUNQJROcjs.embedAuthedFetch.call(void 0, targetPath, {
|
|
36196
36219
|
method: "POST",
|
|
@@ -36200,7 +36223,7 @@ function createDocStreamFn(source, endpoints, messagesRef, sourcesMapRef, refsMa
|
|
|
36200
36223
|
if (!response.ok) {
|
|
36201
36224
|
throw new Error(`Chat request failed: ${response.status}`);
|
|
36202
36225
|
}
|
|
36203
|
-
const reader = _optionalChain([response, 'access',
|
|
36226
|
+
const reader = _optionalChain([response, 'access', _930 => _930.body, 'optionalAccess', _931 => _931.getReader, 'call', _932 => _932()]);
|
|
36204
36227
|
if (!reader) throw new Error("No response body");
|
|
36205
36228
|
const decoder = new TextDecoder();
|
|
36206
36229
|
let buffer = "";
|
|
@@ -36283,7 +36306,7 @@ function createDocStreamFn(source, endpoints, messagesRef, sourcesMapRef, refsMa
|
|
|
36283
36306
|
const toolName = typeof meta.tool_name === "string" ? meta.tool_name : void 0;
|
|
36284
36307
|
const result = _nullishCoalesce(meta.result, () => ( null));
|
|
36285
36308
|
const card = _nullishCoalesce(meta.card, () => ( null));
|
|
36286
|
-
if (_optionalChain([card, 'optionalAccess',
|
|
36309
|
+
if (_optionalChain([card, 'optionalAccess', _933 => _933.ref, 'optionalAccess', _934 => _934.id]) && _optionalChain([card, 'optionalAccess', _935 => _935.type])) {
|
|
36287
36310
|
const existing = _nullishCoalesce(refsMapRef.current.get(sendIdx), () => ( {}));
|
|
36288
36311
|
const key = buildChatRefKey(card.type, card.ref.id);
|
|
36289
36312
|
refsMapRef.current.set(sendIdx, { ...existing, [key]: card.ref });
|
|
@@ -36296,8 +36319,8 @@ function createDocStreamFn(source, endpoints, messagesRef, sourcesMapRef, refsMa
|
|
|
36296
36319
|
willAutoContinue: meta.willAutoContinue === true,
|
|
36297
36320
|
...toolName ? { toolName } : {},
|
|
36298
36321
|
...result ? { result } : {},
|
|
36299
|
-
..._optionalChain([card, 'optionalAccess',
|
|
36300
|
-
..._optionalChain([card, 'optionalAccess',
|
|
36322
|
+
..._optionalChain([card, 'optionalAccess', _936 => _936.marker]) ? { marker: card.marker } : {},
|
|
36323
|
+
..._optionalChain([card, 'optionalAccess', _937 => _937.ref]) ? { cardRef: card.ref } : {},
|
|
36301
36324
|
...typeof meta.receiptText === "string" ? { receiptText: meta.receiptText } : {},
|
|
36302
36325
|
proposalId: typeof meta.proposalId === "string" ? meta.proposalId : void 0
|
|
36303
36326
|
};
|
|
@@ -36416,7 +36439,7 @@ var DEFAULT_CHAT_SOURCE = "embed";
|
|
|
36416
36439
|
var chatStorageKey = (source) => {
|
|
36417
36440
|
const base = `mingo-chat-${source}-v${CHAT_STORAGE_VERSION}`;
|
|
36418
36441
|
const auth = _chunkZSUNQJROcjs.getEmbedProxyAuth.call(void 0, );
|
|
36419
|
-
if (_optionalChain([auth, 'optionalAccess',
|
|
36442
|
+
if (_optionalChain([auth, 'optionalAccess', _938 => _938.email])) {
|
|
36420
36443
|
return `${base}-u-${encodeURIComponent(auth.email.toLowerCase())}`;
|
|
36421
36444
|
}
|
|
36422
36445
|
return base;
|
|
@@ -36471,7 +36494,7 @@ function useSseChatAdapter(options, runtimeOptions = {}) {
|
|
|
36471
36494
|
const { active = true } = runtimeOptions;
|
|
36472
36495
|
const runtime = _chunkPC7YOZ4Icjs.useRequiredChatRuntime.call(void 0, );
|
|
36473
36496
|
const source = runtime.source || DEFAULT_CHAT_SOURCE;
|
|
36474
|
-
const tableIdForDocumentType = _nullishCoalesce(_optionalChain([options, 'optionalAccess',
|
|
36497
|
+
const tableIdForDocumentType = _nullishCoalesce(_optionalChain([options, 'optionalAccess', _939 => _939.tableIdForDocumentType]), () => ( _chunkLH7R56RRcjs.defaultTableIdForDocumentType));
|
|
36475
36498
|
const persistedRef = _react.useRef.call(void 0, null);
|
|
36476
36499
|
if (persistedRef.current === null) {
|
|
36477
36500
|
pruneStaleChatStorage(source);
|
|
@@ -36576,7 +36599,7 @@ function useSseChatAdapter(options, runtimeOptions = {}) {
|
|
|
36576
36599
|
const lookupIdx = sendIdx >= 0 ? sendIdx : 0;
|
|
36577
36600
|
sources = sourcesMapRef.current.get(lookupIdx);
|
|
36578
36601
|
chatRefs = _nullishCoalesce(m.chatRefs, () => ( refsMapRef.current.get(lookupIdx)));
|
|
36579
|
-
scrollAnchor = _nullishCoalesce(_optionalChain([metaMapRef, 'access',
|
|
36602
|
+
scrollAnchor = _nullishCoalesce(_optionalChain([metaMapRef, 'access', _940 => _940.current, 'access', _941 => _941.get, 'call', _942 => _942(lookupIdx), 'optionalAccess', _943 => _943.scrollAnchor]), () => ( void 0));
|
|
36580
36603
|
}
|
|
36581
36604
|
return {
|
|
36582
36605
|
id: m.id,
|
|
@@ -36624,7 +36647,7 @@ function useSseChatAdapter(options, runtimeOptions = {}) {
|
|
|
36624
36647
|
);
|
|
36625
36648
|
return;
|
|
36626
36649
|
}
|
|
36627
|
-
const refSlug = typeof _optionalChain([reference, 'access',
|
|
36650
|
+
const refSlug = typeof _optionalChain([reference, 'access', _944 => _944.metadata, 'optionalAccess', _945 => _945.slug]) === "string" && reference.metadata.slug.length > 0 ? reference.metadata.slug : "";
|
|
36628
36651
|
const queryValue = refSlug || sanitizeTitleForChat(reference.title) || reference.id;
|
|
36629
36652
|
const escaped = queryValue.replace(/\\/g, "\\\\").replace(/"/g, '\\"');
|
|
36630
36653
|
const text = `/${cmdId} display "${escaped}"`;
|
|
@@ -36696,18 +36719,18 @@ function useSseChatAdapter(options, runtimeOptions = {}) {
|
|
|
36696
36719
|
clearMessages,
|
|
36697
36720
|
streamingPhase,
|
|
36698
36721
|
/** 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',
|
|
36722
|
+
currentProvider: _nullishCoalesce(_optionalChain([latestMeta, 'optionalAccess', _946 => _946.provider]), () => ( null)),
|
|
36723
|
+
currentModelLabel: _nullishCoalesce(_optionalChain([latestMeta, 'optionalAccess', _947 => _947.modelLabel]), () => ( null)),
|
|
36724
|
+
currentContextWindowMaxTokens: _nullishCoalesce(_optionalChain([latestMeta, 'optionalAccess', _948 => _948.contextWindowMaxTokens]), () => ( null)),
|
|
36702
36725
|
/** Input tokens (known after server's message_start frame; null until). */
|
|
36703
|
-
currentInputTokens: _nullishCoalesce(_optionalChain([latestMeta, 'optionalAccess',
|
|
36726
|
+
currentInputTokens: _nullishCoalesce(_optionalChain([latestMeta, 'optionalAccess', _949 => _949.inputTokens]), () => ( null)),
|
|
36704
36727
|
/** Output tokens (known only after server's trailing usage frame). */
|
|
36705
|
-
currentOutputTokens: _nullishCoalesce(_optionalChain([latestMeta, 'optionalAccess',
|
|
36728
|
+
currentOutputTokens: _nullishCoalesce(_optionalChain([latestMeta, 'optionalAccess', _950 => _950.outputTokens]), () => ( null)),
|
|
36706
36729
|
/** Cache hit % (read / total-input × 100). null during streaming. */
|
|
36707
|
-
currentCacheHitRatePct: _nullishCoalesce(_optionalChain([latestMeta, 'optionalAccess',
|
|
36730
|
+
currentCacheHitRatePct: _nullishCoalesce(_optionalChain([latestMeta, 'optionalAccess', _951 => _951.cacheHitRatePct]), () => ( null)),
|
|
36708
36731
|
/** Cross-call usage breakdown (Haiku rewriter/classifier/summarizer
|
|
36709
36732
|
* token counts). null until the trailing usage frame lands. */
|
|
36710
|
-
currentUsageBreakdown: _nullishCoalesce(_optionalChain([latestMeta, 'optionalAccess',
|
|
36733
|
+
currentUsageBreakdown: _nullishCoalesce(_optionalChain([latestMeta, 'optionalAccess', _952 => _952.breakdown]), () => ( null)),
|
|
36711
36734
|
// ─── Dialog management — stubs for v1 ────────────────────────────────
|
|
36712
36735
|
// Guide mode currently keeps its history in `localStorage` opaquely
|
|
36713
36736
|
// under the hood (`runtime.source` namespaced key). Surfacing that
|
|
@@ -36765,15 +36788,15 @@ var noopRejectRequest = async (_id, _reason) => {
|
|
|
36765
36788
|
|
|
36766
36789
|
// src/components/chat/utils/process-historical-messages.ts
|
|
36767
36790
|
function getOwnerDisplayName(owner) {
|
|
36768
|
-
if (_optionalChain([owner, 'optionalAccess',
|
|
36791
|
+
if (_optionalChain([owner, 'optionalAccess', _953 => _953.type]) === OWNER_TYPE.ADMIN && owner.user) {
|
|
36769
36792
|
const { firstName, lastName } = owner.user;
|
|
36770
36793
|
const name = [firstName, lastName].filter(Boolean).join(" ");
|
|
36771
36794
|
if (name) return name;
|
|
36772
36795
|
}
|
|
36773
|
-
return _optionalChain([owner, 'optionalAccess',
|
|
36796
|
+
return _optionalChain([owner, 'optionalAccess', _954 => _954.type]) === OWNER_TYPE.ADMIN ? "Admin" : "You";
|
|
36774
36797
|
}
|
|
36775
36798
|
function getOwnerAvatar(owner) {
|
|
36776
|
-
return _nullishCoalesce(_optionalChain([owner, 'optionalAccess',
|
|
36799
|
+
return _nullishCoalesce(_optionalChain([owner, 'optionalAccess', _955 => _955.user, 'optionalAccess', _956 => _956.image, 'optionalAccess', _957 => _957.imageUrl]), () => ( void 0));
|
|
36777
36800
|
}
|
|
36778
36801
|
function pushStandaloneMessages(processedMessages, msg, messageDataArray) {
|
|
36779
36802
|
messageDataArray.forEach((data) => {
|
|
@@ -36836,10 +36859,10 @@ function processHistoricalMessages(messages, options = {}) {
|
|
|
36836
36859
|
pushStandaloneMessages(processedMessages, msg, messageDataArray);
|
|
36837
36860
|
return;
|
|
36838
36861
|
}
|
|
36839
|
-
const isUserMessage = _optionalChain([msg, 'access',
|
|
36862
|
+
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
36863
|
if (isUserMessage) {
|
|
36841
36864
|
flushAssistantMessage();
|
|
36842
|
-
const userAuthorType = _optionalChain([msg, 'access',
|
|
36865
|
+
const userAuthorType = _optionalChain([msg, 'access', _962 => _962.owner, 'optionalAccess', _963 => _963.type]) === OWNER_TYPE.ADMIN ? "admin" : "user";
|
|
36843
36866
|
messageDataArray.forEach((data) => {
|
|
36844
36867
|
if (data.type === MESSAGE_TYPE.TEXT && "text" in data && data.text) {
|
|
36845
36868
|
processedMessages.push({
|
|
@@ -36864,7 +36887,7 @@ function processHistoricalMessages(messages, options = {}) {
|
|
|
36864
36887
|
});
|
|
36865
36888
|
const nextMsg = messages[index + 1];
|
|
36866
36889
|
const isLastMessage = index === messages.length - 1;
|
|
36867
|
-
const nextIsFromUser = nextMsg && (_optionalChain([nextMsg, 'access',
|
|
36890
|
+
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
36891
|
if (isLastMessage || nextIsFromUser) {
|
|
36869
36892
|
flushAssistantMessage();
|
|
36870
36893
|
}
|
|
@@ -36974,7 +36997,7 @@ function processMessageData(data, accumulator, approvalStatuses, options = {}, e
|
|
|
36974
36997
|
}
|
|
36975
36998
|
}
|
|
36976
36999
|
} else {
|
|
36977
|
-
_optionalChain([escalatedApprovals, 'optionalAccess',
|
|
37000
|
+
_optionalChain([escalatedApprovals, 'optionalAccess', _968 => _968.set, 'call', _969 => _969(data.approvalRequestId, {
|
|
36978
37001
|
command: data.command || "",
|
|
36979
37002
|
explanation: data.explanation,
|
|
36980
37003
|
approvalType,
|
|
@@ -36987,8 +37010,8 @@ function processMessageData(data, accumulator, approvalStatuses, options = {}, e
|
|
|
36987
37010
|
if ("approvalRequestId" in data && data.approvalRequestId) {
|
|
36988
37011
|
const existingStatus = approvalStatuses[data.approvalRequestId];
|
|
36989
37012
|
const status = existingStatus || (data.approved ? "approved" : "rejected");
|
|
36990
|
-
const escalatedData = _optionalChain([escalatedApprovals, 'optionalAccess',
|
|
36991
|
-
if (_optionalChain([escalatedData, 'optionalAccess',
|
|
37013
|
+
const escalatedData = _optionalChain([escalatedApprovals, 'optionalAccess', _970 => _970.get, 'call', _971 => _971(data.approvalRequestId)]);
|
|
37014
|
+
if (_optionalChain([escalatedData, 'optionalAccess', _972 => _972.toolCalls]) && escalatedData.toolCalls.length > 0) {
|
|
36992
37015
|
if (batchApprovalsEnabled) {
|
|
36993
37016
|
accumulator.addApprovalBatch(
|
|
36994
37017
|
data.approvalRequestId,
|
|
@@ -37008,7 +37031,7 @@ function processMessageData(data, accumulator, approvalStatuses, options = {}, e
|
|
|
37008
37031
|
);
|
|
37009
37032
|
}
|
|
37010
37033
|
}
|
|
37011
|
-
_optionalChain([escalatedApprovals, 'optionalAccess',
|
|
37034
|
+
_optionalChain([escalatedApprovals, 'optionalAccess', _973 => _973.delete, 'call', _974 => _974(data.approvalRequestId)]);
|
|
37012
37035
|
break;
|
|
37013
37036
|
}
|
|
37014
37037
|
if (escalatedData) {
|
|
@@ -37017,7 +37040,7 @@ function processMessageData(data, accumulator, approvalStatuses, options = {}, e
|
|
|
37017
37040
|
explanation: escalatedData.explanation,
|
|
37018
37041
|
approvalType: escalatedData.approvalType
|
|
37019
37042
|
});
|
|
37020
|
-
_optionalChain([escalatedApprovals, 'optionalAccess',
|
|
37043
|
+
_optionalChain([escalatedApprovals, 'optionalAccess', _975 => _975.delete, 'call', _976 => _976(data.approvalRequestId)]);
|
|
37021
37044
|
}
|
|
37022
37045
|
const before = accumulator.getSegments();
|
|
37023
37046
|
const after = accumulator.updateApprovalStatus(data.approvalRequestId, status);
|
|
@@ -37033,9 +37056,9 @@ function processMessageData(data, accumulator, approvalStatuses, options = {}, e
|
|
|
37033
37056
|
case MESSAGE_TYPE.ERROR:
|
|
37034
37057
|
if ("error" in data) {
|
|
37035
37058
|
let message2;
|
|
37036
|
-
if ("details" in data && _optionalChain([data, 'optionalAccess',
|
|
37059
|
+
if ("details" in data && _optionalChain([data, 'optionalAccess', _977 => _977.details])) {
|
|
37037
37060
|
try {
|
|
37038
|
-
message2 = _optionalChain([JSON, 'access',
|
|
37061
|
+
message2 = _optionalChain([JSON, 'access', _978 => _978.parse, 'call', _979 => _979(data.details), 'optionalAccess', _980 => _980.error, 'optionalAccess', _981 => _981.message]);
|
|
37039
37062
|
} catch (e42) {
|
|
37040
37063
|
message2 = data.details;
|
|
37041
37064
|
}
|
|
@@ -37118,10 +37141,10 @@ function processHistoricalMessagesWithErrors(messages, options = {}) {
|
|
|
37118
37141
|
pushStandaloneMessages(processedMessages, msg, messageDataArray);
|
|
37119
37142
|
return;
|
|
37120
37143
|
}
|
|
37121
|
-
const isUserMessage = _optionalChain([msg, 'access',
|
|
37144
|
+
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
37145
|
if (isUserMessage) {
|
|
37123
37146
|
flushAssistantMessage();
|
|
37124
|
-
const userAuthorType = _optionalChain([msg, 'access',
|
|
37147
|
+
const userAuthorType = _optionalChain([msg, 'access', _986 => _986.owner, 'optionalAccess', _987 => _987.type]) === OWNER_TYPE.ADMIN ? "admin" : "user";
|
|
37125
37148
|
messageDataArray.forEach((data) => {
|
|
37126
37149
|
if (data.type === MESSAGE_TYPE.TEXT && "text" in data && data.text) {
|
|
37127
37150
|
processedMessages.push({
|
|
@@ -37146,7 +37169,7 @@ function processHistoricalMessagesWithErrors(messages, options = {}) {
|
|
|
37146
37169
|
});
|
|
37147
37170
|
const nextMsg = messages[index + 1];
|
|
37148
37171
|
const isLastMessage = index === messages.length - 1;
|
|
37149
|
-
const nextIsFromUser = nextMsg && (_optionalChain([nextMsg, 'access',
|
|
37172
|
+
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
37173
|
if (isLastMessage || nextIsFromUser) {
|
|
37151
37174
|
flushAssistantMessage();
|
|
37152
37175
|
}
|
|
@@ -37484,7 +37507,7 @@ function useNatsChatAdapter(config, options = {}) {
|
|
|
37484
37507
|
}, [active, fetchDialogs, loadDialogsPage]);
|
|
37485
37508
|
const sendMessage = _react.useCallback.call(void 0,
|
|
37486
37509
|
async (text, sendOptions) => {
|
|
37487
|
-
const hidden = _nullishCoalesce(_optionalChain([sendOptions, 'optionalAccess',
|
|
37510
|
+
const hidden = _nullishCoalesce(_optionalChain([sendOptions, 'optionalAccess', _992 => _992.hidden]), () => ( false));
|
|
37488
37511
|
setMessages((prev) => [
|
|
37489
37512
|
...prev,
|
|
37490
37513
|
{
|
|
@@ -37648,11 +37671,11 @@ function useNatsChatAdapter(config, options = {}) {
|
|
|
37648
37671
|
// Tokens: live `token_usage` frame / dialog snapshot (`dialogTokenUsage`).
|
|
37649
37672
|
// contextWindow uses the dialog's `contextSize` (the "X / Y" denominator,
|
|
37650
37673
|
// 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',
|
|
37674
|
+
currentProvider: _nullishCoalesce(_nullishCoalesce(_optionalChain([liveModel, 'optionalAccess', _993 => _993.provider]), () => ( modelProvider)), () => ( null)),
|
|
37675
|
+
currentModelLabel: _nullishCoalesce(_nullishCoalesce(_optionalChain([liveModel, 'optionalAccess', _994 => _994.modelLabel]), () => ( modelLabel)), () => ( null)),
|
|
37676
|
+
currentContextWindowMaxTokens: _nullishCoalesce(_nullishCoalesce(_optionalChain([dialogTokenUsage, 'optionalAccess', _995 => _995.contextSize]), () => ( _optionalChain([liveModel, 'optionalAccess', _996 => _996.contextWindowMaxTokens]))), () => ( null)),
|
|
37677
|
+
currentInputTokens: _nullishCoalesce(_optionalChain([dialogTokenUsage, 'optionalAccess', _997 => _997.inputTokensSize]), () => ( null)),
|
|
37678
|
+
currentOutputTokens: _nullishCoalesce(_optionalChain([dialogTokenUsage, 'optionalAccess', _998 => _998.outputTokensSize]), () => ( null)),
|
|
37656
37679
|
currentCacheHitRatePct: null,
|
|
37657
37680
|
currentUsageBreakdown: null,
|
|
37658
37681
|
// Dialog management
|
|
@@ -37900,7 +37923,7 @@ function extractIncompleteMessageState(lastMessage) {
|
|
|
37900
37923
|
break;
|
|
37901
37924
|
case "approval_batch": {
|
|
37902
37925
|
const allDone = !!segment.data.executions && segment.data.toolCalls.every(
|
|
37903
|
-
(c) => _optionalChain([segment, 'access',
|
|
37926
|
+
(c) => _optionalChain([segment, 'access', _999 => _999.data, 'access', _1000 => _1000.executions, 'optionalAccess', _1001 => _1001[c.toolExecutionRequestId], 'optionalAccess', _1002 => _1002.status]) === "done"
|
|
37904
37927
|
);
|
|
37905
37928
|
if (segment.status !== "rejected" && !allDone) {
|
|
37906
37929
|
hasIncompleteState = true;
|
|
@@ -37929,6 +37952,15 @@ var SYNTHETIC_REALTIME_ID_PREFIXES = ["assistant-", "user-", "error-"];
|
|
|
37929
37952
|
function isSyntheticRealtimeId(id) {
|
|
37930
37953
|
return SYNTHETIC_REALTIME_ID_PREFIXES.some((prefix) => id.startsWith(prefix));
|
|
37931
37954
|
}
|
|
37955
|
+
function assistantAnswerText(content) {
|
|
37956
|
+
if (typeof content === "string") return content.trim();
|
|
37957
|
+
if (!Array.isArray(content)) return "";
|
|
37958
|
+
const parts = [];
|
|
37959
|
+
for (const seg of content) {
|
|
37960
|
+
if (seg.type === "text") parts.push(seg.text);
|
|
37961
|
+
}
|
|
37962
|
+
return parts.join("\n").trim();
|
|
37963
|
+
}
|
|
37932
37964
|
function flattenMessagePagesChronological(pages) {
|
|
37933
37965
|
if (!pages) return [];
|
|
37934
37966
|
return [...pages].reverse().flatMap((page) => [...page.messages].reverse());
|
|
@@ -37959,20 +37991,20 @@ function mergeHistoryWithRealtime(input) {
|
|
|
37959
37991
|
const seqCoverageKnown = realtimeSeenStreamSeq > 0 && historyMaxStreamSeq > 0;
|
|
37960
37992
|
const historyCoversRealtime = seqCoverageKnown ? historyMaxStreamSeq >= realtimeSeenStreamSeq : null;
|
|
37961
37993
|
const trailing = processedHistory[processedHistory.length - 1];
|
|
37962
|
-
const historyTrailingAssistant = _optionalChain([trailing, 'optionalAccess',
|
|
37963
|
-
const historyBatchId = historyTrailingAssistant && Array.isArray(historyTrailingAssistant.content) ? _nullishCoalesce(_optionalChain([historyTrailingAssistant, 'access',
|
|
37994
|
+
const historyTrailingAssistant = _optionalChain([trailing, 'optionalAccess', _1003 => _1003.role]) === "assistant" ? trailing : null;
|
|
37995
|
+
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
37996
|
let processedToUse = processedHistory;
|
|
37965
37997
|
const pinnedSyntheticIds = /* @__PURE__ */ new Set();
|
|
37966
37998
|
const droppedSyntheticIds = /* @__PURE__ */ new Set();
|
|
37967
37999
|
if (historyBatchId) {
|
|
37968
38000
|
const batchTwins = existingMessages.filter(
|
|
37969
38001
|
(m) => m.role === "assistant" && Array.isArray(m.content) && m.content.some(
|
|
37970
|
-
(s) => s.type === "approval_batch" && _optionalChain([s, 'access',
|
|
38002
|
+
(s) => s.type === "approval_batch" && _optionalChain([s, 'access', _1009 => _1009.data, 'optionalAccess', _1010 => _1010.approvalRequestId]) === historyBatchId
|
|
37971
38003
|
)
|
|
37972
38004
|
);
|
|
37973
38005
|
const existingWithSameBatch = _nullishCoalesce(batchTwins.find((m) => m.id === streamingMessageId), () => ( batchTwins[batchTwins.length - 1]));
|
|
37974
38006
|
if (existingWithSameBatch && Array.isArray(existingWithSameBatch.content)) {
|
|
37975
|
-
const histSize = Array.isArray(_optionalChain([historyTrailingAssistant, 'optionalAccess',
|
|
38007
|
+
const histSize = Array.isArray(_optionalChain([historyTrailingAssistant, 'optionalAccess', _1011 => _1011.content])) ? historyTrailingAssistant.content.length : 0;
|
|
37976
38008
|
const realtimeSize = existingWithSameBatch.content.length;
|
|
37977
38009
|
if (existingWithSameBatch.id === streamingMessageId || realtimeSize > histSize) {
|
|
37978
38010
|
processedToUse = processedHistory.slice(0, -1);
|
|
@@ -37982,17 +38014,22 @@ function mergeHistoryWithRealtime(input) {
|
|
|
37982
38014
|
}
|
|
37983
38015
|
}
|
|
37984
38016
|
}
|
|
38017
|
+
const lastProcessed = processedToUse[processedToUse.length - 1];
|
|
38018
|
+
const trailingAssistantText = lastProcessed && lastProcessed.role === "assistant" ? assistantAnswerText(lastProcessed.content) : "";
|
|
37985
38019
|
const realtimeMessages = existingMessages.filter((m) => {
|
|
37986
38020
|
if (pinnedSyntheticIds.has(m.id)) return true;
|
|
37987
38021
|
if (droppedSyntheticIds.has(m.id)) return false;
|
|
37988
38022
|
if (processedIds.has(m.id)) return false;
|
|
37989
|
-
if (_optionalChain([rawHistoryIds, 'optionalAccess',
|
|
38023
|
+
if (_optionalChain([rawHistoryIds, 'optionalAccess', _1012 => _1012.has, 'call', _1013 => _1013(m.id)])) return false;
|
|
37990
38024
|
if (m.role === "user" && m.id.startsWith("optimistic-") && typeof m.content === "string") {
|
|
37991
|
-
const canBeInSnapshot = (_nullishCoalesce(_optionalChain([m, 'access',
|
|
38025
|
+
const canBeInSnapshot = (_nullishCoalesce(_optionalChain([m, 'access', _1014 => _1014.timestamp, 'optionalAccess', _1015 => _1015.getTime, 'call', _1016 => _1016()]), () => ( 0))) <= historyFetchedAt;
|
|
37992
38026
|
return !(canBeInSnapshot && processedToUse.some((pm) => pm.role === "user" && pm.content === m.content));
|
|
37993
38027
|
}
|
|
37994
38028
|
if (isSyntheticRealtimeId(m.id) && m.id !== streamingMessageId) {
|
|
37995
|
-
|
|
38029
|
+
if (m.role === "assistant" && trailingAssistantText && assistantAnswerText(m.content) === trailingAssistantText) {
|
|
38030
|
+
return false;
|
|
38031
|
+
}
|
|
38032
|
+
const covered = historyCoversRealtime !== null ? historyCoversRealtime : (_nullishCoalesce(_optionalChain([m, 'access', _1017 => _1017.timestamp, 'optionalAccess', _1018 => _1018.getTime, 'call', _1019 => _1019()]), () => ( 0))) <= historyFetchedAt;
|
|
37996
38033
|
if (covered) return false;
|
|
37997
38034
|
}
|
|
37998
38035
|
return true;
|
|
@@ -38212,7 +38249,7 @@ function useChatDialogManager({
|
|
|
38212
38249
|
const handleConfirmRestore = _react.useCallback.call(void 0, async () => {
|
|
38213
38250
|
if (restoreTarget) {
|
|
38214
38251
|
try {
|
|
38215
|
-
await _optionalChain([unarchiveDialog, 'optionalCall',
|
|
38252
|
+
await _optionalChain([unarchiveDialog, 'optionalCall', _1020 => _1020(restoreTarget.id)]);
|
|
38216
38253
|
} catch (err) {
|
|
38217
38254
|
console.error("[useChatDialogManager] unarchive failed:", err);
|
|
38218
38255
|
return;
|
|
@@ -38312,7 +38349,7 @@ function SourceChip({
|
|
|
38312
38349
|
}) {
|
|
38313
38350
|
const runtime = _chunkPC7YOZ4Icjs.useRequiredChatRuntime.call(void 0, );
|
|
38314
38351
|
const router = _chunkG7UE6RKVcjs.useRouter.call(void 0, );
|
|
38315
|
-
const cta =
|
|
38352
|
+
const cta = _chunkLH7R56RRcjs.resolveSourceRowCTA.call(void 0,
|
|
38316
38353
|
{
|
|
38317
38354
|
sourceRepo: src.sourceRepo,
|
|
38318
38355
|
documentType: src.documentType,
|
|
@@ -38322,15 +38359,15 @@ function SourceChip({
|
|
|
38322
38359
|
targetPlatform: _nullishCoalesce(src.targetPlatform, () => ( null)),
|
|
38323
38360
|
path: src.path
|
|
38324
38361
|
},
|
|
38325
|
-
|
|
38362
|
+
_chunkLH7R56RRcjs.sourceRowCtxFromRuntime.call(void 0, runtime, { baseRoute, chipBasePlatform })
|
|
38326
38363
|
);
|
|
38327
38364
|
const Icon2 = cta.icon;
|
|
38328
38365
|
const icon = /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Icon2, { className: "h-3.5 w-3.5" });
|
|
38329
38366
|
const chipClass = chatChipClass({ tone: "secondary" });
|
|
38330
|
-
const decideTab = (href, targetPlatform) =>
|
|
38367
|
+
const decideTab = (href, targetPlatform) => _chunkLH7R56RRcjs.computeIsNewTab.call(void 0, runtime, href, targetPlatform);
|
|
38331
38368
|
if (src.items && src.items.length > 0) {
|
|
38332
38369
|
const dropdownItems = src.items.map((item) => {
|
|
38333
|
-
const itemCta =
|
|
38370
|
+
const itemCta = _chunkLH7R56RRcjs.resolveSourceRowCTA.call(void 0,
|
|
38334
38371
|
{
|
|
38335
38372
|
sourceRepo: src.sourceRepo,
|
|
38336
38373
|
documentType: item.documentType,
|
|
@@ -38340,7 +38377,7 @@ function SourceChip({
|
|
|
38340
38377
|
targetPlatform: _nullishCoalesce(item.targetPlatform, () => ( null)),
|
|
38341
38378
|
path: item.path
|
|
38342
38379
|
},
|
|
38343
|
-
|
|
38380
|
+
_chunkLH7R56RRcjs.sourceRowCtxFromRuntime.call(void 0, runtime, { baseRoute, chipBasePlatform })
|
|
38344
38381
|
);
|
|
38345
38382
|
const ItemIcon = itemCta.icon;
|
|
38346
38383
|
return {
|
|
@@ -38409,14 +38446,14 @@ function SourceChip({
|
|
|
38409
38446
|
if (handled && !isNewTab && onClose) onClose();
|
|
38410
38447
|
};
|
|
38411
38448
|
if (cta.href && !!src.externalUrl) {
|
|
38412
|
-
const resolvedHref =
|
|
38449
|
+
const resolvedHref = _chunkLH7R56RRcjs.resolveHrefForRuntime.call(void 0, cta.href, runtime);
|
|
38413
38450
|
const isNewTab = decideTab(resolvedHref, _nullishCoalesce(cta.targetPlatform, () => ( null)));
|
|
38414
38451
|
return wrapChip(
|
|
38415
38452
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
38416
38453
|
"a",
|
|
38417
38454
|
{
|
|
38418
38455
|
href: resolvedHref,
|
|
38419
|
-
...
|
|
38456
|
+
..._chunkLH7R56RRcjs.newTabAnchorAttrs.call(void 0, isNewTab),
|
|
38420
38457
|
onClick: buildClickHandler(resolvedHref, null, _nullishCoalesce(cta.targetPlatform, () => ( null)), isNewTab),
|
|
38421
38458
|
className: chipClass,
|
|
38422
38459
|
children: chipBody(src.name)
|
|
@@ -38425,14 +38462,14 @@ function SourceChip({
|
|
|
38425
38462
|
);
|
|
38426
38463
|
}
|
|
38427
38464
|
if (cta.href) {
|
|
38428
|
-
const resolvedHref =
|
|
38465
|
+
const resolvedHref = _chunkLH7R56RRcjs.resolveHrefForRuntime.call(void 0, cta.href, runtime);
|
|
38429
38466
|
const isNewTab = decideTab(resolvedHref, _nullishCoalesce(cta.targetPlatform, () => ( null)));
|
|
38430
38467
|
return wrapChip(
|
|
38431
38468
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
38432
38469
|
"a",
|
|
38433
38470
|
{
|
|
38434
38471
|
href: resolvedHref,
|
|
38435
|
-
...
|
|
38472
|
+
..._chunkLH7R56RRcjs.newTabAnchorAttrs.call(void 0, isNewTab),
|
|
38436
38473
|
onClick: buildClickHandler(resolvedHref, src.path, _nullishCoalesce(cta.targetPlatform, () => ( null)), isNewTab),
|
|
38437
38474
|
className: chipClass,
|
|
38438
38475
|
title: displayName,
|
|
@@ -38559,7 +38596,7 @@ function EmbeddableChatInner({
|
|
|
38559
38596
|
}
|
|
38560
38597
|
}
|
|
38561
38598
|
}, [open, onOpenChange]);
|
|
38562
|
-
const [isOpen = false, setIsOpen] =
|
|
38599
|
+
const [isOpen = false, setIsOpen] = _chunkLH7R56RRcjs.useControllableState.call(void 0, {
|
|
38563
38600
|
prop: open,
|
|
38564
38601
|
defaultProp: _nullishCoalesce(defaultOpen, () => ( false)),
|
|
38565
38602
|
onChange: onOpenChange
|
|
@@ -38601,9 +38638,9 @@ function EmbeddableChatInner({
|
|
|
38601
38638
|
() => ({
|
|
38602
38639
|
fetchCommands: (prefix, signal) => fetchSlashCommands(prefix, signal, commandsUrl),
|
|
38603
38640
|
resolveSourceIcon: (sourceId) => {
|
|
38604
|
-
const iconName =
|
|
38641
|
+
const iconName = _chunkLH7R56RRcjs.getSourceIconName.call(void 0, sourceId);
|
|
38605
38642
|
if (!iconName) return void 0;
|
|
38606
|
-
return { Icon:
|
|
38643
|
+
return { Icon: _chunkLH7R56RRcjs.getIconComponent.call(void 0, iconName), label: sourceId };
|
|
38607
38644
|
},
|
|
38608
38645
|
onAction: (cmd, actionId) => {
|
|
38609
38646
|
dispatchSlashCommandAction(actionId, cmd.id, chatInputRef);
|
|
@@ -38611,7 +38648,7 @@ function EmbeddableChatInner({
|
|
|
38611
38648
|
}),
|
|
38612
38649
|
[commandsUrl]
|
|
38613
38650
|
);
|
|
38614
|
-
const userName = _optionalChain([identityUser, 'optionalAccess',
|
|
38651
|
+
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
38652
|
const effectiveModes = _react.useMemo.call(void 0, () => {
|
|
38616
38653
|
if (modes) return modes;
|
|
38617
38654
|
const guideOptions = tableIdForDocumentType ? { tableIdForDocumentType } : {};
|
|
@@ -38620,17 +38657,17 @@ function EmbeddableChatInner({
|
|
|
38620
38657
|
const mingoCaps = _react.useMemo.call(void 0, () => {
|
|
38621
38658
|
if (mingoState) {
|
|
38622
38659
|
return {
|
|
38623
|
-
canRename: _nullishCoalesce(_optionalChain([mingoDialogCapabilities, 'optionalAccess',
|
|
38624
|
-
canArchive: _nullishCoalesce(_optionalChain([mingoDialogCapabilities, 'optionalAccess',
|
|
38625
|
-
fetchArchivedDialogs: _optionalChain([mingoDialogCapabilities, 'optionalAccess',
|
|
38626
|
-
unarchiveDialog: _optionalChain([mingoDialogCapabilities, 'optionalAccess',
|
|
38660
|
+
canRename: _nullishCoalesce(_optionalChain([mingoDialogCapabilities, 'optionalAccess', _1030 => _1030.canRename]), () => ( false)),
|
|
38661
|
+
canArchive: _nullishCoalesce(_optionalChain([mingoDialogCapabilities, 'optionalAccess', _1031 => _1031.canArchive]), () => ( false)),
|
|
38662
|
+
fetchArchivedDialogs: _optionalChain([mingoDialogCapabilities, 'optionalAccess', _1032 => _1032.fetchArchivedDialogs]),
|
|
38663
|
+
unarchiveDialog: _optionalChain([mingoDialogCapabilities, 'optionalAccess', _1033 => _1033.unarchiveDialog])
|
|
38627
38664
|
};
|
|
38628
38665
|
}
|
|
38629
38666
|
return {
|
|
38630
|
-
canRename: !!_optionalChain([effectiveModes, 'access',
|
|
38631
|
-
canArchive: !!_optionalChain([effectiveModes, 'access',
|
|
38632
|
-
fetchArchivedDialogs: _optionalChain([effectiveModes, 'access',
|
|
38633
|
-
unarchiveDialog: _optionalChain([effectiveModes, 'access',
|
|
38667
|
+
canRename: !!_optionalChain([effectiveModes, 'access', _1034 => _1034.mingo, 'optionalAccess', _1035 => _1035.renameDialog]),
|
|
38668
|
+
canArchive: !!_optionalChain([effectiveModes, 'access', _1036 => _1036.mingo, 'optionalAccess', _1037 => _1037.archiveDialog]),
|
|
38669
|
+
fetchArchivedDialogs: _optionalChain([effectiveModes, 'access', _1038 => _1038.mingo, 'optionalAccess', _1039 => _1039.fetchArchivedDialogs]),
|
|
38670
|
+
unarchiveDialog: _optionalChain([effectiveModes, 'access', _1040 => _1040.mingo, 'optionalAccess', _1041 => _1041.unarchiveDialog])
|
|
38634
38671
|
};
|
|
38635
38672
|
}, [mingoState, mingoDialogCapabilities, effectiveModes]);
|
|
38636
38673
|
const hasMingoMode = !!effectiveModes.mingo || !!mingoState;
|
|
@@ -38642,7 +38679,7 @@ function EmbeddableChatInner({
|
|
|
38642
38679
|
if (controlledActiveMode === void 0) {
|
|
38643
38680
|
setUncontrolledActiveMode(next);
|
|
38644
38681
|
}
|
|
38645
|
-
_optionalChain([onActiveModeChange, 'optionalCall',
|
|
38682
|
+
_optionalChain([onActiveModeChange, 'optionalCall', _1042 => _1042(next)]);
|
|
38646
38683
|
},
|
|
38647
38684
|
[controlledActiveMode, onActiveModeChange]
|
|
38648
38685
|
);
|
|
@@ -38849,9 +38886,9 @@ function EmbeddableChatInner({
|
|
|
38849
38886
|
const lastAssistantMsg = [...rawMessages].reverse().find((m) => m.role === "assistant");
|
|
38850
38887
|
const lastSources = _react.useMemo.call(void 0, () => {
|
|
38851
38888
|
if (chatLoading) return void 0;
|
|
38852
|
-
const sources = _optionalChain([lastAssistantMsg, 'optionalAccess',
|
|
38889
|
+
const sources = _optionalChain([lastAssistantMsg, 'optionalAccess', _1043 => _1043.sources]);
|
|
38853
38890
|
if (!sources || sources.length === 0) return void 0;
|
|
38854
|
-
const content = _optionalChain([lastAssistantMsg, 'optionalAccess',
|
|
38891
|
+
const content = _optionalChain([lastAssistantMsg, 'optionalAccess', _1044 => _1044.content]) || "";
|
|
38855
38892
|
const citationOrder = [...content.matchAll(/\[(\d+)\]/g)].map(
|
|
38856
38893
|
(m) => parseInt(m[1], 10)
|
|
38857
38894
|
);
|
|
@@ -38898,7 +38935,7 @@ function EmbeddableChatInner({
|
|
|
38898
38935
|
ChatPanelHeader,
|
|
38899
38936
|
{
|
|
38900
38937
|
showBack: hasConversation || guideCanReturnToMingo,
|
|
38901
|
-
title: hasConversation ? _optionalChain([activeDialog, 'optionalAccess',
|
|
38938
|
+
title: hasConversation ? _optionalChain([activeDialog, 'optionalAccess', _1045 => _1045.title]) || "New Chat" : isGuideEmpty ? "Mingo Guide" : "Current Chats",
|
|
38902
38939
|
backAriaLabel: hasConversation ? isViewingArchived ? "Back to archive" : "Back" : "Back to Mingo",
|
|
38903
38940
|
isArchivedView: isViewingArchived,
|
|
38904
38941
|
onBack: hasConversation ? handleBack : () => handleActiveModeChange("mingo"),
|
|
@@ -39003,10 +39040,10 @@ function EmbeddableChatInner({
|
|
|
39003
39040
|
subtitle: _nullishCoalesce(emptyStateGreeting, () => ( void 0)),
|
|
39004
39041
|
...guideWelcome,
|
|
39005
39042
|
onQuickAction: (action) => {
|
|
39006
|
-
_optionalChain([chatInputRef, 'access',
|
|
39043
|
+
_optionalChain([chatInputRef, 'access', _1046 => _1046.current, 'optionalAccess', _1047 => _1047.setValue, 'call', _1048 => _1048(
|
|
39007
39044
|
_nullishCoalesce(action.prompt, () => ( action.label))
|
|
39008
39045
|
)]);
|
|
39009
|
-
_optionalChain([chatInputRef, 'access',
|
|
39046
|
+
_optionalChain([chatInputRef, 'access', _1049 => _1049.current, 'optionalAccess', _1050 => _1050.focus, 'call', _1051 => _1051()]);
|
|
39010
39047
|
},
|
|
39011
39048
|
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
39049
|
!commandsLoaded && chipCommands.length === 0 && SKELETON_ROW_VARIANTS.map((variant, i) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -39840,4 +39877,4 @@ function EmbeddableChatInner({
|
|
|
39840
39877
|
|
|
39841
39878
|
|
|
39842
39879
|
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-
|
|
39880
|
+
//# sourceMappingURL=chunk-IAB7QACX.cjs.map
|