@feedmepos/mf-inventory-portal 0.0.23-dev.37 → 0.0.23-dev.38
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-CocJ-ge2.js → App-DQgtWkQj.js} +20 -20
- package/dist/{ApprovalView-BwoVumaD.js → ApprovalView-CvSK9fGA.js} +10 -10
- package/dist/{BindingsDialog-ChGPGBfA.js → BindingsDialog-BAC0_xCP.js} +8 -8
- package/dist/{BindingsPicker-DlQ4Y-_S.js → BindingsPicker-ecWMwsNp.js} +3 -3
- package/dist/{BindingsTable-BViS1Vbk.js → BindingsTable-D5kQydOU.js} +10 -10
- package/dist/{ClosingDraftView-0s7elpJE.js → ClosingDraftView-CnHQ59rX.js} +46 -46
- package/dist/{ClosingTemplateView-ijUARoMf.js → ClosingTemplateView-vRTsVZ0c.js} +21 -21
- package/dist/{FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-f3zAXx0v.js → FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-CpIzIvkU.js} +17 -17
- package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-B_VkK2l-.js → FmUnitInput.vue_vue_type_script_setup_true_lang-CNzEHF-R.js} +37 -37
- package/dist/{IngredientBindedItem.vue_vue_type_script_setup_true_lang-DaOZl7x7.js → IngredientBindedItem.vue_vue_type_script_setup_true_lang-DBhBaRrd.js} +1 -1
- package/dist/{IngredientGroupView-sBJJcpUH.js → IngredientGroupView-BLsABZ3h.js} +1 -1
- package/dist/IngredientsView-Cs4TIf6V.js +1794 -0
- package/dist/{IntegrationView-BCnyd5ZT.js → IntegrationView-BqAqngtM.js} +137 -137
- package/dist/{InventoryBindingForm-vNrC4UVe.js → InventoryBindingForm-D54V_qZQ.js} +1 -1
- package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-CAKAtpAv.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-KIW9J7Xn.js} +106 -96
- package/dist/{InventoryBindingSummary-BV-mteuK.js → InventoryBindingSummary-htT7GNto.js} +1 -1
- package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-CLJq06wA.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-BlEgALMj.js} +1 -1
- package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-DGMYtoSD.js → PremiumBadge.vue_vue_type_script_setup_true_lang-DHbxXDGy.js} +9 -9
- package/dist/{PurchaseOrderPrintPreview-Dw9MTN87.js → PurchaseOrderPrintPreview-hmzxKuIa.js} +5 -5
- package/dist/{ReceiveRequestView-DA1y32Ri.js → ReceiveRequestView-_YioyWqU.js} +182 -182
- package/dist/{RecipeView-CUJ8JTg4.js → RecipeView-88KJ0nvU.js} +3 -3
- package/dist/StockView-R4cnEbHQ.js +1818 -0
- package/dist/{SupplierView-B25JfCjl.js → SupplierView-CevGG507.js} +4 -4
- package/dist/{TransferDetails.vue_vue_type_script_setup_true_lang-CaHSzoOL.js → TransferDetails.vue_vue_type_script_setup_true_lang-CeWP9msS.js} +52 -52
- package/dist/{TransferTemplateView-B-NHZD3a.js → TransferTemplateView-QDniAq8o.js} +114 -114
- package/dist/{UnitView-BwyqEvF5.js → UnitView-SjwJ3lZ0.js} +14 -14
- package/dist/{WarehouseView-DKN9oNF0.js → WarehouseView-55LiPQXG.js} +70 -70
- package/dist/api/bill.d.ts +240 -84
- package/dist/api/inventory.d.ts +15 -6
- package/dist/{app-pBbFb2kn.js → app-UTiudUUR.js} +351 -336
- package/dist/app.d.ts +6 -0
- package/dist/app.js +1 -1
- package/dist/components/FmCustomAttribute.vue.d.ts +23 -0
- package/dist/components/FmLockableField.vue.d.ts +37 -0
- package/dist/components/inventory-binding/InventoryBinding.vue.d.ts +3 -1
- package/dist/components/shell/inventory/binding-ui.vue.d.ts +3 -1
- package/dist/{decimal-DlS5ULFC.js → decimal-tyBgHJ47.js} +1 -1
- package/dist/feature-z7inw9y6.js +946 -0
- package/dist/{format-unit-display-pWImoMk4.js → format-unit-display-DN0KtCh2.js} +61 -61
- package/dist/index-Dj2Ccgp1.js +29202 -0
- package/dist/{StockView-C8uDlvit.js → index-DlhdTaa8.js} +2218 -3854
- package/dist/{stock-Pgzh63s3.js → stock-CxRxidDu.js} +1 -1
- package/dist/stores/feature.d.ts +5 -0
- package/dist/stores/inventory.d.ts +20 -8
- package/dist/stores/supplier.d.ts +1 -1
- package/dist/{supplier-B_UGrq8S.js → supplier-BhyiTwSJ.js} +1 -1
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{use-inventory-binding-dialog-DcCaNUdQ.js → use-inventory-binding-dialog-DwSvUvRl.js} +1 -1
- package/dist/views/closing-draft/components/closing-draft-dialog/ClosingDraftDialog.vue.d.ts +8 -4
- package/dist/views/closing-draft/composables/use-closing-draft-table.d.ts +48 -24
- package/dist/views/closing-template/components/closing-template-form/composables/use-closing-template-items.d.ts +2 -1
- package/dist/views/closing-template/composables/use-closing-template-actions.d.ts +24 -12
- package/dist/views/closing-template/composables/use-closing-template-table.d.ts +24 -12
- package/dist/views/ingredient-group/composables/use-ingredient-group-table.d.ts +6 -3
- package/dist/views/ingredients/components/convert/ConvertFormProps.d.ts +1 -0
- package/dist/views/ingredients/components/ingredient-form/IngredientForm.vue.d.ts +4 -2
- package/dist/views/ingredients/components/inventory-binding/InventoryBindingForm.vue.d.ts +1 -0
- package/dist/views/ingredients/composables/use-ingredient-table.d.ts +2 -1
- package/dist/views/receive-request/components/transfer-form/SparkIcon.vue.d.ts +1 -1
- package/dist/views/receive-request/components/transfer-form/TransferForm.vue.d.ts +34 -17
- package/dist/views/receive-request/components/transfer-form/components/ForecastStock.vue.d.ts +4 -2
- package/dist/views/receive-request/components/transfer-form/composables/use-transfer-items.d.ts +2 -1
- package/dist/views/receive-request/composables/use-receive-request-form.d.ts +48 -24
- package/dist/views/receive-request/composables/use-receive-request-table.d.ts +48 -24
- package/dist/views/recipe/components/recipe-form/RecipeForm.vue.d.ts +2 -0
- package/dist/views/stock/components/StockRecordCard.vue.d.ts +120 -42
- package/dist/views/stock/components/dialog/AdjustedItemForm.vue.d.ts +4 -2
- package/dist/views/transfer-template/components/transfer-template-form/composables/use-transfer-template-items.d.ts +2 -1
- package/dist/views/transfer-template/composables/use-transfer-template-actions.d.ts +24 -12
- package/dist/views/transfer-template/composables/use-transfer-template-table.d.ts +24 -12
- package/package.json +7 -6
- package/dist/IngredientsView-F25fK95q.js +0 -1657
- package/dist/feature-j9EM4xzR.js +0 -92
- package/dist/index-BILt4nGV.js +0 -12087
|
@@ -1,6 +1,6 @@
|
|
|
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
|
|
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 _,
|
|
3
|
+
import { u as _, aJ as se, b as re, aK as le, aD as he, e as T, z as Be, B as Ce } from "./app-UTiudUUR.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() {
|
|
@@ -107,16 +107,16 @@ function Re(g, A) {
|
|
|
107
107
|
matched: !0
|
|
108
108
|
};
|
|
109
109
|
}
|
|
110
|
-
function
|
|
110
|
+
function N(g) {
|
|
111
111
|
return Object.prototype.hasOwnProperty.call(g, "children");
|
|
112
112
|
}
|
|
113
|
-
const
|
|
113
|
+
const Ve = { class: "flex flex-col gap-12 h-[350px]" }, He = { class: "flex items-center" }, ze = {
|
|
114
114
|
class: "flex-1",
|
|
115
115
|
"data-cy": "items-selected"
|
|
116
116
|
}, Oe = {
|
|
117
117
|
class: "flex-1",
|
|
118
118
|
"data-cy": "filter-field"
|
|
119
|
-
}, Le = ["data-cy"], Xe = { class: "flex flex-col" },
|
|
119
|
+
}, Le = ["data-cy"], Xe = { class: "flex flex-col" }, Je = { class: "fm-typo-en-body-md-400" }, Ne = {
|
|
120
120
|
key: 1,
|
|
121
121
|
class: "w-full py-16 text-fm-color-typo-disabled fm-typo-en-body-md-400 text-center"
|
|
122
122
|
}, Ae = /* @__PURE__ */ F({
|
|
@@ -141,7 +141,7 @@ const He = { class: "flex flex-col gap-12 h-[350px]" }, Ve = { class: "flex item
|
|
|
141
141
|
);
|
|
142
142
|
}
|
|
143
143
|
function p(e) {
|
|
144
|
-
return r(e) ? !0 :
|
|
144
|
+
return r(e) ? !0 : N(e) ? e.children.some(p) : !1;
|
|
145
145
|
}
|
|
146
146
|
function k(e, n) {
|
|
147
147
|
if (!f.value)
|
|
@@ -153,12 +153,12 @@ const He = { class: "flex flex-col gap-12 h-[350px]" }, Ve = { class: "flex item
|
|
|
153
153
|
return ee(
|
|
154
154
|
f.value,
|
|
155
155
|
w.sublabel ? [w.label, w.sublabel] : [w.label]
|
|
156
|
-
) ? !0 : x.length === 0 ? p(w) :
|
|
156
|
+
) ? !0 : x.length === 0 ? p(w) : N(w) ? k(x, w.children) : !1;
|
|
157
157
|
}
|
|
158
|
-
function
|
|
159
|
-
if (
|
|
158
|
+
function H(e, n, u = 0, x = !1) {
|
|
159
|
+
if (N(e) && e.children.length) {
|
|
160
160
|
const { children: w, ...X } = e, j = w.flatMap(
|
|
161
|
-
(B, P) =>
|
|
161
|
+
(B, P) => H(B, [...n, P], u + 1, x || e.disabled)
|
|
162
162
|
);
|
|
163
163
|
return [
|
|
164
164
|
{
|
|
@@ -182,10 +182,10 @@ const He = { class: "flex flex-col gap-12 h-[350px]" }, Ve = { class: "flex item
|
|
|
182
182
|
];
|
|
183
183
|
}
|
|
184
184
|
const z = R(() => A.value.flatMap(
|
|
185
|
-
(e, n) =>
|
|
185
|
+
(e, n) => H(e, [n]).filter((u) => k(u.keys, A.value))
|
|
186
186
|
));
|
|
187
187
|
function E(e) {
|
|
188
|
-
if (
|
|
188
|
+
if (N(e)) {
|
|
189
189
|
if (p(e)) {
|
|
190
190
|
const n = r(e) ? e.children : e.children.filter(p);
|
|
191
191
|
return n.length === 0 ? !1 : n.every(E);
|
|
@@ -199,10 +199,10 @@ const He = { class: "flex flex-col gap-12 h-[350px]" }, Ve = { class: "flex item
|
|
|
199
199
|
if (typeof u != "number")
|
|
200
200
|
return !1;
|
|
201
201
|
const w = n[u];
|
|
202
|
-
return x.length === 0 ? E(w ?? []) :
|
|
202
|
+
return x.length === 0 ? E(w ?? []) : N(w) ? m(x, w.children ?? []) : !1;
|
|
203
203
|
}
|
|
204
204
|
function v(e) {
|
|
205
|
-
if (
|
|
205
|
+
if (N(e)) {
|
|
206
206
|
if (p(e)) {
|
|
207
207
|
const n = r(e) ? e.children : e.children.filter(p);
|
|
208
208
|
return n.length === 0 ? !1 : n.some(E) && !n.every(E);
|
|
@@ -216,12 +216,12 @@ const He = { class: "flex flex-col gap-12 h-[350px]" }, Ve = { class: "flex item
|
|
|
216
216
|
if (typeof u != "number")
|
|
217
217
|
return !1;
|
|
218
218
|
const w = n[u];
|
|
219
|
-
return x.length === 0 ? v(w ?? []) :
|
|
219
|
+
return x.length === 0 ? v(w ?? []) : N(w) ? I(x, (w == null ? void 0 : w.children) ?? []) : !1;
|
|
220
220
|
}
|
|
221
221
|
function S(e, n) {
|
|
222
222
|
if (e.disabled)
|
|
223
223
|
return e;
|
|
224
|
-
if (
|
|
224
|
+
if (N(e)) {
|
|
225
225
|
if (p(e)) {
|
|
226
226
|
const u = r(e) ? e.children : e.children.filter(p);
|
|
227
227
|
return {
|
|
@@ -242,7 +242,7 @@ const He = { class: "flex flex-col gap-12 h-[350px]" }, Ve = { class: "flex item
|
|
|
242
242
|
function h(e, n, u) {
|
|
243
243
|
const [x, ...w] = e;
|
|
244
244
|
return typeof x != "number" ? n : w.length === 0 ? n.map((X, j) => x !== j ? X : S(X, u)) : n.map(
|
|
245
|
-
(X, j) => x === j &&
|
|
245
|
+
(X, j) => x === j && N(X) ? {
|
|
246
246
|
...X,
|
|
247
247
|
children: h(w, X.children, u)
|
|
248
248
|
} : X
|
|
@@ -264,19 +264,19 @@ const He = { class: "flex flex-col gap-12 h-[350px]" }, Ve = { class: "flex item
|
|
|
264
264
|
const d = R(
|
|
265
265
|
() => z.value.filter((e) => k(e.keys, A.value) && e.active).length
|
|
266
266
|
);
|
|
267
|
-
function
|
|
267
|
+
function y(e, n, u) {
|
|
268
268
|
A.value = h(e, n, u), o.emitData(A.value);
|
|
269
269
|
}
|
|
270
270
|
return (e, n) => {
|
|
271
271
|
const u = O("FmSearch"), x = O("FmCheckbox"), w = O("FmButton"), X = O("FmListItem"), j = O("FmList");
|
|
272
|
-
return C(),
|
|
273
|
-
c("div",
|
|
274
|
-
c("div", ze, L(
|
|
272
|
+
return C(), V("div", Ve, [
|
|
273
|
+
c("div", He, [
|
|
274
|
+
c("div", ze, L(b(l)("inventory.formField.itemsSelected", { count: d.value })), 1),
|
|
275
275
|
c("div", Oe, [
|
|
276
276
|
M(u, {
|
|
277
277
|
modelValue: f.value,
|
|
278
278
|
"onUpdate:modelValue": n[0] || (n[0] = (B) => f.value = B),
|
|
279
|
-
placeholder:
|
|
279
|
+
placeholder: b(l)("inventory.formField.filterItems")
|
|
280
280
|
}, null, 8, ["modelValue", "placeholder"])
|
|
281
281
|
])
|
|
282
282
|
]),
|
|
@@ -284,8 +284,8 @@ const He = { class: "flex flex-col gap-12 h-[350px]" }, Ve = { class: "flex item
|
|
|
284
284
|
key: 0,
|
|
285
285
|
class: "flex-1 overflow-y-auto"
|
|
286
286
|
}, {
|
|
287
|
-
default:
|
|
288
|
-
(C(!0),
|
|
287
|
+
default: J(() => [
|
|
288
|
+
(C(!0), V(G, null, U(z.value, (B) => (C(), V("div", {
|
|
289
289
|
key: B.keys.join(),
|
|
290
290
|
class: q([
|
|
291
291
|
"transition-all overflow-y-clip",
|
|
@@ -295,25 +295,25 @@ const He = { class: "flex flex-col gap-12 h-[350px]" }, Ve = { class: "flex item
|
|
|
295
295
|
}, [
|
|
296
296
|
M(X, {
|
|
297
297
|
clickable: B.selectable !== !1,
|
|
298
|
-
onClick: () => B.selectable === !1 || B.disabled ||
|
|
298
|
+
onClick: () => B.selectable === !1 || B.disabled || y(B.keys, A.value, !m(B.keys, A.value)),
|
|
299
299
|
style: Ie({
|
|
300
300
|
paddingLeft: `${16 + B.indent * 16}px`,
|
|
301
301
|
paddingTop: "4px",
|
|
302
302
|
paddingBottom: "4px"
|
|
303
303
|
}),
|
|
304
304
|
disabled: B.selectable !== !1 && B.disabled
|
|
305
|
-
},
|
|
306
|
-
default:
|
|
305
|
+
}, be({
|
|
306
|
+
default: J(() => [
|
|
307
307
|
c("div", Xe, [
|
|
308
|
-
c("div",
|
|
309
|
-
(C(!0),
|
|
308
|
+
c("div", Je, [
|
|
309
|
+
(C(!0), V(G, null, U(b(Re)(f.value, B.label).segments, (P, me) => (C(), V("span", {
|
|
310
310
|
key: me,
|
|
311
311
|
class: q({
|
|
312
312
|
"font-bold": P.isMatch
|
|
313
313
|
})
|
|
314
314
|
}, L(P.segment), 3))), 128))
|
|
315
315
|
]),
|
|
316
|
-
B.sublabel ? (C(),
|
|
316
|
+
B.sublabel ? (C(), V("div", {
|
|
317
317
|
key: 0,
|
|
318
318
|
class: q([
|
|
319
319
|
"fm-typo-en-body-sm-400",
|
|
@@ -326,7 +326,7 @@ const He = { class: "flex flex-col gap-12 h-[350px]" }, Ve = { class: "flex item
|
|
|
326
326
|
}, [
|
|
327
327
|
B.selectable !== !1 ? {
|
|
328
328
|
name: "prepend",
|
|
329
|
-
fn:
|
|
329
|
+
fn: J(() => [
|
|
330
330
|
M(x, {
|
|
331
331
|
disabled: B.disabled,
|
|
332
332
|
"model-value": m(B.keys, A.value),
|
|
@@ -338,12 +338,12 @@ const He = { class: "flex flex-col gap-12 h-[350px]" }, Ve = { class: "flex item
|
|
|
338
338
|
} : void 0,
|
|
339
339
|
B.collapsible ? {
|
|
340
340
|
name: "append",
|
|
341
|
-
fn:
|
|
341
|
+
fn: J(() => [
|
|
342
342
|
M(w, {
|
|
343
343
|
"prepend-icon": t(B.keys) ? "expand_less" : "expand_more",
|
|
344
344
|
size: "md",
|
|
345
345
|
variant: "tertiary",
|
|
346
|
-
onClick:
|
|
346
|
+
onClick: ye(() => i(B.keys), ["stop"])
|
|
347
347
|
}, null, 8, ["prepend-icon", "onClick"])
|
|
348
348
|
]),
|
|
349
349
|
key: "1"
|
|
@@ -352,7 +352,7 @@ const He = { class: "flex flex-col gap-12 h-[350px]" }, Ve = { class: "flex item
|
|
|
352
352
|
], 10, Le))), 128))
|
|
353
353
|
]),
|
|
354
354
|
_: 1
|
|
355
|
-
})) : (C(),
|
|
355
|
+
})) : (C(), V("div", Ne, L(b(l)("inventory.formField.noItemsFound")), 1))
|
|
356
356
|
]);
|
|
357
357
|
};
|
|
358
358
|
}
|
|
@@ -407,7 +407,7 @@ const He = { class: "flex flex-col gap-12 h-[350px]" }, Ve = { class: "flex item
|
|
|
407
407
|
o.modifiers.filter((v) => v.selection !== m)
|
|
408
408
|
);
|
|
409
409
|
}
|
|
410
|
-
function
|
|
410
|
+
function H({ selection: m }, v) {
|
|
411
411
|
const I = o.modifiers.find((S) => S.selection === m);
|
|
412
412
|
I && (I.code = v);
|
|
413
413
|
}
|
|
@@ -452,7 +452,7 @@ const He = { class: "flex flex-col gap-12 h-[350px]" }, Ve = { class: "flex item
|
|
|
452
452
|
const S = T(o.modifiers);
|
|
453
453
|
let h = [];
|
|
454
454
|
function s(t, i) {
|
|
455
|
-
if (i(t),
|
|
455
|
+
if (i(t), N(t))
|
|
456
456
|
for (let a of t.children)
|
|
457
457
|
s(a, i);
|
|
458
458
|
}
|
|
@@ -460,8 +460,8 @@ const He = { class: "flex flex-col gap-12 h-[350px]" }, Ve = { class: "flex item
|
|
|
460
460
|
s(t, (i) => {
|
|
461
461
|
var e;
|
|
462
462
|
if (o.groups.find(({ _id: n }) => n === i.value)) return;
|
|
463
|
-
const d = p.value.find(({ selection: n }) => n === i.value),
|
|
464
|
-
!
|
|
463
|
+
const d = p.value.find(({ selection: n }) => n === i.value), y = h.find(({ selection: n }) => i.value === n);
|
|
464
|
+
!N(i) && i.active && y === void 0 && h.push({
|
|
465
465
|
addonGroupId: (d == null ? void 0 : d.groupId) ?? "",
|
|
466
466
|
selection: i.value,
|
|
467
467
|
code: ((e = S.find(({ selection: n }) => i.value === n)) == null ? void 0 : e.code) ?? ""
|
|
@@ -473,39 +473,39 @@ const He = { class: "flex flex-col gap-12 h-[350px]" }, Ve = { class: "flex item
|
|
|
473
473
|
const { t: E } = Y();
|
|
474
474
|
return (m, v) => {
|
|
475
475
|
const I = O("FmButton"), S = O("FmTextField");
|
|
476
|
-
return C(),
|
|
476
|
+
return C(), V("div", je, [
|
|
477
477
|
c("div", Qe, [
|
|
478
|
-
c("div", Ke, L(
|
|
478
|
+
c("div", Ke, L(b(E)("inventory.integration.apply.addons")), 1),
|
|
479
479
|
M(I, {
|
|
480
480
|
type: "button",
|
|
481
481
|
variant: "plain",
|
|
482
482
|
size: "md",
|
|
483
483
|
icon: "link",
|
|
484
|
-
label:
|
|
484
|
+
label: b(E)("inventory.integration.apply.applyAddon"),
|
|
485
485
|
onClick: v[0] || (v[0] = (h) => z())
|
|
486
486
|
}, null, 8, ["label"])
|
|
487
487
|
]),
|
|
488
488
|
c("div", null, [
|
|
489
|
-
r.value.length > 0 ? (C(),
|
|
489
|
+
r.value.length > 0 ? (C(), V("table", Ze, [
|
|
490
490
|
c("tr", Fe, [
|
|
491
|
-
c("th", Ye, L(
|
|
492
|
-
c("th", null, L(
|
|
491
|
+
c("th", Ye, L(b(E)("inventory.integration.apply.name")), 1),
|
|
492
|
+
c("th", null, L(b(E)("inventory.integration.apply.code")), 1),
|
|
493
493
|
v[1] || (v[1] = c("th", { class: "w-1" }, " ", -1))
|
|
494
494
|
]),
|
|
495
|
-
(C(!0),
|
|
495
|
+
(C(!0), V(G, null, U(r.value, (h, s) => (C(), V(G, { key: s }, [
|
|
496
496
|
v[2] || (v[2] = c("tr", { class: "block h-8" }, null, -1)),
|
|
497
497
|
c("tr", null, [
|
|
498
498
|
c("td", null, [
|
|
499
499
|
c("div", De, [
|
|
500
500
|
c("div", Te, L(h.name), 1),
|
|
501
|
-
h.groupName ? (C(),
|
|
501
|
+
h.groupName ? (C(), V("div", qe, L(h.groupName), 1)) : K("", !0)
|
|
502
502
|
])
|
|
503
503
|
]),
|
|
504
504
|
c("td", null, [
|
|
505
505
|
M(S, {
|
|
506
506
|
disabled: g.loading,
|
|
507
507
|
"model-value": h.code,
|
|
508
|
-
"onUpdate:modelValue": [(t) => h.code = t, (t) =>
|
|
508
|
+
"onUpdate:modelValue": [(t) => h.code = t, (t) => H(h, t)],
|
|
509
509
|
rules: [
|
|
510
510
|
function(i) {
|
|
511
511
|
return !!i || "Required";
|
|
@@ -539,13 +539,13 @@ function Ue(g, A = []) {
|
|
|
539
539
|
function We(g, A, o) {
|
|
540
540
|
const f = o.reduce((r, p) => {
|
|
541
541
|
var E, m, v;
|
|
542
|
-
const k = p.category || "",
|
|
542
|
+
const k = p.category || "", H = Ue(A, (E = p.variant) == null ? void 0 : E.variantGroupIds), z = {
|
|
543
543
|
...p,
|
|
544
544
|
codeName: [p.code, p.name].filter((I) => !!I).join(" "),
|
|
545
545
|
variant: {
|
|
546
546
|
variantGroupIds: ((m = p.variant) == null ? void 0 : m.variantGroupIds) || [],
|
|
547
547
|
variantCombinations: (((v = p.variant) == null ? void 0 : v.variantCombinations) || []).map((I) => {
|
|
548
|
-
const S = I.code, h = I.name ||
|
|
548
|
+
const S = I.code, h = I.name || H[I.combinationKey || ""];
|
|
549
549
|
return {
|
|
550
550
|
...I,
|
|
551
551
|
codeName: [S, h].filter((s) => !!s).join(" ").trim() || "-"
|
|
@@ -569,7 +569,7 @@ function fe(g, A) {
|
|
|
569
569
|
if (g.length == 1)
|
|
570
570
|
return g[0];
|
|
571
571
|
const o = g[0], f = g.slice(1, g.length), l = fe(f, A);
|
|
572
|
-
return o.reduce((p, k) => [...p, ...l.map((
|
|
572
|
+
return o.reduce((p, k) => [...p, ...l.map((H) => A(k, H))], new Array());
|
|
573
573
|
}
|
|
574
574
|
function _e(g) {
|
|
575
575
|
if (g.length === 0) return [];
|
|
@@ -627,10 +627,10 @@ const $e = { class: "flex flex-col rounded border border-fm-color-neutral-gray-1
|
|
|
627
627
|
setup(g, { emit: A }) {
|
|
628
628
|
const o = g, f = A, l = de(), r = R(() => o.isAddon ? "Addons" : "Products"), p = R(() => o.isAddon ? [] : o.categories), k = R(
|
|
629
629
|
() => We(p.value, o.variants, o.menus)
|
|
630
|
-
),
|
|
630
|
+
), H = R(() => {
|
|
631
631
|
if (o.isAddon)
|
|
632
632
|
return o.bindings.map((i) => {
|
|
633
|
-
const a = o.menus.find((
|
|
633
|
+
const a = o.menus.find((y) => y._id === i.productId), d = (a == null ? void 0 : a.name) ?? "-";
|
|
634
634
|
return {
|
|
635
635
|
...i,
|
|
636
636
|
name: d,
|
|
@@ -641,17 +641,17 @@ const $e = { class: "flex flex-col rounded border border-fm-color-neutral-gray-1
|
|
|
641
641
|
return o.bindings.map((i) => {
|
|
642
642
|
var n;
|
|
643
643
|
const a = t.find((u) => u._id === i.productId), d = (a == null ? void 0 : a.name) ?? "-";
|
|
644
|
-
let
|
|
644
|
+
let y = (a == null ? void 0 : a.code) ?? "-", e;
|
|
645
645
|
if (i.combinationKey) {
|
|
646
646
|
const u = (((n = a == null ? void 0 : a.variant) == null ? void 0 : n.variantCombinations) || []).find(
|
|
647
647
|
(x) => x.combinationKey === i.combinationKey
|
|
648
648
|
);
|
|
649
|
-
e = (u == null ? void 0 : u.name) ?? (u == null ? void 0 : u.codeName) ?? "",
|
|
649
|
+
e = (u == null ? void 0 : u.name) ?? (u == null ? void 0 : u.codeName) ?? "", y = (u == null ? void 0 : u.code) ?? y;
|
|
650
650
|
}
|
|
651
651
|
return {
|
|
652
652
|
...i,
|
|
653
653
|
name: d,
|
|
654
|
-
itemCode:
|
|
654
|
+
itemCode: y,
|
|
655
655
|
variantName: e
|
|
656
656
|
};
|
|
657
657
|
});
|
|
@@ -666,7 +666,7 @@ const $e = { class: "flex flex-col rounded border border-fm-color-neutral-gray-1
|
|
|
666
666
|
}
|
|
667
667
|
function E({ productId: t, combinationKey: i }, a) {
|
|
668
668
|
const d = o.bindings.find(
|
|
669
|
-
(
|
|
669
|
+
(y) => y.productId === t && y.combinationKey === i
|
|
670
670
|
);
|
|
671
671
|
d && (d.code = a);
|
|
672
672
|
}
|
|
@@ -690,18 +690,18 @@ const $e = { class: "flex flex-col rounded border border-fm-color-neutral-gray-1
|
|
|
690
690
|
productId: i._id
|
|
691
691
|
},
|
|
692
692
|
active: !!o.bindings.find(
|
|
693
|
-
({ productId:
|
|
693
|
+
({ productId: y, combinationKey: e }) => i._id === y && !e
|
|
694
694
|
)
|
|
695
695
|
},
|
|
696
|
-
...a.map((
|
|
697
|
-
label:
|
|
696
|
+
...a.map((y) => ({
|
|
697
|
+
label: y.codeName ?? "",
|
|
698
698
|
value: {
|
|
699
699
|
productId: i._id,
|
|
700
|
-
combinationKey:
|
|
700
|
+
combinationKey: y.combinationKey
|
|
701
701
|
},
|
|
702
702
|
sublabel: "Variant",
|
|
703
703
|
active: !!o.bindings.find(
|
|
704
|
-
({ productId: e, combinationKey: n }) => i._id === e &&
|
|
704
|
+
({ productId: e, combinationKey: n }) => i._id === e && y.combinationKey === n
|
|
705
705
|
)
|
|
706
706
|
}))
|
|
707
707
|
]
|
|
@@ -711,7 +711,7 @@ const $e = { class: "flex flex-col rounded border border-fm-color-neutral-gray-1
|
|
|
711
711
|
productId: i._id
|
|
712
712
|
},
|
|
713
713
|
active: !!o.bindings.find(
|
|
714
|
-
({ productId:
|
|
714
|
+
({ productId: y, combinationKey: e }) => i._id === y && !e
|
|
715
715
|
)
|
|
716
716
|
};
|
|
717
717
|
})
|
|
@@ -730,7 +730,7 @@ const $e = { class: "flex flex-col rounded border border-fm-color-neutral-gray-1
|
|
|
730
730
|
const i = T(o.bindings);
|
|
731
731
|
return t.flatMap((a) => a.children.flatMap((d) => {
|
|
732
732
|
var e;
|
|
733
|
-
if (
|
|
733
|
+
if (N(d))
|
|
734
734
|
return d.children.filter((n) => n.active).map((n) => {
|
|
735
735
|
var w, X;
|
|
736
736
|
const { productId: u, combinationKey: x } = n.value;
|
|
@@ -747,11 +747,11 @@ const $e = { class: "flex flex-col rounded border border-fm-color-neutral-gray-1
|
|
|
747
747
|
});
|
|
748
748
|
if (!d.active)
|
|
749
749
|
return [];
|
|
750
|
-
const { productId:
|
|
750
|
+
const { productId: y } = d.value;
|
|
751
751
|
return [
|
|
752
752
|
{
|
|
753
|
-
productId:
|
|
754
|
-
code: ((e = i.find(({ productId: n, combinationKey: u }) =>
|
|
753
|
+
productId: y,
|
|
754
|
+
code: ((e = i.find(({ productId: n, combinationKey: u }) => y === n && !u)) == null ? void 0 : e.code) ?? ""
|
|
755
755
|
}
|
|
756
756
|
];
|
|
757
757
|
}));
|
|
@@ -763,7 +763,7 @@ const $e = { class: "flex flex-col rounded border border-fm-color-neutral-gray-1
|
|
|
763
763
|
var d;
|
|
764
764
|
return {
|
|
765
765
|
productId: a.value.productId,
|
|
766
|
-
code: ((d = i.find(({ productId:
|
|
766
|
+
code: ((d = i.find(({ productId: y }) => y === a.value.productId)) == null ? void 0 : d.code) ?? ""
|
|
767
767
|
};
|
|
768
768
|
}
|
|
769
769
|
);
|
|
@@ -790,38 +790,38 @@ const $e = { class: "flex flex-col rounded border border-fm-color-neutral-gray-1
|
|
|
790
790
|
const { t: s } = Y();
|
|
791
791
|
return (t, i) => {
|
|
792
792
|
const a = O("FmButton"), d = O("FmTextField");
|
|
793
|
-
return C(),
|
|
793
|
+
return C(), V("div", $e, [
|
|
794
794
|
c("div", et, [
|
|
795
|
-
c("div", tt, L(g.isAddon ?
|
|
795
|
+
c("div", tt, L(g.isAddon ? b(s)("inventory.integration.apply.addons") : b(s)("inventory.integration.apply.products")), 1),
|
|
796
796
|
M(a, {
|
|
797
797
|
type: "button",
|
|
798
798
|
variant: "plain",
|
|
799
799
|
size: "md",
|
|
800
800
|
icon: "link",
|
|
801
|
-
label: g.isAddon ?
|
|
802
|
-
onClick: i[0] || (i[0] = (
|
|
801
|
+
label: g.isAddon ? b(s)("inventory.integration.apply.applyAddon") : b(s)("inventory.integration.apply.applyProduct"),
|
|
802
|
+
onClick: i[0] || (i[0] = (y) => h())
|
|
803
803
|
}, null, 8, ["label"])
|
|
804
804
|
]),
|
|
805
805
|
c("div", null, [
|
|
806
|
-
|
|
806
|
+
H.value.length > 0 ? (C(), V("table", nt, [
|
|
807
807
|
c("tr", it, [
|
|
808
|
-
c("th", ot, L(
|
|
809
|
-
c("th", null, L(
|
|
808
|
+
c("th", ot, L(b(s)("inventory.integration.apply.name")), 1),
|
|
809
|
+
c("th", null, L(b(s)("inventory.integration.apply.code")), 1),
|
|
810
810
|
i[1] || (i[1] = c("th", { class: "w-1" }, " ", -1))
|
|
811
811
|
]),
|
|
812
|
-
(C(!0),
|
|
812
|
+
(C(!0), V(G, null, U(H.value, (y, e) => (C(), V(G, { key: e }, [
|
|
813
813
|
i[2] || (i[2] = c("tr", { class: "block h-8" }, null, -1)),
|
|
814
814
|
c("tr", null, [
|
|
815
815
|
c("td", null, [
|
|
816
816
|
c("div", st, [
|
|
817
|
-
c("div", rt, L(
|
|
818
|
-
|
|
817
|
+
c("div", rt, L(y.itemCode) + " " + L(y.name), 1),
|
|
818
|
+
y.variantName ? (C(), V("div", lt, L(y.variantName), 1)) : K("", !0)
|
|
819
819
|
])
|
|
820
820
|
]),
|
|
821
821
|
c("td", null, [
|
|
822
822
|
M(d, {
|
|
823
|
-
"model-value":
|
|
824
|
-
"onUpdate:modelValue": [(n) =>
|
|
823
|
+
"model-value": y.code,
|
|
824
|
+
"onUpdate:modelValue": [(n) => y.code = n, (n) => E(y, n)],
|
|
825
825
|
rules: [
|
|
826
826
|
function(u) {
|
|
827
827
|
return !!u || "Required";
|
|
@@ -836,7 +836,7 @@ const $e = { class: "flex flex-col rounded border border-fm-color-neutral-gray-1
|
|
|
836
836
|
icon: "delete",
|
|
837
837
|
"icon-color": "#000000",
|
|
838
838
|
size: "md",
|
|
839
|
-
onClick: (n) => z(
|
|
839
|
+
onClick: (n) => z(y)
|
|
840
840
|
}, null, 8, ["onClick"])
|
|
841
841
|
])
|
|
842
842
|
])
|
|
@@ -870,21 +870,21 @@ const $e = { class: "flex flex-col rounded border border-fm-color-neutral-gray-1
|
|
|
870
870
|
var E, m;
|
|
871
871
|
(m = (E = r.value) == null ? void 0 : E.validateInputs) == null || m.call(E);
|
|
872
872
|
}
|
|
873
|
-
function
|
|
873
|
+
function H() {
|
|
874
874
|
f("update:setting", T(l)), f("submit");
|
|
875
875
|
}
|
|
876
876
|
const { t: z } = Y();
|
|
877
877
|
return (E, m) => {
|
|
878
878
|
const v = O("FmChip"), I = O("FmForm"), S = O("FmButton"), h = O("FmSideSheet");
|
|
879
879
|
return C(), Z(h, {
|
|
880
|
-
modelValue:
|
|
880
|
+
modelValue: b(p),
|
|
881
881
|
"onUpdate:modelValue": m[4] || (m[4] = (s) => ie(p) ? p.value = s : null),
|
|
882
|
-
header:
|
|
882
|
+
header: b(z)("inventory.integration.apply.title"),
|
|
883
883
|
"dismiss-away": "",
|
|
884
884
|
"close-button": "",
|
|
885
885
|
"max-width": 500
|
|
886
886
|
}, {
|
|
887
|
-
default:
|
|
887
|
+
default: J(() => [
|
|
888
888
|
c("div", dt, [
|
|
889
889
|
c("div", null, [
|
|
890
890
|
M(v, { label: "Menu v3" })
|
|
@@ -892,9 +892,9 @@ const $e = { class: "flex flex-col rounded border border-fm-color-neutral-gray-1
|
|
|
892
892
|
M(I, {
|
|
893
893
|
ref_key: "formRef",
|
|
894
894
|
ref: r,
|
|
895
|
-
onValidationSuccess: m[2] || (m[2] = (s) =>
|
|
895
|
+
onValidationSuccess: m[2] || (m[2] = (s) => H())
|
|
896
896
|
}, {
|
|
897
|
-
default:
|
|
897
|
+
default: J(() => [
|
|
898
898
|
M(W, {
|
|
899
899
|
bindings: l.bindings,
|
|
900
900
|
categories: E.categories,
|
|
@@ -914,11 +914,11 @@ const $e = { class: "flex flex-col rounded border border-fm-color-neutral-gray-1
|
|
|
914
914
|
}, 512)
|
|
915
915
|
])
|
|
916
916
|
]),
|
|
917
|
-
"side-sheet-footer":
|
|
917
|
+
"side-sheet-footer": J(() => [
|
|
918
918
|
M(S, {
|
|
919
919
|
loading: E.loading,
|
|
920
920
|
type: "submit",
|
|
921
|
-
label:
|
|
921
|
+
label: b(z)("common.confirm"),
|
|
922
922
|
onClick: m[3] || (m[3] = (s) => k())
|
|
923
923
|
}, null, 8, ["loading", "label"])
|
|
924
924
|
]),
|
|
@@ -948,7 +948,7 @@ const $e = { class: "flex flex-col rounded border border-fm-color-neutral-gray-1
|
|
|
948
948
|
const r = R(() => o.menus.filter((s) => (s == null ? void 0 : s.category) === null)), p = R(() => l.bindings.filter((s) => {
|
|
949
949
|
const t = o.menus.find((i) => i._id === s.productId);
|
|
950
950
|
return t ? (t == null ? void 0 : t.category) === null : !1;
|
|
951
|
-
})), k = R(() => o.menus.filter((s) => (s == null ? void 0 : s.category) !== null)),
|
|
951
|
+
})), k = R(() => o.menus.filter((s) => (s == null ? void 0 : s.category) !== null)), H = R(() => l.bindings.filter((s) => {
|
|
952
952
|
const t = o.menus.find((i) => i._id === s.productId);
|
|
953
953
|
return t ? (t == null ? void 0 : t.category) !== null : !1;
|
|
954
954
|
}));
|
|
@@ -956,7 +956,7 @@ const $e = { class: "flex flex-col rounded border border-fm-color-neutral-gray-1
|
|
|
956
956
|
l.bindings = [...p.value, ...s];
|
|
957
957
|
}
|
|
958
958
|
function E(s) {
|
|
959
|
-
l.bindings = [...
|
|
959
|
+
l.bindings = [...H.value, ...s];
|
|
960
960
|
}
|
|
961
961
|
const m = Q(), v = ue(o, "show");
|
|
962
962
|
function I() {
|
|
@@ -968,16 +968,16 @@ const $e = { class: "flex flex-col rounded border border-fm-color-neutral-gray-1
|
|
|
968
968
|
}
|
|
969
969
|
const { t: h } = Y();
|
|
970
970
|
return (s, t) => {
|
|
971
|
-
const i = O("FmChip"), a = O("FmForm"), d = O("FmButton"),
|
|
972
|
-
return C(), Z(
|
|
973
|
-
modelValue:
|
|
971
|
+
const i = O("FmChip"), a = O("FmForm"), d = O("FmButton"), y = O("FmSideSheet");
|
|
972
|
+
return C(), Z(y, {
|
|
973
|
+
modelValue: b(v),
|
|
974
974
|
"onUpdate:modelValue": t[4] || (t[4] = (e) => ie(v) ? v.value = e : null),
|
|
975
|
-
header:
|
|
975
|
+
header: b(h)("inventory.integration.apply.title"),
|
|
976
976
|
"dismiss-away": "",
|
|
977
977
|
"close-button": "",
|
|
978
978
|
"max-width": 500
|
|
979
979
|
}, {
|
|
980
|
-
default:
|
|
980
|
+
default: J(() => [
|
|
981
981
|
c("div", ct, [
|
|
982
982
|
c("div", null, [
|
|
983
983
|
M(i, { label: "Menu v4" })
|
|
@@ -987,11 +987,11 @@ const $e = { class: "flex flex-col rounded border border-fm-color-neutral-gray-1
|
|
|
987
987
|
ref: m,
|
|
988
988
|
onValidationSuccess: t[2] || (t[2] = (e) => S())
|
|
989
989
|
}, {
|
|
990
|
-
default:
|
|
990
|
+
default: J(() => [
|
|
991
991
|
M(W, {
|
|
992
992
|
categories: s.categories,
|
|
993
993
|
variants: s.variants,
|
|
994
|
-
bindings:
|
|
994
|
+
bindings: H.value,
|
|
995
995
|
menus: k.value,
|
|
996
996
|
"onUpdate:bindings": t[0] || (t[0] = (e) => z(e))
|
|
997
997
|
}, null, 8, ["categories", "variants", "bindings", "menus"]),
|
|
@@ -1008,11 +1008,11 @@ const $e = { class: "flex flex-col rounded border border-fm-color-neutral-gray-1
|
|
|
1008
1008
|
}, 512)
|
|
1009
1009
|
])
|
|
1010
1010
|
]),
|
|
1011
|
-
"side-sheet-footer":
|
|
1011
|
+
"side-sheet-footer": J(() => [
|
|
1012
1012
|
M(d, {
|
|
1013
1013
|
loading: s.loading,
|
|
1014
1014
|
type: "submit",
|
|
1015
|
-
label:
|
|
1015
|
+
label: b(h)("common.confirm"),
|
|
1016
1016
|
onClick: t[3] || (t[3] = (e) => I())
|
|
1017
1017
|
}, null, 8, ["loading", "label"])
|
|
1018
1018
|
]),
|
|
@@ -1020,10 +1020,10 @@ const $e = { class: "flex flex-col rounded border border-fm-color-neutral-gray-1
|
|
|
1020
1020
|
}, 8, ["modelValue", "header"]);
|
|
1021
1021
|
};
|
|
1022
1022
|
}
|
|
1023
|
-
}), ft = { key: 0 }, mt = { class: "flex justify-center" }, gt = ["src"], pt = { class: "flex flex-col items-center gap-2" }, vt = { class: "text-lg font-bold" }, It = { class: "text-fm-color-neutral-gray-300" },
|
|
1023
|
+
}), ft = { key: 0 }, mt = { class: "flex justify-center" }, gt = ["src"], pt = { class: "flex flex-col items-center gap-2" }, vt = { class: "text-lg font-bold" }, It = { class: "text-fm-color-neutral-gray-300" }, bt = { key: 0 }, yt = /* @__PURE__ */ F({
|
|
1024
1024
|
__name: "FoodMarketHub",
|
|
1025
1025
|
setup(g) {
|
|
1026
|
-
const A = ke(), o = ae(), f = _(), l = Q(!1), r = ce(), p = R(() => r.state.menu ?? []), k = R(() => r.state.group ?? []),
|
|
1026
|
+
const A = ke(), o = ae(), f = _(), l = Q(!1), r = ce(), p = R(() => r.state.menu ?? []), k = R(() => r.state.group ?? []), H = R(() => r.state.variants ?? []), z = R(() => r.state.categories ?? []), E = se(), m = R(() => {
|
|
1027
1027
|
var a;
|
|
1028
1028
|
return (a = A.currentBusiness.value) == null ? void 0 : a.menuVersion;
|
|
1029
1029
|
});
|
|
@@ -1057,8 +1057,8 @@ const $e = { class: "flex flex-col rounded border border-fm-color-neutral-gray-1
|
|
|
1057
1057
|
}
|
|
1058
1058
|
const { t: i } = Y();
|
|
1059
1059
|
return (a, d) => {
|
|
1060
|
-
const
|
|
1061
|
-
return
|
|
1060
|
+
const y = O("FmCardSection"), e = O("FmCard");
|
|
1061
|
+
return b(r).isEnabled && !b(r).isBusinessLocation ? (C(), V("div", ft, [
|
|
1062
1062
|
M(e, {
|
|
1063
1063
|
class: q({
|
|
1064
1064
|
"w-full": s.value,
|
|
@@ -1070,18 +1070,18 @@ const $e = { class: "flex flex-col rounded border border-fm-color-neutral-gray-1
|
|
|
1070
1070
|
}),
|
|
1071
1071
|
onClick: d[0] || (d[0] = (n) => I())
|
|
1072
1072
|
}, {
|
|
1073
|
-
default:
|
|
1074
|
-
M(
|
|
1075
|
-
default:
|
|
1073
|
+
default: J(() => [
|
|
1074
|
+
M(y, null, {
|
|
1075
|
+
default: J(() => [
|
|
1076
1076
|
c("div", mt, [
|
|
1077
1077
|
c("img", {
|
|
1078
|
-
src:
|
|
1078
|
+
src: b(Me),
|
|
1079
1079
|
alt: "Food Market Hub"
|
|
1080
1080
|
}, null, 8, gt)
|
|
1081
1081
|
]),
|
|
1082
1082
|
c("div", pt, [
|
|
1083
|
-
c("div", vt, L(
|
|
1084
|
-
c("div", It, L(
|
|
1083
|
+
c("div", vt, L(b(i)("inventory.integration.fmh.title")), 1),
|
|
1084
|
+
c("div", It, L(b(i)("inventory.integration.fmh.description")), 1)
|
|
1085
1085
|
])
|
|
1086
1086
|
]),
|
|
1087
1087
|
_: 1
|
|
@@ -1089,15 +1089,15 @@ const $e = { class: "flex flex-col rounded border border-fm-color-neutral-gray-1
|
|
|
1089
1089
|
]),
|
|
1090
1090
|
_: 1
|
|
1091
1091
|
}, 8, ["class"]),
|
|
1092
|
-
|
|
1092
|
+
b(r).state.setting ? (C(), V("div", bt, [
|
|
1093
1093
|
(C(), Z(oe, { to: "body" }, [
|
|
1094
1094
|
m.value === "v3" ? (C(), Z(ut, {
|
|
1095
1095
|
key: 0,
|
|
1096
1096
|
menus: p.value,
|
|
1097
|
-
variants:
|
|
1097
|
+
variants: H.value,
|
|
1098
1098
|
categories: z.value,
|
|
1099
|
-
setting:
|
|
1100
|
-
"onUpdate:setting": d[1] || (d[1] = (n) =>
|
|
1099
|
+
setting: b(r).state.setting,
|
|
1100
|
+
"onUpdate:setting": d[1] || (d[1] = (n) => b(r).state.setting = n),
|
|
1101
1101
|
show: v.value,
|
|
1102
1102
|
"onUpdate:show": d[2] || (d[2] = (n) => v.value = n),
|
|
1103
1103
|
groups: k.value,
|
|
@@ -1106,10 +1106,10 @@ const $e = { class: "flex flex-col rounded border border-fm-color-neutral-gray-1
|
|
|
1106
1106
|
}, null, 8, ["menus", "variants", "categories", "setting", "show", "groups", "loading"])) : (C(), Z(At, {
|
|
1107
1107
|
key: 1,
|
|
1108
1108
|
menus: p.value,
|
|
1109
|
-
variants:
|
|
1109
|
+
variants: H.value,
|
|
1110
1110
|
categories: z.value,
|
|
1111
|
-
setting:
|
|
1112
|
-
"onUpdate:setting": d[4] || (d[4] = (n) =>
|
|
1111
|
+
setting: b(r).state.setting,
|
|
1112
|
+
"onUpdate:setting": d[4] || (d[4] = (n) => b(r).state.setting = n),
|
|
1113
1113
|
show: v.value,
|
|
1114
1114
|
"onUpdate:show": d[5] || (d[5] = (n) => v.value = n),
|
|
1115
1115
|
groups: k.value,
|
|
@@ -1129,9 +1129,9 @@ const $e = { class: "flex flex-col rounded border border-fm-color-neutral-gray-1
|
|
|
1129
1129
|
o.value = !0;
|
|
1130
1130
|
}
|
|
1131
1131
|
const { breakpoints: l } = $(), r = R(() => l.value.xs || l.value.sm), p = R(() => r.value), { t: k } = Y();
|
|
1132
|
-
return (
|
|
1132
|
+
return (H, z) => {
|
|
1133
1133
|
const E = O("FmCardSection"), m = O("FmCard");
|
|
1134
|
-
return
|
|
1134
|
+
return b(A).isEnabled && b(A).isBusinessLocation ? (C(), V("div", ht, [
|
|
1135
1135
|
M(m, {
|
|
1136
1136
|
class: q({
|
|
1137
1137
|
"w-full": p.value,
|
|
@@ -1143,18 +1143,18 @@ const $e = { class: "flex flex-col rounded border border-fm-color-neutral-gray-1
|
|
|
1143
1143
|
}),
|
|
1144
1144
|
onClick: z[0] || (z[0] = (v) => f())
|
|
1145
1145
|
}, {
|
|
1146
|
-
default:
|
|
1146
|
+
default: J(() => [
|
|
1147
1147
|
M(E, null, {
|
|
1148
|
-
default:
|
|
1148
|
+
default: J(() => [
|
|
1149
1149
|
c("div", Bt, [
|
|
1150
1150
|
c("img", {
|
|
1151
|
-
src:
|
|
1151
|
+
src: b(Et),
|
|
1152
1152
|
alt: "NetSuite"
|
|
1153
1153
|
}, null, 8, Ct)
|
|
1154
1154
|
]),
|
|
1155
1155
|
c("div", St, [
|
|
1156
|
-
c("div", kt, L(
|
|
1157
|
-
c("div", xt, L(
|
|
1156
|
+
c("div", kt, L(b(k)("inventory.integration.netsuite.title")), 1),
|
|
1157
|
+
c("div", xt, L(b(k)("inventory.integration.netsuite.description")), 1)
|
|
1158
1158
|
])
|
|
1159
1159
|
]),
|
|
1160
1160
|
_: 1
|
|
@@ -1162,28 +1162,28 @@ const $e = { class: "flex flex-col rounded border border-fm-color-neutral-gray-1
|
|
|
1162
1162
|
]),
|
|
1163
1163
|
_: 1
|
|
1164
1164
|
}, 8, ["class"]),
|
|
1165
|
-
|
|
1165
|
+
b(A).state.setting ? (C(), V("div", wt, [
|
|
1166
1166
|
(C(), Z(oe, { to: "body" }))
|
|
1167
1167
|
])) : K("", !0)
|
|
1168
1168
|
])) : K("", !0);
|
|
1169
1169
|
};
|
|
1170
1170
|
}
|
|
1171
|
-
}), Rt = { key: 0 },
|
|
1171
|
+
}), Rt = { key: 0 }, Vt = {
|
|
1172
1172
|
key: 1,
|
|
1173
1173
|
class: "flex flex-col items-center my-10 gap-5"
|
|
1174
|
-
},
|
|
1174
|
+
}, Ht = ["src"], zt = {
|
|
1175
1175
|
class: "text-xs text-neutral-400 text-center",
|
|
1176
1176
|
style: { "max-width": "25rem" }
|
|
1177
1177
|
}, Ot = { key: 2 }, Qt = /* @__PURE__ */ F({
|
|
1178
1178
|
__name: "IntegrationView",
|
|
1179
1179
|
setup(g) {
|
|
1180
1180
|
const A = _(), o = Q(!1), f = we(), { breakpoints: l } = $(), r = R(() => l.value.xs || l.value.sm), { t: p } = Y();
|
|
1181
|
-
return (k,
|
|
1181
|
+
return (k, H) => {
|
|
1182
1182
|
const z = O("FmCircularProgress");
|
|
1183
1183
|
return C(), Z(Be, {
|
|
1184
|
-
title:
|
|
1184
|
+
title: b(p)("inventory.integration.title")
|
|
1185
1185
|
}, {
|
|
1186
|
-
default:
|
|
1186
|
+
default: J(() => [
|
|
1187
1187
|
c("div", {
|
|
1188
1188
|
class: q([
|
|
1189
1189
|
"flex flex-col gap-8 max-h-full",
|
|
@@ -1197,20 +1197,20 @@ const $e = { class: "flex flex-col rounded border border-fm-color-neutral-gray-1
|
|
|
1197
1197
|
"change-location": "",
|
|
1198
1198
|
showBusiness: ""
|
|
1199
1199
|
}),
|
|
1200
|
-
!
|
|
1200
|
+
!b(A)._currentLocation || o.value ? (C(), V("div", Rt, [
|
|
1201
1201
|
M(z, { size: "lg" })
|
|
1202
|
-
])) :
|
|
1202
|
+
])) : b(f).enabledIntegrations == 0 ? (C(), V("div", Vt, [
|
|
1203
1203
|
c("div", null, [
|
|
1204
1204
|
c("img", {
|
|
1205
|
-
src:
|
|
1205
|
+
src: b(Ee),
|
|
1206
1206
|
alt: "List is empty"
|
|
1207
|
-
}, null, 8,
|
|
1207
|
+
}, null, 8, Ht)
|
|
1208
1208
|
]),
|
|
1209
|
-
|
|
1210
|
-
c("div", zt, L(
|
|
1211
|
-
])) : (C(),
|
|
1209
|
+
H[0] || (H[0] = c("div", { class: "font-bold text-lg" }, "Integration", -1)),
|
|
1210
|
+
c("div", zt, L(b(p)("inventory.integration.description")), 1)
|
|
1211
|
+
])) : (C(), V("div", Ot, [
|
|
1212
1212
|
M(Mt),
|
|
1213
|
-
M(
|
|
1213
|
+
M(yt)
|
|
1214
1214
|
]))
|
|
1215
1215
|
], 2)
|
|
1216
1216
|
]),
|