@feedmepos/mf-settings 0.0.57 → 0.0.58
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-5ff3656e.js → App-854f8c7c.js} +1 -1
- package/dist/{Business-3c38b9d5.js → Business-ddbd12c2.js} +150 -145
- package/dist/{Tagging-14ec1f75.js → Tagging-5fcdf95d.js} +1 -1
- package/dist/{app-c20e051f.js → app-59ccea16.js} +3 -3
- package/dist/app.js +1 -1
- package/dist/apps/mf-settings/src/api/restaurant.d.ts +1 -0
- package/package.json +2 -2
|
@@ -3,7 +3,7 @@ import { useRouter as jt, RouterView as Bt } from "vue-router";
|
|
|
3
3
|
import { useI18n as Kt, useCoreStore as Ze, FeedMeAuth as qt } from "@feedmepos/mf-common";
|
|
4
4
|
import { c as Gt } from "./index-e68421c3.js";
|
|
5
5
|
import { e as zt } from "./index-759f69a1.js";
|
|
6
|
-
import { r as Jt } from "./app-
|
|
6
|
+
import { r as Jt } from "./app-59ccea16.js";
|
|
7
7
|
import { r as de, g as et, i as Yt, a as Xt, _ as Ne, C as Oe, b as Qt, S as F, c as O, E as pe, d as Zt, e as tt, f as en, h as tn, L as nt, j as f, k as nn, l as rn, F as ge, q as x, m as sn, n as on, o as an, p as cn, s as ln, t as un, u as dn, v as hn } from "./map-695afd6f.js";
|
|
8
8
|
import "@feedmepos/mf-mdm";
|
|
9
9
|
import "@feedmepos/ui-library";
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
var Or = Object.defineProperty;
|
|
2
2
|
var Sr = (t, e, r) => e in t ? Or(t, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[e] = r;
|
|
3
|
-
var
|
|
4
|
-
import { defineComponent as re, ref as ae, resolveComponent as q, openBlock as F, createBlock as te, withCtx as K, withModifiers as
|
|
3
|
+
var He = (t, e, r) => (Sr(t, typeof e != "symbol" ? e + "" : e, r), r);
|
|
4
|
+
import { defineComponent as re, ref as ae, resolveComponent as q, openBlock as F, createBlock as te, withCtx as K, withModifiers as st, createCommentVNode as ce, renderSlot as de, createElementVNode as $, nextTick as Pr, createElementBlock as B, normalizeClass as ee, createTextVNode as Ve, toDisplayString as G, computed as Y, normalizeStyle as Fe, createVNode as N, reactive as ct, Fragment as oe, unref as _, renderList as he, h as Rt, Teleport as Tr, Transition as Lr, withKeys as Nr, watch as It, onMounted as Cr, onUnmounted as xr, toRaw as At, normalizeProps as kr, guardReactiveProps as Vr, getCurrentInstance as Fr, isRef as Ot } from "vue";
|
|
5
5
|
import { useCoreStore as pe, useI18n as ve, CustomAttributesForm as jr } from "@feedmepos/mf-common";
|
|
6
|
-
import { useSnackbar as
|
|
7
|
-
import { D as
|
|
8
|
-
import { c as $e, _ as Br, a as
|
|
6
|
+
import { useSnackbar as dt, components as Mr, useDialog as ft, useDialogChild as Ur, useBreakpoints as ur } from "@feedmepos/ui-library";
|
|
7
|
+
import { D as mt, u as cr, _ as Dr, a as Gr } from "./RestaurantSelector.vue_vue_type_script_setup_true_lang-030a97dd.js";
|
|
8
|
+
import { c as $e, _ as Br, a as ze } from "./object-8ac0c0d8.js";
|
|
9
9
|
import { _ as Re, c as Kr } from "./FormSection.vue_vue_type_script_setup_true_lang-6aab82f2.js";
|
|
10
|
-
import { e as
|
|
11
|
-
import { u as fr, b as
|
|
10
|
+
import { e as pt, g as dr, c as qr } from "./index-759f69a1.js";
|
|
11
|
+
import { u as fr, b as Pe, a as Xe, g as je } from "./index-71e4b8aa.js";
|
|
12
12
|
import { b as Hr } from "./business-ad1b9825.js";
|
|
13
|
-
import { t as
|
|
13
|
+
import { t as Ye, w as We, x as zr, y as Xr, z as Yr, A as Wr, B as Me, u as be, D as Jr, G as Zr } from "./map-695afd6f.js";
|
|
14
14
|
import { _ as mr, r as fe } from "./rules-c9fa22f8.js";
|
|
15
|
-
import { u as Qr } from "./app-
|
|
15
|
+
import { u as Qr } from "./app-59ccea16.js";
|
|
16
16
|
import "pinia";
|
|
17
17
|
import "@feedmepos/mf-mdm";
|
|
18
18
|
import "vue-router";
|
|
@@ -72,7 +72,7 @@ const tn = /* @__PURE__ */ re({
|
|
|
72
72
|
key: 0,
|
|
73
73
|
icon: "more_vert",
|
|
74
74
|
variant: "tertiary",
|
|
75
|
-
onClick:
|
|
75
|
+
onClick: st(r, ["stop"])
|
|
76
76
|
})),
|
|
77
77
|
de(n.$slots, "button")
|
|
78
78
|
]),
|
|
@@ -113,7 +113,7 @@ const tn = /* @__PURE__ */ re({
|
|
|
113
113
|
key: 0,
|
|
114
114
|
name: r.icon
|
|
115
115
|
}, null, 8, ["name"])) : ce("", !0),
|
|
116
|
-
|
|
116
|
+
Ve(" " + G(r.label), 1)
|
|
117
117
|
], 2)),
|
|
118
118
|
de(r.$slots, "content")
|
|
119
119
|
]);
|
|
@@ -144,12 +144,12 @@ const tn = /* @__PURE__ */ re({
|
|
|
144
144
|
const f = q("fm-icon"), d = q("fm-drop-field");
|
|
145
145
|
return s.value ? (F(), B("div", sn, [
|
|
146
146
|
$("p", an, [
|
|
147
|
-
|
|
147
|
+
Ve(G(r.label) + " ", 1),
|
|
148
148
|
$("span", on, G(o.subLabel), 1)
|
|
149
149
|
]),
|
|
150
150
|
$("div", {
|
|
151
151
|
class: ee(["relative", "border-2 border-dashed border-fm-color-neutral-gray-300 rounded-md"]),
|
|
152
|
-
style:
|
|
152
|
+
style: Fe({ width: `${r.width}px`, height: `${r.height}px` })
|
|
153
153
|
}, [
|
|
154
154
|
$("div", ln, [
|
|
155
155
|
$("div", un, [
|
|
@@ -176,12 +176,12 @@ const tn = /* @__PURE__ */ re({
|
|
|
176
176
|
])) : (F(), te(d, {
|
|
177
177
|
key: 1,
|
|
178
178
|
accept: ".jpg, .jpeg, .png, .gif",
|
|
179
|
-
style:
|
|
179
|
+
style: Fe({ width: `${r.width}px`, height: `${r.height}px` }),
|
|
180
180
|
onFileUpload: i[1] || (i[1] = (u) => n("update:model-value", u))
|
|
181
181
|
}, {
|
|
182
182
|
label: K(() => [
|
|
183
183
|
$("p", dn, [
|
|
184
|
-
|
|
184
|
+
Ve(G(r.label) + " ", 1),
|
|
185
185
|
$("span", fn, G(r.subLabel), 1)
|
|
186
186
|
])
|
|
187
187
|
]),
|
|
@@ -689,28 +689,28 @@ const tn = /* @__PURE__ */ re({
|
|
|
689
689
|
"za",
|
|
690
690
|
"zm",
|
|
691
691
|
"zw"
|
|
692
|
-
],
|
|
692
|
+
], Je = {
|
|
693
693
|
async get(t, e) {
|
|
694
|
-
const r =
|
|
694
|
+
const r = Ye(void 0, e), n = We(r, t);
|
|
695
695
|
return await (await zr(n)).text();
|
|
696
696
|
},
|
|
697
697
|
async update(t, e, r) {
|
|
698
|
-
const n =
|
|
698
|
+
const n = Ye(void 0, r), s = We(n, t);
|
|
699
699
|
return await Xr(s, e), await Yr(s);
|
|
700
700
|
},
|
|
701
701
|
async delete(t, e) {
|
|
702
|
-
const r =
|
|
702
|
+
const r = Ye(void 0, e), n = We(r, t);
|
|
703
703
|
await Wr(n);
|
|
704
704
|
}
|
|
705
705
|
}, me = {
|
|
706
706
|
async get(t) {
|
|
707
|
-
return await
|
|
707
|
+
return await Je.get(t);
|
|
708
708
|
},
|
|
709
709
|
async update(t, e, r) {
|
|
710
|
-
return await
|
|
710
|
+
return await Je.update(t, e);
|
|
711
711
|
},
|
|
712
712
|
async delete(t) {
|
|
713
|
-
await
|
|
713
|
+
await Je.delete(t);
|
|
714
714
|
}
|
|
715
715
|
}, mn = { class: "fm-typo-en-title-md-600" }, pn = { class: "pt-8 space-y-24" }, hn = { class: "flex gap-8 items-center justify-start" }, vn = /* @__PURE__ */ re({
|
|
716
716
|
__name: "BusinessForm",
|
|
@@ -725,7 +725,7 @@ const tn = /* @__PURE__ */ re({
|
|
|
725
725
|
}
|
|
726
726
|
},
|
|
727
727
|
setup(t, { expose: e }) {
|
|
728
|
-
const r = t, n =
|
|
728
|
+
const r = t, n = dt(), s = fr(n), o = "https://feedmedev.cc", i = ct(
|
|
729
729
|
r.initialValue ? $e(r.initialValue) : {
|
|
730
730
|
thumbnail: void 0,
|
|
731
731
|
name: "",
|
|
@@ -746,7 +746,7 @@ const tn = /* @__PURE__ */ re({
|
|
|
746
746
|
var k, V, I;
|
|
747
747
|
if (b.newThumbnail) {
|
|
748
748
|
const M = await me.update(
|
|
749
|
-
`business/${r.businessId}/thumbnail/${
|
|
749
|
+
`business/${r.businessId}/thumbnail/${mt().toISOString()}.png`,
|
|
750
750
|
b.newThumbnail
|
|
751
751
|
);
|
|
752
752
|
b.thumbnail = M, (k = r.initialValue) != null && k.thumbnail && await me.delete(r.initialValue.thumbnail);
|
|
@@ -825,7 +825,7 @@ const tn = /* @__PURE__ */ re({
|
|
|
825
825
|
rules: [
|
|
826
826
|
(I) => {
|
|
827
827
|
var M;
|
|
828
|
-
return !I || ((M = t.initialValue) == null ? void 0 : M.url) == i.url || f.value == _(
|
|
828
|
+
return !I || ((M = t.initialValue) == null ? void 0 : M.url) == i.url || f.value == _(pt.F_COUNTRY).enum.MY || _(c)("settings.business.form.url.errors.disabled");
|
|
829
829
|
},
|
|
830
830
|
(I) => !I || _(pr).test(I) || _(c)("settings.business.form.url.errors.format"),
|
|
831
831
|
(I) => !I || !_(hr).includes(I) || _(c)("settings.business.form.url.errors.reserved")
|
|
@@ -854,7 +854,7 @@ const tn = /* @__PURE__ */ re({
|
|
|
854
854
|
setup(t) {
|
|
855
855
|
const e = t, r = Y(() => e.optional && !e.subLabel ? "(optional)" : e.subLabel);
|
|
856
856
|
return (n, s) => (F(), B("p", gn, [
|
|
857
|
-
|
|
857
|
+
Ve(G(n.label) + " ", 1),
|
|
858
858
|
$("span", bn, G(r.value), 1)
|
|
859
859
|
]));
|
|
860
860
|
}
|
|
@@ -893,7 +893,7 @@ const Rn = /* @__PURE__ */ mr(En, [["render", wn]]), In = {
|
|
|
893
893
|
items: {}
|
|
894
894
|
},
|
|
895
895
|
setup(t) {
|
|
896
|
-
const e = t, r =
|
|
896
|
+
const e = t, r = ft();
|
|
897
897
|
function n() {
|
|
898
898
|
r.open({
|
|
899
899
|
title: e.title,
|
|
@@ -959,7 +959,7 @@ const Rn = /* @__PURE__ */ mr(En, [["render", wn]]), In = {
|
|
|
959
959
|
key: 0,
|
|
960
960
|
"blame-form-child-on-validation-failed": "",
|
|
961
961
|
class: ee(["fixed inset-0", "flex flex-col", "w-screen h-dvh", "bg-fm-color-neutral-white"]),
|
|
962
|
-
style:
|
|
962
|
+
style: Fe({ zIndex: o.zIndex }),
|
|
963
963
|
tabindex: "-1",
|
|
964
964
|
onValidationSuccess: n,
|
|
965
965
|
onKeyup: Nr(s, ["esc"])
|
|
@@ -993,7 +993,7 @@ const Rn = /* @__PURE__ */ mr(En, [["render", wn]]), In = {
|
|
|
993
993
|
}
|
|
994
994
|
});
|
|
995
995
|
const Ln = /* @__PURE__ */ mr(Tn, [["__scopeId", "data-v-5b5c7179"]]);
|
|
996
|
-
var
|
|
996
|
+
var at = { exports: {} };
|
|
997
997
|
const Nn = "2.0.0", vr = 256, Cn = Number.MAX_SAFE_INTEGER || /* istanbul ignore next */
|
|
998
998
|
9007199254740991, xn = 16, kn = vr - 6, Vn = [
|
|
999
999
|
"major",
|
|
@@ -1004,7 +1004,7 @@ const Nn = "2.0.0", vr = 256, Cn = Number.MAX_SAFE_INTEGER || /* istanbul ignore
|
|
|
1004
1004
|
"prepatch",
|
|
1005
1005
|
"prerelease"
|
|
1006
1006
|
];
|
|
1007
|
-
var
|
|
1007
|
+
var De = {
|
|
1008
1008
|
MAX_LENGTH: vr,
|
|
1009
1009
|
MAX_SAFE_COMPONENT_LENGTH: xn,
|
|
1010
1010
|
MAX_SAFE_BUILD_LENGTH: kn,
|
|
@@ -1016,13 +1016,13 @@ var Me = {
|
|
|
1016
1016
|
};
|
|
1017
1017
|
const Fn = typeof process == "object" && process.env && process.env.NODE_DEBUG && /\bsemver\b/i.test(process.env.NODE_DEBUG) ? (...t) => console.error("SEMVER", ...t) : () => {
|
|
1018
1018
|
};
|
|
1019
|
-
var
|
|
1019
|
+
var Ge = Fn;
|
|
1020
1020
|
(function(t, e) {
|
|
1021
1021
|
const {
|
|
1022
1022
|
MAX_SAFE_COMPONENT_LENGTH: r,
|
|
1023
1023
|
MAX_SAFE_BUILD_LENGTH: n,
|
|
1024
1024
|
MAX_LENGTH: s
|
|
1025
|
-
} =
|
|
1025
|
+
} = De, o = Ge;
|
|
1026
1026
|
e = t.exports = {};
|
|
1027
1027
|
const i = e.re = [], f = e.safeRe = [], d = e.src = [], u = e.t = {};
|
|
1028
1028
|
let v = 0;
|
|
@@ -1039,8 +1039,8 @@ var Ue = Fn;
|
|
|
1039
1039
|
o(O, I, y), u[O] = I, d[I] = y, i[I] = new RegExp(y, k ? "g" : void 0), f[I] = new RegExp(V, k ? "g" : void 0);
|
|
1040
1040
|
};
|
|
1041
1041
|
b("NUMERICIDENTIFIER", "0|[1-9]\\d*"), b("NUMERICIDENTIFIERLOOSE", "\\d+"), b("NONNUMERICIDENTIFIER", `\\d*[a-zA-Z-]${g}*`), b("MAINVERSION", `(${d[u.NUMERICIDENTIFIER]})\\.(${d[u.NUMERICIDENTIFIER]})\\.(${d[u.NUMERICIDENTIFIER]})`), b("MAINVERSIONLOOSE", `(${d[u.NUMERICIDENTIFIERLOOSE]})\\.(${d[u.NUMERICIDENTIFIERLOOSE]})\\.(${d[u.NUMERICIDENTIFIERLOOSE]})`), b("PRERELEASEIDENTIFIER", `(?:${d[u.NUMERICIDENTIFIER]}|${d[u.NONNUMERICIDENTIFIER]})`), b("PRERELEASEIDENTIFIERLOOSE", `(?:${d[u.NUMERICIDENTIFIERLOOSE]}|${d[u.NONNUMERICIDENTIFIER]})`), b("PRERELEASE", `(?:-(${d[u.PRERELEASEIDENTIFIER]}(?:\\.${d[u.PRERELEASEIDENTIFIER]})*))`), b("PRERELEASELOOSE", `(?:-?(${d[u.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${d[u.PRERELEASEIDENTIFIERLOOSE]})*))`), b("BUILDIDENTIFIER", `${g}+`), b("BUILD", `(?:\\+(${d[u.BUILDIDENTIFIER]}(?:\\.${d[u.BUILDIDENTIFIER]})*))`), b("FULLPLAIN", `v?${d[u.MAINVERSION]}${d[u.PRERELEASE]}?${d[u.BUILD]}?`), b("FULL", `^${d[u.FULLPLAIN]}$`), b("LOOSEPLAIN", `[v=\\s]*${d[u.MAINVERSIONLOOSE]}${d[u.PRERELEASELOOSE]}?${d[u.BUILD]}?`), b("LOOSE", `^${d[u.LOOSEPLAIN]}$`), b("GTLT", "((?:<|>)?=?)"), b("XRANGEIDENTIFIERLOOSE", `${d[u.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`), b("XRANGEIDENTIFIER", `${d[u.NUMERICIDENTIFIER]}|x|X|\\*`), b("XRANGEPLAIN", `[v=\\s]*(${d[u.XRANGEIDENTIFIER]})(?:\\.(${d[u.XRANGEIDENTIFIER]})(?:\\.(${d[u.XRANGEIDENTIFIER]})(?:${d[u.PRERELEASE]})?${d[u.BUILD]}?)?)?`), b("XRANGEPLAINLOOSE", `[v=\\s]*(${d[u.XRANGEIDENTIFIERLOOSE]})(?:\\.(${d[u.XRANGEIDENTIFIERLOOSE]})(?:\\.(${d[u.XRANGEIDENTIFIERLOOSE]})(?:${d[u.PRERELEASELOOSE]})?${d[u.BUILD]}?)?)?`), b("XRANGE", `^${d[u.GTLT]}\\s*${d[u.XRANGEPLAIN]}$`), b("XRANGELOOSE", `^${d[u.GTLT]}\\s*${d[u.XRANGEPLAINLOOSE]}$`), b("COERCEPLAIN", `(^|[^\\d])(\\d{1,${r}})(?:\\.(\\d{1,${r}}))?(?:\\.(\\d{1,${r}}))?`), b("COERCE", `${d[u.COERCEPLAIN]}(?:$|[^\\d])`), b("COERCEFULL", d[u.COERCEPLAIN] + `(?:${d[u.PRERELEASE]})?(?:${d[u.BUILD]})?(?:$|[^\\d])`), b("COERCERTL", d[u.COERCE], !0), b("COERCERTLFULL", d[u.COERCEFULL], !0), b("LONETILDE", "(?:~>?)"), b("TILDETRIM", `(\\s*)${d[u.LONETILDE]}\\s+`, !0), e.tildeTrimReplace = "$1~", b("TILDE", `^${d[u.LONETILDE]}${d[u.XRANGEPLAIN]}$`), b("TILDELOOSE", `^${d[u.LONETILDE]}${d[u.XRANGEPLAINLOOSE]}$`), b("LONECARET", "(?:\\^)"), b("CARETTRIM", `(\\s*)${d[u.LONECARET]}\\s+`, !0), e.caretTrimReplace = "$1^", b("CARET", `^${d[u.LONECARET]}${d[u.XRANGEPLAIN]}$`), b("CARETLOOSE", `^${d[u.LONECARET]}${d[u.XRANGEPLAINLOOSE]}$`), b("COMPARATORLOOSE", `^${d[u.GTLT]}\\s*(${d[u.LOOSEPLAIN]})$|^$`), b("COMPARATOR", `^${d[u.GTLT]}\\s*(${d[u.FULLPLAIN]})$|^$`), b("COMPARATORTRIM", `(\\s*)${d[u.GTLT]}\\s*(${d[u.LOOSEPLAIN]}|${d[u.XRANGEPLAIN]})`, !0), e.comparatorTrimReplace = "$1$2$3", b("HYPHENRANGE", `^\\s*(${d[u.XRANGEPLAIN]})\\s+-\\s+(${d[u.XRANGEPLAIN]})\\s*$`), b("HYPHENRANGELOOSE", `^\\s*(${d[u.XRANGEPLAINLOOSE]})\\s+-\\s+(${d[u.XRANGEPLAINLOOSE]})\\s*$`), b("STAR", "(<|>)?=?\\s*\\*"), b("GTE0", "^\\s*>=\\s*0\\.0\\.0\\s*$"), b("GTE0PRE", "^\\s*>=\\s*0\\.0\\.0-0\\s*$");
|
|
1042
|
-
})(
|
|
1043
|
-
var
|
|
1042
|
+
})(at, at.exports);
|
|
1043
|
+
var Se = at.exports;
|
|
1044
1044
|
const jn = Object.freeze({ loose: !0 }), Mn = Object.freeze({}), Un = (t) => t ? typeof t != "object" ? jn : t : Mn;
|
|
1045
1045
|
var ht = Un;
|
|
1046
1046
|
const Lt = /^[0-9]+$/, gr = (t, e) => {
|
|
@@ -1051,7 +1051,7 @@ var br = {
|
|
|
1051
1051
|
compareIdentifiers: gr,
|
|
1052
1052
|
rcompareIdentifiers: Dn
|
|
1053
1053
|
};
|
|
1054
|
-
const
|
|
1054
|
+
const Te = Ge, { MAX_LENGTH: Nt, MAX_SAFE_INTEGER: Le } = De, { safeRe: Ct, t: xt } = Se, Gn = ht, { compareIdentifiers: ge } = br;
|
|
1055
1055
|
let Bn = class ue {
|
|
1056
1056
|
constructor(e, r) {
|
|
1057
1057
|
if (r = Gn(r), e instanceof ue) {
|
|
@@ -1064,20 +1064,20 @@ let Bn = class ue {
|
|
|
1064
1064
|
throw new TypeError(
|
|
1065
1065
|
`version is longer than ${Nt} characters`
|
|
1066
1066
|
);
|
|
1067
|
-
|
|
1067
|
+
Te("SemVer", e, r), this.options = r, this.loose = !!r.loose, this.includePrerelease = !!r.includePrerelease;
|
|
1068
1068
|
const n = e.trim().match(r.loose ? Ct[xt.LOOSE] : Ct[xt.FULL]);
|
|
1069
1069
|
if (!n)
|
|
1070
1070
|
throw new TypeError(`Invalid Version: ${e}`);
|
|
1071
|
-
if (this.raw = e, this.major = +n[1], this.minor = +n[2], this.patch = +n[3], this.major >
|
|
1071
|
+
if (this.raw = e, this.major = +n[1], this.minor = +n[2], this.patch = +n[3], this.major > Le || this.major < 0)
|
|
1072
1072
|
throw new TypeError("Invalid major version");
|
|
1073
|
-
if (this.minor >
|
|
1073
|
+
if (this.minor > Le || this.minor < 0)
|
|
1074
1074
|
throw new TypeError("Invalid minor version");
|
|
1075
|
-
if (this.patch >
|
|
1075
|
+
if (this.patch > Le || this.patch < 0)
|
|
1076
1076
|
throw new TypeError("Invalid patch version");
|
|
1077
1077
|
n[4] ? this.prerelease = n[4].split(".").map((s) => {
|
|
1078
1078
|
if (/^[0-9]+$/.test(s)) {
|
|
1079
1079
|
const o = +s;
|
|
1080
|
-
if (o >= 0 && o <
|
|
1080
|
+
if (o >= 0 && o < Le)
|
|
1081
1081
|
return o;
|
|
1082
1082
|
}
|
|
1083
1083
|
return s;
|
|
@@ -1090,7 +1090,7 @@ let Bn = class ue {
|
|
|
1090
1090
|
return this.version;
|
|
1091
1091
|
}
|
|
1092
1092
|
compare(e) {
|
|
1093
|
-
if (
|
|
1093
|
+
if (Te("SemVer.compare", this.version, this.options, e), !(e instanceof ue)) {
|
|
1094
1094
|
if (typeof e == "string" && e === this.version)
|
|
1095
1095
|
return 0;
|
|
1096
1096
|
e = new ue(e, this.options);
|
|
@@ -1110,7 +1110,7 @@ let Bn = class ue {
|
|
|
1110
1110
|
let r = 0;
|
|
1111
1111
|
do {
|
|
1112
1112
|
const n = this.prerelease[r], s = e.prerelease[r];
|
|
1113
|
-
if (
|
|
1113
|
+
if (Te("prerelease compare", r, n, s), n === void 0 && s === void 0)
|
|
1114
1114
|
return 0;
|
|
1115
1115
|
if (s === void 0)
|
|
1116
1116
|
return 1;
|
|
@@ -1126,7 +1126,7 @@ let Bn = class ue {
|
|
|
1126
1126
|
let r = 0;
|
|
1127
1127
|
do {
|
|
1128
1128
|
const n = this.build[r], s = e.build[r];
|
|
1129
|
-
if (
|
|
1129
|
+
if (Te("build compare", r, n, s), n === void 0 && s === void 0)
|
|
1130
1130
|
return 0;
|
|
1131
1131
|
if (s === void 0)
|
|
1132
1132
|
return 1;
|
|
@@ -1263,7 +1263,7 @@ var ws = Es;
|
|
|
1263
1263
|
const Rs = vt, Is = (t, e) => t.sort((r, n) => Rs(n, r, e));
|
|
1264
1264
|
var As = Is;
|
|
1265
1265
|
const Os = ie, Ss = (t, e, r) => Os(t, e, r) > 0;
|
|
1266
|
-
var
|
|
1266
|
+
var Be = Ss;
|
|
1267
1267
|
const Ps = ie, Ts = (t, e, r) => Ps(t, e, r) < 0;
|
|
1268
1268
|
var gt = Ts;
|
|
1269
1269
|
const Ls = ie, Ns = (t, e, r) => Ls(t, e, r) === 0;
|
|
@@ -1274,7 +1274,7 @@ const ks = ie, Vs = (t, e, r) => ks(t, e, r) >= 0;
|
|
|
1274
1274
|
var bt = Vs;
|
|
1275
1275
|
const Fs = ie, js = (t, e, r) => Fs(t, e, r) <= 0;
|
|
1276
1276
|
var yt = js;
|
|
1277
|
-
const Ms = yr, Us = $r, Ds =
|
|
1277
|
+
const Ms = yr, Us = $r, Ds = Be, Gs = bt, Bs = gt, Ks = yt, qs = (t, e, r, n) => {
|
|
1278
1278
|
switch (e) {
|
|
1279
1279
|
case "===":
|
|
1280
1280
|
return typeof t == "object" && (t = t.version), typeof r == "object" && (r = r.version), t === r;
|
|
@@ -1299,7 +1299,7 @@ const Ms = yr, Us = $r, Ds = De, Gs = bt, Bs = gt, Ks = yt, qs = (t, e, r, n) =>
|
|
|
1299
1299
|
}
|
|
1300
1300
|
};
|
|
1301
1301
|
var _r = qs;
|
|
1302
|
-
const Hs = ne, zs = Ee, { safeRe:
|
|
1302
|
+
const Hs = ne, zs = Ee, { safeRe: Ne, t: Ce } = Se, Xs = (t, e) => {
|
|
1303
1303
|
if (t instanceof Hs)
|
|
1304
1304
|
return t;
|
|
1305
1305
|
if (typeof t == "number" && (t = String(t)), typeof t != "string")
|
|
@@ -1307,9 +1307,9 @@ const Hs = ne, zs = Ee, { safeRe: Te, t: Le } = Oe, Xs = (t, e) => {
|
|
|
1307
1307
|
e = e || {};
|
|
1308
1308
|
let r = null;
|
|
1309
1309
|
if (!e.rtl)
|
|
1310
|
-
r = t.match(e.includePrerelease ?
|
|
1310
|
+
r = t.match(e.includePrerelease ? Ne[Ce.COERCEFULL] : Ne[Ce.COERCE]);
|
|
1311
1311
|
else {
|
|
1312
|
-
const d = e.includePrerelease ?
|
|
1312
|
+
const d = e.includePrerelease ? Ne[Ce.COERCERTLFULL] : Ne[Ce.COERCERTL];
|
|
1313
1313
|
let u;
|
|
1314
1314
|
for (; (u = d.exec(t)) && (!r || r.index + r[0].length !== t.length); )
|
|
1315
1315
|
(!r || u.index + u[0].length !== r.index + r[0].length) && (r = u), d.lastIndex = u.index + u[1].length + u[2].length;
|
|
@@ -1344,10 +1344,10 @@ class Ws {
|
|
|
1344
1344
|
return this;
|
|
1345
1345
|
}
|
|
1346
1346
|
}
|
|
1347
|
-
var Js = Ws,
|
|
1347
|
+
var Js = Ws, Ze, Ut;
|
|
1348
1348
|
function le() {
|
|
1349
1349
|
if (Ut)
|
|
1350
|
-
return
|
|
1350
|
+
return Ze;
|
|
1351
1351
|
Ut = 1;
|
|
1352
1352
|
const t = /\s+/g;
|
|
1353
1353
|
class e {
|
|
@@ -1429,14 +1429,14 @@ function le() {
|
|
|
1429
1429
|
return !1;
|
|
1430
1430
|
}
|
|
1431
1431
|
}
|
|
1432
|
-
|
|
1433
|
-
const r = Js, n = new r(), s = ht, o =
|
|
1432
|
+
Ze = e;
|
|
1433
|
+
const r = Js, n = new r(), s = ht, o = Ke(), i = Ge, f = ne, {
|
|
1434
1434
|
safeRe: d,
|
|
1435
1435
|
t: u,
|
|
1436
1436
|
comparatorTrimReplace: v,
|
|
1437
1437
|
tildeTrimReplace: g,
|
|
1438
1438
|
caretTrimReplace: T
|
|
1439
|
-
} =
|
|
1439
|
+
} = Se, { FLAG_INCLUDE_PRERELEASE: c, FLAG_LOOSE: b } = De, O = (m) => m.value === "<0.0.0-0", y = (m) => m.value === "", k = (m, p) => {
|
|
1440
1440
|
let E = !0;
|
|
1441
1441
|
const A = m.slice();
|
|
1442
1442
|
let C = A.pop();
|
|
@@ -1481,12 +1481,12 @@ function le() {
|
|
|
1481
1481
|
}
|
|
1482
1482
|
return !0;
|
|
1483
1483
|
};
|
|
1484
|
-
return
|
|
1484
|
+
return Ze;
|
|
1485
1485
|
}
|
|
1486
|
-
var
|
|
1487
|
-
function
|
|
1486
|
+
var Qe, Dt;
|
|
1487
|
+
function Ke() {
|
|
1488
1488
|
if (Dt)
|
|
1489
|
-
return
|
|
1489
|
+
return Qe;
|
|
1490
1490
|
Dt = 1;
|
|
1491
1491
|
const t = Symbol("SemVer ANY");
|
|
1492
1492
|
class e {
|
|
@@ -1527,9 +1527,9 @@ function Ge() {
|
|
|
1527
1527
|
return this.operator === "" ? this.value === "" ? !0 : new d(v.value, g).test(this.value) : v.operator === "" ? v.value === "" ? !0 : new d(this.value, g).test(v.semver) : (g = r(g), g.includePrerelease && (this.value === "<0.0.0-0" || v.value === "<0.0.0-0") || !g.includePrerelease && (this.value.startsWith("<0.0.0") || v.value.startsWith("<0.0.0")) ? !1 : !!(this.operator.startsWith(">") && v.operator.startsWith(">") || this.operator.startsWith("<") && v.operator.startsWith("<") || this.semver.version === v.semver.version && this.operator.includes("=") && v.operator.includes("=") || o(this.semver, "<", v.semver, g) && this.operator.startsWith(">") && v.operator.startsWith("<") || o(this.semver, ">", v.semver, g) && this.operator.startsWith("<") && v.operator.startsWith(">")));
|
|
1528
1528
|
}
|
|
1529
1529
|
}
|
|
1530
|
-
|
|
1531
|
-
const r = ht, { safeRe: n, t: s } =
|
|
1532
|
-
return
|
|
1530
|
+
Qe = e;
|
|
1531
|
+
const r = ht, { safeRe: n, t: s } = Se, o = _r, i = Ge, f = ne, d = le();
|
|
1532
|
+
return Qe;
|
|
1533
1533
|
}
|
|
1534
1534
|
const Zs = le(), Qs = (t, e, r) => {
|
|
1535
1535
|
try {
|
|
@@ -1539,7 +1539,7 @@ const Zs = le(), Qs = (t, e, r) => {
|
|
|
1539
1539
|
}
|
|
1540
1540
|
return e.test(t);
|
|
1541
1541
|
};
|
|
1542
|
-
var
|
|
1542
|
+
var qe = Qs;
|
|
1543
1543
|
const ea = le(), ta = (t, e) => new ea(t, e).set.map((r) => r.map((n) => n.value).join(" ").trim().split(" "));
|
|
1544
1544
|
var ra = ta;
|
|
1545
1545
|
const na = ne, sa = le(), aa = (t, e, r) => {
|
|
@@ -1566,17 +1566,17 @@ const ia = ne, la = le(), ua = (t, e, r) => {
|
|
|
1566
1566
|
}), n;
|
|
1567
1567
|
};
|
|
1568
1568
|
var ca = ua;
|
|
1569
|
-
const
|
|
1569
|
+
const et = ne, da = le(), Gt = Be, fa = (t, e) => {
|
|
1570
1570
|
t = new da(t, e);
|
|
1571
|
-
let r = new
|
|
1572
|
-
if (t.test(r) || (r = new
|
|
1571
|
+
let r = new et("0.0.0");
|
|
1572
|
+
if (t.test(r) || (r = new et("0.0.0-0"), t.test(r)))
|
|
1573
1573
|
return r;
|
|
1574
1574
|
r = null;
|
|
1575
1575
|
for (let n = 0; n < t.set.length; ++n) {
|
|
1576
1576
|
const s = t.set[n];
|
|
1577
1577
|
let o = null;
|
|
1578
1578
|
s.forEach((i) => {
|
|
1579
|
-
const f = new
|
|
1579
|
+
const f = new et(i.semver.version);
|
|
1580
1580
|
switch (i.operator) {
|
|
1581
1581
|
case ">":
|
|
1582
1582
|
f.prerelease.length === 0 ? f.patch++ : f.prerelease.push(0), f.raw = f.format();
|
|
@@ -1603,7 +1603,7 @@ const pa = le(), ha = (t, e) => {
|
|
|
1603
1603
|
}
|
|
1604
1604
|
};
|
|
1605
1605
|
var va = ha;
|
|
1606
|
-
const ga = ne, Er =
|
|
1606
|
+
const ga = ne, Er = Ke(), { ANY: ba } = Er, ya = le(), $a = qe, Bt = Be, Kt = gt, _a = yt, Ea = bt, wa = (t, e, r, n) => {
|
|
1607
1607
|
t = new ga(t, n), e = new ya(e, n);
|
|
1608
1608
|
let s, o, i, f, d;
|
|
1609
1609
|
switch (r) {
|
|
@@ -1637,7 +1637,7 @@ const Oa = $t, Sa = (t, e, r) => Oa(t, e, "<", r);
|
|
|
1637
1637
|
var Pa = Sa;
|
|
1638
1638
|
const qt = le(), Ta = (t, e, r) => (t = new qt(t, r), e = new qt(e, r), t.intersects(e, r));
|
|
1639
1639
|
var La = Ta;
|
|
1640
|
-
const Na =
|
|
1640
|
+
const Na = qe, Ca = ie;
|
|
1641
1641
|
var xa = (t, e, r) => {
|
|
1642
1642
|
const n = [];
|
|
1643
1643
|
let s = null, o = null;
|
|
@@ -1651,7 +1651,7 @@ var xa = (t, e, r) => {
|
|
|
1651
1651
|
const d = f.join(" || "), u = typeof e.raw == "string" ? e.raw : String(e);
|
|
1652
1652
|
return d.length < u.length ? d : e;
|
|
1653
1653
|
};
|
|
1654
|
-
const Ht = le(), _t =
|
|
1654
|
+
const Ht = le(), _t = Ke(), { ANY: tt } = _t, Ie = qe, Et = ie, ka = (t, e, r = {}) => {
|
|
1655
1655
|
if (t === e)
|
|
1656
1656
|
return !0;
|
|
1657
1657
|
t = new Ht(t, r), e = new Ht(e, r);
|
|
@@ -1670,12 +1670,12 @@ const Ht = le(), _t = Ge(), { ANY: et } = _t, Ie = Be, Et = ie, ka = (t, e, r =
|
|
|
1670
1670
|
}, Va = [new _t(">=0.0.0-0")], zt = [new _t(">=0.0.0")], Fa = (t, e, r) => {
|
|
1671
1671
|
if (t === e)
|
|
1672
1672
|
return !0;
|
|
1673
|
-
if (t.length === 1 && t[0].semver ===
|
|
1674
|
-
if (e.length === 1 && e[0].semver ===
|
|
1673
|
+
if (t.length === 1 && t[0].semver === tt) {
|
|
1674
|
+
if (e.length === 1 && e[0].semver === tt)
|
|
1675
1675
|
return !0;
|
|
1676
1676
|
r.includePrerelease ? t = Va : t = zt;
|
|
1677
1677
|
}
|
|
1678
|
-
if (e.length === 1 && e[0].semver ===
|
|
1678
|
+
if (e.length === 1 && e[0].semver === tt) {
|
|
1679
1679
|
if (r.includePrerelease)
|
|
1680
1680
|
return !0;
|
|
1681
1681
|
e = zt;
|
|
@@ -1734,7 +1734,7 @@ const Ht = le(), _t = Ge(), { ANY: et } = _t, Ie = Be, Et = ie, ka = (t, e, r =
|
|
|
1734
1734
|
return n < 0 ? t : n > 0 || e.operator === "<" && t.operator === "<=" ? e : t;
|
|
1735
1735
|
};
|
|
1736
1736
|
var ja = ka;
|
|
1737
|
-
const
|
|
1737
|
+
const rt = Se, Wt = De, Ma = ne, Jt = br, Ua = Ee, Da = zn, Ga = Wn, Ba = Zn, Ka = es, qa = ns, Ha = os, za = us, Xa = fs, Ya = ie, Wa = vs, Ja = ys, Za = vt, Qa = ws, eo = As, to = Be, ro = gt, no = yr, so = $r, ao = bt, oo = yt, io = _r, lo = Ys, uo = Ke(), co = le(), fo = qe, mo = ra, po = oa, ho = ca, vo = ma, go = va, bo = $t, yo = Aa, $o = Pa, _o = La, Eo = xa, wo = ja;
|
|
1738
1738
|
var Ro = {
|
|
1739
1739
|
parse: Ua,
|
|
1740
1740
|
valid: Da,
|
|
@@ -1774,16 +1774,16 @@ var Ro = {
|
|
|
1774
1774
|
simplifyRange: Eo,
|
|
1775
1775
|
subset: wo,
|
|
1776
1776
|
SemVer: Ma,
|
|
1777
|
-
re:
|
|
1778
|
-
src:
|
|
1779
|
-
tokens:
|
|
1777
|
+
re: rt.re,
|
|
1778
|
+
src: rt.src,
|
|
1779
|
+
tokens: rt.t,
|
|
1780
1780
|
SEMVER_SPEC_VERSION: Wt.SEMVER_SPEC_VERSION,
|
|
1781
1781
|
RELEASE_TYPES: Wt.RELEASE_TYPES,
|
|
1782
1782
|
compareIdentifiers: Jt.compareIdentifiers,
|
|
1783
1783
|
rcompareIdentifiers: Jt.rcompareIdentifiers
|
|
1784
1784
|
};
|
|
1785
1785
|
const Zt = /* @__PURE__ */ dr(Ro);
|
|
1786
|
-
var
|
|
1786
|
+
var ot = /* @__PURE__ */ ((t) => (t[t.menuV3 = 0] = "menuV3", t[t.applyEffectOnOrder = 1] = "applyEffectOnOrder", t[t.nestedAddon = 2] = "nestedAddon", t[t.feedmeDelivery = 3] = "feedmeDelivery", t[t.taxAndServiceChargeV4 = 4] = "taxAndServiceChargeV4", t[t.itemCombo = 5] = "itemCombo", t[t.itemTakeaway = 6] = "itemTakeaway", t[t.transferInventory = 7] = "transferInventory", t[t.qrEPayment = 8] = "qrEPayment", t[t.deliveryIntegration = 9] = "deliveryIntegration", t[t.rmsPayment = 10] = "rmsPayment", t[t.queue = 11] = "queue", t[t.paymentVoucher = 12] = "paymentVoucher", t))(ot || {});
|
|
1787
1787
|
const wr = {
|
|
1788
1788
|
0: "3.0.0-alpha",
|
|
1789
1789
|
1: "3.5.0-alpha",
|
|
@@ -1824,7 +1824,7 @@ function Qt(t = "no name") {
|
|
|
1824
1824
|
};
|
|
1825
1825
|
}
|
|
1826
1826
|
function er() {
|
|
1827
|
-
return
|
|
1827
|
+
return Oe({
|
|
1828
1828
|
line1: "",
|
|
1829
1829
|
line2: "",
|
|
1830
1830
|
city: "",
|
|
@@ -1834,7 +1834,7 @@ function er() {
|
|
|
1834
1834
|
coordinates: []
|
|
1835
1835
|
});
|
|
1836
1836
|
}
|
|
1837
|
-
function
|
|
1837
|
+
function Oe(t) {
|
|
1838
1838
|
return {
|
|
1839
1839
|
...t,
|
|
1840
1840
|
get formatted() {
|
|
@@ -1855,7 +1855,7 @@ function Ae(t) {
|
|
|
1855
1855
|
};
|
|
1856
1856
|
}
|
|
1857
1857
|
function Oo({ posVersion: t, payoutAccount: e }) {
|
|
1858
|
-
return !!t && Io(
|
|
1858
|
+
return !!t && Io(ot.qrEPayment, t) ? !e || !e.enable ? "Payout account is required" : e.status !== pt.F_PAYOUT_ACCOUNT_STATUS.enum.APPROVED ? "Payout account under review" : !0 : `For POS ${Ao(ot.qrEPayment)} or above`;
|
|
1859
1859
|
}
|
|
1860
1860
|
function Rr(t) {
|
|
1861
1861
|
return {
|
|
@@ -1863,42 +1863,47 @@ function Rr(t) {
|
|
|
1863
1863
|
...t,
|
|
1864
1864
|
profile: {
|
|
1865
1865
|
...t.profile,
|
|
1866
|
-
address:
|
|
1866
|
+
address: Oe(t.profile.address)
|
|
1867
1867
|
},
|
|
1868
1868
|
allowEPayment: Oo(t)
|
|
1869
1869
|
};
|
|
1870
1870
|
}
|
|
1871
|
-
function
|
|
1872
|
-
return Rr(
|
|
1871
|
+
function nt(t) {
|
|
1872
|
+
return Rr(je(t));
|
|
1873
1873
|
}
|
|
1874
1874
|
async function tr(t) {
|
|
1875
|
-
const e =
|
|
1875
|
+
const e = je(t), r = [];
|
|
1876
1876
|
for (const n of e)
|
|
1877
1877
|
r.push(await Rr(n));
|
|
1878
1878
|
return r;
|
|
1879
1879
|
}
|
|
1880
|
-
const
|
|
1880
|
+
const Ae = {
|
|
1881
1881
|
async readRestaurant(t) {
|
|
1882
|
-
return await
|
|
1882
|
+
return await nt(await Pe().get(`/restaurants/${t}`));
|
|
1883
1883
|
},
|
|
1884
1884
|
async readRestaurants() {
|
|
1885
|
-
return await tr(await
|
|
1885
|
+
return await tr(await Xe().get("/restaurants"));
|
|
1886
1886
|
},
|
|
1887
1887
|
async readRestaurantsByBusiness() {
|
|
1888
|
-
return await tr(await
|
|
1888
|
+
return await tr(await Xe().get("/restaurant-list"));
|
|
1889
1889
|
},
|
|
1890
1890
|
async createRestaurant(t) {
|
|
1891
|
-
return await
|
|
1891
|
+
return await nt(await Xe().post("/restaurants", t));
|
|
1892
1892
|
},
|
|
1893
1893
|
async updateRestaurantProfile(t, e) {
|
|
1894
|
-
return await
|
|
1895
|
-
await
|
|
1894
|
+
return await nt(
|
|
1895
|
+
await Pe().put(`/restaurants/${t}/profile`, e)
|
|
1896
1896
|
);
|
|
1897
1897
|
},
|
|
1898
1898
|
async updateRestaurantAttributes(t, e) {
|
|
1899
|
-
return
|
|
1900
|
-
attributes
|
|
1901
|
-
|
|
1899
|
+
return je(
|
|
1900
|
+
await Pe().put(`/restaurants/${t}/attributes`, {
|
|
1901
|
+
attributes: e
|
|
1902
|
+
})
|
|
1903
|
+
);
|
|
1904
|
+
},
|
|
1905
|
+
async createRestaurantFeature(t) {
|
|
1906
|
+
return je(await Pe().post(`/license/restaurant/${t}`));
|
|
1902
1907
|
}
|
|
1903
1908
|
}, So = /* @__PURE__ */ re({
|
|
1904
1909
|
__name: "GoogleMap",
|
|
@@ -1921,7 +1926,7 @@ const Fe = {
|
|
|
1921
1926
|
},
|
|
1922
1927
|
center: {
|
|
1923
1928
|
type: Object,
|
|
1924
|
-
default:
|
|
1929
|
+
default: Me.jb
|
|
1925
1930
|
}
|
|
1926
1931
|
},
|
|
1927
1932
|
emits: ["map-click", "marker-change", "polygon-change", "polygon-right-click"],
|
|
@@ -2040,8 +2045,8 @@ const Fe = {
|
|
|
2040
2045
|
}
|
|
2041
2046
|
},
|
|
2042
2047
|
setup(t) {
|
|
2043
|
-
const { t: e } = ve(), r = t, { emitData: n } = Ur(), s =
|
|
2044
|
-
$e(r.coordinate ? r.coordinate :
|
|
2048
|
+
const { t: e } = ve(), r = t, { emitData: n } = Ur(), s = ct(
|
|
2049
|
+
$e(r.coordinate ? r.coordinate : Me.jb)
|
|
2045
2050
|
);
|
|
2046
2051
|
function o({ position: i }) {
|
|
2047
2052
|
s.lat = i.lat, s.lng = i.lng, n(s);
|
|
@@ -2090,7 +2095,7 @@ const Fe = {
|
|
|
2090
2095
|
},
|
|
2091
2096
|
emits: ["update:model-value"],
|
|
2092
2097
|
setup(t, { emit: e }) {
|
|
2093
|
-
const { t: r } = ve(), n = t, s = e, o =
|
|
2098
|
+
const { t: r } = ve(), n = t, s = e, o = ft(), i = Y(() => {
|
|
2094
2099
|
const g = n.modelValue || [];
|
|
2095
2100
|
return g.length < 2 ? null : Jr(g);
|
|
2096
2101
|
}), f = Y(() => i.value ? `${i.value.lat}, ${i.value.lng}` : "");
|
|
@@ -2101,8 +2106,8 @@ const Fe = {
|
|
|
2101
2106
|
n.address.formatted ? T.geocode({ address: n.address.formatted }, (O) => {
|
|
2102
2107
|
var k;
|
|
2103
2108
|
const y = (k = O == null ? void 0 : O[0]) == null ? void 0 : k.geometry;
|
|
2104
|
-
c = y ? { lng: y.location.lng(), lat: y.location.lat() } :
|
|
2105
|
-
}) : (c =
|
|
2109
|
+
c = y ? { lng: y.location.lng(), lat: y.location.lat() } : Me.jb, b(!0);
|
|
2110
|
+
}) : (c = Me.jb, b(!0));
|
|
2106
2111
|
}), o.open({
|
|
2107
2112
|
contentComponent: Co,
|
|
2108
2113
|
contentComponentProps: {
|
|
@@ -2185,8 +2190,8 @@ const Fe = {
|
|
|
2185
2190
|
},
|
|
2186
2191
|
emits: ["update:model-value"],
|
|
2187
2192
|
setup(t, { emit: e }) {
|
|
2188
|
-
const r = t, n = e, s =
|
|
2189
|
-
|
|
2193
|
+
const r = t, n = e, s = dt(), { t: o } = ve();
|
|
2194
|
+
mt().startOf("week");
|
|
2190
2195
|
const i = Y(
|
|
2191
2196
|
() => [
|
|
2192
2197
|
o("settings.operation_hours.mon"),
|
|
@@ -2405,12 +2410,12 @@ function rr(t) {
|
|
|
2405
2410
|
}
|
|
2406
2411
|
class Wo {
|
|
2407
2412
|
constructor(e, r) {
|
|
2408
|
-
|
|
2409
|
-
|
|
2413
|
+
He(this, "restaurant");
|
|
2414
|
+
He(this, "data");
|
|
2410
2415
|
this.restaurant = e, this.data = r;
|
|
2411
2416
|
}
|
|
2412
2417
|
generateUrl(e) {
|
|
2413
|
-
const r = e === "normal" ?
|
|
2418
|
+
const r = e === "normal" ? mt().toISOString() : "photo";
|
|
2414
2419
|
return `restaurant/${this.restaurant.id}/${e}/${r}`;
|
|
2415
2420
|
}
|
|
2416
2421
|
async manageThumbnail() {
|
|
@@ -2450,18 +2455,18 @@ class Wo {
|
|
|
2450
2455
|
}
|
|
2451
2456
|
async function nr(t, e) {
|
|
2452
2457
|
const r = new Wo(t, e);
|
|
2453
|
-
await r.run(), await
|
|
2458
|
+
await r.run(), await Ae.updateRestaurantProfile(t.id, r.data), await pe().readRestaurants();
|
|
2454
2459
|
}
|
|
2455
2460
|
const Jo = () => {
|
|
2456
2461
|
const t = pe();
|
|
2457
2462
|
return {
|
|
2458
2463
|
async createRestaurant(e, r, n) {
|
|
2459
|
-
const s = await
|
|
2464
|
+
const s = await Ae.createRestaurant({
|
|
2460
2465
|
businessId: e,
|
|
2461
2466
|
features: [],
|
|
2462
2467
|
profile: r
|
|
2463
2468
|
});
|
|
2464
|
-
n && await
|
|
2469
|
+
n && await Ae.updateRestaurantAttributes(s.id, n), await nr(s, r), await Ae.createRestaurantFeature(s.id), await t.readRestaurants();
|
|
2465
2470
|
},
|
|
2466
2471
|
async updateRestaurantProfile(e, r) {
|
|
2467
2472
|
await nr(e, r);
|
|
@@ -2488,15 +2493,15 @@ const Jo = () => {
|
|
|
2488
2493
|
},
|
|
2489
2494
|
setup(t, { expose: e }) {
|
|
2490
2495
|
var P;
|
|
2491
|
-
const r = t, { restaurants: n, currentBusiness: s, restaurantAttributeSettings: o, enabledCountries: i } = pe(), f =
|
|
2496
|
+
const r = t, { restaurants: n, currentBusiness: s, restaurantAttributeSettings: o, enabledCountries: i } = pe(), f = dt(), d = fr(f), { copyTextToClipboard: u } = cr(), v = ae(!1), g = (x, w) => {
|
|
2492
2497
|
v.value = !v.value;
|
|
2493
2498
|
}, T = Y(() => {
|
|
2494
2499
|
var x;
|
|
2495
2500
|
return (x = r.restaurant) == null ? void 0 : x.profile;
|
|
2496
|
-
}), c =
|
|
2501
|
+
}), c = ct(
|
|
2497
2502
|
T.value ? $e(T.value) : {
|
|
2498
2503
|
...Qt(),
|
|
2499
|
-
address:
|
|
2504
|
+
address: Oe(Qt().address),
|
|
2500
2505
|
legalName: "",
|
|
2501
2506
|
sstRegNo: "",
|
|
2502
2507
|
description: "",
|
|
@@ -2541,9 +2546,9 @@ const Jo = () => {
|
|
|
2541
2546
|
r.restaurantId ? y("settings.business.restaurant.form.title.update") : y("settings.business.restaurant.form.title.add")
|
|
2542
2547
|
), V = ae(((P = r.restaurant) == null ? void 0 : P.customAttributes) || {});
|
|
2543
2548
|
async function I(x) {
|
|
2544
|
-
Object.values(V.value).length !== 0 && await
|
|
2549
|
+
Object.values(V.value).length !== 0 && await Ae.updateRestaurantAttributes(x, V.value);
|
|
2545
2550
|
}
|
|
2546
|
-
const M = Y(() =>
|
|
2551
|
+
const M = Y(() => Oe(c.address)), J = Y(() => M.value.formatted);
|
|
2547
2552
|
function Z(x) {
|
|
2548
2553
|
var w;
|
|
2549
2554
|
if (typeof x == "string") {
|
|
@@ -2567,7 +2572,7 @@ const Jo = () => {
|
|
|
2567
2572
|
function l(x) {
|
|
2568
2573
|
c.newPhotos = c.newPhotos || [], c.newPhotos.push(x);
|
|
2569
2574
|
}
|
|
2570
|
-
const h = Jo(), R =
|
|
2575
|
+
const h = Jo(), R = ft();
|
|
2571
2576
|
function S() {
|
|
2572
2577
|
var w, L;
|
|
2573
2578
|
!((w = T.value) != null && w.code) && ((L = c.code) == null ? void 0 : L.trim()) ? R.open({
|
|
@@ -2678,7 +2683,7 @@ const Jo = () => {
|
|
|
2678
2683
|
_(E)("sm") ? ce("", !0) : (F(), te(Tt, {
|
|
2679
2684
|
key: 0,
|
|
2680
2685
|
class: "fixed",
|
|
2681
|
-
style:
|
|
2686
|
+
style: Fe({
|
|
2682
2687
|
top: "85px",
|
|
2683
2688
|
left: _(C).right - 400 + "px"
|
|
2684
2689
|
}),
|
|
@@ -2855,7 +2860,7 @@ const Jo = () => {
|
|
|
2855
2860
|
rules: [
|
|
2856
2861
|
(j) => {
|
|
2857
2862
|
var Q;
|
|
2858
|
-
return !j || ((Q = T.value) == null ? void 0 : Q.url) == c.url || O.value == _(
|
|
2863
|
+
return !j || ((Q = T.value) == null ? void 0 : Q.url) == c.url || O.value == _(pt.F_COUNTRY).enum.MY || _(y)("settings.business.restaurant.form.sections.branding.url.errors.disabled");
|
|
2859
2864
|
},
|
|
2860
2865
|
(j) => !j || _(pr).test(j) || _(y)("settings.business.restaurant.form.sections.branding.url.errors.invalid"),
|
|
2861
2866
|
(j) => !j || !_(hr).includes(j) || _(y)("settings.business.restaurant.form.sections.branding.url.errors.reserved")
|
|
@@ -3356,15 +3361,15 @@ function di(t, e, r) {
|
|
|
3356
3361
|
function fi(t, e) {
|
|
3357
3362
|
t.prototype = Object.create(e.prototype), t.prototype.constructor = t, t.__proto__ = e;
|
|
3358
3363
|
}
|
|
3359
|
-
function
|
|
3360
|
-
return
|
|
3364
|
+
function it(t) {
|
|
3365
|
+
return it = Object.setPrototypeOf ? Object.getPrototypeOf : function(r) {
|
|
3361
3366
|
return r.__proto__ || Object.getPrototypeOf(r);
|
|
3362
|
-
},
|
|
3367
|
+
}, it(t);
|
|
3363
3368
|
}
|
|
3364
|
-
function
|
|
3365
|
-
return
|
|
3369
|
+
function Ue(t, e) {
|
|
3370
|
+
return Ue = Object.setPrototypeOf || function(n, s) {
|
|
3366
3371
|
return n.__proto__ = s, n;
|
|
3367
|
-
},
|
|
3372
|
+
}, Ue(t, e);
|
|
3368
3373
|
}
|
|
3369
3374
|
function mi() {
|
|
3370
3375
|
if (typeof Reflect > "u" || !Reflect.construct || Reflect.construct.sham)
|
|
@@ -3378,20 +3383,20 @@ function mi() {
|
|
|
3378
3383
|
return !1;
|
|
3379
3384
|
}
|
|
3380
3385
|
}
|
|
3381
|
-
function
|
|
3382
|
-
return mi() ?
|
|
3386
|
+
function ke(t, e, r) {
|
|
3387
|
+
return mi() ? ke = Reflect.construct : ke = function(s, o, i) {
|
|
3383
3388
|
var f = [null];
|
|
3384
3389
|
f.push.apply(f, o);
|
|
3385
3390
|
var d = Function.bind.apply(s, f), u = new d();
|
|
3386
|
-
return i &&
|
|
3387
|
-
},
|
|
3391
|
+
return i && Ue(u, i.prototype), u;
|
|
3392
|
+
}, ke.apply(null, arguments);
|
|
3388
3393
|
}
|
|
3389
3394
|
function pi(t) {
|
|
3390
3395
|
return Function.toString.call(t).indexOf("[native code]") !== -1;
|
|
3391
3396
|
}
|
|
3392
|
-
function
|
|
3397
|
+
function lt(t) {
|
|
3393
3398
|
var e = typeof Map == "function" ? /* @__PURE__ */ new Map() : void 0;
|
|
3394
|
-
return
|
|
3399
|
+
return lt = function(n) {
|
|
3395
3400
|
if (n === null || !pi(n))
|
|
3396
3401
|
return n;
|
|
3397
3402
|
if (typeof n != "function")
|
|
@@ -3402,7 +3407,7 @@ function it(t) {
|
|
|
3402
3407
|
e.set(n, s);
|
|
3403
3408
|
}
|
|
3404
3409
|
function s() {
|
|
3405
|
-
return
|
|
3410
|
+
return ke(n, arguments, it(this).constructor);
|
|
3406
3411
|
}
|
|
3407
3412
|
return s.prototype = Object.create(n.prototype, {
|
|
3408
3413
|
constructor: {
|
|
@@ -3411,8 +3416,8 @@ function it(t) {
|
|
|
3411
3416
|
writable: !0,
|
|
3412
3417
|
configurable: !0
|
|
3413
3418
|
}
|
|
3414
|
-
}),
|
|
3415
|
-
},
|
|
3419
|
+
}), Ue(s, n);
|
|
3420
|
+
}, lt(t);
|
|
3416
3421
|
}
|
|
3417
3422
|
function or(t) {
|
|
3418
3423
|
if (t === void 0)
|
|
@@ -3421,9 +3426,9 @@ function or(t) {
|
|
|
3421
3426
|
}
|
|
3422
3427
|
var Ar = function(e) {
|
|
3423
3428
|
return 'Cannot execute "' + e.action + '" on "' + e.subjectName + '"';
|
|
3424
|
-
},
|
|
3429
|
+
}, xe = Ar, hi = /* @__PURE__ */ function(t) {
|
|
3425
3430
|
fi(e, t), e.setDefaultMessage = function(s) {
|
|
3426
|
-
s === null ?
|
|
3431
|
+
s === null ? xe = Ar : xe = typeof s == "string" ? function() {
|
|
3427
3432
|
return s;
|
|
3428
3433
|
} : s;
|
|
3429
3434
|
}, e.from = function(s) {
|
|
@@ -3434,7 +3439,7 @@ var Ar = function(e) {
|
|
|
3434
3439
|
};
|
|
3435
3440
|
function e(n, s) {
|
|
3436
3441
|
var o;
|
|
3437
|
-
return s === void 0 && (s = {}), o = t.call(this, n) || this, o._setMetadata(s), o.message = n ||
|
|
3442
|
+
return s === void 0 && (s = {}), o = t.call(this, n) || this, o._setMetadata(s), o.message = n || xe(or(o)), o._customMessage = null, typeof Error.captureStackTrace == "function" && (o.name = o.constructor.name, Error.captureStackTrace(or(o), o.constructor)), o;
|
|
3438
3443
|
}
|
|
3439
3444
|
var r = e.prototype;
|
|
3440
3445
|
return r.setMessage = function(s) {
|
|
@@ -3451,13 +3456,13 @@ var Ar = function(e) {
|
|
|
3451
3456
|
subjectName: this.ability.subjectName(o)
|
|
3452
3457
|
});
|
|
3453
3458
|
var d = f ? f.reason : "";
|
|
3454
|
-
throw this.message = this._customMessage || d ||
|
|
3459
|
+
throw this.message = this._customMessage || d || xe(this), this;
|
|
3455
3460
|
}
|
|
3456
3461
|
}, r._setMetadata = function(s) {
|
|
3457
3462
|
this.subject = s.subject, this.subjectName = s.subjectName, this.action = s.action, this.field = s.field;
|
|
3458
3463
|
}, e;
|
|
3459
|
-
}(
|
|
3460
|
-
function
|
|
3464
|
+
}(lt(Error));
|
|
3465
|
+
function ut(t) {
|
|
3461
3466
|
return Array.isArray(t) ? t : [t];
|
|
3462
3467
|
}
|
|
3463
3468
|
function vi(t) {
|
|
@@ -3485,7 +3490,7 @@ function Ri(t) {
|
|
|
3485
3490
|
}
|
|
3486
3491
|
var Ii = /* @__PURE__ */ function() {
|
|
3487
3492
|
function t(r) {
|
|
3488
|
-
this.actions = r.actions || r.action, this.subject = r.subject, this.fields = !r.fields || r.fields.length === 0 ? void 0 :
|
|
3493
|
+
this.actions = r.actions || r.action, this.subject = r.subject, this.fields = !r.fields || r.fields.length === 0 ? void 0 : ut(r.fields), Object.defineProperty(this, "_fieldsPattern", {
|
|
3489
3494
|
writable: !0
|
|
3490
3495
|
}), this.inverted = !!r.inverted, this.conditions = r.conditions, Object.defineProperty(this, "_matches", {
|
|
3491
3496
|
writable: !0,
|
|
@@ -3540,7 +3545,7 @@ var Ai = /* @__PURE__ */ function() {
|
|
|
3540
3545
|
return process.env.NODE_ENV !== "production" && o.isAllInverted && n.length && console.warn("[casl]: Ability contains only inverted rules. That means user will not be able to do any actions. This will be changed to Error throw in the next major version"), this[se].indexedRules = o.rules, this[se].hasPerFieldRules = o.hasPerFieldRules, this.emit("updated", s), this;
|
|
3541
3546
|
}, e.buildIndexFor = function(n) {
|
|
3542
3547
|
for (var s = /* @__PURE__ */ Object.create(null), o = this[se].RuleType, i = !0, f = !1, d = 0; d < n.length; d++) {
|
|
3543
|
-
var u = new o(n[d]), v = this.expandActions(u.actions), g =
|
|
3548
|
+
var u = new o(n[d]), v = this.expandActions(u.actions), g = ut(u.subject), T = n.length - d - 1;
|
|
3544
3549
|
i = !!(i && u.inverted), !f && u.fields && (f = !0);
|
|
3545
3550
|
for (var c = 0; c < g.length; c++) {
|
|
3546
3551
|
var b = g[c];
|
|
@@ -3557,7 +3562,7 @@ var Ai = /* @__PURE__ */ function() {
|
|
|
3557
3562
|
rules: s
|
|
3558
3563
|
};
|
|
3559
3564
|
}, e.expandActions = function(n) {
|
|
3560
|
-
for (var s = this[se].aliases, o =
|
|
3565
|
+
for (var s = this[se].aliases, o = ut(n), i = 0; i < o.length; ) {
|
|
3561
3566
|
var f = o[i++];
|
|
3562
3567
|
s.hasOwnProperty(f) && (o = o.concat(s[f]));
|
|
3563
3568
|
}
|
|
@@ -3664,7 +3669,7 @@ const Si = { class: "fm-typo-cn-body-md-400 text-fm-color-typo-secondary xs:flex
|
|
|
3664
3669
|
var p;
|
|
3665
3670
|
const { _id: W, profile: a } = D, { name: l, email: h, phoneNo: R, address: S, sstRegNo: m } = {
|
|
3666
3671
|
...a,
|
|
3667
|
-
address:
|
|
3672
|
+
address: Oe(a.address)
|
|
3668
3673
|
};
|
|
3669
3674
|
return {
|
|
3670
3675
|
id: W,
|
|
@@ -3753,7 +3758,7 @@ const Si = { class: "fm-typo-cn-body-md-400 text-fm-color-typo-secondary xs:flex
|
|
|
3753
3758
|
if (!f.value)
|
|
3754
3759
|
return;
|
|
3755
3760
|
const { name: b, url: O, thumbnail: y } = f.value.doc;
|
|
3756
|
-
|
|
3761
|
+
ze(g, vn, {
|
|
3757
3762
|
businessId: f.value.id,
|
|
3758
3763
|
initialValue: {
|
|
3759
3764
|
name: b,
|
|
@@ -3764,13 +3769,13 @@ const Si = { class: "fm-typo-cn-body-md-400 text-fm-color-typo-secondary xs:flex
|
|
|
3764
3769
|
}
|
|
3765
3770
|
const g = Fr();
|
|
3766
3771
|
function T() {
|
|
3767
|
-
|
|
3772
|
+
ze(g, sr, {
|
|
3768
3773
|
enableFeedmeExpress: !1
|
|
3769
3774
|
});
|
|
3770
3775
|
}
|
|
3771
3776
|
function c(b) {
|
|
3772
3777
|
var O;
|
|
3773
|
-
|
|
3778
|
+
ze(g, sr, {
|
|
3774
3779
|
restaurantId: b.id,
|
|
3775
3780
|
restaurant: b.doc,
|
|
3776
3781
|
enableFeedmeExpress: ((O = b.doc.feedmeDelivery) == null ? void 0 : O.enable) || !1
|
|
@@ -3873,13 +3878,13 @@ const Si = { class: "fm-typo-cn-body-md-400 text-fm-color-typo-secondary xs:flex
|
|
|
3873
3878
|
icon: "edit",
|
|
3874
3879
|
"text-color": "neutral-gray-400",
|
|
3875
3880
|
variant: "tertiary",
|
|
3876
|
-
onClick:
|
|
3881
|
+
onClick: st((h) => c(a), ["stop"])
|
|
3877
3882
|
}, null, 8, ["onClick"]),
|
|
3878
3883
|
N(k, {
|
|
3879
3884
|
icon: "file_copy",
|
|
3880
3885
|
"text-color": "neutral-gray-400",
|
|
3881
3886
|
variant: "tertiary",
|
|
3882
|
-
onClick:
|
|
3887
|
+
onClick: st((h) => _(n)(a.id), ["stop"])
|
|
3883
3888
|
}, null, 8, ["onClick"])
|
|
3884
3889
|
])
|
|
3885
3890
|
]),
|
|
@@ -2,7 +2,7 @@ import { defineComponent as Fr, h as bo, getCurrentInstance as Pi, inject as Mm,
|
|
|
2
2
|
import "@vue/devtools-api";
|
|
3
3
|
import { useI18n as wo, useCoreStore as Do } from "@feedmepos/mf-common";
|
|
4
4
|
import { useDialog as Po, useSnackbar as xo, components as Ym, useBreakpoints as Xm, FmButtonVariant as qm } from "@feedmepos/ui-library";
|
|
5
|
-
import { _ as Jm } from "./app-
|
|
5
|
+
import { _ as Jm } from "./app-59ccea16.js";
|
|
6
6
|
import { c as Ci, _ as Zm, a as Qm } from "./object-8ac0c0d8.js";
|
|
7
7
|
import { u as Fo } from "./index-71e4b8aa.js";
|
|
8
8
|
import { _ as zm, c as jm } from "./FormSection.vue_vue_type_script_setup_true_lang-6aab82f2.js";
|
|
@@ -1349,7 +1349,7 @@ const S = /* @__PURE__ */ g({
|
|
|
1349
1349
|
{
|
|
1350
1350
|
path: "/business",
|
|
1351
1351
|
name: "$settings-my-business",
|
|
1352
|
-
component: i(() => import("./Business-
|
|
1352
|
+
component: i(() => import("./Business-ddbd12c2.js")),
|
|
1353
1353
|
meta: {
|
|
1354
1354
|
i18nKey: "settings.business.title"
|
|
1355
1355
|
}
|
|
@@ -1407,7 +1407,7 @@ const S = /* @__PURE__ */ g({
|
|
|
1407
1407
|
{
|
|
1408
1408
|
path: "/tagging",
|
|
1409
1409
|
name: "$settings-tagging",
|
|
1410
|
-
component: k(i(() => import("./Tagging-
|
|
1410
|
+
component: k(i(() => import("./Tagging-5fcdf95d.js"))),
|
|
1411
1411
|
meta: {
|
|
1412
1412
|
i18nKey: "settings.tagging.title",
|
|
1413
1413
|
validationManifest: {
|
|
@@ -1416,7 +1416,7 @@ const S = /* @__PURE__ */ g({
|
|
|
1416
1416
|
hideNavigation: !0
|
|
1417
1417
|
}
|
|
1418
1418
|
}
|
|
1419
|
-
], X = i(() => import("./App-
|
|
1419
|
+
], X = i(() => import("./App-854f8c7c.js")), Z = {
|
|
1420
1420
|
"en-US": {
|
|
1421
1421
|
...D,
|
|
1422
1422
|
...s["en-US"]
|
package/dist/app.js
CHANGED
|
@@ -12,4 +12,5 @@ export declare const restaurantApi: {
|
|
|
12
12
|
createRestaurant(data: Partial<FdoRestaurant>): Promise<ExtendedRestaurant>;
|
|
13
13
|
updateRestaurantProfile(restaurantId: string, profile: FdoProfile): Promise<ExtendedRestaurant>;
|
|
14
14
|
updateRestaurantAttributes(restaurantId: string, attributes: any): Promise<FdoRestaurant>;
|
|
15
|
+
createRestaurantFeature(restaurantId: string): Promise<boolean>;
|
|
15
16
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@feedmepos/mf-settings",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.58",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist"
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
"lodash": "^4.17.21",
|
|
44
44
|
"vue-country-flag-next": "2.3.2",
|
|
45
45
|
"libphonenumber-js": "^1.11.1",
|
|
46
|
-
"@feedmepos/mf-common": "^1.26.
|
|
46
|
+
"@feedmepos/mf-common": "^1.26.7"
|
|
47
47
|
},
|
|
48
48
|
"devDependencies": {
|
|
49
49
|
"@rushstack/eslint-patch": "^1.3.3",
|