@feedmepos/mf-inventory-portal 1.2.10-dev.3 → 1.2.10-dev.4

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 (52) hide show
  1. package/dist/{App-D9otYMgh.js → App-DE0rygXX.js} +1 -1
  2. package/dist/{ApprovalView-Bue46U6e.js → ApprovalView-9H9G2OWv.js} +17 -17
  3. package/dist/{BindingsDialog-Xleskmvg.js → BindingsDialog-BjXHdsGH.js} +2 -2
  4. package/dist/{BindingsPicker-BeNF1NcZ.js → BindingsPicker-BijILjQH.js} +4 -4
  5. package/dist/{BindingsTable-ecWz3SHk.js → BindingsTable-DlSpPTRi.js} +1 -1
  6. package/dist/{ClosingDraftView-DkxOW9Ns.js → ClosingDraftView-BaDkJuyF.js} +123 -123
  7. package/dist/{ClosingTemplateView-BbnpVNYF.js → ClosingTemplateView-CdESDzwA.js} +26 -26
  8. package/dist/{DeliveryOrderPrintPreview-CH-IzSM9.js → DeliveryOrderPrintPreview-Bwrd33F_.js} +9 -9
  9. package/dist/{FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-DOR_Iu0w.js → FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-QlB_K9Yi.js} +16 -16
  10. package/dist/{FmMultiselectDialog-DBgk0_mV.js → FmMultiselectDialog-CLxZbi3l.js} +4 -4
  11. package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-DdxSlJRz.js → FmUnitInput.vue_vue_type_script_setup_true_lang-B6TbIvQI.js} +43 -43
  12. package/dist/{IngredientBindedItem.vue_vue_type_script_setup_true_lang-C22gncaQ.js → IngredientBindedItem.vue_vue_type_script_setup_true_lang-CtLFZtQZ.js} +7 -7
  13. package/dist/{IngredientGroupView-CrNLRll8.js → IngredientGroupView-DXQ2TKjI.js} +13 -13
  14. package/dist/IngredientsView-FLCGHbsn.js +2467 -0
  15. package/dist/{IntegrationView-DRwnqCf9.js → IntegrationView-BKI0tf68.js} +24 -25
  16. package/dist/{InventoryBindingForm-DU6B0J0B.js → InventoryBindingForm-BGov_1MJ.js} +1 -1
  17. package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-CLCDb25h.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-4IM7dQuV.js} +12 -12
  18. package/dist/{InventoryBindingSummary-BH2bWICt.js → InventoryBindingSummary-BQA0Sm_K.js} +1 -1
  19. package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-BD2hneTA.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-Bc5diF2E.js} +1 -1
  20. package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-GabOf_-7.js → PremiumBadge.vue_vue_type_script_setup_true_lang-s529wQrr.js} +1 -1
  21. package/dist/{PublishView-B510iDYx.js → PublishView-DhZ5eMg0.js} +19 -19
  22. package/dist/{PurchaseOrderPrintPreview-Cbsl8gcZ.js → PurchaseOrderPrintPreview-cMNE8VTL.js} +7 -7
  23. package/dist/{ReceiveRequestView-rKyNjRbk.js → ReceiveRequestView-Cv-Cgi_o.js} +80 -80
  24. package/dist/{RecipeView-C9dw-1_E.js → RecipeView-ipT51Tbl.js} +39 -39
  25. package/dist/{StockView-scnHVHGB.js → StockView-CKok9_oG.js} +833 -830
  26. package/dist/SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-BnAwlQE1.js +172 -0
  27. package/dist/{SupplierView-to6stKYV.js → SupplierView-cGpKVDGP.js} +4 -4
  28. package/dist/{TransferDetails.vue_vue_type_script_setup_true_lang-laVp-HrL.js → TransferDetails.vue_vue_type_script_setup_true_lang-0ule7sK7.js} +11 -12
  29. package/dist/{TransferTemplateView-VOgIhPGW.js → TransferTemplateView-DrlLa0ed.js} +109 -109
  30. package/dist/{UnitView-sr5QkKex.js → UnitView-YFAtJ0CL.js} +16 -16
  31. package/dist/{WarehouseView-CB3luO1P.js → WarehouseView-CV5pg-4p.js} +16 -16
  32. package/dist/{app-BpyxIAaY.js → app-CUMtg_U0.js} +8610 -8548
  33. package/dist/app.js +1 -1
  34. package/dist/{closing-template-CEJaVQKn.js → closing-template-Cyva214n.js} +1 -1
  35. package/dist/components/FmInventoryTableToolbar.vue.d.ts +7 -0
  36. package/dist/components/netsuite/ItemSubsidiaryTreeDialog.vue.d.ts +16 -0
  37. package/dist/{decimal-Dqff6QMJ.js → decimal-117ZlAfM.js} +1 -1
  38. package/dist/{format-unit-display-DcORb0K7.js → format-unit-display-BXHj4DAV.js} +3 -3
  39. package/dist/{index-CFfIlNHC.js → index-Da1f9OoS.js} +1 -1
  40. package/dist/{index-rTyWq-0n.js → index-PWnt_za9.js} +1 -1
  41. package/dist/{purchase-order-template-BFPrzfeR.js → purchase-order-template-AWsxLxPR.js} +1 -1
  42. package/dist/{stock-CkgmiPOr.js → stock-D7EiEqJe.js} +1 -1
  43. package/dist/stores/integration/netsuite.d.ts +25 -3
  44. package/dist/style.css +1 -1
  45. package/dist/{supplier-Db_-hKgm.js → supplier-DQmyhp0R.js} +1 -1
  46. package/dist/tsconfig.app.tsbuildinfo +1 -1
  47. package/dist/{use-ingredient-select-dialog-CEEFJa9x.js → use-ingredient-select-dialog-C37DLY6c.js} +4 -4
  48. package/dist/{use-inventory-binding-dialog-C6Ev4777.js → use-inventory-binding-dialog-CmZereh8.js} +1 -1
  49. package/package.json +2 -2
  50. package/dist/FmAdminBadge-D4rqYlKu.js +0 -44
  51. package/dist/IngredientsView-DLK0Seww.js +0 -2319
  52. package/dist/SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-Dt1S8tTH.js +0 -158
@@ -1,11 +1,10 @@
1
1
  import { defineComponent as Q, mergeModels as Te, useModel as we, onMounted as ve, ref as O, computed as T, resolveComponent as B, openBlock as I, createElementBlock as L, createElementVNode as s, toDisplayString as R, unref as S, createVNode as b, createBlock as H, withCtx as N, Fragment as Y, renderList as W, normalizeClass as K, normalizeStyle as je, createSlots as te, createCommentVNode as z, withModifiers as ze, reactive as ge, watch as ye, isRef as le, Teleport as de, h as M, createTextVNode as q, watchEffect as He } from "vue";
2
2
  import { E as Ue } from "./empty-placeholder-wf6-BWE8.js";
3
- import { b4 as Xe, aT as Qe, f as ne, u as $, b5 as Ye, b6 as Je, o as Ke, b as re, aG as me, k as Pe, a$ as fe, a8 as Ae, a9 as be, a as he, s as qe, Z as G, a4 as ke, b7 as Be, aM as Ce, aX as Ee, z as Fe, G as Le, a5 as ce, c as Ve, L as Ze, O as Ge } from "./app-BpyxIAaY.js";
4
- import { useDialogChild as We, useDialog as ue, useProxiedModel as ie, useSnackbar as ee, useBreakpoints as Ne, components as oe } from "@feedmepos/ui-library";
3
+ import { b5 as Xe, aU as Qe, f as ne, u as $, b6 as Ye, b7 as Je, p as Ke, b as re, aH as me, l as Pe, b0 as fe, a9 as Ae, aa as be, a as he, v as qe, h as ke, $ as G, a5 as Be, b8 as Ce, aN as Ee, aY as Fe, B as Le, H as Ve, a6 as ce, c as Ne, O as Ze, P as Ge } from "./app-CUMtg_U0.js";
4
+ import { useDialogChild as We, useDialog as ue, useProxiedModel as ie, useSnackbar as ee, useBreakpoints as De, components as oe } from "@feedmepos/ui-library";
5
5
  import { useI18n as Z, useCoreStore as se } from "@feedmepos/mf-common";
6
- import { a as $e, b as et, c as tt, u as nt } from "./index-rTyWq-0n.js";
7
- import { _ as ot, F as st } from "./FmUnitInput.vue_vue_type_script_setup_true_lang-DdxSlJRz.js";
8
- import { F as De } from "./FmAdminBadge-D4rqYlKu.js";
6
+ import { a as $e, b as et, c as tt, u as nt } from "./index-PWnt_za9.js";
7
+ import { _ as ot, F as st } from "./FmUnitInput.vue_vue_type_script_setup_true_lang-B6TbIvQI.js";
9
8
  const at = "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
9
  var Me = { exports: {} };
11
10
  (function(C, A) {
@@ -1009,7 +1008,7 @@ const Lt = { class: "flex flex-col rounded border border-fm-color-neutral-gray-1
1009
1008
  async function x() {
1010
1009
  u.value = !0;
1011
1010
  }
1012
- const { breakpoints: E } = Ne(), k = T(() => E.value.xs || E.value.sm), g = T(() => k.value);
1011
+ const { breakpoints: E } = De(), k = T(() => E.value.xs || E.value.sm), g = T(() => k.value);
1013
1012
  async function f() {
1014
1013
  const c = n.state.setting;
1015
1014
  if (c) {
@@ -2185,7 +2184,7 @@ const Lt = { class: "flex flex-col rounded border border-fm-color-neutral-gray-1
2185
2184
  (I(!0), L(Y, null, W(l.value, (u) => (I(), L("li", { key: u }, R(u), 1))), 128))
2186
2185
  ]),
2187
2186
  s("div", null, [
2188
- b(De, null, {
2187
+ b(ke, null, {
2189
2188
  default: N(() => [
2190
2189
  l.value.length > 0 ? (I(), H(a, {
2191
2190
  key: 0,
@@ -2279,7 +2278,7 @@ const Lt = { class: "flex flex-col rounded border border-fm-color-neutral-gray-1
2279
2278
  (I(!0), L(Y, null, W(l.value, (u) => (I(), L("li", { key: u }, R(u), 1))), 128))
2280
2279
  ]),
2281
2280
  s("div", null, [
2282
- b(De, null, {
2281
+ b(ke, null, {
2283
2282
  default: N(() => [
2284
2283
  l.value.length > 0 ? (I(), H(a, {
2285
2284
  key: 0,
@@ -2548,7 +2547,7 @@ async function so(C, A, o) {
2548
2547
  amounts: [
2549
2548
  {
2550
2549
  _id: null,
2551
- type: ke.Enum.CLOSING,
2550
+ type: Be.Enum.CLOSING,
2552
2551
  remark: "Opening Balance",
2553
2552
  amount: d,
2554
2553
  measurement: null,
@@ -2576,7 +2575,7 @@ async function ao(C) {
2576
2575
  const A = await new Promise((n, l) => {
2577
2576
  const p = new FileReader();
2578
2577
  p.onload = (w) => n(w.target.result), p.onerror = l, p.readAsArrayBuffer(C);
2579
- }), o = Be(A, { type: "array" }), r = o.SheetNames, t = {};
2578
+ }), o = Ce(A, { type: "array" }), r = o.SheetNames, t = {};
2580
2579
  for (const n of r) {
2581
2580
  const l = await lo(o.Sheets[n]);
2582
2581
  t[n] = l;
@@ -2584,7 +2583,7 @@ async function ao(C) {
2584
2583
  return t;
2585
2584
  }
2586
2585
  async function lo(C) {
2587
- const A = Ce.sheet_to_json(C, {
2586
+ const A = Ee.sheet_to_json(C, {
2588
2587
  header: Ie,
2589
2588
  range: 12
2590
2589
  }), o = [];
@@ -2613,7 +2612,7 @@ const io = { class: "flex flex-col gap-4" }, ro = { class: "flex flex-col" }, uo
2613
2612
  }, ho = { class: "flex flex-col" }, xo = { class: "font-medium" }, Io = { class: "text-xs text-gray-400" }, So = { class: "text-xs text-gray-400" }, wo = { class: "flex" }, ko = { class: "flex" }, Bo = { key: 1 }, Co = /* @__PURE__ */ Q({
2614
2613
  __name: "XilnexOpeningImport",
2615
2614
  setup(C) {
2616
- const A = et(), o = re(), r = he(), t = Ee(), n = ee(), l = T(() => [
2615
+ const A = et(), o = re(), r = he(), t = Fe(), n = ee(), l = T(() => [
2617
2616
  {
2618
2617
  value: "xilnex",
2619
2618
  label: "Xilnex",
@@ -2794,7 +2793,7 @@ const io = { class: "flex flex-col gap-4" }, ro = { class: "flex flex-col" }, uo
2794
2793
  disabled: ""
2795
2794
  }, {
2796
2795
  default: N(() => [
2797
- q(R(S(A).state.closingDocumentId ? `${S(Fe)(new Date(S(be)(S(A).state.closingDocumentId)))}` : "No closing found"), 1)
2796
+ q(R(S(A).state.closingDocumentId ? `${S(Le)(new Date(S(be)(S(A).state.closingDocumentId)))}` : "No closing found"), 1)
2798
2797
  ]),
2799
2798
  _: 1
2800
2799
  }),
@@ -2823,7 +2822,7 @@ const io = { class: "flex flex-col gap-4" }, ro = { class: "flex flex-col" }, uo
2823
2822
  s("div", co, [
2824
2823
  b(F, { label: "Stock take file" })
2825
2824
  ]),
2826
- b(Le, {
2825
+ b(Ve, {
2827
2826
  onFileUpload: i[1] || (i[1] = (J) => {
2828
2827
  J && (m.value = J);
2829
2828
  }),
@@ -3025,7 +3024,7 @@ const io = { class: "flex flex-col gap-4" }, ro = { class: "flex flex-col" }, uo
3025
3024
  }), _o = /* @__PURE__ */ Q({
3026
3025
  __name: "XilnexView",
3027
3026
  setup(C) {
3028
- const A = Ve(), o = $(), r = O(!1);
3027
+ const A = Ne(), o = $(), r = O(!1);
3029
3028
  async function t() {
3030
3029
  r.value = !0, console.log("Opening Xilnex migration dialog");
3031
3030
  }
@@ -3121,7 +3120,7 @@ async function To(C, A, o) {
3121
3120
  amounts: [
3122
3121
  {
3123
3122
  _id: null,
3124
- type: ke.Enum.CLOSING,
3123
+ type: Be.Enum.CLOSING,
3125
3124
  remark: "Opening Balance",
3126
3125
  amount: d,
3127
3126
  measurement: null,
@@ -3148,7 +3147,7 @@ async function jo(C) {
3148
3147
  const A = await new Promise((n, l) => {
3149
3148
  const p = new FileReader();
3150
3149
  p.onload = (w) => n(w.target.result), p.onerror = l, p.readAsArrayBuffer(C);
3151
- }), o = Be(A, { type: "array" }), r = o.SheetNames, t = {};
3150
+ }), o = Ce(A, { type: "array" }), r = o.SheetNames, t = {};
3152
3151
  for (const n of r) {
3153
3152
  const l = await zo(o.Sheets[n]);
3154
3153
  t[n] = l;
@@ -3156,7 +3155,7 @@ async function jo(C) {
3156
3155
  return t;
3157
3156
  }
3158
3157
  async function zo(C) {
3159
- const A = Ce.sheet_to_json(C, {
3158
+ const A = Ee.sheet_to_json(C, {
3160
3159
  header: Se,
3161
3160
  range: 1
3162
3161
  }), o = [];
@@ -3182,7 +3181,7 @@ const Ho = { class: "flex flex-col gap-4" }, Uo = { class: "flex flex-col" }, Xo
3182
3181
  }, Po = { class: "line-clamp-2 text-ellipsis break-all" }, qo = { class: "flex flex-col" }, Zo = { class: "font-medium" }, Go = { class: "text-fm-color-typo-secondary fm-typo-en-body-md-400" }, Wo = { class: "flex" }, $o = { class: "flex" }, es = { key: 1 }, ts = /* @__PURE__ */ Q({
3183
3182
  __name: "SynergyOpeningImport",
3184
3183
  setup(C) {
3185
- const A = tt(), o = he(), r = Ee(), t = ee(), n = T(() => [
3184
+ const A = tt(), o = he(), r = Fe(), t = ee(), n = T(() => [
3186
3185
  {
3187
3186
  value: "synergy",
3188
3187
  label: "Synergy",
@@ -3353,7 +3352,7 @@ const Ho = { class: "flex flex-col gap-4" }, Uo = { class: "flex flex-col" }, Xo
3353
3352
  disabled: ""
3354
3353
  }, {
3355
3354
  default: N(() => [
3356
- q(R(S(A).state.closingDocumentId ? `${S(Fe)(new Date(S(be)(S(A).state.closingDocumentId)))}` : "No closing found"), 1)
3355
+ q(R(S(A).state.closingDocumentId ? `${S(Le)(new Date(S(be)(S(A).state.closingDocumentId)))}` : "No closing found"), 1)
3357
3356
  ]),
3358
3357
  _: 1
3359
3358
  }),
@@ -3382,7 +3381,7 @@ const Ho = { class: "flex flex-col gap-4" }, Uo = { class: "flex flex-col" }, Xo
3382
3381
  s("div", Qo, [
3383
3382
  b(i, { label: "Stock take file" })
3384
3383
  ]),
3385
- b(Le, {
3384
+ b(Ve, {
3386
3385
  onFileUpload: e[1] || (e[1] = (j) => {
3387
3386
  j && (w.value = j);
3388
3387
  }),
@@ -3547,7 +3546,7 @@ const Ho = { class: "flex flex-col gap-4" }, Uo = { class: "flex flex-col" }, Xo
3547
3546
  }), cs = /* @__PURE__ */ Q({
3548
3547
  __name: "SynergyView",
3549
3548
  setup(C) {
3550
- const A = Ve(), o = $(), r = O(!1);
3549
+ const A = Ne(), o = $(), r = O(!1);
3551
3550
  async function t() {
3552
3551
  r.value = !0, console.log("Opening Synergy migration dialog");
3553
3552
  }
@@ -3600,10 +3599,10 @@ const Ho = { class: "flex flex-col gap-4" }, Uo = { class: "flex flex-col" }, Xo
3600
3599
  }, vs = {
3601
3600
  key: 2,
3602
3601
  class: "grid grid-cols-2 gap-5"
3603
- }, ws = /* @__PURE__ */ Q({
3602
+ }, Ss = /* @__PURE__ */ Q({
3604
3603
  __name: "IntegrationView",
3605
3604
  setup(C) {
3606
- const A = $(), o = O(!1), r = nt(), { breakpoints: t } = Ne(), n = T(() => t.value.xs || t.value.sm), { t: l } = Z();
3605
+ const A = $(), o = O(!1), r = nt(), { breakpoints: t } = De(), n = T(() => t.value.xs || t.value.sm), { t: l } = Z();
3607
3606
  return ve(async () => {
3608
3607
  if (A._currentLocation) {
3609
3608
  o.value = !0;
@@ -3657,5 +3656,5 @@ const Ho = { class: "flex flex-col gap-4" }, Uo = { class: "flex flex-col" }, Xo
3657
3656
  }
3658
3657
  });
3659
3658
  export {
3660
- ws as default
3659
+ Ss as default
3661
3660
  };
@@ -1,4 +1,4 @@
1
- import { _ as f } from "./InventoryBindingForm.vue_vue_type_script_setup_true_lang-CLCDb25h.js";
1
+ import { _ as f } from "./InventoryBindingForm.vue_vue_type_script_setup_true_lang-4IM7dQuV.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, a2 as le, b9 as ie, k as h, ba as T, a0 as G, $ as se, F as de } from "./app-BpyxIAaY.js";
3
- import { u as re } from "./use-inventory-binding-dialog-C6Ev4777.js";
4
- import { _ as ae, c as ue, d as me } from "./FmUnitInput.vue_vue_type_script_setup_true_lang-DdxSlJRz.js";
2
+ import { a as te, a3 as le, ba as ie, l as h, bb as T, a1 as G, a0 as se, F as de } from "./app-CUMtg_U0.js";
3
+ import { u as re } from "./use-inventory-binding-dialog-CmZereh8.js";
4
+ import { _ as ae, c as ue, d as me } from "./FmUnitInput.vue_vue_type_script_setup_true_lang-B6TbIvQI.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",
@@ -21,10 +21,10 @@ const pe = { class: "flex flex-col gap-24" }, ye = { class: "flex flex-col gap-1
21
21
  }, Pe = {
22
22
  class: "flex items-center",
23
23
  style: { "min-height": "48px" }
24
- }, Ne = { class: "flex-1 fm-typo-en-body-md-400 py-8 px-12" }, Te = { class: "flex flex-col" }, Me = { class: "w-[200px]" }, $e = {
24
+ }, Ne = { class: "flex-1 fm-typo-en-body-md-400 py-8 px-12" }, Te = { class: "flex flex-col" }, Me = { class: "w-[200px]" }, De = {
25
25
  key: 0,
26
26
  class: "w-[52px]"
27
- }, De = { class: "flex flex-col gap-16" }, Ke = { class: "flex items-center" }, je = { class: "flex-1 fm-typo-en-title-sm-600" }, ze = { class: "flex flex-col" }, Le = { class: "flex py-8 px-12 border-b border-fm-color-neutral-gray-200 bg-fm-color-neutral-gray-100 h-[44px] items-center" }, Oe = { class: "flex-1 fm-typo-en-body-md-600 text-fm-color-typo-secondary" }, Ye = { class: "fm-typo-en-body-md-600 text-fm-color-typo-secondary w-[150px] px-16" }, We = {
27
+ }, Ke = { class: "flex flex-col gap-16" }, $e = { class: "flex items-center" }, je = { class: "flex-1 fm-typo-en-title-sm-600" }, ze = { class: "flex flex-col" }, Le = { class: "flex py-8 px-12 border-b border-fm-color-neutral-gray-200 bg-fm-color-neutral-gray-100 h-[44px] items-center" }, Oe = { class: "flex-1 fm-typo-en-body-md-600 text-fm-color-typo-secondary" }, Ye = { class: "fm-typo-en-body-md-600 text-fm-color-typo-secondary w-[150px] px-16" }, We = {
28
28
  class: "flex items-center w-full",
29
29
  style: { "min-height": "48px" }
30
30
  }, qe = { class: "flex-1 fm-typo-en-body-md-400 py-8 px-12" }, He = { class: "line-clamp-1" }, Je = { class: "w-[150px]" }, Qe = {
@@ -43,8 +43,8 @@ const pe = { class: "flex flex-col gap-24" }, ye = { class: "flex flex-col gap-1
43
43
  enableIngredientGroup: { type: Boolean }
44
44
  },
45
45
  emits: ["update:modelValue", "click:pick-inventory-bindings"],
46
- setup(M, { emit: $ }) {
47
- const { t: a } = ce(), x = te(), D = _(() => x.recipeById), I = _(() => x.skuById), K = _(() => x.skuGroupById), s = M, b = $, A = _(() => le({
46
+ setup(M, { emit: D }) {
47
+ const { t: a } = ce(), x = te(), K = _(() => x.recipeById), I = _(() => x.skuById), $ = _(() => x.skuGroupById), s = M, b = D, A = _(() => le({
48
48
  parentId: s.id,
49
49
  bindings: s.modelValue,
50
50
  recipes: x.recipes.map((o) => o._id === s.id ? {
@@ -192,7 +192,7 @@ const pe = { class: "flex flex-col gap-24" }, ye = { class: "flex flex-col gap-1
192
192
  n("div", xe, [
193
193
  n("div", he, [
194
194
  n("div", Ve, [
195
- n("div", Be, m((g = D.value[l.id]) == null ? void 0 : g.name), 1)
195
+ n("div", Be, m((g = K.value[l.id]) == null ? void 0 : g.name), 1)
196
196
  ]),
197
197
  n("div", ke, [
198
198
  y(f, {
@@ -268,7 +268,7 @@ const pe = { class: "flex flex-col gap-24" }, ye = { class: "flex flex-col gap-1
268
268
  ])) : v("", !0),
269
269
  n("div", Pe, [
270
270
  n("div", Ne, [
271
- n("div", Te, m((g = K.value[l.id]) == null ? void 0 : g.name), 1)
271
+ n("div", Te, m((g = $.value[l.id]) == null ? void 0 : g.name), 1)
272
272
  ]),
273
273
  n("div", Me, [
274
274
  y(f, {
@@ -279,7 +279,7 @@ const pe = { class: "flex flex-col gap-24" }, ye = { class: "flex flex-col gap-1
279
279
  invalid: V
280
280
  }, null, 8, ["disabled", "modelValue", "onUpdate:modelValue", "invalid"])
281
281
  ]),
282
- e.readonly ? v("", !0) : (r(), p("div", $e, [
282
+ e.readonly ? v("", !0) : (r(), p("div", De, [
283
283
  y(d, {
284
284
  disabled: e.disabled,
285
285
  type: "button",
@@ -297,8 +297,8 @@ const pe = { class: "flex flex-col gap-24" }, ye = { class: "flex flex-col gap-1
297
297
  }, 1032, ["disabled", "modelValue", "rules"]))), 128))
298
298
  ])
299
299
  ])) : v("", !0),
300
- n("div", De, [
301
- n("div", Ke, [
300
+ n("div", Ke, [
301
+ n("div", $e, [
302
302
  n("div", je, m(i(a)("inventory.inventoryBindings.ingredient")), 1),
303
303
  e.readonly ? v("", !0) : (r(), B(d, {
304
304
  key: 0,
@@ -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-BpyxIAaY.js";
4
+ import { F as r } from "./app-CUMtg_U0.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 { $ as s } from "./app-BpyxIAaY.js";
2
+ import { a0 as s } from "./app-CUMtg_U0.js";
3
3
  const _ = ["value", "disabled"], C = /* @__PURE__ */ V({
4
4
  __name: "NumberPrecisionInput",
5
5
  props: {
@@ -1,4 +1,4 @@
1
- import { aM as u, aN as _, a7 as h, u as F } from "./app-BpyxIAaY.js";
1
+ import { aN as u, aO as _, a8 as h, u as F } from "./app-CUMtg_U0.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 O } from "vue";
4
4
  function w(e, t) {
@@ -1,6 +1,6 @@
1
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 { aG as ne, u as ae, a as se, b3 as le, K as ie, L as re, a8 as B } from "./app-BpyxIAaY.js";
3
- import { useBreakpoints as ce, useDialog as ue, useSnackbar as me, components as H } from "@feedmepos/ui-library";
2
+ import { aH as ne, u as ae, a as se, b4 as le, L as ie, O as re, a9 as H } from "./app-CUMtg_U0.js";
3
+ import { useBreakpoints as ce, useDialog as ue, useSnackbar as me, components as B } from "@feedmepos/ui-library";
4
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) {
@@ -14,7 +14,7 @@ const pe = { class: "flex flex-col py-8" }, de = { class: "fm-typo-en-body-md-40
14
14
  { immediate: !0 }
15
15
  // Optional: triggers the watcher immediately on mount
16
16
  );
17
- const K = c(() => [
17
+ const U = c(() => [
18
18
  {
19
19
  label: t("inventory.common.refresh"),
20
20
  value: "refresh",
@@ -22,7 +22,7 @@ const pe = { class: "flex flex-col py-8" }, de = { class: "fm-typo-en-body-md-40
22
22
  },
23
23
  { label: t("inventory.publish.actions.publishAll"), value: "publish", isPrimary: !0 }
24
24
  ]);
25
- async function U(e) {
25
+ async function q(e) {
26
26
  switch (e) {
27
27
  case "publish":
28
28
  C.open({
@@ -39,25 +39,25 @@ const pe = { class: "flex flex-col py-8" }, de = { class: "fm-typo-en-body-md-40
39
39
  break;
40
40
  }
41
41
  }
42
- const w = D(!1), q = [
42
+ const w = D(!1), E = [
43
43
  {
44
44
  value: "publish",
45
45
  label: t("inventory.publish.actions.publishAll")
46
46
  }
47
47
  ];
48
- function E(e) {
48
+ function K(e) {
49
49
  switch (w.value = !1, e) {
50
50
  case "publish":
51
51
  console.log("publish all");
52
52
  }
53
53
  }
54
- const G = [
54
+ const O = [
55
55
  {
56
56
  id: "type",
57
57
  header: () => t("inventory.publish.columns.type"),
58
58
  enableSorting: !0,
59
59
  cell(e) {
60
- return g(H.FmChip, {
60
+ return g(B.FmChip, {
61
61
  color: "primary",
62
62
  label: e.row.original.type
63
63
  });
@@ -75,7 +75,7 @@ const pe = { class: "flex flex-col py-8" }, de = { class: "fm-typo-en-body-md-40
75
75
  enableSorting: !0,
76
76
  cell(e) {
77
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) : "";
78
+ return (o = e.row.original.inventory) != null && o.updatedAt ? H((s = e.row.original.inventory) == null ? void 0 : s.updatedAt) : "";
79
79
  }
80
80
  },
81
81
  {
@@ -103,7 +103,7 @@ const pe = { class: "flex flex-col py-8" }, de = { class: "fm-typo-en-body-md-40
103
103
  },
104
104
  t(o ? "inventory.publish.status.published" : "inventory.publish.status.outdated")
105
105
  ),
106
- !o && !p ? g(H.FmButton, {
106
+ !o && !p ? g(B.FmButton, {
107
107
  class: "tertiary",
108
108
  variant: "secondary",
109
109
  icon: "sync",
@@ -142,11 +142,11 @@ const pe = { class: "flex flex-col py-8" }, de = { class: "fm-typo-en-body-md-40
142
142
  // }
143
143
  ];
144
144
  return (e, o) => {
145
- const s = l("FmChip"), p = l("FlexRender"), d = l("TableActionableRow"), j = l("FmTable"), J = l("FmCollapsibleTabs"), O = l("FmBottomSheet");
145
+ const s = l("FmChip"), p = l("FlexRender"), d = l("TableActionableRow"), j = l("FmTable"), G = l("FmCollapsibleTabs"), J = l("FmBottomSheet");
146
146
  return W(), z(re, {
147
147
  title: h(t)("inventory.publish.title"),
148
- actions: K.value,
149
- "onClick:action": U
148
+ actions: U.value,
149
+ "onClick:action": q
150
150
  }, Z({
151
151
  default: u(() => [
152
152
  f("div", {
@@ -160,7 +160,7 @@ const pe = { class: "flex flex-col py-8" }, de = { class: "fm-typo-en-body-md-40
160
160
  }, [
161
161
  a(j, {
162
162
  style: te(h(R).tableHeight),
163
- "column-defs": G,
163
+ "column-defs": O,
164
164
  "row-data": N.value,
165
165
  loading: !h(n)._currentLocation || i.value,
166
166
  "loading-text": "Loading",
@@ -194,16 +194,16 @@ const pe = { class: "flex flex-col py-8" }, de = { class: "fm-typo-en-body-md-40
194
194
  }, 8, ["style", "row-data", "loading", "page-size"])
195
195
  ], 2),
196
196
  (W(), z(oe, { to: "body" }, [
197
- a(O, {
197
+ a(J, {
198
198
  "dismiss-away": "",
199
199
  modelValue: w.value,
200
200
  "onUpdate:modelValue": o[1] || (o[1] = (r) => w.value = r)
201
201
  }, {
202
202
  default: u(() => [
203
- a(J, {
203
+ a(G, {
204
204
  class: "pb-8",
205
- items: q,
206
- "onUpdate:modelValue": o[0] || (o[0] = (r) => E(r))
205
+ items: E,
206
+ "onUpdate:modelValue": o[0] || (o[0] = (r) => K(r))
207
207
  })
208
208
  ]),
209
209
  _: 1
@@ -217,7 +217,7 @@ const pe = { class: "flex flex-col py-8" }, de = { class: "fm-typo-en-body-md-40
217
217
  fn: u(() => [
218
218
  a(s, {
219
219
  variant: "info",
220
- label: `Latest: ${h(B)(m.value)}`
220
+ label: `Latest: ${h(H)(m.value)}`
221
221
  }, null, 8, ["label"])
222
222
  ]),
223
223
  key: "0"
@@ -1,10 +1,10 @@
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 { aF as y, as as k } from "./app-BpyxIAaY.js";
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 = {
3
+ import { aG as y, at as k } from "./app-CUMtg_U0.js";
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" }, G = { class: "caption" }, J = {
5
5
  class: "text-left",
6
6
  style: { width: "20%" }
7
- }, j = { class: "text-left" }, G = {
7
+ }, Q = { class: "text-left" }, j = {
8
8
  class: "text-right",
9
9
  style: { width: "15%" }
10
10
  }, K = {
@@ -126,7 +126,7 @@ const A = { class: "purchase-box" }, C = { valign: "bottom" }, R = { class: "tit
126
126
  t("tr", M, [
127
127
  t("td", null, [
128
128
  t("div", z, "Ref: " + e(r.ref), 1),
129
- t("div", J, e(r.createdAt), 1),
129
+ t("div", G, e(r.createdAt), 1),
130
130
  t("div", null, "Remark: " + e(r.remark), 1)
131
131
  ])
132
132
  ])
@@ -135,9 +135,9 @@ const A = { class: "purchase-box" }, C = { valign: "bottom" }, R = { class: "tit
135
135
  t("table", null, [
136
136
  t("tbody", null, [
137
137
  (u(!0), n(o, null, v(r.items, (d, h) => (u(), n("tr", { key: h }, [
138
- t("td", Q, e(d.code), 1),
139
- t("td", j, e(d.description), 1),
140
- t("td", G, e(d.quantity), 1),
138
+ t("td", J, e(d.code), 1),
139
+ t("td", Q, e(d.description), 1),
140
+ t("td", j, e(d.quantity), 1),
141
141
  t("td", K, e(d.unit), 1)
142
142
  ]))), 128))
143
143
  ])