@feedmepos/mf-inventory-portal 1.2.2-dev.5 → 1.2.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 (46) hide show
  1. package/dist/{App-Bx_2mMNo.js → App-CJcHE7SO.js} +1 -1
  2. package/dist/{ApprovalView-CyWf_V6_.js → ApprovalView-BdZJkIr1.js} +2 -2
  3. package/dist/{BindingsDialog-Bjmg05LL.js → BindingsDialog-MWca_bmU.js} +2 -2
  4. package/dist/{BindingsPicker-BLQp4Baj.js → BindingsPicker-BoBmsimf.js} +1 -1
  5. package/dist/{BindingsTable-kyXW7RXe.js → BindingsTable-QBDWp4j9.js} +1 -1
  6. package/dist/{ClosingDraftView-DuHgc3FJ.js → ClosingDraftView-CyAhtevG.js} +2 -2
  7. package/dist/{ClosingTemplateView-Bfk7QAcQ.js → ClosingTemplateView-B26aUQk_.js} +2 -2
  8. package/dist/{DeliveryOrderPrintPreview-C__NDNgg.js → DeliveryOrderPrintPreview-CxE7zXQu.js} +1 -1
  9. package/dist/{FmAdminBadge-OuaM7QdH.js → FmAdminBadge-BodsgRyK.js} +1 -1
  10. package/dist/{FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-C0WlNY6z.js → FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-CsjT5AZ0.js} +3 -3
  11. package/dist/{FmMultiselectDialog-D-Z6qkvj.js → FmMultiselectDialog-sRLyNp7M.js} +1 -1
  12. package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-BP64ofif.js → FmUnitInput.vue_vue_type_script_setup_true_lang-9s0vqpVr.js} +1 -1
  13. package/dist/{IngredientBindedItem.vue_vue_type_script_setup_true_lang-YDsWAKfK.js → IngredientBindedItem.vue_vue_type_script_setup_true_lang-DYxW0unH.js} +1 -1
  14. package/dist/{IngredientGroupView-Da8qchOi.js → IngredientGroupView-Ctk4HYE6.js} +2 -2
  15. package/dist/{IngredientsView-CvSJkMdo.js → IngredientsView-dtDwA_D5.js} +4 -4
  16. package/dist/{IntegrationView-DEd-LJRf.js → IntegrationView-CJK4FoWD.js} +4 -4
  17. package/dist/{InventoryBindingForm-CAV_C1b1.js → InventoryBindingForm-f4FJY7WU.js} +1 -1
  18. package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang--Fj_i7AQ.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-BCRie802.js} +3 -3
  19. package/dist/{InventoryBindingSummary-CacyoKpd.js → InventoryBindingSummary-C3xrP0g7.js} +1 -1
  20. package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-CsAq9h0J.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-CegSNvou.js} +1 -1
  21. package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-1lEEWdvC.js → PremiumBadge.vue_vue_type_script_setup_true_lang-BldOmlfF.js} +1 -1
  22. package/dist/{PublishView-C7896UZC.js → PublishView-bOQCoZjJ.js} +69 -59
  23. package/dist/{PurchaseOrderPrintPreview-DyALiYZK.js → PurchaseOrderPrintPreview-DpSX1kkc.js} +1 -1
  24. package/dist/{ReceiveRequestView-Dpmz2obo.js → ReceiveRequestView-cyfbwDOt.js} +8 -8
  25. package/dist/{RecipeView-2mEjsemE.js → RecipeView-N4FN3GYa.js} +3 -3
  26. package/dist/{StockView-CXkSQyLv.js → StockView-CBF3sxnP.js} +7 -7
  27. package/dist/{SupplierView-C5sACMXN.js → SupplierView-NiBkcSkm.js} +3 -3
  28. package/dist/{TransferDetails.vue_vue_type_script_setup_true_lang-Byg5CM3t.js → TransferDetails.vue_vue_type_script_setup_true_lang-CetqKDir.js} +6 -6
  29. package/dist/{TransferTemplateView-DStq_bc7.js → TransferTemplateView-BvG3PQr1.js} +6 -6
  30. package/dist/{UnitView-BnqR6CFp.js → UnitView-DNk7uGXP.js} +3 -3
  31. package/dist/{WarehouseView-BK4ERdDy.js → WarehouseView-CcP_C-f5.js} +1 -1
  32. package/dist/api/inventory.d.ts +91 -0
  33. package/dist/{app-CC8HdBWr.js → app-D7pUBlkb.js} +5533 -5477
  34. package/dist/app.js +1 -1
  35. package/dist/{decimal-0r_YO6d7.js → decimal-Dt_QQfvw.js} +1 -1
  36. package/dist/{format-unit-display-CSm04VOB.js → format-unit-display-BcBpuzq_.js} +2 -2
  37. package/dist/helper/array.d.ts +1 -0
  38. package/dist/{index-CYmkMHty.js → index-Bao9EhFU.js} +1 -1
  39. package/dist/{index-Cbbi_wd-.js → index-CNxvakYX.js} +1 -1
  40. package/dist/{stock-gopm397Q.js → stock-BipLzZlr.js} +1 -1
  41. package/dist/stores/location.d.ts +274 -0
  42. package/dist/{supplier-DG2eDyhs.js → supplier-Bi1zyqXc.js} +1 -1
  43. package/dist/tsconfig.app.tsbuildinfo +1 -1
  44. package/dist/{use-ingredient-select-dialog-x6_LC-PO.js → use-ingredient-select-dialog-B_an8zOX.js} +1 -1
  45. package/dist/{use-inventory-binding-dialog-BZSFmbQ-.js → use-inventory-binding-dialog-nf05eODU.js} +1 -1
  46. package/package.json +1 -1
@@ -1,5 +1,5 @@
1
1
  import { ref as U, onUnmounted as F, defineComponent as h, watch as P, onMounted as w, computed as R, resolveComponent as b, openBlock as S, createElementBlock as I, unref as v, createVNode as _, createElementVNode as d, toDisplayString as G, createBlock as x, createCommentVNode as k } from "vue";
2
- import { u as M, a as D, b as H, R as e, c as B, g as s, d as W } from "./app-CC8HdBWr.js";
2
+ import { u as M, a as D, b as H, R as e, c as B, g as s, d as W } from "./app-D7pUBlkb.js";
3
3
  import { useCoreStore as A, useI18n as O } from "@feedmepos/mf-common";
4
4
  import { useRouter as L, useRoute as K } from "vue-router";
5
5
  import { u as $ } from "./useTabStorage-BkIVScW_.js";
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as ue, ref as y, watch as ie, computed as d, resolveComponent as ce, openBlock as x, createBlock as X, unref as n, withCtx as k, createElementVNode as c, normalizeClass as pe, createVNode as i, normalizeStyle as de, toDisplayString as me, createElementBlock as fe, createCommentVNode as ve, Teleport as he, mergeProps as _e } from "vue";
2
- import { u as De, b as ge, aG as b, aR as ye, ah as Z, B as be, N as Re, H as Oe, _ as Se, C as xe, E as ke, G as R } from "./app-CC8HdBWr.js";
3
- import { a as qe, P as q, b as we, _ as Pe } from "./TransferDetails.vue_vue_type_script_setup_true_lang-Byg5CM3t.js";
2
+ import { u as De, b as ge, aG as b, aR as ye, ah as Z, B as be, N as Re, H as Oe, _ as Se, C as xe, E as ke, G as R } from "./app-D7pUBlkb.js";
3
+ import { a as qe, P as q, b as we, _ as Pe } from "./TransferDetails.vue_vue_type_script_setup_true_lang-CetqKDir.js";
4
4
  import { useBreakpoints as Ne } from "@feedmepos/ui-library";
5
5
  import { useI18n as Te } from "@feedmepos/mf-common";
6
6
  const Ce = { class: "flex flex-col py-8" }, Ae = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Me = { class: "fm-typo-en-body-lg-600 text-fm-color-typo-primary line-clamp-1" }, Ve = { class: "fm-typo-en-body-md-400 text-fm-color-typo-primary line-clamp-1" }, Le = {
@@ -1,6 +1,6 @@
1
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 { _ as V } from "./InventoryBindingForm.vue_vue_type_script_setup_true_lang--Fj_i7AQ.js";
3
- import { a as L, b4 as S } from "./app-CC8HdBWr.js";
2
+ import { _ as V } from "./InventoryBindingForm.vue_vue_type_script_setup_true_lang-BCRie802.js";
3
+ import { a as L, b4 as S } from "./app-D7pUBlkb.js";
4
4
  const U = {
5
5
  key: 0,
6
6
  class: "flex justify-end gap-8 items-center"
@@ -1,5 +1,5 @@
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 { a as M, b4 as x, a2 as z } from "./app-CC8HdBWr.js";
2
+ import { a as M, b4 as x, a2 as z } from "./app-D7pUBlkb.js";
3
3
  const F = {
4
4
  key: 0,
5
5
  class: "flex flex-col gap-16"
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as x, ref as r, provide as C, computed as g, resolveComponent as h, openBlock as l, createElementBlock as u, createStaticVNode as F, Fragment as L, renderList as I, createElementVNode as p, toDisplayString as v, createVNode as w, withModifiers as N, onMounted as E, onUnmounted as z, createBlock as M } from "vue";
2
- import { F as b, a as P, b4 as R } from "./app-CC8HdBWr.js";
2
+ import { F as b, a as P, b4 as R } from "./app-D7pUBlkb.js";
3
3
  import "@feedmepos/ui-library";
4
4
  import "@feedmepos/mf-common";
5
5
  const U = { class: "" }, D = ["onClick"], O = { class: "flex-grow-0 flex-shrink-0 basis-5/12 py-8 pl-8" }, V = { 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" }, $ = { class: "flex-grow-0 flex-shrink-0 basis-1/12 py-4" }, T = /* @__PURE__ */ x({
@@ -1,9 +1,9 @@
1
1
  import { defineComponent as je, ref as E, computed as P, onMounted as Pe, resolveComponent as T, openBlock as w, createElementBlock as R, Fragment as q, createTextVNode as G, createBlock as Z, withCtx as Y, createElementVNode as n, toDisplayString as K, unref as S, createVNode as D, createCommentVNode as Q, h as I, reactive as et, watch as tt, isRef as Ve, normalizeClass as me, renderList as ve, normalizeStyle as ze, Teleport as at, mergeProps as nt } from "vue";
2
- import { a3 as ot, u as $e, ap as L, ah as Ne, aq as Oe, m as st, P as Me, j as N, t as rt, T as ye, r as lt, s as ct, v as it, ar as Ye, as as Ke, ac as Ge, at as se, ai as ut, a5 as Ie, a4 as re, a0 as Re, D as He, i as we, h as dt, f as mt, a as ft, B as pt, _ as vt, C as yt, E as gt, G as Ce } from "./app-CC8HdBWr.js";
2
+ import { a3 as ot, u as $e, ap as L, ah as Ne, aq as Oe, m as st, P as Me, j as N, t as rt, T as ye, r as lt, s as ct, v as it, ar as Ye, as as Ke, ac as Ge, at as se, ai as ut, a5 as Ie, a4 as re, a0 as Re, D as He, i as we, h as dt, f as mt, a as ft, B as pt, _ as vt, C as yt, E as gt, G as Ce } from "./app-D7pUBlkb.js";
3
3
  import { useCoreStore as bt, useI18n as qe } from "@feedmepos/mf-common";
4
4
  import { useSnackbar as Ue, useDialog as At, useProxiedModel as Dt, components as de, useBreakpoints as kt } from "@feedmepos/ui-library";
5
5
  import { defineStore as We, storeToRefs as _t } from "pinia";
6
- import { a as Le, u as Ze } from "./stock-gopm397Q.js";
6
+ import { a as Le, u as Ze } from "./stock-BipLzZlr.js";
7
7
  import { E as ht } from "./empty-placeholder-wf6-BWE8.js";
8
8
  const Be = ot((l, o) => {
9
9
  function e() {
@@ -1,9 +1,9 @@
1
1
  import { ref as P, h as F, defineComponent as L, resolveComponent as R, openBlock as k, createElementBlock as I, createElementVNode as _, normalizeClass as Y, createTextVNode as Pe, toDisplayString as C, unref as y, createCommentVNode as G, createVNode as $, withCtx as A, Fragment as j, renderList as J, computed as E, watch as Fe, createSlots as Re, createBlock as V, isRef as Oe, normalizeStyle as Ye, Teleport as Ke, normalizeProps as Ge, guardReactiveProps as Je, mergeProps as We } from "vue";
2
- import { a3 as qe, u as ie, ai as Qe, D as Z, i as N, h as Xe, f as Ae, aj as Ze, ak as ae, s as et, al as Ee, v as Ne, a as ce, b as tt, w as nt, x as Ue, y as ot, z as st, am as lt, e as H, G as O, K as at, an as rt, m as it, E as Ve, A as ct, ao as mt, a4 as le, B as ut, _ as dt, C as pt } from "./app-CC8HdBWr.js";
2
+ import { a3 as qe, u as ie, ai as Qe, D as Z, i as N, h as Xe, f as Ae, aj as Ze, ak as ae, s as et, al as Ee, v as Ne, a as ce, b as tt, w as nt, x as Ue, y as ot, z as st, am as lt, e as H, G as O, K as at, an as rt, m as it, E as Ve, A as ct, ao as mt, a4 as le, B as ut, _ as dt, C as pt } from "./app-D7pUBlkb.js";
3
3
  import { useCoreStore as me, useI18n as z } from "@feedmepos/mf-common";
4
4
  import { useDialog as te, useDialogChild as ft, useSnackbar as ne, FmButtonVariant as ee, components as B, useProxiedModel as vt, useBreakpoints as gt } from "@feedmepos/ui-library";
5
5
  import { defineStore as Be, storeToRefs as Le } from "pinia";
6
- import { u as yt } from "./use-ingredient-select-dialog-x6_LC-PO.js";
6
+ import { u as yt } from "./use-ingredient-select-dialog-B_an8zOX.js";
7
7
  const oe = qe((c, o) => {
8
8
  function l() {
9
9
  var t;
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as x, computed as f, ref as h, onMounted as g, openBlock as u, createElementBlock as i, createElementVNode as t, createTextVNode as n, toDisplayString as e, createCommentVNode as d, Fragment as o, renderList as p, normalizeClass as _ } from "vue";
2
2
  import { useRoute as k } from "vue-router";
3
- import { aA as y, ao as w } from "./app-CC8HdBWr.js";
3
+ import { aA as y, ao as w } from "./app-D7pUBlkb.js";
4
4
  const A = { class: "purchase-box" }, c = { valign: "bottom" }, N = { class: "sub-header" }, O = ["src"], P = { style: { "padding-left": "10px" } }, C = { class: "address" }, D = { class: "text-right" }, R = {
5
5
  key: 0,
6
6
  class: "subtitle"
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as m, resolveComponent as i, unref as l, openBlock as p, createElementBlock as d, renderSlot as t, createElementVNode as s, normalizeClass as u, createVNode as f } from "vue";
2
2
  import { useCoreStore as _ } from "@feedmepos/mf-common";
3
- import { ao as v } from "./app-CC8HdBWr.js";
3
+ import { ao as v } from "./app-D7pUBlkb.js";
4
4
  const g = {
5
5
  key: 0,
6
6
  class: "group gap-8 inline-flex items-center relative select-none"
@@ -1,6 +1,6 @@
1
- import { j as C, t as R, ay as O, u as B, aC as E, aO as D, aP as H, aQ as U } from "./app-CC8HdBWr.js";
2
- import { u as z } from "./supplier-DG2eDyhs.js";
3
- import { P as L } from "./format-unit-display-CSm04VOB.js";
1
+ import { j as C, t as R, ay as O, u as B, aC as E, aO as D, aP as H, aQ as U } from "./app-D7pUBlkb.js";
2
+ import { u as z } from "./supplier-Bi1zyqXc.js";
3
+ import { P as L } from "./format-unit-display-BcBpuzq_.js";
4
4
  import { computed as f, defineComponent as j, mergeModels as q, useModel as x, ref as W, resolveComponent as V, openBlock as T, createElementBlock as w, normalizeStyle as $, createElementVNode as N, createVNode as Q, withCtx as J, createBlock as g, createCommentVNode as A, Fragment as K, renderList as X, unref as M } from "vue";
5
5
  function Y(t, i, l) {
6
6
  var o;
@@ -1,7 +1,7 @@
1
1
  import { defineStore as p } from "pinia";
2
2
  import { useDialog as y } from "@feedmepos/ui-library";
3
3
  import { useI18n as v } from "@feedmepos/mf-common";
4
- import { a2 as a } from "./app-CC8HdBWr.js";
4
+ import { a2 as a } from "./app-D7pUBlkb.js";
5
5
  import { h as S } from "vue";
6
6
  const w = p("inventoryMultiSelectDialog", () => {
7
7
  const l = y(), { t: n } = v();
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as ie, mergeModels as W, useModel as ae, computed as v, ref as B, watch as E, onBeforeUnmount as le, inject as ue, resolveComponent as b, openBlock as d, createElementBlock as y, createElementVNode as u, createVNode as h, withCtx as F, renderSlot as G, normalizeClass as L, toDisplayString as _, withDirectives as re, vModelText as me, createCommentVNode as I, createTextVNode as ce, createBlock as U, Fragment as de, renderList as pe } from "vue";
2
- import { Q as D, I as R, Y as O, T as fe, j as M, aM as ve, t as be, b7 as ye, P as he, as as Me, aK as ge, aJ as xe } from "./app-CC8HdBWr.js";
2
+ import { Q as D, I as R, Y as O, T as fe, j as M, aM as ve, t as be, b7 as ye, P as he, as as Me, aK as ge, aJ as xe } from "./app-D7pUBlkb.js";
3
3
  import "@feedmepos/ui-library";
4
4
  function H() {
5
5
  return {
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as p, openBlock as s, createElementBlock as n, createElementVNode as r, toDisplayString as o, unref as l, Fragment as d, renderList as x } from "vue";
2
- import { j as a, P as y } from "./app-CC8HdBWr.js";
2
+ import { j as a, P as y } from "./app-D7pUBlkb.js";
3
3
  import { useI18n as _ } from "@feedmepos/mf-common";
4
4
  const v = { class: "flex flex-col" }, g = { class: "flex flex-row fm-typo-en-body-md-600 bg-fm-color-neutral-gray-100 text-fm-color-typo-secondary h-48 items-center" }, h = { class: "flex-1 py-8 px-16" }, b = {
5
5
  class: "flex-0 py-8 px-16",
@@ -1,10 +1,10 @@
1
1
  import { ref as A, computed as F, h as C, defineComponent as j, watch as re, resolveComponent as R, openBlock as G, createElementBlock as U, createVNode as b, unref as l, createElementVNode as c, toDisplayString as $, createBlock as M, withCtx as T, Fragment as pe, renderList as ve, createTextVNode as ye, createCommentVNode as se, isRef as ge, normalizeClass as _e, normalizeStyle as be, createSlots as ke, Teleport as xe, normalizeProps as he, guardReactiveProps as we } from "vue";
2
- import { a as z, e as S, f as L, h as Re, D as oe, i as K, I as Ie, A as Se, U as Ge, K as ue, L as Fe, N as Ve, m as de, O as Ce, q as ae, u as De, B as Ae, _ as $e, C as Te, E as Ee, G as le } from "./app-CC8HdBWr.js";
2
+ import { a as z, e as S, f as L, h as Re, D as oe, i as K, I as Ie, A as Se, U as Ge, K as ue, L as Fe, N as Ve, m as de, O as Ce, q as ae, u as De, B as Ae, _ as $e, C as Te, E as Ee, G as le } from "./app-D7pUBlkb.js";
3
3
  import { useDialog as Me, useSnackbar as Y, components as B, useProxiedModel as Be, useBreakpoints as Ue } from "@feedmepos/ui-library";
4
4
  import { useI18n as P, useCoreStore as Le } from "@feedmepos/mf-common";
5
5
  import { defineStore as ce, storeToRefs as ie } from "pinia";
6
6
  import "./array-Ca8T3f_G.js";
7
- import { u as ze } from "./FmMultiselectDialog-D-Z6qkvj.js";
7
+ import { u as ze } from "./FmMultiselectDialog-sRLyNp7M.js";
8
8
  import { r as me } from "./random-CSbEbElR.js";
9
9
  import { u as Pe, R as Ne } from "./usePromise-CbVUCxhj.js";
10
10
  const H = ce(
@@ -1,17 +1,17 @@
1
1
  import { ref as L, h as X, defineComponent as le, computed as S, resolveComponent as w, openBlock as _, createBlock as A, withCtx as V, createVNode as v, unref as d, createElementBlock as D, Fragment as ee, createElementVNode as c, createCommentVNode as O, renderSlot as ve, createTextVNode as Ee, toDisplayString as T, normalizeClass as Q, onMounted as ut, watch as Je, renderList as ye, isRef as Ne, createSlots as Ze, normalizeStyle as dt, Teleport as ze, normalizeProps as mt, guardReactiveProps as ct } from "vue";
2
- import { a as te, e as H, f as Qe, S as pt, h as vt, D as Le, i as _e, A as ke, b as Ue, j as Xe, k as Ve, t as et, l as ge, m as we, U as ft, n as yt, M as gt, o as Oe, p as He, c as tt, q as je, r as nt, s as bt, v as ot, w as ht, x as _t, I as xt, y as kt, z as Vt, N as St, H as Ct, u as wt, B as Ft, _ as Mt, C as It, E as $t, G as Ye, J as Et } from "./app-CC8HdBWr.js";
2
+ import { a as te, e as H, f as Qe, S as pt, h as vt, D as Le, i as _e, A as ke, b as Ue, j as Xe, k as Ve, t as et, l as ge, m as we, U as ft, n as yt, M as gt, o as Oe, p as He, c as tt, q as je, r as nt, s as bt, v as ot, w as ht, x as _t, I as xt, y as kt, z as Vt, N as St, H as Ct, u as wt, B as Ft, _ as Mt, C as It, E as $t, G as Ye, J as Et } from "./app-D7pUBlkb.js";
3
3
  import { useDialog as lt, useSnackbar as Se, components as qe, useProxiedModel as Ge, useDialogChild as Ut, useBreakpoints as Rt } from "@feedmepos/ui-library";
4
4
  import { i as At, _ as Tt } from "./is-linked-ingredient-error-fJ2TJb3z.js";
5
5
  import { useI18n as ae, useCoreStore as be } from "@feedmepos/mf-common";
6
6
  import { defineStore as Dt, storeToRefs as Bt } from "pinia";
7
7
  import { g as Pt, _ as Fe, S as Me } from "./StockForecast.vue_vue_type_style_index_0_lang-KLXSWvo5.js";
8
- import { _ as Nt } from "./InventoryBindingForm.vue_vue_type_script_setup_true_lang--Fj_i7AQ.js";
9
- import { _ as Ie } from "./IngredientBindedItem.vue_vue_type_script_setup_true_lang-YDsWAKfK.js";
8
+ import { _ as Nt } from "./InventoryBindingForm.vue_vue_type_script_setup_true_lang-BCRie802.js";
9
+ import { _ as Ie } from "./IngredientBindedItem.vue_vue_type_script_setup_true_lang-DYxW0unH.js";
10
10
  import { _ as xe } from "./PreviewBadge.vue_vue_type_script_setup_true_lang-CRZiQHjx.js";
11
11
  import { _ as zt } from "./FmCustomAttribute.vue_vue_type_script_setup_true_lang-D-IWRjRD.js";
12
12
  import { r as Lt } from "./random-CSbEbElR.js";
13
13
  import "./array-Ca8T3f_G.js";
14
- import { u as Ot } from "./FmMultiselectDialog-D-Z6qkvj.js";
14
+ import { u as Ot } from "./FmMultiselectDialog-sRLyNp7M.js";
15
15
  const $e = Dt("ingredientForm", function() {
16
16
  const o = lt(), y = Se(), l = te(), n = L(!1), { t: a } = ae(), r = L();
17
17
  function m() {
@@ -1,11 +1,11 @@
1
1
  import { defineComponent as Y, mergeModels as je, useModel as Se, onMounted as pe, ref as M, computed as _, resolveComponent as F, openBlock as I, createElementBlock as V, createElementVNode as l, toDisplayString as j, unref as S, createVNode as h, createBlock as U, withCtx as O, Fragment as J, renderList as W, normalizeClass as q, normalizeStyle as Te, createSlots as se, createCommentVNode as z, withModifiers as _e, reactive as ve, watch as ge, isRef as ae, Teleport as ce, h as D, createTextVNode as P, watchEffect as ze } from "vue";
2
2
  import { E as He } from "./empty-placeholder-wf6-BWE8.js";
3
- import { b1 as Ue, aQ as Xe, f as te, u as $, b2 as Qe, b as ie, aB as de, j as Ye, aY as me, a4 as ye, a5 as Ae, a as be, a2 as Je, Q as G, $ as we, b3 as ke, aH as Be, aU as Ce, s as Ee, y as Fe, a0 as ue, c as Le, _ as Ke, C as Pe } from "./app-CC8HdBWr.js";
3
+ import { b1 as Ue, aQ as Xe, f as te, u as $, b2 as Qe, b as ie, aB as de, j as Ye, aY as me, a4 as ye, a5 as Ae, a as be, a2 as Je, Q as G, $ as we, b3 as ke, aH as Be, aU as Ce, s as Ee, y as Fe, a0 as ue, c as Le, _ as Ke, C as Pe } from "./app-D7pUBlkb.js";
4
4
  import { useDialogChild as qe, useDialog as re, useProxiedModel as le, useSnackbar as ee, useBreakpoints as Ve, components as ne } from "@feedmepos/ui-library";
5
5
  import { useI18n as Z, useCoreStore as oe } from "@feedmepos/mf-common";
6
- import { a as Ze, b as Ge, c as We, u as $e } from "./index-Cbbi_wd-.js";
7
- import { _ as et, F as tt } from "./FmUnitInput.vue_vue_type_script_setup_true_lang-BP64ofif.js";
8
- import { F as Ne } from "./FmAdminBadge-OuaM7QdH.js";
6
+ import { a as Ze, b as Ge, c as We, u as $e } from "./index-CNxvakYX.js";
7
+ import { _ as et, F as tt } from "./FmUnitInput.vue_vue_type_script_setup_true_lang-9s0vqpVr.js";
8
+ import { F as Ne } from "./FmAdminBadge-BodsgRyK.js";
9
9
  const nt = "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
  var De = { exports: {} };
11
11
  (function(C, y) {
@@ -1,4 +1,4 @@
1
- import { _ as f } from "./InventoryBindingForm.vue_vue_type_script_setup_true_lang--Fj_i7AQ.js";
1
+ import { _ as f } from "./InventoryBindingForm.vue_vue_type_script_setup_true_lang-BCRie802.js";
2
2
  export {
3
3
  f as default
4
4
  };
@@ -1,7 +1,7 @@
1
1
  import { defineComponent as ee, computed as _, reactive as ne, resolveComponent as k, openBlock as r, createElementBlock as p, createVNode as y, withCtx as U, createElementVNode as n, toDisplayString as m, unref as i, createBlock as B, createCommentVNode as v, Fragment as E, renderList as C, nextTick as oe } from "vue";
2
- import { a as te, X as le, b5 as ie, j as h, b6 as N, V as G, T as se, F as de } from "./app-CC8HdBWr.js";
3
- import { u as re } from "./use-inventory-binding-dialog-BZSFmbQ-.js";
4
- import { _ as ae, c as ue, d as me } from "./FmUnitInput.vue_vue_type_script_setup_true_lang-BP64ofif.js";
2
+ import { a as te, X as le, b5 as ie, j as h, b6 as N, V as G, T as se, F as de } from "./app-D7pUBlkb.js";
3
+ import { u as re } from "./use-inventory-binding-dialog-nf05eODU.js";
4
+ import { _ as ae, c as ue, d as me } from "./FmUnitInput.vue_vue_type_script_setup_true_lang-9s0vqpVr.js";
5
5
  import { useI18n as ce } from "@feedmepos/mf-common";
6
6
  const pe = { class: "flex flex-col gap-24" }, ye = { class: "flex flex-col gap-16" }, fe = { class: "flex items-center" }, ve = { class: "flex-1 fm-typo-en-title-sm-600" }, be = { class: "flex flex-col" }, ge = { class: "flex py-8 px-12 border-b border-fm-color-neutral-gray-200 bg-fm-color-neutral-gray-100 h-[44px] items-center" }, _e = { class: "fm-typo-en-body-md-600 text-fm-color-typo-secondary" }, xe = { class: "flex flex-col w-full border-b border-fm-color-neutral-gray-100" }, he = {
7
7
  class: "flex items-center",
@@ -1,7 +1,7 @@
1
1
  import { defineComponent as l, resolveComponent as m, openBlock as c, 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-CC8HdBWr.js";
4
+ import { F as r } from "./app-D7pUBlkb.js";
5
5
  const w = /* @__PURE__ */ l({
6
6
  __name: "InventoryBindingSummary",
7
7
  props: {
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as V, computed as w, ref as h, watch as u, resolveComponent as i, openBlock as F, createBlock as g, withCtx as d, createVNode as A, createElementVNode as k, normalizeClass as K } from "vue";
2
- import { T as s } from "./app-CC8HdBWr.js";
2
+ import { T as s } from "./app-D7pUBlkb.js";
3
3
  const T = ["value", "disabled"], B = /* @__PURE__ */ V({
4
4
  __name: "NumberPrecisionInput",
5
5
  props: {
@@ -1,4 +1,4 @@
1
- import { aH as u, aI as _, a3 as h, u as F } from "./app-CC8HdBWr.js";
1
+ import { aH as u, aI as _, a3 as h, u as F } from "./app-D7pUBlkb.js";
2
2
  import { useCoreStore as y } from "@feedmepos/mf-common";
3
3
  import { ref as v, defineComponent as k, resolveComponent as l, openBlock as g, createElementBlock as S, renderSlot as x, createVNode as m, withCtx as I } from "vue";
4
4
  function O(e, t) {
@@ -1,10 +1,20 @@
1
- import { defineComponent as Q, ref as z, computed as r, resolveComponent as s, openBlock as B, createBlock as I, unref as v, createSlots as X, withCtx as c, createElementVNode as h, normalizeClass as Z, createVNode as n, normalizeStyle as ee, Teleport as te, h as f } from "vue";
2
- import { aB as oe, u as ne, a as ae, b0 as se, B as le, _ as ie, a4 as H } from "./app-CC8HdBWr.js";
3
- import { useBreakpoints as re, useDialog as ce, useSnackbar as ue, components as R } from "@feedmepos/ui-library";
4
- const me = { class: "flex flex-col py-8" }, pe = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, de = { class: "fm-typo-en-body-lg-600 text-fm-color-typo-primary" }, fe = /* @__PURE__ */ Q({
1
+ import { defineComponent as Q, ref as D, computed as c, watch as X, resolveComponent as l, openBlock as W, createBlock as z, unref as h, createSlots as Z, withCtx as u, createElementVNode as f, normalizeClass as ee, createVNode as a, normalizeStyle as te, Teleport as oe, h as g } from "vue";
2
+ import { aB as ne, u as ae, a as se, b0 as le, B as ie, _ as re, a4 as B } from "./app-D7pUBlkb.js";
3
+ import { useBreakpoints as ce, useDialog as ue, useSnackbar as me, components as H } from "@feedmepos/ui-library";
4
+ const pe = { class: "flex flex-col py-8" }, de = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, ye = { class: "fm-typo-en-body-lg-600 text-fm-color-typo-primary" }, ge = /* @__PURE__ */ Q({
5
5
  __name: "PublishView",
6
6
  setup(be) {
7
- const { t } = oe(), { breakpoints: x } = re(), l = ne(), A = ae(), S = se(), g = z(!1), u = r(() => A.state.inventory.updatedAt ? A.state.inventory.updatedAt : null), Y = le(), C = ce(), N = ue(), $ = r(() => l.locations), _ = r(() => x.value.xs || x.value.sm), U = r(() => _.value ? 10 : 20), q = r(() => [
7
+ const { t } = ne(), { breakpoints: x } = ce(), n = ae(), A = se(), S = le(), i = D(!1), m = c(() => A.state.inventory.updatedAt ? A.state.inventory.updatedAt : null), R = ie(), C = ue(), Y = me(), N = c(() => n.locationsWithInventory), _ = c(() => x.value.xs || x.value.sm), $ = c(() => _.value ? 10 : 20);
8
+ X(
9
+ () => n._locations,
10
+ async () => {
11
+ var e;
12
+ i.value = !0, (!n._locationWithInventory || ((e = n._locationWithInventory) == null ? void 0 : e.length) === 0) && await n.readLocationsWithInventory(), i.value = !1;
13
+ },
14
+ { immediate: !0 }
15
+ // Optional: triggers the watcher immediately on mount
16
+ );
17
+ const U = c(() => [
8
18
  {
9
19
  label: t("inventory.common.refresh"),
10
20
  value: "refresh",
@@ -12,7 +22,7 @@ const me = { class: "flex flex-col py-8" }, pe = { class: "fm-typo-en-body-md-40
12
22
  },
13
23
  { label: t("inventory.publish.actions.publishAll"), value: "publish", isPrimary: !0 }
14
24
  ]);
15
- async function E(e) {
25
+ async function q(e) {
16
26
  switch (e) {
17
27
  case "publish":
18
28
  C.open({
@@ -21,21 +31,21 @@ const me = { class: "flex flex-col py-8" }, pe = { class: "fm-typo-en-body-md-40
21
31
  primaryActions: { text: t("inventory.common.publish"), close: !0 },
22
32
  secondaryActions: { text: "Cancel", close: !0 }
23
33
  }).onPrimary(async () => {
24
- await S.publishAllInventory(), await l.readLocations();
34
+ await S.publishAllInventory(), await n.readLocationsWithInventory();
25
35
  });
26
36
  break;
27
37
  case "refresh":
28
- g.value = !0, await l.readLocations(), g.value = !1;
38
+ i.value = !0, await n.readLocationsWithInventory(), i.value = !1;
29
39
  break;
30
40
  }
31
41
  }
32
- const w = z(!1), K = [
42
+ const w = D(!1), E = [
33
43
  {
34
44
  value: "publish",
35
45
  label: t("inventory.publish.actions.publishAll")
36
46
  }
37
47
  ];
38
- function W(e) {
48
+ function K(e) {
39
49
  switch (w.value = !1, e) {
40
50
  case "publish":
41
51
  console.log("publish all");
@@ -47,7 +57,7 @@ const me = { class: "flex flex-col py-8" }, pe = { class: "fm-typo-en-body-md-40
47
57
  header: () => t("inventory.publish.columns.type"),
48
58
  enableSorting: !0,
49
59
  cell(e) {
50
- return f(R.FmChip, {
60
+ return g(H.FmChip, {
51
61
  color: "primary",
52
62
  label: e.row.original.type
53
63
  });
@@ -64,8 +74,8 @@ const me = { class: "flex flex-col py-8" }, pe = { class: "fm-typo-en-body-md-40
64
74
  header: () => t("inventory.publish.columns.version"),
65
75
  enableSorting: !0,
66
76
  cell(e) {
67
- var o, a;
68
- return (o = e.row.original.inventory) != null && o.updatedAt ? H((a = e.row.original.inventory) == null ? void 0 : a.updatedAt) : "";
77
+ var o, s;
78
+ return (o = e.row.original.inventory) != null && o.updatedAt ? B((s = e.row.original.inventory) == null ? void 0 : s.updatedAt) : "";
69
79
  }
70
80
  },
71
81
  {
@@ -73,17 +83,17 @@ const me = { class: "flex flex-col py-8" }, pe = { class: "fm-typo-en-body-md-40
73
83
  header: () => t("inventory.publish.columns.status"),
74
84
  enableSorting: !0,
75
85
  cell(e) {
76
- var p;
77
- if (!u.value)
86
+ var d;
87
+ if (!m.value)
78
88
  return "";
79
- const o = ((p = e.row.original.inventory) == null ? void 0 : p.updatedAt) == u.value, a = e.row.original.dbName, m = e.row.original.type === "warehouse";
80
- return f(
89
+ const o = ((d = e.row.original.inventory) == null ? void 0 : d.updatedAt) == m.value, s = e.row.original.dbName, p = e.row.original.type === "warehouse";
90
+ return g(
81
91
  "div",
82
92
  {
83
93
  class: "flex items-center gap-8"
84
94
  },
85
95
  [
86
- f(
96
+ g(
87
97
  "div",
88
98
  {
89
99
  class: [
@@ -93,7 +103,7 @@ const me = { class: "flex flex-col py-8" }, pe = { class: "fm-typo-en-body-md-40
93
103
  },
94
104
  t(o ? "inventory.publish.status.published" : "inventory.publish.status.outdated")
95
105
  ),
96
- !o && !m ? f(R.FmButton, {
106
+ !o && !p ? g(H.FmButton, {
97
107
  class: "tertiary",
98
108
  variant: "secondary",
99
109
  icon: "sync",
@@ -104,7 +114,7 @@ const me = { class: "flex flex-col py-8" }, pe = { class: "fm-typo-en-body-md-40
104
114
  primaryActions: { text: t("inventory.common.publish"), close: !0 },
105
115
  secondaryActions: { text: "Cancel", close: !0 }
106
116
  }).onPrimary(async () => {
107
- await S.publishInventory(a.split("_")[1]), await l.readLocations(), N.open({ message: "Publish request submitted", type: "success" });
117
+ await S.publishInventory(s.split("_")[1]), await n.readLocations(), Y.open({ message: "Publish request submitted", type: "success" });
108
118
  });
109
119
  }
110
120
  }) : null
@@ -132,15 +142,15 @@ const me = { class: "flex flex-col py-8" }, pe = { class: "fm-typo-en-body-md-40
132
142
  // }
133
143
  ];
134
144
  return (e, o) => {
135
- const a = s("FmChip"), m = s("FlexRender"), p = s("TableActionableRow"), G = s("FmTable"), J = s("FmCollapsibleTabs"), O = s("FmBottomSheet");
136
- return B(), I(ie, {
137
- title: v(t)("inventory.publish.title"),
138
- actions: q.value,
139
- "onClick:action": E
140
- }, X({
141
- default: c(() => [
142
- h("div", {
143
- class: Z([
145
+ const s = l("FmChip"), p = l("FlexRender"), d = l("TableActionableRow"), G = l("FmTable"), J = l("FmCollapsibleTabs"), O = l("FmBottomSheet");
146
+ return W(), z(re, {
147
+ title: h(t)("inventory.publish.title"),
148
+ actions: U.value,
149
+ "onClick:action": q
150
+ }, Z({
151
+ default: u(() => [
152
+ f("div", {
153
+ class: ee([
144
154
  "flex flex-col gap-8 max-h-full",
145
155
  {
146
156
  "p-0": _.value,
@@ -148,30 +158,30 @@ const me = { class: "flex flex-col py-8" }, pe = { class: "fm-typo-en-body-md-40
148
158
  }
149
159
  ])
150
160
  }, [
151
- n(G, {
152
- style: ee(v(Y).tableHeight),
161
+ a(G, {
162
+ style: te(h(R).tableHeight),
153
163
  "column-defs": j,
154
- "row-data": $.value,
155
- loading: !v(l)._currentLocation || g.value,
164
+ "row-data": N.value,
165
+ loading: !h(n)._currentLocation || i.value,
156
166
  "loading-text": "Loading",
157
- "page-size": U.value
167
+ "page-size": $.value
158
168
  }, {
159
- "list-row": c((i) => [
160
- n(p, { row: i }, {
161
- default: c((d) => {
162
- var F, k, M, b, P, L, T, V, y, D;
169
+ "list-row": u((r) => [
170
+ a(d, { row: r }, {
171
+ default: u((y) => {
172
+ var F, I, k, b, M, L, P, T, v, V;
163
173
  return [
164
- h("div", me, [
165
- h("div", pe, [
166
- n(m, {
167
- render: (M = (k = (F = d.code) == null ? void 0 : F.column) == null ? void 0 : k.columnDef) == null ? void 0 : M.cell,
168
- props: (P = (b = d.code) == null ? void 0 : b.getContext) == null ? void 0 : P.call(b)
174
+ f("div", pe, [
175
+ f("div", de, [
176
+ a(p, {
177
+ render: (k = (I = (F = y.code) == null ? void 0 : F.column) == null ? void 0 : I.columnDef) == null ? void 0 : k.cell,
178
+ props: (M = (b = y.code) == null ? void 0 : b.getContext) == null ? void 0 : M.call(b)
169
179
  }, null, 8, ["render", "props"])
170
180
  ]),
171
- h("div", de, [
172
- n(m, {
173
- render: (V = (T = (L = d.name) == null ? void 0 : L.column) == null ? void 0 : T.columnDef) == null ? void 0 : V.cell,
174
- props: (D = (y = d.name) == null ? void 0 : y.getContext) == null ? void 0 : D.call(y)
181
+ f("div", ye, [
182
+ a(p, {
183
+ render: (T = (P = (L = y.name) == null ? void 0 : L.column) == null ? void 0 : P.columnDef) == null ? void 0 : T.cell,
184
+ props: (V = (v = y.name) == null ? void 0 : v.getContext) == null ? void 0 : V.call(v)
175
185
  }, null, 8, ["render", "props"])
176
186
  ])
177
187
  ])
@@ -183,17 +193,17 @@ const me = { class: "flex flex-col py-8" }, pe = { class: "fm-typo-en-body-md-40
183
193
  _: 1
184
194
  }, 8, ["style", "row-data", "loading", "page-size"])
185
195
  ], 2),
186
- (B(), I(te, { to: "body" }, [
187
- n(O, {
196
+ (W(), z(oe, { to: "body" }, [
197
+ a(O, {
188
198
  "dismiss-away": "",
189
199
  modelValue: w.value,
190
- "onUpdate:modelValue": o[1] || (o[1] = (i) => w.value = i)
200
+ "onUpdate:modelValue": o[1] || (o[1] = (r) => w.value = r)
191
201
  }, {
192
- default: c(() => [
193
- n(J, {
202
+ default: u(() => [
203
+ a(J, {
194
204
  class: "pb-8",
195
- items: K,
196
- "onUpdate:modelValue": o[0] || (o[0] = (i) => W(i))
205
+ items: E,
206
+ "onUpdate:modelValue": o[0] || (o[0] = (r) => K(r))
197
207
  })
198
208
  ]),
199
209
  _: 1
@@ -202,12 +212,12 @@ const me = { class: "flex flex-col py-8" }, pe = { class: "fm-typo-en-body-md-40
202
212
  ]),
203
213
  _: 2
204
214
  }, [
205
- u.value ? {
215
+ m.value ? {
206
216
  name: "headerInfo",
207
- fn: c(() => [
208
- n(a, {
217
+ fn: u(() => [
218
+ a(s, {
209
219
  variant: "info",
210
- label: `Latest: ${v(H)(u.value)}`
220
+ label: `Latest: ${h(B)(m.value)}`
211
221
  }, null, 8, ["label"])
212
222
  ]),
213
223
  key: "0"
@@ -217,5 +227,5 @@ const me = { class: "flex flex-col py-8" }, pe = { class: "fm-typo-en-body-md-40
217
227
  }
218
228
  });
219
229
  export {
220
- fe as default
230
+ ge as default
221
231
  };
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as b, computed as m, ref as x, onMounted as f, openBlock as u, createElementBlock as n, createElementVNode as t, toDisplayString as e, normalizeStyle as g, createTextVNode as i, Fragment as o, createCommentVNode as p, renderList as v } from "vue";
2
2
  import { useRoute as w } from "vue-router";
3
- import { aA as y, ao as k } from "./app-CC8HdBWr.js";
3
+ import { aA as y, ao as k } from "./app-D7pUBlkb.js";
4
4
  const A = { class: "purchase-box" }, C = { valign: "bottom" }, R = { class: "title" }, N = { class: "text-right" }, O = { class: "header" }, P = { class: "sub-header" }, D = { class: "caption" }, E = { class: "address" }, S = { class: "text-right" }, T = { class: "sub-header" }, F = { class: "address" }, q = { class: "purchase-body" }, L = { class: "text-left" }, U = { class: "text-left" }, V = { class: "text-right" }, B = { class: "text-right" }, H = { class: "text-right" }, I = { style: { "padding-top": "30px" } }, M = { valign: "bottom" }, z = { class: "header" }, J = { class: "caption" }, Q = {
5
5
  class: "text-left",
6
6
  style: { width: "20%" }
@@ -1,15 +1,15 @@
1
1
  import { reactive as gt, onMounted as Ye, watch as ge, computed as N, h as L, defineComponent as ce, openBlock as S, createElementBlock as T, Fragment as de, renderList as Se, createElementVNode as n, toDisplayString as M, unref as s, resolveComponent as I, createVNode as y, withCtx as A, createCommentVNode as j, ref as q, createBlock as J, normalizeClass as W, normalizeStyle as _t, createTextVNode as Ie, nextTick as $t, mergeProps as Ze, isRef as xe, createSlots as It, Teleport as Tt, normalizeProps as Dt, guardReactiveProps as Vt } from "vue";
2
- import { b as Ue, Q as Ge, c as We, m as Me, j as Ce, aa as Qe, T as Pt, ay as Rt, A as qe, M as At, n as ht, ah as Je, G as fe, aq as Et, az as Ot, aA as Mt, a5 as qt, aB as Ut, K as kt, u as et, a as tt, aC as Nt, aD as Bt, a9 as zt, a0 as Lt, aE as Ht, E as xt, a2 as jt, e as Oe, aF as Qt, x as Yt, y as Kt, z as Xt, aG as je, ab as ft, B as Zt, N as Gt, H as Wt, _ as Jt, C as es, W as vt } from "./app-CC8HdBWr.js";
3
- import { u as st, a as ts, P as Xe, b as ss, _ as os, g as as } from "./TransferDetails.vue_vue_type_script_setup_true_lang-Byg5CM3t.js";
4
- import { _ as Ct, u as ns, i as ls, e as rs } from "./PremiumBadge.vue_vue_type_script_setup_true_lang-1lEEWdvC.js";
2
+ import { b as Ue, Q as Ge, c as We, m as Me, j as Ce, aa as Qe, T as Pt, ay as Rt, A as qe, M as At, n as ht, ah as Je, G as fe, aq as Et, az as Ot, aA as Mt, a5 as qt, aB as Ut, K as kt, u as et, a as tt, aC as Nt, aD as Bt, a9 as zt, a0 as Lt, aE as Ht, E as xt, a2 as jt, e as Oe, aF as Qt, x as Yt, y as Kt, z as Xt, aG as je, ab as ft, B as Zt, N as Gt, H as Wt, _ as Jt, C as es, W as vt } from "./app-D7pUBlkb.js";
3
+ import { u as st, a as ts, P as Xe, b as ss, _ as os, g as as } from "./TransferDetails.vue_vue_type_script_setup_true_lang-CetqKDir.js";
4
+ import { _ as Ct, u as ns, i as ls, e as rs } from "./PremiumBadge.vue_vue_type_script_setup_true_lang-BldOmlfF.js";
5
5
  import { u as is } from "./useTabStorage-BkIVScW_.js";
6
6
  import { useBreakpoints as ot, components as be, FmButtonVariant as us, useSnackbar as Te, useDialog as ds, useProxiedModel as St } from "@feedmepos/ui-library";
7
- import { P as ne, u as wt } from "./format-unit-display-CSm04VOB.js";
8
- import { _ as cs, F as ms, a as ps, b as fs } from "./FmUnitInput.vue_vue_type_script_setup_true_lang-BP64ofif.js";
9
- import { c as $e, u as vs, _ as ys } from "./FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-C0WlNY6z.js";
7
+ import { P as ne, u as wt } from "./format-unit-display-BcBpuzq_.js";
8
+ import { _ as cs, F as ms, a as ps, b as fs } from "./FmUnitInput.vue_vue_type_script_setup_true_lang-9s0vqpVr.js";
9
+ import { c as $e, u as vs, _ as ys } from "./FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-CsjT5AZ0.js";
10
10
  import { useI18n as _e } from "@feedmepos/mf-common";
11
- import "./FmMultiselectDialog-D-Z6qkvj.js";
12
- import { u as at } from "./supplier-DG2eDyhs.js";
11
+ import "./FmMultiselectDialog-sRLyNp7M.js";
12
+ import { u as at } from "./supplier-Bi1zyqXc.js";
13
13
  import { _ as bs } from "./PreviewBadge.vue_vue_type_script_setup_true_lang-CRZiQHjx.js";
14
14
  import "./array-Ca8T3f_G.js";
15
15
  var ee = /* @__PURE__ */ ((g) => (g.Code = "Code", g.Name = "Name", g.TemplateName = "TemplateName", g.Amount = "Amount", g.Cost = "Cost", g.TotalCost = "TotalCost", g.Delete = "Delete", g))(ee || {});
@@ -1,11 +1,11 @@
1
1
  import { defineComponent as K, ref as E, onMounted as re, resolveComponent as $, openBlock as F, createElementBlock as B, Fragment as ie, createElementVNode as h, toDisplayString as ue, createVNode as g, createCommentVNode as O, computed as k, watch as ce, createBlock as N, withCtx as P, unref as b, isRef as ee, normalizeClass as de, normalizeStyle as me, Teleport as pe, normalizeProps as fe, guardReactiveProps as ve } from "vue";
2
- import { a as A, e as V, f as Q, S as ye, h as ge, D as te, i as Y, j as U, F as H, m as be, U as _e, A as we, c as Re, q as ne, r as he, v as xe, s as Se, u as Ve, B as Ce, _ as Ee, C as Fe, E as $e, G as oe } from "./app-CC8HdBWr.js";
2
+ import { a as A, e as V, f as Q, S as ye, h as ge, D as te, i as Y, j as U, F as H, m as be, U as _e, A as we, c as Re, q as ne, r as he, v as xe, s as Se, u as Ve, B as Ce, _ as Ee, C as Fe, E as $e, G as oe } from "./app-D7pUBlkb.js";
3
3
  import { useDialog as ke, useSnackbar as se, useProxiedModel as ae, useBreakpoints as Ie } from "@feedmepos/ui-library";
4
4
  import { i as De, _ as Ae } from "./is-linked-ingredient-error-fJ2TJb3z.js";
5
- import { _ as le } from "./IngredientBindedItem.vue_vue_type_script_setup_true_lang-YDsWAKfK.js";
5
+ import { _ as le } from "./IngredientBindedItem.vue_vue_type_script_setup_true_lang-DYxW0unH.js";
6
6
  import { defineStore as Be, storeToRefs as Pe } from "pinia";
7
7
  import { useI18n as q } from "@feedmepos/mf-common";
8
- import { _ as Te } from "./InventoryBindingForm.vue_vue_type_script_setup_true_lang--Fj_i7AQ.js";
8
+ import { _ as Te } from "./InventoryBindingForm.vue_vue_type_script_setup_true_lang-BCRie802.js";
9
9
  import { _ as Ue } from "./FmCustomAttribute.vue_vue_type_script_setup_true_lang-D-IWRjRD.js";
10
10
  const Me = {
11
11
  key: 0,
@@ -1,17 +1,17 @@
1
1
  import { defineComponent as ce, ref as N, computed as R, resolveComponent as D, openBlock as x, createBlock as L, withCtx as I, createElementVNode as e, normalizeClass as ge, toDisplayString as h, createVNode as g, createElementBlock as O, Fragment as ne, renderList as re, unref as i, h as he, watch as xe, isRef as Ue, createCommentVNode as se, reactive as it, mergeModels as Ye, useModel as ut, onMounted as Ee, createTextVNode as ue, normalizeStyle as Ze, Teleport as ct, normalizeProps as Ae, mergeProps as Ve } from "vue";
2
- import { u as pe, W as dt, f as He, h as mt, a as Pe, F as Ge, X as pt, Y as Ie, j as me, P as ft, t as Se, V as Fe, A as vt, M as yt, T as ve, Z as _t, $ as oe, a0 as ht, a1 as We, m as kt, a2 as bt, a3 as gt, a4 as xt, a5 as St, a6 as Ce, a7 as Ft, a8 as et, Q as X, a9 as wt, s as tt, aa as ke, ab as $t, ac as At, o as Be, l as Ke, p as Vt, c as Ct, ad as Bt, ae as Mt, af as Dt, ag as jt, ah as It, B as Tt, _ as Ut, C as Et, E as Ht, G as qe } from "./app-CC8HdBWr.js";
3
- import { u as Re, a as ye } from "./stock-gopm397Q.js";
4
- import { g as we } from "./decimal-0r_YO6d7.js";
5
- import { e as Pt, u as nt, i as ot, _ as Xe } from "./PremiumBadge.vue_vue_type_script_setup_true_lang-1lEEWdvC.js";
2
+ import { u as pe, W as dt, f as He, h as mt, a as Pe, F as Ge, X as pt, Y as Ie, j as me, P as ft, t as Se, V as Fe, A as vt, M as yt, T as ve, Z as _t, $ as oe, a0 as ht, a1 as We, m as kt, a2 as bt, a3 as gt, a4 as xt, a5 as St, a6 as Ce, a7 as Ft, a8 as et, Q as X, a9 as wt, s as tt, aa as ke, ab as $t, ac as At, o as Be, l as Ke, p as Vt, c as Ct, ad as Bt, ae as Mt, af as Dt, ag as jt, ah as It, B as Tt, _ as Ut, C as Et, E as Ht, G as qe } from "./app-D7pUBlkb.js";
3
+ import { u as Re, a as ye } from "./stock-BipLzZlr.js";
4
+ import { g as we } from "./decimal-Dt_QQfvw.js";
5
+ import { e as Pt, u as nt, i as ot, _ as Xe } from "./PremiumBadge.vue_vue_type_script_setup_true_lang-BldOmlfF.js";
6
6
  import { _ as Te, S as Me, g as st } from "./StockForecast.vue_vue_type_style_index_0_lang-KLXSWvo5.js";
7
7
  import { _ as Rt } from "./PreviewBadge.vue_vue_type_script_setup_true_lang-CRZiQHjx.js";
8
8
  import { useI18n as de, useCoreStore as at } from "@feedmepos/mf-common";
9
9
  import { useSnackbar as _e, useDialog as Oe, useProxiedModel as Ne, useBreakpoints as Ot } from "@feedmepos/ui-library";
10
10
  import { defineStore as Nt } from "pinia";
11
- import { u as Lt } from "./use-inventory-binding-dialog-BZSFmbQ-.js";
12
- import { _ as zt } from "./NumberPrecisionInput.vue_vue_type_script_setup_true_lang-CsAq9h0J.js";
11
+ import { u as Lt } from "./use-inventory-binding-dialog-nf05eODU.js";
12
+ import { _ as zt } from "./NumberPrecisionInput.vue_vue_type_script_setup_true_lang-CegSNvou.js";
13
13
  import { E as Yt } from "./empty-placeholder-wf6-BWE8.js";
14
- import { F as Gt } from "./FmAdminBadge-OuaM7QdH.js";
14
+ import { F as Gt } from "./FmAdminBadge-BodsgRyK.js";
15
15
  import "./array-Ca8T3f_G.js";
16
16
  var be = /* @__PURE__ */ ((y) => (y.History = "History", y.Convert = "Convert", y.Adjust = "Adjust", y))(be || {});
17
17
  const Wt = [
@@ -1,10 +1,10 @@
1
1
  import { defineComponent as de, mergeModels as Bd, computed as x, useModel as Gd, resolveComponent as A, openBlock as N, createElementBlock as I, createElementVNode as b, createVNode as P, withCtx as L, toDisplayString as w, unref as c, Fragment as Q, renderList as te, ref as M, createBlock as Y, createCommentVNode as X, isRef as Qe, normalizeClass as ee, createTextVNode as Hd, watch as Od, createSlots as jd, normalizeStyle as Kd, Teleport as Wd } from "vue";
2
- import { u as oe } from "./supplier-DG2eDyhs.js";
3
- import { b as we, h as Yd, D as ed, i as se, f as Ne, a as Fd, o as dd, p as td, k as Xd, a2 as Zd, w as wd, u as ye, m as K, c as ve, e as U, r as Ad, s as zd, v as Td, x as qd, y as Jd, z as Qd, B as et, _ as dt, C as tt, E as rt, G as ue } from "./app-CC8HdBWr.js";
2
+ import { u as oe } from "./supplier-Bi1zyqXc.js";
3
+ import { b as we, h as Yd, D as ed, i as se, f as Ne, a as Fd, o as dd, p as td, k as Xd, a2 as Zd, w as wd, u as ye, m as K, c as ve, e as U, r as Ad, s as zd, v as Td, x as qd, y as Jd, z as Qd, B as et, _ as dt, C as tt, E as rt, G as ue } from "./app-D7pUBlkb.js";
4
4
  import { useI18n as z, useCoreStore as ge } from "@feedmepos/mf-common";
5
5
  import { useDialog as Ae, useSnackbar as he, useProxiedModel as rd, useDialogChild as nt, useBreakpoints as ot } from "@feedmepos/ui-library";
6
6
  import { _ as at } from "./PreviewBadge.vue_vue_type_script_setup_true_lang-CRZiQHjx.js";
7
- import { _ as $t } from "./FmUnitInput.vue_vue_type_script_setup_true_lang-BP64ofif.js";
7
+ import { _ as $t } from "./FmUnitInput.vue_vue_type_script_setup_true_lang-9s0vqpVr.js";
8
8
  import { defineStore as it } from "pinia";
9
9
  function lt(e, d) {
10
10
  const { t } = z(), r = we();