@feedmepos/mf-connect 0.1.38-beta.8 → 0.1.38-beta.80
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/{Analytic-CJap-Cat.js → Analytic-LOK5TzX0.js} +31 -32
- package/dist/{App-CLTtX1QT.js → App-Bk5Z5u5_.js} +617 -607
- package/dist/AuditLogs-Rezf9EeA.js +1991 -0
- package/dist/{Bin-C2xMLxoE.js → Bin-B8yzS5bD.js} +10 -10
- package/dist/Broadcast-CZ0QCvua.js +266 -0
- package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-BCkD7Xfn.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-iJQS2Ck9.js} +6 -6
- package/dist/{Card-BPrCNLQy.js → Card-BQOv5yB9.js} +145 -140
- package/dist/Collections-qenPlCd2.js +540 -0
- package/dist/Credit-BJLskbVu.js +260 -0
- package/dist/CustomSelect.vue_vue_type_script_setup_true_lang-Du7fRSZC.js +128 -0
- package/dist/DateInput.vue_vue_type_script_setup_true_lang-BN4Q5Y3l.js +54 -0
- package/dist/{DateRangeChip.vue_vue_type_script_setup_true_lang-BUzUIIUW.js → DateRangeChip.vue_vue_type_script_setup_true_lang-eIoPtgO5.js} +1 -1
- package/dist/EditCampaignSheet.vue_vue_type_script_setup_true_lang-DKWCWOU_.js +3120 -0
- package/dist/EffectSheet.vue_vue_type_style_index_0_lang-Dw1qQfnG.js +351 -0
- package/dist/Experience-BjfEiGT8.js +259 -0
- package/dist/{FileSaver.min-NlMItPOc.js → FileSaver.min-C013Tr1o.js} +1 -1
- package/dist/FilterChip.vue_vue_type_script_setup_true_lang-DaU-9GzO.js +129 -0
- package/dist/FmTableSelection.vue_vue_type_script_setup_true_lang-DzcUc0_w.js +52 -0
- package/dist/Game-Gw_tFjen.js +330 -0
- package/dist/Grab-Bdv7SaB9.js +300 -0
- package/dist/{ImageInput.vue_vue_type_script_setup_true_lang-rWUkV9gn.js → ImageInput.vue_vue_type_script_setup_true_lang-Ba4L39GL.js} +49 -48
- package/dist/{Index-DMdNgISh.js → Index-C67U3YDJ.js} +54 -54
- package/dist/LocationPicker.vue_vue_type_script_setup_true_lang-pQ8sF5KW.js +48 -0
- package/dist/{LottieAnimation.vue_vue_type_script_setup_true_lang-CyGJxUol.js → LottieAnimation.vue_vue_type_script_setup_true_lang-o-eN3J4i.js} +1 -1
- package/dist/{MainLayout-B1aJoR95.js → MainLayout-DPjqCyJ5.js} +1 -1
- package/dist/Marketing-DtEooXof.js +166 -0
- package/dist/MarketingMaterialEdit-Balw055Y.js +1065 -0
- package/dist/{Member-CnSXGQi_.js → Member-QA7TQnyw.js} +38 -37
- package/dist/{MemberList-DcpEKV1D.js → MemberList-CSJQFYlh.js} +486 -491
- package/dist/{MemberTransactions-DeuuEcO5.js → MemberTransactions-D-46vda_.js} +1 -1
- package/dist/{MessageInput.vue_vue_type_script_setup_true_lang-DLAEPNsq.js → MessageInput.vue_vue_type_script_setup_true_lang-6a7_lw74.js} +13443 -10607
- package/dist/Mission-DJVxFbX5.js +334 -0
- package/dist/{Overview-elpi-jpI.js → Overview-Btkh3oiI.js} +24 -25
- package/dist/Point-CVdF9GtN.js +262 -0
- package/dist/Promotion-BtmlvUd3.js +396 -0
- package/dist/{Queue-GvBhNEFe.js → Queue-BfiCMsLC.js} +23 -24
- package/dist/{Record-CbSxgo8i.js → Record-B07QGPli.js} +10 -10
- package/dist/Review-BeZ90jW9.js +621 -0
- package/dist/ReviewFacebookCallback-CwAcKaib.js +243 -0
- package/dist/ReviewGoogleCallback-CVK6Yc5E.js +213 -0
- package/dist/{Reward-QCGlrq89.js → Reward-CyXqNpAa.js} +16 -16
- package/dist/{RewardGroup.vue_vue_type_script_setup_true_lang-DSRvoo9z.js → RewardGroup.vue_vue_type_script_setup_true_lang-BICsdgSh.js} +13 -14
- package/dist/RuleGroup.vue_vue_type_script_setup_true_lang-BgKGNK7y.js +1912 -0
- package/dist/{Segment-5PndnEUa.js → Segment-B9g57O7g.js} +273 -274
- package/dist/{SelectItems.vue_vue_type_script_setup_true_lang-DXR7bpzY.js → SelectItems.vue_vue_type_script_setup_true_lang-BwDOXE87.js} +23 -23
- package/dist/{SendCollectionSheet.vue_vue_type_script_setup_true_lang-DmITlNtt.js → SendCollectionSheet.vue_vue_type_script_setup_true_lang-DXDcJLYF.js} +12 -12
- package/dist/SendVoucherSheet.vue_vue_type_script_setup_true_lang-CROBk6cD.js +226 -0
- package/dist/Setting-BHteqZv6.js +2039 -0
- package/dist/SettingAdvertisements-CubrbuSL.js +264 -0
- package/dist/Store-u6LYUnmp.js +1996 -0
- package/dist/StoreRewards-D9h0YnEx.js +535 -0
- package/dist/StoreTransactions.vue_vue_type_script_setup_true_lang-vrYqDGOa.js +1129 -0
- package/dist/TargetLocationInput.vue_vue_type_script_setup_true_lang-WgNstmNx.js +7007 -0
- package/dist/{Tier-BKKxG29r.js → Tier-CBdi4sPT.js} +561 -480
- package/dist/{Title-CReZgw8V.js → Title-BegmN7hs.js} +151 -149
- package/dist/{Transaction-HWCmSVaJ.js → Transaction-C6XMd9_r.js} +2 -2
- package/dist/{UserRuleGroup.vue_vue_type_script_setup_true_lang-D00AchXo.js → UserRuleGroup.vue_vue_type_script_setup_true_lang-BBf4BP4m.js} +7 -7
- package/dist/Voucher-D6hSas_z.js +421 -0
- package/dist/VoucherEditor.vue_vue_type_script_setup_true_lang-ZOlAZ_q5.js +421 -0
- package/dist/{ZodTextField.vue_vue_type_script_setup_true_lang-DXF39yC1.js → ZodTextField.vue_vue_type_script_setup_true_lang-Bs8TNiCY.js} +2 -2
- package/dist/app-Duwed9mD.js +59309 -0
- package/dist/app.js +1 -1
- package/dist/{business-Bc-EMd2p.js → business-6oZ8Rgui.js} +11 -8
- package/dist/campaign-CzenWLhs.js +219 -0
- package/dist/campaign-PYce7g0o.js +253 -0
- package/dist/campaign.enum-KHniCp5a.js +26 -0
- package/dist/campaign.fn-dOSgHJcU.js +776 -0
- package/dist/{collectible.enum-C4dM8khp.js → collectible.enum-BZA1DKIB.js} +1 -1
- package/dist/{collection.fn-AjDNdFe1.js → collection.fn-CyfrdKBf.js} +2 -2
- package/dist/dto-DYmM2ud_.js +222 -0
- package/dist/duplicateCampaign-BXaDK8Q6.js +51 -0
- package/dist/effect-DBI_JHbP.js +89 -0
- package/dist/{email-addresses-B0SzUCQM.js → email-addresses-BNs-WN79.js} +2 -2
- package/dist/{export-Bgz6WcNZ.js → export-DTCCKE2m.js} +4 -4
- package/dist/{helper-B1vFwohM.js → helper-CeYr7Anh.js} +22 -7
- package/dist/index-38u-cCwD.js +3431 -0
- package/dist/{index-Cm2sBagk.js → index-BdjY7GRO.js} +1 -1
- package/dist/index-CGMiuxyf.js +85 -0
- package/dist/index-CQZbm9P5.js +8912 -0
- package/dist/index-Cal60fAm.js +48 -0
- package/dist/{index-DT2viYsL.js → index-CnRLkzpg.js} +617 -191
- package/dist/index-CuvNtC_M.js +61 -0
- package/dist/{index-CSQY21Zb.js → index-D-kPBF9C.js} +3 -3
- package/dist/{index-DVQnrex_.js → index-DcFYm1fy.js} +3 -3
- package/dist/index-DjONNxbl.js +30289 -0
- package/dist/{index-26SopNpv.js → index-ItaoypTr.js} +1 -1
- package/dist/index-_jxXI4_v.js +28899 -0
- package/dist/{index-DwT9RLst.js → index-nXfjG8UQ.js} +23 -12
- package/dist/{index-BIRmS75g.js → index-pHQfP2e7.js} +1 -1
- package/dist/{index.esm2017-BAIN70_n.js → index.esm2017-CokFPnqn.js} +185 -185
- package/dist/{loading-C6Ouh0mG.js → loading-fZQi5zP8.js} +1 -1
- package/dist/{lodash-B5I3zXaY.js → lodash-R-DIRmbj.js} +1 -1
- package/dist/{membership-DU0BwIj8.js → membership-CApN5ZJ1.js} +3 -3
- package/dist/{moment-BWErdI6_.js → moment-D7p2TMB-.js} +6 -1
- package/dist/{money-Bg7GuE5s.js → money-C6I6vVy2.js} +1 -1
- package/dist/{number-Ddmqo5D_.js → number-Dq4d381U.js} +1 -1
- package/dist/objectid-Kv5GREBk.js +145 -0
- package/dist/{campaign-BeF8kTyg.js → plugins-9_UvAdJ2.js} +784 -777
- package/dist/remy-NLAa-9Qg.js +46 -0
- package/dist/{reward-CN4gvn4c.js → reward-DXHGeGYY.js} +1 -1
- package/dist/{rule-CpiqqR0c.js → rule-B_XgRDr-.js} +505 -487
- package/dist/rule-builder-BMXyzu8k.js +102 -0
- package/dist/style.css +11 -2
- package/dist/template-CnyTUzQU.js +188 -0
- package/dist/timezone-Izs3ibB-.js +1156 -0
- package/dist/trigger-Dda3NmaE.js +213 -0
- package/dist/usePagination-Byxk4XVn.js +220 -0
- package/dist/user-BZxO8qdh.js +55 -0
- package/dist/{vue-i18n-DVmD9I_o.js → vue-i18n-DDbkmbSf.js} +433 -433
- package/dist/{xlsx-qJHsnW7k.js → xlsx-D8yNl8dN.js} +1 -1
- package/dist/{zod-Bg2FbC-D.js → zod-Xp7TePRP.js} +32 -31
- package/package.json +14 -6
- package/dist/AuditLogs-DW4rwNOn.js +0 -1887
- package/dist/Broadcast-Dhc0j16O.js +0 -227
- package/dist/Collections-CsUJEmqz.js +0 -465
- package/dist/Credit-Mqa-0XJd.js +0 -222
- package/dist/CustomSelect.vue_vue_type_script_setup_true_lang-DLnvDVgf.js +0 -108
- package/dist/EditCampaignSheet.vue_vue_type_script_setup_true_lang-DWWLxIq-.js +0 -2185
- package/dist/EffectSheet.vue_vue_type_style_index_0_lang-BiQGZeDc.js +0 -347
- package/dist/Experience-BD5C3old.js +0 -223
- package/dist/FilterChip.vue_vue_type_script_setup_true_lang-d8rh38tD.js +0 -114
- package/dist/Game-D4xsi8Ym.js +0 -278
- package/dist/Marketing-axcQYl8k.js +0 -20073
- package/dist/Mission-BHZiL-GH.js +0 -296
- package/dist/Point-gKvdggAl.js +0 -226
- package/dist/Promotion-7x2F_sFX.js +0 -289
- package/dist/RuleGroup.vue_vue_type_script_setup_true_lang-AuN9NgcG.js +0 -1751
- package/dist/SendVoucherSheet.vue_vue_type_script_setup_true_lang-DTlv8ZAn.js +0 -147
- package/dist/Setting-Cab47wfH.js +0 -1936
- package/dist/Store-BFL3T9B5.js +0 -1842
- package/dist/StoreRewards-C43dCJtM.js +0 -423
- package/dist/StoreTransactions.vue_vue_type_script_setup_true_lang-aAj5-nzZ.js +0 -1029
- package/dist/TargetLocationInput.vue_vue_type_script_setup_true_lang-K3OPSYrF.js +0 -139
- package/dist/Voucher-BhUAcPZg.js +0 -384
- package/dist/VoucherEditor.vue_vue_type_script_setup_true_lang-C0YNez2L.js +0 -419
- package/dist/_commonjsHelpers-BkfeUUK-.js +0 -28
- package/dist/app-BGaUIdCr.js +0 -7086
- package/dist/app-DccKBdW_.js +0 -33357
- package/dist/campaign-DbJZEU7P.js +0 -96
- package/dist/campaign.enum-PBKYGUQY.js +0 -20
- package/dist/campaign.fn-Cq-4LfQj.js +0 -758
- package/dist/dto-8NvMMYAb.js +0 -214
- package/dist/effect-DZhcEQ5g.js +0 -78
- package/dist/index-CQQedv0M.js +0 -32260
- package/dist/index-CTgQRqQR.js +0 -30038
- package/dist/index-CsaQJMAR.js +0 -66
- package/dist/index-DGaywhpY.js +0 -76
- package/dist/index-DOfLDlI8.js +0 -8861
- package/dist/index-DVpAocyR.js +0 -3120
- package/dist/index-DlJGd8RC.js +0 -121
- package/dist/index-Dm65CTdy.js +0 -38
- package/dist/objectid-MCaJXAgq.js +0 -145
- package/dist/plugins-C-CRzeyC.js +0 -208
- package/dist/remy-vue-client-Cpppk9h-.js +0 -1693
- package/dist/rule-builder-DmkJng-x.js +0 -89
- package/dist/template-DTZgnkl5.js +0 -190
- package/dist/trigger-CPjJ73Rc.js +0 -144
- package/dist/usePagination-BeF5K3M7.js +0 -223
- package/dist/user-8VIt8A1x.js +0 -54
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { defineComponent as L, ref as F, watch as P, resolveComponent as m, openBlock as x, createElementBlock as
|
|
2
|
-
import "./index-
|
|
1
|
+
import { defineComponent as L, ref as F, watch as P, resolveComponent as m, openBlock as x, createElementBlock as C, Fragment as R, createElementVNode as b, createVNode as u, unref as n, withCtx as M, renderList as $, createBlock as D, toDisplayString as O, normalizeClass as U, computed as Y, createCommentVNode as q } from "vue";
|
|
2
|
+
import "./index-BdjY7GRO.js";
|
|
3
3
|
import { useDialogChild as H, FmButtonVariant as S, useDialog as J, useSnackbar as Q } from "@feedmepos/ui-library";
|
|
4
|
-
import { u as N } from "./vue-i18n-
|
|
5
|
-
import "./index-
|
|
6
|
-
import { c as A } from "./index-
|
|
7
|
-
import "./index-
|
|
8
|
-
import "./index-
|
|
9
|
-
import "./index-
|
|
10
|
-
import { u as g, w as j } from "./xlsx-
|
|
11
|
-
import { F as z } from "./FileSaver.min-
|
|
4
|
+
import { u as N } from "./vue-i18n-DDbkmbSf.js";
|
|
5
|
+
import "./index-CnRLkzpg.js";
|
|
6
|
+
import { c as A } from "./index-38u-cCwD.js";
|
|
7
|
+
import "./index-CQZbm9P5.js";
|
|
8
|
+
import "./index-DjONNxbl.js";
|
|
9
|
+
import "./index-D-kPBF9C.js";
|
|
10
|
+
import { u as g, w as j } from "./xlsx-D8yNl8dN.js";
|
|
11
|
+
import { F as z } from "./FileSaver.min-C013Tr1o.js";
|
|
12
12
|
import { useCoreStore as G } from "@feedmepos/mf-common";
|
|
13
13
|
import { useRouter as W } from "vue-router";
|
|
14
|
-
import { m as I } from "./index-
|
|
15
|
-
import { R as E } from "./app-
|
|
14
|
+
import { m as I } from "./index-CGMiuxyf.js";
|
|
15
|
+
import { R as E } from "./app-Duwed9mD.js";
|
|
16
16
|
const K = { class: "space-y-8 mb-10" }, X = { class: "flex justify-end" }, Z = {
|
|
17
17
|
key: 1,
|
|
18
18
|
class: /* @__PURE__ */ U([
|
|
@@ -23,7 +23,7 @@ const K = { class: "space-y-8 mb-10" }, X = { class: "flex justify-end" }, Z = {
|
|
|
23
23
|
}, ee = { class: "fm-typo-en-body-lg-400 flex-1 truncate" }, te = /* @__PURE__ */ L({
|
|
24
24
|
__name: "ImportMemberDialog",
|
|
25
25
|
setup(V) {
|
|
26
|
-
const { t: a } = N(), { emitData:
|
|
26
|
+
const { t: a } = N(), { emitData: v } = H(), c = F(null), _ = F(null), w = F({
|
|
27
27
|
resetCollectionExpiryBalance: !0
|
|
28
28
|
}), s = [
|
|
29
29
|
"Id",
|
|
@@ -70,28 +70,28 @@ const K = { class: "space-y-8 mb-10" }, X = { class: "flex justify-end" }, Z = {
|
|
|
70
70
|
async function y(i) {
|
|
71
71
|
switch (i) {
|
|
72
72
|
case "csv":
|
|
73
|
-
|
|
73
|
+
T();
|
|
74
74
|
break;
|
|
75
75
|
case "xlsx":
|
|
76
|
-
|
|
76
|
+
h();
|
|
77
77
|
break;
|
|
78
78
|
}
|
|
79
79
|
}
|
|
80
|
-
function
|
|
80
|
+
function T() {
|
|
81
81
|
const i = new Blob([s.join(",")], {
|
|
82
82
|
type: "text/csv;charset=utf-8;"
|
|
83
83
|
});
|
|
84
84
|
z.saveAs(i, "ImportMemberTemplate.csv");
|
|
85
85
|
}
|
|
86
|
-
function
|
|
86
|
+
function h() {
|
|
87
87
|
const i = g.aoa_to_sheet([s]), t = g.book_new();
|
|
88
88
|
g.book_append_sheet(t, i, "Sheet1"), j(t, "ImportMemberTemplate.xlsx");
|
|
89
89
|
}
|
|
90
90
|
return P(c, () => {
|
|
91
|
-
|
|
91
|
+
v({ file: c.value, config: w.value });
|
|
92
92
|
}), (i, t) => {
|
|
93
93
|
const f = m("FmSwitch"), k = m("FmButton"), o = m("FmMenuItem"), l = m("FmMenu"), r = m("FmDropField");
|
|
94
|
-
return x(),
|
|
94
|
+
return x(), C(R, null, [
|
|
95
95
|
b("div", K, [
|
|
96
96
|
t[3] || (t[3] = b("div", { class: "fm-typo-en-body-lg-600" }, "Advanced Setting", -1)),
|
|
97
97
|
u(f, {
|
|
@@ -112,7 +112,7 @@ const K = { class: "space-y-8 mb-10" }, X = { class: "flex justify-end" }, Z = {
|
|
|
112
112
|
})
|
|
113
113
|
]),
|
|
114
114
|
default: M(() => [
|
|
115
|
-
(x(),
|
|
115
|
+
(x(), C(R, null, $(p, (e) => u(o, {
|
|
116
116
|
key: e.value,
|
|
117
117
|
icon: e.icon,
|
|
118
118
|
label: e.label,
|
|
@@ -123,7 +123,7 @@ const K = { class: "space-y-8 mb-10" }, X = { class: "flex justify-end" }, Z = {
|
|
|
123
123
|
_: 1
|
|
124
124
|
})
|
|
125
125
|
]),
|
|
126
|
-
n(c) ? (x(),
|
|
126
|
+
n(c) ? (x(), C("div", Z, [
|
|
127
127
|
u(k, {
|
|
128
128
|
variant: n(S).Tertiary,
|
|
129
129
|
"prepend-icon": "attach_file"
|
|
@@ -131,7 +131,7 @@ const K = { class: "space-y-8 mb-10" }, X = { class: "flex justify-end" }, Z = {
|
|
|
131
131
|
b("p", ee, O(n(c).name), 1),
|
|
132
132
|
b("label", {
|
|
133
133
|
ref_key: "fileLabelRef",
|
|
134
|
-
ref:
|
|
134
|
+
ref: _,
|
|
135
135
|
htmlFor: "file"
|
|
136
136
|
}, [
|
|
137
137
|
u(k, {
|
|
@@ -139,7 +139,7 @@ const K = { class: "space-y-8 mb-10" }, X = { class: "flex justify-end" }, Z = {
|
|
|
139
139
|
label: n(a)("Replace File"),
|
|
140
140
|
onClick: t[2] || (t[2] = () => {
|
|
141
141
|
var e;
|
|
142
|
-
return (e = n(
|
|
142
|
+
return (e = n(_)) == null ? void 0 : e.click();
|
|
143
143
|
})
|
|
144
144
|
}, null, 8, ["variant", "label"]),
|
|
145
145
|
b("input", {
|
|
@@ -164,11 +164,11 @@ const K = { class: "space-y-8 mb-10" }, X = { class: "flex justify-end" }, Z = {
|
|
|
164
164
|
__name: "Member",
|
|
165
165
|
setup(V) {
|
|
166
166
|
var t, f, k;
|
|
167
|
-
const a = W(), { t:
|
|
168
|
-
|
|
167
|
+
const a = W(), { t: v } = N(), c = J(), _ = Q(), w = G();
|
|
168
|
+
v("connect.loyalty.member.import"), v("connect.navigation.queue");
|
|
169
169
|
const s = [
|
|
170
170
|
{
|
|
171
|
-
label:
|
|
171
|
+
label: v("connect.loyalty.member.tabs.member_list"),
|
|
172
172
|
value: E["$connect-LOYALTY_MEMBER_LIST"],
|
|
173
173
|
actions: (k = (f = (t = w.sessionUser) == null ? void 0 : t.value) == null ? void 0 : f.role) != null && k.isAdmin ? [] : []
|
|
174
174
|
}
|
|
@@ -180,7 +180,7 @@ const K = { class: "space-y-8 mb-10" }, X = { class: "flex justify-end" }, Z = {
|
|
|
180
180
|
description: void 0
|
|
181
181
|
} : (d.value = s[1], {
|
|
182
182
|
backButton: !0,
|
|
183
|
-
title:
|
|
183
|
+
title: v("connect.loyalty.member.title"),
|
|
184
184
|
actions: [],
|
|
185
185
|
description: `${(l = y.value) == null ? void 0 : l.name} (${(r = y.value) == null ? void 0 : r._id}) (${(e = y.value) == null ? void 0 : e.phoneNumber})`,
|
|
186
186
|
onBackButton: async () => {
|
|
@@ -190,10 +190,10 @@ const K = { class: "space-y-8 mb-10" }, X = { class: "flex justify-end" }, Z = {
|
|
|
190
190
|
}), d = F(
|
|
191
191
|
s.find((o) => o.value === a.currentRoute.value.name) ?? s[0]
|
|
192
192
|
), y = F();
|
|
193
|
-
async function
|
|
193
|
+
async function T(o) {
|
|
194
194
|
await a.push({ name: o });
|
|
195
195
|
}
|
|
196
|
-
async function
|
|
196
|
+
async function h() {
|
|
197
197
|
c.open({
|
|
198
198
|
title: "Upload File",
|
|
199
199
|
closeButton: !0,
|
|
@@ -202,7 +202,7 @@ const K = { class: "space-y-8 mb-10" }, X = { class: "flex justify-end" }, Z = {
|
|
|
202
202
|
primaryActions: { text: "Import", close: !1 }
|
|
203
203
|
}).onPrimary(async (o) => {
|
|
204
204
|
if (!o) {
|
|
205
|
-
|
|
205
|
+
_.open({
|
|
206
206
|
type: "error",
|
|
207
207
|
title: "Please upload a file"
|
|
208
208
|
});
|
|
@@ -210,13 +210,13 @@ const K = { class: "space-y-8 mb-10" }, X = { class: "flex justify-end" }, Z = {
|
|
|
210
210
|
}
|
|
211
211
|
const { file: l, config: r } = o;
|
|
212
212
|
if (!l)
|
|
213
|
-
|
|
213
|
+
_.open({
|
|
214
214
|
type: "error",
|
|
215
215
|
title: "Please upload a file"
|
|
216
216
|
});
|
|
217
217
|
else {
|
|
218
218
|
const e = new FormData();
|
|
219
|
-
e.append("file", l), e.append("config", JSON.stringify(r)), await I.import(e),
|
|
219
|
+
e.append("file", l), e.append("config", JSON.stringify(r)), await I.import(e), _.open({
|
|
220
220
|
type: "info",
|
|
221
221
|
title: "Import begins soon. Check Queue for updates.",
|
|
222
222
|
action: "View",
|
|
@@ -233,7 +233,7 @@ const K = { class: "space-y-8 mb-10" }, X = { class: "flex justify-end" }, Z = {
|
|
|
233
233
|
function i(o) {
|
|
234
234
|
switch (o) {
|
|
235
235
|
case "import":
|
|
236
|
-
|
|
236
|
+
h();
|
|
237
237
|
break;
|
|
238
238
|
case "queue":
|
|
239
239
|
a.push({
|
|
@@ -248,11 +248,12 @@ const K = { class: "space-y-8 mb-10" }, X = { class: "flex justify-end" }, Z = {
|
|
|
248
248
|
async (o) => {
|
|
249
249
|
d.value = s.find((r) => r.value === o) ?? s[0];
|
|
250
250
|
const l = a.currentRoute.value.params.id;
|
|
251
|
-
l && (y.value = await I.readById(l))
|
|
252
|
-
}
|
|
251
|
+
l && (y.value = await I.readById(l));
|
|
252
|
+
},
|
|
253
|
+
{ immediate: !0 }
|
|
253
254
|
), (o, l) => {
|
|
254
255
|
const r = m("FmPageHead"), e = m("FmTabs"), B = m("RouterView");
|
|
255
|
-
return x(),
|
|
256
|
+
return x(), C(R, null, [
|
|
256
257
|
u(r, {
|
|
257
258
|
actions: n(p).actions,
|
|
258
259
|
title: n(p).title,
|
|
@@ -266,7 +267,7 @@ const K = { class: "space-y-8 mb-10" }, X = { class: "flex justify-end" }, Z = {
|
|
|
266
267
|
key: 0,
|
|
267
268
|
"model-value": n(d).value,
|
|
268
269
|
items: s,
|
|
269
|
-
"onUpdate:modelValue":
|
|
270
|
+
"onUpdate:modelValue": T
|
|
270
271
|
}, null, 8, ["model-value"])) : q("", !0),
|
|
271
272
|
u(B)
|
|
272
273
|
])
|