@feedmepos/mf-common 1.8.30 → 1.8.31
Sign up to get free protection for your applications and to get access to all the features.
package/dist/app.js
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
var Vc = Object.defineProperty;
|
2
2
|
var Gc = (s, l, u) => l in s ? Vc(s, l, { enumerable: !0, configurable: !0, writable: !0, value: u }) : s[l] = u;
|
3
3
|
var pn = (s, l, u) => (Gc(s, typeof l != "symbol" ? l + "" : l, u), u);
|
4
|
-
import { ref as je, shallowRef as Hc, computed as Ye, unref as Be, onMounted as Oa, nextTick as Rl, getCurrentScope as Yc, onScopeDispose as Zc, isRef as wi, getCurrentInstance as Ol, reactive as vs, watch as Vn, defineComponent as Ft, onBeforeUnmount as kl, resolveComponent as Ne, openBlock as Se, createElementBlock as De, createVNode as
|
4
|
+
import { ref as je, shallowRef as Hc, computed as Ye, unref as Be, onMounted as Oa, nextTick as Rl, getCurrentScope as Yc, onScopeDispose as Zc, isRef as wi, getCurrentInstance as Ol, reactive as vs, watch as Vn, defineComponent as Ft, onBeforeUnmount as kl, resolveComponent as Ne, openBlock as Se, createElementBlock as De, createVNode as ze, withCtx as Ve, createElementVNode as me, Fragment as Tt, renderList as Dn, createBlock as xe, normalizeClass as wn, toDisplayString as at, withModifiers as Ca, resolveDirective as Kc, withDirectives as Pl, createCommentVNode as ut, renderSlot as js, createTextVNode as jl, mergeProps as Bl, watchEffect as qr, Teleport as Sa, Transition as Ur, normalizeStyle as xc, resolveDynamicComponent as ka, vShow as Wc, markRaw as Vo } from "vue";
|
5
5
|
import { defineStore as Jc, storeToRefs as Qc } from "pinia";
|
6
6
|
import { useRouter as Bs, useRoute as Ml } from "vue-router";
|
7
7
|
import { useDialog as zi, useProxiedModel as _r, useDialogChild as Ms, useSnackbar as Ns, components as Xc, useBreakpoints as Ds } from "@feedmepos/ui-library";
|
@@ -538,9 +538,9 @@ var Ls = {};
|
|
538
538
|
return t === null && (t = e.vz(n).prototype), t;
|
539
539
|
};
|
540
540
|
}
|
541
|
-
var
|
541
|
+
var we = 0;
|
542
542
|
function fe(n, t, r, a, o, d, f, h, p, g) {
|
543
|
-
return typeof h == "number" && (h +=
|
543
|
+
return typeof h == "number" && (h += we), { co: n, iS: t, iI: r, rC: a, dV: o, cs: d, fs: f, fT: h, aI: p || 0, nDA: g };
|
544
544
|
}
|
545
545
|
function ce(n, t, r, a, o, d, f, h) {
|
546
546
|
var p = fe(n, !0, !1, r, a, o, d, f, h, !1), g = Q(p);
|
@@ -18166,8 +18166,8 @@ function qs() {
|
|
18166
18166
|
path: oe
|
18167
18167
|
};
|
18168
18168
|
let Q = "";
|
18169
|
-
const
|
18170
|
-
for (const fe of
|
18169
|
+
const we = ae.filter((fe) => !!fe).slice().reverse();
|
18170
|
+
for (const fe of we)
|
18171
18171
|
Q = fe(he, { data: J, defaultError: Q }).message;
|
18172
18172
|
return {
|
18173
18173
|
...Y,
|
@@ -18899,7 +18899,7 @@ var Dl = {}, Ll = {};
|
|
18899
18899
|
typeName: C.ZodNull,
|
18900
18900
|
...F(X)
|
18901
18901
|
});
|
18902
|
-
class
|
18902
|
+
class we extends M {
|
18903
18903
|
constructor() {
|
18904
18904
|
super(...arguments), this._any = !0;
|
18905
18905
|
}
|
@@ -18907,7 +18907,7 @@ var Dl = {}, Ll = {};
|
|
18907
18907
|
return u.OK(I.data);
|
18908
18908
|
}
|
18909
18909
|
}
|
18910
|
-
s.ZodAny =
|
18910
|
+
s.ZodAny = we, we.create = (X) => new we({
|
18911
18911
|
typeName: C.ZodAny,
|
18912
18912
|
...F(X)
|
18913
18913
|
});
|
@@ -19992,12 +19992,12 @@ var Dl = {}, Ll = {};
|
|
19992
19992
|
typeName: C.ZodNaN,
|
19993
19993
|
...F(X)
|
19994
19994
|
});
|
19995
|
-
const T = (X, I = {}, B) => X ?
|
19995
|
+
const T = (X, I = {}, B) => X ? we.create().superRefine((D, ne) => {
|
19996
19996
|
if (!X(D)) {
|
19997
19997
|
const ie = typeof I == "function" ? I(D) : I, de = typeof ie == "string" ? { message: ie } : ie;
|
19998
19998
|
ne.addIssue({ code: "custom", ...de, fatal: B });
|
19999
19999
|
}
|
20000
|
-
}) :
|
20000
|
+
}) : we.create();
|
20001
20001
|
s.custom = T, s.late = {
|
20002
20002
|
object: Fe.lazycreate
|
20003
20003
|
};
|
@@ -20025,7 +20025,7 @@ var Dl = {}, Ll = {};
|
|
20025
20025
|
s.undefined = le;
|
20026
20026
|
const te = Q.create;
|
20027
20027
|
s.null = te;
|
20028
|
-
const re =
|
20028
|
+
const re = we.create;
|
20029
20029
|
s.any = re;
|
20030
20030
|
const pe = fe.create;
|
20031
20031
|
s.unknown = pe;
|
@@ -20850,8 +20850,8 @@ function Vu() {
|
|
20850
20850
|
}
|
20851
20851
|
if (J.open(F.method.toUpperCase(), u(F.url, F.params, F.paramsSerializer), !0), J.timeout = F.timeout, J.onreadystatechange = function() {
|
20852
20852
|
if (!(!J || J.readyState !== 4) && !(J.status === 0 && !(J.responseURL && J.responseURL.indexOf("file:") === 0))) {
|
20853
|
-
var Q = "getAllResponseHeaders" in J ? m(J.getAllResponseHeaders()) : null,
|
20854
|
-
data:
|
20853
|
+
var Q = "getAllResponseHeaders" in J ? m(J.getAllResponseHeaders()) : null, we = !F.responseType || F.responseType === "text" ? J.responseText : J.response, fe = {
|
20854
|
+
data: we,
|
20855
20855
|
status: J.status,
|
20856
20856
|
statusText: J.statusText,
|
20857
20857
|
headers: Q,
|
@@ -20873,8 +20873,8 @@ function Vu() {
|
|
20873
20873
|
var Y = Mf(), oe = (F.withCredentials || b(F.url)) && F.xsrfCookieName ? Y.read(F.xsrfCookieName) : void 0;
|
20874
20874
|
oe && (W[F.xsrfHeaderName] = oe);
|
20875
20875
|
}
|
20876
|
-
if ("setRequestHeader" in J && s.forEach(W, function(Q,
|
20877
|
-
typeof q > "u" &&
|
20876
|
+
if ("setRequestHeader" in J && s.forEach(W, function(Q, we) {
|
20877
|
+
typeof q > "u" && we.toLowerCase() === "content-type" ? delete W[we] : J.setRequestHeader(we, Q);
|
20878
20878
|
}), F.withCredentials && (J.withCredentials = !0), F.responseType)
|
20879
20879
|
try {
|
20880
20880
|
J.responseType = F.responseType;
|
@@ -21427,7 +21427,7 @@ Zs.write = function(s, l, u, m, b, z) {
|
|
21427
21427
|
}
|
21428
21428
|
}
|
21429
21429
|
F.byteLength = Q;
|
21430
|
-
function
|
21430
|
+
function we(O, v, w) {
|
21431
21431
|
let j = !1;
|
21432
21432
|
if ((v === void 0 || v < 0) && (v = 0), v > this.length || ((w === void 0 || w > this.length) && (w = this.length), w <= 0) || (w >>>= 0, v >>>= 0, w <= v))
|
21433
21433
|
return "";
|
@@ -21484,7 +21484,7 @@ Zs.write = function(s, l, u, m, b, z) {
|
|
21484
21484
|
return this;
|
21485
21485
|
}, F.prototype.toString = function() {
|
21486
21486
|
const v = this.length;
|
21487
|
-
return v === 0 ? "" : arguments.length === 0 ? e(this, 0, v) :
|
21487
|
+
return v === 0 ? "" : arguments.length === 0 ? e(this, 0, v) : we.apply(this, arguments);
|
21488
21488
|
}, F.prototype.toLocaleString = F.prototype.toString, F.prototype.equals = function(v) {
|
21489
21489
|
if (!F.isBuffer(v))
|
21490
21490
|
throw new TypeError("Argument must be a Buffer");
|
@@ -22851,23 +22851,23 @@ Va.getWechatUserByCode = Jh;
|
|
22851
22851
|
(function(s) {
|
22852
22852
|
var l = Le && Le.__extends || function() {
|
22853
22853
|
var oe = function(he, Q) {
|
22854
|
-
return oe = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(
|
22855
|
-
|
22856
|
-
} || function(
|
22854
|
+
return oe = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(we, fe) {
|
22855
|
+
we.__proto__ = fe;
|
22856
|
+
} || function(we, fe) {
|
22857
22857
|
for (var ce in fe)
|
22858
|
-
fe.hasOwnProperty(ce) && (
|
22858
|
+
fe.hasOwnProperty(ce) && (we[ce] = fe[ce]);
|
22859
22859
|
}, oe(he, Q);
|
22860
22860
|
};
|
22861
22861
|
return function(he, Q) {
|
22862
22862
|
oe(he, Q);
|
22863
|
-
function
|
22863
|
+
function we() {
|
22864
22864
|
this.constructor = he;
|
22865
22865
|
}
|
22866
|
-
he.prototype = Q === null ? Object.create(Q) : (
|
22866
|
+
he.prototype = Q === null ? Object.create(Q) : (we.prototype = Q.prototype, new we());
|
22867
22867
|
};
|
22868
22868
|
}(), u = Le && Le.__assign || function() {
|
22869
22869
|
return u = Object.assign || function(oe) {
|
22870
|
-
for (var he, Q = 1,
|
22870
|
+
for (var he, Q = 1, we = arguments.length; Q < we; Q++) {
|
22871
22871
|
he = arguments[Q];
|
22872
22872
|
for (var fe in he)
|
22873
22873
|
Object.prototype.hasOwnProperty.call(he, fe) && (oe[fe] = he[fe]);
|
@@ -22894,12 +22894,12 @@ Va.getWechatUserByCode = Jh;
|
|
22894
22894
|
var he = (
|
22895
22895
|
/** @class */
|
22896
22896
|
function(Q) {
|
22897
|
-
l(
|
22898
|
-
function
|
22897
|
+
l(we, Q);
|
22898
|
+
function we(fe, ce, Ee) {
|
22899
22899
|
var Oe = Q.call(this, fe) || this;
|
22900
22900
|
return Oe.code = ce, Oe.raw = Ee, Oe;
|
22901
22901
|
}
|
22902
|
-
return
|
22902
|
+
return we;
|
22903
22903
|
}(Error)
|
22904
22904
|
);
|
22905
22905
|
oe.RMError = he, function(Q) {
|
@@ -22907,7 +22907,7 @@ Va.getWechatUserByCode = Jh;
|
|
22907
22907
|
}(oe.PaymentTransactionItemStatus || (oe.PaymentTransactionItemStatus = {}));
|
22908
22908
|
})(ee = s.RM || (s.RM = {}));
|
22909
22909
|
function ae(oe, he, Q) {
|
22910
|
-
var
|
22910
|
+
var we = m.default.create({
|
22911
22911
|
baseURL: oe,
|
22912
22912
|
timeout: he,
|
22913
22913
|
headers: {
|
@@ -22915,7 +22915,7 @@ Va.getWechatUserByCode = Jh;
|
|
22915
22915
|
},
|
22916
22916
|
adapter: Q
|
22917
22917
|
});
|
22918
|
-
return
|
22918
|
+
return we.interceptors.response.use(function(fe) {
|
22919
22919
|
var ce = fe.data;
|
22920
22920
|
if (ce) {
|
22921
22921
|
if (ce.error)
|
@@ -22935,7 +22935,7 @@ Va.getWechatUserByCode = Jh;
|
|
22935
22935
|
return ce && ce.error ? Promise.reject(new ee.RMError(ce.error.message, ce.error.code, fe)) : Promise.reject(new ee.RMError("unhandled revenue monster error", "UNKNOWN_ERROR", fe));
|
22936
22936
|
}
|
22937
22937
|
return Promise.reject(new ee.RMError(fe.message, "NETWORK_ERROR", fe));
|
22938
|
-
}),
|
22938
|
+
}), we;
|
22939
22939
|
}
|
22940
22940
|
function Y(oe) {
|
22941
22941
|
var he = {
|
@@ -22946,7 +22946,7 @@ Va.getWechatUserByCode = Jh;
|
|
22946
22946
|
privateKey: "",
|
22947
22947
|
oauthApiVersion: "v1",
|
22948
22948
|
openApiVersion: "v3"
|
22949
|
-
}, Q = u({}, he, oe),
|
22949
|
+
}, Q = u({}, he, oe), we = Q.isProduction ? "https://oauth.revenuemonster.my/" + Q.oauthApiVersion : "https://sb-oauth.revenuemonster.my/" + Q.oauthApiVersion, fe = Q.isProduction ? "https://open.revenuemonster.my/" + Q.openApiVersion : "https://sb-open.revenuemonster.my/" + Q.openApiVersion, ce = oe ? oe.adapter : void 0, Ee = ae(we, Q.timeout, ce), Oe = ae(fe, Q.timeout, ce);
|
22950
22950
|
return {
|
22951
22951
|
timeout: Q.timeout,
|
22952
22952
|
isProduction: Q.isProduction,
|
@@ -22954,7 +22954,7 @@ Va.getWechatUserByCode = Jh;
|
|
22954
22954
|
clientSecret: Q.clientSecret,
|
22955
22955
|
privateKey: Q.privateKey,
|
22956
22956
|
oauthApiVersion: Q.oauthApiVersion,
|
22957
|
-
oauthUrl:
|
22957
|
+
oauthUrl: we,
|
22958
22958
|
openApiVersion: Q.openApiVersion,
|
22959
22959
|
openApiUrl: fe,
|
22960
22960
|
oauthInstance: Ee,
|
@@ -22976,7 +22976,7 @@ Va.getWechatUserByCode = Jh;
|
|
22976
22976
|
clientSecret: Q.clientSecret,
|
22977
22977
|
privateKey: Q.privateKey,
|
22978
22978
|
oauthApiVersion: Q.oauthApiVersion,
|
22979
|
-
oauthUrl:
|
22979
|
+
oauthUrl: we,
|
22980
22980
|
openApiVersion: Q.openApiVersion,
|
22981
22981
|
openApiUrl: fe,
|
22982
22982
|
oauthInstance: Ee,
|
@@ -24989,7 +24989,7 @@ Zi.F_SERVICE_CHARGE_ORDER_TYPE = V1.z.enum([
|
|
24989
24989
|
})(au);
|
24990
24990
|
(function(s) {
|
24991
24991
|
Object.defineProperty(s, "__esModule", { value: !0 }), s.FdtoRejectOrderReq = s.FdtoAcceptOrderReq = s.FdtoDemoRestaurantRes = s.FdtoUpdateVersionReq = s.FdtoPosCurrentTimeRes = s.FdtoRegisterMachineReq = s.FdtoGenerateCreditOtpRes = s.FdtoGenerateCreditOtpReq = s.FdtoCompileReportWidgetRes = s.FdtoReportWidget = s.F_WIDGET_WIDTH = s.F_WIDGET_VISUALIZATION_TYPE = s.FdtoCompileReportReq = s.FdtoDateRangeReq = s.FdtoCompileCloseCounterReceiptReq = s.FdtoCanRes = s.FdtoCanPermissionRes = s.FdtoCanReq = s.FdtoSkuConvertRes = s.FdtoSkuConversionBalancesRes = s.FdtoSkuConversionBalance = s.FdtoUpdateStockBalanceReq = s.FdtoDeductableItem = s.FdtoDeductableSubItem = s.FdtoSpecialAdjustmentRes = s.FdtoSpecialAdjustmentReq = s.F_QUERY_ENGINE_LOG_TYPE = s.FdtoFeedmeEndpointReq = s.FdtoAdjustReq = s.FdtoCreateEffectsReq = s.FdtoEffect = s.FdtoRemoveEffectsReq = s.FdtoApplyMemberReq = s.FdtoCreateBillItemAdjustmentReq = s.FdtoChangePaymentMethodReq = s.FdtoItemKitchenReq = s.FdtoServeItemsReq = s.FdtoSendItemsReq = s.FdtoMoveRes = s.FdtoMoveReq = s.FdtoRefundRes = s.FdtoVoidItemsReq = s.FdtoStockItem = s.FdtoCreateOrUpdateItemsReq = s.FdtoItemBalanceMapping = s.FdtoItemBalanceInfo = s.FdtoItemVariantBalanceInfo = s.FdtoCreateOrUpdateItemsRes = s.FdtoCreatePaymentReq = s.FdtoRefundReq = void 0, s.FdtoRectifyBillItemRes = s.FdtoCreateBill = s.FdtoUpdateItemsInventoryReq = s.FdtoCreateItem = s.FdtoFlatBill = s.FdtoRestaurantFeatures = s.FdtoRefetchEPaymentReq = s.FdtoRefundMemberStorePurchaseReq = s.FdtoCreateMemberStorePurchaseReq = s.FdtoApplyVoucherClaimReq = void 0;
|
24992
|
-
const l = Ce, u = K, m = Ut, b = Wr, z = eu, S = et, F = Bi, M = zr, P = zn, U = Pt, q = Gi, W = nu, J = Xr, ee = Dt, ae = Lt, Y = ru, oe = ni, he = au, Q = ja,
|
24992
|
+
const l = Ce, u = K, m = Ut, b = Wr, z = eu, S = et, F = Bi, M = zr, P = zn, U = Pt, q = Gi, W = nu, J = Xr, ee = Dt, ae = Lt, Y = ru, oe = ni, he = au, Q = ja, we = Gn, fe = Cr, ce = Pi, Ee = ji, Oe = Mi, Ge = Sr, We = un;
|
24993
24993
|
s.FdtoRefundReq = u.z.object({
|
24994
24994
|
bill: Q.FdoBill,
|
24995
24995
|
refundRecord: u.z.array(Q.FdoBill),
|
@@ -25076,7 +25076,7 @@ Zi.F_SERVICE_CHARGE_ORDER_TYPE = V1.z.enum([
|
|
25076
25076
|
F.FdoItemEffect,
|
25077
25077
|
M.FdoPaymentEffect
|
25078
25078
|
]).describe(l.ZodMeta.dart().discriminatedUnion({ baseType: "FdoBaseEffect" }).build()),
|
25079
|
-
from:
|
25079
|
+
from: we.F_ADJUSTMENT_CAUSE,
|
25080
25080
|
name: u.z.string(),
|
25081
25081
|
autoApplied: u.z.boolean().nullish(),
|
25082
25082
|
referenceId: u.z.string(),
|
@@ -29246,10 +29246,10 @@ function So(s, l, u) {
|
|
29246
29246
|
if (se.endsWith(ae, "{}"))
|
29247
29247
|
ae = m ? ae : ae.slice(0, -2), ee = JSON.stringify(ee);
|
29248
29248
|
else if (se.isArray(ee) && Um(ee) || (se.isFileList(ee) || se.endsWith(ae, "[]")) && (oe = se.toArray(ee)))
|
29249
|
-
return ae = _c(ae), oe.forEach(function(Q,
|
29249
|
+
return ae = _c(ae), oe.forEach(function(Q, we) {
|
29250
29250
|
!(se.isUndefined(Q) || Q === null) && l.append(
|
29251
29251
|
// eslint-disable-next-line no-nested-ternary
|
29252
|
-
S === !0 ? ml([ae],
|
29252
|
+
S === !0 ? ml([ae], we, z) : S === null ? ae : ae + "[]",
|
29253
29253
|
P(Q)
|
29254
29254
|
);
|
29255
29255
|
}), !1;
|
@@ -29985,16 +29985,16 @@ const Tc = (s) => {
|
|
29985
29985
|
}, Y.onerror = function() {
|
29986
29986
|
m(new Ue("Network Error", Ue.ERR_NETWORK, s, Y)), Y = null;
|
29987
29987
|
}, Y.ontimeout = function() {
|
29988
|
-
let
|
29988
|
+
let we = b.timeout ? "timeout of " + b.timeout + "ms exceeded" : "timeout exceeded";
|
29989
29989
|
const fe = b.transitional || Fc;
|
29990
|
-
b.timeoutErrorMessage && (
|
29991
|
-
|
29990
|
+
b.timeoutErrorMessage && (we = b.timeoutErrorMessage), m(new Ue(
|
29991
|
+
we,
|
29992
29992
|
fe.clarifyTimeoutError ? Ue.ETIMEDOUT : Ue.ECONNABORTED,
|
29993
29993
|
s,
|
29994
29994
|
Y
|
29995
29995
|
)), Y = null;
|
29996
|
-
}, z === void 0 && S.setContentType(null), "setRequestHeader" in Y && se.forEach(S.toJSON(), function(
|
29997
|
-
Y.setRequestHeader(fe,
|
29996
|
+
}, z === void 0 && S.setContentType(null), "setRequestHeader" in Y && se.forEach(S.toJSON(), function(we, fe) {
|
29997
|
+
Y.setRequestHeader(fe, we);
|
29998
29998
|
}), se.isUndefined(b.withCredentials) || (Y.withCredentials = !!b.withCredentials), F && F !== "json" && (Y.responseType = b.responseType), P && ([W, ee] = Aa(P, !0), Y.addEventListener("progress", W)), M && Y.upload && ([q, J] = Aa(M), Y.upload.addEventListener("progress", q), Y.upload.addEventListener("loadend", J)), (b.cancelToken || b.signal) && (U = (Q) => {
|
29999
29999
|
Y && (m(!Q || Q.type ? new fi(null, s, Y) : Q), Y.abort(), Y = null);
|
30000
30000
|
}, b.cancelToken && b.cancelToken.subscribe(U), b.signal && (b.signal.aborted ? U() : b.signal.addEventListener("abort", U)));
|
@@ -30194,10 +30194,10 @@ const zg = async (s) => {
|
|
30194
30194
|
);
|
30195
30195
|
}
|
30196
30196
|
P = P || "text";
|
30197
|
-
let
|
30197
|
+
let we = await Ia[se.findKey(Ia, P) || "text"](he, s);
|
30198
30198
|
return !Q && ae && ae(), await new Promise((fe, ce) => {
|
30199
30199
|
Cc(fe, ce, {
|
30200
|
-
data:
|
30200
|
+
data: we,
|
30201
30201
|
headers: Jt.from(he.headers),
|
30202
30202
|
status: he.status,
|
30203
30203
|
statusText: he.statusText,
|
@@ -30627,22 +30627,22 @@ pt.getAdapter = Rc.getAdapter;
|
|
30627
30627
|
pt.HttpStatusCode = Pg;
|
30628
30628
|
pt.default = pt;
|
30629
30629
|
const jc = pt, {
|
30630
|
-
Axios:
|
30630
|
+
Axios: Nb,
|
30631
30631
|
AxiosError: jg,
|
30632
|
-
CanceledError:
|
30633
|
-
isCancel:
|
30634
|
-
CancelToken:
|
30635
|
-
VERSION:
|
30636
|
-
all:
|
30637
|
-
Cancel:
|
30638
|
-
isAxiosError:
|
30639
|
-
spread:
|
30640
|
-
toFormData:
|
30641
|
-
AxiosHeaders:
|
30642
|
-
HttpStatusCode:
|
30643
|
-
formToJSON:
|
30644
|
-
getAdapter:
|
30645
|
-
mergeConfig:
|
30632
|
+
CanceledError: Db,
|
30633
|
+
isCancel: Lb,
|
30634
|
+
CancelToken: Ub,
|
30635
|
+
VERSION: qb,
|
30636
|
+
all: Vb,
|
30637
|
+
Cancel: Gb,
|
30638
|
+
isAxiosError: Hb,
|
30639
|
+
spread: Yb,
|
30640
|
+
toFormData: Zb,
|
30641
|
+
AxiosHeaders: Kb,
|
30642
|
+
HttpStatusCode: xb,
|
30643
|
+
formToJSON: Wb,
|
30644
|
+
getAdapter: Jb,
|
30645
|
+
mergeConfig: Qb
|
30646
30646
|
} = jc;
|
30647
30647
|
async function Bg() {
|
30648
30648
|
return Ht(await Wn("").post("/permissions/levels/0", {}));
|
@@ -31302,7 +31302,7 @@ const Jg = Jc("portal-core", () => {
|
|
31302
31302
|
if (r) {
|
31303
31303
|
Pn.getItem(ee) || Y(Kg(r.phoneNumber ?? ""));
|
31304
31304
|
const { customClaims: a } = await ct.getUserClaims(), o = await Ug();
|
31305
|
-
s.value = new Wg(r, a ?? {}, o), await
|
31305
|
+
s.value = new Wg(r, a ?? {}, o), await we(), await U(), await q();
|
31306
31306
|
} else
|
31307
31307
|
s.value = null, Q.value = [], Ge(void 0);
|
31308
31308
|
}
|
@@ -31331,10 +31331,10 @@ const Jg = Jc("portal-core", () => {
|
|
31331
31331
|
ae.value = r, Pn.setItem(ee, r);
|
31332
31332
|
}
|
31333
31333
|
async function oe(r) {
|
31334
|
-
ae.value != r && (ae.value = r, fe.value = void 0, ht.value = void 0, Q.value = [], We.value = [], Y(r), await
|
31334
|
+
ae.value != r && (ae.value = r, fe.value = void 0, ht.value = void 0, Q.value = [], We.value = [], Y(r), await we());
|
31335
31335
|
}
|
31336
31336
|
const he = "feedme_business", Q = je([]);
|
31337
|
-
async function
|
31337
|
+
async function we() {
|
31338
31338
|
var o;
|
31339
31339
|
const r = await Ng();
|
31340
31340
|
if (r.length === 0 && await Oe(), Q.value = r.map((d) => ({ ...d, id: d._id })), !((o = fe.value) == null ? void 0 : o.id)) {
|
@@ -31478,7 +31478,7 @@ const Jg = Jc("portal-core", () => {
|
|
31478
31478
|
changeCountry: oe,
|
31479
31479
|
businesses: Q,
|
31480
31480
|
currentBusiness: fe,
|
31481
|
-
readBusinesses:
|
31481
|
+
readBusinesses: we,
|
31482
31482
|
setCachedBusiness: ce,
|
31483
31483
|
changeBusiness: Ge,
|
31484
31484
|
restaurants: We,
|
@@ -31744,7 +31744,7 @@ function f0(s, l = {}) {
|
|
31744
31744
|
bottom: !1
|
31745
31745
|
}), Q = (Ee) => {
|
31746
31746
|
Y.value && (Y.value = !1, he.left = !1, he.right = !1, he.top = !1, he.bottom = !1, b(Ee));
|
31747
|
-
},
|
31747
|
+
}, we = a0(Q, u + m), fe = (Ee) => {
|
31748
31748
|
var Oe;
|
31749
31749
|
if (!P)
|
31750
31750
|
return;
|
@@ -31761,7 +31761,7 @@ function f0(s, l = {}) {
|
|
31761
31761
|
if (!P)
|
31762
31762
|
return;
|
31763
31763
|
const Ge = (Oe = Ee.target.documentElement) != null ? Oe : Ee.target;
|
31764
|
-
fe(Ge), Y.value = !0,
|
31764
|
+
fe(Ge), Y.value = !0, we(Ee), z(Ee);
|
31765
31765
|
};
|
31766
31766
|
return Tl(
|
31767
31767
|
s,
|
@@ -31875,9 +31875,9 @@ const p0 = { class: "flex flex-col space-y-16" }, m0 = { class: "grow" }, g0 = {
|
|
31875
31875
|
}), (q, W) => {
|
31876
31876
|
const J = Ne("fm-search"), ee = Ne("fm-form"), ae = Ne("fm-avatar"), Y = Ne("FmButton"), oe = Ne("FmListItem"), he = Ne("FmList");
|
31877
31877
|
return Se(), De("div", p0, [
|
31878
|
-
|
31878
|
+
ze(ee, null, {
|
31879
31879
|
default: Ve(() => [
|
31880
|
-
|
31880
|
+
ze(J, {
|
31881
31881
|
autofocus: "",
|
31882
31882
|
modelValue: m.value,
|
31883
31883
|
"onUpdate:modelValue": W[0] || (W[0] = (Q) => m.value = Q),
|
@@ -31891,7 +31891,7 @@ const p0 = { class: "flex flex-col space-y-16" }, m0 = { class: "grow" }, g0 = {
|
|
31891
31891
|
ref: u,
|
31892
31892
|
class: "flex flex-1 gap-16 overflow-scroll"
|
31893
31893
|
}, [
|
31894
|
-
|
31894
|
+
ze(he, {
|
31895
31895
|
class: "w-full h-fit space-y-16",
|
31896
31896
|
disabled: ""
|
31897
31897
|
}, {
|
@@ -31899,7 +31899,7 @@ const p0 = { class: "flex flex-col space-y-16" }, m0 = { class: "grow" }, g0 = {
|
|
31899
31899
|
(Se(!0), De(Tt, null, Dn(z.value, (Q) => (Se(), xe(oe, {
|
31900
31900
|
key: Q._id,
|
31901
31901
|
class: "rounded-md border border-fm-color-neutral-gray-100",
|
31902
|
-
onClick: (
|
31902
|
+
onClick: (we) => U(Q)
|
31903
31903
|
}, {
|
31904
31904
|
prepend: Ve(() => [
|
31905
31905
|
Q.thumbnail ? (Se(), xe(ae, {
|
@@ -31911,18 +31911,18 @@ const p0 = { class: "flex flex-col space-y-16" }, m0 = { class: "grow" }, g0 = {
|
|
31911
31911
|
}, null, 8, ["name"]))
|
31912
31912
|
]),
|
31913
31913
|
default: Ve(() => {
|
31914
|
-
var
|
31914
|
+
var we;
|
31915
31915
|
return [
|
31916
31916
|
me("div", m0, [
|
31917
31917
|
me("div", {
|
31918
31918
|
class: wn([[
|
31919
|
-
Q._id === ((
|
31919
|
+
Q._id === ((we = F.value) == null ? void 0 : we.id) ? "text-fm-color-primary" : "text-fm-color-typo-primary"
|
31920
31920
|
], "fm-typo-en-body-lg-600"])
|
31921
31921
|
}, at(Q.name), 3),
|
31922
31922
|
me("div", g0, at(Q._id), 1)
|
31923
31923
|
]),
|
31924
31924
|
me("div", y0, [
|
31925
|
-
|
31925
|
+
ze(Y, {
|
31926
31926
|
outline: !0,
|
31927
31927
|
"prepend-icon": "file_copy",
|
31928
31928
|
size: "md",
|
@@ -32008,7 +32008,7 @@ const jr = (s, l) => {
|
|
32008
32008
|
])),
|
32009
32009
|
default: Ve(() => [
|
32010
32010
|
me("div", F0, [
|
32011
|
-
|
32011
|
+
ze(q, { class: "rounded-md border border-fm-color-neutral-gray-100" }, {
|
32012
32012
|
prepend: Ve(() => {
|
32013
32013
|
var ee, ae, Y;
|
32014
32014
|
return [
|
@@ -32029,7 +32029,7 @@ const jr = (s, l) => {
|
|
32029
32029
|
me("div", C0, at((ae = m.value) == null ? void 0 : ae._id), 1)
|
32030
32030
|
]),
|
32031
32031
|
me("div", S0, [
|
32032
|
-
|
32032
|
+
ze(U, {
|
32033
32033
|
outline: !0,
|
32034
32034
|
"prepend-icon": "file_copy",
|
32035
32035
|
size: "md",
|
@@ -32055,7 +32055,7 @@ const jr = (s, l) => {
|
|
32055
32055
|
me("div", I0, at(ee == null ? void 0 : ee._id), 1)
|
32056
32056
|
]),
|
32057
32057
|
me("div", R0, [
|
32058
|
-
|
32058
|
+
ze(U, {
|
32059
32059
|
outline: !0,
|
32060
32060
|
"prepend-icon": "file_copy",
|
32061
32061
|
size: "md",
|
@@ -32117,7 +32117,7 @@ const jr = (s, l) => {
|
|
32117
32117
|
inputmode: m.value ? "password" : "text"
|
32118
32118
|
}), {
|
32119
32119
|
append: Ve(() => [
|
32120
|
-
|
32120
|
+
ze(S, {
|
32121
32121
|
name: m.value ? "visibility_off" : "visibility",
|
32122
32122
|
onClick: z[0] || (z[0] = (M) => m.value = !m.value),
|
32123
32123
|
outline: m.value
|
@@ -32156,7 +32156,7 @@ const jr = (s, l) => {
|
|
32156
32156
|
}), m("primary"));
|
32157
32157
|
};
|
32158
32158
|
return (P, U) => (Se(), De("div", O0, [
|
32159
|
-
|
32159
|
+
ze(Ps, {
|
32160
32160
|
modelValue: S.value,
|
32161
32161
|
"onUpdate:modelValue": U[0] || (U[0] = (q) => S.value = q),
|
32162
32162
|
label: "Current Password"
|
@@ -32186,7 +32186,7 @@ const jr = (s, l) => {
|
|
32186
32186
|
}
|
32187
32187
|
});
|
32188
32188
|
return (S, F) => (Se(), De("div", P0, [
|
32189
|
-
|
32189
|
+
ze(Ps, {
|
32190
32190
|
modelValue: b.value,
|
32191
32191
|
"onUpdate:modelValue": F[0] || (F[0] = (M) => b.value = M),
|
32192
32192
|
rules: [
|
@@ -32196,7 +32196,7 @@ const jr = (s, l) => {
|
|
32196
32196
|
"helper-text": "Use at least 8 characters.",
|
32197
32197
|
label: "New Password"
|
32198
32198
|
}, null, 8, ["modelValue", "rules"]),
|
32199
|
-
|
32199
|
+
ze(Ps, {
|
32200
32200
|
modelValue: z.value,
|
32201
32201
|
"onUpdate:modelValue": F[1] || (F[1] = (M) => z.value = M),
|
32202
32202
|
rules: [(M) => M === u.value || "Passwords do not match"],
|
@@ -32350,7 +32350,7 @@ const jr = (s, l) => {
|
|
32350
32350
|
);
|
32351
32351
|
};
|
32352
32352
|
return (ae, Y) => {
|
32353
|
-
const oe = Ne("fm-text-field"), he = Ne("fm-phone-number"), Q = Ne("fm-button"),
|
32353
|
+
const oe = Ne("fm-text-field"), he = Ne("fm-phone-number"), Q = Ne("fm-button"), we = Ne("FmButton"), fe = Ne("fm-side-sheet");
|
32354
32354
|
return Se(), xe(fe, {
|
32355
32355
|
modelValue: Be(u),
|
32356
32356
|
"onUpdate:modelValue": Y[4] || (Y[4] = (ce) => wi(u) ? u.value = ce : null),
|
@@ -32365,14 +32365,14 @@ const jr = (s, l) => {
|
|
32365
32365
|
}, {
|
32366
32366
|
"side-sheet-footer": Ve(() => [
|
32367
32367
|
me("div", U0, [
|
32368
|
-
we
|
32368
|
+
ze(we, {
|
32369
32369
|
loading: F.value,
|
32370
32370
|
label: "Update",
|
32371
32371
|
size: "lg",
|
32372
32372
|
type: "submit",
|
32373
32373
|
variant: "primary"
|
32374
32374
|
}, null, 8, ["loading"]),
|
32375
|
-
we
|
32375
|
+
ze(we, {
|
32376
32376
|
label: "Cancel",
|
32377
32377
|
size: "lg",
|
32378
32378
|
variant: "tertiary",
|
@@ -32385,13 +32385,13 @@ const jr = (s, l) => {
|
|
32385
32385
|
me("div", N0, [
|
32386
32386
|
Y[5] || (Y[5] = me("p", { class: "fm-typo-en-body-lg-600" }, "Basic Information", -1)),
|
32387
32387
|
me("div", D0, [
|
32388
|
-
|
32388
|
+
ze(oe, {
|
32389
32389
|
modelValue: P.value.name,
|
32390
32390
|
"onUpdate:modelValue": Y[0] || (Y[0] = (ce) => P.value.name = ce),
|
32391
32391
|
rules: [(ce) => !!ce || "Name is required"],
|
32392
32392
|
label: "Name"
|
32393
32393
|
}, null, 8, ["modelValue", "rules"]),
|
32394
|
-
|
32394
|
+
ze(oe, {
|
32395
32395
|
modelValue: P.value.email,
|
32396
32396
|
"onUpdate:modelValue": Y[1] || (Y[1] = (ce) => P.value.email = ce),
|
32397
32397
|
rules: [
|
@@ -32400,7 +32400,7 @@ const jr = (s, l) => {
|
|
32400
32400
|
],
|
32401
32401
|
label: "Email"
|
32402
32402
|
}, null, 8, ["modelValue", "rules"]),
|
32403
|
-
|
32403
|
+
ze(he, {
|
32404
32404
|
modelValue: P.value.phone,
|
32405
32405
|
"onUpdate:modelValue": Y[2] || (Y[2] = (ce) => P.value.phone = ce),
|
32406
32406
|
disabled: "",
|
@@ -32411,7 +32411,7 @@ const jr = (s, l) => {
|
|
32411
32411
|
me("div", L0, [
|
32412
32412
|
Y[6] || (Y[6] = me("p", { class: "fm-typo-en-body-lg-600" }, "Password", -1)),
|
32413
32413
|
Y[7] || (Y[7] = me("p", { class: "fm-typo-en-body-md-400" }, "Set a password to login to your account.", -1)),
|
32414
|
-
|
32414
|
+
ze(Q, {
|
32415
32415
|
class: "border-fm-color-primary text-fm-color-primary",
|
32416
32416
|
label: "Change Password",
|
32417
32417
|
size: "lg",
|
@@ -32508,21 +32508,21 @@ const jr = (s, l) => {
|
|
32508
32508
|
MY: Tu,
|
32509
32509
|
SG: Au,
|
32510
32510
|
ID: Iu
|
32511
|
-
},
|
32511
|
+
}, we = Ye(() => u.businesses.length !== 0 && u.currentCountry && !u.currentBusiness);
|
32512
32512
|
return qr(() => {
|
32513
|
-
|
32513
|
+
we.value && ae();
|
32514
32514
|
}), (fe, ce) => {
|
32515
32515
|
const Ee = Ne("FmMenuItem"), Oe = Ne("fm-menu"), Ge = Ne("fm-popover");
|
32516
32516
|
return Se(), De(Tt, null, [
|
32517
|
-
|
32517
|
+
ze(Ru, {
|
32518
32518
|
modelValue: z.value,
|
32519
32519
|
"onUpdate:modelValue": ce[0] || (ce[0] = (We) => z.value = We)
|
32520
32520
|
}, null, 8, ["modelValue"]),
|
32521
|
-
|
32521
|
+
ze(Uc, {
|
32522
32522
|
modelValue: S.value,
|
32523
32523
|
"onUpdate:modelValue": ce[1] || (ce[1] = (We) => S.value = We)
|
32524
32524
|
}, null, 8, ["modelValue"]),
|
32525
|
-
|
32525
|
+
ze(Ge, {
|
32526
32526
|
"exclude-el-from-click-outside": ["country-menu-item"],
|
32527
32527
|
"show-popover": b.value,
|
32528
32528
|
onPopoverChanged: ce[2] || (ce[2] = (We) => b.value = We)
|
@@ -32542,26 +32542,26 @@ const jr = (s, l) => {
|
|
32542
32542
|
])
|
32543
32543
|
]),
|
32544
32544
|
me("div", x0, [
|
32545
|
-
|
32545
|
+
ze(bn, {
|
32546
32546
|
subtitle: (Fe = s.currentBusiness) == null ? void 0 : Fe.name,
|
32547
32547
|
title: "Business",
|
32548
32548
|
onClick: ae
|
32549
32549
|
}, null, 8, ["subtitle"]),
|
32550
|
-
|
32550
|
+
ze(bn, {
|
32551
32551
|
title: "Manage account",
|
32552
32552
|
onClick: Y
|
32553
32553
|
})
|
32554
32554
|
]),
|
32555
32555
|
ce[4] || (ce[4] = me("div", { class: "profile-menu--divider" }, null, -1)),
|
32556
32556
|
me("div", W0, [
|
32557
|
-
|
32557
|
+
ze(Oe, {
|
32558
32558
|
offset: 12,
|
32559
32559
|
placement: Be(W).sm || Be(W).xs ? "left-end" : "left-start",
|
32560
32560
|
trigger: Be(W).sm || Be(W).xs ? "click" : "hover",
|
32561
32561
|
"close-on-mouse-leave": !0
|
32562
32562
|
}, {
|
32563
32563
|
"menu-button": Ve(() => [
|
32564
|
-
|
32564
|
+
ze(bn, {
|
32565
32565
|
subtitle: he.value,
|
32566
32566
|
"append-icon": "chevron_right",
|
32567
32567
|
title: "Country"
|
@@ -32590,7 +32590,7 @@ const jr = (s, l) => {
|
|
32590
32590
|
]),
|
32591
32591
|
ce[5] || (ce[5] = me("div", { class: "profile-menu--divider" }, null, -1)),
|
32592
32592
|
me("div", Q0, [
|
32593
|
-
|
32593
|
+
ze(bn, { onClick: q }, {
|
32594
32594
|
"title-slot": Ve(() => ce[3] || (ce[3] = [
|
32595
32595
|
me("span", { class: "text-fm-color-typo-error" }, "Log out", -1)
|
32596
32596
|
])),
|
@@ -32639,7 +32639,7 @@ const ty = ["innerHTML"], ny = {
|
|
32639
32639
|
}), (z, S) => {
|
32640
32640
|
const F = Ne("FmPhoneNumber");
|
32641
32641
|
return Se(), De("div", iy, [
|
32642
|
-
|
32642
|
+
ze(F, {
|
32643
32643
|
modelValue: l.value,
|
32644
32644
|
"onUpdate:modelValue": S[0] || (S[0] = (M) => l.value = M),
|
32645
32645
|
"default-country": m.value
|
@@ -32737,7 +32737,7 @@ const oy = {
|
|
32737
32737
|
}, yy = { class: "app-menu--item--content" }, by = { class: "app-menu--name" }, $y = {
|
32738
32738
|
key: 0,
|
32739
32739
|
class: "app-menu--description"
|
32740
|
-
}, _y = { class: "flex-1 overflow-hidden" },
|
32740
|
+
}, _y = { class: "flex gap-8" }, vy = { class: "flex-1 overflow-hidden" }, Ey = { class: "flex justify-end" }, Fy = /* @__PURE__ */ Ft({
|
32741
32741
|
__name: "PortalDesktop",
|
32742
32742
|
props: {
|
32743
32743
|
dropdownOpened: { type: Boolean },
|
@@ -32761,17 +32761,17 @@ const oy = {
|
|
32761
32761
|
const W = Ne("fm-button"), J = Ne("FmIcon"), ee = Ne("FmButton"), ae = Ne("fm-menu");
|
32762
32762
|
return U.embedded ? ut("", !0) : (Se(), De("div", oy, [
|
32763
32763
|
me("div", sy, [
|
32764
|
-
|
32764
|
+
ze(ae, {
|
32765
32765
|
ref_key: "menuRef",
|
32766
32766
|
ref: M,
|
32767
32767
|
"max-height": 1e3,
|
32768
32768
|
"show-menu": Be(m),
|
32769
|
-
onDropdownChanged: q[
|
32769
|
+
onDropdownChanged: q[2] || (q[2] = (Y) => m.value = Y)
|
32770
32770
|
}, {
|
32771
32771
|
"menu-button": Ve(() => {
|
32772
32772
|
var Y;
|
32773
32773
|
return [
|
32774
|
-
|
32774
|
+
ze(W, {
|
32775
32775
|
label: ((Y = U.currentApp) == null ? void 0 : Y.name) || "Portal",
|
32776
32776
|
"prepend-icon": "apps",
|
32777
32777
|
size: "md",
|
@@ -32804,7 +32804,7 @@ const oy = {
|
|
32804
32804
|
me("p", by, at(Y.name), 1),
|
32805
32805
|
Y.description ? (Se(), De("p", $y, at(Y.description), 1)) : ut("", !0)
|
32806
32806
|
]),
|
32807
|
-
|
32807
|
+
ze(J, {
|
32808
32808
|
name: "chevron_right",
|
32809
32809
|
size: "md"
|
32810
32810
|
})
|
@@ -32814,13 +32814,18 @@ const oy = {
|
|
32814
32814
|
])
|
32815
32815
|
]),
|
32816
32816
|
q[9] || (q[9] = me("div", { class: "bg-fm-color-neutral-gray-100 w-full h-[1px]" }, null, -1)),
|
32817
|
-
me("div",
|
32818
|
-
|
32817
|
+
me("div", _y, [
|
32818
|
+
ze(ee, {
|
32819
|
+
label: "Settings",
|
32820
|
+
icon: "settings",
|
32821
|
+
variant: "tertiary",
|
32822
|
+
onClick: q[0] || (q[0] = (Y) => F("goto:settings"))
|
32823
|
+
}),
|
32824
|
+
ze(ee, {
|
32819
32825
|
label: "Switch back to previous UI",
|
32820
|
-
|
32821
|
-
"text-color": "primary",
|
32826
|
+
icon: "undo",
|
32822
32827
|
variant: "tertiary",
|
32823
|
-
onClick: q[
|
32828
|
+
onClick: q[1] || (q[1] = (Y) => F("goto:portal-v2"))
|
32824
32829
|
})
|
32825
32830
|
])
|
32826
32831
|
])
|
@@ -32830,9 +32835,9 @@ const oy = {
|
|
32830
32835
|
_: 1
|
32831
32836
|
}, 8, ["show-menu"])
|
32832
32837
|
]),
|
32833
|
-
|
32834
|
-
me("div",
|
32835
|
-
me("div",
|
32838
|
+
ze(ry),
|
32839
|
+
me("div", vy, [
|
32840
|
+
me("div", Ey, [
|
32836
32841
|
Be(b) || Be(z) ? (Se(), xe(W, {
|
32837
32842
|
key: 0,
|
32838
32843
|
icon: "bug_report",
|
@@ -32840,18 +32845,12 @@ const oy = {
|
|
32840
32845
|
variant: "tertiary",
|
32841
32846
|
onClick: Be(S)
|
32842
32847
|
}, null, 8, ["icon-color", "onClick"])) : ut("", !0),
|
32843
|
-
|
32848
|
+
ze(W, {
|
32844
32849
|
icon: "storefront",
|
32845
32850
|
variant: "tertiary",
|
32846
|
-
onClick: q[
|
32847
|
-
}),
|
32848
|
-
we(W, {
|
32849
|
-
"prepend-icon": "settings",
|
32850
|
-
size: "md",
|
32851
|
-
variant: "tertiary",
|
32852
|
-
onClick: q[3] || (q[3] = (Y) => F("goto:settings"))
|
32851
|
+
onClick: q[3] || (q[3] = (Y) => F("open-my-business"))
|
32853
32852
|
}),
|
32854
|
-
|
32853
|
+
ze(qc, {
|
32855
32854
|
businesses: U.businesses,
|
32856
32855
|
countries: U.countries,
|
32857
32856
|
"current-business": U.currentBusiness,
|
@@ -32868,29 +32867,29 @@ const oy = {
|
|
32868
32867
|
};
|
32869
32868
|
}
|
32870
32869
|
});
|
32871
|
-
const
|
32870
|
+
const wy = /* @__PURE__ */ jr(Fy, [["__scopeId", "data-v-54f6088c"]]), zy = {
|
32872
32871
|
key: 0,
|
32873
32872
|
class: /* @__PURE__ */ wn([
|
32874
32873
|
"w-screen bg-fm-color-neutral-white",
|
32875
32874
|
"h-56 px-24 py-4",
|
32876
32875
|
"flex items-center justify-between"
|
32877
32876
|
])
|
32878
|
-
},
|
32877
|
+
}, Cy = {
|
32879
32878
|
key: 0,
|
32880
32879
|
class: "flex-1 overflow-hidden"
|
32881
|
-
},
|
32880
|
+
}, Sy = {
|
32882
32881
|
key: 0,
|
32883
32882
|
class: "flex justify-end"
|
32884
|
-
},
|
32883
|
+
}, Ty = { class: "relative flex-1 bg-fm-color-neutral-white" }, Ay = {
|
32885
32884
|
key: 0,
|
32886
32885
|
class: "absolute inset-0 space-y-24 bg-fm-color-neutral-white px-24 py-16"
|
32887
|
-
},
|
32886
|
+
}, Iy = { class: "space-y-12" }, Ry = { class: "space-y-8" }, Oy = { class: "grid grid-cols-2 gap-24" }, ky = ["onClick"], Py = { class: "flex items-center space-x-8" }, jy = ["innerHTML"], By = {
|
32888
32887
|
key: 1,
|
32889
32888
|
class: "w-48 h-48 rounded-md bg-fm-color-neutral-gray-400"
|
32890
|
-
},
|
32889
|
+
}, My = { class: "flex-1" }, Ny = { class: "fm-typo-en-body-lg-600" }, Dy = {
|
32891
32890
|
key: 0,
|
32892
32891
|
class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary"
|
32893
|
-
},
|
32892
|
+
}, Ly = { class: "flex gap-8" }, Uy = /* @__PURE__ */ Ft({
|
32894
32893
|
__name: "PortalTablet",
|
32895
32894
|
props: {
|
32896
32895
|
dropdownOpened: { type: Boolean },
|
@@ -32929,9 +32928,9 @@ const Fy = /* @__PURE__ */ jr(Ey, [["__scopeId", "data-v-c618b79a"]]), wy = {
|
|
32929
32928
|
});
|
32930
32929
|
}), (ae, Y) => {
|
32931
32930
|
var fe;
|
32932
|
-
const oe = Ne("fm-overlay"), he = Ne("fm-button"), Q = Ne("FmIcon"),
|
32931
|
+
const oe = Ne("fm-overlay"), he = Ne("fm-button"), Q = Ne("FmIcon"), we = Ne("FmButton");
|
32933
32932
|
return Se(), xe(Sa, { to: "body" }, [
|
32934
|
-
|
32933
|
+
ze(Ur, { name: "fade" }, {
|
32935
32934
|
default: Ve(() => [
|
32936
32935
|
Be(b) ? (Se(), xe(oe, { key: 0 })) : ut("", !0)
|
32937
32936
|
]),
|
@@ -32952,16 +32951,16 @@ const Fy = /* @__PURE__ */ jr(Ey, [["__scopeId", "data-v-c618b79a"]]), wy = {
|
|
32952
32951
|
class: wn([Be(b) ? ["h-64"] : ["h-0"], "transition-[height] duration-300"]),
|
32953
32952
|
onClick: Y[0] || (Y[0] = (ce) => b.value = !1)
|
32954
32953
|
}, null, 2),
|
32955
|
-
ae.embedded && Be(b) ? ut("", !0) : (Se(), De("div",
|
32956
|
-
|
32954
|
+
ae.embedded && Be(b) ? ut("", !0) : (Se(), De("div", zy, [
|
32955
|
+
ze(he, {
|
32957
32956
|
label: ((fe = ae.currentApp) == null ? void 0 : fe.name) || "Portal",
|
32958
32957
|
"prepend-icon": Be(b) ? U.value === "PLATFORM" ? "arrow_back" : "close" : "apps",
|
32959
32958
|
size: "md",
|
32960
32959
|
variant: "tertiary",
|
32961
32960
|
onClick: q
|
32962
32961
|
}, null, 8, ["label", "prepend-icon"]),
|
32963
|
-
!Be(b) || Be(b) && U.value === "PORTAL" ? (Se(), De("div",
|
32964
|
-
ae.embedded ? ut("", !0) : (Se(), De("div",
|
32962
|
+
!Be(b) || Be(b) && U.value === "PORTAL" ? (Se(), De("div", Cy, [
|
32963
|
+
ae.embedded ? ut("", !0) : (Se(), De("div", Sy, [
|
32965
32964
|
Be(S) || Be(F) ? (Se(), xe(he, {
|
32966
32965
|
key: 0,
|
32967
32966
|
"icon-color": Be(F) ? "primary" : void 0,
|
@@ -32970,43 +32969,37 @@ const Fy = /* @__PURE__ */ jr(Ey, [["__scopeId", "data-v-c618b79a"]]), wy = {
|
|
32970
32969
|
variant: "tertiary",
|
32971
32970
|
onClick: Be(M)
|
32972
32971
|
}, null, 8, ["icon-color", "onClick"])) : ut("", !0),
|
32973
|
-
|
32972
|
+
ze(he, {
|
32974
32973
|
icon: "storefront",
|
32975
32974
|
size: "md",
|
32976
32975
|
variant: "tertiary",
|
32977
32976
|
onClick: Y[1] || (Y[1] = (ce) => z("open-my-business"))
|
32978
32977
|
}),
|
32979
|
-
|
32980
|
-
"prepend-icon": "settings",
|
32981
|
-
size: "md",
|
32982
|
-
variant: "tertiary",
|
32983
|
-
onClick: Y[2] || (Y[2] = (ce) => z("goto:settings"))
|
32984
|
-
}),
|
32985
|
-
we(qc, {
|
32978
|
+
ze(qc, {
|
32986
32979
|
businesses: ae.businesses,
|
32987
32980
|
countries: ae.countries,
|
32988
32981
|
"current-business": ae.currentBusiness,
|
32989
32982
|
"current-country": ae.currentCountry,
|
32990
32983
|
user: ae.user,
|
32991
|
-
onLogin: Y[
|
32992
|
-
onLogout: Y[
|
32993
|
-
onSelectBusiness: Y[
|
32994
|
-
onSelectCountry: Y[
|
32984
|
+
onLogin: Y[2] || (Y[2] = (ce) => z("login")),
|
32985
|
+
onLogout: Y[3] || (Y[3] = (ce) => z("logout")),
|
32986
|
+
onSelectBusiness: Y[4] || (Y[4] = (ce, Ee) => z("select-business", ce, Ee)),
|
32987
|
+
onSelectCountry: Y[5] || (Y[5] = (ce, Ee) => z("select-country", ce, Ee))
|
32995
32988
|
}, null, 8, ["businesses", "countries", "current-business", "current-country", "user"])
|
32996
32989
|
]))
|
32997
32990
|
])) : ut("", !0)
|
32998
32991
|
])),
|
32999
|
-
me("div",
|
32992
|
+
me("div", Ty, [
|
33000
32993
|
me("div", null, [
|
33001
32994
|
(Se(), xe(ka(Be(m).sidebarComponent.value)))
|
33002
32995
|
]),
|
33003
|
-
|
32996
|
+
ze(Ur, { name: "slide-right" }, {
|
33004
32997
|
default: Ve(() => [
|
33005
|
-
U.value === "PORTAL" ? (Se(), De("div",
|
33006
|
-
me("div",
|
33007
|
-
me("div",
|
32998
|
+
U.value === "PORTAL" ? (Se(), De("div", Ay, [
|
32999
|
+
me("div", Iy, [
|
33000
|
+
me("div", Ry, [
|
33008
33001
|
Y[8] || (Y[8] = me("p", { class: "fm-typo-en-body-sm-600" }, "Switch to", -1)),
|
33009
|
-
me("div",
|
33002
|
+
me("div", Oy, [
|
33010
33003
|
(Se(!0), De(Tt, null, Dn(ae.apps, (ce) => (Se(), De(Tt, {
|
33011
33004
|
key: ce.name
|
33012
33005
|
}, [
|
@@ -33015,31 +33008,36 @@ const Fy = /* @__PURE__ */ jr(Ey, [["__scopeId", "data-v-c618b79a"]]), wy = {
|
|
33015
33008
|
class: "w-full cursor-pointer",
|
33016
33009
|
onClick: (Ee) => z("select-app", ce)
|
33017
33010
|
}, [
|
33018
|
-
me("div",
|
33011
|
+
me("div", Py, [
|
33019
33012
|
ce.icon ? (Se(), De("div", {
|
33020
33013
|
key: 0,
|
33021
33014
|
class: "h-48 w-48",
|
33022
33015
|
innerHTML: ce.icon
|
33023
|
-
}, null, 8,
|
33024
|
-
me("div",
|
33025
|
-
me("p",
|
33026
|
-
ce.description ? (Se(), De("p",
|
33016
|
+
}, null, 8, jy)) : (Se(), De("div", By)),
|
33017
|
+
me("div", My, [
|
33018
|
+
me("p", Ny, at(ce.name), 1),
|
33019
|
+
ce.description ? (Se(), De("p", Dy, at(ce.description), 1)) : ut("", !0)
|
33027
33020
|
]),
|
33028
|
-
|
33021
|
+
ze(Q, {
|
33029
33022
|
name: "chevron_right",
|
33030
33023
|
size: "md"
|
33031
33024
|
})
|
33032
33025
|
])
|
33033
|
-
], 8,
|
33026
|
+
], 8, ky)) : ut("", !0)
|
33034
33027
|
], 64))), 128))
|
33035
33028
|
])
|
33036
33029
|
]),
|
33037
33030
|
Y[9] || (Y[9] = me("div", { class: "bg-fm-color-neutral-gray-100 w-full h-[1px]" }, null, -1)),
|
33038
|
-
me("div",
|
33039
|
-
we
|
33031
|
+
me("div", Ly, [
|
33032
|
+
ze(we, {
|
33033
|
+
label: "Settings",
|
33034
|
+
icon: "settings",
|
33035
|
+
variant: "tertiary",
|
33036
|
+
onClick: Y[6] || (Y[6] = (ce) => z("goto:settings"))
|
33037
|
+
}),
|
33038
|
+
ze(we, {
|
33040
33039
|
label: "Switch back to previous UI",
|
33041
|
-
|
33042
|
-
"text-color": "primary",
|
33040
|
+
icon: "undo",
|
33043
33041
|
variant: "tertiary",
|
33044
33042
|
onClick: Y[7] || (Y[7] = (ce) => z("goto:portal-v2"))
|
33045
33043
|
})
|
@@ -33055,7 +33053,7 @@ const Fy = /* @__PURE__ */ jr(Ey, [["__scopeId", "data-v-c618b79a"]]), wy = {
|
|
33055
33053
|
};
|
33056
33054
|
}
|
33057
33055
|
});
|
33058
|
-
const
|
33056
|
+
const qy = /* @__PURE__ */ jr(Uy, [["__scopeId", "data-v-724faccc"]]), Vy = { class: "flex h-dvh w-screen flex-col bg-fm-color-neutral-white" }, Gy = { class: "flex items-center justify-between px-16 pb-8 pt-16" }, Hy = { class: "p-16" }, Yy = { class: "grow" }, Zy = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Ky = { class: "flex flex-col items-end" }, xy = { class: "flex space-x-8 px-24 py-16" }, Wy = /* @__PURE__ */ Ft({
|
33059
33057
|
__name: "BusinessDialogMobile",
|
33060
33058
|
props: {
|
33061
33059
|
modelValue: { type: Boolean },
|
@@ -33096,28 +33094,28 @@ const Ly = /* @__PURE__ */ jr(Dy, [["__scopeId", "data-v-cd36d593"]]), Uy = { cl
|
|
33096
33094
|
return kl(() => {
|
33097
33095
|
M.value || l.selectBusiness(P.value[0], !1);
|
33098
33096
|
}), (W, J) => {
|
33099
|
-
const ee = Ne("fm-button"), ae = Ne("fm-search"), Y = Ne("fm-form"), oe = Ne("fm-avatar"), he = Ne("FmButton"), Q = Ne("FmListItem"),
|
33097
|
+
const ee = Ne("fm-button"), ae = Ne("fm-search"), Y = Ne("fm-form"), oe = Ne("fm-avatar"), he = Ne("FmButton"), Q = Ne("FmListItem"), we = Ne("FmList"), fe = Ne("fm-overlay");
|
33100
33098
|
return Se(), xe(Sa, { to: "body" }, [
|
33101
|
-
|
33099
|
+
ze(Ur, { name: "slide" }, {
|
33102
33100
|
default: Ve(() => [
|
33103
33101
|
Be(S) ? (Se(), xe(fe, {
|
33104
33102
|
key: 0,
|
33105
33103
|
"z-index": 51
|
33106
33104
|
}, {
|
33107
33105
|
default: Ve(() => [
|
33108
|
-
me("div",
|
33109
|
-
me("div",
|
33106
|
+
me("div", Vy, [
|
33107
|
+
me("div", Gy, [
|
33110
33108
|
J[3] || (J[3] = me("h2", { class: "fm-typo-en-title-md-600" }, "Select business", -1)),
|
33111
|
-
|
33109
|
+
ze(ee, {
|
33112
33110
|
"prepend-icon": "close",
|
33113
33111
|
variant: "tertiary",
|
33114
33112
|
onClick: J[0] || (J[0] = (ce) => S.value = !1)
|
33115
33113
|
})
|
33116
33114
|
]),
|
33117
|
-
me("div",
|
33118
|
-
|
33115
|
+
me("div", Hy, [
|
33116
|
+
ze(Y, null, {
|
33119
33117
|
default: Ve(() => [
|
33120
|
-
|
33118
|
+
ze(ae, {
|
33121
33119
|
autofocus: "",
|
33122
33120
|
modelValue: m.value,
|
33123
33121
|
"onUpdate:modelValue": J[1] || (J[1] = (ce) => m.value = ce),
|
@@ -33132,7 +33130,7 @@ const Ly = /* @__PURE__ */ jr(Dy, [["__scopeId", "data-v-cd36d593"]]), Uy = { cl
|
|
33132
33130
|
ref: u,
|
33133
33131
|
class: "flex flex-1 gap-16 overflow-scroll"
|
33134
33132
|
}, [
|
33135
|
-
we
|
33133
|
+
ze(we, {
|
33136
33134
|
class: "w-full space-y-16 p-16",
|
33137
33135
|
disabled: ""
|
33138
33136
|
}, {
|
@@ -33154,16 +33152,16 @@ const Ly = /* @__PURE__ */ jr(Dy, [["__scopeId", "data-v-cd36d593"]]), Uy = { cl
|
|
33154
33152
|
default: Ve(() => {
|
33155
33153
|
var Ee;
|
33156
33154
|
return [
|
33157
|
-
me("div",
|
33155
|
+
me("div", Yy, [
|
33158
33156
|
me("div", {
|
33159
33157
|
class: wn([[
|
33160
33158
|
ce._id === ((Ee = M.value) == null ? void 0 : Ee.id) ? "text-fm-color-primary" : "text-fm-color-typo-primary"
|
33161
33159
|
], "fm-typo-en-body-lg-600"])
|
33162
33160
|
}, at(ce.name), 3),
|
33163
|
-
me("div",
|
33161
|
+
me("div", Zy, at(ce._id), 1)
|
33164
33162
|
]),
|
33165
|
-
me("div",
|
33166
|
-
|
33163
|
+
me("div", Ky, [
|
33164
|
+
ze(he, {
|
33167
33165
|
outline: !0,
|
33168
33166
|
"prepend-icon": "file_copy",
|
33169
33167
|
size: "md",
|
@@ -33179,12 +33177,12 @@ const Ly = /* @__PURE__ */ jr(Dy, [["__scopeId", "data-v-cd36d593"]]), Uy = { cl
|
|
33179
33177
|
_: 1
|
33180
33178
|
})
|
33181
33179
|
], 512),
|
33182
|
-
me("div",
|
33183
|
-
|
33180
|
+
me("div", xy, [
|
33181
|
+
ze(ee, {
|
33184
33182
|
label: "Confirm",
|
33185
33183
|
onClick: U
|
33186
33184
|
}),
|
33187
|
-
|
33185
|
+
ze(ee, {
|
33188
33186
|
label: "Cancel",
|
33189
33187
|
variant: "tertiary",
|
33190
33188
|
onClick: J[2] || (J[2] = (ce) => S.value = !1)
|
@@ -33201,32 +33199,32 @@ const Ly = /* @__PURE__ */ jr(Dy, [["__scopeId", "data-v-cd36d593"]]), Uy = { cl
|
|
33201
33199
|
};
|
33202
33200
|
}
|
33203
33201
|
});
|
33204
|
-
const
|
33202
|
+
const Jy = /* @__PURE__ */ jr(Wy, [["__scopeId", "data-v-daa06e6b"]]), Qy = { class: "flex h-screen w-screen flex-col bg-fm-color-neutral-white" }, Xy = {
|
33205
33203
|
key: 0,
|
33206
33204
|
class: "flex h-56 items-center space-x-8 border-b border-b-fm-color-neutral-gray-100 px-16"
|
33207
|
-
},
|
33205
|
+
}, eb = {
|
33208
33206
|
key: 0,
|
33209
33207
|
class: "fm-typo-en-body-lg-600"
|
33210
|
-
},
|
33208
|
+
}, tb = { class: "relative flex-1 overflow-auto" }, nb = {
|
33211
33209
|
key: 0,
|
33212
33210
|
class: "absolute inset-0 space-y-24 bg-fm-color-neutral-white px-24 py-16"
|
33213
|
-
},
|
33211
|
+
}, rb = { class: "space-y-12" }, ib = { class: "space-y-8" }, ab = { class: "space-y-24" }, ob = ["onClick"], sb = { class: "flex items-center space-x-8" }, ub = ["innerHTML"], lb = {
|
33214
33212
|
key: 1,
|
33215
33213
|
class: "w-48 h-48 rounded-md bg-fm-color-neutral-gray-400"
|
33216
|
-
},
|
33214
|
+
}, db = { class: "flex-1" }, cb = { class: "fm-typo-en-body-lg-600" }, fb = {
|
33217
33215
|
key: 0,
|
33218
33216
|
class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary"
|
33219
|
-
},
|
33217
|
+
}, hb = { class: "space-y-8" }, pb = { class: "fm-typo-en-body-md-400 flex-1" }, mb = { class: "px-4" }, gb = ["innerHTML"], yb = { class: "pb-32" }, bb = { class: "flex items-center space-x-8 px-16 py-4" }, $b = { class: "user-info-icon" }, _b = { class: "flex-1" }, vb = { class: "fm-typo-en-body-lg-400" }, Eb = { class: "fm-typo-en-body-md-400 text-fm-color-typo-tertiary" }, Fb = {
|
33220
33218
|
class: /* @__PURE__ */ wn([
|
33221
33219
|
"fixed bottom-0 left-0 right-0",
|
33222
33220
|
"w-screen bg-fm-color-neutral-white",
|
33223
33221
|
"px-16 py-[10px]",
|
33224
33222
|
"flex items-center justify-between"
|
33225
33223
|
])
|
33226
|
-
},
|
33224
|
+
}, wb = {
|
33227
33225
|
key: 0,
|
33228
33226
|
class: "flex items-center"
|
33229
|
-
},
|
33227
|
+
}, zb = /* @__PURE__ */ Ft({
|
33230
33228
|
__name: "PortalMobile",
|
33231
33229
|
props: {
|
33232
33230
|
dropdownOpened: { type: Boolean },
|
@@ -33275,7 +33273,7 @@ const xy = /* @__PURE__ */ jr(Ky, [["__scopeId", "data-v-daa06e6b"]]), Wy = { cl
|
|
33275
33273
|
});
|
33276
33274
|
}, oe = () => {
|
33277
33275
|
he.value = !1, Q.value = !1, fe.value = !1;
|
33278
|
-
}, he = je(!1), Q = je(!1),
|
33276
|
+
}, he = je(!1), Q = je(!1), we = je(!1), fe = je(!1), ce = je(!1), Ee = Ye(() => {
|
33279
33277
|
var i;
|
33280
33278
|
let Fe = ((i = u.user) == null ? void 0 : i.displayName) ?? "";
|
33281
33279
|
Fe || (Fe = "Feed Me");
|
@@ -33293,21 +33291,21 @@ const xy = /* @__PURE__ */ jr(Ky, [["__scopeId", "data-v-daa06e6b"]]), Wy = { cl
|
|
33293
33291
|
ID: Iu
|
33294
33292
|
};
|
33295
33293
|
return qr(() => {
|
33296
|
-
u.businesses.length !== 0 && u.currentCountry && !u.currentBusiness && (
|
33294
|
+
u.businesses.length !== 0 && u.currentCountry && !u.currentBusiness && (we.value = !0);
|
33297
33295
|
}), (Fe, y) => {
|
33298
33296
|
var n;
|
33299
33297
|
const e = Ne("fm-overlay"), i = Ne("fm-button"), ht = Ne("FmIcon"), $ = Ne("FmButton"), Te = Ne("fm-icon"), Ke = Ne("fm-bottom-sheet"), c = Ne("FmMenuItem");
|
33300
33298
|
return Se(), De(Tt, null, [
|
33301
|
-
|
33299
|
+
ze(Ru, {
|
33302
33300
|
modelValue: ce.value,
|
33303
33301
|
"onUpdate:modelValue": y[0] || (y[0] = (t) => ce.value = t)
|
33304
33302
|
}, null, 8, ["modelValue"]),
|
33305
|
-
|
33303
|
+
ze(Uc, {
|
33306
33304
|
modelValue: U.value,
|
33307
33305
|
"onUpdate:modelValue": y[1] || (y[1] = (t) => U.value = t)
|
33308
33306
|
}, null, 8, ["modelValue"]),
|
33309
33307
|
(Se(), xe(Sa, { to: "body" }, [
|
33310
|
-
|
33308
|
+
ze(Ur, { name: "fade" }, {
|
33311
33309
|
default: Ve(() => [
|
33312
33310
|
Be(b) ? (Se(), xe(e, {
|
33313
33311
|
key: 0,
|
@@ -33316,12 +33314,12 @@ const xy = /* @__PURE__ */ jr(Ky, [["__scopeId", "data-v-daa06e6b"]]), Wy = { cl
|
|
33316
33314
|
]),
|
33317
33315
|
_: 1
|
33318
33316
|
}),
|
33319
|
-
|
33317
|
+
ze(Ur, { name: "slide" }, {
|
33320
33318
|
default: Ve(() => [
|
33321
33319
|
Be(b) ? (Se(), xe(e, {
|
33322
33320
|
key: 0,
|
33323
33321
|
modelValue: Be(b),
|
33324
|
-
"onUpdate:modelValue": y[
|
33322
|
+
"onUpdate:modelValue": y[4] || (y[4] = (t) => wi(b) ? b.value = t : null),
|
33325
33323
|
"on-close": () => b.value = !1,
|
33326
33324
|
"z-index": 50,
|
33327
33325
|
class: "pt-64",
|
@@ -33331,26 +33329,26 @@ const xy = /* @__PURE__ */ jr(Ky, [["__scopeId", "data-v-daa06e6b"]]), Wy = { cl
|
|
33331
33329
|
default: Ve(() => {
|
33332
33330
|
var t;
|
33333
33331
|
return [
|
33334
|
-
me("div",
|
33335
|
-
Fe.embedded ? ut("", !0) : (Se(), De("div",
|
33336
|
-
|
33332
|
+
me("div", Qy, [
|
33333
|
+
Fe.embedded ? ut("", !0) : (Se(), De("div", Xy, [
|
33334
|
+
ze(i, {
|
33337
33335
|
"prepend-icon": P.value === "PLATFORM" ? "arrow_back" : "close",
|
33338
33336
|
variant: "tertiary",
|
33339
33337
|
onClick: J
|
33340
33338
|
}, null, 8, ["prepend-icon"]),
|
33341
|
-
P.value === "PLATFORM" ? (Se(), De("h2",
|
33339
|
+
P.value === "PLATFORM" ? (Se(), De("h2", eb, at(((t = Fe.currentApp) == null ? void 0 : t.name) ?? "Portal"), 1)) : ut("", !0)
|
33342
33340
|
])),
|
33343
|
-
me("div",
|
33341
|
+
me("div", tb, [
|
33344
33342
|
me("div", null, [
|
33345
33343
|
(Se(), xe(ka(Be(m).sidebarComponent.value)))
|
33346
33344
|
]),
|
33347
|
-
|
33345
|
+
ze(Ur, { name: "slide-right" }, {
|
33348
33346
|
default: Ve(() => [
|
33349
|
-
P.value === "PORTAL" ? (Se(), De("div",
|
33350
|
-
me("div",
|
33351
|
-
me("div",
|
33347
|
+
P.value === "PORTAL" ? (Se(), De("div", nb, [
|
33348
|
+
me("div", rb, [
|
33349
|
+
me("div", ib, [
|
33352
33350
|
y[19] || (y[19] = me("p", { class: "fm-typo-en-body-sm-600" }, "Switch to", -1)),
|
33353
|
-
me("div",
|
33351
|
+
me("div", ab, [
|
33354
33352
|
(Se(!0), De(Tt, null, Dn(Fe.apps, (r) => (Se(), De(Tt, {
|
33355
33353
|
key: r.name
|
33356
33354
|
}, [
|
@@ -33359,33 +33357,38 @@ const xy = /* @__PURE__ */ jr(Ky, [["__scopeId", "data-v-daa06e6b"]]), Wy = { cl
|
|
33359
33357
|
class: "w-full cursor-pointer",
|
33360
33358
|
onClick: (a) => z("select-app", r)
|
33361
33359
|
}, [
|
33362
|
-
me("div",
|
33360
|
+
me("div", sb, [
|
33363
33361
|
r.icon ? (Se(), De("div", {
|
33364
33362
|
key: 0,
|
33365
33363
|
class: "h-48 w-48",
|
33366
33364
|
innerHTML: r.icon
|
33367
|
-
}, null, 8,
|
33368
|
-
me("div",
|
33369
|
-
me("p",
|
33370
|
-
r.description ? (Se(), De("p",
|
33365
|
+
}, null, 8, ub)) : (Se(), De("div", lb)),
|
33366
|
+
me("div", db, [
|
33367
|
+
me("p", cb, at(r.name), 1),
|
33368
|
+
r.description ? (Se(), De("p", fb, at(r.description), 1)) : ut("", !0)
|
33371
33369
|
]),
|
33372
|
-
|
33370
|
+
ze(ht, {
|
33373
33371
|
name: "chevron_right",
|
33374
33372
|
size: "md"
|
33375
33373
|
})
|
33376
33374
|
])
|
33377
|
-
], 8,
|
33375
|
+
], 8, ob)) : ut("", !0)
|
33378
33376
|
], 64))), 128))
|
33379
33377
|
])
|
33380
33378
|
]),
|
33381
33379
|
y[20] || (y[20] = me("div", { class: "bg-fm-color-neutral-gray-100 w-full h-[1px]" }, null, -1)),
|
33382
|
-
me("div",
|
33383
|
-
|
33380
|
+
me("div", hb, [
|
33381
|
+
ze($, {
|
33382
|
+
label: "Settings",
|
33383
|
+
icon: "settings",
|
33384
|
+
variant: "tertiary",
|
33385
|
+
onClick: y[2] || (y[2] = (r) => z("goto:settings"))
|
33386
|
+
}),
|
33387
|
+
ze($, {
|
33384
33388
|
label: "Switch back to previous UI",
|
33385
|
-
|
33386
|
-
"text-color": "primary",
|
33389
|
+
icon: "undo",
|
33387
33390
|
variant: "tertiary",
|
33388
|
-
onClick: y[
|
33391
|
+
onClick: y[3] || (y[3] = (r) => z("goto:portal-v2"))
|
33389
33392
|
})
|
33390
33393
|
])
|
33391
33394
|
])
|
@@ -33403,9 +33406,9 @@ const xy = /* @__PURE__ */ jr(Ky, [["__scopeId", "data-v-daa06e6b"]]), Wy = { cl
|
|
33403
33406
|
_: 1
|
33404
33407
|
})
|
33405
33408
|
])),
|
33406
|
-
|
33409
|
+
ze(Ke, {
|
33407
33410
|
modelValue: he.value,
|
33408
|
-
"onUpdate:modelValue": y[
|
33411
|
+
"onUpdate:modelValue": y[8] || (y[8] = (t) => he.value = t),
|
33409
33412
|
"dismiss-away": "",
|
33410
33413
|
"no-header": ""
|
33411
33414
|
}, {
|
@@ -33413,14 +33416,14 @@ const xy = /* @__PURE__ */ jr(Ky, [["__scopeId", "data-v-daa06e6b"]]), Wy = { cl
|
|
33413
33416
|
me("div", null, [
|
33414
33417
|
me("div", {
|
33415
33418
|
class: "flex items-center space-x-8 px-16 py-8",
|
33416
|
-
onClick: y[
|
33419
|
+
onClick: y[5] || (y[5] = (t) => Q.value = !0)
|
33417
33420
|
}, [
|
33418
|
-
|
33421
|
+
ze(Te, {
|
33419
33422
|
name: "account_circle",
|
33420
33423
|
outline: ""
|
33421
33424
|
}),
|
33422
33425
|
y[21] || (y[21] = me("p", { class: "fm-typo-en-body-md-400 flex-1" }, "Account", -1)),
|
33423
|
-
|
33426
|
+
ze(Te, {
|
33424
33427
|
class: "text-fm-color-neutral-gray-300",
|
33425
33428
|
name: "chevron_right"
|
33426
33429
|
})
|
@@ -33428,24 +33431,24 @@ const xy = /* @__PURE__ */ jr(Ky, [["__scopeId", "data-v-daa06e6b"]]), Wy = { cl
|
|
33428
33431
|
Be(S) || Be(F) ? (Se(), De("div", {
|
33429
33432
|
key: 0,
|
33430
33433
|
class: "flex items-center space-x-8 px-16 py-8 cursor-pointer",
|
33431
|
-
onClick: y[
|
33434
|
+
onClick: y[6] || (y[6] = () => {
|
33432
33435
|
Be(M)(), oe();
|
33433
33436
|
})
|
33434
33437
|
}, [
|
33435
|
-
|
33438
|
+
ze(Te, {
|
33436
33439
|
name: "bug_report",
|
33437
33440
|
color: Be(F) ? "primary" : void 0,
|
33438
33441
|
outline: ""
|
33439
33442
|
}, null, 8, ["color"]),
|
33440
|
-
me("p",
|
33443
|
+
me("p", pb, at(Be(F) ? "Stop debug session" : "Debug user"), 1)
|
33441
33444
|
])) : ut("", !0),
|
33442
33445
|
me("div", {
|
33443
33446
|
class: "flex items-center space-x-8 px-16 py-8 cursor-pointer",
|
33444
|
-
onClick: y[
|
33447
|
+
onClick: y[7] || (y[7] = () => {
|
33445
33448
|
z("open-my-business"), oe();
|
33446
33449
|
})
|
33447
33450
|
}, [
|
33448
|
-
|
33451
|
+
ze(Te, {
|
33449
33452
|
name: "storefront",
|
33450
33453
|
outline: ""
|
33451
33454
|
}),
|
@@ -33455,20 +33458,20 @@ const xy = /* @__PURE__ */ jr(Ky, [["__scopeId", "data-v-daa06e6b"]]), Wy = { cl
|
|
33455
33458
|
]),
|
33456
33459
|
_: 1
|
33457
33460
|
}, 8, ["modelValue"]),
|
33458
|
-
|
33459
|
-
modelValue:
|
33460
|
-
"onUpdate:modelValue": y[
|
33461
|
+
ze(Jy, {
|
33462
|
+
modelValue: we.value,
|
33463
|
+
"onUpdate:modelValue": y[9] || (y[9] = (t) => we.value = t),
|
33461
33464
|
"select-business": ee
|
33462
33465
|
}, null, 8, ["modelValue"]),
|
33463
|
-
|
33466
|
+
ze(Ke, {
|
33464
33467
|
modelValue: fe.value,
|
33465
|
-
"onUpdate:modelValue": y[
|
33468
|
+
"onUpdate:modelValue": y[10] || (y[10] = (t) => fe.value = t),
|
33466
33469
|
"z-index": 52,
|
33467
33470
|
"dismiss-away": "",
|
33468
33471
|
title: "Country"
|
33469
33472
|
}, {
|
33470
33473
|
default: Ve(() => [
|
33471
|
-
me("div",
|
33474
|
+
me("div", mb, [
|
33472
33475
|
(Se(!0), De(Tt, null, Dn(Fe.countries, (t) => (Se(), xe(c, {
|
33473
33476
|
id: "country-menu-item",
|
33474
33477
|
key: t.code,
|
@@ -33482,7 +33485,7 @@ const xy = /* @__PURE__ */ jr(Ky, [["__scopeId", "data-v-daa06e6b"]]), Wy = { cl
|
|
33482
33485
|
me("span", {
|
33483
33486
|
class: "h-auto w-[20px]",
|
33484
33487
|
innerHTML: We[t.code]
|
33485
|
-
}, null, 8,
|
33488
|
+
}, null, 8, gb)
|
33486
33489
|
]),
|
33487
33490
|
_: 2
|
33488
33491
|
}, 1032, ["label", "model-value", "onUpdate:modelValue"]))), 128))
|
@@ -33490,53 +33493,53 @@ const xy = /* @__PURE__ */ jr(Ky, [["__scopeId", "data-v-daa06e6b"]]), Wy = { cl
|
|
33490
33493
|
]),
|
33491
33494
|
_: 1
|
33492
33495
|
}, 8, ["modelValue"]),
|
33493
|
-
|
33496
|
+
ze(Ke, {
|
33494
33497
|
modelValue: Q.value,
|
33495
|
-
"onUpdate:modelValue": y[
|
33498
|
+
"onUpdate:modelValue": y[16] || (y[16] = (t) => Q.value = t),
|
33496
33499
|
"dismiss-away": "",
|
33497
33500
|
title: "Account"
|
33498
33501
|
}, {
|
33499
33502
|
default: Ve(() => {
|
33500
33503
|
var t, r, a;
|
33501
33504
|
return [
|
33502
|
-
me("div",
|
33503
|
-
me("div",
|
33504
|
-
me("div",
|
33505
|
-
me("div",
|
33506
|
-
me("p",
|
33507
|
-
me("p",
|
33505
|
+
me("div", yb, [
|
33506
|
+
me("div", bb, [
|
33507
|
+
me("div", $b, at(Ee.value), 1),
|
33508
|
+
me("div", _b, [
|
33509
|
+
me("p", vb, at(((t = u.user) == null ? void 0 : t.displayName) ?? "Feed Me"), 1),
|
33510
|
+
me("p", Eb, at(((r = u.user) == null ? void 0 : r.email) ?? "feed-me@feedme.cc"), 1)
|
33508
33511
|
])
|
33509
33512
|
]),
|
33510
|
-
|
33513
|
+
ze(bn, {
|
33511
33514
|
subtitle: (a = Fe.currentBusiness) == null ? void 0 : a.name,
|
33512
33515
|
title: "Business",
|
33513
|
-
onClick: y[
|
33514
|
-
|
33516
|
+
onClick: y[11] || (y[11] = () => {
|
33517
|
+
we.value = !0, oe();
|
33515
33518
|
})
|
33516
33519
|
}, null, 8, ["subtitle"]),
|
33517
|
-
|
33520
|
+
ze(bn, {
|
33518
33521
|
title: "Manage account",
|
33519
|
-
onClick: y[
|
33522
|
+
onClick: y[12] || (y[12] = () => {
|
33520
33523
|
U.value = !0, oe();
|
33521
33524
|
})
|
33522
33525
|
}),
|
33523
33526
|
y[24] || (y[24] = me("div", { class: "profile-menu--divider" }, null, -1)),
|
33524
|
-
|
33527
|
+
ze(bn, {
|
33525
33528
|
"perpend-icon": "storefront",
|
33526
33529
|
title: "My business",
|
33527
|
-
onClick: y[
|
33530
|
+
onClick: y[13] || (y[13] = () => {
|
33528
33531
|
ce.value = !0, oe();
|
33529
33532
|
})
|
33530
33533
|
}),
|
33531
|
-
|
33534
|
+
ze(bn, {
|
33532
33535
|
subtitle: Ge.value,
|
33533
33536
|
"append-icon": "chevron_right",
|
33534
33537
|
title: "Country",
|
33535
|
-
onClick: y[
|
33538
|
+
onClick: y[14] || (y[14] = (o) => fe.value = !0)
|
33536
33539
|
}, null, 8, ["subtitle"]),
|
33537
33540
|
y[25] || (y[25] = me("div", { class: "profile-menu--divider" }, null, -1)),
|
33538
|
-
|
33539
|
-
onClick: y[
|
33541
|
+
ze(bn, {
|
33542
|
+
onClick: y[15] || (y[15] = () => {
|
33540
33543
|
Y(), oe();
|
33541
33544
|
})
|
33542
33545
|
}, {
|
@@ -33551,24 +33554,16 @@ const xy = /* @__PURE__ */ jr(Ky, [["__scopeId", "data-v-daa06e6b"]]), Wy = { cl
|
|
33551
33554
|
_: 1
|
33552
33555
|
}, 8, ["modelValue"]),
|
33553
33556
|
(Se(), xe(Sa, { to: "body" }, [
|
33554
|
-
me("div",
|
33555
|
-
|
33557
|
+
me("div", Fb, [
|
33558
|
+
ze(i, {
|
33556
33559
|
label: ((n = Fe.currentApp) == null ? void 0 : n.name) || "Portal",
|
33557
33560
|
"prepend-icon": "apps",
|
33558
33561
|
size: "md",
|
33559
33562
|
variant: "tertiary",
|
33560
|
-
onClick: y[
|
33563
|
+
onClick: y[17] || (y[17] = (t) => b.value = !Be(b))
|
33561
33564
|
}, null, 8, ["label"]),
|
33562
|
-
Fe.embedded ? ut("", !0) : (Se(), De("div",
|
33563
|
-
|
33564
|
-
icon: "settings",
|
33565
|
-
size: "md",
|
33566
|
-
variant: "tertiary",
|
33567
|
-
onClick: y[17] || (y[17] = () => {
|
33568
|
-
z("goto:settings"), oe();
|
33569
|
-
})
|
33570
|
-
}),
|
33571
|
-
we(i, {
|
33565
|
+
Fe.embedded ? ut("", !0) : (Se(), De("div", wb, [
|
33566
|
+
ze(i, {
|
33572
33567
|
"prepend-icon": "more_vert",
|
33573
33568
|
size: "md",
|
33574
33569
|
variant: "tertiary",
|
@@ -33581,7 +33576,7 @@ const xy = /* @__PURE__ */ jr(Ky, [["__scopeId", "data-v-daa06e6b"]]), Wy = { cl
|
|
33581
33576
|
};
|
33582
33577
|
}
|
33583
33578
|
});
|
33584
|
-
const
|
33579
|
+
const Cb = /* @__PURE__ */ jr(zb, [["__scopeId", "data-v-8bd306de"]]), Sb = /* @__PURE__ */ Ft({
|
33585
33580
|
__name: "PortalSidebar",
|
33586
33581
|
setup(s) {
|
33587
33582
|
const l = bt(), { breakpoints: u } = Ds();
|
@@ -33596,7 +33591,7 @@ const Fb = /* @__PURE__ */ jr(Eb, [["__scopeId", "data-v-400ab498"]]), wb = /* @
|
|
33596
33591
|
[Wc, Be(u).md || Be(u).lg]
|
33597
33592
|
]);
|
33598
33593
|
}
|
33599
|
-
}),
|
33594
|
+
}), Tb = { class: "w-full h-full overflow-auto" }, Ab = /* @__PURE__ */ Ft({
|
33600
33595
|
__name: "index",
|
33601
33596
|
props: {
|
33602
33597
|
dropdownOpened: { type: Boolean },
|
@@ -33618,14 +33613,14 @@ const Fb = /* @__PURE__ */ jr(Eb, [["__scopeId", "data-v-400ab498"]]), wb = /* @
|
|
33618
33613
|
}
|
33619
33614
|
const M = je(!1), P = Ye(() => {
|
33620
33615
|
if (u.value.md || u.value.lg)
|
33621
|
-
return Vo(
|
33616
|
+
return Vo(wy);
|
33622
33617
|
if (u.value.sm)
|
33623
|
-
return Vo(
|
33618
|
+
return Vo(qy);
|
33624
33619
|
if (u.value.xs)
|
33625
|
-
return Vo(
|
33620
|
+
return Vo(Cb);
|
33626
33621
|
});
|
33627
33622
|
return (U, q) => (Se(), De(Tt, null, [
|
33628
|
-
|
33623
|
+
ze(Ru, {
|
33629
33624
|
modelValue: M.value,
|
33630
33625
|
"onUpdate:modelValue": q[0] || (q[0] = (W) => M.value = W)
|
33631
33626
|
}, null, 8, ["modelValue"]),
|
@@ -33646,15 +33641,15 @@ const Fb = /* @__PURE__ */ jr(Eb, [["__scopeId", "data-v-400ab498"]]), wb = /* @
|
|
33646
33641
|
"pb-56": !U.embedded && (Be(u).sm || Be(u).xs)
|
33647
33642
|
}])
|
33648
33643
|
}, [
|
33649
|
-
|
33650
|
-
me("div",
|
33644
|
+
ze(Sb),
|
33645
|
+
me("div", Tb, [
|
33651
33646
|
js(U.$slots, "default")
|
33652
33647
|
])
|
33653
33648
|
], 2)
|
33654
33649
|
])
|
33655
33650
|
], 64));
|
33656
33651
|
}
|
33657
|
-
}),
|
33652
|
+
}), Xb = /* @__PURE__ */ Ft({
|
33658
33653
|
__name: "App",
|
33659
33654
|
setup(s) {
|
33660
33655
|
const l = bt(), u = Ye(() => l.sessionUser.value), m = Ye(() => l.apps.value), b = Ye(() => l.selectedApp.value), z = Ye(() => [
|
@@ -33693,9 +33688,9 @@ const Fb = /* @__PURE__ */ jr(Eb, [["__scopeId", "data-v-400ab498"]]), wb = /* @
|
|
33693
33688
|
}
|
33694
33689
|
return (oe, he) => {
|
33695
33690
|
const Q = Ne("fm-button");
|
33696
|
-
return Se(), xe(
|
33691
|
+
return Se(), xe(Ab, {
|
33697
33692
|
"dropdown-opened": ee.value,
|
33698
|
-
"onUpdate:dropdownOpened": he[1] || (he[1] = (
|
33693
|
+
"onUpdate:dropdownOpened": he[1] || (he[1] = (we) => ee.value = we),
|
33699
33694
|
apps: m.value,
|
33700
33695
|
businesses: M.value,
|
33701
33696
|
countries: z.value,
|
@@ -33713,9 +33708,9 @@ const Fb = /* @__PURE__ */ jr(Eb, [["__scopeId", "data-v-400ab498"]]), wb = /* @
|
|
33713
33708
|
}, {
|
33714
33709
|
default: Ve(() => [
|
33715
33710
|
js(oe.$slots, "default", {}, () => [
|
33716
|
-
|
33711
|
+
ze(Q, {
|
33717
33712
|
label: "Toggle Sidebar",
|
33718
|
-
onClick: he[0] || (he[0] = (
|
33713
|
+
onClick: he[0] || (he[0] = (we) => Be(l).hideSidebarToggle())
|
33719
33714
|
})
|
33720
33715
|
])
|
33721
33716
|
]),
|
@@ -33724,16 +33719,16 @@ const Fb = /* @__PURE__ */ jr(Eb, [["__scopeId", "data-v-400ab498"]]), wb = /* @
|
|
33724
33719
|
};
|
33725
33720
|
}
|
33726
33721
|
});
|
33727
|
-
function
|
33722
|
+
function e2(s, l) {
|
33728
33723
|
l && bt().setNamespace(l), ct.initialize({ clientId: s, loginMode: "iframe", oneTapMode: "full_screen" });
|
33729
33724
|
}
|
33730
|
-
const
|
33725
|
+
const t2 = ct.onAuthStateChanged;
|
33731
33726
|
export {
|
33732
33727
|
ks as CountryOptions,
|
33733
33728
|
ct as FeedMeAuth,
|
33734
|
-
|
33729
|
+
Xb as FmNavBar,
|
33735
33730
|
Wn as baseClientInstance,
|
33736
|
-
|
33737
|
-
|
33731
|
+
e2 as initialize,
|
33732
|
+
t2 as onAuthStateChanged,
|
33738
33733
|
bt as useCoreStore
|
33739
33734
|
};
|