@feedmepos/mf-inventory-portal 1.6.2 → 1.7.0-dev.0

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 (101) hide show
  1. package/dist/{App-C61RakQ7.js → App-DaAOxELy.js} +4 -4
  2. package/dist/{ApprovalView-Cc1iYZqD.js → ApprovalView-CxJ79rW7.js} +8 -8
  3. package/dist/{BindingsDialog-Chd2EdfO.js → BindingsDialog-CZhCQoLO.js} +2 -2
  4. package/dist/{BindingsPicker-CXXnZKq5.js → BindingsPicker-BWRMxgYR.js} +2 -2
  5. package/dist/{BindingsTable-C5migJtC.js → BindingsTable-fvBa1dHb.js} +3 -3
  6. package/dist/{BulkReceiveRequestView-9MSE2YVv.js → BulkReceiveRequestView-Bq7_r-qY.js} +19 -19
  7. package/dist/ChangeLocationComponent.vue_vue_type_script_setup_true_lang-CKM48Ktp.js +126 -0
  8. package/dist/{ClosingDraftView-C4XBYgez.js → ClosingDraftView-DdMr571D.js} +204 -203
  9. package/dist/{ClosingHistoryView-C_OtcjwH.js → ClosingHistoryView-BIpPvvzQ.js} +5 -5
  10. package/dist/{ClosingTemplateView-BZpuwhWe.js → ClosingTemplateView-IlV4hRZ7.js} +14 -14
  11. package/dist/{DefaultView-Dnub2r0C.js → DefaultView-TKUUG9_5.js} +2 -2
  12. package/dist/{DeliveryOrderPrintPreview-U8g2O_pt.js → DeliveryOrderPrintPreview-DTjC7-Op.js} +2 -2
  13. package/dist/{EmailDialog.vue_vue_type_script_setup_true_lang-D3tETd4M.js → EmailDialog.vue_vue_type_script_setup_true_lang-DeFiuGtR.js} +23 -23
  14. package/dist/{FmDateRangePickerChip.vue_vue_type_script_setup_true_lang-DPVkPshX.js → FmDateRangePickerChip.vue_vue_type_script_setup_true_lang-NtqJm53P.js} +1 -1
  15. package/dist/{FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-CCl3KLFs.js → FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-CzHFzHXg.js} +2 -2
  16. package/dist/FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-CiMEAtPb.js +118 -0
  17. package/dist/{FmMultiselectDialog-BplRH37N.js → FmMultiselectDialog-BdXOoS6z.js} +2 -2
  18. package/dist/{FmMultiselectDialog-DX3xMRs8.js → FmMultiselectDialog-D_4f9sXH.js} +1 -1
  19. package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-fKDQGIyW.js → FmUnitInput.vue_vue_type_script_setup_true_lang-D_MOm5kW.js} +5 -5
  20. package/dist/{ImportView-BYQcNVFt.js → ImportView-BnL6y68X.js} +51 -51
  21. package/dist/{IngredientBindedItem.vue_vue_type_script_setup_true_lang-Bj3Bgpix.js → IngredientBindedItem.vue_vue_type_script_setup_true_lang-g-g6qaNU.js} +1 -1
  22. package/dist/{IngredientGroupView-B52_Gj1M.js → IngredientGroupView-Du0iICme.js} +5 -5
  23. package/dist/{IngredientsView-dp1q1202.js → IngredientsView-m2Rtn_F_.js} +15 -15
  24. package/dist/{IntegrationExplorerView-CFDjUZ1x.js → IntegrationExplorerView-J5BtpWN_.js} +352 -352
  25. package/dist/{IntegrationView-WxvHYqrr.js → IntegrationView-BMQj8wg-.js} +13 -13
  26. package/dist/{InventoryBindingForm-CgsJGTLO.js → InventoryBindingForm-D_KFXokV.js} +1 -1
  27. package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-DoDwQAGq.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-B7GjOoZh.js} +5 -5
  28. package/dist/{InventoryBindingSummary-CJPi-O24.js → InventoryBindingSummary-9TWMG5bm.js} +1 -1
  29. package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-6WGw2Tnv.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-DYXtIoll.js} +1 -1
  30. package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-D8iVxQQI.js → PremiumBadge.vue_vue_type_script_setup_true_lang-CGJ_uWzF.js} +1 -1
  31. package/dist/ProductionView-CI07S6oW.js +1330 -0
  32. package/dist/{PublishView-DQxvMoL9.js → PublishView-CWMdUnaY.js} +3 -3
  33. package/dist/{PurchaseOrderPrintPreview-YN89wJJe.js → PurchaseOrderPrintPreview-B5XJcf8G.js} +2 -2
  34. package/dist/{ReceiveRequestView-Dld-AD3X.js → ReceiveRequestView-st3jdG9W.js} +13 -13
  35. package/dist/{RecipeView-DTeYl1vN.js → RecipeView-D9ZVbmtm.js} +17 -17
  36. package/dist/{SettingsView-ZKDeU7-t.js → SettingsView-CUS0aMbf.js} +4 -4
  37. package/dist/{StockView-iWDV-4Em.js → StockView-Co4DOixF.js} +55 -54
  38. package/dist/{SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-DKQR-Oe-.js → SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-Dt6XECIc.js} +1 -1
  39. package/dist/{SupplierView-DIFYaNh0.js → SupplierView-DXw6V-uS.js} +12 -12
  40. package/dist/{SurchargeView-Dg744-lq.js → SurchargeView-C-Bg7UsR.js} +6 -6
  41. package/dist/{SystemTrailDialog.vue_vue_type_script_setup_true_lang-a1NAKsHT.js → SystemTrailDialog.vue_vue_type_script_setup_true_lang-D6_M-pbk.js} +2 -2
  42. package/dist/{TemplatePublishDialog.vue_vue_type_script_setup_true_lang-BiMBRYQP.js → TemplatePublishDialog.vue_vue_type_script_setup_true_lang-D7NrX7HR.js} +1 -1
  43. package/dist/{TransferDetails.vue_vue_type_script_setup_true_lang-BNb64xXp.js → TransferDetails.vue_vue_type_script_setup_true_lang-D9Fl_xAx.js} +1315 -1315
  44. package/dist/{TransferTemplateView-OKkFfbJr.js → TransferTemplateView-CP7ia82t.js} +20 -20
  45. package/dist/{UnitCostHistoryView-BQD8QfVO.js → UnitCostHistoryView-xe5q6105.js} +4 -4
  46. package/dist/{UnitDisplayControl.vue_vue_type_script_setup_true_lang-DrZ0DaVk.js → UnitDisplayControl.vue_vue_type_script_setup_true_lang-_Eax2wkO.js} +4 -4
  47. package/dist/{UnitView-WB01UGKV.js → UnitView-1e6MQ-Vu.js} +7 -7
  48. package/dist/{WarehouseView-xzBYaKJc.js → WarehouseView-DXB6Ygwb.js} +5 -5
  49. package/dist/{WastageTemplateView-HQpsfs5m.js → WastageTemplateView-CWGNtaZJ.js} +14 -14
  50. package/dist/api/production.d.ts +29 -0
  51. package/dist/{app-jwcH8Mn8.js → app-DXqwG4b3.js} +1930 -1854
  52. package/dist/app.js +1 -1
  53. package/dist/{closing-template-nSKzJbXQ.js → closing-template-CCY6fg4v.js} +1 -1
  54. package/dist/{date2-CcBFYPpF.js → date2-BWfUJajP.js} +1 -1
  55. package/dist/{dayjs.min-CArZjoIW.js → dayjs.min-BqAOh_2L.js} +1 -1
  56. package/dist/{decimal-kAd3KrAk.js → decimal-DmkQg2_J.js} +2 -2
  57. package/dist/{defineDeepModel-DW3GGnCB.js → defineDeepModel-D9smHIGg.js} +1 -1
  58. package/dist/{duplicate-template-Dju7ozO-.js → duplicate-template-Ebdaehmw.js} +1 -1
  59. package/dist/{feature-Dwlpa3ga.js → feature-CD2ndvWN.js} +2 -2
  60. package/dist/{format-time-from-id-C8qHJtCE.js → format-time-from-id-BtUh8UMO.js} +1 -1
  61. package/dist/{format-unit-display-DW_s2GAu.js → format-unit-display-DLoTr1Hz.js} +12 -12
  62. package/dist/{import-export.helper-BLEUR_2a.js → import-export.helper-DYgr7Lvo.js} +49 -49
  63. package/dist/{index-DX29MkLw.js → index-CnuWmvgF.js} +1 -1
  64. package/dist/{index-CQqLXfqq.js → index-DmdqVO9N.js} +3 -3
  65. package/dist/{index-DeMIqTWp.js → index-z_cku6cd.js} +1 -1
  66. package/dist/inventory-core-dart.default-CEnDozvp.js +22707 -0
  67. package/dist/{jszip.min-UvNpneu6.js → jszip.min-DKMvkIMM.js} +220 -220
  68. package/dist/{lz-string-BJjf0Fvk.js → lz-string-BH6J5xxX.js} +1 -1
  69. package/dist/{netsuite-ojatCiHQ.js → netsuite-kR1AFzO9.js} +2 -2
  70. package/dist/{number-PbBeNwvZ.js → number-CRrcUtSg.js} +3 -3
  71. package/dist/{predefined-templates-C11X8192.js → predefined-templates-DbAHazbJ.js} +1 -1
  72. package/dist/{purchase-order-template-CMQsOjp6.js → purchase-order-template-DoEJEwqG.js} +1 -1
  73. package/dist/{recalculationUtils-DOIaJCEk.js → recalculationUtils-hk2PE0q1.js} +1 -1
  74. package/dist/router/name.d.ts +1 -0
  75. package/dist/{rules-iqyXkujx.js → rules-BPXgi6ZE.js} +2 -2
  76. package/dist/stock-CJAv4fTu.js +75 -0
  77. package/dist/{stock-BhMYoMNR.js → stock-qAhTEKrH.js} +1 -1
  78. package/dist/{supplier-XEzdhDaU.js → supplier-BvzIGpwW.js} +2 -2
  79. package/dist/{surcharge-Ors_mdMv.js → surcharge-BhLHJ3gK.js} +1 -1
  80. package/dist/tsconfig.app.tsbuildinfo +1 -1
  81. package/dist/{uom-rules-BQohyyG-.js → uom-rules-B1s74P9M.js} +1 -1
  82. package/dist/{use-ingredient-select-dialog-DJ-u5t4P.js → use-ingredient-select-dialog-aAPbd5cS.js} +2 -2
  83. package/dist/{use-inventory-binding-dialog-D3W-HnQ8.js → use-inventory-binding-dialog-CTjQzuV7.js} +2 -2
  84. package/dist/{use-template-enabled-locations-DVF4RYya.js → use-template-enabled-locations-Brw80-tj.js} +2 -2
  85. package/dist/{use-transfer-locations-vRfZN9tb.js → use-transfer-locations-BF7CKYpr.js} +2 -2
  86. package/dist/{useHrmPermission-z87O-oAT.js → useHrmPermission-Csjov-cy.js} +1 -1
  87. package/dist/{useNavigationMenu-DMRHryMp.js → useNavigationMenu-D8BERWXB.js} +12 -7
  88. package/dist/useSseClient-Cen-cw5C.js +453 -0
  89. package/dist/views/closing-draft/helpers/get-calculated-total.helper.spec.d.ts +1 -0
  90. package/dist/views/production/ProductionBindingsCell.vue.d.ts +29 -0
  91. package/dist/views/production/ProductionCompletionDialog.vue.d.ts +32 -0
  92. package/dist/views/production/ProductionDetailSheet.vue.d.ts +38 -0
  93. package/dist/views/production/ProductionDuplicateDialog.vue.d.ts +280 -0
  94. package/dist/views/production/ProductionPrepareBuilder.vue.d.ts +6 -0
  95. package/dist/views/production/ProductionView.vue.d.ts +2 -0
  96. package/dist/{vue-i18n-nOka-XyP.js → vue-i18n-lC_mdXT4.js} +176 -176
  97. package/dist/{xlsx.util-DDX-Y6FY.js → xlsx.util-DxgWqaTd.js} +3 -3
  98. package/package.json +5 -5
  99. package/dist/FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-BgR0wjB0.js +0 -237
  100. package/dist/inventory-core-dart.default-BOlwkIOh.js +0 -18716
  101. package/dist/useSseClient-6AYDEsLw.js +0 -524
@@ -1,16 +1,16 @@
1
- import { defineComponent as De, ref as F, computed as J, watch as ze, resolveComponent as Y, openBlock as G, createElementBlock as D, createVNode as A, normalizeClass as ce, unref as i, createSlots as Ke, withCtx as Q, createElementVNode as n, createBlock as se, toDisplayString as a, createCommentVNode as Z, Fragment as Be, renderList as Pe, shallowRef as $e, h as Ie, createTextVNode as k } from "vue";
1
+ import { defineComponent as De, ref as F, computed as J, watch as ze, resolveComponent as Y, openBlock as N, createElementBlock as D, createVNode as A, normalizeClass as ce, unref as i, createSlots as Ke, withCtx as Q, createElementVNode as n, createBlock as se, toDisplayString as a, createCommentVNode as Z, Fragment as Be, renderList as Pe, shallowRef as $e, h as Ie, createTextVNode as k } from "vue";
2
2
  import { u as Ve, _ as ke } from "./SingleColumnLayout.vue_vue_type_script_setup_true_lang-DGlWE5I8.js";
3
3
  import { useCoreStore as Re, useI18n as je } from "@feedmepos/mf-common";
4
4
  import { useDialogChild as We, useSnackbar as Oe, useDialog as Le, useBreakpoints as Je } from "@feedmepos/ui-library";
5
- import { u as Xe } from "./feature-Dwlpa3ga.js";
6
- import { a as ie } from "./app-jwcH8Mn8.js";
7
- import "./dayjs.min-CArZjoIW.js";
5
+ import { u as Xe } from "./feature-CD2ndvWN.js";
6
+ import { a as ie } from "./app-DXqwG4b3.js";
7
+ import "./dayjs.min-BqAOh_2L.js";
8
8
  import "./app-DiX-EfV6.js";
9
9
  import "./FmAdminBadge-DjnBAgyv.js";
10
- import { s as He, a as qe, d as Qe, t as Ce, r as Ye } from "./xlsx.util-DDX-Y6FY.js";
11
- import { s as Ze, g as et, b as tt, d as Fe } from "./import-export.helper-BLEUR_2a.js";
10
+ import { s as He, a as qe, d as Qe, t as Ce, r as Ye } from "./xlsx.util-DxgWqaTd.js";
11
+ import { s as Ze, g as et, b as tt, d as Fe } from "./import-export.helper-DYgr7Lvo.js";
12
12
  import { r as nt } from "./random-CSbEbElR.js";
13
- import { c as Ae, a as pe } from "./number-PbBeNwvZ.js";
13
+ import { c as Ae, a as pe } from "./number-CRrcUtSg.js";
14
14
  import { F as ot } from "./FmDroppableField-J0xUsOTV.js";
15
15
  function Ee() {
16
16
  return `measurement_${(/* @__PURE__ */ new Date()).toISOString()}_${nt()}`;
@@ -144,13 +144,13 @@ function it(U, { ignoreErrors: e = !1 } = {}) {
144
144
  } else
145
145
  y.push(`Invalid type '${o.data.type}'. Must be 'INGREDIENT', 'RECIPE', or 'SKU_GROUP'`);
146
146
  o.data.amount || y.push(`Invalid amount '${o.data.amount}'. Must be a valid number`);
147
- let N;
148
- if ((o.data.unit || o.data.baseUnit) && o.data.type !== "RECIPE" && o.data.type !== "SKU_GROUP" && (N = l.find((w) => {
147
+ let G;
148
+ if ((o.data.unit || o.data.baseUnit) && o.data.type !== "RECIPE" && o.data.type !== "SKU_GROUP" && (G = l.find((w) => {
149
149
  var I, ee;
150
150
  return w.abbrev === o.data.baseUnit && ((I = w.name) == null ? void 0 : I.trim()) === ((ee = o.data.unit) == null ? void 0 : ee.trim());
151
- }), N || (o.data.baseUnit && o.data.unit ? y.push(`Cannot find unit with symbol '${o.data.baseUnit}' and name '${o.data.unit}'`) : o.data.baseUnit ? y.push(`Cannot find unit with symbol '${o.data.baseUnit}'`) : o.data.unit && y.push(`Cannot find unit with name '${o.data.unit}'`))), y.length > 0 && s.push(`Row ${o.index + 6}: ${y.join(", ")}`), e || y.length === 0) {
151
+ }), G || (o.data.baseUnit && o.data.unit ? y.push(`Cannot find unit with symbol '${o.data.baseUnit}' and name '${o.data.unit}'`) : o.data.baseUnit ? y.push(`Cannot find unit with symbol '${o.data.baseUnit}'`) : o.data.unit && y.push(`Cannot find unit with name '${o.data.unit}'`))), y.length > 0 && s.push(`Row ${o.index + 6}: ${y.join(", ")}`), e || y.length === 0) {
152
152
  let w;
153
- if (o.data.type === "RECIPE" || o.data.type === "SKU_GROUP" ? w = void 0 : w = (R = N == null ? void 0 : N.measurements) == null ? void 0 : R.find((I) => I.abbrev === o.data.measurementName), o.data.recipeName)
153
+ if (o.data.type === "RECIPE" || o.data.type === "SKU_GROUP" ? w = void 0 : w = (R = G == null ? void 0 : G.measurements) == null ? void 0 : R.find((I) => I.abbrev === o.data.measurementName), o.data.recipeName)
154
154
  u[o.data.recipeName] = {
155
155
  name: o.data.recipeName,
156
156
  customAttributes: o.data.customAttributes ? Ze(o.data.customAttributes) : {},
@@ -243,8 +243,8 @@ function at(U) {
243
243
  data: f
244
244
  };
245
245
  }).filter((p) => {
246
- const { recipeName: b, type: f, code: d, name: o, amount: y, unit: _, baseUnit: N, measurementName: w, customAttributes: I } = p.data;
247
- return b || f || d || o || y || _ || N || w || I;
246
+ const { recipeName: b, type: f, code: d, name: o, amount: y, unit: _, baseUnit: G, measurementName: w, customAttributes: I } = p.data;
247
+ return b || f || d || o || y || _ || G || w || I;
248
248
  });
249
249
  }
250
250
  function lt() {
@@ -252,7 +252,7 @@ function lt() {
252
252
  { id: "name", name: "Unit Name" },
253
253
  { id: "symbol", name: "Symbol" },
254
254
  { id: "precision", name: "Precision" },
255
- { id: "measurement_name", name: "Measurement Name" },
255
+ { id: "measurement_name", name: "Measurement Symbol" },
256
256
  { id: "measurement_symbol", name: "Measurement Symbol" },
257
257
  { id: "measurement_conversion", name: "Measurement Conversion" }
258
258
  ];
@@ -342,8 +342,8 @@ function ut() {
342
342
  { id: "name", name: "Item Name" },
343
343
  { id: "amount", name: "Amount" },
344
344
  { id: "unit", name: "Unit" },
345
- { id: "baseUnit", name: "Base Unit" },
346
- { id: "measurementName", name: "Measurement Name" },
345
+ { id: "baseUnit", name: "Unit Symbol" },
346
+ { id: "measurementName", name: "Measurement Symbol" },
347
347
  { id: "customAttributes", name: "Custom Attributes" }
348
348
  ];
349
349
  let h = [];
@@ -370,12 +370,12 @@ function ut() {
370
370
  ];
371
371
  }),
372
372
  ...f.map((o, y) => {
373
- var _, N, w, I, ee, ve, ye, ge, fe, ae, be, le, he, xe, _e, we;
373
+ var _, G, w, I, ee, ve, ye, ge, fe, ae, be, le, he, xe, _e, we;
374
374
  return [
375
375
  !b.length && y === 0 ? u.name : "",
376
376
  "INGREDIENT",
377
377
  ((_ = l[o.id]) == null ? void 0 : _.code) || "",
378
- ((N = l[o.id]) == null ? void 0 : N.name) || "",
378
+ ((G = l[o.id]) == null ? void 0 : G.name) || "",
379
379
  +pe(o.amount),
380
380
  o.measurement ? ((I = (w = l[o.id]) == null ? void 0 : w.unit) == null ? void 0 : I.name) || "" : ((ve = (ee = l[o.id]) == null ? void 0 : ee.unit) == null ? void 0 : ve.name) || "",
381
381
  o.measurement ? ((ge = (ye = l[o.id]) == null ? void 0 : ye.unit) == null ? void 0 : ge.abbrev) || "" : ((ae = (fe = l[o.id]) == null ? void 0 : fe.unit) == null ? void 0 : ae.abbrev) || "",
@@ -387,12 +387,12 @@ function ut() {
387
387
  ];
388
388
  }),
389
389
  ...d.map((o, y) => {
390
- var _, N;
390
+ var _, G;
391
391
  return [
392
392
  b.length === 0 && f.length === 0 && y === 0 ? u.name : "",
393
393
  "SKU_GROUP",
394
394
  ((_ = s[o.id]) == null ? void 0 : _.ref) || "",
395
- ((N = s[o.id]) == null ? void 0 : N.name) || "",
395
+ ((G = s[o.id]) == null ? void 0 : G.name) || "",
396
396
  +pe(o.amount),
397
397
  "",
398
398
  "unit",
@@ -515,20 +515,20 @@ const yt = { class: "flex flex-col gap-24" }, gt = { class: "flex flex-col gap-8
515
515
  }
516
516
  return (f, d) => {
517
517
  const o = Y("FmCircularProgress"), y = Y("FmIcon"), _ = Y("FmButton");
518
- return G(), D("div", yt, [
518
+ return N(), D("div", yt, [
519
519
  A(ot, {
520
520
  class: ce({
521
521
  "w-full": !0,
522
522
  "h-[200px]": !e.value
523
523
  }),
524
524
  accept: ".xlsx,.xls",
525
- onFileUpload: d[0] || (d[0] = (N) => e.value = N),
525
+ onFileUpload: d[0] || (d[0] = (G) => e.value = G),
526
526
  label: i(u)("inventory.ingredient.import.uploadTemplate"),
527
527
  "button-label": i(u)("inventory.ingredient.import.selectFile")
528
528
  }, Ke({ _: 2 }, [
529
529
  e.value ? {
530
530
  name: "default",
531
- fn: Q(({ openFileDialog: N }) => [
531
+ fn: Q(({ openFileDialog: G }) => [
532
532
  n("div", gt, [
533
533
  n("div", {
534
534
  class: ce([
@@ -540,11 +540,11 @@ const yt = { class: "flex flex-col gap-24" }, gt = { class: "flex flex-col gap-8
540
540
  }
541
541
  ])
542
542
  }, [
543
- g.value ? (G(), se(o, {
543
+ g.value ? (N(), se(o, {
544
544
  key: 0,
545
545
  size: "md",
546
546
  color: "neutral-gray-200"
547
- })) : (G(), se(y, {
547
+ })) : (N(), se(y, {
548
548
  key: 1,
549
549
  name: l.value ? "error" : "check_circle",
550
550
  color: l.value ? "system-error-300" : "system-success-400",
@@ -562,17 +562,17 @@ const yt = { class: "flex flex-col gap-24" }, gt = { class: "flex flex-col gap-8
562
562
  ])
563
563
  }, a(l.value ? i(u)("inventory.ingredient.import.error.invalidContent") : "File valid"), 3)
564
564
  ]),
565
- g.value ? Z("", !0) : (G(), D("div", ht, [
565
+ g.value ? Z("", !0) : (N(), D("div", ht, [
566
566
  A(_, {
567
567
  label: i(u)("inventory.ingredient.import.replaceFile"),
568
568
  variant: l.value ? "destructive" : "secondary",
569
569
  "prepend-icon": l.value ? void 0 : "autorenew",
570
- onClick: N
570
+ onClick: G
571
571
  }, null, 8, ["label", "variant", "prepend-icon", "onClick"])
572
572
  ]))
573
573
  ], 2),
574
- h.value.length ? (G(), D("div", xt, [
575
- (G(!0), D(Be, null, Pe(h.value, (w, I) => (G(), D("div", {
574
+ h.value.length ? (N(), D("div", xt, [
575
+ (N(!0), D(Be, null, Pe(h.value, (w, I) => (N(), D("div", {
576
576
  key: I,
577
577
  class: "flex gap-8 items-center"
578
578
  }, [
@@ -589,7 +589,7 @@ const yt = { class: "flex flex-col gap-24" }, gt = { class: "flex flex-col gap-8
589
589
  key: "0"
590
590
  } : void 0
591
591
  ]), 1032, ["class", "label", "button-label"]),
592
- s.value ? (G(), D("div", wt, [
592
+ s.value ? (N(), D("div", wt, [
593
593
  n("div", It, a(i(u)("inventory.ingredient.import.summary")), 1),
594
594
  n("div", Et, a(b()), 1)
595
595
  ])) : Z("", !0)
@@ -599,7 +599,7 @@ const yt = { class: "flex flex-col gap-24" }, gt = { class: "flex flex-col gap-8
599
599
  }), kt = {
600
600
  key: 0,
601
601
  class: "bg-blue-50 border border-blue-200 rounded-lg p-16"
602
- }, Rt = { class: "flex items-start gap-12" }, Ct = { class: "flex flex-col gap-8" }, Ut = { class: "fm-typo-en-body-md-400 text-blue-800" }, Nt = { class: "fm-typo-en-body-sm-400 text-blue-700" }, Gt = { class: "mb-8" }, Tt = ["innerHTML"], Mt = ["innerHTML"], $t = { class: "mb-8" }, Ft = { class: "mb-12" }, At = { class: "mb-12" }, Dt = { class: "mb-8" }, Bt = { class: "text-orange-600" }, Pt = {
602
+ }, Rt = { class: "flex items-start gap-12" }, Ct = { class: "flex flex-col gap-8" }, Ut = { class: "fm-typo-en-body-md-400 text-blue-800" }, Gt = { class: "fm-typo-en-body-sm-400 text-blue-700" }, Nt = { class: "mb-8" }, Tt = ["innerHTML"], Mt = ["innerHTML"], $t = { class: "mb-8" }, Ft = { class: "mb-12" }, At = { class: "mb-12" }, Dt = { class: "mb-8" }, Bt = { class: "text-orange-600" }, Pt = {
603
603
  key: 1,
604
604
  class: "bg-white rounded-lg shadow"
605
605
  }, jt = { class: "flex items-center justify-between p-16 border-b" }, Ot = { class: "fm-typo-en-title-md-600" }, Ht = { class: "fm-typo-en-body-sm-400 text-gray-600 mt-4" }, zt = {
@@ -624,7 +624,7 @@ const yt = { class: "flex flex-col gap-24" }, gt = { class: "flex flex-col gap-8
624
624
  Ve();
625
625
  const h = Xe(), { breakpoints: E } = Je(), x = ie(), r = F("");
626
626
  F(!1);
627
- const l = F(!1), s = F(null), u = F(!1), v = F(null), p = F(!1), b = F([]), f = F(null), d = F([]), o = F(!1), y = J(() => E.value.xs || E.value.sm), _ = J(() => y.value ? 10 : 20), N = J(() => {
627
+ const l = F(!1), s = F(null), u = F(!1), v = F(null), p = F(!1), b = F([]), f = F(null), d = F([]), o = F(!1), y = J(() => E.value.xs || E.value.sm), _ = J(() => y.value ? 10 : 20), G = J(() => {
628
628
  const m = s.value;
629
629
  if (!m) return [];
630
630
  const t = [], { units: C, skus: B, recipes: W, _invalidExcel: z, _invalidExcelMessage: X } = m, q = (M) => {
@@ -647,12 +647,12 @@ const yt = { class: "flex flex-col gap-24" }, gt = { class: "flex flex-col gap-8
647
647
  }
648
648
  };
649
649
  return H(C, e("inventory.common.unit")), H(B, e("inventory.common.ingredient")), H(W, e("inventory.common.recipe")), t;
650
- }), w = J(() => N.value.some(
650
+ }), w = J(() => G.value.some(
651
651
  (m) => m.errors && m.errors.length > 0
652
- )), I = J(() => N.value.some(
652
+ )), I = J(() => G.value.some(
653
653
  (m) => m.status && m.status.includes("Invalid Excel")
654
654
  )), ee = J(() => {
655
- const m = N.value.find(
655
+ const m = G.value.find(
656
656
  (t) => t.status && t.status.includes("Invalid Excel")
657
657
  );
658
658
  return (m == null ? void 0 : m.status) || e("inventory.common.invalidExcelFormatDetected");
@@ -789,7 +789,7 @@ const yt = { class: "flex flex-col gap-24" }, gt = { class: "flex flex-col gap-8
789
789
  }
790
790
  }
791
791
  async function be() {
792
- var m, t, C, B, W, z, X, q, H, M, O, j, K, P, me, ue, L, S, $, Ue, Ne, Ge, Te, Me;
792
+ var m, t, C, B, W, z, X, q, H, M, O, j, K, P, me, ue, L, S, $, Ue, Ge, Ne, Te, Me;
793
793
  if (s.value) {
794
794
  if (I.value) {
795
795
  g.open({
@@ -876,7 +876,7 @@ const yt = { class: "flex flex-col gap-24" }, gt = { class: "flex flex-col gap-8
876
876
  }
877
877
  if (b.value.length > 0)
878
878
  await ae();
879
- else if (!(s.value.units && ((($ = s.value.units.create) == null ? void 0 : $.length) || ((Ue = s.value.units.update) == null ? void 0 : Ue.length)) || s.value.skus && (((Ne = s.value.skus.create) == null ? void 0 : Ne.length) || ((Ge = s.value.skus.update) == null ? void 0 : Ge.length)) || s.value.recipes && (((Te = s.value.recipes.create) == null ? void 0 : Te.length) || ((Me = s.value.recipes.update) == null ? void 0 : Me.length))))
879
+ else if (!(s.value.units && ((($ = s.value.units.create) == null ? void 0 : $.length) || ((Ue = s.value.units.update) == null ? void 0 : Ue.length)) || s.value.skus && (((Ge = s.value.skus.create) == null ? void 0 : Ge.length) || ((Ne = s.value.skus.update) == null ? void 0 : Ne.length)) || s.value.recipes && (((Te = s.value.recipes.create) == null ? void 0 : Te.length) || ((Me = s.value.recipes.update) == null ? void 0 : Me.length))))
880
880
  if (le(), d.value.length > 0) {
881
881
  const c = d.value.filter((de) => de.type === "units").length, te = d.value.filter((de) => de.type === "ingredients").length, ne = d.value.filter((de) => de.type === "recipes").length, re = c + te + ne;
882
882
  o.value = !0, g.open({
@@ -976,7 +976,7 @@ const yt = { class: "flex flex-col gap-24" }, gt = { class: "flex flex-col gap-8
976
976
  ]);
977
977
  return (m, t) => {
978
978
  const C = Y("FmIcon"), B = Y("FmButton"), W = Y("FmTable"), z = Y("FmCard"), X = Y("FmSideSheet"), q = Y("FmSpinner");
979
- return i(h).isLoaded && i(h).enableBulkImport ? (G(), se(ke, {
979
+ return i(h).isLoaded && i(h).enableBulkImport ? (N(), se(ke, {
980
980
  key: 0,
981
981
  title: i(e)("inventory.common.import"),
982
982
  actions: _e.value,
@@ -994,7 +994,7 @@ const yt = { class: "flex flex-col gap-24" }, gt = { class: "flex flex-col gap-8
994
994
  }
995
995
  ])
996
996
  }, [
997
- u.value ? Z("", !0) : (G(), D("div", kt, [
997
+ u.value ? Z("", !0) : (N(), D("div", kt, [
998
998
  n("div", Rt, [
999
999
  A(C, {
1000
1000
  name: "info",
@@ -1002,8 +1002,8 @@ const yt = { class: "flex flex-col gap-24" }, gt = { class: "flex flex-col gap-8
1002
1002
  }),
1003
1003
  n("div", Ct, [
1004
1004
  n("div", Ut, a(i(e)("inventory.ingredient.import.multiUploadTemplateInstruction")), 1),
1005
- n("div", Nt, [
1006
- n("div", Gt, [
1005
+ n("div", Gt, [
1006
+ n("div", Nt, [
1007
1007
  n("strong", null, a(i(e)("inventory.ingredient.import.importInstructions.detailedGuide.title")), 1)
1008
1008
  ]),
1009
1009
  t[39] || (t[39] = k(" 1. ")),
@@ -1100,12 +1100,12 @@ const yt = { class: "flex flex-col gap-24" }, gt = { class: "flex flex-col gap-8
1100
1100
  ])
1101
1101
  ])
1102
1102
  ])),
1103
- u.value ? (G(), D("div", Pt, [
1103
+ u.value ? (N(), D("div", Pt, [
1104
1104
  n("div", jt, [
1105
1105
  n("div", null, [
1106
1106
  n("div", Ot, a(i(e)("inventory.common.importPreview")), 1),
1107
1107
  n("div", Ht, [
1108
- I.value ? (G(), D("span", zt, a(i(e)("inventory.common.errorExist")) + ": " + a(ee.value), 1)) : w.value ? (G(), D("span", Kt, a(i(e)("inventory.common.someItemsValidationErrors")), 1)) : (G(), D("span", Vt, a(i(e)("inventory.common.allItemsValidReadyImport")), 1))
1108
+ I.value ? (N(), D("span", zt, a(i(e)("inventory.common.errorExist")) + ": " + a(ee.value), 1)) : w.value ? (N(), D("span", Kt, a(i(e)("inventory.common.someItemsValidationErrors")), 1)) : (N(), D("span", Vt, a(i(e)("inventory.common.allItemsValidReadyImport")), 1))
1109
1109
  ])
1110
1110
  ]),
1111
1111
  n("div", Wt, [
@@ -1126,7 +1126,7 @@ const yt = { class: "flex flex-col gap-24" }, gt = { class: "flex flex-col gap-8
1126
1126
  n("div", Lt, [
1127
1127
  A(W, {
1128
1128
  "column-defs": we.value,
1129
- "row-data": N.value,
1129
+ "row-data": G.value,
1130
1130
  "page-size": _.value,
1131
1131
  "search-value": r.value,
1132
1132
  loading: !1,
@@ -1134,7 +1134,7 @@ const yt = { class: "flex flex-col gap-24" }, gt = { class: "flex flex-col gap-8
1134
1134
  }, null, 8, ["column-defs", "row-data", "page-size", "search-value"])
1135
1135
  ])
1136
1136
  ])) : Z("", !0),
1137
- o.value && d.value.length > 0 ? (G(), D("div", Jt, [
1137
+ o.value && d.value.length > 0 ? (N(), D("div", Jt, [
1138
1138
  n("div", Xt, [
1139
1139
  n("div", null, [
1140
1140
  n("div", qt, a(i(e)("inventory.common.importErrors")), 1),
@@ -1177,7 +1177,7 @@ const yt = { class: "flex flex-col gap-24" }, gt = { class: "flex flex-col gap-8
1177
1177
  ])
1178
1178
  ]),
1179
1179
  default: Q(() => [
1180
- v.value != null ? (G(), D("div", en, [
1180
+ v.value != null ? (N(), D("div", en, [
1181
1181
  A(z, {
1182
1182
  variant: "outlined",
1183
1183
  class: "p-16"
@@ -1191,7 +1191,7 @@ const yt = { class: "flex flex-col gap-24" }, gt = { class: "flex flex-col gap-8
1191
1191
  n("div", on, a(i(e)("inventory.common.name")), 1),
1192
1192
  n("div", rn, a(((O = (M = v.value) == null ? void 0 : M.details) == null ? void 0 : O.name) || ((j = v.value) == null ? void 0 : j.name)), 1)
1193
1193
  ]),
1194
- (P = (K = v.value) == null ? void 0 : K.details) != null && P.code ? (G(), D("div", sn, [
1194
+ (P = (K = v.value) == null ? void 0 : K.details) != null && P.code ? (N(), D("div", sn, [
1195
1195
  n("div", an, a(i(e)("inventory.common.code")), 1),
1196
1196
  n("div", ln, a(v.value.details.code), 1)
1197
1197
  ])) : Z("", !0),
@@ -1217,7 +1217,7 @@ const yt = { class: "flex flex-col gap-24" }, gt = { class: "flex flex-col gap-8
1217
1217
  }),
1218
1218
  _: 1
1219
1219
  }),
1220
- v.value.errors && v.value.errors.length > 0 ? (G(), se(z, {
1220
+ v.value.errors && v.value.errors.length > 0 ? (N(), se(z, {
1221
1221
  key: 0,
1222
1222
  variant: "outlined",
1223
1223
  class: "p-16"
@@ -1225,7 +1225,7 @@ const yt = { class: "flex flex-col gap-24" }, gt = { class: "flex flex-col gap-8
1225
1225
  default: Q(() => [
1226
1226
  n("div", vn, a(i(e)("inventory.common.validationErrors")), 1),
1227
1227
  n("div", yn, [
1228
- (G(!0), D(Be, null, Pe(v.value.errors, (M, O) => (G(), D("div", {
1228
+ (N(!0), D(Be, null, Pe(v.value.errors, (M, O) => (N(), D("div", {
1229
1229
  key: O,
1230
1230
  class: "flex items-start gap-8 p-12 bg-red-50 border border-red-200 rounded"
1231
1231
  }, [
@@ -1259,7 +1259,7 @@ const yt = { class: "flex flex-col gap-24" }, gt = { class: "flex flex-col gap-8
1259
1259
  ];
1260
1260
  }),
1261
1261
  _: 1
1262
- }, 8, ["title", "actions"])) : i(h).isLoaded ? (G(), se(ke, {
1262
+ }, 8, ["title", "actions"])) : i(h).isLoaded ? (N(), se(ke, {
1263
1263
  key: 2,
1264
1264
  title: i(e)("inventory.common.import")
1265
1265
  }, {
@@ -1277,7 +1277,7 @@ const yt = { class: "flex flex-col gap-24" }, gt = { class: "flex flex-col gap-8
1277
1277
  ])
1278
1278
  ]),
1279
1279
  _: 1
1280
- }, 8, ["title"])) : (G(), se(ke, {
1280
+ }, 8, ["title"])) : (N(), se(ke, {
1281
1281
  key: 1,
1282
1282
  title: i(e)("inventory.common.import")
1283
1283
  }, {
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as p, openBlock as s, createElementBlock as n, createElementVNode as r, toDisplayString as o, unref as l, Fragment as d, renderList as x } from "vue";
2
- import { a, e as y } from "./number-PbBeNwvZ.js";
2
+ import { a, e as y } from "./number-CRrcUtSg.js";
3
3
  import { useI18n as _ } from "@feedmepos/mf-common";
4
4
  const v = { class: "flex flex-col" }, g = { class: "flex flex-row fm-typo-en-body-md-600 bg-fm-color-neutral-gray-100 text-fm-color-typo-secondary h-48 items-center" }, h = { class: "flex-1 py-8 px-16" }, b = {
5
5
  class: "flex-0 py-8 px-16",
@@ -1,5 +1,5 @@
1
1
  import { ref as A, computed as G, h as C, defineComponent as j, watch as re, resolveComponent as R, openBlock as F, createElementBlock as B, createVNode as b, unref as i, createElementVNode as c, toDisplayString as $, createBlock as M, withCtx as T, Fragment as pe, renderList as ve, createTextVNode as ye, createCommentVNode as se, isRef as ge, normalizeClass as _e, normalizeStyle as be, createSlots as ke, Teleport as xe, normalizeProps as he, guardReactiveProps as we } from "vue";
2
- import { a as L, c as P, i as oe, u as Re } from "./app-jwcH8Mn8.js";
2
+ import { a as L, c as P, i as oe, u as Re } from "./app-DXqwG4b3.js";
3
3
  import { useDialog as Ie, useSnackbar as Y, components as U, useProxiedModel as Se, useBreakpoints as Fe } from "@feedmepos/ui-library";
4
4
  import { F as S } from "./form-mode.enum-BKiNVH6A.js";
5
5
  import { useI18n as z, useCoreStore as Ge } from "@feedmepos/mf-common";
@@ -8,11 +8,11 @@ import { D as ie, R as K } from "./row-action.enum-DQ9bJ_uv.js";
8
8
  import { c as Ve } from "./component-kqxARxvM.js";
9
9
  import { u as Ce, _ as De } from "./SingleColumnLayout.vue_vue_type_script_setup_true_lang-DGlWE5I8.js";
10
10
  import { _ as Ae, F as le } from "./TableActionableRow.vue_vue_type_script_setup_true_lang-Ca_eYa8-.js";
11
- import { _ as $e } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-BgR0wjB0.js";
12
- import { d as de } from "./defineDeepModel-DW3GGnCB.js";
13
- import { I as Te, A as Ee, U as Me, R as ce } from "./rules-iqyXkujx.js";
11
+ import { _ as $e } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-CiMEAtPb.js";
12
+ import { d as de } from "./defineDeepModel-D9smHIGg.js";
13
+ import { I as Te, A as Ee, U as Me, R as ce } from "./rules-BPXgi6ZE.js";
14
14
  import { L as Ue, P as Be, D as Pe } from "./app-DiX-EfV6.js";
15
- import { u as Le } from "./FmMultiselectDialog-DX3xMRs8.js";
15
+ import { u as Le } from "./FmMultiselectDialog-D_4f9sXH.js";
16
16
  import { r as me } from "./random-CSbEbElR.js";
17
17
  import { u as ze, R as Ne } from "./usePromise-CbVUCxhj.js";
18
18
  const H = ue(
@@ -1,5 +1,5 @@
1
1
  import { ref as P, defineComponent as pe, computed as h, resolveComponent as T, openBlock as c, createElementBlock as w, Fragment as ee, unref as l, createVNode as s, withModifiers as Bt, createCommentVNode as z, withCtx as g, createElementVNode as n, toDisplayString as A, normalizeClass as ne, renderList as de, createBlock as O, h as X, renderSlot as Te, createSlots as Ge, createTextVNode as Je, mergeModels as dt, onMounted as Ot, watch as Tt, useModel as Dt, isRef as ut, normalizeStyle as Nt, Teleport as mt, normalizeProps as zt, guardReactiveProps as Lt } from "vue";
2
- import { a as Ae, c as wt, S as jt, g as ct, d as pt, e as Wt, f as vt, h as ft, i as yt, j as gt, u as qt, k as Ht } from "./app-jwcH8Mn8.js";
2
+ import { a as Ae, c as wt, S as jt, g as ct, d as pt, e as Wt, f as vt, h as ft, i as yt, j as gt, u as qt, k as Ht } from "./app-DXqwG4b3.js";
3
3
  import { useDialog as Ze, useSnackbar as $e, components as Le, useProxiedModel as bt, useDialogChild as Yt, useBreakpoints as Kt } from "@feedmepos/ui-library";
4
4
  import { i as Gt, _ as Jt, m as Zt } from "./menu-usage-module-D7cxkbEk.js";
5
5
  import { F as q } from "./form-mode.enum-BKiNVH6A.js";
@@ -7,26 +7,26 @@ import { useI18n as ve, useCoreStore as Qe } from "@feedmepos/mf-common";
7
7
  import { defineStore as Qt, storeToRefs as Xt } from "pinia";
8
8
  import { D as ht, R as Re } from "./row-action.enum-DQ9bJ_uv.js";
9
9
  import { c as en } from "./component-kqxARxvM.js";
10
- import { u as Ee, _ as tn } from "./netsuite-ojatCiHQ.js";
10
+ import { u as Ee, _ as tn } from "./netsuite-kR1AFzO9.js";
11
11
  import { F as De } from "./FmAdminBadge-DjnBAgyv.js";
12
12
  import { u as nn, _ as ln } from "./SingleColumnLayout.vue_vue_type_script_setup_true_lang-DGlWE5I8.js";
13
- import { A as Oe, R as je, U as on, M as an } from "./rules-iqyXkujx.js";
14
- import { g as sn, _ as We, S as qe, a as rn } from "./SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-DKQR-Oe-.js";
15
- import { _ as dn } from "./InventoryBindingForm.vue_vue_type_script_setup_true_lang-DoDwQAGq.js";
16
- import { _ as He } from "./IngredientBindedItem.vue_vue_type_script_setup_true_lang-Bj3Bgpix.js";
17
- import { u as Vt } from "./feature-Dwlpa3ga.js";
18
- import { a as un, t as mn, g as cn } from "./number-PbBeNwvZ.js";
13
+ import { A as Oe, R as je, U as on, M as an } from "./rules-BPXgi6ZE.js";
14
+ import { g as sn, _ as We, S as qe, a as rn } from "./SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-Dt6XECIc.js";
15
+ import { _ as dn } from "./InventoryBindingForm.vue_vue_type_script_setup_true_lang-B7GjOoZh.js";
16
+ import { _ as He } from "./IngredientBindedItem.vue_vue_type_script_setup_true_lang-g-g6qaNU.js";
17
+ import { u as Vt } from "./feature-CD2ndvWN.js";
18
+ import { a as un, t as mn, g as cn } from "./number-CRrcUtSg.js";
19
19
  import { _ as ke } from "./PreviewBadge.vue_vue_type_script_setup_true_lang-CRZiQHjx.js";
20
- import { d as Be, g as pn, e as vn, a as fn } from "./import-export.helper-BLEUR_2a.js";
20
+ import { d as Be, g as pn, e as vn, a as fn } from "./import-export.helper-DYgr7Lvo.js";
21
21
  import { _ as yn } from "./FmCustomAttribute.vue_vue_type_script_setup_true_lang-D-IWRjRD.js";
22
- import { F as gn, a as Ye } from "./FmMultiselectDialog-BplRH37N.js";
23
- import { u as It } from "./purchase-order-template-CMQsOjp6.js";
24
- import { u as Ft, a as St } from "./closing-template-nSKzJbXQ.js";
22
+ import { F as gn, a as Ye } from "./FmMultiselectDialog-BdXOoS6z.js";
23
+ import { u as It } from "./purchase-order-template-DoEJEwqG.js";
24
+ import { u as Ft, a as St } from "./closing-template-CCY6fg4v.js";
25
25
  import { _ as bn, F as _t } from "./TableActionableRow.vue_vue_type_script_setup_true_lang-Ca_eYa8-.js";
26
- import { r as hn } from "./xlsx.util-DDX-Y6FY.js";
26
+ import { r as hn } from "./xlsx.util-DxgWqaTd.js";
27
27
  import { F as _n } from "./FmDroppableField-J0xUsOTV.js";
28
- import { _ as xn } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-BgR0wjB0.js";
29
- import { u as kn } from "./FmMultiselectDialog-DX3xMRs8.js";
28
+ import { _ as xn } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-CiMEAtPb.js";
29
+ import { u as kn } from "./FmMultiselectDialog-D_4f9sXH.js";
30
30
  import { P as Tn, J as wn } from "./app-DiX-EfV6.js";
31
31
  const Ke = Qt("ingredientForm", function() {
32
32
  const i = Ze(), k = $e(), d = Ae(), _ = P(!1), { t: F } = ve(), C = P();