@feedmepos/mf-settings 0.0.51 → 0.0.52
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-b3a895b0.js → App-22950de9.js} +51 -51
- package/dist/{Business-189e288f.js → Business-c9b59843.js} +2412 -2412
- package/dist/{CreateBusiness-2a4f54d4.js → CreateBusiness-0850150d.js} +11 -11
- package/dist/{FoodCourt-561cd7e3.js → FoodCourt-ad9640e4.js} +60 -61
- package/dist/{actionButton-cc6bcf01.js → FormSection.vue_vue_type_script_setup_true_lang-6aab82f2.js} +25 -25
- package/dist/{ResponsiveFabButton.vue_vue_type_script_setup_true_lang-977372d5.js → RestaurantSelector.vue_vue_type_script_setup_true_lang-e9712a4d.js} +63 -63
- package/dist/{Tagging-5ba0d4ec.js → Tagging-55538d2b.js} +6402 -6404
- package/dist/{app-6a6102be.js → app-b66ea7e1.js} +357 -39
- package/dist/app.js +2 -2
- package/dist/apps/mf-settings/src/api/foodCourt.d.ts +1 -1
- package/dist/apps/mf-settings/src/api/restaurant.d.ts +2 -2
- package/dist/apps/mf-settings/src/app.d.ts +1 -0
- package/dist/apps/mf-settings/src/components/business/RestaurantForm.vue.d.ts +1 -1
- package/dist/apps/mf-settings/src/components/foodcourt/foodCourt.d.ts +1 -1
- package/dist/apps/mf-settings/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{business-9a4e5bd7.js → business-906742ba.js} +1 -1
- package/dist/{loading-84215dce.js → index-72d7bc88.js} +358 -359
- package/dist/{index.esm2017-c60b1ce5.js → map-695afd6f.js} +82 -82
- package/dist/{createForm-681e977a.js → object-8ac0c0d8.js} +18 -19
- package/package.json +3 -3
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { defineComponent as Ye, computed as Pe, ref as xt, watchEffect as Vt, resolveComponent as Wt, openBlock as Xe, createBlock as Qe, onMounted as Ht, unref as $t } from "vue";
|
|
2
2
|
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
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
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 "./
|
|
4
|
+
import { c as Gt } from "./index-1eb3cc0a.js";
|
|
5
|
+
import { e as zt } from "./index-f1e5e565.js";
|
|
6
|
+
import { r as Jt } from "./app-b66ea7e1.js";
|
|
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";
|
|
10
10
|
import "@feedmepos/mf-e-invoice";
|
|
@@ -21,7 +21,7 @@ const fn = /* @__PURE__ */ Ye({
|
|
|
21
21
|
__name: "NavigationTab",
|
|
22
22
|
emits: ["close-navigation"],
|
|
23
23
|
setup(n, { emit: e }) {
|
|
24
|
-
const t = e, { t: i } = Kt(), r = jt(), s = Ze(), o = Pe(() => s.restaurants.value.some(({ posVersion: l }) =>
|
|
24
|
+
const t = e, { t: i } = Kt(), r = jt(), s = Ze(), o = Pe(() => s.restaurants.value.some(({ posVersion: l }) => Gt.Pos.canUse({ feature: zt.F_FEATURE.Enum.templateBuilder, posVersion: l ?? "" }))), c = Pe(() => Jt.filter((d) => {
|
|
25
25
|
var h;
|
|
26
26
|
return d.redirect || (h = d.meta) != null && h.hideNavigation ? !1 : !(d.name === "$settings-template-builder" && !o.value);
|
|
27
27
|
}).map((d) => {
|
|
@@ -49,40 +49,6 @@ const fn = /* @__PURE__ */ Ye({
|
|
|
49
49
|
};
|
|
50
50
|
}
|
|
51
51
|
});
|
|
52
|
-
class M {
|
|
53
|
-
constructor(e = null, t = {}) {
|
|
54
|
-
if (this.apiKey = e, this.options = t, typeof window > "u")
|
|
55
|
-
throw new Error("google-maps is supported only in browser environment");
|
|
56
|
-
}
|
|
57
|
-
load() {
|
|
58
|
-
return typeof this.api < "u" ? Promise.resolve(this.api) : typeof this.loader < "u" ? this.loader : (window[M.CALLBACK_NAME] = () => {
|
|
59
|
-
if (this.api = window.google, typeof this.resolve > "u")
|
|
60
|
-
throw new Error("Should not happen");
|
|
61
|
-
this.resolve(this.api);
|
|
62
|
-
}, window.gm_authFailure = () => {
|
|
63
|
-
if (typeof this.reject > "u")
|
|
64
|
-
throw new Error("Should not happen");
|
|
65
|
-
this.reject(new Error("google-maps: authentication error"));
|
|
66
|
-
}, this.loader = new Promise((e, t) => {
|
|
67
|
-
this.resolve = e, this.reject = t;
|
|
68
|
-
const i = document.createElement("script");
|
|
69
|
-
i.src = this.createUrl(), i.async = !0, i.onerror = (r) => t(r), document.head.appendChild(i);
|
|
70
|
-
}));
|
|
71
|
-
}
|
|
72
|
-
createUrl() {
|
|
73
|
-
const e = [
|
|
74
|
-
`callback=${M.CALLBACK_NAME}`
|
|
75
|
-
];
|
|
76
|
-
this.apiKey && e.push(`key=${this.apiKey}`);
|
|
77
|
-
for (let t in this.options)
|
|
78
|
-
if (this.options.hasOwnProperty(t)) {
|
|
79
|
-
let i = this.options[t];
|
|
80
|
-
t === "version" && (t = "v"), t === "libraries" && (i = i.join(",")), e.push(`${t}=${i}`);
|
|
81
|
-
}
|
|
82
|
-
return `https://maps.googleapis.com/maps/api/js?${e.join("&")}`;
|
|
83
|
-
}
|
|
84
|
-
}
|
|
85
|
-
M.CALLBACK_NAME = "_dk_google_maps_loader_cb";
|
|
86
52
|
var pn = "firebase", gn = "9.23.0";
|
|
87
53
|
/**
|
|
88
54
|
* @license
|
|
@@ -630,7 +596,7 @@ function An(n) {
|
|
|
630
596
|
* See the License for the specific language governing permissions and
|
|
631
597
|
* limitations under the License.
|
|
632
598
|
*/
|
|
633
|
-
async function
|
|
599
|
+
async function M(n, e, t = !1) {
|
|
634
600
|
if (t)
|
|
635
601
|
return e;
|
|
636
602
|
try {
|
|
@@ -755,7 +721,7 @@ class lt {
|
|
|
755
721
|
*/
|
|
756
722
|
async function Q(n) {
|
|
757
723
|
var e;
|
|
758
|
-
const t = n.auth, i = await n.getIdToken(), r = await
|
|
724
|
+
const t = n.auth, i = await n.getIdToken(), r = await M(n, bn(t, { idToken: i }));
|
|
759
725
|
u(
|
|
760
726
|
r == null ? void 0 : r.users.length,
|
|
761
727
|
t,
|
|
@@ -851,7 +817,7 @@ async function Mn(n, e) {
|
|
|
851
817
|
* See the License for the specific language governing permissions and
|
|
852
818
|
* limitations under the License.
|
|
853
819
|
*/
|
|
854
|
-
class
|
|
820
|
+
class U {
|
|
855
821
|
constructor() {
|
|
856
822
|
this.refreshToken = null, this.accessToken = null, this.expirationTime = null;
|
|
857
823
|
}
|
|
@@ -894,7 +860,7 @@ class D {
|
|
|
894
860
|
this.refreshToken = t || null, this.accessToken = e || null, this.expirationTime = Date.now() + i * 1e3;
|
|
895
861
|
}
|
|
896
862
|
static fromJSON(e, t) {
|
|
897
|
-
const { refreshToken: i, accessToken: r, expirationTime: s } = t, o = new
|
|
863
|
+
const { refreshToken: i, accessToken: r, expirationTime: s } = t, o = new U();
|
|
898
864
|
return i && (u(typeof i == "string", "internal-error", {
|
|
899
865
|
appName: e
|
|
900
866
|
}), o.refreshToken = i), r && (u(typeof r == "string", "internal-error", {
|
|
@@ -914,7 +880,7 @@ class D {
|
|
|
914
880
|
this.accessToken = e.accessToken, this.refreshToken = e.refreshToken, this.expirationTime = e.expirationTime;
|
|
915
881
|
}
|
|
916
882
|
_clone() {
|
|
917
|
-
return Object.assign(new
|
|
883
|
+
return Object.assign(new U(), this.toJSON());
|
|
918
884
|
}
|
|
919
885
|
_performRefresh() {
|
|
920
886
|
return _("not implemented");
|
|
@@ -945,7 +911,7 @@ class b {
|
|
|
945
911
|
this.providerId = "firebase", this.proactiveRefresh = new Pn(this), this.reloadUserInfo = null, this.reloadListener = null, this.uid = t, this.auth = i, this.stsTokenManager = r, this.accessToken = r.accessToken, this.displayName = s.displayName || null, this.email = s.email || null, this.emailVerified = s.emailVerified || !1, this.phoneNumber = s.phoneNumber || null, this.photoURL = s.photoURL || null, this.isAnonymous = s.isAnonymous || !1, this.tenantId = s.tenantId || null, this.providerData = s.providerData ? [...s.providerData] : [], this.metadata = new lt(s.createdAt || void 0, s.lastLoginAt || void 0);
|
|
946
912
|
}
|
|
947
913
|
async getIdToken(e) {
|
|
948
|
-
const t = await
|
|
914
|
+
const t = await M(this, this.stsTokenManager.getToken(this.auth, e));
|
|
949
915
|
return u(
|
|
950
916
|
t,
|
|
951
917
|
this.auth,
|
|
@@ -994,7 +960,7 @@ class b {
|
|
|
994
960
|
}
|
|
995
961
|
async delete() {
|
|
996
962
|
const e = await this.getIdToken();
|
|
997
|
-
return await
|
|
963
|
+
return await M(this, Rn(this.auth, { idToken: e })), this.stsTokenManager.clearRefreshToken(), this.auth.signOut();
|
|
998
964
|
}
|
|
999
965
|
toJSON() {
|
|
1000
966
|
return Object.assign(Object.assign({
|
|
@@ -1029,7 +995,7 @@ class b {
|
|
|
1029
995
|
"internal-error"
|
|
1030
996
|
/* AuthErrorCode.INTERNAL_ERROR */
|
|
1031
997
|
);
|
|
1032
|
-
const Dt =
|
|
998
|
+
const Dt = U.fromJSON(this.name, Ce);
|
|
1033
999
|
u(
|
|
1034
1000
|
typeof oe == "string",
|
|
1035
1001
|
e,
|
|
@@ -1068,7 +1034,7 @@ class b {
|
|
|
1068
1034
|
* @param idTokenResponse
|
|
1069
1035
|
*/
|
|
1070
1036
|
static async _fromIdTokenResponse(e, t, i = !1) {
|
|
1071
|
-
const r = new
|
|
1037
|
+
const r = new U();
|
|
1072
1038
|
r.updateFromServerResponse(t);
|
|
1073
1039
|
const s = new b({
|
|
1074
1040
|
uid: t.localId,
|
|
@@ -2502,7 +2468,7 @@ function Rt(n, e, t, i) {
|
|
|
2502
2468
|
});
|
|
2503
2469
|
}
|
|
2504
2470
|
async function Qn(n, e, t = !1) {
|
|
2505
|
-
const i = await
|
|
2471
|
+
const i = await M(n, e._linkToIdToken(n.auth, await n.getIdToken()), t);
|
|
2506
2472
|
return A._forOperation(n, "link", i);
|
|
2507
2473
|
}
|
|
2508
2474
|
/**
|
|
@@ -2524,7 +2490,7 @@ async function Qn(n, e, t = !1) {
|
|
|
2524
2490
|
async function Zn(n, e, t = !1) {
|
|
2525
2491
|
const { auth: i } = n, r = "reauthenticate";
|
|
2526
2492
|
try {
|
|
2527
|
-
const s = await
|
|
2493
|
+
const s = await M(n, Rt(i, r, e, n), t);
|
|
2528
2494
|
u(
|
|
2529
2495
|
s.idToken,
|
|
2530
2496
|
i,
|
|
@@ -4321,6 +4287,40 @@ hr(
|
|
|
4321
4287
|
"Browser"
|
|
4322
4288
|
/* ClientPlatform.BROWSER */
|
|
4323
4289
|
);
|
|
4290
|
+
class D {
|
|
4291
|
+
constructor(e = null, t = {}) {
|
|
4292
|
+
if (this.apiKey = e, this.options = t, typeof window > "u")
|
|
4293
|
+
throw new Error("google-maps is supported only in browser environment");
|
|
4294
|
+
}
|
|
4295
|
+
load() {
|
|
4296
|
+
return typeof this.api < "u" ? Promise.resolve(this.api) : typeof this.loader < "u" ? this.loader : (window[D.CALLBACK_NAME] = () => {
|
|
4297
|
+
if (this.api = window.google, typeof this.resolve > "u")
|
|
4298
|
+
throw new Error("Should not happen");
|
|
4299
|
+
this.resolve(this.api);
|
|
4300
|
+
}, window.gm_authFailure = () => {
|
|
4301
|
+
if (typeof this.reject > "u")
|
|
4302
|
+
throw new Error("Should not happen");
|
|
4303
|
+
this.reject(new Error("google-maps: authentication error"));
|
|
4304
|
+
}, this.loader = new Promise((e, t) => {
|
|
4305
|
+
this.resolve = e, this.reject = t;
|
|
4306
|
+
const i = document.createElement("script");
|
|
4307
|
+
i.src = this.createUrl(), i.async = !0, i.onerror = (r) => t(r), document.head.appendChild(i);
|
|
4308
|
+
}));
|
|
4309
|
+
}
|
|
4310
|
+
createUrl() {
|
|
4311
|
+
const e = [
|
|
4312
|
+
`callback=${D.CALLBACK_NAME}`
|
|
4313
|
+
];
|
|
4314
|
+
this.apiKey && e.push(`key=${this.apiKey}`);
|
|
4315
|
+
for (let t in this.options)
|
|
4316
|
+
if (this.options.hasOwnProperty(t)) {
|
|
4317
|
+
let i = this.options[t];
|
|
4318
|
+
t === "version" && (t = "v"), t === "libraries" && (i = i.join(",")), e.push(`${t}=${i}`);
|
|
4319
|
+
}
|
|
4320
|
+
return `https://maps.googleapis.com/maps/api/js?${e.join("&")}`;
|
|
4321
|
+
}
|
|
4322
|
+
}
|
|
4323
|
+
D.CALLBACK_NAME = "_dk_google_maps_loader_cb";
|
|
4324
4324
|
async function _r() {
|
|
4325
4325
|
if (cn().length)
|
|
4326
4326
|
return;
|
|
@@ -4330,7 +4330,7 @@ async function _r() {
|
|
|
4330
4330
|
async function vr() {
|
|
4331
4331
|
if (dn())
|
|
4332
4332
|
return;
|
|
4333
|
-
const e = await new
|
|
4333
|
+
const e = await new D("AIzaSyA_isPR1-9bX7UmRiJIhsIRNNwdn6DdmW4", {
|
|
4334
4334
|
libraries: ["places"]
|
|
4335
4335
|
}).load();
|
|
4336
4336
|
hn(e);
|