@feedmepos/mf-connect 0.1.38-beta.8 → 0.1.38-beta.81
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-FMehGs58.js} +31 -32
- package/dist/{App-CLTtX1QT.js → App-7cwNu3e0.js} +617 -607
- package/dist/AuditLogs-CpmLBHAR.js +1991 -0
- package/dist/{Bin-C2xMLxoE.js → Bin-D21tScmC.js} +10 -10
- package/dist/Broadcast-DrX9zS2Z.js +266 -0
- package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-BCkD7Xfn.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-BvN7Q36X.js} +6 -6
- package/dist/{Card-BPrCNLQy.js → Card-Nk0KHSjb.js} +145 -140
- package/dist/Collections-BAnIaZRj.js +540 -0
- package/dist/Credit-BhU_Vd3l.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-DUrvbUE4.js +3120 -0
- package/dist/EffectSheet.vue_vue_type_style_index_0_lang-CqBGsZmi.js +351 -0
- package/dist/Experience-B7Fl1uzk.js +259 -0
- package/dist/{FileSaver.min-NlMItPOc.js → FileSaver.min-DaCnYliS.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-BdkSBpyV.js +330 -0
- package/dist/Grab-y_ISAZvb.js +300 -0
- package/dist/{ImageInput.vue_vue_type_script_setup_true_lang-rWUkV9gn.js → ImageInput.vue_vue_type_script_setup_true_lang-WEsv0wME.js} +49 -48
- package/dist/{Index-DMdNgISh.js → Index-DZp0xkxW.js} +54 -54
- package/dist/LocationPicker.vue_vue_type_script_setup_true_lang-DXMshwQu.js +48 -0
- package/dist/{LottieAnimation.vue_vue_type_script_setup_true_lang-CyGJxUol.js → LottieAnimation.vue_vue_type_script_setup_true_lang-24MFkuKg.js} +1 -1
- package/dist/{MainLayout-B1aJoR95.js → MainLayout-B8VvzvAT.js} +1 -1
- package/dist/Marketing-BXfk7ZLc.js +166 -0
- package/dist/MarketingMaterialEdit-CoDx_QvV.js +1065 -0
- package/dist/{Member-CnSXGQi_.js → Member-DOP3Z4-m.js} +38 -37
- package/dist/{MemberList-DcpEKV1D.js → MemberList-BcMezuLM.js} +486 -491
- package/dist/{MemberTransactions-DeuuEcO5.js → MemberTransactions-BEG9Cfgw.js} +1 -1
- package/dist/{MessageInput.vue_vue_type_script_setup_true_lang-DLAEPNsq.js → MessageInput.vue_vue_type_script_setup_true_lang-R6ImfcMO.js} +13443 -10607
- package/dist/Mission-C4eWldYu.js +334 -0
- package/dist/{Overview-elpi-jpI.js → Overview-0V1dmEPw.js} +24 -25
- package/dist/Point-s9t7_Iee.js +262 -0
- package/dist/Promotion-VZCoFHHx.js +396 -0
- package/dist/{Queue-GvBhNEFe.js → Queue-DdoHcsXv.js} +23 -24
- package/dist/{Record-CbSxgo8i.js → Record-B73AsvsB.js} +10 -10
- package/dist/Review-eEJG7-gc.js +621 -0
- package/dist/ReviewFacebookCallback-Cq1fGEP3.js +243 -0
- package/dist/ReviewGoogleCallback-C7BBKqnK.js +213 -0
- package/dist/{Reward-QCGlrq89.js → Reward-DKFT9MmI.js} +16 -16
- package/dist/{RewardGroup.vue_vue_type_script_setup_true_lang-DSRvoo9z.js → RewardGroup.vue_vue_type_script_setup_true_lang-vbTI-3-L.js} +13 -14
- package/dist/RuleGroup.vue_vue_type_script_setup_true_lang-Dc4daP4P.js +1912 -0
- package/dist/{Segment-5PndnEUa.js → Segment-RAMBNzZd.js} +273 -274
- package/dist/{SelectItems.vue_vue_type_script_setup_true_lang-DXR7bpzY.js → SelectItems.vue_vue_type_script_setup_true_lang-pQmd43cO.js} +23 -23
- package/dist/{SendCollectionSheet.vue_vue_type_script_setup_true_lang-DmITlNtt.js → SendCollectionSheet.vue_vue_type_script_setup_true_lang-PwedwyBw.js} +12 -12
- package/dist/SendVoucherSheet.vue_vue_type_script_setup_true_lang-rN37l0uX.js +226 -0
- package/dist/Setting--t7CPcWL.js +2039 -0
- package/dist/SettingAdvertisements-BzhckLOK.js +264 -0
- package/dist/Store-Dnax6l9z.js +1996 -0
- package/dist/StoreRewards-BIdtA-W4.js +535 -0
- package/dist/StoreTransactions.vue_vue_type_script_setup_true_lang-B__Nqwzg.js +1129 -0
- package/dist/TargetLocationInput.vue_vue_type_script_setup_true_lang-on00idd9.js +7007 -0
- package/dist/{Tier-BKKxG29r.js → Tier-Ch63LeNc.js} +561 -480
- package/dist/{Title-CReZgw8V.js → Title-wOMe2o3w.js} +151 -149
- package/dist/{Transaction-HWCmSVaJ.js → Transaction-CpkfV_sQ.js} +2 -2
- package/dist/{UserRuleGroup.vue_vue_type_script_setup_true_lang-D00AchXo.js → UserRuleGroup.vue_vue_type_script_setup_true_lang-MPlAwheJ.js} +7 -7
- package/dist/Voucher-DlOZmlyt.js +421 -0
- package/dist/VoucherEditor.vue_vue_type_script_setup_true_lang-DBAk4tDY.js +421 -0
- package/dist/{ZodTextField.vue_vue_type_script_setup_true_lang-DXF39yC1.js → ZodTextField.vue_vue_type_script_setup_true_lang-BhCfP2wn.js} +2 -2
- package/dist/app-nACimuOe.js +59309 -0
- package/dist/app.js +1 -1
- package/dist/{business-Bc-EMd2p.js → business-BpM7Eni_.js} +11 -8
- package/dist/campaign-BaSTB-19.js +219 -0
- package/dist/campaign-CN7MibEN.js +253 -0
- package/dist/campaign.enum-CW4ESvMk.js +26 -0
- package/dist/campaign.fn-DPMaaXjP.js +776 -0
- package/dist/{collectible.enum-C4dM8khp.js → collectible.enum-_Bg6BIol.js} +1 -1
- package/dist/{collection.fn-AjDNdFe1.js → collection.fn-D86VQVrc.js} +2 -2
- package/dist/dto-By8psmkB.js +222 -0
- package/dist/duplicateCampaign-AVfDsabR.js +51 -0
- package/dist/effect-CCB9eCEr.js +89 -0
- package/dist/{email-addresses-B0SzUCQM.js → email-addresses-CyMOiGPR.js} +2 -2
- package/dist/{export-Bgz6WcNZ.js → export-DPUTGKPb.js} +4 -4
- package/dist/{helper-B1vFwohM.js → helper-CYKFnu8y.js} +22 -7
- package/dist/index-43V5T9JA.js +28899 -0
- package/dist/{index-DVQnrex_.js → index-9FXa-6Mk.js} +3 -3
- package/dist/{index-26SopNpv.js → index-B9vArh0F.js} +1 -1
- package/dist/index-BF2vcn02.js +3431 -0
- package/dist/{index-BIRmS75g.js → index-BPBdEGEz.js} +1 -1
- package/dist/index-BTaTuuEo.js +48 -0
- package/dist/{index-Cm2sBagk.js → index-Beq-ShJI.js} +1 -1
- package/dist/{index-CSQY21Zb.js → index-BxGFddJP.js} +3 -3
- package/dist/index-C0veCCui.js +85 -0
- package/dist/index-C0yZzlB3.js +8912 -0
- package/dist/index-CJy_KEtq.js +30289 -0
- package/dist/{index-DwT9RLst.js → index-CZRA2IY5.js} +23 -12
- package/dist/{index-DT2viYsL.js → index-Cpff1wjo.js} +617 -191
- package/dist/index-CuvNtC_M.js +61 -0
- package/dist/{index.esm2017-BAIN70_n.js → index.esm2017-DHrbC5Ry.js} +185 -185
- package/dist/{loading-C6Ouh0mG.js → loading-BSMi2eIc.js} +1 -1
- package/dist/{lodash-B5I3zXaY.js → lodash-DZxxJH2N.js} +1 -1
- package/dist/{membership-DU0BwIj8.js → membership-CWkspNDR.js} +3 -3
- package/dist/{moment-BWErdI6_.js → moment-D7p2TMB-.js} +6 -1
- package/dist/{money-Bg7GuE5s.js → money-CSBC-3Ol.js} +1 -1
- package/dist/{number-Ddmqo5D_.js → number-CeqAGZy9.js} +1 -1
- package/dist/objectid-C_sYOjBD.js +145 -0
- package/dist/{campaign-BeF8kTyg.js → plugins-B37e5K6S.js} +784 -777
- package/dist/remy-DM_pSPd3.js +46 -0
- package/dist/{reward-CN4gvn4c.js → reward-BHf9o7F7.js} +1 -1
- package/dist/{rule-CpiqqR0c.js → rule-CAOC63go.js} +505 -487
- package/dist/rule-builder-BTxbYw5Z.js +102 -0
- package/dist/style.css +11 -2
- package/dist/template-DHmXFTjv.js +188 -0
- package/dist/timezone-C9EUfUmm.js +1156 -0
- package/dist/trigger--TbXeeFT.js +213 -0
- package/dist/usePagination-Lr6F7nYH.js +220 -0
- package/dist/user-DOc3B6F_.js +55 -0
- package/dist/{vue-i18n-DVmD9I_o.js → vue-i18n-DQbt3scE.js} +409 -409
- package/dist/{xlsx-qJHsnW7k.js → xlsx-QxmpwFgC.js} +1 -1
- package/dist/{zod-Bg2FbC-D.js → zod-OfQMlh-A.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-Beq-ShJI.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-DQbt3scE.js";
|
|
5
|
+
import "./index-Cpff1wjo.js";
|
|
6
|
+
import { c as A } from "./index-BF2vcn02.js";
|
|
7
|
+
import "./index-C0yZzlB3.js";
|
|
8
|
+
import "./index-CJy_KEtq.js";
|
|
9
|
+
import "./index-BxGFddJP.js";
|
|
10
|
+
import { u as g, w as j } from "./xlsx-QxmpwFgC.js";
|
|
11
|
+
import { F as z } from "./FileSaver.min-DaCnYliS.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-C0veCCui.js";
|
|
15
|
+
import { R as E } from "./app-nACimuOe.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
|
])
|