@feedmepos/mf-inventory-portal 1.3.14-dev.1 → 1.3.14-dev.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (90) hide show
  1. package/dist/App-D1_jkD6L.js +309 -0
  2. package/dist/{ApprovalView-BxioAXpO.js → ApprovalView-CfF2FqsE.js} +12 -12
  3. package/dist/{BindingsDialog-Dn_hP7Ji.js → BindingsDialog-H-juP-az.js} +2 -2
  4. package/dist/{BindingsPicker-BEXOUaoI.js → BindingsPicker-ClruHF7p.js} +2 -2
  5. package/dist/{BindingsTable-CsRLA5J_.js → BindingsTable-Bx9pbFOO.js} +3 -3
  6. package/dist/{ClosingDraftView-DoH9ZcGA.js → ClosingDraftView-DN97Tao5.js} +137 -137
  7. package/dist/{ClosingHistoryView-BWf_gIrc.js → ClosingHistoryView-DsRYUqa2.js} +32 -32
  8. package/dist/{ClosingTemplateView-BKRxzvQX.js → ClosingTemplateView-f9zfsxCu.js} +14 -14
  9. package/dist/DefaultView-COVVxOrF.js +31 -0
  10. package/dist/{DeliveryOrderPrintPreview-HzspgQXj.js → DeliveryOrderPrintPreview-BMK4kBCQ.js} +11 -11
  11. package/dist/{FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-DstxeP1q.js → FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-Bqj_Ygmo.js} +23 -23
  12. package/dist/{FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-E9FFFhwx.js → FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-CK1ha_AY.js} +2 -2
  13. package/dist/{FmMultiselectDialog-3uKA-o0f.js → FmMultiselectDialog-BazT9oUX.js} +1 -1
  14. package/dist/{FmMultiselectDialog-uFZKKIiO.js → FmMultiselectDialog-_gUuhudi.js} +16 -16
  15. package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-C1KGaqi7.js → FmUnitInput.vue_vue_type_script_setup_true_lang-BBtAgdsA.js} +18 -18
  16. package/dist/{ImportView-zrNDzp3k.js → ImportView-jpkwuCXO.js} +6 -6
  17. package/dist/{IngredientBindedItem.vue_vue_type_script_setup_true_lang-B2vMgXVZ.js → IngredientBindedItem.vue_vue_type_script_setup_true_lang-DLJnF4do.js} +1 -1
  18. package/dist/{IngredientGroupView-HcAKvPur.js → IngredientGroupView-x3t1hyNn.js} +5 -5
  19. package/dist/{IngredientsView-CRB5UN-e.js → IngredientsView-BzWTnlb4.js} +15 -15
  20. package/dist/{IntegrationExplorerView-k3IHeiOU.js → IntegrationExplorerView-Bca3owbx.js} +5 -5
  21. package/dist/{IntegrationView-B3WeQTDB.js → IntegrationView-Dh1c4Qyo.js} +81 -81
  22. package/dist/{InventoryBindingForm-B-7SQKl2.js → InventoryBindingForm-B1sI1TGZ.js} +1 -1
  23. package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-DhPu_GyE.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-7NeE7Xos.js} +15 -15
  24. package/dist/{InventoryBindingSummary-Swi6A3W2.js → InventoryBindingSummary-R8zHPc52.js} +1 -1
  25. package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-Duv0At06.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-DMJVh7Nt.js} +1 -1
  26. package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang--gt60IlU.js → PremiumBadge.vue_vue_type_script_setup_true_lang-ChC9sEIk.js} +5 -5
  27. package/dist/{PublishView-B9HJT61I.js → PublishView-Bqp8Ww4J.js} +13 -13
  28. package/dist/{PurchaseOrderPrintPreview-sClUXkgt.js → PurchaseOrderPrintPreview-D7TCn8U-.js} +11 -11
  29. package/dist/{ReceiveRequestView-BbS55juS.js → ReceiveRequestView-oNBVAMYu.js} +23 -23
  30. package/dist/{RecipeView-BH3asOD4.js → RecipeView-D8Mvgji9.js} +50 -50
  31. package/dist/{SettingsView-BJAMNNhr.js → SettingsView-BJScLK9z.js} +30 -30
  32. package/dist/{StockView-DMLFY7d1.js → StockView-CRRdVCcD.js} +143 -143
  33. package/dist/{SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-DeiLMVin.js → SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-DUKv_LV6.js} +1 -1
  34. package/dist/{SupplierView-C3uBrEcc.js → SupplierView-DdBBIV8W.js} +12 -12
  35. package/dist/{SurchargeView-S9ByD9Nd.js → SurchargeView-DisBUPIs.js} +16 -16
  36. package/dist/{SystemTrailDialog.vue_vue_type_script_setup_true_lang-ha60Wy7z.js → SystemTrailDialog.vue_vue_type_script_setup_true_lang-CZ3Q3BAf.js} +2 -2
  37. package/dist/{TemplatePublishDialog.vue_vue_type_script_setup_true_lang-CfyCEElN.js → TemplatePublishDialog.vue_vue_type_script_setup_true_lang-CC7F5HVc.js} +1 -1
  38. package/dist/{TransferDetails.vue_vue_type_script_setup_true_lang-CKfs-ns0.js → TransferDetails.vue_vue_type_script_setup_true_lang-BLlg1Vka.js} +212 -212
  39. package/dist/{TransferTemplateView-zbn5CGiZ.js → TransferTemplateView-7ICJMF9z.js} +17 -17
  40. package/dist/{UnitCostHistoryView-LhvAybS8.js → UnitCostHistoryView-BMRDBQ58.js} +4 -4
  41. package/dist/{UnitDisplayControl.vue_vue_type_script_setup_true_lang-E2QCl521.js → UnitDisplayControl.vue_vue_type_script_setup_true_lang-mNXHzLN3.js} +4 -4
  42. package/dist/{UnitView-6oUdlUVo.js → UnitView-uUUYOjYn.js} +24 -24
  43. package/dist/{WarehouseView-DQFe99KT.js → WarehouseView-BfMf_iuj.js} +25 -25
  44. package/dist/{WastageTemplateView-BiYZqiT2.js → WastageTemplateView-BQYjJGZ-.js} +14 -14
  45. package/dist/{app-SnX9gL_k.js → app-B_zMegJc.js} +4571 -4564
  46. package/dist/app.d.ts +16 -0
  47. package/dist/app.js +1 -1
  48. package/dist/{closing-template-Ch--jBk-.js → closing-template-9vhx5Ji1.js} +1 -1
  49. package/dist/composable/useInventoryAccess.d.ts +11 -0
  50. package/dist/composable/useNavigationMenu.d.ts +14 -0
  51. package/dist/{date2-CGqqJOqr.js → date2-BMCS_Dsc.js} +1 -1
  52. package/dist/{dayjs.min-JnfBpNSN.js → dayjs.min-Dl26OaXo.js} +16 -16
  53. package/dist/{decimal-C-2MQYNP.js → decimal-e6OK2jkR.js} +2 -2
  54. package/dist/{defineDeepModel-CUJCBuvw.js → defineDeepModel-BvLlwxnd.js} +1 -1
  55. package/dist/{duplicate-template-BXg5EQRC.js → duplicate-template-Cnhu8Rxw.js} +1 -1
  56. package/dist/{empty-placeholder-wf6-BWE8.js → empty-placeholder-B0QU467o.js} +1 -1
  57. package/dist/{export-DUsFBcmf.js → export-CGvyGmeo.js} +1 -1
  58. package/dist/{feature-gkhmly57.js → feature-Do41WWzx.js} +23 -23
  59. package/dist/{format-time-from-id-D1RhcKfL.js → format-time-from-id-CqX_KaUG.js} +1 -1
  60. package/dist/{format-unit-display-DXs_-yEW.js → format-unit-display-D8qWmRXP.js} +11 -11
  61. package/dist/{import-export.helper-B84wW0eo.js → import-export.helper-85V8Ib5e.js} +6 -6
  62. package/dist/{index-Dp1GAjHf.js → index-C-CwnjUn.js} +3 -3
  63. package/dist/{index-artVJVqL.js → index-Cg3aLEhT.js} +1 -1
  64. package/dist/{index-D3XgyMwL.js → index-CtUF9Nsv.js} +1 -1
  65. package/dist/{inventory-core-dart.default-Bu1oVkLC.js → inventory-core-dart.default-B64FzAla.js} +1 -1
  66. package/dist/{lodash-DZbYS5Vn.js → lodash-U9ycVPlv.js} +1 -1
  67. package/dist/{lz-string-nX96TtT6.js → lz-string-0CgVsQoC.js} +13 -13
  68. package/dist/{netsuite-DQkJKCH9.js → netsuite-Du7-sXJt.js} +77 -77
  69. package/dist/{number-gRrApZRj.js → number-iJAzDfmj.js} +7 -7
  70. package/dist/{predefined-templates-D9bzSOz_.js → predefined-templates-LlSrXOXm.js} +1 -1
  71. package/dist/{purchase-order-template-BiE_We2X.js → purchase-order-template-DFuXb0rr.js} +1 -1
  72. package/dist/{recalculationUtils-zNt-EW5S.js → recalculationUtils-DWPnMW1G.js} +1 -1
  73. package/dist/router/name.d.ts +1 -0
  74. package/dist/{rules-CWFFr_mA.js → rules-DefSKiUN.js} +2 -2
  75. package/dist/{stock-C-34Vuxz.js → stock-BfF6peMd.js} +3 -3
  76. package/dist/{stock-V4Oy4QHQ.js → stock-Cx1BwdWs.js} +1 -1
  77. package/dist/{supplier-DbYagMhS.js → supplier-CU3iqdGr.js} +16 -16
  78. package/dist/{surcharge-CcvvfLHB.js → surcharge-D77J5opH.js} +12 -12
  79. package/dist/tsconfig.app.tsbuildinfo +1 -1
  80. package/dist/{use-ingredient-select-dialog-B4jFgJ5b.js → use-ingredient-select-dialog-B-jxV-79.js} +2 -2
  81. package/dist/{use-inventory-binding-dialog-20flYyGE.js → use-inventory-binding-dialog-BdTd5qPl.js} +2 -2
  82. package/dist/{use-template-enabled-locations-CpDMbAGF.js → use-template-enabled-locations-vFvaCjlH.js} +2 -2
  83. package/dist/{useHrmPermission-CZW6u2TS.js → useHrmPermission-CekUhyck.js} +4 -4
  84. package/dist/useNavigationMenu-BiLWMIip.js +162 -0
  85. package/dist/views/DefaultView.vue.d.ts +2 -0
  86. package/dist/{vue-i18n-CUrz9OVK.js → vue-i18n-C3_OsgSl.js} +372 -372
  87. package/dist/{xlsx-DBsOBE1z.js → xlsx-o7n1whCa.js} +398 -398
  88. package/dist/{xlsx.util-xziohm10.js → xlsx.util-D6nPboPW.js} +1 -1
  89. package/package.json +4 -4
  90. package/dist/App-Cb6qfRCz.js +0 -445
@@ -0,0 +1,309 @@
1
+ import { ref as k, onUnmounted as H, computed as y, defineComponent as N, watch as P, onMounted as $, resolveComponent as h, openBlock as m, createElementBlock as g, unref as x, createVNode as _, createElementVNode as n, toDisplayString as b, createBlock as C, createCommentVNode as U, withCtx as R, withDirectives as O, vModelText as j, Fragment as q, renderList as z, createTextVNode as A } from "vue";
2
+ import { _ as K } from "./empty-placeholder-B0QU467o.js";
3
+ import { u as Q, a as J, R as w, b as W } from "./app-B_zMegJc.js";
4
+ import { useCoreStore as T, useI18n as X } from "@feedmepos/mf-common";
5
+ import { useRouter as V, useRoute as Y } from "vue-router";
6
+ import { u as Z, a as ee, I as te } from "./feature-Do41WWzx.js";
7
+ import { u as ne } from "./netsuite-Du7-sXJt.js";
8
+ import { u as D } from "./useNavigationMenu-BiLWMIip.js";
9
+ import { u as oe } from "./useTabStorage-BkIVScW_.js";
10
+ import { F as se } from "./FmAdminBadge-DjnBAgyv.js";
11
+ import { u as re } from "./googlemap-BGi_aKUA.js";
12
+ function ae() {
13
+ return {
14
+ loadingHookInstalled: !1,
15
+ isLoading: !1
16
+ };
17
+ }
18
+ const F = k(ae());
19
+ function le() {
20
+ const p = V();
21
+ if (!F.value.loadingHookInstalled) {
22
+ F.value.loadingHookInstalled = !0;
23
+ const t = p.beforeEach(() => {
24
+ F.value.isLoading = !0;
25
+ }), u = p.afterEach(() => {
26
+ F.value.isLoading = !1;
27
+ });
28
+ H(() => {
29
+ F.value.loadingHookInstalled = !1, t(), u();
30
+ });
31
+ }
32
+ return {
33
+ get isLoading() {
34
+ return F.value.isLoading;
35
+ }
36
+ };
37
+ }
38
+ function ie() {
39
+ const { firstAccessibleRouteName: p } = D();
40
+ return { hasAnyAccessibleInventoryRoute: y(() => p.value !== null) };
41
+ }
42
+ const ue = {
43
+ key: 0,
44
+ class: "flex flex-col items-center w-full h-full gap-24"
45
+ }, ce = {
46
+ key: 1,
47
+ class: "flex flex-col pt-[200px] gap-32 items-center"
48
+ }, de = { class: "flex flex-col gap-12 items-center text-center px-24 max-w-[600px]" }, me = { class: "fm-typo-en-title-lg-600" }, pe = { class: "text-fm-color-typo-secondary fm-typo-en-body-md-400" }, fe = {
49
+ key: 2,
50
+ class: "flex flex-col pt-[200px] gap-32 items-center"
51
+ }, ve = { class: "flex flex-col gap-12 items-center text-center px-24 max-w-[1000px]" }, ge = { class: "fm-typo-en-title-lg-600" }, _e = { class: "text-fm-color-typo-secondary fm-typo-en-body-md-400" }, ye = { class: "flex gap-16" }, xe = { href: "https://feedme.ai/product/inventory/features?tab=plans_%26_prices" }, be = { href: "https://feedme.ai/form" }, he = /* @__PURE__ */ N({
52
+ __name: "InventoryView",
53
+ setup(p) {
54
+ const t = Q(), u = J(), i = ne(), r = T(), c = V(), a = le(), e = Z(), { t: l } = X(), { hasAnyAccessibleInventoryRoute: f } = ie();
55
+ P(
56
+ [() => r.sessionUser.value, () => r.currentBusiness.value],
57
+ ([v, d]) => {
58
+ o(v, d);
59
+ }
60
+ ), $(async () => {
61
+ await e.init(), await r.readBusinesses();
62
+ const v = r.sessionUser.value, d = r.currentBusiness.value;
63
+ o(v, d);
64
+ });
65
+ function o(v, d) {
66
+ !v || !d || s();
67
+ }
68
+ async function s() {
69
+ return await t.init(), await i.readSetting().catch((v) => {
70
+ console.error("[all] error on reading netsuite store", v);
71
+ }), await u.init();
72
+ }
73
+ const E = y(() => c.currentRoute.value.name === w.TRANSFER_TEMPLATE ? e.enablePoTemplate : c.currentRoute.value.name === w.INGREDIENT_GROUP ? e.enableIngredientGroup : !0), B = y(
74
+ () => c.currentRoute.value.matched.some((v) => {
75
+ var I;
76
+ const d = v.meta, S = d == null ? void 0 : d.validationManifest;
77
+ return (((I = S == null ? void 0 : S.requiredCaslPermissions) == null ? void 0 : I.length) ?? 0) > 0;
78
+ })
79
+ ), G = y(() => {
80
+ if (!r.sessionUser.value || !e.isLoaded) return !1;
81
+ const v = c.currentRoute.value.name === w.LOADING;
82
+ return !f.value && (v || B.value);
83
+ });
84
+ return (v, d) => {
85
+ const S = h("FmSpacer"), I = h("FmCircularProgress"), L = h("FmButton"), M = h("RouterView");
86
+ return m(), g("div", null, [
87
+ x(a).isLoading ? (m(), g("div", ue, [
88
+ _(S),
89
+ n("div", null, [
90
+ _(I, { size: "xl" })
91
+ ]),
92
+ d[0] || (d[0] = n("div", { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary pl-8" }, "Loading page...", -1)),
93
+ _(S)
94
+ ])) : G.value ? (m(), g("div", ce, [
95
+ d[1] || (d[1] = n("img", {
96
+ src: K,
97
+ alt: "No permission",
98
+ class: "w-[200px] h-[200px]"
99
+ }, null, -1)),
100
+ n("div", de, [
101
+ n("div", me, b(x(l)("inventory.common.noPermission.title")), 1),
102
+ n("div", pe, b(x(l)("inventory.common.noPermission.description")), 1)
103
+ ])
104
+ ])) : E.value ? x(r).sessionUser.value ? (m(), C(M, { key: 3 })) : U("", !0) : (m(), g("div", fe, [
105
+ n("div", ve, [
106
+ n("div", ge, b(x(l)("inventory.common.proPlan.title")), 1),
107
+ n("div", _e, b(x(l)("inventory.common.proPlan.subtitle")), 1)
108
+ ]),
109
+ n("div", ye, [
110
+ n("a", xe, [
111
+ _(L, {
112
+ label: x(l)("inventory.common.proPlan.comparePlans"),
113
+ variant: "secondary"
114
+ }, null, 8, ["label"])
115
+ ]),
116
+ n("a", be, [
117
+ _(L, {
118
+ label: x(l)("inventory.common.proPlan.callUs"),
119
+ "prepend-icon": "call"
120
+ }, null, 8, ["label"])
121
+ ])
122
+ ])
123
+ ]))
124
+ ]);
125
+ };
126
+ }
127
+ }), we = { class: "flex items-center gap-2" }, Se = { class: "text-xs text-gray-400 font-normal" }, Fe = { class: "flex flex-col gap-3" }, Re = { class: "max-h-[480px] flex flex-col gap-1" }, Ie = { class: "font-mono text-xs text-gray-700 break-all min-w-0" }, ke = {
128
+ key: 0,
129
+ class: "inline-flex items-center gap-1 text-xs font-medium text-green-700 bg-green-50 px-2 py-0.5 rounded-full"
130
+ }, Pe = {
131
+ key: 1,
132
+ class: "inline-flex items-center gap-1 text-xs font-medium text-red-700 bg-red-50 px-2 py-0.5 rounded-full"
133
+ }, Ne = {
134
+ key: 2,
135
+ class: "inline-flex items-center gap-1 text-xs font-medium text-gray-500 bg-gray-100 px-2 py-0.5 rounded-full"
136
+ }, Ee = {
137
+ key: 0,
138
+ class: "text-center text-sm text-gray-400 py-4"
139
+ }, Be = /* @__PURE__ */ N({
140
+ __name: "FmFeatureFlagDialog",
141
+ setup(p) {
142
+ const t = k(!1), u = k(""), i = y(() => {
143
+ const { getFlagValue: a } = ee();
144
+ return Object.values(te).map((e) => {
145
+ const l = a(e, (f) => f === "true");
146
+ return {
147
+ name: e,
148
+ enabled: l
149
+ };
150
+ });
151
+ }), r = y(() => {
152
+ const a = u.value.toLowerCase();
153
+ return a ? i.value.filter((e) => e.name.toLowerCase().includes(a)) : i.value;
154
+ }), c = y(() => {
155
+ const a = i.value.filter((f) => f.enabled === !0).length, e = i.value.filter((f) => f.enabled === !1).length, l = i.value.filter((f) => f.enabled === null).length;
156
+ return { enabled: a, disabled: e, unknown: l, total: i.value.length };
157
+ });
158
+ return (a, e) => {
159
+ const l = h("FmButton"), f = h("FmSpacer"), o = h("FmDialog");
160
+ return m(), C(o, {
161
+ modelValue: t.value,
162
+ "onUpdate:modelValue": e[2] || (e[2] = (s) => t.value = s),
163
+ overlay: !0
164
+ }, {
165
+ "dialog-button": R(() => [
166
+ _(se, null, {
167
+ default: R(() => [
168
+ _(l, {
169
+ variant: "secondary",
170
+ label: "Feature flags"
171
+ })
172
+ ]),
173
+ _: 1
174
+ })
175
+ ]),
176
+ "dialog-header": R(() => [
177
+ n("div", we, [
178
+ e[3] || (e[3] = n("span", null, "Feature Flags", -1)),
179
+ n("span", Se, b(c.value.enabled) + " enabled · " + b(c.value.disabled) + " disabled · " + b(c.value.unknown) + " unknown ", 1)
180
+ ])
181
+ ]),
182
+ "dialog-footer": R(() => [
183
+ _(f, { class: "sm:hidden xs:hidden" }),
184
+ _(l, {
185
+ class: "sm:w-full xs:w-full",
186
+ label: "Close",
187
+ size: "md",
188
+ variant: "primary",
189
+ onClick: e[1] || (e[1] = (s) => t.value = !1)
190
+ })
191
+ ]),
192
+ default: R(() => [
193
+ n("div", Fe, [
194
+ O(n("input", {
195
+ "onUpdate:modelValue": e[0] || (e[0] = (s) => u.value = s),
196
+ type: "text",
197
+ placeholder: "Search flags...",
198
+ class: "w-full px-3 py-2 text-sm border border-gray-300 rounded-md focus:outline-none focus:ring-1 focus:ring-blue-500"
199
+ }, null, 512), [
200
+ [j, u.value]
201
+ ]),
202
+ n("div", Re, [
203
+ (m(!0), g(q, null, z(r.value, (s) => (m(), g("div", {
204
+ key: s.name,
205
+ class: "flex items-start justify-between gap-2 px-3 py-2 rounded-md hover:bg-gray-50 text-sm"
206
+ }, [
207
+ n("span", Ie, b(s.name), 1),
208
+ s.enabled === !0 ? (m(), g("span", ke, e[4] || (e[4] = [
209
+ n("span", { class: "w-1.5 h-1.5 rounded-full bg-green-500" }, null, -1),
210
+ A(" Enabled ")
211
+ ]))) : s.enabled === !1 ? (m(), g("span", Pe, e[5] || (e[5] = [
212
+ n("span", { class: "w-1.5 h-1.5 rounded-full bg-red-500" }, null, -1),
213
+ A(" Disabled ")
214
+ ]))) : (m(), g("span", Ne, e[6] || (e[6] = [
215
+ n("span", { class: "w-1.5 h-1.5 rounded-full bg-gray-400" }, null, -1),
216
+ A(" Unknown ")
217
+ ])))
218
+ ]))), 128)),
219
+ r.value.length === 0 ? (m(), g("div", Ee, ' No flags matching "' + b(u.value) + '" ', 1)) : U("", !0)
220
+ ])
221
+ ])
222
+ ]),
223
+ _: 1
224
+ }, 8, ["modelValue"]);
225
+ };
226
+ }
227
+ }), Ae = { class: "h-full flex flex-col overflow-auto py-16 gap-2" }, Ce = /* @__PURE__ */ N({
228
+ __name: "NavigationTab",
229
+ setup(p) {
230
+ const t = Y(), u = V(), i = T(), r = oe(), { menuItems: c } = D();
231
+ P([() => i.currentBusiness.value, () => t.name], ([o, s]) => {
232
+ (o == null ? void 0 : o.menuVersion) === "v3" && (s === w.INGREDIENTS || s === w.RECIPE || s === w.UNIT) && u.push({ name: w.STOCK });
233
+ });
234
+ const a = y({
235
+ get() {
236
+ if (t.name)
237
+ return String(t.name);
238
+ },
239
+ set(o) {
240
+ o && u.push({ name: o });
241
+ }
242
+ }), e = y(
243
+ () => {
244
+ var o;
245
+ return `NavigationTab.${(o = i.currentBusiness.value) == null ? void 0 : o._id}`;
246
+ }
247
+ ), l = k(!1), f = y({
248
+ get() {
249
+ return l.value;
250
+ },
251
+ set(o) {
252
+ l.value = o, o || r.setItem(e.value, "true");
253
+ }
254
+ });
255
+ return P([() => e.value], () => {
256
+ l.value = !1, setTimeout(() => {
257
+ f.value = !r.getItem(e.value);
258
+ }, 2e3);
259
+ }), (o, s) => {
260
+ const E = h("FmCollapsibleTabs");
261
+ return m(), g("div", Ae, [
262
+ _(Be),
263
+ _(E, {
264
+ modelValue: a.value,
265
+ "onUpdate:modelValue": s[0] || (s[0] = (B) => a.value = B),
266
+ items: x(c)
267
+ }, null, 8, ["modelValue", "items"])
268
+ ]);
269
+ };
270
+ }
271
+ });
272
+ typeof Promise.withResolvers > "u" && (Promise.withResolvers = () => {
273
+ let p, t;
274
+ return { promise: new Promise((i, r) => {
275
+ p = i, t = r;
276
+ }), resolve: p, reject: t };
277
+ });
278
+ typeof Promise.prototype.delayed > "u" && (Promise.prototype.delayed = async function(p) {
279
+ return await new Promise((t) => setTimeout(t, p)), Promise.resolve(this);
280
+ });
281
+ const qe = /* @__PURE__ */ N({
282
+ __name: "App",
283
+ setup(p) {
284
+ const t = T(), u = re(), i = W();
285
+ $(() => {
286
+ if (window.location.href.includes("print-preview")) {
287
+ t.setEmbedded(!0), document.body.classList.add("print-mode");
288
+ return;
289
+ }
290
+ t.registerSidebarComponent(Ce), u.initGoogleMap(i.appApi.googleMap).catch(() => {
291
+ console.error("Google map cannot be loaded");
292
+ });
293
+ }), P([() => t.currentCountry.value], () => {
294
+ r();
295
+ });
296
+ async function r() {
297
+ var c;
298
+ try {
299
+ await t.readBusinesses(), t.currentBusiness.value = (c = t.businesses.value) == null ? void 0 : c.find((a) => a);
300
+ } catch (a) {
301
+ console.error("error when trying to reset businesses:", a);
302
+ }
303
+ }
304
+ return (c, a) => (m(), C(he));
305
+ }
306
+ });
307
+ export {
308
+ qe as default
309
+ };
@@ -1,17 +1,17 @@
1
1
  import { defineComponent as ce, ref as y, watch as de, computed as c, resolveComponent as fe, openBlock as x, createBlock as Z, unref as a, withCtx as T, createElementVNode as p, normalizeClass as ve, createVNode as u, normalizeStyle as he, toDisplayString as _e, createElementBlock as De, createCommentVNode as ge, Teleport as ye, mergeProps as be, isRef as Re } from "vue";
2
- import { u as Oe, m as b } from "./app-SnX9gL_k.js";
3
- import { a as Se, _ as Pe } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-E9FFFhwx.js";
4
- import { a as xe, P as w, b as Te, _ as we, c as ke } from "./TransferDetails.vue_vue_type_script_setup_true_lang-CKfs-ns0.js";
5
- import { b as I } from "./date2-CGqqJOqr.js";
2
+ import { u as Oe, U as b } from "./app-B_zMegJc.js";
3
+ import { a as Se, _ as Pe } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-CK1ha_AY.js";
4
+ import { a as xe, P as w, b as Te, _ as we, c as ke } from "./TransferDetails.vue_vue_type_script_setup_true_lang-BLlg1Vka.js";
5
+ import { b as I } from "./date2-BMCS_Dsc.js";
6
6
  import { u as qe, _ as Ce } from "./SingleColumnLayout.vue_vue_type_script_setup_true_lang-sUxHOj47.js";
7
7
  import { _ as Ne, F as R } from "./TableActionableRow.vue_vue_type_script_setup_true_lang-Ca_eYa8-.js";
8
8
  import { useBreakpoints as Ve } from "@feedmepos/ui-library";
9
9
  import { useI18n as Ae } from "@feedmepos/mf-common";
10
10
  import { P as Me, J as Fe } from "./app-DiX-EfV6.js";
11
- import { u as Le } from "./netsuite-DQkJKCH9.js";
12
- import { f as $e } from "./predefined-templates-D9bzSOz_.js";
13
- import "./inventory-core-dart.default-Bu1oVkLC.js";
14
- const ze = { class: "flex flex-col py-8" }, Ee = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Ue = { class: "fm-typo-en-body-lg-600 text-fm-color-typo-primary line-clamp-1" }, Ye = { class: "fm-typo-en-body-md-400 text-fm-color-typo-primary line-clamp-1" }, He = {
11
+ import { u as Le } from "./netsuite-Du7-sXJt.js";
12
+ import { f as $e } from "./predefined-templates-LlSrXOXm.js";
13
+ import "./inventory-core-dart.default-B64FzAla.js";
14
+ const ze = { class: "flex flex-col py-8" }, Ue = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Ee = { class: "fm-typo-en-body-lg-600 text-fm-color-typo-primary line-clamp-1" }, Ye = { class: "fm-typo-en-body-md-400 text-fm-color-typo-primary line-clamp-1" }, He = {
15
15
  key: 0,
16
16
  class: "fm-typo-en-body-md-400 text-fm-color-typo-primary line-clamp-1"
17
17
  }, je = { class: "pt-8" }, ot = /* @__PURE__ */ ce({
@@ -174,22 +174,22 @@ const ze = { class: "flex flex-col py-8" }, Ee = { class: "fm-typo-en-body-md-40
174
174
  onRowClick: (o) => a(s).promptShowTransferDetails(o.purchaseOrder, o)
175
175
  }, {
176
176
  default: T((o) => {
177
- var m, N, V, f, A, M, F, L, v, $, z, h, E, _, U, Y, H, j, J, D, G, K, Q, W, g, X;
177
+ var m, N, V, f, A, M, F, L, v, $, z, h, U, _, E, Y, H, j, J, D, G, K, Q, W, g, X;
178
178
  return [
179
179
  p("div", ze, [
180
- p("div", Ee, [
180
+ p("div", Ue, [
181
181
  u(a(R), {
182
182
  render: (V = (N = (m = o.purchaseOrder__id) == null ? void 0 : m.column) == null ? void 0 : N.columnDef) == null ? void 0 : V.cell,
183
183
  props: (A = (f = o.purchaseOrder__id) == null ? void 0 : f.getContext) == null ? void 0 : A.call(f)
184
184
  }, null, 8, ["render", "props"])
185
185
  ]),
186
- p("div", Ue, [
186
+ p("div", Ee, [
187
187
  u(a(R), {
188
188
  render: (L = (F = (M = o.to_name) == null ? void 0 : M.column) == null ? void 0 : F.columnDef) == null ? void 0 : L.cell,
189
189
  props: ($ = (v = o.to_name) == null ? void 0 : v.getContext) == null ? void 0 : $.call(v)
190
190
  }, null, 8, ["render", "props"])
191
191
  ]),
192
- p("div", Ye, _e((U = (_ = (E = (h = (z = t.original.purchaseOrder) == null ? void 0 : z.items) == null ? void 0 : h.map) == null ? void 0 : E.call(h, (me) => `${me.name}`)) == null ? void 0 : _.join) == null ? void 0 : U.call(_, ", ")), 1),
192
+ p("div", Ye, _e((E = (_ = (U = (h = (z = t.original.purchaseOrder) == null ? void 0 : z.items) == null ? void 0 : h.map) == null ? void 0 : U.call(h, (me) => `${me.name}`)) == null ? void 0 : _.join) == null ? void 0 : E.call(_, ", ")), 1),
193
193
  (Y = t.original.purchaseOrder) != null && Y.ref ? (x(), De("div", He, [
194
194
  u(a(R), {
195
195
  render: (J = (j = (H = o.purchaseOrder_ref) == null ? void 0 : H.column) == null ? void 0 : j.columnDef) == null ? void 0 : J.cell,
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as C, ref as t, 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-DhPu_GyE.js";
3
- import { a as L, ao as S } from "./app-SnX9gL_k.js";
2
+ import { _ as V } from "./InventoryBindingForm.vue_vue_type_script_setup_true_lang-7NeE7Xos.js";
3
+ import { a as L, ao as S } from "./app-B_zMegJc.js";
4
4
  const U = {
5
5
  key: 0,
6
6
  class: "flex justify-end gap-8 items-center"
@@ -1,6 +1,6 @@
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 } from "./FmMultiselectDialog-uFZKKIiO.js";
3
- import { a as x, ao as z } from "./app-SnX9gL_k.js";
2
+ import { a as M } from "./FmMultiselectDialog-_gUuhudi.js";
3
+ import { a as x, ao as z } from "./app-B_zMegJc.js";
4
4
  const F = {
5
5
  key: 0,
6
6
  class: "flex flex-col gap-16"
@@ -1,11 +1,11 @@
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, ao as R } from "./app-SnX9gL_k.js";
3
- import "./dayjs.min-JnfBpNSN.js";
2
+ import { F as b, a as P, ao as R } from "./app-B_zMegJc.js";
3
+ import "./dayjs.min-Dl26OaXo.js";
4
4
  import "@feedmepos/ui-library";
5
5
  /* empty css */
6
6
  import "@feedmepos/mf-common";
7
7
  import "./app-DiX-EfV6.js";
8
- import "./lodash-DZbYS5Vn.js";
8
+ import "./lodash-U9ycVPlv.js";
9
9
  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({
10
10
  __name: "binding-ui",
11
11
  props: {