@feedmepos/mf-inventory-portal 0.0.23-dev.9 → 0.0.24-dev.1
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-D3sNH2MR.js +276 -0
- package/dist/{ApprovalView-e85YmdZN.js → ApprovalView-DHnRx0hJ.js} +17 -20
- package/dist/{BindingsDialog-giBUD0IH.js → BindingsDialog-oTeg2Dai.js} +6 -6
- package/dist/{BindingsPicker-CC4MmPbF.js → BindingsPicker-CWdjmMJ3.js} +8 -9
- package/dist/{BindingsTable-WphZdzrA.js → BindingsTable-bKLR1OKX.js} +18 -22
- package/dist/ClosingDraftView-CIQVz7lY.js +1225 -0
- package/dist/{ClosingTemplateView-1lzoDyet.js → ClosingTemplateView-D5pLzQwU.js} +259 -274
- package/dist/FmCustomAttribute.vue_vue_type_script_setup_true_lang-ClLDcchC.js +142 -0
- package/dist/{FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-Cv-vvzr5.js → FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-B_c6Vn6P.js} +23 -24
- package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-DIFQcrc0.js → FmUnitInput.vue_vue_type_script_setup_true_lang-DhpHOaRH.js} +50 -51
- package/dist/{IngredientGroupView-UegBM_JK.js → IngredientGroupView-4C437mso.js} +63 -70
- package/dist/IngredientsView-DoiGgjre.js +1706 -0
- package/dist/{IntegrationView-FYNNzKia.js → IntegrationView-8ZKE7MAM.js} +123 -126
- package/dist/{InventoryBindingForm-DsHv_IHG.js → InventoryBindingForm-CcnfliYQ.js} +1 -1
- package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-BURSXafS.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-B_J-6C9x.js} +116 -108
- package/dist/{InventoryBindingSummary-BLb4MRPZ.js → InventoryBindingSummary-CRdHCzNE.js} +1 -1
- package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-BG78-DHs.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-B2-TypU0.js} +1 -1
- package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-CqID5_7v.js → PremiumBadge.vue_vue_type_script_setup_true_lang-BuQde75S.js} +20 -21
- package/dist/PublishView-t5gjGmK_.js +192 -0
- package/dist/{PurchaseOrderPrintPreview-BBMU3teq.js → PurchaseOrderPrintPreview-6i53Y-v1.js} +13 -14
- package/dist/ReceiveRequestView-uOeSh0Mr.js +1866 -0
- package/dist/RecipeView-BTWywckD.js +609 -0
- package/dist/StockView-DN2xk8ei.js +1817 -0
- package/dist/{SupplierView-B2aObtwK.js → SupplierView-l0XUg3J4.js} +185 -196
- package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-CWMn6fFf.js +1327 -0
- package/dist/TransferTemplateView-wDKXpCWZ.js +1263 -0
- package/dist/UnitView-CUI-k-tS.js +648 -0
- package/dist/{WarehouseView-G8pej6Y2.js → WarehouseView-WsI_eG5r.js} +190 -197
- package/dist/api/adjustment-template.d.ts +25 -0
- package/dist/api/bill.d.ts +240 -84
- package/dist/api/inventory.d.ts +19 -6
- package/dist/api/netsuite.d.ts +3 -3
- package/dist/app-DntcWR3_.js +85558 -0
- package/dist/app.d.ts +85 -0
- package/dist/app.js +2 -2
- package/dist/components/FmCustomAttribute.vue.d.ts +23 -0
- package/dist/components/FmLockableField.vue.d.ts +37 -0
- package/dist/components/FmMultiselectDialogProps.d.ts +1 -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/composable/defineDeepModel.d.ts +1 -1
- package/dist/{decimal-DC07xoJW.js → decimal-DTCTnMwO.js} +1 -1
- package/dist/format-unit-display-Hy48Iw5j.js +1215 -0
- package/dist/index-Bv9RYyTZ.js +29202 -0
- package/dist/{StockView-C5btudss.js → index-D4yJP9I2.js} +2220 -3863
- package/dist/layout/SingleColumnLayout.vue.d.ts +1 -0
- package/dist/router/name.d.ts +2 -0
- package/dist/stock-BsdmfT-b.js +125 -0
- package/dist/stores/feature.d.ts +41 -1
- package/dist/stores/integration/netsuite.d.ts +3 -2
- package/dist/stores/inventory.d.ts +20 -8
- package/dist/stores/location.d.ts +29 -1
- package/dist/stores/supplier.d.ts +1 -1
- package/dist/style.css +1 -1
- package/dist/supplier-CXhkgC4M.js +77 -0
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{use-inventory-binding-dialog-B0G2XYSw.js → use-inventory-binding-dialog-DPMJmBCr.js} +10 -11
- package/dist/views/adjustment-template/import/AdjustmentTemplateImport.vue.d.ts +2 -0
- package/dist/views/adjustment-template/import/AdjustmentTemplateImportItem.vue.d.ts +18 -0
- package/dist/views/adjustment-template/import/export.d.ts +60 -0
- package/dist/views/adjustment-template/wastage-template/WastageTemplateDetails.vue.d.ts +2 -0
- package/dist/views/adjustment-template/wastage-template/WastageTemplateDialog.vue.d.ts +22 -0
- package/dist/views/adjustment-template/wastage-template/WastageTemplatePublish.vue.d.ts +6 -0
- package/dist/views/adjustment-template/wastage-template/WastageTemplateReason.vue.d.ts +18 -0
- package/dist/views/adjustment-template/wastage-template/WastageTemplateView.vue.d.ts +2 -0
- package/dist/views/adjustment-template/wastage-template/actions.d.ts +1377 -0
- package/dist/views/adjustment-template/wastage-template/form/WastageTemplateForm.vue.d.ts +16 -0
- package/dist/views/adjustment-template/wastage-template/form/WastageTemplateItemTable.vue.d.ts +35 -0
- package/dist/views/adjustment-template/wastage-template/form/useAdjustmentTemplateItems.d.ts +20 -0
- package/dist/views/adjustment-template/wastage-template/props.d.ts +36 -0
- package/dist/views/adjustment-template/wastage-template/table.d.ts +1351 -0
- package/dist/views/closing-draft/components/closing-draft-dialog/ClosingDraftDialog.vue.d.ts +198 -12
- package/dist/views/closing-draft/composables/use-closing-draft-actions.d.ts +7 -4
- package/dist/views/closing-draft/composables/use-closing-draft-table.d.ts +1559 -467
- package/dist/views/closing-draft/helpers/export-draft.helper.d.ts +19 -0
- package/dist/views/closing-draft/helpers/get-calculated-total.helper.d.ts +4 -0
- 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 +72 -12
- package/dist/views/closing-template/composables/use-closing-template-table.d.ts +73 -13
- 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/publish/PublishView.vue.d.ts +2 -0
- package/dist/views/receive-request/components/netsuite/NetSuiteInfo.vue.d.ts +12 -0
- package/dist/views/receive-request/components/netsuite/NetSuiteProps.d.ts +13 -0
- package/dist/views/receive-request/components/netsuite/NetSuiteSync.vue.d.ts +12 -0
- package/dist/views/receive-request/components/transfer-form/NetSuiteField.vue.d.ts +13 -0
- 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 +86 -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 +126 -24
- package/dist/views/receive-request/composables/use-receive-request-table.d.ts +126 -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 +6 -4
- package/dist/views/stock/helper/compute-summary-total.d.ts +2 -2
- package/dist/views/transfer-template/components/transfer-template-form/composables/use-template-enabled-locations.d.ts +4 -0
- 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 +72 -12
- package/dist/views/transfer-template/composables/use-transfer-template-table.d.ts +72 -12
- package/dist/views/transfer-template/helpers/import-export.helper.d.ts +2 -1
- package/dist/vue-i18n-ByVzHsI7.js +2365 -0
- package/package.json +5 -4
- package/dist/App-ByLgARNp.js +0 -259
- package/dist/ClosingDraftView-CQM1Sx45.js +0 -755
- package/dist/FmDroppableField-8RzKjEdL.js +0 -154
- package/dist/FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-BvkN-71q.js +0 -436
- package/dist/FmMultiselectDialog-DScMA6iG.js +0 -415
- package/dist/IngredientBindedItem.vue_vue_type_script_setup_true_lang-t4pim_k9.js +0 -51
- package/dist/IngredientsView-BfW-jZLM.js +0 -1666
- package/dist/ReceiveRequestView-vbANEzne.js +0 -4165
- package/dist/RecipeView-DW4DY0C0.js +0 -598
- package/dist/TableActionableRow.vue_vue_type_script_setup_true_lang-DlNJ6kRg.js +0 -135
- package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-B2LOvVef.js +0 -1229
- package/dist/TransferTemplateView-BKumN_p6.js +0 -1262
- package/dist/UnitView-CHLucv9s.js +0 -648
- package/dist/_plugin-vue_export-helper-CHgC5LLL.js +0 -9
- package/dist/app-BXjk74IB.js +0 -33538
- package/dist/date2-CWAt9bRf.js +0 -117
- package/dist/dayjs.min-D3jPOnu6.js +0 -282
- package/dist/defineDeepModel-CiD4GtOw.js +0 -13
- package/dist/feature-6tcLMotY.js +0 -92
- package/dist/form-mode.enum-BKiNVH6A.js +0 -4
- package/dist/format-time-from-id-CYU5Z9Mt.js +0 -15
- package/dist/format-unit-display-CY-0bznr.js +0 -1217
- package/dist/fuzzy-BMkhNYLR.js +0 -41
- package/dist/index-BXwQa14X.js +0 -45
- package/dist/index-CRLd5xyg.js +0 -22283
- package/dist/index-DqwAtOgI.js +0 -12087
- package/dist/netsuite-fYUUk_ss.js +0 -225
- package/dist/row-action.enum-7rGLGZ5v.js +0 -55
- package/dist/rules-BmRGm3yv.js +0 -203
- package/dist/stock-CEX0DP2B.js +0 -111
- package/dist/supplier-CdJmZr7w.js +0 -77
- package/dist/use-template-enabled-locations-2-xbPJWHCs.js +0 -86
- package/dist/xlsx-CTOKp7SQ.js +0 -24004
- package/dist/xlsx.util-D5NFSfDg.js +0 -78
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@feedmepos/mf-inventory-portal",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.24-dev.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist"
|
|
@@ -14,10 +14,11 @@
|
|
|
14
14
|
"./style": "./dist/style.css"
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"@feedmepos/core": "^2.
|
|
17
|
+
"@feedmepos/core": "^2.12.28",
|
|
18
|
+
"@feedmepos/feature-flag": "^0.0.13",
|
|
18
19
|
"@feedmepos/menu": "1.0.34",
|
|
19
|
-
"@feedmepos/mf-common": "1.
|
|
20
|
-
"@feedmepos/ui-library": "1.
|
|
20
|
+
"@feedmepos/mf-common": "1.18.0-beta.3",
|
|
21
|
+
"@feedmepos/ui-library": "1.5.0-beta.1",
|
|
21
22
|
"@tanstack/vue-table": "^8.17.3",
|
|
22
23
|
"@types/dinero.js": "^1.9.4",
|
|
23
24
|
"@typescript-eslint/typescript-estree": "^8.21.0",
|
package/dist/App-ByLgARNp.js
DELETED
|
@@ -1,259 +0,0 @@
|
|
|
1
|
-
import { ref as w, onUnmounted as F, defineComponent as h, watch as b, onMounted as U, computed as R, resolveComponent as T, openBlock as S, createElementBlock as I, unref as v, createVNode as E, createElementVNode as p, toDisplayString as L, createBlock as G, createCommentVNode as k } from "vue";
|
|
2
|
-
import { u as M, a as D, R as e, g as s, b as H } from "./app-BXjk74IB.js";
|
|
3
|
-
import { useCoreStore as A, useI18n as B } from "@feedmepos/mf-common";
|
|
4
|
-
import { useRouter as C, useRoute as K } from "vue-router";
|
|
5
|
-
import { u as O } from "./feature-6tcLMotY.js";
|
|
6
|
-
import { u as $ } from "./netsuite-fYUUk_ss.js";
|
|
7
|
-
import { u as Q } from "./useTabStorage-BkIVScW_.js";
|
|
8
|
-
import { _ as W } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
9
|
-
import { u as j } from "./googlemap-Dm8ERVai.js";
|
|
10
|
-
import "./array-hChJVZLE.js";
|
|
11
|
-
function z() {
|
|
12
|
-
return {
|
|
13
|
-
loadingHookInstalled: !1,
|
|
14
|
-
isLoading: !1
|
|
15
|
-
};
|
|
16
|
-
}
|
|
17
|
-
const _ = w(z());
|
|
18
|
-
function q() {
|
|
19
|
-
const l = C();
|
|
20
|
-
if (!_.value.loadingHookInstalled) {
|
|
21
|
-
_.value.loadingHookInstalled = !0;
|
|
22
|
-
const n = l.beforeEach(() => {
|
|
23
|
-
_.value.isLoading = !0;
|
|
24
|
-
}), i = l.afterEach(() => {
|
|
25
|
-
_.value.isLoading = !1;
|
|
26
|
-
});
|
|
27
|
-
F(() => {
|
|
28
|
-
_.value.loadingHookInstalled = !1, n(), i();
|
|
29
|
-
});
|
|
30
|
-
}
|
|
31
|
-
return {
|
|
32
|
-
get isLoading() {
|
|
33
|
-
return _.value.isLoading;
|
|
34
|
-
}
|
|
35
|
-
};
|
|
36
|
-
}
|
|
37
|
-
const J = {
|
|
38
|
-
key: 0,
|
|
39
|
-
class: "flex flex-col items-center w-full h-full gap-24"
|
|
40
|
-
}, X = {
|
|
41
|
-
key: 1,
|
|
42
|
-
class: "flex flex-col pt-[200px] gap-32 items-center"
|
|
43
|
-
}, Y = { class: "flex flex-col gap-12 items-center text-center px-24 max-w-[1000px]" }, Z = { class: "fm-typo-en-title-lg-600" }, ee = { class: "text-fm-color-typo-secondary fm-typo-en-body-md-400" }, te = { class: "flex gap-16" }, oe = { href: "https://feedme.ai/product/inventory/features?tab=plans_%26_prices" }, ne = { href: "https://feedme.ai/form" }, re = /* @__PURE__ */ h({
|
|
44
|
-
__name: "InventoryView",
|
|
45
|
-
setup(l) {
|
|
46
|
-
const n = M(), i = D(), u = $(), a = A(), c = C(), o = q(), y = O(), { t: d } = B();
|
|
47
|
-
b(
|
|
48
|
-
[() => a.sessionUser.value, () => a.currentBusiness.value],
|
|
49
|
-
([t, r]) => {
|
|
50
|
-
f(t, r);
|
|
51
|
-
}
|
|
52
|
-
), U(() => {
|
|
53
|
-
const t = a.sessionUser.value, r = a.currentBusiness.value;
|
|
54
|
-
f(t, r);
|
|
55
|
-
});
|
|
56
|
-
function f(t, r) {
|
|
57
|
-
!t || !r || g();
|
|
58
|
-
}
|
|
59
|
-
async function g() {
|
|
60
|
-
return await n.init(), await u.readSetting().catch((t) => {
|
|
61
|
-
console.error("error on reading netsuite store", t);
|
|
62
|
-
}), await i.init();
|
|
63
|
-
}
|
|
64
|
-
const N = R(() => c.currentRoute.value.name === e.TRANSFER_TEMPLATE ? y.enablePoTemplate : !0);
|
|
65
|
-
return (t, r) => {
|
|
66
|
-
const m = T("FmSpacer"), P = T("FmCircularProgress"), x = T("FmButton"), V = T("RouterView");
|
|
67
|
-
return S(), I("div", null, [
|
|
68
|
-
v(o).isLoading ? (S(), I("div", J, [
|
|
69
|
-
E(m),
|
|
70
|
-
p("div", null, [
|
|
71
|
-
E(P, { size: "xl" })
|
|
72
|
-
]),
|
|
73
|
-
r[0] || (r[0] = p("div", { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary pl-8" }, "Loading page...", -1)),
|
|
74
|
-
E(m)
|
|
75
|
-
])) : N.value ? v(a).sessionUser.value ? (S(), G(V, { key: 2 })) : k("", !0) : (S(), I("div", X, [
|
|
76
|
-
p("div", Y, [
|
|
77
|
-
p("div", Z, L(v(d)("inventory.common.proPlan.title")), 1),
|
|
78
|
-
p("div", ee, L(v(d)("inventory.common.proPlan.subtitle")), 1)
|
|
79
|
-
]),
|
|
80
|
-
p("div", te, [
|
|
81
|
-
p("a", oe, [
|
|
82
|
-
E(x, {
|
|
83
|
-
label: v(d)("inventory.common.proPlan.comparePlans"),
|
|
84
|
-
variant: "secondary"
|
|
85
|
-
}, null, 8, ["label"])
|
|
86
|
-
]),
|
|
87
|
-
p("a", ne, [
|
|
88
|
-
E(x, {
|
|
89
|
-
label: v(d)("inventory.common.proPlan.callUs"),
|
|
90
|
-
"prepend-icon": "call"
|
|
91
|
-
}, null, 8, ["label"])
|
|
92
|
-
])
|
|
93
|
-
])
|
|
94
|
-
]))
|
|
95
|
-
]);
|
|
96
|
-
};
|
|
97
|
-
}
|
|
98
|
-
}), se = { class: "h-full flex flex-col overflow-auto py-16" }, ae = /* @__PURE__ */ h({
|
|
99
|
-
__name: "NavigationTab",
|
|
100
|
-
setup(l) {
|
|
101
|
-
const n = K(), i = C(), u = A(), a = O(), c = Q(), { t: o } = B();
|
|
102
|
-
b([() => u.currentBusiness.value, () => n.name], ([t, r]) => {
|
|
103
|
-
(t == null ? void 0 : t.menuVersion) === "v3" && (r === e.INGREDIENTS || r === e.RECIPE || r === e.UNIT) && i.push({ name: e.STOCK });
|
|
104
|
-
});
|
|
105
|
-
const y = R(() => {
|
|
106
|
-
var r;
|
|
107
|
-
const t = [
|
|
108
|
-
{
|
|
109
|
-
label: s(e.STOCK, o),
|
|
110
|
-
// icon: 'inventory_2',
|
|
111
|
-
children: [
|
|
112
|
-
{
|
|
113
|
-
label: "Stock balance",
|
|
114
|
-
value: e.STOCK
|
|
115
|
-
},
|
|
116
|
-
{
|
|
117
|
-
label: s(e.CLOSING_TEMPLATE, o),
|
|
118
|
-
value: e.CLOSING_TEMPLATE
|
|
119
|
-
},
|
|
120
|
-
{
|
|
121
|
-
label: s(e.CLOSING_DRAFT, o),
|
|
122
|
-
value: e.CLOSING_DRAFT
|
|
123
|
-
}
|
|
124
|
-
]
|
|
125
|
-
},
|
|
126
|
-
{
|
|
127
|
-
label: s(e.INGREDIENTS, o),
|
|
128
|
-
// icon: 'grocery',
|
|
129
|
-
value: e.INGREDIENTS
|
|
130
|
-
},
|
|
131
|
-
{
|
|
132
|
-
label: s(e.INGREDIENT_GROUP, o),
|
|
133
|
-
// icon: 'grocery',
|
|
134
|
-
value: e.INGREDIENT_GROUP
|
|
135
|
-
},
|
|
136
|
-
{
|
|
137
|
-
label: s(e.RECIPE, o),
|
|
138
|
-
// icon: 'weight',
|
|
139
|
-
value: e.RECIPE
|
|
140
|
-
},
|
|
141
|
-
{
|
|
142
|
-
label: s(e.UNIT, o),
|
|
143
|
-
// icon: 'fastfood',
|
|
144
|
-
value: e.UNIT
|
|
145
|
-
},
|
|
146
|
-
{
|
|
147
|
-
label: o("inventory.transfer.title"),
|
|
148
|
-
// icon: 'swap_horiz',
|
|
149
|
-
children: [
|
|
150
|
-
{
|
|
151
|
-
label: s(e.RECEIVE_REQUEST, o),
|
|
152
|
-
value: e.RECEIVE_REQUEST
|
|
153
|
-
},
|
|
154
|
-
{
|
|
155
|
-
label: s(e.APPROVAL, o),
|
|
156
|
-
value: e.APPROVAL
|
|
157
|
-
},
|
|
158
|
-
...a.enablePoTemplate ? [
|
|
159
|
-
{
|
|
160
|
-
label: s(e.TRANSFER_TEMPLATE, o),
|
|
161
|
-
value: e.TRANSFER_TEMPLATE
|
|
162
|
-
}
|
|
163
|
-
] : []
|
|
164
|
-
]
|
|
165
|
-
},
|
|
166
|
-
{
|
|
167
|
-
label: s(e.SUPPLIER, o),
|
|
168
|
-
// icon: 'group',
|
|
169
|
-
value: e.SUPPLIER
|
|
170
|
-
},
|
|
171
|
-
{
|
|
172
|
-
label: s(e.WAREHOUSE, o),
|
|
173
|
-
// icon: 'warehouse',
|
|
174
|
-
value: e.WAREHOUSE
|
|
175
|
-
},
|
|
176
|
-
{
|
|
177
|
-
label: s(e.INTEGRATION, o),
|
|
178
|
-
// icon: 'integration_instructions',
|
|
179
|
-
value: e.INTEGRATION
|
|
180
|
-
}
|
|
181
|
-
];
|
|
182
|
-
return ((r = u.currentBusiness.value) == null ? void 0 : r.menuVersion) === "v3" ? t.filter(
|
|
183
|
-
(m) => m.value !== e.INGREDIENTS && m.value !== e.RECIPE && m.value !== e.UNIT
|
|
184
|
-
) : t;
|
|
185
|
-
}), d = R({
|
|
186
|
-
get() {
|
|
187
|
-
if (n.name)
|
|
188
|
-
return String(n.name);
|
|
189
|
-
},
|
|
190
|
-
set(t) {
|
|
191
|
-
t && i.push({ name: t });
|
|
192
|
-
}
|
|
193
|
-
}), f = R(
|
|
194
|
-
() => {
|
|
195
|
-
var t;
|
|
196
|
-
return `NavigationTab.${(t = u.currentBusiness.value) == null ? void 0 : t._id}`;
|
|
197
|
-
}
|
|
198
|
-
), g = w(!1), N = R({
|
|
199
|
-
get() {
|
|
200
|
-
return g.value;
|
|
201
|
-
},
|
|
202
|
-
set(t) {
|
|
203
|
-
g.value = t, t || c.setItem(f.value, "true");
|
|
204
|
-
}
|
|
205
|
-
});
|
|
206
|
-
return b([() => f.value], () => {
|
|
207
|
-
g.value = !1, setTimeout(() => {
|
|
208
|
-
N.value = !c.getItem(f.value);
|
|
209
|
-
}, 2e3);
|
|
210
|
-
}), (t, r) => {
|
|
211
|
-
const m = T("FmCollapsibleTabs");
|
|
212
|
-
return S(), I("div", se, [
|
|
213
|
-
E(m, {
|
|
214
|
-
modelValue: d.value,
|
|
215
|
-
"onUpdate:modelValue": r[0] || (r[0] = (P) => d.value = P),
|
|
216
|
-
items: y.value
|
|
217
|
-
}, null, 8, ["modelValue", "items"])
|
|
218
|
-
]);
|
|
219
|
-
};
|
|
220
|
-
}
|
|
221
|
-
}), le = /* @__PURE__ */ W(ae, [["__scopeId", "data-v-070831e1"]]);
|
|
222
|
-
typeof Promise.withResolvers > "u" && (Promise.withResolvers = () => {
|
|
223
|
-
let l, n;
|
|
224
|
-
return { promise: new Promise((u, a) => {
|
|
225
|
-
l = u, n = a;
|
|
226
|
-
}), resolve: l, reject: n };
|
|
227
|
-
});
|
|
228
|
-
typeof Promise.prototype.delayed > "u" && (Promise.prototype.delayed = async function(l) {
|
|
229
|
-
return await new Promise((n) => setTimeout(n, l)), Promise.resolve(this);
|
|
230
|
-
});
|
|
231
|
-
const Se = /* @__PURE__ */ h({
|
|
232
|
-
__name: "App",
|
|
233
|
-
setup(l) {
|
|
234
|
-
const n = A(), i = j(), u = H();
|
|
235
|
-
U(() => {
|
|
236
|
-
if (window.location.href.includes("print-preview")) {
|
|
237
|
-
n.setEmbedded(!0);
|
|
238
|
-
return;
|
|
239
|
-
}
|
|
240
|
-
n.registerSidebarComponent(le), i.initGoogleMap(u.appApi.googleMap).catch(() => {
|
|
241
|
-
console.error("Google map cannot be loaded");
|
|
242
|
-
});
|
|
243
|
-
}), b([() => n.currentCountry.value], () => {
|
|
244
|
-
a();
|
|
245
|
-
});
|
|
246
|
-
async function a() {
|
|
247
|
-
var c;
|
|
248
|
-
try {
|
|
249
|
-
await n.readBusinesses(), n.currentBusiness.value = (c = n.businesses.value) == null ? void 0 : c.find((o) => o);
|
|
250
|
-
} catch (o) {
|
|
251
|
-
console.error("error when trying to reset businesses:", o);
|
|
252
|
-
}
|
|
253
|
-
}
|
|
254
|
-
return (c, o) => (S(), G(re));
|
|
255
|
-
}
|
|
256
|
-
});
|
|
257
|
-
export {
|
|
258
|
-
Se as default
|
|
259
|
-
};
|