@burdenoff/microfe-ecoimpacthub 2026.1124.3 → 2026.1201.2

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 (92) hide show
  1. package/dist/ecoimpacthub/EcoImpactHubAdminRoot.js.map +1 -1
  2. package/dist/ecoimpacthub/components/DashboardCustomizerDialog.js +1 -1
  3. package/dist/ecoimpacthub/components/DashboardCustomizerDialog.js.map +1 -1
  4. package/dist/ecoimpacthub/components/EcoDiscussion.js +2 -2
  5. package/dist/ecoimpacthub/components/EcoDiscussion.js.map +1 -1
  6. package/dist/ecoimpacthub/components/EcoTags.js +2 -2
  7. package/dist/ecoimpacthub/components/EcoTags.js.map +1 -1
  8. package/dist/ecoimpacthub/components/EmptyState.d.ts +14 -0
  9. package/dist/ecoimpacthub/components/EmptyState.js +36 -16
  10. package/dist/ecoimpacthub/components/EmptyState.js.map +1 -1
  11. package/dist/ecoimpacthub/components/EvidenceUpload.js +2 -2
  12. package/dist/ecoimpacthub/components/EvidenceUpload.js.map +1 -1
  13. package/dist/ecoimpacthub/components/FilterTabs.js +1 -1
  14. package/dist/ecoimpacthub/components/FilterTabs.js.map +1 -1
  15. package/dist/ecoimpacthub/components/Pagination.js +2 -2
  16. package/dist/ecoimpacthub/components/Pagination.js.map +1 -1
  17. package/dist/ecoimpacthub/components/ai/AiAnomalyPanel.js +5 -5
  18. package/dist/ecoimpacthub/components/ai/AiAnomalyPanel.js.map +1 -1
  19. package/dist/ecoimpacthub/components/ai/AiShared.js +1 -1
  20. package/dist/ecoimpacthub/components/ai/AiShared.js.map +1 -1
  21. package/dist/ecoimpacthub/components/ai/AiThresholdSuggest.js +2 -2
  22. package/dist/ecoimpacthub/components/ai/AiThresholdSuggest.js.map +1 -1
  23. package/dist/ecoimpacthub/components/ai/AiTriageDialog.js +1 -1
  24. package/dist/ecoimpacthub/components/ai/AiTriageDialog.js.map +1 -1
  25. package/dist/ecoimpacthub/pages/DashboardPage.js +4 -4
  26. package/dist/ecoimpacthub/pages/DashboardPage.js.map +1 -1
  27. package/dist/ecoimpacthub/pages/_shared/UseMyLocationButton.js +2 -2
  28. package/dist/ecoimpacthub/pages/_shared/UseMyLocationButton.js.map +1 -1
  29. package/dist/ecoimpacthub/pages/ai/AiOperationsPage.js +6 -6
  30. package/dist/ecoimpacthub/pages/ai/AiOperationsPage.js.map +1 -1
  31. package/dist/ecoimpacthub/pages/carbon/CarbonPage.js +8 -8
  32. package/dist/ecoimpacthub/pages/carbon/CarbonPage.js.map +1 -1
  33. package/dist/ecoimpacthub/pages/carbon/DraftReviewPanel.js +4 -4
  34. package/dist/ecoimpacthub/pages/carbon/DraftReviewPanel.js.map +1 -1
  35. package/dist/ecoimpacthub/pages/carbon/DraftWithAiDialog.js +2 -2
  36. package/dist/ecoimpacthub/pages/carbon/DraftWithAiDialog.js.map +1 -1
  37. package/dist/ecoimpacthub/pages/carbon/SuggestFactorPanel.js +3 -3
  38. package/dist/ecoimpacthub/pages/carbon/SuggestFactorPanel.js.map +1 -1
  39. package/dist/ecoimpacthub/pages/carbonVisuals.js +1 -1
  40. package/dist/ecoimpacthub/pages/carbonVisuals.js.map +1 -1
  41. package/dist/ecoimpacthub/pages/circularity/CircularityPage.js +19 -19
  42. package/dist/ecoimpacthub/pages/circularity/CircularityPage.js.map +1 -1
  43. package/dist/ecoimpacthub/pages/compliance/CompliancePage.js +8 -8
  44. package/dist/ecoimpacthub/pages/compliance/CompliancePage.js.map +1 -1
  45. package/dist/ecoimpacthub/pages/credits/CreditsPage.js.map +1 -1
  46. package/dist/ecoimpacthub/pages/ehs/EhsPage.js +10 -10
  47. package/dist/ecoimpacthub/pages/ehs/EhsPage.js.map +1 -1
  48. package/dist/ecoimpacthub/pages/energy/EnergyPage.js.map +1 -1
  49. package/dist/ecoimpacthub/pages/grants/GrantDetailPage.js +5 -5
  50. package/dist/ecoimpacthub/pages/grants/GrantDetailPage.js.map +1 -1
  51. package/dist/ecoimpacthub/pages/grants/GrantsPage.js +4 -4
  52. package/dist/ecoimpacthub/pages/grants/GrantsPage.js.map +1 -1
  53. package/dist/ecoimpacthub/pages/habitat/HabitatProjectDetailPage.js +4 -4
  54. package/dist/ecoimpacthub/pages/habitat/HabitatProjectDetailPage.js.map +1 -1
  55. package/dist/ecoimpacthub/pages/habitat/HabitatProjectsPage.js +2 -2
  56. package/dist/ecoimpacthub/pages/habitat/HabitatProjectsPage.js.map +1 -1
  57. package/dist/ecoimpacthub/pages/habitat/StewardshipPage.js +1 -1
  58. package/dist/ecoimpacthub/pages/habitat/StewardshipPage.js.map +1 -1
  59. package/dist/ecoimpacthub/pages/metrics/MetricsPage.js.map +1 -1
  60. package/dist/ecoimpacthub/pages/mobile/FieldQueuePanel.js +29 -26
  61. package/dist/ecoimpacthub/pages/mobile/FieldQueuePanel.js.map +1 -1
  62. package/dist/ecoimpacthub/pages/mobile/MobileDashboardPage.js +3 -3
  63. package/dist/ecoimpacthub/pages/mobile/MobileDashboardPage.js.map +1 -1
  64. package/dist/ecoimpacthub/pages/mobile/MobileRecordObservationPage.js +4 -4
  65. package/dist/ecoimpacthub/pages/mobile/MobileRecordObservationPage.js.map +1 -1
  66. package/dist/ecoimpacthub/pages/mobile/MobileShell.js +1 -1
  67. package/dist/ecoimpacthub/pages/mobile/MobileShell.js.map +1 -1
  68. package/dist/ecoimpacthub/pages/monitoring/MonitoringPage.js +7 -7
  69. package/dist/ecoimpacthub/pages/monitoring/MonitoringPage.js.map +1 -1
  70. package/dist/ecoimpacthub/pages/observations/ObservationsPage.js +3 -3
  71. package/dist/ecoimpacthub/pages/observations/ObservationsPage.js.map +1 -1
  72. package/dist/ecoimpacthub/pages/products/ProductFootprintPage.js +127 -127
  73. package/dist/ecoimpacthub/pages/products/ProductFootprintPage.js.map +1 -1
  74. package/dist/ecoimpacthub/pages/reports/ReportDetailPage.js +10 -10
  75. package/dist/ecoimpacthub/pages/reports/ReportDetailPage.js.map +1 -1
  76. package/dist/ecoimpacthub/pages/reports/ReportsPage.js +116 -113
  77. package/dist/ecoimpacthub/pages/reports/ReportsPage.js.map +1 -1
  78. package/dist/ecoimpacthub/pages/satellite/SatellitePage.js +54 -54
  79. package/dist/ecoimpacthub/pages/satellite/SatellitePage.js.map +1 -1
  80. package/dist/ecoimpacthub/pages/sites/SiteDetailPage.js +8 -8
  81. package/dist/ecoimpacthub/pages/sites/SiteDetailPage.js.map +1 -1
  82. package/dist/ecoimpacthub/pages/sites/SitesPage.js +105 -102
  83. package/dist/ecoimpacthub/pages/sites/SitesPage.js.map +1 -1
  84. package/dist/ecoimpacthub/pages/species/SpeciesDetailPage.js +5 -5
  85. package/dist/ecoimpacthub/pages/species/SpeciesDetailPage.js.map +1 -1
  86. package/dist/ecoimpacthub/pages/species/SpeciesPage.js +167 -164
  87. package/dist/ecoimpacthub/pages/species/SpeciesPage.js.map +1 -1
  88. package/dist/ecoimpacthub/pages/suppliers/SuppliersPage.js +135 -135
  89. package/dist/ecoimpacthub/pages/suppliers/SuppliersPage.js.map +1 -1
  90. package/dist/ecoimpacthub/pages/telemetry/TelemetryPage.js +58 -58
  91. package/dist/ecoimpacthub/pages/telemetry/TelemetryPage.js.map +1 -1
  92. package/package.json +6 -2
@@ -6,12 +6,12 @@ import { LoadingView as ee } from "../../components/StateViews.js";
6
6
  import "../../hooks/index.js";
7
7
  import { formatCo2e as i, formatNumber as a, formatPercent as te } from "../../utils/formatters.js";
8
8
  import { useTr as o } from "../../hooks/useTr.js";
9
- import { useEcoArchiveSupplier as s, useEcoCreateSupplier as ne, useEcoCreateSupplierDataRequest as re, useEcoScope3SupplierSummary as ie, useEcoSupplierDataRequests as ae, useEcoSuppliers as oe, useEcoUpdateSupplierDataRequestStatus as se } from "../../hooks/useEcoPlatformModulesApi.js";
10
- import { errorMessageOf as c } from "../../utils/graphqlErrors.js";
11
- import { useState as l } from "react";
12
- import { Building2 as u, CheckCircle2 as ce, Layers as le, Plus as ue, Send as d, Trash2 as f } from "lucide-react";
13
- import { jsx as p, jsxs as m } from "react/jsx-runtime";
14
- import { Button as h, GlassCard as g, Input as _, Label as v } from "@burdenoff/fe-libs/ui";
9
+ import { useEcoArchiveSupplier as ne, useEcoCreateSupplier as re, useEcoCreateSupplierDataRequest as ie, useEcoScope3SupplierSummary as ae, useEcoSupplierDataRequests as oe, useEcoSuppliers as se, useEcoUpdateSupplierDataRequestStatus as ce } from "../../hooks/useEcoPlatformModulesApi.js";
10
+ import { errorMessageOf as s } from "../../utils/graphqlErrors.js";
11
+ import { useState as c } from "react";
12
+ import { Building2 as l, CheckCircle2 as u, Layers as le, Plus as ue, Send as d, Trash2 as de } from "lucide-react";
13
+ import { jsx as f, jsxs as p } from "react/jsx-runtime";
14
+ import { Button as m, GlassCard as h, Input as g, Label as _, ThemedSelect as v } from "@burdenoff/fe-libs/ui";
15
15
  // src/ecoimpacthub/pages/suppliers/SuppliersPage.tsx
16
16
  var y = [
17
17
  "TIER_1",
@@ -20,8 +20,8 @@ var y = [
20
20
  "OTHER"
21
21
  ];
22
22
  function b() {
23
- let b = o(), [x, S] = l("directory"), [C, w] = l(""), [T, E] = l(null), D = oe(C || null), de = ae(), O = ie(), k = ne(), fe = s(), A = re(), j = se(), [M, N] = l(""), [P, F] = l("TIER_1"), [I, L] = l(""), [R, z] = l("purchased_goods"), [B, V] = l(""), [H, U] = l(""), [W, pe] = l(""), [G, me] = l(""), [K, q] = l(""), [J, he] = l("purchased_goods"), [Y, ge] = l("2026-01-01"), [X, _e] = l("2026-12-31"), Z = D.data?.items ?? [], Q = de.data?.items ?? [], $ = O.data, ve = new Map(Z.map((e) => [e.id, e])), ye = async (e) => {
24
- e.preventDefault(), E(null);
23
+ let b = o(), [x, S] = c("directory"), [C, fe] = c(""), [w, T] = c(null), E = se(C || null), D = oe(), O = ae(), k = re(), pe = ne(), A = ie(), j = ce(), [M, N] = c(""), [P, F] = c("TIER_1"), [I, L] = c(""), [R, z] = c("purchased_goods"), [B, V] = c(""), [H, U] = c(""), [W, me] = c(""), [G, he] = c(""), [K, q] = c(""), [J, ge] = c("purchased_goods"), [Y, _e] = c("2026-01-01"), [X, ve] = c("2026-12-31"), Z = E.data?.items ?? [], Q = D.data?.items ?? [], $ = O.data, ye = new Map(Z.map((e) => [e.id, e])), be = async (e) => {
24
+ e.preventDefault(), T(null);
25
25
  try {
26
26
  await k.mutateAsync({
27
27
  name: M.trim(),
@@ -33,10 +33,10 @@ function b() {
33
33
  country: W.trim() || null
34
34
  }), N(""), V(""), U(""), L("");
35
35
  } catch (e) {
36
- E(c(e, "Could not create supplier."));
36
+ T(s(e, "Could not create supplier."));
37
37
  }
38
- }, be = async (e) => {
39
- if (e.preventDefault(), E(null), G && K.trim()) try {
38
+ }, xe = async (e) => {
39
+ if (e.preventDefault(), T(null), G && K.trim()) try {
40
40
  await A.mutateAsync({
41
41
  supplierId: G,
42
42
  title: K.trim(),
@@ -46,68 +46,68 @@ function b() {
46
46
  requestedUnit: "kgCO2e"
47
47
  }), q("");
48
48
  } catch (e) {
49
- E(c(e, "Could not create supplier data request."));
49
+ T(s(e, "Could not create supplier data request."));
50
50
  }
51
51
  };
52
- return D.isLoading && O.isLoading ? /* @__PURE__ */ p(e, {
52
+ return E.isLoading && O.isLoading ? /* @__PURE__ */ f(e, {
53
53
  title: b("ecoSuppliers.title", "Suppliers & Scope 3"),
54
54
  titleGradient: !0,
55
55
  aurora: !0,
56
- children: /* @__PURE__ */ p(ee, { label: "Loading Scope 3 supplier directory…" })
57
- }) : /* @__PURE__ */ p(e, {
56
+ children: /* @__PURE__ */ f(ee, { label: "Loading Scope 3 supplier directory…" })
57
+ }) : /* @__PURE__ */ f(e, {
58
58
  title: b("ecoSuppliers.title", "Suppliers & Scope 3"),
59
59
  description: b("ecoSuppliers.description", "Multi-tier supplier directory, Scope 3 upstream data requests, and value-chain emissions attribution."),
60
60
  titleGradient: !0,
61
61
  aurora: !0,
62
- children: /* @__PURE__ */ m("div", {
62
+ children: /* @__PURE__ */ p("div", {
63
63
  className: "space-y-6",
64
64
  "data-testid": "eco-suppliers-page",
65
65
  children: [
66
- /* @__PURE__ */ m("div", {
66
+ /* @__PURE__ */ p("div", {
67
67
  className: "grid grid-cols-1 gap-4 sm:grid-cols-2 lg:grid-cols-4",
68
68
  children: [
69
- /* @__PURE__ */ p(t, {
70
- icon: /* @__PURE__ */ p(u, { className: "h-5 w-5" }),
69
+ /* @__PURE__ */ f(t, {
70
+ icon: /* @__PURE__ */ f(l, { className: "h-5 w-5" }),
71
71
  value: a($?.totalSuppliers ?? Z.length),
72
72
  label: "Tracked suppliers",
73
- footer: /* @__PURE__ */ m("p", {
73
+ footer: /* @__PURE__ */ p("p", {
74
74
  className: "text-xs text-text-tertiary",
75
75
  children: [$?.engagedSuppliers ?? 0, " engaged"]
76
76
  })
77
77
  }),
78
- /* @__PURE__ */ p(t, {
79
- icon: /* @__PURE__ */ p(le, { className: "h-5 w-5" }),
78
+ /* @__PURE__ */ f(t, {
79
+ icon: /* @__PURE__ */ f(le, { className: "h-5 w-5" }),
80
80
  value: i($?.totalScope3Co2eKg ?? 0),
81
81
  label: "Total Scope 3",
82
82
  featured: !0
83
83
  }),
84
- /* @__PURE__ */ p(t, {
85
- icon: /* @__PURE__ */ p(ce, { className: "h-5 w-5" }),
84
+ /* @__PURE__ */ f(t, {
85
+ icon: /* @__PURE__ */ f(u, { className: "h-5 w-5" }),
86
86
  value: i($?.supplierLinkedCo2eKg ?? 0),
87
87
  label: "Supplier-attributed",
88
- footer: /* @__PURE__ */ m("p", {
88
+ footer: /* @__PURE__ */ p("p", {
89
89
  className: "text-xs text-text-tertiary",
90
90
  children: [te($?.supplierCoveragePct ?? 0), " coverage"]
91
91
  })
92
92
  }),
93
- /* @__PURE__ */ p(t, {
94
- icon: /* @__PURE__ */ p(d, { className: "h-5 w-5" }),
93
+ /* @__PURE__ */ f(t, {
94
+ icon: /* @__PURE__ */ f(d, { className: "h-5 w-5" }),
95
95
  value: a(Q.length),
96
96
  label: "Data requests",
97
- footer: /* @__PURE__ */ m("p", {
97
+ footer: /* @__PURE__ */ p("p", {
98
98
  className: "text-xs text-text-tertiary",
99
99
  children: [Q.filter((e) => e.status === "VERIFIED").length, " verified"]
100
100
  })
101
101
  })
102
102
  ]
103
103
  }),
104
- /* @__PURE__ */ p("div", {
104
+ /* @__PURE__ */ f("div", {
105
105
  className: "flex flex-wrap gap-2",
106
106
  children: [
107
107
  "directory",
108
108
  "requests",
109
109
  "dashboard"
110
- ].map((e) => /* @__PURE__ */ p(h, {
110
+ ].map((e) => /* @__PURE__ */ f(m, {
111
111
  type: "button",
112
112
  size: "sm",
113
113
  variant: x === e ? "default" : "outline",
@@ -115,59 +115,59 @@ function b() {
115
115
  children: e === "directory" ? "Supplier Directory & Tiers" : e === "requests" ? "Data Requests" : "Scope 3 Breakdown"
116
116
  }, e))
117
117
  }),
118
- T && /* @__PURE__ */ p("p", {
118
+ w && /* @__PURE__ */ f("p", {
119
119
  className: "text-sm text-status-error-text",
120
120
  role: "alert",
121
- children: T
121
+ children: w
122
122
  }),
123
- x === "directory" && /* @__PURE__ */ m("div", {
123
+ x === "directory" && /* @__PURE__ */ p("div", {
124
124
  className: "grid grid-cols-1 gap-6 lg:grid-cols-3",
125
- children: [/* @__PURE__ */ m(g, {
125
+ children: [/* @__PURE__ */ p(h, {
126
126
  treatment: "glass",
127
127
  className: "p-5",
128
- children: [/* @__PURE__ */ p("h2", {
128
+ children: [/* @__PURE__ */ f("h2", {
129
129
  className: "text-sm font-semibold text-text-primary",
130
130
  children: "Add Supplier"
131
- }), /* @__PURE__ */ m("form", {
132
- onSubmit: (e) => void ye(e),
131
+ }), /* @__PURE__ */ p("form", {
132
+ onSubmit: (e) => void be(e),
133
133
  className: "mt-3 grid gap-3",
134
134
  children: [
135
- /* @__PURE__ */ m("div", { children: [/* @__PURE__ */ p(v, {
135
+ /* @__PURE__ */ p("div", { children: [/* @__PURE__ */ f(_, {
136
136
  htmlFor: "sup-name",
137
137
  children: "Supplier name"
138
- }), /* @__PURE__ */ p(_, {
138
+ }), /* @__PURE__ */ f(g, {
139
139
  id: "sup-name",
140
140
  value: M,
141
141
  onChange: (e) => N(e.target.value),
142
142
  placeholder: "e.g. Nordic Steel Works",
143
143
  required: !0
144
144
  })] }),
145
- /* @__PURE__ */ m("div", {
145
+ /* @__PURE__ */ p("div", {
146
146
  className: "grid grid-cols-2 gap-2",
147
- children: [/* @__PURE__ */ m("div", { children: [/* @__PURE__ */ p(v, {
147
+ children: [/* @__PURE__ */ p("div", { children: [/* @__PURE__ */ f(_, {
148
148
  htmlFor: "sup-tier",
149
149
  children: "Tier"
150
- }), /* @__PURE__ */ p("select", {
150
+ }), /* @__PURE__ */ f(v, {
151
151
  id: "sup-tier",
152
152
  value: P,
153
153
  onChange: (e) => F(e.target.value),
154
154
  className: "mt-1 w-full rounded-md border border-border-seam bg-bg-surface px-2.5 py-2 text-sm text-text-primary",
155
- children: y.map((e) => /* @__PURE__ */ p("option", {
155
+ children: y.map((e) => /* @__PURE__ */ f("option", {
156
156
  value: e,
157
157
  children: e.replace("_", " ")
158
158
  }, e))
159
- })] }), /* @__PURE__ */ m("div", { children: [/* @__PURE__ */ p(v, {
159
+ })] }), /* @__PURE__ */ p("div", { children: [/* @__PURE__ */ f(_, {
160
160
  htmlFor: "sup-parent",
161
161
  children: "Parent supplier"
162
- }), /* @__PURE__ */ m("select", {
162
+ }), /* @__PURE__ */ p(v, {
163
163
  id: "sup-parent",
164
164
  value: I,
165
165
  onChange: (e) => L(e.target.value),
166
166
  className: "mt-1 w-full rounded-md border border-border-seam bg-bg-surface px-2.5 py-2 text-sm text-text-primary",
167
- children: [/* @__PURE__ */ p("option", {
167
+ children: [/* @__PURE__ */ f("option", {
168
168
  value: "",
169
169
  children: "None (top-level)"
170
- }), Z.map((e) => /* @__PURE__ */ m("option", {
170
+ }), Z.map((e) => /* @__PURE__ */ p("option", {
171
171
  value: e.id,
172
172
  children: [
173
173
  e.name,
@@ -178,97 +178,97 @@ function b() {
178
178
  }, e.id))]
179
179
  })] })]
180
180
  }),
181
- /* @__PURE__ */ m("div", { children: [/* @__PURE__ */ p(v, {
181
+ /* @__PURE__ */ p("div", { children: [/* @__PURE__ */ f(_, {
182
182
  htmlFor: "sup-cat",
183
183
  children: "Upstream Scope 3 category"
184
- }), /* @__PURE__ */ p(_, {
184
+ }), /* @__PURE__ */ f(g, {
185
185
  id: "sup-cat",
186
186
  value: R,
187
187
  onChange: (e) => z(e.target.value),
188
188
  placeholder: "purchased_goods",
189
189
  required: !0
190
190
  })] }),
191
- /* @__PURE__ */ m("div", {
191
+ /* @__PURE__ */ p("div", {
192
192
  className: "grid grid-cols-2 gap-2",
193
- children: [/* @__PURE__ */ m("div", { children: [/* @__PURE__ */ p(v, {
193
+ children: [/* @__PURE__ */ p("div", { children: [/* @__PURE__ */ f(_, {
194
194
  htmlFor: "sup-contact",
195
195
  children: "Contact name"
196
- }), /* @__PURE__ */ p(_, {
196
+ }), /* @__PURE__ */ f(g, {
197
197
  id: "sup-contact",
198
198
  value: B,
199
199
  onChange: (e) => V(e.target.value),
200
200
  placeholder: "Optional"
201
- })] }), /* @__PURE__ */ m("div", { children: [/* @__PURE__ */ p(v, {
201
+ })] }), /* @__PURE__ */ p("div", { children: [/* @__PURE__ */ f(_, {
202
202
  htmlFor: "sup-country",
203
203
  children: "Country"
204
- }), /* @__PURE__ */ p(_, {
204
+ }), /* @__PURE__ */ f(g, {
205
205
  id: "sup-country",
206
206
  value: W,
207
- onChange: (e) => pe(e.target.value),
207
+ onChange: (e) => me(e.target.value),
208
208
  placeholder: "DE / US / IN"
209
209
  })] })]
210
210
  }),
211
- /* @__PURE__ */ m("div", { children: [/* @__PURE__ */ p(v, {
211
+ /* @__PURE__ */ p("div", { children: [/* @__PURE__ */ f(_, {
212
212
  htmlFor: "sup-email",
213
213
  children: "Contact email"
214
- }), /* @__PURE__ */ p(_, {
214
+ }), /* @__PURE__ */ f(g, {
215
215
  id: "sup-email",
216
216
  type: "email",
217
217
  value: H,
218
218
  onChange: (e) => U(e.target.value),
219
219
  placeholder: "sustainability@supplier.com"
220
220
  })] }),
221
- /* @__PURE__ */ m(h, {
221
+ /* @__PURE__ */ p(m, {
222
222
  type: "submit",
223
223
  disabled: k.isPending,
224
- children: [/* @__PURE__ */ p(ue, { className: "mr-1.5 h-4 w-4" }), k.isPending ? "Saving…" : "Register Supplier"]
224
+ children: [/* @__PURE__ */ f(ue, { className: "me-1.5 h-4 w-4" }), k.isPending ? "Saving…" : "Register Supplier"]
225
225
  })
226
226
  ]
227
227
  })]
228
- }), /* @__PURE__ */ m(g, {
228
+ }), /* @__PURE__ */ p(h, {
229
229
  treatment: "glass",
230
230
  className: "p-5 lg:col-span-2",
231
- children: [/* @__PURE__ */ m("div", {
231
+ children: [/* @__PURE__ */ p("div", {
232
232
  className: "mb-3 flex flex-wrap items-center justify-between gap-2",
233
- children: [/* @__PURE__ */ p("h2", {
233
+ children: [/* @__PURE__ */ f("h2", {
234
234
  className: "text-sm font-semibold text-text-primary",
235
235
  children: "Supplier Hierarchy"
236
- }), /* @__PURE__ */ m("select", {
236
+ }), /* @__PURE__ */ p(v, {
237
237
  "aria-label": "Filter by tier",
238
238
  value: C,
239
- onChange: (e) => w(e.target.value),
239
+ onChange: (e) => fe(e.target.value),
240
240
  className: "rounded-md border border-border-seam bg-bg-surface px-2.5 py-1.5 text-xs text-text-primary",
241
- children: [/* @__PURE__ */ p("option", {
241
+ children: [/* @__PURE__ */ f("option", {
242
242
  value: "",
243
243
  children: "All tiers"
244
- }), y.map((e) => /* @__PURE__ */ p("option", {
244
+ }), y.map((e) => /* @__PURE__ */ f("option", {
245
245
  value: e,
246
246
  children: e.replace("_", " ")
247
247
  }, e))]
248
248
  })]
249
- }), Z.length === 0 ? /* @__PURE__ */ p(r, {
250
- icon: /* @__PURE__ */ p(u, { className: "h-10 w-10" }),
249
+ }), Z.length === 0 ? /* @__PURE__ */ f(r, {
250
+ icon: /* @__PURE__ */ f(l, { className: "h-10 w-10" }),
251
251
  title: "No suppliers registered yet",
252
252
  description: "Add Tier 1, Tier 2, or Tier 3 value-chain partners to attribute Scope 3 emissions."
253
- }) : /* @__PURE__ */ p("ul", {
253
+ }) : /* @__PURE__ */ f("ul", {
254
254
  className: "space-y-2.5",
255
255
  children: Z.map((e) => {
256
- let t = e.parentSupplierId ? ve.get(e.parentSupplierId) : null;
257
- return /* @__PURE__ */ m("li", {
256
+ let t = e.parentSupplierId ? ye.get(e.parentSupplierId) : null;
257
+ return /* @__PURE__ */ p("li", {
258
258
  className: "flex flex-wrap items-center justify-between gap-3 rounded-xl border border-border-seam bg-bg-sunken/40 p-3",
259
- children: [/* @__PURE__ */ m("div", {
259
+ children: [/* @__PURE__ */ p("div", {
260
260
  className: "min-w-0",
261
- children: [/* @__PURE__ */ m("div", {
261
+ children: [/* @__PURE__ */ p("div", {
262
262
  className: "flex items-center gap-2",
263
263
  children: [
264
- /* @__PURE__ */ p("p", {
264
+ /* @__PURE__ */ f("p", {
265
265
  className: "truncate text-sm font-semibold text-text-primary",
266
266
  children: e.name
267
267
  }),
268
- /* @__PURE__ */ p(n, { status: e.tier }),
269
- /* @__PURE__ */ p(n, { status: e.status })
268
+ /* @__PURE__ */ f(n, { status: e.tier }),
269
+ /* @__PURE__ */ f(n, { status: e.status })
270
270
  ]
271
- }), /* @__PURE__ */ m("p", {
271
+ }), /* @__PURE__ */ p("p", {
272
272
  className: "mt-0.5 text-xs text-text-secondary",
273
273
  children: [
274
274
  "Category: ",
@@ -277,43 +277,43 @@ function b() {
277
277
  e.country ? ` · ${e.country}` : ""
278
278
  ]
279
279
  })]
280
- }), /* @__PURE__ */ p(h, {
280
+ }), /* @__PURE__ */ f(m, {
281
281
  type: "button",
282
282
  size: "sm",
283
283
  variant: "outline",
284
- onClick: () => void fe.mutateAsync(e.id),
285
- children: /* @__PURE__ */ p(f, { className: "h-3.5 w-3.5" })
284
+ onClick: () => void pe.mutateAsync(e.id),
285
+ children: /* @__PURE__ */ f(de, { className: "h-3.5 w-3.5" })
286
286
  })]
287
287
  }, e.id);
288
288
  })
289
289
  })]
290
290
  })]
291
291
  }),
292
- x === "requests" && /* @__PURE__ */ m("div", {
292
+ x === "requests" && /* @__PURE__ */ p("div", {
293
293
  className: "grid grid-cols-1 gap-6 lg:grid-cols-3",
294
- children: [/* @__PURE__ */ m(g, {
294
+ children: [/* @__PURE__ */ p(h, {
295
295
  treatment: "glass",
296
296
  className: "p-5",
297
- children: [/* @__PURE__ */ p("h2", {
297
+ children: [/* @__PURE__ */ f("h2", {
298
298
  className: "text-sm font-semibold text-text-primary",
299
299
  children: "New Data Request"
300
- }), /* @__PURE__ */ m("form", {
301
- onSubmit: (e) => void be(e),
300
+ }), /* @__PURE__ */ p("form", {
301
+ onSubmit: (e) => void xe(e),
302
302
  className: "mt-3 grid gap-3",
303
303
  children: [
304
- /* @__PURE__ */ m("div", { children: [/* @__PURE__ */ p(v, {
304
+ /* @__PURE__ */ p("div", { children: [/* @__PURE__ */ f(_, {
305
305
  htmlFor: "req-sup",
306
306
  children: "Supplier"
307
- }), /* @__PURE__ */ m("select", {
307
+ }), /* @__PURE__ */ p(v, {
308
308
  id: "req-sup",
309
309
  value: G,
310
- onChange: (e) => me(e.target.value),
310
+ onChange: (e) => he(e.target.value),
311
311
  required: !0,
312
312
  className: "mt-1 w-full rounded-md border border-border-seam bg-bg-surface px-2.5 py-2 text-sm text-text-primary",
313
- children: [/* @__PURE__ */ p("option", {
313
+ children: [/* @__PURE__ */ f("option", {
314
314
  value: "",
315
315
  children: "Select supplier…"
316
- }), Z.map((e) => /* @__PURE__ */ m("option", {
316
+ }), Z.map((e) => /* @__PURE__ */ p("option", {
317
317
  value: e.id,
318
318
  children: [
319
319
  e.name,
@@ -323,75 +323,75 @@ function b() {
323
323
  ]
324
324
  }, e.id))]
325
325
  })] }),
326
- /* @__PURE__ */ m("div", { children: [/* @__PURE__ */ p(v, {
326
+ /* @__PURE__ */ p("div", { children: [/* @__PURE__ */ f(_, {
327
327
  htmlFor: "req-title",
328
328
  children: "Request title"
329
- }), /* @__PURE__ */ p(_, {
329
+ }), /* @__PURE__ */ f(g, {
330
330
  id: "req-title",
331
331
  value: K,
332
332
  onChange: (e) => q(e.target.value),
333
333
  placeholder: "FY2026 Scope 3 Product Emissions",
334
334
  required: !0
335
335
  })] }),
336
- /* @__PURE__ */ m("div", { children: [/* @__PURE__ */ p(v, {
336
+ /* @__PURE__ */ p("div", { children: [/* @__PURE__ */ f(_, {
337
337
  htmlFor: "req-cat",
338
338
  children: "Scope 3 category"
339
- }), /* @__PURE__ */ p(_, {
339
+ }), /* @__PURE__ */ f(g, {
340
340
  id: "req-cat",
341
341
  value: J,
342
- onChange: (e) => he(e.target.value),
342
+ onChange: (e) => ge(e.target.value),
343
343
  required: !0
344
344
  })] }),
345
- /* @__PURE__ */ m("div", {
345
+ /* @__PURE__ */ p("div", {
346
346
  className: "grid grid-cols-2 gap-2",
347
- children: [/* @__PURE__ */ m("div", { children: [/* @__PURE__ */ p(v, {
347
+ children: [/* @__PURE__ */ p("div", { children: [/* @__PURE__ */ f(_, {
348
348
  htmlFor: "req-start",
349
349
  children: "Period start"
350
- }), /* @__PURE__ */ p(_, {
350
+ }), /* @__PURE__ */ f(g, {
351
351
  id: "req-start",
352
352
  type: "date",
353
353
  value: Y,
354
- onChange: (e) => ge(e.target.value)
355
- })] }), /* @__PURE__ */ m("div", { children: [/* @__PURE__ */ p(v, {
354
+ onChange: (e) => _e(e.target.value)
355
+ })] }), /* @__PURE__ */ p("div", { children: [/* @__PURE__ */ f(_, {
356
356
  htmlFor: "req-end",
357
357
  children: "Period end"
358
- }), /* @__PURE__ */ p(_, {
358
+ }), /* @__PURE__ */ f(g, {
359
359
  id: "req-end",
360
360
  type: "date",
361
361
  value: X,
362
- onChange: (e) => _e(e.target.value)
362
+ onChange: (e) => ve(e.target.value)
363
363
  })] })]
364
364
  }),
365
- /* @__PURE__ */ m(h, {
365
+ /* @__PURE__ */ p(m, {
366
366
  type: "submit",
367
367
  disabled: A.isPending,
368
- children: [/* @__PURE__ */ p(d, { className: "mr-1.5 h-4 w-4" }), " Create Request"]
368
+ children: [/* @__PURE__ */ f(d, { className: "me-1.5 h-4 w-4" }), " Create Request"]
369
369
  })
370
370
  ]
371
371
  })]
372
- }), /* @__PURE__ */ m(g, {
372
+ }), /* @__PURE__ */ p(h, {
373
373
  treatment: "glass",
374
374
  className: "p-5 lg:col-span-2",
375
- children: [/* @__PURE__ */ p("h2", {
375
+ children: [/* @__PURE__ */ f("h2", {
376
376
  className: "mb-3 text-sm font-semibold text-text-primary",
377
377
  children: "Supplier Data Requests"
378
- }), Q.length === 0 ? /* @__PURE__ */ p(r, {
379
- icon: /* @__PURE__ */ p(d, { className: "h-10 w-10" }),
378
+ }), Q.length === 0 ? /* @__PURE__ */ f(r, {
379
+ icon: /* @__PURE__ */ f(d, { className: "h-10 w-10" }),
380
380
  title: "No supplier data requests",
381
381
  description: "Send structured GHG emissions questionnaires to suppliers and verify their submissions."
382
- }) : /* @__PURE__ */ p("ul", {
382
+ }) : /* @__PURE__ */ f("ul", {
383
383
  className: "space-y-2.5",
384
- children: Q.map((e) => /* @__PURE__ */ m("li", {
384
+ children: Q.map((e) => /* @__PURE__ */ p("li", {
385
385
  className: "flex flex-wrap items-center justify-between gap-3 rounded-xl border border-border-seam bg-bg-sunken/40 p-3",
386
- children: [/* @__PURE__ */ m("div", {
386
+ children: [/* @__PURE__ */ p("div", {
387
387
  className: "min-w-0",
388
- children: [/* @__PURE__ */ m("div", {
388
+ children: [/* @__PURE__ */ p("div", {
389
389
  className: "flex items-center gap-2",
390
- children: [/* @__PURE__ */ p("p", {
390
+ children: [/* @__PURE__ */ f("p", {
391
391
  className: "truncate text-sm font-semibold text-text-primary",
392
392
  children: e.title
393
- }), /* @__PURE__ */ p(n, { status: e.status })]
394
- }), /* @__PURE__ */ m("p", {
393
+ }), /* @__PURE__ */ f(n, { status: e.status })]
394
+ }), /* @__PURE__ */ p("p", {
395
395
  className: "mt-0.5 text-xs text-text-secondary",
396
396
  children: [
397
397
  e.supplier?.name ?? e.supplierId,
@@ -400,10 +400,10 @@ function b() {
400
400
  e.submittedCo2eKg == null ? "" : ` · Reported: ${i(e.submittedCo2eKg)}`
401
401
  ]
402
402
  })]
403
- }), /* @__PURE__ */ m("div", {
403
+ }), /* @__PURE__ */ p("div", {
404
404
  className: "flex items-center gap-2",
405
405
  children: [
406
- e.status === "DRAFT" && /* @__PURE__ */ p(h, {
406
+ e.status === "DRAFT" && /* @__PURE__ */ f(m, {
407
407
  type: "button",
408
408
  size: "sm",
409
409
  variant: "outline",
@@ -413,7 +413,7 @@ function b() {
413
413
  }),
414
414
  children: "Mark Sent"
415
415
  }),
416
- (e.status === "SENT" || e.status === "IN_PROGRESS") && /* @__PURE__ */ p(h, {
416
+ (e.status === "SENT" || e.status === "IN_PROGRESS") && /* @__PURE__ */ f(m, {
417
417
  type: "button",
418
418
  size: "sm",
419
419
  variant: "outline",
@@ -426,7 +426,7 @@ function b() {
426
426
  }),
427
427
  children: "Record Submission"
428
428
  }),
429
- e.status === "SUBMITTED" && /* @__PURE__ */ p(h, {
429
+ e.status === "SUBMITTED" && /* @__PURE__ */ f(m, {
430
430
  type: "button",
431
431
  size: "sm",
432
432
  onClick: () => void j.mutateAsync({
@@ -444,22 +444,22 @@ function b() {
444
444
  })]
445
445
  })]
446
446
  }),
447
- x === "dashboard" && /* @__PURE__ */ m("div", {
447
+ x === "dashboard" && /* @__PURE__ */ p("div", {
448
448
  className: "grid grid-cols-1 gap-6 lg:grid-cols-2",
449
- children: [/* @__PURE__ */ m(g, {
449
+ children: [/* @__PURE__ */ p(h, {
450
450
  treatment: "glass",
451
451
  className: "p-5",
452
- children: [/* @__PURE__ */ p("h2", {
452
+ children: [/* @__PURE__ */ f("h2", {
453
453
  className: "mb-3 text-sm font-semibold text-text-primary",
454
454
  children: "Scope 3 Emissions by Tier"
455
- }), ($?.byTier ?? []).length === 0 ? /* @__PURE__ */ p("p", {
455
+ }), ($?.byTier ?? []).length === 0 ? /* @__PURE__ */ f("p", {
456
456
  className: "text-xs text-text-tertiary",
457
457
  children: "No tier breakdown available yet."
458
- }) : /* @__PURE__ */ p("ul", {
458
+ }) : /* @__PURE__ */ f("ul", {
459
459
  className: "space-y-2",
460
- children: $?.byTier.map((e) => /* @__PURE__ */ m("li", {
460
+ children: $?.byTier.map((e) => /* @__PURE__ */ p("li", {
461
461
  className: "flex items-center justify-between rounded-lg bg-bg-sunken/50 px-3 py-2 text-sm",
462
- children: [/* @__PURE__ */ m("span", {
462
+ children: [/* @__PURE__ */ p("span", {
463
463
  className: "font-medium text-text-primary",
464
464
  children: [
465
465
  e.tier.replace("_", " "),
@@ -467,36 +467,36 @@ function b() {
467
467
  e.supplierCount,
468
468
  " suppliers)"
469
469
  ]
470
- }), /* @__PURE__ */ p("span", {
470
+ }), /* @__PURE__ */ f("span", {
471
471
  className: "tabular-nums font-semibold text-text-primary",
472
472
  children: i(e.totalCo2eKg)
473
473
  })]
474
474
  }, e.tier))
475
475
  })]
476
- }), /* @__PURE__ */ m(g, {
476
+ }), /* @__PURE__ */ p(h, {
477
477
  treatment: "glass",
478
478
  className: "p-5",
479
- children: [/* @__PURE__ */ p("h2", {
479
+ children: [/* @__PURE__ */ f("h2", {
480
480
  className: "mb-3 text-sm font-semibold text-text-primary",
481
481
  children: "Top Emitting Suppliers"
482
- }), ($?.topSuppliers ?? []).length === 0 ? /* @__PURE__ */ p("p", {
482
+ }), ($?.topSuppliers ?? []).length === 0 ? /* @__PURE__ */ f("p", {
483
483
  className: "text-xs text-text-tertiary",
484
484
  children: "Link Scope 3 carbon entries or verify supplier data requests to see top contributors."
485
- }) : /* @__PURE__ */ p("ul", {
485
+ }) : /* @__PURE__ */ f("ul", {
486
486
  className: "space-y-2",
487
- children: $?.topSuppliers.map((e) => /* @__PURE__ */ m("li", {
487
+ children: $?.topSuppliers.map((e) => /* @__PURE__ */ p("li", {
488
488
  className: "flex items-center justify-between rounded-lg bg-bg-sunken/50 px-3 py-2 text-sm",
489
- children: [/* @__PURE__ */ m("div", { children: [/* @__PURE__ */ p("p", {
489
+ children: [/* @__PURE__ */ p("div", { children: [/* @__PURE__ */ f("p", {
490
490
  className: "font-medium text-text-primary",
491
491
  children: e.supplierName
492
- }), /* @__PURE__ */ m("p", {
492
+ }), /* @__PURE__ */ p("p", {
493
493
  className: "text-xs text-text-tertiary",
494
494
  children: [
495
495
  e.tier.replace("_", " "),
496
496
  " · ",
497
497
  e.upstreamCategory
498
498
  ]
499
- })] }), /* @__PURE__ */ p("span", {
499
+ })] }), /* @__PURE__ */ f("span", {
500
500
  className: "tabular-nums font-semibold text-text-primary",
501
501
  children: i(e.totalCo2eKg)
502
502
  })]