@feedmepos/mf-mdm 1.5.3-beta.172 → 1.5.3
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.
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as jt, ref as Wt, watch as de, onMounted as Ht, resolveComponent as Me, openBlock as he, createElementBlock as De, createBlock as qt, createVNode as zt, nextTick as $t } from "vue";
|
|
2
|
-
import { r as ge, g as nt, i as Bt, a as Gt, _, b as Fe, C as xe, c as it, d as Kt, e as rt, f as Jt, S as W, h as F, E as Ie, j as Xt, k as Yt, L as st, l as p, m as Qt, F as we, n as Zt, o as en, q as H, p as tn, u as nn, s as rn, t as sn, v as on } from "./index-
|
|
2
|
+
import { r as ge, g as nt, i as Bt, a as Gt, _, b as Fe, C as xe, c as it, d as Kt, e as rt, f as Jt, S as W, h as F, E as Ie, j as Xt, k as Yt, L as st, l as p, m as Qt, F as we, n as Zt, o as en, q as H, p as tn, u as nn, s as rn, t as sn, v as on } from "./index-d3bc8ba2.js";
|
|
3
3
|
import { useCoreStore as an } from "@feedmepos/mf-common";
|
|
4
4
|
import "pinia";
|
|
5
5
|
var cn = "firebase", ln = "10.12.2";
|
|
@@ -1285,17 +1285,17 @@ function yt(n = p()) {
|
|
|
1285
1285
|
function ie(n = p()) {
|
|
1286
1286
|
return /iphone|ipad|ipod/i.test(n) || /macintosh/i.test(n) && /mobile/i.test(n);
|
|
1287
1287
|
}
|
|
1288
|
-
function
|
|
1288
|
+
function Rn(n = p()) {
|
|
1289
1289
|
var e;
|
|
1290
1290
|
return ie(n) && !!(!((e = window.navigator) === null || e === void 0) && e.standalone);
|
|
1291
1291
|
}
|
|
1292
|
-
function
|
|
1292
|
+
function bn() {
|
|
1293
1293
|
return en() && document.documentMode === 10;
|
|
1294
1294
|
}
|
|
1295
1295
|
function Tt(n = p()) {
|
|
1296
1296
|
return ie(n) || It(n) || yt(n) || wt(n) || /windows phone/i.test(n) || vt(n);
|
|
1297
1297
|
}
|
|
1298
|
-
function
|
|
1298
|
+
function Pn() {
|
|
1299
1299
|
try {
|
|
1300
1300
|
return !!(window && window !== window.top);
|
|
1301
1301
|
} catch {
|
|
@@ -1876,7 +1876,7 @@ class ze {
|
|
|
1876
1876
|
* See the License for the specific language governing permissions and
|
|
1877
1877
|
* limitations under the License.
|
|
1878
1878
|
*/
|
|
1879
|
-
let
|
|
1879
|
+
let Re = {
|
|
1880
1880
|
async loadJS() {
|
|
1881
1881
|
throw new Error("Unable to load external scripts");
|
|
1882
1882
|
},
|
|
@@ -1885,13 +1885,13 @@ let be = {
|
|
|
1885
1885
|
gapiScript: ""
|
|
1886
1886
|
};
|
|
1887
1887
|
function Un(n) {
|
|
1888
|
-
|
|
1888
|
+
Re = n;
|
|
1889
1889
|
}
|
|
1890
1890
|
function Mn(n) {
|
|
1891
|
-
return
|
|
1891
|
+
return Re.loadJS(n);
|
|
1892
1892
|
}
|
|
1893
1893
|
function Dn() {
|
|
1894
|
-
return
|
|
1894
|
+
return Re.gapiScript;
|
|
1895
1895
|
}
|
|
1896
1896
|
function Fn(n) {
|
|
1897
1897
|
return `__${n}${Math.floor(Math.random() * 1e6)}`;
|
|
@@ -2144,7 +2144,7 @@ class C extends St {
|
|
|
2144
2144
|
* See the License for the specific language governing permissions and
|
|
2145
2145
|
* limitations under the License.
|
|
2146
2146
|
*/
|
|
2147
|
-
class
|
|
2147
|
+
class Rt {
|
|
2148
2148
|
/**
|
|
2149
2149
|
* Constructor for generic OAuth providers.
|
|
2150
2150
|
*
|
|
@@ -2197,7 +2197,7 @@ class bt {
|
|
|
2197
2197
|
* See the License for the specific language governing permissions and
|
|
2198
2198
|
* limitations under the License.
|
|
2199
2199
|
*/
|
|
2200
|
-
class z extends
|
|
2200
|
+
class z extends Rt {
|
|
2201
2201
|
constructor() {
|
|
2202
2202
|
super(...arguments), this.scopes = [];
|
|
2203
2203
|
}
|
|
@@ -2303,7 +2303,7 @@ S.PROVIDER_ID = "facebook.com";
|
|
|
2303
2303
|
* See the License for the specific language governing permissions and
|
|
2304
2304
|
* limitations under the License.
|
|
2305
2305
|
*/
|
|
2306
|
-
class
|
|
2306
|
+
class R extends z {
|
|
2307
2307
|
constructor() {
|
|
2308
2308
|
super(
|
|
2309
2309
|
"google.com"
|
|
@@ -2325,8 +2325,8 @@ class b extends z {
|
|
|
2325
2325
|
*/
|
|
2326
2326
|
static credential(e, t) {
|
|
2327
2327
|
return C._fromParams({
|
|
2328
|
-
providerId:
|
|
2329
|
-
signInMethod:
|
|
2328
|
+
providerId: R.PROVIDER_ID,
|
|
2329
|
+
signInMethod: R.GOOGLE_SIGN_IN_METHOD,
|
|
2330
2330
|
idToken: e,
|
|
2331
2331
|
accessToken: t
|
|
2332
2332
|
});
|
|
@@ -2337,7 +2337,7 @@ class b extends z {
|
|
|
2337
2337
|
* @param userCredential - The user credential.
|
|
2338
2338
|
*/
|
|
2339
2339
|
static credentialFromResult(e) {
|
|
2340
|
-
return
|
|
2340
|
+
return R.credentialFromTaggedObject(e);
|
|
2341
2341
|
}
|
|
2342
2342
|
/**
|
|
2343
2343
|
* Used to extract the underlying {@link OAuthCredential} from a {@link AuthError} which was
|
|
@@ -2346,7 +2346,7 @@ class b extends z {
|
|
|
2346
2346
|
* @param userCredential - The user credential.
|
|
2347
2347
|
*/
|
|
2348
2348
|
static credentialFromError(e) {
|
|
2349
|
-
return
|
|
2349
|
+
return R.credentialFromTaggedObject(e.customData || {});
|
|
2350
2350
|
}
|
|
2351
2351
|
static credentialFromTaggedObject({ _tokenResponse: e }) {
|
|
2352
2352
|
if (!e)
|
|
@@ -2355,14 +2355,14 @@ class b extends z {
|
|
|
2355
2355
|
if (!t && !i)
|
|
2356
2356
|
return null;
|
|
2357
2357
|
try {
|
|
2358
|
-
return
|
|
2358
|
+
return R.credential(t, i);
|
|
2359
2359
|
} catch {
|
|
2360
2360
|
return null;
|
|
2361
2361
|
}
|
|
2362
2362
|
}
|
|
2363
2363
|
}
|
|
2364
|
-
|
|
2365
|
-
|
|
2364
|
+
R.GOOGLE_SIGN_IN_METHOD = "google.com";
|
|
2365
|
+
R.PROVIDER_ID = "google.com";
|
|
2366
2366
|
/**
|
|
2367
2367
|
* @license
|
|
2368
2368
|
* Copyright 2020 Google LLC
|
|
@@ -2379,7 +2379,7 @@ b.PROVIDER_ID = "google.com";
|
|
|
2379
2379
|
* See the License for the specific language governing permissions and
|
|
2380
2380
|
* limitations under the License.
|
|
2381
2381
|
*/
|
|
2382
|
-
class
|
|
2382
|
+
class b extends z {
|
|
2383
2383
|
constructor() {
|
|
2384
2384
|
super(
|
|
2385
2385
|
"github.com"
|
|
@@ -2393,8 +2393,8 @@ class P extends z {
|
|
|
2393
2393
|
*/
|
|
2394
2394
|
static credential(e) {
|
|
2395
2395
|
return C._fromParams({
|
|
2396
|
-
providerId:
|
|
2397
|
-
signInMethod:
|
|
2396
|
+
providerId: b.PROVIDER_ID,
|
|
2397
|
+
signInMethod: b.GITHUB_SIGN_IN_METHOD,
|
|
2398
2398
|
accessToken: e
|
|
2399
2399
|
});
|
|
2400
2400
|
}
|
|
@@ -2404,7 +2404,7 @@ class P extends z {
|
|
|
2404
2404
|
* @param userCredential - The user credential.
|
|
2405
2405
|
*/
|
|
2406
2406
|
static credentialFromResult(e) {
|
|
2407
|
-
return
|
|
2407
|
+
return b.credentialFromTaggedObject(e);
|
|
2408
2408
|
}
|
|
2409
2409
|
/**
|
|
2410
2410
|
* Used to extract the underlying {@link OAuthCredential} from a {@link AuthError} which was
|
|
@@ -2413,20 +2413,20 @@ class P extends z {
|
|
|
2413
2413
|
* @param userCredential - The user credential.
|
|
2414
2414
|
*/
|
|
2415
2415
|
static credentialFromError(e) {
|
|
2416
|
-
return
|
|
2416
|
+
return b.credentialFromTaggedObject(e.customData || {});
|
|
2417
2417
|
}
|
|
2418
2418
|
static credentialFromTaggedObject({ _tokenResponse: e }) {
|
|
2419
2419
|
if (!e || !("oauthAccessToken" in e) || !e.oauthAccessToken)
|
|
2420
2420
|
return null;
|
|
2421
2421
|
try {
|
|
2422
|
-
return
|
|
2422
|
+
return b.credential(e.oauthAccessToken);
|
|
2423
2423
|
} catch {
|
|
2424
2424
|
return null;
|
|
2425
2425
|
}
|
|
2426
2426
|
}
|
|
2427
2427
|
}
|
|
2428
|
-
|
|
2429
|
-
|
|
2428
|
+
b.GITHUB_SIGN_IN_METHOD = "github.com";
|
|
2429
|
+
b.PROVIDER_ID = "github.com";
|
|
2430
2430
|
/**
|
|
2431
2431
|
* @license
|
|
2432
2432
|
* Copyright 2020 Google LLC
|
|
@@ -2443,7 +2443,7 @@ P.PROVIDER_ID = "github.com";
|
|
|
2443
2443
|
* See the License for the specific language governing permissions and
|
|
2444
2444
|
* limitations under the License.
|
|
2445
2445
|
*/
|
|
2446
|
-
class
|
|
2446
|
+
class P extends z {
|
|
2447
2447
|
constructor() {
|
|
2448
2448
|
super(
|
|
2449
2449
|
"twitter.com"
|
|
@@ -2458,8 +2458,8 @@ class R extends z {
|
|
|
2458
2458
|
*/
|
|
2459
2459
|
static credential(e, t) {
|
|
2460
2460
|
return C._fromParams({
|
|
2461
|
-
providerId:
|
|
2462
|
-
signInMethod:
|
|
2461
|
+
providerId: P.PROVIDER_ID,
|
|
2462
|
+
signInMethod: P.TWITTER_SIGN_IN_METHOD,
|
|
2463
2463
|
oauthToken: e,
|
|
2464
2464
|
oauthTokenSecret: t
|
|
2465
2465
|
});
|
|
@@ -2470,7 +2470,7 @@ class R extends z {
|
|
|
2470
2470
|
* @param userCredential - The user credential.
|
|
2471
2471
|
*/
|
|
2472
2472
|
static credentialFromResult(e) {
|
|
2473
|
-
return
|
|
2473
|
+
return P.credentialFromTaggedObject(e);
|
|
2474
2474
|
}
|
|
2475
2475
|
/**
|
|
2476
2476
|
* Used to extract the underlying {@link OAuthCredential} from a {@link AuthError} which was
|
|
@@ -2479,7 +2479,7 @@ class R extends z {
|
|
|
2479
2479
|
* @param userCredential - The user credential.
|
|
2480
2480
|
*/
|
|
2481
2481
|
static credentialFromError(e) {
|
|
2482
|
-
return
|
|
2482
|
+
return P.credentialFromTaggedObject(e.customData || {});
|
|
2483
2483
|
}
|
|
2484
2484
|
static credentialFromTaggedObject({ _tokenResponse: e }) {
|
|
2485
2485
|
if (!e)
|
|
@@ -2488,14 +2488,14 @@ class R extends z {
|
|
|
2488
2488
|
if (!t || !i)
|
|
2489
2489
|
return null;
|
|
2490
2490
|
try {
|
|
2491
|
-
return
|
|
2491
|
+
return P.credential(t, i);
|
|
2492
2492
|
} catch {
|
|
2493
2493
|
return null;
|
|
2494
2494
|
}
|
|
2495
2495
|
}
|
|
2496
2496
|
}
|
|
2497
|
-
|
|
2498
|
-
|
|
2497
|
+
P.TWITTER_SIGN_IN_METHOD = "twitter.com";
|
|
2498
|
+
P.PROVIDER_ID = "twitter.com";
|
|
2499
2499
|
/**
|
|
2500
2500
|
* @license
|
|
2501
2501
|
* Copyright 2020 Google LLC
|
|
@@ -2573,7 +2573,7 @@ class Z extends we {
|
|
|
2573
2573
|
return new Z(e, t, i, r);
|
|
2574
2574
|
}
|
|
2575
2575
|
}
|
|
2576
|
-
function
|
|
2576
|
+
function bt(n, e, t, i) {
|
|
2577
2577
|
return (e === "reauthenticate" ? t._getReauthenticationResolver(n) : t._getIdTokenResponse(n)).catch((s) => {
|
|
2578
2578
|
throw s.code === "auth/multi-factor-auth-required" ? Z._fromErrorAndOperation(n, s, e, i) : s;
|
|
2579
2579
|
});
|
|
@@ -2604,7 +2604,7 @@ async function $n(n, e, t = !1) {
|
|
|
2604
2604
|
return Promise.reject(A(i));
|
|
2605
2605
|
const r = "reauthenticate";
|
|
2606
2606
|
try {
|
|
2607
|
-
const s = await j(n,
|
|
2607
|
+
const s = await j(n, bt(i, r, e, n), t);
|
|
2608
2608
|
l(
|
|
2609
2609
|
s.idToken,
|
|
2610
2610
|
i,
|
|
@@ -2652,7 +2652,7 @@ async function $n(n, e, t = !1) {
|
|
|
2652
2652
|
async function Bn(n, e, t = !1) {
|
|
2653
2653
|
if (_(n.app))
|
|
2654
2654
|
return Promise.reject(A(n));
|
|
2655
|
-
const i = "signIn", r = await
|
|
2655
|
+
const i = "signIn", r = await bt(n, i, e), s = await O._fromIdTokenResponse(n, i, r);
|
|
2656
2656
|
return t || await n._updateCurrentUser(s.user), s;
|
|
2657
2657
|
}
|
|
2658
2658
|
/**
|
|
@@ -2722,7 +2722,7 @@ const ee = "__sak";
|
|
|
2722
2722
|
* See the License for the specific language governing permissions and
|
|
2723
2723
|
* limitations under the License.
|
|
2724
2724
|
*/
|
|
2725
|
-
class
|
|
2725
|
+
class Pt {
|
|
2726
2726
|
constructor(e, t) {
|
|
2727
2727
|
this.storageRetriever = e, this.type = t;
|
|
2728
2728
|
}
|
|
@@ -2768,13 +2768,13 @@ function Yn() {
|
|
|
2768
2768
|
return Se(n) || ie(n);
|
|
2769
2769
|
}
|
|
2770
2770
|
const Qn = 1e3, Zn = 10;
|
|
2771
|
-
class At extends
|
|
2771
|
+
class At extends Pt {
|
|
2772
2772
|
constructor() {
|
|
2773
2773
|
super(
|
|
2774
2774
|
() => window.localStorage,
|
|
2775
2775
|
"LOCAL"
|
|
2776
2776
|
/* PersistenceType.LOCAL */
|
|
2777
|
-
), this.boundEventHandler = (e, t) => this.onStorageEvent(e, t), this.listeners = {}, this.localCache = {}, this.pollTimer = null, this.safariLocalStorageNotSynced = Yn() &&
|
|
2777
|
+
), this.boundEventHandler = (e, t) => this.onStorageEvent(e, t), this.listeners = {}, this.localCache = {}, this.pollTimer = null, this.safariLocalStorageNotSynced = Yn() && Pn(), this.fallbackToPolling = Tt(), this._shouldAllowMigration = !0;
|
|
2778
2778
|
}
|
|
2779
2779
|
forAllChangedKeys(e) {
|
|
2780
2780
|
for (const t of Object.keys(this.listeners)) {
|
|
@@ -2801,7 +2801,7 @@ class At extends Rt {
|
|
|
2801
2801
|
const o = this.storage.getItem(i);
|
|
2802
2802
|
!t && this.localCache[i] === o || this.notifyListeners(i, o);
|
|
2803
2803
|
}, s = this.storage.getItem(i);
|
|
2804
|
-
|
|
2804
|
+
bn() && s !== e.newValue && e.newValue !== e.oldValue ? setTimeout(r, Zn) : r();
|
|
2805
2805
|
}
|
|
2806
2806
|
notifyListeners(e, t) {
|
|
2807
2807
|
this.localCache[e] = t;
|
|
@@ -2870,7 +2870,7 @@ const ei = At;
|
|
|
2870
2870
|
* See the License for the specific language governing permissions and
|
|
2871
2871
|
* limitations under the License.
|
|
2872
2872
|
*/
|
|
2873
|
-
class Ct extends
|
|
2873
|
+
class Ct extends Pt {
|
|
2874
2874
|
constructor() {
|
|
2875
2875
|
super(
|
|
2876
2876
|
() => window.sessionStorage,
|
|
@@ -3017,7 +3017,7 @@ se.receivers = [];
|
|
|
3017
3017
|
* See the License for the specific language governing permissions and
|
|
3018
3018
|
* limitations under the License.
|
|
3019
3019
|
*/
|
|
3020
|
-
function
|
|
3020
|
+
function be(n = "", e = 10) {
|
|
3021
3021
|
let t = "";
|
|
3022
3022
|
for (let i = 0; i < e; i++)
|
|
3023
3023
|
t += Math.floor(Math.random() * 10);
|
|
@@ -3073,7 +3073,7 @@ class ni {
|
|
|
3073
3073
|
);
|
|
3074
3074
|
let s, o;
|
|
3075
3075
|
return new Promise((c, a) => {
|
|
3076
|
-
const u =
|
|
3076
|
+
const u = be("", 20);
|
|
3077
3077
|
r.port1.start();
|
|
3078
3078
|
const h = setTimeout(() => {
|
|
3079
3079
|
a(new Error(
|
|
@@ -3441,7 +3441,7 @@ function fi(n, e) {
|
|
|
3441
3441
|
* See the License for the specific language governing permissions and
|
|
3442
3442
|
* limitations under the License.
|
|
3443
3443
|
*/
|
|
3444
|
-
class
|
|
3444
|
+
class Pe extends St {
|
|
3445
3445
|
constructor(e) {
|
|
3446
3446
|
super(
|
|
3447
3447
|
"custom",
|
|
@@ -3472,7 +3472,7 @@ class Re extends St {
|
|
|
3472
3472
|
}
|
|
3473
3473
|
}
|
|
3474
3474
|
function pi(n) {
|
|
3475
|
-
return Bn(n.auth, new
|
|
3475
|
+
return Bn(n.auth, new Pe(n), n.bypassAuthState);
|
|
3476
3476
|
}
|
|
3477
3477
|
function gi(n) {
|
|
3478
3478
|
const { auth: e, user: t } = n;
|
|
@@ -3481,7 +3481,7 @@ function gi(n) {
|
|
|
3481
3481
|
e,
|
|
3482
3482
|
"internal-error"
|
|
3483
3483
|
/* AuthErrorCode.INTERNAL_ERROR */
|
|
3484
|
-
), $n(t, new
|
|
3484
|
+
), $n(t, new Pe(n), n.bypassAuthState);
|
|
3485
3485
|
}
|
|
3486
3486
|
async function mi(n) {
|
|
3487
3487
|
const { auth: e, user: t } = n;
|
|
@@ -3490,7 +3490,7 @@ async function mi(n) {
|
|
|
3490
3490
|
e,
|
|
3491
3491
|
"internal-error"
|
|
3492
3492
|
/* AuthErrorCode.INTERNAL_ERROR */
|
|
3493
|
-
), zn(t, new
|
|
3493
|
+
), zn(t, new Pe(n), n.bypassAuthState);
|
|
3494
3494
|
}
|
|
3495
3495
|
/**
|
|
3496
3496
|
* @license
|
|
@@ -3607,7 +3607,7 @@ class L extends Dt {
|
|
|
3607
3607
|
}
|
|
3608
3608
|
async onExecution() {
|
|
3609
3609
|
T(this.filter.length === 1, "Popup operations only handle one event");
|
|
3610
|
-
const e =
|
|
3610
|
+
const e = be();
|
|
3611
3611
|
this.authWindow = await this.resolver._openPopup(
|
|
3612
3612
|
this.auth,
|
|
3613
3613
|
this.provider,
|
|
@@ -3763,7 +3763,7 @@ async function ki(n, e, t = !1) {
|
|
|
3763
3763
|
* limitations under the License.
|
|
3764
3764
|
*/
|
|
3765
3765
|
const Si = 10 * 60 * 1e3;
|
|
3766
|
-
class
|
|
3766
|
+
class Ri {
|
|
3767
3767
|
constructor(e) {
|
|
3768
3768
|
this.auth = e, this.cachedEventUids = /* @__PURE__ */ new Set(), this.consumers = /* @__PURE__ */ new Set(), this.queuedRedirectEvent = null, this.hasHandledPotentialRedirect = !1, this.lastProcessedEventTime = Date.now();
|
|
3769
3769
|
}
|
|
@@ -3779,7 +3779,7 @@ class bi {
|
|
|
3779
3779
|
let t = !1;
|
|
3780
3780
|
return this.consumers.forEach((i) => {
|
|
3781
3781
|
this.isEventForConsumer(e, i) && (t = !0, this.sendToConsumer(e, i), this.saveEventToCache(e));
|
|
3782
|
-
}), this.hasHandledPotentialRedirect || !
|
|
3782
|
+
}), this.hasHandledPotentialRedirect || !bi(e) || (this.hasHandledPotentialRedirect = !0, t || (this.queuedRedirectEvent = e, t = !0)), t;
|
|
3783
3783
|
}
|
|
3784
3784
|
sendToConsumer(e, t) {
|
|
3785
3785
|
var i;
|
|
@@ -3806,7 +3806,7 @@ function Je(n) {
|
|
|
3806
3806
|
function Ft({ type: n, error: e }) {
|
|
3807
3807
|
return n === "unknown" && (e == null ? void 0 : e.code) === "auth/no-auth-event";
|
|
3808
3808
|
}
|
|
3809
|
-
function
|
|
3809
|
+
function bi(n) {
|
|
3810
3810
|
switch (n.type) {
|
|
3811
3811
|
case "signInViaRedirect":
|
|
3812
3812
|
case "linkViaRedirect":
|
|
@@ -3834,7 +3834,7 @@ function Pi(n) {
|
|
|
3834
3834
|
* See the License for the specific language governing permissions and
|
|
3835
3835
|
* limitations under the License.
|
|
3836
3836
|
*/
|
|
3837
|
-
async function
|
|
3837
|
+
async function Pi(n, e = {}) {
|
|
3838
3838
|
return x(n, "GET", "/v1/projects", e);
|
|
3839
3839
|
}
|
|
3840
3840
|
/**
|
|
@@ -3857,7 +3857,7 @@ const Ai = /^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/, Ci = /^https?/;
|
|
|
3857
3857
|
async function Oi(n) {
|
|
3858
3858
|
if (n.config.emulator)
|
|
3859
3859
|
return;
|
|
3860
|
-
const { authorizedDomains: e } = await
|
|
3860
|
+
const { authorizedDomains: e } = await Pi(n);
|
|
3861
3861
|
for (const t of e)
|
|
3862
3862
|
try {
|
|
3863
3863
|
if (Ni(t))
|
|
@@ -4075,7 +4075,7 @@ function Ki(n, e, t, i = zi, r = $i) {
|
|
|
4075
4075
|
}), u = p().toLowerCase();
|
|
4076
4076
|
t && (c = _t(u) ? Bi : t), mt(u) && (e = e || Gi, a.scrollbars = "yes");
|
|
4077
4077
|
const h = Object.entries(a).reduce((f, [E, N]) => `${f}${E}=${N},`, "");
|
|
4078
|
-
if (
|
|
4078
|
+
if (Rn(u) && c !== "_self")
|
|
4079
4079
|
return Ji(e || "", c), new Ye(null);
|
|
4080
4080
|
const d = window.open(e || "", c, h);
|
|
4081
4081
|
l(
|
|
@@ -4133,7 +4133,7 @@ async function Qe(n, e, t, i, r, s) {
|
|
|
4133
4133
|
v: W,
|
|
4134
4134
|
eventId: r
|
|
4135
4135
|
};
|
|
4136
|
-
if (e instanceof
|
|
4136
|
+
if (e instanceof Rt) {
|
|
4137
4137
|
e.setDefaultLanguage(n.languageCode), o.providerId = e.providerId || "", tn(e.getCustomParameters()) || (o.customParameters = JSON.stringify(e.getCustomParameters()));
|
|
4138
4138
|
for (const [h, d] of Object.entries(s || {}))
|
|
4139
4139
|
o[h] = d;
|
|
@@ -4179,7 +4179,7 @@ class er {
|
|
|
4179
4179
|
var s;
|
|
4180
4180
|
T((s = this.eventManagers[e._key()]) === null || s === void 0 ? void 0 : s.manager, "_initialize() not called before _openPopup()");
|
|
4181
4181
|
const o = await Qe(e, t, i, me(), r);
|
|
4182
|
-
return Ki(e, o,
|
|
4182
|
+
return Ki(e, o, be());
|
|
4183
4183
|
}
|
|
4184
4184
|
async _openRedirect(e, t, i, r) {
|
|
4185
4185
|
await this._originValidation(e);
|
|
@@ -4199,7 +4199,7 @@ class er {
|
|
|
4199
4199
|
}), i;
|
|
4200
4200
|
}
|
|
4201
4201
|
async initAndGetManager(e) {
|
|
4202
|
-
const t = await Hi(e), i = new
|
|
4202
|
+
const t = await Hi(e), i = new Ri(e);
|
|
4203
4203
|
return t.register("authEvent", (r) => (l(
|
|
4204
4204
|
r == null ? void 0 : r.authEvent,
|
|
4205
4205
|
e,
|
|
@@ -4441,7 +4441,7 @@ const ur = { class: "bg-white flex flex-col max-h-dvh" }, dr = {
|
|
|
4441
4441
|
__name: "App",
|
|
4442
4442
|
setup(n) {
|
|
4443
4443
|
const e = Wt(!1), { currentBusiness: t, readRestaurants: i, fetchUserPermissions: r, sessionUser: s, signIn: o } = an(), c = nn();
|
|
4444
|
-
rn().length === 0 ? sn({ apiKey: "
|
|
4444
|
+
rn().length === 0 ? sn({ apiKey: "AIzaSyA_isPR1-9bX7UmRiJIhsIRNNwdn6DdmW4", authDomain: "feedme-253402.firebaseapp.com", databaseURL: "https://feedme-253402.firebaseio.com", projectId: "feedme-253402", storageBucket: "image.feedme.cc", messagingSenderId: "128512026847", appId: "128512026847", measurementId: "G-LTKS7N2HQS" }) : rt();
|
|
4445
4445
|
const a = async () => {
|
|
4446
4446
|
var d;
|
|
4447
4447
|
try {
|
|
@@ -4451,7 +4451,7 @@ const ur = { class: "bg-white flex flex-col max-h-dvh" }, dr = {
|
|
|
4451
4451
|
}
|
|
4452
4452
|
}, u = () => {
|
|
4453
4453
|
const { init: d } = on();
|
|
4454
|
-
d({ apiKey: "
|
|
4454
|
+
d({ apiKey: "6GhcttsJ9Rj9cTevcdrpin" }).catch((f) => console.warn("Feature flag initialization failed:", f));
|
|
4455
4455
|
}, h = async () => {
|
|
4456
4456
|
const d = s.value;
|
|
4457
4457
|
if (d != null && d.token)
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as Ct, resolveComponent as M, openBlock as E, createElementBlock as O, createElementVNode as z, toDisplayString as h, unref as s, createVNode as f, computed as de, ref as V, watch as vt, onMounted as lr, createBlock as q, isRef as Ra, createSlots as Qd, withCtx as N, createCommentVNode as U, Fragment as fe, renderList as Ue, normalizeClass as Ia, withModifiers as sr, nextTick as va, createTextVNode as Qr, Teleport as Jd, h as re } from "vue";
|
|
2
|
-
import { b as xd, C as el, r as Jr, h as li, c as nl, w as tl, e as il, S as ol, x as rl, F as al, u as Oa, y as ae, z as qo, A as Le, B as r, D as F, G as Pa, H as In, v as dl } from "./index-
|
|
2
|
+
import { b as xd, C as el, r as Jr, h as li, c as nl, w as tl, e as il, S as ol, x as rl, F as al, u as Oa, y as ae, z as qo, A as Le, B as r, D as F, G as Pa, H as In, v as dl } from "./index-d3bc8ba2.js";
|
|
3
3
|
import { useI18n as xn, useCoreStore as ur } from "@feedmepos/mf-common";
|
|
4
4
|
import { useProxiedModel as ao, useSnackbar as si, SnackbarPosition as ze, useBreakpoints as cr, useDialogChild as Sa, useDialog as Ca, components as ht } from "@feedmepos/ui-library";
|
|
5
5
|
import { storeToRefs as ll } from "pinia";
|
|
@@ -8752,7 +8752,7 @@ const im = { class: "fm-typo-en-body-md-400" }, om = { class: "xs:flex-col-rever
|
|
|
8752
8752
|
}, Te = (u) => {
|
|
8753
8753
|
if (!u.restaurantId)
|
|
8754
8754
|
return;
|
|
8755
|
-
const y = `https://grafana.feedme.farm/d/ee5tjb68adwjkb/pos-dashboard-quickwit?orgId=1&var-maxRows=1000&var-severity=All&var-env=
|
|
8755
|
+
const y = `https://grafana.feedme.farm/d/ee5tjb68adwjkb/pos-dashboard-quickwit?orgId=1&var-maxRows=1000&var-severity=All&var-env=prod&var-country=All&var-restaurantId=${u.restaurantId}`;
|
|
8756
8756
|
d.open({
|
|
8757
8757
|
message: t("device.logs.redirect", { name: u.name ?? qi(u.restaurantId) }),
|
|
8758
8758
|
type: "success",
|
package/dist/app.js
CHANGED
|
@@ -542,12 +542,12 @@ const r = {
|
|
|
542
542
|
{
|
|
543
543
|
path: "/",
|
|
544
544
|
name: "$devices",
|
|
545
|
-
component: e(() => import("./DeviceList-
|
|
545
|
+
component: e(() => import("./DeviceList-ade2bdf9.js"))
|
|
546
546
|
}
|
|
547
547
|
], c = {
|
|
548
548
|
"en-US": i,
|
|
549
549
|
"zh-CN": t
|
|
550
|
-
}, d = e(() => import("./App-
|
|
550
|
+
}, d = e(() => import("./App-4307927f.js"));
|
|
551
551
|
export {
|
|
552
552
|
d as FmApp,
|
|
553
553
|
c as i18nMessages,
|