@flamingo-stack/openframe-frontend-core 0.0.724 → 0.0.726
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-N2PX26BZ.js → chunk-2MMZTACD.js} +2 -2
- package/dist/{chunk-2HLGX6JF.js → chunk-3UZET2G7.js} +5 -5
- package/dist/{chunk-NLZZUWR6.js → chunk-3XDVGHL4.js} +4 -4
- package/dist/{chunk-L5CAET76.cjs → chunk-4ND65E2B.cjs} +64 -64
- package/dist/{chunk-OFOBVPDV.js → chunk-4VRHDFF2.js} +2 -2
- package/dist/{chunk-QJ67GFF3.cjs → chunk-5SWQ2ZU5.cjs} +32 -32
- package/dist/{chunk-CJENFR5T.js → chunk-6EFNWQRY.js} +1 -1
- package/dist/{chunk-7CNGNPBI.js → chunk-AZKVHJA5.js} +3 -3
- package/dist/{chunk-QN3OXRTM.js → chunk-C5KMQLJP.js} +5 -5
- package/dist/{chunk-MU5F5QXJ.js → chunk-COFT3YPA.js} +6 -6
- package/dist/{chunk-ZKL52ALL.cjs → chunk-DXDLCYCM.cjs} +3 -3
- package/dist/{chunk-3MMKIVWZ.cjs → chunk-EHYAOIE4.cjs} +23 -23
- package/dist/{chunk-5CJGNPTT.cjs → chunk-FMFCPX3R.cjs} +35 -35
- package/dist/{chunk-DGNGABNG.cjs → chunk-HEQ4GPYE.cjs} +4 -4
- package/dist/{chunk-JKWQWHNV.cjs → chunk-IITB5TJR.cjs} +4 -1
- package/dist/{chunk-MRBPJ4NB.js → chunk-JXJFUGJY.js} +1 -1
- package/dist/{chunk-BWMEQ7IZ.js → chunk-JYJBL7GD.js} +1 -1
- package/dist/{chunk-YKV45BSJ.cjs → chunk-KLCOSY7B.cjs} +4 -4
- package/dist/{chunk-QUI7DKBW.cjs → chunk-KNLRL63O.cjs} +41 -41
- package/dist/{chunk-PF4WAKCS.js → chunk-MM66P4X4.js} +4 -4
- package/dist/{chunk-6QO6BIX7.js → chunk-MQ3ZM7FJ.js} +1 -1
- package/dist/{chunk-OWFDXYEO.js → chunk-MSPXMSMY.js} +1 -1
- package/dist/{chunk-SOTXV3T5.cjs → chunk-MZ3TMXIX.cjs} +3 -3
- package/dist/{chunk-BIWG3CYN.cjs → chunk-MZY6LBM5.cjs} +3 -3
- package/dist/{chunk-7AXOAA5T.cjs → chunk-NJV3LIDE.cjs} +3 -3
- package/dist/{chunk-IUQKIU5A.js → chunk-NLWIBA55.js} +6 -6
- package/dist/{chunk-4N5DLIEC.js → chunk-NZYMMYWN.js} +1 -1
- package/dist/{chunk-GRB5HVEV.cjs → chunk-Q2G7NVFH.cjs} +505 -505
- package/dist/{chunk-IPUDFAU5.cjs → chunk-R3BOJNZI.cjs} +31 -31
- package/dist/{chunk-SVDXNMBL.cjs → chunk-RSE3MU4G.cjs} +16 -16
- package/dist/{chunk-3NVSC3BU.cjs → chunk-RVSNXG6J.cjs} +246 -267
- package/dist/{chunk-S4SVKXHN.js → chunk-SBPPM65Y.js} +54 -75
- package/dist/{chunk-KKO4GRM3.js → chunk-SCTS3EMJ.js} +4 -4
- package/dist/{chunk-VLPGV5WH.js → chunk-TU5LEF6A.js} +1 -1
- package/dist/{chunk-N4NGKXUU.cjs → chunk-U6LRRG2E.cjs} +15 -15
- package/dist/{chunk-6BKDXUOQ.js → chunk-VKR56R3U.js} +6 -6
- package/dist/{chunk-FR4MFSH5.cjs → chunk-VPABPC2M.cjs} +19 -19
- package/dist/{chunk-2A4AGW7Z.cjs → chunk-X2PG6XWF.cjs} +11 -11
- package/dist/{chunk-JQ7A7PO5.cjs → chunk-XEIDJ6SL.cjs} +76 -76
- package/dist/{chunk-ZQKN2Z6W.js → chunk-YQDKVGKO.js} +4 -1
- package/dist/{chunk-XDTD6YGG.js → chunk-YVWJ3TRY.js} +7 -7
- package/dist/{chunk-A4WHVIYZ.cjs → chunk-Z3VAFLYK.cjs} +17 -17
- package/dist/{cloud-tenants-UMZJZTMB.cjs → cloud-tenants-5JTQ2ENQ.cjs} +7 -7
- package/dist/{cloud-tenants-5MINXS5J.js → cloud-tenants-NH7VE7KE.js} +6 -6
- package/dist/components/case-studies/index.cjs +20 -20
- package/dist/components/case-studies/index.js +7 -7
- package/dist/components/chat/entity-cards/dispatch.d.ts.map +1 -1
- package/dist/components/chat/index.cjs +5 -5
- package/dist/components/chat/index.js +4 -4
- package/dist/components/chat/utils/icon-library.d.ts.map +1 -1
- package/dist/components/contact/index.cjs +8 -8
- package/dist/components/contact/index.js +7 -7
- package/dist/components/docs/index.cjs +11 -11
- package/dist/components/docs/index.js +10 -10
- package/dist/components/embeds/index.cjs +8 -8
- package/dist/components/embeds/index.js +7 -7
- package/dist/components/faq/index.cjs +8 -8
- package/dist/components/faq/index.js +7 -7
- package/dist/components/features/index.cjs +7 -7
- package/dist/components/features/index.js +6 -6
- package/dist/components/help-center-pages/index.cjs +106 -106
- package/dist/components/help-center-pages/index.js +18 -18
- package/dist/components/index.cjs +55 -55
- package/dist/components/index.js +18 -18
- package/dist/components/meeting-scheduler/index.cjs +32 -32
- package/dist/components/meeting-scheduler/index.js +6 -6
- package/dist/components/navigation/index.cjs +10 -10
- package/dist/components/navigation/index.js +9 -9
- package/dist/components/onboarding-guides/index.cjs +10 -10
- package/dist/components/onboarding-guides/index.js +9 -9
- package/dist/components/product-demo/index.cjs +7 -7
- package/dist/components/product-demo/index.js +7 -7
- package/dist/components/related-content/index.cjs +4 -4
- package/dist/components/related-content/index.js +3 -3
- package/dist/components/tickets/index.cjs +11 -11
- package/dist/components/tickets/index.js +10 -10
- package/dist/components/ui/index.cjs +7 -7
- package/dist/components/ui/index.js +6 -6
- package/dist/{devices-FSSUAUQN.js → devices-OC7JEI6U.js} +6 -6
- package/dist/{devices-HOT7YSDN.cjs → devices-PV76NGQO.cjs} +8 -8
- package/dist/index.cjs +11 -11
- package/dist/index.js +10 -10
- package/dist/{knowledge-3N6HCFLU.cjs → knowledge-5AYFIVKD.cjs} +8 -8
- package/dist/{knowledge-7HRUJX26.js → knowledge-L7WQ7IEP.js} +6 -6
- package/dist/{logs-75M5YP6V.cjs → logs-4F77RJXJ.cjs} +15 -15
- package/dist/{logs-T25OE2QW.js → logs-MGFHGVIE.js} +6 -6
- package/dist/{policies-BTG7UJJC.cjs → policies-VCGM3C5Z.cjs} +11 -11
- package/dist/{policies-4OK4XTD4.js → policies-WRDZFNIB.js} +6 -6
- package/dist/{remote-session-4DTOM3QD.cjs → remote-session-CSX6ESSG.cjs} +5 -5
- package/dist/{remote-session-AZJXG7ZF.js → remote-session-ZBCWD5A5.js} +3 -3
- package/dist/{software-update-5SOV4FIR.js → software-update-WVG2GDZO.js} +6 -6
- package/dist/{software-update-OZURO4VK.cjs → software-update-YD2MNL3K.cjs} +11 -11
- package/dist/utils/index.cjs +17 -18
- package/dist/utils/index.js +17 -18
- package/dist/utils/source-grouping.d.ts +15 -5
- package/dist/utils/source-grouping.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/components/chat/entity-cards/dispatch.tsx +47 -58
- package/src/components/chat/utils/icon-library.tsx +8 -3
- package/src/components/chat/utils/source-row-cta.ts +3 -3
- package/src/utils/source-grouping.ts +24 -14
- package/src/utils/source-icons.ts +16 -16
|
@@ -34,7 +34,7 @@ var _chunkEWPR7662cjs = require('./chunk-EWPR7662.cjs');
|
|
|
34
34
|
|
|
35
35
|
|
|
36
36
|
|
|
37
|
-
var
|
|
37
|
+
var _chunkNJV3LIDEcjs = require('./chunk-NJV3LIDE.cjs');
|
|
38
38
|
|
|
39
39
|
|
|
40
40
|
|
|
@@ -140,15 +140,14 @@ var _chunk7DNL734Scjs = require('./chunk-7DNL734S.cjs');
|
|
|
140
140
|
|
|
141
141
|
|
|
142
142
|
|
|
143
|
-
var
|
|
143
|
+
var _chunkHEQ4GPYEcjs = require('./chunk-HEQ4GPYE.cjs');
|
|
144
144
|
|
|
145
145
|
|
|
146
146
|
var _chunkAL2GUHAJcjs = require('./chunk-AL2GUHAJ.cjs');
|
|
147
147
|
|
|
148
148
|
|
|
149
149
|
|
|
150
|
-
|
|
151
|
-
var _chunkJKWQWHNVcjs = require('./chunk-JKWQWHNV.cjs');
|
|
150
|
+
var _chunkIITB5TJRcjs = require('./chunk-IITB5TJR.cjs');
|
|
152
151
|
|
|
153
152
|
|
|
154
153
|
|
|
@@ -251,21 +250,6 @@ var _chunkLLSUVPQCcjs = require('./chunk-LLSUVPQC.cjs');
|
|
|
251
250
|
|
|
252
251
|
|
|
253
252
|
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
253
|
|
|
270
254
|
|
|
271
255
|
|
|
@@ -314,7 +298,7 @@ var _react = require('react'); var _react2 = _interopRequireDefault(_react);
|
|
|
314
298
|
|
|
315
299
|
// src/components/chat/chat-appearance-context.tsx
|
|
316
300
|
|
|
317
|
-
var ChatAppearanceContext = _react.createContext.call(void 0,
|
|
301
|
+
var ChatAppearanceContext = _react.createContext.call(void 0, _chunkNJV3LIDEcjs.CHAT_APPEARANCE.CLASSIC);
|
|
318
302
|
function useChatAppearance() {
|
|
319
303
|
return _react.useContext.call(void 0, ChatAppearanceContext);
|
|
320
304
|
}
|
|
@@ -352,7 +336,7 @@ var ApprovalRequestMessage = _react.forwardRef.call(void 0,
|
|
|
352
336
|
...props
|
|
353
337
|
}, ref) => {
|
|
354
338
|
const [isProcessing, setIsProcessing] = _react.useState.call(void 0, false);
|
|
355
|
-
const isV2 = useChatAppearance() ===
|
|
339
|
+
const isV2 = useChatAppearance() === _chunkNJV3LIDEcjs.CHAT_APPEARANCE.V2;
|
|
356
340
|
const handleApprove = async () => {
|
|
357
341
|
setIsProcessing(true);
|
|
358
342
|
try {
|
|
@@ -487,7 +471,7 @@ EscalationOfferMessage.displayName = "EscalationOfferMessage";
|
|
|
487
471
|
|
|
488
472
|
var AiAssistantInfo = _react.forwardRef.call(void 0,
|
|
489
473
|
({ className, icon, leading, title, body, timestamp, ...props }, ref) => {
|
|
490
|
-
const isV2 = useChatAppearance() ===
|
|
474
|
+
const isV2 = useChatAppearance() === _chunkNJV3LIDEcjs.CHAT_APPEARANCE.V2;
|
|
491
475
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
492
476
|
"div",
|
|
493
477
|
{
|
|
@@ -503,7 +487,7 @@ var AiAssistantInfo = _react.forwardRef.call(void 0,
|
|
|
503
487
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-1 flex-col", children: [
|
|
504
488
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full items-start", children: [
|
|
505
489
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "min-w-0 flex-1 truncate text-ods-text-primary text-h4", title, children: title }),
|
|
506
|
-
timestamp && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "shrink-0 text-right text-ods-text-secondary text-h6", children:
|
|
490
|
+
timestamp && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "shrink-0 text-right text-ods-text-secondary text-h6", children: _chunkNJV3LIDEcjs.formatTime.call(void 0, timestamp) })
|
|
507
491
|
] }),
|
|
508
492
|
body != null && body !== "" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "w-full break-words text-ods-text-secondary text-h4", children: body })
|
|
509
493
|
] })
|
|
@@ -3411,7 +3395,7 @@ var ErrorMessageDisplay = _react.forwardRef.call(void 0,
|
|
|
3411
3395
|
const [expanded, setExpanded] = _react.useState.call(void 0, false);
|
|
3412
3396
|
const { innerRef, containerStyle } = _chunkHP4UUBJCcjs.useCollapsible.call(void 0, { expanded });
|
|
3413
3397
|
const hasDetails = Boolean(details);
|
|
3414
|
-
const isV2 = useChatAppearance() ===
|
|
3398
|
+
const isV2 = useChatAppearance() === _chunkNJV3LIDEcjs.CHAT_APPEARANCE.V2;
|
|
3415
3399
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
3416
3400
|
"div",
|
|
3417
3401
|
{
|
|
@@ -4453,8 +4437,8 @@ ToolExecutionDisplay.displayName = "ToolExecutionDisplay";
|
|
|
4453
4437
|
var MENTION_MARKER_REGEX = /(^|[^\w@])@[a-zA-Z]+:([A-Za-z0-9_.+/=-]*[A-Za-z0-9_+/=])/g;
|
|
4454
4438
|
var CARD_MARKER_REGEX = createCardMarkerScanner();
|
|
4455
4439
|
function formatMessageTimestamp(timestamp) {
|
|
4456
|
-
const time =
|
|
4457
|
-
return _chunkHP4UUBJCcjs.isToday.call(void 0, timestamp) ? time : `${
|
|
4440
|
+
const time = _chunkNJV3LIDEcjs.formatTime.call(void 0, timestamp);
|
|
4441
|
+
return _chunkHP4UUBJCcjs.isToday.call(void 0, timestamp) ? time : `${_chunkNJV3LIDEcjs.formatDate.call(void 0, timestamp)} ${time}`;
|
|
4458
4442
|
}
|
|
4459
4443
|
function normalizeContent(content) {
|
|
4460
4444
|
if (typeof content === "string") {
|
|
@@ -4508,7 +4492,7 @@ var ChatMessageEnhanced = _react.forwardRef.call(void 0,
|
|
|
4508
4492
|
const isError = role === "error";
|
|
4509
4493
|
const inheritedAppearance = useChatAppearance();
|
|
4510
4494
|
const appearance = _nullishCoalesce(appearanceProp, () => ( inheritedAppearance));
|
|
4511
|
-
const isV2 = appearance ===
|
|
4495
|
+
const isV2 = appearance === _chunkNJV3LIDEcjs.CHAT_APPEARANCE.V2;
|
|
4512
4496
|
const authorType = _nullishCoalesce(authorTypeProp, () => ( (isUser ? "user" : assistantType === "mingo" ? "mingo" : "fae")));
|
|
4513
4497
|
const hasMarkerSupport = !!renderEntityCard;
|
|
4514
4498
|
const segments = _react.useMemo.call(void 0, () => normalizeContent(content), [content]);
|
|
@@ -5032,7 +5016,7 @@ var ChatMessageList = _react.forwardRef.call(void 0,
|
|
|
5032
5016
|
contentClassName,
|
|
5033
5017
|
assistantType,
|
|
5034
5018
|
approvalVariant,
|
|
5035
|
-
appearance =
|
|
5019
|
+
appearance = _chunkNJV3LIDEcjs.CHAT_APPEARANCE.CLASSIC,
|
|
5036
5020
|
assistantIcon,
|
|
5037
5021
|
pendingApprovals,
|
|
5038
5022
|
hasNextPage,
|
|
@@ -5531,7 +5515,7 @@ ChatMessageList.displayName = "ChatMessageList";
|
|
|
5531
5515
|
// src/components/chat/hooks/use-proxied-image-url.ts
|
|
5532
5516
|
function useProxiedImageUrl(url) {
|
|
5533
5517
|
const r = _chunkUJ7AXHRZcjs.useRequiredChatRuntime.call(void 0, );
|
|
5534
|
-
return _nullishCoalesce(
|
|
5518
|
+
return _nullishCoalesce(_chunkHEQ4GPYEcjs.getProxiedImageUrl.call(void 0, _nullishCoalesce(url, () => ( "")), {
|
|
5535
5519
|
proxyPrefix: r.endpoints.imageProxyUrlPrefix,
|
|
5536
5520
|
skipDomains: r.endpoints.imageProxySkipDomains,
|
|
5537
5521
|
directHttps: true
|
|
@@ -5608,7 +5592,7 @@ function renderQuickActionIcon(icon) {
|
|
|
5608
5592
|
if (!spec.name && !spec.url) return void 0;
|
|
5609
5593
|
const accentClass = spec.accent ? ACCENT_CLASS[spec.accent] : void 0;
|
|
5610
5594
|
const props = spec.accent && !accentClass ? { color: spec.accent, ..._nullishCoalesce(spec.props, () => ( {})) } : spec.props;
|
|
5611
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
5595
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHEQ4GPYEcjs.EntityIcon, { icon: { name: spec.name, url: spec.url, props }, size: _nullishCoalesce(spec.size, () => ( 16)), className: accentClass });
|
|
5612
5596
|
}
|
|
5613
5597
|
function composeChipLabel(label, lozenge) {
|
|
5614
5598
|
if (!lozenge) return label;
|
|
@@ -6880,11 +6864,11 @@ var SOURCE_ICON_NAMES = {
|
|
|
6880
6864
|
vendors: "package-search",
|
|
6881
6865
|
// Financials
|
|
6882
6866
|
"investor-updates": "mail",
|
|
6883
|
-
"financial-kpis": "
|
|
6884
|
-
"financial-cap-table": "
|
|
6885
|
-
"financial-pnl": "
|
|
6886
|
-
"financial-balance-sheet": "
|
|
6887
|
-
"financial-cash-flow": "
|
|
6867
|
+
"financial-kpis": "chart-bar-01-ver",
|
|
6868
|
+
"financial-cap-table": "chart-pie",
|
|
6869
|
+
"financial-pnl": "money-bill-dollar",
|
|
6870
|
+
"financial-balance-sheet": "bank",
|
|
6871
|
+
"financial-cash-flow": "coins-exchange-currency",
|
|
6888
6872
|
// ClickUp
|
|
6889
6873
|
"clickup-roadmap": "clickup",
|
|
6890
6874
|
"clickup-delivery": "clickup",
|
|
@@ -6903,22 +6887,22 @@ var SOURCE_ICON_NAMES = {
|
|
|
6903
6887
|
// Communications
|
|
6904
6888
|
"slack-messages": "slack",
|
|
6905
6889
|
// People-hub employee content
|
|
6906
|
-
"what-i-shipped": "
|
|
6907
|
-
"how-i-work": "
|
|
6908
|
-
"ai-prompts": "
|
|
6890
|
+
"what-i-shipped": "rocket-02",
|
|
6891
|
+
"how-i-work": "clipboard-list",
|
|
6892
|
+
"ai-prompts": "chat-quote",
|
|
6909
6893
|
// Product-hub internal
|
|
6910
6894
|
"design-docs": "file-text",
|
|
6911
6895
|
"openframe-tenants": "openframe",
|
|
6912
|
-
"prospect-calls": "
|
|
6896
|
+
"prospect-calls": "call",
|
|
6913
6897
|
// Code intelligence
|
|
6914
|
-
"code-rules": "check
|
|
6915
|
-
"code-graph-repos": "
|
|
6898
|
+
"code-rules": "bracket-curly-check",
|
|
6899
|
+
"code-graph-repos": "coding-branch",
|
|
6916
6900
|
"code-graph-deployments": "package",
|
|
6917
|
-
"code-graph-files": "file-
|
|
6918
|
-
"code-symbols": "
|
|
6919
|
-
"code-duplicates": "
|
|
6920
|
-
"code-impact": "
|
|
6921
|
-
"change-sets": "coding-
|
|
6901
|
+
"code-graph-files": "file-code",
|
|
6902
|
+
"code-symbols": "code-square",
|
|
6903
|
+
"code-duplicates": "copy-01",
|
|
6904
|
+
"code-impact": "coding-pull-request",
|
|
6905
|
+
"change-sets": "coding-merge"
|
|
6922
6906
|
};
|
|
6923
6907
|
function getSourceIconName(tableId) {
|
|
6924
6908
|
if (!tableId) return void 0;
|
|
@@ -7095,8 +7079,7 @@ function typeOf(source) {
|
|
|
7095
7079
|
return source.documentType || defaultDocumentTypeForTableId(source.sourceRepo) || "";
|
|
7096
7080
|
}
|
|
7097
7081
|
function joinsTableChip(source) {
|
|
7098
|
-
|
|
7099
|
-
return groupsByTable(typeOf({ ...source, sourceRepo: source.sourceRepo }));
|
|
7082
|
+
return !!source.sourceRepo;
|
|
7100
7083
|
}
|
|
7101
7084
|
function rowsOf(source) {
|
|
7102
7085
|
if (isGroupedChip(source)) return _nullishCoalesce(source.items, () => ( []));
|
|
@@ -7597,7 +7580,7 @@ function formatChatAttachmentMarkdownForBubble(att, viewUrlPrefix) {
|
|
|
7597
7580
|
|
|
7598
7581
|
[Attached: ${safeName}](${url})`;
|
|
7599
7582
|
}
|
|
7600
|
-
var CHAT_ATTACHMENT_VIEW_URL_PREFIX_REGEX_ESCAPED =
|
|
7583
|
+
var CHAT_ATTACHMENT_VIEW_URL_PREFIX_REGEX_ESCAPED = _chunkHEQ4GPYEcjs.escapeRegExp.call(void 0, CHAT_ATTACHMENT_VIEW_URL_PREFIX);
|
|
7601
7584
|
var CHAT_ATTACHMENT_MARKDOWN_PATTERN = new RegExp(
|
|
7602
7585
|
`^\\s*!?\\[[^\\]]*\\]\\(${CHAT_ATTACHMENT_VIEW_URL_PREFIX_REGEX_ESCAPED}[^)]+\\)\\s*$`,
|
|
7603
7586
|
"gm"
|
|
@@ -8072,7 +8055,7 @@ function lastPathSegment(url) {
|
|
|
8072
8055
|
function makeComposeContentUrl(opts) {
|
|
8073
8056
|
const suffixes = _nullishCoalesce(opts.suffixes, () => ( DEFAULT_CONTENT_SUFFIXES));
|
|
8074
8057
|
return ({ type: rawType, identifier, slug: slugHint, externalUrl, targetPlatform, platforms }) => {
|
|
8075
|
-
const type =
|
|
8058
|
+
const type = _chunkHEQ4GPYEcjs.canonicalContentRefType.call(void 0, rawType);
|
|
8076
8059
|
const override = opts.overrides && Object.prototype.hasOwnProperty.call(opts.overrides, type) ? opts.overrides[type] : void 0;
|
|
8077
8060
|
if (override) return { ...override(identifier), hostOverride: true };
|
|
8078
8061
|
const seg = _nullishCoalesce((Object.prototype.hasOwnProperty.call(suffixes, type) ? suffixes[type] : void 0), () => ( type));
|
|
@@ -8933,7 +8916,7 @@ function useAskPrompts({
|
|
|
8933
8916
|
const assistant = _chunkEWPR7662cjs.useAssistantRuntime.call(void 0, );
|
|
8934
8917
|
const base = assistantAvailable(assistant) ? assistant.askPromptsUrl : void 0;
|
|
8935
8918
|
const url = base && enabled ? buildAskPromptsUrl(base, { count, topic, exclude }) : null;
|
|
8936
|
-
const { data, isLoading } =
|
|
8919
|
+
const { data, isLoading } = _chunkHEQ4GPYEcjs.useSelfFetch.call(void 0, url);
|
|
8937
8920
|
return { prompts: _nullishCoalesce(_optionalChain([data, 'optionalAccess', _232 => _232.prompts]), () => ( [])), isLoading: !!base && (!enabled || isLoading), supported: !!base };
|
|
8938
8921
|
}
|
|
8939
8922
|
function useAssistantOpen(topic, onOpen) {
|
|
@@ -10388,7 +10371,7 @@ function GuideWelcome({
|
|
|
10388
10371
|
icon && (icon.name || icon.url) ? (
|
|
10389
10372
|
// Agent-mode identity glyph (chat-config Identity tab). Sized to
|
|
10390
10373
|
// match the default Mingo mark (48px).
|
|
10391
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
10374
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHEQ4GPYEcjs.EntityIcon, { icon: { name: icon.name, url: icon.url, props: icon.props }, size: 48 })
|
|
10392
10375
|
) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
10393
10376
|
_chunkLLSUVPQCcjs.MingoIcon,
|
|
10394
10377
|
{
|
|
@@ -11252,8 +11235,8 @@ function RenameChatModal({ isOpen, initialName = "", onClose, onSave }) {
|
|
|
11252
11235
|
const save = () => {
|
|
11253
11236
|
if (canSave) onSave(name.trim());
|
|
11254
11237
|
};
|
|
11255
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
11256
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
11238
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkNJV3LIDEcjs.Modal, { isOpen, onClose, className: "md:max-w-[600px]", children: [
|
|
11239
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkNJV3LIDEcjs.ModalHeader, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkNJV3LIDEcjs.ModalTitle, { children: "Rename Chat" }) }),
|
|
11257
11240
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full flex-col gap-[var(--spacing-system-xxs)]", children: [
|
|
11258
11241
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "label", { htmlFor: "rename-chat-input", className: "text-ods-text-primary text-h4", children: "Chat Name" }),
|
|
11259
11242
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -11270,27 +11253,27 @@ function RenameChatModal({ isOpen, initialName = "", onClose, onSave }) {
|
|
|
11270
11253
|
}
|
|
11271
11254
|
)
|
|
11272
11255
|
] }),
|
|
11273
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
11256
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkNJV3LIDEcjs.ModalFooter, { children: [
|
|
11274
11257
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "button", { type: "button", onClick: onClose, className: cancelBtn, children: "Cancel" }),
|
|
11275
11258
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "button", { type: "button", onClick: save, disabled: !canSave, className: saveBtn, children: "Save" })
|
|
11276
11259
|
] })
|
|
11277
11260
|
] });
|
|
11278
11261
|
}
|
|
11279
11262
|
function ArchiveChatModal({ isOpen, onClose, onConfirm }) {
|
|
11280
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
11281
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
11263
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkNJV3LIDEcjs.Modal, { isOpen, onClose, className: "md:max-w-[600px]", children: [
|
|
11264
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkNJV3LIDEcjs.ModalHeader, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkNJV3LIDEcjs.ModalTitle, { children: "Archive Chat" }) }),
|
|
11282
11265
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "w-full text-ods-text-primary text-h4", children: "This chat will be hidden from your current chats." }),
|
|
11283
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
11266
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkNJV3LIDEcjs.ModalFooter, { children: [
|
|
11284
11267
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "button", { type: "button", onClick: onClose, className: cancelBtn, children: "Cancel" }),
|
|
11285
11268
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "button", { type: "button", onClick: onConfirm, className: dangerBtn, children: "Archive Chat" })
|
|
11286
11269
|
] })
|
|
11287
11270
|
] });
|
|
11288
11271
|
}
|
|
11289
11272
|
function UnarchiveChatModal({ isOpen, onClose, onConfirm }) {
|
|
11290
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
11291
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
11273
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkNJV3LIDEcjs.Modal, { isOpen, onClose, className: "md:max-w-[600px]", children: [
|
|
11274
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkNJV3LIDEcjs.ModalHeader, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkNJV3LIDEcjs.ModalTitle, { children: "Unarchive Chat" }) }),
|
|
11292
11275
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "w-full text-ods-text-primary text-h4", children: "This chat will be moved back to your current chats." }),
|
|
11293
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
11276
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkNJV3LIDEcjs.ModalFooter, { children: [
|
|
11294
11277
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "button", { type: "button", onClick: onClose, className: cancelBtn, children: "Cancel" }),
|
|
11295
11278
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "button", { type: "button", onClick: onConfirm, className: saveBtn, children: "Unarchive Chat" })
|
|
11296
11279
|
] })
|
|
@@ -11875,7 +11858,7 @@ var ModelDisplay = _react2.default.forwardRef(
|
|
|
11875
11858
|
}, ref) => {
|
|
11876
11859
|
const icon = getProviderIcon(provider);
|
|
11877
11860
|
const name = displayName || modelName;
|
|
11878
|
-
const isV2 = useChatAppearance() ===
|
|
11861
|
+
const isV2 = useChatAppearance() === _chunkNJV3LIDEcjs.CHAT_APPEARANCE.V2;
|
|
11879
11862
|
const formatCount = (count) => isV2 ? count.toLocaleString("en-US") : formatTokenCount(count);
|
|
11880
11863
|
const inline = /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { ref, className: _chunk3ATAYP36cjs.cn.call(void 0, "flex items-center gap-1 text-ods-text-secondary", "text-h6", className), ...props, children: [
|
|
11881
11864
|
icon && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "flex items-center justify-center", children: icon }),
|
|
@@ -12003,7 +11986,7 @@ function ChatComposer({
|
|
|
12003
11986
|
}, [entityTypes]);
|
|
12004
11987
|
const resolveContextIcon = _react.useCallback.call(void 0, (item) => iconByType.get(item.type), [iconByType]);
|
|
12005
11988
|
const inputNode = /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12006
|
-
|
|
11989
|
+
_chunkNJV3LIDEcjs.ChatInput,
|
|
12007
11990
|
{
|
|
12008
11991
|
ref: inputRef,
|
|
12009
11992
|
onSend,
|
|
@@ -12614,10 +12597,10 @@ function resolveExternalNavigation(args) {
|
|
|
12614
12597
|
|
|
12615
12598
|
// src/components/chat/utils/execute-navigation.ts
|
|
12616
12599
|
function isForeignOriginHref(href) {
|
|
12617
|
-
return /^https?:\/\//i.test(href) && !
|
|
12600
|
+
return /^https?:\/\//i.test(href) && !_chunkHEQ4GPYEcjs.isSameOriginAbsoluteHref.call(void 0, href);
|
|
12618
12601
|
}
|
|
12619
12602
|
function runNavigation(runtime, href, path, targetPlatform, fallbackNavigate) {
|
|
12620
|
-
const isNewTab = runtime ?
|
|
12603
|
+
const isNewTab = runtime ? _chunkHEQ4GPYEcjs.computeIsNewTab.call(void 0, runtime, href, _nullishCoalesce(targetPlatform, () => ( null))) : false;
|
|
12621
12604
|
if (isNewTab) {
|
|
12622
12605
|
if (_optionalChain([runtime, 'optionalAccess', _301 => _301.navigation, 'access', _302 => _302.openExternal])) runtime.navigation.openExternal(href);
|
|
12623
12606
|
else window.open(href, "_blank", NEW_TAB_FEATURES);
|
|
@@ -12675,7 +12658,7 @@ function useNavLinkViaRuntime({
|
|
|
12675
12658
|
const router = _chunk7DNL734Scjs.useRouter.call(void 0, );
|
|
12676
12659
|
const panel = useChatPanel();
|
|
12677
12660
|
const resolvedHref = resolveHrefForRuntime(href, runtime);
|
|
12678
|
-
const isNewTab =
|
|
12661
|
+
const isNewTab = _chunkHEQ4GPYEcjs.computeIsNewTab.call(void 0, runtime, resolvedHref, _nullishCoalesce(targetPlatform, () => ( null)));
|
|
12679
12662
|
const onClick = (e) => {
|
|
12680
12663
|
_optionalChain([onClickProp, 'optionalCall', _306 => _306(e)]);
|
|
12681
12664
|
if (e.defaultPrevented) return;
|
|
@@ -12689,7 +12672,7 @@ function useNavLinkViaRuntime({
|
|
|
12689
12672
|
});
|
|
12690
12673
|
if (handled && !isNewTab && _optionalChain([panel, 'optionalAccess', _307 => _307.closeChat])) panel.closeChat();
|
|
12691
12674
|
};
|
|
12692
|
-
const attrs =
|
|
12675
|
+
const attrs = _chunkHEQ4GPYEcjs.newTabAnchorAttrs.call(void 0, isNewTab);
|
|
12693
12676
|
return {
|
|
12694
12677
|
href: resolvedHref,
|
|
12695
12678
|
...attrs,
|
|
@@ -12893,7 +12876,7 @@ function UserDisplay({
|
|
|
12893
12876
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12894
12877
|
_chunkTKFTWM3Vcjs.SquareAvatar,
|
|
12895
12878
|
{
|
|
12896
|
-
src: avatarUrl ?
|
|
12879
|
+
src: avatarUrl ? _chunkHEQ4GPYEcjs.getProxiedImageUrl.call(void 0, avatarUrl) || avatarUrl : void 0,
|
|
12897
12880
|
fallback: name,
|
|
12898
12881
|
alt: name,
|
|
12899
12882
|
sizePx: size,
|
|
@@ -13339,7 +13322,7 @@ function CardsStrip(props) {
|
|
|
13339
13322
|
},
|
|
13340
13323
|
className: _chunk3ATAYP36cjs.cn.call(void 0, "flex w-full min-w-0 flex-col gap-6", className),
|
|
13341
13324
|
children: [
|
|
13342
|
-
showTitle && title && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h2", { className: `${
|
|
13325
|
+
showTitle && title && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h2", { className: `${_chunkHEQ4GPYEcjs.SECTION_HEADING_CLASS} break-words`, children: _chunkHEQ4GPYEcjs.accentSentenceMarks.call(void 0, title) }),
|
|
13343
13326
|
headerSlot,
|
|
13344
13327
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "relative", style: bled ? { marginLeft: -insets.left, marginRight: -insets.right } : void 0, children: [
|
|
13345
13328
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -13490,7 +13473,7 @@ function groupByAspectRatio(items, getAspectRatio) {
|
|
|
13490
13473
|
|
|
13491
13474
|
function VideoBitesStrip({
|
|
13492
13475
|
bites,
|
|
13493
|
-
title =
|
|
13476
|
+
title = _chunkHEQ4GPYEcjs.DEFAULT_VIDEO_BITES_TITLE,
|
|
13494
13477
|
showTitle = true,
|
|
13495
13478
|
filterPublished = true,
|
|
13496
13479
|
profile = null,
|
|
@@ -13503,14 +13486,14 @@ function VideoBitesStrip({
|
|
|
13503
13486
|
cardHeightMobile = 300,
|
|
13504
13487
|
showChevrons = true,
|
|
13505
13488
|
onBiteNavigate,
|
|
13506
|
-
sortComparator =
|
|
13489
|
+
sortComparator = _chunkHEQ4GPYEcjs.sortBitesByCreatedAtDesc,
|
|
13507
13490
|
className
|
|
13508
13491
|
}) {
|
|
13509
13492
|
const items = _react.useMemo.call(void 0, () => {
|
|
13510
13493
|
const filtered = filterPublished ? bites.filter((b) => b.published) : [...bites];
|
|
13511
13494
|
return filtered.sort(sortComparator);
|
|
13512
13495
|
}, [bites, filterPublished, sortComparator]);
|
|
13513
|
-
const warmup =
|
|
13496
|
+
const warmup = _chunkHEQ4GPYEcjs.useVideoWarmup.call(void 0, { videoUrl: _optionalChain([items, 'access', _330 => _330[0], 'optionalAccess', _331 => _331.url]) || null });
|
|
13514
13497
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
13515
13498
|
CardsStrip,
|
|
13516
13499
|
{
|
|
@@ -13657,7 +13640,7 @@ function VideoBiteCard({
|
|
|
13657
13640
|
style: { aspectRatio: cssAspect, ...height !== void 0 ? { height, maxWidth: STRIP_CELL_MAX_WIDTH } : {} },
|
|
13658
13641
|
children: [
|
|
13659
13642
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
13660
|
-
|
|
13643
|
+
_chunkHEQ4GPYEcjs.VideoHoverPreviewSurface,
|
|
13661
13644
|
{
|
|
13662
13645
|
url: bite.url,
|
|
13663
13646
|
posterUrl: bite.thumbnail_url,
|
|
@@ -13728,7 +13711,7 @@ function EntityVideoSection({
|
|
|
13728
13711
|
title = "Video",
|
|
13729
13712
|
videoSummary,
|
|
13730
13713
|
videoBites,
|
|
13731
|
-
bitesTitle =
|
|
13714
|
+
bitesTitle = _chunkHEQ4GPYEcjs.DEFAULT_VIDEO_BITES_TITLE,
|
|
13732
13715
|
filterPublishedBites = true,
|
|
13733
13716
|
bitesProfile = null,
|
|
13734
13717
|
bitesHref,
|
|
@@ -13775,7 +13758,7 @@ function EntityVideoSection({
|
|
|
13775
13758
|
)
|
|
13776
13759
|
] }),
|
|
13777
13760
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, TabsContent, { value: "full-video", className: "mt-4", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
13778
|
-
|
|
13761
|
+
_chunkHEQ4GPYEcjs.Video,
|
|
13779
13762
|
{
|
|
13780
13763
|
kind: fullVideoKind,
|
|
13781
13764
|
url: fullVideoUrl,
|
|
@@ -13788,7 +13771,7 @@ function EntityVideoSection({
|
|
|
13788
13771
|
}
|
|
13789
13772
|
) }),
|
|
13790
13773
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, TabsContent, { value: "highlights", className: "mt-4", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
13791
|
-
|
|
13774
|
+
_chunkHEQ4GPYEcjs.Video,
|
|
13792
13775
|
{
|
|
13793
13776
|
url: highlightVideoUrl,
|
|
13794
13777
|
poster: highlightVideoThumbnail,
|
|
@@ -13797,7 +13780,7 @@ function EntityVideoSection({
|
|
|
13797
13780
|
}
|
|
13798
13781
|
) })
|
|
13799
13782
|
] }) : fullVideoUrl ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
13800
|
-
|
|
13783
|
+
_chunkHEQ4GPYEcjs.Video,
|
|
13801
13784
|
{
|
|
13802
13785
|
kind: fullVideoKind,
|
|
13803
13786
|
url: fullVideoUrl,
|
|
@@ -13809,7 +13792,7 @@ function EntityVideoSection({
|
|
|
13809
13792
|
priority
|
|
13810
13793
|
}
|
|
13811
13794
|
) : highlightVideoUrl ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
13812
|
-
|
|
13795
|
+
_chunkHEQ4GPYEcjs.Video,
|
|
13813
13796
|
{
|
|
13814
13797
|
url: highlightVideoUrl,
|
|
13815
13798
|
poster: highlightVideoThumbnail,
|
|
@@ -13819,7 +13802,7 @@ function EntityVideoSection({
|
|
|
13819
13802
|
}
|
|
13820
13803
|
) : null),
|
|
13821
13804
|
videoSummary && MarkdownRenderer && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full min-w-0 flex-col gap-6", children: [
|
|
13822
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h2", { className: `${
|
|
13805
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h2", { className: `${_chunkHEQ4GPYEcjs.SECTION_HEADING_CLASS} break-words`, children: "Summary" }),
|
|
13823
13806
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "overflow-hidden break-words text-ods-text-primary text-h4", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, MarkdownRenderer, { content: videoSummary }) })
|
|
13824
13807
|
] }),
|
|
13825
13808
|
videoBites && videoBites.length > 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -14079,14 +14062,14 @@ function designDocPeople(doc) {
|
|
|
14079
14062
|
return people;
|
|
14080
14063
|
}
|
|
14081
14064
|
function designDocMetaLine(doc) {
|
|
14082
|
-
return [_optionalChain([doc, 'access', _342 => _342.author, 'optionalAccess', _343 => _343.full_name]) ? `DRI ${doc.author.full_name}` : null, `updated ${
|
|
14065
|
+
return [_optionalChain([doc, 'access', _342 => _342.author, 'optionalAccess', _343 => _343.full_name]) ? `DRI ${doc.author.full_name}` : null, `updated ${_chunkHEQ4GPYEcjs.formatDateShort.call(void 0, doc.updated_at)}`].filter(Boolean).join(" \xB7 ");
|
|
14083
14066
|
}
|
|
14084
14067
|
function DesignDocCardSkeleton() {
|
|
14085
14068
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
14086
14069
|
"div",
|
|
14087
14070
|
{
|
|
14088
14071
|
className: _chunk3ATAYP36cjs.cn.call(void 0,
|
|
14089
|
-
|
|
14072
|
+
_chunkHEQ4GPYEcjs.CONTENT_CARD_SKELETON_FRAME_CLASS,
|
|
14090
14073
|
"flex h-full flex-col gap-[var(--spacing-system-mf)] p-[var(--spacing-system-lf)]"
|
|
14091
14074
|
),
|
|
14092
14075
|
role: "status",
|
|
@@ -14116,7 +14099,7 @@ function DesignDocCardSkeleton() {
|
|
|
14116
14099
|
function DesignDocCard({ doc, href, target, rel, className }) {
|
|
14117
14100
|
const readiness = DESIGN_DOC_READINESS_DISPLAY[designDocReadiness(doc.completion)];
|
|
14118
14101
|
const people = designDocPeople(doc);
|
|
14119
|
-
const link =
|
|
14102
|
+
const link = _chunkHEQ4GPYEcjs.safeHref.call(void 0, _nullishCoalesce(href, () => ( null)));
|
|
14120
14103
|
const body = /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
14121
14104
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full items-center gap-[16px]", children: [
|
|
14122
14105
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-1 flex-col", children: [
|
|
@@ -14124,7 +14107,7 @@ function DesignDocCard({ doc, href, target, rel, className }) {
|
|
|
14124
14107
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex min-h-[20px] items-center", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "truncate text-ods-text-secondary text-h5", children: designDocMetaLine(doc) }) })
|
|
14125
14108
|
] }),
|
|
14126
14109
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
14127
|
-
|
|
14110
|
+
_chunkHEQ4GPYEcjs.StatusBadge,
|
|
14128
14111
|
{
|
|
14129
14112
|
text: readiness.label,
|
|
14130
14113
|
colorScheme: readiness.scheme,
|
|
@@ -14134,16 +14117,16 @@ function DesignDocCard({ doc, href, target, rel, className }) {
|
|
|
14134
14117
|
}
|
|
14135
14118
|
)
|
|
14136
14119
|
] }),
|
|
14137
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "md:hidden", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
14120
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "md:hidden", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHEQ4GPYEcjs.StatusBadge, { text: readiness.label, colorScheme: readiness.scheme, variant: "button", singleLine: true }) }),
|
|
14138
14121
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex min-h-[72px] items-center", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "line-clamp-3 text-ods-text-secondary text-h4", children: doc.summary || "" }) }),
|
|
14139
14122
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex-1" }),
|
|
14140
14123
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full items-center justify-between gap-2", children: [
|
|
14141
14124
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "truncate text-ods-text-secondary text-h6", children: formatCompletionLabelWithBlockers(doc.completion) }),
|
|
14142
|
-
people.length > 0 ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
14125
|
+
people.length > 0 ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIITB5TJRcjs.AvatarStack, { size: "xs", people, className: "shrink-0" }) : null
|
|
14143
14126
|
] })
|
|
14144
14127
|
] });
|
|
14145
14128
|
const outer = _chunk3ATAYP36cjs.cn.call(void 0,
|
|
14146
|
-
|
|
14129
|
+
_chunkHEQ4GPYEcjs.CONTENT_CARD_FRAME_CLASS,
|
|
14147
14130
|
"flex h-full flex-col gap-[var(--spacing-system-mf)] p-[var(--spacing-system-lf)]",
|
|
14148
14131
|
className
|
|
14149
14132
|
);
|
|
@@ -14287,26 +14270,26 @@ function GitHubActivityCard({ item, variant = "compact", className, anchorProps
|
|
|
14287
14270
|
metaParts.push(
|
|
14288
14271
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "whitespace-nowrap", children: dateText }, "date")
|
|
14289
14272
|
);
|
|
14290
|
-
const href =
|
|
14273
|
+
const href = _chunkHEQ4GPYEcjs.safeHref.call(void 0, item.url);
|
|
14291
14274
|
const body = /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
14292
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
14293
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className:
|
|
14294
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: `${
|
|
14275
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkHEQ4GPYEcjs.COMPACT_CARD_ICON_SLOT, children: kindIcon(kind, "h-5 w-5") }),
|
|
14276
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: _chunkHEQ4GPYEcjs.COMPACT_CARD_TEXT_COL, children: [
|
|
14277
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: `${_chunkHEQ4GPYEcjs.COMPACT_CARD_TITLE_ROW} flex-nowrap gap-1.5`, children: [
|
|
14295
14278
|
reviewState ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, ReviewStateBadge, { state: reviewState }) : null,
|
|
14296
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
14279
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkHEQ4GPYEcjs.COMPACT_CARD_TITLE, children: primaryText })
|
|
14297
14280
|
] }),
|
|
14298
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
14281
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkHEQ4GPYEcjs.COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkHEQ4GPYEcjs.COMPACT_CARD_META_ROW, children: metaParts.map((part, i) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _react2.default.Fragment, { children: [
|
|
14299
14282
|
i > 0 ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "shrink-0 text-ods-text-secondary/40", children: "\xB7" }) : null,
|
|
14300
14283
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "min-w-0 truncate", children: part })
|
|
14301
14284
|
] }, i)) }) }),
|
|
14302
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
14285
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkHEQ4GPYEcjs.COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkHEQ4GPYEcjs.COMPACT_CARD_SUMMARY, children: _chunkHEQ4GPYEcjs.COMPACT_CARD_ROW_FILLER }) })
|
|
14303
14286
|
] }),
|
|
14304
14287
|
href ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "flex h-5 shrink-0 items-center self-start text-ods-text-secondary", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.ExternalLink, { className: "h-3.5 w-3.5" }) }) : null
|
|
14305
14288
|
] });
|
|
14306
14289
|
if (anchorProps) {
|
|
14307
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "a", { ...anchorProps, className: `${
|
|
14290
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "a", { ...anchorProps, className: `${_chunkHEQ4GPYEcjs.COMPACT_CARD_OUTER} ${_nullishCoalesce(className, () => ( ""))}`, children: body });
|
|
14308
14291
|
}
|
|
14309
|
-
return href ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "a", { href, target: "_blank", rel: "noopener noreferrer", className: `${
|
|
14292
|
+
return href ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "a", { href, target: "_blank", rel: "noopener noreferrer", className: `${_chunkHEQ4GPYEcjs.COMPACT_CARD_OUTER} ${_nullishCoalesce(className, () => ( ""))}`, children: body }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: `${_chunkHEQ4GPYEcjs.COMPACT_CARD_OUTER_STATIC} ${_nullishCoalesce(className, () => ( ""))}`, "aria-label": "No link available", children: body });
|
|
14310
14293
|
}
|
|
14311
14294
|
function GitHubActivityCardSkeleton({
|
|
14312
14295
|
variant = "compact",
|
|
@@ -14323,12 +14306,12 @@ function GitHubActivityCardSkeleton({
|
|
|
14323
14306
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "h-3 w-20 shrink-0 rounded bg-ods-bg/60" })
|
|
14324
14307
|
] });
|
|
14325
14308
|
}
|
|
14326
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: `${
|
|
14327
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
14328
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className:
|
|
14329
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
14330
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
14331
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
14309
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: `${_chunkHEQ4GPYEcjs.COMPACT_CARD_SKELETON_OUTER} ${_nullishCoalesce(className, () => ( ""))}`, children: [
|
|
14310
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkHEQ4GPYEcjs.COMPACT_CARD_SKELETON_IMAGE_SLOT }),
|
|
14311
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: _chunkHEQ4GPYEcjs.COMPACT_CARD_TEXT_COL, children: [
|
|
14312
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkHEQ4GPYEcjs.COMPACT_CARD_TITLE_ROW, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "h-3.5 w-2/3 rounded bg-ods-bg" }) }),
|
|
14313
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkHEQ4GPYEcjs.COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "h-3 w-1/2 rounded bg-ods-bg/70" }) }),
|
|
14314
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkHEQ4GPYEcjs.COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkHEQ4GPYEcjs.COMPACT_CARD_SUMMARY, children: _chunkHEQ4GPYEcjs.COMPACT_CARD_ROW_FILLER }) })
|
|
14332
14315
|
] }),
|
|
14333
14316
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "flex h-5 shrink-0 items-center self-start", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "h-3.5 w-3.5 rounded bg-ods-bg" }) })
|
|
14334
14317
|
] });
|
|
@@ -14378,23 +14361,23 @@ function SlackMessageCard({ item, variant = "compact", className, anchorProps })
|
|
|
14378
14361
|
metaParts.push(
|
|
14379
14362
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "whitespace-nowrap", children: dateText }, "date")
|
|
14380
14363
|
);
|
|
14381
|
-
const href =
|
|
14364
|
+
const href = _chunkHEQ4GPYEcjs.safeHref.call(void 0, item.url);
|
|
14382
14365
|
const body = /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
14383
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
14384
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className:
|
|
14385
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
14386
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
14387
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
14366
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkHEQ4GPYEcjs.COMPACT_CARD_ICON_SLOT, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLLSUVPQCcjs.SlackIcon, { className: "h-5 w-5" }) }),
|
|
14367
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: _chunkHEQ4GPYEcjs.COMPACT_CARD_TEXT_COL, children: [
|
|
14368
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkHEQ4GPYEcjs.COMPACT_CARD_TITLE_ROW, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkHEQ4GPYEcjs.COMPACT_CARD_TITLE, children: item.title }) }),
|
|
14369
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkHEQ4GPYEcjs.COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkHEQ4GPYEcjs.COMPACT_CARD_SUMMARY, children: item.preview || _chunkHEQ4GPYEcjs.COMPACT_CARD_ROW_FILLER }) }),
|
|
14370
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkHEQ4GPYEcjs.COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkHEQ4GPYEcjs.COMPACT_CARD_META_ROW, children: metaParts.length > 0 ? metaParts.map((part, i) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _react2.default.Fragment, { children: [
|
|
14388
14371
|
i > 0 ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "shrink-0 text-ods-text-secondary/40", children: "\xB7" }) : null,
|
|
14389
14372
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "min-w-0 truncate", children: part })
|
|
14390
|
-
] }, i)) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
14373
|
+
] }, i)) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkHEQ4GPYEcjs.COMPACT_CARD_SUMMARY, children: _chunkHEQ4GPYEcjs.COMPACT_CARD_ROW_FILLER }) }) })
|
|
14391
14374
|
] }),
|
|
14392
14375
|
href ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "flex h-5 shrink-0 items-center self-start text-ods-text-secondary", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.ExternalLink, { className: "h-3.5 w-3.5" }) }) : null
|
|
14393
14376
|
] });
|
|
14394
14377
|
if (anchorProps) {
|
|
14395
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "a", { ...anchorProps, className: `${
|
|
14378
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "a", { ...anchorProps, className: `${_chunkHEQ4GPYEcjs.COMPACT_CARD_OUTER} ${_nullishCoalesce(className, () => ( ""))}`, children: body });
|
|
14396
14379
|
}
|
|
14397
|
-
return href ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "a", { href, target: "_blank", rel: "noopener noreferrer", className: `${
|
|
14380
|
+
return href ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "a", { href, target: "_blank", rel: "noopener noreferrer", className: `${_chunkHEQ4GPYEcjs.COMPACT_CARD_OUTER} ${_nullishCoalesce(className, () => ( ""))}`, children: body }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: `${_chunkHEQ4GPYEcjs.COMPACT_CARD_OUTER_STATIC} ${_nullishCoalesce(className, () => ( ""))}`, "aria-label": "No link available", children: body });
|
|
14398
14381
|
}
|
|
14399
14382
|
function SlackMessageCardSkeleton({
|
|
14400
14383
|
variant = "compact",
|
|
@@ -14409,12 +14392,12 @@ function SlackMessageCardSkeleton({
|
|
|
14409
14392
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "h-3 w-20 shrink-0 rounded bg-ods-bg/60" })
|
|
14410
14393
|
] });
|
|
14411
14394
|
}
|
|
14412
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: `${
|
|
14413
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
14414
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className:
|
|
14415
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
14416
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
14417
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
14395
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: `${_chunkHEQ4GPYEcjs.COMPACT_CARD_SKELETON_OUTER} ${_nullishCoalesce(className, () => ( ""))}`, children: [
|
|
14396
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkHEQ4GPYEcjs.COMPACT_CARD_SKELETON_IMAGE_SLOT }),
|
|
14397
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: _chunkHEQ4GPYEcjs.COMPACT_CARD_TEXT_COL, children: [
|
|
14398
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkHEQ4GPYEcjs.COMPACT_CARD_TITLE_ROW, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "h-3.5 w-2/3 rounded bg-ods-bg" }) }),
|
|
14399
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkHEQ4GPYEcjs.COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "h-3 w-5/6 rounded bg-ods-bg/60" }) }),
|
|
14400
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkHEQ4GPYEcjs.COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "h-3 w-1/3 rounded bg-ods-bg/70" }) })
|
|
14418
14401
|
] }),
|
|
14419
14402
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "flex h-5 shrink-0 items-center self-start", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "h-3.5 w-3.5 rounded bg-ods-bg" }) })
|
|
14420
14403
|
] });
|
|
@@ -14450,7 +14433,7 @@ function HubspotTicketCard({ item, variant = "compact", className, anchorProps }
|
|
|
14450
14433
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: `flex min-w-0 items-center gap-3 ${_nullishCoalesce(className, () => ( ""))}`, children: [
|
|
14451
14434
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "max-w-[260px] shrink-0 truncate text-ods-text-primary text-h6", children: item.title }),
|
|
14452
14435
|
item.preview ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "min-w-0 flex-1 truncate text-ods-text-secondary text-h6", children: item.preview }) : null,
|
|
14453
|
-
statusText ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
14436
|
+
statusText ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHEQ4GPYEcjs.StatusBadge, { text: statusText, variant: "button", colorScheme: statusScheme(item.status) }) : null,
|
|
14454
14437
|
dateText ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "w-24 shrink-0 text-right text-ods-text-secondary text-h6", children: dateText }) : null
|
|
14455
14438
|
] });
|
|
14456
14439
|
}
|
|
@@ -14464,13 +14447,13 @@ function HubspotTicketCard({ item, variant = "compact", className, anchorProps }
|
|
|
14464
14447
|
metaParts.push(
|
|
14465
14448
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "whitespace-nowrap", children: dateText }, "date")
|
|
14466
14449
|
);
|
|
14467
|
-
const href =
|
|
14450
|
+
const href = _chunkHEQ4GPYEcjs.safeHref.call(void 0, item.url);
|
|
14468
14451
|
const body = /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
14469
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className:
|
|
14452
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: _chunkHEQ4GPYEcjs.COMPACT_CARD_TEXT_COL, children: [
|
|
14470
14453
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "flex min-w-0 flex-wrap items-center gap-1.5", children: [
|
|
14471
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: `${
|
|
14454
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: `${_chunkHEQ4GPYEcjs.COMPACT_CARD_TITLE} min-w-0 shrink`, children: item.title }),
|
|
14472
14455
|
priorityText ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
14473
|
-
|
|
14456
|
+
_chunkHEQ4GPYEcjs.StatusBadge,
|
|
14474
14457
|
{
|
|
14475
14458
|
text: priorityText,
|
|
14476
14459
|
variant: "button",
|
|
@@ -14479,7 +14462,7 @@ function HubspotTicketCard({ item, variant = "compact", className, anchorProps }
|
|
|
14479
14462
|
}
|
|
14480
14463
|
) : null,
|
|
14481
14464
|
statusText ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
14482
|
-
|
|
14465
|
+
_chunkHEQ4GPYEcjs.StatusBadge,
|
|
14483
14466
|
{
|
|
14484
14467
|
text: statusText,
|
|
14485
14468
|
variant: "button",
|
|
@@ -14493,7 +14476,7 @@ function HubspotTicketCard({ item, variant = "compact", className, anchorProps }
|
|
|
14493
14476
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "min-w-0 truncate", children: item.customerEmail })
|
|
14494
14477
|
] }) : null,
|
|
14495
14478
|
/* @__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-ods-text-secondary text-h6", children: item.preview || /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "italic text-ods-text-secondary/60", children: "No description provided." }) }) }),
|
|
14496
|
-
metaParts.length > 0 ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
14479
|
+
metaParts.length > 0 ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkHEQ4GPYEcjs.COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkHEQ4GPYEcjs.COMPACT_CARD_META_ROW, children: metaParts.map((part, i) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _react2.default.Fragment, { children: [
|
|
14497
14480
|
i > 0 ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "shrink-0 text-ods-text-secondary/40", children: "\xB7" }) : null,
|
|
14498
14481
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "min-w-0 truncate", children: part })
|
|
14499
14482
|
] }, i)) }) }) : null
|
|
@@ -14501,9 +14484,9 @@ function HubspotTicketCard({ item, variant = "compact", className, anchorProps }
|
|
|
14501
14484
|
href ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "flex h-5 shrink-0 items-center self-start text-ods-text-secondary", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.ExternalLink, { className: "h-3.5 w-3.5" }) }) : null
|
|
14502
14485
|
] });
|
|
14503
14486
|
if (anchorProps) {
|
|
14504
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "a", { ...anchorProps, className: `${
|
|
14487
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "a", { ...anchorProps, className: `${_chunkHEQ4GPYEcjs.COMPACT_CARD_OUTER} ${_nullishCoalesce(className, () => ( ""))}`, children: body });
|
|
14505
14488
|
}
|
|
14506
|
-
return href ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "a", { href, target: "_blank", rel: "noopener noreferrer", className: `${
|
|
14489
|
+
return href ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "a", { href, target: "_blank", rel: "noopener noreferrer", className: `${_chunkHEQ4GPYEcjs.COMPACT_CARD_OUTER} ${_nullishCoalesce(className, () => ( ""))}`, children: body }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: `${_chunkHEQ4GPYEcjs.COMPACT_CARD_OUTER_STATIC} ${_nullishCoalesce(className, () => ( ""))}`, "aria-label": "No link available", children: body });
|
|
14507
14490
|
}
|
|
14508
14491
|
function HubspotTicketCardSkeleton({
|
|
14509
14492
|
variant = "compact",
|
|
@@ -14517,8 +14500,8 @@ function HubspotTicketCardSkeleton({
|
|
|
14517
14500
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "h-3 w-20 shrink-0 rounded bg-ods-bg/60" })
|
|
14518
14501
|
] });
|
|
14519
14502
|
}
|
|
14520
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: `${
|
|
14521
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className:
|
|
14503
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: `${_chunkHEQ4GPYEcjs.COMPACT_CARD_SKELETON_OUTER} ${_nullishCoalesce(className, () => ( ""))}`, children: [
|
|
14504
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: _chunkHEQ4GPYEcjs.COMPACT_CARD_TEXT_COL, children: [
|
|
14522
14505
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "flex min-w-0 flex-wrap items-center gap-1.5", children: [
|
|
14523
14506
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "h-3.5 w-2/3 rounded bg-ods-bg" }),
|
|
14524
14507
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "h-4 w-12 rounded-full bg-ods-bg/60" }),
|
|
@@ -14531,7 +14514,7 @@ function HubspotTicketCardSkeleton({
|
|
|
14531
14514
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "h-5 w-3/4 rounded bg-ods-bg/60" }),
|
|
14532
14515
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "h-5 w-2/5 rounded bg-ods-bg/60" })
|
|
14533
14516
|
] }),
|
|
14534
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
14517
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkHEQ4GPYEcjs.COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "h-3 w-1/3 rounded bg-ods-bg/70" }) })
|
|
14535
14518
|
] }),
|
|
14536
14519
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "flex h-5 shrink-0 items-center self-start", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "h-3.5 w-3.5 rounded bg-ods-bg" }) })
|
|
14537
14520
|
] });
|
|
@@ -14542,10 +14525,10 @@ function HubspotTicketCardSkeleton({
|
|
|
14542
14525
|
|
|
14543
14526
|
function DataRoomDocCard({ item, className, badgeText, anchorProps }) {
|
|
14544
14527
|
const body = /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
14545
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className:
|
|
14528
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: _chunkHEQ4GPYEcjs.COMPACT_CARD_TEXT_COL, children: [
|
|
14546
14529
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "flex min-w-0 flex-wrap items-center gap-1.5", children: [
|
|
14547
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: `${
|
|
14548
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
14530
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: `${_chunkHEQ4GPYEcjs.COMPACT_CARD_TITLE} min-w-0 shrink`, children: item.title }),
|
|
14531
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHEQ4GPYEcjs.StatusBadge, { text: badgeText, variant: "button", colorScheme: "cyan", className: "shrink-0" })
|
|
14549
14532
|
] }),
|
|
14550
14533
|
item.path ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "flex min-w-0 items-center gap-1 text-ods-text-secondary text-h6", children: [
|
|
14551
14534
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "shrink-0 text-ods-text-secondary/70", children: "Path:" }),
|
|
@@ -14556,13 +14539,13 @@ function DataRoomDocCard({ item, className, badgeText, anchorProps }) {
|
|
|
14556
14539
|
_optionalChain([anchorProps, 'optionalAccess', _344 => _344.href]) ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "flex h-5 shrink-0 items-center self-start text-ods-text-secondary", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.ExternalLink, { className: "h-3.5 w-3.5" }) }) : null
|
|
14557
14540
|
] });
|
|
14558
14541
|
if (!anchorProps) {
|
|
14559
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: `${
|
|
14542
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: `${_chunkHEQ4GPYEcjs.COMPACT_CARD_OUTER_STATIC} ${_nullishCoalesce(className, () => ( ""))}`, "aria-label": "No link available", children: body });
|
|
14560
14543
|
}
|
|
14561
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "a", { ...anchorProps, className: `${
|
|
14544
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "a", { ...anchorProps, className: `${_chunkHEQ4GPYEcjs.COMPACT_CARD_OUTER} ${_nullishCoalesce(className, () => ( ""))}`, children: body });
|
|
14562
14545
|
}
|
|
14563
14546
|
function DataRoomDocCardSkeleton({ className }) {
|
|
14564
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: `${
|
|
14565
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className:
|
|
14547
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: `${_chunkHEQ4GPYEcjs.COMPACT_CARD_SKELETON_OUTER} ${_nullishCoalesce(className, () => ( ""))}`, children: [
|
|
14548
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: _chunkHEQ4GPYEcjs.COMPACT_CARD_TEXT_COL, children: [
|
|
14566
14549
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "flex min-w-0 items-center gap-1.5", children: [
|
|
14567
14550
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "h-3.5 w-2/3 rounded bg-ods-bg" }),
|
|
14568
14551
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "h-4 w-16 rounded-full bg-ods-bg/60" })
|
|
@@ -14583,29 +14566,29 @@ function DataRoomDocCardSkeleton({ className }) {
|
|
|
14583
14566
|
function CampaignCardAdmin({ campaign, className, anchorProps }) {
|
|
14584
14567
|
const goalsCount = _optionalChain([campaign, 'access', _345 => _345.goals, 'optionalAccess', _346 => _346.length]) || 0;
|
|
14585
14568
|
const innerChildren = /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
14586
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
14587
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className:
|
|
14588
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
14589
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
14590
|
-
campaign.start_date ?
|
|
14569
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkHEQ4GPYEcjs.COMPACT_CARD_ICON_SLOT, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.Megaphone, { className: "h-5 w-5" }) }),
|
|
14570
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: _chunkHEQ4GPYEcjs.COMPACT_CARD_TEXT_COL, children: [
|
|
14571
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkHEQ4GPYEcjs.COMPACT_CARD_TITLE_ROW, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkHEQ4GPYEcjs.COMPACT_CARD_TITLE, children: campaign.name }) }),
|
|
14572
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkHEQ4GPYEcjs.COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkHEQ4GPYEcjs.COMPACT_CARD_SUBTITLE, children: [
|
|
14573
|
+
campaign.start_date ? _chunkHEQ4GPYEcjs.formatDateShort.call(void 0, campaign.start_date) : null,
|
|
14591
14574
|
goalsCount > 0 ? `${goalsCount} goal${goalsCount !== 1 ? "s" : ""}` : null,
|
|
14592
14575
|
"Marketing campaign"
|
|
14593
14576
|
].filter(Boolean).join(" \xB7 ") }) }),
|
|
14594
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
14577
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkHEQ4GPYEcjs.COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkHEQ4GPYEcjs.COMPACT_CARD_SUMMARY, children: campaign.description || _chunkHEQ4GPYEcjs.COMPACT_CARD_ROW_FILLER }) })
|
|
14595
14578
|
] })
|
|
14596
14579
|
] });
|
|
14597
14580
|
if (anchorProps) {
|
|
14598
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "a", { ...anchorProps, className: `${
|
|
14581
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "a", { ...anchorProps, className: `${_chunkHEQ4GPYEcjs.COMPACT_CARD_OUTER} ${_nullishCoalesce(className, () => ( ""))}`, children: innerChildren });
|
|
14599
14582
|
}
|
|
14600
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: `${
|
|
14583
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: `${_chunkHEQ4GPYEcjs.COMPACT_CARD_OUTER_STATIC} ${_nullishCoalesce(className, () => ( ""))}`, "aria-label": "No link available", children: innerChildren });
|
|
14601
14584
|
}
|
|
14602
14585
|
function CampaignCardAdminSkeleton({ className }) {
|
|
14603
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: `${
|
|
14604
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
14605
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className:
|
|
14606
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
14607
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
14608
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
14586
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: `${_chunkHEQ4GPYEcjs.COMPACT_CARD_SKELETON_OUTER} ${_nullishCoalesce(className, () => ( ""))}`, children: [
|
|
14587
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkHEQ4GPYEcjs.COMPACT_CARD_SKELETON_IMAGE_SLOT }),
|
|
14588
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: _chunkHEQ4GPYEcjs.COMPACT_CARD_TEXT_COL, children: [
|
|
14589
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkHEQ4GPYEcjs.COMPACT_CARD_TITLE_ROW, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "h-3.5 w-3/5 rounded bg-ods-bg" }) }),
|
|
14590
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkHEQ4GPYEcjs.COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "h-3 w-1/2 rounded bg-ods-bg/70" }) }),
|
|
14591
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkHEQ4GPYEcjs.COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "h-3 w-11/12 rounded bg-ods-bg/40" }) })
|
|
14609
14592
|
] })
|
|
14610
14593
|
] });
|
|
14611
14594
|
}
|
|
@@ -14614,14 +14597,14 @@ function CampaignCardAdminSkeleton({ className }) {
|
|
|
14614
14597
|
|
|
14615
14598
|
|
|
14616
14599
|
function GenericEntityCard({ item, className, anchorProps }) {
|
|
14617
|
-
const href =
|
|
14600
|
+
const href = _chunkHEQ4GPYEcjs.safeHref.call(void 0, item.url);
|
|
14618
14601
|
const dateText = _chunkTKFTWM3Vcjs.formatDateUTC.call(void 0, item.dateUpdated, { fallback: "", timezone: "local" });
|
|
14619
14602
|
const body = /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
14620
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className:
|
|
14603
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: _chunkHEQ4GPYEcjs.COMPACT_CARD_TEXT_COL, children: [
|
|
14621
14604
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "flex min-w-0 flex-wrap items-center gap-1.5", children: [
|
|
14622
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: `${
|
|
14605
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: `${_chunkHEQ4GPYEcjs.COMPACT_CARD_TITLE} min-w-0 shrink`, children: item.title }),
|
|
14623
14606
|
item.badge ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
14624
|
-
|
|
14607
|
+
_chunkHEQ4GPYEcjs.StatusBadge,
|
|
14625
14608
|
{
|
|
14626
14609
|
text: item.badge.text,
|
|
14627
14610
|
variant: "button",
|
|
@@ -14639,18 +14622,18 @@ function GenericEntityCard({ item, className, anchorProps }) {
|
|
|
14639
14622
|
] }),
|
|
14640
14623
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "truncate font-medium text-ods-text-primary", children: f.value })
|
|
14641
14624
|
] }, i)) }) : null,
|
|
14642
|
-
dateText ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
14625
|
+
dateText ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkHEQ4GPYEcjs.COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkHEQ4GPYEcjs.COMPACT_CARD_META_ROW, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "whitespace-nowrap", children: dateText }) }) }) : null
|
|
14643
14626
|
] }),
|
|
14644
14627
|
href ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "flex h-5 shrink-0 items-center self-start text-ods-text-secondary", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.ExternalLink, { className: "h-3.5 w-3.5" }) }) : null
|
|
14645
14628
|
] });
|
|
14646
14629
|
if (anchorProps) {
|
|
14647
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "a", { ...anchorProps, className: `${
|
|
14630
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "a", { ...anchorProps, className: `${_chunkHEQ4GPYEcjs.COMPACT_CARD_OUTER} ${_nullishCoalesce(className, () => ( ""))}`, children: body });
|
|
14648
14631
|
}
|
|
14649
|
-
return href ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "a", { href, className: `${
|
|
14632
|
+
return href ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "a", { href, className: `${_chunkHEQ4GPYEcjs.COMPACT_CARD_OUTER} ${_nullishCoalesce(className, () => ( ""))}`, children: body }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: `${_chunkHEQ4GPYEcjs.COMPACT_CARD_OUTER_STATIC} ${_nullishCoalesce(className, () => ( ""))}`, "aria-label": "No link available", children: body });
|
|
14650
14633
|
}
|
|
14651
14634
|
function GenericEntityCardSkeleton({ className }) {
|
|
14652
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: `${
|
|
14653
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className:
|
|
14635
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: `${_chunkHEQ4GPYEcjs.COMPACT_CARD_SKELETON_OUTER} ${_nullishCoalesce(className, () => ( ""))}`, children: [
|
|
14636
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: _chunkHEQ4GPYEcjs.COMPACT_CARD_TEXT_COL, children: [
|
|
14654
14637
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "flex min-w-0 items-center gap-1.5", children: [
|
|
14655
14638
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "h-3.5 w-2/3 rounded bg-ods-bg" }),
|
|
14656
14639
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "h-4 w-16 rounded-full bg-ods-bg/60" })
|
|
@@ -14752,7 +14735,7 @@ function VendorIcon({
|
|
|
14752
14735
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: containerClasses, children: logoUrl ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
14753
14736
|
_chunkMGHIV4L6cjs.next_image_default,
|
|
14754
14737
|
{
|
|
14755
|
-
src:
|
|
14738
|
+
src: _chunkHEQ4GPYEcjs.getProxiedImageUrl2.call(void 0, logoUrl) || logoUrl,
|
|
14756
14739
|
alt: `${vendor.title} logo`,
|
|
14757
14740
|
width,
|
|
14758
14741
|
height,
|
|
@@ -14782,8 +14765,8 @@ function useChatCardItem(type, id) {
|
|
|
14782
14765
|
const res = await _chunkULWVKHSIcjs.embedAuthedFetch.call(void 0, url);
|
|
14783
14766
|
if (!res.ok) throw new Error(`chat card fetch failed: ${res.status}`);
|
|
14784
14767
|
const data = await res.json();
|
|
14785
|
-
const items =
|
|
14786
|
-
const match = items.find((it) =>
|
|
14768
|
+
const items = _chunkHEQ4GPYEcjs.extractCardItems.call(void 0, type, data);
|
|
14769
|
+
const match = items.find((it) => _chunkHEQ4GPYEcjs.extractItemId.call(void 0, type, it) === id);
|
|
14787
14770
|
return _nullishCoalesce(match, () => ( null));
|
|
14788
14771
|
},
|
|
14789
14772
|
enabled: !!url && id.length > 0,
|
|
@@ -14974,7 +14957,7 @@ function resolveFetchedCardHref({
|
|
|
14974
14957
|
composeContentUrl
|
|
14975
14958
|
}) {
|
|
14976
14959
|
if (!composeContentUrl || !contentRefType || !id) return null;
|
|
14977
|
-
const canonicalType =
|
|
14960
|
+
const canonicalType = _chunkHEQ4GPYEcjs.canonicalContentRefType.call(void 0, contentRefType);
|
|
14978
14961
|
return composeContentUrl({
|
|
14979
14962
|
// The card registry keys some entries by the legacy rail vocabulary
|
|
14980
14963
|
// (`blog_post_existing`) because that is what `buildListUrl` expects.
|
|
@@ -15004,7 +14987,7 @@ function sourceRowCtxFromRuntime(runtime, surface = {}) {
|
|
|
15004
14987
|
}
|
|
15005
14988
|
function pickSourceIcon(sourceRepo, documentType) {
|
|
15006
14989
|
const iconName = sourceRepo ? getSourceIconName(sourceRepo) : void 0;
|
|
15007
|
-
const icon = iconName ?
|
|
14990
|
+
const icon = iconName ? _chunkIITB5TJRcjs.resolveIcon.call(void 0, iconName, { variant: "brand" }) : _lucidereact.FileText;
|
|
15008
14991
|
const iconLabel = _nullishCoalesce(documentType, () => ( "Source"));
|
|
15009
14992
|
return { icon, iconLabel };
|
|
15010
14993
|
}
|
|
@@ -15024,16 +15007,16 @@ function resolveSourceRowCTA(row, ctx = {}) {
|
|
|
15024
15007
|
if (docTarget) {
|
|
15025
15008
|
const seg = docTarget.basePath.split("/").filter(Boolean).join("/");
|
|
15026
15009
|
const base = `${getPlatformUrl(docTarget.platform)}${seg ? `/${seg}` : ""}/`;
|
|
15027
|
-
href = _nullishCoalesce(
|
|
15010
|
+
href = _nullishCoalesce(_chunkHEQ4GPYEcjs.safeHref.call(void 0, new URL(safePath, base).toString()), () => ( null));
|
|
15028
15011
|
targetPlatform = docTarget.platform;
|
|
15029
15012
|
} else if (ctx.chipBasePlatform) {
|
|
15030
15013
|
const base = `${getPlatformUrl(ctx.chipBasePlatform)}/knowledge-base/`;
|
|
15031
|
-
href = _nullishCoalesce(
|
|
15014
|
+
href = _nullishCoalesce(_chunkHEQ4GPYEcjs.safeHref.call(void 0, new URL(safePath, base).toString()), () => ( null));
|
|
15032
15015
|
targetPlatform = ctx.chipBasePlatform;
|
|
15033
15016
|
} else if (ctx.baseRoute) {
|
|
15034
15017
|
const synthetic = `https://_internal_.local${ctx.baseRoute.startsWith("/") ? ctx.baseRoute : "/" + ctx.baseRoute}/`;
|
|
15035
15018
|
const absolute = new URL(safePath, synthetic).toString();
|
|
15036
|
-
href = _nullishCoalesce(
|
|
15019
|
+
href = _nullishCoalesce(_chunkHEQ4GPYEcjs.safeHref.call(void 0, absolute.replace("https://_internal_.local", "")), () => ( null));
|
|
15037
15020
|
targetPlatform = _nullishCoalesce(ctx.currentPlatform, () => ( null));
|
|
15038
15021
|
}
|
|
15039
15022
|
}
|
|
@@ -15042,15 +15025,15 @@ function resolveSourceRowCTA(row, ctx = {}) {
|
|
|
15042
15025
|
// Canonical vocabulary only — a rail-vocab alias would miss the host's
|
|
15043
15026
|
// `hostedTypes` / `overrides` and fall through to the seam's default
|
|
15044
15027
|
// `<origin>/<type>/<id>` branch. Same canonicalizer `buildListUrl` uses.
|
|
15045
|
-
type:
|
|
15028
|
+
type: _chunkHEQ4GPYEcjs.canonicalContentRefType.call(void 0, row.documentType),
|
|
15046
15029
|
identifier: idValue,
|
|
15047
15030
|
externalUrl: row.externalUrl,
|
|
15048
15031
|
targetPlatform: _nullishCoalesce(row.targetPlatform, () => ( null))
|
|
15049
15032
|
});
|
|
15050
|
-
href = composed.href ? _nullishCoalesce(
|
|
15033
|
+
href = composed.href ? _nullishCoalesce(_chunkHEQ4GPYEcjs.safeHref.call(void 0, composed.href), () => ( null)) : null;
|
|
15051
15034
|
targetPlatform = composed.targetPlatform;
|
|
15052
15035
|
} else if (row.externalUrl) {
|
|
15053
|
-
href = _nullishCoalesce(
|
|
15036
|
+
href = _nullishCoalesce(_chunkHEQ4GPYEcjs.safeHref.call(void 0, row.externalUrl), () => ( null));
|
|
15054
15037
|
targetPlatform = _nullishCoalesce(row.targetPlatform, () => ( null));
|
|
15055
15038
|
}
|
|
15056
15039
|
const documentType = row.documentType;
|
|
@@ -15117,7 +15100,7 @@ function resolveCardDestination({
|
|
|
15117
15100
|
itemHref: _nullishCoalesce(_optionalChain([entry, 'access', _360 => _360.fallbackHref, 'optionalCall', _361 => _361(item)]), () => ( null)),
|
|
15118
15101
|
allowComposed: !entry.noComposedHref
|
|
15119
15102
|
});
|
|
15120
|
-
const url = choice ? _nullishCoalesce(
|
|
15103
|
+
const url = choice ? _nullishCoalesce(_chunkHEQ4GPYEcjs.safeHref.call(void 0, choice.href), () => ( null)) : null;
|
|
15121
15104
|
if (choice && url) {
|
|
15122
15105
|
return { url, targetPlatform: _nullishCoalesce(choice.targetPlatform, () => ( rowPlatform)), path, source: choice.source };
|
|
15123
15106
|
}
|
|
@@ -15130,11 +15113,11 @@ function resolveCardDestination({
|
|
|
15130
15113
|
|
|
15131
15114
|
function DeletedDataCard({ title, entityLabel, recoveryNote, className }) {
|
|
15132
15115
|
const label = entityLabel || "Item";
|
|
15133
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: `${
|
|
15134
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className:
|
|
15135
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className:
|
|
15136
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className:
|
|
15137
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className:
|
|
15116
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: `${_chunkHEQ4GPYEcjs.COMPACT_CARD_OUTER_STATIC} opacity-70 ${_nullishCoalesce(className, () => ( ""))}`, children: [
|
|
15117
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunkHEQ4GPYEcjs.COMPACT_CARD_ICON_SLOT, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.Trash2, { className: "h-4 w-4 text-ods-text-secondary" }) }),
|
|
15118
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunkHEQ4GPYEcjs.COMPACT_CARD_TEXT_COL, children: [
|
|
15119
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunkHEQ4GPYEcjs.COMPACT_CARD_TITLE_ROW, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: `${_chunkHEQ4GPYEcjs.COMPACT_CARD_TITLE} text-ods-text-secondary line-through`, children: title || `Deleted ${label.toLowerCase()}` }) }),
|
|
15120
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunkHEQ4GPYEcjs.COMPACT_CARD_META_ROW, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "text-ods-text-secondary", children: [
|
|
15138
15121
|
label,
|
|
15139
15122
|
" deleted",
|
|
15140
15123
|
recoveryNote ? ` \xB7 ${recoveryNote}` : ""
|
|
@@ -15189,7 +15172,7 @@ function GitHubChatCard({
|
|
|
15189
15172
|
description,
|
|
15190
15173
|
icon: githubKindIcon(kind),
|
|
15191
15174
|
status,
|
|
15192
|
-
anchorProps:
|
|
15175
|
+
anchorProps: _chunkHEQ4GPYEcjs.buildAnchorProps.call(void 0, chatRef.url, isNewTab),
|
|
15193
15176
|
menuGroups: cardMenuGroups(chatRef.url, discuss),
|
|
15194
15177
|
menuAriaLabel: "Activity actions"
|
|
15195
15178
|
}
|
|
@@ -15336,7 +15319,7 @@ function HubspotTicketChatCard({
|
|
|
15336
15319
|
description: _nullishCoalesce(chatRef.preview, () => ( void 0)),
|
|
15337
15320
|
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVX4E6YSBcjs.TagIcon, { size: 24 }),
|
|
15338
15321
|
status: statusText ? { label: statusText, variant: hubspotStatusToVariant(status) } : void 0,
|
|
15339
|
-
anchorProps:
|
|
15322
|
+
anchorProps: _chunkHEQ4GPYEcjs.buildAnchorProps.call(void 0, chatRef.url, isNewTab),
|
|
15340
15323
|
menuGroups: cardMenuGroups(chatRef.url, discuss, {
|
|
15341
15324
|
label: "Open Ticket Details",
|
|
15342
15325
|
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVX4E6YSBcjs.TagIcon, { size: 20 })
|
|
@@ -15359,7 +15342,7 @@ function FaqChatCard({
|
|
|
15359
15342
|
description: _nullishCoalesce(chatRef.preview, () => ( void 0)),
|
|
15360
15343
|
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVX4E6YSBcjs.QuestionCircleIcon, { size: 24 }),
|
|
15361
15344
|
status: { label: statusLabel, variant: "grey" },
|
|
15362
|
-
anchorProps:
|
|
15345
|
+
anchorProps: _chunkHEQ4GPYEcjs.buildAnchorProps.call(void 0, chatRef.url, isNewTab),
|
|
15363
15346
|
menuGroups: cardMenuGroups(chatRef.url, discuss),
|
|
15364
15347
|
menuAriaLabel: "FAQ actions"
|
|
15365
15348
|
}
|
|
@@ -15379,7 +15362,7 @@ function SlackChatCard({
|
|
|
15379
15362
|
title,
|
|
15380
15363
|
description: _nullishCoalesce(chatRef.preview, () => ( void 0)),
|
|
15381
15364
|
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVX4E6YSBcjs.SlackLogoGreyIcon, { size: 24 }),
|
|
15382
|
-
anchorProps:
|
|
15365
|
+
anchorProps: _chunkHEQ4GPYEcjs.buildAnchorProps.call(void 0, chatRef.url, isNewTab),
|
|
15383
15366
|
menuGroups: cardMenuGroups(chatRef.url, discuss),
|
|
15384
15367
|
menuAriaLabel: "Message actions"
|
|
15385
15368
|
}
|
|
@@ -15397,7 +15380,7 @@ function GlyphChatCard({
|
|
|
15397
15380
|
title: chatRef.title,
|
|
15398
15381
|
description: _nullishCoalesce(chatRef.preview, () => ( void 0)),
|
|
15399
15382
|
icon,
|
|
15400
|
-
anchorProps:
|
|
15383
|
+
anchorProps: _chunkHEQ4GPYEcjs.buildAnchorProps.call(void 0, chatRef.url, isNewTab),
|
|
15401
15384
|
menuGroups: cardMenuGroups(chatRef.url, discuss),
|
|
15402
15385
|
menuAriaLabel: "Card actions"
|
|
15403
15386
|
}
|
|
@@ -15415,20 +15398,20 @@ function TrustCenterChatCard({
|
|
|
15415
15398
|
}) {
|
|
15416
15399
|
const raw = _optionalChain([item, 'optionalAccess', _385 => _385.frameworks]);
|
|
15417
15400
|
const frameworks = Array.isArray(raw) ? raw : [];
|
|
15418
|
-
const summary =
|
|
15401
|
+
const summary = _chunkHEQ4GPYEcjs.trustFrameworksSummary.call(void 0, frameworks);
|
|
15419
15402
|
const leadFramework = frameworks[0];
|
|
15420
15403
|
const lead = leadFramework ? {
|
|
15421
|
-
label:
|
|
15422
|
-
color:
|
|
15404
|
+
label: _chunkHEQ4GPYEcjs.trustFrameworkBadge.call(void 0, leadFramework),
|
|
15405
|
+
color: _chunkHEQ4GPYEcjs.trustFrameworkMonitoringEntry.call(void 0, leadFramework.monitoring).color
|
|
15423
15406
|
} : void 0;
|
|
15424
15407
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
15425
15408
|
MingoInfoCard,
|
|
15426
15409
|
{
|
|
15427
|
-
title:
|
|
15428
|
-
description: summary ||
|
|
15410
|
+
title: _chunkHEQ4GPYEcjs.TRUST_CENTER_TITLE,
|
|
15411
|
+
description: summary || _chunkHEQ4GPYEcjs.TRUST_CENTER_TAGLINE,
|
|
15429
15412
|
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVX4E6YSBcjs.ShieldCheckIcon, { size: 24 }),
|
|
15430
15413
|
status: lead ? { label: lead.label, variant: TRUST_STATUS_TAG_VARIANT[lead.color] } : void 0,
|
|
15431
|
-
anchorProps:
|
|
15414
|
+
anchorProps: _chunkHEQ4GPYEcjs.buildAnchorProps.call(void 0, chatRef.url, isNewTab),
|
|
15432
15415
|
menuGroups: cardMenuGroups(chatRef.url, discuss, {
|
|
15433
15416
|
label: "View trust center",
|
|
15434
15417
|
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVX4E6YSBcjs.ShieldCheckIcon, { size: 20 })
|
|
@@ -15450,7 +15433,7 @@ function DataRoomDocChatCard({
|
|
|
15450
15433
|
description: _nullishCoalesce(chatRef.preview, () => ( void 0)),
|
|
15451
15434
|
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVX4E6YSBcjs.FileContentIcon, { size: 24 }),
|
|
15452
15435
|
status: { label: badgeText, variant: "grey" },
|
|
15453
|
-
anchorProps:
|
|
15436
|
+
anchorProps: _chunkHEQ4GPYEcjs.buildAnchorProps.call(void 0, chatRef.url, isNewTab),
|
|
15454
15437
|
menuGroups: cardMenuGroups(chatRef.url, discuss),
|
|
15455
15438
|
menuAriaLabel: "Document actions"
|
|
15456
15439
|
}
|
|
@@ -15469,7 +15452,7 @@ function GenericFinancialChatCard({
|
|
|
15469
15452
|
title: chatRef.title,
|
|
15470
15453
|
description: subtitle,
|
|
15471
15454
|
icon,
|
|
15472
|
-
anchorProps:
|
|
15455
|
+
anchorProps: _chunkHEQ4GPYEcjs.buildAnchorProps.call(void 0, chatRef.url, isNewTab),
|
|
15473
15456
|
menuGroups: cardMenuGroups(chatRef.url, discuss),
|
|
15474
15457
|
menuAriaLabel: "Document actions"
|
|
15475
15458
|
}
|
|
@@ -15555,7 +15538,7 @@ function CampaignChatCard({
|
|
|
15555
15538
|
}) {
|
|
15556
15539
|
const goalsCount = Array.isArray(_optionalChain([item, 'optionalAccess', _391 => _391.goals])) ? item.goals.length : 0;
|
|
15557
15540
|
const meta = [
|
|
15558
|
-
_optionalChain([item, 'optionalAccess', _392 => _392.start_date]) ?
|
|
15541
|
+
_optionalChain([item, 'optionalAccess', _392 => _392.start_date]) ? _chunkHEQ4GPYEcjs.formatDateShort.call(void 0, item.start_date) : null,
|
|
15559
15542
|
goalsCount > 0 ? `${goalsCount} goal${goalsCount !== 1 ? "s" : ""}` : null,
|
|
15560
15543
|
"Marketing campaign"
|
|
15561
15544
|
].filter(Boolean).join(" \xB7 ");
|
|
@@ -15594,7 +15577,7 @@ function EntityMingoCard({
|
|
|
15594
15577
|
imageAlt: typeof title === "string" ? title : void 0,
|
|
15595
15578
|
icon: fallbackIcon,
|
|
15596
15579
|
status,
|
|
15597
|
-
anchorProps:
|
|
15580
|
+
anchorProps: _chunkHEQ4GPYEcjs.buildAnchorProps.call(void 0, chatRef.url, isNewTab),
|
|
15598
15581
|
menuGroups: cardMenuGroups(chatRef.url, discuss, openDetails, externalLink),
|
|
15599
15582
|
menuAriaLabel
|
|
15600
15583
|
}
|
|
@@ -15606,7 +15589,7 @@ function entityCover(image, ogPlaceholder) {
|
|
|
15606
15589
|
function statusPill(status) {
|
|
15607
15590
|
const s = typeof status === "string" ? status.trim() : "";
|
|
15608
15591
|
if (!s) return void 0;
|
|
15609
|
-
const scheme =
|
|
15592
|
+
const scheme = _chunkHEQ4GPYEcjs.getStatusColorScheme.call(void 0, s);
|
|
15610
15593
|
const variant = scheme === "success" || scheme === "error" || scheme === "warning" ? scheme : "grey";
|
|
15611
15594
|
return { label: s, variant };
|
|
15612
15595
|
}
|
|
@@ -15697,7 +15680,7 @@ function DesignDocChatCard({
|
|
|
15697
15680
|
description: doc ? [designDocMetaLine(doc), formatCompletionLabel(doc.completion)].join(" \xB7 ") : _nullishCoalesce(displayRef.preview, () => ( void 0)),
|
|
15698
15681
|
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVX4E6YSBcjs.FileContentIcon, { size: 24 }),
|
|
15699
15682
|
status: readiness ? { label: readiness.label, variant: readiness.scheme === "success" ? "success" : "grey" } : { label: "Design doc", variant: "grey" },
|
|
15700
|
-
anchorProps:
|
|
15683
|
+
anchorProps: _chunkHEQ4GPYEcjs.buildAnchorProps.call(void 0, displayRef.url, isNewTab),
|
|
15701
15684
|
menuGroups: cardMenuGroups(displayRef.url, discuss),
|
|
15702
15685
|
menuAriaLabel: "Design doc actions"
|
|
15703
15686
|
}
|
|
@@ -15715,7 +15698,7 @@ function InvestorUpdateChatCard({
|
|
|
15715
15698
|
EntityMingoCard,
|
|
15716
15699
|
{
|
|
15717
15700
|
title,
|
|
15718
|
-
description: _optionalChain([item, 'optionalAccess', _422 => _422.strategic_update]) || _optionalChain([item, 'optionalAccess', _423 => _423.content]) ||
|
|
15701
|
+
description: _optionalChain([item, 'optionalAccess', _422 => _422.strategic_update]) || _optionalChain([item, 'optionalAccess', _423 => _423.content]) || _chunkHEQ4GPYEcjs.formatInvestorUpdatePeriod.call(void 0, _nullishCoalesce(_optionalChain([item, 'optionalAccess', _424 => _424.period_start]), () => ( null)), _nullishCoalesce(_optionalChain([item, 'optionalAccess', _425 => _425.period_end]), () => ( null))) || void 0,
|
|
15719
15702
|
cover: entityCover(_optionalChain([item, 'optionalAccess', _426 => _426.featured_image]), ogPlaceholder),
|
|
15720
15703
|
fallbackIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVX4E6YSBcjs.PresentationLineIcon, { size: 24 }),
|
|
15721
15704
|
status: { label: "Investor update", variant: "grey" },
|
|
@@ -15759,7 +15742,7 @@ function ProgramChatCard({
|
|
|
15759
15742
|
discuss
|
|
15760
15743
|
}) {
|
|
15761
15744
|
const icon = configKey === "webinar" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVX4E6YSBcjs.PresentationBarIcon, { size: 24 }) : configKey === "event" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVX4E6YSBcjs.CalendarIcon, { size: 24 }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVX4E6YSBcjs.MicrophoneIcon, { size: 24 });
|
|
15762
|
-
const { line: meta } =
|
|
15745
|
+
const { line: meta } = _chunkHEQ4GPYEcjs.programMetaLine.call(void 0, _nullishCoalesce(item, () => ( {})), configKey, _chunkHEQ4GPYEcjs.programMetaFormatters.call(void 0, _chunkHEQ4GPYEcjs.PROGRAM_META_RENDERERS));
|
|
15763
15746
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
15764
15747
|
EntityMingoCard,
|
|
15765
15748
|
{
|
|
@@ -15785,7 +15768,7 @@ function RoadmapChatCard({
|
|
|
15785
15768
|
const logoUrl = typeof _optionalChain([item, 'optionalAccess', _436 => _436.icon]) === "string" && item.icon.startsWith("http") ? item.icon : void 0;
|
|
15786
15769
|
const useTypeIcon = cardType === "internal_task" || !logoUrl && _optionalChain([item, 'optionalAccess', _437 => _437.customItemId]) != null;
|
|
15787
15770
|
const defaultIcon = cardType === "delivery_item" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVX4E6YSBcjs.TruckFastIcon, { size: 24 }) : cardType === "internal_task" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVX4E6YSBcjs.CheckSquareIcon, { size: 24 }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVX4E6YSBcjs.MapIcon, { size: 24 });
|
|
15788
|
-
const icon = useTypeIcon ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
15771
|
+
const icon = useTypeIcon ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHEQ4GPYEcjs.TaskTypeIcon, { customItemId: _optionalChain([item, 'optionalAccess', _438 => _438.customItemId]), className: "size-6" }) : logoUrl ? (
|
|
15789
15772
|
// Contained (not full-bleed) so the integration logo keeps its aspect
|
|
15790
15773
|
// ratio inside the bordered icon box — matches RoadmapCard.
|
|
15791
15774
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMGHIV4L6cjs.next_image_default, { src: logoUrl, alt: "", className: "size-6 object-contain", width: 24, height: 24, unoptimized: true })
|
|
@@ -15821,11 +15804,11 @@ function refHydratedEntry(docType, label, renderRef) {
|
|
|
15821
15804
|
};
|
|
15822
15805
|
}
|
|
15823
15806
|
var FINANCIAL_CARD_CONFIGS = {
|
|
15824
|
-
financial_kpi: { label: "Financial KPI"
|
|
15825
|
-
cap_table: { label: "Cap table entry"
|
|
15826
|
-
profit_loss: { label: "P&L period"
|
|
15827
|
-
balance_sheet: { label: "Balance sheet"
|
|
15828
|
-
cash_flow: { label: "Cash flow"
|
|
15807
|
+
financial_kpi: { label: "Financial KPI" },
|
|
15808
|
+
cap_table: { label: "Cap table entry" },
|
|
15809
|
+
profit_loss: { label: "P&L period" },
|
|
15810
|
+
balance_sheet: { label: "Balance sheet" },
|
|
15811
|
+
cash_flow: { label: "Cash flow" }
|
|
15829
15812
|
};
|
|
15830
15813
|
function registryEntries(configs, build) {
|
|
15831
15814
|
const out = {};
|
|
@@ -15839,7 +15822,7 @@ function financialRegistryEntries() {
|
|
|
15839
15822
|
GenericFinancialChatCard,
|
|
15840
15823
|
{
|
|
15841
15824
|
chatRef: displayRef,
|
|
15842
|
-
icon:
|
|
15825
|
+
icon: sourceGlyph(docType),
|
|
15843
15826
|
isNewTab: opts.isNewTab,
|
|
15844
15827
|
discuss: opts.discuss
|
|
15845
15828
|
}
|
|
@@ -15851,11 +15834,11 @@ function refText(ref, key) {
|
|
|
15851
15834
|
return typeof value === "string" && value.length > 0 ? value : null;
|
|
15852
15835
|
}
|
|
15853
15836
|
function VendorGlyph({ title, logoUrl }) {
|
|
15854
|
-
if (!logoUrl) return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
15837
|
+
if (!logoUrl) return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHEQ4GPYEcjs.EntityIcon, { icon: { name: SOURCE_ICON_NAMES.vendors }, size: 24 });
|
|
15855
15838
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, VendorIcon, { vendor: { title, logo_url: logoUrl }, size: "xs", showBackground: false });
|
|
15856
15839
|
}
|
|
15857
15840
|
function SitePageGlyph({ iconName }) {
|
|
15858
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
15841
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHEQ4GPYEcjs.EntityIcon, { icon: { name: _nullishCoalesce(iconName, () => ( SOURCE_ICON_NAMES["website-pages"])) }, size: 24 });
|
|
15859
15842
|
}
|
|
15860
15843
|
var GITHUB_CARD_CONFIGS = {
|
|
15861
15844
|
github_commit: { label: "GitHub commit", kind: "commit" },
|
|
@@ -15865,41 +15848,45 @@ var GITHUB_CARD_CONFIGS = {
|
|
|
15865
15848
|
github_pr_review: { label: "GitHub review", kind: "pr_review" },
|
|
15866
15849
|
github_pr_review_public: { label: "GitHub review (public)", kind: "pr_review" }
|
|
15867
15850
|
};
|
|
15868
|
-
var OpenFrameGlyph = _chunkJKWQWHNVcjs.resolveIcon.call(void 0, "openframe");
|
|
15869
15851
|
var REF_GLYPH_CARD_CONFIGS = {
|
|
15870
|
-
openframe_tenant: { label: "OpenFrame tenant"
|
|
15871
|
-
prospect_call: { label: "Prospect call",
|
|
15852
|
+
openframe_tenant: { label: "OpenFrame tenant" },
|
|
15853
|
+
prospect_call: { label: "Prospect call", media: true },
|
|
15872
15854
|
// Code intelligence (product-hub internal): the review rules a repository is
|
|
15873
15855
|
// held to, the repositories themselves, and one row per deployment
|
|
15874
15856
|
// environment. Glyph cards like their siblings — none of the three has a
|
|
15875
15857
|
// cover image, and a rule is read in the admin screen it links to.
|
|
15876
|
-
code_rule: { label: "Code rule"
|
|
15877
|
-
code_repo: { label: "Repository"
|
|
15878
|
-
code_deployment: { label: "Deployment"
|
|
15858
|
+
code_rule: { label: "Code rule" },
|
|
15859
|
+
code_repo: { label: "Repository" },
|
|
15860
|
+
code_deployment: { label: "Deployment" },
|
|
15879
15861
|
// The graph's own objects: one source file's public surface, one public
|
|
15880
15862
|
// symbol, a near-duplicate cluster, and a pull request's blast radius.
|
|
15881
15863
|
// Glyph cards for the same reason as their three siblings — none carries a
|
|
15882
15864
|
// cover image, and each links to the admin screen that renders it in full.
|
|
15883
|
-
code_file: { label: "Code file"
|
|
15884
|
-
code_symbol: { label: "Code symbol"
|
|
15885
|
-
code_duplicate: { label: "Duplicate code"
|
|
15886
|
-
code_impact: { label: "Change impact"
|
|
15865
|
+
code_file: { label: "Code file" },
|
|
15866
|
+
code_symbol: { label: "Code symbol" },
|
|
15867
|
+
code_duplicate: { label: "Duplicate code" },
|
|
15868
|
+
code_impact: { label: "Change impact" },
|
|
15887
15869
|
// A change set: pull requests across repositories declared as one change, with the ClickUp tasks and design
|
|
15888
15870
|
// docs its pull requests are attached to. ONE card for it wherever a set is shown (chat, a design doc's page).
|
|
15889
|
-
change_set: { label: "Change set"
|
|
15871
|
+
change_set: { label: "Change set" },
|
|
15890
15872
|
// A page of the public website (pricing, product, legal, and every page the navigation lists), read live
|
|
15891
15873
|
// from the data the page shows. A glyph card: a page has no cover of its own, and the card opens the page.
|
|
15892
15874
|
site_page: { label: "Website page", icon: (ref) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, SitePageGlyph, { iconName: refText(ref, "icon_name") }) },
|
|
15893
15875
|
// What OpenFrame charges, read live from its billing: the plan in force, or one AI model's token exchange
|
|
15894
15876
|
// rate. A glyph card; it opens the pricing page.
|
|
15895
|
-
openframe_price: { label: "OpenFrame price"
|
|
15877
|
+
openframe_price: { label: "OpenFrame price" },
|
|
15896
15878
|
// A vendor (product) of the OpenMSP directory. A glyph card; it opens the vendor's page there.
|
|
15897
15879
|
vendor: { label: "Vendor", icon: (ref) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, VendorGlyph, { title: _nullishCoalesce(_optionalChain([ref, 'optionalAccess', _444 => _444.title]), () => ( "")), logoUrl: refText(ref, "logo_url") }) }
|
|
15898
15880
|
};
|
|
15881
|
+
function sourceGlyph(docType) {
|
|
15882
|
+
const { Icon } = resolveSourceIcon({ sourceRepo: defaultTableIdForDocumentType(docType), documentType: docType });
|
|
15883
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Icon, { className: "size-6" });
|
|
15884
|
+
}
|
|
15899
15885
|
function refGlyphRegistryEntries() {
|
|
15900
|
-
return registryEntries(
|
|
15901
|
-
|
|
15902
|
-
|
|
15886
|
+
return registryEntries(REF_GLYPH_CARD_CONFIGS, (config, docType) => {
|
|
15887
|
+
const glyph = _nullishCoalesce(config.icon, () => ( (() => sourceGlyph(docType))));
|
|
15888
|
+
const cfg = config;
|
|
15889
|
+
return refHydratedEntry(
|
|
15903
15890
|
docType,
|
|
15904
15891
|
cfg.label,
|
|
15905
15892
|
(displayRef, opts) => cfg.media ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -15911,24 +15898,16 @@ function refGlyphRegistryEntries() {
|
|
|
15911
15898
|
_optionalChain([displayRef, 'access', _445 => _445.metadata, 'optionalAccess', _446 => _446.videoPoster]),
|
|
15912
15899
|
_nullishCoalesce(_optionalChain([opts, 'access', _447 => _447.extras, 'optionalAccess', _448 => _448.buildOgPlaceholderUrl, 'optionalCall', _449 => _449(_nullishCoalesce(displayRef.title, () => ( "")))]), () => ( null))
|
|
15913
15900
|
),
|
|
15914
|
-
fallbackIcon:
|
|
15901
|
+
fallbackIcon: glyph(displayRef),
|
|
15915
15902
|
status: { label: cfg.label, variant: "grey" },
|
|
15916
15903
|
chatRef: displayRef,
|
|
15917
15904
|
isNewTab: opts.isNewTab,
|
|
15918
15905
|
discuss: opts.discuss,
|
|
15919
15906
|
menuAriaLabel: `${cfg.label} actions`
|
|
15920
15907
|
}
|
|
15921
|
-
) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
15922
|
-
|
|
15923
|
-
|
|
15924
|
-
chatRef: displayRef,
|
|
15925
|
-
icon: cfg.icon(displayRef),
|
|
15926
|
-
isNewTab: opts.isNewTab,
|
|
15927
|
-
discuss: opts.discuss
|
|
15928
|
-
}
|
|
15929
|
-
)
|
|
15930
|
-
)
|
|
15931
|
-
);
|
|
15908
|
+
) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, GlyphChatCard, { chatRef: displayRef, icon: glyph(displayRef), isNewTab: opts.isNewTab, discuss: opts.discuss })
|
|
15909
|
+
);
|
|
15910
|
+
});
|
|
15932
15911
|
}
|
|
15933
15912
|
function fetchedEmployeeEntryDisplayRef(item, chatRef) {
|
|
15934
15913
|
const it = item;
|
|
@@ -15939,9 +15918,9 @@ function fetchedEmployeeEntryDisplayRef(item, chatRef) {
|
|
|
15939
15918
|
return { ...chatRef, title, preview: preview.length > 0 ? preview : chatRef.preview };
|
|
15940
15919
|
}
|
|
15941
15920
|
var EMPLOYEE_ENTRY_CARD_CONFIGS = {
|
|
15942
|
-
what_i_shipped: { label: "What I Shipped"
|
|
15943
|
-
how_i_work: { label: "How I Work"
|
|
15944
|
-
ai_prompt: { label: "Squawkbox"
|
|
15921
|
+
what_i_shipped: { label: "What I Shipped" },
|
|
15922
|
+
how_i_work: { label: "How I Work" },
|
|
15923
|
+
ai_prompt: { label: "Squawkbox" }
|
|
15945
15924
|
};
|
|
15946
15925
|
function employeeEntryRegistryEntries() {
|
|
15947
15926
|
return registryEntries(EMPLOYEE_ENTRY_CARD_CONFIGS, (cfg, docType) => ({
|
|
@@ -15953,7 +15932,7 @@ function employeeEntryRegistryEntries() {
|
|
|
15953
15932
|
GlyphChatCard,
|
|
15954
15933
|
{
|
|
15955
15934
|
chatRef: fetchedEmployeeEntryDisplayRef(item, chatRef),
|
|
15956
|
-
icon:
|
|
15935
|
+
icon: sourceGlyph(docType),
|
|
15957
15936
|
isNewTab: opts.isNewTab,
|
|
15958
15937
|
discuss: opts.discuss
|
|
15959
15938
|
}
|
|
@@ -15976,7 +15955,7 @@ function programRegistryEntries() {
|
|
|
15976
15955
|
label: cfg.label,
|
|
15977
15956
|
contentRefType: cfg.contentRefType,
|
|
15978
15957
|
bareInline: true,
|
|
15979
|
-
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
15958
|
+
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHEQ4GPYEcjs.ProgramCardSkeleton, { size: "sm" }),
|
|
15980
15959
|
render: (item, chatRef, opts) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
15981
15960
|
ProgramChatCard,
|
|
15982
15961
|
{
|
|
@@ -16017,7 +15996,7 @@ function roadmapRegistryEntries() {
|
|
|
16017
15996
|
bareInline: true,
|
|
16018
15997
|
...cfg.noComposedHref ? { noComposedHref: true } : {},
|
|
16019
15998
|
...cfg.fallbackHref ? { fallbackHref: cfg.fallbackHref } : {},
|
|
16020
|
-
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
15999
|
+
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHEQ4GPYEcjs.RoadmapCardSkeleton, { size: "sm" }),
|
|
16021
16000
|
render: (item, chatRef, opts) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
16022
16001
|
RoadmapChatCard,
|
|
16023
16002
|
{
|
|
@@ -16075,12 +16054,12 @@ var CHAT_CARD_REGISTRY = {
|
|
|
16075
16054
|
// projection route; `extractCardItems` turns its object payload into the
|
|
16076
16055
|
// single matched row. Destination is the public page unless the host
|
|
16077
16056
|
// re-homes the type (`composeContentUrl` override).
|
|
16078
|
-
[
|
|
16057
|
+
[_chunkHEQ4GPYEcjs.TRUST_CENTER_DOCUMENT_TYPE]: {
|
|
16079
16058
|
label: "Trust center",
|
|
16080
16059
|
bareInline: true,
|
|
16081
|
-
contentRefType:
|
|
16060
|
+
contentRefType: _chunkHEQ4GPYEcjs.TRUST_CENTER_DOCUMENT_TYPE,
|
|
16082
16061
|
noComposedHref: true,
|
|
16083
|
-
fallbackHref: () =>
|
|
16062
|
+
fallbackHref: () => _chunkHEQ4GPYEcjs.TRUST_CENTER_PAGE_PATH,
|
|
16084
16063
|
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, MingoInfoCardSkeleton, {}),
|
|
16085
16064
|
render: (item, chatRef, opts) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TrustCenterChatCard, { item, chatRef, isNewTab: opts.isNewTab, discuss: opts.discuss })
|
|
16086
16065
|
},
|
|
@@ -16106,7 +16085,7 @@ var CHAT_CARD_REGISTRY = {
|
|
|
16106
16085
|
label: "Blog post",
|
|
16107
16086
|
contentRefType: "blog_post_existing",
|
|
16108
16087
|
bareInline: true,
|
|
16109
|
-
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
16088
|
+
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHEQ4GPYEcjs.BlogCardSkeleton, { size: "sm" }),
|
|
16110
16089
|
render: (item, chatRef, opts) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
16111
16090
|
BlogChatCard,
|
|
16112
16091
|
{
|
|
@@ -16123,7 +16102,7 @@ var CHAT_CARD_REGISTRY = {
|
|
|
16123
16102
|
label: "Case study",
|
|
16124
16103
|
contentRefType: "case_study",
|
|
16125
16104
|
bareInline: true,
|
|
16126
|
-
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
16105
|
+
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHEQ4GPYEcjs.CaseStudyCardSkeleton, { size: "sm" }),
|
|
16127
16106
|
render: (item, chatRef, opts) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
16128
16107
|
CaseStudyChatCard,
|
|
16129
16108
|
{
|
|
@@ -16148,7 +16127,7 @@ var CHAT_CARD_REGISTRY = {
|
|
|
16148
16127
|
label: "Customer interview",
|
|
16149
16128
|
contentRefType: "customer_interview",
|
|
16150
16129
|
bareInline: true,
|
|
16151
|
-
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
16130
|
+
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHEQ4GPYEcjs.CustomerInterviewCardSkeleton, { size: "sm" }),
|
|
16152
16131
|
render: (item, chatRef, opts) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
16153
16132
|
CustomerInterviewChatCard,
|
|
16154
16133
|
{
|
|
@@ -16164,9 +16143,9 @@ var CHAT_CARD_REGISTRY = {
|
|
|
16164
16143
|
label: "Product release",
|
|
16165
16144
|
contentRefType: "product_release",
|
|
16166
16145
|
bareInline: true,
|
|
16167
|
-
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
16146
|
+
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHEQ4GPYEcjs.ProductReleaseCardSkeleton, { size: "sm" }),
|
|
16168
16147
|
render: (item, chatRef, opts) => {
|
|
16169
|
-
const builder = _nullishCoalesce(_optionalChain([opts, 'optionalAccess', _479 => _479.extras, 'optionalAccess', _480 => _480.buildProductReleaseCardProps]), () => (
|
|
16148
|
+
const builder = _nullishCoalesce(_optionalChain([opts, 'optionalAccess', _479 => _479.extras, 'optionalAccess', _480 => _480.buildProductReleaseCardProps]), () => ( _chunkHEQ4GPYEcjs.defaultBuildProductReleaseCardProps));
|
|
16170
16149
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
16171
16150
|
ProductReleaseChatCard,
|
|
16172
16151
|
{
|
|
@@ -16184,7 +16163,7 @@ var CHAT_CARD_REGISTRY = {
|
|
|
16184
16163
|
label: "Investor update",
|
|
16185
16164
|
contentRefType: "investor_update",
|
|
16186
16165
|
bareInline: true,
|
|
16187
|
-
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
16166
|
+
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHEQ4GPYEcjs.InvestorUpdateCardSkeleton, { size: "sm" }),
|
|
16188
16167
|
render: (item, chatRef, opts) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
16189
16168
|
InvestorUpdateChatCard,
|
|
16190
16169
|
{
|
|
@@ -16202,7 +16181,7 @@ var CHAT_CARD_REGISTRY = {
|
|
|
16202
16181
|
bareInline: true,
|
|
16203
16182
|
// "Display" affordance (verbatim guide body) instead of "Ask".
|
|
16204
16183
|
displayAction: true,
|
|
16205
|
-
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
16184
|
+
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHEQ4GPYEcjs.OnboardingGuideCardSkeleton, { size: "sm" }),
|
|
16206
16185
|
render: (item, chatRef, opts) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
16207
16186
|
OnboardingGuideChatCard,
|
|
16208
16187
|
{
|
|
@@ -16286,7 +16265,7 @@ function ChatCardLoader({
|
|
|
16286
16265
|
};
|
|
16287
16266
|
const fetchedTitle = fetchEntry && item ? readFetchedCardTitle(item) : null;
|
|
16288
16267
|
const finalChatRef = fetchedTitle && (!hrefResolvedChatRef.title || hrefResolvedChatRef.title === hrefResolvedChatRef.id) ? { ...hrefResolvedChatRef, title: fetchedTitle } : hrefResolvedChatRef;
|
|
16289
|
-
const isNewTab =
|
|
16268
|
+
const isNewTab = _chunkHEQ4GPYEcjs.computeIsNewTab.call(void 0, runtime, finalChatRef.url, _nullishCoalesce(finalChatRef.targetPlatform, () => ( null)));
|
|
16290
16269
|
const useDisplay = !!entry.displayAction && !!onDisplay;
|
|
16291
16270
|
const discussFn = useDisplay ? onDisplay : onDiscuss;
|
|
16292
16271
|
const discuss = discussFn ? {
|
|
@@ -16422,12 +16401,12 @@ function makeBatchDedupKey(item) {
|
|
|
16422
16401
|
return `${item.messageType}:${seq}:${type}:${text2}:${integratedToolType}:${toolFunction}:${approvalRequestId}`;
|
|
16423
16402
|
}
|
|
16424
16403
|
function getChatTypeMessageType(chatType) {
|
|
16425
|
-
return chatType ===
|
|
16404
|
+
return chatType === _chunkNJV3LIDEcjs.CHAT_TYPE.ADMIN ? "admin-message" : "message";
|
|
16426
16405
|
}
|
|
16427
16406
|
function useChunkCatchup({
|
|
16428
16407
|
dialogId,
|
|
16429
16408
|
onChunkReceived,
|
|
16430
|
-
chatTypes = [
|
|
16409
|
+
chatTypes = [_chunkNJV3LIDEcjs.CHAT_TYPE.CLIENT],
|
|
16431
16410
|
fetchChunks
|
|
16432
16411
|
}) {
|
|
16433
16412
|
const processedSequenceKeys = _react.useRef.call(void 0, /* @__PURE__ */ new Set());
|
|
@@ -17725,7 +17704,7 @@ function useChatAttachmentImageGallery() {
|
|
|
17725
17704
|
return () => root.removeEventListener("click", onClick);
|
|
17726
17705
|
}, [viewUrlPrefix]);
|
|
17727
17706
|
const modal = state.isOpen ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
17728
|
-
|
|
17707
|
+
_chunkHEQ4GPYEcjs.ImageGalleryModal,
|
|
17729
17708
|
{
|
|
17730
17709
|
images: state.images,
|
|
17731
17710
|
isOpen: state.isOpen,
|
|
@@ -18465,7 +18444,7 @@ function nullableText(value) {
|
|
|
18465
18444
|
}
|
|
18466
18445
|
function httpsUrl(value) {
|
|
18467
18446
|
const candidate = text(value);
|
|
18468
|
-
if (!candidate ||
|
|
18447
|
+
if (!candidate || _chunkHEQ4GPYEcjs.UNSAFE_URL_CHARS.test(candidate)) return void 0;
|
|
18469
18448
|
try {
|
|
18470
18449
|
return new URL(candidate).protocol === "https:" ? candidate : void 0;
|
|
18471
18450
|
} catch (e43) {
|
|
@@ -22101,12 +22080,12 @@ function extractIncompleteTailState(messages) {
|
|
|
22101
22080
|
|
|
22102
22081
|
// src/components/chat/utils/process-historical-messages.ts
|
|
22103
22082
|
function getOwnerDisplayName(owner) {
|
|
22104
|
-
if (_optionalChain([owner, 'optionalAccess', _715 => _715.type]) ===
|
|
22083
|
+
if (_optionalChain([owner, 'optionalAccess', _715 => _715.type]) === _chunkNJV3LIDEcjs.OWNER_TYPE.ADMIN && owner.user) {
|
|
22105
22084
|
const { firstName, lastName } = owner.user;
|
|
22106
22085
|
const name = [firstName, lastName].filter(Boolean).join(" ");
|
|
22107
22086
|
if (name) return name;
|
|
22108
22087
|
}
|
|
22109
|
-
return _optionalChain([owner, 'optionalAccess', _716 => _716.type]) ===
|
|
22088
|
+
return _optionalChain([owner, 'optionalAccess', _716 => _716.type]) === _chunkNJV3LIDEcjs.OWNER_TYPE.ADMIN ? "Admin" : "You";
|
|
22110
22089
|
}
|
|
22111
22090
|
function getOwnerAvatar(owner) {
|
|
22112
22091
|
return _nullishCoalesce(_optionalChain([owner, 'optionalAccess', _717 => _717.user, 'optionalAccess', _718 => _718.image, 'optionalAccess', _719 => _719.imageUrl]), () => ( void 0));
|
|
@@ -22538,10 +22517,10 @@ function processHistoricalMessages(messages, options = {}) {
|
|
|
22538
22517
|
pushStandaloneMessages(processedMessages, msg, messageDataArray);
|
|
22539
22518
|
return;
|
|
22540
22519
|
}
|
|
22541
|
-
const isUserMessage = _optionalChain([msg, 'access', _732 => _732.owner, 'optionalAccess', _733 => _733.type]) ===
|
|
22520
|
+
const isUserMessage = _optionalChain([msg, 'access', _732 => _732.owner, 'optionalAccess', _733 => _733.type]) === _chunkNJV3LIDEcjs.OWNER_TYPE.CLIENT || _optionalChain([msg, 'access', _734 => _734.owner, 'optionalAccess', _735 => _735.type]) === _chunkNJV3LIDEcjs.OWNER_TYPE.ADMIN;
|
|
22542
22521
|
if (isUserMessage) {
|
|
22543
22522
|
flushAssistantMessage();
|
|
22544
|
-
const userAuthorType = _optionalChain([msg, 'access', _736 => _736.owner, 'optionalAccess', _737 => _737.type]) ===
|
|
22523
|
+
const userAuthorType = _optionalChain([msg, 'access', _736 => _736.owner, 'optionalAccess', _737 => _737.type]) === _chunkNJV3LIDEcjs.OWNER_TYPE.ADMIN ? "admin" : "user";
|
|
22545
22524
|
messageDataArray.forEach((data) => {
|
|
22546
22525
|
if (data.type === MESSAGE_TYPE.TEXT && "text" in data && data.text) {
|
|
22547
22526
|
const rawContext = data.contextItems;
|
|
@@ -22592,7 +22571,7 @@ function processHistoricalMessages(messages, options = {}) {
|
|
|
22592
22571
|
});
|
|
22593
22572
|
const nextMsg = messages[index + 1];
|
|
22594
22573
|
const isLastMessage = index === messages.length - 1;
|
|
22595
|
-
const nextIsFromUser = nextMsg && (_optionalChain([nextMsg, 'access', _740 => _740.owner, 'optionalAccess', _741 => _741.type]) ===
|
|
22574
|
+
const nextIsFromUser = nextMsg && (_optionalChain([nextMsg, 'access', _740 => _740.owner, 'optionalAccess', _741 => _741.type]) === _chunkNJV3LIDEcjs.OWNER_TYPE.CLIENT || _optionalChain([nextMsg, 'access', _742 => _742.owner, 'optionalAccess', _743 => _743.type]) === _chunkNJV3LIDEcjs.OWNER_TYPE.ADMIN);
|
|
22596
22575
|
if (isLastMessage || nextIsFromUser) {
|
|
22597
22576
|
flushAssistantMessage();
|
|
22598
22577
|
}
|
|
@@ -24582,7 +24561,7 @@ function SourceChip({
|
|
|
24582
24561
|
const Icon = cta.icon;
|
|
24583
24562
|
const icon = /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Icon, { className: "h-3.5 w-3.5" });
|
|
24584
24563
|
const chipClass = chatChipClass({ tone: "secondary" });
|
|
24585
|
-
const decideTab = (href, targetPlatform) =>
|
|
24564
|
+
const decideTab = (href, targetPlatform) => _chunkHEQ4GPYEcjs.computeIsNewTab.call(void 0, runtime, href, targetPlatform);
|
|
24586
24565
|
if (src.items && src.items.length > 0) {
|
|
24587
24566
|
const dropdownItems = src.items.map((item) => {
|
|
24588
24567
|
const itemCta = resolveSourceRowCTA(
|
|
@@ -24675,7 +24654,7 @@ function SourceChip({
|
|
|
24675
24654
|
"a",
|
|
24676
24655
|
{
|
|
24677
24656
|
href: resolvedHref,
|
|
24678
|
-
...
|
|
24657
|
+
..._chunkHEQ4GPYEcjs.newTabAnchorAttrs.call(void 0, isNewTab),
|
|
24679
24658
|
onClick: buildClickHandler(resolvedHref, null, _nullishCoalesce(cta.targetPlatform, () => ( null)), isNewTab),
|
|
24680
24659
|
className: chipClass,
|
|
24681
24660
|
children: chipBody(src.name)
|
|
@@ -24691,7 +24670,7 @@ function SourceChip({
|
|
|
24691
24670
|
"a",
|
|
24692
24671
|
{
|
|
24693
24672
|
href: resolvedHref,
|
|
24694
|
-
...
|
|
24673
|
+
..._chunkHEQ4GPYEcjs.newTabAnchorAttrs.call(void 0, isNewTab),
|
|
24695
24674
|
onClick: buildClickHandler(resolvedHref, src.path, _nullishCoalesce(cta.targetPlatform, () => ( null)), isNewTab),
|
|
24696
24675
|
className: chipClass,
|
|
24697
24676
|
title: displayName,
|
|
@@ -24803,7 +24782,7 @@ function EmbeddableChatInner({
|
|
|
24803
24782
|
defaultActiveMode,
|
|
24804
24783
|
shell = "drawer",
|
|
24805
24784
|
closable = true,
|
|
24806
|
-
appearance =
|
|
24785
|
+
appearance = _chunkNJV3LIDEcjs.CHAT_APPEARANCE.CLASSIC,
|
|
24807
24786
|
onCollapse,
|
|
24808
24787
|
collapseTo = "list",
|
|
24809
24788
|
onExpand,
|
|
@@ -24821,7 +24800,7 @@ function EmbeddableChatInner({
|
|
|
24821
24800
|
handleRef
|
|
24822
24801
|
}) {
|
|
24823
24802
|
const shellLess = shell !== "drawer";
|
|
24824
|
-
const isV2 = appearance ===
|
|
24803
|
+
const isV2 = appearance === _chunkNJV3LIDEcjs.CHAT_APPEARANCE.V2;
|
|
24825
24804
|
const runtime = _chunkUJ7AXHRZcjs.useRequiredChatRuntime.call(void 0, );
|
|
24826
24805
|
const source = _nullishCoalesce(runtime.source, () => ( ""));
|
|
24827
24806
|
const commandsUrl = runtime.endpoints.commandsUrl;
|
|
@@ -24883,7 +24862,7 @@ function EmbeddableChatInner({
|
|
|
24883
24862
|
resolveSourceIcon: (sourceId) => {
|
|
24884
24863
|
const iconName = getSourceIconName(sourceId);
|
|
24885
24864
|
if (!iconName) return void 0;
|
|
24886
|
-
return { Icon:
|
|
24865
|
+
return { Icon: _chunkIITB5TJRcjs.resolveIcon.call(void 0, iconName, { variant: "brand" }), label: sourceId };
|
|
24887
24866
|
},
|
|
24888
24867
|
onAction: (cmd, actionId) => {
|
|
24889
24868
|
dispatchSlashCommandAction(actionId, cmd.id, chatInputRef);
|
|
@@ -25141,7 +25120,7 @@ function EmbeddableChatInner({
|
|
|
25141
25120
|
[askAbout, displayRef, resolvedBaseRoute, chipBasePlatform, extras]
|
|
25142
25121
|
);
|
|
25143
25122
|
const mingoAssistantIcon = _react.useMemo.call(void 0,
|
|
25144
|
-
() => effectiveAssistantIcon ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
25123
|
+
() => effectiveAssistantIcon ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHEQ4GPYEcjs.EntityIcon, { icon: effectiveAssistantIcon, size: 24 }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLLSUVPQCcjs.MingoIcon, { className: "h-6 w-6", cornerColor: "var(--ods-flamingo-cyan-base)" }),
|
|
25145
25124
|
[effectiveAssistantIcon]
|
|
25146
25125
|
);
|
|
25147
25126
|
const [timestampCache] = _react.useState.call(void 0, () => /* @__PURE__ */ new Map());
|
|
@@ -25913,7 +25892,7 @@ function EmbeddableChatInner({
|
|
|
25913
25892
|
`chip-skeleton-${i}`
|
|
25914
25893
|
)),
|
|
25915
25894
|
chipCommands.map((cmd) => {
|
|
25916
|
-
const Icon =
|
|
25895
|
+
const Icon = _chunkIITB5TJRcjs.resolveIcon.call(void 0, cmd.iconName);
|
|
25917
25896
|
const cmdId = cmd.id;
|
|
25918
25897
|
const label = _nullishCoalesce(cmd.label, () => ( `/${cmdId}`));
|
|
25919
25898
|
const cardActions = cmd.actions.map((action) => ({
|
|
@@ -25922,7 +25901,7 @@ function EmbeddableChatInner({
|
|
|
25922
25901
|
onClick: () => dispatchSlashCommandAction(action.id, cmdId, chatInputRef)
|
|
25923
25902
|
}));
|
|
25924
25903
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
25925
|
-
|
|
25904
|
+
_chunkNJV3LIDEcjs.MingoOnboardingCard,
|
|
25926
25905
|
{
|
|
25927
25906
|
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Icon, { size: 16 }),
|
|
25928
25907
|
title: label,
|
|
@@ -26260,13 +26239,13 @@ function ProxyCredentialsForm({ description, saved }) {
|
|
|
26260
26239
|
setStatus("Cleared. Requests use the session again.");
|
|
26261
26240
|
};
|
|
26262
26241
|
const setField = (field, value) => setOptional((prev) => ({ ...prev, [field]: value }));
|
|
26263
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
26242
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHEQ4GPYEcjs.Card, { children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkHEQ4GPYEcjs.CardContent, { className: "space-y-[var(--spacing-system-lf)] p-[var(--spacing-system-mf)]", children: [
|
|
26264
26243
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "header", { className: "flex flex-col gap-[var(--spacing-system-sf)] sm:flex-row sm:items-start sm:justify-between", children: [
|
|
26265
26244
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { children: [
|
|
26266
26245
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h2", { className: "text-ods-text-primary text-h3", children: "Proxy credentials" }),
|
|
26267
26246
|
description && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-ods-text-secondary text-h6", children: description })
|
|
26268
26247
|
] }),
|
|
26269
|
-
activeEmail && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "self-start", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
26248
|
+
activeEmail && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "self-start", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHEQ4GPYEcjs.StatusBadge, { singleLine: true, colorScheme: "success", text: `Active: ${activeEmail}` }) })
|
|
26270
26249
|
] }),
|
|
26271
26250
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
26272
26251
|
Section,
|