@feedmepos/mf-menu 0.31.71-prod → 0.31.72
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-B5R51HHK.js → App-CvauiBxh.js} +1442 -2546
- package/dist/{ApplyProduct.vue_vue_type_script_setup_true_lang-Dflill79.js → ApplyProduct.vue_vue_type_script_setup_true_lang-BK9XcgvQ.js} +3 -3
- package/dist/{Catalog-yv_fwu1h.js → Catalog-CBdU6H-7.js} +26 -26
- package/dist/{Category-lOaUwRrB.js → Category-BFO9_FCp.js} +35 -35
- package/dist/{Category-DEkZ-IWE.js → Category-DkKEXvEF.js} +22 -22
- package/dist/{CookingGuide-Db8VQK5V.js → CookingGuide-E34vwLgw.js} +113 -113
- package/dist/{CustomAttributeChip.vue_vue_type_script_setup_true_lang-DwsVvlUq.js → CustomAttributeChip.vue_vue_type_script_setup_true_lang-DlnAxQwE.js} +1 -1
- package/dist/{Group-B2EXYbcn.js → Group-Bcc1Z7D-.js} +1 -1
- package/dist/{Group-CFS8D5Uf.js → Group-CpSycfFA.js} +3 -3
- package/dist/{Group.vue_vue_type_script_setup_true_lang-BdZ9K2Ht.js → Group.vue_vue_type_script_setup_true_lang-CWIHfDqh.js} +7 -7
- package/dist/{GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-CtlyZlos.js → GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-B8tJzkEO.js} +5 -5
- package/dist/{ImportProductDialog.vue_vue_type_script_setup_true_lang-C-RPhKoA.js → ImportProductDialog.vue_vue_type_script_setup_true_lang-BGWmkL9R.js} +21 -22
- package/dist/{Ingredient-C3B8G0Fd.js → Ingredient-0Cg2IcHV.js} +23 -23
- package/dist/{InventoryBinding.vue_vue_type_script_setup_true_lang-BrhhXwp8.js → InventoryBinding.vue_vue_type_script_setup_true_lang-Dztd7mAs.js} +1052 -1052
- package/dist/{LinkProductSideSheet-DPn7KN3l.js → LinkProductSideSheet-CiRZO3uN.js} +3 -3
- package/dist/{MenuSetting-Mph9Pc9s.js → MenuSetting-Bv4sWdlj.js} +31 -31
- package/dist/{PrintRoute-BwboeALA.js → PrintRoute-DP-fjMrF.js} +26 -26
- package/dist/{Product-CNKnPt-z.js → Product-DgZcdRkv.js} +1 -1
- package/dist/{Product.vue_vue_type_script_setup_true_lang-BksTc5Gm.js → Product.vue_vue_type_script_setup_true_lang-CpthNypU.js} +71 -71
- package/dist/{ProductInternalTools-DGkoIc6T.js → ProductInternalTools-CLmYNGLn.js} +17 -17
- package/dist/{Products-CkLZYybB.js → Products-KrRu9cnx.js} +11 -11
- package/dist/{Publish-Bzq9aREC.js → Publish-C9Wi7dG1.js} +56 -57
- package/dist/{Recipe-K55Bnscl.js → Recipe-BPdgYfvy.js} +13 -13
- package/dist/{Scheduler-ChAmTqSR.js → Scheduler-C9LCR2Oj.js} +16 -16
- package/dist/{ServingSequence-ywa7-8rG.js → ServingSequence-D-OBo-oY.js} +20 -20
- package/dist/{Setting-CHUNtVho.js → Setting-qITT89Lg.js} +20 -20
- package/dist/{Subcategory-0-99_i06.js → Subcategory-kl6ncKqB.js} +19 -19
- package/dist/{Takeaway-CsJf5I8I.js → Takeaway-BOxto2HZ.js} +1 -1
- package/dist/{Takeaway-BzvxZ_dA.js → Takeaway-D9GOXVdh.js} +10 -10
- package/dist/{Takeaway.vue_vue_type_script_setup_true_lang-Bh8mjdk4.js → Takeaway.vue_vue_type_script_setup_true_lang-CbhZLN-r.js} +20 -20
- package/dist/{Thumbnail.vue_vue_type_script_setup_true_lang-CbxgtwVa.js → Thumbnail.vue_vue_type_script_setup_true_lang-CH9jzjP0.js} +20 -20
- package/dist/{TreeEditorOpenner.vue_vue_type_script_setup_true_lang-Dh_CA5gZ.js → TreeEditorOpenner.vue_vue_type_script_setup_true_lang-C0NgcFQK.js} +16 -17
- package/dist/{Unit-CbTkNhj2.js → Unit-Dr0n8Nl-.js} +13 -13
- package/dist/{Variant-NkbzEbF-.js → Variant-BVvjuGqK.js} +15 -15
- package/dist/{_id_-mr4_eirX.js → _id_-DqqSN5Lt.js} +14 -14
- package/dist/{app-BzsHQwP_.js → app-B3_2cau3.js} +1 -1
- package/dist/{app-DVB67WHZ.js → app-DJ-rQRBU.js} +26 -26
- package/dist/app.js +1 -1
- package/dist/apps/mf-menu/src/components/feature/ApplyProduct/ApplyProduct.vue.d.ts +72 -0
- package/dist/apps/mf-menu/src/components/feature/ApplyProduct/ApplyProductDialog.vue.d.ts +36 -0
- package/dist/apps/mf-menu/src/components/feature/ApplyProduct/index.d.ts +218 -0
- package/dist/apps/mf-menu/src/components/feature/Fields/OrderFrom.vue.d.ts +1 -1
- package/dist/apps/mf-menu/src/components/feature/GroupManager/OptionTable.vue.d.ts +52 -0
- package/dist/apps/mf-menu/src/components/feature/GroupManager/UpdateForm.vue.d.ts +36 -0
- package/dist/apps/mf-menu/src/components/feature/PriceTier/PriceTierButton.vue.d.ts +110 -0
- package/dist/apps/mf-menu/src/components/feature/PriceTier/PriceTierForm.vue.d.ts +110 -0
- package/dist/apps/mf-menu/src/components/feature/TreeEditor/composable/item.d.ts +110 -0
- package/dist/apps/mf-menu/src/components/feature/TreeEditor/composable/scheduler.d.ts +81 -0
- package/dist/apps/mf-menu/src/components/feature/TreeEditor/composable/useItemFormManagement.d.ts +55 -0
- package/dist/apps/mf-menu/src/components/feature/TreeEditor/form/GroupManager/OptionTable.vue.d.ts +52 -0
- package/dist/apps/mf-menu/src/components/feature/TreeEditor/form/GroupManager/UpdateForm.vue.d.ts +36 -0
- package/dist/apps/mf-menu/src/components/feature/TreeEditor/form/GroupManager/index.d.ts +144 -0
- package/dist/apps/mf-menu/src/components/feature/TreeEditor/item/ItemForm.vue.d.ts +165 -0
- package/dist/apps/mf-menu/src/components/feature/TreeEditor/menuUtils.d.ts +55 -0
- package/dist/apps/mf-menu/src/components/feature/TreeEditor/store/menuV2.d.ts +375 -0
- package/dist/apps/mf-menu/src/components/feature/TreeEditor/store/tree.d.ts +18 -18
- package/dist/apps/mf-menu/src/components/import/PreviewAddonContent.vue.d.ts +110 -0
- package/dist/apps/mf-menu/src/composable/linkProducts.d.ts +81 -0
- package/dist/apps/mf-menu/src/helper/itemCategories.d.ts +55 -0
- package/dist/apps/mf-menu/src/helper/menu.d.ts +430 -0
- package/dist/apps/mf-menu/src/helper/menuImport.d.ts +375 -0
- package/dist/apps/mf-menu/src/manager/menu/item.d.ts +375 -0
- package/dist/apps/mf-menu/src/stores/manager/item.d.ts +165 -0
- package/dist/apps/mf-menu/src/stores/manager/scheduler.d.ts +81 -0
- package/dist/apps/mf-menu/src/stores/menu.d.ts +375 -0
- package/dist/apps/mf-menu/src/views/Catalog/Edit/AddProductPopup/Form.vue.d.ts +110 -0
- package/dist/apps/mf-menu/src/views/Publish/UpdateCatalogDialog.vue.d.ts +220 -0
- package/dist/apps/mf-menu/src/views/Scheduler/FilterForm.vue.d.ts +52 -0
- package/dist/apps/mf-menu/src/views/Scheduler/SchedulerDialog.vue.d.ts +52 -0
- package/dist/apps/mf-menu/tsconfig.app.tsbuildinfo +1 -1
- package/dist/assets/linked-status-qkReSi42.js +13 -0
- package/dist/assets/override-menu-Dyv1SsFk.js +13 -0
- package/dist/assets/validate-menu-DpF5os-S.js +13 -0
- package/dist/{catalog-C_6TM4e_.js → catalog-DeBJkQdk.js} +1 -1
- package/dist/{catalogSetting-pTMi5i6h.js → catalogSetting-CkZSHD-W.js} +1 -1
- package/dist/{category-CHNICcWp.js → category-CJKIi291.js} +5 -5
- package/dist/{currency-Dx-pn9tw.js → currency-NcUCHGGN.js} +1 -1
- package/dist/{customAttributes-DvHKcDWb.js → customAttributes-Cf1e7I1m.js} +1 -1
- package/dist/{index-CA3_R55p.js → index-B7ZCIQp2.js} +13 -13
- package/dist/{index-DqIorABw.js → index-BaeTP7Ku.js} +1 -1
- package/dist/{index-X3RliLfv.js → index-DQqxmq0e.js} +26 -26
- package/dist/{index-DGtoqrTo.js → index-EBL2mPva.js} +1 -1
- package/dist/{item-JhHKgoMj.js → item-BsvsZcce.js} +378 -378
- package/dist/iteration-CxQwvFbX.js +27 -0
- package/dist/{jszip.min-BQReTtS0.js → jszip.min-DoZyvEEd.js} +545 -545
- package/dist/{menu-2ymqQnFE.js → menu-Dlsf52hs.js} +27902 -27334
- package/dist/{menu-Bhfx50bt.js → menu-zMO5M1Ur.js} +1 -1
- package/dist/{menuV2-ZaA_QLdj.js → menuV2-Ss7NpjF_.js} +46 -46
- package/dist/mf-menu.css +1 -1
- package/dist/packages/shared/src/components/form/SelectFilter.vue.d.ts +1 -1
- package/dist/packages/shared/src/components/info/TextChip.vue.d.ts +1 -1
- package/dist/{priceTier-IZtw6WUa.js → priceTier-Dhh2TKAL.js} +1 -1
- package/dist/{scheduler-CzuGjuw5.js → scheduler-CA9RiMAg.js} +20 -20
- package/dist/{subcategory-Dt6tFvIu.js → subcategory-tJjY3seO.js} +6 -6
- package/dist/{toExcel-CUrEHCjB.js → toExcel-C6zcyUsq.js} +2 -2
- package/dist/{unit-Ibbp0wZT.js → unit-D4M4cm2W.js} +9 -9
- package/package.json +3 -3
- package/dist/apps/mf-menu/src/components/Announcements.vue.d.ts +0 -19
- package/dist/apps/mf-menu/src/stores/announcement/announcement.d.ts +0 -11
- package/dist/assets/linked-status-Dwqdwyog.js +0 -13
- package/dist/assets/override-menu-CGexvHxV.js +0 -13
- package/dist/assets/validate-menu-C2daBpKY.js +0 -13
- package/dist/dayjs.min-BZu87fXJ.js +0 -6
- package/dist/iteration-BoeoXAHD.js +0 -23
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
import { ref as F, computed as h, defineComponent as
|
|
2
|
-
import { u as Fe, Q as Ce,
|
|
1
|
+
import { ref as F, computed as h, defineComponent as B, resolveComponent as O, createBlock as I, openBlock as m, withCtx as T, createElementVNode as g, createVNode as d, unref as a, createElementBlock as k, Fragment as pe, renderList as we, createCommentVNode as U, normalizeClass as ve, toDisplayString as N, withModifiers as fe, mergeModels as Je, useModel as Xe, renderSlot as _e, watch as de, createTextVNode as et, watchEffect as tt, nextTick as Ae, resolveDynamicComponent as lt, onMounted as at, h as q, isRef as je, normalizeStyle as ft } from "vue";
|
|
2
|
+
import { u as Fe, Q as Ce, A as me, H as Re, I as ge, U as gt, a9 as bt, aa as _t, ab as Pe, ac as yt, P as ht, ad as Ee } from "./menu-Dlsf52hs.js";
|
|
3
3
|
import { useI18n as Ie, useCoreStore as ze, useCustomAttributes as xt } from "@feedmepos/mf-common";
|
|
4
|
-
import { u as Se } from "./menu-
|
|
4
|
+
import { u as Se } from "./menu-zMO5M1Ur.js";
|
|
5
5
|
import { _ as be } from "./index.vue_vue_type_script_setup_true_lang-BgqsTzLI.js";
|
|
6
|
-
import { L as Ge } from "./LinkProductSideSheet-
|
|
7
|
-
import { r as Ct, _ as Le } from "./index-
|
|
8
|
-
import { _ as Ue, a as qe } from "./CustomAttributeChip.vue_vue_type_script_setup_true_lang-
|
|
9
|
-
import { _ as Me, u as kt } from "./Thumbnail.vue_vue_type_script_setup_true_lang-
|
|
10
|
-
import { f as wt, o as St, a as Vt, m as Ft } from "./menuV2-
|
|
11
|
-
import { u as ot, C as It } from "./item-
|
|
6
|
+
import { L as Ge } from "./LinkProductSideSheet-CiRZO3uN.js";
|
|
7
|
+
import { r as Ct, _ as Le } from "./index-BaeTP7Ku.js";
|
|
8
|
+
import { _ as Ue, a as qe } from "./CustomAttributeChip.vue_vue_type_script_setup_true_lang-DlnAxQwE.js";
|
|
9
|
+
import { _ as Me, u as kt } from "./Thumbnail.vue_vue_type_script_setup_true_lang-CH9jzjP0.js";
|
|
10
|
+
import { f as wt, o as St, a as Vt, m as Ft } from "./menuV2-Ss7NpjF_.js";
|
|
11
|
+
import { u as ot, C as It } from "./item-BsvsZcce.js";
|
|
12
12
|
import { b as We, H as $t } from "./app-5fxKLAzS.js";
|
|
13
13
|
import { useBreakpoints as rt, components as te, useDialog as Tt, FmButtonColorThemeVariant as W, FmButtonVariant as ee } from "@feedmepos/ui-library";
|
|
14
|
-
import { F as Pt } from "./index-
|
|
15
|
-
import { _ as De, a as At } from "./app-
|
|
14
|
+
import { F as Pt } from "./index-EBL2mPva.js";
|
|
15
|
+
import { _ as De, a as At } from "./app-DJ-rQRBU.js";
|
|
16
16
|
import { _ as ke } from "./TextChip.vue_vue_type_script_setup_true_lang-8frWuZFL.js";
|
|
17
|
-
import { _ as Rt } from "./index-
|
|
18
|
-
import { r as Ut, _ as Mt } from "./ImportProductDialog.vue_vue_type_script_setup_true_lang-
|
|
17
|
+
import { _ as Rt } from "./index-B7ZCIQp2.js";
|
|
18
|
+
import { r as Ut, _ as Mt } from "./ImportProductDialog.vue_vue_type_script_setup_true_lang-BGWmkL9R.js";
|
|
19
19
|
import { c as zt } from "./check-C9mY6LiX.js";
|
|
20
|
-
import { f as Dt } from "./currency-
|
|
20
|
+
import { f as Dt } from "./currency-NcUCHGGN.js";
|
|
21
21
|
import { w as Ot } from "./tooltip-CQW9YRO5.js";
|
|
22
|
-
function
|
|
22
|
+
function Kt(C, e, i = C) {
|
|
23
23
|
const n = F(!0), t = h(() => {
|
|
24
24
|
if (!n.value && !e.value)
|
|
25
25
|
return !0;
|
|
@@ -45,29 +45,29 @@ function Bt(C, e, i = C) {
|
|
|
45
45
|
e.value === void 0 && n.value ? s = [f] : e.value === void 0 && !n.value ? s = (b = C.value.map((z) => z.value)) == null ? void 0 : b.filter((z) => z !== f) : (y = e.value) != null && y.includes(f) ? s = (w = e.value) == null ? void 0 : w.filter((z) => z !== f) : s = [...e.value || [], f], s.length === 0 ? (e.value = void 0, n.value = !0) : s.length === C.value.length ? (e.value = void 0, n.value = !1) : e.value = s;
|
|
46
46
|
} };
|
|
47
47
|
}
|
|
48
|
-
const
|
|
48
|
+
const Nt = { class: "inline-flex items-center" }, Bt = {
|
|
49
49
|
key: 0,
|
|
50
50
|
class: /* @__PURE__ */ ve([
|
|
51
51
|
"fm-typo-en-body-md-600 select-none text-ellipsis overflow-hidden whitespace-nowrap",
|
|
52
52
|
"text-fm-color-neutral-gray-400"
|
|
53
53
|
])
|
|
54
|
-
}, jt = { class: "p-4" }, Et = { class: "flex-1 overflow-y-auto min-h-0" }, He = /* @__PURE__ */
|
|
54
|
+
}, jt = { class: "p-4" }, Et = { class: "flex-1 overflow-y-auto min-h-0" }, He = /* @__PURE__ */ B({
|
|
55
55
|
__name: "CategorySelector",
|
|
56
56
|
emits: ["toggleAttributeFilter"],
|
|
57
57
|
setup(C, { emit: e }) {
|
|
58
58
|
const i = e, n = Fe(), { categories: t, selectedCategories: u } = Se(), l = h(() => n.state.currentCategoryIds), v = h(
|
|
59
|
-
() => t.value.map((
|
|
59
|
+
() => t.value.map((K) => ({ label: K.name, value: K.id }))
|
|
60
60
|
), f = h(() => v.value.filter(
|
|
61
|
-
(
|
|
61
|
+
(K) => K.label.toLowerCase().includes(y.value.toLowerCase())
|
|
62
62
|
)), { t: s } = Ie(), b = h(() => {
|
|
63
|
-
var
|
|
64
|
-
return t.value.length === ((
|
|
63
|
+
var K, D, H;
|
|
64
|
+
return t.value.length === ((K = u.value) == null ? void 0 : K.length) ? s("menu.category.selector.all") : ((D = u.value) == null ? void 0 : D.length) === 1 ? u.value[0].name : `${(H = u.value) == null ? void 0 : H.length}`;
|
|
65
65
|
}), y = F(""), w = h({
|
|
66
66
|
get: () => l.value,
|
|
67
|
-
set: (
|
|
68
|
-
n.selectCategory(
|
|
67
|
+
set: (K) => {
|
|
68
|
+
n.selectCategory(K);
|
|
69
69
|
}
|
|
70
|
-
}), { allSelected: z, toggleAll: Y, toggleOption: S, indeterminate: oe } =
|
|
70
|
+
}), { allSelected: z, toggleAll: Y, toggleOption: S, indeterminate: oe } = Kt(
|
|
71
71
|
v,
|
|
72
72
|
w,
|
|
73
73
|
f
|
|
@@ -75,17 +75,17 @@ const Kt = { class: "inline-flex items-center" }, Nt = {
|
|
|
75
75
|
function G() {
|
|
76
76
|
i("toggleAttributeFilter");
|
|
77
77
|
}
|
|
78
|
-
return (
|
|
78
|
+
return (K, D) => {
|
|
79
79
|
const H = O("FmIcon"), J = O("FmChip"), ne = O("FmSearch"), Q = O("FmMenuItem"), se = O("FmMenu");
|
|
80
80
|
return m(), I(se, {
|
|
81
81
|
"close-on-click": !1,
|
|
82
82
|
width: 220
|
|
83
83
|
}, {
|
|
84
84
|
"menu-button": T(() => [
|
|
85
|
-
g("div",
|
|
85
|
+
g("div", Nt, [
|
|
86
86
|
d(J, null, {
|
|
87
87
|
default: T(() => [
|
|
88
|
-
b.value ? (m(), k("div",
|
|
88
|
+
b.value ? (m(), k("div", Bt, N(a(s)("menu.category.selector.title", { label: b.value })), 1)) : U("", !0),
|
|
89
89
|
d(H, {
|
|
90
90
|
color: "neutral-gray-400",
|
|
91
91
|
name: "expand_more",
|
|
@@ -149,7 +149,7 @@ const Kt = { class: "inline-flex items-center" }, Nt = {
|
|
|
149
149
|
}, Qt = { key: 0 }, Yt = {
|
|
150
150
|
key: 1,
|
|
151
151
|
class: "inline-block w-8"
|
|
152
|
-
}, Zt = { key: 0 }, Jt = { key: 1 }, Qe = /* @__PURE__ */
|
|
152
|
+
}, Zt = { key: 0 }, Jt = { key: 1 }, Qe = /* @__PURE__ */ B({
|
|
153
153
|
__name: "CategoriesChip",
|
|
154
154
|
props: {
|
|
155
155
|
categories: { default: () => [] },
|
|
@@ -167,15 +167,15 @@ const Kt = { class: "inline-flex items-center" }, Nt = {
|
|
|
167
167
|
const y = O("FmTooltip");
|
|
168
168
|
return t.value ? (m(), k(pe, { key: 1 }, [
|
|
169
169
|
s.categories.length > 0 ? (m(), k("p", Ht, [
|
|
170
|
-
g("span", null,
|
|
171
|
-
g("span", null,
|
|
170
|
+
g("span", null, N(a(i)("menu.product.table.columns.category")) + ": ", 1),
|
|
171
|
+
g("span", null, N(f.value), 1),
|
|
172
172
|
v.value ? (m(), k("span", Yt)) : (m(), k("br", Qt)),
|
|
173
173
|
s.categories.length > u.value ? (m(), k("span", {
|
|
174
174
|
key: 2,
|
|
175
175
|
class: "fm-typo-en-body-md-400 text-fm-color-primary cursor-pointer",
|
|
176
176
|
onClick: b[0] || (b[0] = fe((w) => v.value = !v.value, ["stop", "prevent"]))
|
|
177
177
|
}, [
|
|
178
|
-
v.value ? (m(), k("span", Zt,
|
|
178
|
+
v.value ? (m(), k("span", Zt, N(a(i)("menu.product.table.category.expand", { count: s.categories.length - u.value })), 1)) : (m(), k("span", Jt, N(a(i)("menu.product.table.category.collapse")), 1))
|
|
179
179
|
])) : U("", !0)
|
|
180
180
|
])) : U("", !0)
|
|
181
181
|
], 64)) : (m(), I(y, {
|
|
@@ -187,7 +187,7 @@ const Kt = { class: "inline-flex items-center" }, Nt = {
|
|
|
187
187
|
}, {
|
|
188
188
|
content: T(() => [
|
|
189
189
|
g("div", Lt, [
|
|
190
|
-
g("p", qt,
|
|
190
|
+
g("p", qt, N(a(i)("menu.product.table.category.all")), 1),
|
|
191
191
|
g("div", Wt, [
|
|
192
192
|
(m(!0), k(pe, null, we(e.categories, (w) => (m(), I(ke, {
|
|
193
193
|
key: w,
|
|
@@ -215,7 +215,7 @@ const Kt = { class: "inline-flex items-center" }, Nt = {
|
|
|
215
215
|
}));
|
|
216
216
|
};
|
|
217
217
|
}
|
|
218
|
-
}), Xt = /* @__PURE__ */
|
|
218
|
+
}), Xt = /* @__PURE__ */ B({
|
|
219
219
|
__name: "ProductSearcher",
|
|
220
220
|
props: /* @__PURE__ */ Je({
|
|
221
221
|
label: {},
|
|
@@ -248,7 +248,7 @@ const Kt = { class: "inline-flex items-center" }, Nt = {
|
|
|
248
248
|
}), el = { class: "flex" }, tl = { class: "w-[260px] space-y-16 h-full" }, ll = { class: "flex items-center gap-4 px-8" }, al = { class: "fm-typo-en-title-sm-600" }, ol = {
|
|
249
249
|
key: 0,
|
|
250
250
|
class: "bg-fm-color-neutral-gray-100 rounded-md px-8 py-4"
|
|
251
|
-
}, rl = { class: "fm-typo-en-body-md-600" }, nl = { class: "flex-1" }, nt = /* @__PURE__ */
|
|
251
|
+
}, rl = { class: "fm-typo-en-body-md-600" }, nl = { class: "flex-1" }, nt = /* @__PURE__ */ B({
|
|
252
252
|
__name: "ViewLayout",
|
|
253
253
|
props: /* @__PURE__ */ Je({
|
|
254
254
|
title: {},
|
|
@@ -266,9 +266,9 @@ const Kt = { class: "inline-flex items-center" }, Nt = {
|
|
|
266
266
|
return m(), k("div", el, [
|
|
267
267
|
g("div", tl, [
|
|
268
268
|
g("div", ll, [
|
|
269
|
-
g("p", al,
|
|
269
|
+
g("p", al, N(i.title), 1),
|
|
270
270
|
i.titleBadge !== void 0 ? (m(), k("div", ol, [
|
|
271
|
-
g("p", rl,
|
|
271
|
+
g("p", rl, N(i.titleBadge), 1)
|
|
272
272
|
])) : U("", !0)
|
|
273
273
|
]),
|
|
274
274
|
d(De, null, {
|
|
@@ -289,7 +289,7 @@ const Kt = { class: "inline-flex items-center" }, Nt = {
|
|
|
289
289
|
]);
|
|
290
290
|
};
|
|
291
291
|
}
|
|
292
|
-
}), Ve = /* @__PURE__ */
|
|
292
|
+
}), Ve = /* @__PURE__ */ B({
|
|
293
293
|
__name: "OrderFromChip",
|
|
294
294
|
props: {
|
|
295
295
|
orderFrom: {}
|
|
@@ -304,7 +304,7 @@ const Kt = { class: "inline-flex items-center" }, Nt = {
|
|
|
304
304
|
}, null, 8, ["label", "variant"]);
|
|
305
305
|
};
|
|
306
306
|
}
|
|
307
|
-
}), sl = /* @__PURE__ */
|
|
307
|
+
}), sl = /* @__PURE__ */ B({
|
|
308
308
|
__name: "GroupViewTable",
|
|
309
309
|
props: {
|
|
310
310
|
data: {}
|
|
@@ -387,7 +387,7 @@ const Kt = { class: "inline-flex items-center" }, Nt = {
|
|
|
387
387
|
});
|
|
388
388
|
};
|
|
389
389
|
}
|
|
390
|
-
}), ul = /* @__PURE__ */
|
|
390
|
+
}), ul = /* @__PURE__ */ B({
|
|
391
391
|
__name: "GroupView",
|
|
392
392
|
props: {
|
|
393
393
|
itemId: {},
|
|
@@ -462,7 +462,7 @@ const Kt = { class: "inline-flex items-center" }, Nt = {
|
|
|
462
462
|
}
|
|
463
463
|
}), il = {
|
|
464
464
|
class: "scroll-x-auto"
|
|
465
|
-
}, cl = /* @__PURE__ */
|
|
465
|
+
}, cl = /* @__PURE__ */ B({
|
|
466
466
|
__name: "ProductViewTable",
|
|
467
467
|
props: {
|
|
468
468
|
itemId: {},
|
|
@@ -543,7 +543,7 @@ const Kt = { class: "inline-flex items-center" }, Nt = {
|
|
|
543
543
|
});
|
|
544
544
|
};
|
|
545
545
|
}
|
|
546
|
-
}), dl = /* @__PURE__ */
|
|
546
|
+
}), dl = /* @__PURE__ */ B({
|
|
547
547
|
__name: "ProductView",
|
|
548
548
|
props: {
|
|
549
549
|
itemId: {},
|
|
@@ -602,7 +602,7 @@ const Kt = { class: "inline-flex items-center" }, Nt = {
|
|
|
602
602
|
}), ml = { class: "flex items-center gap-8" }, pl = { class: "space-y-4" }, vl = { class: "fm-typo-en-title-md-600" }, fl = { key: 0 }, gl = { class: "text-fm-color-typo-secondary" }, bl = {
|
|
603
603
|
key: 0,
|
|
604
604
|
class: "text-fm-color-typo-secondary"
|
|
605
|
-
}, _l = { class: "flex items-center gap-4" }, yl = /* @__PURE__ */
|
|
605
|
+
}, _l = { class: "flex items-center gap-4" }, yl = /* @__PURE__ */ B({
|
|
606
606
|
__name: "ProductBaseInfo",
|
|
607
607
|
props: {
|
|
608
608
|
itemId: {},
|
|
@@ -624,10 +624,10 @@ const Kt = { class: "inline-flex items-center" }, Nt = {
|
|
|
624
624
|
}, null, 8, ["alt", "src"]),
|
|
625
625
|
g("div", pl, [
|
|
626
626
|
g("p", vl, [
|
|
627
|
-
(f = i.value) != null && f.code ? (m(), k("span", fl,
|
|
628
|
-
g("span", null,
|
|
627
|
+
(f = i.value) != null && f.code ? (m(), k("span", fl, N((s = i.value) == null ? void 0 : s.code) + ", ", 1)) : U("", !0),
|
|
628
|
+
g("span", null, N((b = i.value) == null ? void 0 : b.name), 1)
|
|
629
629
|
]),
|
|
630
|
-
g("p", gl, "Base price: " +
|
|
630
|
+
g("p", gl, "Base price: " + N(n.value), 1),
|
|
631
631
|
(y = i.value) != null && y.customAttributes ? (m(), k("div", bl, [
|
|
632
632
|
g("div", _l, [
|
|
633
633
|
u[0] || (u[0] = g("span", null, "Tagging:", -1)),
|
|
@@ -641,7 +641,7 @@ const Kt = { class: "inline-flex items-center" }, Nt = {
|
|
|
641
641
|
]);
|
|
642
642
|
};
|
|
643
643
|
}
|
|
644
|
-
}), hl = { class: "space-y-16" }, xl = /* @__PURE__ */
|
|
644
|
+
}), hl = { class: "space-y-16" }, xl = /* @__PURE__ */ B({
|
|
645
645
|
__name: "ProductViewer",
|
|
646
646
|
props: {
|
|
647
647
|
itemId: {},
|
|
@@ -684,7 +684,7 @@ const Kt = { class: "inline-flex items-center" }, Nt = {
|
|
|
684
684
|
]);
|
|
685
685
|
};
|
|
686
686
|
}
|
|
687
|
-
}), Cl = { class: "space-y-24" }, kl = { key: 0 }, wl = /* @__PURE__ */
|
|
687
|
+
}), Cl = { class: "space-y-24" }, kl = { key: 0 }, wl = /* @__PURE__ */ B({
|
|
688
688
|
__name: "ProductOverview",
|
|
689
689
|
props: {
|
|
690
690
|
itemId: {},
|
|
@@ -714,7 +714,7 @@ const Kt = { class: "inline-flex items-center" }, Nt = {
|
|
|
714
714
|
])
|
|
715
715
|
]));
|
|
716
716
|
}
|
|
717
|
-
}), Sl = /* @__PURE__ */
|
|
717
|
+
}), Sl = /* @__PURE__ */ B({
|
|
718
718
|
__name: "OverviewSheet",
|
|
719
719
|
setup(C) {
|
|
720
720
|
const e = F(null), i = F(!1);
|
|
@@ -750,7 +750,7 @@ const Kt = { class: "inline-flex items-center" }, Nt = {
|
|
|
750
750
|
}
|
|
751
751
|
});
|
|
752
752
|
var Vl = Ut();
|
|
753
|
-
const Ye = /* @__PURE__ */
|
|
753
|
+
const Ye = /* @__PURE__ */ B({
|
|
754
754
|
__name: "ImportButton",
|
|
755
755
|
setup(C) {
|
|
756
756
|
const e = F(!1);
|
|
@@ -804,11 +804,11 @@ const Ye = /* @__PURE__ */ N({
|
|
|
804
804
|
class: "pt-8 flex flex-col flex-1 overflow-hidden"
|
|
805
805
|
}, Ol = {
|
|
806
806
|
class: "space-y-8 pb-8"
|
|
807
|
-
}, Bl = {
|
|
808
|
-
class: "w-full px-8"
|
|
809
807
|
}, Kl = {
|
|
810
|
-
class: "
|
|
808
|
+
class: "w-full px-8"
|
|
811
809
|
}, Nl = {
|
|
810
|
+
class: "flex space-x-8 px-8"
|
|
811
|
+
}, Bl = {
|
|
812
812
|
key: 0,
|
|
813
813
|
class: "px-8"
|
|
814
814
|
}, jl = {
|
|
@@ -832,7 +832,7 @@ const Ye = /* @__PURE__ */ N({
|
|
|
832
832
|
key: 1
|
|
833
833
|
}, Jl = {
|
|
834
834
|
class: "flex space-x-8"
|
|
835
|
-
}, Xl = /* @__PURE__ */
|
|
835
|
+
}, Xl = /* @__PURE__ */ B({
|
|
836
836
|
__name: "ProductTable",
|
|
837
837
|
props: {
|
|
838
838
|
modelValue: {},
|
|
@@ -867,7 +867,7 @@ const Ye = /* @__PURE__ */ N({
|
|
|
867
867
|
toggleAttributeFilter: G
|
|
868
868
|
});
|
|
869
869
|
const {
|
|
870
|
-
attributes:
|
|
870
|
+
attributes: K,
|
|
871
871
|
filterRule: D,
|
|
872
872
|
mongoQuery: H
|
|
873
873
|
} = xt({
|
|
@@ -876,7 +876,7 @@ const Ye = /* @__PURE__ */ N({
|
|
|
876
876
|
}), J = F(""), ne = Ct(J, 300), Q = h(() => {
|
|
877
877
|
const o = (c) => {
|
|
878
878
|
var x;
|
|
879
|
-
return !ne.value || !ne.value.trim() ? !0 : [c.code, c.name,
|
|
879
|
+
return !ne.value || !ne.value.trim() ? !0 : [c.code, c.name, Ke(c), ...Pe(se.value, c), (x = Ce()[c.orderFrom]) == null ? void 0 : x.label, Object.values(c.customAttributes ?? {}).join(" ")].join(" ").toLowerCase().includes(ne.value.toLowerCase());
|
|
880
880
|
}, r = (c) => H.value ? $t(c.customAttributes, H.value) : !0;
|
|
881
881
|
return z.value.filter((c) => o(c) && r(c));
|
|
882
882
|
}), {
|
|
@@ -1032,8 +1032,8 @@ const Ye = /* @__PURE__ */ N({
|
|
|
1032
1032
|
A(r._id, {
|
|
1033
1033
|
category: _,
|
|
1034
1034
|
additionalCategories: ae.map((xe) => {
|
|
1035
|
-
const
|
|
1036
|
-
return
|
|
1035
|
+
const Be = x == null ? void 0 : x[xe];
|
|
1036
|
+
return Be || {
|
|
1037
1037
|
_id: xe,
|
|
1038
1038
|
position: null
|
|
1039
1039
|
};
|
|
@@ -1193,7 +1193,7 @@ const Ye = /* @__PURE__ */ N({
|
|
|
1193
1193
|
async function ct(o) {
|
|
1194
1194
|
await f.update(o.original._id);
|
|
1195
1195
|
}
|
|
1196
|
-
function
|
|
1196
|
+
function Ke(o) {
|
|
1197
1197
|
var _;
|
|
1198
1198
|
const r = o.price ?? // TODO: fix type error
|
|
1199
1199
|
// @ts-ignore
|
|
@@ -1216,7 +1216,7 @@ const Ye = /* @__PURE__ */ N({
|
|
|
1216
1216
|
return V == null ? void 0 : V[0];
|
|
1217
1217
|
} else return r ? r.override.items[o][0] : c ? l.schedulers.find((_) => _._id === c).items.filter((_) => _._id === o)[0] : z.value.find((x) => x._id === o);
|
|
1218
1218
|
}
|
|
1219
|
-
const dt = rt(), mt = h(() => dt.breakpoints.value.xs),
|
|
1219
|
+
const dt = rt(), mt = h(() => dt.breakpoints.value.xs), Ne = F(null), pt = At(Ne, Z), vt = h(() => {
|
|
1220
1220
|
var r;
|
|
1221
1221
|
return {
|
|
1222
1222
|
height: `calc(100vh - ${((r = pt.value) == null ? void 0 : r.top) + 24}px)`
|
|
@@ -1224,17 +1224,17 @@ const Ye = /* @__PURE__ */ N({
|
|
|
1224
1224
|
});
|
|
1225
1225
|
return (o, r) => {
|
|
1226
1226
|
const c = O("fm-search"), p = O("fm-button"), x = O("fm-table"), V = O("fm-form");
|
|
1227
|
-
return mt.value ? (m(), k("div", Dl, [g("div", Ol, [g("div",
|
|
1227
|
+
return mt.value ? (m(), k("div", Dl, [g("div", Ol, [g("div", Kl, [d(c, {
|
|
1228
1228
|
"model-value": J.value,
|
|
1229
1229
|
"onUpdate:modelValue": r[5] || (r[5] = (_) => J.value = _),
|
|
1230
1230
|
autofocus: "",
|
|
1231
1231
|
placeholder: a(t)("menu.product.table.search.placeholder")
|
|
1232
1232
|
}, null, 8, ["model-value", "placeholder"])]), r[8] || (r[8] = g("div", {
|
|
1233
1233
|
class: "w-full h-[1px] bg-fm-color-neutral-gray-100"
|
|
1234
|
-
}, null, -1)), g("div",
|
|
1234
|
+
}, null, -1)), g("div", Nl, [_e(o.$slots, "filter")]), Z.value ? (m(), k("div", Bl, [d(a(We), {
|
|
1235
1235
|
ref_key: "attributeFilterRef",
|
|
1236
1236
|
ref: re,
|
|
1237
|
-
attributes: a(
|
|
1237
|
+
attributes: a(K),
|
|
1238
1238
|
modelValue: a(D),
|
|
1239
1239
|
"onUpdate:modelValue": r[6] || (r[6] = (_) => je(D) ? D.value = _ : null)
|
|
1240
1240
|
}, null, 8, ["attributes", "modelValue"])])) : U("", !0)]), z.value.length ? (m(), k("div", jl, [(m(!0), k(pe, null, we(Q.value, (_) => {
|
|
@@ -1247,9 +1247,9 @@ const Ye = /* @__PURE__ */ N({
|
|
|
1247
1247
|
alt: _.name,
|
|
1248
1248
|
size: 72,
|
|
1249
1249
|
src: _.thumbnail
|
|
1250
|
-
}, null, 8, ["alt", "src"]), g("div", Ll, [g("div", ql, [g("p", Wl,
|
|
1250
|
+
}, null, 8, ["alt", "src"]), g("div", Ll, [g("div", ql, [g("p", Wl, N(_.name), 1), d(Ve, {
|
|
1251
1251
|
"order-from": _.orderFrom
|
|
1252
|
-
}, null, 8, ["order-from"])]), g("p", Hl,
|
|
1252
|
+
}, null, 8, ["order-from"])]), g("p", Hl, N(Ke(_)), 1), g("p", Ql, N(a(t)("menu.product.table.columns.code")) + ": " + N(((ae = Te(_._id)) == null ? void 0 : ae.code) || "--"), 1), g("p", Yl, [d(Qe, {
|
|
1253
1253
|
categories: a(Pe)(a(se), _)
|
|
1254
1254
|
}, null, 8, ["categories"])]), d(Ue, {
|
|
1255
1255
|
"custom-attributes": _.customAttributes
|
|
@@ -1300,10 +1300,10 @@ const Ye = /* @__PURE__ */ N({
|
|
|
1300
1300
|
}, null, 8, ["model-value", "placeholder"])])]), Z.value ? (m(), k("div", Tl, [d(a(We), {
|
|
1301
1301
|
ref_key: "attributeFilterRef",
|
|
1302
1302
|
ref: re,
|
|
1303
|
-
attributes: a(
|
|
1303
|
+
attributes: a(K),
|
|
1304
1304
|
modelValue: a(D),
|
|
1305
1305
|
"onUpdate:modelValue": r[1] || (r[1] = (_) => je(D) ? D.value = _ : null)
|
|
1306
|
-
}, null, 8, ["attributes", "modelValue"])])) : U("", !0), z.value.length ? (m(), k("div", Pl, [X.value.length && !S.value ? (m(), k("div", Al, [g("p", Rl,
|
|
1306
|
+
}, null, 8, ["attributes", "modelValue"])])) : U("", !0), z.value.length ? (m(), k("div", Pl, [X.value.length && !S.value ? (m(), k("div", Al, [g("p", Rl, N(a(t)("menu.product.table.selection.count", {
|
|
1307
1307
|
count: X.value.length
|
|
1308
1308
|
})), 1), d(p, {
|
|
1309
1309
|
label: a(t)("menu.product.table.selection.actions.deselect_all"),
|
|
@@ -1334,7 +1334,7 @@ const Ye = /* @__PURE__ */ N({
|
|
|
1334
1334
|
type: "submit"
|
|
1335
1335
|
}, null, 8, ["borderColor", "textColor", "variant", "label"])])) : U("", !0), g("div", {
|
|
1336
1336
|
ref_key: "tableWrapper",
|
|
1337
|
-
ref:
|
|
1337
|
+
ref: Ne
|
|
1338
1338
|
}, [(m(), I(lt(S.value ? Pt : "div"), {
|
|
1339
1339
|
ref: "fullWrapper",
|
|
1340
1340
|
title: S.value ? a(t)("menu.product.table.bulk_edit.title") : "",
|
|
@@ -1411,7 +1411,7 @@ const Ye = /* @__PURE__ */ N({
|
|
|
1411
1411
|
}, la = { class: "flex flex-col flex-1 overflow-hidden" }, aa = {
|
|
1412
1412
|
key: 1,
|
|
1413
1413
|
class: "pt-16 xs:pt-8 space-y-24"
|
|
1414
|
-
}, oa = { class: "flex items-center gap-8 px-16" }, Va = /* @__PURE__ */
|
|
1414
|
+
}, oa = { class: "flex items-center gap-8 px-16" }, Va = /* @__PURE__ */ B({
|
|
1415
1415
|
__name: "Product",
|
|
1416
1416
|
setup(C) {
|
|
1417
1417
|
const e = Fe(), i = h(() => e.rules.item), n = ot(), t = h(() => !e.state.currentCatalogId), u = h(() => e.rules.item), l = h(() => !e.state.currentSchedulerId), v = F(!1), f = F(!1), s = h(() => {
|
|
@@ -1468,7 +1468,7 @@ const Ye = /* @__PURE__ */ N({
|
|
|
1468
1468
|
}
|
|
1469
1469
|
const re = () => {
|
|
1470
1470
|
Y.value && w();
|
|
1471
|
-
}, { t: G } = Ie(),
|
|
1471
|
+
}, { t: G } = Ie(), K = h(() => {
|
|
1472
1472
|
var R, $;
|
|
1473
1473
|
return ($ = (R = e.currentCatalog) == null ? void 0 : R.linkItemRules) == null ? void 0 : $.length;
|
|
1474
1474
|
}), {
|
|
@@ -1498,7 +1498,7 @@ const Ye = /* @__PURE__ */ N({
|
|
|
1498
1498
|
filter: T(() => [
|
|
1499
1499
|
d(He, { onToggleAttributeFilter: oe }),
|
|
1500
1500
|
u.value.multiScheduler ? (m(), I(qe, { key: 0 })) : U("", !0),
|
|
1501
|
-
|
|
1501
|
+
K.value ? (m(), I(Le, {
|
|
1502
1502
|
key: 1,
|
|
1503
1503
|
"current-restaurant-attr-params": a(e).state.currentRestaurantAttrParams,
|
|
1504
1504
|
onConfirm: $[0] || ($[0] = (A) => a(e).setRestaurantAttrParams(A))
|
|
@@ -1512,7 +1512,7 @@ const Ye = /* @__PURE__ */ N({
|
|
|
1512
1512
|
g("div", oa, [
|
|
1513
1513
|
d(He),
|
|
1514
1514
|
u.value.multiScheduler ? (m(), I(qe, { key: 0 })) : U("", !0),
|
|
1515
|
-
|
|
1515
|
+
K.value ? (m(), I(Le, {
|
|
1516
1516
|
key: 1,
|
|
1517
1517
|
"current-restaurant-attr-params": a(e).state.currentRestaurantAttrParams,
|
|
1518
1518
|
onConfirm: $[3] || ($[3] = (A) => a(e).setRestaurantAttrParams(A))
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { defineComponent as Z, ref as v, computed as $, resolveComponent as
|
|
2
|
-
import { J as O, F as ne } from "./jszip.min-
|
|
3
|
-
import {
|
|
1
|
+
import { defineComponent as Z, ref as v, computed as $, resolveComponent as W, createElementBlock as c, openBlock as r, createElementVNode as s, createVNode as I, unref as h, createCommentVNode as T, normalizeClass as E, toDisplayString as U, createStaticVNode as B, Fragment as P, renderList as R, createBlock as oe, withCtx as A } from "vue";
|
|
2
|
+
import { J as O, F as ne } from "./jszip.min-DoZyvEEd.js";
|
|
3
|
+
import { D as le, u as ie, I as D, $ as re, K as ce, M as de, N as me } from "./menu-Dlsf52hs.js";
|
|
4
4
|
import { useI18n as ue } from "@feedmepos/mf-common";
|
|
5
5
|
import { FmButtonVariant as z, useSnackbar as V, useDialog as pe, FmButtonColorThemeVariant as S } from "@feedmepos/ui-library";
|
|
6
6
|
import { _ as ge } from "./PageLayout.vue_vue_type_script_setup_true_lang-2f0QfweQ.js";
|
|
7
|
-
import { u as fe, a as he } from "./menu-
|
|
8
|
-
import { a as ye } from "./Product.vue_vue_type_script_setup_true_lang-
|
|
7
|
+
import { u as fe, a as he } from "./menu-zMO5M1Ur.js";
|
|
8
|
+
import { a as ye } from "./Product.vue_vue_type_script_setup_true_lang-CpthNypU.js";
|
|
9
9
|
import { p as be } from "./tooltip-CQW9YRO5.js";
|
|
10
|
-
import { v as ve, w as _e } from "./item-
|
|
10
|
+
import { v as ve, w as _e } from "./item-BsvsZcce.js";
|
|
11
11
|
const we = { class: "h-full flex flex-col" }, xe = { class: "flex items-center justify-between p-16 border-b border-gray-200" }, Ie = { class: "flex gap-8" }, ke = { class: "border-b border-gray-200" }, Ce = { class: "flex" }, Ue = { class: "flex-1 overflow-hidden" }, je = {
|
|
12
12
|
key: 0,
|
|
13
13
|
class: "h-full flex flex-col"
|
|
@@ -29,7 +29,7 @@ const we = { class: "h-full flex flex-col" }, xe = { class: "flex items-center j
|
|
|
29
29
|
}, Oe = {
|
|
30
30
|
key: 1,
|
|
31
31
|
class: "flex-1 overflow-y-auto p-16"
|
|
32
|
-
}, De = { class: "space-y-12" }, Ve = { class: "fm-typo-en-body-sm font-medium break-all" }, Ze = { class: "flex" },
|
|
32
|
+
}, De = { class: "space-y-12" }, Ve = { class: "fm-typo-en-body-sm font-medium break-all" }, Ze = { class: "flex" }, We = { class: "w-64 h-64 bg-gray-100 rounded-8 overflow-hidden" }, qe = ["src", "alt"], Ge = /* @__PURE__ */ Z({
|
|
33
33
|
__name: "ImageUpdatePreview",
|
|
34
34
|
props: {
|
|
35
35
|
matchedImages: {},
|
|
@@ -45,7 +45,7 @@ const we = { class: "h-full flex flex-col" }, xe = { class: "flex items-center j
|
|
|
45
45
|
F("update", u.matchedImages);
|
|
46
46
|
}
|
|
47
47
|
return (w, l) => {
|
|
48
|
-
const x =
|
|
48
|
+
const x = W("fm-button");
|
|
49
49
|
return r(), c("div", we, [
|
|
50
50
|
s("div", xe, [
|
|
51
51
|
l[2] || (l[2] = s("h2", { class: "fm-typo-en-headline-sm font-semibold" }, "Update Product Images", -1)),
|
|
@@ -135,12 +135,12 @@ const we = { class: "h-full flex flex-col" }, xe = { class: "flex items-center j
|
|
|
135
135
|
}, [
|
|
136
136
|
s("div", Ve, U(m.filename), 1),
|
|
137
137
|
s("div", Ze, [
|
|
138
|
-
s("div",
|
|
138
|
+
s("div", We, [
|
|
139
139
|
s("img", {
|
|
140
140
|
src: m.imageUrl,
|
|
141
141
|
alt: m.filename,
|
|
142
142
|
class: "w-full h-full object-cover"
|
|
143
|
-
}, null, 8,
|
|
143
|
+
}, null, 8, qe)
|
|
144
144
|
])
|
|
145
145
|
])
|
|
146
146
|
]))), 128))
|
|
@@ -152,7 +152,7 @@ const we = { class: "h-full flex flex-col" }, xe = { class: "flex items-center j
|
|
|
152
152
|
};
|
|
153
153
|
}
|
|
154
154
|
});
|
|
155
|
-
var Je = { firebase: { storageBucket: "image.
|
|
155
|
+
var Je = { firebase: { storageBucket: "image.feedmedev.cc" } };
|
|
156
156
|
const He = {
|
|
157
157
|
key: 0,
|
|
158
158
|
class: "h-screen"
|
|
@@ -169,7 +169,7 @@ const He = {
|
|
|
169
169
|
filename: a
|
|
170
170
|
});
|
|
171
171
|
}
|
|
172
|
-
async function
|
|
172
|
+
async function q(e, a = "images.zip") {
|
|
173
173
|
const o = new O();
|
|
174
174
|
e.forEach(({ blob: d, filename: n }) => {
|
|
175
175
|
d && o.file(n, d);
|
|
@@ -177,7 +177,7 @@ const He = {
|
|
|
177
177
|
const p = await o.generateAsync({ type: "blob" });
|
|
178
178
|
ne.saveAs(p, a);
|
|
179
179
|
}
|
|
180
|
-
async function
|
|
180
|
+
async function G() {
|
|
181
181
|
const e = x.value.filter((a) => a.thumbnail);
|
|
182
182
|
if (e.length === 0) {
|
|
183
183
|
F.open({ type: "error", title: "No downloadable images found" });
|
|
@@ -216,7 +216,7 @@ const He = {
|
|
|
216
216
|
})).filter((n) => n !== null);
|
|
217
217
|
if (a.value = "Creating ZIP file...", d.length > 0) {
|
|
218
218
|
const n = `images_${(/* @__PURE__ */ new Date()).toISOString().slice(0, 10)}.zip`;
|
|
219
|
-
await
|
|
219
|
+
await q(d, n);
|
|
220
220
|
} else
|
|
221
221
|
throw new Error("Failed to fetch any images");
|
|
222
222
|
},
|
|
@@ -355,10 +355,10 @@ const He = {
|
|
|
355
355
|
a.value = "";
|
|
356
356
|
}
|
|
357
357
|
return he().resetOnMount(), (e, a) => {
|
|
358
|
-
const o =
|
|
358
|
+
const o = W("fm-button");
|
|
359
359
|
return r(), c(P, null, [
|
|
360
360
|
_.value ? (r(), c("div", He, [
|
|
361
|
-
I(
|
|
361
|
+
I(Ge, {
|
|
362
362
|
"matched-images": w.value,
|
|
363
363
|
"unmatched-images": l.value,
|
|
364
364
|
onCancel: te,
|
|
@@ -384,7 +384,7 @@ const He = {
|
|
|
384
384
|
"text-color": h(S).TypoSecondary,
|
|
385
385
|
variant: h(z).Primary,
|
|
386
386
|
label: "Download Images",
|
|
387
|
-
onClick:
|
|
387
|
+
onClick: G
|
|
388
388
|
}, null, 8, ["bg-color", "text-color", "variant"]),
|
|
389
389
|
I(o, {
|
|
390
390
|
"bg-color": h(S).NeutralGray100,
|
|
@@ -2,22 +2,22 @@ var le = Object.defineProperty;
|
|
|
2
2
|
var ue = (x, e, i) => e in x ? le(x, e, { enumerable: !0, configurable: !0, writable: !0, value: i }) : x[e] = i;
|
|
3
3
|
var K = (x, e, i) => ue(x, typeof e != "symbol" ? e + "" : e, i);
|
|
4
4
|
import { defineComponent as W, computed as S, ref as te, resolveComponent as V, createBlock as D, openBlock as E, unref as l, withCtx as I, createElementVNode as M, toDisplayString as oe, createVNode as _, createCommentVNode as ae, createElementBlock as j, Fragment as B } from "vue";
|
|
5
|
-
import { D as G } from "./
|
|
6
|
-
import { m as R, A as P, f as h, a as H, b as L, e as A, n as O, w as de } from "./ImportProductDialog.vue_vue_type_script_setup_true_lang-
|
|
7
|
-
import { J as pe, F as fe } from "./jszip.min-
|
|
8
|
-
import { u as re,
|
|
5
|
+
import { D as G } from "./iteration-CxQwvFbX.js";
|
|
6
|
+
import { m as R, A as P, f as h, a as H, b as L, e as A, n as O, w as de } from "./ImportProductDialog.vue_vue_type_script_setup_true_lang-BGWmkL9R.js";
|
|
7
|
+
import { J as pe, F as fe } from "./jszip.min-DoZyvEEd.js";
|
|
8
|
+
import { u as re, D as ne, A as J, G as z, z as ie, B as be, H as q, I as X } from "./menu-Dlsf52hs.js";
|
|
9
9
|
import { useCoreStore as ge, useI18n as he } from "@feedmepos/mf-common";
|
|
10
10
|
import { useDialog as se, useDialogChild as ye, useSnackbar as ce, useBreakpoints as _e, FmButtonVariant as U, FmButtonColorThemeVariant as N } from "@feedmepos/ui-library";
|
|
11
11
|
import { _ as Y } from "./ResponsiveFabButton.vue_vue_type_script_setup_true_lang-Cn-3MRBO.js";
|
|
12
12
|
import { _ as ke, a as Z } from "./BottomSheetMenuItem.vue_vue_type_script_setup_true_lang-DhrXKy3b.js";
|
|
13
13
|
import { _ as ve } from "./PageLayout.vue_vue_type_script_setup_true_lang-2f0QfweQ.js";
|
|
14
|
-
import { u as we, a as xe } from "./menu-
|
|
15
|
-
import { u as Ce } from "./item-
|
|
16
|
-
import { _ as Q, a as Fe } from "./Product.vue_vue_type_script_setup_true_lang-
|
|
17
|
-
import { L as ee } from "./LinkProductSideSheet-
|
|
18
|
-
import { _ as Me } from "./TreeEditorOpenner.vue_vue_type_script_setup_true_lang-
|
|
19
|
-
import { u as Ie } from "./Thumbnail.vue_vue_type_script_setup_true_lang-
|
|
20
|
-
import { m as Ee } from "./toExcel-
|
|
14
|
+
import { u as we, a as xe } from "./menu-zMO5M1Ur.js";
|
|
15
|
+
import { u as Ce } from "./item-BsvsZcce.js";
|
|
16
|
+
import { _ as Q, a as Fe } from "./Product.vue_vue_type_script_setup_true_lang-CpthNypU.js";
|
|
17
|
+
import { L as ee } from "./LinkProductSideSheet-CiRZO3uN.js";
|
|
18
|
+
import { _ as Me } from "./TreeEditorOpenner.vue_vue_type_script_setup_true_lang-C0NgcFQK.js";
|
|
19
|
+
import { u as Ie } from "./Thumbnail.vue_vue_type_script_setup_true_lang-CH9jzjP0.js";
|
|
20
|
+
import { m as Ee } from "./toExcel-C6zcyUsq.js";
|
|
21
21
|
const Te = { class: "space-y-24 mb-24" }, Se = ["innerHTML"], De = { class: "flex justify-end gap-8" }, Ne = /* @__PURE__ */ W({
|
|
22
22
|
__name: "ConfirmActionDialog",
|
|
23
23
|
props: {
|