@feedmepos/mf-inventory-portal 1.2.10-dev.3 → 1.2.10-dev.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{App-D9otYMgh.js → App-DE0rygXX.js} +1 -1
- package/dist/{ApprovalView-Bue46U6e.js → ApprovalView-9H9G2OWv.js} +17 -17
- package/dist/{BindingsDialog-Xleskmvg.js → BindingsDialog-BjXHdsGH.js} +2 -2
- package/dist/{BindingsPicker-BeNF1NcZ.js → BindingsPicker-BijILjQH.js} +4 -4
- package/dist/{BindingsTable-ecWz3SHk.js → BindingsTable-DlSpPTRi.js} +1 -1
- package/dist/{ClosingDraftView-DkxOW9Ns.js → ClosingDraftView-BaDkJuyF.js} +123 -123
- package/dist/{ClosingTemplateView-BbnpVNYF.js → ClosingTemplateView-CdESDzwA.js} +26 -26
- package/dist/{DeliveryOrderPrintPreview-CH-IzSM9.js → DeliveryOrderPrintPreview-Bwrd33F_.js} +9 -9
- package/dist/{FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-DOR_Iu0w.js → FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-QlB_K9Yi.js} +16 -16
- package/dist/{FmMultiselectDialog-DBgk0_mV.js → FmMultiselectDialog-CLxZbi3l.js} +4 -4
- package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-DdxSlJRz.js → FmUnitInput.vue_vue_type_script_setup_true_lang-B6TbIvQI.js} +43 -43
- package/dist/{IngredientBindedItem.vue_vue_type_script_setup_true_lang-C22gncaQ.js → IngredientBindedItem.vue_vue_type_script_setup_true_lang-CtLFZtQZ.js} +7 -7
- package/dist/{IngredientGroupView-CrNLRll8.js → IngredientGroupView-DXQ2TKjI.js} +13 -13
- package/dist/IngredientsView-FLCGHbsn.js +2467 -0
- package/dist/{IntegrationView-DRwnqCf9.js → IntegrationView-BKI0tf68.js} +24 -25
- package/dist/{InventoryBindingForm-DU6B0J0B.js → InventoryBindingForm-BGov_1MJ.js} +1 -1
- package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-CLCDb25h.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-4IM7dQuV.js} +12 -12
- package/dist/{InventoryBindingSummary-BH2bWICt.js → InventoryBindingSummary-BQA0Sm_K.js} +1 -1
- package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-BD2hneTA.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-Bc5diF2E.js} +1 -1
- package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-GabOf_-7.js → PremiumBadge.vue_vue_type_script_setup_true_lang-s529wQrr.js} +1 -1
- package/dist/{PublishView-B510iDYx.js → PublishView-DhZ5eMg0.js} +19 -19
- package/dist/{PurchaseOrderPrintPreview-Cbsl8gcZ.js → PurchaseOrderPrintPreview-cMNE8VTL.js} +7 -7
- package/dist/{ReceiveRequestView-rKyNjRbk.js → ReceiveRequestView-Cv-Cgi_o.js} +80 -80
- package/dist/{RecipeView-C9dw-1_E.js → RecipeView-ipT51Tbl.js} +39 -39
- package/dist/{StockView-scnHVHGB.js → StockView-CKok9_oG.js} +833 -830
- package/dist/SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-BnAwlQE1.js +172 -0
- package/dist/{SupplierView-to6stKYV.js → SupplierView-cGpKVDGP.js} +4 -4
- package/dist/{TransferDetails.vue_vue_type_script_setup_true_lang-laVp-HrL.js → TransferDetails.vue_vue_type_script_setup_true_lang-0ule7sK7.js} +11 -12
- package/dist/{TransferTemplateView-VOgIhPGW.js → TransferTemplateView-DrlLa0ed.js} +109 -109
- package/dist/{UnitView-sr5QkKex.js → UnitView-YFAtJ0CL.js} +16 -16
- package/dist/{WarehouseView-CB3luO1P.js → WarehouseView-CV5pg-4p.js} +16 -16
- package/dist/{app-BpyxIAaY.js → app-CUMtg_U0.js} +8610 -8548
- package/dist/app.js +1 -1
- package/dist/{closing-template-CEJaVQKn.js → closing-template-Cyva214n.js} +1 -1
- package/dist/components/FmInventoryTableToolbar.vue.d.ts +7 -0
- package/dist/components/netsuite/ItemSubsidiaryTreeDialog.vue.d.ts +16 -0
- package/dist/{decimal-Dqff6QMJ.js → decimal-117ZlAfM.js} +1 -1
- package/dist/{format-unit-display-DcORb0K7.js → format-unit-display-BXHj4DAV.js} +3 -3
- package/dist/{index-CFfIlNHC.js → index-Da1f9OoS.js} +1 -1
- package/dist/{index-rTyWq-0n.js → index-PWnt_za9.js} +1 -1
- package/dist/{purchase-order-template-BFPrzfeR.js → purchase-order-template-AWsxLxPR.js} +1 -1
- package/dist/{stock-CkgmiPOr.js → stock-D7EiEqJe.js} +1 -1
- package/dist/stores/integration/netsuite.d.ts +25 -3
- package/dist/style.css +1 -1
- package/dist/{supplier-Db_-hKgm.js → supplier-DQmyhp0R.js} +1 -1
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{use-ingredient-select-dialog-CEEFJa9x.js → use-ingredient-select-dialog-C37DLY6c.js} +4 -4
- package/dist/{use-inventory-binding-dialog-C6Ev4777.js → use-inventory-binding-dialog-CmZereh8.js} +1 -1
- package/package.json +2 -2
- package/dist/FmAdminBadge-D4rqYlKu.js +0 -44
- package/dist/IngredientsView-DLK0Seww.js +0 -2319
- package/dist/SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-Dt1S8tTH.js +0 -158
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { ref as P, h as F, defineComponent as B, resolveComponent as R, openBlock as k, createElementBlock as I, createElementVNode as _, normalizeClass as Y, createTextVNode as Me, toDisplayString as C, unref as y, createCommentVNode as
|
|
2
|
-
import { u as ie,
|
|
1
|
+
import { ref as P, h as F, defineComponent as B, resolveComponent as R, openBlock as k, createElementBlock as I, createElementVNode as _, normalizeClass as Y, createTextVNode as Me, toDisplayString as C, unref as y, createCommentVNode as K, createVNode as $, withCtx as A, Fragment as j, renderList as W, computed as E, watch as Pe, createSlots as Fe, createBlock as L, isRef as Oe, normalizeStyle as Ye, Teleport as Ge, normalizeProps as Ke, guardReactiveProps as We, mergeProps as Je } from "vue";
|
|
2
|
+
import { u as ie, an as qe, D as Z, j as V, i as Qe, f as Re, ao as Xe, ap as ae, B as Ze, aq as Ae, C as Ee, a as ce, b as et, E as tt, G as Ve, H as nt, J as ot, ar as st, e as H, T as O, W as lt, as as at, p as rt, Q as Ue, A as it, at as ct, a9 as le, L as mt, O as ut, P as dt } from "./app-CUMtg_U0.js";
|
|
3
3
|
import { useI18n as z, useCoreStore as Le } from "@feedmepos/mf-common";
|
|
4
4
|
import { useDialog as te, useDialogChild as pt, useSnackbar as ne, FmButtonVariant as ee, components as N, useProxiedModel as ft, useBreakpoints as vt } from "@feedmepos/ui-library";
|
|
5
5
|
import { defineStore as Ne, storeToRefs as Be } from "pinia";
|
|
6
|
-
import { u as oe } from "./closing-template-
|
|
7
|
-
import { u as gt } from "./use-ingredient-select-dialog-
|
|
6
|
+
import { u as oe } from "./closing-template-Cyva214n.js";
|
|
7
|
+
import { u as gt } from "./use-ingredient-select-dialog-C37DLY6c.js";
|
|
8
8
|
const se = Ne(
|
|
9
9
|
"closingTemplateTable",
|
|
10
10
|
function() {
|
|
@@ -97,7 +97,7 @@ const se = Ne(
|
|
|
97
97
|
accessorKey: "_id",
|
|
98
98
|
header: () => l("inventory.closing.table.createdAt"),
|
|
99
99
|
cell(t) {
|
|
100
|
-
return
|
|
100
|
+
return qe(`${t.getValue()}`);
|
|
101
101
|
},
|
|
102
102
|
enableSorting: !0
|
|
103
103
|
},
|
|
@@ -550,7 +550,7 @@ const $t = { class: "flex items-center gap-12 pl-8" }, Ct = { class: "flex flex-
|
|
|
550
550
|
})
|
|
551
551
|
}, [
|
|
552
552
|
Me(C(r.name) + " ", 1),
|
|
553
|
-
r.type === "create" ? (k(), I("span", St, "(" + C(y(l)("inventory.closing.template.import.new")) + ")", 1)) :
|
|
553
|
+
r.type === "create" ? (k(), I("span", St, "(" + C(y(l)("inventory.closing.template.import.new")) + ")", 1)) : K("", !0)
|
|
554
554
|
], 2),
|
|
555
555
|
r.errors.length ? (k(), I("div", Dt, [
|
|
556
556
|
$(n, { "z-index": 50 }, {
|
|
@@ -568,7 +568,7 @@ const $t = { class: "flex items-center gap-12 pl-8" }, Ct = { class: "flex flex-
|
|
|
568
568
|
]),
|
|
569
569
|
_: 1
|
|
570
570
|
})
|
|
571
|
-
])) :
|
|
571
|
+
])) : K("", !0)
|
|
572
572
|
]),
|
|
573
573
|
_("div", {
|
|
574
574
|
class: Y([
|
|
@@ -703,7 +703,7 @@ const $t = { class: "flex items-center gap-12 pl-8" }, Ct = { class: "flex flex-
|
|
|
703
703
|
}, [
|
|
704
704
|
_("div", Et, C(l.value.name), 1)
|
|
705
705
|
], 2),
|
|
706
|
-
o.value ?
|
|
706
|
+
o.value ? K("", !0) : (k(), I("div", Vt, [
|
|
707
707
|
$(i, {
|
|
708
708
|
label: y(d)("inventory.ingredient.import.replaceFile"),
|
|
709
709
|
variant: a.value ? "destructive" : "secondary",
|
|
@@ -724,7 +724,7 @@ const $t = { class: "flex items-center gap-12 pl-8" }, Ct = { class: "flex flex-
|
|
|
724
724
|
}),
|
|
725
725
|
_("div", Lt, C(w), 1)
|
|
726
726
|
]))), 128))
|
|
727
|
-
])) :
|
|
727
|
+
])) : K("", !0)
|
|
728
728
|
])
|
|
729
729
|
]),
|
|
730
730
|
key: "0"
|
|
@@ -748,7 +748,7 @@ const $t = { class: "flex items-center gap-12 pl-8" }, Ct = { class: "flex flex-
|
|
|
748
748
|
errors: e.errors,
|
|
749
749
|
type: "update"
|
|
750
750
|
}, null, 8, ["name", "locations", "items", "errors"]))), 128))
|
|
751
|
-
])) :
|
|
751
|
+
])) : K("", !0)
|
|
752
752
|
], 64))
|
|
753
753
|
]);
|
|
754
754
|
};
|
|
@@ -992,7 +992,7 @@ const $t = { class: "flex items-center gap-12 pl-8" }, Ct = { class: "flex flex-
|
|
|
992
992
|
templateDetailsProps: x
|
|
993
993
|
};
|
|
994
994
|
});
|
|
995
|
-
var
|
|
995
|
+
var G = /* @__PURE__ */ ((u) => (u.Name = "Name", u.Unit = "Unit", u.Delete = "Delete", u))(G || {});
|
|
996
996
|
function Ht(u) {
|
|
997
997
|
return {
|
|
998
998
|
columnDefs: E(() => {
|
|
@@ -1194,7 +1194,7 @@ function Ht(u) {
|
|
|
1194
1194
|
})
|
|
1195
1195
|
};
|
|
1196
1196
|
}
|
|
1197
|
-
const jt = { class: "flex flex-col gap-16 py-12" }, Ot = { class: "flex" }, Yt = { class: "flex-1 flex flex-col" },
|
|
1197
|
+
const jt = { class: "flex flex-col gap-16 py-12" }, Ot = { class: "flex" }, Yt = { class: "flex-1 flex flex-col" }, Gt = { class: "fm-typo-en-title-sm-600 text-fm-color-typo-primary" }, Kt = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, Wt = { class: "flex flex-col gap-4" }, Jt = /* @__PURE__ */ B({
|
|
1198
1198
|
__name: "ClosingTemplateItem",
|
|
1199
1199
|
props: {
|
|
1200
1200
|
cellByColId: {},
|
|
@@ -1202,20 +1202,20 @@ const jt = { class: "flex flex-col gap-16 py-12" }, Ot = { class: "flex" }, Yt =
|
|
|
1202
1202
|
},
|
|
1203
1203
|
setup(u) {
|
|
1204
1204
|
const l = u, r = E(() => l.row), c = E(
|
|
1205
|
-
() => r.value.getVisibleCells().filter((o) => o.column.id !==
|
|
1205
|
+
() => r.value.getVisibleCells().filter((o) => o.column.id !== G.Name && o.column.id !== G.Delete)
|
|
1206
1206
|
);
|
|
1207
1207
|
return (o, n) => {
|
|
1208
1208
|
var g, m, f, a, v;
|
|
1209
1209
|
return k(), I("div", jt, [
|
|
1210
1210
|
_("div", Ot, [
|
|
1211
1211
|
_("div", Yt, [
|
|
1212
|
-
_("div",
|
|
1213
|
-
_("div",
|
|
1212
|
+
_("div", Gt, C(r.value.original.sku.name), 1),
|
|
1213
|
+
_("div", Kt, C(r.value.original.sku.code), 1)
|
|
1214
1214
|
]),
|
|
1215
1215
|
_("div", null, [
|
|
1216
1216
|
$(y(O), {
|
|
1217
|
-
render: (f = (m = (g = o.cellByColId[y(
|
|
1218
|
-
props: (v = (a = o.cellByColId[y(
|
|
1217
|
+
render: (f = (m = (g = o.cellByColId[y(G).Delete]) == null ? void 0 : g.column) == null ? void 0 : m.columnDef) == null ? void 0 : f.cell,
|
|
1218
|
+
props: (v = (a = o.cellByColId[y(G).Delete]) == null ? void 0 : a.getContext) == null ? void 0 : v.call(a)
|
|
1219
1219
|
}, null, 8, ["render", "props"])
|
|
1220
1220
|
])
|
|
1221
1221
|
]),
|
|
@@ -1236,7 +1236,7 @@ const jt = { class: "flex flex-col gap-16 py-12" }, Ot = { class: "flex" }, Yt =
|
|
|
1236
1236
|
]);
|
|
1237
1237
|
};
|
|
1238
1238
|
}
|
|
1239
|
-
}),
|
|
1239
|
+
}), qt = { class: "flex flex-col gap-16" }, Qt = { class: "flex flex-col gap-24" }, Xt = { class: "flex flex-col gap-16" }, Zt = { class: "flex items-center" }, en = { class: "flex-1 fm-typo-en-title-sm-600" }, tn = { class: "flex flex-col gap-16" }, nn = { class: "flex items-center" }, on = { class: "flex-1 gap-8 fm-typo-en-title-sm-600" }, sn = /* @__PURE__ */ B({
|
|
1240
1240
|
__name: "ClosingTemplateForm",
|
|
1241
1241
|
props: {
|
|
1242
1242
|
modelValue: {},
|
|
@@ -1313,7 +1313,7 @@ const jt = { class: "flex flex-col gap-16 py-12" }, Ot = { class: "flex" }, Yt =
|
|
|
1313
1313
|
disabled: t.disabled
|
|
1314
1314
|
}, {
|
|
1315
1315
|
default: A(() => [
|
|
1316
|
-
_("div",
|
|
1316
|
+
_("div", qt, [
|
|
1317
1317
|
_("div", Qt, [
|
|
1318
1318
|
$(i, {
|
|
1319
1319
|
label: y(o)("inventory.closing.form.name"),
|
|
@@ -1394,7 +1394,7 @@ const jt = { class: "flex flex-col gap-16 py-12" }, Ot = { class: "flex" }, Yt =
|
|
|
1394
1394
|
key: y(c).items.map((M) => M.sku._id).join(".")
|
|
1395
1395
|
}, {
|
|
1396
1396
|
default: A((M) => [
|
|
1397
|
-
$(
|
|
1397
|
+
$(Jt, {
|
|
1398
1398
|
row: D,
|
|
1399
1399
|
"cell-by-col-id": M
|
|
1400
1400
|
}, null, 8, ["row", "cell-by-col-id"])
|
|
@@ -1799,20 +1799,20 @@ const dn = /* @__PURE__ */ ct(mn, [["render", un]]), pn = { class: "flex flex-co
|
|
|
1799
1799
|
onRowClick: (U) => y(c)(U)
|
|
1800
1800
|
}, {
|
|
1801
1801
|
default: A((U) => {
|
|
1802
|
-
var ue, de, pe,
|
|
1802
|
+
var ue, de, pe, J, fe, ve, ge, ye, q, he, be, _e, xe, we, ke, Q, Te, $e, Ce, Ie, X, Se;
|
|
1803
1803
|
return [
|
|
1804
1804
|
_("div", Cn, [
|
|
1805
1805
|
_("div", In, [
|
|
1806
1806
|
_("div", Sn, [
|
|
1807
1807
|
$(y(O), {
|
|
1808
1808
|
render: (pe = (de = (ue = U._id) == null ? void 0 : ue.column) == null ? void 0 : de.columnDef) == null ? void 0 : pe.cell,
|
|
1809
|
-
props: (fe = (
|
|
1809
|
+
props: (fe = (J = U._id) == null ? void 0 : J.getContext) == null ? void 0 : fe.call(J)
|
|
1810
1810
|
}, null, 8, ["render", "props"])
|
|
1811
1811
|
]),
|
|
1812
1812
|
_("div", Dn, [
|
|
1813
1813
|
$(y(O), {
|
|
1814
1814
|
render: (ye = (ge = (ve = U.name) == null ? void 0 : ve.column) == null ? void 0 : ge.columnDef) == null ? void 0 : ye.cell,
|
|
1815
|
-
props: (he = (
|
|
1815
|
+
props: (he = (q = U.name) == null ? void 0 : q.getContext) == null ? void 0 : he.call(q)
|
|
1816
1816
|
}, null, 8, ["render", "props"])
|
|
1817
1817
|
]),
|
|
1818
1818
|
_("div", null, C((be = M.original.locations) != null && be.length ? y(l)("inventory.closing.table.enabledForN", {
|
|
@@ -1847,9 +1847,9 @@ const dn = /* @__PURE__ */ ct(mn, [["render", un]]), pn = { class: "flex flex-co
|
|
|
1847
1847
|
]),
|
|
1848
1848
|
_: 1
|
|
1849
1849
|
}, 8, ["title", "actions"]),
|
|
1850
|
-
(k(), L(
|
|
1851
|
-
$(dn,
|
|
1852
|
-
$(cn,
|
|
1850
|
+
(k(), L(Ge, { to: "body" }, [
|
|
1851
|
+
$(dn, Ke(We(y(m))), null, 16),
|
|
1852
|
+
$(cn, Je(y(g), {
|
|
1853
1853
|
onSubmitted: S[2] || (S[2] = (M) => y(v).fetchTemplates())
|
|
1854
1854
|
}), null, 16)
|
|
1855
1855
|
]))
|
package/dist/{DeliveryOrderPrintPreview-CH-IzSM9.js → DeliveryOrderPrintPreview-Bwrd33F_.js}
RENAMED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { defineComponent as x, computed as f, ref as h, onMounted as g, openBlock as u, createElementBlock as i, createElementVNode as t, createTextVNode as n, toDisplayString as e, createCommentVNode as d, Fragment as o, renderList as p, normalizeClass as _ } from "vue";
|
|
2
2
|
import { useRoute as k } from "vue-router";
|
|
3
|
-
import {
|
|
3
|
+
import { aG as y, at as w } from "./app-CUMtg_U0.js";
|
|
4
4
|
const c = { class: "purchase-box" }, A = { valign: "bottom" }, N = { class: "sub-header" }, O = ["src"], P = { style: { "padding-left": "10px" } }, C = { class: "address" }, D = { class: "text-right" }, R = {
|
|
5
5
|
key: 0,
|
|
6
6
|
class: "subtitle"
|
|
7
|
-
}, S = { class: "sub-header" }, E = { class: "caption" }, T = { class: "address" },
|
|
7
|
+
}, S = { class: "sub-header" }, E = { class: "caption" }, T = { class: "address" }, q = { class: "text-right" }, F = { class: "sub-header" }, I = { class: "address" }, U = { class: "purchase-body" }, B = { class: "text-left" }, H = { class: "text-left" }, L = { class: "text-left" }, M = { class: "text-left" }, V = { class: "text-left" }, G = { class: "text-right" }, J = { key: 0 }, j = {
|
|
8
8
|
key: 1,
|
|
9
9
|
style: { "padding-top": "30px" }
|
|
10
|
-
},
|
|
10
|
+
}, z = { valign: "bottom" }, Q = { class: "header" }, K = { class: "caption" }, W = {
|
|
11
11
|
class: "text-left",
|
|
12
12
|
style: { width: "20%" }
|
|
13
13
|
}, X = { class: "text-left" }, Y = {
|
|
@@ -88,9 +88,9 @@ const c = { class: "purchase-box" }, A = { valign: "bottom" }, N = { class: "sub
|
|
|
88
88
|
l[12] || (l[12] = t("br", null, null, -1))
|
|
89
89
|
])
|
|
90
90
|
]),
|
|
91
|
-
t("td",
|
|
91
|
+
t("td", q, [
|
|
92
92
|
l[18] || (l[18] = t("div", { class: "header" }, "Ship To", -1)),
|
|
93
|
-
t("div",
|
|
93
|
+
t("div", F, e(s.value.buyer.name), 1),
|
|
94
94
|
t("div", I, [
|
|
95
95
|
n(e(s.value.buyer.line1), 1),
|
|
96
96
|
l[15] || (l[15] = t("br", null, null, -1)),
|
|
@@ -161,14 +161,14 @@ const c = { class: "purchase-box" }, A = { valign: "bottom" }, N = { class: "sub
|
|
|
161
161
|
"text-warning": r.received != r.quantity
|
|
162
162
|
}])
|
|
163
163
|
}, e(r.received + "/" + r.quantity), 3),
|
|
164
|
-
t("td",
|
|
164
|
+
t("td", G, e(r.unit), 1)
|
|
165
165
|
]))), 128))
|
|
166
166
|
])
|
|
167
167
|
])
|
|
168
168
|
]),
|
|
169
169
|
l[24] || (l[24] = t("hr", null, null, -1)),
|
|
170
|
-
s.value.remark ? (u(), i("div",
|
|
171
|
-
s.value.deliveryOrders.length > 0 ? (u(), i("div",
|
|
170
|
+
s.value.remark ? (u(), i("div", J, "Remark: " + e(s.value.remark), 1)) : d("", !0),
|
|
171
|
+
s.value.deliveryOrders.length > 0 ? (u(), i("div", j, [
|
|
172
172
|
l[21] || (l[21] = t("hr", null, null, -1)),
|
|
173
173
|
l[22] || (l[22] = n(" Delivery History: ")),
|
|
174
174
|
(u(!0), i(o, null, p(s.value.deliveryOrders, (r, a) => (u(), i("div", {
|
|
@@ -176,7 +176,7 @@ const c = { class: "purchase-box" }, A = { valign: "bottom" }, N = { class: "sub
|
|
|
176
176
|
style: { padding: "10px 30px" }
|
|
177
177
|
}, [
|
|
178
178
|
t("table", null, [
|
|
179
|
-
t("tr",
|
|
179
|
+
t("tr", z, [
|
|
180
180
|
t("td", null, [
|
|
181
181
|
t("div", Q, "Ref: " + e(r.ref), 1),
|
|
182
182
|
t("div", K, e(r.createdAt), 1),
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { u as z } from "./supplier-
|
|
3
|
-
import { P as C } from "./format-unit-display-
|
|
4
|
-
import { computed as f, defineComponent as j, mergeModels as q, useModel as x, ref as W, resolveComponent as w, openBlock as
|
|
1
|
+
import { l as T, t as A, aE as M, u as R, aI as B, aT as D, n as H, aU as U } from "./app-CUMtg_U0.js";
|
|
2
|
+
import { u as z } from "./supplier-DQmyhp0R.js";
|
|
3
|
+
import { P as C } from "./format-unit-display-BXHj4DAV.js";
|
|
4
|
+
import { computed as f, defineComponent as j, mergeModels as q, useModel as x, ref as W, resolveComponent as w, openBlock as L, createElementBlock as O, normalizeStyle as $, createElementVNode as I, createVNode as J, withCtx as K, createBlock as V, createCommentVNode as E, Fragment as Q, renderList as X, unref as g } from "vue";
|
|
5
5
|
function Y(e, a, r) {
|
|
6
6
|
var o;
|
|
7
7
|
if (!!a.measurement === !!r && ((o = a.measurement) == null ? void 0 : o.id) === r)
|
|
@@ -32,7 +32,7 @@ function oe(e, a, r, u) {
|
|
|
32
32
|
const n = e.defaultCost ? Y(e.unit, e.defaultCost, e.trackingMeasurement) : void 0, o = l ?? n, p = o == null ? void 0 : o.costPerUnit, v = p ? o != null && o.measurement ? +T(p) / +T(o == null ? void 0 : o.measurement.conversion) : +T(p) : void 0, b = v ? r ? v * +T(r.conversion) : v : void 0, h = b ? +T(a) * b : void 0;
|
|
33
33
|
return {
|
|
34
34
|
cost: h ? {
|
|
35
|
-
...
|
|
35
|
+
...A(h ?? 0, 2),
|
|
36
36
|
currency: M()
|
|
37
37
|
} : {
|
|
38
38
|
amount: 0,
|
|
@@ -43,7 +43,7 @@ function oe(e, a, r, u) {
|
|
|
43
43
|
supplierOverrideCost: l ?? void 0
|
|
44
44
|
};
|
|
45
45
|
}
|
|
46
|
-
function
|
|
46
|
+
function k(e) {
|
|
47
47
|
const a = D.safeParse(e);
|
|
48
48
|
if (a.success) return a.data;
|
|
49
49
|
throw new Error("Invalid supplier data");
|
|
@@ -77,7 +77,7 @@ function ne(e, a, r = !1, u = !1) {
|
|
|
77
77
|
const t = u ? l.suppliers[0] : l.businessSuppliers[0], i = (r ? n.locations.filter((d) => d.doc._id !== n.currentLocation.doc._id) : n.locations)[0];
|
|
78
78
|
a({
|
|
79
79
|
...s,
|
|
80
|
-
supplier: t ?
|
|
80
|
+
supplier: t ? k(t) : i ? F(i) : s.supplier
|
|
81
81
|
});
|
|
82
82
|
});
|
|
83
83
|
const o = f(
|
|
@@ -93,10 +93,10 @@ function ne(e, a, r = !1, u = !1) {
|
|
|
93
93
|
set(s) {
|
|
94
94
|
const t = e() ?? {};
|
|
95
95
|
if (o.value === C.PURCHASE) {
|
|
96
|
-
const S = (u ? l.suppliers : l.businessSuppliers).find((
|
|
96
|
+
const S = (u ? l.suppliers : l.businessSuppliers).find((N) => N._id === s);
|
|
97
97
|
a({
|
|
98
98
|
...t,
|
|
99
|
-
supplier: S ?
|
|
99
|
+
supplier: S ? k(S) : t.supplier
|
|
100
100
|
});
|
|
101
101
|
return;
|
|
102
102
|
}
|
|
@@ -108,7 +108,7 @@ function ne(e, a, r = !1, u = !1) {
|
|
|
108
108
|
supplier: y ? F(y) : t.supplier
|
|
109
109
|
});
|
|
110
110
|
}
|
|
111
|
-
}), v = f(() => l.locationSuppliers.map(
|
|
111
|
+
}), v = f(() => l.locationSuppliers.map(k)), b = f(() => l.businessSuppliers.map(k)), h = f(() => {
|
|
112
112
|
const s = [...v.value], t = [...b.value];
|
|
113
113
|
return u ? [...t, ...s] : t;
|
|
114
114
|
}), c = f(() => {
|
|
@@ -139,7 +139,7 @@ function ne(e, a, r = !1, u = !1) {
|
|
|
139
139
|
const s = (y = (i = e()) == null ? void 0 : i.supplier) == null ? void 0 : y._id;
|
|
140
140
|
if (o.value === C.PURCHASE) {
|
|
141
141
|
const d = l.suppliers.find((S) => S._id === s);
|
|
142
|
-
return d ?
|
|
142
|
+
return d ? k(d) : null;
|
|
143
143
|
}
|
|
144
144
|
const m = n.allLocations.find((d) => d.doc._id);
|
|
145
145
|
return m ? F(m) : null;
|
|
@@ -176,7 +176,7 @@ const Z = { class: "overflow-y-auto h-full pb-8" }, ae = /* @__PURE__ */ j({
|
|
|
176
176
|
), l = f(() => u.value.search(r.value)), n = W();
|
|
177
177
|
return console.log({ stickyRef: n }), (o, p) => {
|
|
178
178
|
const v = w("FmButton"), b = w("FmTextField"), h = w("FmMenuItem");
|
|
179
|
-
return
|
|
179
|
+
return L(), O("div", {
|
|
180
180
|
class: "relative",
|
|
181
181
|
style: $({ width: o.width })
|
|
182
182
|
}, [
|
|
@@ -191,18 +191,18 @@ const Z = { class: "overflow-y-auto h-full pb-8" }, ae = /* @__PURE__ */ j({
|
|
|
191
191
|
placeholder: "Filter options"
|
|
192
192
|
}, {
|
|
193
193
|
append: K(() => [
|
|
194
|
-
r.value ? (
|
|
194
|
+
r.value ? (L(), V(v, {
|
|
195
195
|
key: 0,
|
|
196
196
|
variant: "tertiary",
|
|
197
197
|
"prepend-icon": "close",
|
|
198
198
|
onClick: p[0] || (p[0] = (c) => r.value = "")
|
|
199
|
-
})) :
|
|
199
|
+
})) : E("", !0)
|
|
200
200
|
]),
|
|
201
201
|
_: 1
|
|
202
202
|
}, 8, ["modelValue"])
|
|
203
203
|
], 512),
|
|
204
204
|
I("div", Z, [
|
|
205
|
-
(
|
|
205
|
+
(L(!0), O(Q, null, X(l.value, (c, P) => (L(), V(h, {
|
|
206
206
|
key: P,
|
|
207
207
|
label: c.label,
|
|
208
208
|
sublabel: c.sublabel,
|
|
@@ -213,7 +213,7 @@ const Z = { class: "overflow-y-auto h-full pb-8" }, ae = /* @__PURE__ */ j({
|
|
|
213
213
|
return g(U)(o.modelValue, c.value) && ((s = _.el) == null || s.scrollIntoView({ behavior: "instant", block: "end" }), (t = _.el) == null || t.scrollIntoView({ behavior: "smooth", block: "center" })), void 0;
|
|
214
214
|
}
|
|
215
215
|
}, null, 8, ["label", "sublabel", "model-value", "onClick", "onVnodeMounted"]))), 128)),
|
|
216
|
-
l.value.length ?
|
|
216
|
+
l.value.length ? E("", !0) : (L(), V(h, {
|
|
217
217
|
key: 0,
|
|
218
218
|
disabled: "",
|
|
219
219
|
label: "No options available"
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { defineStore as p } from "pinia";
|
|
2
|
-
import { useDialog as
|
|
3
|
-
import { useI18n as
|
|
4
|
-
import {
|
|
2
|
+
import { useDialog as v } from "@feedmepos/ui-library";
|
|
3
|
+
import { useI18n as y } from "@feedmepos/mf-common";
|
|
4
|
+
import { v as a } from "./app-CUMtg_U0.js";
|
|
5
5
|
import { h as S } from "vue";
|
|
6
6
|
const w = p("inventoryMultiSelectDialog", () => {
|
|
7
|
-
const l =
|
|
7
|
+
const l = v(), { t: n } = y();
|
|
8
8
|
return { multiSelect: async (s, t, c) => {
|
|
9
9
|
const o = c ?? ((e) => e), { promise: i, resolve: r } = Promise.withResolvers();
|
|
10
10
|
return l.open({
|
|
@@ -1,33 +1,33 @@
|
|
|
1
|
-
import { defineComponent as ie, mergeModels as W, useModel as ae, computed as v, ref as B, watch as E, onBeforeUnmount as le, inject as ue, resolveComponent as b, openBlock as d, createElementBlock as y, createElementVNode as u, createVNode as h, withCtx as F, renderSlot as G, normalizeClass as
|
|
2
|
-
import {
|
|
1
|
+
import { defineComponent as ie, mergeModels as W, useModel as ae, computed as v, ref as B, watch as E, onBeforeUnmount as le, inject as ue, resolveComponent as b, openBlock as d, createElementBlock as y, createElementVNode as u, createVNode as h, withCtx as F, renderSlot as G, normalizeClass as $, toDisplayString as _, withDirectives as re, vModelText as me, createCommentVNode as I, createTextVNode as ce, createBlock as U, Fragment as de, renderList as pe } from "vue";
|
|
2
|
+
import { $ as D, I as R, x as j, a0 as fe, l as x, aS as ve, t as be, bc as ye, Z as he, ax as xe, aQ as Me, aP as ge } from "./app-CUMtg_U0.js";
|
|
3
3
|
import "@feedmepos/ui-library";
|
|
4
4
|
function H() {
|
|
5
5
|
return {
|
|
6
|
-
amount:
|
|
6
|
+
amount: D.reset()
|
|
7
7
|
};
|
|
8
8
|
}
|
|
9
|
-
function
|
|
9
|
+
function Q() {
|
|
10
10
|
return function(f) {
|
|
11
|
-
return
|
|
11
|
+
return R()(f.amountAsString);
|
|
12
12
|
};
|
|
13
13
|
}
|
|
14
|
-
function
|
|
14
|
+
function Oe(l) {
|
|
15
15
|
return function(t) {
|
|
16
|
-
return
|
|
16
|
+
return R()(t.amountAsString) !== !0 ? !0 : +t.amountAsString < l ? `Must be at least ${l}` : !0;
|
|
17
17
|
};
|
|
18
18
|
}
|
|
19
19
|
function qe(l) {
|
|
20
20
|
return function(t) {
|
|
21
|
-
return
|
|
21
|
+
return R()(t.amountAsString) !== !0 ? !0 : +t.amountAsString > l ? `Must be at most ${l}` : !0;
|
|
22
22
|
};
|
|
23
23
|
}
|
|
24
24
|
function Z(l, f = !1) {
|
|
25
25
|
return function(c) {
|
|
26
|
-
const s =
|
|
26
|
+
const s = Q()(c);
|
|
27
27
|
if (s != !0)
|
|
28
28
|
return f ? s : !0;
|
|
29
|
-
const A = typeof l == "number" ? l :
|
|
30
|
-
return fe(+c.amountAsString).precision > A ? `Cannot exceed precision more than ${
|
|
29
|
+
const A = typeof l == "number" ? l : j(l, c.modelValue.measurement);
|
|
30
|
+
return fe(+c.amountAsString).precision > A ? `Cannot exceed precision more than ${x({
|
|
31
31
|
amount: 1,
|
|
32
32
|
precision: A
|
|
33
33
|
})}` : !0;
|
|
@@ -45,7 +45,7 @@ const Fe = { class: "flex flex-col" }, _e = { class: "flex flex-col" }, Ae = { c
|
|
|
45
45
|
}, Ue = {
|
|
46
46
|
key: 0,
|
|
47
47
|
class: "flex"
|
|
48
|
-
},
|
|
48
|
+
}, De = { class: "line-clamp-1 text-ellipsis break-all" }, Re = { class: "flex items-center gap-4" }, we = { class: "flex items-center" }, Ce = { class: "line-clamp-1 text-ellipsis break-all" }, Se = { class: "max-w-[200px] flex flex-col gap-[1px]" }, Ne = {
|
|
49
49
|
key: 1,
|
|
50
50
|
class: "flex flex-col gap-4 pl-8 shrink-0"
|
|
51
51
|
}, Ve = {
|
|
@@ -105,36 +105,36 @@ const Fe = { class: "flex flex-col" }, _e = { class: "flex flex-col" }, Ae = { c
|
|
|
105
105
|
}),
|
|
106
106
|
emits: /* @__PURE__ */ W(["update:amount", "update:measurement"], ["update:modelValue"]),
|
|
107
107
|
setup(l, { emit: f }) {
|
|
108
|
-
const t = l, c = f, s = ae(l, "modelValue"), A =
|
|
108
|
+
const t = l, c = f, s = ae(l, "modelValue"), A = R(), w = v(() => {
|
|
109
109
|
var n;
|
|
110
|
-
return
|
|
110
|
+
return j(t.unit, (n = s.value) == null ? void 0 : n.measurement);
|
|
111
111
|
}), p = B((() => {
|
|
112
112
|
var o;
|
|
113
|
-
const e = ((o = s.value) == null ? void 0 : o.amount) ??
|
|
114
|
-
return
|
|
113
|
+
const e = ((o = s.value) == null ? void 0 : o.amount) ?? D.reset(), n = Me(e), i = t.formatMinimumPrecision ?? n.precision, a = ge(n, i);
|
|
114
|
+
return x(a);
|
|
115
115
|
})());
|
|
116
|
-
let
|
|
116
|
+
let g = null;
|
|
117
117
|
E(p, (e) => {
|
|
118
|
-
|
|
118
|
+
g && clearTimeout(g), g = setTimeout(() => {
|
|
119
119
|
var r;
|
|
120
120
|
const n = A(e), i = t.precision ?? w.value, o = typeof t.formatMinimumPrecision == "number" && t.formatMinimumPrecision > i ? t.formatMinimumPrecision : i;
|
|
121
121
|
if (n == !0) {
|
|
122
|
-
const
|
|
123
|
-
((r = s.value) == null ? void 0 : r.amount) !==
|
|
122
|
+
const M = be(+e, o);
|
|
123
|
+
((r = s.value) == null ? void 0 : r.amount) !== M && (s.value = {
|
|
124
124
|
...s.value,
|
|
125
|
-
amount:
|
|
125
|
+
amount: M
|
|
126
126
|
});
|
|
127
127
|
}
|
|
128
128
|
c("update:amount", e);
|
|
129
129
|
}, 500);
|
|
130
130
|
}), le(() => {
|
|
131
|
-
|
|
131
|
+
g && clearTimeout(g);
|
|
132
132
|
});
|
|
133
|
-
const K = Symbol.for("fm:form-state"), C = ue(K, null), P = v(() => t.disabled ?? (C == null ? void 0 : C.getDisabled()) ?? !1),
|
|
133
|
+
const K = Symbol.for("fm:form-state"), C = ue(K, null), P = v(() => t.disabled ?? (C == null ? void 0 : C.getDisabled()) ?? !1), X = B(), S = B(!1), O = B(!1), Y = v(() => S.value || O.value), ee = v(() => {
|
|
134
134
|
var a;
|
|
135
|
-
const e = t.unit.measurements.filter((o) => !o.name.toLocaleLowerCase().includes("inactive")).filter((o) => o.abbrev !== t.unit.abbrev || +
|
|
135
|
+
const e = t.unit.measurements.filter((o) => !o.name.toLocaleLowerCase().includes("inactive")).filter((o) => o.abbrev !== t.unit.abbrev || +x(o.conversion) != 1), n = ye.groupBy(
|
|
136
136
|
e,
|
|
137
|
-
(o) => `${o.abbrev}${
|
|
137
|
+
(o) => `${o.abbrev}${x(o.conversion)}`
|
|
138
138
|
), i = Object.values(n).map((o) => o[0]);
|
|
139
139
|
return [
|
|
140
140
|
{
|
|
@@ -172,11 +172,11 @@ const Fe = { class: "flex flex-col" }, _e = { class: "flex flex-col" }, Ae = { c
|
|
|
172
172
|
var m;
|
|
173
173
|
if (!t.convertAmountOnChangeUnit)
|
|
174
174
|
return;
|
|
175
|
-
const i = ((m = s.value) == null ? void 0 : m.amount) ??
|
|
176
|
-
value:
|
|
175
|
+
const i = ((m = s.value) == null ? void 0 : m.amount) ?? D.reset(), a = t.unit.measurements.find((k) => k.id === n) ?? null, o = t.unit.measurements.find((k) => k.id === e) ?? null, r = a ? he(i, a.conversion) : i, M = o ? xe(r, o.conversion) : r, T = j(t.unit, o), L = D.convertPrecision({
|
|
176
|
+
value: M,
|
|
177
177
|
precision: T
|
|
178
178
|
});
|
|
179
|
-
p.value =
|
|
179
|
+
p.value = x(L);
|
|
180
180
|
});
|
|
181
181
|
const q = v(() => {
|
|
182
182
|
var e;
|
|
@@ -192,7 +192,7 @@ const Fe = { class: "flex flex-col" }, _e = { class: "flex flex-col" }, Ae = { c
|
|
|
192
192
|
)) ?? [];
|
|
193
193
|
}
|
|
194
194
|
), ne = v(() => [...t.applyDefaultRules ? [
|
|
195
|
-
|
|
195
|
+
Q(),
|
|
196
196
|
typeof t.precision == "number" ? Z(t.precision) : Z(t.unit)
|
|
197
197
|
] : [], ...te.value]);
|
|
198
198
|
function z(e) {
|
|
@@ -202,17 +202,17 @@ const Fe = { class: "flex flex-col" }, _e = { class: "flex flex-col" }, Ae = { c
|
|
|
202
202
|
function oe() {
|
|
203
203
|
if (!t.stepper)
|
|
204
204
|
return;
|
|
205
|
-
const e = +p.value + +
|
|
205
|
+
const e = +p.value + +x(t.stepper);
|
|
206
206
|
p.value = z(e);
|
|
207
207
|
}
|
|
208
208
|
function se() {
|
|
209
209
|
if (!t.stepper)
|
|
210
210
|
return;
|
|
211
|
-
const e = +p.value - +
|
|
211
|
+
const e = +p.value - +x(t.stepper);
|
|
212
212
|
p.value = z(e);
|
|
213
213
|
}
|
|
214
214
|
return (e, n) => {
|
|
215
|
-
const i = b("FmLabel"), a = b("FmIcon"), o = b("FmMenuItem"), r = b("FmMenu"),
|
|
215
|
+
const i = b("FmLabel"), a = b("FmIcon"), o = b("FmMenuItem"), r = b("FmMenu"), M = b("FmTooltip"), T = b("FmField"), L = b("FmFormGroup");
|
|
216
216
|
return d(), y("div", Fe, [
|
|
217
217
|
u("div", _e, [
|
|
218
218
|
u("div", Ae, [
|
|
@@ -223,7 +223,7 @@ const Fe = { class: "flex flex-col" }, _e = { class: "flex flex-col" }, Ae = { c
|
|
|
223
223
|
optional: e.labelMark === "optional"
|
|
224
224
|
}, null, 8, ["label", "disabled", "required", "optional"])
|
|
225
225
|
]),
|
|
226
|
-
h(T, { focused:
|
|
226
|
+
h(T, { focused: Y.value }, {
|
|
227
227
|
default: F(() => [
|
|
228
228
|
u("div", Pe, [
|
|
229
229
|
G(e.$slots, "prepend"),
|
|
@@ -231,7 +231,7 @@ const Fe = { class: "flex flex-col" }, _e = { class: "flex flex-col" }, Ae = { c
|
|
|
231
231
|
u("div", Be, [
|
|
232
232
|
e.stepperOnly ? (d(), y("span", {
|
|
233
233
|
key: 0,
|
|
234
|
-
class:
|
|
234
|
+
class: $({
|
|
235
235
|
"fm-text-field--input fm-typo-en-body-lg-400": !0,
|
|
236
236
|
"text-fm-color-typo-primary": !P.value,
|
|
237
237
|
"text-fm-color-typo-disabled": P.value
|
|
@@ -240,11 +240,11 @@ const Fe = { class: "flex flex-col" }, _e = { class: "flex flex-col" }, Ae = { c
|
|
|
240
240
|
key: 1,
|
|
241
241
|
type: "text",
|
|
242
242
|
ref_key: "inputRef",
|
|
243
|
-
ref:
|
|
243
|
+
ref: X,
|
|
244
244
|
onFocus: n[0] || (n[0] = () => S.value = !0),
|
|
245
245
|
onBlur: n[1] || (n[1] = () => S.value = !1),
|
|
246
246
|
"onUpdate:modelValue": n[2] || (n[2] = (m) => p.value = m),
|
|
247
|
-
class:
|
|
247
|
+
class: $({
|
|
248
248
|
"fm-text-field--input fm-typo-en-body-lg-400": !0,
|
|
249
249
|
"text-fm-color-typo-primary": !P.value,
|
|
250
250
|
"text-fm-color-typo-disabled": P.value
|
|
@@ -255,9 +255,9 @@ const Fe = { class: "flex flex-col" }, _e = { class: "flex flex-col" }, Ae = { c
|
|
|
255
255
|
]),
|
|
256
256
|
e.separator ? (d(), y("div", Ie, _(e.separator), 1)) : I("", !0),
|
|
257
257
|
u("div", {
|
|
258
|
-
class:
|
|
258
|
+
class: $([e.disabled ? "text-fm-color-typo-disabled" : "text-fm-color-typo-secondary"])
|
|
259
259
|
}, [
|
|
260
|
-
h(
|
|
260
|
+
h(M, { "z-index": 51 }, {
|
|
261
261
|
content: F(() => [
|
|
262
262
|
ce(_(V.value), 1)
|
|
263
263
|
]),
|
|
@@ -267,16 +267,16 @@ const Fe = { class: "flex flex-col" }, _e = { class: "flex flex-col" }, Ae = { c
|
|
|
267
267
|
key: 0,
|
|
268
268
|
name: "square_foot"
|
|
269
269
|
})),
|
|
270
|
-
u("div",
|
|
270
|
+
u("div", De, _(V.value), 1)
|
|
271
271
|
])) : (d(), U(r, {
|
|
272
272
|
key: 1,
|
|
273
|
-
onMenuChanged: n[3] || (n[3] = (m) =>
|
|
273
|
+
onMenuChanged: n[3] || (n[3] = (m) => O.value = m),
|
|
274
274
|
"z-index": 500,
|
|
275
275
|
placement: e.placement,
|
|
276
276
|
disabled: e.disabled
|
|
277
277
|
}, {
|
|
278
278
|
"menu-button": F(() => [
|
|
279
|
-
u("div",
|
|
279
|
+
u("div", Re, [
|
|
280
280
|
u("div", we, [
|
|
281
281
|
q.value ? I("", !0) : (d(), U(a, {
|
|
282
282
|
key: 0,
|
|
@@ -348,10 +348,10 @@ const Fe = { class: "flex flex-col" }, _e = { class: "flex flex-col" }, Ae = { c
|
|
|
348
348
|
}
|
|
349
349
|
});
|
|
350
350
|
export {
|
|
351
|
-
|
|
351
|
+
Oe as F,
|
|
352
352
|
We as _,
|
|
353
353
|
qe as a,
|
|
354
354
|
ze as b,
|
|
355
|
-
|
|
355
|
+
Q as c,
|
|
356
356
|
Z as d
|
|
357
357
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { defineComponent as p, openBlock as s, createElementBlock as n, createElementVNode as r, toDisplayString as o, unref as
|
|
2
|
-
import {
|
|
1
|
+
import { defineComponent as p, openBlock as s, createElementBlock as n, createElementVNode as r, toDisplayString as o, unref as i, Fragment as d, renderList as x } from "vue";
|
|
2
|
+
import { l as a, Z as y } from "./app-CUMtg_U0.js";
|
|
3
3
|
import { useI18n as _ } from "@feedmepos/mf-common";
|
|
4
4
|
const v = { class: "flex flex-col" }, g = { class: "flex flex-row fm-typo-en-body-md-600 bg-fm-color-neutral-gray-100 text-fm-color-typo-secondary h-48 items-center" }, h = { class: "flex-1 py-8 px-16" }, b = {
|
|
5
5
|
class: "flex-0 py-8 px-16",
|
|
@@ -20,28 +20,28 @@ const v = { class: "flex flex-col" }, g = { class: "flex flex-row fm-typo-en-bod
|
|
|
20
20
|
},
|
|
21
21
|
setup($) {
|
|
22
22
|
const { t: m } = _();
|
|
23
|
-
function c(e,
|
|
23
|
+
function c(e, l) {
|
|
24
24
|
var t;
|
|
25
25
|
if (e.measurement) {
|
|
26
26
|
const u = y(e.amount, e.measurement.conversion);
|
|
27
27
|
return `${a(u, !1)} ${(t = e.measurement) == null ? void 0 : t.abbrev}`;
|
|
28
28
|
}
|
|
29
|
-
return `${a(e.amount, !1)} ${
|
|
29
|
+
return `${a(e.amount, !1)} ${l.abbrev}`;
|
|
30
30
|
}
|
|
31
31
|
function f(e) {
|
|
32
32
|
return e.unit !== void 0;
|
|
33
33
|
}
|
|
34
|
-
return (e,
|
|
34
|
+
return (e, l) => (s(), n("div", v, [
|
|
35
35
|
r("div", g, [
|
|
36
36
|
r("div", h, o(e.name), 1),
|
|
37
|
-
r("div", b, o(
|
|
37
|
+
r("div", b, o(i(m)("inventory.ingredient.bindedItems.amount")), 1)
|
|
38
38
|
]),
|
|
39
39
|
(s(!0), n(d, null, x(e.bindings, (t) => (s(), n("div", {
|
|
40
40
|
key: t.id,
|
|
41
41
|
class: "flex flex-row fm-typo-en-body-md-400 h-48 items-center border-b border-b-fm-color-neutral-gray-100"
|
|
42
42
|
}, [
|
|
43
43
|
r("div", k, o(t.name), 1),
|
|
44
|
-
f(t) ? (s(), n("div", B, o(c(t, t.unit)), 1)) : (s(), n("div", I, o(
|
|
44
|
+
f(t) ? (s(), n("div", B, o(c(t, t.unit)), 1)) : (s(), n("div", I, o(i(a)(t.amount, !1)), 1))
|
|
45
45
|
]))), 128))
|
|
46
46
|
]));
|
|
47
47
|
}
|