@feedmepos/mf-inventory-portal 1.8.0-dev.18 → 1.8.0-dev.19

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 (118) hide show
  1. package/dist/{App-Djr9dJ9q.js → App-BXDscpMf.js} +9 -9
  2. package/dist/{ApprovalView-VIVSr66P.js → ApprovalView-CbP2H_8q.js} +9 -9
  3. package/dist/{BindingsDialog-NKiZKKA1.js → BindingsDialog-C7OFDUAr.js} +2 -2
  4. package/dist/{BindingsPicker-WLdfNtim.js → BindingsPicker-BQjHQWPl.js} +2 -2
  5. package/dist/{BindingsTable-DGikPjdP.js → BindingsTable-grJZdI5F.js} +4 -4
  6. package/dist/{BulkReceiveRequestPage-GmZ7yxnK.js → BulkReceiveRequestPage-jZtPq5XF.js} +21 -21
  7. package/dist/{ChangeLocationComponent.vue_vue_type_script_setup_true_lang-6n-R2gAL.js → ChangeLocationComponent.vue_vue_type_script_setup_true_lang-DOgwkHnO.js} +1 -1
  8. package/dist/{ClosingDraftView-Biir_xEx.js → ClosingDraftView-UmNAyX_s.js} +19 -19
  9. package/dist/{ClosingHistoryView-ZMXQesn4.js → ClosingHistoryView-CZcOYK98.js} +7 -7
  10. package/dist/{ClosingTemplateView-B-c3FkLX.js → ClosingTemplateView-CP2-ib2S.js} +18 -18
  11. package/dist/{CustomPrintTemplatePreview.vue_vue_type_script_setup_true_lang-D2bp6pW-.js → CustomPrintTemplatePreview.vue_vue_type_script_setup_true_lang-DYZjiuAH.js} +1 -1
  12. package/dist/{DefaultView-D_Jhtw_c.js → DefaultView-DOa4PWSU.js} +2 -2
  13. package/dist/{DeliveryOrderPrintPreview-D5-9lzBd.js → DeliveryOrderPrintPreview-DtFuSUby.js} +2 -2
  14. package/dist/{EmailDialog.vue_vue_type_script_setup_true_lang-DEqUAhaS.js → EmailDialog.vue_vue_type_script_setup_true_lang-CxsxIwZm.js} +23 -23
  15. package/dist/{FeatureCapabilityBadge.vue_vue_type_script_setup_true_lang-CCzJ6Awz.js → FeatureCapabilityBadge.vue_vue_type_script_setup_true_lang-B3mPB7-O.js} +1 -1
  16. package/dist/{FeatureCapabilityGate-iW8fvX19.js → FeatureCapabilityGate-Dp_SfIlO.js} +2 -2
  17. package/dist/{FeaturePageGate.vue_vue_type_script_setup_true_lang-f3Y9lCSv.js → FeaturePageGate.vue_vue_type_script_setup_true_lang-O58GGptu.js} +1 -1
  18. package/dist/{FmDateRangePickerChip.vue_vue_type_script_setup_true_lang-1mVLSzDy.js → FmDateRangePickerChip.vue_vue_type_script_setup_true_lang-CCrEBis5.js} +1 -1
  19. package/dist/{FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-D6jnR8Rx.js → FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-YGOFZ7uY.js} +2 -2
  20. package/dist/{FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-tMoK_Ce8.js → FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-F36jHbKZ.js} +2 -2
  21. package/dist/{FmMultiselectDialog-DP480e0e.js → FmMultiselectDialog-BDCQmCSh.js} +2 -2
  22. package/dist/{FmMultiselectDialog-B8P_qEAQ.js → FmMultiselectDialog-Dd9oKz5m.js} +2 -2
  23. package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-D7pb8F_A.js → FmUnitInput.vue_vue_type_script_setup_true_lang-CUmlLKDV.js} +5 -5
  24. package/dist/{ImportView-BISXn7Th.js → ImportView-CbRrxlrW.js} +6 -6
  25. package/dist/{IngredientsView-C3LrzIuS.js → IngredientsView-Bcxo5AlS.js} +366 -364
  26. package/dist/{IntegrationExplorerView-B_4Af6OW.js → IntegrationExplorerView-C2jsPi_3.js} +6 -6
  27. package/dist/{IntegrationPlatformView-CQUi7sRi.js → IntegrationPlatformView-Cr7Fyt4p.js} +2 -2
  28. package/dist/{IntegrationView-CYkZq_tq.js → IntegrationView-BTcnK-_q.js} +14 -14
  29. package/dist/{InventoryBindingForm-D2s_z-6Q.js → InventoryBindingForm-e1rSW4FA.js} +1 -1
  30. package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-DXsyVclI.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-BjDz4LFE.js} +4 -4
  31. package/dist/{InventoryBindingSummary-BOBGDwSm.js → InventoryBindingSummary-CAGMRuy4.js} +1 -1
  32. package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-gAd41m7W.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-eygCK9vN.js} +2 -2
  33. package/dist/{ProductionRunDetailPage-COncuigP.js → ProductionRunDetailPage-CQz-U7Sw.js} +145 -144
  34. package/dist/{ProductionRunLifecycleDialogs.vue_vue_type_script_setup_true_lang-B3PSF7-H.js → ProductionRunLifecycleDialogs.vue_vue_type_script_setup_true_lang-BtnKFZy2.js} +1652 -1710
  35. package/dist/{ProductionRunPage-RUkgXlmL.js → ProductionRunPage-BZnmoyLo.js} +40 -39
  36. package/dist/{PublishView-B0QVNasT.js → PublishView-BJFoRmsD.js} +3 -3
  37. package/dist/{PurchaseOrderPrintPreview-CbjbKRS2.js → PurchaseOrderPrintPreview-BQExGk_A.js} +2 -2
  38. package/dist/{ReceiveRequestView-DAiOgbUO.js → ReceiveRequestView-C4XUYhl5.js} +13 -13
  39. package/dist/{RecipeView-B-Qr9p-i.js → RecipeView-Bd5--ENI.js} +16 -16
  40. package/dist/{SettingsView-BnWul5uf.js → SettingsView-BDogzqxV.js} +7 -7
  41. package/dist/{StockView-raj4WifG.js → StockView-BCWwamwk.js} +21 -21
  42. package/dist/{SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-CYLgevQO.js → SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-Ce82k1-V.js} +1 -1
  43. package/dist/{SupplierView-CxAwhXEg.js → SupplierView-DRSh4m07.js} +13 -13
  44. package/dist/{SurchargeView-B7R7_JVv.js → SurchargeView-gNIDCY22.js} +7 -7
  45. package/dist/{SystemTrailDialog.vue_vue_type_script_setup_true_lang-CrYxhm0y.js → SystemTrailDialog.vue_vue_type_script_setup_true_lang-DrP1vAZX.js} +2 -2
  46. package/dist/{TemplatePublishDialog.vue_vue_type_script_setup_true_lang-BSglNZaK.js → TemplatePublishDialog.vue_vue_type_script_setup_true_lang-Cxpc2Wtp.js} +1 -1
  47. package/dist/{TransferDetails.vue_vue_type_script_setup_true_lang-CoOidQMw.js → TransferDetails.vue_vue_type_script_setup_true_lang-D4kpyIAQ.js} +21 -21
  48. package/dist/{TransferTemplateView-BXu5OhXF.js → TransferTemplateView-adEB_aZg.js} +19 -19
  49. package/dist/{UnitCostHistoryView-BAfxgkjF.js → UnitCostHistoryView-ClgafUAg.js} +4 -4
  50. package/dist/{UnitDisplayControl.vue_vue_type_script_setup_true_lang-DTS06g9i.js → UnitDisplayControl.vue_vue_type_script_setup_true_lang-DpN-7H9P.js} +4 -4
  51. package/dist/{UnitView-BnCe1kBW.js → UnitView-DU-Kim1r.js} +35 -30
  52. package/dist/{WarehouseView-D3y9EDWW.js → WarehouseView-Dw1xkcrx.js} +8 -8
  53. package/dist/{WastageTemplateView-BShli8bj.js → WastageTemplateView-CQj821yg.js} +15 -15
  54. package/dist/{app-FPg0KzwG.js → app--e70sT_h.js} +23 -19
  55. package/dist/app.d.ts +4 -0
  56. package/dist/app.js +1 -1
  57. package/dist/{closing-template-Db-KNAjB.js → closing-template-i0bDCk-x.js} +1 -1
  58. package/dist/{date2-YICloR2o.js → date2-CXI-d_rQ.js} +1 -1
  59. package/dist/{dayjs.min-CefWSTKK.js → dayjs.min-Ivf4HAC3.js} +1 -1
  60. package/dist/{decimal-CBsXxlpr.js → decimal-d3XWw4d_.js} +2 -2
  61. package/dist/{defineDeepModel-DdUeiux0.js → defineDeepModel-DrQmqGvi.js} +1 -1
  62. package/dist/{duplicate-template-BvMZ2ilL.js → duplicate-template-yVd6JWGz.js} +1 -1
  63. package/dist/{feature-HJuftceg.js → feature-CBrHj9bO.js} +2 -2
  64. package/dist/{format-time-from-id-BUJJn9WM.js → format-time-from-id-DpFUCBGw.js} +1 -1
  65. package/dist/{format-unit-display-vkauUh5a.js → format-unit-display-CICNepRU.js} +12 -12
  66. package/dist/helper/menu-usage-module.d.ts +2 -1
  67. package/dist/{id-to-date-BFOeIS4x.js → id-to-date-BicEvFx1.js} +1 -1
  68. package/dist/{import-export.helper-C48DsrFq.js → import-export.helper-Cy-nm8Ao.js} +5 -5
  69. package/dist/{index-4EWcUZB2.js → index-BfY6L-3r.js} +1 -1
  70. package/dist/{index--e5sOJ5N.js → index-CiWNQMAX.js} +3 -3
  71. package/dist/{index-COy6Gu_M.js → index-W7Q7cZGV.js} +934 -890
  72. package/dist/{lz-string-CX9VutYB.js → lz-string-ClJ0qg4U.js} +1 -1
  73. package/dist/menu-usage-module-Bq_KLsO4.js +74 -0
  74. package/dist/{netsuite-explorer-Czbq3dDh.js → netsuite-explorer-BWrO3KfB.js} +1 -1
  75. package/dist/{netsuite-BOb6Ek6I.js → netsuite-jSt2nlwO.js} +2 -2
  76. package/dist/{predefined-templates-Cb97vyso.js → predefined-templates-DKiqLY6F.js} +1 -1
  77. package/dist/production-run-list-DR1WsaBR.js +61 -0
  78. package/dist/{purchase-order-template-CBjU0dUO.js → purchase-order-template-D-NkhbNh.js} +1 -1
  79. package/dist/{recalculationUtils-CyoKTNie.js → recalculationUtils-Bbe1w-wj.js} +1 -1
  80. package/dist/{row-action.enum-DoY1An1e.js → row-action.enum-C8JhgYiR.js} +1 -1
  81. package/dist/{rules-C23j4F0_.js → rules-CrAeAKSS.js} +3 -3
  82. package/dist/{stock-DClY4hP_.js → stock-B27nWQ5z.js} +2 -2
  83. package/dist/{stock-CN-acijK.js → stock-x072pQVW.js} +1 -1
  84. package/dist/style.css +1 -1
  85. package/dist/{supplier-OCIcWTkA.js → supplier-sh98cdAW.js} +2 -2
  86. package/dist/{surcharge-CCqME8iu.js → surcharge-DsF53Jiz.js} +1 -1
  87. package/dist/tsconfig.app.tsbuildinfo +1 -1
  88. package/dist/{uom-rules-DyRkdoii.js → uom-rules-DuYrxEZK.js} +1 -1
  89. package/dist/{use-ingredient-select-dialog-B9SD-Gfg.js → use-ingredient-select-dialog-DZJPaYJX.js} +2 -2
  90. package/dist/{use-inventory-binding-dialog-Dx8nYVH0.js → use-inventory-binding-dialog-CEr-Nctj.js} +2 -2
  91. package/dist/{use-template-enabled-locations-C7vIH0p-.js → use-template-enabled-locations-h-1Om4op.js} +2 -2
  92. package/dist/{use-transfer-locations-DfZI178Y.js → use-transfer-locations-CuCYcO6G.js} +2 -2
  93. package/dist/{useHrmPermission-BF87diqS.js → useHrmPermission-Db-rrPU-.js} +1 -1
  94. package/dist/{useNavigationMenu-hmVbINp6.js → useNavigationMenu-DJCT15IW.js} +4 -4
  95. package/dist/{useSseClient-D-dJYaOl.js → useSseClient-B2_SvHJ2.js} +1 -1
  96. package/dist/views/closing-draft/composables/use-closing-draft-table.d.ts +1 -1
  97. package/dist/views/ingredients/helper/is-linked-ingredient-error.d.ts +3 -1
  98. package/dist/views/production-run/features/detail/ProductionRunOverviewTab.vue.d.ts +4 -4
  99. package/dist/views/production-run/features/detail/use-production-run-detail.d.ts +8 -8
  100. package/dist/views/production-run/features/lifecycle/CancelRunDialog.vue.d.ts +4 -4
  101. package/dist/views/production-run/features/lifecycle/CloseRunDialog.vue.d.ts +4 -4
  102. package/dist/views/production-run/features/lifecycle/ProductionRunLifecycleDialogs.vue.d.ts +14 -14
  103. package/dist/views/production-run/features/lifecycle/TargetReachedDialog.vue.d.ts +4 -4
  104. package/dist/views/production-run/features/planning/ProductionRunFormDialog.vue.d.ts +4 -4
  105. package/dist/views/production-run/features/planning/ProductionRunPlanner.vue.d.ts +1 -1
  106. package/dist/views/production-run/features/planning/use-production-run-duplicate-sources.d.ts +6 -6
  107. package/dist/views/production-run/shared/model/production-run-list.d.ts +1 -1
  108. package/dist/views/receive-request/composables/use-process-purchase-order.d.ts +1 -1
  109. package/dist/views/receive-request/composables/use-receive-request-form.d.ts +9 -9
  110. package/dist/views/receive-request/composables/use-receive-request-table.d.ts +7 -7
  111. package/dist/views/receive-request-bulk/composables/use-bulk-receive-request-form.d.ts +16 -16
  112. package/dist/views/receive-request-bulk/composables/use-bulk-receive-request-table.d.ts +2 -2
  113. package/dist/views/unit/composables/use-unit-form.spec.d.ts +1 -0
  114. package/dist/{vue-_3HY6f-w.js → vue-Co39mHJn.js} +2 -2
  115. package/dist/{vue-i18n-B8eq3KRC.js → vue-i18n-C2pkD_vQ.js} +365 -365
  116. package/dist/{xlsx.util-BbyZEE1S.js → xlsx.util-CLUjDX2E.js} +2 -2
  117. package/package.json +5 -5
  118. package/dist/menu-usage-module-BdjYEk3s.js +0 -57
@@ -1,12 +1,13 @@
1
- import { defineComponent as K, computed as $, ref as j, resolveComponent as te, createElementBlock as m, openBlock as s, Fragment as H, createElementVNode as n, createBlock as B, createCommentVNode as R, createVNode as P, withCtx as ne, createTextVNode as ie, toDisplayString as p, unref as e, renderList as oe, Teleport as Ce, normalizeClass as U, watch as ae, renderSlot as me, createSlots as Je, nextTick as Ie, toValue as fe, onBeforeUnmount as Xe } from "vue";
1
+ import { defineComponent as K, computed as $, ref as j, resolveComponent as te, createElementBlock as m, openBlock as s, Fragment as H, createElementVNode as n, createBlock as B, createCommentVNode as R, createVNode as P, withCtx as ne, createTextVNode as ie, toDisplayString as p, unref as e, renderList as oe, Teleport as Ce, normalizeClass as U, watch as ae, renderSlot as me, createSlots as Ye, nextTick as Ie, toValue as fe, onBeforeUnmount as Xe } from "vue";
2
2
  import { useRouter as Se } from "vue-router";
3
- import { _ as re, a as et } from "./FeaturePageGate.vue_vue_type_script_setup_true_lang-f3Y9lCSv.js";
4
- import { u as Ae, n as tt } from "./app-FPg0KzwG.js";
3
+ import { _ as re, a as et } from "./FeaturePageGate.vue_vue_type_script_setup_true_lang-O58GGptu.js";
4
+ import { u as Ae, n as tt } from "./app--e70sT_h.js";
5
5
  import { useBreakpoints as nt, useDialog as ot } from "@feedmepos/ui-library";
6
- import { useI18n as J } from "@feedmepos/mf-common";
7
- import { p as at, e as de, c as rt, _ as st, h as Le, v as it, w as Ee, x as De, y as Me, z as lt, A as Ve, B as Ue, C as He, N as le, f as E, D as ze, E as We, F as ut, G as he, H as dt, I as ct, J as pt, K as mt, L as Ge, M as bt, b as vt, O as Ne, Q as yt, R as ft, S as ht, u as Ke, T as gt, U as we, V as _t, W as kt, X as $t, i as xt, a as wt, o as be, Y as Pe, g as It, j as Rt, Z as St, $ as At, a0 as Lt, a1 as Pt, n as Tt, t as qt } from "./ProductionRunLifecycleDialogs.vue_vue_type_script_setup_true_lang-B3PSF7-H.js";
6
+ import { useI18n as Y } from "@feedmepos/mf-common";
7
+ import { c as de, b as at, _ as rt, h as Le, m as st, n as Ee, o as De, r as Me, s as it, q as Ve, t as Ue, v as He, N as le, f as E, w as ze, x as We, y as lt, z as he, A as ut, B as dt, C as ct, D as pt, E as Ge, F as mt, a as bt, G as Ne, H as vt, I as yt, J as ft, u as Ke, K as ht, L as we, M as gt, O as _t, Q as kt, i as $t, p as xt, j as be, R as Pe, d as wt, e as It, S as Rt, T as St, U as At, V as Lt, g as Pt, l as qt } from "./ProductionRunLifecycleDialogs.vue_vue_type_script_setup_true_lang-BtnKFZy2.js";
8
+ import { p as Tt } from "./production-run-list-DR1WsaBR.js";
8
9
  import { _ as ce } from "./_plugin-vue_export-helper-CHgC5LLL.js";
9
- import { g as Oe } from "./rules-C23j4F0_.js";
10
+ import { g as Oe } from "./rules-CrAeAKSS.js";
10
11
  const Bt = { class: "flex flex-col gap-12" }, Ct = {
11
12
  "data-testid": "production-run-header-layout",
12
13
  class: "relative flex flex-col items-stretch gap-16 lg:flex-row lg:items-start"
@@ -42,12 +43,12 @@ const Bt = { class: "flex flex-col gap-12" }, Ct = {
42
43
  },
43
44
  emits: ["action", "print-prepare-sheet"],
44
45
  setup(L, { emit: c }) {
45
- const t = L, _ = c, { t: l } = J(), { breakpoints: u } = nt(), w = $(() => u.value.xs), f = $(() => u.value.sm || u.value.md), x = j(!1), a = $(
46
- () => at(t.run, l("inventory.production.run.list.untitled"))
46
+ const t = L, _ = c, { t: l } = Y(), { breakpoints: u } = nt(), w = $(() => u.value.xs), f = $(() => u.value.sm || u.value.md), x = j(!1), a = $(
47
+ () => Tt(t.run, l("inventory.production.run.list.untitled"))
47
48
  ), h = $(() => {
48
49
  const v = t.run.activityLogs, S = v.length ? v[v.length - 1] : null, y = (S == null ? void 0 : S.performedAt) ?? t.run.createdAt, C = S && S.action !== "create" ? l("inventory.production.run.list.columns.updated") : l("inventory.production.run.detail.created"), N = [`# ${t.run.runNo}`, t.locationName].filter(Boolean);
49
50
  return y && N.push(`${C} ${de(y)}`), N.join(" · ");
50
- }), I = (v) => v === "complete" && Le(t.run) ? l("inventory.production.run.detail.pendingStock.resume") : v === "complete" && t.targetReached ? l("inventory.production.run.detail.action.recordAdditionalOutput") : l(`inventory.production.run.detail.action.${v}`, it[v]), i = $(() => t.dangerActions.length > 0), r = $(
51
+ }), I = (v) => v === "complete" && Le(t.run) ? l("inventory.production.run.detail.pendingStock.resume") : v === "complete" && t.targetReached ? l("inventory.production.run.detail.action.recordAdditionalOutput") : l(`inventory.production.run.detail.action.${v}`, st[v]), i = $(() => t.dangerActions.length > 0), r = $(
51
52
  () => t.dangerActions.map((v) => ({
52
53
  id: v,
53
54
  label: I(v),
@@ -95,7 +96,7 @@ const Bt = { class: "flex flex-col gap-12" }, Ct = {
95
96
  function b(v) {
96
97
  _("action", v);
97
98
  }
98
- function q(v) {
99
+ function T(v) {
99
100
  if (!t.busy) {
100
101
  if (x.value = !1, v === Fe) {
101
102
  _("print-prepare-sheet");
@@ -131,7 +132,7 @@ const Bt = { class: "flex flex-col gap-12" }, Ct = {
131
132
  n("h1", Ot, p(a.value), 1),
132
133
  n("p", Ft, p(h.value), 1),
133
134
  n("div", jt, [
134
- P(rt, {
135
+ P(at, {
135
136
  status: v.run.status,
136
137
  tooltip: v.statusDescription,
137
138
  "accessible-label": D.value,
@@ -155,7 +156,7 @@ const Bt = { class: "flex flex-col gap-12" }, Ct = {
155
156
  key: F.key
156
157
  }, [
157
158
  F.kind === "overflow" ? (s(), m("div", Mt, [
158
- P(st, {
159
+ P(rt, {
159
160
  items: r.value,
160
161
  placement: "bottom-end",
161
162
  "accessible-label": e(l)("inventory.production.run.detail.moreActions"),
@@ -216,7 +217,7 @@ const Bt = { class: "flex flex-col gap-12" }, Ct = {
216
217
  class: "pb-8",
217
218
  items: o.value,
218
219
  "data-testid": "production-run-detail-mobile-menu",
219
- "onUpdate:modelValue": q
220
+ "onUpdate:modelValue": T
220
221
  }, null, 8, ["items"])
221
222
  ]),
222
223
  _: 1
@@ -225,7 +226,7 @@ const Bt = { class: "flex flex-col gap-12" }, Ct = {
225
226
  ], 64);
226
227
  };
227
228
  }
228
- }), Wt = /* @__PURE__ */ ce(zt, [["__scopeId", "data-v-9715608c"]]), Gt = ["aria-labelledby"], Kt = { class: "flex min-h-56 items-center px-16 py-12" }, Qt = ["id"], Zt = ["aria-label"], Yt = { key: 0 }, Jt = { class: "border-y border-fm-color-neutral-gray-200 bg-fm-color-neutral-gray-100" }, Xt = { class: "production-run-table-header h-40 border-b border-fm-color-neutral-gray-200 fm-typo-en-body-sm-600 text-fm-color-typo-secondary" }, en = { class: "text-left px-16 py-8 font-inherit" }, tn = {
229
+ }), Wt = /* @__PURE__ */ ce(zt, [["__scopeId", "data-v-9715608c"]]), Gt = ["aria-labelledby"], Kt = { class: "flex min-h-56 items-center px-16 py-12" }, Qt = ["id"], Zt = ["aria-label"], Jt = { key: 0 }, Yt = { class: "border-y border-fm-color-neutral-gray-200 bg-fm-color-neutral-gray-100" }, Xt = { class: "production-run-table-header h-40 border-b border-fm-color-neutral-gray-200 fm-typo-en-body-sm-600 text-fm-color-typo-secondary" }, en = { class: "text-left px-16 py-8 font-inherit" }, tn = {
229
230
  key: 0,
230
231
  class: "text-right px-16 py-8 font-inherit"
231
232
  }, nn = { class: "px-16 py-12 align-top fm-typo-en-body-md-400 text-fm-color-typo-primary" }, on = { class: "block fm-typo-en-body-md-600" }, an = {
@@ -253,7 +254,7 @@ const Bt = { class: "flex flex-col gap-12" }, Ct = {
253
254
  presentation: { default: "review" }
254
255
  },
255
256
  setup(L) {
256
- const c = L, { t } = J(), _ = j(/* @__PURE__ */ new Set()), l = $(() => c.presentation === "preparing"), u = $(
257
+ const c = L, { t } = Y(), _ = j(/* @__PURE__ */ new Set()), l = $(() => c.presentation === "preparing"), u = $(
257
258
  () => {
258
259
  var o;
259
260
  return /* @__PURE__ */ new Set([
@@ -291,14 +292,14 @@ const Bt = { class: "flex flex-col gap-12" }, Ct = {
291
292
  }
292
293
  const k = $(() => {
293
294
  var D;
294
- const o = Ee(c.run), d = De(c.run), b = Me(c.run), q = {}, O = /* @__PURE__ */ new Set();
295
+ const o = Ee(c.run), d = De(c.run), b = Me(c.run), T = {}, O = /* @__PURE__ */ new Set();
295
296
  for (const v of c.run.plan.items) {
296
- const S = (D = c.run.preparation.issuances.flatMap((C) => C.items).find((C) => C.sku._id === v.skuId)) == null ? void 0 : D.sku.unit, y = S ? lt(v.measurement, S) : null;
297
+ const S = (D = c.run.preparation.issuances.flatMap((C) => C.items).find((C) => C.sku._id === v.skuId)) == null ? void 0 : D.sku.unit, y = S ? it(v.measurement, S) : null;
297
298
  if (!y) {
298
- O.add(v.skuId), q[v.skuId] = null;
299
+ O.add(v.skuId), T[v.skuId] = null;
299
300
  continue;
300
301
  }
301
- O.has(v.skuId) || (q[v.skuId] = (q[v.skuId] ?? 0) + Ve(v.requestedAmount, y));
302
+ O.has(v.skuId) || (T[v.skuId] = (T[v.skuId] ?? 0) + Ve(v.requestedAmount, y));
302
303
  }
303
304
  return Object.keys(o).map((v) => {
304
305
  var S, y;
@@ -306,7 +307,7 @@ const Bt = { class: "flex flex-col gap-12" }, Ct = {
306
307
  skuId: v,
307
308
  name: ((S = c.names[v]) == null ? void 0 : S.name) ?? v,
308
309
  unit: ((y = c.names[v]) == null ? void 0 : y.unit) ?? null,
309
- requested: q[v] ?? null,
310
+ requested: T[v] ?? null,
310
311
  committed: o[v] ?? 0,
311
312
  produced: d[v] ?? 0,
312
313
  remaining: b[v] ?? 0
@@ -338,13 +339,13 @@ const Bt = { class: "flex flex-col gap-12" }, Ct = {
338
339
  n("table", {
339
340
  class: U(["w-full min-w-[44rem]", { "table-fixed": l.value }])
340
341
  }, [
341
- l.value ? (s(), m("colgroup", Yt, d[0] || (d[0] = [
342
+ l.value ? (s(), m("colgroup", Jt, d[0] || (d[0] = [
342
343
  n("col", null, null, -1),
343
344
  n("col", { class: "w-36" }, null, -1),
344
345
  n("col", { class: "w-36" }, null, -1),
345
346
  n("col", { class: "w-36" }, null, -1)
346
347
  ]))) : R("", !0),
347
- n("thead", Jt, [
348
+ n("thead", Yt, [
348
349
  n("tr", Xt, [
349
350
  n("th", en, p(e(t)("inventory.production.run.detail.items.item")), 1),
350
351
  l.value ? R("", !0) : (s(), m("th", tn, p(e(t)("inventory.production.run.detail.items.requested")), 1)),
@@ -381,7 +382,7 @@ const Bt = { class: "flex flex-col gap-12" }, Ct = {
381
382
  controls: h(b.skuId),
382
383
  expanded: _.value.has(b.skuId),
383
384
  testid: `output-ingredient-disclosure-${b.skuId}`,
384
- onToggle: (q) => I(b.skuId)
385
+ onToggle: (T) => I(b.skuId)
385
386
  }, null, 8, ["count", "controls", "expanded", "testid", "onToggle"])) : f(b.skuId) ? (s(), B(He, {
386
387
  key: 1,
387
388
  "item-name": b.name
@@ -463,7 +464,7 @@ const Bt = { class: "flex flex-col gap-12" }, Ct = {
463
464
  }, kn = ["aria-label"], $n = ["aria-label"], xn = { class: "bg-fm-color-neutral-gray-100" }, wn = { class: "h-40 border-b border-fm-color-neutral-gray-200 fm-typo-en-body-sm-600 text-fm-color-typo-secondary" }, In = { class: "whitespace-nowrap px-16 py-8 text-left font-inherit" }, Rn = { class: "whitespace-nowrap px-8 py-8 text-center font-inherit" }, Sn = { class: "whitespace-nowrap px-8 py-8 text-center font-inherit" }, An = { class: "min-w-0 px-16 py-12" }, Ln = ["title"], Pn = {
464
465
  "data-testid": "closed-item-yield",
465
466
  class: "whitespace-nowrap px-8 py-12 text-center tabular-nums"
466
- }, Tn = { class: "block fm-typo-en-body-md-400" }, qn = {
467
+ }, qn = { class: "block fm-typo-en-body-md-400" }, Tn = {
467
468
  "data-testid": "closed-item-variance",
468
469
  class: "whitespace-nowrap px-8 py-12 text-center tabular-nums"
469
470
  }, ee = "inventory.production.run.detail.result", Bn = /* @__PURE__ */ K({
@@ -473,7 +474,7 @@ const Bt = { class: "flex flex-col gap-12" }, Ct = {
473
474
  names: {}
474
475
  },
475
476
  setup(L) {
476
- const c = L, { t } = J(), _ = $(() => {
477
+ const c = L, { t } = Y(), _ = $(() => {
477
478
  const x = Ee(c.run), a = De(c.run);
478
479
  return Object.keys(x).map((h) => {
479
480
  var o, d, b;
@@ -544,7 +545,7 @@ const Bt = { class: "flex flex-col gap-12" }, Ct = {
544
545
  }, p(h.name), 9, Ln)
545
546
  ]),
546
547
  n("td", Pn, [
547
- n("span", Tn, p(e(E)(h.produced, h.unit, { precision: h.precision })), 1),
548
+ n("span", qn, p(e(E)(h.produced, h.unit, { precision: h.precision })), 1),
548
549
  n("span", {
549
550
  "data-testid": "closed-item-rate",
550
551
  class: U([
@@ -553,7 +554,7 @@ const Bt = { class: "flex flex-col gap-12" }, Ct = {
553
554
  ])
554
555
  }, p(u(h.rate)), 3)
555
556
  ]),
556
- n("td", qn, [
557
+ n("td", Tn, [
557
558
  n("strong", {
558
559
  class: U(["block fm-typo-en-body-md-600", h.variance === 0 ? "" : "text-fm-color-typo-warning"])
559
560
  }, p(w(h.variance, h.unit, h.precision)), 3),
@@ -610,9 +611,9 @@ const Bt = { class: "flex flex-col gap-12" }, Ct = {
610
611
  names: {}
611
612
  },
612
613
  setup(L) {
613
- const { t: c } = J();
614
+ const { t: c } = Y();
614
615
  function t(_) {
615
- const l = ut(_);
616
+ const l = lt(_);
616
617
  return l ? c(l) : le;
617
618
  }
618
619
  return (_, l) => (s(), m("div", {
@@ -669,10 +670,10 @@ const Bt = { class: "flex flex-col gap-12" }, Ct = {
669
670
  "data-testid": "batch-stock-pending",
670
671
  role: "status",
671
672
  class: "border-b border-fm-color-border-default bg-fm-color-surface-secondary px-16 py-8 fm-typo-en-body-sm-600 text-fm-color-typo-warning"
672
- }, Yn = {
673
+ }, Jn = {
673
674
  key: 1,
674
675
  class: "flex items-start justify-between gap-12 px-16 pt-12"
675
- }, Jn = { class: "min-w-0" }, Xn = {
676
+ }, Yn = { class: "min-w-0" }, Xn = {
676
677
  "data-testid": "batch-title",
677
678
  class: "fm-typo-en-body-md-600"
678
679
  }, eo = ["title"], to = {
@@ -704,10 +705,10 @@ const Bt = { class: "flex flex-col gap-12" }, Ct = {
704
705
  key: 5,
705
706
  "data-testid": "batch-note",
706
707
  class: "px-16 py-10 border-t border-fm-color-border-default fm-typo-en-body-sm-400 text-fm-color-typo-secondary whitespace-pre-wrap break-words"
707
- }, Po = { class: "fm-typo-en-body-sm-600 text-fm-color-typo-primary" }, To = {
708
+ }, Po = { class: "fm-typo-en-body-sm-600 text-fm-color-typo-primary" }, qo = {
708
709
  key: 6,
709
710
  class: "flex items-center justify-between gap-12 px-16 py-8 border-t border-fm-color-border-default fm-typo-en-body-sm-400 text-fm-color-typo-secondary"
710
- }, qo = { key: 0 }, Re = /* @__PURE__ */ K({
711
+ }, To = { key: 0 }, Re = /* @__PURE__ */ K({
711
712
  __name: "ProductionRunBatchCard",
712
713
  props: {
713
714
  batch: {},
@@ -717,7 +718,7 @@ const Bt = { class: "flex flex-col gap-12" }, Ct = {
717
718
  presentation: { default: "overview" }
718
719
  },
719
720
  setup(L) {
720
- const c = L, { t } = J(), _ = $(() => c.presentation === "output"), l = $(() => {
721
+ const c = L, { t } = Y(), _ = $(() => c.presentation === "output"), l = $(() => {
721
722
  var o;
722
723
  return ((o = c.batch.remark) == null ? void 0 : o.trim()) ?? "";
723
724
  }), u = j(/* @__PURE__ */ new Set()), w = $(() => {
@@ -727,11 +728,11 @@ const Bt = { class: "flex flex-col gap-12" }, Ct = {
727
728
  const y = v.itemSkuId ?? b, C = y && d.has(y) ? y : "unattributed";
728
729
  o.set(C, [...o.get(C) ?? [], v]);
729
730
  }
730
- const q = c.batch.items.flatMap((v) => {
731
+ const T = c.batch.items.flatMap((v) => {
731
732
  const S = o.get(v.skuId);
732
733
  return S != null && S.length ? [{ key: v.skuId, lines: S }] : [];
733
734
  }), O = o.get("unattributed");
734
- return O != null && O.length ? [...q, { key: "unattributed", lines: O }] : q;
735
+ return O != null && O.length ? [...T, { key: "unattributed", lines: O }] : T;
735
736
  });
736
737
  ae(
737
738
  () => c.batch.id,
@@ -783,7 +784,7 @@ const Bt = { class: "flex flex-col gap-12" }, Ct = {
783
784
  );
784
785
  return (o, d) => {
785
786
  var O, D, v, S;
786
- const b = te("FmIcon"), q = te("FmPopover");
787
+ const b = te("FmIcon"), T = te("FmPopover");
787
788
  return s(), m("article", {
788
789
  class: U([
789
790
  "border fm-corner-radius-md overflow-hidden bg-fm-color-surface-primary",
@@ -791,8 +792,8 @@ const Bt = { class: "flex flex-col gap-12" }, Ct = {
791
792
  ])
792
793
  }, [
793
794
  o.batch.stockApplicationStatus === "PENDING" ? (s(), m("p", Zn, p(e(t)("inventory.production.run.detail.pendingStock.title")), 1)) : R("", !0),
794
- _.value ? (s(), m("header", Yn, [
795
- n("div", Jn, [
795
+ _.value ? (s(), m("header", Jn, [
796
+ n("div", Yn, [
796
797
  n("h2", Xn, [
797
798
  me(o.$slots, "title", {}, () => [
798
799
  ie(p(e(t)("inventory.production.run.detail.batch.shortTitle", { index: o.batch.index })), 1)
@@ -814,7 +815,7 @@ const Bt = { class: "flex flex-col gap-12" }, Ct = {
814
815
  o.batch.isBackdated ? (s(), m("span", ao, p(e(t)("inventory.production.run.detail.batch.entered", {
815
816
  at: e(de)(o.batch.recordedAt)
816
817
  })), 1)) : R("", !0),
817
- P(q, { placement: "bottom-start" }, {
818
+ P(T, { placement: "bottom-start" }, {
818
819
  "popover-button": ne(() => [
819
820
  n("button", {
820
821
  type: "button",
@@ -990,7 +991,7 @@ const Bt = { class: "flex flex-col gap-12" }, Ct = {
990
991
  n("span", Po, p(e(t)("inventory.production.run.detail.batch.batchNote")), 1),
991
992
  ie(" " + p(l.value), 1)
992
993
  ])) : R("", !0),
993
- r.value && !_.value ? (s(), m("footer", To, [
994
+ r.value && !_.value ? (s(), m("footer", qo, [
994
995
  n("span", null, p(e(t)("inventory.production.run.detail.batch.ofCommitted", {
995
996
  amount: e(E)(r.value.amount, r.value.unit, {
996
997
  precision: r.value.precision
@@ -999,7 +1000,7 @@ const Bt = { class: "flex flex-col gap-12" }, Ct = {
999
1000
  precision: r.value.precision
1000
1001
  })
1001
1002
  })), 1),
1002
- r.value.percent !== null ? (s(), m("span", qo, p(e(t)("inventory.production.run.detail.batch.cumulative", { percent: r.value.percent })), 1)) : R("", !0)
1003
+ r.value.percent !== null ? (s(), m("span", To, p(e(t)("inventory.production.run.detail.batch.cumulative", { percent: r.value.percent })), 1)) : R("", !0)
1003
1004
  ])) : R("", !0)
1004
1005
  ], 2);
1005
1006
  };
@@ -1028,7 +1029,7 @@ const Bt = { class: "flex flex-col gap-12" }, Ct = {
1028
1029
  },
1029
1030
  emits: ["view-all"],
1030
1031
  setup(L, { emit: c }) {
1031
- const t = L, _ = c, { t: l } = J(), u = j(null), w = $(() => {
1032
+ const t = L, _ = c, { t: l } = Y(), u = j(null), w = $(() => {
1032
1033
  if (!t.batches.length) return null;
1033
1034
  const i = t.batches.length - 1, r = u.value === null || u.value >= t.batches.length ? i : u.value;
1034
1035
  return { batch: t.batches[r], i: r };
@@ -1045,9 +1046,9 @@ const Bt = { class: "flex flex-col gap-12" }, Ct = {
1045
1046
  const r = t.committed;
1046
1047
  if (!i || x.value === null || r === null) return null;
1047
1048
  const k = x.value;
1048
- if (t.batches.some((b) => b.items.some((q) => q.skuId !== k))) return null;
1049
- const o = i.batch.items.reduce((b, q) => b + q.amount, 0), d = t.batches.slice(0, i.i + 1).reduce(
1050
- (b, q) => b + q.items.reduce((O, D) => O + D.amount, 0),
1049
+ if (t.batches.some((b) => b.items.some((T) => T.skuId !== k))) return null;
1050
+ const o = i.batch.items.reduce((b, T) => b + T.amount, 0), d = t.batches.slice(0, i.i + 1).reduce(
1051
+ (b, T) => b + T.items.reduce((O, D) => O + D.amount, 0),
1051
1052
  0
1052
1053
  );
1053
1054
  return { amount: o, cumulative: d, committed: r };
@@ -1103,7 +1104,7 @@ const Bt = { class: "flex flex-col gap-12" }, Ct = {
1103
1104
  names: i.names,
1104
1105
  summary: h.value,
1105
1106
  total: i.batches.length
1106
- }, Je({ _: 2 }, [
1107
+ }, Ye({ _: 2 }, [
1107
1108
  i.batches.length > 1 ? {
1108
1109
  name: "nav",
1109
1110
  fn: ne(() => [
@@ -1135,7 +1136,7 @@ const Bt = { class: "flex flex-col gap-12" }, Ct = {
1135
1136
  ], 64)) : R("", !0)
1136
1137
  ], 64))
1137
1138
  ]),
1138
- P(dt)
1139
+ P(ut)
1139
1140
  ])) : R("", !0)
1140
1141
  ]);
1141
1142
  };
@@ -1150,7 +1151,7 @@ const Bt = { class: "flex flex-col gap-12" }, Ct = {
1150
1151
  names: {}
1151
1152
  },
1152
1153
  setup(L) {
1153
- const { t: c } = J();
1154
+ const { t: c } = Y();
1154
1155
  return (t, _) => (s(), m("div", Uo, [
1155
1156
  t.batches.length ? (s(!0), m(H, { key: 1 }, oe(t.batches, (l) => (s(), B(Re, {
1156
1157
  key: l.id,
@@ -1176,7 +1177,7 @@ const Bt = { class: "flex flex-col gap-12" }, Ct = {
1176
1177
  key: 3,
1177
1178
  "data-testid": "ingredient-issue-card",
1178
1179
  class: "overflow-hidden border border-fm-color-neutral-gray-200 bg-fm-color-surface-primary fm-corner-radius-md"
1179
- }, Yo = ["aria-label"], Jo = ["aria-label"], Xo = { class: "ingredient-ledger__head bg-fm-color-neutral-gray-100" }, ea = { class: "h-40 fm-typo-en-body-sm-600 text-fm-color-typo-secondary" }, ta = { class: "px-16 py-8 text-left" }, na = { class: "whitespace-nowrap px-8 py-8 text-center" }, oa = { class: "whitespace-nowrap px-8 py-8 text-center" }, aa = ["data-testid"], ra = { class: "ingredient-ledger__ingredient col-span-1 min-w-0 px-16 py-8 align-top" }, sa = ["data-testid"], ia = ["title"], la = ["data-testid"], ua = ["data-testid"], da = ["data-testid"], ca = {
1180
+ }, Jo = ["aria-label"], Yo = ["aria-label"], Xo = { class: "ingredient-ledger__head bg-fm-color-neutral-gray-100" }, ea = { class: "h-40 fm-typo-en-body-sm-600 text-fm-color-typo-secondary" }, ta = { class: "px-16 py-8 text-left" }, na = { class: "whitespace-nowrap px-8 py-8 text-center" }, oa = { class: "whitespace-nowrap px-8 py-8 text-center" }, aa = ["data-testid"], ra = { class: "ingredient-ledger__ingredient col-span-1 min-w-0 px-16 py-8 align-top" }, sa = ["data-testid"], ia = ["title"], la = ["data-testid"], ua = ["data-testid"], da = ["data-testid"], ca = {
1180
1181
  key: 0,
1181
1182
  class: "ingredient-ledger__contributors-row"
1182
1183
  }, pa = {
@@ -1200,16 +1201,16 @@ const Bt = { class: "flex flex-col gap-12" }, Ct = {
1200
1201
  unattributedIngredients: {}
1201
1202
  },
1202
1203
  setup(L) {
1203
- const c = L, { t } = J(), _ = j(/* @__PURE__ */ new Set()), l = $(() => {
1204
+ const c = L, { t } = Y(), _ = j(/* @__PURE__ */ new Set()), l = $(() => {
1204
1205
  var r, k, o;
1205
1206
  const i = {};
1206
1207
  for (const [d, b] of Object.entries(c.ingredientContributions ?? {}))
1207
- for (const q of b)
1208
- (i[r = q.skuId] ?? (i[r] = [])).push({
1208
+ for (const T of b)
1209
+ (i[r = T.skuId] ?? (i[r] = [])).push({
1209
1210
  outputSkuId: d,
1210
1211
  outputName: ((o = (k = c.outputNames) == null ? void 0 : k[d]) == null ? void 0 : o.name) ?? d,
1211
- issued: q.issued,
1212
- unit: q.unit
1212
+ issued: T.issued,
1213
+ unit: T.unit
1213
1214
  });
1214
1215
  return i;
1215
1216
  }), u = $(
@@ -1305,7 +1306,7 @@ const Bt = { class: "flex flex-col gap-12" }, Ct = {
1305
1306
  class: "ingredient-ledger__identity-name block max-w-full truncate fm-typo-en-body-md-600",
1306
1307
  title: o.name
1307
1308
  }, p(o.name), 9, ia),
1308
- o.stockAfter !== null && o.stockAfter < 0 ? (s(), B(ct, {
1309
+ o.stockAfter !== null && o.stockAfter < 0 ? (s(), B(dt, {
1309
1310
  key: 0,
1310
1311
  class: "ingredient-ledger__identity-stock",
1311
1312
  testid: `ingredient-stock-${o.skuId}`,
@@ -1322,7 +1323,7 @@ const Bt = { class: "flex flex-col gap-12" }, Ct = {
1322
1323
  "data-testid": `ingredient-stock-${o.skuId}`,
1323
1324
  class: "ingredient-ledger__identity-stock fm-typo-en-body-sm-400 text-fm-color-typo-secondary"
1324
1325
  }, p(e(t)(`${G}.stock`)) + " " + p(I(o)), 9, la)),
1325
- u.value.has(o.skuId) ? (s(), B(pt, {
1326
+ u.value.has(o.skuId) ? (s(), B(ct, {
1326
1327
  key: 2,
1327
1328
  class: "ingredient-ledger__disclosure mt-[2px] w-fit",
1328
1329
  testid: `ingredient-contributor-disclosure-${o.skuId}`,
@@ -1349,7 +1350,7 @@ const Bt = { class: "flex flex-col gap-12" }, Ct = {
1349
1350
  n("td", pa, [
1350
1351
  n("div", ma, [
1351
1352
  n("div", ba, [
1352
- P(mt, {
1353
+ P(pt, {
1353
1354
  id: f(o.skuId),
1354
1355
  role: "list",
1355
1356
  "aria-label": e(t)(`${G}.contributorsFor`, { name: o.name }),
@@ -1361,8 +1362,8 @@ const Bt = { class: "flex flex-col gap-12" }, Ct = {
1361
1362
  ])
1362
1363
  ])) : R("", !0)
1363
1364
  ]))), 128))
1364
- ], 8, Jo)
1365
- ], 8, Yo)
1365
+ ], 8, Yo)
1366
+ ], 8, Jo)
1366
1367
  ])) : (s(), m("p", Qo, p(e(t)(`${G}.noBindings`)), 1)) : (s(), m("p", Ko, p(e(t)(`${G}.snapshotUnavailable`)), 1)),
1367
1368
  (k = i.unattributedIngredients) != null && k.length ? (s(), B(re, {
1368
1369
  key: 4,
@@ -1402,7 +1403,7 @@ const Bt = { class: "flex flex-col gap-12" }, Ct = {
1402
1403
  run: {}
1403
1404
  },
1404
1405
  setup(L) {
1405
- const c = L, { t } = J(), _ = $(
1406
+ const c = L, { t } = Y(), _ = $(
1406
1407
  () => [...c.run.activityLogs].reverse().map((l, u) => {
1407
1408
  var w;
1408
1409
  return {
@@ -1450,10 +1451,10 @@ const Bt = { class: "flex flex-col gap-12" }, Ct = {
1450
1451
  }), Aa = /* @__PURE__ */ ce(Sa, [["__scopeId", "data-v-ea0bca54"]]), La = { class: "production-run-requested-layout grid grid-cols-1 items-start gap-16" }, Pa = {
1451
1452
  "data-testid": "production-run-requested-left",
1452
1453
  class: "flex min-w-0 flex-col gap-16"
1453
- }, Ta = {
1454
+ }, qa = {
1454
1455
  "data-stage-card": "items",
1455
1456
  class: "overflow-hidden border border-fm-color-neutral-gray-200 bg-fm-color-surface-primary fm-corner-radius-md"
1456
- }, qa = { class: "flex min-h-[60px] items-center border-b border-fm-color-neutral-gray-200 px-16 py-12" }, Ba = { class: "inline-flex items-center gap-4 fm-typo-en-body-lg-600 text-fm-color-typo-primary" }, Ca = { "data-output-count": "" }, Na = { class: "grid grid-cols-[minmax(0,1fr)_auto] gap-x-12 px-16 py-12" }, Oa = { class: "fm-typo-en-body-md-600 truncate text-fm-color-typo-primary" }, Fa = {
1457
+ }, Ta = { class: "flex min-h-[60px] items-center border-b border-fm-color-neutral-gray-200 px-16 py-12" }, Ba = { class: "inline-flex items-center gap-4 fm-typo-en-body-lg-600 text-fm-color-typo-primary" }, Ca = { "data-output-count": "" }, Na = { class: "grid grid-cols-[minmax(0,1fr)_auto] gap-x-12 px-16 py-12" }, Oa = { class: "fm-typo-en-body-md-600 truncate text-fm-color-typo-primary" }, Fa = {
1457
1458
  "data-requested-quantity": "",
1458
1459
  class: "fm-typo-en-body-md-600 justify-self-end text-right tabular-nums text-fm-color-typo-primary"
1459
1460
  }, ja = {
@@ -1473,10 +1474,10 @@ const Bt = { class: "flex flex-col gap-12" }, Ct = {
1473
1474
  },
1474
1475
  emits: ["refresh"],
1475
1476
  setup(L, { emit: c }) {
1476
- const t = L, _ = c, { t: l } = J(), u = $(() => new Map(t.items.map((r) => [r.skuId, r]))), w = $(() => {
1477
+ const t = L, _ = c, { t: l } = Y(), u = $(() => new Map(t.items.map((r) => [r.skuId, r]))), w = $(() => {
1477
1478
  var r;
1478
1479
  return new Set(((r = t.run.plan.requirements) == null ? void 0 : r.skippedSkuIds) ?? []);
1479
- }), f = $(() => bt(t.run.plan)), x = j(/* @__PURE__ */ new Set());
1480
+ }), f = $(() => mt(t.run.plan)), x = j(/* @__PURE__ */ new Set());
1480
1481
  ae(
1481
1482
  () => t.run._id,
1482
1483
  () => x.value = /* @__PURE__ */ new Set()
@@ -1495,7 +1496,7 @@ const Bt = { class: "flex flex-col gap-12" }, Ct = {
1495
1496
  })
1496
1497
  ), i = $(
1497
1498
  () => t.run.plan.items.map((r) => {
1498
- const k = u.value.get(r.skuId), o = vt(r.measurement) ? r.measurement : null;
1499
+ const k = u.value.get(r.skuId), o = bt(r.measurement) ? r.measurement : null;
1499
1500
  return {
1500
1501
  skuId: r.skuId,
1501
1502
  name: (k == null ? void 0 : k.name) ?? r.skuId,
@@ -1522,10 +1523,10 @@ const Bt = { class: "flex flex-col gap-12" }, Ct = {
1522
1523
  var o;
1523
1524
  return s(), m("div", La, [
1524
1525
  n("div", Pa, [
1525
- P(yt, {
1526
+ P(vt, {
1526
1527
  instructions: r.run.instructions
1527
1528
  }, null, 8, ["instructions"]),
1528
- P(ft, {
1529
+ P(yt, {
1529
1530
  "data-stage-card": "ingredients",
1530
1531
  mode: "requested",
1531
1532
  rows: r.ingredients,
@@ -1537,8 +1538,8 @@ const Bt = { class: "flex flex-col gap-12" }, Ct = {
1537
1538
  onRefresh: k[0] || (k[0] = (d) => _("refresh"))
1538
1539
  }, null, 8, ["rows", "no-items", "unbound-names", "refreshable", "refreshing", "show-stock-projection"])
1539
1540
  ]),
1540
- n("section", Ta, [
1541
- n("header", qa, [
1541
+ n("section", qa, [
1542
+ n("header", Ta, [
1542
1543
  n("h2", Ba, [
1543
1544
  ie(p(e(l)("inventory.production.run.form.items.title")) + " ", 1),
1544
1545
  n("span", Ca, "(" + p(i.value.length) + ")", 1),
@@ -1551,7 +1552,7 @@ const Bt = { class: "flex flex-col gap-12" }, Ct = {
1551
1552
  ])
1552
1553
  ]),
1553
1554
  (s(!0), m(H, null, oe(i.value, (d) => {
1554
- var b, q;
1555
+ var b, T;
1555
1556
  return s(), m("div", {
1556
1557
  key: d.skuId,
1557
1558
  class: "border-b border-fm-color-neutral-gray-200 last:border-b-0"
@@ -1578,7 +1579,7 @@ const Bt = { class: "flex flex-col gap-12" }, Ct = {
1578
1579
  onToggle: (O) => h(d.skuId)
1579
1580
  }, null, 8, ["count", "controls", "expanded", "onToggle"])) : R("", !0)
1580
1581
  ]),
1581
- x.value.has(d.skuId) && ((q = d.ingredientBreakdown) != null && q.lines.length) ? (s(), B(We, {
1582
+ x.value.has(d.skuId) && ((T = d.ingredientBreakdown) != null && T.lines.length) ? (s(), B(We, {
1582
1583
  key: 0,
1583
1584
  id: a(d.skuId),
1584
1585
  testid: "requested-item-ingredients-list",
@@ -1660,7 +1661,7 @@ const Bt = { class: "flex flex-col gap-12" }, Ct = {
1660
1661
  run: {}
1661
1662
  },
1662
1663
  setup(L) {
1663
- const c = L, { t } = J(), _ = $(() => ht(c.run)), l = $(
1664
+ const c = L, { t } = Y(), _ = $(() => ft(c.run)), l = $(
1664
1665
  () => {
1665
1666
  var u, w;
1666
1667
  return ((w = (u = [...c.run.activityLogs].reverse().find((f) => f.action === "close")) == null ? void 0 : u.remark) == null ? void 0 : w.trim()) || null;
@@ -1781,19 +1782,19 @@ function Ka(L, { leaveOnLocationChange: c = !0 } = {}) {
1781
1782
  const W = a.value;
1782
1783
  (!W || je[M] > je[W]) && (a.value = M);
1783
1784
  }
1784
- const q = $(() => {
1785
+ const T = $(() => {
1785
1786
  var A;
1786
1787
  return ((A = _._currentLocation) == null ? void 0 : A.name) ?? "";
1787
1788
  }), O = $(() => {
1788
1789
  var A;
1789
1790
  return (((A = u.value) == null ? void 0 : A.preparation.issuances.length) ?? 0) > 0;
1790
1791
  }), D = $(
1791
- () => u.value ? gt(u.value) : []
1792
- ), v = $(() => O.value ? D.value.length > 0 || !!u.value && we(u.value) ? ["overview", "output", "ingredients", "activity"] : ["overview", "ingredients", "activity"] : ["overview", "activity"]), S = $(() => !!u.value && !_t(u.value)), y = $(() => u.value && S.value ? kt(u.value) : null), C = $(() => u.value && S.value ? $t(u.value) : null), N = $(
1792
+ () => u.value ? ht(u.value) : []
1793
+ ), v = $(() => O.value ? D.value.length > 0 || !!u.value && we(u.value) ? ["overview", "output", "ingredients", "activity"] : ["overview", "ingredients", "activity"] : ["overview", "activity"]), S = $(() => !!u.value && !gt(u.value)), y = $(() => u.value && S.value ? _t(u.value) : null), C = $(() => u.value && S.value ? kt(u.value) : null), N = $(
1793
1794
  () => u.value && S.value ? Object.values(Me(u.value)).reduce((A, M) => A + M, 0) : null
1794
- ), X = $(() => y.value === null || C.value === null ? null : y.value > 0 && C.value > 0 ? C.value / y.value * 100 : u.value && we(u.value) ? 0 : null), z = $(() => !!u.value && xt(u.value)), F = $(
1795
+ ), X = $(() => y.value === null || C.value === null ? null : y.value > 0 && C.value > 0 ? C.value / y.value * 100 : u.value && we(u.value) ? 0 : null), z = $(() => !!u.value && $t(u.value)), F = $(
1795
1796
  () => z.value && !!u.value && !we(u.value) && !Le(u.value)
1796
- ), Z = $(() => u.value ? Ge(u.value) : null), pe = $(() => u.value ? wt(u.value) : []), _e = $(() => pe.value.map((A) => A.action));
1797
+ ), Z = $(() => u.value ? Ge(u.value) : null), pe = $(() => u.value ? xt(u.value) : []), _e = $(() => pe.value.map((A) => A.action));
1797
1798
  function ue(A) {
1798
1799
  return _e.value.includes(A);
1799
1800
  }
@@ -1815,7 +1816,7 @@ function Ka(L, { leaveOnLocationChange: c = !0 } = {}) {
1815
1816
  errorMessage: f,
1816
1817
  activeTab: x,
1817
1818
  tabs: v,
1818
- locationName: q,
1819
+ locationName: T,
1819
1820
  stockRecalculation: a,
1820
1821
  stockRecalculationRequired: h,
1821
1822
  /** The one way to take a stock-moving write's answer onto the page. */
@@ -1862,8 +1863,8 @@ function Qa(L) {
1862
1863
  throw new Error(
1863
1864
  "The next page could not be advanced. Reopen the editor to refresh history."
1864
1865
  );
1865
- const q = new Set(c.value.map((O) => O._id));
1866
- c.value = [...c.value, ...b.items.filter((O) => !q.has(O._id))], t.value = b.nextCursor, l.value = !0;
1866
+ const T = new Set(c.value.map((O) => O._id));
1867
+ c.value = [...c.value, ...b.items.filter((O) => !T.has(O._id))], t.value = b.nextCursor, l.value = !0;
1867
1868
  } catch (b) {
1868
1869
  d() && (u.value = be(b).message);
1869
1870
  } finally {
@@ -1881,10 +1882,10 @@ function Qa(L) {
1881
1882
  }
1882
1883
  return { sources: c, state: f, load: h, loadMore: I, invalidate: x };
1883
1884
  }
1884
- const Za = { class: "flex flex-col w-full h-full bg-fm-color-surface-primary overflow-y-auto" }, Ya = {
1885
+ const Za = { class: "flex flex-col w-full h-full bg-fm-color-surface-primary overflow-y-auto" }, Ja = {
1885
1886
  key: 0,
1886
1887
  class: "flex flex-col gap-16 p-24"
1887
- }, Ja = {
1888
+ }, Ya = {
1888
1889
  key: 1,
1889
1890
  class: "flex flex-col gap-16 p-24 max-w-[640px]"
1890
1891
  }, Xa = {
@@ -1899,13 +1900,13 @@ const Za = { class: "flex flex-col w-full h-full bg-fm-color-surface-primary ove
1899
1900
  id: {}
1900
1901
  },
1901
1902
  setup(L) {
1902
- const c = L, { t } = J(), _ = Se(), l = ot(), u = tt(), w = Ke(), f = Ae(), x = $(() => Pe());
1903
- It();
1904
- const a = Ka(() => c.id, { leaveOnLocationChange: !1 }), h = Rt(() => a.run.value), I = Qa({
1903
+ const c = L, { t } = Y(), _ = Se(), l = ot(), u = tt(), w = Ke(), f = Ae(), x = $(() => Pe());
1904
+ wt();
1905
+ const a = Ka(() => c.id, { leaveOnLocationChange: !1 }), h = It(() => a.run.value), I = Qa({
1905
1906
  list: (g) => w.list(g ? { cursor: g } : {}),
1906
1907
  runId: () => c.id,
1907
1908
  locationId: () => f.currentLocationId
1908
- }), i = I.sources, r = St(), k = j(!1), o = $(
1909
+ }), i = I.sources, r = Rt(), k = j(!1), o = $(
1909
1910
  () => a.run.value ? r.requestedIngredientRows(a.run.value) : []
1910
1911
  );
1911
1912
  async function d() {
@@ -1918,9 +1919,9 @@ const Za = { class: "flex flex-col w-full h-full bg-fm-color-surface-primary ove
1918
1919
  !await r.load({ livePlan: a.run.value.status === "DRAFT" }) || g !== c.id || !a.run.value || (r.seedFrom(a.run.value), k.value = !0);
1919
1920
  }
1920
1921
  const b = $(() => {
1921
- const g = a.run.value, T = g == null ? void 0 : g.status;
1922
- return T === "DRAFT" ? "draft" : T === "REQUESTING" ? "requested" : T === "PREPARING" ? "preparing" : T === "CANCEL" ? g != null && g.plan.requirements ? "requested" : "draft" : "review";
1923
- }), q = $(() => {
1922
+ const g = a.run.value, q = g == null ? void 0 : g.status;
1923
+ return q === "DRAFT" ? "draft" : q === "REQUESTING" ? "requested" : q === "PREPARING" ? "preparing" : q === "CANCEL" ? g != null && g.plan.requirements ? "requested" : "draft" : "review";
1924
+ }), T = $(() => {
1924
1925
  var g;
1925
1926
  return ((g = a.run.value) == null ? void 0 : g.status) !== "CANCEL";
1926
1927
  }), O = $(() => {
@@ -1929,8 +1930,8 @@ const Za = { class: "flex flex-col w-full h-full bg-fm-color-surface-primary ove
1929
1930
  });
1930
1931
  ae(
1931
1932
  () => [a.phase.value, a.hasIssuance.value],
1932
- async ([g, T]) => {
1933
- g !== "ready" || T || k.value || !a.run.value || await d();
1933
+ async ([g, q]) => {
1934
+ g !== "ready" || q || k.value || !a.run.value || await d();
1934
1935
  },
1935
1936
  { immediate: !0 }
1936
1937
  );
@@ -1946,21 +1947,21 @@ const Za = { class: "flex flex-col w-full h-full bg-fm-color-surface-primary ove
1946
1947
  I.invalidate(), k.value = !1, M.value = !1, D.value = null, N++, y.value = !1;
1947
1948
  }
1948
1949
  );
1949
- const X = $(() => a.run.value ? At(a.run.value) : null), z = $(() => {
1950
- var T, V;
1950
+ const X = $(() => a.run.value ? St(a.run.value) : null), z = $(() => {
1951
+ var q, V;
1951
1952
  const g = {};
1952
- for (const Y of ((T = a.run.value) == null ? void 0 : T.preparation.issuances) ?? [])
1953
- for (const Q of Y.items)
1953
+ for (const J of ((q = a.run.value) == null ? void 0 : q.preparation.issuances) ?? [])
1954
+ for (const Q of J.items)
1954
1955
  g[Q.sku._id] = {
1955
1956
  name: Q.sku.name,
1956
1957
  unit: ((V = Q.sku.unit) == null ? void 0 : V.abbrev) ?? null,
1957
1958
  precision: Q.sku.unit ? Oe(Q.sku.unit) : null
1958
1959
  };
1959
- for (const Y of h.ingredientLines.value)
1960
- g[Y.skuId] || (g[Y.skuId] = {
1961
- name: Y.name,
1962
- unit: Y.unit,
1963
- precision: Y.unitRef ? Oe(Y.unitRef) : null
1960
+ for (const J of h.ingredientLines.value)
1961
+ g[J.skuId] || (g[J.skuId] = {
1962
+ name: J.name,
1963
+ unit: J.unit,
1964
+ precision: J.unitRef ? Oe(J.unitRef) : null
1964
1965
  });
1965
1966
  return g;
1966
1967
  }), F = $(
@@ -1976,24 +1977,24 @@ const Za = { class: "flex flex-col w-full h-full bg-fm-color-surface-primary ove
1976
1977
  const g = a.run.value;
1977
1978
  if (!g) return "";
1978
1979
  if (Z.value) return t("inventory.production.run.detail.pendingStock.message");
1979
- let T;
1980
+ let q;
1980
1981
  switch (g.status) {
1981
1982
  case "REQUESTING":
1982
- T = "requested";
1983
+ q = "requested";
1983
1984
  break;
1984
1985
  case "PREPARING":
1985
- T = g.batches.length > 0 ? "issuedWithOutput" : "issued";
1986
+ q = g.batches.length > 0 ? "issuedWithOutput" : "issued";
1986
1987
  break;
1987
1988
  case "CLOSED":
1988
- T = "closed";
1989
+ q = "closed";
1989
1990
  break;
1990
1991
  case "CANCEL":
1991
- T = "cancelled";
1992
+ q = "cancelled";
1992
1993
  break;
1993
1994
  default:
1994
- T = "draft";
1995
+ q = "draft";
1995
1996
  }
1996
- return t(`inventory.production.run.detail.next.${T}`);
1997
+ return t(`inventory.production.run.detail.next.${q}`);
1997
1998
  }), _e = $(
1998
1999
  () => h.ingredientLines.value.map((g) => ({
1999
2000
  skuId: g.skuId,
@@ -2004,17 +2005,17 @@ const Za = { class: "flex flex-col w-full h-full bg-fm-color-surface-primary ove
2004
2005
  }))
2005
2006
  );
2006
2007
  function ue(g) {
2007
- var T;
2008
+ var q;
2008
2009
  if (a.can(g)) {
2009
2010
  if (g === "update") {
2010
2011
  D.value = "update", I.load();
2011
2012
  return;
2012
2013
  }
2013
2014
  if (g === "request") {
2014
- const V = (T = a.run.value) == null ? void 0 : T._id, Y = f.currentLocationDBName, Q = N;
2015
+ const V = (q = a.run.value) == null ? void 0 : q._id, J = f.currentLocationDBName, Q = N;
2015
2016
  l.open(qt(t)).onPrimary(() => {
2016
2017
  var Be;
2017
- Q !== N || V !== ((Be = a.run.value) == null ? void 0 : Be._id) || Y !== f.currentLocationDBName || ke();
2018
+ Q !== N || V !== ((Be = a.run.value) == null ? void 0 : Be._id) || J !== f.currentLocationDBName || ke();
2018
2019
  });
2019
2020
  return;
2020
2021
  }
@@ -2028,17 +2029,17 @@ const Za = { class: "flex flex-col w-full h-full bg-fm-color-surface-primary ove
2028
2029
  if (!a.can("request")) return;
2029
2030
  const g = a.run.value;
2030
2031
  if (!g) return;
2031
- const T = ++N;
2032
+ const q = ++N;
2032
2033
  y.value = !0;
2033
2034
  try {
2034
2035
  const V = await w.request(g._id);
2035
- if (T !== N) return;
2036
+ if (q !== N) return;
2036
2037
  a.run.value = V, u.success(t("inventory.production.run.detail.toast.requested"));
2037
2038
  } catch (V) {
2038
- if (T !== N) return;
2039
+ if (q !== N) return;
2039
2040
  u.error(be(V).message);
2040
2041
  } finally {
2041
- T === N && (y.value = !1);
2042
+ q === N && (y.value = !1);
2042
2043
  }
2043
2044
  }
2044
2045
  function $e(g) {
@@ -2060,16 +2061,16 @@ const Za = { class: "flex flex-col w-full h-full bg-fm-color-surface-primary ove
2060
2061
  function ye(g) {
2061
2062
  D.value = null, I.invalidate(), xe(g), k.value && r.seedFrom(g), h.refresh();
2062
2063
  }
2063
- function Te() {
2064
+ function qe() {
2064
2065
  a.reload(), h.refresh();
2065
2066
  }
2066
2067
  ae(
2067
2068
  () => a.activeTab.value,
2068
- (g, T) => {
2069
- g === "ingredients" && T !== "ingredients" && Te();
2069
+ (g, q) => {
2070
+ g === "ingredients" && q !== "ingredients" && qe();
2070
2071
  }
2071
2072
  );
2072
- async function qe() {
2073
+ async function Te() {
2073
2074
  try {
2074
2075
  await r.refreshStock();
2075
2076
  } catch (g) {
@@ -2077,26 +2078,26 @@ const Za = { class: "flex flex-col w-full h-full bg-fm-color-surface-primary ove
2077
2078
  }
2078
2079
  }
2079
2080
  async function Ze(g) {
2080
- var T;
2081
+ var q;
2081
2082
  if (g === null) {
2082
2083
  const V = v;
2083
- v = null, D.value = null, I.invalidate(), await Ie(), V != null && V.isConnected ? V.focus() : (T = C.value) == null || T.focus();
2084
+ v = null, D.value = null, I.invalidate(), await Ie(), V != null && V.isConnected ? V.focus() : (q = C.value) == null || q.focus();
2084
2085
  }
2085
2086
  }
2086
2087
  function xe(g) {
2087
2088
  a.run.value = g;
2088
2089
  }
2089
- function Ye() {
2090
+ function Je() {
2090
2091
  _.push(x.value);
2091
2092
  }
2092
- return (g, T) => {
2093
- const V = te("FmButton"), Y = te("FmCircularProgress");
2093
+ return (g, q) => {
2094
+ const V = te("FmButton"), J = te("FmCircularProgress");
2094
2095
  return s(), m("div", Za, [
2095
- e(a).phase.value === "waitingForLocation" || e(a).phase.value === "loading" ? (s(), m("div", Ya, T[3] || (T[3] = [
2096
+ e(a).phase.value === "waitingForLocation" || e(a).phase.value === "loading" ? (s(), m("div", Ja, q[3] || (q[3] = [
2096
2097
  n("div", { class: "h-24 w-1/3 rounded bg-fm-color-neutral-gray-100 animate-pulse" }, null, -1),
2097
2098
  n("div", { class: "h-16 w-1/2 rounded bg-fm-color-neutral-gray-100 animate-pulse" }, null, -1),
2098
2099
  n("div", { class: "h-[240px] rounded bg-fm-color-neutral-gray-100 animate-pulse" }, null, -1)
2099
- ]))) : e(a).phase.value === "notInLocation" ? (s(), m("div", Ja, [
2100
+ ]))) : e(a).phase.value === "notInLocation" ? (s(), m("div", Ya, [
2100
2101
  P(re, {
2101
2102
  tone: "warn",
2102
2103
  title: se.value,
@@ -2106,7 +2107,7 @@ const Za = { class: "flex flex-col w-full h-full bg-fm-color-surface-primary ove
2106
2107
  P(V, {
2107
2108
  variant: "secondary",
2108
2109
  label: e(t)("inventory.production.run.detail.notInLocation.action"),
2109
- onClick: Ye
2110
+ onClick: Je
2110
2111
  }, null, 8, ["label"])
2111
2112
  ]),
2112
2113
  _: 1
@@ -2122,7 +2123,7 @@ const Za = { class: "flex flex-col w-full h-full bg-fm-color-surface-primary ove
2122
2123
  P(V, {
2123
2124
  variant: "secondary",
2124
2125
  label: e(t)("inventory.production.run.detail.error.retry"),
2125
- onClick: T[0] || (T[0] = (Q) => e(a).load())
2126
+ onClick: q[0] || (q[0] = (Q) => e(a).load())
2126
2127
  }, null, 8, ["label"])
2127
2128
  ]),
2128
2129
  _: 1
@@ -2175,7 +2176,7 @@ const Za = { class: "flex flex-col w-full h-full bg-fm-color-surface-primary ove
2175
2176
  }, null, 8, ["run"]),
2176
2177
  P(Ha, {
2177
2178
  modelValue: e(a).activeTab.value,
2178
- "onUpdate:modelValue": T[1] || (T[1] = (Q) => e(a).activeTab.value = Q),
2179
+ "onUpdate:modelValue": q[1] || (q[1] = (Q) => e(a).activeTab.value = Q),
2179
2180
  class: "mb-4",
2180
2181
  items: F.value,
2181
2182
  ariaLabel: e(t)("inventory.production.run.detail.tabsLabel")
@@ -2192,37 +2193,37 @@ const Za = { class: "flex flex-col w-full h-full bg-fm-color-surface-primary ove
2192
2193
  unit: X.value,
2193
2194
  "has-issuance": e(a).hasIssuance.value,
2194
2195
  operational: b.value !== "review",
2195
- onViewAll: T[2] || (T[2] = (Q) => e(a).activeTab.value = "output")
2196
+ onViewAll: q[2] || (q[2] = (Q) => e(a).activeTab.value = "output")
2196
2197
  }, {
2197
2198
  operational: ne(() => [
2198
- q.value && b.value !== "preparing" && (e(r).loadFailure.value || e(r).projectionFailed.value) ? (s(), B(Lt, {
2199
+ T.value && b.value !== "preparing" && (e(r).loadFailure.value || e(r).projectionFailed.value) ? (s(), B(At, {
2199
2200
  key: 0,
2200
2201
  "load-failure": e(r).loadFailure.value,
2201
2202
  "projection-failed": e(r).projectionFailed.value,
2202
2203
  onRetryLoad: d,
2203
2204
  onRetryProjection: e(r).retryProjection
2204
- }, null, 8, ["load-failure", "projection-failed", "onRetryProjection"])) : q.value && b.value !== "preparing" && e(r).loading.value ? (s(), m("div", er, [
2205
- P(Y, { size: "lg" })
2206
- ])) : b.value === "draft" && k.value ? (s(), B(Pt, {
2205
+ }, null, 8, ["load-failure", "projection-failed", "onRetryProjection"])) : T.value && b.value !== "preparing" && e(r).loading.value ? (s(), m("div", er, [
2206
+ P(J, { size: "lg" })
2207
+ ])) : b.value === "draft" && k.value ? (s(), B(Lt, {
2207
2208
  key: 2,
2208
2209
  items: e(r).items.value,
2209
2210
  "historical-items": O.value,
2210
2211
  commits: e(r).commits.value,
2211
2212
  instructions: e(a).run.value.instructions,
2212
2213
  editable: !1,
2213
- refreshable: q.value,
2214
+ refreshable: T.value,
2214
2215
  refreshing: e(r).refreshingStock.value,
2215
- "show-stock-projection": q.value,
2216
- onRefresh: qe
2216
+ "show-stock-projection": T.value,
2217
+ onRefresh: Te
2217
2218
  }, null, 8, ["items", "historical-items", "commits", "instructions", "refreshable", "refreshing", "show-stock-projection"])) : b.value === "requested" && k.value ? (s(), B(Da, {
2218
2219
  key: 3,
2219
2220
  run: e(a).run.value,
2220
2221
  items: O.value ?? e(r).items.value,
2221
2222
  ingredients: o.value,
2222
- refreshable: q.value,
2223
+ refreshable: T.value,
2223
2224
  refreshing: e(r).refreshingStock.value,
2224
- "show-stock-projection": q.value,
2225
- onRefresh: qe
2225
+ "show-stock-projection": T.value,
2226
+ onRefresh: Te
2226
2227
  }, null, 8, ["run", "items", "ingredients", "refreshable", "refreshing", "show-stock-projection"])) : b.value === "preparing" ? (s(), B(Qe, {
2227
2228
  key: 4,
2228
2229
  run: e(a).run.value,
@@ -2261,7 +2262,7 @@ const Za = { class: "flex flex-col w-full h-full bg-fm-color-surface-primary ove
2261
2262
  "aria-labelledby": "production-run-tab-activity",
2262
2263
  run: e(a).run.value
2263
2264
  }, null, 8, ["run"])),
2264
- P(Tt, {
2265
+ P(Pt, {
2265
2266
  action: D.value,
2266
2267
  run: e(a).run.value,
2267
2268
  "location-name": e(a).locationName.value,
@@ -2277,13 +2278,13 @@ const Za = { class: "flex flex-col w-full h-full bg-fm-color-surface-primary ove
2277
2278
  onRecorded: A,
2278
2279
  onClosed: xe,
2279
2280
  onCancelled: xe,
2280
- onReload: Te
2281
+ onReload: qe
2281
2282
  }, null, 8, ["action", "run", "location-name", "duplicate-sources", "duplicate-source-state", "onLoadMoreDuplicateSources", "prepare-initial-view", "at-target", "ingredients"])
2282
2283
  ], 512)) : R("", !0)
2283
2284
  ]);
2284
2285
  };
2285
2286
  }
2286
- }), nr = /* @__PURE__ */ ce(tr, [["__scopeId", "data-v-19386a44"]]), pr = /* @__PURE__ */ K({
2287
+ }), nr = /* @__PURE__ */ ce(tr, [["__scopeId", "data-v-19386a44"]]), mr = /* @__PURE__ */ K({
2287
2288
  __name: "ProductionRunDetailPage",
2288
2289
  props: {
2289
2290
  id: {}
@@ -2312,5 +2313,5 @@ const Za = { class: "flex flex-col w-full h-full bg-fm-color-surface-primary ove
2312
2313
  }
2313
2314
  });
2314
2315
  export {
2315
- pr as default
2316
+ mr as default
2316
2317
  };