@feedmepos/mf-connect 0.1.111-prod → 0.1.113-beta.3
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-D3pYl3WL.js → App-YfpYV7C0.js} +738 -689
- package/dist/AuditLogs-kD0_HO_p.js +2016 -0
- package/dist/{Bin-DOZqpbYH.js → Bin-Dr-Xp3pn.js} +8 -8
- package/dist/Broadcast-CEbHu2xA.js +306 -0
- package/dist/{CampaignAnalytic-cFKvCgxX.js → CampaignAnalytic-DDiGxPwp.js} +7 -7
- package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-B0eVEubS.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-Cc_Yho9-.js} +49 -32
- package/dist/Card-BUnwg0eM.js +1086 -0
- package/dist/{Collections-9QK5hbLo.js → Collections-CKyBkKq2.js} +197 -185
- package/dist/{Credit-8Ouy4O9a.js → Credit-CJOXWLV1.js} +21 -20
- package/dist/{DateRangeChip.vue_vue_type_script_setup_true_lang-CJA-yunY.js → DateRangeChip.vue_vue_type_script_setup_true_lang-DmEBLeNI.js} +1 -1
- package/dist/EditCampaignSheet.vue_vue_type_script_setup_true_lang-Ce5R4Un6.js +4442 -0
- package/dist/{EffectSheet.vue_vue_type_style_index_0_lang-Dv0q3B8m.js → EffectSheet.vue_vue_type_style_index_0_lang-CMFmlqfF.js} +32 -32
- package/dist/{Experience-DMh4hR1S.js → Experience-C_Am5CTY.js} +32 -31
- package/dist/{FileSaver.min-Bx9mdUgJ.js → FileSaver.min-CueAGbjq.js} +1 -1
- package/dist/{Game-CL0TZvg1.js → Game-B6GO_LVU.js} +19 -18
- package/dist/GiftCardSetup-CVLDDpI2.js +748 -0
- package/dist/{GoalPickerPanel.vue_vue_type_script_setup_true_lang-Bz5kIfoM.js → GoalPickerPanel.vue_vue_type_script_setup_true_lang-isfGhKO1.js} +7 -7
- package/dist/{Goals-Dz5Vp-lj.js → Goals-BX-sMV2V.js} +4 -4
- package/dist/Grab-Bh335Srh.js +301 -0
- package/dist/{ImageInput.vue_vue_type_script_setup_true_lang-CaPDI3vY.js → ImageInput.vue_vue_type_script_setup_true_lang-srSgUY3e.js} +1 -1
- package/dist/{Index-kH8aAegB.js → Index-CyXRbwcm.js} +10 -10
- package/dist/{LocationPicker.vue_vue_type_script_setup_true_lang-CFrgC3Ka.js → LocationPicker.vue_vue_type_script_setup_true_lang-S3GB2Ems.js} +1 -1
- package/dist/{LottieAnimation.vue_vue_type_script_setup_true_lang-DPIFLdBc.js → LottieAnimation.vue_vue_type_script_setup_true_lang-ZlWHXwXZ.js} +1 -1
- package/dist/{LoyaltyDashboard-BBxEoWol.js → LoyaltyDashboard-DrTq8oiu.js} +15 -15
- package/dist/MainLayout-KbKkpX5n.js +4 -0
- package/dist/{MainLayout-2BLwDyHQ.js → MainLayout.vue_vue_type_script_setup_true_lang-2D5ate_s.js} +5 -4
- package/dist/{Marketing-C4OnSV-c.js → Marketing-DQT1MWQg.js} +4 -4
- package/dist/MarketingMaterialEdit-fSqr53-M.js +1037 -0
- package/dist/{Member-CT9WwxP0.js → Member-DwDUCzlv.js} +7 -7
- package/dist/{MemberDetailSheet.vue_vue_type_script_setup_true_lang-C7yznkUn.js → MemberDetailSheet.vue_vue_type_script_setup_true_lang-DaQ4Lw8f.js} +43 -49
- package/dist/{MemberImportHistory-B__BFID7.js → MemberImportHistory-D4ezvJGZ.js} +7 -7
- package/dist/{MemberList-DgLI4wty.js → MemberList-DFieV7Qk.js} +103 -105
- package/dist/{MemberTransactions-UFx_DZYe.js → MemberTransactions-BPOXyAuC.js} +1 -1
- package/dist/{MessageInput.vue_vue_type_script_setup_true_lang-BFjZA8Y6.js → MessageInput.vue_vue_type_script_setup_true_lang-DhfsgDd4.js} +4821 -4690
- package/dist/{MetricInfoTooltip.vue_vue_type_script_setup_true_lang-Df9bxbUl.js → MetricInfoTooltip.vue_vue_type_script_setup_true_lang-CX8bk_IQ.js} +1 -1
- package/dist/{Mission-CawzGzDu.js → Mission-nErb05Es.js} +22 -21
- package/dist/{Overview-D19oSo24.js → Overview-7G31a7B-.js} +58 -56
- package/dist/{Overview-CAtTlEVa.js → Overview-DuJr_hAg.js} +145 -144
- package/dist/{Point-BPAGmKAj.js → Point-PWDLemD4.js} +22 -21
- package/dist/{Promotion-B0Uf9vjL.js → Promotion-N80Tj8M6.js} +137 -131
- package/dist/{Queue-CJEAFss_.js → Queue-M7ZpgiMT.js} +49 -47
- package/dist/{Record-s6hSQG2P.js → Record-NhxrdvWv.js} +9 -9
- package/dist/{Review-DhNCbAOm.js → Review-DiAaAzIG.js} +2 -2
- package/dist/ReviewFacebookCallback-JdyxFbNl.js +225 -0
- package/dist/{ReviewGoogleCallback-D8ENWii2.js → ReviewGoogleCallback-BXbI3Bsh.js} +5 -5
- package/dist/{Reward-BT00QsXL.js → Reward-yTaOqOT8.js} +29 -29
- package/dist/{RewardGroup.vue_vue_type_script_setup_true_lang-DaZDGhbm.js → RewardGroup.vue_vue_type_script_setup_true_lang-BWPfjZ9K.js} +26 -24
- package/dist/RuleGroup.vue_vue_type_script_setup_true_lang-Cz2H9MKe.js +1923 -0
- package/dist/{Segment-BuGhX9zg.js → Segment-DE9Bcd6R.js} +287 -287
- package/dist/{SendCollectionSheet.vue_vue_type_script_setup_true_lang-DB718_4P.js → SendCollectionSheet.vue_vue_type_script_setup_true_lang-pmv0cb4J.js} +37 -35
- package/dist/{SendVoucherSheet.vue_vue_type_script_setup_true_lang-CkgXxy0C.js → SendVoucherSheet.vue_vue_type_script_setup_true_lang-BeWwkTix.js} +4 -4
- package/dist/Setting-C0JAxIRT.js +574 -0
- package/dist/{SettingAdvertisements-aqFErKAr.js → SettingAdvertisements-DxueyKU8.js} +12 -12
- package/dist/Settings-Cs46AcxZ.js +286 -0
- package/dist/Store-DqQae9nE.js +2629 -0
- package/dist/{StoreRewards-D2pTL2oA.js → StoreRewards-JxSUsOzJ.js} +15 -15
- package/dist/StoreTransactions.vue_vue_type_script_setup_true_lang-qgrBtUNX.js +1319 -0
- package/dist/TargetLocationInput.vue_vue_type_script_setup_true_lang-D7ifzgsI.js +7007 -0
- package/dist/{Tier-OyE8oH2r.js → Tier-DWhgWush.js} +2576 -686
- package/dist/{Title-DAl7CKL_.js → Title-DUNeMdz8.js} +104 -101
- package/dist/Transaction-DAv-LVhC.js +45 -0
- package/dist/{UserRuleGroup.vue_vue_type_script_setup_true_lang-C0yHxQVr.js → UserRuleGroup.vue_vue_type_script_setup_true_lang-Cih-9IoW.js} +26 -26
- package/dist/{Voucher-D2QGWSxs.js → Voucher-uLTq9RSK.js} +19 -19
- package/dist/{VoucherEditor.vue_vue_type_script_setup_true_lang-Bt2YB745.js → VoucherEditor.vue_vue_type_script_setup_true_lang-BevVL_Kx.js} +16 -16
- package/dist/WhatsappAccount-BpXQ4q0P.js +158 -0
- package/dist/WhatsappAccountStatusLabel.vue_vue_type_script_setup_true_lang-EssnbsgT.js +39 -0
- package/dist/WhatsappBot-DB4NRZMd.js +589 -0
- package/dist/WhatsappBotLogs-DDN4H_bv.js +372 -0
- package/dist/WhatsappBotSettings-Bkv1VNwF.js +387 -0
- package/dist/WhatsappBotTickets-DAKgnE6T.js +162 -0
- package/dist/WhatsappLayout-DSnq84Uo.js +21 -0
- package/dist/WhatsappNotificationGroupDialog.vue_vue_type_script_setup_true_lang-1BvxPD-k.js +195 -0
- package/dist/{ZodTextField.vue_vue_type_script_setup_true_lang-BzCL64Jo.js → ZodTextField.vue_vue_type_script_setup_true_lang-CR-F0x1r.js} +2 -2
- package/dist/{app-QxosLNkH.js → app-Devzv4gO.js} +12854 -9732
- package/dist/app.js +4 -3
- package/dist/base.export-CCSMkvAm.js +75 -0
- package/dist/browser-BSAOEeIM.js +1478 -0
- package/dist/{business-CbqG6NXr.js → business-BjAmUqNA.js} +1 -1
- package/dist/campaign-C5c47GqT.js +400 -0
- package/dist/{campaign-Rj7oDBnN.js → campaign-CTe-T5Gd.js} +31 -25
- package/dist/{campaign.enum-B7vdNYKd.js → campaign.enum-Dx-Zo68Q.js} +3 -2
- package/dist/campaign.fn-DxAO8A5b.js +776 -0
- package/dist/{collectible.enum-BsQseg7-.js → collectible.enum-Liy2wH3s.js} +1 -1
- package/dist/{collection.fn-EbUIyB1X.js → collection.fn-C9l-OtNt.js} +2 -2
- package/dist/currency-mwm4AWXK.js +7 -0
- package/dist/duplicateCampaign-BbC4AwQ1.js +51 -0
- package/dist/{effect-B_91OlcX.js → effect-D8ba9z0K.js} +1 -1
- package/dist/{email-addresses-DXnYZG-e.js → email-addresses-BR5J6_Jz.js} +2 -2
- package/dist/feature-flag-C-5NdFW8.js +868 -0
- package/dist/feature-flag-CNcU4_3r.js +50 -0
- package/dist/google-BQK68wbe.js +5 -0
- package/dist/{helper-_uhiXya1.js → helper-D9cEaMIv.js} +1 -1
- package/dist/index-0H82-X0n.js +80 -0
- package/dist/{index-Cp7oHMm3.js → index-B1jP-_Z_.js} +691 -229
- package/dist/{index-BZ2b0Pk6.js → index-B7HH6vKF.js} +8 -7
- package/dist/{index-tbo0pMIu.js → index-BFaZp6Et.js} +29 -15
- package/dist/index-B_gzo75q.js +53 -0
- package/dist/{index-DlQJZNwD.js → index-BfoDdVQS.js} +22 -6
- package/dist/{index-CDm0BWa3.js → index-BvY2hQac.js} +1 -1
- package/dist/index-Byg4ztr-.js +902 -0
- package/dist/{index-BWgc2-Qz.js → index-CZfqqrVu.js} +4 -3
- package/dist/index-C_H8jFYf.js +2743 -0
- package/dist/{index-xuFTeVrb.js → index-CmzjBrHR.js} +11 -9
- package/dist/{index-BBihP1s2.js → index-Ct6YjTIW.js} +2 -2
- package/dist/{index-Df4l6y-S.js → index-D34iYRdc.js} +1900 -2121
- package/dist/{index-DuhRCI0L.js → index-D4k1G2oE.js} +4 -4
- package/dist/{index-uuNGb1nv.js → index-DnepoNWn.js} +8028 -10766
- package/dist/index-Drmh0FT-.js +14571 -0
- package/dist/{index-DlGnYR5y.js → index-DtcUCknS.js} +2700 -2613
- package/dist/{index-C_1iqF1Q.js → index-DwTBiVts.js} +1 -1
- package/dist/{index-CWUmrVo_.js → index-OvnHt5x5.js} +800 -793
- package/dist/index-RwNlbTO8.js +115 -0
- package/dist/{index-CzYxnDWP.js → index-VqAbYyHH.js} +11 -6
- package/dist/{index-DzBzClHP.js → index-yGSko6Eq.js} +1 -1
- package/dist/{index.esm2017-B72iWwk_.js → index.esm2017-DLb2VyCT.js} +156 -156
- package/dist/{loading-rIhCiB_S.js → loading-CUNk5u1d.js} +1 -1
- package/dist/{lodash-B6fOjfjd.js → lodash-BJXravls.js} +1 -1
- package/dist/{member-import-CbHn7zss.js → member-import-DjYoddBi.js} +6 -5
- package/dist/{membership-DkJN7jyQ.js → membership-ByJUFP8f.js} +3 -3
- package/dist/{money-ChbDx6Nq.js → money-Bf2IEMJJ.js} +1 -1
- package/dist/{number-9TEd27Ku.js → number-CRBHrRUL.js} +1 -1
- package/dist/objectid-58gyOvdR.js +145 -0
- package/dist/{onboarding-BN3MKVRs.js → onboarding-CQ3lw7eY.js} +25 -25
- package/dist/{onboardingSetup-D9xhdgS3.js → onboardingSetup-CsdZKGFk.js} +2 -2
- package/dist/{plugins-CCibSJZa.js → plugins-iTZLbJGy.js} +3 -3
- package/dist/{MarketingMaterialEdit-DFhpsI2-.js → remy-icon-BhUGu2NI.js} +2 -1031
- package/dist/{reward-DjasF-NL.js → reward-DTN6JpEd.js} +1 -1
- package/dist/{rule-DqeChj0e.js → rule-BYACNQOL.js} +572 -492
- package/dist/style.css +1 -1
- package/dist/template--Vr0PCjB.js +188 -0
- package/dist/{timezone-D0nC1LDx.js → timezone-DwzjOED-.js} +1 -1
- package/dist/{transaction.fn-BkF4Ad2z.js → transaction.fn-DapYe3n7.js} +2 -2
- package/dist/{trigger-CxpXoQJO.js → trigger-D8r76yb0.js} +18 -18
- package/dist/{useMarketingMaterialActions-p0-fyMkm.js → useMarketingMaterialActions-CdMmibPE.js} +3 -3
- package/dist/{usePagination-CrC-1v4L.js → usePagination-BRcQJkO1.js} +1 -1
- package/dist/useWhatsappAccount-BOJ8fz84.js +62 -0
- package/dist/{user-CrylHgF1.js → user-vBZFKqXQ.js} +1 -1
- package/dist/vue-i18n-Cw6fF11e.js +2365 -0
- package/dist/{xlsx-CJNYF7-l.js → xlsx-Muy_Rjhk.js} +440 -440
- package/dist/{zod-Dzn9S95S.js → zod-CCPTOeUz.js} +1 -1
- package/package.json +12 -3
- package/dist/Broadcast-DZ4SP99P.js +0 -271
- package/dist/Card-B5ni027Q.js +0 -911
- package/dist/EditCampaignSheet.vue_vue_type_script_setup_true_lang-BYxswo-Z.js +0 -2430
- package/dist/ReviewFacebookCallback-DeZqcpJo.js +0 -238
- package/dist/RuleGroup.vue_vue_type_script_setup_true_lang-BvxbKSkB.js +0 -1882
- package/dist/Setting-BOWPp05N.js +0 -2036
- package/dist/Settings-DekXvE-R.js +0 -179
- package/dist/Store-DpVlMuau.js +0 -1998
- package/dist/StoreTransactions.vue_vue_type_script_setup_true_lang-CNDv6eiZ.js +0 -1009
- package/dist/TargetLocationInput.vue_vue_type_script_setup_true_lang-C-C3RSeW.js +0 -142
- package/dist/Transaction-mvKzTgLx.js +0 -39
- package/dist/campaign-Co4Lq-Wz.js +0 -228
- package/dist/campaign.fn-DolD3lYJ.js +0 -776
- package/dist/export-D0hWZSfH.js +0 -97
- package/dist/google-C3S8u0mT.js +0 -4
- package/dist/index-aCuOvuEC.js +0 -45
- package/dist/objectid-CGol1NeA.js +0 -145
- package/dist/rule-builder-DT854ycI.js +0 -102
- package/dist/template-BeCVA0-N.js +0 -236
- package/dist/vue-i18n-BjtkXdmG.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-CUNk5u1d.js";
|
|
4
|
+
import { u as R } from "./business-BjAmUqNA.js";
|
|
5
|
+
import { C as A } from "./campaign-C5c47GqT.js";
|
|
6
|
+
import { _ as P } from "./EditCampaignSheet.vue_vue_type_script_setup_true_lang-Ce5R4Un6.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-BeWwkTix.js";
|
|
9
|
+
import { u as D } from "./vue-i18n-Cw6fF11e.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-iTZLbJGy.js";
|
|
12
|
+
import { c as g } from "./index-VqAbYyHH.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-iTZLbJGy.js";
|
|
5
|
+
import { u as se } from "./loading-CUNk5u1d.js";
|
|
6
|
+
import { u as ce } from "./business-BjAmUqNA.js";
|
|
7
|
+
import { u as re } from "./campaign-CTe-T5Gd.js";
|
|
8
|
+
import { a as ie, b as K, c as P, d as f } from "./campaign-C5c47GqT.js";
|
|
9
|
+
import { c as le, p as me } from "./duplicateCampaign-BbC4AwQ1.js";
|
|
10
|
+
import { u as de } from "./vue-i18n-Cw6fF11e.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-DhfsgDd4.js";
|
|
13
|
+
import { _ as ge } from "./EditCampaignSheet.vue_vue_type_script_setup_true_lang-Ce5R4Un6.js";
|
|
14
|
+
import { u as fe } from "./template--Vr0PCjB.js";
|
|
15
|
+
import { u as ye } from "./onboardingSetup-CsdZKGFk.js";
|
|
16
|
+
import { c as _ } from "./index-VqAbYyHH.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-Cw6fF11e.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-VqAbYyHH.js";
|
|
5
|
+
import { u as Re } from "./loading-CUNk5u1d.js";
|
|
6
|
+
import { s as Me, a as _e } from "./campaign-C5c47GqT.js";
|
|
7
|
+
import { C as be } from "./timezone-DwzjOED-.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-DapYe3n7.js";
|
|
11
|
+
import { _ as te } from "./MetricInfoTooltip.vue_vue_type_script_setup_true_lang-CX8bk_IQ.js";
|
|
12
12
|
import { useRoute as $e, useRouter as Pe } from "vue-router";
|
|
13
13
|
const Oe = {
|
|
14
14
|
state: "populated",
|
|
@@ -1,12 +1,14 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { defineComponent, resolveComponent, openBlock, createBlock, withCtx, createElementVNode, createElementBlock, Fragment, renderList, createVNode, toDisplayString } from "vue";
|
|
1
|
+
import { a as RuleOperator, _ } from "./index-DtcUCknS.js";
|
|
2
|
+
import { a as isRuleGroup } from "./index-B1jP-_Z_.js";
|
|
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
|
|
6
|
-
import "./index-
|
|
7
|
-
import "./index-
|
|
8
|
-
import "./index-
|
|
9
|
-
import "./index-
|
|
5
|
+
import "./index-D34iYRdc.js";
|
|
6
|
+
import "./index-DnepoNWn.js";
|
|
7
|
+
import { F as F_RUNNABLE_CAMPAIGN_TYPE } from "./index-Byg4ztr-.js";
|
|
8
|
+
import "./index-B7HH6vKF.js";
|
|
9
|
+
import "./index-RwNlbTO8.js";
|
|
10
|
+
import "./index-CZfqqrVu.js";
|
|
11
|
+
import { u as useBusinessStore } from "./business-BjAmUqNA.js";
|
|
10
12
|
function validateRule(data, r, date) {
|
|
11
13
|
const rules = new RuleOperator(date ?? /* @__PURE__ */ new Date());
|
|
12
14
|
function meetConditions(e) {
|
|
@@ -21,11 +23,11 @@ function validateRule(data, r, date) {
|
|
|
21
23
|
equator: t
|
|
22
24
|
// raw: data,
|
|
23
25
|
}), o;
|
|
24
|
-
const
|
|
26
|
+
const a = rules[n](
|
|
25
27
|
l,
|
|
26
28
|
t
|
|
27
29
|
);
|
|
28
|
-
return o &&
|
|
30
|
+
return o && a;
|
|
29
31
|
},
|
|
30
32
|
!0
|
|
31
33
|
);
|
|
@@ -44,7 +46,7 @@ function validateRule(data, r, date) {
|
|
|
44
46
|
}
|
|
45
47
|
return isRuleGroup(r) ? evaluateRuleResult(getRuleResults(r), r.logic) : meetConditions(r);
|
|
46
48
|
}
|
|
47
|
-
const _hoisted_1 = { class: "flex flex-col h-full space-y-24" }, _hoisted_2 = { class: "fm-typo-en-title-sm-600" },
|
|
49
|
+
const _hoisted_1 = { class: "flex flex-col h-full space-y-24" }, _hoisted_2 = ["disabled", "onClick"], _hoisted_3 = { class: "flex items-center gap-8" }, _hoisted_4 = { class: "fm-typo-en-title-sm-600" }, _hoisted_5 = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, _sfc_main = /* @__PURE__ */ defineComponent({
|
|
48
50
|
__name: "CampaignTypeDialog",
|
|
49
51
|
props: {
|
|
50
52
|
onSelect: {
|
|
@@ -53,7 +55,7 @@ const _hoisted_1 = { class: "flex flex-col h-full space-y-24" }, _hoisted_2 = {
|
|
|
53
55
|
}
|
|
54
56
|
},
|
|
55
57
|
setup(e) {
|
|
56
|
-
const o = e, n = useDialog(), t = [
|
|
58
|
+
const o = e, n = useDialog(), t = useBusinessStore(), l = [
|
|
57
59
|
{
|
|
58
60
|
title: "Promotion",
|
|
59
61
|
description: "Special offers or deals made available for a limited time",
|
|
@@ -72,12 +74,14 @@ const _hoisted_1 = { class: "flex flex-col h-full space-y-24" }, _hoisted_2 = {
|
|
|
72
74
|
{
|
|
73
75
|
title: "Point",
|
|
74
76
|
description: "Points allow customers to purchase bundle items.",
|
|
75
|
-
value: F_RUNNABLE_CAMPAIGN_TYPE.enum.COIN
|
|
77
|
+
value: F_RUNNABLE_CAMPAIGN_TYPE.enum.COIN,
|
|
78
|
+
premium: !0
|
|
76
79
|
},
|
|
77
80
|
{
|
|
78
81
|
title: "Game",
|
|
79
82
|
description: "The game feature adds a fun and encourage customers to engage more.",
|
|
80
|
-
value: F_RUNNABLE_CAMPAIGN_TYPE.enum.GAME
|
|
83
|
+
value: F_RUNNABLE_CAMPAIGN_TYPE.enum.GAME,
|
|
84
|
+
premium: !0
|
|
81
85
|
},
|
|
82
86
|
{
|
|
83
87
|
title: "Credit",
|
|
@@ -85,30 +89,43 @@ const _hoisted_1 = { class: "flex flex-col h-full space-y-24" }, _hoisted_2 = {
|
|
|
85
89
|
value: F_RUNNABLE_CAMPAIGN_TYPE.enum.CREDIT
|
|
86
90
|
}
|
|
87
91
|
];
|
|
88
|
-
function
|
|
89
|
-
|
|
92
|
+
function a(u) {
|
|
93
|
+
var s;
|
|
94
|
+
(s = l.find((c) => c.value === u)) != null && s.premium && !t.isPremium || (n.close(), o.onSelect(u));
|
|
90
95
|
}
|
|
91
|
-
return (
|
|
92
|
-
const c = resolveComponent("FmCard");
|
|
93
|
-
return openBlock(), createBlock(
|
|
96
|
+
return (u, s) => {
|
|
97
|
+
const c = resolveComponent("FmPill"), m = resolveComponent("FmCard");
|
|
98
|
+
return openBlock(), createBlock(m, { class: "p-24 space-y-16" }, {
|
|
94
99
|
default: withCtx(() => [
|
|
95
|
-
|
|
100
|
+
s[0] || (s[0] = createElementVNode("div", { class: "" }, [
|
|
96
101
|
createElementVNode("div", { class: "fm-typo-en-title-sm-800" }, "Add benefit"),
|
|
97
102
|
createElementVNode("div", { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, " Select the benefit type that you want to reward the selected tier. ")
|
|
98
103
|
], -1)),
|
|
99
104
|
createElementVNode("div", _hoisted_1, [
|
|
100
|
-
(openBlock(), createElementBlock(Fragment, null, renderList(
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
105
|
+
(openBlock(), createElementBlock(Fragment, null, renderList(l, (i) => createElementVNode("button", {
|
|
106
|
+
key: i.value,
|
|
107
|
+
type: "button",
|
|
108
|
+
disabled: i.premium && !unref(t).isPremium,
|
|
109
|
+
onClick: (d) => a(i.value),
|
|
110
|
+
class: "w-full text-left disabled:cursor-not-allowed disabled:opacity-50"
|
|
111
|
+
}, [
|
|
112
|
+
createVNode(m, {
|
|
113
|
+
variant: "outlined",
|
|
114
|
+
class: "p-16 space-y-8"
|
|
115
|
+
}, {
|
|
116
|
+
default: withCtx(() => [
|
|
117
|
+
createElementVNode("div", _hoisted_3, [
|
|
118
|
+
createElementVNode("div", _hoisted_4, toDisplayString(i.title), 1),
|
|
119
|
+
i.premium ? (openBlock(), createBlock(c, {
|
|
120
|
+
key: 0,
|
|
121
|
+
variant: "premium"
|
|
122
|
+
})) : createCommentVNode("", !0)
|
|
123
|
+
]),
|
|
124
|
+
createElementVNode("div", _hoisted_5, toDisplayString(i.description), 1)
|
|
125
|
+
]),
|
|
126
|
+
_: 2
|
|
127
|
+
}, 1024)
|
|
128
|
+
], 8, _hoisted_2)), 64))
|
|
112
129
|
])
|
|
113
130
|
]),
|
|
114
131
|
_: 1
|