@feedmepos/mf-settings 0.0.61-prod → 0.0.62-prod
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-84371865.js → App-f71c3ea4.js} +1 -1
- package/dist/{Business-f454fc8c.js → Business-4501d17b.js} +61 -60
- package/dist/{Tagging-8fafd00a.js → Tagging-ec17ef77.js} +1 -1
- package/dist/{app-485ab76a.js → app-9c271caa.js} +3 -3
- package/dist/app.js +1 -1
- package/dist/apps/mf-settings/tsconfig.app.tsbuildinfo +1 -1
- package/dist/packages/shared/src/composable/search.d.ts +5 -0
- package/package.json +3 -3
|
@@ -3,7 +3,7 @@ import { useRouter as $t, RouterView as Bt } from "vue-router";
|
|
|
3
3
|
import { useI18n as zt, useCoreStore as Ze, FeedMeAuth as jt } from "@feedmepos/mf-common";
|
|
4
4
|
import { c as qt } from "./index-f3cc5dbf.js";
|
|
5
5
|
import { e as Gt } from "./index-79b36905.js";
|
|
6
|
-
import { r as Jt } from "./app-
|
|
6
|
+
import { r as Jt } from "./app-9c271caa.js";
|
|
7
7
|
import { r as de, g as et, i as Xt, a as Yt, _ 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 ge, k as f, l as nn, m as rn, F as me, q as x, n as sn, o as on, p as an, s as cn, t as ln, u as un, v as dn, w as hn } from "./map-54b71412.js";
|
|
8
8
|
import "@feedmepos/mf-mdm";
|
|
9
9
|
import "@feedmepos/ui-library";
|
|
@@ -14,7 +14,7 @@ import { c as nr } from "./object-27ce045b.js";
|
|
|
14
14
|
import { b as Jd } from "./business-b5512a2c.js";
|
|
15
15
|
import { x as Ei, y as vi, z as Il, u as Ks, A as qs, B as Zd, D as Qd, G as ef, H as tf, I as os, v as er, J as rf, K as sf } from "./map-54b71412.js";
|
|
16
16
|
import { _ as Tl } from "./_plugin-vue_export-helper-dad06003.js";
|
|
17
|
-
import { u as nf } from "./app-
|
|
17
|
+
import { u as nf } from "./app-9c271caa.js";
|
|
18
18
|
import { r as Nt } from "./rules-2bee6632.js";
|
|
19
19
|
import "pinia";
|
|
20
20
|
import "@feedmepos/mf-mdm";
|
|
@@ -965,9 +965,9 @@ const Sf = (e) => (t) => async (r) => {
|
|
|
965
965
|
if (!E)
|
|
966
966
|
throw new Error(`Duplicate middleware name '${St(d, b)}'`);
|
|
967
967
|
for (const I of _) {
|
|
968
|
-
const N = e.findIndex((
|
|
968
|
+
const N = e.findIndex((te) => {
|
|
969
969
|
var le;
|
|
970
|
-
return
|
|
970
|
+
return te.name === I || ((le = te.aliases) == null ? void 0 : le.some((Z) => Z === I));
|
|
971
971
|
});
|
|
972
972
|
if (N === -1)
|
|
973
973
|
continue;
|
|
@@ -992,9 +992,9 @@ const Sf = (e) => (t) => async (r) => {
|
|
|
992
992
|
if (!E)
|
|
993
993
|
throw new Error(`Duplicate middleware name '${St(d, b)}'`);
|
|
994
994
|
for (const I of _) {
|
|
995
|
-
const N = t.findIndex((
|
|
995
|
+
const N = t.findIndex((te) => {
|
|
996
996
|
var le;
|
|
997
|
-
return
|
|
997
|
+
return te.name === I || ((le = te.aliases) == null ? void 0 : le.some((Z) => Z === I));
|
|
998
998
|
});
|
|
999
999
|
if (N === -1)
|
|
1000
1000
|
continue;
|
|
@@ -2396,14 +2396,14 @@ const Ip = {
|
|
|
2396
2396
|
const o = (w = (b = (E = r.endpointV2) == null ? void 0 : E.properties) == null ? void 0 : b.authSchemes) == null ? void 0 : w[0], a = (N = (I = (_ = r.endpointV2) == null ? void 0 : _.properties) == null ? void 0 : I.authSchemes) == null ? void 0 : N[1];
|
|
2397
2397
|
if ((o == null ? void 0 : o.name) === "sigv4a" && a) {
|
|
2398
2398
|
i = await e.signer(n = o);
|
|
2399
|
-
const
|
|
2399
|
+
const te = i;
|
|
2400
2400
|
(() => {
|
|
2401
2401
|
var Z;
|
|
2402
|
-
if (typeof (
|
|
2403
|
-
if (((Z =
|
|
2402
|
+
if (typeof (te == null ? void 0 : te.getSigv4aSigner) == "function") {
|
|
2403
|
+
if (((Z = te == null ? void 0 : te.signerOptions) == null ? void 0 : Z.runtime) !== "node")
|
|
2404
2404
|
return !1;
|
|
2405
2405
|
try {
|
|
2406
|
-
return
|
|
2406
|
+
return te.getSigv4aSigner(), !0;
|
|
2407
2407
|
} catch {
|
|
2408
2408
|
}
|
|
2409
2409
|
}
|
|
@@ -2425,9 +2425,9 @@ const Ip = {
|
|
|
2425
2425
|
const m = await t({
|
|
2426
2426
|
...s,
|
|
2427
2427
|
request: u
|
|
2428
|
-
}).catch((
|
|
2429
|
-
const le =
|
|
2430
|
-
throw le && (e.systemClockOffset = oa(le, e.systemClockOffset)),
|
|
2428
|
+
}).catch((te) => {
|
|
2429
|
+
const le = te.ServerTime ?? aa(te.$response);
|
|
2430
|
+
throw le && (e.systemClockOffset = oa(le, e.systemClockOffset)), te;
|
|
2431
2431
|
}), d = aa(m.response);
|
|
2432
2432
|
return d && (e.systemClockOffset = oa(d, e.systemClockOffset)), m;
|
|
2433
2433
|
}, aa = (e) => {
|
|
@@ -7934,12 +7934,12 @@ class ho {
|
|
|
7934
7934
|
];
|
|
7935
7935
|
return r && w.push(new Promise((I, N) => {
|
|
7936
7936
|
const F = () => {
|
|
7937
|
-
const
|
|
7938
|
-
|
|
7937
|
+
const te = new Error("Request aborted");
|
|
7938
|
+
te.name = "AbortError", N(te);
|
|
7939
7939
|
};
|
|
7940
7940
|
if (typeof r.addEventListener == "function") {
|
|
7941
|
-
const
|
|
7942
|
-
|
|
7941
|
+
const te = r;
|
|
7942
|
+
te.addEventListener("abort", F, { once: !0 }), E = () => te.removeEventListener("abort", F);
|
|
7943
7943
|
} else
|
|
7944
7944
|
r.onabort = F;
|
|
7945
7945
|
})), Promise.race(w).finally(E);
|
|
@@ -9585,7 +9585,7 @@ function pt() {
|
|
|
9585
9585
|
for (; B && D.length; )
|
|
9586
9586
|
B = D.every((V) => q.intersects(V, x)), q = D.pop();
|
|
9587
9587
|
return B;
|
|
9588
|
-
}, I = (v, x) => (o("comp", v, x), v = le(v, x), o("caret", v), v = F(v, x), o("tildes", v), v = Ae(v, x), o("xrange", v), v = y(v, x), o("stars", v), v), N = (v) => !v || v.toLowerCase() === "x" || v === "*", F = (v, x) => v.trim().split(/\s+/).map((B) =>
|
|
9588
|
+
}, I = (v, x) => (o("comp", v, x), v = le(v, x), o("caret", v), v = F(v, x), o("tildes", v), v = Ae(v, x), o("xrange", v), v = y(v, x), o("stars", v), v), N = (v) => !v || v.toLowerCase() === "x" || v === "*", F = (v, x) => v.trim().split(/\s+/).map((B) => te(B, x)).join(" "), te = (v, x) => {
|
|
9589
9589
|
const B = x.loose ? c[u.TILDELOOSE] : c[u.TILDE];
|
|
9590
9590
|
return v.replace(B, (D, q, V, W, O) => {
|
|
9591
9591
|
o("tilde", v, D, q, V, W, O);
|
|
@@ -9605,10 +9605,10 @@ function pt() {
|
|
|
9605
9605
|
const B = x.loose ? c[u.XRANGELOOSE] : c[u.XRANGE];
|
|
9606
9606
|
return v.replace(B, (D, q, V, W, O, H) => {
|
|
9607
9607
|
o("xRange", v, D, q, V, W, O, H);
|
|
9608
|
-
const se = N(V), we = se || N(W), me = we || N(O),
|
|
9609
|
-
return q === "=" &&
|
|
9608
|
+
const se = N(V), we = se || N(W), me = we || N(O), ee = me;
|
|
9609
|
+
return q === "=" && ee && (q = ""), H = x.includePrerelease ? "-0" : "", se ? q === ">" || q === "<" ? D = "<0.0.0-0" : D = "*" : q && ee ? (we && (W = 0), O = 0, q === ">" ? (q = ">=", we ? (V = +V + 1, W = 0, O = 0) : (W = +W + 1, O = 0)) : q === "<=" && (q = "<", we ? V = +V + 1 : W = +W + 1), q === "<" && (H = "-0"), D = `${q + V}.${W}.${O}${H}`) : we ? D = `>=${V}.0.0${H} <${+V + 1}.0.0-0` : me && (D = `>=${V}.${W}.0${H} <${V}.${+W + 1}.0-0`), o("xRange return", D), D;
|
|
9610
9610
|
});
|
|
9611
|
-
}, y = (v, x) => (o("replaceStars", v, x), v.trim().replace(c[u.STAR], "")), R = (v, x) => (o("replaceGTE0", v, x), v.trim().replace(c[x.includePrerelease ? u.GTE0PRE : u.GTE0], "")), M = (v) => (x, B, D, q, V, W, O, H, se, we, me,
|
|
9611
|
+
}, y = (v, x) => (o("replaceStars", v, x), v.trim().replace(c[u.STAR], "")), R = (v, x) => (o("replaceGTE0", v, x), v.trim().replace(c[x.includePrerelease ? u.GTE0PRE : u.GTE0], "")), M = (v) => (x, B, D, q, V, W, O, H, se, we, me, ee) => (N(D) ? B = "" : N(q) ? B = `>=${D}.0.0${v ? "-0" : ""}` : N(V) ? B = `>=${D}.${q}.0${v ? "-0" : ""}` : W ? B = `>=${B}` : B = `>=${B}${v ? "-0" : ""}`, N(se) ? H = "" : N(we) ? H = `<${+se + 1}.0.0-0` : N(me) ? H = `<${se}.${+we + 1}.0-0` : ee ? H = `<=${se}.${we}.${me}-${ee}` : v ? H = `<${se}.${we}.${+me + 1}-0` : H = `<=${H}`, `${B} ${H}`.trim()), z = (v, x, B) => {
|
|
9612
9612
|
for (let D = 0; D < v.length; D++)
|
|
9613
9613
|
if (!v[D].test(x))
|
|
9614
9614
|
return !1;
|
|
@@ -10133,7 +10133,7 @@ const Ar = {
|
|
|
10133
10133
|
function F(p, y) {
|
|
10134
10134
|
y.vertex !== void 0 ? N(p, y.vertex) : n("polygon-right-click", p);
|
|
10135
10135
|
}
|
|
10136
|
-
function
|
|
10136
|
+
function te(p) {
|
|
10137
10137
|
le(null), E.value = p.map((y, R) => {
|
|
10138
10138
|
const M = er(), z = new M.maps.Polygon({
|
|
10139
10139
|
paths: y.paths,
|
|
@@ -10164,8 +10164,8 @@ const Ar = {
|
|
|
10164
10164
|
scrollwheel: !0
|
|
10165
10165
|
}), Z(o.value, "click", (y) => n("map-click", c(y)));
|
|
10166
10166
|
}
|
|
10167
|
-
return $o(() => s.markers, m, { deep: !0 }), $o(() => s.polygons,
|
|
10168
|
-
!i.value || !er() || (Ae(), m(s.markers),
|
|
10167
|
+
return $o(() => s.markers, m, { deep: !0 }), $o(() => s.polygons, te, { deep: !0 }), Dd(() => {
|
|
10168
|
+
!i.value || !er() || (Ae(), m(s.markers), te(s.polygons));
|
|
10169
10169
|
}), Ld(() => {
|
|
10170
10170
|
a.forEach((p) => p.remove());
|
|
10171
10171
|
}), (p, y) => (J(), ae("div", {
|
|
@@ -10393,7 +10393,7 @@ const Ar = {
|
|
|
10393
10393
|
s("update:model-value", N);
|
|
10394
10394
|
}
|
|
10395
10395
|
return (_, I) => {
|
|
10396
|
-
const N = ue("FmCheckbox"), F = ue("FmTimePicker"),
|
|
10396
|
+
const N = ue("FmCheckbox"), F = ue("FmTimePicker"), te = ue("FmButton"), le = ue("FmField");
|
|
10397
10397
|
return J(), ae("div", null, [
|
|
10398
10398
|
(J(!0), ae(ot, null, Gt(o.value, (Z) => (J(), ae("div", {
|
|
10399
10399
|
key: Z.value,
|
|
@@ -10424,12 +10424,12 @@ const Ar = {
|
|
|
10424
10424
|
"model-value": Ae.end,
|
|
10425
10425
|
"onUpdate:modelValue": (y) => b(Z.value, p, y)
|
|
10426
10426
|
}, null, 8, ["model-value", "onUpdate:modelValue"]),
|
|
10427
|
-
K(
|
|
10427
|
+
K(te, {
|
|
10428
10428
|
icon: "close",
|
|
10429
10429
|
variant: "tertiary",
|
|
10430
10430
|
onClick: (y) => d(Z.value, p)
|
|
10431
10431
|
}, null, 8, ["onClick"]),
|
|
10432
|
-
K(
|
|
10432
|
+
K(te, {
|
|
10433
10433
|
class: He(p === 0 ? "" : "invisible"),
|
|
10434
10434
|
icon: "add",
|
|
10435
10435
|
color: "primary",
|
|
@@ -10690,7 +10690,7 @@ const pA = () => {
|
|
|
10690
10690
|
async function N(W) {
|
|
10691
10691
|
Object.values(I.value).length !== 0 && await Ar.updateRestaurantAttributes(W, I.value);
|
|
10692
10692
|
}
|
|
10693
|
-
const F = xe(() => kr(d.address)),
|
|
10693
|
+
const F = xe(() => kr(d.address)), te = xe(() => F.value.formatted);
|
|
10694
10694
|
function le(W) {
|
|
10695
10695
|
var O;
|
|
10696
10696
|
if (typeof W == "string") {
|
|
@@ -10785,7 +10785,7 @@ const pA = () => {
|
|
|
10785
10785
|
},
|
|
10786
10786
|
{
|
|
10787
10787
|
name: w("settings.business.restaurant.form.summary.address"),
|
|
10788
|
-
value:
|
|
10788
|
+
value: te.value
|
|
10789
10789
|
}
|
|
10790
10790
|
]
|
|
10791
10791
|
})), { isAtMost: B } = Sl();
|
|
@@ -10805,7 +10805,7 @@ const pA = () => {
|
|
|
10805
10805
|
{ label: P(w)("settings.business.restaurant.actions.discard"), click: () => l.value = !1 }
|
|
10806
10806
|
],
|
|
10807
10807
|
onOnPrimary: z,
|
|
10808
|
-
onOnCancel: O[17] || (O[17] = (
|
|
10808
|
+
onOnCancel: O[17] || (O[17] = (ee) => l.value = !1)
|
|
10809
10809
|
}, {
|
|
10810
10810
|
"append-title": ce(() => [
|
|
10811
10811
|
P(B)("sm") ? (J(), Ge(qc, {
|
|
@@ -10838,7 +10838,7 @@ const pA = () => {
|
|
|
10838
10838
|
title: P(w)("settings.business.restaurant.form.sections.basic_info.title")
|
|
10839
10839
|
}, {
|
|
10840
10840
|
default: ce(() => {
|
|
10841
|
-
var
|
|
10841
|
+
var ee, Ue;
|
|
10842
10842
|
return [
|
|
10843
10843
|
$("div", yA, [
|
|
10844
10844
|
$("div", null, [
|
|
@@ -10848,7 +10848,7 @@ const pA = () => {
|
|
|
10848
10848
|
"onUpdate:modelValue": O[0] || (O[0] = (ge) => d.code = ge),
|
|
10849
10849
|
"label-mark": "optional",
|
|
10850
10850
|
"helper-text": P(w)("settings.business.restaurant.form.sections.basic_info.code.helper"),
|
|
10851
|
-
disabled: ((
|
|
10851
|
+
disabled: ((ee = m.value) == null ? void 0 : ee.code) !== void 0 && ((Ue = m.value) == null ? void 0 : Ue.code) !== null
|
|
10852
10852
|
}, null, 8, ["label", "modelValue", "helper-text", "disabled"])
|
|
10853
10853
|
]),
|
|
10854
10854
|
$("div", null, [
|
|
@@ -10894,8 +10894,9 @@ const pA = () => {
|
|
|
10894
10894
|
modelValue: d.phoneNo,
|
|
10895
10895
|
"onUpdate:modelValue": O[5] || (O[5] = (ge) => d.phoneNo = ge),
|
|
10896
10896
|
"label-mark": "optional",
|
|
10897
|
-
"extra-country-codes": P(o)
|
|
10898
|
-
|
|
10897
|
+
"extra-country-codes": P(o),
|
|
10898
|
+
"default-country": b.value
|
|
10899
|
+
}, null, 8, ["label", "modelValue", "extra-country-codes", "default-country"])
|
|
10899
10900
|
]),
|
|
10900
10901
|
$("div", EA, [
|
|
10901
10902
|
K(H, {
|
|
@@ -10932,7 +10933,7 @@ const pA = () => {
|
|
|
10932
10933
|
K(P(Vd), {
|
|
10933
10934
|
entity: "restaurant",
|
|
10934
10935
|
modelValue: I.value,
|
|
10935
|
-
"onUpdate:modelValue": O[8] || (O[8] = (
|
|
10936
|
+
"onUpdate:modelValue": O[8] || (O[8] = (ee) => I.value = ee)
|
|
10936
10937
|
}, null, 8, ["modelValue"])
|
|
10937
10938
|
]),
|
|
10938
10939
|
_: 1
|
|
@@ -10946,12 +10947,12 @@ const pA = () => {
|
|
|
10946
10947
|
$("div", vA, [
|
|
10947
10948
|
K(fA, {
|
|
10948
10949
|
modelValue: d.address,
|
|
10949
|
-
"onUpdate:modelValue": O[9] || (O[9] = (
|
|
10950
|
+
"onUpdate:modelValue": O[9] || (O[9] = (ee) => d.address = ee)
|
|
10950
10951
|
}, null, 8, ["modelValue"]),
|
|
10951
10952
|
K(Jx, {
|
|
10952
10953
|
address: F.value,
|
|
10953
10954
|
modelValue: d.address.coordinates,
|
|
10954
|
-
"onUpdate:modelValue": O[10] || (O[10] = (
|
|
10955
|
+
"onUpdate:modelValue": O[10] || (O[10] = (ee) => d.address.coordinates = ee)
|
|
10955
10956
|
}, null, 8, ["address", "modelValue"])
|
|
10956
10957
|
])
|
|
10957
10958
|
]),
|
|
@@ -10972,11 +10973,11 @@ const pA = () => {
|
|
|
10972
10973
|
class: "w-[320px]",
|
|
10973
10974
|
"exclude-restaurants": e.restaurantId ? [e.restaurantId] : [],
|
|
10974
10975
|
"model-value": "",
|
|
10975
|
-
"onUpdate:modelValue": O[11] || (O[11] = (
|
|
10976
|
+
"onUpdate:modelValue": O[11] || (O[11] = (ee) => ee && le(ee))
|
|
10976
10977
|
}, null, 8, ["exclude-restaurants"]),
|
|
10977
10978
|
K(tA, {
|
|
10978
10979
|
modelValue: d.operatingHours,
|
|
10979
|
-
"onUpdate:modelValue": O[12] || (O[12] = (
|
|
10980
|
+
"onUpdate:modelValue": O[12] || (O[12] = (ee) => d.operatingHours = ee)
|
|
10980
10981
|
}, null, 8, ["modelValue"])
|
|
10981
10982
|
])
|
|
10982
10983
|
])
|
|
@@ -10992,20 +10993,20 @@ const pA = () => {
|
|
|
10992
10993
|
K(we, {
|
|
10993
10994
|
label: P(w)("settings.business.restaurant.form.sections.branding.description"),
|
|
10994
10995
|
"model-value": d.description ?? "",
|
|
10995
|
-
"onUpdate:modelValue": O[13] || (O[13] = (
|
|
10996
|
+
"onUpdate:modelValue": O[13] || (O[13] = (ee) => d.description = ee)
|
|
10996
10997
|
}, null, 8, ["label", "model-value"]),
|
|
10997
10998
|
K(H, {
|
|
10998
10999
|
label: P(w)("settings.business.restaurant.form.sections.branding.url.label"),
|
|
10999
11000
|
placeholder: e.restaurantId,
|
|
11000
11001
|
"model-value": d.url,
|
|
11001
|
-
"onUpdate:modelValue": O[14] || (O[14] = (
|
|
11002
|
+
"onUpdate:modelValue": O[14] || (O[14] = (ee) => d.url = ee),
|
|
11002
11003
|
rules: [
|
|
11003
|
-
(
|
|
11004
|
+
(ee) => {
|
|
11004
11005
|
var Ue;
|
|
11005
|
-
return !
|
|
11006
|
+
return !ee || ((Ue = m.value) == null ? void 0 : Ue.url) == d.url || b.value == P(wi.F_COUNTRY).enum.MY || P(w)("settings.business.restaurant.form.sections.branding.url.errors.disabled");
|
|
11006
11007
|
},
|
|
11007
|
-
(
|
|
11008
|
-
(
|
|
11008
|
+
(ee) => !ee || P(Nl).test(ee) || P(w)("settings.business.restaurant.form.sections.branding.url.errors.invalid"),
|
|
11009
|
+
(ee) => !ee || !P(kl).includes(ee) || P(w)("settings.business.restaurant.form.sections.branding.url.errors.reserved")
|
|
11009
11010
|
]
|
|
11010
11011
|
}, {
|
|
11011
11012
|
prepend: ce(() => [
|
|
@@ -11026,7 +11027,7 @@ const pA = () => {
|
|
|
11026
11027
|
label: P(w)("settings.business.form.cover_photo.label"),
|
|
11027
11028
|
"previous-url": d.coverPhoto,
|
|
11028
11029
|
modelValue: d.newCoverPhoto,
|
|
11029
|
-
"onUpdate:modelValue": O[15] || (O[15] = (
|
|
11030
|
+
"onUpdate:modelValue": O[15] || (O[15] = (ee) => d.newCoverPhoto = ee),
|
|
11030
11031
|
"onReset:modelValue": p
|
|
11031
11032
|
}, null, 8, ["label", "previous-url", "modelValue"])
|
|
11032
11033
|
]),
|
|
@@ -11034,16 +11035,16 @@ const pA = () => {
|
|
|
11034
11035
|
K(Gc, {
|
|
11035
11036
|
label: P(w)("settings.business.restaurant.form.sections.branding.carousel_photos.label")
|
|
11036
11037
|
}, null, 8, ["label"]),
|
|
11037
|
-
(J(!0), ae(ot, null, Gt(d.photos || [], (
|
|
11038
|
+
(J(!0), ae(ot, null, Gt(d.photos || [], (ee, Ue) => (J(), Ge(tr, {
|
|
11038
11039
|
key: Ue,
|
|
11039
|
-
"previous-url":
|
|
11040
|
+
"previous-url": ee,
|
|
11040
11041
|
"model-value": void 0,
|
|
11041
11042
|
"onReset:modelValue": (ge) => {
|
|
11042
11043
|
var ur;
|
|
11043
11044
|
return (ur = d.photos) == null ? void 0 : ur.splice(Ue, 1);
|
|
11044
11045
|
}
|
|
11045
11046
|
}, null, 8, ["previous-url", "onReset:modelValue"]))), 128)),
|
|
11046
|
-
(J(!0), ae(ot, null, Gt(d.newPhotos || [], (
|
|
11047
|
+
(J(!0), ae(ot, null, Gt(d.newPhotos || [], (ee, Ue) => {
|
|
11047
11048
|
var ge;
|
|
11048
11049
|
return J(), Ge(tr, {
|
|
11049
11050
|
key: Ue,
|
|
@@ -11058,7 +11059,7 @@ const pA = () => {
|
|
|
11058
11059
|
K(tr, {
|
|
11059
11060
|
"model-value": void 0,
|
|
11060
11061
|
"previous-url": void 0,
|
|
11061
|
-
"onUpdate:modelValue": O[16] || (O[16] = (
|
|
11062
|
+
"onUpdate:modelValue": O[16] || (O[16] = (ee) => y(ee))
|
|
11062
11063
|
})
|
|
11063
11064
|
])
|
|
11064
11065
|
])
|
|
@@ -11305,7 +11306,7 @@ var Nd = { exports: {} };
|
|
|
11305
11306
|
return !0;
|
|
11306
11307
|
}
|
|
11307
11308
|
for (B = p.length; B--; ) {
|
|
11308
|
-
var x = d(
|
|
11309
|
+
var x = d(te(l(p, B), R), v, B, p);
|
|
11309
11310
|
if (x && String(x) !== "[object Object]" && String(v) !== "[object Object]")
|
|
11310
11311
|
return !0;
|
|
11311
11312
|
}
|
|
@@ -11379,15 +11380,15 @@ var Nd = { exports: {} };
|
|
|
11379
11380
|
}
|
|
11380
11381
|
function _(p, y) {
|
|
11381
11382
|
var R = p.keyPath, M = p.child, z = p.query, v = [];
|
|
11382
|
-
if (function O(H, se, we, me,
|
|
11383
|
+
if (function O(H, se, we, me, ee) {
|
|
11383
11384
|
if (we === se.length || H == null)
|
|
11384
|
-
return void
|
|
11385
|
+
return void ee.push([H, se[we - 1], me]);
|
|
11385
11386
|
var Ue = l(se, we);
|
|
11386
11387
|
if (a(H) && isNaN(Number(Ue)))
|
|
11387
11388
|
for (var ge = 0, ur = H.length; ge < ur; ge++)
|
|
11388
|
-
O(l(H, ge), se, we, H,
|
|
11389
|
+
O(l(H, ge), se, we, H, ee);
|
|
11389
11390
|
else
|
|
11390
|
-
O(l(H, Ue), se, we + 1, H,
|
|
11391
|
+
O(l(H, Ue), se, we + 1, H, ee);
|
|
11391
11392
|
}(y, R, 0, y, v), v.length === 1) {
|
|
11392
11393
|
var x = v[0];
|
|
11393
11394
|
return d(M, x[0], x[1], x[2]);
|
|
@@ -11457,7 +11458,7 @@ var Nd = { exports: {} };
|
|
|
11457
11458
|
}
|
|
11458
11459
|
return p === y;
|
|
11459
11460
|
}
|
|
11460
|
-
function
|
|
11461
|
+
function te(p, y) {
|
|
11461
11462
|
var R = N(y)(p);
|
|
11462
11463
|
return y && y.select && (R = {
|
|
11463
11464
|
options: R,
|
|
@@ -11467,7 +11468,7 @@ var Nd = { exports: {} };
|
|
|
11467
11468
|
}), R;
|
|
11468
11469
|
}
|
|
11469
11470
|
function le(p, y) {
|
|
11470
|
-
var R =
|
|
11471
|
+
var R = te(p, y = Object.assign({ compare: Z, comparable: Ae }, y));
|
|
11471
11472
|
return function(M, z, v) {
|
|
11472
11473
|
return d(R, M, z, v);
|
|
11473
11474
|
};
|
|
@@ -11807,7 +11808,7 @@ const GA = { class: "fm-typo-cn-body-md-400 text-fm-color-typo-secondary xs:flex
|
|
|
11807
11808
|
const { currentBusiness: E, restaurants: b } = Ot(), w = E.value;
|
|
11808
11809
|
if (!w)
|
|
11809
11810
|
return null;
|
|
11810
|
-
const { id: _, name: I, thumbnail: N, url: F } = w,
|
|
11811
|
+
const { id: _, name: I, thumbnail: N, url: F } = w, te = b.value.filter((Z) => Z.managable).map((Z) => {
|
|
11811
11812
|
var x;
|
|
11812
11813
|
const { _id: Ae, profile: p } = Z, { name: y, email: R, phoneNo: M, address: z, sstRegNo: v } = {
|
|
11813
11814
|
...p,
|
|
@@ -11831,7 +11832,7 @@ const GA = { class: "fm-typo-cn-body-md-400 text-fm-color-typo-secondary xs:flex
|
|
|
11831
11832
|
url: `https://feedme.cc/${F || _}`,
|
|
11832
11833
|
doc: w,
|
|
11833
11834
|
canCreateRestaurant: HA(w, b.value),
|
|
11834
|
-
restaurants:
|
|
11835
|
+
restaurants: te.filter(
|
|
11835
11836
|
({ code: Z, name: Ae, address: p, phone: y, email: R }) => r([Z, Ae, p, y, R])
|
|
11836
11837
|
)
|
|
11837
11838
|
};
|
|
@@ -11925,7 +11926,7 @@ const GA = { class: "fm-typo-cn-body-md-400 text-fm-color-typo-secondary xs:flex
|
|
|
11925
11926
|
}
|
|
11926
11927
|
return (E, b) => {
|
|
11927
11928
|
var le;
|
|
11928
|
-
const w = ue("FmSpacer"), _ = ue("FmButton"), I = ue("FmTooltip"), N = ue("FmSearch"), F = ue("FmTable"),
|
|
11929
|
+
const w = ue("FmSpacer"), _ = ue("FmButton"), I = ue("FmTooltip"), N = ue("FmSearch"), F = ue("FmTable"), te = ue("FmCircularProgress");
|
|
11929
11930
|
return J(), Ge(Wd, {
|
|
11930
11931
|
heading: ((le = a.value) == null ? void 0 : le.name) || "--"
|
|
11931
11932
|
}, {
|
|
@@ -12035,7 +12036,7 @@ const GA = { class: "fm-typo-cn-body-md-400 text-fm-color-typo-secondary xs:flex
|
|
|
12035
12036
|
$("div", oS, oe(P(o)("settings.business.restaurant.tax.title")) + ": " + oe((y = p.doc.profile.sstRegNo) != null && y.length ? p.doc.profile.sstRegNo : P(o)("settings.business.restaurant.tax.not_set")), 1)
|
|
12036
12037
|
], 8, eS);
|
|
12037
12038
|
}), 128)) : (J(), ae("div", QA, [
|
|
12038
|
-
K(
|
|
12039
|
+
K(te, { size: "lg" })
|
|
12039
12040
|
]))
|
|
12040
12041
|
])
|
|
12041
12042
|
], 64)) : (J(), ae("div", YA, [
|
|
@@ -2,7 +2,7 @@ import { defineComponent as Mr, h as xl, getCurrentInstance as Mi, inject as Bm,
|
|
|
2
2
|
import "@vue/devtools-api";
|
|
3
3
|
import { useI18n as Fl, useCoreStore as Ml } from "@feedmepos/mf-common";
|
|
4
4
|
import { useDialog as Ul, useSnackbar as kl, components as Qm, useBreakpoints as zm, FmButtonVariant as jm } from "@feedmepos/ui-library";
|
|
5
|
-
import { _ as eE } from "./app-
|
|
5
|
+
import { _ as eE } from "./app-9c271caa.js";
|
|
6
6
|
import { _ as nE, c as rl } from "./createForm-d3b97d2e.js";
|
|
7
7
|
import { u as Wl } from "./index-f1179ebc.js";
|
|
8
8
|
import { _ as il, c as tE } from "./FormSection.vue_vue_type_script_setup_true_lang-6aab82f2.js";
|
|
@@ -1673,7 +1673,7 @@ const N = /* @__PURE__ */ p({
|
|
|
1673
1673
|
{
|
|
1674
1674
|
path: "/business",
|
|
1675
1675
|
name: "$settings-my-business",
|
|
1676
|
-
component: t(() => import("./Business-
|
|
1676
|
+
component: t(() => import("./Business-4501d17b.js")),
|
|
1677
1677
|
meta: {
|
|
1678
1678
|
i18nKey: "settings.business.title"
|
|
1679
1679
|
}
|
|
@@ -1731,7 +1731,7 @@ const N = /* @__PURE__ */ p({
|
|
|
1731
1731
|
{
|
|
1732
1732
|
path: "/tagging",
|
|
1733
1733
|
name: "$settings-tagging",
|
|
1734
|
-
component: A(t(() => import("./Tagging-
|
|
1734
|
+
component: A(t(() => import("./Tagging-ec17ef77.js"))),
|
|
1735
1735
|
meta: {
|
|
1736
1736
|
i18nKey: "settings.tagging.title",
|
|
1737
1737
|
validationManifest: {
|
|
@@ -1749,7 +1749,7 @@ const N = /* @__PURE__ */ p({
|
|
|
1749
1749
|
hideNavigation: !0
|
|
1750
1750
|
}
|
|
1751
1751
|
}
|
|
1752
|
-
], X = t(() => import("./App-
|
|
1752
|
+
], X = t(() => import("./App-f71c3ea4.js")), Z = {
|
|
1753
1753
|
"en-US": {
|
|
1754
1754
|
...F,
|
|
1755
1755
|
...s["en-US"]
|
package/dist/app.js
CHANGED