@feedmepos/mf-connect 0.1.115-prod → 0.1.117-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 +64 -1
- package/dist/{App-CvtSY8ZO.js → App-BpcsgH7K.js} +444 -427
- package/dist/AuditLogs-BNnUiVnD.js +2016 -0
- package/dist/{Bin-B3gS9QVZ.js → Bin-Cm0wjQeR.js} +8 -8
- package/dist/{Broadcast-DAeb-HaN.js → Broadcast-BoJaHqnO.js} +22 -21
- package/dist/{CampaignAnalytic-BfTaHVem.js → CampaignAnalytic-Eg4xZW0B.js} +7 -7
- package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-zsei4OfG.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-BXylK6Ze.js} +9 -9
- package/dist/{Card-JFeVIwFs.js → Card-BfkMcFaG.js} +25 -24
- package/dist/{Collections-xcDpEhIm.js → Collections-RXmxQbII.js} +197 -185
- package/dist/{Credit-C9HJZjDS.js → Credit-CsRPM1jv.js} +21 -20
- package/dist/{DateRangeChip.vue_vue_type_script_setup_true_lang-DSqVY91w.js → DateRangeChip.vue_vue_type_script_setup_true_lang-D2tvK7pw.js} +1 -1
- package/dist/EditCampaignSheet.vue_vue_type_script_setup_true_lang-BgPeHurN.js +4442 -0
- package/dist/{EffectSheet.vue_vue_type_style_index_0_lang-C3J0rCTt.js → EffectSheet.vue_vue_type_style_index_0_lang-CUx8UIIq.js} +32 -32
- package/dist/{Experience-DszS8gto.js → Experience-BC8Pj-v9.js} +32 -31
- package/dist/{FileSaver.min-CFVQKaC-.js → FileSaver.min-DzmoQFA0.js} +1 -1
- package/dist/{Game-DhgeN7E2.js → Game-DJXNHFBs.js} +19 -18
- package/dist/{GiftCardSetup-CWm6IhrS.js → GiftCardSetup-_0n8lU-t.js} +75 -75
- package/dist/{GoalPickerPanel.vue_vue_type_script_setup_true_lang-BuKADvmK.js → GoalPickerPanel.vue_vue_type_script_setup_true_lang-C-AiJdui.js} +7 -7
- package/dist/{Goals-DtRVierH.js → Goals-DSZwKpds.js} +4 -4
- package/dist/Grab-DDc7e-AC.js +301 -0
- package/dist/{ImageInput.vue_vue_type_script_setup_true_lang-DlEFyu6h.js → ImageInput.vue_vue_type_script_setup_true_lang-BZb-H4fM.js} +1 -1
- package/dist/{Index-DFRcu_qE.js → Index-Cbi0bquE.js} +10 -10
- package/dist/{LocationPicker.vue_vue_type_script_setup_true_lang-B3Br4Xvi.js → LocationPicker.vue_vue_type_script_setup_true_lang-GLhMtvzi.js} +1 -1
- package/dist/{LottieAnimation.vue_vue_type_script_setup_true_lang-CjNJj3qj.js → LottieAnimation.vue_vue_type_script_setup_true_lang-Bt9CO_QR.js} +1 -1
- package/dist/{LoyaltyDashboard-BWHKDPzk.js → LoyaltyDashboard-fK90c27A.js} +15 -15
- package/dist/MainLayout-Bf-l9yL4.js +4 -0
- package/dist/{MainLayout-BmpNNAiE.js → MainLayout.vue_vue_type_script_setup_true_lang-COR6YYYI.js} +5 -4
- package/dist/Marketing-B7cZGsO-.js +269 -0
- package/dist/MarketingMaterialEdit-5IcV2ct6.js +1037 -0
- package/dist/{Member-xEzrBW_p.js → Member-BGTrRVdq.js} +7 -7
- package/dist/{MemberDetailSheet.vue_vue_type_script_setup_true_lang-DRoC-I0t.js → MemberDetailSheet.vue_vue_type_script_setup_true_lang-DJr2hV2W.js} +43 -50
- package/dist/{MemberImportHistory-CEQpBBF8.js → MemberImportHistory--FxkTJmu.js} +7 -7
- package/dist/{MemberList-CCvzkHv8.js → MemberList-EjY5dgwt.js} +103 -105
- package/dist/{MemberTransactions-Bmh39J2W.js → MemberTransactions-Oia7LIFK.js} +1 -1
- package/dist/{MessageInput.vue_vue_type_script_setup_true_lang-D3Pmk80l.js → MessageInput.vue_vue_type_script_setup_true_lang-CLOQZCYy.js} +14 -14
- package/dist/{MetricInfoTooltip.vue_vue_type_script_setup_true_lang-DIBKAwHP.js → MetricInfoTooltip.vue_vue_type_script_setup_true_lang-Ev3bB8cg.js} +1 -1
- package/dist/{Mission-CpUo2Bgw.js → Mission-BFHYb4aT.js} +22 -21
- package/dist/{Overview-DcDZmDXA.js → Overview-BVNyQxFL.js} +23 -22
- package/dist/{Overview-CwQqQ1Tn.js → Overview-d5U37aot.js} +145 -144
- package/dist/{Point-CUNQsQIx.js → Point-CXkqH02Z.js} +22 -21
- package/dist/{Promotion-Cqdim7aW.js → Promotion-DdxNvlOO.js} +137 -131
- package/dist/{Queue-CNBVh1UG.js → Queue-C96oNKyP.js} +46 -45
- package/dist/{Record-BYwz4l4o.js → Record-Bj2e2Y4i.js} +9 -9
- package/dist/{Review-CqLcZFj8.js → Review-CJK5S1oI.js} +2 -2
- package/dist/ReviewFacebookCallback-ChG7TRy5.js +225 -0
- package/dist/{ReviewGoogleCallback-Dg8R7QlO.js → ReviewGoogleCallback-Dmk4VyGA.js} +5 -5
- package/dist/{Reward-M8GZ8eHq.js → Reward-Dh2YI0Xb.js} +29 -29
- package/dist/{RewardGroup.vue_vue_type_script_setup_true_lang-BkM9-Sx-.js → RewardGroup.vue_vue_type_script_setup_true_lang-U47m3AAn.js} +16 -15
- package/dist/RuleGroup.vue_vue_type_script_setup_true_lang-2L6ZGMW7.js +1923 -0
- package/dist/{Segment-CrMi6xrp.js → Segment-FYvtCkqH.js} +304 -305
- package/dist/{SendCollectionSheet.vue_vue_type_script_setup_true_lang-DKH5_9db.js → SendCollectionSheet.vue_vue_type_script_setup_true_lang-DPZZz2e0.js} +31 -30
- package/dist/{SendVoucherSheet.vue_vue_type_script_setup_true_lang-CyeAQ-hg.js → SendVoucherSheet.vue_vue_type_script_setup_true_lang-D8wBgLlS.js} +4 -4
- package/dist/Setting-CUAWjCqa.js +574 -0
- package/dist/{SettingAdvertisements-Dh7v4c1D.js → SettingAdvertisements-COIQwUD6.js} +12 -12
- package/dist/Settings-D2gFPvmW.js +286 -0
- package/dist/{Store-CV-BmK5b.js → Store-BAXwiyvx.js} +31 -30
- package/dist/{StoreRewards-DPhSLvSZ.js → StoreRewards-2mUavtUg.js} +15 -15
- package/dist/StoreTransactions.vue_vue_type_script_setup_true_lang-5g3yIL1a.js +1319 -0
- package/dist/TargetLocationInput.vue_vue_type_script_setup_true_lang-DHi4rdT1.js +7007 -0
- package/dist/{Tier-ChvYps23.js → Tier-BmAOzRHL.js} +2576 -687
- package/dist/{Title-v-Ivswr1.js → Title-DMxiUg30.js} +94 -92
- package/dist/{Transaction-CRqE1Ix0.js → Transaction-CF6hXEpN.js} +2 -2
- package/dist/{UserRuleGroup.vue_vue_type_script_setup_true_lang-B0Uh9iuj.js → UserRuleGroup.vue_vue_type_script_setup_true_lang-BON_t0dL.js} +26 -26
- package/dist/{Voucher-Bg8FOuzD.js → Voucher-DrtITxq-.js} +19 -19
- package/dist/{VoucherEditor.vue_vue_type_script_setup_true_lang-HKxivQMF.js → VoucherEditor.vue_vue_type_script_setup_true_lang-1DZOzJKx.js} +16 -16
- package/dist/WhatsappAccount-Bb0Y7ikk.js +159 -0
- package/dist/WhatsappAccountStatusLabel.vue_vue_type_script_setup_true_lang-CPlyzkp4.js +39 -0
- package/dist/WhatsappBot-DNvvaPey.js +876 -0
- package/dist/WhatsappBotLogs-C8M-1pvv.js +372 -0
- package/dist/WhatsappBotSettings-D6egqUyU.js +705 -0
- package/dist/WhatsappLayout-DeQTPuF6.js +21 -0
- package/dist/WhatsappNotificationGroupDialog.vue_vue_type_script_setup_true_lang-DI0pcHcE.js +253 -0
- package/dist/{ZodTextField.vue_vue_type_script_setup_true_lang-8d290Dcp.js → ZodTextField.vue_vue_type_script_setup_true_lang-CKZscSjU.js} +2 -2
- package/dist/{app-DdNKsn2Q.js → app-BjdLqYQq.js} +8879 -7107
- package/dist/app.js +4 -3
- package/dist/{base.export-R97FrSQL.js → base.export-B68z5BF6.js} +2 -2
- package/dist/browser-BSAOEeIM.js +1478 -0
- package/dist/{business-Ce8vq3wQ.js → business-D9fgkHxb.js} +1 -1
- package/dist/{campaign-C19If7bW.js → campaign-Dw_ujovr.js} +121 -94
- package/dist/{campaign-BTllt2LH.js → campaign-eMaPX8r6.js} +31 -25
- package/dist/{campaign.enum-9CCbalR4.js → campaign.enum-Dx-Zo68Q.js} +3 -2
- package/dist/{campaign.fn-B4g03h0A.js → campaign.fn-DFjGNvmN.js} +78 -78
- package/dist/{collectible.enum-MvqF7mSg.js → collectible.enum-Liy2wH3s.js} +1 -1
- package/dist/{collection.fn-CR0bD33S.js → collection.fn-CCOWtB-c.js} +2 -2
- package/dist/{currency-DmlguGIM.js → currency-CTLKReFC.js} +1 -1
- package/dist/duplicateCampaign-BcpBfUGL.js +51 -0
- package/dist/{effect-Dx3zfl28.js → effect-CTI1ZH57.js} +1 -1
- package/dist/{email-addresses-De5PGOY4.js → email-addresses-B74e3bnB.js} +2 -2
- package/dist/{feature-flag-CD9V1V0h.js → feature-flag-DVdEaChJ.js} +182 -166
- package/dist/google-BQK68wbe.js +5 -0
- package/dist/{helper-CEiv7SaO.js → helper-as9K-piK.js} +1 -1
- package/dist/{index-CBJy9bxB.js → index-3LjKJhQa.js} +1 -1
- package/dist/{index-BW6eb3n6.js → index-8mBfDn3M.js} +611 -252
- package/dist/{index-D4d3l0gw.js → index-B0h0iYWP.js} +8 -7
- package/dist/{index-BAXKd9Gg.js → index-BEKMTiFb.js} +198 -198
- package/dist/{index-B8yWVB8P.js → index-BW7FoVEA.js} +4 -3
- package/dist/{index-BVdYxi3l.js → index-B_wRpO02.js} +29 -15
- package/dist/{index-B8meeQoD.js → index-Ba719MYq.js} +1 -1
- package/dist/{index-BDPnyro2.js → index-BbVbqe4Y.js} +19 -6
- package/dist/{index-CqOCJTeR.js → index-BhTrG89b.js} +390 -232
- package/dist/index-C-iwb2Ln.js +109 -0
- package/dist/{index-CPODug8b.js → index-C5V6u2Qd.js} +2700 -2613
- package/dist/{index-CWUrODxL.js → index-CHU3UePP.js} +1 -1
- package/dist/{index-IZRfmmde.js → index-CQxkDpX0.js} +683 -581
- package/dist/{index-DT3S00_Y.js → index-CWLOcQ6j.js} +11 -10
- package/dist/index-C_H8jFYf.js +2743 -0
- package/dist/{index-__UT3_Ey.js → index-Ckz6u3ac.js} +2 -2
- package/dist/{index-BYI9ttxy.js → index-Czg-2Ni0.js} +8028 -10767
- package/dist/{index-xct3mnu8.js → index-DKI8401o.js} +7 -7
- package/dist/{index-649OZ_e1.js → index-DcZiikOH.js} +2 -2
- package/dist/{index-BquSqx6K.js → index-QHqcSN2q.js} +4 -4
- package/dist/{index-BR9h5DTI.js → index-TAoQpeLQ.js} +1 -1
- package/dist/index-wsCCqwdr.js +74 -0
- package/dist/{index.esm2017-AVbZ9btd.js → index.esm2017-DL6rTGDW.js} +177 -177
- package/dist/{loading-BvHm1m3K.js → loading-x6IScY4K.js} +1 -1
- package/dist/{lodash-Dvrceo7x.js → lodash-nwnDizYo.js} +1 -1
- package/dist/{member-import-c9avpiSS.js → member-import-C-b01Tyd.js} +6 -5
- package/dist/{membership-D-pZS634.js → membership-DfarOMtO.js} +3 -3
- package/dist/{money-D4skwMkD.js → money-CFn-jR4W.js} +1 -1
- package/dist/{number-DJ6ncfT6.js → number-CSlyDL2x.js} +1 -1
- package/dist/objectid-zcT6ESET.js +145 -0
- package/dist/{onboarding-t7R1d3h-.js → onboarding-DyaFaaF2.js} +25 -25
- package/dist/{onboardingSetup-lTaJc0oT.js → onboardingSetup-DQt91O9f.js} +2 -2
- package/dist/{plugins-DQNOWwRC.js → plugins-DEHr0UOe.js} +3 -3
- package/dist/{MarketingMaterialEdit-x3c_N7Gs.js → remy-icon-BhUGu2NI.js} +2 -1031
- package/dist/{reward-BK150pjm.js → reward-Du_Pv-4p.js} +1 -1
- package/dist/{rule-COcdAnUu.js → rule-DfqmQTVK.js} +572 -492
- package/dist/style.css +1 -1
- package/dist/template-CcbNF4PF.js +188 -0
- package/dist/{timezone-BP6UC4KL.js → timezone-_4tabIaK.js} +1 -1
- package/dist/{transaction.fn-BY0hzon0.js → transaction.fn-C46PHwCV.js} +2 -2
- package/dist/{trigger-DVBjVPbN.js → trigger-Dipr6btC.js} +8 -8
- package/dist/useMarketingMaterialActions-BAw2ZjeF.js +125 -0
- package/dist/{usePagination-QT552XyF.js → usePagination-D6RZ18zS.js} +1 -1
- package/dist/{user-CmAxNc7T.js → user-BCexQj3Q.js} +1 -1
- package/dist/vue-i18n-DXvyTCZf.js +2365 -0
- package/dist/{xlsx-DAczoc8y.js → xlsx-BTxt_Jg6.js} +224 -224
- package/dist/{zod-Aj-GuVQL.js → zod-T4wMYjWT.js} +1 -1
- package/package.json +6 -2
- package/dist/EditCampaignSheet.vue_vue_type_script_setup_true_lang-D_jXVE2I.js +0 -3494
- package/dist/Marketing-BKK45Eve.js +0 -236
- package/dist/ReviewFacebookCallback-DbSCILNN.js +0 -238
- package/dist/RuleGroup.vue_vue_type_script_setup_true_lang-CnaL93TF.js +0 -1883
- package/dist/Setting-BnFRI0Se.js +0 -2037
- package/dist/Settings-BvT8_tkQ.js +0 -179
- package/dist/StoreTransactions.vue_vue_type_script_setup_true_lang-CDu1QySl.js +0 -1264
- package/dist/TargetLocationInput.vue_vue_type_script_setup_true_lang-Dqz6jTlH.js +0 -142
- package/dist/google-C3S8u0mT.js +0 -4
- package/dist/objectid-DEMM_jdR.js +0 -145
- package/dist/rule-builder-Deufb6h_.js +0 -102
- package/dist/template-DeebIqJ_.js +0 -236
- package/dist/useMarketingMaterialActions-DpQCQHFI.js +0 -96
- package/dist/vue-i18n-Cze706-f.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-C5V6u2Qd.js";
|
|
3
|
+
import { a as C, R as e } from "./index-8mBfDn3M.js";
|
|
4
|
+
import { a as I } from "./RuleGroup.vue_vue_type_script_setup_true_lang-2L6ZGMW7.js";
|
|
5
|
+
import { p as N } from "./plugins-DEHr0UOe.js";
|
|
6
|
+
import { u as S } from "./membership-DfarOMtO.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-DXvyTCZf.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-DEHr0UOe.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-x6IScY4K.js";
|
|
8
|
+
import { u as ye } from "./business-D9fgkHxb.js";
|
|
9
|
+
import { u as _e } from "./campaign-eMaPX8r6.js";
|
|
10
|
+
import { a as Ce, b as B, c as D } from "./campaign-Dw_ujovr.js";
|
|
11
|
+
import { c as be, p as ve } from "./duplicateCampaign-BcpBfUGL.js";
|
|
12
|
+
import "./index-Ba719MYq.js";
|
|
13
|
+
import { u as He } from "./template-CcbNF4PF.js";
|
|
14
|
+
import { _ as Se } from "./EditCampaignSheet.vue_vue_type_script_setup_true_lang-BgPeHurN.js";
|
|
15
|
+
import { _ as ze } from "./SendVoucherSheet.vue_vue_type_script_setup_true_lang-D8wBgLlS.js";
|
|
16
|
+
import { u as Ue } from "./vue-i18n-DXvyTCZf.js";
|
|
17
|
+
import { T as Te } from "./trigger-Dipr6btC.js";
|
|
18
|
+
import { u as Ve } from "./onboardingSetup-DQt91O9f.js";
|
|
19
|
+
import { R as W, W as Pe, S as we } from "./index-8mBfDn3M.js";
|
|
20
|
+
import "./index-C5V6u2Qd.js";
|
|
21
|
+
import { i as $ } from "./helper-as9K-piK.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-DcZiikOH.js";
|
|
24
|
+
import { R } from "./app-BjdLqYQq.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-DXvyTCZf.js";
|
|
3
|
+
import { c as j } from "./index-DKI8401o.js";
|
|
4
|
+
import { g as W, F as Y } from "./index-C5V6u2Qd.js";
|
|
5
|
+
import { C as ee } from "./membership-DfarOMtO.js";
|
|
6
|
+
import { Z as x } from "./zod-T4wMYjWT.js";
|
|
7
|
+
import { S as te } from "./app-BjdLqYQq.js";
|
|
8
|
+
import { u as le } from "./business-D9fgkHxb.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-CKZscSjU.js";
|
|
11
|
+
import { _ as ae } from "./ImageInput.vue_vue_type_script_setup_true_lang-BZb-H4fM.js";
|
|
12
|
+
import { b as ie, a as se } from "./EffectSheet.vue_vue_type_style_index_0_lang-CUx8UIIq.js";
|
|
13
|
+
import { _ as me } from "./TargetLocationInput.vue_vue_type_script_setup_true_lang-DHi4rdT1.js";
|
|
14
|
+
import { i as re } from "./helper-as9K-piK.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-DXvyTCZf.js";
|
|
3
|
+
import { useRoute as D } from "vue-router";
|
|
4
|
+
import { S as H, a as M } from "./index-DKI8401o.js";
|
|
5
|
+
import { w as J } from "./index-wsCCqwdr.js";
|
|
6
|
+
import { _ as K } from "./WhatsappAccountStatusLabel.vue_vue_type_script_setup_true_lang-CPlyzkp4.js";
|
|
7
|
+
import { u as Q, _ as X } from "./WhatsappNotificationGroupDialog.vue_vue_type_script_setup_true_lang-DI0pcHcE.js";
|
|
8
|
+
import { R as Y } from "./app-BjdLqYQq.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-DXvyTCZf.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
|
+
};
|