@feedmepos/mf-settings 0.0.68 → 0.0.69
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.
|
@@ -3,7 +3,7 @@ import { useRouter as zn, RouterView as Gn } from "vue-router";
|
|
|
3
3
|
import { useI18n as Ln, useCoreStore as Qr, FeedMeAuth as Hn } from "@feedmepos/mf-common";
|
|
4
4
|
import { c as ur } from "./_commonjs-dynamic-modules-bed80856.js";
|
|
5
5
|
import { c as Oe, e as Jr } from "./index-b9ef9a01.js";
|
|
6
|
-
import { r as lr } from "./app-
|
|
6
|
+
import { r as lr } from "./app-bfaa4ee9.js";
|
|
7
7
|
import { r as hr, g as Yr, i as Un, a as Vn, _ as Ar, C as Ir, b as Kn, S as Et, c as dt, E as $r, d as Wn, e as Xr, f as Qn, h as Jn, L as Zr, j as we, k as Yn, l as Xn, F as gr, q as jt, m as Zn, n as ea, o as ta, p as ra, s as na, t as aa, u as ia, v as sa } from "./map-695afd6f.js";
|
|
8
8
|
import "@feedmepos/mf-mdm";
|
|
9
9
|
import "@feedmepos/ui-library";
|
|
@@ -106,7 +106,7 @@ var br = {};
|
|
|
106
106
|
for (var n = 0; n < t.length; n++)
|
|
107
107
|
K(t[n], r);
|
|
108
108
|
}
|
|
109
|
-
function
|
|
109
|
+
function ce(r, t) {
|
|
110
110
|
L(t.prototype, r.prototype), r.prototype.constructor = r;
|
|
111
111
|
}
|
|
112
112
|
function me(r, t) {
|
|
@@ -120,7 +120,7 @@ var br = {};
|
|
|
120
120
|
}, r[t];
|
|
121
121
|
};
|
|
122
122
|
}
|
|
123
|
-
function
|
|
123
|
+
function fe(r, t, n, i) {
|
|
124
124
|
var s = r;
|
|
125
125
|
r[t] = s, r[n] = function() {
|
|
126
126
|
if (r[t] === s) {
|
|
@@ -203,7 +203,7 @@ var br = {};
|
|
|
203
203
|
return lt(l, c, n, i, s, [f], h, o);
|
|
204
204
|
};
|
|
205
205
|
};
|
|
206
|
-
return { inherit: K, inheritMany: oe, mixin:
|
|
206
|
+
return { inherit: K, inheritMany: oe, mixin: ce, mixinHard: me, installStaticTearOff: lt, installInstanceTearOff: mt, _instance_0u: r(0, 0, null, ["$0"], 0), _instance_1u: r(0, 1, null, ["$1"], 0), _instance_2u: r(0, 2, null, ["$2"], 0), _instance_0i: r(1, 0, null, ["$0"], 0), _instance_1i: r(1, 1, null, ["$1"], 0), _instance_2i: r(1, 2, null, ["$2"], 0), _static_0: t(0, null, ["$0"], 0), _static_1: t(1, null, ["$1"], 0), _static_2: t(2, null, ["$2"], 0), makeConstList: ke, lazy: Me, lazyFinal: fe, updateHolder: Rn, convertToFastObject: pt, updateTypes: Qt, setOrUpdateInterceptorsByTag: Wt, setOrUpdateLeafTags: bt };
|
|
207
207
|
}(), $ = {
|
|
208
208
|
x3(r, t, n, i) {
|
|
209
209
|
return { i: r, p: t, e: n, x: i };
|
|
@@ -18912,34 +18912,34 @@ const ya = /* @__PURE__ */ Vr({
|
|
|
18912
18912
|
setup(k, { emit: p }) {
|
|
18913
18913
|
const b = p, { t: j } = Ln(), x = zn(), _ = Qr(), P = Sr(() => _.restaurants.value.some(({ posVersion: K }) => va.Pos.canUse({ feature: Jr.F_FEATURE.Enum.templateBuilder, posVersion: K ?? "" }))), L = Sr(() => {
|
|
18914
18914
|
const K = [];
|
|
18915
|
-
lr.filter((
|
|
18915
|
+
lr.filter((fe) => {
|
|
18916
18916
|
var ke;
|
|
18917
|
-
return
|
|
18918
|
-
}).map((
|
|
18917
|
+
return fe.redirect || (ke = fe.meta) != null && ke.hideNavigation ? !1 : !(fe.name === "$settings-template-builder" && !P.value);
|
|
18918
|
+
}).map((fe) => {
|
|
18919
18919
|
var ke;
|
|
18920
18920
|
K.push({
|
|
18921
|
-
label: j((ke =
|
|
18922
|
-
value:
|
|
18921
|
+
label: j((ke = fe.meta) == null ? void 0 : ke.i18nKey),
|
|
18922
|
+
value: fe.name,
|
|
18923
18923
|
action: () => {
|
|
18924
|
-
|
|
18924
|
+
fe.name === "$settings-e-invoice" ? x.push({ name: "SUBMISSION" }) : x.push({ name: fe.name }), b("close-navigation");
|
|
18925
18925
|
}
|
|
18926
18926
|
});
|
|
18927
18927
|
});
|
|
18928
|
-
const
|
|
18928
|
+
const ce = lr.filter((fe) => fe.path.startsWith("/devices")), me = K.findIndex((fe) => fe.value === "$settings-my-business"), Me = me !== -1 ? me + 1 : K.length;
|
|
18929
18929
|
return K.splice(Me, 0, {
|
|
18930
18930
|
label: j("settings.deviceManagement"),
|
|
18931
18931
|
value: "$settings-device-management",
|
|
18932
|
-
children:
|
|
18932
|
+
children: ce.map((fe) => {
|
|
18933
18933
|
var ke;
|
|
18934
|
-
return
|
|
18934
|
+
return fe.name === "$pos-order-setting" ? {
|
|
18935
18935
|
label: j("order.kiosk"),
|
|
18936
|
-
value: "
|
|
18936
|
+
value: "Kiosk",
|
|
18937
18937
|
action: () => {
|
|
18938
18938
|
x.push({ name: "Kiosk" }), b("close-navigation");
|
|
18939
18939
|
}
|
|
18940
18940
|
} : {
|
|
18941
|
-
label: j((ke =
|
|
18942
|
-
value:
|
|
18941
|
+
label: j((ke = fe.meta) == null ? void 0 : ke.i18nKey),
|
|
18942
|
+
value: "$devices",
|
|
18943
18943
|
action: () => {
|
|
18944
18944
|
x.push({ name: "$devices" }), b("close-navigation");
|
|
18945
18945
|
}
|
|
@@ -18952,8 +18952,8 @@ const ya = /* @__PURE__ */ Vr({
|
|
|
18952
18952
|
let K = ((oe = x.currentRoute.value) == null ? void 0 : oe.name) ?? lr[0].name;
|
|
18953
18953
|
H.value !== K && (H.value = K);
|
|
18954
18954
|
}), (K, oe) => {
|
|
18955
|
-
const
|
|
18956
|
-
return Kr(), Wr(
|
|
18955
|
+
const ce = Bn("fm-collapsible-tabs");
|
|
18956
|
+
return Kr(), Wr(ce, {
|
|
18957
18957
|
modelValue: H.value,
|
|
18958
18958
|
"onUpdate:modelValue": oe[0] || (oe[0] = (me) => H.value = me),
|
|
18959
18959
|
items: L.value,
|
|
@@ -19643,7 +19643,7 @@ async function Ot(k) {
|
|
|
19643
19643
|
);
|
|
19644
19644
|
const _ = x.users[0];
|
|
19645
19645
|
k._notifyReloadListener(_);
|
|
19646
|
-
const P = !((p = _.providerUserInfo) === null || p === void 0) && p.length ? Fa(_.providerUserInfo) : [], L = Oa(k.providerData, P), H = k.isAnonymous, K = !(k.email && _.passwordHash) && !(L != null && L.length), oe = H ? K : !1,
|
|
19646
|
+
const P = !((p = _.providerUserInfo) === null || p === void 0) && p.length ? Fa(_.providerUserInfo) : [], L = Oa(k.providerData, P), H = k.isAnonymous, K = !(k.email && _.passwordHash) && !(L != null && L.length), oe = H ? K : !1, ce = {
|
|
19647
19647
|
uid: _.localId,
|
|
19648
19648
|
displayName: _.displayName || null,
|
|
19649
19649
|
photoURL: _.photoUrl || null,
|
|
@@ -19655,7 +19655,7 @@ async function Ot(k) {
|
|
|
19655
19655
|
metadata: new on(_.createdAt, _.lastLoginAt),
|
|
19656
19656
|
isAnonymous: oe
|
|
19657
19657
|
};
|
|
19658
|
-
Object.assign(k,
|
|
19658
|
+
Object.assign(k, ce);
|
|
19659
19659
|
}
|
|
19660
19660
|
async function Ba(k) {
|
|
19661
19661
|
const p = dt(k);
|
|
@@ -19901,7 +19901,7 @@ class st {
|
|
|
19901
19901
|
}
|
|
19902
19902
|
static _fromJSON(p, b) {
|
|
19903
19903
|
var j, x, _, P, L, H, K, oe;
|
|
19904
|
-
const
|
|
19904
|
+
const ce = (j = b.displayName) !== null && j !== void 0 ? j : void 0, me = (x = b.email) !== null && x !== void 0 ? x : void 0, Me = (_ = b.phoneNumber) !== null && _ !== void 0 ? _ : void 0, fe = (P = b.photoURL) !== null && P !== void 0 ? P : void 0, ke = (L = b.tenantId) !== null && L !== void 0 ? L : void 0, pt = (H = b._redirectEventId) !== null && H !== void 0 ? H : void 0, qt = (K = b.createdAt) !== null && K !== void 0 ? K : void 0, Ct = (oe = b.lastLoginAt) !== null && oe !== void 0 ? oe : void 0, { uid: $t, emailVerified: _t, isAnonymous: gt, providerData: lt, stsTokenManager: mt } = b;
|
|
19905
19905
|
ie(
|
|
19906
19906
|
$t && mt,
|
|
19907
19907
|
p,
|
|
@@ -19914,7 +19914,7 @@ class st {
|
|
|
19914
19914
|
p,
|
|
19915
19915
|
"internal-error"
|
|
19916
19916
|
/* AuthErrorCode.INTERNAL_ERROR */
|
|
19917
|
-
), Re(
|
|
19917
|
+
), Re(ce, p.name), Re(me, p.name), ie(
|
|
19918
19918
|
typeof _t == "boolean",
|
|
19919
19919
|
p,
|
|
19920
19920
|
"internal-error"
|
|
@@ -19924,15 +19924,15 @@ class st {
|
|
|
19924
19924
|
p,
|
|
19925
19925
|
"internal-error"
|
|
19926
19926
|
/* AuthErrorCode.INTERNAL_ERROR */
|
|
19927
|
-
), Re(Me, p.name), Re(
|
|
19927
|
+
), Re(Me, p.name), Re(fe, p.name), Re(ke, p.name), Re(pt, p.name), Re(qt, p.name), Re(Ct, p.name);
|
|
19928
19928
|
const bt = new st({
|
|
19929
19929
|
uid: $t,
|
|
19930
19930
|
auth: p,
|
|
19931
19931
|
email: me,
|
|
19932
19932
|
emailVerified: _t,
|
|
19933
|
-
displayName:
|
|
19933
|
+
displayName: ce,
|
|
19934
19934
|
isAnonymous: gt,
|
|
19935
|
-
photoURL:
|
|
19935
|
+
photoURL: fe,
|
|
19936
19936
|
phoneNumber: Me,
|
|
19937
19937
|
tenantId: ke,
|
|
19938
19938
|
stsTokenManager: Wt,
|
|
@@ -20082,8 +20082,8 @@ class ft {
|
|
|
20082
20082
|
try {
|
|
20083
20083
|
const oe = await K._get(P);
|
|
20084
20084
|
if (oe) {
|
|
20085
|
-
const
|
|
20086
|
-
K !== _ && (L =
|
|
20085
|
+
const ce = st._fromJSON(p, oe);
|
|
20086
|
+
K !== _ && (L = ce), _ = K;
|
|
20087
20087
|
break;
|
|
20088
20088
|
}
|
|
20089
20089
|
} catch {
|
|
@@ -21878,8 +21878,8 @@ class mi {
|
|
|
21878
21878
|
}, j);
|
|
21879
21879
|
P = {
|
|
21880
21880
|
messageChannel: x,
|
|
21881
|
-
onMessage(
|
|
21882
|
-
const me =
|
|
21881
|
+
onMessage(ce) {
|
|
21882
|
+
const me = ce;
|
|
21883
21883
|
if (me.data.eventId === K)
|
|
21884
21884
|
switch (me.data.status) {
|
|
21885
21885
|
case "ack":
|
|
@@ -22866,21 +22866,21 @@ function ls(k, p, b, j = is, x = ss) {
|
|
|
22866
22866
|
left: P
|
|
22867
22867
|
}), K = we().toLowerCase();
|
|
22868
22868
|
b && (L = cn(K) ? os : b), ln(K) && (p = p || us, H.scrollbars = "yes");
|
|
22869
|
-
const oe = Object.entries(H).reduce((me, [Me,
|
|
22869
|
+
const oe = Object.entries(H).reduce((me, [Me, fe]) => `${me}${Me}=${fe},`, "");
|
|
22870
22870
|
if (Ga(K) && L !== "_self")
|
|
22871
22871
|
return cs(p || "", L), new zr(null);
|
|
22872
|
-
const
|
|
22872
|
+
const ce = window.open(p || "", L, oe);
|
|
22873
22873
|
ie(
|
|
22874
|
-
|
|
22874
|
+
ce,
|
|
22875
22875
|
k,
|
|
22876
22876
|
"popup-blocked"
|
|
22877
22877
|
/* AuthErrorCode.POPUP_BLOCKED */
|
|
22878
22878
|
);
|
|
22879
22879
|
try {
|
|
22880
|
-
|
|
22880
|
+
ce.focus();
|
|
22881
22881
|
} catch {
|
|
22882
22882
|
}
|
|
22883
|
-
return new zr(
|
|
22883
|
+
return new zr(ce);
|
|
22884
22884
|
}
|
|
22885
22885
|
function cs(k, p) {
|
|
22886
22886
|
const b = document.createElement("a");
|
|
@@ -22927,11 +22927,11 @@ async function Gr(k, p, b, j, x, _) {
|
|
|
22927
22927
|
};
|
|
22928
22928
|
if (p instanceof kn) {
|
|
22929
22929
|
p.setDefaultLanguage(k.languageCode), P.providerId = p.providerId || "", ta(p.getCustomParameters()) || (P.customParameters = JSON.stringify(p.getCustomParameters()));
|
|
22930
|
-
for (const [oe,
|
|
22931
|
-
P[oe] =
|
|
22930
|
+
for (const [oe, ce] of Object.entries(_ || {}))
|
|
22931
|
+
P[oe] = ce;
|
|
22932
22932
|
}
|
|
22933
22933
|
if (p instanceof It) {
|
|
22934
|
-
const oe = p.getScopes().filter((
|
|
22934
|
+
const oe = p.getScopes().filter((ce) => ce !== "");
|
|
22935
22935
|
oe.length > 0 && (P.scopes = oe.join(","));
|
|
22936
22936
|
}
|
|
22937
22937
|
k.tenantId && (P.tid = k.tenantId);
|
|
@@ -14,7 +14,7 @@ import { c as qr } from "./object-27ce045b.js";
|
|
|
14
14
|
import { b as B_ } from "./business-7684bcec.js";
|
|
15
15
|
import { t as so, w as oo, x as z_, y as K_, z as G_, A as q_, B as gi, u as dr, D as W_, G as H_ } from "./map-695afd6f.js";
|
|
16
16
|
import { _ as dd } from "./_plugin-vue_export-helper-dad06003.js";
|
|
17
|
-
import { u as Y_ } from "./app-
|
|
17
|
+
import { u as Y_ } from "./app-bfaa4ee9.js";
|
|
18
18
|
import { r as Rn } from "./rules-2bee6632.js";
|
|
19
19
|
import "pinia";
|
|
20
20
|
import "@feedmepos/mf-mdm";
|
|
@@ -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-bfaa4ee9.js";
|
|
6
6
|
import { _ as nE, c as rl } from "./createForm-d3b97d2e.js";
|
|
7
7
|
import { u as Wl } from "./index-3f4c8817.js";
|
|
8
8
|
import { _ as il, c as tE } from "./FormSection.vue_vue_type_script_setup_true_lang-6aab82f2.js";
|
|
@@ -1678,7 +1678,7 @@ const B = /* @__PURE__ */ _({
|
|
|
1678
1678
|
{
|
|
1679
1679
|
path: "/business",
|
|
1680
1680
|
name: "$settings-my-business",
|
|
1681
|
-
component: t(() => import("./Business-
|
|
1681
|
+
component: t(() => import("./Business-9ac30155.js")),
|
|
1682
1682
|
meta: {
|
|
1683
1683
|
i18nKey: "settings.business.title"
|
|
1684
1684
|
}
|
|
@@ -1738,7 +1738,7 @@ const B = /* @__PURE__ */ _({
|
|
|
1738
1738
|
{
|
|
1739
1739
|
path: "/tagging",
|
|
1740
1740
|
name: "$settings-tagging",
|
|
1741
|
-
component: p(t(() => import("./Tagging-
|
|
1741
|
+
component: p(t(() => import("./Tagging-e233bc93.js"))),
|
|
1742
1742
|
meta: {
|
|
1743
1743
|
i18nKey: "settings.tagging.title",
|
|
1744
1744
|
validationManifest: {
|
|
@@ -1760,7 +1760,7 @@ const B = /* @__PURE__ */ _({
|
|
|
1760
1760
|
path: "/devices/order-setting",
|
|
1761
1761
|
name: "$pos-order-setting",
|
|
1762
1762
|
component: p($),
|
|
1763
|
-
children: F.filter((e) => e.
|
|
1763
|
+
children: F.filter((e) => e.path === "/kiosk"),
|
|
1764
1764
|
meta: {
|
|
1765
1765
|
hideNavigation: !0,
|
|
1766
1766
|
validationManifest: {
|
|
@@ -1781,7 +1781,7 @@ r.push({
|
|
|
1781
1781
|
name: ((b = r[0].children) == null ? void 0 : b[0].name) || r[0].name
|
|
1782
1782
|
}
|
|
1783
1783
|
});
|
|
1784
|
-
const ie = t(() => import("./App-
|
|
1784
|
+
const ie = t(() => import("./App-3360c969.js")), ne = {
|
|
1785
1785
|
"en-US": {
|
|
1786
1786
|
...K,
|
|
1787
1787
|
...s["en-US"]
|
package/dist/app.js
CHANGED