@feedmepos/mf-inventory-portal 1.8.0-dev.1 → 1.8.0-dev.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 (124) hide show
  1. package/dist/App-DVHgBTHP.js +1499 -0
  2. package/dist/{ApprovalView-C8_ax05b.js → ApprovalView-RaXuWWSu.js} +9 -9
  3. package/dist/{BindingsDialog-t0ZY9eh5.js → BindingsDialog-DomvXijP.js} +2 -2
  4. package/dist/{BindingsPicker-C0Qblmml.js → BindingsPicker-DGnzxEs7.js} +2 -2
  5. package/dist/{BindingsTable-CsqUBbRA.js → BindingsTable-DfG9kWrv.js} +4 -4
  6. package/dist/{BulkReceiveRequestView-DAG-TMox.js → BulkReceiveRequestView-DxHWrfbi.js} +21 -22
  7. package/dist/ChangeLocationComponent.vue_vue_type_script_setup_true_lang-CVekIoiN.js +151 -0
  8. package/dist/{ClosingDraftView-CdKp4Ny6.js → ClosingDraftView-C3n66bbh.js} +20 -20
  9. package/dist/{ClosingHistoryView-Blyq9-BS.js → ClosingHistoryView-kdpYGy1Y.js} +5 -5
  10. package/dist/{ClosingTemplateView-C326DL4q.js → ClosingTemplateView-DwGloYxn.js} +302 -291
  11. package/dist/{CustomPrintTemplatePreview.vue_vue_type_script_setup_true_lang-CXjubRbj.js → CustomPrintTemplatePreview.vue_vue_type_script_setup_true_lang-9eY_r8LF.js} +1 -1
  12. package/dist/{DefaultView-CsIMmQAY.js → DefaultView-JC_e4xgC.js} +2 -2
  13. package/dist/{DeliveryOrderPrintPreview-eTrMvJzA.js → DeliveryOrderPrintPreview-BBCvI67S.js} +2 -2
  14. package/dist/DeprecateSoonWarningDialog.vue_vue_type_script_setup_true_lang-5Cc08Svt.js +58 -0
  15. package/dist/{EmailDialog.vue_vue_type_script_setup_true_lang-B7nBbxMo.js → EmailDialog.vue_vue_type_script_setup_true_lang-H4FWc9ga.js} +1663 -1668
  16. package/dist/FeatureCapabilityBadge.vue_vue_type_script_setup_true_lang-C1C8aDA6.js +61 -0
  17. package/dist/{FmDateRangePickerChip.vue_vue_type_script_setup_true_lang-CI2KTzDs.js → FmDateRangePickerChip.vue_vue_type_script_setup_true_lang-Q8Mptiv3.js} +1 -1
  18. package/dist/{FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-Db_FiSRe.js → FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-CE1_yyHe.js} +2 -2
  19. package/dist/FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-CGJi3f86.js +120 -0
  20. package/dist/{FmMultiselectDialog-CYUxtxnS.js → FmMultiselectDialog-DCaRlBIy.js} +2 -2
  21. package/dist/{FmMultiselectDialog-BAw-gp5K.js → FmMultiselectDialog-yVPY5aBV.js} +1 -1
  22. package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-DOkV11NN.js → FmUnitInput.vue_vue_type_script_setup_true_lang-ClaLVtpK.js} +6 -6
  23. package/dist/{ImportView-BmotFC-3.js → ImportView-DQrVMzxN.js} +6 -6
  24. package/dist/{IngredientBindedItem.vue_vue_type_script_setup_true_lang-DVCCpvS4.js → IngredientBindedItem.vue_vue_type_script_setup_true_lang-7lT5UZc8.js} +1 -1
  25. package/dist/IngredientGroupView-BMUnEaY7.js +1000 -0
  26. package/dist/{IngredientsView-CZ6E7cXf.js → IngredientsView-DPj9lBTK.js} +303 -296
  27. package/dist/{IntegrationExplorerView-B15ND4Fg.js → IntegrationExplorerView-CO2wpUR_.js} +4 -4
  28. package/dist/{IntegrationView-hkNhsqx2.js → IntegrationView-DIeZoey0.js} +2403 -2408
  29. package/dist/{InventoryBindingForm-SfuUF0_O.js → InventoryBindingForm-Cj4_Chue.js} +1 -1
  30. package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-Zq81p_MF.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-CaBOK7NC.js} +5 -5
  31. package/dist/{InventoryBindingSummary-DUcukkyJ.js → InventoryBindingSummary-yzGzd7jJ.js} +1 -1
  32. package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-BmfROiLM.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-DzzTPdyF.js} +1 -1
  33. package/dist/{ProductionRunDetailView-BwgRX-14.js → ProductionRunDetailView-Cw-ecaey.js} +4 -4
  34. package/dist/{ProductionRunLifecycleDialogs.vue_vue_type_script_setup_true_lang-BbNXNhpr.js → ProductionRunLifecycleDialogs.vue_vue_type_script_setup_true_lang-BYyiiAWb.js} +7 -7
  35. package/dist/{ProductionRunView-CZU7LY9-.js → ProductionRunView-C11eseXQ.js} +3 -3
  36. package/dist/{PublishView-DS2FZ66p.js → PublishView-CPK9NeVF.js} +3 -3
  37. package/dist/{PurchaseOrderPrintPreview-CZa0MVAs.js → PurchaseOrderPrintPreview-DosqWQeN.js} +2 -2
  38. package/dist/{ReceiveRequestView-Bk5b3nVB.js → ReceiveRequestView-BxSkpK2t.js} +15 -16
  39. package/dist/{RecipeView-DvI6X-uN.js → RecipeView-oHDWsT0P.js} +19 -20
  40. package/dist/SettingsView-QlUNwFhM.js +983 -0
  41. package/dist/{StockView-Z9wGihT7.js → StockView-a8LbVZ_7.js} +324 -322
  42. package/dist/{SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-DdZg9T4n.js → SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-GdGJCuc0.js} +1 -1
  43. package/dist/{SupplierView-D8q6siZW.js → SupplierView-BKxKoi_0.js} +451 -447
  44. package/dist/{SurchargeView-Db_5YFoR.js → SurchargeView-Db4cwhZv.js} +7 -7
  45. package/dist/{SystemTrailDialog.vue_vue_type_script_setup_true_lang-WOVs4Fr1.js → SystemTrailDialog.vue_vue_type_script_setup_true_lang-CpkF77Ow.js} +2 -2
  46. package/dist/{TemplatePublishDialog.vue_vue_type_script_setup_true_lang-BtoP4XgE.js → TemplatePublishDialog.vue_vue_type_script_setup_true_lang-CCCj4WVF.js} +1 -1
  47. package/dist/{TransferDetails.vue_vue_type_script_setup_true_lang-Bljc4Vuy.js → TransferDetails.vue_vue_type_script_setup_true_lang-CFNPXqt5.js} +39 -40
  48. package/dist/{TransferTemplateView-DtsJzmUr.js → TransferTemplateView-CzwxOBMQ.js} +22 -23
  49. package/dist/{UnitCostHistoryView-BqDiQ4IE.js → UnitCostHistoryView-CqcyjCCd.js} +4 -4
  50. package/dist/{UnitDisplayControl.vue_vue_type_script_setup_true_lang-BjSmg5LX.js → UnitDisplayControl.vue_vue_type_script_setup_true_lang-DO80_8SZ.js} +4 -4
  51. package/dist/{UnitView-CM695-VI.js → UnitView-BqdK1AM_.js} +8 -8
  52. package/dist/{WarehouseView-BdidU4p6.js → WarehouseView-COJM9IXM.js} +193 -189
  53. package/dist/{WastageTemplateView-DdhwdXT6.js → WastageTemplateView-DW3viTHN.js} +15 -15
  54. package/dist/api/feature-flags.d.ts +10 -0
  55. package/dist/api/license.d.ts +9 -0
  56. package/dist/{app-Cb5s4jMu.js → app-yvK__CBL.js} +143 -106
  57. package/dist/app.d.ts +36 -0
  58. package/dist/app.js +1 -1
  59. package/dist/{closing-template-DnqnpXxn.js → closing-template-DezidSM0.js} +1 -1
  60. package/dist/components/ChangeLocationComponent.vue.d.ts +21 -14
  61. package/dist/components/DeprecateSoonWarningDialog.vue.d.ts +22 -0
  62. package/dist/components/FeatureCapabilityBadge.vue.d.ts +25 -0
  63. package/dist/components/{PreviewBadge.vue.d.ts → FeatureCapabilityGate.vue.d.ts} +10 -7
  64. package/dist/components/{PremiumBadge.vue.d.ts → PlanTierBadge.vue.d.ts} +5 -13
  65. package/dist/components/PlanUpgradeDialog.vue.d.ts +30 -0
  66. package/dist/composable/useNavigationMenu.d.ts +2 -1
  67. package/dist/{date2-BPhD_1Of.js → date2-2XjepIqc.js} +1 -1
  68. package/dist/{dayjs.min-Zbd6-uVD.js → dayjs.min-CNp5DLBB.js} +1 -1
  69. package/dist/{decimal-Df6a50Ld.js → decimal-Z7oJdGk8.js} +2 -2
  70. package/dist/{defineDeepModel-Brbsikbi.js → defineDeepModel-CMxJn_H2.js} +1 -1
  71. package/dist/{duplicate-template-B9kuShaF.js → duplicate-template-BetV5oy_.js} +1 -1
  72. package/dist/{inventory-core-dart.default-DDRxXXnt.js → feature-CkWaZ-5K.js} +3046 -1837
  73. package/dist/feature-flags/core.d.ts +27 -0
  74. package/dist/feature-flags/core.spec.d.ts +1 -0
  75. package/dist/feature-flags/navigation-capabilities.d.ts +23 -0
  76. package/dist/feature-flags/navigation-capabilities.spec.d.ts +1 -0
  77. package/dist/feature-flags/plan-tier.d.ts +6 -0
  78. package/dist/feature-flags/plan-tier.spec.d.ts +1 -0
  79. package/dist/feature-flags/portal-feature-catalog.d.ts +24 -0
  80. package/dist/feature-flags/vue.d.ts +14 -0
  81. package/dist/{format-time-from-id-DmUjUcVj.js → format-time-from-id-DatSI9uD.js} +1 -1
  82. package/dist/{format-unit-display-CsQA0SQd.js → format-unit-display-DM5We5cx.js} +13 -13
  83. package/dist/id-to-date-Dxw2jKhy.js +67 -0
  84. package/dist/{import-export.helper-DCQ6oX9s.js → import-export.helper-BOmADwUw.js} +6 -6
  85. package/dist/{index-C-mazZwS.js → index-7fz5sGDO.js} +3 -3
  86. package/dist/{index-UmM6gHJ1.js → index-CIH9NCvs.js} +1 -1
  87. package/dist/{index-BXaIMGnI.js → index-ClYgfwW7.js} +1 -1
  88. package/dist/{lz-string-Bibw5D_6.js → lz-string-CCsc2X7t.js} +1 -1
  89. package/dist/{netsuite-Bev0OtQT.js → netsuite-COumFXC2.js} +2 -2
  90. package/dist/{number-y_W4pn_d.js → number-gSLvxNqA.js} +3 -3
  91. package/dist/portal-feature-catalog-yGIESKTc.js +246 -0
  92. package/dist/{predefined-templates-BHvUnTk_.js → predefined-templates-Bw9A9LNA.js} +1 -1
  93. package/dist/{purchase-order-template-DgOKEzhS.js → purchase-order-template-BaZjdGq8.js} +1 -1
  94. package/dist/{recalculationUtils-Dv__DzZh.js → recalculationUtils-t32wAurN.js} +1 -1
  95. package/dist/{row-action.enum-ncgDYAjP.js → row-action.enum-BDeudY4d.js} +2 -2
  96. package/dist/{rules-CZTBvenw.js → rules-C1btu0Md.js} +2 -2
  97. package/dist/{stock-CxCRZo_D.js → stock-B59sfN28.js} +1 -1
  98. package/dist/{stock-XINW8JOM.js → stock-BF86TMW0.js} +3 -3
  99. package/dist/stores/feature.d.ts +12 -0
  100. package/dist/{supplier-CkZdeMcl.js → supplier-DnbLJ_cS.js} +2 -2
  101. package/dist/{surcharge-FRSFqjGl.js → surcharge-C1uE3uQa.js} +1 -1
  102. package/dist/tsconfig.app.tsbuildinfo +1 -1
  103. package/dist/{uom-rules-Cm1styDr.js → uom-rules-DjfyrFHJ.js} +1 -1
  104. package/dist/{use-ingredient-select-dialog-ntAqHX04.js → use-ingredient-select-dialog-7A7fWyEH.js} +2 -2
  105. package/dist/{use-inventory-binding-dialog-DVIJO8Cl.js → use-inventory-binding-dialog-Cc1tjTfV.js} +2 -2
  106. package/dist/{use-template-enabled-locations-CIZqw-Z8.js → use-template-enabled-locations-C-Hqqgzt.js} +2 -2
  107. package/dist/{use-transfer-locations-CM5vNttA.js → use-transfer-locations-CqsXvOI2.js} +2 -2
  108. package/dist/{useHrmPermission-CslLuBoP.js → useHrmPermission-BzwD3Ctc.js} +1 -1
  109. package/dist/useNavigationMenu-PrZg9HS7.js +352 -0
  110. package/dist/{useSseClient-CCV4mPzD.js → useSseClient-FCyLWq8k.js} +1 -1
  111. package/dist/views/integration/components/IntegrationCard.vue.d.ts +38 -0
  112. package/dist/views/settings/FeatureFlagView.vue.d.ts +2 -0
  113. package/dist/{vue-i18n-C5j4EQhi.js → vue-i18n-C34f-Tph.js} +434 -434
  114. package/dist/{xlsx.util-B50OvX4z.js → xlsx.util-X4amwe_k.js} +2 -2
  115. package/package.json +6 -6
  116. package/dist/App-BXgpGzGR.js +0 -1476
  117. package/dist/FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-zcEv1Swg.js +0 -243
  118. package/dist/IngredientGroupView-qrR9ksEn.js +0 -985
  119. package/dist/PremiumBadge.vue_vue_type_script_setup_true_lang-3e3kDsbN.js +0 -93
  120. package/dist/PreviewBadge.vue_vue_type_script_setup_true_lang-DX2MJqL4.js +0 -29
  121. package/dist/SettingsView-sThYErMz.js +0 -698
  122. package/dist/feature-Ckn5ra3z.js +0 -1136
  123. package/dist/useNavigationMenu-CSinmNCY.js +0 -172
  124. /package/dist/components/{FmFeatureFlagDialog.vue.d.ts → DeprecateSoonPill.vue.d.ts} +0 -0
@@ -1,36 +1,36 @@
1
- import { ref as P, defineComponent as ke, computed as g, resolveComponent as S, createElementBlock as V, openBlock as c, Fragment as ee, createCommentVNode as N, createVNode as s, unref as o, withModifiers as Rt, withCtx as b, createElementVNode as n, renderList as de, createBlock as j, toDisplayString as $, normalizeClass as ie, h as Z, mergeModels as st, onMounted as Ot, watch as _t, useModel as Bt, createTextVNode as xt, isRef as rt, createSlots as kt, normalizeStyle as Dt, Teleport as it, normalizeProps as Nt, guardReactiveProps as zt } from "vue";
2
- import { a as Fe, c as wt, S as Lt, g as dt, e as ut, f as jt, h as mt, i as ct, j as pt, k as vt, u as Wt, l as qt } from "./app-Cb5s4jMu.js";
1
+ import { ref as P, defineComponent as ke, computed as g, resolveComponent as S, createElementBlock as V, openBlock as c, Fragment as ee, createCommentVNode as N, createVNode as s, unref as o, withModifiers as Rt, withCtx as x, createElementVNode as n, renderList as de, createBlock as j, toDisplayString as $, normalizeClass as ie, h as Z, mergeModels as st, onMounted as Ot, watch as _t, useModel as Bt, createTextVNode as xt, isRef as rt, createSlots as kt, normalizeStyle as Dt, Teleport as it, normalizeProps as Nt, guardReactiveProps as zt } from "vue";
2
+ import { a as Fe, c as wt, S as Lt, g as dt, e as ut, f as jt, h as mt, i as ct, j as pt, k as vt, u as Wt, l as qt } from "./app-yvK__CBL.js";
3
3
  import { useDialog as Ke, useSnackbar as Ae, components as ze, useProxiedModel as ft, useDialogChild as Ht, useBreakpoints as Yt } from "@feedmepos/ui-library";
4
4
  import { i as Kt, _ as Gt, m as Jt } from "./menu-usage-module-BdjYEk3s.js";
5
5
  import { F as W } from "./form-mode.enum-BKiNVH6A.js";
6
6
  import { useI18n as pe, useCoreStore as Ge } from "@feedmepos/mf-common";
7
7
  import { defineStore as Qt, storeToRefs as Xt } from "pinia";
8
- import { D as yt, R as Pe } from "./row-action.enum-ncgDYAjP.js";
8
+ import { D as yt, R as Pe } from "./row-action.enum-BDeudY4d.js";
9
9
  import { c as Zt } from "./component-BmLAdDiY.js";
10
- import { u as Ee, _ as en } from "./netsuite-Bev0OtQT.js";
10
+ import { u as Ee, _ as en } from "./netsuite-COumFXC2.js";
11
11
  import { F as Be } from "./FmAdminBadge-DlplQOHb.js";
12
12
  import { u as tn, _ as nn } from "./SingleColumnLayout.vue_vue_type_script_setup_true_lang-DpwneGOV.js";
13
- import { A as Oe, R as Le, U as on, M as ln } from "./rules-CZTBvenw.js";
14
- import { g as an, _ as je, S as We, a as sn } from "./SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-DdZg9T4n.js";
15
- import { _ as rn } from "./InventoryBindingForm.vue_vue_type_script_setup_true_lang-Zq81p_MF.js";
16
- import { _ as qe } from "./IngredientBindedItem.vue_vue_type_script_setup_true_lang-DVCCpvS4.js";
17
- import { u as Tt } from "./feature-Ckn5ra3z.js";
18
- import { t as dn, a as un, g as mn } from "./number-y_W4pn_d.js";
19
- import { _ as xe } from "./PreviewBadge.vue_vue_type_script_setup_true_lang-DX2MJqL4.js";
20
- import { d as Re, g as cn, e as pn, a as vn } from "./import-export.helper-DCQ6oX9s.js";
13
+ import { A as Oe, R as Le, U as on, M as ln } from "./rules-C1btu0Md.js";
14
+ import { g as an, _ as je, S as We, a as sn } from "./SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-GdGJCuc0.js";
15
+ import { _ as rn } from "./InventoryBindingForm.vue_vue_type_script_setup_true_lang-CaBOK7NC.js";
16
+ import { _ as qe } from "./IngredientBindedItem.vue_vue_type_script_setup_true_lang-7lT5UZc8.js";
17
+ import { u as Tt } from "./feature-CkWaZ-5K.js";
18
+ import { t as dn, a as un, g as mn } from "./number-gSLvxNqA.js";
19
+ import { a as xe } from "./FeatureCapabilityBadge.vue_vue_type_script_setup_true_lang-C1C8aDA6.js";
20
+ import { d as Re, g as cn, e as pn, a as vn } from "./import-export.helper-BOmADwUw.js";
21
21
  import { _ as fn } from "./FmCustomAttribute.vue_vue_type_script_setup_true_lang-CG1m-B2p.js";
22
22
  import { _ as Ce } from "./FmLockableField.vue_vue_type_script_setup_true_lang-FCg4K7y8.js";
23
- import { F as yn, a as He } from "./FmMultiselectDialog-CYUxtxnS.js";
24
- import { u as Vt } from "./purchase-order-template-DgOKEzhS.js";
25
- import { u as It, a as St } from "./closing-template-DnqnpXxn.js";
23
+ import { F as yn, a as He } from "./FmMultiselectDialog-DCaRlBIy.js";
24
+ import { u as Vt } from "./purchase-order-template-BaZjdGq8.js";
25
+ import { u as It, a as St } from "./closing-template-DezidSM0.js";
26
26
  import { _ as gn, F as gt } from "./TableActionableRow.vue_vue_type_script_setup_true_lang-DAMpuZ1X.js";
27
- import { r as bn } from "./xlsx.util-B50OvX4z.js";
27
+ import { r as bn } from "./xlsx.util-X4amwe_k.js";
28
28
  import { F as hn } from "./FmDroppableField-J0tG_U3w.js";
29
- import { _ as _n } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-zcEv1Swg.js";
30
- import { u as xn } from "./FmMultiselectDialog-BAw-gp5K.js";
29
+ import { _ as _n } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-CGJi3f86.js";
30
+ import { u as xn } from "./FmMultiselectDialog-yVPY5aBV.js";
31
31
  import { P as kn, J as wn } from "./app-C39bYJmq.js";
32
32
  const Ye = Qt("ingredientForm", function() {
33
- const _ = Ke(), k = Ae(), u = Fe(), x = P(!1), { t: C } = pe(), A = P();
33
+ const h = Ke(), k = Ae(), u = Fe(), _ = P(!1), { t: C } = pe(), A = P();
34
34
  function U() {
35
35
  const a = {
36
36
  sku: {},
@@ -54,7 +54,7 @@ const Ye = Qt("ingredientForm", function() {
54
54
  A.value = d;
55
55
  }
56
56
  async function i(a) {
57
- x.value = !0;
57
+ _.value = !0;
58
58
  try {
59
59
  await u.deleteSku(a), k.open({
60
60
  title: "Success",
@@ -63,7 +63,7 @@ const Ye = Qt("ingredientForm", function() {
63
63
  });
64
64
  } catch (d) {
65
65
  if (d instanceof Lt && Kt(d)) {
66
- _.open({
66
+ h.open({
67
67
  title: "Cannot delete ingredient",
68
68
  contentComponent: Gt,
69
69
  contentComponentProps: {
@@ -93,11 +93,11 @@ const Ye = Qt("ingredientForm", function() {
93
93
  type: "error"
94
94
  }), console.error("failed to delete ingredient", d);
95
95
  } finally {
96
- x.value = !1;
96
+ _.value = !1;
97
97
  }
98
98
  }
99
99
  function m(a) {
100
- _.open({
100
+ h.open({
101
101
  title: C("inventory.ingredient.delete.title", [(a == null ? void 0 : a.name) ?? ""]),
102
102
  closeButton: !1,
103
103
  message: C("inventory.ingredient.delete.message"),
@@ -117,7 +117,7 @@ const Ye = Qt("ingredientForm", function() {
117
117
  updateIngredient: l,
118
118
  deleteIngredient: m,
119
119
  ingredientDialogProps: A,
120
- ingredientViewLoading: x
120
+ ingredientViewLoading: _
121
121
  };
122
122
  }), Tn = {
123
123
  key: 0,
@@ -136,10 +136,10 @@ const Ye = Qt("ingredientForm", function() {
136
136
  itemCode: {}
137
137
  },
138
138
  setup(q) {
139
- const _ = q, { t: k } = pe(), u = Ge(), x = Ee(), C = P(!1), A = g(() => {
139
+ const h = q, { t: k } = pe(), u = Ge(), _ = Ee(), C = P(!1), A = g(() => {
140
140
  var r;
141
141
  return ((r = u.sessionUser.value) == null ? void 0 : r.role.isAdmin) ?? !1;
142
- }), U = g(() => x.getSkuSubsidiaries(_.skuId)), l = g(() => {
142
+ }), U = g(() => _.getSkuSubsidiaries(h.skuId)), l = g(() => {
143
143
  const r = /* @__PURE__ */ new Set();
144
144
  function f(F) {
145
145
  for (const p of F)
@@ -192,7 +192,7 @@ const Ye = Qt("ingredientForm", function() {
192
192
  }
193
193
  const d = g(() => {
194
194
  let r = U.value.subsidiaryTree;
195
- if ((!r || r.length === 0) && (r = x.getBusinessSubsidiaryTree()), !A.value) {
195
+ if ((!r || r.length === 0) && (r = _.getBusinessSubsidiaryTree()), !A.value) {
196
196
  const f = m(r);
197
197
  r = a(r, f);
198
198
  }
@@ -201,7 +201,7 @@ const Ye = Qt("ingredientForm", function() {
201
201
  return (r, f) => {
202
202
  const w = S("FmButton"), F = S("FmDialog");
203
203
  return c(), V(ee, null, [
204
- o(x).isEnabled ? (c(), V("div", Tn, [
204
+ o(_).isEnabled ? (c(), V("div", Tn, [
205
205
  s(w, {
206
206
  "prepend-icon": "info",
207
207
  variant: "tertiary",
@@ -214,11 +214,11 @@ const Ye = Qt("ingredientForm", function() {
214
214
  "close-button": "",
215
215
  dismissAway: ""
216
216
  }, {
217
- "dialog-header": b(() => [
217
+ "dialog-header": x(() => [
218
218
  n("div", Vn, [
219
219
  n("div", In, $(o(k)("inventory.integration.netsuite.subsidiaryHierarchy.title")), 1),
220
- n("p", Sn, " Name: " + $(_.itemName), 1),
221
- n("p", Cn, " Code: " + $(_.itemCode), 1),
220
+ n("p", Sn, " Name: " + $(h.itemName), 1),
221
+ n("p", Cn, " Code: " + $(h.itemCode), 1),
222
222
  A.value ? (c(), V("p", Fn, " All subsidiaries are shown since you are an admin. ")) : (c(), V("p", An, " Only showing subsidiaries in your business path and bound subsidiaries. ")),
223
223
  n("div", En, [
224
224
  n("div", $n, [
@@ -235,7 +235,7 @@ const Ye = Qt("ingredientForm", function() {
235
235
  n("span", { class: "fm-typo-en-body-sm-400" }, "Directly Bound")
236
236
  ], -1)),
237
237
  s(Be, null, {
238
- default: b(() => f[3] || (f[3] = [
238
+ default: x(() => f[3] || (f[3] = [
239
239
  n("div", { class: "flex items-center gap-2 px-2 py-1 rounded-md" }, [
240
240
  n("span", { class: "w-3 h-3 rounded-sm bg-blue-400" }),
241
241
  n("span", { class: "fm-typo-en-body-sm-400" }, "Included as Child")
@@ -247,7 +247,7 @@ const Ye = Qt("ingredientForm", function() {
247
247
  ])
248
248
  ])
249
249
  ]),
250
- default: b(() => [
250
+ default: x(() => [
251
251
  n("div", Un, [
252
252
  n("div", Pn, [
253
253
  (c(!0), V(ee, null, de(d.value, (p) => (c(), V("div", {
@@ -259,7 +259,7 @@ const Ye = Qt("ingredientForm", function() {
259
259
  key: 0,
260
260
  class: "flex-1"
261
261
  }, {
262
- default: b(() => [
262
+ default: x(() => [
263
263
  n("div", On, [
264
264
  n("span", Bn, $(p.name), 1)
265
265
  ])
@@ -290,7 +290,7 @@ const Ye = Qt("ingredientForm", function() {
290
290
  });
291
291
  function Nn() {
292
292
  var l;
293
- const { updateIngredient: q, deleteIngredient: _ } = Ye(), k = Fe(), u = Ee(), { t: x } = pe(), C = Ge();
293
+ const { updateIngredient: q, deleteIngredient: h } = Ye(), k = Fe(), u = Ee(), { t: _ } = pe(), C = Ge();
294
294
  async function A(i, m) {
295
295
  const a = wt(m);
296
296
  if (i === Pe.Edit) {
@@ -298,7 +298,7 @@ function Nn() {
298
298
  return;
299
299
  }
300
300
  if (i === Pe.Delete) {
301
- await _(a);
301
+ await h(a);
302
302
  return;
303
303
  }
304
304
  }
@@ -312,13 +312,13 @@ function Nn() {
312
312
  ] : [],
313
313
  {
314
314
  accessorKey: "code",
315
- header: () => x("inventory.ingredient.code"),
315
+ header: () => _("inventory.ingredient.code"),
316
316
  enableSorting: !0,
317
317
  size: 200
318
318
  },
319
319
  {
320
320
  accessorKey: "name",
321
- header: () => x("inventory.ingredient.name"),
321
+ header: () => _("inventory.ingredient.name"),
322
322
  enableSorting: !0,
323
323
  size: 300,
324
324
  cell(i) {
@@ -338,7 +338,7 @@ function Nn() {
338
338
  });
339
339
  },
340
340
  content() {
341
- return x("inventory.inventoryBindings.circularError");
341
+ return _("inventory.inventoryBindings.circularError");
342
342
  }
343
343
  }
344
344
  ) : null,
@@ -348,7 +348,7 @@ function Nn() {
348
348
  },
349
349
  {
350
350
  id: "unit",
351
- header: () => x("inventory.ingredient.unit"),
351
+ header: () => _("inventory.ingredient.unit"),
352
352
  accessorFn: (i) => bt(i),
353
353
  cell(i) {
354
354
  const m = i.row.original, a = bt(m);
@@ -369,7 +369,7 @@ function Nn() {
369
369
  },
370
370
  {
371
371
  accessorKey: "isInactive",
372
- header: () => x("inventory.ingredient.status.title"),
372
+ header: () => _("inventory.ingredient.status.title"),
373
373
  cell(i) {
374
374
  const m = i.row.original.isInactive;
375
375
  return Z(
@@ -380,7 +380,7 @@ function Nn() {
380
380
  m ? "bg-red-100 text-red-700" : "bg-green-100 text-green-700"
381
381
  ].join(" ")
382
382
  },
383
- x(m ? "inventory.ingredient.status.inactive" : "inventory.ingredient.status.active")
383
+ _(m ? "inventory.ingredient.status.inactive" : "inventory.ingredient.status.active")
384
384
  );
385
385
  },
386
386
  enableSorting: !0
@@ -426,9 +426,9 @@ function Nn() {
426
426
  ] };
427
427
  }
428
428
  function bt(q) {
429
- var _;
429
+ var h;
430
430
  if (q.trackingMeasurement) {
431
- const k = (_ = q.unit.measurements) == null ? void 0 : _.find((u) => u.id === q.trackingMeasurement);
431
+ const k = (h = q.unit.measurements) == null ? void 0 : h.find((u) => u.id === q.trackingMeasurement);
432
432
  if (k)
433
433
  return `${k.name} (${k.abbrev})`;
434
434
  }
@@ -443,14 +443,14 @@ const zn = /* @__PURE__ */ ke({
443
443
  readonly: { type: Boolean }
444
444
  },
445
445
  emits: ["update:modelValue"],
446
- setup(q, { emit: _ }) {
446
+ setup(q, { emit: h }) {
447
447
  const k = q, u = g(() => {
448
448
  var d;
449
449
  return (d = k.rootValue) == null ? void 0 : d.unit;
450
- }), x = g(() => {
450
+ }), _ = g(() => {
451
451
  var d;
452
452
  return (d = k.rootValue) == null ? void 0 : d._id;
453
- }), C = _, { t: A } = pe(), U = g({
453
+ }), C = h, { t: A } = pe(), U = g({
454
454
  get() {
455
455
  return !!k.modelValue;
456
456
  },
@@ -480,7 +480,7 @@ const zn = /* @__PURE__ */ ke({
480
480
  variant: "outlined",
481
481
  class: "p-16 flex flex-col gap-16"
482
482
  }, {
483
- default: b(() => {
483
+ default: x(() => {
484
484
  var p, B;
485
485
  return [
486
486
  s(f, {
@@ -503,10 +503,10 @@ const zn = /* @__PURE__ */ ke({
503
503
  }, null, 8, ["label", "modelValue", "items", "disabled"])
504
504
  ]),
505
505
  s(rn, {
506
- id: x.value,
506
+ id: _.value,
507
507
  "model-value": ((B = d.modelValue) == null ? void 0 : B.inventoryBindings) ?? [],
508
508
  "onUpdate:modelValue": m,
509
- "exclude-binding-id": x.value,
509
+ "exclude-binding-id": _.value,
510
510
  rules: [o(Oe)(1)],
511
511
  readonly: d.readonly,
512
512
  "allow-recipe-decimal": ""
@@ -518,31 +518,31 @@ const zn = /* @__PURE__ */ ke({
518
518
  });
519
519
  };
520
520
  }
521
- }), Ln = { class: "flex gap-8" }, jn = { class: "flex-1" }, Wn = { class: "flex-1" }, qn = { class: "flex flex-col gap-5" }, Hn = { class: "text-fm-color-typo-secondary" }, Yn = { class: "text-fm-color-typo-secondary whitespace-nowrap" }, Kn = {
521
+ }), Ln = { class: "flex gap-8" }, jn = { class: "flex-1" }, Wn = { class: "flex-1" }, qn = { class: "flex flex-col gap-5" }, Hn = { class: "flex items-center gap-8" }, Yn = { class: "flex items-center gap-8" }, Kn = { class: "flex items-center gap-8" }, Gn = { class: "text-fm-color-typo-secondary" }, Jn = { class: "text-fm-color-typo-secondary whitespace-nowrap" }, Qn = {
522
522
  key: 3,
523
523
  class: "border-1 border-fm-color-neutral-gray-200 fm-corner-radius-lg flex flex-col p-16 gap-16"
524
- }, Gn = { class: "flex flex-col" }, Jn = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, Qn = {
524
+ }, Xn = { class: "flex flex-col" }, Zn = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, eo = {
525
525
  key: 4,
526
526
  class: "border-1 border-fm-color-neutral-gray-200 fm-corner-radius-lg flex flex-col p-16 gap-16"
527
- }, Xn = { class: "flex flex-col gap-12" }, Zn = { class: "flex flex-col gap-4" }, eo = { class: "fm-typo-en-title-sm-600" }, to = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, no = { class: "flex flex-col gap-4" }, oo = { class: "flex fm-corner-radius-md border-1 border-fm-color-neutral-gray-200" }, lo = { class: "flex-1 p-12 flex flex-col gap-8" }, ao = { class: "mx-auto" }, so = { class: "flex flex-col" }, ro = { class: "fm-typo-en-body-sm-600 translate-y-4" }, io = { class: "flex-1 p-12 flex flex-col gap-8" }, uo = { class: "mx-auto" }, mo = { class: "flex flex-col" }, co = { class: "fm-typo-en-body-sm-600 translate-y-4" }, po = { class: "flex-1 p-12 flex flex-col gap-8" }, vo = { class: "mx-auto" }, fo = { class: "flex flex-col" }, yo = { class: "fm-typo-en-body-sm-600 translate-y-4" }, go = {
527
+ }, to = { class: "flex flex-col gap-12" }, no = { class: "flex flex-col gap-4" }, oo = { class: "flex items-center gap-8" }, lo = { class: "fm-typo-en-title-sm-600" }, ao = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, so = { class: "flex flex-col gap-4" }, ro = { class: "flex fm-corner-radius-md border-1 border-fm-color-neutral-gray-200" }, io = { class: "flex-1 p-12 flex flex-col gap-8" }, uo = { class: "mx-auto" }, mo = { class: "flex flex-col" }, co = { class: "fm-typo-en-body-sm-600 translate-y-4" }, po = { class: "flex-1 p-12 flex flex-col gap-8" }, vo = { class: "mx-auto" }, fo = { class: "flex flex-col" }, yo = { class: "fm-typo-en-body-sm-600 translate-y-4" }, go = { class: "flex-1 p-12 flex flex-col gap-8" }, bo = { class: "mx-auto" }, ho = { class: "flex flex-col" }, _o = { class: "fm-typo-en-body-sm-600 translate-y-4" }, xo = {
528
528
  key: 5,
529
529
  class: "flex flex-col gap-12"
530
- }, bo = { class: "flex flex-col" }, ho = { class: "flex items-center justify-between" }, _o = { class: "fm-typo-en-title-sm-600" }, xo = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, ko = {
530
+ }, ko = { class: "flex flex-col" }, wo = { class: "flex items-center justify-between" }, To = { class: "flex items-center gap-8" }, Vo = { class: "fm-typo-en-title-sm-600" }, Io = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, So = {
531
531
  key: 0,
532
532
  class: "flex flex-col gap-8"
533
- }, wo = { class: "flex flex-wrap gap-8" }, To = {
533
+ }, Co = { class: "flex flex-wrap gap-8" }, Fo = {
534
534
  key: 6,
535
535
  class: "flex flex-col gap-12"
536
- }, Vo = { class: "flex flex-col" }, Io = { class: "flex items-center justify-between" }, So = { class: "fm-typo-en-title-sm-600" }, Co = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, Fo = {
536
+ }, Ao = { class: "flex flex-col" }, Eo = { class: "flex items-center justify-between" }, $o = { class: "flex items-center gap-8" }, Mo = { class: "fm-typo-en-title-sm-600" }, Uo = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, Po = {
537
537
  key: 0,
538
538
  class: "flex flex-col gap-8"
539
- }, Ao = { class: "flex flex-wrap gap-8" }, Eo = {
539
+ }, Ro = { class: "flex flex-wrap gap-8" }, Oo = {
540
540
  key: 7,
541
541
  class: "flex flex-col gap-12"
542
- }, $o = { class: "flex flex-col" }, Mo = { class: "flex items-center justify-between" }, Uo = { class: "fm-typo-en-title-sm-600" }, Po = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, Ro = {
542
+ }, Bo = { class: "flex flex-col" }, Do = { class: "flex items-center justify-between" }, No = { class: "flex items-center gap-8" }, zo = { class: "fm-typo-en-title-sm-600" }, Lo = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, jo = {
543
543
  key: 0,
544
544
  class: "flex flex-col gap-8"
545
- }, Oo = { class: "flex flex-wrap gap-8" }, Bo = /* @__PURE__ */ ke({
545
+ }, Wo = { class: "flex flex-wrap gap-8" }, qo = /* @__PURE__ */ ke({
546
546
  __name: "IngredientForm",
547
547
  props: /* @__PURE__ */ st({
548
548
  mode: {},
@@ -556,19 +556,19 @@ const zn = /* @__PURE__ */ ke({
556
556
  searchModifiers: {}
557
557
  }),
558
558
  emits: /* @__PURE__ */ st(["update:modelValue", "click:submit", "update:purchaseOrderTemplateIds", "update:wastageTemplateIds", "update:closingTemplateIds"], ["update:search"]),
559
- setup(q, { expose: _, emit: k }) {
559
+ setup(q, { expose: h, emit: k }) {
560
560
  var Xe;
561
- const { t: u } = pe(), x = Ke();
561
+ const { t: u } = pe(), _ = Ke();
562
562
  Ae();
563
563
  const C = Vt(), A = It(), U = St(), l = q, i = k, m = Fe(), a = Ge(), d = Tt(), r = Ee(), f = g(() => r.isEnabled);
564
564
  P(void 0);
565
565
  const w = P([]), F = P([]), p = P([]), B = P(!1);
566
566
  function R(e) {
567
567
  if (e.length === 0) return;
568
- const t = e[0], h = l.modelValue ?? {
568
+ const t = e[0], b = l.modelValue ?? {
569
569
  unit: m.units.find((I) => I)
570
570
  };
571
- h.unit || (h.unit = t, i("update:modelValue", h));
571
+ b.unit || (b.unit = t, i("update:modelValue", b));
572
572
  }
573
573
  Ot(() => {
574
574
  R(m.units), l.mode === W.CREATE && (d.mustUsePoTemplate && ne(), d.enableWastageTemplate && ue(), d.enableClosingTemplate && oe());
@@ -650,12 +650,12 @@ const zn = /* @__PURE__ */ ke({
650
650
  }
651
651
  }), fe = g({
652
652
  get() {
653
- var t, h;
654
- const e = (h = (t = l.modelValue) == null ? void 0 : t.defaultCost) == null ? void 0 : h.costPerUnit;
653
+ var t, b;
654
+ const e = (b = (t = l.modelValue) == null ? void 0 : t.defaultCost) == null ? void 0 : b.costPerUnit;
655
655
  return e ? +un(e) : 0;
656
656
  },
657
657
  set(e) {
658
- var h, I, Y, D;
658
+ var b, I, Y, D;
659
659
  const t = l.modelValue ? {
660
660
  ...l.modelValue
661
661
  } : {};
@@ -663,7 +663,7 @@ const zn = /* @__PURE__ */ ke({
663
663
  costPerUnit: {
664
664
  amount: 0,
665
665
  precision: 2,
666
- currency: ((h = dt(a.currentCountry.value)) == null ? void 0 : h.currency) ?? "MYR"
666
+ currency: ((b = dt(a.currentCountry.value)) == null ? void 0 : b.currency) ?? "MYR"
667
667
  },
668
668
  measurement: (D = (Y = (I = l.modelValue) == null ? void 0 : I.unit) == null ? void 0 : Y.measurements) == null ? void 0 : D.find(
669
669
  (se) => {
@@ -677,25 +677,25 @@ const zn = /* @__PURE__ */ ke({
677
677
  }, i("update:modelValue", t);
678
678
  }
679
679
  }), ye = g(() => {
680
- var t, h, I;
680
+ var t, b, I;
681
681
  const e = ((t = l.modelValue) == null ? void 0 : t.unit) ?? m.units.find((Y) => Y);
682
682
  return e ? {
683
683
  _id: e._id,
684
- measurement: (h = l.modelValue) == null ? void 0 : h.trackingMeasurement,
684
+ measurement: (b = l.modelValue) == null ? void 0 : b.trackingMeasurement,
685
685
  name: ((I = e.measurements.find((Y) => {
686
686
  var D;
687
687
  return Y.id === ((D = l.modelValue) == null ? void 0 : D.trackingMeasurement);
688
688
  })) == null ? void 0 : I.name) ?? e.name
689
689
  } : null;
690
690
  }), we = g(
691
- () => m.units.flatMap(({ name: e, _id: t, abbrev: h, measurements: I }) => [
691
+ () => m.units.flatMap(({ name: e, _id: t, abbrev: b, measurements: I }) => [
692
692
  {
693
693
  label: `${e}`,
694
694
  value: null,
695
695
  displayAsSection: !0
696
696
  },
697
697
  {
698
- label: `${e} (${h})`,
698
+ label: `${e} (${b})`,
699
699
  value: { _id: t },
700
700
  displayAsSection: !1
701
701
  },
@@ -712,13 +712,13 @@ const zn = /* @__PURE__ */ ke({
712
712
  })
713
713
  ), G = g(() => M.value.search(y.value));
714
714
  function E(e) {
715
- var t, h, I, Y, D;
716
- return ((h = (t = l.modelValue) == null ? void 0 : t.unit) == null ? void 0 : h._id) === ((I = e.value) == null ? void 0 : I._id) && ((Y = l.modelValue) == null ? void 0 : Y.trackingMeasurement) === ((D = e.value) == null ? void 0 : D.measurement);
715
+ var t, b, I, Y, D;
716
+ return ((b = (t = l.modelValue) == null ? void 0 : t.unit) == null ? void 0 : b._id) === ((I = e.value) == null ? void 0 : I._id) && ((Y = l.modelValue) == null ? void 0 : Y.trackingMeasurement) === ((D = e.value) == null ? void 0 : D.measurement);
717
717
  }
718
718
  function v(e) {
719
719
  var se, re;
720
720
  if (!e) return;
721
- const { _id: t, measurement: h } = e, I = h || void 0, Y = m.units.find((Se) => Se._id === t);
721
+ const { _id: t, measurement: b } = e, I = b || void 0, Y = m.units.find((Se) => Se._id === t);
722
722
  if (!Y)
723
723
  return;
724
724
  const D = l.modelValue ?? {};
@@ -775,7 +775,7 @@ const zn = /* @__PURE__ */ ke({
775
775
  t.customAttributes = e, i("update:modelValue", t);
776
776
  }
777
777
  }), H = P();
778
- _({
778
+ h({
779
779
  validateInputs: () => {
780
780
  var e, t;
781
781
  (t = (e = H.value) == null ? void 0 : e.validateInputs) == null || t.call(e);
@@ -791,35 +791,35 @@ const zn = /* @__PURE__ */ ke({
791
791
  });
792
792
  const O = P(!1), K = g(
793
793
  () => {
794
- var e, t, h;
795
- return (e = l.modelValue) != null && e._id ? ((h = m.menu.bindedBySkuId[(t = l.modelValue) == null ? void 0 : t._id]) == null ? void 0 : h.filter(
794
+ var e, t, b;
795
+ return (e = l.modelValue) != null && e._id ? ((b = m.menu.bindedBySkuId[(t = l.modelValue) == null ? void 0 : t._id]) == null ? void 0 : b.filter(
796
796
  (I) => I.from === "INGREDIENT"
797
797
  )) ?? [] : [];
798
798
  }
799
799
  ), L = g(
800
800
  () => {
801
- var e, t, h;
802
- return (e = l.modelValue) != null && e._id ? ((h = m.menu.bindedBySkuId[(t = l.modelValue) == null ? void 0 : t._id]) == null ? void 0 : h.filter(
801
+ var e, t, b;
802
+ return (e = l.modelValue) != null && e._id ? ((b = m.menu.bindedBySkuId[(t = l.modelValue) == null ? void 0 : t._id]) == null ? void 0 : b.filter(
803
803
  (I) => I.from === "RECIPE"
804
804
  )) ?? [] : [];
805
805
  }
806
806
  ), ge = g(
807
807
  () => {
808
- var e, t, h;
809
- return (e = l.modelValue) != null && e._id ? ((h = m.menu.bindedBySkuId[(t = l.modelValue) == null ? void 0 : t._id]) == null ? void 0 : h.filter((I) => I.from === "MENU")) ?? [] : [];
808
+ var e, t, b;
809
+ return (e = l.modelValue) != null && e._id ? ((b = m.menu.bindedBySkuId[(t = l.modelValue) == null ? void 0 : t._id]) == null ? void 0 : b.filter((I) => I.from === "MENU")) ?? [] : [];
810
810
  }
811
811
  ), $e = g(
812
812
  () => m.skus.map((e) => ({ label: e.name, value: e.code }))
813
813
  ), Me = P((Xe = l.modelValue) == null ? void 0 : Xe.code);
814
814
  function Ue(e) {
815
- var h;
815
+ var b;
816
816
  const t = e.el;
817
- t && ((h = t.querySelector("[x-should-scroll-into=true]")) == null || h.scrollIntoView());
817
+ t && ((b = t.querySelector("[x-should-scroll-into=true]")) == null || b.scrollIntoView());
818
818
  }
819
819
  const be = g(
820
820
  () => {
821
- var e, t, h, I, Y, D;
822
- return ((I = (h = (t = (e = l.modelValue) == null ? void 0 : e.unit) == null ? void 0 : t.measurements) == null ? void 0 : h.find(
821
+ var e, t, b, I, Y, D;
822
+ return ((I = (b = (t = (e = l.modelValue) == null ? void 0 : e.unit) == null ? void 0 : t.measurements) == null ? void 0 : b.find(
823
823
  (se) => {
824
824
  var re;
825
825
  return se.id === ((re = l.modelValue) == null ? void 0 : re.trackingMeasurement);
@@ -835,10 +835,10 @@ const zn = /* @__PURE__ */ ke({
835
835
  var I;
836
836
  const t = ((I = l.modelValue) == null ? void 0 : I.thresholds) ?? Re();
837
837
  t.low = e;
838
- const h = l.modelValue ? {
838
+ const b = l.modelValue ? {
839
839
  ...l.modelValue
840
840
  } : {};
841
- h.thresholds = t, i("update:modelValue", h);
841
+ b.thresholds = t, i("update:modelValue", b);
842
842
  }
843
843
  }), ce = g({
844
844
  get() {
@@ -849,10 +849,10 @@ const zn = /* @__PURE__ */ ke({
849
849
  var I;
850
850
  const t = ((I = l.modelValue) == null ? void 0 : I.thresholds) ?? Re();
851
851
  t.mid = e;
852
- const h = l.modelValue ? {
852
+ const b = l.modelValue ? {
853
853
  ...l.modelValue
854
854
  } : {};
855
- h.thresholds = t, i("update:modelValue", h);
855
+ b.thresholds = t, i("update:modelValue", b);
856
856
  }
857
857
  }), Te = g(() => d.mustUsePoTemplate && l.mode === W.CREATE && w.value.length > 0 ? w.value.map((e) => ({
858
858
  label: e.name || "Template",
@@ -871,7 +871,7 @@ const zn = /* @__PURE__ */ ke({
871
871
  (e) => (l.closingTemplateIds ?? []).includes(e.value)
872
872
  ));
873
873
  function Ct() {
874
- x.open({
874
+ _.open({
875
875
  title: u("inventory.ingredient.purchaseOrderTemplates.selectTitle"),
876
876
  closeButton: !0,
877
877
  contentComponent: He,
@@ -893,7 +893,7 @@ const zn = /* @__PURE__ */ ke({
893
893
  });
894
894
  }
895
895
  function Ft() {
896
- x.open({
896
+ _.open({
897
897
  title: u("inventory.ingredient.wastageTemplates.selectTitle"),
898
898
  closeButton: !0,
899
899
  contentComponent: He,
@@ -915,7 +915,7 @@ const zn = /* @__PURE__ */ ke({
915
915
  });
916
916
  }
917
917
  function At() {
918
- x.open({
918
+ _.open({
919
919
  title: u("inventory.ingredient.closingTemplates.selectTitle"),
920
920
  closeButton: !0,
921
921
  contentComponent: He,
@@ -942,7 +942,7 @@ const zn = /* @__PURE__ */ ke({
942
942
  };
943
943
  }
944
944
  return (e, t) => {
945
- const h = S("FmTextField"), I = S("FmLabel"), Y = S("FmField"), D = S("FmIcon"), se = S("FmMenuHeader"), re = S("FmMenuDivider"), Se = S("FmMenuItem"), $t = S("FmMenu"), Ze = S("FmFormGroup"), Mt = S("FmSelect"), et = S("FmSwitch"), tt = S("FmStepperField"), De = S("FmButton"), Ne = S("FmChip"), Ut = S("FmForm");
945
+ const b = S("FmTextField"), I = S("FmLabel"), Y = S("FmField"), D = S("FmIcon"), se = S("FmMenuHeader"), re = S("FmMenuDivider"), Se = S("FmMenuItem"), $t = S("FmMenu"), Ze = S("FmFormGroup"), Mt = S("FmSelect"), et = S("FmSwitch"), tt = S("FmStepperField"), De = S("FmButton"), Ne = S("FmChip"), Ut = S("FmForm");
946
946
  return c(), j(Ut, {
947
947
  disabled: e.disabled,
948
948
  ref_key: "formRef",
@@ -950,7 +950,7 @@ const zn = /* @__PURE__ */ ke({
950
950
  class: "flex flex-col gap-32",
951
951
  onValidationSuccess: ve
952
952
  }, {
953
- default: b(() => {
953
+ default: x(() => {
954
954
  var nt, ot, lt, at;
955
955
  return [
956
956
  n("div", Ln, [
@@ -964,8 +964,8 @@ const zn = /* @__PURE__ */ ke({
964
964
  locked: f.value,
965
965
  disabled: e.disabled
966
966
  }, {
967
- default: b(() => [
968
- s(h, {
967
+ default: x(() => [
968
+ s(b, {
969
969
  label: o(u)("inventory.ingredient.code"),
970
970
  "model-value": le.value,
971
971
  "onUpdate:modelValue": t[0] || (t[0] = (T) => le.value = T),
@@ -986,8 +986,8 @@ const zn = /* @__PURE__ */ ke({
986
986
  locked: f.value,
987
987
  disabled: e.disabled
988
988
  }, {
989
- default: b(() => [
990
- s(h, {
989
+ default: x(() => [
990
+ s(b, {
991
991
  label: o(u)("inventory.ingredient.name"),
992
992
  "model-value": ae.value,
993
993
  "onUpdate:modelValue": t[2] || (t[2] = (T) => ae.value = T),
@@ -1008,20 +1008,20 @@ const zn = /* @__PURE__ */ ke({
1008
1008
  locked: f.value,
1009
1009
  disabled: e.disabled
1010
1010
  }, {
1011
- default: b(() => [
1011
+ default: x(() => [
1012
1012
  s(Ze, {
1013
1013
  "model-value": ye.value,
1014
1014
  rules: [o(Le)()],
1015
1015
  "label-mark": "required"
1016
1016
  }, {
1017
- label: b(() => [
1017
+ label: x(() => [
1018
1018
  s(I, {
1019
1019
  label: o(u)("inventory.ingredient.unit")
1020
1020
  }, null, 8, ["label"])
1021
1021
  ]),
1022
- default: b(({ invalid: T }) => [
1022
+ default: x(({ invalid: T }) => [
1023
1023
  s($t, null, {
1024
- "menu-button": b(() => [
1024
+ "menu-button": x(() => [
1025
1025
  s(Y, {
1026
1026
  class: ie([
1027
1027
  "fm-typo-en-body-lg-400",
@@ -1033,7 +1033,7 @@ const zn = /* @__PURE__ */ ke({
1033
1033
  invalid: T,
1034
1034
  "append-icon": "expand_more"
1035
1035
  }, {
1036
- default: b(() => {
1036
+ default: x(() => {
1037
1037
  var X;
1038
1038
  return [
1039
1039
  xt($((X = ye.value) == null ? void 0 : X.name), 1)
@@ -1042,14 +1042,14 @@ const zn = /* @__PURE__ */ ke({
1042
1042
  _: 2
1043
1043
  }, 1032, ["class", "invalid"])
1044
1044
  ]),
1045
- default: b(() => [
1045
+ default: x(() => [
1046
1046
  n("div", qn, [
1047
- s(h, {
1047
+ s(b, {
1048
1048
  modelValue: y.value,
1049
1049
  "onUpdate:modelValue": t[4] || (t[4] = (X) => y.value = X),
1050
1050
  placeholder: "Filter options"
1051
1051
  }, {
1052
- prepend: b(() => [
1052
+ prepend: x(() => [
1053
1053
  s(D, { name: "search" })
1054
1054
  ]),
1055
1055
  _: 1
@@ -1068,7 +1068,7 @@ const zn = /* @__PURE__ */ ke({
1068
1068
  key: 1,
1069
1069
  label: X.label,
1070
1070
  "model-value": E(X),
1071
- onClick: (dl) => v(X.value),
1071
+ onClick: (yl) => v(X.value),
1072
1072
  "x-should-scroll-into": `${E(X)}`
1073
1073
  }, null, 8, ["label", "model-value", "onClick", "x-should-scroll-into"]))
1074
1074
  ], 64))), 128))
@@ -1092,17 +1092,18 @@ const zn = /* @__PURE__ */ ke({
1092
1092
  locked: f.value,
1093
1093
  disabled: e.disabled
1094
1094
  }, {
1095
- label: b(() => [
1096
- s(xe, { "z-index": 50 }, {
1097
- default: b(() => [
1098
- s(I, {
1099
- label: o(u)("inventory.ingredient.valuationMethod.title")
1100
- }, null, 8, ["label"])
1101
- ]),
1102
- _: 1
1103
- })
1095
+ label: x(() => [
1096
+ n("div", Hn, [
1097
+ s(I, {
1098
+ label: o(u)("inventory.ingredient.valuationMethod.title")
1099
+ }, null, 8, ["label"]),
1100
+ s(xe, {
1101
+ tier: "premium",
1102
+ category: "premium"
1103
+ })
1104
+ ])
1104
1105
  ]),
1105
- default: b(() => [
1106
+ default: x(() => [
1106
1107
  s(Mt, {
1107
1108
  class: "col-span-2",
1108
1109
  label: o(u)("inventory.ingredient.valuationMethod.title"),
@@ -1122,40 +1123,42 @@ const zn = /* @__PURE__ */ ke({
1122
1123
  "append-text": `/ ${be.value}`,
1123
1124
  disabled: e.disabled
1124
1125
  }, {
1125
- label: b(() => [
1126
- s(xe, { "z-index": 50 }, {
1127
- default: b(() => [
1128
- s(I, {
1129
- label: o(u)("inventory.ingredient.pricePerUnit")
1130
- }, null, 8, ["label"])
1131
- ]),
1132
- _: 1
1133
- })
1126
+ label: x(() => [
1127
+ n("div", Yn, [
1128
+ s(I, {
1129
+ label: o(u)("inventory.ingredient.pricePerUnit")
1130
+ }, null, 8, ["label"]),
1131
+ s(xe, {
1132
+ tier: "premium",
1133
+ category: "premium"
1134
+ })
1135
+ ])
1134
1136
  ]),
1135
- default: b(() => [
1136
- s(h, {
1137
+ default: x(() => [
1138
+ s(b, {
1137
1139
  "model-value": fe.value,
1138
1140
  "onUpdate:modelValue": t[6] || (t[6] = (T) => fe.value = T),
1139
1141
  rules: [o(Oe)(0), o(ln)(4)]
1140
1142
  }, {
1141
- label: b(() => [
1142
- s(xe, { "z-index": 50 }, {
1143
- default: b(() => [
1144
- s(I, {
1145
- label: o(u)("inventory.ingredient.pricePerUnit")
1146
- }, null, 8, ["label"])
1147
- ]),
1148
- _: 1
1149
- })
1143
+ label: x(() => [
1144
+ n("div", Kn, [
1145
+ s(I, {
1146
+ label: o(u)("inventory.ingredient.pricePerUnit")
1147
+ }, null, 8, ["label"]),
1148
+ s(xe, {
1149
+ tier: "premium",
1150
+ category: "premium"
1151
+ })
1152
+ ])
1150
1153
  ]),
1151
- prepend: b(() => {
1154
+ prepend: x(() => {
1152
1155
  var T, X;
1153
1156
  return [
1154
- n("div", Hn, $(o(mt)(((T = o(a).currentCountry) == null ? void 0 : T.value) ?? o(ct)) === "MYR" ? "RM" : o(mt)(((X = o(a).currentCountry) == null ? void 0 : X.value) ?? o(ct))), 1)
1157
+ n("div", Gn, $(o(mt)(((T = o(a).currentCountry) == null ? void 0 : T.value) ?? o(ct)) === "MYR" ? "RM" : o(mt)(((X = o(a).currentCountry) == null ? void 0 : X.value) ?? o(ct))), 1)
1155
1158
  ];
1156
1159
  }),
1157
- append: b(() => [
1158
- n("div", Yn, " / " + $(be.value), 1)
1160
+ append: x(() => [
1161
+ n("div", Jn, " / " + $(be.value), 1)
1159
1162
  ]),
1160
1163
  _: 1
1161
1164
  }, 8, ["model-value", "rules"])
@@ -1169,7 +1172,7 @@ const zn = /* @__PURE__ */ ke({
1169
1172
  "root-value": e.modelValue,
1170
1173
  readonly: f.value
1171
1174
  }, null, 8, ["model-value", "root-value", "readonly"])) : N("", !0),
1172
- e.mode !== o(W).CREATE ? (c(), V("div", Kn, [
1175
+ e.mode !== o(W).CREATE ? (c(), V("div", Qn, [
1173
1176
  s(et, {
1174
1177
  label: o(u)("inventory.ingredient.status.inactive"),
1175
1178
  "model-value": te.value,
@@ -1177,11 +1180,11 @@ const zn = /* @__PURE__ */ ke({
1177
1180
  "label-placement": "right",
1178
1181
  disabled: f.value
1179
1182
  }, null, 8, ["label", "model-value", "disabled"]),
1180
- n("div", Gn, [
1181
- n("div", Jn, $(o(u)("inventory.ingredient.status.preventFromOrder")), 1)
1183
+ n("div", Xn, [
1184
+ n("div", Zn, $(o(u)("inventory.ingredient.status.preventFromOrder")), 1)
1182
1185
  ])
1183
1186
  ])) : N("", !0),
1184
- e.mode !== o(W).CREATE ? (c(), V("div", Qn, [
1187
+ e.mode !== o(W).CREATE ? (c(), V("div", eo, [
1185
1188
  n("div", null, [
1186
1189
  s(et, {
1187
1190
  label: o(u)("inventory.ingredient.bindedItems.title"),
@@ -1206,37 +1209,38 @@ const zn = /* @__PURE__ */ ke({
1206
1209
  bindings: ge.value
1207
1210
  }, null, 8, ["name", "bindings"])) : N("", !0)
1208
1211
  ])) : N("", !0),
1209
- n("div", Xn, [
1210
- n("div", Zn, [
1211
- s(xe, null, {
1212
- default: b(() => [
1213
- n("div", eo, $(o(u)("inventory.ingredient.threshold.title")), 1)
1214
- ]),
1215
- _: 1
1216
- }),
1217
- n("div", to, $(o(u)("inventory.ingredient.threshold.subtitle")), 1)
1218
- ]),
1212
+ n("div", to, [
1219
1213
  n("div", no, [
1214
+ n("div", oo, [
1215
+ n("div", lo, $(o(u)("inventory.ingredient.threshold.title")), 1),
1216
+ s(xe, {
1217
+ tier: "standard",
1218
+ category: "beta"
1219
+ })
1220
+ ]),
1221
+ n("div", ao, $(o(u)("inventory.ingredient.threshold.subtitle")), 1)
1222
+ ]),
1223
+ n("div", so, [
1220
1224
  s(Ze, {
1221
1225
  "model-value": { low: he.value, mid: ce.value },
1222
1226
  rules: [Et()]
1223
1227
  }, null, 8, ["model-value", "rules"]),
1224
- n("div", oo, [
1225
- n("div", lo, [
1226
- n("div", ao, [
1228
+ n("div", ro, [
1229
+ n("div", io, [
1230
+ n("div", uo, [
1227
1231
  s(je, {
1228
1232
  days: he.value,
1229
1233
  level: o(We).low
1230
1234
  }, null, 8, ["days", "level"])
1231
1235
  ]),
1232
- n("div", so, [
1233
- n("div", ro, $(o(u)("inventory.ingredient.threshold.whenRemaining")), 1),
1236
+ n("div", mo, [
1237
+ n("div", co, $(o(u)("inventory.ingredient.threshold.whenRemaining")), 1),
1234
1238
  s(tt, {
1235
1239
  modelValue: he.value,
1236
1240
  "onUpdate:modelValue": t[10] || (t[10] = (T) => he.value = T),
1237
1241
  rules: [o(Oe)(0)]
1238
1242
  }, {
1239
- append: b(() => t[13] || (t[13] = [
1243
+ append: x(() => t[13] || (t[13] = [
1240
1244
  n("div", {
1241
1245
  class: "text-fm-color-typo-secondary",
1242
1246
  style: { "padding-right": "32px" }
@@ -1255,21 +1259,21 @@ const zn = /* @__PURE__ */ ke({
1255
1259
  style: { transform: "translate(-50%, -50%)", left: "50%", top: "24px" }
1256
1260
  }, " < ")
1257
1261
  ], -1)),
1258
- n("div", io, [
1259
- n("div", uo, [
1262
+ n("div", po, [
1263
+ n("div", vo, [
1260
1264
  s(je, {
1261
1265
  days: ce.value,
1262
1266
  level: o(We).mid
1263
1267
  }, null, 8, ["days", "level"])
1264
1268
  ]),
1265
- n("div", mo, [
1266
- n("div", co, $(o(u)("inventory.ingredient.threshold.whenRemaining")), 1),
1269
+ n("div", fo, [
1270
+ n("div", yo, $(o(u)("inventory.ingredient.threshold.whenRemaining")), 1),
1267
1271
  s(tt, {
1268
1272
  modelValue: ce.value,
1269
1273
  "onUpdate:modelValue": t[11] || (t[11] = (T) => ce.value = T),
1270
1274
  rules: [o(Oe)(0)]
1271
1275
  }, {
1272
- append: b(() => t[14] || (t[14] = [
1276
+ append: x(() => t[14] || (t[14] = [
1273
1277
  n("div", {
1274
1278
  class: "text-fm-color-typo-secondary",
1275
1279
  style: { "padding-right": "32px" }
@@ -1288,29 +1292,30 @@ const zn = /* @__PURE__ */ ke({
1288
1292
  style: { transform: "translate(-50%, -50%)", left: "50%", top: "24px" }
1289
1293
  }, " < ")
1290
1294
  ], -1)),
1291
- n("div", po, [
1292
- n("div", vo, [
1295
+ n("div", go, [
1296
+ n("div", bo, [
1293
1297
  s(je, {
1294
1298
  days: ce.value + 1,
1295
1299
  level: o(We).high
1296
1300
  }, null, 8, ["days", "level"])
1297
1301
  ]),
1298
- n("div", fo, [
1299
- n("div", yo, $(o(u)("inventory.ingredient.threshold.stockIsStaple")), 1)
1302
+ n("div", ho, [
1303
+ n("div", _o, $(o(u)("inventory.ingredient.threshold.stockIsStaple")), 1)
1300
1304
  ])
1301
1305
  ])
1302
1306
  ])
1303
1307
  ])
1304
1308
  ]),
1305
- o(d).mustUsePoTemplate && e.mode === o(W).CREATE ? (c(), V("div", go, [
1306
- n("div", bo, [
1307
- n("div", ho, [
1308
- s(xe, null, {
1309
- default: b(() => [
1310
- n("div", _o, $(o(u)("inventory.ingredient.purchaseOrderTemplates.title")), 1)
1311
- ]),
1312
- _: 1
1313
- }),
1309
+ o(d).mustUsePoTemplate && e.mode === o(W).CREATE ? (c(), V("div", xo, [
1310
+ n("div", ko, [
1311
+ n("div", wo, [
1312
+ n("div", To, [
1313
+ n("div", Vo, $(o(u)("inventory.ingredient.purchaseOrderTemplates.title")), 1),
1314
+ s(xe, {
1315
+ tier: "premium",
1316
+ category: "premium"
1317
+ })
1318
+ ]),
1314
1319
  s(De, {
1315
1320
  variant: "secondary",
1316
1321
  "text-color": "primary",
@@ -1319,10 +1324,10 @@ const zn = /* @__PURE__ */ ke({
1319
1324
  onClick: Ct
1320
1325
  })
1321
1326
  ]),
1322
- n("div", xo, $(o(u)("inventory.ingredient.purchaseOrderTemplates.description")), 1)
1327
+ n("div", Io, $(o(u)("inventory.ingredient.purchaseOrderTemplates.description")), 1)
1323
1328
  ]),
1324
- Ve.value.length > 0 ? (c(), V("div", ko, [
1325
- n("div", wo, [
1329
+ Ve.value.length > 0 ? (c(), V("div", So, [
1330
+ n("div", Co, [
1326
1331
  (c(!0), V(ee, null, de(Ve.value, (T) => (c(), j(Ne, {
1327
1332
  key: T.value,
1328
1333
  label: T.label,
@@ -1332,15 +1337,16 @@ const zn = /* @__PURE__ */ ke({
1332
1337
  ])
1333
1338
  ])) : N("", !0)
1334
1339
  ])) : N("", !0),
1335
- o(d).enableWastageTemplate && e.mode === o(W).CREATE ? (c(), V("div", To, [
1336
- n("div", Vo, [
1337
- n("div", Io, [
1338
- s(xe, null, {
1339
- default: b(() => [
1340
- n("div", So, $(o(u)("inventory.ingredient.wastageTemplates.title")), 1)
1341
- ]),
1342
- _: 1
1343
- }),
1340
+ o(d).enableWastageTemplate && e.mode === o(W).CREATE ? (c(), V("div", Fo, [
1341
+ n("div", Ao, [
1342
+ n("div", Eo, [
1343
+ n("div", $o, [
1344
+ n("div", Mo, $(o(u)("inventory.ingredient.wastageTemplates.title")), 1),
1345
+ s(xe, {
1346
+ tier: "premium",
1347
+ category: "premium"
1348
+ })
1349
+ ]),
1344
1350
  s(De, {
1345
1351
  variant: "secondary",
1346
1352
  "text-color": "primary",
@@ -1349,10 +1355,10 @@ const zn = /* @__PURE__ */ ke({
1349
1355
  onClick: Ft
1350
1356
  })
1351
1357
  ]),
1352
- n("div", Co, $(o(u)("inventory.ingredient.wastageTemplates.description")), 1)
1358
+ n("div", Uo, $(o(u)("inventory.ingredient.wastageTemplates.description")), 1)
1353
1359
  ]),
1354
- Ie.value.length > 0 ? (c(), V("div", Fo, [
1355
- n("div", Ao, [
1360
+ Ie.value.length > 0 ? (c(), V("div", Po, [
1361
+ n("div", Ro, [
1356
1362
  (c(!0), V(ee, null, de(Ie.value, (T) => (c(), j(Ne, {
1357
1363
  key: T.value,
1358
1364
  label: T.label,
@@ -1362,15 +1368,16 @@ const zn = /* @__PURE__ */ ke({
1362
1368
  ])
1363
1369
  ])) : N("", !0)
1364
1370
  ])) : N("", !0),
1365
- o(d).enableClosingTemplate && e.mode === o(W).CREATE ? (c(), V("div", Eo, [
1366
- n("div", $o, [
1367
- n("div", Mo, [
1368
- s(xe, null, {
1369
- default: b(() => [
1370
- n("div", Uo, $(o(u)("inventory.ingredient.closingTemplates.title")), 1)
1371
- ]),
1372
- _: 1
1373
- }),
1371
+ o(d).enableClosingTemplate && e.mode === o(W).CREATE ? (c(), V("div", Oo, [
1372
+ n("div", Bo, [
1373
+ n("div", Do, [
1374
+ n("div", No, [
1375
+ n("div", zo, $(o(u)("inventory.ingredient.closingTemplates.title")), 1),
1376
+ s(xe, {
1377
+ tier: "premium",
1378
+ category: "premium"
1379
+ })
1380
+ ]),
1374
1381
  s(De, {
1375
1382
  variant: "secondary",
1376
1383
  "text-color": "primary",
@@ -1379,10 +1386,10 @@ const zn = /* @__PURE__ */ ke({
1379
1386
  onClick: At
1380
1387
  })
1381
1388
  ]),
1382
- n("div", Po, $(o(u)("inventory.ingredient.closingTemplates.description")), 1)
1389
+ n("div", Lo, $(o(u)("inventory.ingredient.closingTemplates.description")), 1)
1383
1390
  ]),
1384
- Qe.value.length > 0 ? (c(), V("div", Ro, [
1385
- n("div", Oo, [
1391
+ Qe.value.length > 0 ? (c(), V("div", jo, [
1392
+ n("div", Wo, [
1386
1393
  (c(!0), V(ee, null, de(Qe.value, (T) => (c(), j(Ne, {
1387
1394
  key: T.value,
1388
1395
  label: T.label,
@@ -1405,10 +1412,10 @@ const zn = /* @__PURE__ */ ke({
1405
1412
  }, 8, ["disabled"]);
1406
1413
  };
1407
1414
  }
1408
- }), Do = { class: "flex flex-col gap-32" }, No = {
1415
+ }), Ho = { class: "flex flex-col gap-32" }, Yo = {
1409
1416
  key: 0,
1410
1417
  class: "flex justify-between items-center"
1411
- }, zo = { class: "flex gap-4" }, Lo = /* @__PURE__ */ ke({
1418
+ }, Ko = { class: "flex gap-4" }, Go = /* @__PURE__ */ ke({
1412
1419
  __name: "IngredientDialog",
1413
1420
  props: {
1414
1421
  show: { type: Boolean },
@@ -1417,13 +1424,13 @@ const zn = /* @__PURE__ */ ke({
1417
1424
  },
1418
1425
  emits: ["update:show"],
1419
1426
  setup(q) {
1420
- const _ = q, k = Fe(), u = Tt(), x = Ee(), C = Vt(), A = It(), U = St(), l = Ae(), { t: i } = pe(), m = ft(_, "show"), a = ft(_, "sku"), d = P([]), r = P([]), f = P([]), w = g(
1427
+ const h = q, k = Fe(), u = Tt(), _ = Ee(), C = Vt(), A = It(), U = St(), l = Ae(), { t: i } = pe(), m = ft(h, "show"), a = ft(h, "sku"), d = P([]), r = P([]), f = P([]), w = g(
1421
1428
  () => {
1422
1429
  var y;
1423
- return x.isEnabled && x.netSuiteItemBySkuId.has((y = _.sku) == null ? void 0 : y._id);
1430
+ return _.isEnabled && _.netSuiteItemBySkuId.has((y = h.sku) == null ? void 0 : y._id);
1424
1431
  }
1425
1432
  ), F = g(() => {
1426
- switch (_.mode) {
1433
+ switch (h.mode) {
1427
1434
  case W.READ:
1428
1435
  return "";
1429
1436
  case W.UPDATE:
@@ -1433,7 +1440,7 @@ const zn = /* @__PURE__ */ ke({
1433
1440
  }
1434
1441
  return "";
1435
1442
  }), p = g(() => {
1436
- switch (_.mode) {
1443
+ switch (h.mode) {
1437
1444
  case W.READ:
1438
1445
  return "";
1439
1446
  case W.UPDATE:
@@ -1582,7 +1589,7 @@ const zn = /* @__PURE__ */ ke({
1582
1589
  (M = (y = B.value) == null ? void 0 : y.validateInputs) == null || M.call(y);
1583
1590
  }
1584
1591
  function ae() {
1585
- switch (_.mode) {
1592
+ switch (h.mode) {
1586
1593
  case W.READ:
1587
1594
  return;
1588
1595
  case W.UPDATE:
@@ -1610,8 +1617,8 @@ const zn = /* @__PURE__ */ ke({
1610
1617
  "dismiss-away": "",
1611
1618
  "max-width": 500
1612
1619
  }, {
1613
- "side-sheet-footer": b(() => [
1614
- n("div", zo, [
1620
+ "side-sheet-footer": x(() => [
1621
+ n("div", Ko, [
1615
1622
  s(E, {
1616
1623
  loading: R.value,
1617
1624
  label: p.value,
@@ -1625,9 +1632,9 @@ const zn = /* @__PURE__ */ ke({
1625
1632
  }, null, 8, ["disabled", "label"])
1626
1633
  ])
1627
1634
  ]),
1628
- default: b(() => [
1629
- n("div", Do, [
1630
- w.value ? (c(), V("div", No, [
1635
+ default: x(() => [
1636
+ n("div", Ho, [
1637
+ w.value ? (c(), V("div", Yo, [
1631
1638
  s(G, {
1632
1639
  label: "Managed by Netsuite",
1633
1640
  compact: ""
@@ -1635,10 +1642,10 @@ const zn = /* @__PURE__ */ ke({
1635
1642
  s(en, {
1636
1643
  readonly: "",
1637
1644
  sku: y.sku,
1638
- settingOptions: o(x).skuSettingOptions
1645
+ settingOptions: o(_).skuSettingOptions
1639
1646
  }, null, 8, ["sku", "settingOptions"])
1640
1647
  ])) : N("", !0),
1641
- s(Bo, {
1648
+ s(qo, {
1642
1649
  class: "w-full",
1643
1650
  ref_key: "hasValidationExpose",
1644
1651
  ref: B,
@@ -1660,10 +1667,10 @@ const zn = /* @__PURE__ */ ke({
1660
1667
  }, 8, ["model-value", "header"]);
1661
1668
  };
1662
1669
  }
1663
- }), jo = { class: "flex items-center gap-12 pl-8" }, Wo = { class: "flex flex-col" }, qo = { class: "fm-typo-en-body-md-400 text-fm-color-typo-primary flex items-center gap-4" }, Ho = {
1670
+ }), Jo = { class: "flex items-center gap-12 pl-8" }, Qo = { class: "flex flex-col" }, Xo = { class: "fm-typo-en-body-md-400 text-fm-color-typo-primary flex items-center gap-4" }, Zo = {
1664
1671
  key: 0,
1665
1672
  class: "text-fm-color-typo-secondary fm-typo-en-body-sm-400"
1666
- }, Yo = { key: 0 }, ht = /* @__PURE__ */ ke({
1673
+ }, el = { key: 0 }, ht = /* @__PURE__ */ ke({
1667
1674
  __name: "ImportIngredientItem",
1668
1675
  props: {
1669
1676
  type: {},
@@ -1672,28 +1679,28 @@ const zn = /* @__PURE__ */ ke({
1672
1679
  errors: {}
1673
1680
  },
1674
1681
  setup(q) {
1675
- return (_, k) => {
1676
- const u = S("FmIcon"), x = S("FmTooltip");
1677
- return c(), V("div", jo, [
1682
+ return (h, k) => {
1683
+ const u = S("FmIcon"), _ = S("FmTooltip");
1684
+ return c(), V("div", Jo, [
1678
1685
  k[0] || (k[0] = n("div", null, "•", -1)),
1679
- n("div", Wo, [
1680
- n("div", qo, [
1686
+ n("div", Qo, [
1687
+ n("div", Xo, [
1681
1688
  n("div", {
1682
1689
  class: ie({
1683
- "text-fm-color-system-error-300": _.errors.length
1690
+ "text-fm-color-system-error-300": h.errors.length
1684
1691
  })
1685
1692
  }, [
1686
- xt($(_.name) + " ", 1),
1687
- _.type === "create" ? (c(), V("span", Ho, "(new)")) : N("", !0)
1693
+ xt($(h.name) + " ", 1),
1694
+ h.type === "create" ? (c(), V("span", Zo, "(new)")) : N("", !0)
1688
1695
  ], 2),
1689
- _.errors.length ? (c(), V("div", Yo, [
1690
- s(x, { "z-index": 50 }, {
1691
- content: b(() => [
1696
+ h.errors.length ? (c(), V("div", el, [
1697
+ s(_, { "z-index": 50 }, {
1698
+ content: x(() => [
1692
1699
  n("ol", null, [
1693
- (c(!0), V(ee, null, de(_.errors, (C, A) => (c(), V("li", { key: A }, $(C), 1))), 128))
1700
+ (c(!0), V(ee, null, de(h.errors, (C, A) => (c(), V("li", { key: A }, $(C), 1))), 128))
1694
1701
  ])
1695
1702
  ]),
1696
- default: b(() => [
1703
+ default: x(() => [
1697
1704
  s(u, {
1698
1705
  name: "error",
1699
1706
  size: "sm",
@@ -1708,28 +1715,28 @@ const zn = /* @__PURE__ */ ke({
1708
1715
  class: ie([
1709
1716
  "fm-typo-en-body-sm-400",
1710
1717
  {
1711
- "text-fm-color-system-error-200": _.errors.length,
1712
- "text-fm-color-typo-secondary": !_.errors.length
1718
+ "text-fm-color-system-error-200": h.errors.length,
1719
+ "text-fm-color-typo-secondary": !h.errors.length
1713
1720
  }
1714
1721
  ])
1715
- }, $(_.code), 3)
1722
+ }, $(h.code), 3)
1716
1723
  ])
1717
1724
  ]);
1718
1725
  };
1719
1726
  }
1720
- }), Ko = { class: "flex flex-col gap-24" }, Go = { class: "fm-typo-en-body-md-400" }, Jo = { class: "flex flex-col gap-8" }, Qo = { class: "line-clamp-2 text-ellipsis break-all" }, Xo = {
1727
+ }), tl = { class: "flex flex-col gap-24" }, nl = { class: "fm-typo-en-body-md-400" }, ol = { class: "flex flex-col gap-8" }, ll = { class: "line-clamp-2 text-ellipsis break-all" }, al = {
1721
1728
  key: 2,
1722
1729
  class: "shrink-0"
1723
- }, Zo = {
1730
+ }, sl = {
1724
1731
  key: 0,
1725
1732
  class: "flex flex-col"
1726
- }, el = { class: "text-fm-color-system-error-300 fm-typo-en-body-sm-400" }, tl = {
1733
+ }, rl = { class: "text-fm-color-system-error-300 fm-typo-en-body-sm-400" }, il = {
1727
1734
  key: 0,
1728
1735
  class: "max-h-[200px] overflow-y-auto flex flex-col gap-8"
1729
- }, nl = { class: "fm-typo-en-body-lg-600" }, ol = /* @__PURE__ */ ke({
1736
+ }, dl = { class: "fm-typo-en-body-lg-600" }, ul = /* @__PURE__ */ ke({
1730
1737
  __name: "ImportIngredients",
1731
1738
  setup(q) {
1732
- const _ = P(null), k = Ht(), u = Ae(), x = P(!1), C = P(new Array()), A = P([]), U = P([]), l = g(
1739
+ const h = P(null), k = Ht(), u = Ae(), _ = P(!1), C = P(new Array()), A = P([]), U = P([]), l = g(
1733
1740
  () => !!C.value.length || A.value.some((d) => d.errors.length) || U.value.some((d) => d.errors.length)
1734
1741
  ), i = g(
1735
1742
  () => !!A.value.length || !!U.value.length
@@ -1737,7 +1744,7 @@ const zn = /* @__PURE__ */ ke({
1737
1744
  async function a(d) {
1738
1745
  C.value = [], A.value = [], U.value = [];
1739
1746
  try {
1740
- x.value = !0;
1747
+ _.value = !0;
1741
1748
  const [r] = await Promise.all([
1742
1749
  bn(d),
1743
1750
  // fake buffer
@@ -1767,40 +1774,40 @@ const zn = /* @__PURE__ */ ke({
1767
1774
  C.value.length && u.open({
1768
1775
  title: m("inventory.ingredient.import.fileError.invalidExcel"),
1769
1776
  type: "error"
1770
- }), x.value = !1;
1777
+ }), _.value = !1;
1771
1778
  }
1772
1779
  }
1773
- return _t(_, (d) => {
1780
+ return _t(h, (d) => {
1774
1781
  d && a(d);
1775
1782
  }), (d, r) => {
1776
1783
  const f = S("FmCircularProgress"), w = S("FmIcon"), F = S("FmButton");
1777
- return c(), V("div", Ko, [
1778
- n("div", Go, $(o(m)("inventory.ingredient.import.uploadDescription")), 1),
1784
+ return c(), V("div", tl, [
1785
+ n("div", nl, $(o(m)("inventory.ingredient.import.uploadDescription")), 1),
1779
1786
  s(hn, {
1780
1787
  class: ie({
1781
1788
  "w-full": !0,
1782
- "h-[200px]": !_.value
1789
+ "h-[200px]": !h.value
1783
1790
  }),
1784
1791
  accept: ".xlsx",
1785
- onFileUpload: r[0] || (r[0] = (p) => _.value = p),
1792
+ onFileUpload: r[0] || (r[0] = (p) => h.value = p),
1786
1793
  label: o(m)("inventory.ingredient.import.uploadTemplate"),
1787
1794
  "button-label": o(m)("inventory.ingredient.import.selectFile")
1788
1795
  }, kt({ _: 2 }, [
1789
- _.value ? {
1796
+ h.value ? {
1790
1797
  name: "default",
1791
- fn: b(({ openFileDialog: p }) => [
1792
- n("div", Jo, [
1798
+ fn: x(({ openFileDialog: p }) => [
1799
+ n("div", ol, [
1793
1800
  n("div", {
1794
1801
  class: ie([
1795
1802
  "fm-corner-radius-md p-16 flex items-center gap-16",
1796
1803
  {
1797
- "border border-fm-color-neutral-gray-100": x.value,
1798
- "border border-fm-color-neutral-gray-200": !x.value && !l.value,
1804
+ "border border-fm-color-neutral-gray-100": _.value,
1805
+ "border border-fm-color-neutral-gray-200": !_.value && !l.value,
1799
1806
  "border border-fm-color-system-error-200": l.value
1800
1807
  }
1801
1808
  ])
1802
1809
  }, [
1803
- x.value ? (c(), j(f, {
1810
+ _.value ? (c(), j(f, {
1804
1811
  key: 0,
1805
1812
  size: "md",
1806
1813
  color: "neutral-gray-200"
@@ -1814,14 +1821,14 @@ const zn = /* @__PURE__ */ ke({
1814
1821
  class: ie([
1815
1822
  "fm-typo-en-body-md-400 flex-1 h-[36px] flex items-center",
1816
1823
  {
1817
- "text-fm-color-typo-disabled": x.value,
1818
- "text-fm-color-typo-primary": !x.value
1824
+ "text-fm-color-typo-disabled": _.value,
1825
+ "text-fm-color-typo-primary": !_.value
1819
1826
  }
1820
1827
  ])
1821
1828
  }, [
1822
- n("div", Qo, $(_.value.name), 1)
1829
+ n("div", ll, $(h.value.name), 1)
1823
1830
  ], 2),
1824
- x.value ? N("", !0) : (c(), V("div", Xo, [
1831
+ _.value ? N("", !0) : (c(), V("div", al, [
1825
1832
  s(F, {
1826
1833
  label: o(m)("inventory.ingredient.import.replaceFile"),
1827
1834
  variant: l.value ? "destructive" : "secondary",
@@ -1830,7 +1837,7 @@ const zn = /* @__PURE__ */ ke({
1830
1837
  }, null, 8, ["label", "variant", "prepend-icon", "onClick"])
1831
1838
  ]))
1832
1839
  ], 2),
1833
- C.value.length ? (c(), V("div", Zo, [
1840
+ C.value.length ? (c(), V("div", sl, [
1834
1841
  (c(!0), V(ee, null, de(C.value, (B, R) => (c(), V("div", {
1835
1842
  key: R,
1836
1843
  class: "flex gap-8 items-center"
@@ -1840,7 +1847,7 @@ const zn = /* @__PURE__ */ ke({
1840
1847
  size: "sm",
1841
1848
  color: "system-error-300"
1842
1849
  }),
1843
- n("div", el, $(B), 1)
1850
+ n("div", rl, $(B), 1)
1844
1851
  ]))), 128))
1845
1852
  ])) : N("", !0)
1846
1853
  ])
@@ -1848,8 +1855,8 @@ const zn = /* @__PURE__ */ ke({
1848
1855
  key: "0"
1849
1856
  } : void 0
1850
1857
  ]), 1032, ["class", "label", "button-label"]),
1851
- i.value ? (c(), V("div", tl, [
1852
- n("div", nl, $(o(m)("inventory.ingredient.import.summary")), 1),
1858
+ i.value ? (c(), V("div", il, [
1859
+ n("div", dl, $(o(m)("inventory.ingredient.import.summary")), 1),
1853
1860
  (c(!0), V(ee, null, de(A.value, (p) => (c(), j(ht, {
1854
1861
  key: p.sku._id,
1855
1862
  code: p.sku.code,
@@ -1868,24 +1875,24 @@ const zn = /* @__PURE__ */ ke({
1868
1875
  ]);
1869
1876
  };
1870
1877
  }
1871
- }), ll = {
1878
+ }), ml = {
1872
1879
  key: 0,
1873
1880
  class: "flex items-center gap-1"
1874
- }, al = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, sl = { class: "flex flex-col py-8" }, rl = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, il = { class: "fm-typo-en-body-lg-600 text-fm-color-typo-primary" }, zl = /* @__PURE__ */ ke({
1881
+ }, cl = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, pl = { class: "flex flex-col py-8" }, vl = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, fl = { class: "fm-typo-en-body-lg-600 text-fm-color-typo-primary" }, Kl = /* @__PURE__ */ ke({
1875
1882
  __name: "IngredientsView",
1876
1883
  setup(q) {
1877
- const _ = Fe(), k = Ee(), u = g(() => [
1884
+ const h = Fe(), k = Ee(), u = g(() => [
1878
1885
  {
1879
1886
  type: "string",
1880
1887
  key: "skuCode",
1881
1888
  entity: "sku",
1882
- values: _.skus.map((v) => v.code)
1889
+ values: h.skus.map((v) => v.code)
1883
1890
  },
1884
1891
  {
1885
1892
  type: "string",
1886
1893
  key: "skuUnitAbbrev",
1887
1894
  entity: "sku",
1888
- values: _.units.map((v) => v.abbrev)
1895
+ values: h.units.map((v) => v.abbrev)
1889
1896
  },
1890
1897
  {
1891
1898
  type: "string",
@@ -1893,7 +1900,7 @@ const zn = /* @__PURE__ */ ke({
1893
1900
  entity: "sku",
1894
1901
  values: ["Active", "Inactive"]
1895
1902
  }
1896
- ]), x = P({
1903
+ ]), _ = P({
1897
1904
  logic: "AND",
1898
1905
  rules: [
1899
1906
  {
@@ -1906,10 +1913,10 @@ const zn = /* @__PURE__ */ ke({
1906
1913
  }), C = g(
1907
1914
  () => new Set(k.getAvailableItems(k.businessSubsidiaryId))
1908
1915
  ), A = g(() => {
1909
- if (!x.value)
1910
- return _.skus;
1911
- const E = kn.build(x.value);
1912
- return _.skus.filter((v) => k.isEnabled && ne.value && C.value && !C.value.has(v._id) ? !1 : wn(
1916
+ if (!_.value)
1917
+ return h.skus;
1918
+ const E = kn.build(_.value);
1919
+ return h.skus.filter((v) => k.isEnabled && ne.value && C.value && !C.value.has(v._id) ? !1 : wn(
1913
1920
  {
1914
1921
  skuCode: v.code,
1915
1922
  skuUnitAbbrev: v.unit.abbrev,
@@ -1978,7 +1985,7 @@ const zn = /* @__PURE__ */ ke({
1978
1985
  function M() {
1979
1986
  l.open({
1980
1987
  title: a("inventory.ingredient.import.title"),
1981
- contentComponent: ol,
1988
+ contentComponent: ul,
1982
1989
  overlay: !0,
1983
1990
  closeButton: !0,
1984
1991
  primaryActions: {
@@ -2040,7 +2047,7 @@ const zn = /* @__PURE__ */ ke({
2040
2047
  for (const H of v.chunk(100)) {
2041
2048
  me();
2042
2049
  try {
2043
- const O = await _.importSkus({
2050
+ const O = await h.importSkus({
2044
2051
  create: H.filter((K) => K.type === "create").map((K) => K.sku),
2045
2052
  update: H.filter((K) => K.type === "update").map((K) => K.sku)
2046
2053
  });
@@ -2099,16 +2106,16 @@ const zn = /* @__PURE__ */ ke({
2099
2106
  actions: we.value,
2100
2107
  "onClick:action": p
2101
2108
  }, {
2102
- "header-end": b(() => [
2109
+ "header-end": x(() => [
2103
2110
  s(me, { "close-on-click": !0 }, {
2104
- "menu-button": b(() => [
2111
+ "menu-button": x(() => [
2105
2112
  s(z, {
2106
2113
  label: o(a)("common.export"),
2107
2114
  "bg-color": "neutral-gray-100",
2108
2115
  "text-color": "neutral-gray-400"
2109
2116
  }, null, 8, ["label"])
2110
2117
  ]),
2111
- default: b(() => [
2118
+ default: x(() => [
2112
2119
  s(J, {
2113
2120
  label: o(a)("inventory.ingredient.export.exportAll"),
2114
2121
  onClick: v[0] || (v[0] = (L) => y())
@@ -2121,7 +2128,7 @@ const zn = /* @__PURE__ */ ke({
2121
2128
  _: 1
2122
2129
  })
2123
2130
  ]),
2124
- default: b(() => [
2131
+ default: x(() => [
2125
2132
  n("div", {
2126
2133
  class: ie([
2127
2134
  "relative flex flex-col gap-8 max-h-full",
@@ -2137,15 +2144,15 @@ const zn = /* @__PURE__ */ ke({
2137
2144
  "onUpdate:search": v[3] || (v[3] = (L) => B.value = L),
2138
2145
  filterable: "",
2139
2146
  "filter-attributes": u.value,
2140
- filter: x.value,
2141
- "onUpdate:filter": v[4] || (v[4] = (L) => x.value = L)
2147
+ filter: _.value,
2148
+ "onUpdate:filter": v[4] || (v[4] = (L) => _.value = L)
2142
2149
  }, {
2143
- default: b(() => [
2144
- o(k).isEnabled ? (c(), V("div", ll, [
2145
- n("span", al, $(o(a)("inventory.integration.netsuite.subsidiaryHierarchy.filtering")), 1),
2150
+ default: x(() => [
2151
+ o(k).isEnabled ? (c(), V("div", ml, [
2152
+ n("span", cl, $(o(a)("inventory.integration.netsuite.subsidiaryHierarchy.filtering")), 1),
2146
2153
  s(sn),
2147
2154
  s(Be, null, {
2148
- default: b(() => [
2155
+ default: x(() => [
2149
2156
  s(Q, {
2150
2157
  modelValue: ne.value,
2151
2158
  "onUpdate:modelValue": v[2] || (v[2] = (L) => ne.value = L)
@@ -2158,7 +2165,7 @@ const zn = /* @__PURE__ */ ke({
2158
2165
  _: 1
2159
2166
  }, 8, ["search", "filter-attributes", "filter"]),
2160
2167
  (c(), j(H, {
2161
- key: JSON.stringify(x.value),
2168
+ key: JSON.stringify(_.value),
2162
2169
  style: Dt(o(te).tableHeight),
2163
2170
  "column-defs": o(F),
2164
2171
  "row-data": A.value,
@@ -2171,22 +2178,22 @@ const zn = /* @__PURE__ */ ke({
2171
2178
  onRowClick: v[5] || (v[5] = (L) => o(r)(L.original)),
2172
2179
  "page-size": le.value
2173
2180
  }, {
2174
- "list-row": b((L) => [
2181
+ "list-row": x((L) => [
2175
2182
  s(gn, {
2176
2183
  row: L,
2177
2184
  onRowClick: o(r)
2178
2185
  }, kt({
2179
- default: b((ge) => {
2186
+ default: x((ge) => {
2180
2187
  var $e, Me, Ue, be, he, ce, Te, Ve, _e, Ie;
2181
2188
  return [
2182
- n("div", sl, [
2183
- n("div", rl, [
2189
+ n("div", pl, [
2190
+ n("div", vl, [
2184
2191
  s(o(gt), {
2185
2192
  render: (Ue = (Me = ($e = ge.code) == null ? void 0 : $e.column) == null ? void 0 : Me.columnDef) == null ? void 0 : Ue.cell,
2186
2193
  props: (he = (be = ge.code) == null ? void 0 : be.getContext) == null ? void 0 : he.call(be)
2187
2194
  }, null, 8, ["render", "props"])
2188
2195
  ]),
2189
- n("div", il, [
2196
+ n("div", fl, [
2190
2197
  s(o(gt), {
2191
2198
  render: (Ve = (Te = (ce = ge.name) == null ? void 0 : ce.column) == null ? void 0 : Te.columnDef) == null ? void 0 : Ve.cell,
2192
2199
  props: (Ie = (_e = ge.name) == null ? void 0 : _e.getContext) == null ? void 0 : Ie.call(_e)
@@ -2199,7 +2206,7 @@ const zn = /* @__PURE__ */ ke({
2199
2206
  }, [
2200
2207
  R.value ? {
2201
2208
  name: "loading-text",
2202
- fn: b(() => [
2209
+ fn: x(() => [
2203
2210
  n("div", null, $(o(a)("inventory.ingredient.table.importing")), 1)
2204
2211
  ]),
2205
2212
  key: "0"
@@ -2210,7 +2217,7 @@ const zn = /* @__PURE__ */ ke({
2210
2217
  }, 8, ["style", "column-defs", "row-data", "search-value", "columnVisibility", "loading", "loading-text", "page-size"]))
2211
2218
  ], 2),
2212
2219
  (c(), j(it, { to: "body" }, [
2213
- s(Lo, Nt(zt(o(f))), null, 16)
2220
+ s(Go, Nt(zt(o(f))), null, 16)
2214
2221
  ])),
2215
2222
  (c(), j(it, { to: "body" }, [
2216
2223
  s(K, {
@@ -2218,7 +2225,7 @@ const zn = /* @__PURE__ */ ke({
2218
2225
  modelValue: ae.value,
2219
2226
  "onUpdate:modelValue": v[7] || (v[7] = (L) => ae.value = L)
2220
2227
  }, {
2221
- default: b(() => [
2228
+ default: x(() => [
2222
2229
  s(O, {
2223
2230
  class: "pb-8",
2224
2231
  items: fe,
@@ -2235,5 +2242,5 @@ const zn = /* @__PURE__ */ ke({
2235
2242
  }
2236
2243
  });
2237
2244
  export {
2238
- zl as default
2245
+ Kl as default
2239
2246
  };