@feedmepos/mf-connect 0.1.128-dev → 0.1.129-prod
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-CPSC0ccq.js → App-CgtQ9UIg.js} +215 -223
- package/dist/{Bin-Cn7sCPql.js → Bin-DMgRFBtT.js} +8 -8
- package/dist/{Broadcast-bR7HAyV2.js → Broadcast-BBoLXcAt.js} +21 -22
- package/dist/{CampaignAnalytic-Dnpw_Jwo.js → CampaignAnalytic-7id6XGu5.js} +6 -6
- package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-HaWMLA4s.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-6QxiK0J7.js} +10 -9
- package/dist/{Card-BE3Y0KHF.js → Card-BfqTdIhC.js} +23 -23
- package/dist/{Collections-CLSp9Uah.js → Collections-Ca5iBZQN.js} +185 -197
- package/dist/{Credit-DgMyKROt.js → Credit-DM-hrq47.js} +20 -21
- package/dist/{DateRangeChip.vue_vue_type_script_setup_true_lang-D8eCQE4D.js → DateRangeChip.vue_vue_type_script_setup_true_lang-CuWzYh0T.js} +1 -1
- package/dist/EditCampaignSheet.vue_vue_type_script_setup_true_lang-fch7sWPv.js +3638 -0
- package/dist/{EffectSheet.vue_vue_type_style_index_0_lang-CXw7yS8N.js → EffectSheet.vue_vue_type_style_index_0_lang-COGdYitL.js} +33 -33
- package/dist/{Experience-CCeRbvIe.js → Experience-Esl5jJIv.js} +31 -32
- package/dist/{FileSaver.min-D8Rw2VVN.js → FileSaver.min-COdUgnCD.js} +1 -1
- package/dist/{Game-CYGg8vWQ.js → Game-CUayhiK9.js} +18 -19
- package/dist/{GiftCardSetup-rzea90xr.js → GiftCardSetup-BFnYVo6x.js} +31 -31
- package/dist/{GoalPickerPanel.vue_vue_type_script_setup_true_lang-BFUBfL-S.js → GoalPickerPanel.vue_vue_type_script_setup_true_lang-BwVSP2tE.js} +128 -140
- package/dist/{Goals-BnZfK7a3.js → Goals-F7WJ5oYC.js} +4 -4
- package/dist/{ImageInput.vue_vue_type_script_setup_true_lang-Cw2imjlQ.js → ImageInput.vue_vue_type_script_setup_true_lang-CqDz9E6H.js} +1 -1
- package/dist/{Index-DjZi_lVg.js → Index-DVu2x3VY.js} +10 -10
- package/dist/{LocationPicker.vue_vue_type_script_setup_true_lang-B1q4NtuM.js → LocationPicker.vue_vue_type_script_setup_true_lang-CrF5V3bJ.js} +1 -1
- package/dist/{LottieAnimation.vue_vue_type_script_setup_true_lang-CUjzbMcb.js → LottieAnimation.vue_vue_type_script_setup_true_lang-CBLORz65.js} +1 -1
- package/dist/{LoyaltyDashboard-C3TZSSQz.js → LoyaltyDashboard-BXtAIIwE.js} +14 -14
- package/dist/{MainLayout-uNGpBpJi.js → MainLayout-BoQpqLPT.js} +1 -1
- package/dist/{MainLayout.vue_vue_type_script_setup_true_lang-0PcswtGl.js → MainLayout.vue_vue_type_script_setup_true_lang-CoDtG7GL.js} +3 -3
- package/dist/{Marketing-SXmxcw3-.js → Marketing-CSFifAsA.js} +4 -4
- package/dist/{MarketingMaterialEdit-DK0tjHpF.js → MarketingMaterialEdit-2UgbFmpl.js} +211 -214
- package/dist/{Member-BFSwupq6.js → Member-BP_B3BvA.js} +7 -7
- package/dist/MemberDetailSheet.vue_vue_type_script_setup_true_lang-CjllSBjR.js +1308 -0
- package/dist/{MemberImportHistory-z12l_IAQ.js → MemberImportHistory-B3d0xGVj.js} +7 -7
- package/dist/{MemberList-DfN7ur0J.js → MemberList-CmRijOUZ.js} +105 -103
- package/dist/{MemberTransactions-Bntt4bRR.js → MemberTransactions-9gxO0FZF.js} +1 -1
- package/dist/{MessageInput.vue_vue_type_script_setup_true_lang-ComtYItw.js → MessageInput.vue_vue_type_script_setup_true_lang-TrfCfwiu.js} +12 -12
- package/dist/{MetricInfoTooltip.vue_vue_type_script_setup_true_lang-_Imnj16x.js → MetricInfoTooltip.vue_vue_type_script_setup_true_lang-DsKAiGQG.js} +1 -1
- package/dist/{Mission-CvpeYVjB.js → Mission-YZoqUj_8.js} +21 -22
- package/dist/{Overview-BtTkltlY.js → Overview-Cm4UvReJ.js} +144 -145
- package/dist/{Overview-BkaFC5La.js → Overview-D5W62m_5.js} +21 -21
- package/dist/{Point-CpNAFABM.js → Point-B6PYl0Av.js} +21 -22
- package/dist/{Promotion-B_vD_9UF.js → Promotion-D6IVdgP9.js} +131 -137
- package/dist/{Queue-D5jDhI0f.js → Queue-CrAJB-NQ.js} +46 -46
- package/dist/{Record-EsNXzy4D.js → Record-BxBSeGCs.js} +9 -9
- package/dist/{Review-ByMrkymf.js → Review-CpewMLNi.js} +2 -2
- package/dist/ReviewFacebookCallback-BUwvOweo.js +238 -0
- package/dist/{ReviewGoogleCallback-BzU-hUy5.js → ReviewGoogleCallback-DgR17qMj.js} +5 -5
- package/dist/{Reward-kxAuVGDE.js → Reward-FQA-iBCK.js} +16 -16
- package/dist/{RewardGroup.vue_vue_type_script_setup_true_lang-i9B1R3XP.js → RewardGroup.vue_vue_type_script_setup_true_lang-DPUuepSH.js} +14 -14
- package/dist/RuleGroup.vue_vue_type_script_setup_true_lang-B9mhQFnd.js +1884 -0
- package/dist/{Segment-C5SJs7al.js → Segment-CUlSXXCp.js} +307 -304
- package/dist/{SendCollectionSheet.vue_vue_type_script_setup_true_lang-RIerABcb.js → SendCollectionSheet.vue_vue_type_script_setup_true_lang-BBx4Vsad.js} +15 -15
- package/dist/{SendVoucherSheet.vue_vue_type_script_setup_true_lang-D8jS4gee.js → SendVoucherSheet.vue_vue_type_script_setup_true_lang-DNQwB2po.js} +4 -4
- package/dist/{Setting-zmlu3QcR.js → Setting-4m9maYGQ.js} +17 -17
- package/dist/{SettingAdvertisements-DewXGZoE.js → SettingAdvertisements-B2TVVGk_.js} +12 -12
- package/dist/Settings-DnYKPpMT.js +179 -0
- package/dist/{Store-CiTwDcgr.js → Store-CiNooWmM.js} +29 -29
- package/dist/{StoreRewards-DaOJxsVm.js → StoreRewards-Do7Y0tmg.js} +15 -15
- package/dist/{StoreTransactions.vue_vue_type_script_setup_true_lang-BTqxeKR4.js → StoreTransactions.vue_vue_type_script_setup_true_lang-BNnXXDOX.js} +25 -25
- package/dist/TargetLocationInput.vue_vue_type_script_setup_true_lang-Tx5gxGgN.js +142 -0
- package/dist/{Tier-lNI7GWMP.js → Tier-C51gzsGE.js} +688 -2583
- package/dist/{Title-CDxDztnl.js → Title-Dz1_3FI-.js} +95 -96
- package/dist/{Transaction-CcsUvIns.js → Transaction-Uow2MU3k.js} +2 -2
- package/dist/{Upselling-BDirPkWX.js → Upselling-ljPWgZm_.js} +3 -3
- package/dist/{UserRuleGroup.vue_vue_type_script_setup_true_lang-hqzfBpop.js → UserRuleGroup.vue_vue_type_script_setup_true_lang-Dk082NOB.js} +26 -26
- package/dist/{Voucher-CJDo5U_P.js → Voucher-BahN-_B8.js} +19 -19
- package/dist/{VoucherEditor.vue_vue_type_script_setup_true_lang-WjsLHh_E.js → VoucherEditor.vue_vue_type_script_setup_true_lang-C5YJIrEQ.js} +12 -12
- package/dist/{WhatsappAccount-CQBti7RJ.js → WhatsappAccount-BsJfi4aQ.js} +6 -6
- package/dist/{WhatsappAccountStatusLabel.vue_vue_type_script_setup_true_lang-DVNZ774z.js → WhatsappAccountStatusLabel.vue_vue_type_script_setup_true_lang-D6Q2lt81.js} +1 -1
- package/dist/{WhatsappBot-91lIlikm.js → WhatsappBot-DsETxGDb.js} +7 -7
- package/dist/{WhatsappBotLogs-PQTwT8e5.js → WhatsappBotLogs-rxhWcCic.js} +5 -5
- package/dist/{WhatsappBotSettings-CUES9UL-.js → WhatsappBotSettings-BVVqPUuB.js} +5 -5
- package/dist/{WhatsappLayout-pZGYJj0J.js → WhatsappLayout-ww0HSVET.js} +3 -3
- package/dist/{WhatsappNotificationGroupDialog.vue_vue_type_script_setup_true_lang-DAoonwsO.js → WhatsappNotificationGroupDialog.vue_vue_type_script_setup_true_lang-PRbvIqZI.js} +3 -3
- package/dist/{ZodTextField.vue_vue_type_script_setup_true_lang-HEIeZYCP.js → ZodTextField.vue_vue_type_script_setup_true_lang-B3kaDL4W.js} +2 -2
- package/dist/{app--pRyBODF.js → app-DRy3Qq-e.js} +3380 -4144
- package/dist/app.js +3 -4
- package/dist/{base.export-CSdCmt-6.js → base.export-CjcYq9u_.js} +2 -2
- package/dist/business-DyQFxLGA.js +82 -0
- package/dist/{campaign-CwQjWU63.js → campaign-CWGgZxbn.js} +94 -121
- package/dist/{campaign-t9ubUkjB.js → campaign-Diyxk6-K.js} +25 -31
- package/dist/{campaign.enum-Damu7hgo.js → campaign.enum-CkIW-mae.js} +2 -3
- package/dist/campaign.fn-DmM_bev0.js +776 -0
- package/dist/{collectible.enum-C8LbgIQ7.js → collectible.enum-BXcUSpN2.js} +1 -1
- package/dist/{collection.fn-BV7pDqa5.js → collection.fn-BZuMGmeM.js} +2 -2
- package/dist/{currency-pS0xeJA6.js → currency-B0CeepgW.js} +1 -1
- package/dist/{effect-B532leFF.js → effect-C3tRo5Vc.js} +1 -1
- package/dist/{email-addresses-CKkT_5O5.js → email-addresses-CPm5eBoR.js} +2 -2
- package/dist/{feature-flag-25oDCLLB.js → feature-flag-COBMyDEn.js} +84 -84
- package/dist/google-C3S8u0mT.js +4 -0
- package/dist/{helper-DxOj04aq.js → helper-scL87EvT.js} +1 -1
- package/dist/{index-C7wVaeC1.js → index-40lptiZw.js} +1 -1
- package/dist/{index-BCgTcZ7c.js → index-4D44dKUi.js} +252 -609
- package/dist/{index-ip2EqUEW.js → index-BUGWEUx9.js} +1 -1
- package/dist/{index-DEENB4la.js → index-BWu5WNw5.js} +198 -198
- package/dist/{index-DBzCfWxW.js → index-BaqeaRIe.js} +2 -2
- package/dist/{index-DVlo0TO9.js → index-BefX1Cnk.js} +23 -23
- package/dist/{index-BHnMLtU2.js → index-BexTIIOc.js} +235 -381
- package/dist/{index-ClD2-18P.js → index-C55j-xHV.js} +6 -19
- package/dist/{index-B3sR1LMa.js → index-CHzG8fUk.js} +7 -7
- package/dist/{index-Diw9710S.js → index-CLwEr_8O.js} +4 -4
- package/dist/{index-DiYuhtNS.js → index-CW-lY5-3.js} +4 -4
- package/dist/{index-C6pr4oIv.js → index-CWAhvR-e.js} +1243 -1315
- package/dist/{index-uCkkfjE3.js → index-CpO-jDv5.js} +4 -4
- package/dist/{index-BFJ2FmB4.js → index-CsnGMcHq.js} +2 -2
- package/dist/{index-BViMt33t.js → index-Dc4-mMaE.js} +1 -1
- package/dist/{index-DqQ1q8sX.js → index-DcDRRNH6.js} +19 -26
- package/dist/{index-CBYY3VEG.js → index-DsP7OUWn.js} +2614 -2700
- package/dist/{index-BX6lcJDB.js → index-OMMh3tr2.js} +1 -1
- package/dist/{index-C_qmnOKQ.js → index-VR97zHF5.js} +9 -9
- package/dist/{index-DSAEs8u0.js → index-koWxgq3V.js} +1 -1
- package/dist/{index-BLRv_4gJ.js → index-tn-XNvX5.js} +1 -1
- package/dist/{index-DBT1f1M3.js → index-xopF1dSo.js} +2 -2
- package/dist/{index.esm2017-DRrIFPLo.js → index.esm2017-T25AMY_y.js} +93 -93
- package/dist/{loading--SZI7Tpo.js → loading-BYmbcfaQ.js} +1 -1
- package/dist/{lodash-BZqvXM_P.js → lodash-7z2rsw4O.js} +1 -1
- package/dist/{member-import-Bmt1OdRW.js → member-import-BI7Pvj61.js} +2 -2
- package/dist/{membership-BTFpH7Mg.js → membership-BrZIRGS0.js} +3 -3
- package/dist/{money-BVtlYyxo.js → money-DdNo8GRv.js} +1 -1
- package/dist/{number-DrOdGSrF.js → number-Gfw2iUoP.js} +1 -1
- package/dist/objectid-D-yjbqcO.js +145 -0
- package/dist/{onboarding-BjcSBC8v.js → onboarding-CUqT7rpt.js} +25 -25
- package/dist/{onboardingSetup-Dcv8i8qd.js → onboardingSetup-BC5HuwKA.js} +2 -2
- package/dist/{plugins-Iw52rJ1s.js → plugins-DlLEAHTq.js} +3 -3
- package/dist/{reward-DF9tE7iA.js → reward-D038cMaw.js} +1 -1
- package/dist/{rule-rCPhlgAq.js → rule-BVpbZ7F8.js} +492 -572
- package/dist/rule-builder-DA9K7mBN.js +102 -0
- package/dist/style.css +1 -1
- package/dist/template-CgJvGx2j.js +275 -0
- package/dist/{transaction.fn-Cp3ylqFD.js → transaction.fn-PmR-QOML.js} +2 -2
- package/dist/{trigger-O6JvCms4.js → trigger-DjOMEcv_.js} +9 -9
- package/dist/{useMarketingMaterialActions-Cnadk3AO.js → useMarketingMaterialActions-D2fkr1yK.js} +4 -4
- package/dist/{usePagination-C5lSxdqt.js → usePagination-oq_rR3Lp.js} +1 -1
- package/dist/{user-B7iv0TRE.js → user-CkwZIW3i.js} +1 -1
- package/dist/vue-i18n-1lTcxtBS.js +2365 -0
- package/dist/{xlsx-DTJ6bUKL.js → xlsx-BtcfpQDU.js} +381 -381
- package/dist/{zod-cIIx_Ng9.js → zod-CUrnHp4O.js} +1 -1
- package/package.json +2 -6
- package/dist/AuditLogs-CgrYStwa.js +0 -2016
- package/dist/EditCampaignSheet.vue_vue_type_script_setup_true_lang-BB2gszsG.js +0 -4584
- package/dist/Grab-BRbn6ffm.js +0 -301
- package/dist/MemberDetailSheet.vue_vue_type_script_setup_true_lang-Dvcasf5O.js +0 -1322
- package/dist/ReviewFacebookCallback-BDl6NBkw.js +0 -225
- package/dist/RuleGroup.vue_vue_type_script_setup_true_lang-D3MZsh4A.js +0 -1923
- package/dist/Settings-5HU_uY6B.js +0 -286
- package/dist/TargetLocationInput.vue_vue_type_script_setup_true_lang-DlFCI1BT.js +0 -7007
- package/dist/business-BtEfH8Mt.js +0 -83
- package/dist/campaign.fn-D3_OzyyQ.js +0 -776
- package/dist/duplicateCampaign-19CDT2kM.js +0 -51
- package/dist/google-BQK68wbe.js +0 -5
- package/dist/objectid-DdJFC6TI.js +0 -145
- package/dist/template-v1F1rvUU.js +0 -227
- package/dist/vue-i18n-CYFvlTTS.js +0 -2365
package/dist/app.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
var w = Object.defineProperty;
|
|
2
2
|
var y = (e, s, o) => s in e ? w(e, s, { enumerable: !0, configurable: !0, writable: !0, value: o }) : e[s] = o;
|
|
3
3
|
var n = (e, s, o) => y(e, typeof s != "symbol" ? s + "" : s, o);
|
|
4
|
-
import { u as x } from "./loading
|
|
5
|
-
import { w as h, u as a } from "./xlsx-
|
|
4
|
+
import { u as x } from "./loading-BYmbcfaQ.js";
|
|
5
|
+
import { w as h, u as a } from "./xlsx-BtcfpQDU.js";
|
|
6
6
|
const t = {
|
|
7
7
|
sortBy: "_id",
|
|
8
8
|
descending: !1,
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
import { ref as i, computed as u } from "vue";
|
|
2
|
+
import { defineStore as w } from "pinia";
|
|
3
|
+
import { useCoreStore as y } from "@feedmepos/mf-common";
|
|
4
|
+
import { d as I, g as r, A as b, S, b as D } from "./index-CHzG8fUk.js";
|
|
5
|
+
const $ = {
|
|
6
|
+
async readSettings(e) {
|
|
7
|
+
try {
|
|
8
|
+
return r(await I(`marketing-v2/${e}/setting`).get(""));
|
|
9
|
+
} catch (t) {
|
|
10
|
+
if (console.error(JSON.stringify(t)), t instanceof b)
|
|
11
|
+
return {
|
|
12
|
+
_id: e,
|
|
13
|
+
business: e,
|
|
14
|
+
apiVersion: "v1"
|
|
15
|
+
};
|
|
16
|
+
throw t;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
}, o = () => {
|
|
20
|
+
const e = S.getBusinessId();
|
|
21
|
+
if (!e) throw new Error("Invalid business ID");
|
|
22
|
+
return D(`businesses/${e}/location`, {
|
|
23
|
+
noIdRequired: !0
|
|
24
|
+
});
|
|
25
|
+
}, l = {
|
|
26
|
+
async read() {
|
|
27
|
+
return r(await o().get(""));
|
|
28
|
+
},
|
|
29
|
+
async readDevices() {
|
|
30
|
+
return r(await o().get("devices"));
|
|
31
|
+
},
|
|
32
|
+
async unregisterDevice(e) {
|
|
33
|
+
await r(await o().delete(`devices/${e}`));
|
|
34
|
+
},
|
|
35
|
+
async getOtp(e) {
|
|
36
|
+
return r(await o().post(`${e}/otp`));
|
|
37
|
+
}
|
|
38
|
+
}, h = w("mf-connect-business", () => {
|
|
39
|
+
const e = i("v2"), t = i(!1), a = i([]), c = i([]);
|
|
40
|
+
async function d() {
|
|
41
|
+
const n = y().currentBusiness.value, s = await $.readSettings(n == null ? void 0 : n.id);
|
|
42
|
+
return t.value = s && "business" in s && s.premium == !0 || !1, e.value = (s == null ? void 0 : s.apiVersion) || "v1", t.value;
|
|
43
|
+
}
|
|
44
|
+
async function v() {
|
|
45
|
+
return a.value = await l.read(), a.value;
|
|
46
|
+
}
|
|
47
|
+
async function p() {
|
|
48
|
+
return c.value = await l.readDevices(), c.value;
|
|
49
|
+
}
|
|
50
|
+
function m(n) {
|
|
51
|
+
return a.value.find((s) => s._id === n);
|
|
52
|
+
}
|
|
53
|
+
const f = u(() => [
|
|
54
|
+
{ label: "All", value: null },
|
|
55
|
+
...a.value.map((n) => ({
|
|
56
|
+
label: n.name,
|
|
57
|
+
value: n._id
|
|
58
|
+
}))
|
|
59
|
+
]), g = u(() => a.value.map((n) => ({
|
|
60
|
+
label: `${n.code ? `${n.code} - ` : ""} ${n.name}`,
|
|
61
|
+
value: n._id
|
|
62
|
+
})));
|
|
63
|
+
return {
|
|
64
|
+
// state
|
|
65
|
+
version: e,
|
|
66
|
+
isPremium: t,
|
|
67
|
+
locations: a,
|
|
68
|
+
locationDevices: c,
|
|
69
|
+
// actions
|
|
70
|
+
readPremium: d,
|
|
71
|
+
readLocations: v,
|
|
72
|
+
readLocationDevices: p,
|
|
73
|
+
locationById: m,
|
|
74
|
+
// getters
|
|
75
|
+
locationItems: f,
|
|
76
|
+
locationOptions: g
|
|
77
|
+
};
|
|
78
|
+
});
|
|
79
|
+
export {
|
|
80
|
+
l,
|
|
81
|
+
h as u
|
|
82
|
+
};
|
|
@@ -1,27 +1,27 @@
|
|
|
1
1
|
import { h as u } from "./moment-D7p2TMB-.js";
|
|
2
|
-
import "./index-
|
|
3
|
-
import { e as f } from "./effect-
|
|
4
|
-
import { components as
|
|
5
|
-
import {
|
|
6
|
-
import { c as
|
|
7
|
-
import { u as
|
|
8
|
-
import { C as m } from "./campaign.fn-
|
|
9
|
-
import { g as
|
|
10
|
-
import { c as
|
|
11
|
-
import { i as
|
|
12
|
-
import { h as
|
|
13
|
-
import { F as s } from "./campaign.enum-
|
|
14
|
-
const
|
|
2
|
+
import "./index-BexTIIOc.js";
|
|
3
|
+
import { e as f } from "./effect-C3tRo5Vc.js";
|
|
4
|
+
import { components as g } from "@feedmepos/ui-library";
|
|
5
|
+
import { i as b } from "./rule-builder-DA9K7mBN.js";
|
|
6
|
+
import { c as O } from "./rule-BVpbZ7F8.js";
|
|
7
|
+
import { u as E } from "./business-DyQFxLGA.js";
|
|
8
|
+
import { C as m } from "./campaign.fn-DmM_bev0.js";
|
|
9
|
+
import { g as h, t as d } from "./index-BWu5WNw5.js";
|
|
10
|
+
import { c as y } from "./string-Gcy5IM_H.js";
|
|
11
|
+
import { i as c } from "./plugins-DlLEAHTq.js";
|
|
12
|
+
import { h as p } from "vue";
|
|
13
|
+
import { F as s } from "./campaign.enum-CkIW-mae.js";
|
|
14
|
+
const N = [
|
|
15
15
|
"APP_INBOX",
|
|
16
16
|
"PUSH",
|
|
17
17
|
"SMS",
|
|
18
18
|
"EMAIL",
|
|
19
19
|
"WHATSAPP"
|
|
20
|
-
],
|
|
21
|
-
function
|
|
22
|
-
return
|
|
20
|
+
], I = [...N];
|
|
21
|
+
function G(t) {
|
|
22
|
+
return I.includes(t);
|
|
23
23
|
}
|
|
24
|
-
function
|
|
24
|
+
function C(t, e) {
|
|
25
25
|
return t === "APP_INBOX" ? {
|
|
26
26
|
title: "",
|
|
27
27
|
previewText: "",
|
|
@@ -40,17 +40,17 @@ function b(t, e) {
|
|
|
40
40
|
variables: e
|
|
41
41
|
};
|
|
42
42
|
}
|
|
43
|
-
function
|
|
43
|
+
function j(t, e, n = []) {
|
|
44
44
|
return t.channels.includes(e) ? t : {
|
|
45
45
|
...t,
|
|
46
46
|
channels: [...t.channels, e],
|
|
47
47
|
content: {
|
|
48
48
|
...t.content,
|
|
49
|
-
[e]: t.content[e] ??
|
|
49
|
+
[e]: t.content[e] ?? C(e, n)
|
|
50
50
|
}
|
|
51
51
|
};
|
|
52
52
|
}
|
|
53
|
-
function
|
|
53
|
+
function V(t, e) {
|
|
54
54
|
const n = { ...t.content };
|
|
55
55
|
return delete n[e], {
|
|
56
56
|
...t,
|
|
@@ -58,111 +58,99 @@ function W(t, e) {
|
|
|
58
58
|
content: n
|
|
59
59
|
};
|
|
60
60
|
}
|
|
61
|
-
function
|
|
61
|
+
function X(t, e, n) {
|
|
62
62
|
return {
|
|
63
63
|
...t,
|
|
64
64
|
content: { ...t.content, [e]: n }
|
|
65
65
|
};
|
|
66
66
|
}
|
|
67
|
-
function
|
|
67
|
+
function z(t, e, n) {
|
|
68
68
|
const o = t.channels.indexOf(e), r = o + n;
|
|
69
69
|
if (o < 0 || r < 0 || r >= t.channels.length) return t;
|
|
70
70
|
const a = [...t.channels];
|
|
71
71
|
return [a[o], a[r]] = [a[r], a[o]], { ...t, channels: a };
|
|
72
72
|
}
|
|
73
|
-
function
|
|
73
|
+
function W(t, e, n = []) {
|
|
74
74
|
const [o, ...r] = t.channels;
|
|
75
75
|
if (o === e) return t;
|
|
76
76
|
const a = {
|
|
77
77
|
...t.content,
|
|
78
|
-
[e]: t.content[e] ??
|
|
78
|
+
[e]: t.content[e] ?? C(e, n)
|
|
79
79
|
};
|
|
80
80
|
return o && delete a[o], {
|
|
81
81
|
...t,
|
|
82
|
-
channels: [e, ...r.filter((
|
|
82
|
+
channels: [e, ...r.filter((l) => l !== e)],
|
|
83
83
|
content: a
|
|
84
84
|
};
|
|
85
85
|
}
|
|
86
|
-
function
|
|
86
|
+
function J(t, e) {
|
|
87
87
|
if (!e) return !1;
|
|
88
88
|
const n = t.content[e];
|
|
89
89
|
return n ? ["title", "previewText", "content", "body"].some(
|
|
90
90
|
(o) => typeof n[o] == "string" && !!n[o].trim()
|
|
91
91
|
) : !1;
|
|
92
92
|
}
|
|
93
|
-
function
|
|
93
|
+
function K(t, e) {
|
|
94
94
|
return { ...t, mode: e };
|
|
95
95
|
}
|
|
96
|
-
function
|
|
96
|
+
function q(t, e) {
|
|
97
97
|
const n = t.content[e];
|
|
98
98
|
if (!n) return !1;
|
|
99
99
|
if (e === "APP_INBOX") {
|
|
100
100
|
const o = n, r = (o.buttons ?? []).every(
|
|
101
|
-
(a) => a.label.trim().length > 0 &&
|
|
101
|
+
(a) => a.label.trim().length > 0 && h.safeParse(a.url ?? "").success
|
|
102
102
|
);
|
|
103
103
|
return o.title.trim().length > 0 && o.previewText.trim().length > 0 && r;
|
|
104
104
|
}
|
|
105
105
|
if (e === "PUSH") {
|
|
106
|
-
const o = n, r = o.title.trim().length > 0 && o.body.trim().length > 0, a = o.destination !== "EXTERNAL" ||
|
|
106
|
+
const o = n, r = o.title.trim().length > 0 && o.body.trim().length > 0, a = o.destination !== "EXTERNAL" || h.safeParse(o.url ?? "").success;
|
|
107
107
|
return r && a;
|
|
108
108
|
}
|
|
109
109
|
return n.content.trim().length > 0;
|
|
110
110
|
}
|
|
111
|
-
function
|
|
111
|
+
function S(t, e) {
|
|
112
112
|
return t.channels.map(e).join(t.mode === "fallback" ? " → " : " + ");
|
|
113
113
|
}
|
|
114
|
-
function
|
|
114
|
+
function Q(t) {
|
|
115
115
|
var e, n;
|
|
116
116
|
if (!(!t || t.delivery)) {
|
|
117
117
|
if ((n = (e = t.message) == null ? void 0 : e.content) != null && n.trim()) {
|
|
118
|
-
t.delivery =
|
|
118
|
+
t.delivery = d(t);
|
|
119
119
|
return;
|
|
120
120
|
}
|
|
121
121
|
delete t.message, t.delivery = { mode: "fallback", channels: [], content: {} };
|
|
122
122
|
}
|
|
123
123
|
}
|
|
124
|
-
const
|
|
125
|
-
function
|
|
124
|
+
const R = 5;
|
|
125
|
+
function A(t, e) {
|
|
126
126
|
if (!t) return { kind: "all" };
|
|
127
127
|
const n = new Map(e.map((a) => [String(a._id), a])), o = [];
|
|
128
128
|
for (const a of t) {
|
|
129
|
-
const
|
|
130
|
-
|
|
129
|
+
const l = n.get(String(a));
|
|
130
|
+
l && o.push({ id: String(a), code: l.code, name: l.name });
|
|
131
131
|
}
|
|
132
132
|
if (t.length === 0) return { kind: "none" };
|
|
133
133
|
const r = t.length - o.length;
|
|
134
|
-
return r === 0 && o.length <=
|
|
135
|
-
}
|
|
136
|
-
const c = g.global.t;
|
|
137
|
-
function P() {
|
|
138
|
-
const t = g.global.locale;
|
|
139
|
-
return typeof t == "string" ? t : t.value;
|
|
140
|
-
}
|
|
141
|
-
function d(t) {
|
|
142
|
-
return new Intl.DateTimeFormat(P(), {
|
|
143
|
-
day: "2-digit",
|
|
144
|
-
month: "short",
|
|
145
|
-
year: "numeric"
|
|
146
|
-
}).format(new Date(t));
|
|
134
|
+
return r === 0 && o.length <= R ? { kind: "names", names: o.map((a) => a.name) } : { kind: "count", rows: o, total: e.length, unavailable: r };
|
|
147
135
|
}
|
|
148
136
|
function i(t) {
|
|
149
|
-
return
|
|
137
|
+
return p(
|
|
150
138
|
"div",
|
|
151
139
|
{
|
|
152
140
|
class: `${t.chipClass} gap-4 h-[22px] inline-flex items-center justify-center min-w-min px-8 rounded-md`
|
|
153
141
|
},
|
|
154
142
|
[
|
|
155
|
-
|
|
156
|
-
|
|
143
|
+
p(g.FmIcon, { size: "sm", name: t.icon, outline: !0 }),
|
|
144
|
+
p("span", { class: "fm-typo-en-body-md-600" }, t.name)
|
|
157
145
|
]
|
|
158
146
|
);
|
|
159
147
|
}
|
|
160
|
-
const
|
|
148
|
+
const Z = {
|
|
161
149
|
[s.enum.CREDIT]: {
|
|
162
150
|
chipClass: "!text-fm-color-secondary-plum !bg-[#f2ebfe]",
|
|
163
151
|
icon: "local_activity",
|
|
164
152
|
get name() {
|
|
165
|
-
return c("connect.campaign.common.typeName.CREDIT");
|
|
153
|
+
return c.global.t("connect.campaign.common.typeName.CREDIT");
|
|
166
154
|
},
|
|
167
155
|
chip() {
|
|
168
156
|
return i(this);
|
|
@@ -172,7 +160,7 @@ const nt = {
|
|
|
172
160
|
chipClass: "!text-fm-color-secondary-citrus !bg-fm-color-system-warning-100",
|
|
173
161
|
icon: "loyalty",
|
|
174
162
|
get name() {
|
|
175
|
-
return c("connect.campaign.common.typeName.PROMOTION");
|
|
163
|
+
return c.global.t("connect.campaign.common.typeName.PROMOTION");
|
|
176
164
|
},
|
|
177
165
|
chip() {
|
|
178
166
|
return i(this);
|
|
@@ -182,7 +170,7 @@ const nt = {
|
|
|
182
170
|
chipClass: "!text-fm-color-secondary-halite !bg-[#fff0f6]",
|
|
183
171
|
icon: "sell",
|
|
184
172
|
get name() {
|
|
185
|
-
return c("connect.campaign.common.typeName.VOUCHER");
|
|
173
|
+
return c.global.t("connect.campaign.common.typeName.VOUCHER");
|
|
186
174
|
},
|
|
187
175
|
chip() {
|
|
188
176
|
return i(this);
|
|
@@ -192,7 +180,7 @@ const nt = {
|
|
|
192
180
|
chipClass: "!text-fm-color-secondary-cocoa !bg-[#fff9e6]",
|
|
193
181
|
icon: "award_star",
|
|
194
182
|
get name() {
|
|
195
|
-
return c("connect.campaign.common.typeName.POINT");
|
|
183
|
+
return c.global.t("connect.campaign.common.typeName.POINT");
|
|
196
184
|
},
|
|
197
185
|
chip() {
|
|
198
186
|
return i(this);
|
|
@@ -202,7 +190,7 @@ const nt = {
|
|
|
202
190
|
chipClass: "!text-fm-color-typo-info !bg-fm-color-system-info-100",
|
|
203
191
|
icon: "campaign",
|
|
204
192
|
get name() {
|
|
205
|
-
return c("connect.campaign.common.typeName.BROADCAST");
|
|
193
|
+
return c.global.t("connect.campaign.common.typeName.BROADCAST");
|
|
206
194
|
},
|
|
207
195
|
chip() {
|
|
208
196
|
return i(this);
|
|
@@ -212,7 +200,7 @@ const nt = {
|
|
|
212
200
|
chipClass: "!text-fm-color-secondary-mint !bg-fm-color-system-success-100",
|
|
213
201
|
icon: "database",
|
|
214
202
|
get name() {
|
|
215
|
-
return c("connect.campaign.common.typeName.GAME");
|
|
203
|
+
return c.global.t("connect.campaign.common.typeName.GAME");
|
|
216
204
|
},
|
|
217
205
|
chip() {
|
|
218
206
|
return i(this);
|
|
@@ -222,7 +210,7 @@ const nt = {
|
|
|
222
210
|
chipClass: "!text-fm-color-secondary-tuna !bg-[#e3f4f9]",
|
|
223
211
|
icon: "editor_choice",
|
|
224
212
|
get name() {
|
|
225
|
-
return c("connect.campaign.common.typeName.REWARD_POOL");
|
|
213
|
+
return c.global.t("connect.campaign.common.typeName.REWARD_POOL");
|
|
226
214
|
},
|
|
227
215
|
chip() {
|
|
228
216
|
return i(this);
|
|
@@ -232,7 +220,7 @@ const nt = {
|
|
|
232
220
|
chipClass: "!text-fm-color-system-success-400 !bg-fm-color-system-success-100",
|
|
233
221
|
icon: "monetization_on",
|
|
234
222
|
get name() {
|
|
235
|
-
return c("connect.campaign.common.typeName.COIN");
|
|
223
|
+
return c.global.t("connect.campaign.common.typeName.COIN");
|
|
236
224
|
},
|
|
237
225
|
chip() {
|
|
238
226
|
return i(this);
|
|
@@ -242,75 +230,61 @@ const nt = {
|
|
|
242
230
|
chipClass: "",
|
|
243
231
|
icon: "",
|
|
244
232
|
get name() {
|
|
245
|
-
return c("connect.campaign.common.typeName.MEMBERSHIP");
|
|
233
|
+
return c.global.t("connect.campaign.common.typeName.MEMBERSHIP");
|
|
246
234
|
},
|
|
247
235
|
chip() {
|
|
248
236
|
return i(this);
|
|
249
237
|
}
|
|
250
238
|
},
|
|
239
|
+
// TODO: confirm color
|
|
251
240
|
[s.enum.MISSION]: {
|
|
252
241
|
chipClass: "!text-fm-color-secondary-tuna !bg-[#e3f4f9]",
|
|
253
242
|
icon: "editor_choice",
|
|
254
243
|
get name() {
|
|
255
|
-
return c("connect.campaign.common.typeName.MISSION");
|
|
244
|
+
return c.global.t("connect.campaign.common.typeName.MISSION");
|
|
256
245
|
},
|
|
257
246
|
chip() {
|
|
258
247
|
return i(this);
|
|
259
248
|
}
|
|
260
|
-
},
|
|
261
|
-
[s.enum.GRAB]: {
|
|
262
|
-
chipClass: "!text-fm-color-secondary-tuna !bg-[#e3f4f9]",
|
|
263
|
-
icon: "editor_choice",
|
|
264
|
-
name: "Grab",
|
|
265
|
-
chip() {
|
|
266
|
-
return i(this);
|
|
267
|
-
}
|
|
268
249
|
}
|
|
269
250
|
};
|
|
270
|
-
function
|
|
251
|
+
function tt(t) {
|
|
271
252
|
const e = M(t), n = {
|
|
272
253
|
active: "text-fm-color-typo-success bg-fm-color-system-success-100",
|
|
273
254
|
upcoming: "text-fm-color-typo-info bg-fm-color-system-info-100",
|
|
274
255
|
expired: "text-fm-color-typo-error bg-fm-color-system-error-100"
|
|
275
256
|
};
|
|
276
|
-
return t.type == "VOUCHER" ?
|
|
257
|
+
return t.type == "VOUCHER" ? p(g.FmChip, {
|
|
277
258
|
class: n[e],
|
|
278
|
-
label:
|
|
259
|
+
label: y.title(
|
|
260
|
+
c.global.t(`connect.campaign.common.status.${e}`)
|
|
261
|
+
),
|
|
279
262
|
compact: !0
|
|
280
|
-
}) :
|
|
263
|
+
}) : p(g.FmChip, {
|
|
281
264
|
class: n[e],
|
|
282
|
-
label:
|
|
265
|
+
label: y.title(
|
|
266
|
+
c.global.t(`connect.campaign.common.status.${e}`)
|
|
267
|
+
),
|
|
283
268
|
compact: !0
|
|
284
269
|
});
|
|
285
270
|
}
|
|
286
|
-
function
|
|
287
|
-
const e = t.timeframeOptions;
|
|
288
|
-
if (!e || !e.start && !e.end)
|
|
289
|
-
return c("connect.campaign.common.always_active");
|
|
290
|
-
if (!e.start && e.end)
|
|
291
|
-
return c("connect.campaign.common.valid_until", {
|
|
292
|
-
date: d(e.end)
|
|
293
|
-
});
|
|
294
|
-
const n = d(e.start), o = e.end ? d(e.end) : c("connect.campaign.common.unlimited");
|
|
295
|
-
return `${n} -> ${o}`;
|
|
296
|
-
}
|
|
297
|
-
function T(t) {
|
|
271
|
+
function P(t) {
|
|
298
272
|
if (!t || !t.start && !t.end)
|
|
299
273
|
return "connect.campaign.common.always";
|
|
300
274
|
const e = t.start ? u(t.start).format("DD MMM YYYY") : "From campaign creation", n = t.end ? u(t.end).format("DD MMM YYYY") : "Never ends";
|
|
301
275
|
return `${e} - ${n}`;
|
|
302
276
|
}
|
|
303
|
-
function
|
|
277
|
+
function et(t) {
|
|
304
278
|
const { campaign: e } = t;
|
|
305
279
|
return {
|
|
306
280
|
"connect.campaign.common.campaign_name": e.name,
|
|
307
|
-
"connect.campaign.common.campaign_period":
|
|
281
|
+
"connect.campaign.common.campaign_period": P(
|
|
308
282
|
e.timeframeOptions
|
|
309
283
|
),
|
|
310
284
|
get "connect.campaign.common.next_schedule_at"() {
|
|
311
|
-
if (
|
|
285
|
+
if (e.event.type != "SCHEDULE" || !e.event.rule || !b(e.event.rule))
|
|
312
286
|
return;
|
|
313
|
-
const n =
|
|
287
|
+
const n = O(
|
|
314
288
|
e.event.rule.rules.g_schedule
|
|
315
289
|
);
|
|
316
290
|
return n ? u(n).format("ddd, DD MMM YYYY, hh:mmA") : void 0;
|
|
@@ -322,19 +296,19 @@ function rt(t) {
|
|
|
322
296
|
},
|
|
323
297
|
get "connect.campaign.broadcast.summary.delivery"() {
|
|
324
298
|
if (e.type != "BROADCAST") return;
|
|
325
|
-
const n =
|
|
299
|
+
const n = d(e);
|
|
326
300
|
if (!(n.channels.length < 2))
|
|
327
301
|
return `connect.campaign.broadcast.mode.${n.mode}.label`;
|
|
328
302
|
},
|
|
329
303
|
get "connect.campaign.broadcast.summary.channels"() {
|
|
330
304
|
var n;
|
|
331
305
|
if (e.type == "BROADCAST")
|
|
332
|
-
return ((n =
|
|
306
|
+
return ((n = T(e)) == null ? void 0 : n.route) ?? "connect.campaign.broadcast.noChannelsSelected";
|
|
333
307
|
},
|
|
334
308
|
get "connect.campaign.common.available_at"() {
|
|
335
|
-
const n =
|
|
309
|
+
const n = A(
|
|
336
310
|
e.targetLocation,
|
|
337
|
-
|
|
311
|
+
E().locations
|
|
338
312
|
);
|
|
339
313
|
return n.kind === "all" ? "connect.campaign.common.all_locations" : n.kind === "none" ? "connect.campaign.common.no_location" : n.kind === "names" ? n.names.join(", ") : n;
|
|
340
314
|
}
|
|
@@ -346,18 +320,18 @@ function M(t) {
|
|
|
346
320
|
t.timeframeOptions.end ?? u().add(1, "d")
|
|
347
321
|
) ? "active" : u().isAfter(t.timeframeOptions.end) ? "expired" : "upcoming" : "active";
|
|
348
322
|
}
|
|
349
|
-
function
|
|
350
|
-
const e =
|
|
323
|
+
function T(t) {
|
|
324
|
+
const e = d(t);
|
|
351
325
|
if (!e.channels.length) return null;
|
|
352
|
-
const o =
|
|
326
|
+
const o = S(e, (r) => c.global.t(`connect.campaign.broadcast.channel.${r}`));
|
|
353
327
|
return {
|
|
354
|
-
strategy: e.channels.length > 1 ?
|
|
328
|
+
strategy: e.channels.length > 1 ? c.global.t(
|
|
355
329
|
`connect.campaign.broadcast.strategy.${e.mode}`
|
|
356
330
|
) : null,
|
|
357
331
|
route: o
|
|
358
332
|
};
|
|
359
333
|
}
|
|
360
|
-
function
|
|
334
|
+
function nt(t) {
|
|
361
335
|
var e, n;
|
|
362
336
|
switch (t.event.type) {
|
|
363
337
|
case "BILL_COMPLETED":
|
|
@@ -392,23 +366,22 @@ function ct(t) {
|
|
|
392
366
|
}
|
|
393
367
|
}
|
|
394
368
|
export {
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
T as s
|
|
369
|
+
Z as C,
|
|
370
|
+
tt as a,
|
|
371
|
+
nt as b,
|
|
372
|
+
T as c,
|
|
373
|
+
N as d,
|
|
374
|
+
q as e,
|
|
375
|
+
K as f,
|
|
376
|
+
M as g,
|
|
377
|
+
j as h,
|
|
378
|
+
G as i,
|
|
379
|
+
J as j,
|
|
380
|
+
W as k,
|
|
381
|
+
X as l,
|
|
382
|
+
z as m,
|
|
383
|
+
et as n,
|
|
384
|
+
Q as o,
|
|
385
|
+
V as r,
|
|
386
|
+
P as s
|
|
414
387
|
};
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { defineStore as d } from "pinia";
|
|
2
|
-
import { reactive as
|
|
3
|
-
import { c } from "./index-
|
|
4
|
-
import { g as i, S as
|
|
2
|
+
import { reactive as f, onMounted as b, ref as a } from "vue";
|
|
3
|
+
import { c } from "./index-BaqeaRIe.js";
|
|
4
|
+
import { g as i, S as I, b as g } from "./index-CHzG8fUk.js";
|
|
5
5
|
const p = () => {
|
|
6
|
-
const e =
|
|
6
|
+
const e = I.getBusinessId();
|
|
7
7
|
if (!e) throw new Error("Invalid business ID");
|
|
8
|
-
return
|
|
8
|
+
return g(`businesses/${e}/campaigns`, {
|
|
9
9
|
noIdRequired: !0
|
|
10
10
|
});
|
|
11
|
-
},
|
|
11
|
+
}, h = {
|
|
12
12
|
async readAll() {
|
|
13
13
|
return i(await p().get("templates"));
|
|
14
14
|
},
|
|
@@ -17,8 +17,8 @@ const p = () => {
|
|
|
17
17
|
await p().get(`templates/${e}`)
|
|
18
18
|
);
|
|
19
19
|
}
|
|
20
|
-
},
|
|
21
|
-
const e =
|
|
20
|
+
}, S = d("mf-connect-campaign", () => {
|
|
21
|
+
const e = f({
|
|
22
22
|
promotion: [],
|
|
23
23
|
voucher: [],
|
|
24
24
|
broadcast: [],
|
|
@@ -27,13 +27,12 @@ const p = () => {
|
|
|
27
27
|
credit: [],
|
|
28
28
|
token: [],
|
|
29
29
|
mission: [],
|
|
30
|
-
grab: [],
|
|
31
30
|
all: []
|
|
32
31
|
});
|
|
33
|
-
|
|
32
|
+
b(() => {
|
|
34
33
|
console.log("🔧 CampaignStore Installed");
|
|
35
34
|
});
|
|
36
|
-
const t =
|
|
35
|
+
const t = a([]), r = a([]), n = a([]);
|
|
37
36
|
async function u(k) {
|
|
38
37
|
const o = await c.readAll({
|
|
39
38
|
limit: 1e3,
|
|
@@ -41,39 +40,34 @@ const p = () => {
|
|
|
41
40
|
sortBy: "_id",
|
|
42
41
|
descending: !0
|
|
43
42
|
});
|
|
44
|
-
Object.keys(e).forEach((
|
|
45
|
-
e[
|
|
46
|
-
}), e.all = o.resources.filter(
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
for (const a of o.resources)
|
|
50
|
-
switch (a.type) {
|
|
43
|
+
Object.keys(e).forEach((s) => {
|
|
44
|
+
e[s] = [];
|
|
45
|
+
}), e.all = o.resources.filter((s) => s.type !== "MEMBERSHIP");
|
|
46
|
+
for (const s of o.resources)
|
|
47
|
+
switch (s.type) {
|
|
51
48
|
case "PROMOTION":
|
|
52
|
-
e.promotion.push(
|
|
49
|
+
e.promotion.push(s);
|
|
53
50
|
break;
|
|
54
51
|
case "VOUCHER":
|
|
55
|
-
e.voucher.push(
|
|
52
|
+
e.voucher.push(s), n.value.push(s);
|
|
56
53
|
break;
|
|
57
54
|
case "BROADCAST":
|
|
58
|
-
["SCHEDULE", "FEEDBACK"].includes(
|
|
55
|
+
["SCHEDULE", "FEEDBACK"].includes(s.event.type) && e.broadcast.push(s);
|
|
59
56
|
break;
|
|
60
57
|
case "POINT":
|
|
61
|
-
e.experience.push(
|
|
58
|
+
e.experience.push(s);
|
|
62
59
|
break;
|
|
63
60
|
case "COIN":
|
|
64
|
-
e.point.push(
|
|
61
|
+
e.point.push(s);
|
|
65
62
|
break;
|
|
66
63
|
case "CREDIT":
|
|
67
|
-
e.credit.push(
|
|
64
|
+
e.credit.push(s);
|
|
68
65
|
break;
|
|
69
66
|
case "GAME":
|
|
70
|
-
e.token.push(
|
|
67
|
+
e.token.push(s);
|
|
71
68
|
break;
|
|
72
69
|
case "MISSION":
|
|
73
|
-
e.mission.push(
|
|
74
|
-
break;
|
|
75
|
-
case "GRAB":
|
|
76
|
-
e.grab.push(a);
|
|
70
|
+
e.mission.push(s);
|
|
77
71
|
break;
|
|
78
72
|
}
|
|
79
73
|
}
|
|
@@ -81,7 +75,7 @@ const p = () => {
|
|
|
81
75
|
r.value = await c.readGroups();
|
|
82
76
|
}
|
|
83
77
|
async function m() {
|
|
84
|
-
t.value = await
|
|
78
|
+
t.value = await h.readAll();
|
|
85
79
|
}
|
|
86
80
|
return {
|
|
87
81
|
// State
|
|
@@ -96,5 +90,5 @@ const p = () => {
|
|
|
96
90
|
};
|
|
97
91
|
});
|
|
98
92
|
export {
|
|
99
|
-
|
|
93
|
+
S as u
|
|
100
94
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { z as E } from "./index-
|
|
1
|
+
import { z as E } from "./index-Dc4-mMaE.js";
|
|
2
2
|
const M = E.enum([
|
|
3
3
|
"VOUCHER",
|
|
4
4
|
"PROMOTION",
|
|
@@ -9,8 +9,7 @@ const M = E.enum([
|
|
|
9
9
|
"COIN",
|
|
10
10
|
"REWARD_POOL",
|
|
11
11
|
"GAME",
|
|
12
|
-
"MISSION"
|
|
13
|
-
"GRAB"
|
|
12
|
+
"MISSION"
|
|
14
13
|
]), O = E.enum([
|
|
15
14
|
"TIME_BASED_PROMOTION",
|
|
16
15
|
"GAME_PROMOTION",
|