@feedmepos/mf-connect 0.1.117-dev → 0.1.118-prod
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{App-BpcsgH7K.js → App-BHcTqLff.js} +89 -97
- package/dist/{Bin-Cm0wjQeR.js → Bin-DWhXJmHo.js} +8 -8
- package/dist/{Broadcast-BoJaHqnO.js → Broadcast-Ct1DL8Pd.js} +21 -22
- package/dist/{CampaignAnalytic-Eg4xZW0B.js → CampaignAnalytic-BSEKCM-4.js} +7 -7
- package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-BXylK6Ze.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-BxRg2Wu8.js} +10 -9
- package/dist/{Card-BfkMcFaG.js → Card-B7DwrAPH.js} +23 -23
- package/dist/{Collections-RXmxQbII.js → Collections-BJw4JJq_.js} +185 -197
- package/dist/{Credit-CsRPM1jv.js → Credit-BteIGXkp.js} +20 -21
- package/dist/{DateRangeChip.vue_vue_type_script_setup_true_lang-D2tvK7pw.js → DateRangeChip.vue_vue_type_script_setup_true_lang-CSFwIzOS.js} +1 -1
- package/dist/EditCampaignSheet.vue_vue_type_script_setup_true_lang-BJotVIKM.js +3496 -0
- package/dist/{EffectSheet.vue_vue_type_style_index_0_lang-CUx8UIIq.js → EffectSheet.vue_vue_type_style_index_0_lang-BDZ21UHA.js} +30 -30
- package/dist/{Experience-BC8Pj-v9.js → Experience-C_VQVfJX.js} +31 -32
- package/dist/{FileSaver.min-DzmoQFA0.js → FileSaver.min-CMiQUZQE.js} +1 -1
- package/dist/{Game-DJXNHFBs.js → Game-BiHMrMBF.js} +18 -19
- package/dist/{GiftCardSetup-_0n8lU-t.js → GiftCardSetup-DtJIm6oI.js} +31 -31
- package/dist/{GoalPickerPanel.vue_vue_type_script_setup_true_lang-C-AiJdui.js → GoalPickerPanel.vue_vue_type_script_setup_true_lang-BKGnPAEj.js} +7 -7
- package/dist/{Goals-DSZwKpds.js → Goals-B7VjLMDT.js} +4 -4
- package/dist/{ImageInput.vue_vue_type_script_setup_true_lang-BZb-H4fM.js → ImageInput.vue_vue_type_script_setup_true_lang-C9ecPgpJ.js} +1 -1
- package/dist/{Index-Cbi0bquE.js → Index-D_DIHKZG.js} +10 -10
- package/dist/{LocationPicker.vue_vue_type_script_setup_true_lang-GLhMtvzi.js → LocationPicker.vue_vue_type_script_setup_true_lang-DSwB0Ubn.js} +1 -1
- package/dist/{LottieAnimation.vue_vue_type_script_setup_true_lang-Bt9CO_QR.js → LottieAnimation.vue_vue_type_script_setup_true_lang-dk8_eVwd.js} +1 -1
- package/dist/{LoyaltyDashboard-fK90c27A.js → LoyaltyDashboard-DOgHeJdK.js} +15 -15
- package/dist/{MainLayout-Bf-l9yL4.js → MainLayout-CfYgoXLS.js} +1 -1
- package/dist/{MainLayout.vue_vue_type_script_setup_true_lang-COR6YYYI.js → MainLayout.vue_vue_type_script_setup_true_lang-Bz2LGHUd.js} +3 -3
- package/dist/{Marketing-B7cZGsO-.js → Marketing-B6TCrwaR.js} +4 -4
- package/dist/{MarketingMaterialEdit-5IcV2ct6.js → MarketingMaterialEdit-Bu3a9NGj.js} +211 -214
- package/dist/{Member-BGTrRVdq.js → Member-X51KrYXV.js} +7 -7
- package/dist/{MemberDetailSheet.vue_vue_type_script_setup_true_lang-DJr2hV2W.js → MemberDetailSheet.vue_vue_type_script_setup_true_lang-CYU21JaO.js} +48 -40
- package/dist/{MemberImportHistory--FxkTJmu.js → MemberImportHistory-CHd9fx7E.js} +7 -7
- package/dist/{MemberList-EjY5dgwt.js → MemberList-D4L3bSlw.js} +105 -103
- package/dist/{MemberTransactions-Oia7LIFK.js → MemberTransactions-CEgjfhnX.js} +1 -1
- package/dist/{MessageInput.vue_vue_type_script_setup_true_lang-CLOQZCYy.js → MessageInput.vue_vue_type_script_setup_true_lang-zsaig_yK.js} +12 -12
- package/dist/{MetricInfoTooltip.vue_vue_type_script_setup_true_lang-Ev3bB8cg.js → MetricInfoTooltip.vue_vue_type_script_setup_true_lang-YZQkKG66.js} +1 -1
- package/dist/{Mission-BFHYb4aT.js → Mission-BEVtvY0-.js} +21 -22
- package/dist/{Overview-d5U37aot.js → Overview-4QRkldza.js} +144 -145
- package/dist/{Overview-BVNyQxFL.js → Overview-DVoXXZ16.js} +21 -21
- package/dist/{Point-CXkqH02Z.js → Point-BJmebaL9.js} +21 -22
- package/dist/{Promotion-DdxNvlOO.js → Promotion-DWZZBofu.js} +131 -137
- package/dist/{Queue-C96oNKyP.js → Queue-DLdsyhCT.js} +46 -46
- package/dist/{Record-Bj2e2Y4i.js → Record-QOD3XELf.js} +9 -9
- package/dist/{Review-CJK5S1oI.js → Review-CKmhyuqj.js} +2 -2
- package/dist/ReviewFacebookCallback-C6DlaJ_j.js +238 -0
- package/dist/{ReviewGoogleCallback-Dmk4VyGA.js → ReviewGoogleCallback-CDriVQPZ.js} +5 -5
- package/dist/{Reward-Dh2YI0Xb.js → Reward-DftoZfPN.js} +16 -16
- package/dist/{RewardGroup.vue_vue_type_script_setup_true_lang-U47m3AAn.js → RewardGroup.vue_vue_type_script_setup_true_lang-ZgYX2QwC.js} +14 -14
- package/dist/RuleGroup.vue_vue_type_script_setup_true_lang-DHmBwLNP.js +1884 -0
- package/dist/{Segment-FYvtCkqH.js → Segment-URdB0lnl.js} +307 -304
- package/dist/{SendCollectionSheet.vue_vue_type_script_setup_true_lang-DPZZz2e0.js → SendCollectionSheet.vue_vue_type_script_setup_true_lang-DmI2LAsz.js} +15 -15
- package/dist/{SendVoucherSheet.vue_vue_type_script_setup_true_lang-D8wBgLlS.js → SendVoucherSheet.vue_vue_type_script_setup_true_lang-BCEgZzA4.js} +4 -4
- package/dist/{Setting-CUAWjCqa.js → Setting-BDIHH2Wk.js} +148 -159
- package/dist/{SettingAdvertisements-COIQwUD6.js → SettingAdvertisements-CkJYZnIN.js} +12 -12
- package/dist/Settings-9gaegvYJ.js +179 -0
- package/dist/{Store-BAXwiyvx.js → Store-CV0kYncl.js} +29 -29
- package/dist/{StoreRewards-2mUavtUg.js → StoreRewards-30kSkAZ_.js} +15 -15
- package/dist/StoreTransactions.vue_vue_type_script_setup_true_lang-Dgwyk3NA.js +1265 -0
- package/dist/TargetLocationInput.vue_vue_type_script_setup_true_lang-CDUhH6wp.js +142 -0
- package/dist/{Tier-BmAOzRHL.js → Tier-DiQSC3iv.js} +688 -2576
- package/dist/{Title-DMxiUg30.js → Title-DixxpjAg.js} +95 -96
- package/dist/{Transaction-CF6hXEpN.js → Transaction-DQK4LUGD.js} +2 -2
- package/dist/{UserRuleGroup.vue_vue_type_script_setup_true_lang-BON_t0dL.js → UserRuleGroup.vue_vue_type_script_setup_true_lang-CL-GKkuD.js} +26 -26
- package/dist/{Voucher-DrtITxq-.js → Voucher-CSVlk_Hr.js} +19 -19
- package/dist/{VoucherEditor.vue_vue_type_script_setup_true_lang-1DZOzJKx.js → VoucherEditor.vue_vue_type_script_setup_true_lang-CiSoy0Ky.js} +12 -12
- package/dist/{WhatsappAccount-Bb0Y7ikk.js → WhatsappAccount-CQYbv2Ew.js} +66 -64
- package/dist/{WhatsappAccountStatusLabel.vue_vue_type_script_setup_true_lang-CPlyzkp4.js → WhatsappAccountStatusLabel.vue_vue_type_script_setup_true_lang-DjgRo9iA.js} +1 -1
- package/dist/{WhatsappBot-DNvvaPey.js → WhatsappBot-DdO9Bfvh.js} +324 -322
- package/dist/{WhatsappBotLogs-C8M-1pvv.js → WhatsappBotLogs-CjjWJGND.js} +11 -11
- package/dist/{WhatsappBotSettings-D6egqUyU.js → WhatsappBotSettings-DYGx-kRr.js} +287 -288
- package/dist/{WhatsappLayout-DeQTPuF6.js → WhatsappLayout-B6k_79Kl.js} +3 -3
- package/dist/WhatsappNotificationGroupDialog.vue_vue_type_script_setup_true_lang-DTUytfe5.js +261 -0
- package/dist/{ZodTextField.vue_vue_type_script_setup_true_lang-CKZscSjU.js → ZodTextField.vue_vue_type_script_setup_true_lang-DdCUr_Zm.js} +2 -2
- package/dist/{app-BjdLqYQq.js → app-CqQeNnGq.js} +3382 -4110
- package/dist/app.js +3 -4
- package/dist/{base.export-B68z5BF6.js → base.export-Dls5LQeu.js} +2 -2
- package/dist/{business-D9fgkHxb.js → business-gvLSQklz.js} +1 -1
- package/dist/{campaign-Dw_ujovr.js → campaign-BqazvOUj.js} +94 -121
- package/dist/{campaign-eMaPX8r6.js → campaign-Cd6GmA4U.js} +25 -31
- package/dist/{campaign.enum-Dx-Zo68Q.js → campaign.enum-BqekIiiN.js} +1 -2
- package/dist/{campaign.fn-DFjGNvmN.js → campaign.fn-C0oMb1fs.js} +99 -99
- package/dist/{collection.fn-CCOWtB-c.js → collection.fn-CERMsFPh.js} +2 -2
- package/dist/{currency-CTLKReFC.js → currency-IkiKiNg1.js} +1 -1
- package/dist/{effect-CTI1ZH57.js → effect-j_T62HBN.js} +1 -1
- package/dist/{email-addresses-B74e3bnB.js → email-addresses-CN1kPlEj.js} +2 -2
- package/dist/{feature-flag-DVdEaChJ.js → feature-flag-DDfyOLsv.js} +88 -88
- package/dist/google-C3S8u0mT.js +4 -0
- package/dist/{helper-as9K-piK.js → helper-DVUe13eh.js} +1 -1
- package/dist/{index-BW7FoVEA.js → index-9RBtEPPj.js} +1 -1
- package/dist/{index-Czg-2Ni0.js → index-BmIfGArh.js} +3 -3
- package/dist/{index-DKI8401o.js → index-BvkqHehI.js} +7 -7
- package/dist/{index-B0h0iYWP.js → index-BvoOJdfc.js} +2 -2
- package/dist/{index-CWLOcQ6j.js → index-C-IajuP1.js} +9 -9
- package/dist/{index-3LjKJhQa.js → index-COuLtOaw.js} +1 -1
- package/dist/{index-QHqcSN2q.js → index-CPyK4a5J.js} +4 -4
- package/dist/{index-BbVbqe4Y.js → index-CWGbeg5X.js} +6 -19
- package/dist/{index-CHU3UePP.js → index-C_SaKemI.js} +1 -1
- package/dist/{index-BEKMTiFb.js → index-Cjy0SXCn.js} +197 -197
- package/dist/{index-C5V6u2Qd.js → index-DALsfLV7.js} +2613 -2699
- package/dist/{index-CQxkDpX0.js → index-DMiaWY0s.js} +581 -682
- package/dist/{index-B_wRpO02.js → index-D_1pnadB.js} +15 -29
- package/dist/{index-TAoQpeLQ.js → index-DzbVgUEP.js} +1 -1
- package/dist/{index-C-iwb2Ln.js → index-I9lmcd2w.js} +2 -2
- package/dist/{index-wsCCqwdr.js → index-UJHdDEG1.js} +2 -2
- package/dist/{index-DcZiikOH.js → index-ep_Kxxid.js} +2 -2
- package/dist/{index-BhTrG89b.js → index-fNYUguDQ.js} +232 -389
- package/dist/{index-Ba719MYq.js → index-jS16KX9p.js} +1 -1
- package/dist/{index-Ckz6u3ac.js → index-k7FFxt_M.js} +2 -2
- package/dist/{index-8mBfDn3M.js → index-lzQ6ehOk.js} +251 -608
- package/dist/{index.esm2017-DL6rTGDW.js → index.esm2017-vJKhLfdu.js} +177 -177
- package/dist/{loading-x6IScY4K.js → loading-jZV2Dm--.js} +1 -1
- package/dist/{lodash-nwnDizYo.js → lodash-C2pLek0l.js} +1 -1
- package/dist/{member-import-C-b01Tyd.js → member-import-BKI7soRD.js} +1 -1
- package/dist/{membership-DfarOMtO.js → membership-smdlFpPr.js} +2 -2
- package/dist/{money-CFn-jR4W.js → money-5XyTnYwW.js} +1 -1
- package/dist/{number-CSlyDL2x.js → number-DHU9qJJQ.js} +1 -1
- package/dist/objectid-jT5g6pGt.js +145 -0
- package/dist/{onboarding-DyaFaaF2.js → onboarding-C_5pyGx-.js} +25 -25
- package/dist/{onboardingSetup-DQt91O9f.js → onboardingSetup-Bd1V-Ipy.js} +2 -2
- package/dist/{plugins-DEHr0UOe.js → plugins-D1Ru-da5.js} +3 -3
- package/dist/{reward-Du_Pv-4p.js → reward-BqPl68Xk.js} +1 -1
- package/dist/{rule-DfqmQTVK.js → rule-WBrRXwL-.js} +492 -572
- package/dist/rule-builder-DAlSbaWh.js +102 -0
- package/dist/style.css +1 -1
- package/dist/template-DDquG4Xc.js +236 -0
- package/dist/{timezone-_4tabIaK.js → timezone-O4qrCDcK.js} +1 -1
- package/dist/{transaction.fn-C46PHwCV.js → transaction.fn-CY_F8Nb8.js} +2 -2
- package/dist/{trigger-Dipr6btC.js → trigger-D-vySeIB.js} +8 -8
- package/dist/{useMarketingMaterialActions-BAw2ZjeF.js → useMarketingMaterialActions-kA6SLHy_.js} +4 -4
- package/dist/{usePagination-D6RZ18zS.js → usePagination-AYE_RJH2.js} +1 -1
- package/dist/{user-BCexQj3Q.js → user-DJcMkYXP.js} +1 -1
- package/dist/vue-i18n-kXHiDb_1.js +2365 -0
- package/dist/{xlsx-BTxt_Jg6.js → xlsx--s3hBdDk.js} +224 -224
- package/dist/{zod-T4wMYjWT.js → zod-IpHRbxaJ.js} +1 -1
- package/package.json +2 -6
- package/dist/AuditLogs-BNnUiVnD.js +0 -2016
- package/dist/EditCampaignSheet.vue_vue_type_script_setup_true_lang-BgPeHurN.js +0 -4442
- package/dist/Grab-DDc7e-AC.js +0 -301
- package/dist/ReviewFacebookCallback-ChG7TRy5.js +0 -225
- package/dist/RuleGroup.vue_vue_type_script_setup_true_lang-2L6ZGMW7.js +0 -1923
- package/dist/Settings-D2gFPvmW.js +0 -286
- package/dist/StoreTransactions.vue_vue_type_script_setup_true_lang-5g3yIL1a.js +0 -1319
- package/dist/TargetLocationInput.vue_vue_type_script_setup_true_lang-DHi4rdT1.js +0 -7007
- package/dist/WhatsappNotificationGroupDialog.vue_vue_type_script_setup_true_lang-DI0pcHcE.js +0 -253
- package/dist/duplicateCampaign-BcpBfUGL.js +0 -51
- package/dist/google-BQK68wbe.js +0 -5
- package/dist/objectid-zcT6ESET.js +0 -145
- package/dist/template-CcbNF4PF.js +0 -188
- package/dist/vue-i18n-DXvyTCZf.js +0 -2365
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as f, computed as b, resolveComponent as s, openBlock as t, createElementBlock as v, Fragment as y, createVNode as m, unref as o, createElementVNode as k, createBlock as l, KeepAlive as x, resolveDynamicComponent as u, createCommentVNode as F } from "vue";
|
|
2
|
-
import { _ as T, a as g } from "./StoreTransactions.vue_vue_type_script_setup_true_lang-
|
|
3
|
-
import { u as C } from "./vue-i18n-
|
|
2
|
+
import { _ as T, a as g } from "./StoreTransactions.vue_vue_type_script_setup_true_lang-Dgwyk3NA.js";
|
|
3
|
+
import { u as C } from "./vue-i18n-kXHiDb_1.js";
|
|
4
4
|
import { useRoute as V, useRouter as q } from "vue-router";
|
|
5
5
|
const B = { class: "px-24 flex flex-col gap-y-32 pb-24" }, $ = /* @__PURE__ */ f({
|
|
6
6
|
__name: "Transaction",
|
|
@@ -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-DALsfLV7.js";
|
|
3
|
+
import { i as C, R as e } from "./rule-builder-DAlSbaWh.js";
|
|
4
|
+
import { _ as I } from "./RuleGroup.vue_vue_type_script_setup_true_lang-DHmBwLNP.js";
|
|
5
|
+
import { p as N } from "./plugins-D1Ru-da5.js";
|
|
6
|
+
import { u as S } from "./membership-smdlFpPr.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-kXHiDb_1.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(n, { emit: f }) {
|
|
19
|
+
const o = n, m = 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(m),
|
|
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(n, { emit: f }) {
|
|
49
|
+
const { t: o } = x(), m = n, r = f, u = E(
|
|
50
|
+
m.modelValue ? e.getRules(m.modelValue.rules.g_user).length > 0 ? "custom" : e.getRules(m.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 = m.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
|
+
m.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, (a) => V(p, {
|
|
90
|
+
key: a.value,
|
|
91
|
+
value: a.value,
|
|
92
|
+
label: a.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 = n.modelValue) == null ? void 0 : d.rules.g_segment) ?? l(e).scaffoldGroup("g_segment"),
|
|
100
|
+
"onUpdate:modelValue": t[1] || (t[1] = (a) => r(
|
|
101
101
|
"update:model-value",
|
|
102
102
|
l(e).setRuleToGroup(
|
|
103
|
-
|
|
104
|
-
|
|
103
|
+
n.modelValue ?? l(e).scaffoldGroup(),
|
|
104
|
+
a,
|
|
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": ((_ = n.modelValue) == null ? void 0 : _.rules.g_user) ?? l(e).scaffoldGroup("g_user"),
|
|
115
|
+
"onUpdate:modelValue": t[2] || (t[2] = (a) => r(
|
|
116
116
|
"update:model-value",
|
|
117
117
|
l(e).setRuleToGroup(
|
|
118
|
-
|
|
119
|
-
|
|
118
|
+
n.modelValue ?? l(e).scaffoldGroup(),
|
|
119
|
+
a,
|
|
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-D1Ru-da5.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 } from "./
|
|
12
|
-
import "./index-
|
|
13
|
-
import {
|
|
14
|
-
import { _ as
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import
|
|
20
|
-
import "./
|
|
21
|
-
import { i as $ } from "./helper-
|
|
7
|
+
import { u as fe } from "./loading-jZV2Dm--.js";
|
|
8
|
+
import { u as ye } from "./business-gvLSQklz.js";
|
|
9
|
+
import { u as _e } from "./campaign-Cd6GmA4U.js";
|
|
10
|
+
import { g as Ce, a as B, b as D } from "./campaign-BqazvOUj.js";
|
|
11
|
+
import { c as be, p as ve, u as He } from "./template-DDquG4Xc.js";
|
|
12
|
+
import "./index-jS16KX9p.js";
|
|
13
|
+
import { _ as Se } from "./EditCampaignSheet.vue_vue_type_script_setup_true_lang-BJotVIKM.js";
|
|
14
|
+
import { _ as ze } from "./SendVoucherSheet.vue_vue_type_script_setup_true_lang-BCEgZzA4.js";
|
|
15
|
+
import { u as Ue } from "./vue-i18n-kXHiDb_1.js";
|
|
16
|
+
import { T as Te } from "./trigger-D-vySeIB.js";
|
|
17
|
+
import { u as Ve } from "./onboardingSetup-Bd1V-Ipy.js";
|
|
18
|
+
import { W as Pe, S as we } from "./index-lzQ6ehOk.js";
|
|
19
|
+
import "./index-DALsfLV7.js";
|
|
20
|
+
import { R as W } from "./rule-builder-DAlSbaWh.js";
|
|
21
|
+
import { i as $ } from "./helper-DVUe13eh.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-ep_Kxxid.js";
|
|
24
|
+
import { R } from "./app-CqQeNnGq.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
|
|
398
|
+
var xe = { authUrl: "https://portal-v2.feedmeapi.com/", slackWebhookUrl: "https://hooks.slack.com/services/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", appUrl: "member.feedme.cc", crmUrl: "crm.feedme.cc", paymentPortalUrl: "https://portal.feedme.cc/payment/payout-account", licensePortalUrl: "https://license.feedme.cc/", marketingV1Portal: "https://marketing-v1.feedme.cc", voucherAppUrl: "https://voucher.feedme.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-kXHiDb_1.js";
|
|
3
|
+
import { c as j } from "./index-BvkqHehI.js";
|
|
4
|
+
import { e as W, F as Y } from "./index-DALsfLV7.js";
|
|
5
|
+
import { C as ee } from "./membership-smdlFpPr.js";
|
|
6
|
+
import { Z as x } from "./zod-IpHRbxaJ.js";
|
|
7
|
+
import { S as te } from "./app-CqQeNnGq.js";
|
|
8
|
+
import { u as le } from "./business-gvLSQklz.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 { b as ie, a as se } from "./EffectSheet.vue_vue_type_style_index_0_lang-
|
|
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-DdCUr_Zm.js";
|
|
11
|
+
import { _ as ae } from "./ImageInput.vue_vue_type_script_setup_true_lang-C9ecPgpJ.js";
|
|
12
|
+
import { b as ie, a as se } from "./EffectSheet.vue_vue_type_style_index_0_lang-BDZ21UHA.js";
|
|
13
|
+
import { _ as me } from "./TargetLocationInput.vue_vue_type_script_setup_true_lang-CDUhH6wp.js";
|
|
14
|
+
import { i as re } from "./helper-DVUe13eh.js";
|
|
15
15
|
const ue = { class: "flex justify-end gap-8 w-full" }, ce = /* @__PURE__ */ B({
|
|
16
16
|
__name: "MenuSheet",
|
|
17
17
|
props: {
|
|
@@ -1,138 +1,140 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { u as
|
|
3
|
-
import { useRoute as
|
|
4
|
-
import { S as
|
|
5
|
-
import { w as
|
|
6
|
-
import { _ as
|
|
7
|
-
import { u as
|
|
8
|
-
import { R as
|
|
9
|
-
const
|
|
1
|
+
import { defineComponent as U, computed as A, ref as m, watch as z, onBeforeUnmount as G, resolveComponent as v, openBlock as c, createElementBlock as u, Fragment as F, createElementVNode as o, createVNode as i, unref as e, withCtx as O, createTextVNode as I, toDisplayString as l, normalizeClass as W, createCommentVNode as T, createBlock as L } from "vue";
|
|
2
|
+
import { u as D } from "./vue-i18n-kXHiDb_1.js";
|
|
3
|
+
import { useRoute as H } from "vue-router";
|
|
4
|
+
import { S as M, a as J } from "./index-BvkqHehI.js";
|
|
5
|
+
import { w as K } from "./index-UJHdDEG1.js";
|
|
6
|
+
import { _ as Q } from "./WhatsappAccountStatusLabel.vue_vue_type_script_setup_true_lang-DjgRo9iA.js";
|
|
7
|
+
import { u as X, _ as Y } from "./WhatsappNotificationGroupDialog.vue_vue_type_script_setup_true_lang-DTUytfe5.js";
|
|
8
|
+
import { R as Z } from "./app-CqQeNnGq.js";
|
|
9
|
+
const q = { class: "px-[24px] xs:px-[12px] pt-[20px] pb-[40px] text-fm-color-typo-primary" }, ee = { class: "mx-auto w-full min-w-0 flex flex-col gap-[24px]" }, te = {
|
|
10
10
|
key: 0,
|
|
11
|
-
role: "status",
|
|
12
11
|
class: "py-[56px] flex flex-col items-center gap-[12px] text-[14px] text-fm-color-typo-secondary"
|
|
13
|
-
},
|
|
12
|
+
}, oe = {
|
|
14
13
|
key: 1,
|
|
15
14
|
class: "border border-fm-color-neutral-gray-200 rounded-[16px] px-[24px] py-[56px] flex flex-col items-center text-center gap-[16px]"
|
|
16
|
-
},
|
|
15
|
+
}, ne = {
|
|
17
16
|
role: "alert",
|
|
18
17
|
class: "text-[14px] text-fm-color-typo-error"
|
|
19
|
-
},
|
|
18
|
+
}, re = { class: "flex items-center gap-[16px]" }, le = ["src"], se = { key: 1 }, ae = { class: "min-w-0 flex-1 flex flex-col gap-[2px]" }, ce = { 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" }, pe = { class: "break-all" }, ue = {
|
|
20
19
|
"aria-labelledby": "notification-group-title",
|
|
21
20
|
class: "border border-fm-color-neutral-gray-100 rounded-[16px] p-[24px] xs:p-[20px] flex items-center gap-[16px] flex-wrap"
|
|
22
|
-
},
|
|
21
|
+
}, de = {
|
|
23
22
|
"aria-hidden": "true",
|
|
24
23
|
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
|
-
},
|
|
24
|
+
}, fe = { class: "min-w-[240px] xs:min-w-0 flex-1 flex flex-col gap-[4px]" }, xe = {
|
|
26
25
|
id: "notification-group-title",
|
|
27
26
|
class: "text-[16px] leading-[24px] font-semibold"
|
|
28
|
-
},
|
|
27
|
+
}, me = { class: "text-[14px] leading-[20px] text-fm-color-typo-secondary [text-wrap:pretty]" }, Ce = /* @__PURE__ */ U({
|
|
29
28
|
__name: "WhatsappAccount",
|
|
30
|
-
setup(
|
|
31
|
-
const { t: n } =
|
|
29
|
+
setup(ve) {
|
|
30
|
+
const { t: n } = D(), b = H(), f = A(() => M.getBusinessId() ?? ""), w = A(
|
|
32
31
|
() => typeof b.params.clientId == "string" ? b.params.clientId : ""
|
|
33
32
|
), r = m(), _ = m(!0), p = m(""), d = m(!1), {
|
|
34
33
|
name: E,
|
|
35
34
|
phoneNumber: N,
|
|
36
35
|
initials: V,
|
|
37
36
|
state: P,
|
|
38
|
-
avatarColor:
|
|
37
|
+
avatarColor: R,
|
|
39
38
|
profilePictureUrl: B,
|
|
40
39
|
profilePictureFailed: k
|
|
41
|
-
} =
|
|
42
|
-
let
|
|
40
|
+
} = X(r);
|
|
41
|
+
let s, h;
|
|
42
|
+
function $() {
|
|
43
|
+
r.value && (h = setTimeout(() => void g(!0), 1e4));
|
|
44
|
+
}
|
|
43
45
|
async function g(y = !1) {
|
|
44
|
-
clearTimeout(h),
|
|
46
|
+
clearTimeout(h), s == null || s.abort();
|
|
45
47
|
const t = new AbortController();
|
|
46
|
-
|
|
48
|
+
s = t, y || (_.value = !0, p.value = "");
|
|
47
49
|
try {
|
|
48
50
|
if (!f.value)
|
|
49
51
|
throw new Error(n("connect.whatsappBot.errors.selectBusiness"));
|
|
50
|
-
const
|
|
52
|
+
const a = await K.getClient(
|
|
51
53
|
f.value,
|
|
52
54
|
w.value,
|
|
53
55
|
t.signal
|
|
54
56
|
);
|
|
55
57
|
if (t.signal.aborted) return;
|
|
56
|
-
r.value =
|
|
57
|
-
} catch (
|
|
58
|
+
r.value = a, p.value = "";
|
|
59
|
+
} catch (a) {
|
|
58
60
|
if (t.signal.aborted) return;
|
|
59
|
-
|
|
61
|
+
a instanceof J && a.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
62
|
} finally {
|
|
61
|
-
t.signal.aborted || (_.value = !1,
|
|
63
|
+
t.signal.aborted || (_.value = !1, $());
|
|
62
64
|
}
|
|
63
65
|
}
|
|
64
|
-
return
|
|
66
|
+
return z(
|
|
65
67
|
[f, w],
|
|
66
68
|
() => {
|
|
67
69
|
d.value = !1, r.value = void 0, g();
|
|
68
70
|
},
|
|
69
71
|
{ immediate: !0 }
|
|
70
|
-
),
|
|
71
|
-
|
|
72
|
+
), G(() => {
|
|
73
|
+
s == null || s.abort(), clearTimeout(h);
|
|
72
74
|
}), (y, t) => {
|
|
73
|
-
const
|
|
74
|
-
return
|
|
75
|
-
o("div",
|
|
76
|
-
o("div",
|
|
77
|
-
|
|
78
|
-
to: { name: e(
|
|
75
|
+
const a = v("FmIcon"), S = v("RouterLink"), j = v("FmCircularProgress"), C = v("FmButton");
|
|
76
|
+
return c(), u(F, null, [
|
|
77
|
+
o("div", q, [
|
|
78
|
+
o("div", ee, [
|
|
79
|
+
i(S, {
|
|
80
|
+
to: { name: e(Z)["$connect-WHATSAPP_BOT"] },
|
|
79
81
|
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
82
|
}, {
|
|
81
|
-
default:
|
|
82
|
-
|
|
83
|
+
default: O(() => [
|
|
84
|
+
i(a, {
|
|
83
85
|
name: "chevron_left",
|
|
84
86
|
size: "sm"
|
|
85
87
|
}),
|
|
86
|
-
I(" " +
|
|
88
|
+
I(" " + l(e(n)("connect.navigation.whatsappBot")), 1)
|
|
87
89
|
]),
|
|
88
90
|
_: 1
|
|
89
91
|
}, 8, ["to"]),
|
|
90
|
-
_.value ? (
|
|
91
|
-
|
|
92
|
-
I(" " +
|
|
93
|
-
])) : p.value ? (
|
|
94
|
-
o("p",
|
|
95
|
-
|
|
92
|
+
_.value ? (c(), u("output", te, [
|
|
93
|
+
i(j),
|
|
94
|
+
I(" " + l(e(n)("connect.whatsappBot.loadingAccount")), 1)
|
|
95
|
+
])) : p.value ? (c(), u("div", oe, [
|
|
96
|
+
o("p", ne, l(p.value), 1),
|
|
97
|
+
i(C, {
|
|
96
98
|
label: e(n)("connect.whatsappBot.tryAgain"),
|
|
97
99
|
"prepend-icon": "refresh",
|
|
98
100
|
class: "!rounded-full [&_.label]:text-[14px]",
|
|
99
101
|
onClick: t[0] || (t[0] = (x) => g())
|
|
100
102
|
}, null, 8, ["label"])
|
|
101
|
-
])) : r.value ? (
|
|
102
|
-
o("div",
|
|
103
|
+
])) : r.value ? (c(), u(F, { key: 2 }, [
|
|
104
|
+
o("div", re, [
|
|
103
105
|
o("div", {
|
|
104
106
|
"aria-hidden": "true",
|
|
105
|
-
class:
|
|
107
|
+
class: W(["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(R)])
|
|
106
108
|
}, [
|
|
107
|
-
e(B) && !e(k) ? (
|
|
109
|
+
e(B) && !e(k) ? (c(), u("img", {
|
|
108
110
|
key: 0,
|
|
109
111
|
src: e(B),
|
|
110
112
|
alt: "",
|
|
111
113
|
class: "w-full h-full object-cover",
|
|
112
114
|
referrerpolicy: "no-referrer",
|
|
113
115
|
onError: t[1] || (t[1] = (x) => k.value = !0)
|
|
114
|
-
}, null, 40,
|
|
116
|
+
}, null, 40, le)) : (c(), u("span", se, l(e(V)), 1))
|
|
115
117
|
], 2),
|
|
116
|
-
o("div",
|
|
117
|
-
o("h1",
|
|
118
|
+
o("div", ae, [
|
|
119
|
+
o("h1", ce, l(e(E)), 1),
|
|
118
120
|
o("div", ie, [
|
|
119
|
-
o("span",
|
|
120
|
-
|
|
121
|
+
o("span", pe, l(e(N)), 1),
|
|
122
|
+
i(Q, { state: e(P) }, null, 8, ["state"])
|
|
121
123
|
])
|
|
122
124
|
])
|
|
123
125
|
]),
|
|
124
|
-
o("section",
|
|
125
|
-
o("div",
|
|
126
|
-
|
|
126
|
+
o("section", ue, [
|
|
127
|
+
o("div", de, [
|
|
128
|
+
i(a, {
|
|
127
129
|
name: "notifications",
|
|
128
130
|
size: "md"
|
|
129
131
|
})
|
|
130
132
|
]),
|
|
131
|
-
o("div",
|
|
132
|
-
o("h2",
|
|
133
|
-
o("p",
|
|
133
|
+
o("div", fe, [
|
|
134
|
+
o("h2", xe, l(e(n)("connect.whatsappBot.notificationGroup.title")), 1),
|
|
135
|
+
o("p", me, l(e(n)("connect.whatsappBot.notificationGroup.description")), 1)
|
|
134
136
|
]),
|
|
135
|
-
|
|
137
|
+
i(C, {
|
|
136
138
|
variant: "secondary",
|
|
137
139
|
"border-color": "neutral-gray-200",
|
|
138
140
|
label: e(n)("connect.whatsappBot.notificationGroup.join"),
|
|
@@ -144,7 +146,7 @@ const Z = { class: "px-[24px] xs:px-[12px] pt-[20px] pb-[40px] text-fm-color-typ
|
|
|
144
146
|
], 64)) : T("", !0)
|
|
145
147
|
])
|
|
146
148
|
]),
|
|
147
|
-
r.value ? (
|
|
149
|
+
r.value ? (c(), L(Y, {
|
|
148
150
|
key: 0,
|
|
149
151
|
modelValue: d.value,
|
|
150
152
|
"onUpdate:modelValue": t[3] || (t[3] = (x) => d.value = x),
|
|
@@ -155,5 +157,5 @@ const Z = { class: "px-[24px] xs:px-[12px] pt-[20px] pb-[40px] text-fm-color-typ
|
|
|
155
157
|
}
|
|
156
158
|
});
|
|
157
159
|
export {
|
|
158
|
-
|
|
160
|
+
Ce as default
|
|
159
161
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
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-
|
|
2
|
+
import { u as f } from "./vue-i18n-kXHiDb_1.js";
|
|
3
3
|
const h = /* @__PURE__ */ l({
|
|
4
4
|
__name: "WhatsappAccountStatusLabel",
|
|
5
5
|
props: {
|