@feedmepos/mf-inventory-portal 0.0.23-dev.3 → 0.0.23-dev.31

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 (118) hide show
  1. package/dist/{App-BREfwtck.js → App-CEmWJ9lp.js} +85 -73
  2. package/dist/{ApprovalView-DCzLx24G.js → ApprovalView-jDll4AVe.js} +24 -27
  3. package/dist/{BindingsDialog-CUcC8lue.js → BindingsDialog-BC_gRSif.js} +4 -4
  4. package/dist/{BindingsPicker-3VOdZBWI.js → BindingsPicker-BJsGoBzM.js} +8 -9
  5. package/dist/{BindingsTable-D5Lt6GOO.js → BindingsTable-DSdwNK_q.js} +18 -22
  6. package/dist/ClosingDraftView-UfWdRXb-.js +1190 -0
  7. package/dist/{ClosingTemplateView-CukthwOo.js → ClosingTemplateView-BzG16gl5.js} +272 -286
  8. package/dist/FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-DW2IOPST.js +282 -0
  9. package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-DigsIOB0.js → FmUnitInput.vue_vue_type_script_setup_true_lang-DDuZEf_v.js} +116 -114
  10. package/dist/{IngredientBindedItem.vue_vue_type_script_setup_true_lang-DweLQVwq.js → IngredientBindedItem.vue_vue_type_script_setup_true_lang-CiNvnaaE.js} +5 -5
  11. package/dist/{IngredientGroupView-CkD8x2CP.js → IngredientGroupView-DL8eBhkk.js} +63 -69
  12. package/dist/IngredientsView-B_HC9fgq.js +1657 -0
  13. package/dist/{IntegrationView-BfeV07OO.js → IntegrationView-BeFT5S24.js} +92 -95
  14. package/dist/{InventoryBindingForm-BsSmth0U.js → InventoryBindingForm-DJ3uwq_X.js} +1 -1
  15. package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-CMV5e99K.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-DIviTipZ.js} +25 -27
  16. package/dist/{InventoryBindingSummary-BHloDawE.js → InventoryBindingSummary-CvB5j9xq.js} +1 -1
  17. package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-BjddpTCS.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-CQPdnXEF.js} +1 -1
  18. package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-BZBa_99i.js → PremiumBadge.vue_vue_type_script_setup_true_lang-BdscwUGn.js} +23 -24
  19. package/dist/{PurchaseOrderPrintPreview-CTdd-RuH.js → PurchaseOrderPrintPreview-3_6nBajH.js} +13 -14
  20. package/dist/ReceiveRequestView-B_0UldQ7.js +4188 -0
  21. package/dist/{RecipeView-CrmDQdc5.js → RecipeView-D9p0Ou_I.js} +79 -85
  22. package/dist/{StockView-Xb3fQaiD.js → StockView-TIdUgG3O.js} +1338 -1446
  23. package/dist/{SupplierView-CrtIiaz0.js → SupplierView-B1b9Otcr.js} +2325 -787
  24. package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-jUYB4L8Y.js +1275 -0
  25. package/dist/TransferTemplateView-Dxk5b-2j.js +1264 -0
  26. package/dist/{UnitView-C6BgrZ1G.js → UnitView-BrpzJ7D3.js} +40 -44
  27. package/dist/{WarehouseView-Hhd76ybU.js → WarehouseView-CjbdEy8o.js} +94 -100
  28. package/dist/api/adjustment-template.d.ts +23 -0
  29. package/dist/api/bill.d.ts +2 -2
  30. package/dist/api/closing-draft.d.ts +6 -0
  31. package/dist/api/closing.d.ts +1 -0
  32. package/dist/api/netsuite.d.ts +3 -3
  33. package/dist/app-AcMtTQ07.js +84202 -0
  34. package/dist/app.d.ts +56 -0
  35. package/dist/app.js +2 -2
  36. package/dist/components/FmMinMaxInputRules.d.ts +4 -1
  37. package/dist/components/FmMultiselectDialogProps.d.ts +1 -0
  38. package/dist/components/row-action.enum.d.ts +1 -0
  39. package/dist/composable/defineDeepModel.d.ts +1 -1
  40. package/dist/{decimal-rPKr5T-H.js → decimal-DHYZglKx.js} +1 -1
  41. package/dist/{feature-z95vJnA1.js → feature-G-NnqKcY.js} +23 -9
  42. package/dist/format-unit-display-BWqJsV_R.js +1207 -0
  43. package/dist/index-Bt8vaUdT.js +12087 -0
  44. package/dist/router/name.d.ts +2 -0
  45. package/dist/stock-VZXyPw2C.js +125 -0
  46. package/dist/stores/feature.d.ts +2 -0
  47. package/dist/stores/integration/netsuite.d.ts +70 -2
  48. package/dist/stores/inventory.d.ts +1 -4
  49. package/dist/style.css +1 -1
  50. package/dist/{supplier-BixmjZyl.js → supplier-DTUUR48O.js} +15 -15
  51. package/dist/tsconfig.app.tsbuildinfo +1 -1
  52. package/dist/{use-inventory-binding-dialog-BRygbm1p.js → use-inventory-binding-dialog-DvC_i-Ih.js} +10 -11
  53. package/dist/views/adjustment-template/import/AdjustmentTemplateImport.vue.d.ts +2 -0
  54. package/dist/views/adjustment-template/import/AdjustmentTemplateImportItem.vue.d.ts +18 -0
  55. package/dist/views/adjustment-template/import/export.d.ts +60 -0
  56. package/dist/views/adjustment-template/wastage-template/WastageTemplateDetails.vue.d.ts +2 -0
  57. package/dist/views/adjustment-template/wastage-template/WastageTemplateDialog.vue.d.ts +22 -0
  58. package/dist/views/adjustment-template/wastage-template/WastageTemplatePublish.vue.d.ts +6 -0
  59. package/dist/views/adjustment-template/wastage-template/WastageTemplateView.vue.d.ts +2 -0
  60. package/dist/views/adjustment-template/wastage-template/actions.d.ts +1295 -0
  61. package/dist/views/adjustment-template/wastage-template/form/WastageTemplateForm.vue.d.ts +16 -0
  62. package/dist/views/adjustment-template/wastage-template/form/WastageTemplateItemTable.vue.d.ts +35 -0
  63. package/dist/views/adjustment-template/wastage-template/form/useAdjustmentTemplateItems.d.ts +20 -0
  64. package/dist/views/adjustment-template/wastage-template/props.d.ts +29 -0
  65. package/dist/views/adjustment-template/wastage-template/table.d.ts +1273 -0
  66. package/dist/views/closing-draft/ClosingDraftView.vue.d.ts +2 -0
  67. package/dist/views/closing-draft/components/closing-draft-action/ClosingDraftAction.vue.d.ts +22 -0
  68. package/dist/views/closing-draft/components/closing-draft-dialog/ClosingDraftDialog.vue.d.ts +621 -0
  69. package/dist/views/closing-draft/composables/use-closing-draft-actions.d.ts +25 -0
  70. package/dist/views/closing-draft/composables/use-closing-draft-table.d.ts +3621 -0
  71. package/dist/views/closing-draft/helpers/draft-status-to-class-name.helper.d.ts +1 -0
  72. package/dist/views/closing-draft/helpers/export-draft.helper.d.ts +19 -0
  73. package/dist/views/closing-draft/helpers/get-calculated-total.helper.d.ts +4 -0
  74. package/dist/views/closing-template/composables/use-closing-template-actions.d.ts +24 -192
  75. package/dist/views/closing-template/composables/use-closing-template-table.d.ts +25 -193
  76. package/dist/views/receive-request/components/netsuite/NetSuiteInfo.vue.d.ts +12 -0
  77. package/dist/views/receive-request/components/netsuite/NetSuiteProps.d.ts +13 -0
  78. package/dist/views/receive-request/components/netsuite/NetSuiteSync.vue.d.ts +12 -0
  79. package/dist/views/receive-request/components/transfer-form/NetSuiteField.vue.d.ts +2 -0
  80. package/dist/views/receive-request/components/transfer-form/TransferForm.vue.d.ts +40 -34
  81. package/dist/views/receive-request/components/transfer-form/composables/use-transfer-items.d.ts +1 -0
  82. package/dist/views/receive-request/composables/use-receive-request-form.d.ts +63 -54
  83. package/dist/views/receive-request/composables/use-receive-request-table.d.ts +63 -54
  84. package/dist/views/receive-request/helper/check-netsuite-subsidiary.helper.d.ts +1 -0
  85. package/dist/views/stock/components/StockRecordCard.vue.d.ts +1 -1
  86. package/dist/views/stock/components/dialog/AdjustedItemForm.vue.d.ts +2 -2
  87. package/dist/views/stock/helper/compute-summary-total.d.ts +2 -2
  88. package/dist/views/transfer-template/components/transfer-template-form/composables/use-transfer-template-items.d.ts +8 -8
  89. package/dist/views/transfer-template/composables/use-transfer-template-actions.d.ts +96 -96
  90. package/dist/views/transfer-template/composables/use-transfer-template-table.d.ts +96 -96
  91. package/package.json +2 -2
  92. package/dist/FmDroppableField-8RzKjEdL.js +0 -154
  93. package/dist/FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-Dwb3eBLo.js +0 -267
  94. package/dist/FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-CvtvzIt1.js +0 -436
  95. package/dist/FmMultiselectDialog-CKBcMDGC.js +0 -415
  96. package/dist/IngredientsView-DuK4YSD6.js +0 -1613
  97. package/dist/ReceiveRequestView-CgWNaYs1.js +0 -4104
  98. package/dist/TableActionableRow.vue_vue_type_script_setup_true_lang-DlNJ6kRg.js +0 -135
  99. package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-C9H41eg7.js +0 -1189
  100. package/dist/TransferTemplateView-Cc7VRbZ7.js +0 -1262
  101. package/dist/_plugin-vue_export-helper-CHgC5LLL.js +0 -9
  102. package/dist/app-CwUHqg7h.js +0 -33462
  103. package/dist/date2-CHNm4ELK.js +0 -117
  104. package/dist/dayjs.min-FE3dpxHU.js +0 -282
  105. package/dist/defineDeepModel-Dc1zZzOi.js +0 -13
  106. package/dist/format-time-from-id-CaPj8EHN.js +0 -15
  107. package/dist/format-unit-display-Bkz5kW6p.js +0 -1198
  108. package/dist/fuzzy-DXqhGaFi.js +0 -41
  109. package/dist/index-BMJHz32O.js +0 -22277
  110. package/dist/index-Be5vGZdr.js +0 -45
  111. package/dist/index-D2juQPg6.js +0 -10545
  112. package/dist/netsuite-P0as0Moa.js +0 -194
  113. package/dist/normalizeArguments-DP7Hrren.js +0 -1552
  114. package/dist/row-action.enum-PMKMRrZR.js +0 -50
  115. package/dist/rules-BQz4NGht.js +0 -198
  116. package/dist/use-template-enabled-locations-2-Dd15d-ng.js +0 -86
  117. package/dist/xlsx-k2Rf0NcF.js +0 -24004
  118. package/dist/xlsx.util-CJxPf7XZ.js +0 -78
@@ -1,11 +1,9 @@
1
- import { ref as L, onUnmounted as k, defineComponent as h, watch as b, onMounted as U, computed as R, resolveComponent as T, openBlock as S, createElementBlock as I, unref as v, createVNode as E, createElementVNode as p, toDisplayString as w, createBlock as B, createCommentVNode as F } from "vue";
2
- import { u as M, a as D, R as e, g as s, b as H } from "./app-CwUHqg7h.js";
3
- import { useCoreStore as x, useI18n as G } from "@feedmepos/mf-common";
4
- import { useRouter as A, useRoute as K } from "vue-router";
5
- import { u as V } from "./feature-z95vJnA1.js";
6
- import { u as $ } from "./netsuite-P0as0Moa.js";
1
+ import { ref as w, onUnmounted as F, defineComponent as h, watch as I, onMounted as G, computed as g, resolveComponent as R, openBlock as S, createElementBlock as b, unref as v, createVNode as E, createElementVNode as p, toDisplayString as x, createBlock as U, createCommentVNode as M } from "vue";
2
+ import { u as k, a as D, b as H, R as e, g as r, _ as K, c as W } from "./app-AcMtTQ07.js";
3
+ import { useCoreStore as A, useI18n as B } from "@feedmepos/mf-common";
4
+ import { useRouter as C, useRoute as $ } from "vue-router";
5
+ import { u as O } from "./feature-G-NnqKcY.js";
7
6
  import { u as Q } from "./useTabStorage-BkIVScW_.js";
8
- import { _ as W } from "./_plugin-vue_export-helper-CHgC5LLL.js";
9
7
  import { u as j } from "./googlemap-Dm8ERVai.js";
10
8
  import "./array-hChJVZLE.js";
11
9
  function z() {
@@ -14,9 +12,9 @@ function z() {
14
12
  isLoading: !1
15
13
  };
16
14
  }
17
- const _ = L(z());
15
+ const _ = w(z());
18
16
  function q() {
19
- const l = A();
17
+ const l = C();
20
18
  if (!_.value.loadingHookInstalled) {
21
19
  _.value.loadingHookInstalled = !0;
22
20
  const n = l.beforeEach(() => {
@@ -24,7 +22,7 @@ function q() {
24
22
  }), i = l.afterEach(() => {
25
23
  _.value.isLoading = !1;
26
24
  });
27
- k(() => {
25
+ F(() => {
28
26
  _.value.loadingHookInstalled = !1, n(), i();
29
27
  });
30
28
  }
@@ -40,53 +38,54 @@ const J = {
40
38
  }, X = {
41
39
  key: 1,
42
40
  class: "flex flex-col pt-[200px] gap-32 items-center"
43
- }, Y = { class: "flex flex-col gap-12 items-center text-center px-24 max-w-[1000px]" }, Z = { class: "fm-typo-en-title-lg-600" }, ee = { class: "text-fm-color-typo-secondary fm-typo-en-body-md-400" }, te = { class: "flex gap-16" }, oe = { href: "https://feedme.ai/product/inventory/features?tab=plans_%26_prices" }, ne = { href: "https://feedme.ai/form" }, re = /* @__PURE__ */ h({
41
+ }, Y = { class: "flex flex-col gap-12 items-center text-center px-24 max-w-[1000px]" }, Z = { class: "fm-typo-en-title-lg-600" }, ee = { class: "text-fm-color-typo-secondary fm-typo-en-body-md-400" }, te = { class: "flex gap-16" }, oe = { href: "https://feedme.ai/product/inventory/features?tab=plans_%26_prices" }, ne = { href: "https://feedme.ai/form" }, se = /* @__PURE__ */ h({
44
42
  __name: "InventoryView",
45
43
  setup(l) {
46
- const n = M(), i = D(), u = $(), a = x(), c = A(), o = q(), y = V(), { t: f } = G();
47
- b(
44
+ const n = k(), i = D(), u = H(), a = A(), c = C(), o = q(), y = O(), { t: d } = B();
45
+ I(
48
46
  [() => a.sessionUser.value, () => a.currentBusiness.value],
49
- ([t, r]) => {
50
- d(t, r);
47
+ ([t, s]) => {
48
+ f(t, s);
51
49
  }
52
- ), U(() => {
53
- const t = a.sessionUser.value, r = a.currentBusiness.value;
54
- d(t, r);
50
+ ), G(async () => {
51
+ await a.readBusinesses();
52
+ const t = a.sessionUser.value, s = a.currentBusiness.value;
53
+ f(t, s);
55
54
  });
56
- function d(t, r) {
57
- !t || !r || g();
55
+ function f(t, s) {
56
+ !t || !s || T();
58
57
  }
59
- async function g() {
58
+ async function T() {
60
59
  return await n.init(), await u.readSetting().catch((t) => {
61
60
  console.error("error on reading netsuite store", t);
62
61
  }), await i.init();
63
62
  }
64
- const N = R(() => c.currentRoute.value.name === e.TRANSFER_TEMPLATE ? y.enablePoTemplate : !0);
65
- return (t, r) => {
66
- const m = T("FmSpacer"), P = T("FmCircularProgress"), C = T("FmButton"), O = T("RouterView");
67
- return S(), I("div", null, [
68
- v(o).isLoading ? (S(), I("div", J, [
63
+ const N = g(() => c.currentRoute.value.name === e.TRANSFER_TEMPLATE ? y.enablePoTemplate : !0);
64
+ return (t, s) => {
65
+ const m = R("FmSpacer"), P = R("FmCircularProgress"), L = R("FmButton"), V = R("RouterView");
66
+ return S(), b("div", null, [
67
+ v(o).isLoading ? (S(), b("div", J, [
69
68
  E(m),
70
69
  p("div", null, [
71
70
  E(P, { size: "xl" })
72
71
  ]),
73
- r[0] || (r[0] = p("div", { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary pl-8" }, "Loading page...", -1)),
72
+ s[0] || (s[0] = p("div", { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary pl-8" }, "Loading page...", -1)),
74
73
  E(m)
75
- ])) : N.value ? v(a).sessionUser.value ? (S(), B(O, { key: 2 })) : F("", !0) : (S(), I("div", X, [
74
+ ])) : N.value ? v(a).sessionUser.value ? (S(), U(V, { key: 2 })) : M("", !0) : (S(), b("div", X, [
76
75
  p("div", Y, [
77
- p("div", Z, w(v(f)("inventory.common.proPlan.title")), 1),
78
- p("div", ee, w(v(f)("inventory.common.proPlan.subtitle")), 1)
76
+ p("div", Z, x(v(d)("inventory.common.proPlan.title")), 1),
77
+ p("div", ee, x(v(d)("inventory.common.proPlan.subtitle")), 1)
79
78
  ]),
80
79
  p("div", te, [
81
80
  p("a", oe, [
82
- E(C, {
83
- label: v(f)("inventory.common.proPlan.comparePlans"),
81
+ E(L, {
82
+ label: v(d)("inventory.common.proPlan.comparePlans"),
84
83
  variant: "secondary"
85
84
  }, null, 8, ["label"])
86
85
  ]),
87
86
  p("a", ne, [
88
- E(C, {
89
- label: v(f)("inventory.common.proPlan.callUs"),
87
+ E(L, {
88
+ label: v(d)("inventory.common.proPlan.callUs"),
90
89
  "prepend-icon": "call"
91
90
  }, null, 8, ["label"])
92
91
  ])
@@ -95,18 +94,18 @@ const J = {
95
94
  ]);
96
95
  };
97
96
  }
98
- }), se = { class: "h-full flex flex-col overflow-auto py-16" }, ae = /* @__PURE__ */ h({
97
+ }), re = { class: "h-full flex flex-col overflow-auto py-16" }, ae = /* @__PURE__ */ h({
99
98
  __name: "NavigationTab",
100
99
  setup(l) {
101
- const n = K(), i = A(), u = x(), a = V(), c = Q(), { t: o } = G();
102
- b([() => u.currentBusiness.value, () => n.name], ([t, r]) => {
103
- (t == null ? void 0 : t.menuVersion) === "v3" && (r === e.INGREDIENTS || r === e.RECIPE || r === e.UNIT) && i.push({ name: e.STOCK });
100
+ const n = $(), i = C(), u = A(), a = O(), c = Q(), { t: o } = B();
101
+ I([() => u.currentBusiness.value, () => n.name], ([t, s]) => {
102
+ (t == null ? void 0 : t.menuVersion) === "v3" && (s === e.INGREDIENTS || s === e.RECIPE || s === e.UNIT) && i.push({ name: e.STOCK });
104
103
  });
105
- const y = R(() => {
106
- var r;
104
+ const y = g(() => {
105
+ var s;
107
106
  const t = [
108
107
  {
109
- label: s(e.STOCK, o),
108
+ label: r(e.STOCK, o),
110
109
  // icon: 'inventory_2',
111
110
  children: [
112
111
  {
@@ -114,28 +113,41 @@ const J = {
114
113
  value: e.STOCK
115
114
  },
116
115
  {
117
- label: s(e.CLOSING_TEMPLATE, o),
116
+ label: r(e.WASTAGE_TEMPLATE, o),
117
+ value: e.WASTAGE_TEMPLATE
118
+ }
119
+ ]
120
+ },
121
+ {
122
+ label: "Closing",
123
+ children: [
124
+ {
125
+ label: r(e.CLOSING_TEMPLATE, o),
118
126
  value: e.CLOSING_TEMPLATE
127
+ },
128
+ {
129
+ label: r(e.CLOSING_DRAFT, o),
130
+ value: e.CLOSING_DRAFT
119
131
  }
120
132
  ]
121
133
  },
122
134
  {
123
- label: s(e.INGREDIENTS, o),
135
+ label: r(e.INGREDIENTS, o),
124
136
  // icon: 'grocery',
125
137
  value: e.INGREDIENTS
126
138
  },
127
139
  {
128
- label: s(e.INGREDIENT_GROUP, o),
140
+ label: r(e.INGREDIENT_GROUP, o),
129
141
  // icon: 'grocery',
130
142
  value: e.INGREDIENT_GROUP
131
143
  },
132
144
  {
133
- label: s(e.RECIPE, o),
145
+ label: r(e.RECIPE, o),
134
146
  // icon: 'weight',
135
147
  value: e.RECIPE
136
148
  },
137
149
  {
138
- label: s(e.UNIT, o),
150
+ label: r(e.UNIT, o),
139
151
  // icon: 'fastfood',
140
152
  value: e.UNIT
141
153
  },
@@ -144,41 +156,41 @@ const J = {
144
156
  // icon: 'swap_horiz',
145
157
  children: [
146
158
  {
147
- label: s(e.RECEIVE_REQUEST, o),
159
+ label: r(e.RECEIVE_REQUEST, o),
148
160
  value: e.RECEIVE_REQUEST
149
161
  },
150
162
  {
151
- label: s(e.APPROVAL, o),
163
+ label: r(e.APPROVAL, o),
152
164
  value: e.APPROVAL
153
165
  },
154
166
  ...a.enablePoTemplate ? [
155
167
  {
156
- label: s(e.TRANSFER_TEMPLATE, o),
168
+ label: r(e.TRANSFER_TEMPLATE, o),
157
169
  value: e.TRANSFER_TEMPLATE
158
170
  }
159
171
  ] : []
160
172
  ]
161
173
  },
162
174
  {
163
- label: s(e.SUPPLIER, o),
175
+ label: r(e.SUPPLIER, o),
164
176
  // icon: 'group',
165
177
  value: e.SUPPLIER
166
178
  },
167
179
  {
168
- label: s(e.WAREHOUSE, o),
180
+ label: r(e.WAREHOUSE, o),
169
181
  // icon: 'warehouse',
170
182
  value: e.WAREHOUSE
171
183
  },
172
184
  {
173
- label: s(e.INTEGRATION, o),
185
+ label: r(e.INTEGRATION, o),
174
186
  // icon: 'integration_instructions',
175
187
  value: e.INTEGRATION
176
188
  }
177
189
  ];
178
- return ((r = u.currentBusiness.value) == null ? void 0 : r.menuVersion) === "v3" ? t.filter(
190
+ return ((s = u.currentBusiness.value) == null ? void 0 : s.menuVersion) === "v3" ? t.filter(
179
191
  (m) => m.value !== e.INGREDIENTS && m.value !== e.RECIPE && m.value !== e.UNIT
180
192
  ) : t;
181
- }), f = R({
193
+ }), d = g({
182
194
  get() {
183
195
  if (n.name)
184
196
  return String(n.name);
@@ -186,35 +198,35 @@ const J = {
186
198
  set(t) {
187
199
  t && i.push({ name: t });
188
200
  }
189
- }), d = R(
201
+ }), f = g(
190
202
  () => {
191
203
  var t;
192
204
  return `NavigationTab.${(t = u.currentBusiness.value) == null ? void 0 : t._id}`;
193
205
  }
194
- ), g = L(!1), N = R({
206
+ ), T = w(!1), N = g({
195
207
  get() {
196
- return g.value;
208
+ return T.value;
197
209
  },
198
210
  set(t) {
199
- g.value = t, t || c.setItem(d.value, "true");
211
+ T.value = t, t || c.setItem(f.value, "true");
200
212
  }
201
213
  });
202
- return b([() => d.value], () => {
203
- g.value = !1, setTimeout(() => {
204
- N.value = !c.getItem(d.value);
214
+ return I([() => f.value], () => {
215
+ T.value = !1, setTimeout(() => {
216
+ N.value = !c.getItem(f.value);
205
217
  }, 2e3);
206
- }), (t, r) => {
207
- const m = T("FmCollapsibleTabs");
208
- return S(), I("div", se, [
218
+ }), (t, s) => {
219
+ const m = R("FmCollapsibleTabs");
220
+ return S(), b("div", re, [
209
221
  E(m, {
210
- modelValue: f.value,
211
- "onUpdate:modelValue": r[0] || (r[0] = (P) => f.value = P),
222
+ modelValue: d.value,
223
+ "onUpdate:modelValue": s[0] || (s[0] = (P) => d.value = P),
212
224
  items: y.value
213
225
  }, null, 8, ["modelValue", "items"])
214
226
  ]);
215
227
  };
216
228
  }
217
- }), le = /* @__PURE__ */ W(ae, [["__scopeId", "data-v-0fe980e2"]]);
229
+ }), le = /* @__PURE__ */ K(ae, [["__scopeId", "data-v-4515fce1"]]);
218
230
  typeof Promise.withResolvers > "u" && (Promise.withResolvers = () => {
219
231
  let l, n;
220
232
  return { promise: new Promise((u, a) => {
@@ -224,11 +236,11 @@ typeof Promise.withResolvers > "u" && (Promise.withResolvers = () => {
224
236
  typeof Promise.prototype.delayed > "u" && (Promise.prototype.delayed = async function(l) {
225
237
  return await new Promise((n) => setTimeout(n, l)), Promise.resolve(this);
226
238
  });
227
- const Se = /* @__PURE__ */ h({
239
+ const _e = /* @__PURE__ */ h({
228
240
  __name: "App",
229
241
  setup(l) {
230
- const n = x(), i = j(), u = H();
231
- U(() => {
242
+ const n = A(), i = j(), u = W();
243
+ G(() => {
232
244
  if (window.location.href.includes("print-preview")) {
233
245
  n.setEmbedded(!0);
234
246
  return;
@@ -236,7 +248,7 @@ const Se = /* @__PURE__ */ h({
236
248
  n.registerSidebarComponent(le), i.initGoogleMap(u.appApi.googleMap).catch(() => {
237
249
  console.error("Google map cannot be loaded");
238
250
  });
239
- }), b([() => n.currentCountry.value], () => {
251
+ }), I([() => n.currentCountry.value], () => {
240
252
  a();
241
253
  });
242
254
  async function a() {
@@ -247,9 +259,9 @@ const Se = /* @__PURE__ */ h({
247
259
  console.error("error when trying to reset businesses:", o);
248
260
  }
249
261
  }
250
- return (c, o) => (S(), B(re));
262
+ return (c, o) => (S(), U(se));
251
263
  }
252
264
  });
253
265
  export {
254
- Se as default
266
+ _e as default
255
267
  };
@@ -1,18 +1,15 @@
1
- import { defineComponent as ae, ref as g, watch as oe, computed as b, resolveComponent as re, openBlock as x, createBlock as J, unref as e, withCtx as y, createElementVNode as s, normalizeClass as ne, createVNode as n, normalizeStyle as se, toDisplayString as le, createElementBlock as ce, createCommentVNode as ie, Teleport as pe, mergeProps as ue } from "vue";
2
- import { u as me, w as v } from "./app-CwUHqg7h.js";
3
- import { b as de, u as fe, _ as ve, a as _e } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-CvtvzIt1.js";
4
- import { a as he, b as De, _ as ge } from "./TransferDetails.vue_vue_type_script_setup_true_lang-C9H41eg7.js";
5
- import { c as K } from "./date2-CHNm4ELK.js";
6
- import { _ as be, F as _ } from "./TableActionableRow.vue_vue_type_script_setup_true_lang-DlNJ6kRg.js";
7
- import { useBreakpoints as xe } from "@feedmepos/ui-library";
8
- import { useI18n as ye } from "@feedmepos/mf-common";
1
+ import { defineComponent as ae, ref as g, watch as oe, computed as b, resolveComponent as re, openBlock as y, createBlock as J, unref as e, withCtx as x, createElementVNode as s, normalizeClass as ne, createVNode as n, normalizeStyle as se, toDisplayString as le, createElementBlock as ce, createCommentVNode as ie, Teleport as ue, mergeProps as pe } from "vue";
2
+ import { u as me, ay as v, aI as de, ab as K, x as fe, y as ve, z as _e, B as he, E as _ } from "./app-AcMtTQ07.js";
3
+ import { a as De, b as ge, _ as be } from "./TransferDetails.vue_vue_type_script_setup_true_lang-jUYB4L8Y.js";
4
+ import { useBreakpoints as ye } from "@feedmepos/ui-library";
5
+ import { useI18n as xe } from "@feedmepos/mf-common";
9
6
  const we = { class: "flex flex-col py-8" }, Re = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, ke = { class: "fm-typo-en-body-lg-600 text-fm-color-typo-primary line-clamp-1" }, Oe = { class: "fm-typo-en-body-md-400 text-fm-color-typo-primary line-clamp-1" }, Se = {
10
7
  key: 0,
11
8
  class: "fm-typo-en-body-md-400 text-fm-color-typo-primary line-clamp-1"
12
- }, Te = { class: "pt-8" }, Ne = /* @__PURE__ */ ae({
9
+ }, Te = { class: "pt-8" }, Ye = /* @__PURE__ */ ae({
13
10
  __name: "ApprovalView",
14
11
  setup(Ce) {
15
- const o = he("approval"), { columnDefs: Q } = De("approval", o), W = me();
12
+ const o = De("approval"), { columnDefs: Q } = ge("approval", o), W = me();
16
13
  v.object({
17
14
  name: v.string().optional().nullable(),
18
15
  start: v.date().optional().nullable(),
@@ -38,7 +35,7 @@ const we = { class: "flex flex-col py-8" }, Re = { class: "fm-typo-en-body-md-40
38
35
  return;
39
36
  }
40
37
  });
41
- const h = g(""), { breakpoints: R } = xe(), D = b(() => R.value.xs || R.value.sm), X = b(() => D.value ? 10 : 20), Z = fe(), { t: k } = ye(), B = b(() => [
38
+ const h = g(""), { breakpoints: R } = ye(), D = b(() => R.value.xs || R.value.sm), X = b(() => D.value ? 10 : 20), Z = fe(), { t: k } = xe(), B = b(() => [
42
39
  {
43
40
  label: k("common.refresh"),
44
41
  value: "refresh"
@@ -52,12 +49,12 @@ const we = { class: "flex flex-col py-8" }, Re = { class: "fm-typo-en-body-md-40
52
49
  }
53
50
  return (c, l) => {
54
51
  const ee = re("FmTable");
55
- return x(), J(ve, {
52
+ return y(), J(ve, {
56
53
  title: e(k)("inventory.transfer.approval.title"),
57
54
  actions: B.value,
58
55
  "onClick:action": I
59
56
  }, {
60
- default: y(() => [
57
+ default: x(() => [
61
58
  s("div", {
62
59
  class: ne([
63
60
  "flex flex-col gap-8 max-h-full",
@@ -82,13 +79,13 @@ const we = { class: "flex flex-col py-8" }, Re = { class: "fm-typo-en-body-md-40
82
79
  onRowClick: l[1] || (l[1] = (r) => e(o).promptShowTransferDetails(r.original.purchaseOrder, r.original)),
83
80
  "page-size": X.value
84
81
  }, {
85
- "list-row": y((r) => [
86
- n(be, {
82
+ "list-row": x((r) => [
83
+ n(he, {
87
84
  row: r,
88
85
  onRowClick: (t) => e(o).promptShowTransferDetails(t.purchaseOrder, t)
89
86
  }, {
90
- default: y((t) => {
91
- var O, S, T, i, C, z, F, M, p, $, V, u, Y, m, q, L, N, P, j, d, A, E, H, U, f, G;
87
+ default: x((t) => {
88
+ var O, S, T, i, C, z, M, $, u, F, V, p, Y, m, q, E, L, N, P, d, j, A, H, U, f, G;
92
89
  return [
93
90
  s("div", we, [
94
91
  s("div", Re, [
@@ -99,20 +96,20 @@ const we = { class: "flex flex-col py-8" }, Re = { class: "fm-typo-en-body-md-40
99
96
  ]),
100
97
  s("div", ke, [
101
98
  n(e(_), {
102
- render: (M = (F = (z = t.to_name) == null ? void 0 : z.column) == null ? void 0 : F.columnDef) == null ? void 0 : M.cell,
103
- props: ($ = (p = t.to_name) == null ? void 0 : p.getContext) == null ? void 0 : $.call(p)
99
+ render: ($ = (M = (z = t.to_name) == null ? void 0 : z.column) == null ? void 0 : M.columnDef) == null ? void 0 : $.cell,
100
+ props: (F = (u = t.to_name) == null ? void 0 : u.getContext) == null ? void 0 : F.call(u)
104
101
  }, null, 8, ["render", "props"])
105
102
  ]),
106
- s("div", Oe, le((q = (m = (Y = (u = (V = r.original.purchaseOrder) == null ? void 0 : V.items) == null ? void 0 : u.map) == null ? void 0 : Y.call(u, (te) => `${te.name}`)) == null ? void 0 : m.join) == null ? void 0 : q.call(m, ", ")), 1),
107
- (L = r.original.purchaseOrder) != null && L.ref ? (x(), ce("div", Se, [
103
+ s("div", Oe, le((q = (m = (Y = (p = (V = r.original.purchaseOrder) == null ? void 0 : V.items) == null ? void 0 : p.map) == null ? void 0 : Y.call(p, (te) => `${te.name}`)) == null ? void 0 : m.join) == null ? void 0 : q.call(m, ", ")), 1),
104
+ (E = r.original.purchaseOrder) != null && E.ref ? (y(), ce("div", Se, [
108
105
  n(e(_), {
109
- render: (j = (P = (N = t.purchaseOrder_ref) == null ? void 0 : N.column) == null ? void 0 : P.columnDef) == null ? void 0 : j.cell,
110
- props: (A = (d = t.purchaseOrder_ref) == null ? void 0 : d.getContext) == null ? void 0 : A.call(d)
106
+ render: (P = (N = (L = t.purchaseOrder_ref) == null ? void 0 : L.column) == null ? void 0 : N.columnDef) == null ? void 0 : P.cell,
107
+ props: (j = (d = t.purchaseOrder_ref) == null ? void 0 : d.getContext) == null ? void 0 : j.call(d)
111
108
  }, null, 8, ["render", "props"])
112
109
  ])) : ie("", !0),
113
110
  s("div", Te, [
114
111
  n(e(_), {
115
- render: (U = (H = (E = t.purchaseOrder_status) == null ? void 0 : E.column) == null ? void 0 : H.columnDef) == null ? void 0 : U.cell,
112
+ render: (U = (H = (A = t.purchaseOrder_status) == null ? void 0 : A.column) == null ? void 0 : H.columnDef) == null ? void 0 : U.cell,
116
113
  props: (G = (f = t.purchaseOrder_status) == null ? void 0 : f.getContext) == null ? void 0 : G.call(f)
117
114
  }, null, 8, ["render", "props"])
118
115
  ])
@@ -125,8 +122,8 @@ const we = { class: "flex flex-col py-8" }, Re = { class: "fm-typo-en-body-md-40
125
122
  _: 1
126
123
  }, 8, ["style", "column-defs", "row-data", "search-value", "loading", "page-size"])
127
124
  ], 2),
128
- (x(), J(pe, { to: "body" }, [
129
- n(ge, ue(e(o).transferDetailsProps.value, {
125
+ (y(), J(ue, { to: "body" }, [
126
+ n(be, pe(e(o).transferDetailsProps.value, {
130
127
  onSubmitted: e(o).fetchData
131
128
  }), null, 16, ["onSubmitted"])
132
129
  ]))
@@ -137,5 +134,5 @@ const we = { class: "flex flex-col py-8" }, Re = { class: "fm-typo-en-body-md-40
137
134
  }
138
135
  });
139
136
  export {
140
- Ne as default
137
+ Ye as default
141
138
  };
@@ -1,13 +1,13 @@
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-CMV5e99K.js";
3
- import { a as L, G as S } from "./app-CwUHqg7h.js";
2
+ import { _ as V } from "./InventoryBindingForm.vue_vue_type_script_setup_true_lang-DIviTipZ.js";
3
+ import { a as L, aO as S } from "./app-AcMtTQ07.js";
4
4
  const U = {
5
5
  key: 0,
6
6
  class: "flex justify-end gap-8 items-center"
7
7
  }, E = {
8
8
  key: 1,
9
9
  class: "p-24 flex items-center justify-center gap-16"
10
- }, D = /* @__PURE__ */ C({
10
+ }, A = /* @__PURE__ */ C({
11
11
  __name: "BindingsDialog",
12
12
  setup(N) {
13
13
  const p = L(), d = o(!0), s = o(new Array()), u = o(), t = S(y);
@@ -90,5 +90,5 @@ const U = {
90
90
  }
91
91
  });
92
92
  export {
93
- D as default
93
+ A as default
94
94
  };
@@ -1,16 +1,15 @@
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 { F as M } from "./FmMultiselectDialog-CKBcMDGC.js";
3
- import { a as x, G as F } from "./app-CwUHqg7h.js";
4
- const z = {
2
+ import { a as M, aO as x, H as z } from "./app-AcMtTQ07.js";
3
+ const F = {
5
4
  key: 0,
6
5
  class: "flex flex-col gap-16"
7
6
  }, K = { class: "flex justify-end gap-8 items-center" }, w = {
8
7
  key: 1,
9
8
  class: "p-24 flex items-center justify-center gap-16"
10
- }, A = /* @__PURE__ */ S({
9
+ }, H = /* @__PURE__ */ S({
11
10
  __name: "BindingsPicker",
12
11
  setup(L) {
13
- const d = x(), C = r(() => d.recipes), I = r(() => d.skus), g = l(!0), i = l(new Array()), a = l("RECIPE"), c = r(() => a.value === "SKU" ? I.value.map((s) => ({
12
+ const d = M(), C = r(() => d.recipes), I = r(() => d.skus), g = l(!0), i = l(new Array()), a = l("RECIPE"), c = r(() => a.value === "SKU" ? I.value.map((s) => ({
14
13
  label: s.name,
15
14
  sublabel: s.code,
16
15
  value: s
@@ -63,7 +62,7 @@ const z = {
63
62
  ];
64
63
  }
65
64
  }
66
- }), _ = l(), o = F(B);
65
+ }), _ = l(), o = x(B);
67
66
  async function B() {
68
67
  await d.readInventory(), _.value = o.onMessage(
69
68
  "props:binding-items",
@@ -97,8 +96,8 @@ const z = {
97
96
  g.value ? (p(), f("div", w, [
98
97
  u(t, { size: "md" }),
99
98
  s[1] || (s[1] = k("div", null, "Loading bindings dialog...", -1))
100
- ])) : (p(), f("div", z, [
101
- u(M, {
99
+ ])) : (p(), f("div", F, [
100
+ u(z, {
102
101
  "model-value": b.value,
103
102
  "onUpdate:modelValue": s[0] || (s[0] = (m) => b.value = m),
104
103
  items: c.value
@@ -120,5 +119,5 @@ const z = {
120
119
  }
121
120
  });
122
121
  export {
123
- A as default
122
+ H as default
124
123
  };
@@ -1,12 +1,8 @@
1
1
  import { defineComponent as _, ref as c, provide as C, computed as f, resolveComponent as b, openBlock as p, createBlock as h, h as z, onMounted as B, onUnmounted as I, createElementBlock as y, createVNode as N, createElementVNode as x } from "vue";
2
- import { F as v, a as E, G as F } from "./app-CwUHqg7h.js";
3
- import "./index-BMJHz32O.js";
2
+ import { F as v, a as E, aO as F } from "./app-AcMtTQ07.js";
4
3
  import { components as L } from "@feedmepos/ui-library";
5
- import "./fuzzy-DXqhGaFi.js";
6
- /* empty css */
7
4
  import "@feedmepos/mf-common";
8
- import "./dayjs.min-FE3dpxHU.js";
9
- const P = /* @__PURE__ */ _({
5
+ const O = /* @__PURE__ */ _({
10
6
  __name: "binding-ui",
11
7
  props: {
12
8
  items: { default: () => [] },
@@ -26,17 +22,17 @@ const P = /* @__PURE__ */ _({
26
22
  C("closeDialog", () => {
27
23
  u.value.isOpen = !u.value.isOpen;
28
24
  });
29
- const s = k, m = d, a = f(() => s.items.map((e) => ({
25
+ const o = k, m = d, a = f(() => o.items.map((e) => ({
30
26
  key: e.key,
31
27
  name: e.name,
32
28
  _skuLinked: e.bindings.filter(
33
- ({ type: n, id: o }) => n === v.enum.SKU && s.skus.some((l) => l._id === o)
29
+ ({ type: n, id: s }) => n === v.enum.SKU && o.skus.some((l) => l._id === s)
34
30
  ).length,
35
31
  _recipeLinked: e.bindings.filter(
36
- ({ type: n, id: o }) => n === v.enum.RECIPE && s.recipes.some((l) => l._id === o)
32
+ ({ type: n, id: s }) => n === v.enum.RECIPE && o.recipes.some((l) => l._id === s)
37
33
  ).length,
38
34
  onUpdate: async () => {
39
- s.editable && m("click:open-binding-dialog", s.type, e);
35
+ o.editable && m("click:open-binding-dialog", o.type, e);
40
36
  }
41
37
  }))), g = [
42
38
  {
@@ -49,7 +45,7 @@ const P = /* @__PURE__ */ _({
49
45
  header: "Ingredient",
50
46
  size: 200,
51
47
  cell(i) {
52
- const e = a.value.find((o) => o.key === i.row.original.key), n = e == null ? void 0 : e._skuLinked;
48
+ const e = a.value.find((s) => s.key === i.row.original.key), n = e == null ? void 0 : e._skuLinked;
53
49
  return n === 1 ? "1 item" : n ? `${n} items` : "Not set";
54
50
  }
55
51
  },
@@ -58,7 +54,7 @@ const P = /* @__PURE__ */ _({
58
54
  header: "Recipe",
59
55
  size: 200,
60
56
  cell(i) {
61
- const e = a.value.find((o) => o.key === i.row.original.key), n = e == null ? void 0 : e._recipeLinked;
57
+ const e = a.value.find((s) => s.key === i.row.original.key), n = e == null ? void 0 : e._recipeLinked;
62
58
  return n === 1 ? "1 item" : n ? `${n} items` : "Not set";
63
59
  }
64
60
  },
@@ -91,22 +87,22 @@ const P = /* @__PURE__ */ _({
91
87
  }, null, 8, ["row-data"]);
92
88
  };
93
89
  }
94
- }), R = {
90
+ }), P = {
95
91
  key: 1,
96
92
  class: "p-24 flex items-center justify-center gap-16"
97
- }, K = /* @__PURE__ */ _({
93
+ }, D = /* @__PURE__ */ _({
98
94
  __name: "BindingsTable",
99
95
  setup(k) {
100
- const d = E(), u = c(!0), s = c(new Array()), m = f(() => d.recipes), a = f(() => d.skus), g = c(""), i = F(n), e = c();
96
+ const d = E(), u = c(!0), o = c(new Array()), m = f(() => d.recipes), a = f(() => d.skus), g = c(""), i = F(n), e = c();
101
97
  async function n() {
102
98
  await d.readInventory(), e.value = i.onMessage(
103
99
  "props:grouped-bindings",
104
100
  (t) => {
105
- u.value = !1, s.value = t;
101
+ u.value = !1, o.value = t;
106
102
  }
107
103
  ), i.sendMessage("props:grouped-bindings");
108
104
  }
109
- async function o(t, r) {
105
+ async function s(t, r) {
110
106
  i.sendMessage("@click:open-binding-dialog", {
111
107
  key: t,
112
108
  binding: r
@@ -128,22 +124,22 @@ const P = /* @__PURE__ */ _({
128
124
  ref_key: "resizeableRef",
129
125
  ref: l
130
126
  }, [
131
- u.value ? (p(), y("div", R, [
127
+ u.value ? (p(), y("div", P, [
132
128
  N(w, { size: "md" }),
133
129
  r[0] || (r[0] = x("div", null, "Loading bindings table...", -1))
134
- ])) : (p(), h(P, {
130
+ ])) : (p(), h(O, {
135
131
  key: 0,
136
- items: s.value,
132
+ items: o.value,
137
133
  recipes: m.value,
138
134
  skus: a.value,
139
135
  type: g.value,
140
136
  editable: "",
141
- "onClick:openBindingDialog": o
137
+ "onClick:openBindingDialog": s
142
138
  }, null, 8, ["items", "recipes", "skus", "type"]))
143
139
  ], 512);
144
140
  };
145
141
  }
146
142
  });
147
143
  export {
148
- K as default
144
+ D as default
149
145
  };