@flamingo-stack/openframe-frontend-core 0.0.847 → 0.0.848
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-DJOHIHYU.cjs → case-study-card-X2HKPKT7.cjs} +5 -5
- package/dist/{chunk-N2A24FDF.cjs → chunk-2V6FCVUL.cjs} +955 -932
- package/dist/{chunk-CNMXP77I.cjs → chunk-36DUCHI7.cjs} +4 -4
- package/dist/{chunk-J2IXYCEH.cjs → chunk-3W4ASAXN.cjs} +15 -15
- package/dist/{chunk-6LDL3UZE.cjs → chunk-4YBS4HIO.cjs} +20 -20
- package/dist/{chunk-QK2A334V.cjs → chunk-5HOWR4TG.cjs} +12 -12
- package/dist/{chunk-2FUTZKLB.cjs → chunk-74Z34I2C.cjs} +6 -6
- package/dist/{chunk-PV3NKXWS.cjs → chunk-7DW3LZ52.cjs} +57 -57
- package/dist/{chunk-ZTO7KNYV.cjs → chunk-7LE4HWHA.cjs} +35 -35
- package/dist/{chunk-URP6GYTD.cjs → chunk-7YJQTQPV.cjs} +56 -56
- package/dist/{chunk-4R4HAFXI.cjs → chunk-ALRYVZ3E.cjs} +6 -6
- package/dist/{chunk-57JYB3E2.cjs → chunk-C3WZXOZJ.cjs} +3 -3
- package/dist/{chunk-SSSI2RBV.cjs → chunk-FNQWL4W4.cjs} +14 -14
- package/dist/{chunk-J2ZSGOUC.cjs → chunk-GASFYPGH.cjs} +27 -27
- package/dist/{chunk-3V5JWG27.cjs → chunk-GG466XFQ.cjs} +2 -2
- package/dist/{chunk-XCVH5BCZ.cjs → chunk-GRCOEICK.cjs} +6 -6
- package/dist/{chunk-5GBLXY5F.cjs → chunk-HTYJUMFB.cjs} +7 -7
- package/dist/{chunk-HBDLJUI3.cjs → chunk-I3YRYS23.cjs} +5 -5
- package/dist/{chunk-HPXET3LH.cjs → chunk-IIUZE73M.cjs} +27 -27
- package/dist/{chunk-WCK5T3UD.cjs → chunk-IKOL6NJY.cjs} +101 -69
- package/dist/{chunk-DGQDGCQH.cjs → chunk-INA2FX2N.cjs} +2 -2
- package/dist/{chunk-PQDCSZ3W.cjs → chunk-IUZVOQXP.cjs} +85 -85
- package/dist/{chunk-BIOSHDXQ.cjs → chunk-MDLT6D46.cjs} +61 -61
- package/dist/{chunk-DEEQSVLX.cjs → chunk-MWYEROAP.cjs} +90 -90
- package/dist/{chunk-D5DMWXF2.cjs → chunk-NYT6IBIX.cjs} +4 -4
- package/dist/{chunk-TBOWFTEN.cjs → chunk-O4BXHCMK.cjs} +22 -22
- package/dist/{chunk-YC52LSPP.cjs → chunk-OCJXOSIH.cjs} +40 -40
- package/dist/{chunk-3TOWCFIK.cjs → chunk-PMUCEUFQ.cjs} +13 -1
- package/dist/{chunk-BZZE4KIV.cjs → chunk-QUSCSYHJ.cjs} +135 -135
- package/dist/{chunk-744JXTDP.cjs → chunk-SA2NNWIJ.cjs} +23 -23
- package/dist/{chunk-BHOVF4KP.cjs → chunk-SOSIXRQ3.cjs} +2 -2
- package/dist/{chunk-PZNWIJRZ.cjs → chunk-TIVPOVIM.cjs} +2 -2
- package/dist/{chunk-FLW4WULE.cjs → chunk-U7UBYJEZ.cjs} +17 -61
- package/dist/{chunk-Y2OEC7UW.cjs → chunk-VW4446JR.cjs} +40 -40
- package/dist/{chunk-NFNSPLGC.cjs → chunk-W7OFAROY.cjs} +14 -9
- package/dist/{chunk-RAJ5FYFL.cjs → chunk-Y2ZWWIUA.cjs} +14 -14
- package/dist/{chunk-MPVOPSU6.cjs → chunk-Y4BG7SPX.cjs} +96 -96
- package/dist/{chunk-SIFRIUPW.cjs → chunk-YAW7CHLV.cjs} +340 -354
- package/dist/{chunk-ABL5OBSF.cjs → chunk-YXKAHQYS.cjs} +294 -249
- package/dist/{chunk-SWF6TNZ3.cjs → chunk-ZGEWT3SF.cjs} +2 -2
- package/dist/{chunk-5SZ4ILU3.cjs → chunk-ZZDFMUEU.cjs} +3 -3
- package/dist/{cloud-tenants-XEUUMABT.cjs → cloud-tenants-YAZHLPOQ.cjs} +21 -21
- package/dist/components/case-studies/index.cjs +36 -36
- package/dist/components/chat/chat-composer.d.ts.map +1 -1
- package/dist/components/chat/chat-composer.js +4 -3
- package/dist/components/chat/chat-container.d.ts.map +1 -1
- package/dist/components/chat/chat-container.js +2 -2
- package/dist/components/chat/entity-cards/design-doc-card.d.ts.map +1 -1
- package/dist/components/chat/entity-cards/design-doc-card.js +5 -17
- package/dist/components/chat/entity-cards/dispatch.d.ts.map +1 -1
- package/dist/components/chat/entity-cards/dispatch.js +4 -7
- package/dist/components/chat/index.cjs +15 -15
- package/dist/components/contact/index.cjs +22 -22
- package/dist/components/docs/index.cjs +25 -25
- package/dist/components/embeds/index.cjs +22 -22
- package/dist/components/faq/index.cjs +23 -23
- package/dist/components/features/index.cjs +21 -21
- package/dist/components/features/status-filter-component.d.ts +7 -1
- package/dist/components/features/status-filter-component.d.ts.map +1 -1
- package/dist/components/features/status-filter-component.js +9 -3
- package/dist/components/help-center-pages/index.cjs +140 -140
- package/dist/components/index.cjs +137 -135
- package/dist/components/layout/back-button.d.ts +7 -1
- package/dist/components/layout/back-button.d.ts.map +1 -1
- package/dist/components/layout/back-button.js +34 -2
- package/dist/components/loading/unified-skeleton.d.ts +6 -1
- package/dist/components/loading/unified-skeleton.d.ts.map +1 -1
- package/dist/components/loading/unified-skeleton.js +13 -1
- package/dist/components/meeting-scheduler/index.cjs +119 -119
- package/dist/components/navigation/index.cjs +24 -24
- package/dist/components/onboarding-guides/index.cjs +24 -24
- package/dist/components/product-demo/index.cjs +33 -33
- package/dist/components/related-content/index.cjs +11 -11
- package/dist/components/tickets/index.cjs +28 -28
- package/dist/components/ui/file-manager/file-manager-table.d.ts.map +1 -1
- package/dist/components/ui/file-manager/file-manager-table.js +59 -50
- package/dist/components/ui/file-manager/index.cjs +71 -62
- package/dist/components/ui/index.cjs +23 -21
- package/dist/components/ui/markdown/engine.d.ts +5 -4
- package/dist/components/ui/markdown/engine.d.ts.map +1 -1
- package/dist/components/ui/markdown/engine.js +15 -15
- package/dist/components/ui/people-cell.d.ts +9 -2
- package/dist/components/ui/people-cell.d.ts.map +1 -1
- package/dist/components/ui/people-cell.js +39 -23
- package/dist/components/ui/progress-bar.d.ts +6 -0
- package/dist/components/ui/progress-bar.d.ts.map +1 -1
- package/dist/components/ui/progress-bar.js +2 -0
- package/dist/components/ui/tag.d.ts +8 -0
- package/dist/components/ui/tag.d.ts.map +1 -1
- package/dist/components/ui/tag.js +5 -0
- package/dist/{devices-7YDIHVVP.cjs → devices-IZROCLFK.cjs} +22 -22
- package/dist/embed-shims/index.cjs +3 -3
- package/dist/embed-shims/next-image.cjs +3 -3
- package/dist/{embeddable-chat-Z3S37SSM.cjs → embeddable-chat-ETW6S22E.cjs} +94 -94
- package/dist/hooks/index.cjs +6 -6
- package/dist/index.cjs +30 -32
- package/dist/{knowledge-SQVPQSKM.cjs → knowledge-4IRWLTNW.cjs} +22 -22
- package/dist/{logs-M5DFGUBC.cjs → logs-EFDGY5IO.cjs} +28 -28
- package/dist/{policies-T3VQEJUD.cjs → policies-3KEXZ5BP.cjs} +25 -25
- package/dist/{remote-session-EE6477O3.cjs → remote-session-NT4NG7EF.cjs} +10 -10
- package/dist/{scripts-JFRFJKPH.cjs → scripts-PCGTZLZL.cjs} +28 -28
- package/dist/{software-update-E7W3AAIY.cjs → software-update-YCDNVFJE.cjs} +25 -25
- package/dist/{tickets-board-44HO3LR4.cjs → tickets-board-7FLGQEHF.cjs} +10 -10
- package/dist/types/design-doc.d.ts +45 -8
- package/dist/types/design-doc.d.ts.map +1 -1
- package/dist/utils/design-doc-readiness.d.ts +17 -15
- package/dist/utils/design-doc-readiness.d.ts.map +1 -1
- package/dist/utils/design-doc-readiness.js +5 -11
- package/dist/utils/index.cjs +5 -11
- package/package.json +1 -1
- package/src/components/chat/chat-composer.tsx +10 -3
- package/src/components/chat/chat-container.tsx +6 -4
- package/src/components/chat/entity-cards/design-doc-card.tsx +12 -17
- package/src/components/chat/entity-cards/dispatch.tsx +7 -10
- package/src/components/features/status-filter-component.tsx +15 -0
- package/src/components/layout/back-button.tsx +54 -2
- package/src/components/loading/unified-skeleton.tsx +18 -2
- package/src/components/ui/file-manager/file-manager-table.tsx +8 -3
- package/src/components/ui/markdown/engine.tsx +21 -30
- package/src/components/ui/people-cell.tsx +53 -17
- package/src/components/ui/progress-bar.tsx +8 -0
- package/src/components/ui/tag.tsx +14 -0
- package/src/types/design-doc.ts +59 -10
- package/src/utils/design-doc-readiness.ts +22 -23
|
@@ -18,18 +18,18 @@ var _chunkOT6P57ZScjs = require('./chunk-OT6P57ZS.cjs');
|
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
|
|
21
|
-
var
|
|
21
|
+
var _chunkYAW7CHLVcjs = require('./chunk-YAW7CHLV.cjs');
|
|
22
22
|
|
|
23
23
|
|
|
24
24
|
|
|
25
25
|
|
|
26
|
-
var
|
|
26
|
+
var _chunk3W4ASAXNcjs = require('./chunk-3W4ASAXN.cjs');
|
|
27
27
|
|
|
28
28
|
|
|
29
29
|
|
|
30
30
|
|
|
31
31
|
|
|
32
|
-
var
|
|
32
|
+
var _chunk4YBS4HIOcjs = require('./chunk-4YBS4HIO.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 _chunkGRCOEICKcjs = require('./chunk-GRCOEICK.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 _chunkU7UBYJEZcjs = require('./chunk-U7UBYJEZ.cjs');
|
|
117
117
|
|
|
118
118
|
|
|
119
119
|
|
|
120
120
|
|
|
121
121
|
|
|
122
|
-
var
|
|
122
|
+
var _chunkYXKAHQYScjs = require('./chunk-YXKAHQYS.cjs');
|
|
123
123
|
|
|
124
124
|
|
|
125
125
|
|
|
@@ -128,7 +128,7 @@ var _chunkABL5OBSFcjs = require('./chunk-ABL5OBSF.cjs');
|
|
|
128
128
|
|
|
129
129
|
|
|
130
130
|
|
|
131
|
-
var
|
|
131
|
+
var _chunkW7OFAROYcjs = require('./chunk-W7OFAROY.cjs');
|
|
132
132
|
|
|
133
133
|
|
|
134
134
|
|
|
@@ -147,14 +147,14 @@ var _chunkNFNSPLGCcjs = require('./chunk-NFNSPLGC.cjs');
|
|
|
147
147
|
|
|
148
148
|
|
|
149
149
|
|
|
150
|
-
var
|
|
150
|
+
var _chunkMDLT6D46cjs = require('./chunk-MDLT6D46.cjs');
|
|
151
151
|
|
|
152
152
|
|
|
153
153
|
var _chunkYSDB6HGQcjs = require('./chunk-YSDB6HGQ.cjs');
|
|
154
154
|
|
|
155
155
|
|
|
156
156
|
|
|
157
|
-
var
|
|
157
|
+
var _chunkTIVPOVIMcjs = require('./chunk-TIVPOVIM.cjs');
|
|
158
158
|
|
|
159
159
|
|
|
160
160
|
|
|
@@ -166,11 +166,11 @@ var _chunkPZNWIJRZcjs = require('./chunk-PZNWIJRZ.cjs');
|
|
|
166
166
|
var _chunkGI3MMBP3cjs = require('./chunk-GI3MMBP3.cjs');
|
|
167
167
|
|
|
168
168
|
|
|
169
|
-
var
|
|
169
|
+
var _chunkGG466XFQcjs = require('./chunk-GG466XFQ.cjs');
|
|
170
170
|
|
|
171
171
|
|
|
172
172
|
|
|
173
|
-
var
|
|
173
|
+
var _chunkZGEWT3SFcjs = require('./chunk-ZGEWT3SF.cjs');
|
|
174
174
|
|
|
175
175
|
|
|
176
176
|
var _chunkN3MBQRCQcjs = require('./chunk-N3MBQRCQ.cjs');
|
|
@@ -179,7 +179,7 @@ var _chunkN3MBQRCQcjs = require('./chunk-N3MBQRCQ.cjs');
|
|
|
179
179
|
|
|
180
180
|
|
|
181
181
|
|
|
182
|
-
var
|
|
182
|
+
var _chunkPMUCEUFQcjs = require('./chunk-PMUCEUFQ.cjs');
|
|
183
183
|
|
|
184
184
|
|
|
185
185
|
var _chunkFCZAUK4Dcjs = require('./chunk-FCZAUK4D.cjs');
|
|
@@ -218,20 +218,20 @@ function ChatMessageRow(props) {
|
|
|
218
218
|
}
|
|
219
219
|
function ChatMessageRowLoaded(props) {
|
|
220
220
|
const { displayName, avatarUrl, timeLabel, body, footer } = props;
|
|
221
|
-
const proxiedAvatar =
|
|
221
|
+
const proxiedAvatar = _chunkYXKAHQYScjs.useProxiedImageUrl.call(void 0, _nullishCoalesce(avatarUrl, () => ( "")));
|
|
222
222
|
const resolvedAvatar = proxiedAvatar || avatarUrl || void 0;
|
|
223
223
|
const [failedSrc, setFailedSrc] = _react.useState.call(void 0, null);
|
|
224
224
|
const src = resolvedAvatar && resolvedAvatar !== failedSrc ? resolvedAvatar : void 0;
|
|
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
|
+
_chunkGG466XFQcjs.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
|
-
width:
|
|
234
|
-
height:
|
|
233
|
+
width: _chunkPMUCEUFQcjs.AVATAR_SIZE_PX.md,
|
|
234
|
+
height: _chunkPMUCEUFQcjs.AVATAR_SIZE_PX.md,
|
|
235
235
|
onError: () => setFailedSrc(_nullishCoalesce(resolvedAvatar, () => ( null)))
|
|
236
236
|
}
|
|
237
237
|
) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -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: _chunkW7OFAROYcjs.personInitials.call(void 0, displayName) || "?"
|
|
245
245
|
}
|
|
246
246
|
),
|
|
247
247
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: CONTENT_CLASS, children: [
|
|
@@ -256,13 +256,13 @@ function ChatMessageRowLoaded(props) {
|
|
|
256
256
|
}
|
|
257
257
|
function ChatMessageRowLoading(markers) {
|
|
258
258
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: ROW_CLASS, ...markers, children: [
|
|
259
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
259
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPMUCEUFQcjs.UnifiedSkeleton, { className: AVATAR_BOX_CLASS }),
|
|
260
260
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: CONTENT_CLASS, children: [
|
|
261
261
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: HEADER_CLASS, children: [
|
|
262
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
263
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
262
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPMUCEUFQcjs.TextLineSkeleton, { type: "inherit", as: "span", className: _chunk63A4GZMBcjs.cn.call(void 0, NAME_TYPE_CLASS, "w-24 md:w-32") }),
|
|
263
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPMUCEUFQcjs.TextLineSkeleton, { type: "h6", as: "span", className: "w-12 flex-shrink-0 md:w-16" })
|
|
264
264
|
] }),
|
|
265
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
265
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPMUCEUFQcjs.TextLineSkeleton, { type: "h6", lines: CHAT_MESSAGE_ROW_BODY_LINES })
|
|
266
266
|
] })
|
|
267
267
|
] });
|
|
268
268
|
}
|
|
@@ -326,10 +326,10 @@ function ChatTurnNameSkeleton({
|
|
|
326
326
|
}) {
|
|
327
327
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: NAME_ROW_CLASS, children: [
|
|
328
328
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: NAME_GROUP_CLASS, children: [
|
|
329
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
330
|
-
typeof meta === "string" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: META_CLASS, children: meta }) : meta && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
329
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPMUCEUFQcjs.TextLineSkeleton, { type: NAME_TYPE[nameSize], className: "w-24" }),
|
|
330
|
+
typeof meta === "string" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: META_CLASS, children: meta }) : meta && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPMUCEUFQcjs.TextLineSkeleton, { type: "h6", className: "w-20" })
|
|
331
331
|
] }),
|
|
332
|
-
time && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
332
|
+
time && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPMUCEUFQcjs.TextLineSkeleton, { type: "h6", className: "w-12 shrink-0" })
|
|
333
333
|
] });
|
|
334
334
|
}
|
|
335
335
|
function ChatTurnSkeleton({
|
|
@@ -343,10 +343,10 @@ 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, _chunkW7OFAROYcjs.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
|
-
_nullishCoalesce(body, () => ( /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
349
|
+
_nullishCoalesce(body, () => ( /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPMUCEUFQcjs.TextLineSkeleton, { lines, type: "h4" })))
|
|
350
350
|
] })
|
|
351
351
|
] });
|
|
352
352
|
}
|
|
@@ -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 = _chunkGRCOEICKcjs.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;
|
|
@@ -1921,7 +1921,7 @@ var OPENFRAME_DEV_SECTIONS = {
|
|
|
1921
1921
|
function openInNewTab(href) {
|
|
1922
1922
|
return (event) => {
|
|
1923
1923
|
event.preventDefault();
|
|
1924
|
-
|
|
1924
|
+
_chunkGRCOEICKcjs.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 = _chunkYXKAHQYScjs.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 && _chunkTIVPOVIMcjs.byKey.call(void 0, claimedOwner) ? claimedOwner : null;
|
|
2075
|
+
const origin = owner ? _chunkTIVPOVIMcjs.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
|
|
@@ -2244,8 +2244,8 @@ var DEFAULT_OPTIONS = {
|
|
|
2244
2244
|
function extractSections(markdown, options = {}) {
|
|
2245
2245
|
const opts = { ...DEFAULT_OPTIONS, ...options };
|
|
2246
2246
|
const sections = [];
|
|
2247
|
-
const dedupe =
|
|
2248
|
-
const scanned =
|
|
2247
|
+
const dedupe = _chunkGRCOEICKcjs.createHeadingIdDeduper.call(void 0, );
|
|
2248
|
+
const scanned = _chunkGRCOEICKcjs.scanHeadings.call(void 0, markdown, {
|
|
2249
2249
|
skipFrontmatter: opts.skipCodeAndYamlBlocks,
|
|
2250
2250
|
skipFences: opts.skipCodeAndYamlBlocks
|
|
2251
2251
|
});
|
|
@@ -2253,9 +2253,9 @@ function extractSections(markdown, options = {}) {
|
|
|
2253
2253
|
if (heading.level > opts.maxLevel) continue;
|
|
2254
2254
|
let title = heading.text;
|
|
2255
2255
|
if (opts.stripFormattingMarkers) {
|
|
2256
|
-
title =
|
|
2256
|
+
title = _chunkYAW7CHLVcjs.stripInlineMarkdown.call(void 0, title).trim();
|
|
2257
2257
|
}
|
|
2258
|
-
const baseId =
|
|
2258
|
+
const baseId = _chunkGRCOEICKcjs.slugifyHeadingBase.call(void 0, opts.removeEmojis ? _chunkGRCOEICKcjs.stripHeadingEmojis.call(void 0, title) : title);
|
|
2259
2259
|
const cleanId = baseId || `section-${sections.length + 1}`;
|
|
2260
2260
|
sections.push({
|
|
2261
2261
|
id: opts.handleDuplicateIds ? dedupe(cleanId) : cleanId,
|
|
@@ -2510,7 +2510,7 @@ function demoClockTimes(seed, options = {}) {
|
|
|
2510
2510
|
function openAskAi(source, options) {
|
|
2511
2511
|
const prompt = _optionalChain([options, 'optionalAccess', _96 => _96.prompt, 'optionalAccess', _97 => _97.trim, 'call', _98 => _98()]);
|
|
2512
2512
|
const detail = prompt ? { source: _nullishCoalesce(source, () => ( "")), prompt } : { source: _nullishCoalesce(source, () => ( "")) };
|
|
2513
|
-
window.dispatchEvent(new CustomEvent(
|
|
2513
|
+
window.dispatchEvent(new CustomEvent(_chunkYAW7CHLVcjs.ASK_AI_OPEN_EVENT, { detail }));
|
|
2514
2514
|
}
|
|
2515
2515
|
function MingoAiButton({
|
|
2516
2516
|
source,
|
|
@@ -2522,10 +2522,10 @@ function MingoAiButton({
|
|
|
2522
2522
|
onClick,
|
|
2523
2523
|
...props
|
|
2524
2524
|
}) {
|
|
2525
|
-
const visitor =
|
|
2525
|
+
const visitor = _chunkGRCOEICKcjs.useVisitorOs.call(void 0, );
|
|
2526
2526
|
const field = variant === "field";
|
|
2527
2527
|
const inPage = variant === "button";
|
|
2528
|
-
const commandKey = visitor.known &&
|
|
2528
|
+
const commandKey = visitor.known && _chunkGRCOEICKcjs.usesCommandKey.call(void 0, visitor.os);
|
|
2529
2529
|
const assistant = _chunkEWPR7662cjs.useAssistantRuntime.call(void 0, );
|
|
2530
2530
|
const label = _nullishCoalesce(labelProp, () => ( _optionalChain([assistant, 'optionalAccess', _99 => _99.name])));
|
|
2531
2531
|
const icon = _nullishCoalesce(iconProp, () => ( _optionalChain([assistant, 'optionalAccess', _100 => _100.icon])));
|
|
@@ -2553,7 +2553,7 @@ function MingoAiButton({
|
|
|
2553
2553
|
{
|
|
2554
2554
|
...props,
|
|
2555
2555
|
type: "button",
|
|
2556
|
-
...{ [
|
|
2556
|
+
...{ [_chunkYAW7CHLVcjs.ASK_AI_TRIGGER_ATTRIBUTE]: "" },
|
|
2557
2557
|
variant: field ? "glyph" : "transparent",
|
|
2558
2558
|
size: "wrap",
|
|
2559
2559
|
font: "regular",
|
|
@@ -2578,7 +2578,7 @@ function MingoAiButton({
|
|
|
2578
2578
|
),
|
|
2579
2579
|
children: [
|
|
2580
2580
|
!field && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
2581
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2581
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkYAW7CHLVcjs.MingoEdgeLight, { className: "rounded-md" }),
|
|
2582
2582
|
/* @__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,
|
|
2583
2583
|
"span",
|
|
2584
2584
|
{
|
|
@@ -2599,7 +2599,7 @@ function MingoAiButton({
|
|
|
2599
2599
|
children: icon
|
|
2600
2600
|
}
|
|
2601
2601
|
) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2602
|
-
|
|
2602
|
+
_chunk4YBS4HIOcjs.AgentMark,
|
|
2603
2603
|
{
|
|
2604
2604
|
agent: "mingo",
|
|
2605
2605
|
className: _chunk63A4GZMBcjs.cn.call(void 0, "relative shrink-0 text-ods-text-primary", field ? "size-6" : "size-5")
|
|
@@ -2626,7 +2626,7 @@ function MingoAiButton({
|
|
|
2626
2626
|
"relative h-6 min-w-9 items-center justify-center rounded border border-ods-border px-[var(--spacing-system-xxs)] text-h6",
|
|
2627
2627
|
inPage ? "inline-flex" : "hidden lg:inline-flex"
|
|
2628
2628
|
),
|
|
2629
|
-
children: visitor.known ?
|
|
2629
|
+
children: visitor.known ? _chunkGRCOEICKcjs.shortcutLabel.call(void 0, visitor.os, "K") : ""
|
|
2630
2630
|
}
|
|
2631
2631
|
)
|
|
2632
2632
|
]
|
|
@@ -2655,7 +2655,7 @@ function useAskPrompts({
|
|
|
2655
2655
|
const assistant = _chunkEWPR7662cjs.useAssistantRuntime.call(void 0, );
|
|
2656
2656
|
const base = assistantAvailable(assistant) ? assistant.askPromptsUrl : void 0;
|
|
2657
2657
|
const url = base && enabled ? buildAskPromptsUrl(base, { count, topic, exclude }) : null;
|
|
2658
|
-
const { data, dataUrl, error } =
|
|
2658
|
+
const { data, dataUrl, error } = _chunkU7UBYJEZcjs.useSelfFetch.call(void 0, url);
|
|
2659
2659
|
const landed = url !== null && (dataUrl === url || error);
|
|
2660
2660
|
return { prompts: landed ? _nullishCoalesce(_optionalChain([data, 'optionalAccess', _105 => _105.prompts]), () => ( [])) : [], isLoading: !!base && !landed, supported: !!base };
|
|
2661
2661
|
}
|
|
@@ -2771,7 +2771,7 @@ function useAskSurface({
|
|
|
2771
2771
|
// src/components/chat/ask-prompts.tsx
|
|
2772
2772
|
|
|
2773
2773
|
function AssistantGlyph({ icon, className }) {
|
|
2774
|
-
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,
|
|
2774
|
+
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, _chunk4YBS4HIOcjs.AgentMark, { agent: "mingo", className: "size-full" }))) });
|
|
2775
2775
|
}
|
|
2776
2776
|
var slotCount = (count, loading, prompts) => _nullishCoalesce(count, () => ( (loading ? ASK_PROMPTS_DEFAULT_COUNT : prompts.length)));
|
|
2777
2777
|
var SKELETON_LABEL_CH = [26, 22, 30, 24, 20, 28];
|
|
@@ -2794,9 +2794,9 @@ function QuestionChips({
|
|
|
2794
2794
|
{
|
|
2795
2795
|
"data-loading-item": true,
|
|
2796
2796
|
className: _nullishCoalesce(slotClassName, () => ( CHIP_SLOT_CLASS)),
|
|
2797
|
-
...prompt ? { [
|
|
2797
|
+
...prompt ? { [_chunkYAW7CHLVcjs.ASK_AI_TRIGGER_ATTRIBUTE]: "" } : {},
|
|
2798
2798
|
children: (loading || prompt) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2799
|
-
|
|
2799
|
+
_chunkYAW7CHLVcjs.QuickActionChipButton,
|
|
2800
2800
|
{
|
|
2801
2801
|
loading,
|
|
2802
2802
|
variant: "question",
|
|
@@ -2834,7 +2834,7 @@ function AskPrompts({
|
|
|
2834
2834
|
if (!loading && prompts.length === 0) return null;
|
|
2835
2835
|
const end = align === "end";
|
|
2836
2836
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
2837
|
-
|
|
2837
|
+
_chunk3W4ASAXNcjs.ScrollShadow,
|
|
2838
2838
|
{
|
|
2839
2839
|
axis: "horizontal",
|
|
2840
2840
|
color: fadeColor,
|
|
@@ -3007,7 +3007,7 @@ function QuickActionMarquee({
|
|
|
3007
3007
|
);
|
|
3008
3008
|
if (items.length === 0) return null;
|
|
3009
3009
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3010
|
-
|
|
3010
|
+
_chunkYAW7CHLVcjs.QuickActionWall,
|
|
3011
3011
|
{
|
|
3012
3012
|
chips,
|
|
3013
3013
|
mode,
|
|
@@ -3035,25 +3035,25 @@ var UNREAD_NOTICE = "You have a new unread message";
|
|
|
3035
3035
|
var TICKET_ROW_HEIGHT = "h-20";
|
|
3036
3036
|
var TICKET_ROW = _chunk63A4GZMBcjs.cn.call(void 0, _chunk63A4GZMBcjs.BUTTON_KIND_CLASS.row, TICKET_ROW_HEIGHT);
|
|
3037
3037
|
var TICKET_ROW_TEXT = "flex min-w-0 flex-1 flex-col justify-center";
|
|
3038
|
-
var TICKET_ROW_CHEVRON = `flex ${
|
|
3038
|
+
var TICKET_ROW_CHEVRON = `flex ${_chunkPMUCEUFQcjs.TILE_SIZE.xl} shrink-0 items-center justify-center rounded-md border`;
|
|
3039
3039
|
var ChatTicketItem = _react.forwardRef.call(void 0,
|
|
3040
3040
|
({ className, ticket, onClick, loading: loadingProp = false, ...props }, ref) => {
|
|
3041
3041
|
const loading = _chunk63A4GZMBcjs.useLoadingScope.call(void 0, ) || loadingProp;
|
|
3042
3042
|
if (!loading && !ticket) return null;
|
|
3043
|
-
const statusTagProps = ticket ?
|
|
3043
|
+
const statusTagProps = ticket ? _chunk4YBS4HIOcjs.resolveStatusTagProps.call(void 0, {
|
|
3044
3044
|
status: ticket.status,
|
|
3045
3045
|
statusKind: ticket.statusKind,
|
|
3046
3046
|
statusName: ticket.statusLabel,
|
|
3047
3047
|
statusColor: ticket.statusColor
|
|
3048
3048
|
}) : null;
|
|
3049
|
-
const isResolved = !!ticket && (ticket.statusKind === "RESOLVED" ||
|
|
3049
|
+
const isResolved = !!ticket && (ticket.statusKind === "RESOLVED" || _chunk4YBS4HIOcjs.resolveTicketStatus.call(void 0, ticket.status) === "RESOLVED");
|
|
3050
3050
|
const composedSubtitle = ticket ? [ticket.ticketNumber, ticket.category, ticket.timeAgo].filter(Boolean).join(" \u2022 ") : "";
|
|
3051
3051
|
const subtitle = _nullishCoalesce(_optionalChain([ticket, 'optionalAccess', _125 => _125.subtitle]), () => ( (_optionalChain([ticket, 'optionalAccess', _126 => _126.unread]) ? UNREAD_NOTICE : composedSubtitle)));
|
|
3052
3052
|
const unread = !!_optionalChain([ticket, 'optionalAccess', _127 => _127.unread]);
|
|
3053
3053
|
const content = /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
3054
3054
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunk63A4GZMBcjs.cn.call(void 0, TICKET_ROW_TEXT, "text-left"), children: loading || !ticket ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
3055
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3056
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3055
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPMUCEUFQcjs.TextLineSkeleton, { type: "h3", className: "w-1/2" }),
|
|
3056
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPMUCEUFQcjs.TextLineSkeleton, { type: "h6", className: "w-1/3" })
|
|
3057
3057
|
] }) : /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
3058
3058
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3059
3059
|
"p",
|
|
@@ -3073,7 +3073,7 @@ var ChatTicketItem = _react.forwardRef.call(void 0,
|
|
|
3073
3073
|
)
|
|
3074
3074
|
] }) }),
|
|
3075
3075
|
_optionalChain([ticket, 'optionalAccess', _128 => _128.linkedTaskLabel]) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3076
|
-
|
|
3076
|
+
_chunkW7OFAROYcjs.Tag,
|
|
3077
3077
|
{
|
|
3078
3078
|
"data-loading-optional": true,
|
|
3079
3079
|
label: ticket.linkedTaskLabel,
|
|
@@ -3082,7 +3082,7 @@ var ChatTicketItem = _react.forwardRef.call(void 0,
|
|
|
3082
3082
|
className: "hidden shrink-0 sm:inline-flex"
|
|
3083
3083
|
}
|
|
3084
3084
|
),
|
|
3085
|
-
loading ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3085
|
+
loading ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4YBS4HIOcjs.TicketStatusTag, { status: "", loading: true, className: "w-20" }) : statusTagProps && (statusTagProps.status || statusTagProps.label) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4YBS4HIOcjs.TicketStatusTag, { ...statusTagProps }),
|
|
3086
3086
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3087
3087
|
"div",
|
|
3088
3088
|
{
|
|
@@ -3127,7 +3127,7 @@ var ChatTicketList = _react.forwardRef.call(void 0,
|
|
|
3127
3127
|
...props
|
|
3128
3128
|
}, ref) => {
|
|
3129
3129
|
const isLoading = _chunk63A4GZMBcjs.useLoadingScope.call(void 0, ) || isLoadingProp;
|
|
3130
|
-
const { scrollRef, fadeTop, fadeBottom, update: updateFade } =
|
|
3130
|
+
const { scrollRef, fadeTop, fadeBottom, update: updateFade } = _chunk3W4ASAXNcjs.useScrollFade.call(void 0, );
|
|
3131
3131
|
if (!isLoading && tickets.length === 0) return null;
|
|
3132
3132
|
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: [
|
|
3133
3133
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "shrink-0 text-ods-text-secondary text-h5", children: "Your Chats:" }),
|
|
@@ -3141,8 +3141,8 @@ var ChatTicketList = _react.forwardRef.call(void 0,
|
|
|
3141
3141
|
),
|
|
3142
3142
|
children: [
|
|
3143
3143
|
/* @__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)) }),
|
|
3144
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3145
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3144
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3W4ASAXNcjs.ScrollFadeOverlay, { edge: "top", visible: !isLoading && fadeTop }),
|
|
3145
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3W4ASAXNcjs.ScrollFadeOverlay, { edge: "bottom", visible: !isLoading && fadeBottom })
|
|
3146
3146
|
]
|
|
3147
3147
|
}
|
|
3148
3148
|
)
|
|
@@ -3253,7 +3253,7 @@ function ComposerSheet({
|
|
|
3253
3253
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, TabFoot, { side: "left" }),
|
|
3254
3254
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, TabFoot, { side: "right" }),
|
|
3255
3255
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3256
|
-
|
|
3256
|
+
_chunkYAW7CHLVcjs.PanelResizeHandle,
|
|
3257
3257
|
{
|
|
3258
3258
|
side: "bottom",
|
|
3259
3259
|
size: _nullishCoalesce(resolved, () => ( floor)),
|
|
@@ -3297,7 +3297,7 @@ var DialogListItem = _react.forwardRef.call(void 0,
|
|
|
3297
3297
|
_optionalChain([onClick, 'optionalCall', _131 => _131(e)]);
|
|
3298
3298
|
};
|
|
3299
3299
|
const formatTimestamp = (timestamp) => {
|
|
3300
|
-
return
|
|
3300
|
+
return _chunkW7OFAROYcjs.formatDateWithTimezone.call(void 0, timestamp, _chunkW7OFAROYcjs.VIEWER_TIMEZONE, "numericDateTime24h");
|
|
3301
3301
|
};
|
|
3302
3302
|
const unread = loading ? 0 : _nullishCoalesce(dialog.unreadMessagesCount, () => ( 0));
|
|
3303
3303
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
@@ -3315,8 +3315,8 @@ var DialogListItem = _react.forwardRef.call(void 0,
|
|
|
3315
3315
|
...loading ? _chunk63A4GZMBcjs.loadingItemProps.call(void 0, props) : props,
|
|
3316
3316
|
children: [
|
|
3317
3317
|
/* @__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: [
|
|
3318
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3319
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3318
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPMUCEUFQcjs.TextLineSkeleton, { type: "h6", className: "w-full max-w-[200px]" }),
|
|
3319
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPMUCEUFQcjs.TextLineSkeleton, { type: "h6", className: "w-32" })
|
|
3320
3320
|
] }) : /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
3321
3321
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex w-full min-w-0 items-center", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3322
3322
|
"h3",
|
|
@@ -3356,7 +3356,7 @@ var ChatSidebar = _react.forwardRef.call(void 0,
|
|
|
3356
3356
|
hasNextPage,
|
|
3357
3357
|
isFetchingNextPage,
|
|
3358
3358
|
onLoadMore,
|
|
3359
|
-
pageSize =
|
|
3359
|
+
pageSize = _chunkYAW7CHLVcjs.CHAT_HISTORY_PAGE_SIZE,
|
|
3360
3360
|
...props
|
|
3361
3361
|
}, ref) => {
|
|
3362
3362
|
const loading = _chunk63A4GZMBcjs.useLoadingScope.call(void 0, ) || !!isLoading && dialogs.length === 0 && !children;
|
|
@@ -3474,7 +3474,7 @@ var ChatTopNavigation = _react.forwardRef.call(void 0,
|
|
|
3474
3474
|
),
|
|
3475
3475
|
/* @__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: [
|
|
3476
3476
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3477
|
-
|
|
3477
|
+
_chunkW7OFAROYcjs.SquareAvatar,
|
|
3478
3478
|
{
|
|
3479
3479
|
loading: isLoading,
|
|
3480
3480
|
src: _nullishCoalesce(avatarUrl, () => ( void 0)),
|
|
@@ -3485,8 +3485,8 @@ var ChatTopNavigation = _react.forwardRef.call(void 0,
|
|
|
3485
3485
|
}
|
|
3486
3486
|
),
|
|
3487
3487
|
isLoading ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-1 flex-col", children: [
|
|
3488
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3489
|
-
subtitle !== void 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3488
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPMUCEUFQcjs.TextLineSkeleton, { type: "h3", className: "w-24" }),
|
|
3489
|
+
subtitle !== void 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPMUCEUFQcjs.TextLineSkeleton, { type: "h6", className: "w-32" })
|
|
3490
3490
|
] }) : /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-1 flex-col", children: [
|
|
3491
3491
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "truncate text-ods-text-primary text-h3", children: name }),
|
|
3492
3492
|
subtitle && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "truncate text-ods-text-secondary text-h6", children: subtitle })
|
|
@@ -3640,7 +3640,7 @@ function OnboardingCarousel({
|
|
|
3640
3640
|
|
|
3641
3641
|
var ADMIN_CONTENT_CARD_GRID_CLASS = "grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-[var(--spacing-system-lf)]";
|
|
3642
3642
|
var GRID_CELL_CLASS = "h-full";
|
|
3643
|
-
var DEFAULT_LOADING_CARD = /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3643
|
+
var DEFAULT_LOADING_CARD = /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkYXKAHQYScjs.AdminContentCard, { loading: true, reserveRows: true, title: "", actions: true });
|
|
3644
3644
|
function loadingCardOf(loadingCard, Skeleton) {
|
|
3645
3645
|
if (loadingCard !== void 0) return loadingCard;
|
|
3646
3646
|
return Skeleton ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Skeleton, {}) : DEFAULT_LOADING_CARD;
|
|
@@ -3654,7 +3654,7 @@ function AdminContentCardGridSkeleton({
|
|
|
3654
3654
|
label = "Loading",
|
|
3655
3655
|
region = true
|
|
3656
3656
|
}) {
|
|
3657
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3657
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkYAW7CHLVcjs.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) }) }) });
|
|
3658
3658
|
}
|
|
3659
3659
|
function AdminContentCardGrid({
|
|
3660
3660
|
items,
|
|
@@ -3718,7 +3718,7 @@ function parseChannelFromUrl(url) {
|
|
|
3718
3718
|
function SlackMessageCard({ item, variant = "compact", className, anchorProps }) {
|
|
3719
3719
|
if (_chunk63A4GZMBcjs.useLoadingScope.call(void 0, )) return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, SlackMessageCardSkeleton, { variant, className });
|
|
3720
3720
|
const channel = _nullishCoalesce(_nullishCoalesce(item.channel, () => ( parseChannelFromUrl(item.url))), () => ( null));
|
|
3721
|
-
const dateText =
|
|
3721
|
+
const dateText = _chunkW7OFAROYcjs.formatDateUTC.call(void 0, item.dateUpdated, { fallback: "", timezone: "local" });
|
|
3722
3722
|
if (variant === "row") {
|
|
3723
3723
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: `flex min-w-0 items-center gap-3 ${_nullishCoalesce(className, () => ( ""))}`, children: [
|
|
3724
3724
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOWDRZM73cjs.SlackIcon, { className: "h-3.5 w-3.5 shrink-0" }),
|
|
@@ -3744,23 +3744,23 @@ function SlackMessageCard({ item, variant = "compact", className, anchorProps })
|
|
|
3744
3744
|
metaParts.push(
|
|
3745
3745
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "whitespace-nowrap", children: dateText }, "date")
|
|
3746
3746
|
);
|
|
3747
|
-
const href =
|
|
3747
|
+
const href = _chunkMDLT6D46cjs.safeHref.call(void 0, item.url);
|
|
3748
3748
|
const body = /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
3749
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
3750
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className:
|
|
3751
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
3752
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
3753
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
3749
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkMDLT6D46cjs.COMPACT_CARD_ICON_SLOT, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOWDRZM73cjs.SlackIcon, { className: "h-5 w-5" }) }),
|
|
3750
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: _chunkMDLT6D46cjs.COMPACT_CARD_TEXT_COL, children: [
|
|
3751
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkMDLT6D46cjs.COMPACT_CARD_TITLE_ROW, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkMDLT6D46cjs.COMPACT_CARD_TITLE, children: item.title }) }),
|
|
3752
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkMDLT6D46cjs.COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkMDLT6D46cjs.COMPACT_CARD_SUMMARY, children: item.preview || _chunkMDLT6D46cjs.COMPACT_CARD_ROW_FILLER }) }),
|
|
3753
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkMDLT6D46cjs.COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkMDLT6D46cjs.COMPACT_CARD_META_ROW, children: metaParts.length > 0 ? metaParts.map((part, i) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _react2.default.Fragment, { children: [
|
|
3754
3754
|
i > 0 ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "shrink-0 text-ods-text-secondary/40", children: "\xB7" }) : null,
|
|
3755
3755
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "min-w-0 truncate", children: part })
|
|
3756
|
-
] }, i)) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
3756
|
+
] }, i)) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkMDLT6D46cjs.COMPACT_CARD_SUMMARY, children: _chunkMDLT6D46cjs.COMPACT_CARD_ROW_FILLER }) }) })
|
|
3757
3757
|
] }),
|
|
3758
3758
|
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
|
|
3759
3759
|
] });
|
|
3760
3760
|
if (anchorProps) {
|
|
3761
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkV45KLJQPcjs.next_link_default, { ...anchorProps, className: `${
|
|
3761
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkV45KLJQPcjs.next_link_default, { ...anchorProps, className: `${_chunkMDLT6D46cjs.COMPACT_CARD_OUTER} ${_nullishCoalesce(className, () => ( ""))}`, children: body });
|
|
3762
3762
|
}
|
|
3763
|
-
return href ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkV45KLJQPcjs.next_link_default, { href, target: "_blank", rel: "noopener noreferrer", className: `${
|
|
3763
|
+
return href ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkV45KLJQPcjs.next_link_default, { href, target: "_blank", rel: "noopener noreferrer", className: `${_chunkMDLT6D46cjs.COMPACT_CARD_OUTER} ${_nullishCoalesce(className, () => ( ""))}`, children: body }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: `${_chunkMDLT6D46cjs.COMPACT_CARD_OUTER_STATIC} ${_nullishCoalesce(className, () => ( ""))}`, "aria-label": "No link available", children: body });
|
|
3764
3764
|
}
|
|
3765
3765
|
function SlackMessageCardSkeleton({
|
|
3766
3766
|
variant = "compact",
|
|
@@ -3768,11 +3768,11 @@ function SlackMessageCardSkeleton({
|
|
|
3768
3768
|
}) {
|
|
3769
3769
|
if (variant === "row") {
|
|
3770
3770
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3771
|
-
|
|
3771
|
+
_chunkMDLT6D46cjs.ActivityRowSkeleton,
|
|
3772
3772
|
{
|
|
3773
3773
|
lead: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
3774
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3775
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3774
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPMUCEUFQcjs.UnifiedSkeleton, { className: "h-3.5 w-3.5 shrink-0 rounded" }),
|
|
3775
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPMUCEUFQcjs.UnifiedSkeleton, { className: "h-3 w-32 shrink-0 rounded" })
|
|
3776
3776
|
] }),
|
|
3777
3777
|
trailingWidths: ["w-24", "w-20"],
|
|
3778
3778
|
className
|
|
@@ -3780,7 +3780,7 @@ function SlackMessageCardSkeleton({
|
|
|
3780
3780
|
);
|
|
3781
3781
|
}
|
|
3782
3782
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3783
|
-
|
|
3783
|
+
_chunkMDLT6D46cjs.CompactCardSkeleton,
|
|
3784
3784
|
{
|
|
3785
3785
|
titleWidth: "w-2/3",
|
|
3786
3786
|
rows: [{ width: "w-5/6" }, { width: "w-1/3" }],
|
|
@@ -3816,12 +3816,12 @@ function HubspotTicketCard({ item, variant = "compact", className, anchorProps }
|
|
|
3816
3816
|
if (_chunk63A4GZMBcjs.useLoadingScope.call(void 0, )) return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, HubspotTicketCardSkeleton, { variant, className });
|
|
3817
3817
|
const statusText = _nullishCoalesce(item.statusLabel, () => ( formatToken(item.status)));
|
|
3818
3818
|
const priorityText = formatToken(item.priority);
|
|
3819
|
-
const dateText =
|
|
3819
|
+
const dateText = _chunkW7OFAROYcjs.formatDateUTC.call(void 0, item.dateUpdated, { fallback: "", timezone: "local" });
|
|
3820
3820
|
if (variant === "row") {
|
|
3821
3821
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: `flex min-w-0 items-center gap-3 ${_nullishCoalesce(className, () => ( ""))}`, children: [
|
|
3822
3822
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "max-w-[260px] shrink-0 truncate text-ods-text-primary text-h6", children: item.title }),
|
|
3823
3823
|
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,
|
|
3824
|
-
statusText ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3824
|
+
statusText ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMDLT6D46cjs.StatusBadge, { text: statusText, variant: "button", colorScheme: statusScheme(item.status) }) : null,
|
|
3825
3825
|
dateText ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "w-24 shrink-0 text-right text-ods-text-secondary text-h6", children: dateText }) : null
|
|
3826
3826
|
] });
|
|
3827
3827
|
}
|
|
@@ -3835,13 +3835,13 @@ function HubspotTicketCard({ item, variant = "compact", className, anchorProps }
|
|
|
3835
3835
|
metaParts.push(
|
|
3836
3836
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "whitespace-nowrap", children: dateText }, "date")
|
|
3837
3837
|
);
|
|
3838
|
-
const href =
|
|
3838
|
+
const href = _chunkMDLT6D46cjs.safeHref.call(void 0, item.url);
|
|
3839
3839
|
const body = /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
3840
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className:
|
|
3840
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: _chunkMDLT6D46cjs.COMPACT_CARD_TEXT_COL, children: [
|
|
3841
3841
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "flex min-w-0 flex-wrap items-center gap-1.5", children: [
|
|
3842
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: `${
|
|
3842
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: `${_chunkMDLT6D46cjs.COMPACT_CARD_TITLE} min-w-0 shrink`, children: item.title }),
|
|
3843
3843
|
priorityText ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3844
|
-
|
|
3844
|
+
_chunkMDLT6D46cjs.StatusBadge,
|
|
3845
3845
|
{
|
|
3846
3846
|
text: priorityText,
|
|
3847
3847
|
variant: "button",
|
|
@@ -3850,7 +3850,7 @@ function HubspotTicketCard({ item, variant = "compact", className, anchorProps }
|
|
|
3850
3850
|
}
|
|
3851
3851
|
) : null,
|
|
3852
3852
|
statusText ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3853
|
-
|
|
3853
|
+
_chunkMDLT6D46cjs.StatusBadge,
|
|
3854
3854
|
{
|
|
3855
3855
|
text: statusText,
|
|
3856
3856
|
variant: "button",
|
|
@@ -3864,7 +3864,7 @@ function HubspotTicketCard({ item, variant = "compact", className, anchorProps }
|
|
|
3864
3864
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "min-w-0 truncate", children: item.customerEmail })
|
|
3865
3865
|
] }) : null,
|
|
3866
3866
|
/* @__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." }) }) }),
|
|
3867
|
-
metaParts.length > 0 ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
3867
|
+
metaParts.length > 0 ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkMDLT6D46cjs.COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkMDLT6D46cjs.COMPACT_CARD_META_ROW, children: metaParts.map((part, i) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _react2.default.Fragment, { children: [
|
|
3868
3868
|
i > 0 ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "shrink-0 text-ods-text-secondary/40", children: "\xB7" }) : null,
|
|
3869
3869
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "min-w-0 truncate", children: part })
|
|
3870
3870
|
] }, i)) }) }) : null
|
|
@@ -3872,9 +3872,9 @@ function HubspotTicketCard({ item, variant = "compact", className, anchorProps }
|
|
|
3872
3872
|
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
|
|
3873
3873
|
] });
|
|
3874
3874
|
if (anchorProps) {
|
|
3875
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkV45KLJQPcjs.next_link_default, { ...anchorProps, className: `${
|
|
3875
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkV45KLJQPcjs.next_link_default, { ...anchorProps, className: `${_chunkMDLT6D46cjs.COMPACT_CARD_OUTER} ${_nullishCoalesce(className, () => ( ""))}`, children: body });
|
|
3876
3876
|
}
|
|
3877
|
-
return href ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkV45KLJQPcjs.next_link_default, { href, target: "_blank", rel: "noopener noreferrer", className: `${
|
|
3877
|
+
return href ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkV45KLJQPcjs.next_link_default, { href, target: "_blank", rel: "noopener noreferrer", className: `${_chunkMDLT6D46cjs.COMPACT_CARD_OUTER} ${_nullishCoalesce(className, () => ( ""))}`, children: body }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: `${_chunkMDLT6D46cjs.COMPACT_CARD_OUTER_STATIC} ${_nullishCoalesce(className, () => ( ""))}`, "aria-label": "No link available", children: body });
|
|
3878
3878
|
}
|
|
3879
3879
|
function HubspotTicketCardSkeleton({
|
|
3880
3880
|
variant = "compact",
|
|
@@ -3882,14 +3882,14 @@ function HubspotTicketCardSkeleton({
|
|
|
3882
3882
|
}) {
|
|
3883
3883
|
if (variant === "row") {
|
|
3884
3884
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: `flex min-w-0 items-center gap-3 ${_nullishCoalesce(className, () => ( ""))}`, children: [
|
|
3885
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3886
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3887
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3888
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3885
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPMUCEUFQcjs.UnifiedSkeleton, { className: "h-3 w-40 shrink-0 rounded" }),
|
|
3886
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPMUCEUFQcjs.UnifiedSkeleton, { className: "h-3 w-2/3 flex-1 rounded" }),
|
|
3887
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPMUCEUFQcjs.UnifiedSkeleton, { className: "h-3 w-16 shrink-0 rounded" }),
|
|
3888
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPMUCEUFQcjs.UnifiedSkeleton, { className: "h-3 w-20 shrink-0 rounded" })
|
|
3889
3889
|
] });
|
|
3890
3890
|
}
|
|
3891
3891
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3892
|
-
|
|
3892
|
+
_chunkMDLT6D46cjs.CompactCardSkeleton,
|
|
3893
3893
|
{
|
|
3894
3894
|
slot: false,
|
|
3895
3895
|
titleWidth: "w-2/3",
|
|
@@ -3907,10 +3907,10 @@ function HubspotTicketCardSkeleton({
|
|
|
3907
3907
|
function DataRoomDocCard({ item, className, badgeText, anchorProps }) {
|
|
3908
3908
|
if (_chunk63A4GZMBcjs.useLoadingScope.call(void 0, )) return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, DataRoomDocCardSkeleton, { className });
|
|
3909
3909
|
const body = /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
3910
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className:
|
|
3910
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: _chunkMDLT6D46cjs.COMPACT_CARD_TEXT_COL, children: [
|
|
3911
3911
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "flex min-w-0 flex-wrap items-center gap-1.5", children: [
|
|
3912
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: `${
|
|
3913
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3912
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: `${_chunkMDLT6D46cjs.COMPACT_CARD_TITLE} min-w-0 shrink`, children: item.title }),
|
|
3913
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMDLT6D46cjs.StatusBadge, { text: badgeText, variant: "button", colorScheme: "cyan", className: "shrink-0" })
|
|
3914
3914
|
] }),
|
|
3915
3915
|
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: [
|
|
3916
3916
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "shrink-0 text-ods-text-secondary/70", children: "Path:" }),
|
|
@@ -3921,13 +3921,13 @@ function DataRoomDocCard({ item, className, badgeText, anchorProps }) {
|
|
|
3921
3921
|
_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
|
|
3922
3922
|
] });
|
|
3923
3923
|
if (!anchorProps) {
|
|
3924
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: `${
|
|
3924
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: `${_chunkMDLT6D46cjs.COMPACT_CARD_OUTER_STATIC} ${_nullishCoalesce(className, () => ( ""))}`, "aria-label": "No link available", children: body });
|
|
3925
3925
|
}
|
|
3926
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkV45KLJQPcjs.next_link_default, { ...anchorProps, className: `${
|
|
3926
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkV45KLJQPcjs.next_link_default, { ...anchorProps, className: `${_chunkMDLT6D46cjs.COMPACT_CARD_OUTER} ${_nullishCoalesce(className, () => ( ""))}`, children: body });
|
|
3927
3927
|
}
|
|
3928
3928
|
function DataRoomDocCardSkeleton({ className }) {
|
|
3929
3929
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3930
|
-
|
|
3930
|
+
_chunkMDLT6D46cjs.CompactCardSkeleton,
|
|
3931
3931
|
{
|
|
3932
3932
|
slot: false,
|
|
3933
3933
|
titleWidth: "w-2/3",
|
|
@@ -3946,24 +3946,24 @@ function CampaignCardAdmin({ campaign, className, anchorProps }) {
|
|
|
3946
3946
|
if (_chunk63A4GZMBcjs.useLoadingScope.call(void 0, )) return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, CampaignCardAdminSkeleton, { className });
|
|
3947
3947
|
const goalsCount = _optionalChain([campaign, 'access', _137 => _137.goals, 'optionalAccess', _138 => _138.length]) || 0;
|
|
3948
3948
|
const innerChildren = /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
3949
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
3950
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className:
|
|
3951
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
3952
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
3953
|
-
campaign.start_date ?
|
|
3949
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkMDLT6D46cjs.COMPACT_CARD_ICON_SLOT, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.Megaphone, { className: "h-5 w-5" }) }),
|
|
3950
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: _chunkMDLT6D46cjs.COMPACT_CARD_TEXT_COL, children: [
|
|
3951
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkMDLT6D46cjs.COMPACT_CARD_TITLE_ROW, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkMDLT6D46cjs.COMPACT_CARD_TITLE, children: campaign.name }) }),
|
|
3952
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkMDLT6D46cjs.COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkMDLT6D46cjs.COMPACT_CARD_SUBTITLE, children: [
|
|
3953
|
+
campaign.start_date ? _chunkYXKAHQYScjs.formatDateShort.call(void 0, campaign.start_date) : null,
|
|
3954
3954
|
goalsCount > 0 ? `${goalsCount} goal${goalsCount !== 1 ? "s" : ""}` : null,
|
|
3955
3955
|
"Marketing campaign"
|
|
3956
3956
|
].filter(Boolean).join(" \xB7 ") }) }),
|
|
3957
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
3957
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkMDLT6D46cjs.COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkMDLT6D46cjs.COMPACT_CARD_SUMMARY, children: campaign.description || _chunkMDLT6D46cjs.COMPACT_CARD_ROW_FILLER }) })
|
|
3958
3958
|
] })
|
|
3959
3959
|
] });
|
|
3960
3960
|
if (anchorProps) {
|
|
3961
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkV45KLJQPcjs.next_link_default, { ...anchorProps, className: `${
|
|
3961
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkV45KLJQPcjs.next_link_default, { ...anchorProps, className: `${_chunkMDLT6D46cjs.COMPACT_CARD_OUTER} ${_nullishCoalesce(className, () => ( ""))}`, children: innerChildren });
|
|
3962
3962
|
}
|
|
3963
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: `${
|
|
3963
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: `${_chunkMDLT6D46cjs.COMPACT_CARD_OUTER_STATIC} ${_nullishCoalesce(className, () => ( ""))}`, "aria-label": "No link available", children: innerChildren });
|
|
3964
3964
|
}
|
|
3965
3965
|
function CampaignCardAdminSkeleton({ className }) {
|
|
3966
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3966
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMDLT6D46cjs.CompactCardSkeleton, { rows: [{ width: "w-1/2" }, { width: "w-11/12" }], className });
|
|
3967
3967
|
}
|
|
3968
3968
|
|
|
3969
3969
|
// src/components/chat/entity-cards/generic-entity-card.tsx
|
|
@@ -3971,14 +3971,14 @@ function CampaignCardAdminSkeleton({ className }) {
|
|
|
3971
3971
|
|
|
3972
3972
|
function GenericEntityCard({ item, className, anchorProps }) {
|
|
3973
3973
|
if (_chunk63A4GZMBcjs.useLoadingScope.call(void 0, )) return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, GenericEntityCardSkeleton, { className });
|
|
3974
|
-
const href =
|
|
3975
|
-
const dateText =
|
|
3974
|
+
const href = _chunkMDLT6D46cjs.safeHref.call(void 0, item.url);
|
|
3975
|
+
const dateText = _chunkW7OFAROYcjs.formatDateUTC.call(void 0, item.dateUpdated, { fallback: "", timezone: "local" });
|
|
3976
3976
|
const body = /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
3977
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className:
|
|
3977
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: _chunkMDLT6D46cjs.COMPACT_CARD_TEXT_COL, children: [
|
|
3978
3978
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "flex min-w-0 flex-wrap items-center gap-1.5", children: [
|
|
3979
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: `${
|
|
3979
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: `${_chunkMDLT6D46cjs.COMPACT_CARD_TITLE} min-w-0 shrink`, children: item.title }),
|
|
3980
3980
|
item.badge ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3981
|
-
|
|
3981
|
+
_chunkMDLT6D46cjs.StatusBadge,
|
|
3982
3982
|
{
|
|
3983
3983
|
text: item.badge.text,
|
|
3984
3984
|
variant: "button",
|
|
@@ -3996,18 +3996,18 @@ function GenericEntityCard({ item, className, anchorProps }) {
|
|
|
3996
3996
|
] }),
|
|
3997
3997
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "truncate font-medium text-ods-text-primary", children: f.value })
|
|
3998
3998
|
] }, i)) }) : null,
|
|
3999
|
-
dateText ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
3999
|
+
dateText ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkMDLT6D46cjs.COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkMDLT6D46cjs.COMPACT_CARD_META_ROW, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "whitespace-nowrap", children: dateText }) }) }) : null
|
|
4000
4000
|
] }),
|
|
4001
4001
|
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
|
|
4002
4002
|
] });
|
|
4003
4003
|
if (anchorProps) {
|
|
4004
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkV45KLJQPcjs.next_link_default, { ...anchorProps, className: `${
|
|
4004
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkV45KLJQPcjs.next_link_default, { ...anchorProps, className: `${_chunkMDLT6D46cjs.COMPACT_CARD_OUTER} ${_nullishCoalesce(className, () => ( ""))}`, children: body });
|
|
4005
4005
|
}
|
|
4006
|
-
return href ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkV45KLJQPcjs.next_link_default, { href, className: `${
|
|
4006
|
+
return href ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkV45KLJQPcjs.next_link_default, { href, className: `${_chunkMDLT6D46cjs.COMPACT_CARD_OUTER} ${_nullishCoalesce(className, () => ( ""))}`, children: body }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: `${_chunkMDLT6D46cjs.COMPACT_CARD_OUTER_STATIC} ${_nullishCoalesce(className, () => ( ""))}`, "aria-label": "No link available", children: body });
|
|
4007
4007
|
}
|
|
4008
4008
|
function GenericEntityCardSkeleton({ className }) {
|
|
4009
4009
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4010
|
-
|
|
4010
|
+
_chunkMDLT6D46cjs.CompactCardSkeleton,
|
|
4011
4011
|
{
|
|
4012
4012
|
slot: false,
|
|
4013
4013
|
titleWidth: "w-2/3",
|
|
@@ -5128,7 +5128,7 @@ function InfoHint({ children, label, side = "top", className }) {
|
|
|
5128
5128
|
const describedById = _react.useId.call(void 0, );
|
|
5129
5129
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: _chunk63A4GZMBcjs.cn.call(void 0, "inline-flex shrink-0 items-center", className), children: [
|
|
5130
5130
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
5131
|
-
|
|
5131
|
+
_chunkW7OFAROYcjs.FloatingTooltip,
|
|
5132
5132
|
{
|
|
5133
5133
|
content: children,
|
|
5134
5134
|
side,
|
|
@@ -5169,7 +5169,7 @@ function Field({ label, hint, required, children, error, labelExtras, labelEnd }
|
|
|
5169
5169
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center gap-1.5", children: [
|
|
5170
5170
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkN3MBQRCQcjs.Label, { htmlFor: controlId, children: [
|
|
5171
5171
|
label,
|
|
5172
|
-
required && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
5172
|
+
required && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkZGEWT3SFcjs.RequiredMark, {})
|
|
5173
5173
|
] }),
|
|
5174
5174
|
hint && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, InfoHint, { label, children: hint }),
|
|
5175
5175
|
labelExtras,
|
|
@@ -5246,7 +5246,7 @@ function Section({ title, description, children }) {
|
|
|
5246
5246
|
] });
|
|
5247
5247
|
}
|
|
5248
5248
|
function ProxyCredentialsPanel({ description }) {
|
|
5249
|
-
const hydrated =
|
|
5249
|
+
const hydrated = _chunkYAW7CHLVcjs.useIsHydrated.call(void 0, );
|
|
5250
5250
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
5251
5251
|
ProxyCredentialsForm,
|
|
5252
5252
|
{
|
|
@@ -5307,13 +5307,13 @@ function ProxyCredentialsForm({ description, saved }) {
|
|
|
5307
5307
|
setStatus("Cleared. Requests use the session again.");
|
|
5308
5308
|
};
|
|
5309
5309
|
const setField = (field, value) => setOptional((prev) => ({ ...prev, [field]: value }));
|
|
5310
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
5310
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMDLT6D46cjs.Card, { children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkMDLT6D46cjs.CardContent, { className: "space-y-[var(--spacing-system-lf)] p-[var(--spacing-system-mf)]", children: [
|
|
5311
5311
|
/* @__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: [
|
|
5312
5312
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { children: [
|
|
5313
5313
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h2", { className: "text-ods-text-primary text-h3", children: "Proxy credentials" }),
|
|
5314
5314
|
description && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-ods-text-secondary text-h6", children: description })
|
|
5315
5315
|
] }),
|
|
5316
|
-
activeEmail && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "self-start", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
5316
|
+
activeEmail && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "self-start", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMDLT6D46cjs.StatusBadge, { singleLine: true, colorScheme: "success", text: `Active: ${activeEmail}` }) })
|
|
5317
5317
|
] }),
|
|
5318
5318
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
5319
5319
|
Section,
|
|
@@ -5329,7 +5329,7 @@ function ProxyCredentialsForm({ description, saved }) {
|
|
|
5329
5329
|
hint: "A SERVICE key may act as anyone; a personal key only as its owner.",
|
|
5330
5330
|
labelEnd: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, HeaderName, { children: "Authorization" }),
|
|
5331
5331
|
children: (props) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
5332
|
-
|
|
5332
|
+
_chunkZGEWT3SFcjs.Input,
|
|
5333
5333
|
{
|
|
5334
5334
|
...props,
|
|
5335
5335
|
type: "password",
|
|
@@ -5350,7 +5350,7 @@ function ProxyCredentialsForm({ description, saved }) {
|
|
|
5350
5350
|
hint: "The end user the requests run as.",
|
|
5351
5351
|
labelEnd: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, HeaderName, { children: "X-Chat-Act-As" }),
|
|
5352
5352
|
children: (props) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
5353
|
-
|
|
5353
|
+
_chunkZGEWT3SFcjs.Input,
|
|
5354
5354
|
{
|
|
5355
5355
|
...props,
|
|
5356
5356
|
type: "email",
|
|
@@ -5376,7 +5376,7 @@ function ProxyCredentialsForm({ description, saved }) {
|
|
|
5376
5376
|
error: _nullishCoalesce(errors[field], () => ( null)),
|
|
5377
5377
|
labelEnd: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, HeaderName, { children: header }),
|
|
5378
5378
|
children: (props) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
5379
|
-
|
|
5379
|
+
_chunkZGEWT3SFcjs.Input,
|
|
5380
5380
|
{
|
|
5381
5381
|
...props,
|
|
5382
5382
|
type: _nullishCoalesce(copy.type, () => ( "text")),
|
|
@@ -5410,12 +5410,12 @@ function ProxyCredentialsForm({ description, saved }) {
|
|
|
5410
5410
|
|
|
5411
5411
|
// src/components/chat/index.ts
|
|
5412
5412
|
var LoadedEmbeddableChat = _react.lazy.call(void 0,
|
|
5413
|
-
() => Promise.resolve().then(() => _interopRequireWildcard(require("./embeddable-chat-
|
|
5413
|
+
() => Promise.resolve().then(() => _interopRequireWildcard(require("./embeddable-chat-ETW6S22E.cjs"))).then((module) => ({ default: module.EmbeddableChat }))
|
|
5414
5414
|
);
|
|
5415
5415
|
var EmbeddableChat = _react.forwardRef.call(void 0, (props, ref) => {
|
|
5416
5416
|
const [loadRequested, setLoadRequested] = _react.useState.call(void 0, false);
|
|
5417
5417
|
const load = loadRequested || Boolean(props.open) || Boolean(props.defaultOpen);
|
|
5418
|
-
_react.useEffect.call(void 0, () =>
|
|
5418
|
+
_react.useEffect.call(void 0, () => _chunkYAW7CHLVcjs.holdAskAiOpens.call(void 0, ), []);
|
|
5419
5419
|
const { loadStyles } = props;
|
|
5420
5420
|
_react.useEffect.call(void 0, () => {
|
|
5421
5421
|
if (load) _optionalChain([loadStyles, 'optionalCall', _204 => _204()]);
|
|
@@ -5423,12 +5423,12 @@ var EmbeddableChat = _react.forwardRef.call(void 0, (props, ref) => {
|
|
|
5423
5423
|
_react.useEffect.call(void 0, () => {
|
|
5424
5424
|
if (load) return void 0;
|
|
5425
5425
|
const start = () => setLoadRequested(true);
|
|
5426
|
-
if (
|
|
5427
|
-
for (const name of
|
|
5428
|
-
const cancel =
|
|
5426
|
+
if (_chunkYAW7CHLVcjs.askAiOpenIsHeld.call(void 0, )) queueMicrotask(start);
|
|
5427
|
+
for (const name of _chunkYAW7CHLVcjs.ASK_AI_OPEN_EVENTS) window.addEventListener(name, start);
|
|
5428
|
+
const cancel = _chunkYAW7CHLVcjs.onAskAiIntent.call(void 0, start);
|
|
5429
5429
|
return () => {
|
|
5430
5430
|
cancel();
|
|
5431
|
-
for (const name of
|
|
5431
|
+
for (const name of _chunkYAW7CHLVcjs.ASK_AI_OPEN_EVENTS) window.removeEventListener(name, start);
|
|
5432
5432
|
};
|
|
5433
5433
|
}, [load]);
|
|
5434
5434
|
if (!load) return null;
|