@feedmepos/mf-connect 0.1.114-prod → 0.1.115-dev
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +66 -1
- package/dist/{App-DMYXrCc7.js → App-43mZfFAr.js} +700 -654
- package/dist/AuditLogs-BPpdm96t.js +2016 -0
- package/dist/{Bin-CHZolo56.js → Bin-CA7v180Y.js} +8 -8
- package/dist/Broadcast-qmdifF2Y.js +306 -0
- package/dist/{CampaignAnalytic-DgZvsUoF.js → CampaignAnalytic-xnrDxqaH.js} +7 -7
- package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-C42uL_JO.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-zjk-QdtX.js} +9 -9
- package/dist/{Card-wRFTJwJ9.js → Card-D8icsk7L.js} +25 -24
- package/dist/{Collections-9G-_9Etz.js → Collections--THcD-E_.js} +197 -185
- package/dist/{Credit-Bl7IDMCU.js → Credit-JrbtVMBp.js} +21 -20
- package/dist/{DateRangeChip.vue_vue_type_script_setup_true_lang-BVLJeofG.js → DateRangeChip.vue_vue_type_script_setup_true_lang-DrwKtnE5.js} +1 -1
- package/dist/EditCampaignSheet.vue_vue_type_script_setup_true_lang-DgdAlHU7.js +4442 -0
- package/dist/{EffectSheet.vue_vue_type_style_index_0_lang-Q1f6EQW3.js → EffectSheet.vue_vue_type_style_index_0_lang-hVgqWdD0.js} +32 -32
- package/dist/{Experience-Cs2iViLv.js → Experience-CFeRqBoj.js} +32 -31
- package/dist/{FileSaver.min-B3Levdbu.js → FileSaver.min-CCXIBm58.js} +1 -1
- package/dist/{Game-oXURgzan.js → Game-CPxq6Ex3.js} +19 -18
- package/dist/{GiftCardSetup-C2Wu-dRl.js → GiftCardSetup-D0esVZDp.js} +75 -75
- package/dist/{GoalPickerPanel.vue_vue_type_script_setup_true_lang-Da2e89Um.js → GoalPickerPanel.vue_vue_type_script_setup_true_lang-CJ1-vL-K.js} +7 -7
- package/dist/{Goals-B_xEM7gf.js → Goals-DaKI6uXt.js} +4 -4
- package/dist/Grab-BWzdN_cd.js +301 -0
- package/dist/{ImageInput.vue_vue_type_script_setup_true_lang-BRJR1heE.js → ImageInput.vue_vue_type_script_setup_true_lang-BOnL0GxM.js} +1 -1
- package/dist/{Index-kuT6W6R_.js → Index-2kENoaZm.js} +10 -10
- package/dist/{LocationPicker.vue_vue_type_script_setup_true_lang-7JqHfSk-.js → LocationPicker.vue_vue_type_script_setup_true_lang-BtWnJKU_.js} +1 -1
- package/dist/{LottieAnimation.vue_vue_type_script_setup_true_lang-CI_4S7tW.js → LottieAnimation.vue_vue_type_script_setup_true_lang-CX_Sspu5.js} +1 -1
- package/dist/{LoyaltyDashboard-CqxHdZcm.js → LoyaltyDashboard-CB93Fz8u.js} +15 -15
- package/dist/MainLayout-DwnjGXh6.js +4 -0
- package/dist/{MainLayout-CAERFIms.js → MainLayout.vue_vue_type_script_setup_true_lang-Du8fw5v_.js} +5 -4
- package/dist/Marketing-DCco__2F.js +273 -0
- package/dist/MarketingMaterialEdit-BbgFtrYP.js +1037 -0
- package/dist/{Member-B8VZEn9t.js → Member-B--nYyr0.js} +7 -7
- package/dist/{MemberDetailSheet.vue_vue_type_script_setup_true_lang-B31lVLKh.js → MemberDetailSheet.vue_vue_type_script_setup_true_lang-BBlzO7Db.js} +43 -50
- package/dist/{MemberImportHistory-D9tgHnTS.js → MemberImportHistory-D52Y4RTC.js} +7 -7
- package/dist/{MemberList-Hw_xQY1i.js → MemberList-13Owa1fj.js} +103 -105
- package/dist/{MemberTransactions-DiBO4plw.js → MemberTransactions-CpXEWNbq.js} +1 -1
- package/dist/{MessageInput.vue_vue_type_script_setup_true_lang-CbFt5X89.js → MessageInput.vue_vue_type_script_setup_true_lang-DlELjFM0.js} +4228 -4176
- package/dist/{MetricInfoTooltip.vue_vue_type_script_setup_true_lang-BE_-Ed4z.js → MetricInfoTooltip.vue_vue_type_script_setup_true_lang-C_y0rM8c.js} +1 -1
- package/dist/{Mission-DpYei3aF.js → Mission-Ci-UzXSu.js} +22 -21
- package/dist/{Overview-CARquJCS.js → Overview-CKxSfAGF.js} +145 -144
- package/dist/{Overview-BFQMmyT6.js → Overview-CXen9Ram.js} +23 -22
- package/dist/{Point-Dd2ykwNv.js → Point-CR3YOaag.js} +22 -21
- package/dist/{Promotion-DXl-W7np.js → Promotion-tw3J4ul-.js} +137 -131
- package/dist/{Queue-Cd3N-4iB.js → Queue-BZGA5ZXt.js} +47 -46
- package/dist/{Record-C3HdDsh5.js → Record-BTevVXnT.js} +9 -9
- package/dist/{Review-Bif3Ub9Z.js → Review-BU7c8ZF0.js} +2 -2
- package/dist/ReviewFacebookCallback-BnMF6Arh.js +225 -0
- package/dist/{ReviewGoogleCallback-i-RNLlLm.js → ReviewGoogleCallback-xpdPHSdg.js} +5 -5
- package/dist/{Reward-DHxzrR_7.js → Reward-jlA_7cxz.js} +29 -29
- package/dist/{RewardGroup.vue_vue_type_script_setup_true_lang-DcrFlcSo.js → RewardGroup.vue_vue_type_script_setup_true_lang-D3z_n42G.js} +16 -15
- package/dist/RuleGroup.vue_vue_type_script_setup_true_lang-CsHxqH9h.js +1923 -0
- package/dist/{Segment-Cjpxordk.js → Segment-C1Bwm--Q.js} +290 -291
- package/dist/{SendCollectionSheet.vue_vue_type_script_setup_true_lang-6u21xBu6.js → SendCollectionSheet.vue_vue_type_script_setup_true_lang-B6apgWTM.js} +31 -30
- package/dist/{SendVoucherSheet.vue_vue_type_script_setup_true_lang-BOXVzfer.js → SendVoucherSheet.vue_vue_type_script_setup_true_lang-B7m2F9UV.js} +4 -4
- package/dist/Setting-CDM4RhLW.js +574 -0
- package/dist/{SettingAdvertisements-aog5fz32.js → SettingAdvertisements-4XEAJzlL.js} +12 -12
- package/dist/Settings-D-0tvZRr.js +286 -0
- package/dist/{Store-Bq3kw1l2.js → Store-C56dXtc4.js} +31 -30
- package/dist/{StoreRewards-ZGXKEM09.js → StoreRewards-DQ1Q6WS6.js} +15 -15
- package/dist/StoreTransactions.vue_vue_type_script_setup_true_lang-LLD91Rz6.js +1319 -0
- package/dist/TargetLocationInput.vue_vue_type_script_setup_true_lang-Bvy4NJMd.js +7007 -0
- package/dist/{Tier-CfgpEHY7.js → Tier-D4CPZqw7.js} +2576 -687
- package/dist/{Title-B2itYWeD.js → Title-DCbwhUic.js} +94 -92
- package/dist/{Transaction-hJ5ygIcf.js → Transaction-C5LrasXr.js} +2 -2
- package/dist/{UserRuleGroup.vue_vue_type_script_setup_true_lang-8BgGlpTh.js → UserRuleGroup.vue_vue_type_script_setup_true_lang-Cl9b4mrK.js} +26 -26
- package/dist/{Voucher-TG47pGR3.js → Voucher-rrVbNZKR.js} +19 -19
- package/dist/{VoucherEditor.vue_vue_type_script_setup_true_lang-CjuXCTxg.js → VoucherEditor.vue_vue_type_script_setup_true_lang-BIq227nz.js} +16 -16
- package/dist/WhatsappAccount-oJDo5zTr.js +159 -0
- package/dist/WhatsappAccountStatusLabel.vue_vue_type_script_setup_true_lang-aCQCYFYq.js +39 -0
- package/dist/WhatsappBot-Cl64wG_F.js +876 -0
- package/dist/WhatsappBotLogs-D3uT4EiB.js +372 -0
- package/dist/WhatsappBotSettings-Cs1lLxh-.js +705 -0
- package/dist/WhatsappLayout-C639d2HP.js +21 -0
- package/dist/WhatsappNotificationGroupDialog.vue_vue_type_script_setup_true_lang-DpPxWp2x.js +253 -0
- package/dist/{ZodTextField.vue_vue_type_script_setup_true_lang-BRs-gbP0.js → ZodTextField.vue_vue_type_script_setup_true_lang-C39_95SZ.js} +2 -2
- package/dist/{app-tPHYkJcQ.js → app-CgimGODl.js} +10610 -8223
- package/dist/app.js +4 -3
- package/dist/{base.export-BHDVnGj2.js → base.export-D2P6HFvo.js} +2 -2
- package/dist/browser-BSAOEeIM.js +1478 -0
- package/dist/{business-HLyWfrXY.js → business-Bu5TqSA0.js} +1 -1
- package/dist/campaign-BFIXSgdJ.js +400 -0
- package/dist/{campaign-5zFgUNLw.js → campaign-zJxttSIk.js} +31 -25
- package/dist/{campaign.enum-BOkDnP2g.js → campaign.enum-Dx-Zo68Q.js} +3 -2
- package/dist/{campaign.fn-BIAoVtJj.js → campaign.fn-gvjlcEfe.js} +78 -78
- package/dist/{collectible.enum-BbZSAfys.js → collectible.enum-Liy2wH3s.js} +1 -1
- package/dist/{collection.fn-DPSgBHnz.js → collection.fn-DOm0HsSh.js} +2 -2
- package/dist/{currency-BVrMqU6-.js → currency-BpbQvbm8.js} +1 -1
- package/dist/duplicateCampaign-CvsvjRE9.js +51 -0
- package/dist/{effect-BBifVx76.js → effect-D-GtNB3n.js} +1 -1
- package/dist/{email-addresses-9C7xHTNv.js → email-addresses-BKMoAtMi.js} +2 -2
- package/dist/feature-flag-BJ_eyKsq.js +868 -0
- package/dist/feature-flag-Bo-k5sIG.js +50 -0
- package/dist/google-BQK68wbe.js +5 -0
- package/dist/{helper-C08jyQNK.js → helper-CkfjBgMM.js} +1 -1
- package/dist/{index-Dhyqf1s8.js → index-B6kU3PkV.js} +2700 -2613
- package/dist/{index-BgwZGunW.js → index-BAtUrtqM.js} +19 -6
- package/dist/index-BKsxIwbi.js +14571 -0
- package/dist/{index-DZ-q5O-V.js → index-BdEXUNoG.js} +4 -4
- package/dist/{index-hIUtD2eY.js → index-Bhl5IRXy.js} +11 -10
- package/dist/{index-kCbkOivd.js → index-BpTIulTX.js} +1 -1
- package/dist/index-C-iwb2Ln.js +109 -0
- package/dist/{index-Ciw2TZxV.js → index-CCEXSPxk.js} +8 -7
- package/dist/{index-CUle4c2B.js → index-CIej31pF.js} +4 -3
- package/dist/{index-ihw-WFCa.js → index-CQ8XFbBk.js} +2 -2
- package/dist/index-C_H8jFYf.js +2743 -0
- package/dist/{index-CEe1kJ0T.js → index-CfQuYqXn.js} +1 -1
- package/dist/{index-C_WoO58V.js → index-CuREApMc.js} +8 -7
- package/dist/{index-NJSI4wX4.js → index-D0JK99Ko.js} +693 -231
- package/dist/{index-DnRMNmUA.js → index-DKxN1mMS.js} +396 -232
- package/dist/index-DQ8JJhxs.js +74 -0
- package/dist/{index-D24Q28cH.js → index-DUAZOMVJ.js} +1 -1
- package/dist/{index-Yo0tP8KJ.js → index-DqGs6RJG.js} +683 -581
- package/dist/{index-B_334Y_i.js → index-DwU3fsLW.js} +29 -15
- package/dist/{index-hSRM1smQ.js → index-LygS9WsG.js} +8028 -10767
- package/dist/{index-96ZiAKj_.js → index-feCrYhi6.js} +1 -1
- package/dist/{index-Dk-jg0wN.js → index-zTvr2GR4.js} +2 -2
- package/dist/{index.esm2017-hN99SQTb.js → index.esm2017-DZi9IQPS.js} +209 -209
- package/dist/{loading-CVuY4vQ4.js → loading-Brid2wnu.js} +1 -1
- package/dist/{lodash-GFl9_FMH.js → lodash-C1epw3Kv.js} +1 -1
- package/dist/{member-import-CshTzabx.js → member-import-DAIxTIiu.js} +6 -5
- package/dist/{membership-S0KES3Ex.js → membership-BZmljFhF.js} +3 -3
- package/dist/{money-JxdX8ru4.js → money-cLcyGcSZ.js} +1 -1
- package/dist/{number-BRLwa-mB.js → number-C2jPLJr2.js} +1 -1
- package/dist/objectid-C-wocWKI.js +145 -0
- package/dist/{onboarding-BSKYeyP7.js → onboarding-oRfy_g05.js} +25 -25
- package/dist/{onboardingSetup-BqT52VRm.js → onboardingSetup-BLD6m8HY.js} +2 -2
- package/dist/{plugins-BR_wmMFJ.js → plugins-CUsr9vB0.js} +3 -3
- package/dist/{MarketingMaterialEdit-BvIthCHG.js → remy-icon-BhUGu2NI.js} +2 -1031
- package/dist/{reward-CpCGg_W2.js → reward-UOT03odb.js} +1 -1
- package/dist/{rule-Dbg9e8MO.js → rule-BgJnPjkI.js} +572 -492
- package/dist/style.css +1 -1
- package/dist/template-BZyFhr73.js +188 -0
- package/dist/{timezone-CDVa-xPr.js → timezone-BXA4wq7Y.js} +1 -1
- package/dist/{transaction.fn-DrTBoF9T.js → transaction.fn-CQ4fpRt3.js} +2 -2
- package/dist/{trigger-wqGwQfB2.js → trigger-DXJCGT0q.js} +8 -8
- package/dist/useMarketingMaterialActions-B-Wib5ga.js +125 -0
- package/dist/{usePagination-fODgpZZ8.js → usePagination-Pp4okWr8.js} +1 -1
- package/dist/{user-DaLUK1dk.js → user-B3gXcAIy.js} +1 -1
- package/dist/vue-i18n-DWGiC_vs.js +2365 -0
- package/dist/{xlsx-Bl4_Dtrq.js → xlsx-CCaDUTgW.js} +651 -651
- package/dist/{zod-CAzWyVqj.js → zod-CPwjOxvW.js} +1 -1
- package/package.json +12 -3
- package/dist/Broadcast-ByWvxVhW.js +0 -271
- package/dist/EditCampaignSheet.vue_vue_type_script_setup_true_lang-DGpQfV5T.js +0 -2431
- package/dist/Marketing-KgcwGErU.js +0 -236
- package/dist/ReviewFacebookCallback-mJF54-9l.js +0 -238
- package/dist/RuleGroup.vue_vue_type_script_setup_true_lang-39f3I4BB.js +0 -1883
- package/dist/Setting-Dl9MelHz.js +0 -2036
- package/dist/Settings-DvCCClIP.js +0 -179
- package/dist/StoreTransactions.vue_vue_type_script_setup_true_lang-DscLAF0p.js +0 -1264
- package/dist/TargetLocationInput.vue_vue_type_script_setup_true_lang-l_v4FHO0.js +0 -142
- package/dist/campaign-awCRccgX.js +0 -228
- package/dist/google-C3S8u0mT.js +0 -4
- package/dist/index-CoNJdOx7.js +0 -51
- package/dist/objectid-CEHN25HN.js +0 -145
- package/dist/rule-builder-BEIjxsE0.js +0 -102
- package/dist/template-CS-lExgI.js +0 -236
- package/dist/useMarketingMaterialActions-DC0gIyIZ.js +0 -96
- package/dist/vue-i18n-Dx-KXojZ.js +0 -2365
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { defineComponent as C, ref as c, h as s, onMounted as x, resolveComponent as d, openBlock as S, createElementBlock as B, Fragment as M, createVNode as l, unref as o, createElementVNode as u } from "vue";
|
|
2
2
|
import { components as p } from "@feedmepos/ui-library";
|
|
3
|
-
import { u as K } from "./loading-
|
|
4
|
-
import { u as R } from "./business-
|
|
5
|
-
import { C as A } from "./campaign-
|
|
6
|
-
import { _ as P } from "./EditCampaignSheet.vue_vue_type_script_setup_true_lang-
|
|
3
|
+
import { u as K } from "./loading-Brid2wnu.js";
|
|
4
|
+
import { u as R } from "./business-Bu5TqSA0.js";
|
|
5
|
+
import { C as A } from "./campaign-BFIXSgdJ.js";
|
|
6
|
+
import { _ as P } from "./EditCampaignSheet.vue_vue_type_script_setup_true_lang-DgdAlHU7.js";
|
|
7
7
|
import { _ as U } from "./ChipMenu.vue_vue_type_script_setup_true_lang-BPpZZNkr.js";
|
|
8
|
-
import { _ as Y } from "./SendVoucherSheet.vue_vue_type_script_setup_true_lang-
|
|
9
|
-
import { u as D } from "./vue-i18n-
|
|
8
|
+
import { _ as Y } from "./SendVoucherSheet.vue_vue_type_script_setup_true_lang-B7m2F9UV.js";
|
|
9
|
+
import { u as D } from "./vue-i18n-DWGiC_vs.js";
|
|
10
10
|
import { h as E } from "./moment-D7p2TMB-.js";
|
|
11
|
-
import { p as I } from "./plugins-
|
|
12
|
-
import { c as g } from "./index-
|
|
11
|
+
import { p as I } from "./plugins-CUsr9vB0.js";
|
|
12
|
+
import { c as g } from "./index-zTvr2GR4.js";
|
|
13
13
|
const T = { class: "px-24 flex flex-col gap-y-16" }, $ = { class: "flex items-center justify-between w-full" }, j = { class: "flex gap-8 overflow-x-auto" }, oe = /* @__PURE__ */ C({
|
|
14
14
|
__name: "Bin",
|
|
15
15
|
setup(H) {
|
|
@@ -0,0 +1,306 @@
|
|
|
1
|
+
import { defineComponent as X, ref as F, computed as Y, h as g, onMounted as Z, resolveComponent as d, openBlock as m, createElementBlock as y, Fragment as k, createVNode as r, unref as a, createElementVNode as n, withCtx as A, renderList as ee, createBlock as C, resolveDynamicComponent as te, toDisplayString as p, createCommentVNode as B } from "vue";
|
|
2
|
+
import { _ as ae } from "./campaign-CpzFl8Vr.js";
|
|
3
|
+
import { useDialog as oe, components as D } from "@feedmepos/ui-library";
|
|
4
|
+
import { p as ne } from "./plugins-CUsr9vB0.js";
|
|
5
|
+
import { u as se } from "./loading-Brid2wnu.js";
|
|
6
|
+
import { u as ce } from "./business-Bu5TqSA0.js";
|
|
7
|
+
import { u as re } from "./campaign-zJxttSIk.js";
|
|
8
|
+
import { a as ie, b as K, c as P, d as f } from "./campaign-BFIXSgdJ.js";
|
|
9
|
+
import { c as le, p as me } from "./duplicateCampaign-CvsvjRE9.js";
|
|
10
|
+
import { u as de } from "./vue-i18n-DWGiC_vs.js";
|
|
11
|
+
import { _ as pe } from "./FilterChip.vue_vue_type_script_setup_true_lang-3bH-tZAm.js";
|
|
12
|
+
import { _ as ue } from "./MessageInput.vue_vue_type_script_setup_true_lang-DlELjFM0.js";
|
|
13
|
+
import { _ as ge } from "./EditCampaignSheet.vue_vue_type_script_setup_true_lang-DgdAlHU7.js";
|
|
14
|
+
import { u as fe } from "./template-BZyFhr73.js";
|
|
15
|
+
import { u as ye } from "./onboardingSetup-BLD6m8HY.js";
|
|
16
|
+
import { c as _ } from "./index-zTvr2GR4.js";
|
|
17
|
+
const _e = { class: "px-24 flex flex-col gap-y-16" }, he = { class: "flex items-center justify-between w-full" }, be = { class: "flex gap-8 overflow-x-auto" }, we = { class: "space-y-8" }, Ce = { class: "flex w-full gap-4 items-center" }, ve = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, xe = { class: "space-y-4" }, Se = { class: "fm-typo-en-body-lg-600" }, Fe = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, ke = {
|
|
18
|
+
key: 0,
|
|
19
|
+
class: "flex flex-wrap items-center gap-6"
|
|
20
|
+
}, Ae = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, Be = { class: "flex items-center gap-8" }, De = { key: 0 }, Re = { class: "text-fm-color-typo-secondary fm-typo-en-body-md-600" }, Le = { class: "flex flex-col gap-16 text-center" }, Oe = { class: "fm-typo-en-title-sm-800" }, Ve = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Xe = /* @__PURE__ */ X({
|
|
21
|
+
__name: "Broadcast",
|
|
22
|
+
setup(Te) {
|
|
23
|
+
const { t: s } = de(), $ = {
|
|
24
|
+
label: s("connect.campaign.common.createCampaign"),
|
|
25
|
+
value: "create",
|
|
26
|
+
isPrimary: !0,
|
|
27
|
+
prependIcon: "add"
|
|
28
|
+
}, j = fe("BROADCAST", oe()), M = ce(), u = re(), { global: N, minor: R } = se, L = F((/* @__PURE__ */ new Date()).toISOString()), i = F({
|
|
29
|
+
searchKey: "",
|
|
30
|
+
location: []
|
|
31
|
+
});
|
|
32
|
+
function U(e) {
|
|
33
|
+
const t = i.value.location;
|
|
34
|
+
return !t || t.length === 0 || !e.targetLocation ? !0 : Array.isArray(t) ? t.some((l) => {
|
|
35
|
+
var c;
|
|
36
|
+
return (c = e == null ? void 0 : e.targetLocation) == null ? void 0 : c.includes(l);
|
|
37
|
+
}) : e.targetLocation.includes(t);
|
|
38
|
+
}
|
|
39
|
+
const h = Y(
|
|
40
|
+
() => u.campaigns.broadcast.filter((e) => U(e))
|
|
41
|
+
), E = [
|
|
42
|
+
{
|
|
43
|
+
header: "Broadcast title",
|
|
44
|
+
accessorFn: (e) => e.name
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
header: "Status",
|
|
48
|
+
accessorFn: (e) => ie(e),
|
|
49
|
+
cell(e) {
|
|
50
|
+
return K(e.row.original);
|
|
51
|
+
}
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
header: s("connect.campaign.broadcast.column.memberSegment"),
|
|
55
|
+
accessorFn: (e) => P(e)
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
header: s("connect.campaign.broadcast.column.channels"),
|
|
59
|
+
accessorFn: (e) => {
|
|
60
|
+
var t;
|
|
61
|
+
return ((t = f(e)) == null ? void 0 : t.route) ?? "";
|
|
62
|
+
},
|
|
63
|
+
cell(e) {
|
|
64
|
+
const t = f(e.row.original);
|
|
65
|
+
return t ? g("div", { class: "flex flex-col gap-4", title: t.route }, [
|
|
66
|
+
t.strategy ? g(D.FmChip, {
|
|
67
|
+
label: t.strategy,
|
|
68
|
+
variant: "plain",
|
|
69
|
+
compact: !0,
|
|
70
|
+
class: "self-start"
|
|
71
|
+
}) : null,
|
|
72
|
+
g("span", { class: "fm-typo-en-body-md-400 truncate" }, t.route)
|
|
73
|
+
]) : "";
|
|
74
|
+
}
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
header: "Message sent",
|
|
78
|
+
accessorFn: (e) => e.currentReceive ?? "N/A"
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
header: "Actions",
|
|
82
|
+
cell(e) {
|
|
83
|
+
return g("div", { class: "flex items-center gap-8 justify-end" }, [
|
|
84
|
+
g(D.FmButton, {
|
|
85
|
+
variant: "tertiary",
|
|
86
|
+
icon: "content_copy",
|
|
87
|
+
iconColor: "neutral-gray-400",
|
|
88
|
+
onClick: async (t) => {
|
|
89
|
+
t.stopPropagation(), await V(e.row.original);
|
|
90
|
+
}
|
|
91
|
+
}),
|
|
92
|
+
g(D.FmButton, {
|
|
93
|
+
variant: "tertiary",
|
|
94
|
+
icon: "delete",
|
|
95
|
+
iconColor: "neutral-gray-400",
|
|
96
|
+
onClick: (t) => {
|
|
97
|
+
t.stopPropagation(), O(e.row.original);
|
|
98
|
+
}
|
|
99
|
+
})
|
|
100
|
+
]);
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
], b = F();
|
|
104
|
+
async function O(e) {
|
|
105
|
+
await ne.remove(
|
|
106
|
+
s("connect.campaign.common.remove.confirm", { name: e.name })
|
|
107
|
+
) && await R(
|
|
108
|
+
async () => {
|
|
109
|
+
await _.delete(e._id), await u.read("BROADCAST");
|
|
110
|
+
},
|
|
111
|
+
{
|
|
112
|
+
message: s("connect.campaign.common.remove.removing", { name: e.name }),
|
|
113
|
+
successMessage: s("connect.campaign.common.remove.removed", {
|
|
114
|
+
name: e.name
|
|
115
|
+
})
|
|
116
|
+
}
|
|
117
|
+
);
|
|
118
|
+
}
|
|
119
|
+
async function w(e) {
|
|
120
|
+
L.value = (/* @__PURE__ */ new Date()).toISOString(), e ? await t() : j.open(async (l) => {
|
|
121
|
+
await t(l);
|
|
122
|
+
});
|
|
123
|
+
async function t(l) {
|
|
124
|
+
var c;
|
|
125
|
+
(c = b.value) == null || c.showSheet(
|
|
126
|
+
!0,
|
|
127
|
+
"BROADCAST",
|
|
128
|
+
e ? await _.readById(e._id) : void 0,
|
|
129
|
+
l
|
|
130
|
+
);
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
async function V(e) {
|
|
134
|
+
var c;
|
|
135
|
+
if (!await le(e.name))
|
|
136
|
+
return;
|
|
137
|
+
L.value = (/* @__PURE__ */ new Date()).toISOString();
|
|
138
|
+
const t = await _.readById(e._id), l = me(t);
|
|
139
|
+
(c = b.value) == null || c.showSheet(
|
|
140
|
+
!0,
|
|
141
|
+
"BROADCAST",
|
|
142
|
+
l,
|
|
143
|
+
t.template
|
|
144
|
+
);
|
|
145
|
+
}
|
|
146
|
+
async function H(e) {
|
|
147
|
+
await R(
|
|
148
|
+
async () => {
|
|
149
|
+
e.campaign._id ? await _.update(e.campaign._id, e) : await _.create(e), await u.read("BROADCAST");
|
|
150
|
+
},
|
|
151
|
+
{
|
|
152
|
+
message: s(
|
|
153
|
+
`connect.campaign.broadcast.update.${e.campaign._id ? "updating" : "creating"}`
|
|
154
|
+
),
|
|
155
|
+
successMessage: s("connect.campaign.broadcast.update.success", {
|
|
156
|
+
action: e.campaign._id ? "updated" : "created"
|
|
157
|
+
})
|
|
158
|
+
}
|
|
159
|
+
);
|
|
160
|
+
}
|
|
161
|
+
const q = ye();
|
|
162
|
+
return Z(async () => {
|
|
163
|
+
var e;
|
|
164
|
+
await N(async () => {
|
|
165
|
+
await u.read("BROADCAST");
|
|
166
|
+
}), await q.consume() === "BROADCAST" && ((e = b.value) == null || e.showSheet(!0, "BROADCAST"));
|
|
167
|
+
}), (e, t) => {
|
|
168
|
+
const l = d("FmPageHead"), c = d("FmSearch"), z = d("FmTable"), G = d("FmChip"), v = d("FmButton"), J = d("FmListItem"), Q = d("FmList"), W = d("FmCard");
|
|
169
|
+
return m(), y(k, null, [
|
|
170
|
+
r(l, {
|
|
171
|
+
title: a(s)("connect.campaign.broadcast.title"),
|
|
172
|
+
actions: a(h).length > 0 ? [$] : [],
|
|
173
|
+
"onClick:action": t[0] || (t[0] = () => w())
|
|
174
|
+
}, null, 8, ["title", "actions"]),
|
|
175
|
+
n("div", _e, [
|
|
176
|
+
r(ue),
|
|
177
|
+
r(c, {
|
|
178
|
+
modelValue: a(i).searchKey,
|
|
179
|
+
"onUpdate:modelValue": t[1] || (t[1] = (o) => a(i).searchKey = o),
|
|
180
|
+
class: "hidden xs:!block sm:!block border-b-2 border-fm-color-neutral-gray-100",
|
|
181
|
+
placeholder: a(s)("connect.campaign.common.search"),
|
|
182
|
+
collapsible: ""
|
|
183
|
+
}, null, 8, ["modelValue", "placeholder"]),
|
|
184
|
+
a(u).campaigns.broadcast && a(u).campaigns.broadcast.length > 0 ? (m(), y(k, { key: 0 }, [
|
|
185
|
+
n("div", he, [
|
|
186
|
+
n("div", be, [
|
|
187
|
+
r(pe, {
|
|
188
|
+
label: `${a(s)("connect.campaign.common.location")}: `,
|
|
189
|
+
"right-icon": "keyboard_arrow_down",
|
|
190
|
+
modelValue: a(i).location,
|
|
191
|
+
"onUpdate:modelValue": t[2] || (t[2] = (o) => a(i).location = o),
|
|
192
|
+
icon: "storefront",
|
|
193
|
+
"show-item-label": !0,
|
|
194
|
+
items: a(M).locationOptions
|
|
195
|
+
}, null, 8, ["label", "modelValue", "items"])
|
|
196
|
+
]),
|
|
197
|
+
r(c, {
|
|
198
|
+
modelValue: a(i).searchKey,
|
|
199
|
+
"onUpdate:modelValue": t[3] || (t[3] = (o) => a(i).searchKey = o),
|
|
200
|
+
class: "xs:hidden sm:hidden",
|
|
201
|
+
placeholder: "search",
|
|
202
|
+
collapsible: ""
|
|
203
|
+
}, null, 8, ["modelValue"])
|
|
204
|
+
]),
|
|
205
|
+
r(z, {
|
|
206
|
+
class: "xs:hidden sm:hidden",
|
|
207
|
+
"row-data": a(h),
|
|
208
|
+
"column-defs": E,
|
|
209
|
+
"search-value": a(i).searchKey,
|
|
210
|
+
"column-filter": [],
|
|
211
|
+
onRowClick: t[4] || (t[4] = (o) => w(o.original)),
|
|
212
|
+
"hide-footer": !0
|
|
213
|
+
}, null, 8, ["row-data", "search-value"]),
|
|
214
|
+
r(Q, { class: "hidden xs:!flex sm:!flex flex-col mx-[-24px]" }, {
|
|
215
|
+
default: A(() => [
|
|
216
|
+
(m(!0), y(k, null, ee(a(h).filter(
|
|
217
|
+
(o) => o.name.toLowerCase().includes(a(i).searchKey.toLowerCase())
|
|
218
|
+
), (o) => (m(), C(J, {
|
|
219
|
+
key: o._id.toString(),
|
|
220
|
+
onClick: (x) => w(o),
|
|
221
|
+
class: "py-12 px-16 flex items-center justify-between border-b border-fm-color-neutral-gray-100"
|
|
222
|
+
}, {
|
|
223
|
+
default: A(() => {
|
|
224
|
+
var x, T, I;
|
|
225
|
+
return [
|
|
226
|
+
n("div", we, [
|
|
227
|
+
n("div", Ce, [
|
|
228
|
+
(m(), C(te(a(K)(o)))),
|
|
229
|
+
n("div", ve, p(o.currentReceive ?? 0) + " sent ", 1)
|
|
230
|
+
]),
|
|
231
|
+
n("div", xe, [
|
|
232
|
+
n("div", Se, p(o.name), 1),
|
|
233
|
+
n("div", Fe, p(a(P)(o)), 1),
|
|
234
|
+
a(f)(o) ? (m(), y("div", ke, [
|
|
235
|
+
(x = a(f)(o)) != null && x.strategy ? (m(), C(G, {
|
|
236
|
+
key: 0,
|
|
237
|
+
label: ((T = a(f)(o)) == null ? void 0 : T.strategy) ?? "",
|
|
238
|
+
variant: "plain",
|
|
239
|
+
compact: ""
|
|
240
|
+
}, null, 8, ["label"])) : B("", !0),
|
|
241
|
+
n("span", Ae, p((I = a(f)(o)) == null ? void 0 : I.route), 1)
|
|
242
|
+
])) : B("", !0)
|
|
243
|
+
])
|
|
244
|
+
]),
|
|
245
|
+
n("div", Be, [
|
|
246
|
+
r(v, {
|
|
247
|
+
icon: "content_copy",
|
|
248
|
+
"icon-color": "neutral-gray-400",
|
|
249
|
+
variant: "tertiary",
|
|
250
|
+
onClick: async (S) => {
|
|
251
|
+
S.stopPropagation(), await V(o);
|
|
252
|
+
}
|
|
253
|
+
}, null, 8, ["onClick"]),
|
|
254
|
+
r(v, {
|
|
255
|
+
icon: "delete",
|
|
256
|
+
"icon-color": "neutral-gray-400",
|
|
257
|
+
variant: "tertiary",
|
|
258
|
+
onClick: (S) => (S.stopPropagation(), O(o))
|
|
259
|
+
}, null, 8, ["onClick"])
|
|
260
|
+
])
|
|
261
|
+
];
|
|
262
|
+
}),
|
|
263
|
+
_: 2
|
|
264
|
+
}, 1032, ["onClick"]))), 128))
|
|
265
|
+
]),
|
|
266
|
+
_: 1
|
|
267
|
+
}),
|
|
268
|
+
a(h).length == 0 ? (m(), y("div", De, [
|
|
269
|
+
n("div", Re, p(a(s)("connect.campaign.common.noResults")), 1)
|
|
270
|
+
])) : B("", !0)
|
|
271
|
+
], 64)) : (m(), C(W, {
|
|
272
|
+
key: 1,
|
|
273
|
+
variant: "outlined",
|
|
274
|
+
class: "w-full flex flex-col items-center justify-center gap-y-24 p-24"
|
|
275
|
+
}, {
|
|
276
|
+
default: A(() => [
|
|
277
|
+
t[6] || (t[6] = n("img", {
|
|
278
|
+
src: ae,
|
|
279
|
+
class: "aspect-square w-[150px]"
|
|
280
|
+
}, null, -1)),
|
|
281
|
+
n("div", Le, [
|
|
282
|
+
n("div", Oe, p(a(s)("connect.campaign.broadcast.create.title")), 1),
|
|
283
|
+
n("div", Ve, p(a(s)("connect.campaign.broadcast.create.description")), 1)
|
|
284
|
+
]),
|
|
285
|
+
r(v, {
|
|
286
|
+
variant: "primary",
|
|
287
|
+
label: a(s)("connect.campaign.broadcast.create.button"),
|
|
288
|
+
icon: "add",
|
|
289
|
+
onClick: t[5] || (t[5] = (o) => w())
|
|
290
|
+
}, null, 8, ["label"])
|
|
291
|
+
]),
|
|
292
|
+
_: 1
|
|
293
|
+
})),
|
|
294
|
+
r(ge, {
|
|
295
|
+
ref_key: "sheetRef",
|
|
296
|
+
ref: b,
|
|
297
|
+
"onSubmit:modelValue": H
|
|
298
|
+
}, null, 512)
|
|
299
|
+
])
|
|
300
|
+
], 64);
|
|
301
|
+
};
|
|
302
|
+
}
|
|
303
|
+
});
|
|
304
|
+
export {
|
|
305
|
+
Xe as default
|
|
306
|
+
};
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { defineComponent as z, computed as P, resolveComponent as S, openBlock as r, createBlock as x, withCtx as D, createElementBlock as d, createCommentVNode as v, createElementVNode as s, toDisplayString as u, normalizeClass as K, unref as o, Fragment as L, normalizeStyle as ye, createTextVNode as xe, renderList as ee, createVNode as $, ref as Q, onMounted as ke } from "vue";
|
|
2
|
-
import { u as he } from "./vue-i18n-
|
|
2
|
+
import { u as he } from "./vue-i18n-DWGiC_vs.js";
|
|
3
3
|
import { useCoreStore as we } from "@feedmepos/mf-common";
|
|
4
|
-
import { c as U } from "./index-
|
|
5
|
-
import { u as Re } from "./loading-
|
|
6
|
-
import { s as Me,
|
|
7
|
-
import { C as be } from "./timezone-
|
|
4
|
+
import { c as U } from "./index-zTvr2GR4.js";
|
|
5
|
+
import { u as Re } from "./loading-Brid2wnu.js";
|
|
6
|
+
import { s as Me, a as _e } from "./campaign-BFIXSgdJ.js";
|
|
7
|
+
import { C as be } from "./timezone-BXA4wq7Y.js";
|
|
8
8
|
import { h as Se } from "./moment-D7p2TMB-.js";
|
|
9
9
|
import { s as Ce } from "./index-CuvNtC_M.js";
|
|
10
|
-
import { T as Ie } from "./transaction.fn-
|
|
11
|
-
import { _ as te } from "./MetricInfoTooltip.vue_vue_type_script_setup_true_lang-
|
|
10
|
+
import { T as Ie } from "./transaction.fn-CQ4fpRt3.js";
|
|
11
|
+
import { _ as te } from "./MetricInfoTooltip.vue_vue_type_script_setup_true_lang-C_y0rM8c.js";
|
|
12
12
|
import { useRoute as $e, useRouter as Pe } from "vue-router";
|
|
13
13
|
const Oe = {
|
|
14
14
|
state: "populated",
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { a as RuleOperator, _ } from "./index-B6kU3PkV.js";
|
|
2
|
+
import { a as isRuleGroup } from "./index-D0JK99Ko.js";
|
|
3
3
|
import { defineComponent, resolveComponent, openBlock, createBlock, withCtx, createElementVNode, createElementBlock, Fragment, renderList, unref, createVNode, toDisplayString, createCommentVNode } from "vue";
|
|
4
4
|
import { useDialog } from "@feedmepos/ui-library";
|
|
5
|
-
import "./index-
|
|
6
|
-
import "./index-
|
|
7
|
-
import { F as F_RUNNABLE_CAMPAIGN_TYPE } from "./index-
|
|
8
|
-
import "./index-
|
|
9
|
-
import "./index-
|
|
10
|
-
import "./index-
|
|
11
|
-
import { u as useBusinessStore } from "./business-
|
|
5
|
+
import "./index-DqGs6RJG.js";
|
|
6
|
+
import "./index-LygS9WsG.js";
|
|
7
|
+
import { F as F_RUNNABLE_CAMPAIGN_TYPE } from "./index-DKxN1mMS.js";
|
|
8
|
+
import "./index-CuREApMc.js";
|
|
9
|
+
import "./index-C-iwb2Ln.js";
|
|
10
|
+
import "./index-CIej31pF.js";
|
|
11
|
+
import { u as useBusinessStore } from "./business-Bu5TqSA0.js";
|
|
12
12
|
function validateRule(data, r, date) {
|
|
13
13
|
const rules = new RuleOperator(date ?? /* @__PURE__ */ new Date());
|
|
14
14
|
function meetConditions(e) {
|
|
@@ -2,31 +2,32 @@ import { defineComponent as oe, ref as y, computed as E, watch as ge, onMounted
|
|
|
2
2
|
import { _ as Ue } from "./campaign-CpzFl8Vr.js";
|
|
3
3
|
import { h as ye } from "./moment-D7p2TMB-.js";
|
|
4
4
|
import { useDialog as Ne, components as ve } from "@feedmepos/ui-library";
|
|
5
|
-
import "./index-
|
|
6
|
-
import { u as se } from "./loading-
|
|
5
|
+
import "./index-LygS9WsG.js";
|
|
6
|
+
import { u as se } from "./loading-Brid2wnu.js";
|
|
7
7
|
import { u as Fe } from "./app-wDQR6dpb.js";
|
|
8
|
-
import { u as ie } from "./membership-
|
|
8
|
+
import { u as ie } from "./membership-BZmljFhF.js";
|
|
9
9
|
import { _ as ae } from "./CustomSelect.vue_vue_type_script_setup_true_lang-Du7fRSZC.js";
|
|
10
|
-
import { p as ke, f as xe, n as De } from "./plugins-
|
|
11
|
-
import { m as H } from "./index-
|
|
12
|
-
import { z as Ce, R as Re } from "./app-
|
|
13
|
-
import { Z as _e } from "./zod-
|
|
14
|
-
import { _ as he } from "./ImageInput.vue_vue_type_script_setup_true_lang-
|
|
15
|
-
import "./index-
|
|
16
|
-
import "./index-
|
|
17
|
-
import
|
|
18
|
-
import "./index-
|
|
19
|
-
import "./index-
|
|
20
|
-
import "./index-
|
|
21
|
-
import
|
|
22
|
-
import {
|
|
10
|
+
import { p as ke, f as xe, n as De } from "./plugins-CUsr9vB0.js";
|
|
11
|
+
import { m as H } from "./index-BAtUrtqM.js";
|
|
12
|
+
import { z as Ce, R as Re } from "./app-CgimGODl.js";
|
|
13
|
+
import { Z as _e } from "./zod-CPwjOxvW.js";
|
|
14
|
+
import { _ as he } from "./ImageInput.vue_vue_type_script_setup_true_lang-BOnL0GxM.js";
|
|
15
|
+
import "./index-D0JK99Ko.js";
|
|
16
|
+
import "./index-DqGs6RJG.js";
|
|
17
|
+
import "./index-B6kU3PkV.js";
|
|
18
|
+
import { b as Pe } from "./index-DKxN1mMS.js";
|
|
19
|
+
import "./index-CuREApMc.js";
|
|
20
|
+
import "./index-C-iwb2Ln.js";
|
|
21
|
+
import "./index-CIej31pF.js";
|
|
22
|
+
import { O as Le } from "./objectid-C-wocWKI.js";
|
|
23
|
+
import { u as Ve } from "./vue-i18n-DWGiC_vs.js";
|
|
23
24
|
import { a as Te, c as Ee } from "./object-BYyQ0PZp.js";
|
|
24
|
-
import { u as ze } from "./business-
|
|
25
|
-
import { w as qe } from "./xlsx-
|
|
26
|
-
import { B as Oe, e as je } from "./base.export-
|
|
27
|
-
import { u as Ye, _ as Ge } from "./usePagination-
|
|
28
|
-
import "./index-
|
|
29
|
-
import { g as He } from "./user-
|
|
25
|
+
import { u as ze } from "./business-Bu5TqSA0.js";
|
|
26
|
+
import { w as qe } from "./xlsx-CCaDUTgW.js";
|
|
27
|
+
import { B as Oe, e as je } from "./base.export-D2P6HFvo.js";
|
|
28
|
+
import { u as Ye, _ as Ge } from "./usePagination-Pp4okWr8.js";
|
|
29
|
+
import "./index-feCrYhi6.js";
|
|
30
|
+
import { g as He } from "./user-B3gXcAIy.js";
|
|
30
31
|
import { useRouter as Ke } from "vue-router";
|
|
31
32
|
import { o as Qe } from "./objectId-dwaoBfJX.js";
|
|
32
33
|
class Se extends Oe {
|
|
@@ -658,7 +659,7 @@ const Ze = { class: "space-y-16" }, Xe = { class: "gap-16 grid grid-cols-2" }, J
|
|
|
658
659
|
]), 1032, ["header", "modelValue"]);
|
|
659
660
|
};
|
|
660
661
|
}
|
|
661
|
-
}), xt = { class: "flex flex-col gap-4" }, Ct = { class: "flex items-center" }, _t = { class: "fm-typo-en-title-md-600 fm-step-title line-clamp-2 mr-8" }, ht = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary max-w-[640px]" }, St = { class: "px-24 flex flex-col pb-24 gap-y-16" }, wt = { class: "flex items-center gap-8 flex-wrap p-12 mt-8 rounded-md bg-fm-color-neutral-gray-100" }, Ft = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, kt = { class: "grid sm:grid-cols-2 md:grid-cols-3 lg:grid-cols-3 gap-16" }, Vt = { class: "fm-typo-en-body-md-500 text-fm-color-typo-secondary" }, $t = { class: "fm-typo-en-title-md-800 text-fm-color-typo-primary" }, At = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-tertiary" }, It = { class: "flex items-center gap-16 flex-wrap" }, Mt = { class: "flex-1 min-w-0" }, Bt = { class: "flex items-center gap-8 flex-none" }, Ut = { class: "flex flex-col gap-16 text-center" }, Nt = { class: "fm-typo-en-title-sm-800" }, Dt = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Rt = { class: "flex gap-x-8" },
|
|
662
|
+
}), xt = { class: "flex flex-col gap-4" }, Ct = { class: "flex items-center" }, _t = { class: "fm-typo-en-title-md-600 fm-step-title line-clamp-2 mr-8" }, ht = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary max-w-[640px]" }, St = { class: "px-24 flex flex-col pb-24 gap-y-16" }, wt = { class: "flex items-center gap-8 flex-wrap p-12 mt-8 rounded-md bg-fm-color-neutral-gray-100" }, Ft = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, kt = { class: "grid sm:grid-cols-2 md:grid-cols-3 lg:grid-cols-3 gap-16" }, Vt = { class: "fm-typo-en-body-md-500 text-fm-color-typo-secondary" }, $t = { class: "fm-typo-en-title-md-800 text-fm-color-typo-primary" }, At = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-tertiary" }, It = { class: "flex items-center gap-16 flex-wrap" }, Mt = { class: "flex-1 min-w-0" }, Bt = { class: "flex items-center gap-8 flex-none" }, Ut = { class: "flex flex-col gap-16 text-center" }, Nt = { class: "fm-typo-en-title-sm-800" }, Dt = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Rt = { class: "flex gap-x-8" }, gl = /* @__PURE__ */ oe({
|
|
662
663
|
__name: "Card",
|
|
663
664
|
setup(W) {
|
|
664
665
|
const Y = Ke();
|
|
@@ -1081,5 +1082,5 @@ const Ze = { class: "space-y-16" }, Xe = { class: "gap-16 grid grid-cols-2" }, J
|
|
|
1081
1082
|
}
|
|
1082
1083
|
});
|
|
1083
1084
|
export {
|
|
1084
|
-
|
|
1085
|
+
gl as default
|
|
1085
1086
|
};
|