@feedmepos/mf-connect 0.1.98-beta.8 → 0.1.98-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/{App-DsB2o1oB.js → App-CKdnfhUE.js} +853 -683
- package/dist/{AuditLogs-BcfgiYnJ.js → AuditLogs-vN-szmrB.js} +16 -13
- package/dist/{Bin-DMr7K8Kj.js → Bin-FIyWozvZ.js} +8 -8
- package/dist/Broadcast-CV_euppF.js +306 -0
- package/dist/CampaignAnalytic-Dlovlsh3.js +1830 -0
- package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-CwGoEBsW.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-Fd_0aPzZ.js} +8 -5
- package/dist/Card-ZgfOZ7sV.js +1086 -0
- package/dist/{Collections-B0uGC2FE.js → Collections-DZmHKbZn.js} +14 -13
- package/dist/Credit-DGsbEvMw.js +286 -0
- package/dist/DateRangeChip.vue_vue_type_script_setup_true_lang-Cj89MnB0.js +53 -0
- package/dist/EditCampaignSheet.vue_vue_type_script_setup_true_lang-C77dXZo-.js +4432 -0
- package/dist/{EffectSheet.vue_vue_type_style_index_0_lang-DJLxGk7W.js → EffectSheet.vue_vue_type_style_index_0_lang-CcIiEV2Z.js} +36 -36
- package/dist/Experience-DlJycdKe.js +288 -0
- package/dist/{FileSaver.min-BlA0oZEC.js → FileSaver.min-DVGF0TBc.js} +1 -1
- package/dist/FilterChip.vue_vue_type_script_setup_true_lang-3bH-tZAm.js +138 -0
- package/dist/Game-q2X_SSup.js +356 -0
- package/dist/GiftCardSetup-BLDm3RfC.js +736 -0
- package/dist/GoalPickerPanel.vue_vue_type_script_setup_true_lang-CBC5AGR-.js +424 -0
- package/dist/Goals-CD8vdUPQ.js +247 -0
- package/dist/{Grab-DmmwrGzk.js → Grab-KDYktOCn.js} +33 -32
- package/dist/{ImageInput.vue_vue_type_script_setup_true_lang-DNtLW0yQ.js → ImageInput.vue_vue_type_script_setup_true_lang-DUi1YY1x.js} +1 -1
- package/dist/{Index-m7l4insz.js → Index-BT4esMkG.js} +10 -10
- package/dist/{LocationPicker.vue_vue_type_script_setup_true_lang-B9sJ-M20.js → LocationPicker.vue_vue_type_script_setup_true_lang-BRCrx3DA.js} +1 -1
- package/dist/{LottieAnimation.vue_vue_type_script_setup_true_lang-Dsg2sWjF.js → LottieAnimation.vue_vue_type_script_setup_true_lang-D3G4alTX.js} +1 -1
- package/dist/LoyaltyDashboard-CzmwuzTw.js +2911 -0
- package/dist/MainLayout-CVYfxfuS.js +143 -0
- package/dist/{Marketing-C9pSIdBU.js → Marketing-sDWWcaL5.js} +7 -6
- package/dist/{MarketingMaterialEdit-BEF2T9LR.js → MarketingMaterialEdit-DHmI38Lo.js} +15 -14
- package/dist/Member-sdcMiTmr.js +654 -0
- package/dist/MemberDetailSheet.vue_vue_type_script_setup_true_lang-DqchRq6h.js +1281 -0
- package/dist/MemberImportHistory-Df_5SiGn.js +187 -0
- package/dist/MemberList-BGoClGZE.js +334 -0
- package/dist/{MemberTransactions-CAut1TQb.js → MemberTransactions-qR38yGk5.js} +1 -1
- package/dist/{MessageInput.vue_vue_type_script_setup_true_lang-1AuHixPC.js → MessageInput.vue_vue_type_script_setup_true_lang-D4yY57Vo.js} +5928 -5644
- package/dist/MetricInfoTooltip.vue_vue_type_script_setup_true_lang-Co9oeOFx.js +40 -0
- package/dist/Mission-DSyqYeI6.js +363 -0
- package/dist/{Overview-DOJj4XvO.js → Overview-BDM8Lxfv.js} +23 -20
- package/dist/Overview-sLhLv5Oa.js +1316 -0
- package/dist/Point-DO5Z5sOL.js +297 -0
- package/dist/Promotion-BXm1Dxlv.js +426 -0
- package/dist/{Queue-55G2gtP5.js → Queue-C4kEj_Bp.js} +16 -13
- package/dist/{Record-DNPI02c6.js → Record-iKUy-nn3.js} +9 -9
- package/dist/Review-D-3-BRON.js +45 -0
- package/dist/ReviewFacebookCallback-SLzE3D7c.js +238 -0
- package/dist/ReviewGoogleCallback-DntrtfGB.js +213 -0
- package/dist/{Reward-CnP8R2pS.js → Reward-CNQS6F2m.js} +28 -28
- package/dist/{RewardGroup.vue_vue_type_script_setup_true_lang-BN71h9IK.js → RewardGroup.vue_vue_type_script_setup_true_lang-D0ZNJilO.js} +26 -23
- package/dist/{RuleGroup.vue_vue_type_script_setup_true_lang-CtB9Ls5-.js → RuleGroup.vue_vue_type_script_setup_true_lang-BgvaMOAJ.js} +198 -186
- package/dist/{Segment-CxiQnnyj.js → Segment-Bi58A7cw.js} +278 -276
- package/dist/{SendCollectionSheet.vue_vue_type_script_setup_true_lang-B1vj5f7T.js → SendCollectionSheet.vue_vue_type_script_setup_true_lang-CxC6ZLZT.js} +45 -42
- package/dist/{SendVoucherSheet.vue_vue_type_script_setup_true_lang-cWx0G3nM.js → SendVoucherSheet.vue_vue_type_script_setup_true_lang-CToVAWKO.js} +4 -4
- package/dist/Setting-CixcOp_l.js +574 -0
- package/dist/{SettingAdvertisements-Vt7w1WN3.js → SettingAdvertisements-DkPNDfxz.js} +12 -12
- package/dist/Settings-bD_DkKI0.js +230 -0
- package/dist/Store-BvnsumDX.js +2615 -0
- package/dist/{StoreRewards-DILeipMG.js → StoreRewards-CKPnV_j3.js} +15 -15
- package/dist/StoreTransactions.vue_vue_type_script_setup_true_lang-k46T2rql.js +1319 -0
- package/dist/{TargetLocationInput.vue_vue_type_script_setup_true_lang-C7lVeybl.js → TargetLocationInput.vue_vue_type_script_setup_true_lang-IknvTIMG.js} +2 -2
- package/dist/{Tier-BAZ1xuKL.js → Tier-CiKGy-Do.js} +2576 -757
- package/dist/{Title-CcNAt47f.js → Title-CNFamvkQ.js} +41 -37
- package/dist/Transaction-C8SnyFML.js +45 -0
- package/dist/{UserRuleGroup.vue_vue_type_script_setup_true_lang-hUjQVZ_U.js → UserRuleGroup.vue_vue_type_script_setup_true_lang-DQrTH7cz.js} +26 -26
- package/dist/Voucher-9Q-GHuvD.js +837 -0
- package/dist/{VoucherEditor.vue_vue_type_script_setup_true_lang-CTQDxc5l.js → VoucherEditor.vue_vue_type_script_setup_true_lang-B-6mF0RH.js} +118 -124
- package/dist/WhatsappAccount-DRKJVs0I.js +325 -0
- package/dist/WhatsappAccountStatusLabel.vue_vue_type_script_setup_true_lang-DGOPGiGH.js +96 -0
- package/dist/WhatsappBot-muUmTIyY.js +441 -0
- package/dist/WhatsappBotSettings-DUjKwiv6.js +136 -0
- package/dist/{ZodTextField.vue_vue_type_script_setup_true_lang-DuRKA4cj.js → ZodTextField.vue_vue_type_script_setup_true_lang-7tSuZ_C3.js} +2 -2
- package/dist/{app-Z-UKRG5V.js → app-CQnX8TXq.js} +50951 -42514
- package/dist/app.js +1 -1
- package/dist/base.export-CwCY41wr.js +75 -0
- package/dist/browser-BSAOEeIM.js +1478 -0
- package/dist/{business-C7EF6cKC.js → business-DGYo03yh.js} +5 -5
- package/dist/campaign-BFhMhQWk.js +400 -0
- package/dist/campaign-BmVMseCM.js +100 -0
- package/dist/{campaign.enum-BNN2gLFY.js → campaign.enum-Dx-Zo68Q.js} +1 -1
- package/dist/campaign.fn-DHdhR9C8.js +776 -0
- package/dist/{collectible.enum-DO9HdJGH.js → collectible.enum-Liy2wH3s.js} +1 -1
- package/dist/collection.fn-CYrQd8Th.js +26 -0
- package/dist/currency-B7wFZjCM.js +7 -0
- package/dist/{duplicateCampaign-2ODeDw3a.js → duplicateCampaign-C62eVSKZ.js} +11 -11
- package/dist/{effect-BcB8IlTI.js → effect-XVC0SyM1.js} +1 -1
- package/dist/{email-addresses-BcTeU4Sh.js → email-addresses-DUWzbknH.js} +209 -201
- package/dist/google-C3S8u0mT.js +4 -0
- package/dist/{helper-BSgrCJRv.js → helper-Bw_KFook.js} +1 -1
- package/dist/index-B88wz0DA.js +53 -0
- package/dist/{index-iMPtFp54.js → index-BHPcqvxB.js} +10 -9
- package/dist/{index-HXiYGO4_.js → index-BL01AAGF.js} +6343 -7693
- package/dist/index-BpcakDLo.js +32438 -0
- package/dist/{index-VlFWaBrg.js → index-Bu0rl1Jm.js} +1 -1
- package/dist/{index-BpI-BI4H.js → index-C0WVYJgp.js} +4 -4
- package/dist/index-C5a9ZaAM.js +151 -0
- package/dist/{index-CsoBDon4.js → index-CRX2b_-n.js} +1590 -1523
- package/dist/{index-CIBPhxlC.js → index-CSaO5mCs.js} +105 -123
- package/dist/{index-hlyg-wxV.js → index-CX2tKi6X.js} +1 -1
- package/dist/index-C_H8jFYf.js +2743 -0
- package/dist/{index-BoYEqLif.js → index-CmJ4UtbH.js} +1517 -263
- package/dist/index-CoaZuwwm.js +172 -0
- package/dist/{index-Bf6jNZit.js → index-CsZ7_Qzf.js} +24 -9
- package/dist/index-D5D85re4.js +902 -0
- package/dist/index-D89ye2yV.js +74 -0
- package/dist/index-DHRVhERM.js +14550 -0
- package/dist/index-DKabvlsg.js +69 -0
- package/dist/{index-CoHWpylO.js → index-DlFjUct2.js} +2140 -2557
- package/dist/index-XCHxkJPE.js +137 -0
- package/dist/index-o2Ga_qaX.js +39 -0
- package/dist/index-z0K48rtR.js +54 -0
- package/dist/{index.esm2017-CM7OnEyP.js → index.esm2017-cOXL--fX.js} +164 -164
- package/dist/{loading-CSXr0Yqz.js → loading-BlfJuA-h.js} +1 -1
- package/dist/{lodash-Bh7XKI-R.js → lodash-CFkpI5Sp.js} +1 -1
- package/dist/member-import-B4ihDPgR.js +188 -0
- package/dist/membership-CyNEU3ld.js +274 -0
- package/dist/{money-BZIST_m9.js → money-B0QV3AtE.js} +1 -1
- package/dist/{number-DXLR2w95.js → number-DJ7EhoTu.js} +1 -1
- package/dist/objectid-DZ8o9_J4.js +145 -0
- package/dist/onboarding-BhMbuIRK.js +131 -0
- package/dist/onboardingSetup-BZMYTun6.js +17 -0
- package/dist/{plugins-4FlbwoES.js → plugins-C7hEP98r.js} +13 -12
- package/dist/remy-Qz_pNsUS.js +13 -0
- package/dist/{reward-DUbl79bZ.js → reward-D4975Y4s.js} +1 -1
- package/dist/{rule-BQUoZ4l_.js → rule-BfSrqM9Z.js} +337 -275
- package/dist/style.css +1 -1
- package/dist/{template-BoiSG7G7.js → template-CTCYJKDu.js} +6 -6
- package/dist/timezone-hBjTK85u.js +20 -0
- package/dist/transaction.fn-1iGyAGZA.js +71 -0
- package/dist/{trigger-D5g5m6tT.js → trigger-CdJikvw9.js} +17 -17
- package/dist/useMarketingMaterialActions-R1rDbIr8.js +96 -0
- package/dist/{usePagination-DHePBBoR.js → usePagination-CqSRHo9z.js} +1 -1
- package/dist/{user-C_ToSo-g.js → user-C8i4TfQt.js} +1 -1
- package/dist/vue-i18n-CiJ_kNkt.js +2365 -0
- package/dist/{xlsx-h4G1C-xj.js → xlsx-DGiPalb9.js} +440 -440
- package/dist/{zod-CgigfJar.js → zod-CKl6yP5K.js} +1 -1
- package/package.json +10 -6
- package/dist/Broadcast-C9akM-TB.js +0 -266
- package/dist/Card-DRkIYs0M.js +0 -910
- package/dist/Credit-V5YA_hGx.js +0 -260
- package/dist/DateRangeChip.vue_vue_type_script_setup_true_lang-eIoPtgO5.js +0 -58
- package/dist/EditCampaignSheet.vue_vue_type_script_setup_true_lang-CYQMXARx.js +0 -3377
- package/dist/Experience-WTWy5yY6.js +0 -259
- package/dist/FilterChip.vue_vue_type_script_setup_true_lang-DaU-9GzO.js +0 -129
- package/dist/Game-BwOfTCW5.js +0 -330
- package/dist/LoyaltyDashboard-CJdhYiea.js +0 -1082
- package/dist/MainLayout-Du5kZOtA.js +0 -41
- package/dist/Member-DUV_vbPI.js +0 -280
- package/dist/MemberList-Ye4nOk-i.js +0 -1601
- package/dist/Mission-BBmCGpt8.js +0 -334
- package/dist/Point-Bzg6hi6o.js +0 -262
- package/dist/Promotion-BMXIp_ef.js +0 -397
- package/dist/Review-CYNPPxYU.js +0 -1141
- package/dist/ReviewFacebookCallback-0SUkKAaC.js +0 -243
- package/dist/ReviewGoogleCallback-BZEzx68n.js +0 -208
- package/dist/SelectItems.vue_vue_type_script_setup_true_lang-C4vohf6c.js +0 -181
- package/dist/Setting-jHAjccod.js +0 -2047
- package/dist/Store-Cu-hKmVa.js +0 -1996
- package/dist/StoreTransactions.vue_vue_type_script_setup_true_lang-CGz6CTWA.js +0 -1130
- package/dist/Transaction-D7DO3dKQ.js +0 -39
- package/dist/Voucher-Cq-n1CaC.js +0 -421
- package/dist/campaign--MjoY1Mn.js +0 -219
- package/dist/campaign-DHBuP4UA.js +0 -277
- package/dist/campaign.fn-Bd34dVnx.js +0 -776
- package/dist/export-CjB7qxZ9.js +0 -97
- package/dist/index-BIAjmMga.js +0 -85
- package/dist/index-Bm0QPucw.js +0 -67
- package/dist/index-Bv4MBLQ5.js +0 -52
- package/dist/index-hbyCVNa7.js +0 -30289
- package/dist/membership-CfredTm3.js +0 -255
- package/dist/objectid-Dg4ZodlT.js +0 -145
- package/dist/useMarketingMaterialActions-B-Jlw2Z9.js +0 -107
- package/dist/vue-i18n-BcYh6_51.js +0 -2365
|
@@ -1,277 +0,0 @@
|
|
|
1
|
-
import "./index-CsoBDon4.js";
|
|
2
|
-
import "./index-hbyCVNa7.js";
|
|
3
|
-
import { h as s } from "./moment-D7p2TMB-.js";
|
|
4
|
-
import "./index-CoHWpylO.js";
|
|
5
|
-
import { e as f } from "./effect-BcB8IlTI.js";
|
|
6
|
-
import { components as l } from "@feedmepos/ui-library";
|
|
7
|
-
import { i as h } from "./index-BoYEqLif.js";
|
|
8
|
-
import { c as O } from "./rule-BQUoZ4l_.js";
|
|
9
|
-
import { u as C } from "./business-C7EF6cKC.js";
|
|
10
|
-
import { C as m } from "./campaign.fn-Bd34dVnx.js";
|
|
11
|
-
import { c as g } from "./string-Gcy5IM_H.js";
|
|
12
|
-
import { i as d } from "./plugins-4FlbwoES.js";
|
|
13
|
-
import { h as p } from "vue";
|
|
14
|
-
import { F as a } from "./campaign.enum-BNN2gLFY.js";
|
|
15
|
-
function E(e) {
|
|
16
|
-
switch (e) {
|
|
17
|
-
case "PROMOTION":
|
|
18
|
-
return "Promotion";
|
|
19
|
-
case "VOUCHER":
|
|
20
|
-
return "Voucher";
|
|
21
|
-
case "CREDIT":
|
|
22
|
-
return "Credit";
|
|
23
|
-
case "POINT":
|
|
24
|
-
return "Experience";
|
|
25
|
-
case "COIN":
|
|
26
|
-
return "Point";
|
|
27
|
-
case "GAME":
|
|
28
|
-
return "Game";
|
|
29
|
-
default:
|
|
30
|
-
return e;
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
const G = {
|
|
34
|
-
formattedType: E
|
|
35
|
-
}, o = d.global.t;
|
|
36
|
-
function I() {
|
|
37
|
-
const e = d.global.locale;
|
|
38
|
-
return typeof e == "string" ? e : e.value;
|
|
39
|
-
}
|
|
40
|
-
function u(e) {
|
|
41
|
-
return new Intl.DateTimeFormat(I(), {
|
|
42
|
-
day: "2-digit",
|
|
43
|
-
month: "short",
|
|
44
|
-
year: "numeric"
|
|
45
|
-
}).format(new Date(e));
|
|
46
|
-
}
|
|
47
|
-
function c(e) {
|
|
48
|
-
return p(
|
|
49
|
-
"div",
|
|
50
|
-
{
|
|
51
|
-
class: `${e.chipClass} gap-4 h-[22px] inline-flex items-center justify-center min-w-min px-8 rounded-md`
|
|
52
|
-
},
|
|
53
|
-
[
|
|
54
|
-
p(l.FmIcon, { size: "sm", name: e.icon, outline: !0 }),
|
|
55
|
-
p("span", { class: "fm-typo-en-body-md-600" }, e.name)
|
|
56
|
-
]
|
|
57
|
-
);
|
|
58
|
-
}
|
|
59
|
-
const H = {
|
|
60
|
-
[a.enum.CREDIT]: {
|
|
61
|
-
chipClass: "!text-fm-color-secondary-plum !bg-[#f2ebfe]",
|
|
62
|
-
icon: "local_activity",
|
|
63
|
-
get name() {
|
|
64
|
-
return o("connect.campaign.common.typeName.CREDIT");
|
|
65
|
-
},
|
|
66
|
-
chip() {
|
|
67
|
-
return c(this);
|
|
68
|
-
}
|
|
69
|
-
},
|
|
70
|
-
[a.enum.PROMOTION]: {
|
|
71
|
-
chipClass: "!text-fm-color-secondary-citrus !bg-fm-color-system-warning-100",
|
|
72
|
-
icon: "loyalty",
|
|
73
|
-
get name() {
|
|
74
|
-
return o("connect.campaign.common.typeName.PROMOTION");
|
|
75
|
-
},
|
|
76
|
-
chip() {
|
|
77
|
-
return c(this);
|
|
78
|
-
}
|
|
79
|
-
},
|
|
80
|
-
[a.enum.VOUCHER]: {
|
|
81
|
-
chipClass: "!text-fm-color-secondary-halite !bg-[#fff0f6]",
|
|
82
|
-
icon: "sell",
|
|
83
|
-
get name() {
|
|
84
|
-
return o("connect.campaign.common.typeName.VOUCHER");
|
|
85
|
-
},
|
|
86
|
-
chip() {
|
|
87
|
-
return c(this);
|
|
88
|
-
}
|
|
89
|
-
},
|
|
90
|
-
[a.enum.POINT]: {
|
|
91
|
-
chipClass: "!text-fm-color-secondary-cocoa !bg-[#fff9e6]",
|
|
92
|
-
icon: "award_star",
|
|
93
|
-
get name() {
|
|
94
|
-
return o("connect.campaign.common.typeName.POINT");
|
|
95
|
-
},
|
|
96
|
-
chip() {
|
|
97
|
-
return c(this);
|
|
98
|
-
}
|
|
99
|
-
},
|
|
100
|
-
[a.enum.BROADCAST]: {
|
|
101
|
-
chipClass: "!text-fm-color-typo-info !bg-fm-color-system-info-100",
|
|
102
|
-
icon: "campaign",
|
|
103
|
-
get name() {
|
|
104
|
-
return o("connect.campaign.common.typeName.BROADCAST");
|
|
105
|
-
},
|
|
106
|
-
chip() {
|
|
107
|
-
return c(this);
|
|
108
|
-
}
|
|
109
|
-
},
|
|
110
|
-
[a.enum.GAME]: {
|
|
111
|
-
chipClass: "!text-fm-color-secondary-mint !bg-fm-color-system-success-100",
|
|
112
|
-
icon: "database",
|
|
113
|
-
get name() {
|
|
114
|
-
return o("connect.campaign.common.typeName.GAME");
|
|
115
|
-
},
|
|
116
|
-
chip() {
|
|
117
|
-
return c(this);
|
|
118
|
-
}
|
|
119
|
-
},
|
|
120
|
-
[a.enum.REWARD_POOL]: {
|
|
121
|
-
chipClass: "!text-fm-color-secondary-tuna !bg-[#e3f4f9]",
|
|
122
|
-
icon: "editor_choice",
|
|
123
|
-
get name() {
|
|
124
|
-
return o("connect.campaign.common.typeName.REWARD_POOL");
|
|
125
|
-
},
|
|
126
|
-
chip() {
|
|
127
|
-
return c(this);
|
|
128
|
-
}
|
|
129
|
-
},
|
|
130
|
-
[a.enum.COIN]: {
|
|
131
|
-
chipClass: "!text-fm-color-system-success-400 !bg-fm-color-system-success-100",
|
|
132
|
-
icon: "monetization_on",
|
|
133
|
-
get name() {
|
|
134
|
-
return o("connect.campaign.common.typeName.COIN");
|
|
135
|
-
},
|
|
136
|
-
chip() {
|
|
137
|
-
return c(this);
|
|
138
|
-
}
|
|
139
|
-
},
|
|
140
|
-
[a.enum.MEMBERSHIP]: {
|
|
141
|
-
chipClass: "",
|
|
142
|
-
icon: "",
|
|
143
|
-
get name() {
|
|
144
|
-
return o("connect.campaign.common.typeName.MEMBERSHIP");
|
|
145
|
-
},
|
|
146
|
-
chip() {
|
|
147
|
-
return c(this);
|
|
148
|
-
}
|
|
149
|
-
},
|
|
150
|
-
[a.enum.MISSION]: {
|
|
151
|
-
chipClass: "!text-fm-color-secondary-tuna !bg-[#e3f4f9]",
|
|
152
|
-
icon: "editor_choice",
|
|
153
|
-
get name() {
|
|
154
|
-
return o("connect.campaign.common.typeName.MISSION");
|
|
155
|
-
},
|
|
156
|
-
chip() {
|
|
157
|
-
return c(this);
|
|
158
|
-
}
|
|
159
|
-
},
|
|
160
|
-
[a.enum.GRAB]: {
|
|
161
|
-
chipClass: "!text-fm-color-secondary-tuna !bg-[#e3f4f9]",
|
|
162
|
-
icon: "editor_choice",
|
|
163
|
-
name: "Grab",
|
|
164
|
-
chip() {
|
|
165
|
-
return c(this);
|
|
166
|
-
}
|
|
167
|
-
}
|
|
168
|
-
};
|
|
169
|
-
function U(e) {
|
|
170
|
-
const t = R(e), r = {
|
|
171
|
-
active: "text-fm-color-typo-success bg-fm-color-system-success-100",
|
|
172
|
-
upcoming: "text-fm-color-typo-info bg-fm-color-system-info-100",
|
|
173
|
-
expired: "text-fm-color-typo-error bg-fm-color-system-error-100"
|
|
174
|
-
};
|
|
175
|
-
return e.type == "VOUCHER" ? p(l.FmChip, {
|
|
176
|
-
class: r[t],
|
|
177
|
-
label: g.title(o(`connect.campaign.common.status.${t}`)),
|
|
178
|
-
compact: !0
|
|
179
|
-
}) : p(l.FmChip, {
|
|
180
|
-
class: r[t],
|
|
181
|
-
label: g.title(o(`connect.campaign.common.status.${t}`)),
|
|
182
|
-
compact: !0
|
|
183
|
-
});
|
|
184
|
-
}
|
|
185
|
-
function B(e) {
|
|
186
|
-
const t = e.timeframeOptions;
|
|
187
|
-
if (!t || !t.start && !t.end)
|
|
188
|
-
return o("connect.campaign.common.always_active");
|
|
189
|
-
if (!t.start && t.end)
|
|
190
|
-
return o("connect.campaign.common.valid_until", {
|
|
191
|
-
date: u(t.end)
|
|
192
|
-
});
|
|
193
|
-
const r = u(t.start), n = t.end ? u(t.end) : o("connect.campaign.common.unlimited");
|
|
194
|
-
return `${r} -> ${n}`;
|
|
195
|
-
}
|
|
196
|
-
function F(e) {
|
|
197
|
-
const { campaign: t } = e;
|
|
198
|
-
function r(n) {
|
|
199
|
-
if (!n || !n.start && !n.end)
|
|
200
|
-
return "connect.campaign.common.always";
|
|
201
|
-
const i = n.start ? u(n.start) : "From campaign creation", y = n.end ? u(n.end) : "Never ends";
|
|
202
|
-
return `${i} - ${y}`;
|
|
203
|
-
}
|
|
204
|
-
return {
|
|
205
|
-
"connect.campaign.common.campaign_name": t.name,
|
|
206
|
-
"connect.campaign.common.campaign_period": r(
|
|
207
|
-
t.timeframeOptions
|
|
208
|
-
),
|
|
209
|
-
get "connect.campaign.common.next_schedule_at"() {
|
|
210
|
-
if ((t == null ? void 0 : t.event.type) != "SCHEDULE" || !t.event.rule || !h(t.event.rule))
|
|
211
|
-
return;
|
|
212
|
-
const n = O(
|
|
213
|
-
t.event.rule.rules.g_schedule
|
|
214
|
-
);
|
|
215
|
-
return n ? s(n).format("ddd, DD MMM YYYY, hh:mmA") : void 0;
|
|
216
|
-
},
|
|
217
|
-
get "connect.campaign.common.discount_type"() {
|
|
218
|
-
if (t.type == "PROMOTION") return f(t.effect);
|
|
219
|
-
if ("configs" in e && e.configs.type == "VOUCHER")
|
|
220
|
-
return f(e.configs.extras.effect);
|
|
221
|
-
},
|
|
222
|
-
get "connect.campaign.common.available_at"() {
|
|
223
|
-
return t.targetLocation ? t.targetLocation.length > 0 ? t.targetLocation.map(
|
|
224
|
-
(n) => C().locationItems.find((i) => i.value == n).label
|
|
225
|
-
).join(",") : "connect.campaign.common.no_location" : "connect.campaign.common.all_locations";
|
|
226
|
-
}
|
|
227
|
-
};
|
|
228
|
-
}
|
|
229
|
-
function R(e) {
|
|
230
|
-
return e.timeframeOptions && e.timeframeOptions.type == "timeframe" ? s().isBetween(
|
|
231
|
-
e.timeframeOptions.start ?? s().subtract(1, "d"),
|
|
232
|
-
e.timeframeOptions.end ?? s().add(1, "d")
|
|
233
|
-
) ? "active" : s().isAfter(e.timeframeOptions.end) ? "expired" : "upcoming" : "active";
|
|
234
|
-
}
|
|
235
|
-
function V(e) {
|
|
236
|
-
var t, r;
|
|
237
|
-
switch (e.event.type) {
|
|
238
|
-
case "BILL_COMPLETED":
|
|
239
|
-
const n = `Spend to get ${m.formattedType(e.type)}`;
|
|
240
|
-
switch (e.type) {
|
|
241
|
-
case "POINT":
|
|
242
|
-
case "CREDIT":
|
|
243
|
-
case "COIN":
|
|
244
|
-
return e.earningOption.type == "FIXED" ? `Spend to get ${e.earningOption.amount} ${m.formattedType(e.type)}` : `Every ${e.earningOption.every} amount spent get ${e.earningOption.amount} ${m.formattedType(e.type)}`;
|
|
245
|
-
case "VOUCHER":
|
|
246
|
-
const i = (r = (t = e == null ? void 0 : e.pf_collectible) == null ? void 0 : t.extras) == null ? void 0 : r.effect;
|
|
247
|
-
return i ? `${n} - ${f(i)}` : n;
|
|
248
|
-
default:
|
|
249
|
-
return n;
|
|
250
|
-
}
|
|
251
|
-
case "FEEDBACK":
|
|
252
|
-
return `Give feedback to receive ${m.formattedType(e.type)}`;
|
|
253
|
-
case "SCHEDULE":
|
|
254
|
-
return `Receive ${m.formattedType(e.type)} on scheduled time`;
|
|
255
|
-
case "SIMPLE_CLAIM":
|
|
256
|
-
return "Simple claim voucher";
|
|
257
|
-
case "TIER_UPGRADED":
|
|
258
|
-
return `Receive ${m.formattedType(e.type)} when member tier upgraded`;
|
|
259
|
-
case "MEMBERSHIP_JOINED":
|
|
260
|
-
return `Receive ${m.formattedType(e.type)} when member joined`;
|
|
261
|
-
case "MAKING_ORDER":
|
|
262
|
-
return e.type !== "PROMOTION" ? void 0 : f(e.effect);
|
|
263
|
-
default:
|
|
264
|
-
throw new Error(
|
|
265
|
-
`Not implemented ${JSON.stringify({ cause: e.event.type })}`
|
|
266
|
-
);
|
|
267
|
-
}
|
|
268
|
-
}
|
|
269
|
-
export {
|
|
270
|
-
H as C,
|
|
271
|
-
R as a,
|
|
272
|
-
U as b,
|
|
273
|
-
V as c,
|
|
274
|
-
G as d,
|
|
275
|
-
F as e,
|
|
276
|
-
B as g
|
|
277
|
-
};
|