@feedmepos/mf-inventory-portal 0.0.9-dev.5 → 0.0.9-dev.6

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 (35) hide show
  1. package/dist/{ApprovalView-DZ7G3Dpw.js → ApprovalView-Cy6o4vgq.js} +6 -6
  2. package/dist/{BindingsDialog-C4T58DLy.js → BindingsDialog-Da4mKx5M.js} +2 -2
  3. package/dist/{BindingsPicker-tk740qzr.js → BindingsPicker-9l3ylHk3.js} +2 -2
  4. package/dist/{BindingsTable-CHlxRr9d.js → BindingsTable-BBd97tsS.js} +3 -3
  5. package/dist/{ChangeLocationComponent.vue_vue_type_script_setup_true_lang-BnVvi9YB.js → ChangeLocationComponent.vue_vue_type_script_setup_true_lang-BBqgA2aN.js} +1 -1
  6. package/dist/{FmMultiselectDialog.vue_vue_type_script_setup_true_lang-FLtXQrxO.js → FmMultiselectDialog.vue_vue_type_script_setup_true_lang-D9kKpClR.js} +2 -2
  7. package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-C1soNoi-.js → FmUnitInput.vue_vue_type_script_setup_true_lang-21-IoTzr.js} +69 -66
  8. package/dist/{IngredientBindedItem.vue_vue_type_script_setup_true_lang-BZ9Tqeho.js → IngredientBindedItem.vue_vue_type_script_setup_true_lang-DdRnS0yE.js} +1 -1
  9. package/dist/{IngredientsView-DWimVSXF.js → IngredientsView-CtAESxcL.js} +6 -6
  10. package/dist/{IntegrationView-Dim5QETq.js → IntegrationView-CzO3PutO.js} +3 -3
  11. package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-DESMP89v.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-eJrgpgsK.js} +43 -42
  12. package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-CHzRvOOD.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-BaPCT7m6.js} +1 -1
  13. package/dist/{PurchaseOrderPrintPreview-DWLpugcd.js → PurchaseOrderPrintPreview-S5uXyleV.js} +1 -1
  14. package/dist/{ReceiveRequestView-Dc7jAVbO.js → ReceiveRequestView-B_iVgs0l.js} +11 -11
  15. package/dist/{RecipeView-BFlxbyu_.js → RecipeView-CTC9v2hH.js} +7 -7
  16. package/dist/{StockView-Dv2jJlF6.js → StockView-DbukZ1Pu.js} +12 -12
  17. package/dist/{SupplierView-BMrGQpLJ.js → SupplierView-C98G3f39.js} +38 -34
  18. package/dist/{TransferDetails.vue_vue_type_script_setup_true_lang-D5dbypxK.js → TransferDetails.vue_vue_type_script_setup_true_lang-DN2t2tQn.js} +5 -5
  19. package/dist/{UnitView-TYcL9inB.js → UnitView-DVl7voaF.js} +6 -6
  20. package/dist/{WarehouseView-CsjJ6mZW.js → WarehouseView-DPe_npYA.js} +3 -3
  21. package/dist/{app-M9Z8lUHo.js → app-BrtBi6V8.js} +3 -3
  22. package/dist/app.js +1 -1
  23. package/dist/components/FmUnitInputProps.d.ts +1 -0
  24. package/dist/{date2-OJLPOd91.js → date2-BvGKe7pe.js} +1 -1
  25. package/dist/{dayjs.min-Cw0T-_42.js → dayjs.min-DM-sejr0.js} +2 -2
  26. package/dist/{decimal-D1Tz_3Ib.js → decimal-Cbm8313c.js} +1 -1
  27. package/dist/{fuzzy-TX8jTlf3.js → fuzzy-BG3pP_WO.js} +1 -1
  28. package/dist/{init-date-range-wn-dTxvH.js → init-date-range-d84mdcG8.js} +1 -1
  29. package/dist/{layout-8y0JGpGb.js → layout-TawyfRi7.js} +1 -1
  30. package/dist/{rules-BM4xu-zd.js → rules-D-Bw7E0k.js} +1 -1
  31. package/dist/{stock-estimate-UhIlC8We.js → stock-estimate-rFOPsZNO.js} +2 -2
  32. package/dist/{supplier-9CUF_94y.js → supplier-BXkTD6wl.js} +1 -1
  33. package/dist/{use-inventory-binding-dialog-DFA1NpNT.js → use-inventory-binding-dialog-DuVk-QOK.js} +2 -2
  34. package/dist/{xlsx-gm4jAAS2.js → xlsx-D150Vh83.js} +1 -1
  35. package/package.json +2 -2
@@ -1,11 +1,11 @@
1
1
  import { defineComponent as Z, ref as v, watch as B, computed as I, resolveComponent as ee, openBlock as h, createBlock as P, withCtx as D, createElementVNode as o, createVNode as r, normalizeStyle as te, unref as e, toDisplayString as ae, createElementBlock as oe, createCommentVNode as re, Teleport as se, mergeProps as ne } from "vue";
2
- import { o as d, e as le } from "./app-M9Z8lUHo.js";
3
- import { a as pe } from "./init-date-range-wn-dTxvH.js";
4
- import { a as ce, b as ie, _ as me } from "./TransferDetails.vue_vue_type_script_setup_true_lang-D5dbypxK.js";
5
- import { q as H } from "./date2-OJLPOd91.js";
2
+ import { o as d, e as le } from "./app-BrtBi6V8.js";
3
+ import { a as pe } from "./init-date-range-d84mdcG8.js";
4
+ import { a as ce, b as ie, _ as me } from "./TransferDetails.vue_vue_type_script_setup_true_lang-DN2t2tQn.js";
5
+ import { q as H } from "./date2-BvGKe7pe.js";
6
6
  import { _ as ue } from "./SingleColumnLayout.vue_vue_type_script_setup_true_lang-CFjO4TPG.js";
7
- import { _ as de } from "./ChangeLocationComponent.vue_vue_type_script_setup_true_lang-BnVvi9YB.js";
8
- import { _ as fe, F as f, u as _e } from "./layout-8y0JGpGb.js";
7
+ import { _ as de } from "./ChangeLocationComponent.vue_vue_type_script_setup_true_lang-BBqgA2aN.js";
8
+ import { _ as fe, F as f, u as _e } from "./layout-TawyfRi7.js";
9
9
  import { useBreakpoints as ve } from "@feedmepos/ui-library";
10
10
  const he = { class: "px-24 xs:p-0 sm:p-0 flex flex-col gap-8 max-h-full" }, De = { class: "px-8 flex gap-8 items-center xs:gap-0 xs:flex-col-reverse sm:gap-0 sm:flex-col-reverse" }, xe = { class: "xs:w-full sm:w-full flex gap-8 items-center overflow-x-auto no-scrollbar py-8" }, ge = /* @__PURE__ */ o("div", { class: "h-32" }, null, -1), be = { class: "flex flex-col py-8" }, ye = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, we = { class: "fm-typo-en-body-lg-600 text-fm-color-typo-primary line-clamp-1" }, Re = { class: "fm-typo-en-body-md-400 text-fm-color-typo-primary line-clamp-1" }, Oe = {
11
11
  key: 0,
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as C, ref as o, onMounted as M, onUnmounted as x, watch as F, resolveComponent as l, openBlock as i, createElementBlock as c, createBlock as I, withCtx as R, createVNode as a, createCommentVNode as z, createElementVNode as P } from "vue";
2
- import { _ as V } from "./InventoryBindingForm.vue_vue_type_script_setup_true_lang-DESMP89v.js";
3
- import { u as L, x as S } from "./app-M9Z8lUHo.js";
2
+ import { _ as V } from "./InventoryBindingForm.vue_vue_type_script_setup_true_lang-eJrgpgsK.js";
3
+ import { u as L, x as S } from "./app-BrtBi6V8.js";
4
4
  const U = {
5
5
  key: 0,
6
6
  class: "flex justify-end gap-8 items-center"
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as S, computed as r, ref as l, onMounted as U, onUnmounted as V, resolveComponent as E, openBlock as p, createElementBlock as f, createVNode as u, createElementVNode as k } from "vue";
2
- import { _ as x } from "./FmMultiselectDialog.vue_vue_type_script_setup_true_lang-FLtXQrxO.js";
3
- import { u as M, x as h } from "./app-M9Z8lUHo.js";
2
+ import { _ as x } from "./FmMultiselectDialog.vue_vue_type_script_setup_true_lang-D9kKpClR.js";
3
+ import { u as M, x as h } from "./app-BrtBi6V8.js";
4
4
  const z = {
5
5
  key: 0,
6
6
  class: "flex flex-col gap-16"
@@ -1,8 +1,8 @@
1
1
  import { defineComponent as h, ref as o, provide as C, computed as v, resolveComponent as x, openBlock as r, createElementBlock as u, Fragment as L, renderList as F, createElementVNode as p, toDisplayString as k, createVNode as w, withModifiers as I, createStaticVNode as N, onMounted as E, onUnmounted as z, createBlock as M } from "vue";
2
- import { h as b, u as P, x as R } from "./app-M9Z8lUHo.js";
3
- import "./dayjs.min-Cw0T-_42.js";
2
+ import { h as b, u as P, x as R } from "./app-BrtBi6V8.js";
3
+ import "./dayjs.min-DM-sejr0.js";
4
4
  import "@feedmepos/ui-library";
5
- import "./fuzzy-TX8jTlf3.js";
5
+ import "./fuzzy-BG3pP_WO.js";
6
6
  const U = { class: "" }, D = /* @__PURE__ */ N('<div class="flex font-bold bg-[#F7F8FA]"><div class="flex-grow-0 flex-shrink-0 basis-5/12 py-8"></div><div class="flex-grow-0 flex-shrink-0 basis-3/12 py-8">Ingredient</div><div class="flex-grow-0 flex-shrink-0 basis-3/12 py-8">Recipe</div><div class="flex-grow-0 flex-shrink-0 basis-1/12 py-8"></div></div>', 1), O = ["onClick"], V = { class: "flex-grow-0 flex-shrink-0 basis-5/12 py-8 pl-8" }, $ = { class: "flex-grow-0 flex-shrink-0 basis-3/12 py-8" }, S = { class: "flex-grow-0 flex-shrink-0 basis-3/12 py-8" }, T = { class: "flex-grow-0 flex-shrink-0 basis-1/12 py-4" }, A = /* @__PURE__ */ h({
7
7
  __name: "binding-ui",
8
8
  props: {
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as S, ref as V, computed as p, resolveComponent as a, openBlock as t, createElementBlock as v, createVNode as l, withCtx as w, createElementVNode as i, toDisplayString as H, unref as _, Fragment as k, renderList as C, createBlock as d, createCommentVNode as L } from "vue";
2
- import { e as I } from "./app-M9Z8lUHo.js";
2
+ import { e as I } from "./app-BrtBi6V8.js";
3
3
  const B = { class: "inline-flex" }, D = { class: "inline-flex rounded-md items-center gap-4 justify-center h-[30px] px-8 py-4 bg-fm-color-neutral-gray-100 cursor-pointer text-fm-color-neutral-gray-400" }, z = { class: "fm-typo-en-body-md-600 select-none text-ellipsis overflow-hidden whitespace-nowrap" }, E = {
4
4
  class: "overflow-hidden overflow-y-scroll",
5
5
  style: { maxHeight: "105px" }
@@ -1,7 +1,7 @@
1
1
  import { defineComponent as $, ref as C, onMounted as N, watch as E, computed as f, resolveComponent as m, openBlock as v, createElementBlock as _, createElementVNode as s, createVNode as d, createTextVNode as M, toDisplayString as T, createSlots as U, withCtx as h, createBlock as I, Fragment as j, renderList as z } from "vue";
2
2
  import { useDialogChild as q } from "@feedmepos/ui-library";
3
- import { v as c } from "./app-M9Z8lUHo.js";
4
- import { f as H } from "./fuzzy-TX8jTlf3.js";
3
+ import { v as c } from "./app-BrtBi6V8.js";
4
+ import { f as H } from "./fuzzy-BG3pP_WO.js";
5
5
  const R = { class: "flex flex-col h-[400px]" }, G = { class: "flex justify-between py-24 items-center relative" }, J = { class: "flex gap-16 basis-1/2" }, K = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, O = /* @__PURE__ */ s("span", { class: "xs:hidden" }, "selected", -1), P = /* @__PURE__ */ s("div", { class: "absolute pointer-events-none -bottom-[304px] left-0 w-full h-[308px] overflow-hidden flex flex-col justify-between" }, [
6
6
  /* @__PURE__ */ s("div", { class: "h-1 fm-shadow-light-200" }),
7
7
  /* @__PURE__ */ s("div", {
@@ -1,24 +1,24 @@
1
- import { defineComponent as K, mergeModels as j, useModel as Q, computed as u, ref as F, watch as L, inject as X, resolveComponent as m, openBlock as h, createElementBlock as w, createElementVNode as s, createVNode as f, withCtx as k, renderSlot as U, withDirectives as Y, normalizeClass as ee, vModelText as te, toDisplayString as z, createCommentVNode as ne, Fragment as oe, renderList as le, createBlock as ae } from "vue";
2
- import { F as x } from "./dayjs.min-Cw0T-_42.js";
3
- import { g as C, c as se, a as R, t as ue, b as re, v as ie } from "./date2-OJLPOd91.js";
4
- import { I as $ } from "./rules-BM4xu-zd.js";
5
- function T() {
1
+ import { defineComponent as K, mergeModels as U, useModel as Q, computed as s, ref as h, watch as j, inject as X, resolveComponent as m, openBlock as F, createElementBlock as D, createElementVNode as u, createVNode as f, withCtx as w, renderSlot as L, withDirectives as Y, normalizeClass as ee, vModelText as te, toDisplayString as z, createCommentVNode as ne, Fragment as oe, renderList as le, createBlock as ae } from "vue";
2
+ import { F as x } from "./dayjs.min-DM-sejr0.js";
3
+ import { g as k, c as ue, a as R, t as se, b as re, v as ie } from "./date2-BvGKe7pe.js";
4
+ import { I as T } from "./rules-D-Bw7E0k.js";
5
+ function O() {
6
6
  return {
7
7
  amount: x.reset()
8
8
  };
9
9
  }
10
- function q() {
10
+ function $() {
11
11
  return function(c) {
12
- return $()(c.amountAsString);
12
+ return T()(c.amountAsString);
13
13
  };
14
14
  }
15
15
  function me(d, c = !1) {
16
16
  return function(r) {
17
- const n = q()(r);
18
- if (n != !0)
19
- return c ? n : !0;
20
- const v = C(d, r.modelValue.measurement);
21
- return se(+r.amountAsString).precision > v ? `Cannot exceed precision more than ${R({
17
+ const o = $()(r);
18
+ if (o != !0)
19
+ return c ? o : !0;
20
+ const v = k(d, r.modelValue.measurement);
21
+ return ue(+r.amountAsString).precision > v ? `Cannot exceed precision more than ${R({
22
22
  amount: 1,
23
23
  precision: v
24
24
  })}` : !0;
@@ -27,9 +27,9 @@ function me(d, c = !1) {
27
27
  const de = { class: "flex flex-col" }, ce = { class: "flex flex-col" }, pe = { class: "flex-1" }, fe = { class: "flex items-center gap-4" }, ve = { class: "flex-1" }, be = {
28
28
  key: 0,
29
29
  class: "text-fm-color-typo-secondary"
30
- }, ye = { class: "text-fm-color-typo-secondary whitespace-nowrap" }, Fe = { class: "flex items-center gap-4" }, he = { class: "max-w-[200px] flex flex-col gap-[1px]" }, Ie = /* @__PURE__ */ K({
30
+ }, ye = { class: "text-fm-color-typo-secondary whitespace-nowrap" }, he = { class: "flex items-center gap-4" }, Fe = { class: "max-w-[200px] flex flex-col gap-[1px]" }, Ie = /* @__PURE__ */ K({
31
31
  __name: "FmUnitInput",
32
- props: /* @__PURE__ */ j({
32
+ props: /* @__PURE__ */ U({
33
33
  modelValue: {},
34
34
  unit: {},
35
35
  rules: {},
@@ -38,6 +38,7 @@ const de = { class: "flex flex-col" }, ce = { class: "flex flex-col" }, pe = { c
38
38
  placement: {},
39
39
  separator: {},
40
40
  precision: {},
41
+ convertAmountOnChangeUnit: { type: Boolean },
41
42
  placeholder: {},
42
43
  minLength: {},
43
44
  maxLength: {},
@@ -71,76 +72,78 @@ const de = { class: "flex flex-col" }, ce = { class: "flex flex-col" }, pe = { c
71
72
  modelValue: {},
72
73
  modelModifiers: {}
73
74
  }),
74
- emits: /* @__PURE__ */ j(["update:amount", "update:measurement"], ["update:modelValue"]),
75
+ emits: /* @__PURE__ */ U(["update:amount", "update:measurement"], ["update:modelValue"]),
75
76
  setup(d, { emit: c }) {
76
77
  var N;
77
- const o = d, r = c, n = Q(d, "modelValue"), v = $(), V = u(() => {
78
+ const n = d, r = c, o = Q(d, "modelValue"), v = T(), V = s(() => {
78
79
  var t;
79
- return C(o.unit, (t = n.value) == null ? void 0 : t.measurement);
80
- }), i = F(R(((N = n.value) == null ? void 0 : N.amount) ?? x.reset()));
81
- L(i, (e) => {
82
- const t = v(e), l = o.precision ?? V.value;
83
- t == !0 && (n.value = {
84
- ...n.value,
85
- amount: ue(+e, l)
80
+ return k(n.unit, (t = o.value) == null ? void 0 : t.measurement);
81
+ }), i = h(R(((N = o.value) == null ? void 0 : N.amount) ?? x.reset()));
82
+ j(i, (e) => {
83
+ const t = v(e), l = n.precision ?? V.value;
84
+ t == !0 && (o.value = {
85
+ ...o.value,
86
+ amount: se(+e, l)
86
87
  }), r("update:amount", e);
87
88
  });
88
- const W = Symbol.for("fm:form-state"), M = X(W, null), P = u(() => o.disabled ?? (M == null ? void 0 : M.getDisabled()) ?? !1), E = F(), g = F(!1), S = F(!1), G = u(() => g.value || S.value), H = u(() => {
89
+ const q = Symbol.for("fm:form-state"), M = X(q, null), P = s(() => n.disabled ?? (M == null ? void 0 : M.getDisabled()) ?? !1), W = h(), g = h(!1), S = h(!1), E = s(() => g.value || S.value), G = s(() => {
89
90
  var e;
90
91
  return [
91
92
  {
92
- label: (e = o.unit) == null ? void 0 : e.abbrev,
93
+ label: (e = n.unit) == null ? void 0 : e.abbrev,
93
94
  value: null
94
95
  },
95
- ...o.unit.measurements.map((t) => ({
96
+ ...n.unit.measurements.map((t) => ({
96
97
  label: t.abbrev,
97
98
  value: t.id
98
99
  }))
99
100
  ];
100
- }), _ = u({
101
+ }), _ = s({
101
102
  get() {
102
103
  var e, t;
103
- return ((t = (e = n.value) == null ? void 0 : e.measurement) == null ? void 0 : t.id) ?? null;
104
+ return ((t = (e = o.value) == null ? void 0 : e.measurement) == null ? void 0 : t.id) ?? null;
104
105
  },
105
106
  set(e) {
106
107
  if (e == null)
107
- n.value = {
108
- ...n.value ?? T(),
108
+ o.value = {
109
+ ...o.value ?? O(),
109
110
  measurement: null
110
111
  }, r("update:measurement", null);
111
112
  else {
112
- const t = o.unit.measurements.find((l) => l.id === e) ?? null;
113
- n.value = {
114
- ...n.value ?? T(),
113
+ const t = n.unit.measurements.find((l) => l.id === e) ?? null;
114
+ o.value = {
115
+ ...o.value ?? O(),
115
116
  measurement: t
116
117
  }, r("update:measurement", t);
117
118
  }
118
119
  }
119
120
  });
120
- L(_, (e, t) => {
121
- var A;
122
- const l = ((A = n.value) == null ? void 0 : A.amount) ?? x.reset(), b = o.unit.measurements.find((D) => D.id === t) ?? null, p = o.unit.measurements.find((D) => D.id === e) ?? null, y = b ? re(l, b.conversion) : l, I = p ? ie(y, p.conversion) : y, B = C(o.unit, p), a = x.convertPrecision({
121
+ j(_, (e, t) => {
122
+ var B;
123
+ if (!n.convertAmountOnChangeUnit)
124
+ return;
125
+ const l = ((B = o.value) == null ? void 0 : B.amount) ?? x.reset(), b = n.unit.measurements.find((C) => C.id === t) ?? null, p = n.unit.measurements.find((C) => C.id === e) ?? null, y = b ? re(l, b.conversion) : l, I = p ? ie(y, p.conversion) : y, A = k(n.unit, p), a = x.convertPrecision({
123
126
  value: I,
124
- precision: B
127
+ precision: A
125
128
  });
126
129
  i.value = R(a);
127
130
  });
128
- const O = u(() => {
131
+ const H = s(() => {
129
132
  var e, t;
130
- return ((t = (e = n.value) == null ? void 0 : e.measurement) == null ? void 0 : t.abbrev) ?? o.unit.abbrev;
131
- }), Z = u(
133
+ return ((t = (e = o.value) == null ? void 0 : e.measurement) == null ? void 0 : t.abbrev) ?? n.unit.abbrev;
134
+ }), Z = s(
132
135
  () => {
133
136
  var e;
134
- return ((e = o.rules) == null ? void 0 : e.map(
137
+ return ((e = n.rules) == null ? void 0 : e.map(
135
138
  (t) => (l) => typeof t == "function" ? t(l) : t
136
139
  )) ?? [];
137
140
  }
138
- ), J = u(() => [...o.applyDefaultRules ? [q(), me(o.unit)] : [], ...Z.value]);
141
+ ), J = s(() => [...n.applyDefaultRules ? [$(), me(n.unit)] : [], ...Z.value]);
139
142
  return (e, t) => {
140
- const l = m("FmLabel"), b = m("FmIcon"), p = m("FmMenuItem"), y = m("FmMenu"), I = m("FmField"), B = m("FmFormGroup");
141
- return h(), w("div", de, [
142
- s("div", ce, [
143
- s("div", pe, [
143
+ const l = m("FmLabel"), b = m("FmIcon"), p = m("FmMenuItem"), y = m("FmMenu"), I = m("FmField"), A = m("FmFormGroup");
144
+ return F(), D("div", de, [
145
+ u("div", ce, [
146
+ u("div", pe, [
144
147
  f(l, {
145
148
  label: e.label,
146
149
  disabled: e.disabled,
@@ -148,15 +151,15 @@ const de = { class: "flex flex-col" }, ce = { class: "flex flex-col" }, pe = { c
148
151
  optional: e.labelMark === "optional"
149
152
  }, null, 8, ["label", "disabled", "required", "optional"])
150
153
  ]),
151
- f(I, { focused: G.value }, {
152
- default: k(() => [
153
- s("div", fe, [
154
- U(e.$slots, "prepend"),
155
- s("div", ve, [
156
- Y(s("input", {
154
+ f(I, { focused: E.value }, {
155
+ default: w(() => [
156
+ u("div", fe, [
157
+ L(e.$slots, "prepend"),
158
+ u("div", ve, [
159
+ Y(u("input", {
157
160
  type: "text",
158
161
  ref_key: "inputRef",
159
- ref: E,
162
+ ref: W,
160
163
  onFocus: t[0] || (t[0] = () => g.value = !0),
161
164
  onBlur: t[1] || (t[1] = () => g.value = !1),
162
165
  "onUpdate:modelValue": t[2] || (t[2] = (a) => i.value = a),
@@ -169,41 +172,41 @@ const de = { class: "flex flex-col" }, ce = { class: "flex flex-col" }, pe = { c
169
172
  [te, i.value]
170
173
  ])
171
174
  ]),
172
- e.separator ? (h(), w("div", be, z(e.separator), 1)) : ne("", !0),
173
- s("div", ye, [
175
+ e.separator ? (F(), D("div", be, z(e.separator), 1)) : ne("", !0),
176
+ u("div", ye, [
174
177
  f(y, {
175
178
  onMenuChanged: t[3] || (t[3] = (a) => S.value = a),
176
179
  "z-index": 500,
177
180
  placement: e.placement
178
181
  }, {
179
- "menu-button": k(() => [
180
- s("div", Fe, [
181
- s("div", null, z(O.value), 1),
182
+ "menu-button": w(() => [
183
+ u("div", he, [
184
+ u("div", null, z(H.value), 1),
182
185
  f(b, { name: "keyboard_arrow_down" })
183
186
  ])
184
187
  ]),
185
- default: k(() => [
186
- s("div", he, [
187
- (h(!0), w(oe, null, le(H.value, (a) => (h(), ae(p, {
188
+ default: w(() => [
189
+ u("div", Fe, [
190
+ (F(!0), D(oe, null, le(G.value, (a) => (F(), ae(p, {
188
191
  key: a.value ?? void 0,
189
192
  label: a.label,
190
193
  "model-value": a.value == _.value,
191
- onClick: (A) => _.value = a.value
194
+ onClick: (B) => _.value = a.value
192
195
  }, null, 8, ["label", "model-value", "onClick"]))), 128))
193
196
  ])
194
197
  ]),
195
198
  _: 1
196
199
  }, 8, ["placement"])
197
200
  ]),
198
- U(e.$slots, "append")
201
+ L(e.$slots, "append")
199
202
  ])
200
203
  ]),
201
204
  _: 3
202
205
  }, 8, ["focused"])
203
206
  ]),
204
- f(B, {
207
+ f(A, {
205
208
  class: "flex-1",
206
- "model-value": { modelValue: n.value, amountAsString: String(i.value) },
209
+ "model-value": { modelValue: o.value, amountAsString: String(i.value) },
207
210
  info: e.labelInfo,
208
211
  rules: J.value,
209
212
  "helper-text": e.helperText,
@@ -214,7 +217,7 @@ const de = { class: "flex flex-col" }, ce = { class: "flex flex-col" }, pe = { c
214
217
  }
215
218
  });
216
219
  export {
217
- q as F,
220
+ $ as F,
218
221
  Ie as _,
219
222
  me as a
220
223
  };
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as f, openBlock as s, createElementBlock as n, createElementVNode as r, toDisplayString as o, Fragment as u, renderList as p, unref as x } from "vue";
2
- import { a, b as d } from "./date2-OJLPOd91.js";
2
+ import { a, b as d } from "./date2-BvGKe7pe.js";
3
3
  const y = { class: "flex flex-col" }, _ = { 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" }, v = { class: "flex-1 py-8 px-16" }, h = /* @__PURE__ */ r("div", {
4
4
  class: "flex-0 py-8 px-16",
5
5
  style: { "flex-basis": "120px" }
@@ -1,15 +1,15 @@
1
1
  import { ref as L, defineComponent as te, computed as m, resolveComponent as _, openBlock as w, createBlock as P, withCtx as y, createVNode as r, createElementBlock as J, Fragment as ne, createElementVNode as x, createCommentVNode as G, onMounted as Ie, watch as Ae, unref as d, normalizeClass as pe, createTextVNode as Ue, toDisplayString as ae, renderList as Ee, isRef as ve, normalizeStyle as Re, Teleport as De, normalizeProps as $e, guardReactiveProps as Pe } from "vue";
2
- import { u as le, c as Ce, S as Te, g as fe, F as N, d as ge, a as Be, C as ue, b as be, e as Le } from "./app-M9Z8lUHo.js";
2
+ import { u as le, c as Ce, S as Te, g as fe, F as N, d as ge, a as Be, C as ue, b as be, e as Le } from "./app-BrtBi6V8.js";
3
3
  import { useDialog as Oe, useSnackbar as he, useProxiedModel as Ve, useBreakpoints as Ne } from "@feedmepos/ui-library";
4
4
  import { i as ze, _ as Ge } from "./is-linked-ingredient-error-C6AghEwR.js";
5
5
  import { F as M, D as ye, R as ee } from "./row-action.enum-BwQbURNh.js";
6
- import { c as Ye, _ as qe, F as _e, u as We } from "./layout-8y0JGpGb.js";
6
+ import { c as Ye, _ as qe, F as _e, u as We } from "./layout-TawyfRi7.js";
7
7
  import { _ as He } from "./SingleColumnLayout.vue_vue_type_script_setup_true_lang-CFjO4TPG.js";
8
- import { R as se, U as je, A as Ke, M as Je } from "./rules-BM4xu-zd.js";
8
+ import { R as se, U as je, A as Ke, M as Je } from "./rules-D-Bw7E0k.js";
9
9
  import { g as Qe } from "./util-CEVKTbZD.js";
10
- import { _ as Xe } from "./InventoryBindingForm.vue_vue_type_script_setup_true_lang-DESMP89v.js";
11
- import { _ as re } from "./IngredientBindedItem.vue_vue_type_script_setup_true_lang-BZ9Tqeho.js";
12
- import { a as Ze, t as en } from "./date2-OJLPOd91.js";
10
+ import { _ as Xe } from "./InventoryBindingForm.vue_vue_type_script_setup_true_lang-eJrgpgsK.js";
11
+ import { _ as re } from "./IngredientBindedItem.vue_vue_type_script_setup_true_lang-DdRnS0yE.js";
12
+ import { a as Ze, t as en } from "./date2-BvGKe7pe.js";
13
13
  import { useCoreStore as nn } from "@feedmepos/mf-common";
14
14
  import { _ as Fe } from "./PreviewBadge.vue_vue_type_script_setup_true_lang-BvadeWUz.js";
15
15
  function tn() {
@@ -1,10 +1,10 @@
1
1
  import { defineComponent as E, mergeModels as ae, useModel as de, onMounted as ue, ref as D, computed as L, resolveComponent as B, openBlock as F, createElementBlock as S, createElementVNode as c, toDisplayString as Z, createVNode as M, createBlock as j, withCtx as I, Fragment as z, renderList as G, normalizeClass as R, normalizeStyle as ce, createSlots as fe, unref as P, createCommentVNode as O, withModifiers as me, reactive as Q, watch as X, isRef as ee, Teleport as pe } from "vue";
2
2
  import { E as ge } from "./empty-placeholder-wf6-BWE8.js";
3
- import { v as ve, c as U, w as be, e as ye } from "./app-M9Z8lUHo.js";
3
+ import { v as ve, c as U, w as be, e as ye } from "./app-BrtBi6V8.js";
4
4
  import { useDialogChild as he, useDialog as te, useProxiedModel as ne, useSnackbar as _e } from "@feedmepos/ui-library";
5
- import { f as oe } from "./fuzzy-TX8jTlf3.js";
5
+ import { f as oe } from "./fuzzy-BG3pP_WO.js";
6
6
  import { _ as Ce } from "./SingleColumnLayout.vue_vue_type_script_setup_true_lang-CFjO4TPG.js";
7
- import { _ as xe } from "./ChangeLocationComponent.vue_vue_type_script_setup_true_lang-BnVvi9YB.js";
7
+ import { _ as xe } from "./ChangeLocationComponent.vue_vue_type_script_setup_true_lang-BBqgA2aN.js";
8
8
  import { useCoreStore as we } from "@feedmepos/mf-common";
9
9
  const He = "data:image/svg+xml,%3csvg%20width='200'%20height='101'%20viewBox='0%200%20200%20101'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M98.9161%2038.4456V24.1772H108.527V27.1988H102.12V30.2202H107.347V32.7382H102.12V38.4456H98.9161Z'%20fill='%235D5359'/%3e%3cpath%20d='M110.382%2031.2276C110.382%2027.5345%20113.249%2024.1772%20117.127%2024.1772C121.174%2024.1772%20123.872%2027.7024%20123.872%2031.3953C123.872%2035.0884%20121.005%2038.6133%20117.127%2038.6133C113.08%2038.4456%20110.382%2034.9204%20110.382%2031.2276ZM117.127%2035.5919C119.487%2035.5919%20120.499%2033.4096%20120.499%2031.2276C120.499%2029.0452%20119.319%2027.0309%20117.127%2027.0309C114.935%2027.0309%20113.754%2029.213%20113.754%2031.2276C113.754%2033.5776%20114.935%2035.5919%20117.127%2035.5919Z'%20fill='%235D5359'/%3e%3cpath%20d='M126.232%2031.2276C126.232%2027.5345%20129.099%2024.1772%20132.977%2024.1772C137.024%2024.1772%20139.722%2027.7024%20139.722%2031.3953C139.722%2035.0884%20136.855%2038.6133%20132.977%2038.6133C128.93%2038.4456%20126.232%2034.9204%20126.232%2031.2276ZM132.977%2035.5919C135.337%2035.5919%20136.349%2033.4096%20136.349%2031.2276C136.349%2029.0452%20135.169%2027.0309%20132.977%2027.0309C130.785%2027.0309%20129.604%2029.213%20129.604%2031.2276C129.604%2033.5776%20130.785%2035.5919%20132.977%2035.5919Z'%20fill='%235D5359'/%3e%3cpath%20d='M142.926%2038.4455V24.345H148.153C152.874%2024.345%20155.235%2027.5343%20155.235%2031.3952C155.235%2035.5918%20152.368%2038.4455%20148.153%2038.4455H142.926ZM148.153%2027.0308H146.129V35.4238H148.153C150.513%2035.4238%20151.862%2033.5775%20151.862%2031.2272C151.862%2028.8773%20150.513%2027.0308%20148.153%2027.0308Z'%20fill='%235D5359'/%3e%3cpath%20d='M110.045%2057.5607V49.1676L107.009%2055.2107H105.324L102.12%2049.1676V57.5607H98.9161V43.4604H102.457L106.167%2050.8465L109.876%2043.4604H113.417V57.5607H110.045Z'%20fill='%235D5359'/%3e%3cpath%20d='M115.947%2057.5607L121.342%2043.4604H124.04L129.436%2057.5607H125.895L124.715%2054.3716H120.331L119.319%2057.5607H115.947ZM122.691%2046.9856L121.005%2052.1893H124.378L122.691%2046.9856Z'%20fill='%235D5359'/%3e%3cpath%20d='M131.965%2057.5607V43.4604H138.373C141.07%2043.4604%20142.925%2045.8105%20142.925%2048.1605C142.925%2049.8393%20142.082%2051.5179%20140.565%2052.1893L143.768%2057.393H140.059L137.192%2052.8607H135V57.393H131.965V57.5607ZM135.169%2050.175H138.204C139.047%2050.175%20139.553%2049.3356%20139.553%2048.1605C139.553%2046.9856%20138.71%2046.3142%20138.035%2046.3142H135.169V50.175Z'%20fill='%235D5359'/%3e%3cpath%20d='M146.635%2057.5607V43.4604H150.007V49.8393L155.403%2043.4604H158.776L153.548%2049.6713L159.281%2057.5607H155.74L151.693%2051.5179L150.007%2053.3642V57.5607H146.635Z'%20fill='%235D5359'/%3e%3cpath%20d='M171.422%2054.7073V57.5607H161.474V43.4604H171.253V46.3142H164.677V48.9999H170.242V51.6856H164.677V54.7073H171.422Z'%20fill='%235D5359'/%3e%3cpath%20d='M185.417%2046.3142H181.202V57.5607H177.829V46.3142H173.614V43.4604H185.417V46.3142Z'%20fill='%235D5359'/%3e%3cpath%20d='M111.057%2062.5967V76.6973H107.853V70.9898H102.12V76.6973H98.9161V62.5967H102.12V68.1361H107.853V62.5967H111.057Z'%20fill='%235D5359'/%3e%3cpath%20d='M124.04%2069.815V62.5967H127.244V69.815C127.244%2073.6758%20125.389%2076.865%20121.005%2076.865C116.453%2076.865%20114.766%2073.5078%20114.766%2069.815V62.5967H117.97V69.815C117.97%2071.997%20118.813%2074.0115%20121.005%2074.0115C123.366%2074.0115%20124.04%2071.997%20124.04%2069.815Z'%20fill='%235D5359'/%3e%3cpath%20d='M138.036%2076.6973H131.122V62.5967H139.047C141.071%2062.5967%20142.251%2064.4433%20142.251%2066.2898C142.251%2067.6327%20141.576%2068.9755%20140.228%2069.4793C141.914%2069.9827%20142.926%2071.1578%20142.926%2073.1721C142.757%2075.5221%20140.733%2076.6973%20138.036%2076.6973ZM134.326%2065.4504V68.3041H137.53C138.204%2068.3041%20138.879%2067.8004%20138.879%2066.7933C138.879%2065.7861%20138.373%2065.2827%20137.698%2065.2827H134.326V65.4504ZM138.204%2070.8221H134.494V73.8435H138.204C139.047%2073.8435%20139.722%2073.1721%20139.722%2072.3327C139.553%2071.6613%20138.879%2070.8221%20138.204%2070.8221Z'%20fill='%235D5359'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M73.4753%2051.4994C78.7281%2050.5396%2082.8911%2046.4891%2083.9954%2041.3137L84.1232%2040.7134L83.9445%2040.1256C80.5804%2029.066%2071.9945%2020.2704%2061.0373%2016.5726C57.4%2015.3451%2053.5046%2014.6804%2049.458%2014.6804C45.4112%2014.6804%2041.5158%2015.3451%2037.8784%2016.5726C26.9214%2020.2704%2018.3354%2029.066%2014.9712%2040.1256L14.7924%2040.7134L14.9206%2041.3137C16.0247%2046.4891%2020.1875%2050.5396%2025.4405%2051.4994V58.8839H14.4183C14.6758%2059.9557%2014.9818%2061.0088%2015.3337%2062.0411C20.1553%2076.1811%2033.6083%2086.3619%2049.458%2086.3619C65.3074%2086.3619%2078.7606%2076.1811%2083.5822%2062.0411C83.9342%2061.0088%2084.2399%2059.9557%2084.4974%2058.8839H73.4753V51.4994ZM41.0517%2020.5973V38.5742C41.0517%2043.1931%2044.8155%2046.9371%2049.458%2046.9371C54.1005%2046.9371%2057.8641%2043.1931%2057.8641%2038.5742V20.5973C55.1919%2019.856%2052.3732%2019.4592%2049.458%2019.4592C46.5428%2019.4592%2043.7241%2019.856%2041.0517%2020.5973ZM62.6675%2022.3673V38.5742C62.6675%2043.1931%2066.431%2046.9371%2071.0735%2046.9371C74.9051%2046.9371%2078.1425%2044.3848%2079.1528%2040.8942C76.4672%2032.6902%2070.4379%2025.9824%2062.6675%2022.3673ZM60.2658%2046.1322C57.8753%2049.5094%2053.9255%2051.7159%2049.458%2051.7159C44.9902%2051.7159%2041.0408%2049.5094%2038.65%2046.1322C36.6982%2048.8894%2033.7074%2050.8662%2030.2439%2051.4994V58.8839H68.6718V51.4994C65.2083%2050.8662%2062.2175%2048.8894%2060.2658%2046.1322ZM21.1583%2063.6628C26.1349%2074.2514%2036.9382%2081.5834%2049.458%2081.5834C61.9776%2081.5834%2072.781%2074.2514%2077.7574%2063.6628H21.1583ZM36.2482%2038.5742V22.3673C28.4779%2025.9824%2022.4486%2032.6902%2019.7631%2040.8942C20.7733%2044.3848%2024.0106%2046.9371%2027.8422%2046.9371C32.4847%2046.9371%2036.2482%2043.1931%2036.2482%2038.5742Z'%20fill='%23FFC35D'/%3e%3c/svg%3e";
10
10
  function Y(_, v) {
@@ -1,10 +1,10 @@
1
1
  import { defineComponent as H, computed as v, reactive as J, resolveComponent as y, openBlock as p, createElementBlock as b, createVNode as r, unref as m, createElementVNode as o, Fragment as U, renderList as C, createBlock as k, withCtx as I, createTextVNode as Q, toDisplayString as R, createCommentVNode as S, nextTick as W } from "vue";
2
- import { u as X, h as Z } from "./app-M9Z8lUHo.js";
3
- import { a as h, c as ee } from "./date2-OJLPOd91.js";
4
- import { u as oe } from "./use-inventory-binding-dialog-DFA1NpNT.js";
5
- import { A as te, b as ne, a as E } from "./rules-BM4xu-zd.js";
6
- import { g as le } from "./dayjs.min-Cw0T-_42.js";
7
- import { _ as ie, F as ae, a as se } from "./FmUnitInput.vue_vue_type_script_setup_true_lang-C1soNoi-.js";
2
+ import { u as X, h as Z } from "./app-BrtBi6V8.js";
3
+ import { a as h, c as ee } from "./date2-BvGKe7pe.js";
4
+ import { u as oe } from "./use-inventory-binding-dialog-DuVk-QOK.js";
5
+ import { A as ne, b as te, a as E } from "./rules-D-Bw7E0k.js";
6
+ import { g as le } from "./dayjs.min-DM-sejr0.js";
7
+ import { _ as ie, F as ae, a as se } from "./FmUnitInput.vue_vue_type_script_setup_true_lang-21-IoTzr.js";
8
8
  const de = { class: "flex flex-col gap-24" }, re = { class: "flex flex-col gap-16" }, me = { class: "flex items-center" }, ue = /* @__PURE__ */ o("div", { class: "flex-1 fm-typo-en-title-sm-600" }, "Recipe", -1), ce = { class: "flex flex-col" }, pe = /* @__PURE__ */ o("div", { class: "flex py-8 px-12 border-b border-fm-color-neutral-gray-200 bg-fm-color-neutral-gray-100 h-[44px] items-center" }, [
9
9
  /* @__PURE__ */ o("div", { class: "fm-typo-en-body-md-600 text-fm-color-typo-secondary" }, "Recipe"),
10
10
  /* @__PURE__ */ o("div", { class: "w-[200px]" }),
@@ -61,28 +61,28 @@ const de = { class: "flex flex-col gap-24" }, re = { class: "flex flex-col gap-1
61
61
  x.value.skus
62
62
  );
63
63
  }
64
- function D(e, a, n) {
64
+ function D(e, a, t) {
65
65
  const l = +a;
66
- let i = n;
67
- a.length > 0 && isFinite(l) ? i = n.map((s) => (s.id !== e || (s.amount = ee(l)), s)) : i = n.map((s) => (s.id !== e || (s.amount = { amount: 0, precision: 0 }), s)), c("update:modelValue", i);
66
+ let i = t;
67
+ a.length > 0 && isFinite(l) ? i = t.map((s) => (s.id !== e || (s.amount = ee(l)), s)) : i = t.map((s) => (s.id !== e || (s.amount = { amount: 0, precision: 0 }), s)), c("update:modelValue", i);
68
68
  }
69
69
  function w(e, a) {
70
- const n = a.filter((l) => l.id !== e);
71
- c("update:modelValue", n);
70
+ const t = a.filter((l) => l.id !== e);
71
+ c("update:modelValue", t);
72
72
  }
73
73
  function B(e) {
74
- var n, l;
74
+ var t, l;
75
75
  if (e.type !== Z.enum.SKU)
76
76
  throw new Error("Non-SKU binding does not have unit");
77
- if (!((n = V.value.find((i) => i._id === e.id)) == null ? void 0 : n.unit))
77
+ if (!((t = V.value.find((i) => i._id === e.id)) == null ? void 0 : t.unit))
78
78
  throw new Error(`Cannot find ingredient: ${e.id}`);
79
79
  return (l = V.value.find((i) => i._id === e.id)) == null ? void 0 : l.unit;
80
80
  }
81
81
  function G(e) {
82
82
  return { amount: e.amount, measurement: e.measurement };
83
83
  }
84
- function j(e, a, n) {
85
- const l = n.map((i) => i.id !== e ? i : {
84
+ function j(e, a, t) {
85
+ const l = t.map((i) => i.id !== e ? i : {
86
86
  ...i,
87
87
  amount: a.amount,
88
88
  measurement: a.measurement
@@ -111,12 +111,12 @@ const de = { class: "flex flex-col gap-24" }, re = { class: "flex flex-col gap-1
111
111
  });
112
112
  }
113
113
  return (e, a) => {
114
- const n = y("FmFormGroup"), l = y("FmButton"), i = y("FmIcon"), s = y("FmTooltip"), q = y("FmTextField");
114
+ const t = y("FmFormGroup"), l = y("FmButton"), i = y("FmIcon"), s = y("FmTooltip"), q = y("FmTextField");
115
115
  return p(), b("div", de, [
116
- r(n, {
116
+ r(t, {
117
117
  disabled: e.disabled,
118
118
  "model-value": e.modelValue,
119
- rules: e.iframeMode ? void 0 : [m(te)(1, "Must have at least one inventory binding")]
119
+ rules: e.iframeMode ? void 0 : [m(ne)(1, "Must have at least one inventory binding")]
120
120
  }, null, 8, ["disabled", "model-value", "rules"]),
121
121
  o("div", re, [
122
122
  o("div", me, [
@@ -132,19 +132,19 @@ const de = { class: "flex flex-col gap-24" }, re = { class: "flex flex-col gap-1
132
132
  ]),
133
133
  o("div", ce, [
134
134
  pe,
135
- (p(!0), b(U, null, C(P.value, (t) => (p(), k(n, {
136
- key: t.id,
135
+ (p(!0), b(U, null, C(P.value, (n) => (p(), k(t, {
136
+ key: n.id,
137
137
  disabled: e.disabled,
138
- modelValue: +m(h)(t.amount ?? { amount: 1, precision: 0 }),
139
- rules: [m(ne)(0), m(E)(0)]
138
+ modelValue: +m(h)(n.amount ?? { amount: 1, precision: 0 }),
139
+ rules: [m(te)(0), m(E)(0)]
140
140
  }, {
141
141
  default: I(({ invalid: g }) => {
142
142
  var f;
143
143
  return [
144
144
  o("div", fe, [
145
145
  o("div", ve, [
146
- Q(R((f = T.value.find((d) => d._id === t.id)) == null ? void 0 : f.name) + " ", 1),
147
- x.value.recipes.includes(t.id) ? (p(), k(s, {
146
+ Q(R((f = T.value.find((d) => d._id === n.id)) == null ? void 0 : f.name) + " ", 1),
147
+ x.value.recipes.includes(n.id) ? (p(), k(s, {
148
148
  key: 0,
149
149
  variant: "plain",
150
150
  placement: "bottom",
@@ -166,8 +166,8 @@ const de = { class: "flex flex-col gap-24" }, re = { class: "flex flex-col gap-1
166
166
  r(q, {
167
167
  class: "w-full",
168
168
  disabled: e.disabled,
169
- modelValue: +m(h)(t.amount ?? { amount: 1, precision: 0 }),
170
- "onUpdate:modelValue": (d) => D(t.id, d, e.modelValue),
169
+ modelValue: +m(h)(n.amount ?? { amount: 1, precision: 0 }),
170
+ "onUpdate:modelValue": (d) => D(n.id, d, e.modelValue),
171
171
  invalid: g
172
172
  }, null, 8, ["disabled", "modelValue", "onUpdate:modelValue", "invalid"])
173
173
  ]),
@@ -178,7 +178,7 @@ const de = { class: "flex flex-col gap-24" }, re = { class: "flex flex-col gap-1
178
178
  variant: "plain",
179
179
  icon: "delete",
180
180
  "icon-color": "#000000",
181
- onClick: (d) => w(t.id, e.modelValue)
181
+ onClick: (d) => w(n.id, e.modelValue)
182
182
  }, null, 8, ["disabled", "onClick"])
183
183
  ])
184
184
  ])
@@ -202,16 +202,16 @@ const de = { class: "flex flex-col gap-24" }, re = { class: "flex flex-col gap-1
202
202
  ]),
203
203
  o("div", Ve, [
204
204
  ge,
205
- (p(!0), b(U, null, C(F.value, (t, g) => {
205
+ (p(!0), b(U, null, C(F.value, (n, g) => {
206
206
  var f;
207
207
  return p(), b("div", {
208
- key: t.id,
208
+ key: n.id,
209
209
  class: "flex flex-col border-b border-fm-color-neutral-gray-100"
210
210
  }, [
211
211
  o("div", ke, [
212
212
  o("div", Ie, [
213
- o("span", Fe, R((f = V.value.find((d) => d._id === t.id)) == null ? void 0 : f.name), 1),
214
- x.value.skus.includes(t.id) ? (p(), k(s, {
213
+ o("span", Fe, R((f = V.value.find((d) => d._id === n.id)) == null ? void 0 : f.name), 1),
214
+ x.value.skus.includes(n.id) ? (p(), k(s, {
215
215
  key: 0,
216
216
  variant: "plain",
217
217
  placement: "bottom",
@@ -231,11 +231,12 @@ const de = { class: "flex flex-col gap-24" }, re = { class: "flex flex-col gap-1
231
231
  ]),
232
232
  o("div", we, [
233
233
  r(ie, {
234
- "model-value": G(t),
235
- "onUpdate:modelValue": (d) => j(t.id, d, e.modelValue),
236
- "onUpdate:amount": (d) => O(t, d),
237
- unit: B(t),
238
- placement: g === F.value.length - 1 ? "top" : "bottom"
234
+ "model-value": G(n),
235
+ "onUpdate:modelValue": (d) => j(n.id, d, e.modelValue),
236
+ "onUpdate:amount": (d) => O(n, d),
237
+ unit: B(n),
238
+ placement: g === F.value.length - 1 ? "top" : "bottom",
239
+ "convert-amount-on-change-unit": ""
239
240
  }, null, 8, ["model-value", "onUpdate:modelValue", "onUpdate:amount", "unit", "placement"])
240
241
  ]),
241
242
  o("div", Be, [
@@ -244,20 +245,20 @@ const de = { class: "flex flex-col gap-24" }, re = { class: "flex flex-col gap-1
244
245
  type: "button",
245
246
  variant: "tertiary",
246
247
  icon: "delete",
247
- onClick: (d) => w(t.id, e.modelValue)
248
+ onClick: (d) => w(n.id, e.modelValue)
248
249
  }, null, 8, ["disabled", "onClick"])
249
250
  ])
250
251
  ]),
251
252
  o("div", Ae, [
252
- r(n, {
253
- modelValue: +m(h)(t.amount ?? { amount: 1, precision: 0 }),
253
+ r(t, {
254
+ modelValue: +m(h)(n.amount ?? { amount: 1, precision: 0 }),
254
255
  rules: [m(E)(0)]
255
256
  }, null, 8, ["modelValue", "rules"]),
256
- r(n, {
257
- modelValue: Y(t),
257
+ r(t, {
258
+ modelValue: Y(n),
258
259
  rules: [
259
260
  m(ae)(),
260
- m(se)(B(t))
261
+ m(se)(B(n))
261
262
  ]
262
263
  }, null, 8, ["modelValue", "rules"])
263
264
  ])
@@ -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 "./date2-OJLPOd91.js";
2
+ import { c as d } from "./date2-BvGKe7pe.js";
3
3
  const _ = ["value", "disabled"], D = /* @__PURE__ */ y({
4
4
  __name: "NumberPrecisionInput",
5
5
  props: {
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as x, computed as f, ref as m, onMounted as g, openBlock as r, createElementBlock as o, createElementVNode as e, toDisplayString as t, normalizeStyle as w, createTextVNode as i, Fragment as u, createCommentVNode as h, renderList as _, normalizeClass as k, pushScopeId as S, popScopeId as C } from "vue";
2
2
  import { useRoute as P } from "vue-router";
3
- import { n as v, _ as R } from "./app-M9Z8lUHo.js";
3
+ import { n as v, _ as R } from "./app-BrtBi6V8.js";
4
4
  const n = (d) => (S("data-v-54384fc1"), d = d(), C(), d), A = { class: "purchase-box" }, N = { valign: "bottom" }, E = /* @__PURE__ */ n(() => /* @__PURE__ */ e("div", { class: "title" }, "Inventory Receive Note", -1)), O = { class: "text-right" }, D = { class: "header" }, q = /* @__PURE__ */ n(() => /* @__PURE__ */ e("hr", null, null, -1)), I = /* @__PURE__ */ n(() => /* @__PURE__ */ e("div", { class: "header" }, "Supplier", -1)), T = { class: "sub-header" }, F = { class: "caption" }, L = { class: "address" }, U = /* @__PURE__ */ n(() => /* @__PURE__ */ e("br", null, null, -1)), V = /* @__PURE__ */ n(() => /* @__PURE__ */ e("br", null, null, -1)), z = /* @__PURE__ */ n(() => /* @__PURE__ */ e("br", null, null, -1)), B = /* @__PURE__ */ n(() => /* @__PURE__ */ e("br", null, null, -1)), H = { class: "text-right" }, M = /* @__PURE__ */ n(() => /* @__PURE__ */ e("div", { class: "header" }, "Delivery To", -1)), J = { class: "sub-header" }, Q = { class: "address" }, j = /* @__PURE__ */ n(() => /* @__PURE__ */ e("br", null, null, -1)), G = /* @__PURE__ */ n(() => /* @__PURE__ */ e("br", null, null, -1)), K = /* @__PURE__ */ n(() => /* @__PURE__ */ e("br", null, null, -1)), W = /* @__PURE__ */ n(() => /* @__PURE__ */ e("br", null, null, -1)), X = { class: "purchase-body" }, Y = /* @__PURE__ */ n(() => /* @__PURE__ */ e("thead", { class: "item-header" }, [
5
5
  /* @__PURE__ */ e("tr", null, [
6
6
  /* @__PURE__ */ e("th", {