@nivaro/react 0.3.20 → 0.3.22
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/full.css +11 -1
- package/dist/hooks/useSessionRecorder.js +1 -1
- package/dist/index.d.ts +2 -0
- package/dist/shared/components/CollectionBrowserView.js +2668 -2613
- package/dist/shared/components/ItemEditForm.js +1501 -1480
- package/dist/shared/components/QueryTable.js +268 -239
- package/dist/shared/components/bulk/PushBulkButtons.js +17 -17
- package/dist/shared/components/bulk/RowPushActions.js +45 -35
- package/dist/shared/components/chat/ChatPanel.js +258 -251
- package/dist/shared/components/help-videos/viewer/HelpVideoButton.js +106 -99
- package/dist/shared/components/item-edit/RecordHeaderActions.js +140 -0
- package/dist/shared/components/item-edit/UserChip.js +1 -1
- package/dist/shared/components/queue/QueueWorklist.js +1026 -1006
- package/package.json +1 -1
- package/styles.css +10 -0
|
@@ -3167,271 +3167,278 @@ body[data-nvr-chat-pinned] [data-nvr-dock-aware] { margin-right: ${Ct}px; }`, do
|
|
|
3167
3167
|
}
|
|
3168
3168
|
)
|
|
3169
3169
|
] }),
|
|
3170
|
-
U === "online" ? /* @__PURE__ */ a(
|
|
3171
|
-
|
|
3172
|
-
|
|
3173
|
-
|
|
3174
|
-
|
|
3175
|
-
|
|
3176
|
-
|
|
3177
|
-
|
|
3178
|
-
/* @__PURE__ */ e(Us, {}),
|
|
3179
|
-
L.length > 0 && /* @__PURE__ */ a("div", { className: "mb-1.5 flex items-center gap-1.5 px-1", children: [
|
|
3180
|
-
/* @__PURE__ */ e("span", { className: "text-[11px] text-slate-400", children: "Group by" }),
|
|
3181
|
-
/* @__PURE__ */ e(
|
|
3182
|
-
Lt,
|
|
3183
|
-
{
|
|
3184
|
-
value: se,
|
|
3185
|
-
onChange: (k) => {
|
|
3186
|
-
de(k);
|
|
3187
|
-
try {
|
|
3188
|
-
localStorage.setItem("nvr_chat_group_by", k);
|
|
3189
|
-
} catch {
|
|
3190
|
-
}
|
|
3191
|
-
},
|
|
3192
|
-
className: "h-6 w-auto rounded border-slate-200 bg-white px-1.5 py-0.5 text-[11px] text-slate-600 dark:border-border dark:bg-card dark:text-slate-300",
|
|
3193
|
-
triggerProps: { "data-chat-group-by": "" },
|
|
3194
|
-
options: [
|
|
3195
|
-
{ value: "", label: "No grouping" },
|
|
3196
|
-
{ value: "__role__", label: "Role" },
|
|
3197
|
-
...c.dimensions.map((k) => ({ value: k.name, label: k.label }))
|
|
3198
|
-
]
|
|
3199
|
-
}
|
|
3200
|
-
)
|
|
3201
|
-
] }),
|
|
3202
|
-
L.length === 0 ? /* @__PURE__ */ e("p", { className: "px-3 py-8 text-center text-[12px] text-slate-400", children: "No one else is online right now." }) : u.map((k) => /* @__PURE__ */ a("div", { "data-chat-online-group": k.key, children: [
|
|
3203
|
-
k.label !== null && /* @__PURE__ */ a("div", { className: "sticky top-0 z-[1] flex items-center gap-1.5 bg-white/95 px-2 py-1 text-[10.5px] font-semibold uppercase tracking-wide text-slate-400 backdrop-blur dark:bg-card/95", children: [
|
|
3204
|
-
k.label,
|
|
3205
|
-
/* @__PURE__ */ e("span", { className: "font-normal normal-case text-slate-300", children: k.users.length })
|
|
3206
|
-
] }),
|
|
3207
|
-
k.users.map((M) => {
|
|
3208
|
-
const P = c.byUser.get(String(M.user_id).toUpperCase()), V = (P == null ? void 0 : P.is_idle) ?? M.is_idle, Ue = P ?? M;
|
|
3209
|
-
return /* @__PURE__ */ a(
|
|
3210
|
-
"div",
|
|
3170
|
+
U === "online" ? /* @__PURE__ */ a(
|
|
3171
|
+
"div",
|
|
3172
|
+
{
|
|
3173
|
+
className: "min-h-0 flex-1 overflow-y-auto px-2 pb-2 [&>:first-child]:mt-2",
|
|
3174
|
+
"data-chat-online": !0,
|
|
3175
|
+
children: [
|
|
3176
|
+
/* @__PURE__ */ e(
|
|
3177
|
+
cl,
|
|
3211
3178
|
{
|
|
3212
|
-
|
|
3213
|
-
|
|
3214
|
-
|
|
3215
|
-
|
|
3216
|
-
|
|
3217
|
-
|
|
3218
|
-
|
|
3219
|
-
|
|
3220
|
-
|
|
3221
|
-
|
|
3222
|
-
|
|
3179
|
+
myStatus: d ? ((we = c.byUser.get(String(d.id).toUpperCase())) == null ? void 0 : we.custom_status) ?? null : null
|
|
3180
|
+
}
|
|
3181
|
+
),
|
|
3182
|
+
/* @__PURE__ */ e(il, {}),
|
|
3183
|
+
/* @__PURE__ */ e(Us, {}),
|
|
3184
|
+
L.length > 0 && /* @__PURE__ */ a("div", { className: "mb-1.5 flex items-center gap-1.5 px-1", children: [
|
|
3185
|
+
/* @__PURE__ */ e("span", { className: "text-[11px] text-slate-400", children: "Group by" }),
|
|
3186
|
+
/* @__PURE__ */ e(
|
|
3187
|
+
Lt,
|
|
3188
|
+
{
|
|
3189
|
+
value: se,
|
|
3190
|
+
onChange: (k) => {
|
|
3191
|
+
de(k);
|
|
3192
|
+
try {
|
|
3193
|
+
localStorage.setItem("nvr_chat_group_by", k);
|
|
3194
|
+
} catch {
|
|
3223
3195
|
}
|
|
3224
|
-
|
|
3225
|
-
|
|
3226
|
-
|
|
3227
|
-
|
|
3228
|
-
|
|
3229
|
-
|
|
3230
|
-
|
|
3231
|
-
|
|
3232
|
-
|
|
3233
|
-
|
|
3234
|
-
|
|
3235
|
-
|
|
3236
|
-
|
|
3237
|
-
|
|
3238
|
-
|
|
3239
|
-
|
|
3240
|
-
|
|
3241
|
-
|
|
3242
|
-
|
|
3243
|
-
|
|
3244
|
-
|
|
3196
|
+
},
|
|
3197
|
+
className: "h-6 w-auto rounded border-slate-200 bg-white px-1.5 py-0.5 text-[11px] text-slate-600 dark:border-border dark:bg-card dark:text-slate-300",
|
|
3198
|
+
triggerProps: { "data-chat-group-by": "" },
|
|
3199
|
+
options: [
|
|
3200
|
+
{ value: "", label: "No grouping" },
|
|
3201
|
+
{ value: "__role__", label: "Role" },
|
|
3202
|
+
...c.dimensions.map((k) => ({ value: k.name, label: k.label }))
|
|
3203
|
+
]
|
|
3204
|
+
}
|
|
3205
|
+
)
|
|
3206
|
+
] }),
|
|
3207
|
+
L.length === 0 ? /* @__PURE__ */ e("p", { className: "px-3 py-8 text-center text-[12px] text-slate-400", children: "No one else is online right now." }) : u.map((k) => /* @__PURE__ */ a("div", { "data-chat-online-group": k.key, children: [
|
|
3208
|
+
k.label !== null && /* @__PURE__ */ a("div", { className: "sticky top-0 z-[1] flex items-center gap-1.5 bg-white px-2 py-1 text-[10.5px] font-semibold uppercase tracking-wide text-slate-400 dark:bg-card", children: [
|
|
3209
|
+
k.label,
|
|
3210
|
+
/* @__PURE__ */ e("span", { className: "font-normal normal-case text-slate-300", children: k.users.length })
|
|
3211
|
+
] }),
|
|
3212
|
+
k.users.map((M) => {
|
|
3213
|
+
const P = c.byUser.get(String(M.user_id).toUpperCase()), V = (P == null ? void 0 : P.is_idle) ?? M.is_idle, Ue = P ?? M;
|
|
3214
|
+
return /* @__PURE__ */ a(
|
|
3215
|
+
"div",
|
|
3216
|
+
{
|
|
3217
|
+
className: "flex w-full items-center rounded-lg pl-2.5 transition-colors hover:bg-slate-50 dark:hover:bg-muted/50",
|
|
3218
|
+
"data-chat-online-row": !0,
|
|
3219
|
+
children: [
|
|
3220
|
+
/* @__PURE__ */ e(Ot, { userId: M.user_id, children: /* @__PURE__ */ e(
|
|
3221
|
+
"button",
|
|
3222
|
+
{
|
|
3223
|
+
type: "button",
|
|
3224
|
+
className: "shrink-0 rounded-full focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-nvr-cyan",
|
|
3225
|
+
"aria-label": `${M.display_name ?? "Unknown user"} — profile`,
|
|
3226
|
+
"data-chat-online-avatar": !0,
|
|
3227
|
+
children: /* @__PURE__ */ e(Y, { id: M.user_id, name: M.display_name })
|
|
3228
|
+
}
|
|
3229
|
+
) }),
|
|
3230
|
+
/* @__PURE__ */ a(
|
|
3231
|
+
"button",
|
|
3232
|
+
{
|
|
3233
|
+
type: "button",
|
|
3234
|
+
onClick: () => Oe(M),
|
|
3235
|
+
title: "Send a direct message",
|
|
3236
|
+
className: "flex min-w-0 flex-1 items-center gap-3 py-2 pl-3 pr-2.5 text-left",
|
|
3237
|
+
children: [
|
|
3238
|
+
/* @__PURE__ */ a("span", { className: "min-w-0 flex-1", children: [
|
|
3239
|
+
/* @__PURE__ */ a("span", { className: "block truncate text-[13px] font-medium text-slate-800 dark:text-slate-100", children: [
|
|
3240
|
+
M.display_name ?? "Unknown user",
|
|
3241
|
+
V && /* @__PURE__ */ e("span", { className: "ml-1.5 rounded-full bg-amber-500/10 px-1.5 py-px text-[10px] font-medium text-amber-700 dark:text-amber-400", children: P != null && P.away ? "Away" : Dt(Ue) }),
|
|
3242
|
+
!V && (P == null ? void 0 : P.stuck) && (() => {
|
|
3243
|
+
const _ = P.stuck, I = c.fields.includes("page"), j = Un(
|
|
3244
|
+
P.current_path,
|
|
3245
|
+
P.app,
|
|
3246
|
+
c.adminUrl,
|
|
3247
|
+
i.recordUrl,
|
|
3248
|
+
typeof window > "u" ? null : window.location.origin
|
|
3249
|
+
), X = `${Dn(_)} — at the keyboard, on the same page, nothing saved for ten minutes${j ? `
|
|
3245
3250
|
${$n(j)}` : ""}`, Q = Dn(
|
|
3246
|
-
|
|
3247
|
-
|
|
3248
|
-
|
|
3249
|
-
|
|
3250
|
-
|
|
3251
|
-
|
|
3252
|
-
|
|
3253
|
-
|
|
3254
|
-
|
|
3255
|
-
|
|
3256
|
-
|
|
3257
|
-
|
|
3258
|
-
|
|
3259
|
-
|
|
3260
|
-
|
|
3261
|
-
|
|
3262
|
-
|
|
3263
|
-
|
|
3264
|
-
|
|
3265
|
-
|
|
3266
|
-
|
|
3267
|
-
|
|
3268
|
-
|
|
3269
|
-
"span",
|
|
3270
|
-
{
|
|
3271
|
-
className: B,
|
|
3272
|
-
"data-chat-stuck": _.minutes,
|
|
3273
|
-
"data-tip": X,
|
|
3274
|
-
children: Q
|
|
3275
|
-
}
|
|
3276
|
-
);
|
|
3277
|
-
})(),
|
|
3278
|
-
(() => {
|
|
3279
|
-
var I;
|
|
3280
|
-
const _ = (I = c.byUser.get(
|
|
3281
|
-
String(M.user_id).toUpperCase()
|
|
3282
|
-
)) == null ? void 0 : I.masquerade;
|
|
3283
|
-
return _ ? /* @__PURE__ */ a(
|
|
3284
|
-
"span",
|
|
3285
|
-
{
|
|
3286
|
-
className: "ml-1.5 rounded-full bg-violet-500/10 px-1.5 py-px text-[10px] font-medium text-violet-700 dark:bg-violet-400/15 dark:text-violet-300",
|
|
3287
|
-
title: `${_.admin_name} is signed in as this person right now`,
|
|
3288
|
-
"data-chat-masquerade": _.admin_id ?? "",
|
|
3289
|
-
children: [
|
|
3290
|
-
_.admin_name,
|
|
3291
|
-
" masquerading"
|
|
3292
|
-
]
|
|
3293
|
-
}
|
|
3294
|
-
) : null;
|
|
3295
|
-
})(),
|
|
3296
|
-
Z && /* @__PURE__ */ e($s, { builds: P == null ? void 0 : P.stale_build })
|
|
3297
|
-
] }),
|
|
3298
|
-
(() => {
|
|
3299
|
-
const _ = c.byUser.get(String(M.user_id).toUpperCase()), I = _ == null ? void 0 : _.custom_status;
|
|
3300
|
-
return !I && !(_ != null && _.in_huddle) ? null : /* @__PURE__ */ a(
|
|
3301
|
-
"span",
|
|
3302
|
-
{
|
|
3303
|
-
className: "flex items-center gap-1 truncate text-[11px] text-slate-500 dark:text-slate-400",
|
|
3304
|
-
"data-chat-status": !0,
|
|
3305
|
-
children: [
|
|
3306
|
-
(_ == null ? void 0 : _.in_huddle) && /* @__PURE__ */ a(
|
|
3251
|
+
I ? { ..._, label: null } : _
|
|
3252
|
+
), B = "ml-1.5 rounded-full bg-orange-500/10 px-1.5 py-px text-[10px] font-medium text-orange-700 dark:text-orange-400";
|
|
3253
|
+
return j ? (
|
|
3254
|
+
// biome-ignore lint/a11y/useSemanticElements: inside the row's DM button, where a nested <a> is invalid
|
|
3255
|
+
/* @__PURE__ */ e(
|
|
3256
|
+
"span",
|
|
3257
|
+
{
|
|
3258
|
+
role: "link",
|
|
3259
|
+
tabIndex: 0,
|
|
3260
|
+
className: g(B, "cursor-pointer hover:underline"),
|
|
3261
|
+
"data-chat-stuck": _.minutes,
|
|
3262
|
+
"data-tip": X,
|
|
3263
|
+
"aria-label": `${Q}: open the page`,
|
|
3264
|
+
onClick: (K) => {
|
|
3265
|
+
K.stopPropagation(), pe(j);
|
|
3266
|
+
},
|
|
3267
|
+
onKeyDown: (K) => {
|
|
3268
|
+
(K.key === "Enter" || K.key === " ") && (K.preventDefault(), K.stopPropagation(), pe(j));
|
|
3269
|
+
},
|
|
3270
|
+
children: Q
|
|
3271
|
+
}
|
|
3272
|
+
)
|
|
3273
|
+
) : /* @__PURE__ */ e(
|
|
3307
3274
|
"span",
|
|
3308
3275
|
{
|
|
3309
|
-
className:
|
|
3310
|
-
"data-chat-
|
|
3311
|
-
"data-tip":
|
|
3312
|
-
children:
|
|
3313
|
-
/* @__PURE__ */ e(Ha, { className: "h-3 w-3", strokeWidth: 2 }),
|
|
3314
|
-
!I && "In a huddle"
|
|
3315
|
-
]
|
|
3276
|
+
className: B,
|
|
3277
|
+
"data-chat-stuck": _.minutes,
|
|
3278
|
+
"data-tip": X,
|
|
3279
|
+
children: Q
|
|
3316
3280
|
}
|
|
3317
|
-
)
|
|
3318
|
-
|
|
3319
|
-
|
|
3320
|
-
|
|
3321
|
-
|
|
3322
|
-
|
|
3323
|
-
|
|
3324
|
-
|
|
3325
|
-
})(),
|
|
3326
|
-
(() => {
|
|
3327
|
-
const _ = c.byUser.get(String(M.user_id).toUpperCase()), I = [];
|
|
3328
|
-
let j = null;
|
|
3329
|
-
for (const Q of c.fields)
|
|
3330
|
-
if (Q === "role") {
|
|
3331
|
-
const B = En((_ == null ? void 0 : _.role_name) ?? M.role_name);
|
|
3332
|
-
B && I.push(B);
|
|
3333
|
-
} else if (Q === "scopes") {
|
|
3334
|
-
const B = ((_ == null ? void 0 : _.scopes) ?? []).join(", ");
|
|
3335
|
-
B && I.push(B);
|
|
3336
|
-
} else if (Q === "page") {
|
|
3337
|
-
const B = (_ == null ? void 0 : _.page) ?? M.page ?? ha((_ == null ? void 0 : _.current_path) ?? M.current_path), K = (_ == null ? void 0 : _.app) ?? M.app;
|
|
3338
|
-
j = (K ? `${B ?? ""}${B ? " · " : ""}${K}`.trim() : B) || null;
|
|
3339
|
-
}
|
|
3340
|
-
const X = I.join(" · ");
|
|
3341
|
-
return !X && !j ? /* @__PURE__ */ e("span", { className: "block truncate text-[11px] text-slate-400", children: "Online" }) : /* @__PURE__ */ a(ve, { children: [
|
|
3342
|
-
X && /* @__PURE__ */ e(
|
|
3343
|
-
"span",
|
|
3344
|
-
{
|
|
3345
|
-
className: "block truncate text-[11px] text-slate-400",
|
|
3346
|
-
"data-chat-online-meta": !0,
|
|
3347
|
-
title: X,
|
|
3348
|
-
children: X
|
|
3349
|
-
}
|
|
3350
|
-
),
|
|
3351
|
-
j && (() => {
|
|
3352
|
-
const Q = Un(
|
|
3353
|
-
_ == null ? void 0 : _.current_path,
|
|
3354
|
-
_ == null ? void 0 : _.app,
|
|
3355
|
-
c.adminUrl,
|
|
3356
|
-
i.recordUrl,
|
|
3357
|
-
typeof window > "u" ? null : window.location.origin
|
|
3358
|
-
), B = /* @__PURE__ */ a(ve, { children: [
|
|
3359
|
-
/* @__PURE__ */ e(as, { className: "mt-[2px] h-3 w-3 shrink-0 text-slate-400" }),
|
|
3360
|
-
/* @__PURE__ */ e("span", { className: "line-clamp-2 min-w-0 break-words", children: j })
|
|
3361
|
-
] });
|
|
3362
|
-
return Q ? (
|
|
3363
|
-
// biome-ignore lint/a11y/useSemanticElements: inside the row's DM button, where a nested <a> is invalid
|
|
3364
|
-
/* @__PURE__ */ e(
|
|
3281
|
+
);
|
|
3282
|
+
})(),
|
|
3283
|
+
(() => {
|
|
3284
|
+
var I;
|
|
3285
|
+
const _ = (I = c.byUser.get(
|
|
3286
|
+
String(M.user_id).toUpperCase()
|
|
3287
|
+
)) == null ? void 0 : I.masquerade;
|
|
3288
|
+
return _ ? /* @__PURE__ */ a(
|
|
3365
3289
|
"span",
|
|
3366
3290
|
{
|
|
3367
|
-
|
|
3368
|
-
|
|
3369
|
-
|
|
3370
|
-
|
|
3371
|
-
|
|
3372
|
-
|
|
3373
|
-
|
|
3374
|
-
onClick: (K) => {
|
|
3375
|
-
K.stopPropagation(), pe(Q);
|
|
3376
|
-
},
|
|
3377
|
-
onKeyDown: (K) => {
|
|
3378
|
-
(K.key === "Enter" || K.key === " ") && (K.preventDefault(), K.stopPropagation(), pe(Q));
|
|
3379
|
-
},
|
|
3380
|
-
children: B
|
|
3291
|
+
className: "ml-1.5 rounded-full bg-violet-500/10 px-1.5 py-px text-[10px] font-medium text-violet-700 dark:bg-violet-400/15 dark:text-violet-300",
|
|
3292
|
+
title: `${_.admin_name} is signed in as this person right now`,
|
|
3293
|
+
"data-chat-masquerade": _.admin_id ?? "",
|
|
3294
|
+
children: [
|
|
3295
|
+
_.admin_name,
|
|
3296
|
+
" masquerading"
|
|
3297
|
+
]
|
|
3381
3298
|
}
|
|
3382
|
-
)
|
|
3383
|
-
)
|
|
3299
|
+
) : null;
|
|
3300
|
+
})(),
|
|
3301
|
+
Z && /* @__PURE__ */ e($s, { builds: P == null ? void 0 : P.stale_build })
|
|
3302
|
+
] }),
|
|
3303
|
+
(() => {
|
|
3304
|
+
const _ = c.byUser.get(String(M.user_id).toUpperCase()), I = _ == null ? void 0 : _.custom_status;
|
|
3305
|
+
return !I && !(_ != null && _.in_huddle) ? null : /* @__PURE__ */ a(
|
|
3384
3306
|
"span",
|
|
3385
3307
|
{
|
|
3386
|
-
className: "flex items-
|
|
3387
|
-
"data-chat-
|
|
3388
|
-
|
|
3389
|
-
|
|
3308
|
+
className: "flex items-center gap-1 truncate text-[11px] text-slate-500 dark:text-slate-400",
|
|
3309
|
+
"data-chat-status": !0,
|
|
3310
|
+
children: [
|
|
3311
|
+
(_ == null ? void 0 : _.in_huddle) && /* @__PURE__ */ a(
|
|
3312
|
+
"span",
|
|
3313
|
+
{
|
|
3314
|
+
className: "inline-flex shrink-0 items-center gap-0.5 text-nvr-navy dark:text-nvr-cyan",
|
|
3315
|
+
"data-chat-in-huddle": !0,
|
|
3316
|
+
"data-tip": "In a huddle right now",
|
|
3317
|
+
children: [
|
|
3318
|
+
/* @__PURE__ */ e(Ha, { className: "h-3 w-3", strokeWidth: 2 }),
|
|
3319
|
+
!I && "In a huddle"
|
|
3320
|
+
]
|
|
3321
|
+
}
|
|
3322
|
+
),
|
|
3323
|
+
I && /* @__PURE__ */ a("span", { className: "truncate italic", children: [
|
|
3324
|
+
I.emoji ? `${I.emoji} ` : "",
|
|
3325
|
+
I.text
|
|
3326
|
+
] })
|
|
3327
|
+
]
|
|
3390
3328
|
}
|
|
3391
3329
|
);
|
|
3330
|
+
})(),
|
|
3331
|
+
(() => {
|
|
3332
|
+
const _ = c.byUser.get(String(M.user_id).toUpperCase()), I = [];
|
|
3333
|
+
let j = null;
|
|
3334
|
+
for (const Q of c.fields)
|
|
3335
|
+
if (Q === "role") {
|
|
3336
|
+
const B = En((_ == null ? void 0 : _.role_name) ?? M.role_name);
|
|
3337
|
+
B && I.push(B);
|
|
3338
|
+
} else if (Q === "scopes") {
|
|
3339
|
+
const B = ((_ == null ? void 0 : _.scopes) ?? []).join(", ");
|
|
3340
|
+
B && I.push(B);
|
|
3341
|
+
} else if (Q === "page") {
|
|
3342
|
+
const B = (_ == null ? void 0 : _.page) ?? M.page ?? ha((_ == null ? void 0 : _.current_path) ?? M.current_path), K = (_ == null ? void 0 : _.app) ?? M.app;
|
|
3343
|
+
j = (K ? `${B ?? ""}${B ? " · " : ""}${K}`.trim() : B) || null;
|
|
3344
|
+
}
|
|
3345
|
+
const X = I.join(" · ");
|
|
3346
|
+
return !X && !j ? /* @__PURE__ */ e("span", { className: "block truncate text-[11px] text-slate-400", children: "Online" }) : /* @__PURE__ */ a(ve, { children: [
|
|
3347
|
+
X && /* @__PURE__ */ e(
|
|
3348
|
+
"span",
|
|
3349
|
+
{
|
|
3350
|
+
className: "block truncate text-[11px] text-slate-400",
|
|
3351
|
+
"data-chat-online-meta": !0,
|
|
3352
|
+
title: X,
|
|
3353
|
+
children: X
|
|
3354
|
+
}
|
|
3355
|
+
),
|
|
3356
|
+
j && (() => {
|
|
3357
|
+
const Q = Un(
|
|
3358
|
+
_ == null ? void 0 : _.current_path,
|
|
3359
|
+
_ == null ? void 0 : _.app,
|
|
3360
|
+
c.adminUrl,
|
|
3361
|
+
i.recordUrl,
|
|
3362
|
+
typeof window > "u" ? null : window.location.origin
|
|
3363
|
+
), B = /* @__PURE__ */ a(ve, { children: [
|
|
3364
|
+
/* @__PURE__ */ e(as, { className: "mt-[2px] h-3 w-3 shrink-0 text-slate-400" }),
|
|
3365
|
+
/* @__PURE__ */ e("span", { className: "line-clamp-2 min-w-0 break-words", children: j })
|
|
3366
|
+
] });
|
|
3367
|
+
return Q ? (
|
|
3368
|
+
// biome-ignore lint/a11y/useSemanticElements: inside the row's DM button, where a nested <a> is invalid
|
|
3369
|
+
/* @__PURE__ */ e(
|
|
3370
|
+
"span",
|
|
3371
|
+
{
|
|
3372
|
+
role: "link",
|
|
3373
|
+
tabIndex: 0,
|
|
3374
|
+
className: "-mx-1 flex w-fit max-w-full cursor-pointer items-start gap-1 rounded px-1 text-[11px] text-slate-500 hover:bg-slate-100 hover:text-nvr-cyan hover:underline dark:text-slate-300 dark:hover:bg-muted",
|
|
3375
|
+
"data-chat-online-page": !0,
|
|
3376
|
+
"data-chat-online-page-href": Q,
|
|
3377
|
+
"data-tip": $n(Q),
|
|
3378
|
+
"aria-label": `${j}: open the page`,
|
|
3379
|
+
onClick: (K) => {
|
|
3380
|
+
K.stopPropagation(), pe(Q);
|
|
3381
|
+
},
|
|
3382
|
+
onKeyDown: (K) => {
|
|
3383
|
+
(K.key === "Enter" || K.key === " ") && (K.preventDefault(), K.stopPropagation(), pe(Q));
|
|
3384
|
+
},
|
|
3385
|
+
children: B
|
|
3386
|
+
}
|
|
3387
|
+
)
|
|
3388
|
+
) : /* @__PURE__ */ e(
|
|
3389
|
+
"span",
|
|
3390
|
+
{
|
|
3391
|
+
className: "flex items-start gap-1 text-[11px] text-slate-500 dark:text-slate-300",
|
|
3392
|
+
"data-chat-online-page": !0,
|
|
3393
|
+
"data-tip": (_ == null ? void 0 : _.current_path) ?? j,
|
|
3394
|
+
children: B
|
|
3395
|
+
}
|
|
3396
|
+
);
|
|
3397
|
+
})()
|
|
3398
|
+
] });
|
|
3392
3399
|
})()
|
|
3393
|
-
] })
|
|
3394
|
-
|
|
3395
|
-
|
|
3396
|
-
|
|
3397
|
-
|
|
3398
|
-
|
|
3399
|
-
|
|
3400
|
-
|
|
3401
|
-
|
|
3402
|
-
|
|
3403
|
-
|
|
3404
|
-
|
|
3405
|
-
|
|
3406
|
-
|
|
3407
|
-
|
|
3408
|
-
|
|
3409
|
-
|
|
3410
|
-
|
|
3411
|
-
|
|
3412
|
-
|
|
3413
|
-
|
|
3414
|
-
|
|
3415
|
-
}
|
|
3416
|
-
|
|
3417
|
-
|
|
3418
|
-
|
|
3419
|
-
|
|
3420
|
-
|
|
3421
|
-
|
|
3422
|
-
|
|
3423
|
-
|
|
3424
|
-
|
|
3425
|
-
|
|
3426
|
-
|
|
3427
|
-
|
|
3428
|
-
|
|
3429
|
-
|
|
3430
|
-
|
|
3431
|
-
)
|
|
3432
|
-
|
|
3433
|
-
|
|
3434
|
-
|
|
3400
|
+
] }),
|
|
3401
|
+
(() => {
|
|
3402
|
+
var Q;
|
|
3403
|
+
const _ = c.byUser.get(String(M.user_id).toUpperCase());
|
|
3404
|
+
if (!Z || !(_ != null && _.recording_id)) return null;
|
|
3405
|
+
const I = ((Q = c.adminUrl) == null ? void 0 : Q.replace(/\/$/, "")) ?? "", j = !!I && (typeof window > "u" || new URL(I, window.location.origin).origin !== window.location.origin), X = i.sessionUrl ? i.sessionUrl(_.recording_id, String(M.user_id)) : j ? `${I}/session-replays?recording=${_.recording_id}` : null;
|
|
3406
|
+
return X ? /* @__PURE__ */ e(
|
|
3407
|
+
"span",
|
|
3408
|
+
{
|
|
3409
|
+
role: "link",
|
|
3410
|
+
tabIndex: 0,
|
|
3411
|
+
title: "Watch this session",
|
|
3412
|
+
onClick: (B) => {
|
|
3413
|
+
B.stopPropagation(), pe(X);
|
|
3414
|
+
},
|
|
3415
|
+
onKeyDown: (B) => {
|
|
3416
|
+
(B.key === "Enter" || B.key === " ") && (B.stopPropagation(), pe(X));
|
|
3417
|
+
},
|
|
3418
|
+
className: "shrink-0 rounded p-1 text-slate-300 transition-colors hover:bg-slate-100 hover:text-nvr-cyan dark:hover:bg-muted",
|
|
3419
|
+
children: /* @__PURE__ */ e(Ga, { className: "h-4 w-4", strokeWidth: 1.8 })
|
|
3420
|
+
}
|
|
3421
|
+
) : null;
|
|
3422
|
+
})(),
|
|
3423
|
+
/* @__PURE__ */ e(
|
|
3424
|
+
zn,
|
|
3425
|
+
{
|
|
3426
|
+
className: "h-4 w-4 shrink-0 text-slate-300",
|
|
3427
|
+
strokeWidth: 1.8
|
|
3428
|
+
}
|
|
3429
|
+
)
|
|
3430
|
+
]
|
|
3431
|
+
}
|
|
3432
|
+
)
|
|
3433
|
+
]
|
|
3434
|
+
},
|
|
3435
|
+
M.user_id
|
|
3436
|
+
);
|
|
3437
|
+
})
|
|
3438
|
+
] }, k.key))
|
|
3439
|
+
]
|
|
3440
|
+
}
|
|
3441
|
+
) : U === "archived" ? G ? /* @__PURE__ */ e(
|
|
3435
3442
|
jn,
|
|
3436
3443
|
{
|
|
3437
3444
|
room: G.room,
|