@feedmepos/mf-inventory-portal 0.0.23-dev.42 → 0.0.23-dev.44
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.
- package/dist/{App-Cr-n7HVf.js → App-Bu28H-qV.js} +66 -63
- package/dist/{ApprovalView-BYHDmt9W.js → ApprovalView-Cgb6Getu.js} +20 -20
- package/dist/{BindingsDialog-CI0nYM1_.js → BindingsDialog-DGtPuzr1.js} +2 -2
- package/dist/{BindingsPicker-BVzF3C8O.js → BindingsPicker-BamL3_Vk.js} +3 -3
- package/dist/{BindingsTable-B21_9L2o.js → BindingsTable-C9FeglE4.js} +1 -1
- package/dist/{ClosingDraftView-k2Vsz8-W.js → ClosingDraftView-C_B1u3g1.js} +47 -47
- package/dist/{ClosingTemplateView-BLda7tYC.js → ClosingTemplateView-BxK3yAV4.js} +21 -21
- package/dist/{FmCustomAttribute.vue_vue_type_script_setup_true_lang-DUDOaU6F.js → FmCustomAttribute.vue_vue_type_script_setup_true_lang-DAWPJ65s.js} +11 -11
- package/dist/{FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-CXuer_x5.js → FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-D1PU7pae.js} +7 -7
- package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-Ds3yBf9U.js → FmUnitInput.vue_vue_type_script_setup_true_lang-D1AIFe-0.js} +37 -37
- package/dist/{IngredientGroupView-CgZ4YT3i.js → IngredientGroupView-S7ps5Bsc.js} +1 -1
- package/dist/{IngredientsView-tPERrF9O.js → IngredientsView-BesGBkXM.js} +14 -15
- package/dist/{IntegrationView-CoF_rdWv.js → IntegrationView-Bkf7zGLw.js} +1 -1
- package/dist/{InventoryBindingForm-BSnofTIL.js → InventoryBindingForm-DHwTsR2G.js} +1 -1
- package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-4d9oz7Xh.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-CseHejfD.js} +51 -51
- package/dist/{InventoryBindingSummary-qm9ZUFny.js → InventoryBindingSummary-COybHYsZ.js} +1 -1
- package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-CQY98Hj6.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-Cgv6gv2x.js} +1 -1
- package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-NUkiVop4.js → PremiumBadge.vue_vue_type_script_setup_true_lang-BGJNkqYH.js} +6 -6
- package/dist/PublishView-2EcaLsU2.js +192 -0
- package/dist/{PurchaseOrderPrintPreview-CIWiq2NB.js → PurchaseOrderPrintPreview-DPFfFQQd.js} +5 -5
- package/dist/ReceiveRequestView-Dnl79p8h.js +1843 -0
- package/dist/{RecipeView-CzWlx1Xv.js → RecipeView-CmaMGv6N.js} +25 -25
- package/dist/{StockView-IPXGJNN8.js → StockView-CLw8un14.js} +121 -122
- package/dist/{SupplierView-DuL3NXc0.js → SupplierView-DLcZ6HDt.js} +11 -12
- package/dist/{TransferDetails.vue_vue_type_script_setup_true_lang-82Bu89OE.js → TransferDetails.vue_vue_type_script_setup_true_lang-DgwS1KTx.js} +137 -137
- package/dist/{TransferTemplateView-BEaRafuO.js → TransferTemplateView-BRDq2_Zw.js} +81 -82
- package/dist/{UnitView-Cwo0mthQ.js → UnitView-rJrXqu8W.js} +14 -14
- package/dist/{WarehouseView-DzjQrpyv.js → WarehouseView-BwSLmicZ.js} +33 -33
- package/dist/api/inventory.d.ts +4 -0
- package/dist/{app-CpuFfqWF.js → app-F909rQ5n.js} +12512 -11478
- package/dist/app.d.ts +24 -0
- package/dist/app.js +1 -1
- package/dist/{decimal-bSGrDlvd.js → decimal-0pQSNdVz.js} +1 -1
- package/dist/{format-unit-display-D4gi2D-O.js → format-unit-display-CM40cl03.js} +60 -60
- package/dist/{index-Cn1ato-l.js → index-DzA11XLY.js} +88 -88
- package/dist/{index-COeURijn.js → index-rBUXpqWE.js} +3 -3
- package/dist/layout/SingleColumnLayout.vue.d.ts +1 -0
- package/dist/router/name.d.ts +1 -0
- package/dist/{stock-B1Rchi6n.js → stock-c68S1hmD.js} +3 -3
- package/dist/stores/feature.d.ts +34 -2
- package/dist/stores/location.d.ts +29 -1
- package/dist/{supplier-CeY_Gro-.js → supplier-CPuz6JVf.js} +1 -1
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{use-inventory-binding-dialog-BXqY40wn.js → use-inventory-binding-dialog-DjlU5nUb.js} +1 -1
- package/dist/views/adjustment-template/wastage-template/actions.d.ts +48 -0
- package/dist/views/adjustment-template/wastage-template/table.d.ts +48 -0
- package/dist/views/closing-draft/components/closing-draft-dialog/ClosingDraftDialog.vue.d.ts +8 -0
- package/dist/views/closing-draft/composables/use-closing-draft-table.d.ts +48 -0
- package/dist/views/closing-template/composables/use-closing-template-actions.d.ts +48 -0
- package/dist/views/closing-template/composables/use-closing-template-table.d.ts +48 -0
- package/dist/views/publish/PublishView.vue.d.ts +2 -0
- package/dist/views/receive-request/components/transfer-form/TransferForm.vue.d.ts +16 -0
- package/dist/views/receive-request/composables/use-receive-request-form.d.ts +24 -0
- package/dist/views/receive-request/composables/use-receive-request-table.d.ts +24 -0
- package/dist/views/transfer-template/components/transfer-template-form/composables/use-template-enabled-locations.d.ts +4 -0
- package/dist/views/transfer-template/composables/use-transfer-template-actions.d.ts +48 -0
- package/dist/views/transfer-template/composables/use-transfer-template-table.d.ts +48 -0
- package/dist/vue-i18n-BiavdzKQ.js +2365 -0
- package/package.json +1 -1
- package/dist/ReceiveRequestView-Dgt3FeGb.js +0 -4205
- package/dist/feature-D8aRYGen.js +0 -962
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { defineComponent as oe, mergeModels as
|
|
2
|
-
import {
|
|
1
|
+
import { defineComponent as oe, mergeModels as z, useModel as se, computed as v, ref as P, watch as O, inject as ie, resolveComponent as b, openBlock as f, createElementBlock as y, createElementVNode as u, createVNode as h, withCtx as g, renderSlot as T, normalizeClass as V, toDisplayString as x, withDirectives as le, vModelText as ae, createCommentVNode as q, createTextVNode as ue, createBlock as W, Fragment as re, renderList as me } from "vue";
|
|
2
|
+
import { $ as I, I as k, P as L, L as ce, j as M, aB as de, t as pe, K as fe, ah as ve, az as be, ay as ye } from "./app-F909rQ5n.js";
|
|
3
3
|
import "@feedmepos/ui-library";
|
|
4
4
|
function E() {
|
|
5
5
|
return {
|
|
@@ -27,7 +27,7 @@ function G(l, d = !1) {
|
|
|
27
27
|
if (s != !0)
|
|
28
28
|
return d ? s : !0;
|
|
29
29
|
const F = typeof l == "number" ? l : L(l, r.modelValue.measurement);
|
|
30
|
-
return ce(+r.amountAsString).precision > F ? `Cannot exceed precision more than ${
|
|
30
|
+
return ce(+r.amountAsString).precision > F ? `Cannot exceed precision more than ${M({
|
|
31
31
|
amount: 1,
|
|
32
32
|
precision: F
|
|
33
33
|
})}` : !0;
|
|
@@ -39,7 +39,7 @@ function Le(l) {
|
|
|
39
39
|
return d(r.modelValue.amount);
|
|
40
40
|
};
|
|
41
41
|
}
|
|
42
|
-
const
|
|
42
|
+
const he = { class: "flex flex-col" }, Me = { class: "flex flex-col" }, ge = { class: "flex-1" }, xe = { class: "flex items-center gap-4" }, Fe = { class: "flex-1 flex gap-4" }, Ae = { class: "shrink-0 grow basis-2/5" }, _e = {
|
|
43
43
|
key: 0,
|
|
44
44
|
class: "text-fm-color-typo-secondary"
|
|
45
45
|
}, Pe = {
|
|
@@ -54,9 +54,9 @@ const Me = { class: "flex flex-col" }, ge = { class: "flex flex-col" }, he = { c
|
|
|
54
54
|
}, Ue = {
|
|
55
55
|
class: "flex items-center",
|
|
56
56
|
style: { "pointer-events": "none" }
|
|
57
|
-
},
|
|
57
|
+
}, $e = /* @__PURE__ */ oe({
|
|
58
58
|
__name: "FmUnitInput",
|
|
59
|
-
props: /* @__PURE__ */
|
|
59
|
+
props: /* @__PURE__ */ z({
|
|
60
60
|
modelValue: {},
|
|
61
61
|
unit: {},
|
|
62
62
|
rules: {},
|
|
@@ -103,7 +103,7 @@ const Me = { class: "flex flex-col" }, ge = { class: "flex flex-col" }, he = { c
|
|
|
103
103
|
modelValue: {},
|
|
104
104
|
modelModifiers: {}
|
|
105
105
|
}),
|
|
106
|
-
emits: /* @__PURE__ */
|
|
106
|
+
emits: /* @__PURE__ */ z(["update:amount", "update:measurement"], ["update:modelValue"]),
|
|
107
107
|
setup(l, { emit: d }) {
|
|
108
108
|
const t = l, r = d, s = se(l, "modelValue"), F = k(), B = v(() => {
|
|
109
109
|
var n;
|
|
@@ -111,19 +111,19 @@ const Me = { class: "flex flex-col" }, ge = { class: "flex flex-col" }, he = { c
|
|
|
111
111
|
}), c = P((() => {
|
|
112
112
|
var o;
|
|
113
113
|
const e = ((o = s.value) == null ? void 0 : o.amount) ?? I.reset(), n = be(e), i = t.formatMinimumPrecision ?? n.precision, a = ye(n, i);
|
|
114
|
-
return
|
|
114
|
+
return M(a);
|
|
115
115
|
})());
|
|
116
|
-
|
|
116
|
+
O(c, (e) => {
|
|
117
117
|
const n = F(e), i = t.precision ?? B.value, o = typeof t.formatMinimumPrecision == "number" && t.formatMinimumPrecision > i ? t.formatMinimumPrecision : i;
|
|
118
118
|
n == !0 && (s.value = {
|
|
119
119
|
...s.value,
|
|
120
120
|
amount: pe(+e, o)
|
|
121
121
|
}), r("update:amount", e);
|
|
122
122
|
});
|
|
123
|
-
const
|
|
123
|
+
const Z = Symbol.for("fm:form-state"), D = ie(Z, null), A = v(() => t.disabled ?? (D == null ? void 0 : D.getDisabled()) ?? !1), J = P(), R = P(!1), $ = P(!1), Q = v(() => R.value || $.value), X = v(() => {
|
|
124
124
|
var a;
|
|
125
|
-
const i = [...t.unit.measurements.filter((o) => !o.name.toLocaleLowerCase().includes("inactive")).filter((o) => o.abbrev !== t.unit.abbrev || +
|
|
126
|
-
(o) => `${o.abbrev}${
|
|
125
|
+
const i = [...t.unit.measurements.filter((o) => !o.name.toLocaleLowerCase().includes("inactive")).filter((o) => o.abbrev !== t.unit.abbrev || +M(o.conversion) != 1).groupBy(
|
|
126
|
+
(o) => `${o.abbrev}${M(o.conversion)}`
|
|
127
127
|
).values()].map((o) => o[0]).flat();
|
|
128
128
|
return [
|
|
129
129
|
{
|
|
@@ -155,7 +155,7 @@ const Me = { class: "flex flex-col" }, ge = { class: "flex flex-col" }, he = { c
|
|
|
155
155
|
}
|
|
156
156
|
}
|
|
157
157
|
});
|
|
158
|
-
|
|
158
|
+
O(U, (e, n) => {
|
|
159
159
|
var m;
|
|
160
160
|
if (!t.convertAmountOnChangeUnit)
|
|
161
161
|
return;
|
|
@@ -163,7 +163,7 @@ const Me = { class: "flex flex-col" }, ge = { class: "flex flex-col" }, he = { c
|
|
|
163
163
|
value: w,
|
|
164
164
|
precision: N
|
|
165
165
|
});
|
|
166
|
-
c.value =
|
|
166
|
+
c.value = M(S);
|
|
167
167
|
});
|
|
168
168
|
const C = v(() => {
|
|
169
169
|
var e, n;
|
|
@@ -179,36 +179,36 @@ const Me = { class: "flex flex-col" }, ge = { class: "flex flex-col" }, he = { c
|
|
|
179
179
|
H(),
|
|
180
180
|
typeof t.precision == "number" ? G(t.precision) : G(t.unit)
|
|
181
181
|
] : [], ...Y.value]);
|
|
182
|
-
function
|
|
182
|
+
function j(e) {
|
|
183
183
|
const n = t.precision ?? B.value, a = typeof t.formatMinimumPrecision == "number" && t.formatMinimumPrecision > n ? t.formatMinimumPrecision : n, o = e.toFixed(a), p = o.includes(".") ? o.replace(/0+$/, "") : o;
|
|
184
184
|
return p.endsWith(".") ? p.slice(0, p.length - 1) : p;
|
|
185
185
|
}
|
|
186
186
|
function te() {
|
|
187
187
|
if (!t.stepper)
|
|
188
188
|
return;
|
|
189
|
-
const e = +c.value + +
|
|
190
|
-
c.value =
|
|
189
|
+
const e = +c.value + +M(t.stepper);
|
|
190
|
+
c.value = j(e);
|
|
191
191
|
}
|
|
192
192
|
function ne() {
|
|
193
193
|
if (!t.stepper)
|
|
194
194
|
return;
|
|
195
|
-
const e = +c.value - +
|
|
196
|
-
c.value =
|
|
195
|
+
const e = +c.value - +M(t.stepper);
|
|
196
|
+
c.value = j(e);
|
|
197
197
|
}
|
|
198
198
|
return (e, n) => {
|
|
199
199
|
const i = b("FmLabel"), a = b("FmIcon"), o = b("FmMenuItem"), p = b("FmMenu"), w = b("FmTooltip"), N = b("FmField"), S = b("FmFormGroup");
|
|
200
|
-
return f(), y("div",
|
|
201
|
-
u("div",
|
|
202
|
-
u("div",
|
|
203
|
-
|
|
200
|
+
return f(), y("div", he, [
|
|
201
|
+
u("div", Me, [
|
|
202
|
+
u("div", ge, [
|
|
203
|
+
h(i, {
|
|
204
204
|
label: e.label,
|
|
205
205
|
disabled: e.disabled,
|
|
206
206
|
required: e.labelMark === "required",
|
|
207
207
|
optional: e.labelMark === "optional"
|
|
208
208
|
}, null, 8, ["label", "disabled", "required", "optional"])
|
|
209
209
|
]),
|
|
210
|
-
|
|
211
|
-
default:
|
|
210
|
+
h(N, { focused: Q.value }, {
|
|
211
|
+
default: g(() => [
|
|
212
212
|
u("div", xe, [
|
|
213
213
|
T(e.$slots, "prepend"),
|
|
214
214
|
u("div", Fe, [
|
|
@@ -224,7 +224,7 @@ const Me = { class: "flex flex-col" }, ge = { class: "flex flex-col" }, he = { c
|
|
|
224
224
|
key: 1,
|
|
225
225
|
type: "text",
|
|
226
226
|
ref_key: "inputRef",
|
|
227
|
-
ref:
|
|
227
|
+
ref: J,
|
|
228
228
|
onFocus: n[0] || (n[0] = () => R.value = !0),
|
|
229
229
|
onBlur: n[1] || (n[1] = () => R.value = !1),
|
|
230
230
|
"onUpdate:modelValue": n[2] || (n[2] = (m) => c.value = m),
|
|
@@ -241,25 +241,25 @@ const Me = { class: "flex flex-col" }, ge = { class: "flex flex-col" }, he = { c
|
|
|
241
241
|
u("div", {
|
|
242
242
|
class: V([e.disabled ? "text-fm-color-typo-disabled" : "text-fm-color-typo-secondary"])
|
|
243
243
|
}, [
|
|
244
|
-
|
|
245
|
-
content:
|
|
244
|
+
h(w, { "z-index": 51 }, {
|
|
245
|
+
content: g(() => [
|
|
246
246
|
ue(x(C.value), 1)
|
|
247
247
|
]),
|
|
248
|
-
default:
|
|
248
|
+
default: g(() => [
|
|
249
249
|
e.disableUnit ? (f(), y("div", Pe, x(C.value), 1)) : (f(), W(p, {
|
|
250
250
|
key: 1,
|
|
251
|
-
onMenuChanged: n[3] || (n[3] = (m) =>
|
|
251
|
+
onMenuChanged: n[3] || (n[3] = (m) => $.value = m),
|
|
252
252
|
"z-index": 500,
|
|
253
253
|
placement: e.placement,
|
|
254
254
|
disabled: e.disabled
|
|
255
255
|
}, {
|
|
256
|
-
"menu-button":
|
|
256
|
+
"menu-button": g(() => [
|
|
257
257
|
u("div", Ie, [
|
|
258
258
|
u("div", ke, x(C.value), 1),
|
|
259
|
-
|
|
259
|
+
h(a, { name: "keyboard_arrow_down" })
|
|
260
260
|
])
|
|
261
261
|
]),
|
|
262
|
-
default:
|
|
262
|
+
default: g(() => [
|
|
263
263
|
u("div", Be, [
|
|
264
264
|
(f(!0), y(re, null, me(X.value, (m) => (f(), W(o, {
|
|
265
265
|
key: m.value ?? void 0,
|
|
@@ -281,7 +281,7 @@ const Me = { class: "flex flex-col" }, ge = { class: "flex flex-col" }, he = { c
|
|
|
281
281
|
onClick: te
|
|
282
282
|
}, [
|
|
283
283
|
u("div", Re, [
|
|
284
|
-
|
|
284
|
+
h(a, {
|
|
285
285
|
name: "expand_less",
|
|
286
286
|
size: "md"
|
|
287
287
|
})
|
|
@@ -292,7 +292,7 @@ const Me = { class: "flex flex-col" }, ge = { class: "flex flex-col" }, he = { c
|
|
|
292
292
|
onClick: ne
|
|
293
293
|
}, [
|
|
294
294
|
u("div", Ue, [
|
|
295
|
-
|
|
295
|
+
h(a, {
|
|
296
296
|
name: "expand_more",
|
|
297
297
|
size: "md"
|
|
298
298
|
})
|
|
@@ -306,7 +306,7 @@ const Me = { class: "flex flex-col" }, ge = { class: "flex flex-col" }, he = { c
|
|
|
306
306
|
_: 3
|
|
307
307
|
}, 8, ["focused"])
|
|
308
308
|
]),
|
|
309
|
-
|
|
309
|
+
h(S, {
|
|
310
310
|
class: "flex-1",
|
|
311
311
|
"model-value": { modelValue: s.value, amountAsString: String(c.value) },
|
|
312
312
|
info: e.labelInfo,
|
|
@@ -320,7 +320,7 @@ const Me = { class: "flex flex-col" }, ge = { class: "flex flex-col" }, he = { c
|
|
|
320
320
|
});
|
|
321
321
|
export {
|
|
322
322
|
Se as F,
|
|
323
|
-
|
|
323
|
+
$e as _,
|
|
324
324
|
Ve as a,
|
|
325
325
|
Le as b,
|
|
326
326
|
H as c,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ref as C, computed as F, defineComponent as Y, resolveComponent as S, openBlock as M, createBlock as O, withCtx as R, createElementVNode as x, createVNode as g, unref as l, createElementBlock as ee, toDisplayString as j, createTextVNode as te, watch as ue, isRef as ce, normalizeClass as de, normalizeStyle as me, createSlots as pe, Teleport as fe, normalizeProps as ve, guardReactiveProps as ge } from "vue";
|
|
2
|
-
import { a as J,
|
|
2
|
+
import { a as J, e as h, f as B, h as ye, D as oe, i as Q, H as be, m as _e, A as xe, J as ne, p as se, u as ke, z as he, _ as we, B as Se, E as Ie, G as ae } from "./app-F909rQ5n.js";
|
|
3
3
|
import { useDialog as le, useSnackbar as Z, useProxiedModel as Fe, useBreakpoints as Ce } from "@feedmepos/ui-library";
|
|
4
4
|
import { useI18n as W } from "@feedmepos/mf-common";
|
|
5
5
|
import { defineStore as ie, storeToRefs as re } from "pinia";
|
|
@@ -1,17 +1,16 @@
|
|
|
1
1
|
import { ref as j, defineComponent as oe, computed as S, resolveComponent as C, openBlock as f, createBlock as B, withCtx as V, createVNode as p, unref as m, createElementBlock as T, Fragment as Q, createElementVNode as d, createCommentVNode as Y, renderSlot as ve, createTextVNode as Ie, toDisplayString as D, normalizeClass as te, onMounted as et, watch as He, renderList as ue, isRef as Re, createSlots as Ye, normalizeStyle as tt, Teleport as Ae, normalizeProps as nt, guardReactiveProps as ot } from "vue";
|
|
2
|
-
import { a as le,
|
|
3
|
-
import { useDialog as
|
|
2
|
+
import { a as le, e as K, f as je, S as lt, h as at, D as Te, i as fe, A as ge, b as Me, j as Oe, k as be, t as qe, l as ce, m as xe, U as rt, n as st, M as it, o as De, c as Ge, C as ke, p as Pe, q as We, r as ut, s as Ke, v as dt, w as mt, I as ct, x as pt, y as vt, u as ft, z as yt, _ as gt, B as bt, E as ht, G as Be } from "./app-F909rQ5n.js";
|
|
3
|
+
import { useDialog as Ze, useSnackbar as he, useProxiedModel as Ne, useDialogChild as _t, useBreakpoints as xt } from "@feedmepos/ui-library";
|
|
4
4
|
import { i as kt, _ as Vt } from "./is-linked-ingredient-error-fJ2TJb3z.js";
|
|
5
5
|
import { useI18n as ae, useCoreStore as pe } from "@feedmepos/mf-common";
|
|
6
6
|
import { defineStore as St, storeToRefs as Ct } from "pinia";
|
|
7
7
|
import { g as wt, _ as Ve, S as Se } from "./StockForecast.vue_vue_type_style_index_0_lang-KLXSWvo5.js";
|
|
8
|
-
import { _ as Ft } from "./InventoryBindingForm.vue_vue_type_script_setup_true_lang-
|
|
9
|
-
import { _ as Ce, a as It } from "./FmCustomAttribute.vue_vue_type_script_setup_true_lang-
|
|
10
|
-
import { u as Ze } from "./feature-D8aRYGen.js";
|
|
8
|
+
import { _ as Ft } from "./InventoryBindingForm.vue_vue_type_script_setup_true_lang-CseHejfD.js";
|
|
9
|
+
import { _ as Ce, a as It } from "./FmCustomAttribute.vue_vue_type_script_setup_true_lang-DAWPJ65s.js";
|
|
11
10
|
import { _ as we } from "./PreviewBadge.vue_vue_type_script_setup_true_lang-CRZiQHjx.js";
|
|
12
11
|
import "./array-hChJVZLE.js";
|
|
13
12
|
const Fe = St("ingredientForm", function() {
|
|
14
|
-
const o =
|
|
13
|
+
const o = Ze(), y = he(), s = le(), n = j(!1), { t: l } = ae(), i = j();
|
|
15
14
|
function a() {
|
|
16
15
|
const b = {
|
|
17
16
|
unit: {},
|
|
@@ -318,7 +317,7 @@ const Et = {
|
|
|
318
317
|
emits: ["update:modelValue", "click:submit"],
|
|
319
318
|
setup(u, { expose: o, emit: y }) {
|
|
320
319
|
var me;
|
|
321
|
-
const { t: s } = ae(), n = u, l = y, i = le(), a = pe(), h =
|
|
320
|
+
const { t: s } = ae(), n = u, l = y, i = le(), a = pe(), h = Ge(), k = Me(), g = S(() => k.isEnabled);
|
|
322
321
|
function b(t) {
|
|
323
322
|
if (t.length === 0) return;
|
|
324
323
|
const e = t[0], c = n.modelValue ?? {
|
|
@@ -1113,7 +1112,7 @@ function Je() {
|
|
|
1113
1112
|
id: "baseUnit",
|
|
1114
1113
|
name: "Base unit"
|
|
1115
1114
|
}
|
|
1116
|
-
], o =
|
|
1115
|
+
], o = Ge(), y = pe(), s = be(y.currentCountry.value);
|
|
1117
1116
|
return o.enableTotalCost && u.push(
|
|
1118
1117
|
{
|
|
1119
1118
|
id: "valuationMethod",
|
|
@@ -1142,8 +1141,8 @@ function yn() {
|
|
|
1142
1141
|
[],
|
|
1143
1142
|
n.map((k) => k.name),
|
|
1144
1143
|
...o.map((k) => n.map((g) => k[g.id]))
|
|
1145
|
-
], i = n.map((k) => `system:${k.id}`), a =
|
|
1146
|
-
return
|
|
1144
|
+
], i = n.map((k) => `system:${k.id}`), a = We(l, i), h = `${s == null ? void 0 : s.name} ingredients (${ut(/* @__PURE__ */ new Date())}).xlsx`;
|
|
1145
|
+
return Ke(a, h), h;
|
|
1147
1146
|
}
|
|
1148
1147
|
function gn() {
|
|
1149
1148
|
const o = pe().currentBusiness.value, y = Je(), s = [
|
|
@@ -1152,8 +1151,8 @@ function gn() {
|
|
|
1152
1151
|
["Menu version", o == null ? void 0 : o.menuVersion],
|
|
1153
1152
|
[],
|
|
1154
1153
|
y.map((a) => a.name)
|
|
1155
|
-
], n = y.map((a) => `system:${a.id}`), l =
|
|
1156
|
-
return
|
|
1154
|
+
], n = y.map((a) => `system:${a.id}`), l = We(s, n), i = "FeedMe ingredients template.xlsx";
|
|
1155
|
+
return Ke(l, i), i;
|
|
1157
1156
|
}
|
|
1158
1157
|
function bn(u) {
|
|
1159
1158
|
const [
|
|
@@ -1474,10 +1473,10 @@ const _n = { class: "flex items-center gap-12 pl-8" }, xn = { class: "flex flex-
|
|
|
1474
1473
|
]);
|
|
1475
1474
|
};
|
|
1476
1475
|
}
|
|
1477
|
-
}), Tn = { class: "flex flex-col py-8" }, Dn = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Pn = { class: "fm-typo-en-body-lg-600 text-fm-color-typo-primary" },
|
|
1476
|
+
}), Tn = { class: "flex flex-col py-8" }, Dn = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Pn = { class: "fm-typo-en-body-lg-600 text-fm-color-typo-primary" }, Zn = /* @__PURE__ */ oe({
|
|
1478
1477
|
__name: "IngredientsView",
|
|
1479
1478
|
setup(u) {
|
|
1480
|
-
const o = le(), y = S(() => o.skus), s = ft(), n =
|
|
1479
|
+
const o = le(), y = S(() => o.skus), s = ft(), n = Ze(), l = he(), i = Me(), { t: a } = ae(), { createIngredient: h, updateIngredient: k } = Fe(), { ingredientDialogProps: g, ingredientViewLoading: b } = Ct(Fe()), { columnDefs: r } = Mt();
|
|
1481
1480
|
function _(P) {
|
|
1482
1481
|
switch (P) {
|
|
1483
1482
|
case "add":
|
|
@@ -1703,5 +1702,5 @@ const _n = { class: "flex items-center gap-12 pl-8" }, xn = { class: "flex flex-
|
|
|
1703
1702
|
}
|
|
1704
1703
|
});
|
|
1705
1704
|
export {
|
|
1706
|
-
|
|
1705
|
+
Zn as default
|
|
1707
1706
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ref as Q, computed as R, defineComponent as F, mergeModels as ge, useModel as pe, onMounted as ve, resolveComponent as O, openBlock as C, createElementBlock as V, createElementVNode as c, toDisplayString as L, unref as b, createVNode as M, createBlock as Z, withCtx as J, Fragment as G, renderList as U, normalizeClass as q, normalizeStyle as Ie, createSlots as be, createCommentVNode as K, withModifiers as ye, reactive as te, watch as ne, isRef as ie, Teleport as oe } from "vue";
|
|
2
2
|
import { E as Ee } from "./empty-placeholder-wf6-BWE8.js";
|
|
3
|
-
import { u as _, aJ as se, b as re, aK as le,
|
|
3
|
+
import { u as _, aJ as se, b as re, aK as le, aE as he, f as T, _ as Be, B as Ce } from "./app-F909rQ5n.js";
|
|
4
4
|
import { useSnackbar as ae, useDialogChild as Se, useDialog as de, useProxiedModel as ue, useBreakpoints as $ } from "@feedmepos/ui-library";
|
|
5
5
|
import { useI18n as Y, useCoreStore as ke } from "@feedmepos/mf-common";
|
|
6
6
|
function xe() {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { defineComponent as J, computed as _, reactive as Q, resolveComponent as x, openBlock as m, createElementBlock as y, createVNode as c, createElementVNode as n, toDisplayString as v, unref as
|
|
2
|
-
import { a as Z, aM as ee, aN as ne,
|
|
3
|
-
import { u as
|
|
4
|
-
import { _ as se, c as re, d as de } from "./FmUnitInput.vue_vue_type_script_setup_true_lang-
|
|
1
|
+
import { defineComponent as J, computed as _, reactive as Q, resolveComponent as x, openBlock as m, createElementBlock as y, createVNode as c, createElementVNode as n, toDisplayString as v, unref as i, createBlock as V, createCommentVNode as g, Fragment as R, renderList as N, withCtx as S, nextTick as X } from "vue";
|
|
2
|
+
import { a as Z, aM as ee, aN as ne, j as B, aO as oe, N as T, L as te, F as le } from "./app-F909rQ5n.js";
|
|
3
|
+
import { u as ie } from "./use-inventory-binding-dialog-DjlU5nUb.js";
|
|
4
|
+
import { _ as se, c as re, d as de } from "./FmUnitInput.vue_vue_type_script_setup_true_lang-D1AIFe-0.js";
|
|
5
5
|
import { useI18n as ae } from "@feedmepos/mf-common";
|
|
6
6
|
const ue = { class: "flex flex-col gap-24" }, me = { class: "flex flex-col gap-16" }, ce = { class: "flex items-center" }, pe = { class: "flex-1 fm-typo-en-title-sm-600" }, fe = { class: "flex flex-col" }, ye = { class: "flex py-8 px-12 border-b border-fm-color-neutral-gray-200 bg-fm-color-neutral-gray-100 h-[44px] items-center" }, ve = { class: "fm-typo-en-body-md-600 text-fm-color-typo-secondary" }, _e = {
|
|
7
7
|
class: "flex items-center w-full border-b border-fm-color-neutral-gray-100",
|
|
@@ -15,10 +15,10 @@ const ue = { class: "flex flex-col gap-24" }, me = { class: "flex flex-col gap-1
|
|
|
15
15
|
}, Be = { class: "flex flex-col gap-16" }, ke = { class: "flex items-center" }, Fe = { class: "flex-1 fm-typo-en-title-sm-600" }, Ie = { class: "flex flex-col" }, we = { class: "flex py-8 px-12 border-b border-fm-color-neutral-gray-200 bg-fm-color-neutral-gray-100 h-[44px] items-center" }, Ue = { class: "flex-1 fm-typo-en-body-md-600 text-fm-color-typo-secondary" }, Ee = { class: "fm-typo-en-body-md-600 text-fm-color-typo-secondary w-[150px] px-16" }, Ce = {
|
|
16
16
|
class: "flex items-center w-full",
|
|
17
17
|
style: { "min-height": "48px" }
|
|
18
|
-
}, Ae = { class: "flex-1 fm-typo-en-body-md-400 py-8 px-12" }, Re = { class: "line-clamp-1" },
|
|
18
|
+
}, Ae = { class: "flex-1 fm-typo-en-body-md-400 py-8 px-12" }, Re = { class: "line-clamp-1" }, Ne = { class: "w-[150px]" }, Se = {
|
|
19
19
|
key: 0,
|
|
20
20
|
class: "w-[52px]"
|
|
21
|
-
},
|
|
21
|
+
}, Te = { class: "flex flex-col px-12 pb-4" }, je = /* @__PURE__ */ J({
|
|
22
22
|
__name: "InventoryBindingForm",
|
|
23
23
|
props: {
|
|
24
24
|
id: {},
|
|
@@ -38,25 +38,25 @@ const ue = { class: "flex flex-col gap-24" }, me = { class: "flex flex-col gap-1
|
|
|
38
38
|
contains: s.modelValue
|
|
39
39
|
} : t),
|
|
40
40
|
skus: h.value
|
|
41
|
-
}).inventoryBindings.filter((t) => t.error).filter((t) => t.reason === ne.enum.circularDependency)),
|
|
41
|
+
}).inventoryBindings.filter((t) => t.error).filter((t) => t.reason === ne.enum.circularDependency)), D = _(
|
|
42
42
|
() => new Set(w.value.map((e) => {
|
|
43
43
|
var o;
|
|
44
44
|
return (o = e.bindingPaths[0]) == null ? void 0 : o.id;
|
|
45
45
|
}))
|
|
46
|
-
),
|
|
47
|
-
async function
|
|
46
|
+
), K = _(() => s.modelValue.filter((e) => e.type === "RECIPE")), { promptIngredientsBinding: $, promptRecipesBinding: j } = ie();
|
|
47
|
+
async function z() {
|
|
48
48
|
if (s.iframeMode) {
|
|
49
49
|
f("click:pick-inventory-bindings", "RECIPE");
|
|
50
50
|
return;
|
|
51
51
|
}
|
|
52
|
-
|
|
52
|
+
j(
|
|
53
53
|
s.modelValue,
|
|
54
54
|
(e) => f("update:modelValue", e),
|
|
55
55
|
s.id ? [s.id] : []
|
|
56
56
|
);
|
|
57
57
|
}
|
|
58
58
|
const U = _(() => s.modelValue.filter((e) => e.type === "SKU") ?? []);
|
|
59
|
-
async function
|
|
59
|
+
async function G() {
|
|
60
60
|
if (s.iframeMode) {
|
|
61
61
|
f("click:pick-inventory-bindings", "SKU");
|
|
62
62
|
return;
|
|
@@ -68,7 +68,7 @@ const ue = { class: "flex flex-col gap-24" }, me = { class: "flex flex-col gap-1
|
|
|
68
68
|
s.id ? [s.id] : []
|
|
69
69
|
);
|
|
70
70
|
}
|
|
71
|
-
function
|
|
71
|
+
function L(e, o, t) {
|
|
72
72
|
const r = +o;
|
|
73
73
|
let d = t;
|
|
74
74
|
o.length > 0 && isFinite(r) ? d = t.map((a) => (a.id !== e || (a.amount = te(r)), a)) : d = t.map((a) => (a.id !== e || (a.amount = { amount: 0, precision: 0 }), a)), f("update:modelValue", d);
|
|
@@ -79,7 +79,7 @@ const ue = { class: "flex flex-col gap-24" }, me = { class: "flex flex-col gap-1
|
|
|
79
79
|
}
|
|
80
80
|
function C(e) {
|
|
81
81
|
var t, r;
|
|
82
|
-
if (e.type !==
|
|
82
|
+
if (e.type !== le.enum.SKU)
|
|
83
83
|
throw new Error("Non-SKU binding does not have unit");
|
|
84
84
|
if (!((t = h.value.find((d) => d._id === e.id)) == null ? void 0 : t.unit))
|
|
85
85
|
throw new Error(`Cannot find ingredient: ${e.id}`);
|
|
@@ -127,37 +127,37 @@ const ue = { class: "flex flex-col gap-24" }, me = { class: "flex flex-col gap-1
|
|
|
127
127
|
}, null, 8, ["disabled", "model-value", "rules"]),
|
|
128
128
|
n("div", me, [
|
|
129
129
|
n("div", ce, [
|
|
130
|
-
n("div", pe, v(
|
|
130
|
+
n("div", pe, v(i(p)("inventory.inventoryBindings.recipe")), 1),
|
|
131
131
|
e.readonly ? g("", !0) : (m(), V(r, {
|
|
132
132
|
key: 0,
|
|
133
133
|
variant: "secondary",
|
|
134
134
|
"text-color": "primary",
|
|
135
135
|
"border-color": "primary",
|
|
136
|
-
label:
|
|
136
|
+
label: i(p)("inventory.inventoryBindings.linkRecipe"),
|
|
137
137
|
"prepend-icon": "link",
|
|
138
|
-
onClick:
|
|
138
|
+
onClick: z
|
|
139
139
|
}, null, 8, ["label"]))
|
|
140
140
|
]),
|
|
141
141
|
n("div", fe, [
|
|
142
142
|
n("div", ye, [
|
|
143
|
-
n("div", ve, v(
|
|
143
|
+
n("div", ve, v(i(p)("inventory.inventoryBindings.recipe")), 1),
|
|
144
144
|
o[0] || (o[0] = n("div", { class: "w-[200px]" }, null, -1)),
|
|
145
145
|
o[1] || (o[1] = n("div", { class: "w-[52px]" }, null, -1))
|
|
146
146
|
]),
|
|
147
|
-
(m(!0), y(R, null,
|
|
148
|
-
key:
|
|
147
|
+
(m(!0), y(R, null, N(K.value, (l) => (m(), V(t, {
|
|
148
|
+
key: l.id,
|
|
149
149
|
disabled: e.disabled,
|
|
150
|
-
modelValue: +
|
|
151
|
-
rules: [
|
|
150
|
+
modelValue: +i(B)(l.amount ?? { amount: 1, precision: 0 }),
|
|
151
|
+
rules: [i(oe)(0), i(T)(0)]
|
|
152
152
|
}, {
|
|
153
|
-
default:
|
|
153
|
+
default: S(({ invalid: k }) => {
|
|
154
154
|
var b;
|
|
155
155
|
return [
|
|
156
156
|
n("div", _e, [
|
|
157
157
|
n("div", ge, [
|
|
158
158
|
n("div", be, [
|
|
159
|
-
n("div", null, v((b = I.value.find((u) => u._id ===
|
|
160
|
-
|
|
159
|
+
n("div", null, v((b = I.value.find((u) => u._id === l.id)) == null ? void 0 : b.name), 1),
|
|
160
|
+
D.value.has(l.id) ? (m(), y("div", xe, [
|
|
161
161
|
c(d, {
|
|
162
162
|
name: "error",
|
|
163
163
|
color: "system-error-400",
|
|
@@ -171,8 +171,8 @@ const ue = { class: "flex flex-col gap-24" }, me = { class: "flex flex-col gap-1
|
|
|
171
171
|
c(a, {
|
|
172
172
|
class: "w-full",
|
|
173
173
|
disabled: e.disabled,
|
|
174
|
-
modelValue: +
|
|
175
|
-
"onUpdate:modelValue": (u) =>
|
|
174
|
+
modelValue: +i(B)(l.amount ?? { amount: 1, precision: 0 }),
|
|
175
|
+
"onUpdate:modelValue": (u) => L(l.id, u, e.modelValue),
|
|
176
176
|
invalid: k
|
|
177
177
|
}, null, 8, ["disabled", "modelValue", "onUpdate:modelValue", "invalid"])
|
|
178
178
|
]),
|
|
@@ -183,7 +183,7 @@ const ue = { class: "flex flex-col gap-24" }, me = { class: "flex flex-col gap-1
|
|
|
183
183
|
variant: "plain",
|
|
184
184
|
icon: "delete",
|
|
185
185
|
"icon-color": "#000000",
|
|
186
|
-
onClick: (u) => E(
|
|
186
|
+
onClick: (u) => E(l.id, e.modelValue)
|
|
187
187
|
}, null, 8, ["disabled", "onClick"])
|
|
188
188
|
]))
|
|
189
189
|
])
|
|
@@ -195,41 +195,41 @@ const ue = { class: "flex flex-col gap-24" }, me = { class: "flex flex-col gap-1
|
|
|
195
195
|
]),
|
|
196
196
|
n("div", Be, [
|
|
197
197
|
n("div", ke, [
|
|
198
|
-
n("div", Fe, v(
|
|
198
|
+
n("div", Fe, v(i(p)("inventory.inventoryBindings.ingredient")), 1),
|
|
199
199
|
e.readonly ? g("", !0) : (m(), V(r, {
|
|
200
200
|
key: 0,
|
|
201
201
|
variant: "secondary",
|
|
202
202
|
"text-color": "primary",
|
|
203
203
|
"border-color": "primary",
|
|
204
|
-
label:
|
|
204
|
+
label: i(p)("inventory.inventoryBindings.linkIngredient"),
|
|
205
205
|
"prepend-icon": "link",
|
|
206
|
-
onClick:
|
|
206
|
+
onClick: G
|
|
207
207
|
}, null, 8, ["label"]))
|
|
208
208
|
]),
|
|
209
209
|
n("div", Ie, [
|
|
210
210
|
n("div", we, [
|
|
211
|
-
n("div", Ue, v(
|
|
212
|
-
n("div", Ee, v(
|
|
211
|
+
n("div", Ue, v(i(p)("inventory.inventoryBindings.ingredient")), 1),
|
|
212
|
+
n("div", Ee, v(i(p)("inventory.inventoryBindings.amount")), 1),
|
|
213
213
|
o[3] || (o[3] = n("div", { class: "w-[52px]" }, null, -1))
|
|
214
214
|
]),
|
|
215
|
-
(m(!0), y(R, null,
|
|
215
|
+
(m(!0), y(R, null, N(U.value, (l, k) => {
|
|
216
216
|
var b;
|
|
217
217
|
return m(), y("div", {
|
|
218
|
-
key:
|
|
218
|
+
key: l.id,
|
|
219
219
|
class: "flex flex-col border-b border-fm-color-neutral-gray-100"
|
|
220
220
|
}, [
|
|
221
221
|
n("div", Ce, [
|
|
222
222
|
n("div", Ae, [
|
|
223
|
-
n("span", Re, v((b = h.value.find((u) => u._id ===
|
|
223
|
+
n("span", Re, v((b = h.value.find((u) => u._id === l.id)) == null ? void 0 : b.name), 1),
|
|
224
224
|
w.value.length ? (m(), V(H, {
|
|
225
225
|
key: 0,
|
|
226
226
|
variant: "plain",
|
|
227
227
|
placement: "bottom",
|
|
228
|
-
content:
|
|
228
|
+
content: i(p)("inventory.inventoryBindings.invalidWarning"),
|
|
229
229
|
"hide-arrow": !0,
|
|
230
230
|
"z-index": 50
|
|
231
231
|
}, {
|
|
232
|
-
default:
|
|
232
|
+
default: S(() => [
|
|
233
233
|
c(d, {
|
|
234
234
|
name: "error",
|
|
235
235
|
size: "sm",
|
|
@@ -239,37 +239,37 @@ const ue = { class: "flex flex-col gap-24" }, me = { class: "flex flex-col gap-1
|
|
|
239
239
|
_: 1
|
|
240
240
|
}, 8, ["content"])) : g("", !0)
|
|
241
241
|
]),
|
|
242
|
-
n("div",
|
|
242
|
+
n("div", Ne, [
|
|
243
243
|
c(se, {
|
|
244
|
-
"model-value": O(
|
|
245
|
-
"onUpdate:modelValue": (u) => Y(
|
|
246
|
-
"onUpdate:amount": (u) => q(
|
|
247
|
-
unit: C(
|
|
244
|
+
"model-value": O(l),
|
|
245
|
+
"onUpdate:modelValue": (u) => Y(l.id, u, e.modelValue),
|
|
246
|
+
"onUpdate:amount": (u) => q(l, u),
|
|
247
|
+
unit: C(l),
|
|
248
248
|
placement: k === U.value.length - 1 ? "top" : "bottom",
|
|
249
249
|
"convert-amount-on-change-unit": "",
|
|
250
250
|
disabled: e.readonly
|
|
251
251
|
}, null, 8, ["model-value", "onUpdate:modelValue", "onUpdate:amount", "unit", "placement", "disabled"])
|
|
252
252
|
]),
|
|
253
|
-
e.readonly ? g("", !0) : (m(), y("div",
|
|
253
|
+
e.readonly ? g("", !0) : (m(), y("div", Se, [
|
|
254
254
|
c(r, {
|
|
255
255
|
disabled: e.disabled,
|
|
256
256
|
type: "button",
|
|
257
257
|
variant: "tertiary",
|
|
258
258
|
icon: "delete",
|
|
259
|
-
onClick: (u) => E(
|
|
259
|
+
onClick: (u) => E(l.id, e.modelValue)
|
|
260
260
|
}, null, 8, ["disabled", "onClick"])
|
|
261
261
|
]))
|
|
262
262
|
]),
|
|
263
|
-
n("div",
|
|
263
|
+
n("div", Te, [
|
|
264
264
|
c(t, {
|
|
265
|
-
modelValue: +
|
|
266
|
-
rules: [
|
|
265
|
+
modelValue: +i(B)(l.amount ?? { amount: 1, precision: 0 }),
|
|
266
|
+
rules: [i(T)(0)]
|
|
267
267
|
}, null, 8, ["modelValue", "rules"]),
|
|
268
268
|
c(t, {
|
|
269
|
-
modelValue: W(
|
|
269
|
+
modelValue: W(l),
|
|
270
270
|
rules: [
|
|
271
|
-
|
|
272
|
-
|
|
271
|
+
i(re)(),
|
|
272
|
+
i(de)(C(l))
|
|
273
273
|
]
|
|
274
274
|
}, null, 8, ["modelValue", "rules"])
|
|
275
275
|
])
|
|
@@ -282,5 +282,5 @@ const ue = { class: "flex flex-col gap-24" }, me = { class: "flex flex-col gap-1
|
|
|
282
282
|
}
|
|
283
283
|
});
|
|
284
284
|
export {
|
|
285
|
-
|
|
285
|
+
je as _
|
|
286
286
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent as s, resolveComponent as c, openBlock as m, 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-
|
|
4
|
+
import { F as r } from "./app-F909rQ5n.js";
|
|
5
5
|
const B = /* @__PURE__ */ s({
|
|
6
6
|
__name: "InventoryBindingSummary",
|
|
7
7
|
props: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as y, computed as V, ref as w, watch as h, resolveComponent as u, openBlock as F, createBlock as A, withCtx as s, createVNode as g, createElementVNode as k, normalizeClass as K } from "vue";
|
|
2
|
-
import {
|
|
2
|
+
import { L as d } from "./app-F909rQ5n.js";
|
|
3
3
|
const _ = ["value", "disabled"], D = /* @__PURE__ */ y({
|
|
4
4
|
__name: "NumberPrecisionInput",
|
|
5
5
|
props: {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { aw as d, ax as f, X as _, u as h } from "./app-F909rQ5n.js";
|
|
2
2
|
import { useCoreStore as F } from "@feedmepos/mf-common";
|
|
3
|
-
import { ref as
|
|
3
|
+
import { ref as y, defineComponent as v, resolveComponent as p, openBlock as k, createElementBlock as g, renderSlot as x, createVNode as l, withCtx as S } from "vue";
|
|
4
4
|
function w(e, t) {
|
|
5
5
|
return t.map((r) => typeof r.selector == "function" ? r.selector(e) : e[r.selector]);
|
|
6
6
|
}
|
|
@@ -51,7 +51,7 @@ function O() {
|
|
|
51
51
|
purchaseOrderForecast: { skus: [] }
|
|
52
52
|
};
|
|
53
53
|
}
|
|
54
|
-
const c =
|
|
54
|
+
const c = y(O());
|
|
55
55
|
function C() {
|
|
56
56
|
return {
|
|
57
57
|
// state
|
|
@@ -82,7 +82,7 @@ function D(e) {
|
|
|
82
82
|
let t = e.substring(e.indexOf("_") + 1);
|
|
83
83
|
return t.includes("_") && (t = t.substring(0, t.lastIndexOf("_"))), Number.isNaN(Date.parse(t)) ? null : new Date(t).toISOString();
|
|
84
84
|
}
|
|
85
|
-
const b = { class: "flex items-center gap-8" }, B = "Experience enhanced inventory features with premium plan.", N = /* @__PURE__ */
|
|
85
|
+
const b = { class: "flex items-center gap-8" }, B = "Experience enhanced inventory features with premium plan.", N = /* @__PURE__ */ v({
|
|
86
86
|
__name: "PremiumBadge",
|
|
87
87
|
props: {
|
|
88
88
|
zIndex: {}
|
|
@@ -91,14 +91,14 @@ const b = { class: "flex items-center gap-8" }, B = "Experience enhanced invento
|
|
|
91
91
|
return (t, r) => {
|
|
92
92
|
const n = p("FmPill"), o = p("FmTooltip");
|
|
93
93
|
return k(), g("div", b, [
|
|
94
|
-
|
|
94
|
+
x(t.$slots, "default"),
|
|
95
95
|
l(o, {
|
|
96
96
|
variant: "plain",
|
|
97
97
|
placement: "top",
|
|
98
98
|
content: B,
|
|
99
99
|
"z-index": t.zIndex
|
|
100
100
|
}, {
|
|
101
|
-
default:
|
|
101
|
+
default: S(() => [
|
|
102
102
|
l(n, { variant: "premium" })
|
|
103
103
|
]),
|
|
104
104
|
_: 1
|