@feedmepos/mf-connect 0.1.127-prod → 0.1.128-dev
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-BMF6m0GU.js → App-CPSC0ccq.js} +224 -216
- package/dist/AuditLogs-CgrYStwa.js +2016 -0
- package/dist/{Bin-Dkn-CjZE.js → Bin-Cn7sCPql.js} +8 -8
- package/dist/{Broadcast-DqaP4ON2.js → Broadcast-bR7HAyV2.js} +22 -21
- package/dist/{CampaignAnalytic-2Iuxh8-x.js → CampaignAnalytic-Dnpw_Jwo.js} +97 -97
- package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-C8MlNehK.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-HaWMLA4s.js} +9 -10
- package/dist/{Card-Cv9eldq8.js → Card-BE3Y0KHF.js} +23 -23
- package/dist/{Collections-CK-hxHpa.js → Collections-CLSp9Uah.js} +197 -185
- package/dist/{Credit-CDE4ACVm.js → Credit-DgMyKROt.js} +21 -20
- package/dist/{DateRangeChip.vue_vue_type_script_setup_true_lang-CTvIDOWy.js → DateRangeChip.vue_vue_type_script_setup_true_lang-D8eCQE4D.js} +1 -1
- package/dist/EditCampaignSheet.vue_vue_type_script_setup_true_lang-BB2gszsG.js +4584 -0
- package/dist/{EffectSheet.vue_vue_type_style_index_0_lang-CuPhm1uG.js → EffectSheet.vue_vue_type_style_index_0_lang-CXw7yS8N.js} +33 -33
- package/dist/{Experience-lLK_RR69.js → Experience-CCeRbvIe.js} +32 -31
- package/dist/{FileSaver.min-zDxJKfBO.js → FileSaver.min-D8Rw2VVN.js} +1 -1
- package/dist/{Game-DCdfJkil.js → Game-CYGg8vWQ.js} +19 -18
- package/dist/{GiftCardSetup-DfF1OpFk.js → GiftCardSetup-rzea90xr.js} +31 -31
- package/dist/{GoalPickerPanel.vue_vue_type_script_setup_true_lang-Dbx9bwJM.js → GoalPickerPanel.vue_vue_type_script_setup_true_lang-BFUBfL-S.js} +140 -128
- package/dist/{Goals-t0wbcWxG.js → Goals-BnZfK7a3.js} +4 -4
- package/dist/Grab-BRbn6ffm.js +301 -0
- package/dist/{ImageInput.vue_vue_type_script_setup_true_lang-Bur6iCYa.js → ImageInput.vue_vue_type_script_setup_true_lang-Cw2imjlQ.js} +1 -1
- package/dist/{Index-BUF8U-h8.js → Index-DjZi_lVg.js} +10 -10
- package/dist/{LocationPicker.vue_vue_type_script_setup_true_lang-kIOc-Px5.js → LocationPicker.vue_vue_type_script_setup_true_lang-B1q4NtuM.js} +1 -1
- package/dist/{LottieAnimation.vue_vue_type_script_setup_true_lang-DRmLpXsg.js → LottieAnimation.vue_vue_type_script_setup_true_lang-CUjzbMcb.js} +1 -1
- package/dist/{LoyaltyDashboard-8laUXBGQ.js → LoyaltyDashboard-C3TZSSQz.js} +82 -82
- package/dist/{MainLayout-BeuKKVNP.js → MainLayout-uNGpBpJi.js} +1 -1
- package/dist/{MainLayout.vue_vue_type_script_setup_true_lang-C7E3h_Zr.js → MainLayout.vue_vue_type_script_setup_true_lang-0PcswtGl.js} +3 -3
- package/dist/{Marketing-DZG0oIs-.js → Marketing-SXmxcw3-.js} +4 -4
- package/dist/{MarketingMaterialEdit--RDayaUN.js → MarketingMaterialEdit-DK0tjHpF.js} +214 -211
- package/dist/{Member-DeEQr2ef.js → Member-BFSwupq6.js} +7 -7
- package/dist/MemberDetailSheet.vue_vue_type_script_setup_true_lang-Dvcasf5O.js +1322 -0
- package/dist/{MemberImportHistory-DMXVl1qI.js → MemberImportHistory-z12l_IAQ.js} +7 -7
- package/dist/{MemberList-zqeFDkEZ.js → MemberList-DfN7ur0J.js} +103 -105
- package/dist/{MemberTransactions-BBQPNfFG.js → MemberTransactions-Bntt4bRR.js} +1 -1
- package/dist/{MessageInput.vue_vue_type_script_setup_true_lang-C_8yL5GL.js → MessageInput.vue_vue_type_script_setup_true_lang-ComtYItw.js} +12 -12
- package/dist/{MetricInfoTooltip.vue_vue_type_script_setup_true_lang-9r-eGARm.js → MetricInfoTooltip.vue_vue_type_script_setup_true_lang-_Imnj16x.js} +1 -1
- package/dist/{Mission-TO8w3ucB.js → Mission-CvpeYVjB.js} +22 -21
- package/dist/{Overview-CPUpEzPd.js → Overview-BkaFC5La.js} +21 -21
- package/dist/{Overview-D6YBYVxK.js → Overview-BtTkltlY.js} +145 -144
- package/dist/{Point-BSq4CRcb.js → Point-CpNAFABM.js} +22 -21
- package/dist/{Promotion-DgPNNfk7.js → Promotion-B_vD_9UF.js} +137 -131
- package/dist/{Queue-CYyabVYT.js → Queue-D5jDhI0f.js} +46 -46
- package/dist/{Record-n7s29IZH.js → Record-EsNXzy4D.js} +9 -9
- package/dist/{Review-DIYulCVl.js → Review-ByMrkymf.js} +2 -2
- package/dist/ReviewFacebookCallback-BDl6NBkw.js +225 -0
- package/dist/{ReviewGoogleCallback-CnESXIH-.js → ReviewGoogleCallback-BzU-hUy5.js} +5 -5
- package/dist/{Reward-D_L2DgT9.js → Reward-kxAuVGDE.js} +16 -16
- package/dist/{RewardGroup.vue_vue_type_script_setup_true_lang-Dsk2VqB8.js → RewardGroup.vue_vue_type_script_setup_true_lang-i9B1R3XP.js} +14 -14
- package/dist/RuleGroup.vue_vue_type_script_setup_true_lang-D3MZsh4A.js +1923 -0
- package/dist/{Segment-BbGE6AOZ.js → Segment-C5SJs7al.js} +304 -307
- package/dist/{SendCollectionSheet.vue_vue_type_script_setup_true_lang-xrdOyWX8.js → SendCollectionSheet.vue_vue_type_script_setup_true_lang-RIerABcb.js} +15 -15
- package/dist/{SendVoucherSheet.vue_vue_type_script_setup_true_lang-CTsORsDg.js → SendVoucherSheet.vue_vue_type_script_setup_true_lang-D8jS4gee.js} +4 -4
- package/dist/{Setting-B9i2ufr7.js → Setting-zmlu3QcR.js} +17 -17
- package/dist/{SettingAdvertisements-Cuczz1wK.js → SettingAdvertisements-DewXGZoE.js} +12 -12
- package/dist/Settings-5HU_uY6B.js +286 -0
- package/dist/{Store-CoxREXJ-.js → Store-CiTwDcgr.js} +29 -29
- package/dist/{StoreRewards-CzkznvA1.js → StoreRewards-DaOJxsVm.js} +15 -15
- package/dist/{StoreTransactions.vue_vue_type_script_setup_true_lang-BtwDM2Fr.js → StoreTransactions.vue_vue_type_script_setup_true_lang-BTqxeKR4.js} +25 -25
- package/dist/TargetLocationInput.vue_vue_type_script_setup_true_lang-DlFCI1BT.js +7007 -0
- package/dist/{Tier-DyOlzjE0.js → Tier-lNI7GWMP.js} +2583 -688
- package/dist/{Title-C3__B-bw.js → Title-CDxDztnl.js} +96 -95
- package/dist/{Transaction-B_v-lbed.js → Transaction-CcsUvIns.js} +2 -2
- package/dist/{Upselling-D_5nBzIN.js → Upselling-BDirPkWX.js} +3 -3
- package/dist/{UserRuleGroup.vue_vue_type_script_setup_true_lang-CE5eo992.js → UserRuleGroup.vue_vue_type_script_setup_true_lang-hqzfBpop.js} +26 -26
- package/dist/{Voucher-KxXwge4O.js → Voucher-CJDo5U_P.js} +19 -19
- package/dist/{VoucherEditor.vue_vue_type_script_setup_true_lang-nbLXmJ5Q.js → VoucherEditor.vue_vue_type_script_setup_true_lang-WjsLHh_E.js} +12 -12
- package/dist/{WhatsappAccount-C8kinTmg.js → WhatsappAccount-CQBti7RJ.js} +6 -6
- package/dist/{WhatsappAccountStatusLabel.vue_vue_type_script_setup_true_lang-ydBfMtzM.js → WhatsappAccountStatusLabel.vue_vue_type_script_setup_true_lang-DVNZ774z.js} +1 -1
- package/dist/WhatsappBot-91lIlikm.js +882 -0
- package/dist/{WhatsappBotLogs-Dm0HJh_f.js → WhatsappBotLogs-PQTwT8e5.js} +66 -66
- package/dist/{WhatsappBotSettings-BNZcj26j.js → WhatsappBotSettings-CUES9UL-.js} +5 -5
- package/dist/{WhatsappLayout-BvBN7H-y.js → WhatsappLayout-pZGYJj0J.js} +3 -3
- package/dist/{WhatsappNotificationGroupDialog.vue_vue_type_script_setup_true_lang-BzKwTs9R.js → WhatsappNotificationGroupDialog.vue_vue_type_script_setup_true_lang-DAoonwsO.js} +3 -3
- package/dist/{ZodTextField.vue_vue_type_script_setup_true_lang-BY8t6jtW.js → ZodTextField.vue_vue_type_script_setup_true_lang-HEIeZYCP.js} +2 -2
- package/dist/{app-uud8OgB9.js → app--pRyBODF.js} +4159 -3395
- package/dist/app.js +4 -3
- package/dist/{base.export-Bfxt84QY.js → base.export-CSdCmt-6.js} +2 -2
- package/dist/business-BtEfH8Mt.js +83 -0
- package/dist/{campaign-CWyU-r8u.js → campaign-CwQjWU63.js} +121 -94
- package/dist/{campaign-6WrFDF05.js → campaign-t9ubUkjB.js} +31 -25
- package/dist/{campaign.enum-BqekIiiN.js → campaign.enum-Damu7hgo.js} +3 -2
- package/dist/campaign.fn-D3_OzyyQ.js +776 -0
- package/dist/{collectible.enum-Liy2wH3s.js → collectible.enum-C8LbgIQ7.js} +1 -1
- package/dist/{collection.fn-CO-YhhUM.js → collection.fn-BV7pDqa5.js} +2 -2
- package/dist/{currency-kWhKZnhN.js → currency-pS0xeJA6.js} +1 -1
- package/dist/duplicateCampaign-19CDT2kM.js +51 -0
- package/dist/{effect-CjSyUbur.js → effect-B532leFF.js} +1 -1
- package/dist/{email-addresses-C_yrJd12.js → email-addresses-CKkT_5O5.js} +2 -2
- package/dist/{feature-flag-DcM82jeJ.js → feature-flag-25oDCLLB.js} +84 -84
- package/dist/google-BQK68wbe.js +5 -0
- package/dist/{helper-G8MwkrFo.js → helper-DxOj04aq.js} +1 -1
- package/dist/{index-3axft-Vz.js → index-B3sR1LMa.js} +10 -10
- package/dist/{index-ivVytFih.js → index-BCgTcZ7c.js} +609 -252
- package/dist/{index-BXSokNlS.js → index-BFJ2FmB4.js} +18 -18
- package/dist/{index-CiFPNxgn.js → index-BHnMLtU2.js} +381 -235
- package/dist/{index-6Ey495tl.js → index-BLRv_4gJ.js} +1 -1
- package/dist/index-BViMt33t.js +10767 -0
- package/dist/{index-Dv5Ja20d.js → index-BX6lcJDB.js} +1 -1
- package/dist/{index-CVVLKJj_.js → index-C6pr4oIv.js} +1315 -1243
- package/dist/{index-Dkud56R0.js → index-C7wVaeC1.js} +1 -1
- package/dist/{index-DgT4P2_R.js → index-CBYY3VEG.js} +2700 -2614
- package/dist/{index-sPf1Rhez.js → index-C_qmnOKQ.js} +9 -9
- package/dist/{index-CqvjZF-j.js → index-ClD2-18P.js} +19 -6
- package/dist/{index-h2p2DjKy.js → index-DBT1f1M3.js} +2 -2
- package/dist/{index-BNjHmUyd.js → index-DBzCfWxW.js} +2 -2
- package/dist/{index-Cj85mCmr.js → index-DEENB4la.js} +664 -664
- package/dist/{index-B3LCTMwV.js → index-DSAEs8u0.js} +68 -60
- package/dist/{index-L_2hhvso.js → index-DVlo0TO9.js} +23 -23
- package/dist/index-DiYuhtNS.js +19528 -0
- package/dist/{index-Ba4Q_XWF.js → index-Diw9710S.js} +4 -4
- package/dist/{index-CxyO5j1a.js → index-DqQ1q8sX.js} +26 -19
- package/dist/{index-RtamQHhy.js → index-ip2EqUEW.js} +1 -1
- package/dist/{index-DGrPvdRc.js → index-uCkkfjE3.js} +4 -4
- package/dist/{index.esm2017-DiUbRDfz.js → index.esm2017-DRrIFPLo.js} +57 -57
- package/dist/{loading-BdpH3z-q.js → loading--SZI7Tpo.js} +1 -1
- package/dist/{lodash-DcC4G06s.js → lodash-BZqvXM_P.js} +1 -1
- package/dist/{member-import-C99OxU-w.js → member-import-Bmt1OdRW.js} +2 -2
- package/dist/{membership-O5EN0QMl.js → membership-BTFpH7Mg.js} +3 -3
- package/dist/{money-CYS7zoiT.js → money-BVtlYyxo.js} +1 -1
- package/dist/{number-D_C66osx.js → number-DrOdGSrF.js} +1 -1
- package/dist/objectid-DdJFC6TI.js +145 -0
- package/dist/{onboarding-DGx34lkW.js → onboarding-BjcSBC8v.js} +25 -25
- package/dist/{onboardingSetup-ALOoxDHE.js → onboardingSetup-Dcv8i8qd.js} +2 -2
- package/dist/{plugins-CVh8eTG-.js → plugins-Iw52rJ1s.js} +3 -3
- package/dist/{reward-8sP3d8ie.js → reward-DF9tE7iA.js} +1 -1
- package/dist/{rule-BGMBiCRZ.js → rule-rCPhlgAq.js} +572 -492
- package/dist/style.css +1 -1
- package/dist/template-v1F1rvUU.js +227 -0
- package/dist/timezone-BxJDy-bY.js +19 -0
- package/dist/{transaction.fn-Dmla3R1q.js → transaction.fn-Cp3ylqFD.js} +2 -2
- package/dist/{trigger-CArDddXr.js → trigger-O6JvCms4.js} +9 -9
- package/dist/{useMarketingMaterialActions-BX5Ynq8O.js → useMarketingMaterialActions-Cnadk3AO.js} +4 -4
- package/dist/{usePagination-BdgLVPuo.js → usePagination-C5lSxdqt.js} +1 -1
- package/dist/{user-BgTKHjea.js → user-B7iv0TRE.js} +1 -1
- package/dist/vue-i18n-CYFvlTTS.js +2365 -0
- package/dist/{xlsx-WIRNQZAx.js → xlsx-DTJ6bUKL.js} +166 -166
- package/dist/{zod-Dh_CVWJN.js → zod-cIIx_Ng9.js} +1 -1
- package/package.json +7 -3
- package/dist/EditCampaignSheet.vue_vue_type_script_setup_true_lang-DUJKivXA.js +0 -3638
- package/dist/MemberDetailSheet.vue_vue_type_script_setup_true_lang-Dmf4WtSt.js +0 -1308
- package/dist/ReviewFacebookCallback-D07x5BnV.js +0 -238
- package/dist/RuleGroup.vue_vue_type_script_setup_true_lang-BjyiiTSY.js +0 -1884
- package/dist/Settings-CCSXjpUC.js +0 -179
- package/dist/TargetLocationInput.vue_vue_type_script_setup_true_lang-tSfwcDBG.js +0 -142
- package/dist/WhatsappBot-BuD45ou8.js +0 -878
- package/dist/business-77FEeeil.js +0 -82
- package/dist/campaign.fn-Ci_av9lZ.js +0 -776
- package/dist/google-C3S8u0mT.js +0 -4
- package/dist/index-BqHB3euS.js +0 -27551
- package/dist/index-C_H8jFYf.js +0 -2743
- package/dist/objectid-Dd0NRad7.js +0 -145
- package/dist/rule-builder-DcPK2oqo.js +0 -102
- package/dist/template-Bku-aSPA.js +0 -275
- package/dist/timezone-DML8BuIK.js +0 -20
- package/dist/vue-i18n-DMEbesBm.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--SZI7Tpo.js";
|
|
5
|
+
import { w as h, u as a } from "./xlsx-DTJ6bUKL.js";
|
|
6
6
|
const t = {
|
|
7
7
|
sortBy: "_id",
|
|
8
8
|
descending: !1,
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
import { ref as r, computed as l } from "vue";
|
|
2
|
+
import { defineStore as y } from "pinia";
|
|
3
|
+
import { useCoreStore as I } from "@feedmepos/mf-common";
|
|
4
|
+
import { d as b, g as i, A as S, S as C, b as D } from "./index-B3sR1LMa.js";
|
|
5
|
+
const $ = {
|
|
6
|
+
async readSettings(e) {
|
|
7
|
+
try {
|
|
8
|
+
return i(await b(`marketing-v2/${e}/setting`).get(""));
|
|
9
|
+
} catch (s) {
|
|
10
|
+
if (console.error(JSON.stringify(s)), s instanceof S)
|
|
11
|
+
return {
|
|
12
|
+
_id: e,
|
|
13
|
+
business: e,
|
|
14
|
+
apiVersion: "v1"
|
|
15
|
+
};
|
|
16
|
+
throw s;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
}, o = () => {
|
|
20
|
+
const e = C.getBusinessId();
|
|
21
|
+
if (!e) throw new Error("Invalid business ID");
|
|
22
|
+
return D(`businesses/${e}/location`, {
|
|
23
|
+
noIdRequired: !0
|
|
24
|
+
});
|
|
25
|
+
}, v = {
|
|
26
|
+
async read() {
|
|
27
|
+
return i(await o().get(""));
|
|
28
|
+
},
|
|
29
|
+
async readDevices() {
|
|
30
|
+
return i(await o().get("devices"));
|
|
31
|
+
},
|
|
32
|
+
async unregisterDevice(e) {
|
|
33
|
+
await i(await o().delete(`devices/${e}`));
|
|
34
|
+
},
|
|
35
|
+
async getOtp(e) {
|
|
36
|
+
return i(await o().post(`${e}/otp`));
|
|
37
|
+
}
|
|
38
|
+
}, E = y("mf-connect-business", () => {
|
|
39
|
+
const e = r("v2"), s = r(!1), c = r(!1), a = r([]), u = r([]);
|
|
40
|
+
async function d() {
|
|
41
|
+
const n = I().currentBusiness.value, t = await $.readSettings(n == null ? void 0 : n.id);
|
|
42
|
+
return c.value = t && "business" in t && t.premium == !0 || !1, s.value = t && "profileSource" in t && t.profileSource === "CRM" || !1, e.value = (t == null ? void 0 : t.apiVersion) || "v1", c.value;
|
|
43
|
+
}
|
|
44
|
+
async function p() {
|
|
45
|
+
return a.value = await v.read(), a.value;
|
|
46
|
+
}
|
|
47
|
+
async function f() {
|
|
48
|
+
return u.value = await v.readDevices(), u.value;
|
|
49
|
+
}
|
|
50
|
+
function m(n) {
|
|
51
|
+
return a.value.find((t) => t._id === n);
|
|
52
|
+
}
|
|
53
|
+
const g = l(() => [
|
|
54
|
+
{ label: "All", value: null },
|
|
55
|
+
...a.value.map((n) => ({
|
|
56
|
+
label: n.name,
|
|
57
|
+
value: n._id
|
|
58
|
+
}))
|
|
59
|
+
]), w = l(() => 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
|
+
isCrmProfile: s,
|
|
67
|
+
isPremium: c,
|
|
68
|
+
locations: a,
|
|
69
|
+
locationDevices: u,
|
|
70
|
+
// actions
|
|
71
|
+
readPremium: d,
|
|
72
|
+
readLocations: p,
|
|
73
|
+
readLocationDevices: f,
|
|
74
|
+
locationById: m,
|
|
75
|
+
// getters
|
|
76
|
+
locationItems: g,
|
|
77
|
+
locationOptions: w
|
|
78
|
+
};
|
|
79
|
+
});
|
|
80
|
+
export {
|
|
81
|
+
v as l,
|
|
82
|
+
E as u
|
|
83
|
+
};
|
|
@@ -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-BHnMLtU2.js";
|
|
3
|
+
import { e as f } from "./effect-B532leFF.js";
|
|
4
|
+
import { components as h } from "@feedmepos/ui-library";
|
|
5
|
+
import { a as E } from "./index-BCgTcZ7c.js";
|
|
6
|
+
import { c as N } from "./rule-rCPhlgAq.js";
|
|
7
|
+
import { u as I } from "./business-BtEfH8Mt.js";
|
|
8
|
+
import { C as m } from "./campaign.fn-D3_OzyyQ.js";
|
|
9
|
+
import { g as C, t as y } from "./index-DEENB4la.js";
|
|
10
|
+
import { c as O } from "./string-Gcy5IM_H.js";
|
|
11
|
+
import { i as g } from "./plugins-Iw52rJ1s.js";
|
|
12
|
+
import { h as l } from "vue";
|
|
13
|
+
import { F as s } from "./campaign.enum-Damu7hgo.js";
|
|
14
|
+
const S = [
|
|
15
15
|
"APP_INBOX",
|
|
16
16
|
"PUSH",
|
|
17
17
|
"SMS",
|
|
18
18
|
"EMAIL",
|
|
19
19
|
"WHATSAPP"
|
|
20
|
-
],
|
|
21
|
-
function
|
|
22
|
-
return
|
|
20
|
+
], R = [...S];
|
|
21
|
+
function X(t) {
|
|
22
|
+
return R.includes(t);
|
|
23
23
|
}
|
|
24
|
-
function
|
|
24
|
+
function b(t, e) {
|
|
25
25
|
return t === "APP_INBOX" ? {
|
|
26
26
|
title: "",
|
|
27
27
|
previewText: "",
|
|
@@ -40,17 +40,17 @@ function C(t, e) {
|
|
|
40
40
|
variables: e
|
|
41
41
|
};
|
|
42
42
|
}
|
|
43
|
-
function
|
|
43
|
+
function z(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] ?? b(e, n)
|
|
50
50
|
}
|
|
51
51
|
};
|
|
52
52
|
}
|
|
53
|
-
function
|
|
53
|
+
function W(t, e) {
|
|
54
54
|
const n = { ...t.content };
|
|
55
55
|
return delete n[e], {
|
|
56
56
|
...t,
|
|
@@ -58,99 +58,111 @@ function V(t, e) {
|
|
|
58
58
|
content: n
|
|
59
59
|
};
|
|
60
60
|
}
|
|
61
|
-
function
|
|
61
|
+
function J(t, e, n) {
|
|
62
62
|
return {
|
|
63
63
|
...t,
|
|
64
64
|
content: { ...t.content, [e]: n }
|
|
65
65
|
};
|
|
66
66
|
}
|
|
67
|
-
function
|
|
67
|
+
function K(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 q(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] ?? b(e, n)
|
|
79
79
|
};
|
|
80
80
|
return o && delete a[o], {
|
|
81
81
|
...t,
|
|
82
|
-
channels: [e, ...r.filter((
|
|
82
|
+
channels: [e, ...r.filter((p) => p !== e)],
|
|
83
83
|
content: a
|
|
84
84
|
};
|
|
85
85
|
}
|
|
86
|
-
function
|
|
86
|
+
function Q(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 Z(t, e) {
|
|
94
94
|
return { ...t, mode: e };
|
|
95
95
|
}
|
|
96
|
-
function
|
|
96
|
+
function tt(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 && C.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" || C.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 A(t, e) {
|
|
112
112
|
return t.channels.map(e).join(t.mode === "fallback" ? " → " : " + ");
|
|
113
113
|
}
|
|
114
|
-
function
|
|
114
|
+
function et(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 = y(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 _ = 5;
|
|
125
|
+
function D(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 p = n.get(String(a));
|
|
130
|
+
p && o.push({ id: String(a), code: p.code, name: p.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 <=
|
|
134
|
+
return r === 0 && o.length <= _ ? { kind: "names", names: o.map((a) => a.name) } : { kind: "count", rows: o, total: e.length, unavailable: r };
|
|
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));
|
|
135
147
|
}
|
|
136
148
|
function i(t) {
|
|
137
|
-
return
|
|
149
|
+
return l(
|
|
138
150
|
"div",
|
|
139
151
|
{
|
|
140
152
|
class: `${t.chipClass} gap-4 h-[22px] inline-flex items-center justify-center min-w-min px-8 rounded-md`
|
|
141
153
|
},
|
|
142
154
|
[
|
|
143
|
-
|
|
144
|
-
|
|
155
|
+
l(h.FmIcon, { size: "sm", name: t.icon, outline: !0 }),
|
|
156
|
+
l("span", { class: "fm-typo-en-body-md-600" }, t.name)
|
|
145
157
|
]
|
|
146
158
|
);
|
|
147
159
|
}
|
|
148
|
-
const
|
|
160
|
+
const nt = {
|
|
149
161
|
[s.enum.CREDIT]: {
|
|
150
162
|
chipClass: "!text-fm-color-secondary-plum !bg-[#f2ebfe]",
|
|
151
163
|
icon: "local_activity",
|
|
152
164
|
get name() {
|
|
153
|
-
return c
|
|
165
|
+
return c("connect.campaign.common.typeName.CREDIT");
|
|
154
166
|
},
|
|
155
167
|
chip() {
|
|
156
168
|
return i(this);
|
|
@@ -160,7 +172,7 @@ const Z = {
|
|
|
160
172
|
chipClass: "!text-fm-color-secondary-citrus !bg-fm-color-system-warning-100",
|
|
161
173
|
icon: "loyalty",
|
|
162
174
|
get name() {
|
|
163
|
-
return c
|
|
175
|
+
return c("connect.campaign.common.typeName.PROMOTION");
|
|
164
176
|
},
|
|
165
177
|
chip() {
|
|
166
178
|
return i(this);
|
|
@@ -170,7 +182,7 @@ const Z = {
|
|
|
170
182
|
chipClass: "!text-fm-color-secondary-halite !bg-[#fff0f6]",
|
|
171
183
|
icon: "sell",
|
|
172
184
|
get name() {
|
|
173
|
-
return c
|
|
185
|
+
return c("connect.campaign.common.typeName.VOUCHER");
|
|
174
186
|
},
|
|
175
187
|
chip() {
|
|
176
188
|
return i(this);
|
|
@@ -180,7 +192,7 @@ const Z = {
|
|
|
180
192
|
chipClass: "!text-fm-color-secondary-cocoa !bg-[#fff9e6]",
|
|
181
193
|
icon: "award_star",
|
|
182
194
|
get name() {
|
|
183
|
-
return c
|
|
195
|
+
return c("connect.campaign.common.typeName.POINT");
|
|
184
196
|
},
|
|
185
197
|
chip() {
|
|
186
198
|
return i(this);
|
|
@@ -190,7 +202,7 @@ const Z = {
|
|
|
190
202
|
chipClass: "!text-fm-color-typo-info !bg-fm-color-system-info-100",
|
|
191
203
|
icon: "campaign",
|
|
192
204
|
get name() {
|
|
193
|
-
return c
|
|
205
|
+
return c("connect.campaign.common.typeName.BROADCAST");
|
|
194
206
|
},
|
|
195
207
|
chip() {
|
|
196
208
|
return i(this);
|
|
@@ -200,7 +212,7 @@ const Z = {
|
|
|
200
212
|
chipClass: "!text-fm-color-secondary-mint !bg-fm-color-system-success-100",
|
|
201
213
|
icon: "database",
|
|
202
214
|
get name() {
|
|
203
|
-
return c
|
|
215
|
+
return c("connect.campaign.common.typeName.GAME");
|
|
204
216
|
},
|
|
205
217
|
chip() {
|
|
206
218
|
return i(this);
|
|
@@ -210,7 +222,7 @@ const Z = {
|
|
|
210
222
|
chipClass: "!text-fm-color-secondary-tuna !bg-[#e3f4f9]",
|
|
211
223
|
icon: "editor_choice",
|
|
212
224
|
get name() {
|
|
213
|
-
return c
|
|
225
|
+
return c("connect.campaign.common.typeName.REWARD_POOL");
|
|
214
226
|
},
|
|
215
227
|
chip() {
|
|
216
228
|
return i(this);
|
|
@@ -220,7 +232,7 @@ const Z = {
|
|
|
220
232
|
chipClass: "!text-fm-color-system-success-400 !bg-fm-color-system-success-100",
|
|
221
233
|
icon: "monetization_on",
|
|
222
234
|
get name() {
|
|
223
|
-
return c
|
|
235
|
+
return c("connect.campaign.common.typeName.COIN");
|
|
224
236
|
},
|
|
225
237
|
chip() {
|
|
226
238
|
return i(this);
|
|
@@ -230,61 +242,75 @@ const Z = {
|
|
|
230
242
|
chipClass: "",
|
|
231
243
|
icon: "",
|
|
232
244
|
get name() {
|
|
233
|
-
return c
|
|
245
|
+
return c("connect.campaign.common.typeName.MEMBERSHIP");
|
|
234
246
|
},
|
|
235
247
|
chip() {
|
|
236
248
|
return i(this);
|
|
237
249
|
}
|
|
238
250
|
},
|
|
239
|
-
// TODO: confirm color
|
|
240
251
|
[s.enum.MISSION]: {
|
|
241
252
|
chipClass: "!text-fm-color-secondary-tuna !bg-[#e3f4f9]",
|
|
242
253
|
icon: "editor_choice",
|
|
243
254
|
get name() {
|
|
244
|
-
return c
|
|
255
|
+
return c("connect.campaign.common.typeName.MISSION");
|
|
245
256
|
},
|
|
246
257
|
chip() {
|
|
247
258
|
return i(this);
|
|
248
259
|
}
|
|
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
|
+
}
|
|
249
268
|
}
|
|
250
269
|
};
|
|
251
|
-
function
|
|
270
|
+
function ot(t) {
|
|
252
271
|
const e = M(t), n = {
|
|
253
272
|
active: "text-fm-color-typo-success bg-fm-color-system-success-100",
|
|
254
273
|
upcoming: "text-fm-color-typo-info bg-fm-color-system-info-100",
|
|
255
274
|
expired: "text-fm-color-typo-error bg-fm-color-system-error-100"
|
|
256
275
|
};
|
|
257
|
-
return t.type == "VOUCHER" ?
|
|
276
|
+
return t.type == "VOUCHER" ? l(h.FmChip, {
|
|
258
277
|
class: n[e],
|
|
259
|
-
label:
|
|
260
|
-
c.global.t(`connect.campaign.common.status.${e}`)
|
|
261
|
-
),
|
|
278
|
+
label: O.title(c(`connect.campaign.common.status.${e}`)),
|
|
262
279
|
compact: !0
|
|
263
|
-
}) :
|
|
280
|
+
}) : l(h.FmChip, {
|
|
264
281
|
class: n[e],
|
|
265
|
-
label:
|
|
266
|
-
c.global.t(`connect.campaign.common.status.${e}`)
|
|
267
|
-
),
|
|
282
|
+
label: O.title(c(`connect.campaign.common.status.${e}`)),
|
|
268
283
|
compact: !0
|
|
269
284
|
});
|
|
270
285
|
}
|
|
271
|
-
function
|
|
286
|
+
function at(t) {
|
|
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) {
|
|
272
298
|
if (!t || !t.start && !t.end)
|
|
273
299
|
return "connect.campaign.common.always";
|
|
274
300
|
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";
|
|
275
301
|
return `${e} - ${n}`;
|
|
276
302
|
}
|
|
277
|
-
function
|
|
303
|
+
function rt(t) {
|
|
278
304
|
const { campaign: e } = t;
|
|
279
305
|
return {
|
|
280
306
|
"connect.campaign.common.campaign_name": e.name,
|
|
281
|
-
"connect.campaign.common.campaign_period":
|
|
307
|
+
"connect.campaign.common.campaign_period": T(
|
|
282
308
|
e.timeframeOptions
|
|
283
309
|
),
|
|
284
310
|
get "connect.campaign.common.next_schedule_at"() {
|
|
285
|
-
if (e.event.type != "SCHEDULE" || !e.event.rule || !
|
|
311
|
+
if ((e == null ? void 0 : e.event.type) != "SCHEDULE" || !e.event.rule || !E(e.event.rule))
|
|
286
312
|
return;
|
|
287
|
-
const n =
|
|
313
|
+
const n = N(
|
|
288
314
|
e.event.rule.rules.g_schedule
|
|
289
315
|
);
|
|
290
316
|
return n ? u(n).format("ddd, DD MMM YYYY, hh:mmA") : void 0;
|
|
@@ -296,19 +322,19 @@ function et(t) {
|
|
|
296
322
|
},
|
|
297
323
|
get "connect.campaign.broadcast.summary.delivery"() {
|
|
298
324
|
if (e.type != "BROADCAST") return;
|
|
299
|
-
const n =
|
|
325
|
+
const n = y(e);
|
|
300
326
|
if (!(n.channels.length < 2))
|
|
301
327
|
return `connect.campaign.broadcast.mode.${n.mode}.label`;
|
|
302
328
|
},
|
|
303
329
|
get "connect.campaign.broadcast.summary.channels"() {
|
|
304
330
|
var n;
|
|
305
331
|
if (e.type == "BROADCAST")
|
|
306
|
-
return ((n =
|
|
332
|
+
return ((n = x(e)) == null ? void 0 : n.route) ?? "connect.campaign.broadcast.noChannelsSelected";
|
|
307
333
|
},
|
|
308
334
|
get "connect.campaign.common.available_at"() {
|
|
309
|
-
const n =
|
|
335
|
+
const n = D(
|
|
310
336
|
e.targetLocation,
|
|
311
|
-
|
|
337
|
+
I().locations
|
|
312
338
|
);
|
|
313
339
|
return n.kind === "all" ? "connect.campaign.common.all_locations" : n.kind === "none" ? "connect.campaign.common.no_location" : n.kind === "names" ? n.names.join(", ") : n;
|
|
314
340
|
}
|
|
@@ -320,18 +346,18 @@ function M(t) {
|
|
|
320
346
|
t.timeframeOptions.end ?? u().add(1, "d")
|
|
321
347
|
) ? "active" : u().isAfter(t.timeframeOptions.end) ? "expired" : "upcoming" : "active";
|
|
322
348
|
}
|
|
323
|
-
function
|
|
324
|
-
const e =
|
|
349
|
+
function x(t) {
|
|
350
|
+
const e = y(t);
|
|
325
351
|
if (!e.channels.length) return null;
|
|
326
|
-
const o =
|
|
352
|
+
const o = A(e, (r) => g.global.t(`connect.campaign.broadcast.channel.${r}`));
|
|
327
353
|
return {
|
|
328
|
-
strategy: e.channels.length > 1 ?
|
|
354
|
+
strategy: e.channels.length > 1 ? g.global.t(
|
|
329
355
|
`connect.campaign.broadcast.strategy.${e.mode}`
|
|
330
356
|
) : null,
|
|
331
357
|
route: o
|
|
332
358
|
};
|
|
333
359
|
}
|
|
334
|
-
function
|
|
360
|
+
function ct(t) {
|
|
335
361
|
var e, n;
|
|
336
362
|
switch (t.event.type) {
|
|
337
363
|
case "BILL_COMPLETED":
|
|
@@ -366,22 +392,23 @@ function nt(t) {
|
|
|
366
392
|
}
|
|
367
393
|
}
|
|
368
394
|
export {
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
395
|
+
nt as C,
|
|
396
|
+
M as a,
|
|
397
|
+
ot as b,
|
|
398
|
+
ct as c,
|
|
399
|
+
x as d,
|
|
400
|
+
S as e,
|
|
401
|
+
tt as f,
|
|
402
|
+
at as g,
|
|
403
|
+
Z as h,
|
|
404
|
+
X as i,
|
|
405
|
+
z as j,
|
|
406
|
+
Q as k,
|
|
407
|
+
q as l,
|
|
408
|
+
K as m,
|
|
409
|
+
J as n,
|
|
410
|
+
rt as o,
|
|
411
|
+
et as p,
|
|
412
|
+
W as r,
|
|
413
|
+
T as s
|
|
387
414
|
};
|
|
@@ -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 b, onMounted as f, ref as s } from "vue";
|
|
3
|
+
import { c } from "./index-DBzCfWxW.js";
|
|
4
|
+
import { g as i, S as g, b as h } from "./index-B3sR1LMa.js";
|
|
5
5
|
const p = () => {
|
|
6
|
-
const e =
|
|
6
|
+
const e = g.getBusinessId();
|
|
7
7
|
if (!e) throw new Error("Invalid business ID");
|
|
8
|
-
return
|
|
8
|
+
return h(`businesses/${e}/campaigns`, {
|
|
9
9
|
noIdRequired: !0
|
|
10
10
|
});
|
|
11
|
-
},
|
|
11
|
+
}, I = {
|
|
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
|
+
}, A = d("mf-connect-campaign", () => {
|
|
21
|
+
const e = b({
|
|
22
22
|
promotion: [],
|
|
23
23
|
voucher: [],
|
|
24
24
|
broadcast: [],
|
|
@@ -27,12 +27,13 @@ const p = () => {
|
|
|
27
27
|
credit: [],
|
|
28
28
|
token: [],
|
|
29
29
|
mission: [],
|
|
30
|
+
grab: [],
|
|
30
31
|
all: []
|
|
31
32
|
});
|
|
32
|
-
|
|
33
|
+
f(() => {
|
|
33
34
|
console.log("🔧 CampaignStore Installed");
|
|
34
35
|
});
|
|
35
|
-
const t =
|
|
36
|
+
const t = s([]), r = s([]), n = s([]);
|
|
36
37
|
async function u(k) {
|
|
37
38
|
const o = await c.readAll({
|
|
38
39
|
limit: 1e3,
|
|
@@ -40,34 +41,39 @@ const p = () => {
|
|
|
40
41
|
sortBy: "_id",
|
|
41
42
|
descending: !0
|
|
42
43
|
});
|
|
43
|
-
Object.keys(e).forEach((
|
|
44
|
-
e[
|
|
45
|
-
}), e.all = o.resources.filter(
|
|
46
|
-
|
|
47
|
-
|
|
44
|
+
Object.keys(e).forEach((a) => {
|
|
45
|
+
e[a] = [];
|
|
46
|
+
}), e.all = o.resources.filter(
|
|
47
|
+
(a) => a.type !== "MEMBERSHIP"
|
|
48
|
+
);
|
|
49
|
+
for (const a of o.resources)
|
|
50
|
+
switch (a.type) {
|
|
48
51
|
case "PROMOTION":
|
|
49
|
-
e.promotion.push(
|
|
52
|
+
e.promotion.push(a);
|
|
50
53
|
break;
|
|
51
54
|
case "VOUCHER":
|
|
52
|
-
e.voucher.push(
|
|
55
|
+
e.voucher.push(a), n.value.push(a);
|
|
53
56
|
break;
|
|
54
57
|
case "BROADCAST":
|
|
55
|
-
["SCHEDULE", "FEEDBACK"].includes(
|
|
58
|
+
["SCHEDULE", "FEEDBACK"].includes(a.event.type) && e.broadcast.push(a);
|
|
56
59
|
break;
|
|
57
60
|
case "POINT":
|
|
58
|
-
e.experience.push(
|
|
61
|
+
e.experience.push(a);
|
|
59
62
|
break;
|
|
60
63
|
case "COIN":
|
|
61
|
-
e.point.push(
|
|
64
|
+
e.point.push(a);
|
|
62
65
|
break;
|
|
63
66
|
case "CREDIT":
|
|
64
|
-
e.credit.push(
|
|
67
|
+
e.credit.push(a);
|
|
65
68
|
break;
|
|
66
69
|
case "GAME":
|
|
67
|
-
e.token.push(
|
|
70
|
+
e.token.push(a);
|
|
68
71
|
break;
|
|
69
72
|
case "MISSION":
|
|
70
|
-
e.mission.push(
|
|
73
|
+
e.mission.push(a);
|
|
74
|
+
break;
|
|
75
|
+
case "GRAB":
|
|
76
|
+
e.grab.push(a);
|
|
71
77
|
break;
|
|
72
78
|
}
|
|
73
79
|
}
|
|
@@ -75,7 +81,7 @@ const p = () => {
|
|
|
75
81
|
r.value = await c.readGroups();
|
|
76
82
|
}
|
|
77
83
|
async function m() {
|
|
78
|
-
t.value = await
|
|
84
|
+
t.value = await I.readAll();
|
|
79
85
|
}
|
|
80
86
|
return {
|
|
81
87
|
// State
|
|
@@ -90,5 +96,5 @@ const p = () => {
|
|
|
90
96
|
};
|
|
91
97
|
});
|
|
92
98
|
export {
|
|
93
|
-
|
|
99
|
+
A as u
|
|
94
100
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { z as E } from "./index-
|
|
1
|
+
import { z as E } from "./index-BViMt33t.js";
|
|
2
2
|
const M = E.enum([
|
|
3
3
|
"VOUCHER",
|
|
4
4
|
"PROMOTION",
|
|
@@ -9,7 +9,8 @@ const M = E.enum([
|
|
|
9
9
|
"COIN",
|
|
10
10
|
"REWARD_POOL",
|
|
11
11
|
"GAME",
|
|
12
|
-
"MISSION"
|
|
12
|
+
"MISSION",
|
|
13
|
+
"GRAB"
|
|
13
14
|
]), O = E.enum([
|
|
14
15
|
"TIME_BASED_PROMOTION",
|
|
15
16
|
"GAME_PROMOTION",
|