@feedmepos/mf-connect 0.1.98-beta.7 → 0.1.98-beta.71
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-BonFFUVJ.js → App-B-Onur9k.js} +812 -666
- package/dist/{AuditLogs-CaQisyMC.js → AuditLogs-BnEeKG1C.js} +14 -13
- package/dist/{Bin-Mu8gAiHw.js → Bin-BH9_nATR.js} +8 -8
- package/dist/Broadcast-Gt2ZLLpZ.js +302 -0
- package/dist/CampaignAnalytic-BT6zTgNk.js +1830 -0
- package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-BoLZVrCU.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-nNLLEzii.js} +6 -5
- package/dist/Card-dD52oor7.js +1084 -0
- package/dist/{Collections-CByXxRW_.js → Collections-7bwYNl3M.js} +14 -13
- package/dist/Credit-qZdlqXqR.js +286 -0
- package/dist/DateRangeChip.vue_vue_type_script_setup_true_lang-DeNn_k19.js +53 -0
- package/dist/EditCampaignSheet.vue_vue_type_script_setup_true_lang-C09W9Qja.js +4213 -0
- package/dist/{EffectSheet.vue_vue_type_style_index_0_lang-BXsAX1Xa.js → EffectSheet.vue_vue_type_style_index_0_lang-Bz1HRBMa.js} +35 -35
- package/dist/{Experience-B7J-aqPK.js → Experience-CAaWgWXP.js} +112 -86
- package/dist/{FileSaver.min-D_F_MSZt.js → FileSaver.min-BpfY6VnX.js} +1 -1
- package/dist/FilterChip.vue_vue_type_script_setup_true_lang-3bH-tZAm.js +138 -0
- package/dist/Game-fhrbFb_5.js +356 -0
- package/dist/GiftCardSetup-CTwmNKim.js +736 -0
- package/dist/{Grab-C45MmlD9.js → Grab-BnPfb92x.js} +33 -32
- package/dist/{ImageInput.vue_vue_type_script_setup_true_lang-CPPcB3PC.js → ImageInput.vue_vue_type_script_setup_true_lang-BySju1oT.js} +1 -1
- package/dist/{Index-vQ6uP49O.js → Index-DRwvmm_j.js} +10 -10
- package/dist/{LocationPicker.vue_vue_type_script_setup_true_lang-Cj3hN3tg.js → LocationPicker.vue_vue_type_script_setup_true_lang-Ya4r9NNE.js} +1 -1
- package/dist/{LottieAnimation.vue_vue_type_script_setup_true_lang-DU9eIein.js → LottieAnimation.vue_vue_type_script_setup_true_lang-CDwtqqLQ.js} +1 -1
- package/dist/LoyaltyDashboard-8jn6SIWo.js +2865 -0
- package/dist/MainLayout-Bf42AcB1.js +143 -0
- package/dist/{Marketing-B6xMdQvW.js → Marketing-DruTMjiR.js} +7 -6
- package/dist/{MarketingMaterialEdit-0cZN4bek.js → MarketingMaterialEdit-moEHd_gP.js} +15 -14
- package/dist/Member-C9VTQqIm.js +654 -0
- package/dist/MemberDetailSheet.vue_vue_type_script_setup_true_lang-DEsVSWmv.js +1279 -0
- package/dist/MemberImportHistory-DZVwya9v.js +187 -0
- package/dist/MemberList-KusIfy1u.js +334 -0
- package/dist/{MemberTransactions-Bg-ziZy8.js → MemberTransactions-msyjdzlI.js} +1 -1
- package/dist/{MessageInput.vue_vue_type_script_setup_true_lang-jbDJkbZh.js → MessageInput.vue_vue_type_script_setup_true_lang-DbV-m3cC.js} +5928 -5644
- package/dist/MetricInfoTooltip.vue_vue_type_script_setup_true_lang-1DYGpJnD.js +40 -0
- package/dist/Mission-CUUxpBUF.js +360 -0
- package/dist/{Overview-nsyJGSCq.js → Overview-C9jyKXHX.js} +21 -20
- package/dist/Overview-CYKoF8Hp.js +1316 -0
- package/dist/Point-CPpQ07yp.js +288 -0
- package/dist/Promotion-CJ95m9Qb.js +423 -0
- package/dist/{Queue-Dkipt6fw.js → Queue-CX39ILh_.js} +14 -13
- package/dist/{Record-BFqx6vM-.js → Record-6I0qyXB5.js} +9 -9
- package/dist/Review-DoWu2XNT.js +45 -0
- package/dist/ReviewFacebookCallback-Co-5TnI7.js +238 -0
- package/dist/ReviewGoogleCallback-Ca7ZuMcF.js +213 -0
- package/dist/{Reward-DjFEE7I_.js → Reward-Cx_N6qBJ.js} +35 -35
- package/dist/{RewardGroup.vue_vue_type_script_setup_true_lang-BzZ6VH80.js → RewardGroup.vue_vue_type_script_setup_true_lang-Cn5Yp37p.js} +14 -13
- package/dist/{RuleGroup.vue_vue_type_script_setup_true_lang-A9jQX4jt.js → RuleGroup.vue_vue_type_script_setup_true_lang-M0c67Dyl.js} +196 -186
- package/dist/{Segment-BAjdUfZ6.js → Segment-Bx0EW966.js} +275 -276
- package/dist/{SendCollectionSheet.vue_vue_type_script_setup_true_lang-CAQPFzRH.js → SendCollectionSheet.vue_vue_type_script_setup_true_lang-ahvrEUGa.js} +37 -36
- package/dist/{SendVoucherSheet.vue_vue_type_script_setup_true_lang-Gkz8jhES.js → SendVoucherSheet.vue_vue_type_script_setup_true_lang-C7zSfZdl.js} +4 -4
- package/dist/{Setting-BK7y0XC-.js → Setting-DzEK3dWj.js} +14 -14
- package/dist/{SettingAdvertisements-DfQ645xr.js → SettingAdvertisements-BNALbI88.js} +12 -12
- package/dist/Settings-Cw85-xzq.js +230 -0
- package/dist/Store-BSqW1gwf.js +2612 -0
- package/dist/{StoreRewards-usHKOGmB.js → StoreRewards-CJXnS8Qf.js} +15 -15
- package/dist/StoreTransactions.vue_vue_type_script_setup_true_lang-C6tUwHEj.js +1329 -0
- package/dist/{TargetLocationInput.vue_vue_type_script_setup_true_lang-DrcWUZuR.js → TargetLocationInput.vue_vue_type_script_setup_true_lang-iylphGuV.js} +2 -2
- package/dist/{Tier-BF3V430O.js → Tier-DfitNxp2.js} +2580 -754
- package/dist/{Title-DwPuqKfJ.js → Title-QCbtOvKB.js} +39 -37
- package/dist/Transaction-dOCzlidD.js +45 -0
- package/dist/{UserRuleGroup.vue_vue_type_script_setup_true_lang-DToNRTJS.js → UserRuleGroup.vue_vue_type_script_setup_true_lang-Be5X1C-Y.js} +26 -26
- package/dist/{Voucher-DnhVIl_o.js → Voucher-BfoCDwjg.js} +156 -133
- package/dist/{VoucherEditor.vue_vue_type_script_setup_true_lang-Btb3UZCn.js → VoucherEditor.vue_vue_type_script_setup_true_lang-0EIYoZ0F.js} +118 -124
- package/dist/{ZodTextField.vue_vue_type_script_setup_true_lang-EFUW9DMY.js → ZodTextField.vue_vue_type_script_setup_true_lang-UdStgKbX.js} +2 -2
- package/dist/{app-i3r-6ZVm.js → app-BxTElIm-.js} +45168 -37577
- package/dist/app.js +1 -1
- package/dist/base.export-BmUK8hMh.js +75 -0
- package/dist/{business-i0Gxk7gG.js → business-DjAiT8tR.js} +5 -5
- package/dist/campaign-DlR3KF9m.js +368 -0
- package/dist/campaign-tAmQNoq7.js +100 -0
- package/dist/{campaign.enum-CbUTfxek.js → campaign.enum-BjwEQd11.js} +1 -1
- package/dist/{campaign.fn-BjHSIDd1.js → campaign.fn-C6kWWIQx.js} +53 -53
- package/dist/{collectible.enum-DN7E_kHg.js → collectible.enum-BrtXpT9S.js} +1 -1
- package/dist/collection.fn-CDhfM3Eq.js +26 -0
- package/dist/currency-10nX5QnT.js +7 -0
- package/dist/{duplicateCampaign-DmdJQEIA.js → duplicateCampaign-6oMZOvfM.js} +11 -11
- package/dist/{effect-DM4AzeQl.js → effect-T4YzuTc5.js} +1 -1
- package/dist/{email-addresses-BlqVJhwZ.js → email-addresses-BjODnJMM.js} +209 -201
- package/dist/google-C3S8u0mT.js +4 -0
- package/dist/{helper-CkdISSVP.js → helper-BCl5r5yZ.js} +1 -1
- package/dist/{index-DgzNGQgE.js → index-B9ZMIUMa.js} +2083 -2559
- package/dist/{index-CB7ytKOE.js → index-BBsK7TUw.js} +1588 -1522
- package/dist/index-BQk6zTgf.js +32437 -0
- package/dist/index-Bd4clHfr.js +901 -0
- package/dist/index-BeVWchv7.js +14550 -0
- package/dist/index-Bht1Z11w.js +72 -0
- package/dist/{index-FD50UHqf.js → index-BiolIgqR.js} +105 -123
- package/dist/{index-Cl8t41Sk.js → index-BxU--5J5.js} +5 -5
- package/dist/index-Bz6oSli7.js +151 -0
- package/dist/index-C5IfNJUl.js +53 -0
- package/dist/{index-BWsj6lCJ.js → index-CRvUvCMA.js} +14 -14
- package/dist/{index-B6xi1soU.js → index-CnaQt4Pn.js} +1 -1
- package/dist/{index-4EtrCy_K.js → index-Ctja--IE.js} +4 -4
- package/dist/{index-D6qeYVNz.js → index-D8rGhchh.js} +1 -1
- package/dist/{index-BrboOmPq.js → index-DJdTDF9C.js} +347 -216
- package/dist/index-DXiJa8Cw.js +137 -0
- package/dist/{index-CxdLExX0.js → index-DeQKLilv.js} +24 -9
- package/dist/{index-vI-ndGu_.js → index-DhtKt4OL.js} +5 -5
- package/dist/{index.esm2017-BX5CyKoc.js → index.esm2017-CEOegJjn.js} +132 -132
- package/dist/{loading-DTKDhqew.js → loading-Dx4SCvZY.js} +1 -1
- package/dist/{lodash-CCPBsqhe.js → lodash-Dq8OKCKK.js} +1 -1
- package/dist/member-import-DX-jn2uk.js +187 -0
- package/dist/membership-CltAa-gH.js +274 -0
- package/dist/{money-wMK3QkZ5.js → money-DsaAjJTI.js} +1 -1
- package/dist/{number-DjKVlWn0.js → number-DmhHKYgY.js} +1 -1
- package/dist/objectid-BdNv-dZX.js +145 -0
- package/dist/{plugins-D25PaNJk.js → plugins-BFKVM3uC.js} +13 -12
- package/dist/remy-Qz_pNsUS.js +13 -0
- package/dist/{reward-E63jqJHm.js → reward--SjvIeyy.js} +1 -1
- package/dist/{rule-RVvPtAnk.js → rule-CAKdNobZ.js} +335 -275
- package/dist/style.css +1 -1
- package/dist/{template-zNxOQaqe.js → template-Cfxc5eM8.js} +6 -6
- package/dist/timezone-D2b-V5XD.js +20 -0
- package/dist/transaction.fn-B5mLY7bz.js +71 -0
- package/dist/{trigger-BXV02FhP.js → trigger-DvYcjRBZ.js} +17 -17
- package/dist/useMarketingMaterialActions-DtqnjMSt.js +96 -0
- package/dist/{usePagination-BPcPhEnp.js → usePagination-DKX24g31.js} +1 -1
- package/dist/{user-Bd8S7R5u.js → user-fWb1NxGO.js} +1 -1
- package/dist/vue-i18n-wJReAVJw.js +2365 -0
- package/dist/{xlsx-_tQC9Ezf.js → xlsx-Mthhu4JR.js} +440 -440
- package/dist/{zod-C1j2GLZP.js → zod-CVpVUgBZ.js} +1 -1
- package/package.json +10 -6
- package/dist/Broadcast-Cy-i-WOT.js +0 -266
- package/dist/Card-f2XOtWxp.js +0 -910
- package/dist/Credit-CcZF4aQS.js +0 -260
- package/dist/DateRangeChip.vue_vue_type_script_setup_true_lang-eIoPtgO5.js +0 -58
- package/dist/EditCampaignSheet.vue_vue_type_script_setup_true_lang-C7KZ8GMx.js +0 -3377
- package/dist/FilterChip.vue_vue_type_script_setup_true_lang-DaU-9GzO.js +0 -129
- package/dist/Game-CUW7NeVG.js +0 -330
- package/dist/LoyaltyDashboard-GqyUwvXz.js +0 -1082
- package/dist/MainLayout-R5NxIBR-.js +0 -41
- package/dist/Member-CC5F6Bmz.js +0 -280
- package/dist/MemberList-Cq4zxopX.js +0 -1601
- package/dist/Mission-DcCZ6tAG.js +0 -334
- package/dist/Point-D1vLd5hL.js +0 -262
- package/dist/Promotion-Cv7MW5RJ.js +0 -397
- package/dist/Review-CKhakUMe.js +0 -1123
- package/dist/ReviewFacebookCallback-xgRpXQAg.js +0 -243
- package/dist/ReviewGoogleCallback-Cqi_43qi.js +0 -208
- package/dist/SelectItems.vue_vue_type_script_setup_true_lang-DDqK4kV1.js +0 -181
- package/dist/Store-uTRQ6KbC.js +0 -1996
- package/dist/StoreTransactions.vue_vue_type_script_setup_true_lang-Bb2sTsuA.js +0 -1130
- package/dist/Transaction-CnTEfMGU.js +0 -39
- package/dist/campaign-CbMlARNI.js +0 -219
- package/dist/campaign-f7FT91GR.js +0 -277
- package/dist/export-DQR-0lmK.js +0 -97
- package/dist/index-COrXX9MR.js +0 -52
- package/dist/index-CWiaP-aV.js +0 -28900
- package/dist/index-jVfDVEtz.js +0 -85
- package/dist/membership-rifuatxU.js +0 -255
- package/dist/objectid-DjpWkCxH.js +0 -145
- package/dist/useMarketingMaterialActions-5TFNqZVo.js +0 -107
- package/dist/vue-i18n-CgMK-TaC.js +0 -2365
|
@@ -1,19 +1,20 @@
|
|
|
1
1
|
import { defineComponent as Ve, ref as ye, resolveComponent as Be, openBlock as P, createBlock as ui, unref as v, isRef as mi, withCtx as We, createElementVNode as k, createElementBlock as ie, Fragment as Ue, renderList as je, toDisplayString as $, watch as fi, onBeforeMount as hi, createVNode as H, createCommentVNode as gi, h as G } from "vue";
|
|
2
2
|
import { components as Ye } from "@feedmepos/ui-library";
|
|
3
|
-
import "./index-
|
|
3
|
+
import "./index-BxU--5J5.js";
|
|
4
4
|
import { h as Q } from "./moment-D7p2TMB-.js";
|
|
5
|
-
import { _ as Je } from "./FilterChip.vue_vue_type_script_setup_true_lang-
|
|
6
|
-
import { _ as vi } from "./DateRangeChip.vue_vue_type_script_setup_true_lang-
|
|
7
|
-
import { u as yi, _ as ki } from "./usePagination-
|
|
8
|
-
import { c as Xe } from "./plugins-
|
|
5
|
+
import { _ as Je } from "./FilterChip.vue_vue_type_script_setup_true_lang-3bH-tZAm.js";
|
|
6
|
+
import { _ as vi } from "./DateRangeChip.vue_vue_type_script_setup_true_lang-DeNn_k19.js";
|
|
7
|
+
import { u as yi, _ as ki } from "./usePagination-DKX24g31.js";
|
|
8
|
+
import { c as Xe } from "./plugins-BFKVM3uC.js";
|
|
9
9
|
import { c as Fe } from "./string-Gcy5IM_H.js";
|
|
10
|
-
import { e as me, f as xi } from "./index-
|
|
11
|
-
import "./index-
|
|
12
|
-
import "./index-
|
|
13
|
-
import "./index-
|
|
14
|
-
import
|
|
10
|
+
import { e as me, f as xi } from "./index-DJdTDF9C.js";
|
|
11
|
+
import "./index-B9ZMIUMa.js";
|
|
12
|
+
import "./index-BBsK7TUw.js";
|
|
13
|
+
import "./index-Bd4clHfr.js";
|
|
14
|
+
import "./index-DhtKt4OL.js";
|
|
15
|
+
import { g as Si, S as Ei, b as Ci } from "./index-BQk6zTgf.js";
|
|
15
16
|
import { o as _i } from "./objectId-dwaoBfJX.js";
|
|
16
|
-
import { u as Oi } from "./vue-i18n-
|
|
17
|
+
import { u as Oi } from "./vue-i18n-wJReAVJw.js";
|
|
17
18
|
var Ii = "2.0.10", ci = 500, Ke = "user-agent", te = "", Ze = "?", x = {
|
|
18
19
|
FUNCTION: "function",
|
|
19
20
|
OBJECT: "object",
|
|
@@ -1991,7 +1992,7 @@ const zi = { class: "space-y-16" }, $i = { class: "fm-typo-en-body-md-400 text-f
|
|
|
1991
1992
|
]);
|
|
1992
1993
|
};
|
|
1993
1994
|
}
|
|
1994
|
-
}), lt = { class: "px-24 flex flex-col gap-y-32 pb-24" },
|
|
1995
|
+
}), lt = { class: "px-24 flex flex-col gap-y-32 pb-24" }, _t = /* @__PURE__ */ Ve({
|
|
1995
1996
|
__name: "AuditLogs",
|
|
1996
1997
|
setup(e) {
|
|
1997
1998
|
const { t: s } = Oi();
|
|
@@ -2009,5 +2010,5 @@ const zi = { class: "space-y-16" }, $i = { class: "fm-typo-en-body-md-400 text-f
|
|
|
2009
2010
|
}
|
|
2010
2011
|
});
|
|
2011
2012
|
export {
|
|
2012
|
-
|
|
2013
|
+
_t as default
|
|
2013
2014
|
};
|
|
@@ -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-Dx4SCvZY.js";
|
|
4
|
+
import { u as R } from "./business-DjAiT8tR.js";
|
|
5
|
+
import { C as A } from "./campaign-DlR3KF9m.js";
|
|
6
|
+
import { _ as P } from "./EditCampaignSheet.vue_vue_type_script_setup_true_lang-C09W9Qja.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-C7zSfZdl.js";
|
|
9
|
+
import { u as D } from "./vue-i18n-wJReAVJw.js";
|
|
10
10
|
import { h as E } from "./moment-D7p2TMB-.js";
|
|
11
|
-
import { p as I } from "./plugins-
|
|
12
|
-
import { c as g } from "./
|
|
11
|
+
import { p as I } from "./plugins-BFKVM3uC.js";
|
|
12
|
+
import { c as g } from "./index-Bz6oSli7.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,302 @@
|
|
|
1
|
+
import { defineComponent as Q, ref as S, computed as W, h as f, onMounted as X, resolveComponent as p, openBlock as m, createElementBlock as g, Fragment as k, createVNode as r, unref as a, createElementVNode as n, withCtx as F, renderList as Y, createBlock as B, resolveDynamicComponent as Z, toDisplayString as d, createCommentVNode as A } from "vue";
|
|
2
|
+
import { _ as ee } from "./campaign-CpzFl8Vr.js";
|
|
3
|
+
import { useDialog as te, components as I } from "@feedmepos/ui-library";
|
|
4
|
+
import { p as ae } from "./plugins-BFKVM3uC.js";
|
|
5
|
+
import { u as oe } from "./loading-Dx4SCvZY.js";
|
|
6
|
+
import { u as ne } from "./business-DjAiT8tR.js";
|
|
7
|
+
import { u as se } from "./campaign-tAmQNoq7.js";
|
|
8
|
+
import { a as ce, b as K, c as P, d as y } from "./campaign-DlR3KF9m.js";
|
|
9
|
+
import { c as re, p as ie } from "./duplicateCampaign-6oMZOvfM.js";
|
|
10
|
+
import { u as le } from "./vue-i18n-wJReAVJw.js";
|
|
11
|
+
import { _ as me } from "./FilterChip.vue_vue_type_script_setup_true_lang-3bH-tZAm.js";
|
|
12
|
+
import { _ as de } from "./MessageInput.vue_vue_type_script_setup_true_lang-DbV-m3cC.js";
|
|
13
|
+
import { _ as pe } from "./EditCampaignSheet.vue_vue_type_script_setup_true_lang-C09W9Qja.js";
|
|
14
|
+
import { u as ue } from "./template-Cfxc5eM8.js";
|
|
15
|
+
import { c as _ } from "./index-Bz6oSli7.js";
|
|
16
|
+
const fe = { class: "px-24 flex flex-col gap-y-16" }, ge = { class: "flex items-center justify-between w-full" }, ye = { class: "flex gap-8 overflow-x-auto" }, _e = { class: "space-y-8" }, he = { class: "flex w-full gap-4 items-center" }, be = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, we = { class: "space-y-4" }, xe = { class: "fm-typo-en-body-lg-600" }, Ce = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, ve = {
|
|
17
|
+
key: 0,
|
|
18
|
+
class: "flex flex-wrap items-center gap-6"
|
|
19
|
+
}, Se = {
|
|
20
|
+
key: 0,
|
|
21
|
+
class: "rounded-md bg-fm-color-neutral-gray-100 px-8 py-3 fm-typo-en-body-sm-400 text-fm-color-typo-secondary"
|
|
22
|
+
}, ke = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, Fe = { class: "flex items-center gap-8" }, Be = { key: 0 }, Ae = { class: "text-fm-color-typo-secondary fm-typo-en-body-md-600" }, De = { class: "flex flex-col gap-16 text-center" }, Le = { class: "fm-typo-en-title-sm-800" }, Re = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Je = /* @__PURE__ */ Q({
|
|
23
|
+
__name: "Broadcast",
|
|
24
|
+
setup(Ve) {
|
|
25
|
+
const { t: s } = le(), $ = {
|
|
26
|
+
label: s("connect.campaign.common.createCampaign"),
|
|
27
|
+
value: "create",
|
|
28
|
+
isPrimary: !0,
|
|
29
|
+
prependIcon: "add"
|
|
30
|
+
}, j = ue("BROADCAST", te()), M = ne(), u = se(), { global: N, minor: D } = oe, L = S((/* @__PURE__ */ new Date()).toISOString()), i = S({
|
|
31
|
+
searchKey: "",
|
|
32
|
+
location: []
|
|
33
|
+
});
|
|
34
|
+
function U(e) {
|
|
35
|
+
const t = i.value.location;
|
|
36
|
+
return !t || t.length === 0 || !e.targetLocation ? !0 : Array.isArray(t) ? t.some((l) => {
|
|
37
|
+
var c;
|
|
38
|
+
return (c = e == null ? void 0 : e.targetLocation) == null ? void 0 : c.includes(l);
|
|
39
|
+
}) : e.targetLocation.includes(t);
|
|
40
|
+
}
|
|
41
|
+
const h = W(
|
|
42
|
+
() => u.campaigns.broadcast.filter((e) => U(e))
|
|
43
|
+
), E = [
|
|
44
|
+
{
|
|
45
|
+
header: "Broadcast title",
|
|
46
|
+
accessorFn: (e) => e.name
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
header: "Status",
|
|
50
|
+
accessorFn: (e) => ce(e),
|
|
51
|
+
cell(e) {
|
|
52
|
+
return K(e.row.original);
|
|
53
|
+
}
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
header: s("connect.campaign.broadcast.column.memberSegment"),
|
|
57
|
+
accessorFn: (e) => P(e)
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
header: s("connect.campaign.broadcast.column.channels"),
|
|
61
|
+
accessorFn: (e) => {
|
|
62
|
+
var t;
|
|
63
|
+
return ((t = y(e)) == null ? void 0 : t.route) ?? "";
|
|
64
|
+
},
|
|
65
|
+
cell(e) {
|
|
66
|
+
const t = y(e.row.original);
|
|
67
|
+
return t ? f("div", { class: "flex flex-col gap-4", title: t.route }, [
|
|
68
|
+
t.strategy ? f(
|
|
69
|
+
"span",
|
|
70
|
+
{
|
|
71
|
+
class: "self-start rounded-md bg-fm-color-neutral-gray-100 px-8 py-3 fm-typo-en-body-sm-400 text-fm-color-typo-secondary"
|
|
72
|
+
},
|
|
73
|
+
t.strategy
|
|
74
|
+
) : null,
|
|
75
|
+
f("span", { class: "fm-typo-en-body-md-400 truncate" }, t.route)
|
|
76
|
+
]) : "";
|
|
77
|
+
}
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
header: "Message sent",
|
|
81
|
+
accessorFn: (e) => e.currentReceive ?? "N/A"
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
header: "Actions",
|
|
85
|
+
cell(e) {
|
|
86
|
+
return f("div", { class: "flex items-center gap-8 justify-end" }, [
|
|
87
|
+
f(I.FmButton, {
|
|
88
|
+
variant: "tertiary",
|
|
89
|
+
icon: "content_copy",
|
|
90
|
+
iconColor: "neutral-gray-400",
|
|
91
|
+
onClick: async (t) => {
|
|
92
|
+
t.stopPropagation(), await V(e.row.original);
|
|
93
|
+
}
|
|
94
|
+
}),
|
|
95
|
+
f(I.FmButton, {
|
|
96
|
+
variant: "tertiary",
|
|
97
|
+
icon: "delete",
|
|
98
|
+
iconColor: "neutral-gray-400",
|
|
99
|
+
onClick: (t) => {
|
|
100
|
+
t.stopPropagation(), R(e.row.original);
|
|
101
|
+
}
|
|
102
|
+
})
|
|
103
|
+
]);
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
], w = S();
|
|
107
|
+
async function R(e) {
|
|
108
|
+
await ae.remove(
|
|
109
|
+
s("connect.campaign.common.remove.confirm", { name: e.name })
|
|
110
|
+
) && await D(
|
|
111
|
+
async () => {
|
|
112
|
+
await _.delete(e._id), await u.read("BROADCAST");
|
|
113
|
+
},
|
|
114
|
+
{
|
|
115
|
+
message: s("connect.campaign.common.remove.removing", { name: e.name }),
|
|
116
|
+
successMessage: s("connect.campaign.common.remove.removed", {
|
|
117
|
+
name: e.name
|
|
118
|
+
})
|
|
119
|
+
}
|
|
120
|
+
);
|
|
121
|
+
}
|
|
122
|
+
async function b(e) {
|
|
123
|
+
L.value = (/* @__PURE__ */ new Date()).toISOString(), e ? await t() : j.open(async (l) => {
|
|
124
|
+
await t(l);
|
|
125
|
+
});
|
|
126
|
+
async function t(l) {
|
|
127
|
+
var c;
|
|
128
|
+
(c = w.value) == null || c.showSheet(
|
|
129
|
+
!0,
|
|
130
|
+
"BROADCAST",
|
|
131
|
+
e ? await _.readById(e._id) : void 0,
|
|
132
|
+
l
|
|
133
|
+
);
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
async function V(e) {
|
|
137
|
+
var c;
|
|
138
|
+
if (!await re(e.name))
|
|
139
|
+
return;
|
|
140
|
+
L.value = (/* @__PURE__ */ new Date()).toISOString();
|
|
141
|
+
const t = await _.readById(e._id), l = ie(t);
|
|
142
|
+
(c = w.value) == null || c.showSheet(
|
|
143
|
+
!0,
|
|
144
|
+
"BROADCAST",
|
|
145
|
+
l,
|
|
146
|
+
t.template
|
|
147
|
+
);
|
|
148
|
+
}
|
|
149
|
+
async function H(e) {
|
|
150
|
+
await D(
|
|
151
|
+
async () => {
|
|
152
|
+
e.campaign._id ? await _.update(e.campaign._id, e) : await _.create(e), await u.read("BROADCAST");
|
|
153
|
+
},
|
|
154
|
+
{
|
|
155
|
+
message: s(
|
|
156
|
+
`connect.campaign.broadcast.update.${e.campaign._id ? "updating" : "creating"}`
|
|
157
|
+
),
|
|
158
|
+
successMessage: s("connect.campaign.broadcast.update.success", {
|
|
159
|
+
action: e.campaign._id ? "updated" : "created"
|
|
160
|
+
})
|
|
161
|
+
}
|
|
162
|
+
);
|
|
163
|
+
}
|
|
164
|
+
return X(async () => {
|
|
165
|
+
await N(async () => {
|
|
166
|
+
await u.read("BROADCAST");
|
|
167
|
+
});
|
|
168
|
+
}), (e, t) => {
|
|
169
|
+
const l = p("FmPageHead"), c = p("FmSearch"), q = p("FmTable"), x = p("FmButton"), z = p("FmListItem"), G = p("FmList"), J = p("FmCard");
|
|
170
|
+
return m(), g(k, null, [
|
|
171
|
+
r(l, {
|
|
172
|
+
title: a(s)("connect.campaign.broadcast.title"),
|
|
173
|
+
actions: a(h).length > 0 ? [$] : [],
|
|
174
|
+
"onClick:action": t[0] || (t[0] = () => b())
|
|
175
|
+
}, null, 8, ["title", "actions"]),
|
|
176
|
+
n("div", fe, [
|
|
177
|
+
r(de),
|
|
178
|
+
r(c, {
|
|
179
|
+
modelValue: a(i).searchKey,
|
|
180
|
+
"onUpdate:modelValue": t[1] || (t[1] = (o) => a(i).searchKey = o),
|
|
181
|
+
class: "hidden xs:!block sm:!block border-b-2 border-fm-color-neutral-gray-100",
|
|
182
|
+
placeholder: a(s)("connect.campaign.common.search"),
|
|
183
|
+
collapsible: ""
|
|
184
|
+
}, null, 8, ["modelValue", "placeholder"]),
|
|
185
|
+
a(u).campaigns.broadcast && a(u).campaigns.broadcast.length > 0 ? (m(), g(k, { key: 0 }, [
|
|
186
|
+
n("div", ge, [
|
|
187
|
+
n("div", ye, [
|
|
188
|
+
r(me, {
|
|
189
|
+
label: `${a(s)("connect.campaign.common.location")}: `,
|
|
190
|
+
"right-icon": "keyboard_arrow_down",
|
|
191
|
+
modelValue: a(i).location,
|
|
192
|
+
"onUpdate:modelValue": t[2] || (t[2] = (o) => a(i).location = o),
|
|
193
|
+
icon: "storefront",
|
|
194
|
+
"show-item-label": !0,
|
|
195
|
+
items: a(M).locationOptions
|
|
196
|
+
}, null, 8, ["label", "modelValue", "items"])
|
|
197
|
+
]),
|
|
198
|
+
r(c, {
|
|
199
|
+
modelValue: a(i).searchKey,
|
|
200
|
+
"onUpdate:modelValue": t[3] || (t[3] = (o) => a(i).searchKey = o),
|
|
201
|
+
class: "xs:hidden sm:hidden",
|
|
202
|
+
placeholder: "search",
|
|
203
|
+
collapsible: ""
|
|
204
|
+
}, null, 8, ["modelValue"])
|
|
205
|
+
]),
|
|
206
|
+
r(q, {
|
|
207
|
+
class: "xs:hidden sm:hidden",
|
|
208
|
+
"row-data": a(h),
|
|
209
|
+
"column-defs": E,
|
|
210
|
+
"search-value": a(i).searchKey,
|
|
211
|
+
"column-filter": [],
|
|
212
|
+
onRowClick: t[4] || (t[4] = (o) => b(o.original)),
|
|
213
|
+
"hide-footer": !0
|
|
214
|
+
}, null, 8, ["row-data", "search-value"]),
|
|
215
|
+
r(G, { class: "hidden xs:!flex sm:!flex flex-col mx-[-24px]" }, {
|
|
216
|
+
default: F(() => [
|
|
217
|
+
(m(!0), g(k, null, Y(a(h).filter(
|
|
218
|
+
(o) => o.name.toLowerCase().includes(a(i).searchKey.toLowerCase())
|
|
219
|
+
), (o) => (m(), B(z, {
|
|
220
|
+
key: o._id.toString(),
|
|
221
|
+
onClick: (C) => b(o),
|
|
222
|
+
class: "py-12 px-16 flex items-center justify-between border-b border-fm-color-neutral-gray-100"
|
|
223
|
+
}, {
|
|
224
|
+
default: F(() => {
|
|
225
|
+
var C, O, T;
|
|
226
|
+
return [
|
|
227
|
+
n("div", _e, [
|
|
228
|
+
n("div", he, [
|
|
229
|
+
(m(), B(Z(a(K)(o)))),
|
|
230
|
+
n("div", be, d(o.currentReceive ?? 0) + " sent ", 1)
|
|
231
|
+
]),
|
|
232
|
+
n("div", we, [
|
|
233
|
+
n("div", xe, d(o.name), 1),
|
|
234
|
+
n("div", Ce, d(a(P)(o)), 1),
|
|
235
|
+
a(y)(o) ? (m(), g("div", ve, [
|
|
236
|
+
(C = a(y)(o)) != null && C.strategy ? (m(), g("span", Se, d((O = a(y)(o)) == null ? void 0 : O.strategy), 1)) : A("", !0),
|
|
237
|
+
n("span", ke, d((T = a(y)(o)) == null ? void 0 : T.route), 1)
|
|
238
|
+
])) : A("", !0)
|
|
239
|
+
])
|
|
240
|
+
]),
|
|
241
|
+
n("div", Fe, [
|
|
242
|
+
r(x, {
|
|
243
|
+
icon: "content_copy",
|
|
244
|
+
"icon-color": "neutral-gray-400",
|
|
245
|
+
variant: "tertiary",
|
|
246
|
+
onClick: async (v) => {
|
|
247
|
+
v.stopPropagation(), await V(o);
|
|
248
|
+
}
|
|
249
|
+
}, null, 8, ["onClick"]),
|
|
250
|
+
r(x, {
|
|
251
|
+
icon: "delete",
|
|
252
|
+
"icon-color": "neutral-gray-400",
|
|
253
|
+
variant: "tertiary",
|
|
254
|
+
onClick: (v) => (v.stopPropagation(), R(o))
|
|
255
|
+
}, null, 8, ["onClick"])
|
|
256
|
+
])
|
|
257
|
+
];
|
|
258
|
+
}),
|
|
259
|
+
_: 2
|
|
260
|
+
}, 1032, ["onClick"]))), 128))
|
|
261
|
+
]),
|
|
262
|
+
_: 1
|
|
263
|
+
}),
|
|
264
|
+
a(h).length == 0 ? (m(), g("div", Be, [
|
|
265
|
+
n("div", Ae, d(a(s)("connect.campaign.common.noResults")), 1)
|
|
266
|
+
])) : A("", !0)
|
|
267
|
+
], 64)) : (m(), B(J, {
|
|
268
|
+
key: 1,
|
|
269
|
+
variant: "outlined",
|
|
270
|
+
class: "w-full flex flex-col items-center justify-center gap-y-24 p-24"
|
|
271
|
+
}, {
|
|
272
|
+
default: F(() => [
|
|
273
|
+
t[6] || (t[6] = n("img", {
|
|
274
|
+
src: ee,
|
|
275
|
+
class: "aspect-square w-[150px]"
|
|
276
|
+
}, null, -1)),
|
|
277
|
+
n("div", De, [
|
|
278
|
+
n("div", Le, d(a(s)("connect.campaign.broadcast.create.title")), 1),
|
|
279
|
+
n("div", Re, d(a(s)("connect.campaign.broadcast.create.description")), 1)
|
|
280
|
+
]),
|
|
281
|
+
r(x, {
|
|
282
|
+
variant: "primary",
|
|
283
|
+
label: a(s)("connect.campaign.broadcast.create.button"),
|
|
284
|
+
icon: "add",
|
|
285
|
+
onClick: t[5] || (t[5] = (o) => b())
|
|
286
|
+
}, null, 8, ["label"])
|
|
287
|
+
]),
|
|
288
|
+
_: 1
|
|
289
|
+
})),
|
|
290
|
+
r(pe, {
|
|
291
|
+
ref_key: "sheetRef",
|
|
292
|
+
ref: w,
|
|
293
|
+
"onSubmit:modelValue": H
|
|
294
|
+
}, null, 512)
|
|
295
|
+
])
|
|
296
|
+
], 64);
|
|
297
|
+
};
|
|
298
|
+
}
|
|
299
|
+
});
|
|
300
|
+
export {
|
|
301
|
+
Je as default
|
|
302
|
+
};
|