@feedmepos/mf-connect 0.1.122-prod → 0.1.123-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/dist/{App-BKnL7b6M.js → App-BHqbxq_5.js} +502 -493
- package/dist/AuditLogs-FB5BGl_F.js +2016 -0
- package/dist/{Bin-BqqQF1h_.js → Bin-Bc5C_yvE.js} +8 -8
- package/dist/{Broadcast-U5rJmhdd.js → Broadcast-CEJc8daU.js} +22 -21
- package/dist/{CampaignAnalytic-ClwXxxzE.js → CampaignAnalytic-wUhISw-Z.js} +7 -7
- package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-DyeoWFcd.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-BlLw8Tb5.js} +8 -9
- package/dist/{Card-DKikDYES.js → Card-uviAfIRX.js} +22 -22
- package/dist/{Collections-CD0xjFqI.js → Collections-COA2uZGw.js} +197 -185
- package/dist/{Credit-BWcvFlb2.js → Credit-Dh4GleW1.js} +21 -20
- package/dist/{DateRangeChip.vue_vue_type_script_setup_true_lang-B2RizWP8.js → DateRangeChip.vue_vue_type_script_setup_true_lang-DM-uzm4_.js} +1 -1
- package/dist/EditCampaignSheet.vue_vue_type_script_setup_true_lang-9fDPd8x9.js +4439 -0
- package/dist/{EffectSheet.vue_vue_type_style_index_0_lang-Hr10pgqD.js → EffectSheet.vue_vue_type_style_index_0_lang-DorkQcT5.js} +16 -16
- package/dist/{Experience-dqXYj1Fv.js → Experience-oOmPXIh-.js} +32 -31
- package/dist/{FileSaver.min-DdJMn696.js → FileSaver.min-_q7Dx4wn.js} +1 -1
- package/dist/{Game-BGQXqzck.js → Game-BTfpDAXf.js} +19 -18
- package/dist/{GiftCardSetup-C3MR25fp.js → GiftCardSetup-FhOKl3OA.js} +31 -31
- package/dist/{GoalPickerPanel.vue_vue_type_script_setup_true_lang-9dL1kVPG.js → GoalPickerPanel.vue_vue_type_script_setup_true_lang-BWP_vdpd.js} +7 -7
- package/dist/{Goals-DA2jHEZa.js → Goals-A5qHITPJ.js} +4 -4
- package/dist/Grab-D7BOmVRB.js +301 -0
- package/dist/{ImageInput.vue_vue_type_script_setup_true_lang-_rlsNocb.js → ImageInput.vue_vue_type_script_setup_true_lang-CqkwVS2r.js} +1 -1
- package/dist/{Index-WOvryalE.js → Index-CuSQjKgG.js} +10 -10
- package/dist/{LocationPicker.vue_vue_type_script_setup_true_lang-Bu1DjV9M.js → LocationPicker.vue_vue_type_script_setup_true_lang-D6bURd7V.js} +1 -1
- package/dist/{LottieAnimation.vue_vue_type_script_setup_true_lang-DiLtSIXt.js → LottieAnimation.vue_vue_type_script_setup_true_lang-C3Nt5VLS.js} +1 -1
- package/dist/{LoyaltyDashboard-BKN2vBqc.js → LoyaltyDashboard-B66W2agI.js} +15 -15
- package/dist/{MainLayout-DizL-dxl.js → MainLayout-CguQ_XOG.js} +1 -1
- package/dist/{MainLayout.vue_vue_type_script_setup_true_lang-El0YeLnE.js → MainLayout.vue_vue_type_script_setup_true_lang-ByHEOOgE.js} +3 -3
- package/dist/{Marketing-B77EoiCf.js → Marketing-DsRvHFfJ.js} +4 -4
- package/dist/{MarketingMaterialEdit-C_qFEur7.js → MarketingMaterialEdit-DLqupGle.js} +214 -211
- package/dist/{Member-TYDrU3Tk.js → Member-BlRWRmf7.js} +7 -7
- package/dist/{MemberDetailSheet.vue_vue_type_script_setup_true_lang-BuzMeXR9.js → MemberDetailSheet.vue_vue_type_script_setup_true_lang-GZ5gUgb8.js} +39 -47
- package/dist/{MemberImportHistory-l7dVJdEH.js → MemberImportHistory-DxpuDRx4.js} +7 -7
- package/dist/{MemberList-DiuyeJx_.js → MemberList-DnKQ0nCm.js} +103 -105
- package/dist/{MemberTransactions-BJ27Gd5P.js → MemberTransactions-bs3canOe.js} +1 -1
- package/dist/{MessageInput.vue_vue_type_script_setup_true_lang-so7LWtlv.js → MessageInput.vue_vue_type_script_setup_true_lang-DRU6aeH8.js} +12 -12
- package/dist/{MetricInfoTooltip.vue_vue_type_script_setup_true_lang-DgE7HPsT.js → MetricInfoTooltip.vue_vue_type_script_setup_true_lang-BYH3qzyb.js} +1 -1
- package/dist/{Mission-C63hh8Ra.js → Mission-DHXh7T93.js} +22 -21
- package/dist/{Overview-DP-4Kpuj.js → Overview-CVQBgphM.js} +145 -144
- package/dist/{Overview-CVdvQK6q.js → Overview-UAF9JSio.js} +20 -20
- package/dist/{Point-DXH4kJNQ.js → Point-C6wv1uzT.js} +22 -21
- package/dist/{Promotion-Cn-wAx6m.js → Promotion-CeZRHUed.js} +137 -131
- package/dist/{Queue-CEEUE-UT.js → Queue-BxTSJ6LA.js} +45 -45
- package/dist/{Record-BFIjLKJD.js → Record-DoOyOT7I.js} +9 -9
- package/dist/{Review-BMRfKri0.js → Review-BSpjwVxg.js} +2 -2
- package/dist/ReviewFacebookCallback-CMAQ_PXJ.js +225 -0
- package/dist/{ReviewGoogleCallback-Cflqv5Z5.js → ReviewGoogleCallback-D---BE3G.js} +5 -5
- package/dist/{Reward-C-qGtzpu.js → Reward-BC2PCxwA.js} +16 -16
- package/dist/{RewardGroup.vue_vue_type_script_setup_true_lang-kxJ5i8xe.js → RewardGroup.vue_vue_type_script_setup_true_lang-VV8I4Pnl.js} +13 -13
- package/dist/RuleGroup.vue_vue_type_script_setup_true_lang-DmOKmXkP.js +1923 -0
- package/dist/{Segment-Bx1pfw4Q.js → Segment-CcRapIdF.js} +303 -306
- package/dist/{SendCollectionSheet.vue_vue_type_script_setup_true_lang-vuH9xdOi.js → SendCollectionSheet.vue_vue_type_script_setup_true_lang-D9Ino3uS.js} +14 -14
- package/dist/{SendVoucherSheet.vue_vue_type_script_setup_true_lang-CZHpyimI.js → SendVoucherSheet.vue_vue_type_script_setup_true_lang-C42YDmfw.js} +4 -4
- package/dist/Setting-CTWV-j-u.js +574 -0
- package/dist/{SettingAdvertisements-CZlIQ5m_.js → SettingAdvertisements-1WCqp0FF.js} +12 -12
- package/dist/Settings-BxgqmIBl.js +286 -0
- package/dist/{Store-BhZulzuc.js → Store-uhCU5WYY.js} +28 -28
- package/dist/{StoreRewards-CvYgJVFU.js → StoreRewards-DjgbbZsB.js} +15 -15
- package/dist/StoreTransactions.vue_vue_type_script_setup_true_lang-BgT5nChN.js +1319 -0
- package/dist/TargetLocationInput.vue_vue_type_script_setup_true_lang-BAUBxdV2.js +7007 -0
- package/dist/{Tier-BPPSaEe0.js → Tier-B6sp_dj5.js} +2575 -687
- package/dist/{Title-CccRUVZV.js → Title-Dew9vKN4.js} +95 -94
- package/dist/{Transaction-ULzAt-u7.js → Transaction-ITefNWob.js} +2 -2
- package/dist/Upselling-AMpfgEvH.js +1042 -0
- package/dist/{UserRuleGroup.vue_vue_type_script_setup_true_lang-CoqrSuWu.js → UserRuleGroup.vue_vue_type_script_setup_true_lang-B4LP8LZ-.js} +26 -26
- package/dist/{Voucher-Cz7IMRNl.js → Voucher-CRP6KY1f.js} +19 -19
- package/dist/{VoucherEditor.vue_vue_type_script_setup_true_lang-BaxHZN76.js → VoucherEditor.vue_vue_type_script_setup_true_lang-BZEJecca.js} +12 -12
- package/dist/{WhatsappAccount-BsxVHiZZ.js → WhatsappAccount-MkutDvBs.js} +6 -6
- package/dist/{WhatsappAccountStatusLabel.vue_vue_type_script_setup_true_lang-DJnkGMF1.js → WhatsappAccountStatusLabel.vue_vue_type_script_setup_true_lang-vDLl0J7v.js} +1 -1
- package/dist/{WhatsappBot-sd6erVZk.js → WhatsappBot-B0m21qPb.js} +6 -6
- package/dist/{WhatsappBotLogs-DNbGWyOY.js → WhatsappBotLogs-BHyoUuef.js} +6 -6
- package/dist/{WhatsappBotSettings-DXa_e7-a.js → WhatsappBotSettings-BbiHQ3Qb.js} +4 -4
- package/dist/{WhatsappLayout-DvBPIB5f.js → WhatsappLayout-yq05I3IA.js} +3 -3
- package/dist/{WhatsappNotificationGroupDialog.vue_vue_type_script_setup_true_lang-CRDouGvj.js → WhatsappNotificationGroupDialog.vue_vue_type_script_setup_true_lang-BrjbWgKf.js} +3 -3
- package/dist/{ZodTextField.vue_vue_type_script_setup_true_lang-B6BvSACt.js → ZodTextField.vue_vue_type_script_setup_true_lang-CLiZ6jd6.js} +2 -2
- package/dist/{app-4x06ItoL.js → app-Ce3Q-VS4.js} +14861 -15017
- package/dist/app.js +4 -3
- package/dist/{base.export-DS0xThWi.js → base.export-Ds3PiiHA.js} +2 -2
- package/dist/{business-D0I7G-5H.js → business-CfxfaERu.js} +1 -1
- package/dist/{campaign-BuJCjEH-.js → campaign-COuKKIRA.js} +121 -94
- package/dist/{campaign-CC9U7rkr.js → campaign-CtX-q7KI.js} +34 -28
- package/dist/{campaign.enum-BqekIiiN.js → campaign.enum-Dx-Zo68Q.js} +2 -1
- package/dist/campaign.fn-oUqhH0SU.js +776 -0
- package/dist/{collection.fn-CUifllLR.js → collection.fn-PhjmENfo.js} +2 -2
- package/dist/{currency-BPhBDOpt.js → currency-DmSaw6iQ.js} +1 -1
- package/dist/duplicateCampaign-DzF45eaZ.js +51 -0
- package/dist/{effect-DKHOR-B3.js → effect-sAKjjlrO.js} +1 -1
- package/dist/{email-addresses-B-VEReRV.js → email-addresses-jSqlPLwS.js} +25 -25
- package/dist/{feature-flag-Cjl6gaO5.js → feature-flag-Dvz3D7kC.js} +171 -185
- package/dist/google-BQK68wbe.js +5 -0
- package/dist/{helper-CBLh1PWR.js → helper-Dn6pU0yd.js} +1 -1
- package/dist/{index-DL_UYO4J.js → index--A062GN8.js} +380 -234
- package/dist/{index-DenQ8DV4.js → index-2B_HRy_7.js} +1 -1
- package/dist/{index-umYXnOWc.js → index-8wWIydMw.js} +608 -251
- package/dist/{index-C1QA2M4I.js → index-Aqx0Hc_6.js} +10 -10
- package/dist/{index-kClA31M9.js → index-B_GA0PSb.js} +10 -10
- package/dist/{index-bc7bIIVP.js → index-B_aWWeg9.js} +197 -197
- package/dist/{index-Djf4TpYV.js → index-BiBBY6Sk.js} +23 -23
- package/dist/{index-vqUiCeKb.js → index-BoFxBf97.js} +1 -1
- package/dist/{index-B_iKSOXp.js → index-BrqespAR.js} +1 -1
- package/dist/{index-BwgjSrwa.js → index-Bu2uqM4e.js} +2 -2
- package/dist/{index-BzKKNuLc.js → index-C4O-Fym0.js} +2 -2
- package/dist/{index-BBsqcXfJ.js → index-C8fp9YtA.js} +1 -1
- package/dist/{index-Ob5I-Sex.js → index-CRFiQOrt.js} +1 -1
- package/dist/{index-RMsQnHez.js → index-CUaL0i4I.js} +1 -1
- package/dist/{index-EpqQFMu2.js → index-Cgg1NNfN.js} +2699 -2614
- package/dist/{index-ZTC5k9Jb.js → index-CjAhwLNW.js} +19 -6
- package/dist/{index-CWJi_hw-.js → index-D6wQPKHc.js} +2 -2
- package/dist/{index-nnmfOPuw.js → index-DFAceV6T.js} +4 -4
- package/dist/{index-CGcWs8B5.js → index-bGITzW-d.js} +533 -462
- package/dist/{index-D3B392A3.js → index-pCmNLjIj.js} +3 -3
- package/dist/{index.esm2017-DMKkHR06.js → index.esm2017-ChJMTCyQ.js} +93 -93
- package/dist/{loading-Cb4RgEo7.js → loading-DhiMqWJA.js} +1 -1
- package/dist/{lodash-CMazTe9d.js → lodash-CCBK4pXz.js} +1 -1
- package/dist/{member-import-Df1y7FvX.js → member-import-BUvsg-Lu.js} +1 -1
- package/dist/{membership-yvDb2HS8.js → membership-7X3Uc50t.js} +2 -2
- package/dist/{money-rs9shyUy.js → money-D5EIeVr_.js} +1 -1
- package/dist/{number-Ecq6MjRx.js → number-Bj7X6VoA.js} +1 -1
- package/dist/objectid-CzFM8vy5.js +145 -0
- package/dist/{onboarding-DugmLfNG.js → onboarding-0mA1gXrv.js} +36 -36
- package/dist/{onboardingSetup-DMzNxJC4.js → onboardingSetup-BBPg-cAT.js} +2 -2
- package/dist/{plugins-CvhBJQEK.js → plugins-bprg7ahs.js} +3 -3
- package/dist/{reward-BGUOUKZn.js → reward-WTxymIQH.js} +1 -1
- package/dist/{rule-C87YbT3F.js → rule-hJuK8Yqw.js} +572 -492
- package/dist/style.css +1 -1
- package/dist/template-wt4Q2S3f.js +227 -0
- package/dist/{timezone-uP_heouv.js → timezone-BWkDzpwA.js} +1 -1
- package/dist/{transaction.fn-CiGhIgzP.js → transaction.fn-DzwtEBIZ.js} +2 -2
- package/dist/{trigger-dOOSh-Yp.js → trigger-D6hitqvM.js} +9 -9
- package/dist/{useMarketingMaterialActions-BRenBblP.js → useMarketingMaterialActions-ByWwvQRt.js} +4 -4
- package/dist/{usePagination-DNOc8GFS.js → usePagination-Mr6qWVOa.js} +1 -1
- package/dist/{user-DTAGYy-F.js → user-Dpl2lhox.js} +1 -1
- package/dist/vue-i18n-BEFR04bc.js +2365 -0
- package/dist/{xlsx-BU0bDwTF.js → xlsx-Cu5ybiy4.js} +1 -1
- package/dist/{zod-mPFqdty8.js → zod-CcKqtEqX.js} +1 -1
- package/package.json +6 -2
- package/dist/EditCampaignSheet.vue_vue_type_script_setup_true_lang-D38JB0FV.js +0 -3493
- package/dist/ReviewFacebookCallback-CPYIC3RS.js +0 -238
- package/dist/RuleGroup.vue_vue_type_script_setup_true_lang-BlRmshrE.js +0 -1884
- package/dist/Setting-CEcpuE_O.js +0 -578
- package/dist/Settings-CPLibjQy.js +0 -179
- package/dist/StoreTransactions.vue_vue_type_script_setup_true_lang-Dqj5zIgi.js +0 -1297
- package/dist/TargetLocationInput.vue_vue_type_script_setup_true_lang--Ii9ejFG.js +0 -142
- package/dist/Upselling-D2tSUTkE.js +0 -200
- package/dist/campaign.fn-CLUOgMgc.js +0 -776
- package/dist/google-C3S8u0mT.js +0 -4
- package/dist/objectid-BVri-Vim.js +0 -145
- package/dist/rule-builder-lzMi7irV.js +0 -102
- package/dist/template-BfFSbH04.js +0 -275
- package/dist/vue-i18n-D8wuxuA4.js +0 -2365
|
@@ -0,0 +1,227 @@
|
|
|
1
|
+
import { defineComponent as L, openBlock as r, createBlock as C, resolveDynamicComponent as A, unref as e, ref as B, computed as j, onMounted as M, resolveComponent as g, withCtx as m, createElementVNode as l, createElementBlock as h, createVNode as c, normalizeClass as b, createTextVNode as k, toDisplayString as u, Fragment as S, renderList as N, createCommentVNode as I } from "vue";
|
|
2
|
+
import { _ as q } from "./remy-icon-BhUGu2NI.js";
|
|
3
|
+
import { u as J } from "./campaign-CtX-q7KI.js";
|
|
4
|
+
import { useDialog as G } from "@feedmepos/ui-library";
|
|
5
|
+
import { F as H } from "./index-8wWIydMw.js";
|
|
6
|
+
import { _ as U } from "./lodash-CCBK4pXz.js";
|
|
7
|
+
import { C as K } from "./campaign-COuKKIRA.js";
|
|
8
|
+
import { J as Q } from "./JsonViewer-v8_C7l5N.js";
|
|
9
|
+
import { u as W } from "./vue-i18n-BEFR04bc.js";
|
|
10
|
+
import { u as X } from "./EditCampaignSheet.vue_vue_type_script_setup_true_lang-9fDPd8x9.js";
|
|
11
|
+
import { u as Y } from "./remy-Qz_pNsUS.js";
|
|
12
|
+
const Z = /* @__PURE__ */ L({
|
|
13
|
+
__name: "CampaignChip",
|
|
14
|
+
props: {
|
|
15
|
+
type: { type: String, required: !0 }
|
|
16
|
+
},
|
|
17
|
+
setup(f) {
|
|
18
|
+
const d = K[f.type];
|
|
19
|
+
return (p, y) => (r(), C(A(e(d).chip())));
|
|
20
|
+
}
|
|
21
|
+
}), ee = { class: "flex flex-nowrap gap-x-2 grow h-full" }, te = {
|
|
22
|
+
key: 0,
|
|
23
|
+
class: "p-8 w-1/4"
|
|
24
|
+
}, ne = { class: "flex flex-col grow p-24" }, oe = { class: "space-y-4" }, le = { class: "fm-typo-en-title-sm-800" }, ae = { class: "text-fm-color-typo-secondary fm-typo-en-body-md-400" }, se = { class: "grow pb-16 pr-16 pt-6 w-full max-h-[400px] overflow-y-auto" }, ie = { class: "gap-24 grid grid-cols-1 lg:grid-cols-2" }, ce = { class: "gap-4 h-[22px] inline-flex items-center justify-center min-w-min rounded-md" }, pe = { class: "fm-typo-en-title-sm-800" }, re = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, me = { class: "flex gap-4 items-end justify-end py-8" }, ue = { class: "flex items-center gap-8" }, de = /* @__PURE__ */ L({
|
|
25
|
+
__name: "TemplateDialog",
|
|
26
|
+
props: {
|
|
27
|
+
campaignType: {
|
|
28
|
+
type: String,
|
|
29
|
+
default: () => {
|
|
30
|
+
}
|
|
31
|
+
},
|
|
32
|
+
onOk: {
|
|
33
|
+
type: Function,
|
|
34
|
+
required: !0
|
|
35
|
+
}
|
|
36
|
+
},
|
|
37
|
+
setup(f) {
|
|
38
|
+
const { t } = W(), { getLocaleText: d } = X(), p = G(), y = J(), $ = Y(), s = f, n = B({
|
|
39
|
+
intention: null,
|
|
40
|
+
template: null
|
|
41
|
+
}), D = j(() => {
|
|
42
|
+
const i = (y.templates ?? []).filter(
|
|
43
|
+
() => !0
|
|
44
|
+
//t.intention && t.intention.length > 0
|
|
45
|
+
);
|
|
46
|
+
return s.campaignType ? i.filter(
|
|
47
|
+
(a) => {
|
|
48
|
+
var v, _;
|
|
49
|
+
return ((_ = (v = a.defaultValue) == null ? void 0 : v.campaign) == null ? void 0 : _.type) === s.campaignType;
|
|
50
|
+
}
|
|
51
|
+
) : n.value.intention === null ? U.sampleSize(i, 7) : i.filter(
|
|
52
|
+
(a) => a.intention.includes(n.value.intention)
|
|
53
|
+
);
|
|
54
|
+
});
|
|
55
|
+
M(async () => {
|
|
56
|
+
await y.readTemplates();
|
|
57
|
+
});
|
|
58
|
+
function R() {
|
|
59
|
+
s.onOk(void 0), p.close();
|
|
60
|
+
}
|
|
61
|
+
function V() {
|
|
62
|
+
const i = [t("connect.templateDialog.remyPrompt")];
|
|
63
|
+
s.campaignType && i.push(
|
|
64
|
+
t("connect.templateDialog.remyCampaignType", {
|
|
65
|
+
type: t(`connect.templateDialog.campaignType.${s.campaignType}`)
|
|
66
|
+
})
|
|
67
|
+
), n.value.intention && i.push(
|
|
68
|
+
t("connect.templateDialog.remyGoal", {
|
|
69
|
+
goal: t(`connect.templateDialog.intention.${n.value.intention}`)
|
|
70
|
+
})
|
|
71
|
+
), p.close(), $.activate({
|
|
72
|
+
prompt: i.join(" "),
|
|
73
|
+
forceNewConversation: !0
|
|
74
|
+
});
|
|
75
|
+
}
|
|
76
|
+
function E() {
|
|
77
|
+
const i = n.value.template;
|
|
78
|
+
s.onOk(y.templates.find((a) => a._id === i)), p.close();
|
|
79
|
+
}
|
|
80
|
+
return (i, a) => {
|
|
81
|
+
const v = g("FmChip"), _ = g("FmListItem"), P = g("FmList"), F = g("FmCard"), x = g("FmButton"), z = g("FmSpacer");
|
|
82
|
+
return r(), C(F, { class: "h-[534px] max-w-6xl" }, {
|
|
83
|
+
default: m(() => [
|
|
84
|
+
l("div", ee, [
|
|
85
|
+
s.campaignType ? I("", !0) : (r(), h("div", te, [
|
|
86
|
+
c(P, null, {
|
|
87
|
+
default: m(() => [
|
|
88
|
+
c(_, {
|
|
89
|
+
class: b([{
|
|
90
|
+
"bg-fm-color-system-warning-100": e(n).intention === null
|
|
91
|
+
}, "rounded-sm"]),
|
|
92
|
+
onClick: a[0] || (a[0] = (o) => {
|
|
93
|
+
e(n).intention = null, e(n).template = null;
|
|
94
|
+
})
|
|
95
|
+
}, {
|
|
96
|
+
append: m(() => [
|
|
97
|
+
c(v, {
|
|
98
|
+
label: e(t)("connect.templateDialog.hot"),
|
|
99
|
+
variant: "critical"
|
|
100
|
+
}, null, 8, ["label"])
|
|
101
|
+
]),
|
|
102
|
+
default: m(() => [
|
|
103
|
+
k(u(e(t)("connect.templateDialog.mostPopular")) + " ", 1)
|
|
104
|
+
]),
|
|
105
|
+
_: 1
|
|
106
|
+
}, 8, ["class"]),
|
|
107
|
+
(r(!0), h(S, null, N(e(H).options, (o, w) => (r(), C(_, {
|
|
108
|
+
key: w,
|
|
109
|
+
class: b(["rounded-sm", {
|
|
110
|
+
"bg-fm-color-system-warning-100": e(n).intention === o
|
|
111
|
+
}]),
|
|
112
|
+
style: { padding: "8px 16px" },
|
|
113
|
+
onClick: (T) => {
|
|
114
|
+
e(n).intention = o, e(n).template = null;
|
|
115
|
+
}
|
|
116
|
+
}, {
|
|
117
|
+
default: m(() => [
|
|
118
|
+
k(u(e(t)(`connect.templateDialog.intention.${o}`)), 1)
|
|
119
|
+
]),
|
|
120
|
+
_: 2
|
|
121
|
+
}, 1032, ["class", "onClick"]))), 128))
|
|
122
|
+
]),
|
|
123
|
+
_: 1
|
|
124
|
+
})
|
|
125
|
+
])),
|
|
126
|
+
l("div", ne, [
|
|
127
|
+
l("div", oe, [
|
|
128
|
+
l("div", le, u(s.campaignType ? e(t)(`connect.templateDialog.campaignType.${s.campaignType}`) : e(t)("connect.templateDialog.templateList")), 1),
|
|
129
|
+
l("div", ae, u(e(t)("connect.templateDialog.subtitle")), 1)
|
|
130
|
+
]),
|
|
131
|
+
l("div", se, [
|
|
132
|
+
c(Q, { json: e(D) }, null, 8, ["json"]),
|
|
133
|
+
l("div", ie, [
|
|
134
|
+
(r(!0), h(S, null, N(e(D), (o, w) => (r(), C(F, {
|
|
135
|
+
key: w,
|
|
136
|
+
variant: "outlined",
|
|
137
|
+
class: b(["box-border cursor-pointer h-full p-16 scroll-p-4 space-y-8", {
|
|
138
|
+
"bg-fm-color-system-warning-100 border-fm-color-primary border-2": e(n).template === o._id.toString()
|
|
139
|
+
}]),
|
|
140
|
+
onClick: (T) => e(n).template = o._id.toString()
|
|
141
|
+
}, {
|
|
142
|
+
default: m(() => {
|
|
143
|
+
var T, O;
|
|
144
|
+
return [
|
|
145
|
+
l("div", ce, [
|
|
146
|
+
c(Z, {
|
|
147
|
+
type: (O = (T = o.defaultValue) == null ? void 0 : T.campaign) == null ? void 0 : O.type
|
|
148
|
+
}, null, 8, ["type"])
|
|
149
|
+
]),
|
|
150
|
+
l("div", pe, u(e(d)(o.name_locale, o.name)), 1),
|
|
151
|
+
l("p", re, u(e(d)(o.description_locale, o.description ?? "")), 1)
|
|
152
|
+
];
|
|
153
|
+
}),
|
|
154
|
+
_: 2
|
|
155
|
+
}, 1032, ["class", "onClick"]))), 128))
|
|
156
|
+
])
|
|
157
|
+
]),
|
|
158
|
+
l("div", me, [
|
|
159
|
+
c(x, {
|
|
160
|
+
class: "sm:w-full xs:w-full",
|
|
161
|
+
variant: "plain",
|
|
162
|
+
label: e(t)("connect.templateDialog.customCampaign"),
|
|
163
|
+
size: "md",
|
|
164
|
+
onClick: R
|
|
165
|
+
}, null, 8, ["label"]),
|
|
166
|
+
s.campaignType && ["PROMOTION", "VOUCHER", "BROADCAST", "POINT", "COIN", "CREDIT"].includes(
|
|
167
|
+
s.campaignType
|
|
168
|
+
) ? (r(), C(x, {
|
|
169
|
+
key: 0,
|
|
170
|
+
class: "sm:w-full xs:w-full",
|
|
171
|
+
variant: "tertiary",
|
|
172
|
+
label: e(t)("connect.templateDialog.askRemy"),
|
|
173
|
+
size: "md",
|
|
174
|
+
onClick: V
|
|
175
|
+
}, {
|
|
176
|
+
default: m(() => [
|
|
177
|
+
l("span", ue, [
|
|
178
|
+
a[2] || (a[2] = l("img", {
|
|
179
|
+
src: q,
|
|
180
|
+
alt: "",
|
|
181
|
+
class: "w-[20px] h-[20px]"
|
|
182
|
+
}, null, -1)),
|
|
183
|
+
k(" " + u(e(t)("connect.templateDialog.askRemy")), 1)
|
|
184
|
+
])
|
|
185
|
+
]),
|
|
186
|
+
_: 1
|
|
187
|
+
}, 8, ["label"])) : I("", !0),
|
|
188
|
+
c(z, { class: "sm:hidden xs:hidden" }),
|
|
189
|
+
c(x, {
|
|
190
|
+
class: "sm:w-full xs:w-full",
|
|
191
|
+
variant: "tertiary",
|
|
192
|
+
label: e(t)("connect.templateDialog.cancel"),
|
|
193
|
+
size: "md",
|
|
194
|
+
onClick: a[1] || (a[1] = (o) => e(p).close())
|
|
195
|
+
}, null, 8, ["label"]),
|
|
196
|
+
c(x, {
|
|
197
|
+
class: "sm:w-full xs:w-full",
|
|
198
|
+
variant: "primary",
|
|
199
|
+
label: e(t)("connect.templateDialog.start"),
|
|
200
|
+
size: "md",
|
|
201
|
+
disabled: !e(n).template,
|
|
202
|
+
onClick: E
|
|
203
|
+
}, null, 8, ["label", "disabled"])
|
|
204
|
+
])
|
|
205
|
+
])
|
|
206
|
+
])
|
|
207
|
+
]),
|
|
208
|
+
_: 1
|
|
209
|
+
});
|
|
210
|
+
};
|
|
211
|
+
}
|
|
212
|
+
}), ke = (f, t) => ({
|
|
213
|
+
open: async (d) => {
|
|
214
|
+
t.open({
|
|
215
|
+
title: "",
|
|
216
|
+
dialogComponent: de,
|
|
217
|
+
dialogComponentProps: {
|
|
218
|
+
campaignType: f,
|
|
219
|
+
onOk: async (p) => (console.debug(p, "selected template"), await d(p))
|
|
220
|
+
},
|
|
221
|
+
overlay: !0
|
|
222
|
+
});
|
|
223
|
+
}
|
|
224
|
+
});
|
|
225
|
+
export {
|
|
226
|
+
ke as u
|
|
227
|
+
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import "./index-
|
|
2
|
-
import { s as u } from "./index-
|
|
1
|
+
import "./index-bGITzW-d.js";
|
|
2
|
+
import { s as u } from "./index-DFAceV6T.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-Cgg1NNfN.js";
|
|
3
|
+
import { R as i } from "./index-8wWIydMw.js";
|
|
4
|
+
import { a as E } from "./RuleGroup.vue_vue_type_script_setup_true_lang-DmOKmXkP.js";
|
|
5
|
+
import { l as e, C as d } from "./index--A062GN8.js";
|
|
6
|
+
import { i as n } from "./plugins-bprg7ahs.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
|
+
}), R = {
|
|
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) => R[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
|
+
O as a,
|
|
212
|
+
R as b
|
|
213
213
|
};
|
package/dist/{useMarketingMaterialActions-BRenBblP.js → useMarketingMaterialActions-ByWwvQRt.js}
RENAMED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { u as b } from "./vue-i18n-
|
|
1
|
+
import { u as b } from "./vue-i18n-BEFR04bc.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,
|
|
5
|
-
import { u as y } from "./loading-
|
|
3
|
+
import { c as k, p as I } from "./plugins-bprg7ahs.js";
|
|
4
|
+
import { S as o, g as c, d as M } from "./index-Aqx0Hc_6.js";
|
|
5
|
+
import { u as y } from "./loading-DhiMqWJA.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-CCBK4pXz.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"
|