@flamingo-stack/openframe-frontend-core 0.0.854 → 0.0.856
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-WP5Z234Q.cjs → case-study-card-6VAMNHLU.cjs} +8 -8
- package/dist/{chunk-ZDPPNHA2.cjs → chunk-2BTEERLH.cjs} +3 -3
- package/dist/{chunk-FBANHIAG.cjs → chunk-2JCA7BRK.cjs} +19 -19
- package/dist/{chunk-GVHCQRUE.cjs → chunk-2P72KAG5.cjs} +23 -23
- package/dist/{chunk-YY3WP2YQ.cjs → chunk-3GJ75OUL.cjs} +183 -183
- package/dist/{chunk-FJXSKMQJ.cjs → chunk-4H3J57AN.cjs} +25 -25
- package/dist/{chunk-6GWRPW6B.cjs → chunk-5NK3FUHY.cjs} +4 -4
- package/dist/{chunk-DLTPSP5F.cjs → chunk-5TYG5JNB.cjs} +2 -2
- package/dist/{chunk-63ZV3UGG.cjs → chunk-65NMKAPQ.cjs} +12 -12
- package/dist/{chunk-IGVAPIEW.cjs → chunk-6C4OR4MZ.cjs} +2 -2
- package/dist/{chunk-GG466XFQ.cjs → chunk-6DMH4GXN.cjs} +30 -5
- package/dist/{chunk-2IJMHBOK.cjs → chunk-77GX573I.cjs} +9 -9
- package/dist/{chunk-O3EKOXFZ.cjs → chunk-AYMY2VNB.cjs} +37 -43
- package/dist/{chunk-JKBNK5U6.cjs → chunk-D6GEMVHD.cjs} +3 -3
- package/dist/{chunk-SSKMGH5O.cjs → chunk-DXVGGWLG.cjs} +10 -10
- package/dist/{chunk-S5P6CF5R.cjs → chunk-E5OQHFM6.cjs} +54 -54
- package/dist/{chunk-5TXE7BXT.cjs → chunk-EOUEUYCQ.cjs} +54 -54
- package/dist/{chunk-EIHMPQRQ.cjs → chunk-ESGE7CUX.cjs} +14 -14
- package/dist/{chunk-ETZFBB7O.cjs → chunk-EXQSIX2I.cjs} +4 -4
- package/dist/{chunk-3WXHPD6N.cjs → chunk-F33EAPD2.cjs} +124 -124
- package/dist/{chunk-4SSJ3T3N.cjs → chunk-GK577ZLJ.cjs} +3 -13
- package/dist/{chunk-ETQNMR2K.cjs → chunk-GTUQGVXH.cjs} +8 -8
- package/dist/{chunk-7MOBD44H.cjs → chunk-HGM7WDJT.cjs} +28 -28
- package/dist/{chunk-VMAOZA2V.cjs → chunk-HML3JUXF.cjs} +324 -322
- package/dist/{chunk-4O5N5CGK.cjs → chunk-J3CFRGZ2.cjs} +17 -17
- package/dist/{chunk-LQDAB5V5.cjs → chunk-KZAQPRTA.cjs} +9 -11
- package/dist/{chunk-6DCUGIGU.cjs → chunk-LSLRJJFP.cjs} +2 -2
- package/dist/{chunk-ONYANAMA.cjs → chunk-MX52LZ6M.cjs} +6 -6
- package/dist/{chunk-OH5TXFRR.cjs → chunk-O4CPT3RK.cjs} +7 -7
- package/dist/{chunk-BAA3YCLT.cjs → chunk-OW5MQKCI.cjs} +103 -103
- package/dist/{chunk-5HMENXSR.cjs → chunk-PCQ2HKU3.cjs} +5 -5
- package/dist/{chunk-D2XGRWPW.cjs → chunk-QLFNMWBP.cjs} +90 -90
- package/dist/{chunk-UPQ4MAR7.cjs → chunk-QZXCUY36.cjs} +53 -53
- package/dist/{chunk-KKFDRCQF.cjs → chunk-RY7INTYU.cjs} +14 -1
- package/dist/{chunk-PRJZMZ3X.cjs → chunk-SJZWVMBF.cjs} +678 -678
- package/dist/{chunk-GI3MMBP3.cjs → chunk-SQ7YHWEP.cjs} +228 -15
- package/dist/{chunk-ACPOJE32.cjs → chunk-STV6VJ3U.cjs} +21 -21
- package/dist/{chunk-QD727QFI.cjs → chunk-T54I5ZZY.cjs} +7 -7
- package/dist/{chunk-4LTLEUY5.cjs → chunk-TW5Y4D5I.cjs} +7 -7
- package/dist/{chunk-6XU3RCK3.cjs → chunk-UHGARY3S.cjs} +27 -27
- package/dist/{chunk-7J5NSWJG.cjs → chunk-UZIGMLTH.cjs} +100 -100
- package/dist/{chunk-FX35L4Y6.cjs → chunk-XCQ5I27Z.cjs} +3 -3
- package/dist/{chunk-5OENPMRU.cjs → chunk-XI3AMOW6.cjs} +65 -62
- package/dist/{chunk-TMPLHUUU.cjs → chunk-XTLMWLFB.cjs} +6 -6
- package/dist/{chunk-AZEO7HBB.cjs → chunk-Y44EF4JW.cjs} +2 -2
- package/dist/{chunk-RMI6O3AE.cjs → chunk-YB244RRB.cjs} +36 -36
- package/dist/{chunk-KA3L6D5N.cjs → chunk-YSXVRTGT.cjs} +9 -12
- package/dist/{chunk-H3GBPYPS.cjs → chunk-ZYAVIRQV.cjs} +25 -25
- package/dist/{cloud-tenants-5RNK4ZAT.cjs → cloud-tenants-J5T4YL2P.cjs} +28 -29
- package/dist/components/case-studies/index.cjs +44 -45
- package/dist/components/chat/chat-message-row.d.ts +1 -1
- package/dist/components/chat/chat-message-row.d.ts.map +1 -1
- package/dist/components/chat/chat-message-row.js +4 -4
- package/dist/components/chat/entity-cards/use-cover-image-fallback.d.ts +7 -13
- package/dist/components/chat/entity-cards/use-cover-image-fallback.d.ts.map +1 -1
- package/dist/components/chat/entity-cards/use-cover-image-fallback.js +2 -8
- package/dist/components/chat/hooks/use-chat-attachment-image-gallery.d.ts.map +1 -1
- package/dist/components/chat/hooks/use-chat-attachment-image-gallery.js +8 -4
- package/dist/components/chat/index.cjs +22 -23
- package/dist/components/contact/index.cjs +29 -30
- package/dist/components/docs/index.cjs +32 -33
- package/dist/components/embeds/index.cjs +29 -30
- package/dist/components/faq/index.cjs +30 -31
- package/dist/components/features/index.cjs +28 -29
- package/dist/components/features/remote-session/remote-session-viewers.d.ts +6 -1
- package/dist/components/features/remote-session/remote-session-viewers.d.ts.map +1 -1
- package/dist/components/features/remote-session/remote-session-viewers.js +10 -3
- package/dist/components/help-center-pages/index.cjs +134 -135
- package/dist/components/index.cjs +112 -113
- package/dist/components/meeting-scheduler/index.cjs +102 -103
- package/dist/components/navigation/index.cjs +31 -32
- package/dist/components/onboarding-guides/index.cjs +31 -32
- package/dist/components/product-demo/index.cjs +39 -40
- package/dist/components/related-content/index.cjs +16 -17
- package/dist/components/tickets/index.cjs +35 -36
- package/dist/components/ui/entity-image.d.ts +1 -2
- package/dist/components/ui/entity-image.d.ts.map +1 -1
- package/dist/components/ui/entity-image.js +4 -8
- package/dist/components/ui/index.cjs +28 -29
- package/dist/components/ui/markdown/base-components.d.ts +0 -13
- package/dist/components/ui/markdown/base-components.d.ts.map +1 -1
- package/dist/components/ui/markdown/base-components.js +7 -7
- package/dist/components/ui/square-avatar.d.ts.map +1 -1
- package/dist/components/ui/square-avatar.js +3 -8
- package/dist/{devices-44O5PZOW.cjs → devices-IJDF7SSK.cjs} +29 -30
- package/dist/embed-shims/index.cjs +3 -2
- package/dist/embed-shims/next-image.cjs +3 -2
- package/dist/embed-shims/next-image.d.ts +2 -0
- package/dist/embed-shims/next-image.d.ts.map +1 -1
- package/dist/embed-shims/next-image.js +14 -4
- package/dist/{embeddable-chat-W3CLMGC3.cjs → embeddable-chat-QD7NFD2H.cjs} +100 -101
- package/dist/hooks/index.cjs +23 -16
- package/dist/hooks/index.d.ts +1 -0
- package/dist/hooks/index.d.ts.map +1 -1
- package/dist/hooks/index.js +1 -0
- package/dist/hooks/use-authed-asset-src.d.ts +77 -2
- package/dist/hooks/use-authed-asset-src.d.ts.map +1 -1
- package/dist/hooks/use-authed-asset-src.js +185 -73
- package/dist/hooks/use-authed-image-src.d.ts +11 -4
- package/dist/hooks/use-authed-image-src.d.ts.map +1 -1
- package/dist/hooks/use-authed-image-src.js +6 -2
- package/dist/hooks/use-image-fallback.d.ts +16 -0
- package/dist/hooks/use-image-fallback.d.ts.map +1 -0
- package/dist/hooks/use-image-fallback.js +14 -0
- package/dist/index.cjs +40 -36
- package/dist/{knowledge-UUU3WVO3.cjs → knowledge-5LIK6Q4E.cjs} +29 -30
- package/dist/{logs-DFHNSODA.cjs → logs-FMENCAXT.cjs} +35 -36
- package/dist/{policies-RGFUGDBP.cjs → policies-DKQEEKB4.cjs} +32 -33
- package/dist/{remote-session-U3H77HKR.cjs → remote-session-6X7CAHBC.cjs} +13 -14
- package/dist/{scripts-KOVO5DHW.cjs → scripts-4EPUIFHF.cjs} +35 -36
- package/dist/{software-update-4EKHVV5W.cjs → software-update-IMNRXBAI.cjs} +32 -33
- package/dist/{tickets-board-YIFOVMDX.cjs → tickets-board-POYZS7BW.cjs} +16 -17
- package/dist/utils/app-origins.d.ts +3 -6
- package/dist/utils/app-origins.d.ts.map +1 -1
- package/dist/utils/app-origins.js +8 -1
- package/dist/utils/embed-authed-fetch.d.ts +46 -26
- package/dist/utils/embed-authed-fetch.d.ts.map +1 -1
- package/dist/utils/embed-authed-fetch.js +24 -8
- package/dist/utils/index.cjs +4 -1
- package/dist/{video-file-player-XMOB234V.cjs → video-file-player-RIOT24NT.cjs} +3 -4
- package/package.json +1 -1
- package/src/components/chat/chat-message-row.tsx +8 -7
- package/src/components/chat/entity-cards/use-cover-image-fallback.ts +8 -28
- package/src/components/chat/hooks/use-chat-attachment-image-gallery.tsx +19 -8
- package/src/components/features/remote-session/remote-session-viewers.tsx +16 -3
- package/src/components/ui/entity-image.tsx +4 -12
- package/src/components/ui/markdown/base-components.tsx +15 -20
- package/src/components/ui/square-avatar.tsx +5 -8
- package/src/embed-shims/next-image.tsx +34 -3
- package/src/hooks/index.ts +1 -0
- package/src/hooks/use-authed-asset-src.ts +323 -107
- package/src/hooks/use-authed-image-src.ts +15 -5
- package/src/hooks/use-image-fallback.ts +31 -0
- package/src/utils/app-origins.ts +12 -7
- package/src/utils/embed-authed-fetch.ts +71 -32
- package/dist/chunk-YSDB6HGQ.cjs +0 -102
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
|
|
15
15
|
|
|
16
16
|
|
|
17
|
-
var
|
|
17
|
+
var _chunkHML3JUXFcjs = require('./chunk-HML3JUXF.cjs');
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
|
|
@@ -23,13 +23,13 @@ var _chunkOT6P57ZScjs = require('./chunk-OT6P57ZS.cjs');
|
|
|
23
23
|
|
|
24
24
|
|
|
25
25
|
|
|
26
|
-
var
|
|
26
|
+
var _chunk65NMKAPQcjs = require('./chunk-65NMKAPQ.cjs');
|
|
27
27
|
|
|
28
28
|
|
|
29
29
|
|
|
30
30
|
|
|
31
31
|
|
|
32
|
-
var
|
|
32
|
+
var _chunkSTV6VJ3Ucjs = require('./chunk-STV6VJ3U.cjs');
|
|
33
33
|
|
|
34
34
|
|
|
35
35
|
var _chunk3XTNLCTCcjs = require('./chunk-3XTNLCTC.cjs');
|
|
@@ -100,7 +100,7 @@ var _chunkBFMRU3R6cjs = require('./chunk-BFMRU3R6.cjs');
|
|
|
100
100
|
|
|
101
101
|
|
|
102
102
|
|
|
103
|
-
var
|
|
103
|
+
var _chunk77GX573Icjs = require('./chunk-77GX573I.cjs');
|
|
104
104
|
|
|
105
105
|
|
|
106
106
|
var _chunkJKX2C3I2cjs = require('./chunk-JKX2C3I2.cjs');
|
|
@@ -113,13 +113,13 @@ var _chunkEWPR7662cjs = require('./chunk-EWPR7662.cjs');
|
|
|
113
113
|
var _chunkIX2E3AN7cjs = require('./chunk-IX2E3AN7.cjs');
|
|
114
114
|
|
|
115
115
|
|
|
116
|
-
var
|
|
116
|
+
var _chunk2JCA7BRKcjs = require('./chunk-2JCA7BRK.cjs');
|
|
117
117
|
|
|
118
118
|
|
|
119
119
|
|
|
120
120
|
|
|
121
121
|
|
|
122
|
-
var
|
|
122
|
+
var _chunk3GJ75OULcjs = require('./chunk-3GJ75OUL.cjs');
|
|
123
123
|
|
|
124
124
|
|
|
125
125
|
|
|
@@ -128,7 +128,7 @@ var _chunkYY3WP2YQcjs = require('./chunk-YY3WP2YQ.cjs');
|
|
|
128
128
|
|
|
129
129
|
|
|
130
130
|
|
|
131
|
-
var
|
|
131
|
+
var _chunkYSXVRTGTcjs = require('./chunk-YSXVRTGT.cjs');
|
|
132
132
|
|
|
133
133
|
|
|
134
134
|
|
|
@@ -147,26 +147,28 @@ var _chunkKA3L6D5Ncjs = require('./chunk-KA3L6D5N.cjs');
|
|
|
147
147
|
|
|
148
148
|
|
|
149
149
|
|
|
150
|
-
var
|
|
150
|
+
var _chunkAYMY2VNBcjs = require('./chunk-AYMY2VNB.cjs');
|
|
151
151
|
|
|
152
152
|
|
|
153
|
-
var _chunkYSDB6HGQcjs = require('./chunk-YSDB6HGQ.cjs');
|
|
154
153
|
|
|
154
|
+
var _chunkEXQSIX2Icjs = require('./chunk-EXQSIX2I.cjs');
|
|
155
155
|
|
|
156
156
|
|
|
157
|
-
var
|
|
157
|
+
var _chunkRY7INTYUcjs = require('./chunk-RY7INTYU.cjs');
|
|
158
158
|
|
|
159
159
|
|
|
160
160
|
|
|
161
|
+
var _chunk6DMH4GXNcjs = require('./chunk-6DMH4GXN.cjs');
|
|
161
162
|
|
|
162
163
|
|
|
163
164
|
|
|
164
165
|
|
|
165
166
|
|
|
166
|
-
var _chunkGI3MMBP3cjs = require('./chunk-GI3MMBP3.cjs');
|
|
167
167
|
|
|
168
168
|
|
|
169
|
-
|
|
169
|
+
|
|
170
|
+
|
|
171
|
+
var _chunkSQ7YHWEPcjs = require('./chunk-SQ7YHWEP.cjs');
|
|
170
172
|
|
|
171
173
|
|
|
172
174
|
|
|
@@ -203,7 +205,6 @@ var _chunkQDB2JO55cjs = require('./chunk-QDB2JO55.cjs');
|
|
|
203
205
|
var _react = require('react'); var _react2 = _interopRequireDefault(_react);
|
|
204
206
|
|
|
205
207
|
// src/components/chat/chat-message-row.tsx
|
|
206
|
-
|
|
207
208
|
var _jsxruntime = require('react/jsx-runtime');
|
|
208
209
|
var ROW_CLASS = "flex w-full min-w-0 gap-2 md:gap-3";
|
|
209
210
|
var AVATAR_BOX_CLASS = "h-8 w-8 flex-shrink-0 rounded-lg md:h-10 md:w-10";
|
|
@@ -218,21 +219,20 @@ function ChatMessageRow(props) {
|
|
|
218
219
|
}
|
|
219
220
|
function ChatMessageRowLoaded(props) {
|
|
220
221
|
const { displayName, avatarUrl, timeLabel, body, footer } = props;
|
|
221
|
-
const proxiedAvatar =
|
|
222
|
+
const proxiedAvatar = _chunk3GJ75OULcjs.useProxiedImageUrl.call(void 0, _nullishCoalesce(avatarUrl, () => ( "")));
|
|
222
223
|
const resolvedAvatar = proxiedAvatar || avatarUrl || void 0;
|
|
223
|
-
const
|
|
224
|
-
const src = resolvedAvatar && resolvedAvatar !== failedSrc ? resolvedAvatar : void 0;
|
|
224
|
+
const { src, onError } = _chunkRY7INTYUcjs.useImageFallback.call(void 0, _chunk6DMH4GXNcjs.useAuthedImageSrc.call(void 0, resolvedAvatar));
|
|
225
225
|
const hasBody = typeof body === "string" ? body.trim().length > 0 : body != null && body !== false;
|
|
226
226
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: ROW_CLASS, ..._chunk63A4GZMBcjs.loadingItemProps.call(void 0, props), children: [
|
|
227
227
|
src ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
228
|
-
|
|
228
|
+
_chunk6DMH4GXNcjs.next_image_default,
|
|
229
229
|
{
|
|
230
230
|
src,
|
|
231
231
|
alt: displayName,
|
|
232
232
|
className: _chunk63A4GZMBcjs.cn.call(void 0, AVATAR_BOX_CLASS, "object-cover"),
|
|
233
233
|
width: _chunkPMUCEUFQcjs.AVATAR_SIZE_PX.md,
|
|
234
234
|
height: _chunkPMUCEUFQcjs.AVATAR_SIZE_PX.md,
|
|
235
|
-
onError
|
|
235
|
+
onError
|
|
236
236
|
}
|
|
237
237
|
) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
238
238
|
"div",
|
|
@@ -241,7 +241,7 @@ function ChatMessageRowLoaded(props) {
|
|
|
241
241
|
AVATAR_BOX_CLASS,
|
|
242
242
|
"flex items-center justify-center border border-ods-border bg-ods-bg text-ods-text-primary text-h6"
|
|
243
243
|
),
|
|
244
|
-
children:
|
|
244
|
+
children: _chunkYSXVRTGTcjs.personInitials.call(void 0, displayName) || "?"
|
|
245
245
|
}
|
|
246
246
|
),
|
|
247
247
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: CONTENT_CLASS, children: [
|
|
@@ -343,7 +343,7 @@ function ChatTurnSkeleton({
|
|
|
343
343
|
className
|
|
344
344
|
}) {
|
|
345
345
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk63A4GZMBcjs.cn.call(void 0, TURN_ROW_CLASS, className), "aria-hidden": true, children: [
|
|
346
|
-
avatarPx ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
346
|
+
avatarPx ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkYSXVRTGTcjs.SquareAvatar, { loading: true, sizePx: avatarPx, variant: avatarShape }) : null,
|
|
347
347
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: TURN_BODY_CLASS, children: [
|
|
348
348
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, ChatTurnNameSkeleton, { nameSize, meta, time }),
|
|
349
349
|
_nullishCoalesce(body, () => ( /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPMUCEUFQcjs.TextLineSkeleton, { lines, type: "h4" })))
|
|
@@ -953,7 +953,7 @@ function isOSPlatform(deviceOS, targetPlatform) {
|
|
|
953
953
|
// src/utils/mobile-app.ts
|
|
954
954
|
var DOWNLOAD_PAGE_PATH = "/download";
|
|
955
955
|
function resolveMobileStoreUrl(links, userAgent, maxTouchPoints) {
|
|
956
|
-
const os =
|
|
956
|
+
const os = _chunk77GX573Icjs.detectVisitorOs.call(void 0, userAgent, { maxTouchPoints });
|
|
957
957
|
if (os === "ios") return links.appStoreUrl;
|
|
958
958
|
if (os === "android") return links.googlePlayUrl;
|
|
959
959
|
return null;
|
|
@@ -1238,7 +1238,7 @@ function canUseCookies() {
|
|
|
1238
1238
|
return document.URL.startsWith("http:") || document.URL.startsWith("https:");
|
|
1239
1239
|
}
|
|
1240
1240
|
function fallbackStore(name) {
|
|
1241
|
-
return
|
|
1241
|
+
return _chunkSQ7YHWEPcjs.createLocalStorageAdapter.call(void 0, {
|
|
1242
1242
|
key: name,
|
|
1243
1243
|
logTag: "[dismiss-cookie]",
|
|
1244
1244
|
validate: (parsed) => typeof parsed === "string"
|
|
@@ -1379,7 +1379,7 @@ var PRESENCE_RETRY_MIN_INTERVAL_MS = 3e4;
|
|
|
1379
1379
|
function createSseSubscription(options) {
|
|
1380
1380
|
const {
|
|
1381
1381
|
url,
|
|
1382
|
-
fetchImpl =
|
|
1382
|
+
fetchImpl = _chunkSQ7YHWEPcjs.embedAuthedFetch,
|
|
1383
1383
|
onEvent,
|
|
1384
1384
|
onStatusChange,
|
|
1385
1385
|
onConnectedChange,
|
|
@@ -1668,7 +1668,7 @@ function createSseSubscription(options) {
|
|
|
1668
1668
|
const onOnline = () => {
|
|
1669
1669
|
if (!suspended) doReconnect();
|
|
1670
1670
|
};
|
|
1671
|
-
const unsubscribeCredentials = pauseWhenHidden && fetchImpl ===
|
|
1671
|
+
const unsubscribeCredentials = pauseWhenHidden && fetchImpl === _chunkSQ7YHWEPcjs.embedAuthedFetch ? _chunkSQ7YHWEPcjs.subscribeEmbedCredentialChange.call(void 0, () => {
|
|
1672
1672
|
if (awaitingAuth) doReconnect();
|
|
1673
1673
|
}) : null;
|
|
1674
1674
|
const listenersActive = pauseWhenHidden && typeof document !== "undefined" && typeof window !== "undefined";
|
|
@@ -1921,7 +1921,7 @@ var OPENFRAME_DEV_SECTIONS = {
|
|
|
1921
1921
|
function openInNewTab(href) {
|
|
1922
1922
|
return (event) => {
|
|
1923
1923
|
event.preventDefault();
|
|
1924
|
-
|
|
1924
|
+
_chunk77GX573Icjs.executeNewTabNavigation.call(void 0, { runtime: null, href });
|
|
1925
1925
|
};
|
|
1926
1926
|
}
|
|
1927
1927
|
|
|
@@ -2060,7 +2060,7 @@ function lastPathSegment(url) {
|
|
|
2060
2060
|
function makeComposeContentUrl(opts) {
|
|
2061
2061
|
const suffixes = _nullishCoalesce(opts.suffixes, () => ( DEFAULT_CONTENT_SUFFIXES));
|
|
2062
2062
|
return ({ type: rawType, identifier, slug: slugHint, externalUrl, targetPlatform, platforms }) => {
|
|
2063
|
-
const type =
|
|
2063
|
+
const type = _chunk3GJ75OULcjs.canonicalContentRefType.call(void 0, rawType);
|
|
2064
2064
|
const override = opts.overrides && Object.prototype.hasOwnProperty.call(opts.overrides, type) ? opts.overrides[type] : void 0;
|
|
2065
2065
|
if (override) return { ...override(identifier), hostOverride: true };
|
|
2066
2066
|
const seg = _nullishCoalesce((Object.prototype.hasOwnProperty.call(suffixes, type) ? suffixes[type] : void 0), () => ( type));
|
|
@@ -2071,8 +2071,8 @@ function makeComposeContentUrl(opts) {
|
|
|
2071
2071
|
}
|
|
2072
2072
|
if (externalUrl) return { href: externalUrl, targetPlatform: _nullishCoalesce(targetPlatform, () => ( null)) };
|
|
2073
2073
|
const claimedOwner = _nullishCoalesce(targetPlatform, () => ( primaryPlatformOf(platforms)));
|
|
2074
|
-
const owner = claimedOwner &&
|
|
2075
|
-
const origin = owner ?
|
|
2074
|
+
const owner = claimedOwner && _chunkEXQSIX2Icjs.byKey.call(void 0, claimedOwner) ? claimedOwner : null;
|
|
2075
|
+
const origin = owner ? _chunkEXQSIX2Icjs.getPlatformProductionUrl.call(void 0, owner) : opts.contentOrigin;
|
|
2076
2076
|
return {
|
|
2077
2077
|
href: `${origin.replace(/\/+$/, "")}/${seg}/${_optionalChain([slugHint, 'optionalAccess', _88 => _88.trim, 'call', _89 => _89()]) || identifier}`,
|
|
2078
2078
|
// Report the owner so `decideNewTab` can compare it against the current
|
|
@@ -2261,8 +2261,8 @@ var DEFAULT_OPTIONS = {
|
|
|
2261
2261
|
function extractSections(markdown, options = {}) {
|
|
2262
2262
|
const opts = { ...DEFAULT_OPTIONS, ...options };
|
|
2263
2263
|
const sections = [];
|
|
2264
|
-
const dedupe =
|
|
2265
|
-
const scanned =
|
|
2264
|
+
const dedupe = _chunk77GX573Icjs.createHeadingIdDeduper.call(void 0, );
|
|
2265
|
+
const scanned = _chunk77GX573Icjs.scanHeadings.call(void 0, markdown, {
|
|
2266
2266
|
skipFrontmatter: opts.skipCodeAndYamlBlocks,
|
|
2267
2267
|
skipFences: opts.skipCodeAndYamlBlocks
|
|
2268
2268
|
});
|
|
@@ -2270,9 +2270,9 @@ function extractSections(markdown, options = {}) {
|
|
|
2270
2270
|
if (heading.level > opts.maxLevel) continue;
|
|
2271
2271
|
let title = heading.text;
|
|
2272
2272
|
if (opts.stripFormattingMarkers) {
|
|
2273
|
-
title =
|
|
2273
|
+
title = _chunkHML3JUXFcjs.stripInlineMarkdown.call(void 0, title).trim();
|
|
2274
2274
|
}
|
|
2275
|
-
const baseId =
|
|
2275
|
+
const baseId = _chunk77GX573Icjs.slugifyHeadingBase.call(void 0, opts.removeEmojis ? _chunk77GX573Icjs.stripHeadingEmojis.call(void 0, title) : title);
|
|
2276
2276
|
const cleanId = baseId || `section-${sections.length + 1}`;
|
|
2277
2277
|
sections.push({
|
|
2278
2278
|
id: opts.handleDuplicateIds ? dedupe(cleanId) : cleanId,
|
|
@@ -2332,7 +2332,7 @@ function sanitizeLandingUrl(url) {
|
|
|
2332
2332
|
}
|
|
2333
2333
|
}
|
|
2334
2334
|
function makeAdapter() {
|
|
2335
|
-
return
|
|
2335
|
+
return _chunkSQ7YHWEPcjs.createLocalStorageAdapter.call(void 0, {
|
|
2336
2336
|
key: FIRST_TOUCH_ATTRIBUTION_KEY,
|
|
2337
2337
|
backend: "session",
|
|
2338
2338
|
logTag: "[first-touch-attribution]",
|
|
@@ -2527,7 +2527,7 @@ function demoClockTimes(seed, options = {}) {
|
|
|
2527
2527
|
function openAskAi(source, options) {
|
|
2528
2528
|
const prompt = _optionalChain([options, 'optionalAccess', _96 => _96.prompt, 'optionalAccess', _97 => _97.trim, 'call', _98 => _98()]);
|
|
2529
2529
|
const detail = prompt ? { source: _nullishCoalesce(source, () => ( "")), prompt } : { source: _nullishCoalesce(source, () => ( "")) };
|
|
2530
|
-
window.dispatchEvent(new CustomEvent(
|
|
2530
|
+
window.dispatchEvent(new CustomEvent(_chunkHML3JUXFcjs.ASK_AI_OPEN_EVENT, { detail }));
|
|
2531
2531
|
}
|
|
2532
2532
|
function MingoAiButton({
|
|
2533
2533
|
source,
|
|
@@ -2539,10 +2539,10 @@ function MingoAiButton({
|
|
|
2539
2539
|
onClick,
|
|
2540
2540
|
...props
|
|
2541
2541
|
}) {
|
|
2542
|
-
const visitor =
|
|
2542
|
+
const visitor = _chunk77GX573Icjs.useVisitorOs.call(void 0, );
|
|
2543
2543
|
const field = variant === "field";
|
|
2544
2544
|
const inPage = variant === "button";
|
|
2545
|
-
const commandKey = visitor.known &&
|
|
2545
|
+
const commandKey = visitor.known && _chunk77GX573Icjs.usesCommandKey.call(void 0, visitor.os);
|
|
2546
2546
|
const assistant = _chunkEWPR7662cjs.useAssistantRuntime.call(void 0, );
|
|
2547
2547
|
const label = _nullishCoalesce(labelProp, () => ( _optionalChain([assistant, 'optionalAccess', _99 => _99.name])));
|
|
2548
2548
|
const icon = _nullishCoalesce(iconProp, () => ( _optionalChain([assistant, 'optionalAccess', _100 => _100.icon])));
|
|
@@ -2570,7 +2570,7 @@ function MingoAiButton({
|
|
|
2570
2570
|
{
|
|
2571
2571
|
...props,
|
|
2572
2572
|
type: "button",
|
|
2573
|
-
...{ [
|
|
2573
|
+
...{ [_chunkHML3JUXFcjs.ASK_AI_TRIGGER_ATTRIBUTE]: "" },
|
|
2574
2574
|
variant: field ? "glyph" : "transparent",
|
|
2575
2575
|
size: "wrap",
|
|
2576
2576
|
font: "regular",
|
|
@@ -2595,7 +2595,7 @@ function MingoAiButton({
|
|
|
2595
2595
|
),
|
|
2596
2596
|
children: [
|
|
2597
2597
|
!field && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
2598
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2598
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHML3JUXFcjs.MingoEdgeLight, { className: "rounded-md" }),
|
|
2599
2599
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { "aria-hidden": "true", className: "pointer-events-none absolute inset-0 overflow-hidden rounded-md", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2600
2600
|
"span",
|
|
2601
2601
|
{
|
|
@@ -2616,7 +2616,7 @@ function MingoAiButton({
|
|
|
2616
2616
|
children: icon
|
|
2617
2617
|
}
|
|
2618
2618
|
) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2619
|
-
|
|
2619
|
+
_chunkSTV6VJ3Ucjs.AgentMark,
|
|
2620
2620
|
{
|
|
2621
2621
|
agent: "mingo",
|
|
2622
2622
|
className: _chunk63A4GZMBcjs.cn.call(void 0, "relative shrink-0 text-ods-text-primary", field ? "size-6" : "size-5")
|
|
@@ -2643,7 +2643,7 @@ function MingoAiButton({
|
|
|
2643
2643
|
"relative h-6 min-w-9 items-center justify-center rounded border border-ods-border px-[var(--spacing-system-xxs)] text-h6",
|
|
2644
2644
|
inPage ? "inline-flex" : "hidden lg:inline-flex"
|
|
2645
2645
|
),
|
|
2646
|
-
children: visitor.known ?
|
|
2646
|
+
children: visitor.known ? _chunk77GX573Icjs.shortcutLabel.call(void 0, visitor.os, "K") : ""
|
|
2647
2647
|
}
|
|
2648
2648
|
)
|
|
2649
2649
|
]
|
|
@@ -2672,7 +2672,7 @@ function useAskPrompts({
|
|
|
2672
2672
|
const assistant = _chunkEWPR7662cjs.useAssistantRuntime.call(void 0, );
|
|
2673
2673
|
const base = assistantAvailable(assistant) ? assistant.askPromptsUrl : void 0;
|
|
2674
2674
|
const url = base && enabled ? buildAskPromptsUrl(base, { count, topic, exclude }) : null;
|
|
2675
|
-
const { data, dataUrl, error } =
|
|
2675
|
+
const { data, dataUrl, error } = _chunk2JCA7BRKcjs.useSelfFetch.call(void 0, url);
|
|
2676
2676
|
const landed = url !== null && (dataUrl === url || error);
|
|
2677
2677
|
return { prompts: landed ? _nullishCoalesce(_optionalChain([data, 'optionalAccess', _105 => _105.prompts]), () => ( [])) : [], isLoading: !!base && !landed, supported: !!base };
|
|
2678
2678
|
}
|
|
@@ -2788,7 +2788,7 @@ function useAskSurface({
|
|
|
2788
2788
|
// src/components/chat/ask-prompts.tsx
|
|
2789
2789
|
|
|
2790
2790
|
function AssistantGlyph({ icon, className }) {
|
|
2791
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunk63A4GZMBcjs.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,
|
|
2791
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunk63A4GZMBcjs.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, _chunkSTV6VJ3Ucjs.AgentMark, { agent: "mingo", className: "size-full" }))) });
|
|
2792
2792
|
}
|
|
2793
2793
|
var slotCount = (count, loading, prompts) => _nullishCoalesce(count, () => ( (loading ? ASK_PROMPTS_DEFAULT_COUNT : prompts.length)));
|
|
2794
2794
|
var SKELETON_LABEL_CH = [26, 22, 30, 24, 20, 28];
|
|
@@ -2811,9 +2811,9 @@ function QuestionChips({
|
|
|
2811
2811
|
{
|
|
2812
2812
|
"data-loading-item": true,
|
|
2813
2813
|
className: _nullishCoalesce(slotClassName, () => ( CHIP_SLOT_CLASS)),
|
|
2814
|
-
...prompt ? { [
|
|
2814
|
+
...prompt ? { [_chunkHML3JUXFcjs.ASK_AI_TRIGGER_ATTRIBUTE]: "" } : {},
|
|
2815
2815
|
children: (loading || prompt) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2816
|
-
|
|
2816
|
+
_chunkHML3JUXFcjs.QuickActionChipButton,
|
|
2817
2817
|
{
|
|
2818
2818
|
loading,
|
|
2819
2819
|
variant: "question",
|
|
@@ -2851,7 +2851,7 @@ function AskPrompts({
|
|
|
2851
2851
|
if (!loading && prompts.length === 0) return null;
|
|
2852
2852
|
const end = align === "end";
|
|
2853
2853
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
2854
|
-
|
|
2854
|
+
_chunk65NMKAPQcjs.ScrollShadow,
|
|
2855
2855
|
{
|
|
2856
2856
|
axis: "horizontal",
|
|
2857
2857
|
color: fadeColor,
|
|
@@ -3024,7 +3024,7 @@ function QuickActionMarquee({
|
|
|
3024
3024
|
);
|
|
3025
3025
|
if (items.length === 0) return null;
|
|
3026
3026
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3027
|
-
|
|
3027
|
+
_chunkHML3JUXFcjs.QuickActionWall,
|
|
3028
3028
|
{
|
|
3029
3029
|
chips,
|
|
3030
3030
|
mode,
|
|
@@ -3057,13 +3057,13 @@ var ChatTicketItem = _react.forwardRef.call(void 0,
|
|
|
3057
3057
|
({ className, ticket, onClick, loading: loadingProp = false, ...props }, ref) => {
|
|
3058
3058
|
const loading = _chunk63A4GZMBcjs.useLoadingScope.call(void 0, ) || loadingProp;
|
|
3059
3059
|
if (!loading && !ticket) return null;
|
|
3060
|
-
const statusTagProps = ticket ?
|
|
3060
|
+
const statusTagProps = ticket ? _chunkSTV6VJ3Ucjs.resolveStatusTagProps.call(void 0, {
|
|
3061
3061
|
status: ticket.status,
|
|
3062
3062
|
statusKind: ticket.statusKind,
|
|
3063
3063
|
statusName: ticket.statusLabel,
|
|
3064
3064
|
statusColor: ticket.statusColor
|
|
3065
3065
|
}) : null;
|
|
3066
|
-
const isResolved = !!ticket && (ticket.statusKind === "RESOLVED" ||
|
|
3066
|
+
const isResolved = !!ticket && (ticket.statusKind === "RESOLVED" || _chunkSTV6VJ3Ucjs.resolveTicketStatus.call(void 0, ticket.status) === "RESOLVED");
|
|
3067
3067
|
const composedSubtitle = ticket ? [ticket.ticketNumber, ticket.category, ticket.timeAgo].filter(Boolean).join(" \u2022 ") : "";
|
|
3068
3068
|
const subtitle = _nullishCoalesce(_optionalChain([ticket, 'optionalAccess', _125 => _125.subtitle]), () => ( (_optionalChain([ticket, 'optionalAccess', _126 => _126.unread]) ? UNREAD_NOTICE : composedSubtitle)));
|
|
3069
3069
|
const unread = !!_optionalChain([ticket, 'optionalAccess', _127 => _127.unread]);
|
|
@@ -3090,7 +3090,7 @@ var ChatTicketItem = _react.forwardRef.call(void 0,
|
|
|
3090
3090
|
)
|
|
3091
3091
|
] }) }),
|
|
3092
3092
|
_optionalChain([ticket, 'optionalAccess', _128 => _128.linkedTaskLabel]) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3093
|
-
|
|
3093
|
+
_chunkYSXVRTGTcjs.Tag,
|
|
3094
3094
|
{
|
|
3095
3095
|
"data-loading-optional": true,
|
|
3096
3096
|
label: ticket.linkedTaskLabel,
|
|
@@ -3099,7 +3099,7 @@ var ChatTicketItem = _react.forwardRef.call(void 0,
|
|
|
3099
3099
|
className: "hidden shrink-0 sm:inline-flex"
|
|
3100
3100
|
}
|
|
3101
3101
|
),
|
|
3102
|
-
loading ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3102
|
+
loading ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkSTV6VJ3Ucjs.TicketStatusTag, { status: "", loading: true, className: "w-20" }) : statusTagProps && (statusTagProps.status || statusTagProps.label) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkSTV6VJ3Ucjs.TicketStatusTag, { ...statusTagProps }),
|
|
3103
3103
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3104
3104
|
"div",
|
|
3105
3105
|
{
|
|
@@ -3144,7 +3144,7 @@ var ChatTicketList = _react.forwardRef.call(void 0,
|
|
|
3144
3144
|
...props
|
|
3145
3145
|
}, ref) => {
|
|
3146
3146
|
const isLoading = _chunk63A4GZMBcjs.useLoadingScope.call(void 0, ) || isLoadingProp;
|
|
3147
|
-
const { scrollRef, fadeTop, fadeBottom, update: updateFade } =
|
|
3147
|
+
const { scrollRef, fadeTop, fadeBottom, update: updateFade } = _chunk65NMKAPQcjs.useScrollFade.call(void 0, );
|
|
3148
3148
|
if (!isLoading && tickets.length === 0) return null;
|
|
3149
3149
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { ref, className: _chunk63A4GZMBcjs.cn.call(void 0, "flex min-h-0 flex-col gap-2", className), ...props, children: [
|
|
3150
3150
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "shrink-0 text-ods-text-secondary text-h5", children: "Your Chats:" }),
|
|
@@ -3158,8 +3158,8 @@ var ChatTicketList = _react.forwardRef.call(void 0,
|
|
|
3158
3158
|
),
|
|
3159
3159
|
children: [
|
|
3160
3160
|
/* @__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, _chunk63A4GZMBcjs.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)) }),
|
|
3161
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3162
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3161
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk65NMKAPQcjs.ScrollFadeOverlay, { edge: "top", visible: !isLoading && fadeTop }),
|
|
3162
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk65NMKAPQcjs.ScrollFadeOverlay, { edge: "bottom", visible: !isLoading && fadeBottom })
|
|
3163
3163
|
]
|
|
3164
3164
|
}
|
|
3165
3165
|
)
|
|
@@ -3214,7 +3214,7 @@ function ComposerSheet({
|
|
|
3214
3214
|
const panelRef = _react.useRef.call(void 0, null);
|
|
3215
3215
|
const dockHeight = _chunkOT6P57ZScjs.useComposerDockHeight.call(void 0, );
|
|
3216
3216
|
_chunkOT6P57ZScjs.useCoverMobileActionBar.call(void 0, open);
|
|
3217
|
-
|
|
3217
|
+
_chunkSQ7YHWEPcjs.useIsomorphicLayoutEffect.call(void 0, () => {
|
|
3218
3218
|
if (!layer) return void 0;
|
|
3219
3219
|
const update = () => setLayerHeight(layer.clientHeight);
|
|
3220
3220
|
update();
|
|
@@ -3270,7 +3270,7 @@ function ComposerSheet({
|
|
|
3270
3270
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, TabFoot, { side: "left" }),
|
|
3271
3271
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, TabFoot, { side: "right" }),
|
|
3272
3272
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3273
|
-
|
|
3273
|
+
_chunkHML3JUXFcjs.PanelResizeHandle,
|
|
3274
3274
|
{
|
|
3275
3275
|
side: "bottom",
|
|
3276
3276
|
size: _nullishCoalesce(resolved, () => ( floor)),
|
|
@@ -3314,7 +3314,7 @@ var DialogListItem = _react.forwardRef.call(void 0,
|
|
|
3314
3314
|
_optionalChain([onClick, 'optionalCall', _131 => _131(e)]);
|
|
3315
3315
|
};
|
|
3316
3316
|
const formatTimestamp = (timestamp) => {
|
|
3317
|
-
return
|
|
3317
|
+
return _chunkYSXVRTGTcjs.formatDateWithTimezone.call(void 0, timestamp, _chunkYSXVRTGTcjs.VIEWER_TIMEZONE, "numericDateTime24h");
|
|
3318
3318
|
};
|
|
3319
3319
|
const unread = loading ? 0 : _nullishCoalesce(dialog.unreadMessagesCount, () => ( 0));
|
|
3320
3320
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
@@ -3373,7 +3373,7 @@ var ChatSidebar = _react.forwardRef.call(void 0,
|
|
|
3373
3373
|
hasNextPage,
|
|
3374
3374
|
isFetchingNextPage,
|
|
3375
3375
|
onLoadMore,
|
|
3376
|
-
pageSize =
|
|
3376
|
+
pageSize = _chunkHML3JUXFcjs.CHAT_HISTORY_PAGE_SIZE,
|
|
3377
3377
|
...props
|
|
3378
3378
|
}, ref) => {
|
|
3379
3379
|
const loading = _chunk63A4GZMBcjs.useLoadingScope.call(void 0, ) || !!isLoading && dialogs.length === 0 && !children;
|
|
@@ -3491,7 +3491,7 @@ var ChatTopNavigation = _react.forwardRef.call(void 0,
|
|
|
3491
3491
|
),
|
|
3492
3492
|
/* @__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: [
|
|
3493
3493
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3494
|
-
|
|
3494
|
+
_chunkYSXVRTGTcjs.SquareAvatar,
|
|
3495
3495
|
{
|
|
3496
3496
|
loading: isLoading,
|
|
3497
3497
|
src: _nullishCoalesce(avatarUrl, () => ( void 0)),
|
|
@@ -3657,7 +3657,7 @@ function OnboardingCarousel({
|
|
|
3657
3657
|
|
|
3658
3658
|
var ADMIN_CONTENT_CARD_GRID_CLASS = "grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-[var(--spacing-system-lf)]";
|
|
3659
3659
|
var GRID_CELL_CLASS = "h-full";
|
|
3660
|
-
var DEFAULT_LOADING_CARD = /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3660
|
+
var DEFAULT_LOADING_CARD = /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3GJ75OULcjs.AdminContentCard, { loading: true, reserveRows: true, title: "", actions: true });
|
|
3661
3661
|
function loadingCardOf(loadingCard, Skeleton) {
|
|
3662
3662
|
if (loadingCard !== void 0) return loadingCard;
|
|
3663
3663
|
return Skeleton ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Skeleton, {}) : DEFAULT_LOADING_CARD;
|
|
@@ -3671,7 +3671,7 @@ function AdminContentCardGridSkeleton({
|
|
|
3671
3671
|
label = "Loading",
|
|
3672
3672
|
region = true
|
|
3673
3673
|
}) {
|
|
3674
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3674
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHML3JUXFcjs.LoadingFallback, { label, status: region, className: _chunk63A4GZMBcjs.cn.call(void 0, ADMIN_CONTENT_CARD_GRID_CLASS, className), children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk63A4GZMBcjs.LoadingItems, { count, children: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: GRID_CELL_CLASS, "data-loading-item": true, children: loadingCardOf(loadingCard, Skeleton) }) }) });
|
|
3675
3675
|
}
|
|
3676
3676
|
function AdminContentCardGrid({
|
|
3677
3677
|
items,
|
|
@@ -3735,7 +3735,7 @@ function parseChannelFromUrl(url) {
|
|
|
3735
3735
|
function SlackMessageCard({ item, variant = "compact", className, anchorProps }) {
|
|
3736
3736
|
if (_chunk63A4GZMBcjs.useLoadingScope.call(void 0, )) return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, SlackMessageCardSkeleton, { variant, className });
|
|
3737
3737
|
const channel = _nullishCoalesce(_nullishCoalesce(item.channel, () => ( parseChannelFromUrl(item.url))), () => ( null));
|
|
3738
|
-
const dateText =
|
|
3738
|
+
const dateText = _chunkYSXVRTGTcjs.formatDateUTC.call(void 0, item.dateUpdated, { fallback: "", timezone: "local" });
|
|
3739
3739
|
if (variant === "row") {
|
|
3740
3740
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: `flex min-w-0 items-center gap-3 ${_nullishCoalesce(className, () => ( ""))}`, children: [
|
|
3741
3741
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOWDRZM73cjs.SlackIcon, { className: "h-3.5 w-3.5 shrink-0" }),
|
|
@@ -3761,23 +3761,23 @@ function SlackMessageCard({ item, variant = "compact", className, anchorProps })
|
|
|
3761
3761
|
metaParts.push(
|
|
3762
3762
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "whitespace-nowrap", children: dateText }, "date")
|
|
3763
3763
|
);
|
|
3764
|
-
const href =
|
|
3764
|
+
const href = _chunkAYMY2VNBcjs.safeHref.call(void 0, item.url);
|
|
3765
3765
|
const body = /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
3766
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
3767
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className:
|
|
3768
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
3769
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
3770
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
3766
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkAYMY2VNBcjs.COMPACT_CARD_ICON_SLOT, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOWDRZM73cjs.SlackIcon, { className: "h-5 w-5" }) }),
|
|
3767
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: _chunkAYMY2VNBcjs.COMPACT_CARD_TEXT_COL, children: [
|
|
3768
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkAYMY2VNBcjs.COMPACT_CARD_TITLE_ROW, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkAYMY2VNBcjs.COMPACT_CARD_TITLE, children: item.title }) }),
|
|
3769
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkAYMY2VNBcjs.COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkAYMY2VNBcjs.COMPACT_CARD_SUMMARY, children: item.preview || _chunkAYMY2VNBcjs.COMPACT_CARD_ROW_FILLER }) }),
|
|
3770
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkAYMY2VNBcjs.COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkAYMY2VNBcjs.COMPACT_CARD_META_ROW, children: metaParts.length > 0 ? metaParts.map((part, i) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _react2.default.Fragment, { children: [
|
|
3771
3771
|
i > 0 ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "shrink-0 text-ods-text-secondary/40", children: "\xB7" }) : null,
|
|
3772
3772
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "min-w-0 truncate", children: part })
|
|
3773
|
-
] }, i)) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
3773
|
+
] }, i)) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkAYMY2VNBcjs.COMPACT_CARD_SUMMARY, children: _chunkAYMY2VNBcjs.COMPACT_CARD_ROW_FILLER }) }) })
|
|
3774
3774
|
] }),
|
|
3775
3775
|
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
|
|
3776
3776
|
] });
|
|
3777
3777
|
if (anchorProps) {
|
|
3778
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkV45KLJQPcjs.next_link_default, { ...anchorProps, className: `${
|
|
3778
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkV45KLJQPcjs.next_link_default, { ...anchorProps, className: `${_chunkAYMY2VNBcjs.COMPACT_CARD_OUTER} ${_nullishCoalesce(className, () => ( ""))}`, children: body });
|
|
3779
3779
|
}
|
|
3780
|
-
return href ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkV45KLJQPcjs.next_link_default, { href, target: "_blank", rel: "noopener noreferrer", className: `${
|
|
3780
|
+
return href ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkV45KLJQPcjs.next_link_default, { href, target: "_blank", rel: "noopener noreferrer", className: `${_chunkAYMY2VNBcjs.COMPACT_CARD_OUTER} ${_nullishCoalesce(className, () => ( ""))}`, children: body }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: `${_chunkAYMY2VNBcjs.COMPACT_CARD_OUTER_STATIC} ${_nullishCoalesce(className, () => ( ""))}`, "aria-label": "No link available", children: body });
|
|
3781
3781
|
}
|
|
3782
3782
|
function SlackMessageCardSkeleton({
|
|
3783
3783
|
variant = "compact",
|
|
@@ -3785,7 +3785,7 @@ function SlackMessageCardSkeleton({
|
|
|
3785
3785
|
}) {
|
|
3786
3786
|
if (variant === "row") {
|
|
3787
3787
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3788
|
-
|
|
3788
|
+
_chunkAYMY2VNBcjs.ActivityRowSkeleton,
|
|
3789
3789
|
{
|
|
3790
3790
|
lead: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
3791
3791
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPMUCEUFQcjs.UnifiedSkeleton, { className: "h-3.5 w-3.5 shrink-0 rounded" }),
|
|
@@ -3797,7 +3797,7 @@ function SlackMessageCardSkeleton({
|
|
|
3797
3797
|
);
|
|
3798
3798
|
}
|
|
3799
3799
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3800
|
-
|
|
3800
|
+
_chunkAYMY2VNBcjs.CompactCardSkeleton,
|
|
3801
3801
|
{
|
|
3802
3802
|
titleWidth: "w-2/3",
|
|
3803
3803
|
rows: [{ width: "w-5/6" }, { width: "w-1/3" }],
|
|
@@ -3833,12 +3833,12 @@ function HubspotTicketCard({ item, variant = "compact", className, anchorProps }
|
|
|
3833
3833
|
if (_chunk63A4GZMBcjs.useLoadingScope.call(void 0, )) return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, HubspotTicketCardSkeleton, { variant, className });
|
|
3834
3834
|
const statusText = _nullishCoalesce(item.statusLabel, () => ( formatToken(item.status)));
|
|
3835
3835
|
const priorityText = formatToken(item.priority);
|
|
3836
|
-
const dateText =
|
|
3836
|
+
const dateText = _chunkYSXVRTGTcjs.formatDateUTC.call(void 0, item.dateUpdated, { fallback: "", timezone: "local" });
|
|
3837
3837
|
if (variant === "row") {
|
|
3838
3838
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: `flex min-w-0 items-center gap-3 ${_nullishCoalesce(className, () => ( ""))}`, children: [
|
|
3839
3839
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "max-w-[260px] shrink-0 truncate text-ods-text-primary text-h6", children: item.title }),
|
|
3840
3840
|
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,
|
|
3841
|
-
statusText ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3841
|
+
statusText ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkAYMY2VNBcjs.StatusBadge, { text: statusText, variant: "button", colorScheme: statusScheme(item.status) }) : null,
|
|
3842
3842
|
dateText ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "w-24 shrink-0 text-right text-ods-text-secondary text-h6", children: dateText }) : null
|
|
3843
3843
|
] });
|
|
3844
3844
|
}
|
|
@@ -3852,13 +3852,13 @@ function HubspotTicketCard({ item, variant = "compact", className, anchorProps }
|
|
|
3852
3852
|
metaParts.push(
|
|
3853
3853
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "whitespace-nowrap", children: dateText }, "date")
|
|
3854
3854
|
);
|
|
3855
|
-
const href =
|
|
3855
|
+
const href = _chunkAYMY2VNBcjs.safeHref.call(void 0, item.url);
|
|
3856
3856
|
const body = /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
3857
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className:
|
|
3857
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: _chunkAYMY2VNBcjs.COMPACT_CARD_TEXT_COL, children: [
|
|
3858
3858
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "flex min-w-0 flex-wrap items-center gap-1.5", children: [
|
|
3859
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: `${
|
|
3859
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: `${_chunkAYMY2VNBcjs.COMPACT_CARD_TITLE} min-w-0 shrink`, children: item.title }),
|
|
3860
3860
|
priorityText ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3861
|
-
|
|
3861
|
+
_chunkAYMY2VNBcjs.StatusBadge,
|
|
3862
3862
|
{
|
|
3863
3863
|
text: priorityText,
|
|
3864
3864
|
variant: "button",
|
|
@@ -3867,7 +3867,7 @@ function HubspotTicketCard({ item, variant = "compact", className, anchorProps }
|
|
|
3867
3867
|
}
|
|
3868
3868
|
) : null,
|
|
3869
3869
|
statusText ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3870
|
-
|
|
3870
|
+
_chunkAYMY2VNBcjs.StatusBadge,
|
|
3871
3871
|
{
|
|
3872
3872
|
text: statusText,
|
|
3873
3873
|
variant: "button",
|
|
@@ -3881,7 +3881,7 @@ function HubspotTicketCard({ item, variant = "compact", className, anchorProps }
|
|
|
3881
3881
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "min-w-0 truncate", children: item.customerEmail })
|
|
3882
3882
|
] }) : null,
|
|
3883
3883
|
/* @__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." }) }) }),
|
|
3884
|
-
metaParts.length > 0 ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
3884
|
+
metaParts.length > 0 ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkAYMY2VNBcjs.COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkAYMY2VNBcjs.COMPACT_CARD_META_ROW, children: metaParts.map((part, i) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _react2.default.Fragment, { children: [
|
|
3885
3885
|
i > 0 ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "shrink-0 text-ods-text-secondary/40", children: "\xB7" }) : null,
|
|
3886
3886
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "min-w-0 truncate", children: part })
|
|
3887
3887
|
] }, i)) }) }) : null
|
|
@@ -3889,9 +3889,9 @@ function HubspotTicketCard({ item, variant = "compact", className, anchorProps }
|
|
|
3889
3889
|
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
|
|
3890
3890
|
] });
|
|
3891
3891
|
if (anchorProps) {
|
|
3892
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkV45KLJQPcjs.next_link_default, { ...anchorProps, className: `${
|
|
3892
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkV45KLJQPcjs.next_link_default, { ...anchorProps, className: `${_chunkAYMY2VNBcjs.COMPACT_CARD_OUTER} ${_nullishCoalesce(className, () => ( ""))}`, children: body });
|
|
3893
3893
|
}
|
|
3894
|
-
return href ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkV45KLJQPcjs.next_link_default, { href, target: "_blank", rel: "noopener noreferrer", className: `${
|
|
3894
|
+
return href ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkV45KLJQPcjs.next_link_default, { href, target: "_blank", rel: "noopener noreferrer", className: `${_chunkAYMY2VNBcjs.COMPACT_CARD_OUTER} ${_nullishCoalesce(className, () => ( ""))}`, children: body }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: `${_chunkAYMY2VNBcjs.COMPACT_CARD_OUTER_STATIC} ${_nullishCoalesce(className, () => ( ""))}`, "aria-label": "No link available", children: body });
|
|
3895
3895
|
}
|
|
3896
3896
|
function HubspotTicketCardSkeleton({
|
|
3897
3897
|
variant = "compact",
|
|
@@ -3906,7 +3906,7 @@ function HubspotTicketCardSkeleton({
|
|
|
3906
3906
|
] });
|
|
3907
3907
|
}
|
|
3908
3908
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3909
|
-
|
|
3909
|
+
_chunkAYMY2VNBcjs.CompactCardSkeleton,
|
|
3910
3910
|
{
|
|
3911
3911
|
slot: false,
|
|
3912
3912
|
titleWidth: "w-2/3",
|
|
@@ -3924,10 +3924,10 @@ function HubspotTicketCardSkeleton({
|
|
|
3924
3924
|
function DataRoomDocCard({ item, className, badgeText, anchorProps }) {
|
|
3925
3925
|
if (_chunk63A4GZMBcjs.useLoadingScope.call(void 0, )) return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, DataRoomDocCardSkeleton, { className });
|
|
3926
3926
|
const body = /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
3927
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className:
|
|
3927
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: _chunkAYMY2VNBcjs.COMPACT_CARD_TEXT_COL, children: [
|
|
3928
3928
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "flex min-w-0 flex-wrap items-center gap-1.5", children: [
|
|
3929
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: `${
|
|
3930
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3929
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: `${_chunkAYMY2VNBcjs.COMPACT_CARD_TITLE} min-w-0 shrink`, children: item.title }),
|
|
3930
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkAYMY2VNBcjs.StatusBadge, { text: badgeText, variant: "button", colorScheme: "cyan", className: "shrink-0" })
|
|
3931
3931
|
] }),
|
|
3932
3932
|
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: [
|
|
3933
3933
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "shrink-0 text-ods-text-secondary/70", children: "Path:" }),
|
|
@@ -3938,13 +3938,13 @@ function DataRoomDocCard({ item, className, badgeText, anchorProps }) {
|
|
|
3938
3938
|
_optionalChain([anchorProps, 'optionalAccess', _136 => _136.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
|
|
3939
3939
|
] });
|
|
3940
3940
|
if (!anchorProps) {
|
|
3941
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: `${
|
|
3941
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: `${_chunkAYMY2VNBcjs.COMPACT_CARD_OUTER_STATIC} ${_nullishCoalesce(className, () => ( ""))}`, "aria-label": "No link available", children: body });
|
|
3942
3942
|
}
|
|
3943
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkV45KLJQPcjs.next_link_default, { ...anchorProps, className: `${
|
|
3943
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkV45KLJQPcjs.next_link_default, { ...anchorProps, className: `${_chunkAYMY2VNBcjs.COMPACT_CARD_OUTER} ${_nullishCoalesce(className, () => ( ""))}`, children: body });
|
|
3944
3944
|
}
|
|
3945
3945
|
function DataRoomDocCardSkeleton({ className }) {
|
|
3946
3946
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3947
|
-
|
|
3947
|
+
_chunkAYMY2VNBcjs.CompactCardSkeleton,
|
|
3948
3948
|
{
|
|
3949
3949
|
slot: false,
|
|
3950
3950
|
titleWidth: "w-2/3",
|
|
@@ -3963,24 +3963,24 @@ function CampaignCardAdmin({ campaign, className, anchorProps }) {
|
|
|
3963
3963
|
if (_chunk63A4GZMBcjs.useLoadingScope.call(void 0, )) return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, CampaignCardAdminSkeleton, { className });
|
|
3964
3964
|
const goalsCount = _optionalChain([campaign, 'access', _137 => _137.goals, 'optionalAccess', _138 => _138.length]) || 0;
|
|
3965
3965
|
const innerChildren = /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
3966
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
3967
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className:
|
|
3968
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
3969
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
3970
|
-
campaign.start_date ?
|
|
3966
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkAYMY2VNBcjs.COMPACT_CARD_ICON_SLOT, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.Megaphone, { className: "h-5 w-5" }) }),
|
|
3967
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: _chunkAYMY2VNBcjs.COMPACT_CARD_TEXT_COL, children: [
|
|
3968
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkAYMY2VNBcjs.COMPACT_CARD_TITLE_ROW, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkAYMY2VNBcjs.COMPACT_CARD_TITLE, children: campaign.name }) }),
|
|
3969
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkAYMY2VNBcjs.COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkAYMY2VNBcjs.COMPACT_CARD_SUBTITLE, children: [
|
|
3970
|
+
campaign.start_date ? _chunk3GJ75OULcjs.formatDateShort.call(void 0, campaign.start_date) : null,
|
|
3971
3971
|
goalsCount > 0 ? `${goalsCount} goal${goalsCount !== 1 ? "s" : ""}` : null,
|
|
3972
3972
|
"Marketing campaign"
|
|
3973
3973
|
].filter(Boolean).join(" \xB7 ") }) }),
|
|
3974
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
3974
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkAYMY2VNBcjs.COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkAYMY2VNBcjs.COMPACT_CARD_SUMMARY, children: campaign.description || _chunkAYMY2VNBcjs.COMPACT_CARD_ROW_FILLER }) })
|
|
3975
3975
|
] })
|
|
3976
3976
|
] });
|
|
3977
3977
|
if (anchorProps) {
|
|
3978
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkV45KLJQPcjs.next_link_default, { ...anchorProps, className: `${
|
|
3978
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkV45KLJQPcjs.next_link_default, { ...anchorProps, className: `${_chunkAYMY2VNBcjs.COMPACT_CARD_OUTER} ${_nullishCoalesce(className, () => ( ""))}`, children: innerChildren });
|
|
3979
3979
|
}
|
|
3980
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: `${
|
|
3980
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: `${_chunkAYMY2VNBcjs.COMPACT_CARD_OUTER_STATIC} ${_nullishCoalesce(className, () => ( ""))}`, "aria-label": "No link available", children: innerChildren });
|
|
3981
3981
|
}
|
|
3982
3982
|
function CampaignCardAdminSkeleton({ className }) {
|
|
3983
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3983
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkAYMY2VNBcjs.CompactCardSkeleton, { rows: [{ width: "w-1/2" }, { width: "w-11/12" }], className });
|
|
3984
3984
|
}
|
|
3985
3985
|
|
|
3986
3986
|
// src/components/chat/entity-cards/generic-entity-card.tsx
|
|
@@ -3988,14 +3988,14 @@ function CampaignCardAdminSkeleton({ className }) {
|
|
|
3988
3988
|
|
|
3989
3989
|
function GenericEntityCard({ item, className, anchorProps }) {
|
|
3990
3990
|
if (_chunk63A4GZMBcjs.useLoadingScope.call(void 0, )) return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, GenericEntityCardSkeleton, { className });
|
|
3991
|
-
const href =
|
|
3992
|
-
const dateText =
|
|
3991
|
+
const href = _chunkAYMY2VNBcjs.safeHref.call(void 0, item.url);
|
|
3992
|
+
const dateText = _chunkYSXVRTGTcjs.formatDateUTC.call(void 0, item.dateUpdated, { fallback: "", timezone: "local" });
|
|
3993
3993
|
const body = /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
3994
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className:
|
|
3994
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: _chunkAYMY2VNBcjs.COMPACT_CARD_TEXT_COL, children: [
|
|
3995
3995
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "flex min-w-0 flex-wrap items-center gap-1.5", children: [
|
|
3996
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: `${
|
|
3996
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: `${_chunkAYMY2VNBcjs.COMPACT_CARD_TITLE} min-w-0 shrink`, children: item.title }),
|
|
3997
3997
|
item.badge ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3998
|
-
|
|
3998
|
+
_chunkAYMY2VNBcjs.StatusBadge,
|
|
3999
3999
|
{
|
|
4000
4000
|
text: item.badge.text,
|
|
4001
4001
|
variant: "button",
|
|
@@ -4013,18 +4013,18 @@ function GenericEntityCard({ item, className, anchorProps }) {
|
|
|
4013
4013
|
] }),
|
|
4014
4014
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "truncate font-medium text-ods-text-primary", children: f.value })
|
|
4015
4015
|
] }, i)) }) : null,
|
|
4016
|
-
dateText ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
4016
|
+
dateText ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkAYMY2VNBcjs.COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkAYMY2VNBcjs.COMPACT_CARD_META_ROW, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "whitespace-nowrap", children: dateText }) }) }) : null
|
|
4017
4017
|
] }),
|
|
4018
4018
|
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
|
|
4019
4019
|
] });
|
|
4020
4020
|
if (anchorProps) {
|
|
4021
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkV45KLJQPcjs.next_link_default, { ...anchorProps, className: `${
|
|
4021
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkV45KLJQPcjs.next_link_default, { ...anchorProps, className: `${_chunkAYMY2VNBcjs.COMPACT_CARD_OUTER} ${_nullishCoalesce(className, () => ( ""))}`, children: body });
|
|
4022
4022
|
}
|
|
4023
|
-
return href ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkV45KLJQPcjs.next_link_default, { href, className: `${
|
|
4023
|
+
return href ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkV45KLJQPcjs.next_link_default, { href, className: `${_chunkAYMY2VNBcjs.COMPACT_CARD_OUTER} ${_nullishCoalesce(className, () => ( ""))}`, children: body }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: `${_chunkAYMY2VNBcjs.COMPACT_CARD_OUTER_STATIC} ${_nullishCoalesce(className, () => ( ""))}`, "aria-label": "No link available", children: body });
|
|
4024
4024
|
}
|
|
4025
4025
|
function GenericEntityCardSkeleton({ className }) {
|
|
4026
4026
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4027
|
-
|
|
4027
|
+
_chunkAYMY2VNBcjs.CompactCardSkeleton,
|
|
4028
4028
|
{
|
|
4029
4029
|
slot: false,
|
|
4030
4030
|
titleWidth: "w-2/3",
|
|
@@ -5145,7 +5145,7 @@ function InfoHint({ children, label, side = "top", className }) {
|
|
|
5145
5145
|
const describedById = _react.useId.call(void 0, );
|
|
5146
5146
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: _chunk63A4GZMBcjs.cn.call(void 0, "inline-flex shrink-0 items-center", className), children: [
|
|
5147
5147
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
5148
|
-
|
|
5148
|
+
_chunkYSXVRTGTcjs.FloatingTooltip,
|
|
5149
5149
|
{
|
|
5150
5150
|
content: children,
|
|
5151
5151
|
side,
|
|
@@ -5263,12 +5263,12 @@ function Section({ title, description, children }) {
|
|
|
5263
5263
|
] });
|
|
5264
5264
|
}
|
|
5265
5265
|
function ProxyCredentialsPanel({ description }) {
|
|
5266
|
-
const hydrated =
|
|
5266
|
+
const hydrated = _chunkHML3JUXFcjs.useIsHydrated.call(void 0, );
|
|
5267
5267
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
5268
5268
|
ProxyCredentialsForm,
|
|
5269
5269
|
{
|
|
5270
5270
|
description,
|
|
5271
|
-
saved: hydrated ?
|
|
5271
|
+
saved: hydrated ? _chunkSQ7YHWEPcjs.getEmbedProxyAuth.call(void 0, ) : null
|
|
5272
5272
|
},
|
|
5273
5273
|
hydrated ? "stored" : "server"
|
|
5274
5274
|
);
|
|
@@ -5283,7 +5283,7 @@ function ProxyCredentialsForm({ description, saved }) {
|
|
|
5283
5283
|
const [status, setStatus] = _react.useState.call(void 0, "");
|
|
5284
5284
|
const errors = _react.useMemo.call(void 0, () => {
|
|
5285
5285
|
const out = {};
|
|
5286
|
-
for (const { field } of
|
|
5286
|
+
for (const { field } of _chunkSQ7YHWEPcjs.EMBED_PROXY_OPTIONAL_HEADERS) {
|
|
5287
5287
|
const value = _optionalChain([optional, 'access', _194 => _194[field], 'optionalAccess', _195 => _195.trim, 'call', _196 => _196()]);
|
|
5288
5288
|
const message = value ? _optionalChain([OPTIONAL_FIELD_COPY, 'access', _197 => _197[field], 'access', _198 => _198.validate, 'optionalCall', _199 => _199(value)]) : null;
|
|
5289
5289
|
if (message) out[field] = message;
|
|
@@ -5296,26 +5296,26 @@ function ProxyCredentialsForm({ description, saved }) {
|
|
|
5296
5296
|
const preview = [
|
|
5297
5297
|
...keyForPreview ? [["Authorization", `Bearer ${keyForPreview}`]] : [],
|
|
5298
5298
|
...email.trim() ? [["X-Chat-Act-As", email.trim().toLowerCase()]] : [],
|
|
5299
|
-
...
|
|
5299
|
+
..._chunkSQ7YHWEPcjs.EMBED_PROXY_OPTIONAL_HEADERS.flatMap(({ field, header }) => {
|
|
5300
5300
|
const value = _optionalChain([optional, 'access', _200 => _200[field], 'optionalAccess', _201 => _201.trim, 'call', _202 => _202()]);
|
|
5301
5301
|
return value ? [[header, value]] : [];
|
|
5302
5302
|
})
|
|
5303
5303
|
];
|
|
5304
5304
|
const save = () => {
|
|
5305
|
-
const key = secret.trim() || _optionalChain([
|
|
5305
|
+
const key = secret.trim() || _optionalChain([_chunkSQ7YHWEPcjs.getEmbedProxyAuth.call(void 0, ), 'optionalAccess', _203 => _203.secret]);
|
|
5306
5306
|
const actAs = email.trim().toLowerCase();
|
|
5307
5307
|
if (!key || !actAs || hasErrors) {
|
|
5308
5308
|
setStatus(hasErrors ? "Fix the highlighted fields first." : "API key and act-as email are required.");
|
|
5309
5309
|
return;
|
|
5310
5310
|
}
|
|
5311
|
-
|
|
5311
|
+
_chunkSQ7YHWEPcjs.setEmbedProxyAuth.call(void 0, { email: actAs, secret: key, ...optional });
|
|
5312
5312
|
setActiveEmail(actAs);
|
|
5313
5313
|
setSavedKeyTail(maskKey(key));
|
|
5314
5314
|
setSecret("");
|
|
5315
5315
|
setStatus(`Saved. Requests now act as ${actAs}.`);
|
|
5316
5316
|
};
|
|
5317
5317
|
const clear = () => {
|
|
5318
|
-
|
|
5318
|
+
_chunkSQ7YHWEPcjs.clearEmbedProxyAuth.call(void 0, );
|
|
5319
5319
|
setActiveEmail(null);
|
|
5320
5320
|
setSavedKeyTail(null);
|
|
5321
5321
|
setSecret("");
|
|
@@ -5324,13 +5324,13 @@ function ProxyCredentialsForm({ description, saved }) {
|
|
|
5324
5324
|
setStatus("Cleared. Requests use the session again.");
|
|
5325
5325
|
};
|
|
5326
5326
|
const setField = (field, value) => setOptional((prev) => ({ ...prev, [field]: value }));
|
|
5327
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
5327
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkAYMY2VNBcjs.Card, { children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkAYMY2VNBcjs.CardContent, { className: "space-y-[var(--spacing-system-lf)] p-[var(--spacing-system-mf)]", children: [
|
|
5328
5328
|
/* @__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: [
|
|
5329
5329
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { children: [
|
|
5330
5330
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h2", { className: "text-ods-text-primary text-h3", children: "Proxy credentials" }),
|
|
5331
5331
|
description && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-ods-text-secondary text-h6", children: description })
|
|
5332
5332
|
] }),
|
|
5333
|
-
activeEmail && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "self-start", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
5333
|
+
activeEmail && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "self-start", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkAYMY2VNBcjs.StatusBadge, { singleLine: true, colorScheme: "success", text: `Active: ${activeEmail}` }) })
|
|
5334
5334
|
] }),
|
|
5335
5335
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
5336
5336
|
Section,
|
|
@@ -5383,7 +5383,7 @@ function ProxyCredentialsForm({ description, saved }) {
|
|
|
5383
5383
|
] })
|
|
5384
5384
|
}
|
|
5385
5385
|
),
|
|
5386
|
-
GROUPS.map((group) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Section, { title: group.title, description: group.description, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "grid grid-cols-1 gap-[var(--spacing-system-sf)] md:grid-cols-2", children:
|
|
5386
|
+
GROUPS.map((group) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Section, { title: group.title, description: group.description, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "grid grid-cols-1 gap-[var(--spacing-system-sf)] md:grid-cols-2", children: _chunkSQ7YHWEPcjs.EMBED_PROXY_OPTIONAL_HEADERS.filter((row) => row.group === group.id).map(({ field, header }) => {
|
|
5387
5387
|
const copy = OPTIONAL_FIELD_COPY[field];
|
|
5388
5388
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
5389
5389
|
Field,
|
|
@@ -5427,12 +5427,12 @@ function ProxyCredentialsForm({ description, saved }) {
|
|
|
5427
5427
|
|
|
5428
5428
|
// src/components/chat/index.ts
|
|
5429
5429
|
var LoadedEmbeddableChat = _react.lazy.call(void 0,
|
|
5430
|
-
() => Promise.resolve().then(() => _interopRequireWildcard(require("./embeddable-chat-
|
|
5430
|
+
() => Promise.resolve().then(() => _interopRequireWildcard(require("./embeddable-chat-QD7NFD2H.cjs"))).then((module) => ({ default: module.EmbeddableChat }))
|
|
5431
5431
|
);
|
|
5432
5432
|
var EmbeddableChat = _react.forwardRef.call(void 0, (props, ref) => {
|
|
5433
5433
|
const [loadRequested, setLoadRequested] = _react.useState.call(void 0, false);
|
|
5434
5434
|
const load = loadRequested || Boolean(props.open) || Boolean(props.defaultOpen);
|
|
5435
|
-
_react.useEffect.call(void 0, () =>
|
|
5435
|
+
_react.useEffect.call(void 0, () => _chunkHML3JUXFcjs.holdAskAiOpens.call(void 0, ), []);
|
|
5436
5436
|
const { loadStyles } = props;
|
|
5437
5437
|
_react.useEffect.call(void 0, () => {
|
|
5438
5438
|
if (load) _optionalChain([loadStyles, 'optionalCall', _204 => _204()]);
|
|
@@ -5440,12 +5440,12 @@ var EmbeddableChat = _react.forwardRef.call(void 0, (props, ref) => {
|
|
|
5440
5440
|
_react.useEffect.call(void 0, () => {
|
|
5441
5441
|
if (load) return void 0;
|
|
5442
5442
|
const start = () => setLoadRequested(true);
|
|
5443
|
-
if (
|
|
5444
|
-
for (const name of
|
|
5445
|
-
const cancel =
|
|
5443
|
+
if (_chunkHML3JUXFcjs.askAiOpenIsHeld.call(void 0, )) queueMicrotask(start);
|
|
5444
|
+
for (const name of _chunkHML3JUXFcjs.ASK_AI_OPEN_EVENTS) window.addEventListener(name, start);
|
|
5445
|
+
const cancel = _chunkHML3JUXFcjs.onAskAiIntent.call(void 0, start);
|
|
5446
5446
|
return () => {
|
|
5447
5447
|
cancel();
|
|
5448
|
-
for (const name of
|
|
5448
|
+
for (const name of _chunkHML3JUXFcjs.ASK_AI_OPEN_EVENTS) window.removeEventListener(name, start);
|
|
5449
5449
|
};
|
|
5450
5450
|
}, [load]);
|
|
5451
5451
|
if (!load) return null;
|