@feedmepos/mf-connect 0.1.111-prod → 0.1.113-beta.3
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/README.md +66 -1
- package/dist/{App-D3pYl3WL.js → App-YfpYV7C0.js} +738 -689
- package/dist/AuditLogs-kD0_HO_p.js +2016 -0
- package/dist/{Bin-DOZqpbYH.js → Bin-Dr-Xp3pn.js} +8 -8
- package/dist/Broadcast-CEbHu2xA.js +306 -0
- package/dist/{CampaignAnalytic-cFKvCgxX.js → CampaignAnalytic-DDiGxPwp.js} +7 -7
- package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-B0eVEubS.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-Cc_Yho9-.js} +49 -32
- package/dist/Card-BUnwg0eM.js +1086 -0
- package/dist/{Collections-9QK5hbLo.js → Collections-CKyBkKq2.js} +197 -185
- package/dist/{Credit-8Ouy4O9a.js → Credit-CJOXWLV1.js} +21 -20
- package/dist/{DateRangeChip.vue_vue_type_script_setup_true_lang-CJA-yunY.js → DateRangeChip.vue_vue_type_script_setup_true_lang-DmEBLeNI.js} +1 -1
- package/dist/EditCampaignSheet.vue_vue_type_script_setup_true_lang-Ce5R4Un6.js +4442 -0
- package/dist/{EffectSheet.vue_vue_type_style_index_0_lang-Dv0q3B8m.js → EffectSheet.vue_vue_type_style_index_0_lang-CMFmlqfF.js} +32 -32
- package/dist/{Experience-DMh4hR1S.js → Experience-C_Am5CTY.js} +32 -31
- package/dist/{FileSaver.min-Bx9mdUgJ.js → FileSaver.min-CueAGbjq.js} +1 -1
- package/dist/{Game-CL0TZvg1.js → Game-B6GO_LVU.js} +19 -18
- package/dist/GiftCardSetup-CVLDDpI2.js +748 -0
- package/dist/{GoalPickerPanel.vue_vue_type_script_setup_true_lang-Bz5kIfoM.js → GoalPickerPanel.vue_vue_type_script_setup_true_lang-isfGhKO1.js} +7 -7
- package/dist/{Goals-Dz5Vp-lj.js → Goals-BX-sMV2V.js} +4 -4
- package/dist/Grab-Bh335Srh.js +301 -0
- package/dist/{ImageInput.vue_vue_type_script_setup_true_lang-CaPDI3vY.js → ImageInput.vue_vue_type_script_setup_true_lang-srSgUY3e.js} +1 -1
- package/dist/{Index-kH8aAegB.js → Index-CyXRbwcm.js} +10 -10
- package/dist/{LocationPicker.vue_vue_type_script_setup_true_lang-CFrgC3Ka.js → LocationPicker.vue_vue_type_script_setup_true_lang-S3GB2Ems.js} +1 -1
- package/dist/{LottieAnimation.vue_vue_type_script_setup_true_lang-DPIFLdBc.js → LottieAnimation.vue_vue_type_script_setup_true_lang-ZlWHXwXZ.js} +1 -1
- package/dist/{LoyaltyDashboard-BBxEoWol.js → LoyaltyDashboard-DrTq8oiu.js} +15 -15
- package/dist/MainLayout-KbKkpX5n.js +4 -0
- package/dist/{MainLayout-2BLwDyHQ.js → MainLayout.vue_vue_type_script_setup_true_lang-2D5ate_s.js} +5 -4
- package/dist/{Marketing-C4OnSV-c.js → Marketing-DQT1MWQg.js} +4 -4
- package/dist/MarketingMaterialEdit-fSqr53-M.js +1037 -0
- package/dist/{Member-CT9WwxP0.js → Member-DwDUCzlv.js} +7 -7
- package/dist/{MemberDetailSheet.vue_vue_type_script_setup_true_lang-C7yznkUn.js → MemberDetailSheet.vue_vue_type_script_setup_true_lang-DaQ4Lw8f.js} +43 -49
- package/dist/{MemberImportHistory-B__BFID7.js → MemberImportHistory-D4ezvJGZ.js} +7 -7
- package/dist/{MemberList-DgLI4wty.js → MemberList-DFieV7Qk.js} +103 -105
- package/dist/{MemberTransactions-UFx_DZYe.js → MemberTransactions-BPOXyAuC.js} +1 -1
- package/dist/{MessageInput.vue_vue_type_script_setup_true_lang-BFjZA8Y6.js → MessageInput.vue_vue_type_script_setup_true_lang-DhfsgDd4.js} +4821 -4690
- package/dist/{MetricInfoTooltip.vue_vue_type_script_setup_true_lang-Df9bxbUl.js → MetricInfoTooltip.vue_vue_type_script_setup_true_lang-CX8bk_IQ.js} +1 -1
- package/dist/{Mission-CawzGzDu.js → Mission-nErb05Es.js} +22 -21
- package/dist/{Overview-D19oSo24.js → Overview-7G31a7B-.js} +58 -56
- package/dist/{Overview-CAtTlEVa.js → Overview-DuJr_hAg.js} +145 -144
- package/dist/{Point-BPAGmKAj.js → Point-PWDLemD4.js} +22 -21
- package/dist/{Promotion-B0Uf9vjL.js → Promotion-N80Tj8M6.js} +137 -131
- package/dist/{Queue-CJEAFss_.js → Queue-M7ZpgiMT.js} +49 -47
- package/dist/{Record-s6hSQG2P.js → Record-NhxrdvWv.js} +9 -9
- package/dist/{Review-DhNCbAOm.js → Review-DiAaAzIG.js} +2 -2
- package/dist/ReviewFacebookCallback-JdyxFbNl.js +225 -0
- package/dist/{ReviewGoogleCallback-D8ENWii2.js → ReviewGoogleCallback-BXbI3Bsh.js} +5 -5
- package/dist/{Reward-BT00QsXL.js → Reward-yTaOqOT8.js} +29 -29
- package/dist/{RewardGroup.vue_vue_type_script_setup_true_lang-DaZDGhbm.js → RewardGroup.vue_vue_type_script_setup_true_lang-BWPfjZ9K.js} +26 -24
- package/dist/RuleGroup.vue_vue_type_script_setup_true_lang-Cz2H9MKe.js +1923 -0
- package/dist/{Segment-BuGhX9zg.js → Segment-DE9Bcd6R.js} +287 -287
- package/dist/{SendCollectionSheet.vue_vue_type_script_setup_true_lang-DB718_4P.js → SendCollectionSheet.vue_vue_type_script_setup_true_lang-pmv0cb4J.js} +37 -35
- package/dist/{SendVoucherSheet.vue_vue_type_script_setup_true_lang-CkgXxy0C.js → SendVoucherSheet.vue_vue_type_script_setup_true_lang-BeWwkTix.js} +4 -4
- package/dist/Setting-C0JAxIRT.js +574 -0
- package/dist/{SettingAdvertisements-aqFErKAr.js → SettingAdvertisements-DxueyKU8.js} +12 -12
- package/dist/Settings-Cs46AcxZ.js +286 -0
- package/dist/Store-DqQae9nE.js +2629 -0
- package/dist/{StoreRewards-D2pTL2oA.js → StoreRewards-JxSUsOzJ.js} +15 -15
- package/dist/StoreTransactions.vue_vue_type_script_setup_true_lang-qgrBtUNX.js +1319 -0
- package/dist/TargetLocationInput.vue_vue_type_script_setup_true_lang-D7ifzgsI.js +7007 -0
- package/dist/{Tier-OyE8oH2r.js → Tier-DWhgWush.js} +2576 -686
- package/dist/{Title-DAl7CKL_.js → Title-DUNeMdz8.js} +104 -101
- package/dist/Transaction-DAv-LVhC.js +45 -0
- package/dist/{UserRuleGroup.vue_vue_type_script_setup_true_lang-C0yHxQVr.js → UserRuleGroup.vue_vue_type_script_setup_true_lang-Cih-9IoW.js} +26 -26
- package/dist/{Voucher-D2QGWSxs.js → Voucher-uLTq9RSK.js} +19 -19
- package/dist/{VoucherEditor.vue_vue_type_script_setup_true_lang-Bt2YB745.js → VoucherEditor.vue_vue_type_script_setup_true_lang-BevVL_Kx.js} +16 -16
- package/dist/WhatsappAccount-BpXQ4q0P.js +158 -0
- package/dist/WhatsappAccountStatusLabel.vue_vue_type_script_setup_true_lang-EssnbsgT.js +39 -0
- package/dist/WhatsappBot-DB4NRZMd.js +589 -0
- package/dist/WhatsappBotLogs-DDN4H_bv.js +372 -0
- package/dist/WhatsappBotSettings-Bkv1VNwF.js +387 -0
- package/dist/WhatsappBotTickets-DAKgnE6T.js +162 -0
- package/dist/WhatsappLayout-DSnq84Uo.js +21 -0
- package/dist/WhatsappNotificationGroupDialog.vue_vue_type_script_setup_true_lang-1BvxPD-k.js +195 -0
- package/dist/{ZodTextField.vue_vue_type_script_setup_true_lang-BzCL64Jo.js → ZodTextField.vue_vue_type_script_setup_true_lang-CR-F0x1r.js} +2 -2
- package/dist/{app-QxosLNkH.js → app-Devzv4gO.js} +12854 -9732
- package/dist/app.js +4 -3
- package/dist/base.export-CCSMkvAm.js +75 -0
- package/dist/browser-BSAOEeIM.js +1478 -0
- package/dist/{business-CbqG6NXr.js → business-BjAmUqNA.js} +1 -1
- package/dist/campaign-C5c47GqT.js +400 -0
- package/dist/{campaign-Rj7oDBnN.js → campaign-CTe-T5Gd.js} +31 -25
- package/dist/{campaign.enum-B7vdNYKd.js → campaign.enum-Dx-Zo68Q.js} +3 -2
- package/dist/campaign.fn-DxAO8A5b.js +776 -0
- package/dist/{collectible.enum-BsQseg7-.js → collectible.enum-Liy2wH3s.js} +1 -1
- package/dist/{collection.fn-EbUIyB1X.js → collection.fn-C9l-OtNt.js} +2 -2
- package/dist/currency-mwm4AWXK.js +7 -0
- package/dist/duplicateCampaign-BbC4AwQ1.js +51 -0
- package/dist/{effect-B_91OlcX.js → effect-D8ba9z0K.js} +1 -1
- package/dist/{email-addresses-DXnYZG-e.js → email-addresses-BR5J6_Jz.js} +2 -2
- package/dist/feature-flag-C-5NdFW8.js +868 -0
- package/dist/feature-flag-CNcU4_3r.js +50 -0
- package/dist/google-BQK68wbe.js +5 -0
- package/dist/{helper-_uhiXya1.js → helper-D9cEaMIv.js} +1 -1
- package/dist/index-0H82-X0n.js +80 -0
- package/dist/{index-Cp7oHMm3.js → index-B1jP-_Z_.js} +691 -229
- package/dist/{index-BZ2b0Pk6.js → index-B7HH6vKF.js} +8 -7
- package/dist/{index-tbo0pMIu.js → index-BFaZp6Et.js} +29 -15
- package/dist/index-B_gzo75q.js +53 -0
- package/dist/{index-DlQJZNwD.js → index-BfoDdVQS.js} +22 -6
- package/dist/{index-CDm0BWa3.js → index-BvY2hQac.js} +1 -1
- package/dist/index-Byg4ztr-.js +902 -0
- package/dist/{index-BWgc2-Qz.js → index-CZfqqrVu.js} +4 -3
- package/dist/index-C_H8jFYf.js +2743 -0
- package/dist/{index-xuFTeVrb.js → index-CmzjBrHR.js} +11 -9
- package/dist/{index-BBihP1s2.js → index-Ct6YjTIW.js} +2 -2
- package/dist/{index-Df4l6y-S.js → index-D34iYRdc.js} +1900 -2121
- package/dist/{index-DuhRCI0L.js → index-D4k1G2oE.js} +4 -4
- package/dist/{index-uuNGb1nv.js → index-DnepoNWn.js} +8028 -10766
- package/dist/index-Drmh0FT-.js +14571 -0
- package/dist/{index-DlGnYR5y.js → index-DtcUCknS.js} +2700 -2613
- package/dist/{index-C_1iqF1Q.js → index-DwTBiVts.js} +1 -1
- package/dist/{index-CWUmrVo_.js → index-OvnHt5x5.js} +800 -793
- package/dist/index-RwNlbTO8.js +115 -0
- package/dist/{index-CzYxnDWP.js → index-VqAbYyHH.js} +11 -6
- package/dist/{index-DzBzClHP.js → index-yGSko6Eq.js} +1 -1
- package/dist/{index.esm2017-B72iWwk_.js → index.esm2017-DLb2VyCT.js} +156 -156
- package/dist/{loading-rIhCiB_S.js → loading-CUNk5u1d.js} +1 -1
- package/dist/{lodash-B6fOjfjd.js → lodash-BJXravls.js} +1 -1
- package/dist/{member-import-CbHn7zss.js → member-import-DjYoddBi.js} +6 -5
- package/dist/{membership-DkJN7jyQ.js → membership-ByJUFP8f.js} +3 -3
- package/dist/{money-ChbDx6Nq.js → money-Bf2IEMJJ.js} +1 -1
- package/dist/{number-9TEd27Ku.js → number-CRBHrRUL.js} +1 -1
- package/dist/objectid-58gyOvdR.js +145 -0
- package/dist/{onboarding-BN3MKVRs.js → onboarding-CQ3lw7eY.js} +25 -25
- package/dist/{onboardingSetup-D9xhdgS3.js → onboardingSetup-CsdZKGFk.js} +2 -2
- package/dist/{plugins-CCibSJZa.js → plugins-iTZLbJGy.js} +3 -3
- package/dist/{MarketingMaterialEdit-DFhpsI2-.js → remy-icon-BhUGu2NI.js} +2 -1031
- package/dist/{reward-DjasF-NL.js → reward-DTN6JpEd.js} +1 -1
- package/dist/{rule-DqeChj0e.js → rule-BYACNQOL.js} +572 -492
- package/dist/style.css +1 -1
- package/dist/template--Vr0PCjB.js +188 -0
- package/dist/{timezone-D0nC1LDx.js → timezone-DwzjOED-.js} +1 -1
- package/dist/{transaction.fn-BkF4Ad2z.js → transaction.fn-DapYe3n7.js} +2 -2
- package/dist/{trigger-CxpXoQJO.js → trigger-D8r76yb0.js} +18 -18
- package/dist/{useMarketingMaterialActions-p0-fyMkm.js → useMarketingMaterialActions-CdMmibPE.js} +3 -3
- package/dist/{usePagination-CrC-1v4L.js → usePagination-BRcQJkO1.js} +1 -1
- package/dist/useWhatsappAccount-BOJ8fz84.js +62 -0
- package/dist/{user-CrylHgF1.js → user-vBZFKqXQ.js} +1 -1
- package/dist/vue-i18n-Cw6fF11e.js +2365 -0
- package/dist/{xlsx-CJNYF7-l.js → xlsx-Muy_Rjhk.js} +440 -440
- package/dist/{zod-Dzn9S95S.js → zod-CCPTOeUz.js} +1 -1
- package/package.json +12 -3
- package/dist/Broadcast-DZ4SP99P.js +0 -271
- package/dist/Card-B5ni027Q.js +0 -911
- package/dist/EditCampaignSheet.vue_vue_type_script_setup_true_lang-BYxswo-Z.js +0 -2430
- package/dist/ReviewFacebookCallback-DeZqcpJo.js +0 -238
- package/dist/RuleGroup.vue_vue_type_script_setup_true_lang-BvxbKSkB.js +0 -1882
- package/dist/Setting-BOWPp05N.js +0 -2036
- package/dist/Settings-DekXvE-R.js +0 -179
- package/dist/Store-DpVlMuau.js +0 -1998
- package/dist/StoreTransactions.vue_vue_type_script_setup_true_lang-CNDv6eiZ.js +0 -1009
- package/dist/TargetLocationInput.vue_vue_type_script_setup_true_lang-C-C3RSeW.js +0 -142
- package/dist/Transaction-mvKzTgLx.js +0 -39
- package/dist/campaign-Co4Lq-Wz.js +0 -228
- package/dist/campaign.fn-DolD3lYJ.js +0 -776
- package/dist/export-D0hWZSfH.js +0 -97
- package/dist/google-C3S8u0mT.js +0 -4
- package/dist/index-aCuOvuEC.js +0 -45
- package/dist/objectid-CGol1NeA.js +0 -145
- package/dist/rule-builder-DT854ycI.js +0 -102
- package/dist/template-BeCVA0-N.js +0 -236
- package/dist/vue-i18n-BjtkXdmG.js +0 -2365
|
@@ -1,142 +0,0 @@
|
|
|
1
|
-
import { defineComponent as N, ref as U, computed as w, watch as M, resolveComponent as v, openBlock as a, createElementBlock as i, Fragment as p, toDisplayString as F, createCommentVNode as T, createElementVNode as j, createVNode as h, unref as n, renderList as S, createBlock as k, isRef as $, withCtx as C } from "vue";
|
|
2
|
-
import { u as q } from "./business-CbqG6NXr.js";
|
|
3
|
-
import { u as D } from "./vue-i18n-BjtkXdmG.js";
|
|
4
|
-
function K(l, s, o) {
|
|
5
|
-
return l.some(
|
|
6
|
-
o instanceof Function ? o : (u) => u === s
|
|
7
|
-
) || l.push(s), l;
|
|
8
|
-
}
|
|
9
|
-
function O(l, s, o) {
|
|
10
|
-
return l.filter(
|
|
11
|
-
o instanceof Function ? (u) => !o(u) : (u) => u !== s
|
|
12
|
-
);
|
|
13
|
-
}
|
|
14
|
-
const R = {
|
|
15
|
-
key: 0,
|
|
16
|
-
class: "fm-typo-en-body-lg-400"
|
|
17
|
-
}, z = {
|
|
18
|
-
key: 1,
|
|
19
|
-
class: "space-y-4"
|
|
20
|
-
}, A = { key: 0 }, G = { key: 1 }, H = { key: 2 }, W = /* @__PURE__ */ N({
|
|
21
|
-
__name: "TargetLocationInput",
|
|
22
|
-
props: {
|
|
23
|
-
label: {
|
|
24
|
-
type: String
|
|
25
|
-
},
|
|
26
|
-
type: {
|
|
27
|
-
type: String,
|
|
28
|
-
default: "select"
|
|
29
|
-
},
|
|
30
|
-
modelValue: {
|
|
31
|
-
type: Object,
|
|
32
|
-
required: !0
|
|
33
|
-
}
|
|
34
|
-
},
|
|
35
|
-
emits: ["update:model-value"],
|
|
36
|
-
setup(l, { emit: s }) {
|
|
37
|
-
const o = q(), { t: u } = D(), c = l, r = U(""), B = w(() => o.locations.filter(
|
|
38
|
-
(d) => {
|
|
39
|
-
var t;
|
|
40
|
-
return d.name.toLowerCase().includes(r.value.toLowerCase()) || ((t = d == null ? void 0 : d.code) == null ? void 0 : t.toLowerCase().includes(r.value.toLowerCase()));
|
|
41
|
-
}
|
|
42
|
-
)), b = s;
|
|
43
|
-
function L(d, t) {
|
|
44
|
-
const m = d ? K(c.modelValue || [], t.toString()) : O(
|
|
45
|
-
c.modelValue || o.locations.map((g) => g._id.toString()),
|
|
46
|
-
t.toString()
|
|
47
|
-
);
|
|
48
|
-
return b("update:model-value", m);
|
|
49
|
-
}
|
|
50
|
-
const V = U(!1), I = w(() => {
|
|
51
|
-
var m, g;
|
|
52
|
-
const t = ((m = c.modelValue) == null ? void 0 : m.slice(0, 5).map((f) => {
|
|
53
|
-
var y;
|
|
54
|
-
return ((y = o.locationById(f)) == null ? void 0 : y.name) || f;
|
|
55
|
-
})) || [];
|
|
56
|
-
return c.modelValue && ((g = c.modelValue) == null ? void 0 : g.length) > 5 && t.push(`+${c.modelValue.length - 5} more`), t;
|
|
57
|
-
});
|
|
58
|
-
return M(V, (d) => {
|
|
59
|
-
d && (r.value = "");
|
|
60
|
-
}), (d, t) => {
|
|
61
|
-
const m = v("FmCheckbox"), g = v("FmChip"), f = v("FmField"), y = v("FmTextField"), E = v("FmMenu");
|
|
62
|
-
return a(), i(p, null, [
|
|
63
|
-
l.label ? (a(), i("div", R, F(l.label), 1)) : T("", !0),
|
|
64
|
-
l.type === "checkbox" ? (a(), i("div", z, [
|
|
65
|
-
j("div", null, [
|
|
66
|
-
h(m, {
|
|
67
|
-
value: null,
|
|
68
|
-
indeterminate: l.modelValue != null && l.modelValue.length > 0 && l.modelValue.length < n(o).locations.length,
|
|
69
|
-
label: n(u)("connect.setting.location.allLocations"),
|
|
70
|
-
"model-value": l.modelValue == null || l.modelValue.length === n(o).locations.length,
|
|
71
|
-
"onUpdate:modelValue": t[0] || (t[0] = (e) => b("update:model-value", e ? null : []))
|
|
72
|
-
}, null, 8, ["indeterminate", "label", "model-value"])
|
|
73
|
-
]),
|
|
74
|
-
(a(!0), i(p, null, S(n(o).locations, (e) => (a(), i("div", {
|
|
75
|
-
key: e._id.toString()
|
|
76
|
-
}, [
|
|
77
|
-
h(m, {
|
|
78
|
-
value: e._id.toString(),
|
|
79
|
-
label: `${e.code ? `${e.code} - ` : ""} ${e.name}`,
|
|
80
|
-
"model-value": !l.modelValue || l.modelValue.includes(e._id.toString()),
|
|
81
|
-
"onUpdate:modelValue": (x) => L(x, e._id.toString())
|
|
82
|
-
}, null, 8, ["value", "label", "model-value", "onUpdate:modelValue"])
|
|
83
|
-
]))), 128))
|
|
84
|
-
])) : (a(), k(E, {
|
|
85
|
-
key: 2,
|
|
86
|
-
modelValue: n(V),
|
|
87
|
-
"onUpdate:modelValue": t[3] || (t[3] = (e) => $(V) ? V.value = e : null),
|
|
88
|
-
onMenuChanged: t[4] || (t[4] = (e) => V.value = e),
|
|
89
|
-
placement: "top-end"
|
|
90
|
-
}, {
|
|
91
|
-
"menu-button": C(() => [
|
|
92
|
-
h(f, {
|
|
93
|
-
"append-icon": n(V) ? "expand_more" : "expand_less",
|
|
94
|
-
class: "!h-auto"
|
|
95
|
-
}, {
|
|
96
|
-
default: C(() => [
|
|
97
|
-
!l.modelValue || l.modelValue.length == n(o).locations.length ? (a(), i("div", A, F(n(u)("connect.setting.location.allLocations")), 1)) : l.modelValue.length ? (a(), i("div", H, [
|
|
98
|
-
(a(!0), i(p, null, S(n(I), (e) => (a(), k(g, {
|
|
99
|
-
key: e,
|
|
100
|
-
label: e,
|
|
101
|
-
class: "max-w-[130px] text-ellipsis"
|
|
102
|
-
}, null, 8, ["label"]))), 128))
|
|
103
|
-
])) : (a(), i("div", G, F(n(u)("connect.setting.location.noLocations")), 1))
|
|
104
|
-
]),
|
|
105
|
-
_: 1
|
|
106
|
-
}, 8, ["append-icon"])
|
|
107
|
-
]),
|
|
108
|
-
default: C(() => [
|
|
109
|
-
h(y, {
|
|
110
|
-
modelValue: n(r),
|
|
111
|
-
"onUpdate:modelValue": t[1] || (t[1] = (e) => $(r) ? r.value = e : null),
|
|
112
|
-
placeholder: n(u)("connect.setting.location.searchLocations"),
|
|
113
|
-
class: "my-8"
|
|
114
|
-
}, null, 8, ["modelValue", "placeholder"]),
|
|
115
|
-
h(m, {
|
|
116
|
-
class: "my-8",
|
|
117
|
-
value: null,
|
|
118
|
-
indeterminate: l.modelValue != null && l.modelValue.length > 0 && l.modelValue.length < n(o).locations.length,
|
|
119
|
-
label: n(u)("connect.setting.location.allLocations"),
|
|
120
|
-
"model-value": l.modelValue == null || l.modelValue.length === n(o).locations.length,
|
|
121
|
-
"onUpdate:modelValue": t[2] || (t[2] = (e) => b("update:model-value", e ? null : []))
|
|
122
|
-
}, null, 8, ["indeterminate", "label", "model-value"]),
|
|
123
|
-
(a(!0), i(p, null, S(n(B), (e) => (a(), k(m, {
|
|
124
|
-
class: "my-8",
|
|
125
|
-
key: e._id.toString(),
|
|
126
|
-
value: e._id.toString(),
|
|
127
|
-
label: `${e.code ? `${e.code} - ` : ""} ${e.name}`,
|
|
128
|
-
"model-value": !l.modelValue || l.modelValue.includes(e._id.toString()),
|
|
129
|
-
"onUpdate:modelValue": (x) => L(x, e._id.toString())
|
|
130
|
-
}, null, 8, ["value", "label", "model-value", "onUpdate:modelValue"]))), 128))
|
|
131
|
-
]),
|
|
132
|
-
_: 1
|
|
133
|
-
}, 8, ["modelValue"]))
|
|
134
|
-
], 64);
|
|
135
|
-
};
|
|
136
|
-
}
|
|
137
|
-
});
|
|
138
|
-
export {
|
|
139
|
-
W as _,
|
|
140
|
-
K as p,
|
|
141
|
-
O as r
|
|
142
|
-
};
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import { defineComponent as d, ref as f, resolveComponent as s, openBlock as t, createElementBlock as v, Fragment as b, createVNode as r, unref as o, createElementVNode as k, createBlock as l, KeepAlive as x, resolveDynamicComponent as m, createCommentVNode as F } from "vue";
|
|
2
|
-
import { _ as g, a as y } from "./StoreTransactions.vue_vue_type_script_setup_true_lang-CNDv6eiZ.js";
|
|
3
|
-
import { u as C } from "./vue-i18n-BjtkXdmG.js";
|
|
4
|
-
const T = { class: "px-24 flex flex-col gap-y-32 pb-24" }, P = /* @__PURE__ */ d({
|
|
5
|
-
__name: "Transaction",
|
|
6
|
-
setup(V) {
|
|
7
|
-
const { t: n } = C(), a = [
|
|
8
|
-
{
|
|
9
|
-
label: n("connect.transaction.tabs.collection"),
|
|
10
|
-
value: "collection"
|
|
11
|
-
},
|
|
12
|
-
{
|
|
13
|
-
label: n("connect.transaction.tabs.store"),
|
|
14
|
-
value: "store"
|
|
15
|
-
}
|
|
16
|
-
], e = f(a[0]);
|
|
17
|
-
return (B, c) => {
|
|
18
|
-
const i = s("FmPageHead"), u = s("FmTabs");
|
|
19
|
-
return t(), v(b, null, [
|
|
20
|
-
r(i, {
|
|
21
|
-
title: o(n)("connect.transaction.title")
|
|
22
|
-
}, null, 8, ["title"]),
|
|
23
|
-
k("div", T, [
|
|
24
|
-
r(u, {
|
|
25
|
-
"model-value": o(e).value,
|
|
26
|
-
items: a,
|
|
27
|
-
"onUpdate:modelValue": c[0] || (c[0] = (p) => e.value = a.find((_) => _.value === p))
|
|
28
|
-
}, null, 8, ["model-value"]),
|
|
29
|
-
(t(), l(x, null, [
|
|
30
|
-
o(e).value == "collection" ? (t(), l(m(g), { key: 0 })) : o(e).value == "store" ? (t(), l(m(y), { key: 1 })) : F("", !0)
|
|
31
|
-
], 1024))
|
|
32
|
-
])
|
|
33
|
-
], 64);
|
|
34
|
-
};
|
|
35
|
-
}
|
|
36
|
-
});
|
|
37
|
-
export {
|
|
38
|
-
P as default
|
|
39
|
-
};
|
|
@@ -1,228 +0,0 @@
|
|
|
1
|
-
import { h as r } from "./moment-D7p2TMB-.js";
|
|
2
|
-
import "./index-Df4l6y-S.js";
|
|
3
|
-
import { e as p } from "./effect-B_91OlcX.js";
|
|
4
|
-
import { components as u } from "@feedmepos/ui-library";
|
|
5
|
-
import { i as g } from "./rule-builder-DT854ycI.js";
|
|
6
|
-
import { c as y } from "./rule-DqeChj0e.js";
|
|
7
|
-
import { u as d } from "./business-CbqG6NXr.js";
|
|
8
|
-
import { C as m } from "./campaign.fn-DolD3lYJ.js";
|
|
9
|
-
import { c as f } from "./string-Gcy5IM_H.js";
|
|
10
|
-
import { i as o } from "./plugins-CCibSJZa.js";
|
|
11
|
-
import { h as s } from "vue";
|
|
12
|
-
import { F as a } from "./campaign.enum-B7vdNYKd.js";
|
|
13
|
-
function c(e) {
|
|
14
|
-
return s(
|
|
15
|
-
"div",
|
|
16
|
-
{
|
|
17
|
-
class: `${e.chipClass} gap-4 h-[22px] inline-flex items-center justify-center min-w-min px-8 rounded-md`
|
|
18
|
-
},
|
|
19
|
-
[
|
|
20
|
-
s(u.FmIcon, { size: "sm", name: e.icon, outline: !0 }),
|
|
21
|
-
s("span", { class: "fm-typo-en-body-md-600" }, e.name)
|
|
22
|
-
]
|
|
23
|
-
);
|
|
24
|
-
}
|
|
25
|
-
const D = {
|
|
26
|
-
[a.enum.CREDIT]: {
|
|
27
|
-
chipClass: "!text-fm-color-secondary-plum !bg-[#f2ebfe]",
|
|
28
|
-
icon: "local_activity",
|
|
29
|
-
get name() {
|
|
30
|
-
return o.global.t("connect.campaign.common.typeName.CREDIT");
|
|
31
|
-
},
|
|
32
|
-
chip() {
|
|
33
|
-
return c(this);
|
|
34
|
-
}
|
|
35
|
-
},
|
|
36
|
-
[a.enum.PROMOTION]: {
|
|
37
|
-
chipClass: "!text-fm-color-secondary-citrus !bg-fm-color-system-warning-100",
|
|
38
|
-
icon: "loyalty",
|
|
39
|
-
get name() {
|
|
40
|
-
return o.global.t("connect.campaign.common.typeName.PROMOTION");
|
|
41
|
-
},
|
|
42
|
-
chip() {
|
|
43
|
-
return c(this);
|
|
44
|
-
}
|
|
45
|
-
},
|
|
46
|
-
[a.enum.VOUCHER]: {
|
|
47
|
-
chipClass: "!text-fm-color-secondary-halite !bg-[#fff0f6]",
|
|
48
|
-
icon: "sell",
|
|
49
|
-
get name() {
|
|
50
|
-
return o.global.t("connect.campaign.common.typeName.VOUCHER");
|
|
51
|
-
},
|
|
52
|
-
chip() {
|
|
53
|
-
return c(this);
|
|
54
|
-
}
|
|
55
|
-
},
|
|
56
|
-
[a.enum.POINT]: {
|
|
57
|
-
chipClass: "!text-fm-color-secondary-cocoa !bg-[#fff9e6]",
|
|
58
|
-
icon: "award_star",
|
|
59
|
-
get name() {
|
|
60
|
-
return o.global.t("connect.campaign.common.typeName.POINT");
|
|
61
|
-
},
|
|
62
|
-
chip() {
|
|
63
|
-
return c(this);
|
|
64
|
-
}
|
|
65
|
-
},
|
|
66
|
-
[a.enum.BROADCAST]: {
|
|
67
|
-
chipClass: "!text-fm-color-typo-info !bg-fm-color-system-info-100",
|
|
68
|
-
icon: "campaign",
|
|
69
|
-
get name() {
|
|
70
|
-
return o.global.t("connect.campaign.common.typeName.BROADCAST");
|
|
71
|
-
},
|
|
72
|
-
chip() {
|
|
73
|
-
return c(this);
|
|
74
|
-
}
|
|
75
|
-
},
|
|
76
|
-
[a.enum.GAME]: {
|
|
77
|
-
chipClass: "!text-fm-color-secondary-mint !bg-fm-color-system-success-100",
|
|
78
|
-
icon: "database",
|
|
79
|
-
get name() {
|
|
80
|
-
return o.global.t("connect.campaign.common.typeName.GAME");
|
|
81
|
-
},
|
|
82
|
-
chip() {
|
|
83
|
-
return c(this);
|
|
84
|
-
}
|
|
85
|
-
},
|
|
86
|
-
[a.enum.REWARD_POOL]: {
|
|
87
|
-
chipClass: "!text-fm-color-secondary-tuna !bg-[#e3f4f9]",
|
|
88
|
-
icon: "editor_choice",
|
|
89
|
-
get name() {
|
|
90
|
-
return o.global.t("connect.campaign.common.typeName.REWARD_POOL");
|
|
91
|
-
},
|
|
92
|
-
chip() {
|
|
93
|
-
return c(this);
|
|
94
|
-
}
|
|
95
|
-
},
|
|
96
|
-
[a.enum.COIN]: {
|
|
97
|
-
chipClass: "!text-fm-color-system-success-400 !bg-fm-color-system-success-100",
|
|
98
|
-
icon: "monetization_on",
|
|
99
|
-
get name() {
|
|
100
|
-
return o.global.t("connect.campaign.common.typeName.COIN");
|
|
101
|
-
},
|
|
102
|
-
chip() {
|
|
103
|
-
return c(this);
|
|
104
|
-
}
|
|
105
|
-
},
|
|
106
|
-
[a.enum.MEMBERSHIP]: {
|
|
107
|
-
chipClass: "",
|
|
108
|
-
icon: "",
|
|
109
|
-
get name() {
|
|
110
|
-
return o.global.t("connect.campaign.common.typeName.MEMBERSHIP");
|
|
111
|
-
},
|
|
112
|
-
chip() {
|
|
113
|
-
return c(this);
|
|
114
|
-
}
|
|
115
|
-
},
|
|
116
|
-
// TODO: confirm color
|
|
117
|
-
[a.enum.MISSION]: {
|
|
118
|
-
chipClass: "!text-fm-color-secondary-tuna !bg-[#e3f4f9]",
|
|
119
|
-
icon: "editor_choice",
|
|
120
|
-
get name() {
|
|
121
|
-
return o.global.t("connect.campaign.common.typeName.MISSION");
|
|
122
|
-
},
|
|
123
|
-
chip() {
|
|
124
|
-
return c(this);
|
|
125
|
-
}
|
|
126
|
-
}
|
|
127
|
-
};
|
|
128
|
-
function A(e) {
|
|
129
|
-
const t = O(e), n = {
|
|
130
|
-
active: "text-fm-color-typo-success bg-fm-color-system-success-100",
|
|
131
|
-
upcoming: "text-fm-color-typo-info bg-fm-color-system-info-100",
|
|
132
|
-
expired: "text-fm-color-typo-error bg-fm-color-system-error-100"
|
|
133
|
-
};
|
|
134
|
-
return e.type == "VOUCHER" ? s(u.FmChip, {
|
|
135
|
-
class: n[t],
|
|
136
|
-
label: f.title(
|
|
137
|
-
o.global.t(`connect.campaign.common.status.${t}`)
|
|
138
|
-
),
|
|
139
|
-
compact: !0
|
|
140
|
-
}) : s(u.FmChip, {
|
|
141
|
-
class: n[t],
|
|
142
|
-
label: f.title(
|
|
143
|
-
o.global.t(`connect.campaign.common.status.${t}`)
|
|
144
|
-
),
|
|
145
|
-
compact: !0
|
|
146
|
-
});
|
|
147
|
-
}
|
|
148
|
-
function h(e) {
|
|
149
|
-
if (!e || !e.start && !e.end)
|
|
150
|
-
return "connect.campaign.common.always";
|
|
151
|
-
const t = e.start ? r(e.start).format("DD MMM YYYY") : "From campaign creation", n = e.end ? r(e.end).format("DD MMM YYYY") : "Never ends";
|
|
152
|
-
return `${t} - ${n}`;
|
|
153
|
-
}
|
|
154
|
-
function $(e) {
|
|
155
|
-
const { campaign: t } = e;
|
|
156
|
-
return {
|
|
157
|
-
"connect.campaign.common.campaign_name": t.name,
|
|
158
|
-
"connect.campaign.common.campaign_period": h(
|
|
159
|
-
t.timeframeOptions
|
|
160
|
-
),
|
|
161
|
-
get "connect.campaign.common.next_schedule_at"() {
|
|
162
|
-
if (t.event.type != "SCHEDULE" || !t.event.rule || !g(t.event.rule))
|
|
163
|
-
return;
|
|
164
|
-
const n = y(
|
|
165
|
-
t.event.rule.rules.g_schedule
|
|
166
|
-
);
|
|
167
|
-
return n ? r(n).format("ddd, DD MMM YYYY, hh:mmA") : void 0;
|
|
168
|
-
},
|
|
169
|
-
get "connect.campaign.common.discount_type"() {
|
|
170
|
-
if (t.type == "PROMOTION") return p(t.effect);
|
|
171
|
-
if ("configs" in e && e.configs.type == "VOUCHER")
|
|
172
|
-
return p(e.configs.extras.effect);
|
|
173
|
-
},
|
|
174
|
-
get "connect.campaign.common.available_at"() {
|
|
175
|
-
return t.targetLocation ? t.targetLocation.length > 0 ? t.targetLocation.map(
|
|
176
|
-
(n) => d().locationItems.find((i) => i.value == n).label
|
|
177
|
-
).join(",") : "connect.campaign.common.no_location" : "connect.campaign.common.all_locations";
|
|
178
|
-
}
|
|
179
|
-
};
|
|
180
|
-
}
|
|
181
|
-
function O(e) {
|
|
182
|
-
return e.timeframeOptions && e.timeframeOptions.type == "timeframe" ? r().isBetween(
|
|
183
|
-
e.timeframeOptions.start ?? r().subtract(1, "d"),
|
|
184
|
-
e.timeframeOptions.end ?? r().add(1, "d")
|
|
185
|
-
) ? "active" : r().isAfter(e.timeframeOptions.end) ? "expired" : "upcoming" : "active";
|
|
186
|
-
}
|
|
187
|
-
function P(e) {
|
|
188
|
-
var t, n;
|
|
189
|
-
switch (e.event.type) {
|
|
190
|
-
case "BILL_COMPLETED":
|
|
191
|
-
const i = `Spend to get ${m.formattedType(e.type)}`;
|
|
192
|
-
switch (e.type) {
|
|
193
|
-
case "POINT":
|
|
194
|
-
case "CREDIT":
|
|
195
|
-
case "COIN":
|
|
196
|
-
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)}`;
|
|
197
|
-
case "VOUCHER":
|
|
198
|
-
const l = (n = (t = e == null ? void 0 : e.pf_collectible) == null ? void 0 : t.extras) == null ? void 0 : n.effect;
|
|
199
|
-
return l ? `${i} - ${p(l)}` : i;
|
|
200
|
-
default:
|
|
201
|
-
return i;
|
|
202
|
-
}
|
|
203
|
-
case "FEEDBACK":
|
|
204
|
-
return `Give feedback to receive ${m.formattedType(e.type)}`;
|
|
205
|
-
case "SCHEDULE":
|
|
206
|
-
return `Receive ${m.formattedType(e.type)} on scheduled time`;
|
|
207
|
-
case "SIMPLE_CLAIM":
|
|
208
|
-
return "Simple claim voucher";
|
|
209
|
-
case "TIER_UPGRADED":
|
|
210
|
-
return `Receive ${m.formattedType(e.type)} when member tier upgraded`;
|
|
211
|
-
case "MEMBERSHIP_JOINED":
|
|
212
|
-
return `Receive ${m.formattedType(e.type)} when member joined`;
|
|
213
|
-
case "MAKING_ORDER":
|
|
214
|
-
return e.type !== "PROMOTION" ? void 0 : p(e.effect);
|
|
215
|
-
default:
|
|
216
|
-
throw new Error(
|
|
217
|
-
`Not implemented ${JSON.stringify({ cause: e.event.type })}`
|
|
218
|
-
);
|
|
219
|
-
}
|
|
220
|
-
}
|
|
221
|
-
export {
|
|
222
|
-
D as C,
|
|
223
|
-
A as a,
|
|
224
|
-
P as b,
|
|
225
|
-
$ as c,
|
|
226
|
-
O as g,
|
|
227
|
-
h as s
|
|
228
|
-
};
|