@arbidocs/react 0.4.156 → 0.4.157

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/index.cjs CHANGED
@@ -1,13 +1,13 @@
1
1
  'use strict';
2
2
 
3
- var chunkQKNJ6FRD_cjs = require('./chunk-QKNJ6FRD.cjs');
4
3
  var chunk37TQBT7Y_cjs = require('./chunk-37TQBT7Y.cjs');
4
+ var chunkQKNJ6FRD_cjs = require('./chunk-QKNJ6FRD.cjs');
5
5
  var chunkZWFMFOGP_cjs = require('./chunk-ZWFMFOGP.cjs');
6
6
  require('./chunk-VOFNX4P6.cjs');
7
7
  var chunkJFKWH6EP_cjs = require('./chunk-JFKWH6EP.cjs');
8
- var chunkVKWGRGY6_cjs = require('./chunk-VKWGRGY6.cjs');
9
- var chunkWYZJLZ67_cjs = require('./chunk-WYZJLZ67.cjs');
8
+ var chunkRDLAOB55_cjs = require('./chunk-RDLAOB55.cjs');
10
9
  var chunkOC7F5SNA_cjs = require('./chunk-OC7F5SNA.cjs');
10
+ var chunkWYZJLZ67_cjs = require('./chunk-WYZJLZ67.cjs');
11
11
  var chunkZ3LLUO32_cjs = require('./chunk-Z3LLUO32.cjs');
12
12
  var chunkHUZB36QU_cjs = require('./chunk-HUZB36QU.cjs');
13
13
  var chunkHJDR5HEO_cjs = require('./chunk-HJDR5HEO.cjs');
@@ -685,7 +685,7 @@ function useArbiChat(options = {}) {
685
685
  () => (agentId ? [] : docs).map((d) => d.external_id).filter((id) => !!id && !deselected.has(id)),
686
686
  [docs, deselected, agentId]
687
687
  );
688
- const documents = React3.useMemo(
688
+ const documents2 = React3.useMemo(
689
689
  () => agentId ? stagedFiles.map((file) => ({ ...file, isSelected: !deselected.has(file.id) })) : docs.filter((d) => !!d.external_id).map((d) => ({
690
690
  id: d.external_id,
691
691
  name: d.file_name ?? d.external_id,
@@ -1128,7 +1128,7 @@ function useArbiChat(options = {}) {
1128
1128
  isLoadingThread: needsLoad && !historyError,
1129
1129
  isLoadingThreads,
1130
1130
  historyError,
1131
- documents,
1131
+ documents: documents2,
1132
1132
  isLoadingDocuments,
1133
1133
  isUploading,
1134
1134
  uploadError,
@@ -1883,8 +1883,8 @@ function useUpdateDocuments() {
1883
1883
  return resolvingOffline(
1884
1884
  reactQuery.useMutation({
1885
1885
  mutationKey: chunk37TQBT7Y_cjs.arbiMutationKeys.updateDocuments(),
1886
- mutationFn: ({ documents }) => arbi.documents.update(documents),
1887
- onMutate: ({ documents }) => reactQuery.onlineManager.isOnline() || !documents.length ? void 0 : applyOptimisticDocumentEdit(qc, documents),
1886
+ mutationFn: ({ documents: documents2 }) => arbi.documents.update(documents2),
1887
+ onMutate: ({ documents: documents2 }) => reactQuery.onlineManager.isOnline() || !documents2.length ? void 0 : applyOptimisticDocumentEdit(qc, documents2),
1888
1888
  onError: (_error, _input, context) => rollbackOptimisticDocumentEdit(qc, context),
1889
1889
  onSuccess: (updated) => settleUpdatedDocuments(qc, updated)
1890
1890
  })
@@ -1897,7 +1897,7 @@ function useRenameFolder() {
1897
1897
  const qc = reactQuery.useQueryClient();
1898
1898
  const { mutateAsync } = useUpdateDocuments();
1899
1899
  return React3.useCallback(
1900
- async (documents, from, to) => {
1900
+ async (documents2, from, to) => {
1901
1901
  const moved = (folder) => {
1902
1902
  const segments = folderSegments(folder);
1903
1903
  if (from.length === 0 || segments.length < from.length) return void 0;
@@ -1905,7 +1905,7 @@ function useRenameFolder() {
1905
1905
  const next = [...to, ...segments.slice(from.length)];
1906
1906
  return next.length > 0 ? next.join("/") : null;
1907
1907
  };
1908
- const updates = documents.flatMap((doc) => {
1908
+ const updates = documents2.flatMap((doc) => {
1909
1909
  const folder = moved(doc.folder);
1910
1910
  return folder === void 0 ? [] : [{ external_id: doc.external_id, folder }];
1911
1911
  });
@@ -3317,21 +3317,21 @@ var MailOfflineUnavailableError = class extends Error {
3317
3317
  function accountPath(id) {
3318
3318
  return `/accounts/${encodeURIComponent(id)}`;
3319
3319
  }
3320
- async function mailJson(fetch, path, init) {
3321
- const response = await fetch(path, init);
3320
+ async function mailJson(fetch2, path, init) {
3321
+ const response = await fetch2(path, init);
3322
3322
  return response.status === 204 ? void 0 : response.json();
3323
3323
  }
3324
- function createMailClient(fetch, overrides = {}) {
3324
+ function createMailClient(fetch2, overrides = {}) {
3325
3325
  return {
3326
- fetch,
3327
- getPolicy: () => mailJson(fetch, "/policy"),
3328
- listAccounts: () => mailJson(fetch, "/accounts"),
3329
- listFolders: (account) => mailJson(fetch, `${accountPath(account.id)}/folders`),
3326
+ fetch: fetch2,
3327
+ getPolicy: () => mailJson(fetch2, "/policy"),
3328
+ listAccounts: () => mailJson(fetch2, "/accounts"),
3329
+ listFolders: (account) => mailJson(fetch2, `${accountPath(account.id)}/folders`),
3330
3330
  listMessages: (account, folderId, query, cursor) => mailJson(
3331
- fetch,
3331
+ fetch2,
3332
3332
  `${accountPath(account.id)}/messages?${new URLSearchParams({ folder_id: folderId, q: query, ...cursor ? { cursor } : {} })}`
3333
3333
  ),
3334
- getMessage: (account, messageId) => mailJson(fetch, `${accountPath(account.id)}/messages/${encodeURIComponent(messageId)}`),
3334
+ getMessage: (account, messageId) => mailJson(fetch2, `${accountPath(account.id)}/messages/${encodeURIComponent(messageId)}`),
3335
3335
  unlock: async () => {
3336
3336
  },
3337
3337
  ...overrides
@@ -3345,12 +3345,12 @@ function arbiMailClient(arbi) {
3345
3345
  });
3346
3346
  return unlocking;
3347
3347
  };
3348
- const fetch = async (path, init = {}) => {
3348
+ const fetch2 = async (path, init = {}) => {
3349
3349
  if (path.startsWith("/accounts/native/") && (init.method ?? "GET") !== "POST")
3350
3350
  await unlockNative();
3351
3351
  return arbi.mail.fetch(path, init);
3352
3352
  };
3353
- return createMailClient(fetch, {
3353
+ return createMailClient(fetch2, {
3354
3354
  unlock: async (account) => {
3355
3355
  if (account.provider === "native") await unlockNative();
3356
3356
  }
@@ -4047,7 +4047,7 @@ function invalidateCalendars(qc) {
4047
4047
  function useOfflineRead() {
4048
4048
  const { offline } = useCalendarSupport();
4049
4049
  return {
4050
- read: (key, fetch) => offline ? offline.read(key, fetch) : fetch(),
4050
+ read: (key, fetch2) => offline ? offline.read(key, fetch2) : fetch2(),
4051
4051
  // Offline-capable queries must run without the network to reach the saved copy.
4052
4052
  networkMode: offline ? "always" : void 0
4053
4053
  };
@@ -4743,7 +4743,7 @@ function AiAnswer({
4743
4743
  }
4744
4744
  ),
4745
4745
  hasText && /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
4746
- /* @__PURE__ */ jsxRuntime.jsx(chunkVKWGRGY6_cjs.AiMarkdown, { isStreaming: running, children: text }),
4746
+ /* @__PURE__ */ jsxRuntime.jsx(chunkRDLAOB55_cjs.AiMarkdown, { isStreaming: running, children: text }),
4747
4747
  !running && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center justify-between border-t border-border pt-2.5", children: [
4748
4748
  /* @__PURE__ */ jsxRuntime.jsxs("span", { className: "inline-flex items-center gap-1.5 text-xs text-muted-foreground", children: [
4749
4749
  /* @__PURE__ */ jsxRuntime.jsx(lucideReact.ShieldCheck, { className: "size-3.5 text-ai-accent" }),
@@ -4788,7 +4788,7 @@ function AiActionCard({
4788
4788
  const p = typeof prompt === "function" ? prompt() : prompt;
4789
4789
  void task.run(p, docIds);
4790
4790
  };
4791
- return /* @__PURE__ */ jsxRuntime.jsxs(chunkVKWGRGY6_cjs.Card, { variant: "elevated", className: "rounded-xl p-5", "data-testid": testId, children: [
4791
+ return /* @__PURE__ */ jsxRuntime.jsxs(chunkRDLAOB55_cjs.Card, { variant: "elevated", className: "rounded-xl p-5", "data-testid": testId, children: [
4792
4792
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-start justify-between gap-4", children: [
4793
4793
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-start gap-3", children: [
4794
4794
  /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex size-9 shrink-0 items-center justify-center rounded-lg bg-ai-accent-soft text-ai-accent", children: /* @__PURE__ */ jsxRuntime.jsx(Icon, { className: "size-4" }) }),
@@ -4930,11 +4930,11 @@ function ArtifactCanvas({
4930
4930
  children: active.title
4931
4931
  }
4932
4932
  ),
4933
- isRedline && /* @__PURE__ */ jsxRuntime.jsxs(chunkVKWGRGY6_cjs.Badge, { variant: "accent", className: "gap-1", children: [
4933
+ isRedline && /* @__PURE__ */ jsxRuntime.jsxs(chunkRDLAOB55_cjs.Badge, { variant: "accent", className: "gap-1", children: [
4934
4934
  /* @__PURE__ */ jsxRuntime.jsx(lucideReact.GitCompareArrows, { className: "size-3" }),
4935
4935
  " Redline"
4936
4936
  ] }),
4937
- /* @__PURE__ */ jsxRuntime.jsxs(chunkVKWGRGY6_cjs.Badge, { variant: "secondary", children: [
4937
+ /* @__PURE__ */ jsxRuntime.jsxs(chunkRDLAOB55_cjs.Badge, { variant: "secondary", children: [
4938
4938
  "v",
4939
4939
  active.version
4940
4940
  ] }),
@@ -4990,7 +4990,7 @@ function ArtifactCanvas({
4990
4990
  animate: { opacity: 1, y: 0 },
4991
4991
  transition: { duration: 0.2 },
4992
4992
  className: "mx-auto max-w-2xl rounded-lg bg-card p-8 shadow-sm ring-1 ring-border",
4993
- children: active.mode === "html" ? /* @__PURE__ */ jsxRuntime.jsx("div", { className: "text-sm", dangerouslySetInnerHTML: { __html: active.content } }) : active.mode === "text" ? /* @__PURE__ */ jsxRuntime.jsx("pre", { className: "whitespace-pre-wrap font-mono text-xs text-foreground", children: active.content }) : /* @__PURE__ */ jsxRuntime.jsx(chunkVKWGRGY6_cjs.AiMarkdown, { children: active.content })
4993
+ children: active.mode === "html" ? /* @__PURE__ */ jsxRuntime.jsx("div", { className: "text-sm", dangerouslySetInnerHTML: { __html: active.content } }) : active.mode === "text" ? /* @__PURE__ */ jsxRuntime.jsx("pre", { className: "whitespace-pre-wrap font-mono text-xs text-foreground", children: active.content }) : /* @__PURE__ */ jsxRuntime.jsx(chunkRDLAOB55_cjs.AiMarkdown, { children: active.content })
4994
4994
  },
4995
4995
  active.doc_ext_id
4996
4996
  ) }) })
@@ -5034,7 +5034,7 @@ function MessageArtifactCard({
5034
5034
  const labels = labelsFor(mode);
5035
5035
  const Icon = labels.Icon;
5036
5036
  return /* @__PURE__ */ jsxRuntime.jsxs(
5037
- chunkVKWGRGY6_cjs.Card,
5037
+ chunkRDLAOB55_cjs.Card,
5038
5038
  {
5039
5039
  variant: "outline",
5040
5040
  className: "mt-3 flex items-center gap-3 px-3 py-2.5",
@@ -5179,7 +5179,7 @@ function DocSearch({
5179
5179
  status === "done" && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-2", "data-testid": "doc-search-results", children: [
5180
5180
  /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-xs text-muted-foreground", children: results.length === 0 ? `No passages matched \u201C${query}\u201D.` : `${results.length} passage${results.length === 1 ? "" : "s"} for \u201C${query}\u201D` }),
5181
5181
  results.slice(0, 8).map((r, i) => /* @__PURE__ */ jsxRuntime.jsxs(
5182
- chunkVKWGRGY6_cjs.Card,
5182
+ chunkRDLAOB55_cjs.Card,
5183
5183
  {
5184
5184
  variant: "elevated",
5185
5185
  className: chunkS6A6FSG7_cjs.cn(
@@ -5192,7 +5192,7 @@ function DocSearch({
5192
5192
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "mb-1 flex items-center gap-2", children: [
5193
5193
  /* @__PURE__ */ jsxRuntime.jsx(lucideReact.FileText, { className: "size-3.5 text-ai-accent" }),
5194
5194
  /* @__PURE__ */ jsxRuntime.jsx("span", { className: "truncate text-xs font-medium text-foreground", children: r.docTitle || "Document" }),
5195
- r.page != null && /* @__PURE__ */ jsxRuntime.jsxs(chunkVKWGRGY6_cjs.Badge, { variant: "secondary", children: [
5195
+ r.page != null && /* @__PURE__ */ jsxRuntime.jsxs(chunkRDLAOB55_cjs.Badge, { variant: "secondary", children: [
5196
5196
  "p.",
5197
5197
  r.page
5198
5198
  ] }),
@@ -5229,7 +5229,7 @@ Question: ${question}`,
5229
5229
  return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "min-w-0 space-y-3", "data-testid": "doc-qa", children: [
5230
5230
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex min-w-0 items-center gap-2", children: [
5231
5231
  /* @__PURE__ */ jsxRuntime.jsx(
5232
- chunkVKWGRGY6_cjs.Input,
5232
+ chunkRDLAOB55_cjs.Input,
5233
5233
  {
5234
5234
  value: q,
5235
5235
  onChange: (e) => setQ(e.target.value),
@@ -5431,7 +5431,7 @@ var CitationPopover = ({
5431
5431
  return () => {
5432
5432
  if (!restoreFocusRef.current) return;
5433
5433
  restoreFocusRef.current = false;
5434
- if (triggerRef.current) chunkVKWGRGY6_cjs.returnFocusToMark(triggerRef.current);
5434
+ if (triggerRef.current) chunkRDLAOB55_cjs.returnFocusToMark(triggerRef.current);
5435
5435
  };
5436
5436
  }, [open]);
5437
5437
  React3.useEffect(() => {
@@ -5632,7 +5632,7 @@ var CitationLink = ({
5632
5632
  triggerRef,
5633
5633
  children
5634
5634
  }) => /* @__PURE__ */ jsxRuntime.jsxs(
5635
- chunkVKWGRGY6_cjs.MarkMenu,
5635
+ chunkRDLAOB55_cjs.MarkMenu,
5636
5636
  {
5637
5637
  triggerRef,
5638
5638
  items,
@@ -5673,8 +5673,8 @@ var FileIcon = ({ size = 16, className = "" }) => {
5673
5673
  "path",
5674
5674
  {
5675
5675
  d: "M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8l-6-6z",
5676
- fill: chunkVKWGRGY6_cjs.FILE_TYPE_COLORS.generic,
5677
- stroke: chunkVKWGRGY6_cjs.FILE_TYPE_COLORS.generic,
5676
+ fill: chunkRDLAOB55_cjs.FILE_TYPE_COLORS.generic,
5677
+ stroke: chunkRDLAOB55_cjs.FILE_TYPE_COLORS.generic,
5678
5678
  strokeWidth: "1",
5679
5679
  strokeLinecap: "round",
5680
5680
  strokeLinejoin: "round"
@@ -5685,7 +5685,7 @@ var FileIcon = ({ size = 16, className = "" }) => {
5685
5685
  {
5686
5686
  d: "M14 2v6h6",
5687
5687
  fill: "none",
5688
- stroke: chunkVKWGRGY6_cjs.FILE_TYPE_COLORS.white,
5688
+ stroke: chunkRDLAOB55_cjs.FILE_TYPE_COLORS.white,
5689
5689
  strokeWidth: "1",
5690
5690
  strokeLinecap: "round",
5691
5691
  strokeLinejoin: "round"
@@ -6023,7 +6023,7 @@ var ArbiBotIcon = ({ size = 24, className = "" }) => {
6023
6023
  );
6024
6024
  };
6025
6025
  function getNotificationTypeMeta(type) {
6026
- const WorkspaceIcon = chunkVKWGRGY6_cjs.getEntityIcon("WORKSPACE");
6026
+ const WorkspaceIcon = chunkRDLAOB55_cjs.getEntityIcon("WORKSPACE");
6027
6027
  switch (type) {
6028
6028
  case "agent_input_requested":
6029
6029
  return { Icon: lucideReact.MessageCircleMore, iconClassName: "text-primary", label: "Input needed" };
@@ -6156,7 +6156,7 @@ function describeActivity(content) {
6156
6156
  }
6157
6157
  default:
6158
6158
  return {
6159
- Icon: parsed.workspace_ext_id ? chunkVKWGRGY6_cjs.getEntityIcon("WORKSPACE") : lucideReact.Activity,
6159
+ Icon: parsed.workspace_ext_id ? chunkRDLAOB55_cjs.getEntityIcon("WORKSPACE") : lucideReact.Activity,
6160
6160
  iconClassName: "text-muted-foreground",
6161
6161
  title: humaniseEvent(parsed.event)
6162
6162
  };
@@ -6826,7 +6826,7 @@ function DmAvatar({ user, className, size = "lg" }) {
6826
6826
  const presence = useArbiWsStore((s) => s.presence[user.external_id]);
6827
6827
  const displayStatus = presence === void 0 ? void 0 : presence === "online" ? "connected" : "disconnected";
6828
6828
  return /* @__PURE__ */ jsxRuntime.jsx(
6829
- chunkVKWGRGY6_cjs.UserEntity,
6829
+ chunkRDLAOB55_cjs.UserEntity,
6830
6830
  {
6831
6831
  variant: "icon",
6832
6832
  size,
@@ -6836,7 +6836,7 @@ function DmAvatar({ user, className, size = "lg" }) {
6836
6836
  initials: userInitials(user),
6837
6837
  displayName: userDisplayName(user),
6838
6838
  picture: user.picture,
6839
- avatarStyle: chunkVKWGRGY6_cjs.getEntityColorStyles(user.external_id),
6839
+ avatarStyle: chunkRDLAOB55_cjs.getEntityColorStyles(user.external_id),
6840
6840
  isAgent: isAgentUser(user),
6841
6841
  displayStatus
6842
6842
  }
@@ -6892,10 +6892,10 @@ function ConversationList({
6892
6892
  children: c.title ?? userDisplayName(peer)
6893
6893
  }
6894
6894
  ),
6895
- c.badge ?? (isAgentUser(peer) ? /* @__PURE__ */ jsxRuntime.jsx(chunkVKWGRGY6_cjs.AgentBadge, {}) : null)
6895
+ c.badge ?? (isAgentUser(peer) ? /* @__PURE__ */ jsxRuntime.jsx(chunkRDLAOB55_cjs.AgentBadge, {}) : null)
6896
6896
  ] }),
6897
6897
  c.statusLabel ? /* @__PURE__ */ jsxRuntime.jsx(
6898
- chunkVKWGRGY6_cjs.Badge,
6898
+ chunkRDLAOB55_cjs.Badge,
6899
6899
  {
6900
6900
  variant: "outline",
6901
6901
  className: "shrink-0 rounded-full px-2 py-0 text-xs font-medium text-muted-foreground",
@@ -6906,7 +6906,7 @@ function ConversationList({
6906
6906
  // shouted louder than the message it was counting.
6907
6907
  // Enough to catch the eye scanning the list, no more.
6908
6908
  /* @__PURE__ */ jsxRuntime.jsx(
6909
- chunkVKWGRGY6_cjs.Badge,
6909
+ chunkRDLAOB55_cjs.Badge,
6910
6910
  {
6911
6911
  variant: "accent",
6912
6912
  className: chunkS6A6FSG7_cjs.cn(
@@ -7231,7 +7231,7 @@ function DmComposer({
7231
7231
  )
7232
7232
  ] }),
7233
7233
  /* @__PURE__ */ jsxRuntime.jsx(
7234
- chunkVKWGRGY6_cjs.Textarea,
7234
+ chunkRDLAOB55_cjs.Textarea,
7235
7235
  {
7236
7236
  ref: inputRef,
7237
7237
  value: draft,
@@ -7325,9 +7325,9 @@ function StartByEmail({
7325
7325
  void submit();
7326
7326
  },
7327
7327
  children: [
7328
- /* @__PURE__ */ jsxRuntime.jsx(chunkVKWGRGY6_cjs.Label, { htmlFor: `${uid}-email`, children: l.email }),
7328
+ /* @__PURE__ */ jsxRuntime.jsx(chunkRDLAOB55_cjs.Label, { htmlFor: `${uid}-email`, children: l.email }),
7329
7329
  /* @__PURE__ */ jsxRuntime.jsx(
7330
- chunkVKWGRGY6_cjs.Input,
7330
+ chunkRDLAOB55_cjs.Input,
7331
7331
  {
7332
7332
  id: `${uid}-email`,
7333
7333
  type: "email",
@@ -7341,9 +7341,9 @@ function StartByEmail({
7341
7341
  }
7342
7342
  ),
7343
7343
  email !== "" && !valid && /* @__PURE__ */ jsxRuntime.jsx("p", { id: `${uid}-bad`, className: "text-xs text-destructive", children: l.invalidEmail }),
7344
- /* @__PURE__ */ jsxRuntime.jsx(chunkVKWGRGY6_cjs.Label, { htmlFor: `${uid}-text`, children: l.message }),
7344
+ /* @__PURE__ */ jsxRuntime.jsx(chunkRDLAOB55_cjs.Label, { htmlFor: `${uid}-text`, children: l.message }),
7345
7345
  /* @__PURE__ */ jsxRuntime.jsx(
7346
- chunkVKWGRGY6_cjs.Textarea,
7346
+ chunkRDLAOB55_cjs.Textarea,
7347
7347
  {
7348
7348
  id: `${uid}-text`,
7349
7349
  value: text,
@@ -7560,7 +7560,7 @@ function ImageCropper({
7560
7560
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-1.5", children: [
7561
7561
  /* @__PURE__ */ jsxRuntime.jsx("label", { className: "text-xs font-semibold uppercase tracking-wider text-muted-foreground", children: "Zoom" }),
7562
7562
  /* @__PURE__ */ jsxRuntime.jsx(
7563
- chunkVKWGRGY6_cjs.Slider,
7563
+ chunkRDLAOB55_cjs.Slider,
7564
7564
  {
7565
7565
  value: [zoom],
7566
7566
  onValueChange: ([v]) => setZoom(v ?? 1),
@@ -7994,7 +7994,7 @@ var COLUMN_LABEL_FALLBACKS = {
7994
7994
  // src/documents/document-download.ts
7995
7995
  function fallbackFileName(doc) {
7996
7996
  if (doc.file_name) return doc.file_name;
7997
- const title = chunkVKWGRGY6_cjs.getDocumentTitle(doc, `document-${doc.external_id}`);
7997
+ const title = chunkRDLAOB55_cjs.getDocumentTitle(doc, `document-${doc.external_id}`);
7998
7998
  const extension = doc.file_type || "pdf";
7999
7999
  const ext = extension.startsWith(".") ? extension : `.${extension}`;
8000
8000
  return title.toLowerCase().endsWith(ext.toLowerCase()) ? title : `${title}${ext}`;
@@ -8002,9 +8002,9 @@ function fallbackFileName(doc) {
8002
8002
  var COLUMN_MAPPING = {
8003
8003
  file_name: {
8004
8004
  header: "File Name",
8005
- getValue: (d) => d.file_name || chunkVKWGRGY6_cjs.getDocumentTitle(d, `document-${d.external_id}.pdf`)
8005
+ getValue: (d) => d.file_name || chunkRDLAOB55_cjs.getDocumentTitle(d, `document-${d.external_id}.pdf`)
8006
8006
  },
8007
- title: { header: "Title", getValue: (d) => chunkVKWGRGY6_cjs.getDocumentTitle(d) },
8007
+ title: { header: "Title", getValue: (d) => chunkRDLAOB55_cjs.getDocumentTitle(d) },
8008
8008
  n_pages: { header: "Pages", getValue: (d) => d.n_pages || "" },
8009
8009
  doc_date: { header: "Document Date", getValue: (d) => getDocumentDate(d) || "" },
8010
8010
  doc_id: { header: "Document ID", getValue: (d) => d.external_id },
@@ -8015,9 +8015,9 @@ var COLUMN_MAPPING = {
8015
8015
  file_size: { header: "File Size", getValue: (d) => d.file_size || "" },
8016
8016
  shared: { header: "Shared", getValue: (d) => d.shared ? "Yes" : "No" }
8017
8017
  };
8018
- function buildDocumentMetadataRows(documents, selectedColumns) {
8018
+ function buildDocumentMetadataRows(documents2, selectedColumns) {
8019
8019
  const columns = selectedColumns || Object.keys(COLUMN_MAPPING);
8020
- return documents.map((doc) => {
8020
+ return documents2.map((doc) => {
8021
8021
  const row = {};
8022
8022
  for (const colId of columns) {
8023
8023
  const standard = COLUMN_MAPPING[colId];
@@ -8049,9 +8049,9 @@ function useDownloadDocuments({ workspaceName } = {}) {
8049
8049
  );
8050
8050
  const downloadDocuments = React3.useCallback(
8051
8051
  // selectedColumns: undefined = all default columns; [] = files only (no index.csv)
8052
- async (documents, selectedColumns) => {
8052
+ async (documents2, selectedColumns) => {
8053
8053
  const includeMetadataCsv = selectedColumns === void 0 || selectedColumns.length > 0;
8054
- if (documents.length === 0) {
8054
+ if (documents2.length === 0) {
8055
8055
  chunkJFKWH6EP_cjs.notify.error("No documents to download");
8056
8056
  return;
8057
8057
  }
@@ -8061,14 +8061,14 @@ function useDownloadDocuments({ workspaceName } = {}) {
8061
8061
  const zip = new JSZip();
8062
8062
  const downloaded = [];
8063
8063
  const failedDocs = [];
8064
- for (const doc of documents) {
8064
+ for (const doc of documents2) {
8065
8065
  try {
8066
8066
  const file = await fetchNamedFile(doc);
8067
8067
  zip.file(file.name, file.blob);
8068
8068
  downloaded.push(doc);
8069
8069
  } catch (error) {
8070
8070
  console.error(`Failed to download document ${doc.external_id}:`, error);
8071
- failedDocs.push(chunkVKWGRGY6_cjs.getDocumentTitle(doc, doc.external_id));
8071
+ failedDocs.push(chunkRDLAOB55_cjs.getDocumentTitle(doc, doc.external_id));
8072
8072
  }
8073
8073
  }
8074
8074
  const successCount = downloaded.length;
@@ -8252,8 +8252,8 @@ function createArbiSessionStore(initial = {}) {
8252
8252
  setPaMode: (paMode) => {
8253
8253
  if (state.paMode !== paMode) update({ paMode });
8254
8254
  },
8255
- setConversationDocuments: (conversationId, documents) => update({
8256
- conversationDocuments: { ...state.conversationDocuments, [conversationId]: documents }
8255
+ setConversationDocuments: (conversationId, documents2) => update({
8256
+ conversationDocuments: { ...state.conversationDocuments, [conversationId]: documents2 }
8257
8257
  })
8258
8258
  };
8259
8259
  }
@@ -8300,7 +8300,7 @@ var STATUS_VARIANTS = {
8300
8300
  };
8301
8301
  function DocumentTable({
8302
8302
  workspaceId,
8303
- documents,
8303
+ documents: documents2,
8304
8304
  onOpenDocument,
8305
8305
  openOnRowClick = true,
8306
8306
  selectedIds,
@@ -8309,9 +8309,9 @@ function DocumentTable({
8309
8309
  extraColumns,
8310
8310
  className
8311
8311
  }) {
8312
- const query = chunk37TQBT7Y_cjs.useDocuments(workspaceId, { enabled: !documents });
8313
- const rows = documents ?? query.data ?? [];
8314
- const isLoading = !documents && query.isLoading;
8312
+ const query = chunk37TQBT7Y_cjs.useDocuments(workspaceId, { enabled: !documents2 });
8313
+ const rows = documents2 ?? query.data ?? [];
8314
+ const isLoading = !documents2 && query.isLoading;
8315
8315
  const tagsQuery = chunk37TQBT7Y_cjs.useTags(workspaceId);
8316
8316
  const tagNameById = React3__default.default.useMemo(() => {
8317
8317
  const map = /* @__PURE__ */ new Map();
@@ -8372,7 +8372,7 @@ function DocumentTable({
8372
8372
  const doc = p.data;
8373
8373
  if (!doc) return null;
8374
8374
  return /* @__PURE__ */ jsxRuntime.jsx(
8375
- chunkVKWGRGY6_cjs.DocumentEntity,
8375
+ chunkRDLAOB55_cjs.DocumentEntity,
8376
8376
  {
8377
8377
  doc,
8378
8378
  size: "base",
@@ -8395,7 +8395,7 @@ function DocumentTable({
8395
8395
  cellRenderer: (p) => {
8396
8396
  const status = p.data?.status;
8397
8397
  if (!status) return null;
8398
- return /* @__PURE__ */ jsxRuntime.jsx(chunkVKWGRGY6_cjs.Badge, { variant: STATUS_VARIANTS[status.toLowerCase()] ?? "secondary", children: status });
8398
+ return /* @__PURE__ */ jsxRuntime.jsx(chunkRDLAOB55_cjs.Badge, { variant: STATUS_VARIANTS[status.toLowerCase()] ?? "secondary", children: status });
8399
8399
  }
8400
8400
  },
8401
8401
  {
@@ -8409,7 +8409,7 @@ function DocumentTable({
8409
8409
  const doctags = p.data?.doctags ?? [];
8410
8410
  if (doctags.length === 0) return null;
8411
8411
  return /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex flex-wrap items-center gap-1 py-1", children: doctags.map((dt) => /* @__PURE__ */ jsxRuntime.jsx(
8412
- chunkVKWGRGY6_cjs.TagEntity,
8412
+ chunkRDLAOB55_cjs.TagEntity,
8413
8413
  {
8414
8414
  size: "sm",
8415
8415
  tag: {
@@ -8575,16 +8575,16 @@ function TileTooltip({ title, labels }) {
8575
8575
  }
8576
8576
  function DocumentGallery({
8577
8577
  workspaceId,
8578
- documents,
8578
+ documents: documents2,
8579
8579
  onOpenDocument,
8580
8580
  selectedIds,
8581
8581
  onSelectionChange,
8582
8582
  minTileWidth = 148,
8583
8583
  className
8584
8584
  }) {
8585
- const query = chunk37TQBT7Y_cjs.useDocuments(workspaceId, { enabled: !documents });
8586
- const rows = documents ?? query.data ?? [];
8587
- const isLoading = !documents && query.isLoading;
8585
+ const query = chunk37TQBT7Y_cjs.useDocuments(workspaceId, { enabled: !documents2 });
8586
+ const rows = documents2 ?? query.data ?? [];
8587
+ const isLoading = !documents2 && query.isLoading;
8588
8588
  const tagsQuery = chunk37TQBT7Y_cjs.useTags(workspaceId);
8589
8589
  const tagNameById = React3__default.default.useMemo(() => {
8590
8590
  const map = /* @__PURE__ */ new Map();
@@ -8668,7 +8668,7 @@ function DocumentGallery({
8668
8668
  (dt) => tagNameById.get(dt.tag_ext_id) ?? dt.tag_ext_id.slice(0, 8)
8669
8669
  );
8670
8670
  return /* @__PURE__ */ jsxRuntime.jsx("div", { "data-doc-id": id, "data-testid": "document-gallery-card", children: /* @__PURE__ */ jsxRuntime.jsx(
8671
- chunkVKWGRGY6_cjs.DocumentCard,
8671
+ chunkRDLAOB55_cjs.DocumentCard,
8672
8672
  {
8673
8673
  doc,
8674
8674
  thumbnailUrl: thumbs[id],
@@ -8774,7 +8774,7 @@ function DocumentReview({
8774
8774
  findings.length ? ` \xB7 ${findings.length} findings` : ""
8775
8775
  ] })
8776
8776
  ] }),
8777
- doc?.status ? /* @__PURE__ */ jsxRuntime.jsx(chunkVKWGRGY6_cjs.Badge, { variant: "secondary", children: doc.status }) : null,
8777
+ doc?.status ? /* @__PURE__ */ jsxRuntime.jsx(chunkRDLAOB55_cjs.Badge, { variant: "secondary", children: doc.status }) : null,
8778
8778
  onClose ? /* @__PURE__ */ jsxRuntime.jsx(
8779
8779
  "button",
8780
8780
  {
@@ -8811,7 +8811,7 @@ function DocumentReview({
8811
8811
  className: "w-full cursor-pointer rounded-md border p-2 text-left text-xs transition hover:border-ring hover:bg-muted/50 focus:outline-none focus-visible:ring-2 focus-visible:ring-ring",
8812
8812
  children: [
8813
8813
  /* @__PURE__ */ jsxRuntime.jsx(
8814
- chunkVKWGRGY6_cjs.TagEntity,
8814
+ chunkRDLAOB55_cjs.TagEntity,
8815
8815
  {
8816
8816
  size: "sm",
8817
8817
  tag: {
@@ -8856,7 +8856,7 @@ function DocumentReview({
8856
8856
  ),
8857
8857
  children: [
8858
8858
  highlighted ? /* @__PURE__ */ jsxRuntime.jsx("div", { className: "mb-1", children: /* @__PURE__ */ jsxRuntime.jsx(
8859
- chunkVKWGRGY6_cjs.TagEntity,
8859
+ chunkRDLAOB55_cjs.TagEntity,
8860
8860
  {
8861
8861
  size: "sm",
8862
8862
  tag: {
@@ -8885,7 +8885,7 @@ function VoiceNoteRecorder({
8885
8885
  isSaving = false,
8886
8886
  transcribe
8887
8887
  }) {
8888
- const recorder = chunkVKWGRGY6_cjs.useAudioRecorder();
8888
+ const recorder = chunkRDLAOB55_cjs.useAudioRecorder();
8889
8889
  const [transcript, setTranscript] = React3.useState(null);
8890
8890
  const [isTranscribing, setIsTranscribing] = React3.useState(false);
8891
8891
  React3.useEffect(() => {
@@ -8931,7 +8931,7 @@ function VoiceNoteRecorder({
8931
8931
  ] }),
8932
8932
  (recorder.state === "recording" || recorder.state === "paused") && /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
8933
8933
  /* @__PURE__ */ jsxRuntime.jsx(
8934
- chunkVKWGRGY6_cjs.MicWaveformIndicator,
8934
+ chunkRDLAOB55_cjs.MicWaveformIndicator,
8935
8935
  {
8936
8936
  level: recorder.level,
8937
8937
  elapsedMs: recorder.elapsedMs,
@@ -9053,7 +9053,7 @@ function DraftTitleControls({
9053
9053
  }
9054
9054
  ),
9055
9055
  /* @__PURE__ */ jsxRuntime.jsx(
9056
- chunkVKWGRGY6_cjs.IconToggle,
9056
+ chunkRDLAOB55_cjs.IconToggle,
9057
9057
  {
9058
9058
  icon: lucideReact.Sparkles,
9059
9059
  isActive: autoRename,
@@ -9087,7 +9087,7 @@ function useCameraStream(constraints = { video: true, audio: false }) {
9087
9087
  streamRef.current = media;
9088
9088
  setStream(media);
9089
9089
  } catch (err) {
9090
- setError(chunkVKWGRGY6_cjs.classifyMediaError(err, "camera"));
9090
+ setError(chunkRDLAOB55_cjs.classifyMediaError(err, "camera"));
9091
9091
  } finally {
9092
9092
  setIsStarting(false);
9093
9093
  }
@@ -9323,7 +9323,7 @@ function VideoCapture({ onSave, onDiscard, onError, isSaving = false }) {
9323
9323
  /* @__PURE__ */ jsxRuntime.jsx("span", { className: "relative inline-flex h-2 w-2 rounded-full bg-red-500" })
9324
9324
  ] }),
9325
9325
  /* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-xs font-semibold uppercase tracking-wide text-red-500", children: "Rec" }),
9326
- /* @__PURE__ */ jsxRuntime.jsx("span", { className: "font-mono text-xs tabular-nums text-muted-foreground", children: chunkVKWGRGY6_cjs.formatElapsed(recorder.elapsedMs) })
9326
+ /* @__PURE__ */ jsxRuntime.jsx("span", { className: "font-mono text-xs tabular-nums text-muted-foreground", children: chunkRDLAOB55_cjs.formatElapsed(recorder.elapsedMs) })
9327
9327
  ] }),
9328
9328
  recorder.state === "recording" ? /* @__PURE__ */ jsxRuntime.jsx(
9329
9329
  chunkWYZJLZ67_cjs.Button,
@@ -9421,6 +9421,339 @@ function hasVideoTrack(blob) {
9421
9421
  video.src = url;
9422
9422
  });
9423
9423
  }
9424
+ var { SUPPORTED_EXTENSIONS, mimeFromName, sanitizeFolderPath } = browser.documents;
9425
+ var UPLOAD_ACCEPT = ".pdf,.txt,.md,.html,.doc,.docx,.rtf,.ppt,.pptx,.xls,.xlsx,.jpg,.jpeg,.png,.gif,.bmp,.tiff,.tif,.webp,.mp4,.mpeg,.mpg,.webm,.mov,.avi,.mkv,.mp3,.wav,.m4a,.aac,.ogg,.flac,.eml,.msg,.mbox,.pst,.ost,.zip,application/pdf,text/plain,text/markdown,text/html,application/msword,application/vnd.openxmlformats-officedocument.wordprocessingml.document,application/rtf,application/vnd.ms-powerpoint,application/vnd.openxmlformats-officedocument.presentationml.presentation,application/vnd.ms-excel,application/vnd.openxmlformats-officedocument.spreadsheetml.sheet,image/jpeg,image/png,image/gif,image/bmp,image/tiff,image/webp,video/mp4,video/mpeg,video/webm,video/quicktime,video/x-msvideo,video/x-matroska,audio/mpeg,audio/wav,audio/mp4,audio/aac,audio/ogg,audio/flac,message/rfc822,application/vnd.ms-outlook,application/mbox,application/zip,application/x-zip-compressed";
9426
+ var UPLOAD_MAX_FILE_SIZE = 2 * 1024 * 1024 * 1024;
9427
+ var SUPPORTED_TYPES = /* @__PURE__ */ new Set([
9428
+ "application/pdf",
9429
+ "text/plain",
9430
+ "text/markdown",
9431
+ "text/html",
9432
+ "application/msword",
9433
+ "application/vnd.openxmlformats-officedocument.wordprocessingml.document",
9434
+ "application/rtf",
9435
+ "application/vnd.ms-powerpoint",
9436
+ "application/vnd.openxmlformats-officedocument.presentationml.presentation",
9437
+ "application/vnd.ms-excel",
9438
+ "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",
9439
+ "image/jpeg",
9440
+ "image/png",
9441
+ "image/gif",
9442
+ "image/bmp",
9443
+ "image/tiff",
9444
+ "image/webp",
9445
+ "video/mp4",
9446
+ "video/mpeg",
9447
+ "video/webm",
9448
+ "video/quicktime",
9449
+ "video/x-msvideo",
9450
+ "video/x-matroska",
9451
+ "audio/mpeg",
9452
+ "audio/wav",
9453
+ "audio/mp4",
9454
+ "audio/aac",
9455
+ "audio/ogg",
9456
+ "audio/flac",
9457
+ "message/rfc822",
9458
+ "application/vnd.ms-outlook",
9459
+ "application/mbox"
9460
+ ]);
9461
+ function extensionOf(name) {
9462
+ const dot = name.lastIndexOf(".");
9463
+ return dot === -1 ? "" : name.slice(dot).toLowerCase();
9464
+ }
9465
+ function withRelativePath(file, relativePath) {
9466
+ const copy = new File([file], file.name, { type: file.type, lastModified: file.lastModified });
9467
+ Object.defineProperty(copy, "webkitRelativePath", { value: relativePath, writable: false });
9468
+ return copy;
9469
+ }
9470
+ function isZipFile(file) {
9471
+ return file.name.toLowerCase().endsWith(".zip") || file.type === "application/zip" || file.type === "application/x-zip-compressed";
9472
+ }
9473
+ var extractZipFile = async (zip, maxFileSize) => {
9474
+ const { unzip } = await import('unzipit');
9475
+ const { entries } = await unzip(await zip.arrayBuffer());
9476
+ const names = Object.keys(entries).filter((name) => !entries[name].isDirectory);
9477
+ const roots = new Set(names.map((name) => name.split("/")[0]));
9478
+ const hasSingleRoot = roots.size === 1 && names.every((name) => name.includes("/"));
9479
+ const base = zip.name.replace(/\.zip$/i, "");
9480
+ const extractedFiles = [];
9481
+ const skippedLargeFiles = [];
9482
+ for (const name of names) {
9483
+ const entry = entries[name];
9484
+ if (!SUPPORTED_EXTENSIONS.has(extensionOf(name))) continue;
9485
+ const fileName = name.split("/").pop() ?? name;
9486
+ if (entry.size > maxFileSize) {
9487
+ skippedLargeFiles.push(fileName);
9488
+ continue;
9489
+ }
9490
+ const file = new File([await entry.arrayBuffer()], fileName, {
9491
+ type: mimeFromName(fileName) ?? "application/octet-stream",
9492
+ lastModified: entry.lastModDate?.getTime() ?? Date.now()
9493
+ });
9494
+ extractedFiles.push(withRelativePath(file, hasSingleRoot ? name : `${base}/${name}`));
9495
+ }
9496
+ return { extractedFiles, skippedLargeFiles };
9497
+ };
9498
+ async function prepareUploadFiles(chosen, options = {}) {
9499
+ const maxFileSize = options.maxFileSize ?? UPLOAD_MAX_FILE_SIZE;
9500
+ const extractZip = options.extractZip ?? extractZipFile;
9501
+ const accepted = [];
9502
+ const refused = [];
9503
+ const zips = [];
9504
+ for (const file of Array.from(chosen)) {
9505
+ if (isZipFile(file)) {
9506
+ zips.push(file);
9507
+ continue;
9508
+ }
9509
+ const extension = extensionOf(file.name);
9510
+ if (file.size === 0) refused.push({ name: file.name, reason: "empty" });
9511
+ else if (file.size > maxFileSize) refused.push({ name: file.name, reason: "too_large" });
9512
+ else if (!extension) refused.push({ name: file.name, reason: "no_extension" });
9513
+ else if (!SUPPORTED_TYPES.has(file.type) && !SUPPORTED_EXTENSIONS.has(extension))
9514
+ refused.push({ name: file.name, reason: "unsupported" });
9515
+ else accepted.push(file);
9516
+ }
9517
+ for (const zip of zips) {
9518
+ try {
9519
+ const { extractedFiles, skippedLargeFiles } = await extractZip(zip, maxFileSize);
9520
+ for (const name of skippedLargeFiles)
9521
+ refused.push({ name: `${name} (from ${zip.name})`, reason: "too_large" });
9522
+ if (extractedFiles.length === 0 && skippedLargeFiles.length === 0)
9523
+ refused.push({ name: zip.name, reason: "empty_zip" });
9524
+ accepted.push(...extractedFiles);
9525
+ } catch {
9526
+ refused.push({ name: zip.name, reason: "zip_error" });
9527
+ }
9528
+ }
9529
+ accepted.sort(
9530
+ (a, b) => (a.webkitRelativePath || a.name).toLowerCase().localeCompare((b.webkitRelativePath || b.name).toLowerCase())
9531
+ );
9532
+ return { accepted, refused };
9533
+ }
9534
+ function readDirectory(directory, path, into) {
9535
+ return new Promise((resolve) => {
9536
+ const reader = directory.createReader();
9537
+ const readBatch = () => reader.readEntries(async (entries) => {
9538
+ if (entries.length === 0) return resolve();
9539
+ await Promise.all(
9540
+ entries.map(
9541
+ (entry) => entry.isFile ? new Promise(
9542
+ (done) => entry.file(
9543
+ (file) => {
9544
+ into.push(withRelativePath(file, `${path}/${file.name}`));
9545
+ done();
9546
+ },
9547
+ () => done()
9548
+ )
9549
+ ) : entry.isDirectory ? readDirectory(entry, `${path}/${entry.name}`, into) : Promise.resolve()
9550
+ )
9551
+ );
9552
+ readBatch();
9553
+ });
9554
+ readBatch();
9555
+ });
9556
+ }
9557
+ async function filesFromDrop(transfer) {
9558
+ const items = Array.from(transfer.items ?? []);
9559
+ if (items.length === 0) return Array.from(transfer.files ?? []);
9560
+ const files = [];
9561
+ const folders = [];
9562
+ for (const item of items) {
9563
+ if (item.kind !== "file") continue;
9564
+ const entry = item.webkitGetAsEntry?.();
9565
+ if (entry?.isDirectory) {
9566
+ folders.push(readDirectory(entry, entry.name, files));
9567
+ } else {
9568
+ const file = item.getAsFile();
9569
+ if (file) files.push(file);
9570
+ }
9571
+ }
9572
+ await Promise.all(folders);
9573
+ return files;
9574
+ }
9575
+ function uploadFolderOf(file, base) {
9576
+ const relative = file.webkitRelativePath;
9577
+ const slash = relative ? relative.lastIndexOf("/") : -1;
9578
+ const own = slash > 0 ? relative.slice(0, slash) : "";
9579
+ return sanitizeFolderPath([base, own].filter(Boolean).join("/")) || null;
9580
+ }
9581
+ var { uploadDocumentsDirect, mimeFromName: mimeFromName2 } = browser.documents;
9582
+ var BATCH_SIZE2 = 100;
9583
+ var CONCURRENT_BATCHES = 4;
9584
+ var uploadedFolders = /* @__PURE__ */ new Map();
9585
+ function uploadedDocumentFolder(workspaceId, docId) {
9586
+ const pending = uploadedFolders.get(docId);
9587
+ return pending?.workspaceId === workspaceId ? pending.folder : void 0;
9588
+ }
9589
+ function forgetUploadedDocumentFolder(docId) {
9590
+ uploadedFolders.delete(docId);
9591
+ }
9592
+ async function runLimited(tasks, limit) {
9593
+ const results = new Array(tasks.length);
9594
+ let next = 0;
9595
+ const worker = async () => {
9596
+ while (next < tasks.length) {
9597
+ const index = next++;
9598
+ results[index] = await tasks[index]();
9599
+ }
9600
+ };
9601
+ await Promise.all(Array.from({ length: Math.min(limit, tasks.length) }, worker));
9602
+ return results;
9603
+ }
9604
+ function useUploadFiles() {
9605
+ const arbi = chunkR2MF7YCW_cjs.useArbi();
9606
+ const qc = reactQuery.useQueryClient();
9607
+ const { resolveWorkspaceKey, processingStatus } = useDocumentsSupport();
9608
+ const { data: settings } = useUserSettings();
9609
+ const { mutateAsync: generateDocTags } = useGenerateDocTags();
9610
+ const direct = settings?.use_s3_direct_upload === true;
9611
+ return React3.useCallback(
9612
+ async (input, onProgress) => {
9613
+ const workspaceId = arbi.getWorkspaceId();
9614
+ const groups = /* @__PURE__ */ new Map();
9615
+ for (const file of input.files) {
9616
+ const folder = uploadFolderOf(file, input.folder);
9617
+ groups.set(folder, [...groups.get(folder) ?? [], file]);
9618
+ }
9619
+ const batches = [];
9620
+ for (const [folder, files] of groups)
9621
+ for (let i = 0; i < files.length; i += BATCH_SIZE2)
9622
+ batches.push({ folder, files: files.slice(i, i + BATCH_SIZE2) });
9623
+ let workspaceKey = null;
9624
+ if (direct && resolveWorkspaceKey) {
9625
+ try {
9626
+ workspaceKey = await resolveWorkspaceKey(workspaceId);
9627
+ } catch {
9628
+ workspaceKey = null;
9629
+ }
9630
+ }
9631
+ const total = input.files.reduce((sum, file) => sum + file.size, 0);
9632
+ const loadedByBatch = new Array(batches.length).fill(0);
9633
+ let done = 0;
9634
+ const report = () => {
9635
+ const loaded = loadedByBatch.reduce((sum, bytes) => sum + bytes, 0);
9636
+ onProgress?.({
9637
+ loaded,
9638
+ total,
9639
+ percentage: total > 0 ? Math.min(Math.round(loaded / total * 100), 100) : 0,
9640
+ batches: batches.length > 1 ? { current: done, total: batches.length } : null
9641
+ });
9642
+ };
9643
+ report();
9644
+ const results = await runLimited(
9645
+ batches.map(({ folder, files }, index) => async () => {
9646
+ const bytes = files.reduce((sum, file) => sum + file.size, 0);
9647
+ const result = workspaceKey ? await uploadDocumentsDirect(
9648
+ arbi.getClient(),
9649
+ workspaceKey,
9650
+ await Promise.all(
9651
+ files.map(async (file) => ({
9652
+ name: file.name,
9653
+ data: new Uint8Array(await file.arrayBuffer()),
9654
+ contentType: file.type || mimeFromName2(file.name)
9655
+ }))
9656
+ ),
9657
+ {
9658
+ shared: input.shared,
9659
+ folder: folder ?? void 0,
9660
+ configExtId: input.configExtId ?? void 0,
9661
+ // Ciphertext bytes, scaled back to the files' own so the total stays true.
9662
+ onBytesProgress: ({ loaded, total: sent }) => {
9663
+ loadedByBatch[index] = sent > 0 ? Math.round(loaded / sent * bytes) : 0;
9664
+ report();
9665
+ }
9666
+ }
9667
+ ) : await arbi.documents.upload(files, {
9668
+ shared: input.shared,
9669
+ folder: folder ?? void 0,
9670
+ configExtId: input.configExtId ?? void 0,
9671
+ onProgress: (loaded) => {
9672
+ loadedByBatch[index] = Math.min(loaded, bytes);
9673
+ report();
9674
+ }
9675
+ });
9676
+ const docIds2 = result.doc_ext_ids ?? [];
9677
+ if (docIds2.length > 0) {
9678
+ for (const docId of docIds2) uploadedFolders.set(docId, { workspaceId, folder });
9679
+ const made = new Set(docIds2);
9680
+ chunk37TQBT7Y_cjs.patchDocuments(
9681
+ qc,
9682
+ (rows) => rows.map((doc) => made.has(doc.external_id) ? { ...doc, folder } : doc),
9683
+ workspaceId
9684
+ );
9685
+ }
9686
+ loadedByBatch[index] = bytes;
9687
+ done += 1;
9688
+ report();
9689
+ return result;
9690
+ }),
9691
+ CONCURRENT_BATCHES
9692
+ );
9693
+ const docIds = results.flatMap((result) => result.doc_ext_ids ?? []);
9694
+ const skipped = results.flatMap((result) => result.skipped ?? []);
9695
+ if (docIds.length > 0) {
9696
+ const read = await chunk37TQBT7Y_cjs.refreshDocuments(qc, arbi, docIds, { processingStatus });
9697
+ for (const doc of read) forgetUploadedDocumentFolder(doc.external_id);
9698
+ }
9699
+ await qc.invalidateQueries({ queryKey: chunk37TQBT7Y_cjs.arbiQueryKeys.workspaces() });
9700
+ if (docIds.length > 0 && input.generateTagIds?.length) {
9701
+ await generateDocTags({ tagIds: input.generateTagIds, docIds, overwrite: false }).catch(
9702
+ () => void 0
9703
+ );
9704
+ }
9705
+ return { docIds, skipped };
9706
+ },
9707
+ [arbi, qc, direct, resolveWorkspaceKey, processingStatus, generateDocTags]
9708
+ );
9709
+ }
9710
+ function isZipUrl(url) {
9711
+ try {
9712
+ return new URL(url).pathname.toLowerCase().endsWith(".zip");
9713
+ } catch {
9714
+ return url.toLowerCase().endsWith(".zip");
9715
+ }
9716
+ }
9717
+ function useUploadFromUrls() {
9718
+ const { mutateAsync: uploadUrls } = useUploadUrls();
9719
+ const { extractZip = extractZipFile } = useDocumentsSupport();
9720
+ return React3.useCallback(
9721
+ async ({ urls, shared, configExtId }) => {
9722
+ const zipUrls = urls.filter(isZipUrl);
9723
+ const others = urls.filter((url) => !isZipUrl(url));
9724
+ const zipFiles = [];
9725
+ const oversizedInZips = [];
9726
+ const failedZipUrls = [];
9727
+ await Promise.all(
9728
+ zipUrls.map(async (url) => {
9729
+ try {
9730
+ const response = await fetch(url);
9731
+ if (!response.ok) throw new Error(`HTTP ${response.status}`);
9732
+ const name = decodeURIComponent(new URL(url).pathname.split("/").pop() || "") || "archive.zip";
9733
+ const zip = new File([await response.blob()], name, { type: "application/zip" });
9734
+ const { extractedFiles, skippedLargeFiles } = await extractZip(
9735
+ zip,
9736
+ UPLOAD_MAX_FILE_SIZE
9737
+ );
9738
+ zipFiles.push(...extractedFiles);
9739
+ oversizedInZips.push(...skippedLargeFiles);
9740
+ } catch {
9741
+ failedZipUrls.push(url);
9742
+ }
9743
+ })
9744
+ );
9745
+ const result = others.length ? await uploadUrls({ urls: others, shared, configExtId }) : {};
9746
+ return {
9747
+ docIds: result.doc_ext_ids ?? [],
9748
+ skipped: result.skipped ?? [],
9749
+ zipFiles,
9750
+ oversizedInZips,
9751
+ failedZipUrls
9752
+ };
9753
+ },
9754
+ [uploadUrls, extractZip]
9755
+ );
9756
+ }
9424
9757
 
9425
9758
  Object.defineProperty(exports, "DOCUMENTS_FIRST_PAGE_MEASURE", {
9426
9759
  enumerable: true,
@@ -9768,663 +10101,691 @@ Object.defineProperty(exports, "useNotify", {
9768
10101
  });
9769
10102
  Object.defineProperty(exports, "AUDIO_MIME_PREFERENCE", {
9770
10103
  enumerable: true,
9771
- get: function () { return chunkVKWGRGY6_cjs.AUDIO_MIME_PREFERENCE; }
10104
+ get: function () { return chunkRDLAOB55_cjs.AUDIO_MIME_PREFERENCE; }
9772
10105
  });
9773
10106
  Object.defineProperty(exports, "AgentBadge", {
9774
10107
  enumerable: true,
9775
- get: function () { return chunkVKWGRGY6_cjs.AgentBadge; }
10108
+ get: function () { return chunkRDLAOB55_cjs.AgentBadge; }
9776
10109
  });
9777
10110
  Object.defineProperty(exports, "AiMarkdown", {
9778
10111
  enumerable: true,
9779
- get: function () { return chunkVKWGRGY6_cjs.AiMarkdown; }
10112
+ get: function () { return chunkRDLAOB55_cjs.AiMarkdown; }
9780
10113
  });
9781
10114
  Object.defineProperty(exports, "ArbiBotHeadIcon", {
9782
10115
  enumerable: true,
9783
- get: function () { return chunkVKWGRGY6_cjs.ArbiBotHeadIcon; }
10116
+ get: function () { return chunkRDLAOB55_cjs.ArbiBotHeadIcon; }
9784
10117
  });
9785
10118
  Object.defineProperty(exports, "ArbiIcon", {
9786
10119
  enumerable: true,
9787
- get: function () { return chunkVKWGRGY6_cjs.ArbiIcon; }
10120
+ get: function () { return chunkRDLAOB55_cjs.ArbiIcon; }
9788
10121
  });
9789
10122
  Object.defineProperty(exports, "AudIcon", {
9790
10123
  enumerable: true,
9791
- get: function () { return chunkVKWGRGY6_cjs.AudIcon; }
10124
+ get: function () { return chunkRDLAOB55_cjs.AudIcon; }
9792
10125
  });
9793
10126
  Object.defineProperty(exports, "Avatar", {
9794
10127
  enumerable: true,
9795
- get: function () { return chunkVKWGRGY6_cjs.Avatar; }
10128
+ get: function () { return chunkRDLAOB55_cjs.Avatar; }
9796
10129
  });
9797
10130
  Object.defineProperty(exports, "AvatarFallback", {
9798
10131
  enumerable: true,
9799
- get: function () { return chunkVKWGRGY6_cjs.AvatarFallback; }
10132
+ get: function () { return chunkRDLAOB55_cjs.AvatarFallback; }
9800
10133
  });
9801
10134
  Object.defineProperty(exports, "AvatarImage", {
9802
10135
  enumerable: true,
9803
- get: function () { return chunkVKWGRGY6_cjs.AvatarImage; }
10136
+ get: function () { return chunkRDLAOB55_cjs.AvatarImage; }
9804
10137
  });
9805
10138
  Object.defineProperty(exports, "BASE_COLORS", {
9806
10139
  enumerable: true,
9807
- get: function () { return chunkVKWGRGY6_cjs.BASE_COLORS; }
10140
+ get: function () { return chunkRDLAOB55_cjs.BASE_COLORS; }
9808
10141
  });
9809
10142
  Object.defineProperty(exports, "Badge", {
9810
10143
  enumerable: true,
9811
- get: function () { return chunkVKWGRGY6_cjs.Badge; }
10144
+ get: function () { return chunkRDLAOB55_cjs.Badge; }
9812
10145
  });
9813
10146
  Object.defineProperty(exports, "Card", {
9814
10147
  enumerable: true,
9815
- get: function () { return chunkVKWGRGY6_cjs.Card; }
10148
+ get: function () { return chunkRDLAOB55_cjs.Card; }
9816
10149
  });
9817
10150
  Object.defineProperty(exports, "CardContent", {
9818
10151
  enumerable: true,
9819
- get: function () { return chunkVKWGRGY6_cjs.CardContent; }
10152
+ get: function () { return chunkRDLAOB55_cjs.CardContent; }
9820
10153
  });
9821
10154
  Object.defineProperty(exports, "CardDescription", {
9822
10155
  enumerable: true,
9823
- get: function () { return chunkVKWGRGY6_cjs.CardDescription; }
10156
+ get: function () { return chunkRDLAOB55_cjs.CardDescription; }
9824
10157
  });
9825
10158
  Object.defineProperty(exports, "CardFooter", {
9826
10159
  enumerable: true,
9827
- get: function () { return chunkVKWGRGY6_cjs.CardFooter; }
10160
+ get: function () { return chunkRDLAOB55_cjs.CardFooter; }
9828
10161
  });
9829
10162
  Object.defineProperty(exports, "CardHeader", {
9830
10163
  enumerable: true,
9831
- get: function () { return chunkVKWGRGY6_cjs.CardHeader; }
10164
+ get: function () { return chunkRDLAOB55_cjs.CardHeader; }
9832
10165
  });
9833
10166
  Object.defineProperty(exports, "CardTitle", {
9834
10167
  enumerable: true,
9835
- get: function () { return chunkVKWGRGY6_cjs.CardTitle; }
10168
+ get: function () { return chunkRDLAOB55_cjs.CardTitle; }
9836
10169
  });
9837
10170
  Object.defineProperty(exports, "Checkbox", {
9838
10171
  enumerable: true,
9839
- get: function () { return chunkVKWGRGY6_cjs.Checkbox; }
10172
+ get: function () { return chunkRDLAOB55_cjs.Checkbox; }
9840
10173
  });
9841
10174
  Object.defineProperty(exports, "Collapsible", {
9842
10175
  enumerable: true,
9843
- get: function () { return chunkVKWGRGY6_cjs.Collapsible; }
10176
+ get: function () { return chunkRDLAOB55_cjs.Collapsible; }
9844
10177
  });
9845
10178
  Object.defineProperty(exports, "CollapsibleContent", {
9846
10179
  enumerable: true,
9847
- get: function () { return chunkVKWGRGY6_cjs.CollapsibleContent; }
10180
+ get: function () { return chunkRDLAOB55_cjs.CollapsibleContent; }
9848
10181
  });
9849
10182
  Object.defineProperty(exports, "CollapsibleTrigger", {
9850
10183
  enumerable: true,
9851
- get: function () { return chunkVKWGRGY6_cjs.CollapsibleTrigger; }
10184
+ get: function () { return chunkRDLAOB55_cjs.CollapsibleTrigger; }
9852
10185
  });
9853
10186
  Object.defineProperty(exports, "Command", {
9854
10187
  enumerable: true,
9855
- get: function () { return chunkVKWGRGY6_cjs.Command; }
10188
+ get: function () { return chunkRDLAOB55_cjs.Command; }
9856
10189
  });
9857
10190
  Object.defineProperty(exports, "CommandDialog", {
9858
10191
  enumerable: true,
9859
- get: function () { return chunkVKWGRGY6_cjs.CommandDialog; }
10192
+ get: function () { return chunkRDLAOB55_cjs.CommandDialog; }
9860
10193
  });
9861
10194
  Object.defineProperty(exports, "CommandEmpty", {
9862
10195
  enumerable: true,
9863
- get: function () { return chunkVKWGRGY6_cjs.CommandEmpty; }
10196
+ get: function () { return chunkRDLAOB55_cjs.CommandEmpty; }
9864
10197
  });
9865
10198
  Object.defineProperty(exports, "CommandGroup", {
9866
10199
  enumerable: true,
9867
- get: function () { return chunkVKWGRGY6_cjs.CommandGroup; }
10200
+ get: function () { return chunkRDLAOB55_cjs.CommandGroup; }
9868
10201
  });
9869
10202
  Object.defineProperty(exports, "CommandInput", {
9870
10203
  enumerable: true,
9871
- get: function () { return chunkVKWGRGY6_cjs.CommandInput; }
10204
+ get: function () { return chunkRDLAOB55_cjs.CommandInput; }
9872
10205
  });
9873
10206
  Object.defineProperty(exports, "CommandItem", {
9874
10207
  enumerable: true,
9875
- get: function () { return chunkVKWGRGY6_cjs.CommandItem; }
10208
+ get: function () { return chunkRDLAOB55_cjs.CommandItem; }
9876
10209
  });
9877
10210
  Object.defineProperty(exports, "CommandList", {
9878
10211
  enumerable: true,
9879
- get: function () { return chunkVKWGRGY6_cjs.CommandList; }
10212
+ get: function () { return chunkRDLAOB55_cjs.CommandList; }
9880
10213
  });
9881
10214
  Object.defineProperty(exports, "CommandSeparator", {
9882
10215
  enumerable: true,
9883
- get: function () { return chunkVKWGRGY6_cjs.CommandSeparator; }
10216
+ get: function () { return chunkRDLAOB55_cjs.CommandSeparator; }
9884
10217
  });
9885
10218
  Object.defineProperty(exports, "CommandShortcut", {
9886
10219
  enumerable: true,
9887
- get: function () { return chunkVKWGRGY6_cjs.CommandShortcut; }
10220
+ get: function () { return chunkRDLAOB55_cjs.CommandShortcut; }
9888
10221
  });
9889
10222
  Object.defineProperty(exports, "DEFAULT_SEGMENTER_CONFIG", {
9890
10223
  enumerable: true,
9891
- get: function () { return chunkVKWGRGY6_cjs.DEFAULT_SEGMENTER_CONFIG; }
10224
+ get: function () { return chunkRDLAOB55_cjs.DEFAULT_SEGMENTER_CONFIG; }
9892
10225
  });
9893
10226
  Object.defineProperty(exports, "DebouncedInput", {
9894
10227
  enumerable: true,
9895
- get: function () { return chunkVKWGRGY6_cjs.DebouncedInput; }
10228
+ get: function () { return chunkRDLAOB55_cjs.DebouncedInput; }
9896
10229
  });
9897
10230
  Object.defineProperty(exports, "DictateProvider", {
9898
10231
  enumerable: true,
9899
- get: function () { return chunkVKWGRGY6_cjs.DictateProvider; }
10232
+ get: function () { return chunkRDLAOB55_cjs.DictateProvider; }
9900
10233
  });
9901
10234
  Object.defineProperty(exports, "DocIcon", {
9902
10235
  enumerable: true,
9903
- get: function () { return chunkVKWGRGY6_cjs.DocIcon; }
10236
+ get: function () { return chunkRDLAOB55_cjs.DocIcon; }
9904
10237
  });
9905
10238
  Object.defineProperty(exports, "DocumentCard", {
9906
10239
  enumerable: true,
9907
- get: function () { return chunkVKWGRGY6_cjs.DocumentCard; }
10240
+ get: function () { return chunkRDLAOB55_cjs.DocumentCard; }
9908
10241
  });
9909
10242
  Object.defineProperty(exports, "DocumentEntity", {
9910
10243
  enumerable: true,
9911
- get: function () { return chunkVKWGRGY6_cjs.DocumentEntity; }
10244
+ get: function () { return chunkRDLAOB55_cjs.DocumentEntity; }
9912
10245
  });
9913
10246
  Object.defineProperty(exports, "ENTITY_MAPPINGS", {
9914
10247
  enumerable: true,
9915
- get: function () { return chunkVKWGRGY6_cjs.ENTITY_MAPPINGS; }
10248
+ get: function () { return chunkRDLAOB55_cjs.ENTITY_MAPPINGS; }
9916
10249
  });
9917
10250
  Object.defineProperty(exports, "EmlIcon", {
9918
10251
  enumerable: true,
9919
- get: function () { return chunkVKWGRGY6_cjs.EmlIcon; }
10252
+ get: function () { return chunkRDLAOB55_cjs.EmlIcon; }
9920
10253
  });
9921
10254
  Object.defineProperty(exports, "EntityIcon", {
9922
10255
  enumerable: true,
9923
- get: function () { return chunkVKWGRGY6_cjs.EntityIcon; }
10256
+ get: function () { return chunkRDLAOB55_cjs.EntityIcon; }
9924
10257
  });
9925
10258
  Object.defineProperty(exports, "EntityPill", {
9926
10259
  enumerable: true,
9927
- get: function () { return chunkVKWGRGY6_cjs.EntityPill; }
10260
+ get: function () { return chunkRDLAOB55_cjs.EntityPill; }
9928
10261
  });
9929
10262
  Object.defineProperty(exports, "FILE_TYPE_COLORS", {
9930
10263
  enumerable: true,
9931
- get: function () { return chunkVKWGRGY6_cjs.FILE_TYPE_COLORS; }
10264
+ get: function () { return chunkRDLAOB55_cjs.FILE_TYPE_COLORS; }
9932
10265
  });
9933
10266
  Object.defineProperty(exports, "HoverCard", {
9934
10267
  enumerable: true,
9935
- get: function () { return chunkVKWGRGY6_cjs.HoverCard; }
10268
+ get: function () { return chunkRDLAOB55_cjs.HoverCard; }
9936
10269
  });
9937
10270
  Object.defineProperty(exports, "HoverCardContent", {
9938
10271
  enumerable: true,
9939
- get: function () { return chunkVKWGRGY6_cjs.HoverCardContent; }
10272
+ get: function () { return chunkRDLAOB55_cjs.HoverCardContent; }
9940
10273
  });
9941
10274
  Object.defineProperty(exports, "HoverCardTrigger", {
9942
10275
  enumerable: true,
9943
- get: function () { return chunkVKWGRGY6_cjs.HoverCardTrigger; }
10276
+ get: function () { return chunkRDLAOB55_cjs.HoverCardTrigger; }
9944
10277
  });
9945
10278
  Object.defineProperty(exports, "HtmlIcon", {
9946
10279
  enumerable: true,
9947
- get: function () { return chunkVKWGRGY6_cjs.HtmlIcon; }
10280
+ get: function () { return chunkRDLAOB55_cjs.HtmlIcon; }
9948
10281
  });
9949
10282
  Object.defineProperty(exports, "INITIAL_SEGMENTER_STATE", {
9950
10283
  enumerable: true,
9951
- get: function () { return chunkVKWGRGY6_cjs.INITIAL_SEGMENTER_STATE; }
10284
+ get: function () { return chunkRDLAOB55_cjs.INITIAL_SEGMENTER_STATE; }
9952
10285
  });
9953
10286
  Object.defineProperty(exports, "IconToggle", {
9954
10287
  enumerable: true,
9955
- get: function () { return chunkVKWGRGY6_cjs.IconToggle; }
10288
+ get: function () { return chunkRDLAOB55_cjs.IconToggle; }
9956
10289
  });
9957
10290
  Object.defineProperty(exports, "ImgIcon", {
9958
10291
  enumerable: true,
9959
- get: function () { return chunkVKWGRGY6_cjs.ImgIcon; }
10292
+ get: function () { return chunkRDLAOB55_cjs.ImgIcon; }
9960
10293
  });
9961
10294
  Object.defineProperty(exports, "InlineMicButton", {
9962
10295
  enumerable: true,
9963
- get: function () { return chunkVKWGRGY6_cjs.InlineMicButton; }
10296
+ get: function () { return chunkRDLAOB55_cjs.InlineMicButton; }
9964
10297
  });
9965
10298
  Object.defineProperty(exports, "Input", {
9966
10299
  enumerable: true,
9967
- get: function () { return chunkVKWGRGY6_cjs.Input; }
10300
+ get: function () { return chunkRDLAOB55_cjs.Input; }
9968
10301
  });
9969
10302
  Object.defineProperty(exports, "Label", {
9970
10303
  enumerable: true,
9971
- get: function () { return chunkVKWGRGY6_cjs.Label; }
10304
+ get: function () { return chunkRDLAOB55_cjs.Label; }
9972
10305
  });
9973
10306
  Object.defineProperty(exports, "MarkMenu", {
9974
10307
  enumerable: true,
9975
- get: function () { return chunkVKWGRGY6_cjs.MarkMenu; }
10308
+ get: function () { return chunkRDLAOB55_cjs.MarkMenu; }
9976
10309
  });
9977
10310
  Object.defineProperty(exports, "MicRecordingOverlay", {
9978
10311
  enumerable: true,
9979
- get: function () { return chunkVKWGRGY6_cjs.MicRecordingOverlay; }
10312
+ get: function () { return chunkRDLAOB55_cjs.MicRecordingOverlay; }
9980
10313
  });
9981
10314
  Object.defineProperty(exports, "MicWaveformIndicator", {
9982
10315
  enumerable: true,
9983
- get: function () { return chunkVKWGRGY6_cjs.MicWaveformIndicator; }
10316
+ get: function () { return chunkRDLAOB55_cjs.MicWaveformIndicator; }
9984
10317
  });
9985
10318
  Object.defineProperty(exports, "NEUTRAL_GRAY", {
9986
10319
  enumerable: true,
9987
- get: function () { return chunkVKWGRGY6_cjs.NEUTRAL_GRAY; }
10320
+ get: function () { return chunkRDLAOB55_cjs.NEUTRAL_GRAY; }
9988
10321
  });
9989
10322
  Object.defineProperty(exports, "PLACEHOLDER_COLOR", {
9990
10323
  enumerable: true,
9991
- get: function () { return chunkVKWGRGY6_cjs.PLACEHOLDER_COLOR; }
10324
+ get: function () { return chunkRDLAOB55_cjs.PLACEHOLDER_COLOR; }
9992
10325
  });
9993
10326
  Object.defineProperty(exports, "PassageCard", {
9994
10327
  enumerable: true,
9995
- get: function () { return chunkVKWGRGY6_cjs.PassageCard; }
10328
+ get: function () { return chunkRDLAOB55_cjs.PassageCard; }
9996
10329
  });
9997
10330
  Object.defineProperty(exports, "PdfIcon", {
9998
10331
  enumerable: true,
9999
- get: function () { return chunkVKWGRGY6_cjs.PdfIcon; }
10332
+ get: function () { return chunkRDLAOB55_cjs.PdfIcon; }
10000
10333
  });
10001
10334
  Object.defineProperty(exports, "Popover", {
10002
10335
  enumerable: true,
10003
- get: function () { return chunkVKWGRGY6_cjs.Popover; }
10336
+ get: function () { return chunkRDLAOB55_cjs.Popover; }
10004
10337
  });
10005
10338
  Object.defineProperty(exports, "PopoverAnchor", {
10006
10339
  enumerable: true,
10007
- get: function () { return chunkVKWGRGY6_cjs.PopoverAnchor; }
10340
+ get: function () { return chunkRDLAOB55_cjs.PopoverAnchor; }
10008
10341
  });
10009
10342
  Object.defineProperty(exports, "PopoverClose", {
10010
10343
  enumerable: true,
10011
- get: function () { return chunkVKWGRGY6_cjs.PopoverClose; }
10344
+ get: function () { return chunkRDLAOB55_cjs.PopoverClose; }
10012
10345
  });
10013
10346
  Object.defineProperty(exports, "PopoverContent", {
10014
10347
  enumerable: true,
10015
- get: function () { return chunkVKWGRGY6_cjs.PopoverContent; }
10348
+ get: function () { return chunkRDLAOB55_cjs.PopoverContent; }
10016
10349
  });
10017
10350
  Object.defineProperty(exports, "PopoverTrigger", {
10018
10351
  enumerable: true,
10019
- get: function () { return chunkVKWGRGY6_cjs.PopoverTrigger; }
10352
+ get: function () { return chunkRDLAOB55_cjs.PopoverTrigger; }
10020
10353
  });
10021
10354
  Object.defineProperty(exports, "PresenceLabel", {
10022
10355
  enumerable: true,
10023
- get: function () { return chunkVKWGRGY6_cjs.PresenceLabel; }
10356
+ get: function () { return chunkRDLAOB55_cjs.PresenceLabel; }
10024
10357
  });
10025
10358
  Object.defineProperty(exports, "Progress", {
10026
10359
  enumerable: true,
10027
- get: function () { return chunkVKWGRGY6_cjs.Progress; }
10360
+ get: function () { return chunkRDLAOB55_cjs.Progress; }
10028
10361
  });
10029
10362
  Object.defineProperty(exports, "ProjectEntity", {
10030
10363
  enumerable: true,
10031
- get: function () { return chunkVKWGRGY6_cjs.ProjectEntity; }
10364
+ get: function () { return chunkRDLAOB55_cjs.ProjectEntity; }
10032
10365
  });
10033
10366
  Object.defineProperty(exports, "RadioGroup", {
10034
10367
  enumerable: true,
10035
- get: function () { return chunkVKWGRGY6_cjs.RadioGroup; }
10368
+ get: function () { return chunkRDLAOB55_cjs.RadioGroup; }
10036
10369
  });
10037
10370
  Object.defineProperty(exports, "RadioGroupItem", {
10038
10371
  enumerable: true,
10039
- get: function () { return chunkVKWGRGY6_cjs.RadioGroupItem; }
10372
+ get: function () { return chunkRDLAOB55_cjs.RadioGroupItem; }
10040
10373
  });
10041
10374
  Object.defineProperty(exports, "RagDot", {
10042
10375
  enumerable: true,
10043
- get: function () { return chunkVKWGRGY6_cjs.RagDot; }
10376
+ get: function () { return chunkRDLAOB55_cjs.RagDot; }
10044
10377
  });
10045
10378
  Object.defineProperty(exports, "RelevanceDot", {
10046
10379
  enumerable: true,
10047
- get: function () { return chunkVKWGRGY6_cjs.RelevanceDot; }
10380
+ get: function () { return chunkRDLAOB55_cjs.RelevanceDot; }
10048
10381
  });
10049
10382
  Object.defineProperty(exports, "Select", {
10050
10383
  enumerable: true,
10051
- get: function () { return chunkVKWGRGY6_cjs.Select; }
10384
+ get: function () { return chunkRDLAOB55_cjs.Select; }
10052
10385
  });
10053
10386
  Object.defineProperty(exports, "SelectContent", {
10054
10387
  enumerable: true,
10055
- get: function () { return chunkVKWGRGY6_cjs.SelectContent; }
10388
+ get: function () { return chunkRDLAOB55_cjs.SelectContent; }
10056
10389
  });
10057
10390
  Object.defineProperty(exports, "SelectGroup", {
10058
10391
  enumerable: true,
10059
- get: function () { return chunkVKWGRGY6_cjs.SelectGroup; }
10392
+ get: function () { return chunkRDLAOB55_cjs.SelectGroup; }
10060
10393
  });
10061
10394
  Object.defineProperty(exports, "SelectItem", {
10062
10395
  enumerable: true,
10063
- get: function () { return chunkVKWGRGY6_cjs.SelectItem; }
10396
+ get: function () { return chunkRDLAOB55_cjs.SelectItem; }
10064
10397
  });
10065
10398
  Object.defineProperty(exports, "SelectLabel", {
10066
10399
  enumerable: true,
10067
- get: function () { return chunkVKWGRGY6_cjs.SelectLabel; }
10400
+ get: function () { return chunkRDLAOB55_cjs.SelectLabel; }
10068
10401
  });
10069
10402
  Object.defineProperty(exports, "SelectScrollDownButton", {
10070
10403
  enumerable: true,
10071
- get: function () { return chunkVKWGRGY6_cjs.SelectScrollDownButton; }
10404
+ get: function () { return chunkRDLAOB55_cjs.SelectScrollDownButton; }
10072
10405
  });
10073
10406
  Object.defineProperty(exports, "SelectScrollUpButton", {
10074
10407
  enumerable: true,
10075
- get: function () { return chunkVKWGRGY6_cjs.SelectScrollUpButton; }
10408
+ get: function () { return chunkRDLAOB55_cjs.SelectScrollUpButton; }
10076
10409
  });
10077
10410
  Object.defineProperty(exports, "SelectSeparator", {
10078
10411
  enumerable: true,
10079
- get: function () { return chunkVKWGRGY6_cjs.SelectSeparator; }
10412
+ get: function () { return chunkRDLAOB55_cjs.SelectSeparator; }
10080
10413
  });
10081
10414
  Object.defineProperty(exports, "SelectTrigger", {
10082
10415
  enumerable: true,
10083
- get: function () { return chunkVKWGRGY6_cjs.SelectTrigger; }
10416
+ get: function () { return chunkRDLAOB55_cjs.SelectTrigger; }
10084
10417
  });
10085
10418
  Object.defineProperty(exports, "SelectValue", {
10086
10419
  enumerable: true,
10087
- get: function () { return chunkVKWGRGY6_cjs.SelectValue; }
10420
+ get: function () { return chunkRDLAOB55_cjs.SelectValue; }
10088
10421
  });
10089
10422
  Object.defineProperty(exports, "Separator", {
10090
10423
  enumerable: true,
10091
- get: function () { return chunkVKWGRGY6_cjs.Separator; }
10424
+ get: function () { return chunkRDLAOB55_cjs.Separator; }
10092
10425
  });
10093
10426
  Object.defineProperty(exports, "ShieldIcon", {
10094
10427
  enumerable: true,
10095
- get: function () { return chunkVKWGRGY6_cjs.ShieldIcon; }
10428
+ get: function () { return chunkRDLAOB55_cjs.ShieldIcon; }
10096
10429
  });
10097
10430
  Object.defineProperty(exports, "Slider", {
10098
10431
  enumerable: true,
10099
- get: function () { return chunkVKWGRGY6_cjs.Slider; }
10432
+ get: function () { return chunkRDLAOB55_cjs.Slider; }
10100
10433
  });
10101
10434
  Object.defineProperty(exports, "StatusPill", {
10102
10435
  enumerable: true,
10103
- get: function () { return chunkVKWGRGY6_cjs.StatusPill; }
10436
+ get: function () { return chunkRDLAOB55_cjs.StatusPill; }
10104
10437
  });
10105
10438
  Object.defineProperty(exports, "Switch", {
10106
10439
  enumerable: true,
10107
- get: function () { return chunkVKWGRGY6_cjs.Switch; }
10440
+ get: function () { return chunkRDLAOB55_cjs.Switch; }
10108
10441
  });
10109
10442
  Object.defineProperty(exports, "TAG_TYPE_ICONS", {
10110
10443
  enumerable: true,
10111
- get: function () { return chunkVKWGRGY6_cjs.TAG_TYPE_ICONS; }
10444
+ get: function () { return chunkRDLAOB55_cjs.TAG_TYPE_ICONS; }
10112
10445
  });
10113
10446
  Object.defineProperty(exports, "TAG_TYPE_LABELS", {
10114
10447
  enumerable: true,
10115
- get: function () { return chunkVKWGRGY6_cjs.TAG_TYPE_LABELS; }
10448
+ get: function () { return chunkRDLAOB55_cjs.TAG_TYPE_LABELS; }
10116
10449
  });
10117
10450
  Object.defineProperty(exports, "Table", {
10118
10451
  enumerable: true,
10119
- get: function () { return chunkVKWGRGY6_cjs.Table; }
10452
+ get: function () { return chunkRDLAOB55_cjs.Table; }
10120
10453
  });
10121
10454
  Object.defineProperty(exports, "TableBody", {
10122
10455
  enumerable: true,
10123
- get: function () { return chunkVKWGRGY6_cjs.TableBody; }
10456
+ get: function () { return chunkRDLAOB55_cjs.TableBody; }
10124
10457
  });
10125
10458
  Object.defineProperty(exports, "TableCaption", {
10126
10459
  enumerable: true,
10127
- get: function () { return chunkVKWGRGY6_cjs.TableCaption; }
10460
+ get: function () { return chunkRDLAOB55_cjs.TableCaption; }
10128
10461
  });
10129
10462
  Object.defineProperty(exports, "TableCell", {
10130
10463
  enumerable: true,
10131
- get: function () { return chunkVKWGRGY6_cjs.TableCell; }
10464
+ get: function () { return chunkRDLAOB55_cjs.TableCell; }
10132
10465
  });
10133
10466
  Object.defineProperty(exports, "TableFooter", {
10134
10467
  enumerable: true,
10135
- get: function () { return chunkVKWGRGY6_cjs.TableFooter; }
10468
+ get: function () { return chunkRDLAOB55_cjs.TableFooter; }
10136
10469
  });
10137
10470
  Object.defineProperty(exports, "TableHead", {
10138
10471
  enumerable: true,
10139
- get: function () { return chunkVKWGRGY6_cjs.TableHead; }
10472
+ get: function () { return chunkRDLAOB55_cjs.TableHead; }
10140
10473
  });
10141
10474
  Object.defineProperty(exports, "TableHeader", {
10142
10475
  enumerable: true,
10143
- get: function () { return chunkVKWGRGY6_cjs.TableHeader; }
10476
+ get: function () { return chunkRDLAOB55_cjs.TableHeader; }
10144
10477
  });
10145
10478
  Object.defineProperty(exports, "TableRow", {
10146
10479
  enumerable: true,
10147
- get: function () { return chunkVKWGRGY6_cjs.TableRow; }
10480
+ get: function () { return chunkRDLAOB55_cjs.TableRow; }
10148
10481
  });
10149
10482
  Object.defineProperty(exports, "Tabs", {
10150
10483
  enumerable: true,
10151
- get: function () { return chunkVKWGRGY6_cjs.Tabs; }
10484
+ get: function () { return chunkRDLAOB55_cjs.Tabs; }
10152
10485
  });
10153
10486
  Object.defineProperty(exports, "TabsContent", {
10154
10487
  enumerable: true,
10155
- get: function () { return chunkVKWGRGY6_cjs.TabsContent; }
10488
+ get: function () { return chunkRDLAOB55_cjs.TabsContent; }
10156
10489
  });
10157
10490
  Object.defineProperty(exports, "TabsList", {
10158
10491
  enumerable: true,
10159
- get: function () { return chunkVKWGRGY6_cjs.TabsList; }
10492
+ get: function () { return chunkRDLAOB55_cjs.TabsList; }
10160
10493
  });
10161
10494
  Object.defineProperty(exports, "TabsTrigger", {
10162
10495
  enumerable: true,
10163
- get: function () { return chunkVKWGRGY6_cjs.TabsTrigger; }
10496
+ get: function () { return chunkRDLAOB55_cjs.TabsTrigger; }
10164
10497
  });
10165
10498
  Object.defineProperty(exports, "TagEntity", {
10166
10499
  enumerable: true,
10167
- get: function () { return chunkVKWGRGY6_cjs.TagEntity; }
10500
+ get: function () { return chunkRDLAOB55_cjs.TagEntity; }
10168
10501
  });
10169
10502
  Object.defineProperty(exports, "Textarea", {
10170
10503
  enumerable: true,
10171
- get: function () { return chunkVKWGRGY6_cjs.Textarea; }
10504
+ get: function () { return chunkRDLAOB55_cjs.Textarea; }
10172
10505
  });
10173
10506
  Object.defineProperty(exports, "ThreadVisibilityIcon", {
10174
10507
  enumerable: true,
10175
- get: function () { return chunkVKWGRGY6_cjs.ThreadVisibilityIcon; }
10508
+ get: function () { return chunkRDLAOB55_cjs.ThreadVisibilityIcon; }
10176
10509
  });
10177
10510
  Object.defineProperty(exports, "Toggle", {
10178
10511
  enumerable: true,
10179
- get: function () { return chunkVKWGRGY6_cjs.Toggle; }
10512
+ get: function () { return chunkRDLAOB55_cjs.Toggle; }
10180
10513
  });
10181
10514
  Object.defineProperty(exports, "ToggleGroup", {
10182
10515
  enumerable: true,
10183
- get: function () { return chunkVKWGRGY6_cjs.ToggleGroup; }
10516
+ get: function () { return chunkRDLAOB55_cjs.ToggleGroup; }
10184
10517
  });
10185
10518
  Object.defineProperty(exports, "ToggleGroupItem", {
10186
10519
  enumerable: true,
10187
- get: function () { return chunkVKWGRGY6_cjs.ToggleGroupItem; }
10520
+ get: function () { return chunkRDLAOB55_cjs.ToggleGroupItem; }
10188
10521
  });
10189
10522
  Object.defineProperty(exports, "Tooltip", {
10190
10523
  enumerable: true,
10191
- get: function () { return chunkVKWGRGY6_cjs.Tooltip; }
10524
+ get: function () { return chunkRDLAOB55_cjs.Tooltip; }
10192
10525
  });
10193
10526
  Object.defineProperty(exports, "TooltipContent", {
10194
10527
  enumerable: true,
10195
- get: function () { return chunkVKWGRGY6_cjs.TooltipContent; }
10528
+ get: function () { return chunkRDLAOB55_cjs.TooltipContent; }
10196
10529
  });
10197
10530
  Object.defineProperty(exports, "TooltipProvider", {
10198
10531
  enumerable: true,
10199
- get: function () { return chunkVKWGRGY6_cjs.TooltipProvider; }
10532
+ get: function () { return chunkRDLAOB55_cjs.TooltipProvider; }
10200
10533
  });
10201
10534
  Object.defineProperty(exports, "TooltipTrigger", {
10202
10535
  enumerable: true,
10203
- get: function () { return chunkVKWGRGY6_cjs.TooltipTrigger; }
10536
+ get: function () { return chunkRDLAOB55_cjs.TooltipTrigger; }
10204
10537
  });
10205
10538
  Object.defineProperty(exports, "TxtIcon", {
10206
10539
  enumerable: true,
10207
- get: function () { return chunkVKWGRGY6_cjs.TxtIcon; }
10540
+ get: function () { return chunkRDLAOB55_cjs.TxtIcon; }
10208
10541
  });
10209
10542
  Object.defineProperty(exports, "UserEntity", {
10210
10543
  enumerable: true,
10211
- get: function () { return chunkVKWGRGY6_cjs.UserEntity; }
10544
+ get: function () { return chunkRDLAOB55_cjs.UserEntity; }
10212
10545
  });
10213
10546
  Object.defineProperty(exports, "UserMenu", {
10214
10547
  enumerable: true,
10215
- get: function () { return chunkVKWGRGY6_cjs.UserMenu; }
10548
+ get: function () { return chunkRDLAOB55_cjs.UserMenu; }
10216
10549
  });
10217
10550
  Object.defineProperty(exports, "VIDEO_MIME_PREFERENCE", {
10218
10551
  enumerable: true,
10219
- get: function () { return chunkVKWGRGY6_cjs.VIDEO_MIME_PREFERENCE; }
10552
+ get: function () { return chunkRDLAOB55_cjs.VIDEO_MIME_PREFERENCE; }
10220
10553
  });
10221
10554
  Object.defineProperty(exports, "VISIBILITY_ICONS", {
10222
10555
  enumerable: true,
10223
- get: function () { return chunkVKWGRGY6_cjs.VISIBILITY_ICONS; }
10556
+ get: function () { return chunkRDLAOB55_cjs.VISIBILITY_ICONS; }
10224
10557
  });
10225
10558
  Object.defineProperty(exports, "VerifiedBadge", {
10226
10559
  enumerable: true,
10227
- get: function () { return chunkVKWGRGY6_cjs.VerifiedBadge; }
10560
+ get: function () { return chunkRDLAOB55_cjs.VerifiedBadge; }
10228
10561
  });
10229
10562
  Object.defineProperty(exports, "VerifiedToggle", {
10230
10563
  enumerable: true,
10231
- get: function () { return chunkVKWGRGY6_cjs.VerifiedToggle; }
10564
+ get: function () { return chunkRDLAOB55_cjs.VerifiedToggle; }
10232
10565
  });
10233
10566
  Object.defineProperty(exports, "VidIcon", {
10234
10567
  enumerable: true,
10235
- get: function () { return chunkVKWGRGY6_cjs.VidIcon; }
10568
+ get: function () { return chunkRDLAOB55_cjs.VidIcon; }
10236
10569
  });
10237
10570
  Object.defineProperty(exports, "VisibilityIcon", {
10238
10571
  enumerable: true,
10239
- get: function () { return chunkVKWGRGY6_cjs.VisibilityIcon; }
10572
+ get: function () { return chunkRDLAOB55_cjs.VisibilityIcon; }
10240
10573
  });
10241
10574
  Object.defineProperty(exports, "VisibilityToggle", {
10242
10575
  enumerable: true,
10243
- get: function () { return chunkVKWGRGY6_cjs.VisibilityToggle; }
10576
+ get: function () { return chunkRDLAOB55_cjs.VisibilityToggle; }
10244
10577
  });
10245
10578
  Object.defineProperty(exports, "XlsIcon", {
10246
10579
  enumerable: true,
10247
- get: function () { return chunkVKWGRGY6_cjs.XlsIcon; }
10580
+ get: function () { return chunkRDLAOB55_cjs.XlsIcon; }
10248
10581
  });
10249
10582
  Object.defineProperty(exports, "agentAvatarColors", {
10250
10583
  enumerable: true,
10251
- get: function () { return chunkVKWGRGY6_cjs.agentAvatarColors; }
10584
+ get: function () { return chunkRDLAOB55_cjs.agentAvatarColors; }
10252
10585
  });
10253
10586
  Object.defineProperty(exports, "badgeVariants", {
10254
10587
  enumerable: true,
10255
- get: function () { return chunkVKWGRGY6_cjs.badgeVariants; }
10588
+ get: function () { return chunkRDLAOB55_cjs.badgeVariants; }
10256
10589
  });
10257
10590
  Object.defineProperty(exports, "cardVariants", {
10258
10591
  enumerable: true,
10259
- get: function () { return chunkVKWGRGY6_cjs.cardVariants; }
10592
+ get: function () { return chunkRDLAOB55_cjs.cardVariants; }
10260
10593
  });
10261
10594
  Object.defineProperty(exports, "classifyMediaError", {
10262
10595
  enumerable: true,
10263
- get: function () { return chunkVKWGRGY6_cjs.classifyMediaError; }
10596
+ get: function () { return chunkRDLAOB55_cjs.classifyMediaError; }
10264
10597
  });
10265
10598
  Object.defineProperty(exports, "configureEntityRegistry", {
10266
10599
  enumerable: true,
10267
- get: function () { return chunkVKWGRGY6_cjs.configureEntityRegistry; }
10600
+ get: function () { return chunkRDLAOB55_cjs.configureEntityRegistry; }
10268
10601
  });
10269
10602
  Object.defineProperty(exports, "configureRagLabels", {
10270
10603
  enumerable: true,
10271
- get: function () { return chunkVKWGRGY6_cjs.configureRagLabels; }
10604
+ get: function () { return chunkRDLAOB55_cjs.configureRagLabels; }
10272
10605
  });
10273
10606
  Object.defineProperty(exports, "configureStatusRegistry", {
10274
10607
  enumerable: true,
10275
- get: function () { return chunkVKWGRGY6_cjs.configureStatusRegistry; }
10608
+ get: function () { return chunkRDLAOB55_cjs.configureStatusRegistry; }
10276
10609
  });
10277
10610
  Object.defineProperty(exports, "createChunkedRecorder", {
10278
10611
  enumerable: true,
10279
- get: function () { return chunkVKWGRGY6_cjs.createChunkedRecorder; }
10612
+ get: function () { return chunkRDLAOB55_cjs.createChunkedRecorder; }
10280
10613
  });
10281
10614
  Object.defineProperty(exports, "createUserAvatarIcon", {
10282
10615
  enumerable: true,
10283
- get: function () { return chunkVKWGRGY6_cjs.createUserAvatarIcon; }
10616
+ get: function () { return chunkRDLAOB55_cjs.createUserAvatarIcon; }
10284
10617
  });
10285
10618
  Object.defineProperty(exports, "extensionFromMime", {
10286
10619
  enumerable: true,
10287
- get: function () { return chunkVKWGRGY6_cjs.extensionFromMime; }
10620
+ get: function () { return chunkRDLAOB55_cjs.extensionFromMime; }
10288
10621
  });
10289
10622
  Object.defineProperty(exports, "flushSegmenter", {
10290
10623
  enumerable: true,
10291
- get: function () { return chunkVKWGRGY6_cjs.flushSegmenter; }
10624
+ get: function () { return chunkRDLAOB55_cjs.flushSegmenter; }
10292
10625
  });
10293
10626
  Object.defineProperty(exports, "formatElapsed", {
10294
10627
  enumerable: true,
10295
- get: function () { return chunkVKWGRGY6_cjs.formatElapsed; }
10628
+ get: function () { return chunkRDLAOB55_cjs.formatElapsed; }
10296
10629
  });
10297
10630
  Object.defineProperty(exports, "formatFriendlyDate", {
10298
10631
  enumerable: true,
10299
- get: function () { return chunkVKWGRGY6_cjs.formatFriendlyDate; }
10632
+ get: function () { return chunkRDLAOB55_cjs.formatFriendlyDate; }
10300
10633
  });
10301
10634
  Object.defineProperty(exports, "friendlyFileType", {
10302
10635
  enumerable: true,
10303
- get: function () { return chunkVKWGRGY6_cjs.friendlyFileType; }
10636
+ get: function () { return chunkRDLAOB55_cjs.friendlyFileType; }
10304
10637
  });
10305
10638
  Object.defineProperty(exports, "getDocIcon", {
10306
10639
  enumerable: true,
10307
- get: function () { return chunkVKWGRGY6_cjs.getDocIcon; }
10640
+ get: function () { return chunkRDLAOB55_cjs.getDocIcon; }
10308
10641
  });
10309
10642
  Object.defineProperty(exports, "getDocumentTitle", {
10310
10643
  enumerable: true,
10311
- get: function () { return chunkVKWGRGY6_cjs.getDocumentTitle; }
10644
+ get: function () { return chunkRDLAOB55_cjs.getDocumentTitle; }
10312
10645
  });
10313
10646
  Object.defineProperty(exports, "getEntityColor", {
10314
10647
  enumerable: true,
10315
- get: function () { return chunkVKWGRGY6_cjs.getEntityColor; }
10648
+ get: function () { return chunkRDLAOB55_cjs.getEntityColor; }
10316
10649
  });
10317
10650
  Object.defineProperty(exports, "getEntityColorStyles", {
10318
10651
  enumerable: true,
10319
- get: function () { return chunkVKWGRGY6_cjs.getEntityColorStyles; }
10652
+ get: function () { return chunkRDLAOB55_cjs.getEntityColorStyles; }
10320
10653
  });
10321
10654
  Object.defineProperty(exports, "getEntityIcon", {
10322
10655
  enumerable: true,
10323
- get: function () { return chunkVKWGRGY6_cjs.getEntityIcon; }
10656
+ get: function () { return chunkRDLAOB55_cjs.getEntityIcon; }
10324
10657
  });
10325
10658
  Object.defineProperty(exports, "getEntityLabel", {
10326
10659
  enumerable: true,
10327
- get: function () { return chunkVKWGRGY6_cjs.getEntityLabel; }
10660
+ get: function () { return chunkRDLAOB55_cjs.getEntityLabel; }
10328
10661
  });
10329
10662
  Object.defineProperty(exports, "getFileExtension", {
10330
10663
  enumerable: true,
10331
- get: function () { return chunkVKWGRGY6_cjs.getFileExtension; }
10664
+ get: function () { return chunkRDLAOB55_cjs.getFileExtension; }
10332
10665
  });
10333
10666
  Object.defineProperty(exports, "getFileTypeIcon", {
10334
10667
  enumerable: true,
10335
- get: function () { return chunkVKWGRGY6_cjs.getFileTypeIcon; }
10668
+ get: function () { return chunkRDLAOB55_cjs.getFileTypeIcon; }
10336
10669
  });
10337
10670
  Object.defineProperty(exports, "getStatusVariant", {
10338
10671
  enumerable: true,
10339
- get: function () { return chunkVKWGRGY6_cjs.getStatusVariant; }
10672
+ get: function () { return chunkRDLAOB55_cjs.getStatusVariant; }
10340
10673
  });
10341
10674
  Object.defineProperty(exports, "getTagTypeIcon", {
10342
10675
  enumerable: true,
10343
- get: function () { return chunkVKWGRGY6_cjs.getTagTypeIcon; }
10676
+ get: function () { return chunkRDLAOB55_cjs.getTagTypeIcon; }
10344
10677
  });
10345
10678
  Object.defineProperty(exports, "getTagTypeLabel", {
10346
10679
  enumerable: true,
10347
- get: function () { return chunkVKWGRGY6_cjs.getTagTypeLabel; }
10680
+ get: function () { return chunkRDLAOB55_cjs.getTagTypeLabel; }
10348
10681
  });
10349
10682
  Object.defineProperty(exports, "getUserAvatarColor", {
10350
10683
  enumerable: true,
10351
- get: function () { return chunkVKWGRGY6_cjs.getUserAvatarColor; }
10684
+ get: function () { return chunkRDLAOB55_cjs.getUserAvatarColor; }
10352
10685
  });
10353
10686
  Object.defineProperty(exports, "getUserDisplayName", {
10354
10687
  enumerable: true,
10355
- get: function () { return chunkVKWGRGY6_cjs.getUserDisplayName; }
10688
+ get: function () { return chunkRDLAOB55_cjs.getUserDisplayName; }
10356
10689
  });
10357
10690
  Object.defineProperty(exports, "getUserInitials", {
10358
10691
  enumerable: true,
10359
- get: function () { return chunkVKWGRGY6_cjs.getUserInitials; }
10692
+ get: function () { return chunkRDLAOB55_cjs.getUserInitials; }
10360
10693
  });
10361
10694
  Object.defineProperty(exports, "getWorkspaceColor", {
10362
10695
  enumerable: true,
10363
- get: function () { return chunkVKWGRGY6_cjs.getWorkspaceColor; }
10696
+ get: function () { return chunkRDLAOB55_cjs.getWorkspaceColor; }
10364
10697
  });
10365
10698
  Object.defineProperty(exports, "isAgent", {
10366
10699
  enumerable: true,
10367
- get: function () { return chunkVKWGRGY6_cjs.isAgent; }
10700
+ get: function () { return chunkRDLAOB55_cjs.isAgent; }
10368
10701
  });
10369
10702
  Object.defineProperty(exports, "isAudioFile", {
10370
10703
  enumerable: true,
10371
- get: function () { return chunkVKWGRGY6_cjs.isAudioFile; }
10704
+ get: function () { return chunkRDLAOB55_cjs.isAudioFile; }
10372
10705
  });
10373
10706
  Object.defineProperty(exports, "isDownloadOnlyFile", {
10374
10707
  enumerable: true,
10375
- get: function () { return chunkVKWGRGY6_cjs.isDownloadOnlyFile; }
10708
+ get: function () { return chunkRDLAOB55_cjs.isDownloadOnlyFile; }
10376
10709
  });
10377
10710
  Object.defineProperty(exports, "isImageDocument", {
10378
10711
  enumerable: true,
10379
- get: function () { return chunkVKWGRGY6_cjs.isImageDocument; }
10712
+ get: function () { return chunkRDLAOB55_cjs.isImageDocument; }
10380
10713
  });
10381
10714
  Object.defineProperty(exports, "isImageFile", {
10382
10715
  enumerable: true,
10383
- get: function () { return chunkVKWGRGY6_cjs.isImageFile; }
10716
+ get: function () { return chunkRDLAOB55_cjs.isImageFile; }
10384
10717
  });
10385
10718
  Object.defineProperty(exports, "isMediaFile", {
10386
10719
  enumerable: true,
10387
- get: function () { return chunkVKWGRGY6_cjs.isMediaFile; }
10720
+ get: function () { return chunkRDLAOB55_cjs.isMediaFile; }
10388
10721
  });
10389
10722
  Object.defineProperty(exports, "isVideoFile", {
10390
10723
  enumerable: true,
10391
- get: function () { return chunkVKWGRGY6_cjs.isVideoFile; }
10724
+ get: function () { return chunkRDLAOB55_cjs.isVideoFile; }
10392
10725
  });
10393
10726
  Object.defineProperty(exports, "levelFromRms", {
10394
10727
  enumerable: true,
10395
- get: function () { return chunkVKWGRGY6_cjs.levelFromRms; }
10728
+ get: function () { return chunkRDLAOB55_cjs.levelFromRms; }
10396
10729
  });
10397
10730
  Object.defineProperty(exports, "pickRecorderMimeType", {
10398
10731
  enumerable: true,
10399
- get: function () { return chunkVKWGRGY6_cjs.pickRecorderMimeType; }
10732
+ get: function () { return chunkRDLAOB55_cjs.pickRecorderMimeType; }
10400
10733
  });
10401
10734
  Object.defineProperty(exports, "stepSegmenter", {
10402
10735
  enumerable: true,
10403
- get: function () { return chunkVKWGRGY6_cjs.stepSegmenter; }
10736
+ get: function () { return chunkRDLAOB55_cjs.stepSegmenter; }
10404
10737
  });
10405
10738
  Object.defineProperty(exports, "tagKindNouns", {
10406
10739
  enumerable: true,
10407
- get: function () { return chunkVKWGRGY6_cjs.tagKindNouns; }
10740
+ get: function () { return chunkRDLAOB55_cjs.tagKindNouns; }
10408
10741
  });
10409
10742
  Object.defineProperty(exports, "tagKindTitle", {
10410
10743
  enumerable: true,
10411
- get: function () { return chunkVKWGRGY6_cjs.tagKindTitle; }
10744
+ get: function () { return chunkRDLAOB55_cjs.tagKindTitle; }
10412
10745
  });
10413
10746
  Object.defineProperty(exports, "toggleVariants", {
10414
10747
  enumerable: true,
10415
- get: function () { return chunkVKWGRGY6_cjs.toggleVariants; }
10748
+ get: function () { return chunkRDLAOB55_cjs.toggleVariants; }
10416
10749
  });
10417
10750
  Object.defineProperty(exports, "useAudioRecorder", {
10418
10751
  enumerable: true,
10419
- get: function () { return chunkVKWGRGY6_cjs.useAudioRecorder; }
10752
+ get: function () { return chunkRDLAOB55_cjs.useAudioRecorder; }
10420
10753
  });
10421
10754
  Object.defineProperty(exports, "useDictateContext", {
10422
10755
  enumerable: true,
10423
- get: function () { return chunkVKWGRGY6_cjs.useDictateContext; }
10756
+ get: function () { return chunkRDLAOB55_cjs.useDictateContext; }
10424
10757
  });
10425
10758
  Object.defineProperty(exports, "usesOriginalBytesForViewer", {
10426
10759
  enumerable: true,
10427
- get: function () { return chunkVKWGRGY6_cjs.usesOriginalBytesForViewer; }
10760
+ get: function () { return chunkRDLAOB55_cjs.usesOriginalBytesForViewer; }
10761
+ });
10762
+ Object.defineProperty(exports, "MarkdownCode", {
10763
+ enumerable: true,
10764
+ get: function () { return chunkOC7F5SNA_cjs.MarkdownCode; }
10765
+ });
10766
+ Object.defineProperty(exports, "MarkdownLink", {
10767
+ enumerable: true,
10768
+ get: function () { return chunkOC7F5SNA_cjs.MarkdownLink; }
10769
+ });
10770
+ Object.defineProperty(exports, "MarkdownRenderer", {
10771
+ enumerable: true,
10772
+ get: function () { return chunkOC7F5SNA_cjs.MarkdownRenderer; }
10773
+ });
10774
+ Object.defineProperty(exports, "MarkdownStreamingContext", {
10775
+ enumerable: true,
10776
+ get: function () { return chunkOC7F5SNA_cjs.MarkdownStreamingContext; }
10777
+ });
10778
+ Object.defineProperty(exports, "markdownBaseComponents", {
10779
+ enumerable: true,
10780
+ get: function () { return chunkOC7F5SNA_cjs.markdownBaseComponents; }
10781
+ });
10782
+ Object.defineProperty(exports, "markdownSanitizeSchema", {
10783
+ enumerable: true,
10784
+ get: function () { return chunkOC7F5SNA_cjs.markdownSanitizeSchema; }
10785
+ });
10786
+ Object.defineProperty(exports, "splitMarkdownBlocks", {
10787
+ enumerable: true,
10788
+ get: function () { return chunkOC7F5SNA_cjs.splitMarkdownBlocks; }
10428
10789
  });
10429
10790
  Object.defineProperty(exports, "Button", {
10430
10791
  enumerable: true,
@@ -10474,34 +10835,6 @@ Object.defineProperty(exports, "buttonVariants", {
10474
10835
  enumerable: true,
10475
10836
  get: function () { return chunkWYZJLZ67_cjs.buttonVariants; }
10476
10837
  });
10477
- Object.defineProperty(exports, "MarkdownCode", {
10478
- enumerable: true,
10479
- get: function () { return chunkOC7F5SNA_cjs.MarkdownCode; }
10480
- });
10481
- Object.defineProperty(exports, "MarkdownLink", {
10482
- enumerable: true,
10483
- get: function () { return chunkOC7F5SNA_cjs.MarkdownLink; }
10484
- });
10485
- Object.defineProperty(exports, "MarkdownRenderer", {
10486
- enumerable: true,
10487
- get: function () { return chunkOC7F5SNA_cjs.MarkdownRenderer; }
10488
- });
10489
- Object.defineProperty(exports, "MarkdownStreamingContext", {
10490
- enumerable: true,
10491
- get: function () { return chunkOC7F5SNA_cjs.MarkdownStreamingContext; }
10492
- });
10493
- Object.defineProperty(exports, "markdownBaseComponents", {
10494
- enumerable: true,
10495
- get: function () { return chunkOC7F5SNA_cjs.markdownBaseComponents; }
10496
- });
10497
- Object.defineProperty(exports, "markdownSanitizeSchema", {
10498
- enumerable: true,
10499
- get: function () { return chunkOC7F5SNA_cjs.markdownSanitizeSchema; }
10500
- });
10501
- Object.defineProperty(exports, "splitMarkdownBlocks", {
10502
- enumerable: true,
10503
- get: function () { return chunkOC7F5SNA_cjs.splitMarkdownBlocks; }
10504
- });
10505
10838
  Object.defineProperty(exports, "closeOpenEmphasis", {
10506
10839
  enumerable: true,
10507
10840
  get: function () { return chunkZ3LLUO32_cjs.closeOpenEmphasis; }
@@ -10766,6 +11099,8 @@ exports.SLOW_AFTER_MS = SLOW_AFTER_MS;
10766
11099
  exports.STILL_WORKING = STILL_WORKING;
10767
11100
  exports.StartByEmail = StartByEmail;
10768
11101
  exports.TypingIndicator = TypingIndicator;
11102
+ exports.UPLOAD_ACCEPT = UPLOAD_ACCEPT;
11103
+ exports.UPLOAD_MAX_FILE_SIZE = UPLOAD_MAX_FILE_SIZE;
10769
11104
  exports.VideoCapture = VideoCapture;
10770
11105
  exports.VoiceNoteRecorder = VoiceNoteRecorder;
10771
11106
  exports.WORK_NOTIFICATION_LABELS = WORK_NOTIFICATION_LABELS;
@@ -10800,8 +11135,11 @@ exports.documentActivityPhrase = documentActivityPhrase;
10800
11135
  exports.documentDisplayName = documentDisplayName;
10801
11136
  exports.docxMentionMeta = docxMentionMeta;
10802
11137
  exports.downloadRecoveryFile = downloadRecoveryFile;
11138
+ exports.extractZipFile = extractZipFile;
10803
11139
  exports.fallbackFileName = fallbackFileName;
10804
11140
  exports.fileAttachment = fileAttachment;
11141
+ exports.filesFromDrop = filesFromDrop;
11142
+ exports.forgetUploadedDocumentFolder = forgetUploadedDocumentFolder;
10805
11143
  exports.formatDocDate = formatDocDate;
10806
11144
  exports.formatFolderLabel = formatFolderLabel;
10807
11145
  exports.formatIdentityPrice = formatIdentityPrice;
@@ -10828,6 +11166,7 @@ exports.isReplayableArbiMutation = isReplayableArbiMutation;
10828
11166
  exports.isRestorableArbiQueryOnline = isRestorableArbiQueryOnline;
10829
11167
  exports.isSignatureNotificationType = isSignatureNotificationType;
10830
11168
  exports.isWorkspaceNotificationType = isWorkspaceNotificationType;
11169
+ exports.isZipFile = isZipFile;
10831
11170
  exports.mailDraftIdFromContent = mailDraftIdFromContent;
10832
11171
  exports.mailJson = mailJson;
10833
11172
  exports.mailQueryKeys = mailQueryKeys;
@@ -10838,6 +11177,7 @@ exports.notificationUserName = notificationUserName;
10838
11177
  exports.parseActivityContent = parseActivityContent;
10839
11178
  exports.parseDeleteAccountBlockers = parseDeleteAccountBlockers;
10840
11179
  exports.pickRecentWorkspaces = pickRecentWorkspaces;
11180
+ exports.prepareUploadFiles = prepareUploadFiles;
10841
11181
  exports.redlineStats = redlineStats;
10842
11182
  exports.registerArbiMutationDefaults = registerArbiMutationDefaults;
10843
11183
  exports.resetCalendarAccountSyncState = resetCalendarAccountSyncState;
@@ -10856,6 +11196,8 @@ exports.toNotificationPreferences = toNotificationPreferences;
10856
11196
  exports.toProfileView = toProfileView;
10857
11197
  exports.toRedlineMarkdown = toRedlineMarkdown;
10858
11198
  exports.toShellWorkspace = toShellWorkspace;
11199
+ exports.uploadFolderOf = uploadFolderOf;
11200
+ exports.uploadedDocumentFolder = uploadedDocumentFolder;
10859
11201
  exports.useAccountClient = useAccountClient;
10860
11202
  exports.useActOnStep = useActOnStep;
10861
11203
  exports.useAddHolidayCalendar = useAddHolidayCalendar;
@@ -11074,6 +11416,8 @@ exports.useUpdateUserSettings = useUpdateUserSettings;
11074
11416
  exports.useUpdateWorkflow = useUpdateWorkflow;
11075
11417
  exports.useUpdateWorkspace = useUpdateWorkspace;
11076
11418
  exports.useUploadDocuments = useUploadDocuments;
11419
+ exports.useUploadFiles = useUploadFiles;
11420
+ exports.useUploadFromUrls = useUploadFromUrls;
11077
11421
  exports.useUploadSkillFiles = useUploadSkillFiles;
11078
11422
  exports.useUploadUrls = useUploadUrls;
11079
11423
  exports.useUserSettings = useUserSettings;
@@ -11086,6 +11430,7 @@ exports.useWorkspaceNotificationLevel = useWorkspaceNotificationLevel;
11086
11430
  exports.useWorkspaceUsers = useWorkspaceUsers;
11087
11431
  exports.userDisplayName = userDisplayName;
11088
11432
  exports.userInitials = userInitials;
11433
+ exports.withRelativePath = withRelativePath;
11089
11434
  exports.workflowStepOf = workflowStepOf;
11090
11435
  exports.workspaceHouseTemplateId = workspaceHouseTemplateId;
11091
11436
  //# sourceMappingURL=index.cjs.map