@feedmepos/mf-menu 0.32.83-dev.1 → 0.32.83-dev.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{App-BYdCC3TK.js → App-CJtpyTsA.js} +6 -6
- package/dist/{ApplyProduct.vue_vue_type_script_setup_true_lang-CsMCfu1s.js → ApplyProduct.vue_vue_type_script_setup_true_lang-C01hHwqy.js} +3 -3
- package/dist/{ApplyProductDialog.vue_vue_type_script_setup_true_lang-CWH86f_J.js → ApplyProductDialog.vue_vue_type_script_setup_true_lang-4xmgAa5D.js} +3 -3
- package/dist/{Catalog-BPRRb4QE.js → Catalog-CTUtAc6s.js} +6 -6
- package/dist/{CatalogBinding-B2vhvUHz.js → CatalogBinding-DQf2xYH8.js} +13 -13
- package/dist/{Category-zKR2QaeE.js → Category-DP6UnoXf.js} +4 -4
- package/dist/{Category-DeeXKn4P.js → Category-Q9BCIS4J.js} +4 -4
- package/dist/{CookingGuide-Wm39wm7Q.js → CookingGuide-GbojUPLO.js} +5 -5
- package/dist/{CustomAttributeChip.vue_vue_type_script_setup_true_lang-CAHNxiEJ.js → CustomAttributeChip.vue_vue_type_script_setup_true_lang-CBRNh-O-.js} +1 -1
- package/dist/{Group-BNcZYOU4.js → Group-CJqQLteU.js} +3 -3
- package/dist/{Group-E2HYqd9f.js → Group-Dsc8PGdX.js} +1 -1
- package/dist/{Group.vue_vue_type_script_setup_true_lang-DPk_cgPi.js → Group.vue_vue_type_script_setup_true_lang-FWqqHQ20.js} +7 -7
- package/dist/{GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-B0X5brpK.js → GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-BcQa7V0d.js} +5 -5
- package/dist/{ImportProductDialog.vue_vue_type_script_setup_true_lang-DxowkX0c.js → ImportProductDialog.vue_vue_type_script_setup_true_lang-Cb9tTsPG.js} +7 -7
- package/dist/{Ingredient-DcJrO6OE.js → Ingredient-DWEB328H.js} +4 -4
- package/dist/{InventoryBinding.vue_vue_type_script_setup_true_lang-DfrJBP75.js → InventoryBinding.vue_vue_type_script_setup_true_lang-Dab9-l-S.js} +2 -2
- package/dist/{LinkProductSideSheet-DTzuEcF5.js → LinkProductSideSheet-BluWowSV.js} +4 -4
- package/dist/{MenuSetting-DICpAfNK.js → MenuSetting-C_ZsIERs.js} +7 -7
- package/dist/{OrderPacing-pD1pgJG5.js → OrderPacing-BZhIFo4P.js} +5 -5
- package/dist/{PrintRoute-BAY_gpJS.js → PrintRoute-C5ZJs7tz.js} +5 -5
- package/dist/{Product-B_YsLenC.js → Product-rESWzhq6.js} +1 -1
- package/dist/{Product.vue_vue_type_script_setup_true_lang-DEsNttgJ.js → Product.vue_vue_type_script_setup_true_lang-C-zJ0P53.js} +14 -14
- package/dist/{ProductInternalTools-CfA-6XtS.js → ProductInternalTools-tkLzH5hJ.js} +6 -6
- package/dist/{Products-arAA8I2u.js → Products-DxpE9Hhz.js} +49 -49
- package/dist/Publish-3z09Tj11.js +1608 -0
- package/dist/{Recipe-DRcrzXhA.js → Recipe-Dqtj2Ye9.js} +5 -5
- package/dist/{RestaurantAttributesSelector.vue_vue_type_script_setup_true_lang-CAVrU6RI.js → RestaurantAttributesSelector.vue_vue_type_script_setup_true_lang-CST9Gy_R.js} +1 -1
- package/dist/{RuleView.vue_vue_type_script_setup_true_lang-DYnnO3SQ.js → RuleView.vue_vue_type_script_setup_true_lang-_MGk1b10.js} +211 -211
- package/dist/{Scheduler-oxLqE74K.js → Scheduler-BgkBxTeC.js} +3 -3
- package/dist/{ServingSequence-DVkB7hDy.js → ServingSequence-D92cps_j.js} +3 -3
- package/dist/{Setting-DOsTp22X.js → Setting-JUioq6ZT.js} +5 -5
- package/dist/{Subcategory-BaclYZ5p.js → Subcategory-vjc6gzqd.js} +6 -6
- package/dist/{Takeaway-D2jvmsuu.js → Takeaway-BXMBCjFg.js} +1 -1
- package/dist/Takeaway-DSOy02ma.js +64 -0
- package/dist/Takeaway.vue_vue_type_script_setup_true_lang-539rI3Ek.js +331 -0
- package/dist/{TranslationFieldSection.vue_vue_type_script_setup_true_lang-M3Oh6Dr6.js → TranslationFieldSection.vue_vue_type_script_setup_true_lang-C37PZJuF.js} +1 -1
- package/dist/{TranslationSideSheet.vue_vue_type_script_setup_true_lang-DjswjUjQ.js → TranslationSideSheet.vue_vue_type_script_setup_true_lang-BjsExR0h.js} +2 -2
- package/dist/{TreeEditorOpenner.vue_vue_type_script_setup_true_lang-Dcd1ek03.js → TreeEditorOpenner.vue_vue_type_script_setup_true_lang-Dy-eMWb4.js} +602 -601
- package/dist/{Unit-Dx8HMvAE.js → Unit-_Eoj6ONR.js} +2 -2
- package/dist/{Variant-Dx6EWp55.js → Variant-D1iCI3U5.js} +3 -3
- package/dist/{_id_-DIsWlajV.js → _id_-BUrZucNq.js} +10 -10
- package/dist/{app-curMXZbh.js → app-B8GiVUrR.js} +1 -1
- package/dist/{app-BdtPzkjA.js → app-BJA5-4eB.js} +392 -392
- package/dist/app.js +1 -1
- package/dist/apps/mf-menu/src/app.d.ts +25 -0
- package/dist/apps/mf-menu/src/components/feature/TakeAwayManager/Form.vue.d.ts +3 -3
- package/dist/apps/mf-menu/src/helper/takeawayOverride.d.ts +12 -0
- package/dist/apps/mf-menu/src/manager/menu/takeaway.d.ts +14 -0
- package/dist/apps/mf-menu/src/views/Publish/publishError.d.ts +20 -0
- package/dist/apps/mf-menu/tsconfig.app.tsbuildinfo +1 -1
- package/dist/assets/{linked-status-DsxqMxwe.js → linked-status-Bqmqi1JL.js} +2 -2
- package/dist/assets/{menu-export-DcW52Lu3.js → menu-export-CfrN-LuH.js} +2 -2
- package/dist/assets/{override-menu-DPPsvKsd.js → override-menu-Cy7YaK_1.js} +2 -2
- package/dist/assets/{validate-menu-Byl7hJI2.js → validate-menu-BPtUlI3H.js} +2 -2
- package/dist/{catalog-D4uhTN3P.js → catalog-B3YnChlG.js} +1 -1
- package/dist/{catalogSetting-_zy50XFm.js → catalogSetting-BeiJ3_Fx.js} +1 -1
- package/dist/{currency-8AD3AdtT.js → currency-BKZrZwjw.js} +1 -1
- package/dist/{dayjs.min-CSadJcjJ.js → dayjs.min-WGRuZAMu.js} +2 -2
- package/dist/{discardConfirm-egY5vwUU.js → discardConfirm-CuLDiWC_.js} +1 -1
- package/dist/{index-BPGZgTH-.js → index-BYh87zkc.js} +5 -5
- package/dist/{index-B0hyUFIc.js → index-C36SngVC.js} +1 -1
- package/dist/{index-BpoYrrVu.js → index-CUzEne2b.js} +137 -131
- package/dist/{index.vue_vue_type_script_setup_true_lang-qUahjdoy.js → index.vue_vue_type_script_setup_true_lang-BJZykcBx.js} +10600 -10590
- package/dist/{item-CGqK7sn4.js → item-BQYLe0DU.js} +1289 -1288
- package/dist/{jszip.min-Qb_fhEy6.js → jszip.min-kAXqpQrc.js} +384 -384
- package/dist/{linkProducts-DwBnfj3L.js → linkProducts-B3BYn9Cw.js} +4 -4
- package/dist/{memberPricing-CcXhcbV9.js → memberPricing-DzPTdmS5.js} +1 -1
- package/dist/{menu-Cmz90lOu.js → menu-DUOE-Q12.js} +1 -1
- package/dist/{menuV2-yXOZpuda.js → menuV2-BO3LtBSw.js} +48 -48
- package/dist/{order_pacing-Bp1Hpcp2.js → order_pacing-DqVag6W3.js} +5 -5
- package/dist/{priceTier-B14Zw5XH.js → priceTier-BFauU3rd.js} +1 -1
- package/dist/{rules-COZi7aRn.js → rules-B596A4CJ.js} +3 -3
- package/dist/{scheduler-eoUNmYqB.js → scheduler-KT6kOtgK.js} +5 -5
- package/dist/{toExcel-BkhEG-vD.js → toExcel-CgXzLIId.js} +2 -2
- package/dist/{unit-Bmje7das.js → unit-BJeua1T7.js} +3 -3
- package/package.json +2 -2
- package/dist/Publish-BORONVKG.js +0 -1582
- package/dist/Takeaway-BbcmF6t2.js +0 -64
- package/dist/Takeaway.vue_vue_type_script_setup_true_lang-BpswLmDw.js +0 -324
|
@@ -2,11 +2,11 @@ import { defineComponent as H, ref as P, computed as p, resolveComponent as g, c
|
|
|
2
2
|
import { useI18n as Q } from "@feedmepos/mf-common";
|
|
3
3
|
import { components as W, useBreakpoints as oe, useSnackbar as ne, useDialog as ae } from "@feedmepos/ui-library";
|
|
4
4
|
import { _ as le } from "./ResponsiveFabButton.vue_vue_type_script_setup_true_lang-Cn-3MRBO.js";
|
|
5
|
-
import { _ as re } from "./app-
|
|
6
|
-
import { f as Y, h as U, i as M, K as X, u as se, j as ie, b as ue, _ as de } from "./index.vue_vue_type_script_setup_true_lang-
|
|
7
|
-
import { u as ce, l as me } from "./discardConfirm-
|
|
8
|
-
import { _ as G } from "./RuleView.vue_vue_type_script_setup_true_lang-
|
|
9
|
-
import { L as pe } from "./LinkProductSideSheet-
|
|
5
|
+
import { _ as re } from "./app-BJA5-4eB.js";
|
|
6
|
+
import { f as Y, h as U, i as M, K as X, u as se, j as ie, b as ue, _ as de } from "./index.vue_vue_type_script_setup_true_lang-BJZykcBx.js";
|
|
7
|
+
import { u as ce, l as me } from "./discardConfirm-CuLDiWC_.js";
|
|
8
|
+
import { _ as G } from "./RuleView.vue_vue_type_script_setup_true_lang-_MGk1b10.js";
|
|
9
|
+
import { L as pe } from "./LinkProductSideSheet-BluWowSV.js";
|
|
10
10
|
import { _ as _e } from "./PageLayout.vue_vue_type_script_setup_true_lang-BVmHMvKD.js";
|
|
11
11
|
const fe = { class: "fm-typo-en-title-md-600" }, ve = { class: "space-y-32" }, ye = { class: "space-y-16" }, ge = { class: "flex items-center gap-8" }, he = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, be = { class: "flex-1" }, ke = { class: "grow overflow-y-auto" }, xe = { class: "text-fm-color-typo-secondary bg-fm-color-neutral-gray-100 px-16 py-8 border-b border-b-fm-color-neutral-gray-200" }, Fe = { class: "px-16 py-8 flex-1" }, Ie = { class: "py-8" }, Ce = { class: "flex gap-8 items-center justify-start" }, we = /* @__PURE__ */ H({
|
|
12
12
|
__name: "PrintDepartmentDialog",
|
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
import { ref as F, computed as x, defineComponent as G, resolveComponent as K, createBlock as I, openBlock as m, withCtx as $, createElementVNode as g, createVNode as d, unref as n, createElementBlock as w, Fragment as de, renderList as Se, createCommentVNode as M, normalizeClass as me, toDisplayString as E, withModifiers as fe, mergeModels as at, useModel as ot, renderSlot as ye, watch as ie, createTextVNode as nt, watchEffect as rt, nextTick as Oe, resolveDynamicComponent as st, onMounted as ut, h as O, isRef as qe, normalizeStyle as xt } from "vue";
|
|
2
|
-
import { l as be } from "./discardConfirm-
|
|
3
|
-
import { u as Ie, o as we, a as ce, f as Ue, I as Ct, T as wt, _ as _e } from "./index.vue_vue_type_script_setup_true_lang-
|
|
2
|
+
import { l as be } from "./discardConfirm-CuLDiWC_.js";
|
|
3
|
+
import { u as Ie, o as we, a as ce, f as Ue, I as Ct, T as wt, _ as _e } from "./index.vue_vue_type_script_setup_true_lang-BJZykcBx.js";
|
|
4
4
|
import { useI18n as $e, useCoreStore as De, useCustomAttributes as kt } from "@feedmepos/mf-common";
|
|
5
|
-
import { u as Ve } from "./menu-
|
|
6
|
-
import { L as We } from "./LinkProductSideSheet-
|
|
7
|
-
import { _ as He } from "./RestaurantAttributesSelector.vue_vue_type_script_setup_true_lang-
|
|
8
|
-
import { _ as ze, a as Qe } from "./CustomAttributeChip.vue_vue_type_script_setup_true_lang-
|
|
9
|
-
import { u as St } from "./linkProducts-
|
|
10
|
-
import { f as Vt, o as Ft, a as It, m as $t } from "./menuV2-
|
|
11
|
-
import { w as it, ap as Tt, aq as Pt, M as At, G as Rt, ar as Ye } from "./item-
|
|
5
|
+
import { u as Ve } from "./menu-DUOE-Q12.js";
|
|
6
|
+
import { L as We } from "./LinkProductSideSheet-BluWowSV.js";
|
|
7
|
+
import { _ as He } from "./RestaurantAttributesSelector.vue_vue_type_script_setup_true_lang-CST9Gy_R.js";
|
|
8
|
+
import { _ as ze, a as Qe } from "./CustomAttributeChip.vue_vue_type_script_setup_true_lang-CBRNh-O-.js";
|
|
9
|
+
import { u as St } from "./linkProducts-B3BYn9Cw.js";
|
|
10
|
+
import { f as Vt, o as Ft, a as It, m as $t } from "./menuV2-BO3LtBSw.js";
|
|
11
|
+
import { w as it, ap as Tt, aq as Pt, M as At, G as Rt, ar as Ye } from "./item-BQYLe0DU.js";
|
|
12
12
|
import { b as Ze, H as Mt } from "./app-5fxKLAzS.js";
|
|
13
13
|
import { useBreakpoints as ct, components as ee, useDialog as Ot, FmButtonColorThemeVariant as W, FmButtonVariant as X } from "@feedmepos/ui-library";
|
|
14
|
-
import { f as Ne, h as Re, g as Ut, F as zt } from "./index-
|
|
15
|
-
import { _ as Ke, d as Nt, e as Dt } from "./app-
|
|
14
|
+
import { f as Ne, h as Re, g as Ut, F as zt } from "./index-C36SngVC.js";
|
|
15
|
+
import { _ as Ke, d as Nt, e as Dt } from "./app-BJA5-4eB.js";
|
|
16
16
|
import { _ as ke } from "./TextChip.vue_vue_type_script_setup_true_lang-8frWuZFL.js";
|
|
17
|
-
import { _ as Kt } from "./index-
|
|
18
|
-
import { r as Bt, _ as jt } from "./ImportProductDialog.vue_vue_type_script_setup_true_lang-
|
|
17
|
+
import { _ as Kt } from "./index-CUzEne2b.js";
|
|
18
|
+
import { r as Bt, _ as jt } from "./ImportProductDialog.vue_vue_type_script_setup_true_lang-Cb9tTsPG.js";
|
|
19
19
|
import { _ as Je } from "./TranslationViewChip.vue_vue_type_script_setup_true_lang-DiK3fi9J.js";
|
|
20
20
|
import { c as Et } from "./check-C9mY6LiX.js";
|
|
21
|
-
import { f as Gt } from "./currency-
|
|
21
|
+
import { f as Gt } from "./currency-BKZrZwjw.js";
|
|
22
22
|
import { w as Lt } from "./tooltip-B5BiPMx9.js";
|
|
23
23
|
function qt(h, e, c = h) {
|
|
24
24
|
const r = F(!0), o = x(() => {
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { defineComponent as W, ref as v, computed as M, resolveComponent as G, createElementBlock as c, openBlock as i, createElementVNode as s, createVNode as k, unref as h, createCommentVNode as B, normalizeClass as R, toDisplayString as $, createStaticVNode as A, Fragment as T, renderList as O, createBlock as re, withCtx as D } from "vue";
|
|
2
|
-
import { J as V, F as ie } from "./jszip.min-
|
|
3
|
-
import { l as Z } from "./discardConfirm-
|
|
2
|
+
import { J as V, F as ie } from "./jszip.min-kAXqpQrc.js";
|
|
3
|
+
import { l as Z } from "./discardConfirm-CuLDiWC_.js";
|
|
4
4
|
import { useI18n as ce } from "@feedmepos/mf-common";
|
|
5
5
|
import { FmButtonVariant as P, useSnackbar as q, useDialog as de, FmButtonColorThemeVariant as z } from "@feedmepos/ui-library";
|
|
6
|
-
import { b as me, u as ue, q as pe, y as ge, z as fe } from "./index.vue_vue_type_script_setup_true_lang-
|
|
6
|
+
import { b as me, u as ue, q as pe, y as ge, z as fe } from "./index.vue_vue_type_script_setup_true_lang-BJZykcBx.js";
|
|
7
7
|
import { _ as he } from "./PageLayout.vue_vue_type_script_setup_true_lang-BVmHMvKD.js";
|
|
8
|
-
import { u as be, a as ye } from "./menu-
|
|
9
|
-
import { a as ve } from "./Product.vue_vue_type_script_setup_true_lang-
|
|
10
|
-
import { ai as _e, aj as we, ak as xe, al as Ie, am as ke } from "./item-
|
|
8
|
+
import { u as be, a as ye } from "./menu-DUOE-Q12.js";
|
|
9
|
+
import { a as ve } from "./Product.vue_vue_type_script_setup_true_lang-C-zJ0P53.js";
|
|
10
|
+
import { ai as _e, aj as we, ak as xe, al as Ie, am as ke } from "./item-BQYLe0DU.js";
|
|
11
11
|
const Ce = { class: "h-full flex flex-col" }, Ue = { class: "flex items-center justify-between p-16 border-b border-gray-200" }, je = { class: "flex gap-8" }, $e = { class: "border-b border-gray-200" }, Fe = { class: "flex" }, Se = { class: "flex-1 overflow-hidden" }, ze = {
|
|
12
12
|
key: 0,
|
|
13
13
|
class: "h-full flex flex-col"
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
import { defineComponent as B, computed as d, ref as Z, resolveComponent as F, createBlock as p, openBlock as l, unref as e, withCtx as _, createElementVNode as f, toDisplayString as K, createVNode as u, createCommentVNode as w, createElementBlock as z, Fragment as R } from "vue";
|
|
2
|
-
import { D as T } from "./dayjs.min-
|
|
3
|
-
import { J as ie, F as le } from "./jszip.min-
|
|
4
|
-
import { l as j } from "./discardConfirm-
|
|
5
|
-
import { w as ue } from "./ImportProductDialog.vue_vue_type_script_setup_true_lang-
|
|
6
|
-
import { u as Q, b as X, a as H, e as q, F as ee, d as ce, m as me, f as de, g as pe } from "./index.vue_vue_type_script_setup_true_lang-
|
|
7
|
-
import { h as V, A as O } from "./app-
|
|
2
|
+
import { D as T } from "./dayjs.min-WGRuZAMu.js";
|
|
3
|
+
import { J as ie, F as le } from "./jszip.min-kAXqpQrc.js";
|
|
4
|
+
import { l as j } from "./discardConfirm-CuLDiWC_.js";
|
|
5
|
+
import { w as ue } from "./ImportProductDialog.vue_vue_type_script_setup_true_lang-Cb9tTsPG.js";
|
|
6
|
+
import { u as Q, b as X, a as H, e as q, F as ee, d as ce, m as me, f as de, g as pe } from "./index.vue_vue_type_script_setup_true_lang-BJZykcBx.js";
|
|
7
|
+
import { h as V, A as O } from "./app-BJA5-4eB.js";
|
|
8
8
|
import { useCoreStore as te, useI18n as fe } from "@feedmepos/mf-common";
|
|
9
|
-
import { useDialog as oe, useDialogChild as _e, useSnackbar as ne, useBreakpoints as ge, FmButtonVariant as
|
|
10
|
-
import { _ as
|
|
9
|
+
import { useDialog as oe, useDialogChild as _e, useSnackbar as ne, useBreakpoints as ge, FmButtonVariant as I, FmButtonColorThemeVariant as x } from "@feedmepos/ui-library";
|
|
10
|
+
import { _ as D } from "./ResponsiveFabButton.vue_vue_type_script_setup_true_lang-Cn-3MRBO.js";
|
|
11
11
|
import { _ as ve, a as G } from "./BottomSheetMenuItem.vue_vue_type_script_setup_true_lang-DhrXKy3b.js";
|
|
12
12
|
import { _ as be } from "./PageLayout.vue_vue_type_script_setup_true_lang-BVmHMvKD.js";
|
|
13
|
-
import { u as ye, a as ke } from "./menu-
|
|
14
|
-
import { w as xe } from "./item-
|
|
15
|
-
import { _ as
|
|
16
|
-
import { L as
|
|
17
|
-
import { _ as Se } from "./TreeEditorOpenner.vue_vue_type_script_setup_true_lang-
|
|
18
|
-
import { u as
|
|
19
|
-
import { m as
|
|
13
|
+
import { u as ye, a as ke } from "./menu-DUOE-Q12.js";
|
|
14
|
+
import { w as xe } from "./item-BQYLe0DU.js";
|
|
15
|
+
import { _ as J, a as he } from "./Product.vue_vue_type_script_setup_true_lang-C-zJ0P53.js";
|
|
16
|
+
import { L as W } from "./LinkProductSideSheet-BluWowSV.js";
|
|
17
|
+
import { _ as Se } from "./TreeEditorOpenner.vue_vue_type_script_setup_true_lang-Dy-eMWb4.js";
|
|
18
|
+
import { u as Ce } from "./linkProducts-B3BYn9Cw.js";
|
|
19
|
+
import { m as Me } from "./toExcel-CgXzLIId.js";
|
|
20
20
|
const we = { class: "space-y-24 mb-24" }, Fe = ["innerHTML"], $e = { class: "flex justify-end gap-8" }, Ve = /* @__PURE__ */ B({
|
|
21
21
|
__name: "ConfirmActionDialog",
|
|
22
22
|
props: {
|
|
@@ -27,8 +27,8 @@ const we = { class: "space-y-24 mb-24" }, Fe = ["innerHTML"], $e = { class: "fle
|
|
|
27
27
|
setup(A) {
|
|
28
28
|
const o = A, c = d(() => o.message.replace("[[value]]", o.value)), y = Z(""), a = oe(), { emitAction: h } = _e();
|
|
29
29
|
return (g, i) => {
|
|
30
|
-
const S = F("FmTextField"), v = F("FmButton"),
|
|
31
|
-
return l(), p(
|
|
30
|
+
const S = F("FmTextField"), v = F("FmButton"), C = F("FmForm");
|
|
31
|
+
return l(), p(C, {
|
|
32
32
|
"on-validation-success": () => e(h)("primary"),
|
|
33
33
|
"blame-form-child-on-validation-failed": ""
|
|
34
34
|
}, {
|
|
@@ -94,15 +94,15 @@ const we = { class: "space-y-24 mb-24" }, Fe = ["innerHTML"], $e = { class: "fle
|
|
|
94
94
|
});
|
|
95
95
|
}
|
|
96
96
|
const v = d(() => {
|
|
97
|
-
var
|
|
98
|
-
if (((
|
|
97
|
+
var M;
|
|
98
|
+
if (((M = c.sessionUser.value) == null ? void 0 : M.role.isAdmin) === !0)
|
|
99
99
|
return null;
|
|
100
100
|
const m = c.restaurants.value;
|
|
101
101
|
if (!m.length) return "Required at least one restaurant to migrate";
|
|
102
102
|
const k = m.filter((b) => !b.posVersion || !H.Pos.canUse({ feature: q.F_FEATURE.enum.menuV4, posVersion: b.posVersion }));
|
|
103
103
|
return k.length ? `Upgrade POS to V${H.Pos.minVersionToUse(q.F_FEATURE.enum.menuV4)} to use new menu: ${k.map((b) => b.profile.name).join(", ")}` : null;
|
|
104
104
|
});
|
|
105
|
-
return (
|
|
105
|
+
return (C, m) => {
|
|
106
106
|
const k = F("FmSnackbar");
|
|
107
107
|
return !e(y) && !v.value && e(o).version !== e(ee).enum.v4 ? (l(), p(k, {
|
|
108
108
|
key: 0,
|
|
@@ -116,10 +116,10 @@ const we = { class: "space-y-24 mb-24" }, Fe = ["innerHTML"], $e = { class: "fle
|
|
|
116
116
|
})) : w("", !0);
|
|
117
117
|
};
|
|
118
118
|
}
|
|
119
|
-
}), Ee = "/assets/menu-export-
|
|
119
|
+
}), Ee = "/assets/menu-export-CfrN-LuH.js", Te = { class: "flex-1 flex justify-between gap-8 pl-8" }, Ie = { class: "flex items-center" }, De = { class: "bg-fm-color-neutral-gray-100 rounded-md px-8 py-4" }, Be = { class: "fm-typo-en-body-md-600 font-semibold" }, Ne = { class: "flex gap-8" }, ot = /* @__PURE__ */ B({
|
|
120
120
|
__name: "Products",
|
|
121
121
|
setup(A) {
|
|
122
|
-
const { t: o } = fe(), c = te(), y = X(ne()), a = Q(), h = d(() => a.rules.item), g = xe(), i = d(() => !a.state.currentSchedulerId), S = d(() => c.currentCountry.value ? ce(c.currentCountry.value).map((n) => n.code) : []), { selectedCategories: v } = ye(),
|
|
122
|
+
const { t: o } = fe(), c = te(), y = X(ne()), a = Q(), h = d(() => a.rules.item), g = xe(), i = d(() => !a.state.currentSchedulerId), S = d(() => c.currentCountry.value ? ce(c.currentCountry.value).map((n) => n.code) : []), { selectedCategories: v } = ye(), C = d(() => ({
|
|
123
123
|
...me.menuV4ToV3(de(a.state.menu)),
|
|
124
124
|
_id: a.state.menu._id,
|
|
125
125
|
_rev: a.state.menu._rev
|
|
@@ -154,7 +154,7 @@ const we = { class: "space-y-24 mb-24" }, Fe = ["innerHTML"], $e = { class: "fle
|
|
|
154
154
|
);
|
|
155
155
|
await k(r, s);
|
|
156
156
|
} else {
|
|
157
|
-
const n =
|
|
157
|
+
const n = Me(C.value), t = `menu_${T().format("DD-MM-YYYY_HH-mm")}`;
|
|
158
158
|
await ue(n, `${t}.xlsx`, {
|
|
159
159
|
bookType: "xlsx",
|
|
160
160
|
bookSST: !0,
|
|
@@ -167,13 +167,13 @@ const we = { class: "space-y-24 mb-24" }, Fe = ["innerHTML"], $e = { class: "fle
|
|
|
167
167
|
);
|
|
168
168
|
}
|
|
169
169
|
const {
|
|
170
|
-
menuItems:
|
|
170
|
+
menuItems: M,
|
|
171
171
|
categories: b,
|
|
172
|
-
linkItemRules:
|
|
173
|
-
handleSubmit:
|
|
174
|
-
catalogManager:
|
|
172
|
+
linkItemRules: N,
|
|
173
|
+
handleSubmit: Y,
|
|
174
|
+
catalogManager: L,
|
|
175
175
|
schedulerManager: P
|
|
176
|
-
} =
|
|
176
|
+
} = Ce(!1), ae = ge(), se = d(() => ae.breakpoints.value.xs), re = d(() => {
|
|
177
177
|
var s;
|
|
178
178
|
const n = ((s = c.sessionUser.value) == null ? void 0 : s.permissions) ?? [], t = {
|
|
179
179
|
action: V.Action.manage,
|
|
@@ -199,13 +199,13 @@ const we = { class: "space-y-24 mb-24" }, Fe = ["innerHTML"], $e = { class: "fle
|
|
|
199
199
|
]),
|
|
200
200
|
"append-heading": _(() => [
|
|
201
201
|
f("div", Te, [
|
|
202
|
-
f("div",
|
|
203
|
-
f("div",
|
|
202
|
+
f("div", Ie, [
|
|
203
|
+
f("div", De, [
|
|
204
204
|
f("p", Be, K(m.value), 1)
|
|
205
205
|
])
|
|
206
206
|
]),
|
|
207
|
-
f("div",
|
|
208
|
-
se.value ? (l(), p(
|
|
207
|
+
f("div", Ne, [
|
|
208
|
+
se.value ? (l(), p(J, { key: 1 }, {
|
|
209
209
|
default: _(({ trigger: r }) => [
|
|
210
210
|
u(ve, null, {
|
|
211
211
|
default: _(() => [
|
|
@@ -229,7 +229,7 @@ const we = { class: "space-y-24 mb-24" }, Fe = ["innerHTML"], $e = { class: "fle
|
|
|
229
229
|
label: e(o)("menu.tree_editor.title"),
|
|
230
230
|
"bg-color": e(x).NeutralGray100,
|
|
231
231
|
"text-color": e(x).TypoSecondary,
|
|
232
|
-
variant: e(
|
|
232
|
+
variant: e(I).Primary,
|
|
233
233
|
onClick: r
|
|
234
234
|
}, null, 8, ["label", "bg-color", "text-color", "variant", "onClick"])
|
|
235
235
|
]),
|
|
@@ -239,16 +239,16 @@ const we = { class: "space-y-24 mb-24" }, Fe = ["innerHTML"], $e = { class: "fle
|
|
|
239
239
|
key: 1,
|
|
240
240
|
"bg-color": e(x).NeutralGray100,
|
|
241
241
|
"text-color": e(x).TypoSecondary,
|
|
242
|
-
variant: e(
|
|
242
|
+
variant: e(I).Primary,
|
|
243
243
|
label: e(o)("menu.products.actions.export"),
|
|
244
244
|
onClick: E
|
|
245
245
|
}, null, 8, ["bg-color", "text-color", "variant", "label"])) : w("", !0),
|
|
246
|
-
U.value ? (l(), p(
|
|
246
|
+
U.value ? (l(), p(J, { key: 2 }, {
|
|
247
247
|
default: _(({ trigger: r }) => [
|
|
248
248
|
u(s, {
|
|
249
249
|
"bg-color": e(x).NeutralGray100,
|
|
250
250
|
"text-color": e(x).TypoSecondary,
|
|
251
|
-
variant: e(
|
|
251
|
+
variant: e(I).Primary,
|
|
252
252
|
label: e(o)("menu.products.actions.import"),
|
|
253
253
|
onClick: r
|
|
254
254
|
}, null, 8, ["bg-color", "text-color", "variant", "label", "onClick"])
|
|
@@ -257,43 +257,43 @@ const we = { class: "space-y-24 mb-24" }, Fe = ["innerHTML"], $e = { class: "fle
|
|
|
257
257
|
})) : w("", !0)
|
|
258
258
|
], 64)),
|
|
259
259
|
m.value > 0 ? (l(), z(R, { key: 2 }, [
|
|
260
|
-
h.value.create ? (l(), p(
|
|
260
|
+
h.value.create ? (l(), p(D, {
|
|
261
261
|
key: 0,
|
|
262
262
|
label: e(o)("menu.products.actions.add"),
|
|
263
263
|
"prepend-icon": "add",
|
|
264
264
|
onClick: t[0] || (t[0] = (r) => e(g).create(null))
|
|
265
|
-
}, null, 8, ["label"])) : i.value ? (l(), p(
|
|
265
|
+
}, null, 8, ["label"])) : i.value ? (l(), p(W, {
|
|
266
266
|
key: 1,
|
|
267
|
-
"categorized-items": e(
|
|
268
|
-
"initial-value": e(
|
|
267
|
+
"categorized-items": e(L).linkableItems.value,
|
|
268
|
+
"initial-value": e(L).currentItems.value,
|
|
269
269
|
"show-variant": !1,
|
|
270
|
-
"menu-items": e(
|
|
270
|
+
"menu-items": e(M),
|
|
271
271
|
categories: e(b),
|
|
272
|
-
"link-item-rules": e(
|
|
272
|
+
"link-item-rules": e(N),
|
|
273
273
|
"no-scheduler": i.value,
|
|
274
|
-
onSubmit: e(
|
|
274
|
+
onSubmit: e(Y)
|
|
275
275
|
}, {
|
|
276
276
|
default: _(({ trigger: r }) => [
|
|
277
|
-
u(
|
|
277
|
+
u(D, {
|
|
278
278
|
label: e(o)("menu.products.actions.link"),
|
|
279
279
|
"prepend-icon": "link",
|
|
280
280
|
onClick: r
|
|
281
281
|
}, null, 8, ["label", "onClick"])
|
|
282
282
|
]),
|
|
283
283
|
_: 1
|
|
284
|
-
}, 8, ["categorized-items", "initial-value", "menu-items", "categories", "link-item-rules", "no-scheduler", "onSubmit"])) : (l(), p(
|
|
284
|
+
}, 8, ["categorized-items", "initial-value", "menu-items", "categories", "link-item-rules", "no-scheduler", "onSubmit"])) : (l(), p(W, {
|
|
285
285
|
key: 2,
|
|
286
286
|
"categorized-items": e(P).linkableItems.value,
|
|
287
287
|
"initial-value": e(P).currentItems.value,
|
|
288
288
|
"show-variant": !1,
|
|
289
|
-
"menu-items": e(
|
|
289
|
+
"menu-items": e(M),
|
|
290
290
|
categories: e(b),
|
|
291
|
-
"link-item-rules": e(
|
|
291
|
+
"link-item-rules": e(N),
|
|
292
292
|
"no-scheduler": i.value,
|
|
293
|
-
onSubmit: e(
|
|
293
|
+
onSubmit: e(Y)
|
|
294
294
|
}, {
|
|
295
295
|
default: _(({ trigger: r }) => [
|
|
296
|
-
u(
|
|
296
|
+
u(D, {
|
|
297
297
|
label: e(o)("menu.products.actions.apply_scheduler"),
|
|
298
298
|
onClick: r
|
|
299
299
|
}, null, 8, ["label", "onClick"])
|