@feedmepos/mf-connect 0.1.38-beta.3 → 0.1.38-beta.31
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/{Analytic-DlzNe_iy.js → Analytic-C_nMR1Be.js} +15 -15
- package/dist/{App-S5t6byxx.js → App-s6O0r91S.js} +624 -618
- package/dist/{AuditLogs-FO7SmMm2.js → AuditLogs-BcVkpvGw.js} +14 -14
- package/dist/{Bin-D--pK-f4.js → Bin-C5g9jHoQ.js} +9 -9
- package/dist/Broadcast-JPTVWDJC.js +233 -0
- package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-C6MYdWnX.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-CloO2B7A.js} +6 -6
- package/dist/{Card-DHL6WnwR.js → Card-Dgj6yukn.js} +143 -137
- package/dist/{Collections-DnonNjPT.js → Collections-D-aFYRCq.js} +82 -76
- package/dist/Credit-BZcRB9Wj.js +228 -0
- package/dist/{DateRangeChip.vue_vue_type_script_setup_true_lang-BUzUIIUW.js → DateRangeChip.vue_vue_type_script_setup_true_lang-eIoPtgO5.js} +1 -1
- package/dist/EditCampaignSheet.vue_vue_type_script_setup_true_lang-DnPPICf0.js +3117 -0
- package/dist/{EffectSheet.vue_vue_type_style_index_0_lang-C4zzEOCb.js → EffectSheet.vue_vue_type_style_index_0_lang-DbSiVLaJ.js} +100 -99
- package/dist/Experience-DHQPxVv3.js +229 -0
- package/dist/FilterChip.vue_vue_type_script_setup_true_lang-DaU-9GzO.js +129 -0
- package/dist/{Game-Bkl0JnBq.js → Game-C1XnMgil.js} +103 -97
- package/dist/Grab-BbHccgZO.js +301 -0
- package/dist/{ImageInput.vue_vue_type_script_setup_true_lang-rWUkV9gn.js → ImageInput.vue_vue_type_script_setup_true_lang-D1KQpDGg.js} +8 -8
- package/dist/{Index-BXTpF6kN.js → Index-DYZsN2H3.js} +54 -54
- package/dist/{Marketing-kk88gqDC.js → Marketing-DnsPHYpt.js} +7112 -5424
- package/dist/{Member-Cq-orpRf.js → Member-rkdV1fVo.js} +10 -10
- package/dist/{MemberList-B0K6Djc0.js → MemberList-QaB13bxO.js} +33 -33
- package/dist/{MemberTransactions-BCrJz8M9.js → MemberTransactions-Dw5qHQVW.js} +1 -1
- package/dist/{MessageInput.vue_vue_type_script_setup_true_lang-BcGhTM5H.js → MessageInput.vue_vue_type_script_setup_true_lang-DGyv0LMu.js} +5789 -5515
- package/dist/{Mission-BF1Z-Veq.js → Mission-B7rAzf6O.js} +112 -106
- package/dist/{Overview-CLSBBnZz.js → Overview-Cg4Szz05.js} +21 -21
- package/dist/Point-DuKS8-0D.js +232 -0
- package/dist/{Promotion-CGwxt3l3.js → Promotion-CFtLq-LB.js} +11 -11
- package/dist/{Queue-Dihw6DCV.js → Queue-BZONVNCP.js} +13 -13
- package/dist/{Record-ChSb722p.js → Record-jNEahJNC.js} +10 -10
- package/dist/{Reward-8oKlHA-x.js → Reward-VS6C6NQO.js} +15 -15
- package/dist/{RewardGroup.vue_vue_type_script_setup_true_lang-D--YGFcF.js → RewardGroup.vue_vue_type_script_setup_true_lang-D4KMGgkv.js} +11 -11
- package/dist/RuleGroup.vue_vue_type_script_setup_true_lang-Cb-WJA0i.js +1763 -0
- package/dist/{Segment-BbYgbJ7w.js → Segment-DK5tqeOF.js} +274 -274
- package/dist/{SelectItems.vue_vue_type_script_setup_true_lang-Dy_G8md1.js → SelectItems.vue_vue_type_script_setup_true_lang-AYAwO37B.js} +14 -14
- package/dist/{SendCollectionSheet.vue_vue_type_script_setup_true_lang-BFhY3cve.js → SendCollectionSheet.vue_vue_type_script_setup_true_lang-K8js6fbo.js} +11 -11
- package/dist/{SendVoucherSheet.vue_vue_type_script_setup_true_lang-WEiXy4o1.js → SendVoucherSheet.vue_vue_type_script_setup_true_lang-lcPHPa4K.js} +3 -3
- package/dist/{Setting-B75a5DWV.js → Setting-BtiUlWRc.js} +459 -444
- package/dist/{Store-Cb8Et93b.js → Store-DqFW5hr_.js} +472 -465
- package/dist/{StoreRewards-DEI9VJHO.js → StoreRewards-g-3WtxwG.js} +15 -15
- package/dist/{StoreTransactions.vue_vue_type_script_setup_true_lang-BGBl4Zla.js → StoreTransactions.vue_vue_type_script_setup_true_lang-DNT4PWgl.js} +208 -222
- package/dist/{TargetLocationInput.vue_vue_type_script_setup_true_lang-92NnMkro.js → TargetLocationInput.vue_vue_type_script_setup_true_lang-CXYnNSta.js} +1 -1
- package/dist/{Tier-BB4AyAZV.js → Tier-SHij9zKX.js} +230 -227
- package/dist/{Title-Cla1U1ye.js → Title-_2JVV1rW.js} +142 -139
- package/dist/{Transaction-fHFbemk-.js → Transaction-BHLb6hZN.js} +2 -2
- package/dist/{UserRuleGroup.vue_vue_type_script_setup_true_lang-yS5qh7za.js → UserRuleGroup.vue_vue_type_script_setup_true_lang-DolBmHzN.js} +6 -6
- package/dist/{Voucher-CraCvVuq.js → Voucher-CJk8ZuCA.js} +14 -14
- package/dist/{VoucherEditor.vue_vue_type_script_setup_true_lang-DqKT6Fep.js → VoucherEditor.vue_vue_type_script_setup_true_lang-BviU3rz6.js} +86 -86
- package/dist/{ZodTextField.vue_vue_type_script_setup_true_lang-B14K5zel.js → ZodTextField.vue_vue_type_script_setup_true_lang-R4Xcn7gl.js} +1 -1
- package/dist/app-BpcIC6Ud.js +57962 -0
- package/dist/{app-B8hYhD6p.js → app-D9ygZVP0.js} +678 -597
- package/dist/app.js +1 -1
- package/dist/{business-CwtLYoAT.js → business-CzJxdKc-.js} +11 -8
- package/dist/{campaign-BwM5SLyy.js → campaign-RKjwSpJk.js} +29 -16
- package/dist/{campaign-Bea47E3G.js → campaign-s_7F9I6R.js} +29 -25
- package/dist/{campaign.enum-v4z9v1aa.js → campaign.enum-BlGYJ6p4.js} +3 -2
- package/dist/{campaign.fn-CV5s8XUt.js → campaign.fn-aH0pz1jU.js} +95 -95
- package/dist/{collectible.enum-BGt9xa0D.js → collectible.enum-DYV8J5Mg.js} +1 -1
- package/dist/{collection.fn-DFzVxsA9.js → collection.fn-lLG_rLyd.js} +2 -2
- package/dist/dto-Cx-z2h2_.js +222 -0
- package/dist/{effect-DQtWLIrF.js → effect-DV2GiHqM.js} +1 -1
- package/dist/{email-addresses-I8wDL9bh.js → email-addresses-DTfbKDsC.js} +1 -1
- package/dist/{export-BauRZnqp.js → export-hHjutAC3.js} +4 -4
- package/dist/{helper-B2Q1CLCG.js → helper-oy_DH4P5.js} +1 -1
- package/dist/{index-CCJqmSob.js → index-8t9y1bUZ.js} +1 -1
- package/dist/{index-B20y17xe.js → index-B1C5UjP5.js} +3 -3
- package/dist/{index-DQpw4Va-.js → index-B79nkieV.js} +1452 -1452
- package/dist/{index-DGuR3NRj.js → index-BA6oC2L9.js} +3 -3
- package/dist/{index-BdizAaMz.js → index-Ba05Naif.js} +16 -16
- package/dist/{index-B1Bdn9rV.js → index-BoRTW-dI.js} +196 -16
- package/dist/{index-CgYAHnlX.js → index-CUGS4y58.js} +861 -714
- package/dist/{index-IXY9hkrD.js → index-CV_3mltA.js} +1 -1
- package/dist/{index-DtfWwcp4.js → index-ClgsfK3Y.js} +1 -1
- package/dist/{index-dK8fMQ5h.js → index-CtxtD8HE.js} +1 -1
- package/dist/{index-aguYFa7D.js → index-CycW9ri6.js} +6347 -6305
- package/dist/{index-s1IB44jY.js → index-D8JDdV2w.js} +1 -1
- package/dist/{index-Bv3aqvRF.js → index-DJlZYwDo.js} +11 -4
- package/dist/{index-yOFbPJEE.js → index-sSxaqeIi.js} +1 -1
- package/dist/{index.esm2017-VwpfHNpU.js → index.esm2017-B3-oEraK.js} +34 -34
- package/dist/{loading-BFKvxqlx.js → loading-D98ofaCB.js} +1 -1
- package/dist/{membership-Cgzqg1Vw.js → membership-CwbI7ZrE.js} +3 -3
- package/dist/{moment-BWErdI6_.js → moment-D7p2TMB-.js} +6 -1
- package/dist/{money-DIh7Uegf.js → money-D5cHxcPB.js} +1 -1
- package/dist/{number-onslf0BL.js → number-CPEEKMZZ.js} +1 -1
- package/dist/objectid-Be_atBnH.js +145 -0
- package/dist/{plugins-hfoXoiK2.js → plugins-B55BRo5q.js} +2 -2
- package/dist/{reward-CYC7hCgM.js → reward-xrTcTYjt.js} +1 -1
- package/dist/rule-builder-NTDBB2kj.js +93 -0
- package/dist/{rule-C_M3oFLI.js → rule-w89XmfIg.js} +4 -4
- package/dist/style.css +1 -1
- package/dist/{template-C6URy7QF.js → template-Bt_auQZW.js} +5 -5
- package/dist/timezone-BcBn2Kb_.js +1151 -0
- package/dist/{trigger-CZAiHFT5.js → trigger-D_6mNiva.js} +4 -4
- package/dist/usePagination-Ds-cuHop.js +223 -0
- package/dist/{user-uo2wREaB.js → user-B6YOJ_7r.js} +1 -1
- package/dist/{vue-i18n-Ba5EWUgR.js → vue-i18n-QvFKKqSt.js} +418 -418
- package/dist/{xlsx-CIJPKm4G.js → xlsx-Dr9Ctrs4.js} +1 -1
- package/package.json +6 -5
- package/dist/Broadcast-BYL3w06w.js +0 -227
- package/dist/Credit-BMeykOe-.js +0 -222
- package/dist/EditCampaignSheet.vue_vue_type_script_setup_true_lang-D6Ps8njr.js +0 -2185
- package/dist/Experience-Lu8sCso6.js +0 -223
- package/dist/FilterChip.vue_vue_type_script_setup_true_lang-d8rh38tD.js +0 -114
- package/dist/Point-BZ2Bgfw8.js +0 -226
- package/dist/RuleGroup.vue_vue_type_script_setup_true_lang-GSqXPvRs.js +0 -1728
- package/dist/app-BVCw28s0.js +0 -33357
- package/dist/dto-BgJqr4qT.js +0 -214
- package/dist/objectid-vtlpVGBH.js +0 -145
- package/dist/remy-vue-client-Cpppk9h-.js +0 -1693
- package/dist/rule-builder-BOG14MYK.js +0 -89
- package/dist/usePagination-BeF5K3M7.js +0 -223
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import { defineComponent as ze, ref as xe, resolveComponent as $e, openBlock as P, createBlock as pi, unref as h, isRef as xi, withCtx as We, createElementVNode as x, createElementBlock as Q, Fragment as qe, renderList as Xe, toDisplayString as G, watch as ki, onBeforeMount as _i, createVNode as q, createCommentVNode as Si, h as Y } from "vue";
|
|
2
2
|
import { components as Ke } from "@feedmepos/ui-library";
|
|
3
|
-
import "./index-
|
|
4
|
-
import { h as J } from "./moment-
|
|
5
|
-
import { _ as Je } from "./FilterChip.vue_vue_type_script_setup_true_lang-
|
|
6
|
-
import { _ as Ei } from "./DateRangeChip.vue_vue_type_script_setup_true_lang-
|
|
7
|
-
import { u as Ai, _ as Ri } from "./usePagination-
|
|
8
|
-
import { c as Pe, a as Qe } from "./plugins-
|
|
9
|
-
import { d as he, e as Oi } from "./index-
|
|
10
|
-
import "./index-
|
|
11
|
-
import "./index-
|
|
12
|
-
import "./index-
|
|
13
|
-
import "./index-
|
|
14
|
-
import { g as Ci, S as Ii, b as Ti } from "./index-
|
|
3
|
+
import "./index-B79nkieV.js";
|
|
4
|
+
import { h as J } from "./moment-D7p2TMB-.js";
|
|
5
|
+
import { _ as Je } from "./FilterChip.vue_vue_type_script_setup_true_lang-DaU-9GzO.js";
|
|
6
|
+
import { _ as Ei } from "./DateRangeChip.vue_vue_type_script_setup_true_lang-eIoPtgO5.js";
|
|
7
|
+
import { u as Ai, _ as Ri } from "./usePagination-Ds-cuHop.js";
|
|
8
|
+
import { c as Pe, a as Qe } from "./plugins-B55BRo5q.js";
|
|
9
|
+
import { d as he, e as Oi } from "./index-BoRTW-dI.js";
|
|
10
|
+
import "./index-CUGS4y58.js";
|
|
11
|
+
import "./index-Ba05Naif.js";
|
|
12
|
+
import "./index-CV_3mltA.js";
|
|
13
|
+
import "./index-BA6oC2L9.js";
|
|
14
|
+
import { g as Ci, S as Ii, b as Ti } from "./index-CycW9ri6.js";
|
|
15
15
|
import { o as Mi } from "./objectId-dwaoBfJX.js";
|
|
16
|
-
import { u as Di } from "./vue-i18n-
|
|
16
|
+
import { u as Di } from "./vue-i18n-QvFKKqSt.js";
|
|
17
17
|
var Li = "2.0.3", Fe = 500, Ze = "user-agent", ie = "", ei = "?", ke = "function", N = "undefined", te = "object", Ve = "string", E = "browser", M = "cpu", T = "device", C = "engine", O = "os", Z = "result", r = "name", e = "type", o = "vendor", a = "version", A = "architecture", pe = "major", i = "model", be = "console", w = "mobile", g = "tablet", k = "smarttv", I = "wearable", Ae = "xr", me = "embedded", se = "inapp", Ge = "brands", W = "formFactors", Ye = "fullVersionList", ee = "platform", je = "platformVersion", Se = "bitness", B = "sec-ch-ua", Ui = B + "-full-version-list", Hi = B + "-arch", qi = B + "-" + Se, Pi = B + "-form-factors", Fi = B + "-" + w, Vi = B + "-" + i, fi = B + "-" + ee, Ni = fi + "-version", hi = [Ge, Ye, w, i, ee, je, A, W, Se], ge = "Amazon", X = "Apple", ii = "ASUS", ti = "BlackBerry", j = "Google", oi = "Huawei", ri = "Lenovo", ai = "Honor", ve = "LG", Re = "Microsoft", Oe = "Motorola", Ce = "Nvidia", si = "OnePlus", Ie = "OPPO", ne = "Samsung", ni = "Sharp", le = "Sony", Te = "Xiaomi", Me = "Zebra", li = "Chrome", di = "Chromium", H = "Chromecast", Bi = "Edge", de = "Firefox", ue = "Opera", De = "Facebook", ui = "Sogou", K = "Mobile ", ce = " Browser", Ne = "Windows", zi = typeof window !== N, R = zi && window.navigator ? window.navigator : void 0, F = R && R.userAgentData ? R.userAgentData : void 0, $i = function(t, n) {
|
|
18
18
|
var s = {}, m = n;
|
|
19
19
|
if (!_e(n)) {
|
|
@@ -1589,7 +1589,7 @@ const Yi = { class: "space-y-16" }, ji = { class: "fm-typo-en-body-md-400 text-f
|
|
|
1589
1589
|
"close-button": !0,
|
|
1590
1590
|
"max-width": 650
|
|
1591
1591
|
}, {
|
|
1592
|
-
"side-sheet-footer": We(() => d[6] || (d[6] = [])),
|
|
1592
|
+
"side-sheet-footer": We(() => [...d[6] || (d[6] = [])]),
|
|
1593
1593
|
default: We(() => [
|
|
1594
1594
|
x("div", null, [
|
|
1595
1595
|
d[1] || (d[1] = x("div", { class: "fm-typo-en-title-sm-800 my-24" }, "Log Information", -1)),
|
|
@@ -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-D98ofaCB.js";
|
|
4
|
+
import { u as R } from "./business-CzJxdKc-.js";
|
|
5
|
+
import { C as A } from "./campaign-RKjwSpJk.js";
|
|
6
|
+
import { _ as P } from "./EditCampaignSheet.vue_vue_type_script_setup_true_lang-DnPPICf0.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-
|
|
10
|
-
import { h as E } from "./moment-
|
|
11
|
-
import { p as I } from "./plugins-
|
|
12
|
-
import { c as g } from "./index-
|
|
8
|
+
import { _ as Y } from "./SendVoucherSheet.vue_vue_type_script_setup_true_lang-lcPHPa4K.js";
|
|
9
|
+
import { u as D } from "./vue-i18n-QvFKKqSt.js";
|
|
10
|
+
import { h as E } from "./moment-D7p2TMB-.js";
|
|
11
|
+
import { p as I } from "./plugins-B55BRo5q.js";
|
|
12
|
+
import { c as g } from "./index-sSxaqeIi.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,233 @@
|
|
|
1
|
+
import { defineComponent as U, ref as h, computed as j, onMounted as E, resolveComponent as m, openBlock as d, createElementBlock as y, Fragment as b, createVNode as r, unref as o, createElementVNode as n, withCtx as w, renderList as H, createBlock as v, resolveDynamicComponent as q, toDisplayString as p, createCommentVNode as z, h as G } from "vue";
|
|
2
|
+
import { _ as J } from "./campaign-CpzFl8Vr.js";
|
|
3
|
+
import { useDialog as Q, components as W } from "@feedmepos/ui-library";
|
|
4
|
+
import { p as X } from "./plugins-B55BRo5q.js";
|
|
5
|
+
import { u as Y } from "./loading-D98ofaCB.js";
|
|
6
|
+
import { u as Z } from "./business-CzJxdKc-.js";
|
|
7
|
+
import { u as ee } from "./campaign-s_7F9I6R.js";
|
|
8
|
+
import { a as B, b as A, g as te } from "./campaign-RKjwSpJk.js";
|
|
9
|
+
import { u as oe } from "./vue-i18n-QvFKKqSt.js";
|
|
10
|
+
import { _ as ae } from "./FilterChip.vue_vue_type_script_setup_true_lang-DaU-9GzO.js";
|
|
11
|
+
import { _ as ne } from "./EditCampaignSheet.vue_vue_type_script_setup_true_lang-DnPPICf0.js";
|
|
12
|
+
import { u as se } from "./template-Bt_auQZW.js";
|
|
13
|
+
import { c as _ } from "./index-sSxaqeIi.js";
|
|
14
|
+
const ce = { class: "px-24 flex flex-col gap-y-16" }, re = { class: "flex items-center justify-between w-full" }, ie = { class: "flex gap-8 overflow-x-auto" }, le = { class: "space-y-8" }, me = { class: "flex w-full gap-4 items-center" }, de = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, ue = { class: "space-y-4" }, pe = { class: "fm-typo-en-body-lg-600" }, fe = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, ge = { key: 0 }, ye = { class: "text-fm-color-typo-secondary fm-typo-en-body-md-600" }, _e = { class: "flex flex-col gap-16 text-center" }, he = { class: "fm-typo-en-title-sm-800" }, be = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Ke = /* @__PURE__ */ U({
|
|
15
|
+
__name: "Broadcast",
|
|
16
|
+
setup(we) {
|
|
17
|
+
const { t: s } = oe(), L = {
|
|
18
|
+
label: s("connect.campaign.common.createCampaign"),
|
|
19
|
+
value: "create",
|
|
20
|
+
isPrimary: !0,
|
|
21
|
+
prependIcon: "add"
|
|
22
|
+
}, V = se("BROADCAST", Q()), D = Z(), u = ee(), { global: R, minor: C } = Y, T = h((/* @__PURE__ */ new Date()).toISOString()), c = h({
|
|
23
|
+
searchKey: "",
|
|
24
|
+
location: []
|
|
25
|
+
});
|
|
26
|
+
function K(e) {
|
|
27
|
+
const t = c.value.location;
|
|
28
|
+
return !t || t.length === 0 || !e.targetLocation ? !0 : Array.isArray(t) ? t.some((l) => {
|
|
29
|
+
var i;
|
|
30
|
+
return (i = e == null ? void 0 : e.targetLocation) == null ? void 0 : i.includes(l);
|
|
31
|
+
}) : e.targetLocation.includes(t);
|
|
32
|
+
}
|
|
33
|
+
const f = j(
|
|
34
|
+
() => u.campaigns.broadcast.filter((e) => K(e))
|
|
35
|
+
), O = [
|
|
36
|
+
{
|
|
37
|
+
header: "Broadcast title",
|
|
38
|
+
accessorFn: (e) => e.name
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
header: "Status",
|
|
42
|
+
accessorFn: (e) => te(e),
|
|
43
|
+
cell(e) {
|
|
44
|
+
return B(e.row.original);
|
|
45
|
+
}
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
header: "Summary",
|
|
49
|
+
accessorFn: (e) => A(e)
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
header: "Message sent",
|
|
53
|
+
accessorFn: (e) => e.currentReceive ?? "N/A"
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
header: "Actions",
|
|
57
|
+
cell(e) {
|
|
58
|
+
return G(W.FmButton, {
|
|
59
|
+
variant: "tertiary",
|
|
60
|
+
icon: "delete",
|
|
61
|
+
iconColor: "neutral-gray-400",
|
|
62
|
+
onClick: (t) => {
|
|
63
|
+
t.stopPropagation(), S(e.row.original);
|
|
64
|
+
}
|
|
65
|
+
});
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
], x = h();
|
|
69
|
+
async function S(e) {
|
|
70
|
+
await X.remove(
|
|
71
|
+
s("connect.campaign.common.remove.confirm", { name: e.name })
|
|
72
|
+
) && await C(
|
|
73
|
+
async () => {
|
|
74
|
+
await _.delete(e._id), await u.read("BROADCAST");
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
message: s("connect.campaign.common.remove.removing", { name: e.name }),
|
|
78
|
+
successMessage: s("connect.campaign.common.remove.removed", {
|
|
79
|
+
name: e.name
|
|
80
|
+
})
|
|
81
|
+
}
|
|
82
|
+
);
|
|
83
|
+
}
|
|
84
|
+
async function g(e) {
|
|
85
|
+
T.value = (/* @__PURE__ */ new Date()).toISOString(), e ? await t() : V.open(async (l) => {
|
|
86
|
+
await t(l);
|
|
87
|
+
});
|
|
88
|
+
async function t(l) {
|
|
89
|
+
var i;
|
|
90
|
+
(i = x.value) == null || i.showSheet(
|
|
91
|
+
!0,
|
|
92
|
+
"BROADCAST",
|
|
93
|
+
e ? await _.readById(e._id) : void 0,
|
|
94
|
+
l
|
|
95
|
+
);
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
async function I(e) {
|
|
99
|
+
await C(
|
|
100
|
+
async () => {
|
|
101
|
+
e.campaign._id ? await _.update(e.campaign._id, e) : await _.create(e), await u.read("BROADCAST");
|
|
102
|
+
},
|
|
103
|
+
{
|
|
104
|
+
message: s(
|
|
105
|
+
`connect.campaign.broadcast.update.${e.campaign._id ? "updating" : "creating"}`
|
|
106
|
+
),
|
|
107
|
+
successMessage: s("connect.campaign.broadcast.update.success", {
|
|
108
|
+
action: e.campaign._id ? "updated" : "created"
|
|
109
|
+
})
|
|
110
|
+
}
|
|
111
|
+
);
|
|
112
|
+
}
|
|
113
|
+
return E(async () => {
|
|
114
|
+
await R(async () => {
|
|
115
|
+
await u.read("BROADCAST");
|
|
116
|
+
});
|
|
117
|
+
}), (e, t) => {
|
|
118
|
+
const l = m("FmPageHead"), i = m("FmSearch"), $ = m("FmTable"), F = m("FmButton"), P = m("FmListItem"), M = m("FmList"), N = m("FmCard");
|
|
119
|
+
return d(), y(b, null, [
|
|
120
|
+
r(l, {
|
|
121
|
+
title: o(s)("connect.campaign.broadcast.title"),
|
|
122
|
+
actions: o(f).length > 0 ? [L] : [],
|
|
123
|
+
"onClick:action": t[0] || (t[0] = () => g())
|
|
124
|
+
}, null, 8, ["title", "actions"]),
|
|
125
|
+
n("div", ce, [
|
|
126
|
+
r(i, {
|
|
127
|
+
modelValue: o(c).searchKey,
|
|
128
|
+
"onUpdate:modelValue": t[1] || (t[1] = (a) => o(c).searchKey = a),
|
|
129
|
+
class: "hidden xs:block border-b-2 border-fm-color-neutral-gray-100",
|
|
130
|
+
placeholder: o(s)("connect.campaign.common.search"),
|
|
131
|
+
collapsible: ""
|
|
132
|
+
}, null, 8, ["modelValue", "placeholder"]),
|
|
133
|
+
o(u).campaigns.broadcast && o(u).campaigns.broadcast.length > 0 ? (d(), y(b, { key: 0 }, [
|
|
134
|
+
n("div", re, [
|
|
135
|
+
n("div", ie, [
|
|
136
|
+
r(ae, {
|
|
137
|
+
label: `${o(s)("connect.campaign.common.location")}: `,
|
|
138
|
+
"right-icon": "keyboard_arrow_down",
|
|
139
|
+
modelValue: o(c).location,
|
|
140
|
+
"onUpdate:modelValue": t[2] || (t[2] = (a) => o(c).location = a),
|
|
141
|
+
icon: "storefront",
|
|
142
|
+
"show-item-label": !0,
|
|
143
|
+
items: o(D).locationOptions
|
|
144
|
+
}, null, 8, ["label", "modelValue", "items"])
|
|
145
|
+
]),
|
|
146
|
+
r(i, {
|
|
147
|
+
modelValue: o(c).searchKey,
|
|
148
|
+
"onUpdate:modelValue": t[3] || (t[3] = (a) => o(c).searchKey = a),
|
|
149
|
+
class: "xs:hidden",
|
|
150
|
+
placeholder: "search",
|
|
151
|
+
collapsible: ""
|
|
152
|
+
}, null, 8, ["modelValue"])
|
|
153
|
+
]),
|
|
154
|
+
r($, {
|
|
155
|
+
class: "xs:hidden",
|
|
156
|
+
"row-data": o(f),
|
|
157
|
+
"column-defs": O,
|
|
158
|
+
"search-value": o(c).searchKey,
|
|
159
|
+
"column-filter": [],
|
|
160
|
+
onRowClick: t[4] || (t[4] = (a) => g(a.original)),
|
|
161
|
+
"hide-footer": !0
|
|
162
|
+
}, null, 8, ["row-data", "search-value"]),
|
|
163
|
+
r(M, { class: "hidden xs:flex flex-col mx-[-24px]" }, {
|
|
164
|
+
default: w(() => [
|
|
165
|
+
(d(!0), y(b, null, H(o(f).filter(
|
|
166
|
+
(a) => a.name.toLowerCase().includes(o(c).searchKey.toLowerCase())
|
|
167
|
+
), (a) => (d(), v(P, {
|
|
168
|
+
key: a._id.toString(),
|
|
169
|
+
onClick: (k) => g(a),
|
|
170
|
+
class: "py-12 px-16 flex items-center justify-between border-b border-fm-color-neutral-gray-100"
|
|
171
|
+
}, {
|
|
172
|
+
default: w(() => [
|
|
173
|
+
n("div", le, [
|
|
174
|
+
n("div", me, [
|
|
175
|
+
(d(), v(q(o(B)(a)))),
|
|
176
|
+
n("div", de, p(a.currentReceive ?? 0) + " sent ", 1)
|
|
177
|
+
]),
|
|
178
|
+
n("div", ue, [
|
|
179
|
+
n("div", pe, p(a.name), 1),
|
|
180
|
+
n("div", fe, p(o(A)(a)), 1)
|
|
181
|
+
])
|
|
182
|
+
]),
|
|
183
|
+
r(F, {
|
|
184
|
+
icon: "delete",
|
|
185
|
+
"icon-color": "neutral-gray-400",
|
|
186
|
+
variant: "tertiary",
|
|
187
|
+
onClick: (k) => (k.stopPropagation(), S(a))
|
|
188
|
+
}, null, 8, ["onClick"])
|
|
189
|
+
]),
|
|
190
|
+
_: 2
|
|
191
|
+
}, 1032, ["onClick"]))), 128))
|
|
192
|
+
]),
|
|
193
|
+
_: 1
|
|
194
|
+
}),
|
|
195
|
+
o(f).length == 0 ? (d(), y("div", ge, [
|
|
196
|
+
n("div", ye, p(o(s)("connect.campaign.common.noResults")), 1)
|
|
197
|
+
])) : z("", !0)
|
|
198
|
+
], 64)) : (d(), v(N, {
|
|
199
|
+
key: 1,
|
|
200
|
+
variant: "outlined",
|
|
201
|
+
class: "w-full flex flex-col items-center justify-center gap-y-24 p-24"
|
|
202
|
+
}, {
|
|
203
|
+
default: w(() => [
|
|
204
|
+
t[6] || (t[6] = n("img", {
|
|
205
|
+
src: J,
|
|
206
|
+
class: "aspect-square w-[150px]"
|
|
207
|
+
}, null, -1)),
|
|
208
|
+
n("div", _e, [
|
|
209
|
+
n("div", he, p(o(s)("connect.campaign.broadcast.create.title")), 1),
|
|
210
|
+
n("div", be, p(o(s)("connect.campaign.broadcast.create.description")), 1)
|
|
211
|
+
]),
|
|
212
|
+
r(F, {
|
|
213
|
+
variant: "primary",
|
|
214
|
+
label: o(s)("connect.campaign.broadcast.create.button"),
|
|
215
|
+
icon: "add",
|
|
216
|
+
onClick: t[5] || (t[5] = (a) => g())
|
|
217
|
+
}, null, 8, ["label"])
|
|
218
|
+
]),
|
|
219
|
+
_: 1
|
|
220
|
+
})),
|
|
221
|
+
r(ne, {
|
|
222
|
+
ref_key: "sheetRef",
|
|
223
|
+
ref: x,
|
|
224
|
+
"onSubmit:modelValue": I
|
|
225
|
+
}, null, 512)
|
|
226
|
+
])
|
|
227
|
+
], 64);
|
|
228
|
+
};
|
|
229
|
+
}
|
|
230
|
+
});
|
|
231
|
+
export {
|
|
232
|
+
Ke as default
|
|
233
|
+
};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { R as RuleOperator, _ } from "./index-
|
|
2
|
-
import { i as isRuleGroup } from "./rule-builder-
|
|
1
|
+
import { R as RuleOperator, _ } from "./index-Ba05Naif.js";
|
|
2
|
+
import { i as isRuleGroup } from "./rule-builder-NTDBB2kj.js";
|
|
3
3
|
import { defineComponent, resolveComponent, openBlock, createBlock, withCtx, createElementVNode, createElementBlock, Fragment, renderList, createVNode, toDisplayString } from "vue";
|
|
4
4
|
import { useDialog } from "@feedmepos/ui-library";
|
|
5
|
-
import "./index-
|
|
6
|
-
import { a as F_RUNNABLE_CAMPAIGN_TYPE } from "./index-
|
|
7
|
-
import "./index-
|
|
8
|
-
import "./index-
|
|
5
|
+
import "./index-BoRTW-dI.js";
|
|
6
|
+
import { a as F_RUNNABLE_CAMPAIGN_TYPE } from "./index-CUGS4y58.js";
|
|
7
|
+
import "./index-CV_3mltA.js";
|
|
8
|
+
import "./index-BA6oC2L9.js";
|
|
9
9
|
function validateRule(data, r, date) {
|
|
10
10
|
const rules = new RuleOperator(date ?? /* @__PURE__ */ new Date());
|
|
11
11
|
function meetConditions(e) {
|