@flamingo-stack/openframe-frontend-core 0.0.789 → 0.0.791
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/build/export-map.json +1 -1
- package/dist/{case-study-card-FDDS5EG3.cjs → case-study-card-MCAM232N.cjs} +5 -5
- package/dist/{chunk-ZH7SZ46Q.cjs → chunk-2I2AXIBD.cjs} +856 -859
- package/dist/{chunk-IKCMAIJ7.cjs → chunk-3AN35WAO.cjs} +80 -80
- package/dist/{chunk-KO4IF7R2.cjs → chunk-3XSWE5FW.cjs} +3 -3
- package/dist/{chunk-RJIFPWO4.cjs → chunk-5MIGBLDC.cjs} +24 -24
- package/dist/{chunk-QELEIFHA.cjs → chunk-6TPROUHW.cjs} +52 -52
- package/dist/{chunk-N3PYKA3B.cjs → chunk-6ZPHUDTP.cjs} +5 -5
- package/dist/{chunk-G33O32RX.cjs → chunk-72NE4G63.cjs} +4 -4
- package/dist/{chunk-UB3C22AW.cjs → chunk-7EH7KKFW.cjs} +121 -121
- package/dist/{chunk-ORIXQCPX.cjs → chunk-7VXMO4XJ.cjs} +8 -8
- package/dist/{chunk-MFPTTZI5.cjs → chunk-ABZGBMC2.cjs} +40 -40
- package/dist/{chunk-YWPYSQYG.cjs → chunk-AT4C2YMA.cjs} +30 -1
- package/dist/{chunk-7A23WZY7.cjs → chunk-BIYLAAFI.cjs} +15 -15
- package/dist/{chunk-GDOJPPOF.cjs → chunk-C5EPWKM7.cjs} +50 -50
- package/dist/{chunk-3IJDTTOY.cjs → chunk-DRWPSN3A.cjs} +2 -2
- package/dist/{chunk-PPBNMZC5.cjs → chunk-EPWLLLGW.cjs} +13 -13
- package/dist/{chunk-KB7SPZFI.cjs → chunk-FBA6S4ES.cjs} +259 -258
- package/dist/{chunk-FJBE3WIJ.cjs → chunk-HCXNFMLO.cjs} +4 -4
- package/dist/{chunk-WDUHSGRT.cjs → chunk-HMV32LV4.cjs} +4 -4
- package/dist/{chunk-JHFSLLQ6.cjs → chunk-IHLGPIFO.cjs} +2 -2
- package/dist/{chunk-QVF5A6UT.cjs → chunk-LL6PXI6C.cjs} +2 -2
- package/dist/{chunk-HDCAH4AT.cjs → chunk-MIUFSOUN.cjs} +90 -90
- package/dist/{chunk-DNJVLDCH.cjs → chunk-O4TKEWNW.cjs} +31 -31
- package/dist/{chunk-W4RRVQZQ.cjs → chunk-OZIPPOSJ.cjs} +253 -246
- package/dist/{chunk-GMGM3JV3.cjs → chunk-P2JY2XCV.cjs} +54 -54
- package/dist/{chunk-7VEYDE3T.cjs → chunk-PQIWR4Q2.cjs} +23 -23
- package/dist/{chunk-IODLD4VM.cjs → chunk-RFIBRGXG.cjs} +3 -3
- package/dist/{chunk-6TFNJDEQ.cjs → chunk-RPC4P7GY.cjs} +60 -87
- package/dist/{chunk-MMC7H7C6.cjs → chunk-SXEIK7RU.cjs} +9 -9
- package/dist/{chunk-EQNNPLCN.cjs → chunk-TBGVWIF7.cjs} +14 -14
- package/dist/{chunk-F2GRQ2RL.cjs → chunk-UNUJ5YQ5.cjs} +4 -4
- package/dist/{chunk-7NUFHVR6.cjs → chunk-VUQNTCAL.cjs} +19 -19
- package/dist/{chunk-HOYSVWKQ.cjs → chunk-W3Q7ZQLS.cjs} +6 -6
- package/dist/{chunk-OCTDWSTS.cjs → chunk-YPWFYQFE.cjs} +39 -39
- package/dist/{chunk-4ZLLUZQB.cjs → chunk-YWNXZAQ2.cjs} +55 -55
- package/dist/{chunk-SBC7RG7O.cjs → chunk-ZCMXBX4Z.cjs} +14 -14
- package/dist/{chunk-ZKNEKZS5.cjs → chunk-ZW2TS775.cjs} +6 -6
- package/dist/{chunk-XI4KB7EF.cjs → chunk-ZZPGSLMO.cjs} +14 -14
- package/dist/{cloud-tenants-3SFM4VJZ.cjs → cloud-tenants-TTOYIEN3.cjs} +18 -18
- package/dist/components/case-studies/index.cjs +33 -33
- package/dist/components/chat/ask-display.d.ts.map +1 -1
- package/dist/components/chat/ask-display.js +2 -4
- package/dist/components/chat/index.cjs +14 -14
- package/dist/components/contact/index.cjs +19 -19
- package/dist/components/docs/index.cjs +22 -22
- package/dist/components/embeds/index.cjs +19 -19
- package/dist/components/faq/index.cjs +20 -20
- package/dist/components/features/cards-strip.d.ts.map +1 -1
- package/dist/components/features/cards-strip.js +4 -1
- package/dist/components/features/index.cjs +18 -18
- package/dist/components/help-center-pages/index.cjs +120 -120
- package/dist/components/index.cjs +122 -120
- package/dist/components/layout/page-heading.d.ts +7 -3
- package/dist/components/layout/page-heading.d.ts.map +1 -1
- package/dist/components/layout/page-heading.js +10 -3
- package/dist/components/layout/page-layout.d.ts +2 -2
- package/dist/components/layout/page-layout.d.ts.map +1 -1
- package/dist/components/layout/title-block.d.ts +2 -7
- package/dist/components/layout/title-block.d.ts.map +1 -1
- package/dist/components/layout/title-block.js +6 -31
- package/dist/components/loading/index.d.ts +1 -1
- package/dist/components/loading/index.d.ts.map +1 -1
- package/dist/components/loading/index.js +2 -0
- package/dist/components/loading/unified-skeleton.d.ts +17 -0
- package/dist/components/loading/unified-skeleton.d.ts.map +1 -1
- package/dist/components/loading/unified-skeleton.js +30 -1
- package/dist/components/meeting-scheduler/index.cjs +104 -104
- package/dist/components/navigation/index.cjs +21 -21
- package/dist/components/onboarding-guides/index.cjs +21 -21
- package/dist/components/product-demo/index.cjs +30 -30
- package/dist/components/related-content/index.cjs +11 -11
- package/dist/components/tickets/index.cjs +25 -25
- package/dist/components/ui/file-manager/index.cjs +13 -13
- package/dist/components/ui/image-gallery-modal.d.ts.map +1 -1
- package/dist/components/ui/image-gallery-modal.js +7 -5
- package/dist/components/ui/index.cjs +18 -18
- package/dist/components/ui/index.d.ts +1 -1
- package/dist/components/ui/index.d.ts.map +1 -1
- package/dist/components/ui/snap-carousel.d.ts.map +1 -1
- package/dist/components/ui/snap-carousel.js +9 -12
- package/dist/{devices-PE57CA5O.cjs → devices-SKWJYGUD.cjs} +19 -19
- package/dist/embed-shims/index.cjs +3 -3
- package/dist/embed-shims/next-image.cjs +3 -3
- package/dist/{embeddable-chat-TIUNTOXQ.cjs → embeddable-chat-54X3TTG4.cjs} +81 -81
- package/dist/hooks/index.cjs +4 -4
- package/dist/index.cjs +26 -26
- package/dist/{knowledge-ZFJQMMR2.cjs → knowledge-BPB2TROI.cjs} +19 -19
- package/dist/{logs-4GKGMB7A.cjs → logs-VIHYNQU4.cjs} +26 -26
- package/dist/{policies-TRWFGAEE.cjs → policies-YVNOCNNO.cjs} +22 -22
- package/dist/{remote-session-WMAV72M7.cjs → remote-session-WKLEYACD.cjs} +10 -10
- package/dist/{scripts-2SHRGH3L.cjs → scripts-MK5FCR7L.cjs} +25 -25
- package/dist/{software-update-ROHSE2BE.cjs → software-update-GDV75A2Z.cjs} +22 -22
- package/dist/{tickets-board-37LBIQ65.cjs → tickets-board-URMIIAKD.cjs} +10 -10
- package/package.json +1 -1
- package/src/components/chat/ask-display.tsx +2 -4
- package/src/components/features/cards-strip.tsx +6 -2
- package/src/components/layout/page-heading.tsx +30 -8
- package/src/components/layout/page-layout.tsx +3 -2
- package/src/components/layout/title-block.tsx +7 -29
- package/src/components/loading/index.ts +2 -0
- package/src/components/loading/unified-skeleton.tsx +42 -0
- package/src/components/ui/image-gallery-modal.tsx +10 -7
- package/src/components/ui/index.ts +1 -1
- package/src/components/ui/snap-carousel.tsx +12 -11
|
@@ -14,18 +14,18 @@
|
|
|
14
14
|
|
|
15
15
|
|
|
16
16
|
|
|
17
|
-
var
|
|
17
|
+
var _chunkFBA6S4EScjs = require('./chunk-FBA6S4ES.cjs');
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
|
|
22
22
|
|
|
23
|
-
var
|
|
23
|
+
var _chunkBIYLAAFIcjs = require('./chunk-BIYLAAFI.cjs');
|
|
24
24
|
|
|
25
25
|
|
|
26
26
|
|
|
27
27
|
|
|
28
|
-
var
|
|
28
|
+
var _chunkZCMXBX4Zcjs = require('./chunk-ZCMXBX4Z.cjs');
|
|
29
29
|
|
|
30
30
|
|
|
31
31
|
var _chunkSXGDKNVEcjs = require('./chunk-SXGDKNVE.cjs');
|
|
@@ -107,13 +107,13 @@ var _chunkJKX2C3I2cjs = require('./chunk-JKX2C3I2.cjs');
|
|
|
107
107
|
var _chunkEWPR7662cjs = require('./chunk-EWPR7662.cjs');
|
|
108
108
|
|
|
109
109
|
|
|
110
|
-
var
|
|
110
|
+
var _chunkZZPGSLMOcjs = require('./chunk-ZZPGSLMO.cjs');
|
|
111
111
|
|
|
112
112
|
|
|
113
113
|
|
|
114
114
|
|
|
115
115
|
|
|
116
|
-
var
|
|
116
|
+
var _chunkOZIPPOSJcjs = require('./chunk-OZIPPOSJ.cjs');
|
|
117
117
|
|
|
118
118
|
|
|
119
119
|
|
|
@@ -132,7 +132,7 @@ var _chunkW4RRVQZQcjs = require('./chunk-W4RRVQZQ.cjs');
|
|
|
132
132
|
|
|
133
133
|
|
|
134
134
|
|
|
135
|
-
var
|
|
135
|
+
var _chunkC5EPWKM7cjs = require('./chunk-C5EPWKM7.cjs');
|
|
136
136
|
|
|
137
137
|
|
|
138
138
|
|
|
@@ -141,7 +141,7 @@ var _chunkGDOJPPOFcjs = require('./chunk-GDOJPPOF.cjs');
|
|
|
141
141
|
|
|
142
142
|
|
|
143
143
|
|
|
144
|
-
var
|
|
144
|
+
var _chunk7VXMO4XJcjs = require('./chunk-7VXMO4XJ.cjs');
|
|
145
145
|
|
|
146
146
|
|
|
147
147
|
|
|
@@ -153,11 +153,11 @@ var _chunkORIXQCPXcjs = require('./chunk-ORIXQCPX.cjs');
|
|
|
153
153
|
var _chunk5GJM7VRRcjs = require('./chunk-5GJM7VRR.cjs');
|
|
154
154
|
|
|
155
155
|
|
|
156
|
-
var
|
|
156
|
+
var _chunkDRWPSN3Acjs = require('./chunk-DRWPSN3A.cjs');
|
|
157
157
|
|
|
158
158
|
|
|
159
159
|
|
|
160
|
-
var
|
|
160
|
+
var _chunkHCXNFMLOcjs = require('./chunk-HCXNFMLO.cjs');
|
|
161
161
|
|
|
162
162
|
|
|
163
163
|
var _chunkJRTDBPJTcjs = require('./chunk-JRTDBPJT.cjs');
|
|
@@ -165,7 +165,7 @@ var _chunkJRTDBPJTcjs = require('./chunk-JRTDBPJT.cjs');
|
|
|
165
165
|
|
|
166
166
|
|
|
167
167
|
|
|
168
|
-
var
|
|
168
|
+
var _chunkAT4C2YMAcjs = require('./chunk-AT4C2YMA.cjs');
|
|
169
169
|
|
|
170
170
|
|
|
171
171
|
var _chunkK7I3YYYUcjs = require('./chunk-K7I3YYYU.cjs');
|
|
@@ -204,14 +204,14 @@ function ChatMessageRow(props) {
|
|
|
204
204
|
}
|
|
205
205
|
function ChatMessageRowLoaded(props) {
|
|
206
206
|
const { displayName, avatarUrl, timeLabel, body, footer } = props;
|
|
207
|
-
const proxiedAvatar =
|
|
207
|
+
const proxiedAvatar = _chunkOZIPPOSJcjs.useProxiedImageUrl.call(void 0, _nullishCoalesce(avatarUrl, () => ( "")));
|
|
208
208
|
const resolvedAvatar = proxiedAvatar || avatarUrl || void 0;
|
|
209
209
|
const [failedSrc, setFailedSrc] = _react.useState.call(void 0, null);
|
|
210
210
|
const src = resolvedAvatar && resolvedAvatar !== failedSrc ? resolvedAvatar : void 0;
|
|
211
211
|
const hasBody = typeof body === "string" ? body.trim().length > 0 : body != null && body !== false;
|
|
212
212
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: ROW_CLASS, ..._chunk6YZNUHXTcjs.loadingItemProps.call(void 0, props), children: [
|
|
213
213
|
src ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
214
|
-
|
|
214
|
+
_chunkDRWPSN3Acjs.next_image_default,
|
|
215
215
|
{
|
|
216
216
|
src,
|
|
217
217
|
alt: displayName,
|
|
@@ -227,7 +227,7 @@ function ChatMessageRowLoaded(props) {
|
|
|
227
227
|
AVATAR_BOX_CLASS,
|
|
228
228
|
"flex items-center justify-center border border-ods-border bg-ods-bg text-ods-text-primary text-h6"
|
|
229
229
|
),
|
|
230
|
-
children:
|
|
230
|
+
children: _chunk7VXMO4XJcjs.personInitials.call(void 0, displayName) || "?"
|
|
231
231
|
}
|
|
232
232
|
),
|
|
233
233
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: CONTENT_CLASS, children: [
|
|
@@ -242,13 +242,13 @@ function ChatMessageRowLoaded(props) {
|
|
|
242
242
|
}
|
|
243
243
|
function ChatMessageRowLoading(markers) {
|
|
244
244
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: ROW_CLASS, ...markers, children: [
|
|
245
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
245
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkAT4C2YMAcjs.UnifiedSkeleton, { className: AVATAR_BOX_CLASS }),
|
|
246
246
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: CONTENT_CLASS, children: [
|
|
247
247
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: HEADER_CLASS, children: [
|
|
248
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
249
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
248
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkAT4C2YMAcjs.TextLineSkeleton, { type: "inherit", as: "span", className: _chunk6YZNUHXTcjs.cn.call(void 0, NAME_TYPE_CLASS, "w-24 md:w-32") }),
|
|
249
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkAT4C2YMAcjs.TextLineSkeleton, { type: "h6", as: "span", className: "w-12 flex-shrink-0 md:w-16" })
|
|
250
250
|
] }),
|
|
251
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
251
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkAT4C2YMAcjs.TextLineSkeleton, { type: "h6", lines: CHAT_MESSAGE_ROW_BODY_LINES })
|
|
252
252
|
] })
|
|
253
253
|
] });
|
|
254
254
|
}
|
|
@@ -312,10 +312,10 @@ function ChatTurnNameSkeleton({
|
|
|
312
312
|
}) {
|
|
313
313
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: NAME_ROW_CLASS, children: [
|
|
314
314
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: NAME_GROUP_CLASS, children: [
|
|
315
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
316
|
-
typeof meta === "string" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: META_CLASS, children: meta }) : meta && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
315
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkAT4C2YMAcjs.TextLineSkeleton, { type: NAME_TYPE[nameSize], className: "w-24" }),
|
|
316
|
+
typeof meta === "string" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: META_CLASS, children: meta }) : meta && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkAT4C2YMAcjs.TextLineSkeleton, { type: "h6", className: "w-20" })
|
|
317
317
|
] }),
|
|
318
|
-
time && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
318
|
+
time && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkAT4C2YMAcjs.TextLineSkeleton, { type: "h6", className: "w-12 shrink-0" })
|
|
319
319
|
] });
|
|
320
320
|
}
|
|
321
321
|
function ChatTurnSkeleton({
|
|
@@ -329,10 +329,10 @@ function ChatTurnSkeleton({
|
|
|
329
329
|
className
|
|
330
330
|
}) {
|
|
331
331
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk6YZNUHXTcjs.cn.call(void 0, TURN_ROW_CLASS, className), "aria-hidden": true, children: [
|
|
332
|
-
avatarPx ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
332
|
+
avatarPx ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7VXMO4XJcjs.SquareAvatar, { loading: true, sizePx: avatarPx, variant: avatarShape }) : null,
|
|
333
333
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: TURN_BODY_CLASS, children: [
|
|
334
334
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, ChatTurnNameSkeleton, { nameSize, meta, time }),
|
|
335
|
-
_nullishCoalesce(body, () => ( /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
335
|
+
_nullishCoalesce(body, () => ( /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkAT4C2YMAcjs.TextLineSkeleton, { lines, type: "h4" })))
|
|
336
336
|
] })
|
|
337
337
|
] });
|
|
338
338
|
}
|
|
@@ -2027,7 +2027,7 @@ function lastPathSegment(url) {
|
|
|
2027
2027
|
function makeComposeContentUrl(opts) {
|
|
2028
2028
|
const suffixes = _nullishCoalesce(opts.suffixes, () => ( DEFAULT_CONTENT_SUFFIXES));
|
|
2029
2029
|
return ({ type: rawType, identifier, slug: slugHint, externalUrl, targetPlatform, platforms }) => {
|
|
2030
|
-
const type =
|
|
2030
|
+
const type = _chunkOZIPPOSJcjs.canonicalContentRefType.call(void 0, rawType);
|
|
2031
2031
|
const override = opts.overrides && Object.prototype.hasOwnProperty.call(opts.overrides, type) ? opts.overrides[type] : void 0;
|
|
2032
2032
|
if (override) return { ...override(identifier), hostOverride: true };
|
|
2033
2033
|
const seg = _nullishCoalesce((Object.prototype.hasOwnProperty.call(suffixes, type) ? suffixes[type] : void 0), () => ( type));
|
|
@@ -2038,8 +2038,8 @@ function makeComposeContentUrl(opts) {
|
|
|
2038
2038
|
}
|
|
2039
2039
|
if (externalUrl) return { href: externalUrl, targetPlatform: _nullishCoalesce(targetPlatform, () => ( null)) };
|
|
2040
2040
|
const claimedOwner = _nullishCoalesce(targetPlatform, () => ( primaryPlatformOf(platforms)));
|
|
2041
|
-
const owner = claimedOwner &&
|
|
2042
|
-
const origin = owner ?
|
|
2041
|
+
const owner = claimedOwner && _chunkFBA6S4EScjs.byKey.call(void 0, claimedOwner) ? claimedOwner : null;
|
|
2042
|
+
const origin = owner ? _chunkFBA6S4EScjs.getPlatformProductionUrl.call(void 0, owner) : opts.contentOrigin;
|
|
2043
2043
|
return {
|
|
2044
2044
|
href: `${origin.replace(/\/+$/, "")}/${seg}/${_optionalChain([slugHint, 'optionalAccess', _80 => _80.trim, 'call', _81 => _81()]) || identifier}`,
|
|
2045
2045
|
// Report the owner so `decideNewTab` can compare it against the current
|
|
@@ -2220,7 +2220,7 @@ function extractSections(markdown, options = {}) {
|
|
|
2220
2220
|
if (heading.level > opts.maxLevel) continue;
|
|
2221
2221
|
let title = heading.text;
|
|
2222
2222
|
if (opts.stripFormattingMarkers) {
|
|
2223
|
-
title =
|
|
2223
|
+
title = _chunkFBA6S4EScjs.stripInlineMarkdown.call(void 0, title).trim();
|
|
2224
2224
|
}
|
|
2225
2225
|
const baseId = _chunkOJZBZH56cjs.slugifyHeadingBase.call(void 0, opts.removeEmojis ? _chunkOJZBZH56cjs.stripHeadingEmojis.call(void 0, title) : title);
|
|
2226
2226
|
const cleanId = baseId || `section-${sections.length + 1}`;
|
|
@@ -2535,7 +2535,7 @@ function demoClockTimes(seed, options = {}) {
|
|
|
2535
2535
|
function openAskAi(source, options) {
|
|
2536
2536
|
const prompt = _optionalChain([options, 'optionalAccess', _88 => _88.prompt, 'optionalAccess', _89 => _89.trim, 'call', _90 => _90()]);
|
|
2537
2537
|
const detail = prompt ? { source: _nullishCoalesce(source, () => ( "")), prompt } : { source: _nullishCoalesce(source, () => ( "")) };
|
|
2538
|
-
window.dispatchEvent(new CustomEvent(
|
|
2538
|
+
window.dispatchEvent(new CustomEvent(_chunkFBA6S4EScjs.ASK_AI_OPEN_EVENT, { detail }));
|
|
2539
2539
|
}
|
|
2540
2540
|
function MingoAiButton({
|
|
2541
2541
|
source,
|
|
@@ -2578,7 +2578,7 @@ function MingoAiButton({
|
|
|
2578
2578
|
{
|
|
2579
2579
|
...props,
|
|
2580
2580
|
type: "button",
|
|
2581
|
-
...{ [
|
|
2581
|
+
...{ [_chunkFBA6S4EScjs.ASK_AI_TRIGGER_ATTRIBUTE]: "" },
|
|
2582
2582
|
variant: field ? "glyph" : "transparent",
|
|
2583
2583
|
size: "wrap",
|
|
2584
2584
|
font: "regular",
|
|
@@ -2624,7 +2624,7 @@ function MingoAiButton({
|
|
|
2624
2624
|
children: icon
|
|
2625
2625
|
}
|
|
2626
2626
|
) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2627
|
-
|
|
2627
|
+
_chunkBIYLAAFIcjs.AgentMark,
|
|
2628
2628
|
{
|
|
2629
2629
|
agent: "mingo",
|
|
2630
2630
|
className: _chunk6YZNUHXTcjs.cn.call(void 0, "relative shrink-0 text-ods-text-primary", field ? "size-6" : "size-5")
|
|
@@ -2680,7 +2680,7 @@ function useAskPrompts({
|
|
|
2680
2680
|
const assistant = _chunkEWPR7662cjs.useAssistantRuntime.call(void 0, );
|
|
2681
2681
|
const base = assistantAvailable(assistant) ? assistant.askPromptsUrl : void 0;
|
|
2682
2682
|
const url = base && enabled ? buildAskPromptsUrl(base, { count, topic, exclude }) : null;
|
|
2683
|
-
const { data, dataUrl, error } =
|
|
2683
|
+
const { data, dataUrl, error } = _chunkZZPGSLMOcjs.useSelfFetch.call(void 0, url);
|
|
2684
2684
|
const landed = url !== null && (dataUrl === url || error);
|
|
2685
2685
|
return { prompts: landed ? _nullishCoalesce(_optionalChain([data, 'optionalAccess', _97 => _97.prompts]), () => ( [])) : [], isLoading: !!base && !landed, supported: !!base };
|
|
2686
2686
|
}
|
|
@@ -2796,7 +2796,7 @@ function useAskSurface({
|
|
|
2796
2796
|
// src/components/chat/ask-prompts.tsx
|
|
2797
2797
|
|
|
2798
2798
|
function AssistantGlyph({ icon, className }) {
|
|
2799
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunk6YZNUHXTcjs.cn.call(void 0, "inline-flex shrink-0 items-center justify-center overflow-hidden rounded-full", className), children: _nullishCoalesce(icon, () => ( /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2799
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunk6YZNUHXTcjs.cn.call(void 0, "inline-flex shrink-0 items-center justify-center overflow-hidden rounded-full", className), children: _nullishCoalesce(icon, () => ( /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBIYLAAFIcjs.AgentMark, { agent: "mingo", className: "size-full" }))) });
|
|
2800
2800
|
}
|
|
2801
2801
|
var slotCount = (count, loading, prompts) => _nullishCoalesce(count, () => ( (loading ? ASK_PROMPTS_DEFAULT_COUNT : prompts.length)));
|
|
2802
2802
|
var SKELETON_LABEL_CH = [26, 22, 30, 24, 20, 28];
|
|
@@ -2819,9 +2819,9 @@ function QuestionChips({
|
|
|
2819
2819
|
{
|
|
2820
2820
|
"data-loading-item": true,
|
|
2821
2821
|
className: _nullishCoalesce(slotClassName, () => ( CHIP_SLOT_CLASS)),
|
|
2822
|
-
...prompt ? { [
|
|
2822
|
+
...prompt ? { [_chunkFBA6S4EScjs.ASK_AI_TRIGGER_ATTRIBUTE]: "" } : {},
|
|
2823
2823
|
children: (loading || prompt) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2824
|
-
|
|
2824
|
+
_chunkFBA6S4EScjs.QuickActionChipButton,
|
|
2825
2825
|
{
|
|
2826
2826
|
loading,
|
|
2827
2827
|
variant: "question",
|
|
@@ -2859,7 +2859,7 @@ function AskPrompts({
|
|
|
2859
2859
|
if (!loading && prompts.length === 0) return null;
|
|
2860
2860
|
const end = align === "end";
|
|
2861
2861
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
2862
|
-
|
|
2862
|
+
_chunkZCMXBX4Zcjs.ScrollShadow,
|
|
2863
2863
|
{
|
|
2864
2864
|
axis: "horizontal",
|
|
2865
2865
|
color: fadeColor,
|
|
@@ -3031,7 +3031,7 @@ function QuickActionMarquee({
|
|
|
3031
3031
|
);
|
|
3032
3032
|
if (items.length === 0) return null;
|
|
3033
3033
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3034
|
-
|
|
3034
|
+
_chunkFBA6S4EScjs.QuickActionWall,
|
|
3035
3035
|
{
|
|
3036
3036
|
chips,
|
|
3037
3037
|
mode,
|
|
@@ -3059,25 +3059,25 @@ var UNREAD_NOTICE = "You have a new unread message";
|
|
|
3059
3059
|
var TICKET_ROW_HEIGHT = "h-20";
|
|
3060
3060
|
var TICKET_ROW = _chunk6YZNUHXTcjs.cn.call(void 0, _chunk6YZNUHXTcjs.BUTTON_KIND_CLASS.row, TICKET_ROW_HEIGHT);
|
|
3061
3061
|
var TICKET_ROW_TEXT = "flex min-w-0 flex-1 flex-col justify-center";
|
|
3062
|
-
var TICKET_ROW_CHEVRON = `flex ${
|
|
3062
|
+
var TICKET_ROW_CHEVRON = `flex ${_chunkAT4C2YMAcjs.TILE_SIZE.xl} shrink-0 items-center justify-center rounded-md border`;
|
|
3063
3063
|
var ChatTicketItem = _react.forwardRef.call(void 0,
|
|
3064
3064
|
({ className, ticket, onClick, loading: loadingProp = false, ...props }, ref) => {
|
|
3065
3065
|
const loading = _chunk6YZNUHXTcjs.useLoadingScope.call(void 0, ) || loadingProp;
|
|
3066
3066
|
if (!loading && !ticket) return null;
|
|
3067
|
-
const statusTagProps = ticket ?
|
|
3067
|
+
const statusTagProps = ticket ? _chunkBIYLAAFIcjs.resolveStatusTagProps.call(void 0, {
|
|
3068
3068
|
status: ticket.status,
|
|
3069
3069
|
statusKind: ticket.statusKind,
|
|
3070
3070
|
statusName: ticket.statusLabel,
|
|
3071
3071
|
statusColor: ticket.statusColor
|
|
3072
3072
|
}) : null;
|
|
3073
|
-
const isResolved = !!ticket && (ticket.statusKind === "RESOLVED" ||
|
|
3073
|
+
const isResolved = !!ticket && (ticket.statusKind === "RESOLVED" || _chunkBIYLAAFIcjs.resolveTicketStatus.call(void 0, ticket.status) === "RESOLVED");
|
|
3074
3074
|
const composedSubtitle = ticket ? [ticket.ticketNumber, ticket.category, ticket.timeAgo].filter(Boolean).join(" \u2022 ") : "";
|
|
3075
3075
|
const subtitle = _nullishCoalesce(_optionalChain([ticket, 'optionalAccess', _117 => _117.subtitle]), () => ( (_optionalChain([ticket, 'optionalAccess', _118 => _118.unread]) ? UNREAD_NOTICE : composedSubtitle)));
|
|
3076
3076
|
const unread = !!_optionalChain([ticket, 'optionalAccess', _119 => _119.unread]);
|
|
3077
3077
|
const content = /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
3078
3078
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunk6YZNUHXTcjs.cn.call(void 0, TICKET_ROW_TEXT, "text-left"), children: loading || !ticket ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
3079
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3080
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3079
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkAT4C2YMAcjs.TextLineSkeleton, { type: "h3", className: "w-1/2" }),
|
|
3080
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkAT4C2YMAcjs.TextLineSkeleton, { type: "h6", className: "w-1/3" })
|
|
3081
3081
|
] }) : /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
3082
3082
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3083
3083
|
"p",
|
|
@@ -3097,7 +3097,7 @@ var ChatTicketItem = _react.forwardRef.call(void 0,
|
|
|
3097
3097
|
)
|
|
3098
3098
|
] }) }),
|
|
3099
3099
|
_optionalChain([ticket, 'optionalAccess', _120 => _120.linkedTaskLabel]) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3100
|
-
|
|
3100
|
+
_chunk7VXMO4XJcjs.Tag,
|
|
3101
3101
|
{
|
|
3102
3102
|
"data-loading-optional": true,
|
|
3103
3103
|
label: ticket.linkedTaskLabel,
|
|
@@ -3106,7 +3106,7 @@ var ChatTicketItem = _react.forwardRef.call(void 0,
|
|
|
3106
3106
|
className: "hidden shrink-0 sm:inline-flex"
|
|
3107
3107
|
}
|
|
3108
3108
|
),
|
|
3109
|
-
loading ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3109
|
+
loading ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBIYLAAFIcjs.TicketStatusTag, { status: "", loading: true, className: "w-20" }) : statusTagProps && (statusTagProps.status || statusTagProps.label) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBIYLAAFIcjs.TicketStatusTag, { ...statusTagProps }),
|
|
3110
3110
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3111
3111
|
"div",
|
|
3112
3112
|
{
|
|
@@ -3151,7 +3151,7 @@ var ChatTicketList = _react.forwardRef.call(void 0,
|
|
|
3151
3151
|
...props
|
|
3152
3152
|
}, ref) => {
|
|
3153
3153
|
const isLoading = _chunk6YZNUHXTcjs.useLoadingScope.call(void 0, ) || isLoadingProp;
|
|
3154
|
-
const { scrollRef, fadeTop, fadeBottom, update: updateFade } =
|
|
3154
|
+
const { scrollRef, fadeTop, fadeBottom, update: updateFade } = _chunkZCMXBX4Zcjs.useScrollFade.call(void 0, );
|
|
3155
3155
|
if (!isLoading && tickets.length === 0) return null;
|
|
3156
3156
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { ref, className: _chunk6YZNUHXTcjs.cn.call(void 0, "flex min-h-0 flex-col gap-2", className), ...props, children: [
|
|
3157
3157
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "shrink-0 text-ods-text-secondary text-h5", children: "Your Chats:" }),
|
|
@@ -3165,8 +3165,8 @@ var ChatTicketList = _react.forwardRef.call(void 0,
|
|
|
3165
3165
|
),
|
|
3166
3166
|
children: [
|
|
3167
3167
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { ref: scrollRef, className: "h-full overflow-y-auto overscroll-contain", onScroll: updateFade, children: isLoading ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk6YZNUHXTcjs.LoadingItems, { count: skeletonCount, children: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, ChatTicketItem, { loading: true, "data-loading-item": true }) }) : tickets.map((ticket) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, ChatTicketItem, { ticket, onClick: onTicketClick, "data-loading-item": true }, ticket.id)) }),
|
|
3168
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3169
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3168
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkZCMXBX4Zcjs.ScrollFadeOverlay, { edge: "top", visible: !isLoading && fadeTop }),
|
|
3169
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkZCMXBX4Zcjs.ScrollFadeOverlay, { edge: "bottom", visible: !isLoading && fadeBottom })
|
|
3170
3170
|
]
|
|
3171
3171
|
}
|
|
3172
3172
|
)
|
|
@@ -3187,7 +3187,7 @@ var DialogListItem = _react.forwardRef.call(void 0,
|
|
|
3187
3187
|
_optionalChain([onClick, 'optionalCall', _123 => _123(e)]);
|
|
3188
3188
|
};
|
|
3189
3189
|
const formatTimestamp = (timestamp) => {
|
|
3190
|
-
return
|
|
3190
|
+
return _chunk7VXMO4XJcjs.formatDateWithTimezone.call(void 0, timestamp, _chunk7VXMO4XJcjs.VIEWER_TIMEZONE, "numericDateTime24h");
|
|
3191
3191
|
};
|
|
3192
3192
|
const unread = loading ? 0 : _nullishCoalesce(dialog.unreadMessagesCount, () => ( 0));
|
|
3193
3193
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
@@ -3205,8 +3205,8 @@ var DialogListItem = _react.forwardRef.call(void 0,
|
|
|
3205
3205
|
...loading ? _chunk6YZNUHXTcjs.loadingItemProps.call(void 0, props) : props,
|
|
3206
3206
|
children: [
|
|
3207
3207
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex min-w-0 flex-1 flex-col items-start justify-center gap-1", children: loading ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
3208
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3209
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3208
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkAT4C2YMAcjs.TextLineSkeleton, { type: "h6", className: "w-full max-w-[200px]" }),
|
|
3209
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkAT4C2YMAcjs.TextLineSkeleton, { type: "h6", className: "w-32" })
|
|
3210
3210
|
] }) : /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
3211
3211
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex w-full min-w-0 items-center", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3212
3212
|
"h3",
|
|
@@ -3246,7 +3246,7 @@ var ChatSidebar = _react.forwardRef.call(void 0,
|
|
|
3246
3246
|
hasNextPage,
|
|
3247
3247
|
isFetchingNextPage,
|
|
3248
3248
|
onLoadMore,
|
|
3249
|
-
pageSize =
|
|
3249
|
+
pageSize = _chunkFBA6S4EScjs.CHAT_HISTORY_PAGE_SIZE,
|
|
3250
3250
|
...props
|
|
3251
3251
|
}, ref) => {
|
|
3252
3252
|
const loading = _chunk6YZNUHXTcjs.useLoadingScope.call(void 0, ) || !!isLoading && dialogs.length === 0 && !children;
|
|
@@ -3364,7 +3364,7 @@ var ChatTopNavigation = _react.forwardRef.call(void 0,
|
|
|
3364
3364
|
),
|
|
3365
3365
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-1 items-center gap-[var(--spacing-system-m)] px-[var(--spacing-system-m)]", children: [
|
|
3366
3366
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3367
|
-
|
|
3367
|
+
_chunk7VXMO4XJcjs.SquareAvatar,
|
|
3368
3368
|
{
|
|
3369
3369
|
loading: isLoading,
|
|
3370
3370
|
src: _nullishCoalesce(avatarUrl, () => ( void 0)),
|
|
@@ -3375,8 +3375,8 @@ var ChatTopNavigation = _react.forwardRef.call(void 0,
|
|
|
3375
3375
|
}
|
|
3376
3376
|
),
|
|
3377
3377
|
isLoading ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-1 flex-col", children: [
|
|
3378
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3379
|
-
subtitle !== void 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3378
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkAT4C2YMAcjs.TextLineSkeleton, { type: "h3", className: "w-24" }),
|
|
3379
|
+
subtitle !== void 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkAT4C2YMAcjs.TextLineSkeleton, { type: "h6", className: "w-32" })
|
|
3380
3380
|
] }) : /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-1 flex-col", children: [
|
|
3381
3381
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "truncate text-ods-text-primary text-h3", children: name }),
|
|
3382
3382
|
subtitle && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "truncate text-ods-text-secondary text-h6", children: subtitle })
|
|
@@ -3530,7 +3530,7 @@ function OnboardingCarousel({
|
|
|
3530
3530
|
|
|
3531
3531
|
var ADMIN_CONTENT_CARD_GRID_CLASS = "grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-[var(--spacing-system-lf)]";
|
|
3532
3532
|
var GRID_CELL_CLASS = "h-full";
|
|
3533
|
-
var DEFAULT_LOADING_CARD = /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3533
|
+
var DEFAULT_LOADING_CARD = /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOZIPPOSJcjs.AdminContentCard, { loading: true, reserveRows: true, title: "", actions: true });
|
|
3534
3534
|
function loadingCardOf(loadingCard, Skeleton) {
|
|
3535
3535
|
if (loadingCard !== void 0) return loadingCard;
|
|
3536
3536
|
return Skeleton ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Skeleton, {}) : DEFAULT_LOADING_CARD;
|
|
@@ -3544,7 +3544,7 @@ function AdminContentCardGridSkeleton({
|
|
|
3544
3544
|
label = "Loading",
|
|
3545
3545
|
region = true
|
|
3546
3546
|
}) {
|
|
3547
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3547
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFBA6S4EScjs.LoadingFallback, { label, status: region, className: _chunk6YZNUHXTcjs.cn.call(void 0, ADMIN_CONTENT_CARD_GRID_CLASS, className), children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk6YZNUHXTcjs.LoadingItems, { count, children: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: GRID_CELL_CLASS, "data-loading-item": true, children: loadingCardOf(loadingCard, Skeleton) }) }) });
|
|
3548
3548
|
}
|
|
3549
3549
|
function AdminContentCardGrid({
|
|
3550
3550
|
items,
|
|
@@ -3608,7 +3608,7 @@ function parseChannelFromUrl(url) {
|
|
|
3608
3608
|
function SlackMessageCard({ item, variant = "compact", className, anchorProps }) {
|
|
3609
3609
|
if (_chunk6YZNUHXTcjs.useLoadingScope.call(void 0, )) return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, SlackMessageCardSkeleton, { variant, className });
|
|
3610
3610
|
const channel = _nullishCoalesce(_nullishCoalesce(item.channel, () => ( parseChannelFromUrl(item.url))), () => ( null));
|
|
3611
|
-
const dateText =
|
|
3611
|
+
const dateText = _chunk7VXMO4XJcjs.formatDateUTC.call(void 0, item.dateUpdated, { fallback: "", timezone: "local" });
|
|
3612
3612
|
if (variant === "row") {
|
|
3613
3613
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: `flex min-w-0 items-center gap-3 ${_nullishCoalesce(className, () => ( ""))}`, children: [
|
|
3614
3614
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOWDRZM73cjs.SlackIcon, { className: "h-3.5 w-3.5 shrink-0" }),
|
|
@@ -3634,23 +3634,23 @@ function SlackMessageCard({ item, variant = "compact", className, anchorProps })
|
|
|
3634
3634
|
metaParts.push(
|
|
3635
3635
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "whitespace-nowrap", children: dateText }, "date")
|
|
3636
3636
|
);
|
|
3637
|
-
const href =
|
|
3637
|
+
const href = _chunkC5EPWKM7cjs.safeHref.call(void 0, item.url);
|
|
3638
3638
|
const body = /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
3639
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
3640
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className:
|
|
3641
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
3642
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
3643
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
3639
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkC5EPWKM7cjs.COMPACT_CARD_ICON_SLOT, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOWDRZM73cjs.SlackIcon, { className: "h-5 w-5" }) }),
|
|
3640
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: _chunkC5EPWKM7cjs.COMPACT_CARD_TEXT_COL, children: [
|
|
3641
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkC5EPWKM7cjs.COMPACT_CARD_TITLE_ROW, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkC5EPWKM7cjs.COMPACT_CARD_TITLE, children: item.title }) }),
|
|
3642
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkC5EPWKM7cjs.COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkC5EPWKM7cjs.COMPACT_CARD_SUMMARY, children: item.preview || _chunkC5EPWKM7cjs.COMPACT_CARD_ROW_FILLER }) }),
|
|
3643
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkC5EPWKM7cjs.COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkC5EPWKM7cjs.COMPACT_CARD_META_ROW, children: metaParts.length > 0 ? metaParts.map((part, i) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _react2.default.Fragment, { children: [
|
|
3644
3644
|
i > 0 ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "shrink-0 text-ods-text-secondary/40", children: "\xB7" }) : null,
|
|
3645
3645
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "min-w-0 truncate", children: part })
|
|
3646
|
-
] }, i)) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
3646
|
+
] }, i)) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkC5EPWKM7cjs.COMPACT_CARD_SUMMARY, children: _chunkC5EPWKM7cjs.COMPACT_CARD_ROW_FILLER }) }) })
|
|
3647
3647
|
] }),
|
|
3648
3648
|
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
|
|
3649
3649
|
] });
|
|
3650
3650
|
if (anchorProps) {
|
|
3651
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkV45KLJQPcjs.next_link_default, { ...anchorProps, className: `${
|
|
3651
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkV45KLJQPcjs.next_link_default, { ...anchorProps, className: `${_chunkC5EPWKM7cjs.COMPACT_CARD_OUTER} ${_nullishCoalesce(className, () => ( ""))}`, children: body });
|
|
3652
3652
|
}
|
|
3653
|
-
return href ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkV45KLJQPcjs.next_link_default, { href, target: "_blank", rel: "noopener noreferrer", className: `${
|
|
3653
|
+
return href ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkV45KLJQPcjs.next_link_default, { href, target: "_blank", rel: "noopener noreferrer", className: `${_chunkC5EPWKM7cjs.COMPACT_CARD_OUTER} ${_nullishCoalesce(className, () => ( ""))}`, children: body }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: `${_chunkC5EPWKM7cjs.COMPACT_CARD_OUTER_STATIC} ${_nullishCoalesce(className, () => ( ""))}`, "aria-label": "No link available", children: body });
|
|
3654
3654
|
}
|
|
3655
3655
|
function SlackMessageCardSkeleton({
|
|
3656
3656
|
variant = "compact",
|
|
@@ -3658,11 +3658,11 @@ function SlackMessageCardSkeleton({
|
|
|
3658
3658
|
}) {
|
|
3659
3659
|
if (variant === "row") {
|
|
3660
3660
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3661
|
-
|
|
3661
|
+
_chunkC5EPWKM7cjs.ActivityRowSkeleton,
|
|
3662
3662
|
{
|
|
3663
3663
|
lead: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
3664
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3665
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3664
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkAT4C2YMAcjs.UnifiedSkeleton, { className: "h-3.5 w-3.5 shrink-0 rounded" }),
|
|
3665
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkAT4C2YMAcjs.UnifiedSkeleton, { className: "h-3 w-32 shrink-0 rounded" })
|
|
3666
3666
|
] }),
|
|
3667
3667
|
trailingWidths: ["w-24", "w-20"],
|
|
3668
3668
|
className
|
|
@@ -3670,7 +3670,7 @@ function SlackMessageCardSkeleton({
|
|
|
3670
3670
|
);
|
|
3671
3671
|
}
|
|
3672
3672
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3673
|
-
|
|
3673
|
+
_chunkC5EPWKM7cjs.CompactCardSkeleton,
|
|
3674
3674
|
{
|
|
3675
3675
|
titleWidth: "w-2/3",
|
|
3676
3676
|
rows: [{ width: "w-5/6" }, { width: "w-1/3" }],
|
|
@@ -3706,12 +3706,12 @@ function HubspotTicketCard({ item, variant = "compact", className, anchorProps }
|
|
|
3706
3706
|
if (_chunk6YZNUHXTcjs.useLoadingScope.call(void 0, )) return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, HubspotTicketCardSkeleton, { variant, className });
|
|
3707
3707
|
const statusText = _nullishCoalesce(item.statusLabel, () => ( formatToken(item.status)));
|
|
3708
3708
|
const priorityText = formatToken(item.priority);
|
|
3709
|
-
const dateText =
|
|
3709
|
+
const dateText = _chunk7VXMO4XJcjs.formatDateUTC.call(void 0, item.dateUpdated, { fallback: "", timezone: "local" });
|
|
3710
3710
|
if (variant === "row") {
|
|
3711
3711
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: `flex min-w-0 items-center gap-3 ${_nullishCoalesce(className, () => ( ""))}`, children: [
|
|
3712
3712
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "max-w-[260px] shrink-0 truncate text-ods-text-primary text-h6", children: item.title }),
|
|
3713
3713
|
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,
|
|
3714
|
-
statusText ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3714
|
+
statusText ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkC5EPWKM7cjs.StatusBadge, { text: statusText, variant: "button", colorScheme: statusScheme(item.status) }) : null,
|
|
3715
3715
|
dateText ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "w-24 shrink-0 text-right text-ods-text-secondary text-h6", children: dateText }) : null
|
|
3716
3716
|
] });
|
|
3717
3717
|
}
|
|
@@ -3725,13 +3725,13 @@ function HubspotTicketCard({ item, variant = "compact", className, anchorProps }
|
|
|
3725
3725
|
metaParts.push(
|
|
3726
3726
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "whitespace-nowrap", children: dateText }, "date")
|
|
3727
3727
|
);
|
|
3728
|
-
const href =
|
|
3728
|
+
const href = _chunkC5EPWKM7cjs.safeHref.call(void 0, item.url);
|
|
3729
3729
|
const body = /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
3730
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className:
|
|
3730
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: _chunkC5EPWKM7cjs.COMPACT_CARD_TEXT_COL, children: [
|
|
3731
3731
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "flex min-w-0 flex-wrap items-center gap-1.5", children: [
|
|
3732
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: `${
|
|
3732
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: `${_chunkC5EPWKM7cjs.COMPACT_CARD_TITLE} min-w-0 shrink`, children: item.title }),
|
|
3733
3733
|
priorityText ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3734
|
-
|
|
3734
|
+
_chunkC5EPWKM7cjs.StatusBadge,
|
|
3735
3735
|
{
|
|
3736
3736
|
text: priorityText,
|
|
3737
3737
|
variant: "button",
|
|
@@ -3740,7 +3740,7 @@ function HubspotTicketCard({ item, variant = "compact", className, anchorProps }
|
|
|
3740
3740
|
}
|
|
3741
3741
|
) : null,
|
|
3742
3742
|
statusText ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3743
|
-
|
|
3743
|
+
_chunkC5EPWKM7cjs.StatusBadge,
|
|
3744
3744
|
{
|
|
3745
3745
|
text: statusText,
|
|
3746
3746
|
variant: "button",
|
|
@@ -3754,7 +3754,7 @@ function HubspotTicketCard({ item, variant = "compact", className, anchorProps }
|
|
|
3754
3754
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "min-w-0 truncate", children: item.customerEmail })
|
|
3755
3755
|
] }) : null,
|
|
3756
3756
|
/* @__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." }) }) }),
|
|
3757
|
-
metaParts.length > 0 ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
3757
|
+
metaParts.length > 0 ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkC5EPWKM7cjs.COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkC5EPWKM7cjs.COMPACT_CARD_META_ROW, children: metaParts.map((part, i) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _react2.default.Fragment, { children: [
|
|
3758
3758
|
i > 0 ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "shrink-0 text-ods-text-secondary/40", children: "\xB7" }) : null,
|
|
3759
3759
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "min-w-0 truncate", children: part })
|
|
3760
3760
|
] }, i)) }) }) : null
|
|
@@ -3762,9 +3762,9 @@ function HubspotTicketCard({ item, variant = "compact", className, anchorProps }
|
|
|
3762
3762
|
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
|
|
3763
3763
|
] });
|
|
3764
3764
|
if (anchorProps) {
|
|
3765
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkV45KLJQPcjs.next_link_default, { ...anchorProps, className: `${
|
|
3765
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkV45KLJQPcjs.next_link_default, { ...anchorProps, className: `${_chunkC5EPWKM7cjs.COMPACT_CARD_OUTER} ${_nullishCoalesce(className, () => ( ""))}`, children: body });
|
|
3766
3766
|
}
|
|
3767
|
-
return href ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkV45KLJQPcjs.next_link_default, { href, target: "_blank", rel: "noopener noreferrer", className: `${
|
|
3767
|
+
return href ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkV45KLJQPcjs.next_link_default, { href, target: "_blank", rel: "noopener noreferrer", className: `${_chunkC5EPWKM7cjs.COMPACT_CARD_OUTER} ${_nullishCoalesce(className, () => ( ""))}`, children: body }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: `${_chunkC5EPWKM7cjs.COMPACT_CARD_OUTER_STATIC} ${_nullishCoalesce(className, () => ( ""))}`, "aria-label": "No link available", children: body });
|
|
3768
3768
|
}
|
|
3769
3769
|
function HubspotTicketCardSkeleton({
|
|
3770
3770
|
variant = "compact",
|
|
@@ -3772,14 +3772,14 @@ function HubspotTicketCardSkeleton({
|
|
|
3772
3772
|
}) {
|
|
3773
3773
|
if (variant === "row") {
|
|
3774
3774
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: `flex min-w-0 items-center gap-3 ${_nullishCoalesce(className, () => ( ""))}`, children: [
|
|
3775
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3776
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3777
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3778
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3775
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkAT4C2YMAcjs.UnifiedSkeleton, { className: "h-3 w-40 shrink-0 rounded" }),
|
|
3776
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkAT4C2YMAcjs.UnifiedSkeleton, { className: "h-3 w-2/3 flex-1 rounded" }),
|
|
3777
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkAT4C2YMAcjs.UnifiedSkeleton, { className: "h-3 w-16 shrink-0 rounded" }),
|
|
3778
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkAT4C2YMAcjs.UnifiedSkeleton, { className: "h-3 w-20 shrink-0 rounded" })
|
|
3779
3779
|
] });
|
|
3780
3780
|
}
|
|
3781
3781
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3782
|
-
|
|
3782
|
+
_chunkC5EPWKM7cjs.CompactCardSkeleton,
|
|
3783
3783
|
{
|
|
3784
3784
|
slot: false,
|
|
3785
3785
|
titleWidth: "w-2/3",
|
|
@@ -3797,10 +3797,10 @@ function HubspotTicketCardSkeleton({
|
|
|
3797
3797
|
function DataRoomDocCard({ item, className, badgeText, anchorProps }) {
|
|
3798
3798
|
if (_chunk6YZNUHXTcjs.useLoadingScope.call(void 0, )) return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, DataRoomDocCardSkeleton, { className });
|
|
3799
3799
|
const body = /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
3800
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className:
|
|
3800
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: _chunkC5EPWKM7cjs.COMPACT_CARD_TEXT_COL, children: [
|
|
3801
3801
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "flex min-w-0 flex-wrap items-center gap-1.5", children: [
|
|
3802
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: `${
|
|
3803
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3802
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: `${_chunkC5EPWKM7cjs.COMPACT_CARD_TITLE} min-w-0 shrink`, children: item.title }),
|
|
3803
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkC5EPWKM7cjs.StatusBadge, { text: badgeText, variant: "button", colorScheme: "cyan", className: "shrink-0" })
|
|
3804
3804
|
] }),
|
|
3805
3805
|
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: [
|
|
3806
3806
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "shrink-0 text-ods-text-secondary/70", children: "Path:" }),
|
|
@@ -3811,13 +3811,13 @@ function DataRoomDocCard({ item, className, badgeText, anchorProps }) {
|
|
|
3811
3811
|
_optionalChain([anchorProps, 'optionalAccess', _128 => _128.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
|
|
3812
3812
|
] });
|
|
3813
3813
|
if (!anchorProps) {
|
|
3814
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: `${
|
|
3814
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: `${_chunkC5EPWKM7cjs.COMPACT_CARD_OUTER_STATIC} ${_nullishCoalesce(className, () => ( ""))}`, "aria-label": "No link available", children: body });
|
|
3815
3815
|
}
|
|
3816
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkV45KLJQPcjs.next_link_default, { ...anchorProps, className: `${
|
|
3816
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkV45KLJQPcjs.next_link_default, { ...anchorProps, className: `${_chunkC5EPWKM7cjs.COMPACT_CARD_OUTER} ${_nullishCoalesce(className, () => ( ""))}`, children: body });
|
|
3817
3817
|
}
|
|
3818
3818
|
function DataRoomDocCardSkeleton({ className }) {
|
|
3819
3819
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3820
|
-
|
|
3820
|
+
_chunkC5EPWKM7cjs.CompactCardSkeleton,
|
|
3821
3821
|
{
|
|
3822
3822
|
slot: false,
|
|
3823
3823
|
titleWidth: "w-2/3",
|
|
@@ -3836,24 +3836,24 @@ function CampaignCardAdmin({ campaign, className, anchorProps }) {
|
|
|
3836
3836
|
if (_chunk6YZNUHXTcjs.useLoadingScope.call(void 0, )) return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, CampaignCardAdminSkeleton, { className });
|
|
3837
3837
|
const goalsCount = _optionalChain([campaign, 'access', _129 => _129.goals, 'optionalAccess', _130 => _130.length]) || 0;
|
|
3838
3838
|
const innerChildren = /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
3839
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
3840
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className:
|
|
3841
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
3842
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
3843
|
-
campaign.start_date ?
|
|
3839
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkC5EPWKM7cjs.COMPACT_CARD_ICON_SLOT, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.Megaphone, { className: "h-5 w-5" }) }),
|
|
3840
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: _chunkC5EPWKM7cjs.COMPACT_CARD_TEXT_COL, children: [
|
|
3841
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkC5EPWKM7cjs.COMPACT_CARD_TITLE_ROW, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkC5EPWKM7cjs.COMPACT_CARD_TITLE, children: campaign.name }) }),
|
|
3842
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkC5EPWKM7cjs.COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkC5EPWKM7cjs.COMPACT_CARD_SUBTITLE, children: [
|
|
3843
|
+
campaign.start_date ? _chunkOZIPPOSJcjs.formatDateShort.call(void 0, campaign.start_date) : null,
|
|
3844
3844
|
goalsCount > 0 ? `${goalsCount} goal${goalsCount !== 1 ? "s" : ""}` : null,
|
|
3845
3845
|
"Marketing campaign"
|
|
3846
3846
|
].filter(Boolean).join(" \xB7 ") }) }),
|
|
3847
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
3847
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkC5EPWKM7cjs.COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkC5EPWKM7cjs.COMPACT_CARD_SUMMARY, children: campaign.description || _chunkC5EPWKM7cjs.COMPACT_CARD_ROW_FILLER }) })
|
|
3848
3848
|
] })
|
|
3849
3849
|
] });
|
|
3850
3850
|
if (anchorProps) {
|
|
3851
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkV45KLJQPcjs.next_link_default, { ...anchorProps, className: `${
|
|
3851
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkV45KLJQPcjs.next_link_default, { ...anchorProps, className: `${_chunkC5EPWKM7cjs.COMPACT_CARD_OUTER} ${_nullishCoalesce(className, () => ( ""))}`, children: innerChildren });
|
|
3852
3852
|
}
|
|
3853
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: `${
|
|
3853
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: `${_chunkC5EPWKM7cjs.COMPACT_CARD_OUTER_STATIC} ${_nullishCoalesce(className, () => ( ""))}`, "aria-label": "No link available", children: innerChildren });
|
|
3854
3854
|
}
|
|
3855
3855
|
function CampaignCardAdminSkeleton({ className }) {
|
|
3856
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3856
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkC5EPWKM7cjs.CompactCardSkeleton, { rows: [{ width: "w-1/2" }, { width: "w-11/12" }], className });
|
|
3857
3857
|
}
|
|
3858
3858
|
|
|
3859
3859
|
// src/components/chat/entity-cards/generic-entity-card.tsx
|
|
@@ -3861,14 +3861,14 @@ function CampaignCardAdminSkeleton({ className }) {
|
|
|
3861
3861
|
|
|
3862
3862
|
function GenericEntityCard({ item, className, anchorProps }) {
|
|
3863
3863
|
if (_chunk6YZNUHXTcjs.useLoadingScope.call(void 0, )) return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, GenericEntityCardSkeleton, { className });
|
|
3864
|
-
const href =
|
|
3865
|
-
const dateText =
|
|
3864
|
+
const href = _chunkC5EPWKM7cjs.safeHref.call(void 0, item.url);
|
|
3865
|
+
const dateText = _chunk7VXMO4XJcjs.formatDateUTC.call(void 0, item.dateUpdated, { fallback: "", timezone: "local" });
|
|
3866
3866
|
const body = /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
3867
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className:
|
|
3867
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: _chunkC5EPWKM7cjs.COMPACT_CARD_TEXT_COL, children: [
|
|
3868
3868
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "flex min-w-0 flex-wrap items-center gap-1.5", children: [
|
|
3869
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: `${
|
|
3869
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: `${_chunkC5EPWKM7cjs.COMPACT_CARD_TITLE} min-w-0 shrink`, children: item.title }),
|
|
3870
3870
|
item.badge ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3871
|
-
|
|
3871
|
+
_chunkC5EPWKM7cjs.StatusBadge,
|
|
3872
3872
|
{
|
|
3873
3873
|
text: item.badge.text,
|
|
3874
3874
|
variant: "button",
|
|
@@ -3886,18 +3886,18 @@ function GenericEntityCard({ item, className, anchorProps }) {
|
|
|
3886
3886
|
] }),
|
|
3887
3887
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "truncate font-medium text-ods-text-primary", children: f.value })
|
|
3888
3888
|
] }, i)) }) : null,
|
|
3889
|
-
dateText ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
3889
|
+
dateText ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkC5EPWKM7cjs.COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkC5EPWKM7cjs.COMPACT_CARD_META_ROW, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "whitespace-nowrap", children: dateText }) }) }) : null
|
|
3890
3890
|
] }),
|
|
3891
3891
|
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
|
|
3892
3892
|
] });
|
|
3893
3893
|
if (anchorProps) {
|
|
3894
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkV45KLJQPcjs.next_link_default, { ...anchorProps, className: `${
|
|
3894
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkV45KLJQPcjs.next_link_default, { ...anchorProps, className: `${_chunkC5EPWKM7cjs.COMPACT_CARD_OUTER} ${_nullishCoalesce(className, () => ( ""))}`, children: body });
|
|
3895
3895
|
}
|
|
3896
|
-
return href ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkV45KLJQPcjs.next_link_default, { href, className: `${
|
|
3896
|
+
return href ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkV45KLJQPcjs.next_link_default, { href, className: `${_chunkC5EPWKM7cjs.COMPACT_CARD_OUTER} ${_nullishCoalesce(className, () => ( ""))}`, children: body }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: `${_chunkC5EPWKM7cjs.COMPACT_CARD_OUTER_STATIC} ${_nullishCoalesce(className, () => ( ""))}`, "aria-label": "No link available", children: body });
|
|
3897
3897
|
}
|
|
3898
3898
|
function GenericEntityCardSkeleton({ className }) {
|
|
3899
3899
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3900
|
-
|
|
3900
|
+
_chunkC5EPWKM7cjs.CompactCardSkeleton,
|
|
3901
3901
|
{
|
|
3902
3902
|
slot: false,
|
|
3903
3903
|
titleWidth: "w-2/3",
|
|
@@ -5018,7 +5018,7 @@ function InfoHint({ children, label, side = "top", className }) {
|
|
|
5018
5018
|
const describedById = _react.useId.call(void 0, );
|
|
5019
5019
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: _chunk6YZNUHXTcjs.cn.call(void 0, "inline-flex shrink-0 items-center", className), children: [
|
|
5020
5020
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
5021
|
-
|
|
5021
|
+
_chunk7VXMO4XJcjs.FloatingTooltip,
|
|
5022
5022
|
{
|
|
5023
5023
|
content: children,
|
|
5024
5024
|
side,
|
|
@@ -5059,7 +5059,7 @@ function Field({ label, hint, required, children, error, labelExtras, labelEnd }
|
|
|
5059
5059
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center gap-1.5", children: [
|
|
5060
5060
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkJRTDBPJTcjs.Label, { htmlFor: controlId, children: [
|
|
5061
5061
|
label,
|
|
5062
|
-
required && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
5062
|
+
required && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHCXNFMLOcjs.RequiredMark, {})
|
|
5063
5063
|
] }),
|
|
5064
5064
|
hint && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, InfoHint, { label, children: hint }),
|
|
5065
5065
|
labelExtras,
|
|
@@ -5136,7 +5136,7 @@ function Section({ title, description, children }) {
|
|
|
5136
5136
|
] });
|
|
5137
5137
|
}
|
|
5138
5138
|
function ProxyCredentialsPanel({ description }) {
|
|
5139
|
-
const hydrated =
|
|
5139
|
+
const hydrated = _chunkFBA6S4EScjs.useIsHydrated.call(void 0, );
|
|
5140
5140
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
5141
5141
|
ProxyCredentialsForm,
|
|
5142
5142
|
{
|
|
@@ -5197,13 +5197,13 @@ function ProxyCredentialsForm({ description, saved }) {
|
|
|
5197
5197
|
setStatus("Cleared. Requests use the session again.");
|
|
5198
5198
|
};
|
|
5199
5199
|
const setField = (field, value) => setOptional((prev) => ({ ...prev, [field]: value }));
|
|
5200
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
5200
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkC5EPWKM7cjs.Card, { children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkC5EPWKM7cjs.CardContent, { className: "space-y-[var(--spacing-system-lf)] p-[var(--spacing-system-mf)]", children: [
|
|
5201
5201
|
/* @__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: [
|
|
5202
5202
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { children: [
|
|
5203
5203
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h2", { className: "text-ods-text-primary text-h3", children: "Proxy credentials" }),
|
|
5204
5204
|
description && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-ods-text-secondary text-h6", children: description })
|
|
5205
5205
|
] }),
|
|
5206
|
-
activeEmail && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "self-start", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
5206
|
+
activeEmail && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "self-start", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkC5EPWKM7cjs.StatusBadge, { singleLine: true, colorScheme: "success", text: `Active: ${activeEmail}` }) })
|
|
5207
5207
|
] }),
|
|
5208
5208
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
5209
5209
|
Section,
|
|
@@ -5219,7 +5219,7 @@ function ProxyCredentialsForm({ description, saved }) {
|
|
|
5219
5219
|
hint: "A SERVICE key may act as anyone; a personal key only as its owner.",
|
|
5220
5220
|
labelEnd: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, HeaderName, { children: "Authorization" }),
|
|
5221
5221
|
children: (props) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
5222
|
-
|
|
5222
|
+
_chunkHCXNFMLOcjs.Input,
|
|
5223
5223
|
{
|
|
5224
5224
|
...props,
|
|
5225
5225
|
type: "password",
|
|
@@ -5240,7 +5240,7 @@ function ProxyCredentialsForm({ description, saved }) {
|
|
|
5240
5240
|
hint: "The end user the requests run as.",
|
|
5241
5241
|
labelEnd: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, HeaderName, { children: "X-Chat-Act-As" }),
|
|
5242
5242
|
children: (props) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
5243
|
-
|
|
5243
|
+
_chunkHCXNFMLOcjs.Input,
|
|
5244
5244
|
{
|
|
5245
5245
|
...props,
|
|
5246
5246
|
type: "email",
|
|
@@ -5266,7 +5266,7 @@ function ProxyCredentialsForm({ description, saved }) {
|
|
|
5266
5266
|
error: _nullishCoalesce(errors[field], () => ( null)),
|
|
5267
5267
|
labelEnd: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, HeaderName, { children: header }),
|
|
5268
5268
|
children: (props) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
5269
|
-
|
|
5269
|
+
_chunkHCXNFMLOcjs.Input,
|
|
5270
5270
|
{
|
|
5271
5271
|
...props,
|
|
5272
5272
|
type: _nullishCoalesce(copy.type, () => ( "text")),
|
|
@@ -5300,21 +5300,21 @@ function ProxyCredentialsForm({ description, saved }) {
|
|
|
5300
5300
|
|
|
5301
5301
|
// src/components/chat/index.ts
|
|
5302
5302
|
var LoadedEmbeddableChat = _react.lazy.call(void 0,
|
|
5303
|
-
() => Promise.resolve().then(() => _interopRequireWildcard(require("./embeddable-chat-
|
|
5303
|
+
() => Promise.resolve().then(() => _interopRequireWildcard(require("./embeddable-chat-54X3TTG4.cjs"))).then((module) => ({ default: module.EmbeddableChat }))
|
|
5304
5304
|
);
|
|
5305
5305
|
var EmbeddableChat = _react.forwardRef.call(void 0, (props, ref) => {
|
|
5306
5306
|
const [loadRequested, setLoadRequested] = _react.useState.call(void 0, false);
|
|
5307
5307
|
const load = loadRequested || Boolean(props.open) || Boolean(props.defaultOpen);
|
|
5308
|
-
_react.useEffect.call(void 0, () =>
|
|
5308
|
+
_react.useEffect.call(void 0, () => _chunkFBA6S4EScjs.holdAskAiOpens.call(void 0, ), []);
|
|
5309
5309
|
_react.useEffect.call(void 0, () => {
|
|
5310
5310
|
if (load) return void 0;
|
|
5311
5311
|
const start = () => setLoadRequested(true);
|
|
5312
|
-
if (
|
|
5313
|
-
for (const name of
|
|
5314
|
-
const cancel =
|
|
5312
|
+
if (_chunkFBA6S4EScjs.askAiOpenIsHeld.call(void 0, )) queueMicrotask(start);
|
|
5313
|
+
for (const name of _chunkFBA6S4EScjs.ASK_AI_OPEN_EVENTS) window.addEventListener(name, start);
|
|
5314
|
+
const cancel = _chunkFBA6S4EScjs.onAskAiIntent.call(void 0, start);
|
|
5315
5315
|
return () => {
|
|
5316
5316
|
cancel();
|
|
5317
|
-
for (const name of
|
|
5317
|
+
for (const name of _chunkFBA6S4EScjs.ASK_AI_OPEN_EVENTS) window.removeEventListener(name, start);
|
|
5318
5318
|
};
|
|
5319
5319
|
}, [load]);
|
|
5320
5320
|
if (!load) return null;
|