@burdenoff/microfe-healthybowl 2026.904.26 → 2026.904.27

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 (186) hide show
  1. package/dist/components/assistant/AIAssistantPanel.js +23 -62
  2. package/dist/components/assistant/AIAssistantPanel.js.map +1 -1
  3. package/dist/components/assistant/AssistantConversationList.js +1 -2
  4. package/dist/components/assistant/AssistantEmptyState.js +1 -2
  5. package/dist/components/assistant/AssistantHeader.js +1 -2
  6. package/dist/components/assistant/AssistantMessageList.js +1 -2
  7. package/dist/components/assistant/AssistantSpeechProvider.js +1 -2
  8. package/dist/components/assistant/AssistantToolActivity.js +1 -2
  9. package/dist/components/assistant/composer/AssistantComposer.js +1 -2
  10. package/dist/components/assistant/index.js +7 -7
  11. package/dist/healthybowl/HealthyBowlRoot.js +57 -56
  12. package/dist/healthybowl/HealthyBowlRoot.js.map +1 -1
  13. package/dist/healthybowl/HealthyBowlRoutes.js +48 -36
  14. package/dist/healthybowl/HealthyBowlRoutes.js.map +1 -1
  15. package/dist/healthybowl/components/CreateFarmTaskButton.js.map +1 -1
  16. package/dist/healthybowl/components/Modal.js +2 -29
  17. package/dist/healthybowl/components/PageLayout.js +11 -10
  18. package/dist/healthybowl/components/PageLayout.js.map +1 -1
  19. package/dist/healthybowl/context/HealthyBowlContext.js +7 -7
  20. package/dist/healthybowl/context/HealthyBowlContext.js.map +1 -1
  21. package/dist/healthybowl/hooks/useAgronomyDecisions.js +79 -0
  22. package/dist/healthybowl/hooks/useAgronomyDecisions.js.map +1 -0
  23. package/dist/healthybowl/hooks/useAnalyticsReports.js +173 -0
  24. package/dist/healthybowl/hooks/useAnalyticsReports.js.map +1 -0
  25. package/dist/healthybowl/hooks/useComplianceExports.js +74 -0
  26. package/dist/healthybowl/hooks/useComplianceExports.js.map +1 -0
  27. package/dist/healthybowl/hooks/useConsultationPayments.js +59 -0
  28. package/dist/healthybowl/hooks/useConsultationPayments.js.map +1 -0
  29. package/dist/healthybowl/hooks/useHealthyBowlCompliance.js +157 -141
  30. package/dist/healthybowl/hooks/useHealthyBowlCompliance.js.map +1 -1
  31. package/dist/healthybowl/hooks/useHealthyBowlData.js +18 -0
  32. package/dist/healthybowl/hooks/useHealthyBowlData.js.map +1 -1
  33. package/dist/healthybowl/hooks/useHealthyBowlDistribution.js +52 -37
  34. package/dist/healthybowl/hooks/useHealthyBowlDistribution.js.map +1 -1
  35. package/dist/healthybowl/hooks/useHealthyBowlLivestockDepth.js +135 -78
  36. package/dist/healthybowl/hooks/useHealthyBowlLivestockDepth.js.map +1 -1
  37. package/dist/healthybowl/hooks/useIrrigationAutomation.js +1 -1
  38. package/dist/healthybowl/hooks/useIrrigationAutomation.js.map +1 -1
  39. package/dist/healthybowl/hooks/usePlantingEstimate.js +88 -0
  40. package/dist/healthybowl/hooks/usePlantingEstimate.js.map +1 -0
  41. package/dist/healthybowl/hooks/useSuccessionPlanning.js +1 -1
  42. package/dist/healthybowl/hooks/useSuccessionPlanning.js.map +1 -1
  43. package/dist/healthybowl/hooks/useWeatherIntelligence.js +1 -1
  44. package/dist/healthybowl/hooks/useWeatherIntelligence.js.map +1 -1
  45. package/dist/healthybowl/offline/HeaderOfflinePill.js +28 -0
  46. package/dist/healthybowl/offline/HeaderOfflinePill.js.map +1 -0
  47. package/dist/healthybowl/offline/OfflineStatusPill.js +40 -21
  48. package/dist/healthybowl/offline/OfflineStatusPill.js.map +1 -1
  49. package/dist/healthybowl/offline/OfflineSyncProvider.js +149 -126
  50. package/dist/healthybowl/offline/OfflineSyncProvider.js.map +1 -1
  51. package/dist/healthybowl/offline/captureCache.js +30 -0
  52. package/dist/healthybowl/offline/captureCache.js.map +1 -0
  53. package/dist/healthybowl/offline/graphql.js.map +1 -1
  54. package/dist/healthybowl/offline/headerSlot.js +24 -0
  55. package/dist/healthybowl/offline/headerSlot.js.map +1 -0
  56. package/dist/healthybowl/offline/store.js +1 -1
  57. package/dist/healthybowl/offline/syncEngine.js +2 -1
  58. package/dist/healthybowl/offline/syncEngine.js.map +1 -1
  59. package/dist/healthybowl/offline/types.js.map +1 -1
  60. package/dist/healthybowl/pages/GettingStartedPage.js +1 -0
  61. package/dist/healthybowl/pages/GettingStartedPage.js.map +1 -1
  62. package/dist/healthybowl/pages/ai/AiDecisionsPage.js +287 -0
  63. package/dist/healthybowl/pages/ai/AiDecisionsPage.js.map +1 -0
  64. package/dist/healthybowl/pages/analytics/InsightsPage.js +2 -2
  65. package/dist/healthybowl/pages/analytics/InsightsPage.js.map +1 -1
  66. package/dist/healthybowl/pages/analytics/ReportsPage.js +136 -99
  67. package/dist/healthybowl/pages/analytics/ReportsPage.js.map +1 -1
  68. package/dist/healthybowl/pages/compliance/ComplianceOverviewPage.js +204 -162
  69. package/dist/healthybowl/pages/compliance/ComplianceOverviewPage.js.map +1 -1
  70. package/dist/healthybowl/pages/compliance/IcsGroupDetailPage.js +196 -178
  71. package/dist/healthybowl/pages/compliance/IcsGroupDetailPage.js.map +1 -1
  72. package/dist/healthybowl/pages/compliance/IcsGrowerDetailPage.js +142 -141
  73. package/dist/healthybowl/pages/compliance/IcsGrowerDetailPage.js.map +1 -1
  74. package/dist/healthybowl/pages/compliance/ResidueTestsPage.js +291 -0
  75. package/dist/healthybowl/pages/compliance/ResidueTestsPage.js.map +1 -0
  76. package/dist/healthybowl/pages/compliance/SubstanceRulesPage.js +300 -0
  77. package/dist/healthybowl/pages/compliance/SubstanceRulesPage.js.map +1 -0
  78. package/dist/healthybowl/pages/compliance/substanceRuleForm.js +135 -0
  79. package/dist/healthybowl/pages/compliance/substanceRuleForm.js.map +1 -0
  80. package/dist/healthybowl/pages/crops/CropFieldsPage.js +2 -0
  81. package/dist/healthybowl/pages/crops/CropFieldsPage.js.map +1 -1
  82. package/dist/healthybowl/pages/crops/CropHarvestPage.js +316 -272
  83. package/dist/healthybowl/pages/crops/CropHarvestPage.js.map +1 -1
  84. package/dist/healthybowl/pages/crops/CropPlanningPage.js +6 -0
  85. package/dist/healthybowl/pages/crops/CropPlanningPage.js.map +1 -1
  86. package/dist/healthybowl/pages/crops/FieldDetailsPage.js +871 -846
  87. package/dist/healthybowl/pages/crops/FieldDetailsPage.js.map +1 -1
  88. package/dist/healthybowl/pages/crops/HarvestDetailsPage.js +376 -334
  89. package/dist/healthybowl/pages/crops/HarvestDetailsPage.js.map +1 -1
  90. package/dist/healthybowl/pages/distribution/CsaPlanDetailPage.js +415 -188
  91. package/dist/healthybowl/pages/distribution/CsaPlanDetailPage.js.map +1 -1
  92. package/dist/healthybowl/pages/distribution/labels.js +10 -2
  93. package/dist/healthybowl/pages/distribution/labels.js.map +1 -1
  94. package/dist/healthybowl/pages/farm/FarmProfilePage.js +1 -0
  95. package/dist/healthybowl/pages/farm/FarmProfilePage.js.map +1 -1
  96. package/dist/healthybowl/pages/field-capture/CaptureObservationForm.js +8 -8
  97. package/dist/healthybowl/pages/fields/FieldMapPage.js +2 -0
  98. package/dist/healthybowl/pages/fields/FieldMapPage.js.map +1 -1
  99. package/dist/healthybowl/pages/financial/FinancialReportsPage.js +92 -107
  100. package/dist/healthybowl/pages/financial/FinancialReportsPage.js.map +1 -1
  101. package/dist/healthybowl/pages/government-schemes/ApplicationTrackingPage.js +228 -188
  102. package/dist/healthybowl/pages/government-schemes/ApplicationTrackingPage.js.map +1 -1
  103. package/dist/healthybowl/pages/government-schemes/SchemeDetailsPage.js +261 -191
  104. package/dist/healthybowl/pages/government-schemes/SchemeDetailsPage.js.map +1 -1
  105. package/dist/healthybowl/pages/government-schemes/schemeApplicationTransitions.js +49 -0
  106. package/dist/healthybowl/pages/government-schemes/schemeApplicationTransitions.js.map +1 -0
  107. package/dist/healthybowl/pages/government-schemes/schemeDocumentSlots.js +48 -0
  108. package/dist/healthybowl/pages/government-schemes/schemeDocumentSlots.js.map +1 -0
  109. package/dist/healthybowl/pages/government-schemes/useSchemeApplicationTransition.js +54 -0
  110. package/dist/healthybowl/pages/government-schemes/useSchemeApplicationTransition.js.map +1 -0
  111. package/dist/healthybowl/pages/inputs-insurance/InputsInsuranceOverviewPage.js +14 -14
  112. package/dist/healthybowl/pages/inputs-insurance/InputsInsuranceOverviewPage.js.map +1 -1
  113. package/dist/healthybowl/pages/irrigation/IrrigationPage.js +338 -307
  114. package/dist/healthybowl/pages/irrigation/IrrigationPage.js.map +1 -1
  115. package/dist/healthybowl/pages/livestock/AnimalDepthFormModal.js +126 -102
  116. package/dist/healthybowl/pages/livestock/AnimalDepthFormModal.js.map +1 -1
  117. package/dist/healthybowl/pages/livestock/AnimalDepthPage.js +257 -215
  118. package/dist/healthybowl/pages/livestock/AnimalDepthPage.js.map +1 -1
  119. package/dist/healthybowl/pages/livestock/GrazingPage.js +1 -0
  120. package/dist/healthybowl/pages/livestock/GrazingPage.js.map +1 -1
  121. package/dist/healthybowl/pages/livestock/HerdDepthPage.js +4 -0
  122. package/dist/healthybowl/pages/livestock/HerdDepthPage.js.map +1 -1
  123. package/dist/healthybowl/pages/livestock/PedigreeTree.js +154 -0
  124. package/dist/healthybowl/pages/livestock/PedigreeTree.js.map +1 -0
  125. package/dist/healthybowl/pages/livestock/eidTagInput.js +39 -0
  126. package/dist/healthybowl/pages/livestock/eidTagInput.js.map +1 -0
  127. package/dist/healthybowl/pages/livestock/grazing/RecordGrazingMoveModal.js +8 -9
  128. package/dist/healthybowl/pages/livestock/grazing/RecordGrazingMoveModal.js.map +1 -1
  129. package/dist/healthybowl/pages/livestock/pedigreeLayout.js +68 -0
  130. package/dist/healthybowl/pages/livestock/pedigreeLayout.js.map +1 -0
  131. package/dist/healthybowl/pages/network/ExpertsPage.js +520 -419
  132. package/dist/healthybowl/pages/network/ExpertsPage.js.map +1 -1
  133. package/dist/healthybowl/pages/pest-management/AiPestDetectionPage.js +12 -12
  134. package/dist/healthybowl/pages/pest-management/AiPestDetectionPage.js.map +1 -1
  135. package/dist/healthybowl/pages/terrace/JournalEntryModal.js +165 -165
  136. package/dist/healthybowl/pages/terrace/JournalEntryModal.js.map +1 -1
  137. package/dist/healthybowl/pages/weather/WeatherAlertHistoryPage.js +129 -130
  138. package/dist/healthybowl/pages/weather/WeatherAlertHistoryPage.js.map +1 -1
  139. package/dist/healthybowl/pages/weather/WeatherSettingsPage.js +285 -237
  140. package/dist/healthybowl/pages/weather/WeatherSettingsPage.js.map +1 -1
  141. package/dist/healthybowl/pages/weather/alertDelivery.js +105 -0
  142. package/dist/healthybowl/pages/weather/alertDelivery.js.map +1 -0
  143. package/dist/healthybowl/store/healthybowlStore.js +5 -5
  144. package/dist/healthybowl/utils/icsInspection.js +18 -0
  145. package/dist/healthybowl/utils/icsInspection.js.map +1 -0
  146. package/dist/healthybowl/utils/plantingCapacity.js +10 -10
  147. package/dist/healthybowl/utils/plantingCapacity.js.map +1 -1
  148. package/dist/node_modules/fast-equals/dist/es/index.js +74 -86
  149. package/dist/node_modules/fast-equals/dist/es/index.js.map +1 -1
  150. package/dist/services/assistantApi.js +33 -45
  151. package/dist/services/assistantApi.js.map +1 -1
  152. package/dist/utils/pageContext.js +15 -1
  153. package/dist/utils/pageContext.js.map +1 -1
  154. package/package.json +2 -2
  155. package/dist/components/assistant/AssistantApiCallsConsentDialog.js +0 -33
  156. package/dist/components/assistant/AssistantApiCallsConsentDialog.js.map +0 -1
  157. package/dist/components/assistant/AssistantChatArea.js +0 -451
  158. package/dist/components/assistant/AssistantChatArea.js.map +0 -1
  159. package/dist/components/assistant/AssistantSpokenTurnsNotice.js +0 -2
  160. package/dist/components/assistant/voice/AssistantVoiceSession.js +0 -2
  161. package/dist/components/assistant/voice/VoiceTranscriptDrawer.js +0 -2
  162. package/dist/config/assistantLanguagePair.js +0 -2
  163. package/dist/config/assistantLanguages.js +0 -2
  164. package/dist/healthybowl/components/Modal.js.map +0 -1
  165. package/dist/hooks/useAssistantApiAccess.js +0 -2
  166. package/dist/hooks/useAssistantAttachments.js +0 -2
  167. package/dist/hooks/useAssistantHeartbeat.js +0 -40
  168. package/dist/hooks/useAssistantHeartbeat.js.map +0 -1
  169. package/dist/hooks/useAssistantKeyboardShortcuts.js +0 -37
  170. package/dist/hooks/useAssistantKeyboardShortcuts.js.map +0 -1
  171. package/dist/hooks/useConversationTurns.js +0 -2
  172. package/dist/hooks/useVoiceSession.js +0 -2
  173. package/dist/services/assistantExportService.js +0 -2
  174. package/dist/utils/aiCredits.js +0 -13
  175. package/dist/utils/aiCredits.js.map +0 -1
  176. package/dist/utils/assistantAttachments.js +0 -2
  177. package/dist/utils/assistantContext.js +0 -2
  178. package/dist/utils/assistantPollSchedule.js +0 -2
  179. package/dist/utils/assistantTransportErrors.js +0 -2
  180. package/dist/utils/assistantTurnState.js +0 -2
  181. package/dist/utils/captionText.js +0 -2
  182. package/dist/utils/pendingWrite.js +0 -2
  183. package/dist/utils/quotaUtils.js +0 -2
  184. package/dist/utils/sandboxReadiness.js +0 -2
  185. package/dist/utils/voiceTranscript.js +0 -2
  186. package/dist/utils/voiceTurnVisibility.js +0 -2
@@ -1,68 +1,29 @@
1
- import { useAssistantStore as e } from "../../store/assistantStore.js";
2
- import { useAssistantKeyboardShortcuts as t } from "../../hooks/useAssistantKeyboardShortcuts.js";
3
- import { PRODUCT as n } from "../../services/assistantApi.js";
4
- import { useAssistantHeartbeat as r } from "../../hooks/useAssistantHeartbeat.js";
5
- import { describeCurrentPage as i } from "../../utils/pageContext.js";
6
- import { AssistantHeader as a } from "./AssistantHeader.js";
7
- import { ASSISTANT_MODES as o } from "../../types/assistant.js";
8
- import { AssistantChatArea as s } from "./AssistantChatArea.js";
9
- import { AssistantConversationList as c } from "./AssistantConversationList.js";
10
- import { AssistantSpeechProvider as l } from "./AssistantSpeechProvider.js";
11
- import { useEffect as u, useRef as d, useState as f } from "react";
12
- import { jsx as p, jsxs as m } from "react/jsx-runtime";
13
- import { useFilesServiceWarmup as h } from "@burdenoff/fe-libs/storage";
14
- import { useAssistantTr as g } from "@burdenoff/fe-libs/shared/assistant/i18n";
15
- import { AssistantProductProvider as _ } from "@burdenoff/fe-libs/shared/assistant/product";
1
+ import { ASSISTANT_MODES as e } from "../../types/assistant.js";
2
+ import { PRODUCT as t, reportAssistantAiTokenUsage as n } from "../../services/assistantApi.js";
3
+ import { useWorkspaceWriteAccess as r } from "../../hooks/useWorkspaceWriteAccess.js";
4
+ import { describeCurrentPage as i, gatherPageContext as a } from "../../utils/pageContext.js";
5
+ import { buildPromptForMode as o } from "../../utils/assistantPrompt.js";
6
+ import { jsx as s } from "react/jsx-runtime";
7
+ import { AIAssistantPanel as c } from "@burdenoff/fe-libs/shared/assistant/ui/AIAssistantPanel";
8
+ import { AssistantProductProvider as l } from "@burdenoff/fe-libs/shared/assistant/product";
9
+ import { getActorId as u, getWorkspaceId as d } from "@burdenoff/fe-libs/shared/assistant/context";
16
10
  //#region src/components/assistant/AIAssistantPanel.tsx
17
- var v = 1e3, y = ({ onClose: n, visible: o, docked: _, onToggleDock: y }) => {
18
- let b = g(), x = d(null), { conversations: S, activeConversationId: C, conversationListOpen: w, toggleConversationList: T, createConversation: E } = e(), D = S.find((e) => e.id === C);
19
- r(D?.backendSessionId ?? null, D?.mode ?? null, o ?? !0), h(o ?? !0);
20
- let [O, k] = f(i);
21
- return u(() => {
22
- if (o === !1) return;
23
- let e = () => k((e) => {
24
- let t = i();
25
- return t === e ? e : t;
26
- });
27
- e(), window.addEventListener("popstate", e);
28
- let t = window.setInterval(e, v);
29
- return () => {
30
- window.removeEventListener("popstate", e), window.clearInterval(t);
31
- };
32
- }, [o]), t({
33
- panelRef: x,
34
- onClose: n
35
- }), /* @__PURE__ */ p(l, {
36
- visible: o ?? !0,
37
- children: /* @__PURE__ */ m("div", {
38
- ref: x,
39
- className: "relative flex h-full w-full flex-col bg-bg-surface",
40
- role: "complementary",
41
- "aria-label": b("panel.ariaLabel", "AI Assistant"),
42
- "data-testid": "ai-assistant-panel",
43
- tabIndex: -1,
44
- children: [
45
- /* @__PURE__ */ p(a, {
46
- contextLabel: O,
47
- onNewConversation: () => E(),
48
- onOpenHistory: T,
49
- historyOpen: w,
50
- onClose: n,
51
- docked: _,
52
- onToggleDock: y
53
- }),
54
- w && /* @__PURE__ */ p(c, {}),
55
- /* @__PURE__ */ p(s, { visible: o ?? !0 })
56
- ]
11
+ var f = (f) => {
12
+ let p = r(u(), d() || null);
13
+ return /* @__PURE__ */ s(l, {
14
+ product: t,
15
+ modes: e,
16
+ describeCurrentPage: i,
17
+ gatherPageContext: a,
18
+ buildPrompt: o,
19
+ reportTokenUsage: n,
20
+ children: /* @__PURE__ */ s(c, {
21
+ ...f,
22
+ writeAccess: p
57
23
  })
58
24
  });
59
- }, b = (e) => /* @__PURE__ */ p(_, {
60
- product: n,
61
- modes: o,
62
- describeCurrentPage: i,
63
- children: /* @__PURE__ */ p(y, { ...e })
64
- });
25
+ };
65
26
  //#endregion
66
- export { b as AIAssistantPanel };
27
+ export { f as AIAssistantPanel };
67
28
 
68
29
  //# sourceMappingURL=AIAssistantPanel.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"AIAssistantPanel.js","names":[],"sources":["../../../src/components/assistant/AIAssistantPanel.tsx"],"sourcesContent":["/**\n * AI Assistant Panel — top-level component for the in-page assistant.\n *\n * Layout (v2): a fixed identity header (AssistantHeader) with the brand mark,\n * an availability/context subtitle and icon actions (new conversation, history,\n * export, dock, close), an always-visible transcript, and the composer pinned\n * to the bottom. Conversation history opens as an overlay drawer over the panel\n * — never as an accordion over the transcript.\n *\n * The external prop contract ({ onClose, visible, docked, onToggleDock }) is\n * unchanged; the sandbox/session/transport logic lives in AssistantChatArea.\n */\n\nimport { useEffect, useRef, useState, type FC } from 'react';\nimport type { PanelProps } from '@burdenoff/fe-libs/shared/plugins';\nimport { useFilesServiceWarmup } from '@burdenoff/fe-libs/storage';\nimport { useAssistantStore } from '@/store/assistantStore';\nimport { useAssistantKeyboardShortcuts } from '@/hooks/useAssistantKeyboardShortcuts';\nimport { useAssistantHeartbeat } from '@/hooks/useAssistantHeartbeat';\nimport { describeCurrentPage } from '@/utils/pageContext';\n\n/**\n * How often the header re-reads the current page while the panel is open.\n *\n * Fast enough that the label is right by the time a user looks at it after\n * navigating, slow enough to be free: one `window.location` read and a string\n * compare, and no render unless the page actually changed.\n */\nconst PAGE_LABEL_POLL_MS = 1_000;\nimport { AssistantHeader } from './AssistantHeader';\nimport { AssistantChatArea } from './AssistantChatArea';\nimport { AssistantConversationList } from './AssistantConversationList';\nimport { AssistantSpeechProvider } from './AssistantSpeechProvider';\nimport { useAssistantTr } from '@burdenoff/fe-libs/shared/assistant/i18n';\nimport { AssistantProductProvider } from '@burdenoff/fe-libs/shared/assistant/product';\nimport { ASSISTANT_MODES } from '@/types/assistant';\nimport { PRODUCT } from '@/services/assistantApi';\n\nexport type AIAssistantPanelProps = PanelProps & {\n /** When provided, renders a dock/float toggle in the header. */\n docked?: boolean;\n onToggleDock?: () => void;\n};\n\nconst AIAssistantPanelInner: FC<AIAssistantPanelProps> = ({ onClose, visible, docked, onToggleDock }) => {\n const tr = useAssistantTr();\n const panelRef = useRef<HTMLDivElement>(null);\n\n const { conversations, activeConversationId, conversationListOpen, toggleConversationList, createConversation } =\n useAssistantStore();\n\n const activeConversation = conversations.find((c) => c.id === activeConversationId);\n const activeSessionId = activeConversation?.backendSessionId ?? null;\n\n // Keep sandbox alive while panel is open\n useAssistantHeartbeat(activeSessionId, activeConversation?.mode ?? null, visible ?? true);\n\n // Wake wspace-files-svc the moment the panel opens. It runs at minReplicas 0 and\n // needs >=51s to bind its port (prisma migrate deploy 26.0s + boot ~25.5s) against\n // the gateway's 15s budget, so the first attachment after any quiet period would\n // otherwise fail outright. Firing here means the container boots while the user is\n // still typing. Best-effort by construction: single-flighted, rate-limited, and it\n // never surfaces an error — see fe-libs `warmFilesService`.\n useFilesServiceWarmup(visible ?? true);\n\n /**\n * Which page the user is on — LIVE, not as it was when the panel first opened.\n *\n * ★ This was `useMemo(() => describeCurrentPage(), [])`. An empty dependency\n * array on a function that reads `window.location` freezes it at first mount,\n * so the header kept naming the page the user opened the assistant from while\n * they navigated the whole app. The label is the one thing on screen that\n * claims the assistant knows where they are, and it was the one thing that\n * stopped being true the moment they moved.\n *\n * (The context actually SENT to the model was always fresh — `gatherPageContext`\n * runs per turn. Only the visible promise was stale, which is the worse half:\n * the user could not tell.)\n *\n * ★ Not `useLocation()`. This panel is exported for a HOST app to mount, and a\n * consumer that mounts it outside a Router would get a thrown hook rather than\n * a stale label — a much worse failure for a caption. Polling `window.location`\n * is router-agnostic and works for pushState navigation, which `popstate`\n * alone misses entirely (it fires only on back/forward).\n *\n * Cheap by construction: only while the panel is visible, and the state is set\n * only when the string actually changes, so an unchanged page costs one string\n * comparison per tick and no render.\n */\n const [contextLabel, setContextLabel] = useState(describeCurrentPage);\n\n useEffect(() => {\n if (visible === false) return;\n const sync = () =>\n setContextLabel((current) => {\n const next = describeCurrentPage();\n return next === current ? current : next;\n });\n sync();\n window.addEventListener('popstate', sync);\n const timer = window.setInterval(sync, PAGE_LABEL_POLL_MS);\n return () => {\n window.removeEventListener('popstate', sync);\n window.clearInterval(timer);\n };\n }, [visible]);\n\n useAssistantKeyboardShortcuts({\n panelRef,\n onClose,\n });\n\n return (\n // Speech output (BOFF-6290) is provided at the panel root so that hiding the\n // panel — not only unmounting it — stops the voice, and so the header toggle\n // and every message's speak button share one playback state.\n <AssistantSpeechProvider visible={visible ?? true}>\n <div\n ref={panelRef}\n className=\"relative flex h-full w-full flex-col bg-bg-surface\"\n role=\"complementary\"\n aria-label={tr('panel.ariaLabel', 'AI Assistant')}\n data-testid=\"ai-assistant-panel\"\n tabIndex={-1}\n >\n <AssistantHeader\n contextLabel={contextLabel}\n onNewConversation={() => createConversation()}\n onOpenHistory={toggleConversationList}\n historyOpen={conversationListOpen}\n onClose={onClose}\n docked={docked}\n onToggleDock={onToggleDock}\n />\n\n {/* Conversation history overlay drawer (switch between chats) */}\n {conversationListOpen && <AssistantConversationList />}\n\n <AssistantChatArea visible={visible ?? true} />\n </div>\n </AssistantSpeechProvider>\n );\n};\n\n/**\n * The panel, with its translation namespace supplied.\n *\n * ★ The provider has to wrap from OUTSIDE rather than sit inside the returned\n * tree: the panel calls `useAssistantTr()` in its own body, so a provider nested\n * in its JSX would be below the consumer and the namespace would read as null —\n * which does not throw, it just renders English. Every string would silently\n * stop being translated while every test still passed.\n *\n * The namespace is the SAME constant the transport uses for\n * `AI_ASSISTANT_PRODUCT`, so \"which product is this?\" has exactly one answer.\n */\nexport const AIAssistantPanel: FC<AIAssistantPanelProps> = (props) => (\n <AssistantProductProvider product={PRODUCT} modes={ASSISTANT_MODES} describeCurrentPage={describeCurrentPage}>\n <AIAssistantPanelInner {...props} />\n </AssistantProductProvider>\n);\n"],"mappings":";;;;;;;;;;;;;;;;AA4BA,IAAM,IAAqB,KAgBrB,KAAoD,EAAE,YAAS,YAAS,WAAQ,sBAAmB;CACvG,IAAM,IAAK,EAAe,GACpB,IAAW,EAAuB,IAAI,GAEtC,EAAE,kBAAe,yBAAsB,yBAAsB,2BAAwB,0BACzF,EAAkB,GAEd,IAAqB,EAAc,MAAM,MAAM,EAAE,OAAO,CAAoB;CAYlF,AARA,EAHwB,GAAoB,oBAAoB,MAGzB,GAAoB,QAAQ,MAAM,KAAW,EAAI,GAQxF,EAAsB,KAAW,EAAI;CA0BrC,IAAM,CAAC,GAAc,KAAmB,EAAS,CAAmB;CAuBpE,OArBA,QAAgB;EACd,IAAI,MAAY,IAAO;EACvB,IAAM,UACJ,GAAiB,MAAY;GAC3B,IAAM,IAAO,EAAoB;GACjC,OAAO,MAAS,IAAU,IAAU;EACtC,CAAC;EAEH,AADA,EAAK,GACL,OAAO,iBAAiB,YAAY,CAAI;EACxC,IAAM,IAAQ,OAAO,YAAY,GAAM,CAAkB;EACzD,aAAa;GAEX,AADA,OAAO,oBAAoB,YAAY,CAAI,GAC3C,OAAO,cAAc,CAAK;EAC5B;CACF,GAAG,CAAC,CAAO,CAAC,GAEZ,EAA8B;EAC5B;EACA;CACF,CAAC,GAMC,kBAAC,GAAD;EAAyB,SAAS,KAAW;YAC3C,kBAAC,OAAD;GACE,KAAK;GACL,WAAU;GACV,MAAK;GACL,cAAY,EAAG,mBAAmB,cAAc;GAChD,eAAY;GACZ,UAAU;aANZ;IAQE,kBAAC,GAAD;KACgB;KACd,yBAAyB,EAAmB;KAC5C,eAAe;KACf,aAAa;KACJ;KACD;KACM;IACf,CAAA;IAGA,KAAwB,kBAAC,GAAD,CAA4B,CAAA;IAErD,kBAAC,GAAD,EAAmB,SAAS,KAAW,GAAO,CAAA;GAC3C;;CACkB,CAAA;AAE7B,GAca,KAA+C,MAC1D,kBAAC,GAAD;CAA0B,SAAS;CAAS,OAAO;CAAsC;WACvF,kBAAC,GAAD,EAAuB,GAAI,EAAQ,CAAA;AACX,CAAA"}
1
+ {"version":3,"file":"AIAssistantPanel.js","names":[],"sources":["../../../src/components/assistant/AIAssistantPanel.tsx"],"sourcesContent":["/**\n * HealthyBowl's AI assistant.\n *\n * ★★ Everything below this file is now shared. The panel, the orchestrator, the\n * transport, the voice session, the composer and every component in them live in\n * `fe-libs/shared/assistant` and answer to any product that mounts them. What is\n * left here is the four things that are genuinely HealthyBowl's, and nothing\n * else:\n *\n * modes which use cases this product offers.\n * describeCurrentPage what to CALL the page the user is on.\n * gatherPageContext the same page, as structured context for the agent.\n * buildPrompt the system preamble — that this is an agronomy\n * assistant, what it may do, and in which language.\n * reportTokenUsage the charge, against HealthyBowl's OWN mutation.\n *\n * Plus `writeAccess`, which is a PROP rather than a fifth seam field: which\n * resource types prove \"this user can write here\" is a product answer, but the\n * product can simply compute it and hand it down. A capability a product can\n * work out for itself does not belong in an interface every product must\n * satisfy.\n *\n * ★ The provider wraps from OUTSIDE the shared panel rather than sitting inside\n * its tree: the panel calls `useAssistantProduct()` and `useAssistantTr()` in its\n * own body, so a provider nested in its JSX would be below the consumer and read\n * as null — which does not throw, it silently renders English with no modes.\n */\n\nimport type { FC } from 'react';\nimport {\n AIAssistantPanel as SharedAIAssistantPanel,\n type AIAssistantPanelProps as SharedProps,\n} from '@burdenoff/fe-libs/shared/assistant/ui/AIAssistantPanel';\nimport { AssistantProductProvider } from '@burdenoff/fe-libs/shared/assistant/product';\nimport { getActorId, getWorkspaceId } from '@burdenoff/fe-libs/shared/assistant/context';\nimport { ASSISTANT_MODES } from '@/types/assistant';\nimport { PRODUCT, reportAssistantAiTokenUsage } from '@/services/assistantApi';\nimport { useWorkspaceWriteAccess } from '@/hooks/useWorkspaceWriteAccess';\nimport { describeCurrentPage, gatherPageContext } from '@/utils/pageContext';\nimport { buildPromptForMode } from '@/utils/assistantPrompt';\n\nexport type AIAssistantPanelProps = Omit<SharedProps, 'writeAccess'>;\n\nexport const AIAssistantPanel: FC<AIAssistantPanelProps> = (props) => {\n /**\n * ★ Advisory, never a gate — see `useWorkspaceWriteAccess`. Measured against\n * prod on 2026-09-02, workspace scopes have no roles provisioned at all, so\n * gating on this would delete Take-action from the product until an ops task\n * lands. It warns before the effort instead of after it, and self-corrects\n * with no code change the moment roles exist.\n */\n const writeAccess = useWorkspaceWriteAccess(getActorId(), getWorkspaceId() || null);\n\n return (\n <AssistantProductProvider\n product={PRODUCT}\n modes={ASSISTANT_MODES}\n describeCurrentPage={describeCurrentPage}\n gatherPageContext={gatherPageContext}\n buildPrompt={buildPromptForMode}\n reportTokenUsage={reportAssistantAiTokenUsage}\n >\n <SharedAIAssistantPanel {...props} writeAccess={writeAccess} />\n </AssistantProductProvider>\n );\n};\n"],"mappings":";;;;;;;;;;AA2CA,IAAa,KAA+C,MAAU;CAQpE,IAAM,IAAc,EAAwB,EAAW,GAAG,EAAe,KAAK,IAAI;CAElF,OACE,kBAAC,GAAD;EACE,SAAS;EACT,OAAO;EACc;EACF;EACnB,aAAa;EACb,kBAAkB;YAElB,kBAAC,GAAD;GAAwB,GAAI;GAAoB;EAAc,CAAA;CACtC,CAAA;AAE9B"}
@@ -1,2 +1 @@
1
- import { AssistantConversationList as e } from "@burdenoff/fe-libs/shared/assistant/ui/AssistantConversationList";
2
- export { e as AssistantConversationList };
1
+ import "@burdenoff/fe-libs/shared/assistant/ui/AssistantConversationList";
@@ -1,2 +1 @@
1
- import { AssistantEmptyState as e } from "@burdenoff/fe-libs/shared/assistant/ui/AssistantEmptyState";
2
- export { e as AssistantEmptyState };
1
+ import "@burdenoff/fe-libs/shared/assistant/ui/AssistantEmptyState";
@@ -1,2 +1 @@
1
- import { AssistantHeader as e } from "@burdenoff/fe-libs/shared/assistant/ui/AssistantHeader";
2
- export { e as AssistantHeader };
1
+ import "@burdenoff/fe-libs/shared/assistant/ui/AssistantHeader";
@@ -1,2 +1 @@
1
- import { AssistantMessageList as e } from "@burdenoff/fe-libs/shared/assistant/ui/AssistantMessageList";
2
- export { e as AssistantMessageList };
1
+ import "@burdenoff/fe-libs/shared/assistant/ui/AssistantMessageList";
@@ -1,2 +1 @@
1
- import { AssistantSpeechProvider as e } from "@burdenoff/fe-libs/shared/assistant/ui/AssistantSpeechProvider";
2
- export { e as AssistantSpeechProvider };
1
+ import "@burdenoff/fe-libs/shared/assistant/ui/AssistantSpeechProvider";
@@ -1,2 +1 @@
1
- import { parseToolActivity as e } from "@burdenoff/fe-libs/shared/assistant/ui/AssistantToolActivity";
2
- export { e as parseToolActivity };
1
+ import "@burdenoff/fe-libs/shared/assistant/ui/AssistantToolActivity";
@@ -1,2 +1 @@
1
- import { AssistantComposer as e } from "@burdenoff/fe-libs/shared/assistant/ui/composer/AssistantComposer";
2
- export { e as AssistantComposer };
1
+ import "@burdenoff/fe-libs/shared/assistant/ui/composer/AssistantComposer";
@@ -1,19 +1,19 @@
1
+ import "./AIAssistantPanel.js";
1
2
  import "./AssistantHeader.js";
2
- import "./AssistantMessageList.js";
3
- import "./AssistantEmptyState.js";
4
- import "./composer/AssistantComposer.js";
5
- import "./AssistantToolActivity.js";
6
- import "./AssistantChatArea.js";
7
3
  import "./AssistantConversationList.js";
8
- import "./AssistantSpeechProvider.js";
9
- import "./AIAssistantPanel.js";
4
+ import "./AssistantEmptyState.js";
10
5
  import "./AssistantMoreMenu.js";
11
6
  import "./AssistantMarkdownRenderer.js";
12
7
  import "./AssistantMessageAttachments.js";
13
8
  import "./AssistantMessageItem.js";
9
+ import "./AssistantMessageList.js";
14
10
  import "./AssistantSpeakButton.js";
15
11
  import "./AssistantAutoSpeakToggle.js";
12
+ import "./AssistantSpeechProvider.js";
13
+ import "./AssistantToolActivity.js";
16
14
  import "./composer/AssistantAttachmentButton.js";
17
15
  import "./composer/AssistantAttachmentChips.js";
16
+ import "./composer/AssistantComposer.js";
18
17
  import "./composer/AssistantModeSelector.js";
19
18
  import "./composer/AssistantVoiceButton.js";
19
+ import "@burdenoff/fe-libs/shared/assistant/ui/AssistantChatArea";
@@ -4,14 +4,15 @@ import { normalizeBasePath as r, setHbFormatLocale as i } from "./utils/helpers.
4
4
  import { ErrorBoundary as a } from "./components/ErrorBoundary.js";
5
5
  import { ConfirmProvider as o } from "./components/ConfirmDialog.js";
6
6
  import { HealthyBowlRoutes as s } from "./HealthyBowlRoutes.js";
7
- import { OfflineSyncProvider as te } from "./offline/OfflineSyncProvider.js";
8
- import { useCallback as ne, useEffect as c } from "react";
7
+ import { OfflineSyncProvider as c } from "./offline/OfflineSyncProvider.js";
8
+ import { HeaderOfflinePill as te } from "./offline/HeaderOfflinePill.js";
9
+ import { useCallback as ne, useEffect as l } from "react";
9
10
  import { useI18n as re } from "@burdenoff/fe-libs/shared/providers/shell/I18nProvider";
10
- import { Award as ie, Banknote as ae, BarChart3 as oe, Bug as se, Cloud as l, CloudUpload as u, DollarSign as d, Factory as f, Fence as p, FlaskConical as m, Globe as h, HardHat as g, Home as _, Landmark as v, Leaf as y, LineChart as b, ListChecks as x, Map as S, Package as C, PawPrint as w, Radio as T, RefreshCw as E, ScanLine as D, ScanSearch as O, ShieldAlert as k, ShieldCheck as A, ShoppingCart as j, Sprout as M, Stethoscope as ce, Tractor as N, UserCheck as P, Users as F, Users2 as I, Wheat as L } from "lucide-react";
11
- import { jsx as R, jsxs as z } from "react/jsx-runtime";
12
- import { FeatureFlagProvider as B, useFeatureFlags as V } from "@burdenoff/fe-libs/shared/feature-flags";
11
+ import { Award as ie, Banknote as ae, BarChart3 as oe, Bug as se, Cloud as u, CloudUpload as d, DollarSign as f, Factory as p, Fence as m, FlaskConical as h, Globe as g, HardHat as _, Home as v, Landmark as y, Leaf as b, LineChart as x, ListChecks as S, Map as C, Package as w, PawPrint as T, Radio as E, RefreshCw as D, ScanLine as O, ScanSearch as k, ShieldAlert as A, ShieldCheck as j, ShoppingCart as M, Sprout as N, Stethoscope as ce, Tractor as P, UserCheck as F, Users as I, Users2 as L, Wheat as R } from "lucide-react";
12
+ import { jsx as z, jsxs as B } from "react/jsx-runtime";
13
+ import { FeatureFlagProvider as V, useFeatureFlags as H } from "@burdenoff/fe-libs/shared/feature-flags";
13
14
  //#region src/healthybowl/HealthyBowlRoot.tsx
14
- var H = /* @__PURE__ */ new Set([]), U = [
15
+ var U = /* @__PURE__ */ new Set([]), W = [
15
16
  ".lucide-arrow-right",
16
17
  ".lucide-arrow-left",
17
18
  ".lucide-chevron-right",
@@ -20,21 +21,21 @@ var H = /* @__PURE__ */ new Set([]), U = [
20
21
  ".lucide-chevrons-left",
21
22
  ".lucide-move-right",
22
23
  ".lucide-move-left"
23
- ].map((e) => `[dir="rtl"] ${e}`).join(",").concat("{transform:scaleX(-1)}"), W = new Set([
24
+ ].map((e) => `[dir="rtl"] ${e}`).join(",").concat("{transform:scaleX(-1)}"), G = new Set([
24
25
  "healthybowl-sustainability",
25
26
  "healthybowl-sustainability-carbon",
26
27
  "healthybowl-sustainability-soil",
27
28
  "healthybowl-sustainability-credits",
28
29
  "healthybowl-sustainability-eudr"
29
30
  ]);
30
- function G(e, t) {
31
- return t ? e : e.filter((e) => !W.has(e.id));
31
+ function le(e, t) {
32
+ return t ? e : e.filter((e) => !G.has(e.id));
32
33
  }
33
34
  var K = (n) => {
34
- let { registerNavItems: B, registerFooterItems: W, basePath: K = "/" } = n, { error: q, getEvaluation: le, isLoading: ue } = V(), J = ee(le(t), ue || q !== null), { t: Y, locale: X } = re();
35
+ let { registerNavItems: V, registerFooterItems: G, basePath: K = "/" } = n, { error: q, getEvaluation: ue, isLoading: de } = H(), J = ee(ue(t), de || q !== null), { t: Y, locale: X } = re();
35
36
  i(X);
36
- let Z = H.has(X) ? "rtl" : "ltr";
37
- c(() => {
37
+ let Z = U.has(X) ? "rtl" : "ltr";
38
+ l(() => {
38
39
  let e = document.documentElement, t = e.getAttribute("dir");
39
40
  return e.setAttribute("dir", Z), () => {
40
41
  t === null ? e.removeAttribute("dir") : e.setAttribute("dir", t);
@@ -44,13 +45,13 @@ var K = (n) => {
44
45
  let n = Y(e);
45
46
  return n === e ? t : n;
46
47
  }, [Y]), $ = (e, t) => (e.endsWith("/") ? e.slice(0, -1) : e) + (t.startsWith("/") ? t : `/${t}`);
47
- return c(() => {
48
- if (B) return B(G([
48
+ return l(() => {
49
+ if (V) return V(le([
49
50
  {
50
51
  id: "healthybowl-dashboard",
51
52
  label: Q("healthybowl.nav.dashboard", "Dashboard"),
52
53
  path: r(K),
53
- icon: /* @__PURE__ */ R(_, { size: 20 }),
54
+ icon: /* @__PURE__ */ z(v, { size: 20 }),
54
55
  order: 1,
55
56
  group: "main"
56
57
  },
@@ -58,7 +59,7 @@ var K = (n) => {
58
59
  id: "healthybowl-farm",
59
60
  label: Q("healthybowl.nav.farm", "My Farm"),
60
61
  path: $(K, "farm"),
61
- icon: /* @__PURE__ */ R(N, { size: 20 }),
62
+ icon: /* @__PURE__ */ z(P, { size: 20 }),
62
63
  order: 2,
63
64
  group: "main"
64
65
  },
@@ -66,7 +67,7 @@ var K = (n) => {
66
67
  id: "healthybowl-tasks",
67
68
  label: Q("healthybowl.nav.tasks", "Tasks"),
68
69
  path: $(K, "tasks"),
69
- icon: /* @__PURE__ */ R(x, { size: 20 }),
70
+ icon: /* @__PURE__ */ z(S, { size: 20 }),
70
71
  order: 3,
71
72
  group: "main"
72
73
  },
@@ -74,7 +75,7 @@ var K = (n) => {
74
75
  id: "healthybowl-crops",
75
76
  label: Q("healthybowl.nav.crops", "Crops"),
76
77
  path: $(K, "crops"),
77
- icon: /* @__PURE__ */ R(L, { size: 20 }),
78
+ icon: /* @__PURE__ */ z(R, { size: 20 }),
78
79
  order: 10,
79
80
  group: "farming"
80
81
  },
@@ -82,7 +83,7 @@ var K = (n) => {
82
83
  id: "healthybowl-livestock",
83
84
  label: Q("healthybowl.nav.livestock", "Livestock"),
84
85
  path: $(K, "livestock"),
85
- icon: /* @__PURE__ */ R(w, { size: 20 }),
86
+ icon: /* @__PURE__ */ z(T, { size: 20 }),
86
87
  order: 11,
87
88
  group: "farming"
88
89
  },
@@ -90,7 +91,7 @@ var K = (n) => {
90
91
  id: "healthybowl-livestock-analytics",
91
92
  label: Q("healthybowl.nav.livestockAnalytics", "Livestock Analytics"),
92
93
  path: $(K, "livestock/analytics"),
93
- icon: /* @__PURE__ */ R(b, { size: 20 }),
94
+ icon: /* @__PURE__ */ z(x, { size: 20 }),
94
95
  order: 11.3,
95
96
  group: "farming"
96
97
  },
@@ -98,7 +99,7 @@ var K = (n) => {
98
99
  id: "healthybowl-grazing",
99
100
  label: Q("healthybowl.nav.grazing", "Grazing"),
100
101
  path: $(K, "livestock/grazing"),
101
- icon: /* @__PURE__ */ R(p, { size: 20 }),
102
+ icon: /* @__PURE__ */ z(m, { size: 20 }),
102
103
  order: 11.4,
103
104
  group: "farming"
104
105
  },
@@ -106,7 +107,7 @@ var K = (n) => {
106
107
  id: "healthybowl-withdrawal-alerts",
107
108
  label: Q("healthybowl.nav.withdrawalAlerts", "Withdrawal Alerts"),
108
109
  path: $(K, "livestock/withdrawal-alerts"),
109
- icon: /* @__PURE__ */ R(k, { size: 20 }),
110
+ icon: /* @__PURE__ */ z(A, { size: 20 }),
110
111
  order: 11.5,
111
112
  group: "farming"
112
113
  },
@@ -114,7 +115,7 @@ var K = (n) => {
114
115
  id: "healthybowl-weather",
115
116
  label: Q("healthybowl.nav.weather", "Weather"),
116
117
  path: $(K, "weather"),
117
- icon: /* @__PURE__ */ R(l, { size: 20 }),
118
+ icon: /* @__PURE__ */ z(u, { size: 20 }),
118
119
  order: 12,
119
120
  group: "farming"
120
121
  },
@@ -122,7 +123,7 @@ var K = (n) => {
122
123
  id: "healthybowl-field-map",
123
124
  label: Q("healthybowl.nav.fieldMap", "Field Map"),
124
125
  path: $(K, "field-map"),
125
- icon: /* @__PURE__ */ R(S, { size: 20 }),
126
+ icon: /* @__PURE__ */ z(C, { size: 20 }),
126
127
  order: 12.5,
127
128
  group: "farming"
128
129
  },
@@ -130,7 +131,7 @@ var K = (n) => {
130
131
  id: "healthybowl-field-capture",
131
132
  label: Q("healthybowl.nav.fieldCapture", "Field Capture"),
132
133
  path: $(K, "field-capture"),
133
- icon: /* @__PURE__ */ R(u, { size: 20 }),
134
+ icon: /* @__PURE__ */ z(d, { size: 20 }),
134
135
  order: 12.6,
135
136
  group: "farming"
136
137
  },
@@ -138,7 +139,7 @@ var K = (n) => {
138
139
  id: "healthybowl-pending-sync",
139
140
  label: Q("healthybowl.nav.pendingSync", "Pending Sync"),
140
141
  path: $(K, "field-capture/pending"),
141
- icon: /* @__PURE__ */ R(E, { size: 20 }),
142
+ icon: /* @__PURE__ */ z(D, { size: 20 }),
142
143
  order: 12.7,
143
144
  group: "farming"
144
145
  },
@@ -146,7 +147,7 @@ var K = (n) => {
146
147
  id: "healthybowl-field-sensors",
147
148
  label: Q("healthybowl.nav.fieldSensors", "Field Sensors"),
148
149
  path: $(K, "field-sensors"),
149
- icon: /* @__PURE__ */ R(T, { size: 20 }),
150
+ icon: /* @__PURE__ */ z(E, { size: 20 }),
150
151
  order: 12.75,
151
152
  group: "farming"
152
153
  },
@@ -154,7 +155,7 @@ var K = (n) => {
154
155
  id: "healthybowl-soil",
155
156
  label: Q("healthybowl.nav.soilHealth", "Soil Health"),
156
157
  path: $(K, "soil"),
157
- icon: /* @__PURE__ */ R(m, { size: 20 }),
158
+ icon: /* @__PURE__ */ z(h, { size: 20 }),
158
159
  order: 13,
159
160
  group: "farming"
160
161
  },
@@ -162,7 +163,7 @@ var K = (n) => {
162
163
  id: "healthybowl-pest",
163
164
  label: Q("healthybowl.nav.pestManagement", "Pest Management"),
164
165
  path: $(K, "pest-management"),
165
- icon: /* @__PURE__ */ R(se, { size: 20 }),
166
+ icon: /* @__PURE__ */ z(se, { size: 20 }),
166
167
  order: 14,
167
168
  group: "farming"
168
169
  },
@@ -170,7 +171,7 @@ var K = (n) => {
170
171
  id: "healthybowl-pest-ai",
171
172
  label: Q("healthybowl.nav.aiPestDetection", "AI Pest Detection"),
172
173
  path: $(K, "pest-management/ai-detection"),
173
- icon: /* @__PURE__ */ R(O, { size: 20 }),
174
+ icon: /* @__PURE__ */ z(k, { size: 20 }),
174
175
  order: 14.5,
175
176
  group: "farming"
176
177
  },
@@ -178,7 +179,7 @@ var K = (n) => {
178
179
  id: "healthybowl-production",
179
180
  label: Q("healthybowl.nav.production", "Production"),
180
181
  path: $(K, "production"),
181
- icon: /* @__PURE__ */ R(f, { size: 20 }),
182
+ icon: /* @__PURE__ */ z(p, { size: 20 }),
182
183
  order: 20,
183
184
  group: "business"
184
185
  },
@@ -186,7 +187,7 @@ var K = (n) => {
186
187
  id: "healthybowl-products",
187
188
  label: Q("healthybowl.nav.products", "Products"),
188
189
  path: $(K, "products"),
189
- icon: /* @__PURE__ */ R(C, { size: 20 }),
190
+ icon: /* @__PURE__ */ z(w, { size: 20 }),
190
191
  order: 21,
191
192
  group: "business"
192
193
  },
@@ -194,7 +195,7 @@ var K = (n) => {
194
195
  id: "healthybowl-marketplace",
195
196
  label: Q("healthybowl.nav.marketplace", "Marketplace"),
196
197
  path: $(K, "marketplace"),
197
- icon: /* @__PURE__ */ R(j, { size: 20 }),
198
+ icon: /* @__PURE__ */ z(M, { size: 20 }),
198
199
  order: 22,
199
200
  group: "business"
200
201
  },
@@ -202,7 +203,7 @@ var K = (n) => {
202
203
  id: "healthybowl-labour",
203
204
  label: Q("healthybowl.nav.labour", "Labour"),
204
205
  path: $(K, "labour"),
205
- icon: /* @__PURE__ */ R(g, { size: 20 }),
206
+ icon: /* @__PURE__ */ z(_, { size: 20 }),
206
207
  order: 22.5,
207
208
  group: "business"
208
209
  },
@@ -210,7 +211,7 @@ var K = (n) => {
210
211
  id: "healthybowl-coop",
211
212
  label: Q("healthybowl.nav.coop", "Co-operative"),
212
213
  path: $(K, "coop"),
213
- icon: /* @__PURE__ */ R(I, { size: 20 }),
214
+ icon: /* @__PURE__ */ z(L, { size: 20 }),
214
215
  order: 22.5,
215
216
  group: "business"
216
217
  },
@@ -218,7 +219,7 @@ var K = (n) => {
218
219
  id: "healthybowl-financial",
219
220
  label: Q("healthybowl.nav.financial", "Financial"),
220
221
  path: $(K, "financial"),
221
- icon: /* @__PURE__ */ R(d, { size: 20 }),
222
+ icon: /* @__PURE__ */ z(f, { size: 20 }),
222
223
  order: 23,
223
224
  group: "business"
224
225
  },
@@ -226,7 +227,7 @@ var K = (n) => {
226
227
  id: "healthybowl-financier",
227
228
  label: Q("healthybowl.nav.financier", "Financier"),
228
229
  path: $(K, "financier"),
229
- icon: /* @__PURE__ */ R(ae, { size: 20 }),
230
+ icon: /* @__PURE__ */ z(ae, { size: 20 }),
230
231
  order: 24,
231
232
  group: "business"
232
233
  },
@@ -234,7 +235,7 @@ var K = (n) => {
234
235
  id: "healthybowl-compliance",
235
236
  label: Q("healthybowl.nav.compliance", "Compliance"),
236
237
  path: $(K, "compliance"),
237
- icon: /* @__PURE__ */ R(A, { size: 20 }),
238
+ icon: /* @__PURE__ */ z(j, { size: 20 }),
238
239
  order: 30,
239
240
  group: "compliance"
240
241
  },
@@ -242,7 +243,7 @@ var K = (n) => {
242
243
  id: "healthybowl-traceability",
243
244
  label: Q("healthybowl.nav.traceability", "Traceability"),
244
245
  path: $(K, "traceability"),
245
- icon: /* @__PURE__ */ R(D, { size: 20 }),
246
+ icon: /* @__PURE__ */ z(O, { size: 20 }),
246
247
  order: 31,
247
248
  group: "compliance"
248
249
  },
@@ -250,7 +251,7 @@ var K = (n) => {
250
251
  id: "healthybowl-sustainability",
251
252
  label: Q("healthybowl.nav.sustainability", "Sustainability"),
252
253
  path: $(K, "sustainability"),
253
- icon: /* @__PURE__ */ R(y, { size: 20 }),
254
+ icon: /* @__PURE__ */ z(b, { size: 20 }),
254
255
  order: 32,
255
256
  group: "compliance"
256
257
  },
@@ -258,7 +259,7 @@ var K = (n) => {
258
259
  id: "healthybowl-sustainability-carbon",
259
260
  label: Q("healthybowl.nav.sustainabilityCarbon", "Carbon & GHG"),
260
261
  path: $(K, "sustainability/carbon"),
261
- icon: /* @__PURE__ */ R(f, { size: 20 }),
262
+ icon: /* @__PURE__ */ z(p, { size: 20 }),
262
263
  order: 32.1,
263
264
  group: "compliance"
264
265
  },
@@ -266,7 +267,7 @@ var K = (n) => {
266
267
  id: "healthybowl-sustainability-soil",
267
268
  label: Q("healthybowl.nav.sustainabilitySoil", "Soil Carbon"),
268
269
  path: $(K, "sustainability/soil-carbon"),
269
- icon: /* @__PURE__ */ R(M, { size: 20 }),
270
+ icon: /* @__PURE__ */ z(N, { size: 20 }),
270
271
  order: 32.2,
271
272
  group: "compliance"
272
273
  },
@@ -274,7 +275,7 @@ var K = (n) => {
274
275
  id: "healthybowl-sustainability-credits",
275
276
  label: Q("healthybowl.nav.sustainabilityCredits", "Carbon Credits"),
276
277
  path: $(K, "sustainability/credits"),
277
- icon: /* @__PURE__ */ R(ie, { size: 20 }),
278
+ icon: /* @__PURE__ */ z(ie, { size: 20 }),
278
279
  order: 32.3,
279
280
  group: "compliance"
280
281
  },
@@ -282,7 +283,7 @@ var K = (n) => {
282
283
  id: "healthybowl-sustainability-eudr",
283
284
  label: Q("healthybowl.nav.sustainabilityEudr", "EUDR Due-Diligence"),
284
285
  path: $(K, "sustainability/eudr"),
285
- icon: /* @__PURE__ */ R(h, { size: 20 }),
286
+ icon: /* @__PURE__ */ z(g, { size: 20 }),
286
287
  order: 32.4,
287
288
  group: "compliance"
288
289
  },
@@ -290,7 +291,7 @@ var K = (n) => {
290
291
  id: "healthybowl-schemes",
291
292
  label: Q("healthybowl.nav.governmentSchemes", "Gov. Schemes"),
292
293
  path: $(K, "government-schemes"),
293
- icon: /* @__PURE__ */ R(v, { size: 20 }),
294
+ icon: /* @__PURE__ */ z(y, { size: 20 }),
294
295
  order: 40,
295
296
  group: "support"
296
297
  },
@@ -298,7 +299,7 @@ var K = (n) => {
298
299
  id: "healthybowl-network",
299
300
  label: Q("healthybowl.nav.network", "Network"),
300
301
  path: $(K, "network"),
301
- icon: /* @__PURE__ */ R(F, { size: 20 }),
302
+ icon: /* @__PURE__ */ z(I, { size: 20 }),
302
303
  order: 41,
303
304
  group: "support"
304
305
  },
@@ -306,7 +307,7 @@ var K = (n) => {
306
307
  id: "healthybowl-analytics",
307
308
  label: Q("healthybowl.nav.analytics", "Analytics"),
308
309
  path: $(K, "analytics"),
309
- icon: /* @__PURE__ */ R(oe, { size: 20 }),
310
+ icon: /* @__PURE__ */ z(oe, { size: 20 }),
310
311
  order: 42,
311
312
  group: "support"
312
313
  },
@@ -314,7 +315,7 @@ var K = (n) => {
314
315
  id: "healthybowl-advisors",
315
316
  label: Q("healthybowl.nav.advisors", "My Advisors"),
316
317
  path: $(K, "advisors"),
317
- icon: /* @__PURE__ */ R(P, { size: 20 }),
318
+ icon: /* @__PURE__ */ z(F, { size: 20 }),
318
319
  order: 43,
319
320
  group: "support"
320
321
  },
@@ -322,34 +323,34 @@ var K = (n) => {
322
323
  id: "healthybowl-consultant",
323
324
  label: Q("healthybowl.nav.consultant", "Consultant"),
324
325
  path: $(K, "consultant"),
325
- icon: /* @__PURE__ */ R(ce, { size: 20 }),
326
+ icon: /* @__PURE__ */ z(ce, { size: 20 }),
326
327
  order: 44,
327
328
  group: "support"
328
329
  }
329
330
  ], J));
330
331
  }, [
331
- B,
332
+ V,
332
333
  K,
333
334
  J,
334
335
  Q
335
- ]), c(() => {
336
- if (W) return W([{
336
+ ]), l(() => {
337
+ if (G) return G([{
337
338
  id: "healthybowl-status",
338
339
  label: Q("healthybowl.footer.ready", "HealthyBowl Ready"),
339
340
  type: "status",
340
341
  order: 10,
341
342
  section: "left"
342
343
  }]);
343
- }, [W, Q]), /* @__PURE__ */ z(e, {
344
+ }, [G, Q]), /* @__PURE__ */ B(e, {
344
345
  ...n,
345
- children: [/* @__PURE__ */ R("style", { children: U }), /* @__PURE__ */ R(a, { children: /* @__PURE__ */ R(o, { children: /* @__PURE__ */ R(te, { children: /* @__PURE__ */ R(s, {}) }) }) })]
346
+ children: [/* @__PURE__ */ z("style", { children: W }), /* @__PURE__ */ z(a, { children: /* @__PURE__ */ z(o, { children: /* @__PURE__ */ B(c, { children: [/* @__PURE__ */ z(te, {}), /* @__PURE__ */ z(s, {})] }) }) })]
346
347
  });
347
- }, q = (e) => /* @__PURE__ */ R(B, {
348
+ }, q = (e) => /* @__PURE__ */ z(V, {
348
349
  workspaceId: e.workspaceId ?? null,
349
350
  gateway: "global",
350
351
  flagKeys: n,
351
352
  defaultEnabled: !0,
352
- children: /* @__PURE__ */ R(K, { ...e })
353
+ children: /* @__PURE__ */ z(K, { ...e })
353
354
  }, e.workspaceId ?? "no-workspace");
354
355
  //#endregion
355
356
  export { q as HealthyBowlRoot };