@flamingo-stack/openframe-frontend-core 0.0.812 → 0.0.814
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-NLT2JVI7.cjs +23 -0
- package/dist/{chunk-5QLDHPPU.cjs → chunk-25HBH4J6.cjs} +15 -15
- package/dist/{chunk-WFJDKP2Q.cjs → chunk-2H7XPKKT.cjs} +37 -37
- package/dist/{chunk-LKQ33CMY.cjs → chunk-2XCORRJV.cjs} +3 -3
- package/dist/{chunk-JTIGKLKJ.cjs → chunk-2XLPRW7V.cjs} +23 -23
- package/dist/{chunk-4WIJI4AK.cjs → chunk-3TOWCFIK.cjs} +20 -26
- package/dist/{chunk-KUXHXLJQ.cjs → chunk-3V5JWG27.cjs} +5 -5
- package/dist/{chunk-CUDJP7R7.cjs → chunk-467T3LCG.cjs} +63 -63
- package/dist/{chunk-COTJLBOS.cjs → chunk-4PMD3JUC.cjs} +19 -19
- package/dist/{chunk-YR74H7Z3.cjs → chunk-5SZ4ILU3.cjs} +7 -7
- package/dist/{chunk-7JWFMAQB.cjs → chunk-63A4GZMB.cjs} +18 -2
- package/dist/{chunk-ZD6SZLO2.cjs → chunk-6CZVQ72C.cjs} +3 -3
- package/dist/{chunk-PQ76VC2P.cjs → chunk-7ERD34HQ.cjs} +1073 -825
- package/dist/{chunk-VEN6MGNX.cjs → chunk-7O7EX7HQ.cjs} +45 -45
- package/dist/{chunk-FCFLZPID.cjs → chunk-AYMKG55T.cjs} +51 -51
- package/dist/{chunk-U2MHQBL4.cjs → chunk-BOS7OIC4.cjs} +30 -30
- package/dist/{chunk-NEDFRRLM.cjs → chunk-CVPHODOE.cjs} +171 -171
- package/dist/{chunk-JMRO7CK2.cjs → chunk-D23VVC3K.cjs} +45 -45
- package/dist/{chunk-D2EPUQ35.cjs → chunk-E5VF3IXO.cjs} +4 -4
- package/dist/{chunk-SFUNXMY3.cjs → chunk-EHANO6UE.cjs} +16 -16
- package/dist/{chunk-4ZTGCCNI.cjs → chunk-F4ZJRMMM.cjs} +20 -20
- package/dist/{chunk-AHBTZ7DN.cjs → chunk-FCZAUK4D.cjs} +52 -50
- package/dist/{chunk-RSLLS6C4.cjs → chunk-G2B6EA4J.cjs} +62 -62
- package/dist/{chunk-XB7VPJNY.cjs → chunk-G5CCYMCU.cjs} +3 -3
- package/dist/{chunk-VT2ACO3Z.cjs → chunk-GAR2IIU6.cjs} +349 -349
- package/dist/{chunk-743MM5B6.cjs → chunk-HM7VCQSX.cjs} +10 -10
- package/dist/{chunk-DA2TWDGJ.cjs → chunk-IBYT5I7K.cjs} +13 -13
- package/dist/{chunk-D322VUSH.cjs → chunk-IDEOLXY6.cjs} +2050 -2078
- package/dist/{chunk-VYLBW6ZV.cjs → chunk-IJCSQFLD.cjs} +209 -209
- package/dist/{chunk-XZKYU57A.cjs → chunk-IKB6AZPV.cjs} +8 -8
- package/dist/{chunk-VPYGK4AV.cjs → chunk-ILV243HM.cjs} +31 -31
- package/dist/{chunk-TS4PKCG3.cjs → chunk-JOKOQOLJ.cjs} +22 -22
- package/dist/{chunk-TCMUVY3M.cjs → chunk-KINBPFAC.cjs} +199 -199
- package/dist/{chunk-2IZHRVKD.cjs → chunk-KNGULKOU.cjs} +46 -46
- package/dist/{chunk-JMAKYJ3Q.cjs → chunk-LUR2ED43.cjs} +6 -6
- package/dist/{chunk-EPMAMFQE.cjs → chunk-M6VLEXN3.cjs} +119 -119
- package/dist/{chunk-GD47ZGOU.cjs → chunk-N3MBQRCQ.cjs} +3 -3
- package/dist/{chunk-ZFUNSXSH.cjs → chunk-NONMZ5WJ.cjs} +5 -5
- package/dist/{chunk-E64HJMY6.cjs → chunk-OBQ5WUNG.cjs} +67 -67
- package/dist/{chunk-6LZ4BI7Z.cjs → chunk-PAI4A3UM.cjs} +60 -60
- package/dist/{chunk-4IU462LR.cjs → chunk-QDDBOCG3.cjs} +2 -2
- package/dist/{chunk-5DBW6ERF.cjs → chunk-QOAA7ZHB.cjs} +2 -2
- package/dist/{chunk-7Q2PFKU3.cjs → chunk-QQT23JJ7.cjs} +4 -4
- package/dist/{chunk-4SZKJPQJ.cjs → chunk-RD66AGUI.cjs} +6 -6
- package/dist/{chunk-NL3G642U.cjs → chunk-S3QXLD4X.cjs} +10 -10
- package/dist/{chunk-7RM4NM2C.cjs → chunk-SWF6TNZ3.cjs} +14 -14
- package/dist/{chunk-P4B6PVSG.cjs → chunk-USUVHAQ7.cjs} +7 -7
- package/dist/{chunk-K7IX2NAG.cjs → chunk-UTRRECPV.cjs} +110 -110
- package/dist/{chunk-7HNZHENA.cjs → chunk-WJPEDREU.cjs} +13 -13
- package/dist/{chunk-SC3I3YWM.cjs → chunk-Y6MJMPHV.cjs} +126 -126
- package/dist/{chunk-OKI5KSUV.cjs → chunk-ZNZ6453J.cjs} +44 -44
- package/dist/{chunk-7TBXHZLB.cjs → chunk-ZRDVFADQ.cjs} +61 -61
- package/dist/{cloud-tenants-CW3I7AIM.cjs → cloud-tenants-JSH6AQMZ.cjs} +32 -32
- package/dist/components/calendar.cjs +10 -10
- package/dist/components/case-studies/index.cjs +52 -52
- package/dist/components/chat/chat-message-enhanced.d.ts.map +1 -1
- package/dist/components/chat/chat-message-enhanced.js +8 -1
- package/dist/components/chat/embeddable-chat.d.ts.map +1 -1
- package/dist/components/chat/embeddable-chat.js +34 -2
- package/dist/components/chat/entity-cards/chat-card-disclosure.d.ts +93 -0
- package/dist/components/chat/entity-cards/chat-card-disclosure.d.ts.map +1 -0
- package/dist/components/chat/entity-cards/chat-card-disclosure.js +126 -0
- package/dist/components/chat/entity-cards/dispatch.d.ts +5 -0
- package/dist/components/chat/entity-cards/dispatch.d.ts.map +1 -1
- package/dist/components/chat/entity-cards/dispatch.js +82 -55
- package/dist/components/chat/entity-cards/index.d.ts +1 -0
- package/dist/components/chat/entity-cards/index.d.ts.map +1 -1
- package/dist/components/chat/entity-cards/index.js +14 -0
- package/dist/components/chat/index.cjs +42 -26
- package/dist/components/chat/index.d.ts +1 -0
- package/dist/components/chat/index.d.ts.map +1 -1
- package/dist/components/chat/index.js +3 -0
- package/dist/components/chat/inline-app-link-chip.d.ts +35 -0
- package/dist/components/chat/inline-app-link-chip.d.ts.map +1 -0
- package/dist/components/chat/inline-app-link-chip.js +37 -0
- package/dist/components/chat/source-action-button.d.ts +15 -1
- package/dist/components/chat/source-action-button.d.ts.map +1 -1
- package/dist/components/chat/source-action-button.js +40 -2
- 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/features/scripts/schedule-form/schedule-script-picker-card.d.ts.map +1 -1
- package/dist/components/features/scripts/schedule-form/schedule-script-picker-card.js +4 -2
- package/dist/components/features/select-button.js +1 -1
- package/dist/components/help-center-pages/index.cjs +165 -165
- package/dist/components/index.cjs +238 -220
- package/dist/components/meeting-scheduler/index.cjs +196 -196
- package/dist/components/navigation/index.cjs +35 -35
- package/dist/components/onboarding-guides/index.cjs +35 -35
- package/dist/components/platform/ScriptArguments.d.ts +2 -0
- package/dist/components/platform/ScriptArguments.d.ts.map +1 -1
- package/dist/components/platform/ScriptArguments.js +3 -2
- 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 +8 -0
- package/dist/components/ui/button/button-styles.d.ts.map +1 -1
- package/dist/components/ui/button/button-styles.js +8 -1
- package/dist/components/ui/button/button.d.ts.map +1 -1
- package/dist/components/ui/button/button.js +6 -4
- package/dist/components/ui/button/split-button.d.ts.map +1 -1
- package/dist/components/ui/button/split-button.js +3 -2
- package/dist/components/ui/checkbox-block.d.ts.map +1 -1
- package/dist/components/ui/checkbox-block.js +3 -1
- package/dist/components/ui/file-manager/index.cjs +55 -55
- package/dist/components/ui/index.cjs +52 -34
- package/dist/components/ui/input-styles.d.ts +2 -0
- package/dist/components/ui/input-styles.d.ts.map +1 -1
- package/dist/components/ui/input-styles.js +2 -0
- package/dist/{devices-KKRAB4Q2.cjs → devices-OCEOO6OW.cjs} +33 -33
- package/dist/embed-shims/index.cjs +4 -4
- package/dist/embed-shims/next-image.cjs +4 -4
- package/dist/{embeddable-chat-5UO66U4F.cjs → embeddable-chat-YRKMPFDY.cjs} +150 -117
- package/dist/hooks/index.cjs +10 -10
- package/dist/index.cjs +68 -50
- package/dist/{knowledge-Z2PTGBA3.cjs → knowledge-3GEE4LPY.cjs} +33 -33
- package/dist/{logs-6T5VK2TY.cjs → logs-7GGUZSDB.cjs} +41 -41
- package/dist/{policies-JPIC5YDE.cjs → policies-S74WTNL4.cjs} +36 -36
- package/dist/{remote-session-VBVUMIUP.cjs → remote-session-BQMTIQTU.cjs} +17 -17
- package/dist/{scripts-BSYJJFBQ.cjs → scripts-G4QAT4NZ.cjs} +39 -39
- package/dist/{software-update-KVEYYORC.cjs → software-update-IYHJABLP.cjs} +36 -36
- package/dist/{tickets-board-YRZ54JJS.cjs → tickets-board-TRXOX77R.cjs} +17 -17
- package/dist/{video-file-player-4QMVTOBE.cjs → video-file-player-IAMWBKEQ.cjs} +14 -14
- package/package.json +1 -1
- package/src/components/chat/chat-message-enhanced.tsx +24 -1
- package/src/components/chat/embeddable-chat.tsx +61 -1
- package/src/components/chat/entity-cards/chat-card-disclosure.tsx +233 -0
- package/src/components/chat/entity-cards/dispatch.tsx +104 -63
- package/src/components/chat/entity-cards/index.ts +9 -0
- package/src/components/chat/index.ts +1 -0
- package/src/components/chat/inline-app-link-chip.tsx +79 -0
- package/src/components/chat/source-action-button.tsx +53 -2
- package/src/components/features/scripts/schedule-form/schedule-script-picker-card.tsx +4 -2
- package/src/components/features/select-button.tsx +1 -1
- package/src/components/platform/ScriptArguments.tsx +8 -1
- package/src/components/ui/button/button-styles.ts +18 -1
- package/src/components/ui/button/button.tsx +7 -4
- package/src/components/ui/button/split-button.tsx +3 -2
- package/src/components/ui/checkbox-block.tsx +3 -1
- package/src/components/ui/input-styles.ts +2 -0
- package/dist/case-study-card-3XLKCGLV.cjs +0 -23
|
@@ -14,18 +14,18 @@
|
|
|
14
14
|
|
|
15
15
|
|
|
16
16
|
|
|
17
|
-
var
|
|
17
|
+
var _chunk7ERD34HQcjs = require('./chunk-7ERD34HQ.cjs');
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
|
|
22
22
|
|
|
23
|
-
var
|
|
23
|
+
var _chunkOBQ5WUNGcjs = require('./chunk-OBQ5WUNG.cjs');
|
|
24
24
|
|
|
25
25
|
|
|
26
26
|
|
|
27
27
|
|
|
28
|
-
var
|
|
28
|
+
var _chunkZRDVFADQcjs = require('./chunk-ZRDVFADQ.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 _chunkNONMZ5WJcjs = require('./chunk-NONMZ5WJ.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 _chunkF4ZJRMMMcjs = require('./chunk-F4ZJRMMM.cjs');
|
|
111
111
|
|
|
112
112
|
|
|
113
113
|
|
|
114
114
|
|
|
115
115
|
|
|
116
|
-
var
|
|
116
|
+
var _chunkGAR2IIU6cjs = require('./chunk-GAR2IIU6.cjs');
|
|
117
117
|
|
|
118
118
|
|
|
119
119
|
|
|
@@ -132,7 +132,7 @@ var _chunkVT2ACO3Zcjs = require('./chunk-VT2ACO3Z.cjs');
|
|
|
132
132
|
|
|
133
133
|
|
|
134
134
|
|
|
135
|
-
var
|
|
135
|
+
var _chunkY6MJMPHVcjs = require('./chunk-Y6MJMPHV.cjs');
|
|
136
136
|
|
|
137
137
|
|
|
138
138
|
|
|
@@ -141,7 +141,7 @@ var _chunkSC3I3YWMcjs = require('./chunk-SC3I3YWM.cjs');
|
|
|
141
141
|
|
|
142
142
|
|
|
143
143
|
|
|
144
|
-
var
|
|
144
|
+
var _chunkBOS7OIC4cjs = require('./chunk-BOS7OIC4.cjs');
|
|
145
145
|
|
|
146
146
|
|
|
147
147
|
|
|
@@ -153,30 +153,30 @@ var _chunkU2MHQBL4cjs = require('./chunk-U2MHQBL4.cjs');
|
|
|
153
153
|
var _chunkGI3MMBP3cjs = require('./chunk-GI3MMBP3.cjs');
|
|
154
154
|
|
|
155
155
|
|
|
156
|
-
var
|
|
156
|
+
var _chunk3V5JWG27cjs = require('./chunk-3V5JWG27.cjs');
|
|
157
157
|
|
|
158
158
|
|
|
159
159
|
|
|
160
|
-
var
|
|
160
|
+
var _chunkSWF6TNZ3cjs = require('./chunk-SWF6TNZ3.cjs');
|
|
161
161
|
|
|
162
162
|
|
|
163
|
-
var
|
|
163
|
+
var _chunkN3MBQRCQcjs = require('./chunk-N3MBQRCQ.cjs');
|
|
164
164
|
|
|
165
165
|
|
|
166
166
|
|
|
167
167
|
|
|
168
168
|
|
|
169
|
-
var
|
|
169
|
+
var _chunk3TOWCFIKcjs = require('./chunk-3TOWCFIK.cjs');
|
|
170
170
|
|
|
171
171
|
|
|
172
|
-
var
|
|
172
|
+
var _chunkFCZAUK4Dcjs = require('./chunk-FCZAUK4D.cjs');
|
|
173
173
|
|
|
174
174
|
|
|
175
175
|
|
|
176
176
|
|
|
177
177
|
|
|
178
178
|
|
|
179
|
-
var
|
|
179
|
+
var _chunk63A4GZMBcjs = require('./chunk-63A4GZMB.cjs');
|
|
180
180
|
|
|
181
181
|
|
|
182
182
|
var _chunkV45KLJQPcjs = require('./chunk-V45KLJQP.cjs');
|
|
@@ -199,41 +199,41 @@ var HEADER_CLASS = "mb-1 flex min-w-0 max-w-full items-center gap-2";
|
|
|
199
199
|
var NAME_TYPE_CLASS = "font-body text-[14px] font-bold leading-[1.33] tracking-[-0.02em] md:text-[15px]";
|
|
200
200
|
var CHAT_MESSAGE_ROW_BODY_LINES = 2;
|
|
201
201
|
function ChatMessageRow(props) {
|
|
202
|
-
const loading =
|
|
203
|
-
if (loading) return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, ChatMessageRowLoading, { ...
|
|
202
|
+
const loading = _chunk63A4GZMBcjs.useLoadingScope.call(void 0, ) || !!props.loading;
|
|
203
|
+
if (loading) return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, ChatMessageRowLoading, { ..._chunk63A4GZMBcjs.loadingItemProps.call(void 0, props) });
|
|
204
204
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, ChatMessageRowLoaded, { ...props });
|
|
205
205
|
}
|
|
206
206
|
function ChatMessageRowLoaded(props) {
|
|
207
207
|
const { displayName, avatarUrl, timeLabel, body, footer } = props;
|
|
208
|
-
const proxiedAvatar =
|
|
208
|
+
const proxiedAvatar = _chunkGAR2IIU6cjs.useProxiedImageUrl.call(void 0, _nullishCoalesce(avatarUrl, () => ( "")));
|
|
209
209
|
const resolvedAvatar = proxiedAvatar || avatarUrl || void 0;
|
|
210
210
|
const [failedSrc, setFailedSrc] = _react.useState.call(void 0, null);
|
|
211
211
|
const src = resolvedAvatar && resolvedAvatar !== failedSrc ? resolvedAvatar : void 0;
|
|
212
212
|
const hasBody = typeof body === "string" ? body.trim().length > 0 : body != null && body !== false;
|
|
213
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: ROW_CLASS, ...
|
|
213
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: ROW_CLASS, ..._chunk63A4GZMBcjs.loadingItemProps.call(void 0, props), children: [
|
|
214
214
|
src ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
215
|
-
|
|
215
|
+
_chunk3V5JWG27cjs.next_image_default,
|
|
216
216
|
{
|
|
217
217
|
src,
|
|
218
218
|
alt: displayName,
|
|
219
|
-
className:
|
|
220
|
-
width:
|
|
221
|
-
height:
|
|
219
|
+
className: _chunk63A4GZMBcjs.cn.call(void 0, AVATAR_BOX_CLASS, "object-cover"),
|
|
220
|
+
width: _chunk3TOWCFIKcjs.AVATAR_SIZE_PX.md,
|
|
221
|
+
height: _chunk3TOWCFIKcjs.AVATAR_SIZE_PX.md,
|
|
222
222
|
onError: () => setFailedSrc(_nullishCoalesce(resolvedAvatar, () => ( null)))
|
|
223
223
|
}
|
|
224
224
|
) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
225
225
|
"div",
|
|
226
226
|
{
|
|
227
|
-
className:
|
|
227
|
+
className: _chunk63A4GZMBcjs.cn.call(void 0,
|
|
228
228
|
AVATAR_BOX_CLASS,
|
|
229
229
|
"flex items-center justify-center border border-ods-border bg-ods-bg text-ods-text-primary text-h6"
|
|
230
230
|
),
|
|
231
|
-
children:
|
|
231
|
+
children: _chunkBOS7OIC4cjs.personInitials.call(void 0, displayName) || "?"
|
|
232
232
|
}
|
|
233
233
|
),
|
|
234
234
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: CONTENT_CLASS, children: [
|
|
235
235
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: HEADER_CLASS, children: [
|
|
236
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
236
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunk63A4GZMBcjs.cn.call(void 0, "truncate text-ods-text-primary", NAME_TYPE_CLASS), children: displayName }),
|
|
237
237
|
timeLabel && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "flex-shrink-0 text-ods-text-secondary text-h6", children: timeLabel })
|
|
238
238
|
] }),
|
|
239
239
|
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 }),
|
|
@@ -243,13 +243,13 @@ function ChatMessageRowLoaded(props) {
|
|
|
243
243
|
}
|
|
244
244
|
function ChatMessageRowLoading(markers) {
|
|
245
245
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: ROW_CLASS, ...markers, children: [
|
|
246
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
246
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3TOWCFIKcjs.UnifiedSkeleton, { className: AVATAR_BOX_CLASS }),
|
|
247
247
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: CONTENT_CLASS, children: [
|
|
248
248
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: HEADER_CLASS, children: [
|
|
249
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
250
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
249
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3TOWCFIKcjs.TextLineSkeleton, { type: "inherit", as: "span", className: _chunk63A4GZMBcjs.cn.call(void 0, NAME_TYPE_CLASS, "w-24 md:w-32") }),
|
|
250
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3TOWCFIKcjs.TextLineSkeleton, { type: "h6", as: "span", className: "w-12 flex-shrink-0 md:w-16" })
|
|
251
251
|
] }),
|
|
252
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
252
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3TOWCFIKcjs.TextLineSkeleton, { type: "h6", lines: CHAT_MESSAGE_ROW_BODY_LINES })
|
|
253
253
|
] })
|
|
254
254
|
] });
|
|
255
255
|
}
|
|
@@ -276,7 +276,7 @@ function ChatTurn({
|
|
|
276
276
|
loading: loadingProp,
|
|
277
277
|
skeleton
|
|
278
278
|
}) {
|
|
279
|
-
const loading =
|
|
279
|
+
const loading = _chunk63A4GZMBcjs.useLoadingScope.call(void 0, ) || loadingProp;
|
|
280
280
|
if (loading) {
|
|
281
281
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
282
282
|
ChatTurnSkeleton,
|
|
@@ -292,12 +292,12 @@ function ChatTurn({
|
|
|
292
292
|
}
|
|
293
293
|
);
|
|
294
294
|
}
|
|
295
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className:
|
|
295
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk63A4GZMBcjs.cn.call(void 0, TURN_ROW_CLASS, className), children: [
|
|
296
296
|
avatar && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "shrink-0", children: avatar }),
|
|
297
297
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: TURN_BODY_CLASS, children: [
|
|
298
298
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: NAME_ROW_CLASS, children: [
|
|
299
299
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: NAME_GROUP_CLASS, children: [
|
|
300
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
300
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunk63A4GZMBcjs.cn.call(void 0, "min-w-0 truncate", NAME_CLASS[nameSize]), children: name }),
|
|
301
301
|
meta && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: META_CLASS, children: meta })
|
|
302
302
|
] }),
|
|
303
303
|
time && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: TIME_CLASS, children: time })
|
|
@@ -313,10 +313,10 @@ function ChatTurnNameSkeleton({
|
|
|
313
313
|
}) {
|
|
314
314
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: NAME_ROW_CLASS, children: [
|
|
315
315
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: NAME_GROUP_CLASS, children: [
|
|
316
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
317
|
-
typeof meta === "string" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: META_CLASS, children: meta }) : meta && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
316
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3TOWCFIKcjs.TextLineSkeleton, { type: NAME_TYPE[nameSize], className: "w-24" }),
|
|
317
|
+
typeof meta === "string" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: META_CLASS, children: meta }) : meta && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3TOWCFIKcjs.TextLineSkeleton, { type: "h6", className: "w-20" })
|
|
318
318
|
] }),
|
|
319
|
-
time && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
319
|
+
time && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3TOWCFIKcjs.TextLineSkeleton, { type: "h6", className: "w-12 shrink-0" })
|
|
320
320
|
] });
|
|
321
321
|
}
|
|
322
322
|
function ChatTurnSkeleton({
|
|
@@ -329,11 +329,11 @@ function ChatTurnSkeleton({
|
|
|
329
329
|
meta = false,
|
|
330
330
|
className
|
|
331
331
|
}) {
|
|
332
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className:
|
|
333
|
-
avatarPx ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
332
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk63A4GZMBcjs.cn.call(void 0, TURN_ROW_CLASS, className), "aria-hidden": true, children: [
|
|
333
|
+
avatarPx ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBOS7OIC4cjs.SquareAvatar, { loading: true, sizePx: avatarPx, variant: avatarShape }) : null,
|
|
334
334
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: TURN_BODY_CLASS, children: [
|
|
335
335
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, ChatTurnNameSkeleton, { nameSize, meta, time }),
|
|
336
|
-
_nullishCoalesce(body, () => ( /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
336
|
+
_nullishCoalesce(body, () => ( /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3TOWCFIKcjs.TextLineSkeleton, { lines, type: "h4" })))
|
|
337
337
|
] })
|
|
338
338
|
] });
|
|
339
339
|
}
|
|
@@ -940,7 +940,7 @@ function isOSPlatform(deviceOS, targetPlatform) {
|
|
|
940
940
|
// src/utils/mobile-app.ts
|
|
941
941
|
var DOWNLOAD_PAGE_PATH = "/download";
|
|
942
942
|
function resolveMobileStoreUrl(links, userAgent, maxTouchPoints) {
|
|
943
|
-
const os =
|
|
943
|
+
const os = _chunkNONMZ5WJcjs.detectVisitorOs.call(void 0, userAgent, { maxTouchPoints });
|
|
944
944
|
if (os === "ios") return links.appStoreUrl;
|
|
945
945
|
if (os === "android") return links.googlePlayUrl;
|
|
946
946
|
return null;
|
|
@@ -2047,7 +2047,7 @@ function lastPathSegment(url) {
|
|
|
2047
2047
|
function makeComposeContentUrl(opts) {
|
|
2048
2048
|
const suffixes = _nullishCoalesce(opts.suffixes, () => ( DEFAULT_CONTENT_SUFFIXES));
|
|
2049
2049
|
return ({ type: rawType, identifier, slug: slugHint, externalUrl, targetPlatform, platforms }) => {
|
|
2050
|
-
const type =
|
|
2050
|
+
const type = _chunkGAR2IIU6cjs.canonicalContentRefType.call(void 0, rawType);
|
|
2051
2051
|
const override = opts.overrides && Object.prototype.hasOwnProperty.call(opts.overrides, type) ? opts.overrides[type] : void 0;
|
|
2052
2052
|
if (override) return { ...override(identifier), hostOverride: true };
|
|
2053
2053
|
const seg = _nullishCoalesce((Object.prototype.hasOwnProperty.call(suffixes, type) ? suffixes[type] : void 0), () => ( type));
|
|
@@ -2058,8 +2058,8 @@ function makeComposeContentUrl(opts) {
|
|
|
2058
2058
|
}
|
|
2059
2059
|
if (externalUrl) return { href: externalUrl, targetPlatform: _nullishCoalesce(targetPlatform, () => ( null)) };
|
|
2060
2060
|
const claimedOwner = _nullishCoalesce(targetPlatform, () => ( primaryPlatformOf(platforms)));
|
|
2061
|
-
const owner = claimedOwner &&
|
|
2062
|
-
const origin = owner ?
|
|
2061
|
+
const owner = claimedOwner && _chunk7ERD34HQcjs.byKey.call(void 0, claimedOwner) ? claimedOwner : null;
|
|
2062
|
+
const origin = owner ? _chunk7ERD34HQcjs.getPlatformProductionUrl.call(void 0, owner) : opts.contentOrigin;
|
|
2063
2063
|
return {
|
|
2064
2064
|
href: `${origin.replace(/\/+$/, "")}/${seg}/${_optionalChain([slugHint, 'optionalAccess', _88 => _88.trim, 'call', _89 => _89()]) || identifier}`,
|
|
2065
2065
|
// Report the owner so `decideNewTab` can compare it against the current
|
|
@@ -2240,7 +2240,7 @@ function extractSections(markdown, options = {}) {
|
|
|
2240
2240
|
if (heading.level > opts.maxLevel) continue;
|
|
2241
2241
|
let title = heading.text;
|
|
2242
2242
|
if (opts.stripFormattingMarkers) {
|
|
2243
|
-
title =
|
|
2243
|
+
title = _chunk7ERD34HQcjs.stripInlineMarkdown.call(void 0, title).trim();
|
|
2244
2244
|
}
|
|
2245
2245
|
const baseId = _chunkCNTBGJA7cjs.slugifyHeadingBase.call(void 0, opts.removeEmojis ? _chunkCNTBGJA7cjs.stripHeadingEmojis.call(void 0, title) : title);
|
|
2246
2246
|
const cleanId = baseId || `section-${sections.length + 1}`;
|
|
@@ -2555,7 +2555,7 @@ function demoClockTimes(seed, options = {}) {
|
|
|
2555
2555
|
function openAskAi(source, options) {
|
|
2556
2556
|
const prompt = _optionalChain([options, 'optionalAccess', _96 => _96.prompt, 'optionalAccess', _97 => _97.trim, 'call', _98 => _98()]);
|
|
2557
2557
|
const detail = prompt ? { source: _nullishCoalesce(source, () => ( "")), prompt } : { source: _nullishCoalesce(source, () => ( "")) };
|
|
2558
|
-
window.dispatchEvent(new CustomEvent(
|
|
2558
|
+
window.dispatchEvent(new CustomEvent(_chunk7ERD34HQcjs.ASK_AI_OPEN_EVENT, { detail }));
|
|
2559
2559
|
}
|
|
2560
2560
|
function MingoAiButton({
|
|
2561
2561
|
source,
|
|
@@ -2567,10 +2567,10 @@ function MingoAiButton({
|
|
|
2567
2567
|
onClick,
|
|
2568
2568
|
...props
|
|
2569
2569
|
}) {
|
|
2570
|
-
const visitor =
|
|
2570
|
+
const visitor = _chunkNONMZ5WJcjs.useVisitorOs.call(void 0, );
|
|
2571
2571
|
const field = variant === "field";
|
|
2572
2572
|
const inPage = variant === "button";
|
|
2573
|
-
const commandKey = visitor.known &&
|
|
2573
|
+
const commandKey = visitor.known && _chunkNONMZ5WJcjs.usesCommandKey.call(void 0, visitor.os);
|
|
2574
2574
|
const assistant = _chunkEWPR7662cjs.useAssistantRuntime.call(void 0, );
|
|
2575
2575
|
const label = _nullishCoalesce(labelProp, () => ( _optionalChain([assistant, 'optionalAccess', _99 => _99.name])));
|
|
2576
2576
|
const icon = _nullishCoalesce(iconProp, () => ( _optionalChain([assistant, 'optionalAccess', _100 => _100.icon])));
|
|
@@ -2594,11 +2594,11 @@ function MingoAiButton({
|
|
|
2594
2594
|
}, [shortcutHint, commandKey]);
|
|
2595
2595
|
if (!label) return null;
|
|
2596
2596
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
2597
|
-
|
|
2597
|
+
_chunkFCZAUK4Dcjs.Button,
|
|
2598
2598
|
{
|
|
2599
2599
|
...props,
|
|
2600
2600
|
type: "button",
|
|
2601
|
-
...{ [
|
|
2601
|
+
...{ [_chunk7ERD34HQcjs.ASK_AI_TRIGGER_ATTRIBUTE]: "" },
|
|
2602
2602
|
variant: field ? "glyph" : "transparent",
|
|
2603
2603
|
size: "wrap",
|
|
2604
2604
|
font: "regular",
|
|
@@ -2608,7 +2608,7 @@ function MingoAiButton({
|
|
|
2608
2608
|
else openAskAi(eventSource);
|
|
2609
2609
|
_optionalChain([onClick, 'optionalCall', _103 => _103(e)]);
|
|
2610
2610
|
},
|
|
2611
|
-
className:
|
|
2611
|
+
className: _chunk63A4GZMBcjs.cn.call(void 0,
|
|
2612
2612
|
"group/mingo flex shrink-0 justify-start focus-visible:ring-ods-accent",
|
|
2613
2613
|
field ? (
|
|
2614
2614
|
// A row of the mobile menu like the groups under it: same height,
|
|
@@ -2637,23 +2637,23 @@ function MingoAiButton({
|
|
|
2637
2637
|
icon ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2638
2638
|
"span",
|
|
2639
2639
|
{
|
|
2640
|
-
className:
|
|
2640
|
+
className: _chunk63A4GZMBcjs.cn.call(void 0,
|
|
2641
2641
|
"relative inline-flex shrink-0 items-center justify-center overflow-hidden rounded-full",
|
|
2642
2642
|
field ? "size-6" : "size-5"
|
|
2643
2643
|
),
|
|
2644
2644
|
children: icon
|
|
2645
2645
|
}
|
|
2646
2646
|
) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2647
|
-
|
|
2647
|
+
_chunkOBQ5WUNGcjs.AgentMark,
|
|
2648
2648
|
{
|
|
2649
2649
|
agent: "mingo",
|
|
2650
|
-
className:
|
|
2650
|
+
className: _chunk63A4GZMBcjs.cn.call(void 0, "relative shrink-0 text-ods-text-primary", field ? "size-6" : "size-5")
|
|
2651
2651
|
}
|
|
2652
2652
|
),
|
|
2653
2653
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2654
2654
|
"span",
|
|
2655
2655
|
{
|
|
2656
|
-
className:
|
|
2656
|
+
className: _chunk63A4GZMBcjs.cn.call(void 0,
|
|
2657
2657
|
"relative whitespace-nowrap",
|
|
2658
2658
|
field ? "min-w-0 flex-1 truncate" : inPage ? "text-h6" : "sr-only text-h6 lg:not-sr-only"
|
|
2659
2659
|
),
|
|
@@ -2667,11 +2667,11 @@ function MingoAiButton({
|
|
|
2667
2667
|
"kbd",
|
|
2668
2668
|
{
|
|
2669
2669
|
"aria-hidden": "true",
|
|
2670
|
-
className:
|
|
2670
|
+
className: _chunk63A4GZMBcjs.cn.call(void 0,
|
|
2671
2671
|
"relative h-6 min-w-9 items-center justify-center rounded border border-ods-border px-[var(--spacing-system-xxs)] text-h6",
|
|
2672
2672
|
inPage ? "inline-flex" : "hidden lg:inline-flex"
|
|
2673
2673
|
),
|
|
2674
|
-
children: visitor.known ?
|
|
2674
|
+
children: visitor.known ? _chunkNONMZ5WJcjs.shortcutLabel.call(void 0, visitor.os, "K") : ""
|
|
2675
2675
|
}
|
|
2676
2676
|
)
|
|
2677
2677
|
]
|
|
@@ -2700,7 +2700,7 @@ function useAskPrompts({
|
|
|
2700
2700
|
const assistant = _chunkEWPR7662cjs.useAssistantRuntime.call(void 0, );
|
|
2701
2701
|
const base = assistantAvailable(assistant) ? assistant.askPromptsUrl : void 0;
|
|
2702
2702
|
const url = base && enabled ? buildAskPromptsUrl(base, { count, topic, exclude }) : null;
|
|
2703
|
-
const { data, dataUrl, error } =
|
|
2703
|
+
const { data, dataUrl, error } = _chunkF4ZJRMMMcjs.useSelfFetch.call(void 0, url);
|
|
2704
2704
|
const landed = url !== null && (dataUrl === url || error);
|
|
2705
2705
|
return { prompts: landed ? _nullishCoalesce(_optionalChain([data, 'optionalAccess', _105 => _105.prompts]), () => ( [])) : [], isLoading: !!base && !landed, supported: !!base };
|
|
2706
2706
|
}
|
|
@@ -2780,7 +2780,7 @@ function useAskSurface({
|
|
|
2780
2780
|
const assistant = _chunkEWPR7662cjs.useAssistantRuntime.call(void 0, );
|
|
2781
2781
|
const surface = _react.useId.call(void 0, );
|
|
2782
2782
|
const queue = useAskQueue();
|
|
2783
|
-
const held =
|
|
2783
|
+
const held = _chunk63A4GZMBcjs.useLoadingScope.call(void 0, );
|
|
2784
2784
|
const picks = !held && assistantAvailable(assistant) && !!assistant.askPromptsUrl && enabled && exclude !== null;
|
|
2785
2785
|
_react.useLayoutEffect.call(void 0, () => {
|
|
2786
2786
|
if (!picks) return void 0;
|
|
@@ -2816,7 +2816,7 @@ function useAskSurface({
|
|
|
2816
2816
|
// src/components/chat/ask-prompts.tsx
|
|
2817
2817
|
|
|
2818
2818
|
function AssistantGlyph({ icon, className }) {
|
|
2819
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
2819
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunk63A4GZMBcjs.cn.call(void 0, "inline-flex shrink-0 items-center justify-center overflow-hidden rounded-full", className), children: _nullishCoalesce(icon, () => ( /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOBQ5WUNGcjs.AgentMark, { agent: "mingo", className: "size-full" }))) });
|
|
2820
2820
|
}
|
|
2821
2821
|
var slotCount = (count, loading, prompts) => _nullishCoalesce(count, () => ( (loading ? ASK_PROMPTS_DEFAULT_COUNT : prompts.length)));
|
|
2822
2822
|
var SKELETON_LABEL_CH = [26, 22, 30, 24, 20, 28];
|
|
@@ -2832,16 +2832,16 @@ function QuestionChips({
|
|
|
2832
2832
|
onAsk,
|
|
2833
2833
|
slotClassName
|
|
2834
2834
|
}) {
|
|
2835
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2835
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk63A4GZMBcjs.LoadingItems, { count, children: (slot) => {
|
|
2836
2836
|
const prompt = loading ? void 0 : prompts[slot];
|
|
2837
2837
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2838
2838
|
"span",
|
|
2839
2839
|
{
|
|
2840
2840
|
"data-loading-item": true,
|
|
2841
2841
|
className: _nullishCoalesce(slotClassName, () => ( CHIP_SLOT_CLASS)),
|
|
2842
|
-
...prompt ? { [
|
|
2842
|
+
...prompt ? { [_chunk7ERD34HQcjs.ASK_AI_TRIGGER_ATTRIBUTE]: "" } : {},
|
|
2843
2843
|
children: (loading || prompt) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2844
|
-
|
|
2844
|
+
_chunk7ERD34HQcjs.QuickActionChipButton,
|
|
2845
2845
|
{
|
|
2846
2846
|
loading,
|
|
2847
2847
|
variant: "question",
|
|
@@ -2874,17 +2874,17 @@ function AskPrompts({
|
|
|
2874
2874
|
fadeColor,
|
|
2875
2875
|
className
|
|
2876
2876
|
}) {
|
|
2877
|
-
const loading =
|
|
2877
|
+
const loading = _chunk63A4GZMBcjs.useLoadingScope.call(void 0, ) || loadingProp;
|
|
2878
2878
|
const count = slotCount(countProp, loading, prompts);
|
|
2879
2879
|
if (!loading && prompts.length === 0) return null;
|
|
2880
2880
|
const end = align === "end";
|
|
2881
2881
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
2882
|
-
|
|
2882
|
+
_chunkZRDVFADQcjs.ScrollShadow,
|
|
2883
2883
|
{
|
|
2884
2884
|
axis: "horizontal",
|
|
2885
2885
|
color: fadeColor,
|
|
2886
2886
|
className: "w-full min-w-0 content-md:w-auto",
|
|
2887
|
-
scrollClassName:
|
|
2887
|
+
scrollClassName: _chunk63A4GZMBcjs.cn.call(void 0, ASK_PROMPTS_ROW_CLASS, end ? "content-md:items-end" : "content-md:items-start", className),
|
|
2888
2888
|
children: [
|
|
2889
2889
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, MingoAiButton, { variant: "button", source, label, icon, className: "shrink-0" }),
|
|
2890
2890
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -2896,7 +2896,7 @@ function AskPrompts({
|
|
|
2896
2896
|
source,
|
|
2897
2897
|
onOpen,
|
|
2898
2898
|
onAsk,
|
|
2899
|
-
slotClassName:
|
|
2899
|
+
slotClassName: _chunk63A4GZMBcjs.cn.call(void 0, ROW_CHIP_SLOT_CLASS, end && "content-md:justify-end")
|
|
2900
2900
|
}
|
|
2901
2901
|
)
|
|
2902
2902
|
]
|
|
@@ -2917,12 +2917,12 @@ function AskCard({
|
|
|
2917
2917
|
shortcutHint = true,
|
|
2918
2918
|
className
|
|
2919
2919
|
}) {
|
|
2920
|
-
const loading =
|
|
2920
|
+
const loading = _chunk63A4GZMBcjs.useLoadingScope.call(void 0, ) || loadingProp;
|
|
2921
2921
|
const count = slotCount(countProp, loading, prompts);
|
|
2922
2922
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
2923
2923
|
"div",
|
|
2924
2924
|
{
|
|
2925
|
-
className:
|
|
2925
|
+
className: _chunk63A4GZMBcjs.cn.call(void 0,
|
|
2926
2926
|
"flex flex-col gap-[var(--spacing-system-m)] rounded-md border border-ods-border bg-ods-card p-[var(--spacing-system-l)]",
|
|
2927
2927
|
className
|
|
2928
2928
|
),
|
|
@@ -3051,7 +3051,7 @@ function QuickActionMarquee({
|
|
|
3051
3051
|
);
|
|
3052
3052
|
if (items.length === 0) return null;
|
|
3053
3053
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3054
|
-
|
|
3054
|
+
_chunk7ERD34HQcjs.QuickActionWall,
|
|
3055
3055
|
{
|
|
3056
3056
|
chips,
|
|
3057
3057
|
mode,
|
|
@@ -3077,32 +3077,32 @@ function QuickActionMarquee({
|
|
|
3077
3077
|
|
|
3078
3078
|
var UNREAD_NOTICE = "You have a new unread message";
|
|
3079
3079
|
var TICKET_ROW_HEIGHT = "h-20";
|
|
3080
|
-
var TICKET_ROW =
|
|
3080
|
+
var TICKET_ROW = _chunk63A4GZMBcjs.cn.call(void 0, _chunk63A4GZMBcjs.BUTTON_KIND_CLASS.row, TICKET_ROW_HEIGHT);
|
|
3081
3081
|
var TICKET_ROW_TEXT = "flex min-w-0 flex-1 flex-col justify-center";
|
|
3082
|
-
var TICKET_ROW_CHEVRON = `flex ${
|
|
3082
|
+
var TICKET_ROW_CHEVRON = `flex ${_chunk3TOWCFIKcjs.TILE_SIZE.xl} shrink-0 items-center justify-center rounded-md border`;
|
|
3083
3083
|
var ChatTicketItem = _react.forwardRef.call(void 0,
|
|
3084
3084
|
({ className, ticket, onClick, loading: loadingProp = false, ...props }, ref) => {
|
|
3085
|
-
const loading =
|
|
3085
|
+
const loading = _chunk63A4GZMBcjs.useLoadingScope.call(void 0, ) || loadingProp;
|
|
3086
3086
|
if (!loading && !ticket) return null;
|
|
3087
|
-
const statusTagProps = ticket ?
|
|
3087
|
+
const statusTagProps = ticket ? _chunkOBQ5WUNGcjs.resolveStatusTagProps.call(void 0, {
|
|
3088
3088
|
status: ticket.status,
|
|
3089
3089
|
statusKind: ticket.statusKind,
|
|
3090
3090
|
statusName: ticket.statusLabel,
|
|
3091
3091
|
statusColor: ticket.statusColor
|
|
3092
3092
|
}) : null;
|
|
3093
|
-
const isResolved = !!ticket && (ticket.statusKind === "RESOLVED" ||
|
|
3093
|
+
const isResolved = !!ticket && (ticket.statusKind === "RESOLVED" || _chunkOBQ5WUNGcjs.resolveTicketStatus.call(void 0, ticket.status) === "RESOLVED");
|
|
3094
3094
|
const composedSubtitle = ticket ? [ticket.ticketNumber, ticket.category, ticket.timeAgo].filter(Boolean).join(" \u2022 ") : "";
|
|
3095
3095
|
const subtitle = _nullishCoalesce(_optionalChain([ticket, 'optionalAccess', _125 => _125.subtitle]), () => ( (_optionalChain([ticket, 'optionalAccess', _126 => _126.unread]) ? UNREAD_NOTICE : composedSubtitle)));
|
|
3096
3096
|
const unread = !!_optionalChain([ticket, 'optionalAccess', _127 => _127.unread]);
|
|
3097
3097
|
const content = /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
3098
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className:
|
|
3099
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3100
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3098
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunk63A4GZMBcjs.cn.call(void 0, TICKET_ROW_TEXT, "text-left"), children: loading || !ticket ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
3099
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3TOWCFIKcjs.TextLineSkeleton, { type: "h3", className: "w-1/2" }),
|
|
3100
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3TOWCFIKcjs.TextLineSkeleton, { type: "h6", className: "w-1/3" })
|
|
3101
3101
|
] }) : /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
3102
3102
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3103
3103
|
"p",
|
|
3104
3104
|
{
|
|
3105
|
-
className:
|
|
3105
|
+
className: _chunk63A4GZMBcjs.cn.call(void 0, "truncate text-h3", isResolved ? "text-ods-text-secondary" : "text-ods-text-primary"),
|
|
3106
3106
|
title: ticket.title,
|
|
3107
3107
|
children: ticket.title
|
|
3108
3108
|
}
|
|
@@ -3110,14 +3110,14 @@ var ChatTicketItem = _react.forwardRef.call(void 0,
|
|
|
3110
3110
|
subtitle && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3111
3111
|
"p",
|
|
3112
3112
|
{
|
|
3113
|
-
className:
|
|
3113
|
+
className: _chunk63A4GZMBcjs.cn.call(void 0, "truncate text-h6", unread ? "text-ods-open-yellow" : "text-ods-text-secondary"),
|
|
3114
3114
|
title: subtitle,
|
|
3115
3115
|
children: subtitle
|
|
3116
3116
|
}
|
|
3117
3117
|
)
|
|
3118
3118
|
] }) }),
|
|
3119
3119
|
_optionalChain([ticket, 'optionalAccess', _128 => _128.linkedTaskLabel]) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3120
|
-
|
|
3120
|
+
_chunkBOS7OIC4cjs.Tag,
|
|
3121
3121
|
{
|
|
3122
3122
|
"data-loading-optional": true,
|
|
3123
3123
|
label: ticket.linkedTaskLabel,
|
|
@@ -3126,30 +3126,30 @@ var ChatTicketItem = _react.forwardRef.call(void 0,
|
|
|
3126
3126
|
className: "hidden shrink-0 sm:inline-flex"
|
|
3127
3127
|
}
|
|
3128
3128
|
),
|
|
3129
|
-
loading ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3129
|
+
loading ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOBQ5WUNGcjs.TicketStatusTag, { status: "", loading: true, className: "w-20" }) : statusTagProps && (statusTagProps.status || statusTagProps.label) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOBQ5WUNGcjs.TicketStatusTag, { ...statusTagProps }),
|
|
3130
3130
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3131
3131
|
"div",
|
|
3132
3132
|
{
|
|
3133
3133
|
"data-testid": "chat-ticket-item-chevron",
|
|
3134
|
-
className:
|
|
3134
|
+
className: _chunk63A4GZMBcjs.cn.call(void 0,
|
|
3135
3135
|
TICKET_ROW_CHEVRON,
|
|
3136
3136
|
unread ? "border-ods-open-yellow bg-ods-open-yellow" : "border-ods-border bg-ods-card"
|
|
3137
3137
|
),
|
|
3138
|
-
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.ChevronRight, { className:
|
|
3138
|
+
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.ChevronRight, { className: _chunk63A4GZMBcjs.cn.call(void 0, "size-6", unread ? "text-ods-text-on-accent" : "text-ods-text-secondary") })
|
|
3139
3139
|
}
|
|
3140
3140
|
)
|
|
3141
3141
|
] });
|
|
3142
3142
|
if (loading || !ticket) {
|
|
3143
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { "aria-hidden": true, className:
|
|
3143
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { "aria-hidden": true, className: _chunk63A4GZMBcjs.cn.call(void 0, TICKET_ROW, className), ..._chunk63A4GZMBcjs.loadingItemProps.call(void 0, props), children: content });
|
|
3144
3144
|
}
|
|
3145
3145
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3146
|
-
|
|
3146
|
+
_chunkFCZAUK4Dcjs.Button,
|
|
3147
3147
|
{
|
|
3148
3148
|
variant: "row",
|
|
3149
3149
|
ref,
|
|
3150
3150
|
type: "button",
|
|
3151
3151
|
onClick: () => _optionalChain([onClick, 'optionalCall', _129 => _129(ticket.id)]),
|
|
3152
|
-
className:
|
|
3152
|
+
className: _chunk63A4GZMBcjs.cn.call(void 0, TICKET_ROW_HEIGHT, className),
|
|
3153
3153
|
...props,
|
|
3154
3154
|
children: content
|
|
3155
3155
|
}
|
|
@@ -3170,23 +3170,23 @@ var ChatTicketList = _react.forwardRef.call(void 0,
|
|
|
3170
3170
|
skeletonCount = CHAT_TICKET_LIST_SKELETON_ROWS,
|
|
3171
3171
|
...props
|
|
3172
3172
|
}, ref) => {
|
|
3173
|
-
const isLoading =
|
|
3174
|
-
const { scrollRef, fadeTop, fadeBottom, update: updateFade } =
|
|
3173
|
+
const isLoading = _chunk63A4GZMBcjs.useLoadingScope.call(void 0, ) || isLoadingProp;
|
|
3174
|
+
const { scrollRef, fadeTop, fadeBottom, update: updateFade } = _chunkZRDVFADQcjs.useScrollFade.call(void 0, );
|
|
3175
3175
|
if (!isLoading && tickets.length === 0) return null;
|
|
3176
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { ref, className:
|
|
3176
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { ref, className: _chunk63A4GZMBcjs.cn.call(void 0, "flex min-h-0 flex-col gap-2", className), ...props, children: [
|
|
3177
3177
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "shrink-0 text-ods-text-secondary text-h5", children: "Your Chats:" }),
|
|
3178
3178
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
3179
3179
|
"div",
|
|
3180
3180
|
{
|
|
3181
|
-
className:
|
|
3181
|
+
className: _chunk63A4GZMBcjs.cn.call(void 0,
|
|
3182
3182
|
"relative min-h-0 flex-1 overflow-hidden border-x border-ods-border",
|
|
3183
3183
|
(isLoading || !fadeTop) && "rounded-t-md border-t",
|
|
3184
3184
|
(isLoading || !fadeBottom) && "rounded-b-md border-b"
|
|
3185
3185
|
),
|
|
3186
3186
|
children: [
|
|
3187
|
-
/* @__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,
|
|
3188
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3189
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3187
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { ref: scrollRef, className: "h-full overflow-y-auto overscroll-contain", onScroll: updateFade, children: isLoading ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk63A4GZMBcjs.LoadingItems, { count: skeletonCount, children: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, ChatTicketItem, { loading: true, "data-loading-item": true }) }) : tickets.map((ticket) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, ChatTicketItem, { ticket, onClick: onTicketClick, "data-loading-item": true }, ticket.id)) }),
|
|
3188
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkZRDVFADQcjs.ScrollFadeOverlay, { edge: "top", visible: !isLoading && fadeTop }),
|
|
3189
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkZRDVFADQcjs.ScrollFadeOverlay, { edge: "bottom", visible: !isLoading && fadeBottom })
|
|
3190
3190
|
]
|
|
3191
3191
|
}
|
|
3192
3192
|
)
|
|
@@ -3201,13 +3201,13 @@ ChatTicketList.displayName = "ChatTicketList";
|
|
|
3201
3201
|
var DIALOG_LIST_ITEM_CLASS = "flex items-center gap-4 overflow-clip px-4 py-3 border-b border-ods-border bg-ods-card";
|
|
3202
3202
|
var DialogListItem = _react.forwardRef.call(void 0,
|
|
3203
3203
|
({ className, dialog, isActive, onDialogSelect, onClick, loading: loadingProp = false, ...props }, ref) => {
|
|
3204
|
-
const loading =
|
|
3204
|
+
const loading = _chunk63A4GZMBcjs.useLoadingScope.call(void 0, ) || loadingProp;
|
|
3205
3205
|
const handleClick = (e) => {
|
|
3206
3206
|
_optionalChain([onDialogSelect, 'optionalCall', _130 => _130(dialog.id)]);
|
|
3207
3207
|
_optionalChain([onClick, 'optionalCall', _131 => _131(e)]);
|
|
3208
3208
|
};
|
|
3209
3209
|
const formatTimestamp = (timestamp) => {
|
|
3210
|
-
return
|
|
3210
|
+
return _chunkBOS7OIC4cjs.formatDateWithTimezone.call(void 0, timestamp, _chunkBOS7OIC4cjs.VIEWER_TIMEZONE, "numericDateTime24h");
|
|
3211
3211
|
};
|
|
3212
3212
|
const unread = loading ? 0 : _nullishCoalesce(dialog.unreadMessagesCount, () => ( 0));
|
|
3213
3213
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
@@ -3215,23 +3215,23 @@ var DialogListItem = _react.forwardRef.call(void 0,
|
|
|
3215
3215
|
{
|
|
3216
3216
|
ref: loading ? void 0 : ref,
|
|
3217
3217
|
"aria-hidden": loading || void 0,
|
|
3218
|
-
className:
|
|
3218
|
+
className: _chunk63A4GZMBcjs.cn.call(void 0,
|
|
3219
3219
|
DIALOG_LIST_ITEM_CLASS,
|
|
3220
3220
|
!loading && "cursor-pointer transition-colors hover:bg-ods-bg-hover",
|
|
3221
3221
|
!loading && isActive && "border-l-2 border-l-ods-accent bg-ods-bg-hover",
|
|
3222
3222
|
className
|
|
3223
3223
|
),
|
|
3224
3224
|
onClick: loading ? void 0 : handleClick,
|
|
3225
|
-
...loading ?
|
|
3225
|
+
...loading ? _chunk63A4GZMBcjs.loadingItemProps.call(void 0, props) : props,
|
|
3226
3226
|
children: [
|
|
3227
3227
|
/* @__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: [
|
|
3228
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3229
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3228
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3TOWCFIKcjs.TextLineSkeleton, { type: "h6", className: "w-full max-w-[200px]" }),
|
|
3229
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3TOWCFIKcjs.TextLineSkeleton, { type: "h6", className: "w-32" })
|
|
3230
3230
|
] }) : /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
3231
3231
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex w-full min-w-0 items-center", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3232
3232
|
"h3",
|
|
3233
3233
|
{
|
|
3234
|
-
className:
|
|
3234
|
+
className: _chunk63A4GZMBcjs.cn.call(void 0,
|
|
3235
3235
|
"min-w-0 flex-1 text-h6",
|
|
3236
3236
|
isActive ? "text-ods-accent" : "text-ods-text-primary",
|
|
3237
3237
|
"truncate"
|
|
@@ -3251,7 +3251,7 @@ var DialogListItem = _react.forwardRef.call(void 0,
|
|
|
3251
3251
|
DialogListItem.displayName = "DialogListItem";
|
|
3252
3252
|
var LOADING_DIALOG = { id: "", title: "" };
|
|
3253
3253
|
function DialogListItemLoadingPage({ count }) {
|
|
3254
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3254
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk63A4GZMBcjs.LoadingItems, { count, children: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, DialogListItem, { loading: true, dialog: LOADING_DIALOG, "data-loading-item": true }) });
|
|
3255
3255
|
}
|
|
3256
3256
|
var ChatSidebar = _react.forwardRef.call(void 0,
|
|
3257
3257
|
({
|
|
@@ -3266,10 +3266,10 @@ var ChatSidebar = _react.forwardRef.call(void 0,
|
|
|
3266
3266
|
hasNextPage,
|
|
3267
3267
|
isFetchingNextPage,
|
|
3268
3268
|
onLoadMore,
|
|
3269
|
-
pageSize =
|
|
3269
|
+
pageSize = _chunk7ERD34HQcjs.CHAT_HISTORY_PAGE_SIZE,
|
|
3270
3270
|
...props
|
|
3271
3271
|
}, ref) => {
|
|
3272
|
-
const loading =
|
|
3272
|
+
const loading = _chunk63A4GZMBcjs.useLoadingScope.call(void 0, ) || !!isLoading && dialogs.length === 0 && !children;
|
|
3273
3273
|
const showEmptyState = !loading && dialogs.length === 0 && !children;
|
|
3274
3274
|
const scrollContainerRef = _react.useRef.call(void 0, null);
|
|
3275
3275
|
const loadMoreRef = _react.useRef.call(void 0, null);
|
|
@@ -3299,11 +3299,11 @@ var ChatSidebar = _react.forwardRef.call(void 0,
|
|
|
3299
3299
|
"div",
|
|
3300
3300
|
{
|
|
3301
3301
|
ref,
|
|
3302
|
-
className:
|
|
3302
|
+
className: _chunk63A4GZMBcjs.cn.call(void 0, "flex h-full w-80 flex-col", "bg-ods-bg", "border-r border-ods-border", className),
|
|
3303
3303
|
...props,
|
|
3304
3304
|
children: [
|
|
3305
3305
|
/* @__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,
|
|
3306
|
-
|
|
3306
|
+
_chunkFCZAUK4Dcjs.Button,
|
|
3307
3307
|
{
|
|
3308
3308
|
onClick: onNewChat,
|
|
3309
3309
|
variant: "transparent",
|
|
@@ -3366,12 +3366,12 @@ var ChatTopNavigation = _react.forwardRef.call(void 0,
|
|
|
3366
3366
|
isLoading: isLoadingProp,
|
|
3367
3367
|
...props
|
|
3368
3368
|
}, ref) => {
|
|
3369
|
-
const isLoading =
|
|
3370
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "header", { ref, className:
|
|
3369
|
+
const isLoading = _chunk63A4GZMBcjs.useLoadingScope.call(void 0, ) || isLoadingProp;
|
|
3370
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "header", { ref, className: _chunk63A4GZMBcjs.cn.call(void 0, "flex shrink-0 flex-col bg-ods-bg", className), ...props, children: [
|
|
3371
3371
|
before,
|
|
3372
3372
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex h-14 items-stretch divide-x divide-ods-border border-b border-ods-border", children: [
|
|
3373
3373
|
onToggleSidebar && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3374
|
-
|
|
3374
|
+
_chunkFCZAUK4Dcjs.Button,
|
|
3375
3375
|
{
|
|
3376
3376
|
variant: "cell",
|
|
3377
3377
|
type: "button",
|
|
@@ -3384,7 +3384,7 @@ var ChatTopNavigation = _react.forwardRef.call(void 0,
|
|
|
3384
3384
|
),
|
|
3385
3385
|
/* @__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: [
|
|
3386
3386
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3387
|
-
|
|
3387
|
+
_chunkBOS7OIC4cjs.SquareAvatar,
|
|
3388
3388
|
{
|
|
3389
3389
|
loading: isLoading,
|
|
3390
3390
|
src: _nullishCoalesce(avatarUrl, () => ( void 0)),
|
|
@@ -3395,8 +3395,8 @@ var ChatTopNavigation = _react.forwardRef.call(void 0,
|
|
|
3395
3395
|
}
|
|
3396
3396
|
),
|
|
3397
3397
|
isLoading ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-1 flex-col", children: [
|
|
3398
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3399
|
-
subtitle !== void 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3398
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3TOWCFIKcjs.TextLineSkeleton, { type: "h3", className: "w-24" }),
|
|
3399
|
+
subtitle !== void 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3TOWCFIKcjs.TextLineSkeleton, { type: "h6", className: "w-32" })
|
|
3400
3400
|
] }) : /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-1 flex-col", children: [
|
|
3401
3401
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "truncate text-ods-text-primary text-h3", children: name }),
|
|
3402
3402
|
subtitle && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "truncate text-ods-text-secondary text-h6", children: subtitle })
|
|
@@ -3404,7 +3404,7 @@ var ChatTopNavigation = _react.forwardRef.call(void 0,
|
|
|
3404
3404
|
actions && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex shrink-0 items-center gap-[var(--spacing-system-xs)]", children: actions })
|
|
3405
3405
|
] }),
|
|
3406
3406
|
onOpenSettings && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3407
|
-
|
|
3407
|
+
_chunkFCZAUK4Dcjs.Button,
|
|
3408
3408
|
{
|
|
3409
3409
|
variant: "cell",
|
|
3410
3410
|
type: "button",
|
|
@@ -3454,7 +3454,7 @@ function OnboardingCarousel({
|
|
|
3454
3454
|
"aria-roledescription": "carousel",
|
|
3455
3455
|
"aria-label": label,
|
|
3456
3456
|
onKeyDown: handleKeyDown,
|
|
3457
|
-
className:
|
|
3457
|
+
className: _chunk63A4GZMBcjs.cn.call(void 0,
|
|
3458
3458
|
"flex min-h-0 w-full flex-1 flex-col items-center gap-[calc(2*var(--spacing-system-xlf))]",
|
|
3459
3459
|
className
|
|
3460
3460
|
),
|
|
@@ -3476,7 +3476,7 @@ function OnboardingCarousel({
|
|
|
3476
3476
|
"aria-label": `${i + 1} of ${steps.length}`,
|
|
3477
3477
|
"aria-hidden": !isCurrent,
|
|
3478
3478
|
inert: !isCurrent || void 0,
|
|
3479
|
-
className:
|
|
3479
|
+
className: _chunk63A4GZMBcjs.cn.call(void 0,
|
|
3480
3480
|
"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",
|
|
3481
3481
|
i === 0 && "ml-[calc((100%-var(--onboarding-card-w))/2)]"
|
|
3482
3482
|
),
|
|
@@ -3507,7 +3507,7 @@ function OnboardingCarousel({
|
|
|
3507
3507
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex items-center", role: "group", "aria-label": "Choose step", children: steps.map((step, i) => {
|
|
3508
3508
|
const isCurrent = i === index;
|
|
3509
3509
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3510
|
-
|
|
3510
|
+
_chunkFCZAUK4Dcjs.Button,
|
|
3511
3511
|
{
|
|
3512
3512
|
variant: "transparent",
|
|
3513
3513
|
"aria-current": isCurrent ? "step" : void 0,
|
|
@@ -3517,7 +3517,7 @@ function OnboardingCarousel({
|
|
|
3517
3517
|
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3518
3518
|
"span",
|
|
3519
3519
|
{
|
|
3520
|
-
className:
|
|
3520
|
+
className: _chunk63A4GZMBcjs.cn.call(void 0,
|
|
3521
3521
|
"size-1.5 rounded-full transition-colors duration-150",
|
|
3522
3522
|
isCurrent ? "bg-ods-accent" : "bg-ods-text-secondary"
|
|
3523
3523
|
)
|
|
@@ -3530,7 +3530,7 @@ function OnboardingCarousel({
|
|
|
3530
3530
|
] }),
|
|
3531
3531
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-wrap items-center justify-center gap-[var(--spacing-system-m)]", children: [
|
|
3532
3532
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3533
|
-
|
|
3533
|
+
_chunkFCZAUK4Dcjs.Button,
|
|
3534
3534
|
{
|
|
3535
3535
|
variant: "outline",
|
|
3536
3536
|
className: "w-[200px]",
|
|
@@ -3539,7 +3539,7 @@ function OnboardingCarousel({
|
|
|
3539
3539
|
children: previousLabel
|
|
3540
3540
|
}
|
|
3541
3541
|
),
|
|
3542
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3542
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFCZAUK4Dcjs.Button, { variant: "accent", className: "w-[200px]", onClick: isLast ? onComplete : () => goTo(index + 1), children: isLast ? completeLabel : nextLabel })
|
|
3543
3543
|
] })
|
|
3544
3544
|
]
|
|
3545
3545
|
}
|
|
@@ -3550,7 +3550,7 @@ function OnboardingCarousel({
|
|
|
3550
3550
|
|
|
3551
3551
|
var ADMIN_CONTENT_CARD_GRID_CLASS = "grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-[var(--spacing-system-lf)]";
|
|
3552
3552
|
var GRID_CELL_CLASS = "h-full";
|
|
3553
|
-
var DEFAULT_LOADING_CARD = /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3553
|
+
var DEFAULT_LOADING_CARD = /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGAR2IIU6cjs.AdminContentCard, { loading: true, reserveRows: true, title: "", actions: true });
|
|
3554
3554
|
function loadingCardOf(loadingCard, Skeleton) {
|
|
3555
3555
|
if (loadingCard !== void 0) return loadingCard;
|
|
3556
3556
|
return Skeleton ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Skeleton, {}) : DEFAULT_LOADING_CARD;
|
|
@@ -3564,7 +3564,7 @@ function AdminContentCardGridSkeleton({
|
|
|
3564
3564
|
label = "Loading",
|
|
3565
3565
|
region = true
|
|
3566
3566
|
}) {
|
|
3567
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3567
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7ERD34HQcjs.LoadingFallback, { label, status: region, className: _chunk63A4GZMBcjs.cn.call(void 0, ADMIN_CONTENT_CARD_GRID_CLASS, className), children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk63A4GZMBcjs.LoadingItems, { count, children: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: GRID_CELL_CLASS, "data-loading-item": true, children: loadingCardOf(loadingCard, Skeleton) }) }) });
|
|
3568
3568
|
}
|
|
3569
3569
|
function AdminContentCardGrid({
|
|
3570
3570
|
items,
|
|
@@ -3579,8 +3579,8 @@ function AdminContentCardGrid({
|
|
|
3579
3579
|
loadingLabel,
|
|
3580
3580
|
loadingRegion
|
|
3581
3581
|
}) {
|
|
3582
|
-
const gridClass =
|
|
3583
|
-
const loading =
|
|
3582
|
+
const gridClass = _chunk63A4GZMBcjs.cn.call(void 0, ADMIN_CONTENT_CARD_GRID_CLASS, className);
|
|
3583
|
+
const loading = _chunk63A4GZMBcjs.useLoadingScope.call(void 0, ) || loadingProp;
|
|
3584
3584
|
if (loading)
|
|
3585
3585
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3586
3586
|
AdminContentCardGridSkeleton,
|
|
@@ -3594,7 +3594,7 @@ function AdminContentCardGrid({
|
|
|
3594
3594
|
);
|
|
3595
3595
|
const slots = (
|
|
3596
3596
|
// loading-standard-ok(ITEM_MARK): invisible pad slots that hold a short page's height, not items of the list
|
|
3597
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3597
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk63A4GZMBcjs.LoadingItems, { count: Math.max(0, pageSize - items.length), children: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunk63A4GZMBcjs.cn.call(void 0, GRID_CELL_CLASS, "invisible"), children: loadingCardOf(loadingCard, Skeleton) }) })
|
|
3598
3598
|
);
|
|
3599
3599
|
const hasSlots = items.length < pageSize;
|
|
3600
3600
|
if (items.length === 0) {
|
|
@@ -3626,9 +3626,9 @@ function parseChannelFromUrl(url) {
|
|
|
3626
3626
|
return null;
|
|
3627
3627
|
}
|
|
3628
3628
|
function SlackMessageCard({ item, variant = "compact", className, anchorProps }) {
|
|
3629
|
-
if (
|
|
3629
|
+
if (_chunk63A4GZMBcjs.useLoadingScope.call(void 0, )) return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, SlackMessageCardSkeleton, { variant, className });
|
|
3630
3630
|
const channel = _nullishCoalesce(_nullishCoalesce(item.channel, () => ( parseChannelFromUrl(item.url))), () => ( null));
|
|
3631
|
-
const dateText =
|
|
3631
|
+
const dateText = _chunkBOS7OIC4cjs.formatDateUTC.call(void 0, item.dateUpdated, { fallback: "", timezone: "local" });
|
|
3632
3632
|
if (variant === "row") {
|
|
3633
3633
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: `flex min-w-0 items-center gap-3 ${_nullishCoalesce(className, () => ( ""))}`, children: [
|
|
3634
3634
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOWDRZM73cjs.SlackIcon, { className: "h-3.5 w-3.5 shrink-0" }),
|
|
@@ -3654,23 +3654,23 @@ function SlackMessageCard({ item, variant = "compact", className, anchorProps })
|
|
|
3654
3654
|
metaParts.push(
|
|
3655
3655
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "whitespace-nowrap", children: dateText }, "date")
|
|
3656
3656
|
);
|
|
3657
|
-
const href =
|
|
3657
|
+
const href = _chunkY6MJMPHVcjs.safeHref.call(void 0, item.url);
|
|
3658
3658
|
const body = /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
3659
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
3660
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className:
|
|
3661
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
3662
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
3663
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
3659
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkY6MJMPHVcjs.COMPACT_CARD_ICON_SLOT, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOWDRZM73cjs.SlackIcon, { className: "h-5 w-5" }) }),
|
|
3660
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: _chunkY6MJMPHVcjs.COMPACT_CARD_TEXT_COL, children: [
|
|
3661
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkY6MJMPHVcjs.COMPACT_CARD_TITLE_ROW, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkY6MJMPHVcjs.COMPACT_CARD_TITLE, children: item.title }) }),
|
|
3662
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkY6MJMPHVcjs.COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkY6MJMPHVcjs.COMPACT_CARD_SUMMARY, children: item.preview || _chunkY6MJMPHVcjs.COMPACT_CARD_ROW_FILLER }) }),
|
|
3663
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkY6MJMPHVcjs.COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkY6MJMPHVcjs.COMPACT_CARD_META_ROW, children: metaParts.length > 0 ? metaParts.map((part, i) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _react2.default.Fragment, { children: [
|
|
3664
3664
|
i > 0 ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "shrink-0 text-ods-text-secondary/40", children: "\xB7" }) : null,
|
|
3665
3665
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "min-w-0 truncate", children: part })
|
|
3666
|
-
] }, i)) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
3666
|
+
] }, i)) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkY6MJMPHVcjs.COMPACT_CARD_SUMMARY, children: _chunkY6MJMPHVcjs.COMPACT_CARD_ROW_FILLER }) }) })
|
|
3667
3667
|
] }),
|
|
3668
3668
|
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
|
|
3669
3669
|
] });
|
|
3670
3670
|
if (anchorProps) {
|
|
3671
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkV45KLJQPcjs.next_link_default, { ...anchorProps, className: `${
|
|
3671
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkV45KLJQPcjs.next_link_default, { ...anchorProps, className: `${_chunkY6MJMPHVcjs.COMPACT_CARD_OUTER} ${_nullishCoalesce(className, () => ( ""))}`, children: body });
|
|
3672
3672
|
}
|
|
3673
|
-
return href ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkV45KLJQPcjs.next_link_default, { href, target: "_blank", rel: "noopener noreferrer", className: `${
|
|
3673
|
+
return href ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkV45KLJQPcjs.next_link_default, { href, target: "_blank", rel: "noopener noreferrer", className: `${_chunkY6MJMPHVcjs.COMPACT_CARD_OUTER} ${_nullishCoalesce(className, () => ( ""))}`, children: body }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: `${_chunkY6MJMPHVcjs.COMPACT_CARD_OUTER_STATIC} ${_nullishCoalesce(className, () => ( ""))}`, "aria-label": "No link available", children: body });
|
|
3674
3674
|
}
|
|
3675
3675
|
function SlackMessageCardSkeleton({
|
|
3676
3676
|
variant = "compact",
|
|
@@ -3678,11 +3678,11 @@ function SlackMessageCardSkeleton({
|
|
|
3678
3678
|
}) {
|
|
3679
3679
|
if (variant === "row") {
|
|
3680
3680
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3681
|
-
|
|
3681
|
+
_chunkY6MJMPHVcjs.ActivityRowSkeleton,
|
|
3682
3682
|
{
|
|
3683
3683
|
lead: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
3684
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3685
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3684
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3TOWCFIKcjs.UnifiedSkeleton, { className: "h-3.5 w-3.5 shrink-0 rounded" }),
|
|
3685
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3TOWCFIKcjs.UnifiedSkeleton, { className: "h-3 w-32 shrink-0 rounded" })
|
|
3686
3686
|
] }),
|
|
3687
3687
|
trailingWidths: ["w-24", "w-20"],
|
|
3688
3688
|
className
|
|
@@ -3690,7 +3690,7 @@ function SlackMessageCardSkeleton({
|
|
|
3690
3690
|
);
|
|
3691
3691
|
}
|
|
3692
3692
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3693
|
-
|
|
3693
|
+
_chunkY6MJMPHVcjs.CompactCardSkeleton,
|
|
3694
3694
|
{
|
|
3695
3695
|
titleWidth: "w-2/3",
|
|
3696
3696
|
rows: [{ width: "w-5/6" }, { width: "w-1/3" }],
|
|
@@ -3723,15 +3723,15 @@ function statusScheme(status) {
|
|
|
3723
3723
|
return "default";
|
|
3724
3724
|
}
|
|
3725
3725
|
function HubspotTicketCard({ item, variant = "compact", className, anchorProps }) {
|
|
3726
|
-
if (
|
|
3726
|
+
if (_chunk63A4GZMBcjs.useLoadingScope.call(void 0, )) return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, HubspotTicketCardSkeleton, { variant, className });
|
|
3727
3727
|
const statusText = _nullishCoalesce(item.statusLabel, () => ( formatToken(item.status)));
|
|
3728
3728
|
const priorityText = formatToken(item.priority);
|
|
3729
|
-
const dateText =
|
|
3729
|
+
const dateText = _chunkBOS7OIC4cjs.formatDateUTC.call(void 0, item.dateUpdated, { fallback: "", timezone: "local" });
|
|
3730
3730
|
if (variant === "row") {
|
|
3731
3731
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: `flex min-w-0 items-center gap-3 ${_nullishCoalesce(className, () => ( ""))}`, children: [
|
|
3732
3732
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "max-w-[260px] shrink-0 truncate text-ods-text-primary text-h6", children: item.title }),
|
|
3733
3733
|
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,
|
|
3734
|
-
statusText ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3734
|
+
statusText ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkY6MJMPHVcjs.StatusBadge, { text: statusText, variant: "button", colorScheme: statusScheme(item.status) }) : null,
|
|
3735
3735
|
dateText ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "w-24 shrink-0 text-right text-ods-text-secondary text-h6", children: dateText }) : null
|
|
3736
3736
|
] });
|
|
3737
3737
|
}
|
|
@@ -3745,13 +3745,13 @@ function HubspotTicketCard({ item, variant = "compact", className, anchorProps }
|
|
|
3745
3745
|
metaParts.push(
|
|
3746
3746
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "whitespace-nowrap", children: dateText }, "date")
|
|
3747
3747
|
);
|
|
3748
|
-
const href =
|
|
3748
|
+
const href = _chunkY6MJMPHVcjs.safeHref.call(void 0, item.url);
|
|
3749
3749
|
const body = /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
3750
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className:
|
|
3750
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: _chunkY6MJMPHVcjs.COMPACT_CARD_TEXT_COL, children: [
|
|
3751
3751
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "flex min-w-0 flex-wrap items-center gap-1.5", children: [
|
|
3752
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: `${
|
|
3752
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: `${_chunkY6MJMPHVcjs.COMPACT_CARD_TITLE} min-w-0 shrink`, children: item.title }),
|
|
3753
3753
|
priorityText ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3754
|
-
|
|
3754
|
+
_chunkY6MJMPHVcjs.StatusBadge,
|
|
3755
3755
|
{
|
|
3756
3756
|
text: priorityText,
|
|
3757
3757
|
variant: "button",
|
|
@@ -3760,7 +3760,7 @@ function HubspotTicketCard({ item, variant = "compact", className, anchorProps }
|
|
|
3760
3760
|
}
|
|
3761
3761
|
) : null,
|
|
3762
3762
|
statusText ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3763
|
-
|
|
3763
|
+
_chunkY6MJMPHVcjs.StatusBadge,
|
|
3764
3764
|
{
|
|
3765
3765
|
text: statusText,
|
|
3766
3766
|
variant: "button",
|
|
@@ -3774,7 +3774,7 @@ function HubspotTicketCard({ item, variant = "compact", className, anchorProps }
|
|
|
3774
3774
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "min-w-0 truncate", children: item.customerEmail })
|
|
3775
3775
|
] }) : null,
|
|
3776
3776
|
/* @__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." }) }) }),
|
|
3777
|
-
metaParts.length > 0 ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
3777
|
+
metaParts.length > 0 ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkY6MJMPHVcjs.COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkY6MJMPHVcjs.COMPACT_CARD_META_ROW, children: metaParts.map((part, i) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _react2.default.Fragment, { children: [
|
|
3778
3778
|
i > 0 ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "shrink-0 text-ods-text-secondary/40", children: "\xB7" }) : null,
|
|
3779
3779
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "min-w-0 truncate", children: part })
|
|
3780
3780
|
] }, i)) }) }) : null
|
|
@@ -3782,9 +3782,9 @@ function HubspotTicketCard({ item, variant = "compact", className, anchorProps }
|
|
|
3782
3782
|
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
|
|
3783
3783
|
] });
|
|
3784
3784
|
if (anchorProps) {
|
|
3785
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkV45KLJQPcjs.next_link_default, { ...anchorProps, className: `${
|
|
3785
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkV45KLJQPcjs.next_link_default, { ...anchorProps, className: `${_chunkY6MJMPHVcjs.COMPACT_CARD_OUTER} ${_nullishCoalesce(className, () => ( ""))}`, children: body });
|
|
3786
3786
|
}
|
|
3787
|
-
return href ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkV45KLJQPcjs.next_link_default, { href, target: "_blank", rel: "noopener noreferrer", className: `${
|
|
3787
|
+
return href ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkV45KLJQPcjs.next_link_default, { href, target: "_blank", rel: "noopener noreferrer", className: `${_chunkY6MJMPHVcjs.COMPACT_CARD_OUTER} ${_nullishCoalesce(className, () => ( ""))}`, children: body }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: `${_chunkY6MJMPHVcjs.COMPACT_CARD_OUTER_STATIC} ${_nullishCoalesce(className, () => ( ""))}`, "aria-label": "No link available", children: body });
|
|
3788
3788
|
}
|
|
3789
3789
|
function HubspotTicketCardSkeleton({
|
|
3790
3790
|
variant = "compact",
|
|
@@ -3792,14 +3792,14 @@ function HubspotTicketCardSkeleton({
|
|
|
3792
3792
|
}) {
|
|
3793
3793
|
if (variant === "row") {
|
|
3794
3794
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: `flex min-w-0 items-center gap-3 ${_nullishCoalesce(className, () => ( ""))}`, children: [
|
|
3795
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3796
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3797
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3798
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3795
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3TOWCFIKcjs.UnifiedSkeleton, { className: "h-3 w-40 shrink-0 rounded" }),
|
|
3796
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3TOWCFIKcjs.UnifiedSkeleton, { className: "h-3 w-2/3 flex-1 rounded" }),
|
|
3797
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3TOWCFIKcjs.UnifiedSkeleton, { className: "h-3 w-16 shrink-0 rounded" }),
|
|
3798
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3TOWCFIKcjs.UnifiedSkeleton, { className: "h-3 w-20 shrink-0 rounded" })
|
|
3799
3799
|
] });
|
|
3800
3800
|
}
|
|
3801
3801
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3802
|
-
|
|
3802
|
+
_chunkY6MJMPHVcjs.CompactCardSkeleton,
|
|
3803
3803
|
{
|
|
3804
3804
|
slot: false,
|
|
3805
3805
|
titleWidth: "w-2/3",
|
|
@@ -3815,12 +3815,12 @@ function HubspotTicketCardSkeleton({
|
|
|
3815
3815
|
|
|
3816
3816
|
|
|
3817
3817
|
function DataRoomDocCard({ item, className, badgeText, anchorProps }) {
|
|
3818
|
-
if (
|
|
3818
|
+
if (_chunk63A4GZMBcjs.useLoadingScope.call(void 0, )) return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, DataRoomDocCardSkeleton, { className });
|
|
3819
3819
|
const body = /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
3820
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className:
|
|
3820
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: _chunkY6MJMPHVcjs.COMPACT_CARD_TEXT_COL, children: [
|
|
3821
3821
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "flex min-w-0 flex-wrap items-center gap-1.5", children: [
|
|
3822
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: `${
|
|
3823
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3822
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: `${_chunkY6MJMPHVcjs.COMPACT_CARD_TITLE} min-w-0 shrink`, children: item.title }),
|
|
3823
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkY6MJMPHVcjs.StatusBadge, { text: badgeText, variant: "button", colorScheme: "cyan", className: "shrink-0" })
|
|
3824
3824
|
] }),
|
|
3825
3825
|
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: [
|
|
3826
3826
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "shrink-0 text-ods-text-secondary/70", children: "Path:" }),
|
|
@@ -3831,13 +3831,13 @@ function DataRoomDocCard({ item, className, badgeText, anchorProps }) {
|
|
|
3831
3831
|
_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
|
|
3832
3832
|
] });
|
|
3833
3833
|
if (!anchorProps) {
|
|
3834
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: `${
|
|
3834
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: `${_chunkY6MJMPHVcjs.COMPACT_CARD_OUTER_STATIC} ${_nullishCoalesce(className, () => ( ""))}`, "aria-label": "No link available", children: body });
|
|
3835
3835
|
}
|
|
3836
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkV45KLJQPcjs.next_link_default, { ...anchorProps, className: `${
|
|
3836
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkV45KLJQPcjs.next_link_default, { ...anchorProps, className: `${_chunkY6MJMPHVcjs.COMPACT_CARD_OUTER} ${_nullishCoalesce(className, () => ( ""))}`, children: body });
|
|
3837
3837
|
}
|
|
3838
3838
|
function DataRoomDocCardSkeleton({ className }) {
|
|
3839
3839
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3840
|
-
|
|
3840
|
+
_chunkY6MJMPHVcjs.CompactCardSkeleton,
|
|
3841
3841
|
{
|
|
3842
3842
|
slot: false,
|
|
3843
3843
|
titleWidth: "w-2/3",
|
|
@@ -3853,42 +3853,42 @@ function DataRoomDocCardSkeleton({ className }) {
|
|
|
3853
3853
|
|
|
3854
3854
|
|
|
3855
3855
|
function CampaignCardAdmin({ campaign, className, anchorProps }) {
|
|
3856
|
-
if (
|
|
3856
|
+
if (_chunk63A4GZMBcjs.useLoadingScope.call(void 0, )) return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, CampaignCardAdminSkeleton, { className });
|
|
3857
3857
|
const goalsCount = _optionalChain([campaign, 'access', _137 => _137.goals, 'optionalAccess', _138 => _138.length]) || 0;
|
|
3858
3858
|
const innerChildren = /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
3859
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
3860
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className:
|
|
3861
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
3862
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
3863
|
-
campaign.start_date ?
|
|
3859
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkY6MJMPHVcjs.COMPACT_CARD_ICON_SLOT, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.Megaphone, { className: "h-5 w-5" }) }),
|
|
3860
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: _chunkY6MJMPHVcjs.COMPACT_CARD_TEXT_COL, children: [
|
|
3861
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkY6MJMPHVcjs.COMPACT_CARD_TITLE_ROW, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkY6MJMPHVcjs.COMPACT_CARD_TITLE, children: campaign.name }) }),
|
|
3862
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkY6MJMPHVcjs.COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkY6MJMPHVcjs.COMPACT_CARD_SUBTITLE, children: [
|
|
3863
|
+
campaign.start_date ? _chunkGAR2IIU6cjs.formatDateShort.call(void 0, campaign.start_date) : null,
|
|
3864
3864
|
goalsCount > 0 ? `${goalsCount} goal${goalsCount !== 1 ? "s" : ""}` : null,
|
|
3865
3865
|
"Marketing campaign"
|
|
3866
3866
|
].filter(Boolean).join(" \xB7 ") }) }),
|
|
3867
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
3867
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkY6MJMPHVcjs.COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkY6MJMPHVcjs.COMPACT_CARD_SUMMARY, children: campaign.description || _chunkY6MJMPHVcjs.COMPACT_CARD_ROW_FILLER }) })
|
|
3868
3868
|
] })
|
|
3869
3869
|
] });
|
|
3870
3870
|
if (anchorProps) {
|
|
3871
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkV45KLJQPcjs.next_link_default, { ...anchorProps, className: `${
|
|
3871
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkV45KLJQPcjs.next_link_default, { ...anchorProps, className: `${_chunkY6MJMPHVcjs.COMPACT_CARD_OUTER} ${_nullishCoalesce(className, () => ( ""))}`, children: innerChildren });
|
|
3872
3872
|
}
|
|
3873
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: `${
|
|
3873
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: `${_chunkY6MJMPHVcjs.COMPACT_CARD_OUTER_STATIC} ${_nullishCoalesce(className, () => ( ""))}`, "aria-label": "No link available", children: innerChildren });
|
|
3874
3874
|
}
|
|
3875
3875
|
function CampaignCardAdminSkeleton({ className }) {
|
|
3876
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3876
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkY6MJMPHVcjs.CompactCardSkeleton, { rows: [{ width: "w-1/2" }, { width: "w-11/12" }], className });
|
|
3877
3877
|
}
|
|
3878
3878
|
|
|
3879
3879
|
// src/components/chat/entity-cards/generic-entity-card.tsx
|
|
3880
3880
|
|
|
3881
3881
|
|
|
3882
3882
|
function GenericEntityCard({ item, className, anchorProps }) {
|
|
3883
|
-
if (
|
|
3884
|
-
const href =
|
|
3885
|
-
const dateText =
|
|
3883
|
+
if (_chunk63A4GZMBcjs.useLoadingScope.call(void 0, )) return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, GenericEntityCardSkeleton, { className });
|
|
3884
|
+
const href = _chunkY6MJMPHVcjs.safeHref.call(void 0, item.url);
|
|
3885
|
+
const dateText = _chunkBOS7OIC4cjs.formatDateUTC.call(void 0, item.dateUpdated, { fallback: "", timezone: "local" });
|
|
3886
3886
|
const body = /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
3887
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className:
|
|
3887
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: _chunkY6MJMPHVcjs.COMPACT_CARD_TEXT_COL, children: [
|
|
3888
3888
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "flex min-w-0 flex-wrap items-center gap-1.5", children: [
|
|
3889
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: `${
|
|
3889
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: `${_chunkY6MJMPHVcjs.COMPACT_CARD_TITLE} min-w-0 shrink`, children: item.title }),
|
|
3890
3890
|
item.badge ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3891
|
-
|
|
3891
|
+
_chunkY6MJMPHVcjs.StatusBadge,
|
|
3892
3892
|
{
|
|
3893
3893
|
text: item.badge.text,
|
|
3894
3894
|
variant: "button",
|
|
@@ -3906,18 +3906,18 @@ function GenericEntityCard({ item, className, anchorProps }) {
|
|
|
3906
3906
|
] }),
|
|
3907
3907
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "truncate font-medium text-ods-text-primary", children: f.value })
|
|
3908
3908
|
] }, i)) }) : null,
|
|
3909
|
-
dateText ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
3909
|
+
dateText ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkY6MJMPHVcjs.COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkY6MJMPHVcjs.COMPACT_CARD_META_ROW, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "whitespace-nowrap", children: dateText }) }) }) : null
|
|
3910
3910
|
] }),
|
|
3911
3911
|
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
|
|
3912
3912
|
] });
|
|
3913
3913
|
if (anchorProps) {
|
|
3914
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkV45KLJQPcjs.next_link_default, { ...anchorProps, className: `${
|
|
3914
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkV45KLJQPcjs.next_link_default, { ...anchorProps, className: `${_chunkY6MJMPHVcjs.COMPACT_CARD_OUTER} ${_nullishCoalesce(className, () => ( ""))}`, children: body });
|
|
3915
3915
|
}
|
|
3916
|
-
return href ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkV45KLJQPcjs.next_link_default, { href, className: `${
|
|
3916
|
+
return href ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkV45KLJQPcjs.next_link_default, { href, className: `${_chunkY6MJMPHVcjs.COMPACT_CARD_OUTER} ${_nullishCoalesce(className, () => ( ""))}`, children: body }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: `${_chunkY6MJMPHVcjs.COMPACT_CARD_OUTER_STATIC} ${_nullishCoalesce(className, () => ( ""))}`, "aria-label": "No link available", children: body });
|
|
3917
3917
|
}
|
|
3918
3918
|
function GenericEntityCardSkeleton({ className }) {
|
|
3919
3919
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3920
|
-
|
|
3920
|
+
_chunkY6MJMPHVcjs.CompactCardSkeleton,
|
|
3921
3921
|
{
|
|
3922
3922
|
slot: false,
|
|
3923
3923
|
titleWidth: "w-2/3",
|
|
@@ -5036,9 +5036,9 @@ function buildStreamFrames(messages) {
|
|
|
5036
5036
|
|
|
5037
5037
|
function InfoHint({ children, label, side = "top", className }) {
|
|
5038
5038
|
const describedById = _react.useId.call(void 0, );
|
|
5039
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className:
|
|
5039
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: _chunk63A4GZMBcjs.cn.call(void 0, "inline-flex shrink-0 items-center", className), children: [
|
|
5040
5040
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
5041
|
-
|
|
5041
|
+
_chunkBOS7OIC4cjs.FloatingTooltip,
|
|
5042
5042
|
{
|
|
5043
5043
|
content: children,
|
|
5044
5044
|
side,
|
|
@@ -5046,7 +5046,7 @@ function InfoHint({ children, label, side = "top", className }) {
|
|
|
5046
5046
|
triggerClassName: "inline-flex shrink-0 items-center",
|
|
5047
5047
|
className: "text-h6",
|
|
5048
5048
|
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
5049
|
-
|
|
5049
|
+
_chunkFCZAUK4Dcjs.Button,
|
|
5050
5050
|
{
|
|
5051
5051
|
type: "button",
|
|
5052
5052
|
variant: "transparent",
|
|
@@ -5077,9 +5077,9 @@ function Field({ label, hint, required, children, error, labelExtras, labelEnd }
|
|
|
5077
5077
|
};
|
|
5078
5078
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col gap-[var(--spacing-system-xxs)]", children: [
|
|
5079
5079
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center gap-1.5", children: [
|
|
5080
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
5080
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkN3MBQRCQcjs.Label, { htmlFor: controlId, children: [
|
|
5081
5081
|
label,
|
|
5082
|
-
required && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
5082
|
+
required && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkSWF6TNZ3cjs.RequiredMark, {})
|
|
5083
5083
|
] }),
|
|
5084
5084
|
hint && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, InfoHint, { label, children: hint }),
|
|
5085
5085
|
labelExtras,
|
|
@@ -5156,7 +5156,7 @@ function Section({ title, description, children }) {
|
|
|
5156
5156
|
] });
|
|
5157
5157
|
}
|
|
5158
5158
|
function ProxyCredentialsPanel({ description }) {
|
|
5159
|
-
const hydrated =
|
|
5159
|
+
const hydrated = _chunk7ERD34HQcjs.useIsHydrated.call(void 0, );
|
|
5160
5160
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
5161
5161
|
ProxyCredentialsForm,
|
|
5162
5162
|
{
|
|
@@ -5217,13 +5217,13 @@ function ProxyCredentialsForm({ description, saved }) {
|
|
|
5217
5217
|
setStatus("Cleared. Requests use the session again.");
|
|
5218
5218
|
};
|
|
5219
5219
|
const setField = (field, value) => setOptional((prev) => ({ ...prev, [field]: value }));
|
|
5220
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
5220
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkY6MJMPHVcjs.Card, { children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkY6MJMPHVcjs.CardContent, { className: "space-y-[var(--spacing-system-lf)] p-[var(--spacing-system-mf)]", children: [
|
|
5221
5221
|
/* @__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: [
|
|
5222
5222
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { children: [
|
|
5223
5223
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h2", { className: "text-ods-text-primary text-h3", children: "Proxy credentials" }),
|
|
5224
5224
|
description && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-ods-text-secondary text-h6", children: description })
|
|
5225
5225
|
] }),
|
|
5226
|
-
activeEmail && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "self-start", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
5226
|
+
activeEmail && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "self-start", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkY6MJMPHVcjs.StatusBadge, { singleLine: true, colorScheme: "success", text: `Active: ${activeEmail}` }) })
|
|
5227
5227
|
] }),
|
|
5228
5228
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
5229
5229
|
Section,
|
|
@@ -5239,7 +5239,7 @@ function ProxyCredentialsForm({ description, saved }) {
|
|
|
5239
5239
|
hint: "A SERVICE key may act as anyone; a personal key only as its owner.",
|
|
5240
5240
|
labelEnd: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, HeaderName, { children: "Authorization" }),
|
|
5241
5241
|
children: (props) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
5242
|
-
|
|
5242
|
+
_chunkSWF6TNZ3cjs.Input,
|
|
5243
5243
|
{
|
|
5244
5244
|
...props,
|
|
5245
5245
|
type: "password",
|
|
@@ -5260,7 +5260,7 @@ function ProxyCredentialsForm({ description, saved }) {
|
|
|
5260
5260
|
hint: "The end user the requests run as.",
|
|
5261
5261
|
labelEnd: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, HeaderName, { children: "X-Chat-Act-As" }),
|
|
5262
5262
|
children: (props) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
5263
|
-
|
|
5263
|
+
_chunkSWF6TNZ3cjs.Input,
|
|
5264
5264
|
{
|
|
5265
5265
|
...props,
|
|
5266
5266
|
type: "email",
|
|
@@ -5286,7 +5286,7 @@ function ProxyCredentialsForm({ description, saved }) {
|
|
|
5286
5286
|
error: _nullishCoalesce(errors[field], () => ( null)),
|
|
5287
5287
|
labelEnd: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, HeaderName, { children: header }),
|
|
5288
5288
|
children: (props) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
5289
|
-
|
|
5289
|
+
_chunkSWF6TNZ3cjs.Input,
|
|
5290
5290
|
{
|
|
5291
5291
|
...props,
|
|
5292
5292
|
type: _nullishCoalesce(copy.type, () => ( "text")),
|
|
@@ -5311,8 +5311,8 @@ function ProxyCredentialsForm({ description, saved }) {
|
|
|
5311
5311
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-wrap items-center justify-between gap-[var(--spacing-system-sf)]", children: [
|
|
5312
5312
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "text-ods-text-secondary text-h6", children: status }),
|
|
5313
5313
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex gap-[var(--spacing-system-xsf)]", children: [
|
|
5314
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
5315
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
5314
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFCZAUK4Dcjs.Button, { variant: "outline", onClick: clear, disabled: !activeEmail && !secret && !email, children: "Clear" }),
|
|
5315
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFCZAUK4Dcjs.Button, { onClick: save, disabled: !canSave, children: "Save" })
|
|
5316
5316
|
] })
|
|
5317
5317
|
] })
|
|
5318
5318
|
] }) });
|
|
@@ -5320,21 +5320,21 @@ function ProxyCredentialsForm({ description, saved }) {
|
|
|
5320
5320
|
|
|
5321
5321
|
// src/components/chat/index.ts
|
|
5322
5322
|
var LoadedEmbeddableChat = _react.lazy.call(void 0,
|
|
5323
|
-
() => Promise.resolve().then(() => _interopRequireWildcard(require("./embeddable-chat-
|
|
5323
|
+
() => Promise.resolve().then(() => _interopRequireWildcard(require("./embeddable-chat-YRKMPFDY.cjs"))).then((module) => ({ default: module.EmbeddableChat }))
|
|
5324
5324
|
);
|
|
5325
5325
|
var EmbeddableChat = _react.forwardRef.call(void 0, (props, ref) => {
|
|
5326
5326
|
const [loadRequested, setLoadRequested] = _react.useState.call(void 0, false);
|
|
5327
5327
|
const load = loadRequested || Boolean(props.open) || Boolean(props.defaultOpen);
|
|
5328
|
-
_react.useEffect.call(void 0, () =>
|
|
5328
|
+
_react.useEffect.call(void 0, () => _chunk7ERD34HQcjs.holdAskAiOpens.call(void 0, ), []);
|
|
5329
5329
|
_react.useEffect.call(void 0, () => {
|
|
5330
5330
|
if (load) return void 0;
|
|
5331
5331
|
const start = () => setLoadRequested(true);
|
|
5332
|
-
if (
|
|
5333
|
-
for (const name of
|
|
5334
|
-
const cancel =
|
|
5332
|
+
if (_chunk7ERD34HQcjs.askAiOpenIsHeld.call(void 0, )) queueMicrotask(start);
|
|
5333
|
+
for (const name of _chunk7ERD34HQcjs.ASK_AI_OPEN_EVENTS) window.addEventListener(name, start);
|
|
5334
|
+
const cancel = _chunk7ERD34HQcjs.onAskAiIntent.call(void 0, start);
|
|
5335
5335
|
return () => {
|
|
5336
5336
|
cancel();
|
|
5337
|
-
for (const name of
|
|
5337
|
+
for (const name of _chunk7ERD34HQcjs.ASK_AI_OPEN_EVENTS) window.removeEventListener(name, start);
|
|
5338
5338
|
};
|
|
5339
5339
|
}, [load]);
|
|
5340
5340
|
if (!load) return null;
|