@arbidocs/blocks 0.5.133 → 0.5.134

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.
@@ -55,7 +55,7 @@ require('../chunk-OUYBYZ7Y.cjs');
55
55
  var chunkQQMMCXBP_cjs = require('../chunk-QQMMCXBP.cjs');
56
56
  require('../chunk-DTMBAFIL.cjs');
57
57
  require('../chunk-7NJKDJVO.cjs');
58
- var chunk5JK3232B_cjs = require('../chunk-5JK3232B.cjs');
58
+ var chunkO5WVYUFT_cjs = require('../chunk-O5WVYUFT.cjs');
59
59
  var chunkEYXU32D7_cjs = require('../chunk-EYXU32D7.cjs');
60
60
  require('../chunk-NEGFHF3V.cjs');
61
61
  var chunkZ3LFF3YT_cjs = require('../chunk-Z3LFF3YT.cjs');
@@ -265,7 +265,7 @@ function ConnectedWorkspaceActivity({
265
265
  [feed.data]
266
266
  );
267
267
  return /* @__PURE__ */ jsxRuntime.jsx(
268
- chunk5JK3232B_cjs.WorkspaceActivityList,
268
+ chunkO5WVYUFT_cjs.WorkspaceActivityList,
269
269
  {
270
270
  ...listProps,
271
271
  items,
@@ -3375,7 +3375,7 @@ function ConnectedTagTable({
3375
3375
  const fail2 = (fallback) => (e) => notify19(browser.refusalReason(e, fallback), "error");
3376
3376
  const snapshot2 = (data) => {
3377
3377
  const title = exportTitle ?? ui.tagKindTitle(kind, { plural: true });
3378
- const bytes = chunk5JK3232B_cjs.tagTableDocx(data, {
3378
+ const bytes = chunkO5WVYUFT_cjs.tagTableDocx(data, {
3379
3379
  title,
3380
3380
  nameOf: (id) => people.find((p) => p.value === id)?.label
3381
3381
  });
@@ -3384,7 +3384,7 @@ function ConnectedTagTable({
3384
3384
  return { blob: new Blob([bytes], { type: chunkUKOYN2WD_cjs.DOCX_MIME_TYPE }), name };
3385
3385
  };
3386
3386
  return /* @__PURE__ */ jsxRuntime.jsx(
3387
- chunk5JK3232B_cjs.TagTable,
3387
+ chunkO5WVYUFT_cjs.TagTable,
3388
3388
  {
3389
3389
  ...props,
3390
3390
  table,
@@ -4509,9 +4509,9 @@ function GlossaryExport({ labelId, nameOf }) {
4509
4509
  const narrowed = agreements.find((a) => a.id === narrowTo);
4510
4510
  const title = narrowed ? `Glossary - ${narrowed.name}` : "Glossary";
4511
4511
  const download = (format) => {
4512
- const entries = chunk5JK3232B_cjs.glossaryEntries(sources, { labelId: narrowed?.id });
4513
- const blob = format === "docx" ? new Blob([chunk5JK3232B_cjs.glossaryDocx(entries, { title })], { type: chunkUKOYN2WD_cjs.DOCX_MIME_TYPE }) : new Blob([chunk5JK3232B_cjs.glossaryMarkdown(entries, { title })], { type: "text/markdown" });
4514
- documentTools.downloadBlob(blob, chunk5JK3232B_cjs.glossaryFileName(title, format));
4512
+ const entries = chunkO5WVYUFT_cjs.glossaryEntries(sources, { labelId: narrowed?.id });
4513
+ const blob = format === "docx" ? new Blob([chunkO5WVYUFT_cjs.glossaryDocx(entries, { title })], { type: chunkUKOYN2WD_cjs.DOCX_MIME_TYPE }) : new Blob([chunkO5WVYUFT_cjs.glossaryMarkdown(entries, { title })], { type: "text/markdown" });
4514
+ documentTools.downloadBlob(blob, chunkO5WVYUFT_cjs.glossaryFileName(title, format));
4515
4515
  };
4516
4516
  return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-2", "data-testid": "tags-glossary", children: [
4517
4517
  agreements.length > 0 && /* @__PURE__ */ jsxRuntime.jsxs(
@@ -5040,7 +5040,7 @@ function KindSection({
5040
5040
  {
5041
5041
  testId: `tags-kind-${kind}`,
5042
5042
  title: ui.tagKindTitle(kind, { plural: true }),
5043
- description: chunk5JK3232B_cjs.tagKindDescription(kind),
5043
+ description: chunkO5WVYUFT_cjs.tagKindDescription(kind),
5044
5044
  children: [
5045
5045
  browser.isEntityTag({ kind }) && extractingCount > 0 && /* @__PURE__ */ jsxRuntime.jsxs(
5046
5046
  "p",
@@ -5050,9 +5050,9 @@ function KindSection({
5050
5050
  children: [
5051
5051
  /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Loader2, { className: "size-4 animate-spin" }),
5052
5052
  "Extracting ",
5053
- chunk5JK3232B_cjs.entitiesPhrase().toLowerCase(),
5053
+ chunkO5WVYUFT_cjs.entitiesPhrase().toLowerCase(),
5054
5054
  " from ",
5055
- chunk5JK3232B_cjs.documentCount(extractingCount),
5055
+ chunkO5WVYUFT_cjs.documentCount(extractingCount),
5056
5056
  "\u2026"
5057
5057
  ]
5058
5058
  }
@@ -5070,7 +5070,7 @@ function KindSection({
5070
5070
  onOpenTag: ctx.onOpenTag,
5071
5071
  onOpenRow: ctx.onOpenTag,
5072
5072
  onOpenTaggedItems: ctx.onOpenTaggedItems,
5073
- labels: chunk5JK3232B_cjs.tagTableLabels(kind),
5073
+ labels: chunkO5WVYUFT_cjs.tagTableLabels(kind),
5074
5074
  testId: `tags-table-${kind}`
5075
5075
  }
5076
5076
  )
@@ -5178,15 +5178,15 @@ function TagSection({
5178
5178
  onOpenTag: ctx.onOpenTag,
5179
5179
  onOpenRow: ctx.onOpenTag,
5180
5180
  onOpenTaggedItems: ctx.onOpenTaggedItems,
5181
- labels: chunk5JK3232B_cjs.tagTableLabels(tag.kind),
5181
+ labels: chunkO5WVYUFT_cjs.tagTableLabels(tag.kind),
5182
5182
  testId: "tags-rows"
5183
5183
  }
5184
5184
  ),
5185
5185
  /* @__PURE__ */ jsxRuntime.jsx(
5186
- chunk5JK3232B_cjs.TagDetail,
5186
+ chunkO5WVYUFT_cjs.TagDetail,
5187
5187
  {
5188
5188
  onOpenTaggedItems: ctx.onOpenTaggedItems,
5189
- fieldLabels: chunk5JK3232B_cjs.tagTableLabels(tag.kind),
5189
+ fieldLabels: chunkO5WVYUFT_cjs.tagTableLabels(tag.kind),
5190
5190
  row: detailRow,
5191
5191
  fields: schema.data?.fields ?? [],
5192
5192
  isLoading: detail.isLoading,
@@ -5200,7 +5200,7 @@ function TagSection({
5200
5200
  throw e;
5201
5201
  })
5202
5202
  ),
5203
- labels: chunk5JK3232B_cjs.tagDetailLabels(),
5203
+ labels: chunkO5WVYUFT_cjs.tagDetailLabels(),
5204
5204
  testId: "tags-detail"
5205
5205
  }
5206
5206
  )
@@ -5275,7 +5275,7 @@ function ConnectedTagsPage() {
5275
5275
  const onDelete = async (t) => {
5276
5276
  const nested = browser.getChildTags([...tags], t.external_id);
5277
5277
  const uses = browser.tagUseCount(t);
5278
- const n2 = chunk5JK3232B_cjs.tagsPageNouns();
5278
+ const n2 = chunkO5WVYUFT_cjs.tagsPageNouns();
5279
5279
  const tagNoun = (count2) => (count2 === 1 ? n2.tag : n2.tags).toLowerCase();
5280
5280
  const carriers = uses === 1 ? `${n2.document}, ${n2.fact} or ${n2.thread}` : `${n2.documents}, ${n2.facts} and ${n2.threads}`;
5281
5281
  const message = `Delete ${ui.tagKindNouns(t.kind).singular} "${t.name}"?` + (uses > 0 ? `
@@ -5296,11 +5296,11 @@ ${nested.length} nested ${tagNoun(nested.length)} ${nested.length === 1 ? "moves
5296
5296
  try {
5297
5297
  await extract.mutateAsync(docIds);
5298
5298
  notify19(
5299
- `Extracting ${chunk5JK3232B_cjs.entitiesPhrase().toLowerCase()} from ${chunk5JK3232B_cjs.documentCount(docIds.length)}. You will be notified when it is done.`,
5299
+ `Extracting ${chunkO5WVYUFT_cjs.entitiesPhrase().toLowerCase()} from ${chunkO5WVYUFT_cjs.documentCount(docIds.length)}. You will be notified when it is done.`,
5300
5300
  "info"
5301
5301
  );
5302
5302
  } catch (error) {
5303
- notify19(browser.refusalReason(error, `Could not extract ${chunk5JK3232B_cjs.entitiesPhrase().toLowerCase()}`), "error");
5303
+ notify19(browser.refusalReason(error, `Could not extract ${chunkO5WVYUFT_cjs.entitiesPhrase().toLowerCase()}`), "error");
5304
5304
  throw error;
5305
5305
  }
5306
5306
  };
@@ -5314,10 +5314,10 @@ ${nested.length} nested ${tagNoun(nested.length)} ${nested.length === 1 ? "moves
5314
5314
  onOpenTag: openTag,
5315
5315
  onOpenTaggedItems
5316
5316
  };
5317
- const n = chunk5JK3232B_cjs.tagsPageNouns();
5317
+ const n = chunkO5WVYUFT_cjs.tagsPageNouns();
5318
5318
  const action = view === "person" || view === "organisation" ? {
5319
5319
  label: "Extract",
5320
- title: `Extract ${chunk5JK3232B_cjs.entitiesPhrase().toLowerCase()} from ${n.documents.toLowerCase()}`,
5320
+ title: `Extract ${chunkO5WVYUFT_cjs.entitiesPhrase().toLowerCase()} from ${n.documents.toLowerCase()}`,
5321
5321
  icon: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Sparkles, { className: "h-4 w-4" }),
5322
5322
  run: () => setExtracting(true),
5323
5323
  testId: "tags-extract-entities"
@@ -5486,7 +5486,7 @@ ${nested.length} nested ${tagNoun(nested.length)} ${nested.length === 1 ? "moves
5486
5486
  }
5487
5487
  ),
5488
5488
  /* @__PURE__ */ jsxRuntime.jsx(
5489
- chunk5JK3232B_cjs.ExtractEntitiesDialog,
5489
+ chunkO5WVYUFT_cjs.ExtractEntitiesDialog,
5490
5490
  {
5491
5491
  open: extracting,
5492
5492
  onOpenChange: setExtracting,
@@ -8488,7 +8488,7 @@ function ConnectedFactsPage() {
8488
8488
  onNewFact: composing && !editingId ? () => void 0 : composer.startNewFact,
8489
8489
  navSlotRef: setNavSlot,
8490
8490
  navigator: view === "table" ? /* @__PURE__ */ jsxRuntime.jsx(
8491
- chunk5JK3232B_cjs.GridRowNavigator,
8491
+ chunkO5WVYUFT_cjs.GridRowNavigator,
8492
8492
  {
8493
8493
  gridApi,
8494
8494
  selectedId: editingId,
@@ -13710,13 +13710,13 @@ function ConnectedWorkspaceSettings({
13710
13710
  const [membersExpanded, setMembersExpanded] = react$1.useState(false);
13711
13711
  const [shareOpen, setShareOpen] = react$1.useState(false);
13712
13712
  if (!workspace) {
13713
- return /* @__PURE__ */ jsxRuntime.jsx(chunkWNAZM2YS_cjs.PageLoading, { children: /* @__PURE__ */ jsxRuntime.jsx(chunk5JK3232B_cjs.LoadingIndicator, { message: "Loading workspace..." }) });
13713
+ return /* @__PURE__ */ jsxRuntime.jsx(chunkWNAZM2YS_cjs.PageLoading, { children: /* @__PURE__ */ jsxRuntime.jsx(chunkO5WVYUFT_cjs.LoadingIndicator, { message: "Loading workspace..." }) });
13714
13714
  }
13715
13715
  return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
13716
13716
  /* @__PURE__ */ jsxRuntime.jsxs(chunkWNAZM2YS_cjs.WorkspacePageFrame, { testId, children: [
13717
13717
  /* @__PURE__ */ jsxRuntime.jsxs(chunkWNAZM2YS_cjs.WorkspaceIdentityPanel, { children: [
13718
13718
  /* @__PURE__ */ jsxRuntime.jsx(
13719
- chunk5JK3232B_cjs.EntityIdentityBar,
13719
+ chunkO5WVYUFT_cjs.EntityIdentityBar,
13720
13720
  {
13721
13721
  testId: "workspace-identity-bar",
13722
13722
  canEdit: isOwner,
@@ -13733,7 +13733,7 @@ function ConnectedWorkspaceSettings({
13733
13733
  label: "Name",
13734
13734
  value: workspace.name,
13735
13735
  placeholder: "Untitled",
13736
- maxLength: chunk5JK3232B_cjs.IDENTITY_NAME_MAX_LENGTH,
13736
+ maxLength: chunkO5WVYUFT_cjs.IDENTITY_NAME_MAX_LENGTH,
13737
13737
  valueClassName: "truncate text-base font-semibold",
13738
13738
  testId: "workspace-home-title",
13739
13739
  hideLabel: true,
@@ -18623,7 +18623,7 @@ function ConnectedWorkspaceList({
18623
18623
  }
18624
18624
  );
18625
18625
  }
18626
- if (list.isLoading) return /* @__PURE__ */ jsxRuntime.jsx(chunk5JK3232B_cjs.LoadingIndicator, { message: "Loading workspaces..." });
18626
+ if (list.isLoading) return /* @__PURE__ */ jsxRuntime.jsx(chunkO5WVYUFT_cjs.LoadingIndicator, { message: "Loading workspaces..." });
18627
18627
  if (list.error) {
18628
18628
  return /* @__PURE__ */ jsxRuntime.jsx(
18629
18629
  chunkC6RJQQLG_cjs.HomeLoadError,
@@ -18696,7 +18696,7 @@ function ConnectedWorkspaceList({
18696
18696
  workspaceState
18697
18697
  }
18698
18698
  ) })
18699
- ) : /* @__PURE__ */ jsxRuntime.jsx(react$1.Suspense, { fallback: /* @__PURE__ */ jsxRuntime.jsx(chunk5JK3232B_cjs.LoadingIndicator, { message: "Loading grid..." }), children: /* @__PURE__ */ jsxRuntime.jsx(chunkC6RJQQLG_cjs.HomeCenteredColumn, { children: /* @__PURE__ */ jsxRuntime.jsx(
18699
+ ) : /* @__PURE__ */ jsxRuntime.jsx(react$1.Suspense, { fallback: /* @__PURE__ */ jsxRuntime.jsx(chunkO5WVYUFT_cjs.LoadingIndicator, { message: "Loading grid..." }), children: /* @__PURE__ */ jsxRuntime.jsx(chunkC6RJQQLG_cjs.HomeCenteredColumn, { children: /* @__PURE__ */ jsxRuntime.jsx(
18700
18700
  WorkspaceTableView,
18701
18701
  {
18702
18702
  list,
@@ -18969,7 +18969,7 @@ function ConnectedProjectsListPage({
18969
18969
  }
18970
18970
  ),
18971
18971
  /* @__PURE__ */ jsxRuntime.jsx(
18972
- chunk5JK3232B_cjs.Toolbar,
18972
+ chunkO5WVYUFT_cjs.Toolbar,
18973
18973
  {
18974
18974
  search,
18975
18975
  onSearch: setSearch,
@@ -28433,7 +28433,7 @@ function ConnectedSecureMailClaimPage({
28433
28433
  }
28434
28434
  })();
28435
28435
  }, [authenticated, claimId, key]);
28436
- if (!error) return /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, { children: loading ?? /* @__PURE__ */ jsxRuntime.jsx(chunk5JK3232B_cjs.LoadingIndicator, { variant: "splash" }) });
28436
+ if (!error) return /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, { children: loading ?? /* @__PURE__ */ jsxRuntime.jsx(chunkO5WVYUFT_cjs.LoadingIndicator, { variant: "splash" }) });
28437
28437
  return /* @__PURE__ */ jsxRuntime.jsx("main", { className: "flex min-h-screen items-center justify-center bg-background p-6", children: /* @__PURE__ */ jsxRuntime.jsxs("section", { className: "w-full max-w-md rounded-lg border border-border bg-card p-6", children: [
28438
28438
  /* @__PURE__ */ jsxRuntime.jsx("p", { role: "alert", className: "mb-4 text-sm text-destructive", children: error }),
28439
28439
  /* @__PURE__ */ jsxRuntime.jsx(
@@ -34563,7 +34563,7 @@ function useBatchCompleteToasts() {
34563
34563
  }
34564
34564
  }, AI_FIELDS_NOTICE_WINDOW_MS);
34565
34565
  } else if (message.batch_type === "entity_extract") {
34566
- say(`${chunk5JK3232B_cjs.entitiesPhrase()} extracted from ${chunk5JK3232B_cjs.documentCount(docIds.length)}`, "success", {
34566
+ say(`${chunkO5WVYUFT_cjs.entitiesPhrase()} extracted from ${chunkO5WVYUFT_cjs.documentCount(docIds.length)}`, "success", {
34567
34567
  ...openTags && { action: { label: "View", onClick: openTags } }
34568
34568
  });
34569
34569
  } else if (message.batch_type === "upload") {
@@ -35378,10 +35378,10 @@ var DocumentReviewCard = react$1.lazy(
35378
35378
  () => import('../DocumentReviewCard-EM2AJUF3.cjs').then((module) => ({ default: module.DocumentReviewCard }))
35379
35379
  );
35380
35380
  var FilesViewerDialog = react$1.lazy(
35381
- () => import('../FilesViewerDialog-OA3HDLOI.cjs').then((module) => ({ default: module.FilesViewerDialog }))
35381
+ () => import('../FilesViewerDialog-PA2B7O7I.cjs').then((module) => ({ default: module.FilesViewerDialog }))
35382
35382
  );
35383
35383
  function defaultReviewCard(props) {
35384
- return /* @__PURE__ */ jsxRuntime.jsx(react$1.Suspense, { fallback: /* @__PURE__ */ jsxRuntime.jsx(chunk5JK3232B_cjs.LoadingIndicator, { message: "Loading document viewer..." }), children: /* @__PURE__ */ jsxRuntime.jsx(DocumentReviewCard, { ...props }, `navigator-${props.currentDocument.external_id}`) });
35384
+ return /* @__PURE__ */ jsxRuntime.jsx(react$1.Suspense, { fallback: /* @__PURE__ */ jsxRuntime.jsx(chunkO5WVYUFT_cjs.LoadingIndicator, { message: "Loading document viewer..." }), children: /* @__PURE__ */ jsxRuntime.jsx(DocumentReviewCard, { ...props }, `navigator-${props.currentDocument.external_id}`) });
35385
35385
  }
35386
35386
  function ConnectedFilesPage({
35387
35387
  isModal = false,
@@ -35959,7 +35959,7 @@ function ConnectedFilesPage({
35959
35959
  viewMode === "grid" ? (
35960
35960
  // ‹ n / N › over the table's displayed rows; a step opens the document.
35961
35961
  /* @__PURE__ */ jsxRuntime.jsx(
35962
- chunk5JK3232B_cjs.GridRowNavigator,
35962
+ chunkO5WVYUFT_cjs.GridRowNavigator,
35963
35963
  {
35964
35964
  gridApi,
35965
35965
  selectedId: viewingDocumentId ?? selectedDocumentIds[0] ?? null,
@@ -38372,7 +38372,6 @@ function useUserNameFromWorkspaces() {
38372
38372
  }
38373
38373
  }, [session, workspaces, user]);
38374
38374
  }
38375
- var WELCOME_DIALOG_TIP = "welcome-modal";
38376
38375
  function consideredThisSession() {
38377
38376
  try {
38378
38377
  return sessionStorage.getItem(WELCOME_DIALOG_SESSION_KEY) !== null;
@@ -38387,15 +38386,18 @@ function useWelcomeDialog() {
38387
38386
  const currentUserExtId = user?.external_id;
38388
38387
  const [pendingAccessReviewId] = react.useTransientView(PENDING_ACCESS_REVIEW_VIEW, null);
38389
38388
  const accessRequestReview = useAccessRequestUnderReview();
38390
- const { data: settings, isLoading: settingsLoading } = react.useUserSettings();
38391
38389
  const { data: projects, isLoading: projectsLoading } = react.useProjects();
38392
- const { dismissTip } = react.useDismissedTips();
38390
+ const considered = react$1.useRef(false);
38393
38391
  react$1.useEffect(() => {
38394
- if (!isAuthenticated2 || isExternal2) return;
38392
+ if (!isAuthenticated2) {
38393
+ considered.current = false;
38394
+ return;
38395
+ }
38396
+ if (isExternal2) return;
38395
38397
  if (pendingAccessReviewId || accessRequestReview) return;
38396
- if (settingsLoading || projectsLoading || !settings) return;
38397
- if (consideredThisSession()) return;
38398
- if (settings.dismissed_tips?.includes(WELCOME_DIALOG_TIP)) return;
38398
+ if (projectsLoading || !projects) return;
38399
+ if (considered.current || consideredThisSession()) return;
38400
+ considered.current = true;
38399
38401
  try {
38400
38402
  sessionStorage.setItem(WELCOME_DIALOG_SESSION_KEY, "1");
38401
38403
  } catch {
@@ -38405,16 +38407,12 @@ function useWelcomeDialog() {
38405
38407
  );
38406
38408
  if (ownsPaidProject) return;
38407
38409
  chunkYZBDHBKI_cjs.openDialog("welcome");
38408
- dismissTip(WELCOME_DIALOG_TIP);
38409
38410
  }, [
38410
38411
  isAuthenticated2,
38411
38412
  isExternal2,
38412
38413
  currentUserExtId,
38413
- settings,
38414
- settingsLoading,
38415
38414
  projects,
38416
38415
  projectsLoading,
38417
- dismissTip,
38418
38416
  pendingAccessReviewId,
38419
38417
  accessRequestReview
38420
38418
  ]);
@@ -38440,7 +38438,7 @@ function GuidedRuns() {
38440
38438
  chunkBN33PC5F_cjs.useRemoteControlSessionReset();
38441
38439
  const { cursorMark } = chunkNZNBJF3M_cjs.useGuidedRuns();
38442
38440
  return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
38443
- /* @__PURE__ */ jsxRuntime.jsx(chunk5JK3232B_cjs.GuidedCursor, { markSrc: cursorMark }),
38441
+ /* @__PURE__ */ jsxRuntime.jsx(chunkO5WVYUFT_cjs.GuidedCursor, { markSrc: cursorMark }),
38444
38442
  /* @__PURE__ */ jsxRuntime.jsx(ConnectedRemoteControlConsent, {})
38445
38443
  ] });
38446
38444
  }
@@ -38474,7 +38472,7 @@ function ConnectedAppRuntime({
38474
38472
  on("pageTransition") && /* @__PURE__ */ jsxRuntime.jsx(PageTransition, {}),
38475
38473
  on("freshChatModel") && /* @__PURE__ */ jsxRuntime.jsx(FreshChatModel, {}),
38476
38474
  on("workspaceOpenMetrics") && measure && /* @__PURE__ */ jsxRuntime.jsx(WorkspaceOpenMetrics, { measure }),
38477
- on("prefetch") && /* @__PURE__ */ jsxRuntime.jsx(Prefetch, { loaders: [...prefetch ?? [], ...chunk5JK3232B_cjs.KIT_CHUNK_LOADERS] }),
38475
+ on("prefetch") && /* @__PURE__ */ jsxRuntime.jsx(Prefetch, { loaders: [...prefetch ?? [], ...chunkO5WVYUFT_cjs.KIT_CHUNK_LOADERS] }),
38478
38476
  on("guidedRuns") && /* @__PURE__ */ jsxRuntime.jsx(GuidedRuns, {})
38479
38477
  ] });
38480
38478
  }
@@ -44163,7 +44161,7 @@ function SsoResendVerificationButton({
44163
44161
  onClick: async () => handleResendEmailVerification(),
44164
44162
  disabled: loading || disabled,
44165
44163
  "aria-label": "Resend verification email",
44166
- children: loading ? /* @__PURE__ */ jsxRuntime.jsx(chunk5JK3232B_cjs.LoadingIndicator, {}) : /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
44164
+ children: loading ? /* @__PURE__ */ jsxRuntime.jsx(chunkO5WVYUFT_cjs.LoadingIndicator, {}) : /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
44167
44165
  "Didn't get a verification email? ",
44168
44166
  /* @__PURE__ */ jsxRuntime.jsx("span", { className: "font-semibold", children: "Resend" })
44169
44167
  ] })
@@ -44181,6 +44179,7 @@ function ConnectedSsoCallback() {
44181
44179
  const passwordRules = auth.passwordRules;
44182
44180
  const isProcessing = react$1.useRef(false);
44183
44181
  const hasCheckedStatus = react$1.useRef(false);
44182
+ const [statusAttempt, setStatusAttempt] = react$1.useState(0);
44184
44183
  const [accessToken, setAccessToken] = react$1.useState(null);
44185
44184
  const [ssoStatus, setSsoStatus] = react$1.useState(null);
44186
44185
  const ssoName = react$1.useMemo(() => chunkBN33PC5F_cjs.resolveSsoName(user ?? {}, ssoStatus ?? {}), [user, ssoStatus]);
@@ -44366,16 +44365,13 @@ function ConnectedSsoCallback() {
44366
44365
  setSsoStatus(response);
44367
44366
  } catch (error2) {
44368
44367
  console.error("[SSO] Error checking status:", error2);
44369
- const errorMsg = error2 instanceof Error ? error2.message : "Failed to check account status";
44370
- setError({ message: errorMsg });
44371
- notify19("Unable to verify account status", "error");
44372
- navigate("/");
44368
+ setError({ message: "We couldn\u2019t complete sign-in. Please try again." });
44373
44369
  } finally {
44374
44370
  setIsCheckingStatus(false);
44375
44371
  }
44376
44372
  };
44377
44373
  checkStatus();
44378
- }, [accessToken, user, arbi, navigate, notify19]);
44374
+ }, [accessToken, user, arbi, statusAttempt]);
44379
44375
  const handlePasswordSubmit = react$1.useCallback(
44380
44376
  async (e) => {
44381
44377
  e.preventDefault();
@@ -44542,6 +44538,24 @@ function ConnectedSsoCallback() {
44542
44538
  ] })
44543
44539
  ] });
44544
44540
  }
44541
+ if (error && !ssoStatus && !isCheckingStatus) {
44542
+ return /* @__PURE__ */ jsxRuntime.jsxs(chunkV6C2MBFY_cjs.AuthLayout, { brand: auth.brand, corner: auth.corner, children: [
44543
+ /* @__PURE__ */ jsxRuntime.jsx(chunkV6C2MBFY_cjs.AuthAlert, { testId: "sso-status-error", children: error.message }),
44544
+ /* @__PURE__ */ jsxRuntime.jsx(
44545
+ ui.Button,
44546
+ {
44547
+ className: "mt-4 w-full",
44548
+ onClick: () => {
44549
+ hasCheckedStatus.current = false;
44550
+ setError(null);
44551
+ setStatusAttempt((attempt) => attempt + 1);
44552
+ },
44553
+ children: "Try again"
44554
+ }
44555
+ ),
44556
+ /* @__PURE__ */ jsxRuntime.jsx(ui.Button, { onClick: () => navigate("/login"), variant: "ghost", className: "w-full", children: "Cancel" })
44557
+ ] });
44558
+ }
44545
44559
  if (isCheckingStatus || !ssoStatus) {
44546
44560
  return /* @__PURE__ */ jsxRuntime.jsxs(chunkV6C2MBFY_cjs.AuthLayout, { brand: auth.brand, corner: auth.corner, children: [
44547
44561
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "text-center py-8", "data-testid": "sso-loading", children: [
@@ -45618,7 +45632,7 @@ function ConnectedTipBar({
45618
45632
  workspaceOpen,
45619
45633
  ...state
45620
45634
  };
45621
- const { tip, index, count: count2, previous, next, onHoverChange } = chunk5JK3232B_cjs.useTipsPlacement({
45635
+ const { tip, index, count: count2, previous, next, onHoverChange } = chunkO5WVYUFT_cjs.useTipsPlacement({
45622
45636
  registry,
45623
45637
  context,
45624
45638
  state: situation,