@feedmepos/mf-inventory-portal 1.0.21 → 1.0.22-dev.1

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 (50) hide show
  1. package/dist/{App-Dm1dub7v.js → App-DKpBoETt.js} +2 -2
  2. package/dist/{ApprovalView-DZK5guKS.js → ApprovalView-DUELMVOt.js} +2 -2
  3. package/dist/{BindingsDialog-BL2jOxN4.js → BindingsDialog-BbwaoH1V.js} +2 -2
  4. package/dist/{BindingsPicker-G1SdBXsq.js → BindingsPicker-Co91nBu5.js} +1 -1
  5. package/dist/{BindingsTable-Coy6_ryj.js → BindingsTable-CfGpcJbV.js} +1 -1
  6. package/dist/{ClosingDraftView-RTjmn1uK.js → ClosingDraftView-CtDu4gYg.js} +2 -2
  7. package/dist/{ClosingTemplateView-DkX8edyP.js → ClosingTemplateView-9ugr-E5Y.js} +2 -2
  8. package/dist/{DeliveryOrderPrintPreview-j-DgrDiv.js → DeliveryOrderPrintPreview-D4wDJKJM.js} +1 -1
  9. package/dist/{FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-BL8MG9yR.js → FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-C6_Ua9qb.js} +3 -3
  10. package/dist/{FmMultiselectDialog-C2FfQXZp.js → FmMultiselectDialog-fRcvT8PM.js} +1 -1
  11. package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-D4dnq4rA.js → FmUnitInput.vue_vue_type_script_setup_true_lang-4xfely-0.js} +1 -1
  12. package/dist/{IngredientBindedItem.vue_vue_type_script_setup_true_lang-DXbFhLpK.js → IngredientBindedItem.vue_vue_type_script_setup_true_lang-DCLepeXM.js} +1 -1
  13. package/dist/{IngredientGroupView-DHbQCRy_.js → IngredientGroupView-BKMbP_tk.js} +2 -2
  14. package/dist/{IngredientsView-CF-wb-6-.js → IngredientsView-DZ6GaNmh.js} +5 -5
  15. package/dist/{IntegrationView-X5yvur-x.js → IntegrationView-Cdxe3ek6.js} +5 -5
  16. package/dist/{InventoryBindingForm-CeJZHDY0.js → InventoryBindingForm-Df2xDcAe.js} +1 -1
  17. package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-9hirHThb.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-uEO5JKUW.js} +3 -3
  18. package/dist/{InventoryBindingSummary-CBg7KhPi.js → InventoryBindingSummary-tR7tgq-a.js} +1 -1
  19. package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-BSVs7T4a.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-CPk_7mxH.js} +1 -1
  20. package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-ChZwsyJM.js → PremiumBadge.vue_vue_type_script_setup_true_lang-DV0sQIh_.js} +37 -37
  21. package/dist/{PublishView-BjvKb7f-.js → PublishView-CZKgIE-X.js} +2 -2
  22. package/dist/{PurchaseOrderPrintPreview-CbAMXMPU.js → PurchaseOrderPrintPreview-DSluQZDi.js} +1 -1
  23. package/dist/ReceiveRequestView-Ldz7vr1u.js +2644 -0
  24. package/dist/{RecipeView-BoR36rGq.js → RecipeView-CUJIeaWu.js} +4 -4
  25. package/dist/{StockView-DcHopPZO.js → StockView-CBtAZjjj.js} +7 -7
  26. package/dist/{SupplierView-V67QXaLX.js → SupplierView-Bjb0ygav.js} +4 -4
  27. package/dist/{TransferDetails.vue_vue_type_script_setup_true_lang-eeL8-QuF.js → TransferDetails.vue_vue_type_script_setup_true_lang-B0tt7ir6.js} +6 -6
  28. package/dist/{TransferTemplateView-DKDeo49Q.js → TransferTemplateView-DN8G_xl8.js} +7 -7
  29. package/dist/{UnitView-BRVRLheN.js → UnitView-C2hi87bo.js} +3 -3
  30. package/dist/{WarehouseView-tRg5Hn4L.js → WarehouseView-DSpjmL-N.js} +1 -1
  31. package/dist/api/stock-estimate.d.ts +1 -1
  32. package/dist/{app-82JEull2.js → app-OXMxNgrT.js} +215 -215
  33. package/dist/app.js +1 -1
  34. package/dist/{decimal-D-zH_vXe.js → decimal-BHadyOEY.js} +1 -1
  35. package/dist/{feature-UG6T1t8f.js → feature-B9uo-iYZ.js} +2 -2
  36. package/dist/{format-unit-display-CIPAWL-6.js → format-unit-display-Cji-r-K6.js} +2 -2
  37. package/dist/{index-BDC93VCL.js → index-B5xhf4x0.js} +1 -1
  38. package/dist/{index-B7w4ky-g.js → index-B72H3Oxs.js} +2 -2
  39. package/dist/{stock-Bq9xHemt.js → stock-BpE4s385.js} +1 -1
  40. package/dist/stores/stock-estimate.d.ts +1 -1
  41. package/dist/{supplier-BrZdgPMN.js → supplier-CB_uu-6p.js} +2 -2
  42. package/dist/tsconfig.app.tsbuildinfo +1 -1
  43. package/dist/types/forecast.d.ts +6 -0
  44. package/dist/{use-ingredient-select-dialog-Dzy7PO1j.js → use-ingredient-select-dialog-C9dRsaoW.js} +1 -1
  45. package/dist/{use-inventory-binding-dialog-DT4t22Eb.js → use-inventory-binding-dialog-BNHELUOB.js} +1 -1
  46. package/dist/views/receive-request/components/transfer-form/components/ForecastStock.vue.d.ts +9 -0
  47. package/dist/views/receive-request/components/transfer-form/composables/use-transfer-items.d.ts +2 -0
  48. package/dist/{vue-i18n-D5ETg5F3.js → vue-i18n-DsGf7G_F.js} +527 -527
  49. package/package.json +3 -3
  50. package/dist/ReceiveRequestView-ihHtocTf.js +0 -2578
@@ -1,8 +1,8 @@
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 p, 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, g as s, c as W } from "./app-82JEull2.js";
2
+ import { u as M, a as D, b as H, R as e, g as s, c as W } from "./app-OXMxNgrT.js";
3
3
  import { useCoreStore as A, useI18n as B } from "@feedmepos/mf-common";
4
4
  import { useRouter as L, useRoute as K } from "vue-router";
5
- import { u as O } from "./feature-UG6T1t8f.js";
5
+ import { u as O } from "./feature-B9uo-iYZ.js";
6
6
  import { u as $ } from "./useTabStorage-BkIVScW_.js";
7
7
  import { u as Q } from "./googlemap-Dm8ERVai.js";
8
8
  import "./array-Ca8T3f_G.js";
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as le, ref as D, watch as ue, computed as d, resolveComponent as ie, openBlock as x, createBlock as W, unref as n, withCtx as k, createElementVNode as i, normalizeClass as ce, createVNode as u, normalizeStyle as pe, toDisplayString as de, createElementBlock as me, createCommentVNode as fe, Teleport as ve, mergeProps as he } from "vue";
2
- import { u as _e, b as ge, aA as b, aL as ye, ad as X, z as De, N as be, H as Oe, _ as Re, B as Se, C as xe, E as O } from "./app-82JEull2.js";
3
- import { a as ke, P as q, b as qe, _ as we } from "./TransferDetails.vue_vue_type_script_setup_true_lang-eeL8-QuF.js";
2
+ import { u as _e, b as ge, aA as b, aL as ye, ad as X, z as De, N as be, H as Oe, _ as Re, B as Se, C as xe, E as O } from "./app-OXMxNgrT.js";
3
+ import { a as ke, P as q, b as qe, _ as we } from "./TransferDetails.vue_vue_type_script_setup_true_lang-B0tt7ir6.js";
4
4
  import { useBreakpoints as Pe } from "@feedmepos/ui-library";
5
5
  import { useI18n as Ne } from "@feedmepos/mf-common";
6
6
  const Te = { class: "flex flex-col py-8" }, Ae = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Ce = { class: "fm-typo-en-body-lg-600 text-fm-color-typo-primary line-clamp-1" }, Le = { class: "fm-typo-en-body-md-400 text-fm-color-typo-primary line-clamp-1" }, Ve = {
@@ -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-9hirHThb.js";
3
- import { a as L, bc as S } from "./app-82JEull2.js";
2
+ import { _ as V } from "./InventoryBindingForm.vue_vue_type_script_setup_true_lang-uEO5JKUW.js";
3
+ import { a as L, bc as S } from "./app-OXMxNgrT.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, bc as x, a1 as z } from "./app-82JEull2.js";
2
+ import { a as M, bc as x, a1 as z } from "./app-OXMxNgrT.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, bc as R } from "./app-82JEull2.js";
2
+ import { F as b, a as P, bc as R } from "./app-OXMxNgrT.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 $e, ref as z, onMounted as Ie, computed as E, resolveComponent as I, openBlock as x, createElementBlock as T, Fragment as K, createTextVNode as pe, createBlock as Q, withCtx as O, createElementVNode as o, toDisplayString as V, unref as h, createVNode as w, createCommentVNode as Z, h as F, reactive as Ze, watch as Qe, isRef as Ue, normalizeClass as ve, renderList as he, normalizeStyle as Ee, Teleport as Je, mergeProps as Xe } from "vue";
2
- import { a2 as et, u as je, ad as tt, ak as at, al as G, l as nt, O as Be, i as H, t as ot, Q as De, q as st, r as rt, s as lt, am as He, an as Le, a8 as ze, ao as ne, ae as ct, aj as ae, $ as Ne, D as Me, h as ke, f as it, e as ut, a as dt, z as mt, _ as ft, B as pt, C as vt, E as we } from "./app-82JEull2.js";
2
+ import { a2 as et, u as je, ad as tt, ak as at, al as G, l as nt, O as Be, i as H, t as ot, Q as De, q as st, r as rt, s as lt, am as He, an as Le, a8 as ze, ao as ne, ae as ct, aj as ae, $ as Ne, D as Me, h as ke, f as it, e as ut, a as dt, z as mt, _ as ft, B as pt, C as vt, E as we } from "./app-OXMxNgrT.js";
3
3
  import { useCoreStore as yt, useI18n as Ve } from "@feedmepos/mf-common";
4
4
  import { useSnackbar as Te, useDialog as gt, useProxiedModel as bt, components as fe, useBreakpoints as ht } from "@feedmepos/ui-library";
5
5
  import { defineStore as Oe, storeToRefs as Dt } from "pinia";
6
- import { a as Ye, u as Ke } from "./stock-Bq9xHemt.js";
6
+ import { a as Ye, u as Ke } from "./stock-BpE4s385.js";
7
7
  import { E as xt } from "./empty-placeholder-wf6-BWE8.js";
8
8
  const Fe = et((n, s) => {
9
9
  function e() {
@@ -1,9 +1,9 @@
1
1
  import { ref as D, h as F, defineComponent as j, resolveComponent as R, openBlock as T, createElementBlock as I, createElementVNode as _, normalizeClass as Y, createTextVNode as Fe, toDisplayString as C, unref as v, createCommentVNode as G, createVNode as $, withCtx as P, Fragment as H, renderList as J, computed as E, watch as Re, createSlots as Pe, 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 { a2 as qe, u as le, ae as Qe, D as Se, h as N, f as Xe, e as Ae, af as oe, r as Ze, ag as Ee, s as Ue, a as ae, b as et, v as tt, w as Ve, x as nt, y as ot, d as z, E as O, J as st, ah as lt, l as at, C as Ne, A as rt, ai as it, aj as ne, z as ct, _ as mt, B as ut } from "./app-82JEull2.js";
2
+ import { a2 as qe, u as le, ae as Qe, D as Se, h as N, f as Xe, e as Ae, af as oe, r as Ze, ag as Ee, s as Ue, a as ae, b as et, v as tt, w as Ve, x as nt, y as ot, d as z, E as O, J as st, ah as lt, l as at, C as Ne, A as rt, ai as it, aj as ne, z as ct, _ as mt, B as ut } from "./app-OXMxNgrT.js";
3
3
  import { useCoreStore as re, useI18n as B } from "@feedmepos/mf-common";
4
4
  import { useDialogChild as dt, useSnackbar as Z, useDialog as ie, FmButtonVariant as De, components as L, useProxiedModel as pt, useBreakpoints as ft } from "@feedmepos/ui-library";
5
5
  import { defineStore as Be, storeToRefs as Le } from "pinia";
6
- import { u as vt } from "./use-ingredient-select-dialog-Dzy7PO1j.js";
6
+ import { u as vt } from "./use-ingredient-select-dialog-C9dRsaoW.js";
7
7
  const ee = qe((i, o) => {
8
8
  function s() {
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 { av as y, ai as w } from "./app-82JEull2.js";
3
+ import { av as y, ai as w } from "./app-OXMxNgrT.js";
4
4
  const c = { class: "purchase-box" }, A = { 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
- import { i as T, t as R, at as w, u as B, ax as E, aI as H, aJ as z, aK as U } from "./app-82JEull2.js";
2
- import { u as D } from "./supplier-BrZdgPMN.js";
3
- import { P as F } from "./format-unit-display-CIPAWL-6.js";
1
+ import { i as T, t as R, at as w, u as B, ax as E, aI as H, aJ as z, aK as U } from "./app-OXMxNgrT.js";
2
+ import { u as D } from "./supplier-CB_uu-6p.js";
3
+ import { P as F } from "./format-unit-display-Cji-r-K6.js";
4
4
  import { computed as f, defineComponent as x, mergeModels as j, useModel as q, ref as W, resolveComponent as V, openBlock as S, createElementBlock as I, normalizeStyle as $, createElementVNode as N, createVNode as J, withCtx as K, createBlock as g, createCommentVNode as O, Fragment as Q, renderList as X, unref as M } from "vue";
5
5
  function Y(t, i, a) {
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 { a1 as a } from "./app-82JEull2.js";
4
+ import { a1 as a } from "./app-OXMxNgrT.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 se, mergeModels as j, useModel as ie, computed as v, ref as k, watch as z, onBeforeUnmount as le, inject as ae, resolveComponent as b, openBlock as f, createElementBlock as y, createElementVNode as u, createVNode as M, withCtx as F, renderSlot as q, normalizeClass as T, toDisplayString as A, withDirectives as ue, vModelText as re, createCommentVNode as W, createTextVNode as me, createBlock as E, Fragment as ce, renderList as de } from "vue";
2
- import { P as B, I as D, X as L, Q as pe, i as h, aG as fe, t as ve, O as be, an as ye, aE as Me, aD as he } from "./app-82JEull2.js";
2
+ import { P as B, I as D, X as L, Q as pe, i as h, aG as fe, t as ve, O as be, an as ye, aE as Me, aD as he } from "./app-OXMxNgrT.js";
3
3
  import "@feedmepos/ui-library";
4
4
  function G() {
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 { i as a, O as y } from "./app-82JEull2.js";
2
+ import { i as a, O as y } from "./app-OXMxNgrT.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 L, d as S, e as z, f as Re, D as oe, h as K, I as Ie, A as Se, U as Ge, J as ue, K as Fe, N as Ve, l as de, L as Ce, p as ae, u as De, z as Ae, _ as $e, B as Te, C as Ee, E as le } from "./app-82JEull2.js";
2
+ import { a as L, d as S, e as z, f as Re, D as oe, h as K, I as Ie, A as Se, U as Ge, J as ue, K as Fe, N as Ve, l as de, L as Ce, p as ae, u as De, z as Ae, _ as $e, B as Te, C as Ee, E as le } from "./app-OXMxNgrT.js";
3
3
  import { useDialog as Me, useSnackbar as J, components as B, useProxiedModel as Be, useBreakpoints as Ue } from "@feedmepos/ui-library";
4
4
  import { useI18n as P, useCoreStore as ze } 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 Le } from "./FmMultiselectDialog-C2FfQXZp.js";
7
+ import { u as Le } from "./FmMultiselectDialog-fRcvT8PM.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,18 +1,18 @@
1
1
  import { ref as O, h as ae, defineComponent as se, computed as S, resolveComponent as F, openBlock as b, createBlock as D, withCtx as V, createVNode as f, unref as d, createElementBlock as A, Fragment as X, createElementVNode as m, createCommentVNode as H, renderSlot as ce, createTextVNode as Ee, toDisplayString as T, normalizeClass as ee, onMounted as it, watch as Ke, renderList as ue, isRef as Pe, createSlots as Ze, normalizeStyle as ut, Teleport as Ne, normalizeProps as dt, guardReactiveProps as mt } from "vue";
2
- import { a as oe, d as W, e as Je, S as ct, f as pt, D as Le, h as _e, A as ke, b as Ue, i as Qe, j as Ve, t as Xe, k as ve, l as we, U as vt, m as ft, M as yt, n as ze, o as Oe, p as He, q as et, r as gt, s as tt, v as bt, w as ht, I as _t, x as xt, y as kt, N as Vt, H as St, u as Ct, z as wt, _ as Ft, B as It, C as Mt, E as je, G as $t } from "./app-82JEull2.js";
2
+ import { a as oe, d as W, e as Je, S as ct, f as pt, D as Le, h as _e, A as ke, b as Ue, i as Qe, j as Ve, t as Xe, k as ve, l as we, U as vt, m as ft, M as yt, n as ze, o as Oe, p as He, q as et, r as gt, s as tt, v as bt, w as ht, I as _t, x as xt, y as kt, N as Vt, H as St, u as Ct, z as wt, _ as Ft, B as It, C as Mt, E as je, G as $t } from "./app-OXMxNgrT.js";
3
3
  import { useDialog as nt, useSnackbar as Se, components as Ye, useProxiedModel as qe, useDialogChild as Et, useBreakpoints as Ut } from "@feedmepos/ui-library";
4
4
  import { i as Rt, _ as At } from "./is-linked-ingredient-error-fJ2TJb3z.js";
5
5
  import { useI18n as re, useCoreStore as fe } from "@feedmepos/mf-common";
6
6
  import { defineStore as Tt, storeToRefs as Dt } from "pinia";
7
7
  import { g as Bt, _ as Fe, S as Ie } from "./StockForecast.vue_vue_type_style_index_0_lang-KLXSWvo5.js";
8
- import { _ as Pt } from "./InventoryBindingForm.vue_vue_type_script_setup_true_lang-9hirHThb.js";
9
- import { _ as Me } from "./IngredientBindedItem.vue_vue_type_script_setup_true_lang-DXbFhLpK.js";
10
- import { u as ot } from "./feature-UG6T1t8f.js";
8
+ import { _ as Pt } from "./InventoryBindingForm.vue_vue_type_script_setup_true_lang-uEO5JKUW.js";
9
+ import { _ as Me } from "./IngredientBindedItem.vue_vue_type_script_setup_true_lang-DCLepeXM.js";
10
+ import { u as ot } from "./feature-B9uo-iYZ.js";
11
11
  import { _ as xe } from "./PreviewBadge.vue_vue_type_script_setup_true_lang-CRZiQHjx.js";
12
12
  import { _ as Nt } from "./FmCustomAttribute.vue_vue_type_script_setup_true_lang-D-IWRjRD.js";
13
13
  import { r as Lt } from "./random-CSbEbElR.js";
14
14
  import "./array-Ca8T3f_G.js";
15
- import { u as zt } from "./FmMultiselectDialog-C2FfQXZp.js";
15
+ import { u as zt } from "./FmMultiselectDialog-fRcvT8PM.js";
16
16
  const $e = Tt("ingredientForm", function() {
17
17
  const o = nt(), y = Se(), l = oe(), n = O(!1), { t: a } = re(), i = O();
18
18
  function p() {
@@ -1,12 +1,12 @@
1
1
  import { defineComponent as G, mergeModels as $t, useModel as xt, onMounted as Mt, ref as z, computed as V, resolveComponent as L, openBlock as F, createElementBlock as U, createElementVNode as D, toDisplayString as H, unref as N, createVNode as C, createBlock as X, withCtx as B, Fragment as ne, renderList as we, normalizeClass as pe, normalizeStyle as en, createSlots as qe, createCommentVNode as J, withModifiers as tn, reactive as tt, watch as nt, isRef as Be, Teleport as it, h as P, createTextVNode as ce, watchEffect as nn } from "vue";
2
2
  import { E as on } from "./empty-placeholder-wf6-BWE8.js";
3
- import { aT as sn, aK as rn, e as ve, u as Ue, aU as an, b as je, aA as t, aV as ln, aW as dn, aX as un, aY as cn, aZ as Ft, a_ as mn, a$ as Qe, ay as Ke, b0 as W, b1 as $, P as O, k as Je, b2 as Ie, aw as se, b3 as fn, av as ee, b4 as ge, b5 as pn, b6 as gn, b7 as yn, b8 as ot, b9 as In, i as En, a as wt, aR as vn, a1 as An, $ as xe, Z as bn, ba as _n, aB as Sn, aN as Dn, aj as hn, r as Tn, x as Cn, _ as Nn, B as xn } from "./app-82JEull2.js";
3
+ import { aT as sn, aK as rn, e as ve, u as Ue, aU as an, b as je, aA as t, aV as ln, aW as dn, aX as un, aY as cn, aZ as Ft, a_ as mn, a$ as Qe, ay as Ke, b0 as W, b1 as $, P as O, k as Je, b2 as Ie, aw as se, b3 as fn, av as ee, b4 as ge, b5 as pn, b6 as gn, b7 as yn, b8 as ot, b9 as In, i as En, a as wt, aR as vn, a1 as An, $ as xe, Z as bn, ba as _n, aB as Sn, aN as Dn, aj as hn, r as Tn, x as Cn, _ as Nn, B as xn } from "./app-OXMxNgrT.js";
4
4
  import { useDialogChild as Mn, useDialog as st, useProxiedModel as Oe, useSnackbar as Ve, useBreakpoints as Lt, components as Me } from "@feedmepos/ui-library";
5
5
  import { useI18n as re, useCoreStore as ze } from "@feedmepos/mf-common";
6
- import { a as Fn, b as wn, u as Ln } from "./index-B7w4ky-g.js";
7
- import { u as rt } from "./vue-i18n-D5ETg5F3.js";
8
- import { _ as kn, F as Rn } from "./FmUnitInput.vue_vue_type_script_setup_true_lang-D4dnq4rA.js";
9
- import { u as Un } from "./feature-UG6T1t8f.js";
6
+ import { a as Fn, b as wn, u as Ln } from "./index-B72H3Oxs.js";
7
+ import { u as rt } from "./vue-i18n-DsGf7G_F.js";
8
+ import { _ as kn, F as Rn } from "./FmUnitInput.vue_vue_type_script_setup_true_lang-4xfely-0.js";
9
+ import { u as Un } from "./feature-B9uo-iYZ.js";
10
10
  const Bn = "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";
11
11
  var kt = { exports: {} };
12
12
  (function(s, d) {
@@ -1,4 +1,4 @@
1
- import { _ as f } from "./InventoryBindingForm.vue_vue_type_script_setup_true_lang-9hirHThb.js";
1
+ import { _ as f } from "./InventoryBindingForm.vue_vue_type_script_setup_true_lang-uEO5JKUW.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, W as le, bd as ie, i as h, be as N, T as G, Q as se, F as de } from "./app-82JEull2.js";
3
- import { u as re } from "./use-inventory-binding-dialog-DT4t22Eb.js";
4
- import { _ as ae, c as ue, d as me } from "./FmUnitInput.vue_vue_type_script_setup_true_lang-D4dnq4rA.js";
2
+ import { a as te, W as le, bd as ie, i as h, be as N, T as G, Q as se, F as de } from "./app-OXMxNgrT.js";
3
+ import { u as re } from "./use-inventory-binding-dialog-BNHELUOB.js";
4
+ import { _ as ae, c as ue, d as me } from "./FmUnitInput.vue_vue_type_script_setup_true_lang-4xfely-0.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-82JEull2.js";
4
+ import { F as r } from "./app-OXMxNgrT.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 { Q as s } from "./app-82JEull2.js";
2
+ import { Q as s } from "./app-OXMxNgrT.js";
3
3
  const _ = ["value", "disabled"], C = /* @__PURE__ */ V({
4
4
  __name: "NumberPrecisionInput",
5
5
  props: {
@@ -1,29 +1,29 @@
1
- import { aB as d, aC as f, a2 as _, u as h } from "./app-82JEull2.js";
2
- import { useCoreStore as F } from "@feedmepos/mf-common";
3
- import { ref as y, defineComponent as v, resolveComponent as p, openBlock as k, createElementBlock as g, renderSlot as S, createVNode as l, withCtx as x } from "vue";
4
- function I(e, t) {
1
+ import { aB as u, aC as _, a2 as h, u as F } from "./app-OXMxNgrT.js";
2
+ import { useCoreStore as y } from "@feedmepos/mf-common";
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 O } from "vue";
4
+ function w(e, t) {
5
5
  return t.map((r) => typeof r.selector == "function" ? r.selector(e) : e[r.selector]);
6
6
  }
7
- function O(e, t) {
8
- const r = t.map((o) => o.name), n = e.map((o) => I(o, t));
9
- return d.aoa_to_sheet([r, ...n]);
7
+ function I(e, t) {
8
+ const r = t.map((o) => o.name), n = e.map((o) => w(o, t));
9
+ return u.aoa_to_sheet([r, ...n]);
10
10
  }
11
- async function z(e, t) {
12
- const r = d.book_new();
11
+ async function A(e, t) {
12
+ const r = u.book_new();
13
13
  for (const n of e) {
14
- const o = O(
14
+ const o = I(
15
15
  n.data,
16
16
  n.columns.map((a) => typeof a == "string" ? {
17
17
  name: a,
18
18
  selector: a
19
19
  } : a)
20
20
  );
21
- d.book_append_sheet(r, o, n.name);
21
+ u.book_append_sheet(r, o, n.name);
22
22
  }
23
- await f(r, t);
23
+ await _(r, t);
24
24
  }
25
- const m = _((e, t) => {
26
- const r = h(), n = F();
25
+ const f = h((e, t) => {
26
+ const r = F(), n = y();
27
27
  return {
28
28
  async getInventoryForecast() {
29
29
  var s;
@@ -34,25 +34,25 @@ const m = _((e, t) => {
34
34
  return { skus: [] };
35
35
  }
36
36
  },
37
- async getPurchaseOrderForecast(o) {
38
- var u;
39
- const a = ((u = n.currentBusiness.value) == null ? void 0 : u._id) ?? "", i = r.currentLocationId ?? "", s = `${e.dataBackendUrl}/${a}/${i}/purchase-order-forecast?days=${o}`;
37
+ async getPurchaseOrderForecast(o, a) {
38
+ var p;
39
+ const i = ((p = n.currentBusiness.value) == null ? void 0 : p._id) ?? "", s = r.currentLocationId ?? "", d = `${e.dataBackendUrl}/${i}/${s}/purchase-order-forecast?days=${o}${a ? `&template_id=${a}` : ""}`;
40
40
  try {
41
- return await t.get(s);
41
+ return await t.get(d);
42
42
  } catch {
43
43
  return { skus: [] };
44
44
  }
45
45
  }
46
46
  };
47
47
  });
48
- function w() {
48
+ function $() {
49
49
  return {
50
50
  inventoryForecast: { skus: [] },
51
51
  purchaseOrderForecast: { skus: [] }
52
52
  };
53
53
  }
54
- const c = y(w());
55
- function A() {
54
+ const c = v($());
55
+ function D() {
56
56
  return {
57
57
  // state
58
58
  get inventoryForecast() {
@@ -69,37 +69,37 @@ function A() {
69
69
  },
70
70
  // actions
71
71
  async readStockEstimateBalance() {
72
- const e = m();
72
+ const e = f();
73
73
  this.inventoryForecast = await e.getInventoryForecast();
74
74
  },
75
- async readPurchaseOrder(e) {
76
- const t = m();
77
- this.purchaseOrderForecast = await t.getPurchaseOrderForecast(e);
75
+ async readPurchaseOrder(e, t) {
76
+ const r = f();
77
+ this.purchaseOrderForecast = await r.getPurchaseOrderForecast(e, t);
78
78
  }
79
79
  };
80
80
  }
81
- function D(e) {
81
+ function N(e) {
82
82
  let t = e.substring(e.indexOf("_") + 1);
83
83
  return t.includes("_") && (t = t.substring(0, t.lastIndexOf("_"))), Number.isNaN(Date.parse(t)) ? null : new Date(t).toISOString();
84
84
  }
85
- const B = { class: "flex items-center gap-8" }, b = "Experience enhanced inventory features with premium plan.", N = /* @__PURE__ */ v({
85
+ const B = { class: "flex items-center gap-8" }, b = "Experience enhanced inventory features with premium plan.", L = /* @__PURE__ */ k({
86
86
  __name: "PremiumBadge",
87
87
  props: {
88
88
  zIndex: {}
89
89
  },
90
90
  setup(e) {
91
91
  return (t, r) => {
92
- const n = p("FmPill"), o = p("FmTooltip");
93
- return k(), g("div", B, [
94
- S(t.$slots, "default"),
95
- l(o, {
92
+ const n = l("FmPill"), o = l("FmTooltip");
93
+ return g(), S("div", B, [
94
+ x(t.$slots, "default"),
95
+ m(o, {
96
96
  variant: "plain",
97
97
  placement: "top",
98
98
  content: b,
99
99
  "z-index": t.zIndex
100
100
  }, {
101
- default: x(() => [
102
- l(n, { variant: "premium" })
101
+ default: O(() => [
102
+ m(n, { variant: "premium" })
103
103
  ]),
104
104
  _: 1
105
105
  }, 8, ["z-index"])
@@ -108,8 +108,8 @@ const B = { class: "flex items-center gap-8" }, b = "Experience enhanced invento
108
108
  }
109
109
  });
110
110
  export {
111
- N as _,
112
- z as e,
113
- D as i,
114
- A as u
111
+ L as _,
112
+ A as e,
113
+ N as i,
114
+ D as u
115
115
  };
@@ -1,7 +1,7 @@
1
1
  import { defineComponent as Q, ref as D, computed as r, resolveComponent as s, openBlock as I, createBlock as B, unref as v, createSlots as X, withCtx as u, createElementVNode as h, normalizeClass as Z, createVNode as n, normalizeStyle as ee, Teleport as te, h as f } from "vue";
2
- import { u as oe, a as ne, aS as ae, z as se, _ as le, aj as H } from "./app-82JEull2.js";
2
+ import { u as oe, a as ne, aS as ae, z as se, _ as le, aj as H } from "./app-OXMxNgrT.js";
3
3
  import { useBreakpoints as ie, useDialog as re, useSnackbar as ue, components as R } from "@feedmepos/ui-library";
4
- import { u as ce } from "./vue-i18n-D5ETg5F3.js";
4
+ import { u as ce } from "./vue-i18n-DsGf7G_F.js";
5
5
  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" }, ge = /* @__PURE__ */ Q({
6
6
  __name: "PublishView",
7
7
  setup(ye) {
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as h, computed as x, ref as m, onMounted as f, openBlock as n, createElementBlock as u, createElementVNode as t, toDisplayString as l, normalizeStyle as g, createTextVNode as i, Fragment as d, createCommentVNode as p, renderList as v, normalizeClass as w } from "vue";
2
2
  import { useRoute as k } from "vue-router";
3
- import { av as y, ai as R } from "./app-82JEull2.js";
3
+ import { av as y, ai as R } from "./app-OXMxNgrT.js";
4
4
  const C = { class: "purchase-box" }, A = { valign: "bottom" }, N = { class: "text-right" }, P = { class: "header" }, D = { class: "sub-header" }, E = { class: "caption" }, O = { class: "address" }, S = { class: "text-right" }, T = { class: "sub-header" }, q = { class: "address" }, F = { class: "purchase-body" }, L = { class: "text-left" }, U = { class: "text-left" }, V = { class: "text-right" }, z = { style: { "padding-top": "30px" } }, B = { valign: "bottom" }, H = { class: "header" }, I = { class: "caption" }, M = {
5
5
  class: "text-left",
6
6
  style: { width: "20%" }