@feedmepos/mf-inventory-portal 0.0.23-dev.18 → 0.0.23-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 (95) hide show
  1. package/dist/{App-Dfryh3pQ.js → App-DRE3c1lJ.js} +31 -36
  2. package/dist/{ApprovalView-CRrJeRCQ.js → ApprovalView-B4ZYcS3B.js} +4 -4
  3. package/dist/{BindingsDialog-Zh8FzTSI.js → BindingsDialog-Df1yrWHU.js} +2 -2
  4. package/dist/{BindingsPicker-BXChBNxv.js → BindingsPicker-BERMWh4w.js} +2 -2
  5. package/dist/{BindingsTable-BXB-X1N3.js → BindingsTable-DRIapOWW.js} +6 -6
  6. package/dist/{ClosingTemplateView-Bj6SiRlA.js → ClosingTemplateView-CbFn3Sdy.js} +31 -32
  7. package/dist/FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-7JYNssTm.js +267 -0
  8. package/dist/{FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-B8RhFmN_.js → FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-KbYSywk2.js} +2 -2
  9. package/dist/{FmMultiselectDialog-DWMt9hvV.js → FmMultiselectDialog-Da9JMCYa.js} +15 -15
  10. package/dist/FmUnitInput.vue_vue_type_script_setup_true_lang-BHSGZyJL.js +326 -0
  11. package/dist/{IngredientBindedItem.vue_vue_type_script_setup_true_lang-Be_B1iME.js → IngredientBindedItem.vue_vue_type_script_setup_true_lang-DH5IQchQ.js} +1 -1
  12. package/dist/{IngredientGroupView-DCOz2AOB.js → IngredientGroupView-DoETcEvV.js} +11 -12
  13. package/dist/IngredientsView-DHAhj9pV.js +1613 -0
  14. package/dist/{IntegrationView-BfoCYVHZ.js → IntegrationView-D1HeBiGF.js} +50 -50
  15. package/dist/{InventoryBindingForm-2Gs2vUtC.js → InventoryBindingForm-Dmz9BQ37.js} +1 -1
  16. package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-D9Of6ewh.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-DoyqVBOd.js} +13 -13
  17. package/dist/{InventoryBindingSummary-IUJt469w.js → InventoryBindingSummary-DrpwiRGZ.js} +1 -1
  18. package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-BtdmfQRZ.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-yNEswIEI.js} +1 -1
  19. package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-C97vZfAO.js → PremiumBadge.vue_vue_type_script_setup_true_lang-Br4_VUza.js} +2 -2
  20. package/dist/{PurchaseOrderPrintPreview-BRVCfgd3.js → PurchaseOrderPrintPreview-cp671yWE.js} +1 -1
  21. package/dist/ReceiveRequestView-C1WBlpho.js +4082 -0
  22. package/dist/{RecipeView-Br8u4xZZ.js → RecipeView-CD_dAWLo.js} +10 -11
  23. package/dist/{StockView-B2vBQLJf.js → StockView-DfUzFC1b.js} +1457 -1356
  24. package/dist/{SupplierView-S_qigSL4.js → SupplierView-DB-zrNxh.js} +783 -2352
  25. package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-2mzqFGCz.js +1144 -0
  26. package/dist/TransferTemplateView-CaAJrqU6.js +1262 -0
  27. package/dist/{UnitView-CR019bWO.js → UnitView-BlC9-WOA.js} +80 -81
  28. package/dist/{WarehouseView-BX7K073o.js → WarehouseView-CgEY87Lo.js} +24 -25
  29. package/dist/api/bill.d.ts +2 -2
  30. package/dist/api/closing.d.ts +0 -1
  31. package/dist/api/netsuite.d.ts +0 -69
  32. package/dist/{app-BY6TZxqB.js → app-CAyFhmAz.js} +3343 -3426
  33. package/dist/app.d.ts +0 -5
  34. package/dist/app.js +1 -1
  35. package/dist/components/FmMinMaxInputRules.d.ts +1 -4
  36. package/dist/components/row-action.enum.d.ts +0 -1
  37. package/dist/{date2-C385gf6_.js → date2-D9i5izMt.js} +1 -1
  38. package/dist/{dayjs.min-CuXsxyJ4.js → dayjs.min-SJKP9zBL.js} +17 -17
  39. package/dist/{decimal-DmIrlkyN.js → decimal-D7BCubZO.js} +1 -1
  40. package/dist/{defineDeepModel-CJEdL37p.js → defineDeepModel-DS4Shctf.js} +1 -1
  41. package/dist/{feature-DM4scjOG.js → feature-BR-MsGYt.js} +9 -23
  42. package/dist/{format-time-from-id-DmDFxNOY.js → format-time-from-id-CUby60uW.js} +1 -1
  43. package/dist/format-unit-display-D25Al2JZ.js +1198 -0
  44. package/dist/{fuzzy-D2QbaWQl.js → fuzzy-BryBtMz_.js} +1 -1
  45. package/dist/{index-UtLEzrzf.js → index-ByJbUSIQ.js} +1 -1
  46. package/dist/index-CFA_VFyX.js +10545 -0
  47. package/dist/{index-BgM27D6z.js → index-CTvgBOum.js} +25 -28
  48. package/dist/netsuite-D0G4B60k.js +146 -0
  49. package/dist/normalizeArguments-DP7Hrren.js +1552 -0
  50. package/dist/router/name.d.ts +0 -1
  51. package/dist/{row-action.enum-7rGLGZ5v.js → row-action.enum-PMKMRrZR.js} +5 -10
  52. package/dist/{rules-WXcRCM31.js → rules-DxVY0b7F.js} +35 -40
  53. package/dist/stores/feature.d.ts +0 -2
  54. package/dist/stores/integration/netsuite.d.ts +0 -81
  55. package/dist/stores/inventory.d.ts +4 -1
  56. package/dist/style.css +1 -1
  57. package/dist/{supplier-Cg0hV-1Z.js → supplier-aBuwVukl.js} +22 -22
  58. package/dist/tsconfig.app.tsbuildinfo +1 -1
  59. package/dist/{use-inventory-binding-dialog-C4A0C-q4.js → use-inventory-binding-dialog-CLQ0LUmW.js} +2 -2
  60. package/dist/{use-template-enabled-locations-2-ClTvBbS6.js → use-template-enabled-locations-2-BgTiwy_3.js} +2 -2
  61. package/dist/views/closing-template/composables/use-closing-template-actions.d.ts +192 -24
  62. package/dist/views/closing-template/composables/use-closing-template-table.d.ts +192 -24
  63. package/dist/views/receive-request/components/transfer-form/TransferForm.vue.d.ts +34 -34
  64. package/dist/views/receive-request/components/transfer-form/composables/use-transfer-items.d.ts +0 -1
  65. package/dist/views/receive-request/composables/use-receive-request-form.d.ts +54 -54
  66. package/dist/views/receive-request/composables/use-receive-request-table.d.ts +54 -54
  67. package/dist/views/stock/components/StockRecordCard.vue.d.ts +1 -1
  68. package/dist/views/transfer-template/components/transfer-template-form/composables/use-transfer-template-items.d.ts +8 -8
  69. package/dist/views/transfer-template/composables/use-transfer-template-actions.d.ts +96 -96
  70. package/dist/views/transfer-template/composables/use-transfer-template-table.d.ts +96 -96
  71. package/dist/{xlsx-jlUdZfql.js → xlsx-BbtURTDy.js} +1 -1
  72. package/dist/{xlsx.util-C4YF_j8p.js → xlsx.util-zYS4OJFi.js} +1 -1
  73. package/package.json +3 -3
  74. package/dist/ClosingDraftView-ZKdMqDrV.js +0 -1122
  75. package/dist/FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-CZ1NPD07.js +0 -283
  76. package/dist/FmUnitInput.vue_vue_type_script_setup_true_lang-C--mzLIB.js +0 -329
  77. package/dist/IngredientsView-D3ptwZy1.js +0 -1666
  78. package/dist/ReceiveRequestView-Brh9jtUz.js +0 -4195
  79. package/dist/TransferDetails.vue_vue_type_script_setup_true_lang--DGNx2VJ.js +0 -1235
  80. package/dist/TransferTemplateView-B0_EXehN.js +0 -1275
  81. package/dist/api/closing-draft.d.ts +0 -6
  82. package/dist/form-mode.enum-BKiNVH6A.js +0 -4
  83. package/dist/format-unit-display-DnZmCO-i.js +0 -1217
  84. package/dist/index-CKCFZ2N2.js +0 -12087
  85. package/dist/netsuite-CxzWHfIf.js +0 -251
  86. package/dist/stock-BVyJ8TZF.js +0 -111
  87. package/dist/views/closing-draft/ClosingDraftView.vue.d.ts +0 -2
  88. package/dist/views/closing-draft/components/closing-draft-action/ClosingDraftAction.vue.d.ts +0 -22
  89. package/dist/views/closing-draft/components/closing-draft-dialog/ClosingDraftDialog.vue.d.ts +0 -451
  90. package/dist/views/closing-draft/composables/use-closing-draft-actions.d.ts +0 -25
  91. package/dist/views/closing-draft/composables/use-closing-draft-table.d.ts +0 -2601
  92. package/dist/views/closing-draft/helpers/draft-status-to-class-name.helper.d.ts +0 -1
  93. package/dist/views/closing-draft/helpers/export-draft.helper.d.ts +0 -19
  94. package/dist/views/closing-draft/helpers/get-calculated-total.helper.d.ts +0 -4
  95. package/dist/views/receive-request/helper/check-netsuite-subsidiary.helper.d.ts +0 -1
@@ -1,11 +1,11 @@
1
- import { ref as Q, computed as R, defineComponent as F, mergeModels as ge, useModel as pe, onMounted as ve, resolveComponent as O, openBlock as C, createElementBlock as H, createElementVNode as c, toDisplayString as L, unref as y, createVNode as M, createBlock as Z, withCtx as J, Fragment as G, renderList as U, normalizeClass as q, normalizeStyle as Ie, createSlots as ye, createCommentVNode as K, withModifiers as be, reactive as te, watch as ne, isRef as ie, Teleport as oe } from "vue";
1
+ import { ref as Q, computed as R, defineComponent as F, mergeModels as ge, useModel as pe, onMounted as ve, resolveComponent as O, openBlock as C, createElementBlock as V, createElementVNode as c, toDisplayString as L, unref as y, createVNode as M, createBlock as Z, withCtx as J, Fragment as G, renderList as U, normalizeClass as q, normalizeStyle as Ie, createSlots as ye, createCommentVNode as K, withModifiers as be, reactive as te, watch as ne, isRef as ie, Teleport as oe } from "vue";
2
2
  import { E as Ee } from "./empty-placeholder-wf6-BWE8.js";
3
- import { u as _, H as se, D as he, c as T } from "./app-BY6TZxqB.js";
3
+ import { u as _, E as se, z as he, c as T } from "./app-CAyFhmAz.js";
4
4
  import { useSnackbar as re, useDialogChild as Be, useDialog as le, useProxiedModel as ae, useBreakpoints as $ } from "@feedmepos/ui-library";
5
- import { _ as Ce, a as Se } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-B8RhFmN_.js";
5
+ import { _ as Ce, a as Se } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-KbYSywk2.js";
6
6
  import { useI18n as Y, useCoreStore as ke } from "@feedmepos/mf-common";
7
- import { u as de } from "./netsuite-CxzWHfIf.js";
8
- import { f as ue } from "./fuzzy-D2QbaWQl.js";
7
+ import { u as de } from "./netsuite-D0G4B60k.js";
8
+ import { f as ue } from "./fuzzy-BryBtMz_.js";
9
9
  function xe() {
10
10
  return {
11
11
  setting: {
@@ -113,7 +113,7 @@ function Re(g, A) {
113
113
  function N(g) {
114
114
  return Object.prototype.hasOwnProperty.call(g, "children");
115
115
  }
116
- const He = { class: "flex flex-col gap-12 h-[350px]" }, Ve = { class: "flex items-center" }, ze = {
116
+ const Ve = { class: "flex flex-col gap-12 h-[350px]" }, He = { class: "flex items-center" }, ze = {
117
117
  class: "flex-1",
118
118
  "data-cy": "items-selected"
119
119
  }, Oe = {
@@ -158,10 +158,10 @@ const He = { class: "flex flex-col gap-12 h-[350px]" }, Ve = { class: "flex item
158
158
  w.sublabel ? [w.label, w.sublabel] : [w.label]
159
159
  ) ? !0 : x.length === 0 ? p(w) : N(w) ? k(x, w.children) : !1;
160
160
  }
161
- function V(e, n, u = 0, x = !1) {
161
+ function H(e, n, u = 0, x = !1) {
162
162
  if (N(e) && e.children.length) {
163
163
  const { children: w, ...X } = e, j = w.flatMap(
164
- (B, P) => V(B, [...n, P], u + 1, x || e.disabled)
164
+ (B, P) => H(B, [...n, P], u + 1, x || e.disabled)
165
165
  );
166
166
  return [
167
167
  {
@@ -185,7 +185,7 @@ const He = { class: "flex flex-col gap-12 h-[350px]" }, Ve = { class: "flex item
185
185
  ];
186
186
  }
187
187
  const z = R(() => A.value.flatMap(
188
- (e, n) => V(e, [n]).filter((u) => k(u.keys, A.value))
188
+ (e, n) => H(e, [n]).filter((u) => k(u.keys, A.value))
189
189
  ));
190
190
  function E(e) {
191
191
  if (N(e)) {
@@ -272,8 +272,8 @@ const He = { class: "flex flex-col gap-12 h-[350px]" }, Ve = { class: "flex item
272
272
  }
273
273
  return (e, n) => {
274
274
  const u = O("FmSearch"), x = O("FmCheckbox"), w = O("FmButton"), X = O("FmListItem"), j = O("FmList");
275
- return C(), H("div", He, [
276
- c("div", Ve, [
275
+ return C(), V("div", Ve, [
276
+ c("div", He, [
277
277
  c("div", ze, L(y(l)("inventory.formField.itemsSelected", { count: d.value })), 1),
278
278
  c("div", Oe, [
279
279
  M(u, {
@@ -288,7 +288,7 @@ const He = { class: "flex flex-col gap-12 h-[350px]" }, Ve = { class: "flex item
288
288
  class: "flex-1 overflow-y-auto"
289
289
  }, {
290
290
  default: J(() => [
291
- (C(!0), H(G, null, U(z.value, (B) => (C(), H("div", {
291
+ (C(!0), V(G, null, U(z.value, (B) => (C(), V("div", {
292
292
  key: B.keys.join(),
293
293
  class: q([
294
294
  "transition-all overflow-y-clip",
@@ -309,14 +309,14 @@ const He = { class: "flex flex-col gap-12 h-[350px]" }, Ve = { class: "flex item
309
309
  default: J(() => [
310
310
  c("div", Xe, [
311
311
  c("div", Je, [
312
- (C(!0), H(G, null, U(y(Re)(f.value, B.label).segments, (P, me) => (C(), H("span", {
312
+ (C(!0), V(G, null, U(y(Re)(f.value, B.label).segments, (P, me) => (C(), V("span", {
313
313
  key: me,
314
314
  class: q({
315
315
  "font-bold": P.isMatch
316
316
  })
317
317
  }, L(P.segment), 3))), 128))
318
318
  ]),
319
- B.sublabel ? (C(), H("div", {
319
+ B.sublabel ? (C(), V("div", {
320
320
  key: 0,
321
321
  class: q([
322
322
  "fm-typo-en-body-sm-400",
@@ -355,7 +355,7 @@ const He = { class: "flex flex-col gap-12 h-[350px]" }, Ve = { class: "flex item
355
355
  ], 10, Le))), 128))
356
356
  ]),
357
357
  _: 1
358
- })) : (C(), H("div", Ne, L(y(l)("inventory.formField.noItemsFound")), 1))
358
+ })) : (C(), V("div", Ne, L(y(l)("inventory.formField.noItemsFound")), 1))
359
359
  ]);
360
360
  };
361
361
  }
@@ -410,7 +410,7 @@ const He = { class: "flex flex-col gap-12 h-[350px]" }, Ve = { class: "flex item
410
410
  o.modifiers.filter((v) => v.selection !== m)
411
411
  );
412
412
  }
413
- function V({ selection: m }, v) {
413
+ function H({ selection: m }, v) {
414
414
  const I = o.modifiers.find((S) => S.selection === m);
415
415
  I && (I.code = v);
416
416
  }
@@ -476,7 +476,7 @@ const He = { class: "flex flex-col gap-12 h-[350px]" }, Ve = { class: "flex item
476
476
  const { t: E } = Y();
477
477
  return (m, v) => {
478
478
  const I = O("FmButton"), S = O("FmTextField");
479
- return C(), H("div", je, [
479
+ return C(), V("div", je, [
480
480
  c("div", Qe, [
481
481
  c("div", Ke, L(y(E)("inventory.integration.apply.addons")), 1),
482
482
  M(I, {
@@ -489,26 +489,26 @@ const He = { class: "flex flex-col gap-12 h-[350px]" }, Ve = { class: "flex item
489
489
  }, null, 8, ["label"])
490
490
  ]),
491
491
  c("div", null, [
492
- r.value.length > 0 ? (C(), H("table", Ze, [
492
+ r.value.length > 0 ? (C(), V("table", Ze, [
493
493
  c("tr", Fe, [
494
494
  c("th", Ye, L(y(E)("inventory.integration.apply.name")), 1),
495
495
  c("th", null, L(y(E)("inventory.integration.apply.code")), 1),
496
496
  v[1] || (v[1] = c("th", { class: "w-1" }, " ", -1))
497
497
  ]),
498
- (C(!0), H(G, null, U(r.value, (h, s) => (C(), H(G, { key: s }, [
498
+ (C(!0), V(G, null, U(r.value, (h, s) => (C(), V(G, { key: s }, [
499
499
  v[2] || (v[2] = c("tr", { class: "block h-8" }, null, -1)),
500
500
  c("tr", null, [
501
501
  c("td", null, [
502
502
  c("div", De, [
503
503
  c("div", Te, L(h.name), 1),
504
- h.groupName ? (C(), H("div", qe, L(h.groupName), 1)) : K("", !0)
504
+ h.groupName ? (C(), V("div", qe, L(h.groupName), 1)) : K("", !0)
505
505
  ])
506
506
  ]),
507
507
  c("td", null, [
508
508
  M(S, {
509
509
  disabled: g.loading,
510
510
  "model-value": h.code,
511
- "onUpdate:modelValue": [(t) => h.code = t, (t) => V(h, t)],
511
+ "onUpdate:modelValue": [(t) => h.code = t, (t) => H(h, t)],
512
512
  rules: [
513
513
  function(i) {
514
514
  return !!i || "Required";
@@ -542,13 +542,13 @@ function Ue(g, A = []) {
542
542
  function We(g, A, o) {
543
543
  const f = o.reduce((r, p) => {
544
544
  var E, m, v;
545
- const k = p.category || "", V = Ue(A, (E = p.variant) == null ? void 0 : E.variantGroupIds), z = {
545
+ const k = p.category || "", H = Ue(A, (E = p.variant) == null ? void 0 : E.variantGroupIds), z = {
546
546
  ...p,
547
547
  codeName: [p.code, p.name].filter((I) => !!I).join(" "),
548
548
  variant: {
549
549
  variantGroupIds: ((m = p.variant) == null ? void 0 : m.variantGroupIds) || [],
550
550
  variantCombinations: (((v = p.variant) == null ? void 0 : v.variantCombinations) || []).map((I) => {
551
- const S = I.code, h = I.name || V[I.combinationKey || ""];
551
+ const S = I.code, h = I.name || H[I.combinationKey || ""];
552
552
  return {
553
553
  ...I,
554
554
  codeName: [S, h].filter((s) => !!s).join(" ").trim() || "-"
@@ -572,7 +572,7 @@ function fe(g, A) {
572
572
  if (g.length == 1)
573
573
  return g[0];
574
574
  const o = g[0], f = g.slice(1, g.length), l = fe(f, A);
575
- return o.reduce((p, k) => [...p, ...l.map((V) => A(k, V))], new Array());
575
+ return o.reduce((p, k) => [...p, ...l.map((H) => A(k, H))], new Array());
576
576
  }
577
577
  function _e(g) {
578
578
  if (g.length === 0) return [];
@@ -630,7 +630,7 @@ const $e = { class: "flex flex-col rounded border border-fm-color-neutral-gray-1
630
630
  setup(g, { emit: A }) {
631
631
  const o = g, f = A, l = le(), r = R(() => o.isAddon ? "Addons" : "Products"), p = R(() => o.isAddon ? [] : o.categories), k = R(
632
632
  () => We(p.value, o.variants, o.menus)
633
- ), V = R(() => {
633
+ ), H = R(() => {
634
634
  if (o.isAddon)
635
635
  return o.bindings.map((i) => {
636
636
  const a = o.menus.find((b) => b._id === i.productId), d = (a == null ? void 0 : a.name) ?? "-";
@@ -793,7 +793,7 @@ const $e = { class: "flex flex-col rounded border border-fm-color-neutral-gray-1
793
793
  const { t: s } = Y();
794
794
  return (t, i) => {
795
795
  const a = O("FmButton"), d = O("FmTextField");
796
- return C(), H("div", $e, [
796
+ return C(), V("div", $e, [
797
797
  c("div", et, [
798
798
  c("div", tt, L(g.isAddon ? y(s)("inventory.integration.apply.addons") : y(s)("inventory.integration.apply.products")), 1),
799
799
  M(a, {
@@ -806,19 +806,19 @@ const $e = { class: "flex flex-col rounded border border-fm-color-neutral-gray-1
806
806
  }, null, 8, ["label"])
807
807
  ]),
808
808
  c("div", null, [
809
- V.value.length > 0 ? (C(), H("table", nt, [
809
+ H.value.length > 0 ? (C(), V("table", nt, [
810
810
  c("tr", it, [
811
811
  c("th", ot, L(y(s)("inventory.integration.apply.name")), 1),
812
812
  c("th", null, L(y(s)("inventory.integration.apply.code")), 1),
813
813
  i[1] || (i[1] = c("th", { class: "w-1" }, " ", -1))
814
814
  ]),
815
- (C(!0), H(G, null, U(V.value, (b, e) => (C(), H(G, { key: e }, [
815
+ (C(!0), V(G, null, U(H.value, (b, e) => (C(), V(G, { key: e }, [
816
816
  i[2] || (i[2] = c("tr", { class: "block h-8" }, null, -1)),
817
817
  c("tr", null, [
818
818
  c("td", null, [
819
819
  c("div", st, [
820
820
  c("div", rt, L(b.itemCode) + " " + L(b.name), 1),
821
- b.variantName ? (C(), H("div", lt, L(b.variantName), 1)) : K("", !0)
821
+ b.variantName ? (C(), V("div", lt, L(b.variantName), 1)) : K("", !0)
822
822
  ])
823
823
  ]),
824
824
  c("td", null, [
@@ -873,7 +873,7 @@ const $e = { class: "flex flex-col rounded border border-fm-color-neutral-gray-1
873
873
  var E, m;
874
874
  (m = (E = r.value) == null ? void 0 : E.validateInputs) == null || m.call(E);
875
875
  }
876
- function V() {
876
+ function H() {
877
877
  f("update:setting", T(l)), f("submit");
878
878
  }
879
879
  const { t: z } = Y();
@@ -895,7 +895,7 @@ const $e = { class: "flex flex-col rounded border border-fm-color-neutral-gray-1
895
895
  M(I, {
896
896
  ref_key: "formRef",
897
897
  ref: r,
898
- onValidationSuccess: m[2] || (m[2] = (s) => V())
898
+ onValidationSuccess: m[2] || (m[2] = (s) => H())
899
899
  }, {
900
900
  default: J(() => [
901
901
  M(W, {
@@ -951,7 +951,7 @@ const $e = { class: "flex flex-col rounded border border-fm-color-neutral-gray-1
951
951
  const r = R(() => o.menus.filter((s) => (s == null ? void 0 : s.category) === null)), p = R(() => l.bindings.filter((s) => {
952
952
  const t = o.menus.find((i) => i._id === s.productId);
953
953
  return t ? (t == null ? void 0 : t.category) === null : !1;
954
- })), k = R(() => o.menus.filter((s) => (s == null ? void 0 : s.category) !== null)), V = R(() => l.bindings.filter((s) => {
954
+ })), k = R(() => o.menus.filter((s) => (s == null ? void 0 : s.category) !== null)), H = R(() => l.bindings.filter((s) => {
955
955
  const t = o.menus.find((i) => i._id === s.productId);
956
956
  return t ? (t == null ? void 0 : t.category) !== null : !1;
957
957
  }));
@@ -959,7 +959,7 @@ const $e = { class: "flex flex-col rounded border border-fm-color-neutral-gray-1
959
959
  l.bindings = [...p.value, ...s];
960
960
  }
961
961
  function E(s) {
962
- l.bindings = [...V.value, ...s];
962
+ l.bindings = [...H.value, ...s];
963
963
  }
964
964
  const m = Q(), v = ae(o, "show");
965
965
  function I() {
@@ -994,7 +994,7 @@ const $e = { class: "flex flex-col rounded border border-fm-color-neutral-gray-1
994
994
  M(W, {
995
995
  categories: s.categories,
996
996
  variants: s.variants,
997
- bindings: V.value,
997
+ bindings: H.value,
998
998
  menus: k.value,
999
999
  "onUpdate:bindings": t[0] || (t[0] = (e) => z(e))
1000
1000
  }, null, 8, ["categories", "variants", "bindings", "menus"]),
@@ -1026,7 +1026,7 @@ const $e = { class: "flex flex-col rounded border border-fm-color-neutral-gray-1
1026
1026
  }), ft = { key: 0 }, mt = { class: "flex justify-center" }, gt = ["src"], pt = { class: "flex flex-col items-center gap-2" }, vt = { class: "text-lg font-bold" }, It = { class: "text-fm-color-neutral-gray-300" }, yt = { key: 0 }, bt = /* @__PURE__ */ F({
1027
1027
  __name: "FoodMarketHub",
1028
1028
  setup(g) {
1029
- const A = ke(), o = re(), f = _(), l = Q(!1), r = ce(), p = R(() => r.state.menu ?? []), k = R(() => r.state.group ?? []), V = R(() => r.state.variants ?? []), z = R(() => r.state.categories ?? []), E = se(), m = R(() => {
1029
+ const A = ke(), o = re(), f = _(), l = Q(!1), r = ce(), p = R(() => r.state.menu ?? []), k = R(() => r.state.group ?? []), H = R(() => r.state.variants ?? []), z = R(() => r.state.categories ?? []), E = se(), m = R(() => {
1030
1030
  var a;
1031
1031
  return (a = A.currentBusiness.value) == null ? void 0 : a.menuVersion;
1032
1032
  });
@@ -1061,7 +1061,7 @@ const $e = { class: "flex flex-col rounded border border-fm-color-neutral-gray-1
1061
1061
  const { t: i } = Y();
1062
1062
  return (a, d) => {
1063
1063
  const b = O("FmCardSection"), e = O("FmCard");
1064
- return y(r).isEnabled && !y(r).isBusinessLocation ? (C(), H("div", ft, [
1064
+ return y(r).isEnabled && !y(r).isBusinessLocation ? (C(), V("div", ft, [
1065
1065
  M(e, {
1066
1066
  class: q({
1067
1067
  "w-full": s.value,
@@ -1092,12 +1092,12 @@ const $e = { class: "flex flex-col rounded border border-fm-color-neutral-gray-1
1092
1092
  ]),
1093
1093
  _: 1
1094
1094
  }, 8, ["class"]),
1095
- y(r).state.setting ? (C(), H("div", yt, [
1095
+ y(r).state.setting ? (C(), V("div", yt, [
1096
1096
  (C(), Z(oe, { to: "body" }, [
1097
1097
  m.value === "v3" ? (C(), Z(ut, {
1098
1098
  key: 0,
1099
1099
  menus: p.value,
1100
- variants: V.value,
1100
+ variants: H.value,
1101
1101
  categories: z.value,
1102
1102
  setting: y(r).state.setting,
1103
1103
  "onUpdate:setting": d[1] || (d[1] = (n) => y(r).state.setting = n),
@@ -1109,7 +1109,7 @@ const $e = { class: "flex flex-col rounded border border-fm-color-neutral-gray-1
1109
1109
  }, null, 8, ["menus", "variants", "categories", "setting", "show", "groups", "loading"])) : (C(), Z(At, {
1110
1110
  key: 1,
1111
1111
  menus: p.value,
1112
- variants: V.value,
1112
+ variants: H.value,
1113
1113
  categories: z.value,
1114
1114
  setting: y(r).state.setting,
1115
1115
  "onUpdate:setting": d[4] || (d[4] = (n) => y(r).state.setting = n),
@@ -1132,9 +1132,9 @@ const $e = { class: "flex flex-col rounded border border-fm-color-neutral-gray-1
1132
1132
  o.value = !0;
1133
1133
  }
1134
1134
  const { breakpoints: l } = $(), r = R(() => l.value.xs || l.value.sm), p = R(() => r.value), { t: k } = Y();
1135
- return (V, z) => {
1135
+ return (H, z) => {
1136
1136
  const E = O("FmCardSection"), m = O("FmCard");
1137
- return y(A).isEnabled && y(A).isBusinessLocation ? (C(), H("div", ht, [
1137
+ return y(A).isEnabled && y(A).isBusinessLocation ? (C(), V("div", ht, [
1138
1138
  M(m, {
1139
1139
  class: q({
1140
1140
  "w-full": p.value,
@@ -1165,23 +1165,23 @@ const $e = { class: "flex flex-col rounded border border-fm-color-neutral-gray-1
1165
1165
  ]),
1166
1166
  _: 1
1167
1167
  }, 8, ["class"]),
1168
- y(A).state.setting ? (C(), H("div", wt, [
1168
+ y(A).state.setting ? (C(), V("div", wt, [
1169
1169
  (C(), Z(oe, { to: "body" }))
1170
1170
  ])) : K("", !0)
1171
1171
  ])) : K("", !0);
1172
1172
  };
1173
1173
  }
1174
- }), Rt = { key: 0 }, Ht = {
1174
+ }), Rt = { key: 0 }, Vt = {
1175
1175
  key: 1,
1176
1176
  class: "flex flex-col items-center my-10 gap-5"
1177
- }, Vt = ["src"], zt = {
1177
+ }, Ht = ["src"], zt = {
1178
1178
  class: "text-xs text-neutral-400 text-center",
1179
1179
  style: { "max-width": "25rem" }
1180
1180
  }, Ot = { key: 2 }, Ft = /* @__PURE__ */ F({
1181
1181
  __name: "IntegrationView",
1182
1182
  setup(g) {
1183
1183
  const A = _(), o = Q(!1), f = we(), { breakpoints: l } = $(), r = R(() => l.value.xs || l.value.sm), { t: p } = Y();
1184
- return (k, V) => {
1184
+ return (k, H) => {
1185
1185
  const z = O("FmCircularProgress");
1186
1186
  return C(), Z(Ce, {
1187
1187
  title: y(p)("inventory.integration.title")
@@ -1200,18 +1200,18 @@ const $e = { class: "flex flex-col rounded border border-fm-color-neutral-gray-1
1200
1200
  "change-location": "",
1201
1201
  showBusiness: ""
1202
1202
  }),
1203
- !y(A)._currentLocation || o.value ? (C(), H("div", Rt, [
1203
+ !y(A)._currentLocation || o.value ? (C(), V("div", Rt, [
1204
1204
  M(z, { size: "lg" })
1205
- ])) : y(f).enabledIntegrations == 0 ? (C(), H("div", Ht, [
1205
+ ])) : y(f).enabledIntegrations == 0 ? (C(), V("div", Vt, [
1206
1206
  c("div", null, [
1207
1207
  c("img", {
1208
1208
  src: y(Ee),
1209
1209
  alt: "List is empty"
1210
- }, null, 8, Vt)
1210
+ }, null, 8, Ht)
1211
1211
  ]),
1212
- V[0] || (V[0] = c("div", { class: "font-bold text-lg" }, "Integration", -1)),
1212
+ H[0] || (H[0] = c("div", { class: "font-bold text-lg" }, "Integration", -1)),
1213
1213
  c("div", zt, L(y(p)("inventory.integration.description")), 1)
1214
- ])) : (C(), H("div", Ot, [
1214
+ ])) : (C(), V("div", Ot, [
1215
1215
  M(Mt),
1216
1216
  M(bt)
1217
1217
  ]))
@@ -1,4 +1,4 @@
1
- import { _ as f } from "./InventoryBindingForm.vue_vue_type_script_setup_true_lang-D9Of6ewh.js";
1
+ import { _ as f } from "./InventoryBindingForm.vue_vue_type_script_setup_true_lang-DoyqVBOd.js";
2
2
  export {
3
3
  f as default
4
4
  };
@@ -1,9 +1,9 @@
1
1
  import { defineComponent as J, computed as y, reactive as Q, resolveComponent as g, openBlock as f, createElementBlock as x, createVNode as m, createElementVNode as n, toDisplayString as v, unref as l, Fragment as C, renderList as A, createBlock as R, withCtx as S, createCommentVNode as T, nextTick as X } from "vue";
2
- import { a as Z, K as ee, F as ne } from "./app-BY6TZxqB.js";
3
- import { a as h, q as oe, d as N, c as te } from "./rules-WXcRCM31.js";
4
- import { u as ie } from "./use-inventory-binding-dialog-C4A0C-q4.js";
5
- import { f as le } from "./index-BgM27D6z.js";
6
- import { _ as se, c as re, d as de } from "./FmUnitInput.vue_vue_type_script_setup_true_lang-C--mzLIB.js";
2
+ import { a as Z, H as ee, F as ne } from "./app-CAyFhmAz.js";
3
+ import { a as h, o as oe, d as N, c as te } from "./rules-DxVY0b7F.js";
4
+ import { u as ie } from "./use-inventory-binding-dialog-CLQ0LUmW.js";
5
+ import { f as le } from "./index-CTvgBOum.js";
6
+ import { _ as se, c as re, d as de } from "./FmUnitInput.vue_vue_type_script_setup_true_lang-BHSGZyJL.js";
7
7
  import { useI18n as ae } from "@feedmepos/mf-common";
8
8
  const ue = { class: "flex flex-col gap-24" }, me = { class: "flex flex-col gap-16" }, ce = { class: "flex items-center" }, pe = { class: "flex-1 fm-typo-en-title-sm-600" }, fe = { class: "flex flex-col" }, ve = { class: "flex py-8 px-12 border-b border-fm-color-neutral-gray-200 bg-fm-color-neutral-gray-100 h-[44px] items-center" }, ye = { class: "fm-typo-en-body-md-600 text-fm-color-typo-secondary" }, _e = {
9
9
  class: "flex items-center w-full border-b border-fm-color-neutral-gray-100",
@@ -33,12 +33,12 @@ const ue = { class: "flex flex-col gap-24" }, me = { class: "flex flex-col gap-1
33
33
  contains: s.modelValue
34
34
  } : t),
35
35
  skus: b.value
36
- }).inventoryBindings.filter((t) => t.error).filter((t) => t.reason === ee.enum.circularDependency)), K = y(
36
+ }).inventoryBindings.filter((t) => t.error).filter((t) => t.reason === ee.enum.circularDependency)), D = y(
37
37
  () => new Set(F.value.map((e) => {
38
38
  var o;
39
39
  return (o = e.bindingPaths[0]) == null ? void 0 : o.id;
40
40
  }))
41
- ), D = y(() => s.modelValue.filter((e) => e.type === "RECIPE")), { promptIngredientsBinding: $, promptRecipesBinding: z } = ie();
41
+ ), K = y(() => s.modelValue.filter((e) => e.type === "RECIPE")), { promptIngredientsBinding: $, promptRecipesBinding: z } = ie();
42
42
  async function G() {
43
43
  if (s.iframeMode) {
44
44
  p("click:pick-inventory-bindings", "RECIPE");
@@ -83,7 +83,7 @@ const ue = { class: "flex flex-col gap-24" }, me = { class: "flex flex-col gap-1
83
83
  function Y(e) {
84
84
  return { amount: e.amount, measurement: e.measurement };
85
85
  }
86
- function q(e, o, t) {
86
+ function H(e, o, t) {
87
87
  const r = t.map((d) => d.id !== e ? d : {
88
88
  ...d,
89
89
  amount: o.amount,
@@ -113,7 +113,7 @@ const ue = { class: "flex flex-col gap-24" }, me = { class: "flex flex-col gap-1
113
113
  });
114
114
  }
115
115
  return (e, o) => {
116
- const t = g("FmFormGroup"), r = g("FmButton"), d = g("FmIcon"), a = g("FmTextField"), H = g("FmTooltip");
116
+ const t = g("FmFormGroup"), r = g("FmButton"), d = g("FmIcon"), a = g("FmTextField"), q = g("FmTooltip");
117
117
  return f(), x("div", ue, [
118
118
  m(t, {
119
119
  disabled: e.disabled,
@@ -138,7 +138,7 @@ const ue = { class: "flex flex-col gap-24" }, me = { class: "flex flex-col gap-1
138
138
  o[0] || (o[0] = n("div", { class: "w-[200px]" }, null, -1)),
139
139
  o[1] || (o[1] = n("div", { class: "w-[52px]" }, null, -1))
140
140
  ]),
141
- (f(!0), x(C, null, A(D.value, (i) => (f(), R(t, {
141
+ (f(!0), x(C, null, A(K.value, (i) => (f(), R(t, {
142
142
  key: i.id,
143
143
  disabled: e.disabled,
144
144
  modelValue: +l(h)(i.amount ?? { amount: 1, precision: 0 }),
@@ -151,7 +151,7 @@ const ue = { class: "flex flex-col gap-24" }, me = { class: "flex flex-col gap-1
151
151
  n("div", ge, [
152
152
  n("div", xe, [
153
153
  n("div", null, v((_ = k.value.find((u) => u._id === i.id)) == null ? void 0 : _.name), 1),
154
- K.value.has(i.id) ? (f(), x("div", be, [
154
+ D.value.has(i.id) ? (f(), x("div", be, [
155
155
  m(d, {
156
156
  name: "error",
157
157
  color: "system-error-400",
@@ -214,7 +214,7 @@ const ue = { class: "flex flex-col gap-24" }, me = { class: "flex flex-col gap-1
214
214
  n("div", Ce, [
215
215
  n("div", Ae, [
216
216
  n("span", Re, v((_ = b.value.find((u) => u._id === i.id)) == null ? void 0 : _.name), 1),
217
- F.value.length ? (f(), R(H, {
217
+ F.value.length ? (f(), R(q, {
218
218
  key: 0,
219
219
  variant: "plain",
220
220
  placement: "bottom",
@@ -235,7 +235,7 @@ const ue = { class: "flex flex-col gap-24" }, me = { class: "flex flex-col gap-1
235
235
  n("div", Se, [
236
236
  m(se, {
237
237
  "model-value": Y(i),
238
- "onUpdate:modelValue": (u) => q(i.id, u, e.modelValue),
238
+ "onUpdate:modelValue": (u) => H(i.id, u, e.modelValue),
239
239
  "onUpdate:amount": (u) => W(i, u),
240
240
  unit: U(i),
241
241
  placement: V === I.value.length - 1 ? "top" : "bottom",
@@ -1,7 +1,7 @@
1
1
  import { defineComponent as s, resolveComponent as c, openBlock as m, createBlock as d, h as g } from "vue";
2
2
  import { useI18n as p } from "@feedmepos/mf-common";
3
3
  import { components as u } from "@feedmepos/ui-library";
4
- import { F as r } from "./app-BY6TZxqB.js";
4
+ import { F as r } from "./app-CAyFhmAz.js";
5
5
  const B = /* @__PURE__ */ s({
6
6
  __name: "InventoryBindingSummary",
7
7
  props: {
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as y, computed as V, ref as w, watch as h, resolveComponent as u, openBlock as F, createBlock as A, withCtx as s, createVNode as g, createElementVNode as k, normalizeClass as K } from "vue";
2
- import { c as d } from "./rules-WXcRCM31.js";
2
+ import { c as d } from "./rules-DxVY0b7F.js";
3
3
  const _ = ["value", "disabled"], D = /* @__PURE__ */ y({
4
4
  __name: "NumberPrecisionInput",
5
5
  props: {
@@ -1,5 +1,5 @@
1
- import { u as d, w as f } from "./xlsx-jlUdZfql.js";
2
- import { k as _, u as h } from "./app-BY6TZxqB.js";
1
+ import { u as d, w as f } from "./xlsx-BbtURTDy.js";
2
+ import { j as _, u as h } from "./app-CAyFhmAz.js";
3
3
  import { useCoreStore as F } from "@feedmepos/mf-common";
4
4
  import { ref as y, defineComponent as v, resolveComponent as p, openBlock as k, createElementBlock as g, renderSlot as S, createVNode as l, withCtx as x } from "vue";
5
5
  function w(e, t) {
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as h, computed as x, ref as m, onMounted as f, openBlock as n, createElementBlock as u, createElementVNode as t, toDisplayString as l, normalizeStyle as g, createTextVNode as i, Fragment as o, createCommentVNode as p, renderList as v, normalizeClass as w } from "vue";
2
2
  import { useRoute as k } from "vue-router";
3
- import { y } from "./app-BY6TZxqB.js";
3
+ import { v as y } from "./app-CAyFhmAz.js";
4
4
  import { _ as C } from "./_plugin-vue_export-helper-CHgC5LLL.js";
5
5
  const P = { class: "purchase-box" }, R = { valign: "bottom" }, A = { class: "text-right" }, N = { class: "header" }, E = { class: "sub-header" }, O = { class: "caption" }, S = { class: "address" }, D = { class: "text-right" }, T = { class: "sub-header" }, q = { class: "address" }, F = { class: "purchase-body" }, L = { class: "text-left" }, U = { class: "text-left" }, V = { class: "text-right" }, z = { style: { "padding-top": "30px" } }, B = { valign: "bottom" }, H = { class: "header" }, I = { class: "caption" }, M = {
6
6
  class: "text-left",