@feedmepos/mf-inventory-portal 0.0.22-dev.4 → 0.0.22-dev.41

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 (106) hide show
  1. package/dist/{ApprovalView-xF73Z1jN.js → ApprovalView-DKqwRFlF.js} +25 -26
  2. package/dist/{BindingsDialog-CCSAxGT4.js → BindingsDialog-CtMSqEuE.js} +9 -9
  3. package/dist/{BindingsPicker-ErFH0uEQ.js → BindingsPicker-DCLNF1PL.js} +22 -22
  4. package/dist/{BindingsTable-D8ffJgIJ.js → BindingsTable-6ndQuHeA.js} +1 -1
  5. package/dist/ClosingTemplateView-BPrDQ_8-.js +1688 -0
  6. package/dist/FmDroppableField-DQFPEiJn.js +152 -0
  7. package/dist/FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-BUGB0uk3.js +266 -0
  8. package/dist/FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-CM93v-jp.js +359 -0
  9. package/dist/IngredientBindedItem.vue_vue_type_script_setup_true_lang-SNp8etCc.js +51 -0
  10. package/dist/IngredientsView-B1jGkWYN.js +1611 -0
  11. package/dist/{IntegrationView-54yz2EqS.js → IntegrationView-Bu0waSjB.js} +71 -71
  12. package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-CKvKlCk-.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-mZQlrYaY.js} +1 -1
  13. package/dist/PremiumBadge.vue_vue_type_script_setup_true_lang-BEFmqnHk.js +116 -0
  14. package/dist/{PurchaseOrderPrintPreview-pcpWSfl4.js → PurchaseOrderPrintPreview-DTQViYuX.js} +7 -7
  15. package/dist/ReceiveRequestView-CNRixgQu.js +4069 -0
  16. package/dist/RecipeView-HStPC5pE.js +591 -0
  17. package/dist/Standalone.vue.d.ts +2 -0
  18. package/dist/StockView-JO3NtkX9.js +7762 -0
  19. package/dist/{SupplierView-TYCkPXan.js → SupplierView-gtaS4K3U.js} +111 -111
  20. package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-dPt3qbcX.js +1146 -0
  21. package/dist/TransferTemplateView-C0pjLfbz.js +2054 -0
  22. package/dist/{UnitView-B9yE4-rc.js → UnitView-dbInWUk4.js} +18 -18
  23. package/dist/{WarehouseView-DUtVLTjb.js → WarehouseView-BlTBvLF0.js} +176 -177
  24. package/dist/api/bill.d.ts +84 -238
  25. package/dist/api/closing-template.d.ts +6 -4
  26. package/dist/api/inventory.d.ts +72 -85
  27. package/dist/api/netsuite.d.ts +47 -0
  28. package/dist/api/purchase-order-template.d.ts +4 -6
  29. package/dist/{app-w8TOQVZc.js → app-TB3IWuaU.js} +24520 -23671
  30. package/dist/app.d.ts +7 -0
  31. package/dist/app.js +3 -3
  32. package/dist/components/FmFilterableMenuOptions.vue.d.ts +54 -0
  33. package/dist/components/FmMinMaxInputRules.d.ts +2 -0
  34. package/dist/components/FmUnitInputRules.d.ts +2 -0
  35. package/dist/components/map/GoogleMap.vue.d.ts +4 -4
  36. package/dist/{decimal-C4q7UMfr.js → decimal-BRAYgPnN.js} +1 -1
  37. package/dist/defineDeepModel-DrEk5Fhq.js +13 -0
  38. package/dist/format-time-from-id-kpVYfVQb.js +15 -0
  39. package/dist/helper/rules.d.ts +7 -0
  40. package/dist/helper/rules.spec.d.ts +1 -0
  41. package/dist/helper/xlsx.util.d.ts +7 -0
  42. package/dist/purchase-order-transaction-type-ZMNa__2l.js +348 -0
  43. package/dist/stores/api.d.ts +1 -0
  44. package/dist/stores/feature.d.ts +0 -1
  45. package/dist/stores/helper/core-store-proxy.d.ts +3 -0
  46. package/dist/stores/helper/generate-backend-urls.d.ts +1 -0
  47. package/dist/stores/inventory.d.ts +85 -0
  48. package/dist/stores/location.d.ts +508 -503
  49. package/dist/stores/netsuite.d.ts +69 -0
  50. package/dist/stores/route.d.ts +0 -5
  51. package/dist/stores/supplier.d.ts +120 -3
  52. package/dist/style.css +1 -1
  53. package/dist/supplier-CJcqHpaM.js +70 -0
  54. package/dist/tsconfig.app.tsbuildinfo +1 -1
  55. package/dist/use-template-enabled-locations-2-DyD24laW.js +85 -0
  56. package/dist/views/closing-template/closing-template-import/ClosingTemplateImportItem.vue.d.ts +12 -0
  57. package/dist/views/closing-template/closing-template-import/ClosingTemplateImportItemProps.d.ts +7 -0
  58. package/dist/views/closing-template/composables/use-closing-template-actions.d.ts +1093 -1026
  59. package/dist/views/closing-template/composables/use-closing-template-table.d.ts +1098 -1037
  60. package/dist/views/closing-template/helpers/import-export.helper.d.ts +58 -0
  61. package/dist/views/ingredients/composables/use-ingredient-form.d.ts +2 -2
  62. package/dist/views/receive-request/components/transfer-details/TransferDetailsProps.d.ts +1 -0
  63. package/dist/views/receive-request/components/transfer-form/NetSuiteField.vue.d.ts +45 -0
  64. package/dist/views/receive-request/components/transfer-form/TransferForm.vue.d.ts +1944 -82
  65. package/dist/views/receive-request/components/transfer-form/TransferFormProps.d.ts +1 -0
  66. package/dist/views/receive-request/composables/use-receive-request-form.d.ts +2351 -284
  67. package/dist/views/receive-request/composables/use-receive-request-table.d.ts +2300 -233
  68. package/dist/views/recipe/composables/use-recipe-form.d.ts +2 -2
  69. package/dist/views/stock/components/StockRecordCard.vue.d.ts +42 -119
  70. package/dist/views/stock/composables/use-stock-action.d.ts +2 -2
  71. package/dist/views/transfer-template/components/transfer-template-details/TransferTemplateDetails.vue.d.ts +0 -2
  72. package/dist/views/transfer-template/components/transfer-template-details/TransferTemplateDetailsProps.d.ts +0 -1
  73. package/dist/views/transfer-template/components/transfer-template-form/composables/use-template-enabled-locations-2.d.ts +13 -0
  74. package/dist/views/transfer-template/components/transfer-template-form/composables/use-template-enabled-locations.d.ts +71 -85
  75. package/dist/views/transfer-template/components/transfer-template-form/composables/use-transfer-locations.d.ts +39 -2
  76. package/dist/views/transfer-template/components/transfer-template-import/TransferTemplateImport.vue.d.ts +2 -0
  77. package/dist/views/transfer-template/components/transfer-template-import/TransferTemplateImportItem.vue.d.ts +12 -0
  78. package/dist/views/transfer-template/components/transfer-template-import/TransferTemplateImportItemProps.d.ts +9 -0
  79. package/dist/views/transfer-template/composables/use-transfer-template-actions.d.ts +1263 -1466
  80. package/dist/views/transfer-template/composables/use-transfer-template-table.d.ts +1688 -897
  81. package/dist/views/transfer-template/helpers/import-export.helper.d.ts +76 -0
  82. package/dist/views/transfer-template/helpers/remove-deleted-skus.helper.d.ts +1 -0
  83. package/dist/views/transfer-template/helpers/template-item.error.helper.d.ts +1 -0
  84. package/dist/views/unit/composables/use-unit-form.d.ts +2 -2
  85. package/dist/{xlsx-BggStaH1.js → xlsx-Dd5ckm6-.js} +1525 -1525
  86. package/dist/xlsx.util-qlqvEcJz.js +78 -0
  87. package/package.json +7 -5
  88. package/dist/ClosingTemplateView-DdZlX1ug.js +0 -1030
  89. package/dist/FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-ZYtBNoaE.js +0 -372
  90. package/dist/IngredientsView-DnwwQJTN.js +0 -1758
  91. package/dist/PremiumBadge.vue_vue_type_script_setup_true_lang-Bom_KvXW.js +0 -88
  92. package/dist/ReceiveRequestView-D5HXMY4Z.js +0 -215
  93. package/dist/RecipeView-BHkTgm5H.js +0 -581
  94. package/dist/StockView-iczCFYxn.js +0 -1892
  95. package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-EN3JgHKF.js +0 -740
  96. package/dist/TransferDialog.vue_vue_type_script_setup_true_lang-DC0Ss5hi.js +0 -1409
  97. package/dist/TransferTemplateView-Bbvpuys7.js +0 -1230
  98. package/dist/defineDeepModel-BOApqV24.js +0 -13
  99. package/dist/format-time-from-id-Cafjo8fn.js +0 -15
  100. package/dist/id-to-date-CtSHSVJF.js +0 -30
  101. package/dist/layout/layout-routes.d.ts +0 -6
  102. package/dist/purchase-order-transaction-type-CIC5h-6x.js +0 -712
  103. package/dist/supplier-CM-vZ4bQ.js +0 -69
  104. package/dist/use-template-enabled-locations-Bm00vEzC.js +0 -57
  105. package/dist/xlsx.util-CqlYZLKW.js +0 -109
  106. /package/dist/{layout/InventoryLayout.vue.d.ts → views/closing-template/closing-template-import/ClosingTemplateImport.vue.d.ts} +0 -0
@@ -1,18 +1,17 @@
1
- import { defineComponent as ee, ref as h, watch as te, computed as U, resolveComponent as ae, openBlock as g, createBlock as Z, unref as e, withCtx as b, createElementVNode as s, normalizeClass as oe, createVNode as n, normalizeStyle as re, toDisplayString as ne, createElementBlock as se, createCommentVNode as le, Teleport as ie, mergeProps as ce } from "vue";
2
- import { Z as f, O as G, j as pe } from "./app-w8TOQVZc.js";
3
- import { b as ue, u as me, _ as de, a as fe } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-ZYtBNoaE.js";
4
- import { u as _e } from "./purchase-order-transaction-type-CIC5h-6x.js";
5
- import { u as ve, _ as De } from "./TransferDetails.vue_vue_type_script_setup_true_lang-EN3JgHKF.js";
1
+ import { defineComponent as ee, ref as h, watch as te, computed as U, resolveComponent as ae, openBlock as g, createBlock as G, unref as e, withCtx as b, createElementVNode as s, normalizeClass as oe, createVNode as n, normalizeStyle as re, toDisplayString as ne, createElementBlock as se, createCommentVNode as le, Teleport as ie, mergeProps as ce } from "vue";
2
+ import { i as pe, ag as f, V as J } from "./app-TB3IWuaU.js";
3
+ import { b as ue, u as me, _ as de, a as fe } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-CM93v-jp.js";
4
+ import { a as _e, b as ve, _ as De } from "./TransferDetails.vue_vue_type_script_setup_true_lang-dPt3qbcX.js";
6
5
  import { _ as he, F as _ } from "./TableActionableRow.vue_vue_type_script_setup_true_lang-DlNJ6kRg.js";
7
6
  import { useBreakpoints as ge } from "@feedmepos/ui-library";
8
7
  import { useI18n as be } from "@feedmepos/mf-common";
9
- const xe = { 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" }, Oe = { class: "fm-typo-en-body-md-400 text-fm-color-typo-primary line-clamp-1" }, Re = {
8
+ const xe = { 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" }, ke = {
10
9
  key: 0,
11
10
  class: "fm-typo-en-body-md-400 text-fm-color-typo-primary line-clamp-1"
12
- }, ke = { class: "pt-8" }, je = /* @__PURE__ */ ee({
11
+ }, Oe = { class: "pt-8" }, Ye = /* @__PURE__ */ ee({
13
12
  __name: "ApprovalView",
14
13
  setup(Se) {
15
- const o = _e("approval"), { columnDefs: J } = ve("approval", o), K = pe();
14
+ const o = _e("approval"), { columnDefs: K } = ve("approval", o), Q = pe();
16
15
  f.object({
17
16
  name: f.string().optional().nullable(),
18
17
  start: f.date().optional().nullable(),
@@ -22,8 +21,8 @@ const xe = { class: "flex flex-col py-8" }, ye = { class: "fm-typo-en-body-md-40
22
21
  name: "",
23
22
  ...ue()
24
23
  }), a = h({
25
- startDate: G(x.value.start ?? /* @__PURE__ */ new Date()),
26
- endDate: G(x.value.end ?? /* @__PURE__ */ new Date())
24
+ startDate: J(x.value.start ?? /* @__PURE__ */ new Date()),
25
+ endDate: J(x.value.end ?? /* @__PURE__ */ new Date())
27
26
  });
28
27
  te([() => a.value.startDate], () => {
29
28
  if (!a.value.startDate)
@@ -38,11 +37,11 @@ const xe = { class: "flex flex-col py-8" }, ye = { class: "fm-typo-en-body-md-40
38
37
  return;
39
38
  }
40
39
  });
41
- const v = h(""), { breakpoints: y } = ge(), D = U(() => y.value.xs || y.value.sm), Q = U(() => D.value ? 10 : 20), W = me(), { t: X } = be();
40
+ const v = h(""), { breakpoints: y } = ge(), D = U(() => y.value.xs || y.value.sm), W = U(() => D.value ? 10 : 20), X = me(), { t: Z } = be();
42
41
  return (w, l) => {
43
42
  const B = ae("FmTable");
44
- return g(), Z(de, {
45
- title: e(X)("inventory.transfer.approval.title")
43
+ return g(), G(de, {
44
+ title: e(Z)("inventory.transfer.approval.title")
46
45
  }, {
47
46
  default: b(() => [
48
47
  s("div", {
@@ -62,13 +61,13 @@ const xe = { class: "flex flex-col py-8" }, ye = { class: "fm-typo-en-body-md-40
62
61
  actions: [{ icon: "refresh", onClick: e(o).fetchData }]
63
62
  }, null, 8, ["search", "actions"]),
64
63
  n(B, {
65
- style: re(e(W).tableHeight),
66
- "column-defs": e(J),
64
+ style: re(e(X).tableHeight),
65
+ "column-defs": e(K),
67
66
  "row-data": e(o).purchaseRequests.value,
68
67
  "search-value": v.value,
69
- loading: !e(K)._currentLocation || e(o).loading.value,
68
+ loading: !e(Q)._currentLocation || e(o).loading.value,
70
69
  onRowClick: l[1] || (l[1] = (r) => e(o).promptShowTransferDetails(r.original.purchaseOrder, r.original)),
71
- "page-size": Q.value
70
+ "page-size": W.value
72
71
  }, {
73
72
  "list-row": b((r) => [
74
73
  n(he, {
@@ -76,12 +75,12 @@ const xe = { class: "flex flex-col py-8" }, ye = { class: "fm-typo-en-body-md-40
76
75
  onRowClick: (t) => e(o).promptShowTransferDetails(t.purchaseOrder, t)
77
76
  }, {
78
77
  default: b((t) => {
79
- var O, R, k, i, S, T, C, z, c, F, M, p, $, u, V, Y, j, q, L, m, N, E, P, A, d, H;
78
+ var R, k, O, i, S, T, C, z, c, F, M, p, V, u, $, Y, q, L, N, m, j, E, P, A, d, H;
80
79
  return [
81
80
  s("div", xe, [
82
81
  s("div", ye, [
83
82
  n(e(_), {
84
- render: (k = (R = (O = t.purchaseOrder__id) == null ? void 0 : O.column) == null ? void 0 : R.columnDef) == null ? void 0 : k.cell,
83
+ render: (O = (k = (R = t.purchaseOrder__id) == null ? void 0 : R.column) == null ? void 0 : k.columnDef) == null ? void 0 : O.cell,
85
84
  props: (S = (i = t.purchaseOrder__id) == null ? void 0 : i.getContext) == null ? void 0 : S.call(i)
86
85
  }, null, 8, ["render", "props"])
87
86
  ]),
@@ -91,14 +90,14 @@ const xe = { class: "flex flex-col py-8" }, ye = { class: "fm-typo-en-body-md-40
91
90
  props: (F = (c = t.to_name) == null ? void 0 : c.getContext) == null ? void 0 : F.call(c)
92
91
  }, null, 8, ["render", "props"])
93
92
  ]),
94
- s("div", Oe, ne((V = (u = ($ = (p = (M = r.original.purchaseOrder) == null ? void 0 : M.items) == null ? void 0 : p.map) == null ? void 0 : $.call(p, (I) => `${I.name}`)) == null ? void 0 : u.join) == null ? void 0 : V.call(u, ", ")), 1),
95
- (Y = r.original.purchaseOrder) != null && Y.ref ? (g(), se("div", Re, [
93
+ s("div", Re, ne(($ = (u = (V = (p = (M = r.original.purchaseOrder) == null ? void 0 : M.items) == null ? void 0 : p.map) == null ? void 0 : V.call(p, (I) => `${I.name}`)) == null ? void 0 : u.join) == null ? void 0 : $.call(u, ", ")), 1),
94
+ (Y = r.original.purchaseOrder) != null && Y.ref ? (g(), se("div", ke, [
96
95
  n(e(_), {
97
- render: (L = (q = (j = t.purchaseOrder_ref) == null ? void 0 : j.column) == null ? void 0 : q.columnDef) == null ? void 0 : L.cell,
98
- props: (N = (m = t.purchaseOrder_ref) == null ? void 0 : m.getContext) == null ? void 0 : N.call(m)
96
+ render: (N = (L = (q = t.purchaseOrder_ref) == null ? void 0 : q.column) == null ? void 0 : L.columnDef) == null ? void 0 : N.cell,
97
+ props: (j = (m = t.purchaseOrder_ref) == null ? void 0 : m.getContext) == null ? void 0 : j.call(m)
99
98
  }, null, 8, ["render", "props"])
100
99
  ])) : le("", !0),
101
- s("div", ke, [
100
+ s("div", Oe, [
102
101
  n(e(_), {
103
102
  render: (A = (P = (E = t.purchaseOrder_status) == null ? void 0 : E.column) == null ? void 0 : P.columnDef) == null ? void 0 : A.cell,
104
103
  props: (H = (d = t.purchaseOrder_status) == null ? void 0 : d.getContext) == null ? void 0 : H.call(d)
@@ -113,7 +112,7 @@ const xe = { class: "flex flex-col py-8" }, ye = { class: "fm-typo-en-body-md-40
113
112
  _: 1
114
113
  }, 8, ["style", "column-defs", "row-data", "search-value", "loading", "page-size"])
115
114
  ], 2),
116
- (g(), Z(ie, { to: "body" }, [
115
+ (g(), G(ie, { to: "body" }, [
117
116
  n(De, ce(e(o).transferDetailsProps.value, {
118
117
  onSubmitted: e(o).fetchData
119
118
  }), null, 16, ["onSubmitted"])
@@ -125,5 +124,5 @@ const xe = { class: "flex flex-col py-8" }, ye = { class: "fm-typo-en-body-md-40
125
124
  }
126
125
  });
127
126
  export {
128
- je as default
127
+ Ye as default
129
128
  };
@@ -1,5 +1,5 @@
1
- import { defineComponent as C, ref as o, onMounted as M, onUnmounted as F, watch as x, resolveComponent as l, openBlock as i, createElementBlock as d, createBlock as I, withCtx as R, createVNode as a, createCommentVNode as z, createElementVNode as P } from "vue";
2
- import { u as V, an as L, _ as S } from "./app-w8TOQVZc.js";
1
+ import { defineComponent as C, ref as o, onMounted as M, onUnmounted as F, watch as x, 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 { u as V, av as L, _ as S } from "./app-TB3IWuaU.js";
3
3
  const U = {
4
4
  key: 0,
5
5
  class: "flex justify-end gap-8 items-center"
@@ -9,10 +9,10 @@ const U = {
9
9
  }, A = /* @__PURE__ */ C({
10
10
  __name: "BindingsDialog",
11
11
  setup(N) {
12
- const p = V(), u = o(!0), s = o(new Array()), c = o(), t = L(y);
12
+ const p = V(), d = o(!0), s = o(new Array()), u = o(), t = L(y);
13
13
  async function y() {
14
- await p.readInventory(), c.value = t.onMessage("props:inventory-bindings", (e) => {
15
- u.value = !1, s.value = e;
14
+ await p.readInventory(), u.value = t.onMessage("props:inventory-bindings", (e) => {
15
+ d.value = !1, s.value = e;
16
16
  }).onMessage("props:inventory-bindings:validate", () => {
17
17
  var e;
18
18
  (e = f.value) == null || e.validateInputs();
@@ -36,7 +36,7 @@ const U = {
36
36
  }).observe(e);
37
37
  }), F(() => {
38
38
  var e, n;
39
- (n = (e = c.value) == null ? void 0 : e.removeEventListener) == null || n.call(e);
39
+ (n = (e = u.value) == null ? void 0 : e.removeEventListener) == null || n.call(e);
40
40
  }), x([() => s.value], ([e]) => {
41
41
  t.sendMessage("@update:inventory-bindings", e);
42
42
  });
@@ -47,12 +47,12 @@ const U = {
47
47
  const f = o();
48
48
  return (e, n) => {
49
49
  const g = l("FmButton"), B = l("FmForm"), h = l("FmCircularProgress");
50
- return i(), d("div", {
50
+ return i(), c("div", {
51
51
  class: "bg-white",
52
52
  ref_key: "resizeableRef",
53
53
  ref: m
54
54
  }, [
55
- u.value ? (i(), d("div", E, [
55
+ d.value ? (i(), c("div", E, [
56
56
  a(h, { size: "md" }),
57
57
  n[2] || (n[2] = P("div", null, "Loading bindings dialog...", -1))
58
58
  ])) : (i(), I(B, {
@@ -69,7 +69,7 @@ const U = {
69
69
  "iframe-mode": "",
70
70
  "onClick:pickInventoryBindings": k
71
71
  }, null, 8, ["model-value"]),
72
- r.value ? z("", !0) : (i(), d("div", U, [
72
+ r.value ? z("", !0) : (i(), c("div", U, [
73
73
  a(g, {
74
74
  type: "button",
75
75
  variant: "tertiary",
@@ -1,22 +1,22 @@
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 { u as x, an as M, y as z } from "./app-w8TOQVZc.js";
3
- const K = {
1
+ import { defineComponent as S, computed as u, ref as l, onMounted as U, onUnmounted as V, resolveComponent as E, openBlock as p, createElementBlock as f, createVNode as r, createElementVNode as k } from "vue";
2
+ import { u as M, av as x, y as z } from "./app-TB3IWuaU.js";
3
+ const F = {
4
4
  key: 0,
5
5
  class: "flex flex-col gap-16"
6
- }, w = { class: "flex justify-end gap-8 items-center" }, F = {
6
+ }, K = { class: "flex justify-end gap-8 items-center" }, w = {
7
7
  key: 1,
8
8
  class: "p-24 flex items-center justify-center gap-16"
9
9
  }, N = /* @__PURE__ */ S({
10
10
  __name: "BindingsPicker",
11
11
  setup(L) {
12
- const d = x(), C = r(() => d.recipes), I = r(() => d.skus), g = l(!0), i = l(new Array()), a = l("RECIPE"), c = r(() => a.value === "SKU" ? I.value.map((s) => ({
12
+ const d = M(), C = u(() => d.recipes), I = u(() => d.skus), g = l(!0), i = l(new Array()), a = l("RECIPE"), c = u(() => a.value === "SKU" ? I.value.map((s) => ({
13
13
  label: s.name,
14
14
  sublabel: s.code,
15
15
  value: s
16
16
  })) : C.value.map((s) => ({
17
17
  label: s.name,
18
18
  value: s
19
- }))), b = r({
19
+ }))), b = u({
20
20
  get() {
21
21
  if (a.value === "SKU") {
22
22
  const e = i.value.filter((n) => n.type === "SKU");
@@ -31,7 +31,7 @@ const K = {
31
31
  const s = i.value.filter((n) => n.type === "SKU");
32
32
  e = e, i.value = [
33
33
  ...e.map((n) => {
34
- const t = i.value.find((v) => v.id === n._id);
34
+ const t = i.value.find((m) => m.id === n._id);
35
35
  return t || {
36
36
  type: "RECIPE",
37
37
  id: n._id,
@@ -49,7 +49,7 @@ const K = {
49
49
  i.value = [
50
50
  ...s,
51
51
  ...e.map((n) => {
52
- const t = i.value.find((v) => v.id === n._id);
52
+ const t = i.value.find((m) => m.id === n._id);
53
53
  return t || {
54
54
  type: "SKU",
55
55
  id: n._id,
@@ -62,9 +62,9 @@ const K = {
62
62
  ];
63
63
  }
64
64
  }
65
- }), _ = l(), o = M(B);
65
+ }), y = l(), o = x(B);
66
66
  async function B() {
67
- await d.readInventory(), _.value = o.onMessage(
67
+ await d.readInventory(), y.value = o.onMessage(
68
68
  "props:binding-items",
69
69
  (e) => {
70
70
  g.value = !1, a.value = e.type, i.value = e.bindings;
@@ -77,38 +77,38 @@ const K = {
77
77
  function R() {
78
78
  o.sendMessage("@submit:items", i.value);
79
79
  }
80
- const y = l();
80
+ const _ = l();
81
81
  return U(() => {
82
- const e = y.value;
82
+ const e = _.value;
83
83
  e && new ResizeObserver(() => {
84
84
  o.sendMessage("resize", e.scrollHeight);
85
85
  }).observe(e);
86
86
  }), V(() => {
87
87
  var e, s;
88
- (s = (e = _.value) == null ? void 0 : e.removeEventListener) == null || s.call(e);
88
+ (s = (e = y.value) == null ? void 0 : e.removeEventListener) == null || s.call(e);
89
89
  }), (e, s) => {
90
90
  const n = E("FmButton"), t = E("FmCircularProgress");
91
91
  return p(), f("div", {
92
92
  class: "bg-white",
93
93
  ref_key: "resizeableRef",
94
- ref: y
94
+ ref: _
95
95
  }, [
96
- g.value ? (p(), f("div", F, [
97
- u(t, { size: "md" }),
96
+ g.value ? (p(), f("div", w, [
97
+ r(t, { size: "md" }),
98
98
  s[1] || (s[1] = k("div", null, "Loading bindings dialog...", -1))
99
- ])) : (p(), f("div", K, [
100
- u(z, {
99
+ ])) : (p(), f("div", F, [
100
+ r(z, {
101
101
  "model-value": b.value,
102
- "onUpdate:modelValue": s[0] || (s[0] = (m) => b.value = m),
102
+ "onUpdate:modelValue": s[0] || (s[0] = (v) => b.value = v),
103
103
  items: c.value
104
104
  }, null, 8, ["model-value", "items"]),
105
- k("div", w, [
106
- u(n, {
105
+ k("div", K, [
106
+ r(n, {
107
107
  variant: "tertiary",
108
108
  label: "Close",
109
109
  onClick: P
110
110
  }),
111
- u(n, {
111
+ r(n, {
112
112
  label: "Submit",
113
113
  onClick: R
114
114
  })
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as _, ref as c, provide as C, computed as f, resolveComponent as b, openBlock as p, createBlock as h, h as z, onMounted as B, onUnmounted as I, createElementBlock as y, createVNode as N, createElementVNode as x } from "vue";
2
- import { q as v, u as E, an as L } from "./app-w8TOQVZc.js";
2
+ import { j as v, u as E, av as L } from "./app-TB3IWuaU.js";
3
3
  import { components as F } from "@feedmepos/ui-library";
4
4
  import "@feedmepos/mf-common";
5
5
  const P = /* @__PURE__ */ _({