@feedmepos/mf-settings 0.0.63-beta.1 → 0.0.64-beta.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/{index-f3cc5dbf.js → App-e0bba2b7.js} +8054 -3710
- package/dist/{Business-0ec3548d.js → Business-c9dd77d6.js} +40 -40
- package/dist/FoodCourt-1e83edbf.js +72518 -0
- package/dist/{Tagging-a43fc0d5.js → Tagging-6d46c6db.js} +1 -1
- package/dist/_commonjs-dynamic-modules-bed80856.js +6 -0
- package/dist/{app-b3105281.js → app-51a50e28.js} +4 -4
- package/dist/app.js +1 -1
- package/dist/apps/mf-settings/tsconfig.app.tsbuildinfo +1 -1
- package/package.json +2 -2
- package/dist/App-5fbfe520.js +0 -4352
- package/dist/FoodCourt-7704e6e3.js +0 -47797
|
@@ -7,14 +7,14 @@ import { useSnackbar as mt, components as Ur, useDialog as pt, useDialogChild as
|
|
|
7
7
|
import { _ as Gr } from "./ResponsiveFabButton.vue_vue_type_script_setup_true_lang-8f929a2d.js";
|
|
8
8
|
import { _ as Br, c as Ye } from "./createForm-d3b97d2e.js";
|
|
9
9
|
import { D as ht, u as cr } from "./dayjs.min-1dcf0c5a.js";
|
|
10
|
-
import { _ as
|
|
10
|
+
import { _ as we, c as Kr } from "./FormSection.vue_vue_type_script_setup_true_lang-6aab82f2.js";
|
|
11
11
|
import { e as vt, g as dr, c as qr } from "./index-79b36905.js";
|
|
12
12
|
import { u as fr, b as Pe, a as We, g as Ue } from "./index-064cf2cd.js";
|
|
13
|
-
import { c as
|
|
13
|
+
import { c as Ae } from "./object-27ce045b.js";
|
|
14
14
|
import { b as Hr } from "./business-0b74f773.js";
|
|
15
15
|
import { t as Je, w as Ze, x as zr, y as Xr, z as Yr, A as Wr, B as De, u as be, D as Jr, G as Zr } from "./map-695afd6f.js";
|
|
16
16
|
import { _ as mr } from "./_plugin-vue_export-helper-dad06003.js";
|
|
17
|
-
import { u as Qr } from "./app-
|
|
17
|
+
import { u as Qr } from "./app-51a50e28.js";
|
|
18
18
|
import { r as fe } from "./rules-2bee6632.js";
|
|
19
19
|
import "pinia";
|
|
20
20
|
import "@feedmepos/mf-mdm";
|
|
@@ -729,7 +729,7 @@ const tn = /* @__PURE__ */ re({
|
|
|
729
729
|
},
|
|
730
730
|
setup(t, { expose: e }) {
|
|
731
731
|
const r = t, n = mt(), s = fr(n), o = "https://feedmedev.cc", i = ft(
|
|
732
|
-
r.initialValue ?
|
|
732
|
+
r.initialValue ? Ae(r.initialValue) : {
|
|
733
733
|
thumbnail: void 0,
|
|
734
734
|
name: "",
|
|
735
735
|
url: void 0,
|
|
@@ -1217,13 +1217,13 @@ const kt = ne, Kn = (t, e, r = !1) => {
|
|
|
1217
1217
|
throw n;
|
|
1218
1218
|
}
|
|
1219
1219
|
};
|
|
1220
|
-
var
|
|
1221
|
-
const qn =
|
|
1220
|
+
var _e = Kn;
|
|
1221
|
+
const qn = _e, Hn = (t, e) => {
|
|
1222
1222
|
const r = qn(t, e);
|
|
1223
1223
|
return r ? r.version : null;
|
|
1224
1224
|
};
|
|
1225
1225
|
var zn = Hn;
|
|
1226
|
-
const Xn =
|
|
1226
|
+
const Xn = _e, Yn = (t, e) => {
|
|
1227
1227
|
const r = Xn(t.trim().replace(/^[=v]+/, ""), e);
|
|
1228
1228
|
return r ? r.version : null;
|
|
1229
1229
|
};
|
|
@@ -1240,7 +1240,7 @@ const Vt = ne, Jn = (t, e, r, n, s) => {
|
|
|
1240
1240
|
}
|
|
1241
1241
|
};
|
|
1242
1242
|
var Zn = Jn;
|
|
1243
|
-
const Ft =
|
|
1243
|
+
const Ft = _e, Qn = (t, e) => {
|
|
1244
1244
|
const r = Ft(t, null, !0), n = Ft(e, null, !0), s = r.compare(n);
|
|
1245
1245
|
if (s === 0)
|
|
1246
1246
|
return null;
|
|
@@ -1261,7 +1261,7 @@ const ss = ne, as = (t, e) => new ss(t, e).minor;
|
|
|
1261
1261
|
var os = as;
|
|
1262
1262
|
const is = ne, ls = (t, e) => new is(t, e).patch;
|
|
1263
1263
|
var us = ls;
|
|
1264
|
-
const cs =
|
|
1264
|
+
const cs = _e, ds = (t, e) => {
|
|
1265
1265
|
const r = cs(t, e);
|
|
1266
1266
|
return r && r.prerelease.length ? r.prerelease : null;
|
|
1267
1267
|
};
|
|
@@ -1318,7 +1318,7 @@ const Ms = yr, Us = $r, Ds = qe, Gs = $t, Bs = yt, Ks = _t, qs = (t, e, r, n) =>
|
|
|
1318
1318
|
}
|
|
1319
1319
|
};
|
|
1320
1320
|
var _r = qs;
|
|
1321
|
-
const Hs = ne, zs =
|
|
1321
|
+
const Hs = ne, zs = _e, { safeRe: xe, t: ke } = Se, Xs = (t, e) => {
|
|
1322
1322
|
if (t instanceof Hs)
|
|
1323
1323
|
return t;
|
|
1324
1324
|
if (typeof t == "number" && (t = String(t)), typeof t != "string")
|
|
@@ -1670,7 +1670,7 @@ var xa = (t, e, r) => {
|
|
|
1670
1670
|
const d = f.join(" || "), b = typeof e.raw == "string" ? e.raw : String(e);
|
|
1671
1671
|
return d.length < b.length ? d : e;
|
|
1672
1672
|
};
|
|
1673
|
-
const Ht = le(), wt = He(), { ANY: nt } = wt,
|
|
1673
|
+
const Ht = le(), wt = He(), { ANY: nt } = wt, Re = ze, Rt = ie, ka = (t, e, r = {}) => {
|
|
1674
1674
|
if (t === e)
|
|
1675
1675
|
return !0;
|
|
1676
1676
|
t = new Ht(t, r), e = new Ht(e, r);
|
|
@@ -1713,10 +1713,10 @@ const Ht = le(), wt = He(), { ANY: nt } = wt, Ie = ze, Rt = ie, ka = (t, e, r =
|
|
|
1713
1713
|
return null;
|
|
1714
1714
|
}
|
|
1715
1715
|
for (const c of n) {
|
|
1716
|
-
if (s && !
|
|
1716
|
+
if (s && !Re(c, String(s), r) || o && !Re(c, String(o), r))
|
|
1717
1717
|
return null;
|
|
1718
1718
|
for (const x of e)
|
|
1719
|
-
if (!
|
|
1719
|
+
if (!Re(c, String(x), r))
|
|
1720
1720
|
return !1;
|
|
1721
1721
|
return !0;
|
|
1722
1722
|
}
|
|
@@ -1727,14 +1727,14 @@ const Ht = le(), wt = He(), { ANY: nt } = wt, Ie = ze, Rt = ie, ka = (t, e, r =
|
|
|
1727
1727
|
if (O && c.semver.prerelease && c.semver.prerelease.length && c.semver.major === O.major && c.semver.minor === O.minor && c.semver.patch === O.patch && (O = !1), c.operator === ">" || c.operator === ">=") {
|
|
1728
1728
|
if (f = Xt(s, c, r), f === c && f !== s)
|
|
1729
1729
|
return !1;
|
|
1730
|
-
} else if (s.operator === ">=" && !
|
|
1730
|
+
} else if (s.operator === ">=" && !Re(s.semver, String(c), r))
|
|
1731
1731
|
return !1;
|
|
1732
1732
|
}
|
|
1733
1733
|
if (o) {
|
|
1734
1734
|
if (g && c.semver.prerelease && c.semver.prerelease.length && c.semver.major === g.major && c.semver.minor === g.minor && c.semver.patch === g.patch && (g = !1), c.operator === "<" || c.operator === "<=") {
|
|
1735
1735
|
if (d = Yt(o, c, r), d === c && d !== o)
|
|
1736
1736
|
return !1;
|
|
1737
|
-
} else if (o.operator === "<=" && !
|
|
1737
|
+
} else if (o.operator === "<=" && !Re(o.semver, String(c), r))
|
|
1738
1738
|
return !1;
|
|
1739
1739
|
}
|
|
1740
1740
|
if (!c.operator && (o || s) && i !== 0)
|
|
@@ -1753,7 +1753,7 @@ const Ht = le(), wt = He(), { ANY: nt } = wt, Ie = ze, Rt = ie, ka = (t, e, r =
|
|
|
1753
1753
|
return n < 0 ? t : n > 0 || e.operator === "<" && t.operator === "<=" ? e : t;
|
|
1754
1754
|
};
|
|
1755
1755
|
var ja = ka;
|
|
1756
|
-
const st = Se, Wt = Be, Ma = ne, Jt = br, Ua =
|
|
1756
|
+
const st = Se, Wt = Be, Ma = ne, Jt = br, Ua = _e, Da = zn, Ga = Wn, Ba = Zn, Ka = es, qa = ns, Ha = os, za = us, Xa = fs, Ya = ie, Wa = vs, Ja = ys, Za = bt, Qa = ws, eo = As, to = qe, ro = yt, no = yr, so = $r, ao = $t, oo = _t, io = _r, lo = Ys, uo = He(), co = le(), fo = ze, mo = ra, po = oa, ho = ca, vo = ma, go = va, bo = Et, yo = Aa, $o = Pa, _o = La, Eo = xa, wo = ja;
|
|
1757
1757
|
var Ro = {
|
|
1758
1758
|
parse: Ua,
|
|
1759
1759
|
valid: Da,
|
|
@@ -1896,7 +1896,7 @@ async function tr(t) {
|
|
|
1896
1896
|
r.push(await Rr(n));
|
|
1897
1897
|
return r;
|
|
1898
1898
|
}
|
|
1899
|
-
const
|
|
1899
|
+
const Ie = {
|
|
1900
1900
|
async readRestaurant(t) {
|
|
1901
1901
|
return await at(await Pe().get(`/restaurants/${t}`));
|
|
1902
1902
|
},
|
|
@@ -2065,7 +2065,7 @@ const Ae = {
|
|
|
2065
2065
|
},
|
|
2066
2066
|
setup(t) {
|
|
2067
2067
|
const { t: e } = ve(), r = t, { emitData: n } = Dr(), s = ft(
|
|
2068
|
-
|
|
2068
|
+
Ae(r.coordinate ? r.coordinate : De.jb)
|
|
2069
2069
|
);
|
|
2070
2070
|
function o({ position: i }) {
|
|
2071
2071
|
s.lat = i.lat, s.lng = i.lng, n(s);
|
|
@@ -2258,7 +2258,7 @@ const Ae = {
|
|
|
2258
2258
|
A && y((F) => (F[k].hours[V].end = A, F));
|
|
2259
2259
|
}
|
|
2260
2260
|
function y(k) {
|
|
2261
|
-
const V = k(
|
|
2261
|
+
const V = k(Ae(f.value)), A = {
|
|
2262
2262
|
0: V[0],
|
|
2263
2263
|
1: V[1],
|
|
2264
2264
|
2: V[2],
|
|
@@ -2352,7 +2352,7 @@ const Ae = {
|
|
|
2352
2352
|
setup(t, { emit: e }) {
|
|
2353
2353
|
const { t: r } = ve();
|
|
2354
2354
|
er();
|
|
2355
|
-
const n = t, s = e, o = Y(() =>
|
|
2355
|
+
const n = t, s = e, o = Y(() => n.modelValue || er());
|
|
2356
2356
|
function i(d) {
|
|
2357
2357
|
return (d || "").toString();
|
|
2358
2358
|
}
|
|
@@ -2474,18 +2474,18 @@ class Wo {
|
|
|
2474
2474
|
}
|
|
2475
2475
|
async function nr(t, e) {
|
|
2476
2476
|
const r = new Wo(t, e);
|
|
2477
|
-
await r.run(), await
|
|
2477
|
+
await r.run(), await Ie.updateRestaurantProfile(t.id, r.data), await pe().readRestaurants();
|
|
2478
2478
|
}
|
|
2479
2479
|
const Jo = () => {
|
|
2480
2480
|
const t = pe();
|
|
2481
2481
|
return {
|
|
2482
2482
|
async createRestaurant(e, r, n) {
|
|
2483
|
-
const s = await
|
|
2483
|
+
const s = await Ie.createRestaurant({
|
|
2484
2484
|
businessId: e,
|
|
2485
2485
|
features: [],
|
|
2486
2486
|
profile: r
|
|
2487
2487
|
});
|
|
2488
|
-
n && await
|
|
2488
|
+
n && await Ie.updateRestaurantAttributes(s.id, n), await nr(s, r), await Ie.createRestaurantFeature(s.id), await t.readRestaurants();
|
|
2489
2489
|
},
|
|
2490
2490
|
async updateRestaurantProfile(e, r) {
|
|
2491
2491
|
await nr(e, r);
|
|
@@ -2518,7 +2518,7 @@ const Jo = () => {
|
|
|
2518
2518
|
var C;
|
|
2519
2519
|
return (C = r.restaurant) == null ? void 0 : C.profile;
|
|
2520
2520
|
}), c = ft(
|
|
2521
|
-
O.value ?
|
|
2521
|
+
O.value ? Ae(O.value) : {
|
|
2522
2522
|
...Qt(),
|
|
2523
2523
|
address: Oe(Qt().address),
|
|
2524
2524
|
legalName: "",
|
|
@@ -2565,14 +2565,14 @@ const Jo = () => {
|
|
|
2565
2565
|
r.restaurantId ? y("settings.business.restaurant.form.title.update") : y("settings.business.restaurant.form.title.add")
|
|
2566
2566
|
), V = ae(((P = r.restaurant) == null ? void 0 : P.customAttributes) || {});
|
|
2567
2567
|
async function A(C) {
|
|
2568
|
-
Object.values(V.value).length !== 0 && await
|
|
2568
|
+
Object.values(V.value).length !== 0 && await Ie.updateRestaurantAttributes(C, V.value);
|
|
2569
2569
|
}
|
|
2570
2570
|
const F = Y(() => Oe(c.address)), J = Y(() => F.value.formatted);
|
|
2571
2571
|
function Z(C) {
|
|
2572
2572
|
var w;
|
|
2573
2573
|
if (typeof C == "string") {
|
|
2574
2574
|
const T = (w = n.value.find((U) => U._id === C)) == null ? void 0 : w.profile.operatingHours;
|
|
2575
|
-
T ? c.operatingHours =
|
|
2575
|
+
T ? c.operatingHours = Ae(T) : f.open({
|
|
2576
2576
|
title: y("settings.business.restaurant.form.sections.operation_hours.invalid"),
|
|
2577
2577
|
type: "error"
|
|
2578
2578
|
});
|
|
@@ -2711,7 +2711,7 @@ const Jo = () => {
|
|
|
2711
2711
|
items: p.value.items
|
|
2712
2712
|
}, null, 8, ["style", "title", "items"])),
|
|
2713
2713
|
_("div", Qo, [
|
|
2714
|
-
L(
|
|
2714
|
+
L(we, {
|
|
2715
2715
|
title: $(y)("settings.business.restaurant.form.sections.basic_info.title")
|
|
2716
2716
|
}, {
|
|
2717
2717
|
default: K(() => {
|
|
@@ -2802,7 +2802,7 @@ const Jo = () => {
|
|
|
2802
2802
|
}, 8, ["title"]),
|
|
2803
2803
|
$(o).length > 0 ? (j(), B(oe, { key: 0 }, [
|
|
2804
2804
|
w[18] || (w[18] = _("div", { class: "w-full h-[2px] bg-fm-color-neutral-gray-100" }, null, -1)),
|
|
2805
|
-
L(
|
|
2805
|
+
L(we, {
|
|
2806
2806
|
title: $(y)("settings.restaurantTagging.title"),
|
|
2807
2807
|
"sub-title": $(y)("settings.restaurantTagging.subtitle")
|
|
2808
2808
|
}, {
|
|
@@ -2817,7 +2817,7 @@ const Jo = () => {
|
|
|
2817
2817
|
}, 8, ["title", "sub-title"])
|
|
2818
2818
|
], 64)) : ce("", !0),
|
|
2819
2819
|
w[19] || (w[19] = _("div", { class: "w-full h-[2px] bg-fm-color-neutral-gray-100" }, null, -1)),
|
|
2820
|
-
L(
|
|
2820
|
+
L(we, {
|
|
2821
2821
|
title: $(y)("settings.business.restaurant.form.sections.address.title")
|
|
2822
2822
|
}, {
|
|
2823
2823
|
default: K(() => [
|
|
@@ -2836,7 +2836,7 @@ const Jo = () => {
|
|
|
2836
2836
|
_: 1
|
|
2837
2837
|
}, 8, ["title"]),
|
|
2838
2838
|
w[20] || (w[20] = _("div", { class: "w-full h-[2px] bg-fm-color-neutral-gray-100" }, null, -1)),
|
|
2839
|
-
L(
|
|
2839
|
+
L(we, {
|
|
2840
2840
|
title: $(y)("settings.business.restaurant.form.sections.operation_hours.title")
|
|
2841
2841
|
}, {
|
|
2842
2842
|
default: K(() => [
|
|
@@ -2864,7 +2864,7 @@ const Jo = () => {
|
|
|
2864
2864
|
_: 1
|
|
2865
2865
|
}, 8, ["title"]),
|
|
2866
2866
|
w[21] || (w[21] = _("div", { class: "w-full h-[2px] bg-fm-color-neutral-gray-100" }, null, -1)),
|
|
2867
|
-
L(
|
|
2867
|
+
L(we, {
|
|
2868
2868
|
title: $(y)("settings.business.restaurant.form.sections.branding.title")
|
|
2869
2869
|
}, {
|
|
2870
2870
|
default: K(() => [
|
|
@@ -2919,8 +2919,8 @@ const Jo = () => {
|
|
|
2919
2919
|
"previous-url": M,
|
|
2920
2920
|
"model-value": void 0,
|
|
2921
2921
|
"onReset:modelValue": (z) => {
|
|
2922
|
-
var
|
|
2923
|
-
return (
|
|
2922
|
+
var Ee;
|
|
2923
|
+
return (Ee = c.photos) == null ? void 0 : Ee.splice(Q, 1);
|
|
2924
2924
|
}
|
|
2925
2925
|
}, null, 8, ["previous-url", "onReset:modelValue"]))), 128)),
|
|
2926
2926
|
(j(!0), B(oe, null, he(c.newPhotos || [], (M, Q) => {
|
|
@@ -2929,7 +2929,7 @@ const Jo = () => {
|
|
|
2929
2929
|
key: Q,
|
|
2930
2930
|
"model-value": ((z = c.newPhotos) == null ? void 0 : z[Q]) || void 0,
|
|
2931
2931
|
"previous-url": void 0,
|
|
2932
|
-
"onReset:modelValue": (
|
|
2932
|
+
"onReset:modelValue": (Ee) => {
|
|
2933
2933
|
var It;
|
|
2934
2934
|
return (It = c.photos) == null ? void 0 : It.splice(Q, 1);
|
|
2935
2935
|
}
|
|
@@ -3264,7 +3264,7 @@ var Ir = { exports: {} };
|
|
|
3264
3264
|
return void M.push([T, U[X - 1], H]);
|
|
3265
3265
|
var Q = l(U, X);
|
|
3266
3266
|
if (f(T) && isNaN(Number(Q)))
|
|
3267
|
-
for (var z = 0,
|
|
3267
|
+
for (var z = 0, Ee = T.length; z < Ee; z++)
|
|
3268
3268
|
w(l(T, z), U, X, T, M);
|
|
3269
3269
|
else
|
|
3270
3270
|
w(l(T, Q), U, X + 1, T, M);
|
|
@@ -3640,14 +3640,14 @@ var Ai = /* @__PURE__ */ function() {
|
|
|
3640
3640
|
return this[se].originalRules;
|
|
3641
3641
|
}
|
|
3642
3642
|
}]), t;
|
|
3643
|
-
}(),
|
|
3643
|
+
}(), $e;
|
|
3644
3644
|
((t) => {
|
|
3645
3645
|
((e) => {
|
|
3646
3646
|
e[e.feedMe = 0] = "feedMe", e[e.business = 1] = "business", e[e.restaurant = 2] = "restaurant";
|
|
3647
3647
|
})(t.Level || (t.Level = {})), ((e) => {
|
|
3648
3648
|
e.manage = "manage", e.create = "create", e.read = "read", e.update = "update", e.delete = "delete";
|
|
3649
3649
|
})(t.Action || (t.Action = {}));
|
|
3650
|
-
})(
|
|
3650
|
+
})($e || ($e = {}));
|
|
3651
3651
|
((t) => {
|
|
3652
3652
|
((e) => {
|
|
3653
3653
|
((r) => {
|
|
@@ -3660,15 +3660,15 @@ var Ai = /* @__PURE__ */ function() {
|
|
|
3660
3660
|
r.restaurant = "restaurant";
|
|
3661
3661
|
})(e.Restaurant || (e.Restaurant = {}));
|
|
3662
3662
|
})(t.Subject || (t.Subject = {}));
|
|
3663
|
-
})(
|
|
3663
|
+
})($e || ($e = {}));
|
|
3664
3664
|
function Oi(t, e) {
|
|
3665
3665
|
const n = pe().sessionUser.value;
|
|
3666
3666
|
if (!n)
|
|
3667
3667
|
return;
|
|
3668
3668
|
const { isAdmin: s } = n.role, o = n.permissions, i = e.filter((f) => f.businessId === t._id).length;
|
|
3669
3669
|
return t.restaurantQuota > i && ((n == null ? void 0 : n.id) === t.ownerId || s) && new Ai(o).can(
|
|
3670
|
-
|
|
3671
|
-
|
|
3670
|
+
$e.Action.manage,
|
|
3671
|
+
$e.Subject.Feedme.all
|
|
3672
3672
|
);
|
|
3673
3673
|
}
|
|
3674
3674
|
const Si = { class: "fm-typo-cn-body-md-400 text-fm-color-typo-secondary xs:flex xs:flex-col" }, Pi = { class: "flex flex-1" }, Ti = {
|