@feedmepos/mf-settings 0.0.50-beta.1 → 0.0.51
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{App-22eddb78.js → App-b3a895b0.js} +1 -1
- package/dist/{Business-416835ab.js → Business-189e288f.js} +1 -1
- package/dist/{CreateBusiness-138ac258.js → CreateBusiness-2a4f54d4.js} +85 -85
- package/dist/{Tagging-b746a5f3.js → Tagging-5ba0d4ec.js} +1 -1
- package/dist/{app-abfabbcf.js → app-6a6102be.js} +36 -34
- package/dist/app.js +1 -1
- package/dist/apps/mf-settings/tsconfig.app.tsbuildinfo +1 -1
- package/dist/packages/shared/src/components/form/DynamicSheet.vue.d.ts +19 -0
- package/dist/packages/shared/src/components/layout/ListLayout.vue.d.ts +2 -0
- package/dist/packages/shared/src/composable/elementPosition.d.ts +1 -1
- package/dist/packages/shared/src/composable/prompt.d.ts +9 -0
- package/dist/packages/shared/src/composable/sheet.d.ts +17 -0
- package/dist/packages/shared/src/helpers/browser.d.ts +1 -0
- package/dist/packages/shared/src/helpers/string.d.ts +12 -0
- package/package.json +3 -2
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent as Ye, computed as Pe, ref as xt, watchEffect as Vt, resolveComponent as Wt, openBlock as Xe, createBlock as Qe, onMounted as Ht, unref as $t } from "vue";
|
|
2
2
|
import { useRouter as jt, RouterView as Bt } from "vue-router";
|
|
3
3
|
import { useI18n as Kt, useCoreStore as Ze, FeedMeAuth as qt } from "@feedmepos/mf-common";
|
|
4
|
-
import { r as Gt } from "./app-
|
|
4
|
+
import { r as Gt } from "./app-6a6102be.js";
|
|
5
5
|
import { c as zt } from "./index-1eb3cc0a.js";
|
|
6
6
|
import { e as Jt } from "./index-f1e5e565.js";
|
|
7
7
|
import { r as de, g as et, i as Yt, a as Xt, _ as Ne, C as Oe, b as Qt, S as F, c as O, E as pe, d as Zt, e as tt, f as en, h as tn, L as nt, j as f, k as nn, l as rn, F as ge, q as x, m as sn, n as on, o as an, p as cn, s as ln, t as un, u as dn, v as hn } from "./index.esm2017-c60b1ce5.js";
|
|
@@ -10,7 +10,7 @@ import { _ as lr, r as ce } from "./rules-c9fa22f8.js";
|
|
|
10
10
|
import { w as xe, u as ve, x as Dr, y as Gr, t as qe, z as He, A as Br, B as Kr, D as qr, G as Hr } from "./index.esm2017-c60b1ce5.js";
|
|
11
11
|
import { D as dt, u as ur, _ as zr, a as Xr } from "./ResponsiveFabButton.vue_vue_type_script_setup_true_lang-977372d5.js";
|
|
12
12
|
import { b as ze, a as Xe, g as ft, u as cr } from "./loading-84215dce.js";
|
|
13
|
-
import { u as Yr } from "./app-
|
|
13
|
+
import { u as Yr } from "./app-6a6102be.js";
|
|
14
14
|
import { _ as Ee, c as Wr } from "./actionButton-cc6bcf01.js";
|
|
15
15
|
import { b as Jr } from "./business-9a4e5bd7.js";
|
|
16
16
|
import "pinia";
|
|
@@ -1,49 +1,49 @@
|
|
|
1
|
-
import { unref as n, defineComponent as
|
|
2
|
-
import { useCoreStore as
|
|
3
|
-
import { _ as
|
|
1
|
+
import { unref as n, defineComponent as M, openBlock as g, createElementBlock as y, ref as f, computed as L, watch as G, watchEffect as P, onBeforeUnmount as W, resolveComponent as h, createVNode as v, withCtx as z, createElementVNode as s, toDisplayString as b, Fragment as R, renderList as Z, normalizeClass as q, createBlock as Q, createCommentVNode as Y } from "vue";
|
|
2
|
+
import { useCoreStore as J, useI18n as K, CountryOptions as X } from "@feedmepos/mf-common";
|
|
3
|
+
import { _ as ee, r as te } from "./rules-c9fa22f8.js";
|
|
4
4
|
import { b as w } from "./business-9a4e5bd7.js";
|
|
5
5
|
import "./index-f1e5e565.js";
|
|
6
|
-
import { useSnackbar as
|
|
7
|
-
import { u as
|
|
8
|
-
import { useRouter as
|
|
6
|
+
import { useSnackbar as se } from "@feedmepos/ui-library";
|
|
7
|
+
import { u as ne, F as oe } from "./loading-84215dce.js";
|
|
8
|
+
import { useRouter as le } from "vue-router";
|
|
9
9
|
import "pinia";
|
|
10
|
-
function
|
|
10
|
+
function S(r) {
|
|
11
11
|
return typeof r == "function" ? r() : n(r);
|
|
12
12
|
}
|
|
13
13
|
typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
|
|
14
|
-
const
|
|
14
|
+
const A = () => {
|
|
15
15
|
};
|
|
16
|
-
function
|
|
16
|
+
function ie(r, e) {
|
|
17
17
|
function o(...t) {
|
|
18
|
-
return new Promise((c,
|
|
19
|
-
Promise.resolve(r(() => e.apply(this, t), { fn: e, thisArg: this, args: t })).then(c).catch(
|
|
18
|
+
return new Promise((c, d) => {
|
|
19
|
+
Promise.resolve(r(() => e.apply(this, t), { fn: e, thisArg: this, args: t })).then(c).catch(d);
|
|
20
20
|
});
|
|
21
21
|
}
|
|
22
22
|
return o;
|
|
23
23
|
}
|
|
24
|
-
function
|
|
25
|
-
let o, t, c =
|
|
26
|
-
const
|
|
27
|
-
clearTimeout(_), c(), c =
|
|
24
|
+
function ae(r, e = {}) {
|
|
25
|
+
let o, t, c = A;
|
|
26
|
+
const d = (_) => {
|
|
27
|
+
clearTimeout(_), c(), c = A;
|
|
28
28
|
};
|
|
29
29
|
return (_) => {
|
|
30
|
-
const l =
|
|
31
|
-
return o &&
|
|
32
|
-
c = e.rejectOnCancel ? C :
|
|
33
|
-
o &&
|
|
30
|
+
const l = S(r), i = S(e.maxWait);
|
|
31
|
+
return o && d(o), l <= 0 || i !== void 0 && i <= 0 ? (t && (d(t), t = null), Promise.resolve(_())) : new Promise((p, C) => {
|
|
32
|
+
c = e.rejectOnCancel ? C : p, i && !t && (t = setTimeout(() => {
|
|
33
|
+
o && d(o), t = null, p(_());
|
|
34
34
|
}, i)), o = setTimeout(() => {
|
|
35
|
-
t &&
|
|
35
|
+
t && d(t), t = null, p(_());
|
|
36
36
|
}, l);
|
|
37
37
|
});
|
|
38
38
|
};
|
|
39
39
|
}
|
|
40
|
-
function
|
|
41
|
-
return
|
|
42
|
-
|
|
40
|
+
function re(r, e = 200, o = {}) {
|
|
41
|
+
return ie(
|
|
42
|
+
ae(e, o),
|
|
43
43
|
r
|
|
44
44
|
);
|
|
45
45
|
}
|
|
46
|
-
const
|
|
46
|
+
const ce = `<svg width="388" height="388" viewBox="0 0 388 388" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
47
47
|
<path d="M239.449 0H148.553C66.5106 0 0.00195312 66.5086 0.00195312 148.551V239.447C0.00195312 321.489 66.5106 387.998 148.553 387.998H239.449C321.491 387.998 388 321.489 388 239.447V148.551C388 66.5086 321.491 0 239.449 0Z" fill="url(#paint0_linear_8849_557)" style=""/>
|
|
48
48
|
<mask id="mask0_8849_557" style="mask-type:luminance" maskUnits="userSpaceOnUse" x="0" y="0" width="388" height="388">
|
|
49
49
|
<path d="M239.447 0H148.551C66.5086 0 0 66.5086 0 148.551V239.447C0 321.489 66.5086 387.998 148.551 387.998H239.447C321.49 387.998 387.998 321.489 387.998 239.447V148.551C387.998 66.5086 321.49 0 239.447 0Z" fill="white" style="fill:white;fill:white;fill-opacity:1;"/>
|
|
@@ -58,57 +58,57 @@ const re = `<svg width="388" height="388" viewBox="0 0 388 388" fill="none" xmln
|
|
|
58
58
|
</linearGradient>
|
|
59
59
|
</defs>
|
|
60
60
|
</svg>
|
|
61
|
-
`,
|
|
61
|
+
`, ue = ["innerHTML"], de = /* @__PURE__ */ M({
|
|
62
62
|
__name: "FeedmeLogo",
|
|
63
63
|
setup(r) {
|
|
64
|
-
return (e, o) => (
|
|
64
|
+
return (e, o) => (g(), y("div", {
|
|
65
65
|
class: "logo",
|
|
66
66
|
style: { width: "54px", height: "54px" },
|
|
67
|
-
innerHTML: n(
|
|
68
|
-
}, null, 8,
|
|
67
|
+
innerHTML: n(ce)
|
|
68
|
+
}, null, 8, ue));
|
|
69
69
|
}
|
|
70
70
|
});
|
|
71
|
-
const
|
|
71
|
+
const me = /* @__PURE__ */ ee(de, [["__scopeId", "data-v-c0191534"]]), pe = { class: "flex flex-col justify-center items-center bg-fm-color-neutral-white py-24" }, _e = { class: "space-y-32" }, fe = { class: "space-y-8" }, ve = { class: "fm-typo-en-title-lg-600" }, ge = { class: "space-y-8" }, he = { class: "fm-typo-en-title-sm-600" }, be = { class: "flex gap-16" }, ye = ["onClick"], Ce = { class: "space-y-8" }, we = { class: "m-8 w-[33px]" }, xe = ["innerHTML"], Fe = { class: "fm-typo-en-body-sm-600" }, Ve = { class: "space-y-16" }, Ie = /* @__PURE__ */ M({
|
|
72
72
|
__name: "CreateBusiness",
|
|
73
73
|
setup(r) {
|
|
74
74
|
var V;
|
|
75
|
-
|
|
76
|
-
const e =
|
|
77
|
-
|
|
75
|
+
le();
|
|
76
|
+
const e = J(), o = f(""), t = f(""), c = f(""), d = f(!0), x = se(), _ = ne(x), { t: l } = K(), i = f(((V = e.currentCountry.value) == null ? void 0 : V.toUpperCase()) || "MY"), p = f([]), C = L(() => X.filter((u) => e.enabledCountries.value.includes(u.code)));
|
|
77
|
+
G(
|
|
78
78
|
i,
|
|
79
|
-
(
|
|
80
|
-
w.readBusinesses(i.value).then((
|
|
81
|
-
|
|
79
|
+
(u) => {
|
|
80
|
+
w.readBusinesses(i.value).then((m) => {
|
|
81
|
+
p.value = m;
|
|
82
82
|
});
|
|
83
83
|
},
|
|
84
84
|
{ immediate: !0 }
|
|
85
85
|
);
|
|
86
|
-
async function
|
|
86
|
+
async function D() {
|
|
87
87
|
try {
|
|
88
|
-
const
|
|
89
|
-
c.value =
|
|
88
|
+
const u = await w.readAgentByCode(t.value);
|
|
89
|
+
c.value = u ? u.id : "";
|
|
90
90
|
} catch {
|
|
91
91
|
c.value = "";
|
|
92
92
|
}
|
|
93
|
-
|
|
93
|
+
d.value = !!c.value;
|
|
94
94
|
}
|
|
95
|
-
const
|
|
96
|
-
async function
|
|
95
|
+
const I = re(D, 500), O = L(() => !!(F.value || p.value.length > 0 || t.value && !c.value)), F = f(!1);
|
|
96
|
+
async function E() {
|
|
97
97
|
_.minor(
|
|
98
98
|
async () => {
|
|
99
|
-
var
|
|
100
|
-
const
|
|
99
|
+
var m;
|
|
100
|
+
const u = await w.createBusiness(
|
|
101
101
|
{
|
|
102
102
|
name: o.value,
|
|
103
103
|
restaurantQuota: 1,
|
|
104
104
|
warehouseQuota: 0,
|
|
105
105
|
internal: !1,
|
|
106
|
-
ownerId: (
|
|
106
|
+
ownerId: (m = e.sessionUser.value) == null ? void 0 : m.id,
|
|
107
107
|
agentId: c.value || void 0
|
|
108
108
|
},
|
|
109
109
|
i.value
|
|
110
110
|
);
|
|
111
|
-
|
|
111
|
+
u._id && (e.setCachedBusiness(u._id), e.setCachedCountry(i.value)), setTimeout(() => {
|
|
112
112
|
window.location.href = "/";
|
|
113
113
|
}, 500);
|
|
114
114
|
},
|
|
@@ -117,102 +117,102 @@ const de = /* @__PURE__ */ X(ue, [["__scopeId", "data-v-c0191534"]]), me = { cla
|
|
|
117
117
|
}
|
|
118
118
|
);
|
|
119
119
|
}
|
|
120
|
-
async function
|
|
120
|
+
async function N() {
|
|
121
121
|
await e.signOut(), setTimeout(() => {
|
|
122
|
-
window.location.href = `${
|
|
122
|
+
window.location.href = `${oe.baseUrl}/login?fm_redirect=${encodeURIComponent(window.location.protocol + "//" + window.location.host)}`;
|
|
123
123
|
}, 500);
|
|
124
124
|
}
|
|
125
|
-
return
|
|
125
|
+
return P(() => {
|
|
126
126
|
e.hideSidebar.value || e.hideSidebarToggle(!0);
|
|
127
|
-
}),
|
|
127
|
+
}), W(() => {
|
|
128
128
|
e.hideSidebarToggle(!1);
|
|
129
|
-
}), (
|
|
130
|
-
const k = h("FmTextField"),
|
|
131
|
-
return
|
|
132
|
-
|
|
129
|
+
}), (u, m) => {
|
|
130
|
+
const k = h("FmTextField"), $ = h("FmSnackbar"), T = h("FmButton"), j = h("FmForm");
|
|
131
|
+
return g(), y("div", pe, [
|
|
132
|
+
v(j, {
|
|
133
133
|
class: "w-[540px] xs:w-full xs:px-16 space-y-24",
|
|
134
134
|
"blame-form-child-on-validation-failed": "",
|
|
135
|
-
"on-validation-success":
|
|
135
|
+
"on-validation-success": E
|
|
136
136
|
}, {
|
|
137
|
-
default:
|
|
137
|
+
default: z(() => {
|
|
138
138
|
var B, H, U;
|
|
139
139
|
return [
|
|
140
140
|
s("div", null, [
|
|
141
|
-
|
|
141
|
+
v(me)
|
|
142
142
|
]),
|
|
143
|
-
s("div",
|
|
144
|
-
s("div",
|
|
145
|
-
s("div",
|
|
143
|
+
s("div", _e, [
|
|
144
|
+
s("div", fe, [
|
|
145
|
+
s("div", ve, b(n(l)("settings.create_business.welcome", {
|
|
146
146
|
name: (H = (B = n(e).sessionUser) == null ? void 0 : B.value) == null ? void 0 : H.displayName
|
|
147
147
|
})), 1),
|
|
148
148
|
s("div", null, b(n(l)("settings.create_business.subtitle")), 1)
|
|
149
149
|
]),
|
|
150
150
|
s("div", null, [
|
|
151
|
-
|
|
151
|
+
v(k, {
|
|
152
152
|
label: n(l)("settings.create_business.business_name.label"),
|
|
153
153
|
"label-mark": "required",
|
|
154
|
-
rules: [n(
|
|
154
|
+
rules: [n(te)],
|
|
155
155
|
modelValue: o.value,
|
|
156
|
-
"onUpdate:modelValue":
|
|
156
|
+
"onUpdate:modelValue": m[0] || (m[0] = (a) => o.value = a)
|
|
157
157
|
}, null, 8, ["label", "rules", "modelValue"])
|
|
158
158
|
]),
|
|
159
159
|
s("div", null, [
|
|
160
|
-
|
|
160
|
+
v(k, {
|
|
161
161
|
label: n(l)("settings.create_business.agent.label"),
|
|
162
162
|
modelValue: t.value,
|
|
163
163
|
"onUpdate:modelValue": [
|
|
164
|
-
|
|
165
|
-
n(
|
|
164
|
+
m[1] || (m[1] = (a) => t.value = a),
|
|
165
|
+
n(I)
|
|
166
166
|
],
|
|
167
|
-
rules: [(a) => !a ||
|
|
167
|
+
rules: [(a) => !a || d.value || n(l)("settings.create_business.agent.invalid")]
|
|
168
168
|
}, null, 8, ["label", "modelValue", "onUpdate:modelValue", "rules"])
|
|
169
169
|
]),
|
|
170
170
|
s("div", ge, [
|
|
171
|
-
s("div",
|
|
172
|
-
s("div",
|
|
173
|
-
(
|
|
171
|
+
s("div", he, b(n(l)("settings.create_business.country.title")), 1),
|
|
172
|
+
s("div", be, [
|
|
173
|
+
(g(!0), y(R, null, Z(C.value, (a) => (g(), y("div", {
|
|
174
174
|
key: a.code,
|
|
175
|
-
class:
|
|
175
|
+
class: q(["flex-1 h-[124px] flex justify-center items-center border-2 fm-corner-radius-md cursor-pointer", [
|
|
176
176
|
i.value === a.code ? "border-fm-color-primary" : "border-fm-color-neutral-gray-200",
|
|
177
177
|
i.value === a.code ? "bg-fm-color-system-warning-100" : "bg-fm-color-neutral-white"
|
|
178
178
|
]]),
|
|
179
|
-
onClick: (
|
|
179
|
+
onClick: (ke) => i.value = a.code.toUpperCase()
|
|
180
180
|
}, [
|
|
181
|
-
s("div",
|
|
182
|
-
s("div",
|
|
181
|
+
s("div", Ce, [
|
|
182
|
+
s("div", we, [
|
|
183
183
|
s("span", {
|
|
184
184
|
innerHTML: a.flag
|
|
185
|
-
}, null, 8,
|
|
185
|
+
}, null, 8, xe)
|
|
186
186
|
]),
|
|
187
|
-
s("div",
|
|
187
|
+
s("div", Fe, b(a.name), 1)
|
|
188
188
|
])
|
|
189
|
-
], 10,
|
|
189
|
+
], 10, ye))), 128))
|
|
190
190
|
])
|
|
191
191
|
]),
|
|
192
|
-
|
|
192
|
+
p.value.length > 0 ? (g(), Q($, {
|
|
193
193
|
key: 0,
|
|
194
194
|
variant: "info",
|
|
195
195
|
title: n(l)("settings.create_business.country.exists.title"),
|
|
196
|
-
description: n(l)("settings.create_business.country.exists.message", { name: (U =
|
|
197
|
-
}, null, 8, ["title", "description"])) :
|
|
198
|
-
s("div",
|
|
196
|
+
description: n(l)("settings.create_business.country.exists.message", { name: (U = p.value[0]) == null ? void 0 : U.name })
|
|
197
|
+
}, null, 8, ["title", "description"])) : Y("", !0),
|
|
198
|
+
s("div", Ve, [
|
|
199
199
|
s("div", null, [
|
|
200
|
-
|
|
200
|
+
v(T, {
|
|
201
201
|
label: n(l)("settings.create_business.submit"),
|
|
202
202
|
variant: "primary",
|
|
203
203
|
size: "lg",
|
|
204
204
|
class: "w-full",
|
|
205
|
-
disabled:
|
|
205
|
+
disabled: O.value,
|
|
206
206
|
type: "submit"
|
|
207
207
|
}, null, 8, ["label", "disabled"])
|
|
208
208
|
]),
|
|
209
209
|
s("div", null, [
|
|
210
|
-
|
|
210
|
+
v(T, {
|
|
211
211
|
label: n(l)("settings.create_business.logout"),
|
|
212
212
|
variant: "secondary",
|
|
213
213
|
size: "lg",
|
|
214
214
|
class: "w-full",
|
|
215
|
-
onClick:
|
|
215
|
+
onClick: N
|
|
216
216
|
}, null, 8, ["label"])
|
|
217
217
|
])
|
|
218
218
|
])
|
|
@@ -226,5 +226,5 @@ const de = /* @__PURE__ */ X(ue, [["__scopeId", "data-v-c0191534"]]), me = { cla
|
|
|
226
226
|
}
|
|
227
227
|
});
|
|
228
228
|
export {
|
|
229
|
-
|
|
229
|
+
Ie as default
|
|
230
230
|
};
|
|
@@ -8,7 +8,7 @@ import { c as br } from "./index-f1e5e565.js";
|
|
|
8
8
|
import { defineStore as jm } from "pinia";
|
|
9
9
|
import { b as es } from "./business-9a4e5bd7.js";
|
|
10
10
|
import "@vue/devtools-api";
|
|
11
|
-
import { _ as eE } from "./app-
|
|
11
|
+
import { _ as eE } from "./app-6a6102be.js";
|
|
12
12
|
import "@feedmepos/mf-mdm";
|
|
13
13
|
import "vue-router";
|
|
14
14
|
import "@feedmepos/mf-e-invoice";
|
|
@@ -1,54 +1,56 @@
|
|
|
1
|
-
import { FmApp as
|
|
2
|
-
import { ref as
|
|
1
|
+
import { FmApp as b, routers as v, i18nMessages as d } from "@feedmepos/mf-mdm";
|
|
2
|
+
import { ref as m, watch as c, nextTick as u, onMounted as h, onBeforeUnmount as _, defineComponent as p, computed as y, openBlock as g, createElementBlock as f, normalizeStyle as R, renderSlot as w, resolveComponent as L, createBlock as C, withCtx as U, createElementVNode as q, createVNode as A, defineAsyncComponent as T } from "vue";
|
|
3
3
|
import { useBreakpoints as k } from "@feedmepos/ui-library";
|
|
4
4
|
import "vue-router";
|
|
5
5
|
import { FmApp as F, routers as x } from "@feedmepos/mf-e-invoice";
|
|
6
6
|
import { withPermission as S } from "@feedmepos/mf-common";
|
|
7
|
-
function $(e) {
|
|
8
|
-
const n =
|
|
9
|
-
function
|
|
7
|
+
function $(e, o) {
|
|
8
|
+
const n = m({ top: 0, bottom: 0, left: 0, right: 0 });
|
|
9
|
+
function t() {
|
|
10
10
|
if (e.value) {
|
|
11
|
-
const
|
|
11
|
+
const a = e.value.getBoundingClientRect();
|
|
12
12
|
n.value = {
|
|
13
|
-
top:
|
|
14
|
-
bottom:
|
|
15
|
-
left:
|
|
16
|
-
right:
|
|
13
|
+
top: a.top,
|
|
14
|
+
bottom: a.bottom,
|
|
15
|
+
left: a.left,
|
|
16
|
+
right: a.right
|
|
17
17
|
};
|
|
18
18
|
}
|
|
19
19
|
}
|
|
20
|
-
return
|
|
21
|
-
|
|
20
|
+
return c(o, async () => {
|
|
21
|
+
await u(), t();
|
|
22
|
+
}), c(e, async (a) => {
|
|
23
|
+
a && (await u(), t());
|
|
22
24
|
}), h(() => {
|
|
23
|
-
window.addEventListener("resize",
|
|
25
|
+
window.addEventListener("resize", t);
|
|
24
26
|
}), _(() => {
|
|
25
|
-
window.removeEventListener("resize",
|
|
27
|
+
window.removeEventListener("resize", t);
|
|
26
28
|
}), n;
|
|
27
29
|
}
|
|
28
|
-
const I = /* @__PURE__ */
|
|
30
|
+
const I = /* @__PURE__ */ p({
|
|
29
31
|
__name: "FullWrapper",
|
|
30
32
|
setup(e) {
|
|
31
|
-
const
|
|
32
|
-
var
|
|
33
|
-
const
|
|
33
|
+
const o = k(), n = m(null), t = $(n), a = y(() => {
|
|
34
|
+
var l;
|
|
35
|
+
const r = o.isAtMost("sm") ? 56 : 0;
|
|
34
36
|
return {
|
|
35
|
-
height: `calc(100dvh - ${((
|
|
37
|
+
height: `calc(100dvh - ${((l = t.value) == null ? void 0 : l.top) + 24 + r}px)`
|
|
36
38
|
};
|
|
37
39
|
});
|
|
38
|
-
return (
|
|
40
|
+
return (s, r) => (g(), f("div", {
|
|
39
41
|
ref_key: "wrapper",
|
|
40
|
-
ref:
|
|
41
|
-
style: R(
|
|
42
|
+
ref: n,
|
|
43
|
+
style: R(a.value)
|
|
42
44
|
}, [
|
|
43
|
-
w(
|
|
45
|
+
w(s.$slots, "default")
|
|
44
46
|
], 4));
|
|
45
47
|
}
|
|
46
|
-
}), N = { class: "flex justify-center items-center h-full w-full" }, P = /* @__PURE__ */
|
|
48
|
+
}), N = { class: "flex justify-center items-center h-full w-full" }, P = /* @__PURE__ */ p({
|
|
47
49
|
__name: "PageLoading",
|
|
48
50
|
setup(e) {
|
|
49
|
-
return (
|
|
51
|
+
return (o, n) => {
|
|
50
52
|
const t = L("FmCircularProgress");
|
|
51
|
-
return
|
|
53
|
+
return g(), C(I, null, {
|
|
52
54
|
default: U(() => [
|
|
53
55
|
q("div", N, [
|
|
54
56
|
A(t, { size: "xl" })
|
|
@@ -696,7 +698,7 @@ const I = /* @__PURE__ */ c({
|
|
|
696
698
|
{
|
|
697
699
|
path: "/business",
|
|
698
700
|
name: "$settings-my-business",
|
|
699
|
-
component: i(() => import("./Business-
|
|
701
|
+
component: i(() => import("./Business-189e288f.js")),
|
|
700
702
|
meta: {
|
|
701
703
|
i18nKey: "settings.business.title"
|
|
702
704
|
}
|
|
@@ -704,7 +706,7 @@ const I = /* @__PURE__ */ c({
|
|
|
704
706
|
{
|
|
705
707
|
path: "/create-business",
|
|
706
708
|
name: "$settings-create-business",
|
|
707
|
-
component: i(() => import("./CreateBusiness-
|
|
709
|
+
component: i(() => import("./CreateBusiness-2a4f54d4.js")),
|
|
708
710
|
meta: {
|
|
709
711
|
hideNavigation: !0
|
|
710
712
|
}
|
|
@@ -720,8 +722,8 @@ const I = /* @__PURE__ */ c({
|
|
|
720
722
|
{
|
|
721
723
|
path: "/devices",
|
|
722
724
|
name: "$settings-device",
|
|
723
|
-
component:
|
|
724
|
-
children:
|
|
725
|
+
component: b,
|
|
726
|
+
children: v.map((e) => ({ ...e, path: `/device${e.path}` })),
|
|
725
727
|
meta: {
|
|
726
728
|
i18nKey: "settings.device.title"
|
|
727
729
|
}
|
|
@@ -754,7 +756,7 @@ const I = /* @__PURE__ */ c({
|
|
|
754
756
|
{
|
|
755
757
|
path: "/tagging",
|
|
756
758
|
name: "$settings-tagging",
|
|
757
|
-
component: S(i(() => import("./Tagging-
|
|
759
|
+
component: S(i(() => import("./Tagging-5ba0d4ec.js"))),
|
|
758
760
|
meta: {
|
|
759
761
|
i18nKey: "settings.tagging.title",
|
|
760
762
|
validationManifest: {
|
|
@@ -763,14 +765,14 @@ const I = /* @__PURE__ */ c({
|
|
|
763
765
|
hideNavigation: !0
|
|
764
766
|
}
|
|
765
767
|
}
|
|
766
|
-
], Q = i(() => import("./App-
|
|
768
|
+
], Q = i(() => import("./App-b3a895b0.js")), Y = {
|
|
767
769
|
"en-US": {
|
|
768
770
|
...E,
|
|
769
|
-
...
|
|
771
|
+
...d["en-US"]
|
|
770
772
|
},
|
|
771
773
|
"zh-CN": {
|
|
772
774
|
...M,
|
|
773
|
-
...
|
|
775
|
+
...d["zh-CN"]
|
|
774
776
|
}
|
|
775
777
|
};
|
|
776
778
|
export {
|
package/dist/app.js
CHANGED