@feedmepos/mf-connect 0.1.126-dev → 0.1.126-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-B_Yp6cvN.js → App-DRHHPaMz.js} +216 -224
- package/dist/{Bin-CmIpEIwe.js → Bin-FkcYLSTm.js} +8 -8
- package/dist/{Broadcast-DkV4BdU_.js → Broadcast-Cgqp_BMa.js} +21 -22
- package/dist/{CampaignAnalytic-Dkwo_lpB.js → CampaignAnalytic-kKZ_BwW0.js} +7 -7
- package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-Ch8Gblw6.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-CX0mWLjO.js} +10 -9
- package/dist/{Card-DXCkG34M.js → Card-Bu1y37hV.js} +23 -23
- package/dist/{Collections-CybPfSO4.js → Collections-B3mJkBCT.js} +185 -197
- package/dist/{Credit-B-KUzWsX.js → Credit-Bn-2EcVy.js} +20 -21
- package/dist/{DateRangeChip.vue_vue_type_script_setup_true_lang-CWHYeYVD.js → DateRangeChip.vue_vue_type_script_setup_true_lang-Cz7pZ7LD.js} +1 -1
- package/dist/EditCampaignSheet.vue_vue_type_script_setup_true_lang-DIUEjCFW.js +3638 -0
- package/dist/{EffectSheet.vue_vue_type_style_index_0_lang-nMcH6y5e.js → EffectSheet.vue_vue_type_style_index_0_lang-B7XBiv4l.js} +33 -33
- package/dist/{Experience-Q2NHpa-V.js → Experience-CunbmoAu.js} +31 -32
- package/dist/{FileSaver.min-CKw2rn-J.js → FileSaver.min-ChFSxYyS.js} +1 -1
- package/dist/{Game-lZvkg04z.js → Game-dFDwx_UJ.js} +18 -19
- package/dist/{GiftCardSetup-CPRju80_.js → GiftCardSetup-DYpEqqX0.js} +31 -31
- package/dist/{GoalPickerPanel.vue_vue_type_script_setup_true_lang-Ci686UoB.js → GoalPickerPanel.vue_vue_type_script_setup_true_lang-DxJdI6gc.js} +7 -7
- package/dist/{Goals-asGsUeVv.js → Goals-DuZzgM_K.js} +4 -4
- package/dist/{ImageInput.vue_vue_type_script_setup_true_lang-nk87zPWH.js → ImageInput.vue_vue_type_script_setup_true_lang-lDulspkF.js} +1 -1
- package/dist/{Index-DIasPS4Y.js → Index-BxB2ohT0.js} +10 -10
- package/dist/{LocationPicker.vue_vue_type_script_setup_true_lang-DkOn8p1v.js → LocationPicker.vue_vue_type_script_setup_true_lang-9sKJE1A5.js} +1 -1
- package/dist/{LottieAnimation.vue_vue_type_script_setup_true_lang-BdSkxiP-.js → LottieAnimation.vue_vue_type_script_setup_true_lang-CxBNYzcz.js} +1 -1
- package/dist/{LoyaltyDashboard-DlCsZ3YX.js → LoyaltyDashboard-DQzGvQ7j.js} +15 -15
- package/dist/{MainLayout-DLObnTAA.js → MainLayout-MAZ1S06H.js} +1 -1
- package/dist/{MainLayout.vue_vue_type_script_setup_true_lang-DigSZKt1.js → MainLayout.vue_vue_type_script_setup_true_lang-CeF3LU-N.js} +3 -3
- package/dist/{Marketing-JflPW-w9.js → Marketing-ACF6F7be.js} +4 -4
- package/dist/{MarketingMaterialEdit-fSAB3YVb.js → MarketingMaterialEdit-B8NfkoHg.js} +211 -214
- package/dist/{Member-CzNahXTj.js → Member-rLxDUOr8.js} +7 -7
- package/dist/{MemberDetailSheet.vue_vue_type_script_setup_true_lang-bqWUIbMG.js → MemberDetailSheet.vue_vue_type_script_setup_true_lang-Bq3UKX7v.js} +48 -40
- package/dist/{MemberImportHistory--r_A_2Es.js → MemberImportHistory-BuG6DmdV.js} +7 -7
- package/dist/{MemberList-CQZQ4sN8.js → MemberList-CC6zm_I6.js} +105 -103
- package/dist/{MemberTransactions-BPg9JaUA.js → MemberTransactions-Bw2xu6jZ.js} +1 -1
- package/dist/{MessageInput.vue_vue_type_script_setup_true_lang-BhIFChx-.js → MessageInput.vue_vue_type_script_setup_true_lang-Cav8gQUK.js} +12 -12
- package/dist/{MetricInfoTooltip.vue_vue_type_script_setup_true_lang-CdGSNqEp.js → MetricInfoTooltip.vue_vue_type_script_setup_true_lang-8wdY4FnI.js} +1 -1
- package/dist/{Mission-CYCB3YQc.js → Mission-DnEcbALs.js} +21 -22
- package/dist/{Overview-DuNuUYYq.js → Overview-COytI5xN.js} +21 -21
- package/dist/{Overview-B5ylMBHT.js → Overview-DShFohlk.js} +144 -145
- package/dist/{Point-DG-Uwj25.js → Point-CWYwlx0i.js} +21 -22
- package/dist/{Promotion-DqxBQ1yO.js → Promotion-LBrQYtad.js} +131 -137
- package/dist/{Queue-Cy8LGt_Y.js → Queue-DKg5EvDM.js} +46 -46
- package/dist/{Record-CzXbu41w.js → Record--lYpawLN.js} +9 -9
- package/dist/{Review-7VL6gIqp.js → Review-C4pNmJ7n.js} +2 -2
- package/dist/ReviewFacebookCallback-BYXwKQNG.js +238 -0
- package/dist/{ReviewGoogleCallback-1JXR_f5O.js → ReviewGoogleCallback-ge8fL_A-.js} +5 -5
- package/dist/{Reward-BKhUDEu3.js → Reward-B67r1Bpz.js} +16 -16
- package/dist/{RewardGroup.vue_vue_type_script_setup_true_lang-DjjCytWF.js → RewardGroup.vue_vue_type_script_setup_true_lang-Bt0Kx2--.js} +14 -14
- package/dist/RuleGroup.vue_vue_type_script_setup_true_lang-fLtn32Rw.js +1884 -0
- package/dist/{Segment-DdHDJhaS.js → Segment-DeSC3z5G.js} +307 -304
- package/dist/{SendCollectionSheet.vue_vue_type_script_setup_true_lang-9kGUkHMi.js → SendCollectionSheet.vue_vue_type_script_setup_true_lang-DdjC7X1V.js} +15 -15
- package/dist/{SendVoucherSheet.vue_vue_type_script_setup_true_lang-DeFw0px7.js → SendVoucherSheet.vue_vue_type_script_setup_true_lang-Crys59UO.js} +4 -4
- package/dist/{Setting-DZKGXw-i.js → Setting-DiDcMU5E.js} +17 -17
- package/dist/{SettingAdvertisements-BBNs8tCw.js → SettingAdvertisements-3wMI9egH.js} +12 -12
- package/dist/Settings-BR6Y1DBZ.js +179 -0
- package/dist/{Store-C8IlE4IH.js → Store-DgefqByH.js} +29 -29
- package/dist/{StoreRewards-DWygRLR1.js → StoreRewards-CS2h5RVB.js} +15 -15
- package/dist/{StoreTransactions.vue_vue_type_script_setup_true_lang-CeYYws6P.js → StoreTransactions.vue_vue_type_script_setup_true_lang-gPR8sn4k.js} +25 -25
- package/dist/TargetLocationInput.vue_vue_type_script_setup_true_lang-Cjnkpd1j.js +142 -0
- package/dist/{Tier-7RoxGHsP.js → Tier-Cye6888q.js} +688 -2583
- package/dist/{Title-0q2Z4HIe.js → Title-B1eJh5oy.js} +95 -96
- package/dist/{Transaction-CFasERdg.js → Transaction-ouzdsBUx.js} +2 -2
- package/dist/{Upselling-DM9R6pYw.js → Upselling-CdQd2Fuk.js} +3 -3
- package/dist/{UserRuleGroup.vue_vue_type_script_setup_true_lang-BDjwcgnc.js → UserRuleGroup.vue_vue_type_script_setup_true_lang-BSlxe1Hf.js} +26 -26
- package/dist/{Voucher-BkzW2hVV.js → Voucher-CJJt8VlJ.js} +19 -19
- package/dist/{VoucherEditor.vue_vue_type_script_setup_true_lang-DaE4xa3x.js → VoucherEditor.vue_vue_type_script_setup_true_lang-BzbNaK6H.js} +12 -12
- package/dist/{WhatsappAccount-C3WpDF9O.js → WhatsappAccount-DIxSP6Tp.js} +6 -6
- package/dist/{WhatsappAccountStatusLabel.vue_vue_type_script_setup_true_lang-BxC_3h52.js → WhatsappAccountStatusLabel.vue_vue_type_script_setup_true_lang-L9Y5lAft.js} +1 -1
- package/dist/{WhatsappBot-DZb-Dn3s.js → WhatsappBot-BXxoaz7-.js} +6 -6
- package/dist/{WhatsappBotLogs--KskC32Z.js → WhatsappBotLogs-D8IfLHk3.js} +6 -6
- package/dist/WhatsappBotSettings-Bq9C7pNZ.js +704 -0
- package/dist/{WhatsappLayout-NIrFGbId.js → WhatsappLayout-3rWwmGRd.js} +3 -3
- package/dist/{WhatsappNotificationGroupDialog.vue_vue_type_script_setup_true_lang-BfD5hHc7.js → WhatsappNotificationGroupDialog.vue_vue_type_script_setup_true_lang-C3N-loYJ.js} +3 -3
- package/dist/{ZodTextField.vue_vue_type_script_setup_true_lang-CJGxy7gf.js → ZodTextField.vue_vue_type_script_setup_true_lang-D1dORvMi.js} +2 -2
- package/dist/{app-B9nLnoBt.js → app-BXqas0p1.js} +3386 -4174
- package/dist/app.js +3 -4
- package/dist/{base.export-CBzNea0v.js → base.export-DQCZiS2E.js} +2 -2
- package/dist/{business-aT2zslwu.js → business-RsRhXSh8.js} +1 -1
- package/dist/{campaign-BDCLKFwN.js → campaign-C2X6aa7B.js} +25 -31
- package/dist/{campaign-B6nTwt17.js → campaign-DASPASQ0.js} +113 -126
- package/dist/{campaign.enum-Dx-Zo68Q.js → campaign.enum-BqekIiiN.js} +1 -2
- package/dist/campaign.fn-BEX99lsa.js +776 -0
- package/dist/{collection.fn-CDna_VLD.js → collection.fn-C7jNdh0A.js} +2 -2
- package/dist/{currency-Baum67Wz.js → currency-BvBM_Io9.js} +1 -1
- package/dist/{effect-CeJbflOK.js → effect-BA1yh6Mj.js} +1 -1
- package/dist/{email-addresses-Y3vF73J0.js → email-addresses-haS5P7hq.js} +2 -2
- package/dist/{feature-flag-zn6Ql9tv.js → feature-flag-B4bJnuei.js} +84 -84
- package/dist/google-C3S8u0mT.js +4 -0
- package/dist/{helper-DZvnn-yx.js → helper-BtTBvFuA.js} +1 -1
- package/dist/{index-CMs3aIA6.js → index-B1dAoOWi.js} +6 -19
- package/dist/{index-DXyOBtgF.js → index-B6A6sHpy.js} +1 -1
- package/dist/{index-B22ojkMy.js → index-BRTy6G9c.js} +2 -2
- package/dist/{index-r_T5o_hF.js → index-BV-YiCDM.js} +2 -2
- package/dist/{index-DJIt5tXC.js → index-BvFq5REc.js} +7 -7
- package/dist/{index-FgM7b2Sw.js → index-C2rjmdar.js} +2 -2
- package/dist/{index-DXKJsqgW.js → index-C7UBk5gq.js} +13 -31
- package/dist/{index-BqniSMV6.js → index-CBfVFFME.js} +197 -197
- package/dist/{index-B3LCTMwV.js → index-CH-uRaZH.js} +41 -52
- package/dist/{index-juXxYQ_a.js → index-CJ-BZCvB.js} +1242 -1314
- package/dist/{index-B5H4znfe.js → index-CXznvd79.js} +4 -4
- package/dist/{index-Da0-7h2j.js → index-ChGZ_S3V.js} +1 -1
- package/dist/{index-DCR1GFCA.js → index-D-D0s8PB.js} +234 -380
- package/dist/{index-BL2zQnXK.js → index-D9zjHXFU.js} +3 -3
- package/dist/{index-CPi3Qwmj.js → index-DAtVp1NI.js} +2613 -2699
- package/dist/{index-DkBOM8za.js → index-DeomfIu9.js} +251 -608
- package/dist/{index-DHNhIloU.js → index-Dg972Dfv.js} +1 -1
- package/dist/{index-BYUEPfbP.js → index-Dm2Dvxph.js} +23 -23
- package/dist/{index-njg4JLa-.js → index-DtbR7I4C.js} +9 -9
- package/dist/{index-B20FfbEE.js → index-Q-iHraJ3.js} +1 -1
- package/dist/{index-CDRTiAEu.js → index-g_SHjVWE.js} +1 -1
- package/dist/{index.esm2017-Dtk7BscN.js → index.esm2017-B7iE1Ggr.js} +93 -93
- package/dist/{loading-PoODMkQD.js → loading-BvlSfSVK.js} +1 -1
- package/dist/{lodash-TthNgH98.js → lodash-Daey2k0N.js} +1 -1
- package/dist/{member-import-D7zs0Jvh.js → member-import-CF9aym_y.js} +1 -1
- package/dist/{membership-Cab-iWQ1.js → membership-DfG-fl80.js} +2 -2
- package/dist/{money-9Q306M3g.js → money-SBIQhxqf.js} +1 -1
- package/dist/{number-D9M3D435.js → number-Cp1bFK9U.js} +1 -1
- package/dist/objectid-BMRA1fIL.js +145 -0
- package/dist/{onboarding-D5LKUHVI.js → onboarding-bjc7C8O-.js} +25 -25
- package/dist/{onboardingSetup-D0jsS6w5.js → onboardingSetup-BAu9TDI6.js} +2 -2
- package/dist/{plugins-CDTKQ1Pg.js → plugins-Def73Eyk.js} +3 -3
- package/dist/{reward-De3e9vYS.js → reward-KecVeztH.js} +1 -1
- package/dist/rule-builder-DgU6P24U.js +102 -0
- package/dist/{rule-trVJgEOe.js → rule-kMIC0vOi.js} +492 -572
- package/dist/style.css +1 -1
- package/dist/template-BH9vS8A9.js +275 -0
- package/dist/{timezone-DkuByUmb.js → timezone-CMX1sJ0a.js} +1 -1
- package/dist/{transaction.fn-CPE-oQhA.js → transaction.fn-Bjy5utxD.js} +2 -2
- package/dist/{trigger-C6oM-8pe.js → trigger-DnnOJVUi.js} +9 -9
- package/dist/{useMarketingMaterialActions-C5scdJQp.js → useMarketingMaterialActions-DMrNOpok.js} +4 -4
- package/dist/{usePagination-CIuTHSSG.js → usePagination-BCY4a-dh.js} +1 -1
- package/dist/{user-Bdlgn2yo.js → user-BTc0S1Vx.js} +1 -1
- package/dist/vue-i18n-7BKLPLxj.js +2365 -0
- package/dist/{xlsx-CvecxUOG.js → xlsx-DR5oLrEs.js} +1 -1
- package/dist/{zod-bniyeWdY.js → zod-CMq39HWn.js} +1 -1
- package/package.json +2 -6
- package/dist/AuditLogs-C1U17evK.js +0 -2016
- package/dist/EditCampaignSheet.vue_vue_type_script_setup_true_lang-C86llTFR.js +0 -4439
- package/dist/Grab-BjFLSMpE.js +0 -301
- package/dist/ReviewFacebookCallback-BwzuPmrz.js +0 -225
- package/dist/RuleGroup.vue_vue_type_script_setup_true_lang-Vg7pRGIz.js +0 -1923
- package/dist/Settings-9v0hnBJZ.js +0 -286
- package/dist/TargetLocationInput.vue_vue_type_script_setup_true_lang-BiN3uRJ_.js +0 -7007
- package/dist/WhatsappBotSettings-Dns_PqVE.js +0 -945
- package/dist/campaign.fn-Ck1t5C1T.js +0 -776
- package/dist/duplicateCampaign-BwrMZgaV.js +0 -51
- package/dist/google-BQK68wbe.js +0 -5
- package/dist/objectid-DKvQl6FD.js +0 -145
- package/dist/template-Bj3Tb6bP.js +0 -227
- package/dist/vue-i18n-DEpDI-dt.js +0 -2365
|
@@ -0,0 +1,275 @@
|
|
|
1
|
+
import { p as M, i as T } from "./plugins-Def73Eyk.js";
|
|
2
|
+
import { _ as I } from "./lodash-Daey2k0N.js";
|
|
3
|
+
import { defineComponent as N, openBlock as u, createBlock as C, resolveDynamicComponent as j, unref as o, ref as Y, computed as W, onMounted as G, resolveComponent as _, withCtx as f, createElementVNode as s, createElementBlock as h, createVNode as m, normalizeClass as w, createTextVNode as k, toDisplayString as g, Fragment as O, renderList as A, createCommentVNode as F } from "vue";
|
|
4
|
+
import { _ as H } from "./remy-icon-BhUGu2NI.js";
|
|
5
|
+
import { u as q } from "./campaign-C2X6aa7B.js";
|
|
6
|
+
import { useDialog as J } from "@feedmepos/ui-library";
|
|
7
|
+
import { F as U } from "./index-DeomfIu9.js";
|
|
8
|
+
import { C as K } from "./campaign-DASPASQ0.js";
|
|
9
|
+
import { J as Q } from "./JsonViewer-v8_C7l5N.js";
|
|
10
|
+
import { u as X } from "./vue-i18n-7BKLPLxj.js";
|
|
11
|
+
import { u as Z } from "./EditCampaignSheet.vue_vue_type_script_setup_true_lang-DIUEjCFW.js";
|
|
12
|
+
import { u as ee } from "./remy-Qz_pNsUS.js";
|
|
13
|
+
function Le(e) {
|
|
14
|
+
return M.confirm(
|
|
15
|
+
T.global.t("connect.common.duplicate.confirmMessage", { name: e }),
|
|
16
|
+
T.global.t("connect.common.duplicate.title"),
|
|
17
|
+
T.global.t("connect.common.duplicate.proceed")
|
|
18
|
+
);
|
|
19
|
+
}
|
|
20
|
+
const te = ["LOYALTY", "NO_REWARD"], oe = {
|
|
21
|
+
GAME: [(e) => {
|
|
22
|
+
var t;
|
|
23
|
+
return (t = e == null ? void 0 : e.game) == null ? void 0 : t.rewards;
|
|
24
|
+
}],
|
|
25
|
+
MISSION: [
|
|
26
|
+
(e) => e == null ? void 0 : e.rewards,
|
|
27
|
+
(e) => {
|
|
28
|
+
var t;
|
|
29
|
+
return (t = e == null ? void 0 : e.mission) == null ? void 0 : t.rewards;
|
|
30
|
+
}
|
|
31
|
+
],
|
|
32
|
+
REWARD_POOL: [(e) => e == null ? void 0 : e.rewards]
|
|
33
|
+
};
|
|
34
|
+
function ne(e, t) {
|
|
35
|
+
e && e.forEach((n) => {
|
|
36
|
+
t.includes(n.type ?? "") || (n.collectible = null, n.type === "VOUCHER" && n.collectibleConfig && (n.collectibleConfig._id = void 0));
|
|
37
|
+
});
|
|
38
|
+
}
|
|
39
|
+
function le(e) {
|
|
40
|
+
e._id = void 0;
|
|
41
|
+
}
|
|
42
|
+
function ie(e, t) {
|
|
43
|
+
e.campaign && (e.campaign._id = void 0, e.campaign.currentReceive = void 0, e.campaign.notifyCampaign = void 0, t || (e.campaign.collectible = void 0));
|
|
44
|
+
}
|
|
45
|
+
function se(e, t) {
|
|
46
|
+
e.configs && (e.configs.currentReceive = void 0, t || (e.configs._id = void 0));
|
|
47
|
+
}
|
|
48
|
+
function ae(e) {
|
|
49
|
+
const t = oe[(e == null ? void 0 : e.type) ?? ""];
|
|
50
|
+
t && t.forEach((n) => {
|
|
51
|
+
ne(n(e), te);
|
|
52
|
+
});
|
|
53
|
+
}
|
|
54
|
+
function Pe(e, t = {}) {
|
|
55
|
+
const n = I.cloneDeep(e), { keepCollectible: c = !1 } = t, d = n.campaign;
|
|
56
|
+
return le(n), ie(n, c), se(n, c), ae(d), n;
|
|
57
|
+
}
|
|
58
|
+
const ce = /* @__PURE__ */ N({
|
|
59
|
+
__name: "CampaignChip",
|
|
60
|
+
props: {
|
|
61
|
+
type: { type: String, required: !0 }
|
|
62
|
+
},
|
|
63
|
+
setup(e) {
|
|
64
|
+
const n = K[e.type];
|
|
65
|
+
return (c, d) => (u(), C(j(o(n).chip())));
|
|
66
|
+
}
|
|
67
|
+
}), re = { class: "flex flex-nowrap gap-x-2 grow h-full" }, pe = {
|
|
68
|
+
key: 0,
|
|
69
|
+
class: "p-8 w-1/4"
|
|
70
|
+
}, me = { class: "flex flex-col grow p-24" }, ue = { class: "space-y-4" }, de = { class: "fm-typo-en-title-sm-800" }, fe = { class: "text-fm-color-typo-secondary fm-typo-en-body-md-400" }, ge = { class: "grow pb-16 pr-16 pt-6 w-full max-h-[400px] overflow-y-auto" }, _e = { class: "gap-24 grid grid-cols-1 lg:grid-cols-2" }, ye = { class: "gap-4 h-[22px] inline-flex items-center justify-center min-w-min rounded-md" }, Ce = { class: "fm-typo-en-title-sm-800" }, ve = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, be = { class: "flex gap-4 items-end justify-end py-8" }, xe = { class: "flex items-center gap-8" }, De = /* @__PURE__ */ N({
|
|
71
|
+
__name: "TemplateDialog",
|
|
72
|
+
props: {
|
|
73
|
+
campaignType: {
|
|
74
|
+
type: String,
|
|
75
|
+
default: () => {
|
|
76
|
+
}
|
|
77
|
+
},
|
|
78
|
+
onOk: {
|
|
79
|
+
type: Function,
|
|
80
|
+
required: !0
|
|
81
|
+
}
|
|
82
|
+
},
|
|
83
|
+
setup(e) {
|
|
84
|
+
const { t } = X(), { getLocaleText: n } = Z(), c = J(), d = q(), L = ee(), r = e, l = Y({
|
|
85
|
+
intention: null,
|
|
86
|
+
template: null
|
|
87
|
+
}), R = W(() => {
|
|
88
|
+
const p = (d.templates ?? []).filter(
|
|
89
|
+
() => !0
|
|
90
|
+
//t.intention && t.intention.length > 0
|
|
91
|
+
);
|
|
92
|
+
return r.campaignType ? p.filter(
|
|
93
|
+
(a) => {
|
|
94
|
+
var v, y;
|
|
95
|
+
return ((y = (v = a.defaultValue) == null ? void 0 : v.campaign) == null ? void 0 : y.type) === r.campaignType;
|
|
96
|
+
}
|
|
97
|
+
) : l.value.intention === null ? I.sampleSize(p, 7) : p.filter(
|
|
98
|
+
(a) => a.intention.includes(l.value.intention)
|
|
99
|
+
);
|
|
100
|
+
});
|
|
101
|
+
G(async () => {
|
|
102
|
+
await d.readTemplates();
|
|
103
|
+
});
|
|
104
|
+
function P() {
|
|
105
|
+
r.onOk(void 0), c.close();
|
|
106
|
+
}
|
|
107
|
+
function V() {
|
|
108
|
+
const p = [t("connect.templateDialog.remyPrompt")];
|
|
109
|
+
r.campaignType && p.push(
|
|
110
|
+
t("connect.templateDialog.remyCampaignType", {
|
|
111
|
+
type: t(`connect.templateDialog.campaignType.${r.campaignType}`)
|
|
112
|
+
})
|
|
113
|
+
), l.value.intention && p.push(
|
|
114
|
+
t("connect.templateDialog.remyGoal", {
|
|
115
|
+
goal: t(`connect.templateDialog.intention.${l.value.intention}`)
|
|
116
|
+
})
|
|
117
|
+
), c.close(), L.activate({
|
|
118
|
+
prompt: p.join(" "),
|
|
119
|
+
forceNewConversation: !0
|
|
120
|
+
});
|
|
121
|
+
}
|
|
122
|
+
function $() {
|
|
123
|
+
const p = l.value.template;
|
|
124
|
+
r.onOk(d.templates.find((a) => a._id === p)), c.close();
|
|
125
|
+
}
|
|
126
|
+
return (p, a) => {
|
|
127
|
+
const v = _("FmChip"), y = _("FmListItem"), B = _("FmList"), E = _("FmCard"), b = _("FmButton"), z = _("FmSpacer");
|
|
128
|
+
return u(), C(E, { class: "h-[534px] max-w-6xl" }, {
|
|
129
|
+
default: f(() => [
|
|
130
|
+
s("div", re, [
|
|
131
|
+
r.campaignType ? F("", !0) : (u(), h("div", pe, [
|
|
132
|
+
m(B, null, {
|
|
133
|
+
default: f(() => [
|
|
134
|
+
m(y, {
|
|
135
|
+
class: w([{
|
|
136
|
+
"bg-fm-color-system-warning-100": o(l).intention === null
|
|
137
|
+
}, "rounded-sm"]),
|
|
138
|
+
onClick: a[0] || (a[0] = (i) => {
|
|
139
|
+
o(l).intention = null, o(l).template = null;
|
|
140
|
+
})
|
|
141
|
+
}, {
|
|
142
|
+
append: f(() => [
|
|
143
|
+
m(v, {
|
|
144
|
+
label: o(t)("connect.templateDialog.hot"),
|
|
145
|
+
variant: "critical"
|
|
146
|
+
}, null, 8, ["label"])
|
|
147
|
+
]),
|
|
148
|
+
default: f(() => [
|
|
149
|
+
k(g(o(t)("connect.templateDialog.mostPopular")) + " ", 1)
|
|
150
|
+
]),
|
|
151
|
+
_: 1
|
|
152
|
+
}, 8, ["class"]),
|
|
153
|
+
(u(!0), h(O, null, A(o(U).options, (i, D) => (u(), C(y, {
|
|
154
|
+
key: D,
|
|
155
|
+
class: w(["rounded-sm", {
|
|
156
|
+
"bg-fm-color-system-warning-100": o(l).intention === i
|
|
157
|
+
}]),
|
|
158
|
+
style: { padding: "8px 16px" },
|
|
159
|
+
onClick: (x) => {
|
|
160
|
+
o(l).intention = i, o(l).template = null;
|
|
161
|
+
}
|
|
162
|
+
}, {
|
|
163
|
+
default: f(() => [
|
|
164
|
+
k(g(o(t)(`connect.templateDialog.intention.${i}`)), 1)
|
|
165
|
+
]),
|
|
166
|
+
_: 2
|
|
167
|
+
}, 1032, ["class", "onClick"]))), 128))
|
|
168
|
+
]),
|
|
169
|
+
_: 1
|
|
170
|
+
})
|
|
171
|
+
])),
|
|
172
|
+
s("div", me, [
|
|
173
|
+
s("div", ue, [
|
|
174
|
+
s("div", de, g(r.campaignType ? o(t)(`connect.templateDialog.campaignType.${r.campaignType}`) : o(t)("connect.templateDialog.templateList")), 1),
|
|
175
|
+
s("div", fe, g(o(t)("connect.templateDialog.subtitle")), 1)
|
|
176
|
+
]),
|
|
177
|
+
s("div", ge, [
|
|
178
|
+
m(Q, { json: o(R) }, null, 8, ["json"]),
|
|
179
|
+
s("div", _e, [
|
|
180
|
+
(u(!0), h(O, null, A(o(R), (i, D) => (u(), C(E, {
|
|
181
|
+
key: D,
|
|
182
|
+
variant: "outlined",
|
|
183
|
+
class: w(["box-border cursor-pointer h-full p-16 scroll-p-4 space-y-8", {
|
|
184
|
+
"bg-fm-color-system-warning-100 border-fm-color-primary border-2": o(l).template === i._id.toString()
|
|
185
|
+
}]),
|
|
186
|
+
onClick: (x) => o(l).template = i._id.toString()
|
|
187
|
+
}, {
|
|
188
|
+
default: f(() => {
|
|
189
|
+
var x, S;
|
|
190
|
+
return [
|
|
191
|
+
s("div", ye, [
|
|
192
|
+
m(ce, {
|
|
193
|
+
type: (S = (x = i.defaultValue) == null ? void 0 : x.campaign) == null ? void 0 : S.type
|
|
194
|
+
}, null, 8, ["type"])
|
|
195
|
+
]),
|
|
196
|
+
s("div", Ce, g(o(n)(i.name_locale, i.name)), 1),
|
|
197
|
+
s("p", ve, g(o(n)(i.description_locale, i.description ?? "")), 1)
|
|
198
|
+
];
|
|
199
|
+
}),
|
|
200
|
+
_: 2
|
|
201
|
+
}, 1032, ["class", "onClick"]))), 128))
|
|
202
|
+
])
|
|
203
|
+
]),
|
|
204
|
+
s("div", be, [
|
|
205
|
+
m(b, {
|
|
206
|
+
class: "sm:w-full xs:w-full",
|
|
207
|
+
variant: "plain",
|
|
208
|
+
label: o(t)("connect.templateDialog.customCampaign"),
|
|
209
|
+
size: "md",
|
|
210
|
+
onClick: P
|
|
211
|
+
}, null, 8, ["label"]),
|
|
212
|
+
r.campaignType && ["PROMOTION", "VOUCHER", "BROADCAST", "POINT", "COIN", "CREDIT"].includes(
|
|
213
|
+
r.campaignType
|
|
214
|
+
) ? (u(), C(b, {
|
|
215
|
+
key: 0,
|
|
216
|
+
class: "sm:w-full xs:w-full",
|
|
217
|
+
variant: "tertiary",
|
|
218
|
+
label: o(t)("connect.templateDialog.askRemy"),
|
|
219
|
+
size: "md",
|
|
220
|
+
onClick: V
|
|
221
|
+
}, {
|
|
222
|
+
default: f(() => [
|
|
223
|
+
s("span", xe, [
|
|
224
|
+
a[2] || (a[2] = s("img", {
|
|
225
|
+
src: H,
|
|
226
|
+
alt: "",
|
|
227
|
+
class: "w-[20px] h-[20px]"
|
|
228
|
+
}, null, -1)),
|
|
229
|
+
k(" " + g(o(t)("connect.templateDialog.askRemy")), 1)
|
|
230
|
+
])
|
|
231
|
+
]),
|
|
232
|
+
_: 1
|
|
233
|
+
}, 8, ["label"])) : F("", !0),
|
|
234
|
+
m(z, { class: "sm:hidden xs:hidden" }),
|
|
235
|
+
m(b, {
|
|
236
|
+
class: "sm:w-full xs:w-full",
|
|
237
|
+
variant: "tertiary",
|
|
238
|
+
label: o(t)("connect.templateDialog.cancel"),
|
|
239
|
+
size: "md",
|
|
240
|
+
onClick: a[1] || (a[1] = (i) => o(c).close())
|
|
241
|
+
}, null, 8, ["label"]),
|
|
242
|
+
m(b, {
|
|
243
|
+
class: "sm:w-full xs:w-full",
|
|
244
|
+
variant: "primary",
|
|
245
|
+
label: o(t)("connect.templateDialog.start"),
|
|
246
|
+
size: "md",
|
|
247
|
+
disabled: !o(l).template,
|
|
248
|
+
onClick: $
|
|
249
|
+
}, null, 8, ["label", "disabled"])
|
|
250
|
+
])
|
|
251
|
+
])
|
|
252
|
+
])
|
|
253
|
+
]),
|
|
254
|
+
_: 1
|
|
255
|
+
});
|
|
256
|
+
};
|
|
257
|
+
}
|
|
258
|
+
}), Ve = (e, t) => ({
|
|
259
|
+
open: async (n) => {
|
|
260
|
+
t.open({
|
|
261
|
+
title: "",
|
|
262
|
+
dialogComponent: De,
|
|
263
|
+
dialogComponentProps: {
|
|
264
|
+
campaignType: e,
|
|
265
|
+
onOk: async (c) => (console.debug(c, "selected template"), await n(c))
|
|
266
|
+
},
|
|
267
|
+
overlay: !0
|
|
268
|
+
});
|
|
269
|
+
}
|
|
270
|
+
});
|
|
271
|
+
export {
|
|
272
|
+
Le as c,
|
|
273
|
+
Pe as p,
|
|
274
|
+
Ve as u
|
|
275
|
+
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import "./index-
|
|
2
|
-
import { s as u } from "./index-
|
|
1
|
+
import "./index-CJ-BZCvB.js";
|
|
2
|
+
import { s as u } from "./index-CXznvd79.js";
|
|
3
3
|
function i(l) {
|
|
4
4
|
var c, f;
|
|
5
5
|
const e = (c = l.metadata) == null ? void 0 : c.operator, t = typeof e == "string" ? e : [e == null ? void 0 : e.name, e == null ? void 0 : e.phoneNumber, e == null ? void 0 : e.email].filter(Boolean).join(" / ") || (e == null ? void 0 : e.uid);
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { defineComponent as m, openBlock as u, createBlock as p, unref as r } from "vue";
|
|
2
|
-
import "./index-
|
|
3
|
-
import { R as i } from "./
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import { i as n } from "./plugins-
|
|
2
|
+
import "./index-DAtVp1NI.js";
|
|
3
|
+
import { R as i } from "./rule-builder-DgU6P24U.js";
|
|
4
|
+
import { _ as E } from "./RuleGroup.vue_vue_type_script_setup_true_lang-fLtn32Rw.js";
|
|
5
|
+
import { c as e, C as d } from "./index-D-D0s8PB.js";
|
|
6
|
+
import { i as n } from "./plugins-Def73Eyk.js";
|
|
7
7
|
const L = /* @__PURE__ */ m({
|
|
8
8
|
__name: "BillRuleGroup",
|
|
9
9
|
props: {
|
|
@@ -62,7 +62,7 @@ const L = /* @__PURE__ */ m({
|
|
|
62
62
|
}, null, 8, ["model-value"]);
|
|
63
63
|
};
|
|
64
64
|
}
|
|
65
|
-
}),
|
|
65
|
+
}), _ = {
|
|
66
66
|
[e.enum.BILL_COMPLETED]: {
|
|
67
67
|
get name() {
|
|
68
68
|
return n.global.t(
|
|
@@ -201,13 +201,13 @@ const L = /* @__PURE__ */ m({
|
|
|
201
201
|
const o = d[t];
|
|
202
202
|
return [
|
|
203
203
|
t,
|
|
204
|
-
(o == null ? void 0 : o.map((a) =>
|
|
204
|
+
(o == null ? void 0 : o.map((a) => _[a]).filter((a) => !a.hidden)) ?? []
|
|
205
205
|
];
|
|
206
206
|
})
|
|
207
207
|
);
|
|
208
208
|
export {
|
|
209
209
|
C as T,
|
|
210
210
|
L as _,
|
|
211
|
-
|
|
212
|
-
|
|
211
|
+
_ as a,
|
|
212
|
+
O as b
|
|
213
213
|
};
|
package/dist/{useMarketingMaterialActions-C5scdJQp.js → useMarketingMaterialActions-DMrNOpok.js}
RENAMED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { u as b } from "./vue-i18n-
|
|
1
|
+
import { u as b } from "./vue-i18n-7BKLPLxj.js";
|
|
2
2
|
import { useSnackbar as h } from "@feedmepos/ui-library";
|
|
3
|
-
import { c as k, p as I } from "./plugins-
|
|
4
|
-
import { S as o, g as c, b as M } from "./index-
|
|
5
|
-
import { u as y } from "./loading-
|
|
3
|
+
import { c as k, p as I } from "./plugins-Def73Eyk.js";
|
|
4
|
+
import { S as o, g as c, b as M } from "./index-BvFq5REc.js";
|
|
5
|
+
import { u as y } from "./loading-BvlSfSVK.js";
|
|
6
6
|
const l = (e) => M(`businesses/${e}/marketing-materials`), v = {
|
|
7
7
|
async createMarketingMaterial(e) {
|
|
8
8
|
const t = o.getBusinessId();
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as P, computed as v, ref as w, onMounted as $, watch as M, resolveComponent as D, openBlock as u, createElementBlock as p, createVNode as r, unref as n, createElementVNode as s, createCommentVNode as N, toDisplayString as b } from "vue";
|
|
2
2
|
import { _ as S } from "./FmTableSelection.vue_vue_type_script_setup_true_lang-DzcUc0_w.js";
|
|
3
|
-
import { l as E } from "./lodash-
|
|
3
|
+
import { l as E } from "./lodash-Daey2k0N.js";
|
|
4
4
|
const R = { class: "" }, A = {
|
|
5
5
|
key: 0,
|
|
6
6
|
class: "w-full flex flex-col gap-16 items-center py-16"
|