@feedmepos/mf-connect 0.1.114-prod → 0.1.115-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/README.md +66 -1
- package/dist/{App-DMYXrCc7.js → App-43mZfFAr.js} +700 -654
- package/dist/AuditLogs-BPpdm96t.js +2016 -0
- package/dist/{Bin-CHZolo56.js → Bin-CA7v180Y.js} +8 -8
- package/dist/Broadcast-qmdifF2Y.js +306 -0
- package/dist/{CampaignAnalytic-DgZvsUoF.js → CampaignAnalytic-xnrDxqaH.js} +7 -7
- package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-C42uL_JO.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-zjk-QdtX.js} +9 -9
- package/dist/{Card-wRFTJwJ9.js → Card-D8icsk7L.js} +25 -24
- package/dist/{Collections-9G-_9Etz.js → Collections--THcD-E_.js} +197 -185
- package/dist/{Credit-Bl7IDMCU.js → Credit-JrbtVMBp.js} +21 -20
- package/dist/{DateRangeChip.vue_vue_type_script_setup_true_lang-BVLJeofG.js → DateRangeChip.vue_vue_type_script_setup_true_lang-DrwKtnE5.js} +1 -1
- package/dist/EditCampaignSheet.vue_vue_type_script_setup_true_lang-DgdAlHU7.js +4442 -0
- package/dist/{EffectSheet.vue_vue_type_style_index_0_lang-Q1f6EQW3.js → EffectSheet.vue_vue_type_style_index_0_lang-hVgqWdD0.js} +32 -32
- package/dist/{Experience-Cs2iViLv.js → Experience-CFeRqBoj.js} +32 -31
- package/dist/{FileSaver.min-B3Levdbu.js → FileSaver.min-CCXIBm58.js} +1 -1
- package/dist/{Game-oXURgzan.js → Game-CPxq6Ex3.js} +19 -18
- package/dist/{GiftCardSetup-C2Wu-dRl.js → GiftCardSetup-D0esVZDp.js} +75 -75
- package/dist/{GoalPickerPanel.vue_vue_type_script_setup_true_lang-Da2e89Um.js → GoalPickerPanel.vue_vue_type_script_setup_true_lang-CJ1-vL-K.js} +7 -7
- package/dist/{Goals-B_xEM7gf.js → Goals-DaKI6uXt.js} +4 -4
- package/dist/Grab-BWzdN_cd.js +301 -0
- package/dist/{ImageInput.vue_vue_type_script_setup_true_lang-BRJR1heE.js → ImageInput.vue_vue_type_script_setup_true_lang-BOnL0GxM.js} +1 -1
- package/dist/{Index-kuT6W6R_.js → Index-2kENoaZm.js} +10 -10
- package/dist/{LocationPicker.vue_vue_type_script_setup_true_lang-7JqHfSk-.js → LocationPicker.vue_vue_type_script_setup_true_lang-BtWnJKU_.js} +1 -1
- package/dist/{LottieAnimation.vue_vue_type_script_setup_true_lang-CI_4S7tW.js → LottieAnimation.vue_vue_type_script_setup_true_lang-CX_Sspu5.js} +1 -1
- package/dist/{LoyaltyDashboard-CqxHdZcm.js → LoyaltyDashboard-CB93Fz8u.js} +15 -15
- package/dist/MainLayout-DwnjGXh6.js +4 -0
- package/dist/{MainLayout-CAERFIms.js → MainLayout.vue_vue_type_script_setup_true_lang-Du8fw5v_.js} +5 -4
- package/dist/Marketing-DCco__2F.js +273 -0
- package/dist/MarketingMaterialEdit-BbgFtrYP.js +1037 -0
- package/dist/{Member-B8VZEn9t.js → Member-B--nYyr0.js} +7 -7
- package/dist/{MemberDetailSheet.vue_vue_type_script_setup_true_lang-B31lVLKh.js → MemberDetailSheet.vue_vue_type_script_setup_true_lang-BBlzO7Db.js} +43 -50
- package/dist/{MemberImportHistory-D9tgHnTS.js → MemberImportHistory-D52Y4RTC.js} +7 -7
- package/dist/{MemberList-Hw_xQY1i.js → MemberList-13Owa1fj.js} +103 -105
- package/dist/{MemberTransactions-DiBO4plw.js → MemberTransactions-CpXEWNbq.js} +1 -1
- package/dist/{MessageInput.vue_vue_type_script_setup_true_lang-CbFt5X89.js → MessageInput.vue_vue_type_script_setup_true_lang-DlELjFM0.js} +4228 -4176
- package/dist/{MetricInfoTooltip.vue_vue_type_script_setup_true_lang-BE_-Ed4z.js → MetricInfoTooltip.vue_vue_type_script_setup_true_lang-C_y0rM8c.js} +1 -1
- package/dist/{Mission-DpYei3aF.js → Mission-Ci-UzXSu.js} +22 -21
- package/dist/{Overview-CARquJCS.js → Overview-CKxSfAGF.js} +145 -144
- package/dist/{Overview-BFQMmyT6.js → Overview-CXen9Ram.js} +23 -22
- package/dist/{Point-Dd2ykwNv.js → Point-CR3YOaag.js} +22 -21
- package/dist/{Promotion-DXl-W7np.js → Promotion-tw3J4ul-.js} +137 -131
- package/dist/{Queue-Cd3N-4iB.js → Queue-BZGA5ZXt.js} +47 -46
- package/dist/{Record-C3HdDsh5.js → Record-BTevVXnT.js} +9 -9
- package/dist/{Review-Bif3Ub9Z.js → Review-BU7c8ZF0.js} +2 -2
- package/dist/ReviewFacebookCallback-BnMF6Arh.js +225 -0
- package/dist/{ReviewGoogleCallback-i-RNLlLm.js → ReviewGoogleCallback-xpdPHSdg.js} +5 -5
- package/dist/{Reward-DHxzrR_7.js → Reward-jlA_7cxz.js} +29 -29
- package/dist/{RewardGroup.vue_vue_type_script_setup_true_lang-DcrFlcSo.js → RewardGroup.vue_vue_type_script_setup_true_lang-D3z_n42G.js} +16 -15
- package/dist/RuleGroup.vue_vue_type_script_setup_true_lang-CsHxqH9h.js +1923 -0
- package/dist/{Segment-Cjpxordk.js → Segment-C1Bwm--Q.js} +290 -291
- package/dist/{SendCollectionSheet.vue_vue_type_script_setup_true_lang-6u21xBu6.js → SendCollectionSheet.vue_vue_type_script_setup_true_lang-B6apgWTM.js} +31 -30
- package/dist/{SendVoucherSheet.vue_vue_type_script_setup_true_lang-BOXVzfer.js → SendVoucherSheet.vue_vue_type_script_setup_true_lang-B7m2F9UV.js} +4 -4
- package/dist/Setting-CDM4RhLW.js +574 -0
- package/dist/{SettingAdvertisements-aog5fz32.js → SettingAdvertisements-4XEAJzlL.js} +12 -12
- package/dist/Settings-D-0tvZRr.js +286 -0
- package/dist/{Store-Bq3kw1l2.js → Store-C56dXtc4.js} +31 -30
- package/dist/{StoreRewards-ZGXKEM09.js → StoreRewards-DQ1Q6WS6.js} +15 -15
- package/dist/StoreTransactions.vue_vue_type_script_setup_true_lang-LLD91Rz6.js +1319 -0
- package/dist/TargetLocationInput.vue_vue_type_script_setup_true_lang-Bvy4NJMd.js +7007 -0
- package/dist/{Tier-CfgpEHY7.js → Tier-D4CPZqw7.js} +2576 -687
- package/dist/{Title-B2itYWeD.js → Title-DCbwhUic.js} +94 -92
- package/dist/{Transaction-hJ5ygIcf.js → Transaction-C5LrasXr.js} +2 -2
- package/dist/{UserRuleGroup.vue_vue_type_script_setup_true_lang-8BgGlpTh.js → UserRuleGroup.vue_vue_type_script_setup_true_lang-Cl9b4mrK.js} +26 -26
- package/dist/{Voucher-TG47pGR3.js → Voucher-rrVbNZKR.js} +19 -19
- package/dist/{VoucherEditor.vue_vue_type_script_setup_true_lang-CjuXCTxg.js → VoucherEditor.vue_vue_type_script_setup_true_lang-BIq227nz.js} +16 -16
- package/dist/WhatsappAccount-oJDo5zTr.js +159 -0
- package/dist/WhatsappAccountStatusLabel.vue_vue_type_script_setup_true_lang-aCQCYFYq.js +39 -0
- package/dist/WhatsappBot-Cl64wG_F.js +876 -0
- package/dist/WhatsappBotLogs-D3uT4EiB.js +372 -0
- package/dist/WhatsappBotSettings-Cs1lLxh-.js +705 -0
- package/dist/WhatsappLayout-C639d2HP.js +21 -0
- package/dist/WhatsappNotificationGroupDialog.vue_vue_type_script_setup_true_lang-DpPxWp2x.js +253 -0
- package/dist/{ZodTextField.vue_vue_type_script_setup_true_lang-BRs-gbP0.js → ZodTextField.vue_vue_type_script_setup_true_lang-C39_95SZ.js} +2 -2
- package/dist/{app-tPHYkJcQ.js → app-CgimGODl.js} +10610 -8223
- package/dist/app.js +4 -3
- package/dist/{base.export-BHDVnGj2.js → base.export-D2P6HFvo.js} +2 -2
- package/dist/browser-BSAOEeIM.js +1478 -0
- package/dist/{business-HLyWfrXY.js → business-Bu5TqSA0.js} +1 -1
- package/dist/campaign-BFIXSgdJ.js +400 -0
- package/dist/{campaign-5zFgUNLw.js → campaign-zJxttSIk.js} +31 -25
- package/dist/{campaign.enum-BOkDnP2g.js → campaign.enum-Dx-Zo68Q.js} +3 -2
- package/dist/{campaign.fn-BIAoVtJj.js → campaign.fn-gvjlcEfe.js} +78 -78
- package/dist/{collectible.enum-BbZSAfys.js → collectible.enum-Liy2wH3s.js} +1 -1
- package/dist/{collection.fn-DPSgBHnz.js → collection.fn-DOm0HsSh.js} +2 -2
- package/dist/{currency-BVrMqU6-.js → currency-BpbQvbm8.js} +1 -1
- package/dist/duplicateCampaign-CvsvjRE9.js +51 -0
- package/dist/{effect-BBifVx76.js → effect-D-GtNB3n.js} +1 -1
- package/dist/{email-addresses-9C7xHTNv.js → email-addresses-BKMoAtMi.js} +2 -2
- package/dist/feature-flag-BJ_eyKsq.js +868 -0
- package/dist/feature-flag-Bo-k5sIG.js +50 -0
- package/dist/google-BQK68wbe.js +5 -0
- package/dist/{helper-C08jyQNK.js → helper-CkfjBgMM.js} +1 -1
- package/dist/{index-Dhyqf1s8.js → index-B6kU3PkV.js} +2700 -2613
- package/dist/{index-BgwZGunW.js → index-BAtUrtqM.js} +19 -6
- package/dist/index-BKsxIwbi.js +14571 -0
- package/dist/{index-DZ-q5O-V.js → index-BdEXUNoG.js} +4 -4
- package/dist/{index-hIUtD2eY.js → index-Bhl5IRXy.js} +11 -10
- package/dist/{index-kCbkOivd.js → index-BpTIulTX.js} +1 -1
- package/dist/index-C-iwb2Ln.js +109 -0
- package/dist/{index-Ciw2TZxV.js → index-CCEXSPxk.js} +8 -7
- package/dist/{index-CUle4c2B.js → index-CIej31pF.js} +4 -3
- package/dist/{index-ihw-WFCa.js → index-CQ8XFbBk.js} +2 -2
- package/dist/index-C_H8jFYf.js +2743 -0
- package/dist/{index-CEe1kJ0T.js → index-CfQuYqXn.js} +1 -1
- package/dist/{index-C_WoO58V.js → index-CuREApMc.js} +8 -7
- package/dist/{index-NJSI4wX4.js → index-D0JK99Ko.js} +693 -231
- package/dist/{index-DnRMNmUA.js → index-DKxN1mMS.js} +396 -232
- package/dist/index-DQ8JJhxs.js +74 -0
- package/dist/{index-D24Q28cH.js → index-DUAZOMVJ.js} +1 -1
- package/dist/{index-Yo0tP8KJ.js → index-DqGs6RJG.js} +683 -581
- package/dist/{index-B_334Y_i.js → index-DwU3fsLW.js} +29 -15
- package/dist/{index-hSRM1smQ.js → index-LygS9WsG.js} +8028 -10767
- package/dist/{index-96ZiAKj_.js → index-feCrYhi6.js} +1 -1
- package/dist/{index-Dk-jg0wN.js → index-zTvr2GR4.js} +2 -2
- package/dist/{index.esm2017-hN99SQTb.js → index.esm2017-DZi9IQPS.js} +209 -209
- package/dist/{loading-CVuY4vQ4.js → loading-Brid2wnu.js} +1 -1
- package/dist/{lodash-GFl9_FMH.js → lodash-C1epw3Kv.js} +1 -1
- package/dist/{member-import-CshTzabx.js → member-import-DAIxTIiu.js} +6 -5
- package/dist/{membership-S0KES3Ex.js → membership-BZmljFhF.js} +3 -3
- package/dist/{money-JxdX8ru4.js → money-cLcyGcSZ.js} +1 -1
- package/dist/{number-BRLwa-mB.js → number-C2jPLJr2.js} +1 -1
- package/dist/objectid-C-wocWKI.js +145 -0
- package/dist/{onboarding-BSKYeyP7.js → onboarding-oRfy_g05.js} +25 -25
- package/dist/{onboardingSetup-BqT52VRm.js → onboardingSetup-BLD6m8HY.js} +2 -2
- package/dist/{plugins-BR_wmMFJ.js → plugins-CUsr9vB0.js} +3 -3
- package/dist/{MarketingMaterialEdit-BvIthCHG.js → remy-icon-BhUGu2NI.js} +2 -1031
- package/dist/{reward-CpCGg_W2.js → reward-UOT03odb.js} +1 -1
- package/dist/{rule-Dbg9e8MO.js → rule-BgJnPjkI.js} +572 -492
- package/dist/style.css +1 -1
- package/dist/template-BZyFhr73.js +188 -0
- package/dist/{timezone-CDVa-xPr.js → timezone-BXA4wq7Y.js} +1 -1
- package/dist/{transaction.fn-DrTBoF9T.js → transaction.fn-CQ4fpRt3.js} +2 -2
- package/dist/{trigger-wqGwQfB2.js → trigger-DXJCGT0q.js} +8 -8
- package/dist/useMarketingMaterialActions-B-Wib5ga.js +125 -0
- package/dist/{usePagination-fODgpZZ8.js → usePagination-Pp4okWr8.js} +1 -1
- package/dist/{user-DaLUK1dk.js → user-B3gXcAIy.js} +1 -1
- package/dist/vue-i18n-DWGiC_vs.js +2365 -0
- package/dist/{xlsx-Bl4_Dtrq.js → xlsx-CCaDUTgW.js} +651 -651
- package/dist/{zod-CAzWyVqj.js → zod-CPwjOxvW.js} +1 -1
- package/package.json +12 -3
- package/dist/Broadcast-ByWvxVhW.js +0 -271
- package/dist/EditCampaignSheet.vue_vue_type_script_setup_true_lang-DGpQfV5T.js +0 -2431
- package/dist/Marketing-KgcwGErU.js +0 -236
- package/dist/ReviewFacebookCallback-mJF54-9l.js +0 -238
- package/dist/RuleGroup.vue_vue_type_script_setup_true_lang-39f3I4BB.js +0 -1883
- package/dist/Setting-Dl9MelHz.js +0 -2036
- package/dist/Settings-DvCCClIP.js +0 -179
- package/dist/StoreTransactions.vue_vue_type_script_setup_true_lang-DscLAF0p.js +0 -1264
- package/dist/TargetLocationInput.vue_vue_type_script_setup_true_lang-l_v4FHO0.js +0 -142
- package/dist/campaign-awCRccgX.js +0 -228
- package/dist/google-C3S8u0mT.js +0 -4
- package/dist/index-CoNJdOx7.js +0 -51
- package/dist/objectid-CEHN25HN.js +0 -145
- package/dist/rule-builder-BEIjxsE0.js +0 -102
- package/dist/template-CS-lExgI.js +0 -236
- package/dist/useMarketingMaterialActions-DC0gIyIZ.js +0 -96
- package/dist/vue-i18n-Dx-KXojZ.js +0 -2365
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { defineComponent as y, computed as b, openBlock as i, createBlock as R, unref as l, ref as E, watch as k, resolveComponent as h, createElementBlock as g, createElementVNode as B, Fragment as O, renderList as T, createVNode as V, isRef as U, createCommentVNode as v } from "vue";
|
|
2
|
-
import "./index-
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import { p as N } from "./plugins-
|
|
6
|
-
import { u as S } from "./membership-
|
|
2
|
+
import "./index-B6kU3PkV.js";
|
|
3
|
+
import { a as C, R as e } from "./index-D0JK99Ko.js";
|
|
4
|
+
import { a as I } from "./RuleGroup.vue_vue_type_script_setup_true_lang-CsHxqH9h.js";
|
|
5
|
+
import { p as N } from "./plugins-CUsr9vB0.js";
|
|
6
|
+
import { u as S } from "./membership-BZmljFhF.js";
|
|
7
7
|
import { _ as j } from "./CustomSelect.vue_vue_type_script_setup_true_lang-Du7fRSZC.js";
|
|
8
|
-
import { u as x } from "./vue-i18n-
|
|
8
|
+
import { u as x } from "./vue-i18n-DWGiC_vs.js";
|
|
9
9
|
const A = /* @__PURE__ */ y({
|
|
10
10
|
__name: "SegmentConfigurator",
|
|
11
11
|
props: {
|
|
@@ -15,8 +15,8 @@ const A = /* @__PURE__ */ y({
|
|
|
15
15
|
}
|
|
16
16
|
},
|
|
17
17
|
emits: ["update:model-value"],
|
|
18
|
-
setup(
|
|
19
|
-
const o =
|
|
18
|
+
setup(a, { emit: f }) {
|
|
19
|
+
const o = a, n = b(() => {
|
|
20
20
|
var s;
|
|
21
21
|
const [u] = C(o.modelValue) ? Object.values(((s = o.modelValue) == null ? void 0 : s.rules) ?? {}) : [null];
|
|
22
22
|
return (u ?? e.constructEntry("user.segment", "_hasAny", [])).conditions._hasAny;
|
|
@@ -24,7 +24,7 @@ const A = /* @__PURE__ */ y({
|
|
|
24
24
|
return (u, c) => (i(), R(j, {
|
|
25
25
|
multiselect: !0,
|
|
26
26
|
items: l(S)().segmentOptions,
|
|
27
|
-
"model-value": l(
|
|
27
|
+
"model-value": l(n),
|
|
28
28
|
"onUpdate:modelValue": c[0] || (c[0] = (s) => r(
|
|
29
29
|
"update:model-value",
|
|
30
30
|
l(e).setRuleToGroup(
|
|
@@ -45,9 +45,9 @@ const A = /* @__PURE__ */ y({
|
|
|
45
45
|
}
|
|
46
46
|
},
|
|
47
47
|
emits: ["update:model-value"],
|
|
48
|
-
setup(
|
|
49
|
-
const { t: o } = x(),
|
|
50
|
-
|
|
48
|
+
setup(a, { emit: f }) {
|
|
49
|
+
const { t: o } = x(), n = a, r = f, u = E(
|
|
50
|
+
n.modelValue ? e.getRules(n.modelValue.rules.g_user).length > 0 ? "custom" : e.getRules(n.modelValue.rules.g_segment).length > 0 ? "segment" : "all_users" : "all_users"
|
|
51
51
|
), c = [
|
|
52
52
|
{
|
|
53
53
|
value: "all_users",
|
|
@@ -65,7 +65,7 @@ const A = /* @__PURE__ */ y({
|
|
|
65
65
|
return k(u, async (s, t) => {
|
|
66
66
|
var p;
|
|
67
67
|
if (t != "all_users" && t != s && e.getRules(
|
|
68
|
-
(p =
|
|
68
|
+
(p = n.modelValue) == null ? void 0 : p.rules[t == "custom" ? "g_user" : "g_segment"]
|
|
69
69
|
).length > 0) {
|
|
70
70
|
const d = await N.confirm(
|
|
71
71
|
o("connect.template.rule.audience.confirm_remove"),
|
|
@@ -76,7 +76,7 @@ const A = /* @__PURE__ */ y({
|
|
|
76
76
|
d && r(
|
|
77
77
|
"update:model-value",
|
|
78
78
|
e.setRuleToGroup(
|
|
79
|
-
|
|
79
|
+
n.modelValue ?? e.scaffoldGroup(),
|
|
80
80
|
e.scaffoldGroup(t == "custom" ? "g_user" : "g_segment")
|
|
81
81
|
)
|
|
82
82
|
), u.value = d ? s : t;
|
|
@@ -86,22 +86,22 @@ const A = /* @__PURE__ */ y({
|
|
|
86
86
|
const p = h("FmRadio");
|
|
87
87
|
return i(), g("div", F, [
|
|
88
88
|
B("div", null, [
|
|
89
|
-
(i(), g(O, null, T(c, (
|
|
90
|
-
key:
|
|
91
|
-
value:
|
|
92
|
-
label:
|
|
89
|
+
(i(), g(O, null, T(c, (m) => V(p, {
|
|
90
|
+
key: m.value,
|
|
91
|
+
value: m.value,
|
|
92
|
+
label: m.label,
|
|
93
93
|
modelValue: l(u),
|
|
94
94
|
"onUpdate:modelValue": t[0] || (t[0] = (G) => U(u) ? u.value = G : null)
|
|
95
95
|
}, null, 8, ["value", "label", "modelValue"])), 64))
|
|
96
96
|
]),
|
|
97
97
|
l(u) == "segment" ? (i(), g("div", M, [
|
|
98
98
|
V(A, {
|
|
99
|
-
modelValue: ((d =
|
|
100
|
-
"onUpdate:modelValue": t[1] || (t[1] = (
|
|
99
|
+
modelValue: ((d = a.modelValue) == null ? void 0 : d.rules.g_segment) ?? l(e).scaffoldGroup("g_segment"),
|
|
100
|
+
"onUpdate:modelValue": t[1] || (t[1] = (m) => r(
|
|
101
101
|
"update:model-value",
|
|
102
102
|
l(e).setRuleToGroup(
|
|
103
|
-
|
|
104
|
-
|
|
103
|
+
a.modelValue ?? l(e).scaffoldGroup(),
|
|
104
|
+
m,
|
|
105
105
|
"&&"
|
|
106
106
|
)
|
|
107
107
|
))
|
|
@@ -111,12 +111,12 @@ const A = /* @__PURE__ */ y({
|
|
|
111
111
|
key: 1,
|
|
112
112
|
"include-only": "user",
|
|
113
113
|
"trigger-type": "MEMBERSHIP_JOINED",
|
|
114
|
-
"model-value": ((_ =
|
|
115
|
-
"onUpdate:modelValue": t[2] || (t[2] = (
|
|
114
|
+
"model-value": ((_ = a.modelValue) == null ? void 0 : _.rules.g_user) ?? l(e).scaffoldGroup("g_user"),
|
|
115
|
+
"onUpdate:modelValue": t[2] || (t[2] = (m) => r(
|
|
116
116
|
"update:model-value",
|
|
117
117
|
l(e).setRuleToGroup(
|
|
118
|
-
|
|
119
|
-
|
|
118
|
+
a.modelValue ?? l(e).scaffoldGroup(),
|
|
119
|
+
m,
|
|
120
120
|
"&&"
|
|
121
121
|
)
|
|
122
122
|
))
|
|
@@ -2,26 +2,26 @@ import { defineComponent as le, ref as w, computed as ce, h as m, onMounted as r
|
|
|
2
2
|
import { _ as pe } from "./campaign-CpzFl8Vr.js";
|
|
3
3
|
import { useDialog as ue, components as d } from "@feedmepos/ui-library";
|
|
4
4
|
import { _ as M } from "./FilterChip.vue_vue_type_script_setup_true_lang-3bH-tZAm.js";
|
|
5
|
-
import { c as de, p as he } from "./plugins-
|
|
5
|
+
import { c as de, p as he } from "./plugins-CUsr9vB0.js";
|
|
6
6
|
import { useCoreStore as ge } from "@feedmepos/mf-common";
|
|
7
|
-
import { u as fe } from "./loading-
|
|
8
|
-
import { u as ye } from "./business-
|
|
9
|
-
import { u as _e } from "./campaign-
|
|
10
|
-
import {
|
|
11
|
-
import { c as be, p as ve
|
|
12
|
-
import "./index-
|
|
13
|
-
import {
|
|
14
|
-
import { _ as
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import "./index-
|
|
20
|
-
import
|
|
21
|
-
import { i as $ } from "./helper-
|
|
7
|
+
import { u as fe } from "./loading-Brid2wnu.js";
|
|
8
|
+
import { u as ye } from "./business-Bu5TqSA0.js";
|
|
9
|
+
import { u as _e } from "./campaign-zJxttSIk.js";
|
|
10
|
+
import { a as Ce, b as B, c as D } from "./campaign-BFIXSgdJ.js";
|
|
11
|
+
import { c as be, p as ve } from "./duplicateCampaign-CvsvjRE9.js";
|
|
12
|
+
import "./index-feCrYhi6.js";
|
|
13
|
+
import { u as He } from "./template-BZyFhr73.js";
|
|
14
|
+
import { _ as Se } from "./EditCampaignSheet.vue_vue_type_script_setup_true_lang-DgdAlHU7.js";
|
|
15
|
+
import { _ as ze } from "./SendVoucherSheet.vue_vue_type_script_setup_true_lang-B7m2F9UV.js";
|
|
16
|
+
import { u as Ue } from "./vue-i18n-DWGiC_vs.js";
|
|
17
|
+
import { T as Te } from "./trigger-DXJCGT0q.js";
|
|
18
|
+
import { u as Ve } from "./onboardingSetup-BLD6m8HY.js";
|
|
19
|
+
import { R as W, W as Pe, S as we } from "./index-D0JK99Ko.js";
|
|
20
|
+
import "./index-B6kU3PkV.js";
|
|
21
|
+
import { i as $ } from "./helper-CkfjBgMM.js";
|
|
22
22
|
import { useRouter as Ne } from "vue-router";
|
|
23
|
-
import { c as C } from "./index-
|
|
24
|
-
import { R } from "./app-
|
|
23
|
+
import { c as C } from "./index-zTvr2GR4.js";
|
|
24
|
+
import { R } from "./app-CgimGODl.js";
|
|
25
25
|
const Ee = {
|
|
26
26
|
_id: "",
|
|
27
27
|
intention: ["REVISITING", "MEMBER_REWARD"],
|
|
@@ -395,7 +395,7 @@ W.scaffoldGroup(), $("VOUCHER", {
|
|
|
395
395
|
business: null,
|
|
396
396
|
noCampaign: !1
|
|
397
397
|
});
|
|
398
|
-
var xe = { authUrl: "https://portal-v2.feedmeapi.com/", slackWebhookUrl: "https://hooks.slack.com/services/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", appUrl: "
|
|
398
|
+
var xe = { authUrl: "https://portal-v2-dev.feedmeapi.com/", slackWebhookUrl: "https://hooks.slack.com/services/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", appUrl: "feedmedev.vip", crmUrl: "crm.feedmedev.cc", paymentPortalUrl: "https://portal.feedmedev.cc/payment/payout-account", licensePortalUrl: "https://license.feedmedev.cc/", marketingV1Portal: "https://marketing-v1.feedmedev.cc", voucherAppUrl: "https://voucher.feedmedev.cc/" };
|
|
399
399
|
const Fe = { class: "px-24 flex flex-col gap-y-16" }, Re = { class: "flex items-center justify-between w-full" }, je = { class: "flex gap-8 overflow-x-auto" }, ke = { class: "space-y-8" }, Ie = { class: "flex w-full gap-4 items-center" }, Je = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Oe = { class: "space-y-4" }, Le = { class: "fm-typo-en-body-lg-600" }, Ae = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Me = { class: "flex gap-8 items-center" }, Be = { class: "flex flex-col gap-16 text-center" }, De = { class: "fm-typo-en-title-sm-800" }, We = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, yt = /* @__PURE__ */ le({
|
|
400
400
|
__name: "Voucher",
|
|
401
401
|
setup($e) {
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { defineComponent as B, ref as L, resolveComponent as g, openBlock as p, createBlock as O, withCtx as y, renderSlot as J, createVNode as m, createTextVNode as U, toDisplayString as f, createElementVNode as s, unref as e, computed as N, createElementBlock as S, Fragment as w, renderList as K, normalizeClass as Q, createCommentVNode as T, resolveDynamicComponent as H } from "vue";
|
|
2
|
-
import { u as G } from "./vue-i18n-
|
|
3
|
-
import { c as j } from "./index-
|
|
4
|
-
import {
|
|
5
|
-
import { C as ee } from "./membership-
|
|
6
|
-
import { Z as x } from "./zod-
|
|
7
|
-
import { S as te } from "./app-
|
|
8
|
-
import { u as le } from "./business-
|
|
2
|
+
import { u as G } from "./vue-i18n-DWGiC_vs.js";
|
|
3
|
+
import { c as j } from "./index-CCEXSPxk.js";
|
|
4
|
+
import { g as W, F as Y } from "./index-B6kU3PkV.js";
|
|
5
|
+
import { C as ee } from "./membership-BZmljFhF.js";
|
|
6
|
+
import { Z as x } from "./zod-CPwjOxvW.js";
|
|
7
|
+
import { S as te } from "./app-CgimGODl.js";
|
|
8
|
+
import { u as le } from "./business-Bu5TqSA0.js";
|
|
9
9
|
import { useCoreStore as oe } from "@feedmepos/mf-common";
|
|
10
|
-
import { _ as ne } from "./ZodTextField.vue_vue_type_script_setup_true_lang-
|
|
11
|
-
import { _ as ae } from "./ImageInput.vue_vue_type_script_setup_true_lang-
|
|
12
|
-
import {
|
|
13
|
-
import { _ as me } from "./TargetLocationInput.vue_vue_type_script_setup_true_lang-
|
|
14
|
-
import { i as re } from "./helper-
|
|
10
|
+
import { _ as ne } from "./ZodTextField.vue_vue_type_script_setup_true_lang-C39_95SZ.js";
|
|
11
|
+
import { _ as ae } from "./ImageInput.vue_vue_type_script_setup_true_lang-BOnL0GxM.js";
|
|
12
|
+
import { b as ie, a as se } from "./EffectSheet.vue_vue_type_style_index_0_lang-hVgqWdD0.js";
|
|
13
|
+
import { _ as me } from "./TargetLocationInput.vue_vue_type_script_setup_true_lang-Bvy4NJMd.js";
|
|
14
|
+
import { i as re } from "./helper-CkfjBgMM.js";
|
|
15
15
|
const ue = { class: "flex justify-end gap-8 w-full" }, ce = /* @__PURE__ */ B({
|
|
16
16
|
__name: "MenuSheet",
|
|
17
17
|
props: {
|
|
@@ -95,7 +95,7 @@ const ue = { class: "flex justify-end gap-8 w-full" }, ce = /* @__PURE__ */ B({
|
|
|
95
95
|
},
|
|
96
96
|
emits: ["update:model-value"],
|
|
97
97
|
setup(o, { emit: I }) {
|
|
98
|
-
var b,
|
|
98
|
+
var b, E, _;
|
|
99
99
|
const C = le(), { t: l } = G(), t = o, u = I, h = N(
|
|
100
100
|
() => [
|
|
101
101
|
{
|
|
@@ -135,7 +135,7 @@ const ue = { class: "flex justify-end gap-8 w-full" }, ce = /* @__PURE__ */ B({
|
|
|
135
135
|
);
|
|
136
136
|
}
|
|
137
137
|
const v = L(
|
|
138
|
-
((b = t.modelValue) == null ? void 0 : b.type) === "PROPORTIONAL" && !!((
|
|
138
|
+
((b = t.modelValue) == null ? void 0 : b.type) === "PROPORTIONAL" && !!((_ = (E = t.modelValue) == null ? void 0 : E.property) != null && _.length) || !1
|
|
139
139
|
);
|
|
140
140
|
return (a, i) => {
|
|
141
141
|
var D, $, X;
|
|
@@ -329,7 +329,7 @@ const ue = { class: "flex justify-end gap-8 w-full" }, ce = /* @__PURE__ */ B({
|
|
|
329
329
|
})
|
|
330
330
|
), u = Y, h = I;
|
|
331
331
|
return (c, n) => {
|
|
332
|
-
var b,
|
|
332
|
+
var b, E, _;
|
|
333
333
|
const P = g("FmTextarea"), v = g("FmHelperText");
|
|
334
334
|
return p(), S(w, null, [
|
|
335
335
|
m(ne, {
|
|
@@ -398,7 +398,7 @@ const ue = { class: "flex justify-end gap-8 w-full" }, ce = /* @__PURE__ */ B({
|
|
|
398
398
|
n[9] || (n[9] = s("div", { class: "fm-typo-en-title-sm-800 !mb-[-8px]" }, "Availability", -1)),
|
|
399
399
|
e(t).type === "VOUCHER" ? (p(), O(me, {
|
|
400
400
|
key: 1,
|
|
401
|
-
"model-value": ((
|
|
401
|
+
"model-value": ((_ = (E = e(t).extras) == null ? void 0 : E.targetLocation) == null ? void 0 : _.map(String)) ?? null,
|
|
402
402
|
type: "select",
|
|
403
403
|
"onUpdate:modelValue": n[5] || (n[5] = (a) => {
|
|
404
404
|
e(t).extras.targetLocation = a;
|
|
@@ -0,0 +1,159 @@
|
|
|
1
|
+
import { defineComponent as j, computed as A, ref as m, watch as U, onBeforeUnmount as z, resolveComponent as v, openBlock as i, createElementBlock as u, Fragment as F, createElementVNode as o, createVNode as c, unref as e, withCtx as G, createTextVNode as I, toDisplayString as a, normalizeClass as O, createCommentVNode as T, createBlock as W } from "vue";
|
|
2
|
+
import { u as L } from "./vue-i18n-DWGiC_vs.js";
|
|
3
|
+
import { useRoute as D } from "vue-router";
|
|
4
|
+
import { S as H, a as M } from "./index-CCEXSPxk.js";
|
|
5
|
+
import { w as J } from "./index-DQ8JJhxs.js";
|
|
6
|
+
import { _ as K } from "./WhatsappAccountStatusLabel.vue_vue_type_script_setup_true_lang-aCQCYFYq.js";
|
|
7
|
+
import { u as Q, _ as X } from "./WhatsappNotificationGroupDialog.vue_vue_type_script_setup_true_lang-DpPxWp2x.js";
|
|
8
|
+
import { R as Y } from "./app-CgimGODl.js";
|
|
9
|
+
const Z = { class: "px-[24px] xs:px-[12px] pt-[20px] pb-[40px] text-fm-color-typo-primary" }, q = { class: "mx-auto w-full min-w-0 flex flex-col gap-[24px]" }, ee = {
|
|
10
|
+
key: 0,
|
|
11
|
+
role: "status",
|
|
12
|
+
class: "py-[56px] flex flex-col items-center gap-[12px] text-[14px] text-fm-color-typo-secondary"
|
|
13
|
+
}, te = {
|
|
14
|
+
key: 1,
|
|
15
|
+
class: "border border-fm-color-neutral-gray-200 rounded-[16px] px-[24px] py-[56px] flex flex-col items-center text-center gap-[16px]"
|
|
16
|
+
}, oe = {
|
|
17
|
+
role: "alert",
|
|
18
|
+
class: "text-[14px] text-fm-color-typo-error"
|
|
19
|
+
}, ne = { class: "flex items-center gap-[16px]" }, re = ["src"], ae = { key: 1 }, le = { class: "min-w-0 flex-1 flex flex-col gap-[2px]" }, se = { class: "text-[24px] leading-[32px] font-semibold tracking-[-0.01em] break-words" }, ie = { class: "flex items-center gap-[10px] flex-wrap text-[14px] text-fm-color-typo-secondary" }, ce = { class: "break-all" }, pe = {
|
|
20
|
+
"aria-labelledby": "notification-group-title",
|
|
21
|
+
class: "border border-fm-color-neutral-gray-100 rounded-[16px] p-[24px] xs:p-[20px] flex items-center gap-[16px] flex-wrap"
|
|
22
|
+
}, ue = {
|
|
23
|
+
"aria-hidden": "true",
|
|
24
|
+
class: "w-[40px] h-[40px] rounded-[8px] shrink-0 self-start bg-fm-color-primary-oats text-fm-color-primary flex items-center justify-center"
|
|
25
|
+
}, de = { class: "min-w-[240px] xs:min-w-0 flex-1 flex flex-col gap-[4px]" }, fe = {
|
|
26
|
+
id: "notification-group-title",
|
|
27
|
+
class: "text-[16px] leading-[24px] font-semibold"
|
|
28
|
+
}, xe = { class: "text-[14px] leading-[20px] text-fm-color-typo-secondary [text-wrap:pretty]" }, ke = /* @__PURE__ */ j({
|
|
29
|
+
__name: "WhatsappAccount",
|
|
30
|
+
setup(me) {
|
|
31
|
+
const { t: n } = L(), b = D(), f = A(() => H.getBusinessId() ?? ""), w = A(
|
|
32
|
+
() => typeof b.params.clientId == "string" ? b.params.clientId : ""
|
|
33
|
+
), r = m(), _ = m(!0), p = m(""), d = m(!1), {
|
|
34
|
+
name: E,
|
|
35
|
+
phoneNumber: N,
|
|
36
|
+
initials: V,
|
|
37
|
+
state: P,
|
|
38
|
+
avatarColor: $,
|
|
39
|
+
profilePictureUrl: B,
|
|
40
|
+
profilePictureFailed: k
|
|
41
|
+
} = Q(r);
|
|
42
|
+
let l, h;
|
|
43
|
+
async function g(y = !1) {
|
|
44
|
+
clearTimeout(h), l == null || l.abort();
|
|
45
|
+
const t = new AbortController();
|
|
46
|
+
l = t, y || (_.value = !0, p.value = "");
|
|
47
|
+
try {
|
|
48
|
+
if (!f.value)
|
|
49
|
+
throw new Error(n("connect.whatsappBot.errors.selectBusiness"));
|
|
50
|
+
const s = await J.getClient(
|
|
51
|
+
f.value,
|
|
52
|
+
w.value,
|
|
53
|
+
t.signal
|
|
54
|
+
);
|
|
55
|
+
if (t.signal.aborted) return;
|
|
56
|
+
r.value = s, p.value = "";
|
|
57
|
+
} catch (s) {
|
|
58
|
+
if (t.signal.aborted) return;
|
|
59
|
+
s instanceof M && s.status === 404 ? (d.value = !1, r.value = void 0, p.value = n("connect.whatsappBot.errors.accountNotFound")) : y || (p.value = f.value ? n("connect.whatsappBot.errors.loadAccount") : n("connect.whatsappBot.errors.selectBusiness"));
|
|
60
|
+
} finally {
|
|
61
|
+
t.signal.aborted || (_.value = !1, r.value && (h = setTimeout(() => void g(!0), 1e4)));
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
return U(
|
|
65
|
+
[f, w],
|
|
66
|
+
() => {
|
|
67
|
+
d.value = !1, r.value = void 0, g();
|
|
68
|
+
},
|
|
69
|
+
{ immediate: !0 }
|
|
70
|
+
), z(() => {
|
|
71
|
+
l == null || l.abort(), clearTimeout(h);
|
|
72
|
+
}), (y, t) => {
|
|
73
|
+
const s = v("FmIcon"), R = v("RouterLink"), S = v("FmCircularProgress"), C = v("FmButton");
|
|
74
|
+
return i(), u(F, null, [
|
|
75
|
+
o("div", Z, [
|
|
76
|
+
o("div", q, [
|
|
77
|
+
c(R, {
|
|
78
|
+
to: { name: e(Y)["$connect-WHATSAPP_BOT"] },
|
|
79
|
+
class: "self-start flex items-center gap-[4px] h-[32px] pl-[6px] pr-[10px] -ml-[6px] rounded-[8px] text-[14px] font-medium text-fm-color-typo-secondary no-underline hover:bg-fm-color-neutral-gray-100 hover:text-fm-color-typo-primary focus-visible:outline-none focus-visible:ring-[2px] focus-visible:ring-fm-color-primary"
|
|
80
|
+
}, {
|
|
81
|
+
default: G(() => [
|
|
82
|
+
c(s, {
|
|
83
|
+
name: "chevron_left",
|
|
84
|
+
size: "sm"
|
|
85
|
+
}),
|
|
86
|
+
I(" " + a(e(n)("connect.navigation.whatsappBot")), 1)
|
|
87
|
+
]),
|
|
88
|
+
_: 1
|
|
89
|
+
}, 8, ["to"]),
|
|
90
|
+
_.value ? (i(), u("div", ee, [
|
|
91
|
+
c(S),
|
|
92
|
+
I(" " + a(e(n)("connect.whatsappBot.loadingAccount")), 1)
|
|
93
|
+
])) : p.value ? (i(), u("div", te, [
|
|
94
|
+
o("p", oe, a(p.value), 1),
|
|
95
|
+
c(C, {
|
|
96
|
+
label: e(n)("connect.whatsappBot.tryAgain"),
|
|
97
|
+
"prepend-icon": "refresh",
|
|
98
|
+
class: "!rounded-full [&_.label]:text-[14px]",
|
|
99
|
+
onClick: t[0] || (t[0] = (x) => g())
|
|
100
|
+
}, null, 8, ["label"])
|
|
101
|
+
])) : r.value ? (i(), u(F, { key: 2 }, [
|
|
102
|
+
o("div", ne, [
|
|
103
|
+
o("div", {
|
|
104
|
+
"aria-hidden": "true",
|
|
105
|
+
class: O(["w-[56px] h-[56px] rounded-full overflow-hidden shrink-0 flex items-center justify-center text-[18px] font-semibold text-fm-color-typo-white", e($)])
|
|
106
|
+
}, [
|
|
107
|
+
e(B) && !e(k) ? (i(), u("img", {
|
|
108
|
+
key: 0,
|
|
109
|
+
src: e(B),
|
|
110
|
+
alt: "",
|
|
111
|
+
class: "w-full h-full object-cover",
|
|
112
|
+
referrerpolicy: "no-referrer",
|
|
113
|
+
onError: t[1] || (t[1] = (x) => k.value = !0)
|
|
114
|
+
}, null, 40, re)) : (i(), u("span", ae, a(e(V)), 1))
|
|
115
|
+
], 2),
|
|
116
|
+
o("div", le, [
|
|
117
|
+
o("h1", se, a(e(E)), 1),
|
|
118
|
+
o("div", ie, [
|
|
119
|
+
o("span", ce, a(e(N)), 1),
|
|
120
|
+
c(K, { state: e(P) }, null, 8, ["state"])
|
|
121
|
+
])
|
|
122
|
+
])
|
|
123
|
+
]),
|
|
124
|
+
o("section", pe, [
|
|
125
|
+
o("div", ue, [
|
|
126
|
+
c(s, {
|
|
127
|
+
name: "notifications",
|
|
128
|
+
size: "md"
|
|
129
|
+
})
|
|
130
|
+
]),
|
|
131
|
+
o("div", de, [
|
|
132
|
+
o("h2", fe, a(e(n)("connect.whatsappBot.notificationGroup.title")), 1),
|
|
133
|
+
o("p", xe, a(e(n)("connect.whatsappBot.notificationGroup.description")), 1)
|
|
134
|
+
]),
|
|
135
|
+
c(C, {
|
|
136
|
+
variant: "secondary",
|
|
137
|
+
"border-color": "neutral-gray-200",
|
|
138
|
+
label: e(n)("connect.whatsappBot.notificationGroup.join"),
|
|
139
|
+
"prepend-icon": "group",
|
|
140
|
+
class: "shrink-0 !rounded-full !px-[20px] [&_.label]:text-[14px]",
|
|
141
|
+
onClick: t[2] || (t[2] = (x) => d.value = !0)
|
|
142
|
+
}, null, 8, ["label"])
|
|
143
|
+
])
|
|
144
|
+
], 64)) : T("", !0)
|
|
145
|
+
])
|
|
146
|
+
]),
|
|
147
|
+
r.value ? (i(), W(X, {
|
|
148
|
+
key: 0,
|
|
149
|
+
modelValue: d.value,
|
|
150
|
+
"onUpdate:modelValue": t[3] || (t[3] = (x) => d.value = x),
|
|
151
|
+
account: r.value
|
|
152
|
+
}, null, 8, ["modelValue", "account"])) : T("", !0)
|
|
153
|
+
], 64);
|
|
154
|
+
};
|
|
155
|
+
}
|
|
156
|
+
});
|
|
157
|
+
export {
|
|
158
|
+
ke as default
|
|
159
|
+
};
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { defineComponent as l, computed as r, openBlock as a, createElementBlock as p, normalizeClass as t, createElementVNode as m, createTextVNode as i, toDisplayString as d, unref as u } from "vue";
|
|
2
|
+
import { u as f } from "./vue-i18n-DWGiC_vs.js";
|
|
3
|
+
const h = /* @__PURE__ */ l({
|
|
4
|
+
__name: "WhatsappAccountStatusLabel",
|
|
5
|
+
props: {
|
|
6
|
+
state: {}
|
|
7
|
+
},
|
|
8
|
+
setup(o) {
|
|
9
|
+
const s = o, { t: n } = f(), c = {
|
|
10
|
+
connected: {
|
|
11
|
+
label: "connect.whatsappBot.connected",
|
|
12
|
+
pill: "text-fm-color-typo-success bg-fm-color-system-success-100",
|
|
13
|
+
dot: "bg-fm-color-system-success-400"
|
|
14
|
+
},
|
|
15
|
+
disconnected: {
|
|
16
|
+
label: "connect.whatsappBot.disconnected",
|
|
17
|
+
pill: "text-fm-color-typo-error bg-fm-color-system-error-100",
|
|
18
|
+
dot: "bg-fm-color-system-error-400"
|
|
19
|
+
},
|
|
20
|
+
connecting: {
|
|
21
|
+
label: "connect.whatsappBot.statusConnecting",
|
|
22
|
+
pill: "text-fm-color-typo-warning bg-fm-color-system-warning-100",
|
|
23
|
+
dot: "bg-fm-color-system-warning-400"
|
|
24
|
+
}
|
|
25
|
+
}, e = r(() => c[s.state]);
|
|
26
|
+
return (x, g) => (a(), p("span", {
|
|
27
|
+
class: t(["flex items-center gap-[6px] text-[12px] font-semibold px-[8px] py-[3px] rounded-[6px]", e.value.pill])
|
|
28
|
+
}, [
|
|
29
|
+
m("span", {
|
|
30
|
+
"aria-hidden": "true",
|
|
31
|
+
class: t(["w-[6px] h-[6px] rounded-full", e.value.dot])
|
|
32
|
+
}, null, 2),
|
|
33
|
+
i(" " + d(u(n)(e.value.label)), 1)
|
|
34
|
+
], 2));
|
|
35
|
+
}
|
|
36
|
+
});
|
|
37
|
+
export {
|
|
38
|
+
h as _
|
|
39
|
+
};
|