@nivaro/react 0.3.137 → 0.3.138

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.
Files changed (49) hide show
  1. package/dist/full.css +1 -1
  2. package/dist/hooks/useSessionRecorder.js +1 -1
  3. package/dist/index.d.ts +95 -4
  4. package/dist/index.js +748 -743
  5. package/dist/shared/components/CollectionBrowserView.js +392 -389
  6. package/dist/shared/components/DelegateCoverLine.js +80 -87
  7. package/dist/shared/components/ItemEditForm.js +589 -588
  8. package/dist/shared/components/MyWorkView.js +284 -286
  9. package/dist/shared/components/NotificationBell.js +251 -205
  10. package/dist/shared/components/ai/AiAnalyticsView.js +878 -417
  11. package/dist/shared/components/ai/AiPlanCard.js +164 -122
  12. package/dist/shared/components/ai/AiPlanUndo.js +291 -0
  13. package/dist/shared/components/ai/call-log/CallDrawer.js +357 -0
  14. package/dist/shared/components/ai/call-log/RawJson.js +126 -0
  15. package/dist/shared/components/ai/call-log/ThreadView.js +223 -0
  16. package/dist/shared/components/ai/call-log/TranscriptView.js +227 -0
  17. package/dist/shared/components/ai/call-log/controls.js +364 -0
  18. package/dist/shared/components/ai/call-log/format.js +46 -0
  19. package/dist/shared/components/ai/call-log/url.js +105 -0
  20. package/dist/shared/components/chat/chat-core.js +422 -346
  21. package/dist/shared/components/integrations/IntegrationObligationsView.js +98 -98
  22. package/dist/shared/components/integrations/RecordIntegrationPreview.js +102 -93
  23. package/dist/shared/components/integrations/console/api.js +11 -1
  24. package/dist/shared/components/item-edit/HeaderRollupExplainer.js +5 -1
  25. package/dist/shared/components/item-edit/RecordLiveSync.js +241 -229
  26. package/dist/shared/components/item-edit/RecordRecapChanges.js +166 -0
  27. package/dist/shared/components/item-edit/RecordRecapStrip.js +254 -84
  28. package/dist/shared/components/item-edit/live-related.js +34 -18
  29. package/dist/shared/components/panels/RevisionsPanel.js +735 -683
  30. package/dist/shared/components/queue/QueueWorklist.js +323 -316
  31. package/dist/shared/components/support/SupportRequestDialog.js +198 -181
  32. package/dist/shared/components/trackers/use-tracker-link.js +74 -65
  33. package/dist/shared/lib/config-update-refresh.js +34 -0
  34. package/dist/shared/lib/config-watch.js +17 -17
  35. package/dist/shared/lib/gap-refresh.js +49 -0
  36. package/dist/shared/lib/integration-dots.js +8 -8
  37. package/dist/shared/lib/live-ops.js +26 -23
  38. package/dist/shared/lib/live-pickers.js +1 -1
  39. package/dist/shared/lib/live-queries.js +223 -195
  40. package/dist/shared/lib/live.js +56 -51
  41. package/dist/shared/lib/obligation-banner.js +11 -10
  42. package/dist/shared/lib/obligation-filters.js +22 -18
  43. package/dist/shared/lib/obligation-reason-text.js +18 -8
  44. package/dist/shared/lib/presence-hooks.js +133 -132
  45. package/dist/shared/lib/reconnect-resync.js +90 -0
  46. package/dist/shared/lib/record-room-holds.js +43 -0
  47. package/dist/shared/lib/socket-realtime.js +116 -105
  48. package/dist/shared/lib/user-sync.js +1 -6
  49. package/package.json +1 -1
@@ -1,7 +1,7 @@
1
1
  import { jsx as t, jsxs as a } from "react/jsx-runtime";
2
2
  import { useQueryClient as z, useQuery as G, useMutation as H } from "@tanstack/react-query";
3
- import { Loader2 as W, Paperclip as X, X as B } from "lucide-react";
4
- import { useState as l, useRef as $, useEffect as I } from "react";
3
+ import { Loader2 as $, Paperclip as X, X as B } from "lucide-react";
4
+ import { useState as s, useRef as L, useEffect as A } from "react";
5
5
  import { useNivaroClient as J } from "../../context.js";
6
6
  import { get as V, post as Z } from "../../lib/commands.js";
7
7
  import { invalidateRecordTasks as O } from "../../lib/record-tasks.js";
@@ -10,43 +10,43 @@ import { installReplayTail as te } from "../../lib/replay-tail.js";
10
10
  import { Dialog as re, DialogContent as ae, DialogHeader as ne, DialogTitle as le, DialogDescription as se } from "../ui/dialog.js";
11
11
  import { collectSupportContext as oe } from "./support-context.js";
12
12
  function be({
13
- open: s,
13
+ open: o,
14
14
  onOpenChange: c,
15
15
  collection: d,
16
16
  item: p,
17
- recordLabel: A,
18
- initialTitle: f,
19
- initialDescription: g,
17
+ recordLabel: T,
18
+ initialTitle: g,
19
+ initialDescription: y,
20
20
  source: Q,
21
- onCreated: y
21
+ onCreated: b
22
22
  }) {
23
- const m = J(), i = z(), n = !!d && p != null && p !== "", [u, T] = l(null), [b, v] = l(""), [E, k] = l(""), [w, N] = l([]), [K, F] = l(!1), [M, x] = l(null), [P, j] = l(!0), q = $(null), C = $(!1);
24
- I(() => {
23
+ const m = J(), i = z(), l = !!d && p != null && p !== "", [u, E] = s(null), [v, k] = s(""), [F, w] = s(""), [N, q] = s([]), [K, M] = s(!1), [P, x] = s(null), [j, U] = s(!0), S = L(null), C = L(!1);
24
+ A(() => {
25
25
  te();
26
- }, []), I(() => {
27
- s && (f && v((e) => e || f), g && k((e) => e || g));
28
- }, [s, f, g]), I(() => {
29
- if (!s) {
30
- q.current = null;
26
+ }, []), A(() => {
27
+ o && (g && k((e) => e || g), y && w((e) => e || y));
28
+ }, [o, g, y]), A(() => {
29
+ if (!o) {
30
+ S.current = null;
31
31
  return;
32
32
  }
33
- q.current = {
33
+ S.current = {
34
34
  clip: ee("support"),
35
35
  route: typeof window < "u" ? window.location.pathname : ""
36
36
  };
37
- }, [s]);
38
- const { data: S = [] } = G({
39
- queryKey: ["support-categories", n ? d : null],
37
+ }, [o]);
38
+ const { data: R = [] } = G({
39
+ queryKey: ["support-categories", l ? d : null],
40
40
  queryFn: () => m.request(
41
- V("/support/categories", n ? { collection: d } : void 0)
41
+ V("/support/categories", l ? { collection: d } : void 0)
42
42
  ).then((e) => e.data ?? []),
43
- enabled: s
44
- }), R = () => {
45
- T(null), v(""), k(""), N([]), x(null), j(!0);
43
+ enabled: o
44
+ }), D = () => {
45
+ E(null), k(""), w(""), q([]), x(null), U(!0);
46
46
  };
47
- async function L() {
48
- if (!P) return { fileId: null, replay: null };
49
- const e = q.current;
47
+ async function Y() {
48
+ if (!j) return { fileId: null, replay: null };
49
+ const e = S.current;
50
50
  return oe({
51
51
  clip: (e == null ? void 0 : e.clip) ?? null,
52
52
  route: (e == null ? void 0 : e.route) ?? (typeof window < "u" ? window.location.pathname : ""),
@@ -54,30 +54,30 @@ function be({
54
54
  userAgent: typeof navigator < "u" ? navigator.userAgent : null
55
55
  });
56
56
  }
57
- const D = H({
57
+ const I = H({
58
58
  mutationFn: async () => {
59
- const e = await L();
59
+ const e = await Y();
60
60
  return m.request(
61
61
  Z("/support/tickets", {
62
- title: b.trim(),
63
- description: E.trim() || null,
62
+ title: v.trim(),
63
+ description: F.trim() || null,
64
64
  category_id: u,
65
- collection: n ? d : null,
66
- item: n ? String(p) : null,
67
- attachments: [...w.map((r) => r.id), ...e.fileId ? [e.fileId] : []],
65
+ collection: l ? d : null,
66
+ item: l ? String(p) : null,
67
+ attachments: [...N.map((r) => r.id), ...e.fileId ? [e.fileId] : []],
68
68
  ...e.replay ? { replay: e.replay } : {},
69
69
  ...Q ? { source: Q } : {}
70
70
  })
71
71
  );
72
72
  },
73
73
  onSuccess: (e) => {
74
- i.invalidateQueries({ queryKey: ["support-tickets"] }), i.invalidateQueries({ queryKey: ["support-summary"] }), n && O(i, d, p), y == null || y(e.data), R(), c(!1);
74
+ i.invalidateQueries({ queryKey: ["support-tickets"] }), i.invalidateQueries({ queryKey: ["support-summary"] }), l && O(i, d, p), b == null || b(e.data), D(), c(!1);
75
75
  },
76
76
  onError: (e) => {
77
- var o;
77
+ var n;
78
78
  const r = e.response;
79
- if ((((o = r == null ? void 0 : r.data) == null ? void 0 : o.code) ?? (r == null ? void 0 : r.code)) === "DUPLICATE_REQUEST") {
80
- i.invalidateQueries({ queryKey: ["support-tickets"] }), i.invalidateQueries({ queryKey: ["support-summary"] }), R(), c(!1);
79
+ if ((((n = r == null ? void 0 : r.data) == null ? void 0 : n.code) ?? (r == null ? void 0 : r.code)) === "DUPLICATE_REQUEST") {
80
+ i.invalidateQueries({ queryKey: ["support-tickets"] }), i.invalidateQueries({ queryKey: ["support-summary"] }), D(), c(!1);
81
81
  return;
82
82
  }
83
83
  x(e.message || "Could not send the request");
@@ -86,175 +86,192 @@ function be({
86
86
  C.current = !1;
87
87
  }
88
88
  });
89
- async function Y(e) {
89
+ async function _(e) {
90
90
  if (e != null && e.length) {
91
- F(!0), x(null);
91
+ M(!0), x(null);
92
92
  try {
93
93
  for (const r of Array.from(e).slice(0, 10)) {
94
- const o = await m.upload(r);
95
- N((_) => [..._, { id: String(o.id), name: r.name }]);
94
+ const n = await m.upload(r);
95
+ q((h) => [...h, { id: String(n.id), name: r.name }]);
96
96
  }
97
97
  } catch {
98
98
  x("A file could not be uploaded");
99
99
  } finally {
100
- F(!1);
100
+ M(!1);
101
101
  }
102
102
  }
103
103
  }
104
- const h = S.find((e) => e.id === u) ?? null, U = b.trim().length > 0 && !D.isPending && !K;
104
+ const f = R.find((e) => e.id === u) ?? null, W = v.trim().length > 0 && !I.isPending && !K;
105
105
  return /* @__PURE__ */ t(
106
106
  re,
107
107
  {
108
- open: s,
108
+ open: o,
109
109
  onOpenChange: (e) => {
110
- e || R(), c(e);
110
+ e || D(), c(e);
111
111
  },
112
- children: /* @__PURE__ */ a(ae, { className: "max-w-xl dark:bg-card", "data-support-request": !0, children: [
113
- /* @__PURE__ */ a(ne, { className: "px-6 pt-5", children: [
114
- /* @__PURE__ */ t(le, { className: "text-[15px] font-semibold text-slate-900 dark:text-slate-100", children: n ? `Request a change${A ? ` · ${A}` : ""}` : "Get help" }),
115
- /* @__PURE__ */ t(se, { className: "text-[12.5px] text-slate-500 dark:text-muted-foreground", children: n ? "Tell the administrators what needs to change on this record. You can follow the request under My requests." : "Ask the administrators for help. You can follow the request under My requests." })
116
- ] }),
117
- /* @__PURE__ */ a(
118
- "form",
119
- {
120
- className: "space-y-4 px-6 pb-5 pt-3",
121
- onSubmit: (e) => {
122
- e.preventDefault(), !(!U || C.current) && (C.current = !0, D.mutate());
123
- },
124
- children: [
125
- S.length > 0 && /* @__PURE__ */ a("fieldset", { children: [
126
- /* @__PURE__ */ t("legend", { className: "mb-1.5 text-[12px] font-medium text-slate-700 dark:text-slate-200", children: "What kind of request?" }),
127
- /* @__PURE__ */ t("div", { className: "flex flex-wrap gap-1.5", "data-support-types": !0, children: S.map((e) => /* @__PURE__ */ t(
128
- "button",
129
- {
130
- type: "button",
131
- "data-support-type": e.id,
132
- "aria-pressed": u === e.id,
133
- onClick: () => T(u === e.id ? null : e.id),
134
- className: u === e.id ? "rounded-full border border-nvr-cyan/60 bg-nvr-cyan/10 px-2.5 py-1 text-[12px] font-medium text-nvr-navy dark:text-nvr-cyan" : "rounded-full border border-slate-200 px-2.5 py-1 text-[12px] text-slate-600 hover:border-slate-300 dark:border-border dark:text-slate-300",
135
- children: e.name
136
- },
137
- e.id
138
- )) }),
139
- (h == null ? void 0 : h.description) && /* @__PURE__ */ t("p", { className: "mt-1.5 text-[11.5px] text-slate-500 dark:text-muted-foreground", children: h.description })
140
- ] }),
141
- /* @__PURE__ */ a("label", { className: "block", children: [
142
- /* @__PURE__ */ t("span", { className: "mb-1 block text-[12px] font-medium text-slate-700 dark:text-slate-200", children: "Summary" }),
143
- /* @__PURE__ */ t(
144
- "input",
145
- {
146
- "data-support-title": !0,
147
- value: b,
148
- onChange: (e) => v(e.target.value),
149
- maxLength: 200,
150
- placeholder: n ? "e.g. Move to funding year 2027" : "e.g. I need access to the National zone",
151
- className: "h-9 w-full rounded-md border border-slate-200 bg-white px-3 text-[13px] text-slate-900 outline-none focus:border-nvr-cyan dark:border-border dark:bg-background dark:text-slate-100"
152
- }
153
- )
154
- ] }),
155
- /* @__PURE__ */ a("label", { className: "block", children: [
156
- /* @__PURE__ */ t("span", { className: "mb-1 block text-[12px] font-medium text-slate-700 dark:text-slate-200", children: "Details" }),
157
- /* @__PURE__ */ t(
158
- "textarea",
159
- {
160
- "data-support-description": !0,
161
- value: E,
162
- onChange: (e) => k(e.target.value),
163
- rows: 5,
164
- placeholder: "What should change, and why",
165
- className: "w-full rounded-md border border-slate-200 bg-white px-3 py-2 text-[13px] text-slate-900 outline-none focus:border-nvr-cyan dark:border-border dark:bg-background dark:text-slate-100"
166
- }
167
- )
168
- ] }),
169
- /* @__PURE__ */ a("div", { children: [
170
- /* @__PURE__ */ a("label", { className: "inline-flex cursor-pointer items-center gap-1.5 text-[12px] font-medium text-slate-600 hover:text-slate-900 dark:text-slate-300 dark:hover:text-slate-100", children: [
171
- K ? /* @__PURE__ */ t(W, { className: "h-3.5 w-3.5 animate-spin" }) : /* @__PURE__ */ t(X, { className: "h-3.5 w-3.5" }),
172
- "Attach files",
173
- /* @__PURE__ */ t(
174
- "input",
175
- {
176
- type: "file",
177
- multiple: !0,
178
- className: "hidden",
179
- "data-support-files": !0,
180
- onChange: (e) => {
181
- Y(e.target.files), e.target.value = "";
112
+ children: /* @__PURE__ */ a(
113
+ ae,
114
+ {
115
+ className: "max-w-xl dark:bg-card",
116
+ "data-support-request": !0,
117
+ onOpenAutoFocus: (e) => {
118
+ var h;
119
+ const r = (h = e.currentTarget) == null ? void 0 : h.querySelector(
120
+ "input[data-support-title]"
121
+ );
122
+ if (!r) return;
123
+ e.preventDefault(), r.focus({ preventScroll: !0 });
124
+ const n = r.value.length;
125
+ r.setSelectionRange(n, n);
126
+ },
127
+ children: [
128
+ /* @__PURE__ */ a(ne, { className: "px-6 pt-5", children: [
129
+ /* @__PURE__ */ t(le, { className: "text-[15px] font-semibold text-slate-900 dark:text-slate-100", children: l ? `Request a change${T ? ` · ${T}` : ""}` : "Get help" }),
130
+ /* @__PURE__ */ t(se, { className: "text-[12.5px] text-slate-500 dark:text-muted-foreground", children: l ? "Tell the administrators what needs to change on this record. You can follow the request under My requests." : "Ask the administrators for help. You can follow the request under My requests." })
131
+ ] }),
132
+ /* @__PURE__ */ a(
133
+ "form",
134
+ {
135
+ className: "space-y-4 px-6 pb-5 pt-3",
136
+ onSubmit: (e) => {
137
+ e.preventDefault(), !(!W || C.current) && (C.current = !0, I.mutate());
138
+ },
139
+ children: [
140
+ R.length > 0 && /* @__PURE__ */ a("fieldset", { children: [
141
+ /* @__PURE__ */ t("legend", { className: "mb-1.5 text-[12px] font-medium text-slate-700 dark:text-slate-200", children: "What kind of request?" }),
142
+ /* @__PURE__ */ t("div", { className: "flex flex-wrap gap-1.5", "data-support-types": !0, children: R.map((e) => /* @__PURE__ */ t(
143
+ "button",
144
+ {
145
+ type: "button",
146
+ "data-support-type": e.id,
147
+ "aria-pressed": u === e.id,
148
+ onClick: () => E(u === e.id ? null : e.id),
149
+ className: u === e.id ? "rounded-full border border-nvr-cyan/60 bg-nvr-cyan/10 px-2.5 py-1 text-[12px] font-medium text-nvr-navy dark:text-nvr-cyan" : "rounded-full border border-slate-200 px-2.5 py-1 text-[12px] text-slate-600 hover:border-slate-300 dark:border-border dark:text-slate-300",
150
+ children: e.name
151
+ },
152
+ e.id
153
+ )) }),
154
+ (f == null ? void 0 : f.description) && /* @__PURE__ */ t("p", { className: "mt-1.5 text-[11.5px] text-slate-500 dark:text-muted-foreground", children: f.description })
155
+ ] }),
156
+ /* @__PURE__ */ a("label", { className: "block", children: [
157
+ /* @__PURE__ */ t("span", { className: "mb-1 block text-[12px] font-medium text-slate-700 dark:text-slate-200", children: "Summary" }),
158
+ /* @__PURE__ */ t(
159
+ "input",
160
+ {
161
+ "data-support-title": !0,
162
+ value: v,
163
+ onChange: (e) => k(e.target.value),
164
+ maxLength: 200,
165
+ placeholder: l ? "e.g. Move to funding year 2027" : "e.g. I need access to the National zone",
166
+ className: "h-9 w-full rounded-md border border-slate-200 bg-white px-3 text-[13px] text-slate-900 outline-none focus:border-nvr-cyan dark:border-border dark:bg-background dark:text-slate-100"
182
167
  }
183
- }
184
- )
185
- ] }),
186
- w.length > 0 && /* @__PURE__ */ t("ul", { className: "mt-1.5 flex flex-wrap gap-1.5", children: w.map((e) => /* @__PURE__ */ a(
187
- "li",
188
- {
189
- className: "inline-flex items-center gap-1 rounded bg-slate-100 px-2 py-0.5 text-[11.5px] text-slate-700 dark:bg-white/10 dark:text-slate-200",
190
- children: [
191
- e.name,
168
+ )
169
+ ] }),
170
+ /* @__PURE__ */ a("label", { className: "block", children: [
171
+ /* @__PURE__ */ t("span", { className: "mb-1 block text-[12px] font-medium text-slate-700 dark:text-slate-200", children: "Details" }),
172
+ /* @__PURE__ */ t(
173
+ "textarea",
174
+ {
175
+ "data-support-description": !0,
176
+ value: F,
177
+ onChange: (e) => w(e.target.value),
178
+ rows: 5,
179
+ placeholder: "What should change, and why",
180
+ className: "w-full rounded-md border border-slate-200 bg-white px-3 py-2 text-[13px] text-slate-900 outline-none focus:border-nvr-cyan dark:border-border dark:bg-background dark:text-slate-100"
181
+ }
182
+ )
183
+ ] }),
184
+ /* @__PURE__ */ a("div", { children: [
185
+ /* @__PURE__ */ a("label", { className: "inline-flex cursor-pointer items-center gap-1.5 text-[12px] font-medium text-slate-600 hover:text-slate-900 dark:text-slate-300 dark:hover:text-slate-100", children: [
186
+ K ? /* @__PURE__ */ t($, { className: "h-3.5 w-3.5 animate-spin" }) : /* @__PURE__ */ t(X, { className: "h-3.5 w-3.5" }),
187
+ "Attach files",
192
188
  /* @__PURE__ */ t(
193
- "button",
189
+ "input",
194
190
  {
195
- type: "button",
196
- "aria-label": `Remove ${e.name}`,
197
- onClick: () => N((r) => r.filter((o) => o.id !== e.id)),
198
- className: "text-slate-400 hover:text-slate-700 dark:hover:text-slate-100",
199
- children: /* @__PURE__ */ t(B, { className: "h-3 w-3" })
191
+ type: "file",
192
+ multiple: !0,
193
+ className: "hidden",
194
+ "data-support-files": !0,
195
+ onChange: (e) => {
196
+ _(e.target.files), e.target.value = "";
197
+ }
200
198
  }
201
199
  )
202
- ]
203
- },
204
- e.id
205
- )) })
206
- ] }),
207
- /* @__PURE__ */ a(
208
- "label",
209
- {
210
- className: "flex items-start gap-2 text-[12px] text-slate-600 dark:text-slate-300",
211
- "data-support-context": !0,
212
- children: [
200
+ ] }),
201
+ N.length > 0 && /* @__PURE__ */ t("ul", { className: "mt-1.5 flex flex-wrap gap-1.5", children: N.map((e) => /* @__PURE__ */ a(
202
+ "li",
203
+ {
204
+ className: "inline-flex items-center gap-1 rounded bg-slate-100 px-2 py-0.5 text-[11.5px] text-slate-700 dark:bg-white/10 dark:text-slate-200",
205
+ children: [
206
+ e.name,
207
+ /* @__PURE__ */ t(
208
+ "button",
209
+ {
210
+ type: "button",
211
+ "aria-label": `Remove ${e.name}`,
212
+ onClick: () => q((r) => r.filter((n) => n.id !== e.id)),
213
+ className: "text-slate-400 hover:text-slate-700 dark:hover:text-slate-100",
214
+ children: /* @__PURE__ */ t(B, { className: "h-3 w-3" })
215
+ }
216
+ )
217
+ ]
218
+ },
219
+ e.id
220
+ )) })
221
+ ] }),
222
+ /* @__PURE__ */ a(
223
+ "label",
224
+ {
225
+ className: "flex items-start gap-2 text-[12px] text-slate-600 dark:text-slate-300",
226
+ "data-support-context": !0,
227
+ children: [
228
+ /* @__PURE__ */ t(
229
+ "input",
230
+ {
231
+ type: "checkbox",
232
+ checked: j,
233
+ onChange: (e) => U(e.target.checked),
234
+ className: "mt-0.5 accent-[#00ceff]"
235
+ }
236
+ ),
237
+ /* @__PURE__ */ a("span", { children: [
238
+ "Include what I was doing",
239
+ /* @__PURE__ */ t("span", { className: "block text-[11px] text-slate-400", children: "The page, recent errors and requests, and (when replay is on) the last minute of this screen with every typed value hidden." })
240
+ ] })
241
+ ]
242
+ }
243
+ ),
244
+ P && /* @__PURE__ */ t("p", { className: "text-[12px] text-red-600 dark:text-red-400", role: "alert", children: P }),
245
+ /* @__PURE__ */ a("div", { className: "flex justify-end gap-2 pt-1", children: [
213
246
  /* @__PURE__ */ t(
214
- "input",
247
+ "button",
215
248
  {
216
- type: "checkbox",
217
- checked: P,
218
- onChange: (e) => j(e.target.checked),
219
- className: "mt-0.5 accent-[#00ceff]"
249
+ type: "button",
250
+ onClick: () => c(!1),
251
+ className: "h-8 rounded-md border border-slate-200 px-3 text-[12.5px] text-slate-700 hover:bg-slate-50 dark:border-border dark:text-slate-200 dark:hover:bg-white/5",
252
+ children: "Cancel"
220
253
  }
221
254
  ),
222
- /* @__PURE__ */ a("span", { children: [
223
- "Include what I was doing",
224
- /* @__PURE__ */ t("span", { className: "block text-[11px] text-slate-400", children: "The page, recent errors and requests, and (when replay is on) the last minute of this screen with every typed value hidden." })
225
- ] })
226
- ]
227
- }
228
- ),
229
- M && /* @__PURE__ */ t("p", { className: "text-[12px] text-red-600 dark:text-red-400", role: "alert", children: M }),
230
- /* @__PURE__ */ a("div", { className: "flex justify-end gap-2 pt-1", children: [
231
- /* @__PURE__ */ t(
232
- "button",
233
- {
234
- type: "button",
235
- onClick: () => c(!1),
236
- className: "h-8 rounded-md border border-slate-200 px-3 text-[12.5px] text-slate-700 hover:bg-slate-50 dark:border-border dark:text-slate-200 dark:hover:bg-white/5",
237
- children: "Cancel"
238
- }
239
- ),
240
- /* @__PURE__ */ a(
241
- "button",
242
- {
243
- type: "submit",
244
- "data-support-send": !0,
245
- disabled: !U,
246
- className: "inline-flex h-8 items-center gap-1.5 rounded-md border border-nvr-cyan/60 bg-nvr-cyan/10 px-3 text-[12.5px] font-medium text-nvr-navy hover:bg-nvr-cyan/15 disabled:opacity-50 dark:text-nvr-cyan",
247
- children: [
248
- D.isPending && /* @__PURE__ */ t(W, { className: "h-3.5 w-3.5 animate-spin" }),
249
- "Send request"
250
- ]
251
- }
252
- )
253
- ] })
254
- ]
255
- }
256
- )
257
- ] })
255
+ /* @__PURE__ */ a(
256
+ "button",
257
+ {
258
+ type: "submit",
259
+ "data-support-send": !0,
260
+ disabled: !W,
261
+ className: "inline-flex h-8 items-center gap-1.5 rounded-md border border-nvr-cyan/60 bg-nvr-cyan/10 px-3 text-[12.5px] font-medium text-nvr-navy hover:bg-nvr-cyan/15 disabled:opacity-50 dark:text-nvr-cyan",
262
+ children: [
263
+ I.isPending && /* @__PURE__ */ t($, { className: "h-3.5 w-3.5 animate-spin" }),
264
+ "Send request"
265
+ ]
266
+ }
267
+ )
268
+ ] })
269
+ ]
270
+ }
271
+ )
272
+ ]
273
+ }
274
+ )
258
275
  }
259
276
  );
260
277
  }