@feedmepos/mf-mdm 1.6.2-beta.206 → 1.6.2-beta.209
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
|
|
2
|
+
import { r as ge, g as nt, i as Gt, a as Bt, _, 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-023f1b85.js";
|
|
3
3
|
import { useCoreStore as an } from "@feedmepos/mf-common";
|
|
4
4
|
import "pinia";
|
|
5
5
|
var cn = "firebase", ln = "10.12.2";
|
|
@@ -55,7 +55,7 @@ const Y = new Qt("@firebase/auth");
|
|
|
55
55
|
function dn(n, ...e) {
|
|
56
56
|
Y.logLevel <= st.WARN && Y.warn(`Auth (${W}): ${n}`, ...e);
|
|
57
57
|
}
|
|
58
|
-
function
|
|
58
|
+
function B(n, ...e) {
|
|
59
59
|
Y.logLevel <= st.ERROR && Y.error(`Auth (${W}): ${n}`, ...e);
|
|
60
60
|
}
|
|
61
61
|
/**
|
|
@@ -102,7 +102,7 @@ function l(n, e, ...t) {
|
|
|
102
102
|
}
|
|
103
103
|
function v(n) {
|
|
104
104
|
const e = "INTERNAL ASSERTION FAILED: " + n;
|
|
105
|
-
throw
|
|
105
|
+
throw B(e), new Error(e);
|
|
106
106
|
}
|
|
107
107
|
function T(n, e) {
|
|
108
108
|
n || v(e);
|
|
@@ -188,7 +188,7 @@ function pn() {
|
|
|
188
188
|
*/
|
|
189
189
|
class q {
|
|
190
190
|
constructor(e, t) {
|
|
191
|
-
this.shortDelay = e, this.longDelay = t, T(t > e, "Short delay should be less than long delay!"), this.isMobile =
|
|
191
|
+
this.shortDelay = e, this.longDelay = t, T(t > e, "Short delay should be less than long delay!"), this.isMobile = Gt() || Bt();
|
|
192
192
|
}
|
|
193
193
|
get() {
|
|
194
194
|
return fn() ? this.isMobile ? this.longDelay : this.shortDelay : Math.min(5e3, this.shortDelay);
|
|
@@ -411,17 +411,17 @@ async function ut(n, e, t) {
|
|
|
411
411
|
r.clearNetworkTimeout();
|
|
412
412
|
const o = await s.json();
|
|
413
413
|
if ("needConfirmation" in o)
|
|
414
|
-
throw
|
|
414
|
+
throw G(n, "account-exists-with-different-credential", o);
|
|
415
415
|
if (s.ok && !("errorMessage" in o))
|
|
416
416
|
return o;
|
|
417
417
|
{
|
|
418
418
|
const c = s.ok ? o.errorMessage : o.error.message, [a, u] = c.split(" : ");
|
|
419
419
|
if (a === "FEDERATED_USER_ID_ALREADY_LINKED")
|
|
420
|
-
throw
|
|
420
|
+
throw G(n, "credential-already-in-use", o);
|
|
421
421
|
if (a === "EMAIL_EXISTS")
|
|
422
|
-
throw
|
|
422
|
+
throw G(n, "email-already-in-use", o);
|
|
423
423
|
if (a === "USER_DISABLED")
|
|
424
|
-
throw
|
|
424
|
+
throw G(n, "user-disabled", o);
|
|
425
425
|
const h = i[a] || a.toLowerCase().replace(/[_\s]+/g, "-");
|
|
426
426
|
if (u)
|
|
427
427
|
throw ct(n, h, u);
|
|
@@ -457,7 +457,7 @@ class _n {
|
|
|
457
457
|
clearTimeout(this.timer);
|
|
458
458
|
}
|
|
459
459
|
}
|
|
460
|
-
function
|
|
460
|
+
function G(n, e, t) {
|
|
461
461
|
const i = {
|
|
462
462
|
appName: n.name
|
|
463
463
|
};
|
|
@@ -537,12 +537,12 @@ function fe(n) {
|
|
|
537
537
|
function ke(n) {
|
|
538
538
|
const [e, t, i] = n.split(".");
|
|
539
539
|
if (e === void 0 || t === void 0 || i === void 0)
|
|
540
|
-
return
|
|
540
|
+
return B("JWT malformed, contained fewer than 3 sections"), null;
|
|
541
541
|
try {
|
|
542
542
|
const r = Zt(t);
|
|
543
|
-
return r ? JSON.parse(r) : (
|
|
543
|
+
return r ? JSON.parse(r) : (B("Failed to decode base64 JWT payload"), null);
|
|
544
544
|
} catch (r) {
|
|
545
|
-
return
|
|
545
|
+
return B("Caught error parsing JWT payload as JSON", r == null ? void 0 : r.toString()), null;
|
|
546
546
|
}
|
|
547
547
|
}
|
|
548
548
|
function je(n) {
|
|
@@ -2517,7 +2517,7 @@ class O {
|
|
|
2517
2517
|
this.user = e.user, this.providerId = e.providerId, this._tokenResponse = e._tokenResponse, this.operationType = e.operationType;
|
|
2518
2518
|
}
|
|
2519
2519
|
static async _fromIdTokenResponse(e, t, i, r = !1) {
|
|
2520
|
-
const s = await I._fromIdTokenResponse(e, i, r), o =
|
|
2520
|
+
const s = await I._fromIdTokenResponse(e, i, r), o = Ge(i);
|
|
2521
2521
|
return new O({
|
|
2522
2522
|
user: s,
|
|
2523
2523
|
providerId: o,
|
|
@@ -2531,7 +2531,7 @@ class O {
|
|
|
2531
2531
|
/* reload */
|
|
2532
2532
|
!0
|
|
2533
2533
|
);
|
|
2534
|
-
const r =
|
|
2534
|
+
const r = Ge(i);
|
|
2535
2535
|
return new O({
|
|
2536
2536
|
user: e,
|
|
2537
2537
|
providerId: r,
|
|
@@ -2540,7 +2540,7 @@ class O {
|
|
|
2540
2540
|
});
|
|
2541
2541
|
}
|
|
2542
2542
|
}
|
|
2543
|
-
function
|
|
2543
|
+
function Ge(n) {
|
|
2544
2544
|
return n.providerId ? n.providerId : "phoneNumber" in n ? "phone" : null;
|
|
2545
2545
|
}
|
|
2546
2546
|
/**
|
|
@@ -2649,7 +2649,7 @@ async function $n(n, e, t = !1) {
|
|
|
2649
2649
|
* See the License for the specific language governing permissions and
|
|
2650
2650
|
* limitations under the License.
|
|
2651
2651
|
*/
|
|
2652
|
-
async function
|
|
2652
|
+
async function Gn(n, e, t = !1) {
|
|
2653
2653
|
if (_(n.app))
|
|
2654
2654
|
return Promise.reject(A(n));
|
|
2655
2655
|
const i = "signIn", r = await Pt(n, i, e), s = await O._fromIdTokenResponse(n, i, r);
|
|
@@ -2671,7 +2671,7 @@ async function Bn(n, e, t = !1) {
|
|
|
2671
2671
|
* See the License for the specific language governing permissions and
|
|
2672
2672
|
* limitations under the License.
|
|
2673
2673
|
*/
|
|
2674
|
-
async function
|
|
2674
|
+
async function Bn(n, e) {
|
|
2675
2675
|
return dt(n, "POST", "/v1/accounts:signInWithCustomToken", ne(n, e));
|
|
2676
2676
|
}
|
|
2677
2677
|
/**
|
|
@@ -2693,7 +2693,7 @@ async function Gn(n, e) {
|
|
|
2693
2693
|
async function Kn(n, e) {
|
|
2694
2694
|
if (_(n.app))
|
|
2695
2695
|
return Promise.reject(A(n));
|
|
2696
|
-
const t = re(n), i = await
|
|
2696
|
+
const t = re(n), i = await Bn(t, {
|
|
2697
2697
|
token: e,
|
|
2698
2698
|
returnSecureToken: !0
|
|
2699
2699
|
}), r = await O._fromIdTokenResponse(t, "signIn", i);
|
|
@@ -3233,7 +3233,7 @@ function ve() {
|
|
|
3233
3233
|
});
|
|
3234
3234
|
});
|
|
3235
3235
|
}
|
|
3236
|
-
async function
|
|
3236
|
+
async function Be(n, e, t) {
|
|
3237
3237
|
const i = oe(n, !0).put({
|
|
3238
3238
|
[Ut]: e,
|
|
3239
3239
|
value: t
|
|
@@ -3338,7 +3338,7 @@ class Mt {
|
|
|
3338
3338
|
if (!indexedDB)
|
|
3339
3339
|
return !1;
|
|
3340
3340
|
const e = await ve();
|
|
3341
|
-
return await
|
|
3341
|
+
return await Be(e, ee, "1"), await Ke(e, ee), !0;
|
|
3342
3342
|
} catch {
|
|
3343
3343
|
}
|
|
3344
3344
|
return !1;
|
|
@@ -3352,7 +3352,7 @@ class Mt {
|
|
|
3352
3352
|
}
|
|
3353
3353
|
}
|
|
3354
3354
|
async _set(e, t) {
|
|
3355
|
-
return this._withPendingWrite(async () => (await this._withRetries((i) =>
|
|
3355
|
+
return this._withPendingWrite(async () => (await this._withRetries((i) => Be(i, e, t)), this.localCache[e] = t, this.notifyServiceWorker(e)));
|
|
3356
3356
|
}
|
|
3357
3357
|
async _get(e) {
|
|
3358
3358
|
const t = await this._withRetries((i) => li(i, e));
|
|
@@ -3472,7 +3472,7 @@ class Re extends St {
|
|
|
3472
3472
|
}
|
|
3473
3473
|
}
|
|
3474
3474
|
function pi(n) {
|
|
3475
|
-
return
|
|
3475
|
+
return Gn(n.auth, new Re(n), n.bypassAuthState);
|
|
3476
3476
|
}
|
|
3477
3477
|
function gi(n) {
|
|
3478
3478
|
const { auth: e, user: t } = n;
|
|
@@ -4051,7 +4051,7 @@ const qi = {
|
|
|
4051
4051
|
resizable: "yes",
|
|
4052
4052
|
statusbar: "yes",
|
|
4053
4053
|
toolbar: "no"
|
|
4054
|
-
}, zi = 500, $i = 600,
|
|
4054
|
+
}, zi = 500, $i = 600, Gi = "_blank", Bi = "http://localhost";
|
|
4055
4055
|
class Ye {
|
|
4056
4056
|
constructor(e) {
|
|
4057
4057
|
this.window = e, this.associatedEvent = null;
|
|
@@ -4073,7 +4073,7 @@ function Ki(n, e, t, i = zi, r = $i) {
|
|
|
4073
4073
|
top: s,
|
|
4074
4074
|
left: o
|
|
4075
4075
|
}), u = p().toLowerCase();
|
|
4076
|
-
t && (c = _t(u) ?
|
|
4076
|
+
t && (c = _t(u) ? Gi : t), mt(u) && (e = e || Bi, a.scrollbars = "yes");
|
|
4077
4077
|
const h = Object.entries(a).reduce((f, [E, N]) => `${f}${E}=${N},`, "");
|
|
4078
4078
|
if (bn(u) && c !== "_self")
|
|
4079
4079
|
return Ji(e || "", c), new Ye(null);
|
|
@@ -4451,7 +4451,10 @@ 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({
|
|
4454
|
+
d({
|
|
4455
|
+
apiKey: "MaGoXrEWuEJNpWgKTqseee",
|
|
4456
|
+
url: {}.VITE_FEATURE_FLAG_URL
|
|
4457
|
+
}).catch((f) => console.warn("Feature flag initialization failed:", f));
|
|
4455
4458
|
}, h = async () => {
|
|
4456
4459
|
const d = s.value;
|
|
4457
4460
|
if (d != null && d.token)
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as Ne, resolveComponent as I, openBlock as p, createElementBlock as g, createElementVNode as l, toDisplayString as h, unref as i, createVNode as f, computed as Q, ref as N, watch as je, onMounted as mt, createBlock as V, isRef as nn, createSlots as On, withCtx as k, createCommentVNode as C, Fragment as oe, renderList as me, normalizeClass as on, withModifiers as Rt, nextTick as sn, createTextVNode as Ct, Teleport as Sn, h as X } from "vue";
|
|
2
|
-
import { b as An, C as Dn, r as Wt, h as nt, c as xn, w as zn, e as Nn, S as Pn, x as Un, F as Ln, u as an, y as Z, z as Mn, A as J, B as Tt, D as we, G as pt, H as ln, I as lt, v as Bn } from "./index-
|
|
2
|
+
import { b as An, C as Dn, r as Wt, h as nt, c as xn, w as zn, e as Nn, S as Pn, x as Un, F as Ln, u as an, y as Z, z as Mn, A as J, B as Tt, D as we, G as pt, H as ln, I as lt, v as Bn } from "./index-023f1b85.js";
|
|
3
3
|
import { useI18n as Se, useCoreStore as ft } from "@feedmepos/mf-common";
|
|
4
4
|
import { useProxiedModel as dt, useSnackbar as qe, SnackbarPosition as W, useBreakpoints as Ot, useDialog as St, useDialogChild as rn, components as $e } from "@feedmepos/ui-library";
|
|
5
5
|
import { storeToRefs as $n } from "pinia";
|
package/dist/app.js
CHANGED
|
@@ -888,13 +888,13 @@ const r = {
|
|
|
888
888
|
{
|
|
889
889
|
path: "/",
|
|
890
890
|
name: "$devices",
|
|
891
|
-
component: e(() => import("./DeviceList-
|
|
891
|
+
component: e(() => import("./DeviceList-d7bfa704.js"))
|
|
892
892
|
}
|
|
893
893
|
], l = {
|
|
894
894
|
"en-US": i,
|
|
895
895
|
"zh-CN": n,
|
|
896
896
|
"th-TH": a
|
|
897
|
-
}, m = e(() => import("./App-
|
|
897
|
+
}, m = e(() => import("./App-722a83f5.js"));
|
|
898
898
|
export {
|
|
899
899
|
m as FmApp,
|
|
900
900
|
l as i18nMessages,
|