@arbidocs/blocks 0.4.107 → 0.4.109

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (121) hide show
  1. package/dist/{NativeDocxEditor-3VKJT43D.js → NativeDocxEditor-4PY4YZYC.js} +3 -3
  2. package/dist/{NativeDocxEditor-3VKJT43D.js.map → NativeDocxEditor-4PY4YZYC.js.map} +1 -1
  3. package/dist/{NativeDocxEditor-GNG5QV7V.cjs → NativeDocxEditor-WODZAURG.cjs} +7 -7
  4. package/dist/{NativeDocxEditor-GNG5QV7V.cjs.map → NativeDocxEditor-WODZAURG.cjs.map} +1 -1
  5. package/dist/agents/index.cjs +210 -210
  6. package/dist/agents/index.js +5 -5
  7. package/dist/chat/index.cjs +125 -125
  8. package/dist/chat/index.js +3 -3
  9. package/dist/{chunk-BHKFENKT.cjs → chunk-2NIL2ASF.cjs} +39 -295
  10. package/dist/chunk-2NIL2ASF.cjs.map +1 -0
  11. package/dist/{chunk-FZGMY6NQ.cjs → chunk-54WBIVHV.cjs} +5 -5
  12. package/dist/{chunk-FZGMY6NQ.cjs.map → chunk-54WBIVHV.cjs.map} +1 -1
  13. package/dist/{chunk-OR4CO743.cjs → chunk-5YXG342J.cjs} +3 -3
  14. package/dist/{chunk-OR4CO743.cjs.map → chunk-5YXG342J.cjs.map} +1 -1
  15. package/dist/{chunk-IXALYQT7.cjs → chunk-C2CWWEHO.cjs} +2 -2
  16. package/dist/chunk-C2CWWEHO.cjs.map +1 -0
  17. package/dist/{chunk-P5ST47VY.js → chunk-DDF5GPIJ.js} +3 -3
  18. package/dist/{chunk-P5ST47VY.js.map → chunk-DDF5GPIJ.js.map} +1 -1
  19. package/dist/{chunk-XQKGYGCJ.js → chunk-DQCYCEDR.js} +3 -3
  20. package/dist/{chunk-XQKGYGCJ.js.map → chunk-DQCYCEDR.js.map} +1 -1
  21. package/dist/{chunk-Q57MEBCK.cjs → chunk-ELDUWTRR.cjs} +4 -4
  22. package/dist/{chunk-Q57MEBCK.cjs.map → chunk-ELDUWTRR.cjs.map} +1 -1
  23. package/dist/{chunk-EB7QAZLH.js → chunk-FQX6N5G6.js} +8 -7
  24. package/dist/chunk-FQX6N5G6.js.map +1 -0
  25. package/dist/{chunk-R6APX23R.cjs → chunk-GBYY3PIC.cjs} +18 -17
  26. package/dist/chunk-GBYY3PIC.cjs.map +1 -0
  27. package/dist/{chunk-2SJTXYRM.js → chunk-GKDWQLVU.js} +14 -275
  28. package/dist/chunk-GKDWQLVU.js.map +1 -0
  29. package/dist/{chunk-RILMICOP.cjs → chunk-I4XQCE6U.cjs} +5 -5
  30. package/dist/{chunk-RILMICOP.cjs.map → chunk-I4XQCE6U.cjs.map} +1 -1
  31. package/dist/{chunk-P2KPDPFF.js → chunk-IXTQYFIF.js} +23 -15
  32. package/dist/chunk-IXTQYFIF.js.map +1 -0
  33. package/dist/{chunk-2PYENCW5.js → chunk-JB32KYAH.js} +3 -3
  34. package/dist/{chunk-2PYENCW5.js.map → chunk-JB32KYAH.js.map} +1 -1
  35. package/dist/{chunk-PBS5MFIY.cjs → chunk-JK45LSIH.cjs} +3 -3
  36. package/dist/{chunk-PBS5MFIY.cjs.map → chunk-JK45LSIH.cjs.map} +1 -1
  37. package/dist/{chunk-ZPLG7QYF.js → chunk-N5YEF3LC.js} +2 -2
  38. package/dist/chunk-N5YEF3LC.js.map +1 -0
  39. package/dist/{chunk-PFA43QNX.js → chunk-NUTLXVPX.js} +4 -3
  40. package/dist/chunk-NUTLXVPX.js.map +1 -0
  41. package/dist/{chunk-O5NDG4EA.cjs → chunk-PDRYGPZB.cjs} +4 -3
  42. package/dist/chunk-PDRYGPZB.cjs.map +1 -0
  43. package/dist/{chunk-LHBJJ2GE.js → chunk-PEHLUB52.js} +3 -3
  44. package/dist/{chunk-LHBJJ2GE.js.map → chunk-PEHLUB52.js.map} +1 -1
  45. package/dist/{chunk-HUJLKDWX.cjs → chunk-QKWQMOHN.cjs} +4 -4
  46. package/dist/{chunk-HUJLKDWX.cjs.map → chunk-QKWQMOHN.cjs.map} +1 -1
  47. package/dist/{chunk-DTBSGG36.cjs → chunk-U6MPHCEB.cjs} +24 -16
  48. package/dist/chunk-U6MPHCEB.cjs.map +1 -0
  49. package/dist/{chunk-WDD255XQ.js → chunk-UABPHZWZ.js} +3 -3
  50. package/dist/{chunk-WDD255XQ.js.map → chunk-UABPHZWZ.js.map} +1 -1
  51. package/dist/{chunk-GFYGYME3.js → chunk-W7NZRZ54.js} +3 -3
  52. package/dist/{chunk-GFYGYME3.js.map → chunk-W7NZRZ54.js.map} +1 -1
  53. package/dist/{chunk-ZV3BKLFY.cjs → chunk-Z5VUZ6YD.cjs} +3 -3
  54. package/dist/{chunk-ZV3BKLFY.cjs.map → chunk-Z5VUZ6YD.cjs.map} +1 -1
  55. package/dist/{chunk-7NLPKJV5.js → chunk-ZSV2NQQP.js} +3 -3
  56. package/dist/{chunk-7NLPKJV5.js.map → chunk-ZSV2NQQP.js.map} +1 -1
  57. package/dist/citations/index.cjs +10 -10
  58. package/dist/citations/index.js +1 -1
  59. package/dist/collaboration/index.cjs +16 -16
  60. package/dist/collaboration/index.js +2 -2
  61. package/dist/connect/docx.cjs +6 -6
  62. package/dist/connect/docx.js +4 -4
  63. package/dist/connect/index.cjs +62 -62
  64. package/dist/connect/index.js +10 -10
  65. package/dist/databases/index.cjs +2 -2
  66. package/dist/databases/index.js +1 -1
  67. package/dist/docx/definitions/fragment.d.ts +2 -6
  68. package/dist/docx/definitions/port.d.ts +2 -57
  69. package/dist/docx/index.cjs +46 -46
  70. package/dist/docx/index.js +3 -3
  71. package/dist/docx/references/commands.d.ts +3 -31
  72. package/dist/docx/references/numbering.d.ts +3 -47
  73. package/dist/docx/template/HouseTemplate.d.ts +5 -0
  74. package/dist/facts/index.cjs +4 -4
  75. package/dist/facts/index.js +3 -3
  76. package/dist/files/GridView.d.ts +4 -1
  77. package/dist/files/TagPassagePanel.d.ts +2 -0
  78. package/dist/files/index.cjs +86 -76
  79. package/dist/files/index.cjs.map +1 -1
  80. package/dist/files/index.js +86 -76
  81. package/dist/files/index.js.map +1 -1
  82. package/dist/home/index.cjs +17 -17
  83. package/dist/home/index.js +3 -3
  84. package/dist/index.cjs +508 -508
  85. package/dist/index.js +10 -10
  86. package/dist/retrieval/index.cjs +1 -1
  87. package/dist/retrieval/index.js +1 -1
  88. package/dist/settings/FirmPool.d.ts +45 -0
  89. package/dist/settings/index.cjs +132 -35
  90. package/dist/settings/index.cjs.map +1 -1
  91. package/dist/settings/index.d.ts +1 -0
  92. package/dist/settings/index.js +97 -3
  93. package/dist/settings/index.js.map +1 -1
  94. package/dist/shell/index.cjs +1 -1
  95. package/dist/shell/index.js +1 -1
  96. package/dist/studio/index.cjs +4 -4
  97. package/dist/studio/index.js +3 -3
  98. package/dist/workflow-canvas/index.cjs +12 -12
  99. package/dist/workflow-canvas/index.js +5 -5
  100. package/dist/workspaces/index.cjs +3 -3
  101. package/dist/workspaces/index.cjs.map +1 -1
  102. package/dist/workspaces/index.js +3 -3
  103. package/dist/workspaces/index.js.map +1 -1
  104. package/node_modules/@arbidocs/coedit/dist/commands.cjs +356 -0
  105. package/node_modules/@arbidocs/coedit/dist/commands.cjs.map +1 -0
  106. package/node_modules/@arbidocs/coedit/dist/commands.d.cts +235 -0
  107. package/node_modules/@arbidocs/coedit/dist/commands.d.ts +235 -0
  108. package/node_modules/@arbidocs/coedit/dist/commands.js +338 -0
  109. package/node_modules/@arbidocs/coedit/dist/commands.js.map +1 -0
  110. package/node_modules/@arbidocs/coedit/package.json +6 -1
  111. package/package.json +4 -4
  112. package/dist/chunk-2SJTXYRM.js.map +0 -1
  113. package/dist/chunk-BHKFENKT.cjs.map +0 -1
  114. package/dist/chunk-DTBSGG36.cjs.map +0 -1
  115. package/dist/chunk-EB7QAZLH.js.map +0 -1
  116. package/dist/chunk-IXALYQT7.cjs.map +0 -1
  117. package/dist/chunk-O5NDG4EA.cjs.map +0 -1
  118. package/dist/chunk-P2KPDPFF.js.map +0 -1
  119. package/dist/chunk-PFA43QNX.js.map +0 -1
  120. package/dist/chunk-R6APX23R.cjs.map +0 -1
  121. package/dist/chunk-ZPLG7QYF.js.map +0 -1
package/dist/index.js CHANGED
@@ -1,8 +1,8 @@
1
1
  "use client";
2
2
  export { ApplyLabelButton, ApplyLabelDialog, DEFAULT_APPLY_LABEL_DIALOG_LABELS, DEFAULT_RELEVANCE_STEPS, DEFAULT_SEARCH_BAR_LABELS, DEFAULT_SEARCH_EMPTY_STATE_LABELS, DEFAULT_SEARCH_GROUP_HEADER_LABELS, DEFAULT_SEARCH_NO_RESULTS_LABELS, DEFAULT_SEARCH_PAGINATION_LABELS, DEFAULT_SEARCH_TOTALS_LABELS, DOCUMENT_SEARCH_NOUNS, Highlight, RelevanceThreshold, SearchBar, SearchControlsBar, SearchEmptyState, SearchErrorBanner, SearchGroupCard, SearchGroupHeader, SearchNoResults, SearchPageBody, SearchPageFrame, SearchPageHeader, SearchPagination, SearchPillToggle, SearchResultList, SearchResultsInner, SearchResultsMain, SearchToolbarRow, SearchTotalsHeadline, getPageNumbers, highlightTerms, searchNouns, splitByTerms, stripMarkdownLinks } from './chunk-2MJWWPHY.js';
3
3
  export { UsageMeter } from './chunk-D5T53XCL.js';
4
- export { ActionCluster, AskField, AskRow, AskTrigger, DEFAULT_ASK_FIELD_LABELS, DEFAULT_INSTALL_PROMPT_LABELS, DEFAULT_MOBILE_BARS_LABELS, DEFAULT_OFFLINE_PILL_LABELS, DEFAULT_REMOTE_CONTROL_PILL_LABELS, DEFAULT_SIDEBAR_LABELS, DEFAULT_TIP_CARD_LABELS, DEFAULT_WORKSPACE_KIND_LABELS, DEFAULT_WORKSPACE_SWITCHER_LABELS, INSTALL_PROMPT_DISMISSED_KEY, InfoBar, InstallPrompt, MobileAppBar, MobileTabBar, NotificationBell, OfflinePill, RemoteControlPill, STATUS_ROW_BASE_CLASS, STATUS_ROW_TONES, Sidebar, SidebarBadgeRow, SidebarRowAction, SidebarRowHoverContext, SplitLayout, StatusBadge, StatusRow, TipCard, UserMenu, WorkspaceIdentity, WorkspaceSwitcher, getInstallInstructions, initInstallPrompt, isIosDevice, promptAppInstall, resolveSidebarLayout, useInstallPrompt, useSidebarContext, useSidebarSettle, workspaceKindColor, workspaceKindMeta } from './chunk-VLOPZHFH.js';
5
4
  export { ArticleList, Chart, CheckList, CollectionDetail, CtaBand, DefinitionList, EditorialHeading, EditorialHero, EditorialProse, EditorialSection, Eyebrow, PanelGrid, ProofStrip, PullQuote, Reveal, TagList } from './chunk-LYUO3E6V.js';
5
+ export { ActionCluster, AskField, AskRow, AskTrigger, DEFAULT_ASK_FIELD_LABELS, DEFAULT_INSTALL_PROMPT_LABELS, DEFAULT_MOBILE_BARS_LABELS, DEFAULT_OFFLINE_PILL_LABELS, DEFAULT_REMOTE_CONTROL_PILL_LABELS, DEFAULT_SIDEBAR_LABELS, DEFAULT_TIP_CARD_LABELS, DEFAULT_WORKSPACE_KIND_LABELS, DEFAULT_WORKSPACE_SWITCHER_LABELS, INSTALL_PROMPT_DISMISSED_KEY, InfoBar, InstallPrompt, MobileAppBar, MobileTabBar, NotificationBell, OfflinePill, RemoteControlPill, STATUS_ROW_BASE_CLASS, STATUS_ROW_TONES, Sidebar, SidebarBadgeRow, SidebarRowAction, SidebarRowHoverContext, SplitLayout, StatusBadge, StatusRow, TipCard, UserMenu, WorkspaceIdentity, WorkspaceSwitcher, getInstallInstructions, initInstallPrompt, isIosDevice, promptAppInstall, resolveSidebarLayout, useInstallPrompt, useSidebarContext, useSidebarSettle, workspaceKindColor, workspaceKindMeta } from './chunk-VLOPZHFH.js';
6
6
  export { DataTable, DataTableBlock, MetricCard, PageHeader, StatGroup } from './chunk-ZCF2JJFA.js';
7
7
  export { Accordion, AvatarBlock, Banner, BlockImage, BlockLink, CTABanner, Columns, ContactForm, Container, FAQ, FONT_PAIRINGS, FeatureGrid, Footer, Gallery, Hero, ListBlock, LogoCloud, MediaText, Navbar, PricingTable, ProfileCard, RichTextBlock, SectionHeading, Spacer, Steps, THEME_STYLE_ID, Tabs, TeamGrid, Testimonial, TestimonialGrid, ThemeEditor, VideoEmbed, applyFontVars, applyStoredTheme, applyThemeVars, clearFontVars, clearThemeVars, createThemeStore, fontPackages, getFontPairing, matchFontPairing, tid, toEmbedUrl, toHslTriplet } from './chunk-DLBUFHLY.js';
8
8
  export { Timeline } from './chunk-OVEQERPO.js';
@@ -17,7 +17,7 @@ export { DEFAULT_SEARCH_HIT_LABELS, SearchHit } from './chunk-A2YAC22G.js';
17
17
  export { TIMELINE_ZOOM, TimelineCalendar, TimelineGantt, TimelineZoomControl, dayKey, formatSpan, monthLabel, parseIso, utcDay } from './chunk-4EZVCGRL.js';
18
18
  import './chunk-AF6RDAJF.js';
19
19
  export { Callout } from './chunk-UJE32SST.js';
20
- export { AgentAvatarField, AgentBar, AgentBarIconButton, AgentBarMenu, AgentBarNotes, AgentBarProbeAnswer, AgentBarQueuedNote, AgentBarStatus, AgentCard, AgentCreateView, AgentCreatedView, AgentCreator, AgentEditView, AgentGallery, AgentMainView, AgentSelect, AgentTypeSelector, CapabilityGrid, CapabilityTile, ConfigField, ConfigForm, ConsentActions, ConsentBulletList, ConsentCard, ConsentFootnote, ConsentHeader, ConsentMessage, ConsentNotice, ConsentPage, ConsentPermissionList, ConsentSection, ConsentStrong, ConsentText, ConversationListView, ConversationTurnSpeaker, CopyableUrl, DEFAULT_AGENT_AVATAR_FIELD_LABELS, DEFAULT_AGENT_BAR_LABELS, DEFAULT_AGENT_CARD_LABELS, DEFAULT_AGENT_CREATOR_LABELS, DEFAULT_AGENT_GALLERY_LABELS, DEFAULT_AGENT_SELECT_LABELS, DEFAULT_AGENT_STEPS_LABELS, DEFAULT_AGENT_TYPE_SELECTOR_LABELS, DEFAULT_AUTHORIZE_AGENT_LABELS, DEFAULT_CONFIG_FIELD_LABELS, DEFAULT_CONFIG_FORM_LABELS, DEFAULT_CONSENT_ACTIONS_LABELS, DEFAULT_COPYABLE_URL_LABELS, DEFAULT_NEW_THREAD_DIALOG_LABELS, DEFAULT_PILL_SELECT_LABELS, DEFAULT_RECURRENCE, DEFAULT_RECURRENCE_BUILDER_LABELS, DEFAULT_SKILL_CARD_LABELS, DEFAULT_SKILL_EDIT_FORM_LABELS, DEFAULT_SKILL_GENERATE_FORM_LABELS, DEFAULT_SKILL_GLOBAL_BADGE_LABELS, DEFAULT_SKILL_ROW_LABELS, DEFAULT_SKILL_VIEW_TOGGLE_LABELS, DEFAULT_SUBAGENT_ROSTER_LABELS, DEFAULT_TASKS_CHROME_LABELS, DEFAULT_TASK_COMPOSER_LABELS, DEFAULT_TASK_LIST_LABELS, DEFAULT_TASK_OUTPUTS_CELL_LABELS, DEFAULT_TASK_PLAN_LABELS, DEFAULT_TASK_RUNS_DIALOG_LABELS, DEFAULT_TASK_STATUS_PILL_LABELS, DEFAULT_TASK_THREAD_CHIP_LABELS, DEFAULT_TASK_TRIGGER_CHIP_LABELS, DEFAULT_TUPLE_ARRAY_FIELD_LABELS, DEFAULT_UPLOAD_TASK_ITEM_LABELS, DEFAULT_UPLOAD_TASK_LIST_LABELS, DEFAULT_WORKFLOWS_CHROME_LABELS, DEFAULT_WORKFLOW_CONFIG_DIALOG_LABELS, DEFAULT_WORKFLOW_LIST_LABELS, DEFAULT_WORKFLOW_THREAD_STRIP_LABELS, DERIVED_NAME_WORDS, EMPTY_NEW_THREAD, EntityChip, GoalCriteria, MAX_TASK_DEPTH, NewThreadDialog, PersonPill, PillSelect, RecurrenceBuilder, STATUS_LABELS, STATUS_ORDER, STATUS_TONE, SkillActionButton, SkillCard, SkillDetail, SkillDetailSection, SkillEditForm, SkillFilterChips, SkillGenerateForm, SkillGlobalBadge, SkillRow, SkillTile, SkillTypeBadge, SkillViewToggle, StepDetail, StepNarration, StepOutcome, StepParams, StepRow, StepSummary, StepTrace, StepTraceSummary, SubAgentLane, SubStepGroup, SubagentRoster, TASK_COLUMN_ORDER, TRIGGER_LABELS, TaskActivityDialog, TaskComposer, TaskFlow, TaskInbox, TaskMoveDialog, TaskOutputsCell, TaskPlan, TaskRunsDialog, TaskStartDialog, TaskStatusPill, TaskTable, TaskThreadChip, TaskTriggerChip, TasksToolbar, ThreadActivity, ThreadNotifyDialog, TupleArrayField, UploadTaskItem, UploadTaskList, WEEKDAYS, WORKFLOW_COLUMN_ORDER, WorkflowConfigDialog, WorkflowDocumentsField, WorkflowLauncher, WorkflowThreadStartedBy, WorkflowThreadStrip, WorkflowsTable, WorkflowsToolbar, agentConfigSectionToValues, agentCreatorToConfigSection, asTaskStatus, authModeFor, buildRRule, buildTaskRows, buildWorkflowScopeSource, compactThreadActivity, composePersona, composerToTaskQuery, composerToWorkRequest, composerToWorkflowRequest, composerToWorkflowUpdate, createTaskColumns, createWorkflowColumns, createsWork, defaultScopeRenderer, defaultTaskComposerValues, deriveAgentName, deriveWorkflowName, descendantIds, describeRRule, filterConversationRows, firstWords, formatElapsed, goalProgress, groupThreadActivity, hasTaskFields, hasTrigger, humanizeSection, indexTasks, inferType, inputDocumentIds, isAgenticWorkflow, isOutOfBounds, isPlainTodo, isSkillRow, isValidAgentName, isoToLocalInput, linkedRunsFromActivity, localInputToIso, matchWorkflowScope, moveTargets, newThreadToRequest, nextCriterionId, ownerExtId, parseRRule, prettifyKey, resolveScopeInputs, skillSlug, stripPersonaPreamble, summarizeAgent, summarizeCapabilities, taskComposerToCreateRequest, taskComposerToUpdateRequest, taskNeedsAccess, taskToComposerValues, useWorkflowPreview, workflowFromSkillMarkdown, workflowStatus, workflowTaskFields, workflowToComposerValues, workflowToSkillMarkdown, workflowTriggerType, workflowWhen } from './chunk-EB7QAZLH.js';
20
+ export { AgentAvatarField, AgentBar, AgentBarIconButton, AgentBarMenu, AgentBarNotes, AgentBarProbeAnswer, AgentBarQueuedNote, AgentBarStatus, AgentCard, AgentCreateView, AgentCreatedView, AgentCreator, AgentEditView, AgentGallery, AgentMainView, AgentSelect, AgentTypeSelector, CapabilityGrid, CapabilityTile, ConfigField, ConfigForm, ConsentActions, ConsentBulletList, ConsentCard, ConsentFootnote, ConsentHeader, ConsentMessage, ConsentNotice, ConsentPage, ConsentPermissionList, ConsentSection, ConsentStrong, ConsentText, ConversationListView, ConversationTurnSpeaker, CopyableUrl, DEFAULT_AGENT_AVATAR_FIELD_LABELS, DEFAULT_AGENT_BAR_LABELS, DEFAULT_AGENT_CARD_LABELS, DEFAULT_AGENT_CREATOR_LABELS, DEFAULT_AGENT_GALLERY_LABELS, DEFAULT_AGENT_SELECT_LABELS, DEFAULT_AGENT_STEPS_LABELS, DEFAULT_AGENT_TYPE_SELECTOR_LABELS, DEFAULT_AUTHORIZE_AGENT_LABELS, DEFAULT_CONFIG_FIELD_LABELS, DEFAULT_CONFIG_FORM_LABELS, DEFAULT_CONSENT_ACTIONS_LABELS, DEFAULT_COPYABLE_URL_LABELS, DEFAULT_NEW_THREAD_DIALOG_LABELS, DEFAULT_PILL_SELECT_LABELS, DEFAULT_RECURRENCE, DEFAULT_RECURRENCE_BUILDER_LABELS, DEFAULT_SKILL_CARD_LABELS, DEFAULT_SKILL_EDIT_FORM_LABELS, DEFAULT_SKILL_GENERATE_FORM_LABELS, DEFAULT_SKILL_GLOBAL_BADGE_LABELS, DEFAULT_SKILL_ROW_LABELS, DEFAULT_SKILL_VIEW_TOGGLE_LABELS, DEFAULT_SUBAGENT_ROSTER_LABELS, DEFAULT_TASKS_CHROME_LABELS, DEFAULT_TASK_COMPOSER_LABELS, DEFAULT_TASK_LIST_LABELS, DEFAULT_TASK_OUTPUTS_CELL_LABELS, DEFAULT_TASK_PLAN_LABELS, DEFAULT_TASK_RUNS_DIALOG_LABELS, DEFAULT_TASK_STATUS_PILL_LABELS, DEFAULT_TASK_THREAD_CHIP_LABELS, DEFAULT_TASK_TRIGGER_CHIP_LABELS, DEFAULT_TUPLE_ARRAY_FIELD_LABELS, DEFAULT_UPLOAD_TASK_ITEM_LABELS, DEFAULT_UPLOAD_TASK_LIST_LABELS, DEFAULT_WORKFLOWS_CHROME_LABELS, DEFAULT_WORKFLOW_CONFIG_DIALOG_LABELS, DEFAULT_WORKFLOW_LIST_LABELS, DEFAULT_WORKFLOW_THREAD_STRIP_LABELS, DERIVED_NAME_WORDS, EMPTY_NEW_THREAD, EntityChip, GoalCriteria, MAX_TASK_DEPTH, NewThreadDialog, PersonPill, PillSelect, RecurrenceBuilder, STATUS_LABELS, STATUS_ORDER, STATUS_TONE, SkillActionButton, SkillCard, SkillDetail, SkillDetailSection, SkillEditForm, SkillFilterChips, SkillGenerateForm, SkillGlobalBadge, SkillRow, SkillTile, SkillTypeBadge, SkillViewToggle, StepDetail, StepNarration, StepOutcome, StepParams, StepRow, StepSummary, StepTrace, StepTraceSummary, SubAgentLane, SubStepGroup, SubagentRoster, TASK_COLUMN_ORDER, TRIGGER_LABELS, TaskActivityDialog, TaskComposer, TaskFlow, TaskInbox, TaskMoveDialog, TaskOutputsCell, TaskPlan, TaskRunsDialog, TaskStartDialog, TaskStatusPill, TaskTable, TaskThreadChip, TaskTriggerChip, TasksToolbar, ThreadActivity, ThreadNotifyDialog, TupleArrayField, UploadTaskItem, UploadTaskList, WEEKDAYS, WORKFLOW_COLUMN_ORDER, WorkflowConfigDialog, WorkflowDocumentsField, WorkflowLauncher, WorkflowThreadStartedBy, WorkflowThreadStrip, WorkflowsTable, WorkflowsToolbar, agentConfigSectionToValues, agentCreatorToConfigSection, asTaskStatus, authModeFor, buildRRule, buildTaskRows, buildWorkflowScopeSource, compactThreadActivity, composePersona, composerToTaskQuery, composerToWorkRequest, composerToWorkflowRequest, composerToWorkflowUpdate, createTaskColumns, createWorkflowColumns, createsWork, defaultScopeRenderer, defaultTaskComposerValues, deriveAgentName, deriveWorkflowName, descendantIds, describeRRule, filterConversationRows, firstWords, formatElapsed, goalProgress, groupThreadActivity, hasTaskFields, hasTrigger, humanizeSection, indexTasks, inferType, inputDocumentIds, isAgenticWorkflow, isOutOfBounds, isPlainTodo, isSkillRow, isValidAgentName, isoToLocalInput, linkedRunsFromActivity, localInputToIso, matchWorkflowScope, moveTargets, newThreadToRequest, nextCriterionId, ownerExtId, parseRRule, prettifyKey, resolveScopeInputs, skillSlug, stripPersonaPreamble, summarizeAgent, summarizeCapabilities, taskComposerToCreateRequest, taskComposerToUpdateRequest, taskNeedsAccess, taskToComposerValues, useWorkflowPreview, workflowFromSkillMarkdown, workflowStatus, workflowTaskFields, workflowToComposerValues, workflowToSkillMarkdown, workflowTriggerType, workflowWhen } from './chunk-FQX6N5G6.js';
21
21
  import './chunk-4XJZ6AAY.js';
22
22
  export { EmptyState } from './chunk-P6GHJSLR.js';
23
23
  export { ActionStepBody, ApprovalEvidence, AssigneeLine, DEFAULT_ASSIGNEE_WORDING, DEFAULT_SCHEMA_FORM_LABELS, DEFAULT_STEP_BAR_LABELS, DEFAULT_TASK_ACTIVITY_LABELS, DEFAULT_WORKFLOW_RUNNER_LABELS, DEFAULT_WORKFLOW_STEP_PARTS_LABELS, EMPTY_WORKFLOW_SCOPE, SKILL_PROMPT_FALLBACK_PLACEHOLDER, SKILL_PROMPT_LABEL, SchemaForm, SendBackControl, TaskActivityTimeline, WorkflowRunner, activeStepId, assigneeName, buildLaunch, canAssign, composeStepPrompt, composeWorkflowPrompt, defaultInputs, dependsOn, fieldToFrontmatter, fillRunText, fillStepInputs, fromPlanAssignee, fromPlanDocumentRef, fromPlanSteps, initialRunInputs, inputsFromContext, isEmptyWorkflowScope, isIncompleteSignal, isPersonAction, isPersonStep, isRunFinished, isSteppedWorkflow, isWorkflowScope, layoutFromPlanSteps, nextAction, orderSteps, promptFieldName, reviewInstructions, runFields, runFieldsOf, runThreadTitle, sendBackTargets, skillToWorkflow, splitDocRef, stepConfigProblems, stepDependencies, stepFields, stepLevels, stepPhase, stepStatesFromActivity, stepWindow, taskActivityHeadline, toPlanAssignee, toPlanDocumentRef, toPlanSteps, upstreamSteps, useWorkflowView, validateInputs, validateStep, validateWorkflowGraph, workflowAccepts, workflowFromFrontmatter, workflowSteps, workflowsAccepting, workflowsForHost } from './chunk-PGDL26TQ.js';
@@ -29,29 +29,29 @@ import './chunk-EVUEIBNU.js';
29
29
  export { TONES, isTone } from './chunk-AUS3KBHJ.js';
30
30
  import './chunk-NUNKSZKU.js';
31
31
  export { DEFAULT_FILTER_FIELDS, DEFAULT_FILTER_INPUT_LABELS, FilterInput } from './chunk-YU2KUMGE.js';
32
- import './chunk-P5ST47VY.js';
32
+ import './chunk-DDF5GPIJ.js';
33
33
  import './chunk-XD2M6LIG.js';
34
34
  export { ActionLink } from './chunk-S7PSMMRG.js';
35
35
  export { AccountRecoveryDialog, AuthAlert, AuthConsent, AuthDivider, AuthField, AuthFieldBadge, AuthFooterLinks, AuthHeading, AuthHero, AuthInput, AuthLayout, AuthLink, AuthNote, AuthOfflineBadge, AuthSubmitButton, AuthTabs, DEFAULT_ACCOUNT_RECOVERY_DIALOG_LABELS, DEFAULT_AUTH_CONSENT_LABELS, DEFAULT_AUTH_FOOTER_LINKS_LABELS, DEFAULT_AUTH_OFFLINE_BADGE_LABELS, DEFAULT_RECOVERY_KEY_DIALOG_LABELS, DEFAULT_REVEALABLE_PASSWORD_INPUT_LABELS, DEFAULT_SSO_LOGIN_BUTTON_LABELS, RecoveryKeyDialog, RevealablePasswordInput, SsoLoginButton } from './chunk-SFXVNFES.js';
36
36
  export { DEFAULT_PASSWORD_STRENGTH_INPUT_LABELS, PasswordStrengthInput } from './chunk-VILAPTCB.js';
37
- export { AssistantToaster, BranchControls, ComposerAccessories, ComposerTools, ContextActionButton, ContextCheckRow, ContextPanelContent, ContextPanelFooter, ContextPanelTabs, ContextPickerList, ContextPickerRow, ContextSearchInput, ContextSelectList, ContextSelectRow, Conversation, ConversationBody, ConversationHeader, ConversationHeaderActions, ConversationHistoryPane, ConversationLoading, ConversationMain, ConversationRoot, ConversationSearchView, ConversationSettingsButton, DEFAULT_BRANCH_CONTROLS_LABELS, DEFAULT_CONVERSATION_LAYOUT_LABELS, DEFAULT_CONVERSATION_PARTS_LABELS, DEFAULT_CONVERSATION_SEARCH_LABELS, DEFAULT_LABEL_PIN_ROW_LABELS, DEFAULT_MODEL_PRICING_TIP_LABELS, DEFAULT_PENDING_ANSWER_BAR_LABELS, DEFAULT_PINNED_DOC_CHIP_LABELS, DEFAULT_SLASH_MENU_LABELS, DEFAULT_THREAD_MAP_LABELS, LabelPinRow, ModelAutoIcon, ModelConfigureButton, ModelDot, ModelMenuDivider, ModelMenuMessage, ModelOption, ModelOptionLabel, ModelPickerPopover, ModelPickerTrigger, ModelPricingTip, ModelTierIcon, ModelTierOption, ModelTriggerContent, NewChatButton, NewPaChatButton, PaModeBadge, PendingAnswerBar, PinnedDocChip, SlashMenu, ThreadMap, ThreadMapDiagram, ThreadMapError, ThreadMapLoading, getParticipantTints, hasMessageBody, isLongPastedText, useDismissibleCard, useLongPaste, useRecipientDraft } from './chunk-7NLPKJV5.js';
37
+ export { AssistantToaster, BranchControls, ComposerAccessories, ComposerTools, ContextActionButton, ContextCheckRow, ContextPanelContent, ContextPanelFooter, ContextPanelTabs, ContextPickerList, ContextPickerRow, ContextSearchInput, ContextSelectList, ContextSelectRow, Conversation, ConversationBody, ConversationHeader, ConversationHeaderActions, ConversationHistoryPane, ConversationLoading, ConversationMain, ConversationRoot, ConversationSearchView, ConversationSettingsButton, DEFAULT_BRANCH_CONTROLS_LABELS, DEFAULT_CONVERSATION_LAYOUT_LABELS, DEFAULT_CONVERSATION_PARTS_LABELS, DEFAULT_CONVERSATION_SEARCH_LABELS, DEFAULT_LABEL_PIN_ROW_LABELS, DEFAULT_MODEL_PRICING_TIP_LABELS, DEFAULT_PENDING_ANSWER_BAR_LABELS, DEFAULT_PINNED_DOC_CHIP_LABELS, DEFAULT_SLASH_MENU_LABELS, DEFAULT_THREAD_MAP_LABELS, LabelPinRow, ModelAutoIcon, ModelConfigureButton, ModelDot, ModelMenuDivider, ModelMenuMessage, ModelOption, ModelOptionLabel, ModelPickerPopover, ModelPickerTrigger, ModelPricingTip, ModelTierIcon, ModelTierOption, ModelTriggerContent, NewChatButton, NewPaChatButton, PaModeBadge, PendingAnswerBar, PinnedDocChip, SlashMenu, ThreadMap, ThreadMapDiagram, ThreadMapError, ThreadMapLoading, getParticipantTints, hasMessageBody, isLongPastedText, useDismissibleCard, useLongPaste, useRecipientDraft } from './chunk-ZSV2NQQP.js';
38
38
  export { DEFAULT_DOCK_WIDTH, Toaster } from './chunk-BV7FEMSI.js';
39
- export { AssistantDock, AssistantDockToggle, AssistantModeToggle, ChatDocuments, ChatMessageContent, ChatPage, ChatThreadList, ChatThreadSelect, CitationMark, Composer, ComposerBranchingNotice, ComposerContainer, ComposerDock, ComposerFrame, ComposerInput, ComposerRoot, ComposerSend, ComposerToolbar, ComposerVoiceButton, ContextChip, ConversationEmpty, DEFAULT_ASSISTANT_MODE_TOGGLE_LABELS, DEFAULT_CHAT_PAGE_LABELS, DEFAULT_COMPOSER_LABELS, DEFAULT_CONVERSATION_EMPTY_LABELS, DEFAULT_MESSAGE_ALERT_LABELS, DEFAULT_MESSAGE_LABELS, DEFAULT_MESSAGE_LIST_LABELS, DEFAULT_WORKFLOW_STEP_CHIP_LABELS, Message, MessageActionButton, MessageActionMenu, MessageAlert, MessageBody, MessageBubble, MessageByline, MessageContent, MessageFooter, MessageList, MessageListBanner, MessageListEmpty, MessageListRoot, MessageListRow, MessageListRows, MessageListStatus, MessageListTail, MessageNarration, MessageRoot, MessageSources, MessageSubagentBadge, ScrollToBottom, SourceChip, WorkflowStepChip, toSpeakableText, useAssistantDock, useChatSurface, useRegisterEmbeddedChat, useStreamAnnouncement } from './chunk-PFA43QNX.js';
39
+ export { AssistantDock, AssistantDockToggle, AssistantModeToggle, ChatDocuments, ChatMessageContent, ChatPage, ChatThreadList, ChatThreadSelect, CitationMark, Composer, ComposerBranchingNotice, ComposerContainer, ComposerDock, ComposerFrame, ComposerInput, ComposerRoot, ComposerSend, ComposerToolbar, ComposerVoiceButton, ContextChip, ConversationEmpty, DEFAULT_ASSISTANT_MODE_TOGGLE_LABELS, DEFAULT_CHAT_PAGE_LABELS, DEFAULT_COMPOSER_LABELS, DEFAULT_CONVERSATION_EMPTY_LABELS, DEFAULT_MESSAGE_ALERT_LABELS, DEFAULT_MESSAGE_LABELS, DEFAULT_MESSAGE_LIST_LABELS, DEFAULT_WORKFLOW_STEP_CHIP_LABELS, Message, MessageActionButton, MessageActionMenu, MessageAlert, MessageBody, MessageBubble, MessageByline, MessageContent, MessageFooter, MessageList, MessageListBanner, MessageListEmpty, MessageListRoot, MessageListRow, MessageListRows, MessageListStatus, MessageListTail, MessageNarration, MessageRoot, MessageSources, MessageSubagentBadge, ScrollToBottom, SourceChip, WorkflowStepChip, toSpeakableText, useAssistantDock, useChatSurface, useRegisterEmbeddedChat, useStreamAnnouncement } from './chunk-NUTLXVPX.js';
40
40
  export { BlocksTooltipProvider, DEFAULT_OVERLAY_ZONE_ID, DEFAULT_PAGE_CONTAINER_PADDING, DEFAULT_SIDEBAR_TOGGLE_BUTTON_LABELS, PageContainer, SHELL_BOTTOM_INSET_VAR, Shell, SidebarToggleButton, ToolButton, useDrawerBehavior, useOverlayZoneId, useShellBottomInset } from './chunk-KZJAG7T3.js';
41
41
  export { useMentionAutocomplete } from './chunk-HOXKR26S.js';
42
42
  export { DEFAULT_MENTION_LABELS, MENTION_HREF_PREFIX, MentionChip, MentionMenu, extractMentions, filterMentionCandidates, findMentionQuery, insertMention, linkMentions, mentionFromHref, toMessageMentions, useListKeyNav } from './chunk-AA3PT6KR.js';
43
43
  import './chunk-NPLYHR2E.js';
44
+ export { CitationEditor, DEFAULT_PASSAGE_PILL_LABELS, DEFAULT_QUIET_MARK_LABELS, LabelMark, NoteMark, PassageMark, PassagePill, QuietLink, useCopyText } from './chunk-DQCYCEDR.js';
45
+ export { BlocksProvider, useBlocksEnvironment } from './chunk-76JDDMSP.js';
46
+ export { daysUntil, displayName, fmtDate, fmtDateTime, formatCount, formatCurrency, formatPageRefs, fromNow, hrs, initials, pct, pluralize } from './chunk-OXF2IFXG.js';
44
47
  export { ActionMenu, AddContactsForm, AddContactsResults, ContactCard, DEFAULT_ADD_CONTACTS_LABELS, DEFAULT_CONTACT_CARD_LABELS, DEFAULT_CONTACT_OUTCOME_LABELS, DEFAULT_DM_ACCESS_REQUEST_BANNER_LABELS, DEFAULT_DM_GRANT_ACCESS_DIALOG_LABELS, DEFAULT_DM_INVITE_CHIP_LABELS, DEFAULT_DM_THREAD_FRAME_LABELS, DEFAULT_MAIL_FOLDER_TREE_LABELS, DEFAULT_RECIPIENT_PICKER_LABELS, DmAccessRequestBanner, DmGrantAccessDialogView, DmInviteAvatar, DmInviteChip, DmNewTabIcon, DmThreadFrame, DmThreadHeader, MAX_INVITE_EMAILS, MailFolderTree, MemberBulkActions, MemberListLoading, MemberMutedText, MemberNameCell, MemberRoleCell, RecipientPicker, RoleSelect, WorkspaceDeleteButton, buildMailFolderTree, contactToVCard, descendantFolderIds, downloadVCard, isInboxFolder, parseEmails, toAddContactsRow, toAddContactsRows, toggleMailFolder, vCardFilename } from './chunk-7C35WXYB.js';
45
48
  import './chunk-NBV56SGU.js';
46
- export { MailDeliveryBadge, MailDeliveryList, MailDocumentPicker, MailGrid, MailMessagePreview, MailMessageView, NEEDS_CONNECTION, PlainMailBodyEditor, draftMailCompose, emptyMailCompose, hasCalendarPart, mailAddressLabel, parseMailRecipients, replyMailCompose } from './chunk-P2KPDPFF.js';
49
+ export { MailDeliveryBadge, MailDeliveryList, MailDocumentPicker, MailGrid, MailMessagePreview, MailMessageView, NEEDS_CONNECTION, PlainMailBodyEditor, draftMailCompose, emptyMailCompose, hasCalendarPart, mailAddressLabel, parseMailRecipients, replyMailCompose } from './chunk-IXTQYFIF.js';
47
50
  export { DEFAULT_SHARE_CONTROL_LABELS, ShareControl } from './chunk-K4BGOPGG.js';
48
51
  import './chunk-TX2ZICS7.js';
49
- import './chunk-ZPLG7QYF.js';
52
+ import './chunk-N5YEF3LC.js';
50
53
  export { BREAKPOINT_QUERIES, useIsNarrow, useIsPhone, useIsTouchScreen, useMediaQuery } from './chunk-SLSBJRWW.js';
51
54
  import './chunk-7F6CBP3Z.js';
52
- export { CitationEditor, DEFAULT_PASSAGE_PILL_LABELS, DEFAULT_QUIET_MARK_LABELS, LabelMark, NoteMark, PassageMark, PassagePill, QuietLink, useCopyText } from './chunk-XQKGYGCJ.js';
53
- export { BlocksProvider, useBlocksEnvironment } from './chunk-76JDDMSP.js';
54
- export { daysUntil, displayName, fmtDate, fmtDateTime, formatCount, formatCurrency, formatPageRefs, fromNow, hrs, initials, pct, pluralize } from './chunk-OXF2IFXG.js';
55
55
  import './chunk-VUNV25KB.js';
56
56
  import { Search, Pencil, Sparkles, FileText, Lightbulb, MessagesSquare, X, Plus } from 'lucide-react';
57
57
  import { Input, cn, Textarea, Button } from '@arbidocs/react/ui';
@@ -3,8 +3,8 @@
3
3
 
4
4
  var chunkQI6AIHWP_cjs = require('../chunk-QI6AIHWP.cjs');
5
5
  var chunkOUW6G4O2_cjs = require('../chunk-OUW6G4O2.cjs');
6
- require('../chunk-MHVNT4J3.cjs');
7
6
  require('../chunk-C54XEN5T.cjs');
7
+ require('../chunk-MHVNT4J3.cjs');
8
8
  require('../chunk-DES3K4SD.cjs');
9
9
 
10
10
 
@@ -1,8 +1,8 @@
1
1
  "use client";
2
2
  export { ApplyLabelButton, ApplyLabelDialog, DEFAULT_APPLY_LABEL_DIALOG_LABELS, DEFAULT_RELEVANCE_STEPS, DEFAULT_SEARCH_BAR_LABELS, DEFAULT_SEARCH_EMPTY_STATE_LABELS, DEFAULT_SEARCH_GROUP_HEADER_LABELS, DEFAULT_SEARCH_NO_RESULTS_LABELS, DEFAULT_SEARCH_PAGINATION_LABELS, DEFAULT_SEARCH_TOTALS_LABELS, DOCUMENT_SEARCH_NOUNS, Highlight, RelevanceThreshold, SearchBar, SearchControlsBar, SearchEmptyState, SearchErrorBanner, SearchGroupCard, SearchGroupHeader, SearchNoResults, SearchPageBody, SearchPageFrame, SearchPageHeader, SearchPagination, SearchPillToggle, SearchResultList, SearchResultsInner, SearchResultsMain, SearchToolbarRow, SearchTotalsHeadline, getPageNumbers, highlightTerms, searchNouns, splitByTerms, stripMarkdownLinks } from '../chunk-2MJWWPHY.js';
3
3
  export { DEFAULT_SEARCH_HIT_LABELS, SearchHit } from '../chunk-A2YAC22G.js';
4
- import '../chunk-7F6CBP3Z.js';
5
4
  import '../chunk-76JDDMSP.js';
5
+ import '../chunk-7F6CBP3Z.js';
6
6
  import '../chunk-VUNV25KB.js';
7
7
  //# sourceMappingURL=index.js.map
8
8
  //# sourceMappingURL=index.js.map
@@ -0,0 +1,45 @@
1
+ /** What the firm pool section shows (amounts in £ of AI usage); the host formats the dates. */
2
+ export interface FirmPoolView {
3
+ /** £ of AI usage used this month; `null` while the usage report is not available yet. */
4
+ usedGbp: number | null;
5
+ totalGbp: number;
6
+ /** £ of AI usage each add-on adds a month (for the top-up help). */
7
+ addonGbp?: number;
8
+ /** When the pool resets, already formatted (e.g. "1 Nov 2026"). */
9
+ resetsAt?: string;
10
+ /** Standard AI is unlimited and the allowance applies to Premium AI only. */
11
+ premiumOnly: boolean;
12
+ /** Auto add-ons this month, as money against the monthly extra-usage limit (formatted). */
13
+ autoAddons?: {
14
+ count: number;
15
+ spent: string;
16
+ limit: string;
17
+ pct: number;
18
+ };
19
+ }
20
+ export interface FirmPoolSectionLabels {
21
+ title: string;
22
+ used: string;
23
+ premiumOnly: string;
24
+ resets: (date: string) => string;
25
+ usageUnknown: string;
26
+ autoAddons: (count: number) => string;
27
+ topUpLabel: string;
28
+ topUp: string;
29
+ toppingUp: string;
30
+ topUpHelp: (perAddon: string) => string;
31
+ }
32
+ export declare const DEFAULT_FIRM_POOL_SECTION_LABELS: FirmPoolSectionLabels;
33
+ export declare const FIRM_POOL_MAX_TOP_UP = 100;
34
+ export interface FirmPoolSectionProps {
35
+ view: FirmPoolView;
36
+ /** Formats a £ amount (the host's formatter, e.g. formatGbp from @arbidocs/react). */
37
+ formatAmount?: (gbp: number) => string;
38
+ /** Shown only when set: the caller may buy add-ons (Box admins). */
39
+ onTopUp?: (aiAddons: number) => void;
40
+ isToppingUp?: boolean;
41
+ labels?: Partial<FirmPoolSectionLabels>;
42
+ testId?: string;
43
+ }
44
+ /** The firm's pooled monthly £ of AI usage: used of total, the reset date, auto add-ons and top-up. */
45
+ export declare function FirmPoolSection({ view, formatAmount, onTopUp, isToppingUp, labels, testId, }: FirmPoolSectionProps): import("react").JSX.Element;
@@ -1,7 +1,7 @@
1
1
  "use client";
2
2
  'use strict';
3
3
 
4
- var chunkOR4CO743_cjs = require('../chunk-OR4CO743.cjs');
4
+ var chunk5YXG342J_cjs = require('../chunk-5YXG342J.cjs');
5
5
  var chunk223D4727_cjs = require('../chunk-223D4727.cjs');
6
6
  var chunk46IU3UPF_cjs = require('../chunk-46IU3UPF.cjs');
7
7
  var chunkS5HZBXZA_cjs = require('../chunk-S5HZBXZA.cjs');
@@ -11,9 +11,9 @@ var chunkDVUZTGVL_cjs = require('../chunk-DVUZTGVL.cjs');
11
11
  var chunk32HW2Q33_cjs = require('../chunk-32HW2Q33.cjs');
12
12
  require('../chunk-ADOKTJHV.cjs');
13
13
  require('../chunk-PPCATBOY.cjs');
14
+ var chunkKDG6FER6_cjs = require('../chunk-KDG6FER6.cjs');
14
15
  var chunkULWRNGGE_cjs = require('../chunk-ULWRNGGE.cjs');
15
16
  var chunkMHVNT4J3_cjs = require('../chunk-MHVNT4J3.cjs');
16
- var chunkKDG6FER6_cjs = require('../chunk-KDG6FER6.cjs');
17
17
  require('../chunk-DES3K4SD.cjs');
18
18
  var react = require('react');
19
19
  var lucideReact = require('lucide-react');
@@ -2110,6 +2110,100 @@ function RenameDialog({
2110
2110
  ] })
2111
2111
  ] }) });
2112
2112
  }
2113
+ var DEFAULT_FIRM_POOL_SECTION_LABELS = {
2114
+ title: "Firm AI usage",
2115
+ used: "This month",
2116
+ premiumOnly: "Standard AI is unlimited; the allowance applies to Premium AI.",
2117
+ resets: (date) => `resets ${date}`,
2118
+ usageUnknown: "Usage is being calculated.",
2119
+ autoAddons: (count) => `Auto add-ons (${count})`,
2120
+ topUpLabel: "Add-ons to buy",
2121
+ topUp: "Add AI usage",
2122
+ toppingUp: "Adding\u2026",
2123
+ topUpHelp: (perAddon) => `Each add-on adds ${perAddon} of AI usage a month, pooled across the firm.`
2124
+ };
2125
+ var FIRM_POOL_MAX_TOP_UP = 100;
2126
+ var defaultFormat = (gbp) => `\xA3${gbp.toLocaleString("en-GB", { maximumFractionDigits: 2 })}`;
2127
+ function FirmPoolSection({
2128
+ view,
2129
+ formatAmount = defaultFormat,
2130
+ onTopUp,
2131
+ isToppingUp = false,
2132
+ labels,
2133
+ testId = "firm-pool"
2134
+ }) {
2135
+ const l = react.useMemo(() => ({ ...DEFAULT_FIRM_POOL_SECTION_LABELS, ...labels }), [labels]);
2136
+ const [count, setCount] = react.useState(1);
2137
+ const valid = Number.isInteger(count) && count >= 1 && count <= FIRM_POOL_MAX_TOP_UP;
2138
+ const used = view.usedGbp;
2139
+ const pct = used != null && view.totalGbp > 0 ? used / view.totalGbp * 100 : 0;
2140
+ return /* @__PURE__ */ jsxRuntime.jsxs("section", { className: "space-y-3", "data-testid": testId, children: [
2141
+ /* @__PURE__ */ jsxRuntime.jsx("h3", { className: "px-1 text-sm font-semibold text-foreground", children: l.title }),
2142
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-3 px-1", children: [
2143
+ /* @__PURE__ */ jsxRuntime.jsx(
2144
+ chunk46IU3UPF_cjs.UsageMeter,
2145
+ {
2146
+ label: l.used,
2147
+ hint: view.resetsAt ? l.resets(view.resetsAt) : void 0,
2148
+ value: `${used != null ? formatAmount(used) : "\u2014"} / ${formatAmount(view.totalGbp)}`,
2149
+ pct,
2150
+ testId: `${testId}-usage`
2151
+ }
2152
+ ),
2153
+ used == null && /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-xs text-muted-foreground", children: l.usageUnknown }),
2154
+ view.autoAddons && /* @__PURE__ */ jsxRuntime.jsx(
2155
+ chunk46IU3UPF_cjs.UsageMeter,
2156
+ {
2157
+ label: l.autoAddons(view.autoAddons.count),
2158
+ value: `${view.autoAddons.spent} / ${view.autoAddons.limit}`,
2159
+ pct: view.autoAddons.pct,
2160
+ testId: `${testId}-auto-addons`
2161
+ }
2162
+ ),
2163
+ view.premiumOnly && /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-xs text-muted-foreground", "data-testid": `${testId}-premium-only`, children: l.premiumOnly }),
2164
+ onTopUp && /* @__PURE__ */ jsxRuntime.jsxs(
2165
+ "form",
2166
+ {
2167
+ className: "flex flex-wrap items-end gap-2",
2168
+ "data-testid": `${testId}-top-up`,
2169
+ onSubmit: (event) => {
2170
+ event.preventDefault();
2171
+ if (valid && !isToppingUp) onTopUp(count);
2172
+ },
2173
+ children: [
2174
+ /* @__PURE__ */ jsxRuntime.jsxs("label", { className: "flex flex-col gap-1 text-xs text-muted-foreground", children: [
2175
+ l.topUpLabel,
2176
+ /* @__PURE__ */ jsxRuntime.jsx(
2177
+ ui.Input,
2178
+ {
2179
+ type: "number",
2180
+ min: 1,
2181
+ max: FIRM_POOL_MAX_TOP_UP,
2182
+ step: 1,
2183
+ value: Number.isNaN(count) ? "" : count,
2184
+ onChange: (event) => setCount(event.target.valueAsNumber),
2185
+ className: "h-8 w-24",
2186
+ "data-testid": `${testId}-top-up-count`
2187
+ }
2188
+ )
2189
+ ] }),
2190
+ /* @__PURE__ */ jsxRuntime.jsx(
2191
+ ui.Button,
2192
+ {
2193
+ type: "submit",
2194
+ size: "sm",
2195
+ disabled: !valid || isToppingUp,
2196
+ "data-testid": `${testId}-top-up-button`,
2197
+ children: isToppingUp ? l.toppingUp : l.topUp
2198
+ }
2199
+ ),
2200
+ /* @__PURE__ */ jsxRuntime.jsx("p", { className: "w-full text-xs text-muted-foreground", children: l.topUpHelp(formatAmount(view.addonGbp ?? 10)) })
2201
+ ]
2202
+ }
2203
+ )
2204
+ ] })
2205
+ ] });
2206
+ }
2113
2207
  var DEFAULT_SUPPORT_PANEL_LABELS = {
2114
2208
  support: "Support",
2115
2209
  userGuide: "User Guide"
@@ -3481,135 +3575,135 @@ function ErrorDialogView({
3481
3575
 
3482
3576
  Object.defineProperty(exports, "ActiveSessionsDialog", {
3483
3577
  enumerable: true,
3484
- get: function () { return chunkOR4CO743_cjs.ActiveSessionsDialog; }
3578
+ get: function () { return chunk5YXG342J_cjs.ActiveSessionsDialog; }
3485
3579
  });
3486
3580
  Object.defineProperty(exports, "AvatarPicker", {
3487
3581
  enumerable: true,
3488
- get: function () { return chunkOR4CO743_cjs.AvatarPicker; }
3582
+ get: function () { return chunk5YXG342J_cjs.AvatarPicker; }
3489
3583
  });
3490
3584
  Object.defineProperty(exports, "DEFAULT_ACTIVE_SESSIONS_DIALOG_LABELS", {
3491
3585
  enumerable: true,
3492
- get: function () { return chunkOR4CO743_cjs.DEFAULT_ACTIVE_SESSIONS_DIALOG_LABELS; }
3586
+ get: function () { return chunk5YXG342J_cjs.DEFAULT_ACTIVE_SESSIONS_DIALOG_LABELS; }
3493
3587
  });
3494
3588
  Object.defineProperty(exports, "DEFAULT_AVATAR_PICKER_LABELS", {
3495
3589
  enumerable: true,
3496
- get: function () { return chunkOR4CO743_cjs.DEFAULT_AVATAR_PICKER_LABELS; }
3590
+ get: function () { return chunk5YXG342J_cjs.DEFAULT_AVATAR_PICKER_LABELS; }
3497
3591
  });
3498
3592
  Object.defineProperty(exports, "DEFAULT_DELETE_ACCOUNT_DIALOG_LABELS", {
3499
3593
  enumerable: true,
3500
- get: function () { return chunkOR4CO743_cjs.DEFAULT_DELETE_ACCOUNT_DIALOG_LABELS; }
3594
+ get: function () { return chunk5YXG342J_cjs.DEFAULT_DELETE_ACCOUNT_DIALOG_LABELS; }
3501
3595
  });
3502
3596
  Object.defineProperty(exports, "DEFAULT_IDENTITY_VERIFICATION_LABELS", {
3503
3597
  enumerable: true,
3504
- get: function () { return chunkOR4CO743_cjs.DEFAULT_IDENTITY_VERIFICATION_LABELS; }
3598
+ get: function () { return chunk5YXG342J_cjs.DEFAULT_IDENTITY_VERIFICATION_LABELS; }
3505
3599
  });
3506
3600
  Object.defineProperty(exports, "DEFAULT_LOGOUT_DIALOG_LABELS", {
3507
3601
  enumerable: true,
3508
- get: function () { return chunkOR4CO743_cjs.DEFAULT_LOGOUT_DIALOG_LABELS; }
3602
+ get: function () { return chunk5YXG342J_cjs.DEFAULT_LOGOUT_DIALOG_LABELS; }
3509
3603
  });
3510
3604
  Object.defineProperty(exports, "DEFAULT_PASSWORD_CHANGE_DIALOG_LABELS", {
3511
3605
  enumerable: true,
3512
- get: function () { return chunkOR4CO743_cjs.DEFAULT_PASSWORD_CHANGE_DIALOG_LABELS; }
3606
+ get: function () { return chunk5YXG342J_cjs.DEFAULT_PASSWORD_CHANGE_DIALOG_LABELS; }
3513
3607
  });
3514
3608
  Object.defineProperty(exports, "DEFAULT_PROFILE_CARD_LABELS", {
3515
3609
  enumerable: true,
3516
- get: function () { return chunkOR4CO743_cjs.DEFAULT_PROFILE_CARD_LABELS; }
3610
+ get: function () { return chunk5YXG342J_cjs.DEFAULT_PROFILE_CARD_LABELS; }
3517
3611
  });
3518
3612
  Object.defineProperty(exports, "DEFAULT_SETTINGS_DANGER_ZONE_LABELS", {
3519
3613
  enumerable: true,
3520
- get: function () { return chunkOR4CO743_cjs.DEFAULT_SETTINGS_DANGER_ZONE_LABELS; }
3614
+ get: function () { return chunk5YXG342J_cjs.DEFAULT_SETTINGS_DANGER_ZONE_LABELS; }
3521
3615
  });
3522
3616
  Object.defineProperty(exports, "DeleteAccountDialog", {
3523
3617
  enumerable: true,
3524
- get: function () { return chunkOR4CO743_cjs.DeleteAccountDialog; }
3618
+ get: function () { return chunk5YXG342J_cjs.DeleteAccountDialog; }
3525
3619
  });
3526
3620
  Object.defineProperty(exports, "EMAIL_NOTIFICATION_CATEGORIES", {
3527
3621
  enumerable: true,
3528
- get: function () { return chunkOR4CO743_cjs.EMAIL_NOTIFICATION_CATEGORIES; }
3622
+ get: function () { return chunk5YXG342J_cjs.EMAIL_NOTIFICATION_CATEGORIES; }
3529
3623
  });
3530
3624
  Object.defineProperty(exports, "EMAIL_NOTIFICATION_KEYS", {
3531
3625
  enumerable: true,
3532
- get: function () { return chunkOR4CO743_cjs.EMAIL_NOTIFICATION_KEYS; }
3626
+ get: function () { return chunk5YXG342J_cjs.EMAIL_NOTIFICATION_KEYS; }
3533
3627
  });
3534
3628
  Object.defineProperty(exports, "IdentityVerificationCard", {
3535
3629
  enumerable: true,
3536
- get: function () { return chunkOR4CO743_cjs.IdentityVerificationCard; }
3630
+ get: function () { return chunk5YXG342J_cjs.IdentityVerificationCard; }
3537
3631
  });
3538
3632
  Object.defineProperty(exports, "IdentityVerificationDialog", {
3539
3633
  enumerable: true,
3540
- get: function () { return chunkOR4CO743_cjs.IdentityVerificationDialog; }
3634
+ get: function () { return chunk5YXG342J_cjs.IdentityVerificationDialog; }
3541
3635
  });
3542
3636
  Object.defineProperty(exports, "LogoutDialog", {
3543
3637
  enumerable: true,
3544
- get: function () { return chunkOR4CO743_cjs.LogoutDialog; }
3638
+ get: function () { return chunk5YXG342J_cjs.LogoutDialog; }
3545
3639
  });
3546
3640
  Object.defineProperty(exports, "NotificationCategoryList", {
3547
3641
  enumerable: true,
3548
- get: function () { return chunkOR4CO743_cjs.NotificationCategoryList; }
3642
+ get: function () { return chunk5YXG342J_cjs.NotificationCategoryList; }
3549
3643
  });
3550
3644
  Object.defineProperty(exports, "PasswordChangeDialog", {
3551
3645
  enumerable: true,
3552
- get: function () { return chunkOR4CO743_cjs.PasswordChangeDialog; }
3646
+ get: function () { return chunk5YXG342J_cjs.PasswordChangeDialog; }
3553
3647
  });
3554
3648
  Object.defineProperty(exports, "ProfileCard", {
3555
3649
  enumerable: true,
3556
- get: function () { return chunkOR4CO743_cjs.ProfileCard; }
3650
+ get: function () { return chunk5YXG342J_cjs.ProfileCard; }
3557
3651
  });
3558
3652
  Object.defineProperty(exports, "RequireVerified", {
3559
3653
  enumerable: true,
3560
- get: function () { return chunkOR4CO743_cjs.RequireVerified; }
3654
+ get: function () { return chunk5YXG342J_cjs.RequireVerified; }
3561
3655
  });
3562
3656
  Object.defineProperty(exports, "SettingsActionRow", {
3563
3657
  enumerable: true,
3564
- get: function () { return chunkOR4CO743_cjs.SettingsActionRow; }
3658
+ get: function () { return chunk5YXG342J_cjs.SettingsActionRow; }
3565
3659
  });
3566
3660
  Object.defineProperty(exports, "SettingsCard", {
3567
3661
  enumerable: true,
3568
- get: function () { return chunkOR4CO743_cjs.SettingsCard; }
3662
+ get: function () { return chunk5YXG342J_cjs.SettingsCard; }
3569
3663
  });
3570
3664
  Object.defineProperty(exports, "SettingsDangerZone", {
3571
3665
  enumerable: true,
3572
- get: function () { return chunkOR4CO743_cjs.SettingsDangerZone; }
3666
+ get: function () { return chunk5YXG342J_cjs.SettingsDangerZone; }
3573
3667
  });
3574
3668
  Object.defineProperty(exports, "SettingsPanel", {
3575
3669
  enumerable: true,
3576
- get: function () { return chunkOR4CO743_cjs.SettingsPanel; }
3670
+ get: function () { return chunk5YXG342J_cjs.SettingsPanel; }
3577
3671
  });
3578
3672
  Object.defineProperty(exports, "SettingsRow", {
3579
3673
  enumerable: true,
3580
- get: function () { return chunkOR4CO743_cjs.SettingsRow; }
3674
+ get: function () { return chunk5YXG342J_cjs.SettingsRow; }
3581
3675
  });
3582
3676
  Object.defineProperty(exports, "SettingsSection", {
3583
3677
  enumerable: true,
3584
- get: function () { return chunkOR4CO743_cjs.SettingsSection; }
3678
+ get: function () { return chunk5YXG342J_cjs.SettingsSection; }
3585
3679
  });
3586
3680
  Object.defineProperty(exports, "SettingsSwitchGroup", {
3587
3681
  enumerable: true,
3588
- get: function () { return chunkOR4CO743_cjs.SettingsSwitchGroup; }
3682
+ get: function () { return chunk5YXG342J_cjs.SettingsSwitchGroup; }
3589
3683
  });
3590
3684
  Object.defineProperty(exports, "SettingsSwitchRow", {
3591
3685
  enumerable: true,
3592
- get: function () { return chunkOR4CO743_cjs.SettingsSwitchRow; }
3686
+ get: function () { return chunk5YXG342J_cjs.SettingsSwitchRow; }
3593
3687
  });
3594
3688
  Object.defineProperty(exports, "formatSessionTtl", {
3595
3689
  enumerable: true,
3596
- get: function () { return chunkOR4CO743_cjs.formatSessionTtl; }
3690
+ get: function () { return chunk5YXG342J_cjs.formatSessionTtl; }
3597
3691
  });
3598
3692
  Object.defineProperty(exports, "toActiveSessionViews", {
3599
3693
  enumerable: true,
3600
- get: function () { return chunkOR4CO743_cjs.toActiveSessionViews; }
3694
+ get: function () { return chunk5YXG342J_cjs.toActiveSessionViews; }
3601
3695
  });
3602
3696
  Object.defineProperty(exports, "toDeleteBlockerViews", {
3603
3697
  enumerable: true,
3604
- get: function () { return chunkOR4CO743_cjs.toDeleteBlockerViews; }
3698
+ get: function () { return chunk5YXG342J_cjs.toDeleteBlockerViews; }
3605
3699
  });
3606
3700
  Object.defineProperty(exports, "toLogoutSessionViews", {
3607
3701
  enumerable: true,
3608
- get: function () { return chunkOR4CO743_cjs.toLogoutSessionViews; }
3702
+ get: function () { return chunk5YXG342J_cjs.toLogoutSessionViews; }
3609
3703
  });
3610
3704
  Object.defineProperty(exports, "toNotificationCategories", {
3611
3705
  enumerable: true,
3612
- get: function () { return chunkOR4CO743_cjs.toNotificationCategories; }
3706
+ get: function () { return chunk5YXG342J_cjs.toNotificationCategories; }
3613
3707
  });
3614
3708
  Object.defineProperty(exports, "ModalBreadcrumbHeader", {
3615
3709
  enumerable: true,
@@ -3676,6 +3770,7 @@ exports.DEFAULT_CONVERSATION_TITLE_SECTION_LABELS = DEFAULT_CONVERSATION_TITLE_S
3676
3770
  exports.DEFAULT_DAILY_CAP_FIELD_LABELS = DEFAULT_DAILY_CAP_FIELD_LABELS;
3677
3771
  exports.DEFAULT_EMAIL_WORKSPACE_DIALOG_LABELS = DEFAULT_EMAIL_WORKSPACE_DIALOG_LABELS;
3678
3772
  exports.DEFAULT_ERROR_DIALOG_LABELS = DEFAULT_ERROR_DIALOG_LABELS;
3773
+ exports.DEFAULT_FIRM_POOL_SECTION_LABELS = DEFAULT_FIRM_POOL_SECTION_LABELS;
3679
3774
  exports.DEFAULT_INLINE_NAME_EDITOR_LABELS = DEFAULT_INLINE_NAME_EDITOR_LABELS;
3680
3775
  exports.DEFAULT_INVITE_CONTACTS_DIALOG_LABELS = DEFAULT_INVITE_CONTACTS_DIALOG_LABELS;
3681
3776
  exports.DEFAULT_INVOICES_DIALOG_LABELS = DEFAULT_INVOICES_DIALOG_LABELS;
@@ -3703,6 +3798,8 @@ exports.DEFAULT_WORK_OFFLINE_LABELS = DEFAULT_WORK_OFFLINE_LABELS;
3703
3798
  exports.DailyCapField = DailyCapField;
3704
3799
  exports.EmailWorkspaceDialogView = EmailWorkspaceDialogView;
3705
3800
  exports.ErrorDialogView = ErrorDialogView;
3801
+ exports.FIRM_POOL_MAX_TOP_UP = FIRM_POOL_MAX_TOP_UP;
3802
+ exports.FirmPoolSection = FirmPoolSection;
3706
3803
  exports.FloatingPanel = FloatingPanel;
3707
3804
  exports.InlineNameEditor = InlineNameEditor;
3708
3805
  exports.InviteContactsDialog = InviteContactsDialog;