@flamingo-stack/openframe-frontend-core 0.0.796 → 0.0.798
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-K6HYMHL6.cjs +23 -0
- package/dist/{chunk-QVC5CMC5.cjs → chunk-2JCY5KQL.cjs} +4 -4
- package/dist/{chunk-7VU4HHUR.cjs → chunk-2M6HS23A.cjs} +51 -51
- package/dist/{chunk-IONS6HDF.cjs → chunk-3NGJ7NPT.cjs} +61 -61
- package/dist/{chunk-AT4C2YMA.cjs → chunk-4WIJI4AK.cjs} +17 -17
- package/dist/{chunk-II4A2RUG.cjs → chunk-5IU64YEA.cjs} +62 -62
- package/dist/{chunk-75PJ2SAZ.cjs → chunk-5RGGUQ4Y.cjs} +2 -2
- package/dist/{chunk-W4QITOT7.cjs → chunk-6F2UHDCB.cjs} +13 -13
- package/dist/{chunk-UCHO4BOS.cjs → chunk-6GCXQIUU.cjs} +5 -5
- package/dist/{chunk-GP7NV6BK.cjs → chunk-6UKH22NQ.cjs} +29 -29
- package/dist/{chunk-6WXP5IKR.cjs → chunk-6YCUP6JJ.cjs} +42 -42
- package/dist/{chunk-6YZNUHXT.cjs → chunk-7JWFMAQB.cjs} +8 -2
- package/dist/{chunk-TUD7BV6O.cjs → chunk-7MV23NNT.cjs} +54 -54
- package/dist/{chunk-K7I3YYYU.cjs → chunk-AHBTZ7DN.cjs} +44 -44
- package/dist/{chunk-N3J4U7ML.cjs → chunk-AVAE5B2A.cjs} +8 -8
- package/dist/{chunk-CWA6J7KC.cjs → chunk-BWR5ACK3.cjs} +45 -45
- package/dist/{chunk-NAJ24ODA.cjs → chunk-BWTCULUN.cjs} +4 -4
- package/dist/{chunk-VUP7ZGZS.cjs → chunk-C2UZWRU5.cjs} +46 -46
- package/dist/{chunk-G24OX7AC.cjs → chunk-DTBIIFZG.cjs} +63 -63
- package/dist/{chunk-F64GLU75.cjs → chunk-E56LN23H.cjs} +205 -205
- package/dist/{chunk-ZMWSN2BD.cjs → chunk-EYE5FLHZ.cjs} +13 -13
- package/dist/{chunk-JGURZROB.cjs → chunk-FIKIPO4F.cjs} +334 -321
- package/dist/{chunk-6JCTKXHX.cjs → chunk-FO3N6HDS.cjs} +31 -31
- package/dist/{chunk-JRTDBPJT.cjs → chunk-GD47ZGOU.cjs} +3 -3
- package/dist/{chunk-HBAVHYXO.cjs → chunk-HATRCNXJ.cjs} +2 -2
- package/dist/{chunk-QVKWKY4O.cjs → chunk-JTIGKLKJ.cjs} +23 -23
- package/dist/{chunk-UYOGZJPE.cjs → chunk-KFDAL6NA.cjs} +37 -37
- package/dist/{chunk-DRWPSN3A.cjs → chunk-KUXHXLJQ.cjs} +5 -5
- package/dist/{chunk-GD6RPLHX.cjs → chunk-LKQ33CMY.cjs} +3 -3
- package/dist/{chunk-Y3IMXLLL.cjs → chunk-ND7ECICK.cjs} +541 -538
- package/dist/{chunk-HJBJHQKE.cjs → chunk-NG3RKTQU.cjs} +16 -16
- package/dist/{chunk-YFHKBIZT.cjs → chunk-NK2FSEWD.cjs} +6 -6
- package/dist/{chunk-HYF4LPXF.cjs → chunk-NL3G642U.cjs} +10 -10
- package/dist/{chunk-7SEY3FDF.cjs → chunk-O6KQ64RI.cjs} +19 -19
- package/dist/{chunk-JXQNECXM.cjs → chunk-P4B6PVSG.cjs} +7 -7
- package/dist/{chunk-QCN46LDL.cjs → chunk-PTQVGWJE.cjs} +110 -110
- package/dist/{chunk-OKAHKZP2.cjs → chunk-SDV335EO.cjs} +17 -17
- package/dist/{chunk-PALMLL5T.cjs → chunk-T5OCU3EL.cjs} +10 -10
- package/dist/{chunk-XVVQJXOA.cjs → chunk-TJQGKIXB.cjs} +171 -171
- package/dist/{chunk-HCXNFMLO.cjs → chunk-TTZEDDR5.cjs} +14 -14
- package/dist/{chunk-NRAH3M66.cjs → chunk-VUHPWSAE.cjs} +311 -291
- package/dist/{chunk-CFXCCQ6T.cjs → chunk-VVLL37EM.cjs} +12 -12
- package/dist/{chunk-VYXNGADV.cjs → chunk-W25OB2R6.cjs} +44 -44
- package/dist/{chunk-QMDXG3VF.cjs → chunk-W5ZQDEDT.cjs} +2016 -2015
- package/dist/{chunk-JC43ULIC.cjs → chunk-WUBTAN27.cjs} +116 -116
- package/dist/{chunk-CC7NRWRF.cjs → chunk-XJD7IZR2.cjs} +60 -60
- package/dist/{chunk-LL6PXI6C.cjs → chunk-XR323UBY.cjs} +4 -4
- package/dist/{chunk-UN6LC5PK.cjs → chunk-YBTORXFY.cjs} +110 -110
- package/dist/{chunk-RFIBRGXG.cjs → chunk-YR74H7Z3.cjs} +7 -7
- package/dist/{chunk-RKWEFZ6P.cjs → chunk-ZD6SZLO2.cjs} +3 -3
- package/dist/{chunk-XFJ7BZDJ.cjs → chunk-ZOK4OWMJ.cjs} +22 -22
- package/dist/{chunk-ZRME3A2D.cjs → chunk-ZXRAYCNB.cjs} +3 -3
- package/dist/{cloud-tenants-BQUWLMYY.cjs → cloud-tenants-XGL3DYSG.cjs} +32 -32
- package/dist/components/calendar.cjs +10 -10
- package/dist/components/case-studies/index.cjs +52 -52
- package/dist/components/chat/entity-cards/roadmap-card.d.ts +5 -0
- package/dist/components/chat/entity-cards/roadmap-card.d.ts.map +1 -1
- package/dist/components/chat/entity-cards/roadmap-card.js +16 -1
- package/dist/components/chat/index.cjs +26 -26
- package/dist/components/chat/types/entities/roadmap-item.d.ts +8 -0
- package/dist/components/chat/types/entities/roadmap-item.d.ts.map +1 -1
- package/dist/components/contact/index.cjs +33 -33
- package/dist/components/docs/index.cjs +36 -36
- package/dist/components/embeds/index.cjs +33 -33
- package/dist/components/faq/index.cjs +34 -34
- package/dist/components/features/index.cjs +32 -32
- package/dist/components/help-center-pages/index.cjs +163 -163
- package/dist/components/index.cjs +204 -204
- package/dist/components/meeting-scheduler/index.cjs +191 -191
- package/dist/components/navigation/index.cjs +35 -35
- package/dist/components/onboarding-guides/index.cjs +35 -35
- package/dist/components/product-demo/index.cjs +45 -45
- package/dist/components/related-content/index.cjs +17 -17
- package/dist/components/tickets/index.cjs +39 -39
- package/dist/components/ui/button/button-styles.d.ts +6 -0
- package/dist/components/ui/button/button-styles.d.ts.map +1 -1
- package/dist/components/ui/button/button-styles.js +7 -1
- package/dist/components/ui/feature-card.d.ts +1 -1
- package/dist/components/ui/feature-card.d.ts.map +1 -1
- package/dist/components/ui/feature-card.js +1 -0
- package/dist/components/ui/file-manager/index.cjs +55 -55
- package/dist/components/ui/index.cjs +32 -32
- package/dist/components/ui/tabs.d.ts.map +1 -1
- package/dist/components/ui/tabs.js +6 -3
- package/dist/{devices-BFQOLI3D.cjs → devices-U2NQYDI7.cjs} +33 -33
- package/dist/embed-shims/index.cjs +4 -4
- package/dist/embed-shims/next-image.cjs +4 -4
- package/dist/{embeddable-chat-INYF23ST.cjs → embeddable-chat-MPJLN4C6.cjs} +115 -115
- package/dist/hooks/index.cjs +10 -10
- package/dist/index.cjs +50 -48
- package/dist/{knowledge-GGYWTYTP.cjs → knowledge-BUY6TSK6.cjs} +33 -33
- package/dist/{logs-NO55PTIO.cjs → logs-FUPQ7XYE.cjs} +41 -41
- package/dist/{policies-AAFYTVOJ.cjs → policies-NASADYBK.cjs} +36 -36
- package/dist/{remote-session-2CNWLF3P.cjs → remote-session-4LYKEZSY.cjs} +17 -17
- package/dist/{scripts-H4ECJ65X.cjs → scripts-BGLTDQKV.cjs} +39 -39
- package/dist/{software-update-NEEGQBK3.cjs → software-update-QDIZ32KU.cjs} +36 -36
- package/dist/{tickets-board-CXYRAMDL.cjs → tickets-board-3FBVYSXR.cjs} +17 -17
- package/dist/utils/clickup-drop-down.cjs +22 -0
- package/dist/utils/clickup-drop-down.d.ts +26 -0
- package/dist/utils/clickup-drop-down.d.ts.map +1 -0
- package/dist/utils/clickup-drop-down.js +20 -0
- package/dist/utils/index.cjs +20 -0
- package/dist/utils/index.d.ts +1 -0
- package/dist/utils/index.d.ts.map +1 -1
- package/dist/utils/index.js +1 -0
- package/dist/{video-file-player-HZPMCCYF.cjs → video-file-player-2FMFCGXE.cjs} +14 -14
- package/package.json +7 -1
- package/src/components/chat/entity-cards/roadmap-card.tsx +18 -1
- package/src/components/chat/types/entities/roadmap-item.ts +8 -0
- package/src/components/ui/button/button-styles.ts +11 -1
- package/src/components/ui/feature-card.tsx +2 -1
- package/src/components/ui/tabs.tsx +5 -2
- package/src/utils/clickup-drop-down.ts +41 -0
- package/src/utils/index.ts +1 -0
- package/dist/case-study-card-KU4ZIONR.cjs +0 -23
|
@@ -14,18 +14,18 @@
|
|
|
14
14
|
|
|
15
15
|
|
|
16
16
|
|
|
17
|
-
var
|
|
17
|
+
var _chunkND7ECICKcjs = require('./chunk-ND7ECICK.cjs');
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
|
|
22
22
|
|
|
23
|
-
var
|
|
23
|
+
var _chunk7MV23NNTcjs = require('./chunk-7MV23NNT.cjs');
|
|
24
24
|
|
|
25
25
|
|
|
26
26
|
|
|
27
27
|
|
|
28
|
-
var
|
|
28
|
+
var _chunk3NGJ7NPTcjs = require('./chunk-3NGJ7NPT.cjs');
|
|
29
29
|
|
|
30
30
|
|
|
31
31
|
var _chunkSXGDKNVEcjs = require('./chunk-SXGDKNVE.cjs');
|
|
@@ -91,7 +91,7 @@ var _chunkBFMRU3R6cjs = require('./chunk-BFMRU3R6.cjs');
|
|
|
91
91
|
|
|
92
92
|
|
|
93
93
|
|
|
94
|
-
var
|
|
94
|
+
var _chunk6GCXQIUUcjs = require('./chunk-6GCXQIUU.cjs');
|
|
95
95
|
|
|
96
96
|
|
|
97
97
|
|
|
@@ -107,13 +107,13 @@ var _chunkJKX2C3I2cjs = require('./chunk-JKX2C3I2.cjs');
|
|
|
107
107
|
var _chunkEWPR7662cjs = require('./chunk-EWPR7662.cjs');
|
|
108
108
|
|
|
109
109
|
|
|
110
|
-
var
|
|
110
|
+
var _chunkSDV335EOcjs = require('./chunk-SDV335EO.cjs');
|
|
111
111
|
|
|
112
112
|
|
|
113
113
|
|
|
114
114
|
|
|
115
115
|
|
|
116
|
-
var
|
|
116
|
+
var _chunkFIKIPO4Fcjs = require('./chunk-FIKIPO4F.cjs');
|
|
117
117
|
|
|
118
118
|
|
|
119
119
|
|
|
@@ -132,7 +132,7 @@ var _chunkJGURZROBcjs = require('./chunk-JGURZROB.cjs');
|
|
|
132
132
|
|
|
133
133
|
|
|
134
134
|
|
|
135
|
-
var
|
|
135
|
+
var _chunkYBTORXFYcjs = require('./chunk-YBTORXFY.cjs');
|
|
136
136
|
|
|
137
137
|
|
|
138
138
|
|
|
@@ -141,7 +141,7 @@ var _chunkUN6LC5PKcjs = require('./chunk-UN6LC5PK.cjs');
|
|
|
141
141
|
|
|
142
142
|
|
|
143
143
|
|
|
144
|
-
var
|
|
144
|
+
var _chunk6UKH22NQcjs = require('./chunk-6UKH22NQ.cjs');
|
|
145
145
|
|
|
146
146
|
|
|
147
147
|
|
|
@@ -153,29 +153,29 @@ var _chunkGP7NV6BKcjs = require('./chunk-GP7NV6BK.cjs');
|
|
|
153
153
|
var _chunk5GJM7VRRcjs = require('./chunk-5GJM7VRR.cjs');
|
|
154
154
|
|
|
155
155
|
|
|
156
|
-
var
|
|
156
|
+
var _chunkKUXHXLJQcjs = require('./chunk-KUXHXLJQ.cjs');
|
|
157
157
|
|
|
158
158
|
|
|
159
159
|
|
|
160
|
-
var
|
|
160
|
+
var _chunkTTZEDDR5cjs = require('./chunk-TTZEDDR5.cjs');
|
|
161
161
|
|
|
162
162
|
|
|
163
|
-
var
|
|
163
|
+
var _chunkGD47ZGOUcjs = require('./chunk-GD47ZGOU.cjs');
|
|
164
164
|
|
|
165
165
|
|
|
166
166
|
|
|
167
167
|
|
|
168
|
-
var
|
|
168
|
+
var _chunk4WIJI4AKcjs = require('./chunk-4WIJI4AK.cjs');
|
|
169
169
|
|
|
170
170
|
|
|
171
|
-
var
|
|
171
|
+
var _chunkAHBTZ7DNcjs = require('./chunk-AHBTZ7DN.cjs');
|
|
172
172
|
|
|
173
173
|
|
|
174
174
|
|
|
175
175
|
|
|
176
176
|
|
|
177
177
|
|
|
178
|
-
var
|
|
178
|
+
var _chunk7JWFMAQBcjs = require('./chunk-7JWFMAQB.cjs');
|
|
179
179
|
|
|
180
180
|
|
|
181
181
|
var _chunkV45KLJQPcjs = require('./chunk-V45KLJQP.cjs');
|
|
@@ -198,24 +198,24 @@ var HEADER_CLASS = "mb-1 flex min-w-0 max-w-full items-center gap-2";
|
|
|
198
198
|
var NAME_TYPE_CLASS = "font-body text-[14px] font-bold leading-[1.33] tracking-[-0.02em] md:text-[15px]";
|
|
199
199
|
var CHAT_MESSAGE_ROW_BODY_LINES = 2;
|
|
200
200
|
function ChatMessageRow(props) {
|
|
201
|
-
const loading =
|
|
202
|
-
if (loading) return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, ChatMessageRowLoading, { ...
|
|
201
|
+
const loading = _chunk7JWFMAQBcjs.useLoadingScope.call(void 0, ) || !!props.loading;
|
|
202
|
+
if (loading) return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, ChatMessageRowLoading, { ..._chunk7JWFMAQBcjs.loadingItemProps.call(void 0, props) });
|
|
203
203
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, ChatMessageRowLoaded, { ...props });
|
|
204
204
|
}
|
|
205
205
|
function ChatMessageRowLoaded(props) {
|
|
206
206
|
const { displayName, avatarUrl, timeLabel, body, footer } = props;
|
|
207
|
-
const proxiedAvatar =
|
|
207
|
+
const proxiedAvatar = _chunkFIKIPO4Fcjs.useProxiedImageUrl.call(void 0, _nullishCoalesce(avatarUrl, () => ( "")));
|
|
208
208
|
const resolvedAvatar = proxiedAvatar || avatarUrl || void 0;
|
|
209
209
|
const [failedSrc, setFailedSrc] = _react.useState.call(void 0, null);
|
|
210
210
|
const src = resolvedAvatar && resolvedAvatar !== failedSrc ? resolvedAvatar : void 0;
|
|
211
211
|
const hasBody = typeof body === "string" ? body.trim().length > 0 : body != null && body !== false;
|
|
212
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: ROW_CLASS, ...
|
|
212
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: ROW_CLASS, ..._chunk7JWFMAQBcjs.loadingItemProps.call(void 0, props), children: [
|
|
213
213
|
src ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
214
|
-
|
|
214
|
+
_chunkKUXHXLJQcjs.next_image_default,
|
|
215
215
|
{
|
|
216
216
|
src,
|
|
217
217
|
alt: displayName,
|
|
218
|
-
className:
|
|
218
|
+
className: _chunk7JWFMAQBcjs.cn.call(void 0, AVATAR_BOX_CLASS, "object-cover"),
|
|
219
219
|
width: 40,
|
|
220
220
|
height: 40,
|
|
221
221
|
onError: () => setFailedSrc(_nullishCoalesce(resolvedAvatar, () => ( null)))
|
|
@@ -223,16 +223,16 @@ function ChatMessageRowLoaded(props) {
|
|
|
223
223
|
) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
224
224
|
"div",
|
|
225
225
|
{
|
|
226
|
-
className:
|
|
226
|
+
className: _chunk7JWFMAQBcjs.cn.call(void 0,
|
|
227
227
|
AVATAR_BOX_CLASS,
|
|
228
228
|
"flex items-center justify-center border border-ods-border bg-ods-bg text-ods-text-primary text-h6"
|
|
229
229
|
),
|
|
230
|
-
children:
|
|
230
|
+
children: _chunk6UKH22NQcjs.personInitials.call(void 0, displayName) || "?"
|
|
231
231
|
}
|
|
232
232
|
),
|
|
233
233
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: CONTENT_CLASS, children: [
|
|
234
234
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: HEADER_CLASS, children: [
|
|
235
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
235
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunk7JWFMAQBcjs.cn.call(void 0, "truncate text-ods-text-primary", NAME_TYPE_CLASS), children: displayName }),
|
|
236
236
|
timeLabel && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "flex-shrink-0 text-ods-text-secondary text-h6", children: timeLabel })
|
|
237
237
|
] }),
|
|
238
238
|
hasBody && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "min-w-0 max-w-full whitespace-pre-wrap break-words text-ods-text-primary text-h6", children: body }),
|
|
@@ -242,13 +242,13 @@ function ChatMessageRowLoaded(props) {
|
|
|
242
242
|
}
|
|
243
243
|
function ChatMessageRowLoading(markers) {
|
|
244
244
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: ROW_CLASS, ...markers, children: [
|
|
245
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
245
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4WIJI4AKcjs.UnifiedSkeleton, { className: AVATAR_BOX_CLASS }),
|
|
246
246
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: CONTENT_CLASS, children: [
|
|
247
247
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: HEADER_CLASS, children: [
|
|
248
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
249
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
248
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4WIJI4AKcjs.TextLineSkeleton, { type: "inherit", as: "span", className: _chunk7JWFMAQBcjs.cn.call(void 0, NAME_TYPE_CLASS, "w-24 md:w-32") }),
|
|
249
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4WIJI4AKcjs.TextLineSkeleton, { type: "h6", as: "span", className: "w-12 flex-shrink-0 md:w-16" })
|
|
250
250
|
] }),
|
|
251
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
251
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4WIJI4AKcjs.TextLineSkeleton, { type: "h6", lines: CHAT_MESSAGE_ROW_BODY_LINES })
|
|
252
252
|
] })
|
|
253
253
|
] });
|
|
254
254
|
}
|
|
@@ -275,7 +275,7 @@ function ChatTurn({
|
|
|
275
275
|
loading: loadingProp,
|
|
276
276
|
skeleton
|
|
277
277
|
}) {
|
|
278
|
-
const loading =
|
|
278
|
+
const loading = _chunk7JWFMAQBcjs.useLoadingScope.call(void 0, ) || loadingProp;
|
|
279
279
|
if (loading) {
|
|
280
280
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
281
281
|
ChatTurnSkeleton,
|
|
@@ -291,12 +291,12 @@ function ChatTurn({
|
|
|
291
291
|
}
|
|
292
292
|
);
|
|
293
293
|
}
|
|
294
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className:
|
|
294
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk7JWFMAQBcjs.cn.call(void 0, TURN_ROW_CLASS, className), children: [
|
|
295
295
|
avatar && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "shrink-0", children: avatar }),
|
|
296
296
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: TURN_BODY_CLASS, children: [
|
|
297
297
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: NAME_ROW_CLASS, children: [
|
|
298
298
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: NAME_GROUP_CLASS, children: [
|
|
299
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
299
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunk7JWFMAQBcjs.cn.call(void 0, "min-w-0 truncate", NAME_CLASS[nameSize]), children: name }),
|
|
300
300
|
meta && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: META_CLASS, children: meta })
|
|
301
301
|
] }),
|
|
302
302
|
time && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: TIME_CLASS, children: time })
|
|
@@ -312,10 +312,10 @@ function ChatTurnNameSkeleton({
|
|
|
312
312
|
}) {
|
|
313
313
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: NAME_ROW_CLASS, children: [
|
|
314
314
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: NAME_GROUP_CLASS, children: [
|
|
315
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
316
|
-
typeof meta === "string" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: META_CLASS, children: meta }) : meta && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
315
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4WIJI4AKcjs.TextLineSkeleton, { type: NAME_TYPE[nameSize], className: "w-24" }),
|
|
316
|
+
typeof meta === "string" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: META_CLASS, children: meta }) : meta && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4WIJI4AKcjs.TextLineSkeleton, { type: "h6", className: "w-20" })
|
|
317
317
|
] }),
|
|
318
|
-
time && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
318
|
+
time && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4WIJI4AKcjs.TextLineSkeleton, { type: "h6", className: "w-12 shrink-0" })
|
|
319
319
|
] });
|
|
320
320
|
}
|
|
321
321
|
function ChatTurnSkeleton({
|
|
@@ -328,11 +328,11 @@ function ChatTurnSkeleton({
|
|
|
328
328
|
meta = false,
|
|
329
329
|
className
|
|
330
330
|
}) {
|
|
331
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className:
|
|
332
|
-
avatarPx ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
331
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk7JWFMAQBcjs.cn.call(void 0, TURN_ROW_CLASS, className), "aria-hidden": true, children: [
|
|
332
|
+
avatarPx ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk6UKH22NQcjs.SquareAvatar, { loading: true, sizePx: avatarPx, variant: avatarShape }) : null,
|
|
333
333
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: TURN_BODY_CLASS, children: [
|
|
334
334
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, ChatTurnNameSkeleton, { nameSize, meta, time }),
|
|
335
|
-
_nullishCoalesce(body, () => ( /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
335
|
+
_nullishCoalesce(body, () => ( /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4WIJI4AKcjs.TextLineSkeleton, { lines, type: "h4" })))
|
|
336
336
|
] })
|
|
337
337
|
] });
|
|
338
338
|
}
|
|
@@ -475,6 +475,25 @@ function brandMarkDataUri(name) {
|
|
|
475
475
|
return `data:image/svg+xml,${encodeURIComponent(svg)}`;
|
|
476
476
|
}
|
|
477
477
|
|
|
478
|
+
// src/utils/clickup-drop-down.ts
|
|
479
|
+
function optionsOf(field) {
|
|
480
|
+
return Array.isArray(_optionalChain([field, 'optionalAccess', _14 => _14.type_config, 'optionalAccess', _15 => _15.options])) ? field.type_config.options : [];
|
|
481
|
+
}
|
|
482
|
+
function fieldOf(fields, fieldId) {
|
|
483
|
+
return Array.isArray(fields) ? fields.find((f) => _optionalChain([f, 'optionalAccess', _16 => _16.id]) === fieldId) : void 0;
|
|
484
|
+
}
|
|
485
|
+
function clickUpDropDownOption(fields, fieldId) {
|
|
486
|
+
const field = fieldOf(fields, fieldId);
|
|
487
|
+
const value = _optionalChain([field, 'optionalAccess', _17 => _17.value]);
|
|
488
|
+
if (value === null || value === void 0 || value === "") return null;
|
|
489
|
+
const options = optionsOf(field);
|
|
490
|
+
const byId = typeof value === "string" ? options.find((o) => o.id === value) : void 0;
|
|
491
|
+
const position = Number(value);
|
|
492
|
+
const option = _nullishCoalesce(byId, () => ( (Number.isFinite(position) ? options.find((o) => Number(o.orderindex) === position) : void 0)));
|
|
493
|
+
if (!_optionalChain([option, 'optionalAccess', _18 => _18.id])) return null;
|
|
494
|
+
return { id: option.id, name: _optionalChain([option, 'access', _19 => _19.name, 'optionalAccess', _20 => _20.trim, 'call', _21 => _21()]) || null };
|
|
495
|
+
}
|
|
496
|
+
|
|
478
497
|
// src/utils/os-platforms.ts
|
|
479
498
|
var OS_PLATFORMS = [
|
|
480
499
|
{ id: "windows", name: "Windows", icon: _chunkSXGDKNVEcjs.WindowsClassicIcon },
|
|
@@ -797,7 +816,7 @@ function getShellIcon(shellType) {
|
|
|
797
816
|
if (!shellType) return void 0;
|
|
798
817
|
const normalized = shellType.toUpperCase();
|
|
799
818
|
const shellDef = SHELL_TYPES.find((s) => s.id === normalized);
|
|
800
|
-
return _optionalChain([shellDef, 'optionalAccess',
|
|
819
|
+
return _optionalChain([shellDef, 'optionalAccess', _22 => _22.icon]);
|
|
801
820
|
}
|
|
802
821
|
|
|
803
822
|
// src/utils/video-bite-id.ts
|
|
@@ -899,7 +918,7 @@ function getOSIcon(osType) {
|
|
|
899
918
|
const normalized = normalizeOSType(osType);
|
|
900
919
|
if (!normalized) return void 0;
|
|
901
920
|
const osTypeDef = OS_TYPES.find((t) => t.id === normalized);
|
|
902
|
-
return _optionalChain([osTypeDef, 'optionalAccess',
|
|
921
|
+
return _optionalChain([osTypeDef, 'optionalAccess', _23 => _23.icon]);
|
|
903
922
|
}
|
|
904
923
|
function getOSTypeDefinition(osType) {
|
|
905
924
|
if (!osType) return void 0;
|
|
@@ -909,7 +928,7 @@ function getOSTypeDefinition(osType) {
|
|
|
909
928
|
}
|
|
910
929
|
function getOSPlatformId(osType) {
|
|
911
930
|
const osTypeDef = getOSTypeDefinition(osType);
|
|
912
|
-
return _optionalChain([osTypeDef, 'optionalAccess',
|
|
931
|
+
return _optionalChain([osTypeDef, 'optionalAccess', _24 => _24.platformId]);
|
|
913
932
|
}
|
|
914
933
|
function isOSPlatform(deviceOS, targetPlatform) {
|
|
915
934
|
if (!deviceOS || !targetPlatform) return false;
|
|
@@ -920,7 +939,7 @@ function isOSPlatform(deviceOS, targetPlatform) {
|
|
|
920
939
|
// src/utils/mobile-app.ts
|
|
921
940
|
var DOWNLOAD_PAGE_PATH = "/download";
|
|
922
941
|
function resolveMobileStoreUrl(links, userAgent, maxTouchPoints) {
|
|
923
|
-
const os =
|
|
942
|
+
const os = _chunk6GCXQIUUcjs.detectVisitorOs.call(void 0, userAgent, { maxTouchPoints });
|
|
924
943
|
if (os === "ios") return links.appStoreUrl;
|
|
925
944
|
if (os === "android") return links.googlePlayUrl;
|
|
926
945
|
return null;
|
|
@@ -1072,7 +1091,7 @@ function getCountryByName(name) {
|
|
|
1072
1091
|
}
|
|
1073
1092
|
function getFlagFromCountryName(countryName) {
|
|
1074
1093
|
const country = getCountryByName(countryName);
|
|
1075
|
-
return _optionalChain([country, 'optionalAccess',
|
|
1094
|
+
return _optionalChain([country, 'optionalAccess', _25 => _25.flag]);
|
|
1076
1095
|
}
|
|
1077
1096
|
function validatePhoneNumber(phoneNumber, countryCode) {
|
|
1078
1097
|
if (!phoneNumber.trim()) return true;
|
|
@@ -1181,10 +1200,10 @@ var GENERIC_EMAIL_DOMAINS = [
|
|
|
1181
1200
|
];
|
|
1182
1201
|
function extractDomainFromEmail(email) {
|
|
1183
1202
|
if (!email || !email.includes("@")) return null;
|
|
1184
|
-
return _optionalChain([email, 'access',
|
|
1203
|
+
return _optionalChain([email, 'access', _26 => _26.split, 'call', _27 => _27("@"), 'access', _28 => _28[1], 'optionalAccess', _29 => _29.toLowerCase, 'call', _30 => _30()]) || null;
|
|
1185
1204
|
}
|
|
1186
1205
|
function normalizeDomain(domain) {
|
|
1187
|
-
return _optionalChain([domain, 'optionalAccess',
|
|
1206
|
+
return _optionalChain([domain, 'optionalAccess', _31 => _31.toLowerCase, 'call', _32 => _32(), 'access', _33 => _33.replace, 'call', _34 => _34(/^https?:\/\//, ""), 'access', _35 => _35.replace, 'call', _36 => _36(/^www\./, ""), 'access', _37 => _37.split, 'call', _38 => _38("/"), 'access', _39 => _39[0], 'access', _40 => _40.trim, 'call', _41 => _41()]) || "";
|
|
1188
1207
|
}
|
|
1189
1208
|
function isGenericDomain(domain) {
|
|
1190
1209
|
const normalized = normalizeDomain(domain);
|
|
@@ -1285,7 +1304,7 @@ function clearLegacyAnnouncementCache(platform) {
|
|
|
1285
1304
|
// src/utils/announcement-surface.ts
|
|
1286
1305
|
function isAnnouncementOnSurface(announcement, surface) {
|
|
1287
1306
|
const surfaces = announcement.surfaces;
|
|
1288
|
-
return !_optionalChain([surfaces, 'optionalAccess',
|
|
1307
|
+
return !_optionalChain([surfaces, 'optionalAccess', _42 => _42.length]) || surfaces.includes(surface);
|
|
1289
1308
|
}
|
|
1290
1309
|
|
|
1291
1310
|
// src/utils/after-page-load.ts
|
|
@@ -1306,7 +1325,7 @@ function afterPageLoad(run, maxWaitMs = 2e3) {
|
|
|
1306
1325
|
return () => {
|
|
1307
1326
|
cancelled = true;
|
|
1308
1327
|
window.removeEventListener("load", whenIdle);
|
|
1309
|
-
if (idleHandle !== null) _optionalChain([w, 'access',
|
|
1328
|
+
if (idleHandle !== null) _optionalChain([w, 'access', _43 => _43.cancelIdleCallback, 'optionalCall', _44 => _44(idleHandle)]);
|
|
1310
1329
|
if (timer !== null) clearTimeout(timer);
|
|
1311
1330
|
};
|
|
1312
1331
|
}
|
|
@@ -1375,7 +1394,7 @@ function createSseSubscription(options) {
|
|
|
1375
1394
|
if (connected === next) return;
|
|
1376
1395
|
connected = next;
|
|
1377
1396
|
try {
|
|
1378
|
-
_optionalChain([onConnectedChange, 'optionalCall',
|
|
1397
|
+
_optionalChain([onConnectedChange, 'optionalCall', _45 => _45(next)]);
|
|
1379
1398
|
} catch (err) {
|
|
1380
1399
|
console.error("[sse-subscription] onConnectedChange threw:", err);
|
|
1381
1400
|
}
|
|
@@ -1391,7 +1410,7 @@ function createSseSubscription(options) {
|
|
|
1391
1410
|
if (status !== "open") {
|
|
1392
1411
|
confirmTimerId = clearLifecycleTimer(confirmTimerId);
|
|
1393
1412
|
}
|
|
1394
|
-
_optionalChain([onStatusChange, 'optionalCall',
|
|
1413
|
+
_optionalChain([onStatusChange, 'optionalCall', _46 => _46(status)]);
|
|
1395
1414
|
};
|
|
1396
1415
|
const internalReconnect = (delayMs) => {
|
|
1397
1416
|
failedDelayTimerId = clearLifecycleTimer(failedDelayTimerId);
|
|
@@ -1405,7 +1424,7 @@ function createSseSubscription(options) {
|
|
|
1405
1424
|
}, delayMs);
|
|
1406
1425
|
};
|
|
1407
1426
|
const handleServerStatus = (data) => {
|
|
1408
|
-
const status = _optionalChain([data, 'optionalAccess',
|
|
1427
|
+
const status = _optionalChain([data, 'optionalAccess', _47 => _47.status]);
|
|
1409
1428
|
if (status === "subscribed") {
|
|
1410
1429
|
confirmTimerId = clearLifecycleTimer(confirmTimerId);
|
|
1411
1430
|
serverGraceTimerId = clearLifecycleTimer(serverGraceTimerId);
|
|
@@ -1446,7 +1465,7 @@ function createSseSubscription(options) {
|
|
|
1446
1465
|
const armSilenceTimer = () => {
|
|
1447
1466
|
if (silenceTimerId) clearTimeout(silenceTimerId);
|
|
1448
1467
|
silenceTimerId = setTimeout(() => {
|
|
1449
|
-
_optionalChain([abortController, 'optionalAccess',
|
|
1468
|
+
_optionalChain([abortController, 'optionalAccess', _48 => _48.abort, 'call', _49 => _49()]);
|
|
1450
1469
|
}, silenceTimeoutMs);
|
|
1451
1470
|
};
|
|
1452
1471
|
const scheduleReconnect = (delayMs) => {
|
|
@@ -1599,7 +1618,7 @@ function createSseSubscription(options) {
|
|
|
1599
1618
|
generation += 1;
|
|
1600
1619
|
clearTimers();
|
|
1601
1620
|
attempt = 0;
|
|
1602
|
-
_optionalChain([abortController, 'optionalAccess',
|
|
1621
|
+
_optionalChain([abortController, 'optionalAccess', _50 => _50.abort, 'call', _51 => _51()]);
|
|
1603
1622
|
void connect();
|
|
1604
1623
|
}
|
|
1605
1624
|
const suspend = () => {
|
|
@@ -1607,7 +1626,7 @@ function createSseSubscription(options) {
|
|
|
1607
1626
|
suspended = true;
|
|
1608
1627
|
generation += 1;
|
|
1609
1628
|
clearTimers();
|
|
1610
|
-
_optionalChain([abortController, 'optionalAccess',
|
|
1629
|
+
_optionalChain([abortController, 'optionalAccess', _52 => _52.abort, 'call', _53 => _53()]);
|
|
1611
1630
|
setStatus("suspended");
|
|
1612
1631
|
};
|
|
1613
1632
|
const retryIfStalled = () => {
|
|
@@ -1652,15 +1671,15 @@ function createSseSubscription(options) {
|
|
|
1652
1671
|
generation += 1;
|
|
1653
1672
|
clearTimers();
|
|
1654
1673
|
hiddenGraceTimerId = clearLifecycleTimer(hiddenGraceTimerId);
|
|
1655
|
-
_optionalChain([abortController, 'optionalAccess',
|
|
1674
|
+
_optionalChain([abortController, 'optionalAccess', _54 => _54.abort, 'call', _55 => _55()]);
|
|
1656
1675
|
if (listenersActive) {
|
|
1657
1676
|
document.removeEventListener("visibilitychange", onVisibilityChange);
|
|
1658
1677
|
window.removeEventListener("online", onOnline);
|
|
1659
1678
|
window.removeEventListener("focus", retryIfStalled);
|
|
1660
1679
|
}
|
|
1661
|
-
_optionalChain([unsubscribeCredentials, 'optionalCall',
|
|
1680
|
+
_optionalChain([unsubscribeCredentials, 'optionalCall', _56 => _56()]);
|
|
1662
1681
|
setConnected(false);
|
|
1663
|
-
_optionalChain([onStatusChange, 'optionalCall',
|
|
1682
|
+
_optionalChain([onStatusChange, 'optionalCall', _57 => _57("closed")]);
|
|
1664
1683
|
},
|
|
1665
1684
|
reconnectNow: () => {
|
|
1666
1685
|
if (closed) return;
|
|
@@ -1672,7 +1691,7 @@ function createSseSubscription(options) {
|
|
|
1672
1691
|
|
|
1673
1692
|
// src/utils/sse-decision-frame.ts
|
|
1674
1693
|
async function readLeadingDecisionFrame(response) {
|
|
1675
|
-
const reader = _optionalChain([response, 'access',
|
|
1694
|
+
const reader = _optionalChain([response, 'access', _58 => _58.body, 'optionalAccess', _59 => _59.getReader, 'call', _60 => _60()]);
|
|
1676
1695
|
if (!reader) throw new Error("readLeadingDecisionFrame: response has no body");
|
|
1677
1696
|
const decoder = new TextDecoder();
|
|
1678
1697
|
let buffer = "";
|
|
@@ -1697,8 +1716,8 @@ async function readLeadingDecisionFrame(response) {
|
|
|
1697
1716
|
throw new Error(`readLeadingDecisionFrame: leading JSON parse failed: ${err.message}`);
|
|
1698
1717
|
}
|
|
1699
1718
|
const obj = parsed;
|
|
1700
|
-
if (_optionalChain([obj, 'optionalAccess',
|
|
1701
|
-
throw new Error(`readLeadingDecisionFrame: expected decision_resolved, got kind=${String(_optionalChain([obj, 'optionalAccess',
|
|
1719
|
+
if (_optionalChain([obj, 'optionalAccess', _61 => _61.kind]) !== "decision_resolved") {
|
|
1720
|
+
throw new Error(`readLeadingDecisionFrame: expected decision_resolved, got kind=${String(_optionalChain([obj, 'optionalAccess', _62 => _62.kind]))}`);
|
|
1702
1721
|
}
|
|
1703
1722
|
frame = normalizeDecisionFrame(obj);
|
|
1704
1723
|
buffer = buffer.slice(nullIdx + 1);
|
|
@@ -1909,12 +1928,12 @@ var FullscreenSwitchController = class {
|
|
|
1909
1928
|
if (fullscreenElementOf(doc)) {
|
|
1910
1929
|
if (doc.exitFullscreen) doc.exitFullscreen().catch(() => {
|
|
1911
1930
|
});
|
|
1912
|
-
else _optionalChain([doc, 'access',
|
|
1931
|
+
else _optionalChain([doc, 'access', _63 => _63.webkitExitFullscreen, 'optionalCall', _64 => _64()]);
|
|
1913
1932
|
} else {
|
|
1914
|
-
const el = _nullishCoalesce(_optionalChain([this, 'access',
|
|
1933
|
+
const el = _nullishCoalesce(_optionalChain([this, 'access', _65 => _65.opts, 'access', _66 => _66.target, 'optionalCall', _67 => _67()]), () => ( document.documentElement));
|
|
1915
1934
|
if (el.requestFullscreen) el.requestFullscreen({ navigationUI: "hide" }).catch(() => {
|
|
1916
1935
|
});
|
|
1917
|
-
else _optionalChain([el, 'access',
|
|
1936
|
+
else _optionalChain([el, 'access', _68 => _68.webkitRequestFullscreen, 'optionalCall', _69 => _69()]);
|
|
1918
1937
|
}
|
|
1919
1938
|
};
|
|
1920
1939
|
/** Raise the mask + start tracking. Idempotent — safe from the pre-emptive
|
|
@@ -1929,7 +1948,7 @@ var FullscreenSwitchController = class {
|
|
|
1929
1948
|
window.clearTimeout(this.quietTimer);
|
|
1930
1949
|
window.clearTimeout(this.capTimer);
|
|
1931
1950
|
window.removeEventListener("resize", this.onResize);
|
|
1932
|
-
_optionalChain([this, 'access',
|
|
1951
|
+
_optionalChain([this, 'access', _70 => _70.opts, 'access', _71 => _71.onGeometryPulse, 'optionalCall', _72 => _72()]);
|
|
1933
1952
|
if (this.opts.switchingClass) document.documentElement.classList.remove(this.opts.switchingClass);
|
|
1934
1953
|
};
|
|
1935
1954
|
this.armQuiet = () => {
|
|
@@ -1937,7 +1956,7 @@ var FullscreenSwitchController = class {
|
|
|
1937
1956
|
this.quietTimer = window.setTimeout(this.endSwitch, _nullishCoalesce(this.opts.quietMs, () => ( DEFAULT_QUIET_MS)));
|
|
1938
1957
|
};
|
|
1939
1958
|
this.onResize = () => {
|
|
1940
|
-
_optionalChain([this, 'access',
|
|
1959
|
+
_optionalChain([this, 'access', _73 => _73.opts, 'access', _74 => _74.onGeometryPulse, 'optionalCall', _75 => _75()]);
|
|
1941
1960
|
this.armQuiet();
|
|
1942
1961
|
};
|
|
1943
1962
|
/** Escape is the one exit path that skips toggle() — pre-mask on the
|
|
@@ -1949,7 +1968,7 @@ var FullscreenSwitchController = class {
|
|
|
1949
1968
|
const fs = this.isFullscreen;
|
|
1950
1969
|
if (this.opts.activeClass) document.documentElement.classList.toggle(this.opts.activeClass, fs);
|
|
1951
1970
|
this.beginSwitch();
|
|
1952
|
-
requestAnimationFrame(() => _optionalChain([this, 'access',
|
|
1971
|
+
requestAnimationFrame(() => _optionalChain([this, 'access', _76 => _76.opts, 'access', _77 => _77.onGeometryPulse, 'optionalCall', _78 => _78()]));
|
|
1953
1972
|
this.armQuiet();
|
|
1954
1973
|
this.opts.onFullscreenChange(fs);
|
|
1955
1974
|
};
|
|
@@ -1963,7 +1982,7 @@ var FullscreenSwitchController = class {
|
|
|
1963
1982
|
}
|
|
1964
1983
|
get isFullscreen() {
|
|
1965
1984
|
const fs = fullscreenElementOf(document);
|
|
1966
|
-
const target = _optionalChain([this, 'access',
|
|
1985
|
+
const target = _optionalChain([this, 'access', _79 => _79.opts, 'access', _80 => _80.target, 'optionalCall', _81 => _81()]);
|
|
1967
1986
|
return target ? fs === target : Boolean(fs);
|
|
1968
1987
|
}
|
|
1969
1988
|
attach() {
|
|
@@ -2010,7 +2029,7 @@ function primaryPlatformOf(platforms) {
|
|
|
2010
2029
|
if (!Array.isArray(platforms)) return null;
|
|
2011
2030
|
for (const entry of platforms) {
|
|
2012
2031
|
const row = entry;
|
|
2013
|
-
const name = _nullishCoalesce(_nullishCoalesce(_optionalChain([row, 'optionalAccess',
|
|
2032
|
+
const name = _nullishCoalesce(_nullishCoalesce(_optionalChain([row, 'optionalAccess', _82 => _82.platforms, 'optionalAccess', _83 => _83.name]), () => ( _optionalChain([row, 'optionalAccess', _84 => _84.platform_name]))), () => ( _optionalChain([row, 'optionalAccess', _85 => _85.name])));
|
|
2014
2033
|
if (typeof name === "string" && name.trim()) return name.trim();
|
|
2015
2034
|
}
|
|
2016
2035
|
return null;
|
|
@@ -2027,21 +2046,21 @@ function lastPathSegment(url) {
|
|
|
2027
2046
|
function makeComposeContentUrl(opts) {
|
|
2028
2047
|
const suffixes = _nullishCoalesce(opts.suffixes, () => ( DEFAULT_CONTENT_SUFFIXES));
|
|
2029
2048
|
return ({ type: rawType, identifier, slug: slugHint, externalUrl, targetPlatform, platforms }) => {
|
|
2030
|
-
const type =
|
|
2049
|
+
const type = _chunkFIKIPO4Fcjs.canonicalContentRefType.call(void 0, rawType);
|
|
2031
2050
|
const override = opts.overrides && Object.prototype.hasOwnProperty.call(opts.overrides, type) ? opts.overrides[type] : void 0;
|
|
2032
2051
|
if (override) return { ...override(identifier), hostOverride: true };
|
|
2033
2052
|
const seg = _nullishCoalesce((Object.prototype.hasOwnProperty.call(suffixes, type) ? suffixes[type] : void 0), () => ( type));
|
|
2034
2053
|
if (opts.hostedTypes.has(type)) {
|
|
2035
2054
|
const recovered = externalUrl ? lastPathSegment(externalUrl) : null;
|
|
2036
|
-
const slug = recovered && recovered !== seg ? recovered : _optionalChain([slugHint, 'optionalAccess',
|
|
2055
|
+
const slug = recovered && recovered !== seg ? recovered : _optionalChain([slugHint, 'optionalAccess', _86 => _86.trim, 'call', _87 => _87()]) || identifier;
|
|
2037
2056
|
return { href: `/${seg}/${slug}`, targetPlatform: null };
|
|
2038
2057
|
}
|
|
2039
2058
|
if (externalUrl) return { href: externalUrl, targetPlatform: _nullishCoalesce(targetPlatform, () => ( null)) };
|
|
2040
2059
|
const claimedOwner = _nullishCoalesce(targetPlatform, () => ( primaryPlatformOf(platforms)));
|
|
2041
|
-
const owner = claimedOwner &&
|
|
2042
|
-
const origin = owner ?
|
|
2060
|
+
const owner = claimedOwner && _chunkND7ECICKcjs.byKey.call(void 0, claimedOwner) ? claimedOwner : null;
|
|
2061
|
+
const origin = owner ? _chunkND7ECICKcjs.getPlatformProductionUrl.call(void 0, owner) : opts.contentOrigin;
|
|
2043
2062
|
return {
|
|
2044
|
-
href: `${origin.replace(/\/+$/, "")}/${seg}/${_optionalChain([slugHint, 'optionalAccess',
|
|
2063
|
+
href: `${origin.replace(/\/+$/, "")}/${seg}/${_optionalChain([slugHint, 'optionalAccess', _88 => _88.trim, 'call', _89 => _89()]) || identifier}`,
|
|
2045
2064
|
// Report the owner so `decideNewTab` can compare it against the current
|
|
2046
2065
|
// app instead of falling back to an origin guess (which is unreliable in
|
|
2047
2066
|
// dev, where every platform shares localhost). `null` whenever the href
|
|
@@ -2117,7 +2136,7 @@ function getDocSourceDefaultPath(structure, folderIndexFile = DEFAULT_FOLDER_IND
|
|
|
2117
2136
|
const hasRootIndex = structure.some((node) => node.type === "file" && node.path === folderIndexFile);
|
|
2118
2137
|
if (hasRootIndex) return null;
|
|
2119
2138
|
const firstFolderWithReadme = structure.find((node) => node.type === "folder" && node.hasReadme && !!node.path);
|
|
2120
|
-
return _nullishCoalesce(_optionalChain([firstFolderWithReadme, 'optionalAccess',
|
|
2139
|
+
return _nullishCoalesce(_optionalChain([firstFolderWithReadme, 'optionalAccess', _90 => _90.path]), () => ( null));
|
|
2121
2140
|
}
|
|
2122
2141
|
|
|
2123
2142
|
// src/utils/doc-path-utils.ts
|
|
@@ -2128,7 +2147,7 @@ function pathToNodeId(path) {
|
|
|
2128
2147
|
return path.replace(/[/\s]/g, "-").toLowerCase();
|
|
2129
2148
|
}
|
|
2130
2149
|
function normalizeDocPath(segments, folderIndexFile = DEFAULT_FOLDER_INDEX_FILE) {
|
|
2131
|
-
const lowerPath = (_optionalChain([segments, 'optionalAccess',
|
|
2150
|
+
const lowerPath = (_optionalChain([segments, 'optionalAccess', _91 => _91.join, 'call', _92 => _92("/")]) || "").toLowerCase();
|
|
2132
2151
|
const lowerIndex = folderIndexFile.toLowerCase();
|
|
2133
2152
|
const suffix = `/${lowerIndex}`;
|
|
2134
2153
|
if (lowerPath.endsWith(suffix)) return lowerPath.slice(0, -suffix.length);
|
|
@@ -2220,7 +2239,7 @@ function extractSections(markdown, options = {}) {
|
|
|
2220
2239
|
if (heading.level > opts.maxLevel) continue;
|
|
2221
2240
|
let title = heading.text;
|
|
2222
2241
|
if (opts.stripFormattingMarkers) {
|
|
2223
|
-
title =
|
|
2242
|
+
title = _chunkND7ECICKcjs.stripInlineMarkdown.call(void 0, title).trim();
|
|
2224
2243
|
}
|
|
2225
2244
|
const baseId = _chunkOJZBZH56cjs.slugifyHeadingBase.call(void 0, opts.removeEmojis ? _chunkOJZBZH56cjs.stripHeadingEmojis.call(void 0, title) : title);
|
|
2226
2245
|
const cleanId = baseId || `section-${sections.length + 1}`;
|
|
@@ -2486,7 +2505,7 @@ function isValidPathPattern(pattern) {
|
|
|
2486
2505
|
return pattern.trim().length > 0 && compile(pattern.trim()) !== null;
|
|
2487
2506
|
}
|
|
2488
2507
|
function matchesPathPattern(pathname, pattern) {
|
|
2489
|
-
return _nullishCoalesce(_optionalChain([compile, 'call',
|
|
2508
|
+
return _nullishCoalesce(_optionalChain([compile, 'call', _93 => _93(pattern.trim()), 'optionalAccess', _94 => _94.test, 'call', _95 => _95(pathname)]), () => ( false));
|
|
2490
2509
|
}
|
|
2491
2510
|
function pathMatchesAny(pathname, patterns) {
|
|
2492
2511
|
return (_nullishCoalesce(patterns, () => ( []))).some((pattern) => matchesPathPattern(pathname, pattern));
|
|
@@ -2533,9 +2552,9 @@ function demoClockTimes(seed, options = {}) {
|
|
|
2533
2552
|
// src/components/navigation/mingo-ai-button.tsx
|
|
2534
2553
|
|
|
2535
2554
|
function openAskAi(source, options) {
|
|
2536
|
-
const prompt = _optionalChain([options, 'optionalAccess',
|
|
2555
|
+
const prompt = _optionalChain([options, 'optionalAccess', _96 => _96.prompt, 'optionalAccess', _97 => _97.trim, 'call', _98 => _98()]);
|
|
2537
2556
|
const detail = prompt ? { source: _nullishCoalesce(source, () => ( "")), prompt } : { source: _nullishCoalesce(source, () => ( "")) };
|
|
2538
|
-
window.dispatchEvent(new CustomEvent(
|
|
2557
|
+
window.dispatchEvent(new CustomEvent(_chunkND7ECICKcjs.ASK_AI_OPEN_EVENT, { detail }));
|
|
2539
2558
|
}
|
|
2540
2559
|
function MingoAiButton({
|
|
2541
2560
|
source,
|
|
@@ -2547,15 +2566,15 @@ function MingoAiButton({
|
|
|
2547
2566
|
onClick,
|
|
2548
2567
|
...props
|
|
2549
2568
|
}) {
|
|
2550
|
-
const visitor =
|
|
2569
|
+
const visitor = _chunk6GCXQIUUcjs.useVisitorOs.call(void 0, );
|
|
2551
2570
|
const field = variant === "field";
|
|
2552
2571
|
const inPage = variant === "button";
|
|
2553
|
-
const commandKey = visitor.known &&
|
|
2572
|
+
const commandKey = visitor.known && _chunk6GCXQIUUcjs.usesCommandKey.call(void 0, visitor.os);
|
|
2554
2573
|
const assistant = _chunkEWPR7662cjs.useAssistantRuntime.call(void 0, );
|
|
2555
|
-
const label = _nullishCoalesce(labelProp, () => ( _optionalChain([assistant, 'optionalAccess',
|
|
2556
|
-
const icon = _nullishCoalesce(iconProp, () => ( _optionalChain([assistant, 'optionalAccess',
|
|
2557
|
-
const runtimeOpen = _optionalChain([assistant, 'optionalAccess',
|
|
2558
|
-
const eventSource = _nullishCoalesce(source, () => ( _optionalChain([assistant, 'optionalAccess',
|
|
2574
|
+
const label = _nullishCoalesce(labelProp, () => ( _optionalChain([assistant, 'optionalAccess', _99 => _99.name])));
|
|
2575
|
+
const icon = _nullishCoalesce(iconProp, () => ( _optionalChain([assistant, 'optionalAccess', _100 => _100.icon])));
|
|
2576
|
+
const runtimeOpen = _optionalChain([assistant, 'optionalAccess', _101 => _101.open]);
|
|
2577
|
+
const eventSource = _nullishCoalesce(source, () => ( _optionalChain([assistant, 'optionalAccess', _102 => _102.source])));
|
|
2559
2578
|
const openRef = _react.useRef.call(void 0, () => void 0);
|
|
2560
2579
|
_react.useEffect.call(void 0, () => {
|
|
2561
2580
|
openRef.current = () => runtimeOpen ? runtimeOpen({}) : openAskAi(eventSource);
|
|
@@ -2574,11 +2593,11 @@ function MingoAiButton({
|
|
|
2574
2593
|
}, [shortcutHint, commandKey]);
|
|
2575
2594
|
if (!label) return null;
|
|
2576
2595
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
2577
|
-
|
|
2596
|
+
_chunkAHBTZ7DNcjs.Button,
|
|
2578
2597
|
{
|
|
2579
2598
|
...props,
|
|
2580
2599
|
type: "button",
|
|
2581
|
-
...{ [
|
|
2600
|
+
...{ [_chunkND7ECICKcjs.ASK_AI_TRIGGER_ATTRIBUTE]: "" },
|
|
2582
2601
|
variant: field ? "glyph" : "transparent",
|
|
2583
2602
|
size: "wrap",
|
|
2584
2603
|
font: "regular",
|
|
@@ -2586,9 +2605,9 @@ function MingoAiButton({
|
|
|
2586
2605
|
onClick: (e) => {
|
|
2587
2606
|
if (runtimeOpen) runtimeOpen({});
|
|
2588
2607
|
else openAskAi(eventSource);
|
|
2589
|
-
_optionalChain([onClick, 'optionalCall',
|
|
2608
|
+
_optionalChain([onClick, 'optionalCall', _103 => _103(e)]);
|
|
2590
2609
|
},
|
|
2591
|
-
className:
|
|
2610
|
+
className: _chunk7JWFMAQBcjs.cn.call(void 0,
|
|
2592
2611
|
"group/mingo flex shrink-0 justify-start focus-visible:ring-ods-accent",
|
|
2593
2612
|
field ? (
|
|
2594
2613
|
// A row of the mobile menu like the groups under it: same height,
|
|
@@ -2617,23 +2636,23 @@ function MingoAiButton({
|
|
|
2617
2636
|
icon ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2618
2637
|
"span",
|
|
2619
2638
|
{
|
|
2620
|
-
className:
|
|
2639
|
+
className: _chunk7JWFMAQBcjs.cn.call(void 0,
|
|
2621
2640
|
"relative inline-flex shrink-0 items-center justify-center overflow-hidden rounded-full",
|
|
2622
2641
|
field ? "size-6" : "size-5"
|
|
2623
2642
|
),
|
|
2624
2643
|
children: icon
|
|
2625
2644
|
}
|
|
2626
2645
|
) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2627
|
-
|
|
2646
|
+
_chunk7MV23NNTcjs.AgentMark,
|
|
2628
2647
|
{
|
|
2629
2648
|
agent: "mingo",
|
|
2630
|
-
className:
|
|
2649
|
+
className: _chunk7JWFMAQBcjs.cn.call(void 0, "relative shrink-0 text-ods-text-primary", field ? "size-6" : "size-5")
|
|
2631
2650
|
}
|
|
2632
2651
|
),
|
|
2633
2652
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2634
2653
|
"span",
|
|
2635
2654
|
{
|
|
2636
|
-
className:
|
|
2655
|
+
className: _chunk7JWFMAQBcjs.cn.call(void 0,
|
|
2637
2656
|
"relative whitespace-nowrap",
|
|
2638
2657
|
field ? "min-w-0 flex-1 truncate" : inPage ? "text-h6" : "sr-only text-h6 lg:not-sr-only"
|
|
2639
2658
|
),
|
|
@@ -2647,11 +2666,11 @@ function MingoAiButton({
|
|
|
2647
2666
|
"kbd",
|
|
2648
2667
|
{
|
|
2649
2668
|
"aria-hidden": "true",
|
|
2650
|
-
className:
|
|
2669
|
+
className: _chunk7JWFMAQBcjs.cn.call(void 0,
|
|
2651
2670
|
"relative h-6 min-w-9 items-center justify-center rounded border border-ods-border px-[var(--spacing-system-xxs)] text-h6",
|
|
2652
2671
|
inPage ? "inline-flex" : "hidden lg:inline-flex"
|
|
2653
2672
|
),
|
|
2654
|
-
children: visitor.known ?
|
|
2673
|
+
children: visitor.known ? _chunk6GCXQIUUcjs.shortcutLabel.call(void 0, visitor.os, "K") : ""
|
|
2655
2674
|
}
|
|
2656
2675
|
)
|
|
2657
2676
|
]
|
|
@@ -2669,7 +2688,7 @@ function buildAskPromptsUrl(base, { count, topic, exclude = [] }) {
|
|
|
2669
2688
|
return `${base}${base.includes("?") ? "&" : "?"}${params.toString()}`;
|
|
2670
2689
|
}
|
|
2671
2690
|
function assistantAvailable(assistant) {
|
|
2672
|
-
return !!_optionalChain([assistant, 'optionalAccess',
|
|
2691
|
+
return !!_optionalChain([assistant, 'optionalAccess', _104 => _104.available]);
|
|
2673
2692
|
}
|
|
2674
2693
|
function useAskPrompts({
|
|
2675
2694
|
topic,
|
|
@@ -2680,14 +2699,14 @@ function useAskPrompts({
|
|
|
2680
2699
|
const assistant = _chunkEWPR7662cjs.useAssistantRuntime.call(void 0, );
|
|
2681
2700
|
const base = assistantAvailable(assistant) ? assistant.askPromptsUrl : void 0;
|
|
2682
2701
|
const url = base && enabled ? buildAskPromptsUrl(base, { count, topic, exclude }) : null;
|
|
2683
|
-
const { data, dataUrl, error } =
|
|
2702
|
+
const { data, dataUrl, error } = _chunkSDV335EOcjs.useSelfFetch.call(void 0, url);
|
|
2684
2703
|
const landed = url !== null && (dataUrl === url || error);
|
|
2685
|
-
return { prompts: landed ? _nullishCoalesce(_optionalChain([data, 'optionalAccess',
|
|
2704
|
+
return { prompts: landed ? _nullishCoalesce(_optionalChain([data, 'optionalAccess', _105 => _105.prompts]), () => ( [])) : [], isLoading: !!base && !landed, supported: !!base };
|
|
2686
2705
|
}
|
|
2687
2706
|
function useAssistantOpen(topic, onOpen) {
|
|
2688
2707
|
const assistant = _chunkEWPR7662cjs.useAssistantRuntime.call(void 0, );
|
|
2689
|
-
const runtimeOpen = _optionalChain([assistant, 'optionalAccess',
|
|
2690
|
-
const source = _optionalChain([assistant, 'optionalAccess',
|
|
2708
|
+
const runtimeOpen = _optionalChain([assistant, 'optionalAccess', _106 => _106.open]);
|
|
2709
|
+
const source = _optionalChain([assistant, 'optionalAccess', _107 => _107.source]);
|
|
2691
2710
|
return _react.useCallback.call(void 0,
|
|
2692
2711
|
(request) => {
|
|
2693
2712
|
const full = { ...request, topic };
|
|
@@ -2713,7 +2732,7 @@ function createAskQueue() {
|
|
|
2713
2732
|
},
|
|
2714
2733
|
settle(surface, ids) {
|
|
2715
2734
|
const entry = entries.get(surface);
|
|
2716
|
-
if (!entry || (_nullishCoalesce(_optionalChain([entry, 'access',
|
|
2735
|
+
if (!entry || (_nullishCoalesce(_optionalChain([entry, 'access', _108 => _108.ids, 'optionalAccess', _109 => _109.join, 'call', _110 => _110(",")]), () => ( null))) === (_nullishCoalesce(_optionalChain([ids, 'optionalAccess', _111 => _111.join, 'call', _112 => _112(",")]), () => ( null)))) return;
|
|
2717
2736
|
entry.ids = ids;
|
|
2718
2737
|
publish();
|
|
2719
2738
|
},
|
|
@@ -2742,7 +2761,7 @@ function createAskQueue() {
|
|
|
2742
2761
|
}
|
|
2743
2762
|
var askQueues = /* @__PURE__ */ new Map();
|
|
2744
2763
|
function useAskQueue() {
|
|
2745
|
-
const scope = _nullishCoalesce(_optionalChain([_chunkEWPR7662cjs.useAssistantRuntime.call(void 0, ), 'optionalAccess',
|
|
2764
|
+
const scope = _nullishCoalesce(_optionalChain([_chunkEWPR7662cjs.useAssistantRuntime.call(void 0, ), 'optionalAccess', _113 => _113.askPromptsUrl]), () => ( ""));
|
|
2746
2765
|
let queue = askQueues.get(scope);
|
|
2747
2766
|
if (!queue) {
|
|
2748
2767
|
queue = createAskQueue();
|
|
@@ -2760,7 +2779,7 @@ function useAskSurface({
|
|
|
2760
2779
|
const assistant = _chunkEWPR7662cjs.useAssistantRuntime.call(void 0, );
|
|
2761
2780
|
const surface = _react.useId.call(void 0, );
|
|
2762
2781
|
const queue = useAskQueue();
|
|
2763
|
-
const held =
|
|
2782
|
+
const held = _chunk7JWFMAQBcjs.useLoadingScope.call(void 0, );
|
|
2764
2783
|
const picks = !held && assistantAvailable(assistant) && !!assistant.askPromptsUrl && enabled && exclude !== null;
|
|
2765
2784
|
_react.useLayoutEffect.call(void 0, () => {
|
|
2766
2785
|
if (!picks) return void 0;
|
|
@@ -2788,15 +2807,15 @@ function useAskSurface({
|
|
|
2788
2807
|
}, [queue, surface, settled]);
|
|
2789
2808
|
const open = useAssistantOpen(topic, onOpen);
|
|
2790
2809
|
const scoped = _react.useMemo.call(void 0, () => assistant ? { ...assistant, open } : null, [assistant, open]);
|
|
2791
|
-
const onAsk = _optionalChain([assistant, 'optionalAccess',
|
|
2792
|
-
const reportAsk = _react.useCallback.call(void 0, (prompt) => _optionalChain([onAsk, 'optionalCall',
|
|
2810
|
+
const onAsk = _optionalChain([assistant, 'optionalAccess', _114 => _114.onAsk]);
|
|
2811
|
+
const reportAsk = _react.useCallback.call(void 0, (prompt) => _optionalChain([onAsk, 'optionalCall', _115 => _115({ promptId: prompt.id, topic })]), [onAsk, topic]);
|
|
2793
2812
|
return { assistant, scoped, prompts, isLoading: supported && (!picks || isLoading), supported, open, reportAsk };
|
|
2794
2813
|
}
|
|
2795
2814
|
|
|
2796
2815
|
// src/components/chat/ask-prompts.tsx
|
|
2797
2816
|
|
|
2798
2817
|
function AssistantGlyph({ icon, className }) {
|
|
2799
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
2818
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunk7JWFMAQBcjs.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, _chunk7MV23NNTcjs.AgentMark, { agent: "mingo", className: "size-full" }))) });
|
|
2800
2819
|
}
|
|
2801
2820
|
var slotCount = (count, loading, prompts) => _nullishCoalesce(count, () => ( (loading ? ASK_PROMPTS_DEFAULT_COUNT : prompts.length)));
|
|
2802
2821
|
var SKELETON_LABEL_CH = [26, 22, 30, 24, 20, 28];
|
|
@@ -2812,28 +2831,28 @@ function QuestionChips({
|
|
|
2812
2831
|
onAsk,
|
|
2813
2832
|
slotClassName
|
|
2814
2833
|
}) {
|
|
2815
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2834
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7JWFMAQBcjs.LoadingItems, { count, children: (slot) => {
|
|
2816
2835
|
const prompt = loading ? void 0 : prompts[slot];
|
|
2817
2836
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2818
2837
|
"span",
|
|
2819
2838
|
{
|
|
2820
2839
|
"data-loading-item": true,
|
|
2821
2840
|
className: _nullishCoalesce(slotClassName, () => ( CHIP_SLOT_CLASS)),
|
|
2822
|
-
...prompt ? { [
|
|
2841
|
+
...prompt ? { [_chunkND7ECICKcjs.ASK_AI_TRIGGER_ATTRIBUTE]: "" } : {},
|
|
2823
2842
|
children: (loading || prompt) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2824
|
-
|
|
2843
|
+
_chunkND7ECICKcjs.QuickActionChipButton,
|
|
2825
2844
|
{
|
|
2826
2845
|
loading,
|
|
2827
2846
|
variant: "question",
|
|
2828
|
-
label: _nullishCoalesce(_optionalChain([prompt, 'optionalAccess',
|
|
2829
|
-
icon: _optionalChain([prompt, 'optionalAccess',
|
|
2847
|
+
label: _nullishCoalesce(_optionalChain([prompt, 'optionalAccess', _116 => _116.label]), () => ( "")),
|
|
2848
|
+
icon: _optionalChain([prompt, 'optionalAccess', _117 => _117.icon]),
|
|
2830
2849
|
labelCh: SKELETON_LABEL_CH[slot % SKELETON_LABEL_CH.length],
|
|
2831
2850
|
onSelect: () => {
|
|
2832
2851
|
if (!prompt) return;
|
|
2833
2852
|
const request = { prompt: _nullishCoalesce(prompt.prompt, () => ( prompt.label)) };
|
|
2834
2853
|
if (onOpen) onOpen(request);
|
|
2835
2854
|
else openAskAi(source, request);
|
|
2836
|
-
_optionalChain([onAsk, 'optionalCall',
|
|
2855
|
+
_optionalChain([onAsk, 'optionalCall', _118 => _118(prompt)]);
|
|
2837
2856
|
}
|
|
2838
2857
|
}
|
|
2839
2858
|
)
|
|
@@ -2854,17 +2873,17 @@ function AskPrompts({
|
|
|
2854
2873
|
fadeColor,
|
|
2855
2874
|
className
|
|
2856
2875
|
}) {
|
|
2857
|
-
const loading =
|
|
2876
|
+
const loading = _chunk7JWFMAQBcjs.useLoadingScope.call(void 0, ) || loadingProp;
|
|
2858
2877
|
const count = slotCount(countProp, loading, prompts);
|
|
2859
2878
|
if (!loading && prompts.length === 0) return null;
|
|
2860
2879
|
const end = align === "end";
|
|
2861
2880
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
2862
|
-
|
|
2881
|
+
_chunk3NGJ7NPTcjs.ScrollShadow,
|
|
2863
2882
|
{
|
|
2864
2883
|
axis: "horizontal",
|
|
2865
2884
|
color: fadeColor,
|
|
2866
2885
|
className: "w-full min-w-0 content-md:w-auto",
|
|
2867
|
-
scrollClassName:
|
|
2886
|
+
scrollClassName: _chunk7JWFMAQBcjs.cn.call(void 0, ASK_PROMPTS_ROW_CLASS, end ? "content-md:items-end" : "content-md:items-start", className),
|
|
2868
2887
|
children: [
|
|
2869
2888
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, MingoAiButton, { variant: "button", source, label, icon, className: "shrink-0" }),
|
|
2870
2889
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -2876,7 +2895,7 @@ function AskPrompts({
|
|
|
2876
2895
|
source,
|
|
2877
2896
|
onOpen,
|
|
2878
2897
|
onAsk,
|
|
2879
|
-
slotClassName:
|
|
2898
|
+
slotClassName: _chunk7JWFMAQBcjs.cn.call(void 0, ROW_CHIP_SLOT_CLASS, end && "content-md:justify-end")
|
|
2880
2899
|
}
|
|
2881
2900
|
)
|
|
2882
2901
|
]
|
|
@@ -2897,12 +2916,12 @@ function AskCard({
|
|
|
2897
2916
|
shortcutHint = true,
|
|
2898
2917
|
className
|
|
2899
2918
|
}) {
|
|
2900
|
-
const loading =
|
|
2919
|
+
const loading = _chunk7JWFMAQBcjs.useLoadingScope.call(void 0, ) || loadingProp;
|
|
2901
2920
|
const count = slotCount(countProp, loading, prompts);
|
|
2902
2921
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
2903
2922
|
"div",
|
|
2904
2923
|
{
|
|
2905
|
-
className:
|
|
2924
|
+
className: _chunk7JWFMAQBcjs.cn.call(void 0,
|
|
2906
2925
|
"flex flex-col gap-[var(--spacing-system-m)] rounded-md border border-ods-border bg-ods-card p-[var(--spacing-system-l)]",
|
|
2907
2926
|
className
|
|
2908
2927
|
),
|
|
@@ -2965,7 +2984,7 @@ function AssistantAskPrompts({
|
|
|
2965
2984
|
}) {
|
|
2966
2985
|
const card = variant === "card";
|
|
2967
2986
|
const assistant = _chunkEWPR7662cjs.useAssistantRuntime.call(void 0, );
|
|
2968
|
-
const slots = _nullishCoalesce(_nullishCoalesce(count, () => ( (card ? _optionalChain([assistant, 'optionalAccess',
|
|
2987
|
+
const slots = _nullishCoalesce(_nullishCoalesce(count, () => ( (card ? _optionalChain([assistant, 'optionalAccess', _119 => _119.askCard, 'optionalAccess', _120 => _120.count]) : void 0))), () => ( ASK_PROMPTS_DEFAULT_COUNT));
|
|
2969
2988
|
const ask = useAskSurface({ topic, count: slots, exclude, enabled, onOpen });
|
|
2970
2989
|
if (!assistantAvailable(assistant)) return null;
|
|
2971
2990
|
const shared = {
|
|
@@ -2979,12 +2998,12 @@ function AssistantAskPrompts({
|
|
|
2979
2998
|
if (card) {
|
|
2980
2999
|
const name = _nullishCoalesce(label, () => ( assistant.name));
|
|
2981
3000
|
if (!name) return null;
|
|
2982
|
-
const words2 = _nullishCoalesce(_nullishCoalesce(description, () => ( _optionalChain([assistant, 'access',
|
|
3001
|
+
const words2 = _nullishCoalesce(_nullishCoalesce(description, () => ( _optionalChain([assistant, 'access', _121 => _121.askCard, 'optionalAccess', _122 => _122.description]))), () => ( DEFAULT_ASK_CARD.description));
|
|
2983
3002
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEWPR7662cjs.AssistantRuntimeContext.Provider, { value: ask.scoped, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2984
3003
|
AskCard,
|
|
2985
3004
|
{
|
|
2986
3005
|
...shared,
|
|
2987
|
-
title: fillAssistant(_nullishCoalesce(_nullishCoalesce(title, () => ( _optionalChain([assistant, 'access',
|
|
3006
|
+
title: fillAssistant(_nullishCoalesce(_nullishCoalesce(title, () => ( _optionalChain([assistant, 'access', _123 => _123.askCard, 'optionalAccess', _124 => _124.title]))), () => ( DEFAULT_ASK_CARD.title)), name),
|
|
2988
3007
|
description: words2 ? fillAssistant(words2, name) : void 0,
|
|
2989
3008
|
count: ask.supported ? slots : 0,
|
|
2990
3009
|
label: name,
|
|
@@ -3031,7 +3050,7 @@ function QuickActionMarquee({
|
|
|
3031
3050
|
);
|
|
3032
3051
|
if (items.length === 0) return null;
|
|
3033
3052
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3034
|
-
|
|
3053
|
+
_chunkND7ECICKcjs.QuickActionWall,
|
|
3035
3054
|
{
|
|
3036
3055
|
chips,
|
|
3037
3056
|
mode,
|
|
@@ -3057,32 +3076,32 @@ function QuickActionMarquee({
|
|
|
3057
3076
|
|
|
3058
3077
|
var UNREAD_NOTICE = "You have a new unread message";
|
|
3059
3078
|
var TICKET_ROW_HEIGHT = "h-20";
|
|
3060
|
-
var TICKET_ROW =
|
|
3079
|
+
var TICKET_ROW = _chunk7JWFMAQBcjs.cn.call(void 0, _chunk7JWFMAQBcjs.BUTTON_KIND_CLASS.row, TICKET_ROW_HEIGHT);
|
|
3061
3080
|
var TICKET_ROW_TEXT = "flex min-w-0 flex-1 flex-col justify-center";
|
|
3062
|
-
var TICKET_ROW_CHEVRON = `flex ${
|
|
3081
|
+
var TICKET_ROW_CHEVRON = `flex ${_chunk4WIJI4AKcjs.TILE_SIZE.xl} shrink-0 items-center justify-center rounded-md border`;
|
|
3063
3082
|
var ChatTicketItem = _react.forwardRef.call(void 0,
|
|
3064
3083
|
({ className, ticket, onClick, loading: loadingProp = false, ...props }, ref) => {
|
|
3065
|
-
const loading =
|
|
3084
|
+
const loading = _chunk7JWFMAQBcjs.useLoadingScope.call(void 0, ) || loadingProp;
|
|
3066
3085
|
if (!loading && !ticket) return null;
|
|
3067
|
-
const statusTagProps = ticket ?
|
|
3086
|
+
const statusTagProps = ticket ? _chunk7MV23NNTcjs.resolveStatusTagProps.call(void 0, {
|
|
3068
3087
|
status: ticket.status,
|
|
3069
3088
|
statusKind: ticket.statusKind,
|
|
3070
3089
|
statusName: ticket.statusLabel,
|
|
3071
3090
|
statusColor: ticket.statusColor
|
|
3072
3091
|
}) : null;
|
|
3073
|
-
const isResolved = !!ticket && (ticket.statusKind === "RESOLVED" ||
|
|
3092
|
+
const isResolved = !!ticket && (ticket.statusKind === "RESOLVED" || _chunk7MV23NNTcjs.resolveTicketStatus.call(void 0, ticket.status) === "RESOLVED");
|
|
3074
3093
|
const composedSubtitle = ticket ? [ticket.ticketNumber, ticket.category, ticket.timeAgo].filter(Boolean).join(" \u2022 ") : "";
|
|
3075
|
-
const subtitle = _nullishCoalesce(_optionalChain([ticket, 'optionalAccess',
|
|
3076
|
-
const unread = !!_optionalChain([ticket, 'optionalAccess',
|
|
3094
|
+
const subtitle = _nullishCoalesce(_optionalChain([ticket, 'optionalAccess', _125 => _125.subtitle]), () => ( (_optionalChain([ticket, 'optionalAccess', _126 => _126.unread]) ? UNREAD_NOTICE : composedSubtitle)));
|
|
3095
|
+
const unread = !!_optionalChain([ticket, 'optionalAccess', _127 => _127.unread]);
|
|
3077
3096
|
const content = /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
3078
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className:
|
|
3079
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3080
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3097
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunk7JWFMAQBcjs.cn.call(void 0, TICKET_ROW_TEXT, "text-left"), children: loading || !ticket ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
3098
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4WIJI4AKcjs.TextLineSkeleton, { type: "h3", className: "w-1/2" }),
|
|
3099
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4WIJI4AKcjs.TextLineSkeleton, { type: "h6", className: "w-1/3" })
|
|
3081
3100
|
] }) : /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
3082
3101
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3083
3102
|
"p",
|
|
3084
3103
|
{
|
|
3085
|
-
className:
|
|
3104
|
+
className: _chunk7JWFMAQBcjs.cn.call(void 0, "truncate text-h3", isResolved ? "text-ods-text-secondary" : "text-ods-text-primary"),
|
|
3086
3105
|
title: ticket.title,
|
|
3087
3106
|
children: ticket.title
|
|
3088
3107
|
}
|
|
@@ -3090,14 +3109,14 @@ var ChatTicketItem = _react.forwardRef.call(void 0,
|
|
|
3090
3109
|
subtitle && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3091
3110
|
"p",
|
|
3092
3111
|
{
|
|
3093
|
-
className:
|
|
3112
|
+
className: _chunk7JWFMAQBcjs.cn.call(void 0, "truncate text-h6", unread ? "text-ods-open-yellow" : "text-ods-text-secondary"),
|
|
3094
3113
|
title: subtitle,
|
|
3095
3114
|
children: subtitle
|
|
3096
3115
|
}
|
|
3097
3116
|
)
|
|
3098
3117
|
] }) }),
|
|
3099
|
-
_optionalChain([ticket, 'optionalAccess',
|
|
3100
|
-
|
|
3118
|
+
_optionalChain([ticket, 'optionalAccess', _128 => _128.linkedTaskLabel]) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3119
|
+
_chunk6UKH22NQcjs.Tag,
|
|
3101
3120
|
{
|
|
3102
3121
|
"data-loading-optional": true,
|
|
3103
3122
|
label: ticket.linkedTaskLabel,
|
|
@@ -3106,30 +3125,30 @@ var ChatTicketItem = _react.forwardRef.call(void 0,
|
|
|
3106
3125
|
className: "hidden shrink-0 sm:inline-flex"
|
|
3107
3126
|
}
|
|
3108
3127
|
),
|
|
3109
|
-
loading ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3128
|
+
loading ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7MV23NNTcjs.TicketStatusTag, { status: "", loading: true, className: "w-20" }) : statusTagProps && (statusTagProps.status || statusTagProps.label) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7MV23NNTcjs.TicketStatusTag, { ...statusTagProps }),
|
|
3110
3129
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3111
3130
|
"div",
|
|
3112
3131
|
{
|
|
3113
3132
|
"data-testid": "chat-ticket-item-chevron",
|
|
3114
|
-
className:
|
|
3133
|
+
className: _chunk7JWFMAQBcjs.cn.call(void 0,
|
|
3115
3134
|
TICKET_ROW_CHEVRON,
|
|
3116
3135
|
unread ? "border-ods-open-yellow bg-ods-open-yellow" : "border-ods-border bg-ods-card"
|
|
3117
3136
|
),
|
|
3118
|
-
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.ChevronRight, { className:
|
|
3137
|
+
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.ChevronRight, { className: _chunk7JWFMAQBcjs.cn.call(void 0, "size-6", unread ? "text-ods-text-on-accent" : "text-ods-text-secondary") })
|
|
3119
3138
|
}
|
|
3120
3139
|
)
|
|
3121
3140
|
] });
|
|
3122
3141
|
if (loading || !ticket) {
|
|
3123
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { "aria-hidden": true, className:
|
|
3142
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { "aria-hidden": true, className: _chunk7JWFMAQBcjs.cn.call(void 0, TICKET_ROW, className), ..._chunk7JWFMAQBcjs.loadingItemProps.call(void 0, props), children: content });
|
|
3124
3143
|
}
|
|
3125
3144
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3126
|
-
|
|
3145
|
+
_chunkAHBTZ7DNcjs.Button,
|
|
3127
3146
|
{
|
|
3128
3147
|
variant: "row",
|
|
3129
3148
|
ref,
|
|
3130
3149
|
type: "button",
|
|
3131
|
-
onClick: () => _optionalChain([onClick, 'optionalCall',
|
|
3132
|
-
className:
|
|
3150
|
+
onClick: () => _optionalChain([onClick, 'optionalCall', _129 => _129(ticket.id)]),
|
|
3151
|
+
className: _chunk7JWFMAQBcjs.cn.call(void 0, TICKET_ROW_HEIGHT, className),
|
|
3133
3152
|
...props,
|
|
3134
3153
|
children: content
|
|
3135
3154
|
}
|
|
@@ -3150,23 +3169,23 @@ var ChatTicketList = _react.forwardRef.call(void 0,
|
|
|
3150
3169
|
skeletonCount = CHAT_TICKET_LIST_SKELETON_ROWS,
|
|
3151
3170
|
...props
|
|
3152
3171
|
}, ref) => {
|
|
3153
|
-
const isLoading =
|
|
3154
|
-
const { scrollRef, fadeTop, fadeBottom, update: updateFade } =
|
|
3172
|
+
const isLoading = _chunk7JWFMAQBcjs.useLoadingScope.call(void 0, ) || isLoadingProp;
|
|
3173
|
+
const { scrollRef, fadeTop, fadeBottom, update: updateFade } = _chunk3NGJ7NPTcjs.useScrollFade.call(void 0, );
|
|
3155
3174
|
if (!isLoading && tickets.length === 0) return null;
|
|
3156
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { ref, className:
|
|
3175
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { ref, className: _chunk7JWFMAQBcjs.cn.call(void 0, "flex min-h-0 flex-col gap-2", className), ...props, children: [
|
|
3157
3176
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "shrink-0 text-ods-text-secondary text-h5", children: "Your Chats:" }),
|
|
3158
3177
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
3159
3178
|
"div",
|
|
3160
3179
|
{
|
|
3161
|
-
className:
|
|
3180
|
+
className: _chunk7JWFMAQBcjs.cn.call(void 0,
|
|
3162
3181
|
"relative min-h-0 flex-1 overflow-hidden border-x border-ods-border",
|
|
3163
3182
|
(isLoading || !fadeTop) && "rounded-t-md border-t",
|
|
3164
3183
|
(isLoading || !fadeBottom) && "rounded-b-md border-b"
|
|
3165
3184
|
),
|
|
3166
3185
|
children: [
|
|
3167
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { ref: scrollRef, className: "h-full overflow-y-auto overscroll-contain", onScroll: updateFade, children: isLoading ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3168
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3169
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3186
|
+
/* @__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, _chunk7JWFMAQBcjs.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)) }),
|
|
3187
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3NGJ7NPTcjs.ScrollFadeOverlay, { edge: "top", visible: !isLoading && fadeTop }),
|
|
3188
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3NGJ7NPTcjs.ScrollFadeOverlay, { edge: "bottom", visible: !isLoading && fadeBottom })
|
|
3170
3189
|
]
|
|
3171
3190
|
}
|
|
3172
3191
|
)
|
|
@@ -3181,13 +3200,13 @@ ChatTicketList.displayName = "ChatTicketList";
|
|
|
3181
3200
|
var DIALOG_LIST_ITEM_CLASS = "flex items-center gap-4 overflow-clip px-4 py-3 border-b border-ods-border bg-ods-card";
|
|
3182
3201
|
var DialogListItem = _react.forwardRef.call(void 0,
|
|
3183
3202
|
({ className, dialog, isActive, onDialogSelect, onClick, loading: loadingProp = false, ...props }, ref) => {
|
|
3184
|
-
const loading =
|
|
3203
|
+
const loading = _chunk7JWFMAQBcjs.useLoadingScope.call(void 0, ) || loadingProp;
|
|
3185
3204
|
const handleClick = (e) => {
|
|
3186
|
-
_optionalChain([onDialogSelect, 'optionalCall',
|
|
3187
|
-
_optionalChain([onClick, 'optionalCall',
|
|
3205
|
+
_optionalChain([onDialogSelect, 'optionalCall', _130 => _130(dialog.id)]);
|
|
3206
|
+
_optionalChain([onClick, 'optionalCall', _131 => _131(e)]);
|
|
3188
3207
|
};
|
|
3189
3208
|
const formatTimestamp = (timestamp) => {
|
|
3190
|
-
return
|
|
3209
|
+
return _chunk6UKH22NQcjs.formatDateWithTimezone.call(void 0, timestamp, _chunk6UKH22NQcjs.VIEWER_TIMEZONE, "numericDateTime24h");
|
|
3191
3210
|
};
|
|
3192
3211
|
const unread = loading ? 0 : _nullishCoalesce(dialog.unreadMessagesCount, () => ( 0));
|
|
3193
3212
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
@@ -3195,23 +3214,23 @@ var DialogListItem = _react.forwardRef.call(void 0,
|
|
|
3195
3214
|
{
|
|
3196
3215
|
ref: loading ? void 0 : ref,
|
|
3197
3216
|
"aria-hidden": loading || void 0,
|
|
3198
|
-
className:
|
|
3217
|
+
className: _chunk7JWFMAQBcjs.cn.call(void 0,
|
|
3199
3218
|
DIALOG_LIST_ITEM_CLASS,
|
|
3200
3219
|
!loading && "cursor-pointer transition-colors hover:bg-ods-bg-hover",
|
|
3201
3220
|
!loading && isActive && "border-l-2 border-l-ods-accent bg-ods-bg-hover",
|
|
3202
3221
|
className
|
|
3203
3222
|
),
|
|
3204
3223
|
onClick: loading ? void 0 : handleClick,
|
|
3205
|
-
...loading ?
|
|
3224
|
+
...loading ? _chunk7JWFMAQBcjs.loadingItemProps.call(void 0, props) : props,
|
|
3206
3225
|
children: [
|
|
3207
3226
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex min-w-0 flex-1 flex-col items-start justify-center gap-1", children: loading ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
3208
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3209
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3227
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4WIJI4AKcjs.TextLineSkeleton, { type: "h6", className: "w-full max-w-[200px]" }),
|
|
3228
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4WIJI4AKcjs.TextLineSkeleton, { type: "h6", className: "w-32" })
|
|
3210
3229
|
] }) : /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
3211
3230
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex w-full min-w-0 items-center", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3212
3231
|
"h3",
|
|
3213
3232
|
{
|
|
3214
|
-
className:
|
|
3233
|
+
className: _chunk7JWFMAQBcjs.cn.call(void 0,
|
|
3215
3234
|
"min-w-0 flex-1 text-h6",
|
|
3216
3235
|
isActive ? "text-ods-accent" : "text-ods-text-primary",
|
|
3217
3236
|
"truncate"
|
|
@@ -3231,7 +3250,7 @@ var DialogListItem = _react.forwardRef.call(void 0,
|
|
|
3231
3250
|
DialogListItem.displayName = "DialogListItem";
|
|
3232
3251
|
var LOADING_DIALOG = { id: "", title: "" };
|
|
3233
3252
|
function DialogListItemLoadingPage({ count }) {
|
|
3234
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3253
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7JWFMAQBcjs.LoadingItems, { count, children: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, DialogListItem, { loading: true, dialog: LOADING_DIALOG, "data-loading-item": true }) });
|
|
3235
3254
|
}
|
|
3236
3255
|
var ChatSidebar = _react.forwardRef.call(void 0,
|
|
3237
3256
|
({
|
|
@@ -3246,10 +3265,10 @@ var ChatSidebar = _react.forwardRef.call(void 0,
|
|
|
3246
3265
|
hasNextPage,
|
|
3247
3266
|
isFetchingNextPage,
|
|
3248
3267
|
onLoadMore,
|
|
3249
|
-
pageSize =
|
|
3268
|
+
pageSize = _chunkND7ECICKcjs.CHAT_HISTORY_PAGE_SIZE,
|
|
3250
3269
|
...props
|
|
3251
3270
|
}, ref) => {
|
|
3252
|
-
const loading =
|
|
3271
|
+
const loading = _chunk7JWFMAQBcjs.useLoadingScope.call(void 0, ) || !!isLoading && dialogs.length === 0 && !children;
|
|
3253
3272
|
const showEmptyState = !loading && dialogs.length === 0 && !children;
|
|
3254
3273
|
const scrollContainerRef = _react.useRef.call(void 0, null);
|
|
3255
3274
|
const loadMoreRef = _react.useRef.call(void 0, null);
|
|
@@ -3267,7 +3286,7 @@ var ChatSidebar = _react.forwardRef.call(void 0,
|
|
|
3267
3286
|
(entries) => {
|
|
3268
3287
|
const [entry] = entries;
|
|
3269
3288
|
if (entry.isIntersecting && !isFetchingRef.current) {
|
|
3270
|
-
_optionalChain([onLoadMoreRef, 'access',
|
|
3289
|
+
_optionalChain([onLoadMoreRef, 'access', _132 => _132.current, 'optionalCall', _133 => _133()]);
|
|
3271
3290
|
}
|
|
3272
3291
|
},
|
|
3273
3292
|
{ root: scrollContainer, rootMargin: "100px", threshold: 0.1 }
|
|
@@ -3279,11 +3298,11 @@ var ChatSidebar = _react.forwardRef.call(void 0,
|
|
|
3279
3298
|
"div",
|
|
3280
3299
|
{
|
|
3281
3300
|
ref,
|
|
3282
|
-
className:
|
|
3301
|
+
className: _chunk7JWFMAQBcjs.cn.call(void 0, "flex h-full w-80 flex-col", "bg-ods-bg", "border-r border-ods-border", className),
|
|
3283
3302
|
...props,
|
|
3284
3303
|
children: [
|
|
3285
3304
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex shrink-0 items-center justify-center border-b border-ods-border bg-ods-card px-4 py-1", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3286
|
-
|
|
3305
|
+
_chunkAHBTZ7DNcjs.Button,
|
|
3287
3306
|
{
|
|
3288
3307
|
onClick: onNewChat,
|
|
3289
3308
|
variant: "transparent",
|
|
@@ -3346,12 +3365,12 @@ var ChatTopNavigation = _react.forwardRef.call(void 0,
|
|
|
3346
3365
|
isLoading: isLoadingProp,
|
|
3347
3366
|
...props
|
|
3348
3367
|
}, ref) => {
|
|
3349
|
-
const isLoading =
|
|
3350
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "header", { ref, className:
|
|
3368
|
+
const isLoading = _chunk7JWFMAQBcjs.useLoadingScope.call(void 0, ) || isLoadingProp;
|
|
3369
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "header", { ref, className: _chunk7JWFMAQBcjs.cn.call(void 0, "flex shrink-0 flex-col bg-ods-bg", className), ...props, children: [
|
|
3351
3370
|
before,
|
|
3352
3371
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex h-14 items-stretch divide-x divide-ods-border border-b border-ods-border", children: [
|
|
3353
3372
|
onToggleSidebar && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3354
|
-
|
|
3373
|
+
_chunkAHBTZ7DNcjs.Button,
|
|
3355
3374
|
{
|
|
3356
3375
|
variant: "cell",
|
|
3357
3376
|
type: "button",
|
|
@@ -3364,7 +3383,7 @@ var ChatTopNavigation = _react.forwardRef.call(void 0,
|
|
|
3364
3383
|
),
|
|
3365
3384
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-1 items-center gap-[var(--spacing-system-m)] px-[var(--spacing-system-m)]", children: [
|
|
3366
3385
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3367
|
-
|
|
3386
|
+
_chunk6UKH22NQcjs.SquareAvatar,
|
|
3368
3387
|
{
|
|
3369
3388
|
loading: isLoading,
|
|
3370
3389
|
src: _nullishCoalesce(avatarUrl, () => ( void 0)),
|
|
@@ -3375,8 +3394,8 @@ var ChatTopNavigation = _react.forwardRef.call(void 0,
|
|
|
3375
3394
|
}
|
|
3376
3395
|
),
|
|
3377
3396
|
isLoading ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-1 flex-col", children: [
|
|
3378
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3379
|
-
subtitle !== void 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3397
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4WIJI4AKcjs.TextLineSkeleton, { type: "h3", className: "w-24" }),
|
|
3398
|
+
subtitle !== void 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4WIJI4AKcjs.TextLineSkeleton, { type: "h6", className: "w-32" })
|
|
3380
3399
|
] }) : /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-1 flex-col", children: [
|
|
3381
3400
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "truncate text-ods-text-primary text-h3", children: name }),
|
|
3382
3401
|
subtitle && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "truncate text-ods-text-secondary text-h6", children: subtitle })
|
|
@@ -3384,7 +3403,7 @@ var ChatTopNavigation = _react.forwardRef.call(void 0,
|
|
|
3384
3403
|
actions && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex shrink-0 items-center gap-[var(--spacing-system-xs)]", children: actions })
|
|
3385
3404
|
] }),
|
|
3386
3405
|
onOpenSettings && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3387
|
-
|
|
3406
|
+
_chunkAHBTZ7DNcjs.Button,
|
|
3388
3407
|
{
|
|
3389
3408
|
variant: "cell",
|
|
3390
3409
|
type: "button",
|
|
@@ -3434,7 +3453,7 @@ function OnboardingCarousel({
|
|
|
3434
3453
|
"aria-roledescription": "carousel",
|
|
3435
3454
|
"aria-label": label,
|
|
3436
3455
|
onKeyDown: handleKeyDown,
|
|
3437
|
-
className:
|
|
3456
|
+
className: _chunk7JWFMAQBcjs.cn.call(void 0,
|
|
3438
3457
|
"flex min-h-0 w-full flex-1 flex-col items-center gap-[calc(2*var(--spacing-system-xlf))]",
|
|
3439
3458
|
className
|
|
3440
3459
|
),
|
|
@@ -3456,7 +3475,7 @@ function OnboardingCarousel({
|
|
|
3456
3475
|
"aria-label": `${i + 1} of ${steps.length}`,
|
|
3457
3476
|
"aria-hidden": !isCurrent,
|
|
3458
3477
|
inert: !isCurrent || void 0,
|
|
3459
|
-
className:
|
|
3478
|
+
className: _chunk7JWFMAQBcjs.cn.call(void 0,
|
|
3460
3479
|
"flex w-[var(--onboarding-card-w)] shrink-0 flex-col items-center justify-center gap-[var(--spacing-system-m)] rounded-md border border-ods-border bg-ods-card px-[var(--spacing-system-xl)] py-[calc(2*var(--spacing-system-xlf))] text-center",
|
|
3461
3480
|
i === 0 && "ml-[calc((100%-var(--onboarding-card-w))/2)]"
|
|
3462
3481
|
),
|
|
@@ -3482,12 +3501,12 @@ function OnboardingCarousel({
|
|
|
3482
3501
|
" of ",
|
|
3483
3502
|
steps.length,
|
|
3484
3503
|
": ",
|
|
3485
|
-
_optionalChain([steps, 'access',
|
|
3504
|
+
_optionalChain([steps, 'access', _134 => _134[index], 'optionalAccess', _135 => _135.title])
|
|
3486
3505
|
] }),
|
|
3487
3506
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex items-center", role: "group", "aria-label": "Choose step", children: steps.map((step, i) => {
|
|
3488
3507
|
const isCurrent = i === index;
|
|
3489
3508
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3490
|
-
|
|
3509
|
+
_chunkAHBTZ7DNcjs.Button,
|
|
3491
3510
|
{
|
|
3492
3511
|
variant: "transparent",
|
|
3493
3512
|
"aria-current": isCurrent ? "step" : void 0,
|
|
@@ -3497,7 +3516,7 @@ function OnboardingCarousel({
|
|
|
3497
3516
|
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3498
3517
|
"span",
|
|
3499
3518
|
{
|
|
3500
|
-
className:
|
|
3519
|
+
className: _chunk7JWFMAQBcjs.cn.call(void 0,
|
|
3501
3520
|
"size-1.5 rounded-full transition-colors duration-150",
|
|
3502
3521
|
isCurrent ? "bg-ods-accent" : "bg-ods-text-secondary"
|
|
3503
3522
|
)
|
|
@@ -3510,7 +3529,7 @@ function OnboardingCarousel({
|
|
|
3510
3529
|
] }),
|
|
3511
3530
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-wrap items-center justify-center gap-[var(--spacing-system-m)]", children: [
|
|
3512
3531
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3513
|
-
|
|
3532
|
+
_chunkAHBTZ7DNcjs.Button,
|
|
3514
3533
|
{
|
|
3515
3534
|
variant: "outline",
|
|
3516
3535
|
className: "w-[200px]",
|
|
@@ -3519,7 +3538,7 @@ function OnboardingCarousel({
|
|
|
3519
3538
|
children: previousLabel
|
|
3520
3539
|
}
|
|
3521
3540
|
),
|
|
3522
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3541
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkAHBTZ7DNcjs.Button, { variant: "accent", className: "w-[200px]", onClick: isLast ? onComplete : () => goTo(index + 1), children: isLast ? completeLabel : nextLabel })
|
|
3523
3542
|
] })
|
|
3524
3543
|
]
|
|
3525
3544
|
}
|
|
@@ -3530,7 +3549,7 @@ function OnboardingCarousel({
|
|
|
3530
3549
|
|
|
3531
3550
|
var ADMIN_CONTENT_CARD_GRID_CLASS = "grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-[var(--spacing-system-lf)]";
|
|
3532
3551
|
var GRID_CELL_CLASS = "h-full";
|
|
3533
|
-
var DEFAULT_LOADING_CARD = /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3552
|
+
var DEFAULT_LOADING_CARD = /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFIKIPO4Fcjs.AdminContentCard, { loading: true, reserveRows: true, title: "", actions: true });
|
|
3534
3553
|
function loadingCardOf(loadingCard, Skeleton) {
|
|
3535
3554
|
if (loadingCard !== void 0) return loadingCard;
|
|
3536
3555
|
return Skeleton ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Skeleton, {}) : DEFAULT_LOADING_CARD;
|
|
@@ -3544,7 +3563,7 @@ function AdminContentCardGridSkeleton({
|
|
|
3544
3563
|
label = "Loading",
|
|
3545
3564
|
region = true
|
|
3546
3565
|
}) {
|
|
3547
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3566
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkND7ECICKcjs.LoadingFallback, { label, status: region, className: _chunk7JWFMAQBcjs.cn.call(void 0, ADMIN_CONTENT_CARD_GRID_CLASS, className), children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7JWFMAQBcjs.LoadingItems, { count, children: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: GRID_CELL_CLASS, "data-loading-item": true, children: loadingCardOf(loadingCard, Skeleton) }) }) });
|
|
3548
3567
|
}
|
|
3549
3568
|
function AdminContentCardGrid({
|
|
3550
3569
|
items,
|
|
@@ -3559,8 +3578,8 @@ function AdminContentCardGrid({
|
|
|
3559
3578
|
loadingLabel,
|
|
3560
3579
|
loadingRegion
|
|
3561
3580
|
}) {
|
|
3562
|
-
const gridClass =
|
|
3563
|
-
const loading =
|
|
3581
|
+
const gridClass = _chunk7JWFMAQBcjs.cn.call(void 0, ADMIN_CONTENT_CARD_GRID_CLASS, className);
|
|
3582
|
+
const loading = _chunk7JWFMAQBcjs.useLoadingScope.call(void 0, ) || loadingProp;
|
|
3564
3583
|
if (loading)
|
|
3565
3584
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3566
3585
|
AdminContentCardGridSkeleton,
|
|
@@ -3574,7 +3593,7 @@ function AdminContentCardGrid({
|
|
|
3574
3593
|
);
|
|
3575
3594
|
const slots = (
|
|
3576
3595
|
// loading-standard-ok(ITEM_MARK): invisible pad slots that hold a short page's height, not items of the list
|
|
3577
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3596
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7JWFMAQBcjs.LoadingItems, { count: Math.max(0, pageSize - items.length), children: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunk7JWFMAQBcjs.cn.call(void 0, GRID_CELL_CLASS, "invisible"), children: loadingCardOf(loadingCard, Skeleton) }) })
|
|
3578
3597
|
);
|
|
3579
3598
|
const hasSlots = items.length < pageSize;
|
|
3580
3599
|
if (items.length === 0) {
|
|
@@ -3606,9 +3625,9 @@ function parseChannelFromUrl(url) {
|
|
|
3606
3625
|
return null;
|
|
3607
3626
|
}
|
|
3608
3627
|
function SlackMessageCard({ item, variant = "compact", className, anchorProps }) {
|
|
3609
|
-
if (
|
|
3628
|
+
if (_chunk7JWFMAQBcjs.useLoadingScope.call(void 0, )) return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, SlackMessageCardSkeleton, { variant, className });
|
|
3610
3629
|
const channel = _nullishCoalesce(_nullishCoalesce(item.channel, () => ( parseChannelFromUrl(item.url))), () => ( null));
|
|
3611
|
-
const dateText =
|
|
3630
|
+
const dateText = _chunk6UKH22NQcjs.formatDateUTC.call(void 0, item.dateUpdated, { fallback: "", timezone: "local" });
|
|
3612
3631
|
if (variant === "row") {
|
|
3613
3632
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: `flex min-w-0 items-center gap-3 ${_nullishCoalesce(className, () => ( ""))}`, children: [
|
|
3614
3633
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOWDRZM73cjs.SlackIcon, { className: "h-3.5 w-3.5 shrink-0" }),
|
|
@@ -3634,23 +3653,23 @@ function SlackMessageCard({ item, variant = "compact", className, anchorProps })
|
|
|
3634
3653
|
metaParts.push(
|
|
3635
3654
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "whitespace-nowrap", children: dateText }, "date")
|
|
3636
3655
|
);
|
|
3637
|
-
const href =
|
|
3656
|
+
const href = _chunkYBTORXFYcjs.safeHref.call(void 0, item.url);
|
|
3638
3657
|
const body = /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
3639
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
3640
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className:
|
|
3641
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
3642
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
3643
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
3658
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkYBTORXFYcjs.COMPACT_CARD_ICON_SLOT, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOWDRZM73cjs.SlackIcon, { className: "h-5 w-5" }) }),
|
|
3659
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: _chunkYBTORXFYcjs.COMPACT_CARD_TEXT_COL, children: [
|
|
3660
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkYBTORXFYcjs.COMPACT_CARD_TITLE_ROW, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkYBTORXFYcjs.COMPACT_CARD_TITLE, children: item.title }) }),
|
|
3661
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkYBTORXFYcjs.COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkYBTORXFYcjs.COMPACT_CARD_SUMMARY, children: item.preview || _chunkYBTORXFYcjs.COMPACT_CARD_ROW_FILLER }) }),
|
|
3662
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkYBTORXFYcjs.COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkYBTORXFYcjs.COMPACT_CARD_META_ROW, children: metaParts.length > 0 ? metaParts.map((part, i) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _react2.default.Fragment, { children: [
|
|
3644
3663
|
i > 0 ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "shrink-0 text-ods-text-secondary/40", children: "\xB7" }) : null,
|
|
3645
3664
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "min-w-0 truncate", children: part })
|
|
3646
|
-
] }, i)) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
3665
|
+
] }, i)) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkYBTORXFYcjs.COMPACT_CARD_SUMMARY, children: _chunkYBTORXFYcjs.COMPACT_CARD_ROW_FILLER }) }) })
|
|
3647
3666
|
] }),
|
|
3648
3667
|
href ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "flex h-5 shrink-0 items-center self-start text-ods-text-secondary", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.ExternalLink, { className: "h-3.5 w-3.5" }) }) : null
|
|
3649
3668
|
] });
|
|
3650
3669
|
if (anchorProps) {
|
|
3651
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkV45KLJQPcjs.next_link_default, { ...anchorProps, className: `${
|
|
3670
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkV45KLJQPcjs.next_link_default, { ...anchorProps, className: `${_chunkYBTORXFYcjs.COMPACT_CARD_OUTER} ${_nullishCoalesce(className, () => ( ""))}`, children: body });
|
|
3652
3671
|
}
|
|
3653
|
-
return href ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkV45KLJQPcjs.next_link_default, { href, target: "_blank", rel: "noopener noreferrer", className: `${
|
|
3672
|
+
return href ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkV45KLJQPcjs.next_link_default, { href, target: "_blank", rel: "noopener noreferrer", className: `${_chunkYBTORXFYcjs.COMPACT_CARD_OUTER} ${_nullishCoalesce(className, () => ( ""))}`, children: body }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: `${_chunkYBTORXFYcjs.COMPACT_CARD_OUTER_STATIC} ${_nullishCoalesce(className, () => ( ""))}`, "aria-label": "No link available", children: body });
|
|
3654
3673
|
}
|
|
3655
3674
|
function SlackMessageCardSkeleton({
|
|
3656
3675
|
variant = "compact",
|
|
@@ -3658,11 +3677,11 @@ function SlackMessageCardSkeleton({
|
|
|
3658
3677
|
}) {
|
|
3659
3678
|
if (variant === "row") {
|
|
3660
3679
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3661
|
-
|
|
3680
|
+
_chunkYBTORXFYcjs.ActivityRowSkeleton,
|
|
3662
3681
|
{
|
|
3663
3682
|
lead: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
3664
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3665
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3683
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4WIJI4AKcjs.UnifiedSkeleton, { className: "h-3.5 w-3.5 shrink-0 rounded" }),
|
|
3684
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4WIJI4AKcjs.UnifiedSkeleton, { className: "h-3 w-32 shrink-0 rounded" })
|
|
3666
3685
|
] }),
|
|
3667
3686
|
trailingWidths: ["w-24", "w-20"],
|
|
3668
3687
|
className
|
|
@@ -3670,7 +3689,7 @@ function SlackMessageCardSkeleton({
|
|
|
3670
3689
|
);
|
|
3671
3690
|
}
|
|
3672
3691
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3673
|
-
|
|
3692
|
+
_chunkYBTORXFYcjs.CompactCardSkeleton,
|
|
3674
3693
|
{
|
|
3675
3694
|
titleWidth: "w-2/3",
|
|
3676
3695
|
rows: [{ width: "w-5/6" }, { width: "w-1/3" }],
|
|
@@ -3703,15 +3722,15 @@ function statusScheme(status) {
|
|
|
3703
3722
|
return "default";
|
|
3704
3723
|
}
|
|
3705
3724
|
function HubspotTicketCard({ item, variant = "compact", className, anchorProps }) {
|
|
3706
|
-
if (
|
|
3725
|
+
if (_chunk7JWFMAQBcjs.useLoadingScope.call(void 0, )) return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, HubspotTicketCardSkeleton, { variant, className });
|
|
3707
3726
|
const statusText = _nullishCoalesce(item.statusLabel, () => ( formatToken(item.status)));
|
|
3708
3727
|
const priorityText = formatToken(item.priority);
|
|
3709
|
-
const dateText =
|
|
3728
|
+
const dateText = _chunk6UKH22NQcjs.formatDateUTC.call(void 0, item.dateUpdated, { fallback: "", timezone: "local" });
|
|
3710
3729
|
if (variant === "row") {
|
|
3711
3730
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: `flex min-w-0 items-center gap-3 ${_nullishCoalesce(className, () => ( ""))}`, children: [
|
|
3712
3731
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "max-w-[260px] shrink-0 truncate text-ods-text-primary text-h6", children: item.title }),
|
|
3713
3732
|
item.preview ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "min-w-0 flex-1 truncate text-ods-text-secondary text-h6", children: item.preview }) : null,
|
|
3714
|
-
statusText ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3733
|
+
statusText ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkYBTORXFYcjs.StatusBadge, { text: statusText, variant: "button", colorScheme: statusScheme(item.status) }) : null,
|
|
3715
3734
|
dateText ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "w-24 shrink-0 text-right text-ods-text-secondary text-h6", children: dateText }) : null
|
|
3716
3735
|
] });
|
|
3717
3736
|
}
|
|
@@ -3725,13 +3744,13 @@ function HubspotTicketCard({ item, variant = "compact", className, anchorProps }
|
|
|
3725
3744
|
metaParts.push(
|
|
3726
3745
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "whitespace-nowrap", children: dateText }, "date")
|
|
3727
3746
|
);
|
|
3728
|
-
const href =
|
|
3747
|
+
const href = _chunkYBTORXFYcjs.safeHref.call(void 0, item.url);
|
|
3729
3748
|
const body = /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
3730
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className:
|
|
3749
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: _chunkYBTORXFYcjs.COMPACT_CARD_TEXT_COL, children: [
|
|
3731
3750
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "flex min-w-0 flex-wrap items-center gap-1.5", children: [
|
|
3732
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: `${
|
|
3751
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: `${_chunkYBTORXFYcjs.COMPACT_CARD_TITLE} min-w-0 shrink`, children: item.title }),
|
|
3733
3752
|
priorityText ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3734
|
-
|
|
3753
|
+
_chunkYBTORXFYcjs.StatusBadge,
|
|
3735
3754
|
{
|
|
3736
3755
|
text: priorityText,
|
|
3737
3756
|
variant: "button",
|
|
@@ -3740,7 +3759,7 @@ function HubspotTicketCard({ item, variant = "compact", className, anchorProps }
|
|
|
3740
3759
|
}
|
|
3741
3760
|
) : null,
|
|
3742
3761
|
statusText ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3743
|
-
|
|
3762
|
+
_chunkYBTORXFYcjs.StatusBadge,
|
|
3744
3763
|
{
|
|
3745
3764
|
text: statusText,
|
|
3746
3765
|
variant: "button",
|
|
@@ -3754,7 +3773,7 @@ function HubspotTicketCard({ item, variant = "compact", className, anchorProps }
|
|
|
3754
3773
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "min-w-0 truncate", children: item.customerEmail })
|
|
3755
3774
|
] }) : null,
|
|
3756
3775
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "flex min-w-0", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "line-clamp-4 whitespace-pre-wrap break-words text-ods-text-secondary text-h6", children: item.preview || /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "italic text-ods-text-secondary/60", children: "No description provided." }) }) }),
|
|
3757
|
-
metaParts.length > 0 ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
3776
|
+
metaParts.length > 0 ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkYBTORXFYcjs.COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkYBTORXFYcjs.COMPACT_CARD_META_ROW, children: metaParts.map((part, i) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _react2.default.Fragment, { children: [
|
|
3758
3777
|
i > 0 ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "shrink-0 text-ods-text-secondary/40", children: "\xB7" }) : null,
|
|
3759
3778
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "min-w-0 truncate", children: part })
|
|
3760
3779
|
] }, i)) }) }) : null
|
|
@@ -3762,9 +3781,9 @@ function HubspotTicketCard({ item, variant = "compact", className, anchorProps }
|
|
|
3762
3781
|
href ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "flex h-5 shrink-0 items-center self-start text-ods-text-secondary", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.ExternalLink, { className: "h-3.5 w-3.5" }) }) : null
|
|
3763
3782
|
] });
|
|
3764
3783
|
if (anchorProps) {
|
|
3765
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkV45KLJQPcjs.next_link_default, { ...anchorProps, className: `${
|
|
3784
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkV45KLJQPcjs.next_link_default, { ...anchorProps, className: `${_chunkYBTORXFYcjs.COMPACT_CARD_OUTER} ${_nullishCoalesce(className, () => ( ""))}`, children: body });
|
|
3766
3785
|
}
|
|
3767
|
-
return href ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkV45KLJQPcjs.next_link_default, { href, target: "_blank", rel: "noopener noreferrer", className: `${
|
|
3786
|
+
return href ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkV45KLJQPcjs.next_link_default, { href, target: "_blank", rel: "noopener noreferrer", className: `${_chunkYBTORXFYcjs.COMPACT_CARD_OUTER} ${_nullishCoalesce(className, () => ( ""))}`, children: body }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: `${_chunkYBTORXFYcjs.COMPACT_CARD_OUTER_STATIC} ${_nullishCoalesce(className, () => ( ""))}`, "aria-label": "No link available", children: body });
|
|
3768
3787
|
}
|
|
3769
3788
|
function HubspotTicketCardSkeleton({
|
|
3770
3789
|
variant = "compact",
|
|
@@ -3772,14 +3791,14 @@ function HubspotTicketCardSkeleton({
|
|
|
3772
3791
|
}) {
|
|
3773
3792
|
if (variant === "row") {
|
|
3774
3793
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: `flex min-w-0 items-center gap-3 ${_nullishCoalesce(className, () => ( ""))}`, children: [
|
|
3775
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3776
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3777
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3778
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3794
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4WIJI4AKcjs.UnifiedSkeleton, { className: "h-3 w-40 shrink-0 rounded" }),
|
|
3795
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4WIJI4AKcjs.UnifiedSkeleton, { className: "h-3 w-2/3 flex-1 rounded" }),
|
|
3796
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4WIJI4AKcjs.UnifiedSkeleton, { className: "h-3 w-16 shrink-0 rounded" }),
|
|
3797
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4WIJI4AKcjs.UnifiedSkeleton, { className: "h-3 w-20 shrink-0 rounded" })
|
|
3779
3798
|
] });
|
|
3780
3799
|
}
|
|
3781
3800
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3782
|
-
|
|
3801
|
+
_chunkYBTORXFYcjs.CompactCardSkeleton,
|
|
3783
3802
|
{
|
|
3784
3803
|
slot: false,
|
|
3785
3804
|
titleWidth: "w-2/3",
|
|
@@ -3795,12 +3814,12 @@ function HubspotTicketCardSkeleton({
|
|
|
3795
3814
|
|
|
3796
3815
|
|
|
3797
3816
|
function DataRoomDocCard({ item, className, badgeText, anchorProps }) {
|
|
3798
|
-
if (
|
|
3817
|
+
if (_chunk7JWFMAQBcjs.useLoadingScope.call(void 0, )) return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, DataRoomDocCardSkeleton, { className });
|
|
3799
3818
|
const body = /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
3800
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className:
|
|
3819
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: _chunkYBTORXFYcjs.COMPACT_CARD_TEXT_COL, children: [
|
|
3801
3820
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "flex min-w-0 flex-wrap items-center gap-1.5", children: [
|
|
3802
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: `${
|
|
3803
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3821
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: `${_chunkYBTORXFYcjs.COMPACT_CARD_TITLE} min-w-0 shrink`, children: item.title }),
|
|
3822
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkYBTORXFYcjs.StatusBadge, { text: badgeText, variant: "button", colorScheme: "cyan", className: "shrink-0" })
|
|
3804
3823
|
] }),
|
|
3805
3824
|
item.path ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "flex min-w-0 items-center gap-1 text-ods-text-secondary text-h6", children: [
|
|
3806
3825
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "shrink-0 text-ods-text-secondary/70", children: "Path:" }),
|
|
@@ -3808,16 +3827,16 @@ function DataRoomDocCard({ item, className, badgeText, anchorProps }) {
|
|
|
3808
3827
|
] }) : null,
|
|
3809
3828
|
item.preview ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "flex min-w-0", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "line-clamp-2 whitespace-pre-wrap break-words text-ods-text-secondary text-h6", children: item.preview }) }) : null
|
|
3810
3829
|
] }),
|
|
3811
|
-
_optionalChain([anchorProps, 'optionalAccess',
|
|
3830
|
+
_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
|
|
3812
3831
|
] });
|
|
3813
3832
|
if (!anchorProps) {
|
|
3814
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: `${
|
|
3833
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: `${_chunkYBTORXFYcjs.COMPACT_CARD_OUTER_STATIC} ${_nullishCoalesce(className, () => ( ""))}`, "aria-label": "No link available", children: body });
|
|
3815
3834
|
}
|
|
3816
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkV45KLJQPcjs.next_link_default, { ...anchorProps, className: `${
|
|
3835
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkV45KLJQPcjs.next_link_default, { ...anchorProps, className: `${_chunkYBTORXFYcjs.COMPACT_CARD_OUTER} ${_nullishCoalesce(className, () => ( ""))}`, children: body });
|
|
3817
3836
|
}
|
|
3818
3837
|
function DataRoomDocCardSkeleton({ className }) {
|
|
3819
3838
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3820
|
-
|
|
3839
|
+
_chunkYBTORXFYcjs.CompactCardSkeleton,
|
|
3821
3840
|
{
|
|
3822
3841
|
slot: false,
|
|
3823
3842
|
titleWidth: "w-2/3",
|
|
@@ -3833,42 +3852,42 @@ function DataRoomDocCardSkeleton({ className }) {
|
|
|
3833
3852
|
|
|
3834
3853
|
|
|
3835
3854
|
function CampaignCardAdmin({ campaign, className, anchorProps }) {
|
|
3836
|
-
if (
|
|
3837
|
-
const goalsCount = _optionalChain([campaign, 'access',
|
|
3855
|
+
if (_chunk7JWFMAQBcjs.useLoadingScope.call(void 0, )) return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, CampaignCardAdminSkeleton, { className });
|
|
3856
|
+
const goalsCount = _optionalChain([campaign, 'access', _137 => _137.goals, 'optionalAccess', _138 => _138.length]) || 0;
|
|
3838
3857
|
const innerChildren = /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
3839
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
3840
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className:
|
|
3841
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
3842
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
3843
|
-
campaign.start_date ?
|
|
3858
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkYBTORXFYcjs.COMPACT_CARD_ICON_SLOT, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.Megaphone, { className: "h-5 w-5" }) }),
|
|
3859
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: _chunkYBTORXFYcjs.COMPACT_CARD_TEXT_COL, children: [
|
|
3860
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkYBTORXFYcjs.COMPACT_CARD_TITLE_ROW, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkYBTORXFYcjs.COMPACT_CARD_TITLE, children: campaign.name }) }),
|
|
3861
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkYBTORXFYcjs.COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkYBTORXFYcjs.COMPACT_CARD_SUBTITLE, children: [
|
|
3862
|
+
campaign.start_date ? _chunkFIKIPO4Fcjs.formatDateShort.call(void 0, campaign.start_date) : null,
|
|
3844
3863
|
goalsCount > 0 ? `${goalsCount} goal${goalsCount !== 1 ? "s" : ""}` : null,
|
|
3845
3864
|
"Marketing campaign"
|
|
3846
3865
|
].filter(Boolean).join(" \xB7 ") }) }),
|
|
3847
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
3866
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkYBTORXFYcjs.COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkYBTORXFYcjs.COMPACT_CARD_SUMMARY, children: campaign.description || _chunkYBTORXFYcjs.COMPACT_CARD_ROW_FILLER }) })
|
|
3848
3867
|
] })
|
|
3849
3868
|
] });
|
|
3850
3869
|
if (anchorProps) {
|
|
3851
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkV45KLJQPcjs.next_link_default, { ...anchorProps, className: `${
|
|
3870
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkV45KLJQPcjs.next_link_default, { ...anchorProps, className: `${_chunkYBTORXFYcjs.COMPACT_CARD_OUTER} ${_nullishCoalesce(className, () => ( ""))}`, children: innerChildren });
|
|
3852
3871
|
}
|
|
3853
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: `${
|
|
3872
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: `${_chunkYBTORXFYcjs.COMPACT_CARD_OUTER_STATIC} ${_nullishCoalesce(className, () => ( ""))}`, "aria-label": "No link available", children: innerChildren });
|
|
3854
3873
|
}
|
|
3855
3874
|
function CampaignCardAdminSkeleton({ className }) {
|
|
3856
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3875
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkYBTORXFYcjs.CompactCardSkeleton, { rows: [{ width: "w-1/2" }, { width: "w-11/12" }], className });
|
|
3857
3876
|
}
|
|
3858
3877
|
|
|
3859
3878
|
// src/components/chat/entity-cards/generic-entity-card.tsx
|
|
3860
3879
|
|
|
3861
3880
|
|
|
3862
3881
|
function GenericEntityCard({ item, className, anchorProps }) {
|
|
3863
|
-
if (
|
|
3864
|
-
const href =
|
|
3865
|
-
const dateText =
|
|
3882
|
+
if (_chunk7JWFMAQBcjs.useLoadingScope.call(void 0, )) return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, GenericEntityCardSkeleton, { className });
|
|
3883
|
+
const href = _chunkYBTORXFYcjs.safeHref.call(void 0, item.url);
|
|
3884
|
+
const dateText = _chunk6UKH22NQcjs.formatDateUTC.call(void 0, item.dateUpdated, { fallback: "", timezone: "local" });
|
|
3866
3885
|
const body = /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
3867
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className:
|
|
3886
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: _chunkYBTORXFYcjs.COMPACT_CARD_TEXT_COL, children: [
|
|
3868
3887
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "flex min-w-0 flex-wrap items-center gap-1.5", children: [
|
|
3869
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: `${
|
|
3888
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: `${_chunkYBTORXFYcjs.COMPACT_CARD_TITLE} min-w-0 shrink`, children: item.title }),
|
|
3870
3889
|
item.badge ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3871
|
-
|
|
3890
|
+
_chunkYBTORXFYcjs.StatusBadge,
|
|
3872
3891
|
{
|
|
3873
3892
|
text: item.badge.text,
|
|
3874
3893
|
variant: "button",
|
|
@@ -3886,18 +3905,18 @@ function GenericEntityCard({ item, className, anchorProps }) {
|
|
|
3886
3905
|
] }),
|
|
3887
3906
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "truncate font-medium text-ods-text-primary", children: f.value })
|
|
3888
3907
|
] }, i)) }) : null,
|
|
3889
|
-
dateText ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
3908
|
+
dateText ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkYBTORXFYcjs.COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkYBTORXFYcjs.COMPACT_CARD_META_ROW, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "whitespace-nowrap", children: dateText }) }) }) : null
|
|
3890
3909
|
] }),
|
|
3891
3910
|
href ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "flex h-5 shrink-0 items-center self-start text-ods-text-secondary", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.ExternalLink, { className: "h-3.5 w-3.5" }) }) : null
|
|
3892
3911
|
] });
|
|
3893
3912
|
if (anchorProps) {
|
|
3894
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkV45KLJQPcjs.next_link_default, { ...anchorProps, className: `${
|
|
3913
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkV45KLJQPcjs.next_link_default, { ...anchorProps, className: `${_chunkYBTORXFYcjs.COMPACT_CARD_OUTER} ${_nullishCoalesce(className, () => ( ""))}`, children: body });
|
|
3895
3914
|
}
|
|
3896
|
-
return href ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkV45KLJQPcjs.next_link_default, { href, className: `${
|
|
3915
|
+
return href ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkV45KLJQPcjs.next_link_default, { href, className: `${_chunkYBTORXFYcjs.COMPACT_CARD_OUTER} ${_nullishCoalesce(className, () => ( ""))}`, children: body }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: `${_chunkYBTORXFYcjs.COMPACT_CARD_OUTER_STATIC} ${_nullishCoalesce(className, () => ( ""))}`, "aria-label": "No link available", children: body });
|
|
3897
3916
|
}
|
|
3898
3917
|
function GenericEntityCardSkeleton({ className }) {
|
|
3899
3918
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3900
|
-
|
|
3919
|
+
_chunkYBTORXFYcjs.CompactCardSkeleton,
|
|
3901
3920
|
{
|
|
3902
3921
|
slot: false,
|
|
3903
3922
|
titleWidth: "w-2/3",
|
|
@@ -3927,7 +3946,7 @@ var NETWORK_CONFIG = {
|
|
|
3927
3946
|
|
|
3928
3947
|
var EMPTY_FRAME = { messages: [], phase: "idle", typing: false, delayMs: 0 };
|
|
3929
3948
|
function prefersReducedMotion() {
|
|
3930
|
-
return typeof window !== "undefined" && _optionalChain([window, 'access',
|
|
3949
|
+
return typeof window !== "undefined" && _optionalChain([window, 'access', _139 => _139.matchMedia, 'optionalCall', _140 => _140("(prefers-reduced-motion: reduce)"), 'access', _141 => _141.matches]) === true;
|
|
3931
3950
|
}
|
|
3932
3951
|
function useScriptedStream(frames, resetKey, enabled = true) {
|
|
3933
3952
|
const [index, setIndex] = _react.useState.call(void 0, 0);
|
|
@@ -3938,7 +3957,7 @@ function useScriptedStream(frames, resetKey, enabled = true) {
|
|
|
3938
3957
|
setIndex(0);
|
|
3939
3958
|
}
|
|
3940
3959
|
_react.useEffect.call(void 0, () => {
|
|
3941
|
-
const mq = _optionalChain([window, 'access',
|
|
3960
|
+
const mq = _optionalChain([window, 'access', _142 => _142.matchMedia, 'optionalCall', _143 => _143("(prefers-reduced-motion: reduce)")]);
|
|
3942
3961
|
const sync = () => setReducedMotion(mq ? mq.matches : prefersReducedMotion());
|
|
3943
3962
|
sync();
|
|
3944
3963
|
if (!mq) return void 0;
|
|
@@ -4083,7 +4102,7 @@ function useJetStreamDialogSubscription({
|
|
|
4083
4102
|
const lifecycle = _chunkKHKPLOU4cjs.startConnectionLifecycle.call(void 0, {
|
|
4084
4103
|
conn: sharedConn,
|
|
4085
4104
|
wsUrl,
|
|
4086
|
-
onBeforeReconnect: () => _optionalChain([onBeforeReconnectRef, 'access',
|
|
4105
|
+
onBeforeReconnect: () => _optionalChain([onBeforeReconnectRef, 'access', _144 => _144.current, 'optionalCall', _145 => _145()]),
|
|
4087
4106
|
backoff: reconnectionBackoffRef.current,
|
|
4088
4107
|
getFreshUrl: () => getNatsWsUrlRef.current(),
|
|
4089
4108
|
// JetStream emits 'error' for protocol-level failures (e.g. -ERR Permissions
|
|
@@ -4098,7 +4117,7 @@ function useJetStreamDialogSubscription({
|
|
|
4098
4117
|
setReconnectionCount((c) => c + 1);
|
|
4099
4118
|
}
|
|
4100
4119
|
hadConnectionBeforeRef.current = true;
|
|
4101
|
-
_optionalChain([onConnectRef, 'access',
|
|
4120
|
+
_optionalChain([onConnectRef, 'access', _146 => _146.current, 'optionalCall', _147 => _147()]);
|
|
4102
4121
|
}
|
|
4103
4122
|
if (status === "error") {
|
|
4104
4123
|
console.warn("[JetStream] NATS protocol error:", evt.data);
|
|
@@ -4108,7 +4127,7 @@ function useJetStreamDialogSubscription({
|
|
|
4108
4127
|
setIsConnected(false);
|
|
4109
4128
|
setIsSubscribed(false);
|
|
4110
4129
|
tearDownSubscription();
|
|
4111
|
-
_optionalChain([onDisconnectRef, 'access',
|
|
4130
|
+
_optionalChain([onDisconnectRef, 'access', _148 => _148.current, 'optionalCall', _149 => _149()]);
|
|
4112
4131
|
}
|
|
4113
4132
|
}
|
|
4114
4133
|
});
|
|
@@ -4252,7 +4271,7 @@ function useJetStreamDialogSubscription({
|
|
|
4252
4271
|
subscriptionRef.current = handle;
|
|
4253
4272
|
setIsSubscribed(true);
|
|
4254
4273
|
try {
|
|
4255
|
-
_optionalChain([onSubscribedRef, 'access',
|
|
4274
|
+
_optionalChain([onSubscribedRef, 'access', _150 => _150.current, 'optionalCall', _151 => _151()]);
|
|
4256
4275
|
} catch (e) {
|
|
4257
4276
|
console.warn("[JetStream] onSubscribed threw:", e);
|
|
4258
4277
|
}
|
|
@@ -4364,7 +4383,7 @@ function useChat({
|
|
|
4364
4383
|
onMessagesChangeRef.current = onMessagesChange;
|
|
4365
4384
|
});
|
|
4366
4385
|
_react.useEffect.call(void 0, () => {
|
|
4367
|
-
_optionalChain([onMessagesChangeRef, 'access',
|
|
4386
|
+
_optionalChain([onMessagesChangeRef, 'access', _152 => _152.current, 'optionalCall', _153 => _153(messages)]);
|
|
4368
4387
|
}, [messages]);
|
|
4369
4388
|
const {
|
|
4370
4389
|
streamMessage,
|
|
@@ -4401,7 +4420,7 @@ function useChat({
|
|
|
4401
4420
|
name: "You",
|
|
4402
4421
|
content: text,
|
|
4403
4422
|
timestamp: /* @__PURE__ */ new Date(),
|
|
4404
|
-
..._optionalChain([options, 'optionalAccess',
|
|
4423
|
+
..._optionalChain([options, 'optionalAccess', _154 => _154.hidden]) ? { hidden: true } : {}
|
|
4405
4424
|
};
|
|
4406
4425
|
addMessage(userMessage);
|
|
4407
4426
|
setIsTyping(true);
|
|
@@ -4632,19 +4651,19 @@ function turnRequestKeys(content) {
|
|
|
4632
4651
|
if (!Array.isArray(content)) return keys;
|
|
4633
4652
|
for (const seg of content) {
|
|
4634
4653
|
if (seg.type === "tool_execution") {
|
|
4635
|
-
const id = _optionalChain([seg, 'access',
|
|
4654
|
+
const id = _optionalChain([seg, 'access', _155 => _155.data, 'optionalAccess', _156 => _156.toolExecutionRequestId]);
|
|
4636
4655
|
if (id) keys.add(id);
|
|
4637
4656
|
} else if (seg.type === "approval_request") {
|
|
4638
|
-
const id = _optionalChain([seg, 'access',
|
|
4657
|
+
const id = _optionalChain([seg, 'access', _157 => _157.data, 'optionalAccess', _158 => _158.requestId]);
|
|
4639
4658
|
if (id) keys.add(id);
|
|
4640
4659
|
} else if (seg.type === "escalation_offer") {
|
|
4641
|
-
const id = _optionalChain([seg, 'access',
|
|
4660
|
+
const id = _optionalChain([seg, 'access', _159 => _159.data, 'optionalAccess', _160 => _160.offerId]);
|
|
4642
4661
|
if (id) keys.add(id);
|
|
4643
4662
|
} else if (seg.type === "approval_batch") {
|
|
4644
4663
|
const data = seg.data;
|
|
4645
|
-
if (_optionalChain([data, 'optionalAccess',
|
|
4646
|
-
for (const call of _nullishCoalesce(_optionalChain([data, 'optionalAccess',
|
|
4647
|
-
if (_optionalChain([call, 'optionalAccess',
|
|
4664
|
+
if (_optionalChain([data, 'optionalAccess', _161 => _161.approvalRequestId])) keys.add(data.approvalRequestId);
|
|
4665
|
+
for (const call of _nullishCoalesce(_optionalChain([data, 'optionalAccess', _162 => _162.toolCalls]), () => ( []))) {
|
|
4666
|
+
if (_optionalChain([call, 'optionalAccess', _163 => _163.toolExecutionRequestId])) keys.add(call.toolExecutionRequestId);
|
|
4648
4667
|
}
|
|
4649
4668
|
}
|
|
4650
4669
|
}
|
|
@@ -4748,18 +4767,18 @@ function mergeHistoryWithRealtime(input) {
|
|
|
4748
4767
|
}
|
|
4749
4768
|
}
|
|
4750
4769
|
const trailing = processedHistory[processedHistory.length - 1];
|
|
4751
|
-
const historyTrailingAssistant = _optionalChain([trailing, 'optionalAccess',
|
|
4752
|
-
const historyBatchId = historyTrailingAssistant && Array.isArray(historyTrailingAssistant.content) ? _nullishCoalesce(_optionalChain([historyTrailingAssistant, 'access',
|
|
4770
|
+
const historyTrailingAssistant = _optionalChain([trailing, 'optionalAccess', _164 => _164.role]) === "assistant" ? trailing : null;
|
|
4771
|
+
const historyBatchId = historyTrailingAssistant && Array.isArray(historyTrailingAssistant.content) ? _nullishCoalesce(_optionalChain([historyTrailingAssistant, 'access', _165 => _165.content, 'access', _166 => _166.find, 'call', _167 => _167((s) => s.type === "approval_batch"), 'optionalAccess', _168 => _168.data, 'optionalAccess', _169 => _169.approvalRequestId]), () => ( null)) : null;
|
|
4753
4772
|
let processedToUse = processedHistory;
|
|
4754
4773
|
const pinnedSyntheticIds = /* @__PURE__ */ new Set();
|
|
4755
4774
|
const droppedSyntheticIds = /* @__PURE__ */ new Set();
|
|
4756
4775
|
if (historyBatchId) {
|
|
4757
4776
|
const batchTwins = existingMessages.filter(
|
|
4758
|
-
(m) => m.role === "assistant" && Array.isArray(m.content) && m.content.some((s) => s.type === "approval_batch" && _optionalChain([s, 'access',
|
|
4777
|
+
(m) => m.role === "assistant" && Array.isArray(m.content) && m.content.some((s) => s.type === "approval_batch" && _optionalChain([s, 'access', _170 => _170.data, 'optionalAccess', _171 => _171.approvalRequestId]) === historyBatchId)
|
|
4759
4778
|
);
|
|
4760
4779
|
const existingWithSameBatch = _nullishCoalesce(batchTwins.find((m) => m.id === streamingMessageId), () => ( batchTwins[batchTwins.length - 1]));
|
|
4761
4780
|
if (existingWithSameBatch && Array.isArray(existingWithSameBatch.content)) {
|
|
4762
|
-
const histSize = Array.isArray(_optionalChain([historyTrailingAssistant, 'optionalAccess',
|
|
4781
|
+
const histSize = Array.isArray(_optionalChain([historyTrailingAssistant, 'optionalAccess', _172 => _172.content])) ? historyTrailingAssistant.content.length : 0;
|
|
4763
4782
|
const realtimeSize = existingWithSameBatch.content.length;
|
|
4764
4783
|
if (existingWithSameBatch.id === streamingMessageId || realtimeSize > histSize) {
|
|
4765
4784
|
processedToUse = processedHistory.slice(0, -1);
|
|
@@ -4792,9 +4811,9 @@ function mergeHistoryWithRealtime(input) {
|
|
|
4792
4811
|
const trailingAssistantText = lastProcessed && lastProcessed.role === "assistant" ? assistantAnswerText(lastProcessed.content) : "";
|
|
4793
4812
|
const windowSignals = collectTwinSignals(processedToUse);
|
|
4794
4813
|
const seenUserSyntheticByContent = /* @__PURE__ */ new Map();
|
|
4795
|
-
const isInWindow = (m) => processedIds.has(m.id) || (_nullishCoalesce(_optionalChain([rawHistoryIds, 'optionalAccess',
|
|
4814
|
+
const isInWindow = (m) => processedIds.has(m.id) || (_nullishCoalesce(_optionalChain([rawHistoryIds, 'optionalAccess', _173 => _173.has, 'call', _174 => _174(m.id)]), () => ( false)));
|
|
4796
4815
|
const firstWindowIndex = existingMessages.findIndex(isInWindow);
|
|
4797
|
-
const isPersistedOlder = (m) => !isClientMintedId(m.id) && (_nullishCoalesce(_optionalChain([m, 'access',
|
|
4816
|
+
const isPersistedOlder = (m) => !isClientMintedId(m.id) && (_nullishCoalesce(_optionalChain([m, 'access', _175 => _175.timestamp, 'optionalAccess', _176 => _176.getTime, 'call', _177 => _177()]), () => ( 0))) <= historyFetchedAt;
|
|
4798
4817
|
let lastOlderPersistedIndex = -1;
|
|
4799
4818
|
if (firstWindowIndex < 0) {
|
|
4800
4819
|
for (const [index, m] of existingMessages.entries()) {
|
|
@@ -4812,7 +4831,7 @@ function mergeHistoryWithRealtime(input) {
|
|
|
4812
4831
|
} else if (pm.role === "assistant") {
|
|
4813
4832
|
windowHasUnstampedAssistant = true;
|
|
4814
4833
|
}
|
|
4815
|
-
const time = _optionalChain([pm, 'access',
|
|
4834
|
+
const time = _optionalChain([pm, 'access', _178 => _178.timestamp, 'optionalAccess', _179 => _179.getTime, 'call', _180 => _180()]);
|
|
4816
4835
|
if (typeof time === "number" && time < windowMinTime) windowMinTime = time;
|
|
4817
4836
|
}
|
|
4818
4837
|
const threadHasClientMintedRow = existingMessages.some((m) => isClientMintedId(m.id));
|
|
@@ -4830,14 +4849,14 @@ function mergeHistoryWithRealtime(input) {
|
|
|
4830
4849
|
const verdict = twinVerdict(windowSignals, m);
|
|
4831
4850
|
return verdict === "unknown" ? !seqCanMislead(m) : verdict === "distinct";
|
|
4832
4851
|
}
|
|
4833
|
-
const time = _optionalChain([m, 'access',
|
|
4852
|
+
const time = _optionalChain([m, 'access', _181 => _181.timestamp, 'optionalAccess', _182 => _182.getTime, 'call', _183 => _183()]);
|
|
4834
4853
|
if (typeof time !== "number" || time > historyFetchedAt) return false;
|
|
4835
4854
|
if (!Number.isFinite(windowMinTime) || time >= windowMinTime) return false;
|
|
4836
4855
|
return twinVerdict(windowSignals, m) === "distinct";
|
|
4837
4856
|
};
|
|
4838
4857
|
const keepRealtime = (m) => {
|
|
4839
4858
|
if (m.role === "user" && isOptimisticId(m.id) && typeof m.content === "string") {
|
|
4840
|
-
const canBeInSnapshot = (_nullishCoalesce(_optionalChain([m, 'access',
|
|
4859
|
+
const canBeInSnapshot = (_nullishCoalesce(_optionalChain([m, 'access', _184 => _184.timestamp, 'optionalAccess', _185 => _185.getTime, 'call', _186 => _186()]), () => ( 0))) <= historyFetchedAt;
|
|
4841
4860
|
return !(canBeInSnapshot && windowSignals.userContents.has(userTwinKey(m)));
|
|
4842
4861
|
}
|
|
4843
4862
|
if (isSyntheticRealtimeId(m.id) && m.id !== streamingMessageId) {
|
|
@@ -4862,7 +4881,7 @@ function mergeHistoryWithRealtime(input) {
|
|
|
4862
4881
|
} else if (typeof m.streamSeq === "number") {
|
|
4863
4882
|
covered = historyMaxStreamSeq > 0 && historyMaxStreamSeq >= m.streamSeq;
|
|
4864
4883
|
} else {
|
|
4865
|
-
covered = historyCoversRealtime !== null ? historyCoversRealtime : (_nullishCoalesce(_optionalChain([m, 'access',
|
|
4884
|
+
covered = historyCoversRealtime !== null ? historyCoversRealtime : (_nullishCoalesce(_optionalChain([m, 'access', _187 => _187.timestamp, 'optionalAccess', _188 => _188.getTime, 'call', _189 => _189()]), () => ( 0))) <= historyFetchedAt;
|
|
4866
4885
|
}
|
|
4867
4886
|
if (covered) return false;
|
|
4868
4887
|
}
|
|
@@ -4953,7 +4972,7 @@ function normalizeHistoricalMessageData(md) {
|
|
|
4953
4972
|
function isHistoricalUserTurn(m) {
|
|
4954
4973
|
return !!m.owner;
|
|
4955
4974
|
}
|
|
4956
|
-
var isTextSegment = (d) => _optionalChain([d, 'optionalAccess',
|
|
4975
|
+
var isTextSegment = (d) => _optionalChain([d, 'optionalAccess', _190 => _190.type]) === "TEXT" && typeof d.text === "string";
|
|
4957
4976
|
var THINK_MS = 550;
|
|
4958
4977
|
var TOKEN_MS = 55;
|
|
4959
4978
|
var USER_MS = 480;
|
|
@@ -5016,9 +5035,9 @@ function buildStreamFrames(messages) {
|
|
|
5016
5035
|
|
|
5017
5036
|
function InfoHint({ children, label, side = "top", className }) {
|
|
5018
5037
|
const describedById = _react.useId.call(void 0, );
|
|
5019
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className:
|
|
5038
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: _chunk7JWFMAQBcjs.cn.call(void 0, "inline-flex shrink-0 items-center", className), children: [
|
|
5020
5039
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
5021
|
-
|
|
5040
|
+
_chunk6UKH22NQcjs.FloatingTooltip,
|
|
5022
5041
|
{
|
|
5023
5042
|
content: children,
|
|
5024
5043
|
side,
|
|
@@ -5026,7 +5045,7 @@ function InfoHint({ children, label, side = "top", className }) {
|
|
|
5026
5045
|
triggerClassName: "inline-flex shrink-0 items-center",
|
|
5027
5046
|
className: "text-h6",
|
|
5028
5047
|
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
5029
|
-
|
|
5048
|
+
_chunkAHBTZ7DNcjs.Button,
|
|
5030
5049
|
{
|
|
5031
5050
|
type: "button",
|
|
5032
5051
|
variant: "transparent",
|
|
@@ -5057,9 +5076,9 @@ function Field({ label, hint, required, children, error, labelExtras, labelEnd }
|
|
|
5057
5076
|
};
|
|
5058
5077
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col gap-[var(--spacing-system-xxs)]", children: [
|
|
5059
5078
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center gap-1.5", children: [
|
|
5060
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
5079
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkGD47ZGOUcjs.Label, { htmlFor: controlId, children: [
|
|
5061
5080
|
label,
|
|
5062
|
-
required && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
5081
|
+
required && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkTTZEDDR5cjs.RequiredMark, {})
|
|
5063
5082
|
] }),
|
|
5064
5083
|
hint && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, InfoHint, { label, children: hint }),
|
|
5065
5084
|
labelExtras,
|
|
@@ -5120,7 +5139,7 @@ var GROUPS = [
|
|
|
5120
5139
|
}
|
|
5121
5140
|
];
|
|
5122
5141
|
function maskKey(key) {
|
|
5123
|
-
const prefix = _nullishCoalesce(_optionalChain([/^fpk_[a-z0-9-]+_/i, 'access',
|
|
5142
|
+
const prefix = _nullishCoalesce(_optionalChain([/^fpk_[a-z0-9-]+_/i, 'access', _191 => _191.exec, 'call', _192 => _192(key), 'optionalAccess', _193 => _193[0]]), () => ( ""));
|
|
5124
5143
|
return key.length - prefix.length <= 8 ? `${prefix}\u2022\u2022\u2022\u2022` : `${prefix}\u2026${key.slice(-4)}`;
|
|
5125
5144
|
}
|
|
5126
5145
|
function HeaderName({ children }) {
|
|
@@ -5136,7 +5155,7 @@ function Section({ title, description, children }) {
|
|
|
5136
5155
|
] });
|
|
5137
5156
|
}
|
|
5138
5157
|
function ProxyCredentialsPanel({ description }) {
|
|
5139
|
-
const hydrated =
|
|
5158
|
+
const hydrated = _chunkND7ECICKcjs.useIsHydrated.call(void 0, );
|
|
5140
5159
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
5141
5160
|
ProxyCredentialsForm,
|
|
5142
5161
|
{
|
|
@@ -5157,8 +5176,8 @@ function ProxyCredentialsForm({ description, saved }) {
|
|
|
5157
5176
|
const errors = _react.useMemo.call(void 0, () => {
|
|
5158
5177
|
const out = {};
|
|
5159
5178
|
for (const { field } of _chunk5GJM7VRRcjs.EMBED_PROXY_OPTIONAL_HEADERS) {
|
|
5160
|
-
const value = _optionalChain([optional, 'access',
|
|
5161
|
-
const message = value ? _optionalChain([OPTIONAL_FIELD_COPY, 'access',
|
|
5179
|
+
const value = _optionalChain([optional, 'access', _194 => _194[field], 'optionalAccess', _195 => _195.trim, 'call', _196 => _196()]);
|
|
5180
|
+
const message = value ? _optionalChain([OPTIONAL_FIELD_COPY, 'access', _197 => _197[field], 'access', _198 => _198.validate, 'optionalCall', _199 => _199(value)]) : null;
|
|
5162
5181
|
if (message) out[field] = message;
|
|
5163
5182
|
}
|
|
5164
5183
|
return out;
|
|
@@ -5170,12 +5189,12 @@ function ProxyCredentialsForm({ description, saved }) {
|
|
|
5170
5189
|
...keyForPreview ? [["Authorization", `Bearer ${keyForPreview}`]] : [],
|
|
5171
5190
|
...email.trim() ? [["X-Chat-Act-As", email.trim().toLowerCase()]] : [],
|
|
5172
5191
|
..._chunk5GJM7VRRcjs.EMBED_PROXY_OPTIONAL_HEADERS.flatMap(({ field, header }) => {
|
|
5173
|
-
const value = _optionalChain([optional, 'access',
|
|
5192
|
+
const value = _optionalChain([optional, 'access', _200 => _200[field], 'optionalAccess', _201 => _201.trim, 'call', _202 => _202()]);
|
|
5174
5193
|
return value ? [[header, value]] : [];
|
|
5175
5194
|
})
|
|
5176
5195
|
];
|
|
5177
5196
|
const save = () => {
|
|
5178
|
-
const key = secret.trim() || _optionalChain([_chunk5GJM7VRRcjs.getEmbedProxyAuth.call(void 0, ), 'optionalAccess',
|
|
5197
|
+
const key = secret.trim() || _optionalChain([_chunk5GJM7VRRcjs.getEmbedProxyAuth.call(void 0, ), 'optionalAccess', _203 => _203.secret]);
|
|
5179
5198
|
const actAs = email.trim().toLowerCase();
|
|
5180
5199
|
if (!key || !actAs || hasErrors) {
|
|
5181
5200
|
setStatus(hasErrors ? "Fix the highlighted fields first." : "API key and act-as email are required.");
|
|
@@ -5197,13 +5216,13 @@ function ProxyCredentialsForm({ description, saved }) {
|
|
|
5197
5216
|
setStatus("Cleared. Requests use the session again.");
|
|
5198
5217
|
};
|
|
5199
5218
|
const setField = (field, value) => setOptional((prev) => ({ ...prev, [field]: value }));
|
|
5200
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
5219
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkYBTORXFYcjs.Card, { children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkYBTORXFYcjs.CardContent, { className: "space-y-[var(--spacing-system-lf)] p-[var(--spacing-system-mf)]", children: [
|
|
5201
5220
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "header", { className: "flex flex-col gap-[var(--spacing-system-sf)] sm:flex-row sm:items-start sm:justify-between", children: [
|
|
5202
5221
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { children: [
|
|
5203
5222
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h2", { className: "text-ods-text-primary text-h3", children: "Proxy credentials" }),
|
|
5204
5223
|
description && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-ods-text-secondary text-h6", children: description })
|
|
5205
5224
|
] }),
|
|
5206
|
-
activeEmail && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "self-start", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
5225
|
+
activeEmail && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "self-start", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkYBTORXFYcjs.StatusBadge, { singleLine: true, colorScheme: "success", text: `Active: ${activeEmail}` }) })
|
|
5207
5226
|
] }),
|
|
5208
5227
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
5209
5228
|
Section,
|
|
@@ -5219,7 +5238,7 @@ function ProxyCredentialsForm({ description, saved }) {
|
|
|
5219
5238
|
hint: "A SERVICE key may act as anyone; a personal key only as its owner.",
|
|
5220
5239
|
labelEnd: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, HeaderName, { children: "Authorization" }),
|
|
5221
5240
|
children: (props) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
5222
|
-
|
|
5241
|
+
_chunkTTZEDDR5cjs.Input,
|
|
5223
5242
|
{
|
|
5224
5243
|
...props,
|
|
5225
5244
|
type: "password",
|
|
@@ -5240,7 +5259,7 @@ function ProxyCredentialsForm({ description, saved }) {
|
|
|
5240
5259
|
hint: "The end user the requests run as.",
|
|
5241
5260
|
labelEnd: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, HeaderName, { children: "X-Chat-Act-As" }),
|
|
5242
5261
|
children: (props) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
5243
|
-
|
|
5262
|
+
_chunkTTZEDDR5cjs.Input,
|
|
5244
5263
|
{
|
|
5245
5264
|
...props,
|
|
5246
5265
|
type: "email",
|
|
@@ -5266,7 +5285,7 @@ function ProxyCredentialsForm({ description, saved }) {
|
|
|
5266
5285
|
error: _nullishCoalesce(errors[field], () => ( null)),
|
|
5267
5286
|
labelEnd: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, HeaderName, { children: header }),
|
|
5268
5287
|
children: (props) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
5269
|
-
|
|
5288
|
+
_chunkTTZEDDR5cjs.Input,
|
|
5270
5289
|
{
|
|
5271
5290
|
...props,
|
|
5272
5291
|
type: _nullishCoalesce(copy.type, () => ( "text")),
|
|
@@ -5291,8 +5310,8 @@ function ProxyCredentialsForm({ description, saved }) {
|
|
|
5291
5310
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-wrap items-center justify-between gap-[var(--spacing-system-sf)]", children: [
|
|
5292
5311
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "text-ods-text-secondary text-h6", children: status }),
|
|
5293
5312
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex gap-[var(--spacing-system-xsf)]", children: [
|
|
5294
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
5295
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
5313
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkAHBTZ7DNcjs.Button, { variant: "outline", onClick: clear, disabled: !activeEmail && !secret && !email, children: "Clear" }),
|
|
5314
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkAHBTZ7DNcjs.Button, { onClick: save, disabled: !canSave, children: "Save" })
|
|
5296
5315
|
] })
|
|
5297
5316
|
] })
|
|
5298
5317
|
] }) });
|
|
@@ -5300,21 +5319,21 @@ function ProxyCredentialsForm({ description, saved }) {
|
|
|
5300
5319
|
|
|
5301
5320
|
// src/components/chat/index.ts
|
|
5302
5321
|
var LoadedEmbeddableChat = _react.lazy.call(void 0,
|
|
5303
|
-
() => Promise.resolve().then(() => _interopRequireWildcard(require("./embeddable-chat-
|
|
5322
|
+
() => Promise.resolve().then(() => _interopRequireWildcard(require("./embeddable-chat-MPJLN4C6.cjs"))).then((module) => ({ default: module.EmbeddableChat }))
|
|
5304
5323
|
);
|
|
5305
5324
|
var EmbeddableChat = _react.forwardRef.call(void 0, (props, ref) => {
|
|
5306
5325
|
const [loadRequested, setLoadRequested] = _react.useState.call(void 0, false);
|
|
5307
5326
|
const load = loadRequested || Boolean(props.open) || Boolean(props.defaultOpen);
|
|
5308
|
-
_react.useEffect.call(void 0, () =>
|
|
5327
|
+
_react.useEffect.call(void 0, () => _chunkND7ECICKcjs.holdAskAiOpens.call(void 0, ), []);
|
|
5309
5328
|
_react.useEffect.call(void 0, () => {
|
|
5310
5329
|
if (load) return void 0;
|
|
5311
5330
|
const start = () => setLoadRequested(true);
|
|
5312
|
-
if (
|
|
5313
|
-
for (const name of
|
|
5314
|
-
const cancel =
|
|
5331
|
+
if (_chunkND7ECICKcjs.askAiOpenIsHeld.call(void 0, )) queueMicrotask(start);
|
|
5332
|
+
for (const name of _chunkND7ECICKcjs.ASK_AI_OPEN_EVENTS) window.addEventListener(name, start);
|
|
5333
|
+
const cancel = _chunkND7ECICKcjs.onAskAiIntent.call(void 0, start);
|
|
5315
5334
|
return () => {
|
|
5316
5335
|
cancel();
|
|
5317
|
-
for (const name of
|
|
5336
|
+
for (const name of _chunkND7ECICKcjs.ASK_AI_OPEN_EVENTS) window.removeEventListener(name, start);
|
|
5318
5337
|
};
|
|
5319
5338
|
}, [load]);
|
|
5320
5339
|
if (!load) return null;
|
|
@@ -5534,4 +5553,5 @@ EmbeddableChat.displayName = "EmbeddableChat";
|
|
|
5534
5553
|
|
|
5535
5554
|
|
|
5536
5555
|
|
|
5537
|
-
exports.InfoHint = InfoHint; exports.Field = Field; exports.HUBSPOT_DO_NOT_COLLECT_FORM_PROPS = HUBSPOT_DO_NOT_COLLECT_FORM_PROPS; exports.FullscreenSwitchController = FullscreenSwitchController; exports.SOCIAL_PLATFORM_ALIASES = SOCIAL_PLATFORM_ALIASES; exports.normalizeSocialPlatform = normalizeSocialPlatform; exports.hostMatches = hostMatches; exports.SOCIAL_PLATFORM_ALT_HOSTS = SOCIAL_PLATFORM_ALT_HOSTS; exports.socialPlatformHosts = socialPlatformHosts; exports.classifySocialHost = classifySocialHost; exports.pickSocialLink = pickSocialLink; exports.ChatMessageRow = ChatMessageRow; exports.TURN_ROW_CLASS = TURN_ROW_CLASS; exports.TURN_BODY_CLASS = TURN_BODY_CLASS; exports.ChatTurn = ChatTurn; exports.AI_PROVIDERS = AI_PROVIDERS; exports.aiProvider = aiProvider; exports.TOKEN_RATE_EMPTY = TOKEN_RATE_EMPTY; exports.formatTokenRate = formatTokenRate; exports.tokenCost = tokenCost; exports.formatTokenAmount = formatTokenAmount; exports.tokensForBalance = tokensForBalance; exports.tokenRateProviderLabel = tokenRateProviderLabel; exports.groupTokenRatesByProvider = groupTokenRatesByProvider; exports.TRIAL_TERMS = TRIAL_TERMS; exports.trialLengthLabel = trialLengthLabel; exports.trialLabels = trialLabels; exports.isOwnClick = isOwnClick; exports.SEO_TITLE_MAX_LENGTH = SEO_TITLE_MAX_LENGTH; exports.SEO_DESCRIPTION_MAX_LENGTH = SEO_DESCRIPTION_MAX_LENGTH; exports.BRAND_MARK_SVGS = BRAND_MARK_SVGS; exports.brandMarkDataUri = brandMarkDataUri; exports.OS_PLATFORMS = OS_PLATFORMS; exports.DEFAULT_OS_PLATFORM = DEFAULT_OS_PLATFORM; exports.isValidEmailDomain = isValidEmailDomain; exports.validateEmailDomain = validateEmailDomain; exports.validateEmailDomainList = validateEmailDomainList; exports.cleanEmailDomain = cleanEmailDomain; exports.getConfidenceColorClass = getConfidenceColorClass; exports.getConfidenceLevel = getConfidenceLevel; exports.getConfidenceBorderClass = getConfidenceBorderClass; exports.getConfidenceTextClass = getConfidenceTextClass; exports.getConfidenceBgClass = getConfidenceBgClass; exports.getConfidenceLabel = getConfidenceLabel; exports.DEV_SECTION_PARAM_KEYS = DEV_SECTION_PARAM_KEYS; exports.devSectionAnchorId = devSectionAnchorId; exports.TICKET_OPEN_PARAM = TICKET_OPEN_PARAM; exports.buildTicketOpenHref = buildTicketOpenHref; exports.ToolTypeValues = ToolTypeValues; exports.toolLabels = toolLabels; exports.normalizeToolType = normalizeToolType; exports.normalizeToolTypeWithFallback = normalizeToolTypeWithFallback; exports.toToolLabel = toToolLabel; exports.isValidToolType = isValidToolType; exports.getToolTypeAliases = getToolTypeAliases; exports.getToolLabel = getToolLabel; exports.ShellTypeValues = ShellTypeValues; exports.SHELL_TYPES = SHELL_TYPES; exports.shellLabels = shellLabels; exports.getShellLabel = getShellLabel; exports.getShellIcon = getShellIcon; exports.BITE_ID_RE = BITE_ID_RE; exports.generateBiteId = generateBiteId; exports.ensureBiteIds = ensureBiteIds; exports.matchBiteElement = matchBiteElement; exports.OSTypeValues = OSTypeValues; exports.OS_TYPES = OS_TYPES; exports.osLabels = osLabels; exports.normalizeOSType = normalizeOSType; exports.getOSLabel = getOSLabel; exports.getOSIcon = getOSIcon; exports.getOSTypeDefinition = getOSTypeDefinition; exports.getOSPlatformId = getOSPlatformId; exports.isOSPlatform = isOSPlatform; exports.DOWNLOAD_PAGE_PATH = DOWNLOAD_PAGE_PATH; exports.resolveMobileStoreUrl = resolveMobileStoreUrl; exports.getCountryPhoneData = getCountryPhoneData; exports.getCountryByCode = getCountryByCode; exports.getCountryByName = getCountryByName; exports.getFlagFromCountryName = getFlagFromCountryName; exports.validatePhoneNumber = validatePhoneNumber; exports.formatPhoneE164 = formatPhoneE164; exports.COMPLIANCE_STANDARDS = COMPLIANCE_STANDARDS; exports.complianceStandardForName = complianceStandardForName; exports.GENERIC_EMAIL_DOMAINS = GENERIC_EMAIL_DOMAINS; exports.extractDomainFromEmail = extractDomainFromEmail; exports.normalizeDomain = normalizeDomain; exports.isGenericDomain = isGenericDomain; exports.hasGenericEmailDomain = hasGenericEmailDomain; exports.isGenericWebsiteDomain = isGenericWebsiteDomain; exports.isDismissedCookieValue = isDismissedCookieValue; exports.readDismissCookie = readDismissCookie; exports.writeDismissCookie = writeDismissCookie; exports.clearDismissCookie = clearDismissCookie; exports.dismissedBeforePaintScript = dismissedBeforePaintScript; exports.announcementDismissCookieName = announcementDismissCookieName; exports.dismissAnnouncement = dismissAnnouncement; exports.isAnnouncementDismissed = isAnnouncementDismissed; exports.clearAnnouncementDismissals = clearAnnouncementDismissals; exports.clearLegacyAnnouncementCache = clearLegacyAnnouncementCache; exports.isAnnouncementOnSurface = isAnnouncementOnSurface; exports.afterPageLoad = afterPageLoad; exports.WALKTHROUGH_VIDEO_DISMISS_KEY = WALKTHROUGH_VIDEO_DISMISS_KEY; exports.walkthroughDismissCookieName = walkthroughDismissCookieName; exports.isWalkthroughDismissed = isWalkthroughDismissed; exports.dismissWalkthrough = dismissWalkthrough; exports.clearWalkthroughDismissal = clearWalkthroughDismissal; exports.WALKTHROUGH_OPEN_QUERY_PARAM = WALKTHROUGH_OPEN_QUERY_PARAM; exports.withWalkthroughOpenParam = withWalkthroughOpenParam; exports.createSseSubscription = createSseSubscription; exports.readLeadingDecisionFrame = readLeadingDecisionFrame; exports.releaseTypeOptions = releaseTypeOptions; exports.releaseStatusOptions = releaseStatusOptions; exports.changelogLabels = changelogLabels; exports.SEMVER_REGEX = SEMVER_REGEX; exports.ROADMAP_STATUS_OPTIONS = ROADMAP_STATUS_OPTIONS; exports.DELIVERY_TASK_TYPE_OPTIONS = DELIVERY_TASK_TYPE_OPTIONS; exports.TICKET_STATUS_OPTIONS = TICKET_STATUS_OPTIONS; exports.OPENFRAME_DEV_SECTIONS = OPENFRAME_DEV_SECTIONS; exports.openInNewTab = openInNewTab; exports.DEFAULT_CONTENT_SUFFIXES = DEFAULT_CONTENT_SUFFIXES; exports.makeComposeContentUrl = makeComposeContentUrl; exports.buildDefaultHref = buildDefaultHref; exports.resolveContentHref = resolveContentHref; exports.LEGAL_DOCUMENT_TYPES = LEGAL_DOCUMENT_TYPES; exports.isLegalDocumentType = isLegalDocumentType; exports.DEFAULT_FOLDER_INDEX_FILE = DEFAULT_FOLDER_INDEX_FILE; exports.stripFolderIndexFromPath = stripFolderIndexFromPath; exports.findDocNodeByPath = findDocNodeByPath; exports.getDocAncestorNodeIds = getDocAncestorNodeIds; exports.resolveContentFetchPath = resolveContentFetchPath; exports.getInitialExpandedNodeIds = getInitialExpandedNodeIds; exports.getDocSourceDefaultPath = getDocSourceDefaultPath; exports.toDocSlug = toDocSlug; exports.pathToNodeId = pathToNodeId; exports.normalizeDocPath = normalizeDocPath; exports.formatDocName = formatDocName; exports.sortTreeChildren = sortTreeChildren; exports.buildDocumentTree = buildDocumentTree; exports.extractSections = extractSections; exports.SCHEDULING_SLUG_SHAPE = SCHEDULING_SLUG_SHAPE; exports.MAX_MONTH_OFFSET = MAX_MONTH_OFFSET; exports.normalizeSchedulingSlug = normalizeSchedulingSlug; exports.isValidSchedulingSlug = isValidSchedulingSlug; exports.parseSchedulingLinkName = parseSchedulingLinkName; exports.isListedSchedulingName = isListedSchedulingName; exports.schedulingAudienceKey = schedulingAudienceKey; exports.SECTION_HERO_ICON_CLASS = SECTION_HERO_ICON_CLASS; exports.FIRST_TOUCH_ATTRIBUTION_KEY = FIRST_TOUCH_ATTRIBUTION_KEY; exports.sanitizeLandingUrl = sanitizeLandingUrl; exports.parseAttributionFromUrl = parseAttributionFromUrl; exports.captureFirstTouchAttribution = captureFirstTouchAttribution; exports.getFirstTouchAttribution = getFirstTouchAttribution; exports.withFirstTouchAttribution = withFirstTouchAttribution; exports.clearFirstTouchAttribution = clearFirstTouchAttribution; exports.ODS_SPACING_TOKENS = ODS_SPACING_TOKENS; exports.ODS_SPACING_TOKEN_PATTERN = ODS_SPACING_TOKEN_PATTERN; exports.ODS_SPACING_PROPS = ODS_SPACING_PROPS; exports.TAILWIND_STEP_TO_ODS_TOKEN = TAILWIND_STEP_TO_ODS_TOKEN; exports.CSV_CONTENT_TYPE = CSV_CONTENT_TYPE; exports.csvEscape = csvEscape; exports.toCsv = toCsv; exports.copyrightLine = copyrightLine; exports.isValidPathPattern = isValidPathPattern; exports.matchesPathPattern = matchesPathPattern; exports.pathMatchesAny = pathMatchesAny; exports.formatDemoClock = formatDemoClock; exports.demoClockTimes = demoClockTimes; exports.openAskAi = openAskAi; exports.MingoAiButton = MingoAiButton; exports.ASK_PROMPTS_DEFAULT_COUNT = ASK_PROMPTS_DEFAULT_COUNT; exports.buildAskPromptsUrl = buildAskPromptsUrl; exports.assistantAvailable = assistantAvailable; exports.useAskPrompts = useAskPrompts; exports.useAssistantOpen = useAssistantOpen; exports.useAskSurface = useAskSurface; exports.AskPrompts = AskPrompts; exports.AskCard = AskCard; exports.AssistantAskPrompts = AssistantAskPrompts; exports.QuickActionMarquee = QuickActionMarquee; exports.ChatTicketItem = ChatTicketItem; exports.CHAT_TICKET_LIST_SKELETON_ROWS = CHAT_TICKET_LIST_SKELETON_ROWS; exports.ChatTicketList = ChatTicketList; exports.DialogListItem = DialogListItem; exports.ChatSidebar = ChatSidebar; exports.ChatTopNavigation = ChatTopNavigation; exports.OnboardingCarousel = OnboardingCarousel; exports.ADMIN_CONTENT_CARD_GRID_CLASS = ADMIN_CONTENT_CARD_GRID_CLASS; exports.AdminContentCardGrid = AdminContentCardGrid; exports.SlackMessageCard = SlackMessageCard; exports.HubspotTicketCard = HubspotTicketCard; exports.DataRoomDocCard = DataRoomDocCard; exports.CampaignCardAdmin = CampaignCardAdmin; exports.GenericEntityCard = GenericEntityCard; exports.NETWORK_CONFIG = NETWORK_CONFIG; exports.useScriptedStream = useScriptedStream; exports.RESYNC_AFTER_HIDDEN_MS = RESYNC_AFTER_HIDDEN_MS; exports.useJetStreamDialogSubscription = useJetStreamDialogSubscription; exports.useSSE = useSSE; exports.useChat = useChat; exports.SYNTHETIC_REALTIME_ID_PREFIXES = SYNTHETIC_REALTIME_ID_PREFIXES; exports.flattenMessagePagesChronological = flattenMessagePagesChronological; exports.maxPersistedStreamSeq = maxPersistedStreamSeq; exports.mergeHistoryWithRealtime = mergeHistoryWithRealtime; exports.computeHistoryPrepend = computeHistoryPrepend; exports.CHIP_ACTION_BUTTON_CLASS = CHIP_ACTION_BUTTON_CLASS; exports.normalizeHistoricalMessageData = normalizeHistoricalMessageData; exports.isHistoricalUserTurn = isHistoricalUserTurn; exports.buildStreamFrames = buildStreamFrames; exports.ProxyCredentialsPanel = ProxyCredentialsPanel; exports.EmbeddableChat = EmbeddableChat;
|
|
5556
|
+
|
|
5557
|
+
exports.InfoHint = InfoHint; exports.Field = Field; exports.HUBSPOT_DO_NOT_COLLECT_FORM_PROPS = HUBSPOT_DO_NOT_COLLECT_FORM_PROPS; exports.FullscreenSwitchController = FullscreenSwitchController; exports.SOCIAL_PLATFORM_ALIASES = SOCIAL_PLATFORM_ALIASES; exports.normalizeSocialPlatform = normalizeSocialPlatform; exports.hostMatches = hostMatches; exports.SOCIAL_PLATFORM_ALT_HOSTS = SOCIAL_PLATFORM_ALT_HOSTS; exports.socialPlatformHosts = socialPlatformHosts; exports.classifySocialHost = classifySocialHost; exports.pickSocialLink = pickSocialLink; exports.ChatMessageRow = ChatMessageRow; exports.TURN_ROW_CLASS = TURN_ROW_CLASS; exports.TURN_BODY_CLASS = TURN_BODY_CLASS; exports.ChatTurn = ChatTurn; exports.AI_PROVIDERS = AI_PROVIDERS; exports.aiProvider = aiProvider; exports.TOKEN_RATE_EMPTY = TOKEN_RATE_EMPTY; exports.formatTokenRate = formatTokenRate; exports.tokenCost = tokenCost; exports.formatTokenAmount = formatTokenAmount; exports.tokensForBalance = tokensForBalance; exports.tokenRateProviderLabel = tokenRateProviderLabel; exports.groupTokenRatesByProvider = groupTokenRatesByProvider; exports.TRIAL_TERMS = TRIAL_TERMS; exports.trialLengthLabel = trialLengthLabel; exports.trialLabels = trialLabels; exports.isOwnClick = isOwnClick; exports.SEO_TITLE_MAX_LENGTH = SEO_TITLE_MAX_LENGTH; exports.SEO_DESCRIPTION_MAX_LENGTH = SEO_DESCRIPTION_MAX_LENGTH; exports.BRAND_MARK_SVGS = BRAND_MARK_SVGS; exports.brandMarkDataUri = brandMarkDataUri; exports.clickUpDropDownOption = clickUpDropDownOption; exports.OS_PLATFORMS = OS_PLATFORMS; exports.DEFAULT_OS_PLATFORM = DEFAULT_OS_PLATFORM; exports.isValidEmailDomain = isValidEmailDomain; exports.validateEmailDomain = validateEmailDomain; exports.validateEmailDomainList = validateEmailDomainList; exports.cleanEmailDomain = cleanEmailDomain; exports.getConfidenceColorClass = getConfidenceColorClass; exports.getConfidenceLevel = getConfidenceLevel; exports.getConfidenceBorderClass = getConfidenceBorderClass; exports.getConfidenceTextClass = getConfidenceTextClass; exports.getConfidenceBgClass = getConfidenceBgClass; exports.getConfidenceLabel = getConfidenceLabel; exports.DEV_SECTION_PARAM_KEYS = DEV_SECTION_PARAM_KEYS; exports.devSectionAnchorId = devSectionAnchorId; exports.TICKET_OPEN_PARAM = TICKET_OPEN_PARAM; exports.buildTicketOpenHref = buildTicketOpenHref; exports.ToolTypeValues = ToolTypeValues; exports.toolLabels = toolLabels; exports.normalizeToolType = normalizeToolType; exports.normalizeToolTypeWithFallback = normalizeToolTypeWithFallback; exports.toToolLabel = toToolLabel; exports.isValidToolType = isValidToolType; exports.getToolTypeAliases = getToolTypeAliases; exports.getToolLabel = getToolLabel; exports.ShellTypeValues = ShellTypeValues; exports.SHELL_TYPES = SHELL_TYPES; exports.shellLabels = shellLabels; exports.getShellLabel = getShellLabel; exports.getShellIcon = getShellIcon; exports.BITE_ID_RE = BITE_ID_RE; exports.generateBiteId = generateBiteId; exports.ensureBiteIds = ensureBiteIds; exports.matchBiteElement = matchBiteElement; exports.OSTypeValues = OSTypeValues; exports.OS_TYPES = OS_TYPES; exports.osLabels = osLabels; exports.normalizeOSType = normalizeOSType; exports.getOSLabel = getOSLabel; exports.getOSIcon = getOSIcon; exports.getOSTypeDefinition = getOSTypeDefinition; exports.getOSPlatformId = getOSPlatformId; exports.isOSPlatform = isOSPlatform; exports.DOWNLOAD_PAGE_PATH = DOWNLOAD_PAGE_PATH; exports.resolveMobileStoreUrl = resolveMobileStoreUrl; exports.getCountryPhoneData = getCountryPhoneData; exports.getCountryByCode = getCountryByCode; exports.getCountryByName = getCountryByName; exports.getFlagFromCountryName = getFlagFromCountryName; exports.validatePhoneNumber = validatePhoneNumber; exports.formatPhoneE164 = formatPhoneE164; exports.COMPLIANCE_STANDARDS = COMPLIANCE_STANDARDS; exports.complianceStandardForName = complianceStandardForName; exports.GENERIC_EMAIL_DOMAINS = GENERIC_EMAIL_DOMAINS; exports.extractDomainFromEmail = extractDomainFromEmail; exports.normalizeDomain = normalizeDomain; exports.isGenericDomain = isGenericDomain; exports.hasGenericEmailDomain = hasGenericEmailDomain; exports.isGenericWebsiteDomain = isGenericWebsiteDomain; exports.isDismissedCookieValue = isDismissedCookieValue; exports.readDismissCookie = readDismissCookie; exports.writeDismissCookie = writeDismissCookie; exports.clearDismissCookie = clearDismissCookie; exports.dismissedBeforePaintScript = dismissedBeforePaintScript; exports.announcementDismissCookieName = announcementDismissCookieName; exports.dismissAnnouncement = dismissAnnouncement; exports.isAnnouncementDismissed = isAnnouncementDismissed; exports.clearAnnouncementDismissals = clearAnnouncementDismissals; exports.clearLegacyAnnouncementCache = clearLegacyAnnouncementCache; exports.isAnnouncementOnSurface = isAnnouncementOnSurface; exports.afterPageLoad = afterPageLoad; exports.WALKTHROUGH_VIDEO_DISMISS_KEY = WALKTHROUGH_VIDEO_DISMISS_KEY; exports.walkthroughDismissCookieName = walkthroughDismissCookieName; exports.isWalkthroughDismissed = isWalkthroughDismissed; exports.dismissWalkthrough = dismissWalkthrough; exports.clearWalkthroughDismissal = clearWalkthroughDismissal; exports.WALKTHROUGH_OPEN_QUERY_PARAM = WALKTHROUGH_OPEN_QUERY_PARAM; exports.withWalkthroughOpenParam = withWalkthroughOpenParam; exports.createSseSubscription = createSseSubscription; exports.readLeadingDecisionFrame = readLeadingDecisionFrame; exports.releaseTypeOptions = releaseTypeOptions; exports.releaseStatusOptions = releaseStatusOptions; exports.changelogLabels = changelogLabels; exports.SEMVER_REGEX = SEMVER_REGEX; exports.ROADMAP_STATUS_OPTIONS = ROADMAP_STATUS_OPTIONS; exports.DELIVERY_TASK_TYPE_OPTIONS = DELIVERY_TASK_TYPE_OPTIONS; exports.TICKET_STATUS_OPTIONS = TICKET_STATUS_OPTIONS; exports.OPENFRAME_DEV_SECTIONS = OPENFRAME_DEV_SECTIONS; exports.openInNewTab = openInNewTab; exports.DEFAULT_CONTENT_SUFFIXES = DEFAULT_CONTENT_SUFFIXES; exports.makeComposeContentUrl = makeComposeContentUrl; exports.buildDefaultHref = buildDefaultHref; exports.resolveContentHref = resolveContentHref; exports.LEGAL_DOCUMENT_TYPES = LEGAL_DOCUMENT_TYPES; exports.isLegalDocumentType = isLegalDocumentType; exports.DEFAULT_FOLDER_INDEX_FILE = DEFAULT_FOLDER_INDEX_FILE; exports.stripFolderIndexFromPath = stripFolderIndexFromPath; exports.findDocNodeByPath = findDocNodeByPath; exports.getDocAncestorNodeIds = getDocAncestorNodeIds; exports.resolveContentFetchPath = resolveContentFetchPath; exports.getInitialExpandedNodeIds = getInitialExpandedNodeIds; exports.getDocSourceDefaultPath = getDocSourceDefaultPath; exports.toDocSlug = toDocSlug; exports.pathToNodeId = pathToNodeId; exports.normalizeDocPath = normalizeDocPath; exports.formatDocName = formatDocName; exports.sortTreeChildren = sortTreeChildren; exports.buildDocumentTree = buildDocumentTree; exports.extractSections = extractSections; exports.SCHEDULING_SLUG_SHAPE = SCHEDULING_SLUG_SHAPE; exports.MAX_MONTH_OFFSET = MAX_MONTH_OFFSET; exports.normalizeSchedulingSlug = normalizeSchedulingSlug; exports.isValidSchedulingSlug = isValidSchedulingSlug; exports.parseSchedulingLinkName = parseSchedulingLinkName; exports.isListedSchedulingName = isListedSchedulingName; exports.schedulingAudienceKey = schedulingAudienceKey; exports.SECTION_HERO_ICON_CLASS = SECTION_HERO_ICON_CLASS; exports.FIRST_TOUCH_ATTRIBUTION_KEY = FIRST_TOUCH_ATTRIBUTION_KEY; exports.sanitizeLandingUrl = sanitizeLandingUrl; exports.parseAttributionFromUrl = parseAttributionFromUrl; exports.captureFirstTouchAttribution = captureFirstTouchAttribution; exports.getFirstTouchAttribution = getFirstTouchAttribution; exports.withFirstTouchAttribution = withFirstTouchAttribution; exports.clearFirstTouchAttribution = clearFirstTouchAttribution; exports.ODS_SPACING_TOKENS = ODS_SPACING_TOKENS; exports.ODS_SPACING_TOKEN_PATTERN = ODS_SPACING_TOKEN_PATTERN; exports.ODS_SPACING_PROPS = ODS_SPACING_PROPS; exports.TAILWIND_STEP_TO_ODS_TOKEN = TAILWIND_STEP_TO_ODS_TOKEN; exports.CSV_CONTENT_TYPE = CSV_CONTENT_TYPE; exports.csvEscape = csvEscape; exports.toCsv = toCsv; exports.copyrightLine = copyrightLine; exports.isValidPathPattern = isValidPathPattern; exports.matchesPathPattern = matchesPathPattern; exports.pathMatchesAny = pathMatchesAny; exports.formatDemoClock = formatDemoClock; exports.demoClockTimes = demoClockTimes; exports.openAskAi = openAskAi; exports.MingoAiButton = MingoAiButton; exports.ASK_PROMPTS_DEFAULT_COUNT = ASK_PROMPTS_DEFAULT_COUNT; exports.buildAskPromptsUrl = buildAskPromptsUrl; exports.assistantAvailable = assistantAvailable; exports.useAskPrompts = useAskPrompts; exports.useAssistantOpen = useAssistantOpen; exports.useAskSurface = useAskSurface; exports.AskPrompts = AskPrompts; exports.AskCard = AskCard; exports.AssistantAskPrompts = AssistantAskPrompts; exports.QuickActionMarquee = QuickActionMarquee; exports.ChatTicketItem = ChatTicketItem; exports.CHAT_TICKET_LIST_SKELETON_ROWS = CHAT_TICKET_LIST_SKELETON_ROWS; exports.ChatTicketList = ChatTicketList; exports.DialogListItem = DialogListItem; exports.ChatSidebar = ChatSidebar; exports.ChatTopNavigation = ChatTopNavigation; exports.OnboardingCarousel = OnboardingCarousel; exports.ADMIN_CONTENT_CARD_GRID_CLASS = ADMIN_CONTENT_CARD_GRID_CLASS; exports.AdminContentCardGrid = AdminContentCardGrid; exports.SlackMessageCard = SlackMessageCard; exports.HubspotTicketCard = HubspotTicketCard; exports.DataRoomDocCard = DataRoomDocCard; exports.CampaignCardAdmin = CampaignCardAdmin; exports.GenericEntityCard = GenericEntityCard; exports.NETWORK_CONFIG = NETWORK_CONFIG; exports.useScriptedStream = useScriptedStream; exports.RESYNC_AFTER_HIDDEN_MS = RESYNC_AFTER_HIDDEN_MS; exports.useJetStreamDialogSubscription = useJetStreamDialogSubscription; exports.useSSE = useSSE; exports.useChat = useChat; exports.SYNTHETIC_REALTIME_ID_PREFIXES = SYNTHETIC_REALTIME_ID_PREFIXES; exports.flattenMessagePagesChronological = flattenMessagePagesChronological; exports.maxPersistedStreamSeq = maxPersistedStreamSeq; exports.mergeHistoryWithRealtime = mergeHistoryWithRealtime; exports.computeHistoryPrepend = computeHistoryPrepend; exports.CHIP_ACTION_BUTTON_CLASS = CHIP_ACTION_BUTTON_CLASS; exports.normalizeHistoricalMessageData = normalizeHistoricalMessageData; exports.isHistoricalUserTurn = isHistoricalUserTurn; exports.buildStreamFrames = buildStreamFrames; exports.ProxyCredentialsPanel = ProxyCredentialsPanel; exports.EmbeddableChat = EmbeddableChat;
|